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