bry-biometric-collector 2.2.0 → 2.2.1
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/CameraBtn_ea347e01_2.2.1.js +506 -0
- package/dist/DocumentCollector_0785fdfe_2.2.1.js +1053 -0
- package/dist/FaceCollector_cb1adcc0_2.2.1.js +1702 -0
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{en-us_46223587_2.2.0.js → en-us_35a3a8da_2.2.1.js} +12 -18
- package/dist/{fingersApi_6e81733e_2.2.0.js → fingersApi_13cd25ba_2.2.1.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{main_6691dc65_2.2.0.js → main_452d4a3b_2.2.1.js} +4076 -4228
- package/dist/{pt-br_7b1f22cd_2.2.0.js → pt-br_1a694022_2.2.1.js} +2 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/CameraBtn_feceeea6_2.2.0.js +0 -519
- package/dist/DocumentCollector_44ff30af_2.2.0.js +0 -1080
- package/dist/FaceCollector_e3d60e9c_2.2.0.js +0 -1682
- /package/dist/{face_api_0e3ce8c8_2.2.0.js → face_api_0e3ce8c8_2.2.1.js} +0 -0
- /package/dist/{index-no-detector_acb82d83_2.2.0.js → index-no-detector_acb82d83_2.2.1.js} +0 -0
@@ -1,1682 +0,0 @@
|
|
1
|
-
import { S as Qi, r as Ji, t as _i, w as Gi, x as O, y as he, z as b, B as x, C as ze, D as se, E as Xe, G as ie, H as A, I as L, J as Tt, K as je, L as et, M as Pe, N as Yi, O as Le, P as Ot, _ as Xt, Q as Zi, R as xi, T as Fe, U as qe, V as pe, W as At, X as St, Y as Ce, Z as $i, a0 as el, a1 as tt, a2 as Lt, a3 as it, $ as tl, a4 as il, a5 as lt, a6 as Qt, a7 as Jt, a8 as Gt, a9 as Yt, aa as ll, ab as al, ac as sl, ad as ol, ae as nl, af as _, ag as at, ah as Y, ai as rl, aj as st, ak as Z, al as ot, am as nt, A as Zt, an as Ft, ao as rt, ap as cl, aq as ct, ar as xt, as as ul, f as ut, at as Nt, au as fl, av as Dt, aw as dl, ax as ml, ay as Ne, az as _l, aA as $t, aB as ei, l as ft, aC as bl, aD as hl, aE as De, aF as pl, aG as D, aH as dt, aI as gl, aJ as d, aK as f, aL as mt, aM as _t, aN as Qe, aO as Wt, aP as _e, aQ as gt, aR as F, aS as K, aT as bi, aU as bt, aV as Mt, aW as vl, aX as kl, aY as ti, aZ as ht, a_ as wl, a$ as Cl } from "./main_6691dc65_2.2.0.js";
|
2
|
-
import { c as ue, C as G, a as El, f as pt, b as Rl } from "./CameraBtn_feceeea6_2.2.0.js";
|
3
|
-
function ii(a, e, t) {
|
4
|
-
const l = a.slice();
|
5
|
-
return l[106] = e[t], l;
|
6
|
-
}
|
7
|
-
function yl(a) {
|
8
|
-
let e, t, l, o = Y(), s, c = (
|
9
|
-
/*unique*/
|
10
|
-
a[8]
|
11
|
-
), r, n, u, m, I, T, p, R, P, g, v, M, j, U, le = Y() && /*waitingIdrndCaptureEvent*/
|
12
|
-
a[13], ge, fe = Y() && /*idrndLoading*/
|
13
|
-
a[11] && /*$cameraStatusStore*/
|
14
|
-
a[17] === G.OK, oe, ne, X, B, S, C, Q, W, re = o && Il(a), de = li(a);
|
15
|
-
n = new pl({ props: { className: "bottom-0" } }), m = new El({ props: { className: "bottom-0" } });
|
16
|
-
let q = (
|
17
|
-
/*isCountingDown*/
|
18
|
-
a[7] && ai(a)
|
19
|
-
), z = (
|
20
|
-
/*$enableFaceApi*/
|
21
|
-
a[26] && !/*isCountingDown*/
|
22
|
-
a[7] && /*faceNotValidated*/
|
23
|
-
a[15] && si(a)
|
24
|
-
), $ = le && oi(a), w = fe && ni(a);
|
25
|
-
function ae(h, V) {
|
26
|
-
return (
|
27
|
-
/*$captured*/
|
28
|
-
h[19] ? Ll : Fl
|
29
|
-
);
|
30
|
-
}
|
31
|
-
let me = ae(a), ee = me(a);
|
32
|
-
const Me = [Wl, Ml], be = [];
|
33
|
-
function Ie(h, V) {
|
34
|
-
return (!/*idrndClosed*/
|
35
|
-
h[12] || /*$captured*/
|
36
|
-
h[19]) && /*showUnconformities*/
|
37
|
-
h[2] ? 0 : (
|
38
|
-
/*$cameraStatusStore*/
|
39
|
-
h[17] !== G.OK ? 1 : -1
|
40
|
-
);
|
41
|
-
}
|
42
|
-
return ~(S = Ie(a)) && (C = be[S] = Me[S](a)), {
|
43
|
-
c() {
|
44
|
-
e = b("div"), t = b("div"), l = b("div"), re && re.c(), s = D(), de.c(), r = D(), dt(n.$$.fragment), u = D(), dt(m.$$.fragment), I = D(), T = b("canvas"), p = D(), R = b("canvas"), P = D(), g = b("canvas"), v = D(), q && q.c(), M = D(), z && z.c(), U = D(), $ && $.c(), ge = D(), w && w.c(), oe = D(), ne = b("div"), ee.c(), B = D(), C && C.c(), Q = gl(), d(T, "id", "bry-ce-displayCanvas"), d(T, "class", "max-w-full -scale-x-100"), d(R, "id", "bry-ce-detectionsCanvas"), d(R, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), d(g, "id", "bry-ce-maskCanvas"), d(g, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), d(l, "class", "relative"), l.hidden = j = /*$cameraStatusStore*/
|
45
|
-
a[17] !== G.OK || Y() && /*idrndLoading*/
|
46
|
-
(a[11] || /*idrndClosed*/
|
47
|
-
a[12] || /*waitingIdrndCaptureEvent*/
|
48
|
-
a[13]), d(ne, "class", "px-4 sm:px-0 mt-[1em]"), ne.hidden = X = !/*showCaptureButton*/
|
49
|
-
a[1] || Y() && /*idrndLoading*/
|
50
|
-
(a[11] || /*idrndClosed*/
|
51
|
-
a[12] || /*waitingIdrndCaptureEvent*/
|
52
|
-
a[13]), d(t, "class", "relative mx-auto"), d(e, "class", "flex flex-col justify-between");
|
53
|
-
},
|
54
|
-
m(h, V) {
|
55
|
-
O(h, e, V), f(e, t), f(t, l), re && re.m(l, null), f(l, s), de.m(l, null), f(l, r), mt(n, l, null), f(l, u), mt(m, l, null), f(l, I), f(l, T), a[49](T), f(l, p), f(l, R), a[50](R), f(l, P), f(l, g), a[51](g), f(l, v), q && q.m(l, null), f(l, M), z && z.m(l, null), f(t, U), $ && $.m(t, null), f(t, ge), w && w.m(t, null), f(t, oe), f(t, ne), ee.m(ne, null), a[55](e), O(h, B, V), ~S && be[S].m(h, V), O(h, Q, V), W = !0;
|
56
|
-
},
|
57
|
-
p(h, V) {
|
58
|
-
o && re.p(h, V), V[0] & /*unique*/
|
59
|
-
256 && _i(c, c = /*unique*/
|
60
|
-
h[8]) ? (de.d(1), de = li(h), de.c(), de.m(l, r)) : de.p(h, V), /*isCountingDown*/
|
61
|
-
h[7] ? q ? (q.p(h, V), V[0] & /*isCountingDown*/
|
62
|
-
128 && ie(q, 1)) : (q = ai(h), q.c(), ie(q, 1), q.m(l, M)) : q && (ze(), se(q, 1, 1, () => {
|
63
|
-
q = null;
|
64
|
-
}), Xe()), /*$enableFaceApi*/
|
65
|
-
h[26] && !/*isCountingDown*/
|
66
|
-
h[7] && /*faceNotValidated*/
|
67
|
-
h[15] ? z ? (z.p(h, V), V[0] & /*$enableFaceApi, isCountingDown, faceNotValidated*/
|
68
|
-
67141760 && ie(z, 1)) : (z = si(h), z.c(), ie(z, 1), z.m(l, null)) : z && (ze(), se(z, 1, 1, () => {
|
69
|
-
z = null;
|
70
|
-
}), Xe()), (!W || V[0] & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
71
|
-
145408 && j !== (j = /*$cameraStatusStore*/
|
72
|
-
h[17] !== G.OK || Y() && /*idrndLoading*/
|
73
|
-
(h[11] || /*idrndClosed*/
|
74
|
-
h[12] || /*waitingIdrndCaptureEvent*/
|
75
|
-
h[13]))) && (l.hidden = j), V[0] & /*waitingIdrndCaptureEvent*/
|
76
|
-
8192 && (le = Y() && /*waitingIdrndCaptureEvent*/
|
77
|
-
h[13]), le ? $ ? $.p(h, V) : ($ = oi(h), $.c(), $.m(t, ge)) : $ && ($.d(1), $ = null), V[0] & /*idrndLoading, $cameraStatusStore*/
|
78
|
-
133120 && (fe = Y() && /*idrndLoading*/
|
79
|
-
h[11] && /*$cameraStatusStore*/
|
80
|
-
h[17] === G.OK), fe ? w ? w.p(h, V) : (w = ni(h), w.c(), w.m(t, oe)) : w && (w.d(1), w = null), me === (me = ae(h)) && ee ? ee.p(h, V) : (ee.d(1), ee = me(h), ee && (ee.c(), ee.m(ne, null))), (!W || V[0] & /*showCaptureButton, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
81
|
-
14338 && X !== (X = !/*showCaptureButton*/
|
82
|
-
h[1] || Y() && /*idrndLoading*/
|
83
|
-
(h[11] || /*idrndClosed*/
|
84
|
-
h[12] || /*waitingIdrndCaptureEvent*/
|
85
|
-
h[13]))) && (ne.hidden = X);
|
86
|
-
let Ee = S;
|
87
|
-
S = Ie(h), S === Ee ? ~S && be[S].p(h, V) : (C && (ze(), se(be[Ee], 1, 1, () => {
|
88
|
-
be[Ee] = null;
|
89
|
-
}), Xe()), ~S ? (C = be[S], C ? C.p(h, V) : (C = be[S] = Me[S](h), C.c()), ie(C, 1), C.m(Q.parentNode, Q)) : C = null);
|
90
|
-
},
|
91
|
-
i(h) {
|
92
|
-
W || (ie(n.$$.fragment, h), ie(m.$$.fragment, h), ie(q), ie(z), ie(C), W = !0);
|
93
|
-
},
|
94
|
-
o(h) {
|
95
|
-
se(n.$$.fragment, h), se(m.$$.fragment, h), se(q), se(z), se(C), W = !1;
|
96
|
-
},
|
97
|
-
d(h) {
|
98
|
-
h && A(e), re && re.d(), de.d(h), _t(n), _t(m), a[49](null), a[50](null), a[51](null), q && q.d(), z && z.d(), $ && $.d(), w && w.d(), ee.d(), a[55](null), h && A(B), ~S && be[S].d(h), h && A(Q);
|
99
|
-
}
|
100
|
-
};
|
101
|
-
}
|
102
|
-
function Pl(a) {
|
103
|
-
let e, t, l, o, s, c = (
|
104
|
-
/*$isLoadingAPP*/
|
105
|
-
a[28] && fi(a)
|
106
|
-
);
|
107
|
-
return {
|
108
|
-
c() {
|
109
|
-
e = b("slot"), t = b("div"), l = b("img"), s = D(), c && c.c(), Qe(l.src, o = Wt) || d(l, "src", o), d(l, "alt", "loading gif"), d(l, "class", "m-auto h-[10em] lg:h-[12em]"), d(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(e, "name", "obtaining-photo-gif"), d(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
110
|
-
},
|
111
|
-
m(r, n) {
|
112
|
-
O(r, e, n), f(e, t), f(t, l), f(t, s), c && c.m(t, null);
|
113
|
-
},
|
114
|
-
p(r, n) {
|
115
|
-
/*$isLoadingAPP*/
|
116
|
-
r[28] ? c ? c.p(r, n) : (c = fi(r), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
|
117
|
-
},
|
118
|
-
i: x,
|
119
|
-
o: x,
|
120
|
-
d(r) {
|
121
|
-
r && A(e), c && c.d();
|
122
|
-
}
|
123
|
-
};
|
124
|
-
}
|
125
|
-
function Il(a) {
|
126
|
-
let e;
|
127
|
-
return {
|
128
|
-
c() {
|
129
|
-
e = b("idlive-face-capture"), e.hidden = !0, Mt(e, "mask_hidden", ""), Mt(e, "auto_capture_disabled", ""), Mt(e, "auto_close_disabled", "");
|
130
|
-
},
|
131
|
-
m(t, l) {
|
132
|
-
O(t, e, l), a[46](e);
|
133
|
-
},
|
134
|
-
p: x,
|
135
|
-
d(t) {
|
136
|
-
t && A(e), a[46](null);
|
137
|
-
}
|
138
|
-
};
|
139
|
-
}
|
140
|
-
function li(a) {
|
141
|
-
let e, t, l;
|
142
|
-
return {
|
143
|
-
c() {
|
144
|
-
e = b("video"), d(e, "id", "bry-cc-camera-video-tag"), d(e, "class", "absolute -z-10"), e.playsInline = !0, e.muted = !0, e.autoplay = !0;
|
145
|
-
},
|
146
|
-
m(o, s) {
|
147
|
-
O(o, e, s), a[47](e), t || (l = [
|
148
|
-
_e(
|
149
|
-
e,
|
150
|
-
"canplay",
|
151
|
-
/*canplay_handler*/
|
152
|
-
a[48]
|
153
|
-
),
|
154
|
-
_e(
|
155
|
-
e,
|
156
|
-
"play",
|
157
|
-
/*play*/
|
158
|
-
a[3],
|
159
|
-
{ once: !0 }
|
160
|
-
)
|
161
|
-
], t = !0);
|
162
|
-
},
|
163
|
-
p: x,
|
164
|
-
d(o) {
|
165
|
-
o && A(e), a[47](null), t = !1, gt(l);
|
166
|
-
}
|
167
|
-
};
|
168
|
-
}
|
169
|
-
function ai(a) {
|
170
|
-
let e, t, l = (
|
171
|
-
/*$_*/
|
172
|
-
a[29]("faceCollector.stayStill") + ""
|
173
|
-
), o, s, c;
|
174
|
-
return {
|
175
|
-
c() {
|
176
|
-
e = b("div"), t = b("span"), o = F(l), d(t, "class", "absolute left-1/2 -translate-x-1/2 top-[10%] ce-dui-badge ce-dui-badge-lg h-[2em] text-4xl 4xl:text-base w-[12.1em]");
|
177
|
-
},
|
178
|
-
m(r, n) {
|
179
|
-
O(r, e, n), f(e, t), f(t, o), c = !0;
|
180
|
-
},
|
181
|
-
p(r, n) {
|
182
|
-
(!c || n[0] & /*$_*/
|
183
|
-
536870912) && l !== (l = /*$_*/
|
184
|
-
r[29]("faceCollector.stayStill") + "") && K(o, l);
|
185
|
-
},
|
186
|
-
i(r) {
|
187
|
-
c || (bi(() => {
|
188
|
-
c && (s || (s = bt(e, pt, { delay: 250, duration: 300 }, !0)), s.run(1));
|
189
|
-
}), c = !0);
|
190
|
-
},
|
191
|
-
o(r) {
|
192
|
-
s || (s = bt(e, pt, { delay: 250, duration: 300 }, !1)), s.run(0), c = !1;
|
193
|
-
},
|
194
|
-
d(r) {
|
195
|
-
r && A(e), r && s && s.end();
|
196
|
-
}
|
197
|
-
};
|
198
|
-
}
|
199
|
-
function si(a) {
|
200
|
-
let e, t, l = (
|
201
|
-
/*$_*/
|
202
|
-
a[29](`${/*faceValidationAlert*/
|
203
|
-
a[16]}`) + ""
|
204
|
-
), o, s, c;
|
205
|
-
return {
|
206
|
-
c() {
|
207
|
-
e = b("div"), t = b("span"), o = F(l), d(t, "class", "absolute left-1/2 -translate-x-1/2 top-[10%] ce-dui-badge ce-dui-badge-lg h-[2em] text-4xl 4xl:text-base w-[12.1em]");
|
208
|
-
},
|
209
|
-
m(r, n) {
|
210
|
-
O(r, e, n), f(e, t), f(t, o), c = !0;
|
211
|
-
},
|
212
|
-
p(r, n) {
|
213
|
-
(!c || n[0] & /*$_, faceValidationAlert*/
|
214
|
-
536936448) && l !== (l = /*$_*/
|
215
|
-
r[29](`${/*faceValidationAlert*/
|
216
|
-
r[16]}`) + "") && K(o, l);
|
217
|
-
},
|
218
|
-
i(r) {
|
219
|
-
c || (bi(() => {
|
220
|
-
c && (s || (s = bt(e, pt, { delay: 250, duration: 300 }, !0)), s.run(1));
|
221
|
-
}), c = !0);
|
222
|
-
},
|
223
|
-
o(r) {
|
224
|
-
s || (s = bt(e, pt, { delay: 250, duration: 300 }, !1)), s.run(0), c = !1;
|
225
|
-
},
|
226
|
-
d(r) {
|
227
|
-
r && A(e), r && s && s.end();
|
228
|
-
}
|
229
|
-
};
|
230
|
-
}
|
231
|
-
function oi(a) {
|
232
|
-
let e, t, l, o, s;
|
233
|
-
function c(u, m) {
|
234
|
-
return (
|
235
|
-
/*$isLoading*/
|
236
|
-
u[31] ? Ol : Tl
|
237
|
-
);
|
238
|
-
}
|
239
|
-
let r = c(a), n = r(a);
|
240
|
-
return {
|
241
|
-
c() {
|
242
|
-
e = b("slot"), t = b("div"), l = b("img"), s = D(), n.c(), Qe(l.src, o = Wt) || d(l, "src", o), d(l, "alt", "loading gif"), d(l, "class", "m-auto h-[10em] lg:h-[12em]"), d(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(e, "name", "obtaining-photo-gif"), d(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
243
|
-
},
|
244
|
-
m(u, m) {
|
245
|
-
O(u, e, m), f(e, t), f(t, l), f(t, s), n.m(t, null);
|
246
|
-
},
|
247
|
-
p(u, m) {
|
248
|
-
r === (r = c(u)) && n ? n.p(u, m) : (n.d(1), n = r(u), n && (n.c(), n.m(t, null)));
|
249
|
-
},
|
250
|
-
d(u) {
|
251
|
-
u && A(e), n.d();
|
252
|
-
}
|
253
|
-
};
|
254
|
-
}
|
255
|
-
function Tl(a) {
|
256
|
-
let e, t = (
|
257
|
-
/*$_*/
|
258
|
-
a[29]("faceCollector.obtainingPicture") + ""
|
259
|
-
), l;
|
260
|
-
return {
|
261
|
-
c() {
|
262
|
-
e = b("span"), l = F(t), d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
263
|
-
},
|
264
|
-
m(o, s) {
|
265
|
-
O(o, e, s), f(e, l);
|
266
|
-
},
|
267
|
-
p(o, s) {
|
268
|
-
s[0] & /*$_*/
|
269
|
-
536870912 && t !== (t = /*$_*/
|
270
|
-
o[29]("faceCollector.obtainingPicture") + "") && K(l, t);
|
271
|
-
},
|
272
|
-
d(o) {
|
273
|
-
o && A(e);
|
274
|
-
}
|
275
|
-
};
|
276
|
-
}
|
277
|
-
function Ol(a) {
|
278
|
-
let e;
|
279
|
-
return {
|
280
|
-
c() {
|
281
|
-
e = b("span"), e.textContent = "Obtaining photo...", d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
282
|
-
},
|
283
|
-
m(t, l) {
|
284
|
-
O(t, e, l);
|
285
|
-
},
|
286
|
-
p: x,
|
287
|
-
d(t) {
|
288
|
-
t && A(e);
|
289
|
-
}
|
290
|
-
};
|
291
|
-
}
|
292
|
-
function ni(a) {
|
293
|
-
let e, t, l, o, s;
|
294
|
-
function c(u, m) {
|
295
|
-
return (
|
296
|
-
/*$isLoading*/
|
297
|
-
u[31] ? Sl : Al
|
298
|
-
);
|
299
|
-
}
|
300
|
-
let r = c(a), n = r(a);
|
301
|
-
return {
|
302
|
-
c() {
|
303
|
-
e = b("slot"), t = b("div"), l = b("img"), s = D(), n.c(), Qe(l.src, o = Wt) || d(l, "src", o), d(l, "alt", "loading gif"), d(l, "class", "m-auto h-[10em] lg:h-[12em]"), d(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), d(e, "name", "loading-camera-gif"), d(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
304
|
-
},
|
305
|
-
m(u, m) {
|
306
|
-
O(u, e, m), f(e, t), f(t, l), f(t, s), n.m(t, null);
|
307
|
-
},
|
308
|
-
p(u, m) {
|
309
|
-
r === (r = c(u)) && n ? n.p(u, m) : (n.d(1), n = r(u), n && (n.c(), n.m(t, null)));
|
310
|
-
},
|
311
|
-
d(u) {
|
312
|
-
u && A(e), n.d();
|
313
|
-
}
|
314
|
-
};
|
315
|
-
}
|
316
|
-
function Al(a) {
|
317
|
-
let e, t = (
|
318
|
-
/*$_*/
|
319
|
-
a[29]("faceCollector.initiatingCamera") + ""
|
320
|
-
), l;
|
321
|
-
return {
|
322
|
-
c() {
|
323
|
-
e = b("span"), l = F(t), d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
324
|
-
},
|
325
|
-
m(o, s) {
|
326
|
-
O(o, e, s), f(e, l);
|
327
|
-
},
|
328
|
-
p(o, s) {
|
329
|
-
s[0] & /*$_*/
|
330
|
-
536870912 && t !== (t = /*$_*/
|
331
|
-
o[29]("faceCollector.initiatingCamera") + "") && K(l, t);
|
332
|
-
},
|
333
|
-
d(o) {
|
334
|
-
o && A(e);
|
335
|
-
}
|
336
|
-
};
|
337
|
-
}
|
338
|
-
function Sl(a) {
|
339
|
-
let e;
|
340
|
-
return {
|
341
|
-
c() {
|
342
|
-
e = b("span"), e.textContent = "Loading camera...", d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
343
|
-
},
|
344
|
-
m(t, l) {
|
345
|
-
O(t, e, l);
|
346
|
-
},
|
347
|
-
p: x,
|
348
|
-
d(t) {
|
349
|
-
t && A(e);
|
350
|
-
}
|
351
|
-
};
|
352
|
-
}
|
353
|
-
function Ll(a) {
|
354
|
-
let e, t, l = (
|
355
|
-
/*$_*/
|
356
|
-
a[29]("faceCollector.finish") + ""
|
357
|
-
), o, s, c, r, n = (
|
358
|
-
/*$_*/
|
359
|
-
a[29]("faceCollector.retakePhoto") + ""
|
360
|
-
), u, m, I;
|
361
|
-
return {
|
362
|
-
c() {
|
363
|
-
e = b("div"), t = b("button"), o = F(l), c = D(), r = b("button"), u = F(n), t.disabled = s = /*$justification*/
|
364
|
-
a[23].length === 0, d(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), d(r, "id", "bry-cc-retake-button"), d(r, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), d(e, "class", "ce-dui-btn-group flex");
|
365
|
-
},
|
366
|
-
m(T, p) {
|
367
|
-
O(T, e, p), f(e, t), f(t, o), f(e, c), f(e, r), f(r, u), m || (I = [
|
368
|
-
_e(
|
369
|
-
t,
|
370
|
-
"click",
|
371
|
-
/*click_handler_1*/
|
372
|
-
a[53]
|
373
|
-
),
|
374
|
-
_e(
|
375
|
-
r,
|
376
|
-
"click",
|
377
|
-
/*click_handler_2*/
|
378
|
-
a[54]
|
379
|
-
)
|
380
|
-
], m = !0);
|
381
|
-
},
|
382
|
-
p(T, p) {
|
383
|
-
p[0] & /*$_*/
|
384
|
-
536870912 && l !== (l = /*$_*/
|
385
|
-
T[29]("faceCollector.finish") + "") && K(o, l), p[0] & /*$justification*/
|
386
|
-
8388608 && s !== (s = /*$justification*/
|
387
|
-
T[23].length === 0) && (t.disabled = s), p[0] & /*$_*/
|
388
|
-
536870912 && n !== (n = /*$_*/
|
389
|
-
T[29]("faceCollector.retakePhoto") + "") && K(u, n);
|
390
|
-
},
|
391
|
-
d(T) {
|
392
|
-
T && A(e), m = !1, gt(I);
|
393
|
-
}
|
394
|
-
};
|
395
|
-
}
|
396
|
-
function Fl(a) {
|
397
|
-
let e, t, l, o, s;
|
398
|
-
function c(u, m) {
|
399
|
-
return (
|
400
|
-
/*$isLoading*/
|
401
|
-
u[31] ? Dl : Nl
|
402
|
-
);
|
403
|
-
}
|
404
|
-
let r = c(a), n = r(a);
|
405
|
-
return {
|
406
|
-
c() {
|
407
|
-
e = b("button"), n.c(), d(e, "id", "bry-cc-capture-btn"), e.disabled = t = !/*$faceFound*/
|
408
|
-
a[30] && /*$enableFaceApi*/
|
409
|
-
a[26] || !/*$ready*/
|
410
|
-
a[27] && !/*$enableFaceApi*/
|
411
|
-
a[26], e.hidden = l = !/*showCaptureButton*/
|
412
|
-
a[1], d(e, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-primary text-xl");
|
413
|
-
},
|
414
|
-
m(u, m) {
|
415
|
-
O(u, e, m), n.m(e, null), o || (s = _e(
|
416
|
-
e,
|
417
|
-
"click",
|
418
|
-
/*click_handler*/
|
419
|
-
a[52]
|
420
|
-
), o = !0);
|
421
|
-
},
|
422
|
-
p(u, m) {
|
423
|
-
r === (r = c(u)) && n ? n.p(u, m) : (n.d(1), n = r(u), n && (n.c(), n.m(e, null))), m[0] & /*$faceFound, $enableFaceApi, $ready*/
|
424
|
-
1275068416 && t !== (t = !/*$faceFound*/
|
425
|
-
u[30] && /*$enableFaceApi*/
|
426
|
-
u[26] || !/*$ready*/
|
427
|
-
u[27] && !/*$enableFaceApi*/
|
428
|
-
u[26]) && (e.disabled = t), m[0] & /*showCaptureButton*/
|
429
|
-
2 && l !== (l = !/*showCaptureButton*/
|
430
|
-
u[1]) && (e.hidden = l);
|
431
|
-
},
|
432
|
-
d(u) {
|
433
|
-
u && A(e), n.d(), o = !1, s();
|
434
|
-
}
|
435
|
-
};
|
436
|
-
}
|
437
|
-
function Nl(a) {
|
438
|
-
let e = (
|
439
|
-
/*$_*/
|
440
|
-
a[29]("faceCollector.takePicture") + ""
|
441
|
-
), t;
|
442
|
-
return {
|
443
|
-
c() {
|
444
|
-
t = F(e);
|
445
|
-
},
|
446
|
-
m(l, o) {
|
447
|
-
O(l, t, o);
|
448
|
-
},
|
449
|
-
p(l, o) {
|
450
|
-
o[0] & /*$_*/
|
451
|
-
536870912 && e !== (e = /*$_*/
|
452
|
-
l[29]("faceCollector.takePicture") + "") && K(t, e);
|
453
|
-
},
|
454
|
-
d(l) {
|
455
|
-
l && A(t);
|
456
|
-
}
|
457
|
-
};
|
458
|
-
}
|
459
|
-
function Dl(a) {
|
460
|
-
let e;
|
461
|
-
return {
|
462
|
-
c() {
|
463
|
-
e = F("Take picture");
|
464
|
-
},
|
465
|
-
m(t, l) {
|
466
|
-
O(t, e, l);
|
467
|
-
},
|
468
|
-
p: x,
|
469
|
-
d(t) {
|
470
|
-
t && A(e);
|
471
|
-
}
|
472
|
-
};
|
473
|
-
}
|
474
|
-
function Ml(a) {
|
475
|
-
let e, t;
|
476
|
-
return e = new Rl({ props: { handler: (
|
477
|
-
/*func*/
|
478
|
-
a[63]
|
479
|
-
) } }), {
|
480
|
-
c() {
|
481
|
-
dt(e.$$.fragment);
|
482
|
-
},
|
483
|
-
m(l, o) {
|
484
|
-
mt(e, l, o), t = !0;
|
485
|
-
},
|
486
|
-
p: x,
|
487
|
-
i(l) {
|
488
|
-
t || (ie(e.$$.fragment, l), t = !0);
|
489
|
-
},
|
490
|
-
o(l) {
|
491
|
-
se(e.$$.fragment, l), t = !1;
|
492
|
-
},
|
493
|
-
d(l) {
|
494
|
-
_t(e, l);
|
495
|
-
}
|
496
|
-
};
|
497
|
-
}
|
498
|
-
function Wl(a) {
|
499
|
-
let e, t, l, o, s, c, r, n, u;
|
500
|
-
const m = [
|
501
|
-
Hl,
|
502
|
-
Bl,
|
503
|
-
Kl,
|
504
|
-
Vl,
|
505
|
-
Ul
|
506
|
-
], I = [];
|
507
|
-
function T(p, R) {
|
508
|
-
return (
|
509
|
-
/*$captured*/
|
510
|
-
p[19] ? (
|
511
|
-
/*$unconformitiesStore*/
|
512
|
-
p[20].isLoading ? 1 : (
|
513
|
-
/*$requestResult*/
|
514
|
-
p[21] !== Z.OK ? 2 : (
|
515
|
-
/*$saved*/
|
516
|
-
p[22] ? 4 : 3
|
517
|
-
)
|
518
|
-
)
|
519
|
-
) : 0
|
520
|
-
);
|
521
|
-
}
|
522
|
-
return c = T(a), r = I[c] = m[c](a), {
|
523
|
-
c() {
|
524
|
-
e = b("div"), t = b("img"), s = D(), r.c(), d(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), Qe(t.src, l = /*$dataTypePrefix*/
|
525
|
-
a[25] + "," + /*$image*/
|
526
|
-
a[24]) || d(t, "src", l), t.hidden = o = !/*$captured*/
|
527
|
-
a[19] || !/*$showFaceWhileValidating*/
|
528
|
-
a[32] && /*$unconformitiesStore*/
|
529
|
-
a[20].isLoading, d(t, "alt", ""), d(e, "class", n = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
530
|
-
a[32] && /*$unconformitiesStore*/
|
531
|
-
a[20].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid m-[1em] overflow-hidden"));
|
532
|
-
},
|
533
|
-
m(p, R) {
|
534
|
-
O(p, e, R), f(e, t), f(e, s), I[c].m(e, null), u = !0;
|
535
|
-
},
|
536
|
-
p(p, R) {
|
537
|
-
(!u || R[0] & /*$dataTypePrefix, $image*/
|
538
|
-
50331648 && !Qe(t.src, l = /*$dataTypePrefix*/
|
539
|
-
p[25] + "," + /*$image*/
|
540
|
-
p[24])) && d(t, "src", l), (!u || R[0] & /*$captured, $unconformitiesStore*/
|
541
|
-
1572864 | R[1] & /*$showFaceWhileValidating*/
|
542
|
-
2 && o !== (o = !/*$captured*/
|
543
|
-
p[19] || !/*$showFaceWhileValidating*/
|
544
|
-
p[32] && /*$unconformitiesStore*/
|
545
|
-
p[20].isLoading)) && (t.hidden = o);
|
546
|
-
let P = c;
|
547
|
-
c = T(p), c === P ? I[c].p(p, R) : (ze(), se(I[P], 1, 1, () => {
|
548
|
-
I[P] = null;
|
549
|
-
}), Xe(), r = I[c], r ? r.p(p, R) : (r = I[c] = m[c](p), r.c()), ie(r, 1), r.m(e, null)), (!u || R[0] & /*$unconformitiesStore*/
|
550
|
-
1048576 | R[1] & /*$showFaceWhileValidating*/
|
551
|
-
2 && n !== (n = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
552
|
-
p[32] && /*$unconformitiesStore*/
|
553
|
-
p[20].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid m-[1em] overflow-hidden"))) && d(e, "class", n);
|
554
|
-
},
|
555
|
-
i(p) {
|
556
|
-
u || (ie(r), u = !0);
|
557
|
-
},
|
558
|
-
o(p) {
|
559
|
-
se(r), u = !1;
|
560
|
-
},
|
561
|
-
d(p) {
|
562
|
-
p && A(e), I[c].d();
|
563
|
-
}
|
564
|
-
};
|
565
|
-
}
|
566
|
-
function Ul(a) {
|
567
|
-
let e, t, l = (
|
568
|
-
/*$_*/
|
569
|
-
a[29]("faceCollector.captured") + ""
|
570
|
-
), o, s, c, r, n, u = (
|
571
|
-
/*$_*/
|
572
|
-
a[29]("faceCollector.retakePhoto") + ""
|
573
|
-
), m, I, T = ft(vl).faceStrategy !== kl.DISABLED, p, R, P, g = (
|
574
|
-
/*$unconformitiesStore*/
|
575
|
-
a[20].unconformities.length !== 0 && ri(a)
|
576
|
-
), v = T && jl();
|
577
|
-
return {
|
578
|
-
c() {
|
579
|
-
e = b("div"), t = b("h1"), o = F(l), s = D(), g && g.c(), c = D(), r = b("div"), n = b("button"), m = F(u), I = D(), v && v.c(), d(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), d(n, "id", "bry-cc-retake-button"), d(n, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), d(r, "class", "flex flex-row"), ti(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
580
|
-
a[33]);
|
581
|
-
},
|
582
|
-
m(M, j) {
|
583
|
-
O(M, e, j), f(e, t), f(t, o), f(e, s), g && g.m(e, null), f(e, c), f(e, r), f(r, n), f(n, m), f(r, I), v && v.m(r, null), p = !0, R || (P = _e(
|
584
|
-
n,
|
585
|
-
"click",
|
586
|
-
/*click_handler_7*/
|
587
|
-
a[62]
|
588
|
-
), R = !0);
|
589
|
-
},
|
590
|
-
p(M, j) {
|
591
|
-
(!p || j[0] & /*$_*/
|
592
|
-
536870912) && l !== (l = /*$_*/
|
593
|
-
M[29]("faceCollector.captured") + "") && K(o, l), /*$unconformitiesStore*/
|
594
|
-
M[20].unconformities.length !== 0 ? g ? g.p(M, j) : (g = ri(M), g.c(), g.m(e, c)) : g && (g.d(1), g = null), (!p || j[0] & /*$_*/
|
595
|
-
536870912) && u !== (u = /*$_*/
|
596
|
-
M[29]("faceCollector.retakePhoto") + "") && K(m, u), (!p || j[1] & /*$exportButtonDisabled*/
|
597
|
-
4) && ti(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
598
|
-
M[33]);
|
599
|
-
},
|
600
|
-
i(M) {
|
601
|
-
p || (ie(v), p = !0);
|
602
|
-
},
|
603
|
-
o(M) {
|
604
|
-
se(v), p = !1;
|
605
|
-
},
|
606
|
-
d(M) {
|
607
|
-
M && A(e), g && g.d(), v && v.d(), R = !1, P();
|
608
|
-
}
|
609
|
-
};
|
610
|
-
}
|
611
|
-
function Vl(a) {
|
612
|
-
let e, t, l = (
|
613
|
-
/*$_*/
|
614
|
-
a[29]("faceCollector.unconformities") + ""
|
615
|
-
), o, s, c, r, n, u, m, I = (
|
616
|
-
/*$_*/
|
617
|
-
a[29]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
618
|
-
), T, p, R, P, g, v, M, j, U = (
|
619
|
-
/*$_*/
|
620
|
-
a[29]("faceCollector.thisInformationIsRequired") + ""
|
621
|
-
), le, ge, fe, oe, ne, X = (
|
622
|
-
/*$unconformitiesStore*/
|
623
|
-
a[20].unconformities
|
624
|
-
), B = [];
|
625
|
-
for (let C = 0; C < X.length; C += 1)
|
626
|
-
B[C] = ci(ii(a, X, C));
|
627
|
-
let S = (
|
628
|
-
/*$captured*/
|
629
|
-
a[19] && ui(a)
|
630
|
-
);
|
631
|
-
return {
|
632
|
-
c() {
|
633
|
-
e = b("div"), t = b("h1"), o = F(l), s = D(), c = b("div");
|
634
|
-
for (let C = 0; C < B.length; C += 1)
|
635
|
-
B[C].c();
|
636
|
-
r = D(), n = b("div"), u = b("label"), m = b("span"), T = F(I), p = D(), R = b("textarea"), g = D(), v = b("label"), M = b("span"), j = F("("), le = F(U), ge = F(")"), fe = D(), S && S.c(), d(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), d(c, "class", "flex flex-wrap"), d(m, "class", "ce-dui-label-text text-base"), d(u, "class", "ce-dui-label"), d(u, "for", "justification"), d(R, "contenteditable", ""), d(R, "id", "justification"), d(R, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), d(R, "placeholder", P = /*$_*/
|
637
|
-
a[29]("faceCollector.yourJustification")), d(M, "class", "ce-dui-label-text-alt text-base"), d(v, "class", "ce-dui-label"), d(v, "for", "justification"), d(n, "class", "ce-dui-form-control mt-[2.5em]");
|
638
|
-
},
|
639
|
-
m(C, Q) {
|
640
|
-
O(C, e, Q), f(e, t), f(t, o), f(e, s), f(e, c);
|
641
|
-
for (let W = 0; W < B.length; W += 1)
|
642
|
-
B[W] && B[W].m(c, null);
|
643
|
-
f(e, r), f(e, n), f(n, u), f(u, m), f(m, T), f(n, p), f(n, R), ht(
|
644
|
-
R,
|
645
|
-
/*$justification*/
|
646
|
-
a[23]
|
647
|
-
), f(n, g), f(n, v), f(v, M), f(M, j), f(M, le), f(M, ge), f(e, fe), S && S.m(e, null), oe || (ne = _e(
|
648
|
-
R,
|
649
|
-
"input",
|
650
|
-
/*textarea_input_handler*/
|
651
|
-
a[58]
|
652
|
-
), oe = !0);
|
653
|
-
},
|
654
|
-
p(C, Q) {
|
655
|
-
if (Q[0] & /*$_*/
|
656
|
-
536870912 && l !== (l = /*$_*/
|
657
|
-
C[29]("faceCollector.unconformities") + "") && K(o, l), Q[0] & /*$unconformitiesStore*/
|
658
|
-
1048576) {
|
659
|
-
X = /*$unconformitiesStore*/
|
660
|
-
C[20].unconformities;
|
661
|
-
let W;
|
662
|
-
for (W = 0; W < X.length; W += 1) {
|
663
|
-
const re = ii(C, X, W);
|
664
|
-
B[W] ? B[W].p(re, Q) : (B[W] = ci(re), B[W].c(), B[W].m(c, null));
|
665
|
-
}
|
666
|
-
for (; W < B.length; W += 1)
|
667
|
-
B[W].d(1);
|
668
|
-
B.length = X.length;
|
669
|
-
}
|
670
|
-
Q[0] & /*$_*/
|
671
|
-
536870912 && I !== (I = /*$_*/
|
672
|
-
C[29]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && K(T, I), Q[0] & /*$_*/
|
673
|
-
536870912 && P !== (P = /*$_*/
|
674
|
-
C[29]("faceCollector.yourJustification")) && d(R, "placeholder", P), Q[0] & /*$justification*/
|
675
|
-
8388608 && ht(
|
676
|
-
R,
|
677
|
-
/*$justification*/
|
678
|
-
C[23]
|
679
|
-
), Q[0] & /*$_*/
|
680
|
-
536870912 && U !== (U = /*$_*/
|
681
|
-
C[29]("faceCollector.thisInformationIsRequired") + "") && K(le, U), /*$captured*/
|
682
|
-
C[19] ? S ? S.p(C, Q) : (S = ui(C), S.c(), S.m(e, null)) : S && (S.d(1), S = null);
|
683
|
-
},
|
684
|
-
i: x,
|
685
|
-
o: x,
|
686
|
-
d(C) {
|
687
|
-
C && A(e), wl(B, C), S && S.d(), oe = !1, ne();
|
688
|
-
}
|
689
|
-
};
|
690
|
-
}
|
691
|
-
function Kl(a) {
|
692
|
-
let e, t, l, o, s = (
|
693
|
-
/*$_*/
|
694
|
-
a[29]("faceCollector.finish") + ""
|
695
|
-
), c, r, n, u = (
|
696
|
-
/*$_*/
|
697
|
-
a[29]("faceCollector.retakePhoto") + ""
|
698
|
-
), m, I, T;
|
699
|
-
function p(g, v) {
|
700
|
-
return (
|
701
|
-
/*$requestResult*/
|
702
|
-
g[21] === Z.LIVENESS_DETECTION_FAILURE || /*$requestResult*/
|
703
|
-
g[21] === Z.UNKNOWN_LIVENESS_ERROR ? Jl : (
|
704
|
-
/*$requestResult*/
|
705
|
-
g[21] === Z.LOW_LIVENESS_SCORE ? Ql : (
|
706
|
-
/*$requestResult*/
|
707
|
-
g[21] === Z.TEMPLATE_EXTRACTION_ERROR || /*$requestResult*/
|
708
|
-
g[21] === Z.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ? Xl : (
|
709
|
-
/*$requestResult*/
|
710
|
-
g[21] === Z.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ? zl : ql
|
711
|
-
)
|
712
|
-
)
|
713
|
-
)
|
714
|
-
);
|
715
|
-
}
|
716
|
-
let R = p(a), P = R(a);
|
717
|
-
return {
|
718
|
-
c() {
|
719
|
-
e = b("div"), P.c(), t = D(), l = b("div"), o = b("button"), c = F(s), r = D(), n = b("button"), m = F(u), o.disabled = !0, d(o, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), d(n, "id", "bry-cc-retake-button"), d(n, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), d(l, "class", "ce-dui-btn-group flex"), d(e, "class", "flex flex-col justify-between");
|
720
|
-
},
|
721
|
-
m(g, v) {
|
722
|
-
O(g, e, v), P.m(e, null), f(e, t), f(e, l), f(l, o), f(o, c), f(l, r), f(l, n), f(n, m), I || (T = [
|
723
|
-
_e(
|
724
|
-
o,
|
725
|
-
"click",
|
726
|
-
/*click_handler_3*/
|
727
|
-
a[56]
|
728
|
-
),
|
729
|
-
_e(
|
730
|
-
n,
|
731
|
-
"click",
|
732
|
-
/*click_handler_4*/
|
733
|
-
a[57]
|
734
|
-
)
|
735
|
-
], I = !0);
|
736
|
-
},
|
737
|
-
p(g, v) {
|
738
|
-
R === (R = p(g)) && P ? P.p(g, v) : (P.d(1), P = R(g), P && (P.c(), P.m(e, t))), v[0] & /*$_*/
|
739
|
-
536870912 && s !== (s = /*$_*/
|
740
|
-
g[29]("faceCollector.finish") + "") && K(c, s), v[0] & /*$_*/
|
741
|
-
536870912 && u !== (u = /*$_*/
|
742
|
-
g[29]("faceCollector.retakePhoto") + "") && K(m, u);
|
743
|
-
},
|
744
|
-
i: x,
|
745
|
-
o: x,
|
746
|
-
d(g) {
|
747
|
-
g && A(e), P.d(), I = !1, gt(T);
|
748
|
-
}
|
749
|
-
};
|
750
|
-
}
|
751
|
-
function Bl(a) {
|
752
|
-
let e, t, l = (
|
753
|
-
/*$_*/
|
754
|
-
a[29]("faceCollector.validating") + ""
|
755
|
-
), o, s, c;
|
756
|
-
return {
|
757
|
-
c() {
|
758
|
-
e = b("div"), t = b("h1"), o = F(l), s = D(), c = b("div"), d(t, "class", "inline-block text-3xl font-bold pb-[1em] transition-opacity"), d(c, "class", "ml-6 inline-block dot-typing"), d(e, "class", "min-w-[200px]");
|
759
|
-
},
|
760
|
-
m(r, n) {
|
761
|
-
O(r, e, n), f(e, t), f(t, o), f(e, s), f(e, c);
|
762
|
-
},
|
763
|
-
p(r, n) {
|
764
|
-
n[0] & /*$_*/
|
765
|
-
536870912 && l !== (l = /*$_*/
|
766
|
-
r[29]("faceCollector.validating") + "") && K(o, l);
|
767
|
-
},
|
768
|
-
i: x,
|
769
|
-
o: x,
|
770
|
-
d(r) {
|
771
|
-
r && A(e);
|
772
|
-
}
|
773
|
-
};
|
774
|
-
}
|
775
|
-
function Hl(a) {
|
776
|
-
let e;
|
777
|
-
return {
|
778
|
-
c() {
|
779
|
-
e = b("div"), d(e, "class", "");
|
780
|
-
},
|
781
|
-
m(t, l) {
|
782
|
-
O(t, e, l);
|
783
|
-
},
|
784
|
-
p: x,
|
785
|
-
i: x,
|
786
|
-
o: x,
|
787
|
-
d(t) {
|
788
|
-
t && A(e);
|
789
|
-
}
|
790
|
-
};
|
791
|
-
}
|
792
|
-
function ri(a) {
|
793
|
-
let e, t, l = (
|
794
|
-
/*$_*/
|
795
|
-
a[29]("faceCollector.justification") + ""
|
796
|
-
), o, s, c, r, n;
|
797
|
-
return {
|
798
|
-
c() {
|
799
|
-
e = b("label"), t = b("span"), o = F(l), s = D(), c = b("textarea"), d(t, "class", "ce-dui-label-text text-base"), d(e, "class", "ce-dui-label"), d(e, "for", "justification"), d(c, "contenteditable", ""), d(c, "id", "justification"), d(c, "class", "ce-dui-textarea ce-dui-textarea-bordered textarea-ghost h-[6em] w-full text-base");
|
800
|
-
},
|
801
|
-
m(u, m) {
|
802
|
-
O(u, e, m), f(e, t), f(t, o), O(u, s, m), O(u, c, m), ht(
|
803
|
-
c,
|
804
|
-
/*$justification*/
|
805
|
-
a[23]
|
806
|
-
), r || (n = _e(
|
807
|
-
c,
|
808
|
-
"input",
|
809
|
-
/*textarea_input_handler_1*/
|
810
|
-
a[61]
|
811
|
-
), r = !0);
|
812
|
-
},
|
813
|
-
p(u, m) {
|
814
|
-
m[0] & /*$_*/
|
815
|
-
536870912 && l !== (l = /*$_*/
|
816
|
-
u[29]("faceCollector.justification") + "") && K(o, l), m[0] & /*$justification*/
|
817
|
-
8388608 && ht(
|
818
|
-
c,
|
819
|
-
/*$justification*/
|
820
|
-
u[23]
|
821
|
-
);
|
822
|
-
},
|
823
|
-
d(u) {
|
824
|
-
u && A(e), u && A(s), u && A(c), r = !1, n();
|
825
|
-
}
|
826
|
-
};
|
827
|
-
}
|
828
|
-
function jl(a) {
|
829
|
-
let e, t;
|
830
|
-
return e = new Cl({
|
831
|
-
props: { cssClass: "ce-dui-btn-block flex-shrink" }
|
832
|
-
}), {
|
833
|
-
c() {
|
834
|
-
dt(e.$$.fragment);
|
835
|
-
},
|
836
|
-
m(l, o) {
|
837
|
-
mt(e, l, o), t = !0;
|
838
|
-
},
|
839
|
-
i(l) {
|
840
|
-
t || (ie(e.$$.fragment, l), t = !0);
|
841
|
-
},
|
842
|
-
o(l) {
|
843
|
-
se(e.$$.fragment, l), t = !1;
|
844
|
-
},
|
845
|
-
d(l) {
|
846
|
-
_t(e, l);
|
847
|
-
}
|
848
|
-
};
|
849
|
-
}
|
850
|
-
function ci(a) {
|
851
|
-
let e, t = (
|
852
|
-
/*unconformity*/
|
853
|
-
a[106] + ""
|
854
|
-
), l, o;
|
855
|
-
return {
|
856
|
-
c() {
|
857
|
-
e = b("div"), l = F(t), o = D(), d(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
858
|
-
},
|
859
|
-
m(s, c) {
|
860
|
-
O(s, e, c), f(e, l), f(e, o);
|
861
|
-
},
|
862
|
-
p(s, c) {
|
863
|
-
c[0] & /*$unconformitiesStore*/
|
864
|
-
1048576 && t !== (t = /*unconformity*/
|
865
|
-
s[106] + "") && K(l, t);
|
866
|
-
},
|
867
|
-
d(s) {
|
868
|
-
s && A(e);
|
869
|
-
}
|
870
|
-
};
|
871
|
-
}
|
872
|
-
function ui(a) {
|
873
|
-
let e, t, l = (
|
874
|
-
/*$_*/
|
875
|
-
a[29]("faceCollector.finish") + ""
|
876
|
-
), o, s, c, r, n = (
|
877
|
-
/*$_*/
|
878
|
-
a[29]("faceCollector.retakePhoto") + ""
|
879
|
-
), u, m, I;
|
880
|
-
return {
|
881
|
-
c() {
|
882
|
-
e = b("div"), t = b("button"), o = F(l), c = D(), r = b("button"), u = F(n), t.disabled = s = /*$justification*/
|
883
|
-
a[23].length === 0, d(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink text-base"), d(r, "id", "bry-cc-retake-button"), d(r, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink text-base"), d(e, "class", "ce-dui-btn-group flex");
|
884
|
-
},
|
885
|
-
m(T, p) {
|
886
|
-
O(T, e, p), f(e, t), f(t, o), f(e, c), f(e, r), f(r, u), m || (I = [
|
887
|
-
_e(
|
888
|
-
t,
|
889
|
-
"click",
|
890
|
-
/*click_handler_5*/
|
891
|
-
a[59]
|
892
|
-
),
|
893
|
-
_e(
|
894
|
-
r,
|
895
|
-
"click",
|
896
|
-
/*click_handler_6*/
|
897
|
-
a[60]
|
898
|
-
)
|
899
|
-
], m = !0);
|
900
|
-
},
|
901
|
-
p(T, p) {
|
902
|
-
p[0] & /*$_*/
|
903
|
-
536870912 && l !== (l = /*$_*/
|
904
|
-
T[29]("faceCollector.finish") + "") && K(o, l), p[0] & /*$justification*/
|
905
|
-
8388608 && s !== (s = /*$justification*/
|
906
|
-
T[23].length === 0) && (t.disabled = s), p[0] & /*$_*/
|
907
|
-
536870912 && n !== (n = /*$_*/
|
908
|
-
T[29]("faceCollector.retakePhoto") + "") && K(u, n);
|
909
|
-
},
|
910
|
-
d(T) {
|
911
|
-
T && A(e), m = !1, gt(I);
|
912
|
-
}
|
913
|
-
};
|
914
|
-
}
|
915
|
-
function ql(a) {
|
916
|
-
let e, t = (
|
917
|
-
/*$_*/
|
918
|
-
a[29]("faceCollector.everythingOk") + ""
|
919
|
-
), l;
|
920
|
-
return {
|
921
|
-
c() {
|
922
|
-
e = b("h1"), l = F(t), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
|
923
|
-
},
|
924
|
-
m(o, s) {
|
925
|
-
O(o, e, s), f(e, l);
|
926
|
-
},
|
927
|
-
p(o, s) {
|
928
|
-
s[0] & /*$_*/
|
929
|
-
536870912 && t !== (t = /*$_*/
|
930
|
-
o[29]("faceCollector.everythingOk") + "") && K(l, t);
|
931
|
-
},
|
932
|
-
d(o) {
|
933
|
-
o && A(e);
|
934
|
-
}
|
935
|
-
};
|
936
|
-
}
|
937
|
-
function zl(a) {
|
938
|
-
let e, t = (
|
939
|
-
/*$_*/
|
940
|
-
a[29]("faceCollector.unableToCompleteRequest") + ""
|
941
|
-
), l;
|
942
|
-
return {
|
943
|
-
c() {
|
944
|
-
e = b("h1"), l = F(t), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
945
|
-
},
|
946
|
-
m(o, s) {
|
947
|
-
O(o, e, s), f(e, l);
|
948
|
-
},
|
949
|
-
p(o, s) {
|
950
|
-
s[0] & /*$_*/
|
951
|
-
536870912 && t !== (t = /*$_*/
|
952
|
-
o[29]("faceCollector.unableToCompleteRequest") + "") && K(l, t);
|
953
|
-
},
|
954
|
-
d(o) {
|
955
|
-
o && A(e);
|
956
|
-
}
|
957
|
-
};
|
958
|
-
}
|
959
|
-
function Xl(a) {
|
960
|
-
let e, t = (
|
961
|
-
/*$_*/
|
962
|
-
a[29]("faceCollector.lowQualityCapture") + ""
|
963
|
-
), l;
|
964
|
-
return {
|
965
|
-
c() {
|
966
|
-
e = b("h1"), l = F(t), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
967
|
-
},
|
968
|
-
m(o, s) {
|
969
|
-
O(o, e, s), f(e, l);
|
970
|
-
},
|
971
|
-
p(o, s) {
|
972
|
-
s[0] & /*$_*/
|
973
|
-
536870912 && t !== (t = /*$_*/
|
974
|
-
o[29]("faceCollector.lowQualityCapture") + "") && K(l, t);
|
975
|
-
},
|
976
|
-
d(o) {
|
977
|
-
o && A(e);
|
978
|
-
}
|
979
|
-
};
|
980
|
-
}
|
981
|
-
function Ql(a) {
|
982
|
-
let e, t = (
|
983
|
-
/*$_*/
|
984
|
-
a[29]("liveness.error.error") + ""
|
985
|
-
), l, o, s = (
|
986
|
-
/*$_*/
|
987
|
-
a[29]("faceCollector.unaliveCapture") + ""
|
988
|
-
), c;
|
989
|
-
return {
|
990
|
-
c() {
|
991
|
-
e = b("h1"), l = F(t), o = F(": "), c = F(s), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
992
|
-
},
|
993
|
-
m(r, n) {
|
994
|
-
O(r, e, n), f(e, l), f(e, o), f(e, c);
|
995
|
-
},
|
996
|
-
p(r, n) {
|
997
|
-
n[0] & /*$_*/
|
998
|
-
536870912 && t !== (t = /*$_*/
|
999
|
-
r[29]("liveness.error.error") + "") && K(l, t), n[0] & /*$_*/
|
1000
|
-
536870912 && s !== (s = /*$_*/
|
1001
|
-
r[29]("faceCollector.unaliveCapture") + "") && K(c, s);
|
1002
|
-
},
|
1003
|
-
d(r) {
|
1004
|
-
r && A(e);
|
1005
|
-
}
|
1006
|
-
};
|
1007
|
-
}
|
1008
|
-
function Jl(a) {
|
1009
|
-
let e, t = (
|
1010
|
-
/*$_*/
|
1011
|
-
a[29]("liveness.error.error") + ""
|
1012
|
-
), l, o, s = (
|
1013
|
-
/*$_*/
|
1014
|
-
a[29](
|
1015
|
-
/*livenessError*/
|
1016
|
-
a[14]
|
1017
|
-
) + ""
|
1018
|
-
), c, r;
|
1019
|
-
return {
|
1020
|
-
c() {
|
1021
|
-
e = b("h1"), l = F(t), o = F(": "), c = F(s), r = F("."), d(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
1022
|
-
},
|
1023
|
-
m(n, u) {
|
1024
|
-
O(n, e, u), f(e, l), f(e, o), f(e, c), f(e, r);
|
1025
|
-
},
|
1026
|
-
p(n, u) {
|
1027
|
-
u[0] & /*$_*/
|
1028
|
-
536870912 && t !== (t = /*$_*/
|
1029
|
-
n[29]("liveness.error.error") + "") && K(l, t), u[0] & /*$_, livenessError*/
|
1030
|
-
536887296 && s !== (s = /*$_*/
|
1031
|
-
n[29](
|
1032
|
-
/*livenessError*/
|
1033
|
-
n[14]
|
1034
|
-
) + "") && K(c, s);
|
1035
|
-
},
|
1036
|
-
d(n) {
|
1037
|
-
n && A(e);
|
1038
|
-
}
|
1039
|
-
};
|
1040
|
-
}
|
1041
|
-
function fi(a) {
|
1042
|
-
let e, t = (
|
1043
|
-
/*$_*/
|
1044
|
-
a[29]("faceCollector.loading") + ""
|
1045
|
-
), l;
|
1046
|
-
return {
|
1047
|
-
c() {
|
1048
|
-
e = b("span"), l = F(t), d(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
1049
|
-
},
|
1050
|
-
m(o, s) {
|
1051
|
-
O(o, e, s), f(e, l);
|
1052
|
-
},
|
1053
|
-
p(o, s) {
|
1054
|
-
s[0] & /*$_*/
|
1055
|
-
536870912 && t !== (t = /*$_*/
|
1056
|
-
o[29]("faceCollector.loading") + "") && K(l, t);
|
1057
|
-
},
|
1058
|
-
d(o) {
|
1059
|
-
o && A(e);
|
1060
|
-
}
|
1061
|
-
};
|
1062
|
-
}
|
1063
|
-
function Gl(a) {
|
1064
|
-
let e, t, l, o, s;
|
1065
|
-
const c = [Pl, yl], r = [];
|
1066
|
-
function n(u, m) {
|
1067
|
-
return m[0] & /*$isLoadingAPP*/
|
1068
|
-
268435456 && (t = null), t == null && (t = !!/*$isLoadingAPP*/
|
1069
|
-
(u[28] && !Y())), t ? 0 : 1;
|
1070
|
-
}
|
1071
|
-
return l = n(a, [-1, -1, -1, -1]), o = r[l] = c[l](a), {
|
1072
|
-
c() {
|
1073
|
-
e = b("div"), o.c(), this.c = x;
|
1074
|
-
},
|
1075
|
-
m(u, m) {
|
1076
|
-
O(u, e, m), r[l].m(e, null), s = !0;
|
1077
|
-
},
|
1078
|
-
p(u, m) {
|
1079
|
-
let I = l;
|
1080
|
-
l = n(u, m), l === I ? r[l].p(u, m) : (ze(), se(r[I], 1, 1, () => {
|
1081
|
-
r[I] = null;
|
1082
|
-
}), Xe(), o = r[l], o ? o.p(u, m) : (o = r[l] = c[l](u), o.c()), ie(o, 1), o.m(e, null));
|
1083
|
-
},
|
1084
|
-
i(u) {
|
1085
|
-
s || (ie(o), s = !0);
|
1086
|
-
},
|
1087
|
-
o(u) {
|
1088
|
-
se(o), s = !1;
|
1089
|
-
},
|
1090
|
-
d(u) {
|
1091
|
-
u && A(e), r[l].d();
|
1092
|
-
}
|
1093
|
-
};
|
1094
|
-
}
|
1095
|
-
let Yl = 5, di = 3e3;
|
1096
|
-
function mi(a, e, t) {
|
1097
|
-
const l = e.videoHeight >= e.videoWidth && t.height >= t.width || e.videoHeight < e.videoWidth && t.height < t.width;
|
1098
|
-
a.drawImage(
|
1099
|
-
e,
|
1100
|
-
l ? 0 : e.videoWidth / 2 - t.width,
|
1101
|
-
0,
|
1102
|
-
l ? e.videoWidth : e.videoHeight * (t.width / t.height),
|
1103
|
-
e.videoHeight,
|
1104
|
-
0,
|
1105
|
-
0,
|
1106
|
-
t.width,
|
1107
|
-
t.height
|
1108
|
-
);
|
1109
|
-
}
|
1110
|
-
function Zl(a, e, t) {
|
1111
|
-
let l, o, s, c, r, n, u, m, I, T, p, R, P, g, v, M, j, U, le, ge, fe, oe, ne, X, B, S, C, Q, W, re, de, q, z, $;
|
1112
|
-
L(a, Tt, (i) => t(72, l = i)), L(a, ue, (i) => t(17, s = i)), L(a, je, (i) => t(74, c = i)), L(a, et, (i) => t(75, r = i)), L(a, Pe, (i) => t(18, n = i)), L(a, Yi, (i) => t(76, u = i)), L(a, Le, (i) => t(19, m = i)), L(a, Ot, (i) => t(77, I = i)), L(a, Xt, (i) => t(78, T = i)), L(a, Zi, (i) => t(79, p = i)), L(a, xi, (i) => t(80, R = i)), L(a, Fe, (i) => t(20, P = i)), L(a, qe, (i) => t(81, g = i)), L(a, pe, (i) => t(21, v = i)), L(a, At, (i) => t(22, M = i)), L(a, St, (i) => t(23, j = i)), L(a, Ce, (i) => t(24, U = i)), L(a, $i, (i) => t(82, ge = i)), L(a, el, (i) => t(26, fe = i)), L(a, tt, (i) => t(27, oe = i)), L(a, Lt, (i) => t(83, ne = i)), L(a, it, (i) => t(28, X = i)), L(a, tl, (i) => t(29, B = i)), L(a, il, (i) => t(84, S = i)), L(a, lt, (i) => t(85, C = i)), L(a, Qt, (i) => t(86, Q = i)), L(a, Jt, (i) => t(87, W = i)), L(a, Gt, (i) => t(88, re = i)), L(a, Yt, (i) => t(30, de = i)), L(a, ll, (i) => t(31, q = i)), L(a, al, (i) => t(32, z = i)), L(a, sl, (i) => t(33, $ = i));
|
1113
|
-
let w, ae, me, ee = !1, Me = {}, be = !1, { enableMinutiae: Ie } = e, { videoDimensions: h } = e, { noTabs: V } = e, { weightsPath: Ee } = e, { evaluatePhoto: Te } = e, { showCaptureButton: Ut } = e, { showUnconformities: Vt } = e, { videoFilter: We } = e;
|
1114
|
-
const Je = ei(!1);
|
1115
|
-
L(a, Je, (i) => t(73, o = i));
|
1116
|
-
const Ue = ei("data:image/png;base64");
|
1117
|
-
L(a, Ue, (i) => t(25, le = i));
|
1118
|
-
let { widgetInstance: ce } = e, Re, H, Ve = !1, vt = !1, Ge = !0, ke = !0, Ye = !1, Kt = 0, ve = "", kt = 0, wt = !0, Ct = 0, Et = !1, Ke = !1, Ze = "";
|
1119
|
-
const Rt = ol.mixin({
|
1120
|
-
toast: !0,
|
1121
|
-
position: "bottom-left",
|
1122
|
-
timer: 13e3,
|
1123
|
-
timerProgressBar: !0
|
1124
|
-
});
|
1125
|
-
nl(async () => {
|
1126
|
-
_(it, X = !0, X), _(tt, oe = !1, oe), _(Yt, de = !1, de), _(Le, m = !1, m), _(je, c = at.FRONT_CAMERA, c), Y() && (import("./index-no-detector_acb82d83_2.2.0.js"), hi()), fe && (await rl(Ee), be = !0), await we();
|
1127
|
-
});
|
1128
|
-
function yt(i, k) {
|
1129
|
-
i.clearRect(0, 0, H.width, H.height), i.save(), We == "blur" ? (i.filter = `blur(${k.width / 60}px)`, i.rect(0, 0, H.width, H.height)) : We != "none" ? (i.fillStyle = We, i.fillRect(0, 0, H.width, H.height)) : (i.beginPath(), i.rect(0, 0, H.width, H.height));
|
1130
|
-
const y = H.height * 0.65, E = y / 1.45, N = n.videoWidth / 2, J = n.videoHeight * 0.51;
|
1131
|
-
_(Gt, re.width = E, re), i.ellipse(N, J, E / 2, y / 2, 0, 0, 2 * Math.PI, !0), i.clip(), mi(i, k, H), i.restore(), i.save(), i.beginPath();
|
1132
|
-
const Ae = window.getComputedStyle(H).getPropertyValue("--p"), Se = window.getComputedStyle(H).getPropertyValue("--su");
|
1133
|
-
if (i.strokeStyle = `hsl(${Ae})`, i.lineWidth = 16, i.ellipse(N, J, E / 2, y / 2, 0, 0, 2 * Math.PI), i.stroke(), ee && !Et) {
|
1134
|
-
const He = 1 - (Ct - (/* @__PURE__ */ new Date()).getTime()) / di;
|
1135
|
-
i.save(), i.beginPath(), i.lineWidth = 16, i.strokeStyle = `hsl(${Se})`, i.ellipse(N, J, E / 2, y / 2, 0, 0 - Math.PI / 2, 1.5 * (Math.PI * 2 * He) - Math.PI / 2), i.stroke();
|
1136
|
-
}
|
1137
|
-
i.beginPath();
|
1138
|
-
const te = new Path2D();
|
1139
|
-
te.ellipse(N, J, E / 2, y / 2, 0, 0, 2 * Math.PI), i.clip(te), mi(i, k, H), i.restore();
|
1140
|
-
}
|
1141
|
-
function hi() {
|
1142
|
-
ce.addEventListener("open", (i) => {
|
1143
|
-
const k = i.detail[0].video;
|
1144
|
-
_(
|
1145
|
-
Jt,
|
1146
|
-
W = {
|
1147
|
-
width: k.videoWidth,
|
1148
|
-
height: k.videoHeight
|
1149
|
-
},
|
1150
|
-
W
|
1151
|
-
), t(4, w.srcObject = k.srcObject, w), t(11, Ge = !1);
|
1152
|
-
function y() {
|
1153
|
-
ke || (yt(H.getContext("2d"), k), Ne(w, y, !0));
|
1154
|
-
}
|
1155
|
-
y();
|
1156
|
-
}), ce.addEventListener("error", (i) => {
|
1157
|
-
console.error(i), i.detail[0].message === "Device in use" ? _(ue, s = G.CAMERA_IN_USE_ERROR, s) : i.detail[0].message === "Permission denied" || i.detail[0].message === "Permission dismissed" ? _(ue, s = G.CAMERA_DENIED_ERROR, s) : i.detail[0].message === "Requested device not found" && _(ue, s = G.DEVICE_NOT_FOUND_ERROR, s), t(11, Ge = !1);
|
1158
|
-
}), ce.addEventListener("faceDetection", (i) => {
|
1159
|
-
}), ce.addEventListener("close", async (i) => {
|
1160
|
-
m || (Ve = !1), t(12, ke = !0), t(13, Ye = !1), s === G.OK && _(ue, s = G.CAMERA_CLOSED_ERROR, s);
|
1161
|
-
}), ce.addEventListener("initialize", async (i) => {
|
1162
|
-
vt = !0, _(Qt, Q = !0, Q), ne === st.Face && !Ve && !m && vt && await Pt();
|
1163
|
-
}), ce.addEventListener("capture", async (i) => {
|
1164
|
-
t(14, ve = "");
|
1165
|
-
const { encryptedFile: k, photo: y } = i.detail[0];
|
1166
|
-
_(lt, C = k, C), t(13, Ye = !1), _(pe, v = Z.OK, v), _(Fe, P.isLoading = !0, P), _(Le, m = !0, m), Ve = !1;
|
1167
|
-
const E = (await ot(y)).split(",");
|
1168
|
-
if (_(Ue, le = E[0], le), _(Ce, U = E[1], U), _(qe, g = E[1], g), !S) {
|
1169
|
-
let te, He;
|
1170
|
-
try {
|
1171
|
-
({ bodyParts: te, icaoWarnings: He } = await nt(g, Te, (await ot(k)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
1172
|
-
"face-unconformities-validated",
|
1173
|
-
{
|
1174
|
-
detail: {
|
1175
|
-
bodyParts: te,
|
1176
|
-
icaoWarnings: He,
|
1177
|
-
status: v
|
1178
|
-
}
|
1179
|
-
}
|
1180
|
-
));
|
1181
|
-
} catch (ye) {
|
1182
|
-
console.error(ye);
|
1183
|
-
let $e = Ft.UNKNOWN, It = [], qt = [];
|
1184
|
-
if (ye instanceof Zt && ye.response?.status === 400)
|
1185
|
-
if (ye.response.data && Array.isArray(ye.response.data.bodyParts)) {
|
1186
|
-
It = ye.response.data.bodyParts, qt = ye.response.data.icaoWarnings;
|
1187
|
-
const zt = It.find((Xi) => Xi.livenessResult.error);
|
1188
|
-
$e = zt?.livenessResult.error_code, _(pe, v = Z.LIVENESS_DETECTION_FAILURE, v), zt?.livenessResult.error_code || _(pe, v = Z.UNKNOWN_LIVENESS_ERROR, v), t(14, ve = Ft[$e]), console.error("Liveness error:", $e);
|
1189
|
-
} else
|
1190
|
-
_(pe, v = Z.TEMPLATE_EXTRACTION_ERROR, v);
|
1191
|
-
else
|
1192
|
-
_(pe, v = Z.UNKNOWN_LIVENESS_ERROR, v), Rt.fire({
|
1193
|
-
icon: "error",
|
1194
|
-
title: "Falha ao comunicar com serviço de Liveness"
|
1195
|
-
});
|
1196
|
-
_(Fe, P.isLoading = !1, P), window.dispatchEvent(new CustomEvent(
|
1197
|
-
"face-unconformities-validated",
|
1198
|
-
{
|
1199
|
-
detail: {
|
1200
|
-
bodyParts: It,
|
1201
|
-
errorCode: $e,
|
1202
|
-
translatedError: B(ve),
|
1203
|
-
status: v,
|
1204
|
-
icaoWarnings: qt
|
1205
|
-
}
|
1206
|
-
}
|
1207
|
-
));
|
1208
|
-
return;
|
1209
|
-
}
|
1210
|
-
if (v !== Z.OK) {
|
1211
|
-
_(Fe, P.isLoading = !1, P);
|
1212
|
-
return;
|
1213
|
-
}
|
1214
|
-
te[0].livenessResult && Ht(te[0].livenessResult), te.length !== 0 && te[0].data && _(Ce, U = te[0].data, U), rt(He);
|
1215
|
-
return;
|
1216
|
-
}
|
1217
|
-
let N, J;
|
1218
|
-
try {
|
1219
|
-
J = await cl(k), Ht(J.data);
|
1220
|
-
} catch (te) {
|
1221
|
-
_(pe, v = Z.UNKNOWN_LIVENESS_ERROR, v), console.error(te), te instanceof Zt && te.response?.status === 400 ? (N = te.response.data.error_code, t(14, ve = Ft[N]), console.error("Liveness error:", N), _(pe, v = Z.LIVENESS_DETECTION_FAILURE, v)) : Rt.fire({
|
1222
|
-
icon: "error",
|
1223
|
-
title: "Falha ao comunicar com serviço de Liveness"
|
1224
|
-
});
|
1225
|
-
}
|
1226
|
-
if (v !== Z.OK) {
|
1227
|
-
_(Fe, P.isLoading = !1, P), window.dispatchEvent(new CustomEvent(
|
1228
|
-
"face-unconformities-validated",
|
1229
|
-
{
|
1230
|
-
detail: {
|
1231
|
-
bodyParts: [
|
1232
|
-
{
|
1233
|
-
bodyPart: "FACE",
|
1234
|
-
data: g,
|
1235
|
-
livenessBlob: (await ot(k)).split(",")[1],
|
1236
|
-
...J && { livenessResult: J }
|
1237
|
-
}
|
1238
|
-
],
|
1239
|
-
...N && { errorCode: N },
|
1240
|
-
...ve && { translatedError: B(ve) },
|
1241
|
-
status: v
|
1242
|
-
}
|
1243
|
-
}
|
1244
|
-
));
|
1245
|
-
return;
|
1246
|
-
}
|
1247
|
-
let { bodyParts: Ae, icaoWarnings: Se } = await nt(g, Te);
|
1248
|
-
window.dispatchEvent(new CustomEvent(
|
1249
|
-
"face-unconformities-validated",
|
1250
|
-
{
|
1251
|
-
detail: {
|
1252
|
-
bodyParts: Ae,
|
1253
|
-
icaoWarnings: Se,
|
1254
|
-
status: v,
|
1255
|
-
errorCode: N,
|
1256
|
-
...ve && { translatedError: B(ve) }
|
1257
|
-
}
|
1258
|
-
}
|
1259
|
-
)), Ae[0].data && _(Ce, U = Ae[0].data, U), rt(Se);
|
1260
|
-
});
|
1261
|
-
}
|
1262
|
-
async function we(i) {
|
1263
|
-
_(it, X = !0, X);
|
1264
|
-
const [k, y] = (h ?? "")?.replaceAll(" ", "")?.split("x")?.map((E) => E ? parseInt(E) : void 0);
|
1265
|
-
if (!(!k || !y)) {
|
1266
|
-
if (_(Pe, n = { videoWidth: k, videoHeight: y }, n), Y() && y < k && ct() && _(Pe, n = { videoWidth: y, videoHeight: k }, n), Y()) {
|
1267
|
-
Pt();
|
1268
|
-
return;
|
1269
|
-
}
|
1270
|
-
await pi(k, y, i), _(it, X = !1, X);
|
1271
|
-
}
|
1272
|
-
}
|
1273
|
-
function Pt() {
|
1274
|
-
Y() && (_(ue, s = G.OK, s), ce && "openCamera" in ce && ce.openCamera(), Ve = !0, t(12, ke = !1), t(11, Ge = !0));
|
1275
|
-
}
|
1276
|
-
async function Be() {
|
1277
|
-
if (fe && !be)
|
1278
|
-
return Ne(w, Be);
|
1279
|
-
if (w) {
|
1280
|
-
if (ne !== st.Face && !V)
|
1281
|
-
return Ne(w, Be);
|
1282
|
-
_(tt, oe = !0, oe), fe ? (o || _(Je, o = !0, o), Y() || yt(H.getContext("2d"), w), Ne(w, Be)) : (yt(H.getContext("2d"), w), Ne(w, Be));
|
1283
|
-
}
|
1284
|
-
}
|
1285
|
-
async function Bt() {
|
1286
|
-
if ($t(), _(pe, v = Z.OK, v), Y()) {
|
1287
|
-
t(13, Ye = !0), ce.takePhoto();
|
1288
|
-
return;
|
1289
|
-
}
|
1290
|
-
if (_(Le, m = !0, m), fe) {
|
1291
|
-
const [i] = await (await import("./face_api_0e3ce8c8_2.2.0.js")).extractFaces(w, [ge]), k = i.toDataURL("image/jpeg").split(",");
|
1292
|
-
_(Ue, le = k[0], le), _(Ce, U = k[1], U), _(qe, g = k[1], g);
|
1293
|
-
let { bodyParts: y, icaoWarnings: E } = await nt(U, Te);
|
1294
|
-
window.dispatchEvent(new CustomEvent(
|
1295
|
-
"face-unconformities-validated",
|
1296
|
-
{
|
1297
|
-
detail: {
|
1298
|
-
bodyParts: y,
|
1299
|
-
icaoWarnings: E,
|
1300
|
-
status: v
|
1301
|
-
}
|
1302
|
-
}
|
1303
|
-
)), y.length !== 0 && y[0].data && _(Ce, U = y[0].data, U), rt(E);
|
1304
|
-
} else {
|
1305
|
-
const i = document.createElement("canvas"), k = i.getContext("2d");
|
1306
|
-
i.width = w.width, i.height = w.height, k?.drawImage(w, 0, 0, i.width, i.height);
|
1307
|
-
const y = i.toDataURL("image/jpeg").split(",");
|
1308
|
-
_(Ue, le = y[0], le), _(Ce, U = y[1], U), _(qe, g = y[1], g);
|
1309
|
-
let { bodyParts: E, icaoWarnings: N } = await nt(U, Te);
|
1310
|
-
window.dispatchEvent(new CustomEvent(
|
1311
|
-
"face-unconformities-validated",
|
1312
|
-
{
|
1313
|
-
detail: {
|
1314
|
-
bodyParts: E,
|
1315
|
-
icaoWarnings: N,
|
1316
|
-
status: v
|
1317
|
-
}
|
1318
|
-
}
|
1319
|
-
)), E.length !== 0 && E[0].data && _(Ce, U = E[0].data, U), rt(N);
|
1320
|
-
}
|
1321
|
-
}
|
1322
|
-
function xe() {
|
1323
|
-
const i = {
|
1324
|
-
bodyPart: "FACE",
|
1325
|
-
data: U,
|
1326
|
-
justification: j
|
1327
|
-
};
|
1328
|
-
_(At, M = !0, M), ft(lt) && ot(ft(lt)).then((k) => {
|
1329
|
-
i.livenessBlob = k.split(",")[1];
|
1330
|
-
}), window.dispatchEvent(new CustomEvent("export-face", { detail: i }));
|
1331
|
-
}
|
1332
|
-
function Oe() {
|
1333
|
-
window.dispatchEvent(new CustomEvent("face-scrapped")), _(At, M = !1, M), _(pe, v = Z.OK, v), _(Le, m = !1, m), _(qe, g = "", g), _(Fe, P.unconformities = [], P);
|
1334
|
-
const i = ft(Nt);
|
1335
|
-
i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, t(16, Ze = ""), t(15, Ke = !1), Nt.set(i), ke && Pt();
|
1336
|
-
}
|
1337
|
-
function Ht(i) {
|
1338
|
-
let k = "", y = "success";
|
1339
|
-
i.isAlive ? k = `Vivacidade de face (${i.face_liveness.probability.toFixed(2)}) e de captura (${i.capture_liveness.probability}, ${i.capture_liveness.score.toFixed(2)}) verificados!` : i?.face_liveness?.probability && (y = "error", k = `Vivacidade de face (${i.face_liveness.probability.toFixed(2)}) e de captura (${i.capture_liveness.probability}, ${i.capture_liveness.score.toFixed(2)}) insuficientes!`), R && Rt.fire({ icon: y, title: k });
|
1340
|
-
}
|
1341
|
-
async function pi(i, k, y) {
|
1342
|
-
try {
|
1343
|
-
if (s == G.CAMERA_ORIENTATION_PORTRAIT)
|
1344
|
-
return;
|
1345
|
-
await xt();
|
1346
|
-
const { deviceId: E, width: N, height: J, aspectRatio: Ae, facingMode: Se, touchPoints: te } = await ul(i, k, c, y);
|
1347
|
-
N < i && J < k && _(
|
1348
|
-
Pe,
|
1349
|
-
n = {
|
1350
|
-
videoWidth: N,
|
1351
|
-
videoHeight: J
|
1352
|
-
},
|
1353
|
-
n
|
1354
|
-
), ct() && (!Se || te <= 1) && N > J && _(
|
1355
|
-
Pe,
|
1356
|
-
n = {
|
1357
|
-
videoWidth: J,
|
1358
|
-
videoHeight: N
|
1359
|
-
},
|
1360
|
-
n
|
1361
|
-
), _(et, r = E || u[0].deviceId, r), _(ue, s = G.OK, s);
|
1362
|
-
} catch (E) {
|
1363
|
-
const N = E;
|
1364
|
-
t(12, ke = !0);
|
1365
|
-
const J = ut(E) && E.constraint ? E.constraint : "";
|
1366
|
-
console.error(N, J), ut(N) && "message" in N && N.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), _(ue, s = G.CAMERA_DENIED_ERROR, s)), ut(N) && "message" in N && N.message.includes("Requested device not found") && _(ue, s = G.DEVICE_NOT_FOUND_ERROR, s), (J.includes("width") || J.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${J})`), _(ue, s = G.CAMERA_UNSUPPORTED, s));
|
1367
|
-
}
|
1368
|
-
}
|
1369
|
-
const gi = Pe.subscribe((i) => {
|
1370
|
-
w && ae && (t(4, w.width = i.videoWidth, w), t(4, w.height = i.videoHeight, w), t(5, ae.width = i.videoWidth, ae), t(5, ae.height = i.videoHeight, ae), t(9, Re.width = i.videoWidth, Re), t(9, Re.height = i.videoHeight, Re), t(10, H.width = i.videoWidth, H), t(10, H.height = i.videoHeight, H));
|
1371
|
-
}), vi = Nt.subscribe((i) => {
|
1372
|
-
let k = "";
|
1373
|
-
if (i.isPersonCloseEnough ? i.isPersonTooclose ? k = "faceCollector.moveAwayCamera" : i.isPersonInFrame ? i.closedMouth || (k = "faceCollector.dontOpenMouth") : k = "faceCollector.stayInFrame" : k = "faceCollector.comeCloserCamera", k != "" && k != Ze && setTimeout(
|
1374
|
-
() => {
|
1375
|
-
t(15, Ke = !1), t(16, Ze = k), setTimeout(
|
1376
|
-
() => {
|
1377
|
-
t(15, Ke = !0);
|
1378
|
-
},
|
1379
|
-
1e3
|
1380
|
-
);
|
1381
|
-
},
|
1382
|
-
3e3
|
1383
|
-
), !m && p && !ee && i.isPersonInFrame && i.closedMouth && !(!i.isPersonCloseEnough || i.isPersonTooclose)) {
|
1384
|
-
t(7, ee = !0), t(15, Ke = !1), Ct = (/* @__PURE__ */ new Date()).getTime() + di;
|
1385
|
-
const y = setInterval(
|
1386
|
-
() => {
|
1387
|
-
if (!p || m || Y() && ke || !i.isPersonCloseEnough || i.isPersonTooclose || !i.closedMouth || !i.isPersonInFrame) {
|
1388
|
-
t(7, ee = !1), Et = !0, setTimeout(
|
1389
|
-
() => {
|
1390
|
-
Et = !1;
|
1391
|
-
},
|
1392
|
-
1500
|
1393
|
-
), clearInterval(y);
|
1394
|
-
return;
|
1395
|
-
}
|
1396
|
-
const E = (/* @__PURE__ */ new Date()).getTime();
|
1397
|
-
Math.floor((Ct - E) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(y), t(7, ee = !1), document.getElementsByTagName("biometric-collector")?.[0]?.shadowRoot?.getElementById("bry-cc-capture-btn")?.click());
|
1398
|
-
},
|
1399
|
-
100
|
1400
|
-
);
|
1401
|
-
}
|
1402
|
-
}), ki = Le.subscribe((i) => {
|
1403
|
-
me && (i ? (me.classList.remove("flex"), me.classList.add("hidden")) : (me.classList.add("flex"), me.classList.remove("hidden")));
|
1404
|
-
}), wi = Ot.subscribe((i) => {
|
1405
|
-
w && i && (console.log("setting null in video srcObject"), t(4, w.srcObject = null, w), t(4, w.src = "", w));
|
1406
|
-
});
|
1407
|
-
Lt.subscribe(async (i) => {
|
1408
|
-
i === st.Face && await xt();
|
1409
|
-
});
|
1410
|
-
const Ci = et.subscribe(async (i) => {
|
1411
|
-
if (Y() || !i)
|
1412
|
-
return;
|
1413
|
-
w || t(8, Me = {});
|
1414
|
-
const { videoHeight: k, videoWidth: y } = n;
|
1415
|
-
try {
|
1416
|
-
const E = await fl(y, k, i);
|
1417
|
-
t(4, w.srcObject = E, w), _(Xt, T = E, T), _(Ot, I = !1, I), wt || (_(ue, s = G.CAMERA_ORIENTATION_PORTRAIT, s), Dt());
|
1418
|
-
} catch (E) {
|
1419
|
-
const N = E;
|
1420
|
-
t(12, ke = !0), ut(N) && "message" in N && N.message.includes("Requested device not found") && _(ue, s = G.DEVICE_NOT_FOUND_ERROR, s);
|
1421
|
-
}
|
1422
|
-
}), Ei = Lt.subscribe(async (i) => {
|
1423
|
-
i === st.Face && Y() && !Ve && !m && vt && await we();
|
1424
|
-
}), Ri = Je.subscribe(async (i) => {
|
1425
|
-
i && jt();
|
1426
|
-
}), yi = dl.subscribe(async (i) => {
|
1427
|
-
if (n) {
|
1428
|
-
if (!ct()) {
|
1429
|
-
const k = u.find((E) => E.deviceId !== r), y = k ? k.deviceId : u[0].deviceId;
|
1430
|
-
we(y);
|
1431
|
-
return;
|
1432
|
-
}
|
1433
|
-
i ? (_(je, c = at.REAR_CAMERA, c), await we()) : (_(je, c = at.FRONT_CAMERA, c), await we());
|
1434
|
-
}
|
1435
|
-
}), Pi = ml.subscribe(async (i) => {
|
1436
|
-
!i.isSupported || !ct() || (wt = i.orientation.includes("portrait"), wt ? (_(ue, s = G.OK, s), n && (_(et, r = "", r), _(je, c = at.FRONT_CAMERA, c), await we())) : (_(ue, s = G.CAMERA_ORIENTATION_PORTRAIT, s), Dt()));
|
1437
|
-
});
|
1438
|
-
async function jt() {
|
1439
|
-
let i;
|
1440
|
-
if (kt >= Yl) {
|
1441
|
-
kt = 0;
|
1442
|
-
const k = await bl(), y = await import("./face_api_0e3ce8c8_2.2.0.js");
|
1443
|
-
let E;
|
1444
|
-
E = y.detectSingleFace(H, k), i = await E.withFaceLandmarks(), ae.getContext("2d")?.clearRect(0, 0, ae.width, ae.height);
|
1445
|
-
} else
|
1446
|
-
kt++;
|
1447
|
-
i && hl(i, ae, Ie), o && Ne(w, jt);
|
1448
|
-
}
|
1449
|
-
Tt.subscribe(async (i) => {
|
1450
|
-
i && (Oe(), _(Tt, l = !1, l));
|
1451
|
-
});
|
1452
|
-
const Ii = tt.subscribe((i) => {
|
1453
|
-
i && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
1454
|
-
});
|
1455
|
-
_l(() => {
|
1456
|
-
Dt(), ki(), vi(), gi(), wi(), Ci(), Ei(), clearInterval(Kt), Ri(), yi(), Pi(), Ii(), $t(), Kt = 0;
|
1457
|
-
});
|
1458
|
-
function Ti(i) {
|
1459
|
-
De[i ? "unshift" : "push"](() => {
|
1460
|
-
ce = i, t(0, ce);
|
1461
|
-
});
|
1462
|
-
}
|
1463
|
-
function Oi(i) {
|
1464
|
-
De[i ? "unshift" : "push"](() => {
|
1465
|
-
w = i, t(4, w);
|
1466
|
-
});
|
1467
|
-
}
|
1468
|
-
const Ai = () => {
|
1469
|
-
Y() || _(
|
1470
|
-
Pe,
|
1471
|
-
n = {
|
1472
|
-
videoHeight: w.videoHeight,
|
1473
|
-
videoWidth: w.videoWidth
|
1474
|
-
},
|
1475
|
-
n
|
1476
|
-
);
|
1477
|
-
};
|
1478
|
-
function Si(i) {
|
1479
|
-
De[i ? "unshift" : "push"](() => {
|
1480
|
-
H = i, t(10, H);
|
1481
|
-
});
|
1482
|
-
}
|
1483
|
-
function Li(i) {
|
1484
|
-
De[i ? "unshift" : "push"](() => {
|
1485
|
-
ae = i, t(5, ae);
|
1486
|
-
});
|
1487
|
-
}
|
1488
|
-
function Fi(i) {
|
1489
|
-
De[i ? "unshift" : "push"](() => {
|
1490
|
-
Re = i, t(9, Re);
|
1491
|
-
});
|
1492
|
-
}
|
1493
|
-
const Ni = () => Bt(), Di = () => xe(), Mi = () => Oe();
|
1494
|
-
function Wi(i) {
|
1495
|
-
De[i ? "unshift" : "push"](() => {
|
1496
|
-
me = i, t(6, me);
|
1497
|
-
});
|
1498
|
-
}
|
1499
|
-
const Ui = () => xe(), Vi = () => Oe();
|
1500
|
-
function Ki() {
|
1501
|
-
j = this.value, St.set(j);
|
1502
|
-
}
|
1503
|
-
const Bi = () => xe(), Hi = () => Oe();
|
1504
|
-
function ji() {
|
1505
|
-
j = this.value, St.set(j);
|
1506
|
-
}
|
1507
|
-
const qi = () => Oe(), zi = async () => {
|
1508
|
-
await we();
|
1509
|
-
};
|
1510
|
-
return a.$$set = (i) => {
|
1511
|
-
"enableMinutiae" in i && t(40, Ie = i.enableMinutiae), "videoDimensions" in i && t(41, h = i.videoDimensions), "noTabs" in i && t(42, V = i.noTabs), "weightsPath" in i && t(43, Ee = i.weightsPath), "evaluatePhoto" in i && t(44, Te = i.evaluatePhoto), "showCaptureButton" in i && t(1, Ut = i.showCaptureButton), "showUnconformities" in i && t(2, Vt = i.showUnconformities), "videoFilter" in i && t(45, We = i.videoFilter), "widgetInstance" in i && t(0, ce = i.widgetInstance);
|
1512
|
-
}, [
|
1513
|
-
ce,
|
1514
|
-
Ut,
|
1515
|
-
Vt,
|
1516
|
-
Be,
|
1517
|
-
w,
|
1518
|
-
ae,
|
1519
|
-
me,
|
1520
|
-
ee,
|
1521
|
-
Me,
|
1522
|
-
Re,
|
1523
|
-
H,
|
1524
|
-
Ge,
|
1525
|
-
ke,
|
1526
|
-
Ye,
|
1527
|
-
ve,
|
1528
|
-
Ke,
|
1529
|
-
Ze,
|
1530
|
-
s,
|
1531
|
-
n,
|
1532
|
-
m,
|
1533
|
-
P,
|
1534
|
-
v,
|
1535
|
-
M,
|
1536
|
-
j,
|
1537
|
-
U,
|
1538
|
-
le,
|
1539
|
-
fe,
|
1540
|
-
oe,
|
1541
|
-
X,
|
1542
|
-
B,
|
1543
|
-
de,
|
1544
|
-
q,
|
1545
|
-
z,
|
1546
|
-
$,
|
1547
|
-
Je,
|
1548
|
-
Ue,
|
1549
|
-
we,
|
1550
|
-
Bt,
|
1551
|
-
xe,
|
1552
|
-
Oe,
|
1553
|
-
Ie,
|
1554
|
-
h,
|
1555
|
-
V,
|
1556
|
-
Ee,
|
1557
|
-
Te,
|
1558
|
-
We,
|
1559
|
-
Ti,
|
1560
|
-
Oi,
|
1561
|
-
Ai,
|
1562
|
-
Si,
|
1563
|
-
Li,
|
1564
|
-
Fi,
|
1565
|
-
Ni,
|
1566
|
-
Di,
|
1567
|
-
Mi,
|
1568
|
-
Wi,
|
1569
|
-
Ui,
|
1570
|
-
Vi,
|
1571
|
-
Ki,
|
1572
|
-
Bi,
|
1573
|
-
Hi,
|
1574
|
-
ji,
|
1575
|
-
qi,
|
1576
|
-
zi
|
1577
|
-
];
|
1578
|
-
}
|
1579
|
-
class xl extends Qi {
|
1580
|
-
constructor(e) {
|
1581
|
-
super(), Ji(
|
1582
|
-
this,
|
1583
|
-
{
|
1584
|
-
target: this.shadowRoot,
|
1585
|
-
props: Gi(this.attributes),
|
1586
|
-
customElement: !0
|
1587
|
-
},
|
1588
|
-
Zl,
|
1589
|
-
Gl,
|
1590
|
-
_i,
|
1591
|
-
{
|
1592
|
-
enableMinutiae: 40,
|
1593
|
-
videoDimensions: 41,
|
1594
|
-
noTabs: 42,
|
1595
|
-
weightsPath: 43,
|
1596
|
-
evaluatePhoto: 44,
|
1597
|
-
showCaptureButton: 1,
|
1598
|
-
showUnconformities: 2,
|
1599
|
-
videoFilter: 45,
|
1600
|
-
widgetInstance: 0,
|
1601
|
-
play: 3
|
1602
|
-
},
|
1603
|
-
null,
|
1604
|
-
[-1, -1, -1, -1]
|
1605
|
-
), e && (e.target && O(e.target, this, e.anchor), e.props && (this.$set(e.props), he()));
|
1606
|
-
}
|
1607
|
-
static get observedAttributes() {
|
1608
|
-
return [
|
1609
|
-
"enableMinutiae",
|
1610
|
-
"videoDimensions",
|
1611
|
-
"noTabs",
|
1612
|
-
"weightsPath",
|
1613
|
-
"evaluatePhoto",
|
1614
|
-
"showCaptureButton",
|
1615
|
-
"showUnconformities",
|
1616
|
-
"videoFilter",
|
1617
|
-
"widgetInstance",
|
1618
|
-
"play"
|
1619
|
-
];
|
1620
|
-
}
|
1621
|
-
get enableMinutiae() {
|
1622
|
-
return this.$$.ctx[40];
|
1623
|
-
}
|
1624
|
-
set enableMinutiae(e) {
|
1625
|
-
this.$$set({ enableMinutiae: e }), he();
|
1626
|
-
}
|
1627
|
-
get videoDimensions() {
|
1628
|
-
return this.$$.ctx[41];
|
1629
|
-
}
|
1630
|
-
set videoDimensions(e) {
|
1631
|
-
this.$$set({ videoDimensions: e }), he();
|
1632
|
-
}
|
1633
|
-
get noTabs() {
|
1634
|
-
return this.$$.ctx[42];
|
1635
|
-
}
|
1636
|
-
set noTabs(e) {
|
1637
|
-
this.$$set({ noTabs: e }), he();
|
1638
|
-
}
|
1639
|
-
get weightsPath() {
|
1640
|
-
return this.$$.ctx[43];
|
1641
|
-
}
|
1642
|
-
set weightsPath(e) {
|
1643
|
-
this.$$set({ weightsPath: e }), he();
|
1644
|
-
}
|
1645
|
-
get evaluatePhoto() {
|
1646
|
-
return this.$$.ctx[44];
|
1647
|
-
}
|
1648
|
-
set evaluatePhoto(e) {
|
1649
|
-
this.$$set({ evaluatePhoto: e }), he();
|
1650
|
-
}
|
1651
|
-
get showCaptureButton() {
|
1652
|
-
return this.$$.ctx[1];
|
1653
|
-
}
|
1654
|
-
set showCaptureButton(e) {
|
1655
|
-
this.$$set({ showCaptureButton: e }), he();
|
1656
|
-
}
|
1657
|
-
get showUnconformities() {
|
1658
|
-
return this.$$.ctx[2];
|
1659
|
-
}
|
1660
|
-
set showUnconformities(e) {
|
1661
|
-
this.$$set({ showUnconformities: e }), he();
|
1662
|
-
}
|
1663
|
-
get videoFilter() {
|
1664
|
-
return this.$$.ctx[45];
|
1665
|
-
}
|
1666
|
-
set videoFilter(e) {
|
1667
|
-
this.$$set({ videoFilter: e }), he();
|
1668
|
-
}
|
1669
|
-
get widgetInstance() {
|
1670
|
-
return this.$$.ctx[0];
|
1671
|
-
}
|
1672
|
-
set widgetInstance(e) {
|
1673
|
-
this.$$set({ widgetInstance: e }), he();
|
1674
|
-
}
|
1675
|
-
get play() {
|
1676
|
-
return this.$$.ctx[3];
|
1677
|
-
}
|
1678
|
-
}
|
1679
|
-
customElements.define("face-collector", xl);
|
1680
|
-
export {
|
1681
|
-
xl as default
|
1682
|
-
};
|