bry-biometric-collector 2.2.2 → 2.2.3

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