bry-biometric-collector 2.2.22 → 2.2.24

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.
@@ -1,6 +1,6 @@
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_140d65a3_2.2.22.js";
1
+ import { aS as X, 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, V as G, ad as Z, K as V, b5 as I, b6 as H, b7 as Q, 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, aN as $, C as z, aO as ee, O as te, Q as le, aP as ae, aG as Y, Y as se, bc as ie } from "./main_0c38f58d_2.2.24.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
- const J = Y(
3
+ const J = X(
4
4
  "OK"
5
5
  /* OK */
6
6
  );
@@ -457,7 +457,7 @@ function de(a) {
457
457
  }
458
458
  function _e(a, t, l) {
459
459
  let r, i, s, c;
460
- L(a, J, (v) => l(1, r = v)), L(a, W, (v) => l(2, i = v)), L(a, Q, (v) => l(3, s = v)), L(a, Z, (v) => l(4, c = v));
460
+ L(a, J, (v) => l(1, r = v)), L(a, W, (v) => l(2, i = v)), L(a, G, (v) => l(3, s = v)), L(a, Z, (v) => l(4, c = v));
461
461
  let { handler: o = () => {
462
462
  } } = t;
463
463
  (r === D.CAMERA_ORIENTATION_LANDSCAPE || r === D.CAMERA_ORIENTATION_PORTRAIT) && setTimeout(
@@ -477,9 +477,9 @@ function _e(a, t, l) {
477
477
  }, m = () => {
478
478
  o();
479
479
  }, h = () => {
480
- V(Z, c = !0, c), G(!0);
480
+ V(Z, c = !0, c), Q(!0);
481
481
  }, b = () => {
482
- V(Z, c = !0, c), G(!1);
482
+ V(Z, c = !0, c), Q(!1);
483
483
  };
484
484
  return a.$$set = (v) => {
485
485
  l(5, t = I(I({}, t), H(v))), "handler" in v && l(0, o = v.handler);
@@ -583,9 +583,9 @@ function ve(a) {
583
583
  }
584
584
  function pe(a, t, l) {
585
585
  let r, i, s;
586
- L(a, X, (o) => l(0, r = o)), L(a, Q, (o) => l(1, i = o)), L(a, se, (o) => l(2, s = o));
586
+ L(a, Y, (o) => l(0, r = o)), L(a, G, (o) => l(1, i = o)), L(a, se, (o) => l(2, s = o));
587
587
  const c = () => {
588
- V(X, r = !r, r);
588
+ V(Y, r = !r, r);
589
589
  };
590
590
  return a.$$set = (o) => {
591
591
  l(3, t = I(I({}, t), H(o)));
@@ -771,7 +771,7 @@ function Ee(a) {
771
771
  }
772
772
  function Se(a, t, l) {
773
773
  let r, i;
774
- L(a, Q, (m) => l(4, r = m)), L(a, W, (m) => l(5, i = m));
774
+ L(a, G, (m) => l(4, r = m)), L(a, W, (m) => l(5, i = m));
775
775
  let { handler: s = () => {
776
776
  } } = t, { id: c = "" } = t, { disabled: o = !1 } = t, { hidden: n = !1 } = t;
777
777
  const p = () => s(), R = () => s(), A = () => s();
@@ -1,4 +1,4 @@
1
- import { bd as e } from "./main_140d65a3_2.2.22.js";
1
+ import { bd as e } from "./main_0c38f58d_2.2.24.js";
2
2
  export {
3
3
  e as default
4
4
  };
@@ -24,12 +24,12 @@ const e = {
24
24
  text: "Attention AGR, the collected finger does not belong to you or is in the wrong position. Please collect your finger in the indicated position.",
25
25
  retry: "Capture again",
26
26
  cancel: "Cancel"
27
- }, r = {
27
+ }, o = {
28
28
  title: "Error",
29
29
  text: "Attention AGR, the collected finger belongs to you! Please do customer pickup at this time!",
30
30
  retry: "Capture again",
31
31
  cancel: "Cancel"
32
- }, o = {
32
+ }, r = {
33
33
  title: "Error",
34
34
  text: "Duplicate finger detected! The <b>{finger1}</b> and the <b>{finger2}</b> are the same!",
35
35
  retry: "Capture again",
@@ -97,10 +97,10 @@ const e = {
97
97
  theme: "Theme",
98
98
  finish: "Finish",
99
99
  startCapture: "I'm ready"
100
- }, p = {
100
+ }, h = {
101
101
  extensionNotFound: "The extension couldn't be identified. Please install it from here",
102
102
  extension: "extension"
103
- }, h = {
103
+ }, p = {
104
104
  permissionNotGranted: "Permission to access the camera was denied, please enable and refresh."
105
105
  }, m = {
106
106
  illumination: "Heterogeneous illumination",
@@ -182,13 +182,18 @@ const e = {
182
182
  dontOpenMouth: "Close your mouth",
183
183
  stayInFrame: "Center your face",
184
184
  loading: "Loading...",
185
- capture: "Capture"
185
+ capture: "Capture",
186
+ faceWasNotFound: "Face not found",
187
+ illuminationTooLow: "Lighting too low",
188
+ illuminationTooHigh: "Lighting too high",
189
+ lowSharpness: "Low sharpness"
186
190
  }, T = {
187
191
  captured: "Document captured!",
188
192
  comeCloserCamera: "Get closer",
189
193
  moveAwayCamera: "Move away",
190
194
  stayInFrame: "Center the document",
191
- capture: "Capture"
195
+ capture: "Capture",
196
+ docWasNotFound: "Document not found"
192
197
  }, R = {
193
198
  close: "close",
194
199
  instructions: "To download the driver for your scanner, please select the brand of your scanner:",
@@ -227,16 +232,16 @@ const e = {
227
232
  unknownDuplicateFingerSwal: a,
228
233
  signerNotInstalledSwal: n,
229
234
  agrFingerNotMatched: i,
230
- agrFinger: r,
231
- duplicateFingerSwal: o,
235
+ agrFinger: o,
236
+ duplicateFingerSwal: r,
232
237
  easterEggduplicateFingerSwal: s,
233
238
  automaticHasAlreadyRunSwal: l,
234
239
  dirtyScannerSwal: c,
235
240
  missingScannerSwal: d,
236
241
  fingerDisplayArea: u,
237
242
  buttons: g,
238
- alertExtension: p,
239
- alertCameraDisallowed: h,
243
+ alertExtension: h,
244
+ alertCameraDisallowed: p,
240
245
  unconformities: m,
241
246
  liveness: f,
242
247
  faceCollector: y,
@@ -246,10 +251,10 @@ const e = {
246
251
  cameraStatus: v
247
252
  };
248
253
  export {
249
- r as agrFinger,
254
+ o as agrFinger,
250
255
  i as agrFingerNotMatched,
251
- h as alertCameraDisallowed,
252
- p as alertExtension,
256
+ p as alertCameraDisallowed,
257
+ h as alertExtension,
253
258
  l as automaticHasAlreadyRunSwal,
254
259
  t as badFingerQualitySwal,
255
260
  g as buttons,
@@ -258,7 +263,7 @@ export {
258
263
  C as default,
259
264
  c as dirtyScannerSwal,
260
265
  T as docCollector,
261
- o as duplicateFingerSwal,
266
+ r as duplicateFingerSwal,
262
267
  s as easterEggduplicateFingerSwal,
263
268
  y as faceCollector,
264
269
  u as fingerDisplayArea,
@@ -182,12 +182,17 @@ const e = {
182
182
  comeCloserCamera: "Acércate",
183
183
  dontOpenMouth: "Cierra la boca",
184
184
  stayInFrame: "Céntrate en el marco",
185
- loading: "Cargando..."
185
+ loading: "Cargando...",
186
+ faceWasNotFound: "Rostro no encontrado",
187
+ illuminationTooLow: "Iluminación baja",
188
+ illuminationTooHigh: "Iluminación alta",
189
+ lowSharpness: "Baja nitidez"
186
190
  }, D = {
187
191
  captured: "¡Documento capturado!",
188
192
  comeCloserCamera: "Acércate",
189
193
  moveAwayCamera: "Aléjate",
190
- stayInFrame: "Céntrate en el documento"
194
+ stayInFrame: "Céntrate en el documento",
195
+ docWasNotFound: "Documento no encontrado"
191
196
  }, R = {
192
197
  close: "Cerrar",
193
198
  instructions: "Para descargar el controlador de su lector biométrico, seleccione el modelo a continuación:",
@@ -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 "./main_140d65a3_2.2.22.js";
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_0c38f58d_2.2.24.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.d.ts CHANGED
@@ -107,6 +107,11 @@ export type lowQualityFaceEvent = CustomEvent<{
107
107
  errorCode: string;
108
108
  translatedError: string;
109
109
  }>;
110
+ export type extensionErrorEvent = CustomEvent<{
111
+ code: number;
112
+ description: string;
113
+ key: string;
114
+ }>;
110
115
 
111
116
  declare global {
112
117
  interface BryWebCollectorComponent extends HTMLElement {
@@ -234,5 +239,6 @@ declare global {
234
239
  'face-unconformities-validated': faceUnconformitiesValidated;
235
240
  'document-unconformities-validated': documentUnconformitiesValidated;
236
241
  'low-quality-face': lowQualityFaceEvent;
242
+ 'extension-error': extensionErrorEvent;
237
243
  }
238
244
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bd as e } from "./main_140d65a3_2.2.22.js";
1
+ import { bd as e } from "./main_0c38f58d_2.2.24.js";
2
2
  export {
3
3
  e as default
4
4
  };