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