bry-biometric-collector 3.3.0-RC09 → 3.3.0-RC11
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/{CaptureBar_1cc7f43c_3.3.0-RC09.js → CaptureBar_e46c45ec_3.3.0-RC11.js} +1 -1
- package/dist/{DocumentCollector_7823ce59_3.3.0-RC09.js → DocumentCollector_de7baafa_3.3.0-RC11.js} +5 -5
- package/dist/{FaceCollector_0816a7ab_3.3.0-RC09.js → FaceCollector_536c7465_3.3.0-RC11.js} +6 -6
- package/dist/{FaceOval_5296d98c_3.3.0-RC09.js → FaceOval_73747bd6_3.3.0-RC11.js} +2 -2
- package/dist/StreamCollector_1adea6c1_3.3.0-RC11.js +324 -0
- package/dist/{ValidationAlert_a0e7de22_3.3.0-RC09.js → ValidationAlert_bba56eb3_3.3.0-RC11.js} +1 -1
- package/dist/{___vite-browser-external_commonjs-proxy_68c5c4f2_3.3.0-RC09.js → ___vite-browser-external_commonjs-proxy_07f4ac3b_3.3.0-RC11.js} +1 -1
- package/dist/bry-biometric-collector-main.js +2 -2
- package/dist/{fingersApi_30d9a5ce_3.3.0-RC09.js → fingersApi_da2bebe6_3.3.0-RC11.js} +2 -2
- package/dist/index.js +2 -2
- package/dist/{index_c9f76cd7_3.3.0-RC09.js → index_6fff4b84_3.3.0-RC11.js} +3 -3
- package/dist/{index_8e78a016_3.3.0-RC09.js → index_fcfc4554_3.3.0-RC11.js} +3 -3
- package/dist/{main_bb8df2d0_3.3.0-RC09.js → main_f17fc861_3.3.0-RC11.js} +23 -23
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/StreamCollector_ce8ceb79_3.3.0-RC09.js +0 -335
- /package/dist/{en-us_c02e99cd_3.3.0-RC09.js → en-us_c02e99cd_3.3.0-RC11.js} +0 -0
- /package/dist/{es-cl_6f3eda53_3.3.0-RC09.js → es-cl_6f3eda53_3.3.0-RC11.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_3.3.0-RC09.js → face_api_0e3ce8c8_3.3.0-RC11.js} +0 -0
- /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC09.js → index-idlf-detector_39cfdffa_3.3.0-RC11.js} +0 -0
- /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC09.js → index-idlf-detector_a819b3c8_3.3.0-RC11.js} +0 -0
- /package/dist/{pt-br_e7d46668_3.3.0-RC09.js → pt-br_e7d46668_3.3.0-RC11.js} +0 -0
|
@@ -1,335 +0,0 @@
|
|
|
1
|
-
import { S as pe, x as be, y as ge, z as he, B as P, C as k, D as M, N, E as se, bd as m, G as ne, X as B, a0 as g, a1 as Z, a2 as E, a3 as J, H as ie, I as b, aa as S, a9 as Y, am as x, ac as T, au as $, av as ee, ah as L, T as I, ar as F, aA as ve, f as we, aB as u, aF as Ee, l as A, aK as ye, aM as te, aU as Ce, e as Ie, b4 as ze, aW as De, Z as R, _ as j, a4 as K, w as ke, aQ as Se, bc as Le } from "./main_bb8df2d0_3.3.0-RC09.js";
|
|
2
|
-
import { V as Fe, C as Be } from "./ValidationAlert_a0e7de22_3.3.0-RC09.js";
|
|
3
|
-
import { F as Oe } from "./FaceOval_5296d98c_3.3.0-RC09.js";
|
|
4
|
-
import "./face_api_0e3ce8c8_3.3.0-RC09.js";
|
|
5
|
-
function ae(s) {
|
|
6
|
-
let t, a, r, l, _;
|
|
7
|
-
return a = new Fe({}), l = new Oe({
|
|
8
|
-
props: { borderColor: (
|
|
9
|
-
/*ovalColor*/
|
|
10
|
-
s[5]
|
|
11
|
-
) }
|
|
12
|
-
}), {
|
|
13
|
-
c() {
|
|
14
|
-
t = M("div"), R(a.$$.fragment), r = N(), R(l.$$.fragment), ne(t, "class", "absolute inset-0 flex flex-col items-center mt-[4%] mb-[8%] z-50");
|
|
15
|
-
},
|
|
16
|
-
m(c, n) {
|
|
17
|
-
P(c, t, n), j(a, t, null), B(t, r), j(l, t, null), _ = !0;
|
|
18
|
-
},
|
|
19
|
-
p(c, n) {
|
|
20
|
-
const i = {};
|
|
21
|
-
n[0] & /*ovalColor*/
|
|
22
|
-
32 && (i.borderColor = /*ovalColor*/
|
|
23
|
-
c[5]), l.$set(i);
|
|
24
|
-
},
|
|
25
|
-
i(c) {
|
|
26
|
-
_ || (g(a.$$.fragment, c), g(l.$$.fragment, c), _ = !0);
|
|
27
|
-
},
|
|
28
|
-
o(c) {
|
|
29
|
-
E(a.$$.fragment, c), E(l.$$.fragment, c), _ = !1;
|
|
30
|
-
},
|
|
31
|
-
d(c) {
|
|
32
|
-
c && ie(t), K(a), K(l);
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
function re(s) {
|
|
37
|
-
let t, a;
|
|
38
|
-
return t = new Be({ props: { handler: (
|
|
39
|
-
/*func*/
|
|
40
|
-
s[12]
|
|
41
|
-
) } }), {
|
|
42
|
-
c() {
|
|
43
|
-
R(t.$$.fragment);
|
|
44
|
-
},
|
|
45
|
-
m(r, l) {
|
|
46
|
-
j(t, r, l), a = !0;
|
|
47
|
-
},
|
|
48
|
-
p: se,
|
|
49
|
-
i(r) {
|
|
50
|
-
a || (g(t.$$.fragment, r), a = !0);
|
|
51
|
-
},
|
|
52
|
-
o(r) {
|
|
53
|
-
E(t.$$.fragment, r), a = !1;
|
|
54
|
-
},
|
|
55
|
-
d(r) {
|
|
56
|
-
K(t, r);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
}
|
|
60
|
-
function Ve(s) {
|
|
61
|
-
let t, a, r, l, _, c, n = (
|
|
62
|
-
/*$ready*/
|
|
63
|
-
s[7] && !/*idrndClosed*/
|
|
64
|
-
s[3] && !/*idrndLoading*/
|
|
65
|
-
s[4] && ae(s)
|
|
66
|
-
), i = (
|
|
67
|
-
/*idrndClosed*/
|
|
68
|
-
s[3] && !/*idrndLoading*/
|
|
69
|
-
s[4] && re(s)
|
|
70
|
-
);
|
|
71
|
-
return {
|
|
72
|
-
c() {
|
|
73
|
-
t = M("div"), n && n.c(), a = N(), r = M("idlive-face-capture"), _ = N(), i && i.c(), this.c = se, m(r, "class", "w-full h-full"), m(r, "mask_hidden", ""), m(r, "auto_close_disabled", ""), m(
|
|
74
|
-
r,
|
|
75
|
-
"device_id",
|
|
76
|
-
/*$selectedVideoDeviceId*/
|
|
77
|
-
s[6]
|
|
78
|
-
), m(r, "face_not_centered_check_enabled", ""), m(r, "sunglasses_detected_check_enabled", ""), m(r, "mouth_open_check_enabled", ""), m(r, "face_blurry_check_enabled", ""), m(r, "dark_image_check_enabled", ""), m(r, "eyes_closed_check_enabled", ""), m(
|
|
79
|
-
r,
|
|
80
|
-
"payload_size",
|
|
81
|
-
/*livenessBlobSize*/
|
|
82
|
-
s[1]
|
|
83
|
-
), m(r, "style", l = /*idrndClosed*/
|
|
84
|
-
s[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;"), ne(t, "class", "flex justify-center w-full h-full relative bg-black");
|
|
85
|
-
},
|
|
86
|
-
m(o, d) {
|
|
87
|
-
P(o, t, d), n && n.m(t, null), B(t, a), B(t, r), s[11](r), B(t, _), i && i.m(t, null), c = !0;
|
|
88
|
-
},
|
|
89
|
-
p(o, d) {
|
|
90
|
-
/*$ready*/
|
|
91
|
-
o[7] && !/*idrndClosed*/
|
|
92
|
-
o[3] && !/*idrndLoading*/
|
|
93
|
-
o[4] ? n ? (n.p(o, d), d[0] & /*$ready, idrndClosed, idrndLoading*/
|
|
94
|
-
152 && g(n, 1)) : (n = ae(o), n.c(), g(n, 1), n.m(t, a)) : n && (Z(), E(n, 1, 1, () => {
|
|
95
|
-
n = null;
|
|
96
|
-
}), J()), (!c || d[0] & /*$selectedVideoDeviceId*/
|
|
97
|
-
64) && m(
|
|
98
|
-
r,
|
|
99
|
-
"device_id",
|
|
100
|
-
/*$selectedVideoDeviceId*/
|
|
101
|
-
o[6]
|
|
102
|
-
), (!c || d[0] & /*livenessBlobSize*/
|
|
103
|
-
2) && m(
|
|
104
|
-
r,
|
|
105
|
-
"payload_size",
|
|
106
|
-
/*livenessBlobSize*/
|
|
107
|
-
o[1]
|
|
108
|
-
), (!c || d[0] & /*idrndClosed*/
|
|
109
|
-
8 && l !== (l = /*idrndClosed*/
|
|
110
|
-
o[3] ? "opacity: 0; pointer-events: none;" : "opacity: 1;")) && m(r, "style", l), /*idrndClosed*/
|
|
111
|
-
o[3] && !/*idrndLoading*/
|
|
112
|
-
o[4] ? i ? (i.p(o, d), d[0] & /*idrndClosed, idrndLoading*/
|
|
113
|
-
24 && g(i, 1)) : (i = re(o), i.c(), g(i, 1), i.m(t, null)) : i && (Z(), E(i, 1, 1, () => {
|
|
114
|
-
i = null;
|
|
115
|
-
}), J());
|
|
116
|
-
},
|
|
117
|
-
i(o) {
|
|
118
|
-
c || (g(n), g(i), c = !0);
|
|
119
|
-
},
|
|
120
|
-
o(o) {
|
|
121
|
-
E(n), E(i), c = !1;
|
|
122
|
-
},
|
|
123
|
-
d(o) {
|
|
124
|
-
o && ie(t), n && n.d(), s[11](null), i && i.d();
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
function Te() {
|
|
129
|
-
({}).VITE_USE_DEV === "true" ? import("./index-idlf-detector_39cfdffa_3.3.0-RC09.js") : import("./index-idlf-detector_a819b3c8_3.3.0-RC09.js");
|
|
130
|
-
}
|
|
131
|
-
function Ae(s, t, a) {
|
|
132
|
-
let r, l, _, c, n, i, o, d, h, y;
|
|
133
|
-
b(s, S, (e) => a(6, r = e)), b(s, Y, (e) => a(16, l = e)), b(s, x, (e) => a(17, _ = e)), b(s, T, (e) => a(19, n = e)), b(s, $, (e) => a(20, i = e)), b(s, ee, (e) => a(21, o = e)), b(s, L, (e) => a(22, d = e)), b(s, I, (e) => a(7, h = e)), b(s, F, (e) => a(23, y = e));
|
|
134
|
-
let { livenessBlobSize: U } = t, { cameraDeviceId: z } = t;
|
|
135
|
-
const O = ke("data:image/png;base64");
|
|
136
|
-
b(s, O, (e) => a(18, c = e));
|
|
137
|
-
let { widgetInstance: f } = t, H = !1, v = !0, w = !0, D = !0, V = "text-blue-400";
|
|
138
|
-
ve(async () => {
|
|
139
|
-
we("Mounting Stream Collector!"), u(F, y = !0, y), u(I, h = !1, h), ce(), Te(), oe();
|
|
140
|
-
});
|
|
141
|
-
function ce() {
|
|
142
|
-
u(T, n = !1, n), u(Y, l = Ee.FRONT_CAMERA, l), D = document.hasFocus(), u(L, d = "faceCollector.stayInFrame", d);
|
|
143
|
-
}
|
|
144
|
-
function oe() {
|
|
145
|
-
f.addEventListener("open", async (e) => {
|
|
146
|
-
a(3, v = !1), a(4, w = !1), u(I, h = !0, h), u(F, y = !1, y), window.dispatchEvent(new CustomEvent(
|
|
147
|
-
"stream-ready",
|
|
148
|
-
{
|
|
149
|
-
detail: {
|
|
150
|
-
message: "Stream de vídeo pronto para captura"
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
));
|
|
154
|
-
}), f.addEventListener("error", (e) => {
|
|
155
|
-
A("Stream Collector error:", e), a(3, v = !0), a(4, w = !1), u(I, h = !1, h), window.dispatchEvent(new CustomEvent(
|
|
156
|
-
"stream-error",
|
|
157
|
-
{
|
|
158
|
-
detail: {
|
|
159
|
-
message: e.detail[0]?.message || "Erro na câmera",
|
|
160
|
-
error: e
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
));
|
|
164
|
-
}), f.addEventListener("faceDetection", (e) => {
|
|
165
|
-
u(
|
|
166
|
-
L,
|
|
167
|
-
d = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
168
|
-
d
|
|
169
|
-
), a(5, V = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
170
|
-
}), f.addEventListener("detection", (e) => {
|
|
171
|
-
u(
|
|
172
|
-
L,
|
|
173
|
-
d = e.detail[0].errors[0] ? "faceCollector.stayInFrame" : "faceCollector.capturing",
|
|
174
|
-
d
|
|
175
|
-
), a(5, V = e.detail[0].errors[0] ? "text-blue-400" : "text-green-400");
|
|
176
|
-
}), f.addEventListener("close", async (e) => {
|
|
177
|
-
a(3, v = !0), a(4, w = !1), D = D && document.hasFocus(), !n && !D && window.dispatchEvent(new CustomEvent(
|
|
178
|
-
"stream-lost-focus",
|
|
179
|
-
{
|
|
180
|
-
detail: { message: "Stream de vídeo foi fechado" }
|
|
181
|
-
}
|
|
182
|
-
));
|
|
183
|
-
}), f.addEventListener("initialize", async (e) => {
|
|
184
|
-
H = !0, u(ee, o = !0, o);
|
|
185
|
-
try {
|
|
186
|
-
f.setLicense(ye, "faceDetector");
|
|
187
|
-
} catch (p) {
|
|
188
|
-
A("Error setting license:", p);
|
|
189
|
-
}
|
|
190
|
-
!n && H && await W();
|
|
191
|
-
}), f.addEventListener("capture", async (e) => {
|
|
192
|
-
const { encryptedFile: p, photo: C } = e.detail[0];
|
|
193
|
-
u($, i = p, i);
|
|
194
|
-
const G = (await te(C)).split(",");
|
|
195
|
-
u(T, n = !0, n), u(O, c = G[0], c), u(x, _ = G[1], _);
|
|
196
|
-
try {
|
|
197
|
-
window.dispatchEvent(new CustomEvent(
|
|
198
|
-
"stream-capture",
|
|
199
|
-
{
|
|
200
|
-
detail: {
|
|
201
|
-
image: _,
|
|
202
|
-
blob: (await te(p)).split(",")[1],
|
|
203
|
-
status: "success"
|
|
204
|
-
}
|
|
205
|
-
}
|
|
206
|
-
));
|
|
207
|
-
} catch (Q) {
|
|
208
|
-
let X = Q instanceof Error ? Q.message : "UNKNOWN", _e = Se[X] || "Erro desconhecido";
|
|
209
|
-
window.dispatchEvent(new CustomEvent(
|
|
210
|
-
"stream-capture",
|
|
211
|
-
{
|
|
212
|
-
detail: {
|
|
213
|
-
errorCode: X,
|
|
214
|
-
translatedError: _e,
|
|
215
|
-
status: "error"
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
));
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
}
|
|
222
|
-
async function W() {
|
|
223
|
-
if (z)
|
|
224
|
-
u(S, r = z, r);
|
|
225
|
-
else
|
|
226
|
-
try {
|
|
227
|
-
const { deviceId: e, stream: p } = await Ce(1920, 1080, l);
|
|
228
|
-
p?.getTracks()?.forEach((C) => C?.stop()), u(S, r = e || "", r);
|
|
229
|
-
} catch (e) {
|
|
230
|
-
const p = e, C = Ie(p) && "constraint" in p ? p.constraint : "";
|
|
231
|
-
A(p.message, C);
|
|
232
|
-
}
|
|
233
|
-
a(4, w = !0), v && f && "openCamera" in f && f.openCamera(), a(3, v = !1);
|
|
234
|
-
}
|
|
235
|
-
async function le() {
|
|
236
|
-
f.takePhoto();
|
|
237
|
-
}
|
|
238
|
-
async function q() {
|
|
239
|
-
!v && !w || (a(4, w = !0), u(S, r = "", r), await W());
|
|
240
|
-
}
|
|
241
|
-
const ue = I.subscribe((e) => {
|
|
242
|
-
e && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
|
|
243
|
-
}), de = F.subscribe((e) => {
|
|
244
|
-
e && window.dispatchEvent(new CustomEvent("brycc-face-initialized"));
|
|
245
|
-
});
|
|
246
|
-
ze(() => {
|
|
247
|
-
De(f), ue(), de();
|
|
248
|
-
});
|
|
249
|
-
function fe(e) {
|
|
250
|
-
Le[e ? "unshift" : "push"](() => {
|
|
251
|
-
f = e, a(0, f);
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
const me = async () => {
|
|
255
|
-
await q();
|
|
256
|
-
};
|
|
257
|
-
return s.$$set = (e) => {
|
|
258
|
-
"livenessBlobSize" in e && a(1, U = e.livenessBlobSize), "cameraDeviceId" in e && a(9, z = e.cameraDeviceId), "widgetInstance" in e && a(0, f = e.widgetInstance);
|
|
259
|
-
}, [
|
|
260
|
-
f,
|
|
261
|
-
U,
|
|
262
|
-
q,
|
|
263
|
-
v,
|
|
264
|
-
w,
|
|
265
|
-
V,
|
|
266
|
-
r,
|
|
267
|
-
h,
|
|
268
|
-
O,
|
|
269
|
-
z,
|
|
270
|
-
le,
|
|
271
|
-
fe,
|
|
272
|
-
me
|
|
273
|
-
];
|
|
274
|
-
}
|
|
275
|
-
class Me extends pe {
|
|
276
|
-
constructor(t) {
|
|
277
|
-
super(), be(
|
|
278
|
-
this,
|
|
279
|
-
{
|
|
280
|
-
target: this.shadowRoot,
|
|
281
|
-
props: he(this.attributes),
|
|
282
|
-
customElement: !0
|
|
283
|
-
},
|
|
284
|
-
Ae,
|
|
285
|
-
Ve,
|
|
286
|
-
ge,
|
|
287
|
-
{
|
|
288
|
-
livenessBlobSize: 1,
|
|
289
|
-
cameraDeviceId: 9,
|
|
290
|
-
widgetInstance: 0,
|
|
291
|
-
capture: 10,
|
|
292
|
-
reOpenCamera: 2
|
|
293
|
-
},
|
|
294
|
-
null,
|
|
295
|
-
[-1, -1]
|
|
296
|
-
), t && (t.target && P(t.target, this, t.anchor), t.props && (this.$set(t.props), k()));
|
|
297
|
-
}
|
|
298
|
-
static get observedAttributes() {
|
|
299
|
-
return [
|
|
300
|
-
"livenessBlobSize",
|
|
301
|
-
"cameraDeviceId",
|
|
302
|
-
"widgetInstance",
|
|
303
|
-
"capture",
|
|
304
|
-
"reOpenCamera"
|
|
305
|
-
];
|
|
306
|
-
}
|
|
307
|
-
get livenessBlobSize() {
|
|
308
|
-
return this.$$.ctx[1];
|
|
309
|
-
}
|
|
310
|
-
set livenessBlobSize(t) {
|
|
311
|
-
this.$$set({ livenessBlobSize: t }), k();
|
|
312
|
-
}
|
|
313
|
-
get cameraDeviceId() {
|
|
314
|
-
return this.$$.ctx[9];
|
|
315
|
-
}
|
|
316
|
-
set cameraDeviceId(t) {
|
|
317
|
-
this.$$set({ cameraDeviceId: t }), k();
|
|
318
|
-
}
|
|
319
|
-
get widgetInstance() {
|
|
320
|
-
return this.$$.ctx[0];
|
|
321
|
-
}
|
|
322
|
-
set widgetInstance(t) {
|
|
323
|
-
this.$$set({ widgetInstance: t }), k();
|
|
324
|
-
}
|
|
325
|
-
get capture() {
|
|
326
|
-
return this.$$.ctx[10];
|
|
327
|
-
}
|
|
328
|
-
get reOpenCamera() {
|
|
329
|
-
return this.$$.ctx[2];
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
customElements.define("stream-collector", Me);
|
|
333
|
-
export {
|
|
334
|
-
Me as default
|
|
335
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|