bry-biometric-collector 3.0.0-RC03 → 3.0.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 (17) hide show
  1. package/dist/{DocumentCollector_cc7c3a54_3.0.0-RC03.js → DocumentCollector_622a98e4_3.0.0-RC04.js} +297 -296
  2. package/dist/{FaceCollector_e350268a_3.0.0-RC03.js → FaceCollector_1f1cf984_3.0.0-RC04.js} +145 -145
  3. package/dist/{ValidationAlert_dfb361e9_3.0.0-RC03.js → ValidationAlert_44adb2f5_3.0.0-RC04.js} +27 -27
  4. package/dist/{___vite-browser-external_commonjs-proxy_cbe30ad4_3.0.0-RC03.js → ___vite-browser-external_commonjs-proxy_23bd1279_3.0.0-RC04.js} +36 -36
  5. package/dist/bry-biometric-collector-main.js +3 -3
  6. package/dist/{fingersApi_5b5a03ec_3.0.0-RC03.js → fingersApi_587e4472_3.0.0-RC04.js} +2 -2
  7. package/dist/index.js +3 -3
  8. package/dist/{index_4c3936a1_3.0.0-RC03.js → index_10ad37f7_3.0.0-RC04.js} +3 -3
  9. package/dist/{index_89b7de40_3.0.0-RC03.js → index_47d6818a_3.0.0-RC04.js} +3 -3
  10. package/dist/{main_f74f12d4_3.0.0-RC03.js → main_277c3188_3.0.0-RC04.js} +647 -637
  11. package/package.json +1 -1
  12. /package/dist/{en-us_99b30d39_3.0.0-RC03.js → en-us_99b30d39_3.0.0-RC04.js} +0 -0
  13. /package/dist/{es-cl_cfa50670_3.0.0-RC03.js → es-cl_cfa50670_3.0.0-RC04.js} +0 -0
  14. /package/dist/{face_api_0e3ce8c8_3.0.0-RC03.js → face_api_0e3ce8c8_3.0.0-RC04.js} +0 -0
  15. /package/dist/{index-no-detector_281a271b_3.0.0-RC03.js → index-no-detector_281a271b_3.0.0-RC04.js} +0 -0
  16. /package/dist/{index-no-detector_56051121_3.0.0-RC03.js → index-no-detector_56051121_3.0.0-RC04.js} +0 -0
  17. /package/dist/{pt-br_d5ca6103_3.0.0-RC03.js → pt-br_d5ca6103_3.0.0-RC04.js} +0 -0
@@ -1,9 +1,9 @@
1
- import { S as Ut, q as Vt, r as jt, t as Ht, w as L, x as q, y as C, z as be, B as x, C as m, D as ge, E as J, G as Z, H as S, I as ve, J as I, K as Ne, L as Me, M as _e, N as h, O as K, P as j, Q as U, R as fa, T as _, U as lt, V as rt, W as Lt, X as Qe, Y, Z as Ge, _ as da, a0 as Ye, a1 as he, a2 as ha, a3 as Se, a4 as ui, a5 as Dt, a6 as fi, a7 as ma, a8 as _a, a9 as Pe, aa as we, ab as ba, ac as Ft, ad as Nt, ae as me, af as ee, $ as ga, ag as Ce, ah as di, ai as Ze, aj as St, ak as va, al as xe, am as hi, an as mi, ao as pa, ap as wa, aq as Ca, ar as Ea, as as ya, at as Ta, au as Oa, av as Pt, aw as H, j as nt, ax as Bt, ay as Ra, az as $e, aA as et, aB as ka, aC as _i, aD as bi, aE as tt, A as Wt, aF as Ee, aG as it, aH as Aa, aI as gi, d as Re, aJ as Mt, aK as at, aL as Ia, aM as La, aN as Da, aO as Fa, aP as Na, aQ as Sa, aR as Be, aS as Pa, aT as Ba, aU as st, aV as oe, aW as ft, aX as ct, aY as Di, aZ as M, a_ as V, a$ as vi, b0 as Wa, b1 as Ma, b2 as Ua, b3 as ot, b4 as We, b5 as Va, b6 as ja, b7 as pi, b8 as Ha, b9 as ut, ba as Ka } from "./main_f74f12d4_3.0.0-RC03.js";
2
- import { W as qa, C as za, V as Ja, a as Xa } from "./ValidationAlert_dfb361e9_3.0.0-RC03.js";
3
- import { detectSingleFace as Qa, matchDimensions as Ga, resizeResults as Ya, Box as Za } from "./face_api_0e3ce8c8_3.0.0-RC03.js";
4
- function xa(i) {
1
+ import { S as Ut, q as Vt, r as jt, t as Ht, w as L, x as q, y as C, z as be, B as x, C as m, D as ge, E as J, G as Z, H as S, I as ve, J as I, K as Ne, L as Me, M as _e, N as h, O as K, P as j, Q as U, R as fa, T as _, U as lt, V as rt, W as Lt, X as Qe, Y, Z as Ge, _ as da, a0 as Ye, a1 as he, a2 as ha, a3 as Se, a4 as fi, a5 as Dt, a6 as di, a7 as ma, a8 as _a, a9 as Pe, aa as we, ab as ba, ac as Ft, ad as Nt, ae as me, af as ee, $ as ga, ag as Ce, ah as hi, ai as Ze, aj as St, ak as va, al as xe, am as mi, an as _i, ao as pa, ap as wa, aq as Ca, ar as Ea, as as ya, at as Ta, au as Oa, av as Pt, aw as H, j as nt, ax as Bt, ay as Ra, az as $e, aA as et, aB as ka, aC as bi, aD as gi, aE as tt, A as Wt, aF as Ee, aG as it, aH as Aa, aI as vi, d as Re, aJ as Mt, aK as at, aL as Ia, aM as La, aN as Da, aO as Fa, aP as Na, aQ as Sa, aR as Pa, aS as Be, aT as Ba, aU as Wa, aV as st, aW as oe, aX as ft, aY as ct, aZ as Fi, a_ as M, a$ as V, b0 as pi, b1 as Ma, b2 as Ua, b3 as Va, b4 as ot, b5 as We, b6 as ja, b7 as Ha, b8 as wi, b9 as Ka, ba as ut, bb as qa } from "./main_277c3188_3.0.0-RC04.js";
2
+ import { W as za, C as Ja, V as Xa, a as Qa } from "./ValidationAlert_44adb2f5_3.0.0-RC04.js";
3
+ import { detectSingleFace as Ga, matchDimensions as Ya, resizeResults as Za, Box as xa } from "./face_api_0e3ce8c8_3.0.0-RC04.js";
4
+ function $a(i) {
5
5
  let e, t, s, o;
6
- return t = new qa({}), {
6
+ return t = new za({}), {
7
7
  c() {
8
8
  e = C("div"), be(t.$$.fragment), this.c = x, m(e, "id", "face-oval"), m(e, "class", s = "loader " + /*loading*/
9
9
  (i[0] ? "loading" : "") + " z-10"), m(
@@ -38,8 +38,8 @@ function xa(i) {
38
38
  }
39
39
  };
40
40
  }
41
- const $a = "hsl(var(--p))", es = "hsl(var(--su))";
42
- function ts(i, e, t) {
41
+ const es = "hsl(var(--p))", ts = "hsl(var(--su))";
42
+ function is(i, e, t) {
43
43
  let s, o, n;
44
44
  I(i, Ne, (v) => t(7, o = v)), I(i, Me, (v) => t(8, n = v));
45
45
  let { loading: l } = e, r, c, u = 0.8, f = 8, g = 0.15;
@@ -56,8 +56,8 @@ function ts(i, e, t) {
56
56
  44 && t(1, s = `
57
57
  --oval-width: ${r}px;
58
58
  --oval-height: ${c}px;
59
- --border-color: ${$a};
60
- --border-color-animation: ${es};
59
+ --border-color: ${es};
60
+ --border-color-animation: ${ts};
61
61
  --oval-border: ${f}px;
62
62
  `);
63
63
  }, [
@@ -72,7 +72,7 @@ function ts(i, e, t) {
72
72
  n
73
73
  ];
74
74
  }
75
- class Fi extends Ut {
75
+ class Ni extends Ut {
76
76
  constructor(e) {
77
77
  super(), Vt(
78
78
  this,
@@ -81,8 +81,8 @@ class Fi extends Ut {
81
81
  props: Ht(this.attributes),
82
82
  customElement: !0
83
83
  },
84
- ts,
85
- xa,
84
+ is,
85
+ $a,
86
86
  jt,
87
87
  { loading: 0 },
88
88
  null
@@ -98,8 +98,8 @@ class Fi extends Ut {
98
98
  this.$$set({ loading: e }), q();
99
99
  }
100
100
  }
101
- customElements.define("face-oval", Fi);
102
- function is(i) {
101
+ customElements.define("face-oval", Ni);
102
+ function as(i) {
103
103
  let e;
104
104
  return {
105
105
  c() {
@@ -129,7 +129,7 @@ function is(i) {
129
129
  }
130
130
  };
131
131
  }
132
- function as(i, e, t) {
132
+ function ss(i, e, t) {
133
133
  let s, o;
134
134
  I(i, Me, (f) => t(6, o = f));
135
135
  let n, l, r = 0.8, { overlayColor: c } = e, { overlayTransparency: u } = e;
@@ -154,7 +154,7 @@ function as(i, e, t) {
154
154
  o
155
155
  ];
156
156
  }
157
- class Ni extends Ut {
157
+ class Si extends Ut {
158
158
  constructor(e) {
159
159
  super(), Vt(
160
160
  this,
@@ -163,8 +163,8 @@ class Ni extends Ut {
163
163
  props: Ht(this.attributes),
164
164
  customElement: !0
165
165
  },
166
+ ss,
166
167
  as,
167
- is,
168
168
  jt,
169
169
  { overlayColor: 1, overlayTransparency: 2 },
170
170
  null
@@ -186,17 +186,17 @@ class Ni extends Ut {
186
186
  this.$$set({ overlayTransparency: e }), q();
187
187
  }
188
188
  }
189
- customElements.define("overlay-oval", Ni);
190
- function wi(i, e, t) {
189
+ customElements.define("overlay-oval", Si);
190
+ function Ci(i, e, t) {
191
191
  const s = i.slice();
192
192
  return s[118] = e[t], s;
193
193
  }
194
- function Ci(i) {
195
- let e, t, s = K(), o, n, l, r, c, u, f, g, v, d, E, b, p, k, T, F, A, B = s && ss(i), W = (
194
+ function Ei(i) {
195
+ let e, t, s = K(), o, n, l, r, c, u, f, g, v, d, E, b, p, k, T, F, A, B = s && os(i), W = (
196
196
  /*$ready*/
197
- i[21] && Ei(i)
197
+ i[21] && yi(i)
198
198
  );
199
- return d = new Ba({}), b = new za({
199
+ return d = new Wa({}), b = new Ja({
200
200
  props: {
201
201
  showConfigButton: (
202
202
  /*showConfigButton*/
@@ -297,7 +297,7 @@ function Ci(i) {
297
297
  R[31].videoHeight + "px"
298
298
  ), /*$ready*/
299
299
  R[21] ? W ? (W.p(R, y), y[0] & /*$ready*/
300
- 2097152 && J(W, 1)) : (W = Ei(R), W.c(), J(W, 1), W.m(g, null)) : W && (lt(), Z(W, 1, 1, () => {
300
+ 2097152 && J(W, 1)) : (W = yi(R), W.c(), J(W, 1), W.m(g, null)) : W && (lt(), Z(W, 1, 1, () => {
301
301
  W = null;
302
302
  }), rt());
303
303
  const X = {};
@@ -341,7 +341,7 @@ function Ci(i) {
341
341
  }
342
342
  };
343
343
  }
344
- function ss(i) {
344
+ function os(i) {
345
345
  let e;
346
346
  return {
347
347
  c() {
@@ -369,21 +369,21 @@ function ss(i) {
369
369
  }
370
370
  };
371
371
  }
372
- function Ei(i) {
372
+ function yi(i) {
373
373
  let e, t, s, o, n, l;
374
- return e = new Ja({
374
+ return e = new Xa({
375
375
  props: {
376
376
  isCountingDown: (
377
377
  /*isCountingDown*/
378
378
  i[14]
379
379
  )
380
380
  }
381
- }), s = new Fi({
381
+ }), s = new Ni({
382
382
  props: { loading: (
383
383
  /*isCountingDown*/
384
384
  i[14]
385
385
  ) }
386
- }), n = new Ni({
386
+ }), n = new Si({
387
387
  props: {
388
388
  overlayColor: (
389
389
  /*videoOverlay*/
@@ -428,18 +428,18 @@ function Ei(i) {
428
428
  }
429
429
  };
430
430
  }
431
- function yi(i) {
431
+ function Ti(i) {
432
432
  let e, t, s, o, n;
433
433
  function l(u, f) {
434
434
  return (
435
435
  /*$isLoading*/
436
- u[32] ? ns : os
436
+ u[32] ? ls : ns
437
437
  );
438
438
  }
439
439
  let r = l(i), c = r(i);
440
440
  return {
441
441
  c() {
442
- e = C("slot"), t = C("div"), s = C("img"), n = U(), c.c(), ct(s.src, o = Di) || m(s, "src", o), m(s, "alt", "loading gif"), m(s, "class", "m-auto h-[10em] lg:h-[12em]"), m(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), m(e, "name", "obtaining-photo-gif"), m(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
442
+ e = C("slot"), t = C("div"), s = C("img"), n = U(), c.c(), ct(s.src, o = Fi) || m(s, "src", o), m(s, "alt", "loading gif"), m(s, "class", "m-auto h-[10em] lg:h-[12em]"), m(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), m(e, "name", "obtaining-photo-gif"), m(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
443
443
  },
444
444
  m(u, f) {
445
445
  L(u, e, f), _(e, t), _(t, s), _(t, n), c.m(t, null);
@@ -452,7 +452,7 @@ function yi(i) {
452
452
  }
453
453
  };
454
454
  }
455
- function os(i) {
455
+ function ns(i) {
456
456
  let e, t = (
457
457
  /*$_*/
458
458
  i[28]("faceCollector.obtainingPicture") + ""
@@ -474,7 +474,7 @@ function os(i) {
474
474
  }
475
475
  };
476
476
  }
477
- function ns(i) {
477
+ function ls(i) {
478
478
  let e;
479
479
  return {
480
480
  c() {
@@ -489,18 +489,18 @@ function ns(i) {
489
489
  }
490
490
  };
491
491
  }
492
- function Ti(i) {
492
+ function Oi(i) {
493
493
  let e, t, s, o, n;
494
494
  function l(u, f) {
495
495
  return (
496
496
  /*$isLoading*/
497
- u[32] ? rs : ls
497
+ u[32] ? cs : rs
498
498
  );
499
499
  }
500
500
  let r = l(i), c = r(i);
501
501
  return {
502
502
  c() {
503
- e = C("slot"), t = C("div"), s = C("img"), n = U(), c.c(), ct(s.src, o = Di) || m(s, "src", o), m(s, "alt", "loading gif"), m(s, "class", "m-auto h-[10em] lg:h-[12em]"), m(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), m(e, "name", "loading-camera-gif"), m(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
503
+ e = C("slot"), t = C("div"), s = C("img"), n = U(), c.c(), ct(s.src, o = Fi) || m(s, "src", o), m(s, "alt", "loading gif"), m(s, "class", "m-auto h-[10em] lg:h-[12em]"), m(t, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), m(e, "name", "loading-camera-gif"), m(e, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
504
504
  },
505
505
  m(u, f) {
506
506
  L(u, e, f), _(e, t), _(t, s), _(t, n), c.m(t, null);
@@ -513,7 +513,7 @@ function Ti(i) {
513
513
  }
514
514
  };
515
515
  }
516
- function ls(i) {
516
+ function rs(i) {
517
517
  let e, t = (
518
518
  /*$_*/
519
519
  i[28]("faceCollector.initiatingCamera") + ""
@@ -535,7 +535,7 @@ function ls(i) {
535
535
  }
536
536
  };
537
537
  }
538
- function rs(i) {
538
+ function cs(i) {
539
539
  let e;
540
540
  return {
541
541
  c() {
@@ -550,7 +550,7 @@ function rs(i) {
550
550
  }
551
551
  };
552
552
  }
553
- function Oi(i) {
553
+ function Ri(i) {
554
554
  let e, t, s = (
555
555
  /*$_*/
556
556
  i[28]("faceCollector.finish") + ""
@@ -593,9 +593,9 @@ function Oi(i) {
593
593
  }
594
594
  };
595
595
  }
596
- function cs(i) {
596
+ function us(i) {
597
597
  let e, t;
598
- return e = new Xa({ props: { handler: (
598
+ return e = new Qa({ props: { handler: (
599
599
  /*func*/
600
600
  i[60]
601
601
  ) } }), {
@@ -617,14 +617,14 @@ function cs(i) {
617
617
  }
618
618
  };
619
619
  }
620
- function us(i) {
620
+ function fs(i) {
621
621
  let e, t, s, o, n, l, r, c, u;
622
622
  const f = [
623
+ bs,
623
624
  _s,
624
625
  ms,
625
626
  hs,
626
- ds,
627
- fs
627
+ ds
628
628
  ], g = [];
629
629
  function v(d, E) {
630
630
  return (
@@ -685,20 +685,20 @@ function us(i) {
685
685
  }
686
686
  };
687
687
  }
688
- function fs(i) {
688
+ function ds(i) {
689
689
  let e, t, s = (
690
690
  /*$_*/
691
691
  i[28]("faceCollector.captured") + ""
692
692
  ), o, n, l, r, c, u = (
693
693
  /*$_*/
694
694
  i[28]("faceCollector.retakePhoto") + ""
695
- ), f, g, v = nt(Va).faceStrategy !== ja.DISABLED, d, E, b, p = (
695
+ ), f, g, v = nt(ja).faceStrategy !== Ha.DISABLED, d, E, b, p = (
696
696
  /*$unconformitiesStore*/
697
- i[29].unconformities.length !== 0 && Ri(i)
698
- ), k = v && bs();
697
+ i[29].unconformities.length !== 0 && ki(i)
698
+ ), k = v && gs();
699
699
  return {
700
700
  c() {
701
- e = C("div"), t = C("h1"), o = M(s), n = U(), p && p.c(), l = U(), r = C("div"), c = C("button"), f = M(u), g = U(), k && k.c(), m(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), m(c, "id", "bry-cc-retake-button"), m(c, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), m(r, "class", "flex flex-row"), pi(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
701
+ e = C("div"), t = C("h1"), o = M(s), n = U(), p && p.c(), l = U(), r = C("div"), c = C("button"), f = M(u), g = U(), k && k.c(), m(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), m(c, "id", "bry-cc-retake-button"), m(c, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), m(r, "class", "flex flex-row"), wi(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
702
702
  i[34]);
703
703
  },
704
704
  m(T, F) {
@@ -713,10 +713,10 @@ function fs(i) {
713
713
  (!d || F[0] & /*$_*/
714
714
  268435456) && s !== (s = /*$_*/
715
715
  T[28]("faceCollector.captured") + "") && V(o, s), /*$unconformitiesStore*/
716
- T[29].unconformities.length !== 0 ? p ? p.p(T, F) : (p = Ri(T), p.c(), p.m(e, l)) : p && (p.d(1), p = null), (!d || F[0] & /*$_*/
716
+ T[29].unconformities.length !== 0 ? p ? p.p(T, F) : (p = ki(T), p.c(), p.m(e, l)) : p && (p.d(1), p = null), (!d || F[0] & /*$_*/
717
717
  268435456) && u !== (u = /*$_*/
718
718
  T[28]("faceCollector.retakePhoto") + "") && V(f, u), (!d || F[1] & /*$exportButtonDisabled*/
719
- 8) && pi(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
719
+ 8) && wi(r, "ce-dui-btn-group", !/*$exportButtonDisabled*/
720
720
  T[34]);
721
721
  },
722
722
  i(T) {
@@ -730,7 +730,7 @@ function fs(i) {
730
730
  }
731
731
  };
732
732
  }
733
- function ds(i) {
733
+ function hs(i) {
734
734
  let e, t, s = (
735
735
  /*evaluatePhoto*/
736
736
  (i[2] ? (
@@ -745,18 +745,18 @@ function ds(i) {
745
745
  i[29].unconformities
746
746
  ), g = [];
747
747
  for (let b = 0; b < f.length; b += 1)
748
- g[b] = ki(wi(i, f, b));
748
+ g[b] = Ai(Ci(i, f, b));
749
749
  let v = (
750
750
  /*evaluatePhoto*/
751
751
  i[2] && /*$unconformitiesStore*/
752
- i[29].unconformities.length == 0 && Ai(i)
752
+ i[29].unconformities.length == 0 && Ii(i)
753
753
  ), d = (
754
754
  /*showJustificationField*/
755
755
  i[7] && /*$unconformitiesStore*/
756
- i[29].unconformities.length > 0 && Ii(i)
756
+ i[29].unconformities.length > 0 && Li(i)
757
757
  ), E = (
758
758
  /*$captured*/
759
- i[23] && Li(i)
759
+ i[23] && Di(i)
760
760
  );
761
761
  return {
762
762
  c() {
@@ -786,8 +786,8 @@ function ds(i) {
786
786
  b[29].unconformities;
787
787
  let k;
788
788
  for (k = 0; k < f.length; k += 1) {
789
- const T = wi(b, f, k);
790
- g[k] ? g[k].p(T, p) : (g[k] = ki(T), g[k].c(), g[k].m(l, r));
789
+ const T = Ci(b, f, k);
790
+ g[k] ? g[k].p(T, p) : (g[k] = Ai(T), g[k].c(), g[k].m(l, r));
791
791
  }
792
792
  for (; k < g.length; k += 1)
793
793
  g[k].d(1);
@@ -795,19 +795,19 @@ function ds(i) {
795
795
  }
796
796
  /*evaluatePhoto*/
797
797
  b[2] && /*$unconformitiesStore*/
798
- b[29].unconformities.length == 0 ? v ? v.p(b, p) : (v = Ai(b), v.c(), v.m(l, null)) : v && (v.d(1), v = null), /*showJustificationField*/
798
+ b[29].unconformities.length == 0 ? v ? v.p(b, p) : (v = Ii(b), v.c(), v.m(l, null)) : v && (v.d(1), v = null), /*showJustificationField*/
799
799
  b[7] && /*$unconformitiesStore*/
800
- b[29].unconformities.length > 0 ? d ? d.p(b, p) : (d = Ii(b), d.c(), d.m(e, u)) : d && (d.d(1), d = null), /*$captured*/
801
- b[23] ? E ? E.p(b, p) : (E = Li(b), E.c(), E.m(e, null)) : E && (E.d(1), E = null);
800
+ b[29].unconformities.length > 0 ? d ? d.p(b, p) : (d = Li(b), d.c(), d.m(e, u)) : d && (d.d(1), d = null), /*$captured*/
801
+ b[23] ? E ? E.p(b, p) : (E = Di(b), E.c(), E.m(e, null)) : E && (E.d(1), E = null);
802
802
  },
803
803
  i: x,
804
804
  o: x,
805
805
  d(b) {
806
- b && S(e), Ha(g, b), v && v.d(), d && d.d(), E && E.d();
806
+ b && S(e), Ka(g, b), v && v.d(), d && d.d(), E && E.d();
807
807
  }
808
808
  };
809
809
  }
810
- function hs(i) {
810
+ function ms(i) {
811
811
  let e, t, s, o, n = (
812
812
  /*$_*/
813
813
  i[28]("faceCollector.finish") + ""
@@ -819,16 +819,16 @@ function hs(i) {
819
819
  return (
820
820
  /*$requestResult*/
821
821
  p[27] === H.LIVENESS_DETECTION_FAILURE || /*$requestResult*/
822
- p[27] === H.UNKNOWN_LIVENESS_ERROR ? Es : (
822
+ p[27] === H.UNKNOWN_LIVENESS_ERROR ? ys : (
823
823
  /*$requestResult*/
824
- p[27] === H.LOW_LIVENESS_SCORE ? Cs : (
824
+ p[27] === H.LOW_LIVENESS_SCORE ? Es : (
825
825
  /*$requestResult*/
826
826
  p[27] === H.TEMPLATE_EXTRACTION_ERROR || /*$requestResult*/
827
- p[27] === H.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ? ws : (
827
+ p[27] === H.UNKNOWN_TEMPLATE_EXTRACTION_ERROR ? Cs : (
828
828
  /*$requestResult*/
829
- p[27] === H.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ? ps : (
829
+ p[27] === H.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE ? ws : (
830
830
  /*$requestResult*/
831
- p[27] === H.LIVENESS_EVALUATION_ERROR ? vs : gs
831
+ p[27] === H.LIVENESS_EVALUATION_ERROR ? ps : vs
832
832
  )
833
833
  )
834
834
  )
@@ -870,7 +870,7 @@ function hs(i) {
870
870
  }
871
871
  };
872
872
  }
873
- function ms(i) {
873
+ function _s(i) {
874
874
  let e, t, s = (
875
875
  /*$_*/
876
876
  i[28]("faceCollector.validating") + ""
@@ -894,7 +894,7 @@ function ms(i) {
894
894
  }
895
895
  };
896
896
  }
897
- function _s(i) {
897
+ function bs(i) {
898
898
  let e;
899
899
  return {
900
900
  c() {
@@ -911,7 +911,7 @@ function _s(i) {
911
911
  }
912
912
  };
913
913
  }
914
- function Ri(i) {
914
+ function ki(i) {
915
915
  let e, t, s = (
916
916
  /*$_*/
917
917
  i[28]("faceCollector.justification") + ""
@@ -947,9 +947,9 @@ function Ri(i) {
947
947
  }
948
948
  };
949
949
  }
950
- function bs(i) {
950
+ function gs(i) {
951
951
  let e, t;
952
- return e = new Ka({
952
+ return e = new qa({
953
953
  props: { cssClass: "ce-dui-btn-block flex-shrink" }
954
954
  }), {
955
955
  c() {
@@ -969,7 +969,7 @@ function bs(i) {
969
969
  }
970
970
  };
971
971
  }
972
- function ki(i) {
972
+ function Ai(i) {
973
973
  let e, t = (
974
974
  /*unconformity*/
975
975
  i[118] + ""
@@ -991,7 +991,7 @@ function ki(i) {
991
991
  }
992
992
  };
993
993
  }
994
- function Ai(i) {
994
+ function Ii(i) {
995
995
  let e, t = (
996
996
  /*$_*/
997
997
  i[28]("faceCollector.noNonconformity") + ""
@@ -1013,7 +1013,7 @@ function Ai(i) {
1013
1013
  }
1014
1014
  };
1015
1015
  }
1016
- function Ii(i) {
1016
+ function Li(i) {
1017
1017
  let e, t, s, o = (
1018
1018
  /*$_*/
1019
1019
  i[28]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
@@ -1057,7 +1057,7 @@ function Ii(i) {
1057
1057
  }
1058
1058
  };
1059
1059
  }
1060
- function Li(i) {
1060
+ function Di(i) {
1061
1061
  let e, t, s = (
1062
1062
  /*$_*/
1063
1063
  i[28]("faceCollector.finish") + ""
@@ -1102,7 +1102,7 @@ function Li(i) {
1102
1102
  }
1103
1103
  };
1104
1104
  }
1105
- function gs(i) {
1105
+ function vs(i) {
1106
1106
  let e, t = (
1107
1107
  /*$_*/
1108
1108
  i[28]("faceCollector.everythingOk") + ""
@@ -1124,7 +1124,7 @@ function gs(i) {
1124
1124
  }
1125
1125
  };
1126
1126
  }
1127
- function vs(i) {
1127
+ function ps(i) {
1128
1128
  let e, t = (
1129
1129
  /*$_*/
1130
1130
  i[28]("liveness.error.evaluationError") + ""
@@ -1146,7 +1146,7 @@ function vs(i) {
1146
1146
  }
1147
1147
  };
1148
1148
  }
1149
- function ps(i) {
1149
+ function ws(i) {
1150
1150
  let e, t = (
1151
1151
  /*$_*/
1152
1152
  i[28]("faceCollector.unableToCompleteRequest") + ""
@@ -1168,7 +1168,7 @@ function ps(i) {
1168
1168
  }
1169
1169
  };
1170
1170
  }
1171
- function ws(i) {
1171
+ function Cs(i) {
1172
1172
  let e, t = (
1173
1173
  /*$_*/
1174
1174
  i[28]("faceCollector.lowQualityCapture") + ""
@@ -1190,7 +1190,7 @@ function ws(i) {
1190
1190
  }
1191
1191
  };
1192
1192
  }
1193
- function Cs(i) {
1193
+ function Es(i) {
1194
1194
  let e, t = (
1195
1195
  /*$_*/
1196
1196
  i[28]("liveness.error.error") + ""
@@ -1217,7 +1217,7 @@ function Cs(i) {
1217
1217
  }
1218
1218
  };
1219
1219
  }
1220
- function Es(i) {
1220
+ function ys(i) {
1221
1221
  let e, t = (
1222
1222
  /*$_*/
1223
1223
  i[28]("liveness.error.error") + ""
@@ -1250,7 +1250,7 @@ function Es(i) {
1250
1250
  }
1251
1251
  };
1252
1252
  }
1253
- function ys(i) {
1253
+ function Ts(i) {
1254
1254
  let e, t, s, o = K() && /*waitingIdrndCaptureEvent*/
1255
1255
  i[18], n, l = (K() && /*idrndLoading*/
1256
1256
  (i[16] || !/*$ready*/
@@ -1258,12 +1258,12 @@ function ys(i) {
1258
1258
  i[21]) && /*$cameraStatusStore*/
1259
1259
  i[20] === j.OK, r, c, u, f, g, v, d = (
1260
1260
  /*$videoStore*/
1261
- i[31] && Ci(i)
1262
- ), E = o && yi(i), b = l && Ti(i), p = (
1261
+ i[31] && Ei(i)
1262
+ ), E = o && Ti(i), b = l && Oi(i), p = (
1263
1263
  /*$captured*/
1264
- i[23] && Oi(i)
1264
+ i[23] && Ri(i)
1265
1265
  );
1266
- const k = [us, cs], T = [];
1266
+ const k = [fs, us], T = [];
1267
1267
  function F(A, B) {
1268
1268
  return (!/*idrndClosed*/
1269
1269
  A[17] || /*$captured*/
@@ -1283,17 +1283,17 @@ function ys(i) {
1283
1283
  p(A, B) {
1284
1284
  /*$videoStore*/
1285
1285
  A[31] ? d ? (d.p(A, B), B[1] & /*$videoStore*/
1286
- 1 && J(d, 1)) : (d = Ci(A), d.c(), J(d, 1), d.m(t, s)) : d && (lt(), Z(d, 1, 1, () => {
1286
+ 1 && J(d, 1)) : (d = Ei(A), d.c(), J(d, 1), d.m(t, s)) : d && (lt(), Z(d, 1, 1, () => {
1287
1287
  d = null;
1288
1288
  }), rt()), B[0] & /*waitingIdrndCaptureEvent*/
1289
1289
  262144 && (o = K() && /*waitingIdrndCaptureEvent*/
1290
- A[18]), o ? E ? E.p(A, B) : (E = yi(A), E.c(), E.m(t, n)) : E && (E.d(1), E = null), B[0] & /*idrndLoading, $ready, $cameraStatusStore*/
1290
+ A[18]), o ? E ? E.p(A, B) : (E = Ti(A), E.c(), E.m(t, n)) : E && (E.d(1), E = null), B[0] & /*idrndLoading, $ready, $cameraStatusStore*/
1291
1291
  3211264 && (l = (K() && /*idrndLoading*/
1292
1292
  (A[16] || !/*$ready*/
1293
1293
  A[21]) || !K() && !/*$ready*/
1294
1294
  A[21]) && /*$cameraStatusStore*/
1295
- A[20] === j.OK), l ? b ? b.p(A, B) : (b = Ti(A), b.c(), b.m(t, r)) : b && (b.d(1), b = null), /*$captured*/
1296
- A[23] ? p ? p.p(A, B) : (p = Oi(A), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
1295
+ A[20] === j.OK), l ? b ? b.p(A, B) : (b = Oi(A), b.c(), b.m(t, r)) : b && (b.d(1), b = null), /*$captured*/
1296
+ A[23] ? p ? p.p(A, B) : (p = Ri(A), p.c(), p.m(t, null)) : p && (p.d(1), p = null);
1297
1297
  let W = u;
1298
1298
  u = F(A), u === W ? ~u && T[u].p(A, B) : (f && (lt(), Z(T[W], 1, 1, () => {
1299
1299
  T[W] = null;
@@ -1310,22 +1310,22 @@ function ys(i) {
1310
1310
  }
1311
1311
  };
1312
1312
  }
1313
- let Ts = 0, Os = 3e3;
1314
- function Rs() {
1315
- ({}).VITE_USE_DEV === "true" ? import("./index-no-detector_281a271b_3.0.0-RC03.js") : import("./index-no-detector_56051121_3.0.0-RC03.js");
1313
+ let Os = 0, Rs = 3e3;
1314
+ function ks() {
1315
+ ({}).VITE_USE_DEV === "true" ? import("./index-no-detector_281a271b_3.0.0-RC04.js") : import("./index-no-detector_56051121_3.0.0-RC04.js");
1316
1316
  }
1317
- function ks(i, e, t) {
1317
+ function As(i, e, t) {
1318
1318
  const s = e.videoWidth / e.videoHeight, o = t.width / t.height;
1319
1319
  let n = 0, l = 0, r = e.videoWidth, c = e.videoHeight;
1320
1320
  s > o ? (r = e.videoHeight * o, n = (e.videoWidth - r) / 2) : s < o && (c = e.videoWidth / o, l = (e.videoHeight - c) / 2), i.drawImage(e, n, l, r, c, 0, 0, t.width, t.height);
1321
1321
  }
1322
- function As(i, e, t) {
1322
+ function Is(i, e, t) {
1323
1323
  let s, o, n, l, r, c, u, f, g, v, d, E, b, p, k, T, F, A, B, W, R, y, X, $, ce, le, ke, dt, ae, Kt, ht, mt, _t, qt, zt, Jt;
1324
- I(i, Lt, (a) => t(73, s = a)), I(i, Qe, (a) => t(75, n = a)), I(i, Y, (a) => t(20, l = a)), I(i, Ge, (a) => t(21, r = a)), I(i, da, (a) => t(76, c = a)), I(i, Ye, (a) => t(77, u = a)), I(i, he, (a) => t(22, f = a)), I(i, ha, (a) => t(78, g = a)), I(i, Se, (a) => t(23, v = a)), I(i, ui, (a) => t(79, d = a)), I(i, Dt, (a) => t(80, E = a)), I(i, fi, (a) => t(81, b = a)), I(i, ma, (a) => t(82, p = a)), I(i, _a, (a) => t(83, k = a)), I(i, Pe, (a) => t(84, T = a)), I(i, we, (a) => t(85, F = a)), I(i, ba, (a) => t(86, A = a)), I(i, Ft, (a) => t(24, B = a)), I(i, Nt, (a) => t(25, W = a)), I(i, me, (a) => t(26, R = a)), I(i, ee, (a) => t(27, y = a)), I(i, ga, (a) => t(28, X = a)), I(i, Ce, (a) => t(29, $ = a)), I(i, di, (a) => t(87, le = a)), I(i, Ze, (a) => t(88, ke = a)), I(i, St, (a) => t(89, dt = a)), I(i, Me, (a) => t(31, ae = a)), I(i, va, (a) => t(90, Kt = a)), I(i, xe, (a) => t(91, ht = a)), I(i, hi, (a) => t(92, mt = a)), I(i, mi, (a) => t(93, _t = a)), I(i, pa, (a) => t(32, qt = a)), I(i, wa, (a) => t(33, zt = a)), I(i, Ca, (a) => t(34, Jt = a));
1324
+ I(i, Lt, (a) => t(73, s = a)), I(i, Qe, (a) => t(75, n = a)), I(i, Y, (a) => t(20, l = a)), I(i, Ge, (a) => t(21, r = a)), I(i, da, (a) => t(76, c = a)), I(i, Ye, (a) => t(77, u = a)), I(i, he, (a) => t(22, f = a)), I(i, ha, (a) => t(78, g = a)), I(i, Se, (a) => t(23, v = a)), I(i, fi, (a) => t(79, d = a)), I(i, Dt, (a) => t(80, E = a)), I(i, di, (a) => t(81, b = a)), I(i, ma, (a) => t(82, p = a)), I(i, _a, (a) => t(83, k = a)), I(i, Pe, (a) => t(84, T = a)), I(i, we, (a) => t(85, F = a)), I(i, ba, (a) => t(86, A = a)), I(i, Ft, (a) => t(24, B = a)), I(i, Nt, (a) => t(25, W = a)), I(i, me, (a) => t(26, R = a)), I(i, ee, (a) => t(27, y = a)), I(i, ga, (a) => t(28, X = a)), I(i, Ce, (a) => t(29, $ = a)), I(i, hi, (a) => t(87, le = a)), I(i, Ze, (a) => t(88, ke = a)), I(i, St, (a) => t(89, dt = a)), I(i, Me, (a) => t(31, ae = a)), I(i, va, (a) => t(90, Kt = a)), I(i, xe, (a) => t(91, ht = a)), I(i, mi, (a) => t(92, mt = a)), I(i, _i, (a) => t(93, _t = a)), I(i, pa, (a) => t(32, qt = a)), I(i, wa, (a) => t(33, zt = a)), I(i, Ca, (a) => t(34, Jt = a));
1325
1325
  let D, te, ue, Xt, Qt = !1, Ae = !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: fe } = e, { showCaptureButton: Tt } = e, { showUnconformities: Gt } = e, { showConfigButton: Yt } = e, { showAutoCaptureButton: Ot } = e, { showCameraButton: Zt } = e, { showJustificationField: xt } = e, { minEyeToEyeDist: Ie } = e, { videoOverlay: $t } = e, { videoOverlayTransparency: ei } = e;
1326
- const Ue = vi(!1);
1326
+ const Ue = pi(!1);
1327
1327
  I(i, Ue, (a) => t(74, o = a));
1328
- const Le = vi("data:image/png;base64");
1328
+ const Le = pi("data:image/png;base64");
1329
1329
  I(i, Le, (a) => t(30, ce = a));
1330
1330
  let { widgetInstance: Q } = e, De = !1, Rt = !1, Ve = !0, ne = !0, ye = !1, ti = 0, ie = "", kt = 0, je = !0, ii = 0;
1331
1331
  const He = Ea.mixin({
@@ -1339,13 +1339,13 @@ function As(i, e, t) {
1339
1339
  try {
1340
1340
  await Ta(yt), Qt = !0, Xt = await Oa();
1341
1341
  } catch {
1342
- h(di, le = !1, le), t(0, Tt = !0);
1342
+ h(hi, le = !1, le), t(0, Tt = !0);
1343
1343
  }
1344
- K() ? (Rs(), Si()) : await pe(), _e() || Bi();
1344
+ K() ? (ks(), Pi()) : await pe(), _e() || Wi();
1345
1345
  });
1346
1346
  async function ai() {
1347
1347
  const [a, w] = (Ct ?? "")?.replaceAll(" ", "")?.split("x")?.map((O) => O ? parseInt(O) : void 0);
1348
- !a || !w || (_e() ? (await Wa(), h(
1348
+ !a || !w || (_e() ? (await Ma(), h(
1349
1349
  Me,
1350
1350
  ae = {
1351
1351
  videoWidth: window.innerWidth,
@@ -1355,15 +1355,15 @@ function As(i, e, t) {
1355
1355
  )) : h(Me, ae = { videoWidth: a, videoHeight: w }, ae));
1356
1356
  }
1357
1357
  function si() {
1358
- h(Qe, n = !1, n), h(Se, v = !1, v), h(Ye, u = Pt.FRONT_CAMERA, u), Ot && h(fi, b = !1, b), h(Ft, B = !1, B), h(ee, y = H.OK, y), h(Pe, T = "", T), h(Ce, $.unconformities = [], $);
1358
+ h(Qe, n = !1, n), h(Se, v = !1, v), h(Ye, u = Pt.FRONT_CAMERA, u), Ot && h(di, b = !1, b), h(Ft, B = !1, B), h(ee, y = H.OK, y), h(Pe, T = "", T), h(Ce, $.unconformities = [], $);
1359
1359
  const a = nt(Bt);
1360
1360
  a.closedMouth = !1, a.isPersonCloseEnough = !1, a.isPersonTooclose = !0, a.isPersonInFrame = !1, Bt.set(a), h(we, F = "", F);
1361
1361
  }
1362
- function Si() {
1362
+ function Pi() {
1363
1363
  Q.addEventListener("open", (a) => {
1364
1364
  const w = a.detail[0].video;
1365
1365
  h(
1366
- mi,
1366
+ _i,
1367
1367
  _t = {
1368
1368
  width: w.videoWidth,
1369
1369
  height: w.videoHeight
@@ -1380,7 +1380,7 @@ function As(i, e, t) {
1380
1380
  }), Q.addEventListener("close", async (a) => {
1381
1381
  v || (De = !1), t(17, ne = !0), t(18, ye = !1), l === j.OK && h(Y, l = j.CAMERA_CLOSED_ERROR, l);
1382
1382
  }), Q.addEventListener("initialize", async (a) => {
1383
- Rt = !0, h(hi, mt = !0, mt), dt === $e.Face && !De && !v && Rt && await At();
1383
+ Rt = !0, h(mi, mt = !0, mt), dt === $e.Face && !De && !v && Rt && await At();
1384
1384
  }), Q.addEventListener("capture", async (a) => {
1385
1385
  t(19, ie = "");
1386
1386
  const { encryptedFile: w, photo: O } = a.detail[0];
@@ -1389,7 +1389,7 @@ function As(i, e, t) {
1389
1389
  if (le)
1390
1390
  try {
1391
1391
  let z = await ka(O);
1392
- if (!await _i(z)) {
1392
+ if (!await bi(z)) {
1393
1393
  console.warn("Liveness capture - face not detected! Resetting capture.");
1394
1394
  return;
1395
1395
  }
@@ -1401,7 +1401,7 @@ function As(i, e, t) {
1401
1401
  if (t(18, ye = !1), h(ee, y = H.OK, y), h(Ce, $.isLoading = !0, $), h(Se, v = !0, v), De = !1, h(Le, ce = P[0], ce), h(me, R = P[1], R), h(Pe, T = P[1], T), !Kt) {
1402
1402
  let z, re, It, Je;
1403
1403
  try {
1404
- if (!bi(Ie))
1404
+ if (!gi(Ie))
1405
1405
  throw new Error("FACE_TOO_SMALL");
1406
1406
  ({ bodyParts: z, icaoWarnings: re } = await tt(T, fe, (await et(w)).split(",")[1])), window.dispatchEvent(new CustomEvent(
1407
1407
  "face-unconformities-validated",
@@ -1415,8 +1415,8 @@ function As(i, e, t) {
1415
1415
  ));
1416
1416
  } catch (se) {
1417
1417
  console.error(se);
1418
- let Oe = Ee.UNKNOWN, Xe = [], ci = [];
1419
- se instanceof Wt && se.response?.status === 400 ? se.response.data && Array.isArray(se.response.data.bodyParts) ? (Xe = se.response.data.bodyParts, ci = se.response.data.icaoWarnings, It = se.response.data.invalidLivenessCounter, Je = se.response.data.invalidLivenessLimit, Oe = Xe.find((ua) => ua.livenessResult.error)?.livenessResult.error_code, h(ee, y = H.LIVENESS_DETECTION_FAILURE, y), t(19, ie = Ee[Oe]), console.error("Liveness error:", Oe)) : h(ee, y = H.TEMPLATE_EXTRACTION_ERROR, y) : se instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(se.message) ? (h(ee, y = H.LIVENESS_DETECTION_FAILURE, y), Oe = se.message, t(19, ie = Ee[Oe]), Xe = li()) : fe && He.fire({
1418
+ let Oe = Ee.UNKNOWN, Xe = [], ui = [];
1419
+ se instanceof Wt && se.response?.status === 400 ? se.response.data && Array.isArray(se.response.data.bodyParts) ? (Xe = se.response.data.bodyParts, ui = se.response.data.icaoWarnings, It = se.response.data.invalidLivenessCounter, Je = se.response.data.invalidLivenessLimit, Oe = Xe.find((ua) => ua.livenessResult.error)?.livenessResult.error_code, h(ee, y = H.LIVENESS_DETECTION_FAILURE, y), t(19, ie = Ee[Oe]), console.error("Liveness error:", Oe)) : h(ee, y = H.TEMPLATE_EXTRACTION_ERROR, y) : se instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(se.message) ? (h(ee, y = H.LIVENESS_DETECTION_FAILURE, y), Oe = se.message, t(19, ie = Ee[Oe]), Xe = ri()) : fe && He.fire({
1420
1420
  icon: "error",
1421
1421
  title: "Falha ao comunicar com serviço de Liveness"
1422
1422
  }), h(Ce, $.isLoading = !1, $), window.dispatchEvent(new CustomEvent(
@@ -1427,7 +1427,7 @@ function As(i, e, t) {
1427
1427
  errorCode: Oe,
1428
1428
  translatedError: X(ie),
1429
1429
  status: y,
1430
- icaoWarnings: ci,
1430
+ icaoWarnings: ui,
1431
1431
  invalidLivenessCounter: It,
1432
1432
  invalidLivenessLimit: Je
1433
1433
  }
@@ -1492,13 +1492,13 @@ function As(i, e, t) {
1492
1492
  h(Y, l = j.CAMERA_ORIENTATION_PORTRAIT, l);
1493
1493
  return;
1494
1494
  }
1495
- await ai(), K() ? At() : await Pi(ae.videoWidth, ae.videoHeight, a);
1495
+ await ai(), K() ? At() : await Bi(ae.videoWidth, ae.videoHeight, a);
1496
1496
  }
1497
1497
  async function At() {
1498
1498
  if (K()) {
1499
1499
  if (await ai(), !g[0]?.deviceId) {
1500
1500
  try {
1501
- await gi(640, 480);
1501
+ await vi(640, 480);
1502
1502
  } catch (a) {
1503
1503
  const w = a, O = Re(a) && a.constraint ? a.constraint : "";
1504
1504
  console.error(w.message, O), Re(w) && "message" in w && w.message.includes("Requested device not found") && h(Y, l = j.DEVICE_NOT_FOUND_ERROR, l);
@@ -1523,7 +1523,7 @@ function As(i, e, t) {
1523
1523
  return;
1524
1524
  }
1525
1525
  let a = null;
1526
- if (le && (a = await Mi(), !await _i(a))) {
1526
+ if (le && (a = await Mi(), !await bi(a))) {
1527
1527
  console.warn("Face capture - face not detected! Resetting capture.");
1528
1528
  return;
1529
1529
  }
@@ -1533,7 +1533,7 @@ function As(i, e, t) {
1533
1533
  const w = a.toDataURL("image/jpeg").split(",");
1534
1534
  h(Le, ce = w[0], ce), h(me, R = w[1], R), h(Pe, T = w[1], T);
1535
1535
  let O, P;
1536
- if (!bi(Ie))
1536
+ if (!gi(Ie))
1537
1537
  throw new Error("FACE_TOO_SMALL");
1538
1538
  ({ bodyParts: O, icaoWarnings: P } = await tt(R, fe)), window.dispatchEvent(new CustomEvent(
1539
1539
  "face-unconformities-validated",
@@ -1573,7 +1573,7 @@ function As(i, e, t) {
1573
1573
  } else
1574
1574
  h(ee, y = H.TEMPLATE_EXTRACTION_ERROR, y);
1575
1575
  else
1576
- w instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(w.message) ? (h(ee, y = H.LIVENESS_DETECTION_FAILURE, y), O = w.message, t(19, ie = Ee[O]), P = li()) : (h(ee, y = H.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, y), fe && He.fire({
1576
+ w instanceof Error && ["FACE_NOT_FOUND", "FACE_TOO_SMALL"].includes(w.message) ? (h(ee, y = H.LIVENESS_DETECTION_FAILURE, y), O = w.message, t(19, ie = Ee[O]), P = ri()) : (h(ee, y = H.UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE, y), fe && He.fire({
1577
1577
  icon: "error",
1578
1578
  title: "Falha ao comunicar com serviço de Liveness"
1579
1579
  }));
@@ -1608,10 +1608,10 @@ function As(i, e, t) {
1608
1608
  let w = "", O = "success";
1609
1609
  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 && (O = "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!`), A && He.fire({ icon: O, title: w });
1610
1610
  }
1611
- async function Pi(a, w, O) {
1611
+ async function Bi(a, w, O) {
1612
1612
  try {
1613
- const { stream: P, deviceId: N } = await gi(pt.width, pt.height, u, O);
1614
- h(ui, d = P, d), h(he, f = N || g[0].deviceId, f);
1613
+ const { stream: P, deviceId: N } = await vi(pt.width, pt.height, u, O);
1614
+ h(fi, d = P, d), h(he, f = N || g[0].deviceId, f);
1615
1615
  } catch (P) {
1616
1616
  const N = P, G = Re(P) && P.constraint ? P.constraint : "";
1617
1617
  console.error(N.message, G), Re(N) && "message" in N && N.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), h(Y, l = j.CAMERA_DENIED_ERROR, l)), Re(N) && "message" in N && N.message.includes("Requested device not found") && h(Y, l = j.DEVICE_NOT_FOUND_ERROR, l), (G.includes("width") || G.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${G})`), h(Y, l = j.CAMERA_UNSUPPORTED, l));
@@ -1620,18 +1620,18 @@ function As(i, e, t) {
1620
1620
  async function ze() {
1621
1621
  h(he, f = "", f), await pe();
1622
1622
  }
1623
- function Bi() {
1623
+ function Wi() {
1624
1624
  navigator.mediaDevices.ondevicechange = async (a) => {
1625
1625
  a.type == "devicechange" && (await Mt(), l !== j.OK ? await ze() : (!K() && !d.active || K() && !ne) && (at(Q), h(Y, l = j.DEVICE_NOT_FOUND_ERROR, l), t(17, ne = !0)));
1626
1626
  };
1627
1627
  }
1628
- async function Wi() {
1628
+ async function li() {
1629
1629
  h(Qe, n = !1, n);
1630
1630
  const a = (/* @__PURE__ */ new Date()).getTime();
1631
1631
  if (a - vt > 5e3) {
1632
1632
  vt = a;
1633
1633
  try {
1634
- const O = await Ma(D);
1634
+ const O = await Ua(D);
1635
1635
  if (O < 50) {
1636
1636
  h(we, F = "faceCollector.illuminationTooLow", F);
1637
1637
  return;
@@ -1644,7 +1644,7 @@ function As(i, e, t) {
1644
1644
  console.warn("An error occurred while getting the video lighting level: ", O);
1645
1645
  }
1646
1646
  try {
1647
- if (await Ua(D) < 4.5) {
1647
+ if (await Va(D) < 4.5) {
1648
1648
  h(we, F = "faceCollector.lowSharpness", F);
1649
1649
  return;
1650
1650
  }
@@ -1666,7 +1666,7 @@ function As(i, e, t) {
1666
1666
  1500
1667
1667
  ));
1668
1668
  }
1669
- function li() {
1669
+ function ri() {
1670
1670
  return [
1671
1671
  {
1672
1672
  bodyPart: "FACE",
@@ -1680,20 +1680,20 @@ function As(i, e, t) {
1680
1680
  async function Mi() {
1681
1681
  const a = D.width, w = D.height, O = pt.height, P = w / a * O, N = document.createElement("canvas"), G = N.getContext("2d");
1682
1682
  N.width = O, N.height = P;
1683
- const de = N.width / D.width, Fe = N.height / D.height, z = new Za({
1683
+ const de = N.width / D.width, Fe = N.height / D.height, z = new xa({
1684
1684
  x: p.x * de,
1685
1685
  y: p.y * Fe,
1686
1686
  width: p.width * de,
1687
1687
  height: p.height * Fe
1688
1688
  }), re = document.createElement("canvas");
1689
- re.width = z.width, re.height = z.height, re.getContext("2d")?.clearRect(0, 0, re.width, re.height), G && ks(G, D, N);
1690
- const [Je] = await (await import("./face_api_0e3ce8c8_3.0.0-RC03.js")).extractFaces(N, [z]);
1689
+ re.width = z.width, re.height = z.height, re.getContext("2d")?.clearRect(0, 0, re.width, re.height), G && As(G, D, N);
1690
+ const [Je] = await (await import("./face_api_0e3ce8c8_3.0.0-RC04.js")).extractFaces(N, [z]);
1691
1691
  return Je;
1692
1692
  }
1693
1693
  const Ui = Bt.subscribe((a) => {
1694
1694
  let w = "";
1695
1695
  if (a.isPersonCloseEnough ? a.isPersonTooclose ? w = "faceCollector.moveAwayCamera" : a.isPersonInFrame ? a.closedMouth || (w = "faceCollector.dontOpenMouth") : w = "faceCollector.stayInFrame" : w = "faceCollector.comeCloserCamera", n && Ia(w), !v && b && n && !Ae && a.isPersonInFrame && a.closedMouth && !(!a.isPersonCloseEnough || a.isPersonTooclose)) {
1696
- t(14, Ae = !0), ii = (/* @__PURE__ */ new Date()).getTime() + Os;
1696
+ t(14, Ae = !0), ii = (/* @__PURE__ */ new Date()).getTime() + Rs;
1697
1697
  const O = setInterval(
1698
1698
  async () => {
1699
1699
  if (!b || v || ye || K() && ne || !a.isPersonCloseEnough || a.isPersonTooclose || !a.closedMouth || !a.isPersonInFrame) {
@@ -1735,7 +1735,7 @@ function As(i, e, t) {
1735
1735
  }), Ki = St.subscribe(async (a) => {
1736
1736
  a === $e.Face && K() && !De && !v && Rt && await pe();
1737
1737
  }), qi = Ue.subscribe(async (a) => {
1738
- a && ri();
1738
+ a && ci();
1739
1739
  }), zi = Da.subscribe(async (a) => {
1740
1740
  if (g[0]?.deviceId) {
1741
1741
  if (at(), !_e() || K()) {
@@ -1748,25 +1748,25 @@ function As(i, e, t) {
1748
1748
  }), Ji = Fa.subscribe(async (a) => {
1749
1749
  !a.isSupported || !_e() || c != "FACE" || (je = a.orientation.includes("portrait"), je ? D && !r ? await ze() : h(Y, l = j.OK, l) : h(Y, l = j.CAMERA_ORIENTATION_PORTRAIT, l));
1750
1750
  });
1751
- async function ri() {
1751
+ async function ci() {
1752
1752
  let a;
1753
1753
  try {
1754
- if (kt >= Ts) {
1754
+ if (kt >= Os) {
1755
1755
  kt = 0;
1756
1756
  let w;
1757
- if (w = Qa(D, Xt), a = await w.withFaceLandmarks(), te.getContext("2d")?.clearRect(0, 0, te.width, te.height), a != null) {
1758
- const O = Ga(te, D, !0);
1757
+ if (w = Ga(D, Xt), a = await w.withFaceLandmarks(), te.getContext("2d")?.clearRect(0, 0, te.width, te.height), a != null) {
1758
+ const O = Ya(te, D, !0);
1759
1759
  Na(te, D, O);
1760
- const P = Ya(a, O);
1761
- Sa(P, te, wt), h(Qe, n = !0, n), t(15, gt = !0), vt = (/* @__PURE__ */ new Date()).getTime();
1760
+ const P = Za(a, O);
1761
+ Sa(P) ? (Pa(P, te, wt), h(Qe, n = !0, n), t(15, gt = !0), vt = (/* @__PURE__ */ new Date()).getTime()) : li();
1762
1762
  } else
1763
- Wi();
1763
+ li();
1764
1764
  } else
1765
1765
  kt++;
1766
1766
  } catch (w) {
1767
1767
  console.warn(`FaceapiLoop: ${w}`);
1768
1768
  } finally {
1769
- o && Be(D, ri);
1769
+ o && Be(D, ci);
1770
1770
  }
1771
1771
  }
1772
1772
  Lt.subscribe(async (a) => {
@@ -1777,7 +1777,7 @@ function As(i, e, t) {
1777
1777
  }), Qi = Ze.subscribe((a) => {
1778
1778
  a && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
1779
1779
  });
1780
- Pa(() => {
1780
+ Ba(() => {
1781
1781
  console.log("Destroying face collector"), at(Q), Vi(), Ui(), ji(), Hi(), Ki(), clearInterval(ti), qi(), zi(), Ji(), Xi(), Qi(), ti = 0;
1782
1782
  });
1783
1783
  function Gi(a) {
@@ -1881,7 +1881,7 @@ function As(i, e, t) {
1881
1881
  ca
1882
1882
  ];
1883
1883
  }
1884
- class Is extends Ut {
1884
+ class Ls extends Ut {
1885
1885
  constructor(e) {
1886
1886
  super(), Vt(
1887
1887
  this,
@@ -1890,8 +1890,8 @@ class Is extends Ut {
1890
1890
  props: Ht(this.attributes),
1891
1891
  customElement: !0
1892
1892
  },
1893
- As,
1894
- ys,
1893
+ Is,
1894
+ Ts,
1895
1895
  jt,
1896
1896
  {
1897
1897
  enableMinutiae: 41,
@@ -2029,7 +2029,7 @@ class Is extends Ut {
2029
2029
  return this.$$.ctx[10];
2030
2030
  }
2031
2031
  }
2032
- customElements.define("face-collector", Is);
2032
+ customElements.define("face-collector", Ls);
2033
2033
  export {
2034
- Is as default
2034
+ Ls as default
2035
2035
  };