bry-biometric-collector 2.3.0-RC05 → 2.3.0

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,864 @@
1
+ import { S as U, q as P, r as j, t as F, w as b, L as O, x as g, z, B as _, H as v, I as V, W, $ as G, ba as N, bb as Z, N as H, bc as B, O as E, y as A, bd as L, D as k, be as D, G as R, E as T, bf as X, aR as J, C as I, aS as Q, P as Y, R as y, aT as $, aI as q, X as K, _ as ee, K as te, b8 as le } from "./main_ead8a4d0_2.3.0.js";
2
+ function ae(i) {
3
+ let e, a, n, s, l = (
4
+ /*$_*/
5
+ i[2]("cameraStatus.deviceMustBeInLandscape") + ""
6
+ ), c, u, r, h = (
7
+ /*$_*/
8
+ i[2]("cameraStatus.rotateDevice") + ""
9
+ ), w, S = [
10
+ { class: "text-[8em] mx-auto" },
11
+ { xmlns: "http://www.w3.org/2000/svg" },
12
+ { width: "1em" },
13
+ { height: "1em" },
14
+ { viewBox: "0 0 24 24" },
15
+ /*$$props*/
16
+ i[3]
17
+ ], m = {};
18
+ for (let o = 0; o < S.length; o += 1)
19
+ m = N(m, S[o]);
20
+ return {
21
+ c() {
22
+ e = B("svg"), a = B("path"), n = E(), s = g("span"), c = A(l), u = E(), r = g("span"), w = A(h), _(a, "fill", "currentColor"), _(a, "d", "M9 1H3a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h6a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2m0 14H3V3h6zm12-2h-8v2h8v6H9v-1H6v1a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2m2-3l-4-2l1.91-.91A7.52 7.52 0 0 0 14 2.5V1a9 9 0 0 1 9 9"), L(e, m), _(s, "class", "text-xl font-bold text-center"), _(r, "class", "m-auto text-base block text-center");
23
+ },
24
+ m(o, f) {
25
+ b(o, e, f), k(e, a), b(o, n, f), b(o, s, f), k(s, c), b(o, u, f), b(o, r, f), k(r, w);
26
+ },
27
+ p(o, f) {
28
+ L(e, m = D(S, [
29
+ { class: "text-[8em] mx-auto" },
30
+ { xmlns: "http://www.w3.org/2000/svg" },
31
+ { width: "1em" },
32
+ { height: "1em" },
33
+ { viewBox: "0 0 24 24" },
34
+ f & /*$$props*/
35
+ 8 && /*$$props*/
36
+ o[3]
37
+ ])), f & /*$_*/
38
+ 4 && l !== (l = /*$_*/
39
+ o[2]("cameraStatus.deviceMustBeInLandscape") + "") && R(c, l), f & /*$_*/
40
+ 4 && h !== (h = /*$_*/
41
+ o[2]("cameraStatus.rotateDevice") + "") && R(w, h);
42
+ },
43
+ d(o) {
44
+ o && v(e), o && v(n), o && v(s), o && v(u), o && v(r);
45
+ }
46
+ };
47
+ }
48
+ function se(i) {
49
+ let e, a, n, s, l = (
50
+ /*$_*/
51
+ i[2]("cameraStatus.deviceMustBeInPortrait") + ""
52
+ ), c, u, r, h = (
53
+ /*$_*/
54
+ i[2]("cameraStatus.rotateDevice") + ""
55
+ ), w, S = [
56
+ { class: "text-[8em] mx-auto" },
57
+ { xmlns: "http://www.w3.org/2000/svg" },
58
+ { width: "1em" },
59
+ { height: "1em" },
60
+ { viewBox: "0 0 24 24" },
61
+ /*$$props*/
62
+ i[3]
63
+ ], m = {};
64
+ for (let o = 0; o < S.length; o += 1)
65
+ m = N(m, S[o]);
66
+ return {
67
+ c() {
68
+ e = B("svg"), a = B("path"), n = E(), s = g("span"), c = A(l), u = E(), r = g("span"), w = A(h), _(a, "fill", "currentColor"), _(a, "d", "M9 1H3a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2h1v-3H3V3h6v8h2V3a2 2 0 0 0-2-2m14 20v-6a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h13a2 2 0 0 0 2-2M9 21v-6h12v6zm14-11h-1.5c0-3-1.81-5.73-4.58-6.91L16 5l-2-4a9 9 0 0 1 9 9"), L(e, m), _(s, "class", "text-xl font-bold text-center"), _(r, "class", "m-auto text-base block text-center");
69
+ },
70
+ m(o, f) {
71
+ b(o, e, f), k(e, a), b(o, n, f), b(o, s, f), k(s, c), b(o, u, f), b(o, r, f), k(r, w);
72
+ },
73
+ p(o, f) {
74
+ L(e, m = D(S, [
75
+ { class: "text-[8em] mx-auto" },
76
+ { xmlns: "http://www.w3.org/2000/svg" },
77
+ { width: "1em" },
78
+ { height: "1em" },
79
+ { viewBox: "0 0 24 24" },
80
+ f & /*$$props*/
81
+ 8 && /*$$props*/
82
+ o[3]
83
+ ])), f & /*$_*/
84
+ 4 && l !== (l = /*$_*/
85
+ o[2]("cameraStatus.deviceMustBeInPortrait") + "") && R(c, l), f & /*$_*/
86
+ 4 && h !== (h = /*$_*/
87
+ o[2]("cameraStatus.rotateDevice") + "") && R(w, h);
88
+ },
89
+ d(o) {
90
+ o && v(e), o && v(n), o && v(s), o && v(u), o && v(r);
91
+ }
92
+ };
93
+ }
94
+ function ie(i) {
95
+ let e, a, n, s, l = (
96
+ /*$_*/
97
+ i[2]("cameraStatus.biometricCapture") + ""
98
+ ), c, u, r, h = (
99
+ /*$_*/
100
+ i[2]("cameraStatus.startCapture") + ""
101
+ ), w, S, m, o = [
102
+ { class: "text-[8em] mx-auto" },
103
+ { xmlns: "http://www.w3.org/2000/svg" },
104
+ { width: "1em" },
105
+ { height: "1em" },
106
+ { viewBox: "0 0 24 24" },
107
+ /*$$props*/
108
+ i[3]
109
+ ], f = {};
110
+ for (let p = 0; p < o.length; p += 1)
111
+ f = N(f, o[p]);
112
+ return {
113
+ c() {
114
+ e = B("svg"), a = B("path"), n = E(), s = g("span"), c = A(l), u = E(), r = g("button"), w = A(h), _(a, "fill", "currentColor"), _(a, "d", "M16 2H8a3 3 0 0 0-3 3v14a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3m1 17a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-1h10Zm-5-5a3 3 0 0 1 2.82 2H9.18A3 3 0 0 1 12 14m-1-3a1 1 0 1 1 1 1a1 1 0 0 1-1-1m6 5h-.1a5 5 0 0 0-2.42-3.32A3 3 0 0 0 15 11a3 3 0 0 0-6 0a3 3 0 0 0 .52 1.68A5 5 0 0 0 7.1 16H7V5a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1ZM12 5a1 1 0 1 0 1 1a1 1 0 0 0-1-1"), L(e, f), _(s, "class", "text-xl font-bold text-center"), _(r, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
115
+ },
116
+ m(p, C) {
117
+ b(p, e, C), k(e, a), b(p, n, C), b(p, s, C), k(s, c), b(p, u, C), b(p, r, C), k(r, w), S || (m = T(
118
+ r,
119
+ "click",
120
+ /*click_handler_5*/
121
+ i[9]
122
+ ), S = !0);
123
+ },
124
+ p(p, C) {
125
+ L(e, f = D(o, [
126
+ { class: "text-[8em] mx-auto" },
127
+ { xmlns: "http://www.w3.org/2000/svg" },
128
+ { width: "1em" },
129
+ { height: "1em" },
130
+ { viewBox: "0 0 24 24" },
131
+ C & /*$$props*/
132
+ 8 && /*$$props*/
133
+ p[3]
134
+ ])), C & /*$_*/
135
+ 4 && l !== (l = /*$_*/
136
+ p[2]("cameraStatus.biometricCapture") + "") && R(c, l), C & /*$_*/
137
+ 4 && h !== (h = /*$_*/
138
+ p[2]("cameraStatus.startCapture") + "") && R(w, h);
139
+ },
140
+ d(p) {
141
+ p && v(e), p && v(n), p && v(s), p && v(u), p && v(r), S = !1, m();
142
+ }
143
+ };
144
+ }
145
+ function ue(i) {
146
+ let e, a, n, s, l = (
147
+ /*$_*/
148
+ i[2]("cameraStatus.cameraNotSupported") + ""
149
+ ), c, u, r, h = (
150
+ /*$_*/
151
+ i[2]("cameraStatus.connectAnotherCamera") + ""
152
+ ), w, S, m, o = (
153
+ /*$_*/
154
+ i[2]("cameraStatus.restart") + ""
155
+ ), f, p, C, M = [
156
+ { class: "text-[8em] mx-auto" },
157
+ { xmlns: "http://www.w3.org/2000/svg" },
158
+ { width: "1em" },
159
+ { height: "1em" },
160
+ { viewBox: "0 0 256 256" },
161
+ /*$$props*/
162
+ i[3]
163
+ ], x = {};
164
+ for (let t = 0; t < M.length; t += 1)
165
+ x = N(x, M[t]);
166
+ return {
167
+ c() {
168
+ e = B("svg"), a = B("path"), n = E(), s = g("span"), c = A(l), u = E(), r = g("span"), w = A(h), S = E(), m = g("button"), f = A(o), _(a, "fill", "currentColor"), _(a, "d", "M249.45 69.31a12 12 0 0 0-12.51 1L212 88.43V72a20 20 0 0 0-20-20h-68.12a12 12 0 0 0 0 24H188v68a12 12 0 0 0 4.46 9.33c.15.13.31.25.48.38l44 32A12 12 0 0 0 256 176V80a12 12 0 0 0-6.55-10.69M232 152.43l-20-14.54v-19.78l20-14.54ZM56.88 31.93a12 12 0 1 0-17.76 16.14L42.69 52H32a20 20 0 0 0-20 20v112a20 20 0 0 0 20 20h148.87l18.25 20.07a12 12 0 0 0 17.76-16.14ZM36 180V76h28.51l94.55 104Z"), L(e, x), _(s, "class", "text-xl font-bold text-center"), _(r, "class", "m-auto text-base block text-center"), _(m, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
169
+ },
170
+ m(t, d) {
171
+ b(t, e, d), k(e, a), b(t, n, d), b(t, s, d), k(s, c), b(t, u, d), b(t, r, d), k(r, w), b(t, S, d), b(t, m, d), k(m, f), p || (C = T(
172
+ m,
173
+ "click",
174
+ /*click_handler_4*/
175
+ i[8]
176
+ ), p = !0);
177
+ },
178
+ p(t, d) {
179
+ L(e, x = D(M, [
180
+ { class: "text-[8em] mx-auto" },
181
+ { xmlns: "http://www.w3.org/2000/svg" },
182
+ { width: "1em" },
183
+ { height: "1em" },
184
+ { viewBox: "0 0 256 256" },
185
+ d & /*$$props*/
186
+ 8 && /*$$props*/
187
+ t[3]
188
+ ])), d & /*$_*/
189
+ 4 && l !== (l = /*$_*/
190
+ t[2]("cameraStatus.cameraNotSupported") + "") && R(c, l), d & /*$_*/
191
+ 4 && h !== (h = /*$_*/
192
+ t[2]("cameraStatus.connectAnotherCamera") + "") && R(w, h), d & /*$_*/
193
+ 4 && o !== (o = /*$_*/
194
+ t[2]("cameraStatus.restart") + "") && R(f, o);
195
+ },
196
+ d(t) {
197
+ t && v(e), t && v(n), t && v(s), t && v(u), t && v(r), t && v(S), t && v(m), p = !1, C();
198
+ }
199
+ };
200
+ }
201
+ function re(i) {
202
+ let e, a, n, s, l = (
203
+ /*$_*/
204
+ i[2]("cameraStatus.stayOnSameTab") + ""
205
+ ), c, u, r, h = (
206
+ /*$_*/
207
+ i[2]("cameraStatus.clickRestartToRecapture") + ""
208
+ ), w, S, m, o = (
209
+ /*$_*/
210
+ i[2]("cameraStatus.restart") + ""
211
+ ), f, p, C, M = [
212
+ { class: "text-[8em] mx-auto" },
213
+ { xmlns: "http://www.w3.org/2000/svg" },
214
+ { width: "1em" },
215
+ { height: "1em" },
216
+ { viewBox: "0 0 256 256" },
217
+ /*$$props*/
218
+ i[3]
219
+ ], x = {};
220
+ for (let t = 0; t < M.length; t += 1)
221
+ x = N(x, M[t]);
222
+ return {
223
+ c() {
224
+ e = B("svg"), a = B("path"), n = E(), s = g("span"), c = A(l), u = E(), r = g("span"), w = A(h), S = E(), m = g("button"), f = A(o), _(a, "fill", "currentColor"), _(a, "d", "M236.8 188.09L149.35 36.22a24.76 24.76 0 0 0-42.7 0L19.2 188.09a23.51 23.51 0 0 0 0 23.72A24.35 24.35 0 0 0 40.55 224h174.9a24.35 24.35 0 0 0 21.33-12.19a23.51 23.51 0 0 0 .02-23.72m-13.87 15.71a8.5 8.5 0 0 1-7.48 4.2H40.55a8.5 8.5 0 0 1-7.48-4.2a7.59 7.59 0 0 1 0-7.72l87.45-151.87a8.75 8.75 0 0 1 15 0l87.45 151.87a7.59 7.59 0 0 1-.04 7.72M120 144v-40a8 8 0 0 1 16 0v40a8 8 0 0 1-16 0m20 36a12 12 0 1 1-12-12a12 12 0 0 1 12 12"), L(e, x), _(s, "class", "text-xl font-bold text-center"), _(r, "class", "m-auto text-base block text-center"), _(m, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
225
+ },
226
+ m(t, d) {
227
+ b(t, e, d), k(e, a), b(t, n, d), b(t, s, d), k(s, c), b(t, u, d), b(t, r, d), k(r, w), b(t, S, d), b(t, m, d), k(m, f), p || (C = T(
228
+ m,
229
+ "click",
230
+ /*click_handler_3*/
231
+ i[7]
232
+ ), p = !0);
233
+ },
234
+ p(t, d) {
235
+ L(e, x = D(M, [
236
+ { class: "text-[8em] mx-auto" },
237
+ { xmlns: "http://www.w3.org/2000/svg" },
238
+ { width: "1em" },
239
+ { height: "1em" },
240
+ { viewBox: "0 0 256 256" },
241
+ d & /*$$props*/
242
+ 8 && /*$$props*/
243
+ t[3]
244
+ ])), d & /*$_*/
245
+ 4 && l !== (l = /*$_*/
246
+ t[2]("cameraStatus.stayOnSameTab") + "") && R(c, l), d & /*$_*/
247
+ 4 && h !== (h = /*$_*/
248
+ t[2]("cameraStatus.clickRestartToRecapture") + "") && R(w, h), d & /*$_*/
249
+ 4 && o !== (o = /*$_*/
250
+ t[2]("cameraStatus.restart") + "") && R(f, o);
251
+ },
252
+ d(t) {
253
+ t && v(e), t && v(n), t && v(s), t && v(u), t && v(r), t && v(S), t && v(m), p = !1, C();
254
+ }
255
+ };
256
+ }
257
+ function ne(i) {
258
+ let e, a, n, s, l = (
259
+ /*$_*/
260
+ i[2]("cameraStatus.cameraInUse") + ""
261
+ ), c, u, r, h = (
262
+ /*$_*/
263
+ i[2]("cameraStatus.ensureCameraNotInUse") + ""
264
+ ), w, S, m, o = (
265
+ /*$_*/
266
+ i[2]("cameraStatus.restart") + ""
267
+ ), f, p, C, M = [
268
+ { class: "text-[8em] mx-auto" },
269
+ { xmlns: "http://www.w3.org/2000/svg" },
270
+ { width: "1em" },
271
+ { height: "1em" },
272
+ { viewBox: "0 0 256 256" },
273
+ /*$$props*/
274
+ i[3]
275
+ ], x = {};
276
+ for (let t = 0; t < M.length; t += 1)
277
+ x = N(x, M[t]);
278
+ return {
279
+ c() {
280
+ e = B("svg"), a = B("path"), n = E(), s = g("span"), c = A(l), u = E(), r = g("span"), w = A(h), S = E(), m = g("button"), f = A(o), _(a, "fill", "currentColor"), _(a, "d", "M56.88 31.93a12 12 0 1 0-17.76 16.14l4 4.37A28 28 0 0 0 20 80v112a28 28 0 0 0 28 28h147.42l3.7 4.07a12 12 0 0 0 17.76-16.14Zm49.35 90L136 154.64a24 24 0 0 1-29.77-32.75ZM48 196a4 4 0 0 1-4-4V80a4 4 0 0 1 4-4h16.51l24.92 27.41a48 48 0 0 0 63.34 69.67L173.6 196ZM236 80v94.14a12 12 0 0 1-24 0V80a4 4 0 0 0-4-4h-32a12 12 0 0 1-10-5.34L153.57 52h-51.51a12 12 0 0 1 0-24H160a12 12 0 0 1 10 5.34L182.42 52H208a28 28 0 0 1 28 28"), L(e, x), _(s, "class", "text-xl font-bold text-center"), _(r, "class", "m-auto text-base block text-center"), _(m, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
281
+ },
282
+ m(t, d) {
283
+ b(t, e, d), k(e, a), b(t, n, d), b(t, s, d), k(s, c), b(t, u, d), b(t, r, d), k(r, w), b(t, S, d), b(t, m, d), k(m, f), p || (C = T(
284
+ m,
285
+ "click",
286
+ /*click_handler_2*/
287
+ i[6]
288
+ ), p = !0);
289
+ },
290
+ p(t, d) {
291
+ L(e, x = D(M, [
292
+ { class: "text-[8em] mx-auto" },
293
+ { xmlns: "http://www.w3.org/2000/svg" },
294
+ { width: "1em" },
295
+ { height: "1em" },
296
+ { viewBox: "0 0 256 256" },
297
+ d & /*$$props*/
298
+ 8 && /*$$props*/
299
+ t[3]
300
+ ])), d & /*$_*/
301
+ 4 && l !== (l = /*$_*/
302
+ t[2]("cameraStatus.cameraInUse") + "") && R(c, l), d & /*$_*/
303
+ 4 && h !== (h = /*$_*/
304
+ t[2]("cameraStatus.ensureCameraNotInUse") + "") && R(w, h), d & /*$_*/
305
+ 4 && o !== (o = /*$_*/
306
+ t[2]("cameraStatus.restart") + "") && R(f, o);
307
+ },
308
+ d(t) {
309
+ t && v(e), t && v(n), t && v(s), t && v(u), t && v(r), t && v(S), t && v(m), p = !1, C();
310
+ }
311
+ };
312
+ }
313
+ function oe(i) {
314
+ let e, a, n, s, l = (
315
+ /*$_*/
316
+ i[2]("cameraStatus.cameraNotDetected") + ""
317
+ ), c, u, r, h = (
318
+ /*$_*/
319
+ i[2]("cameraStatus.connectCameraAndRestart") + ""
320
+ ), w, S, m, o = (
321
+ /*$_*/
322
+ i[2]("cameraStatus.restart") + ""
323
+ ), f, p, C, M = [
324
+ { class: "text-[8em] mx-auto" },
325
+ { xmlns: "http://www.w3.org/2000/svg" },
326
+ { width: "1em" },
327
+ { height: "1em" },
328
+ { viewBox: "0 0 256 256" },
329
+ /*$$props*/
330
+ i[3]
331
+ ], x = {};
332
+ for (let t = 0; t < M.length; t += 1)
333
+ x = N(x, M[t]);
334
+ return {
335
+ c() {
336
+ e = B("svg"), a = B("path"), n = E(), s = g("span"), c = A(l), u = E(), r = g("span"), w = A(h), S = E(), m = g("button"), f = A(o), _(a, "fill", "currentColor"), _(a, "d", "m137 168l11.52-11.51a12 12 0 0 0-17-17L120 151l-15-15l11.52-11.51a12 12 0 0 0-17-17L88 119l-15.51-15.49a12 12 0 0 0-17 17L59 124l-20.46 20.49a36 36 0 0 0 0 50.91l2.55 2.54l-25.58 25.57a12 12 0 0 0 17 17l25.57-25.58l2.54 2.55a36.06 36.06 0 0 0 50.91 0L132 197l3.51 3.52a12 12 0 0 0 17-17Zm-42.46 32.49a12 12 0 0 1-17 0l-22.03-22.06a12 12 0 0 1 0-17L76 141l39 39Zm146-185a12 12 0 0 0-17 0l-25.6 25.6l-2.54-2.55a36.05 36.05 0 0 0-50.91 0L124 59l-3.51-3.52a12 12 0 0 0-17 17l80 80a12 12 0 0 0 17-17L197 132l20.49-20.49a36 36 0 0 0 0-50.91l-2.55-2.54l25.58-25.57a12 12 0 0 0-.03-16.98Zm-40 79L180 115l-39-39l20.49-20.49a12 12 0 0 1 17 0l22.06 22.06a12 12 0 0 1 0 17Z"), L(e, x), _(s, "class", "text-xl font-bold text-center"), _(r, "class", "m-auto text-base block text-center"), _(m, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
337
+ },
338
+ m(t, d) {
339
+ b(t, e, d), k(e, a), b(t, n, d), b(t, s, d), k(s, c), b(t, u, d), b(t, r, d), k(r, w), b(t, S, d), b(t, m, d), k(m, f), p || (C = T(
340
+ m,
341
+ "click",
342
+ /*click_handler_1*/
343
+ i[5]
344
+ ), p = !0);
345
+ },
346
+ p(t, d) {
347
+ L(e, x = D(M, [
348
+ { class: "text-[8em] mx-auto" },
349
+ { xmlns: "http://www.w3.org/2000/svg" },
350
+ { width: "1em" },
351
+ { height: "1em" },
352
+ { viewBox: "0 0 256 256" },
353
+ d & /*$$props*/
354
+ 8 && /*$$props*/
355
+ t[3]
356
+ ])), d & /*$_*/
357
+ 4 && l !== (l = /*$_*/
358
+ t[2]("cameraStatus.cameraNotDetected") + "") && R(c, l), d & /*$_*/
359
+ 4 && h !== (h = /*$_*/
360
+ t[2]("cameraStatus.connectCameraAndRestart") + "") && R(w, h), d & /*$_*/
361
+ 4 && o !== (o = /*$_*/
362
+ t[2]("cameraStatus.restart") + "") && R(f, o);
363
+ },
364
+ d(t) {
365
+ t && v(e), t && v(n), t && v(s), t && v(u), t && v(r), t && v(S), t && v(m), p = !1, C();
366
+ }
367
+ };
368
+ }
369
+ function me(i) {
370
+ let e, a, n, s, l = (
371
+ /*$_*/
372
+ i[2]("cameraStatus.cameraPermission") + ""
373
+ ), c, u, r, h = (
374
+ /*$_*/
375
+ i[2]("cameraStatus.clickRestartButton") + ""
376
+ ), w, S, m, o = (
377
+ /*$_*/
378
+ i[2]("cameraStatus.restart") + ""
379
+ ), f, p, C, M = [
380
+ { class: "text-[8em] mx-auto" },
381
+ { xmlns: "http://www.w3.org/2000/svg" },
382
+ { width: "1em" },
383
+ { height: "1em" },
384
+ { viewBox: "0 0 256 256" },
385
+ /*$$props*/
386
+ i[3]
387
+ ], x = {};
388
+ for (let t = 0; t < M.length; t += 1)
389
+ x = N(x, M[t]);
390
+ return {
391
+ c() {
392
+ e = B("svg"), a = B("path"), n = E(), s = g("span"), c = A(l), u = E(), r = g("span"), w = A(h), S = E(), m = g("button"), f = A(o), _(a, "fill", "currentColor"), _(a, "d", "M249.45 69.31a12 12 0 0 0-12.51 1L212 88.43V72a20 20 0 0 0-20-20h-68.12a12 12 0 0 0 0 24H188v68a12 12 0 0 0 4.46 9.33c.15.13.31.25.48.38l44 32A12 12 0 0 0 256 176V80a12 12 0 0 0-6.55-10.69M232 152.43l-20-14.54v-19.78l20-14.54ZM56.88 31.93a12 12 0 1 0-17.76 16.14L42.69 52H32a20 20 0 0 0-20 20v112a20 20 0 0 0 20 20h148.87l18.25 20.07a12 12 0 0 0 17.76-16.14ZM36 180V76h28.51l94.55 104Z"), L(e, x), _(s, "class", "text-xl font-bold text-center"), _(r, "class", "m-auto text-base block text-center"), _(m, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
393
+ },
394
+ m(t, d) {
395
+ b(t, e, d), k(e, a), b(t, n, d), b(t, s, d), k(s, c), b(t, u, d), b(t, r, d), k(r, w), b(t, S, d), b(t, m, d), k(m, f), p || (C = T(
396
+ m,
397
+ "click",
398
+ /*click_handler*/
399
+ i[4]
400
+ ), p = !0);
401
+ },
402
+ p(t, d) {
403
+ L(e, x = D(M, [
404
+ { class: "text-[8em] mx-auto" },
405
+ { xmlns: "http://www.w3.org/2000/svg" },
406
+ { width: "1em" },
407
+ { height: "1em" },
408
+ { viewBox: "0 0 256 256" },
409
+ d & /*$$props*/
410
+ 8 && /*$$props*/
411
+ t[3]
412
+ ])), d & /*$_*/
413
+ 4 && l !== (l = /*$_*/
414
+ t[2]("cameraStatus.cameraPermission") + "") && R(c, l), d & /*$_*/
415
+ 4 && h !== (h = /*$_*/
416
+ t[2]("cameraStatus.clickRestartButton") + "") && R(w, h), d & /*$_*/
417
+ 4 && o !== (o = /*$_*/
418
+ t[2]("cameraStatus.restart") + "") && R(f, o);
419
+ },
420
+ d(t) {
421
+ t && v(e), t && v(n), t && v(s), t && v(u), t && v(r), t && v(S), t && v(m), p = !1, C();
422
+ }
423
+ };
424
+ }
425
+ function ce(i) {
426
+ let e;
427
+ function a(l, c) {
428
+ if (
429
+ /*$cameraStatusStore*/
430
+ l[1] === H.CAMERA_DENIED_ERROR
431
+ )
432
+ return me;
433
+ if (
434
+ /*$cameraStatusStore*/
435
+ l[1] === H.DEVICE_NOT_FOUND_ERROR
436
+ )
437
+ return oe;
438
+ if (
439
+ /*$cameraStatusStore*/
440
+ l[1] === H.CAMERA_IN_USE_ERROR
441
+ )
442
+ return ne;
443
+ if (
444
+ /*$cameraStatusStore*/
445
+ l[1] === H.CAMERA_CLOSED_ERROR
446
+ )
447
+ return re;
448
+ if (
449
+ /*$cameraStatusStore*/
450
+ l[1] === H.CAMERA_UNSUPPORTED
451
+ )
452
+ return ue;
453
+ if (
454
+ /*$cameraStatusStore*/
455
+ l[1] === H.CAMERA_NOT_STARTED
456
+ )
457
+ return ie;
458
+ if (
459
+ /*$cameraStatusStore*/
460
+ l[1] === H.CAMERA_ORIENTATION_PORTRAIT
461
+ )
462
+ return se;
463
+ if (
464
+ /*$cameraStatusStore*/
465
+ l[1] === H.CAMERA_ORIENTATION_LANDSCAPE
466
+ )
467
+ return ae;
468
+ }
469
+ let n = a(i), s = n && n(i);
470
+ return {
471
+ c() {
472
+ e = g("div"), s && s.c(), this.c = z, _(e, "class", "flex flex-col gap-4 justify-center items-center relative overflow-visible p-4");
473
+ },
474
+ m(l, c) {
475
+ b(l, e, c), s && s.m(e, null);
476
+ },
477
+ p(l, [c]) {
478
+ n === (n = a(l)) && s ? s.p(l, c) : (s && s.d(1), s = n && n(l), s && (s.c(), s.m(e, null)));
479
+ },
480
+ i: z,
481
+ o: z,
482
+ d(l) {
483
+ l && v(e), s && s.d();
484
+ }
485
+ };
486
+ }
487
+ function fe(i, e, a) {
488
+ let n, s;
489
+ V(i, W, (m) => a(1, n = m)), V(i, G, (m) => a(2, s = m));
490
+ let { handler: l = () => {
491
+ } } = e;
492
+ const c = () => {
493
+ l(), console.log("canicna", l);
494
+ }, u = () => {
495
+ l(), console.log("canicna", l);
496
+ }, r = () => {
497
+ l(), console.log("canicna", l);
498
+ }, h = () => {
499
+ l();
500
+ }, w = () => {
501
+ l();
502
+ }, S = () => {
503
+ l();
504
+ };
505
+ return i.$$set = (m) => {
506
+ a(3, e = N(N({}, e), Z(m))), "handler" in m && a(0, l = m.handler);
507
+ }, e = Z(e), [
508
+ l,
509
+ n,
510
+ s,
511
+ e,
512
+ c,
513
+ u,
514
+ r,
515
+ h,
516
+ w,
517
+ S
518
+ ];
519
+ }
520
+ class de extends U {
521
+ constructor(e) {
522
+ super(), P(
523
+ this,
524
+ {
525
+ target: this.shadowRoot,
526
+ props: F(this.attributes),
527
+ customElement: !0
528
+ },
529
+ fe,
530
+ ce,
531
+ j,
532
+ { handler: 0 },
533
+ null
534
+ ), e && (e.target && b(e.target, this, e.anchor), e.props && (this.$set(e.props), O()));
535
+ }
536
+ static get observedAttributes() {
537
+ return ["handler"];
538
+ }
539
+ get handler() {
540
+ return this.$$.ctx[0];
541
+ }
542
+ set handler(e) {
543
+ this.$$set({ handler: e }), O();
544
+ }
545
+ }
546
+ customElements.define("camera-status", de);
547
+ function be(i) {
548
+ let e, a, n, s, l, c, u, r, h, w, S;
549
+ e = new X({});
550
+ let m = [
551
+ { xmlns: "http://www.w3.org/2000/svg" },
552
+ { width: "2em" },
553
+ { height: "2em" },
554
+ { viewBox: "0 0 256 256" },
555
+ /*$$props*/
556
+ i[3]
557
+ ], o = {};
558
+ for (let f = 0; f < m.length; f += 1)
559
+ o = N(o, m[f]);
560
+ return {
561
+ c() {
562
+ J(e.$$.fragment), a = E(), n = g("div"), s = g("label"), l = B("svg"), c = B("path"), this.c = z, _(c, "fill", "hsl(var(--n))"), _(c, "d", "M208 56h-27.72l-13.63-20.44A8 8 0 0 0 160 32H96a8 8 0 0 0-6.65 3.56L75.71 56H48a24 24 0 0 0-24 24v112a24 24 0 0 0 24 24h160a24 24 0 0 0 24-24V80a24 24 0 0 0-24-24m-51.19 110.4A48.21 48.21 0 0 1 96 163.77V168a8 8 0 0 1-16 0v-24a8 8 0 0 1 8-8h24a8 8 0 0 1 0 16h-5.15a32.12 32.12 0 0 0 40.34 1.61a8 8 0 0 1 9.62 12.79M176 120a8 8 0 0 1-8 8h-24a8 8 0 0 1 0-16h5.15a32.12 32.12 0 0 0-40.34-1.61a8 8 0 0 1-9.62-12.79a48.21 48.21 0 0 1 60.81 2.63V96a8 8 0 0 1 16 0Z"), L(l, o), _(s, "tabindex", "0"), s.hidden = u = /*$cameraDevicesStore*/
563
+ i[2].length <= 1, _(s, "class", "ce-dui-btn ce-dui-btn-ghost"), _(n, "class", r = I() && /*$collectorSelect*/
564
+ i[1] == "DOCUMENT" || I() && /*$collectorSelect*/
565
+ i[1] == "FACE" ? "absolute z-20 right-2 sm:block bottom-32" : "absolute z-20 right-2 sm:block bottom-2");
566
+ },
567
+ m(f, p) {
568
+ Q(e, f, p), b(f, a, p), b(f, n, p), k(n, s), k(s, l), k(l, c), h = !0, w || (S = T(
569
+ n,
570
+ "click",
571
+ /*click_handler*/
572
+ i[4]
573
+ ), w = !0);
574
+ },
575
+ p(f, [p]) {
576
+ L(l, o = D(m, [
577
+ { xmlns: "http://www.w3.org/2000/svg" },
578
+ { width: "2em" },
579
+ { height: "2em" },
580
+ { viewBox: "0 0 256 256" },
581
+ p & /*$$props*/
582
+ 8 && /*$$props*/
583
+ f[3]
584
+ ])), (!h || p & /*$cameraDevicesStore*/
585
+ 4 && u !== (u = /*$cameraDevicesStore*/
586
+ f[2].length <= 1)) && (s.hidden = u), (!h || p & /*$collectorSelect*/
587
+ 2 && r !== (r = I() && /*$collectorSelect*/
588
+ f[1] == "DOCUMENT" || I() && /*$collectorSelect*/
589
+ f[1] == "FACE" ? "absolute z-20 right-2 sm:block bottom-32" : "absolute z-20 right-2 sm:block bottom-2")) && _(n, "class", r);
590
+ },
591
+ i(f) {
592
+ h || (Y(e.$$.fragment, f), h = !0);
593
+ },
594
+ o(f) {
595
+ y(e.$$.fragment, f), h = !1;
596
+ },
597
+ d(f) {
598
+ $(e, f), f && v(a), f && v(n), w = !1, S();
599
+ }
600
+ };
601
+ }
602
+ function ve(i, e, a) {
603
+ let n, s, l;
604
+ V(i, q, (u) => a(0, n = u)), V(i, K, (u) => a(1, s = u)), V(i, ee, (u) => a(2, l = u));
605
+ const c = () => {
606
+ te(q, n = !n, n);
607
+ };
608
+ return i.$$set = (u) => {
609
+ a(3, e = N(N({}, e), Z(u)));
610
+ }, e = Z(e), [n, s, l, e, c];
611
+ }
612
+ class _e extends U {
613
+ constructor(e) {
614
+ super(), P(
615
+ this,
616
+ {
617
+ target: this.shadowRoot,
618
+ props: F(this.attributes),
619
+ customElement: !0
620
+ },
621
+ ve,
622
+ be,
623
+ j,
624
+ {},
625
+ null
626
+ ), e && (e.target && b(e.target, this, e.anchor), e.props && (this.$set(e.props), O()));
627
+ }
628
+ }
629
+ customElements.define("camera-btn", _e);
630
+ function he(i) {
631
+ let e, a, n = (
632
+ /*$_*/
633
+ i[5]("faceCollector.capture") + ""
634
+ ), s, l, c;
635
+ return {
636
+ c() {
637
+ e = g("div"), a = g("button"), s = A(n), _(
638
+ a,
639
+ "id",
640
+ /*id*/
641
+ i[1]
642
+ ), a.disabled = /*disabled*/
643
+ i[2], a.hidden = /*hidden*/
644
+ i[3], _(a, "class", I() ? "ce-dui-btn ce-dui-btn-primary text-xl pb-[2px] absolute z-20 bottom-32" : "ce-dui-btn ce-dui-btn-primary text-xl pb-[2px] absolute z-20 bottom-2"), _(e, "class", "flex justify-center items-center");
645
+ },
646
+ m(u, r) {
647
+ b(u, e, r), k(e, a), k(a, s), l || (c = T(
648
+ a,
649
+ "click",
650
+ /*click_handler_2*/
651
+ i[8]
652
+ ), l = !0);
653
+ },
654
+ p(u, r) {
655
+ r & /*$_*/
656
+ 32 && n !== (n = /*$_*/
657
+ u[5]("faceCollector.capture") + "") && R(s, n), r & /*id*/
658
+ 2 && _(
659
+ a,
660
+ "id",
661
+ /*id*/
662
+ u[1]
663
+ ), r & /*disabled*/
664
+ 4 && (a.disabled = /*disabled*/
665
+ u[2]), r & /*hidden*/
666
+ 8 && (a.hidden = /*hidden*/
667
+ u[3]);
668
+ },
669
+ d(u) {
670
+ u && v(e), l = !1, c();
671
+ }
672
+ };
673
+ }
674
+ function pe(i) {
675
+ let e, a, n = (
676
+ /*$_*/
677
+ i[5]("docCollector.capture") + ""
678
+ ), s, l, c;
679
+ return {
680
+ c() {
681
+ e = g("div"), a = g("button"), s = A(n), _(
682
+ a,
683
+ "id",
684
+ /*id*/
685
+ i[1]
686
+ ), a.disabled = /*disabled*/
687
+ i[2], a.hidden = /*hidden*/
688
+ i[3], _(a, "class", "ce-dui-btn ce-dui-btn-primary text-xl pb-[2px] absolute z-10 bottom-2"), _(e, "class", "flex justify-center items-center");
689
+ },
690
+ m(u, r) {
691
+ b(u, e, r), k(e, a), k(a, s), l || (c = T(
692
+ a,
693
+ "click",
694
+ /*click_handler_1*/
695
+ i[7]
696
+ ), l = !0);
697
+ },
698
+ p(u, r) {
699
+ r & /*$_*/
700
+ 32 && n !== (n = /*$_*/
701
+ u[5]("docCollector.capture") + "") && R(s, n), r & /*id*/
702
+ 2 && _(
703
+ a,
704
+ "id",
705
+ /*id*/
706
+ u[1]
707
+ ), r & /*disabled*/
708
+ 4 && (a.disabled = /*disabled*/
709
+ u[2]), r & /*hidden*/
710
+ 8 && (a.hidden = /*hidden*/
711
+ u[3]);
712
+ },
713
+ d(u) {
714
+ u && v(e), l = !1, c();
715
+ }
716
+ };
717
+ }
718
+ function we(i) {
719
+ let e, a, n = (
720
+ /*$_*/
721
+ i[5]("docCollector.capture") + ""
722
+ ), s, l, c;
723
+ return {
724
+ c() {
725
+ e = g("div"), a = g("button"), s = A(n), _(
726
+ a,
727
+ "id",
728
+ /*id*/
729
+ i[1]
730
+ ), a.disabled = /*disabled*/
731
+ i[2], a.hidden = /*hidden*/
732
+ i[3], _(a, "class", "ce-dui-btn ce-dui-btn-primary text-xl pb-[2px] absolute z-10 bottom-32"), _(e, "class", "flex justify-center items-center");
733
+ },
734
+ m(u, r) {
735
+ b(u, e, r), k(e, a), k(a, s), l || (c = T(
736
+ a,
737
+ "click",
738
+ /*click_handler*/
739
+ i[6]
740
+ ), l = !0);
741
+ },
742
+ p(u, r) {
743
+ r & /*$_*/
744
+ 32 && n !== (n = /*$_*/
745
+ u[5]("docCollector.capture") + "") && R(s, n), r & /*id*/
746
+ 2 && _(
747
+ a,
748
+ "id",
749
+ /*id*/
750
+ u[1]
751
+ ), r & /*disabled*/
752
+ 4 && (a.disabled = /*disabled*/
753
+ u[2]), r & /*hidden*/
754
+ 8 && (a.hidden = /*hidden*/
755
+ u[3]);
756
+ },
757
+ d(u) {
758
+ u && v(e), l = !1, c();
759
+ }
760
+ };
761
+ }
762
+ function Se(i) {
763
+ let e, a;
764
+ function n(c, u) {
765
+ return u & /*$collectorSelect*/
766
+ 16 && (e = null), e == null && (e = !!(I() && /*$collectorSelect*/
767
+ c[4] == "DOCUMENT")), e ? we : (
768
+ /*$collectorSelect*/
769
+ c[4] == "DOCUMENT" ? pe : he
770
+ );
771
+ }
772
+ let s = n(i, -1), l = s(i);
773
+ return {
774
+ c() {
775
+ l.c(), a = le(), this.c = z;
776
+ },
777
+ m(c, u) {
778
+ l.m(c, u), b(c, a, u);
779
+ },
780
+ p(c, [u]) {
781
+ s === (s = n(c, u)) && l ? l.p(c, u) : (l.d(1), l = s(c), l && (l.c(), l.m(a.parentNode, a)));
782
+ },
783
+ i: z,
784
+ o: z,
785
+ d(c) {
786
+ l.d(c), c && v(a);
787
+ }
788
+ };
789
+ }
790
+ function ke(i, e, a) {
791
+ let n, s;
792
+ V(i, K, (m) => a(4, n = m)), V(i, G, (m) => a(5, s = m));
793
+ let { handler: l = () => {
794
+ } } = e, { id: c = "" } = e, { disabled: u = !1 } = e, { hidden: r = !1 } = e;
795
+ const h = () => l(), w = () => l(), S = () => l();
796
+ return i.$$set = (m) => {
797
+ "handler" in m && a(0, l = m.handler), "id" in m && a(1, c = m.id), "disabled" in m && a(2, u = m.disabled), "hidden" in m && a(3, r = m.hidden);
798
+ }, [
799
+ l,
800
+ c,
801
+ u,
802
+ r,
803
+ n,
804
+ s,
805
+ h,
806
+ w,
807
+ S
808
+ ];
809
+ }
810
+ class ge extends U {
811
+ constructor(e) {
812
+ super(), P(
813
+ this,
814
+ {
815
+ target: this.shadowRoot,
816
+ props: F(this.attributes),
817
+ customElement: !0
818
+ },
819
+ ke,
820
+ Se,
821
+ j,
822
+ {
823
+ handler: 0,
824
+ id: 1,
825
+ disabled: 2,
826
+ hidden: 3
827
+ },
828
+ null
829
+ ), e && (e.target && b(e.target, this, e.anchor), e.props && (this.$set(e.props), O()));
830
+ }
831
+ static get observedAttributes() {
832
+ return ["handler", "id", "disabled", "hidden"];
833
+ }
834
+ get handler() {
835
+ return this.$$.ctx[0];
836
+ }
837
+ set handler(e) {
838
+ this.$$set({ handler: e }), O();
839
+ }
840
+ get id() {
841
+ return this.$$.ctx[1];
842
+ }
843
+ set id(e) {
844
+ this.$$set({ id: e }), O();
845
+ }
846
+ get disabled() {
847
+ return this.$$.ctx[2];
848
+ }
849
+ set disabled(e) {
850
+ this.$$set({ disabled: e }), O();
851
+ }
852
+ get hidden() {
853
+ return this.$$.ctx[3];
854
+ }
855
+ set hidden(e) {
856
+ this.$$set({ hidden: e }), O();
857
+ }
858
+ }
859
+ customElements.define("take-picture-btn", ge);
860
+ export {
861
+ _e as C,
862
+ ge as T,
863
+ de as a
864
+ };