bry-biometric-collector 3.3.0-RC07 → 3.3.0-RC09

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 (27) hide show
  1. package/README.md +42 -0
  2. package/dist/CaptureBar_1cc7f43c_3.3.0-RC09.js +847 -0
  3. package/dist/{DocumentCollector_39a1a662_3.3.0-RC07.js → DocumentCollector_7823ce59_3.3.0-RC09.js} +52 -52
  4. package/dist/FaceCollector_0816a7ab_3.3.0-RC09.js +2260 -0
  5. package/dist/FaceOval_5296d98c_3.3.0-RC09.js +212 -0
  6. package/dist/StreamCollector_ce8ceb79_3.3.0-RC09.js +335 -0
  7. package/dist/ValidationAlert_a0e7de22_3.3.0-RC09.js +974 -0
  8. package/dist/{___vite-browser-external_commonjs-proxy_d99dffb1_3.3.0-RC07.js → ___vite-browser-external_commonjs-proxy_68c5c4f2_3.3.0-RC09.js} +1 -1
  9. package/dist/bry-biometric-collector-main.js +2 -2
  10. package/dist/{fingersApi_0f644f7a_3.3.0-RC07.js → fingersApi_30d9a5ce_3.3.0-RC09.js} +2 -2
  11. package/dist/index.d.ts +3 -1
  12. package/dist/index.js +2 -2
  13. package/dist/{index_8a654b33_3.3.0-RC07.js → index_8e78a016_3.3.0-RC09.js} +3 -3
  14. package/dist/{index_b0b3c37a_3.3.0-RC07.js → index_c9f76cd7_3.3.0-RC09.js} +3 -3
  15. package/dist/{main_866e3050_3.3.0-RC07.js → main_bb8df2d0_3.3.0-RC09.js} +3478 -3469
  16. package/dist/style.css +1 -1
  17. package/package.json +1 -1
  18. package/dist/CaptureBar_bbb41c40_3.3.0-RC07.js +0 -893
  19. package/dist/FaceCollector_5e696802_3.3.0-RC07.js +0 -2391
  20. package/dist/StreamCollector_89664342_3.3.0-RC07.js +0 -348
  21. package/dist/ValidationAlert_81eae4eb_3.3.0-RC07.js +0 -847
  22. /package/dist/{en-us_c02e99cd_3.3.0-RC07.js → en-us_c02e99cd_3.3.0-RC09.js} +0 -0
  23. /package/dist/{es-cl_6f3eda53_3.3.0-RC07.js → es-cl_6f3eda53_3.3.0-RC09.js} +0 -0
  24. /package/dist/{face_api_0e3ce8c8_3.3.0-RC07.js → face_api_0e3ce8c8_3.3.0-RC09.js} +0 -0
  25. /package/dist/{index-idlf-detector_39cfdffa_3.3.0-RC07.js → index-idlf-detector_39cfdffa_3.3.0-RC09.js} +0 -0
  26. /package/dist/{index-idlf-detector_a819b3c8_3.3.0-RC07.js → index-idlf-detector_a819b3c8_3.3.0-RC09.js} +0 -0
  27. /package/dist/{pt-br_e7d46668_3.3.0-RC07.js → pt-br_e7d46668_3.3.0-RC09.js} +0 -0
@@ -1,847 +0,0 @@
1
- import { S as W, x as X, y as Y, z as J, B as o, C as I, D as k, X as R, Y as Z, E as H, G as w, L as c, M as V, _ as $, $ as K, aa as Q, bt as N, bu as y, bl as L, a2 as C, bv as B, a5 as h, bw as D, a6 as A, W as T, f as j, b8 as O, ar as ee, aj as te, P as z } from "./main_866e3050_3.3.0-RC07.js";
2
- function le(u) {
3
- let e, i, s, t, l = (
4
- /*$_*/
5
- u[2]("cameraStatus.deviceMustBeInLandscape") + ""
6
- ), m, _, r, v = (
7
- /*$_*/
8
- u[2]("cameraStatus.rotateDevice") + ""
9
- ), S, x = [
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
- u[4]
17
- ], b = {};
18
- for (let n = 0; n < x.length; n += 1)
19
- b = N(b, x[n]);
20
- return {
21
- c() {
22
- e = L("svg"), i = L("path"), s = R(), t = k("span"), m = C(l), _ = R(), r = k("span"), S = C(v), w(i, "fill", "currentColor"), w(i, "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"), B(e, b), w(t, "class", "text-xl font-bold text-center"), w(r, "class", "m-auto text-base block text-center");
23
- },
24
- m(n, p) {
25
- o(n, e, p), h(e, i), o(n, s, p), o(n, t, p), h(t, m), o(n, _, p), o(n, r, p), h(r, S);
26
- },
27
- p(n, p) {
28
- B(e, b = D(x, [
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
- p & /*$$props*/
35
- 16 && /*$$props*/
36
- n[4]
37
- ])), p & /*$_*/
38
- 4 && l !== (l = /*$_*/
39
- n[2]("cameraStatus.deviceMustBeInLandscape") + "") && A(m, l), p & /*$_*/
40
- 4 && v !== (v = /*$_*/
41
- n[2]("cameraStatus.rotateDevice") + "") && A(S, v);
42
- },
43
- d(n) {
44
- n && c(e), n && c(s), n && c(t), n && c(_), n && c(r);
45
- }
46
- };
47
- }
48
- function ae(u) {
49
- let e, i, s, t, l = (
50
- /*$_*/
51
- u[2]("cameraStatus.deviceMustBeInPortrait") + ""
52
- ), m, _, r, v = (
53
- /*$_*/
54
- u[2]("cameraStatus.rotateDevice") + ""
55
- ), S, x = [
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
- u[4]
63
- ], b = {};
64
- for (let n = 0; n < x.length; n += 1)
65
- b = N(b, x[n]);
66
- return {
67
- c() {
68
- e = L("svg"), i = L("path"), s = R(), t = k("span"), m = C(l), _ = R(), r = k("span"), S = C(v), w(i, "fill", "currentColor"), w(i, "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"), B(e, b), w(t, "class", "text-xl font-bold text-center"), w(r, "class", "m-auto text-base block text-center");
69
- },
70
- m(n, p) {
71
- o(n, e, p), h(e, i), o(n, s, p), o(n, t, p), h(t, m), o(n, _, p), o(n, r, p), h(r, S);
72
- },
73
- p(n, p) {
74
- B(e, b = D(x, [
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
- p & /*$$props*/
81
- 16 && /*$$props*/
82
- n[4]
83
- ])), p & /*$_*/
84
- 4 && l !== (l = /*$_*/
85
- n[2]("cameraStatus.deviceMustBeInPortrait") + "") && A(m, l), p & /*$_*/
86
- 4 && v !== (v = /*$_*/
87
- n[2]("cameraStatus.rotateDevice") + "") && A(S, v);
88
- },
89
- d(n) {
90
- n && c(e), n && c(s), n && c(t), n && c(_), n && c(r);
91
- }
92
- };
93
- }
94
- function se(u) {
95
- let e, i, s, t, l = (
96
- /*$_*/
97
- u[2]("cameraStatus.biometricCapture") + ""
98
- ), m, _, r, v = (
99
- /*$_*/
100
- u[2]("cameraStatus.startCapture") + ""
101
- ), S, x, b, n = [
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
- u[4]
109
- ], p = {};
110
- for (let d = 0; d < n.length; d += 1)
111
- p = N(p, n[d]);
112
- return {
113
- c() {
114
- e = L("svg"), i = L("path"), s = R(), t = k("span"), m = C(l), _ = R(), r = k("button"), S = C(v), w(i, "fill", "currentColor"), w(i, "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"), B(e, p), w(t, "class", "text-xl font-bold text-center"), w(r, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
115
- },
116
- m(d, M) {
117
- o(d, e, M), h(e, i), o(d, s, M), o(d, t, M), h(t, m), o(d, _, M), o(d, r, M), h(r, S), x || (b = O(
118
- r,
119
- "click",
120
- /*click_handler_5*/
121
- u[10]
122
- ), x = !0);
123
- },
124
- p(d, M) {
125
- B(e, p = D(n, [
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
- M & /*$$props*/
132
- 16 && /*$$props*/
133
- d[4]
134
- ])), M & /*$_*/
135
- 4 && l !== (l = /*$_*/
136
- d[2]("cameraStatus.biometricCapture") + "") && A(m, l), M & /*$_*/
137
- 4 && v !== (v = /*$_*/
138
- d[2]("cameraStatus.startCapture") + "") && A(S, v);
139
- },
140
- d(d) {
141
- d && c(e), d && c(s), d && c(t), d && c(_), d && c(r), x = !1, b();
142
- }
143
- };
144
- }
145
- function ie(u) {
146
- let e, i, s, t, l = (
147
- /*$_*/
148
- u[2]("cameraStatus.cameraNotSupported") + ""
149
- ), m, _, r, v = (
150
- /*$_*/
151
- u[2]("cameraStatus.connectAnotherCamera") + ""
152
- ), S, x, b, n = (
153
- /*$_*/
154
- u[2]("cameraStatus.restart") + ""
155
- ), p, d, M, g = [
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
- u[4]
163
- ], E = {};
164
- for (let a = 0; a < g.length; a += 1)
165
- E = N(E, g[a]);
166
- return {
167
- c() {
168
- e = L("svg"), i = L("path"), s = R(), t = k("span"), m = C(l), _ = R(), r = k("span"), S = C(v), x = R(), b = k("button"), p = C(n), w(i, "fill", "currentColor"), w(i, "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"), B(e, E), w(t, "class", "text-xl font-bold text-center"), w(r, "class", "m-auto text-base block text-center"), w(b, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
169
- },
170
- m(a, f) {
171
- o(a, e, f), h(e, i), o(a, s, f), o(a, t, f), h(t, m), o(a, _, f), o(a, r, f), h(r, S), o(a, x, f), o(a, b, f), h(b, p), d || (M = O(
172
- b,
173
- "click",
174
- /*click_handler_4*/
175
- u[9]
176
- ), d = !0);
177
- },
178
- p(a, f) {
179
- B(e, E = D(g, [
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
- f & /*$$props*/
186
- 16 && /*$$props*/
187
- a[4]
188
- ])), f & /*$_*/
189
- 4 && l !== (l = /*$_*/
190
- a[2]("cameraStatus.cameraNotSupported") + "") && A(m, l), f & /*$_*/
191
- 4 && v !== (v = /*$_*/
192
- a[2]("cameraStatus.connectAnotherCamera") + "") && A(S, v), f & /*$_*/
193
- 4 && n !== (n = /*$_*/
194
- a[2]("cameraStatus.restart") + "") && A(p, n);
195
- },
196
- d(a) {
197
- a && c(e), a && c(s), a && c(t), a && c(_), a && c(r), a && c(x), a && c(b), d = !1, M();
198
- }
199
- };
200
- }
201
- function ue(u) {
202
- let e, i, s, t, l = (
203
- /*$_*/
204
- u[2]("cameraStatus.stayOnSameTab") + ""
205
- ), m, _, r, v = (
206
- /*$_*/
207
- u[2]("cameraStatus.clickRestartToRecapture") + ""
208
- ), S, x, b, n = (
209
- /*$_*/
210
- u[2]("cameraStatus.restart") + ""
211
- ), p, d, M, g = [
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
- u[4]
219
- ], E = {};
220
- for (let a = 0; a < g.length; a += 1)
221
- E = N(E, g[a]);
222
- return {
223
- c() {
224
- e = L("svg"), i = L("path"), s = R(), t = k("span"), m = C(l), _ = R(), r = k("span"), S = C(v), x = R(), b = k("button"), p = C(n), w(i, "fill", "currentColor"), w(i, "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"), B(e, E), w(t, "class", "text-xl font-bold text-center"), w(r, "class", "m-auto text-base block text-center"), w(b, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
225
- },
226
- m(a, f) {
227
- o(a, e, f), h(e, i), o(a, s, f), o(a, t, f), h(t, m), o(a, _, f), o(a, r, f), h(r, S), o(a, x, f), o(a, b, f), h(b, p), d || (M = O(
228
- b,
229
- "click",
230
- /*click_handler_3*/
231
- u[8]
232
- ), d = !0);
233
- },
234
- p(a, f) {
235
- B(e, E = D(g, [
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
- f & /*$$props*/
242
- 16 && /*$$props*/
243
- a[4]
244
- ])), f & /*$_*/
245
- 4 && l !== (l = /*$_*/
246
- a[2]("cameraStatus.stayOnSameTab") + "") && A(m, l), f & /*$_*/
247
- 4 && v !== (v = /*$_*/
248
- a[2]("cameraStatus.clickRestartToRecapture") + "") && A(S, v), f & /*$_*/
249
- 4 && n !== (n = /*$_*/
250
- a[2]("cameraStatus.restart") + "") && A(p, n);
251
- },
252
- d(a) {
253
- a && c(e), a && c(s), a && c(t), a && c(_), a && c(r), a && c(x), a && c(b), d = !1, M();
254
- }
255
- };
256
- }
257
- function me(u) {
258
- let e, i, s, t, l = (
259
- /*$_*/
260
- u[2]("cameraStatus.cameraInUse") + ""
261
- ), m, _, r, v = (
262
- /*$_*/
263
- u[2]("cameraStatus.ensureCameraNotInUse") + ""
264
- ), S, x, b, n = (
265
- /*$_*/
266
- u[2]("cameraStatus.restart") + ""
267
- ), p, d, M, g = [
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
- u[4]
275
- ], E = {};
276
- for (let a = 0; a < g.length; a += 1)
277
- E = N(E, g[a]);
278
- return {
279
- c() {
280
- e = L("svg"), i = L("path"), s = R(), t = k("span"), m = C(l), _ = R(), r = k("span"), S = C(v), x = R(), b = k("button"), p = C(n), w(i, "fill", "currentColor"), w(i, "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"), B(e, E), w(t, "class", "text-xl font-bold text-center"), w(r, "class", "m-auto text-base block text-center"), w(b, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
281
- },
282
- m(a, f) {
283
- o(a, e, f), h(e, i), o(a, s, f), o(a, t, f), h(t, m), o(a, _, f), o(a, r, f), h(r, S), o(a, x, f), o(a, b, f), h(b, p), d || (M = O(
284
- b,
285
- "click",
286
- /*click_handler_2*/
287
- u[7]
288
- ), d = !0);
289
- },
290
- p(a, f) {
291
- B(e, E = D(g, [
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
- f & /*$$props*/
298
- 16 && /*$$props*/
299
- a[4]
300
- ])), f & /*$_*/
301
- 4 && l !== (l = /*$_*/
302
- a[2]("cameraStatus.cameraInUse") + "") && A(m, l), f & /*$_*/
303
- 4 && v !== (v = /*$_*/
304
- a[2]("cameraStatus.ensureCameraNotInUse") + "") && A(S, v), f & /*$_*/
305
- 4 && n !== (n = /*$_*/
306
- a[2]("cameraStatus.restart") + "") && A(p, n);
307
- },
308
- d(a) {
309
- a && c(e), a && c(s), a && c(t), a && c(_), a && c(r), a && c(x), a && c(b), d = !1, M();
310
- }
311
- };
312
- }
313
- function re(u) {
314
- let e, i, s, t, l = (
315
- /*$_*/
316
- u[2]("cameraStatus.cameraNotDetected") + ""
317
- ), m, _, r, v = (
318
- /*$_*/
319
- u[2]("cameraStatus.connectCameraAndRestart") + ""
320
- ), S, x, b, n = (
321
- /*$_*/
322
- u[2]("cameraStatus.restart") + ""
323
- ), p, d, M, g = [
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
- u[4]
331
- ], E = {};
332
- for (let a = 0; a < g.length; a += 1)
333
- E = N(E, g[a]);
334
- return {
335
- c() {
336
- e = L("svg"), i = L("path"), s = R(), t = k("span"), m = C(l), _ = R(), r = k("span"), S = C(v), x = R(), b = k("button"), p = C(n), w(i, "fill", "currentColor"), w(i, "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"), B(e, E), w(t, "class", "text-xl font-bold text-center"), w(r, "class", "m-auto text-base block text-center"), w(b, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
337
- },
338
- m(a, f) {
339
- o(a, e, f), h(e, i), o(a, s, f), o(a, t, f), h(t, m), o(a, _, f), o(a, r, f), h(r, S), o(a, x, f), o(a, b, f), h(b, p), d || (M = O(
340
- b,
341
- "click",
342
- /*click_handler_1*/
343
- u[6]
344
- ), d = !0);
345
- },
346
- p(a, f) {
347
- B(e, E = D(g, [
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
- f & /*$$props*/
354
- 16 && /*$$props*/
355
- a[4]
356
- ])), f & /*$_*/
357
- 4 && l !== (l = /*$_*/
358
- a[2]("cameraStatus.cameraNotDetected") + "") && A(m, l), f & /*$_*/
359
- 4 && v !== (v = /*$_*/
360
- a[2]("cameraStatus.connectCameraAndRestart") + "") && A(S, v), f & /*$_*/
361
- 4 && n !== (n = /*$_*/
362
- a[2]("cameraStatus.restart") + "") && A(p, n);
363
- },
364
- d(a) {
365
- a && c(e), a && c(s), a && c(t), a && c(_), a && c(r), a && c(x), a && c(b), d = !1, M();
366
- }
367
- };
368
- }
369
- function ne(u) {
370
- let e, i, s, t, l = (
371
- /*$_*/
372
- u[2]("cameraStatus.cameraPermission") + ""
373
- ), m, _, r, v = (
374
- /*$_*/
375
- u[2]("cameraStatus.clickRestartButton") + ""
376
- ), S, x, b, n = (
377
- /*$_*/
378
- u[2]("cameraStatus.restart") + ""
379
- ), p, d, M, g = [
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
- u[4]
387
- ], E = {};
388
- for (let a = 0; a < g.length; a += 1)
389
- E = N(E, g[a]);
390
- return {
391
- c() {
392
- e = L("svg"), i = L("path"), s = R(), t = k("span"), m = C(l), _ = R(), r = k("span"), S = C(v), x = R(), b = k("button"), p = C(n), w(i, "fill", "currentColor"), w(i, "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"), B(e, E), w(t, "class", "text-xl font-bold text-center"), w(r, "class", "m-auto text-base block text-center"), w(b, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
393
- },
394
- m(a, f) {
395
- o(a, e, f), h(e, i), o(a, s, f), o(a, t, f), h(t, m), o(a, _, f), o(a, r, f), h(r, S), o(a, x, f), o(a, b, f), h(b, p), d || (M = O(
396
- b,
397
- "click",
398
- /*click_handler*/
399
- u[5]
400
- ), d = !0);
401
- },
402
- p(a, f) {
403
- B(e, E = D(g, [
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
- f & /*$$props*/
410
- 16 && /*$$props*/
411
- a[4]
412
- ])), f & /*$_*/
413
- 4 && l !== (l = /*$_*/
414
- a[2]("cameraStatus.cameraPermission") + "") && A(m, l), f & /*$_*/
415
- 4 && v !== (v = /*$_*/
416
- a[2]("cameraStatus.clickRestartButton") + "") && A(S, v), f & /*$_*/
417
- 4 && n !== (n = /*$_*/
418
- a[2]("cameraStatus.restart") + "") && A(p, n);
419
- },
420
- d(a) {
421
- a && c(e), a && c(s), a && c(t), a && c(_), a && c(r), a && c(x), a && c(b), d = !1, M();
422
- }
423
- };
424
- }
425
- function P(u) {
426
- let e, i, s, t, l, m = (
427
- /*$_*/
428
- u[2]("cameraStatus.stayOnSameTab") + ""
429
- ), _, r, v, S = (
430
- /*$_*/
431
- u[2]("cameraStatus.clickToRestartCapture") + ""
432
- ), x, b = [
433
- { class: "text-[8em] text-gray-100" },
434
- { xmlns: "http://www.w3.org/2000/svg" },
435
- { width: "1em" },
436
- { height: "1em" },
437
- { viewBox: "0 0 256 256" },
438
- /*$$props*/
439
- u[4]
440
- ], n = {};
441
- for (let p = 0; p < b.length; p += 1)
442
- n = N(n, b[p]);
443
- return {
444
- c() {
445
- e = k("div"), i = L("svg"), s = L("path"), t = R(), l = k("span"), _ = C(m), r = R(), v = k("span"), x = C(S), w(s, "fill", "currentColor"), w(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"), B(i, n), w(l, "class", "text-xl font-bold text-center text-gray-100"), w(v, "class", "text-base text-center text-gray-100"), w(e, "class", "absolute inset-0 w-full h-full flex flex-col items-center justify-center gap-4 cursor-pointer hover:bg-gray-200 hover:bg-opacity-20 transition-colors duration-200"), w(e, "role", "button"), w(e, "tabindex", "0");
446
- },
447
- m(p, d) {
448
- o(p, e, d), h(e, i), h(i, s), h(e, t), h(e, l), h(l, _), h(e, r), h(e, v), h(v, x);
449
- },
450
- p(p, d) {
451
- B(i, n = D(b, [
452
- { class: "text-[8em] text-gray-100" },
453
- { xmlns: "http://www.w3.org/2000/svg" },
454
- { width: "1em" },
455
- { height: "1em" },
456
- { viewBox: "0 0 256 256" },
457
- d & /*$$props*/
458
- 16 && /*$$props*/
459
- p[4]
460
- ])), d & /*$_*/
461
- 4 && m !== (m = /*$_*/
462
- p[2]("cameraStatus.stayOnSameTab") + "") && A(_, m), d & /*$_*/
463
- 4 && S !== (S = /*$_*/
464
- p[2]("cameraStatus.clickToRestartCapture") + "") && A(x, S);
465
- },
466
- d(p) {
467
- p && c(e);
468
- }
469
- };
470
- }
471
- function oe(u) {
472
- let e, i, s;
473
- function t(r, v) {
474
- if (
475
- /*$cameraStatusStore*/
476
- r[1] === T.CAMERA_DENIED_ERROR
477
- )
478
- return ne;
479
- if (
480
- /*$cameraStatusStore*/
481
- r[1] === T.DEVICE_NOT_FOUND_ERROR
482
- )
483
- return re;
484
- if (
485
- /*$cameraStatusStore*/
486
- r[1] === T.CAMERA_IN_USE_ERROR
487
- )
488
- return me;
489
- if (
490
- /*$cameraStatusStore*/
491
- r[1] === T.CAMERA_CLOSED_ERROR
492
- )
493
- return ue;
494
- if (
495
- /*$cameraStatusStore*/
496
- r[1] === T.CAMERA_UNSUPPORTED
497
- )
498
- return ie;
499
- if (
500
- /*$cameraStatusStore*/
501
- r[1] === T.CAMERA_NOT_STARTED
502
- )
503
- return se;
504
- if (
505
- /*$cameraStatusStore*/
506
- r[1] === T.CAMERA_ORIENTATION_PORTRAIT
507
- )
508
- return ae;
509
- if (
510
- /*$cameraStatusStore*/
511
- r[1] === T.CAMERA_ORIENTATION_LANDSCAPE
512
- )
513
- return le;
514
- }
515
- let l = t(u), m = l && l(u), _ = (
516
- /*$collectorSelect*/
517
- u[3] === "STREAM" && P(u)
518
- );
519
- return {
520
- c() {
521
- e = k("div"), m && m.c(), i = R(), _ && _.c(), s = Z(), this.c = H, w(e, "class", "flex flex-col gap-4 justify-center items-center relative overflow-visible p-4");
522
- },
523
- m(r, v) {
524
- o(r, e, v), m && m.m(e, null), o(r, i, v), _ && _.m(r, v), o(r, s, v);
525
- },
526
- p(r, [v]) {
527
- l === (l = t(r)) && m ? m.p(r, v) : (m && m.d(1), m = l && l(r), m && (m.c(), m.m(e, null))), /*$collectorSelect*/
528
- r[3] === "STREAM" ? _ ? _.p(r, v) : (_ = P(r), _.c(), _.m(s.parentNode, s)) : _ && (_.d(1), _ = null);
529
- },
530
- i: H,
531
- o: H,
532
- d(r) {
533
- r && c(e), m && m.d(), r && c(i), _ && _.d(r), r && c(s);
534
- }
535
- };
536
- }
537
- function fe(u, e, i) {
538
- let s, t, l;
539
- V(u, $, (n) => i(1, s = n)), V(u, K, (n) => i(2, t = n)), V(u, Q, (n) => i(3, l = n));
540
- let { handler: m = () => {
541
- } } = e;
542
- const _ = () => {
543
- m(), j("canicna", m);
544
- }, r = () => {
545
- m(), j("canicna", m);
546
- }, v = () => {
547
- m(), j("canicna", m);
548
- }, S = () => {
549
- m();
550
- }, x = () => {
551
- m();
552
- }, b = () => {
553
- m();
554
- };
555
- return u.$$set = (n) => {
556
- i(4, e = N(N({}, e), y(n))), "handler" in n && i(0, m = n.handler);
557
- }, e = y(e), [
558
- m,
559
- s,
560
- t,
561
- l,
562
- e,
563
- _,
564
- r,
565
- v,
566
- S,
567
- x,
568
- b
569
- ];
570
- }
571
- class ce extends W {
572
- constructor(e) {
573
- super(), X(
574
- this,
575
- {
576
- target: this.shadowRoot,
577
- props: J(this.attributes),
578
- customElement: !0
579
- },
580
- fe,
581
- oe,
582
- Y,
583
- { handler: 0 },
584
- null
585
- ), e && (e.target && o(e.target, this, e.anchor), e.props && (this.$set(e.props), I()));
586
- }
587
- static get observedAttributes() {
588
- return ["handler"];
589
- }
590
- get handler() {
591
- return this.$$.ctx[0];
592
- }
593
- set handler(e) {
594
- this.$$set({ handler: e }), I();
595
- }
596
- }
597
- customElements.define("camera-status", ce);
598
- function pe(u) {
599
- let e, i, s = (
600
- /*$_*/
601
- u[2](`${/*$faceValidationAlert*/
602
- u[4]}`) + ""
603
- ), t;
604
- return {
605
- c() {
606
- e = k("div"), i = k("span"), t = C(s), w(i, "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] top-[6%] z-50"), w(e, "class", "absolute flex justify-center inset-0");
607
- },
608
- m(l, m) {
609
- o(l, e, m), h(e, i), h(i, t);
610
- },
611
- p(l, m) {
612
- m & /*$_, $faceValidationAlert*/
613
- 20 && s !== (s = /*$_*/
614
- l[2](`${/*$faceValidationAlert*/
615
- l[4]}`) + "") && A(t, s);
616
- },
617
- d(l) {
618
- l && c(e);
619
- }
620
- };
621
- }
622
- function _e(u) {
623
- let e, i, s = (
624
- /*isCountingDown*/
625
- u[0] && U(u)
626
- ), t = (
627
- /*$enableFaceApi*/
628
- u[3] && !/*isCountingDown*/
629
- u[0] && /*$faceValidationAlert*/
630
- u[4] && F(u)
631
- );
632
- return {
633
- c() {
634
- s && s.c(), e = R(), t && t.c(), i = Z();
635
- },
636
- m(l, m) {
637
- s && s.m(l, m), o(l, e, m), t && t.m(l, m), o(l, i, m);
638
- },
639
- p(l, m) {
640
- /*isCountingDown*/
641
- l[0] ? s ? s.p(l, m) : (s = U(l), s.c(), s.m(e.parentNode, e)) : s && (s.d(1), s = null), /*$enableFaceApi*/
642
- l[3] && !/*isCountingDown*/
643
- l[0] && /*$faceValidationAlert*/
644
- l[4] ? t ? t.p(l, m) : (t = F(l), t.c(), t.m(i.parentNode, i)) : t && (t.d(1), t = null);
645
- },
646
- d(l) {
647
- s && s.d(l), l && c(e), t && t.d(l), l && c(i);
648
- }
649
- };
650
- }
651
- function ve(u) {
652
- let e, i, s = (
653
- /*isCountingDown*/
654
- u[0] && q(u)
655
- ), t = (
656
- /*$enableFaceApi*/
657
- u[3] && !/*isCountingDown*/
658
- u[0] && /*$faceValidationAlert*/
659
- u[4] && G(u)
660
- );
661
- return {
662
- c() {
663
- s && s.c(), e = R(), t && t.c(), i = Z();
664
- },
665
- m(l, m) {
666
- s && s.m(l, m), o(l, e, m), t && t.m(l, m), o(l, i, m);
667
- },
668
- p(l, m) {
669
- /*isCountingDown*/
670
- l[0] ? s ? s.p(l, m) : (s = q(l), s.c(), s.m(e.parentNode, e)) : s && (s.d(1), s = null), /*$enableFaceApi*/
671
- l[3] && !/*isCountingDown*/
672
- l[0] && /*$faceValidationAlert*/
673
- l[4] ? t ? t.p(l, m) : (t = G(l), t.c(), t.m(i.parentNode, i)) : t && (t.d(1), t = null);
674
- },
675
- d(l) {
676
- s && s.d(l), l && c(e), t && t.d(l), l && c(i);
677
- }
678
- };
679
- }
680
- function U(u) {
681
- let e, i = (
682
- /*$_*/
683
- u[2]("faceCollector.stayStill") + ""
684
- ), s;
685
- return {
686
- c() {
687
- e = k("span"), s = C(i), w(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 " + (z() ? "top-[6%]" : "top-[4.5%]"));
688
- },
689
- m(t, l) {
690
- o(t, e, l), h(e, s);
691
- },
692
- p(t, l) {
693
- l & /*$_*/
694
- 4 && i !== (i = /*$_*/
695
- t[2]("faceCollector.stayStill") + "") && A(s, i);
696
- },
697
- d(t) {
698
- t && c(e);
699
- }
700
- };
701
- }
702
- function F(u) {
703
- let e, i = (
704
- /*$_*/
705
- u[2](`${/*$faceValidationAlert*/
706
- u[4]}`) + ""
707
- ), s;
708
- return {
709
- c() {
710
- e = k("span"), s = C(i), w(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 " + (z() ? "top-[6%]" : "top-[4.5%]"));
711
- },
712
- m(t, l) {
713
- o(t, e, l), h(e, s);
714
- },
715
- p(t, l) {
716
- l & /*$_, $faceValidationAlert*/
717
- 20 && i !== (i = /*$_*/
718
- t[2](`${/*$faceValidationAlert*/
719
- t[4]}`) + "") && A(s, i);
720
- },
721
- d(t) {
722
- t && c(e);
723
- }
724
- };
725
- }
726
- function q(u) {
727
- let e, i = (
728
- /*$_*/
729
- u[2]("faceCollector.stayStill") + ""
730
- ), s;
731
- return {
732
- c() {
733
- e = k("span"), s = C(i), w(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 " + (z() ? "top-[6.5%]" : "top-[3%]"));
734
- },
735
- m(t, l) {
736
- o(t, e, l), h(e, s);
737
- },
738
- p(t, l) {
739
- l & /*$_*/
740
- 4 && i !== (i = /*$_*/
741
- t[2]("faceCollector.stayStill") + "") && A(s, i);
742
- },
743
- d(t) {
744
- t && c(e);
745
- }
746
- };
747
- }
748
- function G(u) {
749
- let e, i = (
750
- /*$_*/
751
- u[2](`${/*$faceValidationAlert*/
752
- u[4]}`) + ""
753
- ), s;
754
- return {
755
- c() {
756
- e = k("span"), s = C(i), w(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 " + (z() ? "top-[6.5%]" : "top-[3%]"));
757
- },
758
- m(t, l) {
759
- o(t, e, l), h(e, s);
760
- },
761
- p(t, l) {
762
- l & /*$_, $faceValidationAlert*/
763
- 20 && i !== (i = /*$_*/
764
- t[2](`${/*$faceValidationAlert*/
765
- t[4]}`) + "") && A(s, i);
766
- },
767
- d(t) {
768
- t && c(e);
769
- }
770
- };
771
- }
772
- function be(u) {
773
- let e;
774
- function i(l, m) {
775
- if (
776
- /*$collectorSelect*/
777
- l[1] === "FACE"
778
- )
779
- return ve;
780
- if (
781
- /*$collectorSelect*/
782
- l[1] === "DOCUMENT"
783
- )
784
- return _e;
785
- if (
786
- /*$collectorSelect*/
787
- l[1] === "STREAM"
788
- )
789
- return pe;
790
- }
791
- let s = i(u), t = s && s(u);
792
- return {
793
- c() {
794
- t && t.c(), e = Z(), this.c = H;
795
- },
796
- m(l, m) {
797
- t && t.m(l, m), o(l, e, m);
798
- },
799
- p(l, [m]) {
800
- s === (s = i(l)) && t ? t.p(l, m) : (t && t.d(1), t = s && s(l), t && (t.c(), t.m(e.parentNode, e)));
801
- },
802
- i: H,
803
- o: H,
804
- d(l) {
805
- t && t.d(l), l && c(e);
806
- }
807
- };
808
- }
809
- function we(u, e, i) {
810
- let s, t, l, m;
811
- V(u, Q, (r) => i(1, s = r)), V(u, K, (r) => i(2, t = r)), V(u, ee, (r) => i(3, l = r)), V(u, te, (r) => i(4, m = r));
812
- let { isCountingDown: _ } = e;
813
- return u.$$set = (r) => {
814
- "isCountingDown" in r && i(0, _ = r.isCountingDown);
815
- }, [_, s, t, l, m];
816
- }
817
- class de extends W {
818
- constructor(e) {
819
- super(), X(
820
- this,
821
- {
822
- target: this.shadowRoot,
823
- props: J(this.attributes),
824
- customElement: !0
825
- },
826
- we,
827
- be,
828
- Y,
829
- { isCountingDown: 0 },
830
- null
831
- ), e && (e.target && o(e.target, this, e.anchor), e.props && (this.$set(e.props), I()));
832
- }
833
- static get observedAttributes() {
834
- return ["isCountingDown"];
835
- }
836
- get isCountingDown() {
837
- return this.$$.ctx[0];
838
- }
839
- set isCountingDown(e) {
840
- this.$$set({ isCountingDown: e }), I();
841
- }
842
- }
843
- customElements.define("validation-alert", de);
844
- export {
845
- ce as C,
846
- de as V
847
- };