bry-biometric-collector 3.1.0-RC03 → 3.1.0

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 (20) hide show
  1. package/README.md +13 -1
  2. package/dist/{DocumentCollector_9474f250_3.1.0-RC03.js → DocumentCollector_2a473026_3.1.0.js} +28 -28
  3. package/dist/FaceCollector_81109b31_3.1.0.js +2189 -0
  4. package/dist/{ValidationAlert_de35f79f_3.1.0-RC03.js → ValidationAlert_15dcf5cc_3.1.0.js} +27 -27
  5. package/dist/{___vite-browser-external_commonjs-proxy_1b577ab2_3.1.0-RC03.js → ___vite-browser-external_commonjs-proxy_e49f2f2d_3.1.0.js} +1 -1
  6. package/dist/bry-biometric-collector-main.js +2 -2
  7. package/dist/{fingersApi_7ab23b24_3.1.0-RC03.js → fingersApi_2c740dd1_3.1.0.js} +2 -2
  8. package/dist/index.js +2 -2
  9. package/dist/{index_df5e7131_3.1.0-RC03.js → index_248edde3_3.1.0.js} +3 -3
  10. package/dist/{index_11cf6399_3.1.0-RC03.js → index_554a0a33_3.1.0.js} +3 -3
  11. package/dist/{main_11e1c290_3.1.0-RC03.js → main_297fa10f_3.1.0.js} +118 -118
  12. package/dist/style.css +1 -1
  13. package/package.json +1 -1
  14. package/dist/FaceCollector_067efaea_3.1.0-RC03.js +0 -2165
  15. /package/dist/{en-us_793b081f_3.1.0-RC03.js → en-us_793b081f_3.1.0.js} +0 -0
  16. /package/dist/{es-cl_b2f1fc4e_3.1.0-RC03.js → es-cl_b2f1fc4e_3.1.0.js} +0 -0
  17. /package/dist/{face_api_0e3ce8c8_3.1.0-RC03.js → face_api_0e3ce8c8_3.1.0.js} +0 -0
  18. /package/dist/{index-idlf-detector_39cfdffa_3.1.0-RC03.js → index-idlf-detector_39cfdffa_3.1.0.js} +0 -0
  19. /package/dist/{index-idlf-detector_a819b3c8_3.1.0-RC03.js → index-idlf-detector_a819b3c8_3.1.0.js} +0 -0
  20. /package/dist/{pt-br_b093cbbf_3.1.0-RC03.js → pt-br_b093cbbf_3.1.0.js} +0 -0
@@ -1,2165 +0,0 @@
1
- import { S as Ut, q as Vt, r as jt, t as Ht, w as A, x as q, y as C, z as ge, B as G, C as h, D as ve, E as J, G as Y, H as L, I as pe, J as F, K as Pe, L as Ve, M as be, N as m, O as H, P as j, Q as W, R as ga, T as b, U as lt, V as rt, W as Lt, X as Ye, Y as X, Z as Ge, _ as va, a0 as Ze, a1 as _e, a2 as pa, a3 as Be, a4 as di, a5 as Dt, a6 as hi, a7 as wa, a8 as Ca, a9 as We, aa as Ee, ab as Ea, ac as Ft, ad as Nt, ae as fe, af as ie, $ as ya, ag as ye, ah as mi, ai as xe, aj as St, ak as Ta, al as $e, am as _i, an as bi, ao as ka, ap as Oa, aq as Ra, ar as Aa, as as Ia, at as La, au as Da, av as Pt, aw as K, j as nt, ax as Bt, ay as Fa, az as gi, aA as Na, aB as et, aC as tt, aD as Sa, aE as vi, aF as pi, aG as Pa, aH as it, A as Wt, aI as Te, aJ as Ba, aK as Me, aL as Wa, aM as wi, d as Re, aN as Mt, aO as at, aP as Ma, aQ as Ua, aR as Va, aS as ja, aT as Ha, aU as Ka, aV as qa, aW as Ue, aX as za, aY as Ja, aZ as ot, a_ as le, a$ as ft, b0 as ct, b1 as Wi, b2 as B, b3 as V, b4 as Ci, b5 as Qa, b6 as Xa, b7 as Ya, b8 as st, b9 as ne, ba as Ga, bb as Za, bc as Ei, bd as Mi, be as ut, bf as xa } from "./main_11e1c290_3.1.0-RC03.js";
2
- import { W as $a, C as eo, V as to, a as io } from "./ValidationAlert_de35f79f_3.1.0-RC03.js";
3
- import { detectSingleFace as ao, matchDimensions as oo, resizeResults as so, Box as no } from "./face_api_0e3ce8c8_3.1.0-RC03.js";
4
- function lo(i) {
5
- let e, t, o, s;
6
- return t = new $a({}), {
7
- c() {
8
- e = C("div"), ge(t.$$.fragment), this.c = G, 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
- Y(t.$$.fragment, n), s = !1;
35
- },
36
- d(n) {
37
- n && L(e), pe(t);
38
- }
39
- };
40
- }
41
- const ro = "hsl(var(--p))", co = "hsl(var(--su))";
42
- function uo(i, e, t) {
43
- let o, s, n;
44
- F(i, Pe, (_) => t(7, s = _)), F(i, Ve, (_) => t(8, n = _));
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 = (_) => {
47
- "loading" in _ && t(0, r = _.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), m(Pe, s.width = l, s), m(Pe, s.height = c, s), m(Pe, s.x = (n.videoWidth - s.width) / 2, s);
52
- let _ = n.videoHeight - n.videoHeight * g;
53
- m(Pe, s.y = _ - 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: ${ro};
60
- --border-color-animation: ${co};
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 Ui 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
- uo,
85
- lo,
86
- jt,
87
- { loading: 0 },
88
- null
89
- ), e && (e.target && A(e.target, this, e.anchor), e.props && (this.$set(e.props), q()));
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 }), q();
99
- }
100
- }
101
- customElements.define("face-oval", Ui);
102
- function fo(i) {
103
- let e;
104
- return {
105
- c() {
106
- e = C("div"), this.c = G, 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: G,
126
- o: G,
127
- d(t) {
128
- t && L(e);
129
- }
130
- };
131
- }
132
- function ho(i, e, t) {
133
- let o, s;
134
- F(i, Ve, (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 Vi 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
- ho,
167
- fo,
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), q()));
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 }), q();
181
- }
182
- get overlayTransparency() {
183
- return this.$$.ctx[2];
184
- }
185
- set overlayTransparency(e) {
186
- this.$$set({ overlayTransparency: e }), q();
187
- }
188
- }
189
- customElements.define("overlay-oval", Vi);
190
- function yi(i, e, t) {
191
- const o = i.slice();
192
- return o[119] = e[t], o;
193
- }
194
- function Ti(i, e, t) {
195
- const o = i.slice();
196
- return o[119] = e[t], o;
197
- }
198
- function ki(i) {
199
- let e, t, o = H(), s, n, r, l, c, f, u, g, _, d, E, v, p, R, k, N, I, M = o && mo(i), U = (
200
- /*$ready*/
201
- i[21] && Oi(i)
202
- );
203
- return d = new Ja({}), v = new eo({
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(), _ = 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, T) {
271
- A(O, e, T), 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, _), ve(d, u, null), b(u, E), ve(v, u, null), k = !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, T) {
288
- o && M.p(O, T), (!k || T[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), (!k || T[1] & /*$videoStore*/
291
- 1) && ot(
292
- t,
293
- "width",
294
- /*$videoStore*/
295
- O[31].videoWidth + "px"
296
- ), (!k || T[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, T), T[0] & /*$ready*/
304
- 2097152 && J(U, 1)) : (U = Oi(O), U.c(), J(U, 1), U.m(g, null)) : U && (lt(), Y(U, 1, 1, () => {
305
- U = null;
306
- }), rt());
307
- const Q = {};
308
- T[0] & /*showConfigButton*/
309
- 16 && (Q.showConfigButton = /*showConfigButton*/
310
- O[4]), T[0] & /*showAutoCaptureButton*/
311
- 32 && (Q.showAutoCaptureButton = /*showAutoCaptureButton*/
312
- O[5]), T[0] & /*showCaptureButton*/
313
- 1 && (Q.showCaptureButton = /*showCaptureButton*/
314
- O[0]), T[0] & /*showCameraButton*/
315
- 64 && (Q.showCameraButton = /*showCameraButton*/
316
- O[6]), T[0] & /*enableCaptureButton*/
317
- 32768 && (Q.enableCaptureButton = /*enableCaptureButton*/
318
- O[15]), T[0] & /*videoOverlay*/
319
- 256 && (Q.videoOverlay = /*videoOverlay*/
320
- O[8]), T[0] & /*videoOverlayTransparency*/
321
- 512 && (Q.videoOverlayTransparency = /*videoOverlayTransparency*/
322
- O[9]), T[0] & /*idrndClosed*/
323
- 131072 && (Q.idrndClosed = /*idrndClosed*/
324
- O[17]), T[0] & /*idrndLoading*/
325
- 65536 && (Q.idrndLoading = /*idrndLoading*/
326
- O[16]), T[0] & /*waitingIdrndCaptureEvent*/
327
- 262144 && (Q.waitingIdrndCaptureEvent = /*waitingIdrndCaptureEvent*/
328
- O[18]), v.$set(Q), (!k || T[0] & /*$ready*/
329
- 2097152 && p !== (p = /*$ready*/
330
- O[21] ? "relative" : "relative w-0 h-0")) && h(e, "class", p), (!k || T[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
- k || (J(U), J(d.$$.fragment, O), J(v.$$.fragment, O), k = !0);
339
- },
340
- o(O) {
341
- Y(U), Y(d.$$.fragment, O), Y(v.$$.fragment, O), k = !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 mo(i) {
349
- let e;
350
- return {
351
- c() {
352
- e = C("idlive-face-capture"), e.hidden = !0, ne(e, "mask_hidden", ""), ne(e, "auto_capture_disabled", ""), ne(e, "auto_close_disabled", ""), ne(
353
- e,
354
- "device_id",
355
- /*$selectedVideoDeviceId*/
356
- i[22]
357
- ), ne(e, "face_not_centered_check_enabled", ""), ne(e, "sunglasses_detected_check_enabled", ""), ne(e, "mouth_open_check_enabled", ""), ne(e, "face_blurry_check_enabled", ""), ne(e, "dark_image_check_enabled", ""), ne(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 && ne(
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 Oi(i) {
377
- let e, t, o, s, n, r;
378
- return e = new to({
379
- props: {
380
- isCountingDown: (
381
- /*isCountingDown*/
382
- i[14]
383
- )
384
- }
385
- }), o = new Ui({
386
- props: { loading: (
387
- /*isCountingDown*/
388
- i[14]
389
- ) }
390
- }), n = new Vi({
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
- Y(e.$$.fragment, l), Y(o.$$.fragment, l), Y(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 Ri(i) {
436
- let e, t, o, s, n;
437
- function r(f, u) {
438
- return (
439
- /*$isLoading*/
440
- f[32] ? bo : _o
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 = Wi) || 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 _o(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 bo(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: G,
491
- d(t) {
492
- t && L(e);
493
- }
494
- };
495
- }
496
- function Ai(i) {
497
- let e, t, o, s, n;
498
- function r(f, u) {
499
- return (
500
- /*$isLoading*/
501
- f[32] ? vo : go
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 = Wi) || 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 go(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 vo(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: G,
552
- d(t) {
553
- t && L(e);
554
- }
555
- };
556
- }
557
- function Ii(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(_, d) {
571
- A(_, 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(_, d) {
587
- d[0] & /*$_*/
588
- 268435456 && o !== (o = /*$_*/
589
- _[28]("faceCollector.finish") + "") && V(s, o), d[0] & /*$justification*/
590
- 33554432 && n !== (n = /*$justification*/
591
- _[25].length === 0) && (t.disabled = n), d[0] & /*$_*/
592
- 268435456 && c !== (c = /*$_*/
593
- _[28]("faceCollector.retakePhoto") + "") && V(f, c);
594
- },
595
- d(_) {
596
- _ && L(e), u = !1, ft(g);
597
- }
598
- };
599
- }
600
- function po(i) {
601
- let e, t;
602
- return e = new io({ 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: G,
613
- i(o) {
614
- t || (J(e.$$.fragment, o), t = !0);
615
- },
616
- o(o) {
617
- Y(e.$$.fragment, o), t = !1;
618
- },
619
- d(o) {
620
- pe(e, o);
621
- }
622
- };
623
- }
624
- function wo(i) {
625
- let e, t, o, s, n, r, l, c, f;
626
- const u = [
627
- ko,
628
- To,
629
- yo,
630
- Eo,
631
- Co
632
- ], g = [];
633
- function _(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 = _(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 = _(d), r === v ? g[r].p(d, E) : (lt(), Y(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
- Y(l), f = !1;
686
- },
687
- d(d) {
688
- d && L(e), g[r].d();
689
- }
690
- };
691
- }
692
- function Co(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, _ = nt(Ga).faceStrategy !== Za.DISABLED, d, E, v, p = (
700
- /*$unconformitiesStore*/
701
- i[29].unconformities.length !== 0 && Li(i)
702
- ), R = _ && Oo();
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"), Ei(l, "ce-dui-btn-group", !/*$exportButtonDisabled*/
706
- i[34]);
707
- },
708
- m(k, N) {
709
- A(k, 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(k, N) {
717
- (!d || N[0] & /*$_*/
718
- 268435456) && o !== (o = /*$_*/
719
- k[28]("faceCollector.captured") + "") && V(s, o), /*$unconformitiesStore*/
720
- k[29].unconformities.length !== 0 ? p ? p.p(k, N) : (p = Li(k), p.c(), p.m(e, r)) : p && (p.d(1), p = null), (!d || N[0] & /*$_*/
721
- 268435456) && f !== (f = /*$_*/
722
- k[28]("faceCollector.retakePhoto") + "") && V(u, f), (!d || N[1] & /*$exportButtonDisabled*/
723
- 8) && Ei(l, "ce-dui-btn-group", !/*$exportButtonDisabled*/
724
- k[34]);
725
- },
726
- i(k) {
727
- d || (J(R), d = !0);
728
- },
729
- o(k) {
730
- Y(R), d = !1;
731
- },
732
- d(k) {
733
- k && L(e), p && p.d(), R && R.d(), E = !1, v();
734
- }
735
- };
736
- }
737
- function Eo(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] = Di(yi(i, u, v));
759
- let _ = (
760
- /*evaluatePhoto*/
761
- i[2] && /*$unconformitiesStore*/
762
- i[29].unconformities.length == 0 && Fi(i)
763
- ), d = (
764
- /*showJustificationField*/
765
- i[7] && /*$unconformitiesStore*/
766
- i[29].unconformities.length > 0 && Ni(i)
767
- ), E = (
768
- /*$captured*/
769
- i[23] && Si(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(), _ && _.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(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 k = yi(v, u, R);
806
- g[R] ? g[R].p(k, p) : (g[R] = Di(k), 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 ? _ ? _.p(v, p) : (_ = Fi(v), _.c(), _.m(r, null)) : _ && (_.d(1), _ = null), /*showJustificationField*/
815
- v[7] && /*$unconformitiesStore*/
816
- v[29].unconformities.length > 0 ? d ? d.p(v, p) : (d = Ni(v), d.c(), d.m(e, f)) : d && (d.d(1), d = null), /*$captured*/
817
- v[23] ? E ? E.p(v, p) : (E = Si(v), E.c(), E.m(e, null)) : E && (E.d(1), E = null);
818
- },
819
- i: G,
820
- o: G,
821
- d(v) {
822
- v && L(e), Mi(g, v), _ && _.d(), d && d.d(), E && E.d();
823
- }
824
- };
825
- }
826
- function yo(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, _;
834
- function d(p, R) {
835
- return (
836
- /*$requestResult*/
837
- p[27] === K.LIVENESS_DETECTION_FAILURE || /*$requestResult*/
838
- p[27] === K.UNKNOWN_LIVENESS_ERROR ? No : (
839
- /*$requestResult*/
840
- p[27] === K.LOW_LIVENESS_SCORE ? Fo : (
841
- /*$requestResult*/
842
- p[27] === K.TEMPLATE_EXTRACTION_ERROR || /*$requestResult*/
843
- p[27] === K.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ? Do : (
844
- /*$requestResult*/
845
- p[27] === K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ? Lo : (
846
- /*$requestResult*/
847
- p[27] === K.LIVENESS_EVALUATION_ERROR ? Io : (
848
- /*$requestResult*/
849
- p[27] === K.INSUFFICIENT_FACE_QUALITY ? Ao : Ro
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 || (_ = [
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: G,
886
- o: G,
887
- d(p) {
888
- p && L(e), v.d(), g = !1, ft(_);
889
- }
890
- };
891
- }
892
- function To(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: G,
910
- o: G,
911
- d(l) {
912
- l && L(e);
913
- }
914
- };
915
- }
916
- function ko(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: G,
926
- i: G,
927
- o: G,
928
- d(t) {
929
- t && L(e);
930
- }
931
- };
932
- }
933
- function Li(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 Oo(i) {
970
- let e, t;
971
- return e = new xa({
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
- Y(e.$$.fragment, o), t = !1;
985
- },
986
- d(o) {
987
- pe(e, o);
988
- }
989
- };
990
- }
991
- function Di(i) {
992
- let e, t = (
993
- /*unconformity*/
994
- i[119] + ""
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[119] + "") && V(o, t);
1007
- },
1008
- d(s) {
1009
- s && L(e);
1010
- }
1011
- };
1012
- }
1013
- function Fi(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 Ni(i) {
1036
- let e, t, o, s = (
1037
- /*$_*/
1038
- i[28]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
1039
- ), n, r, l, c, f, u, g, _, 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"), _ = 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(k, N) {
1049
- A(k, 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, _), 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(k, N) {
1061
- N[0] & /*$_*/
1062
- 268435456 && s !== (s = /*$_*/
1063
- k[28]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && V(n, s), N[0] & /*$_*/
1064
- 268435456 && c !== (c = /*$_*/
1065
- k[28]("faceCollector.yourJustification")) && h(l, "placeholder", c), N[0] & /*$justification*/
1066
- 33554432 && ut(
1067
- l,
1068
- /*$justification*/
1069
- k[25]
1070
- ), N[0] & /*$_*/
1071
- 268435456 && d !== (d = /*$_*/
1072
- k[28]("faceCollector.thisInformationIsRequired") + "") && V(E, d);
1073
- },
1074
- d(k) {
1075
- k && L(e), p = !1, R();
1076
- }
1077
- };
1078
- }
1079
- function Si(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(_, d) {
1096
- A(_, 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(_, d) {
1112
- d[0] & /*$_*/
1113
- 268435456 && o !== (o = /*$_*/
1114
- _[28]("faceCollector.finish") + "") && V(s, o), d[0] & /*evaluatePhoto, showJustificationField, $justification, $unconformitiesStore*/
1115
- 570425476 && n !== (n = /*evaluatePhoto*/
1116
- _[2] && /*showJustificationField*/
1117
- _[7] && /*$justification*/
1118
- _[25].length === 0 && /*$unconformitiesStore*/
1119
- _[29].unconformities.length !== 0) && (t.disabled = n), d[0] & /*$_*/
1120
- 268435456 && c !== (c = /*$_*/
1121
- _[28]("faceCollector.retakePhoto") + "") && V(f, c);
1122
- },
1123
- d(_) {
1124
- _ && L(e), u = !1, ft(g);
1125
- }
1126
- };
1127
- }
1128
- function Ro(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 Ao(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] = Pi(Ti(i, l, u));
1160
- let f = (
1161
- /*evaluatePhoto*/
1162
- i[2] && /*$unconformitiesStore*/
1163
- i[29].unconformities.length == 0 && Bi(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 _ = 0; _ < c.length; _ += 1)
1175
- c[_] && c[_].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 _;
1184
- for (_ = 0; _ < l.length; _ += 1) {
1185
- const d = Ti(u, l, _);
1186
- c[_] ? c[_].p(d, g) : (c[_] = Pi(d), c[_].c(), c[_].m(e, t));
1187
- }
1188
- for (; _ < c.length; _ += 1)
1189
- c[_].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 = Bi(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), Mi(c, u), f && f.d(), u && L(o), u && L(s);
1200
- }
1201
- };
1202
- }
1203
- function Io(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 Lo(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 Do(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 Fo(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 No(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;
1307
- return {
1308
- c() {
1309
- e = C("h1"), o = B(t), s = B(": "), r = B(n), h(e, "class", "text-3xl font-bold pb-[1em] transition-opacity text-error");
1310
- },
1311
- m(l, c) {
1312
- A(l, e, c), b(e, o), b(e, s), b(e, r);
1313
- },
1314
- p(l, c) {
1315
- c[0] & /*$_*/
1316
- 268435456 && t !== (t = /*$_*/
1317
- l[28]("liveness.error.error") + "") && V(o, t), c[0] & /*$_, livenessError*/
1318
- 268959744 && n !== (n = /*$_*/
1319
- l[28](
1320
- /*livenessError*/
1321
- l[19]
1322
- ) + "") && V(r, n);
1323
- },
1324
- d(l) {
1325
- l && L(e);
1326
- }
1327
- };
1328
- }
1329
- function Pi(i) {
1330
- let e, t = (
1331
- /*unconformity*/
1332
- i[119] + ""
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[119] + "") && V(o, t);
1345
- },
1346
- d(s) {
1347
- s && L(e);
1348
- }
1349
- };
1350
- }
1351
- function Bi(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 So(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, _, d = (
1380
- /*$videoStore*/
1381
- i[31] && ki(i)
1382
- ), E = s && Ri(i), v = r && Ai(i), p = (
1383
- /*$captured*/
1384
- i[23] && Ii(i)
1385
- );
1386
- const R = [wo, po], k = [];
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 = k[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 = ga(), this.c = G, 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 && k[f].m(I, M), A(I, g, 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 = ki(I), d.c(), J(d, 1), d.m(t, o)) : d && (lt(), Y(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 = Ri(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 = Ai(I), v.c(), v.m(t, l)) : v && (v.d(1), v = null), /*$captured*/
1416
- I[23] ? p ? p.p(I, M) : (p = Ii(I), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
1417
- let U = f;
1418
- f = N(I), f === U ? ~f && k[f].p(I, M) : (u && (lt(), Y(k[U], 1, 1, () => {
1419
- k[U] = null;
1420
- }), rt()), ~f ? (u = k[f], u ? u.p(I, M) : (u = k[f] = R[f](I), u.c()), J(u, 1), u.m(g.parentNode, g)) : u = null);
1421
- },
1422
- i(I) {
1423
- _ || (J(d), J(u), _ = !0);
1424
- },
1425
- o(I) {
1426
- Y(d), Y(u), _ = !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 && k[f].d(I), I && L(g);
1430
- }
1431
- };
1432
- }
1433
- let Po = 0, Bo = 3e3;
1434
- function Wo() {
1435
- ({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.1.0-RC03.js") : import("./index-idlf-detector_a819b3c8_3.1.0-RC03.js");
1436
- }
1437
- function Mo(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 Uo(i, e, t) {
1443
- let o, s, n, r, l, c, f, u, g, _, d, E, v, p, R, k, N, I, M, U, O, T, Q, $, re, we, Ae, dt, oe, Kt, ht, mt, _t, qt, zt, Jt;
1444
- F(i, Lt, (a) => t(73, o = a)), F(i, Ye, (a) => t(75, n = a)), F(i, X, (a) => t(20, r = a)), F(i, Ge, (a) => t(21, l = a)), F(i, va, (a) => t(76, c = a)), F(i, Ze, (a) => t(77, f = a)), F(i, _e, (a) => t(22, u = a)), F(i, pa, (a) => t(78, g = a)), F(i, Be, (a) => t(23, _ = a)), F(i, di, (a) => t(79, d = a)), F(i, Dt, (a) => t(80, E = a)), F(i, hi, (a) => t(81, v = a)), F(i, wa, (a) => t(82, p = a)), F(i, Ca, (a) => t(83, R = a)), F(i, We, (a) => t(84, k = a)), F(i, Ee, (a) => t(85, N = a)), F(i, Ea, (a) => t(86, I = a)), F(i, Ft, (a) => t(24, M = a)), F(i, Nt, (a) => t(25, U = a)), F(i, fe, (a) => t(26, O = a)), F(i, ie, (a) => t(27, T = a)), F(i, ya, (a) => t(28, Q = a)), F(i, ye, (a) => t(29, $ = a)), F(i, mi, (a) => t(87, we = a)), F(i, xe, (a) => t(88, Ae = a)), F(i, St, (a) => t(89, dt = a)), F(i, Ve, (a) => t(31, oe = a)), F(i, Ta, (a) => t(90, Kt = a)), F(i, $e, (a) => t(91, ht = a)), F(i, _i, (a) => t(92, mt = a)), F(i, bi, (a) => t(93, _t = a)), F(i, ka, (a) => t(32, qt = a)), F(i, Oa, (a) => t(33, zt = a)), F(i, Ra, (a) => t(34, Jt = a));
1445
- let D, ae, de, 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: he } = 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 je = Ci(!1);
1447
- F(i, je, (a) => t(74, s = a));
1448
- const ke = Ci("data:image/png;base64");
1449
- F(i, ke, (a) => t(30, re = a));
1450
- let { widgetInstance: z } = e, De = !1, Ot = !1, He = !0, ce = !0, Fe = !1, ti = 0, ee = "", Rt = 0, Ke = !0, ii = 0;
1451
- const qe = Aa.mixin({
1452
- toast: !0,
1453
- position: "bottom-left",
1454
- timer: 13e3,
1455
- timerProgressBar: !0
1456
- });
1457
- Ia(async () => {
1458
- if (m(xe, Ae = !0, Ae), m(Ge, l = !1, l), oi(), we)
1459
- try {
1460
- await La(yt), Xt = !0, Qt = await Da();
1461
- } catch {
1462
- m(mi, we = !1, we), t(0, Tt = !0);
1463
- }
1464
- H() ? (Wo(), ji()) : await Ce(), be() || Ki();
1465
- });
1466
- async function ai() {
1467
- const [a, w] = (Ct ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
1468
- !a || !w || (be() ? (await Qa(), m(
1469
- Ve,
1470
- oe = {
1471
- videoWidth: window.innerWidth,
1472
- videoHeight: window.innerHeight
1473
- },
1474
- oe
1475
- )) : m(Ve, oe = { videoWidth: a, videoHeight: w }, oe));
1476
- }
1477
- function oi() {
1478
- m(Ye, n = !1, n), m(Be, _ = !1, _), m(Ze, f = Pt.FRONT_CAMERA, f), kt && m(hi, v = !1, v), m(Ft, M = !1, M), m(ie, T = K.OK, T), m(We, k = "", k), m(ye, $.unconformities = [], $);
1479
- const a = nt(Bt);
1480
- a.closedMouth = !1, a.isPersonCloseEnough = !1, a.isPersonTooclose = !0, a.isPersonInFrame = !1, Bt.set(a), m(Ee, N = "", N);
1481
- }
1482
- function ji() {
1483
- z.addEventListener("open", (a) => {
1484
- const w = a.detail[0].video;
1485
- m(
1486
- bi,
1487
- _t = {
1488
- width: w.videoWidth,
1489
- height: w.videoHeight
1490
- },
1491
- _t
1492
- ), t(11, D.srcObject = w.srcObject, D), t(16, He = !1), Fa(z);
1493
- function y() {
1494
- ce || Ue(D, y, !0);
1495
- }
1496
- y();
1497
- }), z.addEventListener("error", (a) => {
1498
- console.error(a), a.detail[0].message === "Device in use" ? m(X, r = j.CAMERA_IN_USE_ERROR, r) : a.detail[0].message === "Permission denied" || a.detail[0].message === "Permission dismissed" ? m(X, r = j.CAMERA_DENIED_ERROR, r) : a.detail[0].message === "Requested device not found" && m(X, r = j.DEVICE_NOT_FOUND_ERROR, r), t(16, He = !1);
1499
- }), z.addEventListener("faceDetection", (a) => {
1500
- a.detail[0].errors.length > 0 && gi(a.detail[0].errors);
1501
- }), z.addEventListener("detection", (a) => {
1502
- a.detail[0].errors.length > 0 && gi(a.detail[0].errors);
1503
- }), z.addEventListener("close", async (a) => {
1504
- _ || (De = !1), t(17, ce = !0), t(18, Fe = !1), r === j.OK && m(X, r = j.CAMERA_CLOSED_ERROR, r);
1505
- }), z.addEventListener("initialize", async (a) => {
1506
- Ot = !0, m(_i, mt = !0, mt);
1507
- try {
1508
- z.setLicense(Na, "faceDetector");
1509
- } catch (w) {
1510
- console.error("Error setting license:", w);
1511
- }
1512
- dt === et.Face && !De && !_ && Ot && await At();
1513
- }), z.addEventListener("capture", async (a) => {
1514
- t(19, ee = "");
1515
- const { encryptedFile: w, photo: y } = a.detail[0];
1516
- m($e, ht = w, ht);
1517
- const P = (await tt(y)).split(",");
1518
- if (t(18, Fe = !1), m(ie, T = K.OK, T), m(ye, $.isLoading = !0, $), m(Be, _ = !0, _), De = !1, m(ke, re = P[0], re), m(fe, O = P[1], O), m(We, k = P[1], k), !Kt) {
1519
- let Z, se, It, Xe;
1520
- try {
1521
- let te = await Sa(y);
1522
- if (!await vi(te))
1523
- throw new Error("FACE_NOT_FOUND");
1524
- if (!pi(Le))
1525
- throw new Error("FACE_TOO_SMALL");
1526
- const ue = Pa();
1527
- if (ue)
1528
- throw new Error(ue);
1529
- ({ bodyParts: Z, icaoWarnings: se } = await it(k, he, (await tt(w)).split(",")[1])), window.dispatchEvent(new CustomEvent(
1530
- "face-unconformities-validated",
1531
- {
1532
- detail: {
1533
- bodyParts: Z,
1534
- icaoWarnings: se,
1535
- status: T
1536
- }
1537
- }
1538
- ));
1539
- } catch (te) {
1540
- console.error(te);
1541
- let ue = Te.UNKNOWN, Se = [], fi = [];
1542
- te instanceof Wt && te.response?.status === 400 ? te.response.data && Array.isArray(te.response.data.bodyParts) ? (Se = te.response.data.bodyParts, fi = te.response.data.icaoWarnings, It = te.response.data.invalidLivenessCounter, Xe = te.response.data.invalidLivenessLimit, ue = Se.find((ba) => ba.livenessResult.error)?.livenessResult.error_code, m(ie, T = K.LIVENESS_DETECTION_FAILURE, T), t(19, ee = Te[ue]), console.error("Liveness error:", ue)) : m(ie, T = K.TEMPLATE_EXTRACTION_ERROR, T) : te instanceof Error && Ba.includes(te.message) ? (m(ie, T = K.UNKNOWN_LIVENESS_ERROR, T), ue = te.message, t(19, ee = Te[ue]), Se = ri(), Se[0].livenessResult = {
1543
- error: ee,
1544
- error_code: ue
1545
- }) : he && qe.fire({
1546
- icon: "error",
1547
- title: "Falha ao comunicar com serviço de Liveness"
1548
- }), m(ye, $.isLoading = !1, $), window.dispatchEvent(new CustomEvent(
1549
- "face-unconformities-validated",
1550
- {
1551
- detail: {
1552
- bodyParts: Se,
1553
- errorCode: ue,
1554
- translatedError: Q(ee),
1555
- status: T,
1556
- icaoWarnings: fi,
1557
- invalidLivenessCounter: It,
1558
- invalidLivenessLimit: Xe
1559
- }
1560
- }
1561
- ));
1562
- return;
1563
- }
1564
- if (T !== K.OK) {
1565
- se && Me(se), m(ye, $.isLoading = !1, $);
1566
- return;
1567
- }
1568
- Z[0].livenessResult && ni(Z[0].livenessResult), Z.length !== 0 && Z[0].data && m(fe, O = Z[0].data, O), Me(se);
1569
- return;
1570
- }
1571
- let S, x;
1572
- try {
1573
- x = await Wa(w), ni(x.data);
1574
- } catch (Z) {
1575
- m(ie, T = K.UNKNOWN_LIVENESS_ERROR, T), console.error(Z), Z instanceof Wt && Z.response?.status === 400 ? (S = Z.response.data.error_code, t(19, ee = Te[S]), console.error("Liveness error:", S), m(ie, T = K.LIVENESS_DETECTION_FAILURE, T)) : qe.fire({
1576
- icon: "error",
1577
- title: "Falha ao comunicar com serviço de Liveness"
1578
- });
1579
- }
1580
- if (T !== K.OK) {
1581
- m(ye, $.isLoading = !1, $), window.dispatchEvent(new CustomEvent(
1582
- "face-unconformities-validated",
1583
- {
1584
- detail: {
1585
- bodyParts: [
1586
- {
1587
- bodyPart: "FACE",
1588
- data: k,
1589
- livenessBlob: (await tt(w)).split(",")[1],
1590
- ...x && { livenessResult: x }
1591
- }
1592
- ],
1593
- ...S && { errorCode: S },
1594
- ...ee && { translatedError: Q(ee) },
1595
- status: T
1596
- }
1597
- }
1598
- ));
1599
- return;
1600
- }
1601
- let { bodyParts: me, icaoWarnings: Ne } = await it(k, he);
1602
- window.dispatchEvent(new CustomEvent(
1603
- "face-unconformities-validated",
1604
- {
1605
- detail: {
1606
- bodyParts: me,
1607
- icaoWarnings: Ne,
1608
- status: T,
1609
- errorCode: S,
1610
- ...ee && { translatedError: Q(ee) }
1611
- }
1612
- }
1613
- )), me[0].data && m(fe, O = me[0].data, O), Me(Ne);
1614
- });
1615
- }
1616
- async function Ce(a) {
1617
- if (!Ke) {
1618
- m(X, r = j.CAMERA_ORIENTATION_PORTRAIT, r);
1619
- return;
1620
- }
1621
- await ai(), H() ? At() : await Hi(oe.videoWidth, oe.videoHeight, a);
1622
- }
1623
- async function At() {
1624
- if (H()) {
1625
- if (await ai(), !g[0]?.deviceId) {
1626
- try {
1627
- await wi(640, 480);
1628
- } catch (a) {
1629
- const w = a, y = Re(a) && a.constraint ? a.constraint : "";
1630
- console.error(w.message, y), Re(w) && "message" in w && w.message.includes("Requested device not found") && m(X, r = j.DEVICE_NOT_FOUND_ERROR, r);
1631
- }
1632
- await Mt(), m(_e, u = g[0].deviceId, u);
1633
- }
1634
- m(X, r = j.OK, r), z && "openCamera" in z && z.openCamera(), De = !0, t(17, ce = !1), t(16, He = !0);
1635
- }
1636
- }
1637
- async function ze() {
1638
- if (we && !Xt)
1639
- return Ue(D, ze);
1640
- if (D) {
1641
- if (dt !== et.Face && !Et)
1642
- return Ue(D, ze);
1643
- m(Ge, l = !0, l), m(xe, Ae = !1, Ae), we && (s || m(je, s = !0, s)), Ue(D, ze);
1644
- }
1645
- }
1646
- async function si() {
1647
- if (m(ie, T = K.OK, T), H()) {
1648
- t(18, Fe = !0), z.takePhoto();
1649
- return;
1650
- }
1651
- let a = null;
1652
- m(Be, _ = !0, _);
1653
- try {
1654
- if (we) {
1655
- if (a = await qi(), !await vi(a)) {
1656
- const S = await ci();
1657
- throw m(ke, re = S[0], re), m(fe, O = S[1], O), new Error("FACE_NOT_FOUND");
1658
- }
1659
- const w = a.toDataURL("image/jpeg").split(",");
1660
- m(ke, re = w[0], re), m(fe, O = w[1], O), m(We, k = w[1], k);
1661
- let y, P;
1662
- if (!pi(Le))
1663
- throw new Error("FACE_TOO_SMALL");
1664
- ({ bodyParts: y, icaoWarnings: P } = await it(O, he)), window.dispatchEvent(new CustomEvent(
1665
- "face-unconformities-validated",
1666
- {
1667
- detail: {
1668
- bodyParts: y,
1669
- icaoWarnings: P,
1670
- status: T
1671
- }
1672
- }
1673
- )), y.length !== 0 && y[0].data && m(fe, O = y[0].data, O), Me(P);
1674
- } else {
1675
- const w = await ci();
1676
- m(ke, re = w[0], re), m(fe, O = w[1], O), m(We, k = w[1], k);
1677
- let { bodyParts: y, icaoWarnings: P } = await it(O, he);
1678
- window.dispatchEvent(new CustomEvent(
1679
- "face-unconformities-validated",
1680
- {
1681
- detail: {
1682
- bodyParts: y,
1683
- icaoWarnings: P,
1684
- status: T
1685
- }
1686
- }
1687
- )), y.length !== 0 && y[0].data && m(fe, O = y[0].data, O), Me(P);
1688
- }
1689
- } catch (w) {
1690
- console.error(w);
1691
- let y = Te.UNKNOWN, P = [], S = [];
1692
- if (w instanceof Wt && w.response?.status === 400)
1693
- if (w.response.data && Array.isArray(w.response.data.bodyParts)) {
1694
- P = w.response.data.bodyParts, S = w.response.data.icaoWarnings;
1695
- const x = P.find((me) => me.livenessResult.error);
1696
- y = x?.livenessResult.error_code, m(ie, T = K.LIVENESS_DETECTION_FAILURE, T), x?.livenessResult.error_code || m(ie, T = K.UNKNOWN_LIVENESS_ERROR, T), t(19, ee = Te[y]), console.error("Liveness error:", y);
1697
- } else
1698
- m(ie, T = K.TEMPLATE_EXTRACTION_ERROR, T);
1699
- else
1700
- w instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(w.message) ? (m(ie, T = K.LIVENESS_DETECTION_FAILURE, T), y = w.message, t(19, ee = Te[y]), P = ri()) : (m(ie, T = K.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, T), he && qe.fire({
1701
- icon: "error",
1702
- title: "Falha ao comunicar com serviço de Liveness"
1703
- }));
1704
- m(ye, $.isLoading = !1, $), window.dispatchEvent(new CustomEvent(
1705
- "face-unconformities-validated",
1706
- {
1707
- detail: {
1708
- bodyParts: P,
1709
- errorCode: y,
1710
- translatedError: Q(ee),
1711
- status: T,
1712
- icaoWarnings: S
1713
- }
1714
- }
1715
- ));
1716
- }
1717
- }
1718
- function Je() {
1719
- const a = {
1720
- bodyPart: "FACE",
1721
- data: O,
1722
- justification: U
1723
- };
1724
- m(Ft, M = !0, M), nt($e) && tt(nt($e)).then((w) => {
1725
- a.livenessBlob = w.split(",")[1];
1726
- }), window.dispatchEvent(new CustomEvent("export-face", { detail: a }));
1727
- }
1728
- function Oe() {
1729
- window.dispatchEvent(new CustomEvent("face-scrapped")), oi(), ce && At();
1730
- }
1731
- function ni(a) {
1732
- let w = "", y = "success";
1733
- 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 && (y = "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 && qe.fire({ icon: y, title: w });
1734
- }
1735
- async function Hi(a, w, y) {
1736
- try {
1737
- const { stream: P, deviceId: S } = await wi(pt.width, pt.height, f, y);
1738
- m(di, d = P, d), m(_e, u = S || g[0].deviceId, u);
1739
- } catch (P) {
1740
- const S = P, x = Re(P) && P.constraint ? P.constraint : "";
1741
- 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!"), m(X, r = j.CAMERA_DENIED_ERROR, r)), Re(S) && "message" in S && S.message.includes("Requested device not found") && m(X, r = j.DEVICE_NOT_FOUND_ERROR, r), (x.includes("width") || x.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${x})`), m(X, r = j.CAMERA_UNSUPPORTED, r));
1742
- }
1743
- }
1744
- async function Qe() {
1745
- m(_e, u = "", u), await Ce();
1746
- }
1747
- function Ki() {
1748
- navigator.mediaDevices.ondevicechange = async (a) => {
1749
- a.type == "devicechange" && (await Mt(), r !== j.OK ? await Qe() : (!H() && !d.active || H() && !ce) && (at(z), m(X, r = j.DEVICE_NOT_FOUND_ERROR, r), t(17, ce = !0)));
1750
- };
1751
- }
1752
- async function li() {
1753
- m(Ye, n = !1, n);
1754
- const a = (/* @__PURE__ */ new Date()).getTime();
1755
- if (a - vt > 5e3) {
1756
- vt = a;
1757
- try {
1758
- if (D.width === 0 || D.height === 0)
1759
- return;
1760
- const y = await Xa(D);
1761
- if (y < 50) {
1762
- m(Ee, N = "faceCollector.illuminationTooLow", N);
1763
- return;
1764
- }
1765
- if (y > 180) {
1766
- m(Ee, N = "faceCollector.illuminationTooHigh", N);
1767
- return;
1768
- }
1769
- } catch (y) {
1770
- console.warn("An error occurred while getting the video lighting level: ", y);
1771
- }
1772
- try {
1773
- if (await Ya(D) < 4.5) {
1774
- m(Ee, N = "faceCollector.lowSharpness", N);
1775
- return;
1776
- }
1777
- } catch (y) {
1778
- console.warn("An error occurred while getting the video sharpness level: ", y);
1779
- }
1780
- m(Ee, N = "faceCollector.faceWasNotFound", N);
1781
- } else
1782
- bt || (bt = !0, setTimeout(
1783
- () => {
1784
- let y = [
1785
- "faceCollector.faceWasNotFound",
1786
- "faceCollector.illuminationTooLow",
1787
- "faceCollector.lowSharpness",
1788
- "faceCollector.illuminationTooHigh"
1789
- ];
1790
- bt = !1, t(15, gt = !1), N && !y.includes(N) && m(Ee, N = "", N);
1791
- },
1792
- 1500
1793
- ));
1794
- }
1795
- function ri() {
1796
- return [
1797
- {
1798
- bodyPart: "FACE",
1799
- data: k,
1800
- format: "jpg",
1801
- capturedEyeToEyeDist: R,
1802
- minEyeToEyeDist: Le
1803
- }
1804
- ];
1805
- }
1806
- async function qi() {
1807
- const a = D.width, w = D.height, y = pt.height, P = w / a * y, S = document.createElement("canvas"), x = S.getContext("2d");
1808
- S.width = y, S.height = P;
1809
- const me = S.width / D.width, Ne = S.height / D.height, Z = new no({
1810
- x: p.x * me,
1811
- y: p.y * Ne,
1812
- width: p.width * me,
1813
- height: p.height * Ne
1814
- }), se = document.createElement("canvas");
1815
- se.width = Z.width, se.height = Z.height, se.getContext("2d")?.clearRect(0, 0, se.width, se.height), x && Mo(x, D, S);
1816
- const [Xe] = await (await import("./face_api_0e3ce8c8_3.1.0-RC03.js")).extractFaces(S, [Z]);
1817
- return Xe;
1818
- }
1819
- async function ci() {
1820
- const a = document.createElement("canvas"), w = a.getContext("2d");
1821
- return a.width = D.width, a.height = D.height, w?.drawImage(D, 0, 0, a.width, a.height), a.toDataURL("image/jpeg").split(",");
1822
- }
1823
- const zi = Bt.subscribe((a) => {
1824
- let w = "";
1825
- if (a.isPersonCloseEnough ? a.isPersonTooclose ? w = "faceCollector.moveAwayCamera" : a.isPersonInFrame ? a.closedMouth || (w = "faceCollector.dontOpenMouth") : w = "faceCollector.stayInFrame" : w = "faceCollector.comeCloserCamera", n && Ma(w), !_ && v && n && !Ie && a.isPersonInFrame && a.closedMouth && !(!a.isPersonCloseEnough || a.isPersonTooclose)) {
1826
- t(14, Ie = !0), ii = (/* @__PURE__ */ new Date()).getTime() + Bo;
1827
- const y = setInterval(
1828
- async () => {
1829
- if (!v || _ || Fe || H() && ce || !a.isPersonCloseEnough || a.isPersonTooclose || !a.closedMouth || !a.isPersonInFrame) {
1830
- t(14, Ie = !1), setTimeout(
1831
- () => {
1832
- },
1833
- 1500
1834
- ), clearInterval(y);
1835
- return;
1836
- }
1837
- const P = (/* @__PURE__ */ new Date()).getTime();
1838
- Math.floor((ii - P) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(y), t(14, Ie = !1), si());
1839
- },
1840
- 100
1841
- );
1842
- }
1843
- }), Ji = Be.subscribe((a) => {
1844
- de && (a ? (de.classList.remove("flex"), de.classList.add("hidden")) : (de.classList.add("flex"), de.classList.remove("hidden")));
1845
- }), Qi = Dt.subscribe((a) => {
1846
- D && a && (console.log("setting null in video srcObject"), t(11, D.srcObject = null, D), t(11, D.src = "", D), m(_e, u = null, u));
1847
- });
1848
- St.subscribe(async (a) => {
1849
- a === et.Face && (await Mt(), H() && m(_e, u = g[0]?.deviceId, u));
1850
- });
1851
- const Xi = _e.subscribe(async (a) => {
1852
- if (!(!H() && !d || !a || H() && ce))
1853
- try {
1854
- if (H()) {
1855
- await at(z), await Ce();
1856
- return;
1857
- }
1858
- t(11, D.srcObject = d, D), m(Dt, E = !1, E), Ke ? m(X, r = j.OK, r) : m(X, r = j.CAMERA_ORIENTATION_PORTRAIT, r), d.getTracks().forEach((w) => {
1859
- w.readyState === "live" && console.log(`Camera ${w.label} opened successfully!`);
1860
- }), m(X, r = j.OK, r), Ua(D);
1861
- } catch (w) {
1862
- const y = w;
1863
- t(17, ce = !0), Re(y) && "message" in y && y.message.includes("Requested device not found") && m(X, r = j.DEVICE_NOT_FOUND_ERROR, r);
1864
- }
1865
- }), Yi = St.subscribe(async (a) => {
1866
- a === et.Face && H() && !De && !_ && Ot && await Ce();
1867
- }), Gi = je.subscribe(async (a) => {
1868
- a && ui();
1869
- }), Zi = Va.subscribe(async (a) => {
1870
- if (g[0]?.deviceId) {
1871
- if (at(), !be() || H()) {
1872
- const y = (g.findIndex((S) => S.deviceId === u) + 1) % g.length, P = g[y].deviceId;
1873
- H() ? m(_e, u = P, u) : await Ce(P);
1874
- return;
1875
- }
1876
- a ? (m(Ze, f = Pt.REAR_CAMERA, f), await Ce()) : (m(Ze, f = Pt.FRONT_CAMERA, f), await Ce());
1877
- }
1878
- }), xi = ja.subscribe(async (a) => {
1879
- !a.isSupported || !be() || c != "FACE" || (Ke = a.orientation.includes("portrait"), Ke ? D && !l ? await Qe() : m(X, r = j.OK, r) : m(X, r = j.CAMERA_ORIENTATION_PORTRAIT, r));
1880
- });
1881
- async function ui() {
1882
- let a;
1883
- try {
1884
- if (Rt >= Po) {
1885
- Rt = 0;
1886
- let w;
1887
- if (w = ao(D, Qt), a = await w.withFaceLandmarks(), ae.getContext("2d")?.clearRect(0, 0, ae.width, ae.height), a != null) {
1888
- const y = oo(ae, D, !0);
1889
- Ha(ae, D, y);
1890
- const P = so(a, y);
1891
- Ka(P) ? (qa(P, ae, wt), m(Ye, n = !0, n), t(15, gt = !0), vt = (/* @__PURE__ */ new Date()).getTime()) : li();
1892
- } else
1893
- li();
1894
- } else
1895
- Rt++;
1896
- } catch (w) {
1897
- console.warn(`FaceapiLoop: ${w}`);
1898
- } finally {
1899
- s && Ue(D, ui);
1900
- }
1901
- }
1902
- Lt.subscribe(async (a) => {
1903
- a && (Oe(), m(Lt, o = !1, o));
1904
- });
1905
- const $i = Ge.subscribe((a) => {
1906
- a && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
1907
- }), ea = xe.subscribe((a) => {
1908
- a && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
1909
- });
1910
- za(() => {
1911
- console.log("Destroying face collector"), at(z), Ji(), zi(), Qi(), Xi(), Yi(), clearInterval(ti), Gi(), Zi(), xi(), $i(), ea(), ti = 0;
1912
- });
1913
- function ta(a) {
1914
- st[a ? "unshift" : "push"](() => {
1915
- z = a, t(1, z);
1916
- });
1917
- }
1918
- function ia(a) {
1919
- st[a ? "unshift" : "push"](() => {
1920
- D = a, t(11, D);
1921
- });
1922
- }
1923
- const aa = () => {
1924
- H() || (t(11, D.width = oe.videoWidth, D), t(11, D.height = oe.videoHeight, D), t(12, ae.width = oe.videoWidth, ae), t(12, ae.height = oe.videoHeight, ae));
1925
- };
1926
- function oa(a) {
1927
- st[a ? "unshift" : "push"](() => {
1928
- ae = a, t(12, ae);
1929
- });
1930
- }
1931
- const sa = () => Je(), na = () => Oe();
1932
- function la(a) {
1933
- st[a ? "unshift" : "push"](() => {
1934
- de = a, t(13, de);
1935
- });
1936
- }
1937
- const ra = () => Je(), ca = () => Oe();
1938
- function ua() {
1939
- U = this.value, Nt.set(U);
1940
- }
1941
- const fa = () => Je(), da = () => Oe();
1942
- function ha() {
1943
- U = this.value, Nt.set(U);
1944
- }
1945
- const ma = () => Oe(), _a = async () => {
1946
- await Qe();
1947
- };
1948
- return i.$$set = (a) => {
1949
- "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, he = 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, z = a.widgetInstance);
1950
- }, [
1951
- Tt,
1952
- z,
1953
- he,
1954
- Yt,
1955
- Gt,
1956
- kt,
1957
- Zt,
1958
- xt,
1959
- $t,
1960
- ei,
1961
- ze,
1962
- D,
1963
- ae,
1964
- de,
1965
- Ie,
1966
- gt,
1967
- He,
1968
- ce,
1969
- Fe,
1970
- ee,
1971
- r,
1972
- l,
1973
- u,
1974
- _,
1975
- M,
1976
- U,
1977
- O,
1978
- T,
1979
- Q,
1980
- $,
1981
- re,
1982
- oe,
1983
- qt,
1984
- zt,
1985
- Jt,
1986
- je,
1987
- ke,
1988
- si,
1989
- Je,
1990
- Oe,
1991
- Qe,
1992
- wt,
1993
- Ct,
1994
- Et,
1995
- yt,
1996
- Le,
1997
- ta,
1998
- ia,
1999
- aa,
2000
- oa,
2001
- sa,
2002
- na,
2003
- la,
2004
- ra,
2005
- ca,
2006
- ua,
2007
- fa,
2008
- da,
2009
- ha,
2010
- ma,
2011
- _a
2012
- ];
2013
- }
2014
- class Vo extends Ut {
2015
- constructor(e) {
2016
- super(), Vt(
2017
- this,
2018
- {
2019
- target: this.shadowRoot,
2020
- props: Ht(this.attributes),
2021
- customElement: !0
2022
- },
2023
- Uo,
2024
- So,
2025
- jt,
2026
- {
2027
- enableMinutiae: 41,
2028
- videoDimensions: 42,
2029
- noTabs: 43,
2030
- weightsPath: 44,
2031
- evaluatePhoto: 2,
2032
- showCaptureButton: 0,
2033
- showUnconformities: 3,
2034
- showConfigButton: 4,
2035
- showAutoCaptureButton: 5,
2036
- showCameraButton: 6,
2037
- showJustificationField: 7,
2038
- minEyeToEyeDist: 45,
2039
- videoOverlay: 8,
2040
- videoOverlayTransparency: 9,
2041
- widgetInstance: 1,
2042
- play: 10
2043
- },
2044
- null,
2045
- [-1, -1, -1, -1]
2046
- ), e && (e.target && A(e.target, this, e.anchor), e.props && (this.$set(e.props), q()));
2047
- }
2048
- static get observedAttributes() {
2049
- return [
2050
- "enableMinutiae",
2051
- "videoDimensions",
2052
- "noTabs",
2053
- "weightsPath",
2054
- "evaluatePhoto",
2055
- "showCaptureButton",
2056
- "showUnconformities",
2057
- "showConfigButton",
2058
- "showAutoCaptureButton",
2059
- "showCameraButton",
2060
- "showJustificationField",
2061
- "minEyeToEyeDist",
2062
- "videoOverlay",
2063
- "videoOverlayTransparency",
2064
- "widgetInstance",
2065
- "play"
2066
- ];
2067
- }
2068
- get enableMinutiae() {
2069
- return this.$$.ctx[41];
2070
- }
2071
- set enableMinutiae(e) {
2072
- this.$$set({ enableMinutiae: e }), q();
2073
- }
2074
- get videoDimensions() {
2075
- return this.$$.ctx[42];
2076
- }
2077
- set videoDimensions(e) {
2078
- this.$$set({ videoDimensions: e }), q();
2079
- }
2080
- get noTabs() {
2081
- return this.$$.ctx[43];
2082
- }
2083
- set noTabs(e) {
2084
- this.$$set({ noTabs: e }), q();
2085
- }
2086
- get weightsPath() {
2087
- return this.$$.ctx[44];
2088
- }
2089
- set weightsPath(e) {
2090
- this.$$set({ weightsPath: e }), q();
2091
- }
2092
- get evaluatePhoto() {
2093
- return this.$$.ctx[2];
2094
- }
2095
- set evaluatePhoto(e) {
2096
- this.$$set({ evaluatePhoto: e }), q();
2097
- }
2098
- get showCaptureButton() {
2099
- return this.$$.ctx[0];
2100
- }
2101
- set showCaptureButton(e) {
2102
- this.$$set({ showCaptureButton: e }), q();
2103
- }
2104
- get showUnconformities() {
2105
- return this.$$.ctx[3];
2106
- }
2107
- set showUnconformities(e) {
2108
- this.$$set({ showUnconformities: e }), q();
2109
- }
2110
- get showConfigButton() {
2111
- return this.$$.ctx[4];
2112
- }
2113
- set showConfigButton(e) {
2114
- this.$$set({ showConfigButton: e }), q();
2115
- }
2116
- get showAutoCaptureButton() {
2117
- return this.$$.ctx[5];
2118
- }
2119
- set showAutoCaptureButton(e) {
2120
- this.$$set({ showAutoCaptureButton: e }), q();
2121
- }
2122
- get showCameraButton() {
2123
- return this.$$.ctx[6];
2124
- }
2125
- set showCameraButton(e) {
2126
- this.$$set({ showCameraButton: e }), q();
2127
- }
2128
- get showJustificationField() {
2129
- return this.$$.ctx[7];
2130
- }
2131
- set showJustificationField(e) {
2132
- this.$$set({ showJustificationField: e }), q();
2133
- }
2134
- get minEyeToEyeDist() {
2135
- return this.$$.ctx[45];
2136
- }
2137
- set minEyeToEyeDist(e) {
2138
- this.$$set({ minEyeToEyeDist: e }), q();
2139
- }
2140
- get videoOverlay() {
2141
- return this.$$.ctx[8];
2142
- }
2143
- set videoOverlay(e) {
2144
- this.$$set({ videoOverlay: e }), q();
2145
- }
2146
- get videoOverlayTransparency() {
2147
- return this.$$.ctx[9];
2148
- }
2149
- set videoOverlayTransparency(e) {
2150
- this.$$set({ videoOverlayTransparency: e }), q();
2151
- }
2152
- get widgetInstance() {
2153
- return this.$$.ctx[1];
2154
- }
2155
- set widgetInstance(e) {
2156
- this.$$set({ widgetInstance: e }), q();
2157
- }
2158
- get play() {
2159
- return this.$$.ctx[10];
2160
- }
2161
- }
2162
- customElements.define("face-collector", Vo);
2163
- export {
2164
- Vo as default
2165
- };