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