bry-biometric-collector 3.3.0-RC06 → 3.3.0-RC08
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +37 -1
- package/dist/CaptureBar_4b9ad872_3.3.0-RC08.js +847 -0
- package/dist/{DocumentCollector_ec54949a_3.3.0-RC06.js → DocumentCollector_a923befb_3.3.0-RC08.js} +110 -109
- package/dist/FaceCollector_28b0cb2f_3.3.0-RC08.js +2260 -0
- package/dist/FaceOval_ff5ff03f_3.3.0-RC08.js +212 -0
- package/dist/StreamCollector_a93fe7be_3.3.0-RC08.js +349 -0
- package/dist/ValidationAlert_7af02ba2_3.3.0-RC08.js +974 -0
- package/dist/{___vite-browser-external_commonjs-proxy_ed53a62c_3.3.0-RC06.js → ___vite-browser-external_commonjs-proxy_91447072_3.3.0-RC08.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{en-us_e83efd5d_3.3.0-RC06.js → en-us_c02e99cd_3.3.0-RC08.js} +3 -2
- package/dist/{es-cl_5939150a_3.3.0-RC06.js → es-cl_6f3eda53_3.3.0-RC08.js} +3 -2
- package/dist/{fingersApi_e3b0a904_3.3.0-RC06.js → fingersApi_b51da3fa_3.3.0-RC08.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_10ec837c_3.3.0-RC06.js → index_494f9d08_3.3.0-RC08.js} +3 -3
- package/dist/{index_2611392a_3.3.0-RC06.js → index_8edd0e4d_3.3.0-RC08.js} +3 -3
- package/dist/{main_1dfbf19c_3.3.0-RC06.js → main_e5443c19_3.3.0-RC08.js} +6260 -6109
- package/dist/{pt-br_fae15356_3.3.0-RC06.js → pt-br_e7d46668_3.3.0-RC08.js} +9 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/FaceCollector_d7b7f7c7_3.3.0-RC06.js +0 -2390
- package/dist/ValidationAlert_ac046013_3.3.0-RC06.js +0 -1657
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC06.js → face_api_0e3ce8c8_3.3.0-RC08.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC06.js → index-idlf-detector_39cfdffa_3.3.0-RC08.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC06.js → index-idlf-detector_a819b3c8_3.3.0-RC08.js} +0 -0
|
@@ -1,2390 +0,0 @@
|
|
|
1
|
-
import { w as Gt, S as mt, x as _t, y as bt, z as gt, B as R, C as W, D as p, E as X, G as m, H, I as Je, J as Q, K as Qe, L as I, M as D, N as ze, O as qe, P as fe, Q as _, R as he, T as me, U as _e, V as j, W as V, X as N, Y as Gi, $ as Yi, Z as Zi, _ as q, a0 as Fs, a1 as Fe, a2 as P, a3 as Xe, a4 as Zt, a5 as g, a6 as M, a7 as Wt, a8 as Mt, a9 as it, aa as Ns, ab as st, ac as pe, ad as Ps, ae as Le, af as Ut, ag as yi, ah as Bs, ai as je, aj as ke, ak as Ws, al as Ms, am as Vt, an as zt, ao as de, ap as ee, aq as Te, ar as ki, as as jt, at, au as Kt, av as Us, aw as nt, ax as Ti, ay as Oi, az as Vs, aA as zs, aB as js, aC as Ks, f as Ri, aD as Hs, aE as qs, aF as Js, aG as Ht, aH as K, m as dt, aI as qt, aJ as Qs, l as ie, aK as Di, aL as Xs, aM as ot, aN as lt, aO as Ii, aP as Gs, aQ as rt, A as Jt, aR as Oe, aS as Ys, aT as Ke, aU as Zs, aV as Ai, e as Se, aW as Qt, aX as ct, aY as xs, aZ as Xt, a_ as $s, a$ as ea, b0 as ta, b1 as ia, b2 as sa, b3 as aa, b4 as He, b5 as na, b6 as oa, b7 as ut, b8 as oe, b9 as vt, ba as la, bb as ra, d as Li, bc as ca, bd as ft, be as se, bf as ua, bg as fa, bh as Si, bi as xi, bj as ht, bk as da } from "./main_1dfbf19c_3.3.0-RC06.js";
|
|
2
|
-
import { W as ha, C as ma, V as _a, a as ba } from "./ValidationAlert_ac046013_3.3.0-RC06.js";
|
|
3
|
-
import { detectSingleFace as ga, matchDimensions as va, resizeResults as pa } from "./face_api_0e3ce8c8_3.3.0-RC06.js";
|
|
4
|
-
const Yt = Gt(!1);
|
|
5
|
-
class wa {
|
|
6
|
-
isDevToolsOpen = !1;
|
|
7
|
-
detectionCount = 0;
|
|
8
|
-
checkSizeTimeout = null;
|
|
9
|
-
detectionInterval = null;
|
|
10
|
-
detectDevToolsBySize() {
|
|
11
|
-
const e = window.outerWidth - window.innerWidth > 200, t = window.outerHeight - window.innerHeight > 200;
|
|
12
|
-
return e || t;
|
|
13
|
-
}
|
|
14
|
-
checkForDevTools = () => {
|
|
15
|
-
this.detectDevToolsBySize() ? (this.detectionCount++, this.detectionCount >= 2 && !this.isDevToolsOpen && (this.isDevToolsOpen = !0, Yt.set(this.isDevToolsOpen))) : (this.detectionCount = 0, this.isDevToolsOpen && (this.isDevToolsOpen = !1, Yt.set(this.isDevToolsOpen)));
|
|
16
|
-
};
|
|
17
|
-
startDetection() {
|
|
18
|
-
this.stopDetection(), window.addEventListener("resize", () => {
|
|
19
|
-
this.checkSizeTimeout && clearTimeout(this.checkSizeTimeout), this.checkSizeTimeout = window.setTimeout(this.checkForDevTools, 500);
|
|
20
|
-
}), window.addEventListener("focus", () => setTimeout(this.checkForDevTools, 300)), this.detectionInterval = window.setInterval(this.checkForDevTools, 1e3), this.checkForDevTools();
|
|
21
|
-
}
|
|
22
|
-
stopDetection() {
|
|
23
|
-
this.detectionInterval && (clearInterval(this.detectionInterval), this.detectionInterval = null), this.checkSizeTimeout && (clearTimeout(this.checkSizeTimeout), this.checkSizeTimeout = null);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
function Fi(i) {
|
|
27
|
-
let e, t;
|
|
28
|
-
return e = new ha({}), {
|
|
29
|
-
c() {
|
|
30
|
-
he(e.$$.fragment);
|
|
31
|
-
},
|
|
32
|
-
m(a, o) {
|
|
33
|
-
me(e, a, o), t = !0;
|
|
34
|
-
},
|
|
35
|
-
i(a) {
|
|
36
|
-
t || (H(e.$$.fragment, a), t = !0);
|
|
37
|
-
},
|
|
38
|
-
o(a) {
|
|
39
|
-
Q(e.$$.fragment, a), t = !1;
|
|
40
|
-
},
|
|
41
|
-
d(a) {
|
|
42
|
-
_e(e, a);
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function Ca(i) {
|
|
47
|
-
let e, t, a, o = (
|
|
48
|
-
/*showWatermark*/
|
|
49
|
-
i[1] && Fi()
|
|
50
|
-
);
|
|
51
|
-
return {
|
|
52
|
-
c() {
|
|
53
|
-
e = p("div"), o && o.c(), this.c = X, m(e, "id", "face-oval"), m(e, "class", t = "loader " + /*loading*/
|
|
54
|
-
(i[0] ? "loading" : "") + " z-10"), m(
|
|
55
|
-
e,
|
|
56
|
-
"style",
|
|
57
|
-
/*styleVars*/
|
|
58
|
-
i[2]
|
|
59
|
-
);
|
|
60
|
-
},
|
|
61
|
-
m(r, f) {
|
|
62
|
-
R(r, e, f), o && o.m(e, null), a = !0;
|
|
63
|
-
},
|
|
64
|
-
p(r, [f]) {
|
|
65
|
-
/*showWatermark*/
|
|
66
|
-
r[1] ? o ? f & /*showWatermark*/
|
|
67
|
-
2 && H(o, 1) : (o = Fi(), o.c(), H(o, 1), o.m(e, null)) : o && (Je(), Q(o, 1, 1, () => {
|
|
68
|
-
o = null;
|
|
69
|
-
}), Qe()), (!a || f & /*loading*/
|
|
70
|
-
1 && t !== (t = "loader " + /*loading*/
|
|
71
|
-
(r[0] ? "loading" : "") + " z-10")) && m(e, "class", t), (!a || f & /*styleVars*/
|
|
72
|
-
4) && m(
|
|
73
|
-
e,
|
|
74
|
-
"style",
|
|
75
|
-
/*styleVars*/
|
|
76
|
-
r[2]
|
|
77
|
-
);
|
|
78
|
-
},
|
|
79
|
-
i(r) {
|
|
80
|
-
a || (H(o), a = !0);
|
|
81
|
-
},
|
|
82
|
-
o(r) {
|
|
83
|
-
Q(o), a = !1;
|
|
84
|
-
},
|
|
85
|
-
d(r) {
|
|
86
|
-
r && I(e), o && o.d();
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
const Ea = "hsl(var(--p))", ya = "hsl(var(--su))";
|
|
91
|
-
function ka(i, e, t) {
|
|
92
|
-
let a, o, r;
|
|
93
|
-
D(i, ze, (h) => t(8, o = h)), D(i, qe, (h) => t(9, r = h));
|
|
94
|
-
let { loading: f } = e, { showWatermark: n } = e, l, u, c = 0.8, d = 8, b = 0.15;
|
|
95
|
-
return fe() && (c = 0.65, d = 10, b = 0.25), i.$$set = (h) => {
|
|
96
|
-
"loading" in h && t(0, f = h.loading), "showWatermark" in h && t(1, n = h.showWatermark);
|
|
97
|
-
}, i.$$.update = () => {
|
|
98
|
-
if (i.$$.dirty & /*$videoStore, percentage, ovalHeight, ovalWidth, $ovalDimensions, captureBarPercentage*/
|
|
99
|
-
952 && r) {
|
|
100
|
-
t(4, u = r.videoHeight * c), t(3, l = u / 1.45), _(ze, o.width = l, o), _(ze, o.height = u, o), _(ze, o.x = (r.videoWidth - o.width) / 2, o);
|
|
101
|
-
let h = r.videoHeight - r.videoHeight * b;
|
|
102
|
-
_(ze, o.y = h - o.height, o);
|
|
103
|
-
}
|
|
104
|
-
i.$$.dirty & /*ovalWidth, ovalHeight, borderWidth*/
|
|
105
|
-
88 && t(2, a = `
|
|
106
|
-
--oval-width: ${l}px;
|
|
107
|
-
--oval-height: ${u}px;
|
|
108
|
-
--border-color: ${Ea};
|
|
109
|
-
--border-color-animation: ${ya};
|
|
110
|
-
--oval-border: ${d}px;
|
|
111
|
-
`);
|
|
112
|
-
}, [
|
|
113
|
-
f,
|
|
114
|
-
n,
|
|
115
|
-
a,
|
|
116
|
-
l,
|
|
117
|
-
u,
|
|
118
|
-
c,
|
|
119
|
-
d,
|
|
120
|
-
b,
|
|
121
|
-
o,
|
|
122
|
-
r
|
|
123
|
-
];
|
|
124
|
-
}
|
|
125
|
-
class $i extends mt {
|
|
126
|
-
constructor(e) {
|
|
127
|
-
super(), _t(
|
|
128
|
-
this,
|
|
129
|
-
{
|
|
130
|
-
target: this.shadowRoot,
|
|
131
|
-
props: gt(this.attributes),
|
|
132
|
-
customElement: !0
|
|
133
|
-
},
|
|
134
|
-
ka,
|
|
135
|
-
Ca,
|
|
136
|
-
bt,
|
|
137
|
-
{ loading: 0, showWatermark: 1 },
|
|
138
|
-
null
|
|
139
|
-
), e && (e.target && R(e.target, this, e.anchor), e.props && (this.$set(e.props), W()));
|
|
140
|
-
}
|
|
141
|
-
static get observedAttributes() {
|
|
142
|
-
return ["loading", "showWatermark"];
|
|
143
|
-
}
|
|
144
|
-
get loading() {
|
|
145
|
-
return this.$$.ctx[0];
|
|
146
|
-
}
|
|
147
|
-
set loading(e) {
|
|
148
|
-
this.$$set({ loading: e }), W();
|
|
149
|
-
}
|
|
150
|
-
get showWatermark() {
|
|
151
|
-
return this.$$.ctx[1];
|
|
152
|
-
}
|
|
153
|
-
set showWatermark(e) {
|
|
154
|
-
this.$$set({ showWatermark: e }), W();
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
customElements.define("face-oval", $i);
|
|
158
|
-
function Ta(i) {
|
|
159
|
-
let e;
|
|
160
|
-
return {
|
|
161
|
-
c() {
|
|
162
|
-
e = p("div"), this.c = X, m(e, "class", "video-overlay z-0"), m(
|
|
163
|
-
e,
|
|
164
|
-
"style",
|
|
165
|
-
/*styleVars*/
|
|
166
|
-
i[0]
|
|
167
|
-
);
|
|
168
|
-
},
|
|
169
|
-
m(t, a) {
|
|
170
|
-
R(t, e, a);
|
|
171
|
-
},
|
|
172
|
-
p(t, [a]) {
|
|
173
|
-
a & /*styleVars*/
|
|
174
|
-
1 && m(
|
|
175
|
-
e,
|
|
176
|
-
"style",
|
|
177
|
-
/*styleVars*/
|
|
178
|
-
t[0]
|
|
179
|
-
);
|
|
180
|
-
},
|
|
181
|
-
i: X,
|
|
182
|
-
o: X,
|
|
183
|
-
d(t) {
|
|
184
|
-
t && I(e);
|
|
185
|
-
}
|
|
186
|
-
};
|
|
187
|
-
}
|
|
188
|
-
function Oa(i, e, t) {
|
|
189
|
-
let a, o;
|
|
190
|
-
D(i, qe, (c) => t(6, o = c));
|
|
191
|
-
let r, f, n = 0.8, { overlayColor: l } = e, { overlayTransparency: u } = e;
|
|
192
|
-
return fe() && (n = 0.65), i.$$set = (c) => {
|
|
193
|
-
"overlayColor" in c && t(1, l = c.overlayColor), "overlayTransparency" in c && t(2, u = c.overlayTransparency);
|
|
194
|
-
}, i.$$.update = () => {
|
|
195
|
-
i.$$.dirty & /*$videoStore, percentage, ovalHeight*/
|
|
196
|
-
112 && o && (t(4, f = o.videoHeight * n), t(3, r = f / 1.45)), i.$$.dirty & /*ovalWidth, ovalHeight, overlayColor, overlayTransparency*/
|
|
197
|
-
30 && t(0, a = `
|
|
198
|
-
--oval-width: ${r}px;
|
|
199
|
-
--oval-height: ${f}px;
|
|
200
|
-
--overlay-color: ${l};
|
|
201
|
-
--overlay-transparency: ${u};
|
|
202
|
-
`);
|
|
203
|
-
}, [
|
|
204
|
-
a,
|
|
205
|
-
l,
|
|
206
|
-
u,
|
|
207
|
-
r,
|
|
208
|
-
f,
|
|
209
|
-
n,
|
|
210
|
-
o
|
|
211
|
-
];
|
|
212
|
-
}
|
|
213
|
-
class es extends mt {
|
|
214
|
-
constructor(e) {
|
|
215
|
-
super(), _t(
|
|
216
|
-
this,
|
|
217
|
-
{
|
|
218
|
-
target: this.shadowRoot,
|
|
219
|
-
props: gt(this.attributes),
|
|
220
|
-
customElement: !0
|
|
221
|
-
},
|
|
222
|
-
Oa,
|
|
223
|
-
Ta,
|
|
224
|
-
bt,
|
|
225
|
-
{ overlayColor: 1, overlayTransparency: 2 },
|
|
226
|
-
null
|
|
227
|
-
), e && (e.target && R(e.target, this, e.anchor), e.props && (this.$set(e.props), W()));
|
|
228
|
-
}
|
|
229
|
-
static get observedAttributes() {
|
|
230
|
-
return ["overlayColor", "overlayTransparency"];
|
|
231
|
-
}
|
|
232
|
-
get overlayColor() {
|
|
233
|
-
return this.$$.ctx[1];
|
|
234
|
-
}
|
|
235
|
-
set overlayColor(e) {
|
|
236
|
-
this.$$set({ overlayColor: e }), W();
|
|
237
|
-
}
|
|
238
|
-
get overlayTransparency() {
|
|
239
|
-
return this.$$.ctx[2];
|
|
240
|
-
}
|
|
241
|
-
set overlayTransparency(e) {
|
|
242
|
-
this.$$set({ overlayTransparency: e }), W();
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
customElements.define("overlay-oval", es);
|
|
246
|
-
function Ni(i) {
|
|
247
|
-
let e, t, a, o, r, f, n = (
|
|
248
|
-
/*$_*/
|
|
249
|
-
i[2]("faceCollector.obtainingPicture") + ""
|
|
250
|
-
), l;
|
|
251
|
-
return {
|
|
252
|
-
c() {
|
|
253
|
-
e = p("slot"), t = p("div"), a = p("img"), r = N(), f = p("span"), l = P(n), Xe(a.src, o = Zt) || m(a, "src", o), m(a, "alt", "loading gif"), m(a, "class", "m-auto h-[10em] lg:h-[12em]"), m(f, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center"), m(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), m(e, "name", "loading-camera-gif"), m(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
|
254
|
-
},
|
|
255
|
-
m(u, c) {
|
|
256
|
-
R(u, e, c), g(e, t), g(t, a), g(t, r), g(t, f), g(f, l);
|
|
257
|
-
},
|
|
258
|
-
p(u, c) {
|
|
259
|
-
c & /*$_*/
|
|
260
|
-
4 && n !== (n = /*$_*/
|
|
261
|
-
u[2]("faceCollector.obtainingPicture") + "") && M(l, n);
|
|
262
|
-
},
|
|
263
|
-
d(u) {
|
|
264
|
-
u && I(e);
|
|
265
|
-
}
|
|
266
|
-
};
|
|
267
|
-
}
|
|
268
|
-
function Pi(i) {
|
|
269
|
-
let e, t, a, o, r, f;
|
|
270
|
-
function n(c, d) {
|
|
271
|
-
return (
|
|
272
|
-
/*$isLoading*/
|
|
273
|
-
c[5] ? Da : Ra
|
|
274
|
-
);
|
|
275
|
-
}
|
|
276
|
-
let l = n(i), u = l(i);
|
|
277
|
-
return {
|
|
278
|
-
c() {
|
|
279
|
-
e = p("div"), t = p("slot"), a = p("div"), o = p("img"), f = N(), u.c(), Xe(o.src, r = Zt) || m(o, "src", r), m(o, "alt", "loading gif"), m(o, "class", "m-auto h-[10em] lg:h-[12em]"), m(a, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), m(t, "name", "loading-camera-gif"), m(t, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]"), m(e, "class", "bg-white absolute inset-0 z-10 flex items-center justify-center");
|
|
280
|
-
},
|
|
281
|
-
m(c, d) {
|
|
282
|
-
R(c, e, d), g(e, t), g(t, a), g(a, o), g(a, f), u.m(a, null);
|
|
283
|
-
},
|
|
284
|
-
p(c, d) {
|
|
285
|
-
l === (l = n(c)) && u ? u.p(c, d) : (u.d(1), u = l(c), u && (u.c(), u.m(a, null)));
|
|
286
|
-
},
|
|
287
|
-
d(c) {
|
|
288
|
-
c && I(e), u.d();
|
|
289
|
-
}
|
|
290
|
-
};
|
|
291
|
-
}
|
|
292
|
-
function Ra(i) {
|
|
293
|
-
let e, t = (
|
|
294
|
-
/*$_*/
|
|
295
|
-
i[2]("faceCollector.obtainingPicture") + ""
|
|
296
|
-
), a;
|
|
297
|
-
return {
|
|
298
|
-
c() {
|
|
299
|
-
e = p("span"), a = P(t), m(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
300
|
-
},
|
|
301
|
-
m(o, r) {
|
|
302
|
-
R(o, e, r), g(e, a);
|
|
303
|
-
},
|
|
304
|
-
p(o, r) {
|
|
305
|
-
r & /*$_*/
|
|
306
|
-
4 && t !== (t = /*$_*/
|
|
307
|
-
o[2]("faceCollector.obtainingPicture") + "") && M(a, t);
|
|
308
|
-
},
|
|
309
|
-
d(o) {
|
|
310
|
-
o && I(e);
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
}
|
|
314
|
-
function Da(i) {
|
|
315
|
-
let e;
|
|
316
|
-
return {
|
|
317
|
-
c() {
|
|
318
|
-
e = p("span"), e.textContent = "Obtaining photo...", m(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
319
|
-
},
|
|
320
|
-
m(t, a) {
|
|
321
|
-
R(t, e, a);
|
|
322
|
-
},
|
|
323
|
-
p: X,
|
|
324
|
-
d(t) {
|
|
325
|
-
t && I(e);
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
|
-
function Bi(i) {
|
|
330
|
-
let e, t, a, o, r;
|
|
331
|
-
function f(u, c) {
|
|
332
|
-
return (
|
|
333
|
-
/*$isLoading*/
|
|
334
|
-
u[5] ? Aa : Ia
|
|
335
|
-
);
|
|
336
|
-
}
|
|
337
|
-
let n = f(i), l = n(i);
|
|
338
|
-
return {
|
|
339
|
-
c() {
|
|
340
|
-
e = p("slot"), t = p("div"), a = p("img"), r = N(), l.c(), Xe(a.src, o = Zt) || m(a, "src", o), m(a, "alt", "loading gif"), m(a, "class", "m-auto h-[10em] lg:h-[12em]"), m(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), m(e, "name", "loading-camera-gif"), m(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
|
341
|
-
},
|
|
342
|
-
m(u, c) {
|
|
343
|
-
R(u, e, c), g(e, t), g(t, a), g(t, r), l.m(t, null);
|
|
344
|
-
},
|
|
345
|
-
p(u, c) {
|
|
346
|
-
n === (n = f(u)) && l ? l.p(u, c) : (l.d(1), l = n(u), l && (l.c(), l.m(t, null)));
|
|
347
|
-
},
|
|
348
|
-
d(u) {
|
|
349
|
-
u && I(e), l.d();
|
|
350
|
-
}
|
|
351
|
-
};
|
|
352
|
-
}
|
|
353
|
-
function Ia(i) {
|
|
354
|
-
let e, t = (
|
|
355
|
-
/*$_*/
|
|
356
|
-
i[2]("faceCollector.initiatingCamera") + ""
|
|
357
|
-
), a;
|
|
358
|
-
return {
|
|
359
|
-
c() {
|
|
360
|
-
e = p("span"), a = P(t), m(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
361
|
-
},
|
|
362
|
-
m(o, r) {
|
|
363
|
-
R(o, e, r), g(e, a);
|
|
364
|
-
},
|
|
365
|
-
p(o, r) {
|
|
366
|
-
r & /*$_*/
|
|
367
|
-
4 && t !== (t = /*$_*/
|
|
368
|
-
o[2]("faceCollector.initiatingCamera") + "") && M(a, t);
|
|
369
|
-
},
|
|
370
|
-
d(o) {
|
|
371
|
-
o && I(e);
|
|
372
|
-
}
|
|
373
|
-
};
|
|
374
|
-
}
|
|
375
|
-
function Aa(i) {
|
|
376
|
-
let e;
|
|
377
|
-
return {
|
|
378
|
-
c() {
|
|
379
|
-
e = p("span"), e.textContent = "Loading camera...", m(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
|
380
|
-
},
|
|
381
|
-
m(t, a) {
|
|
382
|
-
R(t, e, a);
|
|
383
|
-
},
|
|
384
|
-
p: X,
|
|
385
|
-
d(t) {
|
|
386
|
-
t && I(e);
|
|
387
|
-
}
|
|
388
|
-
};
|
|
389
|
-
}
|
|
390
|
-
function La(i) {
|
|
391
|
-
let e = j() && /*waitingIdrndCaptureEvent*/
|
|
392
|
-
i[0], t, a, o = (j() && /*idrndLoading*/
|
|
393
|
-
(i[1] || !/*$ready*/
|
|
394
|
-
i[6]) || !j() && !/*$ready*/
|
|
395
|
-
i[6]) && /*$cameraStatusStore*/
|
|
396
|
-
i[4] === V.OK, r, f = e && Ni(i), n = (
|
|
397
|
-
/*$detectingFace*/
|
|
398
|
-
i[3] && /*$cameraStatusStore*/
|
|
399
|
-
i[4] === V.OK && Pi(i)
|
|
400
|
-
), l = o && Bi(i);
|
|
401
|
-
return {
|
|
402
|
-
c() {
|
|
403
|
-
f && f.c(), t = N(), n && n.c(), a = N(), l && l.c(), r = Gi(), this.c = X;
|
|
404
|
-
},
|
|
405
|
-
m(u, c) {
|
|
406
|
-
f && f.m(u, c), R(u, t, c), n && n.m(u, c), R(u, a, c), l && l.m(u, c), R(u, r, c);
|
|
407
|
-
},
|
|
408
|
-
p(u, [c]) {
|
|
409
|
-
c & /*waitingIdrndCaptureEvent*/
|
|
410
|
-
1 && (e = j() && /*waitingIdrndCaptureEvent*/
|
|
411
|
-
u[0]), e ? f ? f.p(u, c) : (f = Ni(u), f.c(), f.m(t.parentNode, t)) : f && (f.d(1), f = null), /*$detectingFace*/
|
|
412
|
-
u[3] && /*$cameraStatusStore*/
|
|
413
|
-
u[4] === V.OK ? n ? n.p(u, c) : (n = Pi(u), n.c(), n.m(a.parentNode, a)) : n && (n.d(1), n = null), c & /*idrndLoading, $ready, $cameraStatusStore*/
|
|
414
|
-
82 && (o = (j() && /*idrndLoading*/
|
|
415
|
-
(u[1] || !/*$ready*/
|
|
416
|
-
u[6]) || !j() && !/*$ready*/
|
|
417
|
-
u[6]) && /*$cameraStatusStore*/
|
|
418
|
-
u[4] === V.OK), o ? l ? l.p(u, c) : (l = Bi(u), l.c(), l.m(r.parentNode, r)) : l && (l.d(1), l = null);
|
|
419
|
-
},
|
|
420
|
-
i: X,
|
|
421
|
-
o: X,
|
|
422
|
-
d(u) {
|
|
423
|
-
f && f.d(u), u && I(t), n && n.d(u), u && I(a), l && l.d(u), u && I(r);
|
|
424
|
-
}
|
|
425
|
-
};
|
|
426
|
-
}
|
|
427
|
-
function Sa(i, e, t) {
|
|
428
|
-
let a, o, r, f, n;
|
|
429
|
-
D(i, Yi, (c) => t(2, a = c)), D(i, Zi, (c) => t(3, o = c)), D(i, q, (c) => t(4, r = c)), D(i, Fs, (c) => t(5, f = c)), D(i, Fe, (c) => t(6, n = c));
|
|
430
|
-
let { waitingIdrndCaptureEvent: l } = e, { idrndLoading: u } = e;
|
|
431
|
-
return i.$$set = (c) => {
|
|
432
|
-
"waitingIdrndCaptureEvent" in c && t(0, l = c.waitingIdrndCaptureEvent), "idrndLoading" in c && t(1, u = c.idrndLoading);
|
|
433
|
-
}, [
|
|
434
|
-
l,
|
|
435
|
-
u,
|
|
436
|
-
a,
|
|
437
|
-
o,
|
|
438
|
-
r,
|
|
439
|
-
f,
|
|
440
|
-
n
|
|
441
|
-
];
|
|
442
|
-
}
|
|
443
|
-
class ts extends mt {
|
|
444
|
-
constructor(e) {
|
|
445
|
-
super(), _t(
|
|
446
|
-
this,
|
|
447
|
-
{
|
|
448
|
-
target: this.shadowRoot,
|
|
449
|
-
props: gt(this.attributes),
|
|
450
|
-
customElement: !0
|
|
451
|
-
},
|
|
452
|
-
Sa,
|
|
453
|
-
La,
|
|
454
|
-
bt,
|
|
455
|
-
{
|
|
456
|
-
waitingIdrndCaptureEvent: 0,
|
|
457
|
-
idrndLoading: 1
|
|
458
|
-
},
|
|
459
|
-
null
|
|
460
|
-
), e && (e.target && R(e.target, this, e.anchor), e.props && (this.$set(e.props), W()));
|
|
461
|
-
}
|
|
462
|
-
static get observedAttributes() {
|
|
463
|
-
return ["waitingIdrndCaptureEvent", "idrndLoading"];
|
|
464
|
-
}
|
|
465
|
-
get waitingIdrndCaptureEvent() {
|
|
466
|
-
return this.$$.ctx[0];
|
|
467
|
-
}
|
|
468
|
-
set waitingIdrndCaptureEvent(e) {
|
|
469
|
-
this.$$set({ waitingIdrndCaptureEvent: e }), W();
|
|
470
|
-
}
|
|
471
|
-
get idrndLoading() {
|
|
472
|
-
return this.$$.ctx[1];
|
|
473
|
-
}
|
|
474
|
-
set idrndLoading(e) {
|
|
475
|
-
this.$$set({ idrndLoading: e }), W();
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
customElements.define("loading-component", ts);
|
|
479
|
-
function Wi(i, e, t) {
|
|
480
|
-
const a = i.slice();
|
|
481
|
-
return a[123] = e[t], a;
|
|
482
|
-
}
|
|
483
|
-
function Mi(i, e, t) {
|
|
484
|
-
const a = i.slice();
|
|
485
|
-
return a[123] = e[t], a;
|
|
486
|
-
}
|
|
487
|
-
function Ui(i) {
|
|
488
|
-
let e, t, a = j(), o, r, f, n, l, u, c, d, b, h, E, w, v, C, y, S, Re, le = a && Fa(i), z = (
|
|
489
|
-
/*$ready*/
|
|
490
|
-
i[24] && !/*$detectingFace*/
|
|
491
|
-
i[27] && Vi(i)
|
|
492
|
-
);
|
|
493
|
-
return h = new oa({}), w = new ma({
|
|
494
|
-
props: {
|
|
495
|
-
showConfigButton: (
|
|
496
|
-
/*showConfigButton*/
|
|
497
|
-
i[4]
|
|
498
|
-
),
|
|
499
|
-
showAutoCaptureButton: (
|
|
500
|
-
/*showAutoCaptureButton*/
|
|
501
|
-
i[5]
|
|
502
|
-
),
|
|
503
|
-
showCaptureButton: (
|
|
504
|
-
/*showCaptureButton*/
|
|
505
|
-
i[0]
|
|
506
|
-
),
|
|
507
|
-
showCameraButton: (
|
|
508
|
-
/*showCameraButton*/
|
|
509
|
-
i[6]
|
|
510
|
-
),
|
|
511
|
-
enableCaptureButton: (
|
|
512
|
-
/*enableCaptureButton*/
|
|
513
|
-
i[18]
|
|
514
|
-
),
|
|
515
|
-
videoOverlay: (
|
|
516
|
-
/*videoOverlay*/
|
|
517
|
-
i[9]
|
|
518
|
-
),
|
|
519
|
-
videoOverlayTransparency: (
|
|
520
|
-
/*videoOverlayTransparency*/
|
|
521
|
-
i[10]
|
|
522
|
-
),
|
|
523
|
-
idrndClosed: (
|
|
524
|
-
/*idrndClosed*/
|
|
525
|
-
i[20]
|
|
526
|
-
),
|
|
527
|
-
idrndLoading: (
|
|
528
|
-
/*idrndLoading*/
|
|
529
|
-
i[19]
|
|
530
|
-
),
|
|
531
|
-
waitingIdrndCaptureEvent: (
|
|
532
|
-
/*waitingIdrndCaptureEvent*/
|
|
533
|
-
i[21]
|
|
534
|
-
),
|
|
535
|
-
handler: (
|
|
536
|
-
/*capture*/
|
|
537
|
-
i[13]
|
|
538
|
-
)
|
|
539
|
-
}
|
|
540
|
-
}), {
|
|
541
|
-
c() {
|
|
542
|
-
e = p("div"), t = p("div"), le && le.c(), o = N(), r = p("video"), n = N(), l = p("canvas"), u = N(), c = p("div"), d = p("div"), z && z.c(), b = N(), he(h.$$.fragment), E = N(), he(w.$$.fragment), m(r, "id", "bry-cc-camera-video-tag"), m(r, "class", f = /*$ready*/
|
|
543
|
-
i[24] ? fe() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0"), r.playsInline = !0, r.muted = !0, r.autoplay = !0, m(l, "id", "bry-ce-detectionsCanvas"), m(l, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), m(t, "class", "overflow-hidden"), ut(
|
|
544
|
-
t,
|
|
545
|
-
"width",
|
|
546
|
-
/*$videoStore*/
|
|
547
|
-
i[35].videoWidth + "px"
|
|
548
|
-
), ut(
|
|
549
|
-
t,
|
|
550
|
-
"height",
|
|
551
|
-
/*$videoStore*/
|
|
552
|
-
i[35].videoHeight + "px"
|
|
553
|
-
), m(d, "class", "flex flex-grow w-full items-center justify-center relative"), m(c, "class", "absolute inset-0 flex flex-col items-center justify-between w-full h-full"), m(e, "class", v = /*$ready*/
|
|
554
|
-
i[24] ? "relative" : "relative w-0 h-0"), e.hidden = C = /*$cameraStatusStore*/
|
|
555
|
-
i[23] !== V.OK || j() && /*idrndLoading*/
|
|
556
|
-
(i[19] || /*idrndClosed*/
|
|
557
|
-
i[20] || /*waitingIdrndCaptureEvent*/
|
|
558
|
-
i[21]);
|
|
559
|
-
},
|
|
560
|
-
m(L, A) {
|
|
561
|
-
R(L, e, A), g(e, t), le && le.m(t, null), g(t, o), g(t, r), i[51](r), g(t, n), g(t, l), i[53](l), g(e, u), g(e, c), g(c, d), z && z.m(d, null), g(c, b), me(h, c, null), g(c, E), me(w, c, null), y = !0, S || (Re = [
|
|
562
|
-
oe(
|
|
563
|
-
r,
|
|
564
|
-
"canplay",
|
|
565
|
-
/*canplay_handler*/
|
|
566
|
-
i[52]
|
|
567
|
-
),
|
|
568
|
-
oe(
|
|
569
|
-
r,
|
|
570
|
-
"play",
|
|
571
|
-
/*play*/
|
|
572
|
-
i[12],
|
|
573
|
-
{ once: !0 }
|
|
574
|
-
)
|
|
575
|
-
], S = !0);
|
|
576
|
-
},
|
|
577
|
-
p(L, A) {
|
|
578
|
-
a && le.p(L, A), (!y || A[0] & /*$ready*/
|
|
579
|
-
16777216 && f !== (f = /*$ready*/
|
|
580
|
-
L[24] ? fe() ? "absolute inset-0 -scale-x-100" : "w-full h-full object-cover -scale-x-100" : "w-0 h-0")) && m(r, "class", f), (!y || A[1] & /*$videoStore*/
|
|
581
|
-
16) && ut(
|
|
582
|
-
t,
|
|
583
|
-
"width",
|
|
584
|
-
/*$videoStore*/
|
|
585
|
-
L[35].videoWidth + "px"
|
|
586
|
-
), (!y || A[1] & /*$videoStore*/
|
|
587
|
-
16) && ut(
|
|
588
|
-
t,
|
|
589
|
-
"height",
|
|
590
|
-
/*$videoStore*/
|
|
591
|
-
L[35].videoHeight + "px"
|
|
592
|
-
), /*$ready*/
|
|
593
|
-
L[24] && !/*$detectingFace*/
|
|
594
|
-
L[27] ? z ? (z.p(L, A), A[0] & /*$ready, $detectingFace*/
|
|
595
|
-
150994944 && H(z, 1)) : (z = Vi(L), z.c(), H(z, 1), z.m(d, null)) : z && (Je(), Q(z, 1, 1, () => {
|
|
596
|
-
z = null;
|
|
597
|
-
}), Qe());
|
|
598
|
-
const T = {};
|
|
599
|
-
A[0] & /*showConfigButton*/
|
|
600
|
-
16 && (T.showConfigButton = /*showConfigButton*/
|
|
601
|
-
L[4]), A[0] & /*showAutoCaptureButton*/
|
|
602
|
-
32 && (T.showAutoCaptureButton = /*showAutoCaptureButton*/
|
|
603
|
-
L[5]), A[0] & /*showCaptureButton*/
|
|
604
|
-
1 && (T.showCaptureButton = /*showCaptureButton*/
|
|
605
|
-
L[0]), A[0] & /*showCameraButton*/
|
|
606
|
-
64 && (T.showCameraButton = /*showCameraButton*/
|
|
607
|
-
L[6]), A[0] & /*enableCaptureButton*/
|
|
608
|
-
262144 && (T.enableCaptureButton = /*enableCaptureButton*/
|
|
609
|
-
L[18]), A[0] & /*videoOverlay*/
|
|
610
|
-
512 && (T.videoOverlay = /*videoOverlay*/
|
|
611
|
-
L[9]), A[0] & /*videoOverlayTransparency*/
|
|
612
|
-
1024 && (T.videoOverlayTransparency = /*videoOverlayTransparency*/
|
|
613
|
-
L[10]), A[0] & /*idrndClosed*/
|
|
614
|
-
1048576 && (T.idrndClosed = /*idrndClosed*/
|
|
615
|
-
L[20]), A[0] & /*idrndLoading*/
|
|
616
|
-
524288 && (T.idrndLoading = /*idrndLoading*/
|
|
617
|
-
L[19]), A[0] & /*waitingIdrndCaptureEvent*/
|
|
618
|
-
2097152 && (T.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
|
619
|
-
L[21]), w.$set(T), (!y || A[0] & /*$ready*/
|
|
620
|
-
16777216 && v !== (v = /*$ready*/
|
|
621
|
-
L[24] ? "relative" : "relative w-0 h-0")) && m(e, "class", v), (!y || A[0] & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
|
622
|
-
12058624 && C !== (C = /*$cameraStatusStore*/
|
|
623
|
-
L[23] !== V.OK || j() && /*idrndLoading*/
|
|
624
|
-
(L[19] || /*idrndClosed*/
|
|
625
|
-
L[20] || /*waitingIdrndCaptureEvent*/
|
|
626
|
-
L[21]))) && (e.hidden = C);
|
|
627
|
-
},
|
|
628
|
-
i(L) {
|
|
629
|
-
y || (H(z), H(h.$$.fragment, L), H(w.$$.fragment, L), y = !0);
|
|
630
|
-
},
|
|
631
|
-
o(L) {
|
|
632
|
-
Q(z), Q(h.$$.fragment, L), Q(w.$$.fragment, L), y = !1;
|
|
633
|
-
},
|
|
634
|
-
d(L) {
|
|
635
|
-
L && I(e), le && le.d(), i[51](null), i[53](null), z && z.d(), _e(h), _e(w), S = !1, vt(Re);
|
|
636
|
-
}
|
|
637
|
-
};
|
|
638
|
-
}
|
|
639
|
-
function Fa(i) {
|
|
640
|
-
let e;
|
|
641
|
-
return {
|
|
642
|
-
c() {
|
|
643
|
-
e = p("idlive-face-capture"), e.hidden = !0, se(e, "mask_hidden", ""), se(e, "auto_capture_disabled", ""), se(e, "auto_close_disabled", ""), se(
|
|
644
|
-
e,
|
|
645
|
-
"device_id",
|
|
646
|
-
/*$selectedVideoDeviceId*/
|
|
647
|
-
i[25]
|
|
648
|
-
), se(e, "face_not_centered_check_enabled", ""), se(e, "sunglasses_detected_check_enabled", ""), se(e, "mouth_open_check_enabled", ""), se(e, "face_blurry_check_enabled", ""), se(e, "dark_image_check_enabled", ""), se(e, "eyes_closed_check_enabled", ""), se(
|
|
649
|
-
e,
|
|
650
|
-
"payload_size",
|
|
651
|
-
/*livenessBlobSize*/
|
|
652
|
-
i[11]
|
|
653
|
-
);
|
|
654
|
-
},
|
|
655
|
-
m(t, a) {
|
|
656
|
-
R(t, e, a), i[50](e);
|
|
657
|
-
},
|
|
658
|
-
p(t, a) {
|
|
659
|
-
a[0] & /*$selectedVideoDeviceId*/
|
|
660
|
-
33554432 && se(
|
|
661
|
-
e,
|
|
662
|
-
"device_id",
|
|
663
|
-
/*$selectedVideoDeviceId*/
|
|
664
|
-
t[25]
|
|
665
|
-
), a[0] & /*livenessBlobSize*/
|
|
666
|
-
2048 && se(
|
|
667
|
-
e,
|
|
668
|
-
"payload_size",
|
|
669
|
-
/*livenessBlobSize*/
|
|
670
|
-
t[11]
|
|
671
|
-
);
|
|
672
|
-
},
|
|
673
|
-
d(t) {
|
|
674
|
-
t && I(e), i[50](null);
|
|
675
|
-
}
|
|
676
|
-
};
|
|
677
|
-
}
|
|
678
|
-
function Vi(i) {
|
|
679
|
-
let e, t, a, o, r, f;
|
|
680
|
-
return e = new _a({
|
|
681
|
-
props: {
|
|
682
|
-
isCountingDown: (
|
|
683
|
-
/*isCountingDown*/
|
|
684
|
-
i[17]
|
|
685
|
-
)
|
|
686
|
-
}
|
|
687
|
-
}), a = new $i({
|
|
688
|
-
props: {
|
|
689
|
-
loading: (
|
|
690
|
-
/*isCountingDown*/
|
|
691
|
-
i[17]
|
|
692
|
-
),
|
|
693
|
-
showWatermark: (
|
|
694
|
-
/*showWatermark*/
|
|
695
|
-
i[8]
|
|
696
|
-
)
|
|
697
|
-
}
|
|
698
|
-
}), r = new es({
|
|
699
|
-
props: {
|
|
700
|
-
overlayColor: (
|
|
701
|
-
/*videoOverlay*/
|
|
702
|
-
i[9]
|
|
703
|
-
),
|
|
704
|
-
overlayTransparency: (
|
|
705
|
-
/*videoOverlayTransparency*/
|
|
706
|
-
i[10]
|
|
707
|
-
)
|
|
708
|
-
}
|
|
709
|
-
}), {
|
|
710
|
-
c() {
|
|
711
|
-
he(e.$$.fragment), t = N(), he(a.$$.fragment), o = N(), he(r.$$.fragment);
|
|
712
|
-
},
|
|
713
|
-
m(n, l) {
|
|
714
|
-
me(e, n, l), R(n, t, l), me(a, n, l), R(n, o, l), me(r, n, l), f = !0;
|
|
715
|
-
},
|
|
716
|
-
p(n, l) {
|
|
717
|
-
const u = {};
|
|
718
|
-
l[0] & /*isCountingDown*/
|
|
719
|
-
131072 && (u.isCountingDown = /*isCountingDown*/
|
|
720
|
-
n[17]), e.$set(u);
|
|
721
|
-
const c = {};
|
|
722
|
-
l[0] & /*isCountingDown*/
|
|
723
|
-
131072 && (c.loading = /*isCountingDown*/
|
|
724
|
-
n[17]), l[0] & /*showWatermark*/
|
|
725
|
-
256 && (c.showWatermark = /*showWatermark*/
|
|
726
|
-
n[8]), a.$set(c);
|
|
727
|
-
const d = {};
|
|
728
|
-
l[0] & /*videoOverlay*/
|
|
729
|
-
512 && (d.overlayColor = /*videoOverlay*/
|
|
730
|
-
n[9]), l[0] & /*videoOverlayTransparency*/
|
|
731
|
-
1024 && (d.overlayTransparency = /*videoOverlayTransparency*/
|
|
732
|
-
n[10]), r.$set(d);
|
|
733
|
-
},
|
|
734
|
-
i(n) {
|
|
735
|
-
f || (H(e.$$.fragment, n), H(a.$$.fragment, n), H(r.$$.fragment, n), f = !0);
|
|
736
|
-
},
|
|
737
|
-
o(n) {
|
|
738
|
-
Q(e.$$.fragment, n), Q(a.$$.fragment, n), Q(r.$$.fragment, n), f = !1;
|
|
739
|
-
},
|
|
740
|
-
d(n) {
|
|
741
|
-
_e(e, n), n && I(t), _e(a, n), n && I(o), _e(r, n);
|
|
742
|
-
}
|
|
743
|
-
};
|
|
744
|
-
}
|
|
745
|
-
function zi(i) {
|
|
746
|
-
let e, t, a = (
|
|
747
|
-
/*$_*/
|
|
748
|
-
i[32]("faceCollector.finish") + ""
|
|
749
|
-
), o, r, f, n, l = (
|
|
750
|
-
/*$_*/
|
|
751
|
-
i[32]("faceCollector.retakePhoto") + ""
|
|
752
|
-
), u, c, d;
|
|
753
|
-
return {
|
|
754
|
-
c() {
|
|
755
|
-
e = p("div"), t = p("button"), o = P(a), f = N(), n = p("button"), u = P(l), t.disabled = r = /*$justification*/
|
|
756
|
-
i[29].length === 0, m(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), m(n, "id", "bry-cc-retake-button"), m(n, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), m(e, "class", "ce-dui-btn-group flex");
|
|
757
|
-
},
|
|
758
|
-
m(b, h) {
|
|
759
|
-
R(b, e, h), g(e, t), g(t, o), g(e, f), g(e, n), g(n, u), c || (d = [
|
|
760
|
-
oe(
|
|
761
|
-
t,
|
|
762
|
-
"click",
|
|
763
|
-
/*click_handler*/
|
|
764
|
-
i[54]
|
|
765
|
-
),
|
|
766
|
-
oe(
|
|
767
|
-
n,
|
|
768
|
-
"click",
|
|
769
|
-
/*click_handler_1*/
|
|
770
|
-
i[55]
|
|
771
|
-
)
|
|
772
|
-
], c = !0);
|
|
773
|
-
},
|
|
774
|
-
p(b, h) {
|
|
775
|
-
h[1] & /*$_*/
|
|
776
|
-
2 && a !== (a = /*$_*/
|
|
777
|
-
b[32]("faceCollector.finish") + "") && M(o, a), h[0] & /*$justification*/
|
|
778
|
-
536870912 && r !== (r = /*$justification*/
|
|
779
|
-
b[29].length === 0) && (t.disabled = r), h[1] & /*$_*/
|
|
780
|
-
2 && l !== (l = /*$_*/
|
|
781
|
-
b[32]("faceCollector.retakePhoto") + "") && M(u, l);
|
|
782
|
-
},
|
|
783
|
-
d(b) {
|
|
784
|
-
b && I(e), c = !1, vt(d);
|
|
785
|
-
}
|
|
786
|
-
};
|
|
787
|
-
}
|
|
788
|
-
function Na(i) {
|
|
789
|
-
let e, t;
|
|
790
|
-
return e = new ba({ props: { handler: (
|
|
791
|
-
/*func*/
|
|
792
|
-
i[64]
|
|
793
|
-
) } }), {
|
|
794
|
-
c() {
|
|
795
|
-
he(e.$$.fragment);
|
|
796
|
-
},
|
|
797
|
-
m(a, o) {
|
|
798
|
-
me(e, a, o), t = !0;
|
|
799
|
-
},
|
|
800
|
-
p: X,
|
|
801
|
-
i(a) {
|
|
802
|
-
t || (H(e.$$.fragment, a), t = !0);
|
|
803
|
-
},
|
|
804
|
-
o(a) {
|
|
805
|
-
Q(e.$$.fragment, a), t = !1;
|
|
806
|
-
},
|
|
807
|
-
d(a) {
|
|
808
|
-
_e(e, a);
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
function Pa(i) {
|
|
813
|
-
let e, t, a, o, r, f, n, l, u;
|
|
814
|
-
const c = [
|
|
815
|
-
Va,
|
|
816
|
-
Ua,
|
|
817
|
-
Ma,
|
|
818
|
-
Wa,
|
|
819
|
-
Ba
|
|
820
|
-
], d = [];
|
|
821
|
-
function b(h, E) {
|
|
822
|
-
return (
|
|
823
|
-
/*$captured*/
|
|
824
|
-
h[26] ? (
|
|
825
|
-
/*$unconformitiesStore*/
|
|
826
|
-
h[33].isLoading ? 1 : (
|
|
827
|
-
/*$requestResult*/
|
|
828
|
-
h[31] !== K.OK ? 2 : (
|
|
829
|
-
/*$saved*/
|
|
830
|
-
h[28] ? 4 : 3
|
|
831
|
-
)
|
|
832
|
-
)
|
|
833
|
-
) : 0
|
|
834
|
-
);
|
|
835
|
-
}
|
|
836
|
-
return f = b(i), n = d[f] = c[f](i), {
|
|
837
|
-
c() {
|
|
838
|
-
e = p("div"), t = p("img"), r = N(), n.c(), m(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), Xe(t.src, a = /*$dataTypePrefix*/
|
|
839
|
-
i[34] + "," + /*$image*/
|
|
840
|
-
i[30]) || m(t, "src", a), t.hidden = o = !/*$captured*/
|
|
841
|
-
i[26] || !/*$showFaceWhileValidating*/
|
|
842
|
-
i[36] && /*$unconformitiesStore*/
|
|
843
|
-
i[33].isLoading, m(t, "alt", ""), m(e, "class", l = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
|
844
|
-
i[36] && /*$unconformitiesStore*/
|
|
845
|
-
i[33].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid overflow-hidden"));
|
|
846
|
-
},
|
|
847
|
-
m(h, E) {
|
|
848
|
-
R(h, e, E), g(e, t), g(e, r), d[f].m(e, null), u = !0;
|
|
849
|
-
},
|
|
850
|
-
p(h, E) {
|
|
851
|
-
(!u || E[0] & /*$image*/
|
|
852
|
-
1073741824 | E[1] & /*$dataTypePrefix*/
|
|
853
|
-
8 && !Xe(t.src, a = /*$dataTypePrefix*/
|
|
854
|
-
h[34] + "," + /*$image*/
|
|
855
|
-
h[30])) && m(t, "src", a), (!u || E[0] & /*$captured*/
|
|
856
|
-
67108864 | E[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
857
|
-
36 && o !== (o = !/*$captured*/
|
|
858
|
-
h[26] || !/*$showFaceWhileValidating*/
|
|
859
|
-
h[36] && /*$unconformitiesStore*/
|
|
860
|
-
h[33].isLoading)) && (t.hidden = o);
|
|
861
|
-
let w = f;
|
|
862
|
-
f = b(h), f === w ? d[f].p(h, E) : (Je(), Q(d[w], 1, 1, () => {
|
|
863
|
-
d[w] = null;
|
|
864
|
-
}), Qe(), n = d[f], n ? n.p(h, E) : (n = d[f] = c[f](h), n.c()), H(n, 1), n.m(e, null)), (!u || E[1] & /*$showFaceWhileValidating, $unconformitiesStore*/
|
|
865
|
-
36 && l !== (l = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
|
866
|
-
h[36] && /*$unconformitiesStore*/
|
|
867
|
-
h[33].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid overflow-hidden"))) && m(e, "class", l);
|
|
868
|
-
},
|
|
869
|
-
i(h) {
|
|
870
|
-
u || (H(n), u = !0);
|
|
871
|
-
},
|
|
872
|
-
o(h) {
|
|
873
|
-
Q(n), u = !1;
|
|
874
|
-
},
|
|
875
|
-
d(h) {
|
|
876
|
-
h && I(e), d[f].d();
|
|
877
|
-
}
|
|
878
|
-
};
|
|
879
|
-
}
|
|
880
|
-
function Ba(i) {
|
|
881
|
-
let e, t, a = (
|
|
882
|
-
/*$_*/
|
|
883
|
-
i[32]("faceCollector.captured") + ""
|
|
884
|
-
), o, r, f, n, l, u = (
|
|
885
|
-
/*$_*/
|
|
886
|
-
i[32]("faceCollector.retakePhoto") + ""
|
|
887
|
-
), c, d, b = dt(ua).faceStrategy !== fa.DISABLED, h, E, w, v = (
|
|
888
|
-
/*$unconformitiesStore*/
|
|
889
|
-
i[33].unconformities.length !== 0 && ji(i)
|
|
890
|
-
), C = b && za();
|
|
891
|
-
return {
|
|
892
|
-
c() {
|
|
893
|
-
e = p("div"), t = p("h1"), o = P(a), r = N(), v && v.c(), f = N(), n = p("div"), l = p("button"), c = P(u), d = N(), C && C.c(), m(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), m(l, "id", "bry-cc-retake-button"), m(l, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), m(n, "class", "flex flex-row"), Si(n, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
|
894
|
-
i[37]);
|
|
895
|
-
},
|
|
896
|
-
m(y, S) {
|
|
897
|
-
R(y, e, S), g(e, t), g(t, o), g(e, r), v && v.m(e, null), g(e, f), g(e, n), g(n, l), g(l, c), g(n, d), C && C.m(n, null), h = !0, E || (w = oe(
|
|
898
|
-
l,
|
|
899
|
-
"click",
|
|
900
|
-
/*click_handler_6*/
|
|
901
|
-
i[63]
|
|
902
|
-
), E = !0);
|
|
903
|
-
},
|
|
904
|
-
p(y, S) {
|
|
905
|
-
(!h || S[1] & /*$_*/
|
|
906
|
-
2) && a !== (a = /*$_*/
|
|
907
|
-
y[32]("faceCollector.captured") + "") && M(o, a), /*$unconformitiesStore*/
|
|
908
|
-
y[33].unconformities.length !== 0 ? v ? v.p(y, S) : (v = ji(y), v.c(), v.m(e, f)) : v && (v.d(1), v = null), (!h || S[1] & /*$_*/
|
|
909
|
-
2) && u !== (u = /*$_*/
|
|
910
|
-
y[32]("faceCollector.retakePhoto") + "") && M(c, u), (!h || S[1] & /*$exportButtonDisabled*/
|
|
911
|
-
64) && Si(n, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
|
912
|
-
y[37]);
|
|
913
|
-
},
|
|
914
|
-
i(y) {
|
|
915
|
-
h || (H(C), h = !0);
|
|
916
|
-
},
|
|
917
|
-
o(y) {
|
|
918
|
-
Q(C), h = !1;
|
|
919
|
-
},
|
|
920
|
-
d(y) {
|
|
921
|
-
y && I(e), v && v.d(), C && C.d(), E = !1, w();
|
|
922
|
-
}
|
|
923
|
-
};
|
|
924
|
-
}
|
|
925
|
-
function Wa(i) {
|
|
926
|
-
let e, t, a = (
|
|
927
|
-
/*evaluatePhoto*/
|
|
928
|
-
(i[2] ? (
|
|
929
|
-
/*$unconformitiesStore*/
|
|
930
|
-
i[33].unconformities.length === 0 ? (
|
|
931
|
-
/*$_*/
|
|
932
|
-
i[32]("faceCollector.everythingOk")
|
|
933
|
-
) : (
|
|
934
|
-
/*$_*/
|
|
935
|
-
i[32]("faceCollector.unconformities")
|
|
936
|
-
)
|
|
937
|
-
) : (
|
|
938
|
-
/*$_*/
|
|
939
|
-
i[32]("faceCollector.previewCapture")
|
|
940
|
-
)) + ""
|
|
941
|
-
), o, r, f, n, l, u, c = (
|
|
942
|
-
/*$unconformitiesStore*/
|
|
943
|
-
i[33].unconformities
|
|
944
|
-
), d = [];
|
|
945
|
-
for (let w = 0; w < c.length; w += 1)
|
|
946
|
-
d[w] = Ki(Wi(i, c, w));
|
|
947
|
-
let b = (
|
|
948
|
-
/*evaluatePhoto*/
|
|
949
|
-
i[2] && /*$unconformitiesStore*/
|
|
950
|
-
i[33].unconformities.length == 0 && Hi(i)
|
|
951
|
-
), h = (
|
|
952
|
-
/*showJustificationField*/
|
|
953
|
-
i[7] && /*$unconformitiesStore*/
|
|
954
|
-
i[33].unconformities.length > 0 && qi(i)
|
|
955
|
-
), E = (
|
|
956
|
-
/*$captured*/
|
|
957
|
-
i[26] && Ji(i)
|
|
958
|
-
);
|
|
959
|
-
return {
|
|
960
|
-
c() {
|
|
961
|
-
e = p("div"), t = p("h1"), o = P(a), r = N(), f = p("div");
|
|
962
|
-
for (let w = 0; w < d.length; w += 1)
|
|
963
|
-
d[w].c();
|
|
964
|
-
n = N(), b && b.c(), l = N(), h && h.c(), u = N(), E && E.c(), m(t, "class", "text-3xl font-bold transition-opacity"), m(f, "class", "flex flex-wrap"), m(e, "class", "flex flex-col justify-between");
|
|
965
|
-
},
|
|
966
|
-
m(w, v) {
|
|
967
|
-
R(w, e, v), g(e, t), g(t, o), g(e, r), g(e, f);
|
|
968
|
-
for (let C = 0; C < d.length; C += 1)
|
|
969
|
-
d[C] && d[C].m(f, null);
|
|
970
|
-
g(f, n), b && b.m(f, null), g(e, l), h && h.m(e, null), g(e, u), E && E.m(e, null);
|
|
971
|
-
},
|
|
972
|
-
p(w, v) {
|
|
973
|
-
if (v[0] & /*evaluatePhoto*/
|
|
974
|
-
4 | v[1] & /*$unconformitiesStore, $_*/
|
|
975
|
-
6 && a !== (a = /*evaluatePhoto*/
|
|
976
|
-
(w[2] ? (
|
|
977
|
-
/*$unconformitiesStore*/
|
|
978
|
-
w[33].unconformities.length === 0 ? (
|
|
979
|
-
/*$_*/
|
|
980
|
-
w[32]("faceCollector.everythingOk")
|
|
981
|
-
) : (
|
|
982
|
-
/*$_*/
|
|
983
|
-
w[32]("faceCollector.unconformities")
|
|
984
|
-
)
|
|
985
|
-
) : (
|
|
986
|
-
/*$_*/
|
|
987
|
-
w[32]("faceCollector.previewCapture")
|
|
988
|
-
)) + "") && M(o, a), v[1] & /*$unconformitiesStore*/
|
|
989
|
-
4) {
|
|
990
|
-
c = /*$unconformitiesStore*/
|
|
991
|
-
w[33].unconformities;
|
|
992
|
-
let C;
|
|
993
|
-
for (C = 0; C < c.length; C += 1) {
|
|
994
|
-
const y = Wi(w, c, C);
|
|
995
|
-
d[C] ? d[C].p(y, v) : (d[C] = Ki(y), d[C].c(), d[C].m(f, n));
|
|
996
|
-
}
|
|
997
|
-
for (; C < d.length; C += 1)
|
|
998
|
-
d[C].d(1);
|
|
999
|
-
d.length = c.length;
|
|
1000
|
-
}
|
|
1001
|
-
/*evaluatePhoto*/
|
|
1002
|
-
w[2] && /*$unconformitiesStore*/
|
|
1003
|
-
w[33].unconformities.length == 0 ? b ? b.p(w, v) : (b = Hi(w), b.c(), b.m(f, null)) : b && (b.d(1), b = null), /*showJustificationField*/
|
|
1004
|
-
w[7] && /*$unconformitiesStore*/
|
|
1005
|
-
w[33].unconformities.length > 0 ? h ? h.p(w, v) : (h = qi(w), h.c(), h.m(e, u)) : h && (h.d(1), h = null), /*$captured*/
|
|
1006
|
-
w[26] ? E ? E.p(w, v) : (E = Ji(w), E.c(), E.m(e, null)) : E && (E.d(1), E = null);
|
|
1007
|
-
},
|
|
1008
|
-
i: X,
|
|
1009
|
-
o: X,
|
|
1010
|
-
d(w) {
|
|
1011
|
-
w && I(e), xi(d, w), b && b.d(), h && h.d(), E && E.d();
|
|
1012
|
-
}
|
|
1013
|
-
};
|
|
1014
|
-
}
|
|
1015
|
-
function Ma(i) {
|
|
1016
|
-
let e, t, a, o, r = (
|
|
1017
|
-
/*$_*/
|
|
1018
|
-
i[32]("faceCollector.finish") + ""
|
|
1019
|
-
), f, n, l, u = (
|
|
1020
|
-
/*$_*/
|
|
1021
|
-
i[32]("faceCollector.retakePhoto") + ""
|
|
1022
|
-
), c, d, b;
|
|
1023
|
-
function h(v, C) {
|
|
1024
|
-
return (
|
|
1025
|
-
/*$requestResult*/
|
|
1026
|
-
v[31] === K.LIVENESS_DETECTION_FAILURE || /*$requestResult*/
|
|
1027
|
-
v[31] === K.UNKNOWN_LIVENESS_ERROR ? Xa : (
|
|
1028
|
-
/*$requestResult*/
|
|
1029
|
-
v[31] === K.LOW_LIVENESS_SCORE ? Qa : (
|
|
1030
|
-
/*$requestResult*/
|
|
1031
|
-
v[31] === K.TEMPLATE_EXTRACTION_ERROR || /*$requestResult*/
|
|
1032
|
-
v[31] === K.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ? Ja : (
|
|
1033
|
-
/*$requestResult*/
|
|
1034
|
-
v[31] === K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ? qa : (
|
|
1035
|
-
/*$requestResult*/
|
|
1036
|
-
v[31] === K.LIVENESS_EVALUATION_ERROR ? Ha : (
|
|
1037
|
-
/*$requestResult*/
|
|
1038
|
-
v[31] === K.INSUFFICIENT_FACE_QUALITY ? Ka : ja
|
|
1039
|
-
)
|
|
1040
|
-
)
|
|
1041
|
-
)
|
|
1042
|
-
)
|
|
1043
|
-
)
|
|
1044
|
-
);
|
|
1045
|
-
}
|
|
1046
|
-
let E = h(i), w = E(i);
|
|
1047
|
-
return {
|
|
1048
|
-
c() {
|
|
1049
|
-
e = p("div"), w.c(), t = N(), a = p("div"), o = p("button"), f = P(r), n = N(), l = p("button"), c = P(u), o.disabled = !0, m(o, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), m(l, "id", "bry-cc-retake-button"), m(l, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), m(a, "class", "ce-dui-btn-group flex"), m(e, "class", "flex flex-col justify-between");
|
|
1050
|
-
},
|
|
1051
|
-
m(v, C) {
|
|
1052
|
-
R(v, e, C), w.m(e, null), g(e, t), g(e, a), g(a, o), g(o, f), g(a, n), g(a, l), g(l, c), d || (b = [
|
|
1053
|
-
oe(
|
|
1054
|
-
o,
|
|
1055
|
-
"click",
|
|
1056
|
-
/*click_handler_2*/
|
|
1057
|
-
i[57]
|
|
1058
|
-
),
|
|
1059
|
-
oe(
|
|
1060
|
-
l,
|
|
1061
|
-
"click",
|
|
1062
|
-
/*click_handler_3*/
|
|
1063
|
-
i[58]
|
|
1064
|
-
)
|
|
1065
|
-
], d = !0);
|
|
1066
|
-
},
|
|
1067
|
-
p(v, C) {
|
|
1068
|
-
E === (E = h(v)) && w ? w.p(v, C) : (w.d(1), w = E(v), w && (w.c(), w.m(e, t))), C[1] & /*$_*/
|
|
1069
|
-
2 && r !== (r = /*$_*/
|
|
1070
|
-
v[32]("faceCollector.finish") + "") && M(f, r), C[1] & /*$_*/
|
|
1071
|
-
2 && u !== (u = /*$_*/
|
|
1072
|
-
v[32]("faceCollector.retakePhoto") + "") && M(c, u);
|
|
1073
|
-
},
|
|
1074
|
-
i: X,
|
|
1075
|
-
o: X,
|
|
1076
|
-
d(v) {
|
|
1077
|
-
v && I(e), w.d(), d = !1, vt(b);
|
|
1078
|
-
}
|
|
1079
|
-
};
|
|
1080
|
-
}
|
|
1081
|
-
function Ua(i) {
|
|
1082
|
-
let e, t, a = (
|
|
1083
|
-
/*$_*/
|
|
1084
|
-
i[32]("faceCollector.validating") + ""
|
|
1085
|
-
), o, r, f;
|
|
1086
|
-
return {
|
|
1087
|
-
c() {
|
|
1088
|
-
e = p("div"), t = p("h1"), o = P(a), r = N(), f = p("div"), m(t, "class", "inline-block text-3xl font-bold pb-[1em] transition-opacity"), m(f, "class", "ml-6 inline-block dot-typing"), m(e, "class", "min-w-[200px]");
|
|
1089
|
-
},
|
|
1090
|
-
m(n, l) {
|
|
1091
|
-
R(n, e, l), g(e, t), g(t, o), g(e, r), g(e, f);
|
|
1092
|
-
},
|
|
1093
|
-
p(n, l) {
|
|
1094
|
-
l[1] & /*$_*/
|
|
1095
|
-
2 && a !== (a = /*$_*/
|
|
1096
|
-
n[32]("faceCollector.validating") + "") && M(o, a);
|
|
1097
|
-
},
|
|
1098
|
-
i: X,
|
|
1099
|
-
o: X,
|
|
1100
|
-
d(n) {
|
|
1101
|
-
n && I(e);
|
|
1102
|
-
}
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
|
-
function Va(i) {
|
|
1106
|
-
let e;
|
|
1107
|
-
return {
|
|
1108
|
-
c() {
|
|
1109
|
-
e = p("div"), m(e, "class", "");
|
|
1110
|
-
},
|
|
1111
|
-
m(t, a) {
|
|
1112
|
-
R(t, e, a);
|
|
1113
|
-
},
|
|
1114
|
-
p: X,
|
|
1115
|
-
i: X,
|
|
1116
|
-
o: X,
|
|
1117
|
-
d(t) {
|
|
1118
|
-
t && I(e);
|
|
1119
|
-
}
|
|
1120
|
-
};
|
|
1121
|
-
}
|
|
1122
|
-
function ji(i) {
|
|
1123
|
-
let e, t, a = (
|
|
1124
|
-
/*$_*/
|
|
1125
|
-
i[32]("faceCollector.justification") + ""
|
|
1126
|
-
), o, r, f, n, l;
|
|
1127
|
-
return {
|
|
1128
|
-
c() {
|
|
1129
|
-
e = p("label"), t = p("span"), o = P(a), r = N(), f = p("textarea"), m(t, "class", "ce-dui-label-text text-base"), m(e, "class", "ce-dui-label"), m(e, "for", "justification"), m(f, "contenteditable", ""), m(f, "id", "justification"), m(f, "class", "ce-dui-textarea ce-dui-textarea-bordered textarea-ghost h-[6em] w-full text-base");
|
|
1130
|
-
},
|
|
1131
|
-
m(u, c) {
|
|
1132
|
-
R(u, e, c), g(e, t), g(t, o), R(u, r, c), R(u, f, c), ht(
|
|
1133
|
-
f,
|
|
1134
|
-
/*$justification*/
|
|
1135
|
-
i[29]
|
|
1136
|
-
), n || (l = oe(
|
|
1137
|
-
f,
|
|
1138
|
-
"input",
|
|
1139
|
-
/*textarea_input_handler_1*/
|
|
1140
|
-
i[62]
|
|
1141
|
-
), n = !0);
|
|
1142
|
-
},
|
|
1143
|
-
p(u, c) {
|
|
1144
|
-
c[1] & /*$_*/
|
|
1145
|
-
2 && a !== (a = /*$_*/
|
|
1146
|
-
u[32]("faceCollector.justification") + "") && M(o, a), c[0] & /*$justification*/
|
|
1147
|
-
536870912 && ht(
|
|
1148
|
-
f,
|
|
1149
|
-
/*$justification*/
|
|
1150
|
-
u[29]
|
|
1151
|
-
);
|
|
1152
|
-
},
|
|
1153
|
-
d(u) {
|
|
1154
|
-
u && I(e), u && I(r), u && I(f), n = !1, l();
|
|
1155
|
-
}
|
|
1156
|
-
};
|
|
1157
|
-
}
|
|
1158
|
-
function za(i) {
|
|
1159
|
-
let e, t;
|
|
1160
|
-
return e = new da({
|
|
1161
|
-
props: { cssClass: "ce-dui-btn-block flex-shrink" }
|
|
1162
|
-
}), {
|
|
1163
|
-
c() {
|
|
1164
|
-
he(e.$$.fragment);
|
|
1165
|
-
},
|
|
1166
|
-
m(a, o) {
|
|
1167
|
-
me(e, a, o), t = !0;
|
|
1168
|
-
},
|
|
1169
|
-
i(a) {
|
|
1170
|
-
t || (H(e.$$.fragment, a), t = !0);
|
|
1171
|
-
},
|
|
1172
|
-
o(a) {
|
|
1173
|
-
Q(e.$$.fragment, a), t = !1;
|
|
1174
|
-
},
|
|
1175
|
-
d(a) {
|
|
1176
|
-
_e(e, a);
|
|
1177
|
-
}
|
|
1178
|
-
};
|
|
1179
|
-
}
|
|
1180
|
-
function Ki(i) {
|
|
1181
|
-
let e, t = (
|
|
1182
|
-
/*unconformity*/
|
|
1183
|
-
i[123] + ""
|
|
1184
|
-
), a;
|
|
1185
|
-
return {
|
|
1186
|
-
c() {
|
|
1187
|
-
e = p("div"), a = P(t), m(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
|
1188
|
-
},
|
|
1189
|
-
m(o, r) {
|
|
1190
|
-
R(o, e, r), g(e, a);
|
|
1191
|
-
},
|
|
1192
|
-
p(o, r) {
|
|
1193
|
-
r[1] & /*$unconformitiesStore*/
|
|
1194
|
-
4 && t !== (t = /*unconformity*/
|
|
1195
|
-
o[123] + "") && M(a, t);
|
|
1196
|
-
},
|
|
1197
|
-
d(o) {
|
|
1198
|
-
o && I(e);
|
|
1199
|
-
}
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
function Hi(i) {
|
|
1203
|
-
let e, t = (
|
|
1204
|
-
/*$_*/
|
|
1205
|
-
i[32]("faceCollector.noNonconformity") + ""
|
|
1206
|
-
), a;
|
|
1207
|
-
return {
|
|
1208
|
-
c() {
|
|
1209
|
-
e = p("div"), a = P(t), m(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-info text-xl pb-[.25em] m-[.5em]");
|
|
1210
|
-
},
|
|
1211
|
-
m(o, r) {
|
|
1212
|
-
R(o, e, r), g(e, a);
|
|
1213
|
-
},
|
|
1214
|
-
p(o, r) {
|
|
1215
|
-
r[1] & /*$_*/
|
|
1216
|
-
2 && t !== (t = /*$_*/
|
|
1217
|
-
o[32]("faceCollector.noNonconformity") + "") && M(a, t);
|
|
1218
|
-
},
|
|
1219
|
-
d(o) {
|
|
1220
|
-
o && I(e);
|
|
1221
|
-
}
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
1224
|
-
function qi(i) {
|
|
1225
|
-
let e, t, a, o = (
|
|
1226
|
-
/*$_*/
|
|
1227
|
-
i[32]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
|
1228
|
-
), r, f, n, l, u, c, d, b, h = (
|
|
1229
|
-
/*$_*/
|
|
1230
|
-
i[32]("faceCollector.thisInformationIsRequired") + ""
|
|
1231
|
-
), E, w, v, C;
|
|
1232
|
-
return {
|
|
1233
|
-
c() {
|
|
1234
|
-
e = p("div"), t = p("label"), a = p("span"), r = P(o), f = N(), n = p("textarea"), u = N(), c = p("label"), d = p("span"), b = P("("), E = P(h), w = P(")"), m(a, "class", "ce-dui-label-text text-base"), m(t, "class", "ce-dui-label"), m(t, "for", "justification"), m(n, "contenteditable", ""), m(n, "id", "justification"), m(n, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), m(n, "placeholder", l = /*$_*/
|
|
1235
|
-
i[32]("faceCollector.yourJustification")), m(d, "class", "ce-dui-label-text-alt text-base"), m(c, "class", "ce-dui-label"), m(c, "for", "justification"), m(e, "class", "ce-dui-form-control");
|
|
1236
|
-
},
|
|
1237
|
-
m(y, S) {
|
|
1238
|
-
R(y, e, S), g(e, t), g(t, a), g(a, r), g(e, f), g(e, n), ht(
|
|
1239
|
-
n,
|
|
1240
|
-
/*$justification*/
|
|
1241
|
-
i[29]
|
|
1242
|
-
), g(e, u), g(e, c), g(c, d), g(d, b), g(d, E), g(d, w), v || (C = oe(
|
|
1243
|
-
n,
|
|
1244
|
-
"input",
|
|
1245
|
-
/*textarea_input_handler*/
|
|
1246
|
-
i[59]
|
|
1247
|
-
), v = !0);
|
|
1248
|
-
},
|
|
1249
|
-
p(y, S) {
|
|
1250
|
-
S[1] & /*$_*/
|
|
1251
|
-
2 && o !== (o = /*$_*/
|
|
1252
|
-
y[32]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && M(r, o), S[1] & /*$_*/
|
|
1253
|
-
2 && l !== (l = /*$_*/
|
|
1254
|
-
y[32]("faceCollector.yourJustification")) && m(n, "placeholder", l), S[0] & /*$justification*/
|
|
1255
|
-
536870912 && ht(
|
|
1256
|
-
n,
|
|
1257
|
-
/*$justification*/
|
|
1258
|
-
y[29]
|
|
1259
|
-
), S[1] & /*$_*/
|
|
1260
|
-
2 && h !== (h = /*$_*/
|
|
1261
|
-
y[32]("faceCollector.thisInformationIsRequired") + "") && M(E, h);
|
|
1262
|
-
},
|
|
1263
|
-
d(y) {
|
|
1264
|
-
y && I(e), v = !1, C();
|
|
1265
|
-
}
|
|
1266
|
-
};
|
|
1267
|
-
}
|
|
1268
|
-
function Ji(i) {
|
|
1269
|
-
let e, t, a = (
|
|
1270
|
-
/*$_*/
|
|
1271
|
-
i[32]("faceCollector.finish") + ""
|
|
1272
|
-
), o, r, f, n, l = (
|
|
1273
|
-
/*$_*/
|
|
1274
|
-
i[32]("faceCollector.retakePhoto") + ""
|
|
1275
|
-
), u, c, d;
|
|
1276
|
-
return {
|
|
1277
|
-
c() {
|
|
1278
|
-
e = p("div"), t = p("button"), o = P(a), f = N(), n = p("button"), u = P(l), t.disabled = r = /*evaluatePhoto*/
|
|
1279
|
-
i[2] && /*showJustificationField*/
|
|
1280
|
-
i[7] && /*$justification*/
|
|
1281
|
-
i[29].length === 0 && /*$unconformitiesStore*/
|
|
1282
|
-
i[33].unconformities.length !== 0, m(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink text-base"), m(n, "id", "bry-cc-retake-button"), m(n, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink text-base"), m(e, "class", "ce-dui-btn-group flex");
|
|
1283
|
-
},
|
|
1284
|
-
m(b, h) {
|
|
1285
|
-
R(b, e, h), g(e, t), g(t, o), g(e, f), g(e, n), g(n, u), c || (d = [
|
|
1286
|
-
oe(
|
|
1287
|
-
t,
|
|
1288
|
-
"click",
|
|
1289
|
-
/*click_handler_4*/
|
|
1290
|
-
i[60]
|
|
1291
|
-
),
|
|
1292
|
-
oe(
|
|
1293
|
-
n,
|
|
1294
|
-
"click",
|
|
1295
|
-
/*click_handler_5*/
|
|
1296
|
-
i[61]
|
|
1297
|
-
)
|
|
1298
|
-
], c = !0);
|
|
1299
|
-
},
|
|
1300
|
-
p(b, h) {
|
|
1301
|
-
h[1] & /*$_*/
|
|
1302
|
-
2 && a !== (a = /*$_*/
|
|
1303
|
-
b[32]("faceCollector.finish") + "") && M(o, a), h[0] & /*evaluatePhoto, showJustificationField, $justification*/
|
|
1304
|
-
536871044 | h[1] & /*$unconformitiesStore*/
|
|
1305
|
-
4 && r !== (r = /*evaluatePhoto*/
|
|
1306
|
-
b[2] && /*showJustificationField*/
|
|
1307
|
-
b[7] && /*$justification*/
|
|
1308
|
-
b[29].length === 0 && /*$unconformitiesStore*/
|
|
1309
|
-
b[33].unconformities.length !== 0) && (t.disabled = r), h[1] & /*$_*/
|
|
1310
|
-
2 && l !== (l = /*$_*/
|
|
1311
|
-
b[32]("faceCollector.retakePhoto") + "") && M(u, l);
|
|
1312
|
-
},
|
|
1313
|
-
d(b) {
|
|
1314
|
-
b && I(e), c = !1, vt(d);
|
|
1315
|
-
}
|
|
1316
|
-
};
|
|
1317
|
-
}
|
|
1318
|
-
function ja(i) {
|
|
1319
|
-
let e, t = (
|
|
1320
|
-
/*$_*/
|
|
1321
|
-
i[32]("faceCollector.everythingOk") + ""
|
|
1322
|
-
), a;
|
|
1323
|
-
return {
|
|
1324
|
-
c() {
|
|
1325
|
-
e = p("h1"), a = P(t), m(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
|
|
1326
|
-
},
|
|
1327
|
-
m(o, r) {
|
|
1328
|
-
R(o, e, r), g(e, a);
|
|
1329
|
-
},
|
|
1330
|
-
p(o, r) {
|
|
1331
|
-
r[1] & /*$_*/
|
|
1332
|
-
2 && t !== (t = /*$_*/
|
|
1333
|
-
o[32]("faceCollector.everythingOk") + "") && M(a, t);
|
|
1334
|
-
},
|
|
1335
|
-
d(o) {
|
|
1336
|
-
o && I(e);
|
|
1337
|
-
}
|
|
1338
|
-
};
|
|
1339
|
-
}
|
|
1340
|
-
function Ka(i) {
|
|
1341
|
-
let e, t, a, o, r = (
|
|
1342
|
-
/*$_*/
|
|
1343
|
-
i[32]("liveness.error.faceQualityInsufficient") + ""
|
|
1344
|
-
), f, n = (
|
|
1345
|
-
/*$unconformitiesStore*/
|
|
1346
|
-
i[33].unconformities
|
|
1347
|
-
), l = [];
|
|
1348
|
-
for (let c = 0; c < n.length; c += 1)
|
|
1349
|
-
l[c] = Qi(Mi(i, n, c));
|
|
1350
|
-
let u = (
|
|
1351
|
-
/*evaluatePhoto*/
|
|
1352
|
-
i[2] && /*$unconformitiesStore*/
|
|
1353
|
-
i[33].unconformities.length == 0 && Xi(i)
|
|
1354
|
-
);
|
|
1355
|
-
return {
|
|
1356
|
-
c() {
|
|
1357
|
-
e = p("div");
|
|
1358
|
-
for (let c = 0; c < l.length; c += 1)
|
|
1359
|
-
l[c].c();
|
|
1360
|
-
t = N(), u && u.c(), a = N(), o = p("h1"), f = P(r), m(e, "class", "flex flex-wrap"), m(o, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1361
|
-
},
|
|
1362
|
-
m(c, d) {
|
|
1363
|
-
R(c, e, d);
|
|
1364
|
-
for (let b = 0; b < l.length; b += 1)
|
|
1365
|
-
l[b] && l[b].m(e, null);
|
|
1366
|
-
g(e, t), u && u.m(e, null), R(c, a, d), R(c, o, d), g(o, f);
|
|
1367
|
-
},
|
|
1368
|
-
p(c, d) {
|
|
1369
|
-
if (d[1] & /*$unconformitiesStore*/
|
|
1370
|
-
4) {
|
|
1371
|
-
n = /*$unconformitiesStore*/
|
|
1372
|
-
c[33].unconformities;
|
|
1373
|
-
let b;
|
|
1374
|
-
for (b = 0; b < n.length; b += 1) {
|
|
1375
|
-
const h = Mi(c, n, b);
|
|
1376
|
-
l[b] ? l[b].p(h, d) : (l[b] = Qi(h), l[b].c(), l[b].m(e, t));
|
|
1377
|
-
}
|
|
1378
|
-
for (; b < l.length; b += 1)
|
|
1379
|
-
l[b].d(1);
|
|
1380
|
-
l.length = n.length;
|
|
1381
|
-
}
|
|
1382
|
-
/*evaluatePhoto*/
|
|
1383
|
-
c[2] && /*$unconformitiesStore*/
|
|
1384
|
-
c[33].unconformities.length == 0 ? u ? u.p(c, d) : (u = Xi(c), u.c(), u.m(e, null)) : u && (u.d(1), u = null), d[1] & /*$_*/
|
|
1385
|
-
2 && r !== (r = /*$_*/
|
|
1386
|
-
c[32]("liveness.error.faceQualityInsufficient") + "") && M(f, r);
|
|
1387
|
-
},
|
|
1388
|
-
d(c) {
|
|
1389
|
-
c && I(e), xi(l, c), u && u.d(), c && I(a), c && I(o);
|
|
1390
|
-
}
|
|
1391
|
-
};
|
|
1392
|
-
}
|
|
1393
|
-
function Ha(i) {
|
|
1394
|
-
let e, t = (
|
|
1395
|
-
/*$_*/
|
|
1396
|
-
i[32]("liveness.error.evaluationError") + ""
|
|
1397
|
-
), a;
|
|
1398
|
-
return {
|
|
1399
|
-
c() {
|
|
1400
|
-
e = p("h1"), a = P(t), m(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1401
|
-
},
|
|
1402
|
-
m(o, r) {
|
|
1403
|
-
R(o, e, r), g(e, a);
|
|
1404
|
-
},
|
|
1405
|
-
p(o, r) {
|
|
1406
|
-
r[1] & /*$_*/
|
|
1407
|
-
2 && t !== (t = /*$_*/
|
|
1408
|
-
o[32]("liveness.error.evaluationError") + "") && M(a, t);
|
|
1409
|
-
},
|
|
1410
|
-
d(o) {
|
|
1411
|
-
o && I(e);
|
|
1412
|
-
}
|
|
1413
|
-
};
|
|
1414
|
-
}
|
|
1415
|
-
function qa(i) {
|
|
1416
|
-
let e, t = (
|
|
1417
|
-
/*$_*/
|
|
1418
|
-
i[32]("faceCollector.unableToCompleteRequest") + ""
|
|
1419
|
-
), a;
|
|
1420
|
-
return {
|
|
1421
|
-
c() {
|
|
1422
|
-
e = p("h1"), a = P(t), m(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1423
|
-
},
|
|
1424
|
-
m(o, r) {
|
|
1425
|
-
R(o, e, r), g(e, a);
|
|
1426
|
-
},
|
|
1427
|
-
p(o, r) {
|
|
1428
|
-
r[1] & /*$_*/
|
|
1429
|
-
2 && t !== (t = /*$_*/
|
|
1430
|
-
o[32]("faceCollector.unableToCompleteRequest") + "") && M(a, t);
|
|
1431
|
-
},
|
|
1432
|
-
d(o) {
|
|
1433
|
-
o && I(e);
|
|
1434
|
-
}
|
|
1435
|
-
};
|
|
1436
|
-
}
|
|
1437
|
-
function Ja(i) {
|
|
1438
|
-
let e, t = (
|
|
1439
|
-
/*$_*/
|
|
1440
|
-
i[32]("faceCollector.lowQualityCapture") + ""
|
|
1441
|
-
), a;
|
|
1442
|
-
return {
|
|
1443
|
-
c() {
|
|
1444
|
-
e = p("h1"), a = P(t), m(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1445
|
-
},
|
|
1446
|
-
m(o, r) {
|
|
1447
|
-
R(o, e, r), g(e, a);
|
|
1448
|
-
},
|
|
1449
|
-
p(o, r) {
|
|
1450
|
-
r[1] & /*$_*/
|
|
1451
|
-
2 && t !== (t = /*$_*/
|
|
1452
|
-
o[32]("faceCollector.lowQualityCapture") + "") && M(a, t);
|
|
1453
|
-
},
|
|
1454
|
-
d(o) {
|
|
1455
|
-
o && I(e);
|
|
1456
|
-
}
|
|
1457
|
-
};
|
|
1458
|
-
}
|
|
1459
|
-
function Qa(i) {
|
|
1460
|
-
let e, t = (
|
|
1461
|
-
/*$_*/
|
|
1462
|
-
i[32]("liveness.error.error") + ""
|
|
1463
|
-
), a, o, r = (
|
|
1464
|
-
/*$_*/
|
|
1465
|
-
i[32]("faceCollector.unaliveCapture") + ""
|
|
1466
|
-
), f;
|
|
1467
|
-
return {
|
|
1468
|
-
c() {
|
|
1469
|
-
e = p("h1"), a = P(t), o = P(": "), f = P(r), m(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1470
|
-
},
|
|
1471
|
-
m(n, l) {
|
|
1472
|
-
R(n, e, l), g(e, a), g(e, o), g(e, f);
|
|
1473
|
-
},
|
|
1474
|
-
p(n, l) {
|
|
1475
|
-
l[1] & /*$_*/
|
|
1476
|
-
2 && t !== (t = /*$_*/
|
|
1477
|
-
n[32]("liveness.error.error") + "") && M(a, t), l[1] & /*$_*/
|
|
1478
|
-
2 && r !== (r = /*$_*/
|
|
1479
|
-
n[32]("faceCollector.unaliveCapture") + "") && M(f, r);
|
|
1480
|
-
},
|
|
1481
|
-
d(n) {
|
|
1482
|
-
n && I(e);
|
|
1483
|
-
}
|
|
1484
|
-
};
|
|
1485
|
-
}
|
|
1486
|
-
function Xa(i) {
|
|
1487
|
-
let e, t = (
|
|
1488
|
-
/*$_*/
|
|
1489
|
-
i[32]("liveness.error.error") + ""
|
|
1490
|
-
), a, o, r = (
|
|
1491
|
-
/*$_*/
|
|
1492
|
-
i[32](
|
|
1493
|
-
/*livenessError*/
|
|
1494
|
-
i[22]
|
|
1495
|
-
) + ""
|
|
1496
|
-
), f;
|
|
1497
|
-
return {
|
|
1498
|
-
c() {
|
|
1499
|
-
e = p("h1"), a = P(t), o = P(": "), f = P(r), m(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
|
1500
|
-
},
|
|
1501
|
-
m(n, l) {
|
|
1502
|
-
R(n, e, l), g(e, a), g(e, o), g(e, f);
|
|
1503
|
-
},
|
|
1504
|
-
p(n, l) {
|
|
1505
|
-
l[1] & /*$_*/
|
|
1506
|
-
2 && t !== (t = /*$_*/
|
|
1507
|
-
n[32]("liveness.error.error") + "") && M(a, t), l[0] & /*livenessError*/
|
|
1508
|
-
4194304 | l[1] & /*$_*/
|
|
1509
|
-
2 && r !== (r = /*$_*/
|
|
1510
|
-
n[32](
|
|
1511
|
-
/*livenessError*/
|
|
1512
|
-
n[22]
|
|
1513
|
-
) + "") && M(f, r);
|
|
1514
|
-
},
|
|
1515
|
-
d(n) {
|
|
1516
|
-
n && I(e);
|
|
1517
|
-
}
|
|
1518
|
-
};
|
|
1519
|
-
}
|
|
1520
|
-
function Qi(i) {
|
|
1521
|
-
let e, t = (
|
|
1522
|
-
/*unconformity*/
|
|
1523
|
-
i[123] + ""
|
|
1524
|
-
), a;
|
|
1525
|
-
return {
|
|
1526
|
-
c() {
|
|
1527
|
-
e = p("div"), a = P(t), m(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
|
1528
|
-
},
|
|
1529
|
-
m(o, r) {
|
|
1530
|
-
R(o, e, r), g(e, a);
|
|
1531
|
-
},
|
|
1532
|
-
p(o, r) {
|
|
1533
|
-
r[1] & /*$unconformitiesStore*/
|
|
1534
|
-
4 && t !== (t = /*unconformity*/
|
|
1535
|
-
o[123] + "") && M(a, t);
|
|
1536
|
-
},
|
|
1537
|
-
d(o) {
|
|
1538
|
-
o && I(e);
|
|
1539
|
-
}
|
|
1540
|
-
};
|
|
1541
|
-
}
|
|
1542
|
-
function Xi(i) {
|
|
1543
|
-
let e, t = (
|
|
1544
|
-
/*$_*/
|
|
1545
|
-
i[32]("faceCollector.noNonconformity") + ""
|
|
1546
|
-
), a;
|
|
1547
|
-
return {
|
|
1548
|
-
c() {
|
|
1549
|
-
e = p("div"), a = P(t), m(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-info text-xl pb-[.25em] m-[.5em]");
|
|
1550
|
-
},
|
|
1551
|
-
m(o, r) {
|
|
1552
|
-
R(o, e, r), g(e, a);
|
|
1553
|
-
},
|
|
1554
|
-
p(o, r) {
|
|
1555
|
-
r[1] & /*$_*/
|
|
1556
|
-
2 && t !== (t = /*$_*/
|
|
1557
|
-
o[32]("faceCollector.noNonconformity") + "") && M(a, t);
|
|
1558
|
-
},
|
|
1559
|
-
d(o) {
|
|
1560
|
-
o && I(e);
|
|
1561
|
-
}
|
|
1562
|
-
};
|
|
1563
|
-
}
|
|
1564
|
-
function Ga(i) {
|
|
1565
|
-
let e, t, a, o, r, f, n, l, u, c, d = (
|
|
1566
|
-
/*$videoStore*/
|
|
1567
|
-
i[35] && Ui(i)
|
|
1568
|
-
);
|
|
1569
|
-
o = new ts({
|
|
1570
|
-
props: {
|
|
1571
|
-
waitingIdrndCaptureEvent: (
|
|
1572
|
-
/*waitingIdrndCaptureEvent*/
|
|
1573
|
-
i[21]
|
|
1574
|
-
),
|
|
1575
|
-
idrndLoading: (
|
|
1576
|
-
/*idrndLoading*/
|
|
1577
|
-
i[19]
|
|
1578
|
-
)
|
|
1579
|
-
}
|
|
1580
|
-
});
|
|
1581
|
-
let b = (
|
|
1582
|
-
/*$captured*/
|
|
1583
|
-
i[26] && zi(i)
|
|
1584
|
-
);
|
|
1585
|
-
const h = [Pa, Na], E = [];
|
|
1586
|
-
function w(v, C) {
|
|
1587
|
-
return (!/*idrndClosed*/
|
|
1588
|
-
v[20] || /*$captured*/
|
|
1589
|
-
v[26]) && /*showUnconformities*/
|
|
1590
|
-
v[3] ? 0 : (
|
|
1591
|
-
/*$cameraStatusStore*/
|
|
1592
|
-
v[23] !== V.OK ? 1 : -1
|
|
1593
|
-
);
|
|
1594
|
-
}
|
|
1595
|
-
return ~(n = w(i)) && (l = E[n] = h[n](i)), {
|
|
1596
|
-
c() {
|
|
1597
|
-
e = p("div"), t = p("div"), d && d.c(), a = N(), he(o.$$.fragment), r = N(), b && b.c(), f = N(), l && l.c(), u = Gi(), this.c = X, m(t, "class", "relative mx-auto"), m(e, "class", "flex flex-col justify-between");
|
|
1598
|
-
},
|
|
1599
|
-
m(v, C) {
|
|
1600
|
-
R(v, e, C), g(e, t), d && d.m(t, null), g(t, a), me(o, t, null), g(t, r), b && b.m(t, null), i[56](e), R(v, f, C), ~n && E[n].m(v, C), R(v, u, C), c = !0;
|
|
1601
|
-
},
|
|
1602
|
-
p(v, C) {
|
|
1603
|
-
/*$videoStore*/
|
|
1604
|
-
v[35] ? d ? (d.p(v, C), C[1] & /*$videoStore*/
|
|
1605
|
-
16 && H(d, 1)) : (d = Ui(v), d.c(), H(d, 1), d.m(t, a)) : d && (Je(), Q(d, 1, 1, () => {
|
|
1606
|
-
d = null;
|
|
1607
|
-
}), Qe());
|
|
1608
|
-
const y = {};
|
|
1609
|
-
C[0] & /*waitingIdrndCaptureEvent*/
|
|
1610
|
-
2097152 && (y.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
|
|
1611
|
-
v[21]), C[0] & /*idrndLoading*/
|
|
1612
|
-
524288 && (y.idrndLoading = /*idrndLoading*/
|
|
1613
|
-
v[19]), o.$set(y), /*$captured*/
|
|
1614
|
-
v[26] ? b ? b.p(v, C) : (b = zi(v), b.c(), b.m(t, null)) : b && (b.d(1), b = null);
|
|
1615
|
-
let S = n;
|
|
1616
|
-
n = w(v), n === S ? ~n && E[n].p(v, C) : (l && (Je(), Q(E[S], 1, 1, () => {
|
|
1617
|
-
E[S] = null;
|
|
1618
|
-
}), Qe()), ~n ? (l = E[n], l ? l.p(v, C) : (l = E[n] = h[n](v), l.c()), H(l, 1), l.m(u.parentNode, u)) : l = null);
|
|
1619
|
-
},
|
|
1620
|
-
i(v) {
|
|
1621
|
-
c || (H(d), H(o.$$.fragment, v), H(l), c = !0);
|
|
1622
|
-
},
|
|
1623
|
-
o(v) {
|
|
1624
|
-
Q(d), Q(o.$$.fragment, v), Q(l), c = !1;
|
|
1625
|
-
},
|
|
1626
|
-
d(v) {
|
|
1627
|
-
v && I(e), d && d.d(), _e(o), b && b.d(), i[56](null), v && I(f), ~n && E[n].d(v), v && I(u);
|
|
1628
|
-
}
|
|
1629
|
-
};
|
|
1630
|
-
}
|
|
1631
|
-
let Ya = 0, Za = 3e3;
|
|
1632
|
-
function xa() {
|
|
1633
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-RC06.js") : import("./index-idlf-detector_a819b3c8_3.3.0-RC06.js");
|
|
1634
|
-
}
|
|
1635
|
-
function $a(i, e, t) {
|
|
1636
|
-
let a, o, r, f, n, l, u, c, d, b, h, E, w, v, C, y, S, Re, le, z, L, A, T, De, x, re, we, Ce, Ne, pt, ae, xt, wt, Ct, Et, $t, ei;
|
|
1637
|
-
D(i, Wt, (s) => t(76, a = s)), D(i, Mt, (s) => t(77, o = s)), D(i, it, (s) => t(79, f = s)), D(i, q, (s) => t(23, n = s)), D(i, Fe, (s) => t(24, l = s)), D(i, Ns, (s) => t(80, u = s)), D(i, st, (s) => t(81, c = s)), D(i, pe, (s) => t(25, d = s)), D(i, Ps, (s) => t(82, b = s)), D(i, Le, (s) => t(26, h = s)), D(i, Ut, (s) => t(83, E = s)), D(i, Zi, (s) => t(27, w = s)), D(i, yi, (s) => t(84, v = s)), D(i, Bs, (s) => t(85, C = s)), D(i, je, (s) => t(86, y = s)), D(i, ke, (s) => t(87, S = s)), D(i, Ws, (s) => t(88, Re = s)), D(i, Ms, (s) => t(89, le = s)), D(i, Vt, (s) => t(28, z = s)), D(i, zt, (s) => t(29, L = s)), D(i, de, (s) => t(30, A = s)), D(i, ee, (s) => t(31, T = s)), D(i, Yi, (s) => t(32, De = s)), D(i, Te, (s) => t(33, x = s)), D(i, ki, (s) => t(90, we = s)), D(i, jt, (s) => t(91, Ce = s)), D(i, at, (s) => t(92, Ne = s)), D(i, Kt, (s) => t(93, pt = s)), D(i, qe, (s) => t(35, ae = s)), D(i, Us, (s) => t(94, xt = s)), D(i, nt, (s) => t(95, wt = s)), D(i, Ti, (s) => t(96, Ct = s)), D(i, Oi, (s) => t(97, Et = s)), D(i, Vs, (s) => t(36, $t = s)), D(i, zs, (s) => t(37, ei = s));
|
|
1638
|
-
let F, te, be, ti, ii = !1, Pe = !1, yt = !1, kt = !1, Tt = (/* @__PURE__ */ new Date()).getTime(), { enableMinutiae: Ot } = e, { videoDimensions: Rt } = e, { noTabs: Dt } = e, { weightsPath: It } = e, { evaluatePhoto: ge } = e, { showCaptureButton: At } = e, { showUnconformities: si } = e, { showConfigButton: ai } = e, { showAutoCaptureButton: Lt } = e, { showCameraButton: ni } = e, { showJustificationField: oi } = e, { minEyeToEyeDist: Be } = e, { showWatermark: li } = e, { videoOverlay: ri } = e, { videoOverlayTransparency: ci } = e, { faceDetectionSensitivity: St } = e, { hidden: Ge } = e, { livenessBlobSize: ui } = e;
|
|
1639
|
-
const Ye = Gt(!1);
|
|
1640
|
-
D(i, Ye, (s) => t(78, r = s));
|
|
1641
|
-
const Ie = Gt("data:image/png;base64");
|
|
1642
|
-
D(i, Ie, (s) => t(34, re = s));
|
|
1643
|
-
let { widgetInstance: J } = e, fi = new wa(), We = !1, Ft = !1, Ze = !0, ne = !0, Me = !1, di = 0, $ = "", Nt = 0, xe = !0, hi = 0;
|
|
1644
|
-
const $e = js.mixin({
|
|
1645
|
-
toast: !0,
|
|
1646
|
-
position: "bottom-left",
|
|
1647
|
-
timer: 13e3,
|
|
1648
|
-
timerProgressBar: !0
|
|
1649
|
-
});
|
|
1650
|
-
Ks(async () => {
|
|
1651
|
-
if (Ri("Mounting Face Collector!"), _(at, Ne = !0, Ne), _(Fe, l = !1, l), mi(), Pt(), j() ? (xa(), is(), fi.startDetection()) : await Ee(), we)
|
|
1652
|
-
try {
|
|
1653
|
-
await Hs(It), ii = !0, ti = await qs();
|
|
1654
|
-
} catch {
|
|
1655
|
-
_(ki, we = !1, we), t(0, At = !0);
|
|
1656
|
-
}
|
|
1657
|
-
fe() || as();
|
|
1658
|
-
});
|
|
1659
|
-
async function Pt() {
|
|
1660
|
-
const [s, O] = (Rt ?? "")?.replaceAll(" ", "")?.split("x")?.map((k) => k ? parseInt(k) : void 0);
|
|
1661
|
-
!s || !O || (fe() ? (await Js(), _(
|
|
1662
|
-
qe,
|
|
1663
|
-
ae = {
|
|
1664
|
-
videoWidth: window.innerWidth,
|
|
1665
|
-
videoHeight: window.innerHeight
|
|
1666
|
-
},
|
|
1667
|
-
ae
|
|
1668
|
-
)) : _(qe, ae = { videoWidth: s, videoHeight: O }, ae));
|
|
1669
|
-
}
|
|
1670
|
-
function mi() {
|
|
1671
|
-
_(it, f = !1, f), _(Le, h = !1, h), _(st, c = Ht.FRONT_CAMERA, c), Lt && _(yi, v = !1, v), _(Vt, z = !1, z), _(ee, T = K.OK, T), _(je, y = "", y), _(Te, x.unconformities = [], x);
|
|
1672
|
-
const s = dt(qt);
|
|
1673
|
-
s.closedMouth = !1, s.isPersonCloseEnough = !1, s.isPersonTooclose = !0, s.isPersonInFrame = !1, qt.set(s), _(ke, S = "", S), _(jt, Ce = !0, Ce);
|
|
1674
|
-
}
|
|
1675
|
-
function is() {
|
|
1676
|
-
J.addEventListener("open", (s) => {
|
|
1677
|
-
const O = s.detail[0].video;
|
|
1678
|
-
_(
|
|
1679
|
-
Oi,
|
|
1680
|
-
Et = {
|
|
1681
|
-
width: O.videoWidth,
|
|
1682
|
-
height: O.videoHeight
|
|
1683
|
-
},
|
|
1684
|
-
Et
|
|
1685
|
-
), t(14, F.srcObject = O.srcObject, F), _(Wt, a = F.srcObject, a), t(19, Ze = !1), Ge || Qs(J), _(Fe, l = !0, l);
|
|
1686
|
-
function k() {
|
|
1687
|
-
ne || He(F, k, !0);
|
|
1688
|
-
}
|
|
1689
|
-
k();
|
|
1690
|
-
}), J.addEventListener("error", (s) => {
|
|
1691
|
-
ie(s), s.detail[0].message.toLowerCase().includes("device in use") ? _(q, n = V.CAMERA_IN_USE_ERROR, n) : s.detail[0].message.toLowerCase().includes("permission") ? _(q, n = V.CAMERA_DENIED_ERROR, n) : s.detail[0].message.toLowerCase().includes("not found") && !fe() ? _(q, n = V.DEVICE_NOT_FOUND_ERROR, n) : _(q, n = V.CAMERA_DENIED_ERROR, n), t(19, Ze = !1);
|
|
1692
|
-
}), J.addEventListener("faceDetection", (s) => {
|
|
1693
|
-
s.detail[0].errors.length > 0 && Di(s.detail[0].errors);
|
|
1694
|
-
}), J.addEventListener("detection", (s) => {
|
|
1695
|
-
s.detail[0].errors.length > 0 && Di(s.detail[0].errors);
|
|
1696
|
-
}), J.addEventListener("close", async (s) => {
|
|
1697
|
-
h || (We = !1), t(20, ne = !0), t(21, Me = !1), n === V.OK && (_(q, n = V.CAMERA_CLOSED_ERROR, n), setTimeout(
|
|
1698
|
-
() => {
|
|
1699
|
-
ne && Ge && (Ri("Reopening camera after close (lost focus on widget)"), Ue());
|
|
1700
|
-
},
|
|
1701
|
-
1e3
|
|
1702
|
-
));
|
|
1703
|
-
}), J.addEventListener("initialize", async (s) => {
|
|
1704
|
-
Ft = !0, _(Ti, Ct = !0, Ct);
|
|
1705
|
-
try {
|
|
1706
|
-
J.setLicense(Xs, "faceDetector");
|
|
1707
|
-
} catch (O) {
|
|
1708
|
-
ie("Error setting license:", O);
|
|
1709
|
-
}
|
|
1710
|
-
pt === ot.Face && !We && !h && Ft && await Bt();
|
|
1711
|
-
}), J.addEventListener("capture", async (s) => {
|
|
1712
|
-
t(22, $ = "");
|
|
1713
|
-
const { encryptedFile: O, photo: k } = s.detail[0];
|
|
1714
|
-
_(nt, wt = O, wt);
|
|
1715
|
-
const B = (await lt(k)).split(",");
|
|
1716
|
-
if (t(21, Me = !1), _(ee, T = K.OK, T), _(Te, x.isLoading = !0, x), _(Le, h = !0, h), We = !1, _(Ie, re = B[0], re), _(de, A = B[1], A), _(je, y = B[1], y), !xt) {
|
|
1717
|
-
let G, ve, wi, Ci;
|
|
1718
|
-
try {
|
|
1719
|
-
if (Ce && !Ii(Be))
|
|
1720
|
-
throw new Error("FACE_TOO_SMALL");
|
|
1721
|
-
const Z = Gs();
|
|
1722
|
-
if (Ce && Z)
|
|
1723
|
-
throw new Error(Z);
|
|
1724
|
-
({ bodyParts: G, icaoWarnings: ve } = await rt(y, ge, (await lt(O)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
|
1725
|
-
"face-unconformities-validated",
|
|
1726
|
-
{
|
|
1727
|
-
detail: {
|
|
1728
|
-
bodyParts: G,
|
|
1729
|
-
icaoWarnings: ve,
|
|
1730
|
-
status: T
|
|
1731
|
-
}
|
|
1732
|
-
}
|
|
1733
|
-
));
|
|
1734
|
-
} catch (Z) {
|
|
1735
|
-
ie(Z);
|
|
1736
|
-
let ye = Oe.UNKNOWN, Ve = [], Ei = [];
|
|
1737
|
-
Z instanceof Jt && Z.response?.status === 400 ? Z.response.data && Array.isArray(Z.response.data.bodyParts) ? (Ve = Z.response.data.bodyParts, Ei = Z.response.data.icaoWarnings, wi = Z.response.data.invalidLivenessCounter, Ci = Z.response.data.invalidLivenessLimit, ye = Ve.find((Ss) => Ss.livenessResult.error)?.livenessResult.error_code, _(ee, T = K.LIVENESS_DETECTION_FAILURE, T), t(22, $ = Oe[ye]), ie("Liveness error:", ye)) : _(ee, T = K.TEMPLATE_EXTRACTION_ERROR, T) : Z instanceof Error && Ys.includes(Z.message) ? (_(ee, T = K.UNKNOWN_LIVENESS_ERROR, T), ye = Z.message, t(22, $ = Oe[ye]), Ve = vi(), Ve[0].livenessResult = {
|
|
1738
|
-
error: $,
|
|
1739
|
-
error_code: ye
|
|
1740
|
-
}) : ge && $e.fire({
|
|
1741
|
-
icon: "error",
|
|
1742
|
-
title: "Falha ao comunicar com serviço de Liveness"
|
|
1743
|
-
}), _(Te, x.isLoading = !1, x), window.dispatchEvent(new CustomEvent(
|
|
1744
|
-
"face-unconformities-validated",
|
|
1745
|
-
{
|
|
1746
|
-
detail: {
|
|
1747
|
-
bodyParts: Ve,
|
|
1748
|
-
errorCode: ye,
|
|
1749
|
-
translatedError: De($),
|
|
1750
|
-
status: T,
|
|
1751
|
-
icaoWarnings: Ei,
|
|
1752
|
-
invalidLivenessCounter: wi,
|
|
1753
|
-
invalidLivenessLimit: Ci
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
));
|
|
1757
|
-
return;
|
|
1758
|
-
}
|
|
1759
|
-
if (T !== K.OK) {
|
|
1760
|
-
ve && Ke(ve), _(Te, x.isLoading = !1, x);
|
|
1761
|
-
return;
|
|
1762
|
-
}
|
|
1763
|
-
G[0].livenessResult && bi(G[0].livenessResult), G.length !== 0 && G[0].data && _(de, A = G[0].data, A), Ke(ve);
|
|
1764
|
-
return;
|
|
1765
|
-
}
|
|
1766
|
-
let U, Y;
|
|
1767
|
-
try {
|
|
1768
|
-
Y = await Zs(O), bi(Y.data);
|
|
1769
|
-
} catch (G) {
|
|
1770
|
-
_(ee, T = K.UNKNOWN_LIVENESS_ERROR, T), ie(G), G instanceof Jt && G.response?.status === 400 ? (U = G.response.data.error_code, t(22, $ = Oe[U]), ie("Liveness error:", U), _(ee, T = K.LIVENESS_DETECTION_FAILURE, T)) : $e.fire({
|
|
1771
|
-
icon: "error",
|
|
1772
|
-
title: "Falha ao comunicar com serviço de Liveness"
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
if (T !== K.OK) {
|
|
1776
|
-
_(Te, x.isLoading = !1, x), window.dispatchEvent(new CustomEvent(
|
|
1777
|
-
"face-unconformities-validated",
|
|
1778
|
-
{
|
|
1779
|
-
detail: {
|
|
1780
|
-
bodyParts: [
|
|
1781
|
-
{
|
|
1782
|
-
bodyPart: "FACE",
|
|
1783
|
-
data: y,
|
|
1784
|
-
livenessBlob: (await lt(O)).split(",")[1],
|
|
1785
|
-
...Y && { livenessResult: Y }
|
|
1786
|
-
}
|
|
1787
|
-
],
|
|
1788
|
-
...U && { errorCode: U },
|
|
1789
|
-
...$ && { translatedError: De($) },
|
|
1790
|
-
status: T
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
));
|
|
1794
|
-
return;
|
|
1795
|
-
}
|
|
1796
|
-
let { bodyParts: ce, icaoWarnings: ue } = await rt(y, ge);
|
|
1797
|
-
window.dispatchEvent(new CustomEvent(
|
|
1798
|
-
"face-unconformities-validated",
|
|
1799
|
-
{
|
|
1800
|
-
detail: {
|
|
1801
|
-
bodyParts: ce,
|
|
1802
|
-
icaoWarnings: ue,
|
|
1803
|
-
status: T,
|
|
1804
|
-
errorCode: U,
|
|
1805
|
-
...$ && { translatedError: De($) }
|
|
1806
|
-
}
|
|
1807
|
-
}
|
|
1808
|
-
)), ce[0].data && _(de, A = ce[0].data, A), Ke(ue);
|
|
1809
|
-
});
|
|
1810
|
-
}
|
|
1811
|
-
async function Ee(s) {
|
|
1812
|
-
if (!xe) {
|
|
1813
|
-
_(q, n = V.CAMERA_ORIENTATION_PORTRAIT, n);
|
|
1814
|
-
return;
|
|
1815
|
-
}
|
|
1816
|
-
await Pt(), j() ? Bt() : await ss(ae.videoWidth, ae.videoHeight, s);
|
|
1817
|
-
}
|
|
1818
|
-
async function Bt() {
|
|
1819
|
-
if (j()) {
|
|
1820
|
-
if (await Pt(), !b[0]?.deviceId) {
|
|
1821
|
-
try {
|
|
1822
|
-
await Ai(640, 480);
|
|
1823
|
-
} catch (s) {
|
|
1824
|
-
const O = s, k = Se(s) && s.constraint ? s.constraint : "";
|
|
1825
|
-
ie(O.message, k), Se(O) && "message" in O && O.message.includes("Requested device not found") && _(q, n = V.DEVICE_NOT_FOUND_ERROR, n);
|
|
1826
|
-
}
|
|
1827
|
-
await Qt(), _(pe, d = b[0].deviceId, d);
|
|
1828
|
-
}
|
|
1829
|
-
_(q, n = V.OK, n), J && "openCamera" in J && J.openCamera(), We = !0, t(20, ne = !1), t(19, Ze = !0);
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
async function et() {
|
|
1833
|
-
if (we && !ii)
|
|
1834
|
-
return He(F, et);
|
|
1835
|
-
if (F) {
|
|
1836
|
-
if (pt !== ot.Face && !Dt)
|
|
1837
|
-
return He(F, et);
|
|
1838
|
-
_(Fe, l = !0, l), _(at, Ne = !1, Ne), we && (r || _(Ye, r = !0, r)), He(F, et);
|
|
1839
|
-
}
|
|
1840
|
-
}
|
|
1841
|
-
async function _i(s = !0) {
|
|
1842
|
-
if (_(ee, T = K.OK, T), j()) {
|
|
1843
|
-
_(jt, Ce = s, Ce), t(21, Me = !0), J.takePhoto();
|
|
1844
|
-
return;
|
|
1845
|
-
}
|
|
1846
|
-
let O = null;
|
|
1847
|
-
try {
|
|
1848
|
-
if (we) {
|
|
1849
|
-
const Y = await la(F, St);
|
|
1850
|
-
if (O = Y.canvas, _(Le, h = !0, h), !Y.result && s) {
|
|
1851
|
-
const ve = O.toDataURL("image/jpeg").split(",");
|
|
1852
|
-
throw _(Ie, re = ve[0], re), _(de, A = ve[1], A), new Error("FACE_NOT_FOUND");
|
|
1853
|
-
}
|
|
1854
|
-
const ce = O.toDataURL("image/jpeg").split(",");
|
|
1855
|
-
_(Ie, re = ce[0], re), _(de, A = ce[1], A), _(je, y = ce[1], y);
|
|
1856
|
-
let ue, G;
|
|
1857
|
-
if (!Ii(Be) && s)
|
|
1858
|
-
throw new Error("FACE_TOO_SMALL");
|
|
1859
|
-
({ bodyParts: ue, icaoWarnings: G } = await rt(A, ge)), window.dispatchEvent(new CustomEvent(
|
|
1860
|
-
"face-unconformities-validated",
|
|
1861
|
-
{
|
|
1862
|
-
detail: {
|
|
1863
|
-
bodyParts: ue,
|
|
1864
|
-
icaoWarnings: G,
|
|
1865
|
-
status: T
|
|
1866
|
-
}
|
|
1867
|
-
}
|
|
1868
|
-
)), ue.length !== 0 && ue[0].data && _(de, A = ue[0].data, A), Ke(G);
|
|
1869
|
-
return;
|
|
1870
|
-
}
|
|
1871
|
-
_(Le, h = !0, h);
|
|
1872
|
-
const k = await ns();
|
|
1873
|
-
_(Ie, re = k[0], re), _(de, A = k[1], A), _(je, y = k[1], y);
|
|
1874
|
-
let { bodyParts: B, icaoWarnings: U } = await rt(A, ge);
|
|
1875
|
-
window.dispatchEvent(new CustomEvent(
|
|
1876
|
-
"face-unconformities-validated",
|
|
1877
|
-
{
|
|
1878
|
-
detail: {
|
|
1879
|
-
bodyParts: B,
|
|
1880
|
-
icaoWarnings: U,
|
|
1881
|
-
status: T
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
)), B.length !== 0 && B[0].data && _(de, A = B[0].data, A), Ke(U);
|
|
1885
|
-
} catch (k) {
|
|
1886
|
-
ie(k);
|
|
1887
|
-
let B = Oe.UNKNOWN, U = [], Y = [];
|
|
1888
|
-
if (k instanceof Jt && k.response?.status === 400)
|
|
1889
|
-
if (k.response.data && Array.isArray(k.response.data.bodyParts)) {
|
|
1890
|
-
U = k.response.data.bodyParts, Y = k.response.data.icaoWarnings;
|
|
1891
|
-
const ce = U.find((ue) => ue.livenessResult.error);
|
|
1892
|
-
B = ce?.livenessResult.error_code, _(ee, T = K.LIVENESS_DETECTION_FAILURE, T), ce?.livenessResult.error_code || _(ee, T = K.UNKNOWN_LIVENESS_ERROR, T), t(22, $ = Oe[B]), ie("Liveness error:", B);
|
|
1893
|
-
} else
|
|
1894
|
-
_(ee, T = K.TEMPLATE_EXTRACTION_ERROR, T);
|
|
1895
|
-
else
|
|
1896
|
-
k instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(k.message) ? (_(ee, T = K.LIVENESS_DETECTION_FAILURE, T), B = k.message, t(22, $ = Oe[B]), U = vi()) : (_(ee, T = K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, T), ge && $e.fire({
|
|
1897
|
-
icon: "error",
|
|
1898
|
-
title: "Falha ao comunicar com serviço de Liveness"
|
|
1899
|
-
}));
|
|
1900
|
-
_(Te, x.isLoading = !1, x), window.dispatchEvent(new CustomEvent(
|
|
1901
|
-
"face-unconformities-validated",
|
|
1902
|
-
{
|
|
1903
|
-
detail: {
|
|
1904
|
-
bodyParts: U,
|
|
1905
|
-
errorCode: B,
|
|
1906
|
-
translatedError: De($),
|
|
1907
|
-
status: T,
|
|
1908
|
-
icaoWarnings: Y
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
));
|
|
1912
|
-
}
|
|
1913
|
-
}
|
|
1914
|
-
function tt() {
|
|
1915
|
-
const s = {
|
|
1916
|
-
bodyPart: "FACE",
|
|
1917
|
-
data: A,
|
|
1918
|
-
justification: L
|
|
1919
|
-
};
|
|
1920
|
-
_(Vt, z = !0, z), dt(nt) && lt(dt(nt)).then((O) => {
|
|
1921
|
-
s.livenessBlob = O.split(",")[1];
|
|
1922
|
-
}), window.dispatchEvent(new CustomEvent("export-face", { detail: s }));
|
|
1923
|
-
}
|
|
1924
|
-
function Ae() {
|
|
1925
|
-
window.dispatchEvent(new CustomEvent("face-scrapped")), mi(), ne && Bt();
|
|
1926
|
-
}
|
|
1927
|
-
function bi(s) {
|
|
1928
|
-
let O = "", k = "success";
|
|
1929
|
-
s.isAlive ? O = `Vivacidade de face (${s.face_liveness.probability.toFixed(2)}) e de captura (${s.capture_liveness.probability}, ${s.capture_liveness.score.toFixed(2)}) verificados!` : s?.face_liveness?.probability && (k = "error", O = `Vivacidade de face (${s.face_liveness.probability.toFixed(2)}) e de captura (${s.capture_liveness.probability}, ${s.capture_liveness.score.toFixed(2)}) insuficientes!`), le && $e.fire({ icon: k, title: O });
|
|
1930
|
-
}
|
|
1931
|
-
async function ss(s, O, k) {
|
|
1932
|
-
try {
|
|
1933
|
-
const { stream: B, deviceId: U } = await Ai(Re.width, Re.height, c, k);
|
|
1934
|
-
_(Wt, a = B, a), _(pe, d = U || b[0].deviceId, d);
|
|
1935
|
-
} catch (B) {
|
|
1936
|
-
const U = B, Y = Se(B) && B.constraint ? B.constraint : "";
|
|
1937
|
-
ie(U.message, Y), Se(U) && "message" in U && U.message.toLowerCase().includes("permission") ? (ie("User didn't give permission to use camera!"), _(q, n = V.CAMERA_DENIED_ERROR, n)) : Se(U) && "message" in U && U.message.toLowerCase().includes("not found") && !fe() ? _(q, n = V.DEVICE_NOT_FOUND_ERROR, n) : Y.includes("width") || Y.includes("height") ? (ie(`Camera does not meet the minimum supported requirements! (${Y})`), _(q, n = V.CAMERA_UNSUPPORTED, n)) : (_(q, n = V.CAMERA_DENIED_ERROR, n), ie("Unable to open camera!"));
|
|
1938
|
-
}
|
|
1939
|
-
}
|
|
1940
|
-
async function Ue() {
|
|
1941
|
-
_(pe, d = "", d), await Ee();
|
|
1942
|
-
}
|
|
1943
|
-
function as() {
|
|
1944
|
-
navigator.mediaDevices.ondevicechange = async (s) => {
|
|
1945
|
-
s.type == "devicechange" && (await Qt(), n !== V.OK ? await Ue() : (!j() && !a.active || j() && !ne) && (ct(J), _(q, n = V.DEVICE_NOT_FOUND_ERROR, n), t(20, ne = !0)));
|
|
1946
|
-
};
|
|
1947
|
-
}
|
|
1948
|
-
async function gi() {
|
|
1949
|
-
_(it, f = !1, f);
|
|
1950
|
-
const s = (/* @__PURE__ */ new Date()).getTime();
|
|
1951
|
-
if (s - Tt > 5e3) {
|
|
1952
|
-
Tt = s;
|
|
1953
|
-
try {
|
|
1954
|
-
if (F.width === 0 || F.height === 0)
|
|
1955
|
-
return;
|
|
1956
|
-
const k = await ra(F);
|
|
1957
|
-
if (k < 50) {
|
|
1958
|
-
_(ke, S = "faceCollector.illuminationTooLow", S);
|
|
1959
|
-
return;
|
|
1960
|
-
}
|
|
1961
|
-
if (k > 180) {
|
|
1962
|
-
_(ke, S = "faceCollector.illuminationTooHigh", S);
|
|
1963
|
-
return;
|
|
1964
|
-
}
|
|
1965
|
-
} catch (k) {
|
|
1966
|
-
Li("An error occurred while getting the video lighting level: ", k);
|
|
1967
|
-
}
|
|
1968
|
-
try {
|
|
1969
|
-
if (await ca(F) < 4.5) {
|
|
1970
|
-
_(ke, S = "faceCollector.lowSharpness", S);
|
|
1971
|
-
return;
|
|
1972
|
-
}
|
|
1973
|
-
} catch (k) {
|
|
1974
|
-
Li("An error occurred while getting the video sharpness level: ", k);
|
|
1975
|
-
}
|
|
1976
|
-
_(ke, S = "faceCollector.faceWasNotFound", S);
|
|
1977
|
-
} else
|
|
1978
|
-
yt || (yt = !0, setTimeout(
|
|
1979
|
-
() => {
|
|
1980
|
-
let k = [
|
|
1981
|
-
"faceCollector.faceWasNotFound",
|
|
1982
|
-
"faceCollector.illuminationTooLow",
|
|
1983
|
-
"faceCollector.lowSharpness",
|
|
1984
|
-
"faceCollector.illuminationTooHigh"
|
|
1985
|
-
];
|
|
1986
|
-
yt = !1, t(18, kt = !1), S && !k.includes(S) && _(ke, S = "", S);
|
|
1987
|
-
},
|
|
1988
|
-
1500
|
|
1989
|
-
));
|
|
1990
|
-
}
|
|
1991
|
-
function vi() {
|
|
1992
|
-
return [
|
|
1993
|
-
{
|
|
1994
|
-
bodyPart: "FACE",
|
|
1995
|
-
data: y,
|
|
1996
|
-
format: "jpg",
|
|
1997
|
-
capturedEyeToEyeDist: C,
|
|
1998
|
-
minEyeToEyeDist: Be
|
|
1999
|
-
}
|
|
2000
|
-
];
|
|
2001
|
-
}
|
|
2002
|
-
async function ns() {
|
|
2003
|
-
const s = document.createElement("canvas"), O = s.getContext("2d");
|
|
2004
|
-
return s.width = F.width, s.height = F.height, O?.drawImage(F, 0, 0, s.width, s.height), s.toDataURL("image/jpeg").split(",");
|
|
2005
|
-
}
|
|
2006
|
-
const os = qt.subscribe((s) => {
|
|
2007
|
-
let O = "";
|
|
2008
|
-
if (s.isPersonCloseEnough ? s.isPersonTooclose ? O = "faceCollector.moveAwayCamera" : s.isPersonInFrame ? s.closedMouth || (O = "faceCollector.dontOpenMouth") : O = "faceCollector.stayInFrame" : O = "faceCollector.comeCloserCamera", f && xs(O), !h && v && f && !w && !Pe && s.isPersonInFrame && s.closedMouth && !(!s.isPersonCloseEnough || s.isPersonTooclose)) {
|
|
2009
|
-
t(17, Pe = !0), hi = (/* @__PURE__ */ new Date()).getTime() + Za;
|
|
2010
|
-
const k = setInterval(
|
|
2011
|
-
async () => {
|
|
2012
|
-
if (!v || h || w || Me || j() && ne || !s.isPersonCloseEnough || s.isPersonTooclose || !s.closedMouth || !s.isPersonInFrame) {
|
|
2013
|
-
t(17, Pe = !1), setTimeout(
|
|
2014
|
-
() => {
|
|
2015
|
-
},
|
|
2016
|
-
1500
|
|
2017
|
-
), clearInterval(k);
|
|
2018
|
-
return;
|
|
2019
|
-
}
|
|
2020
|
-
const B = (/* @__PURE__ */ new Date()).getTime();
|
|
2021
|
-
Math.floor((hi - B) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(k), t(17, Pe = !1), _i());
|
|
2022
|
-
},
|
|
2023
|
-
100
|
|
2024
|
-
);
|
|
2025
|
-
}
|
|
2026
|
-
}), ls = Le.subscribe((s) => {
|
|
2027
|
-
be && (s ? (be.classList.remove("flex"), be.classList.add("hidden")) : (be.classList.add("flex"), be.classList.remove("hidden")));
|
|
2028
|
-
}), rs = Ut.subscribe((s) => {
|
|
2029
|
-
F && s && (Xt("setting null in video srcObject"), t(14, F.srcObject = null, F), t(14, F.src = "", F), _(pe, d = null, d));
|
|
2030
|
-
});
|
|
2031
|
-
Kt.subscribe(async (s) => {
|
|
2032
|
-
s === ot.Face && (await Qt(), j() && _(pe, d = b[0]?.deviceId, d));
|
|
2033
|
-
});
|
|
2034
|
-
const cs = pe.subscribe(async (s) => {
|
|
2035
|
-
if (!(!j() && !a || !s || j() && ne))
|
|
2036
|
-
try {
|
|
2037
|
-
if (j()) {
|
|
2038
|
-
await ct(J), await Ee();
|
|
2039
|
-
return;
|
|
2040
|
-
}
|
|
2041
|
-
t(14, F.srcObject = a, F), _(Ut, E = !1, E), xe ? _(q, n = V.OK, n) : _(q, n = V.CAMERA_ORIENTATION_PORTRAIT, n), a.getTracks().forEach((O) => {
|
|
2042
|
-
O.readyState === "live" && Xt(`Camera ${O.label} (${O.id}) opened successfully!`);
|
|
2043
|
-
}), _(q, n = V.OK, n), $s(F);
|
|
2044
|
-
} catch (O) {
|
|
2045
|
-
const k = O;
|
|
2046
|
-
t(20, ne = !0), Se(k) && "message" in k && k.message.includes("Requested device not found") && _(q, n = V.DEVICE_NOT_FOUND_ERROR, n);
|
|
2047
|
-
}
|
|
2048
|
-
}), us = Kt.subscribe(async (s) => {
|
|
2049
|
-
s === ot.Face && j() && !We && !h && Ft && await Ee();
|
|
2050
|
-
}), fs = Ye.subscribe(async (s) => {
|
|
2051
|
-
s && pi();
|
|
2052
|
-
}), ds = ea.subscribe(async (s) => {
|
|
2053
|
-
if (b[0]?.deviceId) {
|
|
2054
|
-
if (ct(), !fe() || j()) {
|
|
2055
|
-
const k = (b.findIndex((U) => U.deviceId === d) + 1) % b.length, B = b[k].deviceId;
|
|
2056
|
-
j() ? _(pe, d = B, d) : await Ee(B);
|
|
2057
|
-
return;
|
|
2058
|
-
}
|
|
2059
|
-
s ? (_(st, c = Ht.REAR_CAMERA, c), await Ee()) : (_(st, c = Ht.FRONT_CAMERA, c), await Ee());
|
|
2060
|
-
}
|
|
2061
|
-
}), hs = ta.subscribe(async (s) => {
|
|
2062
|
-
!s.isSupported || !fe() || u != "FACE" || (xe = s.orientation.includes("portrait"), xe ? F && !l ? await Ue() : l && _(q, n = V.OK, n) : _(q, n = V.CAMERA_ORIENTATION_PORTRAIT, n));
|
|
2063
|
-
}), ms = Yt.subscribe((s) => {
|
|
2064
|
-
s && window.dispatchEvent(new CustomEvent("console-open-status", { detail: { isOpen: s } }));
|
|
2065
|
-
});
|
|
2066
|
-
async function pi() {
|
|
2067
|
-
let s;
|
|
2068
|
-
try {
|
|
2069
|
-
if (Nt >= Ya) {
|
|
2070
|
-
Nt = 0;
|
|
2071
|
-
let O;
|
|
2072
|
-
if (O = ga(F, ti), s = await O.withFaceLandmarks(), te.getContext("2d")?.clearRect(0, 0, te.width, te.height), s != null) {
|
|
2073
|
-
const k = va(te, F, !0);
|
|
2074
|
-
ia(te, F, k);
|
|
2075
|
-
const B = pa(s, k);
|
|
2076
|
-
sa(B) ? (aa(B, te, Ot), _(it, f = !0, f), t(18, kt = !0), Tt = (/* @__PURE__ */ new Date()).getTime()) : gi();
|
|
2077
|
-
} else
|
|
2078
|
-
gi();
|
|
2079
|
-
} else
|
|
2080
|
-
Nt++;
|
|
2081
|
-
} catch {
|
|
2082
|
-
} finally {
|
|
2083
|
-
r && He(F, pi);
|
|
2084
|
-
}
|
|
2085
|
-
}
|
|
2086
|
-
Mt.subscribe(async (s) => {
|
|
2087
|
-
s && (Ae(), _(Mt, o = !1, o));
|
|
2088
|
-
});
|
|
2089
|
-
const _s = Fe.subscribe((s) => {
|
|
2090
|
-
s && window.dispatchEvent(new CustomEvent("brycc-camera-ready", { detail: { stream: a } }));
|
|
2091
|
-
}), bs = at.subscribe((s) => {
|
|
2092
|
-
s && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
2093
|
-
});
|
|
2094
|
-
na(() => {
|
|
2095
|
-
Xt("Destroying face collector"), ct(J), ls(), os(), rs(), cs(), us(), clearInterval(di), fs(), ds(), hs(), ms(), _s(), bs(), di = 0, fi.stopDetection();
|
|
2096
|
-
});
|
|
2097
|
-
function gs(s) {
|
|
2098
|
-
ft[s ? "unshift" : "push"](() => {
|
|
2099
|
-
J = s, t(1, J);
|
|
2100
|
-
});
|
|
2101
|
-
}
|
|
2102
|
-
function vs(s) {
|
|
2103
|
-
ft[s ? "unshift" : "push"](() => {
|
|
2104
|
-
F = s, t(14, F);
|
|
2105
|
-
});
|
|
2106
|
-
}
|
|
2107
|
-
const ps = () => {
|
|
2108
|
-
j() || (t(14, F.width = ae.videoWidth, F), t(14, F.height = ae.videoHeight, F), t(15, te.width = ae.videoWidth, te), t(15, te.height = ae.videoHeight, te));
|
|
2109
|
-
};
|
|
2110
|
-
function ws(s) {
|
|
2111
|
-
ft[s ? "unshift" : "push"](() => {
|
|
2112
|
-
te = s, t(15, te);
|
|
2113
|
-
});
|
|
2114
|
-
}
|
|
2115
|
-
const Cs = () => tt(), Es = () => Ae();
|
|
2116
|
-
function ys(s) {
|
|
2117
|
-
ft[s ? "unshift" : "push"](() => {
|
|
2118
|
-
be = s, t(16, be);
|
|
2119
|
-
});
|
|
2120
|
-
}
|
|
2121
|
-
const ks = () => tt(), Ts = () => Ae();
|
|
2122
|
-
function Os() {
|
|
2123
|
-
L = this.value, zt.set(L);
|
|
2124
|
-
}
|
|
2125
|
-
const Rs = () => tt(), Ds = () => Ae();
|
|
2126
|
-
function Is() {
|
|
2127
|
-
L = this.value, zt.set(L);
|
|
2128
|
-
}
|
|
2129
|
-
const As = () => Ae(), Ls = async () => {
|
|
2130
|
-
await Ue();
|
|
2131
|
-
};
|
|
2132
|
-
return i.$$set = (s) => {
|
|
2133
|
-
"enableMinutiae" in s && t(43, Ot = s.enableMinutiae), "videoDimensions" in s && t(44, Rt = s.videoDimensions), "noTabs" in s && t(45, Dt = s.noTabs), "weightsPath" in s && t(46, It = s.weightsPath), "evaluatePhoto" in s && t(2, ge = s.evaluatePhoto), "showCaptureButton" in s && t(0, At = s.showCaptureButton), "showUnconformities" in s && t(3, si = s.showUnconformities), "showConfigButton" in s && t(4, ai = s.showConfigButton), "showAutoCaptureButton" in s && t(5, Lt = s.showAutoCaptureButton), "showCameraButton" in s && t(6, ni = s.showCameraButton), "showJustificationField" in s && t(7, oi = s.showJustificationField), "minEyeToEyeDist" in s && t(47, Be = s.minEyeToEyeDist), "showWatermark" in s && t(8, li = s.showWatermark), "videoOverlay" in s && t(9, ri = s.videoOverlay), "videoOverlayTransparency" in s && t(10, ci = s.videoOverlayTransparency), "faceDetectionSensitivity" in s && t(48, St = s.faceDetectionSensitivity), "hidden" in s && t(49, Ge = s.hidden), "livenessBlobSize" in s && t(11, ui = s.livenessBlobSize), "widgetInstance" in s && t(1, J = s.widgetInstance);
|
|
2134
|
-
}, [
|
|
2135
|
-
At,
|
|
2136
|
-
J,
|
|
2137
|
-
ge,
|
|
2138
|
-
si,
|
|
2139
|
-
ai,
|
|
2140
|
-
Lt,
|
|
2141
|
-
ni,
|
|
2142
|
-
oi,
|
|
2143
|
-
li,
|
|
2144
|
-
ri,
|
|
2145
|
-
ci,
|
|
2146
|
-
ui,
|
|
2147
|
-
et,
|
|
2148
|
-
_i,
|
|
2149
|
-
F,
|
|
2150
|
-
te,
|
|
2151
|
-
be,
|
|
2152
|
-
Pe,
|
|
2153
|
-
kt,
|
|
2154
|
-
Ze,
|
|
2155
|
-
ne,
|
|
2156
|
-
Me,
|
|
2157
|
-
$,
|
|
2158
|
-
n,
|
|
2159
|
-
l,
|
|
2160
|
-
d,
|
|
2161
|
-
h,
|
|
2162
|
-
w,
|
|
2163
|
-
z,
|
|
2164
|
-
L,
|
|
2165
|
-
A,
|
|
2166
|
-
T,
|
|
2167
|
-
De,
|
|
2168
|
-
x,
|
|
2169
|
-
re,
|
|
2170
|
-
ae,
|
|
2171
|
-
$t,
|
|
2172
|
-
ei,
|
|
2173
|
-
Ye,
|
|
2174
|
-
Ie,
|
|
2175
|
-
tt,
|
|
2176
|
-
Ae,
|
|
2177
|
-
Ue,
|
|
2178
|
-
Ot,
|
|
2179
|
-
Rt,
|
|
2180
|
-
Dt,
|
|
2181
|
-
It,
|
|
2182
|
-
Be,
|
|
2183
|
-
St,
|
|
2184
|
-
Ge,
|
|
2185
|
-
gs,
|
|
2186
|
-
vs,
|
|
2187
|
-
ps,
|
|
2188
|
-
ws,
|
|
2189
|
-
Cs,
|
|
2190
|
-
Es,
|
|
2191
|
-
ys,
|
|
2192
|
-
ks,
|
|
2193
|
-
Ts,
|
|
2194
|
-
Os,
|
|
2195
|
-
Rs,
|
|
2196
|
-
Ds,
|
|
2197
|
-
Is,
|
|
2198
|
-
As,
|
|
2199
|
-
Ls
|
|
2200
|
-
];
|
|
2201
|
-
}
|
|
2202
|
-
class en extends mt {
|
|
2203
|
-
constructor(e) {
|
|
2204
|
-
super(), _t(
|
|
2205
|
-
this,
|
|
2206
|
-
{
|
|
2207
|
-
target: this.shadowRoot,
|
|
2208
|
-
props: gt(this.attributes),
|
|
2209
|
-
customElement: !0
|
|
2210
|
-
},
|
|
2211
|
-
$a,
|
|
2212
|
-
Ga,
|
|
2213
|
-
bt,
|
|
2214
|
-
{
|
|
2215
|
-
enableMinutiae: 43,
|
|
2216
|
-
videoDimensions: 44,
|
|
2217
|
-
noTabs: 45,
|
|
2218
|
-
weightsPath: 46,
|
|
2219
|
-
evaluatePhoto: 2,
|
|
2220
|
-
showCaptureButton: 0,
|
|
2221
|
-
showUnconformities: 3,
|
|
2222
|
-
showConfigButton: 4,
|
|
2223
|
-
showAutoCaptureButton: 5,
|
|
2224
|
-
showCameraButton: 6,
|
|
2225
|
-
showJustificationField: 7,
|
|
2226
|
-
minEyeToEyeDist: 47,
|
|
2227
|
-
showWatermark: 8,
|
|
2228
|
-
videoOverlay: 9,
|
|
2229
|
-
videoOverlayTransparency: 10,
|
|
2230
|
-
faceDetectionSensitivity: 48,
|
|
2231
|
-
hidden: 49,
|
|
2232
|
-
livenessBlobSize: 11,
|
|
2233
|
-
widgetInstance: 1,
|
|
2234
|
-
play: 12,
|
|
2235
|
-
capture: 13
|
|
2236
|
-
},
|
|
2237
|
-
null,
|
|
2238
|
-
[-1, -1, -1, -1, -1]
|
|
2239
|
-
), e && (e.target && R(e.target, this, e.anchor), e.props && (this.$set(e.props), W()));
|
|
2240
|
-
}
|
|
2241
|
-
static get observedAttributes() {
|
|
2242
|
-
return [
|
|
2243
|
-
"enableMinutiae",
|
|
2244
|
-
"videoDimensions",
|
|
2245
|
-
"noTabs",
|
|
2246
|
-
"weightsPath",
|
|
2247
|
-
"evaluatePhoto",
|
|
2248
|
-
"showCaptureButton",
|
|
2249
|
-
"showUnconformities",
|
|
2250
|
-
"showConfigButton",
|
|
2251
|
-
"showAutoCaptureButton",
|
|
2252
|
-
"showCameraButton",
|
|
2253
|
-
"showJustificationField",
|
|
2254
|
-
"minEyeToEyeDist",
|
|
2255
|
-
"showWatermark",
|
|
2256
|
-
"videoOverlay",
|
|
2257
|
-
"videoOverlayTransparency",
|
|
2258
|
-
"faceDetectionSensitivity",
|
|
2259
|
-
"hidden",
|
|
2260
|
-
"livenessBlobSize",
|
|
2261
|
-
"widgetInstance",
|
|
2262
|
-
"play",
|
|
2263
|
-
"capture"
|
|
2264
|
-
];
|
|
2265
|
-
}
|
|
2266
|
-
get enableMinutiae() {
|
|
2267
|
-
return this.$$.ctx[43];
|
|
2268
|
-
}
|
|
2269
|
-
set enableMinutiae(e) {
|
|
2270
|
-
this.$$set({ enableMinutiae: e }), W();
|
|
2271
|
-
}
|
|
2272
|
-
get videoDimensions() {
|
|
2273
|
-
return this.$$.ctx[44];
|
|
2274
|
-
}
|
|
2275
|
-
set videoDimensions(e) {
|
|
2276
|
-
this.$$set({ videoDimensions: e }), W();
|
|
2277
|
-
}
|
|
2278
|
-
get noTabs() {
|
|
2279
|
-
return this.$$.ctx[45];
|
|
2280
|
-
}
|
|
2281
|
-
set noTabs(e) {
|
|
2282
|
-
this.$$set({ noTabs: e }), W();
|
|
2283
|
-
}
|
|
2284
|
-
get weightsPath() {
|
|
2285
|
-
return this.$$.ctx[46];
|
|
2286
|
-
}
|
|
2287
|
-
set weightsPath(e) {
|
|
2288
|
-
this.$$set({ weightsPath: e }), W();
|
|
2289
|
-
}
|
|
2290
|
-
get evaluatePhoto() {
|
|
2291
|
-
return this.$$.ctx[2];
|
|
2292
|
-
}
|
|
2293
|
-
set evaluatePhoto(e) {
|
|
2294
|
-
this.$$set({ evaluatePhoto: e }), W();
|
|
2295
|
-
}
|
|
2296
|
-
get showCaptureButton() {
|
|
2297
|
-
return this.$$.ctx[0];
|
|
2298
|
-
}
|
|
2299
|
-
set showCaptureButton(e) {
|
|
2300
|
-
this.$$set({ showCaptureButton: e }), W();
|
|
2301
|
-
}
|
|
2302
|
-
get showUnconformities() {
|
|
2303
|
-
return this.$$.ctx[3];
|
|
2304
|
-
}
|
|
2305
|
-
set showUnconformities(e) {
|
|
2306
|
-
this.$$set({ showUnconformities: e }), W();
|
|
2307
|
-
}
|
|
2308
|
-
get showConfigButton() {
|
|
2309
|
-
return this.$$.ctx[4];
|
|
2310
|
-
}
|
|
2311
|
-
set showConfigButton(e) {
|
|
2312
|
-
this.$$set({ showConfigButton: e }), W();
|
|
2313
|
-
}
|
|
2314
|
-
get showAutoCaptureButton() {
|
|
2315
|
-
return this.$$.ctx[5];
|
|
2316
|
-
}
|
|
2317
|
-
set showAutoCaptureButton(e) {
|
|
2318
|
-
this.$$set({ showAutoCaptureButton: e }), W();
|
|
2319
|
-
}
|
|
2320
|
-
get showCameraButton() {
|
|
2321
|
-
return this.$$.ctx[6];
|
|
2322
|
-
}
|
|
2323
|
-
set showCameraButton(e) {
|
|
2324
|
-
this.$$set({ showCameraButton: e }), W();
|
|
2325
|
-
}
|
|
2326
|
-
get showJustificationField() {
|
|
2327
|
-
return this.$$.ctx[7];
|
|
2328
|
-
}
|
|
2329
|
-
set showJustificationField(e) {
|
|
2330
|
-
this.$$set({ showJustificationField: e }), W();
|
|
2331
|
-
}
|
|
2332
|
-
get minEyeToEyeDist() {
|
|
2333
|
-
return this.$$.ctx[47];
|
|
2334
|
-
}
|
|
2335
|
-
set minEyeToEyeDist(e) {
|
|
2336
|
-
this.$$set({ minEyeToEyeDist: e }), W();
|
|
2337
|
-
}
|
|
2338
|
-
get showWatermark() {
|
|
2339
|
-
return this.$$.ctx[8];
|
|
2340
|
-
}
|
|
2341
|
-
set showWatermark(e) {
|
|
2342
|
-
this.$$set({ showWatermark: e }), W();
|
|
2343
|
-
}
|
|
2344
|
-
get videoOverlay() {
|
|
2345
|
-
return this.$$.ctx[9];
|
|
2346
|
-
}
|
|
2347
|
-
set videoOverlay(e) {
|
|
2348
|
-
this.$$set({ videoOverlay: e }), W();
|
|
2349
|
-
}
|
|
2350
|
-
get videoOverlayTransparency() {
|
|
2351
|
-
return this.$$.ctx[10];
|
|
2352
|
-
}
|
|
2353
|
-
set videoOverlayTransparency(e) {
|
|
2354
|
-
this.$$set({ videoOverlayTransparency: e }), W();
|
|
2355
|
-
}
|
|
2356
|
-
get faceDetectionSensitivity() {
|
|
2357
|
-
return this.$$.ctx[48];
|
|
2358
|
-
}
|
|
2359
|
-
set faceDetectionSensitivity(e) {
|
|
2360
|
-
this.$$set({ faceDetectionSensitivity: e }), W();
|
|
2361
|
-
}
|
|
2362
|
-
get hidden() {
|
|
2363
|
-
return this.$$.ctx[49];
|
|
2364
|
-
}
|
|
2365
|
-
set hidden(e) {
|
|
2366
|
-
this.$$set({ hidden: e }), W();
|
|
2367
|
-
}
|
|
2368
|
-
get livenessBlobSize() {
|
|
2369
|
-
return this.$$.ctx[11];
|
|
2370
|
-
}
|
|
2371
|
-
set livenessBlobSize(e) {
|
|
2372
|
-
this.$$set({ livenessBlobSize: e }), W();
|
|
2373
|
-
}
|
|
2374
|
-
get widgetInstance() {
|
|
2375
|
-
return this.$$.ctx[1];
|
|
2376
|
-
}
|
|
2377
|
-
set widgetInstance(e) {
|
|
2378
|
-
this.$$set({ widgetInstance: e }), W();
|
|
2379
|
-
}
|
|
2380
|
-
get play() {
|
|
2381
|
-
return this.$$.ctx[12];
|
|
2382
|
-
}
|
|
2383
|
-
get capture() {
|
|
2384
|
-
return this.$$.ctx[13];
|
|
2385
|
-
}
|
|
2386
|
-
}
|
|
2387
|
-
customElements.define("face-collector", en);
|
|
2388
|
-
export {
|
|
2389
|
-
en as default
|
|
2390
|
-
};
|