bry-biometric-collector 3.3.2-RC01 → 3.3.2-RC02
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/{CaptureBar_4d431e44_3.3.2-RC01.js → CaptureBar_7a7965bc_3.3.2-RC02.js} +1 -1
- package/dist/{DocumentCollector_c284fbe5_3.3.2-RC01.js → DocumentCollector_bea06b6f_3.3.2-RC02.js} +67 -67
- package/dist/{FaceCollector_e241eecc_3.3.2-RC01.js → FaceCollector_8e1a9947_3.3.2-RC02.js} +613 -603
- package/dist/{FaceOval_d125a8dd_3.3.2-RC01.js → FaceOval_2f82c133_3.3.2-RC02.js} +2 -2
- package/dist/{StreamCollector_8d833076_3.3.2-RC01.js → StreamCollector_66beed3f_3.3.2-RC02.js} +36 -36
- package/dist/{Unique_impl_55956c53_3.3.2-RC01.js → Unique_impl_ac67b281_3.3.2-RC02.js} +1 -1
- package/dist/{ValidationAlert_6225f572_3.3.2-RC01.js → ValidationAlert_2edac538_3.3.2-RC02.js} +53 -53
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{fingersApi_267da302_3.3.2-RC01.js → fingersApi_e5d2a353_3.3.2-RC02.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_a89779e7_3.3.2-RC01.js → index_6b4a94e8_3.3.2-RC02.js} +3 -3
- package/dist/{index_74a75d48_3.3.2-RC01.js → index_a23faa9a_3.3.2-RC02.js} +4 -4
- package/dist/{main_ccac3ad3_3.3.2-RC01.js → main_2ecd1129_3.3.2-RC02.js} +2447 -2431
- package/package.json +1 -1
- /package/dist/{en-us_c02e99cd_3.3.2-RC01.js → en-us_c02e99cd_3.3.2-RC02.js} +0 -0
- /package/dist/{es-cl_6f3eda53_3.3.2-RC01.js → es-cl_6f3eda53_3.3.2-RC02.js} +0 -0
- /package/dist/{face_api_d3d25326_3.3.2-RC01.js → face_api_d3d25326_3.3.2-RC02.js} +0 -0
- /package/dist/{index-idlf-detector_18843221_3.3.2-RC01.js → index-idlf-detector_18843221_3.3.2-RC02.js} +0 -0
- /package/dist/{index-idlf-detector_a5efb00c_3.3.2-RC01.js → index-idlf-detector_a5efb00c_3.3.2-RC02.js} +0 -0
- /package/dist/{pt-br_e7d46668_3.3.2-RC01.js → pt-br_e7d46668_3.3.2-RC02.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { w as
|
|
2
|
-
import { V as
|
|
3
|
-
import { detectSingleFace as
|
|
4
|
-
import { F as
|
|
5
|
-
import { C as
|
|
6
|
-
const
|
|
7
|
-
class
|
|
1
|
+
import { w as Qt, S as Gt, x as Yt, y as Zt, z as xt, B as k, C as z, D as w, E as X, G as h, H as R, I as O, J as ct, K as he, L as j, M as U, N, O as Xi, $ as Gi, P as Yi, Q as q, R as As, T as Ne, U as P, V as He, W as $t, X as b, Y as B, Z as pe, _ as we, a0 as Q, a1 as ft, a2 as Y, a3 as dt, a4 as Ce, a5 as Pt, a6 as Bt, a7 as Ze, a8 as Ls, a9 as xe, aa as ve, ab as Fs, ac as Fe, ad as Wt, ae as Ti, af as Ss, ag as je, ah as ke, ai as Ns, aj as Ps, ak as Mt, al as Ut, am as de, an as se, ao as Oe, ap as ki, aq as Vt, ar as $e, as as zt, at as Bs, au as et, av as Oi, aw as Ri, ax as Ws, ay as Ms, az as Us, aA as Vs, f as Ii, aB as m, aC as zs, aD as js, aE as Ks, l as ee, aF as Hs, aG as jt, aH as K, m as ut, aI as Kt, aJ as qs, aK as Di, aL as Js, aM as tt, aN as it, aO as Ai, aP as Qs, aQ as st, A as Ht, aR as Re, aS as Xs, aT as Ke, aU as Gs, aV as Li, e as Se, aW as qt, aX as nt, aY as Ys, aZ as Jt, a_ as Zs, a$ as xs, b0 as $s, d as ot, b1 as en, b2 as tn, b3 as sn, b4 as at, b5 as nn, b6 as on, b7 as an, b8 as lt, b9 as re, ba as mt, bb as ln, bc as rn, bd as cn, be as rt, bf as oe, bg as un, bh as fn, bi as Fi, bj as Zi, bk as ht, bl as dn } from "./main_2ecd1129_3.3.2-RC02.js";
|
|
2
|
+
import { V as hn, C as mn } from "./ValidationAlert_2edac538_3.3.2-RC02.js";
|
|
3
|
+
import { detectSingleFace as _n, matchDimensions as bn, resizeResults as gn } from "./face_api_d3d25326_3.3.2-RC02.js";
|
|
4
|
+
import { F as vn } from "./FaceOval_2f82c133_3.3.2-RC02.js";
|
|
5
|
+
import { C as pn } from "./CaptureBar_7a7965bc_3.3.2-RC02.js";
|
|
6
|
+
const Xt = Qt(!1);
|
|
7
|
+
class wn {
|
|
8
8
|
isDevToolsOpen = !1;
|
|
9
9
|
detectionCount = 0;
|
|
10
10
|
checkSizeTimeout = null;
|
|
@@ -14,7 +14,7 @@ class vn {
|
|
|
14
14
|
return e || t;
|
|
15
15
|
}
|
|
16
16
|
checkForDevTools = () => {
|
|
17
|
-
this.detectDevToolsBySize() ? (this.detectionCount++, this.detectionCount >= 2 && !this.isDevToolsOpen && (this.isDevToolsOpen = !0,
|
|
17
|
+
this.detectDevToolsBySize() ? (this.detectionCount++, this.detectionCount >= 2 && !this.isDevToolsOpen && (this.isDevToolsOpen = !0, Xt.set(this.isDevToolsOpen))) : (this.detectionCount = 0, this.isDevToolsOpen && (this.isDevToolsOpen = !1, Xt.set(this.isDevToolsOpen)));
|
|
18
18
|
};
|
|
19
19
|
startDetection() {
|
|
20
20
|
this.stopDetection(), window.addEventListener("resize", () => {
|
|
@@ -25,7 +25,7 @@ class vn {
|
|
|
25
25
|
this.detectionInterval && (clearInterval(this.detectionInterval), this.detectionInterval = null), this.checkSizeTimeout && (clearTimeout(this.checkSizeTimeout), this.checkSizeTimeout = null);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function Cn(i) {
|
|
29
29
|
let e;
|
|
30
30
|
return {
|
|
31
31
|
c() {
|
|
@@ -36,11 +36,11 @@ function pn(i) {
|
|
|
36
36
|
i[0]
|
|
37
37
|
);
|
|
38
38
|
},
|
|
39
|
-
m(t,
|
|
40
|
-
k(t, e,
|
|
39
|
+
m(t, o) {
|
|
40
|
+
k(t, e, o);
|
|
41
41
|
},
|
|
42
|
-
p(t, [
|
|
43
|
-
|
|
42
|
+
p(t, [o]) {
|
|
43
|
+
o & /*styleVars*/
|
|
44
44
|
1 && h(
|
|
45
45
|
e,
|
|
46
46
|
"style",
|
|
@@ -55,46 +55,46 @@ function pn(i) {
|
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
|
-
function
|
|
59
|
-
let
|
|
60
|
-
O(i, ct, (r) => t(6,
|
|
58
|
+
function En(i, e, t) {
|
|
59
|
+
let o, a;
|
|
60
|
+
O(i, ct, (r) => t(6, a = r));
|
|
61
61
|
let c, f, n = 0.8, { overlayColor: l } = e, { overlayTransparency: u } = e;
|
|
62
62
|
return he() && (n = 0.65), i.$$set = (r) => {
|
|
63
63
|
"overlayColor" in r && t(1, l = r.overlayColor), "overlayTransparency" in r && t(2, u = r.overlayTransparency);
|
|
64
64
|
}, i.$$.update = () => {
|
|
65
65
|
i.$$.dirty & /*$videoStore, percentage, ovalHeight*/
|
|
66
|
-
112 &&
|
|
67
|
-
30 && t(0,
|
|
66
|
+
112 && a && (t(4, f = a.videoHeight * n), t(3, c = f / 1.45)), i.$$.dirty & /*ovalWidth, ovalHeight, overlayColor, overlayTransparency*/
|
|
67
|
+
30 && t(0, o = `
|
|
68
68
|
--oval-width: ${c}px;
|
|
69
69
|
--oval-height: ${f}px;
|
|
70
70
|
--overlay-color: ${l};
|
|
71
71
|
--overlay-transparency: ${u};
|
|
72
72
|
`);
|
|
73
73
|
}, [
|
|
74
|
-
|
|
74
|
+
o,
|
|
75
75
|
l,
|
|
76
76
|
u,
|
|
77
77
|
c,
|
|
78
78
|
f,
|
|
79
79
|
n,
|
|
80
|
-
|
|
80
|
+
a
|
|
81
81
|
];
|
|
82
82
|
}
|
|
83
|
-
class xi extends
|
|
83
|
+
class xi extends Gt {
|
|
84
84
|
constructor(e) {
|
|
85
|
-
super(),
|
|
85
|
+
super(), Yt(
|
|
86
86
|
this,
|
|
87
87
|
{
|
|
88
88
|
target: this.shadowRoot,
|
|
89
|
-
props:
|
|
89
|
+
props: xt(this.attributes),
|
|
90
90
|
customElement: !0
|
|
91
91
|
},
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
En,
|
|
93
|
+
Cn,
|
|
94
|
+
Zt,
|
|
95
95
|
{ overlayColor: 1, overlayTransparency: 2 },
|
|
96
96
|
null
|
|
97
|
-
), e && (e.target && k(e.target, this, e.anchor), e.props && (this.$set(e.props),
|
|
97
|
+
), e && (e.target && k(e.target, this, e.anchor), e.props && (this.$set(e.props), z()));
|
|
98
98
|
}
|
|
99
99
|
static get observedAttributes() {
|
|
100
100
|
return ["overlayColor", "overlayTransparency"];
|
|
@@ -103,27 +103,27 @@ class xi extends Jt {
|
|
|
103
103
|
return this.$$.ctx[1];
|
|
104
104
|
}
|
|
105
105
|
set overlayColor(e) {
|
|
106
|
-
this.$$set({ overlayColor: e }),
|
|
106
|
+
this.$$set({ overlayColor: e }), z();
|
|
107
107
|
}
|
|
108
108
|
get overlayTransparency() {
|
|
109
109
|
return this.$$.ctx[2];
|
|
110
110
|
}
|
|
111
111
|
set overlayTransparency(e) {
|
|
112
|
-
this.$$set({ overlayTransparency: e }),
|
|
112
|
+
this.$$set({ overlayTransparency: e }), z();
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
customElements.define("overlay-oval", xi);
|
|
116
|
-
function
|
|
117
|
-
let e, t,
|
|
116
|
+
function Si(i) {
|
|
117
|
+
let e, t, o, a, c, f, n = (
|
|
118
118
|
/*$_*/
|
|
119
119
|
i[2]("faceCollector.obtainingPicture") + ""
|
|
120
120
|
), l;
|
|
121
121
|
return {
|
|
122
122
|
c() {
|
|
123
|
-
e = w("slot"), t = w("div"),
|
|
123
|
+
e = w("slot"), t = w("div"), o = w("img"), c = N(), f = w("span"), l = P(n), He(o.src, a = $t) || h(o, "src", a), h(o, "alt", "loading gif"), h(o, "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]");
|
|
124
124
|
},
|
|
125
125
|
m(u, r) {
|
|
126
|
-
k(u, e, r), b(e, t), b(t,
|
|
126
|
+
k(u, e, r), b(e, t), b(t, o), b(t, c), b(t, f), b(f, l);
|
|
127
127
|
},
|
|
128
128
|
p(u, r) {
|
|
129
129
|
r & /*$_*/
|
|
@@ -136,59 +136,59 @@ function Fi(i) {
|
|
|
136
136
|
};
|
|
137
137
|
}
|
|
138
138
|
function Ni(i) {
|
|
139
|
-
let e, t,
|
|
139
|
+
let e, t, o, a, c, f;
|
|
140
140
|
function n(r, d) {
|
|
141
141
|
return (
|
|
142
142
|
/*$isLoading*/
|
|
143
|
-
r[5] ?
|
|
143
|
+
r[5] ? Tn : yn
|
|
144
144
|
);
|
|
145
145
|
}
|
|
146
146
|
let l = n(i), u = l(i);
|
|
147
147
|
return {
|
|
148
148
|
c() {
|
|
149
|
-
e = w("div"), t = w("slot"),
|
|
149
|
+
e = w("div"), t = w("slot"), o = w("div"), a = w("img"), f = N(), u.c(), He(a.src, c = $t) || h(a, "src", c), h(a, "alt", "loading gif"), h(a, "class", "m-auto h-[10em] lg:h-[12em]"), h(o, "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");
|
|
150
150
|
},
|
|
151
151
|
m(r, d) {
|
|
152
|
-
k(r, e, d), b(e, t), b(t,
|
|
152
|
+
k(r, e, d), b(e, t), b(t, o), b(o, a), b(o, f), u.m(o, null);
|
|
153
153
|
},
|
|
154
154
|
p(r, d) {
|
|
155
|
-
l === (l = n(r)) && u ? u.p(r, d) : (u.d(1), u = l(r), u && (u.c(), u.m(
|
|
155
|
+
l === (l = n(r)) && u ? u.p(r, d) : (u.d(1), u = l(r), u && (u.c(), u.m(o, null)));
|
|
156
156
|
},
|
|
157
157
|
d(r) {
|
|
158
158
|
r && R(e), u.d();
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
}
|
|
162
|
-
function
|
|
162
|
+
function yn(i) {
|
|
163
163
|
let e, t = (
|
|
164
164
|
/*$_*/
|
|
165
165
|
i[2]("faceCollector.obtainingPicture") + ""
|
|
166
|
-
),
|
|
166
|
+
), o;
|
|
167
167
|
return {
|
|
168
168
|
c() {
|
|
169
|
-
e = w("span"),
|
|
169
|
+
e = w("span"), o = P(t), h(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
170
170
|
},
|
|
171
|
-
m(
|
|
172
|
-
k(
|
|
171
|
+
m(a, c) {
|
|
172
|
+
k(a, e, c), b(e, o);
|
|
173
173
|
},
|
|
174
|
-
p(
|
|
174
|
+
p(a, c) {
|
|
175
175
|
c & /*$_*/
|
|
176
176
|
4 && t !== (t = /*$_*/
|
|
177
|
-
|
|
177
|
+
a[2]("faceCollector.obtainingPicture") + "") && B(o, t);
|
|
178
178
|
},
|
|
179
|
-
d(
|
|
180
|
-
|
|
179
|
+
d(a) {
|
|
180
|
+
a && R(e);
|
|
181
181
|
}
|
|
182
182
|
};
|
|
183
183
|
}
|
|
184
|
-
function
|
|
184
|
+
function Tn(i) {
|
|
185
185
|
let e;
|
|
186
186
|
return {
|
|
187
187
|
c() {
|
|
188
188
|
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");
|
|
189
189
|
},
|
|
190
|
-
m(t,
|
|
191
|
-
k(t, e,
|
|
190
|
+
m(t, o) {
|
|
191
|
+
k(t, e, o);
|
|
192
192
|
},
|
|
193
193
|
p: X,
|
|
194
194
|
d(t) {
|
|
@@ -197,20 +197,20 @@ function En(i) {
|
|
|
197
197
|
};
|
|
198
198
|
}
|
|
199
199
|
function Pi(i) {
|
|
200
|
-
let e, t,
|
|
200
|
+
let e, t, o, a, c;
|
|
201
201
|
function f(u, r) {
|
|
202
202
|
return (
|
|
203
203
|
/*$isLoading*/
|
|
204
|
-
u[5] ?
|
|
204
|
+
u[5] ? On : kn
|
|
205
205
|
);
|
|
206
206
|
}
|
|
207
207
|
let n = f(i), l = n(i);
|
|
208
208
|
return {
|
|
209
209
|
c() {
|
|
210
|
-
e = w("slot"), t = w("div"),
|
|
210
|
+
e = w("slot"), t = w("div"), o = w("img"), c = N(), l.c(), He(o.src, a = $t) || h(o, "src", a), h(o, "alt", "loading gif"), h(o, "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]");
|
|
211
211
|
},
|
|
212
212
|
m(u, r) {
|
|
213
|
-
k(u, e, r), b(e, t), b(t,
|
|
213
|
+
k(u, e, r), b(e, t), b(t, o), b(t, c), l.m(t, null);
|
|
214
214
|
},
|
|
215
215
|
p(u, r) {
|
|
216
216
|
n === (n = f(u)) && l ? l.p(u, r) : (l.d(1), l = n(u), l && (l.c(), l.m(t, null)));
|
|
@@ -220,36 +220,36 @@ function Pi(i) {
|
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
|
-
function
|
|
223
|
+
function kn(i) {
|
|
224
224
|
let e, t = (
|
|
225
225
|
/*$_*/
|
|
226
226
|
i[2]("faceCollector.initiatingCamera") + ""
|
|
227
|
-
),
|
|
227
|
+
), o;
|
|
228
228
|
return {
|
|
229
229
|
c() {
|
|
230
|
-
e = w("span"),
|
|
230
|
+
e = w("span"), o = P(t), h(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
231
231
|
},
|
|
232
|
-
m(
|
|
233
|
-
k(
|
|
232
|
+
m(a, c) {
|
|
233
|
+
k(a, e, c), b(e, o);
|
|
234
234
|
},
|
|
235
|
-
p(
|
|
235
|
+
p(a, c) {
|
|
236
236
|
c & /*$_*/
|
|
237
237
|
4 && t !== (t = /*$_*/
|
|
238
|
-
|
|
238
|
+
a[2]("faceCollector.initiatingCamera") + "") && B(o, t);
|
|
239
239
|
},
|
|
240
|
-
d(
|
|
241
|
-
|
|
240
|
+
d(a) {
|
|
241
|
+
a && R(e);
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function On(i) {
|
|
246
246
|
let e;
|
|
247
247
|
return {
|
|
248
248
|
c() {
|
|
249
249
|
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");
|
|
250
250
|
},
|
|
251
|
-
m(t,
|
|
252
|
-
k(t, e,
|
|
251
|
+
m(t, o) {
|
|
252
|
+
k(t, e, o);
|
|
253
253
|
},
|
|
254
254
|
p: X,
|
|
255
255
|
d(t) {
|
|
@@ -257,77 +257,77 @@ function Tn(i) {
|
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
259
|
}
|
|
260
|
-
function
|
|
261
|
-
let e =
|
|
262
|
-
i[0], t,
|
|
260
|
+
function Rn(i) {
|
|
261
|
+
let e = j() && /*waitingIdrndCaptureEvent*/
|
|
262
|
+
i[0], t, o, a = (j() && /*idrndLoading*/
|
|
263
263
|
(i[1] || !/*$ready*/
|
|
264
|
-
i[6]) || !
|
|
264
|
+
i[6]) || !j() && !/*$ready*/
|
|
265
265
|
i[6]) && /*$cameraStatusStore*/
|
|
266
|
-
i[4] === U.OK, c, f = e &&
|
|
266
|
+
i[4] === U.OK, c, f = e && Si(i), n = (
|
|
267
267
|
/*$detectingFace*/
|
|
268
268
|
i[3] && /*$cameraStatusStore*/
|
|
269
269
|
i[4] === U.OK && Ni(i)
|
|
270
|
-
), l =
|
|
270
|
+
), l = a && Pi(i);
|
|
271
271
|
return {
|
|
272
272
|
c() {
|
|
273
|
-
f && f.c(), t = N(), n && n.c(),
|
|
273
|
+
f && f.c(), t = N(), n && n.c(), o = N(), l && l.c(), c = Xi(), this.c = X;
|
|
274
274
|
},
|
|
275
275
|
m(u, r) {
|
|
276
|
-
f && f.m(u, r), k(u, t, r), n && n.m(u, r), k(u,
|
|
276
|
+
f && f.m(u, r), k(u, t, r), n && n.m(u, r), k(u, o, r), l && l.m(u, r), k(u, c, r);
|
|
277
277
|
},
|
|
278
278
|
p(u, [r]) {
|
|
279
279
|
r & /*waitingIdrndCaptureEvent*/
|
|
280
|
-
1 && (e =
|
|
281
|
-
u[0]), e ? f ? f.p(u, r) : (f =
|
|
280
|
+
1 && (e = j() && /*waitingIdrndCaptureEvent*/
|
|
281
|
+
u[0]), e ? f ? f.p(u, r) : (f = Si(u), f.c(), f.m(t.parentNode, t)) : f && (f.d(1), f = null), /*$detectingFace*/
|
|
282
282
|
u[3] && /*$cameraStatusStore*/
|
|
283
|
-
u[4] === U.OK ? n ? n.p(u, r) : (n = Ni(u), n.c(), n.m(
|
|
284
|
-
82 && (
|
|
283
|
+
u[4] === U.OK ? n ? n.p(u, r) : (n = Ni(u), n.c(), n.m(o.parentNode, o)) : n && (n.d(1), n = null), r & /*idrndLoading, $ready, $cameraStatusStore*/
|
|
284
|
+
82 && (a = (j() && /*idrndLoading*/
|
|
285
285
|
(u[1] || !/*$ready*/
|
|
286
|
-
u[6]) || !
|
|
286
|
+
u[6]) || !j() && !/*$ready*/
|
|
287
287
|
u[6]) && /*$cameraStatusStore*/
|
|
288
|
-
u[4] === U.OK),
|
|
288
|
+
u[4] === U.OK), a ? l ? l.p(u, r) : (l = Pi(u), l.c(), l.m(c.parentNode, c)) : l && (l.d(1), l = null);
|
|
289
289
|
},
|
|
290
290
|
i: X,
|
|
291
291
|
o: X,
|
|
292
292
|
d(u) {
|
|
293
|
-
f && f.d(u), u && R(t), n && n.d(u), u && R(
|
|
293
|
+
f && f.d(u), u && R(t), n && n.d(u), u && R(o), l && l.d(u), u && R(c);
|
|
294
294
|
}
|
|
295
295
|
};
|
|
296
296
|
}
|
|
297
|
-
function
|
|
298
|
-
let
|
|
299
|
-
O(i, Gi, (r) => t(2,
|
|
297
|
+
function In(i, e, t) {
|
|
298
|
+
let o, a, c, f, n;
|
|
299
|
+
O(i, Gi, (r) => t(2, o = r)), O(i, Yi, (r) => t(3, a = r)), O(i, q, (r) => t(4, c = r)), O(i, As, (r) => t(5, f = r)), O(i, Ne, (r) => t(6, n = r));
|
|
300
300
|
let { waitingIdrndCaptureEvent: l } = e, { idrndLoading: u } = e;
|
|
301
301
|
return i.$$set = (r) => {
|
|
302
302
|
"waitingIdrndCaptureEvent" in r && t(0, l = r.waitingIdrndCaptureEvent), "idrndLoading" in r && t(1, u = r.idrndLoading);
|
|
303
303
|
}, [
|
|
304
304
|
l,
|
|
305
305
|
u,
|
|
306
|
-
a,
|
|
307
306
|
o,
|
|
307
|
+
a,
|
|
308
308
|
c,
|
|
309
309
|
f,
|
|
310
310
|
n
|
|
311
311
|
];
|
|
312
312
|
}
|
|
313
|
-
class $i extends
|
|
313
|
+
class $i extends Gt {
|
|
314
314
|
constructor(e) {
|
|
315
|
-
super(),
|
|
315
|
+
super(), Yt(
|
|
316
316
|
this,
|
|
317
317
|
{
|
|
318
318
|
target: this.shadowRoot,
|
|
319
|
-
props:
|
|
319
|
+
props: xt(this.attributes),
|
|
320
320
|
customElement: !0
|
|
321
321
|
},
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
322
|
+
In,
|
|
323
|
+
Rn,
|
|
324
|
+
Zt,
|
|
325
325
|
{
|
|
326
326
|
waitingIdrndCaptureEvent: 0,
|
|
327
327
|
idrndLoading: 1
|
|
328
328
|
},
|
|
329
329
|
null
|
|
330
|
-
), e && (e.target && k(e.target, this, e.anchor), e.props && (this.$set(e.props),
|
|
330
|
+
), e && (e.target && k(e.target, this, e.anchor), e.props && (this.$set(e.props), z()));
|
|
331
331
|
}
|
|
332
332
|
static get observedAttributes() {
|
|
333
333
|
return ["waitingIdrndCaptureEvent", "idrndLoading"];
|
|
@@ -336,31 +336,31 @@ class $i extends Jt {
|
|
|
336
336
|
return this.$$.ctx[0];
|
|
337
337
|
}
|
|
338
338
|
set waitingIdrndCaptureEvent(e) {
|
|
339
|
-
this.$$set({ waitingIdrndCaptureEvent: e }),
|
|
339
|
+
this.$$set({ waitingIdrndCaptureEvent: e }), z();
|
|
340
340
|
}
|
|
341
341
|
get idrndLoading() {
|
|
342
342
|
return this.$$.ctx[1];
|
|
343
343
|
}
|
|
344
344
|
set idrndLoading(e) {
|
|
345
|
-
this.$$set({ idrndLoading: e }),
|
|
345
|
+
this.$$set({ idrndLoading: e }), z();
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
348
|
customElements.define("loading-component", $i);
|
|
349
349
|
function Bi(i, e, t) {
|
|
350
|
-
const
|
|
351
|
-
return
|
|
350
|
+
const o = i.slice();
|
|
351
|
+
return o[123] = e[t], o;
|
|
352
352
|
}
|
|
353
353
|
function Wi(i, e, t) {
|
|
354
|
-
const
|
|
355
|
-
return
|
|
354
|
+
const o = i.slice();
|
|
355
|
+
return o[123] = e[t], o;
|
|
356
356
|
}
|
|
357
357
|
function Mi(i) {
|
|
358
|
-
let e, t,
|
|
358
|
+
let e, t, o = j(), a, c, f, n, l, u, r, d, g, _, y, p, v, C, I, L, G, ae = o && Dn(i), H = (
|
|
359
359
|
/*$ready*/
|
|
360
360
|
i[24] && !/*$detectingFace*/
|
|
361
361
|
i[28] && Ui(i)
|
|
362
362
|
);
|
|
363
|
-
return _ = new
|
|
363
|
+
return _ = new an({}), p = new pn({
|
|
364
364
|
props: {
|
|
365
365
|
showConfigButton: (
|
|
366
366
|
/*showConfigButton*/
|
|
@@ -409,7 +409,7 @@ function Mi(i) {
|
|
|
409
409
|
}
|
|
410
410
|
}), {
|
|
411
411
|
c() {
|
|
412
|
-
e = w("div"), t = w("div"),
|
|
412
|
+
e = w("div"), t = w("div"), ae && ae.c(), a = N(), c = w("video"), n = N(), l = w("canvas"), u = N(), r = w("div"), d = w("div"), H && H.c(), g = N(), pe(_.$$.fragment), y = N(), pe(p.$$.fragment), h(c, "id", "bry-cc-camera-video-tag"), h(c, "class", f = /*$ready*/
|
|
413
413
|
i[24] ? he() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0"), c.playsInline = !0, c.muted = !0, c.autoplay = !0, h(l, "id", "bry-ce-detectionsCanvas"), h(l, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), h(t, "class", "overflow-hidden"), lt(
|
|
414
414
|
t,
|
|
415
415
|
"width",
|
|
@@ -422,13 +422,13 @@ function Mi(i) {
|
|
|
422
422
|
i[27].videoHeight + "px"
|
|
423
423
|
), h(d, "class", "flex flex-grow w-full items-center justify-center relative"), h(r, "class", "absolute inset-0 flex flex-col items-center justify-between w-full h-full"), h(e, "class", v = /*$ready*/
|
|
424
424
|
i[24] ? "relative" : "relative w-0 h-0"), e.hidden = C = /*$cameraStatusStore*/
|
|
425
|
-
i[23] !== U.OK ||
|
|
425
|
+
i[23] !== U.OK || j() && /*idrndLoading*/
|
|
426
426
|
(i[19] || /*idrndClosed*/
|
|
427
427
|
i[20] || /*waitingIdrndCaptureEvent*/
|
|
428
428
|
i[21]);
|
|
429
429
|
},
|
|
430
430
|
m(D, W) {
|
|
431
|
-
k(D, e, W), b(e, t),
|
|
431
|
+
k(D, e, W), b(e, t), ae && ae.m(t, null), b(t, a), b(t, c), i[51](c), b(t, n), b(t, l), i[53](l), b(e, u), b(e, r), b(r, d), H && H.m(d, null), b(r, g), we(_, r, null), b(r, y), we(p, r, null), I = !0, L || (G = [
|
|
432
432
|
re(
|
|
433
433
|
c,
|
|
434
434
|
"canplay",
|
|
@@ -442,10 +442,10 @@ function Mi(i) {
|
|
|
442
442
|
i[12],
|
|
443
443
|
{ once: !0 }
|
|
444
444
|
)
|
|
445
|
-
],
|
|
445
|
+
], L = !0);
|
|
446
446
|
},
|
|
447
447
|
p(D, W) {
|
|
448
|
-
|
|
448
|
+
o && ae.p(D, W), (!I || W[0] & /*$ready*/
|
|
449
449
|
16777216 && f !== (f = /*$ready*/
|
|
450
450
|
D[24] ? he() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0")) && h(c, "class", f), (!I || W[0] & /*$videoStore*/
|
|
451
451
|
134217728) && lt(
|
|
@@ -465,32 +465,32 @@ function Mi(i) {
|
|
|
465
465
|
285212672 && Q(H, 1)) : (H = Ui(D), H.c(), Q(H, 1), H.m(d, null)) : H && (ft(), Y(H, 1, 1, () => {
|
|
466
466
|
H = null;
|
|
467
467
|
}), dt());
|
|
468
|
-
const
|
|
468
|
+
const S = {};
|
|
469
469
|
W[0] & /*showConfigButton*/
|
|
470
|
-
16 && (
|
|
470
|
+
16 && (S.showConfigButton = /*showConfigButton*/
|
|
471
471
|
D[4]), W[0] & /*showAutoCaptureButton*/
|
|
472
|
-
32 && (
|
|
472
|
+
32 && (S.showAutoCaptureButton = /*showAutoCaptureButton*/
|
|
473
473
|
D[5]), W[0] & /*showCaptureButton*/
|
|
474
|
-
1 && (
|
|
474
|
+
1 && (S.showCaptureButton = /*showCaptureButton*/
|
|
475
475
|
D[0]), W[0] & /*showCameraButton*/
|
|
476
|
-
64 && (
|
|
476
|
+
64 && (S.showCameraButton = /*showCameraButton*/
|
|
477
477
|
D[6]), W[0] & /*enableCaptureButton*/
|
|
478
|
-
262144 && (
|
|
478
|
+
262144 && (S.enableCaptureButton = /*enableCaptureButton*/
|
|
479
479
|
D[18]), W[0] & /*videoOverlay*/
|
|
480
|
-
512 && (
|
|
480
|
+
512 && (S.videoOverlay = /*videoOverlay*/
|
|
481
481
|
D[9]), W[0] & /*videoOverlayTransparency*/
|
|
482
|
-
1024 && (
|
|
482
|
+
1024 && (S.videoOverlayTransparency = /*videoOverlayTransparency*/
|
|
483
483
|
D[10]), W[0] & /*idrndClosed*/
|
|
484
|
-
1048576 && (
|
|
484
|
+
1048576 && (S.idrndClosed = /*idrndClosed*/
|
|
485
485
|
D[20]), W[0] & /*idrndLoading*/
|
|
486
|
-
524288 && (
|
|
486
|
+
524288 && (S.idrndLoading = /*idrndLoading*/
|
|
487
487
|
D[19]), W[0] & /*waitingIdrndCaptureEvent*/
|
|
488
|
-
2097152 && (
|
|
489
|
-
D[21]), p.$set(
|
|
488
|
+
2097152 && (S.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
|
489
|
+
D[21]), p.$set(S), (!I || W[0] & /*$ready*/
|
|
490
490
|
16777216 && v !== (v = /*$ready*/
|
|
491
491
|
D[24] ? "relative" : "relative w-0 h-0")) && h(e, "class", v), (!I || W[0] & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
|
492
492
|
12058624 && C !== (C = /*$cameraStatusStore*/
|
|
493
|
-
D[23] !== U.OK ||
|
|
493
|
+
D[23] !== U.OK || j() && /*idrndLoading*/
|
|
494
494
|
(D[19] || /*idrndClosed*/
|
|
495
495
|
D[20] || /*waitingIdrndCaptureEvent*/
|
|
496
496
|
D[21]))) && (e.hidden = C);
|
|
@@ -502,38 +502,38 @@ function Mi(i) {
|
|
|
502
502
|
Y(H), Y(_.$$.fragment, D), Y(p.$$.fragment, D), I = !1;
|
|
503
503
|
},
|
|
504
504
|
d(D) {
|
|
505
|
-
D && R(e),
|
|
505
|
+
D && R(e), ae && ae.d(), i[51](null), i[53](null), H && H.d(), Ce(_), Ce(p), L = !1, mt(G);
|
|
506
506
|
}
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
function
|
|
509
|
+
function Dn(i) {
|
|
510
510
|
let e;
|
|
511
511
|
return {
|
|
512
512
|
c() {
|
|
513
|
-
e = w("idlive-face-capture"), e.hidden = !0,
|
|
513
|
+
e = w("idlive-face-capture"), e.hidden = !0, oe(e, "mask_hidden", ""), oe(e, "auto_capture_disabled", ""), oe(e, "auto_close_disabled", ""), oe(
|
|
514
514
|
e,
|
|
515
515
|
"device_id",
|
|
516
516
|
/*$selectedVideoDeviceId*/
|
|
517
517
|
i[25]
|
|
518
|
-
),
|
|
518
|
+
), oe(e, "face_not_centered_check_enabled", ""), oe(e, "sunglasses_detected_check_enabled", ""), oe(e, "mouth_open_check_enabled", ""), oe(e, "face_blurry_check_enabled", ""), oe(e, "dark_image_check_enabled", ""), oe(e, "eyes_closed_check_enabled", ""), oe(
|
|
519
519
|
e,
|
|
520
520
|
"payload_size",
|
|
521
521
|
/*livenessBlobSize*/
|
|
522
522
|
i[11]
|
|
523
523
|
);
|
|
524
524
|
},
|
|
525
|
-
m(t,
|
|
526
|
-
k(t, e,
|
|
525
|
+
m(t, o) {
|
|
526
|
+
k(t, e, o), i[50](e);
|
|
527
527
|
},
|
|
528
|
-
p(t,
|
|
529
|
-
|
|
530
|
-
33554432 &&
|
|
528
|
+
p(t, o) {
|
|
529
|
+
o[0] & /*$selectedVideoDeviceId*/
|
|
530
|
+
33554432 && oe(
|
|
531
531
|
e,
|
|
532
532
|
"device_id",
|
|
533
533
|
/*$selectedVideoDeviceId*/
|
|
534
534
|
t[25]
|
|
535
|
-
),
|
|
536
|
-
2048 &&
|
|
535
|
+
), o[0] & /*livenessBlobSize*/
|
|
536
|
+
2048 && oe(
|
|
537
537
|
e,
|
|
538
538
|
"payload_size",
|
|
539
539
|
/*livenessBlobSize*/
|
|
@@ -546,15 +546,15 @@ function Rn(i) {
|
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
548
|
function Ui(i) {
|
|
549
|
-
let e, t,
|
|
550
|
-
return e = new
|
|
549
|
+
let e, t, o, a, c, f;
|
|
550
|
+
return e = new hn({
|
|
551
551
|
props: {
|
|
552
552
|
isCountingDown: (
|
|
553
553
|
/*isCountingDown*/
|
|
554
554
|
i[17]
|
|
555
555
|
)
|
|
556
556
|
}
|
|
557
|
-
}),
|
|
557
|
+
}), o = new vn({
|
|
558
558
|
props: {
|
|
559
559
|
loading: (
|
|
560
560
|
/*isCountingDown*/
|
|
@@ -578,10 +578,10 @@ function Ui(i) {
|
|
|
578
578
|
}
|
|
579
579
|
}), {
|
|
580
580
|
c() {
|
|
581
|
-
|
|
581
|
+
pe(e.$$.fragment), t = N(), pe(o.$$.fragment), a = N(), pe(c.$$.fragment);
|
|
582
582
|
},
|
|
583
583
|
m(n, l) {
|
|
584
|
-
|
|
584
|
+
we(e, n, l), k(n, t, l), we(o, n, l), k(n, a, l), we(c, n, l), f = !0;
|
|
585
585
|
},
|
|
586
586
|
p(n, l) {
|
|
587
587
|
const u = {};
|
|
@@ -593,7 +593,7 @@ function Ui(i) {
|
|
|
593
593
|
131072 && (r.loading = /*isCountingDown*/
|
|
594
594
|
n[17]), l[0] & /*showWatermark*/
|
|
595
595
|
256 && (r.showWatermark = /*showWatermark*/
|
|
596
|
-
n[8]),
|
|
596
|
+
n[8]), o.$set(r);
|
|
597
597
|
const d = {};
|
|
598
598
|
l[0] & /*videoOverlay*/
|
|
599
599
|
512 && (d.overlayColor = /*videoOverlay*/
|
|
@@ -602,31 +602,31 @@ function Ui(i) {
|
|
|
602
602
|
n[10]), c.$set(d);
|
|
603
603
|
},
|
|
604
604
|
i(n) {
|
|
605
|
-
f || (Q(e.$$.fragment, n), Q(
|
|
605
|
+
f || (Q(e.$$.fragment, n), Q(o.$$.fragment, n), Q(c.$$.fragment, n), f = !0);
|
|
606
606
|
},
|
|
607
607
|
o(n) {
|
|
608
|
-
Y(e.$$.fragment, n), Y(
|
|
608
|
+
Y(e.$$.fragment, n), Y(o.$$.fragment, n), Y(c.$$.fragment, n), f = !1;
|
|
609
609
|
},
|
|
610
610
|
d(n) {
|
|
611
|
-
|
|
611
|
+
Ce(e, n), n && R(t), Ce(o, n), n && R(a), Ce(c, n);
|
|
612
612
|
}
|
|
613
613
|
};
|
|
614
614
|
}
|
|
615
615
|
function Vi(i) {
|
|
616
|
-
let e, t,
|
|
616
|
+
let e, t, o = (
|
|
617
617
|
/*$_*/
|
|
618
618
|
i[33]("faceCollector.finish") + ""
|
|
619
|
-
),
|
|
619
|
+
), a, c, f, n, l = (
|
|
620
620
|
/*$_*/
|
|
621
621
|
i[33]("faceCollector.retakePhoto") + ""
|
|
622
622
|
), u, r, d;
|
|
623
623
|
return {
|
|
624
624
|
c() {
|
|
625
|
-
e = w("div"), t = w("button"),
|
|
625
|
+
e = w("div"), t = w("button"), a = P(o), f = N(), n = w("button"), u = P(l), t.disabled = c = /*$justification*/
|
|
626
626
|
i[30].length === 0, h(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), h(n, "id", "bry-cc-retake-button"), h(n, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), h(e, "class", "ce-dui-btn-group flex");
|
|
627
627
|
},
|
|
628
628
|
m(g, _) {
|
|
629
|
-
k(g, e, _), b(e, t), b(t,
|
|
629
|
+
k(g, e, _), b(e, t), b(t, a), b(e, f), b(e, n), b(n, u), r || (d = [
|
|
630
630
|
re(
|
|
631
631
|
t,
|
|
632
632
|
"click",
|
|
@@ -643,8 +643,8 @@ function Vi(i) {
|
|
|
643
643
|
},
|
|
644
644
|
p(g, _) {
|
|
645
645
|
_[1] & /*$_*/
|
|
646
|
-
4 &&
|
|
647
|
-
g[33]("faceCollector.finish") + "") && B(
|
|
646
|
+
4 && o !== (o = /*$_*/
|
|
647
|
+
g[33]("faceCollector.finish") + "") && B(a, o), _[0] & /*$justification*/
|
|
648
648
|
1073741824 && c !== (c = /*$justification*/
|
|
649
649
|
g[30].length === 0) && (t.disabled = c), _[1] & /*$_*/
|
|
650
650
|
4 && l !== (l = /*$_*/
|
|
@@ -655,38 +655,38 @@ function Vi(i) {
|
|
|
655
655
|
}
|
|
656
656
|
};
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function An(i) {
|
|
659
659
|
let e, t;
|
|
660
|
-
return e = new
|
|
660
|
+
return e = new mn({ props: { handler: (
|
|
661
661
|
/*func*/
|
|
662
662
|
i[64]
|
|
663
663
|
) } }), {
|
|
664
664
|
c() {
|
|
665
|
-
|
|
665
|
+
pe(e.$$.fragment);
|
|
666
666
|
},
|
|
667
|
-
m(
|
|
668
|
-
|
|
667
|
+
m(o, a) {
|
|
668
|
+
we(e, o, a), t = !0;
|
|
669
669
|
},
|
|
670
670
|
p: X,
|
|
671
|
-
i(
|
|
672
|
-
t || (Q(e.$$.fragment,
|
|
671
|
+
i(o) {
|
|
672
|
+
t || (Q(e.$$.fragment, o), t = !0);
|
|
673
673
|
},
|
|
674
|
-
o(
|
|
675
|
-
Y(e.$$.fragment,
|
|
674
|
+
o(o) {
|
|
675
|
+
Y(e.$$.fragment, o), t = !1;
|
|
676
676
|
},
|
|
677
|
-
d(
|
|
678
|
-
|
|
677
|
+
d(o) {
|
|
678
|
+
Ce(e, o);
|
|
679
679
|
}
|
|
680
680
|
};
|
|
681
681
|
}
|
|
682
|
-
function
|
|
683
|
-
let e, t,
|
|
682
|
+
function Ln(i) {
|
|
683
|
+
let e, t, o, a, c, f, n, l, u;
|
|
684
684
|
const r = [
|
|
685
|
+
Bn,
|
|
686
|
+
Pn,
|
|
685
687
|
Nn,
|
|
686
|
-
Fn,
|
|
687
688
|
Sn,
|
|
688
|
-
|
|
689
|
-
Ln
|
|
689
|
+
Fn
|
|
690
690
|
], d = [];
|
|
691
691
|
function g(_, y) {
|
|
692
692
|
return (
|
|
@@ -705,9 +705,9 @@ function Dn(i) {
|
|
|
705
705
|
}
|
|
706
706
|
return f = g(i), n = d[f] = r[f](i), {
|
|
707
707
|
c() {
|
|
708
|
-
e = w("div"), t = w("img"), c = N(), n.c(), h(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), He(t.src,
|
|
708
|
+
e = w("div"), t = w("img"), c = N(), n.c(), h(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), He(t.src, o = /*$dataTypePrefix*/
|
|
709
709
|
i[35] + "," + /*$image*/
|
|
710
|
-
i[31]) || h(t, "src",
|
|
710
|
+
i[31]) || h(t, "src", o), t.hidden = a = !/*$captured*/
|
|
711
711
|
i[26] || !/*$showFaceWhileValidating*/
|
|
712
712
|
i[36] && /*$unconformitiesStore*/
|
|
713
713
|
i[34].isLoading, h(t, "alt", ""), h(e, "class", l = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
|
@@ -719,14 +719,14 @@ function Dn(i) {
|
|
|
719
719
|
},
|
|
720
720
|
p(_, y) {
|
|
721
721
|
(!u || y[1] & /*$dataTypePrefix, $image*/
|
|
722
|
-
17 && !He(t.src,
|
|
722
|
+
17 && !He(t.src, o = /*$dataTypePrefix*/
|
|
723
723
|
_[35] + "," + /*$image*/
|
|
724
|
-
_[31])) && h(t, "src",
|
|
724
|
+
_[31])) && h(t, "src", o), (!u || y[0] & /*$captured*/
|
|
725
725
|
67108864 | y[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
726
|
-
40 &&
|
|
726
|
+
40 && a !== (a = !/*$captured*/
|
|
727
727
|
_[26] || !/*$showFaceWhileValidating*/
|
|
728
728
|
_[36] && /*$unconformitiesStore*/
|
|
729
|
-
_[34].isLoading)) && (t.hidden =
|
|
729
|
+
_[34].isLoading)) && (t.hidden = a);
|
|
730
730
|
let p = f;
|
|
731
731
|
f = g(_), f === p ? d[f].p(_, y) : (ft(), Y(d[p], 1, 1, () => {
|
|
732
732
|
d[p] = null;
|
|
@@ -746,38 +746,38 @@ function Dn(i) {
|
|
|
746
746
|
}
|
|
747
747
|
};
|
|
748
748
|
}
|
|
749
|
-
function
|
|
750
|
-
let e, t,
|
|
749
|
+
function Fn(i) {
|
|
750
|
+
let e, t, o = (
|
|
751
751
|
/*$_*/
|
|
752
752
|
i[33]("faceCollector.captured") + ""
|
|
753
|
-
),
|
|
753
|
+
), a, c, f, n, l, u = (
|
|
754
754
|
/*$_*/
|
|
755
755
|
i[33]("faceCollector.retakePhoto") + ""
|
|
756
|
-
), r, d, g = ut(
|
|
756
|
+
), r, d, g = ut(un).faceStrategy !== fn.DISABLED, _, y, p, v = (
|
|
757
757
|
/*$unconformitiesStore*/
|
|
758
|
-
i[34].unconformities.length !== 0 &&
|
|
759
|
-
), C = g &&
|
|
758
|
+
i[34].unconformities.length !== 0 && zi(i)
|
|
759
|
+
), C = g && Wn();
|
|
760
760
|
return {
|
|
761
761
|
c() {
|
|
762
|
-
e = w("div"), t = w("h1"),
|
|
762
|
+
e = w("div"), t = w("h1"), a = P(o), c = N(), v && v.c(), f = N(), n = w("div"), l = w("button"), r = P(u), d = N(), C && C.c(), h(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), h(l, "id", "bry-cc-retake-button"), h(l, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), h(n, "class", "flex flex-row"), Fi(n, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
|
763
763
|
i[37]);
|
|
764
764
|
},
|
|
765
|
-
m(I,
|
|
766
|
-
k(I, e,
|
|
765
|
+
m(I, L) {
|
|
766
|
+
k(I, e, L), b(e, t), b(t, a), b(e, c), v && v.m(e, null), b(e, f), b(e, n), b(n, l), b(l, r), b(n, d), C && C.m(n, null), _ = !0, y || (p = re(
|
|
767
767
|
l,
|
|
768
768
|
"click",
|
|
769
769
|
/*click_handler_6*/
|
|
770
770
|
i[63]
|
|
771
771
|
), y = !0);
|
|
772
772
|
},
|
|
773
|
-
p(I,
|
|
774
|
-
(!_ ||
|
|
775
|
-
4) &&
|
|
776
|
-
I[33]("faceCollector.captured") + "") && B(
|
|
777
|
-
I[34].unconformities.length !== 0 ? v ? v.p(I,
|
|
773
|
+
p(I, L) {
|
|
774
|
+
(!_ || L[1] & /*$_*/
|
|
775
|
+
4) && o !== (o = /*$_*/
|
|
776
|
+
I[33]("faceCollector.captured") + "") && B(a, o), /*$unconformitiesStore*/
|
|
777
|
+
I[34].unconformities.length !== 0 ? v ? v.p(I, L) : (v = zi(I), v.c(), v.m(e, f)) : v && (v.d(1), v = null), (!_ || L[1] & /*$_*/
|
|
778
778
|
4) && u !== (u = /*$_*/
|
|
779
|
-
I[33]("faceCollector.retakePhoto") + "") && B(r, u), (!_ ||
|
|
780
|
-
64) &&
|
|
779
|
+
I[33]("faceCollector.retakePhoto") + "") && B(r, u), (!_ || L[1] & /*$exportButtonDisabled*/
|
|
780
|
+
64) && Fi(n, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
|
781
781
|
I[37]);
|
|
782
782
|
},
|
|
783
783
|
i(I) {
|
|
@@ -791,8 +791,8 @@ function Ln(i) {
|
|
|
791
791
|
}
|
|
792
792
|
};
|
|
793
793
|
}
|
|
794
|
-
function
|
|
795
|
-
let e, t,
|
|
794
|
+
function Sn(i) {
|
|
795
|
+
let e, t, o = (
|
|
796
796
|
/*evaluatePhoto*/
|
|
797
797
|
(i[2] ? (
|
|
798
798
|
/*$unconformitiesStore*/
|
|
@@ -807,12 +807,12 @@ function An(i) {
|
|
|
807
807
|
/*$_*/
|
|
808
808
|
i[33]("faceCollector.previewCapture")
|
|
809
809
|
)) + ""
|
|
810
|
-
),
|
|
810
|
+
), a, c, f, n, l, u, r = (
|
|
811
811
|
/*$unconformitiesStore*/
|
|
812
812
|
i[34].unconformities
|
|
813
813
|
), d = [];
|
|
814
814
|
for (let p = 0; p < r.length; p += 1)
|
|
815
|
-
d[p] =
|
|
815
|
+
d[p] = ji(Bi(i, r, p));
|
|
816
816
|
let g = (
|
|
817
817
|
/*evaluatePhoto*/
|
|
818
818
|
i[2] && /*$unconformitiesStore*/
|
|
@@ -827,13 +827,13 @@ function An(i) {
|
|
|
827
827
|
);
|
|
828
828
|
return {
|
|
829
829
|
c() {
|
|
830
|
-
e = w("div"), t = w("h1"),
|
|
830
|
+
e = w("div"), t = w("h1"), a = P(o), c = N(), f = w("div");
|
|
831
831
|
for (let p = 0; p < d.length; p += 1)
|
|
832
832
|
d[p].c();
|
|
833
833
|
n = N(), g && g.c(), l = N(), _ && _.c(), u = N(), y && y.c(), h(t, "class", "text-3xl font-bold transition-opacity"), h(f, "class", "flex flex-wrap"), h(e, "class", "flex flex-col justify-between");
|
|
834
834
|
},
|
|
835
835
|
m(p, v) {
|
|
836
|
-
k(p, e, v), b(e, t), b(t,
|
|
836
|
+
k(p, e, v), b(e, t), b(t, a), b(e, c), b(e, f);
|
|
837
837
|
for (let C = 0; C < d.length; C += 1)
|
|
838
838
|
d[C] && d[C].m(f, null);
|
|
839
839
|
b(f, n), g && g.m(f, null), b(e, l), _ && _.m(e, null), b(e, u), y && y.m(e, null);
|
|
@@ -841,7 +841,7 @@ function An(i) {
|
|
|
841
841
|
p(p, v) {
|
|
842
842
|
if (v[0] & /*evaluatePhoto*/
|
|
843
843
|
4 | v[1] & /*$unconformitiesStore, $_*/
|
|
844
|
-
12 &&
|
|
844
|
+
12 && o !== (o = /*evaluatePhoto*/
|
|
845
845
|
(p[2] ? (
|
|
846
846
|
/*$unconformitiesStore*/
|
|
847
847
|
p[34].unconformities.length === 0 ? (
|
|
@@ -854,14 +854,14 @@ function An(i) {
|
|
|
854
854
|
) : (
|
|
855
855
|
/*$_*/
|
|
856
856
|
p[33]("faceCollector.previewCapture")
|
|
857
|
-
)) + "") && B(
|
|
857
|
+
)) + "") && B(a, o), v[1] & /*$unconformitiesStore*/
|
|
858
858
|
8) {
|
|
859
859
|
r = /*$unconformitiesStore*/
|
|
860
860
|
p[34].unconformities;
|
|
861
861
|
let C;
|
|
862
862
|
for (C = 0; C < r.length; C += 1) {
|
|
863
863
|
const I = Bi(p, r, C);
|
|
864
|
-
d[C] ? d[C].p(I, v) : (d[C] =
|
|
864
|
+
d[C] ? d[C].p(I, v) : (d[C] = ji(I), d[C].c(), d[C].m(f, n));
|
|
865
865
|
}
|
|
866
866
|
for (; C < d.length; C += 1)
|
|
867
867
|
d[C].d(1);
|
|
@@ -881,8 +881,8 @@ function An(i) {
|
|
|
881
881
|
}
|
|
882
882
|
};
|
|
883
883
|
}
|
|
884
|
-
function
|
|
885
|
-
let e, t,
|
|
884
|
+
function Nn(i) {
|
|
885
|
+
let e, t, o, a, c = (
|
|
886
886
|
/*$_*/
|
|
887
887
|
i[33]("faceCollector.finish") + ""
|
|
888
888
|
), f, n, l, u = (
|
|
@@ -893,18 +893,18 @@ function Sn(i) {
|
|
|
893
893
|
return (
|
|
894
894
|
/*$requestResult*/
|
|
895
895
|
v[32] === K.LIVENESS_DETECTION_FAILURE || /*$requestResult*/
|
|
896
|
-
v[32] === K.UNKNOWN_LIVENESS_ERROR ?
|
|
896
|
+
v[32] === K.UNKNOWN_LIVENESS_ERROR ? Hn : (
|
|
897
897
|
/*$requestResult*/
|
|
898
|
-
v[32] === K.LOW_LIVENESS_SCORE ?
|
|
898
|
+
v[32] === K.LOW_LIVENESS_SCORE ? Kn : (
|
|
899
899
|
/*$requestResult*/
|
|
900
900
|
v[32] === K.TEMPLATE_EXTRACTION_ERROR || /*$requestResult*/
|
|
901
|
-
v[32] === K.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ?
|
|
901
|
+
v[32] === K.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ? jn : (
|
|
902
902
|
/*$requestResult*/
|
|
903
|
-
v[32] === K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ?
|
|
903
|
+
v[32] === K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ? zn : (
|
|
904
904
|
/*$requestResult*/
|
|
905
|
-
v[32] === K.LIVENESS_EVALUATION_ERROR ?
|
|
905
|
+
v[32] === K.LIVENESS_EVALUATION_ERROR ? Vn : (
|
|
906
906
|
/*$requestResult*/
|
|
907
|
-
v[32] === K.INSUFFICIENT_FACE_QUALITY ?
|
|
907
|
+
v[32] === K.INSUFFICIENT_FACE_QUALITY ? Un : Mn
|
|
908
908
|
)
|
|
909
909
|
)
|
|
910
910
|
)
|
|
@@ -915,12 +915,12 @@ function Sn(i) {
|
|
|
915
915
|
let y = _(i), p = y(i);
|
|
916
916
|
return {
|
|
917
917
|
c() {
|
|
918
|
-
e = w("div"), p.c(), t = N(),
|
|
918
|
+
e = w("div"), p.c(), t = N(), o = w("div"), a = w("button"), f = P(c), n = N(), l = w("button"), r = P(u), a.disabled = !0, h(a, "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(o, "class", "ce-dui-btn-group flex"), h(e, "class", "flex flex-col justify-between");
|
|
919
919
|
},
|
|
920
920
|
m(v, C) {
|
|
921
|
-
k(v, e, C), p.m(e, null), b(e, t), b(e,
|
|
921
|
+
k(v, e, C), p.m(e, null), b(e, t), b(e, o), b(o, a), b(a, f), b(o, n), b(o, l), b(l, r), d || (g = [
|
|
922
922
|
re(
|
|
923
|
-
|
|
923
|
+
a,
|
|
924
924
|
"click",
|
|
925
925
|
/*click_handler_2*/
|
|
926
926
|
i[57]
|
|
@@ -947,22 +947,22 @@ function Sn(i) {
|
|
|
947
947
|
}
|
|
948
948
|
};
|
|
949
949
|
}
|
|
950
|
-
function
|
|
951
|
-
let e, t,
|
|
950
|
+
function Pn(i) {
|
|
951
|
+
let e, t, o = (
|
|
952
952
|
/*$_*/
|
|
953
953
|
i[33]("faceCollector.validating") + ""
|
|
954
|
-
),
|
|
954
|
+
), a, c, f;
|
|
955
955
|
return {
|
|
956
956
|
c() {
|
|
957
|
-
e = w("div"), t = w("h1"),
|
|
957
|
+
e = w("div"), t = w("h1"), a = P(o), c = N(), 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]");
|
|
958
958
|
},
|
|
959
959
|
m(n, l) {
|
|
960
|
-
k(n, e, l), b(e, t), b(t,
|
|
960
|
+
k(n, e, l), b(e, t), b(t, a), b(e, c), b(e, f);
|
|
961
961
|
},
|
|
962
962
|
p(n, l) {
|
|
963
963
|
l[1] & /*$_*/
|
|
964
|
-
4 &&
|
|
965
|
-
n[33]("faceCollector.validating") + "") && B(
|
|
964
|
+
4 && o !== (o = /*$_*/
|
|
965
|
+
n[33]("faceCollector.validating") + "") && B(a, o);
|
|
966
966
|
},
|
|
967
967
|
i: X,
|
|
968
968
|
o: X,
|
|
@@ -971,14 +971,14 @@ function Fn(i) {
|
|
|
971
971
|
}
|
|
972
972
|
};
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function Bn(i) {
|
|
975
975
|
let e;
|
|
976
976
|
return {
|
|
977
977
|
c() {
|
|
978
978
|
e = w("div"), h(e, "class", "");
|
|
979
979
|
},
|
|
980
|
-
m(t,
|
|
981
|
-
k(t, e,
|
|
980
|
+
m(t, o) {
|
|
981
|
+
k(t, e, o);
|
|
982
982
|
},
|
|
983
983
|
p: X,
|
|
984
984
|
i: X,
|
|
@@ -988,17 +988,17 @@ function Nn(i) {
|
|
|
988
988
|
}
|
|
989
989
|
};
|
|
990
990
|
}
|
|
991
|
-
function
|
|
992
|
-
let e, t,
|
|
991
|
+
function zi(i) {
|
|
992
|
+
let e, t, o = (
|
|
993
993
|
/*$_*/
|
|
994
994
|
i[33]("faceCollector.justification") + ""
|
|
995
|
-
),
|
|
995
|
+
), a, c, f, n, l;
|
|
996
996
|
return {
|
|
997
997
|
c() {
|
|
998
|
-
e = w("label"), t = w("span"),
|
|
998
|
+
e = w("label"), t = w("span"), a = P(o), c = N(), 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");
|
|
999
999
|
},
|
|
1000
1000
|
m(u, r) {
|
|
1001
|
-
k(u, e, r), b(e, t), b(t,
|
|
1001
|
+
k(u, e, r), b(e, t), b(t, a), k(u, c, r), k(u, f, r), ht(
|
|
1002
1002
|
f,
|
|
1003
1003
|
/*$justification*/
|
|
1004
1004
|
i[30]
|
|
@@ -1011,8 +1011,8 @@ function ji(i) {
|
|
|
1011
1011
|
},
|
|
1012
1012
|
p(u, r) {
|
|
1013
1013
|
r[1] & /*$_*/
|
|
1014
|
-
4 &&
|
|
1015
|
-
u[33]("faceCollector.justification") + "") && B(
|
|
1014
|
+
4 && o !== (o = /*$_*/
|
|
1015
|
+
u[33]("faceCollector.justification") + "") && B(a, o), r[0] & /*$justification*/
|
|
1016
1016
|
1073741824 && ht(
|
|
1017
1017
|
f,
|
|
1018
1018
|
/*$justification*/
|
|
@@ -1024,47 +1024,47 @@ function ji(i) {
|
|
|
1024
1024
|
}
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
function
|
|
1027
|
+
function Wn(i) {
|
|
1028
1028
|
let e, t;
|
|
1029
|
-
return e = new
|
|
1029
|
+
return e = new dn({
|
|
1030
1030
|
props: { cssClass: "ce-dui-btn-block flex-shrink" }
|
|
1031
1031
|
}), {
|
|
1032
1032
|
c() {
|
|
1033
|
-
|
|
1033
|
+
pe(e.$$.fragment);
|
|
1034
1034
|
},
|
|
1035
|
-
m(
|
|
1036
|
-
|
|
1035
|
+
m(o, a) {
|
|
1036
|
+
we(e, o, a), t = !0;
|
|
1037
1037
|
},
|
|
1038
|
-
i(
|
|
1039
|
-
t || (Q(e.$$.fragment,
|
|
1038
|
+
i(o) {
|
|
1039
|
+
t || (Q(e.$$.fragment, o), t = !0);
|
|
1040
1040
|
},
|
|
1041
|
-
o(
|
|
1042
|
-
Y(e.$$.fragment,
|
|
1041
|
+
o(o) {
|
|
1042
|
+
Y(e.$$.fragment, o), t = !1;
|
|
1043
1043
|
},
|
|
1044
|
-
d(
|
|
1045
|
-
|
|
1044
|
+
d(o) {
|
|
1045
|
+
Ce(e, o);
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function ji(i) {
|
|
1050
1050
|
let e, t = (
|
|
1051
1051
|
/*unconformity*/
|
|
1052
1052
|
i[123] + ""
|
|
1053
|
-
),
|
|
1053
|
+
), o;
|
|
1054
1054
|
return {
|
|
1055
1055
|
c() {
|
|
1056
|
-
e = w("div"),
|
|
1056
|
+
e = w("div"), o = P(t), h(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
|
1057
1057
|
},
|
|
1058
|
-
m(
|
|
1059
|
-
k(
|
|
1058
|
+
m(a, c) {
|
|
1059
|
+
k(a, e, c), b(e, o);
|
|
1060
1060
|
},
|
|
1061
|
-
p(
|
|
1061
|
+
p(a, c) {
|
|
1062
1062
|
c[1] & /*$unconformitiesStore*/
|
|
1063
1063
|
8 && t !== (t = /*unconformity*/
|
|
1064
|
-
|
|
1064
|
+
a[123] + "") && B(o, t);
|
|
1065
1065
|
},
|
|
1066
|
-
d(
|
|
1067
|
-
|
|
1066
|
+
d(a) {
|
|
1067
|
+
a && R(e);
|
|
1068
1068
|
}
|
|
1069
1069
|
};
|
|
1070
1070
|
}
|
|
@@ -1072,26 +1072,26 @@ function Ki(i) {
|
|
|
1072
1072
|
let e, t = (
|
|
1073
1073
|
/*$_*/
|
|
1074
1074
|
i[33]("faceCollector.noNonconformity") + ""
|
|
1075
|
-
),
|
|
1075
|
+
), o;
|
|
1076
1076
|
return {
|
|
1077
1077
|
c() {
|
|
1078
|
-
e = w("div"),
|
|
1078
|
+
e = w("div"), o = P(t), h(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-info text-xl pb-[.25em] m-[.5em]");
|
|
1079
1079
|
},
|
|
1080
|
-
m(
|
|
1081
|
-
k(
|
|
1080
|
+
m(a, c) {
|
|
1081
|
+
k(a, e, c), b(e, o);
|
|
1082
1082
|
},
|
|
1083
|
-
p(
|
|
1083
|
+
p(a, c) {
|
|
1084
1084
|
c[1] & /*$_*/
|
|
1085
1085
|
4 && t !== (t = /*$_*/
|
|
1086
|
-
|
|
1086
|
+
a[33]("faceCollector.noNonconformity") + "") && B(o, t);
|
|
1087
1087
|
},
|
|
1088
|
-
d(
|
|
1089
|
-
|
|
1088
|
+
d(a) {
|
|
1089
|
+
a && R(e);
|
|
1090
1090
|
}
|
|
1091
1091
|
};
|
|
1092
1092
|
}
|
|
1093
1093
|
function Hi(i) {
|
|
1094
|
-
let e, t,
|
|
1094
|
+
let e, t, o, a = (
|
|
1095
1095
|
/*$_*/
|
|
1096
1096
|
i[33]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
|
1097
1097
|
), c, f, n, l, u, r, d, g, _ = (
|
|
@@ -1100,11 +1100,11 @@ function Hi(i) {
|
|
|
1100
1100
|
), y, p, v, C;
|
|
1101
1101
|
return {
|
|
1102
1102
|
c() {
|
|
1103
|
-
e = w("div"), t = w("label"),
|
|
1103
|
+
e = w("div"), t = w("label"), o = w("span"), c = P(a), f = N(), n = w("textarea"), u = N(), r = w("label"), d = w("span"), g = P("("), y = P(_), p = P(")"), h(o, "class", "ce-dui-label-text text-base"), h(t, "class", "ce-dui-label"), h(t, "for", "justification"), h(n, "contenteditable", ""), h(n, "id", "justification"), h(n, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), h(n, "placeholder", l = /*$_*/
|
|
1104
1104
|
i[33]("faceCollector.yourJustification")), h(d, "class", "ce-dui-label-text-alt text-base"), h(r, "class", "ce-dui-label"), h(r, "for", "justification"), h(e, "class", "ce-dui-form-control");
|
|
1105
1105
|
},
|
|
1106
|
-
m(I,
|
|
1107
|
-
k(I, e,
|
|
1106
|
+
m(I, L) {
|
|
1107
|
+
k(I, e, L), b(e, t), b(t, o), b(o, c), b(e, f), b(e, n), ht(
|
|
1108
1108
|
n,
|
|
1109
1109
|
/*$justification*/
|
|
1110
1110
|
i[30]
|
|
@@ -1115,17 +1115,17 @@ function Hi(i) {
|
|
|
1115
1115
|
i[59]
|
|
1116
1116
|
), v = !0);
|
|
1117
1117
|
},
|
|
1118
|
-
p(I,
|
|
1119
|
-
|
|
1120
|
-
4 &&
|
|
1121
|
-
I[33]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && B(c,
|
|
1118
|
+
p(I, L) {
|
|
1119
|
+
L[1] & /*$_*/
|
|
1120
|
+
4 && a !== (a = /*$_*/
|
|
1121
|
+
I[33]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && B(c, a), L[1] & /*$_*/
|
|
1122
1122
|
4 && l !== (l = /*$_*/
|
|
1123
|
-
I[33]("faceCollector.yourJustification")) && h(n, "placeholder", l),
|
|
1123
|
+
I[33]("faceCollector.yourJustification")) && h(n, "placeholder", l), L[0] & /*$justification*/
|
|
1124
1124
|
1073741824 && ht(
|
|
1125
1125
|
n,
|
|
1126
1126
|
/*$justification*/
|
|
1127
1127
|
I[30]
|
|
1128
|
-
),
|
|
1128
|
+
), L[1] & /*$_*/
|
|
1129
1129
|
4 && _ !== (_ = /*$_*/
|
|
1130
1130
|
I[33]("faceCollector.thisInformationIsRequired") + "") && B(y, _);
|
|
1131
1131
|
},
|
|
@@ -1135,23 +1135,23 @@ function Hi(i) {
|
|
|
1135
1135
|
};
|
|
1136
1136
|
}
|
|
1137
1137
|
function qi(i) {
|
|
1138
|
-
let e, t,
|
|
1138
|
+
let e, t, o = (
|
|
1139
1139
|
/*$_*/
|
|
1140
1140
|
i[33]("faceCollector.finish") + ""
|
|
1141
|
-
),
|
|
1141
|
+
), a, c, f, n, l = (
|
|
1142
1142
|
/*$_*/
|
|
1143
1143
|
i[33]("faceCollector.retakePhoto") + ""
|
|
1144
1144
|
), u, r, d;
|
|
1145
1145
|
return {
|
|
1146
1146
|
c() {
|
|
1147
|
-
e = w("div"), t = w("button"),
|
|
1147
|
+
e = w("div"), t = w("button"), a = P(o), f = N(), n = w("button"), u = P(l), t.disabled = c = /*evaluatePhoto*/
|
|
1148
1148
|
i[2] && /*showJustificationField*/
|
|
1149
1149
|
i[7] && /*$justification*/
|
|
1150
1150
|
i[30].length === 0 && /*$unconformitiesStore*/
|
|
1151
1151
|
i[34].unconformities.length !== 0, h(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink text-base"), h(n, "id", "bry-cc-retake-button"), h(n, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink text-base"), h(e, "class", "ce-dui-btn-group flex");
|
|
1152
1152
|
},
|
|
1153
1153
|
m(g, _) {
|
|
1154
|
-
k(g, e, _), b(e, t), b(t,
|
|
1154
|
+
k(g, e, _), b(e, t), b(t, a), b(e, f), b(e, n), b(n, u), r || (d = [
|
|
1155
1155
|
re(
|
|
1156
1156
|
t,
|
|
1157
1157
|
"click",
|
|
@@ -1168,8 +1168,8 @@ function qi(i) {
|
|
|
1168
1168
|
},
|
|
1169
1169
|
p(g, _) {
|
|
1170
1170
|
_[1] & /*$_*/
|
|
1171
|
-
4 &&
|
|
1172
|
-
g[33]("faceCollector.finish") + "") && B(
|
|
1171
|
+
4 && o !== (o = /*$_*/
|
|
1172
|
+
g[33]("faceCollector.finish") + "") && B(a, o), _[0] & /*evaluatePhoto, showJustificationField, $justification*/
|
|
1173
1173
|
1073741956 | _[1] & /*$unconformitiesStore*/
|
|
1174
1174
|
8 && c !== (c = /*evaluatePhoto*/
|
|
1175
1175
|
g[2] && /*showJustificationField*/
|
|
@@ -1184,30 +1184,30 @@ function qi(i) {
|
|
|
1184
1184
|
}
|
|
1185
1185
|
};
|
|
1186
1186
|
}
|
|
1187
|
-
function
|
|
1187
|
+
function Mn(i) {
|
|
1188
1188
|
let e, t = (
|
|
1189
1189
|
/*$_*/
|
|
1190
1190
|
i[33]("faceCollector.everythingOk") + ""
|
|
1191
|
-
),
|
|
1191
|
+
), o;
|
|
1192
1192
|
return {
|
|
1193
1193
|
c() {
|
|
1194
|
-
e = w("h1"),
|
|
1194
|
+
e = w("h1"), o = P(t), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
|
|
1195
1195
|
},
|
|
1196
|
-
m(
|
|
1197
|
-
k(
|
|
1196
|
+
m(a, c) {
|
|
1197
|
+
k(a, e, c), b(e, o);
|
|
1198
1198
|
},
|
|
1199
|
-
p(
|
|
1199
|
+
p(a, c) {
|
|
1200
1200
|
c[1] & /*$_*/
|
|
1201
1201
|
4 && t !== (t = /*$_*/
|
|
1202
|
-
|
|
1202
|
+
a[33]("faceCollector.everythingOk") + "") && B(o, t);
|
|
1203
1203
|
},
|
|
1204
|
-
d(
|
|
1205
|
-
|
|
1204
|
+
d(a) {
|
|
1205
|
+
a && R(e);
|
|
1206
1206
|
}
|
|
1207
1207
|
};
|
|
1208
1208
|
}
|
|
1209
|
-
function
|
|
1210
|
-
let e, t,
|
|
1209
|
+
function Un(i) {
|
|
1210
|
+
let e, t, o, a, c = (
|
|
1211
1211
|
/*$_*/
|
|
1212
1212
|
i[33]("liveness.error.faceQualityInsufficient") + ""
|
|
1213
1213
|
), f, n = (
|
|
@@ -1226,13 +1226,13 @@ function Wn(i) {
|
|
|
1226
1226
|
e = w("div");
|
|
1227
1227
|
for (let r = 0; r < l.length; r += 1)
|
|
1228
1228
|
l[r].c();
|
|
1229
|
-
t = N(), u && u.c(),
|
|
1229
|
+
t = N(), u && u.c(), o = N(), a = w("h1"), f = P(c), h(e, "class", "flex flex-wrap"), h(a, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1230
1230
|
},
|
|
1231
1231
|
m(r, d) {
|
|
1232
1232
|
k(r, e, d);
|
|
1233
1233
|
for (let g = 0; g < l.length; g += 1)
|
|
1234
1234
|
l[g] && l[g].m(e, null);
|
|
1235
|
-
b(e, t), u && u.m(e, null), k(r,
|
|
1235
|
+
b(e, t), u && u.m(e, null), k(r, o, d), k(r, a, d), b(a, f);
|
|
1236
1236
|
},
|
|
1237
1237
|
p(r, d) {
|
|
1238
1238
|
if (d[1] & /*$unconformitiesStore*/
|
|
@@ -1255,95 +1255,95 @@ function Wn(i) {
|
|
|
1255
1255
|
r[33]("liveness.error.faceQualityInsufficient") + "") && B(f, c);
|
|
1256
1256
|
},
|
|
1257
1257
|
d(r) {
|
|
1258
|
-
r && R(e), Zi(l, r), u && u.d(), r && R(
|
|
1258
|
+
r && R(e), Zi(l, r), u && u.d(), r && R(o), r && R(a);
|
|
1259
1259
|
}
|
|
1260
1260
|
};
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1262
|
+
function Vn(i) {
|
|
1263
1263
|
let e, t = (
|
|
1264
1264
|
/*$_*/
|
|
1265
1265
|
i[33]("liveness.error.evaluationError") + ""
|
|
1266
|
-
),
|
|
1266
|
+
), o;
|
|
1267
1267
|
return {
|
|
1268
1268
|
c() {
|
|
1269
|
-
e = w("h1"),
|
|
1269
|
+
e = w("h1"), o = P(t), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1270
1270
|
},
|
|
1271
|
-
m(
|
|
1272
|
-
k(
|
|
1271
|
+
m(a, c) {
|
|
1272
|
+
k(a, e, c), b(e, o);
|
|
1273
1273
|
},
|
|
1274
|
-
p(
|
|
1274
|
+
p(a, c) {
|
|
1275
1275
|
c[1] & /*$_*/
|
|
1276
1276
|
4 && t !== (t = /*$_*/
|
|
1277
|
-
|
|
1277
|
+
a[33]("liveness.error.evaluationError") + "") && B(o, t);
|
|
1278
1278
|
},
|
|
1279
|
-
d(
|
|
1280
|
-
|
|
1279
|
+
d(a) {
|
|
1280
|
+
a && R(e);
|
|
1281
1281
|
}
|
|
1282
1282
|
};
|
|
1283
1283
|
}
|
|
1284
|
-
function
|
|
1284
|
+
function zn(i) {
|
|
1285
1285
|
let e, t = (
|
|
1286
1286
|
/*$_*/
|
|
1287
1287
|
i[33]("faceCollector.unableToCompleteRequest") + ""
|
|
1288
|
-
),
|
|
1288
|
+
), o;
|
|
1289
1289
|
return {
|
|
1290
1290
|
c() {
|
|
1291
|
-
e = w("h1"),
|
|
1291
|
+
e = w("h1"), o = P(t), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1292
1292
|
},
|
|
1293
|
-
m(
|
|
1294
|
-
k(
|
|
1293
|
+
m(a, c) {
|
|
1294
|
+
k(a, e, c), b(e, o);
|
|
1295
1295
|
},
|
|
1296
|
-
p(
|
|
1296
|
+
p(a, c) {
|
|
1297
1297
|
c[1] & /*$_*/
|
|
1298
1298
|
4 && t !== (t = /*$_*/
|
|
1299
|
-
|
|
1299
|
+
a[33]("faceCollector.unableToCompleteRequest") + "") && B(o, t);
|
|
1300
1300
|
},
|
|
1301
|
-
d(
|
|
1302
|
-
|
|
1301
|
+
d(a) {
|
|
1302
|
+
a && R(e);
|
|
1303
1303
|
}
|
|
1304
1304
|
};
|
|
1305
1305
|
}
|
|
1306
|
-
function
|
|
1306
|
+
function jn(i) {
|
|
1307
1307
|
let e, t = (
|
|
1308
1308
|
/*$_*/
|
|
1309
1309
|
i[33]("faceCollector.lowQualityCapture") + ""
|
|
1310
|
-
),
|
|
1310
|
+
), o;
|
|
1311
1311
|
return {
|
|
1312
1312
|
c() {
|
|
1313
|
-
e = w("h1"),
|
|
1313
|
+
e = w("h1"), o = P(t), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1314
1314
|
},
|
|
1315
|
-
m(
|
|
1316
|
-
k(
|
|
1315
|
+
m(a, c) {
|
|
1316
|
+
k(a, e, c), b(e, o);
|
|
1317
1317
|
},
|
|
1318
|
-
p(
|
|
1318
|
+
p(a, c) {
|
|
1319
1319
|
c[1] & /*$_*/
|
|
1320
1320
|
4 && t !== (t = /*$_*/
|
|
1321
|
-
|
|
1321
|
+
a[33]("faceCollector.lowQualityCapture") + "") && B(o, t);
|
|
1322
1322
|
},
|
|
1323
|
-
d(
|
|
1324
|
-
|
|
1323
|
+
d(a) {
|
|
1324
|
+
a && R(e);
|
|
1325
1325
|
}
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Kn(i) {
|
|
1329
1329
|
let e, t = (
|
|
1330
1330
|
/*$_*/
|
|
1331
1331
|
i[33]("liveness.error.error") + ""
|
|
1332
|
-
),
|
|
1332
|
+
), o, a, c = (
|
|
1333
1333
|
/*$_*/
|
|
1334
1334
|
i[33]("faceCollector.unaliveCapture") + ""
|
|
1335
1335
|
), f;
|
|
1336
1336
|
return {
|
|
1337
1337
|
c() {
|
|
1338
|
-
e = w("h1"),
|
|
1338
|
+
e = w("h1"), o = P(t), a = P(": "), f = P(c), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1339
1339
|
},
|
|
1340
1340
|
m(n, l) {
|
|
1341
|
-
k(n, e, l), b(e,
|
|
1341
|
+
k(n, e, l), b(e, o), b(e, a), b(e, f);
|
|
1342
1342
|
},
|
|
1343
1343
|
p(n, l) {
|
|
1344
1344
|
l[1] & /*$_*/
|
|
1345
1345
|
4 && t !== (t = /*$_*/
|
|
1346
|
-
n[33]("liveness.error.error") + "") && B(
|
|
1346
|
+
n[33]("liveness.error.error") + "") && B(o, t), l[1] & /*$_*/
|
|
1347
1347
|
4 && c !== (c = /*$_*/
|
|
1348
1348
|
n[33]("faceCollector.unaliveCapture") + "") && B(f, c);
|
|
1349
1349
|
},
|
|
@@ -1352,11 +1352,11 @@ function jn(i) {
|
|
|
1352
1352
|
}
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
|
-
function
|
|
1355
|
+
function Hn(i) {
|
|
1356
1356
|
let e, t = (
|
|
1357
1357
|
/*$_*/
|
|
1358
1358
|
i[33]("liveness.error.error") + ""
|
|
1359
|
-
),
|
|
1359
|
+
), o, a, c = (
|
|
1360
1360
|
/*$_*/
|
|
1361
1361
|
i[33](
|
|
1362
1362
|
/*livenessError*/
|
|
@@ -1365,15 +1365,15 @@ function zn(i) {
|
|
|
1365
1365
|
), f;
|
|
1366
1366
|
return {
|
|
1367
1367
|
c() {
|
|
1368
|
-
e = w("h1"),
|
|
1368
|
+
e = w("h1"), o = P(t), a = P(": "), f = P(c), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1369
1369
|
},
|
|
1370
1370
|
m(n, l) {
|
|
1371
|
-
k(n, e, l), b(e,
|
|
1371
|
+
k(n, e, l), b(e, o), b(e, a), b(e, f);
|
|
1372
1372
|
},
|
|
1373
1373
|
p(n, l) {
|
|
1374
1374
|
l[1] & /*$_*/
|
|
1375
1375
|
4 && t !== (t = /*$_*/
|
|
1376
|
-
n[33]("liveness.error.error") + "") && B(
|
|
1376
|
+
n[33]("liveness.error.error") + "") && B(o, t), l[0] & /*livenessError*/
|
|
1377
1377
|
4194304 | l[1] & /*$_*/
|
|
1378
1378
|
4 && c !== (c = /*$_*/
|
|
1379
1379
|
n[33](
|
|
@@ -1390,21 +1390,21 @@ function Ji(i) {
|
|
|
1390
1390
|
let e, t = (
|
|
1391
1391
|
/*unconformity*/
|
|
1392
1392
|
i[123] + ""
|
|
1393
|
-
),
|
|
1393
|
+
), o;
|
|
1394
1394
|
return {
|
|
1395
1395
|
c() {
|
|
1396
|
-
e = w("div"),
|
|
1396
|
+
e = w("div"), o = P(t), h(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
|
1397
1397
|
},
|
|
1398
|
-
m(
|
|
1399
|
-
k(
|
|
1398
|
+
m(a, c) {
|
|
1399
|
+
k(a, e, c), b(e, o);
|
|
1400
1400
|
},
|
|
1401
|
-
p(
|
|
1401
|
+
p(a, c) {
|
|
1402
1402
|
c[1] & /*$unconformitiesStore*/
|
|
1403
1403
|
8 && t !== (t = /*unconformity*/
|
|
1404
|
-
|
|
1404
|
+
a[123] + "") && B(o, t);
|
|
1405
1405
|
},
|
|
1406
|
-
d(
|
|
1407
|
-
|
|
1406
|
+
d(a) {
|
|
1407
|
+
a && R(e);
|
|
1408
1408
|
}
|
|
1409
1409
|
};
|
|
1410
1410
|
}
|
|
@@ -1412,30 +1412,30 @@ function Qi(i) {
|
|
|
1412
1412
|
let e, t = (
|
|
1413
1413
|
/*$_*/
|
|
1414
1414
|
i[33]("faceCollector.noNonconformity") + ""
|
|
1415
|
-
),
|
|
1415
|
+
), o;
|
|
1416
1416
|
return {
|
|
1417
1417
|
c() {
|
|
1418
|
-
e = w("div"),
|
|
1418
|
+
e = w("div"), o = P(t), h(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-info text-xl pb-[.25em] m-[.5em]");
|
|
1419
1419
|
},
|
|
1420
|
-
m(
|
|
1421
|
-
k(
|
|
1420
|
+
m(a, c) {
|
|
1421
|
+
k(a, e, c), b(e, o);
|
|
1422
1422
|
},
|
|
1423
|
-
p(
|
|
1423
|
+
p(a, c) {
|
|
1424
1424
|
c[1] & /*$_*/
|
|
1425
1425
|
4 && t !== (t = /*$_*/
|
|
1426
|
-
|
|
1426
|
+
a[33]("faceCollector.noNonconformity") + "") && B(o, t);
|
|
1427
1427
|
},
|
|
1428
|
-
d(
|
|
1429
|
-
|
|
1428
|
+
d(a) {
|
|
1429
|
+
a && R(e);
|
|
1430
1430
|
}
|
|
1431
1431
|
};
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1434
|
-
let e, t,
|
|
1433
|
+
function qn(i) {
|
|
1434
|
+
let e, t, o, a, c, f, n, l, u, r, d = (
|
|
1435
1435
|
/*$videoStore*/
|
|
1436
1436
|
i[27] && Mi(i)
|
|
1437
1437
|
);
|
|
1438
|
-
|
|
1438
|
+
a = new $i({
|
|
1439
1439
|
props: {
|
|
1440
1440
|
waitingIdrndCaptureEvent: (
|
|
1441
1441
|
/*waitingIdrndCaptureEvent*/
|
|
@@ -1451,7 +1451,7 @@ function Kn(i) {
|
|
|
1451
1451
|
/*$captured*/
|
|
1452
1452
|
i[26] && Vi(i)
|
|
1453
1453
|
);
|
|
1454
|
-
const _ = [
|
|
1454
|
+
const _ = [Ln, An], y = [];
|
|
1455
1455
|
function p(v, C) {
|
|
1456
1456
|
return (!/*idrndClosed*/
|
|
1457
1457
|
v[20] || /*$captured*/
|
|
@@ -1463,15 +1463,15 @@ function Kn(i) {
|
|
|
1463
1463
|
}
|
|
1464
1464
|
return ~(n = p(i)) && (l = y[n] = _[n](i)), {
|
|
1465
1465
|
c() {
|
|
1466
|
-
e = w("div"), t = w("div"), d && d.c(),
|
|
1466
|
+
e = w("div"), t = w("div"), d && d.c(), o = N(), pe(a.$$.fragment), c = N(), g && g.c(), f = N(), l && l.c(), u = Xi(), this.c = X, h(t, "class", "relative mx-auto"), h(e, "class", "flex flex-col justify-between");
|
|
1467
1467
|
},
|
|
1468
1468
|
m(v, C) {
|
|
1469
|
-
k(v, e, C), b(e, t), d && d.m(t, null), b(t,
|
|
1469
|
+
k(v, e, C), b(e, t), d && d.m(t, null), b(t, o), we(a, t, null), b(t, c), g && g.m(t, null), i[56](e), k(v, f, C), ~n && y[n].m(v, C), k(v, u, C), r = !0;
|
|
1470
1470
|
},
|
|
1471
1471
|
p(v, C) {
|
|
1472
1472
|
/*$videoStore*/
|
|
1473
1473
|
v[27] ? d ? (d.p(v, C), C[0] & /*$videoStore*/
|
|
1474
|
-
134217728 && Q(d, 1)) : (d = Mi(v), d.c(), Q(d, 1), d.m(t,
|
|
1474
|
+
134217728 && Q(d, 1)) : (d = Mi(v), d.c(), Q(d, 1), d.m(t, o)) : d && (ft(), Y(d, 1, 1, () => {
|
|
1475
1475
|
d = null;
|
|
1476
1476
|
}), dt());
|
|
1477
1477
|
const I = {};
|
|
@@ -1479,55 +1479,57 @@ function Kn(i) {
|
|
|
1479
1479
|
2097152 && (I.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
|
1480
1480
|
v[21]), C[0] & /*idrndLoading*/
|
|
1481
1481
|
524288 && (I.idrndLoading = /*idrndLoading*/
|
|
1482
|
-
v[19]),
|
|
1482
|
+
v[19]), a.$set(I), /*$captured*/
|
|
1483
1483
|
v[26] ? g ? g.p(v, C) : (g = Vi(v), g.c(), g.m(t, null)) : g && (g.d(1), g = null);
|
|
1484
|
-
let
|
|
1485
|
-
n = p(v), n ===
|
|
1486
|
-
y[
|
|
1484
|
+
let L = n;
|
|
1485
|
+
n = p(v), n === L ? ~n && y[n].p(v, C) : (l && (ft(), Y(y[L], 1, 1, () => {
|
|
1486
|
+
y[L] = null;
|
|
1487
1487
|
}), dt()), ~n ? (l = y[n], l ? l.p(v, C) : (l = y[n] = _[n](v), l.c()), Q(l, 1), l.m(u.parentNode, u)) : l = null);
|
|
1488
1488
|
},
|
|
1489
1489
|
i(v) {
|
|
1490
|
-
r || (Q(d), Q(
|
|
1490
|
+
r || (Q(d), Q(a.$$.fragment, v), Q(l), r = !0);
|
|
1491
1491
|
},
|
|
1492
1492
|
o(v) {
|
|
1493
|
-
Y(d), Y(
|
|
1493
|
+
Y(d), Y(a.$$.fragment, v), Y(l), r = !1;
|
|
1494
1494
|
},
|
|
1495
1495
|
d(v) {
|
|
1496
|
-
v && R(e), d && d.d(),
|
|
1496
|
+
v && R(e), d && d.d(), Ce(a), g && g.d(), i[56](null), v && R(f), ~n && y[n].d(v), v && R(u);
|
|
1497
1497
|
}
|
|
1498
1498
|
};
|
|
1499
1499
|
}
|
|
1500
|
-
let
|
|
1501
|
-
function
|
|
1502
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_18843221_3.3.2-
|
|
1500
|
+
let Jn = 0, Qn = 3e3;
|
|
1501
|
+
function Xn() {
|
|
1502
|
+
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_18843221_3.3.2-RC02.js") : import("./index-idlf-detector_a5efb00c_3.3.2-RC02.js");
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1505
|
-
let
|
|
1506
|
-
O(i,
|
|
1507
|
-
let
|
|
1508
|
-
const
|
|
1509
|
-
O(i,
|
|
1510
|
-
const
|
|
1511
|
-
O(i,
|
|
1512
|
-
let { widgetInstance: J } = e,
|
|
1513
|
-
const
|
|
1504
|
+
function Gn(i, e, t) {
|
|
1505
|
+
let o, a, c, f, n, l, u, r, d, g, _, y, p, v, C, I, L, G, ae, H, D, W, S, A, Ie, te, ce, De, Ee, Pe, _t, ei, bt, gt, vt, ti, ii;
|
|
1506
|
+
O(i, Pt, (s) => t(76, o = s)), O(i, Bt, (s) => t(77, a = s)), O(i, Ze, (s) => t(79, f = s)), O(i, q, (s) => t(23, n = s)), O(i, Ne, (s) => t(24, l = s)), O(i, Ls, (s) => t(80, u = s)), O(i, xe, (s) => t(81, r = s)), O(i, ve, (s) => t(25, d = s)), O(i, Fs, (s) => t(82, g = s)), O(i, Fe, (s) => t(26, _ = s)), O(i, Wt, (s) => t(83, y = s)), O(i, ct, (s) => t(27, p = s)), O(i, Yi, (s) => t(28, v = s)), O(i, Ti, (s) => t(84, C = s)), O(i, Ss, (s) => t(85, I = s)), O(i, je, (s) => t(86, L = s)), O(i, ke, (s) => t(87, G = s)), O(i, Ns, (s) => t(88, ae = s)), O(i, Ps, (s) => t(89, H = s)), O(i, Mt, (s) => t(29, D = s)), O(i, Ut, (s) => t(30, W = s)), O(i, de, (s) => t(31, S = s)), O(i, se, (s) => t(32, A = s)), O(i, Gi, (s) => t(33, Ie = s)), O(i, Oe, (s) => t(34, te = s)), O(i, ki, (s) => t(90, De = s)), O(i, Vt, (s) => t(91, Ee = s)), O(i, $e, (s) => t(92, Pe = s)), O(i, zt, (s) => t(93, _t = s)), O(i, Bs, (s) => t(94, ei = s)), O(i, et, (s) => t(95, bt = s)), O(i, Oi, (s) => t(96, gt = s)), O(i, Ri, (s) => t(97, vt = s)), O(i, Ws, (s) => t(36, ti = s)), O(i, Ms, (s) => t(37, ii = s));
|
|
1507
|
+
let F, ne, me, pt, si = !1, Be = !1, wt = !1, _e = !1, Ct = (/* @__PURE__ */ new Date()).getTime(), { enableMinutiae: Et } = e, { videoDimensions: yt } = e, { noTabs: Tt } = e, { weightsPath: kt } = e, { evaluatePhoto: be } = e, { showCaptureButton: Ot } = e, { showUnconformities: ni } = e, { showConfigButton: oi } = e, { showAutoCaptureButton: Rt } = e, { showCameraButton: ai } = e, { showJustificationField: li } = e, { minEyeToEyeDist: We } = e, { showWatermark: ri } = e, { videoOverlay: ci } = e, { videoOverlayTransparency: ui } = e, { faceDetectionSensitivity: It } = e, { hidden: qe } = e, { livenessBlobSize: fi } = e;
|
|
1508
|
+
const Je = Qt(!1);
|
|
1509
|
+
O(i, Je, (s) => t(78, c = s));
|
|
1510
|
+
const Ae = Qt("data:image/png;base64");
|
|
1511
|
+
O(i, Ae, (s) => t(35, ce = s));
|
|
1512
|
+
let { widgetInstance: J } = e, di = new wn(), Me = !1, Dt = !1, Qe = !0, le = !0, Ue = !1, hi = 0, ie = "", At = 0, Xe = !0, mi = 0;
|
|
1513
|
+
const Ge = Us.mixin({
|
|
1514
1514
|
toast: !0,
|
|
1515
1515
|
position: "bottom-left",
|
|
1516
1516
|
timer: 13e3,
|
|
1517
1517
|
timerProgressBar: !0
|
|
1518
1518
|
});
|
|
1519
1519
|
Vs(async () => {
|
|
1520
|
-
if (
|
|
1520
|
+
if (Ii("Mounting Face Collector!"), m($e, Pe = !0, Pe), m(Ne, l = !1, l), _i(), Lt(), zs(() => {
|
|
1521
|
+
t(18, _e = !0);
|
|
1522
|
+
}), j() ? (Xn(), es(), di.startDetection()) : await ye(), De)
|
|
1521
1523
|
try {
|
|
1522
|
-
await js(
|
|
1523
|
-
} catch {
|
|
1524
|
-
m(
|
|
1524
|
+
await js(kt), si = !0, pt = await Ks();
|
|
1525
|
+
} catch (s) {
|
|
1526
|
+
ee("Failed to initialize Face API:", s), m(ki, De = !1, De), t(0, Ot = !0), t(18, _e = !0);
|
|
1525
1527
|
}
|
|
1526
1528
|
he() || ts();
|
|
1527
1529
|
});
|
|
1528
1530
|
async function Lt() {
|
|
1529
|
-
const [s, T] = (
|
|
1530
|
-
!s || !T || (he() ? (await
|
|
1531
|
+
const [s, T] = (yt ?? "")?.replaceAll(" ", "")?.split("x")?.map((E) => E ? parseInt(E) : void 0);
|
|
1532
|
+
!s || !T || (he() ? (await Hs(), m(
|
|
1531
1533
|
ct,
|
|
1532
1534
|
p = {
|
|
1533
1535
|
videoWidth: window.innerWidth,
|
|
@@ -1536,293 +1538,291 @@ function Qn(i, e, t) {
|
|
|
1536
1538
|
p
|
|
1537
1539
|
)) : m(ct, p = { videoWidth: s, videoHeight: T }, p));
|
|
1538
1540
|
}
|
|
1539
|
-
function
|
|
1540
|
-
m(
|
|
1541
|
-
const s = ut(
|
|
1542
|
-
s.closedMouth = !1, s.isPersonCloseEnough = !1, s.isPersonTooclose = !0, s.isPersonInFrame = !1,
|
|
1541
|
+
function _i() {
|
|
1542
|
+
m(Ze, f = !1, f), m(Fe, _ = !1, _), m(xe, r = jt.FRONT_CAMERA, r), Rt && m(Ti, C = !1, C), m(Mt, D = !1, D), m(se, A = K.OK, A), m(je, L = "", L), m(Oe, te.unconformities = [], te);
|
|
1543
|
+
const s = ut(Kt);
|
|
1544
|
+
s.closedMouth = !1, s.isPersonCloseEnough = !1, s.isPersonTooclose = !0, s.isPersonInFrame = !1, Kt.set(s), m(ke, G = "", G), m(Vt, Ee = !0, Ee);
|
|
1543
1545
|
}
|
|
1544
1546
|
function es() {
|
|
1545
1547
|
J.addEventListener("open", (s) => {
|
|
1546
1548
|
const T = s.detail[0].video;
|
|
1547
1549
|
m(
|
|
1548
|
-
|
|
1550
|
+
Ri,
|
|
1549
1551
|
vt = {
|
|
1550
1552
|
width: T.videoWidth,
|
|
1551
1553
|
height: T.videoHeight
|
|
1552
1554
|
},
|
|
1553
1555
|
vt
|
|
1554
|
-
), t(14,
|
|
1556
|
+
), t(14, F.srcObject = T.srcObject, F), m(Pt, o = F.srcObject, o), t(19, Qe = !1), qe || qs(J), m(Ne, l = !0, l);
|
|
1555
1557
|
function E() {
|
|
1556
|
-
le ||
|
|
1558
|
+
le || at(F, E, !0);
|
|
1557
1559
|
}
|
|
1558
1560
|
E();
|
|
1559
1561
|
}), J.addEventListener("error", (s) => {
|
|
1560
|
-
|
|
1562
|
+
ee(s), s.detail[0].message.toLowerCase().includes("device in use") ? m(q, n = U.CAMERA_IN_USE_ERROR, n) : s.detail[0].message.toLowerCase().includes("permission") ? m(q, n = U.CAMERA_DENIED_ERROR, n) : s.detail[0].message.toLowerCase().includes("not found") && !he() ? m(q, n = U.DEVICE_NOT_FOUND_ERROR, n) : m(q, n = U.CAMERA_DENIED_ERROR, n), t(19, Qe = !1);
|
|
1561
1563
|
}), J.addEventListener("faceDetection", (s) => {
|
|
1562
|
-
s.detail[0].errors.length > 0 &&
|
|
1564
|
+
s.detail[0].errors.length > 0 && Di(s.detail[0].errors);
|
|
1563
1565
|
}), J.addEventListener("detection", (s) => {
|
|
1564
|
-
s.detail[0].errors.length > 0 &&
|
|
1566
|
+
s.detail[0].errors.length > 0 && Di(s.detail[0].errors);
|
|
1565
1567
|
}), J.addEventListener("close", async (s) => {
|
|
1566
|
-
_ || (
|
|
1568
|
+
_ || (Me = !1), t(20, le = !0), t(21, Ue = !1), n === U.OK && (m(q, n = U.CAMERA_CLOSED_ERROR, n), setTimeout(
|
|
1567
1569
|
() => {
|
|
1568
|
-
le &&
|
|
1570
|
+
le && qe && (Ii("Reopening camera after close (lost focus on widget)"), Ve());
|
|
1569
1571
|
},
|
|
1570
1572
|
1e3
|
|
1571
1573
|
));
|
|
1572
1574
|
}), J.addEventListener("initialize", async (s) => {
|
|
1573
|
-
|
|
1575
|
+
Dt = !0, m(Oi, gt = !0, gt);
|
|
1574
1576
|
try {
|
|
1575
|
-
J.setLicense(
|
|
1577
|
+
J.setLicense(Js, "faceDetector");
|
|
1576
1578
|
} catch (T) {
|
|
1577
|
-
|
|
1579
|
+
ee("Error setting license:", T);
|
|
1578
1580
|
}
|
|
1579
|
-
_t ===
|
|
1581
|
+
_t === tt.Face && !Me && !_ && Dt && await Ft();
|
|
1580
1582
|
}), J.addEventListener("capture", async (s) => {
|
|
1581
|
-
t(22,
|
|
1583
|
+
t(22, ie = "");
|
|
1582
1584
|
const { encryptedFile: T, photo: E } = s.detail[0];
|
|
1583
|
-
m(
|
|
1584
|
-
const V = (await
|
|
1585
|
-
if (t(21,
|
|
1586
|
-
let Z,
|
|
1585
|
+
m(et, bt = T, bt);
|
|
1586
|
+
const V = (await it(E)).split(",");
|
|
1587
|
+
if (t(21, Ue = !1), m(se, A = K.OK, A), m(Oe, te.isLoading = !0, te), m(Fe, _ = !0, _), Me = !1, m(Ae, ce = V[0], ce), m(de, S = V[1], S), m(je, L = V[1], L), !ei) {
|
|
1588
|
+
let Z, ge, Ci, Ei;
|
|
1587
1589
|
try {
|
|
1588
|
-
if (Ee && !
|
|
1590
|
+
if (Ee && !Ai(We))
|
|
1589
1591
|
throw new Error("FACE_TOO_SMALL");
|
|
1590
|
-
const $ =
|
|
1592
|
+
const $ = Qs();
|
|
1591
1593
|
if (Ee && $)
|
|
1592
1594
|
throw new Error($);
|
|
1593
|
-
({ bodyParts: Z, icaoWarnings:
|
|
1595
|
+
({ bodyParts: Z, icaoWarnings: ge } = await st(L, be, (await it(T)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
|
1594
1596
|
"face-unconformities-validated",
|
|
1595
1597
|
{
|
|
1596
1598
|
detail: {
|
|
1597
1599
|
bodyParts: Z,
|
|
1598
|
-
icaoWarnings:
|
|
1599
|
-
status:
|
|
1600
|
+
icaoWarnings: ge,
|
|
1601
|
+
status: A
|
|
1600
1602
|
}
|
|
1601
1603
|
}
|
|
1602
1604
|
));
|
|
1603
1605
|
} catch ($) {
|
|
1604
|
-
|
|
1605
|
-
let Te = Re.UNKNOWN,
|
|
1606
|
-
$ instanceof
|
|
1607
|
-
error:
|
|
1606
|
+
ee($);
|
|
1607
|
+
let Te = Re.UNKNOWN, ze = [], yi = [];
|
|
1608
|
+
$ instanceof Ht && $.response?.status === 400 ? $.response.data && Array.isArray($.response.data.bodyParts) ? (ze = $.response.data.bodyParts, yi = $.response.data.icaoWarnings, Ci = $.response.data.invalidLivenessCounter, Ei = $.response.data.invalidLivenessLimit, Te = ze.find((Ds) => Ds.livenessResult.error)?.livenessResult.error_code, m(se, A = K.LIVENESS_DETECTION_FAILURE, A), t(22, ie = Re[Te]), ee("Liveness error:", Te)) : m(se, A = K.TEMPLATE_EXTRACTION_ERROR, A) : $ instanceof Error && Xs.includes($.message) ? (m(se, A = K.UNKNOWN_LIVENESS_ERROR, A), Te = $.message, t(22, ie = Re[Te]), ze = pi(), ze[0].livenessResult = {
|
|
1609
|
+
error: ie,
|
|
1608
1610
|
error_code: Te
|
|
1609
|
-
}) :
|
|
1611
|
+
}) : be && Ge.fire({
|
|
1610
1612
|
icon: "error",
|
|
1611
1613
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1612
|
-
}), m(Oe,
|
|
1614
|
+
}), m(Oe, te.isLoading = !1, te), window.dispatchEvent(new CustomEvent(
|
|
1613
1615
|
"face-unconformities-validated",
|
|
1614
1616
|
{
|
|
1615
1617
|
detail: {
|
|
1616
|
-
bodyParts:
|
|
1618
|
+
bodyParts: ze,
|
|
1617
1619
|
errorCode: Te,
|
|
1618
|
-
translatedError: Ie(
|
|
1619
|
-
status:
|
|
1620
|
-
icaoWarnings:
|
|
1621
|
-
invalidLivenessCounter:
|
|
1622
|
-
invalidLivenessLimit:
|
|
1620
|
+
translatedError: Ie(ie),
|
|
1621
|
+
status: A,
|
|
1622
|
+
icaoWarnings: yi,
|
|
1623
|
+
invalidLivenessCounter: Ci,
|
|
1624
|
+
invalidLivenessLimit: Ei
|
|
1623
1625
|
}
|
|
1624
1626
|
}
|
|
1625
1627
|
));
|
|
1626
1628
|
return;
|
|
1627
1629
|
}
|
|
1628
|
-
if (
|
|
1629
|
-
|
|
1630
|
+
if (A !== K.OK) {
|
|
1631
|
+
ge && Ke(ge), m(Oe, te.isLoading = !1, te);
|
|
1630
1632
|
return;
|
|
1631
1633
|
}
|
|
1632
|
-
Z[0].livenessResult &&
|
|
1634
|
+
Z[0].livenessResult && gi(Z[0].livenessResult), Z.length !== 0 && Z[0].data && m(de, S = Z[0].data, S), Ke(ge);
|
|
1633
1635
|
return;
|
|
1634
1636
|
}
|
|
1635
1637
|
let M, x;
|
|
1636
1638
|
try {
|
|
1637
|
-
x = await
|
|
1639
|
+
x = await Gs(T), gi(x.data);
|
|
1638
1640
|
} catch (Z) {
|
|
1639
|
-
m(
|
|
1641
|
+
m(se, A = K.UNKNOWN_LIVENESS_ERROR, A), ee(Z), Z instanceof Ht && Z.response?.status === 400 ? (M = Z.response.data.error_code, t(22, ie = Re[M]), ee("Liveness error:", M), m(se, A = K.LIVENESS_DETECTION_FAILURE, A)) : Ge.fire({
|
|
1640
1642
|
icon: "error",
|
|
1641
1643
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1642
1644
|
});
|
|
1643
1645
|
}
|
|
1644
|
-
if (
|
|
1645
|
-
m(Oe,
|
|
1646
|
+
if (A !== K.OK) {
|
|
1647
|
+
m(Oe, te.isLoading = !1, te), window.dispatchEvent(new CustomEvent(
|
|
1646
1648
|
"face-unconformities-validated",
|
|
1647
1649
|
{
|
|
1648
1650
|
detail: {
|
|
1649
1651
|
bodyParts: [
|
|
1650
1652
|
{
|
|
1651
1653
|
bodyPart: "FACE",
|
|
1652
|
-
data:
|
|
1653
|
-
livenessBlob: (await
|
|
1654
|
+
data: L,
|
|
1655
|
+
livenessBlob: (await it(T)).split(",")[1],
|
|
1654
1656
|
...x && { livenessResult: x }
|
|
1655
1657
|
}
|
|
1656
1658
|
],
|
|
1657
1659
|
...M && { errorCode: M },
|
|
1658
|
-
...
|
|
1659
|
-
status:
|
|
1660
|
+
...ie && { translatedError: Ie(ie) },
|
|
1661
|
+
status: A
|
|
1660
1662
|
}
|
|
1661
1663
|
}
|
|
1662
1664
|
));
|
|
1663
1665
|
return;
|
|
1664
1666
|
}
|
|
1665
|
-
let { bodyParts: ue, icaoWarnings: fe } = await
|
|
1667
|
+
let { bodyParts: ue, icaoWarnings: fe } = await st(L, be);
|
|
1666
1668
|
window.dispatchEvent(new CustomEvent(
|
|
1667
1669
|
"face-unconformities-validated",
|
|
1668
1670
|
{
|
|
1669
1671
|
detail: {
|
|
1670
1672
|
bodyParts: ue,
|
|
1671
1673
|
icaoWarnings: fe,
|
|
1672
|
-
status:
|
|
1674
|
+
status: A,
|
|
1673
1675
|
errorCode: M,
|
|
1674
|
-
...
|
|
1676
|
+
...ie && { translatedError: Ie(ie) }
|
|
1675
1677
|
}
|
|
1676
1678
|
}
|
|
1677
|
-
)), ue[0].data && m(de,
|
|
1679
|
+
)), ue[0].data && m(de, S = ue[0].data, S), Ke(fe);
|
|
1678
1680
|
});
|
|
1679
1681
|
}
|
|
1680
1682
|
async function ye(s) {
|
|
1681
|
-
if (!
|
|
1683
|
+
if (!Xe) {
|
|
1682
1684
|
m(q, n = U.CAMERA_ORIENTATION_PORTRAIT, n);
|
|
1683
1685
|
return;
|
|
1684
1686
|
}
|
|
1685
|
-
await Lt(),
|
|
1687
|
+
await Lt(), j() ? Ft() : await vi(p.videoWidth, p.videoHeight, s);
|
|
1686
1688
|
}
|
|
1687
|
-
async function
|
|
1688
|
-
if (
|
|
1689
|
+
async function Ft() {
|
|
1690
|
+
if (j()) {
|
|
1689
1691
|
if (await Lt(), !g[0]?.deviceId) {
|
|
1690
1692
|
try {
|
|
1691
1693
|
await Li(640, 480, r);
|
|
1692
1694
|
} catch (s) {
|
|
1693
1695
|
const T = s, E = Se(s) && s.constraint ? s.constraint : "";
|
|
1694
|
-
|
|
1696
|
+
ee(T.message, E), Se(T) && "message" in T && T.message.includes("Requested device not found") && m(q, n = U.DEVICE_NOT_FOUND_ERROR, n);
|
|
1695
1697
|
}
|
|
1696
|
-
await
|
|
1698
|
+
await qt(), m(ve, d = g[0].deviceId, d);
|
|
1697
1699
|
}
|
|
1698
|
-
m(q, n = U.OK, n), J && "openCamera" in J && J.openCamera(),
|
|
1700
|
+
m(q, n = U.OK, n), J && "openCamera" in J && J.openCamera(), Me = !0, t(20, le = !1), t(19, Qe = !0);
|
|
1699
1701
|
}
|
|
1700
1702
|
}
|
|
1701
|
-
async function
|
|
1702
|
-
if (
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
return Ke(A, Ze);
|
|
1707
|
-
m(Fe, l = !0, l), m(tt, Ne = !1, Ne), Ce && (c || m(Qe, c = !0, c)), Ke(A, Ze);
|
|
1703
|
+
async function St() {
|
|
1704
|
+
if (F) {
|
|
1705
|
+
if (_t !== tt.Face && !Tt)
|
|
1706
|
+
return at(F, St);
|
|
1707
|
+
m(Ne, l = !0, l), m($e, Pe = !1, Pe), De && (c || m(Je, c = !0, c)), at(F, St);
|
|
1708
1708
|
}
|
|
1709
1709
|
}
|
|
1710
|
-
async function
|
|
1711
|
-
if (m(
|
|
1712
|
-
m(
|
|
1710
|
+
async function bi(s = !0) {
|
|
1711
|
+
if (m(se, A = K.OK, A), j()) {
|
|
1712
|
+
m(Vt, Ee = s, Ee), t(21, Ue = !0), J.takePhoto();
|
|
1713
1713
|
return;
|
|
1714
1714
|
}
|
|
1715
1715
|
let T = null;
|
|
1716
1716
|
try {
|
|
1717
|
-
if (
|
|
1718
|
-
const x = await
|
|
1719
|
-
if (T = x.canvas, m(
|
|
1720
|
-
const
|
|
1721
|
-
throw m(
|
|
1717
|
+
if (De) {
|
|
1718
|
+
const x = await ln(F, It);
|
|
1719
|
+
if (T = x.canvas, m(Fe, _ = !0, _), !x.result && s) {
|
|
1720
|
+
const ge = T.toDataURL("image/jpeg").split(",");
|
|
1721
|
+
throw m(Ae, ce = ge[0], ce), m(de, S = ge[1], S), new Error("FACE_NOT_FOUND");
|
|
1722
1722
|
}
|
|
1723
1723
|
const ue = T.toDataURL("image/jpeg").split(",");
|
|
1724
|
-
m(
|
|
1724
|
+
m(Ae, ce = ue[0], ce), m(de, S = ue[1], S), m(je, L = ue[1], L);
|
|
1725
1725
|
let fe, Z;
|
|
1726
|
-
if (!
|
|
1726
|
+
if (!Ai(We) && s)
|
|
1727
1727
|
throw new Error("FACE_TOO_SMALL");
|
|
1728
|
-
({ bodyParts: fe, icaoWarnings: Z } = await
|
|
1728
|
+
({ bodyParts: fe, icaoWarnings: Z } = await st(S, be)), window.dispatchEvent(new CustomEvent(
|
|
1729
1729
|
"face-unconformities-validated",
|
|
1730
1730
|
{
|
|
1731
1731
|
detail: {
|
|
1732
1732
|
bodyParts: fe,
|
|
1733
1733
|
icaoWarnings: Z,
|
|
1734
|
-
status:
|
|
1734
|
+
status: A
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
|
-
)), fe.length !== 0 && fe[0].data && m(de,
|
|
1737
|
+
)), fe.length !== 0 && fe[0].data && m(de, S = fe[0].data, S), Ke(Z);
|
|
1738
1738
|
return;
|
|
1739
1739
|
}
|
|
1740
|
-
m(
|
|
1740
|
+
m(Fe, _ = !0, _);
|
|
1741
1741
|
const E = await is();
|
|
1742
|
-
m(
|
|
1743
|
-
let { bodyParts: V, icaoWarnings: M } = await
|
|
1742
|
+
m(Ae, ce = E[0], ce), m(de, S = E[1], S), m(je, L = E[1], L);
|
|
1743
|
+
let { bodyParts: V, icaoWarnings: M } = await st(S, be);
|
|
1744
1744
|
window.dispatchEvent(new CustomEvent(
|
|
1745
1745
|
"face-unconformities-validated",
|
|
1746
1746
|
{
|
|
1747
1747
|
detail: {
|
|
1748
1748
|
bodyParts: V,
|
|
1749
1749
|
icaoWarnings: M,
|
|
1750
|
-
status:
|
|
1750
|
+
status: A
|
|
1751
1751
|
}
|
|
1752
1752
|
}
|
|
1753
|
-
)), V.length !== 0 && V[0].data && m(de,
|
|
1753
|
+
)), V.length !== 0 && V[0].data && m(de, S = V[0].data, S), Ke(M);
|
|
1754
1754
|
} catch (E) {
|
|
1755
|
-
|
|
1755
|
+
ee(E);
|
|
1756
1756
|
let V = Re.UNKNOWN, M = [], x = [];
|
|
1757
|
-
if (E instanceof
|
|
1757
|
+
if (E instanceof Ht && E.response?.status === 400)
|
|
1758
1758
|
if (E.response.data && Array.isArray(E.response.data.bodyParts)) {
|
|
1759
1759
|
M = E.response.data.bodyParts, x = E.response.data.icaoWarnings;
|
|
1760
1760
|
const ue = M.find((fe) => fe.livenessResult.error);
|
|
1761
|
-
V = ue?.livenessResult.error_code, m(
|
|
1761
|
+
V = ue?.livenessResult.error_code, m(se, A = K.LIVENESS_DETECTION_FAILURE, A), ue?.livenessResult.error_code || m(se, A = K.UNKNOWN_LIVENESS_ERROR, A), t(22, ie = Re[V]), ee("Liveness error:", V);
|
|
1762
1762
|
} else
|
|
1763
|
-
m(
|
|
1763
|
+
m(se, A = K.TEMPLATE_EXTRACTION_ERROR, A);
|
|
1764
1764
|
else
|
|
1765
|
-
E instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(E.message) ? (m(
|
|
1765
|
+
E instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(E.message) ? (m(se, A = K.LIVENESS_DETECTION_FAILURE, A), V = E.message, t(22, ie = Re[V]), M = pi()) : (m(se, A = K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, A), be && Ge.fire({
|
|
1766
1766
|
icon: "error",
|
|
1767
1767
|
title: "Falha ao comunicar com serviço de Liveness"
|
|
1768
1768
|
}));
|
|
1769
|
-
m(Oe,
|
|
1769
|
+
m(Oe, te.isLoading = !1, te), window.dispatchEvent(new CustomEvent(
|
|
1770
1770
|
"face-unconformities-validated",
|
|
1771
1771
|
{
|
|
1772
1772
|
detail: {
|
|
1773
1773
|
bodyParts: M,
|
|
1774
1774
|
errorCode: V,
|
|
1775
|
-
translatedError: Ie(
|
|
1776
|
-
status:
|
|
1775
|
+
translatedError: Ie(ie),
|
|
1776
|
+
status: A,
|
|
1777
1777
|
icaoWarnings: x
|
|
1778
1778
|
}
|
|
1779
1779
|
}
|
|
1780
1780
|
));
|
|
1781
1781
|
}
|
|
1782
1782
|
}
|
|
1783
|
-
function
|
|
1783
|
+
function Ye() {
|
|
1784
1784
|
const s = {
|
|
1785
1785
|
bodyPart: "FACE",
|
|
1786
|
-
data:
|
|
1786
|
+
data: S,
|
|
1787
1787
|
justification: W
|
|
1788
1788
|
};
|
|
1789
|
-
m(
|
|
1789
|
+
m(Mt, D = !0, D), ut(et) && it(ut(et)).then((T) => {
|
|
1790
1790
|
s.livenessBlob = T.split(",")[1];
|
|
1791
1791
|
}), window.dispatchEvent(new CustomEvent("export-face", { detail: s }));
|
|
1792
1792
|
}
|
|
1793
1793
|
function Le() {
|
|
1794
|
-
window.dispatchEvent(new CustomEvent("face-scrapped")),
|
|
1794
|
+
window.dispatchEvent(new CustomEvent("face-scrapped")), _i(), le && Ft();
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function gi(s) {
|
|
1797
1797
|
let T = "", E = "success";
|
|
1798
|
-
s.isAlive ? T = `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 && (E = "error", T = `Vivacidade de face (${s.face_liveness.probability.toFixed(2)}) e de captura (${s.capture_liveness.probability}, ${s.capture_liveness.score.toFixed(2)}) insuficientes!`), H &&
|
|
1798
|
+
s.isAlive ? T = `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 && (E = "error", T = `Vivacidade de face (${s.face_liveness.probability.toFixed(2)}) e de captura (${s.capture_liveness.probability}, ${s.capture_liveness.score.toFixed(2)}) insuficientes!`), H && Ge.fire({ icon: E, title: T });
|
|
1799
1799
|
}
|
|
1800
|
-
async function
|
|
1800
|
+
async function vi(s, T, E) {
|
|
1801
1801
|
try {
|
|
1802
|
-
const { stream: V, deviceId: M } = await Li(
|
|
1803
|
-
m(
|
|
1802
|
+
const { stream: V, deviceId: M } = await Li(ae.width, ae.height, r, E);
|
|
1803
|
+
m(Pt, o = V, o), m(ve, d = M || g[0].deviceId, d);
|
|
1804
1804
|
} catch (V) {
|
|
1805
1805
|
const M = V, x = Se(V) && V.constraint ? V.constraint : "";
|
|
1806
|
-
|
|
1806
|
+
ee(M.message, x), Se(M) && "message" in M && M.message.toLowerCase().includes("permission") ? (ee("User didn't give permission to use camera!"), m(q, n = U.CAMERA_DENIED_ERROR, n)) : Se(M) && "message" in M && M.message.toLowerCase().includes("not found") && !he() ? m(q, n = U.DEVICE_NOT_FOUND_ERROR, n) : x.includes("width") || x.includes("height") ? (ee(`Camera does not meet the minimum supported requirements! (${x})`), m(q, n = U.CAMERA_UNSUPPORTED, n)) : (m(q, n = U.CAMERA_DENIED_ERROR, n), ee("Unable to open camera!"));
|
|
1807
1807
|
}
|
|
1808
1808
|
}
|
|
1809
|
-
async function
|
|
1810
|
-
m(
|
|
1809
|
+
async function Ve() {
|
|
1810
|
+
m(ve, d = "", d), await ye();
|
|
1811
1811
|
}
|
|
1812
1812
|
function ts() {
|
|
1813
1813
|
navigator.mediaDevices.ondevicechange = async (s) => {
|
|
1814
|
-
s.type == "devicechange" && (await
|
|
1814
|
+
s.type == "devicechange" && (await qt(), n !== U.OK ? await Ve() : (!j() && !o.active || j() && !le) && (nt(J), m(q, n = U.DEVICE_NOT_FOUND_ERROR, n), t(20, le = !0)));
|
|
1815
1815
|
};
|
|
1816
1816
|
}
|
|
1817
|
-
async function
|
|
1818
|
-
m(
|
|
1817
|
+
async function Nt() {
|
|
1818
|
+
m(Ze, f = !1, f);
|
|
1819
1819
|
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
1820
|
-
if (s -
|
|
1821
|
-
|
|
1820
|
+
if (s - Ct > 5e3) {
|
|
1821
|
+
Ct = s;
|
|
1822
1822
|
try {
|
|
1823
|
-
if (
|
|
1823
|
+
if (F.width === 0 || F.height === 0)
|
|
1824
1824
|
return;
|
|
1825
|
-
const E = await
|
|
1825
|
+
const E = await rn(F);
|
|
1826
1826
|
if (E < 50) {
|
|
1827
1827
|
m(ke, G = "faceCollector.illuminationTooLow", G);
|
|
1828
1828
|
return;
|
|
@@ -1832,19 +1832,19 @@ function Qn(i, e, t) {
|
|
|
1832
1832
|
return;
|
|
1833
1833
|
}
|
|
1834
1834
|
} catch (E) {
|
|
1835
|
-
|
|
1835
|
+
ot("An error occurred while getting the video lighting level: ", E);
|
|
1836
1836
|
}
|
|
1837
1837
|
try {
|
|
1838
|
-
if (await
|
|
1838
|
+
if (await cn(F) < 4.5) {
|
|
1839
1839
|
m(ke, G = "faceCollector.lowSharpness", G);
|
|
1840
1840
|
return;
|
|
1841
1841
|
}
|
|
1842
1842
|
} catch (E) {
|
|
1843
|
-
|
|
1843
|
+
ot("An error occurred while getting the video sharpness level: ", E);
|
|
1844
1844
|
}
|
|
1845
1845
|
m(ke, G = "faceCollector.faceWasNotFound", G);
|
|
1846
1846
|
} else
|
|
1847
|
-
|
|
1847
|
+
wt || (wt = !0, setTimeout(
|
|
1848
1848
|
() => {
|
|
1849
1849
|
let E = [
|
|
1850
1850
|
"faceCollector.faceWasNotFound",
|
|
@@ -1852,34 +1852,34 @@ function Qn(i, e, t) {
|
|
|
1852
1852
|
"faceCollector.lowSharpness",
|
|
1853
1853
|
"faceCollector.illuminationTooHigh"
|
|
1854
1854
|
];
|
|
1855
|
-
|
|
1855
|
+
wt = !1, t(18, _e = !1), G && !E.includes(G) && m(ke, G = "", G);
|
|
1856
1856
|
},
|
|
1857
1857
|
1500
|
|
1858
1858
|
));
|
|
1859
1859
|
}
|
|
1860
|
-
function
|
|
1860
|
+
function pi() {
|
|
1861
1861
|
return [
|
|
1862
1862
|
{
|
|
1863
1863
|
bodyPart: "FACE",
|
|
1864
|
-
data:
|
|
1864
|
+
data: L,
|
|
1865
1865
|
format: "jpg",
|
|
1866
1866
|
capturedEyeToEyeDist: I,
|
|
1867
|
-
minEyeToEyeDist:
|
|
1867
|
+
minEyeToEyeDist: We
|
|
1868
1868
|
}
|
|
1869
1869
|
];
|
|
1870
1870
|
}
|
|
1871
1871
|
async function is() {
|
|
1872
1872
|
const s = document.createElement("canvas"), T = s.getContext("2d");
|
|
1873
|
-
return s.width =
|
|
1873
|
+
return s.width = F.width, s.height = F.height, T?.drawImage(F, 0, 0, s.width, s.height), s.toDataURL("image/jpeg").split(",");
|
|
1874
1874
|
}
|
|
1875
|
-
const ss =
|
|
1875
|
+
const ss = Kt.subscribe((s) => {
|
|
1876
1876
|
let T = "";
|
|
1877
|
-
if (s.isPersonCloseEnough ? s.isPersonTooclose ? T = "faceCollector.moveAwayCamera" : s.isPersonInFrame ? s.closedMouth || (T = "faceCollector.dontOpenMouth") : T = "faceCollector.stayInFrame" : T = "faceCollector.comeCloserCamera", f &&
|
|
1878
|
-
t(17,
|
|
1877
|
+
if (s.isPersonCloseEnough ? s.isPersonTooclose ? T = "faceCollector.moveAwayCamera" : s.isPersonInFrame ? s.closedMouth || (T = "faceCollector.dontOpenMouth") : T = "faceCollector.stayInFrame" : T = "faceCollector.comeCloserCamera", f && Ys(T), !_ && C && f && !v && !Be && s.isPersonInFrame && s.closedMouth && !(!s.isPersonCloseEnough || s.isPersonTooclose)) {
|
|
1878
|
+
t(17, Be = !0), mi = (/* @__PURE__ */ new Date()).getTime() + Qn;
|
|
1879
1879
|
const E = setInterval(
|
|
1880
1880
|
async () => {
|
|
1881
|
-
if (!C || _ || v ||
|
|
1882
|
-
t(17,
|
|
1881
|
+
if (!C || _ || v || Ue || j() && le || !s.isPersonCloseEnough || s.isPersonTooclose || !s.closedMouth || !s.isPersonInFrame) {
|
|
1882
|
+
t(17, Be = !1), setTimeout(
|
|
1883
1883
|
() => {
|
|
1884
1884
|
},
|
|
1885
1885
|
1500
|
|
@@ -1887,83 +1887,93 @@ function Qn(i, e, t) {
|
|
|
1887
1887
|
return;
|
|
1888
1888
|
}
|
|
1889
1889
|
const V = (/* @__PURE__ */ new Date()).getTime();
|
|
1890
|
-
Math.floor((
|
|
1890
|
+
Math.floor((mi - V) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(E), t(17, Be = !1), bi());
|
|
1891
1891
|
},
|
|
1892
1892
|
100
|
|
1893
1893
|
);
|
|
1894
1894
|
}
|
|
1895
|
-
}), ns =
|
|
1895
|
+
}), ns = Fe.subscribe((s) => {
|
|
1896
1896
|
me && (s ? (me.classList.remove("flex"), me.classList.add("hidden")) : (me.classList.add("flex"), me.classList.remove("hidden")));
|
|
1897
|
-
}),
|
|
1898
|
-
|
|
1897
|
+
}), os = Wt.subscribe((s) => {
|
|
1898
|
+
F && s && (Jt("setting null in video srcObject"), t(14, F.srcObject = null, F), t(14, F.src = "", F), m(ve, d = null, d));
|
|
1899
1899
|
});
|
|
1900
|
-
|
|
1901
|
-
s ===
|
|
1900
|
+
zt.subscribe(async (s) => {
|
|
1901
|
+
s === tt.Face && (await qt(), j() && m(ve, d = g[0]?.deviceId, d));
|
|
1902
1902
|
});
|
|
1903
|
-
const
|
|
1904
|
-
if (!(!
|
|
1903
|
+
const as = ve.subscribe(async (s) => {
|
|
1904
|
+
if (!(!j() && !o || !s || j() && le))
|
|
1905
1905
|
try {
|
|
1906
|
-
if (
|
|
1907
|
-
await
|
|
1906
|
+
if (j()) {
|
|
1907
|
+
await nt(J), await ye();
|
|
1908
1908
|
return;
|
|
1909
1909
|
}
|
|
1910
|
-
const T =
|
|
1911
|
-
T && T !== s && await
|
|
1912
|
-
E.readyState === "live" &&
|
|
1913
|
-
}), m(q, n = U.OK, n),
|
|
1910
|
+
const T = o?.getVideoTracks()[0]?.getSettings()?.deviceId;
|
|
1911
|
+
T && T !== s && await vi(p.videoWidth, p.videoHeight, s), t(14, F.srcObject = o, F), m(Wt, y = !1, y), Xe ? m(q, n = U.OK, n) : m(q, n = U.CAMERA_ORIENTATION_PORTRAIT, n), o.getTracks().forEach((E) => {
|
|
1912
|
+
E.readyState === "live" && Jt(`Camera ${E.label} (${E.id}) opened successfully!`);
|
|
1913
|
+
}), m(q, n = U.OK, n), Zs(F);
|
|
1914
1914
|
} catch (T) {
|
|
1915
1915
|
const E = T;
|
|
1916
1916
|
t(20, le = !0), Se(E) && "message" in E && E.message.includes("Requested device not found") && m(q, n = U.DEVICE_NOT_FOUND_ERROR, n);
|
|
1917
1917
|
}
|
|
1918
|
-
}), ls =
|
|
1919
|
-
s ===
|
|
1920
|
-
}), rs =
|
|
1921
|
-
s &&
|
|
1922
|
-
}), cs =
|
|
1918
|
+
}), ls = zt.subscribe(async (s) => {
|
|
1919
|
+
s === tt.Face && j() && !Me && !_ && Dt && await ye();
|
|
1920
|
+
}), rs = Je.subscribe(async (s) => {
|
|
1921
|
+
s && wi();
|
|
1922
|
+
}), cs = xs.subscribe(async (s) => {
|
|
1923
1923
|
if (g[0]?.deviceId) {
|
|
1924
|
-
if (!he() ||
|
|
1924
|
+
if (!he() || j()) {
|
|
1925
1925
|
const E = (g.findIndex((M) => M.deviceId === d) + 1) % g.length, V = g[E].deviceId;
|
|
1926
|
-
|
|
1926
|
+
j() ? m(ve, d = V, d) : (nt(), await ye(V));
|
|
1927
1927
|
return;
|
|
1928
1928
|
}
|
|
1929
|
-
s ? (m(
|
|
1929
|
+
s ? (m(xe, r = jt.REAR_CAMERA, r), await ye()) : (m(xe, r = jt.FRONT_CAMERA, r), await ye());
|
|
1930
1930
|
}
|
|
1931
|
-
}), us =
|
|
1932
|
-
!s.isSupported || !he() || u != "FACE" || (
|
|
1933
|
-
}), fs =
|
|
1931
|
+
}), us = $s.subscribe(async (s) => {
|
|
1932
|
+
!s.isSupported || !he() || u != "FACE" || (Xe = s.orientation.includes("portrait"), Xe ? F && !l ? await Ve() : l && m(q, n = U.OK, n) : m(q, n = U.CAMERA_ORIENTATION_PORTRAIT, n));
|
|
1933
|
+
}), fs = Xt.subscribe((s) => {
|
|
1934
1934
|
s && window.dispatchEvent(new CustomEvent("console-open-status", { detail: { isOpen: s } }));
|
|
1935
1935
|
});
|
|
1936
|
-
async function
|
|
1936
|
+
async function wi() {
|
|
1937
1937
|
let s;
|
|
1938
1938
|
try {
|
|
1939
|
-
if (
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
}
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1939
|
+
if (At >= Jn) {
|
|
1940
|
+
At = 0;
|
|
1941
|
+
try {
|
|
1942
|
+
if (!si || !pt)
|
|
1943
|
+
throw new Error("Face API not fully loaded");
|
|
1944
|
+
s = await _n(F, pt).withFaceLandmarks();
|
|
1945
|
+
} catch (T) {
|
|
1946
|
+
ot("Face detection failed:", T), t(18, _e = !0), s = void 0;
|
|
1947
|
+
}
|
|
1948
|
+
if (ne.getContext("2d")?.clearRect(0, 0, ne.width, ne.height), s != null)
|
|
1949
|
+
try {
|
|
1950
|
+
const T = bn(ne, F, !0);
|
|
1951
|
+
en(ne, F, T);
|
|
1952
|
+
const E = gn(s, T);
|
|
1953
|
+
tn(E) ? (sn(E, ne, Et), m(Ze, f = !0, f), t(18, _e = !0), Ct = (/* @__PURE__ */ new Date()).getTime()) : Nt();
|
|
1954
|
+
} catch (T) {
|
|
1955
|
+
ot("Face processing failed:", T), t(18, _e = !0), Nt();
|
|
1956
|
+
}
|
|
1957
|
+
else
|
|
1958
|
+
Nt();
|
|
1959
|
+
} else
|
|
1960
|
+
At++;
|
|
1961
|
+
} catch (T) {
|
|
1962
|
+
t(18, _e = !0), ee("Unexpected error in faceapiLoop:", T);
|
|
1953
1963
|
} finally {
|
|
1954
|
-
c &&
|
|
1964
|
+
c && at(F, wi);
|
|
1955
1965
|
}
|
|
1956
1966
|
}
|
|
1957
|
-
|
|
1958
|
-
s && (Le(), m(
|
|
1967
|
+
Bt.subscribe(async (s) => {
|
|
1968
|
+
s && (Le(), m(Bt, a = !1, a));
|
|
1959
1969
|
});
|
|
1960
|
-
const ds =
|
|
1961
|
-
s && window.dispatchEvent(new CustomEvent("brycc-camera-ready", { detail: { stream:
|
|
1962
|
-
}), hs =
|
|
1970
|
+
const ds = Ne.subscribe((s) => {
|
|
1971
|
+
s && window.dispatchEvent(new CustomEvent("brycc-camera-ready", { detail: { stream: o } }));
|
|
1972
|
+
}), hs = $e.subscribe((s) => {
|
|
1963
1973
|
s && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
1964
1974
|
});
|
|
1965
|
-
|
|
1966
|
-
|
|
1975
|
+
nn(() => {
|
|
1976
|
+
Jt("Destroying face collector"), nt(J), ns(), ss(), os(), as(), ls(), clearInterval(hi), rs(), cs(), us(), fs(), ds(), hs(), hi = 0, di.stopDetection(), on();
|
|
1967
1977
|
});
|
|
1968
1978
|
function ms(s) {
|
|
1969
1979
|
rt[s ? "unshift" : "push"](() => {
|
|
@@ -1972,60 +1982,60 @@ function Qn(i, e, t) {
|
|
|
1972
1982
|
}
|
|
1973
1983
|
function _s(s) {
|
|
1974
1984
|
rt[s ? "unshift" : "push"](() => {
|
|
1975
|
-
|
|
1985
|
+
F = s, t(14, F);
|
|
1976
1986
|
});
|
|
1977
1987
|
}
|
|
1978
1988
|
const bs = () => {
|
|
1979
|
-
|
|
1989
|
+
j() || (t(14, F.width = p.videoWidth, F), t(14, F.height = p.videoHeight, F), t(15, ne.width = p.videoWidth, ne), t(15, ne.height = p.videoHeight, ne));
|
|
1980
1990
|
};
|
|
1981
1991
|
function gs(s) {
|
|
1982
1992
|
rt[s ? "unshift" : "push"](() => {
|
|
1983
|
-
|
|
1993
|
+
ne = s, t(15, ne);
|
|
1984
1994
|
});
|
|
1985
1995
|
}
|
|
1986
|
-
const vs = () =>
|
|
1996
|
+
const vs = () => Ye(), ps = () => Le();
|
|
1987
1997
|
function ws(s) {
|
|
1988
1998
|
rt[s ? "unshift" : "push"](() => {
|
|
1989
1999
|
me = s, t(16, me);
|
|
1990
2000
|
});
|
|
1991
2001
|
}
|
|
1992
|
-
const Cs = () =>
|
|
2002
|
+
const Cs = () => Ye(), Es = () => Le();
|
|
1993
2003
|
function ys() {
|
|
1994
|
-
W = this.value,
|
|
2004
|
+
W = this.value, Ut.set(W);
|
|
1995
2005
|
}
|
|
1996
|
-
const Ts = () =>
|
|
2006
|
+
const Ts = () => Ye(), ks = () => Le();
|
|
1997
2007
|
function Os() {
|
|
1998
|
-
W = this.value,
|
|
2008
|
+
W = this.value, Ut.set(W);
|
|
1999
2009
|
}
|
|
2000
2010
|
const Rs = () => Le(), Is = async () => {
|
|
2001
|
-
await
|
|
2011
|
+
await Ve();
|
|
2002
2012
|
};
|
|
2003
2013
|
return i.$$set = (s) => {
|
|
2004
|
-
"enableMinutiae" in s && t(43,
|
|
2014
|
+
"enableMinutiae" in s && t(43, Et = s.enableMinutiae), "videoDimensions" in s && t(44, yt = s.videoDimensions), "noTabs" in s && t(45, Tt = s.noTabs), "weightsPath" in s && t(46, kt = s.weightsPath), "evaluatePhoto" in s && t(2, be = s.evaluatePhoto), "showCaptureButton" in s && t(0, Ot = s.showCaptureButton), "showUnconformities" in s && t(3, ni = s.showUnconformities), "showConfigButton" in s && t(4, oi = s.showConfigButton), "showAutoCaptureButton" in s && t(5, Rt = s.showAutoCaptureButton), "showCameraButton" in s && t(6, ai = s.showCameraButton), "showJustificationField" in s && t(7, li = s.showJustificationField), "minEyeToEyeDist" in s && t(47, We = s.minEyeToEyeDist), "showWatermark" in s && t(8, ri = s.showWatermark), "videoOverlay" in s && t(9, ci = s.videoOverlay), "videoOverlayTransparency" in s && t(10, ui = s.videoOverlayTransparency), "faceDetectionSensitivity" in s && t(48, It = s.faceDetectionSensitivity), "hidden" in s && t(49, qe = s.hidden), "livenessBlobSize" in s && t(11, fi = s.livenessBlobSize), "widgetInstance" in s && t(1, J = s.widgetInstance);
|
|
2005
2015
|
}, [
|
|
2006
|
-
kt,
|
|
2007
|
-
J,
|
|
2008
|
-
_e,
|
|
2009
|
-
ii,
|
|
2010
|
-
si,
|
|
2011
2016
|
Ot,
|
|
2017
|
+
J,
|
|
2018
|
+
be,
|
|
2012
2019
|
ni,
|
|
2013
|
-
ai,
|
|
2014
2020
|
oi,
|
|
2021
|
+
Rt,
|
|
2022
|
+
ai,
|
|
2015
2023
|
li,
|
|
2016
2024
|
ri,
|
|
2017
2025
|
ci,
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2026
|
+
ui,
|
|
2027
|
+
fi,
|
|
2028
|
+
St,
|
|
2029
|
+
bi,
|
|
2030
|
+
F,
|
|
2031
|
+
ne,
|
|
2022
2032
|
me,
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2033
|
+
Be,
|
|
2034
|
+
_e,
|
|
2035
|
+
Qe,
|
|
2026
2036
|
le,
|
|
2027
|
-
|
|
2028
|
-
|
|
2037
|
+
Ue,
|
|
2038
|
+
ie,
|
|
2029
2039
|
n,
|
|
2030
2040
|
l,
|
|
2031
2041
|
d,
|
|
@@ -2034,25 +2044,25 @@ function Qn(i, e, t) {
|
|
|
2034
2044
|
v,
|
|
2035
2045
|
D,
|
|
2036
2046
|
W,
|
|
2037
|
-
|
|
2038
|
-
|
|
2047
|
+
S,
|
|
2048
|
+
A,
|
|
2039
2049
|
Ie,
|
|
2040
|
-
|
|
2050
|
+
te,
|
|
2041
2051
|
ce,
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2052
|
+
ti,
|
|
2053
|
+
ii,
|
|
2054
|
+
Je,
|
|
2055
|
+
Ae,
|
|
2056
|
+
Ye,
|
|
2047
2057
|
Le,
|
|
2048
|
-
|
|
2049
|
-
Ct,
|
|
2058
|
+
Ve,
|
|
2050
2059
|
Et,
|
|
2051
2060
|
yt,
|
|
2052
2061
|
Tt,
|
|
2053
|
-
|
|
2054
|
-
|
|
2055
|
-
|
|
2062
|
+
kt,
|
|
2063
|
+
We,
|
|
2064
|
+
It,
|
|
2065
|
+
qe,
|
|
2056
2066
|
ms,
|
|
2057
2067
|
_s,
|
|
2058
2068
|
bs,
|
|
@@ -2070,18 +2080,18 @@ function Qn(i, e, t) {
|
|
|
2070
2080
|
Is
|
|
2071
2081
|
];
|
|
2072
2082
|
}
|
|
2073
|
-
class
|
|
2083
|
+
class Yn extends Gt {
|
|
2074
2084
|
constructor(e) {
|
|
2075
|
-
super(),
|
|
2085
|
+
super(), Yt(
|
|
2076
2086
|
this,
|
|
2077
2087
|
{
|
|
2078
2088
|
target: this.shadowRoot,
|
|
2079
|
-
props:
|
|
2089
|
+
props: xt(this.attributes),
|
|
2080
2090
|
customElement: !0
|
|
2081
2091
|
},
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2092
|
+
Gn,
|
|
2093
|
+
qn,
|
|
2094
|
+
Zt,
|
|
2085
2095
|
{
|
|
2086
2096
|
enableMinutiae: 43,
|
|
2087
2097
|
videoDimensions: 44,
|
|
@@ -2107,7 +2117,7 @@ class Xn extends Jt {
|
|
|
2107
2117
|
},
|
|
2108
2118
|
null,
|
|
2109
2119
|
[-1, -1, -1, -1, -1]
|
|
2110
|
-
), e && (e.target && k(e.target, this, e.anchor), e.props && (this.$set(e.props),
|
|
2120
|
+
), e && (e.target && k(e.target, this, e.anchor), e.props && (this.$set(e.props), z()));
|
|
2111
2121
|
}
|
|
2112
2122
|
static get observedAttributes() {
|
|
2113
2123
|
return [
|
|
@@ -2138,115 +2148,115 @@ class Xn extends Jt {
|
|
|
2138
2148
|
return this.$$.ctx[43];
|
|
2139
2149
|
}
|
|
2140
2150
|
set enableMinutiae(e) {
|
|
2141
|
-
this.$$set({ enableMinutiae: e }),
|
|
2151
|
+
this.$$set({ enableMinutiae: e }), z();
|
|
2142
2152
|
}
|
|
2143
2153
|
get videoDimensions() {
|
|
2144
2154
|
return this.$$.ctx[44];
|
|
2145
2155
|
}
|
|
2146
2156
|
set videoDimensions(e) {
|
|
2147
|
-
this.$$set({ videoDimensions: e }),
|
|
2157
|
+
this.$$set({ videoDimensions: e }), z();
|
|
2148
2158
|
}
|
|
2149
2159
|
get noTabs() {
|
|
2150
2160
|
return this.$$.ctx[45];
|
|
2151
2161
|
}
|
|
2152
2162
|
set noTabs(e) {
|
|
2153
|
-
this.$$set({ noTabs: e }),
|
|
2163
|
+
this.$$set({ noTabs: e }), z();
|
|
2154
2164
|
}
|
|
2155
2165
|
get weightsPath() {
|
|
2156
2166
|
return this.$$.ctx[46];
|
|
2157
2167
|
}
|
|
2158
2168
|
set weightsPath(e) {
|
|
2159
|
-
this.$$set({ weightsPath: e }),
|
|
2169
|
+
this.$$set({ weightsPath: e }), z();
|
|
2160
2170
|
}
|
|
2161
2171
|
get evaluatePhoto() {
|
|
2162
2172
|
return this.$$.ctx[2];
|
|
2163
2173
|
}
|
|
2164
2174
|
set evaluatePhoto(e) {
|
|
2165
|
-
this.$$set({ evaluatePhoto: e }),
|
|
2175
|
+
this.$$set({ evaluatePhoto: e }), z();
|
|
2166
2176
|
}
|
|
2167
2177
|
get showCaptureButton() {
|
|
2168
2178
|
return this.$$.ctx[0];
|
|
2169
2179
|
}
|
|
2170
2180
|
set showCaptureButton(e) {
|
|
2171
|
-
this.$$set({ showCaptureButton: e }),
|
|
2181
|
+
this.$$set({ showCaptureButton: e }), z();
|
|
2172
2182
|
}
|
|
2173
2183
|
get showUnconformities() {
|
|
2174
2184
|
return this.$$.ctx[3];
|
|
2175
2185
|
}
|
|
2176
2186
|
set showUnconformities(e) {
|
|
2177
|
-
this.$$set({ showUnconformities: e }),
|
|
2187
|
+
this.$$set({ showUnconformities: e }), z();
|
|
2178
2188
|
}
|
|
2179
2189
|
get showConfigButton() {
|
|
2180
2190
|
return this.$$.ctx[4];
|
|
2181
2191
|
}
|
|
2182
2192
|
set showConfigButton(e) {
|
|
2183
|
-
this.$$set({ showConfigButton: e }),
|
|
2193
|
+
this.$$set({ showConfigButton: e }), z();
|
|
2184
2194
|
}
|
|
2185
2195
|
get showAutoCaptureButton() {
|
|
2186
2196
|
return this.$$.ctx[5];
|
|
2187
2197
|
}
|
|
2188
2198
|
set showAutoCaptureButton(e) {
|
|
2189
|
-
this.$$set({ showAutoCaptureButton: e }),
|
|
2199
|
+
this.$$set({ showAutoCaptureButton: e }), z();
|
|
2190
2200
|
}
|
|
2191
2201
|
get showCameraButton() {
|
|
2192
2202
|
return this.$$.ctx[6];
|
|
2193
2203
|
}
|
|
2194
2204
|
set showCameraButton(e) {
|
|
2195
|
-
this.$$set({ showCameraButton: e }),
|
|
2205
|
+
this.$$set({ showCameraButton: e }), z();
|
|
2196
2206
|
}
|
|
2197
2207
|
get showJustificationField() {
|
|
2198
2208
|
return this.$$.ctx[7];
|
|
2199
2209
|
}
|
|
2200
2210
|
set showJustificationField(e) {
|
|
2201
|
-
this.$$set({ showJustificationField: e }),
|
|
2211
|
+
this.$$set({ showJustificationField: e }), z();
|
|
2202
2212
|
}
|
|
2203
2213
|
get minEyeToEyeDist() {
|
|
2204
2214
|
return this.$$.ctx[47];
|
|
2205
2215
|
}
|
|
2206
2216
|
set minEyeToEyeDist(e) {
|
|
2207
|
-
this.$$set({ minEyeToEyeDist: e }),
|
|
2217
|
+
this.$$set({ minEyeToEyeDist: e }), z();
|
|
2208
2218
|
}
|
|
2209
2219
|
get showWatermark() {
|
|
2210
2220
|
return this.$$.ctx[8];
|
|
2211
2221
|
}
|
|
2212
2222
|
set showWatermark(e) {
|
|
2213
|
-
this.$$set({ showWatermark: e }),
|
|
2223
|
+
this.$$set({ showWatermark: e }), z();
|
|
2214
2224
|
}
|
|
2215
2225
|
get videoOverlay() {
|
|
2216
2226
|
return this.$$.ctx[9];
|
|
2217
2227
|
}
|
|
2218
2228
|
set videoOverlay(e) {
|
|
2219
|
-
this.$$set({ videoOverlay: e }),
|
|
2229
|
+
this.$$set({ videoOverlay: e }), z();
|
|
2220
2230
|
}
|
|
2221
2231
|
get videoOverlayTransparency() {
|
|
2222
2232
|
return this.$$.ctx[10];
|
|
2223
2233
|
}
|
|
2224
2234
|
set videoOverlayTransparency(e) {
|
|
2225
|
-
this.$$set({ videoOverlayTransparency: e }),
|
|
2235
|
+
this.$$set({ videoOverlayTransparency: e }), z();
|
|
2226
2236
|
}
|
|
2227
2237
|
get faceDetectionSensitivity() {
|
|
2228
2238
|
return this.$$.ctx[48];
|
|
2229
2239
|
}
|
|
2230
2240
|
set faceDetectionSensitivity(e) {
|
|
2231
|
-
this.$$set({ faceDetectionSensitivity: e }),
|
|
2241
|
+
this.$$set({ faceDetectionSensitivity: e }), z();
|
|
2232
2242
|
}
|
|
2233
2243
|
get hidden() {
|
|
2234
2244
|
return this.$$.ctx[49];
|
|
2235
2245
|
}
|
|
2236
2246
|
set hidden(e) {
|
|
2237
|
-
this.$$set({ hidden: e }),
|
|
2247
|
+
this.$$set({ hidden: e }), z();
|
|
2238
2248
|
}
|
|
2239
2249
|
get livenessBlobSize() {
|
|
2240
2250
|
return this.$$.ctx[11];
|
|
2241
2251
|
}
|
|
2242
2252
|
set livenessBlobSize(e) {
|
|
2243
|
-
this.$$set({ livenessBlobSize: e }),
|
|
2253
|
+
this.$$set({ livenessBlobSize: e }), z();
|
|
2244
2254
|
}
|
|
2245
2255
|
get widgetInstance() {
|
|
2246
2256
|
return this.$$.ctx[1];
|
|
2247
2257
|
}
|
|
2248
2258
|
set widgetInstance(e) {
|
|
2249
|
-
this.$$set({ widgetInstance: e }),
|
|
2259
|
+
this.$$set({ widgetInstance: e }), z();
|
|
2250
2260
|
}
|
|
2251
2261
|
get play() {
|
|
2252
2262
|
return this.$$.ctx[12];
|
|
@@ -2255,7 +2265,7 @@ class Xn extends Jt {
|
|
|
2255
2265
|
return this.$$.ctx[13];
|
|
2256
2266
|
}
|
|
2257
2267
|
}
|
|
2258
|
-
customElements.define("face-collector",
|
|
2268
|
+
customElements.define("face-collector", Yn);
|
|
2259
2269
|
export {
|
|
2260
|
-
|
|
2270
|
+
Yn as default
|
|
2261
2271
|
};
|