bry-biometric-collector 3.3.0-RC06 → 3.3.0-RC07

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 (22) hide show
  1. package/README.md +1 -1
  2. package/dist/CaptureBar_bbb41c40_3.3.0-RC07.js +893 -0
  3. package/dist/{DocumentCollector_ec54949a_3.3.0-RC06.js → DocumentCollector_39a1a662_3.3.0-RC07.js} +77 -76
  4. package/dist/{FaceCollector_d7b7f7c7_3.3.0-RC06.js → FaceCollector_5e696802_3.3.0-RC07.js} +12 -11
  5. package/dist/StreamCollector_89664342_3.3.0-RC07.js +348 -0
  6. package/dist/ValidationAlert_81eae4eb_3.3.0-RC07.js +847 -0
  7. package/dist/{___vite-browser-external_commonjs-proxy_ed53a62c_3.3.0-RC06.js → ___vite-browser-external_commonjs-proxy_d99dffb1_3.3.0-RC07.js} +1 -1
  8. package/dist/bry-biometric-collector-main.js +2 -2
  9. package/dist/{en-us_e83efd5d_3.3.0-RC06.js → en-us_c02e99cd_3.3.0-RC07.js} +3 -2
  10. package/dist/{es-cl_5939150a_3.3.0-RC06.js → es-cl_6f3eda53_3.3.0-RC07.js} +3 -2
  11. package/dist/{fingersApi_e3b0a904_3.3.0-RC06.js → fingersApi_0f644f7a_3.3.0-RC07.js} +2 -2
  12. package/dist/index.js +2 -2
  13. package/dist/{index_2611392a_3.3.0-RC06.js → index_8a654b33_3.3.0-RC07.js} +3 -3
  14. package/dist/{index_10ec837c_3.3.0-RC06.js → index_b0b3c37a_3.3.0-RC07.js} +3 -3
  15. package/dist/{main_1dfbf19c_3.3.0-RC06.js → main_866e3050_3.3.0-RC07.js} +6245 -6094
  16. package/dist/{pt-br_fae15356_3.3.0-RC06.js → pt-br_e7d46668_3.3.0-RC07.js} +9 -8
  17. package/dist/style.css +1 -1
  18. package/package.json +1 -1
  19. package/dist/ValidationAlert_ac046013_3.3.0-RC06.js +0 -1657
  20. /package/dist/{face_api_0e3ce8c8_3.3.0-RC06.js → face_api_0e3ce8c8_3.3.0-RC07.js} +0 -0
  21. /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC06.js → index-idlf-detector_39cfdffa_3.3.0-RC07.js} +0 -0
  22. /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC06.js → index-idlf-detector_a819b3c8_3.3.0-RC07.js} +0 -0
@@ -1,1657 +0,0 @@
1
- import { S as H, x as P, y as F, z as W, B as M, C as S, D as I, E as T, G as h, L as g, M as E, _ as _e, $ as le, bt as Y, bu as $, W as B, f as ae, bl as O, X as p, a2 as L, bv as x, a5 as b, bw as Q, a6 as C, b8 as R, a3 as ve, aa as ue, Y as X, ad as Ae, a$ as oe, Q as ee, ag as ie, I as V, J as k, K as Z, H as z, O as Le, bo as se, a1 as Ce, ar as Ie, P as q, b7 as U, bm as te, bx as ze, R as G, T as J, U as K, V as fe, aj as ke } from "./main_1dfbf19c_3.3.0-RC06.js";
2
- function ye(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 = Y(d, D[m]);
20
- return {
21
- c() {
22
- e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("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"), x(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
- x(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 Se(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 = Y(d, D[m]);
66
- return {
67
- c() {
68
- e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("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"), x(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
- x(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 Te(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 w = 0; w < m.length; w += 1)
111
- j = Y(j, m[w]);
112
- return {
113
- c() {
114
- e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("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"), x(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(w, v) {
117
- M(w, e, v), b(e, s), M(w, a, v), M(w, t, v), b(t, u), M(w, o, v), M(w, n, v), b(n, c), D || (d = R(
118
- n,
119
- "click",
120
- /*click_handler_5*/
121
- i[9]
122
- ), D = !0);
123
- },
124
- p(w, v) {
125
- x(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
- v & /*$$props*/
132
- 8 && /*$$props*/
133
- w[3]
134
- ])), v & /*$_*/
135
- 4 && l !== (l = /*$_*/
136
- w[2]("cameraStatus.biometricCapture") + "") && C(u, l), v & /*$_*/
137
- 4 && f !== (f = /*$_*/
138
- w[2]("cameraStatus.startCapture") + "") && C(c, f);
139
- },
140
- d(w) {
141
- w && g(e), w && g(a), w && g(t), w && g(o), w && g(n), D = !1, d();
142
- }
143
- };
144
- }
145
- function Ee(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, w, v, 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
- ], A = {};
164
- for (let r = 0; r < y.length; r += 1)
165
- A = Y(A, y[r]);
166
- return {
167
- c() {
168
- e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("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"), x(e, A), 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), w || (v = R(
172
- d,
173
- "click",
174
- /*click_handler_4*/
175
- i[8]
176
- ), w = !0);
177
- },
178
- p(r, N) {
179
- x(e, A = 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), w = !1, v();
198
- }
199
- };
200
- }
201
- function Oe(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, w, v, 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
- ], A = {};
220
- for (let r = 0; r < y.length; r += 1)
221
- A = Y(A, y[r]);
222
- return {
223
- c() {
224
- e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("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"), x(e, A), 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), w || (v = R(
228
- d,
229
- "click",
230
- /*click_handler_3*/
231
- i[7]
232
- ), w = !0);
233
- },
234
- p(r, N) {
235
- x(e, A = 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), w = !1, v();
254
- }
255
- };
256
- }
257
- function xe(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, w, v, 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
- ], A = {};
276
- for (let r = 0; r < y.length; r += 1)
277
- A = Y(A, y[r]);
278
- return {
279
- c() {
280
- e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("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"), x(e, A), 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), w || (v = R(
284
- d,
285
- "click",
286
- /*click_handler_2*/
287
- i[6]
288
- ), w = !0);
289
- },
290
- p(r, N) {
291
- x(e, A = 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), w = !1, v();
310
- }
311
- };
312
- }
313
- function Ye(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, w, v, 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
- ], A = {};
332
- for (let r = 0; r < y.length; r += 1)
333
- A = Y(A, y[r]);
334
- return {
335
- c() {
336
- e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("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"), x(e, A), 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), w || (v = R(
340
- d,
341
- "click",
342
- /*click_handler_1*/
343
- i[5]
344
- ), w = !0);
345
- },
346
- p(r, N) {
347
- x(e, A = 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), w = !1, v();
366
- }
367
- };
368
- }
369
- function Be(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, w, v, 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
- ], A = {};
388
- for (let r = 0; r < y.length; r += 1)
389
- A = Y(A, y[r]);
390
- return {
391
- c() {
392
- e = O("svg"), s = O("path"), a = p(), t = I("span"), u = L(l), o = p(), n = I("span"), c = L(f), D = p(), d = I("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"), x(e, A), 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), w || (v = R(
396
- d,
397
- "click",
398
- /*click_handler*/
399
- i[4]
400
- ), w = !0);
401
- },
402
- p(r, N) {
403
- x(e, A = 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), w = !1, v();
422
- }
423
- };
424
- }
425
- function Ue(i) {
426
- let e;
427
- function s(l, u) {
428
- if (
429
- /*$cameraStatusStore*/
430
- l[1] === B.CAMERA_DENIED_ERROR
431
- )
432
- return Be;
433
- if (
434
- /*$cameraStatusStore*/
435
- l[1] === B.DEVICE_NOT_FOUND_ERROR
436
- )
437
- return Ye;
438
- if (
439
- /*$cameraStatusStore*/
440
- l[1] === B.CAMERA_IN_USE_ERROR
441
- )
442
- return xe;
443
- if (
444
- /*$cameraStatusStore*/
445
- l[1] === B.CAMERA_CLOSED_ERROR
446
- )
447
- return Oe;
448
- if (
449
- /*$cameraStatusStore*/
450
- l[1] === B.CAMERA_UNSUPPORTED
451
- )
452
- return Ee;
453
- if (
454
- /*$cameraStatusStore*/
455
- l[1] === B.CAMERA_NOT_STARTED
456
- )
457
- return Te;
458
- if (
459
- /*$cameraStatusStore*/
460
- l[1] === B.CAMERA_ORIENTATION_PORTRAIT
461
- )
462
- return Se;
463
- if (
464
- /*$cameraStatusStore*/
465
- l[1] === B.CAMERA_ORIENTATION_LANDSCAPE
466
- )
467
- return ye;
468
- }
469
- let a = s(i), t = a && a(i);
470
- return {
471
- c() {
472
- e = I("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 Qe(i, e, s) {
488
- let a, t;
489
- E(i, _e, (d) => s(1, a = d)), E(i, le, (d) => s(2, t = d));
490
- let { handler: l = () => {
491
- } } = e;
492
- const u = () => {
493
- l(), ae("canicna", l);
494
- }, o = () => {
495
- l(), ae("canicna", l);
496
- }, n = () => {
497
- l(), ae("canicna", l);
498
- }, f = () => {
499
- l();
500
- }, c = () => {
501
- l();
502
- }, D = () => {
503
- l();
504
- };
505
- return i.$$set = (d) => {
506
- s(3, e = Y(Y({}, 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 Re extends H {
521
- constructor(e) {
522
- super(), P(
523
- this,
524
- {
525
- target: this.shadowRoot,
526
- props: W(this.attributes),
527
- customElement: !0
528
- },
529
- Qe,
530
- Ue,
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", Re);
547
- const Ve = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjgiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCA4NSAyNSIgZmlsbD0ibm9uZSIgb3BhY2l0eT0iMC4zNSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTI4LjMzNiAyMFY1LjdIMzQuMjc2QzM1LjIyMjcgNS43IDM2LjA0OTMgNS44NTMzMyAzNi43NTYgNi4xNkMzNy40NjI3IDYuNDY2NjcgMzguMDA5MyA2LjkgMzguMzk2IDcuNDZDMzguNzgyNyA4LjAyIDM4Ljk3NiA4LjY4IDM4Ljk3NiA5LjQ0QzM4Ljk3NiAxMC4xMzMzIDM4Ljc4MjcgMTAuNzUzMyAzOC4zOTYgMTEuM0MzOC4wMDkzIDExLjgzMzMgMzcuNDYyNyAxMi4yNTMzIDM2Ljc1NiAxMi41NkMzNi4wNDkzIDEyLjg2NjcgMzUuMjIyNyAxMy4wMiAzNC4yNzYgMTMuMDJIMzEuMjM2VjEySDM0LjQ1NkMzNS40ODI3IDEyIDM2LjM3NiAxMi4xNiAzNy4xMzYgMTIuNDhDMzcuOTA5MyAxMi43ODY3IDM4LjUwOTMgMTMuMjMzMyAzOC45MzYgMTMuODJDMzkuMzc2IDE0LjM5MzMgMzkuNTk2IDE1LjA4IDM5LjU5NiAxNS44OEMzOS41OTYgMTYuNjkzMyAzOS4zODI3IDE3LjQxMzMgMzguOTU2IDE4LjA0QzM4LjUyOTQgMTguNjY2NyAzNy45MjkzIDE5LjE1MzMgMzcuMTU2IDE5LjVDMzYuMzgyNyAxOS44MzMzIDM1LjQ4MjcgMjAgMzQuNDU2IDIwSDI4LjMzNlpNMzEuMDM2IDE3Ljc0SDM0LjQ3NkMzNS4yMDkzIDE3Ljc0IDM1Ljc4OTMgMTcuNTY2NyAzNi4yMTYgMTcuMjJDMzYuNjQyNyAxNi44NiAzNi44NTYgMTYuMzYgMzYuODU2IDE1LjcyQzM2Ljg1NiAxNS4xMDY3IDM2LjY0MjcgMTQuNjMzMyAzNi4yMTYgMTQuM0MzNS43ODkzIDEzLjk1MzMgMzUuMjA5MyAxMy43OCAzNC40NzYgMTMuNzhIMzAuODM2VjExLjU2SDM0LjEzNkMzNC43ODkzIDExLjU2IDM1LjMwMjcgMTEuNCAzNS42NzYgMTEuMDhDMzYuMDYyNyAxMC43NDY3IDM2LjI1NiAxMC4yOTMzIDM2LjI1NiA5LjcyQzM2LjI1NiA5LjE2IDM2LjA2MjcgOC43MjY2NyAzNS42NzYgOC40MkMzNS4zMDI3IDguMTEzMzMgMzQuNzg5MyA3Ljk2IDM0LjEzNiA3Ljk2SDMxLjAzNlYxNy43NFpNNDcuODMyMSA5Ljc2VjEyLjE2SDQ3LjI5MjFDNDYuNjY1NCAxMi4xNiA0Ni4xMjU0IDEyLjI4NjcgNDUuNjcyMSAxMi41NEM0NS4yMTg4IDEyLjc4IDQ0Ljg1ODggMTMuMTYgNDQuNTkyMSAxMy42OEM0NC4zMzg4IDE0LjIgNDQuMjEyMSAxNC44NzMzIDQ0LjIxMjEgMTUuN1YyMEg0MS41NzIxVjkuOTRINDQuMTkyMVYxMy4ySDQzLjg3MjFDNDMuOTkyMSAxMi4zMDY3IDQ0LjIzODggMTEuNjEzMyA0NC42MTIxIDExLjEyQzQ0Ljk5ODggMTAuNjI2NyA0NS40NDU0IDEwLjI4IDQ1Ljk1MjEgMTAuMDhDNDYuNDcyMSA5Ljg2NjY3IDQ2Ljk3ODggOS43NiA0Ny40NzIxIDkuNzZINDcuODMyMVpNNTcuMjAwOSA5Ljk0SDU5Ljg2MDlMNTUuMDgwOSAyMS4xNkM1NC42OTQyIDIyLjA1MzMgNTQuMjA3NSAyMi43MjY3IDUzLjYyMDkgMjMuMThDNTMuMDM0MiAyMy42NDY3IDUyLjI1NDIgMjMuODggNTEuMjgwOSAyMy44OEg0OS45ODA5VjIxLjcySDUxLjE0MDlDNTEuNTQwOSAyMS43MiA1MS44NzQyIDIxLjYyNjcgNTIuMTQwOSAyMS40NEM1Mi40MjA5IDIxLjI2NjcgNTIuNjQwOSAyMC45ODY3IDUyLjgwMDkgMjAuNkw1My4wMjA5IDIwLjAyTDQ4LjcyMDkgOS45NEg1MS40NjA5TDU0Ljc0MDkgMTguNTJINTMuODgwOUw1Ny4yMDA5IDkuOTRaTTY3LjkwMzUgMjBINjUuMjYzNVY5Ljk0SDY3LjkwMzVWMjBaTTY2LjU4MzUgOC4yQzY2LjE0MzUgOC4yIDY1Ljc2MzUgOC4wNTMzMyA2NS40NDM1IDcuNzZDNjUuMTM2OCA3LjQ1MzMzIDY0Ljk4MzUgNy4wODY2NyA2NC45ODM1IDYuNjZDNjQuOTgzNSA2LjIwNjY3IDY1LjEzNjggNS44MzMzMyA2NS40NDM1IDUuNTRDNjUuNzYzNSA1LjI0NjY3IDY2LjE0MzUgNS4xIDY2LjU4MzUgNS4xQzY3LjAzNjggNS4xIDY3LjQxNjggNS4yNTMzMyA2Ny43MjM1IDUuNTZDNjguMDMwMiA1Ljg1MzMzIDY4LjE4MzUgNi4yMiA2OC4xODM1IDYuNjZDNjguMTgzNSA3LjA4NjY3IDY4LjAzMDIgNy40NTMzMyA2Ny43MjM1IDcuNzZDNjcuNDE2OCA4LjA1MzMzIDY3LjAzNjggOC4yIDY2LjU4MzUgOC4yWk03MC41MDQgMjBWNS43SDc1LjUwNEM3Ny4wMzczIDUuNyA3OC4zNzczIDYuMDA2NjcgNzkuNTI0IDYuNjJDODAuNjg0IDcuMjIgODEuNTg0IDguMDYgODIuMjI0IDkuMTRDODIuODc3MyAxMC4yMDY3IDgzLjIwNCAxMS40NCA4My4yMDQgMTIuODRDODMuMjA0IDE0LjI0IDgyLjg3NzMgMTUuNDggODIuMjI0IDE2LjU2QzgxLjU4NCAxNy42MjY3IDgwLjY4NCAxOC40NjY3IDc5LjUyNCAxOS4wOEM3OC4zNzczIDE5LjY5MzMgNzcuMDM3MyAyMCA3NS41MDQgMjBINzAuNTA0Wk03My4yMDQgMTcuN0g3NS41MDRDNzYuNTA0IDE3LjcgNzcuMzY0IDE3LjUgNzguMDg0IDE3LjFDNzguODE3MyAxNi43IDc5LjM3NzMgMTYuMTQgNzkuNzY0IDE1LjQyQzgwLjE2NCAxNC42ODY3IDgwLjM2NCAxMy44MjY3IDgwLjM2NCAxMi44NEM4MC4zNjQgMTEuODUzMyA4MC4xNjQgMTEgNzkuNzY0IDEwLjI4Qzc5LjM3NzMgOS41NDY2NyA3OC44MTczIDguOTg2NjcgNzguMDg0IDguNkM3Ny4zNjQgOC4yIDc2LjUwNCA4IDc1LjUwNCA4SDczLjIwNFYxNy43WiIgZmlsbD0id2hpdGUiLz4KPGNpcmNsZSBjeD0iMTAiIGN5PSIxMy4zMDYyIiByPSI0IiBmaWxsPSJ3aGl0ZSIvPgo8Y2lyY2xlIGN4PSI5Ljk1OTA1IiBjeT0iMTMuMjUyIiByPSI2Ljc1MjAyIiBzdHJva2U9IndoaXRlIi8+CjxwYXRoIGQ9Ik01LjQ3OTE5IDRIMy4xMzI5NUMxLjk1NDk1IDQgMSA0Ljk1NDk1IDEgNi4xMzI5NVY4LjQ3OTE5TTE0LjQzNzYgNEgxNi43ODM4QzE3Ljk2MTggNCAxOC45MTY3IDQuOTU0OTUgMTguOTE2NyA2LjEzMjk1VjguNDc5MTlNMTguOTE2NyAxNy40Mzc2VjE5Ljc4MzhDMTguOTE2NyAyMC45NjE4IDE3Ljk2MTggMjEuOTE2NyAxNi43ODM4IDIxLjkxNjdIMTQuNDM3Nk01LjQ3OTE5IDIxLjkxNjdIMy4xMzI5NUMxLjk1NDk1IDIxLjkxNjcgMSAyMC45NjE4IDEgMTkuNzgzOFYxNy40Mzc2IiBzdHJva2U9IndoaXRlIi8+Cjwvc3ZnPgo=";
548
- function Ze(i) {
549
- let e, s, a, t;
550
- return {
551
- c() {
552
- e = I("div"), s = I("img"), this.c = T, ve(s.src, a = Ve) || h(s, "src", a), h(s, "alt", "BryID"), h(e, "class", t = /*$collectorSelect*/
553
- i[0] === "DOCUMENT" ? "absolute inset-0 flex justify-end items-end mb-2 mr-2" : "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-end items-end mb-2 mr-2" : "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 He(i, e, s) {
571
- let a;
572
- return E(i, ue, (t) => s(0, a = t)), [a];
573
- }
574
- class Pe extends H {
575
- constructor(e) {
576
- super(), P(
577
- this,
578
- {
579
- target: this.shadowRoot,
580
- props: W(this.attributes),
581
- customElement: !0
582
- },
583
- He,
584
- Ze,
585
- F,
586
- {},
587
- null
588
- ), e && e.target && M(e.target, this, e.anchor);
589
- }
590
- }
591
- customElements.define("water-mark", Pe);
592
- function Fe(i) {
593
- let e;
594
- return {
595
- c() {
596
- e = I("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 We(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 = Y(f, n[c]);
618
- return {
619
- c() {
620
- e = I("div"), s = I("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"), x(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
- x(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 Ge(i) {
650
- let e;
651
- function s(l, u) {
652
- return (
653
- /*show*/
654
- l[0] && /*$cameraDevicesStore*/
655
- l[1].length > 1 ? We : Fe
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 Je(i, e, s) {
677
- let a, t;
678
- E(i, Ae, (o) => s(1, a = o)), E(i, oe, (o) => s(2, t = o));
679
- let { show: l } = e;
680
- const u = () => {
681
- ee(oe, t = !t, t);
682
- };
683
- return i.$$set = (o) => {
684
- s(3, e = Y(Y({}, e), $(o))), "show" in o && s(0, l = o.show);
685
- }, e = $(e), [l, a, t, e, u];
686
- }
687
- class ne extends H {
688
- constructor(e) {
689
- super(), P(
690
- this,
691
- {
692
- target: this.shadowRoot,
693
- props: W(this.attributes),
694
- customElement: !0
695
- },
696
- Je,
697
- Ge,
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", ne);
714
- function Ke(i) {
715
- let e, s = (
716
- /*$_*/
717
- i[0]("buttons.startCapture") + ""
718
- ), a, t, l;
719
- return {
720
- c() {
721
- e = I("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 Xe(i, e, s) {
744
- let a, t;
745
- E(i, ie, (o) => s(3, a = o)), E(i, le, (o) => s(0, t = o));
746
- function l() {
747
- ee(ie, a = !0, a);
748
- }
749
- return [t, l, () => l()];
750
- }
751
- class pe extends H {
752
- constructor(e) {
753
- super(), P(
754
- this,
755
- {
756
- target: this.shadowRoot,
757
- props: W(this.attributes),
758
- customElement: !0
759
- },
760
- Xe,
761
- Ke,
762
- F,
763
- {},
764
- null
765
- ), e && e.target && M(e.target, this, e.anchor);
766
- }
767
- }
768
- customElements.define("start-auto-capture-btn", pe);
769
- function qe(i) {
770
- let e, s = (
771
- /*$_*/
772
- i[3]("faceCollector.capture") + ""
773
- ), a, t, l;
774
- return {
775
- c() {
776
- e = I("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 $e(i, e, s) {
805
- let a;
806
- E(i, le, (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 re extends H {
815
- constructor(e) {
816
- super(), P(
817
- this,
818
- {
819
- target: this.shadowRoot,
820
- props: W(this.attributes),
821
- customElement: !0
822
- },
823
- $e,
824
- qe,
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", re);
853
- function et(i) {
854
- let e, s, a, t, l = (
855
- /*$ready*/
856
- i[13] && ce(i)
857
- ), u = (
858
- /*$ready*/
859
- i[13] && Me(i)
860
- ), o = (
861
- /*$ready*/
862
- i[13] && me(i)
863
- );
864
- return {
865
- c() {
866
- e = I("div"), l && l.c(), s = p(), u && u.c(), a = p(), o && o.c(), h(e, "class", "w-full flex justify-between items-center px-2"), U(e, "background-color", "rgba(" + te(
867
- /*videoOverlay*/
868
- i[5]
869
- ) + ", " + (1 - /*videoOverlayTransparency*/
870
- i[6] / 100) + ")"), U(
871
- e,
872
- "height",
873
- /*$captureBarHeight*/
874
- i[11] + "px"
875
- ), U(
876
- e,
877
- "max-height",
878
- /*$captureBarHeight*/
879
- i[11] + "px"
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 = ce(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 = Me(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 = me(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(" + te(
900
- /*videoOverlay*/
901
- n[5]
902
- ) + ", " + (1 - /*videoOverlayTransparency*/
903
- n[6] / 100) + ")"), (!t || f & /*$captureBarHeight*/
904
- 2048) && U(
905
- e,
906
- "height",
907
- /*$captureBarHeight*/
908
- n[11] + "px"
909
- ), (!t || f & /*$captureBarHeight*/
910
- 2048) && U(
911
- e,
912
- "max-height",
913
- /*$captureBarHeight*/
914
- n[11] + "px"
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 tt(i) {
929
- let e, s, a, t, l, u = (
930
- /*$ready*/
931
- i[13] && ge(i)
932
- ), o = (
933
- /*showAutoCaptureButton*/
934
- i[1] && !/*$automaticCapture*/
935
- i[14] && !/*showCaptureButton*/
936
- i[2] && /*$ready*/
937
- i[13] && Ne()
938
- ), n = (
939
- /*showCaptureButton*/
940
- i[2] && /*$ready*/
941
- i[13] && de(i)
942
- ), f = (
943
- /*$ready*/
944
- i[13] && he(i)
945
- );
946
- return {
947
- c() {
948
- e = I("div"), u && u.c(), s = p(), o && o.c(), a = p(), n && n.c(), t = p(), f && f.c(), h(e, "class", "w-full flex justify-between items-center px-2"), U(e, "background-color", "rgba(" + te(
949
- /*videoOverlay*/
950
- i[5]
951
- ) + ", " + (1 - /*videoOverlayTransparency*/
952
- i[6] / 100) + ")"), U(
953
- e,
954
- "height",
955
- /*$captureBarHeight*/
956
- i[11] + "px"
957
- ), U(
958
- e,
959
- "max-height",
960
- /*$captureBarHeight*/
961
- i[11] + "px"
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 = ge(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 = Ne(), 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 = de(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 = he(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(" + te(
990
- /*videoOverlay*/
991
- c[5]
992
- ) + ", " + (1 - /*videoOverlayTransparency*/
993
- c[6] / 100) + ")"), (!l || D & /*$captureBarHeight*/
994
- 2048) && U(
995
- e,
996
- "height",
997
- /*$captureBarHeight*/
998
- c[11] + "px"
999
- ), (!l || D & /*$captureBarHeight*/
1000
- 2048) && U(
1001
- e,
1002
- "max-height",
1003
- /*$captureBarHeight*/
1004
- c[11] + "px"
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 ce(i) {
1019
- let e, s;
1020
- return e = new ze({
1021
- props: { show: (
1022
- /*showConfigButton*/
1023
- i[0]
1024
- ) }
1025
- }), {
1026
- c() {
1027
- G(e.$$.fragment);
1028
- },
1029
- m(a, t) {
1030
- J(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 Me(i) {
1050
- let e, s;
1051
- return e = new re({
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
- G(e.$$.fragment);
1065
- },
1066
- m(a, t) {
1067
- J(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 me(i) {
1089
- let e, s;
1090
- return e = new ne({
1091
- props: { show: (
1092
- /*showCameraButton*/
1093
- i[3]
1094
- ) }
1095
- }), {
1096
- c() {
1097
- G(e.$$.fragment);
1098
- },
1099
- m(a, t) {
1100
- J(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 ge(i) {
1120
- let e, s;
1121
- return e = new ze({
1122
- props: { show: (
1123
- /*showConfigButton*/
1124
- i[0]
1125
- ) }
1126
- }), {
1127
- c() {
1128
- G(e.$$.fragment);
1129
- },
1130
- m(a, t) {
1131
- J(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 Ne(i) {
1151
- let e, s;
1152
- return e = new pe({}), {
1153
- c() {
1154
- G(e.$$.fragment);
1155
- },
1156
- m(a, t) {
1157
- J(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 de(i) {
1171
- let e, s;
1172
- return e = new re({
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 || fe() && /*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
- G(e.$$.fragment);
1194
- },
1195
- m(a, t) {
1196
- J(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 || fe() && /*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 he(i) {
1226
- let e, s;
1227
- return e = new ne({
1228
- props: { show: (
1229
- /*showCameraButton*/
1230
- i[3]
1231
- ) }
1232
- }), {
1233
- c() {
1234
- G(e.$$.fragment);
1235
- },
1236
- m(a, t) {
1237
- J(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 lt(i) {
1257
- let e, s, a, t;
1258
- const l = [tt, et], u = [];
1259
- function o(n, f) {
1260
- return (
1261
- /*$collectorSelect*/
1262
- n[12] === "FACE" || /*$collectorSelect*/
1263
- n[12] === "BOTH" ? 0 : (
1264
- /*$collectorSelect*/
1265
- n[12] === "DOCUMENT" ? 1 : -1
1266
- )
1267
- );
1268
- }
1269
- return ~(e = o(i)) && (s = u[e] = l[e](i)), {
1270
- c() {
1271
- s && s.c(), a = X(), this.c = T;
1272
- },
1273
- m(n, f) {
1274
- ~e && u[e].m(n, f), M(n, a, f), t = !0;
1275
- },
1276
- p(n, [f]) {
1277
- let c = e;
1278
- e = o(n), e === c ? ~e && u[e].p(n, f) : (s && (V(), k(u[c], 1, 1, () => {
1279
- u[c] = null;
1280
- }), 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);
1281
- },
1282
- i(n) {
1283
- t || (z(s), t = !0);
1284
- },
1285
- o(n) {
1286
- k(s), t = !1;
1287
- },
1288
- d(n) {
1289
- ~e && u[e].d(n), n && g(a);
1290
- }
1291
- };
1292
- }
1293
- function at(i, e, s) {
1294
- let a, t, l, u, o, n, f;
1295
- E(i, Le, (_) => s(17, a = _)), E(i, se, (_) => s(11, t = _)), E(i, ue, (_) => s(12, l = _)), E(i, Ce, (_) => s(13, u = _)), E(i, ie, (_) => s(14, o = _)), E(i, Ie, (_) => s(15, n = _)), E(i, _e, (_) => s(16, f = _));
1296
- let { showConfigButton: c = null } = e, { showAutoCaptureButton: D = null } = e, { showCaptureButton: d = null } = e, { showCameraButton: m = null } = e, { enableCaptureButton: j = null } = e, { videoOverlay: w = "" } = e, { videoOverlayTransparency: v = 100 } = e, { idrndClosed: y = null } = e, { idrndLoading: A = null } = e, { waitingIdrndCaptureEvent: r = null } = e, { handler: N = () => {
1297
- } } = e;
1298
- return i.$$set = (_) => {
1299
- "showConfigButton" in _ && s(0, c = _.showConfigButton), "showAutoCaptureButton" in _ && s(1, D = _.showAutoCaptureButton), "showCaptureButton" in _ && s(2, d = _.showCaptureButton), "showCameraButton" in _ && s(3, m = _.showCameraButton), "enableCaptureButton" in _ && s(4, j = _.enableCaptureButton), "videoOverlay" in _ && s(5, w = _.videoOverlay), "videoOverlayTransparency" in _ && s(6, v = _.videoOverlayTransparency), "idrndClosed" in _ && s(7, y = _.idrndClosed), "idrndLoading" in _ && s(8, A = _.idrndLoading), "waitingIdrndCaptureEvent" in _ && s(9, r = _.waitingIdrndCaptureEvent), "handler" in _ && s(10, N = _.handler);
1300
- }, i.$$.update = () => {
1301
- i.$$.dirty & /*$videoStore*/
1302
- 131072 && a && (q() ? ee(se, t = Math.round(a.videoHeight * 0.25), t) : ee(se, t = Math.round(a.videoHeight * 0.15), t));
1303
- }, [
1304
- c,
1305
- D,
1306
- d,
1307
- m,
1308
- j,
1309
- w,
1310
- v,
1311
- y,
1312
- A,
1313
- r,
1314
- N,
1315
- t,
1316
- l,
1317
- u,
1318
- o,
1319
- n,
1320
- f,
1321
- a
1322
- ];
1323
- }
1324
- class st extends H {
1325
- constructor(e) {
1326
- super(), P(
1327
- this,
1328
- {
1329
- target: this.shadowRoot,
1330
- props: W(this.attributes),
1331
- customElement: !0
1332
- },
1333
- at,
1334
- lt,
1335
- F,
1336
- {
1337
- showConfigButton: 0,
1338
- showAutoCaptureButton: 1,
1339
- showCaptureButton: 2,
1340
- showCameraButton: 3,
1341
- enableCaptureButton: 4,
1342
- videoOverlay: 5,
1343
- videoOverlayTransparency: 6,
1344
- idrndClosed: 7,
1345
- idrndLoading: 8,
1346
- waitingIdrndCaptureEvent: 9,
1347
- handler: 10
1348
- },
1349
- null
1350
- ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S()));
1351
- }
1352
- static get observedAttributes() {
1353
- return [
1354
- "showConfigButton",
1355
- "showAutoCaptureButton",
1356
- "showCaptureButton",
1357
- "showCameraButton",
1358
- "enableCaptureButton",
1359
- "videoOverlay",
1360
- "videoOverlayTransparency",
1361
- "idrndClosed",
1362
- "idrndLoading",
1363
- "waitingIdrndCaptureEvent",
1364
- "handler"
1365
- ];
1366
- }
1367
- get showConfigButton() {
1368
- return this.$$.ctx[0];
1369
- }
1370
- set showConfigButton(e) {
1371
- this.$$set({ showConfigButton: e }), S();
1372
- }
1373
- get showAutoCaptureButton() {
1374
- return this.$$.ctx[1];
1375
- }
1376
- set showAutoCaptureButton(e) {
1377
- this.$$set({ showAutoCaptureButton: e }), S();
1378
- }
1379
- get showCaptureButton() {
1380
- return this.$$.ctx[2];
1381
- }
1382
- set showCaptureButton(e) {
1383
- this.$$set({ showCaptureButton: e }), S();
1384
- }
1385
- get showCameraButton() {
1386
- return this.$$.ctx[3];
1387
- }
1388
- set showCameraButton(e) {
1389
- this.$$set({ showCameraButton: e }), S();
1390
- }
1391
- get enableCaptureButton() {
1392
- return this.$$.ctx[4];
1393
- }
1394
- set enableCaptureButton(e) {
1395
- this.$$set({ enableCaptureButton: e }), S();
1396
- }
1397
- get videoOverlay() {
1398
- return this.$$.ctx[5];
1399
- }
1400
- set videoOverlay(e) {
1401
- this.$$set({ videoOverlay: e }), S();
1402
- }
1403
- get videoOverlayTransparency() {
1404
- return this.$$.ctx[6];
1405
- }
1406
- set videoOverlayTransparency(e) {
1407
- this.$$set({ videoOverlayTransparency: e }), S();
1408
- }
1409
- get idrndClosed() {
1410
- return this.$$.ctx[7];
1411
- }
1412
- set idrndClosed(e) {
1413
- this.$$set({ idrndClosed: e }), S();
1414
- }
1415
- get idrndLoading() {
1416
- return this.$$.ctx[8];
1417
- }
1418
- set idrndLoading(e) {
1419
- this.$$set({ idrndLoading: e }), S();
1420
- }
1421
- get waitingIdrndCaptureEvent() {
1422
- return this.$$.ctx[9];
1423
- }
1424
- set waitingIdrndCaptureEvent(e) {
1425
- this.$$set({ waitingIdrndCaptureEvent: e }), S();
1426
- }
1427
- get handler() {
1428
- return this.$$.ctx[10];
1429
- }
1430
- set handler(e) {
1431
- this.$$set({ handler: e }), S();
1432
- }
1433
- }
1434
- customElements.define("capture-bar", st);
1435
- function it(i) {
1436
- let e, s, a = (
1437
- /*isCountingDown*/
1438
- i[0] && De(i)
1439
- ), t = (
1440
- /*$enableFaceApi*/
1441
- i[3] && !/*isCountingDown*/
1442
- i[0] && /*$faceValidationAlert*/
1443
- i[4] && je(i)
1444
- );
1445
- return {
1446
- c() {
1447
- a && a.c(), e = p(), t && t.c(), s = X();
1448
- },
1449
- m(l, u) {
1450
- a && a.m(l, u), M(l, e, u), t && t.m(l, u), M(l, s, u);
1451
- },
1452
- p(l, u) {
1453
- /*isCountingDown*/
1454
- l[0] ? a ? a.p(l, u) : (a = De(l), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), /*$enableFaceApi*/
1455
- l[3] && !/*isCountingDown*/
1456
- l[0] && /*$faceValidationAlert*/
1457
- l[4] ? t ? t.p(l, u) : (t = je(l), t.c(), t.m(s.parentNode, s)) : t && (t.d(1), t = null);
1458
- },
1459
- d(l) {
1460
- a && a.d(l), l && g(e), t && t.d(l), l && g(s);
1461
- }
1462
- };
1463
- }
1464
- function ut(i) {
1465
- let e, s, a = (
1466
- /*isCountingDown*/
1467
- i[0] && be(i)
1468
- ), t = (
1469
- /*$enableFaceApi*/
1470
- i[3] && !/*isCountingDown*/
1471
- i[0] && /*$faceValidationAlert*/
1472
- i[4] && we(i)
1473
- );
1474
- return {
1475
- c() {
1476
- a && a.c(), e = p(), t && t.c(), s = X();
1477
- },
1478
- m(l, u) {
1479
- a && a.m(l, u), M(l, e, u), t && t.m(l, u), M(l, s, u);
1480
- },
1481
- p(l, u) {
1482
- /*isCountingDown*/
1483
- l[0] ? a ? a.p(l, u) : (a = be(l), a.c(), a.m(e.parentNode, e)) : a && (a.d(1), a = null), /*$enableFaceApi*/
1484
- l[3] && !/*isCountingDown*/
1485
- l[0] && /*$faceValidationAlert*/
1486
- l[4] ? t ? t.p(l, u) : (t = we(l), t.c(), t.m(s.parentNode, s)) : t && (t.d(1), t = null);
1487
- },
1488
- d(l) {
1489
- a && a.d(l), l && g(e), t && t.d(l), l && g(s);
1490
- }
1491
- };
1492
- }
1493
- function De(i) {
1494
- let e, s = (
1495
- /*$_*/
1496
- i[2]("faceCollector.stayStill") + ""
1497
- ), a;
1498
- return {
1499
- c() {
1500
- e = I("span"), a = L(s), h(e, "class", "absolute flex items-center justify-center h-[2em] bg-[#202327] text-white rounded-3xl text-xl xl:text-base px-4 min-w-[10em] max-w-[20em] z-50 " + (q() ? "top-[6%]" : "top-[4.5%]"));
1501
- },
1502
- m(t, l) {
1503
- M(t, e, l), b(e, a);
1504
- },
1505
- p(t, l) {
1506
- l & /*$_*/
1507
- 4 && s !== (s = /*$_*/
1508
- t[2]("faceCollector.stayStill") + "") && C(a, s);
1509
- },
1510
- d(t) {
1511
- t && g(e);
1512
- }
1513
- };
1514
- }
1515
- function je(i) {
1516
- let e, s = (
1517
- /*$_*/
1518
- i[2](`${/*$faceValidationAlert*/
1519
- i[4]}`) + ""
1520
- ), a;
1521
- return {
1522
- c() {
1523
- e = I("span"), a = L(s), h(e, "class", "absolute flex items-center justify-center h-[2em] bg-[#202327] text-white rounded-3xl text-xl xl:text-base px-4 min-w-[10em] max-w-[20em] z-50 " + (q() ? "top-[6%]" : "top-[4.5%]"));
1524
- },
1525
- m(t, l) {
1526
- M(t, e, l), b(e, a);
1527
- },
1528
- p(t, l) {
1529
- l & /*$_, $faceValidationAlert*/
1530
- 20 && s !== (s = /*$_*/
1531
- t[2](`${/*$faceValidationAlert*/
1532
- t[4]}`) + "") && C(a, s);
1533
- },
1534
- d(t) {
1535
- t && g(e);
1536
- }
1537
- };
1538
- }
1539
- function be(i) {
1540
- let e, s = (
1541
- /*$_*/
1542
- i[2]("faceCollector.stayStill") + ""
1543
- ), a;
1544
- return {
1545
- c() {
1546
- e = I("span"), a = L(s), h(e, "class", "absolute flex items-center justify-center h-[2em] bg-[#202327] text-white rounded-3xl text-xl xl:text-base px-4 min-w-[10em] max-w-[20em] z-50 " + (q() ? "top-[6.5%]" : "top-[3%]"));
1547
- },
1548
- m(t, l) {
1549
- M(t, e, l), b(e, a);
1550
- },
1551
- p(t, l) {
1552
- l & /*$_*/
1553
- 4 && s !== (s = /*$_*/
1554
- t[2]("faceCollector.stayStill") + "") && C(a, s);
1555
- },
1556
- d(t) {
1557
- t && g(e);
1558
- }
1559
- };
1560
- }
1561
- function we(i) {
1562
- let e, s = (
1563
- /*$_*/
1564
- i[2](`${/*$faceValidationAlert*/
1565
- i[4]}`) + ""
1566
- ), a;
1567
- return {
1568
- c() {
1569
- e = I("span"), a = L(s), h(e, "class", "absolute flex items-center justify-center h-[2em] bg-[#202327] text-white rounded-3xl text-xl xl:text-base px-4 min-w-[10em] max-w-[20em] z-50 " + (q() ? "top-[6.5%]" : "top-[3%]"));
1570
- },
1571
- m(t, l) {
1572
- M(t, e, l), b(e, a);
1573
- },
1574
- p(t, l) {
1575
- l & /*$_, $faceValidationAlert*/
1576
- 20 && s !== (s = /*$_*/
1577
- t[2](`${/*$faceValidationAlert*/
1578
- t[4]}`) + "") && C(a, s);
1579
- },
1580
- d(t) {
1581
- t && g(e);
1582
- }
1583
- };
1584
- }
1585
- function nt(i) {
1586
- let e;
1587
- function s(l, u) {
1588
- if (
1589
- /*$collectorSelect*/
1590
- l[1] === "FACE"
1591
- )
1592
- return ut;
1593
- if (
1594
- /*$collectorSelect*/
1595
- l[1] === "DOCUMENT"
1596
- )
1597
- return it;
1598
- }
1599
- let a = s(i), t = a && a(i);
1600
- return {
1601
- c() {
1602
- t && t.c(), e = X(), this.c = T;
1603
- },
1604
- m(l, u) {
1605
- t && t.m(l, u), M(l, e, u);
1606
- },
1607
- p(l, [u]) {
1608
- 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)));
1609
- },
1610
- i: T,
1611
- o: T,
1612
- d(l) {
1613
- t && t.d(l), l && g(e);
1614
- }
1615
- };
1616
- }
1617
- function rt(i, e, s) {
1618
- let a, t, l, u;
1619
- E(i, ue, (n) => s(1, a = n)), E(i, le, (n) => s(2, t = n)), E(i, Ie, (n) => s(3, l = n)), E(i, ke, (n) => s(4, u = n));
1620
- let { isCountingDown: o } = e;
1621
- return i.$$set = (n) => {
1622
- "isCountingDown" in n && s(0, o = n.isCountingDown);
1623
- }, [o, a, t, l, u];
1624
- }
1625
- class ot extends H {
1626
- constructor(e) {
1627
- super(), P(
1628
- this,
1629
- {
1630
- target: this.shadowRoot,
1631
- props: W(this.attributes),
1632
- customElement: !0
1633
- },
1634
- rt,
1635
- nt,
1636
- F,
1637
- { isCountingDown: 0 },
1638
- null
1639
- ), e && (e.target && M(e.target, this, e.anchor), e.props && (this.$set(e.props), S()));
1640
- }
1641
- static get observedAttributes() {
1642
- return ["isCountingDown"];
1643
- }
1644
- get isCountingDown() {
1645
- return this.$$.ctx[0];
1646
- }
1647
- set isCountingDown(e) {
1648
- this.$$set({ isCountingDown: e }), S();
1649
- }
1650
- }
1651
- customElements.define("validation-alert", ot);
1652
- export {
1653
- st as C,
1654
- ot as V,
1655
- Pe as W,
1656
- Re as a
1657
- };