bry-biometric-collector 2.2.3 → 2.2.4

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 CHANGED
@@ -10,10 +10,13 @@ Face collector
10
10
 
11
11
  # **Building**
12
12
 
13
+ nvm use install / use
13
14
  npm i
14
15
  npm run build
15
16
 
16
- In dist folder you should get the biometric-collector.js script and a folder containing the weights used to perform image recognition. To use the web-component, refer to the example at [client integration](https://git.bry.com.br/psbio/coletor/bry-collector-component-client).
17
+ In dist folder you should get the biometric-collector.js script and a folder containing the weights used to perform image recognition. To use the web-component, refer to the example at [client integration](https://git.bry.com.br/psbio/coletor/bry-collector-component-client). Clone the project and place it in the same root path as the project, then rename the bry-collector-component-client directory to `"client"`.
18
+
19
+ npm run build-and-copy
17
20
 
18
21
  There is also a development server complete with HMR, thanks to Vite. However the development server mode is limited because it cannot access the relevant endpoints. To run the development server run:
19
22
 
@@ -1,6 +1,6 @@
1
- import { aO as S, S as V, r as P, t as B, w as Z, x as n, y as g, B as b, G as k, H as v, O as r, Q as I, aZ as A, a_ as L, a$ as D, b0 as R, D as w, b1 as h, I as E, aI as O, b2 as M, b3 as H, E as y, J as U, N as z, L as q, P as j, aD as T, W as F, an as K } from "./main_0b5de60d_2.2.3.js";
1
+ import { aN as H, S as V, r as P, t as B, w as Z, x as n, y as g, B as b, G as k, H as v, O as r, Q as I, aZ as A, a_ as L, a$ as D, b0 as R, D as w, b1 as h, I as E, aH as O, b2 as N, b3 as S, E as y, J as U, N as z, L as q, P as j, aC as T, W as F, am as K } from "./main_b9c95070_2.2.4.js";
2
2
  var C = /* @__PURE__ */ ((c) => (c.OK = "OK", c.DEVICE_NOT_FOUND_ERROR = "DEVICE_NOT_FOUND_ERROR", c.CAMERA_DENIED_ERROR = "CAMERA_DENIED_ERROR", c.CAMERA_IN_USE_ERROR = "CAMERA_IN_USE_ERROR", c.CAMERA_CLOSED_ERROR = "CAMERA_CLOSED_ERROR", c.CAMERA_UNSUPPORTED = "CAMERA_UNSUPPORTED", c.CAMERA_ORIENTATION_PORTRAIT = "CAMERA_ORIENTATION_PORTRAIT", c.CAMERA_ORIENTATION_LANDSCAPE = "CAMERA_ORIENTATION_LANDSCAPE", c))(C || {});
3
- const G = S(
3
+ const G = H(
4
4
  "OK"
5
5
  /* OK */
6
6
  );
@@ -29,7 +29,7 @@ function J(c) {
29
29
  ), x = !0);
30
30
  },
31
31
  p(t, l) {
32
- h(e, f = M(d, [
32
+ h(e, f = N(d, [
33
33
  { class: "text-[8em] mx-auto" },
34
34
  { xmlns: "http://www.w3.org/2000/svg" },
35
35
  { width: "1em" },
@@ -70,7 +70,7 @@ function Q(c) {
70
70
  ), x = !0);
71
71
  },
72
72
  p(t, l) {
73
- h(e, f = M(d, [
73
+ h(e, f = N(d, [
74
74
  { class: "text-[8em] mx-auto" },
75
75
  { xmlns: "http://www.w3.org/2000/svg" },
76
76
  { width: "1em" },
@@ -111,7 +111,7 @@ function W(c) {
111
111
  ), x = !0);
112
112
  },
113
113
  p(t, l) {
114
- h(e, f = M(d, [
114
+ h(e, f = N(d, [
115
115
  { class: "text-[8em] mx-auto" },
116
116
  { xmlns: "http://www.w3.org/2000/svg" },
117
117
  { width: "1em" },
@@ -152,7 +152,7 @@ function X(c) {
152
152
  ), x = !0);
153
153
  },
154
154
  p(t, l) {
155
- h(e, f = M(d, [
155
+ h(e, f = N(d, [
156
156
  { class: "text-[8em] mx-auto" },
157
157
  { xmlns: "http://www.w3.org/2000/svg" },
158
158
  { width: "1em" },
@@ -193,7 +193,7 @@ function Y(c) {
193
193
  ), x = !0);
194
194
  },
195
195
  p(t, l) {
196
- h(e, f = M(d, [
196
+ h(e, f = N(d, [
197
197
  { class: "text-[8em] mx-auto" },
198
198
  { xmlns: "http://www.w3.org/2000/svg" },
199
199
  { width: "1em" },
@@ -234,7 +234,7 @@ function $(c) {
234
234
  ), x = !0);
235
235
  },
236
236
  p(t, l) {
237
- h(e, f = M(d, [
237
+ h(e, f = N(d, [
238
238
  { class: "text-[8em] mx-auto" },
239
239
  { xmlns: "http://www.w3.org/2000/svg" },
240
240
  { width: "1em" },
@@ -275,7 +275,7 @@ function tt(c) {
275
275
  ), x = !0);
276
276
  },
277
277
  p(t, l) {
278
- h(e, f = M(d, [
278
+ h(e, f = N(d, [
279
279
  { class: "text-[8em] mx-auto" },
280
280
  { xmlns: "http://www.w3.org/2000/svg" },
281
281
  { width: "1em" },
@@ -412,11 +412,11 @@ class st extends V {
412
412
  customElements.define("camera-status", st);
413
413
  function at(c) {
414
414
  let e, m, u, s, o, a, _, i, x, p, d;
415
- e = new H({});
415
+ e = new S({});
416
416
  let f = [
417
417
  { xmlns: "http://www.w3.org/2000/svg" },
418
- { width: "3em" },
419
- { height: "3em" },
418
+ { width: "2em" },
419
+ { height: "2em" },
420
420
  { viewBox: "0 0 256 256" },
421
421
  /*$$props*/
422
422
  c[3]
@@ -429,26 +429,26 @@ function at(c) {
429
429
  c[2].length == 1, v(s, "class", "ce-dui-btn ce-dui-btn-ghost m-1"), v(u, "class", i = "ce-dui-dropdown ce-dui-dropdown-top absolute z-10 right-0 sm:block " + /*className*/
430
430
  c[0]);
431
431
  },
432
- m(l, N) {
433
- U(e, l, N), n(l, m, N), n(l, u, N), E(u, s), E(s, o), E(o, a), x = !0, p || (d = O(
432
+ m(l, M) {
433
+ U(e, l, M), n(l, m, M), n(l, u, M), E(u, s), E(s, o), E(o, a), x = !0, p || (d = O(
434
434
  u,
435
435
  "click",
436
436
  /*click_handler*/
437
437
  c[4]
438
438
  ), p = !0);
439
439
  },
440
- p(l, [N]) {
441
- h(o, t = M(f, [
440
+ p(l, [M]) {
441
+ h(o, t = N(f, [
442
442
  { xmlns: "http://www.w3.org/2000/svg" },
443
- { width: "3em" },
444
- { height: "3em" },
443
+ { width: "2em" },
444
+ { height: "2em" },
445
445
  { viewBox: "0 0 256 256" },
446
- N & /*$$props*/
446
+ M & /*$$props*/
447
447
  8 && /*$$props*/
448
448
  l[3]
449
- ])), (!x || N & /*$cameraDevicesStore*/
449
+ ])), (!x || M & /*$cameraDevicesStore*/
450
450
  4 && _ !== (_ = /*$cameraDevicesStore*/
451
- l[2].length == 1)) && (s.hidden = _), (!x || N & /*className*/
451
+ l[2].length == 1)) && (s.hidden = _), (!x || M & /*className*/
452
452
  1 && i !== (i = "ce-dui-dropdown ce-dui-dropdown-top absolute z-10 right-0 sm:block " + /*className*/
453
453
  l[0])) && v(u, "class", i);
454
454
  },