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