bry-biometric-collector 2.0.5 → 2.0.6

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