bry-biometric-collector 3.3.0-RC04 → 3.3.0-RC05
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/README.md +6 -0
- package/dist/{DocumentCollector_defd5e57_3.3.0-RC04.js → DocumentCollector_fac8e88e_3.3.0-RC05.js} +4 -4
- package/dist/{FaceCollector_16e3c9ed_3.3.0-RC04.js → FaceCollector_d7a5f6dd_3.3.0-RC05.js} +441 -446
- package/dist/{ValidationAlert_722c259d_3.3.0-RC04.js → ValidationAlert_51a3395e_3.3.0-RC05.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_c9629267_3.3.0-RC04.js → ___vite-browser-external_commonjs-proxy_9c968044_3.3.0-RC05.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{faceApi_8254146e_3.3.0-RC04.js → faceApi_a8b6f8d4_3.3.0-RC05.js} +4 -4
- package/dist/{fingersApi_2e316625_3.3.0-RC04.js → fingersApi_22e412a3_3.3.0-RC05.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_ccdcae61_3.3.0-RC04.js → index_8a9061ba_3.3.0-RC05.js} +3 -3
- package/dist/{index_882c2cd7_3.3.0-RC04.js → index_a05d6356_3.3.0-RC05.js} +3 -3
- package/dist/{main_adc308db_3.3.0-RC04.js → main_35f2cba0_3.3.0-RC05.js} +30 -30
- package/package.json +1 -1
- /package/dist/{en-us_e83efd5d_3.3.0-RC04.js → en-us_e83efd5d_3.3.0-RC05.js} +0 -0
- /package/dist/{es-cl_5939150a_3.3.0-RC04.js → es-cl_5939150a_3.3.0-RC05.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC04.js → face_api_0e3ce8c8_3.3.0-RC05.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC04.js → index-idlf-detector_39cfdffa_3.3.0-RC05.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC04.js → index-idlf-detector_a819b3c8_3.3.0-RC05.js} +0 -0
- /package/dist/{pt-br_fae15356_3.3.0-RC04.js → pt-br_fae15356_3.3.0-RC05.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { z as
|
|
2
|
-
import { W as ba, C as ga, V as va, a as pa } from "./
|
|
3
|
-
import { detectSingleFace as wa, matchDimensions as Ca, resizeResults as Ea } from "./face_api_0e3ce8c8_3.3.0-
|
|
4
|
-
const
|
|
1
|
+
import { z as xt, S as gt, B as vt, C as pt, D as wt, E as T, G as N, H as w, I as Y, J as h, K as H, L as Qe, M as G, N as Xe, O as D, P as O, Q as ze, R as Je, T as he, U as m, V as _e, W as be, X as ge, Y as z, Z as B, _ as F, a0 as Yi, $ as Zi, a1 as xi, a2 as Q, a3 as Bs, a4 as qe, a5 as S, a6 as Ge, a7 as ei, a8 as b, a9 as P, aa as jt, ab as Kt, ac as it, x as st, y as at, ad as Ws, ae as nt, af as we, ag as Ms, ah as Le, ai as Ht, aj as ki, ak as Us, al as je, am as ke, an as Vs, ao as zs, ap as qt, aq as Jt, ar as me, as as ae, at as Te, au as Ti, av as ot, aw as Qt, ax as js, ay as lt, az as Oi, aA as Ri, aB as Ks, aC as Hs, aD as qs, aE as Js, f as Di, aF as Qs, aG as Xs, aH as Gs, aI as Xt, aJ as j, m as _t, aK as Gt, aL as Ys, l as oe, aM as Ii, aN as Zs, aO as rt, aP as ct, aQ as Ai, aR as xs, aS as ut, A as Yt, aT as Oe, aU as $s, aV as Ke, aW as ea, aX as Li, e as Fe, aY as Zt, aZ as ft, a_ as ta, w as dt, a$ as ia, b0 as sa, b1 as aa, b2 as na, b3 as oa, b4 as la, b5 as He, b6 as ra, b7 as ca, b8 as ht, b9 as fe, ba as Ct, bb as ua, bc as fa, d as Fi, bd as da, be as mt, bf as le, bg as ha, bh as ma, bi as Si, bj as $i, bk as bt, bl as _a } from "./main_35f2cba0_3.3.0-RC05.js";
|
|
2
|
+
import { W as ba, C as ga, V as va, a as pa } from "./ValidationAlert_51a3395e_3.3.0-RC05.js";
|
|
3
|
+
import { detectSingleFace as wa, matchDimensions as Ca, resizeResults as Ea } from "./face_api_0e3ce8c8_3.3.0-RC05.js";
|
|
4
|
+
const $t = xt(!1);
|
|
5
5
|
class ya {
|
|
6
6
|
isDevToolsOpen = !1;
|
|
7
7
|
detectionCount = 0;
|
|
@@ -12,7 +12,7 @@ class ya {
|
|
|
12
12
|
return e || t;
|
|
13
13
|
}
|
|
14
14
|
checkForDevTools = () => {
|
|
15
|
-
this.detectDevToolsBySize() ? (this.detectionCount++, this.detectionCount >= 2 && !this.isDevToolsOpen && (this.isDevToolsOpen = !0,
|
|
15
|
+
this.detectDevToolsBySize() ? (this.detectionCount++, this.detectionCount >= 2 && !this.isDevToolsOpen && (this.isDevToolsOpen = !0, $t.set(this.isDevToolsOpen))) : (this.detectionCount = 0, this.isDevToolsOpen && (this.isDevToolsOpen = !1, $t.set(this.isDevToolsOpen)));
|
|
16
16
|
};
|
|
17
17
|
startDetection() {
|
|
18
18
|
this.stopDetection(), window.addEventListener("resize", () => {
|
|
@@ -50,8 +50,8 @@ function ka(i) {
|
|
|
50
50
|
);
|
|
51
51
|
return {
|
|
52
52
|
c() {
|
|
53
|
-
e = w("div"), n && n.c(), this.c = Y,
|
|
54
|
-
(i[0] ? "loading" : "") + " z-10"),
|
|
53
|
+
e = w("div"), n && n.c(), this.c = Y, h(e, "id", "face-oval"), h(e, "class", t = "loader " + /*loading*/
|
|
54
|
+
(i[0] ? "loading" : "") + " z-10"), h(
|
|
55
55
|
e,
|
|
56
56
|
"style",
|
|
57
57
|
/*styleVars*/
|
|
@@ -68,8 +68,8 @@ function ka(i) {
|
|
|
68
68
|
n = null;
|
|
69
69
|
}), Xe()), (!a || f & /*loading*/
|
|
70
70
|
1 && t !== (t = "loader " + /*loading*/
|
|
71
|
-
(r[0] ? "loading" : "") + " z-10")) &&
|
|
72
|
-
4) &&
|
|
71
|
+
(r[0] ? "loading" : "") + " z-10")) && h(e, "class", t), (!a || f & /*styleVars*/
|
|
72
|
+
4) && h(
|
|
73
73
|
e,
|
|
74
74
|
"style",
|
|
75
75
|
/*styleVars*/
|
|
@@ -90,34 +90,34 @@ function ka(i) {
|
|
|
90
90
|
const Ta = "hsl(var(--p))", Oa = "hsl(var(--su))";
|
|
91
91
|
function Ra(i, e, t) {
|
|
92
92
|
let a, n, r;
|
|
93
|
-
O(i, ze, (
|
|
94
|
-
let { loading: f } = e, { showWatermark: l } = e,
|
|
95
|
-
return he() && (u = 0.65,
|
|
96
|
-
"loading" in
|
|
93
|
+
O(i, ze, (d) => t(8, n = d)), O(i, Je, (d) => t(9, r = d));
|
|
94
|
+
let { loading: f } = e, { showWatermark: l } = e, c, o, u = 0.8, _ = 8, g = 0.15;
|
|
95
|
+
return he() && (u = 0.65, _ = 10, g = 0.25), i.$$set = (d) => {
|
|
96
|
+
"loading" in d && t(0, f = d.loading), "showWatermark" in d && t(1, l = d.showWatermark);
|
|
97
97
|
}, i.$$.update = () => {
|
|
98
98
|
if (i.$$.dirty & /*$videoStore, percentage, ovalHeight, ovalWidth, $ovalDimensions, captureBarPercentage*/
|
|
99
99
|
952 && r) {
|
|
100
|
-
t(4,
|
|
101
|
-
let
|
|
102
|
-
|
|
100
|
+
t(4, o = r.videoHeight * u), t(3, c = o / 1.45), m(ze, n.width = c, n), m(ze, n.height = o, n), m(ze, n.x = (r.videoWidth - n.width) / 2, n);
|
|
101
|
+
let d = r.videoHeight - r.videoHeight * g;
|
|
102
|
+
m(ze, n.y = d - n.height, n);
|
|
103
103
|
}
|
|
104
104
|
i.$$.dirty & /*ovalWidth, ovalHeight, borderWidth*/
|
|
105
105
|
88 && t(2, a = `
|
|
106
|
-
--oval-width: ${
|
|
107
|
-
--oval-height: ${
|
|
106
|
+
--oval-width: ${c}px;
|
|
107
|
+
--oval-height: ${o}px;
|
|
108
108
|
--border-color: ${Ta};
|
|
109
109
|
--border-color-animation: ${Oa};
|
|
110
|
-
--oval-border: ${
|
|
110
|
+
--oval-border: ${_}px;
|
|
111
111
|
`);
|
|
112
112
|
}, [
|
|
113
113
|
f,
|
|
114
114
|
l,
|
|
115
115
|
a,
|
|
116
|
-
o,
|
|
117
116
|
c,
|
|
117
|
+
o,
|
|
118
118
|
u,
|
|
119
|
-
m,
|
|
120
119
|
_,
|
|
120
|
+
g,
|
|
121
121
|
n,
|
|
122
122
|
r
|
|
123
123
|
];
|
|
@@ -159,7 +159,7 @@ function Da(i) {
|
|
|
159
159
|
let e;
|
|
160
160
|
return {
|
|
161
161
|
c() {
|
|
162
|
-
e = w("div"), this.c = Y,
|
|
162
|
+
e = w("div"), this.c = Y, h(e, "class", "video-overlay z-0"), h(
|
|
163
163
|
e,
|
|
164
164
|
"style",
|
|
165
165
|
/*styleVars*/
|
|
@@ -171,7 +171,7 @@ function Da(i) {
|
|
|
171
171
|
},
|
|
172
172
|
p(t, [a]) {
|
|
173
173
|
a & /*styleVars*/
|
|
174
|
-
1 &&
|
|
174
|
+
1 && h(
|
|
175
175
|
e,
|
|
176
176
|
"style",
|
|
177
177
|
/*styleVars*/
|
|
@@ -188,22 +188,22 @@ function Da(i) {
|
|
|
188
188
|
function Ia(i, e, t) {
|
|
189
189
|
let a, n;
|
|
190
190
|
O(i, Je, (u) => t(6, n = u));
|
|
191
|
-
let r, f, l = 0.8, { overlayColor:
|
|
191
|
+
let r, f, l = 0.8, { overlayColor: c } = e, { overlayTransparency: o } = e;
|
|
192
192
|
return he() && (l = 0.65), i.$$set = (u) => {
|
|
193
|
-
"overlayColor" in u && t(1,
|
|
193
|
+
"overlayColor" in u && t(1, c = u.overlayColor), "overlayTransparency" in u && t(2, o = u.overlayTransparency);
|
|
194
194
|
}, i.$$.update = () => {
|
|
195
195
|
i.$$.dirty & /*$videoStore, percentage, ovalHeight*/
|
|
196
196
|
112 && n && (t(4, f = n.videoHeight * l), t(3, r = f / 1.45)), i.$$.dirty & /*ovalWidth, ovalHeight, overlayColor, overlayTransparency*/
|
|
197
197
|
30 && t(0, a = `
|
|
198
198
|
--oval-width: ${r}px;
|
|
199
199
|
--oval-height: ${f}px;
|
|
200
|
-
--overlay-color: ${
|
|
201
|
-
--overlay-transparency: ${
|
|
200
|
+
--overlay-color: ${c};
|
|
201
|
+
--overlay-transparency: ${o};
|
|
202
202
|
`);
|
|
203
203
|
}, [
|
|
204
204
|
a,
|
|
205
|
-
o,
|
|
206
205
|
c,
|
|
206
|
+
o,
|
|
207
207
|
r,
|
|
208
208
|
f,
|
|
209
209
|
l,
|
|
@@ -247,45 +247,45 @@ function Pi(i) {
|
|
|
247
247
|
let e, t, a, n, r, f, l = (
|
|
248
248
|
/*$_*/
|
|
249
249
|
i[2]("faceCollector.obtainingPicture") + ""
|
|
250
|
-
),
|
|
250
|
+
), c;
|
|
251
251
|
return {
|
|
252
252
|
c() {
|
|
253
|
-
e = w("slot"), t = w("div"), a = w("img"), r = F(), f = w("span"),
|
|
253
|
+
e = w("slot"), t = w("div"), a = w("img"), r = F(), f = w("span"), c = S(l), Ge(a.src, n = ei) || h(a, "src", n), h(a, "alt", "loading gif"), h(a, "class", "m-auto h-[10em] lg:h-[12em]"), h(f, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center"), h(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), h(e, "name", "loading-camera-gif"), h(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
|
254
254
|
},
|
|
255
|
-
m(
|
|
256
|
-
T(
|
|
255
|
+
m(o, u) {
|
|
256
|
+
T(o, e, u), b(e, t), b(t, a), b(t, r), b(t, f), b(f, c);
|
|
257
257
|
},
|
|
258
|
-
p(
|
|
258
|
+
p(o, u) {
|
|
259
259
|
u & /*$_*/
|
|
260
260
|
4 && l !== (l = /*$_*/
|
|
261
|
-
|
|
261
|
+
o[2]("faceCollector.obtainingPicture") + "") && P(c, l);
|
|
262
262
|
},
|
|
263
|
-
d(
|
|
264
|
-
|
|
263
|
+
d(o) {
|
|
264
|
+
o && D(e);
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
}
|
|
268
268
|
function Bi(i) {
|
|
269
269
|
let e, t, a, n, r, f;
|
|
270
|
-
function l(u,
|
|
270
|
+
function l(u, _) {
|
|
271
271
|
return (
|
|
272
272
|
/*$isLoading*/
|
|
273
273
|
u[5] ? La : Aa
|
|
274
274
|
);
|
|
275
275
|
}
|
|
276
|
-
let
|
|
276
|
+
let c = l(i), o = c(i);
|
|
277
277
|
return {
|
|
278
278
|
c() {
|
|
279
|
-
e = w("div"), t = w("slot"), a = w("div"), n = w("img"), f = F(),
|
|
279
|
+
e = w("div"), t = w("slot"), a = w("div"), n = w("img"), f = F(), o.c(), Ge(n.src, r = ei) || h(n, "src", r), h(n, "alt", "loading gif"), h(n, "class", "m-auto h-[10em] lg:h-[12em]"), h(a, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), h(t, "name", "loading-camera-gif"), h(t, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]"), h(e, "class", "bg-white absolute inset-0 z-10 flex items-center justify-center");
|
|
280
280
|
},
|
|
281
|
-
m(u,
|
|
282
|
-
T(u, e,
|
|
281
|
+
m(u, _) {
|
|
282
|
+
T(u, e, _), b(e, t), b(t, a), b(a, n), b(a, f), o.m(a, null);
|
|
283
283
|
},
|
|
284
|
-
p(u,
|
|
285
|
-
|
|
284
|
+
p(u, _) {
|
|
285
|
+
c === (c = l(u)) && o ? o.p(u, _) : (o.d(1), o = c(u), o && (o.c(), o.m(a, null)));
|
|
286
286
|
},
|
|
287
287
|
d(u) {
|
|
288
|
-
u && D(e),
|
|
288
|
+
u && D(e), o.d();
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
}
|
|
@@ -296,10 +296,10 @@ function Aa(i) {
|
|
|
296
296
|
), a;
|
|
297
297
|
return {
|
|
298
298
|
c() {
|
|
299
|
-
e = w("span"), a = S(t),
|
|
299
|
+
e = w("span"), a = S(t), h(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
300
300
|
},
|
|
301
301
|
m(n, r) {
|
|
302
|
-
T(n, e, r),
|
|
302
|
+
T(n, e, r), b(e, a);
|
|
303
303
|
},
|
|
304
304
|
p(n, r) {
|
|
305
305
|
r & /*$_*/
|
|
@@ -315,7 +315,7 @@ function La(i) {
|
|
|
315
315
|
let e;
|
|
316
316
|
return {
|
|
317
317
|
c() {
|
|
318
|
-
e = w("span"), e.textContent = "Obtaining photo...",
|
|
318
|
+
e = w("span"), e.textContent = "Obtaining photo...", h(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
319
319
|
},
|
|
320
320
|
m(t, a) {
|
|
321
321
|
T(t, e, a);
|
|
@@ -328,25 +328,25 @@ function La(i) {
|
|
|
328
328
|
}
|
|
329
329
|
function Wi(i) {
|
|
330
330
|
let e, t, a, n, r;
|
|
331
|
-
function f(
|
|
331
|
+
function f(o, u) {
|
|
332
332
|
return (
|
|
333
333
|
/*$isLoading*/
|
|
334
|
-
|
|
334
|
+
o[5] ? Sa : Fa
|
|
335
335
|
);
|
|
336
336
|
}
|
|
337
|
-
let l = f(i),
|
|
337
|
+
let l = f(i), c = l(i);
|
|
338
338
|
return {
|
|
339
339
|
c() {
|
|
340
|
-
e = w("slot"), t = w("div"), a = w("img"), r = F(),
|
|
340
|
+
e = w("slot"), t = w("div"), a = w("img"), r = F(), c.c(), Ge(a.src, n = ei) || h(a, "src", n), h(a, "alt", "loading gif"), h(a, "class", "m-auto h-[10em] lg:h-[12em]"), h(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), h(e, "name", "loading-camera-gif"), h(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
|
341
341
|
},
|
|
342
|
-
m(
|
|
343
|
-
T(
|
|
342
|
+
m(o, u) {
|
|
343
|
+
T(o, e, u), b(e, t), b(t, a), b(t, r), c.m(t, null);
|
|
344
344
|
},
|
|
345
|
-
p(
|
|
346
|
-
l === (l = f(
|
|
345
|
+
p(o, u) {
|
|
346
|
+
l === (l = f(o)) && c ? c.p(o, u) : (c.d(1), c = l(o), c && (c.c(), c.m(t, null)));
|
|
347
347
|
},
|
|
348
|
-
d(
|
|
349
|
-
|
|
348
|
+
d(o) {
|
|
349
|
+
o && D(e), c.d();
|
|
350
350
|
}
|
|
351
351
|
};
|
|
352
352
|
}
|
|
@@ -357,10 +357,10 @@ function Fa(i) {
|
|
|
357
357
|
), a;
|
|
358
358
|
return {
|
|
359
359
|
c() {
|
|
360
|
-
e = w("span"), a = S(t),
|
|
360
|
+
e = w("span"), a = S(t), h(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
361
361
|
},
|
|
362
362
|
m(n, r) {
|
|
363
|
-
T(n, e, r),
|
|
363
|
+
T(n, e, r), b(e, a);
|
|
364
364
|
},
|
|
365
365
|
p(n, r) {
|
|
366
366
|
r & /*$_*/
|
|
@@ -376,7 +376,7 @@ function Sa(i) {
|
|
|
376
376
|
let e;
|
|
377
377
|
return {
|
|
378
378
|
c() {
|
|
379
|
-
e = w("span"), e.textContent = "Loading camera...",
|
|
379
|
+
e = w("span"), e.textContent = "Loading camera...", h(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
380
380
|
},
|
|
381
381
|
m(t, a) {
|
|
382
382
|
T(t, e, a);
|
|
@@ -397,42 +397,42 @@ function Na(i) {
|
|
|
397
397
|
/*$detectingFace*/
|
|
398
398
|
i[3] && /*$cameraStatusStore*/
|
|
399
399
|
i[4] === B.OK && Bi(i)
|
|
400
|
-
),
|
|
400
|
+
), c = n && Wi(i);
|
|
401
401
|
return {
|
|
402
402
|
c() {
|
|
403
|
-
f && f.c(), t = F(), l && l.c(), a = F(),
|
|
403
|
+
f && f.c(), t = F(), l && l.c(), a = F(), c && c.c(), r = Yi(), this.c = Y;
|
|
404
404
|
},
|
|
405
|
-
m(
|
|
406
|
-
f && f.m(
|
|
405
|
+
m(o, u) {
|
|
406
|
+
f && f.m(o, u), T(o, t, u), l && l.m(o, u), T(o, a, u), c && c.m(o, u), T(o, r, u);
|
|
407
407
|
},
|
|
408
|
-
p(
|
|
408
|
+
p(o, [u]) {
|
|
409
409
|
u & /*waitingIdrndCaptureEvent*/
|
|
410
410
|
1 && (e = z() && /*waitingIdrndCaptureEvent*/
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
411
|
+
o[0]), e ? f ? f.p(o, u) : (f = Pi(o), f.c(), f.m(t.parentNode, t)) : f && (f.d(1), f = null), /*$detectingFace*/
|
|
412
|
+
o[3] && /*$cameraStatusStore*/
|
|
413
|
+
o[4] === B.OK ? l ? l.p(o, u) : (l = Bi(o), l.c(), l.m(a.parentNode, a)) : l && (l.d(1), l = null), u & /*idrndLoading, $ready, $cameraStatusStore*/
|
|
414
414
|
82 && (n = (z() && /*idrndLoading*/
|
|
415
|
-
(
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
415
|
+
(o[1] || !/*$ready*/
|
|
416
|
+
o[6]) || !z() && !/*$ready*/
|
|
417
|
+
o[6]) && /*$cameraStatusStore*/
|
|
418
|
+
o[4] === B.OK), n ? c ? c.p(o, u) : (c = Wi(o), c.c(), c.m(r.parentNode, r)) : c && (c.d(1), c = null);
|
|
419
419
|
},
|
|
420
420
|
i: Y,
|
|
421
421
|
o: Y,
|
|
422
|
-
d(
|
|
423
|
-
f && f.d(
|
|
422
|
+
d(o) {
|
|
423
|
+
f && f.d(o), o && D(t), l && l.d(o), o && D(a), c && c.d(o), o && D(r);
|
|
424
424
|
}
|
|
425
425
|
};
|
|
426
426
|
}
|
|
427
427
|
function Pa(i, e, t) {
|
|
428
428
|
let a, n, r, f, l;
|
|
429
429
|
O(i, Zi, (u) => t(2, a = u)), O(i, xi, (u) => t(3, n = u)), O(i, Q, (u) => t(4, r = u)), O(i, Bs, (u) => t(5, f = u)), O(i, qe, (u) => t(6, l = u));
|
|
430
|
-
let { waitingIdrndCaptureEvent:
|
|
430
|
+
let { waitingIdrndCaptureEvent: c } = e, { idrndLoading: o } = e;
|
|
431
431
|
return i.$$set = (u) => {
|
|
432
|
-
"waitingIdrndCaptureEvent" in u && t(0,
|
|
432
|
+
"waitingIdrndCaptureEvent" in u && t(0, c = u.waitingIdrndCaptureEvent), "idrndLoading" in u && t(1, o = u.idrndLoading);
|
|
433
433
|
}, [
|
|
434
|
-
o,
|
|
435
434
|
c,
|
|
435
|
+
o,
|
|
436
436
|
a,
|
|
437
437
|
n,
|
|
438
438
|
r,
|
|
@@ -485,12 +485,12 @@ function Ui(i, e, t) {
|
|
|
485
485
|
return a[125] = e[t], a;
|
|
486
486
|
}
|
|
487
487
|
function Vi(i) {
|
|
488
|
-
let e, t, a = z(), n, r, f, l,
|
|
488
|
+
let e, t, a = z(), n, r, f, l, c, o, u, _, g, d, C, p, v, E, R, V, x, K = a && Ba(i), q = (
|
|
489
489
|
/*$ready*/
|
|
490
490
|
i[23] && !/*$detectingFace*/
|
|
491
491
|
i[26] && zi(i)
|
|
492
492
|
);
|
|
493
|
-
return
|
|
493
|
+
return d = new ca({}), p = new ga({
|
|
494
494
|
props: {
|
|
495
495
|
showConfigButton: (
|
|
496
496
|
/*showConfigButton*/
|
|
@@ -539,8 +539,8 @@ function Vi(i) {
|
|
|
539
539
|
}
|
|
540
540
|
}), {
|
|
541
541
|
c() {
|
|
542
|
-
e = w("div"), t = w("div"), K && K.c(), n = F(), r = w("video"), l = F(),
|
|
543
|
-
i[23] ? he() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0"), r.playsInline = !0, r.muted = !0, r.autoplay = !0,
|
|
542
|
+
e = w("div"), t = w("div"), K && K.c(), n = F(), r = w("video"), l = F(), c = w("canvas"), o = F(), u = w("div"), _ = w("div"), q && q.c(), g = F(), _e(d.$$.fragment), C = F(), _e(p.$$.fragment), h(r, "id", "bry-cc-camera-video-tag"), h(r, "class", f = /*$ready*/
|
|
543
|
+
i[23] ? he() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0"), r.playsInline = !0, r.muted = !0, r.autoplay = !0, h(c, "id", "bry-ce-detectionsCanvas"), h(c, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), h(t, "class", "overflow-hidden"), ht(
|
|
544
544
|
t,
|
|
545
545
|
"width",
|
|
546
546
|
/*$videoStore*/
|
|
@@ -550,7 +550,7 @@ function Vi(i) {
|
|
|
550
550
|
"height",
|
|
551
551
|
/*$videoStore*/
|
|
552
552
|
i[34].videoHeight + "px"
|
|
553
|
-
),
|
|
553
|
+
), h(_, "class", "flex flex-grow w-full items-center justify-center relative"), h(u, "class", "absolute inset-0 flex flex-col items-center justify-between w-full h-full"), h(e, "class", v = /*$ready*/
|
|
554
554
|
i[23] ? "relative" : "relative w-0 h-0"), e.hidden = E = /*$cameraStatusStore*/
|
|
555
555
|
i[22] !== B.OK || z() && /*idrndLoading*/
|
|
556
556
|
(i[18] || /*idrndClosed*/
|
|
@@ -558,7 +558,7 @@ function Vi(i) {
|
|
|
558
558
|
i[20]);
|
|
559
559
|
},
|
|
560
560
|
m(A, W) {
|
|
561
|
-
T(A, e, W),
|
|
561
|
+
T(A, e, W), b(e, t), K && K.m(t, null), b(t, n), b(t, r), i[51](r), b(t, l), b(t, c), i[53](c), b(e, o), b(e, u), b(u, _), q && q.m(_, null), b(u, g), be(d, u, null), b(u, C), be(p, u, null), R = !0, V || (x = [
|
|
562
562
|
fe(
|
|
563
563
|
r,
|
|
564
564
|
"canplay",
|
|
@@ -577,7 +577,7 @@ function Vi(i) {
|
|
|
577
577
|
p(A, W) {
|
|
578
578
|
a && K.p(A, W), (!R || W[0] & /*$ready*/
|
|
579
579
|
8388608 && f !== (f = /*$ready*/
|
|
580
|
-
A[23] ? he() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0")) &&
|
|
580
|
+
A[23] ? he() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0")) && h(r, "class", f), (!R || W[1] & /*$videoStore*/
|
|
581
581
|
8) && ht(
|
|
582
582
|
t,
|
|
583
583
|
"width",
|
|
@@ -592,7 +592,7 @@ function Vi(i) {
|
|
|
592
592
|
), /*$ready*/
|
|
593
593
|
A[23] && !/*$detectingFace*/
|
|
594
594
|
A[26] ? q ? (q.p(A, W), W[0] & /*$ready, $detectingFace*/
|
|
595
|
-
75497472 && H(q, 1)) : (q = zi(A), q.c(), H(q, 1), q.m(
|
|
595
|
+
75497472 && H(q, 1)) : (q = zi(A), q.c(), H(q, 1), q.m(_, null)) : q && (Qe(), G(q, 1, 1, () => {
|
|
596
596
|
q = null;
|
|
597
597
|
}), Xe());
|
|
598
598
|
const Z = {};
|
|
@@ -618,7 +618,7 @@ function Vi(i) {
|
|
|
618
618
|
1048576 && (Z.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
|
619
619
|
A[20]), p.$set(Z), (!R || W[0] & /*$ready*/
|
|
620
620
|
8388608 && v !== (v = /*$ready*/
|
|
621
|
-
A[23] ? "relative" : "relative w-0 h-0")) &&
|
|
621
|
+
A[23] ? "relative" : "relative w-0 h-0")) && h(e, "class", v), (!R || W[0] & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
|
622
622
|
6029312 && E !== (E = /*$cameraStatusStore*/
|
|
623
623
|
A[22] !== B.OK || z() && /*idrndLoading*/
|
|
624
624
|
(A[18] || /*idrndClosed*/
|
|
@@ -626,13 +626,13 @@ function Vi(i) {
|
|
|
626
626
|
A[20]))) && (e.hidden = E);
|
|
627
627
|
},
|
|
628
628
|
i(A) {
|
|
629
|
-
R || (H(q), H(
|
|
629
|
+
R || (H(q), H(d.$$.fragment, A), H(p.$$.fragment, A), R = !0);
|
|
630
630
|
},
|
|
631
631
|
o(A) {
|
|
632
|
-
G(q), G(
|
|
632
|
+
G(q), G(d.$$.fragment, A), G(p.$$.fragment, A), R = !1;
|
|
633
633
|
},
|
|
634
634
|
d(A) {
|
|
635
|
-
A && D(e), K && K.d(), i[51](null), i[53](null), q && q.d(), ge(
|
|
635
|
+
A && D(e), K && K.d(), i[51](null), i[53](null), q && q.d(), ge(d), ge(p), V = !1, Ct(x);
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
}
|
|
@@ -710,26 +710,26 @@ function zi(i) {
|
|
|
710
710
|
c() {
|
|
711
711
|
_e(e.$$.fragment), t = F(), _e(a.$$.fragment), n = F(), _e(r.$$.fragment);
|
|
712
712
|
},
|
|
713
|
-
m(l,
|
|
714
|
-
be(e, l,
|
|
713
|
+
m(l, c) {
|
|
714
|
+
be(e, l, c), T(l, t, c), be(a, l, c), T(l, n, c), be(r, l, c), f = !0;
|
|
715
715
|
},
|
|
716
|
-
p(l,
|
|
717
|
-
const
|
|
718
|
-
|
|
719
|
-
65536 && (
|
|
720
|
-
l[16]), e.$set(
|
|
716
|
+
p(l, c) {
|
|
717
|
+
const o = {};
|
|
718
|
+
c[0] & /*isCountingDown*/
|
|
719
|
+
65536 && (o.isCountingDown = /*isCountingDown*/
|
|
720
|
+
l[16]), e.$set(o);
|
|
721
721
|
const u = {};
|
|
722
|
-
|
|
722
|
+
c[0] & /*isCountingDown*/
|
|
723
723
|
65536 && (u.loading = /*isCountingDown*/
|
|
724
|
-
l[16]),
|
|
724
|
+
l[16]), c[0] & /*showWatermark*/
|
|
725
725
|
256 && (u.showWatermark = /*showWatermark*/
|
|
726
726
|
l[8]), a.$set(u);
|
|
727
|
-
const
|
|
728
|
-
|
|
729
|
-
512 && (
|
|
730
|
-
l[9]),
|
|
731
|
-
1024 && (
|
|
732
|
-
l[10]), r.$set(
|
|
727
|
+
const _ = {};
|
|
728
|
+
c[0] & /*videoOverlay*/
|
|
729
|
+
512 && (_.overlayColor = /*videoOverlay*/
|
|
730
|
+
l[9]), c[0] & /*videoOverlayTransparency*/
|
|
731
|
+
1024 && (_.overlayTransparency = /*videoOverlayTransparency*/
|
|
732
|
+
l[10]), r.$set(_);
|
|
733
733
|
},
|
|
734
734
|
i(l) {
|
|
735
735
|
f || (H(e.$$.fragment, l), H(a.$$.fragment, l), H(r.$$.fragment, l), f = !0);
|
|
@@ -746,17 +746,17 @@ function ji(i) {
|
|
|
746
746
|
let e, t, a = (
|
|
747
747
|
/*$_*/
|
|
748
748
|
i[31]("faceCollector.finish") + ""
|
|
749
|
-
), n, r, f, l,
|
|
749
|
+
), n, r, f, l, c = (
|
|
750
750
|
/*$_*/
|
|
751
751
|
i[31]("faceCollector.retakePhoto") + ""
|
|
752
|
-
),
|
|
752
|
+
), o, u, _;
|
|
753
753
|
return {
|
|
754
754
|
c() {
|
|
755
|
-
e = w("div"), t = w("button"), n = S(a), f = F(), l = w("button"),
|
|
756
|
-
i[28].length === 0,
|
|
755
|
+
e = w("div"), t = w("button"), n = S(a), f = F(), l = w("button"), o = S(c), t.disabled = r = /*$justification*/
|
|
756
|
+
i[28].length === 0, h(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), h(l, "id", "bry-cc-retake-button"), h(l, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), h(e, "class", "ce-dui-btn-group flex");
|
|
757
757
|
},
|
|
758
|
-
m(
|
|
759
|
-
T(
|
|
758
|
+
m(g, d) {
|
|
759
|
+
T(g, e, d), b(e, t), b(t, n), b(e, f), b(e, l), b(l, o), u || (_ = [
|
|
760
760
|
fe(
|
|
761
761
|
t,
|
|
762
762
|
"click",
|
|
@@ -771,17 +771,17 @@ function ji(i) {
|
|
|
771
771
|
)
|
|
772
772
|
], u = !0);
|
|
773
773
|
},
|
|
774
|
-
p(
|
|
775
|
-
|
|
774
|
+
p(g, d) {
|
|
775
|
+
d[1] & /*$_*/
|
|
776
776
|
1 && a !== (a = /*$_*/
|
|
777
|
-
|
|
777
|
+
g[31]("faceCollector.finish") + "") && P(n, a), d[0] & /*$justification*/
|
|
778
778
|
268435456 && r !== (r = /*$justification*/
|
|
779
|
-
|
|
780
|
-
1 &&
|
|
781
|
-
|
|
779
|
+
g[28].length === 0) && (t.disabled = r), d[1] & /*$_*/
|
|
780
|
+
1 && c !== (c = /*$_*/
|
|
781
|
+
g[31]("faceCollector.retakePhoto") + "") && P(o, c);
|
|
782
782
|
},
|
|
783
|
-
d(
|
|
784
|
-
|
|
783
|
+
d(g) {
|
|
784
|
+
g && D(e), u = !1, Ct(_);
|
|
785
785
|
}
|
|
786
786
|
};
|
|
787
787
|
}
|
|
@@ -810,70 +810,70 @@ function Wa(i) {
|
|
|
810
810
|
};
|
|
811
811
|
}
|
|
812
812
|
function Ma(i) {
|
|
813
|
-
let e, t, a, n, r, f, l,
|
|
813
|
+
let e, t, a, n, r, f, l, c, o;
|
|
814
814
|
const u = [
|
|
815
815
|
Ka,
|
|
816
816
|
ja,
|
|
817
817
|
za,
|
|
818
818
|
Va,
|
|
819
819
|
Ua
|
|
820
|
-
],
|
|
821
|
-
function
|
|
820
|
+
], _ = [];
|
|
821
|
+
function g(d, C) {
|
|
822
822
|
return (
|
|
823
823
|
/*$captured*/
|
|
824
|
-
|
|
824
|
+
d[25] ? (
|
|
825
825
|
/*$unconformitiesStore*/
|
|
826
|
-
|
|
826
|
+
d[32].isLoading ? 1 : (
|
|
827
827
|
/*$requestResult*/
|
|
828
|
-
|
|
828
|
+
d[30] !== j.OK ? 2 : (
|
|
829
829
|
/*$saved*/
|
|
830
|
-
|
|
830
|
+
d[27] ? 4 : 3
|
|
831
831
|
)
|
|
832
832
|
)
|
|
833
833
|
) : 0
|
|
834
834
|
);
|
|
835
835
|
}
|
|
836
|
-
return f =
|
|
836
|
+
return f = g(i), l = _[f] = u[f](i), {
|
|
837
837
|
c() {
|
|
838
|
-
e = w("div"), t = w("img"), r = F(), l.c(),
|
|
838
|
+
e = w("div"), t = w("img"), r = F(), l.c(), h(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), Ge(t.src, a = /*$dataTypePrefix*/
|
|
839
839
|
i[33] + "," + /*$image*/
|
|
840
|
-
i[29]) ||
|
|
840
|
+
i[29]) || h(t, "src", a), t.hidden = n = !/*$captured*/
|
|
841
841
|
i[25] || !/*$showFaceWhileValidating*/
|
|
842
842
|
i[35] && /*$unconformitiesStore*/
|
|
843
|
-
i[32].isLoading,
|
|
843
|
+
i[32].isLoading, h(t, "alt", ""), h(e, "class", c = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
|
844
844
|
i[35] && /*$unconformitiesStore*/
|
|
845
845
|
i[32].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid overflow-hidden"));
|
|
846
846
|
},
|
|
847
|
-
m(
|
|
848
|
-
T(
|
|
847
|
+
m(d, C) {
|
|
848
|
+
T(d, e, C), b(e, t), b(e, r), _[f].m(e, null), o = !0;
|
|
849
849
|
},
|
|
850
|
-
p(
|
|
851
|
-
(!
|
|
850
|
+
p(d, C) {
|
|
851
|
+
(!o || C[0] & /*$image*/
|
|
852
852
|
536870912 | C[1] & /*$dataTypePrefix*/
|
|
853
853
|
4 && !Ge(t.src, a = /*$dataTypePrefix*/
|
|
854
|
-
|
|
855
|
-
|
|
854
|
+
d[33] + "," + /*$image*/
|
|
855
|
+
d[29])) && h(t, "src", a), (!o || C[0] & /*$captured*/
|
|
856
856
|
33554432 | C[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
857
857
|
18 && n !== (n = !/*$captured*/
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
858
|
+
d[25] || !/*$showFaceWhileValidating*/
|
|
859
|
+
d[35] && /*$unconformitiesStore*/
|
|
860
|
+
d[32].isLoading)) && (t.hidden = n);
|
|
861
861
|
let p = f;
|
|
862
|
-
f =
|
|
863
|
-
|
|
864
|
-
}), Xe(), l =
|
|
865
|
-
18 &&
|
|
866
|
-
|
|
867
|
-
|
|
862
|
+
f = g(d), f === p ? _[f].p(d, C) : (Qe(), G(_[p], 1, 1, () => {
|
|
863
|
+
_[p] = null;
|
|
864
|
+
}), Xe(), l = _[f], l ? l.p(d, C) : (l = _[f] = u[f](d), l.c()), H(l, 1), l.m(e, null)), (!o || C[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
865
|
+
18 && c !== (c = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
|
866
|
+
d[35] && /*$unconformitiesStore*/
|
|
867
|
+
d[32].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid overflow-hidden"))) && h(e, "class", c);
|
|
868
868
|
},
|
|
869
|
-
i(
|
|
870
|
-
|
|
869
|
+
i(d) {
|
|
870
|
+
o || (H(l), o = !0);
|
|
871
871
|
},
|
|
872
|
-
o(
|
|
873
|
-
G(l),
|
|
872
|
+
o(d) {
|
|
873
|
+
G(l), o = !1;
|
|
874
874
|
},
|
|
875
|
-
d(
|
|
876
|
-
|
|
875
|
+
d(d) {
|
|
876
|
+
d && D(e), _[f].d();
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
879
|
}
|
|
@@ -881,41 +881,41 @@ function Ua(i) {
|
|
|
881
881
|
let e, t, a = (
|
|
882
882
|
/*$_*/
|
|
883
883
|
i[31]("faceCollector.captured") + ""
|
|
884
|
-
), n, r, f, l,
|
|
884
|
+
), n, r, f, l, c, o = (
|
|
885
885
|
/*$_*/
|
|
886
886
|
i[31]("faceCollector.retakePhoto") + ""
|
|
887
|
-
), u,
|
|
887
|
+
), u, _, g = _t(ha).faceStrategy !== ma.DISABLED, d, C, p, v = (
|
|
888
888
|
/*$unconformitiesStore*/
|
|
889
889
|
i[32].unconformities.length !== 0 && Ki(i)
|
|
890
|
-
), E =
|
|
890
|
+
), E = g && Ha();
|
|
891
891
|
return {
|
|
892
892
|
c() {
|
|
893
|
-
e = w("div"), t = w("h1"), n = S(a), r = F(), v && v.c(), f = F(), l = w("div"),
|
|
893
|
+
e = w("div"), t = w("h1"), n = S(a), r = F(), v && v.c(), f = F(), l = w("div"), c = w("button"), u = S(o), _ = F(), E && E.c(), h(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), h(c, "id", "bry-cc-retake-button"), h(c, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), h(l, "class", "flex flex-row"), Si(l, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
|
894
894
|
i[36]);
|
|
895
895
|
},
|
|
896
896
|
m(R, V) {
|
|
897
|
-
T(R, e, V),
|
|
898
|
-
|
|
897
|
+
T(R, e, V), b(e, t), b(t, n), b(e, r), v && v.m(e, null), b(e, f), b(e, l), b(l, c), b(c, u), b(l, _), E && E.m(l, null), d = !0, C || (p = fe(
|
|
898
|
+
c,
|
|
899
899
|
"click",
|
|
900
900
|
/*click_handler_6*/
|
|
901
901
|
i[63]
|
|
902
902
|
), C = !0);
|
|
903
903
|
},
|
|
904
904
|
p(R, V) {
|
|
905
|
-
(!
|
|
905
|
+
(!d || V[1] & /*$_*/
|
|
906
906
|
1) && a !== (a = /*$_*/
|
|
907
907
|
R[31]("faceCollector.captured") + "") && P(n, a), /*$unconformitiesStore*/
|
|
908
|
-
R[32].unconformities.length !== 0 ? v ? v.p(R, V) : (v = Ki(R), v.c(), v.m(e, f)) : v && (v.d(1), v = null), (!
|
|
909
|
-
1) &&
|
|
910
|
-
R[31]("faceCollector.retakePhoto") + "") && P(u,
|
|
908
|
+
R[32].unconformities.length !== 0 ? v ? v.p(R, V) : (v = Ki(R), v.c(), v.m(e, f)) : v && (v.d(1), v = null), (!d || V[1] & /*$_*/
|
|
909
|
+
1) && o !== (o = /*$_*/
|
|
910
|
+
R[31]("faceCollector.retakePhoto") + "") && P(u, o), (!d || V[1] & /*$exportButtonDisabled*/
|
|
911
911
|
32) && Si(l, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
|
912
912
|
R[36]);
|
|
913
913
|
},
|
|
914
914
|
i(R) {
|
|
915
|
-
|
|
915
|
+
d || (H(E), d = !0);
|
|
916
916
|
},
|
|
917
917
|
o(R) {
|
|
918
|
-
G(E),
|
|
918
|
+
G(E), d = !1;
|
|
919
919
|
},
|
|
920
920
|
d(R) {
|
|
921
921
|
R && D(e), v && v.d(), E && E.d(), C = !1, p();
|
|
@@ -938,17 +938,17 @@ function Va(i) {
|
|
|
938
938
|
/*$_*/
|
|
939
939
|
i[31]("faceCollector.previewCapture")
|
|
940
940
|
)) + ""
|
|
941
|
-
), n, r, f, l,
|
|
941
|
+
), n, r, f, l, c, o, u = (
|
|
942
942
|
/*$unconformitiesStore*/
|
|
943
943
|
i[32].unconformities
|
|
944
|
-
),
|
|
944
|
+
), _ = [];
|
|
945
945
|
for (let p = 0; p < u.length; p += 1)
|
|
946
|
-
|
|
947
|
-
let
|
|
946
|
+
_[p] = Hi(Mi(i, u, p));
|
|
947
|
+
let g = (
|
|
948
948
|
/*evaluatePhoto*/
|
|
949
949
|
i[2] && /*$unconformitiesStore*/
|
|
950
950
|
i[32].unconformities.length == 0 && qi(i)
|
|
951
|
-
),
|
|
951
|
+
), d = (
|
|
952
952
|
/*showJustificationField*/
|
|
953
953
|
i[7] && /*$unconformitiesStore*/
|
|
954
954
|
i[32].unconformities.length > 0 && Ji(i)
|
|
@@ -959,15 +959,15 @@ function Va(i) {
|
|
|
959
959
|
return {
|
|
960
960
|
c() {
|
|
961
961
|
e = w("div"), t = w("h1"), n = S(a), r = F(), f = w("div");
|
|
962
|
-
for (let p = 0; p <
|
|
963
|
-
|
|
964
|
-
l = F(),
|
|
962
|
+
for (let p = 0; p < _.length; p += 1)
|
|
963
|
+
_[p].c();
|
|
964
|
+
l = F(), g && g.c(), c = F(), d && d.c(), o = F(), C && C.c(), h(t, "class", "text-3xl font-bold transition-opacity"), h(f, "class", "flex flex-wrap"), h(e, "class", "flex flex-col justify-between");
|
|
965
965
|
},
|
|
966
966
|
m(p, v) {
|
|
967
|
-
T(p, e, v),
|
|
968
|
-
for (let E = 0; E <
|
|
969
|
-
|
|
970
|
-
|
|
967
|
+
T(p, e, v), b(e, t), b(t, n), b(e, r), b(e, f);
|
|
968
|
+
for (let E = 0; E < _.length; E += 1)
|
|
969
|
+
_[E] && _[E].m(f, null);
|
|
970
|
+
b(f, l), g && g.m(f, null), b(e, c), d && d.m(e, null), b(e, o), C && C.m(e, null);
|
|
971
971
|
},
|
|
972
972
|
p(p, v) {
|
|
973
973
|
if (v[0] & /*evaluatePhoto*/
|
|
@@ -992,23 +992,23 @@ function Va(i) {
|
|
|
992
992
|
let E;
|
|
993
993
|
for (E = 0; E < u.length; E += 1) {
|
|
994
994
|
const R = Mi(p, u, E);
|
|
995
|
-
|
|
995
|
+
_[E] ? _[E].p(R, v) : (_[E] = Hi(R), _[E].c(), _[E].m(f, l));
|
|
996
996
|
}
|
|
997
|
-
for (; E <
|
|
998
|
-
|
|
999
|
-
|
|
997
|
+
for (; E < _.length; E += 1)
|
|
998
|
+
_[E].d(1);
|
|
999
|
+
_.length = u.length;
|
|
1000
1000
|
}
|
|
1001
1001
|
/*evaluatePhoto*/
|
|
1002
1002
|
p[2] && /*$unconformitiesStore*/
|
|
1003
|
-
p[32].unconformities.length == 0 ?
|
|
1003
|
+
p[32].unconformities.length == 0 ? g ? g.p(p, v) : (g = qi(p), g.c(), g.m(f, null)) : g && (g.d(1), g = null), /*showJustificationField*/
|
|
1004
1004
|
p[7] && /*$unconformitiesStore*/
|
|
1005
|
-
p[32].unconformities.length > 0 ?
|
|
1005
|
+
p[32].unconformities.length > 0 ? d ? d.p(p, v) : (d = Ji(p), d.c(), d.m(e, o)) : d && (d.d(1), d = null), /*$captured*/
|
|
1006
1006
|
p[25] ? C ? C.p(p, v) : (C = Qi(p), C.c(), C.m(e, null)) : C && (C.d(1), C = null);
|
|
1007
1007
|
},
|
|
1008
1008
|
i: Y,
|
|
1009
1009
|
o: Y,
|
|
1010
1010
|
d(p) {
|
|
1011
|
-
p && D(e), $i(
|
|
1011
|
+
p && D(e), $i(_, p), g && g.d(), d && d.d(), C && C.d();
|
|
1012
1012
|
}
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
@@ -1016,11 +1016,11 @@ function za(i) {
|
|
|
1016
1016
|
let e, t, a, n, r = (
|
|
1017
1017
|
/*$_*/
|
|
1018
1018
|
i[31]("faceCollector.finish") + ""
|
|
1019
|
-
), f, l,
|
|
1019
|
+
), f, l, c, o = (
|
|
1020
1020
|
/*$_*/
|
|
1021
1021
|
i[31]("faceCollector.retakePhoto") + ""
|
|
1022
|
-
), u,
|
|
1023
|
-
function
|
|
1022
|
+
), u, _, g;
|
|
1023
|
+
function d(v, E) {
|
|
1024
1024
|
return (
|
|
1025
1025
|
/*$requestResult*/
|
|
1026
1026
|
v[30] === j.LIVENESS_DETECTION_FAILURE || /*$requestResult*/
|
|
@@ -1043,13 +1043,13 @@ function za(i) {
|
|
|
1043
1043
|
)
|
|
1044
1044
|
);
|
|
1045
1045
|
}
|
|
1046
|
-
let C =
|
|
1046
|
+
let C = d(i), p = C(i);
|
|
1047
1047
|
return {
|
|
1048
1048
|
c() {
|
|
1049
|
-
e = w("div"), p.c(), t = F(), a = w("div"), n = w("button"), f = S(r), l = F(),
|
|
1049
|
+
e = w("div"), p.c(), t = F(), a = w("div"), n = w("button"), f = S(r), l = F(), c = w("button"), u = S(o), n.disabled = !0, h(n, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), h(c, "id", "bry-cc-retake-button"), h(c, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), h(a, "class", "ce-dui-btn-group flex"), h(e, "class", "flex flex-col justify-between");
|
|
1050
1050
|
},
|
|
1051
1051
|
m(v, E) {
|
|
1052
|
-
T(v, e, E), p.m(e, null),
|
|
1052
|
+
T(v, e, E), p.m(e, null), b(e, t), b(e, a), b(a, n), b(n, f), b(a, l), b(a, c), b(c, u), _ || (g = [
|
|
1053
1053
|
fe(
|
|
1054
1054
|
n,
|
|
1055
1055
|
"click",
|
|
@@ -1057,24 +1057,24 @@ function za(i) {
|
|
|
1057
1057
|
i[57]
|
|
1058
1058
|
),
|
|
1059
1059
|
fe(
|
|
1060
|
-
|
|
1060
|
+
c,
|
|
1061
1061
|
"click",
|
|
1062
1062
|
/*click_handler_3*/
|
|
1063
1063
|
i[58]
|
|
1064
1064
|
)
|
|
1065
|
-
],
|
|
1065
|
+
], _ = !0);
|
|
1066
1066
|
},
|
|
1067
1067
|
p(v, E) {
|
|
1068
|
-
C === (C =
|
|
1068
|
+
C === (C = d(v)) && p ? p.p(v, E) : (p.d(1), p = C(v), p && (p.c(), p.m(e, t))), E[1] & /*$_*/
|
|
1069
1069
|
1 && r !== (r = /*$_*/
|
|
1070
1070
|
v[31]("faceCollector.finish") + "") && P(f, r), E[1] & /*$_*/
|
|
1071
|
-
1 &&
|
|
1072
|
-
v[31]("faceCollector.retakePhoto") + "") && P(u,
|
|
1071
|
+
1 && o !== (o = /*$_*/
|
|
1072
|
+
v[31]("faceCollector.retakePhoto") + "") && P(u, o);
|
|
1073
1073
|
},
|
|
1074
1074
|
i: Y,
|
|
1075
1075
|
o: Y,
|
|
1076
1076
|
d(v) {
|
|
1077
|
-
v && D(e), p.d(),
|
|
1077
|
+
v && D(e), p.d(), _ = !1, Ct(g);
|
|
1078
1078
|
}
|
|
1079
1079
|
};
|
|
1080
1080
|
}
|
|
@@ -1085,13 +1085,13 @@ function ja(i) {
|
|
|
1085
1085
|
), n, r, f;
|
|
1086
1086
|
return {
|
|
1087
1087
|
c() {
|
|
1088
|
-
e = w("div"), t = w("h1"), n = S(a), r = F(), f = w("div"),
|
|
1088
|
+
e = w("div"), t = w("h1"), n = S(a), r = F(), f = w("div"), h(t, "class", "inline-block text-3xl font-bold pb-[1em] transition-opacity"), h(f, "class", "ml-6 inline-block dot-typing"), h(e, "class", "min-w-[200px]");
|
|
1089
1089
|
},
|
|
1090
|
-
m(l,
|
|
1091
|
-
T(l, e,
|
|
1090
|
+
m(l, c) {
|
|
1091
|
+
T(l, e, c), b(e, t), b(t, n), b(e, r), b(e, f);
|
|
1092
1092
|
},
|
|
1093
|
-
p(l,
|
|
1094
|
-
|
|
1093
|
+
p(l, c) {
|
|
1094
|
+
c[1] & /*$_*/
|
|
1095
1095
|
1 && a !== (a = /*$_*/
|
|
1096
1096
|
l[31]("faceCollector.validating") + "") && P(n, a);
|
|
1097
1097
|
},
|
|
@@ -1106,7 +1106,7 @@ function Ka(i) {
|
|
|
1106
1106
|
let e;
|
|
1107
1107
|
return {
|
|
1108
1108
|
c() {
|
|
1109
|
-
e = w("div"),
|
|
1109
|
+
e = w("div"), h(e, "class", "");
|
|
1110
1110
|
},
|
|
1111
1111
|
m(t, a) {
|
|
1112
1112
|
T(t, e, a);
|
|
@@ -1123,35 +1123,35 @@ function Ki(i) {
|
|
|
1123
1123
|
let e, t, a = (
|
|
1124
1124
|
/*$_*/
|
|
1125
1125
|
i[31]("faceCollector.justification") + ""
|
|
1126
|
-
), n, r, f, l,
|
|
1126
|
+
), n, r, f, l, c;
|
|
1127
1127
|
return {
|
|
1128
1128
|
c() {
|
|
1129
|
-
e = w("label"), t = w("span"), n = S(a), r = F(), f = w("textarea"),
|
|
1129
|
+
e = w("label"), t = w("span"), n = S(a), r = F(), f = w("textarea"), h(t, "class", "ce-dui-label-text text-base"), h(e, "class", "ce-dui-label"), h(e, "for", "justification"), h(f, "contenteditable", ""), h(f, "id", "justification"), h(f, "class", "ce-dui-textarea ce-dui-textarea-bordered textarea-ghost h-[6em] w-full text-base");
|
|
1130
1130
|
},
|
|
1131
|
-
m(
|
|
1132
|
-
T(
|
|
1131
|
+
m(o, u) {
|
|
1132
|
+
T(o, e, u), b(e, t), b(t, n), T(o, r, u), T(o, f, u), bt(
|
|
1133
1133
|
f,
|
|
1134
1134
|
/*$justification*/
|
|
1135
1135
|
i[28]
|
|
1136
|
-
), l || (
|
|
1136
|
+
), l || (c = fe(
|
|
1137
1137
|
f,
|
|
1138
1138
|
"input",
|
|
1139
1139
|
/*textarea_input_handler_1*/
|
|
1140
1140
|
i[62]
|
|
1141
1141
|
), l = !0);
|
|
1142
1142
|
},
|
|
1143
|
-
p(
|
|
1143
|
+
p(o, u) {
|
|
1144
1144
|
u[1] & /*$_*/
|
|
1145
1145
|
1 && a !== (a = /*$_*/
|
|
1146
|
-
|
|
1146
|
+
o[31]("faceCollector.justification") + "") && P(n, a), u[0] & /*$justification*/
|
|
1147
1147
|
268435456 && bt(
|
|
1148
1148
|
f,
|
|
1149
1149
|
/*$justification*/
|
|
1150
|
-
|
|
1150
|
+
o[28]
|
|
1151
1151
|
);
|
|
1152
1152
|
},
|
|
1153
|
-
d(
|
|
1154
|
-
|
|
1153
|
+
d(o) {
|
|
1154
|
+
o && D(e), o && D(r), o && D(f), l = !1, c();
|
|
1155
1155
|
}
|
|
1156
1156
|
};
|
|
1157
1157
|
}
|
|
@@ -1184,10 +1184,10 @@ function Hi(i) {
|
|
|
1184
1184
|
), a;
|
|
1185
1185
|
return {
|
|
1186
1186
|
c() {
|
|
1187
|
-
e = w("div"), a = S(t),
|
|
1187
|
+
e = w("div"), a = S(t), h(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
|
1188
1188
|
},
|
|
1189
1189
|
m(n, r) {
|
|
1190
|
-
T(n, e, r),
|
|
1190
|
+
T(n, e, r), b(e, a);
|
|
1191
1191
|
},
|
|
1192
1192
|
p(n, r) {
|
|
1193
1193
|
r[1] & /*$unconformitiesStore*/
|
|
@@ -1206,10 +1206,10 @@ function qi(i) {
|
|
|
1206
1206
|
), a;
|
|
1207
1207
|
return {
|
|
1208
1208
|
c() {
|
|
1209
|
-
e = w("div"), a = S(t),
|
|
1209
|
+
e = w("div"), a = S(t), h(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-info text-xl pb-[.25em] m-[.5em]");
|
|
1210
1210
|
},
|
|
1211
1211
|
m(n, r) {
|
|
1212
|
-
T(n, e, r),
|
|
1212
|
+
T(n, e, r), b(e, a);
|
|
1213
1213
|
},
|
|
1214
1214
|
p(n, r) {
|
|
1215
1215
|
r[1] & /*$_*/
|
|
@@ -1225,21 +1225,21 @@ function Ji(i) {
|
|
|
1225
1225
|
let e, t, a, n = (
|
|
1226
1226
|
/*$_*/
|
|
1227
1227
|
i[31]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
|
1228
|
-
), r, f, l,
|
|
1228
|
+
), r, f, l, c, o, u, _, g, d = (
|
|
1229
1229
|
/*$_*/
|
|
1230
1230
|
i[31]("faceCollector.thisInformationIsRequired") + ""
|
|
1231
1231
|
), C, p, v, E;
|
|
1232
1232
|
return {
|
|
1233
1233
|
c() {
|
|
1234
|
-
e = w("div"), t = w("label"), a = w("span"), r = S(n), f = F(), l = w("textarea"),
|
|
1235
|
-
i[31]("faceCollector.yourJustification")),
|
|
1234
|
+
e = w("div"), t = w("label"), a = w("span"), r = S(n), f = F(), l = w("textarea"), o = F(), u = w("label"), _ = w("span"), g = S("("), C = S(d), p = S(")"), h(a, "class", "ce-dui-label-text text-base"), h(t, "class", "ce-dui-label"), h(t, "for", "justification"), h(l, "contenteditable", ""), h(l, "id", "justification"), h(l, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), h(l, "placeholder", c = /*$_*/
|
|
1235
|
+
i[31]("faceCollector.yourJustification")), h(_, "class", "ce-dui-label-text-alt text-base"), h(u, "class", "ce-dui-label"), h(u, "for", "justification"), h(e, "class", "ce-dui-form-control");
|
|
1236
1236
|
},
|
|
1237
1237
|
m(R, V) {
|
|
1238
|
-
T(R, e, V),
|
|
1238
|
+
T(R, e, V), b(e, t), b(t, a), b(a, r), b(e, f), b(e, l), bt(
|
|
1239
1239
|
l,
|
|
1240
1240
|
/*$justification*/
|
|
1241
1241
|
i[28]
|
|
1242
|
-
),
|
|
1242
|
+
), b(e, o), b(e, u), b(u, _), b(_, g), b(_, C), b(_, p), v || (E = fe(
|
|
1243
1243
|
l,
|
|
1244
1244
|
"input",
|
|
1245
1245
|
/*textarea_input_handler*/
|
|
@@ -1250,15 +1250,15 @@ function Ji(i) {
|
|
|
1250
1250
|
V[1] & /*$_*/
|
|
1251
1251
|
1 && n !== (n = /*$_*/
|
|
1252
1252
|
R[31]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && P(r, n), V[1] & /*$_*/
|
|
1253
|
-
1 &&
|
|
1254
|
-
R[31]("faceCollector.yourJustification")) &&
|
|
1253
|
+
1 && c !== (c = /*$_*/
|
|
1254
|
+
R[31]("faceCollector.yourJustification")) && h(l, "placeholder", c), V[0] & /*$justification*/
|
|
1255
1255
|
268435456 && bt(
|
|
1256
1256
|
l,
|
|
1257
1257
|
/*$justification*/
|
|
1258
1258
|
R[28]
|
|
1259
1259
|
), V[1] & /*$_*/
|
|
1260
|
-
1 &&
|
|
1261
|
-
R[31]("faceCollector.thisInformationIsRequired") + "") && P(C,
|
|
1260
|
+
1 && d !== (d = /*$_*/
|
|
1261
|
+
R[31]("faceCollector.thisInformationIsRequired") + "") && P(C, d);
|
|
1262
1262
|
},
|
|
1263
1263
|
d(R) {
|
|
1264
1264
|
R && D(e), v = !1, E();
|
|
@@ -1269,20 +1269,20 @@ function Qi(i) {
|
|
|
1269
1269
|
let e, t, a = (
|
|
1270
1270
|
/*$_*/
|
|
1271
1271
|
i[31]("faceCollector.finish") + ""
|
|
1272
|
-
), n, r, f, l,
|
|
1272
|
+
), n, r, f, l, c = (
|
|
1273
1273
|
/*$_*/
|
|
1274
1274
|
i[31]("faceCollector.retakePhoto") + ""
|
|
1275
|
-
),
|
|
1275
|
+
), o, u, _;
|
|
1276
1276
|
return {
|
|
1277
1277
|
c() {
|
|
1278
|
-
e = w("div"), t = w("button"), n = S(a), f = F(), l = w("button"),
|
|
1278
|
+
e = w("div"), t = w("button"), n = S(a), f = F(), l = w("button"), o = S(c), t.disabled = r = /*evaluatePhoto*/
|
|
1279
1279
|
i[2] && /*showJustificationField*/
|
|
1280
1280
|
i[7] && /*$justification*/
|
|
1281
1281
|
i[28].length === 0 && /*$unconformitiesStore*/
|
|
1282
|
-
i[32].unconformities.length !== 0,
|
|
1282
|
+
i[32].unconformities.length !== 0, h(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink text-base"), h(l, "id", "bry-cc-retake-button"), h(l, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink text-base"), h(e, "class", "ce-dui-btn-group flex");
|
|
1283
1283
|
},
|
|
1284
|
-
m(
|
|
1285
|
-
T(
|
|
1284
|
+
m(g, d) {
|
|
1285
|
+
T(g, e, d), b(e, t), b(t, n), b(e, f), b(e, l), b(l, o), u || (_ = [
|
|
1286
1286
|
fe(
|
|
1287
1287
|
t,
|
|
1288
1288
|
"click",
|
|
@@ -1297,21 +1297,21 @@ function Qi(i) {
|
|
|
1297
1297
|
)
|
|
1298
1298
|
], u = !0);
|
|
1299
1299
|
},
|
|
1300
|
-
p(
|
|
1301
|
-
|
|
1300
|
+
p(g, d) {
|
|
1301
|
+
d[1] & /*$_*/
|
|
1302
1302
|
1 && a !== (a = /*$_*/
|
|
1303
|
-
|
|
1304
|
-
268435588 |
|
|
1303
|
+
g[31]("faceCollector.finish") + "") && P(n, a), d[0] & /*evaluatePhoto, showJustificationField, $justification*/
|
|
1304
|
+
268435588 | d[1] & /*$unconformitiesStore*/
|
|
1305
1305
|
2 && r !== (r = /*evaluatePhoto*/
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
1 &&
|
|
1311
|
-
|
|
1306
|
+
g[2] && /*showJustificationField*/
|
|
1307
|
+
g[7] && /*$justification*/
|
|
1308
|
+
g[28].length === 0 && /*$unconformitiesStore*/
|
|
1309
|
+
g[32].unconformities.length !== 0) && (t.disabled = r), d[1] & /*$_*/
|
|
1310
|
+
1 && c !== (c = /*$_*/
|
|
1311
|
+
g[31]("faceCollector.retakePhoto") + "") && P(o, c);
|
|
1312
1312
|
},
|
|
1313
|
-
d(
|
|
1314
|
-
|
|
1313
|
+
d(g) {
|
|
1314
|
+
g && D(e), u = !1, Ct(_);
|
|
1315
1315
|
}
|
|
1316
1316
|
};
|
|
1317
1317
|
}
|
|
@@ -1322,10 +1322,10 @@ function qa(i) {
|
|
|
1322
1322
|
), a;
|
|
1323
1323
|
return {
|
|
1324
1324
|
c() {
|
|
1325
|
-
e = w("h1"), a = S(t),
|
|
1325
|
+
e = w("h1"), a = S(t), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
|
|
1326
1326
|
},
|
|
1327
1327
|
m(n, r) {
|
|
1328
|
-
T(n, e, r),
|
|
1328
|
+
T(n, e, r), b(e, a);
|
|
1329
1329
|
},
|
|
1330
1330
|
p(n, r) {
|
|
1331
1331
|
r[1] & /*$_*/
|
|
@@ -1344,10 +1344,10 @@ function Ja(i) {
|
|
|
1344
1344
|
), f, l = (
|
|
1345
1345
|
/*$unconformitiesStore*/
|
|
1346
1346
|
i[32].unconformities
|
|
1347
|
-
),
|
|
1347
|
+
), c = [];
|
|
1348
1348
|
for (let u = 0; u < l.length; u += 1)
|
|
1349
|
-
|
|
1350
|
-
let
|
|
1349
|
+
c[u] = Xi(Ui(i, l, u));
|
|
1350
|
+
let o = (
|
|
1351
1351
|
/*evaluatePhoto*/
|
|
1352
1352
|
i[2] && /*$unconformitiesStore*/
|
|
1353
1353
|
i[32].unconformities.length == 0 && Gi(i)
|
|
@@ -1355,38 +1355,38 @@ function Ja(i) {
|
|
|
1355
1355
|
return {
|
|
1356
1356
|
c() {
|
|
1357
1357
|
e = w("div");
|
|
1358
|
-
for (let u = 0; u <
|
|
1359
|
-
|
|
1360
|
-
t = F(),
|
|
1361
|
-
},
|
|
1362
|
-
m(u,
|
|
1363
|
-
T(u, e,
|
|
1364
|
-
for (let
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
},
|
|
1368
|
-
p(u,
|
|
1369
|
-
if (
|
|
1358
|
+
for (let u = 0; u < c.length; u += 1)
|
|
1359
|
+
c[u].c();
|
|
1360
|
+
t = F(), o && o.c(), a = F(), n = w("h1"), f = S(r), h(e, "class", "flex flex-wrap"), h(n, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1361
|
+
},
|
|
1362
|
+
m(u, _) {
|
|
1363
|
+
T(u, e, _);
|
|
1364
|
+
for (let g = 0; g < c.length; g += 1)
|
|
1365
|
+
c[g] && c[g].m(e, null);
|
|
1366
|
+
b(e, t), o && o.m(e, null), T(u, a, _), T(u, n, _), b(n, f);
|
|
1367
|
+
},
|
|
1368
|
+
p(u, _) {
|
|
1369
|
+
if (_[1] & /*$unconformitiesStore*/
|
|
1370
1370
|
2) {
|
|
1371
1371
|
l = /*$unconformitiesStore*/
|
|
1372
1372
|
u[32].unconformities;
|
|
1373
|
-
let
|
|
1374
|
-
for (
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1373
|
+
let g;
|
|
1374
|
+
for (g = 0; g < l.length; g += 1) {
|
|
1375
|
+
const d = Ui(u, l, g);
|
|
1376
|
+
c[g] ? c[g].p(d, _) : (c[g] = Xi(d), c[g].c(), c[g].m(e, t));
|
|
1377
1377
|
}
|
|
1378
|
-
for (;
|
|
1379
|
-
|
|
1380
|
-
|
|
1378
|
+
for (; g < c.length; g += 1)
|
|
1379
|
+
c[g].d(1);
|
|
1380
|
+
c.length = l.length;
|
|
1381
1381
|
}
|
|
1382
1382
|
/*evaluatePhoto*/
|
|
1383
1383
|
u[2] && /*$unconformitiesStore*/
|
|
1384
|
-
u[32].unconformities.length == 0 ?
|
|
1384
|
+
u[32].unconformities.length == 0 ? o ? o.p(u, _) : (o = Gi(u), o.c(), o.m(e, null)) : o && (o.d(1), o = null), _[1] & /*$_*/
|
|
1385
1385
|
1 && r !== (r = /*$_*/
|
|
1386
1386
|
u[31]("liveness.error.faceQualityInsufficient") + "") && P(f, r);
|
|
1387
1387
|
},
|
|
1388
1388
|
d(u) {
|
|
1389
|
-
u && D(e), $i(
|
|
1389
|
+
u && D(e), $i(c, u), o && o.d(), u && D(a), u && D(n);
|
|
1390
1390
|
}
|
|
1391
1391
|
};
|
|
1392
1392
|
}
|
|
@@ -1397,10 +1397,10 @@ function Qa(i) {
|
|
|
1397
1397
|
), a;
|
|
1398
1398
|
return {
|
|
1399
1399
|
c() {
|
|
1400
|
-
e = w("h1"), a = S(t),
|
|
1400
|
+
e = w("h1"), a = S(t), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1401
1401
|
},
|
|
1402
1402
|
m(n, r) {
|
|
1403
|
-
T(n, e, r),
|
|
1403
|
+
T(n, e, r), b(e, a);
|
|
1404
1404
|
},
|
|
1405
1405
|
p(n, r) {
|
|
1406
1406
|
r[1] & /*$_*/
|
|
@@ -1419,10 +1419,10 @@ function Xa(i) {
|
|
|
1419
1419
|
), a;
|
|
1420
1420
|
return {
|
|
1421
1421
|
c() {
|
|
1422
|
-
e = w("h1"), a = S(t),
|
|
1422
|
+
e = w("h1"), a = S(t), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1423
1423
|
},
|
|
1424
1424
|
m(n, r) {
|
|
1425
|
-
T(n, e, r),
|
|
1425
|
+
T(n, e, r), b(e, a);
|
|
1426
1426
|
},
|
|
1427
1427
|
p(n, r) {
|
|
1428
1428
|
r[1] & /*$_*/
|
|
@@ -1441,10 +1441,10 @@ function Ga(i) {
|
|
|
1441
1441
|
), a;
|
|
1442
1442
|
return {
|
|
1443
1443
|
c() {
|
|
1444
|
-
e = w("h1"), a = S(t),
|
|
1444
|
+
e = w("h1"), a = S(t), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1445
1445
|
},
|
|
1446
1446
|
m(n, r) {
|
|
1447
|
-
T(n, e, r),
|
|
1447
|
+
T(n, e, r), b(e, a);
|
|
1448
1448
|
},
|
|
1449
1449
|
p(n, r) {
|
|
1450
1450
|
r[1] & /*$_*/
|
|
@@ -1466,15 +1466,15 @@ function Ya(i) {
|
|
|
1466
1466
|
), f;
|
|
1467
1467
|
return {
|
|
1468
1468
|
c() {
|
|
1469
|
-
e = w("h1"), a = S(t), n = S(": "), f = S(r),
|
|
1469
|
+
e = w("h1"), a = S(t), n = S(": "), f = S(r), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1470
1470
|
},
|
|
1471
|
-
m(l,
|
|
1472
|
-
T(l, e,
|
|
1471
|
+
m(l, c) {
|
|
1472
|
+
T(l, e, c), b(e, a), b(e, n), b(e, f);
|
|
1473
1473
|
},
|
|
1474
|
-
p(l,
|
|
1475
|
-
|
|
1474
|
+
p(l, c) {
|
|
1475
|
+
c[1] & /*$_*/
|
|
1476
1476
|
1 && t !== (t = /*$_*/
|
|
1477
|
-
l[31]("liveness.error.error") + "") && P(a, t),
|
|
1477
|
+
l[31]("liveness.error.error") + "") && P(a, t), c[1] & /*$_*/
|
|
1478
1478
|
1 && r !== (r = /*$_*/
|
|
1479
1479
|
l[31]("faceCollector.unaliveCapture") + "") && P(f, r);
|
|
1480
1480
|
},
|
|
@@ -1496,16 +1496,16 @@ function Za(i) {
|
|
|
1496
1496
|
), f;
|
|
1497
1497
|
return {
|
|
1498
1498
|
c() {
|
|
1499
|
-
e = w("h1"), a = S(t), n = S(": "), f = S(r),
|
|
1499
|
+
e = w("h1"), a = S(t), n = S(": "), f = S(r), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1500
1500
|
},
|
|
1501
|
-
m(l,
|
|
1502
|
-
T(l, e,
|
|
1501
|
+
m(l, c) {
|
|
1502
|
+
T(l, e, c), b(e, a), b(e, n), b(e, f);
|
|
1503
1503
|
},
|
|
1504
|
-
p(l,
|
|
1505
|
-
|
|
1504
|
+
p(l, c) {
|
|
1505
|
+
c[1] & /*$_*/
|
|
1506
1506
|
1 && t !== (t = /*$_*/
|
|
1507
|
-
l[31]("liveness.error.error") + "") && P(a, t),
|
|
1508
|
-
2097152 |
|
|
1507
|
+
l[31]("liveness.error.error") + "") && P(a, t), c[0] & /*livenessError*/
|
|
1508
|
+
2097152 | c[1] & /*$_*/
|
|
1509
1509
|
1 && r !== (r = /*$_*/
|
|
1510
1510
|
l[31](
|
|
1511
1511
|
/*livenessError*/
|
|
@@ -1524,10 +1524,10 @@ function Xi(i) {
|
|
|
1524
1524
|
), a;
|
|
1525
1525
|
return {
|
|
1526
1526
|
c() {
|
|
1527
|
-
e = w("div"), a = S(t),
|
|
1527
|
+
e = w("div"), a = S(t), h(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
|
1528
1528
|
},
|
|
1529
1529
|
m(n, r) {
|
|
1530
|
-
T(n, e, r),
|
|
1530
|
+
T(n, e, r), b(e, a);
|
|
1531
1531
|
},
|
|
1532
1532
|
p(n, r) {
|
|
1533
1533
|
r[1] & /*$unconformitiesStore*/
|
|
@@ -1546,10 +1546,10 @@ function Gi(i) {
|
|
|
1546
1546
|
), a;
|
|
1547
1547
|
return {
|
|
1548
1548
|
c() {
|
|
1549
|
-
e = w("div"), a = S(t),
|
|
1549
|
+
e = w("div"), a = S(t), h(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-info text-xl pb-[.25em] m-[.5em]");
|
|
1550
1550
|
},
|
|
1551
1551
|
m(n, r) {
|
|
1552
|
-
T(n, e, r),
|
|
1552
|
+
T(n, e, r), b(e, a);
|
|
1553
1553
|
},
|
|
1554
1554
|
p(n, r) {
|
|
1555
1555
|
r[1] & /*$_*/
|
|
@@ -1562,7 +1562,7 @@ function Gi(i) {
|
|
|
1562
1562
|
};
|
|
1563
1563
|
}
|
|
1564
1564
|
function xa(i) {
|
|
1565
|
-
let e, t, a, n, r, f, l,
|
|
1565
|
+
let e, t, a, n, r, f, l, c, o, u, _ = (
|
|
1566
1566
|
/*$videoStore*/
|
|
1567
1567
|
i[34] && Vi(i)
|
|
1568
1568
|
);
|
|
@@ -1578,11 +1578,11 @@ function xa(i) {
|
|
|
1578
1578
|
)
|
|
1579
1579
|
}
|
|
1580
1580
|
});
|
|
1581
|
-
let
|
|
1581
|
+
let g = (
|
|
1582
1582
|
/*$captured*/
|
|
1583
1583
|
i[25] && ji(i)
|
|
1584
1584
|
);
|
|
1585
|
-
const
|
|
1585
|
+
const d = [Ma, Wa], C = [];
|
|
1586
1586
|
function p(v, E) {
|
|
1587
1587
|
return (!/*idrndClosed*/
|
|
1588
1588
|
v[19] || /*$captured*/
|
|
@@ -1592,18 +1592,18 @@ function xa(i) {
|
|
|
1592
1592
|
v[22] !== B.OK ? 1 : -1
|
|
1593
1593
|
);
|
|
1594
1594
|
}
|
|
1595
|
-
return ~(l = p(i)) && (
|
|
1595
|
+
return ~(l = p(i)) && (c = C[l] = d[l](i)), {
|
|
1596
1596
|
c() {
|
|
1597
|
-
e = w("div"), t = w("div"),
|
|
1597
|
+
e = w("div"), t = w("div"), _ && _.c(), a = F(), _e(n.$$.fragment), r = F(), g && g.c(), f = F(), c && c.c(), o = Yi(), this.c = Y, h(t, "class", "relative mx-auto"), h(e, "class", "flex flex-col justify-between");
|
|
1598
1598
|
},
|
|
1599
1599
|
m(v, E) {
|
|
1600
|
-
T(v, e, E),
|
|
1600
|
+
T(v, e, E), b(e, t), _ && _.m(t, null), b(t, a), be(n, t, null), b(t, r), g && g.m(t, null), i[56](e), T(v, f, E), ~l && C[l].m(v, E), T(v, o, E), u = !0;
|
|
1601
1601
|
},
|
|
1602
1602
|
p(v, E) {
|
|
1603
1603
|
/*$videoStore*/
|
|
1604
|
-
v[34] ?
|
|
1605
|
-
8 && H(
|
|
1606
|
-
|
|
1604
|
+
v[34] ? _ ? (_.p(v, E), E[1] & /*$videoStore*/
|
|
1605
|
+
8 && H(_, 1)) : (_ = Vi(v), _.c(), H(_, 1), _.m(t, a)) : _ && (Qe(), G(_, 1, 1, () => {
|
|
1606
|
+
_ = null;
|
|
1607
1607
|
}), Xe());
|
|
1608
1608
|
const R = {};
|
|
1609
1609
|
E[0] & /*waitingIdrndCaptureEvent*/
|
|
@@ -1611,36 +1611,36 @@ function xa(i) {
|
|
|
1611
1611
|
v[20]), E[0] & /*idrndLoading*/
|
|
1612
1612
|
262144 && (R.idrndLoading = /*idrndLoading*/
|
|
1613
1613
|
v[18]), n.$set(R), /*$captured*/
|
|
1614
|
-
v[25] ?
|
|
1614
|
+
v[25] ? g ? g.p(v, E) : (g = ji(v), g.c(), g.m(t, null)) : g && (g.d(1), g = null);
|
|
1615
1615
|
let V = l;
|
|
1616
|
-
l = p(v), l === V ? ~l && C[l].p(v, E) : (
|
|
1616
|
+
l = p(v), l === V ? ~l && C[l].p(v, E) : (c && (Qe(), G(C[V], 1, 1, () => {
|
|
1617
1617
|
C[V] = null;
|
|
1618
|
-
}), Xe()), ~l ? (
|
|
1618
|
+
}), Xe()), ~l ? (c = C[l], c ? c.p(v, E) : (c = C[l] = d[l](v), c.c()), H(c, 1), c.m(o.parentNode, o)) : c = null);
|
|
1619
1619
|
},
|
|
1620
1620
|
i(v) {
|
|
1621
|
-
u || (H(
|
|
1621
|
+
u || (H(_), H(n.$$.fragment, v), H(c), u = !0);
|
|
1622
1622
|
},
|
|
1623
1623
|
o(v) {
|
|
1624
|
-
G(
|
|
1624
|
+
G(_), G(n.$$.fragment, v), G(c), u = !1;
|
|
1625
1625
|
},
|
|
1626
1626
|
d(v) {
|
|
1627
|
-
v && D(e),
|
|
1627
|
+
v && D(e), _ && _.d(), ge(n), g && g.d(), i[56](null), v && D(f), ~l && C[l].d(v), v && D(o);
|
|
1628
1628
|
}
|
|
1629
1629
|
};
|
|
1630
1630
|
}
|
|
1631
1631
|
let $a = 0, en = 3e3;
|
|
1632
1632
|
function tn() {
|
|
1633
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-
|
|
1633
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-RC05.js") : import("./index-idlf-detector_a819b3c8_3.3.0-RC05.js");
|
|
1634
1634
|
}
|
|
1635
1635
|
function sn(i, e, t) {
|
|
1636
|
-
let a, n, r, f, l,
|
|
1637
|
-
O(i, jt, (s) => t(76, a = s)), O(i,
|
|
1638
|
-
let L, ne, ve,
|
|
1639
|
-
const Ye =
|
|
1640
|
-
O(i, Ye, (s) => t(
|
|
1641
|
-
const De =
|
|
1636
|
+
let a, n, r, f, l, c, o, u, _, g, d, C, p, v, E, R, V, x, K, q, A, W, Z, J, I, Re, ie, de, Ce, Se, Et, re, ti, yt, kt, Tt, ii, si;
|
|
1637
|
+
O(i, jt, (s) => t(76, a = s)), O(i, Kt, (s) => t(77, n = s)), O(i, it, (s) => t(79, f = s)), O(i, st, (s) => t(80, l = s)), O(i, at, (s) => t(81, c = s)), O(i, Q, (s) => t(22, o = s)), O(i, qe, (s) => t(23, u = s)), O(i, Ws, (s) => t(82, _ = s)), O(i, nt, (s) => t(83, g = s)), O(i, we, (s) => t(24, d = s)), O(i, Ms, (s) => t(84, C = s)), O(i, Le, (s) => t(25, p = s)), O(i, Ht, (s) => t(85, v = s)), O(i, xi, (s) => t(26, E = s)), O(i, ki, (s) => t(86, R = s)), O(i, Us, (s) => t(87, V = s)), O(i, je, (s) => t(88, x = s)), O(i, ke, (s) => t(89, K = s)), O(i, Vs, (s) => t(90, q = s)), O(i, zs, (s) => t(91, A = s)), O(i, qt, (s) => t(27, W = s)), O(i, Jt, (s) => t(28, Z = s)), O(i, me, (s) => t(29, J = s)), O(i, ae, (s) => t(30, I = s)), O(i, Zi, (s) => t(31, Re = s)), O(i, Te, (s) => t(32, ie = s)), O(i, Ti, (s) => t(92, Ce = s)), O(i, ot, (s) => t(93, Se = s)), O(i, Qt, (s) => t(94, Et = s)), O(i, Je, (s) => t(34, re = s)), O(i, js, (s) => t(95, ti = s)), O(i, lt, (s) => t(96, yt = s)), O(i, Oi, (s) => t(97, kt = s)), O(i, Ri, (s) => t(98, Tt = s)), O(i, Ks, (s) => t(35, ii = s)), O(i, Hs, (s) => t(36, si = s));
|
|
1638
|
+
let L, ne, ve, ai, ni = !1, Ne = !1, Ot = !1, Rt = !1, Dt = (/* @__PURE__ */ new Date()).getTime(), { enableMinutiae: It } = e, { videoDimensions: At } = e, { noTabs: Lt } = e, { weightsPath: Ft } = e, { evaluatePhoto: pe } = e, { showCaptureButton: St } = e, { showUnconformities: oi } = e, { showConfigButton: li } = e, { showAutoCaptureButton: Nt } = e, { showCameraButton: ri } = e, { showJustificationField: ci } = e, { minEyeToEyeDist: Pe } = e, { showWatermark: ui } = e, { videoOverlay: fi } = e, { videoOverlayTransparency: di } = e, { faceDetectionSensitivity: Pt } = e, { hidden: Bt } = e, { livenessBlobSize: hi } = e;
|
|
1639
|
+
const Ye = xt(!1);
|
|
1640
|
+
O(i, Ye, (s) => t(78, r = s));
|
|
1641
|
+
const De = xt("data:image/png;base64");
|
|
1642
1642
|
O(i, De, (s) => t(33, de = s));
|
|
1643
|
-
let { widgetInstance: X } = e, ss = new ya(),
|
|
1643
|
+
let { widgetInstance: X } = e, ss = new ya(), Be = !1, Wt = !1, Ze = !0, ce = !0, We = !1, mi = 0, se = "", Mt = 0, xe = !0, _i = 0;
|
|
1644
1644
|
const $e = qs.mixin({
|
|
1645
1645
|
toast: !0,
|
|
1646
1646
|
position: "bottom-left",
|
|
@@ -1648,83 +1648,78 @@ function sn(i, e, t) {
|
|
|
1648
1648
|
timerProgressBar: !0
|
|
1649
1649
|
});
|
|
1650
1650
|
Js(async () => {
|
|
1651
|
-
if (Di("Mounting Face Collector!"),
|
|
1651
|
+
if (Di("Mounting Face Collector!"), m(ot, Se = !0, Se), m(qe, u = !1, u), bi(), Ut(), z() ? (tn(), as()) : await Ee(), Ce)
|
|
1652
1652
|
try {
|
|
1653
|
-
await Qs(Ft),
|
|
1653
|
+
await Qs(Ft), ni = !0, ai = await Xs();
|
|
1654
1654
|
} catch {
|
|
1655
|
-
|
|
1655
|
+
m(Ti, Ce = !1, Ce), t(0, St = !0);
|
|
1656
1656
|
}
|
|
1657
1657
|
he() || os();
|
|
1658
1658
|
});
|
|
1659
1659
|
async function Ut() {
|
|
1660
1660
|
const [s, y] = (At ?? "")?.replaceAll(" ", "")?.split("x")?.map((k) => k ? parseInt(k) : void 0);
|
|
1661
|
-
!s || !y || (he() ? (await Gs(),
|
|
1661
|
+
!s || !y || (he() ? (await Gs(), m(
|
|
1662
1662
|
Je,
|
|
1663
1663
|
re = {
|
|
1664
1664
|
videoWidth: window.innerWidth,
|
|
1665
1665
|
videoHeight: window.innerHeight
|
|
1666
1666
|
},
|
|
1667
1667
|
re
|
|
1668
|
-
)) :
|
|
1668
|
+
)) : m(Je, re = { videoWidth: s, videoHeight: y }, re));
|
|
1669
1669
|
}
|
|
1670
|
-
function
|
|
1671
|
-
|
|
1672
|
-
const s = _t(
|
|
1673
|
-
s.closedMouth = !1, s.isPersonCloseEnough = !1, s.isPersonTooclose = !0, s.isPersonInFrame = !1,
|
|
1670
|
+
function bi() {
|
|
1671
|
+
m(it, f = !1, f), m(Le, p = !1, p), m(nt, g = Xt.FRONT_CAMERA, g), Nt && m(ki, R = !1, R), m(qt, W = !1, W), m(ae, I = j.OK, I), m(je, x = "", x), m(Te, ie.unconformities = [], ie);
|
|
1672
|
+
const s = _t(Gt);
|
|
1673
|
+
s.closedMouth = !1, s.isPersonCloseEnough = !1, s.isPersonTooclose = !0, s.isPersonInFrame = !1, Gt.set(s), m(ke, K = "", K), m(at, c = !1, c), m(st, l = !0, l);
|
|
1674
1674
|
}
|
|
1675
1675
|
function as() {
|
|
1676
1676
|
X.addEventListener("open", (s) => {
|
|
1677
1677
|
const y = s.detail[0].video;
|
|
1678
|
-
|
|
1678
|
+
m(
|
|
1679
1679
|
Ri,
|
|
1680
1680
|
Tt = {
|
|
1681
1681
|
width: y.videoWidth,
|
|
1682
1682
|
height: y.videoHeight
|
|
1683
1683
|
},
|
|
1684
1684
|
Tt
|
|
1685
|
-
), t(13, L.srcObject = y.srcObject, L), t(18, Ze = !1),
|
|
1685
|
+
), t(13, L.srcObject = y.srcObject, L), m(jt, a = L.srcObject, a), t(18, Ze = !1), l || Ys(X), window.dispatchEvent(new CustomEvent("brycc-camera-ready", { detail: { stream: a } }));
|
|
1686
1686
|
function k() {
|
|
1687
1687
|
ce || He(L, k, !0);
|
|
1688
1688
|
}
|
|
1689
1689
|
k();
|
|
1690
1690
|
}), X.addEventListener("error", (s) => {
|
|
1691
|
-
oe(s), s.detail[0].message.toLowerCase().includes("device in use") ?
|
|
1691
|
+
oe(s), s.detail[0].message.toLowerCase().includes("device in use") ? m(Q, o = B.CAMERA_IN_USE_ERROR, o) : s.detail[0].message.toLowerCase().includes("permission") ? m(Q, o = B.CAMERA_DENIED_ERROR, o) : s.detail[0].message.toLowerCase().includes("not found") && !he() ? m(Q, o = B.DEVICE_NOT_FOUND_ERROR, o) : m(Q, o = B.CAMERA_DENIED_ERROR, o), t(18, Ze = !1);
|
|
1692
1692
|
}), X.addEventListener("faceDetection", (s) => {
|
|
1693
1693
|
s.detail[0].errors.length > 0 && Ii(s.detail[0].errors);
|
|
1694
1694
|
}), X.addEventListener("detection", (s) => {
|
|
1695
1695
|
s.detail[0].errors.length > 0 && Ii(s.detail[0].errors);
|
|
1696
1696
|
}), X.addEventListener("close", async (s) => {
|
|
1697
|
-
|
|
1697
|
+
p || (Be = !1), t(19, ce = !0), t(20, We = !1), o === B.OK && (m(Q, o = B.CAMERA_CLOSED_ERROR, o), setTimeout(
|
|
1698
1698
|
() => {
|
|
1699
|
-
|
|
1700
|
-
},
|
|
1701
|
-
500
|
|
1702
|
-
)), setTimeout(
|
|
1703
|
-
() => {
|
|
1704
|
-
ce && Bt && (Di("Reopening camera after close (lost focus on widget)"), Ae());
|
|
1699
|
+
ce && Bt && (Di("Reopening camera after close (lost focus on widget)"), Me());
|
|
1705
1700
|
},
|
|
1706
1701
|
1e3
|
|
1707
|
-
);
|
|
1702
|
+
));
|
|
1708
1703
|
}), X.addEventListener("initialize", async (s) => {
|
|
1709
|
-
Wt = !0,
|
|
1704
|
+
Wt = !0, m(Oi, kt = !0, kt);
|
|
1710
1705
|
try {
|
|
1711
1706
|
X.setLicense(Zs, "faceDetector");
|
|
1712
1707
|
} catch (y) {
|
|
1713
1708
|
oe("Error setting license:", y);
|
|
1714
1709
|
}
|
|
1715
|
-
Et === rt.Face && !
|
|
1710
|
+
Et === rt.Face && !Be && !p && Wt && await Vt();
|
|
1716
1711
|
}), X.addEventListener("capture", async (s) => {
|
|
1717
1712
|
t(21, se = "");
|
|
1718
1713
|
const { encryptedFile: y, photo: k } = s.detail[0];
|
|
1719
|
-
|
|
1714
|
+
m(lt, yt = y, yt);
|
|
1720
1715
|
const M = (await ct(k)).split(",");
|
|
1721
|
-
if (t(20,
|
|
1722
|
-
let ee, Ue,
|
|
1716
|
+
if (t(20, We = !1), m(ae, I = j.OK, I), m(Te, ie.isLoading = !0, ie), m(Le, p = !0, p), Be = !1, m(De, de = M[0], de), m(me, J = M[1], J), m(je, x = M[1], x), !ti) {
|
|
1717
|
+
let ee, Ue, Ci, Ei;
|
|
1723
1718
|
try {
|
|
1724
|
-
if (
|
|
1719
|
+
if (l && !Ai(Pe))
|
|
1725
1720
|
throw new Error("FACE_TOO_SMALL");
|
|
1726
1721
|
const te = xs();
|
|
1727
|
-
if (
|
|
1722
|
+
if (l && te)
|
|
1728
1723
|
throw new Error(te);
|
|
1729
1724
|
({ bodyParts: ee, icaoWarnings: Ue } = await ut(x, pe, (await ct(y)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
|
1730
1725
|
"face-unconformities-validated",
|
|
@@ -1738,14 +1733,14 @@ function sn(i, e, t) {
|
|
|
1738
1733
|
));
|
|
1739
1734
|
} catch (te) {
|
|
1740
1735
|
oe(te);
|
|
1741
|
-
let ye = Oe.UNKNOWN, Ve = [],
|
|
1742
|
-
te instanceof
|
|
1736
|
+
let ye = Oe.UNKNOWN, Ve = [], yi = [];
|
|
1737
|
+
te instanceof Yt && te.response?.status === 400 ? te.response.data && Array.isArray(te.response.data.bodyParts) ? (Ve = te.response.data.bodyParts, yi = te.response.data.icaoWarnings, Ci = te.response.data.invalidLivenessCounter, Ei = te.response.data.invalidLivenessLimit, ye = Ve.find((Ps) => Ps.livenessResult.error)?.livenessResult.error_code, m(ae, I = j.LIVENESS_DETECTION_FAILURE, I), t(21, se = Oe[ye]), oe("Liveness error:", ye)) : m(ae, I = j.TEMPLATE_EXTRACTION_ERROR, I) : te instanceof Error && $s.includes(te.message) ? (m(ae, I = j.UNKNOWN_LIVENESS_ERROR, I), ye = te.message, t(21, se = Oe[ye]), Ve = pi(), Ve[0].livenessResult = {
|
|
1743
1738
|
error: se,
|
|
1744
1739
|
error_code: ye
|
|
1745
1740
|
}) : pe && $e.fire({
|
|
1746
1741
|
icon: "error",
|
|
1747
1742
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1748
|
-
}),
|
|
1743
|
+
}), m(Te, ie.isLoading = !1, ie), window.dispatchEvent(new CustomEvent(
|
|
1749
1744
|
"face-unconformities-validated",
|
|
1750
1745
|
{
|
|
1751
1746
|
detail: {
|
|
@@ -1753,32 +1748,32 @@ function sn(i, e, t) {
|
|
|
1753
1748
|
errorCode: ye,
|
|
1754
1749
|
translatedError: Re(se),
|
|
1755
1750
|
status: I,
|
|
1756
|
-
icaoWarnings:
|
|
1757
|
-
invalidLivenessCounter:
|
|
1758
|
-
invalidLivenessLimit:
|
|
1751
|
+
icaoWarnings: yi,
|
|
1752
|
+
invalidLivenessCounter: Ci,
|
|
1753
|
+
invalidLivenessLimit: Ei
|
|
1759
1754
|
}
|
|
1760
1755
|
}
|
|
1761
1756
|
));
|
|
1762
1757
|
return;
|
|
1763
1758
|
}
|
|
1764
1759
|
if (I !== j.OK) {
|
|
1765
|
-
Ue && Ke(Ue),
|
|
1760
|
+
Ue && Ke(Ue), m(Te, ie.isLoading = !1, ie);
|
|
1766
1761
|
return;
|
|
1767
1762
|
}
|
|
1768
|
-
ee[0].livenessResult &&
|
|
1763
|
+
ee[0].livenessResult && gi(ee[0].livenessResult), ee.length !== 0 && ee[0].data && m(me, J = ee[0].data, J), Ke(Ue);
|
|
1769
1764
|
return;
|
|
1770
1765
|
}
|
|
1771
1766
|
let U, $;
|
|
1772
1767
|
try {
|
|
1773
|
-
$ = await ea(y),
|
|
1768
|
+
$ = await ea(y), gi($.data);
|
|
1774
1769
|
} catch (ee) {
|
|
1775
|
-
|
|
1770
|
+
m(ae, I = j.UNKNOWN_LIVENESS_ERROR, I), oe(ee), ee instanceof Yt && ee.response?.status === 400 ? (U = ee.response.data.error_code, t(21, se = Oe[U]), oe("Liveness error:", U), m(ae, I = j.LIVENESS_DETECTION_FAILURE, I)) : $e.fire({
|
|
1776
1771
|
icon: "error",
|
|
1777
1772
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1778
1773
|
});
|
|
1779
1774
|
}
|
|
1780
1775
|
if (I !== j.OK) {
|
|
1781
|
-
|
|
1776
|
+
m(Te, ie.isLoading = !1, ie), window.dispatchEvent(new CustomEvent(
|
|
1782
1777
|
"face-unconformities-validated",
|
|
1783
1778
|
{
|
|
1784
1779
|
detail: {
|
|
@@ -1798,84 +1793,84 @@ function sn(i, e, t) {
|
|
|
1798
1793
|
));
|
|
1799
1794
|
return;
|
|
1800
1795
|
}
|
|
1801
|
-
let { bodyParts: ue, icaoWarnings:
|
|
1796
|
+
let { bodyParts: ue, icaoWarnings: Ae } = await ut(x, pe);
|
|
1802
1797
|
window.dispatchEvent(new CustomEvent(
|
|
1803
1798
|
"face-unconformities-validated",
|
|
1804
1799
|
{
|
|
1805
1800
|
detail: {
|
|
1806
1801
|
bodyParts: ue,
|
|
1807
|
-
icaoWarnings:
|
|
1802
|
+
icaoWarnings: Ae,
|
|
1808
1803
|
status: I,
|
|
1809
1804
|
errorCode: U,
|
|
1810
1805
|
...se && { translatedError: Re(se) }
|
|
1811
1806
|
}
|
|
1812
1807
|
}
|
|
1813
|
-
)), ue[0].data &&
|
|
1808
|
+
)), ue[0].data && m(me, J = ue[0].data, J), Ke(Ae);
|
|
1814
1809
|
});
|
|
1815
1810
|
}
|
|
1816
1811
|
async function Ee(s) {
|
|
1817
1812
|
if (!xe) {
|
|
1818
|
-
|
|
1813
|
+
m(Q, o = B.CAMERA_ORIENTATION_PORTRAIT, o);
|
|
1819
1814
|
return;
|
|
1820
1815
|
}
|
|
1821
1816
|
await Ut(), z() ? Vt() : await ns(re.videoWidth, re.videoHeight, s);
|
|
1822
1817
|
}
|
|
1823
1818
|
async function Vt() {
|
|
1824
1819
|
if (z()) {
|
|
1825
|
-
if (await Ut(), !
|
|
1820
|
+
if (await Ut(), !C[0]?.deviceId) {
|
|
1826
1821
|
try {
|
|
1827
1822
|
await Li(640, 480);
|
|
1828
1823
|
} catch (s) {
|
|
1829
|
-
const y = s, k =
|
|
1830
|
-
oe(y.message, k),
|
|
1824
|
+
const y = s, k = Fe(s) && s.constraint ? s.constraint : "";
|
|
1825
|
+
oe(y.message, k), Fe(y) && "message" in y && y.message.includes("Requested device not found") && m(Q, o = B.DEVICE_NOT_FOUND_ERROR, o);
|
|
1831
1826
|
}
|
|
1832
|
-
await
|
|
1827
|
+
await Zt(), m(we, d = C[0].deviceId, d);
|
|
1833
1828
|
}
|
|
1834
|
-
|
|
1829
|
+
m(Q, o = B.OK, o), X && "openCamera" in X && X.openCamera(), Be = !0, t(19, ce = !1), t(18, Ze = !0);
|
|
1835
1830
|
}
|
|
1836
1831
|
}
|
|
1837
1832
|
async function et() {
|
|
1838
|
-
if (Ce && !
|
|
1833
|
+
if (Ce && !ni)
|
|
1839
1834
|
return He(L, et);
|
|
1840
1835
|
if (L) {
|
|
1841
1836
|
if (Et !== rt.Face && !Lt)
|
|
1842
1837
|
return He(L, et);
|
|
1843
|
-
|
|
1838
|
+
m(qe, u = !0, u), m(ot, Se = !1, Se), Ce && (r || m(Ye, r = !0, r)), He(L, et);
|
|
1844
1839
|
}
|
|
1845
1840
|
}
|
|
1846
1841
|
async function zt() {
|
|
1847
|
-
if (
|
|
1848
|
-
t(20,
|
|
1842
|
+
if (m(ae, I = j.OK, I), z()) {
|
|
1843
|
+
t(20, We = !0), X.takePhoto();
|
|
1849
1844
|
return;
|
|
1850
1845
|
}
|
|
1851
1846
|
let s = null;
|
|
1852
1847
|
try {
|
|
1853
1848
|
if (Ce) {
|
|
1854
1849
|
const U = await ua(L, Pt);
|
|
1855
|
-
if (s = U.canvas,
|
|
1850
|
+
if (s = U.canvas, m(Le, p = !0, p), !U.result) {
|
|
1856
1851
|
const ee = s.toDataURL("image/jpeg").split(",");
|
|
1857
|
-
throw
|
|
1852
|
+
throw m(De, de = ee[0], de), m(me, J = ee[1], J), new Error("FACE_NOT_FOUND");
|
|
1858
1853
|
}
|
|
1859
1854
|
const $ = s.toDataURL("image/jpeg").split(",");
|
|
1860
|
-
|
|
1861
|
-
let ue,
|
|
1862
|
-
if (!Ai(
|
|
1855
|
+
m(De, de = $[0], de), m(me, J = $[1], J), m(je, x = $[1], x);
|
|
1856
|
+
let ue, Ae;
|
|
1857
|
+
if (!Ai(Pe))
|
|
1863
1858
|
throw new Error("FACE_TOO_SMALL");
|
|
1864
|
-
({ bodyParts: ue, icaoWarnings:
|
|
1859
|
+
({ bodyParts: ue, icaoWarnings: Ae } = await ut(J, pe)), window.dispatchEvent(new CustomEvent(
|
|
1865
1860
|
"face-unconformities-validated",
|
|
1866
1861
|
{
|
|
1867
1862
|
detail: {
|
|
1868
1863
|
bodyParts: ue,
|
|
1869
|
-
icaoWarnings:
|
|
1864
|
+
icaoWarnings: Ae,
|
|
1870
1865
|
status: I
|
|
1871
1866
|
}
|
|
1872
1867
|
}
|
|
1873
|
-
)), ue.length !== 0 && ue[0].data &&
|
|
1868
|
+
)), ue.length !== 0 && ue[0].data && m(me, J = ue[0].data, J), Ke(Ae);
|
|
1874
1869
|
return;
|
|
1875
1870
|
}
|
|
1876
|
-
|
|
1871
|
+
m(Le, p = !0, p);
|
|
1877
1872
|
const y = await ls();
|
|
1878
|
-
|
|
1873
|
+
m(De, de = y[0], de), m(me, J = y[1], J), m(je, x = y[1], x);
|
|
1879
1874
|
let { bodyParts: k, icaoWarnings: M } = await ut(J, pe);
|
|
1880
1875
|
window.dispatchEvent(new CustomEvent(
|
|
1881
1876
|
"face-unconformities-validated",
|
|
@@ -1886,23 +1881,23 @@ function sn(i, e, t) {
|
|
|
1886
1881
|
status: I
|
|
1887
1882
|
}
|
|
1888
1883
|
}
|
|
1889
|
-
)), k.length !== 0 && k[0].data &&
|
|
1884
|
+
)), k.length !== 0 && k[0].data && m(me, J = k[0].data, J), Ke(M);
|
|
1890
1885
|
} catch (y) {
|
|
1891
1886
|
oe(y);
|
|
1892
1887
|
let k = Oe.UNKNOWN, M = [], U = [];
|
|
1893
|
-
if (y instanceof
|
|
1888
|
+
if (y instanceof Yt && y.response?.status === 400)
|
|
1894
1889
|
if (y.response.data && Array.isArray(y.response.data.bodyParts)) {
|
|
1895
1890
|
M = y.response.data.bodyParts, U = y.response.data.icaoWarnings;
|
|
1896
1891
|
const $ = M.find((ue) => ue.livenessResult.error);
|
|
1897
|
-
k = $?.livenessResult.error_code,
|
|
1892
|
+
k = $?.livenessResult.error_code, m(ae, I = j.LIVENESS_DETECTION_FAILURE, I), $?.livenessResult.error_code || m(ae, I = j.UNKNOWN_LIVENESS_ERROR, I), t(21, se = Oe[k]), oe("Liveness error:", k);
|
|
1898
1893
|
} else
|
|
1899
|
-
|
|
1894
|
+
m(ae, I = j.TEMPLATE_EXTRACTION_ERROR, I);
|
|
1900
1895
|
else
|
|
1901
|
-
y instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(y.message) ? (
|
|
1896
|
+
y instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(y.message) ? (m(ae, I = j.LIVENESS_DETECTION_FAILURE, I), k = y.message, t(21, se = Oe[k]), M = pi()) : (m(ae, I = j.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, I), pe && $e.fire({
|
|
1902
1897
|
icon: "error",
|
|
1903
1898
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1904
1899
|
}));
|
|
1905
|
-
|
|
1900
|
+
m(Te, ie.isLoading = !1, ie), window.dispatchEvent(new CustomEvent(
|
|
1906
1901
|
"face-unconformities-validated",
|
|
1907
1902
|
{
|
|
1908
1903
|
detail: {
|
|
@@ -1922,36 +1917,36 @@ function sn(i, e, t) {
|
|
|
1922
1917
|
data: J,
|
|
1923
1918
|
justification: Z
|
|
1924
1919
|
};
|
|
1925
|
-
|
|
1920
|
+
m(qt, W = !0, W), _t(lt) && ct(_t(lt)).then((y) => {
|
|
1926
1921
|
s.livenessBlob = y.split(",")[1];
|
|
1927
1922
|
}), window.dispatchEvent(new CustomEvent("export-face", { detail: s }));
|
|
1928
1923
|
}
|
|
1929
1924
|
function Ie() {
|
|
1930
|
-
window.dispatchEvent(new CustomEvent("face-scrapped")),
|
|
1925
|
+
window.dispatchEvent(new CustomEvent("face-scrapped")), bi(), ce && Vt();
|
|
1931
1926
|
}
|
|
1932
|
-
function
|
|
1927
|
+
function gi(s) {
|
|
1933
1928
|
let y = "", k = "success";
|
|
1934
1929
|
s.isAlive ? y = `Vivacidade de face (${s.face_liveness.probability.toFixed(2)}) e de captura (${s.capture_liveness.probability}, ${s.capture_liveness.score.toFixed(2)}) verificados!` : s?.face_liveness?.probability && (k = "error", y = `Vivacidade de face (${s.face_liveness.probability.toFixed(2)}) e de captura (${s.capture_liveness.probability}, ${s.capture_liveness.score.toFixed(2)}) insuficientes!`), A && $e.fire({ icon: k, title: y });
|
|
1935
1930
|
}
|
|
1936
1931
|
async function ns(s, y, k) {
|
|
1937
1932
|
try {
|
|
1938
|
-
const { stream: M, deviceId: U } = await Li(q.width, q.height,
|
|
1939
|
-
|
|
1933
|
+
const { stream: M, deviceId: U } = await Li(q.width, q.height, g, k);
|
|
1934
|
+
m(jt, a = M, a), m(we, d = U || C[0].deviceId, d);
|
|
1940
1935
|
} catch (M) {
|
|
1941
|
-
const U = M, $ =
|
|
1942
|
-
oe(U.message, $),
|
|
1936
|
+
const U = M, $ = Fe(M) && M.constraint ? M.constraint : "";
|
|
1937
|
+
oe(U.message, $), Fe(U) && "message" in U && U.message.toLowerCase().includes("permission") ? (oe("User didn't give permission to use camera!"), m(Q, o = B.CAMERA_DENIED_ERROR, o)) : Fe(U) && "message" in U && U.message.toLowerCase().includes("not found") && !he() ? m(Q, o = B.DEVICE_NOT_FOUND_ERROR, o) : $.includes("width") || $.includes("height") ? (oe(`Camera does not meet the minimum supported requirements! (${$})`), m(Q, o = B.CAMERA_UNSUPPORTED, o)) : (m(Q, o = B.CAMERA_DENIED_ERROR, o), oe("Unable to open camera!"));
|
|
1943
1938
|
}
|
|
1944
1939
|
}
|
|
1945
|
-
async function
|
|
1946
|
-
|
|
1940
|
+
async function Me() {
|
|
1941
|
+
m(we, d = "", d), await Ee();
|
|
1947
1942
|
}
|
|
1948
1943
|
function os() {
|
|
1949
1944
|
navigator.mediaDevices.ondevicechange = async (s) => {
|
|
1950
|
-
s.type == "devicechange" && (await
|
|
1945
|
+
s.type == "devicechange" && (await Zt(), o !== B.OK ? await Me() : (!z() && !a.active || z() && !ce) && (ft(X), m(Q, o = B.DEVICE_NOT_FOUND_ERROR, o), t(19, ce = !0)));
|
|
1951
1946
|
};
|
|
1952
1947
|
}
|
|
1953
|
-
async function
|
|
1954
|
-
|
|
1948
|
+
async function vi() {
|
|
1949
|
+
m(it, f = !1, f);
|
|
1955
1950
|
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
1956
1951
|
if (s - Dt > 5e3) {
|
|
1957
1952
|
Dt = s;
|
|
@@ -1960,11 +1955,11 @@ function sn(i, e, t) {
|
|
|
1960
1955
|
return;
|
|
1961
1956
|
const k = await fa(L);
|
|
1962
1957
|
if (k < 50) {
|
|
1963
|
-
|
|
1958
|
+
m(ke, K = "faceCollector.illuminationTooLow", K);
|
|
1964
1959
|
return;
|
|
1965
1960
|
}
|
|
1966
1961
|
if (k > 180) {
|
|
1967
|
-
|
|
1962
|
+
m(ke, K = "faceCollector.illuminationTooHigh", K);
|
|
1968
1963
|
return;
|
|
1969
1964
|
}
|
|
1970
1965
|
} catch (k) {
|
|
@@ -1972,13 +1967,13 @@ function sn(i, e, t) {
|
|
|
1972
1967
|
}
|
|
1973
1968
|
try {
|
|
1974
1969
|
if (await da(L) < 4.5) {
|
|
1975
|
-
|
|
1970
|
+
m(ke, K = "faceCollector.lowSharpness", K);
|
|
1976
1971
|
return;
|
|
1977
1972
|
}
|
|
1978
1973
|
} catch (k) {
|
|
1979
1974
|
Fi("An error occurred while getting the video sharpness level: ", k);
|
|
1980
1975
|
}
|
|
1981
|
-
|
|
1976
|
+
m(ke, K = "faceCollector.faceWasNotFound", K);
|
|
1982
1977
|
} else
|
|
1983
1978
|
Ot || (Ot = !0, setTimeout(
|
|
1984
1979
|
() => {
|
|
@@ -1988,19 +1983,19 @@ function sn(i, e, t) {
|
|
|
1988
1983
|
"faceCollector.lowSharpness",
|
|
1989
1984
|
"faceCollector.illuminationTooHigh"
|
|
1990
1985
|
];
|
|
1991
|
-
Ot = !1, t(17, Rt = !1), K && !k.includes(K) &&
|
|
1986
|
+
Ot = !1, t(17, Rt = !1), K && !k.includes(K) && m(ke, K = "", K);
|
|
1992
1987
|
},
|
|
1993
1988
|
1500
|
|
1994
1989
|
));
|
|
1995
1990
|
}
|
|
1996
|
-
function
|
|
1991
|
+
function pi() {
|
|
1997
1992
|
return [
|
|
1998
1993
|
{
|
|
1999
1994
|
bodyPart: "FACE",
|
|
2000
1995
|
data: x,
|
|
2001
1996
|
format: "jpg",
|
|
2002
1997
|
capturedEyeToEyeDist: V,
|
|
2003
|
-
minEyeToEyeDist:
|
|
1998
|
+
minEyeToEyeDist: Pe
|
|
2004
1999
|
}
|
|
2005
2000
|
];
|
|
2006
2001
|
}
|
|
@@ -2008,14 +2003,14 @@ function sn(i, e, t) {
|
|
|
2008
2003
|
const s = document.createElement("canvas"), y = s.getContext("2d");
|
|
2009
2004
|
return s.width = L.width, s.height = L.height, y?.drawImage(L, 0, 0, s.width, s.height), s.toDataURL("image/jpeg").split(",");
|
|
2010
2005
|
}
|
|
2011
|
-
const rs =
|
|
2006
|
+
const rs = Gt.subscribe((s) => {
|
|
2012
2007
|
let y = "";
|
|
2013
|
-
if (s.isPersonCloseEnough ? s.isPersonTooclose ? y = "faceCollector.moveAwayCamera" : s.isPersonInFrame ? s.closedMouth || (y = "faceCollector.dontOpenMouth") : y = "faceCollector.stayInFrame" : y = "faceCollector.comeCloserCamera",
|
|
2014
|
-
t(16,
|
|
2008
|
+
if (s.isPersonCloseEnough ? s.isPersonTooclose ? y = "faceCollector.moveAwayCamera" : s.isPersonInFrame ? s.closedMouth || (y = "faceCollector.dontOpenMouth") : y = "faceCollector.stayInFrame" : y = "faceCollector.comeCloserCamera", f && ta(y), !p && R && f && !E && !Ne && s.isPersonInFrame && s.closedMouth && !(!s.isPersonCloseEnough || s.isPersonTooclose)) {
|
|
2009
|
+
t(16, Ne = !0), _i = (/* @__PURE__ */ new Date()).getTime() + en;
|
|
2015
2010
|
const k = setInterval(
|
|
2016
2011
|
async () => {
|
|
2017
|
-
if (!R ||
|
|
2018
|
-
t(16,
|
|
2012
|
+
if (!R || p || E || We || z() && ce || !s.isPersonCloseEnough || s.isPersonTooclose || !s.closedMouth || !s.isPersonInFrame) {
|
|
2013
|
+
t(16, Ne = !1), setTimeout(
|
|
2019
2014
|
() => {
|
|
2020
2015
|
},
|
|
2021
2016
|
1500
|
|
@@ -2023,83 +2018,83 @@ function sn(i, e, t) {
|
|
|
2023
2018
|
return;
|
|
2024
2019
|
}
|
|
2025
2020
|
const M = (/* @__PURE__ */ new Date()).getTime();
|
|
2026
|
-
Math.floor((
|
|
2021
|
+
Math.floor((_i - M) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(k), t(16, Ne = !1), zt());
|
|
2027
2022
|
},
|
|
2028
2023
|
100
|
|
2029
2024
|
);
|
|
2030
2025
|
}
|
|
2031
|
-
}), cs =
|
|
2026
|
+
}), cs = Le.subscribe((s) => {
|
|
2032
2027
|
ve && (s ? (ve.classList.remove("flex"), ve.classList.add("hidden")) : (ve.classList.add("flex"), ve.classList.remove("hidden")));
|
|
2033
|
-
}), us =
|
|
2034
|
-
L && s && (dt("setting null in video srcObject"), t(13, L.srcObject = null, L), t(13, L.src = "", L),
|
|
2028
|
+
}), us = Ht.subscribe((s) => {
|
|
2029
|
+
L && s && (dt("setting null in video srcObject"), t(13, L.srcObject = null, L), t(13, L.src = "", L), m(we, d = null, d));
|
|
2035
2030
|
});
|
|
2036
|
-
|
|
2037
|
-
s === rt.Face && (await
|
|
2031
|
+
Qt.subscribe(async (s) => {
|
|
2032
|
+
s === rt.Face && (await Zt(), z() && m(we, d = C[0]?.deviceId, d));
|
|
2038
2033
|
});
|
|
2039
2034
|
const fs = we.subscribe(async (s) => {
|
|
2040
|
-
if (!(!z() && !
|
|
2035
|
+
if (!(!z() && !a || !s || z() && ce))
|
|
2041
2036
|
try {
|
|
2042
2037
|
if (z()) {
|
|
2043
2038
|
await ft(X), await Ee();
|
|
2044
2039
|
return;
|
|
2045
2040
|
}
|
|
2046
|
-
t(13, L.srcObject =
|
|
2041
|
+
t(13, L.srcObject = a, L), m(Ht, v = !1, v), xe ? m(Q, o = B.OK, o) : m(Q, o = B.CAMERA_ORIENTATION_PORTRAIT, o), a.getTracks().forEach((y) => {
|
|
2047
2042
|
y.readyState === "live" && dt(`Camera ${y.label} (${y.id}) opened successfully!`);
|
|
2048
|
-
}),
|
|
2043
|
+
}), m(Q, o = B.OK, o), ia(L);
|
|
2049
2044
|
} catch (y) {
|
|
2050
2045
|
const k = y;
|
|
2051
|
-
t(19, ce = !0),
|
|
2046
|
+
t(19, ce = !0), Fe(k) && "message" in k && k.message.includes("Requested device not found") && m(Q, o = B.DEVICE_NOT_FOUND_ERROR, o);
|
|
2052
2047
|
}
|
|
2053
|
-
}), ds =
|
|
2054
|
-
s === rt.Face && z() && !
|
|
2048
|
+
}), ds = Qt.subscribe(async (s) => {
|
|
2049
|
+
s === rt.Face && z() && !Be && !p && Wt && await Ee();
|
|
2055
2050
|
}), hs = Ye.subscribe(async (s) => {
|
|
2056
|
-
s &&
|
|
2051
|
+
s && wi();
|
|
2057
2052
|
}), ms = sa.subscribe(async (s) => {
|
|
2058
|
-
if (
|
|
2053
|
+
if (C[0]?.deviceId) {
|
|
2059
2054
|
if (ft(), !he() || z()) {
|
|
2060
|
-
const k = (
|
|
2061
|
-
z() ?
|
|
2055
|
+
const k = (C.findIndex((U) => U.deviceId === d) + 1) % C.length, M = C[k].deviceId;
|
|
2056
|
+
z() ? m(we, d = M, d) : await Ee(M);
|
|
2062
2057
|
return;
|
|
2063
2058
|
}
|
|
2064
|
-
s ? (
|
|
2059
|
+
s ? (m(nt, g = Xt.REAR_CAMERA, g), await Ee()) : (m(nt, g = Xt.FRONT_CAMERA, g), await Ee());
|
|
2065
2060
|
}
|
|
2066
2061
|
}), _s = aa.subscribe(async (s) => {
|
|
2067
|
-
!s.isSupported || !he() ||
|
|
2068
|
-
}), bs =
|
|
2062
|
+
!s.isSupported || !he() || _ != "FACE" || (xe = s.orientation.includes("portrait"), xe ? L && !u ? await Me() : u && m(Q, o = B.OK, o) : m(Q, o = B.CAMERA_ORIENTATION_PORTRAIT, o));
|
|
2063
|
+
}), bs = $t.subscribe((s) => {
|
|
2069
2064
|
s && window.dispatchEvent(new CustomEvent("console-open-status", { detail: { isOpen: s } }));
|
|
2070
2065
|
}), gs = at.subscribe(async (s) => {
|
|
2071
|
-
dt("CaptureFace event received:", s), s && (
|
|
2066
|
+
dt("CaptureFace event received:", s), s && (m(st, l = !1, l), await zt(), m(at, c = !1, c), m(st, l = !0, l));
|
|
2072
2067
|
});
|
|
2073
|
-
async function
|
|
2068
|
+
async function wi() {
|
|
2074
2069
|
let s;
|
|
2075
2070
|
try {
|
|
2076
2071
|
if (Mt >= $a) {
|
|
2077
2072
|
Mt = 0;
|
|
2078
2073
|
let y;
|
|
2079
|
-
if (y = wa(L,
|
|
2074
|
+
if (y = wa(L, ai), s = await y.withFaceLandmarks(), ne.getContext("2d")?.clearRect(0, 0, ne.width, ne.height), s != null) {
|
|
2080
2075
|
const k = Ca(ne, L, !0);
|
|
2081
2076
|
na(ne, L, k);
|
|
2082
2077
|
const M = Ea(s, k);
|
|
2083
|
-
oa(M) ? (la(M, ne, It),
|
|
2078
|
+
oa(M) ? (la(M, ne, It), m(it, f = !0, f), t(17, Rt = !0), Dt = (/* @__PURE__ */ new Date()).getTime()) : vi();
|
|
2084
2079
|
} else
|
|
2085
|
-
|
|
2080
|
+
vi();
|
|
2086
2081
|
} else
|
|
2087
2082
|
Mt++;
|
|
2088
2083
|
} catch {
|
|
2089
2084
|
} finally {
|
|
2090
|
-
|
|
2085
|
+
r && He(L, wi);
|
|
2091
2086
|
}
|
|
2092
2087
|
}
|
|
2093
|
-
|
|
2094
|
-
s && (Ie(),
|
|
2088
|
+
Kt.subscribe(async (s) => {
|
|
2089
|
+
s && (Ie(), m(Kt, n = !1, n));
|
|
2095
2090
|
});
|
|
2096
2091
|
const vs = qe.subscribe((s) => {
|
|
2097
|
-
s && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
|
2092
|
+
s && window.dispatchEvent(new CustomEvent("brycc-camera-ready", { detail: { stream: a } }));
|
|
2098
2093
|
}), ps = ot.subscribe((s) => {
|
|
2099
2094
|
s && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
2100
2095
|
});
|
|
2101
2096
|
ra(() => {
|
|
2102
|
-
dt("Destroying face collector"), ft(X), cs(), rs(), us(), fs(), ds(), clearInterval(
|
|
2097
|
+
dt("Destroying face collector"), ft(X), cs(), rs(), us(), fs(), ds(), clearInterval(mi), hs(), ms(), _s(), bs(), gs(), vs(), ps(), mi = 0, ss.stopDetection();
|
|
2103
2098
|
});
|
|
2104
2099
|
function ws(s) {
|
|
2105
2100
|
mt[s ? "unshift" : "push"](() => {
|
|
@@ -2127,44 +2122,44 @@ function sn(i, e, t) {
|
|
|
2127
2122
|
}
|
|
2128
2123
|
const Rs = () => tt(), Ds = () => Ie();
|
|
2129
2124
|
function Is() {
|
|
2130
|
-
Z = this.value,
|
|
2125
|
+
Z = this.value, Jt.set(Z);
|
|
2131
2126
|
}
|
|
2132
2127
|
const As = () => tt(), Ls = () => Ie();
|
|
2133
2128
|
function Fs() {
|
|
2134
|
-
Z = this.value,
|
|
2129
|
+
Z = this.value, Jt.set(Z);
|
|
2135
2130
|
}
|
|
2136
2131
|
const Ss = () => Ie(), Ns = async () => {
|
|
2137
|
-
await
|
|
2132
|
+
await Me();
|
|
2138
2133
|
};
|
|
2139
2134
|
return i.$$set = (s) => {
|
|
2140
|
-
"enableMinutiae" in s && t(43, It = s.enableMinutiae), "videoDimensions" in s && t(44, At = s.videoDimensions), "noTabs" in s && t(45, Lt = s.noTabs), "weightsPath" in s && t(46, Ft = s.weightsPath), "evaluatePhoto" in s && t(2, pe = s.evaluatePhoto), "showCaptureButton" in s && t(0, St = s.showCaptureButton), "showUnconformities" in s && t(3,
|
|
2135
|
+
"enableMinutiae" in s && t(43, It = s.enableMinutiae), "videoDimensions" in s && t(44, At = s.videoDimensions), "noTabs" in s && t(45, Lt = s.noTabs), "weightsPath" in s && t(46, Ft = s.weightsPath), "evaluatePhoto" in s && t(2, pe = s.evaluatePhoto), "showCaptureButton" in s && t(0, St = s.showCaptureButton), "showUnconformities" in s && t(3, oi = s.showUnconformities), "showConfigButton" in s && t(4, li = s.showConfigButton), "showAutoCaptureButton" in s && t(5, Nt = s.showAutoCaptureButton), "showCameraButton" in s && t(6, ri = s.showCameraButton), "showJustificationField" in s && t(7, ci = s.showJustificationField), "minEyeToEyeDist" in s && t(47, Pe = s.minEyeToEyeDist), "showWatermark" in s && t(8, ui = s.showWatermark), "videoOverlay" in s && t(9, fi = s.videoOverlay), "videoOverlayTransparency" in s && t(10, di = s.videoOverlayTransparency), "faceDetectionSensitivity" in s && t(48, Pt = s.faceDetectionSensitivity), "hidden" in s && t(49, Bt = s.hidden), "livenessBlobSize" in s && t(11, hi = s.livenessBlobSize), "widgetInstance" in s && t(1, X = s.widgetInstance);
|
|
2141
2136
|
}, [
|
|
2142
2137
|
St,
|
|
2143
2138
|
X,
|
|
2144
2139
|
pe,
|
|
2145
|
-
ni,
|
|
2146
2140
|
oi,
|
|
2147
|
-
Nt,
|
|
2148
2141
|
li,
|
|
2142
|
+
Nt,
|
|
2149
2143
|
ri,
|
|
2150
2144
|
ci,
|
|
2151
2145
|
ui,
|
|
2152
2146
|
fi,
|
|
2153
2147
|
di,
|
|
2148
|
+
hi,
|
|
2154
2149
|
et,
|
|
2155
2150
|
L,
|
|
2156
2151
|
ne,
|
|
2157
2152
|
ve,
|
|
2158
|
-
|
|
2153
|
+
Ne,
|
|
2159
2154
|
Rt,
|
|
2160
2155
|
Ze,
|
|
2161
2156
|
ce,
|
|
2162
|
-
|
|
2157
|
+
We,
|
|
2163
2158
|
se,
|
|
2164
2159
|
o,
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2160
|
+
u,
|
|
2161
|
+
d,
|
|
2162
|
+
p,
|
|
2168
2163
|
E,
|
|
2169
2164
|
W,
|
|
2170
2165
|
Z,
|
|
@@ -2174,19 +2169,19 @@ function sn(i, e, t) {
|
|
|
2174
2169
|
ie,
|
|
2175
2170
|
de,
|
|
2176
2171
|
re,
|
|
2177
|
-
ti,
|
|
2178
2172
|
ii,
|
|
2173
|
+
si,
|
|
2179
2174
|
Ye,
|
|
2180
2175
|
De,
|
|
2181
2176
|
zt,
|
|
2182
2177
|
tt,
|
|
2183
2178
|
Ie,
|
|
2184
|
-
|
|
2179
|
+
Me,
|
|
2185
2180
|
It,
|
|
2186
2181
|
At,
|
|
2187
2182
|
Lt,
|
|
2188
2183
|
Ft,
|
|
2189
|
-
|
|
2184
|
+
Pe,
|
|
2190
2185
|
Pt,
|
|
2191
2186
|
Bt,
|
|
2192
2187
|
ws,
|