@incodetech/web 0.0.0-dev-20260427-7dc009f → 0.0.0-dev-20260428-b43ad7b
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/authentication/authentication.es.js +1 -1
- package/dist/{back-tutorial-BUwYnbyp.js → back-tutorial-CxQIbwMV.js} +3 -3
- package/dist/{documentCapture-Ctg4QrzO.js → documentCapture-DQxaZU3W.js} +2 -2
- package/dist/email/email.es.js +1 -1
- package/dist/{extensibility-B2WcKcDG.js → extensibility-Cj36YboT.js} +61 -53
- package/dist/extensibility.es.js +2 -2
- package/dist/flow/flow.es.js +1 -1
- package/dist/flow/styles.css +5 -5
- package/dist/id/id.es.js +3 -3
- package/dist/id/styles.css +5 -5
- package/dist/{id-tutorial-DCs88Nov.js → id-tutorial-V5VMnD_c.js} +2 -2
- package/dist/{idOcr-wZ5lwb96.js → idOcr-AtbQBo8V.js} +1 -1
- package/dist/selfie/selfie.es.js +1 -1
- package/dist/signature/signature.es.js +1 -1
- package/dist/{tutorial-Dtl1dbQf.js → tutorial-DiULTK-w.js} +186 -153
- package/dist/types/extensibility.d.ts +14 -2
- package/dist/{useModuleLoader-xzLBvyxm.js → useModuleLoader-CUHM0lWc.js} +3 -3
- package/dist/workflow/styles.css +5 -5
- package/dist/workflow/workflow.es.js +1 -1
- package/package.json +2 -2
|
@@ -10,12 +10,12 @@ import { t as b } from "./button-i4SPU5G7.js";
|
|
|
10
10
|
import { h as x, m as S } from "./icons-fruAkt2C.js";
|
|
11
11
|
import { t as C } from "./successIcon-SlKgTSty.js";
|
|
12
12
|
import { t as w } from "./modal-CVCFEIu4.js";
|
|
13
|
-
import { t as
|
|
14
|
-
import { t as
|
|
15
|
-
import { getBrowser as
|
|
13
|
+
import { t as T } from "./bottomSheet-My8rHmzJ.js";
|
|
14
|
+
import { t as E } from "./numberedStep-CSQrc-lB.js";
|
|
15
|
+
import { getBrowser as D, getDeviceClass as O } from "@incodetech/core/device";
|
|
16
16
|
import "@incodetech/core/camera";
|
|
17
17
|
//#region src/shared/errorContent/errorContent.tsx
|
|
18
|
-
var
|
|
18
|
+
var k = ({ title: t, description: n, attemptsRemaining: i, onButtonClick: a, "data-testid": s }) => {
|
|
19
19
|
let { t: c } = e(), u = i <= 0, p = o(null);
|
|
20
20
|
return r(() => {
|
|
21
21
|
p.current?.focus();
|
|
@@ -60,43 +60,55 @@ var E = ({ title: t, description: n, attemptsRemaining: i, onButtonClick: a, "da
|
|
|
60
60
|
})
|
|
61
61
|
})
|
|
62
62
|
});
|
|
63
|
-
},
|
|
64
|
-
function
|
|
65
|
-
return
|
|
63
|
+
}, A = null;
|
|
64
|
+
function ee() {
|
|
65
|
+
return A || (A = new Promise((e, t) => {
|
|
66
66
|
let n = document.createElement("script");
|
|
67
67
|
n.src = "https://cdn.jsdelivr.net/npm/lottie-web@5.13.0/build/player/lottie_light.min.js", n.onload = () => e(window.lottie), n.onerror = t, document.head.appendChild(n);
|
|
68
|
-
}),
|
|
68
|
+
}), A);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
71
|
-
let
|
|
72
|
-
container:
|
|
70
|
+
function j({ animationData: e, loop: t = !0, autoplay: n = !0, reverse: i = !1, style: a, className: s, onComplete: c, onControlsReady: u }) {
|
|
71
|
+
let d = o(null), f = i ? !1 : n, p = o({
|
|
72
|
+
container: d.current,
|
|
73
73
|
renderer: "svg",
|
|
74
74
|
loop: t,
|
|
75
|
-
autoplay:
|
|
75
|
+
autoplay: f,
|
|
76
76
|
animationData: e
|
|
77
77
|
});
|
|
78
78
|
return r(() => {
|
|
79
|
-
|
|
80
|
-
container:
|
|
79
|
+
p.current = {
|
|
80
|
+
container: d.current,
|
|
81
81
|
renderer: "svg",
|
|
82
82
|
loop: t,
|
|
83
|
-
autoplay:
|
|
83
|
+
autoplay: f,
|
|
84
84
|
animationData: e
|
|
85
85
|
};
|
|
86
86
|
}, [
|
|
87
87
|
e,
|
|
88
88
|
t,
|
|
89
|
-
|
|
89
|
+
f
|
|
90
90
|
]), r(() => {
|
|
91
|
-
if (!
|
|
92
|
-
let e;
|
|
93
|
-
return
|
|
94
|
-
e =
|
|
91
|
+
if (!d.current) return;
|
|
92
|
+
let e, t = !0;
|
|
93
|
+
return ee().then((n) => {
|
|
94
|
+
t && (e = n.loadAnimation(p.current), i && (e.setDirection(-1), e.goToAndPlay(e.totalFrames - 1, !0)), c && e.addEventListener("complete", c), u?.({
|
|
95
|
+
setSpeed: (t) => e?.setSpeed?.(t),
|
|
96
|
+
play: () => e?.play?.(),
|
|
97
|
+
pause: () => e?.pause?.(),
|
|
98
|
+
stop: () => e?.stop?.(),
|
|
99
|
+
goToAndPlay: (t, n = !1) => e?.goToAndPlay?.(t, n),
|
|
100
|
+
goToAndStop: (t, n = !1) => e?.goToAndStop?.(t, n),
|
|
101
|
+
getTotalFrames: () => e?.totalFrames ?? null
|
|
102
|
+
}));
|
|
95
103
|
}), () => {
|
|
96
|
-
e && (c && e.removeEventListener("complete", c), e.destroy());
|
|
104
|
+
t = !1, u?.(null), e && (c && e.removeEventListener("complete", c), e.destroy());
|
|
97
105
|
};
|
|
98
|
-
}, [
|
|
99
|
-
|
|
106
|
+
}, [
|
|
107
|
+
c,
|
|
108
|
+
u,
|
|
109
|
+
i
|
|
110
|
+
]), /* @__PURE__ */ l("div", {
|
|
111
|
+
ref: d,
|
|
100
112
|
style: a,
|
|
101
113
|
className: s,
|
|
102
114
|
"aria-hidden": "true"
|
|
@@ -104,40 +116,61 @@ function k({ animationData: e, loop: t = !0, autoplay: n = !0, reverse: i = !1,
|
|
|
104
116
|
}
|
|
105
117
|
//#endregion
|
|
106
118
|
//#region src/shared/baseTutorial/baseTutorial.tsx
|
|
107
|
-
var
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
119
|
+
var te = 5e3, M = ({ className: e = "", animationData: t, title: n, titleId: i, subtitle: s, onContinue: c, buttonText: u, disclaimerText: d, isLoading: m, stopFramePosition: h = "middle" }) => {
|
|
120
|
+
let g = o(null), _ = a((e) => {
|
|
121
|
+
g.current = e;
|
|
122
|
+
}, []);
|
|
123
|
+
return r(() => {
|
|
124
|
+
let e = window.setTimeout(() => {
|
|
125
|
+
let e = g.current;
|
|
126
|
+
if (!e) return;
|
|
127
|
+
let t = e.getTotalFrames();
|
|
128
|
+
if (!t || t <= 0) {
|
|
129
|
+
e.stop();
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
let n = h === "last" ? Math.max(t - 1, 0) : h === "first" ? 0 : Math.floor((t - 1) / 2);
|
|
133
|
+
e.goToAndStop(n, !0);
|
|
134
|
+
}, te);
|
|
135
|
+
return () => {
|
|
136
|
+
window.clearTimeout(e);
|
|
137
|
+
};
|
|
138
|
+
}, [h]), /* @__PURE__ */ l(f, {
|
|
139
|
+
className: p("IncodeTutorialPage", e),
|
|
140
|
+
title: n,
|
|
141
|
+
titleId: i,
|
|
142
|
+
subtitle: s,
|
|
143
|
+
children: [/* @__PURE__ */ l("div", {
|
|
144
|
+
class: "IncodeBaseTutorialContainer",
|
|
145
|
+
children: /* @__PURE__ */ l("div", {
|
|
146
|
+
class: "IncodeBaseTutorialAnimationContainer",
|
|
147
|
+
"aria-hidden": "true",
|
|
148
|
+
children: t ? /* @__PURE__ */ l(j, {
|
|
149
|
+
animationData: t,
|
|
150
|
+
className: "IncodeBaseTutorialAnimation",
|
|
151
|
+
onControlsReady: _
|
|
152
|
+
}) : null
|
|
153
|
+
})
|
|
154
|
+
}), /* @__PURE__ */ l("div", { children: [/* @__PURE__ */ l("p", {
|
|
155
|
+
class: "IncodeBaseTutorialDisclaimer",
|
|
156
|
+
children: d
|
|
157
|
+
}), /* @__PURE__ */ l("div", {
|
|
158
|
+
class: "IncodeBaseTutorialButtonContainer",
|
|
159
|
+
children: /* @__PURE__ */ l(b, {
|
|
160
|
+
onClick: c,
|
|
161
|
+
class: "m-auto max-w-[420px]",
|
|
162
|
+
isLoading: m,
|
|
163
|
+
children: u
|
|
164
|
+
})
|
|
165
|
+
})] })]
|
|
166
|
+
});
|
|
167
|
+
}, N = ({ i18nKey: e }) => /* @__PURE__ */ l("span", {
|
|
135
168
|
class: "IncodeBoldWithArrow",
|
|
136
169
|
children: /* @__PURE__ */ l(t, {
|
|
137
170
|
i18nKey: e,
|
|
138
171
|
arrowClass: "IncodeBoldWithArrowIcon"
|
|
139
172
|
})
|
|
140
|
-
}),
|
|
173
|
+
}), P = (e) => /* @__PURE__ */ l("svg", {
|
|
141
174
|
width: 38,
|
|
142
175
|
height: 38,
|
|
143
176
|
viewBox: "0 0 38 38",
|
|
@@ -153,7 +186,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
153
186
|
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",
|
|
154
187
|
fill: "#646464"
|
|
155
188
|
})]
|
|
156
|
-
}),
|
|
189
|
+
}), F = (e) => /* @__PURE__ */ l("svg", {
|
|
157
190
|
width: 38,
|
|
158
191
|
height: 38,
|
|
159
192
|
viewBox: "0 0 38 38",
|
|
@@ -182,7 +215,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
182
215
|
})
|
|
183
216
|
}) })
|
|
184
217
|
]
|
|
185
|
-
}),
|
|
218
|
+
}), I = (e) => /* @__PURE__ */ l("svg", {
|
|
186
219
|
width: 38,
|
|
187
220
|
height: 38,
|
|
188
221
|
viewBox: "0 0 38 38",
|
|
@@ -247,7 +280,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
247
280
|
fill: "white"
|
|
248
281
|
})
|
|
249
282
|
})] })]
|
|
250
|
-
}),
|
|
283
|
+
}), L = (e) => /* @__PURE__ */ l("svg", {
|
|
251
284
|
width: 38,
|
|
252
285
|
height: 38,
|
|
253
286
|
viewBox: "0 0 38 38",
|
|
@@ -332,7 +365,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
332
365
|
})
|
|
333
366
|
] })
|
|
334
367
|
]
|
|
335
|
-
}),
|
|
368
|
+
}), R = (e) => /* @__PURE__ */ l("svg", {
|
|
336
369
|
width: 40,
|
|
337
370
|
height: 40,
|
|
338
371
|
viewBox: "0 0 40 40",
|
|
@@ -677,7 +710,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
677
710
|
})
|
|
678
711
|
] })
|
|
679
712
|
]
|
|
680
|
-
}),
|
|
713
|
+
}), ne = (e) => /* @__PURE__ */ l("svg", {
|
|
681
714
|
width: 40,
|
|
682
715
|
height: 40,
|
|
683
716
|
viewBox: "0 0 40 40",
|
|
@@ -693,7 +726,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
693
726
|
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",
|
|
694
727
|
fill: "#646464"
|
|
695
728
|
})]
|
|
696
|
-
}),
|
|
729
|
+
}), re = (e) => /* @__PURE__ */ l("svg", {
|
|
697
730
|
width: 32,
|
|
698
731
|
height: 32,
|
|
699
732
|
viewBox: "0 0 32 32",
|
|
@@ -726,7 +759,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
726
759
|
})
|
|
727
760
|
]
|
|
728
761
|
})
|
|
729
|
-
}),
|
|
762
|
+
}), ie = (e) => /* @__PURE__ */ l("svg", {
|
|
730
763
|
width: 32,
|
|
731
764
|
height: 32,
|
|
732
765
|
viewBox: "0 0 32 32",
|
|
@@ -747,7 +780,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
747
780
|
})
|
|
748
781
|
})
|
|
749
782
|
})
|
|
750
|
-
}),
|
|
783
|
+
}), ae = (e) => /* @__PURE__ */ l("svg", {
|
|
751
784
|
width: 32,
|
|
752
785
|
height: 32,
|
|
753
786
|
viewBox: "0 0 32 32",
|
|
@@ -764,7 +797,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
764
797
|
fill: "currentColor"
|
|
765
798
|
})
|
|
766
799
|
})
|
|
767
|
-
}),
|
|
800
|
+
}), oe = (e) => /* @__PURE__ */ l("svg", {
|
|
768
801
|
xmlns: "http://www.w3.org/2000/svg",
|
|
769
802
|
width: 40,
|
|
770
803
|
height: 40,
|
|
@@ -787,7 +820,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
787
820
|
fill: "#4D5CC1"
|
|
788
821
|
})
|
|
789
822
|
]
|
|
790
|
-
}),
|
|
823
|
+
}), se = (e) => /* @__PURE__ */ l("svg", {
|
|
791
824
|
width: 40,
|
|
792
825
|
height: 40,
|
|
793
826
|
viewBox: "0 0 40 40",
|
|
@@ -1455,7 +1488,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1455
1488
|
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",
|
|
1456
1489
|
fill: "#646464"
|
|
1457
1490
|
})]
|
|
1458
|
-
}),
|
|
1491
|
+
}), ce = {
|
|
1459
1492
|
ios: {
|
|
1460
1493
|
safari: [
|
|
1461
1494
|
{
|
|
@@ -1500,7 +1533,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1500
1533
|
},
|
|
1501
1534
|
{
|
|
1502
1535
|
uuid: "2",
|
|
1503
|
-
icon:
|
|
1536
|
+
icon: L,
|
|
1504
1537
|
instructionKey: "scroll",
|
|
1505
1538
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1506
1539
|
},
|
|
@@ -1520,7 +1553,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1520
1553
|
},
|
|
1521
1554
|
{
|
|
1522
1555
|
uuid: "5",
|
|
1523
|
-
icon:
|
|
1556
|
+
icon: L,
|
|
1524
1557
|
instructionKey: "returnPress",
|
|
1525
1558
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1526
1559
|
}
|
|
@@ -1534,7 +1567,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1534
1567
|
},
|
|
1535
1568
|
{
|
|
1536
1569
|
uuid: "2",
|
|
1537
|
-
icon:
|
|
1570
|
+
icon: L,
|
|
1538
1571
|
instructionKey: "scroll",
|
|
1539
1572
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1540
1573
|
},
|
|
@@ -1554,7 +1587,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1554
1587
|
},
|
|
1555
1588
|
{
|
|
1556
1589
|
uuid: "5",
|
|
1557
|
-
icon:
|
|
1590
|
+
icon: L,
|
|
1558
1591
|
instructionKey: "returnPress",
|
|
1559
1592
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1560
1593
|
}
|
|
@@ -1568,7 +1601,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1568
1601
|
},
|
|
1569
1602
|
{
|
|
1570
1603
|
uuid: "2",
|
|
1571
|
-
icon:
|
|
1604
|
+
icon: R,
|
|
1572
1605
|
instructionKey: "scroll",
|
|
1573
1606
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1574
1607
|
},
|
|
@@ -1588,7 +1621,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1588
1621
|
},
|
|
1589
1622
|
{
|
|
1590
1623
|
uuid: "5",
|
|
1591
|
-
icon:
|
|
1624
|
+
icon: R,
|
|
1592
1625
|
instructionKey: "returnPress",
|
|
1593
1626
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1594
1627
|
}
|
|
@@ -1636,7 +1669,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1636
1669
|
},
|
|
1637
1670
|
{
|
|
1638
1671
|
uuid: "2",
|
|
1639
|
-
icon:
|
|
1672
|
+
icon: L,
|
|
1640
1673
|
instructionKey: "scroll",
|
|
1641
1674
|
boldKey: "idv2.permissions.denied.yourBrowser"
|
|
1642
1675
|
},
|
|
@@ -1656,7 +1689,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1656
1689
|
},
|
|
1657
1690
|
{
|
|
1658
1691
|
uuid: "5",
|
|
1659
|
-
icon:
|
|
1692
|
+
icon: L,
|
|
1660
1693
|
instructionKey: "returnPress",
|
|
1661
1694
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1662
1695
|
}
|
|
@@ -1666,26 +1699,26 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1666
1699
|
chrome: [
|
|
1667
1700
|
{
|
|
1668
1701
|
uuid: "1",
|
|
1669
|
-
icon:
|
|
1702
|
+
icon: P,
|
|
1670
1703
|
instructionKey: "tap",
|
|
1671
1704
|
boldKey: "idv2.permissions.denied.dots",
|
|
1672
1705
|
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1673
1706
|
},
|
|
1674
1707
|
{
|
|
1675
1708
|
uuid: "2",
|
|
1676
|
-
icon:
|
|
1709
|
+
icon: F,
|
|
1677
1710
|
instructionKey: "tap",
|
|
1678
1711
|
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1679
1712
|
},
|
|
1680
1713
|
{
|
|
1681
1714
|
uuid: "3",
|
|
1682
|
-
icon:
|
|
1715
|
+
icon: I,
|
|
1683
1716
|
instructionKey: "tap",
|
|
1684
1717
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1685
1718
|
},
|
|
1686
1719
|
{
|
|
1687
1720
|
uuid: "4",
|
|
1688
|
-
icon:
|
|
1721
|
+
icon: L,
|
|
1689
1722
|
instructionKey: "returnPress",
|
|
1690
1723
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1691
1724
|
}
|
|
@@ -1693,7 +1726,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1693
1726
|
firefox: [
|
|
1694
1727
|
{
|
|
1695
1728
|
uuid: "1",
|
|
1696
|
-
icon:
|
|
1729
|
+
icon: P,
|
|
1697
1730
|
instructionKey: "tap",
|
|
1698
1731
|
boldKey: "idv2.permissions.denied.dots",
|
|
1699
1732
|
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
@@ -1706,13 +1739,13 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1706
1739
|
},
|
|
1707
1740
|
{
|
|
1708
1741
|
uuid: "3",
|
|
1709
|
-
icon:
|
|
1742
|
+
icon: ne,
|
|
1710
1743
|
instructionKey: "tap",
|
|
1711
1744
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1712
1745
|
},
|
|
1713
1746
|
{
|
|
1714
1747
|
uuid: "4",
|
|
1715
|
-
icon:
|
|
1748
|
+
icon: R,
|
|
1716
1749
|
instructionKey: "returnPress",
|
|
1717
1750
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1718
1751
|
}
|
|
@@ -1720,26 +1753,26 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1720
1753
|
edge: [
|
|
1721
1754
|
{
|
|
1722
1755
|
uuid: "1",
|
|
1723
|
-
icon:
|
|
1756
|
+
icon: P,
|
|
1724
1757
|
instructionKey: "tap",
|
|
1725
1758
|
boldKey: "idv2.permissions.denied.dots",
|
|
1726
1759
|
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1727
1760
|
},
|
|
1728
1761
|
{
|
|
1729
1762
|
uuid: "2",
|
|
1730
|
-
icon:
|
|
1763
|
+
icon: F,
|
|
1731
1764
|
instructionKey: "tap",
|
|
1732
1765
|
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1733
1766
|
},
|
|
1734
1767
|
{
|
|
1735
1768
|
uuid: "3",
|
|
1736
|
-
icon:
|
|
1769
|
+
icon: I,
|
|
1737
1770
|
instructionKey: "tap",
|
|
1738
1771
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1739
1772
|
},
|
|
1740
1773
|
{
|
|
1741
1774
|
uuid: "4",
|
|
1742
|
-
icon:
|
|
1775
|
+
icon: L,
|
|
1743
1776
|
instructionKey: "returnPress",
|
|
1744
1777
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1745
1778
|
}
|
|
@@ -1747,7 +1780,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1747
1780
|
opera: [
|
|
1748
1781
|
{
|
|
1749
1782
|
uuid: "1",
|
|
1750
|
-
icon:
|
|
1783
|
+
icon: F,
|
|
1751
1784
|
instructionKey: "open",
|
|
1752
1785
|
boldKey: "idv2.permissions.denied.settingsApp",
|
|
1753
1786
|
additionalTextKey: "idv2.permissions.denied.onDevice"
|
|
@@ -1782,26 +1815,26 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1782
1815
|
other: [
|
|
1783
1816
|
{
|
|
1784
1817
|
uuid: "1",
|
|
1785
|
-
icon:
|
|
1818
|
+
icon: P,
|
|
1786
1819
|
instructionKey: "tap",
|
|
1787
1820
|
boldKey: "idv2.permissions.denied.dots",
|
|
1788
1821
|
additionalTextKey: "idv2.permissions.denied.topRight"
|
|
1789
1822
|
},
|
|
1790
1823
|
{
|
|
1791
1824
|
uuid: "2",
|
|
1792
|
-
icon:
|
|
1825
|
+
icon: F,
|
|
1793
1826
|
instructionKey: "tap",
|
|
1794
1827
|
boldKey: "idv2.permissions.denied.siteSettings"
|
|
1795
1828
|
},
|
|
1796
1829
|
{
|
|
1797
1830
|
uuid: "3",
|
|
1798
|
-
icon:
|
|
1831
|
+
icon: I,
|
|
1799
1832
|
instructionKey: "tap",
|
|
1800
1833
|
boldKey: "idv2.permissions.denied.cameraAllow"
|
|
1801
1834
|
},
|
|
1802
1835
|
{
|
|
1803
1836
|
uuid: "4",
|
|
1804
|
-
icon:
|
|
1837
|
+
icon: L,
|
|
1805
1838
|
instructionKey: "returnPress",
|
|
1806
1839
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1807
1840
|
}
|
|
@@ -1829,20 +1862,20 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1829
1862
|
},
|
|
1830
1863
|
{
|
|
1831
1864
|
uuid: "4",
|
|
1832
|
-
icon:
|
|
1865
|
+
icon: se,
|
|
1833
1866
|
instructionKey: "tap",
|
|
1834
1867
|
boldKey: "idv2.permissions.denied.cameraFindSiteAllow"
|
|
1835
1868
|
},
|
|
1836
1869
|
{
|
|
1837
1870
|
uuid: "5",
|
|
1838
|
-
icon:
|
|
1871
|
+
icon: oe,
|
|
1839
1872
|
instructionKey: "returnPress",
|
|
1840
1873
|
boldKey: "idv2.permissions.denied.refreshPage"
|
|
1841
1874
|
}
|
|
1842
1875
|
]
|
|
1843
1876
|
},
|
|
1844
1877
|
desktop: null
|
|
1845
|
-
},
|
|
1878
|
+
}, le = (e, t) => {
|
|
1846
1879
|
let n = [
|
|
1847
1880
|
e(`idv2.permissions.denied.${t.instructionKey}`),
|
|
1848
1881
|
e(t.boldKey),
|
|
@@ -1850,8 +1883,8 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1850
1883
|
t.secondBoldKey ? e(`idv2.permissions.${t.secondBoldKey}`) : ""
|
|
1851
1884
|
].filter(Boolean).join(" ");
|
|
1852
1885
|
return new DOMParser().parseFromString(n, "text/html").body.textContent || "";
|
|
1853
|
-
},
|
|
1854
|
-
let { t: n } = e(), r =
|
|
1886
|
+
}, ue = ({ platform: t }) => {
|
|
1887
|
+
let { t: n } = e(), r = D(), i = ce[t]?.[r] ?? [];
|
|
1855
1888
|
return /* @__PURE__ */ l("div", {
|
|
1856
1889
|
class: "IncodeDeniedInstructionsContainer",
|
|
1857
1890
|
"data-testid": "denied-instructions-mobile",
|
|
@@ -1862,7 +1895,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1862
1895
|
children: [
|
|
1863
1896
|
/* @__PURE__ */ l("span", {
|
|
1864
1897
|
class: "IncodeSrOnly",
|
|
1865
|
-
children:
|
|
1898
|
+
children: le(n, t)
|
|
1866
1899
|
}),
|
|
1867
1900
|
/* @__PURE__ */ l("div", {
|
|
1868
1901
|
class: "IncodeDeniedStepIconContainer",
|
|
@@ -1880,8 +1913,8 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1880
1913
|
children: [
|
|
1881
1914
|
n(`idv2.permissions.denied.${t.instructionKey}`),
|
|
1882
1915
|
" ",
|
|
1883
|
-
/* @__PURE__ */ l(
|
|
1884
|
-
(t.additionalTextKey || t.secondBoldKey) && /* @__PURE__ */ l(
|
|
1916
|
+
/* @__PURE__ */ l(N, { i18nKey: t.boldKey }),
|
|
1917
|
+
(t.additionalTextKey || t.secondBoldKey) && /* @__PURE__ */ l(de, {
|
|
1885
1918
|
labelKey: t.additionalTextKey,
|
|
1886
1919
|
boldLabelKey: t.secondBoldKey
|
|
1887
1920
|
})
|
|
@@ -1893,7 +1926,7 @@ var A = ({ className: e = "", animationData: t, title: n, titleId: r, subtitle:
|
|
|
1893
1926
|
})
|
|
1894
1927
|
});
|
|
1895
1928
|
};
|
|
1896
|
-
function
|
|
1929
|
+
function de({ labelKey: t, boldLabelKey: r }) {
|
|
1897
1930
|
let { t: i } = e();
|
|
1898
1931
|
return /* @__PURE__ */ l("span", {
|
|
1899
1932
|
class: "IncodeDeniedStepTextSilent IncodeDeniedStepSubtext",
|
|
@@ -1906,7 +1939,7 @@ function ue({ labelKey: t, boldLabelKey: r }) {
|
|
|
1906
1939
|
}
|
|
1907
1940
|
//#endregion
|
|
1908
1941
|
//#region src/shared/permissions/camera/deniedDesktop.tsx
|
|
1909
|
-
var
|
|
1942
|
+
var fe = (e) => {
|
|
1910
1943
|
let t = [
|
|
1911
1944
|
`idv2.permissions.denied.${e}.firstStep`,
|
|
1912
1945
|
`idv2.permissions.denied.${e}.secondStep`,
|
|
@@ -1915,8 +1948,8 @@ var de = (e) => {
|
|
|
1915
1948
|
`idv2.permissions.denied.${e}.fifthStep`
|
|
1916
1949
|
];
|
|
1917
1950
|
return e === "safari" && t.push(`idv2.permissions.denied.${e}.sixthStep`), t;
|
|
1918
|
-
},
|
|
1919
|
-
let { t } = e(), n =
|
|
1951
|
+
}, pe = (e) => new DOMParser().parseFromString(e, "text/html").body.textContent || "", me = (e, t) => e(t).split(/(<strong>[^<]+<\/strong>)/g).map((e, t) => e.startsWith("<strong>") && e.endsWith("</strong>") ? /* @__PURE__ */ l("strong", { children: e.slice(8, -9) }, t) : e), he = () => {
|
|
1952
|
+
let { t } = e(), n = fe(D());
|
|
1920
1953
|
return /* @__PURE__ */ l("div", {
|
|
1921
1954
|
class: "IncodeDeniedInstructionsContainer",
|
|
1922
1955
|
"data-testid": "denied-instructions-desktop",
|
|
@@ -1925,23 +1958,23 @@ var de = (e) => {
|
|
|
1925
1958
|
role: "list",
|
|
1926
1959
|
children: n.map((e, r) => /* @__PURE__ */ l("li", {
|
|
1927
1960
|
class: "IncodeDeniedDesktopStep",
|
|
1928
|
-
"aria-label":
|
|
1961
|
+
"aria-label": pe(t(e)),
|
|
1929
1962
|
children: [/* @__PURE__ */ l("div", {
|
|
1930
1963
|
class: "IncodeDeniedDesktopStepNumberColumn",
|
|
1931
1964
|
"aria-hidden": "true",
|
|
1932
|
-
children: [/* @__PURE__ */ l(
|
|
1965
|
+
children: [/* @__PURE__ */ l(E, { number: r + 1 }), r < n.length - 1 && /* @__PURE__ */ l("div", { class: "IncodeNumberedStepConnector" })]
|
|
1933
1966
|
}), /* @__PURE__ */ l("p", {
|
|
1934
1967
|
class: "IncodeDeniedStepText",
|
|
1935
1968
|
"aria-hidden": "true",
|
|
1936
|
-
children:
|
|
1969
|
+
children: me(t, e)
|
|
1937
1970
|
})]
|
|
1938
1971
|
}, e))
|
|
1939
1972
|
})
|
|
1940
1973
|
});
|
|
1941
|
-
},
|
|
1942
|
-
let e =
|
|
1943
|
-
return e === "desktop" ? /* @__PURE__ */ l(
|
|
1944
|
-
},
|
|
1974
|
+
}, ge = () => {
|
|
1975
|
+
let e = O();
|
|
1976
|
+
return e === "desktop" ? /* @__PURE__ */ l(he, {}) : /* @__PURE__ */ l(ue, { platform: e });
|
|
1977
|
+
}, _e = ({ onRefresh: t, "data-testid": n, "data-permission-status": i }) => {
|
|
1945
1978
|
let { t: a } = e(), s = o(null);
|
|
1946
1979
|
return r(() => {
|
|
1947
1980
|
s.current?.focus();
|
|
@@ -1957,26 +1990,26 @@ var de = (e) => {
|
|
|
1957
1990
|
ref: s,
|
|
1958
1991
|
tabIndex: -1,
|
|
1959
1992
|
children: a("idv2.permissions.denied.title")
|
|
1960
|
-
}), /* @__PURE__ */ l(
|
|
1993
|
+
}), /* @__PURE__ */ l(ge, {})]
|
|
1961
1994
|
}), /* @__PURE__ */ l(b, {
|
|
1962
1995
|
onClick: t,
|
|
1963
1996
|
children: a("idv2.permissions.denied.refreshPage")
|
|
1964
1997
|
})]
|
|
1965
1998
|
});
|
|
1966
|
-
},
|
|
1999
|
+
}, ve = [
|
|
1967
2000
|
{
|
|
1968
|
-
icon:
|
|
2001
|
+
icon: ie,
|
|
1969
2002
|
textKey: "idv2.permissions.learnMorePage.instructions.1"
|
|
1970
2003
|
},
|
|
1971
2004
|
{
|
|
1972
|
-
icon:
|
|
2005
|
+
icon: re,
|
|
1973
2006
|
textKey: "idv2.permissions.learnMorePage.instructions.2"
|
|
1974
2007
|
},
|
|
1975
2008
|
{
|
|
1976
|
-
icon:
|
|
2009
|
+
icon: ae,
|
|
1977
2010
|
textKey: "idv2.permissions.learnMorePage.instructions.4"
|
|
1978
2011
|
}
|
|
1979
|
-
],
|
|
2012
|
+
], ye = ({ onAllowPermissions: t, onQuitProcess: n, "data-testid": i, "data-permission-status": a }) => {
|
|
1980
2013
|
let { t: s } = e(), c = o(null);
|
|
1981
2014
|
return r(() => {
|
|
1982
2015
|
c.current?.focus();
|
|
@@ -1998,7 +2031,7 @@ var de = (e) => {
|
|
|
1998
2031
|
}), /* @__PURE__ */ l("ul", {
|
|
1999
2032
|
class: "IncodeLearnMoreInstructionsContainer",
|
|
2000
2033
|
role: "list",
|
|
2001
|
-
children:
|
|
2034
|
+
children: ve.map(({ icon: e, ...t }) => /* @__PURE__ */ l("li", {
|
|
2002
2035
|
class: "IncodeLearnMoreInstruction",
|
|
2003
2036
|
children: [/* @__PURE__ */ l("div", {
|
|
2004
2037
|
class: "IncodeLearnMoreInstructionIcon",
|
|
@@ -2025,11 +2058,11 @@ var de = (e) => {
|
|
|
2025
2058
|
};
|
|
2026
2059
|
//#endregion
|
|
2027
2060
|
//#region src/shared/permissions/camera/permissionsBottomSheet.tsx
|
|
2028
|
-
function
|
|
2061
|
+
function be({ onAllowPermissions: t, onDenyPermissions: n }) {
|
|
2029
2062
|
let { t: i } = e(), a = o(null);
|
|
2030
2063
|
return r(() => {
|
|
2031
2064
|
a.current?.focus();
|
|
2032
|
-
}, []), /* @__PURE__ */ l(
|
|
2065
|
+
}, []), /* @__PURE__ */ l(T, {
|
|
2033
2066
|
isOpen: !0,
|
|
2034
2067
|
labelledById: "permissions-dialog-title",
|
|
2035
2068
|
children: /* @__PURE__ */ l("div", {
|
|
@@ -2062,22 +2095,22 @@ function ve({ onAllowPermissions: t, onDenyPermissions: n }) {
|
|
|
2062
2095
|
}
|
|
2063
2096
|
//#endregion
|
|
2064
2097
|
//#region src/shared/permissions/camera/permissions.tsx
|
|
2065
|
-
var
|
|
2098
|
+
var xe = ({ manager: t, permissionStatus: n }) => {
|
|
2066
2099
|
let r = u(), { t: i } = e();
|
|
2067
2100
|
if (n === "requesting") return /* @__PURE__ */ l(y, { className: "IncodePermissionsRequestingPage" });
|
|
2068
|
-
if (n === "learnMore") return /* @__PURE__ */ l(
|
|
2101
|
+
if (n === "learnMore") return /* @__PURE__ */ l(ye, {
|
|
2069
2102
|
onAllowPermissions: () => t.requestPermission(),
|
|
2070
2103
|
onQuitProcess: () => t.close(),
|
|
2071
2104
|
"data-testid": "permissions",
|
|
2072
2105
|
"data-permission-status": "learnMore"
|
|
2073
2106
|
});
|
|
2074
|
-
if (n === "denied") return /* @__PURE__ */ l(
|
|
2107
|
+
if (n === "denied") return /* @__PURE__ */ l(_e, {
|
|
2075
2108
|
onRefresh: () => window.location.reload(),
|
|
2076
2109
|
"data-testid": "permissions",
|
|
2077
2110
|
"data-permission-status": "denied"
|
|
2078
2111
|
});
|
|
2079
2112
|
let a = null;
|
|
2080
|
-
return a = r ? /* @__PURE__ */ l(
|
|
2113
|
+
return a = r ? /* @__PURE__ */ l(be, {
|
|
2081
2114
|
onAllowPermissions: t.requestPermission,
|
|
2082
2115
|
onDenyPermissions: t.goToLearnMore
|
|
2083
2116
|
}) : /* @__PURE__ */ l(w.Root, {
|
|
@@ -2103,7 +2136,7 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2103
2136
|
"data-permission-status": n,
|
|
2104
2137
|
children: a
|
|
2105
2138
|
});
|
|
2106
|
-
},
|
|
2139
|
+
}, J = ({ icon: e, title: t, className: n }) => {
|
|
2107
2140
|
let i = o(null);
|
|
2108
2141
|
return r(() => {
|
|
2109
2142
|
i.current?.focus();
|
|
@@ -2124,10 +2157,10 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2124
2157
|
]
|
|
2125
2158
|
})]
|
|
2126
2159
|
});
|
|
2127
|
-
},
|
|
2160
|
+
}, Y = {
|
|
2128
2161
|
title: "Something went wrong",
|
|
2129
2162
|
description: "Please try again later"
|
|
2130
|
-
},
|
|
2163
|
+
}, Se = {
|
|
2131
2164
|
MASK_ERROR: {
|
|
2132
2165
|
title: "notifications.mask",
|
|
2133
2166
|
description: "notifications.maskDescription"
|
|
@@ -2160,13 +2193,13 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2160
2193
|
title: "notifications.multiple",
|
|
2161
2194
|
description: "notifications.multipleDescription"
|
|
2162
2195
|
},
|
|
2163
|
-
TOO_BLURRY_ERROR:
|
|
2164
|
-
TOO_DARK_ERROR:
|
|
2165
|
-
SERVER_ERROR:
|
|
2166
|
-
FACE_CROPPING_FAILED:
|
|
2167
|
-
FACE_TOO_SMALL:
|
|
2168
|
-
PROCESSING_ERROR:
|
|
2169
|
-
BAD_REQUEST:
|
|
2196
|
+
TOO_BLURRY_ERROR: Y,
|
|
2197
|
+
TOO_DARK_ERROR: Y,
|
|
2198
|
+
SERVER_ERROR: Y,
|
|
2199
|
+
FACE_CROPPING_FAILED: Y,
|
|
2200
|
+
FACE_TOO_SMALL: Y,
|
|
2201
|
+
PROCESSING_ERROR: Y,
|
|
2202
|
+
BAD_REQUEST: Y,
|
|
2170
2203
|
USER_IS_NOT_RECOGNIZED: {
|
|
2171
2204
|
title: "notifications.accessDenied",
|
|
2172
2205
|
description: "notifications.accessDeniedDescription"
|
|
@@ -2215,24 +2248,24 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2215
2248
|
title: "notifications.selfieImageLowQuality",
|
|
2216
2249
|
description: "notifications.selfieImageLowQualityDescription"
|
|
2217
2250
|
}
|
|
2218
|
-
},
|
|
2251
|
+
}, Ce = /* @__PURE__ */ "LIVENESS_ERROR.BRIGHTNESS_ERROR.LENSES_ERROR.MASK_ERROR.CLOSED_EYES_ERROR.HEAD_COVER_ERROR.SERVER_ERROR.FACE_NOT_FOUND.MULTIPLE_FACES.TOO_BLURRY_ERROR.TOO_DARK_ERROR.USER_IS_NOT_RECOGNIZED.SPOOF_ATTEMPT_DETECTED.FACE_TOO_DARK.LENSES_DETECTED.FACE_MASK_DETECTED.CLOSED_EYES_DETECTED.HEAD_COVER_DETECTED.FACE_CROPPING_FAILED.FACE_TOO_SMALL.FACE_TOO_BLURRY.BAD_PHOTO_QUALITY.PROCESSING_ERROR.BAD_REQUEST.NONEXISTENT_CUSTOMER.HINT_NOT_PROVIDED.SELFIE_IMAGE_LOW_QUALITY".split("."), X = (e) => {
|
|
2219
2252
|
let t = e.toUpperCase();
|
|
2220
2253
|
if (t.includes("HTTP 400") || t.includes("BAD_REQUEST")) return "BAD_REQUEST";
|
|
2221
2254
|
if (t.includes("HTTP 500") || t.includes("SERVER_ERROR")) return "SERVER_ERROR";
|
|
2222
|
-
for (let e of
|
|
2255
|
+
for (let e of Ce) if (t.includes(e)) return e;
|
|
2223
2256
|
return null;
|
|
2224
2257
|
}, Z = ({ error: t, attemptsRemaining: n, onTryAgain: r }) => {
|
|
2225
2258
|
let { t: i } = e();
|
|
2226
2259
|
if (!t) return null;
|
|
2227
|
-
let { title: a, description: o } =
|
|
2228
|
-
return /* @__PURE__ */ l(
|
|
2260
|
+
let { title: a, description: o } = Se[X(t) ?? t] ?? Y, s = i(a) ?? a, c = i(n <= 0 ? "notifications.selfieCaptureFailedDescription" : o);
|
|
2261
|
+
return /* @__PURE__ */ l(k, {
|
|
2229
2262
|
"data-testid": "face-capture-error-modal",
|
|
2230
2263
|
title: s,
|
|
2231
2264
|
description: c,
|
|
2232
2265
|
attemptsRemaining: n,
|
|
2233
2266
|
onButtonClick: r
|
|
2234
2267
|
});
|
|
2235
|
-
},
|
|
2268
|
+
}, we = () => /* @__PURE__ */ l("svg", {
|
|
2236
2269
|
width: "292",
|
|
2237
2270
|
height: "272",
|
|
2238
2271
|
viewBox: "0 0 292 272",
|
|
@@ -2245,7 +2278,7 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2245
2278
|
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",
|
|
2246
2279
|
fill: "white"
|
|
2247
2280
|
})]
|
|
2248
|
-
}), Q = "var(--surface-neutral-100)",
|
|
2281
|
+
}), Q = "var(--surface-neutral-100)", Te = (e) => {
|
|
2249
2282
|
switch (e) {
|
|
2250
2283
|
case "success":
|
|
2251
2284
|
case "capturing": return "var(--surface-status-positive-500)";
|
|
@@ -2282,8 +2315,8 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2282
2315
|
})]
|
|
2283
2316
|
}) }) : null
|
|
2284
2317
|
]
|
|
2285
|
-
}),
|
|
2286
|
-
let t = s(), n = e === "loading" || e === "capturing", r =
|
|
2318
|
+
}), Ee = ({ borderState: e = "idle" }) => {
|
|
2319
|
+
let t = s(), n = e === "loading" || e === "capturing", r = Te(e), i = n ? `url(#${t})` : r;
|
|
2287
2320
|
return /* @__PURE__ */ l("div", {
|
|
2288
2321
|
class: "IncodeLoadingBorder",
|
|
2289
2322
|
"aria-hidden": "true",
|
|
@@ -2299,7 +2332,7 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2299
2332
|
})
|
|
2300
2333
|
})]
|
|
2301
2334
|
});
|
|
2302
|
-
},
|
|
2335
|
+
}, De = () => /* @__PURE__ */ l("div", {
|
|
2303
2336
|
class: "IncodeCameraButton",
|
|
2304
2337
|
children: /* @__PURE__ */ l("svg", {
|
|
2305
2338
|
width: "64",
|
|
@@ -2325,7 +2358,7 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2325
2358
|
})
|
|
2326
2359
|
]
|
|
2327
2360
|
})
|
|
2328
|
-
}),
|
|
2361
|
+
}), Oe = i(({ onClick: t, disabled: n }, r) => {
|
|
2329
2362
|
let { t: i } = e();
|
|
2330
2363
|
return /* @__PURE__ */ l("div", {
|
|
2331
2364
|
class: "IncodeSelfieManualCapture",
|
|
@@ -2345,11 +2378,11 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2345
2378
|
disabled: n,
|
|
2346
2379
|
class: "IncodeSelfieManualCaptureButton",
|
|
2347
2380
|
"aria-label": i("selfiev2.manualCapture.captureButton"),
|
|
2348
|
-
children: /* @__PURE__ */ l(
|
|
2381
|
+
children: /* @__PURE__ */ l(De, {})
|
|
2349
2382
|
}) })
|
|
2350
2383
|
]
|
|
2351
2384
|
});
|
|
2352
|
-
}),
|
|
2385
|
+
}), ke = ({ detectionState: t, disabled: i }) => {
|
|
2353
2386
|
let { t: s } = e(), c = o(null), u = o({
|
|
2354
2387
|
message: "",
|
|
2355
2388
|
at: 0
|
|
@@ -2428,7 +2461,7 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2428
2461
|
children: _
|
|
2429
2462
|
})
|
|
2430
2463
|
}), /* @__PURE__ */ l(d, { size: 24 })] }) : null] });
|
|
2431
|
-
},
|
|
2464
|
+
}, Ae = ({ manager: t, state: i }) => {
|
|
2432
2465
|
let { captureStatus: a, stream: s, detectionStatus: u, attemptsRemaining: p, uploadError: h, assistedOnboarding: g } = i, [_, x] = c(!1), { t: S } = e(), w = o(null);
|
|
2433
2466
|
if (r(() => {
|
|
2434
2467
|
u === "manualCapture" && w.current?.focus();
|
|
@@ -2447,27 +2480,27 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2447
2480
|
/* @__PURE__ */ l("div", {
|
|
2448
2481
|
class: "IncodeCaptureContainer",
|
|
2449
2482
|
children: [
|
|
2450
|
-
/* @__PURE__ */ l(
|
|
2483
|
+
/* @__PURE__ */ l(Ee, { borderState: e() }),
|
|
2451
2484
|
/* @__PURE__ */ l("div", {
|
|
2452
2485
|
class: "IncodeCaptureFrame",
|
|
2453
2486
|
children: /* @__PURE__ */ l("div", {
|
|
2454
2487
|
class: "IncodeCaptureVideoWrapper",
|
|
2455
2488
|
"aria-hidden": "true",
|
|
2456
|
-
children: s ? /* @__PURE__ */ l(n, { children: [/* @__PURE__ */ l(
|
|
2489
|
+
children: s ? /* @__PURE__ */ l(n, { children: [/* @__PURE__ */ l(je, {
|
|
2457
2490
|
stream: s,
|
|
2458
2491
|
mirrored: !g
|
|
2459
2492
|
}), /* @__PURE__ */ l("div", {
|
|
2460
2493
|
class: "IncodeCaptureVideo",
|
|
2461
|
-
children: /* @__PURE__ */ l(
|
|
2494
|
+
children: /* @__PURE__ */ l(we, {})
|
|
2462
2495
|
})] }) : null
|
|
2463
2496
|
})
|
|
2464
2497
|
}),
|
|
2465
2498
|
/* @__PURE__ */ l(d, { size: 32 }),
|
|
2466
|
-
u ? /* @__PURE__ */ l(
|
|
2499
|
+
u ? /* @__PURE__ */ l(ke, {
|
|
2467
2500
|
detectionState: u,
|
|
2468
2501
|
disabled: !!h || _
|
|
2469
2502
|
}) : null,
|
|
2470
|
-
u === "manualCapture" ? /* @__PURE__ */ l(
|
|
2503
|
+
u === "manualCapture" ? /* @__PURE__ */ l(Oe, {
|
|
2471
2504
|
ref: w,
|
|
2472
2505
|
onClick: () => {
|
|
2473
2506
|
x(!0), t.capture();
|
|
@@ -2497,7 +2530,7 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2497
2530
|
children: "Capturing..."
|
|
2498
2531
|
})
|
|
2499
2532
|
})
|
|
2500
|
-
}) : a === "uploading" ? /* @__PURE__ */ l(
|
|
2533
|
+
}) : a === "uploading" ? /* @__PURE__ */ l(J, {
|
|
2501
2534
|
className: "IncodeCaptureStatusUploading",
|
|
2502
2535
|
icon: /* @__PURE__ */ l(m, { size: 64 }),
|
|
2503
2536
|
title: S("idv2.capture.processing.uploading")
|
|
@@ -2507,11 +2540,11 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2507
2540
|
onTryAgain: () => {
|
|
2508
2541
|
t.retryCapture(), x(!1);
|
|
2509
2542
|
}
|
|
2510
|
-
}) : a === "success" ? /* @__PURE__ */ l(
|
|
2543
|
+
}) : a === "success" ? /* @__PURE__ */ l(J, {
|
|
2511
2544
|
icon: /* @__PURE__ */ l(C, { size: 64 }),
|
|
2512
2545
|
title: S("idv2.capture.processing.success")
|
|
2513
2546
|
}) : null;
|
|
2514
|
-
},
|
|
2547
|
+
}, je = ({ stream: e, mirrored: t }) => {
|
|
2515
2548
|
let n = o(null);
|
|
2516
2549
|
return r(() => {
|
|
2517
2550
|
n.current && e && (n.current.srcObject = e);
|
|
@@ -2523,13 +2556,13 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2523
2556
|
"aria-hidden": "true",
|
|
2524
2557
|
class: t ? "IncodeCaptureVideoElement IncodeCaptureVideoMirrored" : "IncodeCaptureVideoElement"
|
|
2525
2558
|
});
|
|
2526
|
-
},
|
|
2559
|
+
}, Me = ({ manager: t }) => {
|
|
2527
2560
|
let { t: n } = e(), [i, a] = c(!1), [o, s] = c(null);
|
|
2528
2561
|
return r(() => {
|
|
2529
2562
|
import("./selfieTutorial-CmGGVE4q.js").then((e) => {
|
|
2530
2563
|
s(e.default);
|
|
2531
2564
|
});
|
|
2532
|
-
}, []), /* @__PURE__ */ l(
|
|
2565
|
+
}, []), /* @__PURE__ */ l(M, {
|
|
2533
2566
|
animationData: o,
|
|
2534
2567
|
title: n("face.tutorial.title"),
|
|
2535
2568
|
titleId: "face-tutorial-heading",
|
|
@@ -2544,4 +2577,4 @@ var ye = ({ manager: t, permissionStatus: n }) => {
|
|
|
2544
2577
|
});
|
|
2545
2578
|
};
|
|
2546
2579
|
//#endregion
|
|
2547
|
-
export {
|
|
2580
|
+
export { j as a, M as i, Ae as n, k as o, xe as r, Me as t };
|