bry-biometric-collector 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{CameraStatus_4d73a197_2.1.1.js → CameraStatus_6d1bac66_2.1.2.js} +1 -1
- package/dist/{DocumentCollector_436479c2_2.1.1.js → DocumentCollector_6d0019dc_2.1.2.js} +143 -143
- package/dist/FaceCollector_c318ab41_2.1.2.js +1715 -0
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{en-us_35a3a8da_2.1.1.js → en-us_9e0134e1_2.1.2.js} +7 -8
- package/dist/{fingersApi_93608325_2.1.1.js → fingersApi_a5a5bb3f_2.1.2.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/{main_81aedc5f_2.1.1.js → main_10fee264_2.1.2.js} +171 -177
- package/dist/{pt-br_1a694022_2.1.1.js → pt-br_4f758ccc_2.1.2.js} +3 -3
- package/dist/style.css +1 -1
- package/package.json +1 -2
- package/dist/FaceCollector_96561766_2.1.1.js +0 -1677
- /package/dist/{face_api_0e3ce8c8_2.1.1.js → face_api_0e3ce8c8_2.1.2.js} +0 -0
- /package/dist/{index-no-detector_acb82d83_2.1.1.js → index-no-detector_acb82d83_2.1.2.js} +0 -0
@@ -1,1677 +0,0 @@
|
|
1
|
-
import { S as Wi, r as Mi, t as ti, w as Bi, x as L, y as Ae, z, C as Ui, B as m, D as S, E as Tt, G as O, H as ie, I as a, J as r, K as Ot, L as B, M as ii, N as Ke, O as li, P as Ve, Q as P, R as Dt, T as N, U as kt, V as $e, W as Et, _ as Wt, X as et, Y as Hi, $ as Ki, Z as Vi, a0 as tt, a1 as ot, a2 as Oe, a3 as yt, a4 as Lt, a5 as He, a6 as ji, a7 as qi, a8 as rt, a9 as Rt, aa as zi, ab as ct, ac as Mt, ad as Bt, ae as Qi, af as Pt, ag as Ut, ah as ut, ai as Xi, aj as Ji, ak as Gi, al as Yi, am as Zi, an as b, ao as Ht, ap as Kt, aq as xi, ar as Vt, f as dt, as as $i, at as ft, au as G, av as ht, aw as mt, A as jt, ax as It, ay as _t, az as el, aA as it, aB as tl, aC as il, aD as pe, aE as vt, aF as gt, aG as si, aH as qt, l as bt, aI as ll, aJ as sl, aK as Pe, aL as St, aM as ve, aN as ol, aO as al, aP as zt, aQ as pt, aR as nl, aS as rl } from "./main_81aedc5f_2.1.1.js";
|
2
|
-
import { C as de, c as De, a as cl } from "./CameraStatus_4d73a197_2.1.1.js";
|
3
|
-
function Qt(l, e, t) {
|
4
|
-
const s = l.slice();
|
5
|
-
return s[105] = e[t], s;
|
6
|
-
}
|
7
|
-
function ul(l) {
|
8
|
-
let e;
|
9
|
-
return {
|
10
|
-
c() {
|
11
|
-
e = m("idlive-face-capture"), e.hidden = !0, St(e, "mask_hidden", ""), St(e, "auto_capture_disabled", ""), St(e, "auto_close_disabled", "");
|
12
|
-
},
|
13
|
-
m(t, s) {
|
14
|
-
L(t, e, s), l[48](e);
|
15
|
-
},
|
16
|
-
p: ie,
|
17
|
-
d(t) {
|
18
|
-
t && P(e), l[48](null);
|
19
|
-
}
|
20
|
-
};
|
21
|
-
}
|
22
|
-
function Xt(l) {
|
23
|
-
let e, t, s;
|
24
|
-
return {
|
25
|
-
c() {
|
26
|
-
e = m("video"), a(e, "id", "bry-cc-camera-video-tag"), a(e, "class", "absolute -z-10"), e.playsInline = !0, e.muted = !0, e.autoplay = !0;
|
27
|
-
},
|
28
|
-
m(o, c) {
|
29
|
-
L(o, e, c), l[49](e), t || (s = [
|
30
|
-
pe(
|
31
|
-
e,
|
32
|
-
"canplay",
|
33
|
-
/*canplay_handler*/
|
34
|
-
l[50]
|
35
|
-
),
|
36
|
-
pe(
|
37
|
-
e,
|
38
|
-
"play",
|
39
|
-
/*play*/
|
40
|
-
l[3],
|
41
|
-
{ once: !0 }
|
42
|
-
)
|
43
|
-
], t = !0);
|
44
|
-
},
|
45
|
-
p: ie,
|
46
|
-
d(o) {
|
47
|
-
o && P(e), l[49](null), t = !1, vt(s);
|
48
|
-
}
|
49
|
-
};
|
50
|
-
}
|
51
|
-
function dl(l) {
|
52
|
-
let e, t;
|
53
|
-
return {
|
54
|
-
c() {
|
55
|
-
e = ve("svg"), t = ve("path"), a(t, "fill", "currentColor"), a(t, "d", "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"), a(e, "class", "mt-[1px] ml-[.25em] overflow-visible"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "1em"), a(e, "height", "1em"), a(e, "viewBox", "0 0 512 512");
|
56
|
-
},
|
57
|
-
m(s, o) {
|
58
|
-
L(s, e, o), r(e, t);
|
59
|
-
},
|
60
|
-
d(s) {
|
61
|
-
s && P(e);
|
62
|
-
}
|
63
|
-
};
|
64
|
-
}
|
65
|
-
function fl(l) {
|
66
|
-
let e, t;
|
67
|
-
return {
|
68
|
-
c() {
|
69
|
-
e = ve("svg"), t = ve("path"), a(t, "fill", "currentColor"), a(t, "d", "M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7L54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256L9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z"), a(e, "class", "mt-[2px] ml-[.25em] overflow-visible"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "0.63em"), a(e, "height", "1em"), a(e, "viewBox", "0 0 320 512");
|
70
|
-
},
|
71
|
-
m(s, o) {
|
72
|
-
L(s, e, o), r(e, t);
|
73
|
-
},
|
74
|
-
d(s) {
|
75
|
-
s && P(e);
|
76
|
-
}
|
77
|
-
};
|
78
|
-
}
|
79
|
-
function hl(l) {
|
80
|
-
let e, t;
|
81
|
-
return {
|
82
|
-
c() {
|
83
|
-
e = ve("svg"), t = ve("path"), a(t, "fill", "currentColor"), a(t, "d", "M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7L54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256L9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z"), a(e, "class", "mt-[2px] ml-[.25em] overflow-visible"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "0.63em"), a(e, "height", "1em"), a(e, "viewBox", "0 0 320 512");
|
84
|
-
},
|
85
|
-
m(s, o) {
|
86
|
-
L(s, e, o), r(e, t);
|
87
|
-
},
|
88
|
-
d(s) {
|
89
|
-
s && P(e);
|
90
|
-
}
|
91
|
-
};
|
92
|
-
}
|
93
|
-
function ml(l) {
|
94
|
-
let e, t;
|
95
|
-
return {
|
96
|
-
c() {
|
97
|
-
e = ve("svg"), t = ve("path"), a(t, "fill", "currentColor"), a(t, "d", "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"), a(e, "class", "mt-[1px] ml-[.25em] overflow-visible"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "1em"), a(e, "height", "1em"), a(e, "viewBox", "0 0 512 512");
|
98
|
-
},
|
99
|
-
m(s, o) {
|
100
|
-
L(s, e, o), r(e, t);
|
101
|
-
},
|
102
|
-
d(s) {
|
103
|
-
s && P(e);
|
104
|
-
}
|
105
|
-
};
|
106
|
-
}
|
107
|
-
function _l(l) {
|
108
|
-
let e = (
|
109
|
-
/*$_*/
|
110
|
-
l[23]("faceCollector.framing") + ""
|
111
|
-
), t;
|
112
|
-
return {
|
113
|
-
c() {
|
114
|
-
t = O(e);
|
115
|
-
},
|
116
|
-
m(s, o) {
|
117
|
-
L(s, t, o);
|
118
|
-
},
|
119
|
-
p(s, o) {
|
120
|
-
o[0] & /*$_*/
|
121
|
-
8388608 && e !== (e = /*$_*/
|
122
|
-
s[23]("faceCollector.framing") + "") && B(t, e);
|
123
|
-
},
|
124
|
-
d(s) {
|
125
|
-
s && P(t);
|
126
|
-
}
|
127
|
-
};
|
128
|
-
}
|
129
|
-
function bl(l) {
|
130
|
-
let e;
|
131
|
-
return {
|
132
|
-
c() {
|
133
|
-
e = O("Framing");
|
134
|
-
},
|
135
|
-
m(t, s) {
|
136
|
-
L(t, e, s);
|
137
|
-
},
|
138
|
-
p: ie,
|
139
|
-
d(t) {
|
140
|
-
t && P(e);
|
141
|
-
}
|
142
|
-
};
|
143
|
-
}
|
144
|
-
function gl(l) {
|
145
|
-
let e, t;
|
146
|
-
return {
|
147
|
-
c() {
|
148
|
-
e = ve("svg"), t = ve("path"), a(t, "fill", "currentColor"), a(t, "d", "M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7L54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256L9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3l105.4 105.3c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256l105.3-105.4z"), a(e, "class", "mt-[2px] ml-[.25em] overflow-visible"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "0.63em"), a(e, "height", "1em"), a(e, "viewBox", "0 0 320 512");
|
149
|
-
},
|
150
|
-
m(s, o) {
|
151
|
-
L(s, e, o), r(e, t);
|
152
|
-
},
|
153
|
-
d(s) {
|
154
|
-
s && P(e);
|
155
|
-
}
|
156
|
-
};
|
157
|
-
}
|
158
|
-
function pl(l) {
|
159
|
-
let e, t;
|
160
|
-
return {
|
161
|
-
c() {
|
162
|
-
e = ve("svg"), t = ve("path"), a(t, "fill", "currentColor"), a(t, "d", "M470.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L192 338.7l233.4-233.3c12.5-12.5 32.8-12.5 45.3 0z"), a(e, "class", "mt-[1px] ml-[.25em] overflow-visible"), a(e, "xmlns", "http://www.w3.org/2000/svg"), a(e, "width", "1em"), a(e, "height", "1em"), a(e, "viewBox", "0 0 512 512");
|
163
|
-
},
|
164
|
-
m(s, o) {
|
165
|
-
L(s, e, o), r(e, t);
|
166
|
-
},
|
167
|
-
d(s) {
|
168
|
-
s && P(e);
|
169
|
-
}
|
170
|
-
};
|
171
|
-
}
|
172
|
-
function Jt(l) {
|
173
|
-
let e, t, s, o, c;
|
174
|
-
function d(n, p) {
|
175
|
-
return (
|
176
|
-
/*$isLoading*/
|
177
|
-
n[34] ? wl : vl
|
178
|
-
);
|
179
|
-
}
|
180
|
-
let f = d(l), u = f(l);
|
181
|
-
return {
|
182
|
-
c() {
|
183
|
-
e = m("slot"), t = m("div"), s = m("img"), c = S(), u.c(), gt(s.src, o = si) || a(s, "src", o), a(s, "alt", "loading gif"), a(s, "class", "m-auto h-[10em] lg:h-[12em]"), a(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), a(e, "name", "obtaining-photo-gif"), a(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
184
|
-
},
|
185
|
-
m(n, p) {
|
186
|
-
L(n, e, p), r(e, t), r(t, s), r(t, c), u.m(t, null);
|
187
|
-
},
|
188
|
-
p(n, p) {
|
189
|
-
f === (f = d(n)) && u ? u.p(n, p) : (u.d(1), u = f(n), u && (u.c(), u.m(t, null)));
|
190
|
-
},
|
191
|
-
d(n) {
|
192
|
-
n && P(e), u.d();
|
193
|
-
}
|
194
|
-
};
|
195
|
-
}
|
196
|
-
function vl(l) {
|
197
|
-
let e, t = (
|
198
|
-
/*$_*/
|
199
|
-
l[23]("faceCollector.obtainingPicture") + ""
|
200
|
-
), s;
|
201
|
-
return {
|
202
|
-
c() {
|
203
|
-
e = m("span"), s = O(t), a(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
204
|
-
},
|
205
|
-
m(o, c) {
|
206
|
-
L(o, e, c), r(e, s);
|
207
|
-
},
|
208
|
-
p(o, c) {
|
209
|
-
c[0] & /*$_*/
|
210
|
-
8388608 && t !== (t = /*$_*/
|
211
|
-
o[23]("faceCollector.obtainingPicture") + "") && B(s, t);
|
212
|
-
},
|
213
|
-
d(o) {
|
214
|
-
o && P(e);
|
215
|
-
}
|
216
|
-
};
|
217
|
-
}
|
218
|
-
function wl(l) {
|
219
|
-
let e;
|
220
|
-
return {
|
221
|
-
c() {
|
222
|
-
e = m("span"), e.textContent = "Obtaining photo...", a(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
223
|
-
},
|
224
|
-
m(t, s) {
|
225
|
-
L(t, e, s);
|
226
|
-
},
|
227
|
-
p: ie,
|
228
|
-
d(t) {
|
229
|
-
t && P(e);
|
230
|
-
}
|
231
|
-
};
|
232
|
-
}
|
233
|
-
function Gt(l) {
|
234
|
-
let e, t, s, o, c;
|
235
|
-
function d(n, p) {
|
236
|
-
return (
|
237
|
-
/*$isLoading*/
|
238
|
-
n[34] ? kl : Cl
|
239
|
-
);
|
240
|
-
}
|
241
|
-
let f = d(l), u = f(l);
|
242
|
-
return {
|
243
|
-
c() {
|
244
|
-
e = m("slot"), t = m("div"), s = m("img"), c = S(), u.c(), gt(s.src, o = si) || a(s, "src", o), a(s, "alt", "loading gif"), a(s, "class", "m-auto h-[10em] lg:h-[12em]"), a(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), a(e, "name", "loading-camera-gif"), a(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
|
245
|
-
},
|
246
|
-
m(n, p) {
|
247
|
-
L(n, e, p), r(e, t), r(t, s), r(t, c), u.m(t, null);
|
248
|
-
},
|
249
|
-
p(n, p) {
|
250
|
-
f === (f = d(n)) && u ? u.p(n, p) : (u.d(1), u = f(n), u && (u.c(), u.m(t, null)));
|
251
|
-
},
|
252
|
-
d(n) {
|
253
|
-
n && P(e), u.d();
|
254
|
-
}
|
255
|
-
};
|
256
|
-
}
|
257
|
-
function Cl(l) {
|
258
|
-
let e, t = (
|
259
|
-
/*$_*/
|
260
|
-
l[23]("faceCollector.initiatingCamera") + ""
|
261
|
-
), s;
|
262
|
-
return {
|
263
|
-
c() {
|
264
|
-
e = m("span"), s = O(t), a(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
265
|
-
},
|
266
|
-
m(o, c) {
|
267
|
-
L(o, e, c), r(e, s);
|
268
|
-
},
|
269
|
-
p(o, c) {
|
270
|
-
c[0] & /*$_*/
|
271
|
-
8388608 && t !== (t = /*$_*/
|
272
|
-
o[23]("faceCollector.initiatingCamera") + "") && B(s, t);
|
273
|
-
},
|
274
|
-
d(o) {
|
275
|
-
o && P(e);
|
276
|
-
}
|
277
|
-
};
|
278
|
-
}
|
279
|
-
function kl(l) {
|
280
|
-
let e;
|
281
|
-
return {
|
282
|
-
c() {
|
283
|
-
e = m("span"), e.textContent = "Loading camera...", a(e, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
|
284
|
-
},
|
285
|
-
m(t, s) {
|
286
|
-
L(t, e, s);
|
287
|
-
},
|
288
|
-
p: ie,
|
289
|
-
d(t) {
|
290
|
-
t && P(e);
|
291
|
-
}
|
292
|
-
};
|
293
|
-
}
|
294
|
-
function El(l) {
|
295
|
-
let e, t, s = (
|
296
|
-
/*$_*/
|
297
|
-
l[23]("faceCollector.finish") + ""
|
298
|
-
), o, c, d, f, u = (
|
299
|
-
/*$_*/
|
300
|
-
l[23]("faceCollector.retakePhoto") + ""
|
301
|
-
), n, p, k;
|
302
|
-
return {
|
303
|
-
c() {
|
304
|
-
e = m("div"), t = m("button"), o = O(s), d = S(), f = m("button"), n = O(u), t.disabled = c = /*$justification*/
|
305
|
-
l[27].length === 0, a(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), a(f, "id", "bry-cc-retake-button"), a(f, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), a(e, "class", "ce-dui-btn-group flex");
|
306
|
-
},
|
307
|
-
m(D, _) {
|
308
|
-
L(D, e, _), r(e, t), r(t, o), r(e, d), r(e, f), r(f, n), p || (k = [
|
309
|
-
pe(
|
310
|
-
t,
|
311
|
-
"click",
|
312
|
-
/*click_handler_1*/
|
313
|
-
l[60]
|
314
|
-
),
|
315
|
-
pe(
|
316
|
-
f,
|
317
|
-
"click",
|
318
|
-
/*click_handler_2*/
|
319
|
-
l[61]
|
320
|
-
)
|
321
|
-
], p = !0);
|
322
|
-
},
|
323
|
-
p(D, _) {
|
324
|
-
_[0] & /*$_*/
|
325
|
-
8388608 && s !== (s = /*$_*/
|
326
|
-
D[23]("faceCollector.finish") + "") && B(o, s), _[0] & /*$justification*/
|
327
|
-
134217728 && c !== (c = /*$justification*/
|
328
|
-
D[27].length === 0) && (t.disabled = c), _[0] & /*$_*/
|
329
|
-
8388608 && u !== (u = /*$_*/
|
330
|
-
D[23]("faceCollector.retakePhoto") + "") && B(n, u);
|
331
|
-
},
|
332
|
-
d(D) {
|
333
|
-
D && P(e), p = !1, vt(k);
|
334
|
-
}
|
335
|
-
};
|
336
|
-
}
|
337
|
-
function yl(l) {
|
338
|
-
let e, t, s, o, c;
|
339
|
-
function d(n, p) {
|
340
|
-
return (
|
341
|
-
/*$isLoading*/
|
342
|
-
n[34] ? Rl : Ll
|
343
|
-
);
|
344
|
-
}
|
345
|
-
let f = d(l), u = f(l);
|
346
|
-
return {
|
347
|
-
c() {
|
348
|
-
e = m("button"), u.c(), a(e, "id", "bry-cc-capture-btn"), e.disabled = t = !/*$faceFound*/
|
349
|
-
l[32] && /*$enableFaceApi*/
|
350
|
-
l[30] || !/*$ready*/
|
351
|
-
l[31] && !/*$enableFaceApi*/
|
352
|
-
l[30], e.hidden = s = !/*showCaptureButton*/
|
353
|
-
l[1], a(e, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-primary text-xl");
|
354
|
-
},
|
355
|
-
m(n, p) {
|
356
|
-
L(n, e, p), u.m(e, null), o || (c = pe(
|
357
|
-
e,
|
358
|
-
"click",
|
359
|
-
/*click_handler*/
|
360
|
-
l[59]
|
361
|
-
), o = !0);
|
362
|
-
},
|
363
|
-
p(n, p) {
|
364
|
-
f === (f = d(n)) && u ? u.p(n, p) : (u.d(1), u = f(n), u && (u.c(), u.m(e, null))), p[0] & /*$enableFaceApi*/
|
365
|
-
1073741824 | p[1] & /*$faceFound, $ready*/
|
366
|
-
3 && t !== (t = !/*$faceFound*/
|
367
|
-
n[32] && /*$enableFaceApi*/
|
368
|
-
n[30] || !/*$ready*/
|
369
|
-
n[31] && !/*$enableFaceApi*/
|
370
|
-
n[30]) && (e.disabled = t), p[0] & /*showCaptureButton*/
|
371
|
-
2 && s !== (s = !/*showCaptureButton*/
|
372
|
-
n[1]) && (e.hidden = s);
|
373
|
-
},
|
374
|
-
d(n) {
|
375
|
-
n && P(e), u.d(), o = !1, c();
|
376
|
-
}
|
377
|
-
};
|
378
|
-
}
|
379
|
-
function Ll(l) {
|
380
|
-
let e = (
|
381
|
-
/*$_*/
|
382
|
-
l[23]("faceCollector.takePicture") + ""
|
383
|
-
), t;
|
384
|
-
return {
|
385
|
-
c() {
|
386
|
-
t = O(e);
|
387
|
-
},
|
388
|
-
m(s, o) {
|
389
|
-
L(s, t, o);
|
390
|
-
},
|
391
|
-
p(s, o) {
|
392
|
-
o[0] & /*$_*/
|
393
|
-
8388608 && e !== (e = /*$_*/
|
394
|
-
s[23]("faceCollector.takePicture") + "") && B(t, e);
|
395
|
-
},
|
396
|
-
d(s) {
|
397
|
-
s && P(t);
|
398
|
-
}
|
399
|
-
};
|
400
|
-
}
|
401
|
-
function Rl(l) {
|
402
|
-
let e;
|
403
|
-
return {
|
404
|
-
c() {
|
405
|
-
e = O("Take picture");
|
406
|
-
},
|
407
|
-
m(t, s) {
|
408
|
-
L(t, e, s);
|
409
|
-
},
|
410
|
-
p: ie,
|
411
|
-
d(t) {
|
412
|
-
t && P(e);
|
413
|
-
}
|
414
|
-
};
|
415
|
-
}
|
416
|
-
function Pl(l) {
|
417
|
-
let e, t;
|
418
|
-
return e = new cl({ props: { handler: (
|
419
|
-
/*func*/
|
420
|
-
l[70]
|
421
|
-
) } }), {
|
422
|
-
c() {
|
423
|
-
Tt(e.$$.fragment);
|
424
|
-
},
|
425
|
-
m(s, o) {
|
426
|
-
Ot(e, s, o), t = !0;
|
427
|
-
},
|
428
|
-
p(s, o) {
|
429
|
-
const c = {};
|
430
|
-
o[0] & /*capturing*/
|
431
|
-
32768 && (c.handler = /*func*/
|
432
|
-
s[70]), e.$set(c);
|
433
|
-
},
|
434
|
-
i(s) {
|
435
|
-
t || (Ve(e.$$.fragment, s), t = !0);
|
436
|
-
},
|
437
|
-
o(s) {
|
438
|
-
Ke(e.$$.fragment, s), t = !1;
|
439
|
-
},
|
440
|
-
d(s) {
|
441
|
-
Dt(e, s);
|
442
|
-
}
|
443
|
-
};
|
444
|
-
}
|
445
|
-
function Il(l) {
|
446
|
-
let e, t, s, o, c, d, f, u, n;
|
447
|
-
const p = [
|
448
|
-
Fl,
|
449
|
-
Dl,
|
450
|
-
Ol,
|
451
|
-
Tl,
|
452
|
-
Sl
|
453
|
-
], k = [];
|
454
|
-
function D(_, v) {
|
455
|
-
return (
|
456
|
-
/*$captured*/
|
457
|
-
_[20] ? (
|
458
|
-
/*$unconformitiesStore*/
|
459
|
-
_[24].isLoading ? 1 : (
|
460
|
-
/*$requestResult*/
|
461
|
-
_[25] !== G.OK ? 2 : (
|
462
|
-
/*$saved*/
|
463
|
-
_[26] ? 4 : 3
|
464
|
-
)
|
465
|
-
)
|
466
|
-
) : 0
|
467
|
-
);
|
468
|
-
}
|
469
|
-
return d = D(l), f = k[d] = p[d](l), {
|
470
|
-
c() {
|
471
|
-
e = m("div"), t = m("img"), c = S(), f.c(), a(t, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), gt(t.src, s = /*$dataTypePrefix*/
|
472
|
-
l[29] + "," + /*$image*/
|
473
|
-
l[28]) || a(t, "src", s), t.hidden = o = !/*$captured*/
|
474
|
-
l[20] || !/*$showFaceWhileValidating*/
|
475
|
-
l[35] && /*$unconformitiesStore*/
|
476
|
-
l[24].isLoading, a(t, "alt", ""), a(e, "class", u = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
477
|
-
l[35] && /*$unconformitiesStore*/
|
478
|
-
l[24].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid m-[1em] overflow-hidden"));
|
479
|
-
},
|
480
|
-
m(_, v) {
|
481
|
-
L(_, e, v), r(e, t), r(e, c), k[d].m(e, null), n = !0;
|
482
|
-
},
|
483
|
-
p(_, v) {
|
484
|
-
(!n || v[0] & /*$dataTypePrefix, $image*/
|
485
|
-
805306368 && !gt(t.src, s = /*$dataTypePrefix*/
|
486
|
-
_[29] + "," + /*$image*/
|
487
|
-
_[28])) && a(t, "src", s), (!n || v[0] & /*$captured, $unconformitiesStore*/
|
488
|
-
17825792 | v[1] & /*$showFaceWhileValidating*/
|
489
|
-
16 && o !== (o = !/*$captured*/
|
490
|
-
_[20] || !/*$showFaceWhileValidating*/
|
491
|
-
_[35] && /*$unconformitiesStore*/
|
492
|
-
_[24].isLoading)) && (t.hidden = o);
|
493
|
-
let g = d;
|
494
|
-
d = D(_), d === g ? k[d].p(_, v) : (ii(), Ke(k[g], 1, 1, () => {
|
495
|
-
k[g] = null;
|
496
|
-
}), li(), f = k[d], f ? f.p(_, v) : (f = k[d] = p[d](_), f.c()), Ve(f, 1), f.m(e, null)), (!n || v[0] & /*$unconformitiesStore*/
|
497
|
-
16777216 | v[1] & /*$showFaceWhileValidating*/
|
498
|
-
16 && u !== (u = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
499
|
-
_[35] && /*$unconformitiesStore*/
|
500
|
-
_[24].isLoading ? "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible" : "grid m-[1em] overflow-hidden"))) && a(e, "class", u);
|
501
|
-
},
|
502
|
-
i(_) {
|
503
|
-
n || (Ve(f), n = !0);
|
504
|
-
},
|
505
|
-
o(_) {
|
506
|
-
Ke(f), n = !1;
|
507
|
-
},
|
508
|
-
d(_) {
|
509
|
-
_ && P(e), k[d].d();
|
510
|
-
}
|
511
|
-
};
|
512
|
-
}
|
513
|
-
function Sl(l) {
|
514
|
-
let e, t, s = (
|
515
|
-
/*$_*/
|
516
|
-
l[23]("faceCollector.captured") + ""
|
517
|
-
), o, c, d, f, u, n = (
|
518
|
-
/*$_*/
|
519
|
-
l[23]("faceCollector.retakePhoto") + ""
|
520
|
-
), p, k, D = bt(ol).faceStrategy !== al.DISABLED, _, v, g, w = (
|
521
|
-
/*$unconformitiesStore*/
|
522
|
-
l[24].unconformities.length !== 0 && Yt(l)
|
523
|
-
), R = D && Nl();
|
524
|
-
return {
|
525
|
-
c() {
|
526
|
-
e = m("div"), t = m("h1"), o = O(s), c = S(), w && w.c(), d = S(), f = m("div"), u = m("button"), p = O(n), k = S(), R && R.c(), a(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), a(u, "id", "bry-cc-retake-button"), a(u, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), a(f, "class", "flex flex-row"), zt(f, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
527
|
-
l[36]);
|
528
|
-
},
|
529
|
-
m(C, j) {
|
530
|
-
L(C, e, j), r(e, t), r(t, o), r(e, c), w && w.m(e, null), r(e, d), r(e, f), r(f, u), r(u, p), r(f, k), R && R.m(f, null), _ = !0, v || (g = pe(
|
531
|
-
u,
|
532
|
-
"click",
|
533
|
-
/*click_handler_7*/
|
534
|
-
l[69]
|
535
|
-
), v = !0);
|
536
|
-
},
|
537
|
-
p(C, j) {
|
538
|
-
(!_ || j[0] & /*$_*/
|
539
|
-
8388608) && s !== (s = /*$_*/
|
540
|
-
C[23]("faceCollector.captured") + "") && B(o, s), /*$unconformitiesStore*/
|
541
|
-
C[24].unconformities.length !== 0 ? w ? w.p(C, j) : (w = Yt(C), w.c(), w.m(e, d)) : w && (w.d(1), w = null), (!_ || j[0] & /*$_*/
|
542
|
-
8388608) && n !== (n = /*$_*/
|
543
|
-
C[23]("faceCollector.retakePhoto") + "") && B(p, n), (!_ || j[1] & /*$exportButtonDisabled*/
|
544
|
-
32) && zt(f, "ce-dui-btn-group", !/*$exportButtonDisabled*/
|
545
|
-
C[36]);
|
546
|
-
},
|
547
|
-
i(C) {
|
548
|
-
_ || (Ve(R), _ = !0);
|
549
|
-
},
|
550
|
-
o(C) {
|
551
|
-
Ke(R), _ = !1;
|
552
|
-
},
|
553
|
-
d(C) {
|
554
|
-
C && P(e), w && w.d(), R && R.d(), v = !1, g();
|
555
|
-
}
|
556
|
-
};
|
557
|
-
}
|
558
|
-
function Tl(l) {
|
559
|
-
let e, t, s = (
|
560
|
-
/*$_*/
|
561
|
-
l[23]("faceCollector.unconformities") + ""
|
562
|
-
), o, c, d, f, u, n, p, k = (
|
563
|
-
/*$_*/
|
564
|
-
l[23]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
565
|
-
), D, _, v, g, w, R, C, j, fe = (
|
566
|
-
/*$_*/
|
567
|
-
l[23]("faceCollector.thisInformationIsRequired") + ""
|
568
|
-
), ne, Y, we, Ie, Ce, le = (
|
569
|
-
/*$unconformitiesStore*/
|
570
|
-
l[24].unconformities
|
571
|
-
), A = [];
|
572
|
-
for (let F = 0; F < le.length; F += 1)
|
573
|
-
A[F] = Zt(Qt(l, le, F));
|
574
|
-
let U = (
|
575
|
-
/*$captured*/
|
576
|
-
l[20] && xt(l)
|
577
|
-
);
|
578
|
-
return {
|
579
|
-
c() {
|
580
|
-
e = m("div"), t = m("h1"), o = O(s), c = S(), d = m("div");
|
581
|
-
for (let F = 0; F < A.length; F += 1)
|
582
|
-
A[F].c();
|
583
|
-
f = S(), u = m("div"), n = m("label"), p = m("span"), D = O(k), _ = S(), v = m("textarea"), w = S(), R = m("label"), C = m("span"), j = O("("), ne = O(fe), Y = O(")"), we = S(), U && U.c(), a(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), a(d, "class", "flex flex-wrap"), a(p, "class", "ce-dui-label-text text-base"), a(n, "class", "ce-dui-label"), a(n, "for", "justification"), a(v, "contenteditable", ""), a(v, "id", "justification"), a(v, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), a(v, "placeholder", g = /*$_*/
|
584
|
-
l[23]("faceCollector.yourJustification")), a(C, "class", "ce-dui-label-text-alt text-base"), a(R, "class", "ce-dui-label"), a(R, "for", "justification"), a(u, "class", "ce-dui-form-control mt-[2.5em]");
|
585
|
-
},
|
586
|
-
m(F, Q) {
|
587
|
-
L(F, e, Q), r(e, t), r(t, o), r(e, c), r(e, d);
|
588
|
-
for (let H = 0; H < A.length; H += 1)
|
589
|
-
A[H] && A[H].m(d, null);
|
590
|
-
r(e, f), r(e, u), r(u, n), r(n, p), r(p, D), r(u, _), r(u, v), pt(
|
591
|
-
v,
|
592
|
-
/*$justification*/
|
593
|
-
l[27]
|
594
|
-
), r(u, w), r(u, R), r(R, C), r(C, j), r(C, ne), r(C, Y), r(e, we), U && U.m(e, null), Ie || (Ce = pe(
|
595
|
-
v,
|
596
|
-
"input",
|
597
|
-
/*textarea_input_handler*/
|
598
|
-
l[65]
|
599
|
-
), Ie = !0);
|
600
|
-
},
|
601
|
-
p(F, Q) {
|
602
|
-
if (Q[0] & /*$_*/
|
603
|
-
8388608 && s !== (s = /*$_*/
|
604
|
-
F[23]("faceCollector.unconformities") + "") && B(o, s), Q[0] & /*$unconformitiesStore*/
|
605
|
-
16777216) {
|
606
|
-
le = /*$unconformitiesStore*/
|
607
|
-
F[24].unconformities;
|
608
|
-
let H;
|
609
|
-
for (H = 0; H < le.length; H += 1) {
|
610
|
-
const se = Qt(F, le, H);
|
611
|
-
A[H] ? A[H].p(se, Q) : (A[H] = Zt(se), A[H].c(), A[H].m(d, null));
|
612
|
-
}
|
613
|
-
for (; H < A.length; H += 1)
|
614
|
-
A[H].d(1);
|
615
|
-
A.length = le.length;
|
616
|
-
}
|
617
|
-
Q[0] & /*$_*/
|
618
|
-
8388608 && k !== (k = /*$_*/
|
619
|
-
F[23]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && B(D, k), Q[0] & /*$_*/
|
620
|
-
8388608 && g !== (g = /*$_*/
|
621
|
-
F[23]("faceCollector.yourJustification")) && a(v, "placeholder", g), Q[0] & /*$justification*/
|
622
|
-
134217728 && pt(
|
623
|
-
v,
|
624
|
-
/*$justification*/
|
625
|
-
F[27]
|
626
|
-
), Q[0] & /*$_*/
|
627
|
-
8388608 && fe !== (fe = /*$_*/
|
628
|
-
F[23]("faceCollector.thisInformationIsRequired") + "") && B(ne, fe), /*$captured*/
|
629
|
-
F[20] ? U ? U.p(F, Q) : (U = xt(F), U.c(), U.m(e, null)) : U && (U.d(1), U = null);
|
630
|
-
},
|
631
|
-
i: ie,
|
632
|
-
o: ie,
|
633
|
-
d(F) {
|
634
|
-
F && P(e), nl(A, F), U && U.d(), Ie = !1, Ce();
|
635
|
-
}
|
636
|
-
};
|
637
|
-
}
|
638
|
-
function Ol(l) {
|
639
|
-
let e, t, s, o, c = (
|
640
|
-
/*$_*/
|
641
|
-
l[23]("faceCollector.finish") + ""
|
642
|
-
), d, f, u, n = (
|
643
|
-
/*$_*/
|
644
|
-
l[23]("faceCollector.retakePhoto") + ""
|
645
|
-
), p, k, D;
|
646
|
-
function _(w, R) {
|
647
|
-
return (
|
648
|
-
/*$requestResult*/
|
649
|
-
w[25] === G.LIVENESS_DETECTION_FAILURE || /*$requestResult*/
|
650
|
-
w[25] === G.UNKNOWN_LIVENESS_ERROR ? Ul : (
|
651
|
-
/*$requestResult*/
|
652
|
-
w[25] === G.LOW_LIVENESS_SCORE ? Bl : (
|
653
|
-
/*$requestResult*/
|
654
|
-
w[25] === G.TEMPLATE_EXTRACTION_ERROR || /*$requestResult*/
|
655
|
-
w[25] === G.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ? Ml : (
|
656
|
-
/*$requestResult*/
|
657
|
-
w[25] === G.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ? Wl : Al
|
658
|
-
)
|
659
|
-
)
|
660
|
-
)
|
661
|
-
);
|
662
|
-
}
|
663
|
-
let v = _(l), g = v(l);
|
664
|
-
return {
|
665
|
-
c() {
|
666
|
-
e = m("div"), g.c(), t = S(), s = m("div"), o = m("button"), d = O(c), f = S(), u = m("button"), p = O(n), o.disabled = !0, a(o, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), a(u, "id", "bry-cc-retake-button"), a(u, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), a(s, "class", "ce-dui-btn-group flex"), a(e, "class", "flex flex-col justify-between");
|
667
|
-
},
|
668
|
-
m(w, R) {
|
669
|
-
L(w, e, R), g.m(e, null), r(e, t), r(e, s), r(s, o), r(o, d), r(s, f), r(s, u), r(u, p), k || (D = [
|
670
|
-
pe(
|
671
|
-
o,
|
672
|
-
"click",
|
673
|
-
/*click_handler_3*/
|
674
|
-
l[63]
|
675
|
-
),
|
676
|
-
pe(
|
677
|
-
u,
|
678
|
-
"click",
|
679
|
-
/*click_handler_4*/
|
680
|
-
l[64]
|
681
|
-
)
|
682
|
-
], k = !0);
|
683
|
-
},
|
684
|
-
p(w, R) {
|
685
|
-
v === (v = _(w)) && g ? g.p(w, R) : (g.d(1), g = v(w), g && (g.c(), g.m(e, t))), R[0] & /*$_*/
|
686
|
-
8388608 && c !== (c = /*$_*/
|
687
|
-
w[23]("faceCollector.finish") + "") && B(d, c), R[0] & /*$_*/
|
688
|
-
8388608 && n !== (n = /*$_*/
|
689
|
-
w[23]("faceCollector.retakePhoto") + "") && B(p, n);
|
690
|
-
},
|
691
|
-
i: ie,
|
692
|
-
o: ie,
|
693
|
-
d(w) {
|
694
|
-
w && P(e), g.d(), k = !1, vt(D);
|
695
|
-
}
|
696
|
-
};
|
697
|
-
}
|
698
|
-
function Dl(l) {
|
699
|
-
let e, t, s = (
|
700
|
-
/*$_*/
|
701
|
-
l[23]("faceCollector.validating") + ""
|
702
|
-
), o, c, d;
|
703
|
-
return {
|
704
|
-
c() {
|
705
|
-
e = m("div"), t = m("h1"), o = O(s), c = S(), d = m("div"), a(t, "class", "inline-block text-3xl font-bold pb-[1em] transition-opacity"), a(d, "class", "ml-6 inline-block dot-typing"), a(e, "class", "min-w-[200px]");
|
706
|
-
},
|
707
|
-
m(f, u) {
|
708
|
-
L(f, e, u), r(e, t), r(t, o), r(e, c), r(e, d);
|
709
|
-
},
|
710
|
-
p(f, u) {
|
711
|
-
u[0] & /*$_*/
|
712
|
-
8388608 && s !== (s = /*$_*/
|
713
|
-
f[23]("faceCollector.validating") + "") && B(o, s);
|
714
|
-
},
|
715
|
-
i: ie,
|
716
|
-
o: ie,
|
717
|
-
d(f) {
|
718
|
-
f && P(e);
|
719
|
-
}
|
720
|
-
};
|
721
|
-
}
|
722
|
-
function Fl(l) {
|
723
|
-
let e;
|
724
|
-
return {
|
725
|
-
c() {
|
726
|
-
e = m("div"), a(e, "class", "");
|
727
|
-
},
|
728
|
-
m(t, s) {
|
729
|
-
L(t, e, s);
|
730
|
-
},
|
731
|
-
p: ie,
|
732
|
-
i: ie,
|
733
|
-
o: ie,
|
734
|
-
d(t) {
|
735
|
-
t && P(e);
|
736
|
-
}
|
737
|
-
};
|
738
|
-
}
|
739
|
-
function Yt(l) {
|
740
|
-
let e, t, s = (
|
741
|
-
/*$_*/
|
742
|
-
l[23]("faceCollector.justification") + ""
|
743
|
-
), o, c, d, f, u;
|
744
|
-
return {
|
745
|
-
c() {
|
746
|
-
e = m("label"), t = m("span"), o = O(s), c = S(), d = m("textarea"), a(t, "class", "ce-dui-label-text text-base"), a(e, "class", "ce-dui-label"), a(e, "for", "justification"), a(d, "contenteditable", ""), a(d, "id", "justification"), a(d, "class", "ce-dui-textarea ce-dui-textarea-bordered textarea-ghost h-[6em] w-full text-base");
|
747
|
-
},
|
748
|
-
m(n, p) {
|
749
|
-
L(n, e, p), r(e, t), r(t, o), L(n, c, p), L(n, d, p), pt(
|
750
|
-
d,
|
751
|
-
/*$justification*/
|
752
|
-
l[27]
|
753
|
-
), f || (u = pe(
|
754
|
-
d,
|
755
|
-
"input",
|
756
|
-
/*textarea_input_handler_1*/
|
757
|
-
l[68]
|
758
|
-
), f = !0);
|
759
|
-
},
|
760
|
-
p(n, p) {
|
761
|
-
p[0] & /*$_*/
|
762
|
-
8388608 && s !== (s = /*$_*/
|
763
|
-
n[23]("faceCollector.justification") + "") && B(o, s), p[0] & /*$justification*/
|
764
|
-
134217728 && pt(
|
765
|
-
d,
|
766
|
-
/*$justification*/
|
767
|
-
n[27]
|
768
|
-
);
|
769
|
-
},
|
770
|
-
d(n) {
|
771
|
-
n && P(e), n && P(c), n && P(d), f = !1, u();
|
772
|
-
}
|
773
|
-
};
|
774
|
-
}
|
775
|
-
function Nl(l) {
|
776
|
-
let e, t;
|
777
|
-
return e = new rl({
|
778
|
-
props: { cssClass: "ce-dui-btn-block flex-shrink" }
|
779
|
-
}), {
|
780
|
-
c() {
|
781
|
-
Tt(e.$$.fragment);
|
782
|
-
},
|
783
|
-
m(s, o) {
|
784
|
-
Ot(e, s, o), t = !0;
|
785
|
-
},
|
786
|
-
i(s) {
|
787
|
-
t || (Ve(e.$$.fragment, s), t = !0);
|
788
|
-
},
|
789
|
-
o(s) {
|
790
|
-
Ke(e.$$.fragment, s), t = !1;
|
791
|
-
},
|
792
|
-
d(s) {
|
793
|
-
Dt(e, s);
|
794
|
-
}
|
795
|
-
};
|
796
|
-
}
|
797
|
-
function Zt(l) {
|
798
|
-
let e, t = (
|
799
|
-
/*unconformity*/
|
800
|
-
l[105] + ""
|
801
|
-
), s, o;
|
802
|
-
return {
|
803
|
-
c() {
|
804
|
-
e = m("div"), s = O(t), o = S(), a(e, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] ce-dui-badge-error text-xl pb-[.25em] m-[.5em]");
|
805
|
-
},
|
806
|
-
m(c, d) {
|
807
|
-
L(c, e, d), r(e, s), r(e, o);
|
808
|
-
},
|
809
|
-
p(c, d) {
|
810
|
-
d[0] & /*$unconformitiesStore*/
|
811
|
-
16777216 && t !== (t = /*unconformity*/
|
812
|
-
c[105] + "") && B(s, t);
|
813
|
-
},
|
814
|
-
d(c) {
|
815
|
-
c && P(e);
|
816
|
-
}
|
817
|
-
};
|
818
|
-
}
|
819
|
-
function xt(l) {
|
820
|
-
let e, t, s = (
|
821
|
-
/*$_*/
|
822
|
-
l[23]("faceCollector.finish") + ""
|
823
|
-
), o, c, d, f, u = (
|
824
|
-
/*$_*/
|
825
|
-
l[23]("faceCollector.retakePhoto") + ""
|
826
|
-
), n, p, k;
|
827
|
-
return {
|
828
|
-
c() {
|
829
|
-
e = m("div"), t = m("button"), o = O(s), d = S(), f = m("button"), n = O(u), t.disabled = c = /*$justification*/
|
830
|
-
l[27].length === 0, a(t, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink text-base"), a(f, "id", "bry-cc-retake-button"), a(f, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink text-base"), a(e, "class", "ce-dui-btn-group flex");
|
831
|
-
},
|
832
|
-
m(D, _) {
|
833
|
-
L(D, e, _), r(e, t), r(t, o), r(e, d), r(e, f), r(f, n), p || (k = [
|
834
|
-
pe(
|
835
|
-
t,
|
836
|
-
"click",
|
837
|
-
/*click_handler_5*/
|
838
|
-
l[66]
|
839
|
-
),
|
840
|
-
pe(
|
841
|
-
f,
|
842
|
-
"click",
|
843
|
-
/*click_handler_6*/
|
844
|
-
l[67]
|
845
|
-
)
|
846
|
-
], p = !0);
|
847
|
-
},
|
848
|
-
p(D, _) {
|
849
|
-
_[0] & /*$_*/
|
850
|
-
8388608 && s !== (s = /*$_*/
|
851
|
-
D[23]("faceCollector.finish") + "") && B(o, s), _[0] & /*$justification*/
|
852
|
-
134217728 && c !== (c = /*$justification*/
|
853
|
-
D[27].length === 0) && (t.disabled = c), _[0] & /*$_*/
|
854
|
-
8388608 && u !== (u = /*$_*/
|
855
|
-
D[23]("faceCollector.retakePhoto") + "") && B(n, u);
|
856
|
-
},
|
857
|
-
d(D) {
|
858
|
-
D && P(e), p = !1, vt(k);
|
859
|
-
}
|
860
|
-
};
|
861
|
-
}
|
862
|
-
function Al(l) {
|
863
|
-
let e, t = (
|
864
|
-
/*$_*/
|
865
|
-
l[23]("faceCollector.everythingOk") + ""
|
866
|
-
), s;
|
867
|
-
return {
|
868
|
-
c() {
|
869
|
-
e = m("h1"), s = O(t), a(e, "class", "text-3xl font-bold pb-[1em] transition-opacity");
|
870
|
-
},
|
871
|
-
m(o, c) {
|
872
|
-
L(o, e, c), r(e, s);
|
873
|
-
},
|
874
|
-
p(o, c) {
|
875
|
-
c[0] & /*$_*/
|
876
|
-
8388608 && t !== (t = /*$_*/
|
877
|
-
o[23]("faceCollector.everythingOk") + "") && B(s, t);
|
878
|
-
},
|
879
|
-
d(o) {
|
880
|
-
o && P(e);
|
881
|
-
}
|
882
|
-
};
|
883
|
-
}
|
884
|
-
function Wl(l) {
|
885
|
-
let e, t = (
|
886
|
-
/*$_*/
|
887
|
-
l[23]("faceCollector.unableToCompleteRequest") + ""
|
888
|
-
), s;
|
889
|
-
return {
|
890
|
-
c() {
|
891
|
-
e = m("h1"), s = O(t), a(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
892
|
-
},
|
893
|
-
m(o, c) {
|
894
|
-
L(o, e, c), r(e, s);
|
895
|
-
},
|
896
|
-
p(o, c) {
|
897
|
-
c[0] & /*$_*/
|
898
|
-
8388608 && t !== (t = /*$_*/
|
899
|
-
o[23]("faceCollector.unableToCompleteRequest") + "") && B(s, t);
|
900
|
-
},
|
901
|
-
d(o) {
|
902
|
-
o && P(e);
|
903
|
-
}
|
904
|
-
};
|
905
|
-
}
|
906
|
-
function Ml(l) {
|
907
|
-
let e, t = (
|
908
|
-
/*$_*/
|
909
|
-
l[23]("faceCollector.lowQualityCapture") + ""
|
910
|
-
), s;
|
911
|
-
return {
|
912
|
-
c() {
|
913
|
-
e = m("h1"), s = O(t), a(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
914
|
-
},
|
915
|
-
m(o, c) {
|
916
|
-
L(o, e, c), r(e, s);
|
917
|
-
},
|
918
|
-
p(o, c) {
|
919
|
-
c[0] & /*$_*/
|
920
|
-
8388608 && t !== (t = /*$_*/
|
921
|
-
o[23]("faceCollector.lowQualityCapture") + "") && B(s, t);
|
922
|
-
},
|
923
|
-
d(o) {
|
924
|
-
o && P(e);
|
925
|
-
}
|
926
|
-
};
|
927
|
-
}
|
928
|
-
function Bl(l) {
|
929
|
-
let e, t = (
|
930
|
-
/*$_*/
|
931
|
-
l[23]("liveness.error.error") + ""
|
932
|
-
), s, o, c = (
|
933
|
-
/*$_*/
|
934
|
-
l[23]("faceCollector.unaliveCapture") + ""
|
935
|
-
), d;
|
936
|
-
return {
|
937
|
-
c() {
|
938
|
-
e = m("h1"), s = O(t), o = O(": "), d = O(c), a(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
939
|
-
},
|
940
|
-
m(f, u) {
|
941
|
-
L(f, e, u), r(e, s), r(e, o), r(e, d);
|
942
|
-
},
|
943
|
-
p(f, u) {
|
944
|
-
u[0] & /*$_*/
|
945
|
-
8388608 && t !== (t = /*$_*/
|
946
|
-
f[23]("liveness.error.error") + "") && B(s, t), u[0] & /*$_*/
|
947
|
-
8388608 && c !== (c = /*$_*/
|
948
|
-
f[23]("faceCollector.unaliveCapture") + "") && B(d, c);
|
949
|
-
},
|
950
|
-
d(f) {
|
951
|
-
f && P(e);
|
952
|
-
}
|
953
|
-
};
|
954
|
-
}
|
955
|
-
function Ul(l) {
|
956
|
-
let e, t = (
|
957
|
-
/*$_*/
|
958
|
-
l[23]("liveness.error.error") + ""
|
959
|
-
), s, o, c = (
|
960
|
-
/*$_*/
|
961
|
-
l[23](
|
962
|
-
/*livenessError*/
|
963
|
-
l[19]
|
964
|
-
) + ""
|
965
|
-
), d, f;
|
966
|
-
return {
|
967
|
-
c() {
|
968
|
-
e = m("h1"), s = O(t), o = O(": "), d = O(c), f = O("."), a(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
|
969
|
-
},
|
970
|
-
m(u, n) {
|
971
|
-
L(u, e, n), r(e, s), r(e, o), r(e, d), r(e, f);
|
972
|
-
},
|
973
|
-
p(u, n) {
|
974
|
-
n[0] & /*$_*/
|
975
|
-
8388608 && t !== (t = /*$_*/
|
976
|
-
u[23]("liveness.error.error") + "") && B(s, t), n[0] & /*$_, livenessError*/
|
977
|
-
8912896 && c !== (c = /*$_*/
|
978
|
-
u[23](
|
979
|
-
/*livenessError*/
|
980
|
-
u[19]
|
981
|
-
) + "") && B(d, c);
|
982
|
-
},
|
983
|
-
d(u) {
|
984
|
-
u && P(e);
|
985
|
-
}
|
986
|
-
};
|
987
|
-
}
|
988
|
-
function Hl(l) {
|
989
|
-
let e, t, s, o, c = z(), d, f = (
|
990
|
-
/*unique*/
|
991
|
-
l[12]
|
992
|
-
), u, n, p, k, D, _, v, g, w, R, C = (
|
993
|
-
/*$_*/
|
994
|
-
l[23]("faceCollector.capturing") + ""
|
995
|
-
), j, fe, ne, Y, we = (
|
996
|
-
/*$_*/
|
997
|
-
l[23]("faceCollector.stayStill") + ""
|
998
|
-
), Ie, Ce, le, A, U, F, Q, H, se, Xe, lt, I, q, ke, Z, x, re, Ee, Se = z() && /*waitingIdrndCaptureEvent*/
|
999
|
-
l[18], Je, Ge = z() && /*idrndLoading*/
|
1000
|
-
l[16] && /*$cameraStatusStore*/
|
1001
|
-
l[21] === de.OK, je, ye, We, Ye, K, $, oe, he = c && ul(l), ae = Xt(l);
|
1002
|
-
n = new Ui({ props: { className: "bottom-0" } });
|
1003
|
-
function ee(h, W) {
|
1004
|
-
return !/*$faceValidationsStore*/
|
1005
|
-
h[33].isPersonCloseEnough || /*$faceValidationsStore*/
|
1006
|
-
h[33].isPersonTooclose ? fl : dl;
|
1007
|
-
}
|
1008
|
-
let me = ee(l), M = me(l);
|
1009
|
-
function Te(h, W) {
|
1010
|
-
return (
|
1011
|
-
/*$faceValidationsStore*/
|
1012
|
-
h[33].closedMouth ? ml : hl
|
1013
|
-
);
|
1014
|
-
}
|
1015
|
-
let Fe = Te(l), ce = Fe(l);
|
1016
|
-
function Le(h, W) {
|
1017
|
-
return (
|
1018
|
-
/*$isLoading*/
|
1019
|
-
h[34] ? bl : _l
|
1020
|
-
);
|
1021
|
-
}
|
1022
|
-
let Ne = Le(l), ue = Ne(l);
|
1023
|
-
function _e(h, W) {
|
1024
|
-
return (
|
1025
|
-
/*$faceValidationsStore*/
|
1026
|
-
h[33].isPersonInFrame ? pl : gl
|
1027
|
-
);
|
1028
|
-
}
|
1029
|
-
let Me = _e(l), be = Me(l), X = Se && Jt(l), J = Ge && Gt(l);
|
1030
|
-
function Ze(h, W) {
|
1031
|
-
return (
|
1032
|
-
/*$captured*/
|
1033
|
-
h[20] ? El : yl
|
1034
|
-
);
|
1035
|
-
}
|
1036
|
-
let xe = Ze(l), te = xe(l);
|
1037
|
-
const Be = [Il, Pl], Re = [];
|
1038
|
-
function qe(h, W) {
|
1039
|
-
return (!/*idrndClosed*/
|
1040
|
-
h[17] || /*$captured*/
|
1041
|
-
h[20]) && /*showUnconformities*/
|
1042
|
-
h[2] ? 0 : (
|
1043
|
-
/*$cameraStatusStore*/
|
1044
|
-
h[21] !== de.OK ? 1 : -1
|
1045
|
-
);
|
1046
|
-
}
|
1047
|
-
return ~(K = qe(l)) && ($ = Re[K] = Be[K](l)), {
|
1048
|
-
c() {
|
1049
|
-
e = m("div"), t = m("div"), s = m("div"), o = m("div"), he && he.c(), d = S(), ae.c(), u = S(), Tt(n.$$.fragment), p = S(), k = m("canvas"), D = S(), _ = m("canvas"), v = S(), g = m("canvas"), w = S(), R = m("span"), j = O(C), ne = S(), Y = m("span"), Ie = O(we), le = S(), A = m("div"), U = m("div"), F = m("span"), F.textContent = "Longe", Q = S(), M.c(), H = S(), se = m("div"), Xe = m("span"), Xe.textContent = "Boca Aberta", lt = S(), ce.c(), I = S(), q = m("div"), ke = m("span"), ue.c(), Z = S(), be.c(), Ee = S(), X && X.c(), Je = S(), J && J.c(), je = S(), ye = m("div"), te.c(), Ye = S(), $ && $.c(), this.c = ie, a(k, "id", "bry-ce-displayCanvas"), a(k, "class", "max-w-full -scale-x-100"), a(_, "id", "bry-ce-detectionsCanvas"), a(_, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), a(g, "id", "bry-ce-maskCanvas"), a(g, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), R.hidden = fe = !/*isCountingDown*/
|
1050
|
-
l[11], a(R, "class", "absolute left-1/2 -translate-x-1/2 top-[85%] text-[1.5rem] bg-info text-info-content p-1 rounded-md"), Y.hidden = Ce = !/*isCountingDown*/
|
1051
|
-
l[11], a(Y, "class", "absolute left-1/2 -translate-x-1/2 top-[5%] text-[1.5rem] bg-info text-info-content p-1 rounded-md"), a(U, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-2xs sm:text-base w-[10.1em]"), a(se, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-[.1em] 2xs:text-2xs sm:text-base w-[9.6em]"), a(q, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-2xs sm:text-base w-[10em]"), a(A, "class", x = "absolute " + /*$enableFaceApi*/
|
1052
|
-
(l[30] && !/*isCountingDown*/
|
1053
|
-
l[11] ? "flex" : "hidden") + " justify-around w-full top-[5%]"), a(o, "class", "relative"), o.hidden = re = z() && /*idrndLoading*/
|
1054
|
-
(l[16] || /*idrndClosed*/
|
1055
|
-
l[17] || /*waitingIdrndCaptureEvent*/
|
1056
|
-
l[18]), a(ye, "class", "px-4 sm:px-0 mt-[1em]"), ye.hidden = We = !/*showCaptureButton*/
|
1057
|
-
l[1] || z() && /*idrndLoading*/
|
1058
|
-
(l[16] || /*idrndClosed*/
|
1059
|
-
l[17] || /*waitingIdrndCaptureEvent*/
|
1060
|
-
l[18]), a(s, "class", "relative mx-auto"), a(t, "class", "flex flex-col justify-between");
|
1061
|
-
},
|
1062
|
-
m(h, W) {
|
1063
|
-
L(h, e, W), r(e, t), r(t, s), r(s, o), he && he.m(o, null), r(o, d), ae.m(o, null), r(o, u), Ot(n, o, null), r(o, p), r(o, k), l[51](k), r(o, D), r(o, _), l[52](_), r(o, v), r(o, g), l[53](g), r(o, w), r(o, R), r(R, j), l[54](R), r(o, ne), r(o, Y), r(Y, Ie), l[55](Y), r(o, le), r(o, A), r(A, U), r(U, F), r(U, Q), M.m(U, null), l[56](U), r(A, H), r(A, se), r(se, Xe), r(se, lt), ce.m(se, null), l[57](se), r(A, I), r(A, q), r(q, ke), ue.m(ke, null), r(q, Z), be.m(q, null), l[58](q), r(s, Ee), X && X.m(s, null), r(s, Je), J && J.m(s, null), r(s, je), r(s, ye), te.m(ye, null), l[62](t), r(e, Ye), ~K && Re[K].m(e, null), oe = !0;
|
1064
|
-
},
|
1065
|
-
p(h, W) {
|
1066
|
-
c && he.p(h, W), W[0] & /*unique*/
|
1067
|
-
4096 && ti(f, f = /*unique*/
|
1068
|
-
h[12]) ? (ae.d(1), ae = Xt(h), ae.c(), ae.m(o, u)) : ae.p(h, W), (!oe || W[0] & /*$_*/
|
1069
|
-
8388608) && C !== (C = /*$_*/
|
1070
|
-
h[23]("faceCollector.capturing") + "") && B(j, C), (!oe || W[0] & /*isCountingDown*/
|
1071
|
-
2048 && fe !== (fe = !/*isCountingDown*/
|
1072
|
-
h[11])) && (R.hidden = fe), (!oe || W[0] & /*$_*/
|
1073
|
-
8388608) && we !== (we = /*$_*/
|
1074
|
-
h[23]("faceCollector.stayStill") + "") && B(Ie, we), (!oe || W[0] & /*isCountingDown*/
|
1075
|
-
2048 && Ce !== (Ce = !/*isCountingDown*/
|
1076
|
-
h[11])) && (Y.hidden = Ce), me !== (me = ee(h)) && (M.d(1), M = me(h), M && (M.c(), M.m(U, null))), Fe !== (Fe = Te(h)) && (ce.d(1), ce = Fe(h), ce && (ce.c(), ce.m(se, null))), Ne === (Ne = Le(h)) && ue ? ue.p(h, W) : (ue.d(1), ue = Ne(h), ue && (ue.c(), ue.m(ke, null))), Me !== (Me = _e(h)) && (be.d(1), be = Me(h), be && (be.c(), be.m(q, null))), (!oe || W[0] & /*$enableFaceApi, isCountingDown*/
|
1077
|
-
1073743872 && x !== (x = "absolute " + /*$enableFaceApi*/
|
1078
|
-
(h[30] && !/*isCountingDown*/
|
1079
|
-
h[11] ? "flex" : "hidden") + " justify-around w-full top-[5%]")) && a(A, "class", x), (!oe || W[0] & /*idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
1080
|
-
458752 && re !== (re = z() && /*idrndLoading*/
|
1081
|
-
(h[16] || /*idrndClosed*/
|
1082
|
-
h[17] || /*waitingIdrndCaptureEvent*/
|
1083
|
-
h[18]))) && (o.hidden = re), W[0] & /*waitingIdrndCaptureEvent*/
|
1084
|
-
262144 && (Se = z() && /*waitingIdrndCaptureEvent*/
|
1085
|
-
h[18]), Se ? X ? X.p(h, W) : (X = Jt(h), X.c(), X.m(s, Je)) : X && (X.d(1), X = null), W[0] & /*idrndLoading, $cameraStatusStore*/
|
1086
|
-
2162688 && (Ge = z() && /*idrndLoading*/
|
1087
|
-
h[16] && /*$cameraStatusStore*/
|
1088
|
-
h[21] === de.OK), Ge ? J ? J.p(h, W) : (J = Gt(h), J.c(), J.m(s, je)) : J && (J.d(1), J = null), xe === (xe = Ze(h)) && te ? te.p(h, W) : (te.d(1), te = xe(h), te && (te.c(), te.m(ye, null))), (!oe || W[0] & /*showCaptureButton, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
1089
|
-
458754 && We !== (We = !/*showCaptureButton*/
|
1090
|
-
h[1] || z() && /*idrndLoading*/
|
1091
|
-
(h[16] || /*idrndClosed*/
|
1092
|
-
h[17] || /*waitingIdrndCaptureEvent*/
|
1093
|
-
h[18]))) && (ye.hidden = We);
|
1094
|
-
let st = K;
|
1095
|
-
K = qe(h), K === st ? ~K && Re[K].p(h, W) : ($ && (ii(), Ke(Re[st], 1, 1, () => {
|
1096
|
-
Re[st] = null;
|
1097
|
-
}), li()), ~K ? ($ = Re[K], $ ? $.p(h, W) : ($ = Re[K] = Be[K](h), $.c()), Ve($, 1), $.m(e, null)) : $ = null);
|
1098
|
-
},
|
1099
|
-
i(h) {
|
1100
|
-
oe || (Ve(n.$$.fragment, h), Ve($), oe = !0);
|
1101
|
-
},
|
1102
|
-
o(h) {
|
1103
|
-
Ke(n.$$.fragment, h), Ke($), oe = !1;
|
1104
|
-
},
|
1105
|
-
d(h) {
|
1106
|
-
h && P(e), he && he.d(), ae.d(h), Dt(n), l[51](null), l[52](null), l[53](null), l[54](null), l[55](null), M.d(), l[56](null), ce.d(), l[57](null), ue.d(), be.d(), l[58](null), X && X.d(), J && J.d(), te.d(), l[62](null), ~K && Re[K].d();
|
1107
|
-
}
|
1108
|
-
};
|
1109
|
-
}
|
1110
|
-
let Kl = 5, $t = 3e3;
|
1111
|
-
function ei(l, e, t) {
|
1112
|
-
const s = e.videoHeight >= e.videoWidth && t.height >= t.width || e.videoHeight < e.videoWidth && t.height < t.width;
|
1113
|
-
l.drawImage(
|
1114
|
-
e,
|
1115
|
-
s ? 0 : e.videoWidth / 2 - t.width,
|
1116
|
-
0,
|
1117
|
-
s ? e.videoWidth : e.videoHeight * (t.width / t.height),
|
1118
|
-
e.videoHeight,
|
1119
|
-
0,
|
1120
|
-
0,
|
1121
|
-
t.width,
|
1122
|
-
t.height
|
1123
|
-
);
|
1124
|
-
}
|
1125
|
-
function Vl(l, e, t) {
|
1126
|
-
let s, o, c, d, f, u, n, p, k, D, _, v, g, w, R, C, j, fe, ne, Y, we, Ie, Ce, le, A, U, F, Q, H, se, Xe, lt;
|
1127
|
-
N(l, kt, (i) => t(77, s = i)), N(l, $e, (i) => t(20, c = i)), N(l, De, (i) => t(21, d = i)), N(l, Et, (i) => t(79, f = i)), N(l, Wt, (i) => t(80, u = i)), N(l, et, (i) => t(22, n = i)), N(l, Hi, (i) => t(81, p = i)), N(l, Ki, (i) => t(23, k = i)), N(l, Vi, (i) => t(82, D = i)), N(l, tt, (i) => t(24, _ = i)), N(l, ot, (i) => t(83, v = i)), N(l, Oe, (i) => t(25, g = i)), N(l, yt, (i) => t(26, w = i)), N(l, Lt, (i) => t(27, R = i)), N(l, He, (i) => t(28, C = i)), N(l, ji, (i) => t(84, fe = i)), N(l, qi, (i) => t(30, ne = i)), N(l, rt, (i) => t(31, Y = i)), N(l, Rt, (i) => t(85, we = i)), N(l, zi, (i) => t(86, Ie = i)), N(l, ct, (i) => t(87, Ce = i)), N(l, Mt, (i) => t(88, le = i)), N(l, Bt, (i) => t(89, A = i)), N(l, Qi, (i) => t(90, U = i)), N(l, Pt, (i) => t(91, F = i)), N(l, Ut, (i) => t(32, Q = i)), N(l, ut, (i) => t(33, H = i)), N(l, Xi, (i) => t(34, se = i)), N(l, Ji, (i) => t(35, Xe = i)), N(l, Gi, (i) => t(36, lt = i));
|
1128
|
-
let I, q, ke, Z, x, re, Ee, Se = !1, Je = {}, Ge = !1, { enableMinutiae: je } = e, { videoDimensions: ye } = e, { noTabs: We } = e, { weightsPath: Ye } = e, { evaluatePhoto: K } = e, { showCaptureButton: $ } = e, { showUnconformities: oe } = e;
|
1129
|
-
const he = qt(!1);
|
1130
|
-
N(l, he, (i) => t(78, o = i));
|
1131
|
-
const ae = qt("data:image/png;base64");
|
1132
|
-
N(l, ae, (i) => t(29, j = i));
|
1133
|
-
let { widgetInstance: ee } = e, me, M, Te = !1, Fe = !1, ce = !0, Le = !0, Ne = !1, ue = 0, _e = "", Me = 0, be = 0, X = !1;
|
1134
|
-
const J = Yi.mixin({
|
1135
|
-
toast: !0,
|
1136
|
-
position: "bottom-left",
|
1137
|
-
timer: 13e3,
|
1138
|
-
timerProgressBar: !0
|
1139
|
-
});
|
1140
|
-
Zi(async () => {
|
1141
|
-
b(rt, Y = !1, Y), b(Ut, Q = !1, Q), b($e, c = !1, c);
|
1142
|
-
const [i, E] = (ye ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
|
1143
|
-
if (!(!i || !E)) {
|
1144
|
-
if (b(et, n = { videoWidth: i, videoHeight: E }, n), z() && E < i && Ht() && b(et, n = { videoWidth: E, videoHeight: i }, n), !z())
|
1145
|
-
try {
|
1146
|
-
await Kt();
|
1147
|
-
const { width: y, height: T, aspectRatio: V } = await xi(i, E);
|
1148
|
-
V && V > 1 && Ht() && b(et, n = { videoWidth: E, videoHeight: i }, n), (await Vt(i, E, "", !0))?.getTracks()?.forEach((Ue) => Ue?.stop()), b(Pt, F = U[0].deviceId, F);
|
1149
|
-
} catch (y) {
|
1150
|
-
const T = y;
|
1151
|
-
t(17, Le = !0), console.error(T), dt(T) && "message" in T && T.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), b(De, d = de.CAMERA_DENIED_ERROR, d)), dt(T) && "message" in T && T.message.includes("Requested device not found") && b(De, d = de.DEVICE_NOT_FOUND_ERROR, d);
|
1152
|
-
const V = dt(y) && y.constraint ? y.constraint : "";
|
1153
|
-
(V.includes("width") || V.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${V})`), b(De, d = de.CAMERA_UNSUPPORTED, d));
|
1154
|
-
}
|
1155
|
-
z() && (import("./index-no-detector_acb82d83_2.1.1.js"), xe()), ne && (await $i(Ye), Ge = !0), z() && !Fe && le && te();
|
1156
|
-
}
|
1157
|
-
});
|
1158
|
-
function Ze(i, E) {
|
1159
|
-
i.clearRect(0, 0, M.width, M.height), i.save(), i.filter = `blur(${E.width / 60}px)`, i.beginPath(), i.rect(0, 0, M.width, M.height);
|
1160
|
-
let y = 200;
|
1161
|
-
n.videoWidth > n.videoHeight ? y = n.videoWidth / 4 : y = n.videoHeight / 4;
|
1162
|
-
const T = y * 1.45;
|
1163
|
-
i.ellipse(n.videoWidth / 2, n.videoHeight / 2, y / 2, T / 2, 0, 0, 2 * Math.PI, !0), i.clip(), ei(i, E, M), i.restore(), i.save(), i.beginPath();
|
1164
|
-
const V = window.getComputedStyle(M).getPropertyValue("--p"), ze = window.getComputedStyle(M).getPropertyValue("--su");
|
1165
|
-
if (i.strokeStyle = `hsl(${V})`, i.lineWidth = 16, i.ellipse(n.videoWidth / 2, n.videoHeight / 2, y / 2, T / 2, 0, 0, 2 * Math.PI), i.stroke(), Se && !X) {
|
1166
|
-
const at = 1 - (be - (/* @__PURE__ */ new Date()).getTime()) / $t;
|
1167
|
-
i.save(), i.beginPath(), i.lineWidth = 16, i.strokeStyle = `hsl(${ze})`, i.ellipse(n.videoWidth / 2, n.videoHeight / 2, y / 2, T / 2, 0, 0 - Math.PI / 2, 1.5 * (Math.PI * 2 * at) - Math.PI / 2), i.stroke();
|
1168
|
-
}
|
1169
|
-
i.beginPath();
|
1170
|
-
const Ue = new Path2D();
|
1171
|
-
Ue.ellipse(n.videoWidth / 2, n.videoHeight / 2, y / 2, T / 2, 0, 0, 2 * Math.PI), i.clip(Ue), ei(i, E, M), i.restore();
|
1172
|
-
}
|
1173
|
-
function xe() {
|
1174
|
-
ee.addEventListener("open", (i) => {
|
1175
|
-
const E = i.detail[0].video;
|
1176
|
-
b(
|
1177
|
-
Bt,
|
1178
|
-
A = {
|
1179
|
-
width: E.videoWidth,
|
1180
|
-
height: E.videoHeight
|
1181
|
-
},
|
1182
|
-
A
|
1183
|
-
), t(4, I.srcObject = E.srcObject, I), t(16, ce = !1);
|
1184
|
-
function y() {
|
1185
|
-
Le || (Ze(M.getContext("2d"), E), it(I, y, !0));
|
1186
|
-
}
|
1187
|
-
y();
|
1188
|
-
}), ee.addEventListener("error", (i) => {
|
1189
|
-
console.error(i), i.detail[0].message === "Device in use" ? b(De, d = de.CAMERA_IN_USE_ERROR, d) : i.detail[0].message === "Permission denied" || i.detail[0].message === "Permission dismissed" ? b(De, d = de.CAMERA_DENIED_ERROR, d) : i.detail[0].message === "Requested device not found" && b(De, d = de.DEVICE_NOT_FOUND_ERROR, d), t(16, ce = !1);
|
1190
|
-
}), ee.addEventListener("faceDetection", (i) => {
|
1191
|
-
}), ee.addEventListener("close", async (i) => {
|
1192
|
-
c || t(15, Te = !1), t(17, Le = !0), t(18, Ne = !1), d === de.OK && b(De, d = de.CAMERA_CLOSED_ERROR, d);
|
1193
|
-
}), ee.addEventListener("initialize", async (i) => {
|
1194
|
-
Fe = !0, b(Mt, le = !0, le), we === ft.Face && !Te && !c && Fe && await te();
|
1195
|
-
}), ee.addEventListener("capture", async (i) => {
|
1196
|
-
t(19, _e = "");
|
1197
|
-
const { encryptedFile: E, photo: y } = i.detail[0];
|
1198
|
-
b(ct, Ce = E, Ce), t(18, Ne = !1), b(Oe, g = G.OK, g), b(tt, _.isLoading = !0, _), b($e, c = !0, c), t(15, Te = !1);
|
1199
|
-
const T = (await ht(y)).split(",");
|
1200
|
-
if (b(ae, j = T[0], j), b(He, C = T[1], C), b(ot, v = T[1], v), !Ie) {
|
1201
|
-
let ge, wt;
|
1202
|
-
try {
|
1203
|
-
({ bodyParts: ge, icaoWarnings: wt } = await mt(v, K, (await ht(E)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
1204
|
-
"face-unconformities-validated",
|
1205
|
-
{
|
1206
|
-
detail: {
|
1207
|
-
bodyParts: ge,
|
1208
|
-
icaoWarnings: wt,
|
1209
|
-
status: g
|
1210
|
-
}
|
1211
|
-
}
|
1212
|
-
));
|
1213
|
-
} catch (Qe) {
|
1214
|
-
console.error(Qe);
|
1215
|
-
let nt = It.UNKNOWN, Ct = [], Nt = [];
|
1216
|
-
if (Qe instanceof jt && Qe.response?.status === 400)
|
1217
|
-
if (Qe.response.data && Array.isArray(Qe.response.data.bodyParts)) {
|
1218
|
-
Ct = Qe.response.data.bodyParts, Nt = Qe.response.data.icaoWarnings;
|
1219
|
-
const At = Ct.find((Ai) => Ai.livenessResult.error);
|
1220
|
-
nt = At?.livenessResult.error_code, b(Oe, g = G.LIVENESS_DETECTION_FAILURE, g), At?.livenessResult.error_code || b(Oe, g = G.UNKNOWN_LIVENESS_ERROR, g), t(19, _e = It[nt]), console.error("Liveness error:", nt);
|
1221
|
-
} else
|
1222
|
-
b(Oe, g = G.TEMPLATE_EXTRACTION_ERROR, g);
|
1223
|
-
else
|
1224
|
-
b(Oe, g = G.UNKNOWN_LIVENESS_ERROR, g), J.fire({
|
1225
|
-
icon: "error",
|
1226
|
-
title: "Falha ao comunicar com serviço de Liveness"
|
1227
|
-
});
|
1228
|
-
b(tt, _.isLoading = !1, _), window.dispatchEvent(new CustomEvent(
|
1229
|
-
"face-unconformities-validated",
|
1230
|
-
{
|
1231
|
-
detail: {
|
1232
|
-
bodyParts: Ct,
|
1233
|
-
errorCode: nt,
|
1234
|
-
translatedError: k(_e),
|
1235
|
-
status: g,
|
1236
|
-
icaoWarnings: Nt
|
1237
|
-
}
|
1238
|
-
}
|
1239
|
-
));
|
1240
|
-
return;
|
1241
|
-
}
|
1242
|
-
if (g !== G.OK) {
|
1243
|
-
b(tt, _.isLoading = !1, _);
|
1244
|
-
return;
|
1245
|
-
}
|
1246
|
-
ge[0].livenessResult && W(ge[0].livenessResult), ge.length !== 0 && ge[0].data && b(He, C = ge[0].data, C), _t(wt);
|
1247
|
-
return;
|
1248
|
-
}
|
1249
|
-
let V, ze;
|
1250
|
-
try {
|
1251
|
-
ze = await el(E), W(ze.data);
|
1252
|
-
} catch (ge) {
|
1253
|
-
b(Oe, g = G.UNKNOWN_LIVENESS_ERROR, g), console.error(ge), ge instanceof jt && ge.response?.status === 400 ? (V = ge.response.data.error_code, t(19, _e = It[V]), console.error("Liveness error:", V), b(Oe, g = G.LIVENESS_DETECTION_FAILURE, g)) : J.fire({
|
1254
|
-
icon: "error",
|
1255
|
-
title: "Falha ao comunicar com serviço de Liveness"
|
1256
|
-
});
|
1257
|
-
}
|
1258
|
-
if (g !== G.OK) {
|
1259
|
-
b(tt, _.isLoading = !1, _), window.dispatchEvent(new CustomEvent(
|
1260
|
-
"face-unconformities-validated",
|
1261
|
-
{
|
1262
|
-
detail: {
|
1263
|
-
bodyParts: [
|
1264
|
-
{
|
1265
|
-
bodyPart: "FACE",
|
1266
|
-
data: v,
|
1267
|
-
livenessBlob: (await ht(E)).split(",")[1],
|
1268
|
-
...ze && { livenessResult: ze }
|
1269
|
-
}
|
1270
|
-
],
|
1271
|
-
...V && { errorCode: V },
|
1272
|
-
..._e && { translatedError: k(_e) },
|
1273
|
-
status: g
|
1274
|
-
}
|
1275
|
-
}
|
1276
|
-
));
|
1277
|
-
return;
|
1278
|
-
}
|
1279
|
-
let { bodyParts: Ue, icaoWarnings: at } = await mt(v, K);
|
1280
|
-
window.dispatchEvent(new CustomEvent(
|
1281
|
-
"face-unconformities-validated",
|
1282
|
-
{
|
1283
|
-
detail: {
|
1284
|
-
bodyParts: Ue,
|
1285
|
-
icaoWarnings: at,
|
1286
|
-
status: g,
|
1287
|
-
errorCode: V,
|
1288
|
-
..._e && { translatedError: k(_e) }
|
1289
|
-
}
|
1290
|
-
}
|
1291
|
-
)), Ue[0].data && b(He, C = Ue[0].data, C), _t(at);
|
1292
|
-
});
|
1293
|
-
}
|
1294
|
-
function te() {
|
1295
|
-
b(De, d = de.OK, d), ee && "openCamera" in ee && ee.openCamera(), t(15, Te = !0), t(17, Le = !1), t(16, ce = !0);
|
1296
|
-
}
|
1297
|
-
async function Be() {
|
1298
|
-
if (ne && !Ge)
|
1299
|
-
return it(I, Be);
|
1300
|
-
if (I) {
|
1301
|
-
if (we !== ft.Face && !We)
|
1302
|
-
return it(I, Be);
|
1303
|
-
b(rt, Y = !0, Y), ne ? (o || b(he, o = !0, o), z() || Ze(M.getContext("2d"), I), it(I, Be)) : (Ze(M.getContext("2d"), I), it(I, Be));
|
1304
|
-
}
|
1305
|
-
}
|
1306
|
-
async function Re() {
|
1307
|
-
if (b(Oe, g = G.OK, g), z()) {
|
1308
|
-
t(18, Ne = !0), ee.takePhoto();
|
1309
|
-
return;
|
1310
|
-
}
|
1311
|
-
if (b($e, c = !0, c), ne) {
|
1312
|
-
const [i] = await (await import("./face_api_0e3ce8c8_2.1.1.js")).extractFaces(I, [fe]), E = i.toDataURL("image/jpeg").split(",");
|
1313
|
-
b(ae, j = E[0], j), b(He, C = E[1], C), b(ot, v = E[1], v);
|
1314
|
-
let { bodyParts: y, icaoWarnings: T } = await mt(C, K);
|
1315
|
-
window.dispatchEvent(new CustomEvent(
|
1316
|
-
"face-unconformities-validated",
|
1317
|
-
{
|
1318
|
-
detail: {
|
1319
|
-
bodyParts: y,
|
1320
|
-
icaoWarnings: T,
|
1321
|
-
status: g
|
1322
|
-
}
|
1323
|
-
}
|
1324
|
-
)), y.length !== 0 && y[0].data && b(He, C = y[0].data, C), _t(T);
|
1325
|
-
} else {
|
1326
|
-
const i = document.createElement("canvas"), E = i.getContext("2d");
|
1327
|
-
i.width = I.width, i.height = I.height, E?.drawImage(I, 0, 0, i.width, i.height);
|
1328
|
-
const y = i.toDataURL("image/jpeg").split(",");
|
1329
|
-
b(ae, j = y[0], j), b(He, C = y[1], C), b(ot, v = y[1], v);
|
1330
|
-
let { bodyParts: T, icaoWarnings: V } = await mt(C, K);
|
1331
|
-
window.dispatchEvent(new CustomEvent(
|
1332
|
-
"face-unconformities-validated",
|
1333
|
-
{
|
1334
|
-
detail: {
|
1335
|
-
bodyParts: T,
|
1336
|
-
icaoWarnings: V,
|
1337
|
-
status: g
|
1338
|
-
}
|
1339
|
-
}
|
1340
|
-
)), T.length !== 0 && T[0].data && b(He, C = T[0].data, C), _t(V);
|
1341
|
-
}
|
1342
|
-
}
|
1343
|
-
function qe() {
|
1344
|
-
const i = {
|
1345
|
-
bodyPart: "FACE",
|
1346
|
-
data: C,
|
1347
|
-
justification: R
|
1348
|
-
};
|
1349
|
-
b(yt, w = !0, w), bt(ct) && ht(bt(ct)).then((E) => {
|
1350
|
-
i.livenessBlob = E.split(",")[1];
|
1351
|
-
}), window.dispatchEvent(new CustomEvent("export-face", { detail: i }));
|
1352
|
-
}
|
1353
|
-
function h() {
|
1354
|
-
window.dispatchEvent(new CustomEvent("face-scrapped")), b(yt, w = !1, w), b(Oe, g = G.OK, g), b($e, c = !1, c), b(ot, v = "", v), b(tt, _.unconformities = [], _);
|
1355
|
-
const i = bt(ut);
|
1356
|
-
i.closedMouth = !1, i.isPersonCloseEnough = !1, i.isPersonTooclose = !0, i.isPersonInFrame = !1, ut.set(i), Le && te();
|
1357
|
-
}
|
1358
|
-
function W(i) {
|
1359
|
-
let E = "", y = "success";
|
1360
|
-
i.isAlive ? E = `Vivacidade de face (${i.face_liveness.probability.toFixed(2)}) e de captura (${i.capture_liveness.probability}, ${i.capture_liveness.score.toFixed(2)}) verificados!` : i?.face_liveness?.probability && (y = "error", E = `Vivacidade de face (${i.face_liveness.probability.toFixed(2)}) e de captura (${i.capture_liveness.probability}, ${i.capture_liveness.score.toFixed(2)}) insuficientes!`), D && J.fire({ icon: y, title: E });
|
1361
|
-
}
|
1362
|
-
const st = et.subscribe((i) => {
|
1363
|
-
I && q && (t(4, I.width = i.videoWidth, I), t(4, I.height = i.videoHeight, I), t(5, q.width = i.videoWidth, q), t(5, q.height = i.videoHeight, q), t(13, me.width = i.videoWidth, me), t(13, me.height = i.videoHeight, me), t(14, M.width = i.videoWidth, M), t(14, M.height = i.videoHeight, M));
|
1364
|
-
}), oi = ut.subscribe((i) => {
|
1365
|
-
if (!(!Z || !x || !re) && (i.closedMouth ? (x.classList.add("ce-dui-badge-success"), x.classList.remove("ce-dui-badge-error"), t(8, x.firstChild.textContent = k("faceCollector.closedMouth"), x)) : (x.classList.remove("ce-dui-badge-success"), x.classList.add("ce-dui-badge-error"), t(8, x.firstChild.textContent = k("faceCollector.mouthOpen"), x)), !i.isPersonCloseEnough || i.isPersonTooclose ? (Z.classList.remove("ce-dui-badge-success"), Z.classList.add("ce-dui-badge-error"), i.isPersonCloseEnough ? i.isPersonTooclose && t(7, Z.firstChild.textContent = k("faceCollector.tooClose"), Z) : t(7, Z.firstChild.textContent = k("faceCollector.tooFar"), Z)) : (Z.classList.add("ce-dui-badge-success"), Z.classList.remove("ce-dui-badge-error"), t(7, Z.firstChild.textContent = k("faceCollector.okDistance"), Z)), i.isPersonInFrame ? (re.classList.add("ce-dui-badge-success"), re.classList.remove("ce-dui-badge-error")) : (re.classList.remove("ce-dui-badge-success"), re.classList.add("ce-dui-badge-error")), !c && p && !Se && ke && i.isPersonInFrame && i.closedMouth && !(!i.isPersonCloseEnough || i.isPersonTooclose))) {
|
1366
|
-
t(11, Se = !0), be = (/* @__PURE__ */ new Date()).getTime() + $t;
|
1367
|
-
const E = setInterval(
|
1368
|
-
() => {
|
1369
|
-
if (!p || c || z() && Le || !i.isPersonCloseEnough || i.isPersonTooclose || !i.closedMouth || !i.isPersonInFrame) {
|
1370
|
-
t(11, Se = !1), X = !0, setTimeout(
|
1371
|
-
() => {
|
1372
|
-
X = !1;
|
1373
|
-
},
|
1374
|
-
1500
|
1375
|
-
), clearInterval(E);
|
1376
|
-
return;
|
1377
|
-
}
|
1378
|
-
const y = (/* @__PURE__ */ new Date()).getTime();
|
1379
|
-
Math.floor((be - y) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(E), t(11, Se = !1), document.getElementsByTagName("biometric-collector")?.[0]?.shadowRoot?.getElementById("bry-cc-capture-btn")?.click());
|
1380
|
-
},
|
1381
|
-
100
|
1382
|
-
);
|
1383
|
-
}
|
1384
|
-
}), ai = $e.subscribe((i) => {
|
1385
|
-
Ee && (i ? (Ee.classList.remove("flex"), Ee.classList.add("hidden")) : (Ee.classList.add("flex"), Ee.classList.remove("hidden")));
|
1386
|
-
}), ni = Et.subscribe((i) => {
|
1387
|
-
I && i && (console.log("setting null in video srcObject"), t(4, I.srcObject = null, I), t(4, I.src = "", I));
|
1388
|
-
});
|
1389
|
-
Rt.subscribe(async (i) => {
|
1390
|
-
i === ft.Face && await Kt();
|
1391
|
-
});
|
1392
|
-
const ri = Pt.subscribe(async (i) => {
|
1393
|
-
if (z() || !i)
|
1394
|
-
return;
|
1395
|
-
I || t(12, Je = {});
|
1396
|
-
const { videoHeight: E, videoWidth: y } = n;
|
1397
|
-
try {
|
1398
|
-
const T = await Vt(y, E, i, !0);
|
1399
|
-
t(4, I.srcObject = T, I), b(Wt, u = T, u), b(Et, f = !1, f);
|
1400
|
-
} catch (T) {
|
1401
|
-
const V = T;
|
1402
|
-
t(17, Le = !0), dt(V) && "message" in V && V.message.includes("Requested device not found") && b(De, d = de.DEVICE_NOT_FOUND_ERROR, d);
|
1403
|
-
}
|
1404
|
-
}), ci = Rt.subscribe(async (i) => {
|
1405
|
-
i === ft.Face && z() && !Te && !c && Fe && await te();
|
1406
|
-
}), ui = he.subscribe(async (i) => {
|
1407
|
-
i && Ft();
|
1408
|
-
});
|
1409
|
-
async function Ft() {
|
1410
|
-
let i;
|
1411
|
-
if (Me >= Kl) {
|
1412
|
-
Me = 0;
|
1413
|
-
const E = await ll(), y = await import("./face_api_0e3ce8c8_2.1.1.js");
|
1414
|
-
let T;
|
1415
|
-
T = y.detectSingleFace(M, E), i = await T.withFaceLandmarks(), q.getContext("2d")?.clearRect(0, 0, q.width, q.height);
|
1416
|
-
} else
|
1417
|
-
Me++;
|
1418
|
-
i && sl(i, q, je), o && it(I, Ft);
|
1419
|
-
}
|
1420
|
-
kt.subscribe(async (i) => {
|
1421
|
-
i && (h(), b(kt, s = !1, s));
|
1422
|
-
});
|
1423
|
-
const di = rt.subscribe((i) => {
|
1424
|
-
i && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
1425
|
-
});
|
1426
|
-
tl(() => {
|
1427
|
-
il(), ai(), oi(), st(), ni(), ri(), ci(), clearInterval(ue), ui(), di(), ue = 0;
|
1428
|
-
});
|
1429
|
-
function fi(i) {
|
1430
|
-
Pe[i ? "unshift" : "push"](() => {
|
1431
|
-
ee = i, t(0, ee);
|
1432
|
-
});
|
1433
|
-
}
|
1434
|
-
function hi(i) {
|
1435
|
-
Pe[i ? "unshift" : "push"](() => {
|
1436
|
-
I = i, t(4, I);
|
1437
|
-
});
|
1438
|
-
}
|
1439
|
-
const mi = () => {
|
1440
|
-
z() || b(
|
1441
|
-
et,
|
1442
|
-
n = {
|
1443
|
-
videoHeight: I.videoHeight,
|
1444
|
-
videoWidth: I.videoWidth
|
1445
|
-
},
|
1446
|
-
n
|
1447
|
-
);
|
1448
|
-
};
|
1449
|
-
function _i(i) {
|
1450
|
-
Pe[i ? "unshift" : "push"](() => {
|
1451
|
-
M = i, t(14, M);
|
1452
|
-
});
|
1453
|
-
}
|
1454
|
-
function bi(i) {
|
1455
|
-
Pe[i ? "unshift" : "push"](() => {
|
1456
|
-
q = i, t(5, q);
|
1457
|
-
});
|
1458
|
-
}
|
1459
|
-
function gi(i) {
|
1460
|
-
Pe[i ? "unshift" : "push"](() => {
|
1461
|
-
me = i, t(13, me);
|
1462
|
-
});
|
1463
|
-
}
|
1464
|
-
function pi(i) {
|
1465
|
-
Pe[i ? "unshift" : "push"](() => {
|
1466
|
-
ke = i, t(6, ke);
|
1467
|
-
});
|
1468
|
-
}
|
1469
|
-
function vi(i) {
|
1470
|
-
Pe[i ? "unshift" : "push"](() => {
|
1471
|
-
ke = i, t(6, ke);
|
1472
|
-
});
|
1473
|
-
}
|
1474
|
-
function wi(i) {
|
1475
|
-
Pe[i ? "unshift" : "push"](() => {
|
1476
|
-
Z = i, t(7, Z);
|
1477
|
-
});
|
1478
|
-
}
|
1479
|
-
function Ci(i) {
|
1480
|
-
Pe[i ? "unshift" : "push"](() => {
|
1481
|
-
x = i, t(8, x);
|
1482
|
-
});
|
1483
|
-
}
|
1484
|
-
function ki(i) {
|
1485
|
-
Pe[i ? "unshift" : "push"](() => {
|
1486
|
-
re = i, t(9, re);
|
1487
|
-
});
|
1488
|
-
}
|
1489
|
-
const Ei = () => Re(), yi = () => qe(), Li = () => h();
|
1490
|
-
function Ri(i) {
|
1491
|
-
Pe[i ? "unshift" : "push"](() => {
|
1492
|
-
Ee = i, t(10, Ee);
|
1493
|
-
});
|
1494
|
-
}
|
1495
|
-
const Pi = () => qe(), Ii = () => h();
|
1496
|
-
function Si() {
|
1497
|
-
R = this.value, Lt.set(R);
|
1498
|
-
}
|
1499
|
-
const Ti = () => qe(), Oi = () => h();
|
1500
|
-
function Di() {
|
1501
|
-
R = this.value, Lt.set(R);
|
1502
|
-
}
|
1503
|
-
const Fi = () => h(), Ni = () => {
|
1504
|
-
t(15, Te = !0), te();
|
1505
|
-
};
|
1506
|
-
return l.$$set = (i) => {
|
1507
|
-
"enableMinutiae" in i && t(43, je = i.enableMinutiae), "videoDimensions" in i && t(44, ye = i.videoDimensions), "noTabs" in i && t(45, We = i.noTabs), "weightsPath" in i && t(46, Ye = i.weightsPath), "evaluatePhoto" in i && t(47, K = i.evaluatePhoto), "showCaptureButton" in i && t(1, $ = i.showCaptureButton), "showUnconformities" in i && t(2, oe = i.showUnconformities), "widgetInstance" in i && t(0, ee = i.widgetInstance);
|
1508
|
-
}, [
|
1509
|
-
ee,
|
1510
|
-
$,
|
1511
|
-
oe,
|
1512
|
-
Be,
|
1513
|
-
I,
|
1514
|
-
q,
|
1515
|
-
ke,
|
1516
|
-
Z,
|
1517
|
-
x,
|
1518
|
-
re,
|
1519
|
-
Ee,
|
1520
|
-
Se,
|
1521
|
-
Je,
|
1522
|
-
me,
|
1523
|
-
M,
|
1524
|
-
Te,
|
1525
|
-
ce,
|
1526
|
-
Le,
|
1527
|
-
Ne,
|
1528
|
-
_e,
|
1529
|
-
c,
|
1530
|
-
d,
|
1531
|
-
n,
|
1532
|
-
k,
|
1533
|
-
_,
|
1534
|
-
g,
|
1535
|
-
w,
|
1536
|
-
R,
|
1537
|
-
C,
|
1538
|
-
j,
|
1539
|
-
ne,
|
1540
|
-
Y,
|
1541
|
-
Q,
|
1542
|
-
H,
|
1543
|
-
se,
|
1544
|
-
Xe,
|
1545
|
-
lt,
|
1546
|
-
he,
|
1547
|
-
ae,
|
1548
|
-
te,
|
1549
|
-
Re,
|
1550
|
-
qe,
|
1551
|
-
h,
|
1552
|
-
je,
|
1553
|
-
ye,
|
1554
|
-
We,
|
1555
|
-
Ye,
|
1556
|
-
K,
|
1557
|
-
fi,
|
1558
|
-
hi,
|
1559
|
-
mi,
|
1560
|
-
_i,
|
1561
|
-
bi,
|
1562
|
-
gi,
|
1563
|
-
pi,
|
1564
|
-
vi,
|
1565
|
-
wi,
|
1566
|
-
Ci,
|
1567
|
-
ki,
|
1568
|
-
Ei,
|
1569
|
-
yi,
|
1570
|
-
Li,
|
1571
|
-
Ri,
|
1572
|
-
Pi,
|
1573
|
-
Ii,
|
1574
|
-
Si,
|
1575
|
-
Ti,
|
1576
|
-
Oi,
|
1577
|
-
Di,
|
1578
|
-
Fi,
|
1579
|
-
Ni
|
1580
|
-
];
|
1581
|
-
}
|
1582
|
-
class jl extends Wi {
|
1583
|
-
constructor(e) {
|
1584
|
-
super(), Mi(
|
1585
|
-
this,
|
1586
|
-
{
|
1587
|
-
target: this.shadowRoot,
|
1588
|
-
props: Bi(this.attributes),
|
1589
|
-
customElement: !0
|
1590
|
-
},
|
1591
|
-
Vl,
|
1592
|
-
Hl,
|
1593
|
-
ti,
|
1594
|
-
{
|
1595
|
-
enableMinutiae: 43,
|
1596
|
-
videoDimensions: 44,
|
1597
|
-
noTabs: 45,
|
1598
|
-
weightsPath: 46,
|
1599
|
-
evaluatePhoto: 47,
|
1600
|
-
showCaptureButton: 1,
|
1601
|
-
showUnconformities: 2,
|
1602
|
-
widgetInstance: 0,
|
1603
|
-
play: 3
|
1604
|
-
},
|
1605
|
-
null,
|
1606
|
-
[-1, -1, -1, -1]
|
1607
|
-
), e && (e.target && L(e.target, this, e.anchor), e.props && (this.$set(e.props), Ae()));
|
1608
|
-
}
|
1609
|
-
static get observedAttributes() {
|
1610
|
-
return [
|
1611
|
-
"enableMinutiae",
|
1612
|
-
"videoDimensions",
|
1613
|
-
"noTabs",
|
1614
|
-
"weightsPath",
|
1615
|
-
"evaluatePhoto",
|
1616
|
-
"showCaptureButton",
|
1617
|
-
"showUnconformities",
|
1618
|
-
"widgetInstance",
|
1619
|
-
"play"
|
1620
|
-
];
|
1621
|
-
}
|
1622
|
-
get enableMinutiae() {
|
1623
|
-
return this.$$.ctx[43];
|
1624
|
-
}
|
1625
|
-
set enableMinutiae(e) {
|
1626
|
-
this.$$set({ enableMinutiae: e }), Ae();
|
1627
|
-
}
|
1628
|
-
get videoDimensions() {
|
1629
|
-
return this.$$.ctx[44];
|
1630
|
-
}
|
1631
|
-
set videoDimensions(e) {
|
1632
|
-
this.$$set({ videoDimensions: e }), Ae();
|
1633
|
-
}
|
1634
|
-
get noTabs() {
|
1635
|
-
return this.$$.ctx[45];
|
1636
|
-
}
|
1637
|
-
set noTabs(e) {
|
1638
|
-
this.$$set({ noTabs: e }), Ae();
|
1639
|
-
}
|
1640
|
-
get weightsPath() {
|
1641
|
-
return this.$$.ctx[46];
|
1642
|
-
}
|
1643
|
-
set weightsPath(e) {
|
1644
|
-
this.$$set({ weightsPath: e }), Ae();
|
1645
|
-
}
|
1646
|
-
get evaluatePhoto() {
|
1647
|
-
return this.$$.ctx[47];
|
1648
|
-
}
|
1649
|
-
set evaluatePhoto(e) {
|
1650
|
-
this.$$set({ evaluatePhoto: e }), Ae();
|
1651
|
-
}
|
1652
|
-
get showCaptureButton() {
|
1653
|
-
return this.$$.ctx[1];
|
1654
|
-
}
|
1655
|
-
set showCaptureButton(e) {
|
1656
|
-
this.$$set({ showCaptureButton: e }), Ae();
|
1657
|
-
}
|
1658
|
-
get showUnconformities() {
|
1659
|
-
return this.$$.ctx[2];
|
1660
|
-
}
|
1661
|
-
set showUnconformities(e) {
|
1662
|
-
this.$$set({ showUnconformities: e }), Ae();
|
1663
|
-
}
|
1664
|
-
get widgetInstance() {
|
1665
|
-
return this.$$.ctx[0];
|
1666
|
-
}
|
1667
|
-
set widgetInstance(e) {
|
1668
|
-
this.$$set({ widgetInstance: e }), Ae();
|
1669
|
-
}
|
1670
|
-
get play() {
|
1671
|
-
return this.$$.ctx[3];
|
1672
|
-
}
|
1673
|
-
}
|
1674
|
-
customElements.define("face-collector", jl);
|
1675
|
-
export {
|
1676
|
-
jl as default
|
1677
|
-
};
|