bry-biometric-collector 3.0.0-RC02 → 3.0.0-RC03
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_cf9a12b0_3.0.0-RC02.js → DocumentCollector_cc7c3a54_3.0.0-RC03.js} +23 -23
- package/dist/{FaceCollector_ce582a75_3.0.0-RC02.js → FaceCollector_e350268a_3.0.0-RC03.js} +42 -42
- package/dist/{ValidationAlert_61be42c7_3.0.0-RC02.js → ValidationAlert_dfb361e9_3.0.0-RC03.js} +45 -45
- package/dist/{___vite-browser-external_commonjs-proxy_df2c73e2_3.0.0-RC02.js → ___vite-browser-external_commonjs-proxy_cbe30ad4_3.0.0-RC03.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{fingersApi_9b1d92d4_3.0.0-RC02.js → fingersApi_5b5a03ec_3.0.0-RC03.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_1e6ec6e7_3.0.0-RC02.js → index_4c3936a1_3.0.0-RC03.js} +3 -3
- package/dist/{index_f8e53f14_3.0.0-RC02.js → index_89b7de40_3.0.0-RC03.js} +3 -3
- package/dist/{main_8b4294dd_3.0.0-RC02.js → main_f74f12d4_3.0.0-RC03.js} +442 -433
- package/dist/style.css +1 -1
- package/package.json +1 -1
- /package/dist/{en-us_99b30d39_3.0.0-RC02.js → en-us_99b30d39_3.0.0-RC03.js} +0 -0
- /package/dist/{es-cl_cfa50670_3.0.0-RC02.js → es-cl_cfa50670_3.0.0-RC03.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.0.0-RC02.js → face_api_0e3ce8c8_3.0.0-RC03.js} +0 -0
- /package/dist/{index-no-detector_281a271b_3.0.0-RC02.js → index-no-detector_281a271b_3.0.0-RC03.js} +0 -0
- /package/dist/{index-no-detector_56051121_3.0.0-RC02.js → index-no-detector_56051121_3.0.0-RC03.js} +0 -0
- /package/dist/{pt-br_d5ca6103_3.0.0-RC02.js → pt-br_d5ca6103_3.0.0-RC03.js} +0 -0
package/dist/{DocumentCollector_cf9a12b0_3.0.0-RC02.js → DocumentCollector_cc7c3a54_3.0.0-RC03.js}
RENAMED
@@ -1,16 +1,16 @@
|
|
1
|
-
import { S as st, q as ot, r as nt, t as rt, w as j, x as S, y as p, bb as ae, B as Q, C as g, aU as se, bc as At, T as I, H as E, J as M, bd as ue, be as hi, L as oe, Q as F, z as q, aX as _e, D as $, E as L, G as U, I as ee, M as X, N as v, P as W, R as mi, U as it, V as at, W as Ge, X as be, Y as B, Z as ve, _ as bi, a0 as Ie, a2 as vi, a1 as ce, a3 as we, a4 as Qe, a5 as Ye, a6 as Ot, aa as Ce, ac as Xe, ad as Ii, ae as Nt, af as ye, $ as wi, a9 as Ve, ah as zt, aj as Je, ao as Ci, ap as yi, ar as Mi, as as pi, at as _i, av as xe, aw as ne, j as Di, ax as Ke, aI as jt, d as Me, aJ as kt, aK as qe, aL as Ti, az as $e, bf as Ai, aM as Oi, aN as Ni, aO as zi, au as ji, aP as ki, aQ as Ri, aR as pe, aS as Ei, aT as Si, aV as re, aW as lt, aY as Zi, aZ as V, a_ as J, a$ as Rt, b0 as Pi, aC as Wi, b3 as et, bg as Li } from "./
|
2
|
-
import { W as Fi, C as Hi, V as Ui, a as Bi } from "./
|
3
|
-
import { matchDimensions as Gi, resizeResults as Qi } from "./face_api_0e3ce8c8_3.0.0-
|
1
|
+
import { S as st, q as ot, r as nt, t as rt, w as j, x as S, y as p, bb as ae, B as Q, C as g, aU as se, bc as At, T as I, H as E, J as M, bd as ue, be as hi, L as oe, Q as F, z as q, aX as _e, D as $, E as L, G as U, I as ee, M as X, N as v, P as W, R as mi, U as it, V as at, W as Ge, X as be, Y as B, Z as ve, _ as bi, a0 as Ie, a2 as vi, a1 as ce, a3 as we, a4 as Qe, a5 as Ye, a6 as Ot, aa as Ce, ac as Xe, ad as Ii, ae as Nt, af as ye, $ as wi, a9 as Ve, ah as zt, aj as Je, ao as Ci, ap as yi, ar as Mi, as as pi, at as _i, av as xe, aw as ne, j as Di, ax as Ke, aI as jt, d as Me, aJ as kt, aK as qe, aL as Ti, az as $e, bf as Ai, aM as Oi, aN as Ni, aO as zi, au as ji, aP as ki, aQ as Ri, aR as pe, aS as Ei, aT as Si, aV as re, aW as lt, aY as Zi, aZ as V, a_ as J, a$ as Rt, b0 as Pi, aC as Wi, b3 as et, bg as Li } from "./main_f74f12d4_3.0.0-RC03.js";
|
2
|
+
import { W as Fi, C as Hi, V as Ui, a as Bi } from "./ValidationAlert_dfb361e9_3.0.0-RC03.js";
|
3
|
+
import { matchDimensions as Gi, resizeResults as Qi } from "./face_api_0e3ce8c8_3.0.0-RC03.js";
|
4
4
|
const Yi = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiLz4KICAgIDwvbWFzaz4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMThfNCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJwYXRoLTItaW5zaWRlLTJfMThfNCIgZmlsbD0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ICA8ZmVPZmZzZXQgZHk9IjQiLz4KICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiLz4KICAgIDxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
|
5
5
|
function Xi(a) {
|
6
6
|
let e, t, s, n, r, o, d, f, u, l, h;
|
7
7
|
return {
|
8
8
|
c() {
|
9
9
|
e = p("div"), t = ae("svg"), s = ae("defs"), n = ae("mask"), r = ae("rect"), o = ae("rect"), h = ae("rect"), this.c = Q, g(r, "width", "100%"), g(r, "height", "100%"), g(r, "fill", "white"), g(o, "id", "transparent-rect"), g(o, "x", d = "calc((100% - " + /*$docDimensions*/
|
10
|
-
a[
|
11
|
-
a[
|
12
|
-
a[
|
13
|
-
a[
|
10
|
+
a[2].width + "px) / 2)"), g(o, "y", f = "calc(" + /*y*/
|
11
|
+
a[3] + ")"), g(o, "width", u = /*$docDimensions*/
|
12
|
+
a[2].width), g(o, "height", l = /*$docDimensions*/
|
13
|
+
a[2].height), g(o, "fill", "black"), g(n, "id", "transparentAreaMask"), g(h, "width", "100%"), g(h, "height", "100%"), se(h, "fill", "rgba(" + At(
|
14
14
|
/*videoOverlay*/
|
15
15
|
a[0]
|
16
16
|
) + ", " + (1 - /*videoOverlayTransparency*/
|
@@ -21,14 +21,14 @@ function Xi(a) {
|
|
21
21
|
},
|
22
22
|
p(c, [m]) {
|
23
23
|
m & /*$docDimensions*/
|
24
|
-
|
25
|
-
c[
|
26
|
-
|
27
|
-
c[
|
28
|
-
|
29
|
-
c[
|
30
|
-
|
31
|
-
c[
|
24
|
+
4 && d !== (d = "calc((100% - " + /*$docDimensions*/
|
25
|
+
c[2].width + "px) / 2)") && g(o, "x", d), m & /*y*/
|
26
|
+
8 && f !== (f = "calc(" + /*y*/
|
27
|
+
c[3] + ")") && g(o, "y", f), m & /*$docDimensions*/
|
28
|
+
4 && u !== (u = /*$docDimensions*/
|
29
|
+
c[2].width) && g(o, "width", u), m & /*$docDimensions*/
|
30
|
+
4 && l !== (l = /*$docDimensions*/
|
31
|
+
c[2].height) && g(o, "height", l), m & /*videoOverlay, videoOverlayTransparency*/
|
32
32
|
3 && se(h, "fill", "rgba(" + At(
|
33
33
|
/*videoOverlay*/
|
34
34
|
c[0]
|
@@ -44,18 +44,18 @@ function Xi(a) {
|
|
44
44
|
}
|
45
45
|
function Vi(a, e, t) {
|
46
46
|
let s, n, r;
|
47
|
-
M(a, ue, (l) => t(
|
47
|
+
M(a, ue, (l) => t(2, s = l)), M(a, hi, (l) => t(5, n = l)), M(a, oe, (l) => t(6, r = l));
|
48
48
|
let { videoOverlay: o } = e, { videoOverlayTransparency: d } = e, f, u;
|
49
49
|
return a.$$set = (l) => {
|
50
50
|
"videoOverlay" in l && t(0, o = l.videoOverlay), "videoOverlayTransparency" in l && t(1, d = l.videoOverlayTransparency);
|
51
51
|
}, a.$$.update = () => {
|
52
|
-
a.$$.dirty & /*$videoStore, $docDimensions, $captureBarHeight, divHeight
|
53
|
-
|
52
|
+
a.$$.dirty & /*$videoStore, $docDimensions, $captureBarHeight, divHeight*/
|
53
|
+
116 && r && s && (t(4, f = r.videoHeight - n), t(3, u = (f - s.height) / 2 + "px"));
|
54
54
|
}, [
|
55
55
|
o,
|
56
56
|
d,
|
57
|
-
u,
|
58
57
|
s,
|
58
|
+
u,
|
59
59
|
f,
|
60
60
|
n,
|
61
61
|
r
|
@@ -757,7 +757,7 @@ function da(a, e, t) {
|
|
757
757
|
}
|
758
758
|
function ga(a, e, t) {
|
759
759
|
let s, n, r, o, d, f, u, l, h, c, m, y, Z, b, C, O, A, T, k, P, De, x, de, K, ct, ut, dt;
|
760
|
-
M(a, Ge, (i) => t(
|
760
|
+
M(a, Ge, (i) => t(54, s = i)), M(a, be, (i) => t(56, r = i)), M(a, B, (i) => t(10, o = i)), M(a, ve, (i) => t(11, d = i)), M(a, bi, (i) => t(57, f = i)), M(a, Ie, (i) => t(58, u = i)), M(a, vi, (i) => t(59, l = i)), M(a, ce, (i) => t(60, h = i)), M(a, oe, (i) => t(12, c = i)), M(a, we, (i) => t(13, m = i)), M(a, Qe, (i) => t(61, y = i)), M(a, Ye, (i) => t(62, Z = i)), M(a, Ot, (i) => t(63, b = i)), M(a, ue, (i) => t(64, C = i)), M(a, Ce, (i) => t(65, O = i)), M(a, Xe, (i) => t(14, A = i)), M(a, Ii, (i) => t(15, T = i)), M(a, Nt, (i) => t(16, k = i)), M(a, ye, (i) => t(17, P = i)), M(a, wi, (i) => t(18, De = i)), M(a, Ve, (i) => t(66, x = i)), M(a, zt, (i) => t(67, K = i)), M(a, Je, (i) => t(68, ct = i)), M(a, Ci, (i) => t(20, ut = i)), M(a, yi, (i) => t(21, dt = i));
|
761
761
|
let _, R, Y, le = !1, gt = !1, H = {
|
762
762
|
width: 2560,
|
763
763
|
height: 1440,
|
@@ -766,7 +766,7 @@ function ga(a, e, t) {
|
|
766
766
|
const Ft = { width: 2560, height: 1440 };
|
767
767
|
let { enableMinutiae: Te } = e, { videoDimensions: Ae } = e, { noTabs: Oe } = e, { weightsPath: Ne } = e, { showUnconformities: ft } = e, { showConfigButton: ht } = e, { showCameraButton: mt } = e, { videoOverlay: bt } = e, { videoOverlayTransparency: vt } = e;
|
768
768
|
const ge = Rt(!1);
|
769
|
-
M(a, ge, (i) => t(
|
769
|
+
M(a, ge, (i) => t(55, n = i));
|
770
770
|
const ze = Rt("data:image/png;base64");
|
771
771
|
M(a, ze, (i) => t(19, de = i));
|
772
772
|
let It = !1, fe = !0, wt = 0, je = 0, ke = !0, Ct = 0, Re = (/* @__PURE__ */ new Date()).getTime(), Ee = !1;
|
@@ -977,7 +977,7 @@ function ga(a, e, t) {
|
|
977
977
|
try {
|
978
978
|
if (je >= ua) {
|
979
979
|
je = 0;
|
980
|
-
const D = await ji(), w = await import("./face_api_0e3ce8c8_3.0.0-
|
980
|
+
const D = await ji(), w = await import("./face_api_0e3ce8c8_3.0.0-RC03.js");
|
981
981
|
let N;
|
982
982
|
if (N = w.detectSingleFace(_, D), i = await N.withFaceLandmarks(), R.getContext("2d")?.clearRect(0, 0, R.width, R.height), i != null) {
|
983
983
|
const z = Gi(R, _, !0);
|
@@ -997,7 +997,7 @@ function ga(a, e, t) {
|
|
997
997
|
Ge.subscribe(async (i) => {
|
998
998
|
i && (me(), v(Ge, s = !1, s));
|
999
999
|
}), Ei(() => {
|
1000
|
-
qe(), Xt(), Yt(), Qt(), Vt(), Jt(), xt(), clearInterval(wt), Kt(), $t(), qt(), ei(), wt = 0;
|
1000
|
+
console.log("Destroying document collector"), qe(), Xt(), Yt(), Qt(), Vt(), Jt(), xt(), clearInterval(wt), Kt(), $t(), qt(), ei(), wt = 0;
|
1001
1001
|
});
|
1002
1002
|
function ti(i) {
|
1003
1003
|
et[i ? "unshift" : "push"](() => {
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { S as Ut, q as Vt, r as jt, t as Ht, w as L, x as q, y as C, z as be, B as x, C as m, D as ge, E as J, G as Z, H as S, I as ve, J as I, K as Ne, L as Me, M as _e, N as h, O as K, P as j, Q as U, R as fa, T as _, U as lt, V as rt, W as Lt, X as Qe, Y
|
2
|
-
import { W as qa, C as za, V as Ja, a as Xa } from "./
|
3
|
-
import { detectSingleFace as Qa, matchDimensions as Ga, resizeResults as Ya, Box as Za } from "./face_api_0e3ce8c8_3.0.0-
|
1
|
+
import { S as Ut, q as Vt, r as jt, t as Ht, w as L, x as q, y as C, z as be, B as x, C as m, D as ge, E as J, G as Z, H as S, I as ve, J as I, K as Ne, L as Me, M as _e, N as h, O as K, P as j, Q as U, R as fa, T as _, U as lt, V as rt, W as Lt, X as Qe, Y, Z as Ge, _ as da, a0 as Ye, a1 as he, a2 as ha, a3 as Se, a4 as ui, a5 as Dt, a6 as fi, a7 as ma, a8 as _a, a9 as Pe, aa as we, ab as ba, ac as Ft, ad as Nt, ae as me, af as ee, $ as ga, ag as Ce, ah as di, ai as Ze, aj as St, ak as va, al as xe, am as hi, an as mi, ao as pa, ap as wa, aq as Ca, ar as Ea, as as ya, at as Ta, au as Oa, av as Pt, aw as H, j as nt, ax as Bt, ay as Ra, az as $e, aA as et, aB as ka, aC as _i, aD as bi, aE as tt, A as Wt, aF as Ee, aG as it, aH as Aa, aI as gi, d as Re, aJ as Mt, aK as at, aL as Ia, aM as La, aN as Da, aO as Fa, aP as Na, aQ as Sa, aR as Be, aS as Pa, aT as Ba, aU as st, aV as oe, aW as ft, aX as ct, aY as Di, aZ as M, a_ as V, a$ as vi, b0 as Wa, b1 as Ma, b2 as Ua, b3 as ot, b4 as We, b5 as Va, b6 as ja, b7 as pi, b8 as Ha, b9 as ut, ba as Ka } from "./main_f74f12d4_3.0.0-RC03.js";
|
2
|
+
import { W as qa, C as za, V as Ja, a as Xa } from "./ValidationAlert_dfb361e9_3.0.0-RC03.js";
|
3
|
+
import { detectSingleFace as Qa, matchDimensions as Ga, resizeResults as Ya, Box as Za } from "./face_api_0e3ce8c8_3.0.0-RC03.js";
|
4
4
|
function xa(i) {
|
5
5
|
let e, t, s, o;
|
6
6
|
return t = new qa({}), {
|
@@ -1312,7 +1312,7 @@ function ys(i) {
|
|
1312
1312
|
}
|
1313
1313
|
let Ts = 0, Os = 3e3;
|
1314
1314
|
function Rs() {
|
1315
|
-
({}).VITE_USE_DEV === "true" ? import("./index-no-detector_281a271b_3.0.0-
|
1315
|
+
({}).VITE_USE_DEV === "true" ? import("./index-no-detector_281a271b_3.0.0-RC03.js") : import("./index-no-detector_56051121_3.0.0-RC03.js");
|
1316
1316
|
}
|
1317
1317
|
function ks(i, e, t) {
|
1318
1318
|
const s = e.videoWidth / e.videoHeight, o = t.width / t.height;
|
@@ -1321,13 +1321,13 @@ function ks(i, e, t) {
|
|
1321
1321
|
}
|
1322
1322
|
function As(i, e, t) {
|
1323
1323
|
let s, o, n, l, r, c, u, f, g, v, d, E, b, p, k, T, F, A, B, W, R, y, X, $, ce, le, ke, dt, ae, Kt, ht, mt, _t, qt, zt, Jt;
|
1324
|
-
I(i, Lt, (a) => t(73, s = a)), I(i, Qe, (a) => t(75, n = a)), I(i,
|
1324
|
+
I(i, Lt, (a) => t(73, s = a)), I(i, Qe, (a) => t(75, n = a)), I(i, Y, (a) => t(20, l = a)), I(i, Ge, (a) => t(21, r = a)), I(i, da, (a) => t(76, c = a)), I(i, Ye, (a) => t(77, u = a)), I(i, he, (a) => t(22, f = a)), I(i, ha, (a) => t(78, g = a)), I(i, Se, (a) => t(23, v = a)), I(i, ui, (a) => t(79, d = a)), I(i, Dt, (a) => t(80, E = a)), I(i, fi, (a) => t(81, b = a)), I(i, ma, (a) => t(82, p = a)), I(i, _a, (a) => t(83, k = a)), I(i, Pe, (a) => t(84, T = a)), I(i, we, (a) => t(85, F = a)), I(i, ba, (a) => t(86, A = a)), I(i, Ft, (a) => t(24, B = a)), I(i, Nt, (a) => t(25, W = a)), I(i, me, (a) => t(26, R = a)), I(i, ee, (a) => t(27, y = a)), I(i, ga, (a) => t(28, X = a)), I(i, Ce, (a) => t(29, $ = a)), I(i, di, (a) => t(87, le = a)), I(i, Ze, (a) => t(88, ke = a)), I(i, St, (a) => t(89, dt = a)), I(i, Me, (a) => t(31, ae = a)), I(i, va, (a) => t(90, Kt = a)), I(i, xe, (a) => t(91, ht = a)), I(i, hi, (a) => t(92, mt = a)), I(i, mi, (a) => t(93, _t = a)), I(i, pa, (a) => t(32, qt = a)), I(i, wa, (a) => t(33, zt = a)), I(i, Ca, (a) => t(34, Jt = a));
|
1325
1325
|
let D, te, ue, Xt, Qt = !1, Ae = !1, bt = !1, gt = !1, vt = (/* @__PURE__ */ new Date()).getTime(), pt = { width: 1280, height: 720 }, { enableMinutiae: wt } = e, { videoDimensions: Ct } = e, { noTabs: Et } = e, { weightsPath: yt } = e, { evaluatePhoto: fe } = e, { showCaptureButton: Tt } = e, { showUnconformities: Gt } = e, { showConfigButton: Yt } = e, { showAutoCaptureButton: Ot } = e, { showCameraButton: Zt } = e, { showJustificationField: xt } = e, { minEyeToEyeDist: Ie } = e, { videoOverlay: $t } = e, { videoOverlayTransparency: ei } = e;
|
1326
1326
|
const Ue = vi(!1);
|
1327
1327
|
I(i, Ue, (a) => t(74, o = a));
|
1328
1328
|
const Le = vi("data:image/png;base64");
|
1329
1329
|
I(i, Le, (a) => t(30, ce = a));
|
1330
|
-
let { widgetInstance:
|
1330
|
+
let { widgetInstance: Q } = e, De = !1, Rt = !1, Ve = !0, ne = !0, ye = !1, ti = 0, ie = "", kt = 0, je = !0, ii = 0;
|
1331
1331
|
const He = Ea.mixin({
|
1332
1332
|
toast: !0,
|
1333
1333
|
position: "bottom-left",
|
@@ -1360,7 +1360,7 @@ function As(i, e, t) {
|
|
1360
1360
|
a.closedMouth = !1, a.isPersonCloseEnough = !1, a.isPersonTooclose = !0, a.isPersonInFrame = !1, Bt.set(a), h(we, F = "", F);
|
1361
1361
|
}
|
1362
1362
|
function Si() {
|
1363
|
-
|
1363
|
+
Q.addEventListener("open", (a) => {
|
1364
1364
|
const w = a.detail[0].video;
|
1365
1365
|
h(
|
1366
1366
|
mi,
|
@@ -1369,19 +1369,19 @@ function As(i, e, t) {
|
|
1369
1369
|
height: w.videoHeight
|
1370
1370
|
},
|
1371
1371
|
_t
|
1372
|
-
), t(11, D.srcObject = w.srcObject, D), t(16, Ve = !1), Ra(
|
1372
|
+
), t(11, D.srcObject = w.srcObject, D), t(16, Ve = !1), Ra(Q);
|
1373
1373
|
function O() {
|
1374
1374
|
ne || Be(D, O, !0);
|
1375
1375
|
}
|
1376
1376
|
O();
|
1377
|
-
}),
|
1378
|
-
console.error(a), a.detail[0].message === "Device in use" ? h(
|
1379
|
-
}),
|
1380
|
-
}),
|
1381
|
-
v || (De = !1), t(17, ne = !0), t(18, ye = !1), l === j.OK && h(
|
1382
|
-
}),
|
1377
|
+
}), Q.addEventListener("error", (a) => {
|
1378
|
+
console.error(a), a.detail[0].message === "Device in use" ? h(Y, l = j.CAMERA_IN_USE_ERROR, l) : a.detail[0].message === "Permission denied" || a.detail[0].message === "Permission dismissed" ? h(Y, l = j.CAMERA_DENIED_ERROR, l) : a.detail[0].message === "Requested device not found" && h(Y, l = j.DEVICE_NOT_FOUND_ERROR, l), t(16, Ve = !1);
|
1379
|
+
}), Q.addEventListener("faceDetection", (a) => {
|
1380
|
+
}), Q.addEventListener("close", async (a) => {
|
1381
|
+
v || (De = !1), t(17, ne = !0), t(18, ye = !1), l === j.OK && h(Y, l = j.CAMERA_CLOSED_ERROR, l);
|
1382
|
+
}), Q.addEventListener("initialize", async (a) => {
|
1383
1383
|
Rt = !0, h(hi, mt = !0, mt), dt === $e.Face && !De && !v && Rt && await At();
|
1384
|
-
}),
|
1384
|
+
}), Q.addEventListener("capture", async (a) => {
|
1385
1385
|
t(19, ie = "");
|
1386
1386
|
const { encryptedFile: w, photo: O } = a.detail[0];
|
1387
1387
|
h(xe, ht = w, ht);
|
@@ -1442,9 +1442,9 @@ function As(i, e, t) {
|
|
1442
1442
|
z[0].livenessResult && ni(z[0].livenessResult), z.length !== 0 && z[0].data && h(me, R = z[0].data, R), it(re);
|
1443
1443
|
return;
|
1444
1444
|
}
|
1445
|
-
let N,
|
1445
|
+
let N, G;
|
1446
1446
|
try {
|
1447
|
-
|
1447
|
+
G = await Aa(w), ni(G.data);
|
1448
1448
|
} catch (z) {
|
1449
1449
|
h(ee, y = H.UNKNOWN_LIVENESS_ERROR, y), console.error(z), z instanceof Wt && z.response?.status === 400 ? (N = z.response.data.error_code, t(19, ie = Ee[N]), console.error("Liveness error:", N), h(ee, y = H.LIVENESS_DETECTION_FAILURE, y)) : He.fire({
|
1450
1450
|
icon: "error",
|
@@ -1461,7 +1461,7 @@ function As(i, e, t) {
|
|
1461
1461
|
bodyPart: "FACE",
|
1462
1462
|
data: T,
|
1463
1463
|
livenessBlob: (await et(w)).split(",")[1],
|
1464
|
-
...
|
1464
|
+
...G && { livenessResult: G }
|
1465
1465
|
}
|
1466
1466
|
],
|
1467
1467
|
...N && { errorCode: N },
|
@@ -1489,7 +1489,7 @@ function As(i, e, t) {
|
|
1489
1489
|
}
|
1490
1490
|
async function pe(a) {
|
1491
1491
|
if (!je) {
|
1492
|
-
h(
|
1492
|
+
h(Y, l = j.CAMERA_ORIENTATION_PORTRAIT, l);
|
1493
1493
|
return;
|
1494
1494
|
}
|
1495
1495
|
await ai(), K() ? At() : await Pi(ae.videoWidth, ae.videoHeight, a);
|
@@ -1501,11 +1501,11 @@ function As(i, e, t) {
|
|
1501
1501
|
await gi(640, 480);
|
1502
1502
|
} catch (a) {
|
1503
1503
|
const w = a, O = Re(a) && a.constraint ? a.constraint : "";
|
1504
|
-
console.error(w.message, O), Re(w) && "message" in w && w.message.includes("Requested device not found") && h(
|
1504
|
+
console.error(w.message, O), Re(w) && "message" in w && w.message.includes("Requested device not found") && h(Y, l = j.DEVICE_NOT_FOUND_ERROR, l);
|
1505
1505
|
}
|
1506
1506
|
await Mt(), h(he, f = g[0].deviceId, f);
|
1507
1507
|
}
|
1508
|
-
h(
|
1508
|
+
h(Y, l = j.OK, l), Q && "openCamera" in Q && Q.openCamera(), De = !0, t(17, ne = !1), t(16, Ve = !0);
|
1509
1509
|
}
|
1510
1510
|
}
|
1511
1511
|
async function Ke() {
|
@@ -1519,7 +1519,7 @@ function As(i, e, t) {
|
|
1519
1519
|
}
|
1520
1520
|
async function oi() {
|
1521
1521
|
if (h(ee, y = H.OK, y), K()) {
|
1522
|
-
t(18, ye = !0),
|
1522
|
+
t(18, ye = !0), Q.takePhoto();
|
1523
1523
|
return;
|
1524
1524
|
}
|
1525
1525
|
let a = null;
|
@@ -1550,17 +1550,17 @@ function As(i, e, t) {
|
|
1550
1550
|
w.width = D.width, w.height = D.height, O?.drawImage(D, 0, 0, w.width, w.height);
|
1551
1551
|
const P = w.toDataURL("image/jpeg").split(",");
|
1552
1552
|
h(Le, ce = P[0], ce), h(me, R = P[1], R), h(Pe, T = P[1], T);
|
1553
|
-
let { bodyParts: N, icaoWarnings:
|
1553
|
+
let { bodyParts: N, icaoWarnings: G } = await tt(R, fe);
|
1554
1554
|
window.dispatchEvent(new CustomEvent(
|
1555
1555
|
"face-unconformities-validated",
|
1556
1556
|
{
|
1557
1557
|
detail: {
|
1558
1558
|
bodyParts: N,
|
1559
|
-
icaoWarnings:
|
1559
|
+
icaoWarnings: G,
|
1560
1560
|
status: y
|
1561
1561
|
}
|
1562
1562
|
}
|
1563
|
-
)), N.length !== 0 && N[0].data && h(me, R = N[0].data, R), it(
|
1563
|
+
)), N.length !== 0 && N[0].data && h(me, R = N[0].data, R), it(G);
|
1564
1564
|
}
|
1565
1565
|
} catch (w) {
|
1566
1566
|
console.error(w);
|
@@ -1568,8 +1568,8 @@ function As(i, e, t) {
|
|
1568
1568
|
if (w instanceof Wt && w.response?.status === 400)
|
1569
1569
|
if (w.response.data && Array.isArray(w.response.data.bodyParts)) {
|
1570
1570
|
P = w.response.data.bodyParts, N = w.response.data.icaoWarnings;
|
1571
|
-
const
|
1572
|
-
O =
|
1571
|
+
const G = P.find((de) => de.livenessResult.error);
|
1572
|
+
O = G?.livenessResult.error_code, h(ee, y = H.LIVENESS_DETECTION_FAILURE, y), G?.livenessResult.error_code || h(ee, y = H.UNKNOWN_LIVENESS_ERROR, y), t(19, ie = Ee[O]), console.error("Liveness error:", O);
|
1573
1573
|
} else
|
1574
1574
|
h(ee, y = H.TEMPLATE_EXTRACTION_ERROR, y);
|
1575
1575
|
else
|
@@ -1613,8 +1613,8 @@ function As(i, e, t) {
|
|
1613
1613
|
const { stream: P, deviceId: N } = await gi(pt.width, pt.height, u, O);
|
1614
1614
|
h(ui, d = P, d), h(he, f = N || g[0].deviceId, f);
|
1615
1615
|
} catch (P) {
|
1616
|
-
const N = P,
|
1617
|
-
console.error(N.message,
|
1616
|
+
const N = P, G = Re(P) && P.constraint ? P.constraint : "";
|
1617
|
+
console.error(N.message, G), Re(N) && "message" in N && N.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), h(Y, l = j.CAMERA_DENIED_ERROR, l)), Re(N) && "message" in N && N.message.includes("Requested device not found") && h(Y, l = j.DEVICE_NOT_FOUND_ERROR, l), (G.includes("width") || G.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${G})`), h(Y, l = j.CAMERA_UNSUPPORTED, l));
|
1618
1618
|
}
|
1619
1619
|
}
|
1620
1620
|
async function ze() {
|
@@ -1622,7 +1622,7 @@ function As(i, e, t) {
|
|
1622
1622
|
}
|
1623
1623
|
function Bi() {
|
1624
1624
|
navigator.mediaDevices.ondevicechange = async (a) => {
|
1625
|
-
a.type == "devicechange" && (await Mt(), l !== j.OK ? await ze() : (!K() && !d.active || K() && !ne) && (at(
|
1625
|
+
a.type == "devicechange" && (await Mt(), l !== j.OK ? await ze() : (!K() && !d.active || K() && !ne) && (at(Q), h(Y, l = j.DEVICE_NOT_FOUND_ERROR, l), t(17, ne = !0)));
|
1626
1626
|
};
|
1627
1627
|
}
|
1628
1628
|
async function Wi() {
|
@@ -1678,7 +1678,7 @@ function As(i, e, t) {
|
|
1678
1678
|
];
|
1679
1679
|
}
|
1680
1680
|
async function Mi() {
|
1681
|
-
const a = D.width, w = D.height, O = pt.height, P = w / a * O, N = document.createElement("canvas"),
|
1681
|
+
const a = D.width, w = D.height, O = pt.height, P = w / a * O, N = document.createElement("canvas"), G = N.getContext("2d");
|
1682
1682
|
N.width = O, N.height = P;
|
1683
1683
|
const de = N.width / D.width, Fe = N.height / D.height, z = new Za({
|
1684
1684
|
x: p.x * de,
|
@@ -1686,8 +1686,8 @@ function As(i, e, t) {
|
|
1686
1686
|
width: p.width * de,
|
1687
1687
|
height: p.height * Fe
|
1688
1688
|
}), re = document.createElement("canvas");
|
1689
|
-
re.width = z.width, re.height = z.height, re.getContext("2d")?.clearRect(0, 0, re.width, re.height),
|
1690
|
-
const [Je] = await (await import("./face_api_0e3ce8c8_3.0.0-
|
1689
|
+
re.width = z.width, re.height = z.height, re.getContext("2d")?.clearRect(0, 0, re.width, re.height), G && ks(G, D, N);
|
1690
|
+
const [Je] = await (await import("./face_api_0e3ce8c8_3.0.0-RC03.js")).extractFaces(N, [z]);
|
1691
1691
|
return Je;
|
1692
1692
|
}
|
1693
1693
|
const Ui = Bt.subscribe((a) => {
|
@@ -1722,15 +1722,15 @@ function As(i, e, t) {
|
|
1722
1722
|
if (!(!d || !a || K() && ne))
|
1723
1723
|
try {
|
1724
1724
|
if (K()) {
|
1725
|
-
await at(
|
1725
|
+
await at(Q), await pe();
|
1726
1726
|
return;
|
1727
1727
|
}
|
1728
|
-
t(11, D.srcObject = d, D), h(Dt, E = !1, E), je ? h(
|
1728
|
+
t(11, D.srcObject = d, D), h(Dt, E = !1, E), je ? h(Y, l = j.OK, l) : h(Y, l = j.CAMERA_ORIENTATION_PORTRAIT, l), d.getTracks().forEach((w) => {
|
1729
1729
|
w.readyState === "live" && console.log(`Camera ${w.label} opened successfully!`);
|
1730
|
-
}), h(
|
1730
|
+
}), h(Y, l = j.OK, l), La(D);
|
1731
1731
|
} catch (w) {
|
1732
1732
|
const O = w;
|
1733
|
-
t(17, ne = !0), Re(O) && "message" in O && O.message.includes("Requested device not found") && h(
|
1733
|
+
t(17, ne = !0), Re(O) && "message" in O && O.message.includes("Requested device not found") && h(Y, l = j.DEVICE_NOT_FOUND_ERROR, l);
|
1734
1734
|
}
|
1735
1735
|
}), Ki = St.subscribe(async (a) => {
|
1736
1736
|
a === $e.Face && K() && !De && !v && Rt && await pe();
|
@@ -1746,7 +1746,7 @@ function As(i, e, t) {
|
|
1746
1746
|
a ? (h(Ye, u = Pt.REAR_CAMERA, u), await pe()) : (h(Ye, u = Pt.FRONT_CAMERA, u), await pe());
|
1747
1747
|
}
|
1748
1748
|
}), Ji = Fa.subscribe(async (a) => {
|
1749
|
-
!a.isSupported || !_e() || c != "FACE" || (je = a.orientation.includes("portrait"), je ? D && !r ? await ze() : h(
|
1749
|
+
!a.isSupported || !_e() || c != "FACE" || (je = a.orientation.includes("portrait"), je ? D && !r ? await ze() : h(Y, l = j.OK, l) : h(Y, l = j.CAMERA_ORIENTATION_PORTRAIT, l));
|
1750
1750
|
});
|
1751
1751
|
async function ri() {
|
1752
1752
|
let a;
|
@@ -1778,11 +1778,11 @@ function As(i, e, t) {
|
|
1778
1778
|
a && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
1779
1779
|
});
|
1780
1780
|
Pa(() => {
|
1781
|
-
at(), Vi(), Ui(), ji(), Hi(), Ki(), clearInterval(ti), qi(), zi(), Ji(), Xi(), Qi(), ti = 0;
|
1781
|
+
console.log("Destroying face collector"), at(Q), Vi(), Ui(), ji(), Hi(), Ki(), clearInterval(ti), qi(), zi(), Ji(), Xi(), Qi(), ti = 0;
|
1782
1782
|
});
|
1783
1783
|
function Gi(a) {
|
1784
1784
|
ot[a ? "unshift" : "push"](() => {
|
1785
|
-
|
1785
|
+
Q = a, t(1, Q);
|
1786
1786
|
});
|
1787
1787
|
}
|
1788
1788
|
function Yi(a) {
|
@@ -1816,10 +1816,10 @@ function As(i, e, t) {
|
|
1816
1816
|
await ze();
|
1817
1817
|
};
|
1818
1818
|
return i.$$set = (a) => {
|
1819
|
-
"enableMinutiae" in a && t(41, wt = a.enableMinutiae), "videoDimensions" in a && t(42, Ct = a.videoDimensions), "noTabs" in a && t(43, Et = a.noTabs), "weightsPath" in a && t(44, yt = a.weightsPath), "evaluatePhoto" in a && t(2, fe = a.evaluatePhoto), "showCaptureButton" in a && t(0, Tt = a.showCaptureButton), "showUnconformities" in a && t(3, Gt = a.showUnconformities), "showConfigButton" in a && t(4, Yt = a.showConfigButton), "showAutoCaptureButton" in a && t(5, Ot = a.showAutoCaptureButton), "showCameraButton" in a && t(6, Zt = a.showCameraButton), "showJustificationField" in a && t(7, xt = a.showJustificationField), "minEyeToEyeDist" in a && t(45, Ie = a.minEyeToEyeDist), "videoOverlay" in a && t(8, $t = a.videoOverlay), "videoOverlayTransparency" in a && t(9, ei = a.videoOverlayTransparency), "widgetInstance" in a && t(1,
|
1819
|
+
"enableMinutiae" in a && t(41, wt = a.enableMinutiae), "videoDimensions" in a && t(42, Ct = a.videoDimensions), "noTabs" in a && t(43, Et = a.noTabs), "weightsPath" in a && t(44, yt = a.weightsPath), "evaluatePhoto" in a && t(2, fe = a.evaluatePhoto), "showCaptureButton" in a && t(0, Tt = a.showCaptureButton), "showUnconformities" in a && t(3, Gt = a.showUnconformities), "showConfigButton" in a && t(4, Yt = a.showConfigButton), "showAutoCaptureButton" in a && t(5, Ot = a.showAutoCaptureButton), "showCameraButton" in a && t(6, Zt = a.showCameraButton), "showJustificationField" in a && t(7, xt = a.showJustificationField), "minEyeToEyeDist" in a && t(45, Ie = a.minEyeToEyeDist), "videoOverlay" in a && t(8, $t = a.videoOverlay), "videoOverlayTransparency" in a && t(9, ei = a.videoOverlayTransparency), "widgetInstance" in a && t(1, Q = a.widgetInstance);
|
1820
1820
|
}, [
|
1821
1821
|
Tt,
|
1822
|
-
|
1822
|
+
Q,
|
1823
1823
|
fe,
|
1824
1824
|
Gt,
|
1825
1825
|
Yt,
|