bry-biometric-collector 2.2.22 → 2.2.23
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 +1 -19
- package/dist/DocumentCollector_f0541f51_2.2.23.js +1025 -0
- package/dist/FaceCollector_e8de37d8_2.2.23.js +1887 -0
- package/dist/WaterMark_99037cc5_2.2.23.js +1014 -0
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{en-us_901680c0_2.2.22.js → en-us_178afe03_2.2.23.js} +7 -8
- package/dist/{es-cl_1fe1aaa9_2.2.22.js → es-cl_ff8fb88a_2.2.23.js} +1 -2
- package/dist/{fingersApi_2ff95966_2.2.22.js → fingersApi_ddc728a6_2.2.23.js} +1 -1
- package/dist/index.d.ts +3 -13
- package/dist/index.js +1 -1
- package/dist/{main_140d65a3_2.2.22.js → main_af3a4af6_2.2.23.js} +3702 -3718
- package/dist/{pt-br_bef1149f_2.2.22.js → pt-br_feaadca5_2.2.23.js} +2 -3
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/DocumentCollector_1f5cf5e8_2.2.22.js +0 -1023
- package/dist/FaceCollector_657bc65e_2.2.22.js +0 -2000
- package/dist/TakePictureBtn_98c2ad5f_2.2.22.js +0 -848
- /package/dist/{face_api_0e3ce8c8_2.2.22.js → face_api_0e3ce8c8_2.2.23.js} +0 -0
- /package/dist/{index-no-detector_4b302e78_2.2.22.js → index-no-detector_4b302e78_2.2.23.js} +0 -0
@@ -0,0 +1,1014 @@
|
|
1
|
+
import { aR as te, S as P, q as V, r as Z, t as H, w as N, L as R, x as _, z as x, B as D, H as m, I as y, $ as X, X as F, af as W, K as Q, b2 as S, b3 as B, b4 as G, b5 as T, N as E, y as h, b6 as v, D as I, E as C, b7 as Y, G as w, b8 as le, O as ae, C as U, P as se, Q as ie, T as ue, V as Me, aI as J, _ as oe, b9 as q, a0 as re, am as ce, b1 as ne, aP as $, ba as p } from "./main_af3a4af6_2.2.23.js";
|
2
|
+
var k = /* @__PURE__ */ ((s) => (s.OK = "OK", s.DEVICE_NOT_FOUND_ERROR = "DEVICE_NOT_FOUND_ERROR", s.CAMERA_DENIED_ERROR = "CAMERA_DENIED_ERROR", s.CAMERA_IN_USE_ERROR = "CAMERA_IN_USE_ERROR", s.CAMERA_CLOSED_ERROR = "CAMERA_CLOSED_ERROR", s.CAMERA_UNSUPPORTED = "CAMERA_UNSUPPORTED", s.CAMERA_ORIENTATION_PORTRAIT = "CAMERA_ORIENTATION_PORTRAIT", s.CAMERA_ORIENTATION_LANDSCAPE = "CAMERA_ORIENTATION_LANDSCAPE", s))(k || {});
|
3
|
+
const K = te(
|
4
|
+
"OK"
|
5
|
+
/* OK */
|
6
|
+
);
|
7
|
+
function Ne(s) {
|
8
|
+
let t, l, u, i, a = (
|
9
|
+
/*$_*/
|
10
|
+
s[2]("cameraStatus.deviceMustBeInLandscape") + ""
|
11
|
+
), M, o, c, j = (
|
12
|
+
/*$_*/
|
13
|
+
s[2]("cameraStatus.rotateDeviceOrPressButton") + ""
|
14
|
+
), z, A, n, f = (
|
15
|
+
/*$_*/
|
16
|
+
s[2]("cameraStatus.adjustOrientation") + ""
|
17
|
+
), d, g, O, b = [
|
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
|
+
s[5]
|
25
|
+
], L = {};
|
26
|
+
for (let e = 0; e < b.length; e += 1)
|
27
|
+
L = S(L, b[e]);
|
28
|
+
return {
|
29
|
+
c() {
|
30
|
+
t = T("svg"), l = T("path"), u = E(), i = _("span"), M = h(a), o = E(), c = _("span"), z = h(j), A = E(), n = _("button"), d = h(f), 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"), v(t, L), D(i, "class", "text-xl font-bold text-center"), D(c, "class", "m-auto text-base block text-center"), D(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
31
|
+
},
|
32
|
+
m(e, r) {
|
33
|
+
N(e, t, r), I(t, l), N(e, u, r), N(e, i, r), I(i, M), N(e, o, r), N(e, c, r), I(c, z), N(e, A, r), N(e, n, r), I(n, d), g || (O = C(
|
34
|
+
n,
|
35
|
+
"click",
|
36
|
+
/*click_handler_6*/
|
37
|
+
s[12]
|
38
|
+
), g = !0);
|
39
|
+
},
|
40
|
+
p(e, r) {
|
41
|
+
v(t, L = Y(b, [
|
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 && a !== (a = /*$_*/
|
52
|
+
e[2]("cameraStatus.deviceMustBeInLandscape") + "") && w(M, a), r & /*$_*/
|
53
|
+
4 && j !== (j = /*$_*/
|
54
|
+
e[2]("cameraStatus.rotateDeviceOrPressButton") + "") && w(z, j), r & /*$_*/
|
55
|
+
4 && f !== (f = /*$_*/
|
56
|
+
e[2]("cameraStatus.adjustOrientation") + "") && w(d, f);
|
57
|
+
},
|
58
|
+
d(e) {
|
59
|
+
e && m(t), e && m(u), e && m(i), e && m(o), e && m(c), e && m(A), e && m(n), g = !1, O();
|
60
|
+
}
|
61
|
+
};
|
62
|
+
}
|
63
|
+
function De(s) {
|
64
|
+
let t, l, u, i, a = (
|
65
|
+
/*$_*/
|
66
|
+
s[2]("cameraStatus.deviceMustBeInPortrait") + ""
|
67
|
+
), M, o, c, j = (
|
68
|
+
/*$_*/
|
69
|
+
s[2]("cameraStatus.rotateDeviceOrPressButton") + ""
|
70
|
+
), z, A, n, f = (
|
71
|
+
/*$_*/
|
72
|
+
s[2]("cameraStatus.adjustOrientation") + ""
|
73
|
+
), d, g, O, b = [
|
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
|
+
s[5]
|
81
|
+
], L = {};
|
82
|
+
for (let e = 0; e < b.length; e += 1)
|
83
|
+
L = S(L, b[e]);
|
84
|
+
return {
|
85
|
+
c() {
|
86
|
+
t = T("svg"), l = T("path"), u = E(), i = _("span"), M = h(a), o = E(), c = _("span"), z = h(j), A = E(), n = _("button"), d = h(f), 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"), v(t, L), D(i, "class", "text-xl font-bold text-center"), D(c, "class", "m-auto text-base block text-center"), D(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
87
|
+
},
|
88
|
+
m(e, r) {
|
89
|
+
N(e, t, r), I(t, l), N(e, u, r), N(e, i, r), I(i, M), N(e, o, r), N(e, c, r), I(c, z), N(e, A, r), N(e, n, r), I(n, d), g || (O = C(
|
90
|
+
n,
|
91
|
+
"click",
|
92
|
+
/*click_handler_5*/
|
93
|
+
s[11]
|
94
|
+
), g = !0);
|
95
|
+
},
|
96
|
+
p(e, r) {
|
97
|
+
v(t, L = Y(b, [
|
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 && a !== (a = /*$_*/
|
108
|
+
e[2]("cameraStatus.deviceMustBeInPortrait") + "") && w(M, a), r & /*$_*/
|
109
|
+
4 && j !== (j = /*$_*/
|
110
|
+
e[2]("cameraStatus.rotateDeviceOrPressButton") + "") && w(z, j), r & /*$_*/
|
111
|
+
4 && f !== (f = /*$_*/
|
112
|
+
e[2]("cameraStatus.adjustOrientation") + "") && w(d, f);
|
113
|
+
},
|
114
|
+
d(e) {
|
115
|
+
e && m(t), e && m(u), e && m(i), e && m(o), e && m(c), e && m(A), e && m(n), g = !1, O();
|
116
|
+
}
|
117
|
+
};
|
118
|
+
}
|
119
|
+
function me(s) {
|
120
|
+
let t, l, u, i, a = (
|
121
|
+
/*$_*/
|
122
|
+
s[2]("cameraStatus.cameraNotSupported") + ""
|
123
|
+
), M, o, c, j = (
|
124
|
+
/*$_*/
|
125
|
+
s[2]("cameraStatus.connectAnotherCamera") + ""
|
126
|
+
), z, A, n, f = (
|
127
|
+
/*$_*/
|
128
|
+
s[2]("cameraStatus.restart") + ""
|
129
|
+
), d, g, O, b = [
|
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
|
+
s[5]
|
137
|
+
], L = {};
|
138
|
+
for (let e = 0; e < b.length; e += 1)
|
139
|
+
L = S(L, b[e]);
|
140
|
+
return {
|
141
|
+
c() {
|
142
|
+
t = T("svg"), l = T("path"), u = E(), i = _("span"), M = h(a), o = E(), c = _("span"), z = h(j), A = E(), n = _("button"), d = h(f), 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"), v(t, L), D(i, "class", "text-xl font-bold text-center"), D(c, "class", "m-auto text-base block text-center"), D(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
143
|
+
},
|
144
|
+
m(e, r) {
|
145
|
+
N(e, t, r), I(t, l), N(e, u, r), N(e, i, r), I(i, M), N(e, o, r), N(e, c, r), I(c, z), N(e, A, r), N(e, n, r), I(n, d), g || (O = C(
|
146
|
+
n,
|
147
|
+
"click",
|
148
|
+
/*click_handler_4*/
|
149
|
+
s[10]
|
150
|
+
), g = !0);
|
151
|
+
},
|
152
|
+
p(e, r) {
|
153
|
+
v(t, L = Y(b, [
|
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
|
+
r & /*$$props*/
|
160
|
+
32 && /*$$props*/
|
161
|
+
e[5]
|
162
|
+
])), r & /*$_*/
|
163
|
+
4 && a !== (a = /*$_*/
|
164
|
+
e[2]("cameraStatus.cameraNotSupported") + "") && w(M, a), r & /*$_*/
|
165
|
+
4 && j !== (j = /*$_*/
|
166
|
+
e[2]("cameraStatus.connectAnotherCamera") + "") && w(z, j), r & /*$_*/
|
167
|
+
4 && f !== (f = /*$_*/
|
168
|
+
e[2]("cameraStatus.restart") + "") && w(d, f);
|
169
|
+
},
|
170
|
+
d(e) {
|
171
|
+
e && m(t), e && m(u), e && m(i), e && m(o), e && m(c), e && m(A), e && m(n), g = !1, O();
|
172
|
+
}
|
173
|
+
};
|
174
|
+
}
|
175
|
+
function de(s) {
|
176
|
+
let t, l, u, i, a = (
|
177
|
+
/*$_*/
|
178
|
+
s[2]("cameraStatus.stayOnSameTab") + ""
|
179
|
+
), M, o, c, j = (
|
180
|
+
/*$_*/
|
181
|
+
s[2]("cameraStatus.clickRestartToRecapture") + ""
|
182
|
+
), z, A, n, f = (
|
183
|
+
/*$_*/
|
184
|
+
s[2]("cameraStatus.restart") + ""
|
185
|
+
), d, g, O, b = [
|
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
|
+
s[5]
|
193
|
+
], L = {};
|
194
|
+
for (let e = 0; e < b.length; e += 1)
|
195
|
+
L = S(L, b[e]);
|
196
|
+
return {
|
197
|
+
c() {
|
198
|
+
t = T("svg"), l = T("path"), u = E(), i = _("span"), M = h(a), o = E(), c = _("span"), z = h(j), A = E(), n = _("button"), d = h(f), 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"), v(t, L), D(i, "class", "text-xl font-bold text-center"), D(c, "class", "m-auto text-base block text-center"), D(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
199
|
+
},
|
200
|
+
m(e, r) {
|
201
|
+
N(e, t, r), I(t, l), N(e, u, r), N(e, i, r), I(i, M), N(e, o, r), N(e, c, r), I(c, z), N(e, A, r), N(e, n, r), I(n, d), g || (O = C(
|
202
|
+
n,
|
203
|
+
"click",
|
204
|
+
/*click_handler_3*/
|
205
|
+
s[9]
|
206
|
+
), g = !0);
|
207
|
+
},
|
208
|
+
p(e, r) {
|
209
|
+
v(t, L = Y(b, [
|
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
|
+
r & /*$$props*/
|
216
|
+
32 && /*$$props*/
|
217
|
+
e[5]
|
218
|
+
])), r & /*$_*/
|
219
|
+
4 && a !== (a = /*$_*/
|
220
|
+
e[2]("cameraStatus.stayOnSameTab") + "") && w(M, a), r & /*$_*/
|
221
|
+
4 && j !== (j = /*$_*/
|
222
|
+
e[2]("cameraStatus.clickRestartToRecapture") + "") && w(z, j), r & /*$_*/
|
223
|
+
4 && f !== (f = /*$_*/
|
224
|
+
e[2]("cameraStatus.restart") + "") && w(d, f);
|
225
|
+
},
|
226
|
+
d(e) {
|
227
|
+
e && m(t), e && m(u), e && m(i), e && m(o), e && m(c), e && m(A), e && m(n), g = !1, O();
|
228
|
+
}
|
229
|
+
};
|
230
|
+
}
|
231
|
+
function je(s) {
|
232
|
+
let t, l, u, i, a = (
|
233
|
+
/*$_*/
|
234
|
+
s[2]("cameraStatus.cameraInUse") + ""
|
235
|
+
), M, o, c, j = (
|
236
|
+
/*$_*/
|
237
|
+
s[2]("cameraStatus.ensureCameraNotInUse") + ""
|
238
|
+
), z, A, n, f = (
|
239
|
+
/*$_*/
|
240
|
+
s[2]("cameraStatus.restart") + ""
|
241
|
+
), d, g, O, b = [
|
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
|
+
s[5]
|
249
|
+
], L = {};
|
250
|
+
for (let e = 0; e < b.length; e += 1)
|
251
|
+
L = S(L, b[e]);
|
252
|
+
return {
|
253
|
+
c() {
|
254
|
+
t = T("svg"), l = T("path"), u = E(), i = _("span"), M = h(a), o = E(), c = _("span"), z = h(j), A = E(), n = _("button"), d = h(f), 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"), v(t, L), D(i, "class", "text-xl font-bold text-center"), D(c, "class", "m-auto text-base block text-center"), D(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
255
|
+
},
|
256
|
+
m(e, r) {
|
257
|
+
N(e, t, r), I(t, l), N(e, u, r), N(e, i, r), I(i, M), N(e, o, r), N(e, c, r), I(c, z), N(e, A, r), N(e, n, r), I(n, d), g || (O = C(
|
258
|
+
n,
|
259
|
+
"click",
|
260
|
+
/*click_handler_2*/
|
261
|
+
s[8]
|
262
|
+
), g = !0);
|
263
|
+
},
|
264
|
+
p(e, r) {
|
265
|
+
v(t, L = Y(b, [
|
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
|
+
r & /*$$props*/
|
272
|
+
32 && /*$$props*/
|
273
|
+
e[5]
|
274
|
+
])), r & /*$_*/
|
275
|
+
4 && a !== (a = /*$_*/
|
276
|
+
e[2]("cameraStatus.cameraInUse") + "") && w(M, a), r & /*$_*/
|
277
|
+
4 && j !== (j = /*$_*/
|
278
|
+
e[2]("cameraStatus.ensureCameraNotInUse") + "") && w(z, j), r & /*$_*/
|
279
|
+
4 && f !== (f = /*$_*/
|
280
|
+
e[2]("cameraStatus.restart") + "") && w(d, f);
|
281
|
+
},
|
282
|
+
d(e) {
|
283
|
+
e && m(t), e && m(u), e && m(i), e && m(o), e && m(c), e && m(A), e && m(n), g = !1, O();
|
284
|
+
}
|
285
|
+
};
|
286
|
+
}
|
287
|
+
function fe(s) {
|
288
|
+
let t, l, u, i, a = (
|
289
|
+
/*$_*/
|
290
|
+
s[2]("cameraStatus.cameraNotDetected") + ""
|
291
|
+
), M, o, c, j = (
|
292
|
+
/*$_*/
|
293
|
+
s[2]("cameraStatus.connectCameraAndRestart") + ""
|
294
|
+
), z, A, n, f = (
|
295
|
+
/*$_*/
|
296
|
+
s[2]("cameraStatus.restart") + ""
|
297
|
+
), d, g, O, b = [
|
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
|
+
s[5]
|
305
|
+
], L = {};
|
306
|
+
for (let e = 0; e < b.length; e += 1)
|
307
|
+
L = S(L, b[e]);
|
308
|
+
return {
|
309
|
+
c() {
|
310
|
+
t = T("svg"), l = T("path"), u = E(), i = _("span"), M = h(a), o = E(), c = _("span"), z = h(j), A = E(), n = _("button"), d = h(f), 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"), v(t, L), D(i, "class", "text-xl font-bold text-center"), D(c, "class", "m-auto text-base block text-center"), D(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
311
|
+
},
|
312
|
+
m(e, r) {
|
313
|
+
N(e, t, r), I(t, l), N(e, u, r), N(e, i, r), I(i, M), N(e, o, r), N(e, c, r), I(c, z), N(e, A, r), N(e, n, r), I(n, d), g || (O = C(
|
314
|
+
n,
|
315
|
+
"click",
|
316
|
+
/*click_handler_1*/
|
317
|
+
s[7]
|
318
|
+
), g = !0);
|
319
|
+
},
|
320
|
+
p(e, r) {
|
321
|
+
v(t, L = Y(b, [
|
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
|
+
r & /*$$props*/
|
328
|
+
32 && /*$$props*/
|
329
|
+
e[5]
|
330
|
+
])), r & /*$_*/
|
331
|
+
4 && a !== (a = /*$_*/
|
332
|
+
e[2]("cameraStatus.cameraNotDetected") + "") && w(M, a), r & /*$_*/
|
333
|
+
4 && j !== (j = /*$_*/
|
334
|
+
e[2]("cameraStatus.connectCameraAndRestart") + "") && w(z, j), r & /*$_*/
|
335
|
+
4 && f !== (f = /*$_*/
|
336
|
+
e[2]("cameraStatus.restart") + "") && w(d, f);
|
337
|
+
},
|
338
|
+
d(e) {
|
339
|
+
e && m(t), e && m(u), e && m(i), e && m(o), e && m(c), e && m(A), e && m(n), g = !1, O();
|
340
|
+
}
|
341
|
+
};
|
342
|
+
}
|
343
|
+
function ge(s) {
|
344
|
+
let t, l, u, i, a = (
|
345
|
+
/*$_*/
|
346
|
+
s[2]("cameraStatus.cameraPermission") + ""
|
347
|
+
), M, o, c, j = (
|
348
|
+
/*$_*/
|
349
|
+
s[2]("cameraStatus.clickRestartButton") + ""
|
350
|
+
), z, A, n, f = (
|
351
|
+
/*$_*/
|
352
|
+
s[2]("cameraStatus.restart") + ""
|
353
|
+
), d, g, O, b = [
|
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
|
+
s[5]
|
361
|
+
], L = {};
|
362
|
+
for (let e = 0; e < b.length; e += 1)
|
363
|
+
L = S(L, b[e]);
|
364
|
+
return {
|
365
|
+
c() {
|
366
|
+
t = T("svg"), l = T("path"), u = E(), i = _("span"), M = h(a), o = E(), c = _("span"), z = h(j), A = E(), n = _("button"), d = h(f), 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"), v(t, L), D(i, "class", "text-xl font-bold text-center"), D(c, "class", "m-auto text-base block text-center"), D(n, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
367
|
+
},
|
368
|
+
m(e, r) {
|
369
|
+
N(e, t, r), I(t, l), N(e, u, r), N(e, i, r), I(i, M), N(e, o, r), N(e, c, r), I(c, z), N(e, A, r), N(e, n, r), I(n, d), g || (O = C(
|
370
|
+
n,
|
371
|
+
"click",
|
372
|
+
/*click_handler*/
|
373
|
+
s[6]
|
374
|
+
), g = !0);
|
375
|
+
},
|
376
|
+
p(e, r) {
|
377
|
+
v(t, L = Y(b, [
|
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
|
+
r & /*$$props*/
|
384
|
+
32 && /*$$props*/
|
385
|
+
e[5]
|
386
|
+
])), r & /*$_*/
|
387
|
+
4 && a !== (a = /*$_*/
|
388
|
+
e[2]("cameraStatus.cameraPermission") + "") && w(M, a), r & /*$_*/
|
389
|
+
4 && j !== (j = /*$_*/
|
390
|
+
e[2]("cameraStatus.clickRestartButton") + "") && w(z, j), r & /*$_*/
|
391
|
+
4 && f !== (f = /*$_*/
|
392
|
+
e[2]("cameraStatus.restart") + "") && w(d, f);
|
393
|
+
},
|
394
|
+
d(e) {
|
395
|
+
e && m(t), e && m(u), e && m(i), e && m(o), e && m(c), e && m(A), e && m(n), g = !1, O();
|
396
|
+
}
|
397
|
+
};
|
398
|
+
}
|
399
|
+
function Ie(s) {
|
400
|
+
let t;
|
401
|
+
function l(a, M) {
|
402
|
+
if (
|
403
|
+
/*$cameraStatusStore*/
|
404
|
+
a[1] === k.CAMERA_DENIED_ERROR
|
405
|
+
)
|
406
|
+
return ge;
|
407
|
+
if (
|
408
|
+
/*$cameraStatusStore*/
|
409
|
+
a[1] === k.DEVICE_NOT_FOUND_ERROR
|
410
|
+
)
|
411
|
+
return fe;
|
412
|
+
if (
|
413
|
+
/*$cameraStatusStore*/
|
414
|
+
a[1] === k.CAMERA_IN_USE_ERROR
|
415
|
+
)
|
416
|
+
return je;
|
417
|
+
if (
|
418
|
+
/*$cameraStatusStore*/
|
419
|
+
a[1] === k.CAMERA_CLOSED_ERROR
|
420
|
+
)
|
421
|
+
return de;
|
422
|
+
if (
|
423
|
+
/*$cameraStatusStore*/
|
424
|
+
a[1] === k.CAMERA_UNSUPPORTED
|
425
|
+
)
|
426
|
+
return me;
|
427
|
+
if (
|
428
|
+
/*$cameraStatusStore*/
|
429
|
+
a[1] === k.CAMERA_ORIENTATION_PORTRAIT && /*$collectorSelect*/
|
430
|
+
a[3] == "FACE"
|
431
|
+
)
|
432
|
+
return De;
|
433
|
+
if (
|
434
|
+
/*$cameraStatusStore*/
|
435
|
+
a[1] === k.CAMERA_ORIENTATION_LANDSCAPE && /*$collectorSelect*/
|
436
|
+
a[3] == "DOCUMENT"
|
437
|
+
)
|
438
|
+
return Ne;
|
439
|
+
}
|
440
|
+
let u = l(s), i = u && u(s);
|
441
|
+
return {
|
442
|
+
c() {
|
443
|
+
t = _("div"), i && i.c(), this.c = x, D(t, "class", "flex flex-col gap-4 justify-center relative overflow-visible");
|
444
|
+
},
|
445
|
+
m(a, M) {
|
446
|
+
N(a, t, M), i && i.m(t, null);
|
447
|
+
},
|
448
|
+
p(a, [M]) {
|
449
|
+
u === (u = l(a)) && i ? i.p(a, M) : (i && i.d(1), i = u && u(a), i && (i.c(), i.m(t, null)));
|
450
|
+
},
|
451
|
+
i: x,
|
452
|
+
o: x,
|
453
|
+
d(a) {
|
454
|
+
a && m(t), i && i.d();
|
455
|
+
}
|
456
|
+
};
|
457
|
+
}
|
458
|
+
function ze(s, t, l) {
|
459
|
+
let u, i, a, M;
|
460
|
+
y(s, K, (g) => l(1, u = g)), y(s, X, (g) => l(2, i = g)), y(s, F, (g) => l(3, a = g)), y(s, W, (g) => l(4, M = g));
|
461
|
+
let { handler: o = () => {
|
462
|
+
} } = t;
|
463
|
+
(u === k.CAMERA_ORIENTATION_LANDSCAPE || u === k.CAMERA_ORIENTATION_PORTRAIT) && setTimeout(
|
464
|
+
() => {
|
465
|
+
Q(K, u = k.OK, u);
|
466
|
+
},
|
467
|
+
8e3
|
468
|
+
);
|
469
|
+
const c = () => {
|
470
|
+
o(), console.log("canicna", o);
|
471
|
+
}, j = () => {
|
472
|
+
o(), console.log("canicna", o);
|
473
|
+
}, z = () => {
|
474
|
+
o(), console.log("canicna", o);
|
475
|
+
}, A = () => {
|
476
|
+
o();
|
477
|
+
}, n = () => {
|
478
|
+
o();
|
479
|
+
}, f = () => {
|
480
|
+
Q(W, M = !0, M), G(!0);
|
481
|
+
}, d = () => {
|
482
|
+
Q(W, M = !0, M), G(!1);
|
483
|
+
};
|
484
|
+
return s.$$set = (g) => {
|
485
|
+
l(5, t = S(S({}, t), B(g))), "handler" in g && l(0, o = g.handler);
|
486
|
+
}, t = B(t), [
|
487
|
+
o,
|
488
|
+
u,
|
489
|
+
i,
|
490
|
+
a,
|
491
|
+
M,
|
492
|
+
t,
|
493
|
+
c,
|
494
|
+
j,
|
495
|
+
z,
|
496
|
+
A,
|
497
|
+
n,
|
498
|
+
f,
|
499
|
+
d
|
500
|
+
];
|
501
|
+
}
|
502
|
+
class Ae extends P {
|
503
|
+
constructor(t) {
|
504
|
+
super(), V(
|
505
|
+
this,
|
506
|
+
{
|
507
|
+
target: this.shadowRoot,
|
508
|
+
props: H(this.attributes),
|
509
|
+
customElement: !0
|
510
|
+
},
|
511
|
+
ze,
|
512
|
+
Ie,
|
513
|
+
Z,
|
514
|
+
{ handler: 0 },
|
515
|
+
null
|
516
|
+
), t && (t.target && N(t.target, this, t.anchor), t.props && (this.$set(t.props), R()));
|
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 }), R();
|
526
|
+
}
|
527
|
+
}
|
528
|
+
customElements.define("camera-status", Ae);
|
529
|
+
function _e(s) {
|
530
|
+
let t, l, u, i, a, M, o, c, j, z, A;
|
531
|
+
t = new le({});
|
532
|
+
let n = [
|
533
|
+
{ xmlns: "http://www.w3.org/2000/svg" },
|
534
|
+
{ width: "2em" },
|
535
|
+
{ height: "2em" },
|
536
|
+
{ viewBox: "0 0 256 256" },
|
537
|
+
/*$$props*/
|
538
|
+
s[3]
|
539
|
+
], f = {};
|
540
|
+
for (let d = 0; d < n.length; d += 1)
|
541
|
+
f = S(f, n[d]);
|
542
|
+
return {
|
543
|
+
c() {
|
544
|
+
ae(t.$$.fragment), l = E(), u = _("div"), i = _("label"), a = T("svg"), M = T("path"), this.c = x, D(M, "fill", "currentColor"), 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"), v(a, f), D(i, "tabindex", "0"), i.hidden = o = /*$cameraDevicesStore*/
|
545
|
+
s[2].length == 1, D(i, "class", "ce-dui-btn ce-dui-btn-ghost"), D(u, "class", c = U() && /*$collectorSelect*/
|
546
|
+
s[1] == "DOCUMENT" ? "ce-dui-dropdown ce-dui-dropdown-top absolute right-10 top-10 translate-y-1/2 z-20 rotate-[-90deg]" : U() && /*$collectorSelect*/
|
547
|
+
s[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(d, g) {
|
550
|
+
se(t, d, g), N(d, l, g), N(d, u, g), I(u, i), I(i, a), I(a, M), j = !0, z || (A = C(
|
551
|
+
u,
|
552
|
+
"click",
|
553
|
+
/*click_handler*/
|
554
|
+
s[4]
|
555
|
+
), z = !0);
|
556
|
+
},
|
557
|
+
p(d, [g]) {
|
558
|
+
v(a, f = Y(n, [
|
559
|
+
{ xmlns: "http://www.w3.org/2000/svg" },
|
560
|
+
{ width: "2em" },
|
561
|
+
{ height: "2em" },
|
562
|
+
{ viewBox: "0 0 256 256" },
|
563
|
+
g & /*$$props*/
|
564
|
+
8 && /*$$props*/
|
565
|
+
d[3]
|
566
|
+
])), (!j || g & /*$cameraDevicesStore*/
|
567
|
+
4 && o !== (o = /*$cameraDevicesStore*/
|
568
|
+
d[2].length == 1)) && (i.hidden = o), (!j || g & /*$collectorSelect*/
|
569
|
+
2 && c !== (c = U() && /*$collectorSelect*/
|
570
|
+
d[1] == "DOCUMENT" ? "ce-dui-dropdown ce-dui-dropdown-top absolute right-10 top-10 translate-y-1/2 z-20 rotate-[-90deg]" : U() && /*$collectorSelect*/
|
571
|
+
d[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")) && D(u, "class", c);
|
572
|
+
},
|
573
|
+
i(d) {
|
574
|
+
j || (ie(t.$$.fragment, d), j = !0);
|
575
|
+
},
|
576
|
+
o(d) {
|
577
|
+
ue(t.$$.fragment, d), j = !1;
|
578
|
+
},
|
579
|
+
d(d) {
|
580
|
+
Me(t, d), d && m(l), d && m(u), z = !1, A();
|
581
|
+
}
|
582
|
+
};
|
583
|
+
}
|
584
|
+
function Le(s, t, l) {
|
585
|
+
let u, i, a;
|
586
|
+
y(s, J, (o) => l(0, u = o)), y(s, F, (o) => l(1, i = o)), y(s, oe, (o) => l(2, a = o));
|
587
|
+
const M = () => {
|
588
|
+
Q(J, u = !u, u);
|
589
|
+
};
|
590
|
+
return s.$$set = (o) => {
|
591
|
+
l(3, t = S(S({}, t), B(o)));
|
592
|
+
}, t = B(t), [u, i, a, t, M];
|
593
|
+
}
|
594
|
+
class be extends P {
|
595
|
+
constructor(t) {
|
596
|
+
super(), V(
|
597
|
+
this,
|
598
|
+
{
|
599
|
+
target: this.shadowRoot,
|
600
|
+
props: H(this.attributes),
|
601
|
+
customElement: !0
|
602
|
+
},
|
603
|
+
Le,
|
604
|
+
_e,
|
605
|
+
Z,
|
606
|
+
{},
|
607
|
+
null
|
608
|
+
), t && (t.target && N(t.target, this, t.anchor), t.props && (this.$set(t.props), R()));
|
609
|
+
}
|
610
|
+
}
|
611
|
+
customElements.define("camera-btn", be);
|
612
|
+
function he(s) {
|
613
|
+
let t, l, u = (
|
614
|
+
/*$_*/
|
615
|
+
s[5]("faceCollector.capture") + ""
|
616
|
+
), i, a, M;
|
617
|
+
return {
|
618
|
+
c() {
|
619
|
+
t = _("div"), l = _("button"), i = h(u), D(
|
620
|
+
l,
|
621
|
+
"id",
|
622
|
+
/*id*/
|
623
|
+
s[1]
|
624
|
+
), l.disabled = /*disabled*/
|
625
|
+
s[2], l.hidden = /*hidden*/
|
626
|
+
s[3], D(l, "class", U() ? "ce-dui-btn ce-dui-btn-primary text-xl absolute z-20 bottom-10" : "ce-dui-btn ce-dui-btn-primary text-xl absolute z-20 bottom-2"), D(t, "class", "flex justify-center items-center");
|
627
|
+
},
|
628
|
+
m(o, c) {
|
629
|
+
N(o, t, c), I(t, l), I(l, i), a || (M = C(
|
630
|
+
l,
|
631
|
+
"click",
|
632
|
+
/*click_handler_2*/
|
633
|
+
s[8]
|
634
|
+
), a = !0);
|
635
|
+
},
|
636
|
+
p(o, c) {
|
637
|
+
c & /*$_*/
|
638
|
+
32 && u !== (u = /*$_*/
|
639
|
+
o[5]("faceCollector.capture") + "") && w(i, u), c & /*id*/
|
640
|
+
2 && D(
|
641
|
+
l,
|
642
|
+
"id",
|
643
|
+
/*id*/
|
644
|
+
o[1]
|
645
|
+
), c & /*disabled*/
|
646
|
+
4 && (l.disabled = /*disabled*/
|
647
|
+
o[2]), c & /*hidden*/
|
648
|
+
8 && (l.hidden = /*hidden*/
|
649
|
+
o[3]);
|
650
|
+
},
|
651
|
+
d(o) {
|
652
|
+
o && m(t), a = !1, M();
|
653
|
+
}
|
654
|
+
};
|
655
|
+
}
|
656
|
+
function we(s) {
|
657
|
+
let t, l, u = (
|
658
|
+
/*$_*/
|
659
|
+
s[5]("docCollector.capture") + ""
|
660
|
+
), i, a, M;
|
661
|
+
return {
|
662
|
+
c() {
|
663
|
+
t = _("div"), l = _("button"), i = h(u), D(
|
664
|
+
l,
|
665
|
+
"id",
|
666
|
+
/*id*/
|
667
|
+
s[1]
|
668
|
+
), l.disabled = /*disabled*/
|
669
|
+
s[2], l.hidden = /*hidden*/
|
670
|
+
s[3], D(l, "class", "ce-dui-btn ce-dui-btn-primary text-xl absolute z-10 bottom-2"), D(t, "class", "flex justify-center items-center");
|
671
|
+
},
|
672
|
+
m(o, c) {
|
673
|
+
N(o, t, c), I(t, l), I(l, i), a || (M = C(
|
674
|
+
l,
|
675
|
+
"click",
|
676
|
+
/*click_handler_1*/
|
677
|
+
s[7]
|
678
|
+
), a = !0);
|
679
|
+
},
|
680
|
+
p(o, c) {
|
681
|
+
c & /*$_*/
|
682
|
+
32 && u !== (u = /*$_*/
|
683
|
+
o[5]("docCollector.capture") + "") && w(i, u), c & /*id*/
|
684
|
+
2 && D(
|
685
|
+
l,
|
686
|
+
"id",
|
687
|
+
/*id*/
|
688
|
+
o[1]
|
689
|
+
), c & /*disabled*/
|
690
|
+
4 && (l.disabled = /*disabled*/
|
691
|
+
o[2]), c & /*hidden*/
|
692
|
+
8 && (l.hidden = /*hidden*/
|
693
|
+
o[3]);
|
694
|
+
},
|
695
|
+
d(o) {
|
696
|
+
o && m(t), a = !1, M();
|
697
|
+
}
|
698
|
+
};
|
699
|
+
}
|
700
|
+
function Ee(s) {
|
701
|
+
let t, l, u = (
|
702
|
+
/*$_*/
|
703
|
+
s[5]("docCollector.capture") + ""
|
704
|
+
), i, a, M;
|
705
|
+
return {
|
706
|
+
c() {
|
707
|
+
t = _("div"), l = _("button"), i = h(u), D(
|
708
|
+
l,
|
709
|
+
"id",
|
710
|
+
/*id*/
|
711
|
+
s[1]
|
712
|
+
), l.disabled = /*disabled*/
|
713
|
+
s[2], l.hidden = /*hidden*/
|
714
|
+
s[3], D(l, "class", "ce-dui-btn ce-dui-btn-primary text-xl"), D(t, "class", "absolute right-2 top-1/2 -translate-y-1/2 z-20 rotate-[-90deg]");
|
715
|
+
},
|
716
|
+
m(o, c) {
|
717
|
+
N(o, t, c), I(t, l), I(l, i), a || (M = C(
|
718
|
+
l,
|
719
|
+
"click",
|
720
|
+
/*click_handler*/
|
721
|
+
s[6]
|
722
|
+
), a = !0);
|
723
|
+
},
|
724
|
+
p(o, c) {
|
725
|
+
c & /*$_*/
|
726
|
+
32 && u !== (u = /*$_*/
|
727
|
+
o[5]("docCollector.capture") + "") && w(i, u), c & /*id*/
|
728
|
+
2 && D(
|
729
|
+
l,
|
730
|
+
"id",
|
731
|
+
/*id*/
|
732
|
+
o[1]
|
733
|
+
), c & /*disabled*/
|
734
|
+
4 && (l.disabled = /*disabled*/
|
735
|
+
o[2]), c & /*hidden*/
|
736
|
+
8 && (l.hidden = /*hidden*/
|
737
|
+
o[3]);
|
738
|
+
},
|
739
|
+
d(o) {
|
740
|
+
o && m(t), a = !1, M();
|
741
|
+
}
|
742
|
+
};
|
743
|
+
}
|
744
|
+
function Oe(s) {
|
745
|
+
let t, l;
|
746
|
+
function u(M, o) {
|
747
|
+
return o & /*$collectorSelect*/
|
748
|
+
16 && (t = null), t == null && (t = !!(U() && /*$collectorSelect*/
|
749
|
+
M[4] == "DOCUMENT")), t ? Ee : (
|
750
|
+
/*$collectorSelect*/
|
751
|
+
M[4] == "DOCUMENT" ? we : he
|
752
|
+
);
|
753
|
+
}
|
754
|
+
let i = u(s, -1), a = i(s);
|
755
|
+
return {
|
756
|
+
c() {
|
757
|
+
a.c(), l = q(), this.c = x;
|
758
|
+
},
|
759
|
+
m(M, o) {
|
760
|
+
a.m(M, o), N(M, l, o);
|
761
|
+
},
|
762
|
+
p(M, [o]) {
|
763
|
+
i === (i = u(M, o)) && a ? a.p(M, o) : (a.d(1), a = i(M), a && (a.c(), a.m(l.parentNode, l)));
|
764
|
+
},
|
765
|
+
i: x,
|
766
|
+
o: x,
|
767
|
+
d(M) {
|
768
|
+
a.d(M), M && m(l);
|
769
|
+
}
|
770
|
+
};
|
771
|
+
}
|
772
|
+
function Te(s, t, l) {
|
773
|
+
let u, i;
|
774
|
+
y(s, F, (n) => l(4, u = n)), y(s, X, (n) => l(5, i = n));
|
775
|
+
let { handler: a = () => {
|
776
|
+
} } = t, { id: M = "" } = t, { disabled: o = !1 } = t, { hidden: c = !1 } = t;
|
777
|
+
const j = () => a(), z = () => a(), A = () => a();
|
778
|
+
return s.$$set = (n) => {
|
779
|
+
"handler" in n && l(0, a = n.handler), "id" in n && l(1, M = n.id), "disabled" in n && l(2, o = n.disabled), "hidden" in n && l(3, c = n.hidden);
|
780
|
+
}, [
|
781
|
+
a,
|
782
|
+
M,
|
783
|
+
o,
|
784
|
+
c,
|
785
|
+
u,
|
786
|
+
i,
|
787
|
+
j,
|
788
|
+
z,
|
789
|
+
A
|
790
|
+
];
|
791
|
+
}
|
792
|
+
class ve extends P {
|
793
|
+
constructor(t) {
|
794
|
+
super(), V(
|
795
|
+
this,
|
796
|
+
{
|
797
|
+
target: this.shadowRoot,
|
798
|
+
props: H(this.attributes),
|
799
|
+
customElement: !0
|
800
|
+
},
|
801
|
+
Te,
|
802
|
+
Oe,
|
803
|
+
Z,
|
804
|
+
{
|
805
|
+
handler: 0,
|
806
|
+
id: 1,
|
807
|
+
disabled: 2,
|
808
|
+
hidden: 3
|
809
|
+
},
|
810
|
+
null
|
811
|
+
), t && (t.target && N(t.target, this, t.anchor), t.props && (this.$set(t.props), R()));
|
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 }), R();
|
821
|
+
}
|
822
|
+
get id() {
|
823
|
+
return this.$$.ctx[1];
|
824
|
+
}
|
825
|
+
set id(t) {
|
826
|
+
this.$$set({ id: t }), R();
|
827
|
+
}
|
828
|
+
get disabled() {
|
829
|
+
return this.$$.ctx[2];
|
830
|
+
}
|
831
|
+
set disabled(t) {
|
832
|
+
this.$$set({ disabled: t }), R();
|
833
|
+
}
|
834
|
+
get hidden() {
|
835
|
+
return this.$$.ctx[3];
|
836
|
+
}
|
837
|
+
set hidden(t) {
|
838
|
+
this.$$set({ hidden: t }), R();
|
839
|
+
}
|
840
|
+
}
|
841
|
+
customElements.define("take-picture-btn", ve);
|
842
|
+
const ee = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODUiIGhlaWdodD0iMjUiIHZpZXdCb3g9IjAgMCA4NSAyN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uMTQgNzkuNzY0IDE1LjQyQzgwLjE2NCAxNC42ODY3IDgwLjM2NCAxMy44MjY3IDgwLjM2NCAxMi44NEM4MC4zNjQgMTEuODUzMyA4MC4xNjQgMTEgNzkuNzY0IDEwLjI4Qzc5LjM3NzMgOS41NDY2NyA3OC44MTczIDguOTg2NjcgNzguMDg0IDguNkM3Ny4zNjQgOC4yIDc2LjUwNCA4IDc1LjUwNCA4SDczLjIwNFYxNy43WiIgZmlsbD0id2hpdGUiLz4KPGNpcmNsZSBjeD0iMTAiIGN5PSIxMy4zMDYyIiByPSI0IiBmaWxsPSJ3aGl0ZSIvPgo8Y2lyY2xlIGN4PSI5Ljk1OTA1IiBjeT0iMTMuMjUyIiByPSI2Ljc1MjAyIiBzdHJva2U9IndoaXRlIi8+CjxwYXRoIGQ9Ik01LjQ3OTE5IDRIMy4xMzI5NUMxLjk1NDk1IDQgMSA0Ljk1NDk1IDEgNi4xMzI5NVY4LjQ3OTE5TTE0LjQzNzYgNEgxNi43ODM4QzE3Ljk2MTggNCAxOC45MTY3IDQuOTU0OTUgMTguOTE2NyA2LjEzMjk1VjguNDc5MTlNMTguOTE2NyAxNy40Mzc2VjE5Ljc4MzhDMTguOTE2NyAyMC45NjE4IDE3Ljk2MTggMjEuOTE2NyAxNi43ODM4IDIxLjkxNjdIMTQuNDM3Nk01LjQ3OTE5IDIxLjkxNjdIMy4xMzI5NUMxLjk1NDk1IDIxLjkxNjcgMSAyMC45NjE4IDEgMTkuNzgzOFYxNy40Mzc2IiBzdHJva2U9IndoaXRlIi8+Cjwvc3ZnPgo=";
|
843
|
+
function ye(s) {
|
844
|
+
let t, l, u, i;
|
845
|
+
return {
|
846
|
+
c() {
|
847
|
+
t = _("div"), l = _("div"), u = _("img"), $(u.src, i = ee) || D(u, "src", i), D(u, "alt", "BryID"), D(l, "class", "mx-auto my-10 display: flex justify-center items-end p-4"), p(
|
848
|
+
l,
|
849
|
+
"width",
|
850
|
+
/*docWidth*/
|
851
|
+
s[3] + "%"
|
852
|
+
), p(
|
853
|
+
l,
|
854
|
+
"height",
|
855
|
+
/*docHeight*/
|
856
|
+
s[4] + "%"
|
857
|
+
), p(
|
858
|
+
l,
|
859
|
+
"margin-top",
|
860
|
+
/*docMarginTop*/
|
861
|
+
s[5] + "%"
|
862
|
+
), D(t, "class", "absolute inset-0 z-10");
|
863
|
+
},
|
864
|
+
m(a, M) {
|
865
|
+
N(a, t, M), I(t, l), I(l, u);
|
866
|
+
},
|
867
|
+
p(a, M) {
|
868
|
+
M & /*docWidth*/
|
869
|
+
8 && p(
|
870
|
+
l,
|
871
|
+
"width",
|
872
|
+
/*docWidth*/
|
873
|
+
a[3] + "%"
|
874
|
+
), M & /*docHeight*/
|
875
|
+
16 && p(
|
876
|
+
l,
|
877
|
+
"height",
|
878
|
+
/*docHeight*/
|
879
|
+
a[4] + "%"
|
880
|
+
), M & /*docMarginTop*/
|
881
|
+
32 && p(
|
882
|
+
l,
|
883
|
+
"margin-top",
|
884
|
+
/*docMarginTop*/
|
885
|
+
a[5] + "%"
|
886
|
+
);
|
887
|
+
},
|
888
|
+
d(a) {
|
889
|
+
a && m(t);
|
890
|
+
}
|
891
|
+
};
|
892
|
+
}
|
893
|
+
function pe(s) {
|
894
|
+
let t, l, u, i;
|
895
|
+
return {
|
896
|
+
c() {
|
897
|
+
t = _("div"), l = _("div"), u = _("img"), $(u.src, i = ee) || D(u, "src", i), D(u, "alt", "BryID"), D(l, "class", "mx-auto my-10 display: flex justify-center items-end p-4"), p(
|
898
|
+
l,
|
899
|
+
"width",
|
900
|
+
/*ovalWidth*/
|
901
|
+
s[0] + "%"
|
902
|
+
), p(
|
903
|
+
l,
|
904
|
+
"height",
|
905
|
+
/*ovalHeight*/
|
906
|
+
s[1] + "%"
|
907
|
+
), p(
|
908
|
+
l,
|
909
|
+
"margin-top",
|
910
|
+
/*ovalMarginTop*/
|
911
|
+
s[2] + "%"
|
912
|
+
), D(t, "class", "absolute inset-0 z-10");
|
913
|
+
},
|
914
|
+
m(a, M) {
|
915
|
+
N(a, t, M), I(t, l), I(l, u);
|
916
|
+
},
|
917
|
+
p(a, M) {
|
918
|
+
M & /*ovalWidth*/
|
919
|
+
1 && p(
|
920
|
+
l,
|
921
|
+
"width",
|
922
|
+
/*ovalWidth*/
|
923
|
+
a[0] + "%"
|
924
|
+
), M & /*ovalHeight*/
|
925
|
+
2 && p(
|
926
|
+
l,
|
927
|
+
"height",
|
928
|
+
/*ovalHeight*/
|
929
|
+
a[1] + "%"
|
930
|
+
), M & /*ovalMarginTop*/
|
931
|
+
4 && p(
|
932
|
+
l,
|
933
|
+
"margin-top",
|
934
|
+
/*ovalMarginTop*/
|
935
|
+
a[2] + "%"
|
936
|
+
);
|
937
|
+
},
|
938
|
+
d(a) {
|
939
|
+
a && m(t);
|
940
|
+
}
|
941
|
+
};
|
942
|
+
}
|
943
|
+
function Se(s) {
|
944
|
+
let t;
|
945
|
+
function l(a, M) {
|
946
|
+
return (
|
947
|
+
/*$collectorSelect*/
|
948
|
+
a[6] == "FACE" ? pe : ye
|
949
|
+
);
|
950
|
+
}
|
951
|
+
let u = l(s), i = u(s);
|
952
|
+
return {
|
953
|
+
c() {
|
954
|
+
i.c(), t = q(), this.c = x;
|
955
|
+
},
|
956
|
+
m(a, M) {
|
957
|
+
i.m(a, M), N(a, t, M);
|
958
|
+
},
|
959
|
+
p(a, [M]) {
|
960
|
+
u === (u = l(a)) && i ? i.p(a, M) : (i.d(1), i = u(a), i && (i.c(), i.m(t.parentNode, t)));
|
961
|
+
},
|
962
|
+
i: x,
|
963
|
+
o: x,
|
964
|
+
d(a) {
|
965
|
+
i.d(a), a && m(t);
|
966
|
+
}
|
967
|
+
};
|
968
|
+
}
|
969
|
+
function ke(s, t, l) {
|
970
|
+
let u, i, a, M;
|
971
|
+
y(s, re, (f) => l(7, u = f)), y(s, ce, (f) => l(8, i = f)), y(s, ne, (f) => l(9, a = f)), y(s, F, (f) => l(6, M = f));
|
972
|
+
let o, c, j, z, A, n;
|
973
|
+
return s.$$.update = () => {
|
974
|
+
s.$$.dirty & /*$videoStore, $ovalDimensions, $docDimensions*/
|
975
|
+
896 && u && (l(0, o = i.width / u.videoWidth * 100), l(1, c = i.height / u.videoHeight * 100), l(2, j = (i.y - i.height / 2) / u.videoHeight * 59), l(3, z = a.width / u.videoWidth * 100), l(4, A = a.height / u.videoHeight * 100), l(5, n = a.y / u.videoHeight * 57), U() && l(2, j = (i.y - i.height / 2) / u.videoHeight * 100));
|
976
|
+
}, [
|
977
|
+
o,
|
978
|
+
c,
|
979
|
+
j,
|
980
|
+
z,
|
981
|
+
A,
|
982
|
+
n,
|
983
|
+
M,
|
984
|
+
u,
|
985
|
+
i,
|
986
|
+
a
|
987
|
+
];
|
988
|
+
}
|
989
|
+
class Ce extends P {
|
990
|
+
constructor(t) {
|
991
|
+
super(), V(
|
992
|
+
this,
|
993
|
+
{
|
994
|
+
target: this.shadowRoot,
|
995
|
+
props: H(this.attributes),
|
996
|
+
customElement: !0
|
997
|
+
},
|
998
|
+
ke,
|
999
|
+
Se,
|
1000
|
+
Z,
|
1001
|
+
{},
|
1002
|
+
null
|
1003
|
+
), t && t.target && N(t.target, this, t.anchor);
|
1004
|
+
}
|
1005
|
+
}
|
1006
|
+
customElements.define("water-mark", Ce);
|
1007
|
+
export {
|
1008
|
+
k as C,
|
1009
|
+
ve as T,
|
1010
|
+
Ce as W,
|
1011
|
+
be as a,
|
1012
|
+
Ae as b,
|
1013
|
+
K as c
|
1014
|
+
};
|