bry-biometric-collector 2.3.1-RC01 → 2.3.1-RC03

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.
@@ -0,0 +1,1063 @@
1
+ import { S as gi, q as _i, r as Ht, t as pi, w as Q, L as ne, N as K, x as w, O as B, b7 as wi, z as oe, B as c, D as l, P as V, Q as ve, R as z, T as Ce, H as G, I as T, U as $e, V as Ae, W as se, X as vi, Y as Se, _ as Ci, Z as ge, a3 as _e, a0 as Le, a1 as et, a2 as wt, J as vt, a4 as Fe, a6 as Ie, a7 as Ct, a8 as kt, a9 as tt, ab as it, af as yt, ad as ki, ah as We, ai as st, b8 as Me, $ as yi, ao as Di, ap as Ei, aq as Ti, ar as Oi, as as Ri, K as g, at as Pi, au as at, av as lt, j as Ut, aw as ot, aF as Ai, C as Ne, d as Be, aG as Dt, ax as He, aH as Si, ay as nt, aI as Li, aJ as Fi, aK as Ii, aL as Wi, aA as Mi, aM as Ni, aN as pe, aO as Bi, aP as Et, E as re, aR as Hi, aS as ke, aT as ye, aU as De, y as J, G as x, aV as rt, aW as Ui, aQ as ct, aX as Tt, a$ as we, b1 as Ki, b2 as Vi, b3 as Ot, b5 as Rt, b6 as qi } from "./main_6705c823_2.3.1-RC03.js";
2
+ import { C as Yi, T as Xi, a as ji } from "./TakePictureBtn_ceb87be5_2.3.1-RC03.js";
3
+ function Pt(a) {
4
+ let t, i, s;
5
+ return {
6
+ c() {
7
+ t = w("video"), c(t, "id", "bry-cc-camera-video-tag"), c(t, "class", "absolute -z-10"), t.playsInline = !0, t.muted = !0, t.autoplay = !0;
8
+ },
9
+ m(n, u) {
10
+ Q(n, t, u), a[38](t), i || (s = re(
11
+ t,
12
+ "play",
13
+ /*play*/
14
+ a[3],
15
+ { once: !0 }
16
+ ), i = !0);
17
+ },
18
+ p: oe,
19
+ d(n) {
20
+ n && G(t), a[38](null), i = !1, s();
21
+ }
22
+ };
23
+ }
24
+ function At(a) {
25
+ let t, i;
26
+ return t = new Hi({}), {
27
+ c() {
28
+ ke(t.$$.fragment);
29
+ },
30
+ m(s, n) {
31
+ ye(t, s, n), i = !0;
32
+ },
33
+ i(s) {
34
+ i || (V(t.$$.fragment, s), i = !0);
35
+ },
36
+ o(s) {
37
+ z(t.$$.fragment, s), i = !1;
38
+ },
39
+ d(s) {
40
+ De(t, s);
41
+ }
42
+ };
43
+ }
44
+ function St(a) {
45
+ let t, i;
46
+ return t = new Yi({}), {
47
+ c() {
48
+ ke(t.$$.fragment);
49
+ },
50
+ m(s, n) {
51
+ ye(t, s, n), i = !0;
52
+ },
53
+ i(s) {
54
+ i || (V(t.$$.fragment, s), i = !0);
55
+ },
56
+ o(s) {
57
+ z(t.$$.fragment, s), i = !1;
58
+ },
59
+ d(s) {
60
+ De(t, s);
61
+ }
62
+ };
63
+ }
64
+ function Lt(a) {
65
+ let t, i;
66
+ return t = new Xi({
67
+ props: {
68
+ id: "bry-cc-capture-btn",
69
+ disabled: !/*$ready*/
70
+ a[21],
71
+ hidden: (
72
+ /*$cameraStatusStore*/
73
+ a[12] !== K.OK
74
+ ),
75
+ handler: (
76
+ /*capture*/
77
+ a[28]
78
+ )
79
+ }
80
+ }), {
81
+ c() {
82
+ ke(t.$$.fragment);
83
+ },
84
+ m(s, n) {
85
+ ye(t, s, n), i = !0;
86
+ },
87
+ p(s, n) {
88
+ const u = {};
89
+ n[0] & /*$ready*/
90
+ 2097152 && (u.disabled = !/*$ready*/
91
+ s[21]), n[0] & /*$cameraStatusStore*/
92
+ 4096 && (u.hidden = /*$cameraStatusStore*/
93
+ s[12] !== K.OK), t.$set(u);
94
+ },
95
+ i(s) {
96
+ i || (V(t.$$.fragment, s), i = !0);
97
+ },
98
+ o(s) {
99
+ z(t.$$.fragment, s), i = !1;
100
+ },
101
+ d(s) {
102
+ De(t, s);
103
+ }
104
+ };
105
+ }
106
+ function Ft(a) {
107
+ let t, i = (
108
+ /*$_*/
109
+ a[22]("faceCollector.stayStill") + ""
110
+ ), s;
111
+ return {
112
+ c() {
113
+ t = w("span"), s = J(i), c(t, "class", "absolute left-1/2 -translate-x-1/2 top-[7%] ce-dui-badge ce-dui-badge-lg h-[2em] text-2xl xl:text-base w-[12.1em]");
114
+ },
115
+ m(n, u) {
116
+ Q(n, t, u), l(t, s);
117
+ },
118
+ p(n, u) {
119
+ u[0] & /*$_*/
120
+ 4194304 && i !== (i = /*$_*/
121
+ n[22]("faceCollector.stayStill") + "") && x(s, i);
122
+ },
123
+ d(n) {
124
+ n && G(t);
125
+ }
126
+ };
127
+ }
128
+ function It(a) {
129
+ let t, i = (
130
+ /*$_*/
131
+ a[22](`${/*$faceValidationAlert*/
132
+ a[14]}`) + ""
133
+ ), s;
134
+ return {
135
+ c() {
136
+ t = w("span"), s = J(i), c(t, "class", "absolute left-1/2 -translate-x-1/2 top-[7%] ce-dui-badge ce-dui-badge-lg h-[2em] text-2xl xl:text-base w-[15.1em]");
137
+ },
138
+ m(n, u) {
139
+ Q(n, t, u), l(t, s);
140
+ },
141
+ p(n, u) {
142
+ u[0] & /*$_, $faceValidationAlert*/
143
+ 4210688 && i !== (i = /*$_*/
144
+ n[22](`${/*$faceValidationAlert*/
145
+ n[14]}`) + "") && x(s, i);
146
+ },
147
+ d(n) {
148
+ n && G(t);
149
+ }
150
+ };
151
+ }
152
+ function Wt(a) {
153
+ let t, i, s, n, u;
154
+ function o(b, C) {
155
+ return (
156
+ /*$isLoading*/
157
+ b[23] ? Qi : Ji
158
+ );
159
+ }
160
+ let r = o(a), f = r(a);
161
+ return {
162
+ c() {
163
+ t = w("slot"), i = w("div"), s = w("img"), u = B(), f.c(), rt(s.src, n = Ui) || c(s, "src", n), c(s, "alt", "loading gif"), c(s, "class", "m-auto h-[10em] lg:h-[12em]"), c(i, "class", "translate-y-1/3 md:translate-y-1/4 xl:translate-y-1/2"), c(t, "name", "loading-camera-gif"), c(t, "class", "block h-[17em] lg:h-[21.6em] xl:h-[30em]");
164
+ },
165
+ m(b, C) {
166
+ Q(b, t, C), l(t, i), l(i, s), l(i, u), f.m(i, null);
167
+ },
168
+ p(b, C) {
169
+ r === (r = o(b)) && f ? f.p(b, C) : (f.d(1), f = r(b), f && (f.c(), f.m(i, null)));
170
+ },
171
+ d(b) {
172
+ b && G(t), f.d();
173
+ }
174
+ };
175
+ }
176
+ function Ji(a) {
177
+ let t, i = (
178
+ /*$_*/
179
+ a[22]("faceCollector.initiatingCamera") + ""
180
+ ), s;
181
+ return {
182
+ c() {
183
+ t = w("span"), s = J(i), c(t, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
184
+ },
185
+ m(n, u) {
186
+ Q(n, t, u), l(t, s);
187
+ },
188
+ p(n, u) {
189
+ u[0] & /*$_*/
190
+ 4194304 && i !== (i = /*$_*/
191
+ n[22]("faceCollector.initiatingCamera") + "") && x(s, i);
192
+ },
193
+ d(n) {
194
+ n && G(t);
195
+ }
196
+ };
197
+ }
198
+ function Qi(a) {
199
+ let t;
200
+ return {
201
+ c() {
202
+ t = w("span"), t.textContent = "Loading camera...", c(t, "class", "2xl:text-2xl lg:text-2xl text-md block p-2 m-auto text-center");
203
+ },
204
+ m(i, s) {
205
+ Q(i, t, s);
206
+ },
207
+ p: oe,
208
+ d(i) {
209
+ i && G(t);
210
+ }
211
+ };
212
+ }
213
+ function Mt(a) {
214
+ let t, i, s = (
215
+ /*$_*/
216
+ a[22]("faceCollector.finish") + ""
217
+ ), n, u, o, r, f = (
218
+ /*$_*/
219
+ a[22]("faceCollector.retakePhoto") + ""
220
+ ), b, C, _;
221
+ return {
222
+ c() {
223
+ t = w("div"), i = w("button"), n = J(s), o = B(), r = w("button"), b = J(f), i.disabled = u = /*$justification*/
224
+ a[16].length === 0, c(i, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), c(r, "id", "bry-cc-retake-button"), c(r, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), c(t, "class", "ce-dui-btn-group flex");
225
+ },
226
+ m(d, h) {
227
+ Q(d, t, h), l(t, i), l(i, n), l(t, o), l(t, r), l(r, b), C || (_ = [
228
+ re(
229
+ i,
230
+ "click",
231
+ /*click_handler*/
232
+ a[42]
233
+ ),
234
+ re(
235
+ r,
236
+ "click",
237
+ /*click_handler_1*/
238
+ a[43]
239
+ )
240
+ ], C = !0);
241
+ },
242
+ p(d, h) {
243
+ h[0] & /*$_*/
244
+ 4194304 && s !== (s = /*$_*/
245
+ d[22]("faceCollector.finish") + "") && x(n, s), h[0] & /*$justification*/
246
+ 65536 && u !== (u = /*$justification*/
247
+ d[16].length === 0) && (i.disabled = u), h[0] & /*$_*/
248
+ 4194304 && f !== (f = /*$_*/
249
+ d[22]("faceCollector.retakePhoto") + "") && x(b, f);
250
+ },
251
+ d(d) {
252
+ d && G(t), C = !1, ct(_);
253
+ }
254
+ };
255
+ }
256
+ function zi(a) {
257
+ let t, i;
258
+ return t = new ji({ props: { handler: (
259
+ /*func*/
260
+ a[51]
261
+ ) } }), {
262
+ c() {
263
+ ke(t.$$.fragment);
264
+ },
265
+ m(s, n) {
266
+ ye(t, s, n), i = !0;
267
+ },
268
+ p: oe,
269
+ i(s) {
270
+ i || (V(t.$$.fragment, s), i = !0);
271
+ },
272
+ o(s) {
273
+ z(t.$$.fragment, s), i = !1;
274
+ },
275
+ d(s) {
276
+ De(t, s);
277
+ }
278
+ };
279
+ }
280
+ function Gi(a) {
281
+ let t, i, s, n, u, o, r, f, b;
282
+ const C = [es, $i, xi, Zi], _ = [];
283
+ function d(h, A) {
284
+ return (
285
+ /*$captured*/
286
+ h[13] ? (
287
+ /*$requestResult*/
288
+ h[18] !== lt.OK ? 1 : (
289
+ /*$saved*/
290
+ h[15] ? 3 : 2
291
+ )
292
+ ) : 0
293
+ );
294
+ }
295
+ return o = d(a), r = _[o] = C[o](a), {
296
+ c() {
297
+ t = w("div"), i = w("img"), u = B(), r.c(), c(i, "class", "m-auto col-start-1 col-end-1 max-h-[23.2em]"), rt(i.src, s = /*$dataTypePrefix*/
298
+ a[19] + "," + /*$image*/
299
+ a[17]) || c(i, "src", s), i.hidden = n = !/*$captured*/
300
+ a[13] || !/*$showFaceWhileValidating*/
301
+ a[24], c(i, "alt", ""), c(t, "class", f = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
302
+ a[24] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible"));
303
+ },
304
+ m(h, A) {
305
+ Q(h, t, A), l(t, i), l(t, u), _[o].m(t, null), b = !0;
306
+ },
307
+ p(h, A) {
308
+ (!b || A[0] & /*$dataTypePrefix, $image*/
309
+ 655360 && !rt(i.src, s = /*$dataTypePrefix*/
310
+ h[19] + "," + /*$image*/
311
+ h[17])) && c(i, "src", s), (!b || A[0] & /*$captured, $showFaceWhileValidating*/
312
+ 16785408 && n !== (n = !/*$captured*/
313
+ h[13] || !/*$showFaceWhileValidating*/
314
+ h[24])) && (i.hidden = n);
315
+ let D = o;
316
+ o = d(h), o === D ? _[o].p(h, A) : (ve(), z(_[D], 1, 1, () => {
317
+ _[D] = null;
318
+ }), Ce(), r = _[o], r ? r.p(h, A) : (r = _[o] = C[o](h), r.c()), V(r, 1), r.m(t, null)), (!b || A[0] & /*$showFaceWhileValidating*/
319
+ 16777216 && f !== (f = "grid-cols-1 grid-rows-2 sm:grid-cols-2 sm:grid-rows-1 gap-[.5em] " + (/*$showFaceWhileValidating*/
320
+ h[24] ? "grid overflow-hidden" : "absolute -translate-y-1/2 -translate-x-1/2 top-1/2 left-1/2 overflow-visible"))) && c(t, "class", f);
321
+ },
322
+ i(h) {
323
+ b || (V(r), b = !0);
324
+ },
325
+ o(h) {
326
+ z(r), b = !1;
327
+ },
328
+ d(h) {
329
+ h && G(t), _[o].d();
330
+ }
331
+ };
332
+ }
333
+ function Zi(a) {
334
+ let t, i, s = (
335
+ /*$_*/
336
+ a[22]("docCollector.captured") + ""
337
+ ), n, u, o, r, f = (
338
+ /*$_*/
339
+ a[22]("faceCollector.retakePhoto") + ""
340
+ ), b, C, _ = Ut(Ki).faceStrategy !== Vi.DISABLED, d, h, A, D = _ && ts();
341
+ return {
342
+ c() {
343
+ t = w("div"), i = w("h1"), n = J(s), u = B(), o = w("div"), r = w("button"), b = J(f), C = B(), D && D.c(), c(i, "class", "text-3xl font-bold pb-[1em] transition-opacity"), c(r, "id", "bry-cc-retake-button"), c(r, "class", "ce-dui-btn ce-dui-btn-block flex-shrink text-base"), c(o, "class", "flex flex-row"), Ot(o, "ce-dui-btn-group", !/*$exportButtonDisabled*/
344
+ a[25]);
345
+ },
346
+ m(v, O) {
347
+ Q(v, t, O), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, b), l(o, C), D && D.m(o, null), d = !0, h || (A = re(
348
+ r,
349
+ "click",
350
+ /*click_handler_6*/
351
+ a[50]
352
+ ), h = !0);
353
+ },
354
+ p(v, O) {
355
+ (!d || O[0] & /*$_*/
356
+ 4194304) && s !== (s = /*$_*/
357
+ v[22]("docCollector.captured") + "") && x(n, s), (!d || O[0] & /*$_*/
358
+ 4194304) && f !== (f = /*$_*/
359
+ v[22]("faceCollector.retakePhoto") + "") && x(b, f), (!d || O[0] & /*$exportButtonDisabled*/
360
+ 33554432) && Ot(o, "ce-dui-btn-group", !/*$exportButtonDisabled*/
361
+ v[25]);
362
+ },
363
+ i(v) {
364
+ d || (V(D), d = !0);
365
+ },
366
+ o(v) {
367
+ z(D), d = !1;
368
+ },
369
+ d(v) {
370
+ v && G(t), D && D.d(), h = !1, A();
371
+ }
372
+ };
373
+ }
374
+ function xi(a) {
375
+ let t, i, s = (
376
+ /*$_*/
377
+ a[22]("faceCollector.unconformities") + ""
378
+ ), n, u, o, r, f, b = (
379
+ /*$_*/
380
+ a[22]("faceCollector.provideAReasonForTheLowQualityCapture") + ""
381
+ ), C, _, d, h, A, D, v, O, ee = (
382
+ /*$_*/
383
+ a[22]("faceCollector.thisInformationIsRequired") + ""
384
+ ), te, $, S, M, ie, P = (
385
+ /*$captured*/
386
+ a[13] && Nt(a)
387
+ );
388
+ return {
389
+ c() {
390
+ t = w("div"), i = w("h1"), n = J(s), u = B(), o = w("div"), r = w("label"), f = w("span"), C = J(b), _ = B(), d = w("textarea"), A = B(), D = w("label"), v = w("span"), O = J("("), te = J(ee), $ = J(")"), S = B(), P && P.c(), c(i, "class", "text-3xl font-bold pb-[1em] transition-opacity"), c(f, "class", "ce-dui-label-text text-base"), c(r, "class", "ce-dui-label"), c(r, "for", "justification"), c(d, "contenteditable", ""), c(d, "id", "justification"), c(d, "class", "ce-dui-textarea ce-dui-textarea-bordered h-[6em] text-base"), c(d, "placeholder", h = /*$_*/
391
+ a[22]("faceCollector.yourJustification")), c(v, "class", "ce-dui-label-text-alt text-base"), c(D, "class", "ce-dui-label"), c(D, "for", "justification"), c(o, "class", "ce-dui-form-control mt-[2.5em]");
392
+ },
393
+ m(R, E) {
394
+ Q(R, t, E), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, f), l(f, C), l(o, _), l(o, d), Rt(
395
+ d,
396
+ /*$justification*/
397
+ a[16]
398
+ ), l(o, A), l(o, D), l(D, v), l(v, O), l(v, te), l(v, $), l(t, S), P && P.m(t, null), M || (ie = re(
399
+ d,
400
+ "input",
401
+ /*textarea_input_handler*/
402
+ a[47]
403
+ ), M = !0);
404
+ },
405
+ p(R, E) {
406
+ E[0] & /*$_*/
407
+ 4194304 && s !== (s = /*$_*/
408
+ R[22]("faceCollector.unconformities") + "") && x(n, s), E[0] & /*$_*/
409
+ 4194304 && b !== (b = /*$_*/
410
+ R[22]("faceCollector.provideAReasonForTheLowQualityCapture") + "") && x(C, b), E[0] & /*$_*/
411
+ 4194304 && h !== (h = /*$_*/
412
+ R[22]("faceCollector.yourJustification")) && c(d, "placeholder", h), E[0] & /*$justification*/
413
+ 65536 && Rt(
414
+ d,
415
+ /*$justification*/
416
+ R[16]
417
+ ), E[0] & /*$_*/
418
+ 4194304 && ee !== (ee = /*$_*/
419
+ R[22]("faceCollector.thisInformationIsRequired") + "") && x(te, ee), /*$captured*/
420
+ R[13] ? P ? P.p(R, E) : (P = Nt(R), P.c(), P.m(t, null)) : P && (P.d(1), P = null);
421
+ },
422
+ i: oe,
423
+ o: oe,
424
+ d(R) {
425
+ R && G(t), P && P.d(), M = !1, ie();
426
+ }
427
+ };
428
+ }
429
+ function $i(a) {
430
+ let t, i, s = (
431
+ /*$_*/
432
+ a[22]("faceCollector.everythingOk") + ""
433
+ ), n, u, o, r, f = (
434
+ /*$_*/
435
+ a[22]("faceCollector.finish") + ""
436
+ ), b, C, _, d = (
437
+ /*$_*/
438
+ a[22]("faceCollector.retakePhoto") + ""
439
+ ), h, A, D;
440
+ return {
441
+ c() {
442
+ t = w("div"), i = w("h1"), n = J(s), u = B(), o = w("div"), r = w("button"), b = J(f), C = B(), _ = w("button"), h = J(d), c(i, "class", "text-3xl font-bold pb-[1em] transition-opacity"), r.disabled = !0, c(r, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink"), c(_, "id", "bry-cc-retake-button"), c(_, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink"), c(o, "class", "ce-dui-btn-group flex"), c(t, "class", "flex flex-col justify-between");
443
+ },
444
+ m(v, O) {
445
+ Q(v, t, O), l(t, i), l(i, n), l(t, u), l(t, o), l(o, r), l(r, b), l(o, C), l(o, _), l(_, h), A || (D = [
446
+ re(
447
+ r,
448
+ "click",
449
+ /*click_handler_2*/
450
+ a[45]
451
+ ),
452
+ re(
453
+ _,
454
+ "click",
455
+ /*click_handler_3*/
456
+ a[46]
457
+ )
458
+ ], A = !0);
459
+ },
460
+ p(v, O) {
461
+ O[0] & /*$_*/
462
+ 4194304 && s !== (s = /*$_*/
463
+ v[22]("faceCollector.everythingOk") + "") && x(n, s), O[0] & /*$_*/
464
+ 4194304 && f !== (f = /*$_*/
465
+ v[22]("faceCollector.finish") + "") && x(b, f), O[0] & /*$_*/
466
+ 4194304 && d !== (d = /*$_*/
467
+ v[22]("faceCollector.retakePhoto") + "") && x(h, d);
468
+ },
469
+ i: oe,
470
+ o: oe,
471
+ d(v) {
472
+ v && G(t), A = !1, ct(D);
473
+ }
474
+ };
475
+ }
476
+ function es(a) {
477
+ let t;
478
+ return {
479
+ c() {
480
+ t = w("div"), c(t, "class", "");
481
+ },
482
+ m(i, s) {
483
+ Q(i, t, s);
484
+ },
485
+ p: oe,
486
+ i: oe,
487
+ o: oe,
488
+ d(i) {
489
+ i && G(t);
490
+ }
491
+ };
492
+ }
493
+ function ts(a) {
494
+ let t, i;
495
+ return t = new qi({
496
+ props: { cssClass: "ce-dui-btn-block flex-shrink" }
497
+ }), {
498
+ c() {
499
+ ke(t.$$.fragment);
500
+ },
501
+ m(s, n) {
502
+ ye(t, s, n), i = !0;
503
+ },
504
+ i(s) {
505
+ i || (V(t.$$.fragment, s), i = !0);
506
+ },
507
+ o(s) {
508
+ z(t.$$.fragment, s), i = !1;
509
+ },
510
+ d(s) {
511
+ De(t, s);
512
+ }
513
+ };
514
+ }
515
+ function Nt(a) {
516
+ let t, i, s = (
517
+ /*$_*/
518
+ a[22]("faceCollector.finish") + ""
519
+ ), n, u, o, r, f = (
520
+ /*$_*/
521
+ a[22]("faceCollector.retakePhoto") + ""
522
+ ), b, C, _;
523
+ return {
524
+ c() {
525
+ t = w("div"), i = w("button"), n = J(s), o = B(), r = w("button"), b = J(f), i.disabled = u = /*$justification*/
526
+ a[16].length === 0, c(i, "class", "ce-dui-btn ce-dui-btn-primary ce-dui-btn-block flex-shrink text-base"), c(r, "id", "bry-cc-retake-button"), c(r, "class", "ce-dui-btn ce-dui-btn-block ce-dui-btn-outline flex-shrink text-base"), c(t, "class", "ce-dui-btn-group flex");
527
+ },
528
+ m(d, h) {
529
+ Q(d, t, h), l(t, i), l(i, n), l(t, o), l(t, r), l(r, b), C || (_ = [
530
+ re(
531
+ i,
532
+ "click",
533
+ /*click_handler_4*/
534
+ a[48]
535
+ ),
536
+ re(
537
+ r,
538
+ "click",
539
+ /*click_handler_5*/
540
+ a[49]
541
+ )
542
+ ], C = !0);
543
+ },
544
+ p(d, h) {
545
+ h[0] & /*$_*/
546
+ 4194304 && s !== (s = /*$_*/
547
+ d[22]("faceCollector.finish") + "") && x(n, s), h[0] & /*$justification*/
548
+ 65536 && u !== (u = /*$justification*/
549
+ d[16].length === 0) && (i.disabled = u), h[0] & /*$_*/
550
+ 4194304 && f !== (f = /*$_*/
551
+ d[22]("faceCollector.retakePhoto") + "") && x(b, f);
552
+ },
553
+ d(d) {
554
+ d && G(t), C = !1, ct(_);
555
+ }
556
+ };
557
+ }
558
+ function is(a) {
559
+ let t, i, s, n = (
560
+ /*unique*/
561
+ a[8]
562
+ ), u, o, r, f, b, C, _, d, h, A, D, v, O, ee, te, $, S, M, ie, P, R = Pt(a), E = (
563
+ /*showConfigButton*/
564
+ a[1] && /*$ready*/
565
+ a[21] && At()
566
+ ), F = (
567
+ /*showCameraButton*/
568
+ a[2] && /*$ready*/
569
+ a[21] && St()
570
+ ), H = !/*$captured*/
571
+ a[13] && /*$ready*/
572
+ a[21] && Lt(a), q = (
573
+ /*isCountingDown*/
574
+ a[7] && Ft(a)
575
+ ), Y = (
576
+ /*$enableFaceApi*/
577
+ a[20] && !/*isCountingDown*/
578
+ a[7] && /*$faceValidationAlert*/
579
+ a[14] && It(a)
580
+ ), X = !/*$ready*/
581
+ a[21] && /*$cameraStatusStore*/
582
+ a[12] === K.OK && Wt(a), p = (
583
+ /*$captured*/
584
+ a[13] && Mt(a)
585
+ );
586
+ const Z = [Gi, zi], j = [];
587
+ function le(m, N) {
588
+ return (
589
+ /*showUnconformities*/
590
+ m[0] && (!/*idrndClosed*/
591
+ m[11] || /*$captured*/
592
+ m[13]) ? 0 : (
593
+ /*$cameraStatusStore*/
594
+ m[12] !== K.OK ? 1 : -1
595
+ )
596
+ );
597
+ }
598
+ return ~(S = le(a)) && (M = j[S] = Z[S](a)), {
599
+ c() {
600
+ t = w("div"), i = w("div"), s = w("div"), R.c(), u = B(), E && E.c(), o = B(), F && F.c(), r = B(), H && H.c(), f = B(), b = w("canvas"), C = B(), _ = w("canvas"), d = B(), h = w("canvas"), A = B(), q && q.c(), D = B(), Y && Y.c(), ee = B(), X && X.c(), te = B(), p && p.c(), $ = B(), M && M.c(), ie = wi(), this.c = oe, c(b, "id", "bry-ce-displayCanvas"), c(b, "class", "max-w-full"), c(_, "id", "bry-ce-detectionsCanvas"), c(_, "class", "absolute top-0 left-0 max-w-full"), c(h, "id", "bry-ce-maskCanvas"), c(h, "class", "absolute top-0 left-0 max-w-full"), c(s, "class", v = /*$ready*/
601
+ a[21] ? "relative" : "relative w-0 h-0"), s.hidden = O = /*$cameraStatusStore*/
602
+ a[12] !== K.OK, c(i, "class", "relative mx-auto"), c(t, "class", "flex flex-col justify-between");
603
+ },
604
+ m(m, N) {
605
+ Q(m, t, N), l(t, i), l(i, s), R.m(s, null), l(s, u), E && E.m(s, null), l(s, o), F && F.m(s, null), l(s, r), H && H.m(s, null), l(s, f), l(s, b), a[39](b), l(s, C), l(s, _), a[40](_), l(s, d), l(s, h), a[41](h), l(s, A), q && q.m(s, null), l(s, D), Y && Y.m(s, null), l(i, ee), X && X.m(i, null), l(i, te), p && p.m(i, null), a[44](t), Q(m, $, N), ~S && j[S].m(m, N), Q(m, ie, N), P = !0;
606
+ },
607
+ p(m, N) {
608
+ N[0] & /*unique*/
609
+ 256 && Ht(n, n = /*unique*/
610
+ m[8]) ? (R.d(1), R = Pt(m), R.c(), R.m(s, u)) : R.p(m, N), /*showConfigButton*/
611
+ m[1] && /*$ready*/
612
+ m[21] ? E ? N[0] & /*showConfigButton, $ready*/
613
+ 2097154 && V(E, 1) : (E = At(), E.c(), V(E, 1), E.m(s, o)) : E && (ve(), z(E, 1, 1, () => {
614
+ E = null;
615
+ }), Ce()), /*showCameraButton*/
616
+ m[2] && /*$ready*/
617
+ m[21] ? F ? N[0] & /*showCameraButton, $ready*/
618
+ 2097156 && V(F, 1) : (F = St(), F.c(), V(F, 1), F.m(s, r)) : F && (ve(), z(F, 1, 1, () => {
619
+ F = null;
620
+ }), Ce()), !/*$captured*/
621
+ m[13] && /*$ready*/
622
+ m[21] ? H ? (H.p(m, N), N[0] & /*$captured, $ready*/
623
+ 2105344 && V(H, 1)) : (H = Lt(m), H.c(), V(H, 1), H.m(s, f)) : H && (ve(), z(H, 1, 1, () => {
624
+ H = null;
625
+ }), Ce()), /*isCountingDown*/
626
+ m[7] ? q ? q.p(m, N) : (q = Ft(m), q.c(), q.m(s, D)) : q && (q.d(1), q = null), /*$enableFaceApi*/
627
+ m[20] && !/*isCountingDown*/
628
+ m[7] && /*$faceValidationAlert*/
629
+ m[14] ? Y ? Y.p(m, N) : (Y = It(m), Y.c(), Y.m(s, null)) : Y && (Y.d(1), Y = null), (!P || N[0] & /*$ready*/
630
+ 2097152 && v !== (v = /*$ready*/
631
+ m[21] ? "relative" : "relative w-0 h-0")) && c(s, "class", v), (!P || N[0] & /*$cameraStatusStore*/
632
+ 4096 && O !== (O = /*$cameraStatusStore*/
633
+ m[12] !== K.OK)) && (s.hidden = O), !/*$ready*/
634
+ m[21] && /*$cameraStatusStore*/
635
+ m[12] === K.OK ? X ? X.p(m, N) : (X = Wt(m), X.c(), X.m(i, te)) : X && (X.d(1), X = null), /*$captured*/
636
+ m[13] ? p ? p.p(m, N) : (p = Mt(m), p.c(), p.m(i, null)) : p && (p.d(1), p = null);
637
+ let ce = S;
638
+ S = le(m), S === ce ? ~S && j[S].p(m, N) : (M && (ve(), z(j[ce], 1, 1, () => {
639
+ j[ce] = null;
640
+ }), Ce()), ~S ? (M = j[S], M ? M.p(m, N) : (M = j[S] = Z[S](m), M.c()), V(M, 1), M.m(ie.parentNode, ie)) : M = null);
641
+ },
642
+ i(m) {
643
+ P || (V(E), V(F), V(H), V(M), P = !0);
644
+ },
645
+ o(m) {
646
+ z(E), z(F), z(H), z(M), P = !1;
647
+ },
648
+ d(m) {
649
+ m && G(t), R.d(m), E && E.d(), F && F.d(), H && H.d(), a[39](null), a[40](null), a[41](null), q && q.d(), Y && Y.d(), X && X.d(), p && p.d(), a[44](null), m && G($), ~S && j[S].d(m), m && G(ie);
650
+ }
651
+ };
652
+ }
653
+ let ss = !1, as = 5;
654
+ function Bt(a, t, i) {
655
+ const s = t.videoWidth / t.videoHeight, n = i.width / i.height;
656
+ let u = 0, o = 0, r = t.videoWidth, f = t.videoHeight;
657
+ s > n ? (r = t.videoHeight * n, u = (t.videoWidth - r) / 2) : s < n && (f = t.videoWidth / n, o = (t.videoHeight - f) / 2), a.drawImage(t, u, o, r, f, 0, 0, i.width, i.height);
658
+ }
659
+ function os(a, t, i) {
660
+ let s, n, u, o, r, f, b, C, _, d, h, A, D, v, O, ee, te, $, S, M, ie, P, R, E, F, H, q, Y, X;
661
+ T(a, $e, (e) => i(63, s = e)), T(a, Ae, (e) => i(65, u = e)), T(a, se, (e) => i(12, o = e)), T(a, vi, (e) => i(66, r = e)), T(a, Se, (e) => i(67, f = e)), T(a, Ci, (e) => i(68, b = e)), T(a, ge, (e) => i(69, C = e)), T(a, _e, (e) => i(70, _ = e)), T(a, Le, (e) => i(13, d = e)), T(a, et, (e) => i(71, h = e)), T(a, wt, (e) => i(72, A = e)), T(a, vt, (e) => i(73, D = e)), T(a, Fe, (e) => i(14, v = e)), T(a, Ie, (e) => i(15, O = e)), T(a, Ct, (e) => i(16, ee = e)), T(a, kt, (e) => i(17, te = e)), T(a, tt, (e) => i(18, $ = e)), T(a, it, (e) => i(74, S = e)), T(a, yt, (e) => i(75, ie = e)), T(a, ki, (e) => i(20, P = e)), T(a, We, (e) => i(21, R = e)), T(a, st, (e) => i(76, E = e)), T(a, Me, (e) => i(77, F = e)), T(a, yi, (e) => i(22, H = e)), T(a, Di, (e) => i(23, q = e)), T(a, Ei, (e) => i(24, Y = e)), T(a, Ti, (e) => i(25, X = e));
662
+ let p, Z, j, le = !1, m = {}, N = !1, { enableMinutiae: ce } = t, { videoDimensions: Ue } = t, { noTabs: Ke } = t, { weightsPath: Ve } = t, { showUnconformities: ut } = t, { videoOverlay: Ee } = t, { videoOverlayTransparency: he } = t, { showConfigButton: ft } = t, { showCameraButton: dt } = t;
663
+ const Te = Tt(!1);
664
+ T(a, Te, (e) => i(64, n = e));
665
+ const qe = Tt("data:image/png;base64");
666
+ T(a, qe, (e) => i(19, M = e));
667
+ let ue, U, ht = !1, me = !0, mt = 0, Ye = 0, Xe = !0, je = 0, Je = !1, Qe = (/* @__PURE__ */ new Date()).getTime(), ze = !1, k = {
668
+ topLeftX: 130,
669
+ topLeftY: 70,
670
+ width: 540,
671
+ height: 400
672
+ };
673
+ Oi.mixin({
674
+ toast: !0,
675
+ position: "bottom-left",
676
+ timer: 13e3,
677
+ timerProgressBar: !0
678
+ }), Ri(async () => {
679
+ g(We, R = !1, R), bt(), await Ge(), P && (await Pi(Ve), N = !0), qt();
680
+ });
681
+ function bt() {
682
+ g(Le, d = !1, d), g(vt, D = !0, D), g(Fe, v = "", v), g(Se, f = at.REAR_CAMERA, f), g(se, o = K.OK, o), g(Ae, u = !1, u), g(Ie, O = !1, O), g(tt, $ = lt.OK, $), g(it, S = "", S);
683
+ const e = Ut(ot);
684
+ e.closedMouth = !1, e.isPersonCloseEnough = !1, e.isPersonTooclose = !0, e.isPersonInFrame = !1, ot.set(e);
685
+ }
686
+ function Kt() {
687
+ const e = _.videoWidth, L = _.videoHeight, I = L * 0.85, y = I * 1.5;
688
+ k.topLeftX = (e - y) / 2, k.topLeftY = (L - I) / 3, Ne() && (k.topLeftY = (L - I) / 2), k.width = y, k.height = I, g(Me, F.y = k.topLeftY, F), g(Me, F.height = k.height, F), g(Me, F.width = k.width, F);
689
+ }
690
+ function gt(e, L) {
691
+ e.clearRect(0, 0, U.width, U.height), e.save(), Kt(), Ee != "none" ? (he > 0 && (e.globalAlpha = he / 100), e.fillStyle = Ee, e.fillRect(0, 0, U.width, U.height)) : (e.beginPath(), e.rect(0, 0, U.width, U.height)), e.rect(k.topLeftX, k.topLeftY, k.width, k.height), he == 0 && e.clip(), Bt(e, L, U), e.restore(), e.save(), e.beginPath();
692
+ const I = window.getComputedStyle(U).getPropertyValue("--p"), y = window.getComputedStyle(U).getPropertyValue("--su");
693
+ if (e.strokeStyle = `hsl(${I})`, e.lineWidth = 12, e.lineJoin = "round", e.setLineDash([28, 8]), e.rect(k.topLeftX, k.topLeftY, k.width, k.height), e.stroke(), le && !Je) {
694
+ const ae = 1 - (je - (/* @__PURE__ */ new Date()).getTime()) / 4500;
695
+ e.save(), e.beginPath(), e.setLineDash([]), e.lineWidth = 14, e.strokeStyle = `hsl(${y})`;
696
+ const Ze = k.width * 3 * ae, Re = k.height * 2 * ae, xe = Ze < k.width ? Ze : k.width, Pe = Re < k.height ? Re : k.height;
697
+ e.rect(k.topLeftX, k.topLeftY, xe, Pe), e.stroke();
698
+ }
699
+ e.beginPath();
700
+ const W = new Path2D();
701
+ W.rect(k.topLeftX, k.topLeftY, k.width, k.height), e.clip(W), Bt(e, L, U), e.restore();
702
+ }
703
+ function _t() {
704
+ g(se, o = K.OK, o), ht = !0, i(11, me = !1);
705
+ }
706
+ async function be() {
707
+ if (P && !N)
708
+ return pe(p, be);
709
+ if (p) {
710
+ if (E !== nt.Document && !Ke)
711
+ return pe(p, be);
712
+ g(We, R = !0, R), P ? (n || g(Te, n = !0, n), gt(U.getContext("2d"), p), pe(p, be)) : (gt(U.getContext("2d"), p), pe(p, be));
713
+ }
714
+ }
715
+ async function Vt() {
716
+ ie && (Et(), g(yt, ie = !1, ie)), g(tt, $ = lt.OK, $), g(Le, d = !0, d), g(Ie, O = !0, O);
717
+ const e = document.createElement("canvas"), L = e.getContext("2d"), I = 0.2 * k.width, y = 0.2 * k.height;
718
+ e.width = k.width + I, e.height = k.height + y, L?.drawImage(p, k.topLeftX - I / 2, k.topLeftY - y / 2, k.width + I, k.height + y, 0, 0, e.width, e.height);
719
+ const W = e.toDataURL("image/jpeg").split(",");
720
+ g(qe, M = W[0], M), g(kt, te = W[1], te), g(it, S = W[1], S);
721
+ const ae = [{ data: S }];
722
+ window.dispatchEvent(new CustomEvent(
723
+ "document-unconformities-validated",
724
+ {
725
+ detail: { bodyParts: ae, status: $ }
726
+ }
727
+ ));
728
+ }
729
+ function Oe() {
730
+ const e = {
731
+ bodyPart: "DOCUMENT",
732
+ data: te,
733
+ justification: ee
734
+ };
735
+ g(Ie, O = !0, O), window.dispatchEvent(new CustomEvent("export-document", { detail: e }));
736
+ }
737
+ function fe() {
738
+ window.dispatchEvent(new CustomEvent("document-scrapped")), bt(), me && _t();
739
+ }
740
+ async function Ge(e) {
741
+ const [L, I] = (Ue ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
742
+ if (!(!L || !I)) {
743
+ g(_e, _ = { videoWidth: L, videoHeight: I }, _);
744
+ try {
745
+ const { deviceId: y, width: W, height: ae, aspectRatio: Ze } = await Ai(L, I, f, e);
746
+ if (Ne()) {
747
+ const Re = window.innerWidth, xe = window.innerHeight, Pe = 2560, bi = xe / Re * Pe;
748
+ g(
749
+ _e,
750
+ _ = {
751
+ videoWidth: Pe,
752
+ videoHeight: bi
753
+ },
754
+ _
755
+ );
756
+ } else
757
+ g(_e, _ = { videoWidth: L, videoHeight: I }, _);
758
+ g(ge, C = y || b[0].deviceId, C), g(se, o = K.OK, o);
759
+ } catch (y) {
760
+ const W = y;
761
+ i(11, me = !0);
762
+ const ae = Be(y) && y.constraint ? y.constraint : "";
763
+ console.error(W, ae), Be(W) && "message" in W && W.message.includes("Permission denied") && (console.error("User didn't give permission to use camera!"), g(se, o = K.CAMERA_DENIED_ERROR, o)), Be(W) && "message" in W && W.message.includes("Requested device not found") && g(se, o = K.DEVICE_NOT_FOUND_ERROR, o), (ae.includes("width") || ae.includes("height")) && (console.error(`Camera does not meet the minimum supported requirements! (${ae})`), g(se, o = K.CAMERA_UNSUPPORTED, o));
764
+ }
765
+ }
766
+ }
767
+ async function de() {
768
+ g(ge, C = "", C), await Ge();
769
+ }
770
+ function qt() {
771
+ navigator.mediaDevices.ondevicechange = async (e) => {
772
+ await Dt(), o !== K.OK ? await de() : A.active || (He(), g(se, o = K.DEVICE_NOT_FOUND_ERROR, o));
773
+ };
774
+ }
775
+ function Yt() {
776
+ g(Ae, u = !1, u);
777
+ const e = (/* @__PURE__ */ new Date()).getTime();
778
+ e - Qe > 1e4 ? (Qe = e, g(Fe, v = "docCollector.docWasNotFound", v)) : ze || (ze = !0, setTimeout(
779
+ () => {
780
+ ze = !1, v != "docCollector.docWasNotFound" && g(Fe, v = "", v);
781
+ },
782
+ 1500
783
+ ));
784
+ }
785
+ const Xt = _e.subscribe((e) => {
786
+ p && Z && (i(4, p.width = e.videoWidth, p), i(4, p.height = e.videoHeight, p), i(5, Z.width = e.videoWidth, Z), i(5, Z.height = e.videoHeight, Z), i(9, ue.width = e.videoWidth, ue), i(9, ue.height = e.videoHeight, ue), i(10, U.width = e.videoWidth, U), i(10, U.height = e.videoHeight, U));
787
+ }), jt = ot.subscribe((e) => {
788
+ if (r != "DOCUMENT")
789
+ return;
790
+ let L = "";
791
+ if (e.isPersonCloseEnough ? e.isPersonTooclose ? L = "docCollector.moveAwayCamera" : e.isPersonInFrame || (L = "docCollector.stayInFrame") : L = "docCollector.comeCloserCamera", u && Si(L), !d && D && u && !le && e.isPersonInFrame && !(!e.isPersonCloseEnough || e.isPersonTooclose)) {
792
+ i(7, le = !0), je = (/* @__PURE__ */ new Date()).getTime() + 4500;
793
+ const I = setInterval(
794
+ () => {
795
+ if (!D || d || !e.isPersonCloseEnough || e.isPersonTooclose || !e.isPersonInFrame) {
796
+ i(7, le = !1), Je = !0, setTimeout(
797
+ () => {
798
+ Je = !1;
799
+ },
800
+ 1500
801
+ ), clearInterval(I);
802
+ return;
803
+ }
804
+ const y = (/* @__PURE__ */ new Date()).getTime();
805
+ Math.floor((je - y) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(I), i(7, le = !1), document.getElementsByTagName("biometric-collector")?.[0]?.shadowRoot?.getElementById("bry-cc-capture-btn")?.click());
806
+ },
807
+ 250
808
+ );
809
+ }
810
+ }), Jt = Le.subscribe((e) => {
811
+ j && (e ? (j.classList.remove("flex"), j.classList.add("hidden")) : (j.classList.add("flex"), j.classList.remove("hidden")));
812
+ }), Qt = et.subscribe((e) => {
813
+ p && e && (console.log("setting null in video srcObject"), i(4, p.srcObject = null, p), i(4, p.src = "", p), g(ge, C = null, C));
814
+ });
815
+ st.subscribe(async (e) => {
816
+ e === nt.Document && await Dt();
817
+ });
818
+ const zt = ge.subscribe(async (e) => {
819
+ if (!e || r != "DOCUMENT")
820
+ return;
821
+ p || i(8, m = {});
822
+ const { videoHeight: L, videoWidth: I } = _;
823
+ try {
824
+ const y = await Li(I, L, e);
825
+ i(4, p.srcObject = y, p), g(wt, A = y, A), g(et, h = !1, h), y.getTracks().forEach((W) => {
826
+ W.readyState === "live" && console.log(`Camera ${W.label} opened successfully!`);
827
+ }), Fi(p), Xe || g(se, o = K.CAMERA_ORIENTATION_LANDSCAPE, o);
828
+ } catch (y) {
829
+ const W = y;
830
+ i(11, me = !0), Be(W) && "message" in W && W.message.includes("Requested device not found") && g(se, o = K.DEVICE_NOT_FOUND_ERROR, o);
831
+ }
832
+ }), Gt = st.subscribe(async (e) => {
833
+ e === nt.Document && !ht && !d && ss && await _t();
834
+ }), Zt = Te.subscribe(async (e) => {
835
+ e && pt();
836
+ }), xt = We.subscribe((e) => {
837
+ e && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
838
+ }), $t = Ii.subscribe(async (e) => {
839
+ if (_) {
840
+ if (He(), !Ne()) {
841
+ const I = (b.findIndex((W) => W.deviceId === C) + 1) % b.length, y = b[I].deviceId;
842
+ await Ge(y);
843
+ return;
844
+ }
845
+ e ? (g(Se, f = at.FRONT_CAMERA, f), await de()) : (g(Se, f = at.REAR_CAMERA, f), await de());
846
+ }
847
+ }), ei = Wi.subscribe(async (e) => {
848
+ !e.isSupported || !Ne() || r != "DOCUMENT" || (He(), Xe = e.orientation.includes("landscape"), Xe ? g(se, o = K.OK, o) : g(se, o = K.CAMERA_ORIENTATION_LANDSCAPE, o), await de());
849
+ });
850
+ async function pt() {
851
+ let e;
852
+ try {
853
+ if (Ye >= as) {
854
+ Ye = 0;
855
+ const L = await Mi(), I = await import("./face_api_0e3ce8c8_2.3.1-RC03.js");
856
+ let y;
857
+ y = I.detectSingleFace(U, L), e = await y.withFaceLandmarks(), Z.getContext("2d")?.clearRect(0, 0, Z.width, Z.height), e != null ? (Ni(e, Z, ce, !0), g(Ae, u = !0, u), Qe = (/* @__PURE__ */ new Date()).getTime()) : Yt();
858
+ } else
859
+ Ye++;
860
+ n && pe(p, pt);
861
+ } catch (L) {
862
+ console.warn(`FaceapiLoop: ${L}`);
863
+ }
864
+ }
865
+ $e.subscribe(async (e) => {
866
+ e && (fe(), g($e, s = !1, s));
867
+ }), Bi(() => {
868
+ He(), Jt(), jt(), Xt(), Qt(), zt(), Gt(), clearInterval(mt), Zt(), $t(), xt(), ei(), Et(), mt = 0;
869
+ });
870
+ function ti(e) {
871
+ we[e ? "unshift" : "push"](() => {
872
+ p = e, i(4, p);
873
+ });
874
+ }
875
+ function ii(e) {
876
+ we[e ? "unshift" : "push"](() => {
877
+ U = e, i(10, U);
878
+ });
879
+ }
880
+ function si(e) {
881
+ we[e ? "unshift" : "push"](() => {
882
+ Z = e, i(5, Z);
883
+ });
884
+ }
885
+ function ai(e) {
886
+ we[e ? "unshift" : "push"](() => {
887
+ ue = e, i(9, ue);
888
+ });
889
+ }
890
+ const oi = () => Oe(), ni = () => fe();
891
+ function li(e) {
892
+ we[e ? "unshift" : "push"](() => {
893
+ j = e, i(6, j);
894
+ });
895
+ }
896
+ const ri = () => Oe(), ci = () => fe();
897
+ function ui() {
898
+ ee = this.value, Ct.set(ee);
899
+ }
900
+ const fi = () => Oe(), di = () => fe(), hi = () => fe(), mi = async () => {
901
+ await de();
902
+ };
903
+ return a.$$set = (e) => {
904
+ "enableMinutiae" in e && i(32, ce = e.enableMinutiae), "videoDimensions" in e && i(33, Ue = e.videoDimensions), "noTabs" in e && i(34, Ke = e.noTabs), "weightsPath" in e && i(35, Ve = e.weightsPath), "showUnconformities" in e && i(0, ut = e.showUnconformities), "videoOverlay" in e && i(36, Ee = e.videoOverlay), "videoOverlayTransparency" in e && i(37, he = e.videoOverlayTransparency), "showConfigButton" in e && i(1, ft = e.showConfigButton), "showCameraButton" in e && i(2, dt = e.showCameraButton);
905
+ }, [
906
+ ut,
907
+ ft,
908
+ dt,
909
+ be,
910
+ p,
911
+ Z,
912
+ j,
913
+ le,
914
+ m,
915
+ ue,
916
+ U,
917
+ me,
918
+ o,
919
+ d,
920
+ v,
921
+ O,
922
+ ee,
923
+ te,
924
+ $,
925
+ M,
926
+ P,
927
+ R,
928
+ H,
929
+ q,
930
+ Y,
931
+ X,
932
+ Te,
933
+ qe,
934
+ Vt,
935
+ Oe,
936
+ fe,
937
+ de,
938
+ ce,
939
+ Ue,
940
+ Ke,
941
+ Ve,
942
+ Ee,
943
+ he,
944
+ ti,
945
+ ii,
946
+ si,
947
+ ai,
948
+ oi,
949
+ ni,
950
+ li,
951
+ ri,
952
+ ci,
953
+ ui,
954
+ fi,
955
+ di,
956
+ hi,
957
+ mi
958
+ ];
959
+ }
960
+ class ns extends gi {
961
+ constructor(t) {
962
+ super(), _i(
963
+ this,
964
+ {
965
+ target: this.shadowRoot,
966
+ props: pi(this.attributes),
967
+ customElement: !0
968
+ },
969
+ os,
970
+ is,
971
+ Ht,
972
+ {
973
+ enableMinutiae: 32,
974
+ videoDimensions: 33,
975
+ noTabs: 34,
976
+ weightsPath: 35,
977
+ showUnconformities: 0,
978
+ videoOverlay: 36,
979
+ videoOverlayTransparency: 37,
980
+ showConfigButton: 1,
981
+ showCameraButton: 2,
982
+ play: 3
983
+ },
984
+ null,
985
+ [-1, -1, -1, -1]
986
+ ), t && (t.target && Q(t.target, this, t.anchor), t.props && (this.$set(t.props), ne()));
987
+ }
988
+ static get observedAttributes() {
989
+ return [
990
+ "enableMinutiae",
991
+ "videoDimensions",
992
+ "noTabs",
993
+ "weightsPath",
994
+ "showUnconformities",
995
+ "videoOverlay",
996
+ "videoOverlayTransparency",
997
+ "showConfigButton",
998
+ "showCameraButton",
999
+ "play"
1000
+ ];
1001
+ }
1002
+ get enableMinutiae() {
1003
+ return this.$$.ctx[32];
1004
+ }
1005
+ set enableMinutiae(t) {
1006
+ this.$$set({ enableMinutiae: t }), ne();
1007
+ }
1008
+ get videoDimensions() {
1009
+ return this.$$.ctx[33];
1010
+ }
1011
+ set videoDimensions(t) {
1012
+ this.$$set({ videoDimensions: t }), ne();
1013
+ }
1014
+ get noTabs() {
1015
+ return this.$$.ctx[34];
1016
+ }
1017
+ set noTabs(t) {
1018
+ this.$$set({ noTabs: t }), ne();
1019
+ }
1020
+ get weightsPath() {
1021
+ return this.$$.ctx[35];
1022
+ }
1023
+ set weightsPath(t) {
1024
+ this.$$set({ weightsPath: t }), ne();
1025
+ }
1026
+ get showUnconformities() {
1027
+ return this.$$.ctx[0];
1028
+ }
1029
+ set showUnconformities(t) {
1030
+ this.$$set({ showUnconformities: t }), ne();
1031
+ }
1032
+ get videoOverlay() {
1033
+ return this.$$.ctx[36];
1034
+ }
1035
+ set videoOverlay(t) {
1036
+ this.$$set({ videoOverlay: t }), ne();
1037
+ }
1038
+ get videoOverlayTransparency() {
1039
+ return this.$$.ctx[37];
1040
+ }
1041
+ set videoOverlayTransparency(t) {
1042
+ this.$$set({ videoOverlayTransparency: t }), ne();
1043
+ }
1044
+ get showConfigButton() {
1045
+ return this.$$.ctx[1];
1046
+ }
1047
+ set showConfigButton(t) {
1048
+ this.$$set({ showConfigButton: t }), ne();
1049
+ }
1050
+ get showCameraButton() {
1051
+ return this.$$.ctx[2];
1052
+ }
1053
+ set showCameraButton(t) {
1054
+ this.$$set({ showCameraButton: t }), ne();
1055
+ }
1056
+ get play() {
1057
+ return this.$$.ctx[3];
1058
+ }
1059
+ }
1060
+ customElements.define("document-collector", ns);
1061
+ export {
1062
+ ns as default
1063
+ };