bry-biometric-collector 3.0.0-RC05 → 3.0.0
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_f0e43db5_3.0.0-RC05.js → DocumentCollector_a618e9a0_3.0.0.js} +4 -4
- package/dist/{FaceCollector_028c7764_3.0.0-RC05.js → FaceCollector_3f0c6cfb_3.0.0.js} +174 -158
- package/dist/{ValidationAlert_6437b99a_3.0.0-RC05.js → ValidationAlert_f97e5664_3.0.0.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_1ef6f90f_3.0.0-RC05.js → ___vite-browser-external_commonjs-proxy_be4e9a04_3.0.0.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{en-us_99b30d39_3.0.0-RC05.js → en-us_f4328332_3.0.0.js} +1 -1
- package/dist/{es-cl_cfa50670_3.0.0-RC05.js → es-cl_cea9f949_3.0.0.js} +1 -1
- package/dist/{fingersApi_74fea7e2_3.0.0-RC05.js → fingersApi_0319e7d7_3.0.0.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_b1fdd5bf_3.0.0-RC05.js → index_0c2fed2f_3.0.0.js} +3 -3
- package/dist/{index_39f05e1b_3.0.0-RC05.js → index_c5935c72_3.0.0.js} +3 -3
- package/dist/{main_32819c92_3.0.0-RC05.js → main_379f7152_3.0.0.js} +20 -20
- package/dist/{pt-br_d5ca6103_3.0.0-RC05.js → pt-br_378191b0_3.0.0.js} +1 -1
- package/package.json +1 -1
- /package/dist/{face_api_0e3ce8c8_3.0.0-RC05.js → face_api_0e3ce8c8_3.0.0.js} +0 -0
- /package/dist/{index-no-detector_281a271b_3.0.0-RC05.js → index-no-detector_281a271b_3.0.0.js} +0 -0
- /package/dist/{index-no-detector_56051121_3.0.0-RC05.js → index-no-detector_56051121_3.0.0.js} +0 -0
package/dist/{DocumentCollector_f0e43db5_3.0.0-RC05.js → DocumentCollector_a618e9a0_3.0.0.js}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { S as st, q as ot, r as nt, t as rt, w as j, x as S, y as p, bc as se, B as Y, C as g, aV as oe, bd as Ot, T as I, H as E, J as M, be as q, bf as hi, L as ne, Q as F, z as $, aY as _e, D as ee, E as L, G as U, I as te, 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 G, Z as ve, _ as bi, a0 as Ie, a2 as vi, a1 as de, a3 as we, a4 as Ye, a5 as Qe, a6 as Nt, aa as Ce, ac as Xe, ad as Ii, ae as zt, af as ye, $ as wi, a9 as Ve, ah as jt, aj as Je, ao as Ci, ap as yi, ar as Mi, as as pi, at as _i, av as xe, aw as re, j as Di, ax as Ke, aI as kt, d as Me, aJ as Rt, aK as qe, aL as Ti, az as $e, bg as Ai, aM as Oi, aN as Ni, aO as zi, au as ji, aP as ki, bh as Ri, aR as Ei, aS as pe, aT as Si, aU as Zi, aW as le, aX as lt, aZ as Pi, a_ as V, a$ as J, b0 as Et, b1 as Wi, aC as Li, b4 as et, bi as Fi } from "./
|
2
|
-
import { W as Hi, C as Ui, V as Bi, a as Gi } from "./
|
3
|
-
import { matchDimensions as Yi, 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, bc as se, B as Y, C as g, aV as oe, bd as Ot, T as I, H as E, J as M, be as q, bf as hi, L as ne, Q as F, z as $, aY as _e, D as ee, E as L, G as U, I as te, 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 G, Z as ve, _ as bi, a0 as Ie, a2 as vi, a1 as de, a3 as we, a4 as Ye, a5 as Qe, a6 as Nt, aa as Ce, ac as Xe, ad as Ii, ae as zt, af as ye, $ as wi, a9 as Ve, ah as jt, aj as Je, ao as Ci, ap as yi, ar as Mi, as as pi, at as _i, av as xe, aw as re, j as Di, ax as Ke, aI as kt, d as Me, aJ as Rt, aK as qe, aL as Ti, az as $e, bg as Ai, aM as Oi, aN as Ni, aO as zi, au as ji, aP as ki, bh as Ri, aR as Ei, aS as pe, aT as Si, aU as Zi, aW as le, aX as lt, aZ as Pi, a_ as V, a$ as J, b0 as Et, b1 as Wi, aC as Li, b4 as et, bi as Fi } from "./main_379f7152_3.0.0.js";
|
2
|
+
import { W as Hi, C as Ui, V as Bi, a as Gi } from "./ValidationAlert_f97e5664_3.0.0.js";
|
3
|
+
import { matchDimensions as Yi, resizeResults as Qi } from "./face_api_0e3ce8c8_3.0.0.js";
|
4
4
|
const Xi = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiLz4KICAgIDwvbWFzaz4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMThfNCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJwYXRoLTItaW5zaWRlLTJfMThfNCIgZmlsbD0id2hpdGUiPgogICAgPHJlY3QgeD0iMjE5LjI3OCIgeT0iMjk2IiB3aWR0aD0iMzM4Ljg2MyIgaGVpZ2h0PSI0NjgiIHJ4PSI3Ii8+CiAgICA8L21hc2s+CiAgICA8cmVjdCB4PSIyMTkuMjc4IiB5PSIyOTYiIHdpZHRoPSIzMzguODYzIiBoZWlnaHQ9IjQ2OCIgcng9IjciIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIG1hc2s9InVybCgjcGF0aC0yLWluc2lkZS0yXzE4XzQpIi8+CiAgICA8ZWxsaXBzZSBjeD0iMzg5LjIzOCIgY3k9IjUxMS4yMjgiIHJ4PSI4Ni4yMzc2IiByeT0iODUuMjI4NCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTQ3MS40NzUgNTExLjIyOEM0NzEuNDc1IDU1Ni4wNDUgNDM0LjcwMSA1OTIuNDU3IDM4OS4yMzggNTkyLjQ1N0MzNDMuNzc0IDU5Mi40NTcgMzA3IDU1Ni4wNDUgMzA3IDUxMS4yMjhDMzA3IDQ2Ni40MTEgMzQzLjc3NCA0MzAgMzg5LjIzOCA0MzBDNDM0LjcwMSA0MzAgNDcxLjQ3NSA0NjYuNDExIDQ3MS40NzUgNTExLjIyOFoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MDhDNTM1LjI2IDYwOCA1MzkuODggNzQzLjQ3MyA1MzkuODggNzQzLjQ3M0wyMzkgNzQzLjVDMjM5IDc0My41IDIzOS41IDYwOCAzODcuMzggNjA4WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MTJDNDU5Ljc5NCA2MTIgNDk2LjY0OSA2NDUuMDIgNTE1LjYyNSA2NzcuNzQzQzUyNS4xOCA2OTQuMjIgNTMwLjI1NSA3MTAuNzMzIDUzMi45MzggNzIzLjE1QzUzNC4yNzggNzI5LjM1MSA1MzUuMDE2IDczNC41MDggNTM1LjQxOCA3MzguMDk4QzUzNS40NzMgNzM4LjU4NiA1MzUuNTIxIDczOS4wNDUgNTM1LjU2NCA3MzkuNDc0TDI0My4xODQgNzM5LjVDMjQzLjIxNiA3MzkuMDM3IDI0My4yNTMgNzM4LjUzOCAyNDMuMjk3IDczOC4wMDNDMjQzLjU5IDczNC40MTQgMjQ0LjE3MSA3MjkuMjU4IDI0NS4zMjIgNzIzLjA1OEMyNDcuNjI2IDcxMC42NDIgMjUyLjE5NyA2OTQuMTM4IDI2MS4yNDEgNjc3LjY3NkMyNzAuMjczIDY2MS4yMzYgMjgzLjc0OCA2NDQuODY0IDMwMy44OTEgNjMyLjU4N0MzMjQuMDI0IDYyMC4zMTYgMzUxLjA0MiA2MTIgMzg3LjM4IDYxMloiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPGRlZnM+CiAgICA8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMThfNCIgeD0iMCIgeT0iMCIgd2lkdGg9IjEyMDYiIGhlaWdodD0iODkwIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CiAgICA8ZmVPZmZzZXQgZHk9IjQiLz4KICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiLz4KICAgIDxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
|
5
5
|
function Vi(a) {
|
6
6
|
let e, t, s, o, r, n, u, f, d, l, h;
|
@@ -978,7 +978,7 @@ function fa(a, e, t) {
|
|
978
978
|
try {
|
979
979
|
if (je >= ua) {
|
980
980
|
je = 0;
|
981
|
-
const D = await ji(), w = await import("./face_api_0e3ce8c8_3.0.0
|
981
|
+
const D = await ji(), w = await import("./face_api_0e3ce8c8_3.0.0.js");
|
982
982
|
let N;
|
983
983
|
if (N = w.detectSingleFace(_, D), i = await N.withFaceLandmarks(), R.getContext("2d")?.clearRect(0, 0, R.width, R.height), i != null) {
|
984
984
|
const z = Yi(R, _, !0);
|
@@ -1,11 +1,11 @@
|
|
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
|
2
|
-
import { W as za, C as Ja, V as Xa, a as Qa } from "./
|
3
|
-
import { detectSingleFace as Ga, matchDimensions as Ya, resizeResults as Za, Box as xa } 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 ge, B as x, C as m, D as be, 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 H, 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 fi, a5 as Dt, a6 as di, a7 as ma, a8 as _a, a9 as Pe, aa as we, ab as ga, ac as Ft, ad as Nt, ae as me, af as ee, $ as ba, ag as Ce, ah as hi, ai as Ze, aj as St, ak as va, al as xe, am as mi, an as _i, 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 K, j as nt, ax as Bt, ay as Ra, az as $e, aA as et, aB as ka, aC as gi, aD as bi, aE as tt, A as Wt, aF as Ee, aG as it, aH as Aa, aI as vi, 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 Pa, aS as Be, aT as Ba, aU as Wa, aV as st, aW as oe, aX as ft, aY as ct, aZ as Fi, a_ as M, a$ as V, b0 as pi, b1 as Ma, b2 as Ua, b3 as Va, b4 as ot, b5 as We, b6 as ja, b7 as Ha, b8 as wi, b9 as Ka, ba as ut, bb as qa } from "./main_379f7152_3.0.0.js";
|
2
|
+
import { W as za, C as Ja, V as Xa, a as Qa } from "./ValidationAlert_f97e5664_3.0.0.js";
|
3
|
+
import { detectSingleFace as Ga, matchDimensions as Ya, resizeResults as Za, Box as xa } from "./face_api_0e3ce8c8_3.0.0.js";
|
4
4
|
function $a(i) {
|
5
5
|
let e, t, s, o;
|
6
6
|
return t = new za({}), {
|
7
7
|
c() {
|
8
|
-
e = C("div"),
|
8
|
+
e = C("div"), ge(t.$$.fragment), this.c = x, m(e, "id", "face-oval"), m(e, "class", s = "loader " + /*loading*/
|
9
9
|
(i[0] ? "loading" : "") + " z-10"), m(
|
10
10
|
e,
|
11
11
|
"style",
|
@@ -14,7 +14,7 @@ function $a(i) {
|
|
14
14
|
);
|
15
15
|
},
|
16
16
|
m(n, l) {
|
17
|
-
L(n, e, l),
|
17
|
+
L(n, e, l), be(t, e, null), o = !0;
|
18
18
|
},
|
19
19
|
p(n, [l]) {
|
20
20
|
(!o || l & /*loading*/
|
@@ -41,16 +41,16 @@ function $a(i) {
|
|
41
41
|
const es = "hsl(var(--p))", ts = "hsl(var(--su))";
|
42
42
|
function is(i, e, t) {
|
43
43
|
let s, o, n;
|
44
|
-
I(i, Ne, (
|
45
|
-
let { loading: l } = e, r, c, u = 0.8, f = 8,
|
46
|
-
return _e() && (u = 0.65, f = 10,
|
47
|
-
"loading" in
|
44
|
+
I(i, Ne, (b) => t(7, o = b)), I(i, Me, (b) => t(8, n = b));
|
45
|
+
let { loading: l } = e, r, c, u = 0.8, f = 8, v = 0.15;
|
46
|
+
return _e() && (u = 0.65, f = 10, v = 0.25), i.$$set = (b) => {
|
47
|
+
"loading" in b && t(0, l = b.loading);
|
48
48
|
}, i.$$.update = () => {
|
49
49
|
if (i.$$.dirty & /*$videoStore, percentage, ovalHeight, ovalWidth, $ovalDimensions, captureBarPercentage*/
|
50
50
|
476 && n) {
|
51
51
|
t(3, c = n.videoHeight * u), t(2, r = c / 1.45), h(Ne, o.width = r, o), h(Ne, o.height = c, o), h(Ne, o.x = (n.videoWidth - o.width) / 2, o);
|
52
|
-
let
|
53
|
-
h(Ne, o.y =
|
52
|
+
let b = n.videoHeight - n.videoHeight * v;
|
53
|
+
h(Ne, o.y = b - o.height, o);
|
54
54
|
}
|
55
55
|
i.$$.dirty & /*ovalWidth, ovalHeight, borderWidth*/
|
56
56
|
44 && t(1, s = `
|
@@ -67,7 +67,7 @@ function is(i, e, t) {
|
|
67
67
|
c,
|
68
68
|
u,
|
69
69
|
f,
|
70
|
-
|
70
|
+
v,
|
71
71
|
o,
|
72
72
|
n
|
73
73
|
];
|
@@ -192,11 +192,11 @@ function Ci(i, e, t) {
|
|
192
192
|
return s[118] = e[t], s;
|
193
193
|
}
|
194
194
|
function Ei(i) {
|
195
|
-
let e, t, s = H(), o, n, l, r, c, u, f,
|
195
|
+
let e, t, s = H(), o, n, l, r, c, u, f, v, b, d, E, g, p, k, T, F, A, B = s && os(i), W = (
|
196
196
|
/*$ready*/
|
197
197
|
i[21] && yi(i)
|
198
198
|
);
|
199
|
-
return d = new Wa({}),
|
199
|
+
return d = new Wa({}), g = new Ja({
|
200
200
|
props: {
|
201
201
|
showConfigButton: (
|
202
202
|
/*showConfigButton*/
|
@@ -245,7 +245,7 @@ function Ei(i) {
|
|
245
245
|
}
|
246
246
|
}), {
|
247
247
|
c() {
|
248
|
-
e = C("div"), t = C("div"), B && B.c(), o = U(), n = C("video"), r = U(), c = C("canvas"), u = U(), f = C("div"),
|
248
|
+
e = C("div"), t = C("div"), B && B.c(), o = U(), n = C("video"), r = U(), c = C("canvas"), u = U(), f = C("div"), v = C("div"), W && W.c(), b = U(), ge(d.$$.fragment), E = U(), ge(g.$$.fragment), m(n, "id", "bry-cc-camera-video-tag"), m(n, "class", l = /*$ready*/
|
249
249
|
i[21] ? _e() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0"), n.playsInline = !0, n.muted = !0, n.autoplay = !0, m(c, "id", "bry-ce-detectionsCanvas"), m(c, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), m(t, "class", "overflow-hidden"), st(
|
250
250
|
t,
|
251
251
|
"width",
|
@@ -256,7 +256,7 @@ function Ei(i) {
|
|
256
256
|
"height",
|
257
257
|
/*$videoStore*/
|
258
258
|
i[31].videoHeight + "px"
|
259
|
-
), m(
|
259
|
+
), m(v, "class", "flex flex-grow w-full items-center justify-center relative"), m(f, "class", "absolute inset-0 flex flex-col items-center justify-between w-full h-full"), m(e, "class", p = /*$ready*/
|
260
260
|
i[21] ? "relative" : "relative w-0 h-0"), e.hidden = k = /*$cameraStatusStore*/
|
261
261
|
i[20] !== j.OK || H() && /*idrndLoading*/
|
262
262
|
(i[16] || /*idrndClosed*/
|
@@ -264,7 +264,7 @@ function Ei(i) {
|
|
264
264
|
i[18]);
|
265
265
|
},
|
266
266
|
m(R, y) {
|
267
|
-
L(R, e, y), _(e, t), B && B.m(t, null), _(t, o), _(t, n), i[47](n), _(t, r), _(t, c), i[49](c), _(e, u), _(e, f), _(f,
|
267
|
+
L(R, e, y), _(e, t), B && B.m(t, null), _(t, o), _(t, n), i[47](n), _(t, r), _(t, c), i[49](c), _(e, u), _(e, f), _(f, v), W && W.m(v, null), _(f, b), be(d, f, null), _(f, E), be(g, f, null), T = !0, F || (A = [
|
268
268
|
oe(
|
269
269
|
n,
|
270
270
|
"canplay",
|
@@ -297,7 +297,7 @@ function Ei(i) {
|
|
297
297
|
R[31].videoHeight + "px"
|
298
298
|
), /*$ready*/
|
299
299
|
R[21] ? W ? (W.p(R, y), y[0] & /*$ready*/
|
300
|
-
2097152 && J(W, 1)) : (W = yi(R), W.c(), J(W, 1), W.m(
|
300
|
+
2097152 && J(W, 1)) : (W = yi(R), W.c(), J(W, 1), W.m(v, null)) : W && (lt(), Z(W, 1, 1, () => {
|
301
301
|
W = null;
|
302
302
|
}), rt());
|
303
303
|
const X = {};
|
@@ -321,7 +321,7 @@ function Ei(i) {
|
|
321
321
|
65536 && (X.idrndLoading = /*idrndLoading*/
|
322
322
|
R[16]), y[0] & /*waitingIdrndCaptureEvent*/
|
323
323
|
262144 && (X.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
324
|
-
R[18]),
|
324
|
+
R[18]), g.$set(X), (!T || y[0] & /*$ready*/
|
325
325
|
2097152 && p !== (p = /*$ready*/
|
326
326
|
R[21] ? "relative" : "relative w-0 h-0")) && m(e, "class", p), (!T || y[0] & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
327
327
|
1507328 && k !== (k = /*$cameraStatusStore*/
|
@@ -331,13 +331,13 @@ function Ei(i) {
|
|
331
331
|
R[18]))) && (e.hidden = k);
|
332
332
|
},
|
333
333
|
i(R) {
|
334
|
-
T || (J(W), J(d.$$.fragment, R), J(
|
334
|
+
T || (J(W), J(d.$$.fragment, R), J(g.$$.fragment, R), T = !0);
|
335
335
|
},
|
336
336
|
o(R) {
|
337
|
-
Z(W), Z(d.$$.fragment, R), Z(
|
337
|
+
Z(W), Z(d.$$.fragment, R), Z(g.$$.fragment, R), T = !1;
|
338
338
|
},
|
339
339
|
d(R) {
|
340
|
-
R && S(e), B && B.d(), i[47](null), i[49](null), W && W.d(), ve(d), ve(
|
340
|
+
R && S(e), B && B.d(), i[47](null), i[49](null), W && W.d(), ve(d), ve(g), F = !1, ft(A);
|
341
341
|
}
|
342
342
|
};
|
343
343
|
}
|
@@ -396,10 +396,10 @@ function yi(i) {
|
|
396
396
|
}
|
397
397
|
}), {
|
398
398
|
c() {
|
399
|
-
|
399
|
+
ge(e.$$.fragment), t = U(), ge(s.$$.fragment), o = U(), ge(n.$$.fragment);
|
400
400
|
},
|
401
401
|
m(r, c) {
|
402
|
-
|
402
|
+
be(e, r, c), L(r, t, c), be(s, r, c), L(r, o, c), be(n, r, c), l = !0;
|
403
403
|
},
|
404
404
|
p(r, c) {
|
405
405
|
const u = {};
|
@@ -410,12 +410,12 @@ function yi(i) {
|
|
410
410
|
c[0] & /*isCountingDown*/
|
411
411
|
16384 && (f.loading = /*isCountingDown*/
|
412
412
|
r[14]), s.$set(f);
|
413
|
-
const
|
413
|
+
const v = {};
|
414
414
|
c[0] & /*videoOverlay*/
|
415
|
-
256 && (
|
415
|
+
256 && (v.overlayColor = /*videoOverlay*/
|
416
416
|
r[8]), c[0] & /*videoOverlayTransparency*/
|
417
|
-
512 && (
|
418
|
-
r[9]), n.$set(
|
417
|
+
512 && (v.overlayTransparency = /*videoOverlayTransparency*/
|
418
|
+
r[9]), n.$set(v);
|
419
419
|
},
|
420
420
|
i(r) {
|
421
421
|
l || (J(e.$$.fragment, r), J(s.$$.fragment, r), J(n.$$.fragment, r), l = !0);
|
@@ -557,14 +557,14 @@ function Ri(i) {
|
|
557
557
|
), o, n, l, r, c = (
|
558
558
|
/*$_*/
|
559
559
|
i[28]("faceCollector.retakePhoto") + ""
|
560
|
-
), u, f,
|
560
|
+
), u, f, v;
|
561
561
|
return {
|
562
562
|
c() {
|
563
563
|
e = C("div"), t = C("button"), o = M(s), l = U(), r = C("button"), u = M(c), t.disabled = n = /*$justification*/
|
564
564
|
i[25].length === 0, m(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), m(r, "id", "bry-cc-retake-button"), m(r, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), m(e, "class", "ce-dui-btn-group flex");
|
565
565
|
},
|
566
|
-
m(
|
567
|
-
L(
|
566
|
+
m(b, d) {
|
567
|
+
L(b, e, d), _(e, t), _(t, o), _(e, l), _(e, r), _(r, u), f || (v = [
|
568
568
|
oe(
|
569
569
|
t,
|
570
570
|
"click",
|
@@ -579,17 +579,17 @@ function Ri(i) {
|
|
579
579
|
)
|
580
580
|
], f = !0);
|
581
581
|
},
|
582
|
-
p(
|
582
|
+
p(b, d) {
|
583
583
|
d[0] & /*$_*/
|
584
584
|
268435456 && s !== (s = /*$_*/
|
585
|
-
|
585
|
+
b[28]("faceCollector.finish") + "") && V(o, s), d[0] & /*$justification*/
|
586
586
|
33554432 && n !== (n = /*$justification*/
|
587
|
-
|
587
|
+
b[25].length === 0) && (t.disabled = n), d[0] & /*$_*/
|
588
588
|
268435456 && c !== (c = /*$_*/
|
589
|
-
|
589
|
+
b[28]("faceCollector.retakePhoto") + "") && V(u, c);
|
590
590
|
},
|
591
|
-
d(
|
592
|
-
|
591
|
+
d(b) {
|
592
|
+
b && S(e), f = !1, ft(v);
|
593
593
|
}
|
594
594
|
};
|
595
595
|
}
|
@@ -600,10 +600,10 @@ function us(i) {
|
|
600
600
|
i[60]
|
601
601
|
) } }), {
|
602
602
|
c() {
|
603
|
-
|
603
|
+
ge(e.$$.fragment);
|
604
604
|
},
|
605
605
|
m(s, o) {
|
606
|
-
|
606
|
+
be(e, s, o), t = !0;
|
607
607
|
},
|
608
608
|
p: x,
|
609
609
|
i(s) {
|
@@ -620,13 +620,13 @@ function us(i) {
|
|
620
620
|
function fs(i) {
|
621
621
|
let e, t, s, o, n, l, r, c, u;
|
622
622
|
const f = [
|
623
|
-
|
623
|
+
gs,
|
624
624
|
_s,
|
625
625
|
ms,
|
626
626
|
hs,
|
627
627
|
ds
|
628
|
-
],
|
629
|
-
function
|
628
|
+
], v = [];
|
629
|
+
function b(d, E) {
|
630
630
|
return (
|
631
631
|
/*$captured*/
|
632
632
|
d[23] ? (
|
@@ -641,7 +641,7 @@ function fs(i) {
|
|
641
641
|
) : 0
|
642
642
|
);
|
643
643
|
}
|
644
|
-
return l =
|
644
|
+
return l = b(i), r = v[l] = f[l](i), {
|
645
645
|
c() {
|
646
646
|
e = C("div"), t = C("img"), n = U(), r.c(), m(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), ct(t.src, s = /*$dataTypePrefix*/
|
647
647
|
i[30] + "," + /*$image*/
|
@@ -653,7 +653,7 @@ function fs(i) {
|
|
653
653
|
i[29].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid overflow-hidden"));
|
654
654
|
},
|
655
655
|
m(d, E) {
|
656
|
-
L(d, e, E), _(e, t), _(e, n),
|
656
|
+
L(d, e, E), _(e, t), _(e, n), v[l].m(e, null), u = !0;
|
657
657
|
},
|
658
658
|
p(d, E) {
|
659
659
|
(!u || E[0] & /*$dataTypePrefix, $image*/
|
@@ -665,10 +665,10 @@ function fs(i) {
|
|
665
665
|
d[23] || !/*$showFaceWhileValidating*/
|
666
666
|
d[33] && /*$unconformitiesStore*/
|
667
667
|
d[29].isLoading)) && (t.hidden = o);
|
668
|
-
let
|
669
|
-
l =
|
670
|
-
g
|
671
|
-
}), rt(), r =
|
668
|
+
let g = l;
|
669
|
+
l = b(d), l === g ? v[l].p(d, E) : (lt(), Z(v[g], 1, 1, () => {
|
670
|
+
v[g] = null;
|
671
|
+
}), rt(), r = v[l], r ? r.p(d, E) : (r = v[l] = f[l](d), r.c()), J(r, 1), r.m(e, null)), (!u || E[0] & /*$unconformitiesStore*/
|
672
672
|
536870912 | E[1] & /*$showFaceWhileValidating*/
|
673
673
|
4 && c !== (c = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
674
674
|
d[33] && /*$unconformitiesStore*/
|
@@ -681,7 +681,7 @@ function fs(i) {
|
|
681
681
|
Z(r), u = !1;
|
682
682
|
},
|
683
683
|
d(d) {
|
684
|
-
d && S(e),
|
684
|
+
d && S(e), v[l].d();
|
685
685
|
}
|
686
686
|
};
|
687
687
|
}
|
@@ -692,17 +692,17 @@ function ds(i) {
|
|
692
692
|
), o, n, l, r, c, u = (
|
693
693
|
/*$_*/
|
694
694
|
i[28]("faceCollector.retakePhoto") + ""
|
695
|
-
), f,
|
695
|
+
), f, v, b = nt(ja).faceStrategy !== Ha.DISABLED, d, E, g, p = (
|
696
696
|
/*$unconformitiesStore*/
|
697
697
|
i[29].unconformities.length !== 0 && ki(i)
|
698
|
-
), k =
|
698
|
+
), k = b && bs();
|
699
699
|
return {
|
700
700
|
c() {
|
701
|
-
e = C("div"), t = C("h1"), o = M(s), n = U(), p && p.c(), l = U(), r = C("div"), c = C("button"), f = M(u),
|
701
|
+
e = C("div"), t = C("h1"), o = M(s), n = U(), p && p.c(), l = U(), r = C("div"), c = C("button"), f = M(u), v = U(), k && k.c(), m(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), m(c, "id", "bry-cc-retake-button"), m(c, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), m(r, "class", "flex flex-row"), wi(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
702
702
|
i[34]);
|
703
703
|
},
|
704
704
|
m(T, F) {
|
705
|
-
L(T, e, F), _(e, t), _(t, o), _(e, n), p && p.m(e, null), _(e, l), _(e, r), _(r, c), _(c, f), _(r,
|
705
|
+
L(T, e, F), _(e, t), _(t, o), _(e, n), p && p.m(e, null), _(e, l), _(e, r), _(r, c), _(c, f), _(r, v), k && k.m(r, null), d = !0, E || (g = oe(
|
706
706
|
c,
|
707
707
|
"click",
|
708
708
|
/*click_handler_6*/
|
@@ -726,7 +726,7 @@ function ds(i) {
|
|
726
726
|
Z(k), d = !1;
|
727
727
|
},
|
728
728
|
d(T) {
|
729
|
-
T && S(e), p && p.d(), k && k.d(), E = !1,
|
729
|
+
T && S(e), p && p.d(), k && k.d(), E = !1, g();
|
730
730
|
}
|
731
731
|
};
|
732
732
|
}
|
@@ -734,8 +734,14 @@ function hs(i) {
|
|
734
734
|
let e, t, s = (
|
735
735
|
/*evaluatePhoto*/
|
736
736
|
(i[2] ? (
|
737
|
-
/*$
|
738
|
-
i[
|
737
|
+
/*$unconformitiesStore*/
|
738
|
+
i[29].unconformities.length === 0 ? (
|
739
|
+
/*$_*/
|
740
|
+
i[28]("faceCollector.everythingOk")
|
741
|
+
) : (
|
742
|
+
/*$_*/
|
743
|
+
i[28]("faceCollector.unconformities")
|
744
|
+
)
|
739
745
|
) : (
|
740
746
|
/*$_*/
|
741
747
|
i[28]("faceCollector.previewCapture")
|
@@ -743,10 +749,10 @@ function hs(i) {
|
|
743
749
|
), o, n, l, r, c, u, f = (
|
744
750
|
/*$unconformitiesStore*/
|
745
751
|
i[29].unconformities
|
746
|
-
),
|
747
|
-
for (let
|
748
|
-
g
|
749
|
-
let
|
752
|
+
), v = [];
|
753
|
+
for (let g = 0; g < f.length; g += 1)
|
754
|
+
v[g] = Ai(Ci(i, f, g));
|
755
|
+
let b = (
|
750
756
|
/*evaluatePhoto*/
|
751
757
|
i[2] && /*$unconformitiesStore*/
|
752
758
|
i[29].unconformities.length == 0 && Ii(i)
|
@@ -761,49 +767,55 @@ function hs(i) {
|
|
761
767
|
return {
|
762
768
|
c() {
|
763
769
|
e = C("div"), t = C("h1"), o = M(s), n = U(), l = C("div");
|
764
|
-
for (let
|
765
|
-
g
|
766
|
-
r = U(),
|
767
|
-
},
|
768
|
-
m(
|
769
|
-
L(
|
770
|
-
for (let k = 0; k <
|
771
|
-
|
772
|
-
_(l, r),
|
773
|
-
},
|
774
|
-
p(
|
775
|
-
if (p[0] & /*evaluatePhoto, $_*/
|
776
|
-
|
777
|
-
(
|
778
|
-
/*$
|
779
|
-
|
770
|
+
for (let g = 0; g < v.length; g += 1)
|
771
|
+
v[g].c();
|
772
|
+
r = U(), b && b.c(), c = U(), d && d.c(), u = U(), E && E.c(), m(t, "class", "text-3xl font-bold transition-opacity"), m(l, "class", "flex flex-wrap"), m(e, "class", "flex flex-col justify-between");
|
773
|
+
},
|
774
|
+
m(g, p) {
|
775
|
+
L(g, e, p), _(e, t), _(t, o), _(e, n), _(e, l);
|
776
|
+
for (let k = 0; k < v.length; k += 1)
|
777
|
+
v[k] && v[k].m(l, null);
|
778
|
+
_(l, r), b && b.m(l, null), _(e, c), d && d.m(e, null), _(e, u), E && E.m(e, null);
|
779
|
+
},
|
780
|
+
p(g, p) {
|
781
|
+
if (p[0] & /*evaluatePhoto, $unconformitiesStore, $_*/
|
782
|
+
805306372 && s !== (s = /*evaluatePhoto*/
|
783
|
+
(g[2] ? (
|
784
|
+
/*$unconformitiesStore*/
|
785
|
+
g[29].unconformities.length === 0 ? (
|
786
|
+
/*$_*/
|
787
|
+
g[28]("faceCollector.everythingOk")
|
788
|
+
) : (
|
789
|
+
/*$_*/
|
790
|
+
g[28]("faceCollector.unconformities")
|
791
|
+
)
|
780
792
|
) : (
|
781
793
|
/*$_*/
|
782
|
-
|
794
|
+
g[28]("faceCollector.previewCapture")
|
783
795
|
)) + "") && V(o, s), p[0] & /*$unconformitiesStore*/
|
784
796
|
536870912) {
|
785
797
|
f = /*$unconformitiesStore*/
|
786
|
-
|
798
|
+
g[29].unconformities;
|
787
799
|
let k;
|
788
800
|
for (k = 0; k < f.length; k += 1) {
|
789
|
-
const T = Ci(
|
790
|
-
|
801
|
+
const T = Ci(g, f, k);
|
802
|
+
v[k] ? v[k].p(T, p) : (v[k] = Ai(T), v[k].c(), v[k].m(l, r));
|
791
803
|
}
|
792
|
-
for (; k <
|
793
|
-
|
794
|
-
|
804
|
+
for (; k < v.length; k += 1)
|
805
|
+
v[k].d(1);
|
806
|
+
v.length = f.length;
|
795
807
|
}
|
796
808
|
/*evaluatePhoto*/
|
797
|
-
|
798
|
-
|
799
|
-
|
800
|
-
|
801
|
-
|
809
|
+
g[2] && /*$unconformitiesStore*/
|
810
|
+
g[29].unconformities.length == 0 ? b ? b.p(g, p) : (b = Ii(g), b.c(), b.m(l, null)) : b && (b.d(1), b = null), /*showJustificationField*/
|
811
|
+
g[7] && /*$unconformitiesStore*/
|
812
|
+
g[29].unconformities.length > 0 ? d ? d.p(g, p) : (d = Li(g), d.c(), d.m(e, u)) : d && (d.d(1), d = null), /*$captured*/
|
813
|
+
g[23] ? E ? E.p(g, p) : (E = Di(g), E.c(), E.m(e, null)) : E && (E.d(1), E = null);
|
802
814
|
},
|
803
815
|
i: x,
|
804
816
|
o: x,
|
805
|
-
d(
|
806
|
-
|
817
|
+
d(g) {
|
818
|
+
g && S(e), Ka(v, g), b && b.d(), d && d.d(), E && E.d();
|
807
819
|
}
|
808
820
|
};
|
809
821
|
}
|
@@ -814,7 +826,7 @@ function ms(i) {
|
|
814
826
|
), l, r, c, u = (
|
815
827
|
/*$_*/
|
816
828
|
i[28]("faceCollector.retakePhoto") + ""
|
817
|
-
), f,
|
829
|
+
), f, v, b;
|
818
830
|
function d(p, k) {
|
819
831
|
return (
|
820
832
|
/*$requestResult*/
|
@@ -835,13 +847,13 @@ function ms(i) {
|
|
835
847
|
)
|
836
848
|
);
|
837
849
|
}
|
838
|
-
let E = d(i),
|
850
|
+
let E = d(i), g = E(i);
|
839
851
|
return {
|
840
852
|
c() {
|
841
|
-
e = C("div"),
|
853
|
+
e = C("div"), g.c(), t = U(), s = C("div"), o = C("button"), l = M(n), r = U(), c = C("button"), f = M(u), o.disabled = !0, m(o, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), m(c, "id", "bry-cc-retake-button"), m(c, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), m(s, "class", "ce-dui-btn-group flex"), m(e, "class", "flex flex-col justify-between");
|
842
854
|
},
|
843
855
|
m(p, k) {
|
844
|
-
L(p, e, k),
|
856
|
+
L(p, e, k), g.m(e, null), _(e, t), _(e, s), _(s, o), _(o, l), _(s, r), _(s, c), _(c, f), v || (b = [
|
845
857
|
oe(
|
846
858
|
o,
|
847
859
|
"click",
|
@@ -854,10 +866,10 @@ function ms(i) {
|
|
854
866
|
/*click_handler_3*/
|
855
867
|
i[54]
|
856
868
|
)
|
857
|
-
],
|
869
|
+
], v = !0);
|
858
870
|
},
|
859
871
|
p(p, k) {
|
860
|
-
E === (E = d(p)) &&
|
872
|
+
E === (E = d(p)) && g ? g.p(p, k) : (g.d(1), g = E(p), g && (g.c(), g.m(e, t))), k[0] & /*$_*/
|
861
873
|
268435456 && n !== (n = /*$_*/
|
862
874
|
p[28]("faceCollector.finish") + "") && V(l, n), k[0] & /*$_*/
|
863
875
|
268435456 && u !== (u = /*$_*/
|
@@ -866,7 +878,7 @@ function ms(i) {
|
|
866
878
|
i: x,
|
867
879
|
o: x,
|
868
880
|
d(p) {
|
869
|
-
p && S(e),
|
881
|
+
p && S(e), g.d(), v = !1, ft(b);
|
870
882
|
}
|
871
883
|
};
|
872
884
|
}
|
@@ -894,7 +906,7 @@ function _s(i) {
|
|
894
906
|
}
|
895
907
|
};
|
896
908
|
}
|
897
|
-
function
|
909
|
+
function gs(i) {
|
898
910
|
let e;
|
899
911
|
return {
|
900
912
|
c() {
|
@@ -947,16 +959,16 @@ function ki(i) {
|
|
947
959
|
}
|
948
960
|
};
|
949
961
|
}
|
950
|
-
function
|
962
|
+
function bs(i) {
|
951
963
|
let e, t;
|
952
964
|
return e = new qa({
|
953
965
|
props: { cssClass: "ce-dui-btn-block flex-shrink" }
|
954
966
|
}), {
|
955
967
|
c() {
|
956
|
-
|
968
|
+
ge(e.$$.fragment);
|
957
969
|
},
|
958
970
|
m(s, o) {
|
959
|
-
|
971
|
+
be(e, s, o), t = !0;
|
960
972
|
},
|
961
973
|
i(s) {
|
962
974
|
t || (J(e.$$.fragment, s), t = !0);
|
@@ -1017,21 +1029,21 @@ function Li(i) {
|
|
1017
1029
|
let e, t, s, o = (
|
1018
1030
|
/*$_*/
|
1019
1031
|
i[28]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
1020
|
-
), n, l, r, c, u, f,
|
1032
|
+
), n, l, r, c, u, f, v, b, d = (
|
1021
1033
|
/*$_*/
|
1022
1034
|
i[28]("faceCollector.thisInformationIsRequired") + ""
|
1023
|
-
), E,
|
1035
|
+
), E, g, p, k;
|
1024
1036
|
return {
|
1025
1037
|
c() {
|
1026
|
-
e = C("div"), t = C("label"), s = C("span"), n = M(o), l = U(), r = C("textarea"), u = U(), f = C("label"),
|
1027
|
-
i[28]("faceCollector.yourJustification")), m(
|
1038
|
+
e = C("div"), t = C("label"), s = C("span"), n = M(o), l = U(), r = C("textarea"), u = U(), f = C("label"), v = C("span"), b = M("("), E = M(d), g = M(")"), m(s, "class", "ce-dui-label-text text-base"), m(t, "class", "ce-dui-label"), m(t, "for", "justification"), m(r, "contenteditable", ""), m(r, "id", "justification"), m(r, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), m(r, "placeholder", c = /*$_*/
|
1039
|
+
i[28]("faceCollector.yourJustification")), m(v, "class", "ce-dui-label-text-alt text-base"), m(f, "class", "ce-dui-label"), m(f, "for", "justification"), m(e, "class", "ce-dui-form-control");
|
1028
1040
|
},
|
1029
1041
|
m(T, F) {
|
1030
1042
|
L(T, e, F), _(e, t), _(t, s), _(s, n), _(e, l), _(e, r), ut(
|
1031
1043
|
r,
|
1032
1044
|
/*$justification*/
|
1033
1045
|
i[25]
|
1034
|
-
), _(e, u), _(e, f), _(f,
|
1046
|
+
), _(e, u), _(e, f), _(f, v), _(v, b), _(v, E), _(v, g), p || (k = oe(
|
1035
1047
|
r,
|
1036
1048
|
"input",
|
1037
1049
|
/*textarea_input_handler*/
|
@@ -1064,15 +1076,17 @@ function Di(i) {
|
|
1064
1076
|
), o, n, l, r, c = (
|
1065
1077
|
/*$_*/
|
1066
1078
|
i[28]("faceCollector.retakePhoto") + ""
|
1067
|
-
), u, f,
|
1079
|
+
), u, f, v;
|
1068
1080
|
return {
|
1069
1081
|
c() {
|
1070
|
-
e = C("div"), t = C("button"), o = M(s), l = U(), r = C("button"), u = M(c), t.disabled = n =
|
1071
|
-
i[
|
1072
|
-
i[7]
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1082
|
+
e = C("div"), t = C("button"), o = M(s), l = U(), r = C("button"), u = M(c), t.disabled = n = /*evaluatePhoto*/
|
1083
|
+
i[2] && /*showJustificationField*/
|
1084
|
+
i[7] && /*$justification*/
|
1085
|
+
i[25].length === 0 && /*$unconformitiesStore*/
|
1086
|
+
i[29].unconformities.length !== 0, m(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink text-base"), m(r, "id", "bry-cc-retake-button"), m(r, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink text-base"), m(e, "class", "ce-dui-btn-group flex");
|
1087
|
+
},
|
1088
|
+
m(b, d) {
|
1089
|
+
L(b, e, d), _(e, t), _(t, o), _(e, l), _(e, r), _(r, u), f || (v = [
|
1076
1090
|
oe(
|
1077
1091
|
t,
|
1078
1092
|
"click",
|
@@ -1087,18 +1101,20 @@ function Di(i) {
|
|
1087
1101
|
)
|
1088
1102
|
], f = !0);
|
1089
1103
|
},
|
1090
|
-
p(
|
1104
|
+
p(b, d) {
|
1091
1105
|
d[0] & /*$_*/
|
1092
1106
|
268435456 && s !== (s = /*$_*/
|
1093
|
-
|
1094
|
-
|
1095
|
-
|
1096
|
-
|
1107
|
+
b[28]("faceCollector.finish") + "") && V(o, s), d[0] & /*evaluatePhoto, showJustificationField, $justification, $unconformitiesStore*/
|
1108
|
+
570425476 && n !== (n = /*evaluatePhoto*/
|
1109
|
+
b[2] && /*showJustificationField*/
|
1110
|
+
b[7] && /*$justification*/
|
1111
|
+
b[25].length === 0 && /*$unconformitiesStore*/
|
1112
|
+
b[29].unconformities.length !== 0) && (t.disabled = n), d[0] & /*$_*/
|
1097
1113
|
268435456 && c !== (c = /*$_*/
|
1098
|
-
|
1114
|
+
b[28]("faceCollector.retakePhoto") + "") && V(u, c);
|
1099
1115
|
},
|
1100
|
-
d(
|
1101
|
-
|
1116
|
+
d(b) {
|
1117
|
+
b && S(e), f = !1, ft(v);
|
1102
1118
|
}
|
1103
1119
|
};
|
1104
1120
|
}
|
@@ -1256,10 +1272,10 @@ function Ts(i) {
|
|
1256
1272
|
(i[16] || !/*$ready*/
|
1257
1273
|
i[21]) || !H() && !/*$ready*/
|
1258
1274
|
i[21]) && /*$cameraStatusStore*/
|
1259
|
-
i[20] === j.OK, r, c, u, f,
|
1275
|
+
i[20] === j.OK, r, c, u, f, v, b, d = (
|
1260
1276
|
/*$videoStore*/
|
1261
1277
|
i[31] && Ei(i)
|
1262
|
-
), E = o && Ti(i),
|
1278
|
+
), E = o && Ti(i), g = l && Oi(i), p = (
|
1263
1279
|
/*$captured*/
|
1264
1280
|
i[23] && Ri(i)
|
1265
1281
|
);
|
@@ -1275,10 +1291,10 @@ function Ts(i) {
|
|
1275
1291
|
}
|
1276
1292
|
return ~(u = F(i)) && (f = T[u] = k[u](i)), {
|
1277
1293
|
c() {
|
1278
|
-
e = C("div"), t = C("div"), d && d.c(), s = U(), E && E.c(), n = U(),
|
1294
|
+
e = C("div"), t = C("div"), d && d.c(), s = U(), E && E.c(), n = U(), g && g.c(), r = U(), p && p.c(), c = U(), f && f.c(), v = fa(), this.c = x, m(t, "class", "relative mx-auto"), m(e, "class", "flex flex-col justify-between");
|
1279
1295
|
},
|
1280
1296
|
m(A, B) {
|
1281
|
-
L(A, e, B), _(e, t), d && d.m(t, null), _(t, s), E && E.m(t, null), _(t, n),
|
1297
|
+
L(A, e, B), _(e, t), d && d.m(t, null), _(t, s), E && E.m(t, null), _(t, n), g && g.m(t, null), _(t, r), p && p.m(t, null), i[52](e), L(A, c, B), ~u && T[u].m(A, B), L(A, v, B), b = !0;
|
1282
1298
|
},
|
1283
1299
|
p(A, B) {
|
1284
1300
|
/*$videoStore*/
|
@@ -1292,27 +1308,27 @@ function Ts(i) {
|
|
1292
1308
|
(A[16] || !/*$ready*/
|
1293
1309
|
A[21]) || !H() && !/*$ready*/
|
1294
1310
|
A[21]) && /*$cameraStatusStore*/
|
1295
|
-
A[20] === j.OK), l ?
|
1311
|
+
A[20] === j.OK), l ? g ? g.p(A, B) : (g = Oi(A), g.c(), g.m(t, r)) : g && (g.d(1), g = null), /*$captured*/
|
1296
1312
|
A[23] ? p ? p.p(A, B) : (p = Ri(A), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
|
1297
1313
|
let W = u;
|
1298
1314
|
u = F(A), u === W ? ~u && T[u].p(A, B) : (f && (lt(), Z(T[W], 1, 1, () => {
|
1299
1315
|
T[W] = null;
|
1300
|
-
}), rt()), ~u ? (f = T[u], f ? f.p(A, B) : (f = T[u] = k[u](A), f.c()), J(f, 1), f.m(
|
1316
|
+
}), rt()), ~u ? (f = T[u], f ? f.p(A, B) : (f = T[u] = k[u](A), f.c()), J(f, 1), f.m(v.parentNode, v)) : f = null);
|
1301
1317
|
},
|
1302
1318
|
i(A) {
|
1303
|
-
|
1319
|
+
b || (J(d), J(f), b = !0);
|
1304
1320
|
},
|
1305
1321
|
o(A) {
|
1306
|
-
Z(d), Z(f),
|
1322
|
+
Z(d), Z(f), b = !1;
|
1307
1323
|
},
|
1308
1324
|
d(A) {
|
1309
|
-
A && S(e), d && d.d(), E && E.d(),
|
1325
|
+
A && S(e), d && d.d(), E && E.d(), g && g.d(), p && p.d(), i[52](null), A && S(c), ~u && T[u].d(A), A && S(v);
|
1310
1326
|
}
|
1311
1327
|
};
|
1312
1328
|
}
|
1313
1329
|
let Os = 0, Rs = 3e3;
|
1314
1330
|
function ks() {
|
1315
|
-
({}).VITE_USE_DEV === "true" ? import("./index-no-detector_281a271b_3.0.0
|
1331
|
+
({}).VITE_USE_DEV === "true" ? import("./index-no-detector_281a271b_3.0.0.js") : import("./index-no-detector_56051121_3.0.0.js");
|
1316
1332
|
}
|
1317
1333
|
function As(i, e, t) {
|
1318
1334
|
const s = e.videoWidth / e.videoHeight, o = t.width / t.height;
|
@@ -1320,9 +1336,9 @@ function As(i, e, t) {
|
|
1320
1336
|
s > o ? (r = e.videoHeight * o, n = (e.videoWidth - r) / 2) : s < o && (c = e.videoWidth / o, l = (e.videoHeight - c) / 2), i.drawImage(e, n, l, r, c, 0, 0, t.width, t.height);
|
1321
1337
|
}
|
1322
1338
|
function Is(i, e, t) {
|
1323
|
-
let s, o, n, l, r, c, u, f,
|
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,
|
1325
|
-
let D, te, ue, Xt, Qt = !1, Ae = !1,
|
1339
|
+
let s, o, n, l, r, c, u, f, v, b, d, E, g, p, k, T, F, A, B, W, R, y, X, $, ce, le, ke, dt, ae, Kt, ht, mt, _t, qt, zt, Jt;
|
1340
|
+
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, v = a)), I(i, Se, (a) => t(23, b = a)), I(i, fi, (a) => t(79, d = a)), I(i, Dt, (a) => t(80, E = a)), I(i, di, (a) => t(81, g = 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, ga, (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, ba, (a) => t(28, X = a)), I(i, Ce, (a) => t(29, $ = a)), I(i, hi, (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, mi, (a) => t(92, mt = a)), I(i, _i, (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));
|
1341
|
+
let D, te, ue, Xt, Qt = !1, Ae = !1, gt = !1, bt = !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
1342
|
const Ue = pi(!1);
|
1327
1343
|
I(i, Ue, (a) => t(74, o = a));
|
1328
1344
|
const Le = pi("data:image/png;base64");
|
@@ -1355,7 +1371,7 @@ function Is(i, e, t) {
|
|
1355
1371
|
)) : h(Me, ae = { videoWidth: a, videoHeight: w }, ae));
|
1356
1372
|
}
|
1357
1373
|
function si() {
|
1358
|
-
h(Qe, n = !1, n), h(Se,
|
1374
|
+
h(Qe, n = !1, n), h(Se, b = !1, b), h(Ye, u = Pt.FRONT_CAMERA, u), Ot && h(di, g = !1, g), h(Ft, B = !1, B), h(ee, y = K.OK, y), h(Pe, T = "", T), h(Ce, $.unconformities = [], $);
|
1359
1375
|
const a = nt(Bt);
|
1360
1376
|
a.closedMouth = !1, a.isPersonCloseEnough = !1, a.isPersonTooclose = !0, a.isPersonInFrame = !1, Bt.set(a), h(we, F = "", F);
|
1361
1377
|
}
|
@@ -1378,9 +1394,9 @@ function Is(i, e, t) {
|
|
1378
1394
|
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
1395
|
}), Q.addEventListener("faceDetection", (a) => {
|
1380
1396
|
}), Q.addEventListener("close", async (a) => {
|
1381
|
-
|
1397
|
+
b || (De = !1), t(17, ne = !0), t(18, ye = !1), l === j.OK && h(Y, l = j.CAMERA_CLOSED_ERROR, l);
|
1382
1398
|
}), Q.addEventListener("initialize", async (a) => {
|
1383
|
-
Rt = !0, h(mi, mt = !0, mt), dt === $e.Face && !De && !
|
1399
|
+
Rt = !0, h(mi, mt = !0, mt), dt === $e.Face && !De && !b && Rt && await At();
|
1384
1400
|
}), Q.addEventListener("capture", async (a) => {
|
1385
1401
|
t(19, ie = "");
|
1386
1402
|
const { encryptedFile: w, photo: O } = a.detail[0];
|
@@ -1389,7 +1405,7 @@ function Is(i, e, t) {
|
|
1389
1405
|
if (le)
|
1390
1406
|
try {
|
1391
1407
|
let z = await ka(O);
|
1392
|
-
if (!await
|
1408
|
+
if (!await gi(z)) {
|
1393
1409
|
console.warn("Liveness capture - face not detected! Resetting capture.");
|
1394
1410
|
return;
|
1395
1411
|
}
|
@@ -1398,10 +1414,10 @@ function Is(i, e, t) {
|
|
1398
1414
|
} finally {
|
1399
1415
|
t(18, ye = !1);
|
1400
1416
|
}
|
1401
|
-
if (t(18, ye = !1), h(ee, y = K.OK, y), h(Ce, $.isLoading = !0, $), h(Se,
|
1417
|
+
if (t(18, ye = !1), h(ee, y = K.OK, y), h(Ce, $.isLoading = !0, $), h(Se, b = !0, b), De = !1, h(Le, ce = P[0], ce), h(me, R = P[1], R), h(Pe, T = P[1], T), !Kt) {
|
1402
1418
|
let z, re, It, Je;
|
1403
1419
|
try {
|
1404
|
-
if (!
|
1420
|
+
if (!bi(Ie))
|
1405
1421
|
throw new Error("FACE_TOO_SMALL");
|
1406
1422
|
({ bodyParts: z, icaoWarnings: re } = await tt(T, fe, (await et(w)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
1407
1423
|
"face-unconformities-validated",
|
@@ -1496,14 +1512,14 @@ function Is(i, e, t) {
|
|
1496
1512
|
}
|
1497
1513
|
async function At() {
|
1498
1514
|
if (H()) {
|
1499
|
-
if (await ai(), !
|
1515
|
+
if (await ai(), !v[0]?.deviceId) {
|
1500
1516
|
try {
|
1501
1517
|
await vi(640, 480);
|
1502
1518
|
} catch (a) {
|
1503
1519
|
const w = a, O = Re(a) && a.constraint ? a.constraint : "";
|
1504
1520
|
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
1521
|
}
|
1506
|
-
await Mt(), h(he, f =
|
1522
|
+
await Mt(), h(he, f = v[0].deviceId, f);
|
1507
1523
|
}
|
1508
1524
|
h(Y, l = j.OK, l), Q && "openCamera" in Q && Q.openCamera(), De = !0, t(17, ne = !1), t(16, Ve = !0);
|
1509
1525
|
}
|
@@ -1523,17 +1539,17 @@ function Is(i, e, t) {
|
|
1523
1539
|
return;
|
1524
1540
|
}
|
1525
1541
|
let a = null;
|
1526
|
-
if (le && (a = await Mi(), !await
|
1542
|
+
if (le && (a = await Mi(), !await gi(a))) {
|
1527
1543
|
console.warn("Face capture - face not detected! Resetting capture.");
|
1528
1544
|
return;
|
1529
1545
|
}
|
1530
|
-
h(Se,
|
1546
|
+
h(Se, b = !0, b);
|
1531
1547
|
try {
|
1532
1548
|
if (le && a) {
|
1533
1549
|
const w = a.toDataURL("image/jpeg").split(",");
|
1534
1550
|
h(Le, ce = w[0], ce), h(me, R = w[1], R), h(Pe, T = w[1], T);
|
1535
1551
|
let O, P;
|
1536
|
-
if (!
|
1552
|
+
if (!bi(Ie))
|
1537
1553
|
throw new Error("FACE_TOO_SMALL");
|
1538
1554
|
({ bodyParts: O, icaoWarnings: P } = await tt(R, fe)), window.dispatchEvent(new CustomEvent(
|
1539
1555
|
"face-unconformities-validated",
|
@@ -1611,7 +1627,7 @@ function Is(i, e, t) {
|
|
1611
1627
|
async function Bi(a, w, O) {
|
1612
1628
|
try {
|
1613
1629
|
const { stream: P, deviceId: N } = await vi(pt.width, pt.height, u, O);
|
1614
|
-
h(fi, d = P, d), h(he, f = N ||
|
1630
|
+
h(fi, d = P, d), h(he, f = N || v[0].deviceId, f);
|
1615
1631
|
} catch (P) {
|
1616
1632
|
const N = P, G = Re(P) && P.constraint ? P.constraint : "";
|
1617
1633
|
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));
|
@@ -1653,7 +1669,7 @@ function Is(i, e, t) {
|
|
1653
1669
|
}
|
1654
1670
|
h(we, F = "faceCollector.faceWasNotFound", F);
|
1655
1671
|
} else
|
1656
|
-
|
1672
|
+
gt || (gt = !0, setTimeout(
|
1657
1673
|
() => {
|
1658
1674
|
let O = [
|
1659
1675
|
"faceCollector.faceWasNotFound",
|
@@ -1661,7 +1677,7 @@ function Is(i, e, t) {
|
|
1661
1677
|
"faceCollector.lowSharpness",
|
1662
1678
|
"faceCollector.illuminationTooHigh"
|
1663
1679
|
];
|
1664
|
-
|
1680
|
+
gt = !1, t(15, bt = !1), F && !O.includes(F) && h(we, F = "", F);
|
1665
1681
|
},
|
1666
1682
|
1500
|
1667
1683
|
));
|
@@ -1687,16 +1703,16 @@ function Is(i, e, t) {
|
|
1687
1703
|
height: p.height * Fe
|
1688
1704
|
}), re = document.createElement("canvas");
|
1689
1705
|
re.width = z.width, re.height = z.height, re.getContext("2d")?.clearRect(0, 0, re.width, re.height), G && As(G, D, N);
|
1690
|
-
const [Je] = await (await import("./face_api_0e3ce8c8_3.0.0
|
1706
|
+
const [Je] = await (await import("./face_api_0e3ce8c8_3.0.0.js")).extractFaces(N, [z]);
|
1691
1707
|
return Je;
|
1692
1708
|
}
|
1693
1709
|
const Ui = Bt.subscribe((a) => {
|
1694
1710
|
let w = "";
|
1695
|
-
if (a.isPersonCloseEnough ? a.isPersonTooclose ? w = "faceCollector.moveAwayCamera" : a.isPersonInFrame ? a.closedMouth || (w = "faceCollector.dontOpenMouth") : w = "faceCollector.stayInFrame" : w = "faceCollector.comeCloserCamera", n && Ia(w), !
|
1711
|
+
if (a.isPersonCloseEnough ? a.isPersonTooclose ? w = "faceCollector.moveAwayCamera" : a.isPersonInFrame ? a.closedMouth || (w = "faceCollector.dontOpenMouth") : w = "faceCollector.stayInFrame" : w = "faceCollector.comeCloserCamera", n && Ia(w), !b && g && n && !Ae && a.isPersonInFrame && a.closedMouth && !(!a.isPersonCloseEnough || a.isPersonTooclose)) {
|
1696
1712
|
t(14, Ae = !0), ii = (/* @__PURE__ */ new Date()).getTime() + Rs;
|
1697
1713
|
const O = setInterval(
|
1698
1714
|
async () => {
|
1699
|
-
if (!
|
1715
|
+
if (!g || b || ye || H() && ne || !a.isPersonCloseEnough || a.isPersonTooclose || !a.closedMouth || !a.isPersonInFrame) {
|
1700
1716
|
t(14, Ae = !1), setTimeout(
|
1701
1717
|
() => {
|
1702
1718
|
},
|
@@ -1716,7 +1732,7 @@ function Is(i, e, t) {
|
|
1716
1732
|
D && a && (console.log("setting null in video srcObject"), t(11, D.srcObject = null, D), t(11, D.src = "", D), h(he, f = null, f));
|
1717
1733
|
});
|
1718
1734
|
St.subscribe(async (a) => {
|
1719
|
-
a === $e.Face && (await Mt(), H() && h(he, f =
|
1735
|
+
a === $e.Face && (await Mt(), H() && h(he, f = v[0]?.deviceId, f));
|
1720
1736
|
});
|
1721
1737
|
const Hi = he.subscribe(async (a) => {
|
1722
1738
|
if (!(!H() && !d || !a || H() && ne))
|
@@ -1733,13 +1749,13 @@ function Is(i, e, t) {
|
|
1733
1749
|
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
1750
|
}
|
1735
1751
|
}), Ki = St.subscribe(async (a) => {
|
1736
|
-
a === $e.Face && H() && !De && !
|
1752
|
+
a === $e.Face && H() && !De && !b && Rt && await pe();
|
1737
1753
|
}), qi = Ue.subscribe(async (a) => {
|
1738
1754
|
a && ci();
|
1739
1755
|
}), zi = Da.subscribe(async (a) => {
|
1740
|
-
if (
|
1756
|
+
if (v[0]?.deviceId) {
|
1741
1757
|
if (at(), !_e() || H()) {
|
1742
|
-
const O = (
|
1758
|
+
const O = (v.findIndex((N) => N.deviceId === f) + 1) % v.length, P = v[O].deviceId;
|
1743
1759
|
H() ? h(he, f = P, f) : await pe(P);
|
1744
1760
|
return;
|
1745
1761
|
}
|
@@ -1758,7 +1774,7 @@ function Is(i, e, t) {
|
|
1758
1774
|
const O = Ya(te, D, !0);
|
1759
1775
|
Na(te, D, O);
|
1760
1776
|
const P = Za(a, O);
|
1761
|
-
Sa(P) ? (Pa(P, te, wt), h(Qe, n = !0, n), t(15,
|
1777
|
+
Sa(P) ? (Pa(P, te, wt), h(Qe, n = !0, n), t(15, bt = !0), vt = (/* @__PURE__ */ new Date()).getTime()) : li();
|
1762
1778
|
} else
|
1763
1779
|
li();
|
1764
1780
|
} else
|
@@ -1833,7 +1849,7 @@ function Is(i, e, t) {
|
|
1833
1849
|
te,
|
1834
1850
|
ue,
|
1835
1851
|
Ae,
|
1836
|
-
|
1852
|
+
bt,
|
1837
1853
|
Ve,
|
1838
1854
|
ne,
|
1839
1855
|
ye,
|
@@ -1841,7 +1857,7 @@ function Is(i, e, t) {
|
|
1841
1857
|
l,
|
1842
1858
|
r,
|
1843
1859
|
f,
|
1844
|
-
|
1860
|
+
b,
|
1845
1861
|
B,
|
1846
1862
|
W,
|
1847
1863
|
R,
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { S as H, q as P, r as F, t as W, w as M, x as S, y as I, B as T, C as h, H as g, J as E, Y as we, $ as le, bj as Y, bk as $, P as B, bc as O, Q as p, a_ as L, bl as x, T as b, bm as Q, a$ as C, aW as R, aY as pe, _ as ie, R as X, a2 as ve, aN as re, N as ee, a6 as se, U as V, G as k, V as Z, E as z, L as Ae, bf as ae, Z as Le, ah as _e, M as q, aV as U, bd as te, bn as Ie, z as G, D as J, I as K, O as oe, aa as Ce } from "./
|
1
|
+
import { S as H, q as P, r as F, t as W, w as M, x as S, y as I, B as T, C as h, H as g, J as E, Y as we, $ as le, bj as Y, bk as $, P as B, bc as O, Q as p, a_ as L, bl as x, T as b, bm as Q, a$ as C, aW as R, aY as pe, _ as ie, R as X, a2 as ve, aN as re, N as ee, a6 as se, U as V, G as k, V as Z, E as z, L as Ae, bf as ae, Z as Le, ah as _e, M as q, aV as U, bd as te, bn as Ie, z as G, D as J, I as K, O as oe, aa as Ce } from "./main_379f7152_3.0.0.js";
|
2
2
|
function ke(i) {
|
3
3
|
let e, s, a, t, l = (
|
4
4
|
/*$_*/
|
@@ -169,7 +169,7 @@ const e = {
|
|
169
169
|
validating: "Validating",
|
170
170
|
lowQualityCapture: "Picture taken with insufficient quality, please capture again!",
|
171
171
|
everythingOk: "Great picture!",
|
172
|
-
noNonconformity: "No nonconformity
|
172
|
+
noNonconformity: "No nonconformity",
|
173
173
|
previewCapture: "Capture preview",
|
174
174
|
unconformities: "Unconformities",
|
175
175
|
provideAReasonForTheLowQualityCapture: "Please provide a reason for the low quality capture.",
|
@@ -168,7 +168,7 @@ const e = {
|
|
168
168
|
validating: "Validando",
|
169
169
|
lowQualityCapture: "Captura con calidad insuficiente, ¡por favor rehaga la foto!",
|
170
170
|
everythingOk: "¡Foto excelente!",
|
171
|
-
noNonconformity: "Sin inconformidad
|
171
|
+
noNonconformity: "Sin inconformidad",
|
172
172
|
previewCapture: "Vista previa de captura",
|
173
173
|
unconformities: "Inconformidades",
|
174
174
|
provideAReasonForTheLowQualityCapture: "¿Cuál es el motivo por el cual la captura realizada está fuera de los requisitos exigidos?",
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { u as m, $ as D, n as C, g as b, i as y, s as l, a as F, F as U, b as M, c, v as x, d as P, A as B, e as I, h as g, f as v, j as W, k as R, l as $, m as k, o as w, p as V } from "./
|
2
|
-
import "./face_api_0e3ce8c8_3.0.0
|
1
|
+
import { u as m, $ as D, n as C, g as b, i as y, s as l, a as F, F as U, b as M, c, v as x, d as P, A as B, e as I, h as g, f as v, j as W, k as R, l as $, m as k, o as w, p as V } from "./main_379f7152_3.0.0.js";
|
2
|
+
import "./face_api_0e3ce8c8_3.0.0.js";
|
3
3
|
const f = m(D);
|
4
4
|
var X = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(X || {});
|
5
5
|
class r extends Error {
|
package/dist/index.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-
|
2
|
-
import { bo as Xa, bp as hr } from "./
|
3
|
-
import "./face_api_0e3ce8c8_3.0.0
|
1
|
+
import { l as vu, L as Au, r as se } from "./___vite-browser-external_commonjs-proxy_be4e9a04_3.0.0.js";
|
2
|
+
import { bo as Xa, bp as hr } from "./main_379f7152_3.0.0.js";
|
3
|
+
import "./face_api_0e3ce8c8_3.0.0.js";
|
4
4
|
function gr(e, t) {
|
5
5
|
for (var n = 0; n < t.length; n++) {
|
6
6
|
const s = t[n];
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { bo as eo } from "./
|
2
|
-
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-
|
3
|
-
import "./face_api_0e3ce8c8_3.0.0
|
1
|
+
import { bo as eo } from "./main_379f7152_3.0.0.js";
|
2
|
+
import { r as x1, l as b1, L as y1 } from "./___vite-browser-external_commonjs-proxy_be4e9a04_3.0.0.js";
|
3
|
+
import "./face_api_0e3ce8c8_3.0.0.js";
|
4
4
|
var pu = { exports: {} };
|
5
5
|
pu.exports;
|
6
6
|
(function(n) {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { detectSingleFace as hc } from "./face_api_0e3ce8c8_3.0.0
|
1
|
+
import { detectSingleFace as hc } from "./face_api_0e3ce8c8_3.0.0.js";
|
2
2
|
function W() {
|
3
3
|
}
|
4
4
|
function Cn(A, e) {
|
@@ -7200,18 +7200,18 @@ async function Zd(A) {
|
|
7200
7200
|
A && (e = A), console.log("requesting weights from", e);
|
7201
7201
|
try {
|
7202
7202
|
await Promise.all([
|
7203
|
-
(await import("./face_api_0e3ce8c8_3.0.0
|
7204
|
-
(await import("./face_api_0e3ce8c8_3.0.0
|
7203
|
+
(await import("./face_api_0e3ce8c8_3.0.0.js")).nets.tinyFaceDetector.load(e),
|
7204
|
+
(await import("./face_api_0e3ce8c8_3.0.0.js")).loadFaceLandmarkModel(e)
|
7205
7205
|
]);
|
7206
7206
|
} catch {
|
7207
7207
|
console.warn("Your browser doesn't support WebGL! Trying to use WASM backend now...");
|
7208
7208
|
try {
|
7209
7209
|
await Promise.all([
|
7210
|
-
(await import("./
|
7211
|
-
(await import("./
|
7212
|
-
(await import("./
|
7213
|
-
(await import("./face_api_0e3ce8c8_3.0.0
|
7214
|
-
(await import("./face_api_0e3ce8c8_3.0.0
|
7210
|
+
(await import("./index_0c2fed2f_3.0.0.js")).setWasmPaths("https://cdn.jsdelivr.net/npm/@tensorflow/tfjs-backend-wasm/dist/"),
|
7211
|
+
(await import("./index_c5935c72_3.0.0.js")).setBackend("wasm"),
|
7212
|
+
(await import("./index_c5935c72_3.0.0.js")).ready(),
|
7213
|
+
(await import("./face_api_0e3ce8c8_3.0.0.js")).nets.tinyFaceDetector.load(e),
|
7214
|
+
(await import("./face_api_0e3ce8c8_3.0.0.js")).loadFaceLandmarkModel(e)
|
7215
7215
|
]);
|
7216
7216
|
} catch {
|
7217
7217
|
throw console.warn("WASM backend failed to load, face detection will be disabled"), new Error("Face detection failed to load");
|
@@ -10249,13 +10249,13 @@ const mi = Y(!0), zQ = Y(), xg = Y(!1), XI = Y(0), zI = Y({
|
|
10249
10249
|
height: 0
|
10250
10250
|
});
|
10251
10251
|
async function ZQ() {
|
10252
|
-
return new (await import("./face_api_0e3ce8c8_3.0.0
|
10252
|
+
return new (await import("./face_api_0e3ce8c8_3.0.0.js")).TinyFaceDetectorOptions({
|
10253
10253
|
scoreThreshold: 0.6
|
10254
10254
|
});
|
10255
10255
|
}
|
10256
10256
|
async function Ef(A, e, t, r = !1) {
|
10257
10257
|
if (t) {
|
10258
|
-
const C = (await import("./face_api_0e3ce8c8_3.0.0
|
10258
|
+
const C = (await import("./face_api_0e3ce8c8_3.0.0.js")).draw;
|
10259
10259
|
C.drawDetections(e, A), new C.DrawFaceLandmarks(A.landmarks, { pointColor: "gold" }).draw(e);
|
10260
10260
|
}
|
10261
10261
|
const o = A.landmarks.positions, i = WQ(o), a = await YQ(o), B = A.detection.box, I = await jQ(B, a, e, t);
|
@@ -10266,17 +10266,17 @@ function WQ(A) {
|
|
10266
10266
|
return yi(e, t);
|
10267
10267
|
}
|
10268
10268
|
async function YQ(A) {
|
10269
|
-
const e = (await import("./face_api_0e3ce8c8_3.0.0
|
10269
|
+
const e = (await import("./face_api_0e3ce8c8_3.0.0.js")).Point;
|
10270
10270
|
let t = A[37].add(A[38]).add(A[40]).add(A[41]), r = A[43].add(A[44]).add(A[46]).add(A[47]);
|
10271
10271
|
t = t.div(new e(4, 4)), r = r.div(new e(4, 4));
|
10272
10272
|
const o = yi(r, t);
|
10273
10273
|
return XI.set(o), o;
|
10274
10274
|
}
|
10275
10275
|
async function jQ(A, e, t, r) {
|
10276
|
-
const o = (await import("./face_api_0e3ce8c8_3.0.0
|
10276
|
+
const o = (await import("./face_api_0e3ce8c8_3.0.0.js")).Point;
|
10277
10277
|
let i = 2.5, a = 0.8;
|
10278
10278
|
const B = A.topLeft.x - e, I = A.topLeft.y - i * e, C = A.bottomLeft.x - e, l = A.bottomLeft.y + a * e, p = A.bottomRight.x + e, m = A.bottomRight.y + e, v = yi(new o(C, l), new o(B, I)), y = yi(new o(C, l), new o(p, m)), U = t.getContext("2d");
|
10279
|
-
return U.beginPath(), U.strokeStyle = "gold", zQ.set(new (await import("./face_api_0e3ce8c8_3.0.0
|
10279
|
+
return U.beginPath(), U.strokeStyle = "gold", zQ.set(new (await import("./face_api_0e3ce8c8_3.0.0.js")).Box({ x: B, y: I, width: y, height: v })), U.rect(B, I, y, v), r && U.stroke(), {
|
10280
10280
|
topLeftX: A.topLeft.x,
|
10281
10281
|
topLeftY: A.topLeft.y,
|
10282
10282
|
bottomRightX: A.bottomRight.x,
|
@@ -23018,7 +23018,7 @@ function BB(A) {
|
|
23018
23018
|
return this;
|
23019
23019
|
}
|
23020
23020
|
async function cB(A, e) {
|
23021
|
-
return await import("./
|
23021
|
+
return await import("./fingersApi_0319e7d7_3.0.0.js").then((t) => t.captureSingleFinger(A, e));
|
23022
23022
|
}
|
23023
23023
|
function Dd(A, e, t) {
|
23024
23024
|
let r, o, i, a, B, I, C, l, p, m, v, y, U, d, P, X, z, hA, aA, j, gA, T, lA, GA, Ie, Ke, Pe, eA, xe, se, bA, Qe, lt, S, k;
|
@@ -23026,7 +23026,7 @@ function Dd(A, e, t) {
|
|
23026
23026
|
let { lottie_color: rA = "71 89 124" } = e, { extension_name: _ = "BryWebExtension" } = e, { extension_url_chrome: EA } = e, { extension_url_mozilla: sA } = e, { min_nfiq_acceptable: dA = 3 } = e;
|
23027
23027
|
dQ(dA);
|
23028
23028
|
let { show_theme_picker: oA = "true" } = e, { video_dimensions: DA } = e, { enable_minutiae: LA } = e, { collector_select: RA = "BOTH" } = e, { import_lottie: qA = "true" } = e, { hide_tabs: HA = "false" } = e, { import_extension_script: re = "false" } = e, { extension_url_script: SA } = e, { liveness_enable: oe = "false" } = e, { weights_path: Be = "https://unpkg.com/bry-biometric-collector@latest/dist/weights/" } = e, { evaluate_photo: ZA = "true" } = e, { show_capture_button: fe = "true" } = e, { show_unconformities: WA = "true" } = e, { video_overlay: TA = "white" } = e, { video_overlay_transparency: Me = 0 } = e, { show_config_button: Ee = "true" } = e, { show_auto_capture_button: rt = "false" } = e, { show_camera_button: De = "true" } = e, { language: ee = uI() } = e, { show_justification_field: vA = "true" } = e, { min_eye_to_eye_dist: ve = 0 } = e;
|
23029
|
-
Vr("en", () => import("./en-
|
23029
|
+
Vr("en", () => import("./en-us_f4328332_3.0.0.js")), Vr("pt", () => import("./pt-br_378191b0_3.0.0.js")), Vr("es", () => import("./es-cl_cea9f949_3.0.0.js")), kn({
|
23030
23030
|
fallbackLocale: "pt",
|
23031
23031
|
initialLocale: ee
|
23032
23032
|
});
|
@@ -23246,10 +23246,10 @@ function Dd(A, e, t) {
|
|
23246
23246
|
return pA(xn, l = D, l), this;
|
23247
23247
|
}
|
23248
23248
|
async function Lt() {
|
23249
|
-
return t(24, kA = (await import("./
|
23249
|
+
return t(24, kA = (await import("./FaceCollector_3f0c6cfb_3.0.0.js")).default), this;
|
23250
23250
|
}
|
23251
23251
|
async function jt() {
|
23252
|
-
return t(25, YA = (await import("./
|
23252
|
+
return t(25, YA = (await import("./DocumentCollector_a618e9a0_3.0.0.js")).default), this;
|
23253
23253
|
}
|
23254
23254
|
function vr(D) {
|
23255
23255
|
Te(D);
|
@@ -23864,9 +23864,9 @@ class CB extends ye {
|
|
23864
23864
|
}
|
23865
23865
|
}
|
23866
23866
|
customElements.define("biometric-collector", CB);
|
23867
|
-
Vr("en", () => import("./en-
|
23868
|
-
Vr("pt", () => import("./pt-
|
23869
|
-
Vr("es", () => import("./es-
|
23867
|
+
Vr("en", () => import("./en-us_f4328332_3.0.0.js"));
|
23868
|
+
Vr("pt", () => import("./pt-br_378191b0_3.0.0.js"));
|
23869
|
+
Vr("es", () => import("./es-cl_cea9f949_3.0.0.js"));
|
23870
23870
|
kn({
|
23871
23871
|
fallbackLocale: "pt",
|
23872
23872
|
initialLocale: uI()
|
@@ -168,7 +168,7 @@ const e = {
|
|
168
168
|
validating: "Validando",
|
169
169
|
lowQualityCapture: "Captura com qualidade insuficiente, por favor refaça a foto!",
|
170
170
|
everythingOk: "Foto excelente!",
|
171
|
-
noNonconformity: "Nenhuma inconformidade
|
171
|
+
noNonconformity: "Nenhuma inconformidade",
|
172
172
|
previewCapture: "Pré-visualização da captura",
|
173
173
|
unconformities: "Inconformidades",
|
174
174
|
provideAReasonForTheLowQualityCapture: "Qual o motivo para que a captura realizada esteja fora dos requisitos exigidos?",
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "bry-biometric-collector",
|
3
3
|
"private": false,
|
4
4
|
"description": "BRy web-collector component for biometric capture.",
|
5
|
-
"version": "3.0.0
|
5
|
+
"version": "3.0.0",
|
6
6
|
"main": "dist/bry-biometric-collector-main.js",
|
7
7
|
"type": "module",
|
8
8
|
"license": "UNLICENSED",
|
File without changes
|
/package/dist/{index-no-detector_281a271b_3.0.0-RC05.js → index-no-detector_281a271b_3.0.0.js}
RENAMED
File without changes
|
/package/dist/{index-no-detector_56051121_3.0.0-RC05.js → index-no-detector_56051121_3.0.0.js}
RENAMED
File without changes
|