bry-biometric-collector 2.4.1 → 3.0.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 (23) hide show
  1. package/dist/DocumentCollector_480bc217_3.0.0-RC01.js +1029 -0
  2. package/dist/FaceCollector_95bb182b_3.0.0-RC01.js +2041 -0
  3. package/dist/ValidationAlert_0a6b586f_3.0.0-RC01.js +1656 -0
  4. package/dist/{___vite-browser-external_commonjs-proxy_ed55ad19_2.4.1.js → ___vite-browser-external_commonjs-proxy_8bb8db0d_3.0.0-RC01.js} +31 -31
  5. package/dist/bry-biometric-collector-main.js +3 -3
  6. package/dist/{fingersApi_ad7905b1_2.4.1.js → fingersApi_09f5a55b_3.0.0-RC01.js} +2 -2
  7. package/dist/index-no-detector_281a271b_3.0.0-RC01.js +15045 -0
  8. package/dist/index-no-detector_56051121_3.0.0-RC01.js +10830 -0
  9. package/dist/index.js +3 -3
  10. package/dist/{index_2724a1c0_2.4.1.js → index_b8df6bb6_3.0.0-RC01.js} +3 -3
  11. package/dist/{index_554d13bc_2.4.1.js → index_fa569ec3_3.0.0-RC01.js} +3 -3
  12. package/dist/{main_a11369bb_2.4.1.js → main_550fd4ab_3.0.0-RC01.js} +2678 -2611
  13. package/dist/style.css +1 -1
  14. package/package.json +3 -3
  15. package/dist/DocumentCollector_1945fe25_2.4.1.js +0 -1121
  16. package/dist/FaceCollector_76033700_2.4.1.js +0 -1992
  17. package/dist/TakePictureBtn_8ab0f124_2.4.1.js +0 -864
  18. package/dist/index-no-detector_4b302e78_2.4.1.js +0 -10414
  19. package/dist/index-no-detector_b6972e40_2.4.1.js +0 -5739
  20. /package/dist/{en-us_99b30d39_2.4.1.js → en-us_99b30d39_3.0.0-RC01.js} +0 -0
  21. /package/dist/{es-cl_cfa50670_2.4.1.js → es-cl_cfa50670_3.0.0-RC01.js} +0 -0
  22. /package/dist/{face_api_0e3ce8c8_2.4.1.js → face_api_0e3ce8c8_3.0.0-RC01.js} +0 -0
  23. /package/dist/{pt-br_d5ca6103_2.4.1.js → pt-br_d5ca6103_3.0.0-RC01.js} +0 -0
@@ -0,0 +1,1656 @@
1
+ import { S as H, q as P, r as F, t as G, w as M, x as S, y as w, B as T, C as h, H as g, J as E, Y as je, $ as te, be as x, bf as $, P as B, bg as O, Q as v, aZ as L, bh as Y, T as b, bi as Q, a_ as C, aV as R, aX as ze, _ as ae, R as X, a2 as ve, aN as ue, N as be, a6 as le, U as V, G as k, V as Z, E as z, L as Ae, Z as pe, ah as _e, M as q, aU as U, bj as ee, bk as we, z as J, D as W, I as K, O as ne, aa as Le } from "./main_550fd4ab_3.0.0-RC01.js";
2
+ function Ce(i) {
3
+ let e, s, a, t, l = (
4
+ /*$_*/
5
+ i[2]("cameraStatus.deviceMustBeInLandscape") + ""
6
+ ), u, o, n, f = (
7
+ /*$_*/
8
+ i[2]("cameraStatus.rotateDevice") + ""
9
+ ), c, D = [
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
+ ], d = {};
18
+ for (let m = 0; m < D.length; m += 1)
19
+ d = x(d, D[m]);
20
+ return {
21
+ c() {
22
+ e = O("svg"), s = O("path"), a = v(), t = w("span"), u = L(l), o = v(), n = w("span"), c = L(f), h(s, "fill", "currentColor"), h(s, "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"), Y(e, d), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center");
23
+ },
24
+ m(m, j) {
25
+ M(m, e, j), b(e, s), M(m, a, j), M(m, t, j), b(t, u), M(m, o, j), M(m, n, j), b(n, c);
26
+ },
27
+ p(m, j) {
28
+ Y(e, d = Q(D, [
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
+ j & /*$$props*/
35
+ 8 && /*$$props*/
36
+ m[3]
37
+ ])), j & /*$_*/
38
+ 4 && l !== (l = /*$_*/
39
+ m[2]("cameraStatus.deviceMustBeInLandscape") + "") && C(u, l), j & /*$_*/
40
+ 4 && f !== (f = /*$_*/
41
+ m[2]("cameraStatus.rotateDevice") + "") && C(c, f);
42
+ },
43
+ d(m) {
44
+ m && g(e), m && g(a), m && g(t), m && g(o), m && g(n);
45
+ }
46
+ };
47
+ }
48
+ function ke(i) {
49
+ let e, s, a, t, l = (
50
+ /*$_*/
51
+ i[2]("cameraStatus.deviceMustBeInPortrait") + ""
52
+ ), u, o, n, f = (
53
+ /*$_*/
54
+ i[2]("cameraStatus.rotateDevice") + ""
55
+ ), c, D = [
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
+ ], d = {};
64
+ for (let m = 0; m < D.length; m += 1)
65
+ d = x(d, D[m]);
66
+ return {
67
+ c() {
68
+ e = O("svg"), s = O("path"), a = v(), t = w("span"), u = L(l), o = v(), n = w("span"), c = L(f), h(s, "fill", "currentColor"), h(s, "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"), Y(e, d), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center");
69
+ },
70
+ m(m, j) {
71
+ M(m, e, j), b(e, s), M(m, a, j), M(m, t, j), b(t, u), M(m, o, j), M(m, n, j), b(n, c);
72
+ },
73
+ p(m, j) {
74
+ Y(e, d = Q(D, [
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
+ j & /*$$props*/
81
+ 8 && /*$$props*/
82
+ m[3]
83
+ ])), j & /*$_*/
84
+ 4 && l !== (l = /*$_*/
85
+ m[2]("cameraStatus.deviceMustBeInPortrait") + "") && C(u, l), j & /*$_*/
86
+ 4 && f !== (f = /*$_*/
87
+ m[2]("cameraStatus.rotateDevice") + "") && C(c, f);
88
+ },
89
+ d(m) {
90
+ m && g(e), m && g(a), m && g(t), m && g(o), m && g(n);
91
+ }
92
+ };
93
+ }
94
+ function ye(i) {
95
+ let e, s, a, t, l = (
96
+ /*$_*/
97
+ i[2]("cameraStatus.biometricCapture") + ""
98
+ ), u, o, n, f = (
99
+ /*$_*/
100
+ i[2]("cameraStatus.startCapture") + ""
101
+ ), c, D, d, m = [
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
+ ], j = {};
110
+ for (let _ = 0; _ < m.length; _ += 1)
111
+ j = x(j, m[_]);
112
+ return {
113
+ c() {
114
+ e = O("svg"), s = O("path"), a = v(), t = w("span"), u = L(l), o = v(), n = w("button"), c = L(f), h(s, "fill", "currentColor"), h(s, "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"), Y(e, j), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
115
+ },
116
+ m(_, A) {
117
+ M(_, e, A), b(e, s), M(_, a, A), M(_, t, A), b(t, u), M(_, o, A), M(_, n, A), b(n, c), D || (d = R(
118
+ n,
119
+ "click",
120
+ /*click_handler_5*/
121
+ i[9]
122
+ ), D = !0);
123
+ },
124
+ p(_, A) {
125
+ Y(e, j = Q(m, [
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
+ A & /*$$props*/
132
+ 8 && /*$$props*/
133
+ _[3]
134
+ ])), A & /*$_*/
135
+ 4 && l !== (l = /*$_*/
136
+ _[2]("cameraStatus.biometricCapture") + "") && C(u, l), A & /*$_*/
137
+ 4 && f !== (f = /*$_*/
138
+ _[2]("cameraStatus.startCapture") + "") && C(c, f);
139
+ },
140
+ d(_) {
141
+ _ && g(e), _ && g(a), _ && g(t), _ && g(o), _ && g(n), D = !1, d();
142
+ }
143
+ };
144
+ }
145
+ function Se(i) {
146
+ let e, s, a, t, l = (
147
+ /*$_*/
148
+ i[2]("cameraStatus.cameraNotSupported") + ""
149
+ ), u, o, n, f = (
150
+ /*$_*/
151
+ i[2]("cameraStatus.connectAnotherCamera") + ""
152
+ ), c, D, d, m = (
153
+ /*$_*/
154
+ i[2]("cameraStatus.restart") + ""
155
+ ), j, _, A, y = [
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
+ ], p = {};
164
+ for (let r = 0; r < y.length; r += 1)
165
+ p = x(p, y[r]);
166
+ return {
167
+ c() {
168
+ e = O("svg"), s = O("path"), a = v(), t = w("span"), u = L(l), o = v(), n = w("span"), c = L(f), D = v(), d = w("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "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"), Y(e, p), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
169
+ },
170
+ m(r, N) {
171
+ M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), _ || (A = R(
172
+ d,
173
+ "click",
174
+ /*click_handler_4*/
175
+ i[8]
176
+ ), _ = !0);
177
+ },
178
+ p(r, N) {
179
+ Y(e, p = Q(y, [
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
+ N & /*$$props*/
186
+ 8 && /*$$props*/
187
+ r[3]
188
+ ])), N & /*$_*/
189
+ 4 && l !== (l = /*$_*/
190
+ r[2]("cameraStatus.cameraNotSupported") + "") && C(u, l), N & /*$_*/
191
+ 4 && f !== (f = /*$_*/
192
+ r[2]("cameraStatus.connectAnotherCamera") + "") && C(c, f), N & /*$_*/
193
+ 4 && m !== (m = /*$_*/
194
+ r[2]("cameraStatus.restart") + "") && C(j, m);
195
+ },
196
+ d(r) {
197
+ r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), _ = !1, A();
198
+ }
199
+ };
200
+ }
201
+ function Te(i) {
202
+ let e, s, a, t, l = (
203
+ /*$_*/
204
+ i[2]("cameraStatus.stayOnSameTab") + ""
205
+ ), u, o, n, f = (
206
+ /*$_*/
207
+ i[2]("cameraStatus.clickRestartToRecapture") + ""
208
+ ), c, D, d, m = (
209
+ /*$_*/
210
+ i[2]("cameraStatus.restart") + ""
211
+ ), j, _, A, y = [
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
+ ], p = {};
220
+ for (let r = 0; r < y.length; r += 1)
221
+ p = x(p, y[r]);
222
+ return {
223
+ c() {
224
+ e = O("svg"), s = O("path"), a = v(), t = w("span"), u = L(l), o = v(), n = w("span"), c = L(f), D = v(), d = w("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "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"), Y(e, p), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
225
+ },
226
+ m(r, N) {
227
+ M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), _ || (A = R(
228
+ d,
229
+ "click",
230
+ /*click_handler_3*/
231
+ i[7]
232
+ ), _ = !0);
233
+ },
234
+ p(r, N) {
235
+ Y(e, p = Q(y, [
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
+ N & /*$$props*/
242
+ 8 && /*$$props*/
243
+ r[3]
244
+ ])), N & /*$_*/
245
+ 4 && l !== (l = /*$_*/
246
+ r[2]("cameraStatus.stayOnSameTab") + "") && C(u, l), N & /*$_*/
247
+ 4 && f !== (f = /*$_*/
248
+ r[2]("cameraStatus.clickRestartToRecapture") + "") && C(c, f), N & /*$_*/
249
+ 4 && m !== (m = /*$_*/
250
+ r[2]("cameraStatus.restart") + "") && C(j, m);
251
+ },
252
+ d(r) {
253
+ r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), _ = !1, A();
254
+ }
255
+ };
256
+ }
257
+ function Ee(i) {
258
+ let e, s, a, t, l = (
259
+ /*$_*/
260
+ i[2]("cameraStatus.cameraInUse") + ""
261
+ ), u, o, n, f = (
262
+ /*$_*/
263
+ i[2]("cameraStatus.ensureCameraNotInUse") + ""
264
+ ), c, D, d, m = (
265
+ /*$_*/
266
+ i[2]("cameraStatus.restart") + ""
267
+ ), j, _, A, y = [
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
+ ], p = {};
276
+ for (let r = 0; r < y.length; r += 1)
277
+ p = x(p, y[r]);
278
+ return {
279
+ c() {
280
+ e = O("svg"), s = O("path"), a = v(), t = w("span"), u = L(l), o = v(), n = w("span"), c = L(f), D = v(), d = w("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "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"), Y(e, p), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
281
+ },
282
+ m(r, N) {
283
+ M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), _ || (A = R(
284
+ d,
285
+ "click",
286
+ /*click_handler_2*/
287
+ i[6]
288
+ ), _ = !0);
289
+ },
290
+ p(r, N) {
291
+ Y(e, p = Q(y, [
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
+ N & /*$$props*/
298
+ 8 && /*$$props*/
299
+ r[3]
300
+ ])), N & /*$_*/
301
+ 4 && l !== (l = /*$_*/
302
+ r[2]("cameraStatus.cameraInUse") + "") && C(u, l), N & /*$_*/
303
+ 4 && f !== (f = /*$_*/
304
+ r[2]("cameraStatus.ensureCameraNotInUse") + "") && C(c, f), N & /*$_*/
305
+ 4 && m !== (m = /*$_*/
306
+ r[2]("cameraStatus.restart") + "") && C(j, m);
307
+ },
308
+ d(r) {
309
+ r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), _ = !1, A();
310
+ }
311
+ };
312
+ }
313
+ function Oe(i) {
314
+ let e, s, a, t, l = (
315
+ /*$_*/
316
+ i[2]("cameraStatus.cameraNotDetected") + ""
317
+ ), u, o, n, f = (
318
+ /*$_*/
319
+ i[2]("cameraStatus.connectCameraAndRestart") + ""
320
+ ), c, D, d, m = (
321
+ /*$_*/
322
+ i[2]("cameraStatus.restart") + ""
323
+ ), j, _, A, y = [
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
+ ], p = {};
332
+ for (let r = 0; r < y.length; r += 1)
333
+ p = x(p, y[r]);
334
+ return {
335
+ c() {
336
+ e = O("svg"), s = O("path"), a = v(), t = w("span"), u = L(l), o = v(), n = w("span"), c = L(f), D = v(), d = w("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "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"), Y(e, p), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
337
+ },
338
+ m(r, N) {
339
+ M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), _ || (A = R(
340
+ d,
341
+ "click",
342
+ /*click_handler_1*/
343
+ i[5]
344
+ ), _ = !0);
345
+ },
346
+ p(r, N) {
347
+ Y(e, p = Q(y, [
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
+ N & /*$$props*/
354
+ 8 && /*$$props*/
355
+ r[3]
356
+ ])), N & /*$_*/
357
+ 4 && l !== (l = /*$_*/
358
+ r[2]("cameraStatus.cameraNotDetected") + "") && C(u, l), N & /*$_*/
359
+ 4 && f !== (f = /*$_*/
360
+ r[2]("cameraStatus.connectCameraAndRestart") + "") && C(c, f), N & /*$_*/
361
+ 4 && m !== (m = /*$_*/
362
+ r[2]("cameraStatus.restart") + "") && C(j, m);
363
+ },
364
+ d(r) {
365
+ r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), _ = !1, A();
366
+ }
367
+ };
368
+ }
369
+ function Ye(i) {
370
+ let e, s, a, t, l = (
371
+ /*$_*/
372
+ i[2]("cameraStatus.cameraPermission") + ""
373
+ ), u, o, n, f = (
374
+ /*$_*/
375
+ i[2]("cameraStatus.clickRestartButton") + ""
376
+ ), c, D, d, m = (
377
+ /*$_*/
378
+ i[2]("cameraStatus.restart") + ""
379
+ ), j, _, A, y = [
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
+ ], p = {};
388
+ for (let r = 0; r < y.length; r += 1)
389
+ p = x(p, y[r]);
390
+ return {
391
+ c() {
392
+ e = O("svg"), s = O("path"), a = v(), t = w("span"), u = L(l), o = v(), n = w("span"), c = L(f), D = v(), d = w("button"), j = L(m), h(s, "fill", "currentColor"), h(s, "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"), Y(e, p), h(t, "class", "text-xl font-bold text-center"), h(n, "class", "m-auto text-base block text-center"), h(d, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
393
+ },
394
+ m(r, N) {
395
+ M(r, e, N), b(e, s), M(r, a, N), M(r, t, N), b(t, u), M(r, o, N), M(r, n, N), b(n, c), M(r, D, N), M(r, d, N), b(d, j), _ || (A = R(
396
+ d,
397
+ "click",
398
+ /*click_handler*/
399
+ i[4]
400
+ ), _ = !0);
401
+ },
402
+ p(r, N) {
403
+ Y(e, p = Q(y, [
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
+ N & /*$$props*/
410
+ 8 && /*$$props*/
411
+ r[3]
412
+ ])), N & /*$_*/
413
+ 4 && l !== (l = /*$_*/
414
+ r[2]("cameraStatus.cameraPermission") + "") && C(u, l), N & /*$_*/
415
+ 4 && f !== (f = /*$_*/
416
+ r[2]("cameraStatus.clickRestartButton") + "") && C(c, f), N & /*$_*/
417
+ 4 && m !== (m = /*$_*/
418
+ r[2]("cameraStatus.restart") + "") && C(j, m);
419
+ },
420
+ d(r) {
421
+ r && g(e), r && g(a), r && g(t), r && g(o), r && g(n), r && g(D), r && g(d), _ = !1, A();
422
+ }
423
+ };
424
+ }
425
+ function xe(i) {
426
+ let e;
427
+ function s(l, u) {
428
+ if (
429
+ /*$cameraStatusStore*/
430
+ l[1] === B.CAMERA_DENIED_ERROR
431
+ )
432
+ return Ye;
433
+ if (
434
+ /*$cameraStatusStore*/
435
+ l[1] === B.DEVICE_NOT_FOUND_ERROR
436
+ )
437
+ return Oe;
438
+ if (
439
+ /*$cameraStatusStore*/
440
+ l[1] === B.CAMERA_IN_USE_ERROR
441
+ )
442
+ return Ee;
443
+ if (
444
+ /*$cameraStatusStore*/
445
+ l[1] === B.CAMERA_CLOSED_ERROR
446
+ )
447
+ return Te;
448
+ if (
449
+ /*$cameraStatusStore*/
450
+ l[1] === B.CAMERA_UNSUPPORTED
451
+ )
452
+ return Se;
453
+ if (
454
+ /*$cameraStatusStore*/
455
+ l[1] === B.CAMERA_NOT_STARTED
456
+ )
457
+ return ye;
458
+ if (
459
+ /*$cameraStatusStore*/
460
+ l[1] === B.CAMERA_ORIENTATION_PORTRAIT
461
+ )
462
+ return ke;
463
+ if (
464
+ /*$cameraStatusStore*/
465
+ l[1] === B.CAMERA_ORIENTATION_LANDSCAPE
466
+ )
467
+ return Ce;
468
+ }
469
+ let a = s(i), t = a && a(i);
470
+ return {
471
+ c() {
472
+ e = w("div"), t && t.c(), this.c = T, h(e, "class", "flex flex-col gap-4 justify-center items-center relative overflow-visible p-4");
473
+ },
474
+ m(l, u) {
475
+ M(l, e, u), t && t.m(e, null);
476
+ },
477
+ p(l, [u]) {
478
+ a === (a = s(l)) && t ? t.p(l, u) : (t && t.d(1), t = a && a(l), t && (t.c(), t.m(e, null)));
479
+ },
480
+ i: T,
481
+ o: T,
482
+ d(l) {
483
+ l && g(e), t && t.d();
484
+ }
485
+ };
486
+ }
487
+ function Be(i, e, s) {
488
+ let a, t;
489
+ E(i, je, (d) => s(1, a = d)), E(i, te, (d) => s(2, t = d));
490
+ let { handler: l = () => {
491
+ } } = e;
492
+ const u = () => {
493
+ l(), console.log("canicna", l);
494
+ }, o = () => {
495
+ l(), console.log("canicna", l);
496
+ }, n = () => {
497
+ l(), console.log("canicna", l);
498
+ }, f = () => {
499
+ l();
500
+ }, c = () => {
501
+ l();
502
+ }, D = () => {
503
+ l();
504
+ };
505
+ return i.$$set = (d) => {
506
+ s(3, e = x(x({}, e), $(d))), "handler" in d && s(0, l = d.handler);
507
+ }, e = $(e), [
508
+ l,
509
+ a,
510
+ t,
511
+ e,
512
+ u,
513
+ o,
514
+ n,
515
+ f,
516
+ c,
517
+ D
518
+ ];
519
+ }
520
+ class Ue extends H {
521
+ constructor(e) {
522
+ super(), P(
523
+ this,
524
+ {
525
+ target: this.shadowRoot,
526
+ props: G(this.attributes),
527
+ customElement: !0
528
+ },
529
+ Be,
530
+ xe,
531
+ F,
532
+ { handler: 0 },
533
+ null
534
+ ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S()));
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 }), S();
544
+ }
545
+ }
546
+ customElements.define("camera-status", Ue);
547
+ const Qe = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCA4NSAyNSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI4LjMzNiAyMFY1LjdIMzQuMjc2QzM1LjIyMjcgNS43IDM2LjA0OTMgNS44NTMzMyAzNi43NTYgNi4xNkMzNy40NjI3IDYuNDY2NjcgMzguMDA5MyA2LjkgMzguMzk2IDcuNDZDMzguNzgyNyA4LjAyIDM4Ljk3NiA4LjY4IDM4Ljk3NiA5LjQ0QzM4Ljk3NiAxMC4xMzMzIDM4Ljc4MjcgMTAuNzUzMyAzOC4zOTYgMTEuM0MzOC4wMDkzIDExLjgzMzMgMzcuNDYyNyAxMi4yNTMzIDM2Ljc1NiAxMi41NkMzNi4wNDkzIDEyLjg2NjcgMzUuMjIyNyAxMy4wMiAzNC4yNzYgMTMuMDJIMzEuMjM2VjEySDM0LjQ1NkMzNS40ODI3IDEyIDM2LjM3NiAxMi4xNiAzNy4xMzYgMTIuNDhDMzcuOTA5MyAxMi43ODY3IDM4LjUwOTMgMTMuMjMzMyAzOC45MzYgMTMuODJDMzkuMzc2IDE0LjM5MzMgMzkuNTk2IDE1LjA4IDM5LjU5NiAxNS44OEMzOS41OTYgMTYuNjkzMyAzOS4zODI3IDE3LjQxMzMgMzguOTU2IDE4LjA0QzM4LjUyOTQgMTguNjY2NyAzNy45MjkzIDE5LjE1MzMgMzcuMTU2IDE5LjVDMzYuMzgyNyAxOS44MzMzIDM1LjQ4MjcgMjAgMzQuNDU2IDIwSDI4LjMzNlpNMzEuMDM2IDE3Ljc0SDM0LjQ3NkMzNS4yMDkzIDE3Ljc0IDM1Ljc4OTMgMTcuNTY2NyAzNi4yMTYgMTcuMjJDMzYuNjQyNyAxNi44NiAzNi44NTYgMTYuMzYgMzYuODU2IDE1LjcyQzM2Ljg1NiAxNS4xMDY3IDM2LjY0MjcgMTQuNjMzMyAzNi4yMTYgMTQuM0MzNS43ODkzIDEzLjk1MzMgMzUuMjA5MyAxMy43OCAzNC40NzYgMTMuNzhIMzAuODM2VjExLjU2SDM0LjEzNkMzNC43ODkzIDExLjU2IDM1LjMwMjcgMTEuNCAzNS42NzYgMTEuMDhDMzYuMDYyNyAxMC43NDY3IDM2LjI1NiAxMC4yOTMzIDM2LjI1NiA5LjcyQzM2LjI1NiA5LjE2IDM2LjA2MjcgOC43MjY2NyAzNS42NzYgOC40MkMzNS4zMDI3IDguMTEzMzMgMzQuNzg5MyA3Ljk2IDM0LjEzNiA3Ljk2SDMxLjAzNlYxNy43NFpNNDcuODMyMSA5Ljc2VjEyLjE2SDQ3LjI5MjFDNDYuNjY1NCAxMi4xNiA0Ni4xMjU0IDEyLjI4NjcgNDUuNjcyMSAxMi41NEM0NS4yMTg4IDEyLjc4IDQ0Ljg1ODggMTMuMTYgNDQuNTkyMSAxMy42OEM0NC4zMzg4IDE0LjIgNDQuMjEyMSAxNC44NzMzIDQ0LjIxMjEgMTUuN1YyMEg0MS41NzIxVjkuOTRINDQuMTkyMVYxMy4ySDQzLjg3MjFDNDMuOTkyMSAxMi4zMDY3IDQ0LjIzODggMTEuNjEzMyA0NC42MTIxIDExLjEyQzQ0Ljk5ODggMTAuNjI2NyA0NS40NDU0IDEwLjI4IDQ1Ljk1MjEgMTAuMDhDNDYuNDcyMSA5Ljg2NjY3IDQ2Ljk3ODggOS43NiA0Ny40NzIxIDkuNzZINDcuODMyMVpNNTcuMjAwOSA5Ljk0SDU5Ljg2MDlMNTUuMDgwOSAyMS4xNkM1NC42OTQyIDIyLjA1MzMgNTQuMjA3NSAyMi43MjY3IDUzLjYyMDkgMjMuMThDNTMuMDM0MiAyMy42NDY3IDUyLjI1NDIgMjMuODggNTEuMjgwOSAyMy44OEg0OS45ODA5VjIxLjcySDUxLjE0MDlDNTEuNTQwOSAyMS43MiA1MS44NzQyIDIxLjYyNjcgNTIuMTQwOSAyMS40NEM1Mi40MjA5IDIxLjI2NjcgNTIuNjQwOSAyMC45ODY3IDUyLjgwMDkgMjAuNkw1My4wMjA5IDIwLjAyTDQ4LjcyMDkgOS45NEg1MS40NjA5TDU0Ljc0MDkgMTguNTJINTMuODgwOUw1Ny4yMDA5IDkuOTRaTTY3LjkwMzUgMjBINjUuMjYzNVY5Ljk0SDY3LjkwMzVWMjBaTTY2LjU4MzUgOC4yQzY2LjE0MzUgOC4yIDY1Ljc2MzUgOC4wNTMzMyA2NS40NDM1IDcuNzZDNjUuMTM2OCA3LjQ1MzMzIDY0Ljk4MzUgNy4wODY2NyA2NC45ODM1IDYuNjZDNjQuOTgzNSA2LjIwNjY3IDY1LjEzNjggNS44MzMzMyA2NS40NDM1IDUuNTRDNjUuNzYzNSA1LjI0NjY3IDY2LjE0MzUgNS4xIDY2LjU4MzUgNS4xQzY3LjAzNjggNS4xIDY3LjQxNjggNS4yNTMzMyA2Ny43MjM1IDUuNTZDNjguMDMwMiA1Ljg1MzMzIDY4LjE4MzUgNi4yMiA2OC4xODM1IDYuNjZDNjguMTgzNSA3LjA4NjY3IDY4LjAzMDIgNy40NTMzMyA2Ny43MjM1IDcuNzZDNjcuNDE2OCA4LjA1MzMzIDY3LjAzNjggOC4yIDY2LjU4MzUgOC4yWk03MC41MDQgMjBWNS43SDc1LjUwNEM3Ny4wMzczIDUuNyA3OC4zNzczIDYuMDA2NjcgNzkuNTI0IDYuNjJDODAuNjg0IDcuMjIgODEuNTg0IDguMDYgODIuMjI0IDkuMTRDODIuODc3MyAxMC4yMDY3IDgzLjIwNCAxMS40NCA4My4yMDQgMTIuODRDODMuMjA0IDE0LjI0IDgyLjg3NzMgMTUuNDggODIuMjI0IDE2LjU2QzgxLjU4NCAxNy42MjY3IDgwLjY4NCAxOC40NjY3IDc5LjUyNCAxOS4wOEM3OC4zNzczIDE5LjY5MzMgNzcuMDM3MyAyMCA3NS41MDQgMjBINzAuNTA0Wk03My4yMDQgMTcuN0g3NS41MDRDNzYuNTA0IDE3LjcgNzcuMzY0IDE3LjUgNzguMDg0IDE3LjFDNzguODE3MyAxNi43IDc5LjM3NzMgMTYuMTQgNzkuNzY0IDE1LjQyQzgwLjE2NCAxNC42ODY3IDgwLjM2NCAxMy44MjY3IDgwLjM2NCAxMi44NEM4MC4zNjQgMTEuODUzMyA4MC4xNjQgMTEgNzkuNzY0IDEwLjI4Qzc5LjM3NzMgOS41NDY2NyA3OC44MTczIDguOTg2NjcgNzguMDg0IDguNkM3Ny4zNjQgOC4yIDc2LjUwNCA4IDc1LjUwNCA4SDczLjIwNFYxNy43WiIgZmlsbD0id2hpdGUiLz4KPGNpcmNsZSBjeD0iMTAiIGN5PSIxMy4zMDYyIiByPSI0IiBmaWxsPSJ3aGl0ZSIvPgo8Y2lyY2xlIGN4PSI5Ljk1OTA1IiBjeT0iMTMuMjUyIiByPSI2Ljc1MjAyIiBzdHJva2U9IndoaXRlIi8+CjxwYXRoIGQ9Ik01LjQ3OTE5IDRIMy4xMzI5NUMxLjk1NDk1IDQgMSA0Ljk1NDk1IDEgNi4xMzI5NVY4LjQ3OTE5TTE0LjQzNzYgNEgxNi43ODM4QzE3Ljk2MTggNCAxOC45MTY3IDQuOTU0OTUgMTguOTE2NyA2LjEzMjk1VjguNDc5MTlNMTguOTE2NyAxNy40Mzc2VjE5Ljc4MzhDMTguOTE2NyAyMC45NjE4IDE3Ljk2MTggMjEuOTE2NyAxNi43ODM4IDIxLjkxNjdIMTQuNDM3Nk01LjQ3OTE5IDIxLjkxNjdIMy4xMzI5NUMxLjk1NDk1IDIxLjkxNjcgMSAyMC45NjE4IDEgMTkuNzgzOFYxNy40Mzc2IiBzdHJva2U9IndoaXRlIi8+Cjwvc3ZnPgo=";
548
+ function Re(i) {
549
+ let e, s, a, t;
550
+ return {
551
+ c() {
552
+ e = w("div"), s = w("img"), this.c = T, ze(s.src, a = Qe) || h(s, "src", a), h(s, "alt", "BryID"), h(e, "class", t = /*$collectorSelect*/
553
+ i[0] === "DOCUMENT" ? "absolute inset-0 flex justify-center items-end mt-3" : "absolute inset-0 flex justify-center items-end mb-4");
554
+ },
555
+ m(l, u) {
556
+ M(l, e, u), b(e, s);
557
+ },
558
+ p(l, [u]) {
559
+ u & /*$collectorSelect*/
560
+ 1 && t !== (t = /*$collectorSelect*/
561
+ l[0] === "DOCUMENT" ? "absolute inset-0 flex justify-center items-end mt-3" : "absolute inset-0 flex justify-center items-end mb-4") && h(e, "class", t);
562
+ },
563
+ i: T,
564
+ o: T,
565
+ d(l) {
566
+ l && g(e);
567
+ }
568
+ };
569
+ }
570
+ function Ve(i, e, s) {
571
+ let a;
572
+ return E(i, ae, (t) => s(0, a = t)), [a];
573
+ }
574
+ class Ze extends H {
575
+ constructor(e) {
576
+ super(), P(
577
+ this,
578
+ {
579
+ target: this.shadowRoot,
580
+ props: G(this.attributes),
581
+ customElement: !0
582
+ },
583
+ Ve,
584
+ Re,
585
+ F,
586
+ {},
587
+ null
588
+ ), e && e.target && M(e.target, this, e.anchor);
589
+ }
590
+ }
591
+ customElements.define("water-mark", Ze);
592
+ function He(i) {
593
+ let e;
594
+ return {
595
+ c() {
596
+ e = w("div"), h(e, "class", "w-16");
597
+ },
598
+ m(s, a) {
599
+ M(s, e, a);
600
+ },
601
+ p: T,
602
+ d(s) {
603
+ s && g(e);
604
+ }
605
+ };
606
+ }
607
+ function Pe(i) {
608
+ let e, s, a, t, l, u, o, n = [
609
+ { xmlns: "http://www.w3.org/2000/svg" },
610
+ { width: "2em" },
611
+ { height: "2em" },
612
+ { viewBox: "0 0 256 256" },
613
+ /*$$props*/
614
+ i[3]
615
+ ], f = {};
616
+ for (let c = 0; c < n.length; c += 1)
617
+ f = x(f, n[c]);
618
+ return {
619
+ c() {
620
+ e = w("div"), s = w("label"), a = O("svg"), t = O("path"), h(t, "fill", "hsl(var(--n))"), h(t, "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"), Y(a, f), h(s, "tabindex", "0"), s.hidden = l = /*$cameraDevicesStore*/
621
+ i[1].length <= 1, h(s, "class", "ce-dui-btn ce-dui-btn-ghost w-16");
622
+ },
623
+ m(c, D) {
624
+ M(c, e, D), b(e, s), b(s, a), b(a, t), u || (o = R(
625
+ e,
626
+ "click",
627
+ /*click_handler*/
628
+ i[4]
629
+ ), u = !0);
630
+ },
631
+ p(c, D) {
632
+ Y(a, f = Q(n, [
633
+ { xmlns: "http://www.w3.org/2000/svg" },
634
+ { width: "2em" },
635
+ { height: "2em" },
636
+ { viewBox: "0 0 256 256" },
637
+ D & /*$$props*/
638
+ 8 && /*$$props*/
639
+ c[3]
640
+ ])), D & /*$cameraDevicesStore*/
641
+ 2 && l !== (l = /*$cameraDevicesStore*/
642
+ c[1].length <= 1) && (s.hidden = l);
643
+ },
644
+ d(c) {
645
+ c && g(e), u = !1, o();
646
+ }
647
+ };
648
+ }
649
+ function Fe(i) {
650
+ let e;
651
+ function s(l, u) {
652
+ return (
653
+ /*show*/
654
+ l[0] && /*$cameraDevicesStore*/
655
+ l[1].length > 1 ? Pe : He
656
+ );
657
+ }
658
+ let a = s(i), t = a(i);
659
+ return {
660
+ c() {
661
+ t.c(), e = X(), this.c = T;
662
+ },
663
+ m(l, u) {
664
+ t.m(l, u), M(l, e, u);
665
+ },
666
+ p(l, [u]) {
667
+ a === (a = s(l)) && t ? t.p(l, u) : (t.d(1), t = a(l), t && (t.c(), t.m(e.parentNode, e)));
668
+ },
669
+ i: T,
670
+ o: T,
671
+ d(l) {
672
+ t.d(l), l && g(e);
673
+ }
674
+ };
675
+ }
676
+ function Ge(i, e, s) {
677
+ let a, t;
678
+ E(i, ve, (o) => s(1, a = o)), E(i, ue, (o) => s(2, t = o));
679
+ let { show: l } = e;
680
+ const u = () => {
681
+ be(ue, t = !t, t);
682
+ };
683
+ return i.$$set = (o) => {
684
+ s(3, e = x(x({}, e), $(o))), "show" in o && s(0, l = o.show);
685
+ }, e = $(e), [l, a, t, e, u];
686
+ }
687
+ class se extends H {
688
+ constructor(e) {
689
+ super(), P(
690
+ this,
691
+ {
692
+ target: this.shadowRoot,
693
+ props: G(this.attributes),
694
+ customElement: !0
695
+ },
696
+ Ge,
697
+ Fe,
698
+ F,
699
+ { show: 0 },
700
+ null
701
+ ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S()));
702
+ }
703
+ static get observedAttributes() {
704
+ return ["show"];
705
+ }
706
+ get show() {
707
+ return this.$$.ctx[0];
708
+ }
709
+ set show(e) {
710
+ this.$$set({ show: e }), S();
711
+ }
712
+ }
713
+ customElements.define("camera-btn", se);
714
+ function Je(i) {
715
+ let e, s = (
716
+ /*$_*/
717
+ i[0]("buttons.startCapture") + ""
718
+ ), a, t, l;
719
+ return {
720
+ c() {
721
+ e = w("button"), a = L(s), this.c = T, h(e, "class", "bg-primary text-white font-medium h-12 px-4 rounded-3xl text-xl transition-colors duration-500 hover:bg-primary-focus");
722
+ },
723
+ m(u, o) {
724
+ M(u, e, o), b(e, a), t || (l = R(
725
+ e,
726
+ "click",
727
+ /*click_handler*/
728
+ i[2]
729
+ ), t = !0);
730
+ },
731
+ p(u, [o]) {
732
+ o & /*$_*/
733
+ 1 && s !== (s = /*$_*/
734
+ u[0]("buttons.startCapture") + "") && C(a, s);
735
+ },
736
+ i: T,
737
+ o: T,
738
+ d(u) {
739
+ u && g(e), t = !1, l();
740
+ }
741
+ };
742
+ }
743
+ function We(i, e, s) {
744
+ let a, t;
745
+ E(i, le, (o) => s(3, a = o)), E(i, te, (o) => s(0, t = o));
746
+ function l() {
747
+ be(le, a = !0, a);
748
+ }
749
+ return [t, l, () => l()];
750
+ }
751
+ class Ie extends H {
752
+ constructor(e) {
753
+ super(), P(
754
+ this,
755
+ {
756
+ target: this.shadowRoot,
757
+ props: G(this.attributes),
758
+ customElement: !0
759
+ },
760
+ We,
761
+ Je,
762
+ F,
763
+ {},
764
+ null
765
+ ), e && e.target && M(e.target, this, e.anchor);
766
+ }
767
+ }
768
+ customElements.define("start-auto-capture-btn", Ie);
769
+ function Ke(i) {
770
+ let e, s = (
771
+ /*$_*/
772
+ i[3]("faceCollector.capture") + ""
773
+ ), a, t, l;
774
+ return {
775
+ c() {
776
+ e = w("button"), a = L(s), this.c = T, e.disabled = /*disabled*/
777
+ i[1], e.hidden = /*hidden*/
778
+ i[2], h(e, "class", "bg-primary text-white font-medium h-12 px-4 rounded-3xl text-xl transition-colors duration-200 hover:bg-primary-focus disabled:bg-gray-300 disabled:hover:bg-gray-300 disabled:opacity-60");
779
+ },
780
+ m(u, o) {
781
+ M(u, e, o), b(e, a), t || (l = R(
782
+ e,
783
+ "click",
784
+ /*click_handler*/
785
+ i[4]
786
+ ), t = !0);
787
+ },
788
+ p(u, [o]) {
789
+ o & /*$_*/
790
+ 8 && s !== (s = /*$_*/
791
+ u[3]("faceCollector.capture") + "") && C(a, s), o & /*disabled*/
792
+ 2 && (e.disabled = /*disabled*/
793
+ u[1]), o & /*hidden*/
794
+ 4 && (e.hidden = /*hidden*/
795
+ u[2]);
796
+ },
797
+ i: T,
798
+ o: T,
799
+ d(u) {
800
+ u && g(e), t = !1, l();
801
+ }
802
+ };
803
+ }
804
+ function Xe(i, e, s) {
805
+ let a;
806
+ E(i, te, (n) => s(3, a = n));
807
+ let { handler: t = () => {
808
+ } } = e, { disabled: l = !1 } = e, { hidden: u = !1 } = e;
809
+ const o = () => !l && t();
810
+ return i.$$set = (n) => {
811
+ "handler" in n && s(0, t = n.handler), "disabled" in n && s(1, l = n.disabled), "hidden" in n && s(2, u = n.hidden);
812
+ }, [t, l, u, a, o];
813
+ }
814
+ class ie extends H {
815
+ constructor(e) {
816
+ super(), P(
817
+ this,
818
+ {
819
+ target: this.shadowRoot,
820
+ props: G(this.attributes),
821
+ customElement: !0
822
+ },
823
+ Xe,
824
+ Ke,
825
+ F,
826
+ { handler: 0, disabled: 1, hidden: 2 },
827
+ null
828
+ ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S()));
829
+ }
830
+ static get observedAttributes() {
831
+ return ["handler", "disabled", "hidden"];
832
+ }
833
+ get handler() {
834
+ return this.$$.ctx[0];
835
+ }
836
+ set handler(e) {
837
+ this.$$set({ handler: e }), S();
838
+ }
839
+ get disabled() {
840
+ return this.$$.ctx[1];
841
+ }
842
+ set disabled(e) {
843
+ this.$$set({ disabled: e }), S();
844
+ }
845
+ get hidden() {
846
+ return this.$$.ctx[2];
847
+ }
848
+ set hidden(e) {
849
+ this.$$set({ hidden: e }), S();
850
+ }
851
+ }
852
+ customElements.define("take-picture-btn", ie);
853
+ function qe(i) {
854
+ let e, s, a, t, l = (
855
+ /*$ready*/
856
+ i[13] && re(i)
857
+ ), u = (
858
+ /*$ready*/
859
+ i[13] && oe(i)
860
+ ), o = (
861
+ /*$ready*/
862
+ i[13] && fe(i)
863
+ );
864
+ return {
865
+ c() {
866
+ e = w("div"), l && l.c(), s = v(), u && u.c(), a = v(), o && o.c(), h(e, "class", "w-full flex justify-between items-center px-2"), U(e, "background-color", "rgba(" + ee(
867
+ /*videoOverlay*/
868
+ i[5]
869
+ ) + ", " + (1 - /*videoOverlayTransparency*/
870
+ i[6] / 100) + ")"), U(
871
+ e,
872
+ "height",
873
+ /*divHeight*/
874
+ i[11]
875
+ ), U(
876
+ e,
877
+ "max-height",
878
+ /*divHeight*/
879
+ i[11]
880
+ );
881
+ },
882
+ m(n, f) {
883
+ M(n, e, f), l && l.m(e, null), b(e, s), u && u.m(e, null), b(e, a), o && o.m(e, null), t = !0;
884
+ },
885
+ p(n, f) {
886
+ /*$ready*/
887
+ n[13] ? l ? (l.p(n, f), f & /*$ready*/
888
+ 8192 && z(l, 1)) : (l = re(n), l.c(), z(l, 1), l.m(e, s)) : l && (V(), k(l, 1, 1, () => {
889
+ l = null;
890
+ }), Z()), /*$ready*/
891
+ n[13] ? u ? (u.p(n, f), f & /*$ready*/
892
+ 8192 && z(u, 1)) : (u = oe(n), u.c(), z(u, 1), u.m(e, a)) : u && (V(), k(u, 1, 1, () => {
893
+ u = null;
894
+ }), Z()), /*$ready*/
895
+ n[13] ? o ? (o.p(n, f), f & /*$ready*/
896
+ 8192 && z(o, 1)) : (o = fe(n), o.c(), z(o, 1), o.m(e, null)) : o && (V(), k(o, 1, 1, () => {
897
+ o = null;
898
+ }), Z()), (!t || f & /*videoOverlay, videoOverlayTransparency*/
899
+ 96) && U(e, "background-color", "rgba(" + ee(
900
+ /*videoOverlay*/
901
+ n[5]
902
+ ) + ", " + (1 - /*videoOverlayTransparency*/
903
+ n[6] / 100) + ")"), (!t || f & /*divHeight*/
904
+ 2048) && U(
905
+ e,
906
+ "height",
907
+ /*divHeight*/
908
+ n[11]
909
+ ), (!t || f & /*divHeight*/
910
+ 2048) && U(
911
+ e,
912
+ "max-height",
913
+ /*divHeight*/
914
+ n[11]
915
+ );
916
+ },
917
+ i(n) {
918
+ t || (z(l), z(u), z(o), t = !0);
919
+ },
920
+ o(n) {
921
+ k(l), k(u), k(o), t = !1;
922
+ },
923
+ d(n) {
924
+ n && g(e), l && l.d(), u && u.d(), o && o.d();
925
+ }
926
+ };
927
+ }
928
+ function $e(i) {
929
+ let e, s, a, t, l, u = (
930
+ /*$ready*/
931
+ i[13] && ce(i)
932
+ ), o = (
933
+ /*showAutoCaptureButton*/
934
+ i[1] && !/*$automaticCapture*/
935
+ i[14] && !/*showCaptureButton*/
936
+ i[2] && /*$ready*/
937
+ i[13] && Me()
938
+ ), n = (
939
+ /*showCaptureButton*/
940
+ i[2] && /*$ready*/
941
+ i[13] && me(i)
942
+ ), f = (
943
+ /*$ready*/
944
+ i[13] && ge(i)
945
+ );
946
+ return {
947
+ c() {
948
+ e = w("div"), u && u.c(), s = v(), o && o.c(), a = v(), n && n.c(), t = v(), f && f.c(), h(e, "class", "w-full flex justify-between items-center px-2"), U(e, "background-color", "rgba(" + ee(
949
+ /*videoOverlay*/
950
+ i[5]
951
+ ) + ", " + (1 - /*videoOverlayTransparency*/
952
+ i[6] / 100) + ")"), U(
953
+ e,
954
+ "height",
955
+ /*divHeight*/
956
+ i[11]
957
+ ), U(
958
+ e,
959
+ "max-height",
960
+ /*divHeight*/
961
+ i[11]
962
+ );
963
+ },
964
+ m(c, D) {
965
+ M(c, e, D), u && u.m(e, null), b(e, s), o && o.m(e, null), b(e, a), n && n.m(e, null), b(e, t), f && f.m(e, null), l = !0;
966
+ },
967
+ p(c, D) {
968
+ /*$ready*/
969
+ c[13] ? u ? (u.p(c, D), D & /*$ready*/
970
+ 8192 && z(u, 1)) : (u = ce(c), u.c(), z(u, 1), u.m(e, s)) : u && (V(), k(u, 1, 1, () => {
971
+ u = null;
972
+ }), Z()), /*showAutoCaptureButton*/
973
+ c[1] && !/*$automaticCapture*/
974
+ c[14] && !/*showCaptureButton*/
975
+ c[2] && /*$ready*/
976
+ c[13] ? o ? D & /*showAutoCaptureButton, $automaticCapture, showCaptureButton, $ready*/
977
+ 24582 && z(o, 1) : (o = Me(), o.c(), z(o, 1), o.m(e, a)) : o && (V(), k(o, 1, 1, () => {
978
+ o = null;
979
+ }), Z()), /*showCaptureButton*/
980
+ c[2] && /*$ready*/
981
+ c[13] ? n ? (n.p(c, D), D & /*showCaptureButton, $ready*/
982
+ 8196 && z(n, 1)) : (n = me(c), n.c(), z(n, 1), n.m(e, t)) : n && (V(), k(n, 1, 1, () => {
983
+ n = null;
984
+ }), Z()), /*$ready*/
985
+ c[13] ? f ? (f.p(c, D), D & /*$ready*/
986
+ 8192 && z(f, 1)) : (f = ge(c), f.c(), z(f, 1), f.m(e, null)) : f && (V(), k(f, 1, 1, () => {
987
+ f = null;
988
+ }), Z()), (!l || D & /*videoOverlay, videoOverlayTransparency*/
989
+ 96) && U(e, "background-color", "rgba(" + ee(
990
+ /*videoOverlay*/
991
+ c[5]
992
+ ) + ", " + (1 - /*videoOverlayTransparency*/
993
+ c[6] / 100) + ")"), (!l || D & /*divHeight*/
994
+ 2048) && U(
995
+ e,
996
+ "height",
997
+ /*divHeight*/
998
+ c[11]
999
+ ), (!l || D & /*divHeight*/
1000
+ 2048) && U(
1001
+ e,
1002
+ "max-height",
1003
+ /*divHeight*/
1004
+ c[11]
1005
+ );
1006
+ },
1007
+ i(c) {
1008
+ l || (z(u), z(o), z(n), z(f), l = !0);
1009
+ },
1010
+ o(c) {
1011
+ k(u), k(o), k(n), k(f), l = !1;
1012
+ },
1013
+ d(c) {
1014
+ c && g(e), u && u.d(), o && o.d(), n && n.d(), f && f.d();
1015
+ }
1016
+ };
1017
+ }
1018
+ function re(i) {
1019
+ let e, s;
1020
+ return e = new we({
1021
+ props: { show: (
1022
+ /*showConfigButton*/
1023
+ i[0]
1024
+ ) }
1025
+ }), {
1026
+ c() {
1027
+ J(e.$$.fragment);
1028
+ },
1029
+ m(a, t) {
1030
+ W(e, a, t), s = !0;
1031
+ },
1032
+ p(a, t) {
1033
+ const l = {};
1034
+ t & /*showConfigButton*/
1035
+ 1 && (l.show = /*showConfigButton*/
1036
+ a[0]), e.$set(l);
1037
+ },
1038
+ i(a) {
1039
+ s || (z(e.$$.fragment, a), s = !0);
1040
+ },
1041
+ o(a) {
1042
+ k(e.$$.fragment, a), s = !1;
1043
+ },
1044
+ d(a) {
1045
+ K(e, a);
1046
+ }
1047
+ };
1048
+ }
1049
+ function oe(i) {
1050
+ let e, s;
1051
+ return e = new ie({
1052
+ props: {
1053
+ hidden: (
1054
+ /*$cameraStatusStore*/
1055
+ i[16] !== B.OK
1056
+ ),
1057
+ handler: (
1058
+ /*handler*/
1059
+ i[10]
1060
+ )
1061
+ }
1062
+ }), {
1063
+ c() {
1064
+ J(e.$$.fragment);
1065
+ },
1066
+ m(a, t) {
1067
+ W(e, a, t), s = !0;
1068
+ },
1069
+ p(a, t) {
1070
+ const l = {};
1071
+ t & /*$cameraStatusStore*/
1072
+ 65536 && (l.hidden = /*$cameraStatusStore*/
1073
+ a[16] !== B.OK), t & /*handler*/
1074
+ 1024 && (l.handler = /*handler*/
1075
+ a[10]), e.$set(l);
1076
+ },
1077
+ i(a) {
1078
+ s || (z(e.$$.fragment, a), s = !0);
1079
+ },
1080
+ o(a) {
1081
+ k(e.$$.fragment, a), s = !1;
1082
+ },
1083
+ d(a) {
1084
+ K(e, a);
1085
+ }
1086
+ };
1087
+ }
1088
+ function fe(i) {
1089
+ let e, s;
1090
+ return e = new se({
1091
+ props: { show: (
1092
+ /*showCameraButton*/
1093
+ i[3]
1094
+ ) }
1095
+ }), {
1096
+ c() {
1097
+ J(e.$$.fragment);
1098
+ },
1099
+ m(a, t) {
1100
+ W(e, a, t), s = !0;
1101
+ },
1102
+ p(a, t) {
1103
+ const l = {};
1104
+ t & /*showCameraButton*/
1105
+ 8 && (l.show = /*showCameraButton*/
1106
+ a[3]), e.$set(l);
1107
+ },
1108
+ i(a) {
1109
+ s || (z(e.$$.fragment, a), s = !0);
1110
+ },
1111
+ o(a) {
1112
+ k(e.$$.fragment, a), s = !1;
1113
+ },
1114
+ d(a) {
1115
+ K(e, a);
1116
+ }
1117
+ };
1118
+ }
1119
+ function ce(i) {
1120
+ let e, s;
1121
+ return e = new we({
1122
+ props: { show: (
1123
+ /*showConfigButton*/
1124
+ i[0]
1125
+ ) }
1126
+ }), {
1127
+ c() {
1128
+ J(e.$$.fragment);
1129
+ },
1130
+ m(a, t) {
1131
+ W(e, a, t), s = !0;
1132
+ },
1133
+ p(a, t) {
1134
+ const l = {};
1135
+ t & /*showConfigButton*/
1136
+ 1 && (l.show = /*showConfigButton*/
1137
+ a[0]), e.$set(l);
1138
+ },
1139
+ i(a) {
1140
+ s || (z(e.$$.fragment, a), s = !0);
1141
+ },
1142
+ o(a) {
1143
+ k(e.$$.fragment, a), s = !1;
1144
+ },
1145
+ d(a) {
1146
+ K(e, a);
1147
+ }
1148
+ };
1149
+ }
1150
+ function Me(i) {
1151
+ let e, s;
1152
+ return e = new Ie({}), {
1153
+ c() {
1154
+ J(e.$$.fragment);
1155
+ },
1156
+ m(a, t) {
1157
+ W(e, a, t), s = !0;
1158
+ },
1159
+ i(a) {
1160
+ s || (z(e.$$.fragment, a), s = !0);
1161
+ },
1162
+ o(a) {
1163
+ k(e.$$.fragment, a), s = !1;
1164
+ },
1165
+ d(a) {
1166
+ K(e, a);
1167
+ }
1168
+ };
1169
+ }
1170
+ function me(i) {
1171
+ let e, s;
1172
+ return e = new ie({
1173
+ props: {
1174
+ disabled: !/*enableCaptureButton*/
1175
+ i[4] && /*$enableFaceApi*/
1176
+ i[15] || !/*$ready*/
1177
+ i[13] && !/*$enableFaceApi*/
1178
+ i[15],
1179
+ hidden: (
1180
+ /*$cameraStatusStore*/
1181
+ i[16] !== B.OK || ne() && /*idrndLoading*/
1182
+ (i[8] || /*idrndClosed*/
1183
+ i[7] || /*waitingIdrndCaptureEvent*/
1184
+ i[9])
1185
+ ),
1186
+ handler: (
1187
+ /*handler*/
1188
+ i[10]
1189
+ )
1190
+ }
1191
+ }), {
1192
+ c() {
1193
+ J(e.$$.fragment);
1194
+ },
1195
+ m(a, t) {
1196
+ W(e, a, t), s = !0;
1197
+ },
1198
+ p(a, t) {
1199
+ const l = {};
1200
+ t & /*enableCaptureButton, $enableFaceApi, $ready*/
1201
+ 40976 && (l.disabled = !/*enableCaptureButton*/
1202
+ a[4] && /*$enableFaceApi*/
1203
+ a[15] || !/*$ready*/
1204
+ a[13] && !/*$enableFaceApi*/
1205
+ a[15]), t & /*$cameraStatusStore, idrndLoading, idrndClosed, waitingIdrndCaptureEvent*/
1206
+ 66432 && (l.hidden = /*$cameraStatusStore*/
1207
+ a[16] !== B.OK || ne() && /*idrndLoading*/
1208
+ (a[8] || /*idrndClosed*/
1209
+ a[7] || /*waitingIdrndCaptureEvent*/
1210
+ a[9])), t & /*handler*/
1211
+ 1024 && (l.handler = /*handler*/
1212
+ a[10]), e.$set(l);
1213
+ },
1214
+ i(a) {
1215
+ s || (z(e.$$.fragment, a), s = !0);
1216
+ },
1217
+ o(a) {
1218
+ k(e.$$.fragment, a), s = !1;
1219
+ },
1220
+ d(a) {
1221
+ K(e, a);
1222
+ }
1223
+ };
1224
+ }
1225
+ function ge(i) {
1226
+ let e, s;
1227
+ return e = new se({
1228
+ props: { show: (
1229
+ /*showCameraButton*/
1230
+ i[3]
1231
+ ) }
1232
+ }), {
1233
+ c() {
1234
+ J(e.$$.fragment);
1235
+ },
1236
+ m(a, t) {
1237
+ W(e, a, t), s = !0;
1238
+ },
1239
+ p(a, t) {
1240
+ const l = {};
1241
+ t & /*showCameraButton*/
1242
+ 8 && (l.show = /*showCameraButton*/
1243
+ a[3]), e.$set(l);
1244
+ },
1245
+ i(a) {
1246
+ s || (z(e.$$.fragment, a), s = !0);
1247
+ },
1248
+ o(a) {
1249
+ k(e.$$.fragment, a), s = !1;
1250
+ },
1251
+ d(a) {
1252
+ K(e, a);
1253
+ }
1254
+ };
1255
+ }
1256
+ function et(i) {
1257
+ let e, s, a, t;
1258
+ const l = [$e, qe], u = [];
1259
+ function o(n, f) {
1260
+ return (
1261
+ /*$collectorSelect*/
1262
+ n[12] === "FACE" ? 0 : (
1263
+ /*$collectorSelect*/
1264
+ n[12] === "DOCUMENT" ? 1 : -1
1265
+ )
1266
+ );
1267
+ }
1268
+ return ~(e = o(i)) && (s = u[e] = l[e](i)), {
1269
+ c() {
1270
+ s && s.c(), a = X(), this.c = T;
1271
+ },
1272
+ m(n, f) {
1273
+ ~e && u[e].m(n, f), M(n, a, f), t = !0;
1274
+ },
1275
+ p(n, [f]) {
1276
+ let c = e;
1277
+ e = o(n), e === c ? ~e && u[e].p(n, f) : (s && (V(), k(u[c], 1, 1, () => {
1278
+ u[c] = null;
1279
+ }), Z()), ~e ? (s = u[e], s ? s.p(n, f) : (s = u[e] = l[e](n), s.c()), z(s, 1), s.m(a.parentNode, a)) : s = null);
1280
+ },
1281
+ i(n) {
1282
+ t || (z(s), t = !0);
1283
+ },
1284
+ o(n) {
1285
+ k(s), t = !1;
1286
+ },
1287
+ d(n) {
1288
+ ~e && u[e].d(n), n && g(a);
1289
+ }
1290
+ };
1291
+ }
1292
+ function tt(i, e, s) {
1293
+ let a, t, l, u, o, n;
1294
+ E(i, Ae, (I) => s(17, a = I)), E(i, ae, (I) => s(12, t = I)), E(i, pe, (I) => s(13, l = I)), E(i, le, (I) => s(14, u = I)), E(i, _e, (I) => s(15, o = I)), E(i, je, (I) => s(16, n = I));
1295
+ let { showConfigButton: f = null } = e, { showAutoCaptureButton: c = null } = e, { showCaptureButton: D = null } = e, { showCameraButton: d = null } = e, { enableCaptureButton: m = null } = e, { videoOverlay: j = "" } = e, { videoOverlayTransparency: _ = 100 } = e, { idrndClosed: A = null } = e, { idrndLoading: y = null } = e, { waitingIdrndCaptureEvent: p = null } = e, { handler: r = () => {
1296
+ } } = e, N = 0;
1297
+ return i.$$set = (I) => {
1298
+ "showConfigButton" in I && s(0, f = I.showConfigButton), "showAutoCaptureButton" in I && s(1, c = I.showAutoCaptureButton), "showCaptureButton" in I && s(2, D = I.showCaptureButton), "showCameraButton" in I && s(3, d = I.showCameraButton), "enableCaptureButton" in I && s(4, m = I.enableCaptureButton), "videoOverlay" in I && s(5, j = I.videoOverlay), "videoOverlayTransparency" in I && s(6, _ = I.videoOverlayTransparency), "idrndClosed" in I && s(7, A = I.idrndClosed), "idrndLoading" in I && s(8, y = I.idrndLoading), "waitingIdrndCaptureEvent" in I && s(9, p = I.waitingIdrndCaptureEvent), "handler" in I && s(10, r = I.handler);
1299
+ }, i.$$.update = () => {
1300
+ i.$$.dirty & /*$videoStore*/
1301
+ 131072 && a && (q() ? s(11, N = `${Math.round(a.videoHeight * 0.25)}px`) : s(11, N = `${Math.round(a.videoHeight * 0.15)}px`));
1302
+ }, [
1303
+ f,
1304
+ c,
1305
+ D,
1306
+ d,
1307
+ m,
1308
+ j,
1309
+ _,
1310
+ A,
1311
+ y,
1312
+ p,
1313
+ r,
1314
+ N,
1315
+ t,
1316
+ l,
1317
+ u,
1318
+ o,
1319
+ n,
1320
+ a
1321
+ ];
1322
+ }
1323
+ class lt extends H {
1324
+ constructor(e) {
1325
+ super(), P(
1326
+ this,
1327
+ {
1328
+ target: this.shadowRoot,
1329
+ props: G(this.attributes),
1330
+ customElement: !0
1331
+ },
1332
+ tt,
1333
+ et,
1334
+ F,
1335
+ {
1336
+ showConfigButton: 0,
1337
+ showAutoCaptureButton: 1,
1338
+ showCaptureButton: 2,
1339
+ showCameraButton: 3,
1340
+ enableCaptureButton: 4,
1341
+ videoOverlay: 5,
1342
+ videoOverlayTransparency: 6,
1343
+ idrndClosed: 7,
1344
+ idrndLoading: 8,
1345
+ waitingIdrndCaptureEvent: 9,
1346
+ handler: 10
1347
+ },
1348
+ null
1349
+ ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S()));
1350
+ }
1351
+ static get observedAttributes() {
1352
+ return [
1353
+ "showConfigButton",
1354
+ "showAutoCaptureButton",
1355
+ "showCaptureButton",
1356
+ "showCameraButton",
1357
+ "enableCaptureButton",
1358
+ "videoOverlay",
1359
+ "videoOverlayTransparency",
1360
+ "idrndClosed",
1361
+ "idrndLoading",
1362
+ "waitingIdrndCaptureEvent",
1363
+ "handler"
1364
+ ];
1365
+ }
1366
+ get showConfigButton() {
1367
+ return this.$$.ctx[0];
1368
+ }
1369
+ set showConfigButton(e) {
1370
+ this.$$set({ showConfigButton: e }), S();
1371
+ }
1372
+ get showAutoCaptureButton() {
1373
+ return this.$$.ctx[1];
1374
+ }
1375
+ set showAutoCaptureButton(e) {
1376
+ this.$$set({ showAutoCaptureButton: e }), S();
1377
+ }
1378
+ get showCaptureButton() {
1379
+ return this.$$.ctx[2];
1380
+ }
1381
+ set showCaptureButton(e) {
1382
+ this.$$set({ showCaptureButton: e }), S();
1383
+ }
1384
+ get showCameraButton() {
1385
+ return this.$$.ctx[3];
1386
+ }
1387
+ set showCameraButton(e) {
1388
+ this.$$set({ showCameraButton: e }), S();
1389
+ }
1390
+ get enableCaptureButton() {
1391
+ return this.$$.ctx[4];
1392
+ }
1393
+ set enableCaptureButton(e) {
1394
+ this.$$set({ enableCaptureButton: e }), S();
1395
+ }
1396
+ get videoOverlay() {
1397
+ return this.$$.ctx[5];
1398
+ }
1399
+ set videoOverlay(e) {
1400
+ this.$$set({ videoOverlay: e }), S();
1401
+ }
1402
+ get videoOverlayTransparency() {
1403
+ return this.$$.ctx[6];
1404
+ }
1405
+ set videoOverlayTransparency(e) {
1406
+ this.$$set({ videoOverlayTransparency: e }), S();
1407
+ }
1408
+ get idrndClosed() {
1409
+ return this.$$.ctx[7];
1410
+ }
1411
+ set idrndClosed(e) {
1412
+ this.$$set({ idrndClosed: e }), S();
1413
+ }
1414
+ get idrndLoading() {
1415
+ return this.$$.ctx[8];
1416
+ }
1417
+ set idrndLoading(e) {
1418
+ this.$$set({ idrndLoading: e }), S();
1419
+ }
1420
+ get waitingIdrndCaptureEvent() {
1421
+ return this.$$.ctx[9];
1422
+ }
1423
+ set waitingIdrndCaptureEvent(e) {
1424
+ this.$$set({ waitingIdrndCaptureEvent: e }), S();
1425
+ }
1426
+ get handler() {
1427
+ return this.$$.ctx[10];
1428
+ }
1429
+ set handler(e) {
1430
+ this.$$set({ handler: e }), S();
1431
+ }
1432
+ }
1433
+ customElements.define("capture-bar", lt);
1434
+ function at(i) {
1435
+ let e, s, a = (
1436
+ /*isCountingDown*/
1437
+ i[0] && Ne(i)
1438
+ ), t = (
1439
+ /*$enableFaceApi*/
1440
+ i[3] && !/*isCountingDown*/
1441
+ i[0] && /*$faceValidationAlert*/
1442
+ i[4] && de(i)
1443
+ );
1444
+ return {
1445
+ c() {
1446
+ a && a.c(), e = v(), t && t.c(), s = X();
1447
+ },
1448
+ m(l, u) {
1449
+ a && a.m(l, u), M(l, e, u), t && t.m(l, u), M(l, s, u);
1450
+ },
1451
+ p(l, u) {
1452
+ /*isCountingDown*/
1453
+ l[0] ? a ? a.p(l, u) : (a = Ne(l), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), /*$enableFaceApi*/
1454
+ l[3] && !/*isCountingDown*/
1455
+ l[0] && /*$faceValidationAlert*/
1456
+ l[4] ? t ? t.p(l, u) : (t = de(l), t.c(), t.m(s.parentNode, s)) : t && (t.d(1), t = null);
1457
+ },
1458
+ d(l) {
1459
+ a && a.d(l), l && g(e), t && t.d(l), l && g(s);
1460
+ }
1461
+ };
1462
+ }
1463
+ function st(i) {
1464
+ let e, s, a = (
1465
+ /*isCountingDown*/
1466
+ i[0] && he(i)
1467
+ ), t = (
1468
+ /*$enableFaceApi*/
1469
+ i[3] && !/*isCountingDown*/
1470
+ i[0] && /*$faceValidationAlert*/
1471
+ i[4] && De(i)
1472
+ );
1473
+ return {
1474
+ c() {
1475
+ a && a.c(), e = v(), t && t.c(), s = X();
1476
+ },
1477
+ m(l, u) {
1478
+ a && a.m(l, u), M(l, e, u), t && t.m(l, u), M(l, s, u);
1479
+ },
1480
+ p(l, u) {
1481
+ /*isCountingDown*/
1482
+ l[0] ? a ? a.p(l, u) : (a = he(l), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), /*$enableFaceApi*/
1483
+ l[3] && !/*isCountingDown*/
1484
+ l[0] && /*$faceValidationAlert*/
1485
+ l[4] ? t ? t.p(l, u) : (t = De(l), t.c(), t.m(s.parentNode, s)) : t && (t.d(1), t = null);
1486
+ },
1487
+ d(l) {
1488
+ a && a.d(l), l && g(e), t && t.d(l), l && g(s);
1489
+ }
1490
+ };
1491
+ }
1492
+ function Ne(i) {
1493
+ let e, s = (
1494
+ /*$_*/
1495
+ i[2]("faceCollector.stayStill") + ""
1496
+ ), a;
1497
+ return {
1498
+ c() {
1499
+ e = w("span"), a = L(s), h(e, "class", "absolute left-1/2 -translate-x-1/2 ce-dui-badge ce-dui-badge-lg h-[2em] text-xl xl:text-base min-w-[12.1em] max-w-[15em] z-50 " + (q() ? "top-[6%]" : "top-[3%]"));
1500
+ },
1501
+ m(t, l) {
1502
+ M(t, e, l), b(e, a);
1503
+ },
1504
+ p(t, l) {
1505
+ l & /*$_*/
1506
+ 4 && s !== (s = /*$_*/
1507
+ t[2]("faceCollector.stayStill") + "") && C(a, s);
1508
+ },
1509
+ d(t) {
1510
+ t && g(e);
1511
+ }
1512
+ };
1513
+ }
1514
+ function de(i) {
1515
+ let e, s = (
1516
+ /*$_*/
1517
+ i[2](`${/*$faceValidationAlert*/
1518
+ i[4]}`) + ""
1519
+ ), a;
1520
+ return {
1521
+ c() {
1522
+ e = w("span"), a = L(s), h(e, "class", "absolute left-1/2 -translate-x-1/2 ce-dui-badge ce-dui-badge-lg h-[2em] text-xl xl:text-base min-w-[12.1em] max-w-[15em] z-50 " + (q() ? "top-[6%]" : "top-[3%]"));
1523
+ },
1524
+ m(t, l) {
1525
+ M(t, e, l), b(e, a);
1526
+ },
1527
+ p(t, l) {
1528
+ l & /*$_, $faceValidationAlert*/
1529
+ 20 && s !== (s = /*$_*/
1530
+ t[2](`${/*$faceValidationAlert*/
1531
+ t[4]}`) + "") && C(a, s);
1532
+ },
1533
+ d(t) {
1534
+ t && g(e);
1535
+ }
1536
+ };
1537
+ }
1538
+ function he(i) {
1539
+ let e, s = (
1540
+ /*$_*/
1541
+ i[2]("faceCollector.stayStill") + ""
1542
+ ), a;
1543
+ return {
1544
+ c() {
1545
+ e = w("span"), a = L(s), h(e, "class", "absolute left-1/2 -translate-x-1/2 ce-dui-badge ce-dui-badge-lg h-[2em] text-xl xl:text-base min-w-[12.1em] max-w-[15em] z-50 " + (q() ? "top-[6.5%]" : "top-[3%]"));
1546
+ },
1547
+ m(t, l) {
1548
+ M(t, e, l), b(e, a);
1549
+ },
1550
+ p(t, l) {
1551
+ l & /*$_*/
1552
+ 4 && s !== (s = /*$_*/
1553
+ t[2]("faceCollector.stayStill") + "") && C(a, s);
1554
+ },
1555
+ d(t) {
1556
+ t && g(e);
1557
+ }
1558
+ };
1559
+ }
1560
+ function De(i) {
1561
+ let e, s = (
1562
+ /*$_*/
1563
+ i[2](`${/*$faceValidationAlert*/
1564
+ i[4]}`) + ""
1565
+ ), a;
1566
+ return {
1567
+ c() {
1568
+ e = w("span"), a = L(s), h(e, "class", "absolute left-1/2 -translate-x-1/2 ce-dui-badge ce-dui-badge-lg h-[2em] text-xl xl:text-base min-w-[12.1em] max-w-[15em] z-50 " + (q() ? "top-[6.5%]" : "top-[3%]"));
1569
+ },
1570
+ m(t, l) {
1571
+ M(t, e, l), b(e, a);
1572
+ },
1573
+ p(t, l) {
1574
+ l & /*$_, $faceValidationAlert*/
1575
+ 20 && s !== (s = /*$_*/
1576
+ t[2](`${/*$faceValidationAlert*/
1577
+ t[4]}`) + "") && C(a, s);
1578
+ },
1579
+ d(t) {
1580
+ t && g(e);
1581
+ }
1582
+ };
1583
+ }
1584
+ function it(i) {
1585
+ let e;
1586
+ function s(l, u) {
1587
+ if (
1588
+ /*$collectorSelect*/
1589
+ l[1] === "FACE"
1590
+ )
1591
+ return st;
1592
+ if (
1593
+ /*$collectorSelect*/
1594
+ l[1] === "DOCUMENT"
1595
+ )
1596
+ return at;
1597
+ }
1598
+ let a = s(i), t = a && a(i);
1599
+ return {
1600
+ c() {
1601
+ t && t.c(), e = X(), this.c = T;
1602
+ },
1603
+ m(l, u) {
1604
+ t && t.m(l, u), M(l, e, u);
1605
+ },
1606
+ p(l, [u]) {
1607
+ a === (a = s(l)) && t ? t.p(l, u) : (t && t.d(1), t = a && a(l), t && (t.c(), t.m(e.parentNode, e)));
1608
+ },
1609
+ i: T,
1610
+ o: T,
1611
+ d(l) {
1612
+ t && t.d(l), l && g(e);
1613
+ }
1614
+ };
1615
+ }
1616
+ function ut(i, e, s) {
1617
+ let a, t, l, u;
1618
+ E(i, ae, (n) => s(1, a = n)), E(i, te, (n) => s(2, t = n)), E(i, _e, (n) => s(3, l = n)), E(i, Le, (n) => s(4, u = n));
1619
+ let { isCountingDown: o } = e;
1620
+ return i.$$set = (n) => {
1621
+ "isCountingDown" in n && s(0, o = n.isCountingDown);
1622
+ }, [o, a, t, l, u];
1623
+ }
1624
+ class nt extends H {
1625
+ constructor(e) {
1626
+ super(), P(
1627
+ this,
1628
+ {
1629
+ target: this.shadowRoot,
1630
+ props: G(this.attributes),
1631
+ customElement: !0
1632
+ },
1633
+ ut,
1634
+ it,
1635
+ F,
1636
+ { isCountingDown: 0 },
1637
+ null
1638
+ ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S()));
1639
+ }
1640
+ static get observedAttributes() {
1641
+ return ["isCountingDown"];
1642
+ }
1643
+ get isCountingDown() {
1644
+ return this.$$.ctx[0];
1645
+ }
1646
+ set isCountingDown(e) {
1647
+ this.$$set({ isCountingDown: e }), S();
1648
+ }
1649
+ }
1650
+ customElements.define("validation-alert", nt);
1651
+ export {
1652
+ lt as C,
1653
+ nt as V,
1654
+ Ze as W,
1655
+ Ue as a
1656
+ };