bry-biometric-collector 2.2.23 → 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,4 +1,4 @@
1
- import { bb as e } from "./main_af3a4af6_2.2.23.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",
@@ -123,7 +123,8 @@ const e = {
123
123
  lackOfSharpness: "Lack of sharpness",
124
124
  unnaturalColoring: "Unnatural coloring",
125
125
  initiatingCamera: "Initiating video...",
126
- obtainingPicture: "Obtaining photo..."
126
+ obtainingPicture: "Obtaining photo...",
127
+ faceTooSmall: "The face is too far from the camera, please get closer."
127
128
  }, f = {
128
129
  error: {
129
130
  error: "Error",
@@ -181,14 +182,19 @@ const e = {
181
182
  dontOpenMouth: "Close your mouth",
182
183
  stayInFrame: "Center your face",
183
184
  loading: "Loading...",
184
- capture: "Capture"
185
- }, R = {
185
+ capture: "Capture",
186
+ faceWasNotFound: "Face not found",
187
+ illuminationTooLow: "Lighting too low",
188
+ illuminationTooHigh: "Lighting too high",
189
+ lowSharpness: "Low sharpness"
190
+ }, T = {
186
191
  captured: "Document captured!",
187
192
  comeCloserCamera: "Get closer",
188
193
  moveAwayCamera: "Move away",
189
194
  stayInFrame: "Center the document",
190
- capture: "Capture"
191
- }, T = {
195
+ capture: "Capture",
196
+ docWasNotFound: "Document not found"
197
+ }, R = {
192
198
  close: "close",
193
199
  instructions: "To download the driver for your scanner, please select the brand of your scanner:",
194
200
  obs: "Please also do not forget to disconnect your scanner before installing the driver.",
@@ -226,38 +232,38 @@ const e = {
226
232
  unknownDuplicateFingerSwal: a,
227
233
  signerNotInstalledSwal: n,
228
234
  agrFingerNotMatched: i,
229
- agrFinger: r,
230
- duplicateFingerSwal: o,
235
+ agrFinger: o,
236
+ duplicateFingerSwal: r,
231
237
  easterEggduplicateFingerSwal: s,
232
238
  automaticHasAlreadyRunSwal: l,
233
239
  dirtyScannerSwal: c,
234
240
  missingScannerSwal: d,
235
241
  fingerDisplayArea: u,
236
242
  buttons: g,
237
- alertExtension: p,
238
- alertCameraDisallowed: h,
243
+ alertExtension: h,
244
+ alertCameraDisallowed: p,
239
245
  unconformities: m,
240
246
  liveness: f,
241
247
  faceCollector: y,
242
- docCollector: R,
243
- configModal: T,
248
+ docCollector: T,
249
+ configModal: R,
244
250
  toast: F,
245
251
  cameraStatus: v
246
252
  };
247
253
  export {
248
- r as agrFinger,
254
+ o as agrFinger,
249
255
  i as agrFingerNotMatched,
250
- h as alertCameraDisallowed,
251
- p as alertExtension,
256
+ p as alertCameraDisallowed,
257
+ h as alertExtension,
252
258
  l as automaticHasAlreadyRunSwal,
253
259
  t as badFingerQualitySwal,
254
260
  g as buttons,
255
261
  v as cameraStatus,
256
- T as configModal,
262
+ R as configModal,
257
263
  C as default,
258
264
  c as dirtyScannerSwal,
259
- R as docCollector,
260
- o as duplicateFingerSwal,
265
+ T as docCollector,
266
+ r as duplicateFingerSwal,
261
267
  s as easterEggduplicateFingerSwal,
262
268
  y as faceCollector,
263
269
  u as fingerDisplayArea,
@@ -121,7 +121,8 @@ const e = {
121
121
  nonUniformBackground: "Fondo no uniforme",
122
122
  outOfFrame: "Fuera de encuadre",
123
123
  lackOfSharpness: "Falta de nitidez",
124
- unnaturalColoring: "Coloración no natural"
124
+ unnaturalColoring: "Coloración no natural",
125
+ faceTooSmall: "El rostro está muy lejos de la cámara, por favor acérquese."
125
126
  }, g = {
126
127
  error: {
127
128
  error: "Error",
@@ -181,12 +182,17 @@ const e = {
181
182
  comeCloserCamera: "Acércate",
182
183
  dontOpenMouth: "Cierra la boca",
183
184
  stayInFrame: "Céntrate en el marco",
184
- loading: "Cargando..."
185
+ loading: "Cargando...",
186
+ faceWasNotFound: "Rostro no encontrado",
187
+ illuminationTooLow: "Iluminación baja",
188
+ illuminationTooHigh: "Iluminación alta",
189
+ lowSharpness: "Baja nitidez"
185
190
  }, D = {
186
191
  captured: "¡Documento capturado!",
187
192
  comeCloserCamera: "Acércate",
188
193
  moveAwayCamera: "Aléjate",
189
- stayInFrame: "Céntrate en el documento"
194
+ stayInFrame: "Céntrate en el documento",
195
+ docWasNotFound: "Documento no encontrado"
190
196
  }, R = {
191
197
  close: "Cerrar",
192
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_af3a4af6_2.2.23.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
@@ -37,12 +37,14 @@ export enum Props {
37
37
  EVALUATE_PHOTO = 'evaluate_photo',
38
38
  SHOW_CAPTURE_BUTTON = 'show_capture_button',
39
39
  SHOW_UNCONFORMITIES = 'show_unconformities',
40
- VIDEO_FILTER = 'video_filter',
40
+ VIDEO_OVERLAY = 'video_overlay',
41
+ VIDEO_OVERLAY_TRANSPARENCY= 'video_overlay_transparency',
41
42
  SHOW_CONFIG_BUTTON = 'show_config_button',
42
43
  SHOW_AUTO_CAPTURE_BUTTON = 'show_auto_capture_button',
43
44
  SHOW_CAMERA_BUTTON = 'show_camera_button',
44
45
  LANGUAGE = 'language',
45
- SHOW_JUSTIFICATION_FIELD = 'show_justification_field'
46
+ SHOW_JUSTIFICATION_FIELD = 'show_justification_field',
47
+ MIN_EYE_TO_EYE_DIST = 'MIN_EYE_TO_EYE_DIST'
46
48
  }
47
49
 
48
50
  export const enum BodyPartNames {
@@ -100,6 +102,16 @@ export type documentUnconformitiesValidated = BryWebCollectorComponentEvent<{
100
102
  errorCode?: string;
101
103
  status: requestResultEnum;
102
104
  }>;
105
+ export type lowQualityFaceEvent = CustomEvent<{
106
+ bodyParts: BodyPart[];
107
+ errorCode: string;
108
+ translatedError: string;
109
+ }>;
110
+ export type extensionErrorEvent = CustomEvent<{
111
+ code: number;
112
+ description: string;
113
+ key: string;
114
+ }>;
103
115
 
104
116
  declare global {
105
117
  interface BryWebCollectorComponent extends HTMLElement {
@@ -135,12 +147,14 @@ declare global {
135
147
  [Props.EVALUATE_PHOTO]: string;
136
148
  [Props.SHOW_CAPTURE_BUTTON]: string;
137
149
  [Props.SHOW_UNCONFORMITIES]: string;
138
- [Props.VIDEO_FILTER]: string;
150
+ [Props.VIDEO_OVERLAY]: string;
151
+ [Props.VIDEO_OVERLAY_TRANSPARENCY]: number;
139
152
  [Props.SHOW_CONFIG_BUTTON]: string;
140
153
  [Props.SHOW_AUTO_CAPTURE_BUTTON]: string;
141
154
  [Props.SHOW_CAMERA_BUTTON]: string;
142
155
  [Props.LANGUAGE]: string;
143
156
  [Props.SHOW_JUSTIFICATION_FIELD]: string;
157
+ [Props.MIN_EYE_TO_EYE_DIST]: number;
144
158
  /**
145
159
  * Clears fingers and face, to make ready for a new collection.
146
160
  * Will not clear jwtToken.
@@ -224,5 +238,7 @@ declare global {
224
238
  'export-document': exportDocument;
225
239
  'face-unconformities-validated': faceUnconformitiesValidated;
226
240
  'document-unconformities-validated': documentUnconformitiesValidated;
241
+ 'low-quality-face': lowQualityFaceEvent;
242
+ 'extension-error': extensionErrorEvent;
227
243
  }
228
244
  }
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { bb as e } from "./main_af3a4af6_2.2.23.js";
1
+ import { bd as e } from "./main_0c38f58d_2.2.24.js";
2
2
  export {
3
3
  e as default
4
4
  };