bry-biometric-collector 3.3.0-RC01 → 3.3.0-RC03
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/{DocumentCollector_b7f1f959_3.3.0-RC01.js → DocumentCollector_7dff158f_3.3.0-RC03.js} +4 -4
- package/dist/{FaceCollector_bfb78de9_3.3.0-RC01.js → FaceCollector_e0849e85_3.3.0-RC03.js} +185 -179
- package/dist/{ValidationAlert_f85f89cf_3.3.0-RC01.js → ValidationAlert_90602fb5_3.3.0-RC03.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_da3cccf5_3.3.0-RC01.js → ___vite-browser-external_commonjs-proxy_33bd553f_3.3.0-RC03.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{faceApi_3de78157_3.3.0-RC01.js → faceApi_53f06f20_3.3.0-RC03.js} +4 -4
- package/dist/{fingersApi_8b0e10c7_3.3.0-RC01.js → fingersApi_0fe148d9_3.3.0-RC03.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_2d85794d_3.3.0-RC01.js → index_9787e7e2_3.3.0-RC03.js} +3 -3
- package/dist/{index_d3977b75_3.3.0-RC01.js → index_c5f180d9_3.3.0-RC03.js} +3 -3
- package/dist/{main_415c84df_3.3.0-RC01.js → main_aed227b6_3.3.0-RC03.js} +22 -22
- package/package.json +1 -1
- /package/dist/{en-us_e83efd5d_3.3.0-RC01.js → en-us_e83efd5d_3.3.0-RC03.js} +0 -0
- /package/dist/{es-cl_5939150a_3.3.0-RC01.js → es-cl_5939150a_3.3.0-RC03.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC01.js → face_api_0e3ce8c8_3.3.0-RC03.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC01.js → index-idlf-detector_39cfdffa_3.3.0-RC03.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC01.js → index-idlf-detector_a819b3c8_3.3.0-RC03.js} +0 -0
- /package/dist/{pt-br_fae15356_3.3.0-RC01.js → pt-br_fae15356_3.3.0-RC03.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { w as Xt, S as
|
|
2
|
-
import { W as fa, C as da, V as ha, a as ma } from "./
|
|
3
|
-
import { detectSingleFace as _a, matchDimensions as ba, resizeResults as ga } from "./face_api_0e3ce8c8_3.3.0-
|
|
1
|
+
import { w as Xt, S as bt, t as gt, x as vt, y as pt, z as T, B as W, C as w, D as Y, E as d, G as H, H as Je, I as G, J as Qe, K as I, L as O, M as Ve, N as qe, O as de, P as h, Q as me, R as _e, T as be, U as j, V as P, W as F, X as Ji, $ as Qi, Y as Xi, Z as Q, _ as Ls, a0 as He, a1 as S, a2 as Xe, a3 as Yt, a4 as g, a5 as N, a6 as Ut, a7 as it, q as st, r as at, a8 as Fs, a9 as ot, aa as pe, ab as Ss, ac as Ae, ad as Ci, ae as Vt, af as Ei, ag as Ns, ah as je, ai as ye, aj as Ps, ak as Ws, al as jt, am as Kt, an as he, ao as ae, ap as ke, aq as yi, ar as nt, as as zt, at as Bs, au as lt, av as ki, aw as Ti, ax as Ms, ay as Us, az as Vs, aA as js, aB as Ks, aC as zs, aD as Ht, aE as K, j as mt, aF as qt, aG as Hs, aH as Oi, aI as qs, aJ as rt, aK as ct, aL as Di, aM as Js, aN as ut, A as Jt, aO as Te, aP as Qs, aQ as Ke, aR as Xs, aS as Ii, d as Le, aT as Qt, aU as ft, aV as Gs, aW as Ys, aX as Zs, aY as xs, aZ as $s, a_ as ea, a$ as ta, b0 as ze, b1 as ia, b2 as sa, b3 as dt, b4 as ue, b5 as wt, b6 as aa, b7 as oa, b8 as na, b9 as la, ba as ht, bb as ce, bc as ra, bd as ca, be as Ri, bf as Gi, bg as _t, bh as ua } from "./main_aed227b6_3.3.0-RC03.js";
|
|
2
|
+
import { W as fa, C as da, V as ha, a as ma } from "./ValidationAlert_90602fb5_3.3.0-RC03.js";
|
|
3
|
+
import { detectSingleFace as _a, matchDimensions as ba, resizeResults as ga } from "./face_api_0e3ce8c8_3.3.0-RC03.js";
|
|
4
4
|
const Gt = Xt(!1);
|
|
5
5
|
class va {
|
|
6
6
|
isDevToolsOpen = !1;
|
|
@@ -64,9 +64,9 @@ function pa(i) {
|
|
|
64
64
|
p(r, [f]) {
|
|
65
65
|
/*showWatermark*/
|
|
66
66
|
r[1] ? o ? f & /*showWatermark*/
|
|
67
|
-
2 && H(o, 1) : (o = Ai(), o.c(), H(o, 1), o.m(e, null)) : o && (
|
|
67
|
+
2 && H(o, 1) : (o = Ai(), o.c(), H(o, 1), o.m(e, null)) : o && (Je(), G(o, 1, 1, () => {
|
|
68
68
|
o = null;
|
|
69
|
-
}),
|
|
69
|
+
}), Qe()), (!a || f & /*loading*/
|
|
70
70
|
1 && t !== (t = "loader " + /*loading*/
|
|
71
71
|
(r[0] ? "loading" : "") + " z-10")) && d(e, "class", t), (!a || f & /*styleVars*/
|
|
72
72
|
4) && d(
|
|
@@ -90,16 +90,16 @@ function pa(i) {
|
|
|
90
90
|
const wa = "hsl(var(--p))", Ca = "hsl(var(--su))";
|
|
91
91
|
function Ea(i, e, t) {
|
|
92
92
|
let a, o, r;
|
|
93
|
-
O(i,
|
|
93
|
+
O(i, Ve, (b) => t(8, o = b)), O(i, qe, (b) => t(9, r = b));
|
|
94
94
|
let { loading: f } = e, { showWatermark: l } = e, n, c, u = 0.8, m = 8, _ = 0.15;
|
|
95
95
|
return de() && (u = 0.65, m = 10, _ = 0.25), i.$$set = (b) => {
|
|
96
96
|
"loading" in b && t(0, f = b.loading), "showWatermark" in b && t(1, l = b.showWatermark);
|
|
97
97
|
}, i.$$.update = () => {
|
|
98
98
|
if (i.$$.dirty & /*$videoStore, percentage, ovalHeight, ovalWidth, $ovalDimensions, captureBarPercentage*/
|
|
99
99
|
952 && r) {
|
|
100
|
-
t(4, c = r.videoHeight * u), t(3, n = c / 1.45), h(
|
|
100
|
+
t(4, c = r.videoHeight * u), t(3, n = c / 1.45), h(Ve, o.width = n, o), h(Ve, o.height = c, o), h(Ve, o.x = (r.videoWidth - o.width) / 2, o);
|
|
101
101
|
let b = r.videoHeight - r.videoHeight * _;
|
|
102
|
-
h(
|
|
102
|
+
h(Ve, o.y = b - o.height, o);
|
|
103
103
|
}
|
|
104
104
|
i.$$.dirty & /*ovalWidth, ovalHeight, borderWidth*/
|
|
105
105
|
88 && t(2, a = `
|
|
@@ -122,18 +122,18 @@ function Ea(i, e, t) {
|
|
|
122
122
|
r
|
|
123
123
|
];
|
|
124
124
|
}
|
|
125
|
-
class Yi extends
|
|
125
|
+
class Yi extends bt {
|
|
126
126
|
constructor(e) {
|
|
127
|
-
super(),
|
|
127
|
+
super(), gt(
|
|
128
128
|
this,
|
|
129
129
|
{
|
|
130
130
|
target: this.shadowRoot,
|
|
131
|
-
props:
|
|
131
|
+
props: pt(this.attributes),
|
|
132
132
|
customElement: !0
|
|
133
133
|
},
|
|
134
134
|
Ea,
|
|
135
135
|
pa,
|
|
136
|
-
|
|
136
|
+
vt,
|
|
137
137
|
{ loading: 0, showWatermark: 1 },
|
|
138
138
|
null
|
|
139
139
|
), e && (e.target && T(e.target, this, e.anchor), e.props && (this.$set(e.props), W()));
|
|
@@ -187,7 +187,7 @@ function ya(i) {
|
|
|
187
187
|
}
|
|
188
188
|
function ka(i, e, t) {
|
|
189
189
|
let a, o;
|
|
190
|
-
O(i,
|
|
190
|
+
O(i, qe, (u) => t(6, o = u));
|
|
191
191
|
let r, f, l = 0.8, { overlayColor: n } = e, { overlayTransparency: c } = e;
|
|
192
192
|
return de() && (l = 0.65), i.$$set = (u) => {
|
|
193
193
|
"overlayColor" in u && t(1, n = u.overlayColor), "overlayTransparency" in u && t(2, c = u.overlayTransparency);
|
|
@@ -210,18 +210,18 @@ function ka(i, e, t) {
|
|
|
210
210
|
o
|
|
211
211
|
];
|
|
212
212
|
}
|
|
213
|
-
class Zi extends
|
|
213
|
+
class Zi extends bt {
|
|
214
214
|
constructor(e) {
|
|
215
|
-
super(),
|
|
215
|
+
super(), gt(
|
|
216
216
|
this,
|
|
217
217
|
{
|
|
218
218
|
target: this.shadowRoot,
|
|
219
|
-
props:
|
|
219
|
+
props: pt(this.attributes),
|
|
220
220
|
customElement: !0
|
|
221
221
|
},
|
|
222
222
|
ka,
|
|
223
223
|
ya,
|
|
224
|
-
|
|
224
|
+
vt,
|
|
225
225
|
{ overlayColor: 1, overlayTransparency: 2 },
|
|
226
226
|
null
|
|
227
227
|
), e && (e.target && T(e.target, this, e.anchor), e.props && (this.$set(e.props), W()));
|
|
@@ -250,7 +250,7 @@ function Li(i) {
|
|
|
250
250
|
), n;
|
|
251
251
|
return {
|
|
252
252
|
c() {
|
|
253
|
-
e = w("slot"), t = w("div"), a = w("img"), r = F(), f = w("span"), n = S(l),
|
|
253
|
+
e = w("slot"), t = w("div"), a = w("img"), r = F(), f = w("span"), n = S(l), Xe(a.src, o = Yt) || d(a, "src", o), d(a, "alt", "loading gif"), d(a, "class", "m-auto h-[10em] lg:h-[12em]"), d(f, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center"), d(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(e, "name", "loading-camera-gif"), d(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
|
254
254
|
},
|
|
255
255
|
m(c, u) {
|
|
256
256
|
T(c, e, u), g(e, t), g(t, a), g(t, r), g(t, f), g(f, n);
|
|
@@ -276,7 +276,7 @@ function Fi(i) {
|
|
|
276
276
|
let n = l(i), c = n(i);
|
|
277
277
|
return {
|
|
278
278
|
c() {
|
|
279
|
-
e = w("div"), t = w("slot"), a = w("div"), o = w("img"), f = F(), c.c(),
|
|
279
|
+
e = w("div"), t = w("slot"), a = w("div"), o = w("img"), f = F(), c.c(), Xe(o.src, r = Yt) || d(o, "src", r), d(o, "alt", "loading gif"), d(o, "class", "m-auto h-[10em] lg:h-[12em]"), d(a, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(t, "name", "loading-camera-gif"), d(t, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]"), d(e, "class", "bg-white absolute inset-0 z-10 flex items-center justify-center");
|
|
280
280
|
},
|
|
281
281
|
m(u, m) {
|
|
282
282
|
T(u, e, m), g(e, t), g(t, a), g(a, o), g(a, f), c.m(a, null);
|
|
@@ -337,7 +337,7 @@ function Si(i) {
|
|
|
337
337
|
let l = f(i), n = l(i);
|
|
338
338
|
return {
|
|
339
339
|
c() {
|
|
340
|
-
e = w("slot"), t = w("div"), a = w("img"), r = F(), n.c(),
|
|
340
|
+
e = w("slot"), t = w("div"), a = w("img"), r = F(), n.c(), Xe(a.src, o = Yt) || d(a, "src", o), d(a, "alt", "loading gif"), d(a, "class", "m-auto h-[10em] lg:h-[12em]"), d(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(e, "name", "loading-camera-gif"), d(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
|
341
341
|
},
|
|
342
342
|
m(c, u) {
|
|
343
343
|
T(c, e, u), g(e, t), g(t, a), g(t, r), n.m(t, null);
|
|
@@ -426,7 +426,7 @@ function Ra(i) {
|
|
|
426
426
|
}
|
|
427
427
|
function Aa(i, e, t) {
|
|
428
428
|
let a, o, r, f, l;
|
|
429
|
-
O(i, Qi, (u) => t(2, a = u)), O(i, Xi, (u) => t(3, o = u)), O(i, Q, (u) => t(4, r = u)), O(i, Ls, (u) => t(5, f = u)), O(i,
|
|
429
|
+
O(i, Qi, (u) => t(2, a = u)), O(i, Xi, (u) => t(3, o = u)), O(i, Q, (u) => t(4, r = u)), O(i, Ls, (u) => t(5, f = u)), O(i, He, (u) => t(6, l = u));
|
|
430
430
|
let { waitingIdrndCaptureEvent: n } = e, { idrndLoading: c } = e;
|
|
431
431
|
return i.$$set = (u) => {
|
|
432
432
|
"waitingIdrndCaptureEvent" in u && t(0, n = u.waitingIdrndCaptureEvent), "idrndLoading" in u && t(1, c = u.idrndLoading);
|
|
@@ -440,18 +440,18 @@ function Aa(i, e, t) {
|
|
|
440
440
|
l
|
|
441
441
|
];
|
|
442
442
|
}
|
|
443
|
-
class xi extends
|
|
443
|
+
class xi extends bt {
|
|
444
444
|
constructor(e) {
|
|
445
|
-
super(),
|
|
445
|
+
super(), gt(
|
|
446
446
|
this,
|
|
447
447
|
{
|
|
448
448
|
target: this.shadowRoot,
|
|
449
|
-
props:
|
|
449
|
+
props: pt(this.attributes),
|
|
450
450
|
customElement: !0
|
|
451
451
|
},
|
|
452
452
|
Aa,
|
|
453
453
|
Ra,
|
|
454
|
-
|
|
454
|
+
vt,
|
|
455
455
|
{
|
|
456
456
|
waitingIdrndCaptureEvent: 0,
|
|
457
457
|
idrndLoading: 1
|
|
@@ -540,12 +540,12 @@ function Wi(i) {
|
|
|
540
540
|
}), {
|
|
541
541
|
c() {
|
|
542
542
|
e = w("div"), t = w("div"), z && z.c(), o = F(), r = w("video"), l = F(), n = w("canvas"), c = F(), u = w("div"), m = w("div"), q && q.c(), _ = F(), me(b.$$.fragment), C = F(), me(p.$$.fragment), d(r, "id", "bry-cc-camera-video-tag"), d(r, "class", f = /*$ready*/
|
|
543
|
-
i[22] ? de() ? "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, d(n, "id", "bry-ce-detectionsCanvas"), d(n, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), d(t, "class", "overflow-hidden"),
|
|
543
|
+
i[22] ? de() ? "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, d(n, "id", "bry-ce-detectionsCanvas"), d(n, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), d(t, "class", "overflow-hidden"), dt(
|
|
544
544
|
t,
|
|
545
545
|
"width",
|
|
546
546
|
/*$videoStore*/
|
|
547
547
|
i[33].videoWidth + "px"
|
|
548
|
-
),
|
|
548
|
+
), dt(
|
|
549
549
|
t,
|
|
550
550
|
"height",
|
|
551
551
|
/*$videoStore*/
|
|
@@ -559,13 +559,13 @@ function Wi(i) {
|
|
|
559
559
|
},
|
|
560
560
|
m(A, B) {
|
|
561
561
|
T(A, e, B), g(e, t), z && z.m(t, null), g(t, o), g(t, r), i[50](r), g(t, l), g(t, n), i[52](n), g(e, c), g(e, u), g(u, m), q && q.m(m, null), g(u, _), _e(b, u, null), g(u, C), _e(p, u, null), D = !0, V || (x = [
|
|
562
|
-
|
|
562
|
+
ue(
|
|
563
563
|
r,
|
|
564
564
|
"canplay",
|
|
565
565
|
/*canplay_handler*/
|
|
566
566
|
i[51]
|
|
567
567
|
),
|
|
568
|
-
|
|
568
|
+
ue(
|
|
569
569
|
r,
|
|
570
570
|
"play",
|
|
571
571
|
/*play*/
|
|
@@ -578,13 +578,13 @@ function Wi(i) {
|
|
|
578
578
|
a && z.p(A, B), (!D || B[0] & /*$ready*/
|
|
579
579
|
4194304 && f !== (f = /*$ready*/
|
|
580
580
|
A[22] ? de() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0")) && d(r, "class", f), (!D || B[1] & /*$videoStore*/
|
|
581
|
-
4) &&
|
|
581
|
+
4) && dt(
|
|
582
582
|
t,
|
|
583
583
|
"width",
|
|
584
584
|
/*$videoStore*/
|
|
585
585
|
A[33].videoWidth + "px"
|
|
586
586
|
), (!D || B[1] & /*$videoStore*/
|
|
587
|
-
4) &&
|
|
587
|
+
4) && dt(
|
|
588
588
|
t,
|
|
589
589
|
"height",
|
|
590
590
|
/*$videoStore*/
|
|
@@ -592,9 +592,9 @@ function Wi(i) {
|
|
|
592
592
|
), /*$ready*/
|
|
593
593
|
A[22] && !/*$detectingFace*/
|
|
594
594
|
A[25] ? q ? (q.p(A, B), B[0] & /*$ready, $detectingFace*/
|
|
595
|
-
37748736 && H(q, 1)) : (q = Bi(A), q.c(), H(q, 1), q.m(m, null)) : q && (
|
|
595
|
+
37748736 && H(q, 1)) : (q = Bi(A), q.c(), H(q, 1), q.m(m, null)) : q && (Je(), G(q, 1, 1, () => {
|
|
596
596
|
q = null;
|
|
597
|
-
}),
|
|
597
|
+
}), Qe());
|
|
598
598
|
const Z = {};
|
|
599
599
|
B[0] & /*showConfigButton*/
|
|
600
600
|
16 && (Z.showConfigButton = /*showConfigButton*/
|
|
@@ -632,7 +632,7 @@ function Wi(i) {
|
|
|
632
632
|
G(q), G(b.$$.fragment, A), G(p.$$.fragment, A), D = !1;
|
|
633
633
|
},
|
|
634
634
|
d(A) {
|
|
635
|
-
A && I(e), z && z.d(), i[50](null), i[52](null), q && q.d(), be(b), be(p), V = !1,
|
|
635
|
+
A && I(e), z && z.d(), i[50](null), i[52](null), q && q.d(), be(b), be(p), V = !1, wt(x);
|
|
636
636
|
}
|
|
637
637
|
};
|
|
638
638
|
}
|
|
@@ -640,19 +640,19 @@ function La(i) {
|
|
|
640
640
|
let e;
|
|
641
641
|
return {
|
|
642
642
|
c() {
|
|
643
|
-
e = w("idlive-face-capture"), e.hidden = !0,
|
|
643
|
+
e = w("idlive-face-capture"), e.hidden = !0, ce(e, "mask_hidden", ""), ce(e, "auto_capture_disabled", ""), ce(e, "auto_close_disabled", ""), ce(
|
|
644
644
|
e,
|
|
645
645
|
"device_id",
|
|
646
646
|
/*$selectedVideoDeviceId*/
|
|
647
647
|
i[23]
|
|
648
|
-
),
|
|
648
|
+
), ce(e, "face_not_centered_check_enabled", ""), ce(e, "sunglasses_detected_check_enabled", ""), ce(e, "mouth_open_check_enabled", ""), ce(e, "face_blurry_check_enabled", ""), ce(e, "dark_image_check_enabled", ""), ce(e, "eyes_closed_check_enabled", "");
|
|
649
649
|
},
|
|
650
650
|
m(t, a) {
|
|
651
651
|
T(t, e, a), i[49](e);
|
|
652
652
|
},
|
|
653
653
|
p(t, a) {
|
|
654
654
|
a[0] & /*$selectedVideoDeviceId*/
|
|
655
|
-
8388608 &&
|
|
655
|
+
8388608 && ce(
|
|
656
656
|
e,
|
|
657
657
|
"device_id",
|
|
658
658
|
/*$selectedVideoDeviceId*/
|
|
@@ -746,13 +746,13 @@ function Mi(i) {
|
|
|
746
746
|
},
|
|
747
747
|
m(_, b) {
|
|
748
748
|
T(_, e, b), g(e, t), g(t, o), g(e, f), g(e, l), g(l, c), u || (m = [
|
|
749
|
-
|
|
749
|
+
ue(
|
|
750
750
|
t,
|
|
751
751
|
"click",
|
|
752
752
|
/*click_handler*/
|
|
753
753
|
i[53]
|
|
754
754
|
),
|
|
755
|
-
|
|
755
|
+
ue(
|
|
756
756
|
l,
|
|
757
757
|
"click",
|
|
758
758
|
/*click_handler_1*/
|
|
@@ -770,7 +770,7 @@ function Mi(i) {
|
|
|
770
770
|
_[30]("faceCollector.retakePhoto") + "") && N(c, n);
|
|
771
771
|
},
|
|
772
772
|
d(_) {
|
|
773
|
-
_ && I(e), u = !1,
|
|
773
|
+
_ && I(e), u = !1, wt(m);
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
776
|
}
|
|
@@ -824,7 +824,7 @@ function Sa(i) {
|
|
|
824
824
|
}
|
|
825
825
|
return f = _(i), l = m[f] = u[f](i), {
|
|
826
826
|
c() {
|
|
827
|
-
e = w("div"), t = w("img"), r = F(), l.c(), d(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"),
|
|
827
|
+
e = w("div"), t = w("img"), r = F(), l.c(), d(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), Xe(t.src, a = /*$dataTypePrefix*/
|
|
828
828
|
i[32] + "," + /*$image*/
|
|
829
829
|
i[28]) || d(t, "src", a), t.hidden = o = !/*$captured*/
|
|
830
830
|
i[24] || !/*$showFaceWhileValidating*/
|
|
@@ -839,7 +839,7 @@ function Sa(i) {
|
|
|
839
839
|
p(b, C) {
|
|
840
840
|
(!c || C[0] & /*$image*/
|
|
841
841
|
268435456 | C[1] & /*$dataTypePrefix*/
|
|
842
|
-
2 && !
|
|
842
|
+
2 && !Xe(t.src, a = /*$dataTypePrefix*/
|
|
843
843
|
b[32] + "," + /*$image*/
|
|
844
844
|
b[28])) && d(t, "src", a), (!c || C[0] & /*$captured*/
|
|
845
845
|
16777216 | C[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
@@ -848,9 +848,9 @@ function Sa(i) {
|
|
|
848
848
|
b[34] && /*$unconformitiesStore*/
|
|
849
849
|
b[31].isLoading)) && (t.hidden = o);
|
|
850
850
|
let p = f;
|
|
851
|
-
f = _(b), f === p ? m[f].p(b, C) : (
|
|
851
|
+
f = _(b), f === p ? m[f].p(b, C) : (Je(), G(m[p], 1, 1, () => {
|
|
852
852
|
m[p] = null;
|
|
853
|
-
}),
|
|
853
|
+
}), Qe(), l = m[f], l ? l.p(b, C) : (l = m[f] = u[f](b), l.c()), H(l, 1), l.m(e, null)), (!c || C[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
854
854
|
9 && n !== (n = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
|
855
855
|
b[34] && /*$unconformitiesStore*/
|
|
856
856
|
b[31].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid overflow-hidden"))) && d(e, "class", n);
|
|
@@ -873,7 +873,7 @@ function Na(i) {
|
|
|
873
873
|
), o, r, f, l, n, c = (
|
|
874
874
|
/*$_*/
|
|
875
875
|
i[30]("faceCollector.retakePhoto") + ""
|
|
876
|
-
), u, m, _ =
|
|
876
|
+
), u, m, _ = mt(ra).faceStrategy !== ca.DISABLED, b, C, p, v = (
|
|
877
877
|
/*$unconformitiesStore*/
|
|
878
878
|
i[31].unconformities.length !== 0 && Ui(i)
|
|
879
879
|
), E = _ && Ua();
|
|
@@ -883,7 +883,7 @@ function Na(i) {
|
|
|
883
883
|
i[35]);
|
|
884
884
|
},
|
|
885
885
|
m(D, V) {
|
|
886
|
-
T(D, e, V), g(e, t), g(t, o), g(e, r), v && v.m(e, null), g(e, f), g(e, l), g(l, n), g(n, u), g(l, m), E && E.m(l, null), b = !0, C || (p =
|
|
886
|
+
T(D, e, V), g(e, t), g(t, o), g(e, r), v && v.m(e, null), g(e, f), g(e, l), g(l, n), g(n, u), g(l, m), E && E.m(l, null), b = !0, C || (p = ue(
|
|
887
887
|
n,
|
|
888
888
|
"click",
|
|
889
889
|
/*click_handler_6*/
|
|
@@ -1039,13 +1039,13 @@ function Wa(i) {
|
|
|
1039
1039
|
},
|
|
1040
1040
|
m(v, E) {
|
|
1041
1041
|
T(v, e, E), p.m(e, null), g(e, t), g(e, a), g(a, o), g(o, f), g(a, l), g(a, n), g(n, u), m || (_ = [
|
|
1042
|
-
|
|
1042
|
+
ue(
|
|
1043
1043
|
o,
|
|
1044
1044
|
"click",
|
|
1045
1045
|
/*click_handler_2*/
|
|
1046
1046
|
i[56]
|
|
1047
1047
|
),
|
|
1048
|
-
|
|
1048
|
+
ue(
|
|
1049
1049
|
n,
|
|
1050
1050
|
"click",
|
|
1051
1051
|
/*click_handler_3*/
|
|
@@ -1063,7 +1063,7 @@ function Wa(i) {
|
|
|
1063
1063
|
i: Y,
|
|
1064
1064
|
o: Y,
|
|
1065
1065
|
d(v) {
|
|
1066
|
-
v && I(e), p.d(), m = !1,
|
|
1066
|
+
v && I(e), p.d(), m = !1, wt(_);
|
|
1067
1067
|
}
|
|
1068
1068
|
};
|
|
1069
1069
|
}
|
|
@@ -1118,11 +1118,11 @@ function Ui(i) {
|
|
|
1118
1118
|
e = w("label"), t = w("span"), o = S(a), r = F(), f = w("textarea"), d(t, "class", "ce-dui-label-text text-base"), d(e, "class", "ce-dui-label"), d(e, "for", "justification"), d(f, "contenteditable", ""), d(f, "id", "justification"), d(f, "class", "ce-dui-textarea ce-dui-textarea-bordered textarea-ghost h-[6em] w-full text-base");
|
|
1119
1119
|
},
|
|
1120
1120
|
m(c, u) {
|
|
1121
|
-
T(c, e, u), g(e, t), g(t, o), T(c, r, u), T(c, f, u),
|
|
1121
|
+
T(c, e, u), g(e, t), g(t, o), T(c, r, u), T(c, f, u), _t(
|
|
1122
1122
|
f,
|
|
1123
1123
|
/*$justification*/
|
|
1124
1124
|
i[27]
|
|
1125
|
-
), l || (n =
|
|
1125
|
+
), l || (n = ue(
|
|
1126
1126
|
f,
|
|
1127
1127
|
"input",
|
|
1128
1128
|
/*textarea_input_handler_1*/
|
|
@@ -1133,7 +1133,7 @@ function Ui(i) {
|
|
|
1133
1133
|
u[0] & /*$_*/
|
|
1134
1134
|
1073741824 && a !== (a = /*$_*/
|
|
1135
1135
|
c[30]("faceCollector.justification") + "") && N(o, a), u[0] & /*$justification*/
|
|
1136
|
-
134217728 &&
|
|
1136
|
+
134217728 && _t(
|
|
1137
1137
|
f,
|
|
1138
1138
|
/*$justification*/
|
|
1139
1139
|
c[27]
|
|
@@ -1224,11 +1224,11 @@ function Ki(i) {
|
|
|
1224
1224
|
i[30]("faceCollector.yourJustification")), d(m, "class", "ce-dui-label-text-alt text-base"), d(u, "class", "ce-dui-label"), d(u, "for", "justification"), d(e, "class", "ce-dui-form-control");
|
|
1225
1225
|
},
|
|
1226
1226
|
m(D, V) {
|
|
1227
|
-
T(D, e, V), g(e, t), g(t, a), g(a, r), g(e, f), g(e, l),
|
|
1227
|
+
T(D, e, V), g(e, t), g(t, a), g(a, r), g(e, f), g(e, l), _t(
|
|
1228
1228
|
l,
|
|
1229
1229
|
/*$justification*/
|
|
1230
1230
|
i[27]
|
|
1231
|
-
), g(e, c), g(e, u), g(u, m), g(m, _), g(m, C), g(m, p), v || (E =
|
|
1231
|
+
), g(e, c), g(e, u), g(u, m), g(m, _), g(m, C), g(m, p), v || (E = ue(
|
|
1232
1232
|
l,
|
|
1233
1233
|
"input",
|
|
1234
1234
|
/*textarea_input_handler*/
|
|
@@ -1241,7 +1241,7 @@ function Ki(i) {
|
|
|
1241
1241
|
D[30]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && N(r, o), V[0] & /*$_*/
|
|
1242
1242
|
1073741824 && n !== (n = /*$_*/
|
|
1243
1243
|
D[30]("faceCollector.yourJustification")) && d(l, "placeholder", n), V[0] & /*$justification*/
|
|
1244
|
-
134217728 &&
|
|
1244
|
+
134217728 && _t(
|
|
1245
1245
|
l,
|
|
1246
1246
|
/*$justification*/
|
|
1247
1247
|
D[27]
|
|
@@ -1272,13 +1272,13 @@ function zi(i) {
|
|
|
1272
1272
|
},
|
|
1273
1273
|
m(_, b) {
|
|
1274
1274
|
T(_, e, b), g(e, t), g(t, o), g(e, f), g(e, l), g(l, c), u || (m = [
|
|
1275
|
-
|
|
1275
|
+
ue(
|
|
1276
1276
|
t,
|
|
1277
1277
|
"click",
|
|
1278
1278
|
/*click_handler_4*/
|
|
1279
1279
|
i[59]
|
|
1280
1280
|
),
|
|
1281
|
-
|
|
1281
|
+
ue(
|
|
1282
1282
|
l,
|
|
1283
1283
|
"click",
|
|
1284
1284
|
/*click_handler_5*/
|
|
@@ -1300,7 +1300,7 @@ function zi(i) {
|
|
|
1300
1300
|
_[30]("faceCollector.retakePhoto") + "") && N(c, n);
|
|
1301
1301
|
},
|
|
1302
1302
|
d(_) {
|
|
1303
|
-
_ && I(e), u = !1,
|
|
1303
|
+
_ && I(e), u = !1, wt(m);
|
|
1304
1304
|
}
|
|
1305
1305
|
};
|
|
1306
1306
|
}
|
|
@@ -1590,9 +1590,9 @@ function Qa(i) {
|
|
|
1590
1590
|
p(v, E) {
|
|
1591
1591
|
/*$videoStore*/
|
|
1592
1592
|
v[33] ? m ? (m.p(v, E), E[1] & /*$videoStore*/
|
|
1593
|
-
4 && H(m, 1)) : (m = Wi(v), m.c(), H(m, 1), m.m(t, a)) : m && (
|
|
1593
|
+
4 && H(m, 1)) : (m = Wi(v), m.c(), H(m, 1), m.m(t, a)) : m && (Je(), G(m, 1, 1, () => {
|
|
1594
1594
|
m = null;
|
|
1595
|
-
}),
|
|
1595
|
+
}), Qe());
|
|
1596
1596
|
const D = {};
|
|
1597
1597
|
E[0] & /*waitingIdrndCaptureEvent*/
|
|
1598
1598
|
524288 && (D.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
|
@@ -1601,9 +1601,9 @@ function Qa(i) {
|
|
|
1601
1601
|
v[17]), o.$set(D), /*$captured*/
|
|
1602
1602
|
v[24] ? _ ? _.p(v, E) : (_ = Mi(v), _.c(), _.m(t, null)) : _ && (_.d(1), _ = null);
|
|
1603
1603
|
let V = l;
|
|
1604
|
-
l = p(v), l === V ? ~l && C[l].p(v, E) : (n && (
|
|
1604
|
+
l = p(v), l === V ? ~l && C[l].p(v, E) : (n && (Je(), G(C[V], 1, 1, () => {
|
|
1605
1605
|
C[V] = null;
|
|
1606
|
-
}),
|
|
1606
|
+
}), Qe()), ~l ? (n = C[l], n ? n.p(v, E) : (n = C[l] = b[l](v), n.c()), H(n, 1), n.m(c.parentNode, c)) : n = null);
|
|
1607
1607
|
},
|
|
1608
1608
|
i(v) {
|
|
1609
1609
|
u || (H(m), H(o.$$.fragment, v), H(n), u = !0);
|
|
@@ -1618,116 +1618,121 @@ function Qa(i) {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
let Xa = 0, Ga = 3e3;
|
|
1620
1620
|
function Ya() {
|
|
1621
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-
|
|
1621
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-RC03.js") : import("./index-idlf-detector_a819b3c8_3.3.0-RC03.js");
|
|
1622
1622
|
}
|
|
1623
1623
|
function Za(i, e, t) {
|
|
1624
|
-
let a, o, r, f, l, n, c, u, m, _, b, C, p, v, E, D, V, x, z, q, A, B, Z, J, R, Oe, ie,
|
|
1625
|
-
O(i, Ut, (s) => t(75, a = s)), O(i,
|
|
1626
|
-
let L, oe, ge, ei, ti = !1, Se = !1,
|
|
1627
|
-
const
|
|
1628
|
-
O(i,
|
|
1624
|
+
let a, o, r, f, l, n, c, u, m, _, b, C, p, v, E, D, V, x, z, q, A, B, Z, J, R, Oe, ie, fe, we, Fe, Ct, ne, Zt, Et, yt, kt, xt, $t;
|
|
1625
|
+
O(i, Ut, (s) => t(75, a = s)), O(i, it, (s) => t(77, r = s)), O(i, st, (s) => t(78, f = s)), O(i, at, (s) => t(79, l = s)), O(i, Q, (s) => t(21, n = s)), O(i, He, (s) => t(22, c = s)), O(i, Fs, (s) => t(80, u = s)), O(i, ot, (s) => t(81, m = s)), O(i, pe, (s) => t(23, _ = s)), O(i, Ss, (s) => t(82, b = s)), O(i, Ae, (s) => t(24, C = s)), O(i, Ci, (s) => t(83, p = s)), O(i, Vt, (s) => t(84, v = s)), O(i, Xi, (s) => t(25, E = s)), O(i, Ei, (s) => t(85, D = s)), O(i, Ns, (s) => t(86, V = s)), O(i, je, (s) => t(87, x = s)), O(i, ye, (s) => t(88, z = s)), O(i, Ps, (s) => t(89, q = s)), O(i, Ws, (s) => t(90, A = s)), O(i, jt, (s) => t(26, B = s)), O(i, Kt, (s) => t(27, Z = s)), O(i, he, (s) => t(28, J = s)), O(i, ae, (s) => t(29, R = s)), O(i, Qi, (s) => t(30, Oe = s)), O(i, ke, (s) => t(31, ie = s)), O(i, yi, (s) => t(91, we = s)), O(i, nt, (s) => t(92, Fe = s)), O(i, zt, (s) => t(93, Ct = s)), O(i, qe, (s) => t(33, ne = s)), O(i, Bs, (s) => t(94, Zt = s)), O(i, lt, (s) => t(95, Et = s)), O(i, ki, (s) => t(96, yt = s)), O(i, Ti, (s) => t(97, kt = s)), O(i, Ms, (s) => t(34, xt = s)), O(i, Us, (s) => t(35, $t = s));
|
|
1626
|
+
let L, oe, ge, ei, ti = !1, Se = !1, Tt = !1, Ot = !1, Dt = (/* @__PURE__ */ new Date()).getTime(), { enableMinutiae: It } = e, { videoDimensions: Rt } = e, { noTabs: At } = e, { weightsPath: Lt } = e, { evaluatePhoto: ve } = e, { showCaptureButton: Ft } = e, { showUnconformities: ii } = e, { showConfigButton: si } = e, { showAutoCaptureButton: St } = e, { showCameraButton: ai } = e, { showJustificationField: oi } = e, { minEyeToEyeDist: Ne } = e, { showWatermark: ni } = e, { videoOverlay: li } = e, { videoOverlayTransparency: ri } = e, { faceDetectionSensitivity: Nt } = e, { cameraDeviceId: Ge } = e;
|
|
1627
|
+
const Ye = Xt(!1);
|
|
1628
|
+
O(i, Ye, (s) => t(76, o = s));
|
|
1629
1629
|
const De = Xt("data:image/png;base64");
|
|
1630
|
-
O(i, De, (s) => t(32,
|
|
1631
|
-
let { widgetInstance: X } = e, ci = new va(), Pe = !1, Pt = !1,
|
|
1632
|
-
const
|
|
1630
|
+
O(i, De, (s) => t(32, fe = s));
|
|
1631
|
+
let { widgetInstance: X } = e, ci = new va(), Pe = !1, Pt = !1, Ze = !0, le = !0, We = !1, ui = 0, se = "", Wt = 0, xe = !0, fi = 0;
|
|
1632
|
+
const $e = Vs.mixin({
|
|
1633
1633
|
toast: !0,
|
|
1634
1634
|
position: "bottom-left",
|
|
1635
1635
|
timer: 13e3,
|
|
1636
1636
|
timerProgressBar: !0
|
|
1637
1637
|
});
|
|
1638
1638
|
js(async () => {
|
|
1639
|
-
if (h(
|
|
1639
|
+
if (h(nt, Fe = !0, Fe), h(He, c = !1, c), hi(), we)
|
|
1640
1640
|
try {
|
|
1641
|
-
await Ks(
|
|
1641
|
+
await Ks(Lt), ti = !0, ei = await zs();
|
|
1642
1642
|
} catch {
|
|
1643
|
-
h(yi, we = !1, we), t(0,
|
|
1643
|
+
h(yi, we = !1, we), t(0, Ft = !0);
|
|
1644
1644
|
}
|
|
1645
|
-
j() ? (Ya(), $i(), ci.startDetection()) : await Ce(
|
|
1645
|
+
j() ? (Ya(), $i(), ci.startDetection()) : await Ce(Ge), de() || ts();
|
|
1646
1646
|
});
|
|
1647
1647
|
async function di() {
|
|
1648
|
-
const [s, y] = (
|
|
1648
|
+
const [s, y] = (Rt ?? "")?.replaceAll(" ", "")?.split("x")?.map((k) => k ? parseInt(k) : void 0);
|
|
1649
1649
|
!s || !y || (de() ? (await aa(), h(
|
|
1650
|
-
|
|
1650
|
+
qe,
|
|
1651
1651
|
ne = {
|
|
1652
1652
|
videoWidth: window.innerWidth,
|
|
1653
1653
|
videoHeight: window.innerHeight
|
|
1654
1654
|
},
|
|
1655
1655
|
ne
|
|
1656
|
-
)) : h(
|
|
1656
|
+
)) : h(qe, ne = { videoWidth: s, videoHeight: y }, ne));
|
|
1657
1657
|
}
|
|
1658
1658
|
function hi() {
|
|
1659
|
-
h(
|
|
1660
|
-
const s =
|
|
1661
|
-
s.closedMouth = !1, s.isPersonCloseEnough = !1, s.isPersonTooclose = !0, s.isPersonInFrame = !1, qt.set(s), h(ye, z = "", z), h(
|
|
1659
|
+
h(it, r = !1, r), h(Ae, C = !1, C), h(ot, m = Ht.FRONT_CAMERA, m), St && h(Ei, D = !1, D), h(jt, B = !1, B), h(ae, R = K.OK, R), h(je, x = "", x), h(ke, ie.unconformities = [], ie);
|
|
1660
|
+
const s = mt(qt);
|
|
1661
|
+
s.closedMouth = !1, s.isPersonCloseEnough = !1, s.isPersonTooclose = !0, s.isPersonInFrame = !1, qt.set(s), h(ye, z = "", z), h(at, l = !1, l), h(st, f = !0, f);
|
|
1662
1662
|
}
|
|
1663
1663
|
function $i() {
|
|
1664
1664
|
X.addEventListener("open", (s) => {
|
|
1665
1665
|
const y = s.detail[0].video;
|
|
1666
1666
|
h(
|
|
1667
1667
|
Ti,
|
|
1668
|
-
|
|
1668
|
+
kt = {
|
|
1669
1669
|
width: y.videoWidth,
|
|
1670
1670
|
height: y.videoHeight
|
|
1671
1671
|
},
|
|
1672
|
-
|
|
1673
|
-
), t(12, L.srcObject = y.srcObject, L), t(17,
|
|
1672
|
+
kt
|
|
1673
|
+
), t(12, L.srcObject = y.srcObject, L), t(17, Ze = !1), f || Hs(X);
|
|
1674
1674
|
function k() {
|
|
1675
|
-
|
|
1675
|
+
le || ze(L, k, !0);
|
|
1676
1676
|
}
|
|
1677
1677
|
k();
|
|
1678
1678
|
}), X.addEventListener("error", (s) => {
|
|
1679
|
-
console.error(s), s.detail[0].message.toLowerCase().includes("device in use") ? h(Q, n = P.CAMERA_IN_USE_ERROR, n) : s.detail[0].message.toLowerCase().includes("permission") ? h(Q, n = P.CAMERA_DENIED_ERROR, n) : s.detail[0].message.toLowerCase().includes("not found") && !de() ? h(Q, n = P.DEVICE_NOT_FOUND_ERROR, n) : h(Q, n = P.CAMERA_DENIED_ERROR, n), t(17,
|
|
1679
|
+
console.error(s), s.detail[0].message.toLowerCase().includes("device in use") ? h(Q, n = P.CAMERA_IN_USE_ERROR, n) : s.detail[0].message.toLowerCase().includes("permission") ? h(Q, n = P.CAMERA_DENIED_ERROR, n) : s.detail[0].message.toLowerCase().includes("not found") && !de() ? h(Q, n = P.DEVICE_NOT_FOUND_ERROR, n) : h(Q, n = P.CAMERA_DENIED_ERROR, n), t(17, Ze = !1);
|
|
1680
1680
|
}), X.addEventListener("faceDetection", (s) => {
|
|
1681
1681
|
s.detail[0].errors.length > 0 && Oi(s.detail[0].errors);
|
|
1682
1682
|
}), X.addEventListener("detection", (s) => {
|
|
1683
1683
|
s.detail[0].errors.length > 0 && Oi(s.detail[0].errors);
|
|
1684
1684
|
}), X.addEventListener("close", async (s) => {
|
|
1685
|
-
C || (Pe = !1), t(18,
|
|
1685
|
+
C || (Pe = !1), t(18, le = !0), t(19, We = !1), n === P.OK && (h(Q, n = P.CAMERA_CLOSED_ERROR, n), setTimeout(
|
|
1686
|
+
() => {
|
|
1687
|
+
Ge && le && Be();
|
|
1688
|
+
},
|
|
1689
|
+
500
|
|
1690
|
+
));
|
|
1686
1691
|
}), X.addEventListener("initialize", async (s) => {
|
|
1687
|
-
Pt = !0, h(ki,
|
|
1692
|
+
Pt = !0, h(ki, yt = !0, yt);
|
|
1688
1693
|
try {
|
|
1689
1694
|
X.setLicense(qs, "faceDetector");
|
|
1690
1695
|
} catch (y) {
|
|
1691
1696
|
console.error("Error setting license:", y);
|
|
1692
1697
|
}
|
|
1693
|
-
|
|
1698
|
+
Ct === rt.Face && !Pe && !C && Pt && await Bt();
|
|
1694
1699
|
}), X.addEventListener("capture", async (s) => {
|
|
1695
1700
|
t(20, se = "");
|
|
1696
1701
|
const { encryptedFile: y, photo: k } = s.detail[0];
|
|
1697
|
-
h(
|
|
1698
|
-
const M = (await
|
|
1699
|
-
if (t(19, We = !1), h(ae, R = K.OK, R), h(ke, ie.isLoading = !0, ie), h(Ae, C = !0, C), Pe = !1, h(De,
|
|
1700
|
-
let ee,
|
|
1702
|
+
h(lt, Et = y, Et);
|
|
1703
|
+
const M = (await ct(k)).split(",");
|
|
1704
|
+
if (t(19, We = !1), h(ae, R = K.OK, R), h(ke, ie.isLoading = !0, ie), h(Ae, C = !0, C), Pe = !1, h(De, fe = M[0], fe), h(he, J = M[1], J), h(je, x = M[1], x), !Zt) {
|
|
1705
|
+
let ee, Me, vi, pi;
|
|
1701
1706
|
try {
|
|
1702
1707
|
if (f && !Di(Ne))
|
|
1703
1708
|
throw new Error("FACE_TOO_SMALL");
|
|
1704
1709
|
const te = Js();
|
|
1705
1710
|
if (f && te)
|
|
1706
1711
|
throw new Error(te);
|
|
1707
|
-
({ bodyParts: ee, icaoWarnings:
|
|
1712
|
+
({ bodyParts: ee, icaoWarnings: Me } = await ut(x, ve, (await ct(y)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
|
1708
1713
|
"face-unconformities-validated",
|
|
1709
1714
|
{
|
|
1710
1715
|
detail: {
|
|
1711
1716
|
bodyParts: ee,
|
|
1712
|
-
icaoWarnings:
|
|
1717
|
+
icaoWarnings: Me,
|
|
1713
1718
|
status: R
|
|
1714
1719
|
}
|
|
1715
1720
|
}
|
|
1716
1721
|
));
|
|
1717
1722
|
} catch (te) {
|
|
1718
1723
|
console.error(te);
|
|
1719
|
-
let Ee = Te.UNKNOWN,
|
|
1720
|
-
te instanceof Jt && te.response?.status === 400 ? te.response.data && Array.isArray(te.response.data.bodyParts) ? (
|
|
1724
|
+
let Ee = Te.UNKNOWN, Ue = [], wi = [];
|
|
1725
|
+
te instanceof Jt && te.response?.status === 400 ? te.response.data && Array.isArray(te.response.data.bodyParts) ? (Ue = te.response.data.bodyParts, wi = te.response.data.icaoWarnings, vi = te.response.data.invalidLivenessCounter, pi = te.response.data.invalidLivenessLimit, Ee = Ue.find((As) => As.livenessResult.error)?.livenessResult.error_code, h(ae, R = K.LIVENESS_DETECTION_FAILURE, R), t(20, se = Te[Ee]), console.error("Liveness error:", Ee)) : h(ae, R = K.TEMPLATE_EXTRACTION_ERROR, R) : te instanceof Error && Qs.includes(te.message) ? (h(ae, R = K.UNKNOWN_LIVENESS_ERROR, R), Ee = te.message, t(20, se = Te[Ee]), Ue = bi(), Ue[0].livenessResult = {
|
|
1721
1726
|
error: se,
|
|
1722
1727
|
error_code: Ee
|
|
1723
|
-
}) : ve &&
|
|
1728
|
+
}) : ve && $e.fire({
|
|
1724
1729
|
icon: "error",
|
|
1725
1730
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1726
1731
|
}), h(ke, ie.isLoading = !1, ie), window.dispatchEvent(new CustomEvent(
|
|
1727
1732
|
"face-unconformities-validated",
|
|
1728
1733
|
{
|
|
1729
1734
|
detail: {
|
|
1730
|
-
bodyParts:
|
|
1735
|
+
bodyParts: Ue,
|
|
1731
1736
|
errorCode: Ee,
|
|
1732
1737
|
translatedError: Oe(se),
|
|
1733
1738
|
status: R,
|
|
@@ -1740,17 +1745,17 @@ function Za(i, e, t) {
|
|
|
1740
1745
|
return;
|
|
1741
1746
|
}
|
|
1742
1747
|
if (R !== K.OK) {
|
|
1743
|
-
|
|
1748
|
+
Me && Ke(Me), h(ke, ie.isLoading = !1, ie);
|
|
1744
1749
|
return;
|
|
1745
1750
|
}
|
|
1746
|
-
ee[0].livenessResult && mi(ee[0].livenessResult), ee.length !== 0 && ee[0].data && h(he, J = ee[0].data, J),
|
|
1751
|
+
ee[0].livenessResult && mi(ee[0].livenessResult), ee.length !== 0 && ee[0].data && h(he, J = ee[0].data, J), Ke(Me);
|
|
1747
1752
|
return;
|
|
1748
1753
|
}
|
|
1749
1754
|
let U, $;
|
|
1750
1755
|
try {
|
|
1751
1756
|
$ = await Xs(y), mi($.data);
|
|
1752
1757
|
} catch (ee) {
|
|
1753
|
-
h(ae, R = K.UNKNOWN_LIVENESS_ERROR, R), console.error(ee), ee instanceof Jt && ee.response?.status === 400 ? (U = ee.response.data.error_code, t(20, se = Te[U]), console.error("Liveness error:", U), h(ae, R = K.LIVENESS_DETECTION_FAILURE, R)) :
|
|
1758
|
+
h(ae, R = K.UNKNOWN_LIVENESS_ERROR, R), console.error(ee), ee instanceof Jt && ee.response?.status === 400 ? (U = ee.response.data.error_code, t(20, se = Te[U]), console.error("Liveness error:", U), h(ae, R = K.LIVENESS_DETECTION_FAILURE, R)) : $e.fire({
|
|
1754
1759
|
icon: "error",
|
|
1755
1760
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1756
1761
|
});
|
|
@@ -1764,7 +1769,7 @@ function Za(i, e, t) {
|
|
|
1764
1769
|
{
|
|
1765
1770
|
bodyPart: "FACE",
|
|
1766
1771
|
data: x,
|
|
1767
|
-
livenessBlob: (await
|
|
1772
|
+
livenessBlob: (await ct(y)).split(",")[1],
|
|
1768
1773
|
...$ && { livenessResult: $ }
|
|
1769
1774
|
}
|
|
1770
1775
|
],
|
|
@@ -1776,23 +1781,23 @@ function Za(i, e, t) {
|
|
|
1776
1781
|
));
|
|
1777
1782
|
return;
|
|
1778
1783
|
}
|
|
1779
|
-
let { bodyParts:
|
|
1784
|
+
let { bodyParts: re, icaoWarnings: Re } = await ut(x, ve);
|
|
1780
1785
|
window.dispatchEvent(new CustomEvent(
|
|
1781
1786
|
"face-unconformities-validated",
|
|
1782
1787
|
{
|
|
1783
1788
|
detail: {
|
|
1784
|
-
bodyParts:
|
|
1789
|
+
bodyParts: re,
|
|
1785
1790
|
icaoWarnings: Re,
|
|
1786
1791
|
status: R,
|
|
1787
1792
|
errorCode: U,
|
|
1788
1793
|
...se && { translatedError: Oe(se) }
|
|
1789
1794
|
}
|
|
1790
1795
|
}
|
|
1791
|
-
)),
|
|
1796
|
+
)), re[0].data && h(he, J = re[0].data, J), Ke(Re);
|
|
1792
1797
|
});
|
|
1793
1798
|
}
|
|
1794
1799
|
async function Ce(s) {
|
|
1795
|
-
if (!
|
|
1800
|
+
if (!xe) {
|
|
1796
1801
|
h(Q, n = P.CAMERA_ORIENTATION_PORTRAIT, n);
|
|
1797
1802
|
return;
|
|
1798
1803
|
}
|
|
@@ -1809,16 +1814,16 @@ function Za(i, e, t) {
|
|
|
1809
1814
|
}
|
|
1810
1815
|
await Qt(), h(pe, _ = b[0].deviceId, _);
|
|
1811
1816
|
}
|
|
1812
|
-
h(Q, n = P.OK, n), X && "openCamera" in X && X.openCamera(), Pe = !0, t(18,
|
|
1817
|
+
h(Q, n = P.OK, n), X && "openCamera" in X && X.openCamera(), Pe = !0, t(18, le = !1), t(17, Ze = !0);
|
|
1813
1818
|
}
|
|
1814
1819
|
}
|
|
1815
|
-
async function
|
|
1820
|
+
async function et() {
|
|
1816
1821
|
if (we && !ti)
|
|
1817
|
-
return
|
|
1822
|
+
return ze(L, et);
|
|
1818
1823
|
if (L) {
|
|
1819
|
-
if (
|
|
1820
|
-
return
|
|
1821
|
-
h(
|
|
1824
|
+
if (Ct !== rt.Face && !At)
|
|
1825
|
+
return ze(L, et);
|
|
1826
|
+
h(He, c = !0, c), h(nt, Fe = !1, Fe), we && (o || h(Ye, o = !0, o)), ze(L, et);
|
|
1822
1827
|
}
|
|
1823
1828
|
}
|
|
1824
1829
|
async function Mt() {
|
|
@@ -1829,31 +1834,32 @@ function Za(i, e, t) {
|
|
|
1829
1834
|
let s = null;
|
|
1830
1835
|
try {
|
|
1831
1836
|
if (we) {
|
|
1832
|
-
const U = await oa(L,
|
|
1837
|
+
const U = await oa(L, Nt);
|
|
1833
1838
|
if (s = U.canvas, h(Ae, C = !0, C), !U.result) {
|
|
1834
1839
|
const ee = s.toDataURL("image/jpeg").split(",");
|
|
1835
|
-
throw h(De,
|
|
1840
|
+
throw h(De, fe = ee[0], fe), h(he, J = ee[1], J), new Error("FACE_NOT_FOUND");
|
|
1836
1841
|
}
|
|
1837
1842
|
const $ = s.toDataURL("image/jpeg").split(",");
|
|
1838
|
-
h(De,
|
|
1839
|
-
let
|
|
1843
|
+
h(De, fe = $[0], fe), h(he, J = $[1], J), h(je, x = $[1], x);
|
|
1844
|
+
let re, Re;
|
|
1840
1845
|
if (!Di(Ne))
|
|
1841
1846
|
throw new Error("FACE_TOO_SMALL");
|
|
1842
|
-
({ bodyParts:
|
|
1847
|
+
({ bodyParts: re, icaoWarnings: Re } = await ut(J, ve)), window.dispatchEvent(new CustomEvent(
|
|
1843
1848
|
"face-unconformities-validated",
|
|
1844
1849
|
{
|
|
1845
1850
|
detail: {
|
|
1846
|
-
bodyParts:
|
|
1851
|
+
bodyParts: re,
|
|
1847
1852
|
icaoWarnings: Re,
|
|
1848
1853
|
status: R
|
|
1849
1854
|
}
|
|
1850
1855
|
}
|
|
1851
|
-
)),
|
|
1856
|
+
)), re.length !== 0 && re[0].data && h(he, J = re[0].data, J), Ke(Re);
|
|
1857
|
+
return;
|
|
1852
1858
|
}
|
|
1853
1859
|
h(Ae, C = !0, C);
|
|
1854
1860
|
const y = await is();
|
|
1855
|
-
h(De,
|
|
1856
|
-
let { bodyParts: k, icaoWarnings: M } = await
|
|
1861
|
+
h(De, fe = y[0], fe), h(he, J = y[1], J), h(je, x = y[1], x);
|
|
1862
|
+
let { bodyParts: k, icaoWarnings: M } = await ut(J, ve);
|
|
1857
1863
|
window.dispatchEvent(new CustomEvent(
|
|
1858
1864
|
"face-unconformities-validated",
|
|
1859
1865
|
{
|
|
@@ -1863,19 +1869,19 @@ function Za(i, e, t) {
|
|
|
1863
1869
|
status: R
|
|
1864
1870
|
}
|
|
1865
1871
|
}
|
|
1866
|
-
)), k.length !== 0 && k[0].data && h(he, J = k[0].data, J),
|
|
1872
|
+
)), k.length !== 0 && k[0].data && h(he, J = k[0].data, J), Ke(M);
|
|
1867
1873
|
} catch (y) {
|
|
1868
1874
|
console.error(y);
|
|
1869
1875
|
let k = Te.UNKNOWN, M = [], U = [];
|
|
1870
1876
|
if (y instanceof Jt && y.response?.status === 400)
|
|
1871
1877
|
if (y.response.data && Array.isArray(y.response.data.bodyParts)) {
|
|
1872
1878
|
M = y.response.data.bodyParts, U = y.response.data.icaoWarnings;
|
|
1873
|
-
const $ = M.find((
|
|
1879
|
+
const $ = M.find((re) => re.livenessResult.error);
|
|
1874
1880
|
k = $?.livenessResult.error_code, h(ae, R = K.LIVENESS_DETECTION_FAILURE, R), $?.livenessResult.error_code || h(ae, R = K.UNKNOWN_LIVENESS_ERROR, R), t(20, se = Te[k]), console.error("Liveness error:", k);
|
|
1875
1881
|
} else
|
|
1876
1882
|
h(ae, R = K.TEMPLATE_EXTRACTION_ERROR, R);
|
|
1877
1883
|
else
|
|
1878
|
-
y instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(y.message) ? (h(ae, R = K.LIVENESS_DETECTION_FAILURE, R), k = y.message, t(20, se = Te[k]), M = bi()) : (h(ae, R = K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, R), ve &&
|
|
1884
|
+
y instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(y.message) ? (h(ae, R = K.LIVENESS_DETECTION_FAILURE, R), k = y.message, t(20, se = Te[k]), M = bi()) : (h(ae, R = K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, R), ve && $e.fire({
|
|
1879
1885
|
icon: "error",
|
|
1880
1886
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1881
1887
|
}));
|
|
@@ -1893,22 +1899,22 @@ function Za(i, e, t) {
|
|
|
1893
1899
|
));
|
|
1894
1900
|
}
|
|
1895
1901
|
}
|
|
1896
|
-
function
|
|
1902
|
+
function tt() {
|
|
1897
1903
|
const s = {
|
|
1898
1904
|
bodyPart: "FACE",
|
|
1899
1905
|
data: J,
|
|
1900
1906
|
justification: Z
|
|
1901
1907
|
};
|
|
1902
|
-
h(jt, B = !0, B),
|
|
1908
|
+
h(jt, B = !0, B), mt(lt) && ct(mt(lt)).then((y) => {
|
|
1903
1909
|
s.livenessBlob = y.split(",")[1];
|
|
1904
1910
|
}), window.dispatchEvent(new CustomEvent("export-face", { detail: s }));
|
|
1905
1911
|
}
|
|
1906
1912
|
function Ie() {
|
|
1907
|
-
window.dispatchEvent(new CustomEvent("face-scrapped")), hi(),
|
|
1913
|
+
window.dispatchEvent(new CustomEvent("face-scrapped")), hi(), le && Bt();
|
|
1908
1914
|
}
|
|
1909
1915
|
function mi(s) {
|
|
1910
1916
|
let y = "", k = "success";
|
|
1911
|
-
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 &&
|
|
1917
|
+
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 });
|
|
1912
1918
|
}
|
|
1913
1919
|
async function es(s, y, k) {
|
|
1914
1920
|
try {
|
|
@@ -1919,19 +1925,19 @@ function Za(i, e, t) {
|
|
|
1919
1925
|
console.error(U.message, $), Le(U) && "message" in U && U.message.toLowerCase().includes("permission") ? (console.error("User didn't give permission to use camera!"), h(Q, n = P.CAMERA_DENIED_ERROR, n)) : Le(U) && "message" in U && U.message.toLowerCase().includes("not found") && !de() ? h(Q, n = P.DEVICE_NOT_FOUND_ERROR, n) : $.includes("width") || $.includes("height") ? (console.error(`Camera does not meet the minimum supported requirements! (${$})`), h(Q, n = P.CAMERA_UNSUPPORTED, n)) : (h(Q, n = P.CAMERA_DENIED_ERROR, n), console.error("Unable to open camera!"));
|
|
1920
1926
|
}
|
|
1921
1927
|
}
|
|
1922
|
-
async function
|
|
1928
|
+
async function Be() {
|
|
1923
1929
|
h(pe, _ = "", _), await Ce();
|
|
1924
1930
|
}
|
|
1925
1931
|
function ts() {
|
|
1926
1932
|
navigator.mediaDevices.ondevicechange = async (s) => {
|
|
1927
|
-
s.type == "devicechange" && (await Qt(), n !== P.OK ? await
|
|
1933
|
+
s.type == "devicechange" && (await Qt(), n !== P.OK ? await Be() : (!j() && !p.active || j() && !le) && (ft(X), h(Q, n = P.DEVICE_NOT_FOUND_ERROR, n), t(18, le = !0)));
|
|
1928
1934
|
};
|
|
1929
1935
|
}
|
|
1930
1936
|
async function _i() {
|
|
1931
|
-
h(
|
|
1937
|
+
h(it, r = !1, r);
|
|
1932
1938
|
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
1933
|
-
if (s -
|
|
1934
|
-
|
|
1939
|
+
if (s - Dt > 5e3) {
|
|
1940
|
+
Dt = s;
|
|
1935
1941
|
try {
|
|
1936
1942
|
if (L.width === 0 || L.height === 0)
|
|
1937
1943
|
return;
|
|
@@ -1957,7 +1963,7 @@ function Za(i, e, t) {
|
|
|
1957
1963
|
}
|
|
1958
1964
|
h(ye, z = "faceCollector.faceWasNotFound", z);
|
|
1959
1965
|
} else
|
|
1960
|
-
|
|
1966
|
+
Tt || (Tt = !0, setTimeout(
|
|
1961
1967
|
() => {
|
|
1962
1968
|
let k = [
|
|
1963
1969
|
"faceCollector.faceWasNotFound",
|
|
@@ -1965,7 +1971,7 @@ function Za(i, e, t) {
|
|
|
1965
1971
|
"faceCollector.lowSharpness",
|
|
1966
1972
|
"faceCollector.illuminationTooHigh"
|
|
1967
1973
|
];
|
|
1968
|
-
|
|
1974
|
+
Tt = !1, t(16, Ot = !1), z && !k.includes(z) && h(ye, z = "", z);
|
|
1969
1975
|
},
|
|
1970
1976
|
1500
|
|
1971
1977
|
));
|
|
@@ -1991,7 +1997,7 @@ function Za(i, e, t) {
|
|
|
1991
1997
|
t(15, Se = !0), fi = (/* @__PURE__ */ new Date()).getTime() + Ga;
|
|
1992
1998
|
const k = setInterval(
|
|
1993
1999
|
async () => {
|
|
1994
|
-
if (!D || C || E || We || j() &&
|
|
2000
|
+
if (!D || C || E || We || j() && le || !s.isPersonCloseEnough || s.isPersonTooclose || !s.closedMouth || !s.isPersonInFrame) {
|
|
1995
2001
|
t(15, Se = !1), setTimeout(
|
|
1996
2002
|
() => {
|
|
1997
2003
|
},
|
|
@@ -2011,41 +2017,41 @@ function Za(i, e, t) {
|
|
|
2011
2017
|
L && s && (console.log("setting null in video srcObject"), t(12, L.srcObject = null, L), t(12, L.src = "", L), h(pe, _ = null, _));
|
|
2012
2018
|
});
|
|
2013
2019
|
zt.subscribe(async (s) => {
|
|
2014
|
-
s ===
|
|
2020
|
+
s === rt.Face && (await Qt(), j() && h(pe, _ = b[0]?.deviceId, _));
|
|
2015
2021
|
});
|
|
2016
2022
|
const ns = pe.subscribe(async (s) => {
|
|
2017
|
-
if (!(!j() && !p || !s || j() &&
|
|
2023
|
+
if (!(!j() && !p || !s || j() && le))
|
|
2018
2024
|
try {
|
|
2019
2025
|
if (j()) {
|
|
2020
|
-
await
|
|
2026
|
+
await ft(X), await Ce();
|
|
2021
2027
|
return;
|
|
2022
2028
|
}
|
|
2023
|
-
t(12, L.srcObject = p, L), h(Vt, v = !1, v),
|
|
2029
|
+
t(12, L.srcObject = p, L), h(Vt, v = !1, v), xe ? h(Q, n = P.OK, n) : h(Q, n = P.CAMERA_ORIENTATION_PORTRAIT, n), p.getTracks().forEach((y) => {
|
|
2024
2030
|
y.readyState === "live" && console.log(`Camera ${y.label} (${y.id}) opened successfully!`);
|
|
2025
2031
|
}), h(Q, n = P.OK, n), Ys(L);
|
|
2026
2032
|
} catch (y) {
|
|
2027
2033
|
const k = y;
|
|
2028
|
-
t(18,
|
|
2034
|
+
t(18, le = !0), Le(k) && "message" in k && k.message.includes("Requested device not found") && h(Q, n = P.DEVICE_NOT_FOUND_ERROR, n);
|
|
2029
2035
|
}
|
|
2030
2036
|
}), ls = zt.subscribe(async (s) => {
|
|
2031
|
-
s ===
|
|
2032
|
-
}), rs =
|
|
2037
|
+
s === rt.Face && j() && !Pe && !C && Pt && await Ce();
|
|
2038
|
+
}), rs = Ye.subscribe(async (s) => {
|
|
2033
2039
|
s && gi();
|
|
2034
2040
|
}), cs = Zs.subscribe(async (s) => {
|
|
2035
2041
|
if (b[0]?.deviceId) {
|
|
2036
|
-
if (
|
|
2042
|
+
if (ft(), !de() || j()) {
|
|
2037
2043
|
const k = (b.findIndex((U) => U.deviceId === _) + 1) % b.length, M = b[k].deviceId;
|
|
2038
2044
|
j() ? h(pe, _ = M, _) : await Ce(M);
|
|
2039
2045
|
return;
|
|
2040
2046
|
}
|
|
2041
|
-
s ? (h(
|
|
2047
|
+
s ? (h(ot, m = Ht.REAR_CAMERA, m), await Ce()) : (h(ot, m = Ht.FRONT_CAMERA, m), await Ce());
|
|
2042
2048
|
}
|
|
2043
2049
|
}), us = xs.subscribe(async (s) => {
|
|
2044
|
-
!s.isSupported || !de() || u != "FACE" || (
|
|
2050
|
+
!s.isSupported || !de() || u != "FACE" || (xe = s.orientation.includes("portrait"), xe ? L && !c ? await Be() : c && h(Q, n = P.OK, n) : h(Q, n = P.CAMERA_ORIENTATION_PORTRAIT, n));
|
|
2045
2051
|
}), fs = Gt.subscribe((s) => {
|
|
2046
2052
|
s && window.dispatchEvent(new CustomEvent("console-open-status", { detail: { isOpen: s } }));
|
|
2047
|
-
}), ds =
|
|
2048
|
-
s && (h(
|
|
2053
|
+
}), ds = at.subscribe(async (s) => {
|
|
2054
|
+
s && (h(st, f = !1, f), await Mt(), h(at, l = !1, l), h(st, f = !0, f));
|
|
2049
2055
|
});
|
|
2050
2056
|
async function gi() {
|
|
2051
2057
|
let s;
|
|
@@ -2057,34 +2063,34 @@ function Za(i, e, t) {
|
|
|
2057
2063
|
const k = ba(oe, L, !0);
|
|
2058
2064
|
$s(oe, L, k);
|
|
2059
2065
|
const M = ga(s, k);
|
|
2060
|
-
ea(M) ? (ta(M, oe,
|
|
2066
|
+
ea(M) ? (ta(M, oe, It), h(it, r = !0, r), t(16, Ot = !0), Dt = (/* @__PURE__ */ new Date()).getTime()) : _i();
|
|
2061
2067
|
} else
|
|
2062
2068
|
_i();
|
|
2063
2069
|
} else
|
|
2064
2070
|
Wt++;
|
|
2065
2071
|
} catch {
|
|
2066
2072
|
} finally {
|
|
2067
|
-
o &&
|
|
2073
|
+
o && ze(L, gi);
|
|
2068
2074
|
}
|
|
2069
2075
|
}
|
|
2070
2076
|
Ut.subscribe(async (s) => {
|
|
2071
2077
|
s && (Ie(), h(Ut, a = !1, a));
|
|
2072
2078
|
});
|
|
2073
|
-
const hs =
|
|
2079
|
+
const hs = He.subscribe((s) => {
|
|
2074
2080
|
s && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
|
2075
|
-
}), ms =
|
|
2081
|
+
}), ms = nt.subscribe((s) => {
|
|
2076
2082
|
s && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
2077
2083
|
});
|
|
2078
2084
|
ia(() => {
|
|
2079
|
-
console.log("Destroying face collector"),
|
|
2085
|
+
console.log("Destroying face collector"), ft(X), as(), ss(), os(), ns(), ls(), clearInterval(ui), rs(), cs(), us(), fs(), ds(), hs(), ms(), ui = 0, ci.stopDetection();
|
|
2080
2086
|
});
|
|
2081
2087
|
function _s(s) {
|
|
2082
|
-
|
|
2088
|
+
ht[s ? "unshift" : "push"](() => {
|
|
2083
2089
|
X = s, t(1, X);
|
|
2084
2090
|
});
|
|
2085
2091
|
}
|
|
2086
2092
|
function bs(s) {
|
|
2087
|
-
|
|
2093
|
+
ht[s ? "unshift" : "push"](() => {
|
|
2088
2094
|
L = s, t(12, L);
|
|
2089
2095
|
});
|
|
2090
2096
|
}
|
|
@@ -2092,49 +2098,49 @@ function Za(i, e, t) {
|
|
|
2092
2098
|
j() || (t(12, L.width = ne.videoWidth, L), t(12, L.height = ne.videoHeight, L), t(13, oe.width = ne.videoWidth, oe), t(13, oe.height = ne.videoHeight, oe));
|
|
2093
2099
|
};
|
|
2094
2100
|
function vs(s) {
|
|
2095
|
-
|
|
2101
|
+
ht[s ? "unshift" : "push"](() => {
|
|
2096
2102
|
oe = s, t(13, oe);
|
|
2097
2103
|
});
|
|
2098
2104
|
}
|
|
2099
|
-
const ps = () =>
|
|
2105
|
+
const ps = () => tt(), ws = () => Ie();
|
|
2100
2106
|
function Cs(s) {
|
|
2101
|
-
|
|
2107
|
+
ht[s ? "unshift" : "push"](() => {
|
|
2102
2108
|
ge = s, t(14, ge);
|
|
2103
2109
|
});
|
|
2104
2110
|
}
|
|
2105
|
-
const Es = () =>
|
|
2111
|
+
const Es = () => tt(), ys = () => Ie();
|
|
2106
2112
|
function ks() {
|
|
2107
2113
|
Z = this.value, Kt.set(Z);
|
|
2108
2114
|
}
|
|
2109
|
-
const Ts = () =>
|
|
2115
|
+
const Ts = () => tt(), Os = () => Ie();
|
|
2110
2116
|
function Ds() {
|
|
2111
2117
|
Z = this.value, Kt.set(Z);
|
|
2112
2118
|
}
|
|
2113
2119
|
const Is = () => Ie(), Rs = async () => {
|
|
2114
|
-
await
|
|
2120
|
+
await Be();
|
|
2115
2121
|
};
|
|
2116
2122
|
return i.$$set = (s) => {
|
|
2117
|
-
"enableMinutiae" in s && t(42,
|
|
2123
|
+
"enableMinutiae" in s && t(42, It = s.enableMinutiae), "videoDimensions" in s && t(43, Rt = s.videoDimensions), "noTabs" in s && t(44, At = s.noTabs), "weightsPath" in s && t(45, Lt = s.weightsPath), "evaluatePhoto" in s && t(2, ve = s.evaluatePhoto), "showCaptureButton" in s && t(0, Ft = s.showCaptureButton), "showUnconformities" in s && t(3, ii = s.showUnconformities), "showConfigButton" in s && t(4, si = s.showConfigButton), "showAutoCaptureButton" in s && t(5, St = s.showAutoCaptureButton), "showCameraButton" in s && t(6, ai = s.showCameraButton), "showJustificationField" in s && t(7, oi = s.showJustificationField), "minEyeToEyeDist" in s && t(46, Ne = s.minEyeToEyeDist), "showWatermark" in s && t(8, ni = s.showWatermark), "videoOverlay" in s && t(9, li = s.videoOverlay), "videoOverlayTransparency" in s && t(10, ri = s.videoOverlayTransparency), "faceDetectionSensitivity" in s && t(47, Nt = s.faceDetectionSensitivity), "cameraDeviceId" in s && t(48, Ge = s.cameraDeviceId), "widgetInstance" in s && t(1, X = s.widgetInstance);
|
|
2118
2124
|
}, [
|
|
2119
|
-
|
|
2125
|
+
Ft,
|
|
2120
2126
|
X,
|
|
2121
2127
|
ve,
|
|
2122
2128
|
ii,
|
|
2123
2129
|
si,
|
|
2124
|
-
|
|
2130
|
+
St,
|
|
2125
2131
|
ai,
|
|
2126
2132
|
oi,
|
|
2127
2133
|
ni,
|
|
2128
2134
|
li,
|
|
2129
2135
|
ri,
|
|
2130
|
-
|
|
2136
|
+
et,
|
|
2131
2137
|
L,
|
|
2132
2138
|
oe,
|
|
2133
2139
|
ge,
|
|
2134
2140
|
Se,
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2141
|
+
Ot,
|
|
2142
|
+
Ze,
|
|
2143
|
+
le,
|
|
2138
2144
|
We,
|
|
2139
2145
|
se,
|
|
2140
2146
|
n,
|
|
@@ -2148,23 +2154,23 @@ function Za(i, e, t) {
|
|
|
2148
2154
|
R,
|
|
2149
2155
|
Oe,
|
|
2150
2156
|
ie,
|
|
2151
|
-
|
|
2157
|
+
fe,
|
|
2152
2158
|
ne,
|
|
2153
2159
|
xt,
|
|
2154
2160
|
$t,
|
|
2155
|
-
|
|
2161
|
+
Ye,
|
|
2156
2162
|
De,
|
|
2157
2163
|
Mt,
|
|
2158
|
-
|
|
2164
|
+
tt,
|
|
2159
2165
|
Ie,
|
|
2160
|
-
|
|
2161
|
-
Dt,
|
|
2166
|
+
Be,
|
|
2162
2167
|
It,
|
|
2163
2168
|
Rt,
|
|
2164
2169
|
At,
|
|
2170
|
+
Lt,
|
|
2165
2171
|
Ne,
|
|
2166
|
-
St,
|
|
2167
2172
|
Nt,
|
|
2173
|
+
Ge,
|
|
2168
2174
|
_s,
|
|
2169
2175
|
bs,
|
|
2170
2176
|
gs,
|
|
@@ -2182,18 +2188,18 @@ function Za(i, e, t) {
|
|
|
2182
2188
|
Rs
|
|
2183
2189
|
];
|
|
2184
2190
|
}
|
|
2185
|
-
class xa extends
|
|
2191
|
+
class xa extends bt {
|
|
2186
2192
|
constructor(e) {
|
|
2187
|
-
super(),
|
|
2193
|
+
super(), gt(
|
|
2188
2194
|
this,
|
|
2189
2195
|
{
|
|
2190
2196
|
target: this.shadowRoot,
|
|
2191
|
-
props:
|
|
2197
|
+
props: pt(this.attributes),
|
|
2192
2198
|
customElement: !0
|
|
2193
2199
|
},
|
|
2194
2200
|
Za,
|
|
2195
2201
|
Qa,
|
|
2196
|
-
|
|
2202
|
+
vt,
|
|
2197
2203
|
{
|
|
2198
2204
|
enableMinutiae: 42,
|
|
2199
2205
|
videoDimensions: 43,
|