bry-biometric-collector 2.3.1-RC05 → 2.4.0-RC01

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 (21) hide show
  1. package/dist/DocumentCollector_0ce4a997_2.4.0-RC01.js +1233 -0
  2. package/dist/FaceCollector_378e6e60_2.4.0-RC01.js +1989 -0
  3. package/dist/TakePictureBtn_469d970c_2.4.0-RC01.js +864 -0
  4. package/dist/{___vite-browser-external_commonjs-proxy_e6a80175_2.3.1-RC05.js → ___vite-browser-external_commonjs-proxy_a11faf97_2.4.0-RC01.js} +1 -1
  5. package/dist/bry-biometric-collector-main.js +1 -1
  6. package/dist/{en-us_6bd969ac_2.3.1-RC05.js → en-us_46a6e2d2_2.4.0-RC01.js} +1 -1
  7. package/dist/{es-cl_892f6a0f_2.3.1-RC05.js → es-cl_af82486d_2.4.0-RC01.js} +1 -1
  8. package/dist/{fingersApi_ec7d571f_2.3.1-RC05.js → fingersApi_8058842b_2.4.0-RC01.js} +1 -1
  9. package/dist/index.js +1 -1
  10. package/dist/{index_b688e872_2.3.1-RC05.js → index_19569017_2.4.0-RC01.js} +2 -2
  11. package/dist/{index_1806307b_2.3.1-RC05.js → index_fb2a804b_2.4.0-RC01.js} +2 -2
  12. package/dist/{main_8a60e6a8_2.3.1-RC05.js → main_f7a63775_2.4.0-RC01.js} +863 -881
  13. package/dist/{pt-br_45d223b5_2.3.1-RC05.js → pt-br_b6088a59_2.4.0-RC01.js} +7 -7
  14. package/dist/style.css +1 -1
  15. package/package.json +1 -1
  16. package/dist/DocumentCollector_465467c4_2.3.1-RC05.js +0 -1064
  17. package/dist/FaceCollector_769804f2_2.3.1-RC05.js +0 -1992
  18. package/dist/TakePictureBtn_51a7c778_2.3.1-RC05.js +0 -900
  19. /package/dist/{face_api_0e3ce8c8_2.3.1-RC05.js → face_api_0e3ce8c8_2.4.0-RC01.js} +0 -0
  20. /package/dist/{index-no-detector_4b302e78_2.3.1-RC05.js → index-no-detector_4b302e78_2.4.0-RC01.js} +0 -0
  21. /package/dist/{index-no-detector_b6972e40_2.3.1-RC05.js → index-no-detector_b6972e40_2.4.0-RC01.js} +0 -0
@@ -1,1064 +0,0 @@
1
- import { S as pi, q as wi, r as Ut, t as vi, w as Q, L as ne, N as K, x as w, O as B, b7 as Ci, 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 Pe, W as se, X as ki, Y as Ae, _ as yi, Z as ge, a3 as _e, a0 as Se, a1 as et, a2 as vt, J as Ct, a4 as Le, a6 as Fe, a7 as kt, a8 as yt, a9 as tt, ab as it, af as Dt, ad as Di, ah as Ie, ai as st, b8 as We, $ as Ei, ao as Ti, ap as Oi, aq as Ri, ar as Pi, as as Ai, K as g, at as Si, au as at, av as lt, j as Kt, aw as ot, aF as Li, C as Me, d as Ne, aG as Et, ax as Be, aH as Fi, ay as nt, aI as Ii, aJ as Wi, aK as Mi, aL as Ni, aA as Bi, aM as Hi, aN as pe, aO as Ui, aP as Tt, E as re, aR as Ki, aS as ke, aT as ye, aU as De, y as J, G as x, aV as rt, aW as Vi, aQ as ct, aX as Ot, a$ as we, b1 as qi, b2 as Xi, b3 as Rt, b5 as Pt, b6 as Yi } from "./main_8a60e6a8_2.3.1-RC05.js";
2
- import { C as ji, T as Ji, a as Qi } from "./TakePictureBtn_51a7c778_2.3.1-RC05.js";
3
- function At(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 St(a) {
25
- let t, i;
26
- return t = new Ki({}), {
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 Lt(a) {
45
- let t, i;
46
- return t = new ji({}), {
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 Ft(a) {
65
- let t, i;
66
- return t = new Ji({
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 It(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 Wt(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 Mt(a) {
153
- let t, i, s, n, u;
154
- function o(b, C) {
155
- return (
156
- /*$isLoading*/
157
- b[23] ? Gi : zi
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 = Vi) || 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 zi(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 Gi(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 Nt(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 Qi({ 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 xi(a) {
281
- let t, i, s, n, u, o, r, f, b;
282
- const C = [is, ts, es, $i], _ = [];
283
- function d(h, L) {
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, L) {
305
- Q(h, t, L), l(t, i), l(t, u), _[o].m(t, null), b = !0;
306
- },
307
- p(h, L) {
308
- (!b || L[0] & /*$dataTypePrefix, $image*/
309
- 655360 && !rt(i.src, s = /*$dataTypePrefix*/
310
- h[19] + "," + /*$image*/
311
- h[17])) && c(i, "src", s), (!b || L[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, L) : (ve(), z(_[D], 1, 1, () => {
317
- _[D] = null;
318
- }), Ce(), r = _[o], r ? r.p(h, L) : (r = _[o] = C[o](h), r.c()), V(r, 1), r.m(t, null)), (!b || L[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 $i(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, _ = Kt(qi).faceStrategy !== Xi.DISABLED, d, h, L, D = _ && ss();
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"), Rt(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 || (L = 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) && Rt(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, L();
371
- }
372
- };
373
- }
374
- function es(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, L, D, v, O, ee = (
382
- /*$_*/
383
- a[22]("faceCollector.thisInformationIsRequired") + ""
384
- ), te, $, F, M, ie, P = (
385
- /*$captured*/
386
- a[13] && Bt(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"), L = B(), D = w("label"), v = w("span"), O = J("("), te = J(ee), $ = J(")"), F = 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), Pt(
395
- d,
396
- /*$justification*/
397
- a[16]
398
- ), l(o, L), l(o, D), l(D, v), l(v, O), l(v, te), l(v, $), l(t, F), 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 && Pt(
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 = Bt(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 ts(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, L, 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), L || (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
- ], L = !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), L = !1, ct(D);
473
- }
474
- };
475
- }
476
- function is(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 ss(a) {
494
- let t, i;
495
- return t = new Yi({
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 Bt(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 as(a) {
559
- let t, i, s, n = (
560
- /*unique*/
561
- a[8]
562
- ), u, o, r, f, b, C, _, d, h, L, D, v, O, ee, te, $, F, M, ie, P, R = At(a), E = (
563
- /*showConfigButton*/
564
- a[1] && /*$ready*/
565
- a[21] && St()
566
- ), I = (
567
- /*showCameraButton*/
568
- a[2] && /*$ready*/
569
- a[21] && Lt()
570
- ), H = !/*$captured*/
571
- a[13] && /*$ready*/
572
- a[21] && Ft(a), q = (
573
- /*isCountingDown*/
574
- a[7] && It(a)
575
- ), X = (
576
- /*$enableFaceApi*/
577
- a[20] && !/*isCountingDown*/
578
- a[7] && /*$faceValidationAlert*/
579
- a[14] && Wt(a)
580
- ), Y = !/*$ready*/
581
- a[21] && /*$cameraStatusStore*/
582
- a[12] === K.OK && Mt(a), p = (
583
- /*$captured*/
584
- a[13] && Nt(a)
585
- );
586
- const Z = [xi, 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 ~(F = le(a)) && (M = j[F] = Z[F](a)), {
599
- c() {
600
- t = w("div"), i = w("div"), s = w("div"), R.c(), u = B(), E && E.c(), o = B(), I && I.c(), r = B(), H && H.c(), f = B(), b = w("canvas"), C = B(), _ = w("canvas"), d = B(), h = w("canvas"), L = B(), q && q.c(), D = B(), X && X.c(), ee = B(), Y && Y.c(), te = B(), p && p.c(), $ = B(), M && M.c(), ie = Ci(), 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), I && I.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, L), q && q.m(s, null), l(s, D), X && X.m(s, null), l(i, ee), Y && Y.m(i, null), l(i, te), p && p.m(i, null), a[44](t), Q(m, $, N), ~F && j[F].m(m, N), Q(m, ie, N), P = !0;
606
- },
607
- p(m, N) {
608
- N[0] & /*unique*/
609
- 256 && Ut(n, n = /*unique*/
610
- m[8]) ? (R.d(1), R = At(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 = St(), 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] ? I ? N[0] & /*showCameraButton, $ready*/
618
- 2097156 && V(I, 1) : (I = Lt(), I.c(), V(I, 1), I.m(s, r)) : I && (ve(), z(I, 1, 1, () => {
619
- I = 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 = Ft(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 = It(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] ? X ? X.p(m, N) : (X = Wt(m), X.c(), X.m(s, null)) : X && (X.d(1), X = 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 ? Y ? Y.p(m, N) : (Y = Mt(m), Y.c(), Y.m(i, te)) : Y && (Y.d(1), Y = null), /*$captured*/
636
- m[13] ? p ? p.p(m, N) : (p = Nt(m), p.c(), p.m(i, null)) : p && (p.d(1), p = null);
637
- let ce = F;
638
- F = le(m), F === ce ? ~F && j[F].p(m, N) : (M && (ve(), z(j[ce], 1, 1, () => {
639
- j[ce] = null;
640
- }), Ce()), ~F ? (M = j[F], M ? M.p(m, N) : (M = j[F] = Z[F](m), M.c()), V(M, 1), M.m(ie.parentNode, ie)) : M = null);
641
- },
642
- i(m) {
643
- P || (V(E), V(I), V(H), V(M), P = !0);
644
- },
645
- o(m) {
646
- z(E), z(I), z(H), z(M), P = !1;
647
- },
648
- d(m) {
649
- m && G(t), R.d(m), E && E.d(), I && I.d(), H && H.d(), a[39](null), a[40](null), a[41](null), q && q.d(), X && X.d(), Y && Y.d(), p && p.d(), a[44](null), m && G($), ~F && j[F].d(m), m && G(ie);
650
- }
651
- };
652
- }
653
- let os = !1, ns = 5;
654
- function Ht(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 ls(a, t, i) {
660
- let s, n, u, o, r, f, b, C, _, d, h, L, D, v, O, ee, te, $, F, M, ie, P, R, E, I, H, q, X, Y;
661
- T(a, $e, (e) => i(63, s = e)), T(a, Pe, (e) => i(65, u = e)), T(a, se, (e) => i(12, o = e)), T(a, ki, (e) => i(66, r = e)), T(a, Ae, (e) => i(67, f = e)), T(a, yi, (e) => i(68, b = e)), T(a, ge, (e) => i(69, C = e)), T(a, _e, (e) => i(70, _ = e)), T(a, Se, (e) => i(13, d = e)), T(a, et, (e) => i(71, h = e)), T(a, vt, (e) => i(72, L = e)), T(a, Ct, (e) => i(73, D = e)), T(a, Le, (e) => i(14, v = e)), T(a, Fe, (e) => i(15, O = e)), T(a, kt, (e) => i(16, ee = e)), T(a, yt, (e) => i(17, te = e)), T(a, tt, (e) => i(18, $ = e)), T(a, it, (e) => i(74, F = e)), T(a, Dt, (e) => i(75, ie = e)), T(a, Di, (e) => i(20, P = e)), T(a, Ie, (e) => i(21, R = e)), T(a, st, (e) => i(76, E = e)), T(a, We, (e) => i(77, I = e)), T(a, Ei, (e) => i(22, H = e)), T(a, Ti, (e) => i(23, q = e)), T(a, Oi, (e) => i(24, X = e)), T(a, Ri, (e) => i(25, Y = e));
662
- let p, Z, j, le = !1, m = {}, N = !1, { enableMinutiae: ce } = t, { videoDimensions: He } = t, { noTabs: Ue } = t, { weightsPath: Ke } = t, { showUnconformities: ut } = t, { videoOverlay: Ee } = t, { videoOverlayTransparency: he } = t, { showConfigButton: ft } = t, { showCameraButton: dt } = t;
663
- const Te = Ot(!1);
664
- T(a, Te, (e) => i(64, n = e));
665
- const Ve = Ot("data:image/png;base64");
666
- T(a, Ve, (e) => i(19, M = e));
667
- let ue, U, ht = !1, me = !0, mt = 0, qe = 0, Xe = !0, Ye = 0, je = !1, Je = (/* @__PURE__ */ new Date()).getTime(), Qe = !1, k = {
668
- topLeftX: 130,
669
- topLeftY: 70,
670
- width: 540,
671
- height: 400
672
- };
673
- Pi.mixin({
674
- toast: !0,
675
- position: "bottom-left",
676
- timer: 13e3,
677
- timerProgressBar: !0
678
- }), Ai(async () => {
679
- g(Ie, R = !1, R), bt(), await ze(), P && (await Si(Ke), N = !0), Xt();
680
- });
681
- function bt() {
682
- g(Se, d = !1, d), g(Ct, D = !0, D), g(Le, v = "", v), g(Ae, f = at.REAR_CAMERA, f), g(se, o = K.OK, o), g(Pe, u = !1, u), g(Fe, O = !1, O), g(tt, $ = lt.OK, $), g(it, F = "", F);
683
- const e = Kt(ot);
684
- e.closedMouth = !1, e.isPersonCloseEnough = !1, e.isPersonTooclose = !0, e.isPersonInFrame = !1, ot.set(e);
685
- }
686
- function Vt() {
687
- const e = _.videoWidth, A = _.videoHeight;
688
- let S = A * 0.75, y = S * 1.36;
689
- k.topLeftX = (e - y) / 2, k.topLeftY = (A - S) / 3, Me() && (S = A * 0.85, y = S * 1.5, k.topLeftX = (e - y) / 2, k.topLeftY = (A - S) / 2), k.width = y, k.height = S, g(We, I.y = k.topLeftY, I), g(We, I.height = k.height, I), g(We, I.width = k.width, I);
690
- }
691
- function gt(e, A) {
692
- e.clearRect(0, 0, U.width, U.height), e.save(), Vt(), 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(), Ht(e, A, U), e.restore(), e.save(), e.beginPath();
693
- const S = window.getComputedStyle(U).getPropertyValue("--p"), y = window.getComputedStyle(U).getPropertyValue("--su");
694
- if (e.strokeStyle = `hsl(${S})`, e.lineWidth = 12, e.lineJoin = "round", e.setLineDash([28, 8]), e.rect(k.topLeftX, k.topLeftY, k.width, k.height), e.stroke(), le && !je) {
695
- const ae = 1 - (Ye - (/* @__PURE__ */ new Date()).getTime()) / 4500;
696
- e.save(), e.beginPath(), e.setLineDash([]), e.lineWidth = 14, e.strokeStyle = `hsl(${y})`;
697
- const Ge = k.width * 3 * ae, Re = k.height * 2 * ae, Ze = Ge < k.width ? Ge : k.width, xe = Re < k.height ? Re : k.height;
698
- e.rect(k.topLeftX, k.topLeftY, Ze, xe), e.stroke();
699
- }
700
- e.beginPath();
701
- const W = new Path2D();
702
- W.rect(k.topLeftX, k.topLeftY, k.width, k.height), e.clip(W), Ht(e, A, U), e.restore();
703
- }
704
- function _t() {
705
- g(se, o = K.OK, o), ht = !0, i(11, me = !1);
706
- }
707
- async function be() {
708
- if (P && !N)
709
- return pe(p, be);
710
- if (p) {
711
- if (E !== nt.Document && !Ue)
712
- return pe(p, be);
713
- g(Ie, 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));
714
- }
715
- }
716
- async function qt() {
717
- ie && (Tt(), g(Dt, ie = !1, ie)), g(tt, $ = lt.OK, $), g(Se, d = !0, d), g(Fe, O = !0, O);
718
- const e = document.createElement("canvas"), A = e.getContext("2d"), S = 0.2 * k.width, y = 0.2 * k.height;
719
- e.width = k.width + S, e.height = k.height + y, A?.drawImage(p, k.topLeftX - S / 2, k.topLeftY - y / 2, k.width + S, k.height + y, 0, 0, e.width, e.height);
720
- const W = e.toDataURL("image/jpeg").split(",");
721
- g(Ve, M = W[0], M), g(yt, te = W[1], te), g(it, F = W[1], F);
722
- const ae = [{ data: F }];
723
- window.dispatchEvent(new CustomEvent(
724
- "document-unconformities-validated",
725
- {
726
- detail: { bodyParts: ae, status: $ }
727
- }
728
- ));
729
- }
730
- function Oe() {
731
- const e = {
732
- bodyPart: "DOCUMENT",
733
- data: te,
734
- justification: ee
735
- };
736
- g(Fe, O = !0, O), window.dispatchEvent(new CustomEvent("export-document", { detail: e }));
737
- }
738
- function fe() {
739
- window.dispatchEvent(new CustomEvent("document-scrapped")), bt(), me && _t();
740
- }
741
- async function ze(e) {
742
- const [A, S] = (He ?? "")?.replaceAll(" ", "")?.split("x")?.map((y) => y ? parseInt(y) : void 0);
743
- if (!(!A || !S)) {
744
- g(_e, _ = { videoWidth: A, videoHeight: S }, _);
745
- try {
746
- const { deviceId: y, width: W, height: ae, aspectRatio: Ge, facingMode: Re, touchPoints: Ze } = await Li(A, S, f, e);
747
- if (Me() && !(!Re || Ze <= 1)) {
748
- const xe = window.innerWidth, gi = window.innerHeight, wt = 2560, _i = gi / xe * wt;
749
- g(
750
- _e,
751
- _ = {
752
- videoWidth: wt,
753
- videoHeight: _i
754
- },
755
- _
756
- );
757
- } else
758
- g(_e, _ = { videoWidth: A, videoHeight: S }, _);
759
- g(ge, C = y || b[0].deviceId, C), g(se, o = K.OK, o);
760
- } catch (y) {
761
- const W = y;
762
- i(11, me = !0);
763
- const ae = Ne(y) && y.constraint ? y.constraint : "";
764
- console.error(W, ae), Ne(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)), Ne(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));
765
- }
766
- }
767
- }
768
- async function de() {
769
- g(ge, C = "", C), await ze();
770
- }
771
- function Xt() {
772
- navigator.mediaDevices.ondevicechange = async (e) => {
773
- await Et(), o !== K.OK ? await de() : L.active || (Be(), g(se, o = K.DEVICE_NOT_FOUND_ERROR, o));
774
- };
775
- }
776
- function Yt() {
777
- g(Pe, u = !1, u);
778
- const e = (/* @__PURE__ */ new Date()).getTime();
779
- e - Je > 1e4 ? (Je = e, g(Le, v = "docCollector.docWasNotFound", v)) : Qe || (Qe = !0, setTimeout(
780
- () => {
781
- Qe = !1, v != "docCollector.docWasNotFound" && g(Le, v = "", v);
782
- },
783
- 1500
784
- ));
785
- }
786
- const jt = _e.subscribe((e) => {
787
- 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));
788
- }), Jt = ot.subscribe((e) => {
789
- if (r != "DOCUMENT")
790
- return;
791
- let A = "";
792
- if (e.isPersonCloseEnough ? e.isPersonTooclose ? A = "docCollector.moveAwayCamera" : e.isPersonInFrame || (A = "docCollector.stayInFrame") : A = "docCollector.comeCloserCamera", u && Fi(A), !d && D && u && !le && e.isPersonInFrame && !(!e.isPersonCloseEnough || e.isPersonTooclose)) {
793
- i(7, le = !0), Ye = (/* @__PURE__ */ new Date()).getTime() + 4500;
794
- const S = setInterval(
795
- () => {
796
- if (!D || d || !e.isPersonCloseEnough || e.isPersonTooclose || !e.isPersonInFrame) {
797
- i(7, le = !1), je = !0, setTimeout(
798
- () => {
799
- je = !1;
800
- },
801
- 1500
802
- ), clearInterval(S);
803
- return;
804
- }
805
- const y = (/* @__PURE__ */ new Date()).getTime();
806
- Math.floor((Ye - y) % (1e3 * 60) / 1e3) <= 0 && (clearInterval(S), i(7, le = !1), document.getElementsByTagName("biometric-collector")?.[0]?.shadowRoot?.getElementById("bry-cc-capture-btn")?.click());
807
- },
808
- 250
809
- );
810
- }
811
- }), Qt = Se.subscribe((e) => {
812
- j && (e ? (j.classList.remove("flex"), j.classList.add("hidden")) : (j.classList.add("flex"), j.classList.remove("hidden")));
813
- }), zt = et.subscribe((e) => {
814
- 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));
815
- });
816
- st.subscribe(async (e) => {
817
- e === nt.Document && await Et();
818
- });
819
- const Gt = ge.subscribe(async (e) => {
820
- if (!e || r != "DOCUMENT")
821
- return;
822
- p || i(8, m = {});
823
- const { videoHeight: A, videoWidth: S } = _;
824
- try {
825
- const y = await Ii(S, A, e);
826
- i(4, p.srcObject = y, p), g(vt, L = y, L), g(et, h = !1, h), y.getTracks().forEach((W) => {
827
- W.readyState === "live" && console.log(`Camera ${W.label} opened successfully!`);
828
- }), Wi(p), Xe || g(se, o = K.CAMERA_ORIENTATION_LANDSCAPE, o);
829
- } catch (y) {
830
- const W = y;
831
- i(11, me = !0), Ne(W) && "message" in W && W.message.includes("Requested device not found") && g(se, o = K.DEVICE_NOT_FOUND_ERROR, o);
832
- }
833
- }), Zt = st.subscribe(async (e) => {
834
- e === nt.Document && !ht && !d && os && await _t();
835
- }), xt = Te.subscribe(async (e) => {
836
- e && pt();
837
- }), $t = Ie.subscribe((e) => {
838
- e && window.dispatchEvent(new CustomEvent("brycc-camera-ready"));
839
- }), ei = Mi.subscribe(async (e) => {
840
- if (_) {
841
- if (Be(), !Me()) {
842
- const S = (b.findIndex((W) => W.deviceId === C) + 1) % b.length, y = b[S].deviceId;
843
- await ze(y);
844
- return;
845
- }
846
- e ? (g(Ae, f = at.FRONT_CAMERA, f), await de()) : (g(Ae, f = at.REAR_CAMERA, f), await de());
847
- }
848
- }), ti = Ni.subscribe(async (e) => {
849
- !e.isSupported || !Me() || r != "DOCUMENT" || (Be(), Xe = e.orientation.includes("landscape"), Xe ? g(se, o = K.OK, o) : g(se, o = K.CAMERA_ORIENTATION_LANDSCAPE, o), await de());
850
- });
851
- async function pt() {
852
- let e;
853
- try {
854
- if (qe >= ns) {
855
- qe = 0;
856
- const A = await Bi(), S = await import("./face_api_0e3ce8c8_2.3.1-RC05.js");
857
- let y;
858
- y = S.detectSingleFace(U, A), e = await y.withFaceLandmarks(), Z.getContext("2d")?.clearRect(0, 0, Z.width, Z.height), e != null ? (Hi(e, Z, ce, !0), g(Pe, u = !0, u), Je = (/* @__PURE__ */ new Date()).getTime()) : Yt();
859
- } else
860
- qe++;
861
- n && pe(p, pt);
862
- } catch (A) {
863
- console.warn(`FaceapiLoop: ${A}`);
864
- }
865
- }
866
- $e.subscribe(async (e) => {
867
- e && (fe(), g($e, s = !1, s));
868
- }), Ui(() => {
869
- Be(), Qt(), Jt(), jt(), zt(), Gt(), Zt(), clearInterval(mt), xt(), ei(), $t(), ti(), Tt(), mt = 0;
870
- });
871
- function ii(e) {
872
- we[e ? "unshift" : "push"](() => {
873
- p = e, i(4, p);
874
- });
875
- }
876
- function si(e) {
877
- we[e ? "unshift" : "push"](() => {
878
- U = e, i(10, U);
879
- });
880
- }
881
- function ai(e) {
882
- we[e ? "unshift" : "push"](() => {
883
- Z = e, i(5, Z);
884
- });
885
- }
886
- function oi(e) {
887
- we[e ? "unshift" : "push"](() => {
888
- ue = e, i(9, ue);
889
- });
890
- }
891
- const ni = () => Oe(), li = () => fe();
892
- function ri(e) {
893
- we[e ? "unshift" : "push"](() => {
894
- j = e, i(6, j);
895
- });
896
- }
897
- const ci = () => Oe(), ui = () => fe();
898
- function fi() {
899
- ee = this.value, kt.set(ee);
900
- }
901
- const di = () => Oe(), hi = () => fe(), mi = () => fe(), bi = async () => {
902
- await de();
903
- };
904
- return a.$$set = (e) => {
905
- "enableMinutiae" in e && i(32, ce = e.enableMinutiae), "videoDimensions" in e && i(33, He = e.videoDimensions), "noTabs" in e && i(34, Ue = e.noTabs), "weightsPath" in e && i(35, Ke = 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);
906
- }, [
907
- ut,
908
- ft,
909
- dt,
910
- be,
911
- p,
912
- Z,
913
- j,
914
- le,
915
- m,
916
- ue,
917
- U,
918
- me,
919
- o,
920
- d,
921
- v,
922
- O,
923
- ee,
924
- te,
925
- $,
926
- M,
927
- P,
928
- R,
929
- H,
930
- q,
931
- X,
932
- Y,
933
- Te,
934
- Ve,
935
- qt,
936
- Oe,
937
- fe,
938
- de,
939
- ce,
940
- He,
941
- Ue,
942
- Ke,
943
- Ee,
944
- he,
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
- bi
959
- ];
960
- }
961
- class rs extends pi {
962
- constructor(t) {
963
- super(), wi(
964
- this,
965
- {
966
- target: this.shadowRoot,
967
- props: vi(this.attributes),
968
- customElement: !0
969
- },
970
- ls,
971
- as,
972
- Ut,
973
- {
974
- enableMinutiae: 32,
975
- videoDimensions: 33,
976
- noTabs: 34,
977
- weightsPath: 35,
978
- showUnconformities: 0,
979
- videoOverlay: 36,
980
- videoOverlayTransparency: 37,
981
- showConfigButton: 1,
982
- showCameraButton: 2,
983
- play: 3
984
- },
985
- null,
986
- [-1, -1, -1, -1]
987
- ), t && (t.target && Q(t.target, this, t.anchor), t.props && (this.$set(t.props), ne()));
988
- }
989
- static get observedAttributes() {
990
- return [
991
- "enableMinutiae",
992
- "videoDimensions",
993
- "noTabs",
994
- "weightsPath",
995
- "showUnconformities",
996
- "videoOverlay",
997
- "videoOverlayTransparency",
998
- "showConfigButton",
999
- "showCameraButton",
1000
- "play"
1001
- ];
1002
- }
1003
- get enableMinutiae() {
1004
- return this.$$.ctx[32];
1005
- }
1006
- set enableMinutiae(t) {
1007
- this.$$set({ enableMinutiae: t }), ne();
1008
- }
1009
- get videoDimensions() {
1010
- return this.$$.ctx[33];
1011
- }
1012
- set videoDimensions(t) {
1013
- this.$$set({ videoDimensions: t }), ne();
1014
- }
1015
- get noTabs() {
1016
- return this.$$.ctx[34];
1017
- }
1018
- set noTabs(t) {
1019
- this.$$set({ noTabs: t }), ne();
1020
- }
1021
- get weightsPath() {
1022
- return this.$$.ctx[35];
1023
- }
1024
- set weightsPath(t) {
1025
- this.$$set({ weightsPath: t }), ne();
1026
- }
1027
- get showUnconformities() {
1028
- return this.$$.ctx[0];
1029
- }
1030
- set showUnconformities(t) {
1031
- this.$$set({ showUnconformities: t }), ne();
1032
- }
1033
- get videoOverlay() {
1034
- return this.$$.ctx[36];
1035
- }
1036
- set videoOverlay(t) {
1037
- this.$$set({ videoOverlay: t }), ne();
1038
- }
1039
- get videoOverlayTransparency() {
1040
- return this.$$.ctx[37];
1041
- }
1042
- set videoOverlayTransparency(t) {
1043
- this.$$set({ videoOverlayTransparency: t }), ne();
1044
- }
1045
- get showConfigButton() {
1046
- return this.$$.ctx[1];
1047
- }
1048
- set showConfigButton(t) {
1049
- this.$$set({ showConfigButton: t }), ne();
1050
- }
1051
- get showCameraButton() {
1052
- return this.$$.ctx[2];
1053
- }
1054
- set showCameraButton(t) {
1055
- this.$$set({ showCameraButton: t }), ne();
1056
- }
1057
- get play() {
1058
- return this.$$.ctx[3];
1059
- }
1060
- }
1061
- customElements.define("document-collector", rs);
1062
- export {
1063
- rs as default
1064
- };