@regulaforensics/vp-frontend-face-components 8.3.2196-nightly → 8.3.2198-nightly
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/dist/main.iife.js +9 -9
- package/dist/main.js +77 -72
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -141,7 +141,7 @@ function Ue() {
|
|
|
141
141
|
}, hn;
|
|
142
142
|
}
|
|
143
143
|
var pn, PI;
|
|
144
|
-
function
|
|
144
|
+
function ft() {
|
|
145
145
|
if (PI) return pn;
|
|
146
146
|
PI = 1;
|
|
147
147
|
var e = Ue(), r = e({}.toString), t = e("".slice);
|
|
@@ -153,7 +153,7 @@ var kn, RI;
|
|
|
153
153
|
function nn() {
|
|
154
154
|
if (RI) return kn;
|
|
155
155
|
RI = 1;
|
|
156
|
-
var e = Ue(), r = Be(), t =
|
|
156
|
+
var e = Ue(), r = Be(), t = ft(), i = Object, n = e("".split);
|
|
157
157
|
return kn = r(function() {
|
|
158
158
|
return !i("z").propertyIsEnumerable(0);
|
|
159
159
|
}) ? function(M) {
|
|
@@ -894,7 +894,7 @@ var GM, Jc;
|
|
|
894
894
|
function zt() {
|
|
895
895
|
if (Jc) return GM;
|
|
896
896
|
Jc = 1;
|
|
897
|
-
var e = IA(), r = or(), t =
|
|
897
|
+
var e = IA(), r = or(), t = ft(), i = gr(), n = i("toStringTag"), M = Object, a = t(/* @__PURE__ */ (function() {
|
|
898
898
|
return arguments;
|
|
899
899
|
})()) === "Arguments", o = function(g, u) {
|
|
900
900
|
try {
|
|
@@ -1049,7 +1049,7 @@ var Ms = {}, qM, as;
|
|
|
1049
1049
|
function gn() {
|
|
1050
1050
|
if (as) return qM;
|
|
1051
1051
|
as = 1;
|
|
1052
|
-
var e =
|
|
1052
|
+
var e = ft();
|
|
1053
1053
|
return qM = Array.isArray || function(t) {
|
|
1054
1054
|
return e(t) === "Array";
|
|
1055
1055
|
}, qM;
|
|
@@ -1443,7 +1443,7 @@ var ps = {}, Aa, ks;
|
|
|
1443
1443
|
function $u() {
|
|
1444
1444
|
if (ks) return Aa;
|
|
1445
1445
|
ks = 1;
|
|
1446
|
-
var e =
|
|
1446
|
+
var e = ft(), r = Ue();
|
|
1447
1447
|
return Aa = function(t) {
|
|
1448
1448
|
if (e(t) === "Function") return r(t);
|
|
1449
1449
|
}, Aa;
|
|
@@ -1623,7 +1623,7 @@ var Ws;
|
|
|
1623
1623
|
function wA() {
|
|
1624
1624
|
if (Ws) return Bs;
|
|
1625
1625
|
Ws = 1;
|
|
1626
|
-
var e = er(), r = st(), t = Ru(), i = Ke(), n = Ue(), M = Be(), a = gn(), o = or(), g = CA(), u = un(), j =
|
|
1626
|
+
var e = er(), r = st(), t = Ru(), i = Ke(), n = Ue(), M = Be(), a = gn(), o = or(), g = CA(), u = un(), j = ft(), s = Br(), I = Tn(), N = dy(), c = In(), D = on(), y = SA(), A = String, l = r("JSON", "stringify"), T = n(/./.exec), d = n("".charAt), z = n("".charCodeAt), O = n("".replace), S = n("".slice), h = n([].push), C = n(1.1.toString), w = /[\uD800-\uDFFF]/g, B = /^[\uD800-\uDBFF]$/, G = /^[\uDC00-\uDFFF]$/, b = c(), v = b.length, Q = !D || M(function() {
|
|
1627
1627
|
var q = r("Symbol")("stringify detection");
|
|
1628
1628
|
return l([q]) !== "[null]" || l({ a: q }) !== "{}" || l(Object(q)) !== "{}";
|
|
1629
1629
|
}), $ = M(function() {
|
|
@@ -1901,7 +1901,7 @@ function bA() {
|
|
|
1901
1901
|
return u(t, "DOMTokenList"), Ks;
|
|
1902
1902
|
}
|
|
1903
1903
|
bA();
|
|
1904
|
-
var mi, pe, Cy,
|
|
1904
|
+
var mi, pe, Cy, kt, ug, Sy, wy, vy, Fu, Eu, du, my, Ji = {}, qi = [], UA = /acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i, fi = Array.isArray;
|
|
1905
1905
|
function It(e, r) {
|
|
1906
1906
|
for (var t in r) e[t] = r[t];
|
|
1907
1907
|
return e;
|
|
@@ -1945,10 +1945,10 @@ function hy(e) {
|
|
|
1945
1945
|
}), hy(e);
|
|
1946
1946
|
}
|
|
1947
1947
|
function xu(e) {
|
|
1948
|
-
(!e.__d && (e.__d = !0) &&
|
|
1948
|
+
(!e.__d && (e.__d = !0) && kt.push(e) && !Xi.__r++ || ug != pe.debounceRendering) && ((ug = pe.debounceRendering) || Sy)(Xi);
|
|
1949
1949
|
}
|
|
1950
1950
|
function Xi() {
|
|
1951
|
-
for (var e, r = 1;
|
|
1951
|
+
for (var e, r = 1; kt.length; ) kt.length > r && kt.sort(wy), e = kt.shift(), r = kt.length, QA(e);
|
|
1952
1952
|
Xi.__r = 0;
|
|
1953
1953
|
}
|
|
1954
1954
|
function py(e, r, t, i, n, M, a, o, g, u, j) {
|
|
@@ -2168,7 +2168,7 @@ mi = qi.slice, pe = { __e: function(e, r, t, i) {
|
|
|
2168
2168
|
t = this.__s != null && this.__s != this.state ? this.__s : this.__s = It({}, this.state), typeof e == "function" && (e = e(It({}, t), this.props)), e && It(t, e), e != null && this.__v && (r && this._sb.push(r), xu(this));
|
|
2169
2169
|
}, Wr.prototype.forceUpdate = function(e) {
|
|
2170
2170
|
this.__v && (this.__e = !0, e && this.__h.push(e), xu(this));
|
|
2171
|
-
}, Wr.prototype.render = fr,
|
|
2171
|
+
}, Wr.prototype.render = fr, kt = [], Sy = typeof Promise == "function" ? Promise.prototype.then.bind(Promise.resolve()) : setTimeout, wy = function(e, r) {
|
|
2172
2172
|
return e.__v.__b - r.__v.__b;
|
|
2173
2173
|
}, Xi.__r = 0, vy = /(PointerCapture)$|Capture$/i, Fu = 0, Eu = cg(!1), du = cg(!0), my = 0;
|
|
2174
2174
|
var sg = {}, gg;
|
|
@@ -2532,7 +2532,7 @@ var qa, Sg;
|
|
|
2532
2532
|
function XA() {
|
|
2533
2533
|
if (Sg) return qa;
|
|
2534
2534
|
Sg = 1;
|
|
2535
|
-
var e = Ke(), r = Nr(), t = or(), i =
|
|
2535
|
+
var e = Ke(), r = Nr(), t = or(), i = ft(), n = Xu(), M = TypeError;
|
|
2536
2536
|
return qa = function(a, o) {
|
|
2537
2537
|
var g = a.exec;
|
|
2538
2538
|
if (t(g)) {
|
|
@@ -5442,7 +5442,7 @@ const uE = (e) => {
|
|
|
5442
5442
|
CANCELLED: "CANCELLED"
|
|
5443
5443
|
};
|
|
5444
5444
|
var Xe = /* @__PURE__ */ ((e) => (e[e.Empty = 0] = "Empty", e[e.FitFaceIntoOval = 1] = "FitFaceIntoOval", e[e.LookStraight = 2] = "LookStraight", e[e.MoveCloser = 3] = "MoveCloser", e[e.MoveAway = 4] = "MoveAway", e[e.HoldStill = 5] = "HoldStill", e[e.ShowOnlyOneFace = 6] = "ShowOnlyOneFace", e[e.TurnHead = 7] = "TurnHead", e[e.GiveMoreLight = 8] = "GiveMoreLight", e[e.RemoveOcclusion = 9] = "RemoveOcclusion", e[e.TurnHeadUp = 10] = "TurnHeadUp", e[e.TurnHeadDown = 11] = "TurnHeadDown", e[e.TurnHeadLeft = 12] = "TurnHeadLeft", e[e.TurnHeadRight = 13] = "TurnHeadRight", e[e.BlinkYourEyes = 14] = "BlinkYourEyes", e))(Xe || {}), Ut = /* @__PURE__ */ ((e) => (e[e.Far = 0] = "Far", e[e.Near = 1] = "Near", e[e.FrameCheck = 2] = "FrameCheck", e))(Ut || {});
|
|
5445
|
-
const
|
|
5445
|
+
const Sr = {
|
|
5446
5446
|
Finished: 0,
|
|
5447
5447
|
InProcess: 1,
|
|
5448
5448
|
Timeout: 2,
|
|
@@ -5675,8 +5675,8 @@ function OE(e, r, t) {
|
|
|
5675
5675
|
const zT = (e, r) => e === Ne.ABORT_PROCESSING || e === Ne.FAILED && r === Rr.SESSION_TIMEOUT;
|
|
5676
5676
|
function QN(e) {
|
|
5677
5677
|
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, t = arguments.length > 2 ? arguments[2] : void 0, i = arguments.length > 3 ? arguments[3] : void 0, n = arguments.length > 4 ? arguments[4] : void 0;
|
|
5678
|
-
const M = e ===
|
|
5679
|
-
return r && M && i ? Ne.SUCCESS : r && (e ===
|
|
5678
|
+
const M = e === Sr.Finished;
|
|
5679
|
+
return r && M && i ? Ne.SUCCESS : r && (e === Sr.Timeout || e === Sr.Failed) ? Ne.FAILED : M && n && t || e === Sr.Stop_Session ? Ne.ABORT_PROCESSING : M && i && n ? Ne.PROCESSING_REQUEST : (e === Sr.Timeout || e === Sr.Failed) && n ? Ne.FAILED : e === Sr.BadFaceQuality && n ? Ne.BAD_FACE_QUALITY : Ne.CAPTURING;
|
|
5680
5680
|
}
|
|
5681
5681
|
const xn = (e, r) => {
|
|
5682
5682
|
const t = LE(e);
|
|
@@ -5720,8 +5720,8 @@ const xn = (e, r) => {
|
|
|
5720
5720
|
return r === 90 || r === -270 ? 90 : r === -90 || r === 270 ? -90 : 0;
|
|
5721
5721
|
}, CE = (e) => {
|
|
5722
5722
|
let r = Do.default;
|
|
5723
|
-
return e ===
|
|
5724
|
-
}, LT = (e) => e ===
|
|
5723
|
+
return e === Sr.Timeout && (r = Do.timeout), e === Sr.Stop_Session && (r = Do.aborted), r;
|
|
5724
|
+
}, LT = (e) => e === Sr.Finished || e === Sr.Stop_Session || e === Sr.Timeout || e === Sr.BadFaceQuality, SE = location.hostname === "localhost" || location.hostname === "127.0.0.1", CT = location.protocol === "http:" && !SE, YN = (e) => {
|
|
5725
5725
|
const r = /(?:^|\D)(\d+\.\d+).*$/, t = e.match(r);
|
|
5726
5726
|
return t && t[1] ? t[1] : "6.1";
|
|
5727
5727
|
}, wE = (e) => {
|
|
@@ -5740,7 +5740,7 @@ const xn = (e, r) => {
|
|
|
5740
5740
|
const e = navigator.userAgent || navigator.vendor || window.opera;
|
|
5741
5741
|
let r = Fe.isMobile && !Fe.isTablet;
|
|
5742
5742
|
return (/SM-(T|X|P)\d+/i.test(e) || /GT-P\d+/i.test(e) || /Galaxy Tab/i.test(e) || /MediaPad/i.test(e) || /HONOR\sPad/i.test(e) || /HUAWEI\sPad/i.test(e) || /Mi\sPad/i.test(e) || /Redmi\sPad/i.test(e) || /XiaoMi\sPad/i.test(e) || /XiaoXin\sPad/i.test(e) || /Lenovo\sTB/i.test(e)) && (r = !1), r;
|
|
5743
|
-
},
|
|
5743
|
+
}, mt = () => Ei() || NI(), jI = () => Fe.isDesktop;
|
|
5744
5744
|
function ST(e, r) {
|
|
5745
5745
|
let t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
|
|
5746
5746
|
const i = {
|
|
@@ -6182,7 +6182,7 @@ const gd = Jr.create("main"), JN = {
|
|
|
6182
6182
|
livenessType: ei.ACTIVE,
|
|
6183
6183
|
holdStillDuration: void 0,
|
|
6184
6184
|
timeoutInterval: void 0,
|
|
6185
|
-
workerPath: "https://wasm-development.regulaforensics.com/face/nightly/8.3/
|
|
6185
|
+
workerPath: "https://wasm-development.regulaforensics.com/face/nightly/8.3/8b25cbf3-61ffbe84",
|
|
6186
6186
|
detectOcclusion: !0,
|
|
6187
6187
|
captureButton: !1
|
|
6188
6188
|
}, Nd = (e) => Eo(Eo({}, JN), {}, {
|
|
@@ -6530,7 +6530,7 @@ function xd(e) {
|
|
|
6530
6530
|
})
|
|
6531
6531
|
});
|
|
6532
6532
|
}
|
|
6533
|
-
function
|
|
6533
|
+
function ht(e) {
|
|
6534
6534
|
let {
|
|
6535
6535
|
size: r,
|
|
6536
6536
|
color: t
|
|
@@ -6724,7 +6724,7 @@ function vT(e) {
|
|
|
6724
6724
|
const I = Nt(() => jI() && g && g !== 0 && g !== 180, [g]), N = Ei() && window.innerHeight >= 640;
|
|
6725
6725
|
return L("div", {
|
|
6726
6726
|
className: "".concat(ji.window, " ").concat(I ? ji.windowRotate : ""),
|
|
6727
|
-
"data-device":
|
|
6727
|
+
"data-device": mt() && n || I ? "mobile" : "desktop",
|
|
6728
6728
|
"data-direction": i,
|
|
6729
6729
|
"data-locale": o,
|
|
6730
6730
|
"data-capture-button": s,
|
|
@@ -6900,7 +6900,7 @@ class fT extends Wr {
|
|
|
6900
6900
|
return this.props.children;
|
|
6901
6901
|
}
|
|
6902
6902
|
}
|
|
6903
|
-
const Hd = "_text_wzfb4_15", $d = "_title_wzfb4_28", Zd = "_subtitle_wzfb4_43", Wd = "_container_wzfb4_55", Fd = "_icon_wzfb4_88", Vd = "_illumination_wzfb4_132",
|
|
6903
|
+
const Hd = "_text_wzfb4_15", $d = "_title_wzfb4_28", Zd = "_subtitle_wzfb4_43", Wd = "_container_wzfb4_55", Fd = "_icon_wzfb4_88", Vd = "_illumination_wzfb4_132", wr = {
|
|
6904
6904
|
"instruction-window": "_instruction-window_wzfb4_1",
|
|
6905
6905
|
text: Hd,
|
|
6906
6906
|
title: $d,
|
|
@@ -6925,42 +6925,42 @@ function Jd(e) {
|
|
|
6925
6925
|
return L("div", {
|
|
6926
6926
|
part: "onboarding-screen",
|
|
6927
6927
|
"aria-live": "polite",
|
|
6928
|
-
className:
|
|
6928
|
+
className: wr["instruction-window"],
|
|
6929
6929
|
children: L("div", {
|
|
6930
|
-
className:
|
|
6930
|
+
className: wr.container,
|
|
6931
6931
|
children: [L("div", {
|
|
6932
|
-
className:
|
|
6932
|
+
className: wr.text,
|
|
6933
6933
|
children: [L("div", {
|
|
6934
6934
|
part: "onboarding-screen-title",
|
|
6935
|
-
className:
|
|
6935
|
+
className: wr.title,
|
|
6936
6936
|
children: r
|
|
6937
6937
|
}), L("div", {
|
|
6938
6938
|
part: "onboarding-screen-subtitle",
|
|
6939
|
-
className:
|
|
6939
|
+
className: wr.subtitle,
|
|
6940
6940
|
children: t
|
|
6941
6941
|
})]
|
|
6942
6942
|
}), L("div", {
|
|
6943
|
-
className:
|
|
6943
|
+
className: wr["icon-container"],
|
|
6944
6944
|
children: [L("div", {
|
|
6945
6945
|
part: "onboarding-screen-detail",
|
|
6946
|
-
className:
|
|
6946
|
+
className: wr["icon-block"],
|
|
6947
6947
|
children: [L("div", {
|
|
6948
6948
|
part: "onboarding-screen-illumination",
|
|
6949
|
-
className: "".concat(
|
|
6949
|
+
className: "".concat(wr.icon, " ").concat(wr.illumination)
|
|
6950
6950
|
}), M("illumination")]
|
|
6951
6951
|
}), L("div", {
|
|
6952
6952
|
part: "onboarding-screen-detail",
|
|
6953
|
-
className:
|
|
6953
|
+
className: wr["icon-block"],
|
|
6954
6954
|
children: [L("div", {
|
|
6955
6955
|
part: "onboarding-screen-accessories",
|
|
6956
|
-
className: "".concat(
|
|
6956
|
+
className: "".concat(wr.icon, " ").concat(wr["no-accessories"])
|
|
6957
6957
|
}), M("noAccessories")]
|
|
6958
6958
|
}), L("div", {
|
|
6959
6959
|
part: "onboarding-screen-detail",
|
|
6960
|
-
className:
|
|
6960
|
+
className: wr["icon-block"],
|
|
6961
6961
|
children: [L("div", {
|
|
6962
6962
|
part: "onboarding-screen-camera-level",
|
|
6963
|
-
className: "".concat(
|
|
6963
|
+
className: "".concat(wr.icon, " ").concat(wr["camera-on-eye"])
|
|
6964
6964
|
}), M("cameraLevel")]
|
|
6965
6965
|
})]
|
|
6966
6966
|
}), L(zn, {
|
|
@@ -7673,7 +7673,7 @@ function Jx(e) {
|
|
|
7673
7673
|
} = Mt.useLocalize(), b = mr(null), v = n === Xe.HoldStill, Q = I > 0 && typeof s == "number", $ = M && i.videoStatus === Ye.PLAY, ee = Wx(i, M, n, B), W = G(ee), K = {
|
|
7674
7674
|
transition: "".concat(DE, "ms")
|
|
7675
7675
|
}, q = Fx({
|
|
7676
|
-
isMobile:
|
|
7676
|
+
isMobile: mt(),
|
|
7677
7677
|
faceSnapshot: D,
|
|
7678
7678
|
livenessType: O,
|
|
7679
7679
|
videoStatusParams: i,
|
|
@@ -8167,7 +8167,7 @@ var zj = {}, ho, Oj;
|
|
|
8167
8167
|
function UT() {
|
|
8168
8168
|
if (Oj) return ho;
|
|
8169
8169
|
Oj = 1;
|
|
8170
|
-
var e = we(), r = _u(), t =
|
|
8170
|
+
var e = we(), r = _u(), t = ft(), i = e.ArrayBuffer, n = e.TypeError;
|
|
8171
8171
|
return ho = i && r(i.prototype, "byteLength", "get") || function(M) {
|
|
8172
8172
|
if (t(M) !== "ArrayBuffer") throw new n("ArrayBuffer expected");
|
|
8173
8173
|
return M.byteLength;
|
|
@@ -8214,7 +8214,7 @@ var bo, vj;
|
|
|
8214
8214
|
function YT() {
|
|
8215
8215
|
if (vj) return bo;
|
|
8216
8216
|
vj = 1;
|
|
8217
|
-
var e = we(), r = xi(), t =
|
|
8217
|
+
var e = we(), r = xi(), t = ft(), i = function(n) {
|
|
8218
8218
|
return r.slice(0, n.length) === n;
|
|
8219
8219
|
};
|
|
8220
8220
|
return bo = (function() {
|
|
@@ -9368,7 +9368,7 @@ class t0 {
|
|
|
9368
9368
|
}
|
|
9369
9369
|
prepare(r) {
|
|
9370
9370
|
return Dr(this, null, function* () {
|
|
9371
|
-
const t = "Liveness.worker.js", i = Me.getState().workerPath, n = Kz(i), M = Me.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/8.3/
|
|
9371
|
+
const t = "Liveness.worker.js", i = Me.getState().workerPath, n = Kz(i), M = Me.getState().workerPath === "https://wasm-development.regulaforensics.com/face/nightly/8.3/8b25cbf3-61ffbe84";
|
|
9372
9372
|
try {
|
|
9373
9373
|
let o = yield (yield fetch(n + "/" + t)).text();
|
|
9374
9374
|
M || (o = vE(o, n));
|
|
@@ -9386,7 +9386,7 @@ class t0 {
|
|
|
9386
9386
|
}), this.worker.postMessage({
|
|
9387
9387
|
target: "worker-init",
|
|
9388
9388
|
URL: document.URL,
|
|
9389
|
-
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/8.3/
|
|
9389
|
+
currentScriptUrl: "https://wasm-development.regulaforensics.com/face/nightly/8.3/8b25cbf3-61ffbe84",
|
|
9390
9390
|
preMain: !0
|
|
9391
9391
|
}));
|
|
9392
9392
|
});
|
|
@@ -9581,7 +9581,7 @@ class M0 {
|
|
|
9581
9581
|
});
|
|
9582
9582
|
}
|
|
9583
9583
|
}
|
|
9584
|
-
const
|
|
9584
|
+
const vt = new M0(), a0 = ["data"];
|
|
9585
9585
|
function o0(e, r) {
|
|
9586
9586
|
if (e == null) return {};
|
|
9587
9587
|
var t, i, n = u0(e, r);
|
|
@@ -9627,7 +9627,7 @@ const I0 = (e) => {
|
|
|
9627
9627
|
}
|
|
9628
9628
|
if (a === rn.ASYNCHRONOUS_UPLOAD) {
|
|
9629
9629
|
const I = CE(r);
|
|
9630
|
-
|
|
9630
|
+
vt.sendVideoData(s, n, i, I);
|
|
9631
9631
|
}
|
|
9632
9632
|
t.finalizePackage();
|
|
9633
9633
|
}));
|
|
@@ -9759,7 +9759,7 @@ const j0 = 1500, _D = (e) => e * 1e3, gu = Jr.create("main"), D0 = (e) => e ===
|
|
|
9759
9759
|
metadata: {
|
|
9760
9760
|
serviceUrl: u || qt,
|
|
9761
9761
|
hostAppId: ET(),
|
|
9762
|
-
sdkVersion: YN("8.3.
|
|
9762
|
+
sdkVersion: YN("8.3.2198-nightly"),
|
|
9763
9763
|
deviceModel: "".concat(Fe.osName, "/").concat(Fe.osVersion, " ").concat(Fe.browserName, "/").concat(Fe.fullBrowserVersion),
|
|
9764
9764
|
camera: D.camera
|
|
9765
9765
|
}
|
|
@@ -9772,13 +9772,13 @@ const j0 = 1500, _D = (e) => e * 1e3, gu = Jr.create("main"), D0 = (e) => e ===
|
|
|
9772
9772
|
const v = yield sE({
|
|
9773
9773
|
cameras: [...D.sortedDevices.frontCameras, ...D.sortedDevices.backCameras],
|
|
9774
9774
|
cameraID: D.camera.deviceId,
|
|
9775
|
-
sdkVersion: YN("8.3.
|
|
9775
|
+
sdkVersion: YN("8.3.2198-nightly"),
|
|
9776
9776
|
serviceUrl: u || qt,
|
|
9777
9777
|
customMetadata: z
|
|
9778
9778
|
});
|
|
9779
9779
|
try {
|
|
9780
9780
|
var w, B, G, b;
|
|
9781
|
-
const Q = yield
|
|
9781
|
+
const Q = yield vt.getInitializingData({
|
|
9782
9782
|
deviceMetadata: v,
|
|
9783
9783
|
tag: j,
|
|
9784
9784
|
backendUrl: u,
|
|
@@ -9956,7 +9956,7 @@ const z0 = Jr.create("main"), O0 = (e) => {
|
|
|
9956
9956
|
return;
|
|
9957
9957
|
a(!0), z0("Image processing started");
|
|
9958
9958
|
let I = {};
|
|
9959
|
-
if (
|
|
9959
|
+
if (mt() && Xt.initialized) {
|
|
9960
9960
|
const y = Xt.getAngle();
|
|
9961
9961
|
I = {
|
|
9962
9962
|
deviceOrientation: {
|
|
@@ -10040,7 +10040,7 @@ const w0 = Jr.create("main"), v0 = {
|
|
|
10040
10040
|
message: Xe.Empty,
|
|
10041
10041
|
prepared: !1,
|
|
10042
10042
|
processingStage: Ut.Far,
|
|
10043
|
-
status:
|
|
10043
|
+
status: Sr.InProcess,
|
|
10044
10044
|
request: null,
|
|
10045
10045
|
requestSize: null,
|
|
10046
10046
|
debugOutput: null,
|
|
@@ -10066,7 +10066,7 @@ function m0(e) {
|
|
|
10066
10066
|
initialized: $,
|
|
10067
10067
|
prepared: ee
|
|
10068
10068
|
} = v;
|
|
10069
|
-
(Q == null ? void 0 : Q.status) ===
|
|
10069
|
+
(Q == null ? void 0 : Q.status) === Sr.InProcess && i(!1), M((W) => Nu(Nu(Nu({}, W), {}, {
|
|
10070
10070
|
initialized: $,
|
|
10071
10071
|
prepared: ee
|
|
10072
10072
|
}, Q), {}, {
|
|
@@ -10175,22 +10175,22 @@ function k0(e, r) {
|
|
|
10175
10175
|
return (r === "string" ? String : Number)(e);
|
|
10176
10176
|
}
|
|
10177
10177
|
let ZD = -1;
|
|
10178
|
-
const lt =
|
|
10178
|
+
const lt = mt() ? bt.HD : bt.FULL_HD;
|
|
10179
10179
|
let WD = null, FD = "", Du = !0;
|
|
10180
10180
|
const b0 = {
|
|
10181
10181
|
width: lt.width / 3,
|
|
10182
10182
|
height: lt.height / 3
|
|
10183
10183
|
};
|
|
10184
|
-
let
|
|
10184
|
+
let pt = {
|
|
10185
10185
|
width: lt.width,
|
|
10186
10186
|
height: lt.height
|
|
10187
10187
|
};
|
|
10188
10188
|
const U0 = (e) => {
|
|
10189
10189
|
if (e === void 0 || e === -1)
|
|
10190
|
-
return
|
|
10190
|
+
return pt = lt;
|
|
10191
10191
|
if (e !== ZD)
|
|
10192
|
-
return ZD = e,
|
|
10193
|
-
|
|
10192
|
+
return ZD = e, pt.width < lt.width ? pt = lt : pt = b0;
|
|
10193
|
+
pt = lt;
|
|
10194
10194
|
};
|
|
10195
10195
|
function Q0() {
|
|
10196
10196
|
const {
|
|
@@ -10336,7 +10336,7 @@ function Q0() {
|
|
|
10336
10336
|
}
|
|
10337
10337
|
}, [K]), ze(() => {
|
|
10338
10338
|
if (p) return;
|
|
10339
|
-
W ===
|
|
10339
|
+
W === Sr.Timeout && !q && (e({
|
|
10340
10340
|
action: yr.PROCESS_FINISHED,
|
|
10341
10341
|
data: ju({
|
|
10342
10342
|
status: Lr.ERROR,
|
|
@@ -10346,7 +10346,7 @@ function Q0() {
|
|
|
10346
10346
|
} : {})
|
|
10347
10347
|
}), s || o(Rr.SESSION_TIMEOUT));
|
|
10348
10348
|
const Ae = QN(W, s, M, !!(U != null && U.length), !!q);
|
|
10349
|
-
I(Ae), C.videoElement && (Ae === Ne.SUCCESS && u(U), !s && (Ae === Ne.PROCESSING_REQUEST && (g(!1), u(U), N(q), Ge && y(Ge)), (Ae === Ne.FAILED || Ae === Ne.ABORT_PROCESSING) && (N(q), Ge && y(Ge))));
|
|
10349
|
+
I(Ae), C.videoElement && (Ae === Ne.SUCCESS && u(U), !s && (Ae === Ne.PROCESSING_REQUEST && (g(!1), u(U), N(q), Ge && y(Ge)), (Ae === Ne.FAILED || Ae === Ne.ABORT_PROCESSING || Ae === Ne.BAD_FACE_QUALITY) && (N(q), Ge && y(Ge))));
|
|
10350
10350
|
}, [W, K, s, q, U, C.videoElement, p, Ge]), ze(() => {
|
|
10351
10351
|
if (!C.videoParams.width || xe.x === 0 || ee !== Xe.FitFaceIntoOval) return;
|
|
10352
10352
|
const Ae = wu(C.videoParams.width, C.videoParams.height, C.videoContainerParams.width, C.videoContainerParams.height, xe.width, xe.height, xe.x, xe.y, Tt.contain);
|
|
@@ -10389,7 +10389,7 @@ function Q0() {
|
|
|
10389
10389
|
onVideoSizeChange: w,
|
|
10390
10390
|
onVideoStatusChange: v,
|
|
10391
10391
|
mode: et.user,
|
|
10392
|
-
resolution:
|
|
10392
|
+
resolution: pt,
|
|
10393
10393
|
onFailStatus: ye,
|
|
10394
10394
|
cameraId: i,
|
|
10395
10395
|
onRecordService: O,
|
|
@@ -10620,7 +10620,7 @@ const EI = Ht(() => {
|
|
|
10620
10620
|
btnText: o("goButton")
|
|
10621
10621
|
});
|
|
10622
10622
|
}
|
|
10623
|
-
return t === Ne.CAPTURING || r ? L(Q0, {}) : t === Ne.BAD_FACE_QUALITY ? L(q0, {}) : t === Ne.PROCESSING_REQUEST ? L(VD, {
|
|
10623
|
+
return t === Ne.CAPTURING || r ? L(Q0, {}) : t === Ne.BAD_FACE_QUALITY && e ? L(q0, {}) : t === Ne.PROCESSING_REQUEST ? L(VD, {
|
|
10624
10624
|
title: o("processing")
|
|
10625
10625
|
}) : t === Ne.SUCCESS && e ? L(Hr, {
|
|
10626
10626
|
icon: L(Ld, {}),
|
|
@@ -10635,33 +10635,33 @@ const EI = Ht(() => {
|
|
|
10635
10635
|
title: o("noCameraPermission"),
|
|
10636
10636
|
subtitle: o("allowAccessToCamera")
|
|
10637
10637
|
}) : t === Ne.NO_CAMERA_ERROR ? L(Hr, {
|
|
10638
|
-
icon: L(
|
|
10638
|
+
icon: L(ht, {}),
|
|
10639
10639
|
title: o("noCameraAvailable"),
|
|
10640
10640
|
subtitle: o("checkCameraConnection")
|
|
10641
10641
|
}) : t === Ne.WASM_DEFAULT_ERROR ? L(Hr, {
|
|
10642
|
-
icon: L(
|
|
10642
|
+
icon: L(ht, {}),
|
|
10643
10643
|
title: o("error"),
|
|
10644
10644
|
subtitle: o("somethingWentWrong")
|
|
10645
10645
|
}) : t === Ne.NOT_SUPPORTED_ERROR ? L(Hr, {
|
|
10646
|
-
icon: L(
|
|
10646
|
+
icon: L(ht, {}),
|
|
10647
10647
|
title: o("versionNotSupported"),
|
|
10648
10648
|
subtitle: o("updateBrowser")
|
|
10649
10649
|
}) : t === Ne.HTTP_NOT_SUPPORTED ? L(Hr, {
|
|
10650
|
-
icon: L(
|
|
10650
|
+
icon: L(ht, {}),
|
|
10651
10651
|
title: o("error"),
|
|
10652
10652
|
subtitle: o("httpNotSupported")
|
|
10653
10653
|
}) : t === Ne.WEBSERVICE_NOT_COMPATIBLE ? L(Hr, {
|
|
10654
10654
|
onRetry: g,
|
|
10655
|
-
icon: L(
|
|
10655
|
+
icon: L(ht, {}),
|
|
10656
10656
|
title: o("error"),
|
|
10657
10657
|
subtitle: o("webServerNotCompatible")
|
|
10658
10658
|
}) : t === Ne.UNKNOWN_ERROR ? L(Hr, {
|
|
10659
10659
|
onRetry: g,
|
|
10660
|
-
icon: L(
|
|
10660
|
+
icon: L(ht, {}),
|
|
10661
10661
|
title: o("error"),
|
|
10662
10662
|
subtitle: o("somethingWentWrong")
|
|
10663
10663
|
}) : t === Ne.RESTART || t === Ne.ABORT_PROCESSING ? L(VD, {}) : e ? i.code === UN ? L(Hr, {
|
|
10664
|
-
icon: L(
|
|
10664
|
+
icon: L(ht, {}),
|
|
10665
10665
|
title: o("somethingWentWrong"),
|
|
10666
10666
|
errorCode: UN
|
|
10667
10667
|
}) : L($0, {
|
|
@@ -10714,7 +10714,7 @@ function X0(e) {
|
|
|
10714
10714
|
}
|
|
10715
10715
|
}), zT(g, M) && g === Ne.ABORT_PROCESSING && (j(D), a(!1), o(null));
|
|
10716
10716
|
}, [g]), ze(() => {
|
|
10717
|
-
if (
|
|
10717
|
+
if (mt()) {
|
|
10718
10718
|
if (y.current) {
|
|
10719
10719
|
y.current = !1, D && u(Ne.RESTART);
|
|
10720
10720
|
return;
|
|
@@ -12819,7 +12819,7 @@ class rK extends HTMLElement {
|
|
|
12819
12819
|
this.dispatchEvent(t), eK("Component event: ".concat(JSON.stringify(t.detail)));
|
|
12820
12820
|
}
|
|
12821
12821
|
get version() {
|
|
12822
|
-
return "".concat("8.3.
|
|
12822
|
+
return "".concat("8.3.2198-nightly".trim());
|
|
12823
12823
|
}
|
|
12824
12824
|
set translations(r) {
|
|
12825
12825
|
this._translations = r, this._mounted && this.render();
|
|
@@ -13057,15 +13057,15 @@ function sK(e) {
|
|
|
13057
13057
|
}, [y, o]);
|
|
13058
13058
|
return ze(() => {
|
|
13059
13059
|
c || A(Ne.CAPTURING);
|
|
13060
|
-
}, [c]), ze(() => (CT && O(new Qt("HTTP_NOT_SUPPORTED")), D &&
|
|
13061
|
-
|
|
13060
|
+
}, [c]), ze(() => (CT && O(new Qt("HTTP_NOT_SUPPORTED")), D && mt() && !Xt.initialized && Xt.init(s == null ? void 0 : s.deviceOrientationPlate), () => {
|
|
13061
|
+
vt.abortLivenessRequest(), mt() && Xt.initialized && Xt.shutdown();
|
|
13062
13062
|
}), []), ze(() => {
|
|
13063
13063
|
if (y === Ne.PROCESSING_REQUEST) {
|
|
13064
13064
|
if (!T || !g || !S) return;
|
|
13065
13065
|
u({
|
|
13066
13066
|
action: yr.PROCESSING_REQUEST,
|
|
13067
13067
|
data: null
|
|
13068
|
-
}),
|
|
13068
|
+
}), vt.getLivenessDetectionResult(T, {
|
|
13069
13069
|
transactionId: o,
|
|
13070
13070
|
backendURL: j,
|
|
13071
13071
|
publicKey: g,
|
|
@@ -13100,7 +13100,12 @@ function sK(e) {
|
|
|
13100
13100
|
}));
|
|
13101
13101
|
});
|
|
13102
13102
|
}
|
|
13103
|
-
|
|
13103
|
+
y === Ne.BAD_FACE_QUALITY && T && vt.sendLivenessAbortedResult(T, {
|
|
13104
|
+
transactionId: o,
|
|
13105
|
+
backendURL: j,
|
|
13106
|
+
publicKey: g,
|
|
13107
|
+
signature: S
|
|
13108
|
+
}), zT(y, M) && T && (y === Ne.ABORT_PROCESSING && (l(B), t(!1)), vt.sendLivenessAbortedResult(T, {
|
|
13104
13109
|
transactionId: o,
|
|
13105
13110
|
backendURL: j,
|
|
13106
13111
|
publicKey: g,
|
|
@@ -13109,7 +13114,7 @@ function sK(e) {
|
|
|
13109
13114
|
i(null);
|
|
13110
13115
|
}));
|
|
13111
13116
|
}, [y, T, j, o, S]), ze(() => {
|
|
13112
|
-
!a && G && (
|
|
13117
|
+
!a && G && (vt.abortLivenessRequest(), u({
|
|
13113
13118
|
action: yr.CLOSE,
|
|
13114
13119
|
data: oK({
|
|
13115
13120
|
status: Lr.ERROR,
|
|
@@ -13119,9 +13124,9 @@ function sK(e) {
|
|
|
13119
13124
|
} : {})
|
|
13120
13125
|
}), b(!1));
|
|
13121
13126
|
}, [G, a]), ze(() => {
|
|
13122
|
-
|
|
13127
|
+
vt.provideHeaders(I);
|
|
13123
13128
|
}, [I]), ze(() => {
|
|
13124
|
-
if (
|
|
13129
|
+
if (mt()) {
|
|
13125
13130
|
if (v.current) {
|
|
13126
13131
|
v.current = !1, B && A(Ne.RESTART);
|
|
13127
13132
|
return;
|
|
@@ -13260,7 +13265,7 @@ class yK extends HTMLElement {
|
|
|
13260
13265
|
});
|
|
13261
13266
|
}
|
|
13262
13267
|
get version() {
|
|
13263
|
-
return "".concat("8.3.
|
|
13268
|
+
return "".concat("8.3.2198-nightly".trim());
|
|
13264
13269
|
}
|
|
13265
13270
|
set translations(r) {
|
|
13266
13271
|
this._translations = r, this._mounted && this.render();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/vp-frontend-face-components",
|
|
3
|
-
"version": "8.3.
|
|
3
|
+
"version": "8.3.2198-nightly",
|
|
4
4
|
"description": "Regula framework agnostic web components to work with webcamera",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/main.iife.js",
|