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