bry-biometric-collector 3.3.0-RC07 → 3.3.0-RC08

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.
Files changed (26) hide show
  1. package/README.md +36 -0
  2. package/dist/CaptureBar_4b9ad872_3.3.0-RC08.js +847 -0
  3. package/dist/{DocumentCollector_39a1a662_3.3.0-RC07.js → DocumentCollector_a923befb_3.3.0-RC08.js} +52 -52
  4. package/dist/FaceCollector_28b0cb2f_3.3.0-RC08.js +2260 -0
  5. package/dist/FaceOval_ff5ff03f_3.3.0-RC08.js +212 -0
  6. package/dist/StreamCollector_a93fe7be_3.3.0-RC08.js +349 -0
  7. package/dist/ValidationAlert_7af02ba2_3.3.0-RC08.js +974 -0
  8. package/dist/{___vite-browser-external_commonjs-proxy_d99dffb1_3.3.0-RC07.js → ___vite-browser-external_commonjs-proxy_91447072_3.3.0-RC08.js} +1 -1
  9. package/dist/bry-biometric-collector-main.js +2 -2
  10. package/dist/{fingersApi_0f644f7a_3.3.0-RC07.js → fingersApi_b51da3fa_3.3.0-RC08.js} +2 -2
  11. package/dist/index.js +2 -2
  12. package/dist/{index_b0b3c37a_3.3.0-RC07.js → index_494f9d08_3.3.0-RC08.js} +3 -3
  13. package/dist/{index_8a654b33_3.3.0-RC07.js → index_8edd0e4d_3.3.0-RC08.js} +3 -3
  14. package/dist/{main_866e3050_3.3.0-RC07.js → main_e5443c19_3.3.0-RC08.js} +140 -140
  15. package/dist/style.css +1 -1
  16. package/package.json +1 -1
  17. package/dist/CaptureBar_bbb41c40_3.3.0-RC07.js +0 -893
  18. package/dist/FaceCollector_5e696802_3.3.0-RC07.js +0 -2391
  19. package/dist/StreamCollector_89664342_3.3.0-RC07.js +0 -348
  20. package/dist/ValidationAlert_81eae4eb_3.3.0-RC07.js +0 -847
  21. /package/dist/{en-us_c02e99cd_3.3.0-RC07.js → en-us_c02e99cd_3.3.0-RC08.js} +0 -0
  22. /package/dist/{es-cl_6f3eda53_3.3.0-RC07.js → es-cl_6f3eda53_3.3.0-RC08.js} +0 -0
  23. /package/dist/{face_api_0e3ce8c8_3.3.0-RC07.js → face_api_0e3ce8c8_3.3.0-RC08.js} +0 -0
  24. /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC07.js → index-idlf-detector_39cfdffa_3.3.0-RC08.js} +0 -0
  25. /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC07.js → index-idlf-detector_a819b3c8_3.3.0-RC08.js} +0 -0
  26. /package/dist/{pt-br_e7d46668_3.3.0-RC07.js → pt-br_e7d46668_3.3.0-RC08.js} +0 -0
@@ -1,893 +0,0 @@
1
- import { S as k, x as E, y as _, z as Y, B as d, D as m, E as D, a3 as de, G as I, a5 as y, L as A, M as h, aa as ge, C as j, Y as oe, ad as he, a$ as q, bt as U, bu as $, Q as S, bl as ee, bv as te, b8 as x, bw as Ie, a2 as ce, a6 as Ne, ag as B, $ as fe, I as L, J as N, K as b, H as c, O as ze, bo as Q, a1 as ye, ar as me, _ as Ae, P as Le, X as O, b7 as z, bm as p, bx as je, R as T, T as C, U as w, W as v, V as ie } from "./main_866e3050_3.3.0-RC07.js";
2
- const be = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCA4NSAyNSIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4zNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI4LjMzNiAyMFY1LjdIMzQuMjc2QzM1LjIyMjcgNS43IDM2LjA0OTMgNS44NTMzMyAzNi43NTYgNi4xNkMzNy40NjI3IDYuNDY2NjcgMzguMDA5MyA2LjkgMzguMzk2IDcuNDZDMzguNzgyNyA4LjAyIDM4Ljk3NiA4LjY4IDM4Ljk3NiA5LjQ0QzM4Ljk3NiAxMC4xMzMzIDM4Ljc4MjcgMTAuNzUzMyAzOC4zOTYgMTEuM0MzOC4wMDkzIDEx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xlIGN4PSI5Ljk1OTA1IiBjeT0iMTMuMjUyIiByPSI2Ljc1MjAyIiBzdHJva2U9IndoaXRlIi8+CjxwYXRoIGQ9Ik01LjQ3OTE5IDRIMy4xMzI5NUMxLjk1NDk1IDQgMSA0Ljk1NDk1IDEgNi4xMzI5NVY4LjQ3OTE5TTE0LjQzNzYgNEgxNi43ODM4QzE3Ljk2MTggNCAxOC45MTY3IDQuOTU0OTUgMTguOTE2NyA2LjEzMjk1VjguNDc5MTlNMTguOTE2NyAxNy40Mzc2VjE5Ljc4MzhDMTguOTE2NyAyMC45NjE4IDE3Ljk2MTggMjEuOTE2NyAxNi43ODM4IDIxLjkxNjdIMTQuNDM3Nk01LjQ3OTE5IDIxLjkxNjdIMy4xMzI5NUMxLjk1NDk1IDIxLjkxNjcgMSAyMC45NjE4IDEgMTkuNzgzOFYxNy40Mzc2IiBzdHJva2U9IndoaXRlIi8+Cjwvc3ZnPgo=";
3
- function Te(u) {
4
- let e, i, t, n;
5
- return {
6
- c() {
7
- e = m("div"), i = m("img"), this.c = D, de(i.src, t = be) || I(i, "src", t), I(i, "alt", "BryID"), I(e, "class", n = /*$collectorSelect*/
8
- u[0] === "DOCUMENT" ? "absolute inset-0 flex justify-end items-end mb-2 mr-2" : "absolute inset-0 flex justify-center items-end mb-4");
9
- },
10
- m(r, a) {
11
- d(r, e, a), y(e, i);
12
- },
13
- p(r, [a]) {
14
- a & /*$collectorSelect*/
15
- 1 && n !== (n = /*$collectorSelect*/
16
- r[0] === "DOCUMENT" ? "absolute inset-0 flex justify-end items-end mb-2 mr-2" : "absolute inset-0 flex justify-center items-end mb-4") && I(e, "class", n);
17
- },
18
- i: D,
19
- o: D,
20
- d(r) {
21
- r && A(e);
22
- }
23
- };
24
- }
25
- function Ce(u, e, i) {
26
- let t;
27
- return h(u, ge, (n) => i(0, t = n)), [t];
28
- }
29
- class we extends k {
30
- constructor(e) {
31
- super(), E(
32
- this,
33
- {
34
- target: this.shadowRoot,
35
- props: Y(this.attributes),
36
- customElement: !0
37
- },
38
- Ce,
39
- Te,
40
- _,
41
- {},
42
- null
43
- ), e && e.target && d(e.target, this, e.anchor);
44
- }
45
- }
46
- customElements.define("water-mark", we);
47
- function Oe(u) {
48
- let e;
49
- return {
50
- c() {
51
- e = m("div"), I(e, "class", "w-16");
52
- },
53
- m(i, t) {
54
- d(i, e, t);
55
- },
56
- p: D,
57
- d(i) {
58
- i && A(e);
59
- }
60
- };
61
- }
62
- function ke(u) {
63
- let e, i, t, n, r, a, s, M = [
64
- { xmlns: "http://www.w3.org/2000/svg" },
65
- { width: "2em" },
66
- { height: "2em" },
67
- { viewBox: "0 0 256 256" },
68
- /*$$props*/
69
- u[3]
70
- ], l = {};
71
- for (let g = 0; g < M.length; g += 1)
72
- l = U(l, M[g]);
73
- return {
74
- c() {
75
- e = m("div"), i = m("label"), t = ee("svg"), n = ee("path"), I(n, "fill", "hsl(var(--n))"), I(n, "d", "M208 56h-27.72l-13.63-20.44A8 8 0 0 0 160 32H96a8 8 0 0 0-6.65 3.56L75.71 56H48a24 24 0 0 0-24 24v112a24 24 0 0 0 24 24h160a24 24 0 0 0 24-24V80a24 24 0 0 0-24-24m-51.19 110.4A48.21 48.21 0 0 1 96 163.77V168a8 8 0 0 1-16 0v-24a8 8 0 0 1 8-8h24a8 8 0 0 1 0 16h-5.15a32.12 32.12 0 0 0 40.34 1.61a8 8 0 0 1 9.62 12.79M176 120a8 8 0 0 1-8 8h-24a8 8 0 0 1 0-16h5.15a32.12 32.12 0 0 0-40.34-1.61a8 8 0 0 1-9.62-12.79a48.21 48.21 0 0 1 60.81 2.63V96a8 8 0 0 1 16 0Z"), te(t, l), I(i, "tabindex", "0"), i.hidden = r = /*$cameraDevicesStore*/
76
- u[1].length <= 1, I(i, "class", "ce-dui-btn ce-dui-btn-ghost w-16");
77
- },
78
- m(g, f) {
79
- d(g, e, f), y(e, i), y(i, t), y(t, n), a || (s = x(
80
- e,
81
- "click",
82
- /*click_handler*/
83
- u[4]
84
- ), a = !0);
85
- },
86
- p(g, f) {
87
- te(t, l = Ie(M, [
88
- { xmlns: "http://www.w3.org/2000/svg" },
89
- { width: "2em" },
90
- { height: "2em" },
91
- { viewBox: "0 0 256 256" },
92
- f & /*$$props*/
93
- 8 && /*$$props*/
94
- g[3]
95
- ])), f & /*$cameraDevicesStore*/
96
- 2 && r !== (r = /*$cameraDevicesStore*/
97
- g[1].length <= 1) && (i.hidden = r);
98
- },
99
- d(g) {
100
- g && A(e), a = !1, s();
101
- }
102
- };
103
- }
104
- function Ee(u) {
105
- let e;
106
- function i(r, a) {
107
- return (
108
- /*show*/
109
- r[0] && /*$cameraDevicesStore*/
110
- r[1].length > 1 ? ke : Oe
111
- );
112
- }
113
- let t = i(u), n = t(u);
114
- return {
115
- c() {
116
- n.c(), e = oe(), this.c = D;
117
- },
118
- m(r, a) {
119
- n.m(r, a), d(r, e, a);
120
- },
121
- p(r, [a]) {
122
- t === (t = i(r)) && n ? n.p(r, a) : (n.d(1), n = t(r), n && (n.c(), n.m(e.parentNode, e)));
123
- },
124
- i: D,
125
- o: D,
126
- d(r) {
127
- n.d(r), r && A(e);
128
- }
129
- };
130
- }
131
- function _e(u, e, i) {
132
- let t, n;
133
- h(u, he, (s) => i(1, t = s)), h(u, q, (s) => i(2, n = s));
134
- let { show: r } = e;
135
- const a = () => {
136
- S(q, n = !n, n);
137
- };
138
- return u.$$set = (s) => {
139
- i(3, e = U(U({}, e), $(s))), "show" in s && i(0, r = s.show);
140
- }, e = $(e), [r, t, n, e, a];
141
- }
142
- class Z extends k {
143
- constructor(e) {
144
- super(), E(
145
- this,
146
- {
147
- target: this.shadowRoot,
148
- props: Y(this.attributes),
149
- customElement: !0
150
- },
151
- _e,
152
- Ee,
153
- _,
154
- { show: 0 },
155
- null
156
- ), e && (e.target && d(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
157
- }
158
- static get observedAttributes() {
159
- return ["show"];
160
- }
161
- get show() {
162
- return this.$$.ctx[0];
163
- }
164
- set show(e) {
165
- this.$$set({ show: e }), j();
166
- }
167
- }
168
- customElements.define("camera-btn", Z);
169
- function Ye(u) {
170
- let e, i = (
171
- /*$_*/
172
- u[0]("buttons.startCapture") + ""
173
- ), t, n, r;
174
- return {
175
- c() {
176
- e = m("button"), t = ce(i), this.c = D, I(e, "class", "bg-primary text-white font-medium h-12 px-4 rounded-3xl text-xl transition-colors duration-500 hover:bg-primary-focus");
177
- },
178
- m(a, s) {
179
- d(a, e, s), y(e, t), n || (r = x(
180
- e,
181
- "click",
182
- /*click_handler*/
183
- u[2]
184
- ), n = !0);
185
- },
186
- p(a, [s]) {
187
- s & /*$_*/
188
- 1 && i !== (i = /*$_*/
189
- a[0]("buttons.startCapture") + "") && Ne(t, i);
190
- },
191
- i: D,
192
- o: D,
193
- d(a) {
194
- a && A(e), n = !1, r();
195
- }
196
- };
197
- }
198
- function Se(u, e, i) {
199
- let t, n;
200
- h(u, B, (s) => i(3, t = s)), h(u, fe, (s) => i(0, n = s));
201
- function r() {
202
- S(B, t = !0, t);
203
- }
204
- return [n, r, () => r()];
205
- }
206
- class De extends k {
207
- constructor(e) {
208
- super(), E(
209
- this,
210
- {
211
- target: this.shadowRoot,
212
- props: Y(this.attributes),
213
- customElement: !0
214
- },
215
- Se,
216
- Ye,
217
- _,
218
- {},
219
- null
220
- ), e && e.target && d(e.target, this, e.anchor);
221
- }
222
- }
223
- customElements.define("start-auto-capture-btn", De);
224
- function pe(u) {
225
- let e, i = (
226
- /*$_*/
227
- u[3]("faceCollector.capture") + ""
228
- ), t, n, r;
229
- return {
230
- c() {
231
- e = m("button"), t = ce(i), this.c = D, e.disabled = /*disabled*/
232
- u[1], e.hidden = /*hidden*/
233
- u[2], I(e, "class", "bg-primary text-white font-medium h-12 px-4 rounded-3xl text-xl transition-colors duration-200 hover:bg-primary-focus disabled:bg-gray-300 disabled:hover:bg-gray-300 disabled:opacity-60");
234
- },
235
- m(a, s) {
236
- d(a, e, s), y(e, t), n || (r = x(
237
- e,
238
- "click",
239
- /*click_handler*/
240
- u[4]
241
- ), n = !0);
242
- },
243
- p(a, [s]) {
244
- s & /*$_*/
245
- 8 && i !== (i = /*$_*/
246
- a[3]("faceCollector.capture") + "") && Ne(t, i), s & /*disabled*/
247
- 2 && (e.disabled = /*disabled*/
248
- a[1]), s & /*hidden*/
249
- 4 && (e.hidden = /*hidden*/
250
- a[2]);
251
- },
252
- i: D,
253
- o: D,
254
- d(a) {
255
- a && A(e), n = !1, r();
256
- }
257
- };
258
- }
259
- function ve(u, e, i) {
260
- let t;
261
- h(u, fe, (M) => i(3, t = M));
262
- let { handler: n = () => {
263
- } } = e, { disabled: r = !1 } = e, { hidden: a = !1 } = e;
264
- const s = () => !r && n();
265
- return u.$$set = (M) => {
266
- "handler" in M && i(0, n = M.handler), "disabled" in M && i(1, r = M.disabled), "hidden" in M && i(2, a = M.hidden);
267
- }, [n, r, a, t, s];
268
- }
269
- class R extends k {
270
- constructor(e) {
271
- super(), E(
272
- this,
273
- {
274
- target: this.shadowRoot,
275
- props: Y(this.attributes),
276
- customElement: !0
277
- },
278
- ve,
279
- pe,
280
- _,
281
- { handler: 0, disabled: 1, hidden: 2 },
282
- null
283
- ), e && (e.target && d(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
284
- }
285
- static get observedAttributes() {
286
- return ["handler", "disabled", "hidden"];
287
- }
288
- get handler() {
289
- return this.$$.ctx[0];
290
- }
291
- set handler(e) {
292
- this.$$set({ handler: e }), j();
293
- }
294
- get disabled() {
295
- return this.$$.ctx[1];
296
- }
297
- set disabled(e) {
298
- this.$$set({ disabled: e }), j();
299
- }
300
- get hidden() {
301
- return this.$$.ctx[2];
302
- }
303
- set hidden(e) {
304
- this.$$set({ hidden: e }), j();
305
- }
306
- }
307
- customElements.define("take-picture-btn", R);
308
- function Qe(u) {
309
- let e, i, t, n, r = (
310
- /*$ready*/
311
- u[13] && ue(u)
312
- ), a = (
313
- /*$ready*/
314
- u[13] && ne(u)
315
- ), s = (
316
- /*$ready*/
317
- u[13] && re(u)
318
- );
319
- return {
320
- c() {
321
- e = m("div"), r && r.c(), i = O(), a && a.c(), t = O(), s && s.c(), I(e, "class", "w-full flex justify-between items-center px-2"), z(e, "background-color", "rgba(" + p(
322
- /*videoOverlay*/
323
- u[5]
324
- ) + ", " + (1 - /*videoOverlayTransparency*/
325
- u[6] / 100) + ")"), z(
326
- e,
327
- "height",
328
- /*$captureBarHeight*/
329
- u[11] + "px"
330
- ), z(
331
- e,
332
- "max-height",
333
- /*$captureBarHeight*/
334
- u[11] + "px"
335
- );
336
- },
337
- m(M, l) {
338
- d(M, e, l), r && r.m(e, null), y(e, i), a && a.m(e, null), y(e, t), s && s.m(e, null), n = !0;
339
- },
340
- p(M, l) {
341
- /*$ready*/
342
- M[13] ? r ? (r.p(M, l), l & /*$ready*/
343
- 8192 && c(r, 1)) : (r = ue(M), r.c(), c(r, 1), r.m(e, i)) : r && (L(), N(r, 1, 1, () => {
344
- r = null;
345
- }), b()), /*$ready*/
346
- M[13] ? a ? (a.p(M, l), l & /*$ready*/
347
- 8192 && c(a, 1)) : (a = ne(M), a.c(), c(a, 1), a.m(e, t)) : a && (L(), N(a, 1, 1, () => {
348
- a = null;
349
- }), b()), /*$ready*/
350
- M[13] ? s ? (s.p(M, l), l & /*$ready*/
351
- 8192 && c(s, 1)) : (s = re(M), s.c(), c(s, 1), s.m(e, null)) : s && (L(), N(s, 1, 1, () => {
352
- s = null;
353
- }), b()), (!n || l & /*videoOverlay, videoOverlayTransparency*/
354
- 96) && z(e, "background-color", "rgba(" + p(
355
- /*videoOverlay*/
356
- M[5]
357
- ) + ", " + (1 - /*videoOverlayTransparency*/
358
- M[6] / 100) + ")"), (!n || l & /*$captureBarHeight*/
359
- 2048) && z(
360
- e,
361
- "height",
362
- /*$captureBarHeight*/
363
- M[11] + "px"
364
- ), (!n || l & /*$captureBarHeight*/
365
- 2048) && z(
366
- e,
367
- "max-height",
368
- /*$captureBarHeight*/
369
- M[11] + "px"
370
- );
371
- },
372
- i(M) {
373
- n || (c(r), c(a), c(s), n = !0);
374
- },
375
- o(M) {
376
- N(r), N(a), N(s), n = !1;
377
- },
378
- d(M) {
379
- M && A(e), r && r.d(), a && a.d(), s && s.d();
380
- }
381
- };
382
- }
383
- function Ue(u) {
384
- let e, i, t, n, r, a = (
385
- /*$ready*/
386
- u[13] && ae(u)
387
- ), s = (
388
- /*showAutoCaptureButton*/
389
- u[1] && !/*$automaticCapture*/
390
- u[14] && !/*showCaptureButton*/
391
- u[2] && /*$ready*/
392
- u[13] && Me()
393
- ), M = (
394
- /*showCaptureButton*/
395
- u[2] && /*$ready*/
396
- u[13] && se(u)
397
- ), l = (
398
- /*$ready*/
399
- u[13] && le(u)
400
- );
401
- return {
402
- c() {
403
- e = m("div"), a && a.c(), i = O(), s && s.c(), t = O(), M && M.c(), n = O(), l && l.c(), I(e, "class", "w-full flex justify-between items-center px-2"), z(e, "background-color", "rgba(" + p(
404
- /*videoOverlay*/
405
- u[5]
406
- ) + ", " + (1 - /*videoOverlayTransparency*/
407
- u[6] / 100) + ")"), z(
408
- e,
409
- "height",
410
- /*$captureBarHeight*/
411
- u[11] + "px"
412
- ), z(
413
- e,
414
- "max-height",
415
- /*$captureBarHeight*/
416
- u[11] + "px"
417
- );
418
- },
419
- m(g, f) {
420
- d(g, e, f), a && a.m(e, null), y(e, i), s && s.m(e, null), y(e, t), M && M.m(e, null), y(e, n), l && l.m(e, null), r = !0;
421
- },
422
- p(g, f) {
423
- /*$ready*/
424
- g[13] ? a ? (a.p(g, f), f & /*$ready*/
425
- 8192 && c(a, 1)) : (a = ae(g), a.c(), c(a, 1), a.m(e, i)) : a && (L(), N(a, 1, 1, () => {
426
- a = null;
427
- }), b()), /*showAutoCaptureButton*/
428
- g[1] && !/*$automaticCapture*/
429
- g[14] && !/*showCaptureButton*/
430
- g[2] && /*$ready*/
431
- g[13] ? s ? f & /*showAutoCaptureButton, $automaticCapture, showCaptureButton, $ready*/
432
- 24582 && c(s, 1) : (s = Me(), s.c(), c(s, 1), s.m(e, t)) : s && (L(), N(s, 1, 1, () => {
433
- s = null;
434
- }), b()), /*showCaptureButton*/
435
- g[2] && /*$ready*/
436
- g[13] ? M ? (M.p(g, f), f & /*showCaptureButton, $ready*/
437
- 8196 && c(M, 1)) : (M = se(g), M.c(), c(M, 1), M.m(e, n)) : M && (L(), N(M, 1, 1, () => {
438
- M = null;
439
- }), b()), /*$ready*/
440
- g[13] ? l ? (l.p(g, f), f & /*$ready*/
441
- 8192 && c(l, 1)) : (l = le(g), l.c(), c(l, 1), l.m(e, null)) : l && (L(), N(l, 1, 1, () => {
442
- l = null;
443
- }), b()), (!r || f & /*videoOverlay, videoOverlayTransparency*/
444
- 96) && z(e, "background-color", "rgba(" + p(
445
- /*videoOverlay*/
446
- g[5]
447
- ) + ", " + (1 - /*videoOverlayTransparency*/
448
- g[6] / 100) + ")"), (!r || f & /*$captureBarHeight*/
449
- 2048) && z(
450
- e,
451
- "height",
452
- /*$captureBarHeight*/
453
- g[11] + "px"
454
- ), (!r || f & /*$captureBarHeight*/
455
- 2048) && z(
456
- e,
457
- "max-height",
458
- /*$captureBarHeight*/
459
- g[11] + "px"
460
- );
461
- },
462
- i(g) {
463
- r || (c(a), c(s), c(M), c(l), r = !0);
464
- },
465
- o(g) {
466
- N(a), N(s), N(M), N(l), r = !1;
467
- },
468
- d(g) {
469
- g && A(e), a && a.d(), s && s.d(), M && M.d(), l && l.d();
470
- }
471
- };
472
- }
473
- function ue(u) {
474
- let e, i;
475
- return e = new je({
476
- props: { show: (
477
- /*showConfigButton*/
478
- u[0]
479
- ) }
480
- }), {
481
- c() {
482
- T(e.$$.fragment);
483
- },
484
- m(t, n) {
485
- C(e, t, n), i = !0;
486
- },
487
- p(t, n) {
488
- const r = {};
489
- n & /*showConfigButton*/
490
- 1 && (r.show = /*showConfigButton*/
491
- t[0]), e.$set(r);
492
- },
493
- i(t) {
494
- i || (c(e.$$.fragment, t), i = !0);
495
- },
496
- o(t) {
497
- N(e.$$.fragment, t), i = !1;
498
- },
499
- d(t) {
500
- w(e, t);
501
- }
502
- };
503
- }
504
- function ne(u) {
505
- let e, i;
506
- return e = new R({
507
- props: {
508
- hidden: (
509
- /*$cameraStatusStore*/
510
- u[16] !== v.OK
511
- ),
512
- handler: (
513
- /*handler*/
514
- u[10]
515
- )
516
- }
517
- }), {
518
- c() {
519
- T(e.$$.fragment);
520
- },
521
- m(t, n) {
522
- C(e, t, n), i = !0;
523
- },
524
- p(t, n) {
525
- const r = {};
526
- n & /*$cameraStatusStore*/
527
- 65536 && (r.hidden = /*$cameraStatusStore*/
528
- t[16] !== v.OK), n & /*handler*/
529
- 1024 && (r.handler = /*handler*/
530
- t[10]), e.$set(r);
531
- },
532
- i(t) {
533
- i || (c(e.$$.fragment, t), i = !0);
534
- },
535
- o(t) {
536
- N(e.$$.fragment, t), i = !1;
537
- },
538
- d(t) {
539
- w(e, t);
540
- }
541
- };
542
- }
543
- function re(u) {
544
- let e, i;
545
- return e = new Z({
546
- props: { show: (
547
- /*showCameraButton*/
548
- u[3]
549
- ) }
550
- }), {
551
- c() {
552
- T(e.$$.fragment);
553
- },
554
- m(t, n) {
555
- C(e, t, n), i = !0;
556
- },
557
- p(t, n) {
558
- const r = {};
559
- n & /*showCameraButton*/
560
- 8 && (r.show = /*showCameraButton*/
561
- t[3]), e.$set(r);
562
- },
563
- i(t) {
564
- i || (c(e.$$.fragment, t), i = !0);
565
- },
566
- o(t) {
567
- N(e.$$.fragment, t), i = !1;
568
- },
569
- d(t) {
570
- w(e, t);
571
- }
572
- };
573
- }
574
- function ae(u) {
575
- let e, i;
576
- return e = new je({
577
- props: { show: (
578
- /*showConfigButton*/
579
- u[0]
580
- ) }
581
- }), {
582
- c() {
583
- T(e.$$.fragment);
584
- },
585
- m(t, n) {
586
- C(e, t, n), i = !0;
587
- },
588
- p(t, n) {
589
- const r = {};
590
- n & /*showConfigButton*/
591
- 1 && (r.show = /*showConfigButton*/
592
- t[0]), e.$set(r);
593
- },
594
- i(t) {
595
- i || (c(e.$$.fragment, t), i = !0);
596
- },
597
- o(t) {
598
- N(e.$$.fragment, t), i = !1;
599
- },
600
- d(t) {
601
- w(e, t);
602
- }
603
- };
604
- }
605
- function Me(u) {
606
- let e, i;
607
- return e = new De({}), {
608
- c() {
609
- T(e.$$.fragment);
610
- },
611
- m(t, n) {
612
- C(e, t, n), i = !0;
613
- },
614
- i(t) {
615
- i || (c(e.$$.fragment, t), i = !0);
616
- },
617
- o(t) {
618
- N(e.$$.fragment, t), i = !1;
619
- },
620
- d(t) {
621
- w(e, t);
622
- }
623
- };
624
- }
625
- function se(u) {
626
- let e, i;
627
- return e = new R({
628
- props: {
629
- disabled: !/*enableCaptureButton*/
630
- u[4] && /*$enableFaceApi*/
631
- u[15] || !/*$ready*/
632
- u[13] && !/*$enableFaceApi*/
633
- u[15],
634
- hidden: (
635
- /*$cameraStatusStore*/
636
- u[16] !== v.OK || ie() && /*idrndLoading*/
637
- (u[8] || /*idrndClosed*/
638
- u[7] || /*waitingIdrndCaptureEvent*/
639
- u[9])
640
- ),
641
- handler: (
642
- /*handler*/
643
- u[10]
644
- )
645
- }
646
- }), {
647
- c() {
648
- T(e.$$.fragment);
649
- },
650
- m(t, n) {
651
- C(e, t, n), i = !0;
652
- },
653
- p(t, n) {
654
- const r = {};
655
- n & /*enableCaptureButton, $enableFaceApi, $ready*/
656
- 40976 && (r.disabled = !/*enableCaptureButton*/
657
- t[4] && /*$enableFaceApi*/
658
- t[15] || !/*$ready*/
659
- t[13] && !/*$enableFaceApi*/
660
- t[15]), n & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
661
- 66432 && (r.hidden = /*$cameraStatusStore*/
662
- t[16] !== v.OK || ie() && /*idrndLoading*/
663
- (t[8] || /*idrndClosed*/
664
- t[7] || /*waitingIdrndCaptureEvent*/
665
- t[9])), n & /*handler*/
666
- 1024 && (r.handler = /*handler*/
667
- t[10]), e.$set(r);
668
- },
669
- i(t) {
670
- i || (c(e.$$.fragment, t), i = !0);
671
- },
672
- o(t) {
673
- N(e.$$.fragment, t), i = !1;
674
- },
675
- d(t) {
676
- w(e, t);
677
- }
678
- };
679
- }
680
- function le(u) {
681
- let e, i;
682
- return e = new Z({
683
- props: { show: (
684
- /*showCameraButton*/
685
- u[3]
686
- ) }
687
- }), {
688
- c() {
689
- T(e.$$.fragment);
690
- },
691
- m(t, n) {
692
- C(e, t, n), i = !0;
693
- },
694
- p(t, n) {
695
- const r = {};
696
- n & /*showCameraButton*/
697
- 8 && (r.show = /*showCameraButton*/
698
- t[3]), e.$set(r);
699
- },
700
- i(t) {
701
- i || (c(e.$$.fragment, t), i = !0);
702
- },
703
- o(t) {
704
- N(e.$$.fragment, t), i = !1;
705
- },
706
- d(t) {
707
- w(e, t);
708
- }
709
- };
710
- }
711
- function Be(u) {
712
- let e, i, t, n;
713
- const r = [Ue, Qe], a = [];
714
- function s(M, l) {
715
- return (
716
- /*$collectorSelect*/
717
- M[12] === "FACE" || /*$collectorSelect*/
718
- M[12] === "BOTH" ? 0 : (
719
- /*$collectorSelect*/
720
- M[12] === "DOCUMENT" ? 1 : -1
721
- )
722
- );
723
- }
724
- return ~(e = s(u)) && (i = a[e] = r[e](u)), {
725
- c() {
726
- i && i.c(), t = oe(), this.c = D;
727
- },
728
- m(M, l) {
729
- ~e && a[e].m(M, l), d(M, t, l), n = !0;
730
- },
731
- p(M, [l]) {
732
- let g = e;
733
- e = s(M), e === g ? ~e && a[e].p(M, l) : (i && (L(), N(a[g], 1, 1, () => {
734
- a[g] = null;
735
- }), b()), ~e ? (i = a[e], i ? i.p(M, l) : (i = a[e] = r[e](M), i.c()), c(i, 1), i.m(t.parentNode, t)) : i = null);
736
- },
737
- i(M) {
738
- n || (c(i), n = !0);
739
- },
740
- o(M) {
741
- N(i), n = !1;
742
- },
743
- d(M) {
744
- ~e && a[e].d(M), M && A(t);
745
- }
746
- };
747
- }
748
- function xe(u, e, i) {
749
- let t, n, r, a, s, M, l;
750
- h(u, ze, (o) => i(17, t = o)), h(u, Q, (o) => i(11, n = o)), h(u, ge, (o) => i(12, r = o)), h(u, ye, (o) => i(13, a = o)), h(u, B, (o) => i(14, s = o)), h(u, me, (o) => i(15, M = o)), h(u, Ae, (o) => i(16, l = o));
751
- let { showConfigButton: g = null } = e, { showAutoCaptureButton: f = null } = e, { showCaptureButton: V = null } = e, { showCameraButton: H = null } = e, { enableCaptureButton: P = null } = e, { videoOverlay: W = "" } = e, { videoOverlayTransparency: F = 100 } = e, { idrndClosed: G = null } = e, { idrndLoading: J = null } = e, { waitingIdrndCaptureEvent: K = null } = e, { handler: X = () => {
752
- } } = e;
753
- return u.$$set = (o) => {
754
- "showConfigButton" in o && i(0, g = o.showConfigButton), "showAutoCaptureButton" in o && i(1, f = o.showAutoCaptureButton), "showCaptureButton" in o && i(2, V = o.showCaptureButton), "showCameraButton" in o && i(3, H = o.showCameraButton), "enableCaptureButton" in o && i(4, P = o.enableCaptureButton), "videoOverlay" in o && i(5, W = o.videoOverlay), "videoOverlayTransparency" in o && i(6, F = o.videoOverlayTransparency), "idrndClosed" in o && i(7, G = o.idrndClosed), "idrndLoading" in o && i(8, J = o.idrndLoading), "waitingIdrndCaptureEvent" in o && i(9, K = o.waitingIdrndCaptureEvent), "handler" in o && i(10, X = o.handler);
755
- }, u.$$.update = () => {
756
- u.$$.dirty & /*$videoStore*/
757
- 131072 && t && (Le() ? S(Q, n = Math.round(t.videoHeight * 0.25), n) : S(Q, n = Math.round(t.videoHeight * 0.15), n));
758
- }, [
759
- g,
760
- f,
761
- V,
762
- H,
763
- P,
764
- W,
765
- F,
766
- G,
767
- J,
768
- K,
769
- X,
770
- n,
771
- r,
772
- a,
773
- s,
774
- M,
775
- l,
776
- t
777
- ];
778
- }
779
- class Ze extends k {
780
- constructor(e) {
781
- super(), E(
782
- this,
783
- {
784
- target: this.shadowRoot,
785
- props: Y(this.attributes),
786
- customElement: !0
787
- },
788
- xe,
789
- Be,
790
- _,
791
- {
792
- showConfigButton: 0,
793
- showAutoCaptureButton: 1,
794
- showCaptureButton: 2,
795
- showCameraButton: 3,
796
- enableCaptureButton: 4,
797
- videoOverlay: 5,
798
- videoOverlayTransparency: 6,
799
- idrndClosed: 7,
800
- idrndLoading: 8,
801
- waitingIdrndCaptureEvent: 9,
802
- handler: 10
803
- },
804
- null
805
- ), e && (e.target && d(e.target, this, e.anchor), e.props && (this.$set(e.props), j()));
806
- }
807
- static get observedAttributes() {
808
- return [
809
- "showConfigButton",
810
- "showAutoCaptureButton",
811
- "showCaptureButton",
812
- "showCameraButton",
813
- "enableCaptureButton",
814
- "videoOverlay",
815
- "videoOverlayTransparency",
816
- "idrndClosed",
817
- "idrndLoading",
818
- "waitingIdrndCaptureEvent",
819
- "handler"
820
- ];
821
- }
822
- get showConfigButton() {
823
- return this.$$.ctx[0];
824
- }
825
- set showConfigButton(e) {
826
- this.$$set({ showConfigButton: e }), j();
827
- }
828
- get showAutoCaptureButton() {
829
- return this.$$.ctx[1];
830
- }
831
- set showAutoCaptureButton(e) {
832
- this.$$set({ showAutoCaptureButton: e }), j();
833
- }
834
- get showCaptureButton() {
835
- return this.$$.ctx[2];
836
- }
837
- set showCaptureButton(e) {
838
- this.$$set({ showCaptureButton: e }), j();
839
- }
840
- get showCameraButton() {
841
- return this.$$.ctx[3];
842
- }
843
- set showCameraButton(e) {
844
- this.$$set({ showCameraButton: e }), j();
845
- }
846
- get enableCaptureButton() {
847
- return this.$$.ctx[4];
848
- }
849
- set enableCaptureButton(e) {
850
- this.$$set({ enableCaptureButton: e }), j();
851
- }
852
- get videoOverlay() {
853
- return this.$$.ctx[5];
854
- }
855
- set videoOverlay(e) {
856
- this.$$set({ videoOverlay: e }), j();
857
- }
858
- get videoOverlayTransparency() {
859
- return this.$$.ctx[6];
860
- }
861
- set videoOverlayTransparency(e) {
862
- this.$$set({ videoOverlayTransparency: e }), j();
863
- }
864
- get idrndClosed() {
865
- return this.$$.ctx[7];
866
- }
867
- set idrndClosed(e) {
868
- this.$$set({ idrndClosed: e }), j();
869
- }
870
- get idrndLoading() {
871
- return this.$$.ctx[8];
872
- }
873
- set idrndLoading(e) {
874
- this.$$set({ idrndLoading: e }), j();
875
- }
876
- get waitingIdrndCaptureEvent() {
877
- return this.$$.ctx[9];
878
- }
879
- set waitingIdrndCaptureEvent(e) {
880
- this.$$set({ waitingIdrndCaptureEvent: e }), j();
881
- }
882
- get handler() {
883
- return this.$$.ctx[10];
884
- }
885
- set handler(e) {
886
- this.$$set({ handler: e }), j();
887
- }
888
- }
889
- customElements.define("capture-bar", Ze);
890
- export {
891
- Ze as C,
892
- we as W
893
- };