bry-biometric-collector 2.3.1-RC03 → 2.3.1-RC04
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/README.md +13 -0
- package/dist/{DocumentCollector_130d8bdf_2.3.1-RC03.js → DocumentCollector_2ca958ae_2.3.1-RC04.js} +204 -203
- package/dist/{FaceCollector_9f7ed73a_2.3.1-RC03.js → FaceCollector_5bb64ce6_2.3.1-RC04.js} +6 -6
- package/dist/{TakePictureBtn_ceb87be5_2.3.1-RC03.js → TakePictureBtn_4d4e3b8c_2.3.1-RC04.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_8148ebce_2.3.1-RC03.js → ___vite-browser-external_commonjs-proxy_ba4d064e_2.3.1-RC04.js} +1 -1
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{fingersApi_bcc26b6f_2.3.1-RC03.js → fingersApi_b18b6c18_2.3.1-RC04.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{index_da10d83d_2.3.1-RC03.js → index_47e2c42d_2.3.1-RC04.js} +2 -2
- package/dist/{index_7355d006_2.3.1-RC03.js → index_b7e6901b_2.3.1-RC04.js} +2 -2
- package/dist/{main_6705c823_2.3.1-RC03.js → main_53e35476_2.3.1-RC04.js} +4506 -4497
- package/package.json +1 -1
- /package/dist/{en-us_6bd969ac_2.3.1-RC03.js → en-us_6bd969ac_2.3.1-RC04.js} +0 -0
- /package/dist/{es-cl_892f6a0f_2.3.1-RC03.js → es-cl_892f6a0f_2.3.1-RC04.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_2.3.1-RC03.js → face_api_0e3ce8c8_2.3.1-RC04.js} +0 -0
- /package/dist/{index-no-detector_4b302e78_2.3.1-RC03.js → index-no-detector_4b302e78_2.3.1-RC04.js} +0 -0
- /package/dist/{index-no-detector_b6972e40_2.3.1-RC03.js → index-no-detector_b6972e40_2.3.1-RC04.js} +0 -0
- /package/dist/{pt-br_45d223b5_2.3.1-RC03.js → pt-br_45d223b5_2.3.1-RC04.js} +0 -0
package/dist/{DocumentCollector_130d8bdf_2.3.1-RC03.js → DocumentCollector_2ca958ae_2.3.1-RC04.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { S as
|
2
|
-
import { C as
|
3
|
-
function
|
1
|
+
import { S as pi, q as wi, r as Ut, t as vi, w as Q, L as ne, N as K, x as w, O as B, b7 as Ci, z as oe, B as c, D as l, P as V, Q as ve, R as z, T as Ce, H as G, I as T, U as $e, V as Pe, W as se, X as ki, Y as Ae, _ as yi, Z as ge, a3 as _e, a0 as Se, a1 as et, a2 as vt, J as Ct, a4 as Le, a6 as Fe, a7 as kt, a8 as yt, a9 as tt, ab as it, af as Dt, ad as Di, ah as Ie, ai as st, b8 as We, $ as Ei, ao as Ti, ap as Oi, aq as Ri, ar as Pi, as as Ai, K as g, at as Si, au as at, av as lt, j as Kt, aw as ot, aF as Li, C as Me, d as Ne, aG as Et, ax as Be, aH as Fi, ay as nt, aI as Ii, aJ as Wi, aK as Mi, aL as Ni, aA as Bi, aM as Hi, aN as pe, aO as Ui, aP as Tt, E as re, aR as Ki, aS as ke, aT as ye, aU as De, y as J, G as x, aV as rt, aW as Vi, aQ as ct, aX as Ot, a$ as we, b1 as qi, b2 as Xi, b3 as Rt, b5 as Pt, b6 as Yi } from "./main_53e35476_2.3.1-RC04.js";
|
2
|
+
import { C as ji, T as Ji, a as Qi } from "./TakePictureBtn_4d4e3b8c_2.3.1-RC04.js";
|
3
|
+
function At(a) {
|
4
4
|
let t, i, s;
|
5
5
|
return {
|
6
6
|
c() {
|
@@ -21,9 +21,9 @@ function Pt(a) {
|
|
21
21
|
}
|
22
22
|
};
|
23
23
|
}
|
24
|
-
function
|
24
|
+
function St(a) {
|
25
25
|
let t, i;
|
26
|
-
return t = new
|
26
|
+
return t = new Ki({}), {
|
27
27
|
c() {
|
28
28
|
ke(t.$$.fragment);
|
29
29
|
},
|
@@ -41,9 +41,9 @@ function At(a) {
|
|
41
41
|
}
|
42
42
|
};
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function Lt(a) {
|
45
45
|
let t, i;
|
46
|
-
return t = new
|
46
|
+
return t = new ji({}), {
|
47
47
|
c() {
|
48
48
|
ke(t.$$.fragment);
|
49
49
|
},
|
@@ -61,9 +61,9 @@ function St(a) {
|
|
61
61
|
}
|
62
62
|
};
|
63
63
|
}
|
64
|
-
function
|
64
|
+
function Ft(a) {
|
65
65
|
let t, i;
|
66
|
-
return t = new
|
66
|
+
return t = new Ji({
|
67
67
|
props: {
|
68
68
|
id: "bry-cc-capture-btn",
|
69
69
|
disabled: !/*$ready*/
|
@@ -103,7 +103,7 @@ function Lt(a) {
|
|
103
103
|
}
|
104
104
|
};
|
105
105
|
}
|
106
|
-
function
|
106
|
+
function It(a) {
|
107
107
|
let t, i = (
|
108
108
|
/*$_*/
|
109
109
|
a[22]("faceCollector.stayStill") + ""
|
@@ -125,7 +125,7 @@ function Ft(a) {
|
|
125
125
|
}
|
126
126
|
};
|
127
127
|
}
|
128
|
-
function
|
128
|
+
function Wt(a) {
|
129
129
|
let t, i = (
|
130
130
|
/*$_*/
|
131
131
|
a[22](`${/*$faceValidationAlert*/
|
@@ -149,18 +149,18 @@ function It(a) {
|
|
149
149
|
}
|
150
150
|
};
|
151
151
|
}
|
152
|
-
function
|
152
|
+
function Mt(a) {
|
153
153
|
let t, i, s, n, u;
|
154
154
|
function o(b, C) {
|
155
155
|
return (
|
156
156
|
/*$isLoading*/
|
157
|
-
b[23] ?
|
157
|
+
b[23] ? Gi : zi
|
158
158
|
);
|
159
159
|
}
|
160
160
|
let r = o(a), f = r(a);
|
161
161
|
return {
|
162
162
|
c() {
|
163
|
-
t = w("slot"), i = w("div"), s = w("img"), u = B(), f.c(), rt(s.src, n =
|
163
|
+
t = w("slot"), i = w("div"), s = w("img"), u = B(), f.c(), rt(s.src, n = Vi) || c(s, "src", n), c(s, "alt", "loading gif"), c(s, "class", "m-auto h-[10em] lg:h-[12em]"), c(i, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), c(t, "name", "loading-camera-gif"), c(t, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
164
164
|
},
|
165
165
|
m(b, C) {
|
166
166
|
Q(b, t, C), l(t, i), l(i, s), l(i, u), f.m(i, null);
|
@@ -173,7 +173,7 @@ function Wt(a) {
|
|
173
173
|
}
|
174
174
|
};
|
175
175
|
}
|
176
|
-
function
|
176
|
+
function zi(a) {
|
177
177
|
let t, i = (
|
178
178
|
/*$_*/
|
179
179
|
a[22]("faceCollector.initiatingCamera") + ""
|
@@ -195,7 +195,7 @@ function Ji(a) {
|
|
195
195
|
}
|
196
196
|
};
|
197
197
|
}
|
198
|
-
function
|
198
|
+
function Gi(a) {
|
199
199
|
let t;
|
200
200
|
return {
|
201
201
|
c() {
|
@@ -210,7 +210,7 @@ function Qi(a) {
|
|
210
210
|
}
|
211
211
|
};
|
212
212
|
}
|
213
|
-
function
|
213
|
+
function Nt(a) {
|
214
214
|
let t, i, s = (
|
215
215
|
/*$_*/
|
216
216
|
a[22]("faceCollector.finish") + ""
|
@@ -253,9 +253,9 @@ function Mt(a) {
|
|
253
253
|
}
|
254
254
|
};
|
255
255
|
}
|
256
|
-
function
|
256
|
+
function Zi(a) {
|
257
257
|
let t, i;
|
258
|
-
return t = new
|
258
|
+
return t = new Qi({ props: { handler: (
|
259
259
|
/*func*/
|
260
260
|
a[51]
|
261
261
|
) } }), {
|
@@ -277,10 +277,10 @@ function zi(a) {
|
|
277
277
|
}
|
278
278
|
};
|
279
279
|
}
|
280
|
-
function
|
280
|
+
function xi(a) {
|
281
281
|
let t, i, s, n, u, o, r, f, b;
|
282
|
-
const C = [
|
283
|
-
function d(h,
|
282
|
+
const C = [is, ts, es, $i], _ = [];
|
283
|
+
function d(h, L) {
|
284
284
|
return (
|
285
285
|
/*$captured*/
|
286
286
|
h[13] ? (
|
@@ -301,21 +301,21 @@ function Gi(a) {
|
|
301
301
|
a[24], c(i, "alt", ""), c(t, "class", f = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
|
302
302
|
a[24] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible"));
|
303
303
|
},
|
304
|
-
m(h,
|
305
|
-
Q(h, t,
|
304
|
+
m(h, L) {
|
305
|
+
Q(h, t, L), l(t, i), l(t, u), _[o].m(t, null), b = !0;
|
306
306
|
},
|
307
|
-
p(h,
|
308
|
-
(!b ||
|
307
|
+
p(h, L) {
|
308
|
+
(!b || L[0] & /*$dataTypePrefix, $image*/
|
309
309
|
655360 && !rt(i.src, s = /*$dataTypePrefix*/
|
310
310
|
h[19] + "," + /*$image*/
|
311
|
-
h[17])) && c(i, "src", s), (!b ||
|
311
|
+
h[17])) && c(i, "src", s), (!b || L[0] & /*$captured, $showFaceWhileValidating*/
|
312
312
|
16785408 && n !== (n = !/*$captured*/
|
313
313
|
h[13] || !/*$showFaceWhileValidating*/
|
314
314
|
h[24])) && (i.hidden = n);
|
315
315
|
let D = o;
|
316
|
-
o = d(h), o === D ? _[o].p(h,
|
316
|
+
o = d(h), o === D ? _[o].p(h, L) : (ve(), z(_[D], 1, 1, () => {
|
317
317
|
_[D] = null;
|
318
|
-
}), Ce(), r = _[o], r ? r.p(h,
|
318
|
+
}), Ce(), r = _[o], r ? r.p(h, L) : (r = _[o] = C[o](h), r.c()), V(r, 1), r.m(t, null)), (!b || L[0] & /*$showFaceWhileValidating*/
|
319
319
|
16777216 && f !== (f = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
|
320
320
|
h[24] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible"))) && c(t, "class", f);
|
321
321
|
},
|
@@ -330,21 +330,21 @@ function Gi(a) {
|
|
330
330
|
}
|
331
331
|
};
|
332
332
|
}
|
333
|
-
function
|
333
|
+
function $i(a) {
|
334
334
|
let t, i, s = (
|
335
335
|
/*$_*/
|
336
336
|
a[22]("docCollector.captured") + ""
|
337
337
|
), n, u, o, r, f = (
|
338
338
|
/*$_*/
|
339
339
|
a[22]("faceCollector.retakePhoto") + ""
|
340
|
-
), b, C, _ =
|
340
|
+
), b, C, _ = Kt(qi).faceStrategy !== Xi.DISABLED, d, h, L, D = _ && ss();
|
341
341
|
return {
|
342
342
|
c() {
|
343
|
-
t = w("div"), i = w("h1"), n = J(s), u = B(), o = w("div"), r = w("button"), b = J(f), C = B(), D && D.c(), c(i, "class", "text-3xl font-bold pb-[1em] transition-opacity"), c(r, "id", "bry-cc-retake-button"), c(r, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), c(o, "class", "flex flex-row"),
|
343
|
+
t = w("div"), i = w("h1"), n = J(s), u = B(), o = w("div"), r = w("button"), b = J(f), C = B(), D && D.c(), c(i, "class", "text-3xl font-bold pb-[1em] transition-opacity"), c(r, "id", "bry-cc-retake-button"), c(r, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), c(o, "class", "flex flex-row"), Rt(o, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
344
344
|
a[25]);
|
345
345
|
},
|
346
346
|
m(v, O) {
|
347
|
-
Q(v, t, O), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, b), l(o, C), D && D.m(o, null), d = !0, h || (
|
347
|
+
Q(v, t, O), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, b), l(o, C), D && D.m(o, null), d = !0, h || (L = re(
|
348
348
|
r,
|
349
349
|
"click",
|
350
350
|
/*click_handler_6*/
|
@@ -357,7 +357,7 @@ function Zi(a) {
|
|
357
357
|
v[22]("docCollector.captured") + "") && x(n, s), (!d || O[0] & /*$_*/
|
358
358
|
4194304) && f !== (f = /*$_*/
|
359
359
|
v[22]("faceCollector.retakePhoto") + "") && x(b, f), (!d || O[0] & /*$exportButtonDisabled*/
|
360
|
-
33554432) &&
|
360
|
+
33554432) && Rt(o, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
361
361
|
v[25]);
|
362
362
|
},
|
363
363
|
i(v) {
|
@@ -367,35 +367,35 @@ function Zi(a) {
|
|
367
367
|
z(D), d = !1;
|
368
368
|
},
|
369
369
|
d(v) {
|
370
|
-
v && G(t), D && D.d(), h = !1,
|
370
|
+
v && G(t), D && D.d(), h = !1, L();
|
371
371
|
}
|
372
372
|
};
|
373
373
|
}
|
374
|
-
function
|
374
|
+
function es(a) {
|
375
375
|
let t, i, s = (
|
376
376
|
/*$_*/
|
377
377
|
a[22]("faceCollector.unconformities") + ""
|
378
378
|
), n, u, o, r, f, b = (
|
379
379
|
/*$_*/
|
380
380
|
a[22]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
381
|
-
), C, _, d, h,
|
381
|
+
), C, _, d, h, L, D, v, O, ee = (
|
382
382
|
/*$_*/
|
383
383
|
a[22]("faceCollector.thisInformationIsRequired") + ""
|
384
|
-
), te, $,
|
384
|
+
), te, $, F, M, ie, P = (
|
385
385
|
/*$captured*/
|
386
|
-
a[13] &&
|
386
|
+
a[13] && Bt(a)
|
387
387
|
);
|
388
388
|
return {
|
389
389
|
c() {
|
390
|
-
t = w("div"), i = w("h1"), n = J(s), u = B(), o = w("div"), r = w("label"), f = w("span"), C = J(b), _ = B(), d = w("textarea"),
|
390
|
+
t = w("div"), i = w("h1"), n = J(s), u = B(), o = w("div"), r = w("label"), f = w("span"), C = J(b), _ = B(), d = w("textarea"), L = B(), D = w("label"), v = w("span"), O = J("("), te = J(ee), $ = J(")"), F = B(), P && P.c(), c(i, "class", "text-3xl font-bold pb-[1em] transition-opacity"), c(f, "class", "ce-dui-label-text text-base"), c(r, "class", "ce-dui-label"), c(r, "for", "justification"), c(d, "contenteditable", ""), c(d, "id", "justification"), c(d, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), c(d, "placeholder", h = /*$_*/
|
391
391
|
a[22]("faceCollector.yourJustification")), c(v, "class", "ce-dui-label-text-alt text-base"), c(D, "class", "ce-dui-label"), c(D, "for", "justification"), c(o, "class", "ce-dui-form-control mt-[2.5em]");
|
392
392
|
},
|
393
393
|
m(R, E) {
|
394
|
-
Q(R, t, E), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, f), l(f, C), l(o, _), l(o, d),
|
394
|
+
Q(R, t, E), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, f), l(f, C), l(o, _), l(o, d), Pt(
|
395
395
|
d,
|
396
396
|
/*$justification*/
|
397
397
|
a[16]
|
398
|
-
), l(o,
|
398
|
+
), l(o, L), l(o, D), l(D, v), l(v, O), l(v, te), l(v, $), l(t, F), P && P.m(t, null), M || (ie = re(
|
399
399
|
d,
|
400
400
|
"input",
|
401
401
|
/*textarea_input_handler*/
|
@@ -410,14 +410,14 @@ function xi(a) {
|
|
410
410
|
R[22]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && x(C, b), E[0] & /*$_*/
|
411
411
|
4194304 && h !== (h = /*$_*/
|
412
412
|
R[22]("faceCollector.yourJustification")) && c(d, "placeholder", h), E[0] & /*$justification*/
|
413
|
-
65536 &&
|
413
|
+
65536 && Pt(
|
414
414
|
d,
|
415
415
|
/*$justification*/
|
416
416
|
R[16]
|
417
417
|
), E[0] & /*$_*/
|
418
418
|
4194304 && ee !== (ee = /*$_*/
|
419
419
|
R[22]("faceCollector.thisInformationIsRequired") + "") && x(te, ee), /*$captured*/
|
420
|
-
R[13] ? P ? P.p(R, E) : (P =
|
420
|
+
R[13] ? P ? P.p(R, E) : (P = Bt(R), P.c(), P.m(t, null)) : P && (P.d(1), P = null);
|
421
421
|
},
|
422
422
|
i: oe,
|
423
423
|
o: oe,
|
@@ -426,7 +426,7 @@ function xi(a) {
|
|
426
426
|
}
|
427
427
|
};
|
428
428
|
}
|
429
|
-
function
|
429
|
+
function ts(a) {
|
430
430
|
let t, i, s = (
|
431
431
|
/*$_*/
|
432
432
|
a[22]("faceCollector.everythingOk") + ""
|
@@ -436,13 +436,13 @@ function $i(a) {
|
|
436
436
|
), b, C, _, d = (
|
437
437
|
/*$_*/
|
438
438
|
a[22]("faceCollector.retakePhoto") + ""
|
439
|
-
), h,
|
439
|
+
), h, L, D;
|
440
440
|
return {
|
441
441
|
c() {
|
442
442
|
t = w("div"), i = w("h1"), n = J(s), u = B(), o = w("div"), r = w("button"), b = J(f), C = B(), _ = w("button"), h = J(d), c(i, "class", "text-3xl font-bold pb-[1em] transition-opacity"), r.disabled = !0, c(r, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), c(_, "id", "bry-cc-retake-button"), c(_, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), c(o, "class", "ce-dui-btn-group flex"), c(t, "class", "flex flex-col justify-between");
|
443
443
|
},
|
444
444
|
m(v, O) {
|
445
|
-
Q(v, t, O), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, b), l(o, C), l(o, _), l(_, h),
|
445
|
+
Q(v, t, O), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, b), l(o, C), l(o, _), l(_, h), L || (D = [
|
446
446
|
re(
|
447
447
|
r,
|
448
448
|
"click",
|
@@ -455,7 +455,7 @@ function $i(a) {
|
|
455
455
|
/*click_handler_3*/
|
456
456
|
a[46]
|
457
457
|
)
|
458
|
-
],
|
458
|
+
], L = !0);
|
459
459
|
},
|
460
460
|
p(v, O) {
|
461
461
|
O[0] & /*$_*/
|
@@ -469,11 +469,11 @@ function $i(a) {
|
|
469
469
|
i: oe,
|
470
470
|
o: oe,
|
471
471
|
d(v) {
|
472
|
-
v && G(t),
|
472
|
+
v && G(t), L = !1, ct(D);
|
473
473
|
}
|
474
474
|
};
|
475
475
|
}
|
476
|
-
function
|
476
|
+
function is(a) {
|
477
477
|
let t;
|
478
478
|
return {
|
479
479
|
c() {
|
@@ -490,9 +490,9 @@ function es(a) {
|
|
490
490
|
}
|
491
491
|
};
|
492
492
|
}
|
493
|
-
function
|
493
|
+
function ss(a) {
|
494
494
|
let t, i;
|
495
|
-
return t = new
|
495
|
+
return t = new Yi({
|
496
496
|
props: { cssClass: "ce-dui-btn-block flex-shrink" }
|
497
497
|
}), {
|
498
498
|
c() {
|
@@ -512,7 +512,7 @@ function ts(a) {
|
|
512
512
|
}
|
513
513
|
};
|
514
514
|
}
|
515
|
-
function
|
515
|
+
function Bt(a) {
|
516
516
|
let t, i, s = (
|
517
517
|
/*$_*/
|
518
518
|
a[22]("faceCollector.finish") + ""
|
@@ -555,35 +555,35 @@ function Nt(a) {
|
|
555
555
|
}
|
556
556
|
};
|
557
557
|
}
|
558
|
-
function
|
558
|
+
function as(a) {
|
559
559
|
let t, i, s, n = (
|
560
560
|
/*unique*/
|
561
561
|
a[8]
|
562
|
-
), u, o, r, f, b, C, _, d, h,
|
562
|
+
), u, o, r, f, b, C, _, d, h, L, D, v, O, ee, te, $, F, M, ie, P, R = At(a), E = (
|
563
563
|
/*showConfigButton*/
|
564
564
|
a[1] && /*$ready*/
|
565
|
-
a[21] &&
|
566
|
-
),
|
565
|
+
a[21] && St()
|
566
|
+
), I = (
|
567
567
|
/*showCameraButton*/
|
568
568
|
a[2] && /*$ready*/
|
569
|
-
a[21] &&
|
569
|
+
a[21] && Lt()
|
570
570
|
), H = !/*$captured*/
|
571
571
|
a[13] && /*$ready*/
|
572
|
-
a[21] &&
|
572
|
+
a[21] && Ft(a), q = (
|
573
573
|
/*isCountingDown*/
|
574
|
-
a[7] &&
|
575
|
-
),
|
574
|
+
a[7] && It(a)
|
575
|
+
), X = (
|
576
576
|
/*$enableFaceApi*/
|
577
577
|
a[20] && !/*isCountingDown*/
|
578
578
|
a[7] && /*$faceValidationAlert*/
|
579
|
-
a[14] &&
|
580
|
-
),
|
579
|
+
a[14] && Wt(a)
|
580
|
+
), Y = !/*$ready*/
|
581
581
|
a[21] && /*$cameraStatusStore*/
|
582
|
-
a[12] === K.OK &&
|
582
|
+
a[12] === K.OK && Mt(a), p = (
|
583
583
|
/*$captured*/
|
584
|
-
a[13] &&
|
584
|
+
a[13] && Nt(a)
|
585
585
|
);
|
586
|
-
const Z = [
|
586
|
+
const Z = [xi, Zi], j = [];
|
587
587
|
function le(m, N) {
|
588
588
|
return (
|
589
589
|
/*showUnconformities*/
|
@@ -595,110 +595,111 @@ function is(a) {
|
|
595
595
|
)
|
596
596
|
);
|
597
597
|
}
|
598
|
-
return ~(
|
598
|
+
return ~(F = le(a)) && (M = j[F] = Z[F](a)), {
|
599
599
|
c() {
|
600
|
-
t = w("div"), i = w("div"), s = w("div"), R.c(), u = B(), E && E.c(), o = B(),
|
600
|
+
t = w("div"), i = w("div"), s = w("div"), R.c(), u = B(), E && E.c(), o = B(), I && I.c(), r = B(), H && H.c(), f = B(), b = w("canvas"), C = B(), _ = w("canvas"), d = B(), h = w("canvas"), L = B(), q && q.c(), D = B(), X && X.c(), ee = B(), Y && Y.c(), te = B(), p && p.c(), $ = B(), M && M.c(), ie = Ci(), this.c = oe, c(b, "id", "bry-ce-displayCanvas"), c(b, "class", "max-w-full"), c(_, "id", "bry-ce-detectionsCanvas"), c(_, "class", "absolute top-0 left-0 max-w-full"), c(h, "id", "bry-ce-maskCanvas"), c(h, "class", "absolute top-0 left-0 max-w-full"), c(s, "class", v = /*$ready*/
|
601
601
|
a[21] ? "relative" : "relative w-0 h-0"), s.hidden = O = /*$cameraStatusStore*/
|
602
602
|
a[12] !== K.OK, c(i, "class", "relative mx-auto"), c(t, "class", "flex flex-col justify-between");
|
603
603
|
},
|
604
604
|
m(m, N) {
|
605
|
-
Q(m, t, N), l(t, i), l(i, s), R.m(s, null), l(s, u), E && E.m(s, null), l(s, o),
|
605
|
+
Q(m, t, N), l(t, i), l(i, s), R.m(s, null), l(s, u), E && E.m(s, null), l(s, o), I && I.m(s, null), l(s, r), H && H.m(s, null), l(s, f), l(s, b), a[39](b), l(s, C), l(s, _), a[40](_), l(s, d), l(s, h), a[41](h), l(s, L), q && q.m(s, null), l(s, D), X && X.m(s, null), l(i, ee), Y && Y.m(i, null), l(i, te), p && p.m(i, null), a[44](t), Q(m, $, N), ~F && j[F].m(m, N), Q(m, ie, N), P = !0;
|
606
606
|
},
|
607
607
|
p(m, N) {
|
608
608
|
N[0] & /*unique*/
|
609
|
-
256 &&
|
610
|
-
m[8]) ? (R.d(1), R =
|
609
|
+
256 && Ut(n, n = /*unique*/
|
610
|
+
m[8]) ? (R.d(1), R = At(m), R.c(), R.m(s, u)) : R.p(m, N), /*showConfigButton*/
|
611
611
|
m[1] && /*$ready*/
|
612
612
|
m[21] ? E ? N[0] & /*showConfigButton, $ready*/
|
613
|
-
2097154 && V(E, 1) : (E =
|
613
|
+
2097154 && V(E, 1) : (E = St(), E.c(), V(E, 1), E.m(s, o)) : E && (ve(), z(E, 1, 1, () => {
|
614
614
|
E = null;
|
615
615
|
}), Ce()), /*showCameraButton*/
|
616
616
|
m[2] && /*$ready*/
|
617
|
-
m[21] ?
|
618
|
-
2097156 && V(
|
619
|
-
|
617
|
+
m[21] ? I ? N[0] & /*showCameraButton, $ready*/
|
618
|
+
2097156 && V(I, 1) : (I = Lt(), I.c(), V(I, 1), I.m(s, r)) : I && (ve(), z(I, 1, 1, () => {
|
619
|
+
I = null;
|
620
620
|
}), Ce()), !/*$captured*/
|
621
621
|
m[13] && /*$ready*/
|
622
622
|
m[21] ? H ? (H.p(m, N), N[0] & /*$captured, $ready*/
|
623
|
-
2105344 && V(H, 1)) : (H =
|
623
|
+
2105344 && V(H, 1)) : (H = Ft(m), H.c(), V(H, 1), H.m(s, f)) : H && (ve(), z(H, 1, 1, () => {
|
624
624
|
H = null;
|
625
625
|
}), Ce()), /*isCountingDown*/
|
626
|
-
m[7] ? q ? q.p(m, N) : (q =
|
626
|
+
m[7] ? q ? q.p(m, N) : (q = It(m), q.c(), q.m(s, D)) : q && (q.d(1), q = null), /*$enableFaceApi*/
|
627
627
|
m[20] && !/*isCountingDown*/
|
628
628
|
m[7] && /*$faceValidationAlert*/
|
629
|
-
m[14] ?
|
629
|
+
m[14] ? X ? X.p(m, N) : (X = Wt(m), X.c(), X.m(s, null)) : X && (X.d(1), X = null), (!P || N[0] & /*$ready*/
|
630
630
|
2097152 && v !== (v = /*$ready*/
|
631
631
|
m[21] ? "relative" : "relative w-0 h-0")) && c(s, "class", v), (!P || N[0] & /*$cameraStatusStore*/
|
632
632
|
4096 && O !== (O = /*$cameraStatusStore*/
|
633
633
|
m[12] !== K.OK)) && (s.hidden = O), !/*$ready*/
|
634
634
|
m[21] && /*$cameraStatusStore*/
|
635
|
-
m[12] === K.OK ?
|
636
|
-
m[13] ? p ? p.p(m, N) : (p =
|
637
|
-
let ce =
|
638
|
-
|
635
|
+
m[12] === K.OK ? Y ? Y.p(m, N) : (Y = Mt(m), Y.c(), Y.m(i, te)) : Y && (Y.d(1), Y = null), /*$captured*/
|
636
|
+
m[13] ? p ? p.p(m, N) : (p = Nt(m), p.c(), p.m(i, null)) : p && (p.d(1), p = null);
|
637
|
+
let ce = F;
|
638
|
+
F = le(m), F === ce ? ~F && j[F].p(m, N) : (M && (ve(), z(j[ce], 1, 1, () => {
|
639
639
|
j[ce] = null;
|
640
|
-
}), Ce()), ~
|
640
|
+
}), Ce()), ~F ? (M = j[F], M ? M.p(m, N) : (M = j[F] = Z[F](m), M.c()), V(M, 1), M.m(ie.parentNode, ie)) : M = null);
|
641
641
|
},
|
642
642
|
i(m) {
|
643
|
-
P || (V(E), V(
|
643
|
+
P || (V(E), V(I), V(H), V(M), P = !0);
|
644
644
|
},
|
645
645
|
o(m) {
|
646
|
-
z(E), z(
|
646
|
+
z(E), z(I), z(H), z(M), P = !1;
|
647
647
|
},
|
648
648
|
d(m) {
|
649
|
-
m && G(t), R.d(m), E && E.d(),
|
649
|
+
m && G(t), R.d(m), E && E.d(), I && I.d(), H && H.d(), a[39](null), a[40](null), a[41](null), q && q.d(), X && X.d(), Y && Y.d(), p && p.d(), a[44](null), m && G($), ~F && j[F].d(m), m && G(ie);
|
650
650
|
}
|
651
651
|
};
|
652
652
|
}
|
653
|
-
let
|
654
|
-
function
|
653
|
+
let os = !1, ns = 5;
|
654
|
+
function Ht(a, t, i) {
|
655
655
|
const s = t.videoWidth / t.videoHeight, n = i.width / i.height;
|
656
656
|
let u = 0, o = 0, r = t.videoWidth, f = t.videoHeight;
|
657
657
|
s > n ? (r = t.videoHeight * n, u = (t.videoWidth - r) / 2) : s < n && (f = t.videoWidth / n, o = (t.videoHeight - f) / 2), a.drawImage(t, u, o, r, f, 0, 0, i.width, i.height);
|
658
658
|
}
|
659
|
-
function
|
660
|
-
let s, n, u, o, r, f, b, C, _, d, h,
|
661
|
-
T(a, $e, (e) => i(63, s = e)), T(a,
|
662
|
-
let p, Z, j, le = !1, m = {}, N = !1, { enableMinutiae: ce } = t, { videoDimensions:
|
663
|
-
const Te =
|
659
|
+
function ls(a, t, i) {
|
660
|
+
let s, n, u, o, r, f, b, C, _, d, h, L, D, v, O, ee, te, $, F, M, ie, P, R, E, I, H, q, X, Y;
|
661
|
+
T(a, $e, (e) => i(63, s = e)), T(a, Pe, (e) => i(65, u = e)), T(a, se, (e) => i(12, o = e)), T(a, ki, (e) => i(66, r = e)), T(a, Ae, (e) => i(67, f = e)), T(a, yi, (e) => i(68, b = e)), T(a, ge, (e) => i(69, C = e)), T(a, _e, (e) => i(70, _ = e)), T(a, Se, (e) => i(13, d = e)), T(a, et, (e) => i(71, h = e)), T(a, vt, (e) => i(72, L = e)), T(a, Ct, (e) => i(73, D = e)), T(a, Le, (e) => i(14, v = e)), T(a, Fe, (e) => i(15, O = e)), T(a, kt, (e) => i(16, ee = e)), T(a, yt, (e) => i(17, te = e)), T(a, tt, (e) => i(18, $ = e)), T(a, it, (e) => i(74, F = e)), T(a, Dt, (e) => i(75, ie = e)), T(a, Di, (e) => i(20, P = e)), T(a, Ie, (e) => i(21, R = e)), T(a, st, (e) => i(76, E = e)), T(a, We, (e) => i(77, I = e)), T(a, Ei, (e) => i(22, H = e)), T(a, Ti, (e) => i(23, q = e)), T(a, Oi, (e) => i(24, X = e)), T(a, Ri, (e) => i(25, Y = e));
|
662
|
+
let p, Z, j, le = !1, m = {}, N = !1, { enableMinutiae: ce } = t, { videoDimensions: He } = t, { noTabs: Ue } = t, { weightsPath: Ke } = t, { showUnconformities: ut } = t, { videoOverlay: Ee } = t, { videoOverlayTransparency: he } = t, { showConfigButton: ft } = t, { showCameraButton: dt } = t;
|
663
|
+
const Te = Ot(!1);
|
664
664
|
T(a, Te, (e) => i(64, n = e));
|
665
|
-
const
|
666
|
-
T(a,
|
667
|
-
let ue, U, ht = !1, me = !0, mt = 0,
|
665
|
+
const Ve = Ot("data:image/png;base64");
|
666
|
+
T(a, Ve, (e) => i(19, M = e));
|
667
|
+
let ue, U, ht = !1, me = !0, mt = 0, qe = 0, Xe = !0, Ye = 0, je = !1, Je = (/* @__PURE__ */ new Date()).getTime(), Qe = !1, k = {
|
668
668
|
topLeftX: 130,
|
669
669
|
topLeftY: 70,
|
670
670
|
width: 540,
|
671
671
|
height: 400
|
672
672
|
};
|
673
|
-
|
673
|
+
Pi.mixin({
|
674
674
|
toast: !0,
|
675
675
|
position: "bottom-left",
|
676
676
|
timer: 13e3,
|
677
677
|
timerProgressBar: !0
|
678
|
-
}),
|
679
|
-
g(
|
678
|
+
}), Ai(async () => {
|
679
|
+
g(Ie, R = !1, R), bt(), await ze(), P && (await Si(Ke), N = !0), Xt();
|
680
680
|
});
|
681
681
|
function bt() {
|
682
|
-
g(
|
683
|
-
const e =
|
682
|
+
g(Se, d = !1, d), g(Ct, D = !0, D), g(Le, v = "", v), g(Ae, f = at.REAR_CAMERA, f), g(se, o = K.OK, o), g(Pe, u = !1, u), g(Fe, O = !1, O), g(tt, $ = lt.OK, $), g(it, F = "", F);
|
683
|
+
const e = Kt(ot);
|
684
684
|
e.closedMouth = !1, e.isPersonCloseEnough = !1, e.isPersonTooclose = !0, e.isPersonInFrame = !1, ot.set(e);
|
685
685
|
}
|
686
|
-
function
|
687
|
-
const e = _.videoWidth,
|
688
|
-
|
686
|
+
function Vt() {
|
687
|
+
const e = _.videoWidth, A = _.videoHeight;
|
688
|
+
let S = A * 0.75, y = S * 1.36;
|
689
|
+
k.topLeftX = (e - y) / 2, k.topLeftY = (A - S) / 3, Me() && (S = A * 0.85, y = S * 1.5, k.topLeftX = (e - y) / 2, k.topLeftY = (A - S) / 2), k.width = y, k.height = S, g(We, I.y = k.topLeftY, I), g(We, I.height = k.height, I), g(We, I.width = k.width, I);
|
689
690
|
}
|
690
|
-
function gt(e,
|
691
|
-
e.clearRect(0, 0, U.width, U.height), e.save(),
|
692
|
-
const
|
693
|
-
if (e.strokeStyle = `hsl(${
|
694
|
-
const ae = 1 - (
|
691
|
+
function gt(e, A) {
|
692
|
+
e.clearRect(0, 0, U.width, U.height), e.save(), Vt(), Ee != "none" ? (he > 0 && (e.globalAlpha = he / 100), e.fillStyle = Ee, e.fillRect(0, 0, U.width, U.height)) : (e.beginPath(), e.rect(0, 0, U.width, U.height)), e.rect(k.topLeftX, k.topLeftY, k.width, k.height), he == 0 && e.clip(), Ht(e, A, U), e.restore(), e.save(), e.beginPath();
|
693
|
+
const S = window.getComputedStyle(U).getPropertyValue("--p"), y = window.getComputedStyle(U).getPropertyValue("--su");
|
694
|
+
if (e.strokeStyle = `hsl(${S})`, e.lineWidth = 12, e.lineJoin = "round", e.setLineDash([28, 8]), e.rect(k.topLeftX, k.topLeftY, k.width, k.height), e.stroke(), le && !je) {
|
695
|
+
const ae = 1 - (Ye - (/* @__PURE__ */ new Date()).getTime()) / 4500;
|
695
696
|
e.save(), e.beginPath(), e.setLineDash([]), e.lineWidth = 14, e.strokeStyle = `hsl(${y})`;
|
696
|
-
const
|
697
|
-
e.rect(k.topLeftX, k.topLeftY,
|
697
|
+
const Ge = k.width * 3 * ae, Re = k.height * 2 * ae, Ze = Ge < k.width ? Ge : k.width, xe = Re < k.height ? Re : k.height;
|
698
|
+
e.rect(k.topLeftX, k.topLeftY, Ze, xe), e.stroke();
|
698
699
|
}
|
699
700
|
e.beginPath();
|
700
701
|
const W = new Path2D();
|
701
|
-
W.rect(k.topLeftX, k.topLeftY, k.width, k.height), e.clip(W),
|
702
|
+
W.rect(k.topLeftX, k.topLeftY, k.width, k.height), e.clip(W), Ht(e, A, U), e.restore();
|
702
703
|
}
|
703
704
|
function _t() {
|
704
705
|
g(se, o = K.OK, o), ht = !0, i(11, me = !1);
|
@@ -707,18 +708,18 @@ function os(a, t, i) {
|
|
707
708
|
if (P && !N)
|
708
709
|
return pe(p, be);
|
709
710
|
if (p) {
|
710
|
-
if (E !== nt.Document && !
|
711
|
+
if (E !== nt.Document && !Ue)
|
711
712
|
return pe(p, be);
|
712
|
-
g(
|
713
|
+
g(Ie, R = !0, R), P ? (n || g(Te, n = !0, n), gt(U.getContext("2d"), p), pe(p, be)) : (gt(U.getContext("2d"), p), pe(p, be));
|
713
714
|
}
|
714
715
|
}
|
715
|
-
async function
|
716
|
-
ie && (
|
717
|
-
const e = document.createElement("canvas"),
|
718
|
-
e.width = k.width +
|
716
|
+
async function qt() {
|
717
|
+
ie && (Tt(), g(Dt, ie = !1, ie)), g(tt, $ = lt.OK, $), g(Se, d = !0, d), g(Fe, O = !0, O);
|
718
|
+
const e = document.createElement("canvas"), A = e.getContext("2d"), S = 0.2 * k.width, y = 0.2 * k.height;
|
719
|
+
e.width = k.width + S, e.height = k.height + y, A?.drawImage(p, k.topLeftX - S / 2, k.topLeftY - y / 2, k.width + S, k.height + y, 0, 0, e.width, e.height);
|
719
720
|
const W = e.toDataURL("image/jpeg").split(",");
|
720
|
-
g(
|
721
|
-
const ae = [{ data:
|
721
|
+
g(Ve, M = W[0], M), g(yt, te = W[1], te), g(it, F = W[1], F);
|
722
|
+
const ae = [{ data: F }];
|
722
723
|
window.dispatchEvent(new CustomEvent(
|
723
724
|
"document-unconformities-validated",
|
724
725
|
{
|
@@ -732,176 +733,176 @@ function os(a, t, i) {
|
|
732
733
|
data: te,
|
733
734
|
justification: ee
|
734
735
|
};
|
735
|
-
g(
|
736
|
+
g(Fe, O = !0, O), window.dispatchEvent(new CustomEvent("export-document", { detail: e }));
|
736
737
|
}
|
737
738
|
function fe() {
|
738
739
|
window.dispatchEvent(new CustomEvent("document-scrapped")), bt(), me && _t();
|
739
740
|
}
|
740
|
-
async function
|
741
|
-
const [
|
742
|
-
if (!(!
|
743
|
-
g(_e, _ = { videoWidth:
|
741
|
+
async function ze(e) {
|
742
|
+
const [A, S] = (He ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
|
743
|
+
if (!(!A || !S)) {
|
744
|
+
g(_e, _ = { videoWidth: A, videoHeight: S }, _);
|
744
745
|
try {
|
745
|
-
const { deviceId: y, width: W, height: ae, aspectRatio: Ze } = await
|
746
|
-
if (
|
747
|
-
const
|
746
|
+
const { deviceId: y, width: W, height: ae, aspectRatio: Ge, facingMode: Re, touchPoints: Ze } = await Li(A, S, f, e);
|
747
|
+
if (Me() && !(!Re || Ze <= 1)) {
|
748
|
+
const xe = window.innerWidth, gi = window.innerHeight, wt = 2560, _i = gi / xe * wt;
|
748
749
|
g(
|
749
750
|
_e,
|
750
751
|
_ = {
|
751
|
-
videoWidth:
|
752
|
-
videoHeight:
|
752
|
+
videoWidth: wt,
|
753
|
+
videoHeight: _i
|
753
754
|
},
|
754
755
|
_
|
755
756
|
);
|
756
757
|
} else
|
757
|
-
g(_e, _ = { videoWidth:
|
758
|
+
g(_e, _ = { videoWidth: A, videoHeight: S }, _);
|
758
759
|
g(ge, C = y || b[0].deviceId, C), g(se, o = K.OK, o);
|
759
760
|
} catch (y) {
|
760
761
|
const W = y;
|
761
762
|
i(11, me = !0);
|
762
|
-
const ae =
|
763
|
-
console.error(W, ae),
|
763
|
+
const ae = Ne(y) && y.constraint ? y.constraint : "";
|
764
|
+
console.error(W, ae), Ne(W) && "message" in W && W.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), g(se, o = K.CAMERA_DENIED_ERROR, o)), Ne(W) && "message" in W && W.message.includes("Requested device not found") && g(se, o = K.DEVICE_NOT_FOUND_ERROR, o), (ae.includes("width") || ae.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${ae})`), g(se, o = K.CAMERA_UNSUPPORTED, o));
|
764
765
|
}
|
765
766
|
}
|
766
767
|
}
|
767
768
|
async function de() {
|
768
|
-
g(ge, C = "", C), await
|
769
|
+
g(ge, C = "", C), await ze();
|
769
770
|
}
|
770
|
-
function
|
771
|
+
function Xt() {
|
771
772
|
navigator.mediaDevices.ondevicechange = async (e) => {
|
772
|
-
await
|
773
|
+
await Et(), o !== K.OK ? await de() : L.active || (Be(), g(se, o = K.DEVICE_NOT_FOUND_ERROR, o));
|
773
774
|
};
|
774
775
|
}
|
775
776
|
function Yt() {
|
776
|
-
g(
|
777
|
+
g(Pe, u = !1, u);
|
777
778
|
const e = (/* @__PURE__ */ new Date()).getTime();
|
778
|
-
e -
|
779
|
+
e - Je > 1e4 ? (Je = e, g(Le, v = "docCollector.docWasNotFound", v)) : Qe || (Qe = !0, setTimeout(
|
779
780
|
() => {
|
780
|
-
|
781
|
+
Qe = !1, v != "docCollector.docWasNotFound" && g(Le, v = "", v);
|
781
782
|
},
|
782
783
|
1500
|
783
784
|
));
|
784
785
|
}
|
785
|
-
const
|
786
|
+
const jt = _e.subscribe((e) => {
|
786
787
|
p && Z && (i(4, p.width = e.videoWidth, p), i(4, p.height = e.videoHeight, p), i(5, Z.width = e.videoWidth, Z), i(5, Z.height = e.videoHeight, Z), i(9, ue.width = e.videoWidth, ue), i(9, ue.height = e.videoHeight, ue), i(10, U.width = e.videoWidth, U), i(10, U.height = e.videoHeight, U));
|
787
|
-
}),
|
788
|
+
}), Jt = ot.subscribe((e) => {
|
788
789
|
if (r != "DOCUMENT")
|
789
790
|
return;
|
790
|
-
let
|
791
|
-
if (e.isPersonCloseEnough ? e.isPersonTooclose ?
|
792
|
-
i(7, le = !0),
|
793
|
-
const
|
791
|
+
let A = "";
|
792
|
+
if (e.isPersonCloseEnough ? e.isPersonTooclose ? A = "docCollector.moveAwayCamera" : e.isPersonInFrame || (A = "docCollector.stayInFrame") : A = "docCollector.comeCloserCamera", u && Fi(A), !d && D && u && !le && e.isPersonInFrame && !(!e.isPersonCloseEnough || e.isPersonTooclose)) {
|
793
|
+
i(7, le = !0), Ye = (/* @__PURE__ */ new Date()).getTime() + 4500;
|
794
|
+
const S = setInterval(
|
794
795
|
() => {
|
795
796
|
if (!D || d || !e.isPersonCloseEnough || e.isPersonTooclose || !e.isPersonInFrame) {
|
796
|
-
i(7, le = !1),
|
797
|
+
i(7, le = !1), je = !0, setTimeout(
|
797
798
|
() => {
|
798
|
-
|
799
|
+
je = !1;
|
799
800
|
},
|
800
801
|
1500
|
801
|
-
), clearInterval(
|
802
|
+
), clearInterval(S);
|
802
803
|
return;
|
803
804
|
}
|
804
805
|
const y = (/* @__PURE__ */ new Date()).getTime();
|
805
|
-
Math.floor((
|
806
|
+
Math.floor((Ye - y) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(S), i(7, le = !1), document.getElementsByTagName("biometric-collector")?.[0]?.shadowRoot?.getElementById("bry-cc-capture-btn")?.click());
|
806
807
|
},
|
807
808
|
250
|
808
809
|
);
|
809
810
|
}
|
810
|
-
}),
|
811
|
+
}), Qt = Se.subscribe((e) => {
|
811
812
|
j && (e ? (j.classList.remove("flex"), j.classList.add("hidden")) : (j.classList.add("flex"), j.classList.remove("hidden")));
|
812
|
-
}),
|
813
|
+
}), zt = et.subscribe((e) => {
|
813
814
|
p && e && (console.log("setting null in video srcObject"), i(4, p.srcObject = null, p), i(4, p.src = "", p), g(ge, C = null, C));
|
814
815
|
});
|
815
816
|
st.subscribe(async (e) => {
|
816
|
-
e === nt.Document && await
|
817
|
+
e === nt.Document && await Et();
|
817
818
|
});
|
818
|
-
const
|
819
|
+
const Gt = ge.subscribe(async (e) => {
|
819
820
|
if (!e || r != "DOCUMENT")
|
820
821
|
return;
|
821
822
|
p || i(8, m = {});
|
822
|
-
const { videoHeight:
|
823
|
+
const { videoHeight: A, videoWidth: S } = _;
|
823
824
|
try {
|
824
|
-
const y = await
|
825
|
-
i(4, p.srcObject = y, p), g(
|
825
|
+
const y = await Ii(S, A, e);
|
826
|
+
i(4, p.srcObject = y, p), g(vt, L = y, L), g(et, h = !1, h), y.getTracks().forEach((W) => {
|
826
827
|
W.readyState === "live" && console.log(`Camera ${W.label} opened successfully!`);
|
827
|
-
}),
|
828
|
+
}), Wi(p), Xe || g(se, o = K.CAMERA_ORIENTATION_LANDSCAPE, o);
|
828
829
|
} catch (y) {
|
829
830
|
const W = y;
|
830
|
-
i(11, me = !0),
|
831
|
+
i(11, me = !0), Ne(W) && "message" in W && W.message.includes("Requested device not found") && g(se, o = K.DEVICE_NOT_FOUND_ERROR, o);
|
831
832
|
}
|
832
|
-
}),
|
833
|
-
e === nt.Document && !ht && !d &&
|
834
|
-
}),
|
833
|
+
}), Zt = st.subscribe(async (e) => {
|
834
|
+
e === nt.Document && !ht && !d && os && await _t();
|
835
|
+
}), xt = Te.subscribe(async (e) => {
|
835
836
|
e && pt();
|
836
|
-
}),
|
837
|
+
}), $t = Ie.subscribe((e) => {
|
837
838
|
e && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
838
|
-
}),
|
839
|
+
}), ei = Mi.subscribe(async (e) => {
|
839
840
|
if (_) {
|
840
|
-
if (
|
841
|
-
const
|
842
|
-
await
|
841
|
+
if (Be(), !Me()) {
|
842
|
+
const S = (b.findIndex((W) => W.deviceId === C) + 1) % b.length, y = b[S].deviceId;
|
843
|
+
await ze(y);
|
843
844
|
return;
|
844
845
|
}
|
845
|
-
e ? (g(
|
846
|
+
e ? (g(Ae, f = at.FRONT_CAMERA, f), await de()) : (g(Ae, f = at.REAR_CAMERA, f), await de());
|
846
847
|
}
|
847
|
-
}),
|
848
|
-
!e.isSupported || !
|
848
|
+
}), ti = Ni.subscribe(async (e) => {
|
849
|
+
!e.isSupported || !Me() || r != "DOCUMENT" || (Be(), Xe = e.orientation.includes("landscape"), Xe ? g(se, o = K.OK, o) : g(se, o = K.CAMERA_ORIENTATION_LANDSCAPE, o), await de());
|
849
850
|
});
|
850
851
|
async function pt() {
|
851
852
|
let e;
|
852
853
|
try {
|
853
|
-
if (
|
854
|
-
|
855
|
-
const
|
854
|
+
if (qe >= ns) {
|
855
|
+
qe = 0;
|
856
|
+
const A = await Bi(), S = await import("./face_api_0e3ce8c8_2.3.1-RC04.js");
|
856
857
|
let y;
|
857
|
-
y =
|
858
|
+
y = S.detectSingleFace(U, A), e = await y.withFaceLandmarks(), Z.getContext("2d")?.clearRect(0, 0, Z.width, Z.height), e != null ? (Hi(e, Z, ce, !0), g(Pe, u = !0, u), Je = (/* @__PURE__ */ new Date()).getTime()) : Yt();
|
858
859
|
} else
|
859
|
-
|
860
|
+
qe++;
|
860
861
|
n && pe(p, pt);
|
861
|
-
} catch (
|
862
|
-
console.warn(`FaceapiLoop: ${
|
862
|
+
} catch (A) {
|
863
|
+
console.warn(`FaceapiLoop: ${A}`);
|
863
864
|
}
|
864
865
|
}
|
865
866
|
$e.subscribe(async (e) => {
|
866
867
|
e && (fe(), g($e, s = !1, s));
|
867
|
-
}),
|
868
|
-
|
868
|
+
}), Ui(() => {
|
869
|
+
Be(), Qt(), Jt(), jt(), zt(), Gt(), Zt(), clearInterval(mt), xt(), ei(), $t(), ti(), Tt(), mt = 0;
|
869
870
|
});
|
870
|
-
function
|
871
|
+
function ii(e) {
|
871
872
|
we[e ? "unshift" : "push"](() => {
|
872
873
|
p = e, i(4, p);
|
873
874
|
});
|
874
875
|
}
|
875
|
-
function
|
876
|
+
function si(e) {
|
876
877
|
we[e ? "unshift" : "push"](() => {
|
877
878
|
U = e, i(10, U);
|
878
879
|
});
|
879
880
|
}
|
880
|
-
function
|
881
|
+
function ai(e) {
|
881
882
|
we[e ? "unshift" : "push"](() => {
|
882
883
|
Z = e, i(5, Z);
|
883
884
|
});
|
884
885
|
}
|
885
|
-
function
|
886
|
+
function oi(e) {
|
886
887
|
we[e ? "unshift" : "push"](() => {
|
887
888
|
ue = e, i(9, ue);
|
888
889
|
});
|
889
890
|
}
|
890
|
-
const
|
891
|
-
function
|
891
|
+
const ni = () => Oe(), li = () => fe();
|
892
|
+
function ri(e) {
|
892
893
|
we[e ? "unshift" : "push"](() => {
|
893
894
|
j = e, i(6, j);
|
894
895
|
});
|
895
896
|
}
|
896
|
-
const
|
897
|
-
function
|
898
|
-
ee = this.value,
|
897
|
+
const ci = () => Oe(), ui = () => fe();
|
898
|
+
function fi() {
|
899
|
+
ee = this.value, kt.set(ee);
|
899
900
|
}
|
900
|
-
const
|
901
|
+
const di = () => Oe(), hi = () => fe(), mi = () => fe(), bi = async () => {
|
901
902
|
await de();
|
902
903
|
};
|
903
904
|
return a.$$set = (e) => {
|
904
|
-
"enableMinutiae" in e && i(32, ce = e.enableMinutiae), "videoDimensions" in e && i(33,
|
905
|
+
"enableMinutiae" in e && i(32, ce = e.enableMinutiae), "videoDimensions" in e && i(33, He = e.videoDimensions), "noTabs" in e && i(34, Ue = e.noTabs), "weightsPath" in e && i(35, Ke = e.weightsPath), "showUnconformities" in e && i(0, ut = e.showUnconformities), "videoOverlay" in e && i(36, Ee = e.videoOverlay), "videoOverlayTransparency" in e && i(37, he = e.videoOverlayTransparency), "showConfigButton" in e && i(1, ft = e.showConfigButton), "showCameraButton" in e && i(2, dt = e.showCameraButton);
|
905
906
|
}, [
|
906
907
|
ut,
|
907
908
|
ft,
|
@@ -927,21 +928,20 @@ function os(a, t, i) {
|
|
927
928
|
R,
|
928
929
|
H,
|
929
930
|
q,
|
930
|
-
Y,
|
931
931
|
X,
|
932
|
+
Y,
|
932
933
|
Te,
|
933
|
-
|
934
|
-
|
934
|
+
Ve,
|
935
|
+
qt,
|
935
936
|
Oe,
|
936
937
|
fe,
|
937
938
|
de,
|
938
939
|
ce,
|
940
|
+
He,
|
939
941
|
Ue,
|
940
942
|
Ke,
|
941
|
-
Ve,
|
942
943
|
Ee,
|
943
944
|
he,
|
944
|
-
ti,
|
945
945
|
ii,
|
946
946
|
si,
|
947
947
|
ai,
|
@@ -954,21 +954,22 @@ function os(a, t, i) {
|
|
954
954
|
fi,
|
955
955
|
di,
|
956
956
|
hi,
|
957
|
-
mi
|
957
|
+
mi,
|
958
|
+
bi
|
958
959
|
];
|
959
960
|
}
|
960
|
-
class
|
961
|
+
class rs extends pi {
|
961
962
|
constructor(t) {
|
962
|
-
super(),
|
963
|
+
super(), wi(
|
963
964
|
this,
|
964
965
|
{
|
965
966
|
target: this.shadowRoot,
|
966
|
-
props:
|
967
|
+
props: vi(this.attributes),
|
967
968
|
customElement: !0
|
968
969
|
},
|
969
|
-
|
970
|
-
|
971
|
-
|
970
|
+
ls,
|
971
|
+
as,
|
972
|
+
Ut,
|
972
973
|
{
|
973
974
|
enableMinutiae: 32,
|
974
975
|
videoDimensions: 33,
|
@@ -1057,7 +1058,7 @@ class ns extends gi {
|
|
1057
1058
|
return this.$$.ctx[3];
|
1058
1059
|
}
|
1059
1060
|
}
|
1060
|
-
customElements.define("document-collector",
|
1061
|
+
customElements.define("document-collector", rs);
|
1061
1062
|
export {
|
1062
|
-
|
1063
|
+
rs as default
|
1063
1064
|
};
|