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