bry-biometric-collector 2.2.6 → 2.2.7
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 +6 -0
- package/dist/{CameraBtn_49f061bf_2.2.6.js → CameraBtn_ced4ca16_2.2.7.js} +186 -183
- package/dist/DocumentCollector_515a55ec_2.2.7.js +1009 -0
- package/dist/FaceCollector_f4ebbfa6_2.2.7.js +1679 -0
- package/dist/bry-biometric-collector-main.js +1 -1
- package/dist/{fingersApi_4beb35e4_2.2.6.js → fingersApi_11bef636_2.2.7.js} +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.js +1 -1
- package/dist/{main_db50524f_2.2.6.js → main_dd4c53c5_2.2.7.js} +3128 -3100
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/DocumentCollector_dc6def11_2.2.6.js +0 -971
- package/dist/FaceCollector_ab5552ba_2.2.6.js +0 -1638
- /package/dist/{en-us_55a6748c_2.2.6.js → en-us_55a6748c_2.2.7.js} +0 -0
- /package/dist/{face_api_0e3ce8c8_2.2.6.js → face_api_0e3ce8c8_2.2.7.js} +0 -0
- /package/dist/{index-no-detector_acb82d83_2.2.6.js → index-no-detector_acb82d83_2.2.7.js} +0 -0
- /package/dist/{pt-br_3ddd5d1d_2.2.6.js → pt-br_3ddd5d1d_2.2.7.js} +0 -0
@@ -1,404 +1,407 @@
|
|
1
|
-
import {
|
1
|
+
import { aS as U, S as B, r as S, t as Z, w as H, x as n, y as g, B as x, E as L, G as _, N as u, P as k, U as y, ab as I, b2 as A, b3 as D, ap as T, b4 as V, b5 as R, C as w, b6 as h, H as E, aL as O, b7 as M, b8 as z, D as q, I as j, J as F, L as K, O as G, aG as P, V as J } from "./main_dd4c53c5_2.2.7.js";
|
2
2
|
var C = /* @__PURE__ */ ((m) => (m.OK = "OK", m.DEVICE_NOT_FOUND_ERROR = "DEVICE_NOT_FOUND_ERROR", m.CAMERA_DENIED_ERROR = "CAMERA_DENIED_ERROR", m.CAMERA_IN_USE_ERROR = "CAMERA_IN_USE_ERROR", m.CAMERA_CLOSED_ERROR = "CAMERA_CLOSED_ERROR", m.CAMERA_UNSUPPORTED = "CAMERA_UNSUPPORTED", m.CAMERA_ORIENTATION_PORTRAIT = "CAMERA_ORIENTATION_PORTRAIT", m.CAMERA_ORIENTATION_LANDSCAPE = "CAMERA_ORIENTATION_LANDSCAPE", m))(C || {});
|
3
|
-
const
|
3
|
+
const Q = U(
|
4
4
|
"OK"
|
5
5
|
/* OK */
|
6
6
|
);
|
7
|
-
function
|
8
|
-
let
|
7
|
+
function W(m) {
|
8
|
+
let l, r, c, s, i, a, f, o, b, p, d = [
|
9
9
|
{ class: "text-[8em] mx-auto" },
|
10
10
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
11
11
|
{ width: "1em" },
|
12
12
|
{ height: "1em" },
|
13
13
|
{ viewBox: "0 0 256 256" },
|
14
14
|
/*$$props*/
|
15
|
-
m[
|
15
|
+
m[4]
|
16
16
|
], v = {};
|
17
17
|
for (let e = 0; e < d.length; e += 1)
|
18
18
|
v = A(v, d[e]);
|
19
19
|
return {
|
20
20
|
c() {
|
21
|
-
|
21
|
+
l = R("svg"), r = R("path"), c = w(), s = x("span"), s.textContent = "O dispositivo precisa estar na posição paisagem.", i = w(), a = x("span"), a.textContent = "Por favor, vire o dispositivo ou pressione o botão abaixo.", f = w(), o = x("button"), o.textContent = "Ajustar Orientação", _(r, "fill", "currentColor"), _(r, "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"), h(l, v), _(s, "class", "text-xl font-bold text-center"), _(a, "class", "m-auto text-base block text-center"), _(o, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
22
22
|
},
|
23
|
-
m(e,
|
24
|
-
n(e,
|
23
|
+
m(e, t) {
|
24
|
+
n(e, l, t), E(l, r), n(e, c, t), n(e, s, t), n(e, i, t), n(e, a, t), n(e, f, t), n(e, o, t), b || (p = O(
|
25
25
|
o,
|
26
26
|
"click",
|
27
27
|
/*click_handler_6*/
|
28
|
-
m[
|
28
|
+
m[11]
|
29
29
|
), b = !0);
|
30
30
|
},
|
31
|
-
p(e,
|
32
|
-
h(
|
31
|
+
p(e, t) {
|
32
|
+
h(l, v = M(d, [
|
33
33
|
{ class: "text-[8em] mx-auto" },
|
34
34
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
35
35
|
{ width: "1em" },
|
36
36
|
{ height: "1em" },
|
37
37
|
{ viewBox: "0 0 256 256" },
|
38
|
-
|
39
|
-
|
40
|
-
e[
|
38
|
+
t & /*$$props*/
|
39
|
+
16 && /*$$props*/
|
40
|
+
e[4]
|
41
41
|
]));
|
42
42
|
},
|
43
43
|
d(e) {
|
44
|
-
e &&
|
44
|
+
e && u(l), e && u(c), e && u(s), e && u(i), e && u(a), e && u(f), e && u(o), b = !1, p();
|
45
45
|
}
|
46
46
|
};
|
47
47
|
}
|
48
|
-
function
|
49
|
-
let
|
48
|
+
function X(m) {
|
49
|
+
let l, r, c, s, i, a, f, o, b, p, d = [
|
50
50
|
{ class: "text-[8em] mx-auto" },
|
51
51
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
52
52
|
{ width: "1em" },
|
53
53
|
{ height: "1em" },
|
54
54
|
{ viewBox: "0 0 256 256" },
|
55
55
|
/*$$props*/
|
56
|
-
m[
|
56
|
+
m[4]
|
57
57
|
], v = {};
|
58
58
|
for (let e = 0; e < d.length; e += 1)
|
59
59
|
v = A(v, d[e]);
|
60
60
|
return {
|
61
61
|
c() {
|
62
|
-
|
62
|
+
l = R("svg"), r = R("path"), c = w(), s = x("span"), s.textContent = "O dispositivo precisa estar na posição retrato.", i = w(), a = x("span"), a.textContent = "Por favor, vire o dispositivo ou pressione o botão abaixo.", f = w(), o = x("button"), o.textContent = "Ajustar Orientação", _(r, "fill", "currentColor"), _(r, "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"), h(l, v), _(s, "class", "text-xl font-bold text-center"), _(a, "class", "m-auto text-base block text-center"), _(o, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
63
63
|
},
|
64
|
-
m(e,
|
65
|
-
n(e,
|
64
|
+
m(e, t) {
|
65
|
+
n(e, l, t), E(l, r), n(e, c, t), n(e, s, t), n(e, i, t), n(e, a, t), n(e, f, t), n(e, o, t), b || (p = O(
|
66
66
|
o,
|
67
67
|
"click",
|
68
68
|
/*click_handler_5*/
|
69
|
-
m[
|
69
|
+
m[10]
|
70
70
|
), b = !0);
|
71
71
|
},
|
72
|
-
p(e,
|
73
|
-
h(
|
72
|
+
p(e, t) {
|
73
|
+
h(l, v = M(d, [
|
74
74
|
{ class: "text-[8em] mx-auto" },
|
75
75
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
76
76
|
{ width: "1em" },
|
77
77
|
{ height: "1em" },
|
78
78
|
{ viewBox: "0 0 256 256" },
|
79
|
-
|
80
|
-
|
81
|
-
e[
|
79
|
+
t & /*$$props*/
|
80
|
+
16 && /*$$props*/
|
81
|
+
e[4]
|
82
82
|
]));
|
83
83
|
},
|
84
84
|
d(e) {
|
85
|
-
e &&
|
85
|
+
e && u(l), e && u(c), e && u(s), e && u(i), e && u(a), e && u(f), e && u(o), b = !1, p();
|
86
86
|
}
|
87
87
|
};
|
88
88
|
}
|
89
|
-
function
|
90
|
-
let
|
89
|
+
function Y(m) {
|
90
|
+
let l, r, c, s, i, a, f, o, b, p, d = [
|
91
91
|
{ class: "text-[8em] mx-auto" },
|
92
92
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
93
93
|
{ width: "1em" },
|
94
94
|
{ height: "1em" },
|
95
95
|
{ viewBox: "0 0 256 256" },
|
96
96
|
/*$$props*/
|
97
|
-
m[
|
97
|
+
m[4]
|
98
98
|
], v = {};
|
99
99
|
for (let e = 0; e < d.length; e += 1)
|
100
100
|
v = A(v, d[e]);
|
101
101
|
return {
|
102
102
|
c() {
|
103
|
-
|
103
|
+
l = R("svg"), r = R("path"), c = w(), s = x("span"), s.textContent = "A câmera não atende os requisitos necessários.", i = w(), a = x("span"), a.textContent = "Por favor, conecte outra câmera e tente novamente.", f = w(), o = x("button"), o.textContent = "Reiniciar", _(r, "fill", "currentColor"), _(r, "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"), h(l, v), _(s, "class", "text-xl font-bold text-center"), _(a, "class", "m-auto text-base block text-center"), _(o, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
104
104
|
},
|
105
|
-
m(e,
|
106
|
-
n(e,
|
105
|
+
m(e, t) {
|
106
|
+
n(e, l, t), E(l, r), n(e, c, t), n(e, s, t), n(e, i, t), n(e, a, t), n(e, f, t), n(e, o, t), b || (p = O(
|
107
107
|
o,
|
108
108
|
"click",
|
109
109
|
/*click_handler_4*/
|
110
|
-
m[
|
110
|
+
m[9]
|
111
111
|
), b = !0);
|
112
112
|
},
|
113
|
-
p(e,
|
114
|
-
h(
|
113
|
+
p(e, t) {
|
114
|
+
h(l, v = M(d, [
|
115
115
|
{ class: "text-[8em] mx-auto" },
|
116
116
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
117
117
|
{ width: "1em" },
|
118
118
|
{ height: "1em" },
|
119
119
|
{ viewBox: "0 0 256 256" },
|
120
|
-
|
121
|
-
|
122
|
-
e[
|
120
|
+
t & /*$$props*/
|
121
|
+
16 && /*$$props*/
|
122
|
+
e[4]
|
123
123
|
]));
|
124
124
|
},
|
125
125
|
d(e) {
|
126
|
-
e &&
|
126
|
+
e && u(l), e && u(c), e && u(s), e && u(i), e && u(a), e && u(f), e && u(o), b = !1, p();
|
127
127
|
}
|
128
128
|
};
|
129
129
|
}
|
130
|
-
function
|
131
|
-
let
|
130
|
+
function $(m) {
|
131
|
+
let l, r, c, s, i, a, f, o, b, p, d = [
|
132
132
|
{ class: "text-[8em] mx-auto" },
|
133
133
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
134
134
|
{ width: "1em" },
|
135
135
|
{ height: "1em" },
|
136
136
|
{ viewBox: "0 0 256 256" },
|
137
137
|
/*$$props*/
|
138
|
-
m[
|
138
|
+
m[4]
|
139
139
|
], v = {};
|
140
140
|
for (let e = 0; e < d.length; e += 1)
|
141
141
|
v = A(v, d[e]);
|
142
142
|
return {
|
143
143
|
c() {
|
144
|
-
|
144
|
+
l = R("svg"), r = R("path"), c = w(), s = x("span"), s.textContent = "Por favor, permaneça na mesma aba durante a coleta biométrica.", i = w(), a = x("span"), a.textContent = "Clique no botão Reiniciar para capturar novamente.", f = w(), o = x("button"), o.textContent = "Reiniciar", _(r, "fill", "currentColor"), _(r, "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"), h(l, v), _(s, "class", "text-xl font-bold text-center"), _(a, "class", "m-auto text-base block text-center"), _(o, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
145
145
|
},
|
146
|
-
m(e,
|
147
|
-
n(e,
|
146
|
+
m(e, t) {
|
147
|
+
n(e, l, t), E(l, r), n(e, c, t), n(e, s, t), n(e, i, t), n(e, a, t), n(e, f, t), n(e, o, t), b || (p = O(
|
148
148
|
o,
|
149
149
|
"click",
|
150
150
|
/*click_handler_3*/
|
151
|
-
m[
|
151
|
+
m[8]
|
152
152
|
), b = !0);
|
153
153
|
},
|
154
|
-
p(e,
|
155
|
-
h(
|
154
|
+
p(e, t) {
|
155
|
+
h(l, v = M(d, [
|
156
156
|
{ class: "text-[8em] mx-auto" },
|
157
157
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
158
158
|
{ width: "1em" },
|
159
159
|
{ height: "1em" },
|
160
160
|
{ viewBox: "0 0 256 256" },
|
161
|
-
|
162
|
-
|
163
|
-
e[
|
161
|
+
t & /*$$props*/
|
162
|
+
16 && /*$$props*/
|
163
|
+
e[4]
|
164
164
|
]));
|
165
165
|
},
|
166
166
|
d(e) {
|
167
|
-
e &&
|
167
|
+
e && u(l), e && u(c), e && u(s), e && u(i), e && u(a), e && u(f), e && u(o), b = !1, p();
|
168
168
|
}
|
169
169
|
};
|
170
170
|
}
|
171
|
-
function
|
172
|
-
let
|
171
|
+
function ee(m) {
|
172
|
+
let l, r, c, s, i, a, f, o, b, p, d = [
|
173
173
|
{ class: "text-[8em] mx-auto" },
|
174
174
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
175
175
|
{ width: "1em" },
|
176
176
|
{ height: "1em" },
|
177
177
|
{ viewBox: "0 0 256 256" },
|
178
178
|
/*$$props*/
|
179
|
-
m[
|
179
|
+
m[4]
|
180
180
|
], v = {};
|
181
181
|
for (let e = 0; e < d.length; e += 1)
|
182
182
|
v = A(v, d[e]);
|
183
183
|
return {
|
184
184
|
c() {
|
185
|
-
|
185
|
+
l = R("svg"), r = R("path"), c = w(), s = x("span"), s.textContent = "A câmera está em uso.", i = w(), a = x("span"), a.textContent = "Certifique-se de que a câmera não está sendo utilizada por nenhuma outra aplicação e clique no botão abaixo.", f = w(), o = x("button"), o.textContent = "Reiniciar", _(r, "fill", "currentColor"), _(r, "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"), h(l, v), _(s, "class", "text-xl font-bold text-center"), _(a, "class", "m-auto text-base block text-center"), _(o, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
186
186
|
},
|
187
|
-
m(e,
|
188
|
-
n(e,
|
187
|
+
m(e, t) {
|
188
|
+
n(e, l, t), E(l, r), n(e, c, t), n(e, s, t), n(e, i, t), n(e, a, t), n(e, f, t), n(e, o, t), b || (p = O(
|
189
189
|
o,
|
190
190
|
"click",
|
191
191
|
/*click_handler_2*/
|
192
|
-
m[
|
192
|
+
m[7]
|
193
193
|
), b = !0);
|
194
194
|
},
|
195
|
-
p(e,
|
196
|
-
h(
|
195
|
+
p(e, t) {
|
196
|
+
h(l, v = M(d, [
|
197
197
|
{ class: "text-[8em] mx-auto" },
|
198
198
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
199
199
|
{ width: "1em" },
|
200
200
|
{ height: "1em" },
|
201
201
|
{ viewBox: "0 0 256 256" },
|
202
|
-
|
203
|
-
|
204
|
-
e[
|
202
|
+
t & /*$$props*/
|
203
|
+
16 && /*$$props*/
|
204
|
+
e[4]
|
205
205
|
]));
|
206
206
|
},
|
207
207
|
d(e) {
|
208
|
-
e &&
|
208
|
+
e && u(l), e && u(c), e && u(s), e && u(i), e && u(a), e && u(f), e && u(o), b = !1, p();
|
209
209
|
}
|
210
210
|
};
|
211
211
|
}
|
212
|
-
function
|
213
|
-
let
|
212
|
+
function te(m) {
|
213
|
+
let l, r, c, s, i, a, f, o, b, p, d = [
|
214
214
|
{ class: "text-[8em] mx-auto" },
|
215
215
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
216
216
|
{ width: "1em" },
|
217
217
|
{ height: "1em" },
|
218
218
|
{ viewBox: "0 0 256 256" },
|
219
219
|
/*$$props*/
|
220
|
-
m[
|
220
|
+
m[4]
|
221
221
|
], v = {};
|
222
222
|
for (let e = 0; e < d.length; e += 1)
|
223
223
|
v = A(v, d[e]);
|
224
224
|
return {
|
225
225
|
c() {
|
226
|
-
|
226
|
+
l = R("svg"), r = R("path"), c = w(), s = x("span"), s.textContent = "A câmera não foi detectada.", i = w(), a = x("span"), a.textContent = "Por favor, conecte a sua câmera, espere alguns instantes e clique no botão Reiniciar.", f = w(), o = x("button"), o.textContent = "Reiniciar", _(r, "fill", "currentColor"), _(r, "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"), h(l, v), _(s, "class", "text-xl font-bold text-center"), _(a, "class", "m-auto text-base block text-center"), _(o, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
227
227
|
},
|
228
|
-
m(e,
|
229
|
-
n(e,
|
228
|
+
m(e, t) {
|
229
|
+
n(e, l, t), E(l, r), n(e, c, t), n(e, s, t), n(e, i, t), n(e, a, t), n(e, f, t), n(e, o, t), b || (p = O(
|
230
230
|
o,
|
231
231
|
"click",
|
232
232
|
/*click_handler_1*/
|
233
|
-
m[
|
233
|
+
m[6]
|
234
234
|
), b = !0);
|
235
235
|
},
|
236
|
-
p(e,
|
237
|
-
h(
|
236
|
+
p(e, t) {
|
237
|
+
h(l, v = M(d, [
|
238
238
|
{ class: "text-[8em] mx-auto" },
|
239
239
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
240
240
|
{ width: "1em" },
|
241
241
|
{ height: "1em" },
|
242
242
|
{ viewBox: "0 0 256 256" },
|
243
|
-
|
244
|
-
|
245
|
-
e[
|
243
|
+
t & /*$$props*/
|
244
|
+
16 && /*$$props*/
|
245
|
+
e[4]
|
246
246
|
]));
|
247
247
|
},
|
248
248
|
d(e) {
|
249
|
-
e &&
|
249
|
+
e && u(l), e && u(c), e && u(s), e && u(i), e && u(a), e && u(f), e && u(o), b = !1, p();
|
250
250
|
}
|
251
251
|
};
|
252
252
|
}
|
253
|
-
function
|
254
|
-
let
|
253
|
+
function le(m) {
|
254
|
+
let l, r, c, s, i, a, f, o, b, p, d = [
|
255
255
|
{ class: "text-[8em] mx-auto" },
|
256
256
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
257
257
|
{ width: "1em" },
|
258
258
|
{ height: "1em" },
|
259
259
|
{ viewBox: "0 0 256 256" },
|
260
260
|
/*$$props*/
|
261
|
-
m[
|
261
|
+
m[4]
|
262
262
|
], v = {};
|
263
263
|
for (let e = 0; e < d.length; e += 1)
|
264
264
|
v = A(v, d[e]);
|
265
265
|
return {
|
266
266
|
c() {
|
267
|
-
|
267
|
+
l = R("svg"), r = R("path"), c = w(), s = x("span"), s.textContent = "Por favor, conceda permissão de acesso à câmera.", i = w(), a = x("span"), a.textContent = "Após conceder a permissão, clique no botão Reiniciar.", f = w(), o = x("button"), o.textContent = "Reiniciar", _(r, "fill", "currentColor"), _(r, "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"), h(l, v), _(s, "class", "text-xl font-bold text-center"), _(a, "class", "m-auto text-base block text-center"), _(o, "class", "z-20 ce-dui-btn ce-dui-btn-outline ce-dui-btn-primary m-auto");
|
268
268
|
},
|
269
|
-
m(e,
|
270
|
-
n(e,
|
269
|
+
m(e, t) {
|
270
|
+
n(e, l, t), E(l, r), n(e, c, t), n(e, s, t), n(e, i, t), n(e, a, t), n(e, f, t), n(e, o, t), b || (p = O(
|
271
271
|
o,
|
272
272
|
"click",
|
273
273
|
/*click_handler*/
|
274
|
-
m[
|
274
|
+
m[5]
|
275
275
|
), b = !0);
|
276
276
|
},
|
277
|
-
p(e,
|
278
|
-
h(
|
277
|
+
p(e, t) {
|
278
|
+
h(l, v = M(d, [
|
279
279
|
{ class: "text-[8em] mx-auto" },
|
280
280
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
281
281
|
{ width: "1em" },
|
282
282
|
{ height: "1em" },
|
283
283
|
{ viewBox: "0 0 256 256" },
|
284
|
-
|
285
|
-
|
286
|
-
e[
|
284
|
+
t & /*$$props*/
|
285
|
+
16 && /*$$props*/
|
286
|
+
e[4]
|
287
287
|
]));
|
288
288
|
},
|
289
289
|
d(e) {
|
290
|
-
e &&
|
290
|
+
e && u(l), e && u(c), e && u(s), e && u(i), e && u(a), e && u(f), e && u(o), b = !1, p();
|
291
291
|
}
|
292
292
|
};
|
293
293
|
}
|
294
|
-
function
|
295
|
-
let
|
296
|
-
function
|
294
|
+
function se(m) {
|
295
|
+
let l;
|
296
|
+
function r(i, a) {
|
297
297
|
if (
|
298
298
|
/*$cameraStatusStore*/
|
299
|
-
|
299
|
+
i[1] === C.CAMERA_DENIED_ERROR
|
300
|
+
)
|
301
|
+
return le;
|
302
|
+
if (
|
303
|
+
/*$cameraStatusStore*/
|
304
|
+
i[1] === C.DEVICE_NOT_FOUND_ERROR
|
300
305
|
)
|
301
306
|
return te;
|
302
307
|
if (
|
303
308
|
/*$cameraStatusStore*/
|
304
|
-
|
309
|
+
i[1] === C.CAMERA_IN_USE_ERROR
|
305
310
|
)
|
306
311
|
return ee;
|
307
312
|
if (
|
308
313
|
/*$cameraStatusStore*/
|
309
|
-
|
314
|
+
i[1] === C.CAMERA_CLOSED_ERROR
|
310
315
|
)
|
311
316
|
return $;
|
312
317
|
if (
|
313
318
|
/*$cameraStatusStore*/
|
314
|
-
|
319
|
+
i[1] === C.CAMERA_UNSUPPORTED
|
315
320
|
)
|
316
321
|
return Y;
|
317
322
|
if (
|
318
323
|
/*$cameraStatusStore*/
|
319
|
-
|
324
|
+
i[1] === C.CAMERA_ORIENTATION_PORTRAIT && /*$collectorSelect*/
|
325
|
+
i[2] == "FACE"
|
320
326
|
)
|
321
327
|
return X;
|
322
328
|
if (
|
323
329
|
/*$cameraStatusStore*/
|
324
|
-
|
330
|
+
i[1] === C.CAMERA_ORIENTATION_LANDSCAPE && /*$collectorSelect*/
|
331
|
+
i[2] == "DOCUMENT"
|
325
332
|
)
|
326
333
|
return W;
|
327
|
-
if (
|
328
|
-
/*$cameraStatusStore*/
|
329
|
-
a[1] === C.CAMERA_ORIENTATION_LANDSCAPE
|
330
|
-
)
|
331
|
-
return Q;
|
332
334
|
}
|
333
|
-
let c =
|
335
|
+
let c = r(m), s = c && c(m);
|
334
336
|
return {
|
335
337
|
c() {
|
336
|
-
|
338
|
+
l = x("div"), s && s.c(), this.c = L, _(l, "class", "flex flex-col gap-4 justify-center relative overflow-visible");
|
337
339
|
},
|
338
|
-
m(
|
339
|
-
n(
|
340
|
+
m(i, a) {
|
341
|
+
n(i, l, a), s && s.m(l, null);
|
340
342
|
},
|
341
|
-
p(
|
342
|
-
c === (c =
|
343
|
+
p(i, [a]) {
|
344
|
+
c === (c = r(i)) && s ? s.p(i, a) : (s && s.d(1), s = c && c(i), s && (s.c(), s.m(l, null)));
|
343
345
|
},
|
344
|
-
i:
|
345
|
-
o:
|
346
|
-
d(
|
347
|
-
|
346
|
+
i: L,
|
347
|
+
o: L,
|
348
|
+
d(i) {
|
349
|
+
i && u(l), s && s.d();
|
348
350
|
}
|
349
351
|
};
|
350
352
|
}
|
351
|
-
function
|
352
|
-
let c, s;
|
353
|
-
|
353
|
+
function ae(m, l, r) {
|
354
|
+
let c, s, i;
|
355
|
+
k(m, Q, (t) => r(1, c = t)), k(m, y, (t) => r(2, s = t)), k(m, I, (t) => r(3, i = t));
|
354
356
|
let { handler: a = () => {
|
355
|
-
} } =
|
356
|
-
const
|
357
|
-
a(), console.log("canicna", a);
|
358
|
-
}, f = () => {
|
357
|
+
} } = l;
|
358
|
+
const f = () => {
|
359
359
|
a(), console.log("canicna", a);
|
360
360
|
}, o = () => {
|
361
361
|
a(), console.log("canicna", a);
|
362
362
|
}, b = () => {
|
363
|
-
a();
|
364
|
-
},
|
363
|
+
a(), console.log("canicna", a);
|
364
|
+
}, p = () => {
|
365
365
|
a();
|
366
366
|
}, d = () => {
|
367
|
-
|
367
|
+
a();
|
368
368
|
}, v = () => {
|
369
|
-
T(
|
369
|
+
T(I, i = !0, i), V(!0);
|
370
|
+
}, e = () => {
|
371
|
+
T(I, i = !0, i), V(!1);
|
370
372
|
};
|
371
|
-
return m.$$set = (
|
372
|
-
|
373
|
-
},
|
373
|
+
return m.$$set = (t) => {
|
374
|
+
r(4, l = A(A({}, l), D(t))), "handler" in t && r(0, a = t.handler);
|
375
|
+
}, l = D(l), [
|
374
376
|
a,
|
375
377
|
c,
|
376
378
|
s,
|
377
|
-
t,
|
378
379
|
i,
|
380
|
+
l,
|
379
381
|
f,
|
380
382
|
o,
|
381
383
|
b,
|
382
|
-
|
384
|
+
p,
|
383
385
|
d,
|
384
|
-
v
|
386
|
+
v,
|
387
|
+
e
|
385
388
|
];
|
386
389
|
}
|
387
|
-
class
|
388
|
-
constructor(
|
389
|
-
super(),
|
390
|
+
class ie extends B {
|
391
|
+
constructor(l) {
|
392
|
+
super(), S(
|
390
393
|
this,
|
391
394
|
{
|
392
395
|
target: this.shadowRoot,
|
393
396
|
props: H(this.attributes),
|
394
397
|
customElement: !0
|
395
398
|
},
|
399
|
+
ae,
|
396
400
|
se,
|
397
|
-
|
398
|
-
S,
|
401
|
+
Z,
|
399
402
|
{ handler: 0 },
|
400
403
|
null
|
401
|
-
),
|
404
|
+
), l && (l.target && n(l.target, this, l.anchor), l.props && (this.$set(l.props), g()));
|
402
405
|
}
|
403
406
|
static get observedAttributes() {
|
404
407
|
return ["handler"];
|
@@ -406,14 +409,14 @@ class ae extends B {
|
|
406
409
|
get handler() {
|
407
410
|
return this.$$.ctx[0];
|
408
411
|
}
|
409
|
-
set handler(
|
410
|
-
this.$$set({ handler:
|
412
|
+
set handler(l) {
|
413
|
+
this.$$set({ handler: l }), g();
|
411
414
|
}
|
412
415
|
}
|
413
|
-
customElements.define("camera-status",
|
414
|
-
function
|
415
|
-
let
|
416
|
-
|
416
|
+
customElements.define("camera-status", ie);
|
417
|
+
function oe(m) {
|
418
|
+
let l, r, c, s, i, a, f, o, b, p, d;
|
419
|
+
l = new z({});
|
417
420
|
let v = [
|
418
421
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
419
422
|
{ width: "2em" },
|
@@ -422,74 +425,74 @@ function ie(m) {
|
|
422
425
|
/*$$props*/
|
423
426
|
m[3]
|
424
427
|
], e = {};
|
425
|
-
for (let
|
426
|
-
e = A(e, v[
|
428
|
+
for (let t = 0; t < v.length; t += 1)
|
429
|
+
e = A(e, v[t]);
|
427
430
|
return {
|
428
431
|
c() {
|
429
|
-
|
432
|
+
q(l.$$.fragment), r = w(), c = x("div"), s = x("label"), i = R("svg"), a = R("path"), this.c = L, _(a, "fill", "currentColor"), _(a, "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"), h(i, e), _(s, "tabindex", "0"), s.hidden = f = /*$cameraDevicesStore*/
|
430
433
|
m[2].length == 1, _(s, "class", "ce-dui-btn ce-dui-btn-ghost m-1"), _(c, "class", o = "ce-dui-dropdown ce-dui-dropdown-top absolute z-10 right-0 sm:block " + /*className*/
|
431
434
|
m[0]);
|
432
435
|
},
|
433
|
-
m(
|
434
|
-
|
436
|
+
m(t, N) {
|
437
|
+
j(l, t, N), n(t, r, N), n(t, c, N), E(c, s), E(s, i), E(i, a), b = !0, p || (d = O(
|
435
438
|
c,
|
436
439
|
"click",
|
437
440
|
/*click_handler*/
|
438
441
|
m[4]
|
439
|
-
),
|
442
|
+
), p = !0);
|
440
443
|
},
|
441
|
-
p(
|
442
|
-
h(
|
444
|
+
p(t, [N]) {
|
445
|
+
h(i, e = M(v, [
|
443
446
|
{ xmlns: "http://www.w3.org/2000/svg" },
|
444
447
|
{ width: "2em" },
|
445
448
|
{ height: "2em" },
|
446
449
|
{ viewBox: "0 0 256 256" },
|
447
|
-
|
450
|
+
N & /*$$props*/
|
448
451
|
8 && /*$$props*/
|
449
|
-
|
450
|
-
])), (!b ||
|
452
|
+
t[3]
|
453
|
+
])), (!b || N & /*$cameraDevicesStore*/
|
451
454
|
4 && f !== (f = /*$cameraDevicesStore*/
|
452
|
-
|
455
|
+
t[2].length == 1)) && (s.hidden = f), (!b || N & /*className*/
|
453
456
|
1 && o !== (o = "ce-dui-dropdown ce-dui-dropdown-top absolute z-10 right-0 sm:block " + /*className*/
|
454
|
-
|
457
|
+
t[0])) && _(c, "class", o);
|
455
458
|
},
|
456
|
-
i(
|
457
|
-
b || (
|
459
|
+
i(t) {
|
460
|
+
b || (F(l.$$.fragment, t), b = !0);
|
458
461
|
},
|
459
|
-
o(
|
460
|
-
|
462
|
+
o(t) {
|
463
|
+
K(l.$$.fragment, t), b = !1;
|
461
464
|
},
|
462
|
-
d(
|
463
|
-
|
465
|
+
d(t) {
|
466
|
+
G(l, t), t && u(r), t && u(c), p = !1, d();
|
464
467
|
}
|
465
468
|
};
|
466
469
|
}
|
467
|
-
function
|
470
|
+
function ne(m, l, r) {
|
468
471
|
let c, s;
|
469
|
-
|
470
|
-
let { className:
|
471
|
-
const
|
472
|
+
k(m, P, (f) => r(1, c = f)), k(m, J, (f) => r(2, s = f));
|
473
|
+
let { className: i = "" } = l;
|
474
|
+
const a = () => {
|
472
475
|
T(P, c = !c, c);
|
473
476
|
};
|
474
477
|
return m.$$set = (f) => {
|
475
|
-
|
476
|
-
},
|
478
|
+
r(3, l = A(A({}, l), D(f))), "className" in f && r(0, i = f.className);
|
479
|
+
}, l = D(l), [i, c, s, l, a];
|
477
480
|
}
|
478
|
-
class
|
479
|
-
constructor(
|
480
|
-
super(),
|
481
|
+
class re extends B {
|
482
|
+
constructor(l) {
|
483
|
+
super(), S(
|
481
484
|
this,
|
482
485
|
{
|
483
486
|
target: this.shadowRoot,
|
484
487
|
props: H(this.attributes),
|
485
488
|
customElement: !0
|
486
489
|
},
|
490
|
+
ne,
|
487
491
|
oe,
|
488
|
-
|
489
|
-
S,
|
492
|
+
Z,
|
490
493
|
{ className: 0 },
|
491
494
|
null
|
492
|
-
),
|
495
|
+
), l && (l.target && n(l.target, this, l.anchor), l.props && (this.$set(l.props), g()));
|
493
496
|
}
|
494
497
|
static get observedAttributes() {
|
495
498
|
return ["className"];
|
@@ -497,14 +500,14 @@ class ne extends B {
|
|
497
500
|
get className() {
|
498
501
|
return this.$$.ctx[0];
|
499
502
|
}
|
500
|
-
set className(
|
501
|
-
this.$$set({ className:
|
503
|
+
set className(l) {
|
504
|
+
this.$$set({ className: l }), g();
|
502
505
|
}
|
503
506
|
}
|
504
|
-
customElements.define("camera-btn",
|
507
|
+
customElements.define("camera-btn", re);
|
505
508
|
export {
|
506
509
|
C,
|
507
|
-
|
508
|
-
|
509
|
-
|
510
|
+
re as a,
|
511
|
+
ie as b,
|
512
|
+
Q as c
|
510
513
|
};
|