bry-biometric-collector 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/{FaceCollector_2518984f_2.0.4.js → FaceCollector_f475af9f_2.0.5.js} +159 -159
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{face_api_ebd7fa48_2.0.4.js → face_api_0e3ce8c8_2.0.5.js} +12823 -12646
- package/dist/{fingersApi_ae9e2572_2.0.4.js → fingersApi_df7ac79b_2.0.5.js} +12 -12
- package/dist/index.js +1 -1
- package/dist/{main_14ce11df_2.0.4.js → main_bce0667c_2.0.5.js} +6994 -6788
- package/package.json +2 -2
- /package/dist/{en-us_5ebe727c_2.0.4.js → en-us_5ebe727c_2.0.5.js} +0 -0
- /package/dist/{index-no-detector_c7c1d3a2_2.0.4.js → index-no-detector_c7c1d3a2_2.0.5.js} +0 -0
- /package/dist/{pt-br_cb19a314_2.0.4.js → pt-br_cb19a314_2.0.5.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { w as yt, S as tl, r as ll, t as
|
1
|
+
import { w as yt, S as tl, r as ll, t as It, x as il, y as p, z as Me, B as h, C as G, D as o, E as w, G as A, H as $e, I as Nt, J as Z, K as L, L as We, M as u, N as se, O as _t, P as q, Q as Bl, R as Pt, T, U as St, V as W, W as sl, X as Ne, Y as al, Z as Fe, _ as At, a0 as gt, a1 as lt, a2 as vt, a3 as Ft, a4 as Je, a5 as Hl, $ as Ul, a6 as Vl, a7 as Re, a8 as Kl, a9 as Ge, aa as it, ab as wt, ac as kt, ad as xe, ae as jl, af as ql, ag as ot, ah as Ct, ai as zl, aj as nt, ak as Wt, al as Bt, am as Ht, an as Zl, ao as Et, ap as Ut, aq as Vt, ar as Ql, as as Xl, at as Jl, au as Gl, av as Yl, aw as k, ax as Kt, ay as jt, f as $l, az as ei, aA as rt, aB as J, aC as ct, aD as ut, A as qt, aE as Rt, aF as ft, aG as ti, aH as li, aI as ii, aJ as si, aK as Ye, aL as ai, aM as oi, aN as bt, aO as dt, aP as ol, l as Ot, aQ as ye, aR as Lt, aS as ni, aT as ri, aU as zt, aV as mt, aW as ci, aX as ui } from "./main_bce0667c_2.0.5.js";
|
2
2
|
var re = /* @__PURE__ */ ((l) => (l.OK = "OK", l.DEVICE_NOT_FOUND_ERROR = "DEVICE_NOT_FOUND_ERROR", l.CAMERA_DENIED_ERROR = "CAMERA_DENIED_ERROR", l.CAMERA_IN_USE_ERROR = "CAMERA_IN_USE_ERROR", l.CAMERA_CLOSED_ERROR = "CAMERA_CLOSED_ERROR", l))(re || {});
|
3
3
|
const Ke = yt(
|
4
4
|
"OK"
|
@@ -212,7 +212,7 @@ function bi(l) {
|
|
212
212
|
}
|
213
213
|
function hi(l, e, t) {
|
214
214
|
let s;
|
215
|
-
|
215
|
+
A(l, Ke, (f) => t(1, s = f));
|
216
216
|
let { handler: a = () => {
|
217
217
|
} } = e;
|
218
218
|
const c = () => {
|
@@ -247,7 +247,7 @@ class nl extends tl {
|
|
247
247
|
},
|
248
248
|
hi,
|
249
249
|
bi,
|
250
|
-
|
250
|
+
It,
|
251
251
|
{ handler: 0 },
|
252
252
|
null
|
253
253
|
), e && (e.target && p(e.target, this, e.anchor), e.props && (this.$set(e.props), Me()));
|
@@ -437,7 +437,7 @@ function Xt(l) {
|
|
437
437
|
function d(f, g) {
|
438
438
|
return (
|
439
439
|
/*$isLoading*/
|
440
|
-
f[33] ?
|
440
|
+
f[33] ? Oi : yi
|
441
441
|
);
|
442
442
|
}
|
443
443
|
let m = d(l), n = m(l);
|
@@ -478,7 +478,7 @@ function yi(l) {
|
|
478
478
|
}
|
479
479
|
};
|
480
480
|
}
|
481
|
-
function
|
481
|
+
function Oi(l) {
|
482
482
|
let e;
|
483
483
|
return {
|
484
484
|
c() {
|
@@ -498,7 +498,7 @@ function Jt(l) {
|
|
498
498
|
function d(f, g) {
|
499
499
|
return (
|
500
500
|
/*$isLoading*/
|
501
|
-
f[33] ?
|
501
|
+
f[33] ? Pi : Ii
|
502
502
|
);
|
503
503
|
}
|
504
504
|
let m = d(l), n = m(l);
|
@@ -517,7 +517,7 @@ function Jt(l) {
|
|
517
517
|
}
|
518
518
|
};
|
519
519
|
}
|
520
|
-
function
|
520
|
+
function Ii(l) {
|
521
521
|
let e, t = (
|
522
522
|
/*$_*/
|
523
523
|
l[20]("faceCollector.initiatingCamera") + ""
|
@@ -539,7 +539,7 @@ function Oi(l) {
|
|
539
539
|
}
|
540
540
|
};
|
541
541
|
}
|
542
|
-
function
|
542
|
+
function Pi(l) {
|
543
543
|
let e;
|
544
544
|
return {
|
545
545
|
c() {
|
@@ -554,7 +554,7 @@ function Ii(l) {
|
|
554
554
|
}
|
555
555
|
};
|
556
556
|
}
|
557
|
-
function
|
557
|
+
function Si(l) {
|
558
558
|
let e, t, s = (
|
559
559
|
/*$_*/
|
560
560
|
l[20]("faceCollector.finish") + ""
|
@@ -597,7 +597,7 @@ function Ai(l) {
|
|
597
597
|
}
|
598
598
|
};
|
599
599
|
}
|
600
|
-
function
|
600
|
+
function Ai(l) {
|
601
601
|
let e, t, s, a;
|
602
602
|
function c(n, f) {
|
603
603
|
return (
|
@@ -680,10 +680,10 @@ function xi(l) {
|
|
680
680
|
l[67]
|
681
681
|
) } }), {
|
682
682
|
c() {
|
683
|
-
|
683
|
+
Pt(e.$$.fragment);
|
684
684
|
},
|
685
685
|
m(s, a) {
|
686
|
-
|
686
|
+
St(e, s, a), t = !0;
|
687
687
|
},
|
688
688
|
p(s, a) {
|
689
689
|
const c = {};
|
@@ -698,7 +698,7 @@ function xi(l) {
|
|
698
698
|
Ne(e.$$.fragment, s), t = !1;
|
699
699
|
},
|
700
700
|
d(s) {
|
701
|
-
|
701
|
+
At(e, s);
|
702
702
|
}
|
703
703
|
};
|
704
704
|
}
|
@@ -750,9 +750,9 @@ function Mi(l) {
|
|
750
750
|
r[18] || !/*$showFaceWhileValidating*/
|
751
751
|
r[34] && /*$unconformitiesStore*/
|
752
752
|
r[23].isLoading)) && (t.hidden = a);
|
753
|
-
let
|
754
|
-
d = b(r), d ===
|
755
|
-
E[
|
753
|
+
let I = d;
|
754
|
+
d = b(r), d === I ? E[d].p(r, _) : (sl(), Ne(E[I], 1, 1, () => {
|
755
|
+
E[I] = null;
|
756
756
|
}), al(), m = E[d], m ? m.p(r, _) : (m = E[d] = g[d](r), m.c()), Fe(m, 1), m.m(e, null)), (!f || _[0] & /*$unconformitiesStore*/
|
757
757
|
8388608 | _[1] & /*$showFaceWhileValidating*/
|
758
758
|
8 && n !== (n = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (!/*$showFaceWhileValidating*/
|
@@ -777,7 +777,7 @@ function Ni(l) {
|
|
777
777
|
), a, c, d, m, n, f = (
|
778
778
|
/*$_*/
|
779
779
|
l[20]("faceCollector.retakePhoto") + ""
|
780
|
-
), g, E, b =
|
780
|
+
), g, E, b = Ot(ni).faceStrategy !== ri.DISABLED, r, _, I, O = (
|
781
781
|
/*$unconformitiesStore*/
|
782
782
|
l[23].unconformities.length !== 0 && Gt(l)
|
783
783
|
), R = b && Ui();
|
@@ -787,7 +787,7 @@ function Ni(l) {
|
|
787
787
|
l[35]);
|
788
788
|
},
|
789
789
|
m(C, U) {
|
790
|
-
p(C, e, U), u(e, t), u(t, a), u(e, c), O && O.m(e, null), u(e, d), u(e, m), u(m, n), u(n, g), u(m, E), R && R.m(m, null), r = !0, _ || (
|
790
|
+
p(C, e, U), u(e, t), u(t, a), u(e, c), O && O.m(e, null), u(e, d), u(e, m), u(m, n), u(n, g), u(m, E), R && R.m(m, null), r = !0, _ || (I = se(
|
791
791
|
n,
|
792
792
|
"click",
|
793
793
|
/*click_handler_7*/
|
@@ -811,7 +811,7 @@ function Ni(l) {
|
|
811
811
|
Ne(R), r = !1;
|
812
812
|
},
|
813
813
|
d(C) {
|
814
|
-
C && w(e), O && O.d(), R && R.d(), _ = !1,
|
814
|
+
C && w(e), O && O.d(), R && R.d(), _ = !1, I();
|
815
815
|
}
|
816
816
|
};
|
817
817
|
}
|
@@ -822,15 +822,15 @@ function Fi(l) {
|
|
822
822
|
), a, c, d, m, n, f, g, E = (
|
823
823
|
/*$_*/
|
824
824
|
l[20]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
|
825
|
-
), b, r, _,
|
825
|
+
), b, r, _, I, O, R, C, U, _e = (
|
826
826
|
/*$_*/
|
827
827
|
l[20]("faceCollector.thisInformationIsRequired") + ""
|
828
|
-
), ce, Q, ae, j,
|
828
|
+
), ce, Q, ae, j, Ie, ue = (
|
829
829
|
/*$unconformitiesStore*/
|
830
830
|
l[23].unconformities
|
831
|
-
),
|
831
|
+
), N = [];
|
832
832
|
for (let D = 0; D < ue.length; D += 1)
|
833
|
-
|
833
|
+
N[D] = Yt(Zt(l, ue, D));
|
834
834
|
let V = (
|
835
835
|
/*$captured*/
|
836
836
|
l[18] && $t(l)
|
@@ -838,20 +838,20 @@ function Fi(l) {
|
|
838
838
|
return {
|
839
839
|
c() {
|
840
840
|
e = h("div"), t = h("h1"), a = T(s), c = L(), d = h("div");
|
841
|
-
for (let D = 0; D <
|
842
|
-
|
843
|
-
m = L(), n = h("div"), f = h("label"), g = h("span"), b = T(E), r = L(), _ = h("textarea"), O = L(), R = h("label"), C = h("span"), U = T("("), ce = T(_e), Q = T(")"), ae = L(), V && V.c(), o(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), o(d, "class", "flex flex-wrap"), o(g, "class", "ce-dui-label-text text-base"), o(f, "class", "ce-dui-label"), o(f, "for", "justification"), o(_, "contenteditable", ""), o(_, "id", "justification"), o(_, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), o(_, "placeholder",
|
841
|
+
for (let D = 0; D < N.length; D += 1)
|
842
|
+
N[D].c();
|
843
|
+
m = L(), n = h("div"), f = h("label"), g = h("span"), b = T(E), r = L(), _ = h("textarea"), O = L(), R = h("label"), C = h("span"), U = T("("), ce = T(_e), Q = T(")"), ae = L(), V && V.c(), o(t, "class", "text-3xl font-bold pb-[1em] transition-opacity"), o(d, "class", "flex flex-wrap"), o(g, "class", "ce-dui-label-text text-base"), o(f, "class", "ce-dui-label"), o(f, "for", "justification"), o(_, "contenteditable", ""), o(_, "id", "justification"), o(_, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), o(_, "placeholder", I = /*$_*/
|
844
844
|
l[20]("faceCollector.yourJustification")), o(C, "class", "ce-dui-label-text-alt text-base"), o(R, "class", "ce-dui-label"), o(R, "for", "justification"), o(n, "class", "ce-dui-form-control mt-[2.5em]");
|
845
845
|
},
|
846
846
|
m(D, te) {
|
847
847
|
p(D, e, te), u(e, t), u(t, a), u(e, c), u(e, d);
|
848
|
-
for (let x = 0; x <
|
849
|
-
|
848
|
+
for (let x = 0; x < N.length; x += 1)
|
849
|
+
N[x] && N[x].m(d, null);
|
850
850
|
u(e, m), u(e, n), u(n, f), u(f, g), u(g, b), u(n, r), u(n, _), mt(
|
851
851
|
_,
|
852
852
|
/*$justification*/
|
853
853
|
l[25]
|
854
|
-
), u(n, O), u(n, R), u(R, C), u(C, U), u(C, ce), u(C, Q), u(e, ae), V && V.m(e, null), j || (
|
854
|
+
), u(n, O), u(n, R), u(R, C), u(C, U), u(C, ce), u(C, Q), u(e, ae), V && V.m(e, null), j || (Ie = se(
|
855
855
|
_,
|
856
856
|
"input",
|
857
857
|
/*textarea_input_handler*/
|
@@ -868,17 +868,17 @@ function Fi(l) {
|
|
868
868
|
let x;
|
869
869
|
for (x = 0; x < ue.length; x += 1) {
|
870
870
|
const be = Zt(D, ue, x);
|
871
|
-
|
871
|
+
N[x] ? N[x].p(be, te) : (N[x] = Yt(be), N[x].c(), N[x].m(d, null));
|
872
872
|
}
|
873
|
-
for (; x <
|
874
|
-
|
875
|
-
|
873
|
+
for (; x < N.length; x += 1)
|
874
|
+
N[x].d(1);
|
875
|
+
N.length = ue.length;
|
876
876
|
}
|
877
877
|
te[0] & /*$_*/
|
878
878
|
1048576 && E !== (E = /*$_*/
|
879
879
|
D[20]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && W(b, E), te[0] & /*$_*/
|
880
|
-
1048576 &&
|
881
|
-
D[20]("faceCollector.yourJustification")) && o(_, "placeholder",
|
880
|
+
1048576 && I !== (I = /*$_*/
|
881
|
+
D[20]("faceCollector.yourJustification")) && o(_, "placeholder", I), te[0] & /*$justification*/
|
882
882
|
33554432 && mt(
|
883
883
|
_,
|
884
884
|
/*$justification*/
|
@@ -891,7 +891,7 @@ function Fi(l) {
|
|
891
891
|
i: G,
|
892
892
|
o: G,
|
893
893
|
d(D) {
|
894
|
-
D && w(e), ci(
|
894
|
+
D && w(e), ci(N, D), V && V.d(), j = !1, Ie();
|
895
895
|
}
|
896
896
|
};
|
897
897
|
}
|
@@ -918,7 +918,7 @@ function Wi(l) {
|
|
918
918
|
)
|
919
919
|
));
|
920
920
|
}
|
921
|
-
let
|
921
|
+
let I = _(l, [-1, -1, -1, -1]), O = I(l);
|
922
922
|
return {
|
923
923
|
c() {
|
924
924
|
e = h("div"), O.c(), s = L(), a = h("div"), c = h("button"), m = T(d), n = L(), f = h("button"), E = T(g), c.disabled = !0, o(c, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), o(f, "id", "bry-cc-retake-button"), o(f, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), o(a, "class", "ce-dui-btn-group flex"), o(e, "class", "flex flex-col justify-between");
|
@@ -940,7 +940,7 @@ function Wi(l) {
|
|
940
940
|
], b = !0);
|
941
941
|
},
|
942
942
|
p(R, C) {
|
943
|
-
|
943
|
+
I === (I = _(R, C)) && O ? O.p(R, C) : (O.d(1), O = I(R), O && (O.c(), O.m(e, s))), C[0] & /*$_*/
|
944
944
|
1048576 && d !== (d = /*$_*/
|
945
945
|
R[20]("faceCollector.finish") + "") && W(m, d), C[0] & /*$_*/
|
946
946
|
1048576 && g !== (g = /*$_*/
|
@@ -1036,10 +1036,10 @@ function Ui(l) {
|
|
1036
1036
|
props: { cssClass: "ce-dui-btn-block flex-shrink" }
|
1037
1037
|
}), {
|
1038
1038
|
c() {
|
1039
|
-
|
1039
|
+
Pt(e.$$.fragment);
|
1040
1040
|
},
|
1041
1041
|
m(s, a) {
|
1042
|
-
|
1042
|
+
St(e, s, a), t = !0;
|
1043
1043
|
},
|
1044
1044
|
i(s) {
|
1045
1045
|
t || (Fe(e.$$.fragment, s), t = !0);
|
@@ -1048,7 +1048,7 @@ function Ui(l) {
|
|
1048
1048
|
Ne(e.$$.fragment, s), t = !1;
|
1049
1049
|
},
|
1050
1050
|
d(s) {
|
1051
|
-
|
1051
|
+
At(e, s);
|
1052
1052
|
}
|
1053
1053
|
};
|
1054
1054
|
}
|
@@ -1247,11 +1247,11 @@ function Zi(l) {
|
|
1247
1247
|
let e, t, s, a, c = q(), d, m = (
|
1248
1248
|
/*unique*/
|
1249
1249
|
l[10]
|
1250
|
-
), n, f, g, E, b, r, _,
|
1250
|
+
), n, f, g, E, b, r, _, I, O, R, C = (
|
1251
1251
|
/*$_*/
|
1252
1252
|
l[20]("faceCollector.capturing") + ""
|
1253
|
-
), U, _e, ce, Q, ae, j,
|
1254
|
-
l[16], le,
|
1253
|
+
), U, _e, ce, Q, ae, j, Ie, ue, N, V, D, te, x, be, et, Be, He, tt, P = q() && /*waitingIdrndCaptureEvent*/
|
1254
|
+
l[16], le, Pe = q() && /*idrndLoading*/
|
1255
1255
|
l[14] && /*$cameraStatusStore*/
|
1256
1256
|
l[30] === re.OK, Y, z, fe, we, H, $, he, ke = c && pi(l), pe = Qt(l);
|
1257
1257
|
f = new Bl({ props: { className: "bottom-0" } });
|
@@ -1260,14 +1260,14 @@ function Zi(l) {
|
|
1260
1260
|
v[32].isPersonCloseEnough || /*$faceValidationsStore*/
|
1261
1261
|
v[32].isPersonTooclose ? vi : gi;
|
1262
1262
|
}
|
1263
|
-
let
|
1264
|
-
function
|
1263
|
+
let Se = je(l), de = Se(l);
|
1264
|
+
function Ae(v, F) {
|
1265
1265
|
return (
|
1266
1266
|
/*$faceValidationsStore*/
|
1267
1267
|
v[32].closedMouth ? ki : wi
|
1268
1268
|
);
|
1269
1269
|
}
|
1270
|
-
let X =
|
1270
|
+
let X = Ae(l), ie = X(l);
|
1271
1271
|
function K(v, F) {
|
1272
1272
|
return (
|
1273
1273
|
/*$isLoading*/
|
@@ -1281,16 +1281,16 @@ function Zi(l) {
|
|
1281
1281
|
v[32].isPersonInFrame ? Li : Ri
|
1282
1282
|
);
|
1283
1283
|
}
|
1284
|
-
let Ce = Ue(l), me = Ce(l), ee =
|
1284
|
+
let Ce = Ue(l), me = Ce(l), ee = P && Xt(l), B = Pe && Jt(l);
|
1285
1285
|
function qe(v, F) {
|
1286
1286
|
return (
|
1287
1287
|
/*$captured*/
|
1288
|
-
v[18] ?
|
1288
|
+
v[18] ? Si : Ai
|
1289
1289
|
);
|
1290
1290
|
}
|
1291
1291
|
let Te = qe(l), ne = Te(l);
|
1292
1292
|
const ze = [Mi, xi], Le = [];
|
1293
|
-
function
|
1293
|
+
function Oe(v, F) {
|
1294
1294
|
return !/*idrndClosed*/
|
1295
1295
|
v[15] || /*$captured*/
|
1296
1296
|
v[18] ? 0 : (
|
@@ -1298,10 +1298,10 @@ function Zi(l) {
|
|
1298
1298
|
v[30] !== re.OK ? 1 : -1
|
1299
1299
|
);
|
1300
1300
|
}
|
1301
|
-
return ~(H =
|
1301
|
+
return ~(H = Oe(l)) && ($ = Le[H] = ze[H](l)), {
|
1302
1302
|
c() {
|
1303
|
-
e = h("div"), t = h("div"), s = h("div"), a = h("div"), ke && ke.c(), d = L(), pe.c(), n = L(),
|
1304
|
-
l[9], o(R, "class", "absolute left-1/2 -translate-x-1/2 top-[85%] text-[1.5rem] bg-info text-info-content p-1 rounded-md"), o(ae, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-2xs sm:text-base w-[10.1em]"), o(
|
1303
|
+
e = h("div"), t = h("div"), s = h("div"), a = h("div"), ke && ke.c(), d = L(), pe.c(), n = L(), Pt(f.$$.fragment), g = L(), E = h("canvas"), b = L(), r = h("canvas"), _ = L(), I = h("canvas"), O = L(), R = h("span"), U = T(C), ce = L(), Q = h("div"), ae = h("div"), j = h("span"), j.textContent = "Longe", Ie = L(), de.c(), ue = L(), N = h("div"), V = h("span"), V.textContent = "Boca Aberta", D = L(), ie.c(), te = L(), x = h("div"), be = h("span"), oe.c(), et = L(), me.c(), tt = L(), ee && ee.c(), le = L(), B && B.c(), Y = L(), z = h("div"), ne.c(), we = L(), $ && $.c(), this.c = G, o(E, "id", "bry-ce-displayCanvas"), o(E, "class", "max-w-full -scale-x-100"), o(r, "id", "bry-ce-detectionsCanvas"), o(r, "class", "absolute top-0 left-0 max-w-full -scale-x-100"), o(I, "id", "bry-ce-maskCanvas"), o(I, "class", "absolute top-0 left-0 max-w-full"), R.hidden = _e = !/*isCountingDown*/
|
1304
|
+
l[9], o(R, "class", "absolute left-1/2 -translate-x-1/2 top-[85%] text-[1.5rem] bg-info text-info-content p-1 rounded-md"), o(ae, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-2xs sm:text-base w-[10.1em]"), o(N, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-[.1em] 2xs:text-2xs sm:text-base w-[9.6em]"), o(x, "class", "ce-dui-badge ce-dui-badge-lg h-[2em] text-2xs sm:text-base w-[10em]"), o(Q, "class", Be = "absolute " + /*$enableFaceApi*/
|
1305
1305
|
(l[28] ? "flex" : "hidden") + " justify-around w-full top-[5%]"), o(a, "class", "relative"), a.hidden = He = q() && /*idrndLoading*/
|
1306
1306
|
(l[14] || /*idrndClosed*/
|
1307
1307
|
l[15] || /*waitingIdrndCaptureEvent*/
|
@@ -1311,33 +1311,33 @@ function Zi(l) {
|
|
1311
1311
|
l[16]), o(s, "class", "relative mx-auto"), o(t, "class", "flex flex-col justify-between");
|
1312
1312
|
},
|
1313
1313
|
m(v, F) {
|
1314
|
-
p(v, e, F), u(e, t), u(t, s), u(s, a), ke && ke.m(a, null), u(a, d), pe.m(a, null), u(a, n),
|
1314
|
+
p(v, e, F), u(e, t), u(t, s), u(s, a), ke && ke.m(a, null), u(a, d), pe.m(a, null), u(a, n), St(f, a, null), u(a, g), u(a, E), l[49](E), u(a, b), u(a, r), l[50](r), u(a, _), u(a, I), l[51](I), u(a, O), u(a, R), u(R, U), l[52](R), u(a, ce), u(a, Q), u(Q, ae), u(ae, j), u(ae, Ie), de.m(ae, null), l[53](ae), u(Q, ue), u(Q, N), u(N, V), u(N, D), ie.m(N, null), l[54](N), u(Q, te), u(Q, x), u(x, be), oe.m(be, null), u(x, et), me.m(x, null), l[55](x), u(s, tt), ee && ee.m(s, null), u(s, le), B && B.m(s, null), u(s, Y), u(s, z), ne.m(z, null), l[59](t), u(e, we), ~H && Le[H].m(e, null), he = !0;
|
1315
1315
|
},
|
1316
1316
|
p(v, F) {
|
1317
1317
|
c && ke.p(v, F), F[0] & /*unique*/
|
1318
|
-
1024 &&
|
1318
|
+
1024 && It(m, m = /*unique*/
|
1319
1319
|
v[10]) ? (pe.d(1), pe = Qt(v), pe.c(), pe.m(a, n)) : pe.p(v, F), (!he || F[0] & /*$_*/
|
1320
1320
|
1048576) && C !== (C = /*$_*/
|
1321
1321
|
v[20]("faceCollector.capturing") + "") && W(U, C), (!he || F[0] & /*isCountingDown*/
|
1322
1322
|
512 && _e !== (_e = !/*isCountingDown*/
|
1323
|
-
v[9])) && (R.hidden = _e),
|
1323
|
+
v[9])) && (R.hidden = _e), Se !== (Se = je(v)) && (de.d(1), de = Se(v), de && (de.c(), de.m(ae, null))), X !== (X = Ae(v)) && (ie.d(1), ie = X(v), ie && (ie.c(), ie.m(N, null))), ge === (ge = K(v)) && oe ? oe.p(v, F) : (oe.d(1), oe = ge(v), oe && (oe.c(), oe.m(be, null))), Ce !== (Ce = Ue(v)) && (me.d(1), me = Ce(v), me && (me.c(), me.m(x, null))), (!he || F[0] & /*$enableFaceApi*/
|
1324
1324
|
268435456 && Be !== (Be = "absolute " + /*$enableFaceApi*/
|
1325
1325
|
(v[28] ? "flex" : "hidden") + " justify-around w-full top-[5%]")) && o(Q, "class", Be), (!he || F[0] & /*idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
1326
1326
|
114688 && He !== (He = q() && /*idrndLoading*/
|
1327
1327
|
(v[14] || /*idrndClosed*/
|
1328
1328
|
v[15] || /*waitingIdrndCaptureEvent*/
|
1329
1329
|
v[16]))) && (a.hidden = He), F[0] & /*waitingIdrndCaptureEvent*/
|
1330
|
-
65536 && (
|
1331
|
-
v[16]),
|
1332
|
-
1073758208 && (
|
1330
|
+
65536 && (P = q() && /*waitingIdrndCaptureEvent*/
|
1331
|
+
v[16]), P ? ee ? ee.p(v, F) : (ee = Xt(v), ee.c(), ee.m(s, le)) : ee && (ee.d(1), ee = null), F[0] & /*idrndLoading, $cameraStatusStore*/
|
1332
|
+
1073758208 && (Pe = q() && /*idrndLoading*/
|
1333
1333
|
v[14] && /*$cameraStatusStore*/
|
1334
|
-
v[30] === re.OK),
|
1334
|
+
v[30] === re.OK), Pe ? B ? B.p(v, F) : (B = Jt(v), B.c(), B.m(s, Y)) : B && (B.d(1), B = null), Te === (Te = qe(v)) && ne ? ne.p(v, F) : (ne.d(1), ne = Te(v), ne && (ne.c(), ne.m(z, null))), (!he || F[0] & /*idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
|
1335
1335
|
114688 && fe !== (fe = q() && /*idrndLoading*/
|
1336
1336
|
(v[14] || /*idrndClosed*/
|
1337
1337
|
v[15] || /*waitingIdrndCaptureEvent*/
|
1338
1338
|
v[16]))) && (z.hidden = fe);
|
1339
1339
|
let De = H;
|
1340
|
-
H =
|
1340
|
+
H = Oe(v), H === De ? ~H && Le[H].p(v, F) : ($ && (sl(), Ne(Le[De], 1, 1, () => {
|
1341
1341
|
Le[De] = null;
|
1342
1342
|
}), al()), ~H ? ($ = Le[H], $ ? $.p(v, F) : ($ = Le[H] = ze[H](v), $.c()), Fe($, 1), $.m(e, null)) : $ = null);
|
1343
1343
|
},
|
@@ -1348,7 +1348,7 @@ function Zi(l) {
|
|
1348
1348
|
Ne(f.$$.fragment, v), Ne($), he = !1;
|
1349
1349
|
},
|
1350
1350
|
d(v) {
|
1351
|
-
v && w(e), ke && ke.d(), pe.d(v),
|
1351
|
+
v && w(e), ke && ke.d(), pe.d(v), At(f), l[49](null), l[50](null), l[51](null), l[52](null), de.d(), l[53](null), ie.d(), l[54](null), oe.d(), me.d(), l[55](null), ee && ee.d(), B && B.d(), ne.d(), l[59](null), ~H && Le[H].d();
|
1352
1352
|
}
|
1353
1353
|
};
|
1354
1354
|
}
|
@@ -1367,13 +1367,13 @@ function el(l, e, t) {
|
|
1367
1367
|
);
|
1368
1368
|
}
|
1369
1369
|
function Qi(l, e, t) {
|
1370
|
-
let s, a, c, d, m, n, f, g, E, b, r, _,
|
1371
|
-
|
1372
|
-
let
|
1370
|
+
let s, a, c, d, m, n, f, g, E, b, r, _, I, O, R, C, U, _e, ce, Q, ae, j, Ie, ue, N, V, D, te, x, be, et, Be, He, tt;
|
1371
|
+
A(l, gt, (i) => t(73, s = i)), A(l, lt, (i) => t(18, c = i)), A(l, vt, (i) => t(75, d = i)), A(l, Ft, (i) => t(76, m = i)), A(l, Je, (i) => t(19, n = i)), A(l, Hl, (i) => t(77, f = i)), A(l, Ul, (i) => t(20, g = i)), A(l, Vl, (i) => t(78, E = i)), A(l, Re, (i) => t(21, b = i)), A(l, Kl, (i) => t(22, r = i)), A(l, Ge, (i) => t(23, _ = i)), A(l, it, (i) => t(79, I = i)), A(l, wt, (i) => t(24, O = i)), A(l, kt, (i) => t(25, R = i)), A(l, xe, (i) => t(26, C = i)), A(l, jl, (i) => t(80, _e = i)), A(l, ql, (i) => t(28, ce = i)), A(l, ot, (i) => t(29, Q = i)), A(l, Ct, (i) => t(81, ae = i)), A(l, Ke, (i) => t(30, j = i)), A(l, zl, (i) => t(82, Ie = i)), A(l, nt, (i) => t(83, ue = i)), A(l, Wt, (i) => t(84, N = i)), A(l, Bt, (i) => t(85, V = i)), A(l, Ht, (i) => t(86, D = i)), A(l, Zl, (i) => t(87, te = i)), A(l, Et, (i) => t(88, x = i)), A(l, Ut, (i) => t(31, be = i)), A(l, Vt, (i) => t(32, et = i)), A(l, Ql, (i) => t(33, Be = i)), A(l, Xl, (i) => t(34, He = i)), A(l, Jl, (i) => t(35, tt = i));
|
1372
|
+
let P, le, Pe, Y, z, fe, we, H = !1, $ = {}, he = !1, { enableMinutiae: ke } = e, { videoDimensions: pe } = e, { noTabs: je } = e, { weightsPath: Se } = e;
|
1373
1373
|
const de = yt(!1);
|
1374
|
-
|
1375
|
-
const
|
1376
|
-
|
1374
|
+
A(l, de, (i) => t(74, a = i));
|
1375
|
+
const Ae = yt("data:image/png;base64");
|
1376
|
+
A(l, Ae, (i) => t(27, U = i));
|
1377
1377
|
let { widgetInstance: X } = e, ie, K, ge = !1, oe = !1, Ue = !0, Ce = !1, me = !1, ee = 0, B = "", qe = 0, Te = !1;
|
1378
1378
|
const ne = Gl.mixin({
|
1379
1379
|
toast: !0,
|
@@ -1383,70 +1383,70 @@ function Qi(l, e, t) {
|
|
1383
1383
|
});
|
1384
1384
|
Yl(async () => {
|
1385
1385
|
k(ot, Q = !1, Q), k(Ut, be = !1, be);
|
1386
|
-
const [i,
|
1387
|
-
if (!(!i || !
|
1388
|
-
if (
|
1386
|
+
const [i, y] = (pe ?? "")?.replaceAll(" ", "")?.split("x")?.map((S) => S ? parseInt(S) : void 0);
|
1387
|
+
if (!(!i || !y)) {
|
1388
|
+
if (y > i && !q() && Kt() ? k(Je, n = { videoWidth: y, videoHeight: i }, n) : q() && y < i && Kt() ? k(Je, n = { videoWidth: y, videoHeight: i }, n) : k(Je, n = { videoWidth: i, videoHeight: y }, n), !q())
|
1389
1389
|
try {
|
1390
1390
|
await jt(), (await navigator.mediaDevices.getUserMedia({
|
1391
1391
|
video: {
|
1392
|
-
height: { exact:
|
1392
|
+
height: { exact: y },
|
1393
1393
|
width: { exact: i }
|
1394
1394
|
},
|
1395
1395
|
audio: !1
|
1396
|
-
}))?.getTracks()?.forEach((
|
1397
|
-
} catch (
|
1398
|
-
const
|
1399
|
-
console.error(
|
1396
|
+
}))?.getTracks()?.forEach((M) => M?.stop()), k(Et, x = te[0].deviceId, x);
|
1397
|
+
} catch (S) {
|
1398
|
+
const M = S;
|
1399
|
+
console.error(M), $l(M) && "message" in M && M.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), k(Ht, D = !0, D));
|
1400
1400
|
}
|
1401
|
-
q() && (import("./index-no-detector_c7c1d3a2_2.0.
|
1401
|
+
q() && (import("./index-no-detector_c7c1d3a2_2.0.5.js"), Le()), ce && (await ei(Se), he = !0), q() && !oe && N && Oe();
|
1402
1402
|
}
|
1403
1403
|
});
|
1404
|
-
function ze(i,
|
1404
|
+
function ze(i, y) {
|
1405
1405
|
i.clearRect(0, 0, K.width, K.height), i.save(), i.filter = "blur(7px)", i.beginPath(), i.rect(0, 0, K.width, K.height);
|
1406
|
-
let
|
1407
|
-
n.videoWidth > n.videoHeight ?
|
1408
|
-
const
|
1409
|
-
i.ellipse(n.videoWidth / 2, n.videoHeight / 2,
|
1406
|
+
let S = 200;
|
1407
|
+
n.videoWidth > n.videoHeight ? S = 1.1 * (100 * n.videoWidth) / n.videoHeight * 1.1 : S = 1.1 * (100 * n.videoHeight * 1.1) / n.videoWidth;
|
1408
|
+
const M = S * 1.45;
|
1409
|
+
i.ellipse(n.videoWidth / 2, n.videoHeight / 2, S / 2, M / 2, 0, 0, 2 * Math.PI, !0), i.clip(), el(i, y, K), i.restore(), i.save(), i.beginPath();
|
1410
1410
|
const ve = window.getComputedStyle(K).getPropertyValue("--p"), Qe = window.getComputedStyle(K).getPropertyValue("--su");
|
1411
|
-
if (i.strokeStyle = `hsl(${ve})`, i.lineWidth = 16, i.ellipse(n.videoWidth / 2, n.videoHeight / 2,
|
1411
|
+
if (i.strokeStyle = `hsl(${ve})`, i.lineWidth = 16, i.ellipse(n.videoWidth / 2, n.videoHeight / 2, S / 2, M / 2, 0, 0, 2 * Math.PI), i.stroke(), H && !Te) {
|
1412
1412
|
const st = 1 - (qe - (/* @__PURE__ */ new Date()).getTime()) / 4500;
|
1413
|
-
i.save(), i.beginPath(), i.lineWidth = 16, i.strokeStyle = `hsl(${Qe})`, i.ellipse(n.videoWidth / 2, n.videoHeight / 2,
|
1413
|
+
i.save(), i.beginPath(), i.lineWidth = 16, i.strokeStyle = `hsl(${Qe})`, i.ellipse(n.videoWidth / 2, n.videoHeight / 2, S / 2, M / 2, 0, 0 - Math.PI / 2, 1.25 * (Math.PI * 2 * st) - Math.PI / 2), i.stroke();
|
1414
1414
|
}
|
1415
1415
|
i.beginPath();
|
1416
1416
|
const Xe = new Path2D();
|
1417
|
-
Xe.ellipse(n.videoWidth / 2, n.videoHeight / 2,
|
1417
|
+
Xe.ellipse(n.videoWidth / 2, n.videoHeight / 2, S / 2, M / 2, 0, 0, 2 * Math.PI), i.clip(Xe), el(i, y, K), i.restore();
|
1418
1418
|
}
|
1419
1419
|
function Le() {
|
1420
1420
|
X.addEventListener("open", (i) => {
|
1421
|
-
const
|
1421
|
+
const y = i.detail[0].video;
|
1422
1422
|
k(
|
1423
1423
|
Bt,
|
1424
1424
|
V = {
|
1425
|
-
width:
|
1426
|
-
height:
|
1425
|
+
width: y.videoWidth,
|
1426
|
+
height: y.videoHeight
|
1427
1427
|
},
|
1428
1428
|
V
|
1429
|
-
), t(2,
|
1430
|
-
function
|
1431
|
-
Ce || (ze(K.getContext("2d"),
|
1429
|
+
), t(2, P.srcObject = y.srcObject, P), t(14, Ue = !1);
|
1430
|
+
function S() {
|
1431
|
+
Ce || (ze(K.getContext("2d"), y), Ye(P, S, !0));
|
1432
1432
|
}
|
1433
|
-
|
1433
|
+
S();
|
1434
1434
|
}), X.addEventListener("error", (i) => {
|
1435
1435
|
console.error(i), i.detail[0].message === "Device in use" ? k(Ke, j = re.CAMERA_IN_USE_ERROR, j) : i.detail[0].message === "Permission denied" || i.detail[0].message === "Permission dismissed" ? k(Ke, j = re.CAMERA_DENIED_ERROR, j) : i.detail[0].message === "Requested device not found" && k(Ke, j = re.DEVICE_NOT_FOUND_ERROR, j), t(14, Ue = !1);
|
1436
1436
|
}), X.addEventListener("faceDetection", (i) => {
|
1437
1437
|
}), X.addEventListener("close", async (i) => {
|
1438
1438
|
c || t(13, ge = !1), t(15, Ce = !0), t(16, me = !1), j === re.OK && k(Ke, j = re.CAMERA_CLOSED_ERROR, j);
|
1439
1439
|
}), X.addEventListener("initialize", async (i) => {
|
1440
|
-
oe = !0, k(Wt,
|
1440
|
+
oe = !0, k(Wt, N = !0, N), ae === rt.Face && !ge && !c && oe && await Oe();
|
1441
1441
|
}), X.addEventListener("capture", async (i) => {
|
1442
1442
|
t(17, B = "");
|
1443
|
-
const { encryptedFile:
|
1444
|
-
k(nt, ue =
|
1445
|
-
const
|
1446
|
-
if (k(
|
1443
|
+
const { encryptedFile: y, photo: S } = i.detail[0];
|
1444
|
+
k(nt, ue = y, ue), t(16, me = !1), k(Re, b = J.OK, b), k(Ge, _.isLoading = !0, _), k(lt, c = !0, c), t(13, ge = !1);
|
1445
|
+
const M = (await ct(S)).split(",");
|
1446
|
+
if (k(Ae, U = M[0], U), k(xe, C = M[1], C), k(it, I = M[1], I), !Ie) {
|
1447
1447
|
let Ee, ht;
|
1448
1448
|
try {
|
1449
|
-
({ bodyParts: Ee, icaoWarnings: ht } = await ut(
|
1449
|
+
({ bodyParts: Ee, icaoWarnings: ht } = await ut(I, (await ct(y)).split(",")[1])), window.dispatchEvent(new CustomEvent(
|
1450
1450
|
"face-unconformities-validated",
|
1451
1451
|
{
|
1452
1452
|
detail: {
|
@@ -1494,7 +1494,7 @@ function Qi(l, e, t) {
|
|
1494
1494
|
}
|
1495
1495
|
let ve, Qe;
|
1496
1496
|
try {
|
1497
|
-
Qe = await ti(
|
1497
|
+
Qe = await ti(y), Tt(Qe.data);
|
1498
1498
|
} catch (Ee) {
|
1499
1499
|
k(Re, b = J.UNKNOWN_LIVENESS_ERROR, b), console.error(Ee), Ee instanceof qt && Ee.response?.status === 400 ? (ve = Ee.response.data.error_code, t(17, B = Rt[ve]), console.error("Liveness error:", ve), k(Re, b = J.LIVENESS_DETECTION_FAILURE, b)) : ne.fire({
|
1500
1500
|
icon: "error",
|
@@ -1509,8 +1509,8 @@ function Qi(l, e, t) {
|
|
1509
1509
|
bodyParts: [
|
1510
1510
|
{
|
1511
1511
|
bodyPart: "FACE",
|
1512
|
-
data:
|
1513
|
-
livenessBlob: (await ct(
|
1512
|
+
data: I,
|
1513
|
+
livenessBlob: (await ct(y)).split(",")[1],
|
1514
1514
|
...Qe && { livenessResult: Qe }
|
1515
1515
|
}
|
1516
1516
|
],
|
@@ -1522,7 +1522,7 @@ function Qi(l, e, t) {
|
|
1522
1522
|
));
|
1523
1523
|
return;
|
1524
1524
|
}
|
1525
|
-
let { bodyParts: Xe, icaoWarnings: st } = await ut(
|
1525
|
+
let { bodyParts: Xe, icaoWarnings: st } = await ut(I);
|
1526
1526
|
window.dispatchEvent(new CustomEvent(
|
1527
1527
|
"face-unconformities-validated",
|
1528
1528
|
{
|
@@ -1537,16 +1537,16 @@ function Qi(l, e, t) {
|
|
1537
1537
|
)), Xe[0].data && k(xe, C = Xe[0].data, C), ft(st);
|
1538
1538
|
});
|
1539
1539
|
}
|
1540
|
-
function
|
1540
|
+
function Oe() {
|
1541
1541
|
k(Ke, j = re.OK, j), X && "openCamera" in X && X.openCamera(), t(13, ge = !0), t(15, Ce = !1), t(14, Ue = !0);
|
1542
1542
|
}
|
1543
1543
|
async function v() {
|
1544
1544
|
if (ce && !he)
|
1545
|
-
return Ye(
|
1546
|
-
if (
|
1545
|
+
return Ye(P, v);
|
1546
|
+
if (P) {
|
1547
1547
|
if (ae !== rt.Face && !je)
|
1548
|
-
return Ye(
|
1549
|
-
k(ot, Q = !0, Q), ce ? (a || k(de, a = !0, a), q() || ze(K.getContext("2d"),
|
1548
|
+
return Ye(P, v);
|
1549
|
+
k(ot, Q = !0, Q), ce ? (a || k(de, a = !0, a), q() || ze(K.getContext("2d"), P), Ye(P, v)) : (ze(K.getContext("2d"), P), Ye(P, v));
|
1550
1550
|
}
|
1551
1551
|
}
|
1552
1552
|
async function F() {
|
@@ -1555,60 +1555,60 @@ function Qi(l, e, t) {
|
|
1555
1555
|
return;
|
1556
1556
|
}
|
1557
1557
|
if (k(lt, c = !0, c), ce) {
|
1558
|
-
const [i] = await (await import("./
|
1559
|
-
k(
|
1560
|
-
let { bodyParts:
|
1558
|
+
const [i] = await (await import("./face_api_0e3ce8c8_2.0.5.js")).extractFaces(P, [_e]), y = i.toDataURL("image/jpeg").split(",");
|
1559
|
+
k(Ae, U = y[0], U), k(xe, C = y[1], C), k(it, I = y[1], I);
|
1560
|
+
let { bodyParts: S, icaoWarnings: M } = await ut(C);
|
1561
1561
|
window.dispatchEvent(new CustomEvent(
|
1562
1562
|
"face-unconformities-validated",
|
1563
1563
|
{
|
1564
1564
|
detail: {
|
1565
|
-
bodyParts:
|
1566
|
-
icaoWarnings:
|
1565
|
+
bodyParts: S,
|
1566
|
+
icaoWarnings: M,
|
1567
1567
|
status: b
|
1568
1568
|
}
|
1569
1569
|
}
|
1570
|
-
)),
|
1570
|
+
)), S.length !== 0 && S[0].data && k(xe, C = S[0].data, C), ft(M);
|
1571
1571
|
} else {
|
1572
|
-
const i = document.createElement("canvas"),
|
1573
|
-
i.width =
|
1574
|
-
const
|
1575
|
-
k(
|
1576
|
-
let { bodyParts:
|
1572
|
+
const i = document.createElement("canvas"), y = i.getContext("2d");
|
1573
|
+
i.width = P.width, i.height = P.height, y?.drawImage(P, 0, 0, i.width, i.height);
|
1574
|
+
const S = i.toDataURL("image/jpeg").split(",");
|
1575
|
+
k(Ae, U = S[0], U), k(xe, C = S[1], C), k(it, I = S[1], I);
|
1576
|
+
let { bodyParts: M, icaoWarnings: ve } = await ut(C);
|
1577
1577
|
window.dispatchEvent(new CustomEvent(
|
1578
1578
|
"face-unconformities-validated",
|
1579
1579
|
{
|
1580
1580
|
detail: {
|
1581
|
-
bodyParts:
|
1581
|
+
bodyParts: M,
|
1582
1582
|
icaoWarnings: ve,
|
1583
1583
|
status: b
|
1584
1584
|
}
|
1585
1585
|
}
|
1586
|
-
)),
|
1586
|
+
)), M.length !== 0 && M[0].data && k(xe, C = M[0].data, C), ft(ve);
|
1587
1587
|
}
|
1588
1588
|
}
|
1589
1589
|
function De() {
|
1590
1590
|
const i = {
|
1591
1591
|
bodyPart: "FACE",
|
1592
|
-
data:
|
1592
|
+
data: I || C,
|
1593
1593
|
justification: R
|
1594
1594
|
};
|
1595
|
-
k(wt, O = !0, O),
|
1596
|
-
i.livenessBlob =
|
1595
|
+
k(wt, O = !0, O), Ot(nt) && ct(Ot(nt)).then((y) => {
|
1596
|
+
i.livenessBlob = y.split(",")[1];
|
1597
1597
|
}), window.dispatchEvent(new CustomEvent("export-face", { detail: i }));
|
1598
1598
|
}
|
1599
1599
|
function Ze() {
|
1600
|
-
window.dispatchEvent(new CustomEvent("face-scrapped")), k(wt, O = !1, O), k(Re, b = J.OK, b), k(lt, c = !1, c), k(it,
|
1600
|
+
window.dispatchEvent(new CustomEvent("face-scrapped")), k(wt, O = !1, O), k(Re, b = J.OK, b), k(lt, c = !1, c), k(it, I = "", I), k(Ge, _.unconformities = [], _), Ce && Oe();
|
1601
1601
|
}
|
1602
1602
|
function Tt(i) {
|
1603
|
-
let
|
1604
|
-
i.isAlive ?
|
1603
|
+
let y = "", S = "success";
|
1604
|
+
i.isAlive ? y = `Vivacidade de face (${i.face_liveness.probability.toFixed(2)}) e de captura (${i.capture_liveness.probability}, ${i.capture_liveness.score.toFixed(2)}) verificados!` : i?.face_liveness?.probability && (S = "error", y = `Vivacidade de face (${i.face_liveness.probability.toFixed(2)}) e de captura (${i.capture_liveness.probability}, ${i.capture_liveness.score.toFixed(2)}) insuficientes!`, r && k(Re, b = J.LOW_LIVENESS_SCORE, b)), E && ne.fire({ icon: S, title: y });
|
1605
1605
|
}
|
1606
1606
|
const rl = Je.subscribe((i) => {
|
1607
|
-
|
1607
|
+
P && le && (t(2, P.width = i.videoWidth, P), t(2, P.height = i.videoHeight, P), t(3, le.width = i.videoWidth, le), t(3, le.height = i.videoHeight, le), t(11, ie.width = i.videoWidth, ie), t(11, ie.height = i.videoHeight, ie), t(12, K.width = i.videoWidth, K), t(12, K.height = i.videoHeight, K));
|
1608
1608
|
}), cl = Vt.subscribe((i) => {
|
1609
|
-
if (!(!Y || !z || !fe) && (i.closedMouth ? (z.classList.add("ce-dui-badge-success"), z.classList.remove("ce-dui-badge-error"), t(6, z.firstChild.textContent = g("faceCollector.closedMouth"), z)) : (z.classList.remove("ce-dui-badge-success"), z.classList.add("ce-dui-badge-error"), t(6, z.firstChild.textContent = g("faceCollector.mouthOpen"), z)), !i.isPersonCloseEnough || i.isPersonTooclose ? (Y.classList.remove("ce-dui-badge-success"), Y.classList.add("ce-dui-badge-error"), i.isPersonCloseEnough ? i.isPersonTooclose && t(5, Y.firstChild.textContent = g("faceCollector.tooClose"), Y) : t(5, Y.firstChild.textContent = g("faceCollector.tooFar"), Y)) : (Y.classList.add("ce-dui-badge-success"), Y.classList.remove("ce-dui-badge-error"), t(5, Y.firstChild.textContent = g("faceCollector.okDistance"), Y)), i.isPersonInFrame ? (fe.classList.add("ce-dui-badge-success"), fe.classList.remove("ce-dui-badge-error")) : (fe.classList.remove("ce-dui-badge-success"), fe.classList.add("ce-dui-badge-error")), !c && f && !H &&
|
1609
|
+
if (!(!Y || !z || !fe) && (i.closedMouth ? (z.classList.add("ce-dui-badge-success"), z.classList.remove("ce-dui-badge-error"), t(6, z.firstChild.textContent = g("faceCollector.closedMouth"), z)) : (z.classList.remove("ce-dui-badge-success"), z.classList.add("ce-dui-badge-error"), t(6, z.firstChild.textContent = g("faceCollector.mouthOpen"), z)), !i.isPersonCloseEnough || i.isPersonTooclose ? (Y.classList.remove("ce-dui-badge-success"), Y.classList.add("ce-dui-badge-error"), i.isPersonCloseEnough ? i.isPersonTooclose && t(5, Y.firstChild.textContent = g("faceCollector.tooClose"), Y) : t(5, Y.firstChild.textContent = g("faceCollector.tooFar"), Y)) : (Y.classList.add("ce-dui-badge-success"), Y.classList.remove("ce-dui-badge-error"), t(5, Y.firstChild.textContent = g("faceCollector.okDistance"), Y)), i.isPersonInFrame ? (fe.classList.add("ce-dui-badge-success"), fe.classList.remove("ce-dui-badge-error")) : (fe.classList.remove("ce-dui-badge-success"), fe.classList.add("ce-dui-badge-error")), !c && f && !H && Pe && i.isPersonInFrame && i.closedMouth && !(!i.isPersonCloseEnough || i.isPersonTooclose))) {
|
1610
1610
|
t(9, H = !0), qe = (/* @__PURE__ */ new Date()).getTime() + 4500;
|
1611
|
-
const
|
1611
|
+
const y = setInterval(
|
1612
1612
|
() => {
|
1613
1613
|
if (!f || c || q() && Ce || !i.isPersonCloseEnough || i.isPersonTooclose || !i.closedMouth || !i.isPersonInFrame) {
|
1614
1614
|
t(9, H = !1), Te = !0, setTimeout(
|
@@ -1616,11 +1616,11 @@ function Qi(l, e, t) {
|
|
1616
1616
|
Te = !1;
|
1617
1617
|
},
|
1618
1618
|
1500
|
1619
|
-
), clearInterval(
|
1619
|
+
), clearInterval(y);
|
1620
1620
|
return;
|
1621
1621
|
}
|
1622
|
-
const
|
1623
|
-
Math.floor((qe -
|
1622
|
+
const S = (/* @__PURE__ */ new Date()).getTime();
|
1623
|
+
Math.floor((qe - S) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(y), t(9, H = !1), document.getElementsByTagName("biometric-collector")?.[0]?.shadowRoot?.getElementById("bry-cc-capture-btn")?.click());
|
1624
1624
|
},
|
1625
1625
|
250
|
1626
1626
|
);
|
@@ -1628,7 +1628,7 @@ function Qi(l, e, t) {
|
|
1628
1628
|
}), ul = lt.subscribe((i) => {
|
1629
1629
|
we && (i ? (we.classList.remove("flex"), we.classList.add("hidden")) : (we.classList.add("flex"), we.classList.remove("hidden")));
|
1630
1630
|
}), fl = vt.subscribe((i) => {
|
1631
|
-
|
1631
|
+
P && i && (console.log("setting null in video srcObject"), t(2, P.srcObject = null, P), t(2, P.src = "", P));
|
1632
1632
|
});
|
1633
1633
|
Ct.subscribe(async (i) => {
|
1634
1634
|
i === rt.Face && await jt();
|
@@ -1636,20 +1636,20 @@ function Qi(l, e, t) {
|
|
1636
1636
|
const dl = Et.subscribe(async (i) => {
|
1637
1637
|
if (q() || !i)
|
1638
1638
|
return;
|
1639
|
-
|
1640
|
-
const { videoHeight:
|
1641
|
-
t(2,
|
1639
|
+
P || t(10, $ = {});
|
1640
|
+
const { videoHeight: y, videoWidth: S } = n, M = await li(S, y, i);
|
1641
|
+
t(2, P.srcObject = M, P), k(Ft, m = M, m), k(vt, d = !1, d);
|
1642
1642
|
}), ml = Ct.subscribe(async (i) => {
|
1643
|
-
i === rt.Face && q() && !ge && !c && oe && await
|
1643
|
+
i === rt.Face && q() && !ge && !c && oe && await Oe();
|
1644
1644
|
}), _l = de.subscribe(async (i) => {
|
1645
1645
|
i && Dt();
|
1646
1646
|
});
|
1647
1647
|
async function Dt() {
|
1648
|
-
const i = await ii(),
|
1649
|
-
let
|
1650
|
-
|
1651
|
-
const
|
1652
|
-
le.getContext("2d")?.clearRect(0, 0, le.width, le.height),
|
1648
|
+
const i = await ii(), y = await import("./face_api_0e3ce8c8_2.0.5.js");
|
1649
|
+
let S;
|
1650
|
+
S = y.detectSingleFace(K, i);
|
1651
|
+
const M = await S.withFaceLandmarks();
|
1652
|
+
le.getContext("2d")?.clearRect(0, 0, le.width, le.height), M && si(M, le, ke), a && Ye(P, Dt);
|
1653
1653
|
}
|
1654
1654
|
gt.subscribe(async (i) => {
|
1655
1655
|
i && (Ze(), k(gt, s = !1, s));
|
@@ -1667,15 +1667,15 @@ function Qi(l, e, t) {
|
|
1667
1667
|
}
|
1668
1668
|
function pl(i) {
|
1669
1669
|
ye[i ? "unshift" : "push"](() => {
|
1670
|
-
|
1670
|
+
P = i, t(2, P);
|
1671
1671
|
});
|
1672
1672
|
}
|
1673
1673
|
const gl = () => {
|
1674
1674
|
q() || k(
|
1675
1675
|
Je,
|
1676
1676
|
n = {
|
1677
|
-
videoHeight:
|
1678
|
-
videoWidth:
|
1677
|
+
videoHeight: P.videoHeight,
|
1678
|
+
videoWidth: P.videoWidth
|
1679
1679
|
},
|
1680
1680
|
n
|
1681
1681
|
);
|
@@ -1697,7 +1697,7 @@ function Qi(l, e, t) {
|
|
1697
1697
|
}
|
1698
1698
|
function Cl(i) {
|
1699
1699
|
ye[i ? "unshift" : "push"](() => {
|
1700
|
-
|
1700
|
+
Pe = i, t(4, Pe);
|
1701
1701
|
});
|
1702
1702
|
}
|
1703
1703
|
function El(i) {
|
@@ -1715,13 +1715,13 @@ function Qi(l, e, t) {
|
|
1715
1715
|
fe = i, t(7, fe);
|
1716
1716
|
});
|
1717
1717
|
}
|
1718
|
-
const yl = () => F(),
|
1719
|
-
function
|
1718
|
+
const yl = () => F(), Ol = () => De(), Il = () => Ze();
|
1719
|
+
function Pl(i) {
|
1720
1720
|
ye[i ? "unshift" : "push"](() => {
|
1721
1721
|
we = i, t(8, we);
|
1722
1722
|
});
|
1723
1723
|
}
|
1724
|
-
const
|
1724
|
+
const Sl = () => De(), Al = () => Ze();
|
1725
1725
|
function Tl() {
|
1726
1726
|
R = this.value, kt.set(R);
|
1727
1727
|
}
|
@@ -1730,16 +1730,16 @@ function Qi(l, e, t) {
|
|
1730
1730
|
R = this.value, kt.set(R);
|
1731
1731
|
}
|
1732
1732
|
const Nl = () => Ze(), Fl = () => {
|
1733
|
-
t(13, ge = !0),
|
1733
|
+
t(13, ge = !0), Oe();
|
1734
1734
|
};
|
1735
1735
|
return l.$$set = (i) => {
|
1736
|
-
"enableMinutiae" in i && t(42, ke = i.enableMinutiae), "videoDimensions" in i && t(43, pe = i.videoDimensions), "noTabs" in i && t(44, je = i.noTabs), "weightsPath" in i && t(45,
|
1736
|
+
"enableMinutiae" in i && t(42, ke = i.enableMinutiae), "videoDimensions" in i && t(43, pe = i.videoDimensions), "noTabs" in i && t(44, je = i.noTabs), "weightsPath" in i && t(45, Se = i.weightsPath), "widgetInstance" in i && t(0, X = i.widgetInstance);
|
1737
1737
|
}, [
|
1738
1738
|
X,
|
1739
1739
|
v,
|
1740
|
-
|
1740
|
+
P,
|
1741
1741
|
le,
|
1742
|
-
|
1742
|
+
Pe,
|
1743
1743
|
Y,
|
1744
1744
|
z,
|
1745
1745
|
fe,
|
@@ -1772,15 +1772,15 @@ function Qi(l, e, t) {
|
|
1772
1772
|
He,
|
1773
1773
|
tt,
|
1774
1774
|
de,
|
1775
|
-
|
1776
|
-
|
1775
|
+
Ae,
|
1776
|
+
Oe,
|
1777
1777
|
F,
|
1778
1778
|
De,
|
1779
1779
|
Ze,
|
1780
1780
|
ke,
|
1781
1781
|
pe,
|
1782
1782
|
je,
|
1783
|
-
|
1783
|
+
Se,
|
1784
1784
|
hl,
|
1785
1785
|
pl,
|
1786
1786
|
gl,
|
@@ -1792,11 +1792,11 @@ function Qi(l, e, t) {
|
|
1792
1792
|
Rl,
|
1793
1793
|
Ll,
|
1794
1794
|
yl,
|
1795
|
-
Pl,
|
1796
1795
|
Ol,
|
1797
1796
|
Il,
|
1798
|
-
|
1797
|
+
Pl,
|
1799
1798
|
Sl,
|
1799
|
+
Al,
|
1800
1800
|
Tl,
|
1801
1801
|
Dl,
|
1802
1802
|
xl,
|
@@ -1816,7 +1816,7 @@ class Xi extends tl {
|
|
1816
1816
|
},
|
1817
1817
|
Qi,
|
1818
1818
|
Zi,
|
1819
|
-
|
1819
|
+
It,
|
1820
1820
|
{
|
1821
1821
|
enableMinutiae: 42,
|
1822
1822
|
videoDimensions: 43,
|