bry-biometric-collector 2.1.1 → 2.1.2
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/{CameraStatus_4d73a197_2.1.1.js → CameraStatus_6d1bac66_2.1.2.js} +1 -1
- package/dist/{DocumentCollector_436479c2_2.1.1.js → DocumentCollector_6d0019dc_2.1.2.js} +143 -143
- package/dist/FaceCollector_c318ab41_2.1.2.js +1715 -0
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{en-us_35a3a8da_2.1.1.js → en-us_9e0134e1_2.1.2.js} +7 -8
- package/dist/{fingersApi_93608325_2.1.1.js → fingersApi_a5a5bb3f_2.1.2.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{main_81aedc5f_2.1.1.js → main_10fee264_2.1.2.js} +171 -177
- package/dist/{pt-br_1a694022_2.1.1.js → pt-br_4f758ccc_2.1.2.js} +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -2
- package/dist/FaceCollector_96561766_2.1.1.js +0 -1677
- /package/dist/{face_api_0e3ce8c8_2.1.1.js → face_api_0e3ce8c8_2.1.2.js} +0 -0
- /package/dist/{index-no-detector_acb82d83_2.1.1.js → index-no-detector_acb82d83_2.1.2.js} +0 -0
@@ -1,5 +1,5 @@
|
|
1
|
-
import { S as Yt, r as Kt, t as ht, w as zt, x as M, y as ge, C as Jt, B as _, D as F, E as Ke, G as A, H as le, I as o, J as a, K as ze, L as
|
2
|
-
import { c as ke, C as Ce, a as bi } from "./
|
1
|
+
import { S as Yt, r as Kt, t as ht, w as zt, x as M, y as ge, C as Jt, B as _, D as F, E as Ke, G as A, H as le, I as o, J as a, K as ze, L as Y, M as mt, N as de, O as bt, P as fe, Q as U, R as Je, T as E, U as Me, V as De, W as Ue, _ as $e, X as Se, Y as Qt, $ as Gt, a1 as je, a2 as qe, a3 as We, a4 as et, a5 as tt, a7 as Zt, a8 as Be, a9 as Ne, ae as xt, af as Ve, ag as it, ah as st, ai as $t, aj as ei, ak as ti, al as ii, am as si, an as L, ap as lt, aq as li, ao as oi, ar as ot, f as He, as as ni, at as Xe, aA as Re, aB as ai, aC as ri, aD as oe, aE as Oe, aH as nt, au as Ye, aI as ci, aJ as ui, aK as ue, aM as he, aF as at, l as di, aN as fi, aO as hi, aP as rt, aQ as ct, aS as mi } from "./main_10fee264_2.1.2.js";
|
2
|
+
import { c as ke, C as Ce, a as bi } from "./CameraStatus_6d1bac66_2.1.2.js";
|
3
3
|
function ut(s) {
|
4
4
|
let e, t, l;
|
5
5
|
return {
|
@@ -25,7 +25,7 @@ function ut(s) {
|
|
25
25
|
},
|
26
26
|
p: le,
|
27
27
|
d(n) {
|
28
|
-
n &&
|
28
|
+
n && U(e), s[41](null), t = !1, Oe(l);
|
29
29
|
}
|
30
30
|
};
|
31
31
|
}
|
@@ -39,7 +39,7 @@ function gi(s) {
|
|
39
39
|
M(l, e, n), a(e, t);
|
40
40
|
},
|
41
41
|
d(l) {
|
42
|
-
l &&
|
42
|
+
l && U(e);
|
43
43
|
}
|
44
44
|
};
|
45
45
|
}
|
@@ -53,7 +53,7 @@ function _i(s) {
|
|
53
53
|
M(l, e, n), a(e, t);
|
54
54
|
},
|
55
55
|
d(l) {
|
56
|
-
l &&
|
56
|
+
l && U(e);
|
57
57
|
}
|
58
58
|
};
|
59
59
|
}
|
@@ -72,10 +72,10 @@ function pi(s) {
|
|
72
72
|
p(l, n) {
|
73
73
|
n[0] & /*$_*/
|
74
74
|
262144 && e !== (e = /*$_*/
|
75
|
-
l[18]("faceCollector.framing") + "") &&
|
75
|
+
l[18]("faceCollector.framing") + "") && Y(t, e);
|
76
76
|
},
|
77
77
|
d(l) {
|
78
|
-
l &&
|
78
|
+
l && U(t);
|
79
79
|
}
|
80
80
|
};
|
81
81
|
}
|
@@ -90,7 +90,7 @@ function wi(s) {
|
|
90
90
|
},
|
91
91
|
p: le,
|
92
92
|
d(t) {
|
93
|
-
t &&
|
93
|
+
t && U(e);
|
94
94
|
}
|
95
95
|
};
|
96
96
|
}
|
@@ -104,7 +104,7 @@ function vi(s) {
|
|
104
104
|
M(l, e, n), a(e, t);
|
105
105
|
},
|
106
106
|
d(l) {
|
107
|
-
l &&
|
107
|
+
l && U(e);
|
108
108
|
}
|
109
109
|
};
|
110
110
|
}
|
@@ -118,7 +118,7 @@ function ki(s) {
|
|
118
118
|
M(l, e, n), a(e, t);
|
119
119
|
},
|
120
120
|
d(l) {
|
121
|
-
l &&
|
121
|
+
l && U(e);
|
122
122
|
}
|
123
123
|
};
|
124
124
|
}
|
@@ -154,14 +154,14 @@ function Ci(s) {
|
|
154
154
|
p(f, d) {
|
155
155
|
d[0] & /*$_*/
|
156
156
|
262144 && l !== (l = /*$_*/
|
157
|
-
f[18]("faceCollector.finish") + "") &&
|
157
|
+
f[18]("faceCollector.finish") + "") && Y(n, l), d[0] & /*$justification*/
|
158
158
|
2097152 && g !== (g = /*$justification*/
|
159
159
|
f[21].length === 0) && (t.disabled = g), d[0] & /*$_*/
|
160
160
|
262144 && b !== (b = /*$_*/
|
161
|
-
f[18]("faceCollector.retakePhoto") + "") &&
|
161
|
+
f[18]("faceCollector.retakePhoto") + "") && Y(c, b);
|
162
162
|
},
|
163
163
|
d(f) {
|
164
|
-
f &&
|
164
|
+
f && U(e), k = !1, Oe(p);
|
165
165
|
}
|
166
166
|
};
|
167
167
|
}
|
@@ -202,7 +202,7 @@ function yi(s) {
|
|
202
202
|
c[0]) && (e.hidden = l);
|
203
203
|
},
|
204
204
|
d(c) {
|
205
|
-
c &&
|
205
|
+
c && U(e), b.d(), n = !1, g();
|
206
206
|
}
|
207
207
|
};
|
208
208
|
}
|
@@ -221,10 +221,10 @@ function Li(s) {
|
|
221
221
|
p(l, n) {
|
222
222
|
n[0] & /*$_*/
|
223
223
|
262144 && e !== (e = /*$_*/
|
224
|
-
l[18]("faceCollector.takePicture") + "") &&
|
224
|
+
l[18]("faceCollector.takePicture") + "") && Y(t, e);
|
225
225
|
},
|
226
226
|
d(l) {
|
227
|
-
l &&
|
227
|
+
l && U(t);
|
228
228
|
}
|
229
229
|
};
|
230
230
|
}
|
@@ -239,7 +239,7 @@ function Pi(s) {
|
|
239
239
|
},
|
240
240
|
p: le,
|
241
241
|
d(t) {
|
242
|
-
t &&
|
242
|
+
t && U(e);
|
243
243
|
}
|
244
244
|
};
|
245
245
|
}
|
@@ -274,7 +274,7 @@ function Ei(s) {
|
|
274
274
|
}
|
275
275
|
function Di(s) {
|
276
276
|
let e, t, l, n, g, r, u, b, c;
|
277
|
-
const k = [Fi,
|
277
|
+
const k = [Fi, Ti, Ri, Si], p = [];
|
278
278
|
function f(d, y) {
|
279
279
|
return (
|
280
280
|
/*$captured*/
|
@@ -321,7 +321,7 @@ function Di(s) {
|
|
321
321
|
de(u), c = !1;
|
322
322
|
},
|
323
323
|
d(d) {
|
324
|
-
d &&
|
324
|
+
d && U(e), p[r].d();
|
325
325
|
}
|
326
326
|
};
|
327
327
|
}
|
@@ -338,20 +338,20 @@ function Si(s) {
|
|
338
338
|
e = _("div"), t = _("h1"), n = A(l), g = F(), r = _("div"), u = _("button"), c = A(b), k = F(), w && w.c(), o(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), o(u, "id", "bry-cc-retake-button"), o(u, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), o(r, "class", "flex flex-row"), rt(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
339
339
|
s[30]);
|
340
340
|
},
|
341
|
-
m(v,
|
342
|
-
M(v, e,
|
341
|
+
m(v, S) {
|
342
|
+
M(v, e, S), a(e, t), a(t, n), a(e, g), a(e, r), a(r, u), a(u, c), a(r, k), w && w.m(r, null), f = !0, d || (y = oe(
|
343
343
|
u,
|
344
344
|
"click",
|
345
345
|
/*click_handler_7*/
|
346
346
|
s[58]
|
347
347
|
), d = !0);
|
348
348
|
},
|
349
|
-
p(v,
|
350
|
-
(!f ||
|
349
|
+
p(v, S) {
|
350
|
+
(!f || S[0] & /*$_*/
|
351
351
|
262144) && l !== (l = /*$_*/
|
352
|
-
v[18]("docCollector.captured") + "") &&
|
352
|
+
v[18]("docCollector.captured") + "") && Y(n, l), (!f || S[0] & /*$_*/
|
353
353
|
262144) && b !== (b = /*$_*/
|
354
|
-
v[18]("faceCollector.retakePhoto") + "") &&
|
354
|
+
v[18]("faceCollector.retakePhoto") + "") && Y(c, b), (!f || S[0] & /*$exportButtonDisabled*/
|
355
355
|
1073741824) && rt(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
356
356
|
v[30]);
|
357
357
|
},
|
@@ -362,66 +362,66 @@ function Si(s) {
|
|
362
362
|
de(w), f = !1;
|
363
363
|
},
|
364
364
|
d(v) {
|
365
|
-
v &&
|
365
|
+
v && U(e), w && w.d(), d = !1, y();
|
366
366
|
}
|
367
367
|
};
|
368
368
|
}
|
369
|
-
function
|
369
|
+
function Ri(s) {
|
370
370
|
let e, t, l = (
|
371
371
|
/*$_*/
|
372
372
|
s[18]("faceCollector.unconformities") + ""
|
373
373
|
), n, g, r, u, b, c = (
|
374
374
|
/*$_*/
|
375
375
|
s[18]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
376
|
-
), k, p, f, d, y, w, v,
|
376
|
+
), k, p, f, d, y, w, v, S, V = (
|
377
377
|
/*$_*/
|
378
378
|
s[18]("faceCollector.thisInformationIsRequired") + ""
|
379
|
-
), J, Q,
|
379
|
+
), J, Q, K, ee, ne, B = (
|
380
380
|
/*$captured*/
|
381
381
|
s[15] && dt(s)
|
382
382
|
);
|
383
383
|
return {
|
384
384
|
c() {
|
385
|
-
e = _("div"), t = _("h1"), n = A(l), g = F(), r = _("div"), u = _("label"), b = _("span"), k = A(c), p = F(), f = _("textarea"), y = F(), w = _("label"), v = _("span"),
|
385
|
+
e = _("div"), t = _("h1"), n = A(l), g = F(), r = _("div"), u = _("label"), b = _("span"), k = A(c), p = F(), f = _("textarea"), y = F(), w = _("label"), v = _("span"), S = A("("), J = A(V), Q = A(")"), K = F(), B && B.c(), o(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), o(b, "class", "ce-dui-label-text text-base"), o(u, "class", "ce-dui-label"), o(u, "for", "justification"), o(f, "contenteditable", ""), o(f, "id", "justification"), o(f, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), o(f, "placeholder", d = /*$_*/
|
386
386
|
s[18]("faceCollector.yourJustification")), o(v, "class", "ce-dui-label-text-alt text-base"), o(w, "class", "ce-dui-label"), o(w, "for", "justification"), o(r, "class", "ce-dui-form-control mt-[2.5em]");
|
387
387
|
},
|
388
|
-
m(
|
389
|
-
M(
|
388
|
+
m(D, j) {
|
389
|
+
M(D, e, j), a(e, t), a(t, n), a(e, g), a(e, r), a(r, u), a(u, b), a(b, k), a(r, p), a(r, f), ct(
|
390
390
|
f,
|
391
391
|
/*$justification*/
|
392
392
|
s[21]
|
393
|
-
), a(r, y), a(r, w), a(w, v), a(v,
|
393
|
+
), a(r, y), a(r, w), a(w, v), a(v, S), a(v, J), a(v, Q), a(e, K), B && B.m(e, null), ee || (ne = oe(
|
394
394
|
f,
|
395
395
|
"input",
|
396
396
|
/*textarea_input_handler*/
|
397
397
|
s[55]
|
398
398
|
), ee = !0);
|
399
399
|
},
|
400
|
-
p(
|
401
|
-
|
400
|
+
p(D, j) {
|
401
|
+
j[0] & /*$_*/
|
402
402
|
262144 && l !== (l = /*$_*/
|
403
|
-
|
403
|
+
D[18]("faceCollector.unconformities") + "") && Y(n, l), j[0] & /*$_*/
|
404
404
|
262144 && c !== (c = /*$_*/
|
405
|
-
|
405
|
+
D[18]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && Y(k, c), j[0] & /*$_*/
|
406
406
|
262144 && d !== (d = /*$_*/
|
407
|
-
|
407
|
+
D[18]("faceCollector.yourJustification")) && o(f, "placeholder", d), j[0] & /*$justification*/
|
408
408
|
2097152 && ct(
|
409
409
|
f,
|
410
410
|
/*$justification*/
|
411
|
-
|
412
|
-
),
|
413
|
-
262144 &&
|
414
|
-
|
415
|
-
|
411
|
+
D[21]
|
412
|
+
), j[0] & /*$_*/
|
413
|
+
262144 && V !== (V = /*$_*/
|
414
|
+
D[18]("faceCollector.thisInformationIsRequired") + "") && Y(J, V), /*$captured*/
|
415
|
+
D[15] ? B ? B.p(D, j) : (B = dt(D), B.c(), B.m(e, null)) : B && (B.d(1), B = null);
|
416
416
|
},
|
417
417
|
i: le,
|
418
418
|
o: le,
|
419
|
-
d(
|
420
|
-
|
419
|
+
d(D) {
|
420
|
+
D && U(e), B && B.d(), ee = !1, ne();
|
421
421
|
}
|
422
422
|
};
|
423
423
|
}
|
424
|
-
function
|
424
|
+
function Ti(s) {
|
425
425
|
let e, t, l = (
|
426
426
|
/*$_*/
|
427
427
|
s[18]("faceCollector.everythingOk") + ""
|
@@ -436,8 +436,8 @@ function Ri(s) {
|
|
436
436
|
c() {
|
437
437
|
e = _("div"), t = _("h1"), n = A(l), g = F(), r = _("div"), u = _("button"), c = A(b), k = F(), p = _("button"), d = A(f), o(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), u.disabled = !0, o(u, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), o(p, "id", "bry-cc-retake-button"), o(p, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), o(r, "class", "ce-dui-btn-group flex"), o(e, "class", "flex flex-col justify-between");
|
438
438
|
},
|
439
|
-
m(v,
|
440
|
-
M(v, e,
|
439
|
+
m(v, S) {
|
440
|
+
M(v, e, S), a(e, t), a(t, n), a(e, g), a(e, r), a(r, u), a(u, c), a(r, k), a(r, p), a(p, d), y || (w = [
|
441
441
|
oe(
|
442
442
|
u,
|
443
443
|
"click",
|
@@ -452,19 +452,19 @@ function Ri(s) {
|
|
452
452
|
)
|
453
453
|
], y = !0);
|
454
454
|
},
|
455
|
-
p(v,
|
456
|
-
|
455
|
+
p(v, S) {
|
456
|
+
S[0] & /*$_*/
|
457
457
|
262144 && l !== (l = /*$_*/
|
458
|
-
v[18]("faceCollector.everythingOk") + "") &&
|
458
|
+
v[18]("faceCollector.everythingOk") + "") && Y(n, l), S[0] & /*$_*/
|
459
459
|
262144 && b !== (b = /*$_*/
|
460
|
-
v[18]("faceCollector.finish") + "") &&
|
460
|
+
v[18]("faceCollector.finish") + "") && Y(c, b), S[0] & /*$_*/
|
461
461
|
262144 && f !== (f = /*$_*/
|
462
|
-
v[18]("faceCollector.retakePhoto") + "") &&
|
462
|
+
v[18]("faceCollector.retakePhoto") + "") && Y(d, f);
|
463
463
|
},
|
464
464
|
i: le,
|
465
465
|
o: le,
|
466
466
|
d(v) {
|
467
|
-
v &&
|
467
|
+
v && U(e), y = !1, Oe(w);
|
468
468
|
}
|
469
469
|
};
|
470
470
|
}
|
@@ -481,7 +481,7 @@ function Fi(s) {
|
|
481
481
|
i: le,
|
482
482
|
o: le,
|
483
483
|
d(t) {
|
484
|
-
t &&
|
484
|
+
t && U(e);
|
485
485
|
}
|
486
486
|
};
|
487
487
|
}
|
@@ -539,14 +539,14 @@ function dt(s) {
|
|
539
539
|
p(f, d) {
|
540
540
|
d[0] & /*$_*/
|
541
541
|
262144 && l !== (l = /*$_*/
|
542
|
-
f[18]("faceCollector.finish") + "") &&
|
542
|
+
f[18]("faceCollector.finish") + "") && Y(n, l), d[0] & /*$justification*/
|
543
543
|
2097152 && g !== (g = /*$justification*/
|
544
544
|
f[21].length === 0) && (t.disabled = g), d[0] & /*$_*/
|
545
545
|
262144 && b !== (b = /*$_*/
|
546
|
-
f[18]("faceCollector.retakePhoto") + "") &&
|
546
|
+
f[18]("faceCollector.retakePhoto") + "") && Y(c, b);
|
547
547
|
},
|
548
548
|
d(f) {
|
549
|
-
f &&
|
549
|
+
f && U(e), k = !1, Oe(p);
|
550
550
|
}
|
551
551
|
};
|
552
552
|
}
|
@@ -557,7 +557,7 @@ function Wi(s) {
|
|
557
557
|
), r, u, b, c, k, p, f, d, y, w, v = (
|
558
558
|
/*$_*/
|
559
559
|
s[18]("faceCollector.capturing") + ""
|
560
|
-
),
|
560
|
+
), S, V, J, Q, K, ee, ne, B, D, j, ye, C, X, Z, H, te, P, I, ie, se = ut(s);
|
561
561
|
u = new Jt({ props: { className: "bottom-0" } });
|
562
562
|
function _e(h, m) {
|
563
563
|
return !/*$faceValidationsStore*/
|
@@ -578,14 +578,14 @@ function Wi(s) {
|
|
578
578
|
h[27].isPersonInFrame ? ki : vi
|
579
579
|
);
|
580
580
|
}
|
581
|
-
let ce = be(s),
|
581
|
+
let ce = be(s), q = ce(s);
|
582
582
|
function W(h, m) {
|
583
583
|
return (
|
584
584
|
/*$captured*/
|
585
585
|
h[15] ? Ci : yi
|
586
586
|
);
|
587
587
|
}
|
588
|
-
let ae = W(s),
|
588
|
+
let ae = W(s), N = ae(s);
|
589
589
|
const Le = [Di, Ei], $ = [];
|
590
590
|
function we(h, m) {
|
591
591
|
return (
|
@@ -598,32 +598,32 @@ function Wi(s) {
|
|
598
598
|
)
|
599
599
|
);
|
600
600
|
}
|
601
|
-
return ~(
|
601
|
+
return ~(P = we(s)) && (I = $[P] = Le[P](s)), {
|
602
602
|
c() {
|
603
|
-
e = _("div"), t = _("div"), l = _("div"), n = _("div"), se.c(), r = F(), Ke(u.$$.fragment), b = F(), c = _("canvas"), k = F(), p = _("canvas"), f = F(), d = _("canvas"), y = F(), w = _("span"),
|
604
|
-
s[9], o(w, "class", "absolute left-1/2 -translate-x-1/2 top-[85%] text-[1.5rem] bg-info text-info-content p-1 rounded-md"), o(
|
603
|
+
e = _("div"), t = _("div"), l = _("div"), n = _("div"), se.c(), r = F(), Ke(u.$$.fragment), b = F(), c = _("canvas"), k = F(), p = _("canvas"), f = F(), d = _("canvas"), y = F(), w = _("span"), S = A(v), J = F(), Q = _("div"), K = _("div"), ee = _("span"), ee.textContent = "Longe", ne = F(), x.c(), B = F(), D = _("div"), j = _("span"), G.c(), ye = F(), q.c(), X = F(), Z = _("div"), N.c(), te = F(), I && I.c(), this.c = le, o(c, "id", "bry-ce-displayCanvas"), o(c, "class", "max-w-full"), o(p, "id", "bry-ce-detectionsCanvas"), o(p, "class", "absolute top-0 left-0 max-w-full"), o(d, "id", "bry-ce-maskCanvas"), o(d, "class", "absolute top-0 left-0 max-w-full"), w.hidden = V = !/*isCountingDown*/
|
604
|
+
s[9], o(w, "class", "absolute left-1/2 -translate-x-1/2 top-[85%] text-[1.5rem] bg-info text-info-content p-1 rounded-md"), o(K, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-2xs sm:text-base w-[10.1em]"), o(D, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-2xs sm:text-base w-[10em]"), o(Q, "class", C = "absolute " + /*$enableFaceApi*/
|
605
605
|
(s[24] ? "flex" : "hidden") + " justify-around w-full top-[5%]"), o(n, "class", "relative"), o(Z, "class", "px-4 sm:px-0 mt-[1em]"), Z.hidden = H = !/*showCaptureButton*/
|
606
606
|
s[0], o(l, "class", "relative mx-auto"), o(t, "class", "flex flex-col justify-between");
|
607
607
|
},
|
608
608
|
m(h, m) {
|
609
|
-
M(h, e, m), a(e, t), a(t, l), a(l, n), se.m(n, null), a(n, r), ze(u, n, null), a(n, b), a(n, c), s[43](c), a(n, k), a(n, p), s[44](p), a(n, f), a(n, d), s[45](d), a(n, y), a(n, w), a(w,
|
609
|
+
M(h, e, m), a(e, t), a(t, l), a(l, n), se.m(n, null), a(n, r), ze(u, n, null), a(n, b), a(n, c), s[43](c), a(n, k), a(n, p), s[44](p), a(n, f), a(n, d), s[45](d), a(n, y), a(n, w), a(w, S), s[46](w), a(n, J), a(n, Q), a(Q, K), a(K, ee), a(K, ne), x.m(K, null), s[47](K), a(Q, B), a(Q, D), a(D, j), G.m(j, null), a(D, ye), q.m(D, null), s[48](D), a(l, X), a(l, Z), N.m(Z, null), s[52](t), a(e, te), ~P && $[P].m(e, null), ie = !0;
|
610
610
|
},
|
611
611
|
p(h, m) {
|
612
612
|
m[0] & /*unique*/
|
613
613
|
1024 && ht(g, g = /*unique*/
|
614
614
|
h[10]) ? (se.d(1), se = ut(h), se.c(), se.m(n, r)) : se.p(h, m), (!ie || m[0] & /*$_*/
|
615
615
|
262144) && v !== (v = /*$_*/
|
616
|
-
h[18]("faceCollector.capturing") + "") &&
|
617
|
-
512 &&
|
618
|
-
h[9])) && (w.hidden =
|
616
|
+
h[18]("faceCollector.capturing") + "") && Y(S, v), (!ie || m[0] & /*isCountingDown*/
|
617
|
+
512 && V !== (V = !/*isCountingDown*/
|
618
|
+
h[9])) && (w.hidden = V), re !== (re = _e(h)) && (x.d(1), x = re(h), x && (x.c(), x.m(K, null))), me === (me = pe(h)) && G ? G.p(h, m) : (G.d(1), G = me(h), G && (G.c(), G.m(j, null))), ce !== (ce = be(h)) && (q.d(1), q = ce(h), q && (q.c(), q.m(D, null))), (!ie || m[0] & /*$enableFaceApi*/
|
619
619
|
16777216 && C !== (C = "absolute " + /*$enableFaceApi*/
|
620
|
-
(h[24] ? "flex" : "hidden") + " justify-around w-full top-[5%]")) && o(Q, "class", C), ae === (ae = W(h)) &&
|
620
|
+
(h[24] ? "flex" : "hidden") + " justify-around w-full top-[5%]")) && o(Q, "class", C), ae === (ae = W(h)) && N ? N.p(h, m) : (N.d(1), N = ae(h), N && (N.c(), N.m(Z, null))), (!ie || m[0] & /*showCaptureButton*/
|
621
621
|
1 && H !== (H = !/*showCaptureButton*/
|
622
622
|
h[0])) && (Z.hidden = H);
|
623
|
-
let Pe =
|
624
|
-
|
623
|
+
let Pe = P;
|
624
|
+
P = we(h), P === Pe ? ~P && $[P].p(h, m) : (I && (mt(), de($[Pe], 1, 1, () => {
|
625
625
|
$[Pe] = null;
|
626
|
-
}), bt()), ~
|
626
|
+
}), bt()), ~P ? (I = $[P], I ? I.p(h, m) : (I = $[P] = Le[P](h), I.c()), fe(I, 1), I.m(e, null)) : I = null);
|
627
627
|
},
|
628
628
|
i(h) {
|
629
629
|
ie || (fe(u.$$.fragment, h), fe(I), ie = !0);
|
@@ -632,7 +632,7 @@ function Wi(s) {
|
|
632
632
|
de(u.$$.fragment, h), de(I), ie = !1;
|
633
633
|
},
|
634
634
|
d(h) {
|
635
|
-
h &&
|
635
|
+
h && U(e), se.d(h), Je(u), s[43](null), s[44](null), s[45](null), s[46](null), x.d(), s[47](null), G.d(), q.d(), s[48](null), N.d(), s[52](null), ~P && $[P].d();
|
636
636
|
}
|
637
637
|
};
|
638
638
|
}
|
@@ -652,14 +652,14 @@ function ft(s, e, t) {
|
|
652
652
|
);
|
653
653
|
}
|
654
654
|
function Oi(s, e, t) {
|
655
|
-
let l, n, g, r, u, b, c, k, p, f, d, y, w, v,
|
656
|
-
|
657
|
-
let C,
|
655
|
+
let l, n, g, r, u, b, c, k, p, f, d, y, w, v, S, V, J, Q, K, ee, ne, B, D, j, ye;
|
656
|
+
E(s, Me, (i) => t(67, l = i)), E(s, De, (i) => t(15, g = i)), E(s, ke, (i) => t(16, r = i)), E(s, Ue, (i) => t(69, u = i)), E(s, $e, (i) => t(70, b = i)), E(s, Se, (i) => t(17, c = i)), E(s, Qt, (i) => t(71, k = i)), E(s, Gt, (i) => t(18, p = i)), E(s, je, (i) => t(72, f = i)), E(s, qe, (i) => t(19, d = i)), E(s, We, (i) => t(20, y = i)), E(s, et, (i) => t(21, w = i)), E(s, tt, (i) => t(22, v = i)), E(s, Zt, (i) => t(24, V = i)), E(s, Be, (i) => t(25, J = i)), E(s, Ne, (i) => t(73, Q = i)), E(s, xt, (i) => t(74, K = i)), E(s, Ve, (i) => t(75, ee = i)), E(s, it, (i) => t(26, ne = i)), E(s, st, (i) => t(27, B = i)), E(s, $t, (i) => t(28, D = i)), E(s, ei, (i) => t(29, j = i)), E(s, ti, (i) => t(30, ye = i));
|
657
|
+
let C, X, Z, H, te, P, I = !1, ie = {}, se = !1, { enableMinutiae: _e } = e, { videoDimensions: re } = e, { noTabs: x } = e, { weightsPath: pe } = e, { showCaptureButton: me } = e, { showUnconformities: G } = e;
|
658
658
|
const be = nt(!1);
|
659
|
-
|
659
|
+
E(s, be, (i) => t(68, n = i));
|
660
660
|
const ce = nt("data:image/png;base64");
|
661
|
-
|
662
|
-
let
|
661
|
+
E(s, ce, (i) => t(23, S = i));
|
662
|
+
let q, W, ae = !1, N = !1, Le = 0, $ = 0, we = 0, h = !1, m = {
|
663
663
|
topLeftX: 130,
|
664
664
|
topLeftY: 70,
|
665
665
|
width: 540,
|
@@ -672,75 +672,75 @@ function Oi(s, e, t) {
|
|
672
672
|
timerProgressBar: !0
|
673
673
|
}), si(async () => {
|
674
674
|
L(Be, J = !1, J), L(it, ne = !1, ne), L(De, g = !1, g);
|
675
|
-
const [i, O] = (re ?? "")?.replaceAll(" ", "")?.split("x")?.map((
|
675
|
+
const [i, O] = (re ?? "")?.replaceAll(" ", "")?.split("x")?.map((T) => T ? parseInt(T) : void 0);
|
676
676
|
if (!(!i || !O)) {
|
677
677
|
try {
|
678
678
|
await lt();
|
679
|
-
const { width:
|
680
|
-
|
679
|
+
const { width: T, height: R, aspectRatio: z } = await li(i, O);
|
680
|
+
z && z < 1 && oi() ? L(
|
681
681
|
Se,
|
682
682
|
c = {
|
683
|
-
videoWidth:
|
684
|
-
videoHeight:
|
683
|
+
videoWidth: R,
|
684
|
+
videoHeight: T
|
685
685
|
},
|
686
686
|
c
|
687
687
|
) : L(
|
688
688
|
Se,
|
689
689
|
c = {
|
690
|
-
videoWidth:
|
691
|
-
videoHeight:
|
690
|
+
videoWidth: T,
|
691
|
+
videoHeight: R
|
692
692
|
},
|
693
693
|
c
|
694
|
-
), Pe(
|
695
|
-
} catch (
|
696
|
-
const
|
697
|
-
t(14,
|
698
|
-
const
|
699
|
-
(
|
694
|
+
), Pe(), (await ot(i, O, "", !1))?.getTracks()?.forEach((Ie) => Ie?.stop()), L(Ve, ee = K[0].deviceId, ee);
|
695
|
+
} catch (T) {
|
696
|
+
const R = T;
|
697
|
+
t(14, N = !0), console.error(R), He(R) && "message" in R && R.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), L(ke, r = Ce.CAMERA_DENIED_ERROR, r)), He(R) && "message" in R && R.message.includes("Requested device not found") && L(ke, r = Ce.DEVICE_NOT_FOUND_ERROR, r);
|
698
|
+
const z = He(T) && T.constraint ? T.constraint : "";
|
699
|
+
(z.includes("width") || z.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${z})`), L(ke, r = Ce.CAMERA_UNSUPPORTED, r));
|
700
700
|
}
|
701
|
-
|
701
|
+
V && (await ni(pe), se = !0);
|
702
702
|
}
|
703
703
|
});
|
704
|
-
function Pe(
|
705
|
-
const
|
706
|
-
m.topLeftX = (
|
704
|
+
function Pe() {
|
705
|
+
const i = c.videoWidth / 1.48, O = c.videoHeight / 1.25;
|
706
|
+
m.topLeftX = (c.videoWidth - i) / 2, m.topLeftY = (c.videoHeight - O) / 1.42, m.width = i, m.height = O;
|
707
707
|
}
|
708
708
|
function Qe(i, O) {
|
709
709
|
i.clearRect(0, 0, W.width, W.height), i.save(), i.filter = `blur(${O.width / 60}px)`, i.beginPath(), i.rect(0, 0, W.width, W.height), i.rect(m.topLeftX, m.topLeftY, m.width, m.height), i.clip(), ft(i, O, W), i.restore(), i.save(), i.beginPath();
|
710
|
-
const
|
711
|
-
if (i.strokeStyle = `hsl(${
|
710
|
+
const T = window.getComputedStyle(W).getPropertyValue("--p"), R = window.getComputedStyle(W).getPropertyValue("--su");
|
711
|
+
if (i.strokeStyle = `hsl(${T})`, i.lineWidth = 16, i.rect(m.topLeftX, m.topLeftY, m.width, m.height), i.stroke(), I && !h) {
|
712
712
|
const Ae = 1 - (we - (/* @__PURE__ */ new Date()).getTime()) / 4500;
|
713
|
-
i.save(), i.beginPath(), i.lineWidth = 16, i.strokeStyle = `hsl(${
|
713
|
+
i.save(), i.beginPath(), i.lineWidth = 16, i.strokeStyle = `hsl(${R})`;
|
714
714
|
const Ie = m.width * 3 * Ae, xe = m.height * 2 * Ae, Vt = Ie < m.width ? Ie : m.width, Xt = xe < m.height ? xe : m.height;
|
715
715
|
i.rect(m.topLeftX, m.topLeftY, Vt, Xt), i.stroke();
|
716
716
|
}
|
717
717
|
i.beginPath();
|
718
|
-
const
|
719
|
-
|
718
|
+
const z = new Path2D();
|
719
|
+
z.rect(m.topLeftX, m.topLeftY, m.width, m.height), i.clip(z), ft(i, O, W), i.restore();
|
720
720
|
}
|
721
|
-
function
|
722
|
-
L(ke, r = Ce.OK, r), t(13, ae = !0), t(14,
|
721
|
+
function Te() {
|
722
|
+
L(ke, r = Ce.OK, r), t(13, ae = !0), t(14, N = !1);
|
723
723
|
}
|
724
724
|
async function Ee() {
|
725
|
-
if (
|
726
|
-
return
|
725
|
+
if (V && !se)
|
726
|
+
return Re(C, Ee);
|
727
727
|
if (C) {
|
728
728
|
if (Q !== Xe.Document && !x)
|
729
|
-
return
|
730
|
-
L(Be, J = !0, J),
|
729
|
+
return Re(C, Ee);
|
730
|
+
L(Be, J = !0, J), V ? (n || L(be, n = !0, n), Qe(W.getContext("2d"), C), Re(C, Ee)) : (Qe(W.getContext("2d"), C), Re(C, Ee));
|
731
731
|
}
|
732
732
|
}
|
733
733
|
async function Ge() {
|
734
734
|
L(qe, d = Ye.OK, d), L(De, g = !0, g), L(We, y = !0, y);
|
735
735
|
const i = document.createElement("canvas"), O = i.getContext("2d");
|
736
736
|
i.width = m.width, i.height = m.height, O?.drawImage(C, m.topLeftX, m.topLeftY, m.width, m.height, 0, 0, i.width, i.height);
|
737
|
-
const
|
738
|
-
L(ce,
|
739
|
-
const
|
737
|
+
const T = i.toDataURL("image/jpeg").split(",");
|
738
|
+
L(ce, S = T[0], S), L(tt, v = T[1], v), L(je, f = T[1], f);
|
739
|
+
const R = [{ data: f }];
|
740
740
|
window.dispatchEvent(new CustomEvent(
|
741
741
|
"document-unconformities-validated",
|
742
742
|
{
|
743
|
-
detail: { bodyParts:
|
743
|
+
detail: { bodyParts: R, status: d }
|
744
744
|
}
|
745
745
|
));
|
746
746
|
}
|
@@ -753,10 +753,10 @@ function Oi(s, e, t) {
|
|
753
753
|
L(We, y = !0, y), window.dispatchEvent(new CustomEvent("export-document", { detail: i }));
|
754
754
|
}
|
755
755
|
function ve() {
|
756
|
-
window.dispatchEvent(new CustomEvent("document-scrapped")), L(We, y = !1, y), L(qe, d = Ye.OK, d), L(De, g = !1, g), L(je, f = "", f),
|
756
|
+
window.dispatchEvent(new CustomEvent("document-scrapped")), L(We, y = !1, y), L(qe, d = Ye.OK, d), L(De, g = !1, g), L(je, f = "", f), N && Te();
|
757
757
|
}
|
758
758
|
const gt = Se.subscribe((i) => {
|
759
|
-
C &&
|
759
|
+
C && X && (t(3, C.width = i.videoWidth, C), t(3, C.height = i.videoHeight, C), t(4, X.width = i.videoWidth, X), t(4, X.height = i.videoHeight, X), t(11, q.width = i.videoWidth, q), t(11, q.height = i.videoHeight, q), t(12, W.width = i.videoWidth, W), t(12, W.height = i.videoHeight, W));
|
760
760
|
}), _t = st.subscribe((i) => {
|
761
761
|
if (!(!H || !te) && (!i.isPersonCloseEnough || i.isPersonTooclose ? (H.classList.remove("ce-dui-badge-success"), H.classList.add("ce-dui-badge-error"), i.isPersonCloseEnough ? i.isPersonTooclose && t(6, H.firstChild.textContent = p("faceCollector.tooClose"), H) : t(6, H.firstChild.textContent = p("faceCollector.tooFar"), H)) : (H.classList.add("ce-dui-badge-success"), H.classList.remove("ce-dui-badge-error"), t(6, H.firstChild.textContent = p("faceCollector.okDistance"), H)), i.isPersonInFrame ? (te.classList.add("ce-dui-badge-success"), te.classList.remove("ce-dui-badge-error")) : (te.classList.remove("ce-dui-badge-success"), te.classList.add("ce-dui-badge-error")), !g && k && !I && Z && i.isPersonInFrame && !(!i.isPersonCloseEnough || i.isPersonTooclose))) {
|
762
762
|
t(9, I = !0), we = (/* @__PURE__ */ new Date()).getTime() + 4500;
|
@@ -771,14 +771,14 @@ function Oi(s, e, t) {
|
|
771
771
|
), clearInterval(O);
|
772
772
|
return;
|
773
773
|
}
|
774
|
-
const
|
775
|
-
Math.floor((we -
|
774
|
+
const T = (/* @__PURE__ */ new Date()).getTime();
|
775
|
+
Math.floor((we - T) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(O), t(9, I = !1), document.getElementsByTagName("biometric-collector")?.[0]?.shadowRoot?.getElementById("bry-cc-capture-btn")?.click());
|
776
776
|
},
|
777
777
|
250
|
778
778
|
);
|
779
779
|
}
|
780
780
|
}), pt = De.subscribe((i) => {
|
781
|
-
|
781
|
+
P && (i ? (P.classList.remove("flex"), P.classList.add("hidden")) : (P.classList.add("flex"), P.classList.remove("hidden")));
|
782
782
|
}), wt = Ue.subscribe((i) => {
|
783
783
|
C && i && (console.log("setting null in video srcObject"), t(3, C.srcObject = null, C), t(3, C.src = "", C));
|
784
784
|
});
|
@@ -789,16 +789,16 @@ function Oi(s, e, t) {
|
|
789
789
|
if (!i)
|
790
790
|
return;
|
791
791
|
C || t(10, ie = {});
|
792
|
-
const { videoHeight: O, videoWidth:
|
792
|
+
const { videoHeight: O, videoWidth: T } = c;
|
793
793
|
try {
|
794
|
-
const
|
795
|
-
t(3, C.srcObject =
|
796
|
-
} catch (
|
797
|
-
const
|
798
|
-
t(14,
|
794
|
+
const R = await ot(T, O, i, !1);
|
795
|
+
t(3, C.srcObject = R, C), L($e, b = R, b), L(Ue, u = !1, u);
|
796
|
+
} catch (R) {
|
797
|
+
const z = R;
|
798
|
+
t(14, N = !0), He(z) && "message" in z && z.message.includes("Requested device not found") && L(ke, r = Ce.DEVICE_NOT_FOUND_ERROR, r);
|
799
799
|
}
|
800
800
|
}), kt = Ne.subscribe(async (i) => {
|
801
|
-
i === Xe.Document && !ae && !g && Bi && await
|
801
|
+
i === Xe.Document && !ae && !g && Bi && await Te();
|
802
802
|
}), Ct = be.subscribe(async (i) => {
|
803
803
|
i && Ze();
|
804
804
|
});
|
@@ -806,12 +806,12 @@ function Oi(s, e, t) {
|
|
806
806
|
let i;
|
807
807
|
if ($ >= Hi) {
|
808
808
|
$ = 0;
|
809
|
-
const O = await ci(),
|
810
|
-
let
|
811
|
-
|
809
|
+
const O = await ci(), T = await import("./face_api_0e3ce8c8_2.1.2.js");
|
810
|
+
let R;
|
811
|
+
R = T.detectSingleFace(W, O), i = await R.withFaceLandmarks(), X.getContext("2d")?.clearRect(0, 0, X.width, X.height);
|
812
812
|
} else
|
813
813
|
$++;
|
814
|
-
i && ui(i,
|
814
|
+
i && ui(i, X, _e, !0), n && Re(C, Ze);
|
815
815
|
}
|
816
816
|
Me.subscribe(async (i) => {
|
817
817
|
i && (ve(), L(Me, l = !1, l));
|
@@ -844,20 +844,20 @@ function Oi(s, e, t) {
|
|
844
844
|
}
|
845
845
|
function Dt(i) {
|
846
846
|
ue[i ? "unshift" : "push"](() => {
|
847
|
-
|
847
|
+
X = i, t(4, X);
|
848
848
|
});
|
849
849
|
}
|
850
850
|
function St(i) {
|
851
851
|
ue[i ? "unshift" : "push"](() => {
|
852
|
-
|
852
|
+
q = i, t(11, q);
|
853
853
|
});
|
854
854
|
}
|
855
|
-
function
|
855
|
+
function Rt(i) {
|
856
856
|
ue[i ? "unshift" : "push"](() => {
|
857
857
|
Z = i, t(5, Z);
|
858
858
|
});
|
859
859
|
}
|
860
|
-
function
|
860
|
+
function Tt(i) {
|
861
861
|
ue[i ? "unshift" : "push"](() => {
|
862
862
|
H = i, t(6, H);
|
863
863
|
});
|
@@ -870,7 +870,7 @@ function Oi(s, e, t) {
|
|
870
870
|
const It = () => Ge(), Wt = () => Fe(), Bt = () => ve();
|
871
871
|
function Ht(i) {
|
872
872
|
ue[i ? "unshift" : "push"](() => {
|
873
|
-
|
873
|
+
P = i, t(8, P);
|
874
874
|
});
|
875
875
|
}
|
876
876
|
const Ot = () => Fe(), At = () => ve();
|
@@ -878,7 +878,7 @@ function Oi(s, e, t) {
|
|
878
878
|
w = this.value, et.set(w);
|
879
879
|
}
|
880
880
|
const Ut = () => Fe(), jt = () => ve(), qt = () => ve(), Nt = () => {
|
881
|
-
t(13, ae = !0),
|
881
|
+
t(13, ae = !0), Te();
|
882
882
|
};
|
883
883
|
return s.$$set = (i) => {
|
884
884
|
"enableMinutiae" in i && t(37, _e = i.enableMinutiae), "videoDimensions" in i && t(38, re = i.videoDimensions), "noTabs" in i && t(39, x = i.noTabs), "weightsPath" in i && t(40, pe = i.weightsPath), "showCaptureButton" in i && t(0, me = i.showCaptureButton), "showUnconformities" in i && t(1, G = i.showUnconformities);
|
@@ -887,17 +887,17 @@ function Oi(s, e, t) {
|
|
887
887
|
G,
|
888
888
|
Ee,
|
889
889
|
C,
|
890
|
-
|
890
|
+
X,
|
891
891
|
Z,
|
892
892
|
H,
|
893
893
|
te,
|
894
|
-
|
894
|
+
P,
|
895
895
|
I,
|
896
896
|
ie,
|
897
|
-
|
897
|
+
q,
|
898
898
|
W,
|
899
899
|
ae,
|
900
|
-
|
900
|
+
N,
|
901
901
|
g,
|
902
902
|
r,
|
903
903
|
c,
|
@@ -906,17 +906,17 @@ function Oi(s, e, t) {
|
|
906
906
|
y,
|
907
907
|
w,
|
908
908
|
v,
|
909
|
-
|
910
|
-
|
909
|
+
S,
|
910
|
+
V,
|
911
911
|
J,
|
912
912
|
ne,
|
913
913
|
B,
|
914
|
-
|
915
|
-
|
914
|
+
D,
|
915
|
+
j,
|
916
916
|
ye,
|
917
917
|
be,
|
918
918
|
ce,
|
919
|
-
|
919
|
+
Te,
|
920
920
|
Ge,
|
921
921
|
Fe,
|
922
922
|
ve,
|
@@ -929,8 +929,8 @@ function Oi(s, e, t) {
|
|
929
929
|
Et,
|
930
930
|
Dt,
|
931
931
|
St,
|
932
|
-
Tt,
|
933
932
|
Rt,
|
933
|
+
Tt,
|
934
934
|
Ft,
|
935
935
|
It,
|
936
936
|
Wt,
|