bry-biometric-collector 2.2.23 → 2.2.24

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