@incodetech/web 0.0.0-dev-20260608-c8c427ca → 0.0.0-dev-20260609-11ba3e8a
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 +15 -13
- package/dist/aligndevicelottie-DY_bX_p8.js +12769 -0
- package/dist/antifraud/antifraud.es.js +22 -19
- package/dist/authentication/authentication.es.js +42 -33
- package/dist/autoFocusTitle-DM6PvgcP.js +29 -0
- package/dist/{back-horizontal-hint-DsPhKbR4.js → back-horizontal-hint-BXYix0Wj.js} +26 -26
- package/dist/back-tutorial-vb1MxlrT.js +14597 -0
- package/dist/{back-vertical-hint-BFJbYQrX.js → back-vertical-hint-DNSh6JNH.js} +27 -27
- package/dist/backdevicelottie-HypPqBz7.js +16690 -0
- package/dist/base.css +5 -0
- package/dist/blurdevicelottie-CBXtBFiJ.js +15951 -0
- package/dist/bottomSheet-BuzqNQtG.js +39 -0
- package/dist/browser-ponyfill-CLLvZCVg.js +441 -0
- package/dist/button-B-qlr4iI.js +35 -0
- package/dist/checkbox-CTPETqo5.js +96 -0
- package/dist/consent/consent.es.js +75 -64
- package/dist/countrySelector-CzyuaDIs.js +60 -0
- package/dist/cpf-ocr/cpf-ocr.es.js +2 -2
- package/dist/cpfOcr-DQVs3r8N.js +92 -0
- package/dist/cpfOcr-WNklFuxT.js +2 -0
- package/dist/cross-document-data-match/cross-document-data-match.es.js +20 -17
- package/dist/curp-validation/curp-validation.es.js +246 -211
- package/dist/customFields-B4MqqDI6.js +140 -0
- package/dist/customWatchlist-Dfqw1DQP.js +36 -0
- package/dist/dateInputComposed-BsPQHG5o.js +1 -0
- package/dist/dateInputComposed-DY97tQVK.js +69 -0
- package/dist/defineProperty-mefzVtTv.js +39 -0
- package/dist/document-capture/document-capture.es.js +2 -2
- package/dist/documentCapture-BE78MIlR.js +876 -0
- package/dist/documentCapture-BVfNZL29.js +2 -0
- package/dist/dropdownComposed-BF4L-7mJ.js +380 -0
- package/dist/dropdownComposed-mvHuRFHn.js +1 -0
- package/dist/dynamicForms-BYGGAQoc.js +352 -0
- package/dist/ekyb/ekyb.es.js +2 -2
- package/dist/ekybModule-BUPX0QhW.js +2 -0
- package/dist/ekybModule-CkTXu-4u.js +279 -0
- package/dist/ekyc/ekyc.es.js +2 -2
- package/dist/ekycModule-BWsVX39d.js +257 -0
- package/dist/ekycModule-DNDPqvUc.js +2 -0
- package/dist/electronic-signature/electronic-signature.es.js +2 -2
- package/dist/electronic-signature-BJSyzex9.js +426 -0
- package/dist/email/email.es.js +198 -78
- package/dist/emailInput-BHp4Apt4.js +39 -0
- package/dist/errorIcon-B0rmz3rw.js +26 -0
- package/dist/expiredId-C105HVKv.js +85 -0
- package/dist/extensibility-DJwVxojG.js +3070 -0
- package/dist/extensibility.es.js +26 -26
- package/dist/face-match/face-match.es.js +2 -2
- package/dist/faceMatch-BOFGxzzx.js +343 -0
- package/dist/faceMatch-CDMcFQwR.js +2 -0
- package/dist/field-comparison/field-comparison.es.js +2 -2
- package/dist/fieldComparison-BMDmQ8eA.js +88 -0
- package/dist/fieldComparison-Z1NleSxD.js +2 -0
- package/dist/{flip-animation-CuQ57qTn.js → flip-animation-BGRvygw9.js} +4221 -4221
- package/dist/flow/flow.es.js +597 -493
- package/dist/flow/styles.css +0 -8
- package/dist/{front-horizontal-hint-CKm7PnmS.js → front-horizontal-hint-CLSU0iVo.js} +70 -70
- package/dist/{front-vertical-hint-CLHC2qoH.js → front-vertical-hint-BWq-yWQ8.js} +81 -81
- package/dist/frontdevicelottie-CLqitJhG.js +17314 -0
- package/dist/geolocation/geolocation.es.js +485 -395
- package/dist/glaredevicelottie-BS04U6Fc.js +14478 -0
- package/dist/governmentValidation/governmentValidation.es.js +145 -64
- package/dist/governmentValidation/styles.css +0 -36
- package/dist/homeScreen-BsEYyiDB.js +264 -0
- package/dist/hooks-BtgmGvba.js +149 -0
- package/dist/i18n-gTHArCl9.js +2971 -0
- package/dist/icons-DKY3xDkf.js +360 -0
- package/dist/id/id.es.js +565 -413
- package/dist/id-laser-h-DX8UbVNH.js +467 -0
- package/dist/id-laser-v-DhnHdjlB.js +490 -0
- package/dist/id-tutorial-lj4iKtYT.js +13165 -0
- package/dist/id-verification/id-verification.es.js +21 -18
- package/dist/idOcr-BS77o1VC.js +123 -0
- package/dist/identity-reuse/identity-reuse.es.js +168 -130
- package/dist/incode-logo-57XFniXU.js +4 -0
- package/dist/incodeComponent-CDJxFZvS.js +63 -0
- package/dist/incodeModule-DkA_yd0X.js +13 -0
- package/dist/index.es.js +16 -14
- package/dist/inputComposed-5V2nLTqH.js +99 -0
- package/dist/inputComposed-BPOYwUBl.js +1 -0
- package/dist/loadingIcon-DN62ugKs.js +148 -0
- package/dist/lottie_light-Dp9Bz3mf.js +9031 -0
- package/dist/mandatoryConsent-DP189TUn.js +107 -0
- package/dist/modal-B5QeulDu.js +153 -0
- package/dist/modal.hooks-C7K9k_pY.js +202 -0
- package/dist/numberedStep-DVAyTPv1.js +13 -0
- package/dist/optionAccessibleLabel-Czc2YC8z.js +202 -0
- package/dist/otpInput-2IQ-JCK8.js +195 -0
- package/dist/page-BZ-0eNWq.js +71 -0
- package/dist/{passport-horizontal-hint-C_le0HVU.js → passport-horizontal-hint-DfVsf4Cc.js} +55 -55
- package/dist/{passport-tutorial-BYN4T_TE.js → passport-tutorial-zT1ZoA-D.js} +7096 -7084
- package/dist/{passport-vertical-hint-H-pyICSv.js → passport-vertical-hint-DVxbTyQp.js} +49 -49
- package/dist/pdf-BZA70WbM.js +22398 -0
- package/dist/pdfViewer-Dr63sJ51.js +114 -0
- package/dist/phone/phone.es.js +214 -87
- package/dist/phoneInputComposed-D_IabWKJ.js +12142 -0
- package/dist/processing-B_u8wUB7.js +8 -0
- package/dist/qe-signature/qe-signature.es.js +15 -13
- package/dist/radioGroupComposed-DwYW-Ld-.js +215 -0
- package/dist/redirect-to-mobile/redirect-to-mobile.es.js +2099 -859
- package/dist/registerIncodeElement-BJJGzVdq.js +11 -0
- package/dist/requiredLabelHint-DEadtiwx.js +17 -0
- package/dist/richText-C7GUm0WL.js +3153 -0
- package/dist/rolldown-runtime--E5BIlTp.js +33 -0
- package/dist/selfie/selfie.es.js +54 -42
- package/dist/selfieTutorial-CtruLyO2.js +2689 -0
- package/dist/signature/signature.es.js +765 -406
- package/dist/snackbar-Dz9crm39.js +16 -0
- package/dist/spinner-BfBIZkDQ.js +42 -0
- package/dist/spinner-DEDtE7Pz.js +1 -0
- package/dist/statusPage-CVCoieyd.js +28 -0
- package/dist/successIcon-rmzr-pxu.js +30 -0
- package/dist/tabs--UMd6eEB.js +103 -0
- package/dist/transitionSpinner-CWhGcr7c.js +26 -0
- package/dist/{tutorial-QzQ536BL.js → tutorial-Jv0noW4z.js} +832 -578
- package/dist/types/extensibility.d.ts +3 -1
- package/dist/types/index.d.ts +13 -4
- package/dist/typography-BK4AmfKX.js +45 -0
- package/dist/uiConfig-sgEkFuuA.js +25 -0
- package/dist/useModuleLoader-CuhHtmgr.js +670 -0
- package/dist/vendor-preact-BH7vOa2r.js +957 -0
- package/dist/verificationResult-CJ0JyV6A.js +64 -0
- package/dist/verifiedByIncode-8QBn-kgZ.js +103 -0
- package/dist/watchlist/watchlist.es.js +31 -26
- package/dist/watchlistForBusiness-RZcnjVDb.js +80 -0
- package/dist/workflow/styles.css +0 -8
- package/dist/workflow/workflow.es.js +251 -209
- package/package.json +4 -2
- package/dist/aligndevicelottie-D8KsO77t.js +0 -12757
- package/dist/autoFocusTitle-BpYdaSUM.js +0 -16
- package/dist/back-tutorial-DhSE2FJo.js +0 -14585
- package/dist/backdevicelottie-CJWGVMdw.js +0 -16678
- package/dist/blurdevicelottie-Dxt2deEB.js +0 -15939
- package/dist/bottomSheet-QrpyatOD.js +0 -31
- package/dist/browser-ponyfill-Crda_c5R.js +0 -299
- package/dist/button-DcCUEn2n.js +0 -24
- package/dist/checkbox-DCCzBAuF.js +0 -86
- package/dist/countrySelector-CJ8egQ4C.js +0 -58
- package/dist/cpfOcr-Db06i-Lm.js +0 -2
- package/dist/cpfOcr-FixhUeMQ.js +0 -79
- package/dist/customFields-C1G9xHNX.js +0 -125
- package/dist/customWatchlist-IKEblz7u.js +0 -31
- package/dist/dateInputComposed-Cg8BvYSK.js +0 -1
- package/dist/dateInputComposed-Ddd7HLyM.js +0 -58
- package/dist/defineProperty-xczUyn-m.js +0 -39
- package/dist/documentCapture-D9I7FjGe.js +0 -2
- package/dist/documentCapture-b61wlala.js +0 -765
- package/dist/dropdownComposed-B4U0AIak.js +0 -1
- package/dist/dropdownComposed-CS2pyn-g.js +0 -293
- package/dist/dynamicForms-tYQog0kw.js +0 -298
- package/dist/ekybModule-C33C4JES.js +0 -237
- package/dist/ekybModule-LON6G2Bz.js +0 -2
- package/dist/ekycModule-BJOgtTAh.js +0 -225
- package/dist/ekycModule-BSf_DIG7.js +0 -2
- package/dist/electronic-signature-OdgTyso4.js +0 -406
- package/dist/emailInput-CU7mLB21.js +0 -37
- package/dist/errorIcon-DpHzAoAo.js +0 -24
- package/dist/expiredId-nfVAZgTL.js +0 -70
- package/dist/extensibility-BbNy3mVG.js +0 -2602
- package/dist/faceMatch-BIila4kf.js +0 -2
- package/dist/faceMatch-DJ7Mqujx.js +0 -206
- package/dist/fieldComparison-D2RSFYl-.js +0 -84
- package/dist/fieldComparison-DbUyouFd.js +0 -2
- package/dist/frontdevicelottie-65Vyfpff.js +0 -17302
- package/dist/glaredevicelottie-BEyaqtc6.js +0 -14466
- package/dist/homeScreen-CyPddxWl.js +0 -227
- package/dist/hooks-MxHtZWTS.js +0 -112
- package/dist/i18n-Kzzvkz94.js +0 -2019
- package/dist/icons-9I5g9-_1.js +0 -292
- package/dist/id-laser-h-iCPbFixz.js +0 -467
- package/dist/id-laser-v-CNzwliP2.js +0 -483
- package/dist/id-tutorial-CF4nO4oX.js +0 -13153
- package/dist/idOcr-DlMLMDqa.js +0 -97
- package/dist/incode-logo-DX016usY.js +0 -4
- package/dist/incodeComponent-BoFhgK7G.js +0 -50
- package/dist/incodeModule-BiCoAJ5k.js +0 -13
- package/dist/inputComposed-DAEey9xm.js +0 -94
- package/dist/inputComposed-eS4B0Mkh.js +0 -1
- package/dist/loadingIcon-BN5YRQUb.js +0 -104
- package/dist/lottie_light-DLqSnziX.js +0 -4419
- package/dist/mandatoryConsent-DNz2jZ43.js +0 -98
- package/dist/modal-ZqAhwiRF.js +0 -135
- package/dist/modal.hooks-LdusROLW.js +0 -126
- package/dist/numberedStep-CdLWASwL.js +0 -11
- package/dist/optionAccessibleLabel-DcygPaME.js +0 -140
- package/dist/otpInput-C4pk4BJU.js +0 -157
- package/dist/page-DA3R7q0J.js +0 -69
- package/dist/pdf-51QeiFSx.js +0 -14967
- package/dist/pdfViewer-rKzTHket.js +0 -64
- package/dist/phoneInputComposed-CjAxk2Gj.js +0 -11230
- package/dist/processing-DPktVde2.js +0 -6
- package/dist/radioGroupComposed-DRRxVk9Z.js +0 -178
- package/dist/registerIncodeElement-BHWOwdSS.js +0 -7
- package/dist/requiredLabelHint-B6FN3v88.js +0 -13
- package/dist/richText-6pIbydcz.js +0 -1973
- package/dist/rolldown-runtime-CYMK-g2i.js +0 -20
- package/dist/selfieTutorial-Yo9AlUoT.js +0 -2677
- package/dist/snackbar-CQiiWO4p.js +0 -14
- package/dist/spinner-B4dcie2T.js +0 -1
- package/dist/spinner-CKnjVHxw.js +0 -39
- package/dist/statusPage-B8b3Jg6N.js +0 -28
- package/dist/successIcon-SlKgTSty.js +0 -28
- package/dist/tabs-D7lGst3Q.js +0 -78
- package/dist/transitionSpinner-Di3bOyOu.js +0 -17
- package/dist/typography-CxjaknHN.js +0 -28
- package/dist/uiConfig-CwpQ-IM6.js +0 -20
- package/dist/useModuleLoader-Bqs7fglI.js +0 -517
- package/dist/vendor-preact-D6SntenC.js +0 -958
- package/dist/verificationResult-DhT3hH1b.js +0 -90
- package/dist/verifiedByIncode-DpbxzO0y.js +0 -101
- package/dist/watchlistForBusiness-CRXVbH4l.js +0 -75
|
@@ -1,67 +1,70 @@
|
|
|
1
|
-
import { r as
|
|
2
|
-
import { n as
|
|
3
|
-
import { S as
|
|
4
|
-
import { r as
|
|
5
|
-
import { n as
|
|
6
|
-
import { t as
|
|
7
|
-
import { i as
|
|
8
|
-
import { t as
|
|
9
|
-
import { t as
|
|
10
|
-
import { t as
|
|
11
|
-
import { h as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { t as
|
|
16
|
-
import { getBrowser
|
|
1
|
+
import { r as __toESM } from "./rolldown-runtime--E5BIlTp.js";
|
|
2
|
+
import { n as useTranslation, t as Trans } from "./i18n-gTHArCl9.js";
|
|
3
|
+
import { S as k, _ as y, a as D, h as q, l as A, m as g, p as d, v as u } from "./vendor-preact-BH7vOa2r.js";
|
|
4
|
+
import { r as useIsMobileDeviceWidth } from "./hooks-BtgmGvba.js";
|
|
5
|
+
import { n as cn, r as Spacer, t as LoadingIcon } from "./loadingIcon-DN62ugKs.js";
|
|
6
|
+
import { t as Page } from "./page-BZ-0eNWq.js";
|
|
7
|
+
import { i as TypographyH4, n as TypographyH1, t as Title } from "./typography-BK4AmfKX.js";
|
|
8
|
+
import { t as TransitionSpinner } from "./transitionSpinner-CWhGcr7c.js";
|
|
9
|
+
import { t as Button } from "./button-B-qlr4iI.js";
|
|
10
|
+
import { t as ErrorIcon } from "./errorIcon-B0rmz3rw.js";
|
|
11
|
+
import { h as WarningIcon } from "./icons-DKY3xDkf.js";
|
|
12
|
+
import { t as SuccessIcon } from "./successIcon-rmzr-pxu.js";
|
|
13
|
+
import { t as Modal } from "./modal-B5QeulDu.js";
|
|
14
|
+
import { t as BottomSheet } from "./bottomSheet-BuzqNQtG.js";
|
|
15
|
+
import { t as NumberedStep } from "./numberedStep-DVAyTPv1.js";
|
|
16
|
+
import { getBrowser, getDeviceClass } from "@incodetech/core/device";
|
|
17
17
|
import "@incodetech/core/camera";
|
|
18
18
|
//#region src/shared/errorContent/errorContent.tsx
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
19
|
+
var ErrorContent = ({ title, description, attemptsRemaining, onButtonClick, "data-testid": testId }) => {
|
|
20
|
+
const { t } = useTranslation();
|
|
21
|
+
const noMoreAttempts = attemptsRemaining <= 0;
|
|
22
|
+
const titleRef = A(null);
|
|
23
|
+
y(() => {
|
|
24
|
+
titleRef.current?.focus();
|
|
25
|
+
}, []);
|
|
26
|
+
return /* @__PURE__ */ u(Modal.Root, {
|
|
27
|
+
open: true,
|
|
28
|
+
dismissible: false,
|
|
29
|
+
hasBackdrop: false,
|
|
30
|
+
manageInitialFocus: false,
|
|
28
31
|
class: "IncodeErrorContent",
|
|
29
|
-
children: /* @__PURE__ */ u(
|
|
32
|
+
children: /* @__PURE__ */ u(Modal.Content, {
|
|
30
33
|
class: "IncodeErrorContentContent",
|
|
31
|
-
children: /* @__PURE__ */ u(
|
|
32
|
-
"data-testid":
|
|
34
|
+
children: /* @__PURE__ */ u(Page, {
|
|
35
|
+
"data-testid": testId,
|
|
33
36
|
className: "IncodeErrorContentPage",
|
|
34
37
|
children: /* @__PURE__ */ u("div", {
|
|
35
38
|
class: "IncodeErrorContentContainer",
|
|
36
39
|
children: [/* @__PURE__ */ u("div", {
|
|
37
40
|
class: "IncodeErrorContentIconContainer",
|
|
38
41
|
children: [
|
|
39
|
-
u(
|
|
40
|
-
/* @__PURE__ */ u(
|
|
41
|
-
/* @__PURE__ */ u(
|
|
42
|
-
ref:
|
|
42
|
+
noMoreAttempts ? /* @__PURE__ */ u(ErrorIcon, { size: 32 }) : /* @__PURE__ */ u(WarningIcon, { size: 32 }),
|
|
43
|
+
/* @__PURE__ */ u(Spacer, { size: 16 }),
|
|
44
|
+
/* @__PURE__ */ u(Title, {
|
|
45
|
+
ref: titleRef,
|
|
43
46
|
id: "incode-modal-title",
|
|
44
47
|
tabIndex: -1,
|
|
45
48
|
className: "IncodeErrorContentTitle",
|
|
46
|
-
children:
|
|
49
|
+
children: title
|
|
47
50
|
}),
|
|
48
|
-
/* @__PURE__ */ u(
|
|
51
|
+
/* @__PURE__ */ u(Spacer, { size: 12 }),
|
|
49
52
|
/* @__PURE__ */ u("p", {
|
|
50
53
|
class: "IncodeErrorContentDescription",
|
|
51
|
-
children:
|
|
54
|
+
children: description
|
|
52
55
|
})
|
|
53
56
|
]
|
|
54
57
|
}), /* @__PURE__ */ u("div", {
|
|
55
58
|
class: "IncodeErrorContentAttemptsContainer",
|
|
56
59
|
children: [
|
|
57
|
-
|
|
60
|
+
!noMoreAttempts ? /* @__PURE__ */ u("p", {
|
|
58
61
|
class: "IncodeErrorContentAttemptsText",
|
|
59
|
-
children:
|
|
60
|
-
}),
|
|
61
|
-
/* @__PURE__ */ u(
|
|
62
|
-
/* @__PURE__ */ u(
|
|
63
|
-
onClick:
|
|
64
|
-
children:
|
|
62
|
+
children: t("common.attemptsRemaining", { count: attemptsRemaining })
|
|
63
|
+
}) : null,
|
|
64
|
+
/* @__PURE__ */ u(Spacer, { size: 24 }),
|
|
65
|
+
/* @__PURE__ */ u(Button, {
|
|
66
|
+
onClick: onButtonClick,
|
|
67
|
+
children: noMoreAttempts ? t("common.continue") : t("common.tryAgain")
|
|
65
68
|
})
|
|
66
69
|
]
|
|
67
70
|
})]
|
|
@@ -69,109 +72,141 @@ var O = ({ title: e, description: n, attemptsRemaining: r, onButtonClick: a, "da
|
|
|
69
72
|
})
|
|
70
73
|
})
|
|
71
74
|
});
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/shared/lottie/lottie.tsx
|
|
78
|
+
var lottiePromise = null;
|
|
79
|
+
async function loadLottie() {
|
|
80
|
+
if (lottiePromise) return lottiePromise;
|
|
81
|
+
lottiePromise = import("./lottie_light-Dp9Bz3mf.js").then((m) => /* @__PURE__ */ __toESM(m.default, 1)).then((mod) => mod.default);
|
|
82
|
+
return lottiePromise;
|
|
75
83
|
}
|
|
76
|
-
var
|
|
77
|
-
function
|
|
78
|
-
|
|
79
|
-
|
|
84
|
+
var AUTO_STOP_AFTER_MS = 5e3;
|
|
85
|
+
function Lottie({ animationData, loop = true, autoplay = true, reverse = false, style, className, onComplete, autoStop = false, stopFramePosition }) {
|
|
86
|
+
const containerRef = A(null);
|
|
87
|
+
const effectiveAutoplay = reverse ? false : autoplay;
|
|
88
|
+
const animationOptionsRef = A({
|
|
89
|
+
container: containerRef.current,
|
|
80
90
|
renderer: "svg",
|
|
81
|
-
loop
|
|
82
|
-
autoplay:
|
|
83
|
-
animationData
|
|
91
|
+
loop,
|
|
92
|
+
autoplay: effectiveAutoplay,
|
|
93
|
+
animationData
|
|
84
94
|
});
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
container:
|
|
95
|
+
y(() => {
|
|
96
|
+
animationOptionsRef.current = {
|
|
97
|
+
container: containerRef.current,
|
|
88
98
|
renderer: "svg",
|
|
89
|
-
loop
|
|
90
|
-
autoplay:
|
|
91
|
-
animationData
|
|
99
|
+
loop,
|
|
100
|
+
autoplay: effectiveAutoplay,
|
|
101
|
+
animationData
|
|
92
102
|
};
|
|
93
103
|
}, [
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
])
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
animationData,
|
|
105
|
+
loop,
|
|
106
|
+
effectiveAutoplay
|
|
107
|
+
]);
|
|
108
|
+
y(() => {
|
|
109
|
+
if (!containerRef.current) return;
|
|
110
|
+
let anim;
|
|
111
|
+
let stopTimer;
|
|
112
|
+
let isMounted = true;
|
|
113
|
+
loadLottie().then((lottie) => {
|
|
114
|
+
if (!isMounted) return;
|
|
115
|
+
anim = lottie.loadAnimation(animationOptionsRef.current);
|
|
116
|
+
if (reverse) {
|
|
117
|
+
anim.setDirection(-1);
|
|
118
|
+
anim.goToAndPlay(anim.totalFrames - 1, true);
|
|
119
|
+
}
|
|
120
|
+
if (onComplete) anim.addEventListener("complete", onComplete);
|
|
121
|
+
if (autoStop) stopTimer = window.setTimeout(() => {
|
|
122
|
+
const current = anim;
|
|
123
|
+
if (!current) return;
|
|
124
|
+
if (!stopFramePosition) {
|
|
125
|
+
current.pause();
|
|
106
126
|
return;
|
|
107
127
|
}
|
|
108
|
-
|
|
109
|
-
if (!
|
|
110
|
-
|
|
128
|
+
const totalFrames = current.totalFrames;
|
|
129
|
+
if (!totalFrames || totalFrames <= 0) {
|
|
130
|
+
current.stop();
|
|
111
131
|
return;
|
|
112
132
|
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
})
|
|
117
|
-
|
|
133
|
+
const targetFrame = stopFramePosition === "last" ? Math.max(totalFrames - 1, 0) : stopFramePosition === "first" ? 0 : Math.floor((totalFrames - 1) / 2);
|
|
134
|
+
current.goToAndStop(targetFrame, true);
|
|
135
|
+
}, AUTO_STOP_AFTER_MS);
|
|
136
|
+
});
|
|
137
|
+
return () => {
|
|
138
|
+
isMounted = false;
|
|
139
|
+
if (stopTimer !== void 0) window.clearTimeout(stopTimer);
|
|
140
|
+
if (anim) {
|
|
141
|
+
if (onComplete) anim.removeEventListener("complete", onComplete);
|
|
142
|
+
anim.destroy();
|
|
143
|
+
}
|
|
118
144
|
};
|
|
119
145
|
}, [
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
])
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
146
|
+
onComplete,
|
|
147
|
+
reverse,
|
|
148
|
+
autoStop,
|
|
149
|
+
stopFramePosition
|
|
150
|
+
]);
|
|
151
|
+
return /* @__PURE__ */ u("div", {
|
|
152
|
+
ref: containerRef,
|
|
153
|
+
style,
|
|
154
|
+
className,
|
|
128
155
|
"aria-hidden": "true"
|
|
129
156
|
});
|
|
130
157
|
}
|
|
131
158
|
//#endregion
|
|
132
159
|
//#region src/shared/baseTutorial/baseTutorial.tsx
|
|
133
|
-
var
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
})
|
|
160
|
+
var BaseTutorial = ({ className = "", animationData, title, titleId, subtitle, onContinue, buttonText, disclaimerText, isLoading, stopFramePosition = "middle" }) => {
|
|
161
|
+
return /* @__PURE__ */ u(Page, {
|
|
162
|
+
className: cn("IncodeTutorialPage", className),
|
|
163
|
+
title,
|
|
164
|
+
titleId,
|
|
165
|
+
subtitle,
|
|
166
|
+
children: [/* @__PURE__ */ u("div", {
|
|
167
|
+
class: "IncodeBaseTutorialContainer",
|
|
168
|
+
children: /* @__PURE__ */ u("div", {
|
|
169
|
+
class: "IncodeBaseTutorialAnimationContainer",
|
|
170
|
+
"aria-hidden": "true",
|
|
171
|
+
children: animationData ? /* @__PURE__ */ u(Lottie, {
|
|
172
|
+
animationData,
|
|
173
|
+
className: "IncodeBaseTutorialAnimation",
|
|
174
|
+
autoStop: true,
|
|
175
|
+
stopFramePosition
|
|
176
|
+
}) : null
|
|
177
|
+
})
|
|
178
|
+
}), /* @__PURE__ */ u("div", { children: [/* @__PURE__ */ u("p", {
|
|
179
|
+
class: "IncodeBaseTutorialDisclaimer",
|
|
180
|
+
children: disclaimerText
|
|
181
|
+
}), /* @__PURE__ */ u("div", {
|
|
182
|
+
class: "IncodeBaseTutorialButtonContainer",
|
|
183
|
+
children: /* @__PURE__ */ u(Button, {
|
|
184
|
+
onClick: onContinue,
|
|
185
|
+
class: "m-auto max-w-[420px]",
|
|
186
|
+
isLoading,
|
|
187
|
+
children: buttonText
|
|
188
|
+
})
|
|
189
|
+
})] })]
|
|
190
|
+
});
|
|
191
|
+
};
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/shared/permissions/camera/boldWithArrow.tsx
|
|
194
|
+
var BoldWithArrow = ({ i18nKey }) => /* @__PURE__ */ u("span", {
|
|
163
195
|
class: "IncodeBoldWithArrow",
|
|
164
|
-
children: /* @__PURE__ */ u(
|
|
165
|
-
i18nKey
|
|
196
|
+
children: /* @__PURE__ */ u(Trans, {
|
|
197
|
+
i18nKey,
|
|
166
198
|
arrowClass: "IncodeBoldWithArrowIcon"
|
|
167
199
|
})
|
|
168
|
-
})
|
|
200
|
+
});
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/shared/permissions/assets/android-dots-icon.svg?react
|
|
203
|
+
var SvgAndroidDotsIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
169
204
|
width: 38,
|
|
170
205
|
height: 38,
|
|
171
206
|
viewBox: "0 0 38 38",
|
|
172
207
|
fill: "none",
|
|
173
208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
174
|
-
...
|
|
209
|
+
...props,
|
|
175
210
|
children: [/* @__PURE__ */ u("rect", {
|
|
176
211
|
width: 38,
|
|
177
212
|
height: 38,
|
|
@@ -181,13 +216,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
181
216
|
d: "M19 24C20.3807 24 21.5 25.1193 21.5 26.5C21.5 27.8807 20.3807 29 19 29C17.6193 29 16.5 27.8807 16.5 26.5C16.5 25.1193 17.6193 24 19 24ZM19 17C20.3807 17 21.5 18.1193 21.5 19.5C21.5 20.8807 20.3807 22 19 22C17.6193 22 16.5 20.8807 16.5 19.5C16.5 18.1193 17.6193 17 19 17ZM19 10C20.3807 10 21.5 11.1193 21.5 12.5C21.5 13.8807 20.3807 15 19 15C17.6193 15 16.5 13.8807 16.5 12.5C16.5 11.1193 17.6193 10 19 10Z",
|
|
182
217
|
fill: "#646464"
|
|
183
218
|
})]
|
|
184
|
-
})
|
|
219
|
+
});
|
|
220
|
+
//#endregion
|
|
221
|
+
//#region src/shared/permissions/assets/android-settings-icon.svg?react
|
|
222
|
+
var SvgAndroidSettingsIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
185
223
|
width: 38,
|
|
186
224
|
height: 38,
|
|
187
225
|
viewBox: "0 0 38 38",
|
|
188
226
|
fill: "none",
|
|
189
227
|
xmlns: "http://www.w3.org/2000/svg",
|
|
190
|
-
...
|
|
228
|
+
...props,
|
|
191
229
|
children: [
|
|
192
230
|
/* @__PURE__ */ u("path", {
|
|
193
231
|
d: "M30.2222 0H7.77778C3.48223 0 0 3.48903 0 7.79297V30.207C0 34.511 3.48223 38 7.77778 38H30.2222C34.5178 38 38 34.511 38 30.207V7.79297C38 3.48903 34.5178 0 30.2222 0Z",
|
|
@@ -210,13 +248,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
210
248
|
})
|
|
211
249
|
}) })
|
|
212
250
|
]
|
|
213
|
-
})
|
|
251
|
+
});
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region src/shared/permissions/assets/android-toggle-icon.svg?react
|
|
254
|
+
var SvgAndroidToggleIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
214
255
|
width: 38,
|
|
215
256
|
height: 38,
|
|
216
257
|
viewBox: "0 0 38 38",
|
|
217
258
|
fill: "none",
|
|
218
259
|
xmlns: "http://www.w3.org/2000/svg",
|
|
219
|
-
...
|
|
260
|
+
...props,
|
|
220
261
|
children: [/* @__PURE__ */ u("g", {
|
|
221
262
|
clipPath: "url(#clip0_12232_5215)",
|
|
222
263
|
children: /* @__PURE__ */ u("g", {
|
|
@@ -275,13 +316,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
275
316
|
fill: "white"
|
|
276
317
|
})
|
|
277
318
|
})] })]
|
|
278
|
-
})
|
|
319
|
+
});
|
|
320
|
+
//#endregion
|
|
321
|
+
//#region src/shared/permissions/assets/chrome-icon.svg?react
|
|
322
|
+
var SvgChromeIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
279
323
|
width: 38,
|
|
280
324
|
height: 38,
|
|
281
325
|
viewBox: "0 0 38 38",
|
|
282
326
|
fill: "none",
|
|
283
327
|
xmlns: "http://www.w3.org/2000/svg",
|
|
284
|
-
...
|
|
328
|
+
...props,
|
|
285
329
|
children: [
|
|
286
330
|
/* @__PURE__ */ u("path", {
|
|
287
331
|
d: "M30.2222 0H7.77778C3.48223 0 0 3.48903 0 7.79297V30.207C0 34.511 3.48223 38 7.77778 38H30.2222C34.5178 38 38 34.511 38 30.207V7.79297C38 3.48903 34.5178 0 30.2222 0Z",
|
|
@@ -360,13 +404,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
360
404
|
})
|
|
361
405
|
] })
|
|
362
406
|
]
|
|
363
|
-
})
|
|
407
|
+
});
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region src/shared/permissions/assets/firefox-icon.svg?react
|
|
410
|
+
var SvgFirefoxIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
364
411
|
width: 40,
|
|
365
412
|
height: 40,
|
|
366
413
|
viewBox: "0 0 40 40",
|
|
367
414
|
fill: "none",
|
|
368
415
|
xmlns: "http://www.w3.org/2000/svg",
|
|
369
|
-
...
|
|
416
|
+
...props,
|
|
370
417
|
children: [
|
|
371
418
|
/* @__PURE__ */ u("rect", {
|
|
372
419
|
width: 40,
|
|
@@ -705,13 +752,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
705
752
|
})
|
|
706
753
|
] })
|
|
707
754
|
]
|
|
708
|
-
})
|
|
755
|
+
});
|
|
756
|
+
//#endregion
|
|
757
|
+
//#region src/shared/permissions/assets/firefox-radio-icon.svg?react
|
|
758
|
+
var SvgFirefoxRadioIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
709
759
|
width: 40,
|
|
710
760
|
height: 40,
|
|
711
761
|
viewBox: "0 0 40 40",
|
|
712
762
|
fill: "none",
|
|
713
763
|
xmlns: "http://www.w3.org/2000/svg",
|
|
714
|
-
...
|
|
764
|
+
...props,
|
|
715
765
|
children: [/* @__PURE__ */ u("rect", {
|
|
716
766
|
width: 40,
|
|
717
767
|
height: 40,
|
|
@@ -721,13 +771,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
721
771
|
d: "M20 12C24.4183 12 28 15.5817 28 20C28 24.4183 24.4183 28 20 28C15.5817 28 12 24.4183 12 20C12 15.5817 15.5817 12 20 12ZM20 13C16.134 13 13 16.134 13 20C13 23.866 16.134 27 20 27C23.866 27 27 23.866 27 20C27 16.134 23.866 13 20 13ZM20 15C22.7614 15 25 17.2386 25 20C25 22.7614 22.7614 25 20 25C17.2386 25 15 22.7614 15 20C15 17.2386 17.2386 15 20 15Z",
|
|
722
772
|
fill: "#646464"
|
|
723
773
|
})]
|
|
724
|
-
})
|
|
774
|
+
});
|
|
775
|
+
//#endregion
|
|
776
|
+
//#region src/shared/permissions/assets/bank-card-icon.svg?react
|
|
777
|
+
var SvgBankCardIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
725
778
|
width: 32,
|
|
726
779
|
height: 32,
|
|
727
780
|
viewBox: "0 0 32 32",
|
|
728
781
|
fill: "none",
|
|
729
782
|
xmlns: "http://www.w3.org/2000/svg",
|
|
730
|
-
...
|
|
783
|
+
...props,
|
|
731
784
|
children: /* @__PURE__ */ u("g", {
|
|
732
785
|
id: "Bank Carrd check - Iconly Pro",
|
|
733
786
|
children: [
|
|
@@ -754,13 +807,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
754
807
|
})
|
|
755
808
|
]
|
|
756
809
|
})
|
|
757
|
-
})
|
|
810
|
+
});
|
|
811
|
+
//#endregion
|
|
812
|
+
//#region src/shared/permissions/assets/camera-icon.svg?react
|
|
813
|
+
var SvgCameraIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
758
814
|
width: 32,
|
|
759
815
|
height: 32,
|
|
760
816
|
viewBox: "0 0 32 32",
|
|
761
817
|
fill: "none",
|
|
762
818
|
xmlns: "http://www.w3.org/2000/svg",
|
|
763
|
-
...
|
|
819
|
+
...props,
|
|
764
820
|
children: /* @__PURE__ */ u("g", {
|
|
765
821
|
id: "Camera - Iconly Pro",
|
|
766
822
|
children: /* @__PURE__ */ u("g", {
|
|
@@ -775,13 +831,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
775
831
|
})
|
|
776
832
|
})
|
|
777
833
|
})
|
|
778
|
-
})
|
|
834
|
+
});
|
|
835
|
+
//#endregion
|
|
836
|
+
//#region src/shared/permissions/assets/check-icon.svg?react
|
|
837
|
+
var SvgCheckIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
779
838
|
width: 32,
|
|
780
839
|
height: 32,
|
|
781
840
|
viewBox: "0 0 32 32",
|
|
782
841
|
fill: "none",
|
|
783
842
|
xmlns: "http://www.w3.org/2000/svg",
|
|
784
|
-
...
|
|
843
|
+
...props,
|
|
785
844
|
children: /* @__PURE__ */ u("g", {
|
|
786
845
|
id: "Check badge - Iconly Pro",
|
|
787
846
|
children: /* @__PURE__ */ u("path", {
|
|
@@ -792,13 +851,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
792
851
|
fill: "currentColor"
|
|
793
852
|
})
|
|
794
853
|
})
|
|
795
|
-
})
|
|
854
|
+
});
|
|
855
|
+
//#endregion
|
|
856
|
+
//#region src/shared/permissions/assets/samsung-internet-icon.svg?react
|
|
857
|
+
var SvgSamsungInternetIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
796
858
|
xmlns: "http://www.w3.org/2000/svg",
|
|
797
859
|
width: 40,
|
|
798
860
|
height: 40,
|
|
799
861
|
viewBox: "0 0 40 40",
|
|
800
862
|
fill: "none",
|
|
801
|
-
...
|
|
863
|
+
...props,
|
|
802
864
|
children: [
|
|
803
865
|
/* @__PURE__ */ u("rect", {
|
|
804
866
|
width: 40,
|
|
@@ -815,13 +877,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
815
877
|
fill: "#4D5CC1"
|
|
816
878
|
})
|
|
817
879
|
]
|
|
818
|
-
})
|
|
880
|
+
});
|
|
881
|
+
//#endregion
|
|
882
|
+
//#region src/shared/permissions/assets/samsung-toggle-icon.svg?react
|
|
883
|
+
var SvgSamsungToggleIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
819
884
|
width: 40,
|
|
820
885
|
height: 40,
|
|
821
886
|
viewBox: "0 0 40 40",
|
|
822
887
|
fill: "none",
|
|
823
888
|
xmlns: "http://www.w3.org/2000/svg",
|
|
824
|
-
...
|
|
889
|
+
...props,
|
|
825
890
|
children: [
|
|
826
891
|
/* @__PURE__ */ u("rect", {
|
|
827
892
|
width: 40,
|
|
@@ -844,13 +909,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
844
909
|
fill: "white"
|
|
845
910
|
})
|
|
846
911
|
]
|
|
847
|
-
})
|
|
912
|
+
});
|
|
913
|
+
//#endregion
|
|
914
|
+
//#region src/shared/permissions/assets/camera-ios.svg?react
|
|
915
|
+
var SvgCameraIos = (props) => /* @__PURE__ */ u("svg", {
|
|
848
916
|
width: 38,
|
|
849
917
|
height: 38,
|
|
850
918
|
viewBox: "0 0 38 38",
|
|
851
919
|
fill: "none",
|
|
852
920
|
xmlns: "http://www.w3.org/2000/svg",
|
|
853
|
-
...
|
|
921
|
+
...props,
|
|
854
922
|
children: [/* @__PURE__ */ u("g", {
|
|
855
923
|
clipPath: "url(#clip0_6851_3788)",
|
|
856
924
|
children: /* @__PURE__ */ u("g", {
|
|
@@ -984,13 +1052,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
984
1052
|
})
|
|
985
1053
|
})
|
|
986
1054
|
] })]
|
|
987
|
-
})
|
|
1055
|
+
});
|
|
1056
|
+
//#endregion
|
|
1057
|
+
//#region src/shared/permissions/assets/safari-icon.svg?react
|
|
1058
|
+
var SvgSafariIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
988
1059
|
width: 40,
|
|
989
1060
|
height: 40,
|
|
990
1061
|
viewBox: "0 0 40 40",
|
|
991
1062
|
fill: "none",
|
|
992
1063
|
xmlns: "http://www.w3.org/2000/svg",
|
|
993
|
-
...
|
|
1064
|
+
...props,
|
|
994
1065
|
children: [
|
|
995
1066
|
/* @__PURE__ */ u("path", {
|
|
996
1067
|
d: "M19.9999 37.4384C29.6309 37.4384 37.4384 29.631 37.4384 20C37.4384 10.369 29.6309 2.56158 19.9999 2.56158C10.369 2.56158 2.56152 10.369 2.56152 20C2.56152 29.631 10.369 37.4384 19.9999 37.4384Z",
|
|
@@ -1044,13 +1115,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1044
1115
|
})]
|
|
1045
1116
|
})] })
|
|
1046
1117
|
]
|
|
1047
|
-
})
|
|
1118
|
+
});
|
|
1119
|
+
//#endregion
|
|
1120
|
+
//#region src/shared/permissions/assets/settings-icon.svg?react
|
|
1121
|
+
var SvgSettingsIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
1048
1122
|
width: 38,
|
|
1049
1123
|
height: 38,
|
|
1050
1124
|
viewBox: "0 0 38 38",
|
|
1051
1125
|
fill: "none",
|
|
1052
1126
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1053
|
-
...
|
|
1127
|
+
...props,
|
|
1054
1128
|
children: [
|
|
1055
1129
|
/* @__PURE__ */ u("path", {
|
|
1056
1130
|
d: "M24.7434 -0.00317383C28.544 -0.00317383 30.4443 -0.00317383 32.5135 0.630264C34.7517 1.43262 36.5253 3.20624 37.3277 5.44439C38.0033 7.51362 38.0033 9.45616 38.0033 13.2568V24.7431C38.0033 28.5437 38.0033 30.4441 37.3699 32.5133C36.5675 34.7514 34.7939 36.5251 32.5558 37.3274C30.4443 38.0031 28.544 38.0031 24.7434 38.0031H13.257C9.4564 38.0031 7.55609 38.0031 5.48686 37.3696C3.20649 36.5251 1.47509 34.7937 0.630508 32.5133C-0.00292969 30.4863 -0.00292969 28.586 -0.00292969 24.7431V13.2568C-0.00292969 9.45616 -0.00292969 7.55585 0.630508 5.48662C1.47509 3.24847 3.20649 1.47485 5.48686 0.672493C7.51386 -0.00317389 9.41418 -0.00317383 13.257 -0.00317383H24.7434Z",
|
|
@@ -1100,13 +1174,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1100
1174
|
})]
|
|
1101
1175
|
})] })
|
|
1102
1176
|
]
|
|
1103
|
-
})
|
|
1177
|
+
});
|
|
1178
|
+
//#endregion
|
|
1179
|
+
//#region src/shared/permissions/assets/toggle-icon.svg?react
|
|
1180
|
+
var SvgToggleIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
1104
1181
|
width: 38,
|
|
1105
1182
|
height: 38,
|
|
1106
1183
|
viewBox: "0 0 38 38",
|
|
1107
1184
|
fill: "none",
|
|
1108
1185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1109
|
-
...
|
|
1186
|
+
...props,
|
|
1110
1187
|
children: [/* @__PURE__ */ u("g", {
|
|
1111
1188
|
clipPath: "url(#clip0_6848_3728)",
|
|
1112
1189
|
children: [
|
|
@@ -1161,13 +1238,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1161
1238
|
fill: "white"
|
|
1162
1239
|
})
|
|
1163
1240
|
})] })]
|
|
1164
|
-
})
|
|
1241
|
+
});
|
|
1242
|
+
//#endregion
|
|
1243
|
+
//#region src/shared/permissions/assets/opera-another-icon.svg?react
|
|
1244
|
+
var SvgOperaAnotherIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
1165
1245
|
width: 40,
|
|
1166
1246
|
height: 40,
|
|
1167
1247
|
viewBox: "0 0 40 40",
|
|
1168
1248
|
fill: "none",
|
|
1169
1249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1170
|
-
...
|
|
1250
|
+
...props,
|
|
1171
1251
|
children: [
|
|
1172
1252
|
/* @__PURE__ */ u("rect", {
|
|
1173
1253
|
width: 40,
|
|
@@ -1188,13 +1268,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1188
1268
|
fill: "white"
|
|
1189
1269
|
})
|
|
1190
1270
|
]
|
|
1191
|
-
})
|
|
1271
|
+
});
|
|
1272
|
+
//#endregion
|
|
1273
|
+
//#region src/shared/permissions/assets/opera-camera-icon.svg?react
|
|
1274
|
+
var SvgOperaCameraIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
1192
1275
|
width: 40,
|
|
1193
1276
|
height: 40,
|
|
1194
1277
|
viewBox: "0 0 40 40",
|
|
1195
1278
|
fill: "none",
|
|
1196
1279
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1197
|
-
...
|
|
1280
|
+
...props,
|
|
1198
1281
|
children: [
|
|
1199
1282
|
/* @__PURE__ */ u("rect", {
|
|
1200
1283
|
width: 40,
|
|
@@ -1217,13 +1300,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1217
1300
|
mask: "url(#path-2-inside-1_6845_3468)"
|
|
1218
1301
|
})
|
|
1219
1302
|
]
|
|
1220
|
-
})
|
|
1303
|
+
});
|
|
1304
|
+
//#endregion
|
|
1305
|
+
//#region src/shared/permissions/assets/opera-radio-icon.svg?react
|
|
1306
|
+
var SvgOperaRadioIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
1221
1307
|
width: 40,
|
|
1222
1308
|
height: 40,
|
|
1223
1309
|
viewBox: "0 0 40 40",
|
|
1224
1310
|
fill: "none",
|
|
1225
1311
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1226
|
-
...
|
|
1312
|
+
...props,
|
|
1227
1313
|
children: [
|
|
1228
1314
|
/* @__PURE__ */ u("rect", {
|
|
1229
1315
|
width: 40,
|
|
@@ -1244,13 +1330,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1244
1330
|
fill: "#006AFF"
|
|
1245
1331
|
})
|
|
1246
1332
|
]
|
|
1247
|
-
})
|
|
1333
|
+
});
|
|
1334
|
+
//#endregion
|
|
1335
|
+
//#region src/shared/permissions/assets/opera-browser-icon.svg?react
|
|
1336
|
+
var SvgOperaBrowserIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
1248
1337
|
width: 40,
|
|
1249
1338
|
height: 40,
|
|
1250
1339
|
viewBox: "0 0 40 40",
|
|
1251
1340
|
fill: "none",
|
|
1252
1341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1253
|
-
...
|
|
1342
|
+
...props,
|
|
1254
1343
|
children: [
|
|
1255
1344
|
/* @__PURE__ */ u("rect", {
|
|
1256
1345
|
width: 40,
|
|
@@ -1467,13 +1556,16 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1467
1556
|
})
|
|
1468
1557
|
}) })
|
|
1469
1558
|
]
|
|
1470
|
-
})
|
|
1559
|
+
});
|
|
1560
|
+
//#endregion
|
|
1561
|
+
//#region src/shared/permissions/assets/android-settings-outline-icon.svg?react
|
|
1562
|
+
var SvgAndroidSettingsOutlineIcon = (props) => /* @__PURE__ */ u("svg", {
|
|
1471
1563
|
width: 40,
|
|
1472
1564
|
height: 40,
|
|
1473
1565
|
viewBox: "0 0 40 40",
|
|
1474
1566
|
fill: "none",
|
|
1475
1567
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1476
|
-
...
|
|
1568
|
+
...props,
|
|
1477
1569
|
children: [/* @__PURE__ */ u("rect", {
|
|
1478
1570
|
width: 40,
|
|
1479
1571
|
height: 40,
|
|
@@ -1483,30 +1575,31 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1483
1575
|
d: "M20.0002 10C19.2117 10 18.4515 10.0997 17.7258 10.2686C17.5744 10.3039 17.4378 10.3853 17.3348 10.5017C17.2317 10.618 17.1674 10.7635 17.1506 10.918L16.9914 12.3691C16.9393 12.8447 16.6647 13.2654 16.2502 13.5049C15.8366 13.7439 15.3345 13.7703 14.8967 13.5781H14.8957L13.5627 12.9912C13.4205 12.9286 13.2624 12.9118 13.1102 12.9429C12.958 12.974 12.8193 13.0517 12.7131 13.165C11.6768 14.2698 10.8815 15.6075 10.4299 17.1006C10.3849 17.2492 10.3871 17.4081 10.4363 17.5554C10.4854 17.7027 10.5791 17.8311 10.7043 17.9229L11.8869 18.79C12.2731 19.074 12.5002 19.5214 12.5002 20C12.5002 20.4789 12.2731 20.9267 11.8869 21.21L10.7043 22.0762C10.5791 22.168 10.4854 22.2964 10.4363 22.4437C10.3871 22.5909 10.3849 22.7498 10.4299 22.8984C10.8815 24.3913 11.6762 25.7301 12.7131 26.835C12.8194 26.9482 12.9582 27.0256 13.1104 27.0566C13.2626 27.0875 13.4206 27.0705 13.5627 27.0078L14.8957 26.4209C15.3337 26.2283 15.8363 26.256 16.2502 26.4951C16.6647 26.7346 16.9393 27.1553 16.9914 27.6309L17.1506 29.082C17.1675 29.2362 17.2318 29.3814 17.3346 29.4975C17.4375 29.6136 17.5738 29.695 17.7248 29.7305C18.4509 29.8999 19.2117 30 20.0002 30C20.7886 30 21.5489 29.9003 22.2746 29.7314C22.4259 29.6961 22.5626 29.6147 22.6656 29.4983C22.7687 29.382 22.833 29.2365 22.8498 29.082L23.009 27.6309C23.061 27.1553 23.3357 26.7346 23.7502 26.4951C24.1638 26.2561 24.6659 26.2287 25.1037 26.4209L26.4377 27.0078C26.5798 27.0705 26.7378 27.0875 26.89 27.0566C27.0422 27.0256 27.181 26.9482 27.2873 26.835C28.3236 25.7302 29.1189 24.3915 29.5705 22.8984C29.6155 22.7498 29.6133 22.5909 29.5641 22.4437C29.515 22.2964 29.4213 22.168 29.2961 22.0762L28.1135 21.21C27.7273 20.9267 27.5002 20.4789 27.5002 20C27.5002 19.5211 27.7273 19.0733 28.1135 18.79L29.2961 17.9238C29.4213 17.832 29.515 17.7036 29.5641 17.5563C29.6133 17.4091 29.6155 17.2502 29.5705 17.1016C29.1189 15.6085 28.3236 14.2698 27.2873 13.165C27.181 13.0518 27.0422 12.9744 26.89 12.9434C26.7378 12.9125 26.5798 12.9295 26.4377 12.9922L25.1037 13.5791C24.6659 13.7713 24.1638 13.7439 23.7502 13.5049C23.3357 13.2654 23.061 12.8447 23.009 12.3691L22.8498 10.918C22.8329 10.7638 22.7686 10.6186 22.6657 10.5025C22.5629 10.3864 22.4266 10.305 22.2756 10.2695C21.5495 10.1001 20.7886 10 20.0002 10ZM20.0002 11.5C20.4873 11.5 20.9552 11.5874 21.424 11.6699L21.5178 12.5322C21.6217 13.4817 22.1737 14.3262 23.0002 14.8037C23.8273 15.2816 24.8342 15.3365 25.7082 14.9521L26.5012 14.6035C27.1101 15.3347 27.5922 16.1606 27.9289 17.0654L27.2258 17.5811C26.456 18.1458 26.0002 19.0449 26.0002 20C26.0002 20.9551 26.456 21.8542 27.2258 22.4189L27.9289 22.9346C27.5922 23.8394 27.1101 24.6653 26.5012 25.3965L25.7082 25.0479C24.8342 24.6635 23.8273 24.7184 23.0002 25.1963C22.1737 25.6738 21.6217 26.5183 21.5178 27.4678L21.424 28.3301C20.9552 28.4123 20.4871 28.5 20.0002 28.5C19.513 28.5 19.0452 28.4126 18.5764 28.3301L18.4826 27.4678C18.3787 26.5183 17.8267 25.6738 17.0002 25.1963C16.1731 24.7184 15.1661 24.6635 14.2922 25.0479L13.4992 25.3965C12.8902 24.6654 12.4082 23.8395 12.0715 22.9346L12.7746 22.4189C13.5444 21.8542 14.0002 20.9551 14.0002 20C14.0002 19.0449 13.5441 18.1452 12.7746 17.5801L12.0715 17.0645C12.4084 16.1593 12.8909 15.3339 13.5002 14.6025L14.2922 14.9512C15.1661 15.3355 16.1731 15.2816 17.0002 14.8037C17.8267 14.3262 18.3787 13.4817 18.4826 12.5322L18.5764 11.6699C19.0452 11.5877 19.5133 11.5 20.0002 11.5ZM20.0002 16C17.7999 16 16.0002 17.7997 16.0002 20C16.0002 22.2003 17.7999 24 20.0002 24C22.2005 24 24.0002 22.2003 24.0002 20C24.0002 17.7997 22.2005 16 20.0002 16ZM20.0002 17.5C21.3898 17.5 22.5002 18.6104 22.5002 20C22.5002 21.3896 21.3898 22.5 20.0002 22.5C18.6106 22.5 17.5002 21.3896 17.5002 20C17.5002 18.6104 18.6106 17.5 20.0002 17.5Z",
|
|
1484
1576
|
fill: "#646464"
|
|
1485
1577
|
})]
|
|
1486
|
-
})
|
|
1578
|
+
});
|
|
1579
|
+
var DENIED_MOBILE_STEPS_PER_BROWSER_LOOKUP = {
|
|
1487
1580
|
ios: {
|
|
1488
1581
|
safari: [
|
|
1489
1582
|
{
|
|
1490
1583
|
uuid: "1",
|
|
1491
|
-
icon:
|
|
1584
|
+
icon: SvgSettingsIcon,
|
|
1492
1585
|
instructionKey: "open",
|
|
1493
1586
|
boldKey: "idv2.permissions.denied.settings"
|
|
1494
1587
|
},
|
|
1495
1588
|
{
|
|
1496
1589
|
uuid: "2",
|
|
1497
|
-
icon:
|
|
1590
|
+
icon: SvgSafariIcon,
|
|
1498
1591
|
instructionKey: "scroll",
|
|
1499
1592
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1500
1593
|
},
|
|
1501
1594
|
{
|
|
1502
1595
|
uuid: "3",
|
|
1503
|
-
icon:
|
|
1596
|
+
icon: SvgCameraIos,
|
|
1504
1597
|
instructionKey: "tap",
|
|
1505
1598
|
boldKey: "idv2.permissions.denied.camera"
|
|
1506
1599
|
},
|
|
1507
1600
|
{
|
|
1508
1601
|
uuid: "4",
|
|
1509
|
-
icon:
|
|
1602
|
+
icon: SvgToggleIcon,
|
|
1510
1603
|
instructionKey: "changeTo",
|
|
1511
1604
|
boldKey: "idv2.permissions.denied.allow",
|
|
1512
1605
|
additionalTextKey: "idv2.permissions.denied.or",
|
|
@@ -1514,7 +1607,7 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1514
1607
|
},
|
|
1515
1608
|
{
|
|
1516
1609
|
uuid: "5",
|
|
1517
|
-
icon:
|
|
1610
|
+
icon: SvgSafariIcon,
|
|
1518
1611
|
instructionKey: "returnPress",
|
|
1519
1612
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1520
1613
|
}
|
|
@@ -1522,25 +1615,25 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1522
1615
|
chrome: [
|
|
1523
1616
|
{
|
|
1524
1617
|
uuid: "1",
|
|
1525
|
-
icon:
|
|
1618
|
+
icon: SvgSettingsIcon,
|
|
1526
1619
|
instructionKey: "open",
|
|
1527
1620
|
boldKey: "idv2.permissions.denied.settings"
|
|
1528
1621
|
},
|
|
1529
1622
|
{
|
|
1530
1623
|
uuid: "2",
|
|
1531
|
-
icon:
|
|
1624
|
+
icon: SvgChromeIcon,
|
|
1532
1625
|
instructionKey: "scroll",
|
|
1533
1626
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1534
1627
|
},
|
|
1535
1628
|
{
|
|
1536
1629
|
uuid: "3",
|
|
1537
|
-
icon:
|
|
1630
|
+
icon: SvgCameraIos,
|
|
1538
1631
|
instructionKey: "tap",
|
|
1539
1632
|
boldKey: "idv2.permissions.denied.camera"
|
|
1540
1633
|
},
|
|
1541
1634
|
{
|
|
1542
1635
|
uuid: "4",
|
|
1543
|
-
icon:
|
|
1636
|
+
icon: SvgToggleIcon,
|
|
1544
1637
|
instructionKey: "changeTo",
|
|
1545
1638
|
boldKey: "idv2.permissions.denied.allow",
|
|
1546
1639
|
additionalTextKey: "idv2.permissions.denied.or",
|
|
@@ -1548,7 +1641,7 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1548
1641
|
},
|
|
1549
1642
|
{
|
|
1550
1643
|
uuid: "5",
|
|
1551
|
-
icon:
|
|
1644
|
+
icon: SvgChromeIcon,
|
|
1552
1645
|
instructionKey: "returnPress",
|
|
1553
1646
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1554
1647
|
}
|
|
@@ -1556,25 +1649,25 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1556
1649
|
edge: [
|
|
1557
1650
|
{
|
|
1558
1651
|
uuid: "1",
|
|
1559
|
-
icon:
|
|
1652
|
+
icon: SvgSettingsIcon,
|
|
1560
1653
|
instructionKey: "open",
|
|
1561
1654
|
boldKey: "idv2.permissions.denied.settings"
|
|
1562
1655
|
},
|
|
1563
1656
|
{
|
|
1564
1657
|
uuid: "2",
|
|
1565
|
-
icon:
|
|
1658
|
+
icon: SvgChromeIcon,
|
|
1566
1659
|
instructionKey: "scroll",
|
|
1567
1660
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1568
1661
|
},
|
|
1569
1662
|
{
|
|
1570
1663
|
uuid: "3",
|
|
1571
|
-
icon:
|
|
1664
|
+
icon: SvgCameraIos,
|
|
1572
1665
|
instructionKey: "tap",
|
|
1573
1666
|
boldKey: "idv2.permissions.denied.camera"
|
|
1574
1667
|
},
|
|
1575
1668
|
{
|
|
1576
1669
|
uuid: "4",
|
|
1577
|
-
icon:
|
|
1670
|
+
icon: SvgToggleIcon,
|
|
1578
1671
|
instructionKey: "changeTo",
|
|
1579
1672
|
boldKey: "idv2.permissions.denied.allow",
|
|
1580
1673
|
additionalTextKey: "idv2.permissions.denied.or",
|
|
@@ -1582,7 +1675,7 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1582
1675
|
},
|
|
1583
1676
|
{
|
|
1584
1677
|
uuid: "5",
|
|
1585
|
-
icon:
|
|
1678
|
+
icon: SvgChromeIcon,
|
|
1586
1679
|
instructionKey: "returnPress",
|
|
1587
1680
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1588
1681
|
}
|
|
@@ -1590,25 +1683,25 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1590
1683
|
firefox: [
|
|
1591
1684
|
{
|
|
1592
1685
|
uuid: "1",
|
|
1593
|
-
icon:
|
|
1686
|
+
icon: SvgSettingsIcon,
|
|
1594
1687
|
instructionKey: "open",
|
|
1595
1688
|
boldKey: "idv2.permissions.denied.settings"
|
|
1596
1689
|
},
|
|
1597
1690
|
{
|
|
1598
1691
|
uuid: "2",
|
|
1599
|
-
icon:
|
|
1692
|
+
icon: SvgFirefoxIcon,
|
|
1600
1693
|
instructionKey: "scroll",
|
|
1601
1694
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1602
1695
|
},
|
|
1603
1696
|
{
|
|
1604
1697
|
uuid: "3",
|
|
1605
|
-
icon:
|
|
1698
|
+
icon: SvgCameraIos,
|
|
1606
1699
|
instructionKey: "tap",
|
|
1607
1700
|
boldKey: "idv2.permissions.denied.camera"
|
|
1608
1701
|
},
|
|
1609
1702
|
{
|
|
1610
1703
|
uuid: "4",
|
|
1611
|
-
icon:
|
|
1704
|
+
icon: SvgToggleIcon,
|
|
1612
1705
|
instructionKey: "changeTo",
|
|
1613
1706
|
boldKey: "idv2.permissions.denied.allow",
|
|
1614
1707
|
additionalTextKey: "idv2.permissions.denied.or",
|
|
@@ -1616,7 +1709,7 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1616
1709
|
},
|
|
1617
1710
|
{
|
|
1618
1711
|
uuid: "5",
|
|
1619
|
-
icon:
|
|
1712
|
+
icon: SvgFirefoxIcon,
|
|
1620
1713
|
instructionKey: "returnPress",
|
|
1621
1714
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1622
1715
|
}
|
|
@@ -1624,25 +1717,25 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1624
1717
|
opera: [
|
|
1625
1718
|
{
|
|
1626
1719
|
uuid: "1",
|
|
1627
|
-
icon:
|
|
1720
|
+
icon: SvgSettingsIcon,
|
|
1628
1721
|
instructionKey: "open",
|
|
1629
1722
|
boldKey: "idv2.permissions.denied.settings"
|
|
1630
1723
|
},
|
|
1631
1724
|
{
|
|
1632
1725
|
uuid: "2",
|
|
1633
|
-
icon:
|
|
1726
|
+
icon: SvgOperaBrowserIcon,
|
|
1634
1727
|
instructionKey: "scroll",
|
|
1635
1728
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1636
1729
|
},
|
|
1637
1730
|
{
|
|
1638
1731
|
uuid: "3",
|
|
1639
|
-
icon:
|
|
1732
|
+
icon: SvgCameraIos,
|
|
1640
1733
|
instructionKey: "tap",
|
|
1641
1734
|
boldKey: "idv2.permissions.denied.camera"
|
|
1642
1735
|
},
|
|
1643
1736
|
{
|
|
1644
1737
|
uuid: "4",
|
|
1645
|
-
icon:
|
|
1738
|
+
icon: SvgToggleIcon,
|
|
1646
1739
|
instructionKey: "changeTo",
|
|
1647
1740
|
boldKey: "idv2.permissions.denied.allow",
|
|
1648
1741
|
additionalTextKey: "idv2.permissions.denied.or",
|
|
@@ -1650,7 +1743,7 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1650
1743
|
},
|
|
1651
1744
|
{
|
|
1652
1745
|
uuid: "5",
|
|
1653
|
-
icon:
|
|
1746
|
+
icon: SvgOperaBrowserIcon,
|
|
1654
1747
|
instructionKey: "returnPress",
|
|
1655
1748
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1656
1749
|
}
|
|
@@ -1658,25 +1751,25 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1658
1751
|
other: [
|
|
1659
1752
|
{
|
|
1660
1753
|
uuid: "1",
|
|
1661
|
-
icon:
|
|
1754
|
+
icon: SvgSettingsIcon,
|
|
1662
1755
|
instructionKey: "open",
|
|
1663
1756
|
boldKey: "idv2.permissions.denied.settings"
|
|
1664
1757
|
},
|
|
1665
1758
|
{
|
|
1666
1759
|
uuid: "2",
|
|
1667
|
-
icon:
|
|
1760
|
+
icon: SvgChromeIcon,
|
|
1668
1761
|
instructionKey: "scroll",
|
|
1669
1762
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1670
1763
|
},
|
|
1671
1764
|
{
|
|
1672
1765
|
uuid: "3",
|
|
1673
|
-
icon:
|
|
1766
|
+
icon: SvgCameraIos,
|
|
1674
1767
|
instructionKey: "tap",
|
|
1675
1768
|
boldKey: "idv2.permissions.denied.camera"
|
|
1676
1769
|
},
|
|
1677
1770
|
{
|
|
1678
1771
|
uuid: "4",
|
|
1679
|
-
icon:
|
|
1772
|
+
icon: SvgToggleIcon,
|
|
1680
1773
|
instructionKey: "changeTo",
|
|
1681
1774
|
boldKey: "idv2.permissions.denied.allow",
|
|
1682
1775
|
additionalTextKey: "idv2.permissions.denied.or",
|
|
@@ -1684,7 +1777,7 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1684
1777
|
},
|
|
1685
1778
|
{
|
|
1686
1779
|
uuid: "5",
|
|
1687
|
-
icon:
|
|
1780
|
+
icon: SvgChromeIcon,
|
|
1688
1781
|
instructionKey: "returnPress",
|
|
1689
1782
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1690
1783
|
}
|
|
@@ -1694,26 +1787,26 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1694
1787
|
chrome: [
|
|
1695
1788
|
{
|
|
1696
1789
|
uuid: "1",
|
|
1697
|
-
icon:
|
|
1790
|
+
icon: SvgAndroidDotsIcon,
|
|
1698
1791
|
instructionKey: "tap",
|
|
1699
1792
|
boldKey: "idv2.permissions.denied.dots",
|
|
1700
1793
|
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1701
1794
|
},
|
|
1702
1795
|
{
|
|
1703
1796
|
uuid: "2",
|
|
1704
|
-
icon:
|
|
1797
|
+
icon: SvgAndroidSettingsIcon,
|
|
1705
1798
|
instructionKey: "tap",
|
|
1706
1799
|
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1707
1800
|
},
|
|
1708
1801
|
{
|
|
1709
1802
|
uuid: "3",
|
|
1710
|
-
icon:
|
|
1803
|
+
icon: SvgAndroidToggleIcon,
|
|
1711
1804
|
instructionKey: "tap",
|
|
1712
1805
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1713
1806
|
},
|
|
1714
1807
|
{
|
|
1715
1808
|
uuid: "4",
|
|
1716
|
-
icon:
|
|
1809
|
+
icon: SvgChromeIcon,
|
|
1717
1810
|
instructionKey: "returnPress",
|
|
1718
1811
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1719
1812
|
}
|
|
@@ -1721,26 +1814,26 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1721
1814
|
firefox: [
|
|
1722
1815
|
{
|
|
1723
1816
|
uuid: "1",
|
|
1724
|
-
icon:
|
|
1817
|
+
icon: SvgAndroidDotsIcon,
|
|
1725
1818
|
instructionKey: "tap",
|
|
1726
1819
|
boldKey: "idv2.permissions.denied.dots",
|
|
1727
1820
|
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1728
1821
|
},
|
|
1729
1822
|
{
|
|
1730
1823
|
uuid: "2",
|
|
1731
|
-
icon:
|
|
1824
|
+
icon: SvgAndroidSettingsOutlineIcon,
|
|
1732
1825
|
instructionKey: "tap",
|
|
1733
1826
|
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1734
1827
|
},
|
|
1735
1828
|
{
|
|
1736
1829
|
uuid: "3",
|
|
1737
|
-
icon:
|
|
1830
|
+
icon: SvgFirefoxRadioIcon,
|
|
1738
1831
|
instructionKey: "tap",
|
|
1739
1832
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1740
1833
|
},
|
|
1741
1834
|
{
|
|
1742
1835
|
uuid: "4",
|
|
1743
|
-
icon:
|
|
1836
|
+
icon: SvgFirefoxIcon,
|
|
1744
1837
|
instructionKey: "returnPress",
|
|
1745
1838
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1746
1839
|
}
|
|
@@ -1748,26 +1841,26 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1748
1841
|
edge: [
|
|
1749
1842
|
{
|
|
1750
1843
|
uuid: "1",
|
|
1751
|
-
icon:
|
|
1844
|
+
icon: SvgAndroidDotsIcon,
|
|
1752
1845
|
instructionKey: "tap",
|
|
1753
1846
|
boldKey: "idv2.permissions.denied.dots",
|
|
1754
1847
|
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1755
1848
|
},
|
|
1756
1849
|
{
|
|
1757
1850
|
uuid: "2",
|
|
1758
|
-
icon:
|
|
1851
|
+
icon: SvgAndroidSettingsIcon,
|
|
1759
1852
|
instructionKey: "tap",
|
|
1760
1853
|
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1761
1854
|
},
|
|
1762
1855
|
{
|
|
1763
1856
|
uuid: "3",
|
|
1764
|
-
icon:
|
|
1857
|
+
icon: SvgAndroidToggleIcon,
|
|
1765
1858
|
instructionKey: "tap",
|
|
1766
1859
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1767
1860
|
},
|
|
1768
1861
|
{
|
|
1769
1862
|
uuid: "4",
|
|
1770
|
-
icon:
|
|
1863
|
+
icon: SvgChromeIcon,
|
|
1771
1864
|
instructionKey: "returnPress",
|
|
1772
1865
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1773
1866
|
}
|
|
@@ -1775,26 +1868,26 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1775
1868
|
opera: [
|
|
1776
1869
|
{
|
|
1777
1870
|
uuid: "1",
|
|
1778
|
-
icon:
|
|
1871
|
+
icon: SvgAndroidSettingsIcon,
|
|
1779
1872
|
instructionKey: "open",
|
|
1780
1873
|
boldKey: "idv2.permissions.denied.settingsApp",
|
|
1781
1874
|
additionalTextKey: "idv2.permissions.denied.onDevice"
|
|
1782
1875
|
},
|
|
1783
1876
|
{
|
|
1784
1877
|
uuid: "2",
|
|
1785
|
-
icon:
|
|
1878
|
+
icon: SvgOperaAnotherIcon,
|
|
1786
1879
|
instructionKey: "tap",
|
|
1787
1880
|
boldKey: "idv2.permissions.denied.opera.appsOpera"
|
|
1788
1881
|
},
|
|
1789
1882
|
{
|
|
1790
1883
|
uuid: "3",
|
|
1791
|
-
icon:
|
|
1884
|
+
icon: SvgOperaCameraIcon,
|
|
1792
1885
|
instructionKey: "tap",
|
|
1793
1886
|
boldKey: "idv2.permissions.denied.persmissionsCamera"
|
|
1794
1887
|
},
|
|
1795
1888
|
{
|
|
1796
1889
|
uuid: "4",
|
|
1797
|
-
icon:
|
|
1890
|
+
icon: SvgOperaRadioIcon,
|
|
1798
1891
|
instructionKey: "setTo",
|
|
1799
1892
|
boldKey: "idv2.permissions.allowOnlyWhileUsingTheApp",
|
|
1800
1893
|
additionalTextKey: "idv2.permissions.denied.or",
|
|
@@ -1802,7 +1895,7 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1802
1895
|
},
|
|
1803
1896
|
{
|
|
1804
1897
|
uuid: "5",
|
|
1805
|
-
icon:
|
|
1898
|
+
icon: SvgOperaBrowserIcon,
|
|
1806
1899
|
instructionKey: "returnPress",
|
|
1807
1900
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1808
1901
|
}
|
|
@@ -1810,26 +1903,26 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1810
1903
|
other: [
|
|
1811
1904
|
{
|
|
1812
1905
|
uuid: "1",
|
|
1813
|
-
icon:
|
|
1906
|
+
icon: SvgAndroidDotsIcon,
|
|
1814
1907
|
instructionKey: "tap",
|
|
1815
1908
|
boldKey: "idv2.permissions.denied.dots",
|
|
1816
1909
|
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1817
1910
|
},
|
|
1818
1911
|
{
|
|
1819
1912
|
uuid: "2",
|
|
1820
|
-
icon:
|
|
1913
|
+
icon: SvgAndroidSettingsIcon,
|
|
1821
1914
|
instructionKey: "tap",
|
|
1822
1915
|
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1823
1916
|
},
|
|
1824
1917
|
{
|
|
1825
1918
|
uuid: "3",
|
|
1826
|
-
icon:
|
|
1919
|
+
icon: SvgAndroidToggleIcon,
|
|
1827
1920
|
instructionKey: "tap",
|
|
1828
1921
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1829
1922
|
},
|
|
1830
1923
|
{
|
|
1831
1924
|
uuid: "4",
|
|
1832
|
-
icon:
|
|
1925
|
+
icon: SvgChromeIcon,
|
|
1833
1926
|
instructionKey: "returnPress",
|
|
1834
1927
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1835
1928
|
}
|
|
@@ -1837,7 +1930,7 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1837
1930
|
samsung_browser: [
|
|
1838
1931
|
{
|
|
1839
1932
|
uuid: "1",
|
|
1840
|
-
icon:
|
|
1933
|
+
icon: SvgAndroidSettingsOutlineIcon,
|
|
1841
1934
|
instructionKey: "tap",
|
|
1842
1935
|
boldKey: "≡<arrow/>",
|
|
1843
1936
|
additionalTextKey: "",
|
|
@@ -1845,57 +1938,63 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1845
1938
|
},
|
|
1846
1939
|
{
|
|
1847
1940
|
uuid: "2",
|
|
1848
|
-
icon:
|
|
1941
|
+
icon: SvgAndroidSettingsOutlineIcon,
|
|
1849
1942
|
instructionKey: "tap",
|
|
1850
1943
|
boldKey: "idv2.permissions.denied.sitesAndDownloads"
|
|
1851
1944
|
},
|
|
1852
1945
|
{
|
|
1853
1946
|
uuid: "3",
|
|
1854
|
-
icon:
|
|
1947
|
+
icon: SvgAndroidSettingsOutlineIcon,
|
|
1855
1948
|
instructionKey: "tap",
|
|
1856
1949
|
boldKey: "idv2.permissions.denied.sitePermissions"
|
|
1857
1950
|
},
|
|
1858
1951
|
{
|
|
1859
1952
|
uuid: "4",
|
|
1860
|
-
icon:
|
|
1953
|
+
icon: SvgSamsungToggleIcon,
|
|
1861
1954
|
instructionKey: "tap",
|
|
1862
1955
|
boldKey: "idv2.permissions.denied.cameraFindSiteAllow"
|
|
1863
1956
|
},
|
|
1864
1957
|
{
|
|
1865
1958
|
uuid: "5",
|
|
1866
|
-
icon:
|
|
1959
|
+
icon: SvgSamsungInternetIcon,
|
|
1867
1960
|
instructionKey: "returnPress",
|
|
1868
1961
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1869
1962
|
}
|
|
1870
1963
|
]
|
|
1871
1964
|
},
|
|
1872
1965
|
desktop: null
|
|
1873
|
-
}
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
t
|
|
1966
|
+
};
|
|
1967
|
+
//#endregion
|
|
1968
|
+
//#region src/shared/permissions/camera/deniedMobile.tsx
|
|
1969
|
+
var getStepAriaLabel = (t, step) => {
|
|
1970
|
+
const raw = [
|
|
1971
|
+
t(`idv2.permissions.denied.${step.instructionKey}`),
|
|
1972
|
+
t(step.boldKey),
|
|
1973
|
+
step.additionalTextKey ? t(step.additionalTextKey) : "",
|
|
1974
|
+
step.secondBoldKey ? t(`idv2.permissions.${step.secondBoldKey}`) : ""
|
|
1879
1975
|
].filter(Boolean).join(" ");
|
|
1880
|
-
return new DOMParser().parseFromString(
|
|
1881
|
-
}
|
|
1882
|
-
|
|
1976
|
+
return new DOMParser().parseFromString(raw, "text/html").body.textContent || "";
|
|
1977
|
+
};
|
|
1978
|
+
var DeniedMobile = ({ platform }) => {
|
|
1979
|
+
const { t } = useTranslation();
|
|
1980
|
+
const browser = getBrowser();
|
|
1981
|
+
const steps = DENIED_MOBILE_STEPS_PER_BROWSER_LOOKUP[platform]?.[browser] ?? [];
|
|
1883
1982
|
return /* @__PURE__ */ u("div", {
|
|
1884
1983
|
class: "IncodeDeniedInstructionsContainer",
|
|
1885
1984
|
"data-testid": "denied-instructions-mobile",
|
|
1886
1985
|
children: /* @__PURE__ */ u("ol", {
|
|
1887
1986
|
class: "IncodeDeniedStepsList",
|
|
1888
|
-
children:
|
|
1987
|
+
children: steps.map(({ icon: Icon, ...step }) => /* @__PURE__ */ u("li", {
|
|
1889
1988
|
class: "IncodeDeniedStepItem",
|
|
1890
1989
|
children: [
|
|
1891
1990
|
/* @__PURE__ */ u("span", {
|
|
1892
1991
|
class: "IncodeSrOnly",
|
|
1893
|
-
children:
|
|
1992
|
+
children: getStepAriaLabel(t, step)
|
|
1894
1993
|
}),
|
|
1895
1994
|
/* @__PURE__ */ u("div", {
|
|
1896
1995
|
class: "IncodeDeniedStepIconContainer",
|
|
1897
1996
|
"aria-hidden": "true",
|
|
1898
|
-
children: /* @__PURE__ */ u(
|
|
1997
|
+
children: /* @__PURE__ */ u(Icon, {
|
|
1899
1998
|
height: 40,
|
|
1900
1999
|
width: 40
|
|
1901
2000
|
})
|
|
@@ -1903,186 +2002,213 @@ var j = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1903
2002
|
/* @__PURE__ */ u("div", {
|
|
1904
2003
|
class: "IncodeDeniedStepTextContainer",
|
|
1905
2004
|
"aria-hidden": "true",
|
|
1906
|
-
children: /* @__PURE__ */ u(
|
|
2005
|
+
children: /* @__PURE__ */ u(TypographyH4, {
|
|
1907
2006
|
className: "IncodeDeniedStepTextSilent",
|
|
1908
2007
|
children: [
|
|
1909
|
-
|
|
2008
|
+
t(`idv2.permissions.denied.${step.instructionKey}`),
|
|
1910
2009
|
" ",
|
|
1911
|
-
/* @__PURE__ */ u(
|
|
1912
|
-
(
|
|
1913
|
-
labelKey:
|
|
1914
|
-
boldLabelKey:
|
|
2010
|
+
/* @__PURE__ */ u(BoldWithArrow, { i18nKey: step.boldKey }),
|
|
2011
|
+
(step.additionalTextKey || step.secondBoldKey) && /* @__PURE__ */ u(DeniedMobileAdditionalText, {
|
|
2012
|
+
labelKey: step.additionalTextKey,
|
|
2013
|
+
boldLabelKey: step.secondBoldKey
|
|
1915
2014
|
})
|
|
1916
2015
|
]
|
|
1917
2016
|
})
|
|
1918
2017
|
})
|
|
1919
2018
|
]
|
|
1920
|
-
},
|
|
2019
|
+
}, step.uuid))
|
|
1921
2020
|
})
|
|
1922
2021
|
});
|
|
1923
2022
|
};
|
|
1924
|
-
function
|
|
1925
|
-
|
|
2023
|
+
function DeniedMobileAdditionalText({ labelKey, boldLabelKey }) {
|
|
2024
|
+
const { t } = useTranslation();
|
|
1926
2025
|
return /* @__PURE__ */ u("span", {
|
|
1927
2026
|
class: "IncodeDeniedStepTextSilent IncodeDeniedStepSubtext",
|
|
1928
2027
|
children: [
|
|
1929
2028
|
" ",
|
|
1930
|
-
|
|
1931
|
-
|
|
2029
|
+
labelKey ? t(labelKey) : "",
|
|
2030
|
+
boldLabelKey && /* @__PURE__ */ u(k, { children: [" ", /* @__PURE__ */ u("strong", { children: t(`idv2.permissions.${boldLabelKey}`) })] })
|
|
1932
2031
|
]
|
|
1933
2032
|
});
|
|
1934
2033
|
}
|
|
1935
2034
|
//#endregion
|
|
1936
2035
|
//#region src/shared/permissions/camera/deniedDesktop.tsx
|
|
1937
|
-
var
|
|
1938
|
-
|
|
1939
|
-
`idv2.permissions.denied.${
|
|
1940
|
-
`idv2.permissions.denied.${
|
|
1941
|
-
`idv2.permissions.denied.${
|
|
1942
|
-
`idv2.permissions.denied.${
|
|
1943
|
-
`idv2.permissions.denied.${
|
|
2036
|
+
var getStepKeys = (browser) => {
|
|
2037
|
+
const baseKeys = [
|
|
2038
|
+
`idv2.permissions.denied.${browser}.firstStep`,
|
|
2039
|
+
`idv2.permissions.denied.${browser}.secondStep`,
|
|
2040
|
+
`idv2.permissions.denied.${browser}.thirdStep`,
|
|
2041
|
+
`idv2.permissions.denied.${browser}.fourthStep`,
|
|
2042
|
+
`idv2.permissions.denied.${browser}.fifthStep`
|
|
1944
2043
|
];
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
2044
|
+
if (browser === "safari") baseKeys.push(`idv2.permissions.denied.${browser}.sixthStep`);
|
|
2045
|
+
return baseKeys;
|
|
2046
|
+
};
|
|
2047
|
+
var stripHtml = (html) => new DOMParser().parseFromString(html, "text/html").body.textContent || "";
|
|
2048
|
+
var renderStepText = (t, stepKey) => {
|
|
2049
|
+
return t(stepKey).split(/(<strong>[^<]+<\/strong>)/g).map((part, index) => {
|
|
2050
|
+
if (part.startsWith("<strong>") && part.endsWith("</strong>")) return /* @__PURE__ */ u("strong", { children: part.slice(8, -9) }, index);
|
|
2051
|
+
return part;
|
|
2052
|
+
});
|
|
2053
|
+
};
|
|
2054
|
+
var DeniedDesktop = () => {
|
|
2055
|
+
const { t } = useTranslation();
|
|
2056
|
+
const stepKeys = getStepKeys(getBrowser());
|
|
1948
2057
|
return /* @__PURE__ */ u("div", {
|
|
1949
2058
|
class: "IncodeDeniedInstructionsContainer",
|
|
1950
2059
|
"data-testid": "denied-instructions-desktop",
|
|
1951
2060
|
children: /* @__PURE__ */ u("ol", {
|
|
1952
2061
|
class: "IncodeDeniedDesktopContainer",
|
|
1953
2062
|
role: "list",
|
|
1954
|
-
children:
|
|
2063
|
+
children: stepKeys.map((stepKey, index) => /* @__PURE__ */ u("li", {
|
|
1955
2064
|
class: "IncodeDeniedDesktopStep",
|
|
1956
|
-
"aria-label":
|
|
2065
|
+
"aria-label": stripHtml(t(stepKey)),
|
|
1957
2066
|
children: [/* @__PURE__ */ u("div", {
|
|
1958
2067
|
class: "IncodeDeniedDesktopStepNumberColumn",
|
|
1959
2068
|
"aria-hidden": "true",
|
|
1960
|
-
children: [/* @__PURE__ */ u(
|
|
2069
|
+
children: [/* @__PURE__ */ u(NumberedStep, { number: index + 1 }), index < stepKeys.length - 1 && /* @__PURE__ */ u("div", { class: "IncodeNumberedStepConnector" })]
|
|
1961
2070
|
}), /* @__PURE__ */ u("p", {
|
|
1962
2071
|
class: "IncodeDeniedStepText",
|
|
1963
2072
|
"aria-hidden": "true",
|
|
1964
|
-
children:
|
|
2073
|
+
children: renderStepText(t, stepKey)
|
|
1965
2074
|
})]
|
|
1966
|
-
},
|
|
2075
|
+
}, stepKey))
|
|
1967
2076
|
})
|
|
1968
2077
|
});
|
|
1969
|
-
}
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
2078
|
+
};
|
|
2079
|
+
//#endregion
|
|
2080
|
+
//#region src/shared/permissions/camera/deniedInstructions.tsx
|
|
2081
|
+
var DeniedInstructions = () => {
|
|
2082
|
+
const deviceClass = getDeviceClass();
|
|
2083
|
+
if (deviceClass === "desktop") return /* @__PURE__ */ u(DeniedDesktop, {});
|
|
2084
|
+
return /* @__PURE__ */ u(DeniedMobile, { platform: deviceClass });
|
|
2085
|
+
};
|
|
2086
|
+
//#endregion
|
|
2087
|
+
//#region src/shared/permissions/camera/denied.tsx
|
|
2088
|
+
var Denied = ({ onRefresh, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
|
|
2089
|
+
const { t } = useTranslation();
|
|
2090
|
+
const titleRef = A(null);
|
|
2091
|
+
y(() => {
|
|
2092
|
+
titleRef.current?.focus();
|
|
2093
|
+
}, []);
|
|
2094
|
+
return /* @__PURE__ */ u(Page, {
|
|
2095
|
+
hideHeader: true,
|
|
2096
|
+
hideFooterBranding: true,
|
|
1979
2097
|
className: "IncodeDeniedPage",
|
|
1980
|
-
"data-testid":
|
|
1981
|
-
"data-permission-status":
|
|
2098
|
+
"data-testid": dataTestId,
|
|
2099
|
+
"data-permission-status": dataPermissionStatus,
|
|
1982
2100
|
children: [/* @__PURE__ */ u("div", {
|
|
1983
2101
|
class: "IncodeDeniedContainer",
|
|
1984
|
-
children: [/* @__PURE__ */ u(
|
|
1985
|
-
ref:
|
|
2102
|
+
children: [/* @__PURE__ */ u(Title, {
|
|
2103
|
+
ref: titleRef,
|
|
1986
2104
|
tabIndex: -1,
|
|
1987
|
-
children:
|
|
1988
|
-
}), /* @__PURE__ */ u(
|
|
1989
|
-
}), /* @__PURE__ */ u(
|
|
1990
|
-
onClick:
|
|
1991
|
-
children:
|
|
2105
|
+
children: t("idv2.permissions.denied.title")
|
|
2106
|
+
}), /* @__PURE__ */ u(DeniedInstructions, {})]
|
|
2107
|
+
}), /* @__PURE__ */ u(Button, {
|
|
2108
|
+
onClick: onRefresh,
|
|
2109
|
+
children: t("idv2.permissions.denied.refreshPage")
|
|
1992
2110
|
})]
|
|
1993
2111
|
});
|
|
1994
|
-
}
|
|
2112
|
+
};
|
|
2113
|
+
//#endregion
|
|
2114
|
+
//#region src/shared/permissions/camera/learnMore.tsx
|
|
2115
|
+
var learnMoreInstructions = [
|
|
1995
2116
|
{
|
|
1996
|
-
icon:
|
|
2117
|
+
icon: SvgCameraIcon,
|
|
1997
2118
|
textKey: "idv2.permissions.learnMorePage.instructions.1"
|
|
1998
2119
|
},
|
|
1999
2120
|
{
|
|
2000
|
-
icon:
|
|
2121
|
+
icon: SvgBankCardIcon,
|
|
2001
2122
|
textKey: "idv2.permissions.learnMorePage.instructions.2"
|
|
2002
2123
|
},
|
|
2003
2124
|
{
|
|
2004
|
-
icon:
|
|
2125
|
+
icon: SvgCheckIcon,
|
|
2005
2126
|
textKey: "idv2.permissions.learnMorePage.instructions.4"
|
|
2006
2127
|
}
|
|
2007
|
-
]
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2128
|
+
];
|
|
2129
|
+
var LearnMore = ({ onAllowPermissions, onQuitProcess, "data-testid": dataTestId, "data-permission-status": dataPermissionStatus }) => {
|
|
2130
|
+
const { t } = useTranslation();
|
|
2131
|
+
const titleRef = A(null);
|
|
2132
|
+
y(() => {
|
|
2133
|
+
titleRef.current?.focus();
|
|
2134
|
+
}, []);
|
|
2135
|
+
return /* @__PURE__ */ u(Page, {
|
|
2012
2136
|
className: "IncodeLearnMorePage",
|
|
2013
|
-
hideHeader:
|
|
2014
|
-
hideFooterBranding:
|
|
2015
|
-
"data-testid":
|
|
2016
|
-
"data-permission-status":
|
|
2137
|
+
hideHeader: true,
|
|
2138
|
+
hideFooterBranding: true,
|
|
2139
|
+
"data-testid": dataTestId,
|
|
2140
|
+
"data-permission-status": dataPermissionStatus,
|
|
2017
2141
|
children: [/* @__PURE__ */ u("div", {
|
|
2018
2142
|
class: "IncodeLearnMoreContainer",
|
|
2019
2143
|
children: [/* @__PURE__ */ u("div", {
|
|
2020
2144
|
class: "IncodeLearnMoreTitleContainer",
|
|
2021
|
-
children: [/* @__PURE__ */ u(
|
|
2022
|
-
ref:
|
|
2145
|
+
children: [/* @__PURE__ */ u(WarningIcon, { size: 32 }), /* @__PURE__ */ u(Title, {
|
|
2146
|
+
ref: titleRef,
|
|
2023
2147
|
tabIndex: -1,
|
|
2024
|
-
children:
|
|
2148
|
+
children: t("idv2.permissions.learnMorePage.title")
|
|
2025
2149
|
})]
|
|
2026
2150
|
}), /* @__PURE__ */ u("ul", {
|
|
2027
2151
|
class: "IncodeLearnMoreInstructionsContainer",
|
|
2028
2152
|
role: "list",
|
|
2029
|
-
children:
|
|
2153
|
+
children: learnMoreInstructions.map(({ icon: Icon, ...instruction }) => /* @__PURE__ */ u("li", {
|
|
2030
2154
|
class: "IncodeLearnMoreInstruction",
|
|
2031
2155
|
children: [/* @__PURE__ */ u("div", {
|
|
2032
2156
|
class: "IncodeLearnMoreInstructionIcon",
|
|
2033
2157
|
"aria-hidden": "true",
|
|
2034
|
-
children: /* @__PURE__ */ u(
|
|
2158
|
+
children: /* @__PURE__ */ u(Icon, {
|
|
2035
2159
|
height: 32,
|
|
2036
2160
|
width: 32
|
|
2037
2161
|
})
|
|
2038
|
-
}), /* @__PURE__ */ u(
|
|
2039
|
-
},
|
|
2162
|
+
}), /* @__PURE__ */ u(TypographyH4, { children: t(instruction.textKey) })]
|
|
2163
|
+
}, instruction.textKey))
|
|
2040
2164
|
})]
|
|
2041
2165
|
}), /* @__PURE__ */ u("div", {
|
|
2042
2166
|
class: "IncodeLearnMoreActions",
|
|
2043
|
-
children: [/* @__PURE__ */ u(
|
|
2167
|
+
children: [/* @__PURE__ */ u(Button, {
|
|
2044
2168
|
variant: "link",
|
|
2045
|
-
onClick:
|
|
2046
|
-
children:
|
|
2047
|
-
}), /* @__PURE__ */ u(
|
|
2048
|
-
onClick:
|
|
2049
|
-
children:
|
|
2169
|
+
onClick: onQuitProcess,
|
|
2170
|
+
children: t("idv2.permissions.learnMorePage.quitProcess")
|
|
2171
|
+
}), /* @__PURE__ */ u(Button, {
|
|
2172
|
+
onClick: onAllowPermissions,
|
|
2173
|
+
children: t("idv2.permissions.learnMorePage.allowPermissions")
|
|
2050
2174
|
})]
|
|
2051
2175
|
})]
|
|
2052
2176
|
});
|
|
2053
2177
|
};
|
|
2054
2178
|
//#endregion
|
|
2055
2179
|
//#region src/shared/permissions/camera/permissionsBottomSheet.tsx
|
|
2056
|
-
function
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2180
|
+
function PermissionsBottomSheet({ onAllowPermissions, onDenyPermissions, showDenyButton = true }) {
|
|
2181
|
+
const { t } = useTranslation();
|
|
2182
|
+
const titleRef = A(null);
|
|
2183
|
+
y(() => {
|
|
2184
|
+
titleRef.current?.focus();
|
|
2185
|
+
}, []);
|
|
2186
|
+
return /* @__PURE__ */ u(BottomSheet, {
|
|
2187
|
+
isOpen: true,
|
|
2062
2188
|
labelledById: "permissions-dialog-title",
|
|
2063
2189
|
children: /* @__PURE__ */ u("div", {
|
|
2064
2190
|
className: "IncodePermissionsBottomSheet",
|
|
2065
2191
|
children: [/* @__PURE__ */ u("div", {
|
|
2066
2192
|
class: "IncodePermissionsBottomSheetTitleContainer",
|
|
2067
|
-
children: [/* @__PURE__ */ u(
|
|
2193
|
+
children: [/* @__PURE__ */ u(TypographyH1, {
|
|
2068
2194
|
id: "permissions-dialog-title",
|
|
2069
2195
|
className: "IncodePermissionsBottomSheetTitle",
|
|
2070
|
-
ref:
|
|
2196
|
+
ref: titleRef,
|
|
2071
2197
|
tabIndex: -1,
|
|
2072
|
-
children:
|
|
2198
|
+
children: t("idv2.permissions.allowPermissionsV2")
|
|
2073
2199
|
}), /* @__PURE__ */ u("p", {
|
|
2074
2200
|
className: "IncodePermissionsBottomSheetSubtitle",
|
|
2075
|
-
children:
|
|
2201
|
+
children: t("idv2.permissions.subtitleV2")
|
|
2076
2202
|
})]
|
|
2077
2203
|
}), /* @__PURE__ */ u("div", {
|
|
2078
2204
|
class: "IncodePermissionsBottomSheetActions",
|
|
2079
|
-
children: [
|
|
2205
|
+
children: [showDenyButton && /* @__PURE__ */ u(Button, {
|
|
2080
2206
|
variant: "secondary",
|
|
2081
|
-
onClick:
|
|
2082
|
-
children:
|
|
2083
|
-
}), /* @__PURE__ */ u(
|
|
2084
|
-
onClick:
|
|
2085
|
-
children:
|
|
2207
|
+
onClick: onDenyPermissions,
|
|
2208
|
+
children: t("idv2.permissions.dontAllow")
|
|
2209
|
+
}), /* @__PURE__ */ u(Button, {
|
|
2210
|
+
onClick: onAllowPermissions,
|
|
2211
|
+
children: t("idv2.permissions.allowV2")
|
|
2086
2212
|
})]
|
|
2087
2213
|
})]
|
|
2088
2214
|
})
|
|
@@ -2090,75 +2216,87 @@ function ye({ onAllowPermissions: e, onDenyPermissions: n, showDenyButton: r = !
|
|
|
2090
2216
|
}
|
|
2091
2217
|
//#endregion
|
|
2092
2218
|
//#region src/shared/permissions/camera/permissions.tsx
|
|
2093
|
-
var
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
if (
|
|
2097
|
-
|
|
2098
|
-
|
|
2219
|
+
var Permissions = ({ manager, permissionStatus }) => {
|
|
2220
|
+
const isMobileWidth = useIsMobileDeviceWidth();
|
|
2221
|
+
const { t } = useTranslation();
|
|
2222
|
+
if (permissionStatus === "requesting") return /* @__PURE__ */ u(TransitionSpinner, { className: "IncodePermissionsRequestingPage" });
|
|
2223
|
+
if (permissionStatus === "learnMore") return /* @__PURE__ */ u(LearnMore, {
|
|
2224
|
+
onAllowPermissions: () => manager.requestPermission(),
|
|
2225
|
+
onQuitProcess: () => manager.close(),
|
|
2099
2226
|
"data-testid": "permissions",
|
|
2100
2227
|
"data-permission-status": "learnMore"
|
|
2101
2228
|
});
|
|
2102
|
-
if (
|
|
2229
|
+
if (permissionStatus === "denied") return /* @__PURE__ */ u(Denied, {
|
|
2103
2230
|
onRefresh: () => window.location.reload(),
|
|
2104
2231
|
"data-testid": "permissions",
|
|
2105
2232
|
"data-permission-status": "denied"
|
|
2106
2233
|
});
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
/* @__PURE__ */ u(C.Close, { onClick: e.close }),
|
|
2116
|
-
/* @__PURE__ */ u(C.TitleSection, { children: [/* @__PURE__ */ u(C.Title, { children: i("idv2.permissions.allowPermissionsV2") }), /* @__PURE__ */ u(C.Subtitle, { children: i("idv2.permissions.subtitleV2") })] }),
|
|
2117
|
-
/* @__PURE__ */ u(C.Actions, { children: [!a && /* @__PURE__ */ u(b, {
|
|
2234
|
+
const isMotionOnly = permissionStatus === "motionOnly";
|
|
2235
|
+
let ModalComponent = null;
|
|
2236
|
+
if (!isMobileWidth) ModalComponent = /* @__PURE__ */ u(Modal.Root, {
|
|
2237
|
+
open: true,
|
|
2238
|
+
children: /* @__PURE__ */ u(Modal.Content, { children: [
|
|
2239
|
+
/* @__PURE__ */ u(Modal.Close, { onClick: manager.close }),
|
|
2240
|
+
/* @__PURE__ */ u(Modal.TitleSection, { children: [/* @__PURE__ */ u(Modal.Title, { children: t("idv2.permissions.allowPermissionsV2") }), /* @__PURE__ */ u(Modal.Subtitle, { children: t("idv2.permissions.subtitleV2") })] }),
|
|
2241
|
+
/* @__PURE__ */ u(Modal.Actions, { children: [!isMotionOnly && /* @__PURE__ */ u(Button, {
|
|
2118
2242
|
variant: "secondary",
|
|
2119
|
-
onClick:
|
|
2120
|
-
children:
|
|
2121
|
-
}), /* @__PURE__ */ u(
|
|
2243
|
+
onClick: manager.goToLearnMore,
|
|
2244
|
+
children: t("idv2.permissions.dontAllow")
|
|
2245
|
+
}), /* @__PURE__ */ u(Button, {
|
|
2122
2246
|
variant: "primary",
|
|
2123
|
-
onClick:
|
|
2124
|
-
children:
|
|
2247
|
+
onClick: manager.requestPermission,
|
|
2248
|
+
children: t("idv2.permissions.allowV2")
|
|
2125
2249
|
})] })
|
|
2126
2250
|
] })
|
|
2127
|
-
})
|
|
2251
|
+
});
|
|
2252
|
+
else ModalComponent = /* @__PURE__ */ u(PermissionsBottomSheet, {
|
|
2253
|
+
showDenyButton: !isMotionOnly,
|
|
2254
|
+
onAllowPermissions: manager.requestPermission,
|
|
2255
|
+
onDenyPermissions: manager.goToLearnMore
|
|
2256
|
+
});
|
|
2257
|
+
return /* @__PURE__ */ u(Page, {
|
|
2128
2258
|
className: "IncodePermissionsPage",
|
|
2129
|
-
hideHeader:
|
|
2130
|
-
hideFooterBranding:
|
|
2259
|
+
hideHeader: true,
|
|
2260
|
+
hideFooterBranding: true,
|
|
2131
2261
|
"data-testid": "permissions",
|
|
2132
|
-
"data-permission-status":
|
|
2133
|
-
children:
|
|
2262
|
+
"data-permission-status": permissionStatus,
|
|
2263
|
+
children: ModalComponent
|
|
2134
2264
|
});
|
|
2135
|
-
}
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2265
|
+
};
|
|
2266
|
+
//#endregion
|
|
2267
|
+
//#region src/modules/selfie/captureStatusPage.tsx
|
|
2268
|
+
var CaptureStatusPage = ({ icon, title, className, isLoading }) => {
|
|
2269
|
+
const titleRef = A(null);
|
|
2270
|
+
y(() => {
|
|
2271
|
+
titleRef.current?.focus();
|
|
2272
|
+
}, []);
|
|
2273
|
+
return /* @__PURE__ */ u(Page, {
|
|
2274
|
+
className: `IncodeCaptureStatusPage ${className ?? ""}`,
|
|
2275
|
+
children: [/* @__PURE__ */ u(Spacer, { size: 40 }), /* @__PURE__ */ u("div", {
|
|
2142
2276
|
class: "IncodeCaptureStatusContainer",
|
|
2143
|
-
role:
|
|
2144
|
-
"aria-live":
|
|
2277
|
+
role: isLoading ? "status" : void 0,
|
|
2278
|
+
"aria-live": isLoading ? "polite" : void 0,
|
|
2145
2279
|
children: [
|
|
2146
|
-
/* @__PURE__ */ u(
|
|
2147
|
-
|
|
2148
|
-
/* @__PURE__ */ u(
|
|
2149
|
-
/* @__PURE__ */ u(
|
|
2150
|
-
ref:
|
|
2280
|
+
/* @__PURE__ */ u(Spacer, { size: 120 }),
|
|
2281
|
+
icon,
|
|
2282
|
+
/* @__PURE__ */ u(Spacer, { size: 16 }),
|
|
2283
|
+
/* @__PURE__ */ u(Title, {
|
|
2284
|
+
ref: titleRef,
|
|
2151
2285
|
className: "IncodeCaptureStatusTitle",
|
|
2152
2286
|
tabIndex: -1,
|
|
2153
|
-
children:
|
|
2287
|
+
children: title
|
|
2154
2288
|
})
|
|
2155
2289
|
]
|
|
2156
2290
|
})]
|
|
2157
2291
|
});
|
|
2158
|
-
}
|
|
2292
|
+
};
|
|
2293
|
+
//#endregion
|
|
2294
|
+
//#region src/modules/selfie/errorModal.tsx
|
|
2295
|
+
var defaultError = {
|
|
2159
2296
|
title: "Something went wrong",
|
|
2160
2297
|
description: "Please try again later"
|
|
2161
|
-
}
|
|
2298
|
+
};
|
|
2299
|
+
var errorContent = {
|
|
2162
2300
|
MASK_ERROR: {
|
|
2163
2301
|
title: "notifications.mask",
|
|
2164
2302
|
description: "notifications.maskDescription"
|
|
@@ -2191,13 +2329,13 @@ var be = ({ manager: e, permissionStatus: n }) => {
|
|
|
2191
2329
|
title: "notifications.multiple",
|
|
2192
2330
|
description: "notifications.multipleDescription"
|
|
2193
2331
|
},
|
|
2194
|
-
TOO_BLURRY_ERROR:
|
|
2195
|
-
TOO_DARK_ERROR:
|
|
2196
|
-
SERVER_ERROR:
|
|
2197
|
-
FACE_CROPPING_FAILED:
|
|
2198
|
-
FACE_TOO_SMALL:
|
|
2199
|
-
PROCESSING_ERROR:
|
|
2200
|
-
BAD_REQUEST:
|
|
2332
|
+
TOO_BLURRY_ERROR: defaultError,
|
|
2333
|
+
TOO_DARK_ERROR: defaultError,
|
|
2334
|
+
SERVER_ERROR: defaultError,
|
|
2335
|
+
FACE_CROPPING_FAILED: defaultError,
|
|
2336
|
+
FACE_TOO_SMALL: defaultError,
|
|
2337
|
+
PROCESSING_ERROR: defaultError,
|
|
2338
|
+
BAD_REQUEST: defaultError,
|
|
2201
2339
|
USER_IS_NOT_RECOGNIZED: {
|
|
2202
2340
|
title: "notifications.accessDenied",
|
|
2203
2341
|
description: "notifications.accessDeniedDescription"
|
|
@@ -2246,45 +2384,88 @@ var be = ({ manager: e, permissionStatus: n }) => {
|
|
|
2246
2384
|
title: "notifications.selfieImageLowQuality",
|
|
2247
2385
|
description: "notifications.selfieImageLowQualityDescription"
|
|
2248
2386
|
}
|
|
2249
|
-
}
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2387
|
+
};
|
|
2388
|
+
var ERROR_CODES = [
|
|
2389
|
+
"LIVENESS_ERROR",
|
|
2390
|
+
"BRIGHTNESS_ERROR",
|
|
2391
|
+
"LENSES_ERROR",
|
|
2392
|
+
"MASK_ERROR",
|
|
2393
|
+
"CLOSED_EYES_ERROR",
|
|
2394
|
+
"HEAD_COVER_ERROR",
|
|
2395
|
+
"SERVER_ERROR",
|
|
2396
|
+
"FACE_NOT_FOUND",
|
|
2397
|
+
"MULTIPLE_FACES",
|
|
2398
|
+
"TOO_BLURRY_ERROR",
|
|
2399
|
+
"TOO_DARK_ERROR",
|
|
2400
|
+
"USER_IS_NOT_RECOGNIZED",
|
|
2401
|
+
"SPOOF_ATTEMPT_DETECTED",
|
|
2402
|
+
"FACE_TOO_DARK",
|
|
2403
|
+
"LENSES_DETECTED",
|
|
2404
|
+
"FACE_MASK_DETECTED",
|
|
2405
|
+
"CLOSED_EYES_DETECTED",
|
|
2406
|
+
"HEAD_COVER_DETECTED",
|
|
2407
|
+
"FACE_CROPPING_FAILED",
|
|
2408
|
+
"FACE_TOO_SMALL",
|
|
2409
|
+
"FACE_TOO_BLURRY",
|
|
2410
|
+
"BAD_PHOTO_QUALITY",
|
|
2411
|
+
"PROCESSING_ERROR",
|
|
2412
|
+
"BAD_REQUEST",
|
|
2413
|
+
"NONEXISTENT_CUSTOMER",
|
|
2414
|
+
"HINT_NOT_PROVIDED",
|
|
2415
|
+
"SELFIE_IMAGE_LOW_QUALITY"
|
|
2416
|
+
];
|
|
2417
|
+
var parseErrorCode = (error) => {
|
|
2418
|
+
const upperError = error.toUpperCase();
|
|
2419
|
+
if (upperError.includes("HTTP 400") || upperError.includes("BAD_REQUEST")) return "BAD_REQUEST";
|
|
2420
|
+
if (upperError.includes("HTTP 500") || upperError.includes("SERVER_ERROR")) return "SERVER_ERROR";
|
|
2421
|
+
for (const code of ERROR_CODES) if (upperError.includes(code)) return code;
|
|
2254
2422
|
return null;
|
|
2255
|
-
}
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2423
|
+
};
|
|
2424
|
+
var ErrorModal = ({ error, attemptsRemaining, onTryAgain }) => {
|
|
2425
|
+
const { t } = useTranslation();
|
|
2426
|
+
if (!error) return null;
|
|
2427
|
+
const { title, description } = errorContent[parseErrorCode(error) ?? error] ?? defaultError;
|
|
2428
|
+
const titleText = t(title) ?? title;
|
|
2429
|
+
const descriptionText = attemptsRemaining <= 0 ? t("notifications.selfieCaptureFailedDescription") : t(description);
|
|
2430
|
+
return /* @__PURE__ */ u(ErrorContent, {
|
|
2260
2431
|
"data-testid": "face-capture-error-modal",
|
|
2261
|
-
title:
|
|
2262
|
-
description:
|
|
2263
|
-
attemptsRemaining
|
|
2264
|
-
onButtonClick:
|
|
2432
|
+
title: titleText,
|
|
2433
|
+
description: descriptionText,
|
|
2434
|
+
attemptsRemaining,
|
|
2435
|
+
onButtonClick: onTryAgain
|
|
2265
2436
|
});
|
|
2266
|
-
}
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2437
|
+
};
|
|
2438
|
+
//#endregion
|
|
2439
|
+
//#region src/modules/selfie/faceOutline.tsx
|
|
2440
|
+
var FaceOutline = () => {
|
|
2441
|
+
return /* @__PURE__ */ u("svg", {
|
|
2442
|
+
width: "292",
|
|
2443
|
+
height: "272",
|
|
2444
|
+
viewBox: "0 0 292 272",
|
|
2445
|
+
fill: "none",
|
|
2446
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2447
|
+
class: "IncodeFaceOutline",
|
|
2448
|
+
"aria-hidden": "true",
|
|
2449
|
+
children: [/* @__PURE__ */ u("title", { children: "Outline" }), /* @__PURE__ */ u("path", {
|
|
2450
|
+
opacity: "0.8",
|
|
2451
|
+
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",
|
|
2452
|
+
fill: "white"
|
|
2453
|
+
})]
|
|
2454
|
+
});
|
|
2455
|
+
};
|
|
2456
|
+
//#endregion
|
|
2457
|
+
//#region src/modules/selfie/loadingBorder.tsx
|
|
2458
|
+
var IDLE_COLOR = "var(--surface-neutral-100)";
|
|
2459
|
+
var getColor = (borderState) => {
|
|
2460
|
+
switch (borderState) {
|
|
2281
2461
|
case "success":
|
|
2282
2462
|
case "capturing": return "var(--surface-status-positive-500)";
|
|
2283
2463
|
case "loading": return "var(--surface-brand-500)";
|
|
2284
2464
|
case "error": return "var(--surface-status-negative-500)";
|
|
2285
|
-
case "idle": return
|
|
2465
|
+
case "idle": return IDLE_COLOR;
|
|
2286
2466
|
}
|
|
2287
|
-
}
|
|
2467
|
+
};
|
|
2468
|
+
var BorderRing = ({ fill, gradientId, gradientColor }) => /* @__PURE__ */ u("svg", {
|
|
2288
2469
|
width: "100%",
|
|
2289
2470
|
height: "100%",
|
|
2290
2471
|
viewBox: "0 0 335 335",
|
|
@@ -2297,67 +2478,79 @@ var be = ({ manager: e, permissionStatus: n }) => {
|
|
|
2297
2478
|
"clip-rule": "evenodd",
|
|
2298
2479
|
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",
|
|
2299
2480
|
class: "IncodeLoadingBorderPath",
|
|
2300
|
-
fill
|
|
2481
|
+
fill
|
|
2301
2482
|
}),
|
|
2302
|
-
|
|
2303
|
-
id:
|
|
2483
|
+
gradientId && gradientColor ? /* @__PURE__ */ u("defs", { children: /* @__PURE__ */ u("radialGradient", {
|
|
2484
|
+
id: gradientId,
|
|
2304
2485
|
cx: "0",
|
|
2305
2486
|
cy: "0",
|
|
2306
2487
|
r: "1",
|
|
2307
2488
|
gradientUnits: "userSpaceOnUse",
|
|
2308
2489
|
gradientTransform: "translate(240.418 17.4369) rotate(115.674) scale(167.087)",
|
|
2309
|
-
children: [/* @__PURE__ */ u("stop", { "stop-color":
|
|
2490
|
+
children: [/* @__PURE__ */ u("stop", { "stop-color": gradientColor }), /* @__PURE__ */ u("stop", {
|
|
2310
2491
|
offset: "1",
|
|
2311
|
-
"stop-color":
|
|
2492
|
+
"stop-color": gradientColor,
|
|
2312
2493
|
"stop-opacity": "0"
|
|
2313
2494
|
})]
|
|
2314
2495
|
}) }) : null
|
|
2315
2496
|
]
|
|
2316
|
-
})
|
|
2317
|
-
|
|
2497
|
+
});
|
|
2498
|
+
var LoadingBorder = ({ borderState = "idle" }) => {
|
|
2499
|
+
const gradientId = g();
|
|
2500
|
+
const isLoadingOrCapturing = borderState === "loading" || borderState === "capturing";
|
|
2501
|
+
const color = getColor(borderState);
|
|
2502
|
+
const fill = isLoadingOrCapturing ? `url(#${gradientId})` : color;
|
|
2318
2503
|
return /* @__PURE__ */ u("div", {
|
|
2319
2504
|
class: "IncodeLoadingBorder",
|
|
2320
2505
|
"aria-hidden": "true",
|
|
2321
|
-
children: [
|
|
2506
|
+
children: [isLoadingOrCapturing ? /* @__PURE__ */ u("div", {
|
|
2322
2507
|
class: "IncodeLoadingBorderBase",
|
|
2323
|
-
children: /* @__PURE__ */ u(
|
|
2508
|
+
children: /* @__PURE__ */ u(BorderRing, { fill: IDLE_COLOR })
|
|
2324
2509
|
}) : null, /* @__PURE__ */ u("div", {
|
|
2325
|
-
class:
|
|
2326
|
-
children: /* @__PURE__ */ u(
|
|
2327
|
-
fill
|
|
2328
|
-
gradientId:
|
|
2329
|
-
gradientColor:
|
|
2510
|
+
class: cn("IncodeLoadingBorderForeground", { IncodeLoadingBorderSpinning: isLoadingOrCapturing }),
|
|
2511
|
+
children: /* @__PURE__ */ u(BorderRing, {
|
|
2512
|
+
fill,
|
|
2513
|
+
gradientId: isLoadingOrCapturing ? gradientId : void 0,
|
|
2514
|
+
gradientColor: isLoadingOrCapturing ? color : void 0
|
|
2330
2515
|
})
|
|
2331
2516
|
})]
|
|
2332
2517
|
});
|
|
2333
|
-
}
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2518
|
+
};
|
|
2519
|
+
//#endregion
|
|
2520
|
+
//#region src/modules/selfie/cameraButton.tsx
|
|
2521
|
+
var CameraButton = () => {
|
|
2522
|
+
return /* @__PURE__ */ u("div", {
|
|
2523
|
+
class: "IncodeCameraButton",
|
|
2524
|
+
children: /* @__PURE__ */ u("svg", {
|
|
2525
|
+
width: "64",
|
|
2526
|
+
height: "64",
|
|
2527
|
+
viewBox: "0 0 64 64",
|
|
2528
|
+
fill: "none",
|
|
2529
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2530
|
+
"aria-hidden": "true",
|
|
2531
|
+
children: [
|
|
2532
|
+
/* @__PURE__ */ u("circle", {
|
|
2533
|
+
cx: "32",
|
|
2534
|
+
cy: "32",
|
|
2535
|
+
r: "32",
|
|
2536
|
+
class: "IncodeCameraButtonBackground"
|
|
2537
|
+
}),
|
|
2538
|
+
/* @__PURE__ */ u("path", {
|
|
2539
|
+
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",
|
|
2540
|
+
class: "IncodeCameraButtonRing"
|
|
2541
|
+
}),
|
|
2542
|
+
/* @__PURE__ */ u("path", {
|
|
2543
|
+
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",
|
|
2544
|
+
class: "IncodeCameraButtonPath"
|
|
2545
|
+
})
|
|
2546
|
+
]
|
|
2547
|
+
})
|
|
2548
|
+
});
|
|
2549
|
+
};
|
|
2550
|
+
//#endregion
|
|
2551
|
+
//#region src/modules/selfie/manualCaptureButton.tsx
|
|
2552
|
+
var ManualCaptureButton = D(({ onClick, disabled }, ref) => {
|
|
2553
|
+
const { t } = useTranslation();
|
|
2361
2554
|
return /* @__PURE__ */ u("div", {
|
|
2362
2555
|
class: "IncodeSelfieManualCapture",
|
|
2363
2556
|
"data-testid": "manual-capture-button",
|
|
@@ -2365,215 +2558,276 @@ var be = ({ manager: e, permissionStatus: n }) => {
|
|
|
2365
2558
|
/* @__PURE__ */ u("p", {
|
|
2366
2559
|
id: "manual-capture-instructions",
|
|
2367
2560
|
class: "IncodeSelfieManualCaptureText",
|
|
2368
|
-
children:
|
|
2561
|
+
children: t("selfiev2.manualCapture.instructions")
|
|
2369
2562
|
}),
|
|
2370
|
-
/* @__PURE__ */ u(
|
|
2371
|
-
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(
|
|
2372
|
-
ref
|
|
2563
|
+
/* @__PURE__ */ u(Spacer, { size: 32 }),
|
|
2564
|
+
/* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(Button, {
|
|
2565
|
+
ref,
|
|
2373
2566
|
id: "manual-capture-button",
|
|
2374
2567
|
variant: "link",
|
|
2375
|
-
onClick
|
|
2376
|
-
disabled
|
|
2568
|
+
onClick,
|
|
2569
|
+
disabled,
|
|
2377
2570
|
class: "IncodeSelfieManualCaptureButton",
|
|
2378
|
-
"aria-label":
|
|
2379
|
-
children: /* @__PURE__ */ u(
|
|
2571
|
+
"aria-label": t("selfiev2.manualCapture.captureButton"),
|
|
2572
|
+
children: /* @__PURE__ */ u(CameraButton, {})
|
|
2380
2573
|
}) })
|
|
2381
2574
|
]
|
|
2382
2575
|
});
|
|
2383
|
-
})
|
|
2384
|
-
|
|
2576
|
+
});
|
|
2577
|
+
//#endregion
|
|
2578
|
+
//#region src/modules/selfie/notification.tsx
|
|
2579
|
+
var Notification = ({ detectionState, disabled }) => {
|
|
2580
|
+
const { t } = useTranslation();
|
|
2581
|
+
const liveRef = A(null);
|
|
2582
|
+
const lastAnnouncedRef = A({
|
|
2385
2583
|
message: "",
|
|
2386
2584
|
at: 0
|
|
2387
|
-
})
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2585
|
+
});
|
|
2586
|
+
const prevDetectionStateRef = A(detectionState);
|
|
2587
|
+
const prevDisabledRef = A(disabled);
|
|
2588
|
+
const hasAnnouncedInstructionsRef = A(false);
|
|
2589
|
+
const clearTimerRef = A();
|
|
2590
|
+
const outerTimerRef = A();
|
|
2591
|
+
const text = {
|
|
2592
|
+
idle: t("notifications.centerFaceV2"),
|
|
2593
|
+
noFace: t("notifications.faceNotFound"),
|
|
2594
|
+
tooManyFaces: t("notifications.tooManyFaces"),
|
|
2595
|
+
tooClose: t("notifications.moveAway"),
|
|
2596
|
+
tooFar: t("notifications.moveCloser"),
|
|
2597
|
+
blur: t("notifications.onBlur"),
|
|
2598
|
+
dark: t("notifications.onDark"),
|
|
2599
|
+
faceAngle: t("notifications.onFaceAngleV2"),
|
|
2600
|
+
headWear: t("notifications.removeHeadwear"),
|
|
2601
|
+
lenses: t("notifications.removeLenses"),
|
|
2602
|
+
eyesClosed: t("notifications.eyesClosed"),
|
|
2603
|
+
faceMask: t("notifications.mask"),
|
|
2604
|
+
centerFace: t("notifications.centerFaceV2"),
|
|
2605
|
+
getReady: t("notifications.getReady"),
|
|
2606
|
+
capturing: t("idv2.capture.takingPhoto")
|
|
2607
|
+
}[detectionState] ?? "";
|
|
2608
|
+
const announce = q((message) => {
|
|
2609
|
+
const now = Date.now();
|
|
2610
|
+
const last = lastAnnouncedRef.current;
|
|
2611
|
+
if (message === last.message && now - last.at < 200) return;
|
|
2612
|
+
lastAnnouncedRef.current = {
|
|
2613
|
+
message,
|
|
2614
|
+
at: now
|
|
2409
2615
|
};
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2616
|
+
const node = liveRef.current;
|
|
2617
|
+
if (!node) return;
|
|
2618
|
+
clearTimeout(clearTimerRef.current);
|
|
2619
|
+
node.textContent = "";
|
|
2620
|
+
outerTimerRef.current = setTimeout(() => {
|
|
2621
|
+
node.textContent = message;
|
|
2622
|
+
clearTimerRef.current = setTimeout(() => {
|
|
2623
|
+
node.textContent = "";
|
|
2414
2624
|
}, 3e3);
|
|
2415
|
-
}, 50)
|
|
2625
|
+
}, 50);
|
|
2416
2626
|
}, []);
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2627
|
+
y(() => {
|
|
2628
|
+
const wasDisabled = prevDisabledRef.current;
|
|
2629
|
+
prevDisabledRef.current = disabled;
|
|
2630
|
+
if (disabled || detectionState === "manualCapture") {
|
|
2631
|
+
hasAnnouncedInstructionsRef.current = false;
|
|
2421
2632
|
return;
|
|
2422
2633
|
}
|
|
2423
|
-
if (
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2634
|
+
if (hasAnnouncedInstructionsRef.current) return;
|
|
2635
|
+
const timer = setTimeout(() => {
|
|
2636
|
+
hasAnnouncedInstructionsRef.current = true;
|
|
2637
|
+
announce(t("selfiev2.autoCapture.defaultAriaInstructions"));
|
|
2638
|
+
}, wasDisabled ? 1e3 : 500);
|
|
2639
|
+
return () => clearTimeout(timer);
|
|
2428
2640
|
}, [
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
])
|
|
2434
|
-
|
|
2435
|
-
|
|
2641
|
+
detectionState,
|
|
2642
|
+
disabled,
|
|
2643
|
+
announce,
|
|
2644
|
+
t
|
|
2645
|
+
]);
|
|
2646
|
+
y(() => {
|
|
2647
|
+
const prev = prevDetectionStateRef.current;
|
|
2648
|
+
prevDetectionStateRef.current = detectionState;
|
|
2649
|
+
if (disabled) return;
|
|
2650
|
+
if (prev !== "manualCapture" && detectionState === "manualCapture") announce(t("idv2.capture.manualCapture.modeSwitchAriaAnnouncement"));
|
|
2436
2651
|
}, [
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
])
|
|
2442
|
-
|
|
2652
|
+
announce,
|
|
2653
|
+
detectionState,
|
|
2654
|
+
t,
|
|
2655
|
+
disabled
|
|
2656
|
+
]);
|
|
2657
|
+
y(() => {
|
|
2658
|
+
if (disabled || !text) return;
|
|
2659
|
+
announce(text);
|
|
2443
2660
|
}, [
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
])
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2661
|
+
text,
|
|
2662
|
+
announce,
|
|
2663
|
+
disabled
|
|
2664
|
+
]);
|
|
2665
|
+
y(() => {
|
|
2666
|
+
return () => {
|
|
2667
|
+
clearTimeout(outerTimerRef.current);
|
|
2668
|
+
clearTimeout(clearTimerRef.current);
|
|
2669
|
+
};
|
|
2670
|
+
}, []);
|
|
2671
|
+
return /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
|
|
2672
|
+
ref: liveRef,
|
|
2451
2673
|
class: "IncodeCaptureVisuallyHidden",
|
|
2452
2674
|
"aria-live": "assertive",
|
|
2453
2675
|
"aria-atomic": "true"
|
|
2454
|
-
}),
|
|
2676
|
+
}), text ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u("div", {
|
|
2455
2677
|
class: "IncodeNotification",
|
|
2456
2678
|
"aria-hidden": "true",
|
|
2457
2679
|
children: /* @__PURE__ */ u("p", {
|
|
2458
2680
|
class: "IncodeNotificationText",
|
|
2459
|
-
children:
|
|
2681
|
+
children: text
|
|
2460
2682
|
})
|
|
2461
|
-
}), /* @__PURE__ */ u(
|
|
2462
|
-
}
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2683
|
+
}), /* @__PURE__ */ u(Spacer, { size: 24 })] }) : null] });
|
|
2684
|
+
};
|
|
2685
|
+
//#endregion
|
|
2686
|
+
//#region src/modules/selfie/capture.tsx
|
|
2687
|
+
var Capture = ({ manager, state }) => {
|
|
2688
|
+
const { captureStatus, stream, detectionStatus, attemptsRemaining, uploadError, assistedOnboarding, ageAssurance, onDeviceMode } = state;
|
|
2689
|
+
const [isManualCapturing, setIsManualCapturing] = d(false);
|
|
2690
|
+
const { t } = useTranslation();
|
|
2691
|
+
const manualCaptureRef = A(null);
|
|
2692
|
+
y(() => {
|
|
2693
|
+
if (detectionStatus === "manualCapture") manualCaptureRef.current?.focus();
|
|
2694
|
+
}, [detectionStatus]);
|
|
2695
|
+
if (captureStatus === "initializing") return /* @__PURE__ */ u(TransitionSpinner, { spinnerConfig: { subtitle: t("loadingCircle.preparingCamera") } });
|
|
2696
|
+
if (captureStatus === "detecting") {
|
|
2697
|
+
if (detectionStatus === "offline") return /* @__PURE__ */ u(Page, { title: "No internet connection" });
|
|
2698
|
+
const getBorderState = () => {
|
|
2699
|
+
if (isManualCapturing) return "capturing";
|
|
2700
|
+
if (detectionStatus === "detecting") return "idle";
|
|
2701
|
+
if (detectionStatus === "getReady") return "loading";
|
|
2702
|
+
if (detectionStatus === "getReadyFinished") return "loading";
|
|
2703
|
+
if (detectionStatus === "success") return "success";
|
|
2704
|
+
if (detectionStatus === "error") return "error";
|
|
2705
|
+
return "idle";
|
|
2706
|
+
};
|
|
2707
|
+
return /* @__PURE__ */ u(Page, {
|
|
2471
2708
|
"data-testid": "capture-container",
|
|
2472
2709
|
children: [
|
|
2473
|
-
/* @__PURE__ */ u(
|
|
2710
|
+
/* @__PURE__ */ u(Title, {
|
|
2474
2711
|
className: "IncodeCaptureVisuallyHidden",
|
|
2475
|
-
children:
|
|
2712
|
+
children: t("selfiev2.capture.title")
|
|
2476
2713
|
}),
|
|
2477
|
-
/* @__PURE__ */ u(
|
|
2714
|
+
/* @__PURE__ */ u(Spacer, { size: 48 }),
|
|
2478
2715
|
/* @__PURE__ */ u("div", {
|
|
2479
2716
|
class: "IncodeCaptureContainer",
|
|
2480
2717
|
children: [
|
|
2481
|
-
/* @__PURE__ */ u(
|
|
2718
|
+
/* @__PURE__ */ u(LoadingBorder, { borderState: getBorderState() }),
|
|
2482
2719
|
/* @__PURE__ */ u("div", {
|
|
2483
2720
|
class: "IncodeCaptureFrame",
|
|
2484
2721
|
children: /* @__PURE__ */ u("div", {
|
|
2485
2722
|
class: "IncodeCaptureVideoWrapper",
|
|
2486
2723
|
"aria-hidden": "true",
|
|
2487
|
-
children:
|
|
2488
|
-
stream
|
|
2489
|
-
mirrored: !
|
|
2724
|
+
children: stream ? /* @__PURE__ */ u(k, { children: [/* @__PURE__ */ u(Video, {
|
|
2725
|
+
stream,
|
|
2726
|
+
mirrored: !assistedOnboarding
|
|
2490
2727
|
}), /* @__PURE__ */ u("div", {
|
|
2491
2728
|
class: "IncodeCaptureVideo",
|
|
2492
|
-
children: /* @__PURE__ */ u(
|
|
2729
|
+
children: /* @__PURE__ */ u(FaceOutline, {})
|
|
2493
2730
|
})] }) : null
|
|
2494
2731
|
})
|
|
2495
2732
|
}),
|
|
2496
|
-
/* @__PURE__ */ u(
|
|
2497
|
-
|
|
2498
|
-
detectionState:
|
|
2499
|
-
disabled: !!
|
|
2733
|
+
/* @__PURE__ */ u(Spacer, { size: 32 }),
|
|
2734
|
+
detectionStatus ? /* @__PURE__ */ u(Notification, {
|
|
2735
|
+
detectionState: detectionStatus,
|
|
2736
|
+
disabled: !!uploadError || isManualCapturing
|
|
2500
2737
|
}) : null,
|
|
2501
|
-
|
|
2502
|
-
ref:
|
|
2738
|
+
detectionStatus === "manualCapture" && !onDeviceMode ? /* @__PURE__ */ u(ManualCaptureButton, {
|
|
2739
|
+
ref: manualCaptureRef,
|
|
2503
2740
|
onClick: () => {
|
|
2504
|
-
|
|
2741
|
+
setIsManualCapturing(true);
|
|
2742
|
+
manager.capture();
|
|
2505
2743
|
},
|
|
2506
|
-
disabled:
|
|
2744
|
+
disabled: isManualCapturing
|
|
2507
2745
|
}) : null
|
|
2508
2746
|
]
|
|
2509
2747
|
}),
|
|
2510
|
-
|
|
2511
|
-
error:
|
|
2512
|
-
attemptsRemaining
|
|
2748
|
+
uploadError ? /* @__PURE__ */ u(ErrorModal, {
|
|
2749
|
+
error: uploadError,
|
|
2750
|
+
attemptsRemaining,
|
|
2513
2751
|
onTryAgain: () => {
|
|
2514
|
-
|
|
2752
|
+
manager.retryCapture();
|
|
2753
|
+
setIsManualCapturing(false);
|
|
2515
2754
|
}
|
|
2516
2755
|
}) : null
|
|
2517
2756
|
]
|
|
2518
2757
|
});
|
|
2519
2758
|
}
|
|
2520
|
-
|
|
2759
|
+
if (captureStatus === "capturing") return /* @__PURE__ */ u(Page, {
|
|
2521
2760
|
className: "IncodeCaptureCapturingPage",
|
|
2522
2761
|
title: "Capturing",
|
|
2523
2762
|
subtitle: "Taking photo...",
|
|
2524
2763
|
children: /* @__PURE__ */ u("div", {
|
|
2525
2764
|
class: "IncodeCaptureCapturingActions",
|
|
2526
|
-
children: /* @__PURE__ */ u(
|
|
2527
|
-
isLoading:
|
|
2765
|
+
children: /* @__PURE__ */ u(Button, {
|
|
2766
|
+
isLoading: true,
|
|
2528
2767
|
children: "Capturing..."
|
|
2529
2768
|
})
|
|
2530
2769
|
})
|
|
2531
|
-
})
|
|
2770
|
+
});
|
|
2771
|
+
if (captureStatus === "uploading") return /* @__PURE__ */ u(CaptureStatusPage, {
|
|
2532
2772
|
className: "IncodeCaptureStatusUploading",
|
|
2533
|
-
isLoading:
|
|
2534
|
-
icon: /* @__PURE__ */ u(
|
|
2535
|
-
title:
|
|
2536
|
-
})
|
|
2537
|
-
|
|
2538
|
-
|
|
2773
|
+
isLoading: true,
|
|
2774
|
+
icon: /* @__PURE__ */ u(LoadingIcon, { size: 64 }),
|
|
2775
|
+
title: t(ageAssurance ? "idv2.capture.processing.verifying" : "idv2.capture.processing.uploading")
|
|
2776
|
+
});
|
|
2777
|
+
if (captureStatus === "uploadError") return /* @__PURE__ */ u(ErrorModal, {
|
|
2778
|
+
error: uploadError,
|
|
2779
|
+
attemptsRemaining,
|
|
2539
2780
|
onTryAgain: () => {
|
|
2540
|
-
|
|
2781
|
+
manager.retryCapture();
|
|
2782
|
+
setIsManualCapturing(false);
|
|
2541
2783
|
}
|
|
2542
|
-
})
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
}
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2784
|
+
});
|
|
2785
|
+
if (captureStatus === "success") return /* @__PURE__ */ u(CaptureStatusPage, {
|
|
2786
|
+
icon: /* @__PURE__ */ u(SuccessIcon, { size: 64 }),
|
|
2787
|
+
title: t("idv2.capture.processing.success")
|
|
2788
|
+
});
|
|
2789
|
+
return null;
|
|
2790
|
+
};
|
|
2791
|
+
var Video = ({ stream, mirrored }) => {
|
|
2792
|
+
const ref = A(null);
|
|
2793
|
+
y(() => {
|
|
2794
|
+
if (ref.current && stream) ref.current.srcObject = stream;
|
|
2795
|
+
}, [stream]);
|
|
2796
|
+
return /* @__PURE__ */ u("video", {
|
|
2797
|
+
ref,
|
|
2798
|
+
autoplay: true,
|
|
2799
|
+
playsInline: true,
|
|
2800
|
+
muted: true,
|
|
2555
2801
|
"aria-hidden": "true",
|
|
2556
|
-
class:
|
|
2802
|
+
class: mirrored ? "IncodeCaptureVideoElement IncodeCaptureVideoMirrored" : "IncodeCaptureVideoElement"
|
|
2557
2803
|
});
|
|
2558
|
-
}
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2804
|
+
};
|
|
2805
|
+
//#endregion
|
|
2806
|
+
//#region src/modules/selfie/tutorial.tsx
|
|
2807
|
+
var Tutorial = ({ manager, ageAssurance = false }) => {
|
|
2808
|
+
const { t } = useTranslation();
|
|
2809
|
+
const [isLoading, setIsLoading] = d(false);
|
|
2810
|
+
const [animationData, setAnimationData] = d(null);
|
|
2811
|
+
y(() => {
|
|
2812
|
+
import("./selfieTutorial-CtruLyO2.js").then((module) => {
|
|
2813
|
+
setAnimationData(module.default);
|
|
2563
2814
|
});
|
|
2564
|
-
}, [])
|
|
2565
|
-
|
|
2566
|
-
|
|
2815
|
+
}, []);
|
|
2816
|
+
const handleContinue = async () => {
|
|
2817
|
+
setIsLoading(true);
|
|
2818
|
+
await manager.nextStep();
|
|
2819
|
+
};
|
|
2820
|
+
return /* @__PURE__ */ u(BaseTutorial, {
|
|
2821
|
+
animationData,
|
|
2822
|
+
title: t(ageAssurance ? "face.tutorial.ageAssuranceTitle" : "face.tutorial.title"),
|
|
2567
2823
|
titleId: "face-tutorial-heading",
|
|
2568
|
-
subtitle:
|
|
2569
|
-
onContinue:
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
disclaimerText: r("face.tutorial.autoCapture"),
|
|
2574
|
-
isLoading: a,
|
|
2824
|
+
subtitle: t(ageAssurance ? "face.tutorial.ageAssuranceSubtitle" : "face.tutorial.subtitle"),
|
|
2825
|
+
onContinue: handleContinue,
|
|
2826
|
+
buttonText: t(ageAssurance ? "face.tutorial.ageAssuranceStartCapture" : "face.tutorial.startCapture"),
|
|
2827
|
+
disclaimerText: t("face.tutorial.autoCapture"),
|
|
2828
|
+
isLoading,
|
|
2575
2829
|
className: "IncodeSelfieTutorial"
|
|
2576
2830
|
});
|
|
2577
2831
|
};
|
|
2578
2832
|
//#endregion
|
|
2579
|
-
export {
|
|
2833
|
+
export { Lottie as a, BaseTutorial as i, Capture as n, ErrorContent as o, Permissions as r, Tutorial as t };
|