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