bry-biometric-collector 2.2.4 → 2.2.5

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