bry-biometric-collector 2.2.1 → 2.2.2

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