bry-biometric-collector 2.3.1 → 2.4.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/README.md +13 -0
  2. package/dist/DocumentCollector_0ce4a997_2.4.0-RC01.js +1233 -0
  3. package/dist/FaceCollector_378e6e60_2.4.0-RC01.js +1989 -0
  4. package/dist/TakePictureBtn_469d970c_2.4.0-RC01.js +864 -0
  5. package/dist/{___vite-browser-external_commonjs-proxy_9d89b10a_2.3.1.js → ___vite-browser-external_commonjs-proxy_a11faf97_2.4.0-RC01.js} +1 -1
  6. package/dist/bry-biometric-collector-main.js +1 -1
  7. package/dist/{en-us_6bd969ac_2.3.1.js → en-us_46a6e2d2_2.4.0-RC01.js} +1 -1
  8. package/dist/{es-cl_892f6a0f_2.3.1.js → es-cl_af82486d_2.4.0-RC01.js} +1 -1
  9. package/dist/{fingersApi_8f5e7a1b_2.3.1.js → fingersApi_8058842b_2.4.0-RC01.js} +1 -1
  10. package/dist/index.d.ts +1 -0
  11. package/dist/index.js +1 -1
  12. package/dist/{index_884fc7b2_2.3.1.js → index_19569017_2.4.0-RC01.js} +2 -2
  13. package/dist/{index_71691111_2.3.1.js → index_fb2a804b_2.4.0-RC01.js} +2 -2
  14. package/dist/{main_e423e405_2.3.1.js → main_f7a63775_2.4.0-RC01.js} +4357 -4366
  15. package/dist/{pt-br_45d223b5_2.3.1.js → pt-br_b6088a59_2.4.0-RC01.js} +7 -7
  16. package/dist/style.css +1 -1
  17. package/package.json +1 -1
  18. package/dist/DocumentCollector_db74e94f_2.3.1.js +0 -1063
  19. package/dist/FaceCollector_22b15b61_2.3.1.js +0 -1992
  20. package/dist/TakePictureBtn_3319a771_2.3.1.js +0 -900
  21. /package/dist/{face_api_0e3ce8c8_2.3.1.js → face_api_0e3ce8c8_2.4.0-RC01.js} +0 -0
  22. /package/dist/{index-no-detector_4b302e78_2.3.1.js → index-no-detector_4b302e78_2.4.0-RC01.js} +0 -0
  23. /package/dist/{index-no-detector_b6972e40_2.3.1.js → index-no-detector_b6972e40_2.4.0-RC01.js} +0 -0
@@ -1,900 +0,0 @@
1
- import { S as j, q as F, r as K, t as q, w as f, L as z, x as g, z as H, B as b, H as d, I as D, W, $ as Q, X as G, af as U, N as L, K as P, b9 as T, ba as Z, bb as X, bc as O, O as x, y as R, bd as B, D as S, E as N, be as I, G as M, bf as Y, aS as y, C as V, aT as $, P as ee, R as te, aU as le, aK as J, _ as ae, b7 as se } from "./main_e423e405_2.3.1.js";
2
- function ie(i) {
3
- let t, l, n, s, a = (
4
- /*$_*/
5
- i[2]("cameraStatus.deviceMustBeInLandscape") + ""
6
- ), m, u, o, h = (
7
- /*$_*/
8
- i[2]("cameraStatus.rotateDeviceOrPressButton") + ""
9
- ), k, C, c, p = (
10
- /*$_*/
11
- i[2]("cameraStatus.adjustOrientation") + ""
12
- ), v, _, w, E = [
13
- { class: "text-[8em] mx-auto" },
14
- { xmlns: "http://www.w3.org/2000/svg" },
15
- { width: "1em" },
16
- { height: "1em" },
17
- { viewBox: "0 0 24 24" },
18
- /*$$props*/
19
- i[5]
20
- ], A = {};
21
- for (let e = 0; e < E.length; e += 1)
22
- A = T(A, E[e]);
23
- return {
24
- c() {
25
- t = O("svg"), l = O("path"), n = x(), s = g("span"), m = R(a), u = x(), o = g("span"), k = R(h), C = x(), c = g("button"), v = R(p), b(l, "fill", "currentColor"), b(l, "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(t, A), b(s, "class", "text-xl font-bold text-center"), b(o, "class", "m-auto text-base block text-center"), b(c, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
26
- },
27
- m(e, r) {
28
- f(e, t, r), S(t, l), f(e, n, r), f(e, s, r), S(s, m), f(e, u, r), f(e, o, r), S(o, k), f(e, C, r), f(e, c, r), S(c, v), _ || (w = N(
29
- c,
30
- "click",
31
- /*click_handler_7*/
32
- i[13]
33
- ), _ = !0);
34
- },
35
- p(e, r) {
36
- B(t, A = I(E, [
37
- { class: "text-[8em] mx-auto" },
38
- { xmlns: "http://www.w3.org/2000/svg" },
39
- { width: "1em" },
40
- { height: "1em" },
41
- { viewBox: "0 0 24 24" },
42
- r & /*$$props*/
43
- 32 && /*$$props*/
44
- e[5]
45
- ])), r & /*$_*/
46
- 4 && a !== (a = /*$_*/
47
- e[2]("cameraStatus.deviceMustBeInLandscape") + "") && M(m, a), r & /*$_*/
48
- 4 && h !== (h = /*$_*/
49
- e[2]("cameraStatus.rotateDeviceOrPressButton") + "") && M(k, h), r & /*$_*/
50
- 4 && p !== (p = /*$_*/
51
- e[2]("cameraStatus.adjustOrientation") + "") && M(v, p);
52
- },
53
- d(e) {
54
- e && d(t), e && d(n), e && d(s), e && d(u), e && d(o), e && d(C), e && d(c), _ = !1, w();
55
- }
56
- };
57
- }
58
- function ue(i) {
59
- let t, l, n, s, a = (
60
- /*$_*/
61
- i[2]("cameraStatus.deviceMustBeInPortrait") + ""
62
- ), m, u, o, h = (
63
- /*$_*/
64
- i[2]("cameraStatus.rotateDeviceOrPressButton") + ""
65
- ), k, C, c, p = (
66
- /*$_*/
67
- i[2]("cameraStatus.adjustOrientation") + ""
68
- ), v, _, w, E = [
69
- { class: "text-[8em] mx-auto" },
70
- { xmlns: "http://www.w3.org/2000/svg" },
71
- { width: "1em" },
72
- { height: "1em" },
73
- { viewBox: "0 0 24 24" },
74
- /*$$props*/
75
- i[5]
76
- ], A = {};
77
- for (let e = 0; e < E.length; e += 1)
78
- A = T(A, E[e]);
79
- return {
80
- c() {
81
- t = O("svg"), l = O("path"), n = x(), s = g("span"), m = R(a), u = x(), o = g("span"), k = R(h), C = x(), c = g("button"), v = R(p), b(l, "fill", "currentColor"), b(l, "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(t, A), b(s, "class", "text-xl font-bold text-center"), b(o, "class", "m-auto text-base block text-center"), b(c, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
82
- },
83
- m(e, r) {
84
- f(e, t, r), S(t, l), f(e, n, r), f(e, s, r), S(s, m), f(e, u, r), f(e, o, r), S(o, k), f(e, C, r), f(e, c, r), S(c, v), _ || (w = N(
85
- c,
86
- "click",
87
- /*click_handler_6*/
88
- i[12]
89
- ), _ = !0);
90
- },
91
- p(e, r) {
92
- B(t, A = I(E, [
93
- { class: "text-[8em] mx-auto" },
94
- { xmlns: "http://www.w3.org/2000/svg" },
95
- { width: "1em" },
96
- { height: "1em" },
97
- { viewBox: "0 0 24 24" },
98
- r & /*$$props*/
99
- 32 && /*$$props*/
100
- e[5]
101
- ])), r & /*$_*/
102
- 4 && a !== (a = /*$_*/
103
- e[2]("cameraStatus.deviceMustBeInPortrait") + "") && M(m, a), r & /*$_*/
104
- 4 && h !== (h = /*$_*/
105
- e[2]("cameraStatus.rotateDeviceOrPressButton") + "") && M(k, h), r & /*$_*/
106
- 4 && p !== (p = /*$_*/
107
- e[2]("cameraStatus.adjustOrientation") + "") && M(v, p);
108
- },
109
- d(e) {
110
- e && d(t), e && d(n), e && d(s), e && d(u), e && d(o), e && d(C), e && d(c), _ = !1, w();
111
- }
112
- };
113
- }
114
- function re(i) {
115
- let t, l, n, s, a = (
116
- /*$_*/
117
- i[2]("cameraStatus.biometricCapture") + ""
118
- ), m, u, o, h = (
119
- /*$_*/
120
- i[2]("cameraStatus.startCapture") + ""
121
- ), k, C, c, p = [
122
- { class: "text-[8em] mx-auto" },
123
- { xmlns: "http://www.w3.org/2000/svg" },
124
- { width: "1em" },
125
- { height: "1em" },
126
- { viewBox: "0 0 24 24" },
127
- /*$$props*/
128
- i[5]
129
- ], v = {};
130
- for (let _ = 0; _ < p.length; _ += 1)
131
- v = T(v, p[_]);
132
- return {
133
- c() {
134
- t = O("svg"), l = O("path"), n = x(), s = g("span"), m = R(a), u = x(), o = g("button"), k = R(h), b(l, "fill", "currentColor"), b(l, "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(t, v), b(s, "class", "text-xl font-bold text-center"), b(o, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
135
- },
136
- m(_, w) {
137
- f(_, t, w), S(t, l), f(_, n, w), f(_, s, w), S(s, m), f(_, u, w), f(_, o, w), S(o, k), C || (c = N(
138
- o,
139
- "click",
140
- /*click_handler_5*/
141
- i[11]
142
- ), C = !0);
143
- },
144
- p(_, w) {
145
- B(t, v = I(p, [
146
- { class: "text-[8em] mx-auto" },
147
- { xmlns: "http://www.w3.org/2000/svg" },
148
- { width: "1em" },
149
- { height: "1em" },
150
- { viewBox: "0 0 24 24" },
151
- w & /*$$props*/
152
- 32 && /*$$props*/
153
- _[5]
154
- ])), w & /*$_*/
155
- 4 && a !== (a = /*$_*/
156
- _[2]("cameraStatus.biometricCapture") + "") && M(m, a), w & /*$_*/
157
- 4 && h !== (h = /*$_*/
158
- _[2]("cameraStatus.startCapture") + "") && M(k, h);
159
- },
160
- d(_) {
161
- _ && d(t), _ && d(n), _ && d(s), _ && d(u), _ && d(o), C = !1, c();
162
- }
163
- };
164
- }
165
- function ne(i) {
166
- let t, l, n, s, a = (
167
- /*$_*/
168
- i[2]("cameraStatus.cameraNotSupported") + ""
169
- ), m, u, o, h = (
170
- /*$_*/
171
- i[2]("cameraStatus.connectAnotherCamera") + ""
172
- ), k, C, c, p = (
173
- /*$_*/
174
- i[2]("cameraStatus.restart") + ""
175
- ), v, _, w, E = [
176
- { class: "text-[8em] mx-auto" },
177
- { xmlns: "http://www.w3.org/2000/svg" },
178
- { width: "1em" },
179
- { height: "1em" },
180
- { viewBox: "0 0 256 256" },
181
- /*$$props*/
182
- i[5]
183
- ], A = {};
184
- for (let e = 0; e < E.length; e += 1)
185
- A = T(A, E[e]);
186
- return {
187
- c() {
188
- t = O("svg"), l = O("path"), n = x(), s = g("span"), m = R(a), u = x(), o = g("span"), k = R(h), C = x(), c = g("button"), v = R(p), b(l, "fill", "currentColor"), b(l, "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(t, A), b(s, "class", "text-xl font-bold text-center"), b(o, "class", "m-auto text-base block text-center"), b(c, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
189
- },
190
- m(e, r) {
191
- f(e, t, r), S(t, l), f(e, n, r), f(e, s, r), S(s, m), f(e, u, r), f(e, o, r), S(o, k), f(e, C, r), f(e, c, r), S(c, v), _ || (w = N(
192
- c,
193
- "click",
194
- /*click_handler_4*/
195
- i[10]
196
- ), _ = !0);
197
- },
198
- p(e, r) {
199
- B(t, A = I(E, [
200
- { class: "text-[8em] mx-auto" },
201
- { xmlns: "http://www.w3.org/2000/svg" },
202
- { width: "1em" },
203
- { height: "1em" },
204
- { viewBox: "0 0 256 256" },
205
- r & /*$$props*/
206
- 32 && /*$$props*/
207
- e[5]
208
- ])), r & /*$_*/
209
- 4 && a !== (a = /*$_*/
210
- e[2]("cameraStatus.cameraNotSupported") + "") && M(m, a), r & /*$_*/
211
- 4 && h !== (h = /*$_*/
212
- e[2]("cameraStatus.connectAnotherCamera") + "") && M(k, h), r & /*$_*/
213
- 4 && p !== (p = /*$_*/
214
- e[2]("cameraStatus.restart") + "") && M(v, p);
215
- },
216
- d(e) {
217
- e && d(t), e && d(n), e && d(s), e && d(u), e && d(o), e && d(C), e && d(c), _ = !1, w();
218
- }
219
- };
220
- }
221
- function oe(i) {
222
- let t, l, n, s, a = (
223
- /*$_*/
224
- i[2]("cameraStatus.stayOnSameTab") + ""
225
- ), m, u, o, h = (
226
- /*$_*/
227
- i[2]("cameraStatus.clickRestartToRecapture") + ""
228
- ), k, C, c, p = (
229
- /*$_*/
230
- i[2]("cameraStatus.restart") + ""
231
- ), v, _, w, E = [
232
- { class: "text-[8em] mx-auto" },
233
- { xmlns: "http://www.w3.org/2000/svg" },
234
- { width: "1em" },
235
- { height: "1em" },
236
- { viewBox: "0 0 256 256" },
237
- /*$$props*/
238
- i[5]
239
- ], A = {};
240
- for (let e = 0; e < E.length; e += 1)
241
- A = T(A, E[e]);
242
- return {
243
- c() {
244
- t = O("svg"), l = O("path"), n = x(), s = g("span"), m = R(a), u = x(), o = g("span"), k = R(h), C = x(), c = g("button"), v = R(p), b(l, "fill", "currentColor"), b(l, "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(t, A), b(s, "class", "text-xl font-bold text-center"), b(o, "class", "m-auto text-base block text-center"), b(c, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
245
- },
246
- m(e, r) {
247
- f(e, t, r), S(t, l), f(e, n, r), f(e, s, r), S(s, m), f(e, u, r), f(e, o, r), S(o, k), f(e, C, r), f(e, c, r), S(c, v), _ || (w = N(
248
- c,
249
- "click",
250
- /*click_handler_3*/
251
- i[9]
252
- ), _ = !0);
253
- },
254
- p(e, r) {
255
- B(t, A = I(E, [
256
- { class: "text-[8em] mx-auto" },
257
- { xmlns: "http://www.w3.org/2000/svg" },
258
- { width: "1em" },
259
- { height: "1em" },
260
- { viewBox: "0 0 256 256" },
261
- r & /*$$props*/
262
- 32 && /*$$props*/
263
- e[5]
264
- ])), r & /*$_*/
265
- 4 && a !== (a = /*$_*/
266
- e[2]("cameraStatus.stayOnSameTab") + "") && M(m, a), r & /*$_*/
267
- 4 && h !== (h = /*$_*/
268
- e[2]("cameraStatus.clickRestartToRecapture") + "") && M(k, h), r & /*$_*/
269
- 4 && p !== (p = /*$_*/
270
- e[2]("cameraStatus.restart") + "") && M(v, p);
271
- },
272
- d(e) {
273
- e && d(t), e && d(n), e && d(s), e && d(u), e && d(o), e && d(C), e && d(c), _ = !1, w();
274
- }
275
- };
276
- }
277
- function me(i) {
278
- let t, l, n, s, a = (
279
- /*$_*/
280
- i[2]("cameraStatus.cameraInUse") + ""
281
- ), m, u, o, h = (
282
- /*$_*/
283
- i[2]("cameraStatus.ensureCameraNotInUse") + ""
284
- ), k, C, c, p = (
285
- /*$_*/
286
- i[2]("cameraStatus.restart") + ""
287
- ), v, _, w, E = [
288
- { class: "text-[8em] mx-auto" },
289
- { xmlns: "http://www.w3.org/2000/svg" },
290
- { width: "1em" },
291
- { height: "1em" },
292
- { viewBox: "0 0 256 256" },
293
- /*$$props*/
294
- i[5]
295
- ], A = {};
296
- for (let e = 0; e < E.length; e += 1)
297
- A = T(A, E[e]);
298
- return {
299
- c() {
300
- t = O("svg"), l = O("path"), n = x(), s = g("span"), m = R(a), u = x(), o = g("span"), k = R(h), C = x(), c = g("button"), v = R(p), b(l, "fill", "currentColor"), b(l, "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(t, A), b(s, "class", "text-xl font-bold text-center"), b(o, "class", "m-auto text-base block text-center"), b(c, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
301
- },
302
- m(e, r) {
303
- f(e, t, r), S(t, l), f(e, n, r), f(e, s, r), S(s, m), f(e, u, r), f(e, o, r), S(o, k), f(e, C, r), f(e, c, r), S(c, v), _ || (w = N(
304
- c,
305
- "click",
306
- /*click_handler_2*/
307
- i[8]
308
- ), _ = !0);
309
- },
310
- p(e, r) {
311
- B(t, A = I(E, [
312
- { class: "text-[8em] mx-auto" },
313
- { xmlns: "http://www.w3.org/2000/svg" },
314
- { width: "1em" },
315
- { height: "1em" },
316
- { viewBox: "0 0 256 256" },
317
- r & /*$$props*/
318
- 32 && /*$$props*/
319
- e[5]
320
- ])), r & /*$_*/
321
- 4 && a !== (a = /*$_*/
322
- e[2]("cameraStatus.cameraInUse") + "") && M(m, a), r & /*$_*/
323
- 4 && h !== (h = /*$_*/
324
- e[2]("cameraStatus.ensureCameraNotInUse") + "") && M(k, h), r & /*$_*/
325
- 4 && p !== (p = /*$_*/
326
- e[2]("cameraStatus.restart") + "") && M(v, p);
327
- },
328
- d(e) {
329
- e && d(t), e && d(n), e && d(s), e && d(u), e && d(o), e && d(C), e && d(c), _ = !1, w();
330
- }
331
- };
332
- }
333
- function ce(i) {
334
- let t, l, n, s, a = (
335
- /*$_*/
336
- i[2]("cameraStatus.cameraNotDetected") + ""
337
- ), m, u, o, h = (
338
- /*$_*/
339
- i[2]("cameraStatus.connectCameraAndRestart") + ""
340
- ), k, C, c, p = (
341
- /*$_*/
342
- i[2]("cameraStatus.restart") + ""
343
- ), v, _, w, E = [
344
- { class: "text-[8em] mx-auto" },
345
- { xmlns: "http://www.w3.org/2000/svg" },
346
- { width: "1em" },
347
- { height: "1em" },
348
- { viewBox: "0 0 256 256" },
349
- /*$$props*/
350
- i[5]
351
- ], A = {};
352
- for (let e = 0; e < E.length; e += 1)
353
- A = T(A, E[e]);
354
- return {
355
- c() {
356
- t = O("svg"), l = O("path"), n = x(), s = g("span"), m = R(a), u = x(), o = g("span"), k = R(h), C = x(), c = g("button"), v = R(p), b(l, "fill", "currentColor"), b(l, "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(t, A), b(s, "class", "text-xl font-bold text-center"), b(o, "class", "m-auto text-base block text-center"), b(c, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
357
- },
358
- m(e, r) {
359
- f(e, t, r), S(t, l), f(e, n, r), f(e, s, r), S(s, m), f(e, u, r), f(e, o, r), S(o, k), f(e, C, r), f(e, c, r), S(c, v), _ || (w = N(
360
- c,
361
- "click",
362
- /*click_handler_1*/
363
- i[7]
364
- ), _ = !0);
365
- },
366
- p(e, r) {
367
- B(t, A = I(E, [
368
- { class: "text-[8em] mx-auto" },
369
- { xmlns: "http://www.w3.org/2000/svg" },
370
- { width: "1em" },
371
- { height: "1em" },
372
- { viewBox: "0 0 256 256" },
373
- r & /*$$props*/
374
- 32 && /*$$props*/
375
- e[5]
376
- ])), r & /*$_*/
377
- 4 && a !== (a = /*$_*/
378
- e[2]("cameraStatus.cameraNotDetected") + "") && M(m, a), r & /*$_*/
379
- 4 && h !== (h = /*$_*/
380
- e[2]("cameraStatus.connectCameraAndRestart") + "") && M(k, h), r & /*$_*/
381
- 4 && p !== (p = /*$_*/
382
- e[2]("cameraStatus.restart") + "") && M(v, p);
383
- },
384
- d(e) {
385
- e && d(t), e && d(n), e && d(s), e && d(u), e && d(o), e && d(C), e && d(c), _ = !1, w();
386
- }
387
- };
388
- }
389
- function fe(i) {
390
- let t, l, n, s, a = (
391
- /*$_*/
392
- i[2]("cameraStatus.cameraPermission") + ""
393
- ), m, u, o, h = (
394
- /*$_*/
395
- i[2]("cameraStatus.clickRestartButton") + ""
396
- ), k, C, c, p = (
397
- /*$_*/
398
- i[2]("cameraStatus.restart") + ""
399
- ), v, _, w, E = [
400
- { class: "text-[8em] mx-auto" },
401
- { xmlns: "http://www.w3.org/2000/svg" },
402
- { width: "1em" },
403
- { height: "1em" },
404
- { viewBox: "0 0 256 256" },
405
- /*$$props*/
406
- i[5]
407
- ], A = {};
408
- for (let e = 0; e < E.length; e += 1)
409
- A = T(A, E[e]);
410
- return {
411
- c() {
412
- t = O("svg"), l = O("path"), n = x(), s = g("span"), m = R(a), u = x(), o = g("span"), k = R(h), C = x(), c = g("button"), v = R(p), b(l, "fill", "currentColor"), b(l, "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(t, A), b(s, "class", "text-xl font-bold text-center"), b(o, "class", "m-auto text-base block text-center"), b(c, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
413
- },
414
- m(e, r) {
415
- f(e, t, r), S(t, l), f(e, n, r), f(e, s, r), S(s, m), f(e, u, r), f(e, o, r), S(o, k), f(e, C, r), f(e, c, r), S(c, v), _ || (w = N(
416
- c,
417
- "click",
418
- /*click_handler*/
419
- i[6]
420
- ), _ = !0);
421
- },
422
- p(e, r) {
423
- B(t, A = I(E, [
424
- { class: "text-[8em] mx-auto" },
425
- { xmlns: "http://www.w3.org/2000/svg" },
426
- { width: "1em" },
427
- { height: "1em" },
428
- { viewBox: "0 0 256 256" },
429
- r & /*$$props*/
430
- 32 && /*$$props*/
431
- e[5]
432
- ])), r & /*$_*/
433
- 4 && a !== (a = /*$_*/
434
- e[2]("cameraStatus.cameraPermission") + "") && M(m, a), r & /*$_*/
435
- 4 && h !== (h = /*$_*/
436
- e[2]("cameraStatus.clickRestartButton") + "") && M(k, h), r & /*$_*/
437
- 4 && p !== (p = /*$_*/
438
- e[2]("cameraStatus.restart") + "") && M(v, p);
439
- },
440
- d(e) {
441
- e && d(t), e && d(n), e && d(s), e && d(u), e && d(o), e && d(C), e && d(c), _ = !1, w();
442
- }
443
- };
444
- }
445
- function de(i) {
446
- let t;
447
- function l(a, m) {
448
- if (
449
- /*$cameraStatusStore*/
450
- a[1] === L.CAMERA_DENIED_ERROR
451
- )
452
- return fe;
453
- if (
454
- /*$cameraStatusStore*/
455
- a[1] === L.DEVICE_NOT_FOUND_ERROR
456
- )
457
- return ce;
458
- if (
459
- /*$cameraStatusStore*/
460
- a[1] === L.CAMERA_IN_USE_ERROR
461
- )
462
- return me;
463
- if (
464
- /*$cameraStatusStore*/
465
- a[1] === L.CAMERA_CLOSED_ERROR
466
- )
467
- return oe;
468
- if (
469
- /*$cameraStatusStore*/
470
- a[1] === L.CAMERA_UNSUPPORTED
471
- )
472
- return ne;
473
- if (
474
- /*$cameraStatusStore*/
475
- a[1] === L.CAMERA_NOT_STARTED
476
- )
477
- return re;
478
- if (
479
- /*$cameraStatusStore*/
480
- a[1] === L.CAMERA_ORIENTATION_PORTRAIT && /*$collectorSelect*/
481
- a[3] == "FACE"
482
- )
483
- return ue;
484
- if (
485
- /*$cameraStatusStore*/
486
- a[1] === L.CAMERA_ORIENTATION_LANDSCAPE && /*$collectorSelect*/
487
- a[3] == "DOCUMENT"
488
- )
489
- return ie;
490
- }
491
- let n = l(i), s = n && n(i);
492
- return {
493
- c() {
494
- t = g("div"), s && s.c(), this.c = H, b(t, "class", "flex flex-col gap-4 justify-center relative overflow-visible p-4");
495
- },
496
- m(a, m) {
497
- f(a, t, m), s && s.m(t, null);
498
- },
499
- p(a, [m]) {
500
- n === (n = l(a)) && s ? s.p(a, m) : (s && s.d(1), s = n && n(a), s && (s.c(), s.m(t, null)));
501
- },
502
- i: H,
503
- o: H,
504
- d(a) {
505
- a && d(t), s && s.d();
506
- }
507
- };
508
- }
509
- function be(i, t, l) {
510
- let n, s, a, m;
511
- D(i, W, (w) => l(1, n = w)), D(i, Q, (w) => l(2, s = w)), D(i, G, (w) => l(3, a = w)), D(i, U, (w) => l(4, m = w));
512
- let { handler: u = () => {
513
- } } = t;
514
- (n === L.CAMERA_ORIENTATION_LANDSCAPE || n === L.CAMERA_ORIENTATION_PORTRAIT) && setTimeout(
515
- () => {
516
- P(W, n = L.OK, n);
517
- },
518
- 8e3
519
- );
520
- const o = () => {
521
- u(), console.log("canicna", u);
522
- }, h = () => {
523
- u(), console.log("canicna", u);
524
- }, k = () => {
525
- u(), console.log("canicna", u);
526
- }, C = () => {
527
- u();
528
- }, c = () => {
529
- u();
530
- }, p = () => {
531
- u();
532
- }, v = () => {
533
- P(U, m = !0, m), X(!0);
534
- }, _ = () => {
535
- P(U, m = !0, m), X(!1);
536
- };
537
- return i.$$set = (w) => {
538
- l(5, t = T(T({}, t), Z(w))), "handler" in w && l(0, u = w.handler);
539
- }, t = Z(t), [
540
- u,
541
- n,
542
- s,
543
- a,
544
- m,
545
- t,
546
- o,
547
- h,
548
- k,
549
- C,
550
- c,
551
- p,
552
- v,
553
- _
554
- ];
555
- }
556
- class _e extends j {
557
- constructor(t) {
558
- super(), F(
559
- this,
560
- {
561
- target: this.shadowRoot,
562
- props: q(this.attributes),
563
- customElement: !0
564
- },
565
- be,
566
- de,
567
- K,
568
- { handler: 0 },
569
- null
570
- ), t && (t.target && f(t.target, this, t.anchor), t.props && (this.$set(t.props), z()));
571
- }
572
- static get observedAttributes() {
573
- return ["handler"];
574
- }
575
- get handler() {
576
- return this.$$.ctx[0];
577
- }
578
- set handler(t) {
579
- this.$$set({ handler: t }), z();
580
- }
581
- }
582
- customElements.define("camera-status", _e);
583
- function ve(i) {
584
- let t, l, n, s, a, m, u, o, h, k, C;
585
- t = new Y({});
586
- let c = [
587
- { xmlns: "http://www.w3.org/2000/svg" },
588
- { width: "2em" },
589
- { height: "2em" },
590
- { viewBox: "0 0 256 256" },
591
- /*$$props*/
592
- i[3]
593
- ], p = {};
594
- for (let v = 0; v < c.length; v += 1)
595
- p = T(p, c[v]);
596
- return {
597
- c() {
598
- y(t.$$.fragment), l = x(), n = g("div"), s = g("label"), a = O("svg"), m = O("path"), this.c = H, b(m, "fill", "hsl(var(--n))"), b(m, "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"), B(a, p), b(s, "tabindex", "0"), s.hidden = u = /*$cameraDevicesStore*/
599
- i[2].length <= 1, b(s, "class", "ce-dui-btn ce-dui-btn-ghost"), b(n, "class", o = V() && /*$collectorSelect*/
600
- i[1] == "DOCUMENT" ? "absolute right-10 top-10 translate-y-1/2 z-20 rotate-[-90deg]" : V() && /*$collectorSelect*/
601
- i[1] == "FACE" ? "absolute z-20 right-2 sm:block bottom-32" : "absolute z-20 right-2 sm:block bottom-2");
602
- },
603
- m(v, _) {
604
- $(t, v, _), f(v, l, _), f(v, n, _), S(n, s), S(s, a), S(a, m), h = !0, k || (C = N(
605
- n,
606
- "click",
607
- /*click_handler*/
608
- i[4]
609
- ), k = !0);
610
- },
611
- p(v, [_]) {
612
- B(a, p = I(c, [
613
- { xmlns: "http://www.w3.org/2000/svg" },
614
- { width: "2em" },
615
- { height: "2em" },
616
- { viewBox: "0 0 256 256" },
617
- _ & /*$$props*/
618
- 8 && /*$$props*/
619
- v[3]
620
- ])), (!h || _ & /*$cameraDevicesStore*/
621
- 4 && u !== (u = /*$cameraDevicesStore*/
622
- v[2].length <= 1)) && (s.hidden = u), (!h || _ & /*$collectorSelect*/
623
- 2 && o !== (o = V() && /*$collectorSelect*/
624
- v[1] == "DOCUMENT" ? "absolute right-10 top-10 translate-y-1/2 z-20 rotate-[-90deg]" : V() && /*$collectorSelect*/
625
- v[1] == "FACE" ? "absolute z-20 right-2 sm:block bottom-32" : "absolute z-20 right-2 sm:block bottom-2")) && b(n, "class", o);
626
- },
627
- i(v) {
628
- h || (ee(t.$$.fragment, v), h = !0);
629
- },
630
- o(v) {
631
- te(t.$$.fragment, v), h = !1;
632
- },
633
- d(v) {
634
- le(t, v), v && d(l), v && d(n), k = !1, C();
635
- }
636
- };
637
- }
638
- function he(i, t, l) {
639
- let n, s, a;
640
- D(i, J, (u) => l(0, n = u)), D(i, G, (u) => l(1, s = u)), D(i, ae, (u) => l(2, a = u));
641
- const m = () => {
642
- P(J, n = !n, n);
643
- };
644
- return i.$$set = (u) => {
645
- l(3, t = T(T({}, t), Z(u)));
646
- }, t = Z(t), [n, s, a, t, m];
647
- }
648
- class pe extends j {
649
- constructor(t) {
650
- super(), F(
651
- this,
652
- {
653
- target: this.shadowRoot,
654
- props: q(this.attributes),
655
- customElement: !0
656
- },
657
- he,
658
- ve,
659
- K,
660
- {},
661
- null
662
- ), t && (t.target && f(t.target, this, t.anchor), t.props && (this.$set(t.props), z()));
663
- }
664
- }
665
- customElements.define("camera-btn", pe);
666
- function we(i) {
667
- let t, l, n = (
668
- /*$_*/
669
- i[5]("faceCollector.capture") + ""
670
- ), s, a, m;
671
- return {
672
- c() {
673
- t = g("div"), l = g("button"), s = R(n), b(
674
- l,
675
- "id",
676
- /*id*/
677
- i[1]
678
- ), l.disabled = /*disabled*/
679
- i[2], l.hidden = /*hidden*/
680
- i[3], b(l, "class", V() ? "ce-dui-btn ce-dui-btn-primary text-xl pb-[2px] absolute z-20 bottom-32" : "ce-dui-btn ce-dui-btn-primary text-xl pb-[2px] absolute z-20 bottom-2"), b(t, "class", "flex justify-center items-center");
681
- },
682
- m(u, o) {
683
- f(u, t, o), S(t, l), S(l, s), a || (m = N(
684
- l,
685
- "click",
686
- /*click_handler_2*/
687
- i[8]
688
- ), a = !0);
689
- },
690
- p(u, o) {
691
- o & /*$_*/
692
- 32 && n !== (n = /*$_*/
693
- u[5]("faceCollector.capture") + "") && M(s, n), o & /*id*/
694
- 2 && b(
695
- l,
696
- "id",
697
- /*id*/
698
- u[1]
699
- ), o & /*disabled*/
700
- 4 && (l.disabled = /*disabled*/
701
- u[2]), o & /*hidden*/
702
- 8 && (l.hidden = /*hidden*/
703
- u[3]);
704
- },
705
- d(u) {
706
- u && d(t), a = !1, m();
707
- }
708
- };
709
- }
710
- function Se(i) {
711
- let t, l, n = (
712
- /*$_*/
713
- i[5]("docCollector.capture") + ""
714
- ), s, a, m;
715
- return {
716
- c() {
717
- t = g("div"), l = g("button"), s = R(n), b(
718
- l,
719
- "id",
720
- /*id*/
721
- i[1]
722
- ), l.disabled = /*disabled*/
723
- i[2], l.hidden = /*hidden*/
724
- i[3], b(l, "class", "ce-dui-btn ce-dui-btn-primary text-xl pb-[2px] absolute z-10 bottom-2"), b(t, "class", "flex justify-center items-center");
725
- },
726
- m(u, o) {
727
- f(u, t, o), S(t, l), S(l, s), a || (m = N(
728
- l,
729
- "click",
730
- /*click_handler_1*/
731
- i[7]
732
- ), a = !0);
733
- },
734
- p(u, o) {
735
- o & /*$_*/
736
- 32 && n !== (n = /*$_*/
737
- u[5]("docCollector.capture") + "") && M(s, n), o & /*id*/
738
- 2 && b(
739
- l,
740
- "id",
741
- /*id*/
742
- u[1]
743
- ), o & /*disabled*/
744
- 4 && (l.disabled = /*disabled*/
745
- u[2]), o & /*hidden*/
746
- 8 && (l.hidden = /*hidden*/
747
- u[3]);
748
- },
749
- d(u) {
750
- u && d(t), a = !1, m();
751
- }
752
- };
753
- }
754
- function ke(i) {
755
- let t, l, n = (
756
- /*$_*/
757
- i[5]("docCollector.capture") + ""
758
- ), s, a, m;
759
- return {
760
- c() {
761
- t = g("div"), l = g("button"), s = R(n), b(
762
- l,
763
- "id",
764
- /*id*/
765
- i[1]
766
- ), l.disabled = /*disabled*/
767
- i[2], l.hidden = /*hidden*/
768
- i[3], b(l, "class", "ce-dui-btn ce-dui-btn-primary text-xl pb-[2px]"), b(t, "class", "absolute right-2 top-1/2 -translate-y-1/2 z-20 rotate-[-90deg]");
769
- },
770
- m(u, o) {
771
- f(u, t, o), S(t, l), S(l, s), a || (m = N(
772
- l,
773
- "click",
774
- /*click_handler*/
775
- i[6]
776
- ), a = !0);
777
- },
778
- p(u, o) {
779
- o & /*$_*/
780
- 32 && n !== (n = /*$_*/
781
- u[5]("docCollector.capture") + "") && M(s, n), o & /*id*/
782
- 2 && b(
783
- l,
784
- "id",
785
- /*id*/
786
- u[1]
787
- ), o & /*disabled*/
788
- 4 && (l.disabled = /*disabled*/
789
- u[2]), o & /*hidden*/
790
- 8 && (l.hidden = /*hidden*/
791
- u[3]);
792
- },
793
- d(u) {
794
- u && d(t), a = !1, m();
795
- }
796
- };
797
- }
798
- function Ce(i) {
799
- let t, l;
800
- function n(m, u) {
801
- return u & /*$collectorSelect*/
802
- 16 && (t = null), t == null && (t = !!(V() && /*$collectorSelect*/
803
- m[4] == "DOCUMENT")), t ? ke : (
804
- /*$collectorSelect*/
805
- m[4] == "DOCUMENT" ? Se : we
806
- );
807
- }
808
- let s = n(i, -1), a = s(i);
809
- return {
810
- c() {
811
- a.c(), l = se(), this.c = H;
812
- },
813
- m(m, u) {
814
- a.m(m, u), f(m, l, u);
815
- },
816
- p(m, [u]) {
817
- s === (s = n(m, u)) && a ? a.p(m, u) : (a.d(1), a = s(m), a && (a.c(), a.m(l.parentNode, l)));
818
- },
819
- i: H,
820
- o: H,
821
- d(m) {
822
- a.d(m), m && d(l);
823
- }
824
- };
825
- }
826
- function Ae(i, t, l) {
827
- let n, s;
828
- D(i, G, (c) => l(4, n = c)), D(i, Q, (c) => l(5, s = c));
829
- let { handler: a = () => {
830
- } } = t, { id: m = "" } = t, { disabled: u = !1 } = t, { hidden: o = !1 } = t;
831
- const h = () => a(), k = () => a(), C = () => a();
832
- return i.$$set = (c) => {
833
- "handler" in c && l(0, a = c.handler), "id" in c && l(1, m = c.id), "disabled" in c && l(2, u = c.disabled), "hidden" in c && l(3, o = c.hidden);
834
- }, [
835
- a,
836
- m,
837
- u,
838
- o,
839
- n,
840
- s,
841
- h,
842
- k,
843
- C
844
- ];
845
- }
846
- class ge extends j {
847
- constructor(t) {
848
- super(), F(
849
- this,
850
- {
851
- target: this.shadowRoot,
852
- props: q(this.attributes),
853
- customElement: !0
854
- },
855
- Ae,
856
- Ce,
857
- K,
858
- {
859
- handler: 0,
860
- id: 1,
861
- disabled: 2,
862
- hidden: 3
863
- },
864
- null
865
- ), t && (t.target && f(t.target, this, t.anchor), t.props && (this.$set(t.props), z()));
866
- }
867
- static get observedAttributes() {
868
- return ["handler", "id", "disabled", "hidden"];
869
- }
870
- get handler() {
871
- return this.$$.ctx[0];
872
- }
873
- set handler(t) {
874
- this.$$set({ handler: t }), z();
875
- }
876
- get id() {
877
- return this.$$.ctx[1];
878
- }
879
- set id(t) {
880
- this.$$set({ id: t }), z();
881
- }
882
- get disabled() {
883
- return this.$$.ctx[2];
884
- }
885
- set disabled(t) {
886
- this.$$set({ disabled: t }), z();
887
- }
888
- get hidden() {
889
- return this.$$.ctx[3];
890
- }
891
- set hidden(t) {
892
- this.$$set({ hidden: t }), z();
893
- }
894
- }
895
- customElements.define("take-picture-btn", ge);
896
- export {
897
- pe as C,
898
- ge as T,
899
- _e as a
900
- };