bry-biometric-collector 2.2.19 → 2.2.20
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/{DocumentCollector_db1e89c0_2.2.19.js → DocumentCollector_718cc068_2.2.20.js} +3 -3
- package/dist/{FaceCollector_046b1e47_2.2.19.js → FaceCollector_3bf9b1e0_2.2.20.js} +421 -421
- package/dist/{TakePictureBtn_77d8280d_2.2.19.js → TakePictureBtn_7eac14d6_2.2.20.js} +1 -1
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{fingersApi_d1426701_2.2.19.js → fingersApi_8eda7ddd_2.2.20.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/{main_b20b5c3f_2.2.19.js → main_56b6ad2b_2.2.20.js} +18 -18
- package/package.json +1 -1
- /package/dist/{en-us_901680c0_2.2.19.js → en-us_901680c0_2.2.20.js} +0 -0
- /package/dist/{es-cl_1fe1aaa9_2.2.19.js → es-cl_1fe1aaa9_2.2.20.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_2.2.19.js → face_api_0e3ce8c8_2.2.20.js} +0 -0
- /package/dist/{index-no-detector_4b302e78_2.2.19.js → index-no-detector_4b302e78_2.2.20.js} +0 -0
- /package/dist/{pt-br_bef1149f_2.2.19.js → pt-br_bef1149f_2.2.20.js} +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { aT as Y, S as j, q as F, r as K, t as q, w as f, L as B, x as S, z as U, B as _, H as d, I as L, $ as W, U as Q, ad as Z, K as V, b5 as I, b6 as H, b7 as G, b8 as T, N as M, y as k, b9 as g, D as w, E as x, ba as P, G as C, bb as y, aO as $, C as z, aP as ee, O as te, Q as le, aQ as ae, aH as X, X as se, bc as ie } from "./
|
1
|
+
import { aT as Y, S as j, q as F, r as K, t as q, w as f, L as B, x as S, z as U, B as _, H as d, I as L, $ as W, U as Q, ad as Z, K as V, b5 as I, b6 as H, b7 as G, b8 as T, N as M, y as k, b9 as g, D as w, E as x, ba as P, G as C, bb as y, aO as $, C as z, aP as ee, O as te, Q as le, aQ as ae, aH as X, X as se, bc as ie } from "./main_56b6ad2b_2.2.20.js";
|
2
2
|
var D = /* @__PURE__ */ ((a) => (a.OK = "OK", a.DEVICE_NOT_FOUND_ERROR = "DEVICE_NOT_FOUND_ERROR", a.CAMERA_DENIED_ERROR = "CAMERA_DENIED_ERROR", a.CAMERA_IN_USE_ERROR = "CAMERA_IN_USE_ERROR", a.CAMERA_CLOSED_ERROR = "CAMERA_CLOSED_ERROR", a.CAMERA_UNSUPPORTED = "CAMERA_UNSUPPORTED", a.CAMERA_ORIENTATION_PORTRAIT = "CAMERA_ORIENTATION_PORTRAIT", a.CAMERA_ORIENTATION_LANDSCAPE = "CAMERA_ORIENTATION_LANDSCAPE", a))(D || {});
|
3
3
|
const J = Y(
|
4
4
|
"OK"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { u as D, $ as m, n as C, g as b, i as y, s as l, a as F, F as U, b as M, c, v as x, d as P, A as B, e as I, h as g, f as v, j as W, k as R, l as $, m as k, o as w, p as V } from "./
|
1
|
+
import { u as D, $ as m, n as C, g as b, i as y, s as l, a as F, F as U, b as M, c, v as x, d as P, A as B, e as I, h as g, f as v, j as W, k as R, l as $, m as k, o as w, p as V } from "./main_56b6ad2b_2.2.20.js";
|
2
2
|
const f = D(m);
|
3
3
|
var X = /* @__PURE__ */ ((n) => (n.EXTENSION_MISSING = "EXTENSION_MISSING", n.USER_CANCELLED = "USER_CANCELLED", n.UNAUTHORIZED_EXTENSION = "UNAUTHORIZED_EXTENSION", n.SCANNER_NOT_FOUND = "SCANNER_NOT_FOUND", n.EXTENSION_MODULE_NOT_INSTALLED = "EXTENSION_MODULE_NOT_INSTALLED", n.FINGER_NOT_REMOVED = "FINGER_NOT_REMOVED", n.UNKNOWN_ERROR = "UNKNOWN_ERROR", n.EVALUATE_BIOMETRICS_TIMEOUT = "EVALUATE_BIOMETRICS_TIMEOUT", n.EVALUATE_BIOMETRICS_NETWORK_ISSUE = "EVALUATE_BIOMETRICS_NETWORK_ISSUE", n))(X || {});
|
4
4
|
class r extends Error {
|
package/dist/index.js
CHANGED
@@ -7176,8 +7176,8 @@ function Td(A, e, t = !1) {
|
|
7176
7176
|
async function Vd(A) {
|
7177
7177
|
let e = new URL("/weights", document.baseURI).toString();
|
7178
7178
|
A && (e = A), console.log("requesting weights from", e), await Promise.all([
|
7179
|
-
(await import("./face_api_0e3ce8c8_2.2.
|
7180
|
-
(await import("./face_api_0e3ce8c8_2.2.
|
7179
|
+
(await import("./face_api_0e3ce8c8_2.2.20.js")).nets.tinyFaceDetector.load(e),
|
7180
|
+
(await import("./face_api_0e3ce8c8_2.2.20.js")).loadFaceLandmarkModel(e)
|
7181
7181
|
]);
|
7182
7182
|
}
|
7183
7183
|
function Jt() {
|
@@ -7734,8 +7734,8 @@ async function $d(A, e, t) {
|
|
7734
7734
|
if (console.error(o), o instanceof Gs) {
|
7735
7735
|
const i = o, n = i.response?.status, B = i.response?.data, I = i.response?.data?.bodyParts;
|
7736
7736
|
if ((B === void 0 || n === void 0) && Er.set(
|
7737
|
-
"
|
7738
|
-
/*
|
7737
|
+
"UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE"
|
7738
|
+
/* UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE */
|
7739
7739
|
), Array.isArray(I))
|
7740
7740
|
throw o;
|
7741
7741
|
n === 400 ? B.message === "error.template.extraction" ? (Er.set(
|
@@ -7754,8 +7754,8 @@ async function $d(A, e, t) {
|
|
7754
7754
|
"LIVENESS_EVALUATION_ERROR"
|
7755
7755
|
/* LIVENESS_EVALUATION_ERROR */
|
7756
7756
|
) : Er.set(
|
7757
|
-
"
|
7758
|
-
/*
|
7757
|
+
"UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE"
|
7758
|
+
/* UNABLE_TO_COMMUNICATE_WITH_TEMPLATE_EXTRACTION_SERVICE */
|
7759
7759
|
);
|
7760
7760
|
}
|
7761
7761
|
}
|
@@ -10150,13 +10150,13 @@ const OE = 5, Pn = W(!0), TE = W(), PI = W(!1), VE = W(0), XE = W({
|
|
10150
10150
|
height: 0
|
10151
10151
|
});
|
10152
10152
|
async function gf() {
|
10153
|
-
return new (await import("./face_api_0e3ce8c8_2.2.
|
10153
|
+
return new (await import("./face_api_0e3ce8c8_2.2.20.js")).TinyFaceDetectorOptions({
|
10154
10154
|
scoreThreshold: 0.6
|
10155
10155
|
});
|
10156
10156
|
}
|
10157
10157
|
async function sf(A, e, t, r = !1) {
|
10158
10158
|
if (t) {
|
10159
|
-
const C = (await import("./face_api_0e3ce8c8_2.2.
|
10159
|
+
const C = (await import("./face_api_0e3ce8c8_2.2.20.js")).draw;
|
10160
10160
|
C.drawDetections(e, A), new C.DrawFaceLandmarks(A.landmarks, { pointColor: "gold" }).draw(e);
|
10161
10161
|
}
|
10162
10162
|
const o = A.landmarks.positions, i = ZE(o), n = await WE(o), B = A.detection.box, I = await YE(B, n, e, t);
|
@@ -10167,17 +10167,17 @@ function ZE(A) {
|
|
10167
10167
|
return bi(e, t);
|
10168
10168
|
}
|
10169
10169
|
async function WE(A) {
|
10170
|
-
const e = (await import("./face_api_0e3ce8c8_2.2.
|
10170
|
+
const e = (await import("./face_api_0e3ce8c8_2.2.20.js")).Point;
|
10171
10171
|
let t = A[37].add(A[38]).add(A[40]).add(A[41]), r = A[43].add(A[44]).add(A[46]).add(A[47]);
|
10172
10172
|
t = t.div(new e(4, 4)), r = r.div(new e(4, 4));
|
10173
10173
|
const o = bi(r, t);
|
10174
10174
|
return VE.set(o), o;
|
10175
10175
|
}
|
10176
10176
|
async function YE(A, e, t, r) {
|
10177
|
-
const o = (await import("./face_api_0e3ce8c8_2.2.
|
10177
|
+
const o = (await import("./face_api_0e3ce8c8_2.2.20.js")).Point;
|
10178
10178
|
let i = 2.5, n = 0.8;
|
10179
10179
|
const B = A.topLeft.x - e * 0.3, I = A.topLeft.y - i * (e * 0.5), C = A.bottomLeft.x - e * 0.3, l = A.bottomLeft.y + n * (e * 0.5), p = A.bottomRight.x + e * 0.3, b = A.bottomRight.y + e * 0.5, y = bi(new o(C, l), new o(B, I)), D = bi(new o(C, l), new o(p, b)), U = t.getContext("2d");
|
10180
|
-
return U.beginPath(), U.strokeStyle = "gold", TE.set(new (await import("./face_api_0e3ce8c8_2.2.
|
10180
|
+
return U.beginPath(), U.strokeStyle = "gold", TE.set(new (await import("./face_api_0e3ce8c8_2.2.20.js")).Box({ x: B, y: I, width: D, height: y })), U.rect(B, I, D, y), r && U.stroke(), {
|
10181
10181
|
topLeftX: B,
|
10182
10182
|
topLeftY: I,
|
10183
10183
|
bottomRightX: p,
|
@@ -22898,7 +22898,7 @@ function oB(A) {
|
|
22898
22898
|
return this;
|
22899
22899
|
}
|
22900
22900
|
async function iB(A, e) {
|
22901
|
-
return await import("./
|
22901
|
+
return await import("./fingersApi_8eda7ddd_2.2.20.js").then((t) => t.captureSingleFinger(A, e));
|
22902
22902
|
}
|
22903
22903
|
function bd(A, e, t) {
|
22904
22904
|
let r, o, i, n, B, I, C, l, p, b, y, D, U, f, P, X, z, dA, iA, j, gA, T, CA, LA, ce, qe, He, eA, xe, ie, mA, ve, st, S;
|
@@ -22906,7 +22906,7 @@ function bd(A, e, t) {
|
|
22906
22906
|
let { lottie_color: k = "71 89 124" } = e, { extension_name: $ = "BryWebExtension" } = e, { extension_url_chrome: rA } = e, { extension_url_mozilla: lA } = e, { min_nfiq_acceptable: nA = 3 } = e;
|
22907
22907
|
CE(nA);
|
22908
22908
|
let { show_theme_picker: fA = "true" } = e, { video_dimensions: oA } = e, { enable_minutiae: vA } = e, { collector_select: bA = "BOTH" } = e, { import_lottie: JA = "true" } = e, { hide_tabs: MA = "false" } = e, { import_extension_script: OA = "false" } = e, { extension_url_script: re } = e, { liveness_enable: kA = "false" } = e, { weights_path: Ie = "https://unpkg.com/bry-biometric-collector@latest/dist/weights/" } = e, { evaluate_photo: Ce = "true" } = e, { show_capture_button: jA = "true" } = e, { show_unconformities: pe = "true" } = e, { video_overlay: _A = "white" } = e, { video_overlay_transparency: XA = 0 } = e, { show_config_button: Me = "true" } = e, { show_auto_capture_button: ue = "false" } = e, { show_camera_button: et = "true" } = e, { language: we = QI() } = e, { show_justification_field: ne = "true" } = e, { min_eye_to_eye_dist: SA = 0 } = e;
|
22909
|
-
Xr("en", () => import("./en-us_901680c0_2.2.
|
22909
|
+
Xr("en", () => import("./en-us_901680c0_2.2.20.js")), Xr("pt", () => import("./pt-br_bef1149f_2.2.20.js")), Xr("es", () => import("./es-cl_1fe1aaa9_2.2.20.js")), vn({
|
22910
22910
|
fallbackLocale: "pt",
|
22911
22911
|
initialLocale: we
|
22912
22912
|
});
|
@@ -23072,10 +23072,10 @@ function bd(A, e, t) {
|
|
23072
23072
|
return wA(Gn, l = v, l), this;
|
23073
23073
|
}
|
23074
23074
|
async function Ut() {
|
23075
|
-
return t(24, QA = (await import("./
|
23075
|
+
return t(24, QA = (await import("./FaceCollector_3bf9b1e0_2.2.20.js")).default), this;
|
23076
23076
|
}
|
23077
23077
|
async function sr() {
|
23078
|
-
return t(25, RA = (await import("./
|
23078
|
+
return t(25, RA = (await import("./DocumentCollector_718cc068_2.2.20.js")).default), this;
|
23079
23079
|
}
|
23080
23080
|
function Sr(v) {
|
23081
23081
|
Ot(v);
|
@@ -23688,9 +23688,9 @@ class nB extends De {
|
|
23688
23688
|
}
|
23689
23689
|
}
|
23690
23690
|
customElements.define("biometric-collector", nB);
|
23691
|
-
Xr("en", () => import("./en-us_901680c0_2.2.
|
23692
|
-
Xr("pt", () => import("./pt-br_bef1149f_2.2.
|
23693
|
-
Xr("es", () => import("./es-cl_1fe1aaa9_2.2.
|
23691
|
+
Xr("en", () => import("./en-us_901680c0_2.2.20.js"));
|
23692
|
+
Xr("pt", () => import("./pt-br_bef1149f_2.2.20.js"));
|
23693
|
+
Xr("es", () => import("./es-cl_1fe1aaa9_2.2.20.js"));
|
23694
23694
|
vn({
|
23695
23695
|
fallbackLocale: "pt",
|
23696
23696
|
initialLocale: QI()
|
package/package.json
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
"name": "bry-biometric-collector",
|
3
3
|
"private": false,
|
4
4
|
"description": "BRy web-collector component for biometric capture.",
|
5
|
-
"version": "2.2.
|
5
|
+
"version": "2.2.20",
|
6
6
|
"main": "dist/bry-biometric-collector-main.js",
|
7
7
|
"type": "module",
|
8
8
|
"license": "UNLICENSED",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|