bry-biometric-collector 3.1.0-RC02 → 3.1.0-RC04

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