bry-biometric-collector 3.0.0-RC03 → 3.0.0-RC05
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_cc7c3a54_3.0.0-RC03.js → DocumentCollector_f0e43db5_3.0.0-RC05.js} +297 -296
- package/dist/{FaceCollector_e350268a_3.0.0-RC03.js → FaceCollector_028c7764_3.0.0-RC05.js} +173 -173
- package/dist/{ValidationAlert_dfb361e9_3.0.0-RC03.js → ValidationAlert_6437b99a_3.0.0-RC05.js} +27 -27
- package/dist/{___vite-browser-external_commonjs-proxy_cbe30ad4_3.0.0-RC03.js → ___vite-browser-external_commonjs-proxy_1ef6f90f_3.0.0-RC05.js} +36 -36
- package/dist/bry-biometric-collector-main.js +3 -3
- package/dist/{fingersApi_5b5a03ec_3.0.0-RC03.js → fingersApi_74fea7e2_3.0.0-RC05.js} +2 -2
- package/dist/index.js +3 -3
- package/dist/{index_4c3936a1_3.0.0-RC03.js → index_39f05e1b_3.0.0-RC05.js} +3 -3
- package/dist/{index_89b7de40_3.0.0-RC03.js → index_b1fdd5bf_3.0.0-RC05.js} +3 -3
- package/dist/{main_f74f12d4_3.0.0-RC03.js → main_32819c92_3.0.0-RC05.js} +647 -637
- package/package.json +1 -1
- /package/dist/{en-us_99b30d39_3.0.0-RC03.js → en-us_99b30d39_3.0.0-RC05.js} +0 -0
- /package/dist/{es-cl_cfa50670_3.0.0-RC03.js → es-cl_cfa50670_3.0.0-RC05.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.0.0-RC03.js → face_api_0e3ce8c8_3.0.0-RC05.js} +0 -0
- /package/dist/{index-no-detector_281a271b_3.0.0-RC03.js → index-no-detector_281a271b_3.0.0-RC05.js} +0 -0
- /package/dist/{index-no-detector_56051121_3.0.0-RC03.js → index-no-detector_56051121_3.0.0-RC05.js} +0 -0
- /package/dist/{pt-br_d5ca6103_3.0.0-RC03.js → pt-br_d5ca6103_3.0.0-RC05.js} +0 -0
package/dist/{DocumentCollector_cc7c3a54_3.0.0-RC03.js → DocumentCollector_f0e43db5_3.0.0-RC05.js}
RENAMED
@@ -1,67 +1,67 @@
|
|
1
|
-
import { S as st, q as ot, r as nt, t as rt, w as j, x as S, y as p,
|
2
|
-
import { W as
|
3
|
-
import { matchDimensions as
|
4
|
-
const
|
5
|
-
function
|
6
|
-
let e, t, s,
|
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_32819c92_3.0.0-RC05.js";
|
2
|
+
import { W as Hi, C as Ui, V as Bi, a as Gi } from "./ValidationAlert_6437b99a_3.0.0-RC05.js";
|
3
|
+
import { matchDimensions as Yi, resizeResults as Qi } from "./face_api_0e3ce8c8_3.0.0-RC05.js";
|
4
|
+
const Xi = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwNiIgaGVpZ2h0PSI4OTAiIHZpZXdCb3g9IjAgMCAxMjA2IDg5MCIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4yIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogICAgPGcgZmlsdGVyPSJ1cmwoI2ZpbHRlcjBfZF8xOF80KSIgb3BhY2l0eT0iMCI+CiAgICA8bWFzayBpZD0icGF0aC0xLWluc2lkZS0xXzE4XzQiIGZpbGw9IndoaXRlIj4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiLz4KICAgIDwvbWFzaz4KICAgIDxyZWN0IHg9IjQiIHdpZHRoPSIxMTk4IiBoZWlnaHQ9Ijg4MiIgcng9IjYiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIHNoYXBlLXJlbmRlcmluZz0iY3Jpc3BFZGdlcyIgbWFzaz0idXJsKCNwYXRoLTEtaW5zaWRlLTFfMThfNCkiLz4KICAgIDwvZz4KICAgIDxtYXNrIGlkPSJwYXRoLTItaW5zaWRlLTJfMThfNCIgZmlsbD0id2hpdGUiPgogICAgPHJlY3QgeD0iMjE5LjI3OCIgeT0iMjk2IiB3aWR0aD0iMzM4Ljg2MyIgaGVpZ2h0PSI0NjgiIHJ4PSI3Ii8+CiAgICA8L21hc2s+CiAgICA8cmVjdCB4PSIyMTkuMjc4IiB5PSIyOTYiIHdpZHRoPSIzMzguODYzIiBoZWlnaHQ9IjQ2OCIgcng9IjciIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iMTYiIG1hc2s9InVybCgjcGF0aC0yLWluc2lkZS0yXzE4XzQpIi8+CiAgICA8ZWxsaXBzZSBjeD0iMzg5LjIzOCIgY3k9IjUxMS4yMjgiIHJ4PSI4Ni4yMzc2IiByeT0iODUuMjI4NCIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTQ3MS40NzUgNTExLjIyOEM0NzEuNDc1IDU1Ni4wNDUgNDM0LjcwMSA1OTIuNDU3IDM4OS4yMzggNTkyLjQ1N0MzNDMuNzc0IDU5Mi40NTcgMzA3IDU1Ni4wNDUgMzA3IDUxMS4yMjhDMzA3IDQ2Ni40MTEgMzQzLjc3NCA0MzAgMzg5LjIzOCA0MzBDNDM0LjcwMSA0MzAgNDcxLjQ3NSA0NjYuNDExIDQ3MS40NzUgNTExLjIyOFoiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MDhDNTM1LjI2IDYwOCA1MzkuODggNzQzLjQ3MyA1MzkuODggNzQzLjQ3M0wyMzkgNzQzLjVDMjM5IDc0My41IDIzOS41IDYwOCAzODcuMzggNjA4WiIgZmlsbD0id2hpdGUiIGZpbGwtb3BhY2l0eT0iMC4wOCIvPgogICAgPHBhdGggZD0iTTM4Ny4zOCA2MTJDNDU5Ljc5NCA2MTIgNDk2LjY0OSA2NDUuMDIgNTE1LjYyNSA2NzcuNzQzQzUyNS4xOCA2OTQuMjIgNTMwLjI1NSA3MTAuNzMzIDUzMi45MzggNzIzLjE1QzUzNC4yNzggNzI5LjM1MSA1MzUuMDE2IDczNC41MDggNTM1LjQxOCA3MzguMDk4QzUzNS40NzMgNzM4LjU4NiA1MzUuNTIxIDczOS4wNDUgNTM1LjU2NCA3MzkuNDc0TDI0My4xODQgNzM5LjVDMjQzLjIxNiA3MzkuMDM3IDI0My4yNTMgNzM4LjUzOCAyNDMuMjk3IDczOC4wMDNDMjQzLjU5IDczNC40MTQgMjQ0LjE3MSA3MjkuMjU4IDI0NS4zMjIgNzIzLjA1OEMyNDcuNjI2IDcxMC42NDIgMjUyLjE5NyA2OTQuMTM4IDI2MS4yNDEgNjc3LjY3NkMyNzAuMjczIDY2MS4yMzYgMjgzLjc0OCA2NDQuODY0IDMwMy44OTEgNjMyLjU4N0MzMjQuMDI0IDYyMC4zMTYgMzUxLjA0MiA2MTIgMzg3LjM4IDYxMloiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjkiIHN0cm9rZS13aWR0aD0iOCIvPgogICAgPGRlZnM+CiAgICA8ZmlsdGVyIGlkPSJmaWx0ZXIwX2RfMThfNCIgeD0iMCIgeT0iMCIgd2lkdGg9IjEyMDYiIGhlaWdodD0iODkwIiBmaWx0ZXJVbml0cz0idXNlclNwYWNlT25Vc2UiIGNvbG9yLWludGVycG9sYXRpb24tZmlsdGVycz0ic1JHQiI+CiAgICA8ZmVGbG9vZCBmbG9vZC1vcGFjaXR5PSIwIiByZXN1bHQ9IkJhY2tncm91bmRJbWFnZUZpeCIvPgogICAgPGZlQ29sb3JNYXRyaXggaW49IlNvdXJjZUFscGhhIiB0eXBlPSJtYXRyaXgiIHZhbHVlcz0iMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMTI3IDAiIHJlc3VsdD0iaGFyZEFscGhhIi8+CiAgICA8ZmVPZmZzZXQgZHk9IjQiLz4KICAgIDxmZUdhdXNzaWFuQmx1ciBzdGREZXZpYXRpb249IjIiLz4KICAgIDxmZUNvbXBvc2l0ZSBpbjI9ImhhcmRBbHBoYSIgb3BlcmF0b3I9Im91dCIvPgogICAgPGZlQ29sb3JNYXRyaXggdHlwZT0ibWF0cml4IiB2YWx1ZXM9IjAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAgMCAwIDAuMjUgMCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbjI9IkJhY2tncm91bmRJbWFnZUZpeCIgcmVzdWx0PSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIvPgogICAgPGZlQmxlbmQgbW9kZT0ibm9ybWFsIiBpbj0iU291cmNlR3JhcGhpYyIgaW4yPSJlZmZlY3QxX2Ryb3BTaGFkb3dfMThfNCIgcmVzdWx0PSJzaGFwZSIvPgogICAgPC9maWx0ZXI+CiAgICA8L2RlZnM+CiAgICA8L3N2Zz4KICAgIA==";
|
5
|
+
function Vi(a) {
|
6
|
+
let e, t, s, o, r, n, u, f, d, l, h;
|
7
7
|
return {
|
8
8
|
c() {
|
9
|
-
e = p("div"), t =
|
10
|
-
a[2].width + "px) / 2)"), g(
|
11
|
-
a[3] + ")"), g(
|
12
|
-
a[2].width), g(
|
13
|
-
a[2].height), g(
|
9
|
+
e = p("div"), t = se("svg"), s = se("defs"), o = se("mask"), r = se("rect"), n = se("rect"), h = se("rect"), this.c = Y, g(r, "width", "100%"), g(r, "height", "100%"), g(r, "fill", "white"), g(n, "id", "transparent-rect"), g(n, "x", u = "calc((100% - " + /*$docDimensions*/
|
10
|
+
a[2].width + "px) / 2)"), g(n, "y", f = "calc(" + /*y*/
|
11
|
+
a[3] + ")"), g(n, "width", d = /*$docDimensions*/
|
12
|
+
a[2].width), g(n, "height", l = /*$docDimensions*/
|
13
|
+
a[2].height), g(n, "fill", "black"), g(o, "id", "transparentAreaMask"), g(h, "width", "100%"), g(h, "height", "100%"), oe(h, "fill", "rgba(" + Ot(
|
14
14
|
/*videoOverlay*/
|
15
15
|
a[0]
|
16
16
|
) + ", " + (1 - /*videoOverlayTransparency*/
|
17
17
|
a[1] / 100) + ")"), g(h, "mask", "url(#transparentAreaMask)"), g(t, "class", "absolute w-full h-full"), g(t, "xmlns", "http://www.w3.org/2000/svg"), g(e, "id", "overlay-container"), g(e, "class", "flex items-center justify-center absolute inset-0");
|
18
18
|
},
|
19
19
|
m(c, m) {
|
20
|
-
j(c, e, m), I(e, t), I(t, s), I(s,
|
20
|
+
j(c, e, m), I(e, t), I(t, s), I(s, o), I(o, r), I(o, n), I(t, h);
|
21
21
|
},
|
22
22
|
p(c, [m]) {
|
23
23
|
m & /*$docDimensions*/
|
24
|
-
4 &&
|
25
|
-
c[2].width + "px) / 2)") && g(
|
24
|
+
4 && u !== (u = "calc((100% - " + /*$docDimensions*/
|
25
|
+
c[2].width + "px) / 2)") && g(n, "x", u), m & /*y*/
|
26
26
|
8 && f !== (f = "calc(" + /*y*/
|
27
|
-
c[3] + ")") && g(
|
28
|
-
4 &&
|
29
|
-
c[2].width) && g(
|
27
|
+
c[3] + ")") && g(n, "y", f), m & /*$docDimensions*/
|
28
|
+
4 && d !== (d = /*$docDimensions*/
|
29
|
+
c[2].width) && g(n, "width", d), m & /*$docDimensions*/
|
30
30
|
4 && l !== (l = /*$docDimensions*/
|
31
|
-
c[2].height) && g(
|
32
|
-
3 &&
|
31
|
+
c[2].height) && g(n, "height", l), m & /*videoOverlay, videoOverlayTransparency*/
|
32
|
+
3 && oe(h, "fill", "rgba(" + Ot(
|
33
33
|
/*videoOverlay*/
|
34
34
|
c[0]
|
35
35
|
) + ", " + (1 - /*videoOverlayTransparency*/
|
36
36
|
c[1] / 100) + ")");
|
37
37
|
},
|
38
|
-
i:
|
39
|
-
o:
|
38
|
+
i: Y,
|
39
|
+
o: Y,
|
40
40
|
d(c) {
|
41
41
|
c && E(e);
|
42
42
|
}
|
43
43
|
};
|
44
44
|
}
|
45
|
-
function
|
46
|
-
let s,
|
47
|
-
M(a,
|
48
|
-
let { videoOverlay:
|
45
|
+
function Ji(a, e, t) {
|
46
|
+
let s, o, r;
|
47
|
+
M(a, q, (l) => t(2, s = l)), M(a, hi, (l) => t(5, o = l)), M(a, ne, (l) => t(6, r = l));
|
48
|
+
let { videoOverlay: n } = e, { videoOverlayTransparency: u } = e, f, d;
|
49
49
|
return a.$$set = (l) => {
|
50
|
-
"videoOverlay" in l && t(0,
|
50
|
+
"videoOverlay" in l && t(0, n = l.videoOverlay), "videoOverlayTransparency" in l && t(1, u = l.videoOverlayTransparency);
|
51
51
|
}, a.$$.update = () => {
|
52
52
|
a.$$.dirty & /*$videoStore, $docDimensions, $captureBarHeight, divHeight*/
|
53
|
-
116 && r && s && (t(4, f = r.videoHeight -
|
53
|
+
116 && r && s && (t(4, f = r.videoHeight - o), t(3, d = (f - s.height) / 2 + "px"));
|
54
54
|
}, [
|
55
|
-
|
56
|
-
d,
|
57
|
-
s,
|
55
|
+
n,
|
58
56
|
u,
|
57
|
+
s,
|
58
|
+
d,
|
59
59
|
f,
|
60
|
-
|
60
|
+
o,
|
61
61
|
r
|
62
62
|
];
|
63
63
|
}
|
64
|
-
class
|
64
|
+
class Lt extends st {
|
65
65
|
constructor(e) {
|
66
66
|
super(), ot(
|
67
67
|
this,
|
@@ -70,8 +70,8 @@ class Wt extends st {
|
|
70
70
|
props: rt(this.attributes),
|
71
71
|
customElement: !0
|
72
72
|
},
|
73
|
+
Ji,
|
73
74
|
Vi,
|
74
|
-
Xi,
|
75
75
|
nt,
|
76
76
|
{
|
77
77
|
videoOverlay: 0,
|
@@ -96,10 +96,10 @@ class Wt extends st {
|
|
96
96
|
this.$$set({ videoOverlayTransparency: e }), S();
|
97
97
|
}
|
98
98
|
}
|
99
|
-
customElements.define("document-overlay",
|
100
|
-
function
|
101
|
-
let e, t, s,
|
102
|
-
return
|
99
|
+
customElements.define("document-overlay", Lt);
|
100
|
+
function xi(a) {
|
101
|
+
let e, t, s, o, r, n, u, f, d, l, h;
|
102
|
+
return u = new Hi({}), l = new Lt({
|
103
103
|
props: {
|
104
104
|
videoOverlay: (
|
105
105
|
/*videoOverlay*/
|
@@ -116,7 +116,7 @@ function Ji(a) {
|
|
116
116
|
}
|
117
117
|
}), {
|
118
118
|
c() {
|
119
|
-
e = p("div"), t = p("div"), s = p("div"),
|
119
|
+
e = p("div"), t = p("div"), s = p("div"), o = p("img"), n = F(), $(u.$$.fragment), d = F(), $(l.$$.fragment), this.c = Y, _e(o.src, r = Xi) || g(o, "src", r), g(o, "alt", "document"), g(s, "class", "w-full h-full relative"), g(t, "class", "absolute inset-0 flex justify-center"), g(e, "id", "doc-rectangle"), g(e, "class", f = "doc-loader " + /*loading*/
|
120
120
|
(a[0] ? "doc-loading" : "") + " z-10"), g(
|
121
121
|
e,
|
122
122
|
"style",
|
@@ -125,7 +125,7 @@ function Ji(a) {
|
|
125
125
|
);
|
126
126
|
},
|
127
127
|
m(c, m) {
|
128
|
-
j(c, e, m), I(e, t), I(t, s), I(s,
|
128
|
+
j(c, e, m), I(e, t), I(t, s), I(s, o), I(e, n), ee(u, e, null), j(c, d, m), ee(l, c, m), h = !0;
|
129
129
|
},
|
130
130
|
p(c, [m]) {
|
131
131
|
(!h || m & /*loading*/
|
@@ -147,46 +147,47 @@ function Ji(a) {
|
|
147
147
|
c[3]), l.$set(y);
|
148
148
|
},
|
149
149
|
i(c) {
|
150
|
-
h || (L(
|
150
|
+
h || (L(u.$$.fragment, c), L(l.$$.fragment, c), h = !0);
|
151
151
|
},
|
152
152
|
o(c) {
|
153
|
-
U(
|
153
|
+
U(u.$$.fragment, c), U(l.$$.fragment, c), h = !1;
|
154
154
|
},
|
155
155
|
d(c) {
|
156
|
-
c && E(e),
|
156
|
+
c && E(e), te(u), c && E(d), te(l, c);
|
157
157
|
}
|
158
158
|
};
|
159
159
|
}
|
160
|
-
const tt = 1.36,
|
161
|
-
function
|
162
|
-
let s,
|
163
|
-
M(a,
|
164
|
-
let { loading:
|
160
|
+
const tt = 1.36, Ki = "hsl(var(--p))", qi = "hsl(var(--su))";
|
161
|
+
function $i(a, e, t) {
|
162
|
+
let s, o, r;
|
163
|
+
M(a, q, (m) => t(8, o = m)), M(a, ne, (m) => t(9, r = m));
|
164
|
+
let { loading: n } = e, { videoOverlay: u = "" } = e, { videoOverlayTransparency: f = 100 } = e, d, l, h = 6, c = 0.7;
|
165
165
|
return X() && (c = 0.85, h = 5), a.$$set = (m) => {
|
166
|
-
"loading" in m && t(0,
|
166
|
+
"loading" in m && t(0, n = m.loading), "videoOverlay" in m && t(1, u = m.videoOverlay), "videoOverlayTransparency" in m && t(2, f = m.videoOverlayTransparency);
|
167
167
|
}, a.$$.update = () => {
|
168
|
-
a.$$.dirty & /*$videoStore, percentage, rectangleHeight, rectangleWidth*/
|
169
|
-
|
168
|
+
a.$$.dirty & /*$videoStore, percentage, rectangleHeight, rectangleWidth, $docDimensions*/
|
169
|
+
992 && r && (r.videoWidth / r.videoHeight > tt ? (t(6, l = r.videoHeight * c), t(5, d = l * tt)) : (t(5, d = r.videoWidth * c), t(6, l = d / tt)), v(q, o.width = d, o), v(q, o.height = l, o), v(q, o.x = (r.videoWidth - o.width) / 2, o), v(q, o.y = (r.videoHeight - o.height) / 2, o)), a.$$.dirty & /*rectangleWidth, rectangleHeight, borderWidth*/
|
170
170
|
104 && t(4, s = `
|
171
|
-
--rectangle-width: ${
|
171
|
+
--rectangle-width: ${d}px;
|
172
172
|
--rectangle-height: ${l}px;
|
173
|
-
--border-color: ${
|
174
|
-
--border-color-animation: ${
|
173
|
+
--border-color: ${Ki};
|
174
|
+
--border-color-animation: ${qi};
|
175
175
|
--rectangle-border: ${h}px;
|
176
176
|
`);
|
177
177
|
}, [
|
178
|
-
|
179
|
-
|
178
|
+
n,
|
179
|
+
u,
|
180
180
|
f,
|
181
181
|
h,
|
182
182
|
s,
|
183
|
-
|
183
|
+
d,
|
184
184
|
l,
|
185
185
|
c,
|
186
|
+
o,
|
186
187
|
r
|
187
188
|
];
|
188
189
|
}
|
189
|
-
class
|
190
|
+
class Ft extends st {
|
190
191
|
constructor(e) {
|
191
192
|
super(), ot(
|
192
193
|
this,
|
@@ -195,8 +196,8 @@ class Lt extends st {
|
|
195
196
|
props: rt(this.attributes),
|
196
197
|
customElement: !0
|
197
198
|
},
|
198
|
-
|
199
|
-
|
199
|
+
$i,
|
200
|
+
xi,
|
200
201
|
nt,
|
201
202
|
{
|
202
203
|
loading: 0,
|
@@ -228,13 +229,13 @@ class Lt extends st {
|
|
228
229
|
this.$$set({ videoOverlayTransparency: e }), S();
|
229
230
|
}
|
230
231
|
}
|
231
|
-
customElements.define("doc-rectangle",
|
232
|
-
function
|
233
|
-
let e, t, s,
|
232
|
+
customElements.define("doc-rectangle", Ft);
|
233
|
+
function St(a) {
|
234
|
+
let e, t, s, o, r, n, u, f, d, l, h, c, m, y, Z, b, C, O, A = (
|
234
235
|
/*$ready*/
|
235
|
-
a[11] &&
|
236
|
+
a[11] && Zt(a)
|
236
237
|
);
|
237
|
-
return h = new
|
238
|
+
return h = new Zi({}), m = new Ui({
|
238
239
|
props: {
|
239
240
|
showConfigButton: (
|
240
241
|
/*showConfigButton*/
|
@@ -259,30 +260,30 @@ function Et(a) {
|
|
259
260
|
}
|
260
261
|
}), {
|
261
262
|
c() {
|
262
|
-
e = p("div"), t = p("div"), s = p("video"), r = F(),
|
263
|
-
a[11] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0"), s.playsInline = !0, s.muted = !0, s.autoplay = !0, g(
|
263
|
+
e = p("div"), t = p("div"), s = p("video"), r = F(), n = p("canvas"), u = F(), f = p("div"), d = p("div"), A && A.c(), l = F(), $(h.$$.fragment), c = F(), $(m.$$.fragment), g(s, "id", "bry-cc-camera-video-tag"), g(s, "class", o = /*$ready*/
|
264
|
+
a[11] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0"), s.playsInline = !0, s.muted = !0, s.autoplay = !0, g(n, "id", "bry-ce-detectionsCanvas"), g(n, "class", "absolute top-0 left-0 max-w-full"), g(t, "class", "overflow-hidden"), oe(
|
264
265
|
t,
|
265
266
|
"width",
|
266
267
|
/*$videoStore*/
|
267
268
|
a[12].videoWidth + "px"
|
268
|
-
),
|
269
|
+
), oe(
|
269
270
|
t,
|
270
271
|
"height",
|
271
272
|
/*$videoStore*/
|
272
273
|
a[12].videoHeight + "px"
|
273
|
-
), g(
|
274
|
+
), g(d, "class", "flex flex-grow w-full items-center justify-center relative"), g(f, "class", "absolute inset-0 flex flex-col items-center justify-between w-full h-full"), g(e, "class", y = /*$ready*/
|
274
275
|
a[11] ? "relative" : "relative w-0 h-0"), e.hidden = Z = /*$cameraStatusStore*/
|
275
276
|
a[10] !== W.OK;
|
276
277
|
},
|
277
278
|
m(T, k) {
|
278
|
-
j(T, e, k), I(e, t), I(t, s), a[32](s), I(t, r), I(t,
|
279
|
-
|
279
|
+
j(T, e, k), I(e, t), I(t, s), a[32](s), I(t, r), I(t, n), a[34](n), I(e, u), I(e, f), I(f, d), A && A.m(d, null), I(f, l), ee(h, f, null), I(f, c), ee(m, f, null), b = !0, C || (O = [
|
280
|
+
le(
|
280
281
|
s,
|
281
282
|
"canplay",
|
282
283
|
/*canplay_handler*/
|
283
284
|
a[33]
|
284
285
|
),
|
285
|
-
|
286
|
+
le(
|
286
287
|
s,
|
287
288
|
"play",
|
288
289
|
/*play*/
|
@@ -293,22 +294,22 @@ function Et(a) {
|
|
293
294
|
},
|
294
295
|
p(T, k) {
|
295
296
|
(!b || k[0] & /*$ready*/
|
296
|
-
2048 &&
|
297
|
-
T[11] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && g(s, "class",
|
298
|
-
4096) &&
|
297
|
+
2048 && o !== (o = /*$ready*/
|
298
|
+
T[11] ? X() ? "absolute inset-0" : "w-full h-full object-cover" : "w-0 h-0")) && g(s, "class", o), (!b || k[0] & /*$videoStore*/
|
299
|
+
4096) && oe(
|
299
300
|
t,
|
300
301
|
"width",
|
301
302
|
/*$videoStore*/
|
302
303
|
T[12].videoWidth + "px"
|
303
304
|
), (!b || k[0] & /*$videoStore*/
|
304
|
-
4096) &&
|
305
|
+
4096) && oe(
|
305
306
|
t,
|
306
307
|
"height",
|
307
308
|
/*$videoStore*/
|
308
309
|
T[12].videoHeight + "px"
|
309
310
|
), /*$ready*/
|
310
311
|
T[11] ? A ? (A.p(T, k), k[0] & /*$ready*/
|
311
|
-
2048 && L(A, 1)) : (A =
|
312
|
+
2048 && L(A, 1)) : (A = Zt(T), A.c(), L(A, 1), A.m(d, null)) : A && (it(), U(A, 1, 1, () => {
|
312
313
|
A = null;
|
313
314
|
}), at());
|
314
315
|
const P = {};
|
@@ -333,20 +334,20 @@ function Et(a) {
|
|
333
334
|
U(A), U(h.$$.fragment, T), U(m.$$.fragment, T), b = !1;
|
334
335
|
},
|
335
336
|
d(T) {
|
336
|
-
T && E(e), a[32](null), a[34](null), A && A.d(),
|
337
|
+
T && E(e), a[32](null), a[34](null), A && A.d(), te(h), te(m), C = !1, lt(O);
|
337
338
|
}
|
338
339
|
};
|
339
340
|
}
|
340
|
-
function
|
341
|
-
let e, t, s,
|
342
|
-
return e = new
|
341
|
+
function Zt(a) {
|
342
|
+
let e, t, s, o;
|
343
|
+
return e = new Bi({
|
343
344
|
props: {
|
344
345
|
isCountingDown: (
|
345
346
|
/*isCountingDown*/
|
346
347
|
a[9]
|
347
348
|
)
|
348
349
|
}
|
349
|
-
}), s = new
|
350
|
+
}), s = new Ft({
|
350
351
|
props: {
|
351
352
|
loading: (
|
352
353
|
/*isCountingDown*/
|
@@ -363,61 +364,61 @@ function St(a) {
|
|
363
364
|
}
|
364
365
|
}), {
|
365
366
|
c() {
|
366
|
-
|
367
|
+
$(e.$$.fragment), t = F(), $(s.$$.fragment);
|
367
368
|
},
|
368
|
-
m(r,
|
369
|
-
|
369
|
+
m(r, n) {
|
370
|
+
ee(e, r, n), j(r, t, n), ee(s, r, n), o = !0;
|
370
371
|
},
|
371
|
-
p(r,
|
372
|
-
const
|
373
|
-
|
374
|
-
512 && (
|
375
|
-
r[9]), e.$set(
|
372
|
+
p(r, n) {
|
373
|
+
const u = {};
|
374
|
+
n[0] & /*isCountingDown*/
|
375
|
+
512 && (u.isCountingDown = /*isCountingDown*/
|
376
|
+
r[9]), e.$set(u);
|
376
377
|
const f = {};
|
377
|
-
|
378
|
+
n[0] & /*isCountingDown*/
|
378
379
|
512 && (f.loading = /*isCountingDown*/
|
379
|
-
r[9]),
|
380
|
+
r[9]), n[0] & /*videoOverlay*/
|
380
381
|
8 && (f.videoOverlay = /*videoOverlay*/
|
381
|
-
r[3]),
|
382
|
+
r[3]), n[0] & /*videoOverlayTransparency*/
|
382
383
|
16 && (f.videoOverlayTransparency = /*videoOverlayTransparency*/
|
383
384
|
r[4]), s.$set(f);
|
384
385
|
},
|
385
386
|
i(r) {
|
386
|
-
|
387
|
+
o || (L(e.$$.fragment, r), L(s.$$.fragment, r), o = !0);
|
387
388
|
},
|
388
389
|
o(r) {
|
389
|
-
U(e.$$.fragment, r), U(s.$$.fragment, r),
|
390
|
+
U(e.$$.fragment, r), U(s.$$.fragment, r), o = !1;
|
390
391
|
},
|
391
392
|
d(r) {
|
392
|
-
|
393
|
+
te(e, r), r && E(t), te(s, r);
|
393
394
|
}
|
394
395
|
};
|
395
396
|
}
|
396
|
-
function
|
397
|
-
let e, t, s,
|
398
|
-
function
|
397
|
+
function Pt(a) {
|
398
|
+
let e, t, s, o, r;
|
399
|
+
function n(d, l) {
|
399
400
|
return (
|
400
401
|
/*$isLoading*/
|
401
|
-
|
402
|
+
d[20] ? ta : ea
|
402
403
|
);
|
403
404
|
}
|
404
|
-
let
|
405
|
+
let u = n(a), f = u(a);
|
405
406
|
return {
|
406
407
|
c() {
|
407
|
-
e = p("slot"), t = p("div"), s = p("img"), r = F(), f.c(), _e(s.src,
|
408
|
+
e = p("slot"), t = p("div"), s = p("img"), r = F(), f.c(), _e(s.src, o = Pi) || g(s, "src", o), g(s, "alt", "loading gif"), g(s, "class", "m-auto h-[10em] lg:h-[12em]"), g(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), g(e, "name", "loading-camera-gif"), g(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
408
409
|
},
|
409
|
-
m(
|
410
|
-
j(
|
410
|
+
m(d, l) {
|
411
|
+
j(d, e, l), I(e, t), I(t, s), I(t, r), f.m(t, null);
|
411
412
|
},
|
412
|
-
p(
|
413
|
-
|
413
|
+
p(d, l) {
|
414
|
+
u === (u = n(d)) && f ? f.p(d, l) : (f.d(1), f = u(d), f && (f.c(), f.m(t, null)));
|
414
415
|
},
|
415
|
-
d(
|
416
|
-
|
416
|
+
d(d) {
|
417
|
+
d && E(e), f.d();
|
417
418
|
}
|
418
419
|
};
|
419
420
|
}
|
420
|
-
function
|
421
|
+
function ea(a) {
|
421
422
|
let e, t = (
|
422
423
|
/*$_*/
|
423
424
|
a[18]("faceCollector.initiatingCamera") + ""
|
@@ -426,20 +427,20 @@ function $i(a) {
|
|
426
427
|
c() {
|
427
428
|
e = p("span"), s = V(t), g(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
428
429
|
},
|
429
|
-
m(
|
430
|
-
j(
|
430
|
+
m(o, r) {
|
431
|
+
j(o, e, r), I(e, s);
|
431
432
|
},
|
432
|
-
p(
|
433
|
+
p(o, r) {
|
433
434
|
r[0] & /*$_*/
|
434
435
|
262144 && t !== (t = /*$_*/
|
435
|
-
|
436
|
+
o[18]("faceCollector.initiatingCamera") + "") && J(s, t);
|
436
437
|
},
|
437
|
-
d(
|
438
|
-
|
438
|
+
d(o) {
|
439
|
+
o && E(e);
|
439
440
|
}
|
440
441
|
};
|
441
442
|
}
|
442
|
-
function
|
443
|
+
function ta(a) {
|
443
444
|
let e;
|
444
445
|
return {
|
445
446
|
c() {
|
@@ -448,35 +449,35 @@ function ea(a) {
|
|
448
449
|
m(t, s) {
|
449
450
|
j(t, e, s);
|
450
451
|
},
|
451
|
-
p:
|
452
|
+
p: Y,
|
452
453
|
d(t) {
|
453
454
|
t && E(e);
|
454
455
|
}
|
455
456
|
};
|
456
457
|
}
|
457
|
-
function
|
458
|
+
function Wt(a) {
|
458
459
|
let e, t, s = (
|
459
460
|
/*$_*/
|
460
461
|
a[18]("faceCollector.finish") + ""
|
461
|
-
),
|
462
|
+
), o, r, n, u, f = (
|
462
463
|
/*$_*/
|
463
464
|
a[18]("faceCollector.retakePhoto") + ""
|
464
|
-
),
|
465
|
+
), d, l, h;
|
465
466
|
return {
|
466
467
|
c() {
|
467
|
-
e = p("div"), t = p("button"),
|
468
|
-
a[15].length === 0, g(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), g(
|
468
|
+
e = p("div"), t = p("button"), o = V(s), n = F(), u = p("button"), d = V(f), t.disabled = r = /*$justification*/
|
469
|
+
a[15].length === 0, g(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), g(u, "id", "bry-cc-retake-button"), g(u, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), g(e, "class", "ce-dui-btn-group flex");
|
469
470
|
},
|
470
471
|
m(c, m) {
|
471
|
-
j(c, e, m), I(e, t), I(t,
|
472
|
-
|
472
|
+
j(c, e, m), I(e, t), I(t, o), I(e, n), I(e, u), I(u, d), l || (h = [
|
473
|
+
le(
|
473
474
|
t,
|
474
475
|
"click",
|
475
476
|
/*click_handler*/
|
476
477
|
a[35]
|
477
478
|
),
|
478
|
-
|
479
|
-
|
479
|
+
le(
|
480
|
+
u,
|
480
481
|
"click",
|
481
482
|
/*click_handler_1*/
|
482
483
|
a[36]
|
@@ -486,30 +487,30 @@ function Pt(a) {
|
|
486
487
|
p(c, m) {
|
487
488
|
m[0] & /*$_*/
|
488
489
|
262144 && s !== (s = /*$_*/
|
489
|
-
c[18]("faceCollector.finish") + "") && J(
|
490
|
+
c[18]("faceCollector.finish") + "") && J(o, s), m[0] & /*$justification*/
|
490
491
|
32768 && r !== (r = /*$justification*/
|
491
492
|
c[15].length === 0) && (t.disabled = r), m[0] & /*$_*/
|
492
493
|
262144 && f !== (f = /*$_*/
|
493
|
-
c[18]("faceCollector.retakePhoto") + "") && J(
|
494
|
+
c[18]("faceCollector.retakePhoto") + "") && J(d, f);
|
494
495
|
},
|
495
496
|
d(c) {
|
496
497
|
c && E(e), l = !1, lt(h);
|
497
498
|
}
|
498
499
|
};
|
499
500
|
}
|
500
|
-
function
|
501
|
+
function ia(a) {
|
501
502
|
let e, t;
|
502
|
-
return e = new
|
503
|
+
return e = new Gi({ props: { handler: (
|
503
504
|
/*func*/
|
504
505
|
a[40]
|
505
506
|
) } }), {
|
506
507
|
c() {
|
507
|
-
|
508
|
+
$(e.$$.fragment);
|
508
509
|
},
|
509
|
-
m(s,
|
510
|
-
|
510
|
+
m(s, o) {
|
511
|
+
ee(e, s, o), t = !0;
|
511
512
|
},
|
512
|
-
p:
|
513
|
+
p: Y,
|
513
514
|
i(s) {
|
514
515
|
t || (L(e.$$.fragment, s), t = !0);
|
515
516
|
},
|
@@ -517,83 +518,83 @@ function ta(a) {
|
|
517
518
|
U(e.$$.fragment, s), t = !1;
|
518
519
|
},
|
519
520
|
d(s) {
|
520
|
-
|
521
|
+
te(e, s);
|
521
522
|
}
|
522
523
|
};
|
523
524
|
}
|
524
|
-
function
|
525
|
-
let e, t, s,
|
526
|
-
function
|
525
|
+
function aa(a) {
|
526
|
+
let e, t, s, o, r, n;
|
527
|
+
function u(l, h) {
|
527
528
|
return (
|
528
529
|
/*$captured*/
|
529
|
-
l[13] ?
|
530
|
+
l[13] ? sa : oa
|
530
531
|
);
|
531
532
|
}
|
532
|
-
let f =
|
533
|
+
let f = u(a), d = f(a);
|
533
534
|
return {
|
534
535
|
c() {
|
535
|
-
e = p("div"), t = p("img"), r = F(),
|
536
|
+
e = p("div"), t = p("img"), r = F(), d.c(), g(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), _e(t.src, s = /*$dataTypePrefix*/
|
536
537
|
a[19] + "," + /*$image*/
|
537
|
-
a[16]) || g(t, "src", s), t.hidden =
|
538
|
+
a[16]) || g(t, "src", s), t.hidden = o = !/*$captured*/
|
538
539
|
a[13] || !/*$showFaceWhileValidating*/
|
539
|
-
a[21], g(t, "alt", ""), g(e, "class",
|
540
|
+
a[21], g(t, "alt", ""), g(e, "class", n = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
|
540
541
|
a[21] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible"));
|
541
542
|
},
|
542
543
|
m(l, h) {
|
543
|
-
j(l, e, h), I(e, t), I(e, r),
|
544
|
+
j(l, e, h), I(e, t), I(e, r), d.m(e, null);
|
544
545
|
},
|
545
546
|
p(l, h) {
|
546
547
|
h[0] & /*$dataTypePrefix, $image*/
|
547
548
|
589824 && !_e(t.src, s = /*$dataTypePrefix*/
|
548
549
|
l[19] + "," + /*$image*/
|
549
550
|
l[16]) && g(t, "src", s), h[0] & /*$captured, $showFaceWhileValidating*/
|
550
|
-
2105344 &&
|
551
|
+
2105344 && o !== (o = !/*$captured*/
|
551
552
|
l[13] || !/*$showFaceWhileValidating*/
|
552
|
-
l[21]) && (t.hidden =
|
553
|
-
2097152 &&
|
554
|
-
l[21] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible")) && g(e, "class",
|
553
|
+
l[21]) && (t.hidden = o), f === (f = u(l)) && d ? d.p(l, h) : (d.d(1), d = f(l), d && (d.c(), d.m(e, null))), h[0] & /*$showFaceWhileValidating*/
|
554
|
+
2097152 && n !== (n = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
|
555
|
+
l[21] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible")) && g(e, "class", n);
|
555
556
|
},
|
556
|
-
i:
|
557
|
-
o:
|
557
|
+
i: Y,
|
558
|
+
o: Y,
|
558
559
|
d(l) {
|
559
|
-
l && E(e),
|
560
|
+
l && E(e), d.d();
|
560
561
|
}
|
561
562
|
};
|
562
563
|
}
|
563
|
-
function
|
564
|
-
let e, t, s,
|
564
|
+
function sa(a) {
|
565
|
+
let e, t, s, o, r = (
|
565
566
|
/*$_*/
|
566
567
|
a[18]("faceCollector.finish") + ""
|
567
|
-
),
|
568
|
+
), n, u, f, d, l = (
|
568
569
|
/*$_*/
|
569
570
|
a[18]("faceCollector.retakePhoto") + ""
|
570
571
|
), h, c, m;
|
571
572
|
function y(C, O) {
|
572
573
|
return (
|
573
574
|
/*$requestResult*/
|
574
|
-
C[17] ===
|
575
|
+
C[17] === re.TEMPLATE_EXTRACTION_ERROR ? la : (
|
575
576
|
/*$saved*/
|
576
|
-
C[14] ?
|
577
|
+
C[14] ? na : ra
|
577
578
|
)
|
578
579
|
);
|
579
580
|
}
|
580
581
|
let Z = y(a), b = Z(a);
|
581
582
|
return {
|
582
583
|
c() {
|
583
|
-
e = p("div"), b.c(), t = F(), s = p("div"),
|
584
|
+
e = p("div"), b.c(), t = F(), s = p("div"), o = p("button"), n = V(r), f = F(), d = p("button"), h = V(l), o.disabled = u = /*$saved*/
|
584
585
|
a[14] || /*$requestResult*/
|
585
|
-
a[17] !==
|
586
|
+
a[17] !== re.OK, g(o, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), g(d, "id", "bry-cc-retake-button"), g(d, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), g(s, "class", "ce-dui-btn-group flex"), g(e, "class", "flex flex-col justify-between");
|
586
587
|
},
|
587
588
|
m(C, O) {
|
588
|
-
j(C, e, O), b.m(e, null), I(e, t), I(e, s), I(s,
|
589
|
-
|
590
|
-
|
589
|
+
j(C, e, O), b.m(e, null), I(e, t), I(e, s), I(s, o), I(o, n), I(s, f), I(s, d), I(d, h), c || (m = [
|
590
|
+
le(
|
591
|
+
o,
|
591
592
|
"click",
|
592
593
|
/*click_handler_2*/
|
593
594
|
a[38]
|
594
595
|
),
|
595
|
-
|
596
|
-
|
596
|
+
le(
|
597
|
+
d,
|
597
598
|
"click",
|
598
599
|
/*click_handler_3*/
|
599
600
|
a[39]
|
@@ -603,10 +604,10 @@ function aa(a) {
|
|
603
604
|
p(C, O) {
|
604
605
|
Z === (Z = y(C)) && b ? b.p(C, O) : (b.d(1), b = Z(C), b && (b.c(), b.m(e, t))), O[0] & /*$_*/
|
605
606
|
262144 && r !== (r = /*$_*/
|
606
|
-
C[18]("faceCollector.finish") + "") && J(
|
607
|
-
147456 &&
|
607
|
+
C[18]("faceCollector.finish") + "") && J(n, r), O[0] & /*$saved, $requestResult*/
|
608
|
+
147456 && u !== (u = /*$saved*/
|
608
609
|
C[14] || /*$requestResult*/
|
609
|
-
C[17] !==
|
610
|
+
C[17] !== re.OK) && (o.disabled = u), O[0] & /*$_*/
|
610
611
|
262144 && l !== (l = /*$_*/
|
611
612
|
C[18]("faceCollector.retakePhoto") + "") && J(h, l);
|
612
613
|
},
|
@@ -615,7 +616,7 @@ function aa(a) {
|
|
615
616
|
}
|
616
617
|
};
|
617
618
|
}
|
618
|
-
function
|
619
|
+
function oa(a) {
|
619
620
|
let e;
|
620
621
|
return {
|
621
622
|
c() {
|
@@ -624,13 +625,13 @@ function sa(a) {
|
|
624
625
|
m(t, s) {
|
625
626
|
j(t, e, s);
|
626
627
|
},
|
627
|
-
p:
|
628
|
+
p: Y,
|
628
629
|
d(t) {
|
629
630
|
t && E(e);
|
630
631
|
}
|
631
632
|
};
|
632
633
|
}
|
633
|
-
function
|
634
|
+
function na(a) {
|
634
635
|
let e, t = (
|
635
636
|
/*$_*/
|
636
637
|
a[18]("docCollector.captured") + ""
|
@@ -639,20 +640,20 @@ function oa(a) {
|
|
639
640
|
c() {
|
640
641
|
e = p("h1"), s = V(t), g(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
|
641
642
|
},
|
642
|
-
m(
|
643
|
-
j(
|
643
|
+
m(o, r) {
|
644
|
+
j(o, e, r), I(e, s);
|
644
645
|
},
|
645
|
-
p(
|
646
|
+
p(o, r) {
|
646
647
|
r[0] & /*$_*/
|
647
648
|
262144 && t !== (t = /*$_*/
|
648
|
-
|
649
|
+
o[18]("docCollector.captured") + "") && J(s, t);
|
649
650
|
},
|
650
|
-
d(
|
651
|
-
|
651
|
+
d(o) {
|
652
|
+
o && E(e);
|
652
653
|
}
|
653
654
|
};
|
654
655
|
}
|
655
|
-
function
|
656
|
+
function ra(a) {
|
656
657
|
let e, t = (
|
657
658
|
/*$_*/
|
658
659
|
a[18]("faceCollector.everythingOk") + ""
|
@@ -661,20 +662,20 @@ function na(a) {
|
|
661
662
|
c() {
|
662
663
|
e = p("h1"), s = V(t), g(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
|
663
664
|
},
|
664
|
-
m(
|
665
|
-
j(
|
665
|
+
m(o, r) {
|
666
|
+
j(o, e, r), I(e, s);
|
666
667
|
},
|
667
|
-
p(
|
668
|
+
p(o, r) {
|
668
669
|
r[0] & /*$_*/
|
669
670
|
262144 && t !== (t = /*$_*/
|
670
|
-
|
671
|
+
o[18]("faceCollector.everythingOk") + "") && J(s, t);
|
671
672
|
},
|
672
|
-
d(
|
673
|
-
|
673
|
+
d(o) {
|
674
|
+
o && E(e);
|
674
675
|
}
|
675
676
|
};
|
676
677
|
}
|
677
|
-
function
|
678
|
+
function la(a) {
|
678
679
|
let e, t = (
|
679
680
|
/*$_*/
|
680
681
|
a[18]("docCollector.docNotFound") + ""
|
@@ -683,30 +684,30 @@ function ra(a) {
|
|
683
684
|
c() {
|
684
685
|
e = p("h1"), s = V(t), g(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
685
686
|
},
|
686
|
-
m(
|
687
|
-
j(
|
687
|
+
m(o, r) {
|
688
|
+
j(o, e, r), I(e, s);
|
688
689
|
},
|
689
|
-
p(
|
690
|
+
p(o, r) {
|
690
691
|
r[0] & /*$_*/
|
691
692
|
262144 && t !== (t = /*$_*/
|
692
|
-
|
693
|
+
o[18]("docCollector.docNotFound") + "") && J(s, t);
|
693
694
|
},
|
694
|
-
d(
|
695
|
-
|
695
|
+
d(o) {
|
696
|
+
o && E(e);
|
696
697
|
}
|
697
698
|
};
|
698
699
|
}
|
699
|
-
function
|
700
|
-
let e, t, s,
|
700
|
+
function ca(a) {
|
701
|
+
let e, t, s, o, r, n, u, f, d, l = (
|
701
702
|
/*$videoStore*/
|
702
|
-
a[12] &&
|
703
|
+
a[12] && St(a)
|
703
704
|
), h = !/*$ready*/
|
704
705
|
a[11] && /*$cameraStatusStore*/
|
705
|
-
a[10] === W.OK &&
|
706
|
+
a[10] === W.OK && Pt(a), c = (
|
706
707
|
/*$captured*/
|
707
|
-
a[13] &&
|
708
|
+
a[13] && Wt(a)
|
708
709
|
);
|
709
|
-
const m = [
|
710
|
+
const m = [aa, ia], y = [];
|
710
711
|
function Z(b, C) {
|
711
712
|
return (
|
712
713
|
/*showUnconformities*/
|
@@ -717,58 +718,58 @@ function la(a) {
|
|
717
718
|
)
|
718
719
|
);
|
719
720
|
}
|
720
|
-
return ~(
|
721
|
+
return ~(n = Z(a)) && (u = y[n] = m[n](a)), {
|
721
722
|
c() {
|
722
|
-
e = p("div"), t = p("div"), l && l.c(), s = F(), h && h.c(),
|
723
|
+
e = p("div"), t = p("div"), l && l.c(), s = F(), h && h.c(), o = F(), c && c.c(), r = F(), u && u.c(), f = mi(), this.c = Y, g(t, "class", "relative mx-auto"), g(e, "class", "flex flex-col justify-between");
|
723
724
|
},
|
724
725
|
m(b, C) {
|
725
|
-
j(b, e, C), I(e, t), l && l.m(t, null), I(t, s), h && h.m(t, null), I(t,
|
726
|
+
j(b, e, C), I(e, t), l && l.m(t, null), I(t, s), h && h.m(t, null), I(t, o), c && c.m(t, null), a[37](e), j(b, r, C), ~n && y[n].m(b, C), j(b, f, C), d = !0;
|
726
727
|
},
|
727
728
|
p(b, C) {
|
728
729
|
/*$videoStore*/
|
729
730
|
b[12] ? l ? (l.p(b, C), C[0] & /*$videoStore*/
|
730
|
-
4096 && L(l, 1)) : (l =
|
731
|
+
4096 && L(l, 1)) : (l = St(b), l.c(), L(l, 1), l.m(t, s)) : l && (it(), U(l, 1, 1, () => {
|
731
732
|
l = null;
|
732
733
|
}), at()), !/*$ready*/
|
733
734
|
b[11] && /*$cameraStatusStore*/
|
734
|
-
b[10] === W.OK ? h ? h.p(b, C) : (h =
|
735
|
-
b[13] ? c ? c.p(b, C) : (c =
|
736
|
-
let O =
|
737
|
-
|
735
|
+
b[10] === W.OK ? h ? h.p(b, C) : (h = Pt(b), h.c(), h.m(t, o)) : h && (h.d(1), h = null), /*$captured*/
|
736
|
+
b[13] ? c ? c.p(b, C) : (c = Wt(b), c.c(), c.m(t, null)) : c && (c.d(1), c = null);
|
737
|
+
let O = n;
|
738
|
+
n = Z(b), n === O ? ~n && y[n].p(b, C) : (u && (it(), U(y[O], 1, 1, () => {
|
738
739
|
y[O] = null;
|
739
|
-
}), at()), ~
|
740
|
+
}), at()), ~n ? (u = y[n], u ? u.p(b, C) : (u = y[n] = m[n](b), u.c()), L(u, 1), u.m(f.parentNode, f)) : u = null);
|
740
741
|
},
|
741
742
|
i(b) {
|
742
|
-
|
743
|
+
d || (L(l), L(u), d = !0);
|
743
744
|
},
|
744
745
|
o(b) {
|
745
|
-
U(l), U(
|
746
|
+
U(l), U(u), d = !1;
|
746
747
|
},
|
747
748
|
d(b) {
|
748
|
-
b && E(e), l && l.d(), h && h.d(), c && c.d(), a[37](null), b && E(r), ~
|
749
|
+
b && E(e), l && l.d(), h && h.d(), c && c.d(), a[37](null), b && E(r), ~n && y[n].d(b), b && E(f);
|
749
750
|
}
|
750
751
|
};
|
751
752
|
}
|
752
|
-
let
|
753
|
-
function da(a, e, t) {
|
754
|
-
const s = e.videoWidth / e.videoHeight, n = t.width / t.height;
|
755
|
-
let r = 0, o = 0, d = e.videoWidth, f = e.videoHeight;
|
756
|
-
s > n ? (d = e.videoHeight * n, r = (e.videoWidth - d) / 2) : s < n && (f = e.videoWidth / n, o = (e.videoHeight - f) / 2), a.drawImage(e, r, o, d, f, 0, 0, t.width, t.height);
|
757
|
-
}
|
753
|
+
let da = !1, ua = 0;
|
758
754
|
function ga(a, e, t) {
|
759
|
-
|
760
|
-
|
761
|
-
|
755
|
+
const s = e.videoWidth / e.videoHeight, o = t.width / t.height;
|
756
|
+
let r = 0, n = 0, u = e.videoWidth, f = e.videoHeight;
|
757
|
+
s > o ? (u = e.videoHeight * o, r = (e.videoWidth - u) / 2) : s < o && (f = e.videoWidth / o, n = (e.videoHeight - f) / 2), a.drawImage(e, r, n, u, f, 0, 0, t.width, t.height);
|
758
|
+
}
|
759
|
+
function fa(a, e, t) {
|
760
|
+
let s, o, r, n, u, f, d, l, h, c, m, y, Z, b, C, O, A, T, k, P, De, x, ue, K, ct, dt, ut;
|
761
|
+
M(a, Ge, (i) => t(54, s = i)), M(a, be, (i) => t(56, r = i)), M(a, G, (i) => t(10, n = i)), M(a, ve, (i) => t(11, u = i)), M(a, bi, (i) => t(57, f = i)), M(a, Ie, (i) => t(58, d = i)), M(a, vi, (i) => t(59, l = i)), M(a, de, (i) => t(60, h = i)), M(a, ne, (i) => t(12, c = i)), M(a, we, (i) => t(13, m = i)), M(a, Ye, (i) => t(61, y = i)), M(a, Qe, (i) => t(62, Z = i)), M(a, Nt, (i) => t(63, b = i)), M(a, q, (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, zt, (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, jt, (i) => t(67, K = i)), M(a, Je, (i) => t(68, ct = i)), M(a, Ci, (i) => t(20, dt = i)), M(a, yi, (i) => t(21, ut = i));
|
762
|
+
let _, R, Q, ce = !1, gt = !1, H = {
|
762
763
|
width: 2560,
|
763
764
|
height: 1440,
|
764
765
|
aspectRatio: -1
|
765
766
|
};
|
766
|
-
const
|
767
|
+
const Ht = { width: 2560, height: 1440 };
|
767
768
|
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
|
-
const ge =
|
769
|
-
M(a, ge, (i) => t(55,
|
770
|
-
const ze =
|
771
|
-
M(a, ze, (i) => t(19,
|
769
|
+
const ge = Et(!1);
|
770
|
+
M(a, ge, (i) => t(55, o = i));
|
771
|
+
const ze = Et("data:image/png;base64");
|
772
|
+
M(a, ze, (i) => t(19, ue = i));
|
772
773
|
let It = !1, fe = !0, wt = 0, je = 0, ke = !0, Ct = 0, Re = (/* @__PURE__ */ new Date()).getTime(), Ee = !1;
|
773
774
|
Mi.mixin({
|
774
775
|
toast: !0,
|
@@ -776,32 +777,32 @@ function ga(a, e, t) {
|
|
776
777
|
timer: 13e3,
|
777
778
|
timerProgressBar: !0
|
778
779
|
}), pi(async () => {
|
779
|
-
if (v(ve,
|
780
|
+
if (v(ve, u = !1, u), yt(), K)
|
780
781
|
try {
|
781
782
|
await _i(Ne), gt = !0;
|
782
783
|
} catch {
|
783
|
-
v(
|
784
|
+
v(jt, K = !1, K);
|
784
785
|
}
|
785
|
-
await Ze(),
|
786
|
+
await Ze(), Bt();
|
786
787
|
});
|
787
788
|
function yt() {
|
788
|
-
v(we, m = !1, m), v(
|
789
|
+
v(we, m = !1, m), v(Nt, b = !0, b), v(Ce, O = "", O), v(Ie, d = xe.REAR_CAMERA, d), v(be, r = !1, r), v(Xe, A = !1, A), v(ye, P = re.OK, P), v(Ve, x = "", x);
|
789
790
|
const i = Di(Ke);
|
790
791
|
i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, Ke.set(i);
|
791
792
|
}
|
792
|
-
async function
|
793
|
+
async function Ut() {
|
793
794
|
const [i, D] = (Ae ?? "")?.replaceAll(" ", "")?.split("x")?.map((w) => w ? parseInt(w) : void 0);
|
794
|
-
!i || !D || (X() ? (await
|
795
|
-
|
795
|
+
!i || !D || (X() ? (await Wi(), v(
|
796
|
+
ne,
|
796
797
|
c = {
|
797
798
|
videoWidth: window.innerWidth,
|
798
799
|
videoHeight: window.innerHeight
|
799
800
|
},
|
800
801
|
c
|
801
|
-
)) : v(
|
802
|
+
)) : v(ne, c = { videoWidth: i, videoHeight: D }, c));
|
802
803
|
}
|
803
804
|
function Mt() {
|
804
|
-
v(
|
805
|
+
v(G, n = W.OK, n), It = !0, fe = !1;
|
805
806
|
}
|
806
807
|
async function he() {
|
807
808
|
if (K && !gt)
|
@@ -809,12 +810,12 @@ function ga(a, e, t) {
|
|
809
810
|
if (_) {
|
810
811
|
if (ct !== $e.Document && !Oe)
|
811
812
|
return pe(_, he);
|
812
|
-
v(ve,
|
813
|
+
v(ve, u = !0, u), K && (o || v(ge, o = !0, o)), pe(_, he);
|
813
814
|
}
|
814
815
|
}
|
815
816
|
async function pt() {
|
816
817
|
let i = Gt();
|
817
|
-
if (K && !await
|
818
|
+
if (K && !await Li(i)) {
|
818
819
|
console.warn("Document capture - document not detected! Resetting capture.");
|
819
820
|
return;
|
820
821
|
}
|
@@ -822,12 +823,12 @@ function ga(a, e, t) {
|
|
822
823
|
let D = [];
|
823
824
|
try {
|
824
825
|
const w = i.toDataURL("image/jpeg").split(",");
|
825
|
-
v(ze,
|
826
|
+
v(ze, ue = w[0], ue), v(zt, k = w[1], k), v(Ve, x = w[1], x), D = [
|
826
827
|
{
|
827
828
|
bodyPart: "DOCUMENT",
|
828
829
|
data: x
|
829
830
|
}
|
830
|
-
], v(ye, P =
|
831
|
+
], v(ye, P = re.OK, P), window.dispatchEvent(new CustomEvent(
|
831
832
|
"document-unconformities-validated",
|
832
833
|
{
|
833
834
|
detail: { bodyParts: D, status: P }
|
@@ -835,8 +836,8 @@ function ga(a, e, t) {
|
|
835
836
|
));
|
836
837
|
} catch (w) {
|
837
838
|
console.error(w);
|
838
|
-
let N, z =
|
839
|
-
w instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(w.message) && (v(ye, P =
|
839
|
+
let N, z = Fi.DOCUMENT_NOT_FOUND, B = [];
|
840
|
+
w instanceof Error && ["DOCUMENT_NOT_FOUND"].includes(w.message) && (v(ye, P = re.TEMPLATE_EXTRACTION_ERROR, P), N = w.message, B = [
|
840
841
|
{
|
841
842
|
bodyPart: "DOCUMENT",
|
842
843
|
data: x,
|
@@ -846,7 +847,7 @@ function ga(a, e, t) {
|
|
846
847
|
"document-unconformities-validated",
|
847
848
|
{
|
848
849
|
detail: {
|
849
|
-
bodyParts:
|
850
|
+
bodyParts: B,
|
850
851
|
errorCode: N,
|
851
852
|
translatedError: De(z),
|
852
853
|
status: P
|
@@ -868,34 +869,34 @@ function ga(a, e, t) {
|
|
868
869
|
}
|
869
870
|
async function Ze(i) {
|
870
871
|
if (!ke) {
|
871
|
-
v(
|
872
|
+
v(G, n = W.CAMERA_ORIENTATION_PORTRAIT, n);
|
872
873
|
return;
|
873
874
|
}
|
874
|
-
await
|
875
|
+
await Ut();
|
875
876
|
try {
|
876
|
-
let { stream: D, deviceId: w, width: N, height: z, aspectRatio:
|
877
|
-
if (v(
|
877
|
+
let { stream: D, deviceId: w, width: N, height: z, aspectRatio: B } = await kt(H.width, H.height, d, i);
|
878
|
+
if (v(Ye, y = D, y), H.aspectRatio = B || N / z, H.aspectRatio > 1 && N < H.width || H.aspectRatio < 1 && z < H.width) {
|
878
879
|
H.width = N, H.height = N / 1.7777, y.getTracks()?.forEach((We) => We?.stop());
|
879
|
-
const { stream: Pe } = await
|
880
|
-
v(
|
880
|
+
const { stream: Pe } = await kt(H.width, H.height, d, i);
|
881
|
+
v(Ye, y = Pe, y);
|
881
882
|
}
|
882
|
-
v(
|
883
|
+
v(de, h = w || l[0].deviceId, h);
|
883
884
|
} catch (D) {
|
884
885
|
const w = D;
|
885
886
|
fe = !0;
|
886
887
|
const N = Me(D) && D.constraint ? D.constraint : "";
|
887
|
-
console.error(w, N), Me(w) && "message" in w && w.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), v(
|
888
|
+
console.error(w, N), Me(w) && "message" in w && w.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), v(G, n = W.CAMERA_DENIED_ERROR, n)), Me(w) && "message" in w && w.message.includes("Requested device not found") && v(G, n = W.DEVICE_NOT_FOUND_ERROR, n), (N.includes("width") || N.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${N})`), v(G, n = W.CAMERA_UNSUPPORTED, n));
|
888
889
|
}
|
889
890
|
}
|
890
|
-
async function
|
891
|
-
v(
|
891
|
+
async function ie() {
|
892
|
+
v(de, h = "", h), await Ze();
|
892
893
|
}
|
893
|
-
function
|
894
|
+
function Bt() {
|
894
895
|
navigator.mediaDevices.ondevicechange = async (i) => {
|
895
|
-
await
|
896
|
+
await Rt(), n !== W.OK ? await ie() : y.active || (qe(), v(G, n = W.DEVICE_NOT_FOUND_ERROR, n));
|
896
897
|
};
|
897
898
|
}
|
898
|
-
function
|
899
|
+
function _t() {
|
899
900
|
v(be, r = !1, r);
|
900
901
|
const i = (/* @__PURE__ */ new Date()).getTime();
|
901
902
|
i - Re > 5e3 ? (Re = i, v(Ce, O = "docCollector.docWasNotFound", O)) : Ee || (Ee = !0, setTimeout(
|
@@ -906,23 +907,23 @@ function ga(a, e, t) {
|
|
906
907
|
));
|
907
908
|
}
|
908
909
|
function Gt() {
|
909
|
-
const i = c.videoWidth, D = c.videoHeight, w =
|
910
|
-
z.width = w, z.height = N,
|
911
|
-
const Pe = z.width / c.videoWidth, We = z.height / c.videoHeight,
|
912
|
-
|
913
|
-
const Be =
|
914
|
-
return Be?.clearRect(0, 0,
|
910
|
+
const i = c.videoWidth, D = c.videoHeight, w = Ht.width, N = D / i * w, z = document.createElement("canvas"), B = z.getContext("2d");
|
911
|
+
z.width = w, z.height = N, B && ga(B, _, z);
|
912
|
+
const Pe = z.width / c.videoWidth, We = z.height / c.videoHeight, di = X() ? 0.25 : 0.15, ui = Math.round(z.height * di), Le = C.width * Pe, Fe = C.height * We, Tt = (X() ? 0.15 : 0.2) * Le, At = 0.2 * Fe, gi = (z.width - Le) / 2 - Tt / 2, fi = (z.height - ui - Fe) / 2 - At / 2, He = Le + Tt, Ue = Fe + At, ae = document.createElement("canvas");
|
913
|
+
ae.width = He, ae.height = Ue;
|
914
|
+
const Be = ae.getContext("2d");
|
915
|
+
return Be?.clearRect(0, 0, ae.width, ae.height), Be?.drawImage(z, gi, fi, He, Ue, 0, 0, He, Ue), Be?.save(), ae;
|
915
916
|
}
|
916
|
-
const
|
917
|
+
const Yt = ne.subscribe((i) => {
|
917
918
|
_ && R && (t(6, _.width = i.videoWidth, _), t(6, _.height = i.videoHeight, _), t(7, R.width = i.videoWidth, R), t(7, R.height = i.videoHeight, R));
|
918
|
-
}),
|
919
|
+
}), Qt = Ke.subscribe((i) => {
|
919
920
|
let D = "";
|
920
|
-
if (i.isPersonCloseEnough ? i.isPersonTooclose ? D = "docCollector.moveAwayCamera" : i.isPersonInFrame || (D = "docCollector.stayInFrame") : D = "docCollector.comeCloserCamera", r && Ti(D), !m && b && r && !
|
921
|
-
t(9,
|
921
|
+
if (i.isPersonCloseEnough ? i.isPersonTooclose ? D = "docCollector.moveAwayCamera" : i.isPersonInFrame || (D = "docCollector.stayInFrame") : D = "docCollector.comeCloserCamera", r && Ti(D), !m && b && r && !ce && i.isPersonInFrame && !(!i.isPersonCloseEnough || i.isPersonTooclose)) {
|
922
|
+
t(9, ce = !0), Ct = (/* @__PURE__ */ new Date()).getTime() + 4500;
|
922
923
|
const w = setInterval(
|
923
924
|
async () => {
|
924
925
|
if (!b || m || !i.isPersonCloseEnough || i.isPersonTooclose || !i.isPersonInFrame) {
|
925
|
-
t(9,
|
926
|
+
t(9, ce = !1), setTimeout(
|
926
927
|
() => {
|
927
928
|
},
|
928
929
|
1500
|
@@ -930,34 +931,34 @@ function ga(a, e, t) {
|
|
930
931
|
return;
|
931
932
|
}
|
932
933
|
const N = (/* @__PURE__ */ new Date()).getTime();
|
933
|
-
Math.floor((Ct - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(w), t(9,
|
934
|
+
Math.floor((Ct - N) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(w), t(9, ce = !1), pt());
|
934
935
|
},
|
935
936
|
100
|
936
937
|
);
|
937
938
|
}
|
938
939
|
}), Xt = we.subscribe((i) => {
|
939
|
-
|
940
|
-
}), Vt =
|
941
|
-
_ && i && (console.log("setting null in video srcObject"), t(6, _.srcObject = null, _), t(6, _.src = "", _), v(
|
940
|
+
Q && (i ? (Q.classList.remove("flex"), Q.classList.add("hidden")) : (Q.classList.add("flex"), Q.classList.remove("hidden")));
|
941
|
+
}), Vt = Qe.subscribe((i) => {
|
942
|
+
_ && i && (console.log("setting null in video srcObject"), t(6, _.srcObject = null, _), t(6, _.src = "", _), v(de, h = null, h));
|
942
943
|
});
|
943
944
|
Je.subscribe(async (i) => {
|
944
|
-
i === $e.Document && await
|
945
|
+
i === $e.Document && await Rt();
|
945
946
|
});
|
946
|
-
const Jt =
|
947
|
+
const Jt = de.subscribe(async (i) => {
|
947
948
|
if (!(!y || !i))
|
948
949
|
try {
|
949
950
|
const D = await Ai(H.width, H.height, i);
|
950
|
-
t(6, _.srcObject = y, _), v(
|
951
|
+
t(6, _.srcObject = y, _), v(Qe, Z = !1, Z), y.getTracks().forEach((w) => {
|
951
952
|
w.readyState === "live" && console.log(`Camera ${w.label} opened successfully!`);
|
952
|
-
}), v(
|
953
|
+
}), v(G, n = W.OK, n), Oi(_);
|
953
954
|
} catch (D) {
|
954
955
|
const w = D;
|
955
|
-
fe = !0, Me(w) && "message" in w && w.message.includes("Requested device not found") && v(
|
956
|
+
fe = !0, Me(w) && "message" in w && w.message.includes("Requested device not found") && v(G, n = W.DEVICE_NOT_FOUND_ERROR, n);
|
956
957
|
}
|
957
958
|
}), xt = Je.subscribe(async (i) => {
|
958
|
-
i === $e.Document && !It && !m &&
|
959
|
+
i === $e.Document && !It && !m && da && await Mt();
|
959
960
|
}), Kt = ge.subscribe(async (i) => {
|
960
|
-
i &&
|
961
|
+
i && Dt();
|
961
962
|
}), qt = ve.subscribe((i) => {
|
962
963
|
i && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
963
964
|
}), $t = Ni.subscribe(async (i) => {
|
@@ -967,37 +968,37 @@ function ga(a, e, t) {
|
|
967
968
|
await Ze(N);
|
968
969
|
return;
|
969
970
|
}
|
970
|
-
i ? (v(Ie,
|
971
|
+
i ? (v(Ie, d = xe.FRONT_CAMERA, d), await ie()) : (v(Ie, d = xe.REAR_CAMERA, d), await ie());
|
971
972
|
}
|
972
973
|
}), ei = zi.subscribe(async (i) => {
|
973
|
-
!i.isSupported || !X() || f != "DOCUMENT" || (ke = i.orientation.includes("portrait"), ke ? _ && !
|
974
|
+
!i.isSupported || !X() || f != "DOCUMENT" || (ke = i.orientation.includes("portrait"), ke ? _ && !u ? await ie() : v(G, n = W.OK, n) : v(G, n = W.CAMERA_ORIENTATION_PORTRAIT, n));
|
974
975
|
});
|
975
|
-
async function
|
976
|
+
async function Dt() {
|
976
977
|
let i;
|
977
978
|
try {
|
978
979
|
if (je >= ua) {
|
979
980
|
je = 0;
|
980
|
-
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-RC05.js");
|
981
982
|
let N;
|
982
983
|
if (N = w.detectSingleFace(_, D), i = await N.withFaceLandmarks(), R.getContext("2d")?.clearRect(0, 0, R.width, R.height), i != null) {
|
983
|
-
const z =
|
984
|
+
const z = Yi(R, _, !0);
|
984
985
|
ki(R, _, z);
|
985
|
-
const
|
986
|
-
Ri(
|
986
|
+
const B = Qi(i, z);
|
987
|
+
Ri(B) ? (Ei(B, R, Te, !0), v(be, r = !0, r), Re = (/* @__PURE__ */ new Date()).getTime()) : _t();
|
987
988
|
} else
|
988
|
-
|
989
|
+
_t();
|
989
990
|
} else
|
990
991
|
je++;
|
991
992
|
} catch (D) {
|
992
993
|
console.warn(`FaceapiLoop: ${D}`);
|
993
994
|
} finally {
|
994
|
-
|
995
|
+
o && pe(_, Dt);
|
995
996
|
}
|
996
997
|
}
|
997
998
|
Ge.subscribe(async (i) => {
|
998
999
|
i && (me(), v(Ge, s = !1, s));
|
999
|
-
}),
|
1000
|
-
console.log("Destroying document collector"), qe(), Xt(),
|
1000
|
+
}), Si(() => {
|
1001
|
+
console.log("Destroying document collector"), qe(), Xt(), Qt(), Yt(), Vt(), Jt(), xt(), clearInterval(wt), Kt(), $t(), qt(), ei(), wt = 0;
|
1001
1002
|
});
|
1002
1003
|
function ti(i) {
|
1003
1004
|
et[i ? "unshift" : "push"](() => {
|
@@ -1015,11 +1016,11 @@ function ga(a, e, t) {
|
|
1015
1016
|
const si = () => Se(), oi = () => me();
|
1016
1017
|
function ni(i) {
|
1017
1018
|
et[i ? "unshift" : "push"](() => {
|
1018
|
-
|
1019
|
+
Q = i, t(8, Q);
|
1019
1020
|
});
|
1020
1021
|
}
|
1021
1022
|
const ri = () => Se(), li = () => me(), ci = async () => {
|
1022
|
-
await
|
1023
|
+
await ie();
|
1023
1024
|
};
|
1024
1025
|
return a.$$set = (i) => {
|
1025
1026
|
"enableMinutiae" in i && t(28, Te = i.enableMinutiae), "videoDimensions" in i && t(29, Ae = i.videoDimensions), "noTabs" in i && t(30, Oe = i.noTabs), "weightsPath" in i && t(31, Ne = i.weightsPath), "showUnconformities" in i && t(0, ft = i.showUnconformities), "showConfigButton" in i && t(1, ht = i.showConfigButton), "showCameraButton" in i && t(2, mt = i.showCameraButton), "videoOverlay" in i && t(3, bt = i.videoOverlay), "videoOverlayTransparency" in i && t(4, vt = i.videoOverlayTransparency);
|
@@ -1032,10 +1033,10 @@ function ga(a, e, t) {
|
|
1032
1033
|
he,
|
1033
1034
|
_,
|
1034
1035
|
R,
|
1035
|
-
|
1036
|
-
|
1037
|
-
|
1038
|
-
|
1036
|
+
Q,
|
1037
|
+
ce,
|
1038
|
+
n,
|
1039
|
+
u,
|
1039
1040
|
c,
|
1040
1041
|
m,
|
1041
1042
|
A,
|
@@ -1043,15 +1044,15 @@ function ga(a, e, t) {
|
|
1043
1044
|
k,
|
1044
1045
|
P,
|
1045
1046
|
De,
|
1046
|
-
|
1047
|
-
ut,
|
1047
|
+
ue,
|
1048
1048
|
dt,
|
1049
|
+
ut,
|
1049
1050
|
ge,
|
1050
1051
|
ze,
|
1051
1052
|
pt,
|
1052
1053
|
Se,
|
1053
1054
|
me,
|
1054
|
-
|
1055
|
+
ie,
|
1055
1056
|
Te,
|
1056
1057
|
Ae,
|
1057
1058
|
Oe,
|
@@ -1067,7 +1068,7 @@ function ga(a, e, t) {
|
|
1067
1068
|
ci
|
1068
1069
|
];
|
1069
1070
|
}
|
1070
|
-
class
|
1071
|
+
class ha extends st {
|
1071
1072
|
constructor(e) {
|
1072
1073
|
super(), ot(
|
1073
1074
|
this,
|
@@ -1076,8 +1077,8 @@ class fa extends st {
|
|
1076
1077
|
props: rt(this.attributes),
|
1077
1078
|
customElement: !0
|
1078
1079
|
},
|
1079
|
-
|
1080
|
-
|
1080
|
+
fa,
|
1081
|
+
ca,
|
1081
1082
|
nt,
|
1082
1083
|
{
|
1083
1084
|
enableMinutiae: 28,
|
@@ -1167,7 +1168,7 @@ class fa extends st {
|
|
1167
1168
|
return this.$$.ctx[5];
|
1168
1169
|
}
|
1169
1170
|
}
|
1170
|
-
customElements.define("document-collector",
|
1171
|
+
customElements.define("document-collector", ha);
|
1171
1172
|
export {
|
1172
|
-
|
1173
|
+
ha as default
|
1173
1174
|
};
|