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