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