smarteye-e-components 0.0.7 → 0.0.9

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.
@@ -1,1814 +1,322 @@
1
- function Hn(e, t) {
2
- const n = /* @__PURE__ */ Object.create(null), r = e.split(",");
3
- for (let o = 0; o < r.length; o++)
4
- n[r[o]] = !0;
5
- return t ? (o) => !!n[o.toLowerCase()] : (o) => !!n[o];
6
- }
7
- function Ze(e) {
8
- if (w(e)) {
9
- const t = {};
10
- for (let n = 0; n < e.length; n++) {
11
- const r = e[n], o = D(r) ? Kn(r) : Ze(r);
12
- if (o)
13
- for (const s in o)
14
- t[s] = o[s];
1
+ import { defineComponent as F, computed as O, openBlock as w, createElementBlock as b, renderSlot as y, createElementVNode as f, toDisplayString as P, h as E, ref as G, resolveComponent as k, createVNode as $, withCtx as C, Fragment as j, renderList as D, createBlock as W, withDirectives as et, normalizeClass as ot, vShow as nt, createCommentVNode as T, pushScopeId as st, popScopeId as rt } from "vue";
2
+ var H;
3
+ ((t) => {
4
+ ((o) => {
5
+ function s(c) {
6
+ const i = [];
7
+ for (let l = 0; l < c; l++)
8
+ i.push({
9
+ id: "testId",
10
+ name: `device-${l}`,
11
+ online: l % 2 == 0,
12
+ channels: []
13
+ });
14
+ return i;
15
15
  }
16
- return t;
17
- } else {
18
- if (D(e))
19
- return e;
20
- if (S(e))
21
- return e;
22
- }
23
- }
24
- const Gn = /;(?![^(]*\))/g, kn = /:(.+)/;
25
- function Kn(e) {
26
- const t = {};
27
- return e.split(Gn).forEach((n) => {
28
- if (n) {
29
- const r = n.split(kn);
30
- r.length > 1 && (t[r[0].trim()] = r[1].trim());
16
+ function e(c) {
17
+ const i = [];
18
+ for (let l = 0; l < c; l++)
19
+ i.push({
20
+ id: `groupid-${l}`,
21
+ name: `group-${l}`,
22
+ onlineCount: 0,
23
+ totalCount: 0,
24
+ devices: s(10),
25
+ items: e(c - l - 1)
26
+ });
27
+ return i;
31
28
  }
32
- }), t;
33
- }
34
- function Te(e) {
35
- let t = "";
36
- if (D(e))
37
- t = e;
38
- else if (w(e))
39
- for (let n = 0; n < e.length; n++) {
40
- const r = Te(e[n]);
41
- r && (t += r + " ");
42
- }
43
- else if (S(e))
44
- for (const n in e)
45
- e[n] && (t += n + " ");
46
- return t.trim();
47
- }
48
- const Ne = (e) => D(e) ? e : e == null ? "" : w(e) || S(e) && (e.toString === Ut || !y(e.toString)) ? JSON.stringify(e, Kt, 2) : String(e), Kt = (e, t) => t && t.__v_isRef ? Kt(e, t.value) : J(t) ? {
49
- [`Map(${t.size})`]: [...t.entries()].reduce((n, [r, o]) => (n[`${r} =>`] = o, n), {})
50
- } : Wt(t) ? {
51
- [`Set(${t.size})`]: [...t.values()]
52
- } : S(t) && !w(t) && !Bt(t) ? String(t) : t, C = process.env.NODE_ENV !== "production" ? Object.freeze({}) : {}, Wn = process.env.NODE_ENV !== "production" ? Object.freeze([]) : [], et = () => {
53
- }, Un = () => !1, Ln = /^on[^a-z]/, Bn = (e) => Ln.test(e), A = Object.assign, Jn = (e, t) => {
54
- const n = e.indexOf(t);
55
- n > -1 && e.splice(n, 1);
56
- }, qn = Object.prototype.hasOwnProperty, v = (e, t) => qn.call(e, t), w = Array.isArray, J = (e) => Me(e) === "[object Map]", Wt = (e) => Me(e) === "[object Set]", y = (e) => typeof e == "function", D = (e) => typeof e == "string", tt = (e) => typeof e == "symbol", S = (e) => e !== null && typeof e == "object", Yn = (e) => S(e) && y(e.then) && y(e.catch), Ut = Object.prototype.toString, Me = (e) => Ut.call(e), Lt = (e) => Me(e).slice(8, -1), Bt = (e) => Me(e) === "[object Object]", nt = (e) => D(e) && e !== "NaN" && e[0] !== "-" && "" + parseInt(e, 10) === e, Jt = (e) => {
57
- const t = /* @__PURE__ */ Object.create(null);
58
- return (n) => t[n] || (t[n] = e(n));
59
- }, Qn = /-(\w)/g, Se = Jt((e) => e.replace(Qn, (t, n) => n ? n.toUpperCase() : "")), ye = Jt((e) => e.charAt(0).toUpperCase() + e.slice(1)), le = (e, t) => !Object.is(e, t), Xn = (e, t, n) => {
60
- Object.defineProperty(e, t, {
61
- configurable: !0,
62
- enumerable: !1,
63
- value: n
64
- });
65
- };
66
- let gt;
67
- const Zn = () => gt || (gt = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : typeof global < "u" ? global : {});
68
- function mt(e, ...t) {
69
- console.warn(`[Vue warn] ${e}`, ...t);
70
- }
71
- let eo;
72
- function to(e, t = eo) {
73
- t && t.active && t.effects.push(e);
74
- }
75
- const ue = (e) => {
76
- const t = new Set(e);
77
- return t.w = 0, t.n = 0, t;
78
- }, qt = (e) => (e.w & W) > 0, Yt = (e) => (e.n & W) > 0, no = ({ deps: e }) => {
79
- if (e.length)
80
- for (let t = 0; t < e.length; t++)
81
- e[t].w |= W;
82
- }, oo = (e) => {
83
- const { deps: t } = e;
84
- if (t.length) {
85
- let n = 0;
86
- for (let r = 0; r < t.length; r++) {
87
- const o = t[r];
88
- qt(o) && !Yt(o) ? o.delete(e) : t[n++] = o, o.w &= ~W, o.n &= ~W;
89
- }
90
- t.length = n;
91
- }
92
- }, ke = /* @__PURE__ */ new WeakMap();
93
- let se = 0, W = 1;
94
- const Ke = 30;
95
- let I;
96
- const q = Symbol(process.env.NODE_ENV !== "production" ? "iterate" : ""), We = Symbol(process.env.NODE_ENV !== "production" ? "Map key iterate" : "");
97
- class Qt {
98
- constructor(t, n = null, r) {
99
- this.fn = t, this.scheduler = n, this.active = !0, this.deps = [], this.parent = void 0, to(this, r);
100
- }
101
- run() {
102
- if (!this.active)
103
- return this.fn();
104
- let t = I, n = K;
105
- for (; t; ) {
106
- if (t === this)
107
- return;
108
- t = t.parent;
109
- }
110
- try {
111
- return this.parent = I, I = this, K = !0, W = 1 << ++se, se <= Ke ? no(this) : wt(this), this.fn();
112
- } finally {
113
- se <= Ke && oo(this), W = 1 << --se, I = this.parent, K = n, this.parent = void 0, this.deferStop && this.stop();
114
- }
115
- }
116
- stop() {
117
- I === this ? this.deferStop = !0 : this.active && (wt(this), this.onStop && this.onStop(), this.active = !1);
118
- }
119
- }
120
- function wt(e) {
121
- const { deps: t } = e;
122
- if (t.length) {
123
- for (let n = 0; n < t.length; n++)
124
- t[n].delete(e);
125
- t.length = 0;
126
- }
127
- }
128
- let K = !0;
129
- const Xt = [];
130
- function Zt() {
131
- Xt.push(K), K = !1;
132
- }
133
- function en() {
134
- const e = Xt.pop();
135
- K = e === void 0 ? !0 : e;
136
- }
137
- function T(e, t, n) {
138
- if (K && I) {
139
- let r = ke.get(e);
140
- r || ke.set(e, r = /* @__PURE__ */ new Map());
141
- let o = r.get(n);
142
- o || r.set(n, o = ue());
143
- const s = process.env.NODE_ENV !== "production" ? { effect: I, target: e, type: t, key: n } : void 0;
144
- Ue(o, s);
145
- }
146
- }
147
- function Ue(e, t) {
148
- let n = !1;
149
- se <= Ke ? Yt(e) || (e.n |= W, n = !qt(e)) : n = !e.has(I), n && (e.add(I), I.deps.push(e), process.env.NODE_ENV !== "production" && I.onTrack && I.onTrack(Object.assign({ effect: I }, t)));
150
- }
151
- function U(e, t, n, r, o, s) {
152
- const i = ke.get(e);
153
- if (!i)
154
- return;
155
- let c = [];
156
- if (t === "clear")
157
- c = [...i.values()];
158
- else if (n === "length" && w(e))
159
- i.forEach((a, p) => {
160
- (p === "length" || p >= r) && c.push(a);
161
- });
162
- else
163
- switch (n !== void 0 && c.push(i.get(n)), t) {
164
- case "add":
165
- w(e) ? nt(n) && c.push(i.get("length")) : (c.push(i.get(q)), J(e) && c.push(i.get(We)));
166
- break;
167
- case "delete":
168
- w(e) || (c.push(i.get(q)), J(e) && c.push(i.get(We)));
169
- break;
170
- case "set":
171
- J(e) && c.push(i.get(q));
172
- break;
173
- }
174
- const u = process.env.NODE_ENV !== "production" ? { target: e, type: t, key: n, newValue: r, oldValue: o, oldTarget: s } : void 0;
175
- if (c.length === 1)
176
- c[0] && (process.env.NODE_ENV !== "production" ? te(c[0], u) : te(c[0]));
177
- else {
178
- const a = [];
179
- for (const p of c)
180
- p && a.push(...p);
181
- process.env.NODE_ENV !== "production" ? te(ue(a), u) : te(ue(a));
182
- }
183
- }
184
- function te(e, t) {
185
- const n = w(e) ? e : [...e];
186
- for (const r of n)
187
- r.computed && Et(r, t);
188
- for (const r of n)
189
- r.computed || Et(r, t);
190
- }
191
- function Et(e, t) {
192
- (e !== I || e.allowRecurse) && (process.env.NODE_ENV !== "production" && e.onTrigger && e.onTrigger(A({ effect: e }, t)), e.scheduler ? e.scheduler() : e.run());
193
- }
194
- const ro = /* @__PURE__ */ Hn("__proto__,__v_isRef,__isVue"), tn = new Set(
195
- /* @__PURE__ */ Object.getOwnPropertyNames(Symbol).filter((e) => e !== "arguments" && e !== "caller").map((e) => Symbol[e]).filter(tt)
196
- ), so = /* @__PURE__ */ ot(), io = /* @__PURE__ */ ot(!0), co = /* @__PURE__ */ ot(!0, !0), bt = /* @__PURE__ */ lo();
197
- function lo() {
198
- const e = {};
199
- return ["includes", "indexOf", "lastIndexOf"].forEach((t) => {
200
- e[t] = function(...n) {
201
- const r = d(this);
202
- for (let s = 0, i = this.length; s < i; s++)
203
- T(r, "get", s + "");
204
- const o = r[t](...n);
205
- return o === -1 || o === !1 ? r[t](...n.map(d)) : o;
206
- };
207
- }), ["push", "pop", "shift", "unshift", "splice"].forEach((t) => {
208
- e[t] = function(...n) {
209
- Zt();
210
- const r = d(this)[t].apply(this, n);
211
- return en(), r;
212
- };
213
- }), e;
214
- }
215
- function ot(e = !1, t = !1) {
216
- return function(r, o, s) {
217
- if (o === "__v_isReactive")
218
- return !e;
219
- if (o === "__v_isReadonly")
220
- return e;
221
- if (o === "__v_isShallow")
222
- return t;
223
- if (o === "__v_raw" && s === (e ? t ? cn : sn : t ? Oo : rn).get(r))
224
- return r;
225
- const i = w(r);
226
- if (!e && i && v(bt, o))
227
- return Reflect.get(bt, o, s);
228
- const c = Reflect.get(r, o, s);
229
- return (tt(o) ? tn.has(o) : ro(o)) || (e || T(r, "get", o), t) ? c : x(c) ? i && nt(o) ? c : c.value : S(c) ? e ? un(c) : ln(c) : c;
230
- };
231
- }
232
- const uo = /* @__PURE__ */ ao();
233
- function ao(e = !1) {
234
- return function(n, r, o, s) {
235
- let i = n[r];
236
- if (L(i) && x(i) && !x(o))
237
- return !1;
238
- if (!e && (!Oe(o) && !L(o) && (i = d(i), o = d(o)), !w(n) && x(i) && !x(o)))
239
- return i.value = o, !0;
240
- const c = w(n) && nt(r) ? Number(r) < n.length : v(n, r), u = Reflect.set(n, r, o, s);
241
- return n === d(s) && (c ? le(o, i) && U(n, "set", r, o, i) : U(n, "add", r, o)), u;
242
- };
243
- }
244
- function fo(e, t) {
245
- const n = v(e, t), r = e[t], o = Reflect.deleteProperty(e, t);
246
- return o && n && U(e, "delete", t, void 0, r), o;
247
- }
248
- function po(e, t) {
249
- const n = Reflect.has(e, t);
250
- return (!tt(t) || !tn.has(t)) && T(e, "has", t), n;
251
- }
252
- function ho(e) {
253
- return T(e, "iterate", w(e) ? "length" : q), Reflect.ownKeys(e);
254
- }
255
- const _o = {
256
- get: so,
257
- set: uo,
258
- deleteProperty: fo,
259
- has: po,
260
- ownKeys: ho
261
- }, nn = {
262
- get: io,
263
- set(e, t) {
264
- return process.env.NODE_ENV !== "production" && mt(`Set operation on key "${String(t)}" failed: target is readonly.`, e), !0;
265
- },
266
- deleteProperty(e, t) {
267
- return process.env.NODE_ENV !== "production" && mt(`Delete operation on key "${String(t)}" failed: target is readonly.`, e), !0;
268
- }
269
- }, go = /* @__PURE__ */ A({}, nn, {
270
- get: co
271
- }), rt = (e) => e, Pe = (e) => Reflect.getPrototypeOf(e);
272
- function de(e, t, n = !1, r = !1) {
273
- e = e.__v_raw;
274
- const o = d(e), s = d(t);
275
- n || (t !== s && T(o, "get", t), T(o, "get", s));
276
- const { has: i } = Pe(o), c = r ? rt : n ? ct : ae;
277
- if (i.call(o, t))
278
- return c(e.get(t));
279
- if (i.call(o, s))
280
- return c(e.get(s));
281
- e !== o && e.get(t);
282
- }
283
- function he(e, t = !1) {
284
- const n = this.__v_raw, r = d(n), o = d(e);
285
- return t || (e !== o && T(r, "has", e), T(r, "has", o)), e === o ? n.has(e) : n.has(e) || n.has(o);
286
- }
287
- function _e(e, t = !1) {
288
- return e = e.__v_raw, !t && T(d(e), "iterate", q), Reflect.get(e, "size", e);
289
- }
290
- function vt(e) {
291
- e = d(e);
292
- const t = d(this);
293
- return Pe(t).has.call(t, e) || (t.add(e), U(t, "add", e, e)), this;
294
- }
295
- function Nt(e, t) {
296
- t = d(t);
297
- const n = d(this), { has: r, get: o } = Pe(n);
298
- let s = r.call(n, e);
299
- s ? process.env.NODE_ENV !== "production" && on(n, r, e) : (e = d(e), s = r.call(n, e));
300
- const i = o.call(n, e);
301
- return n.set(e, t), s ? le(t, i) && U(n, "set", e, t, i) : U(n, "add", e, t), this;
302
- }
303
- function St(e) {
304
- const t = d(this), { has: n, get: r } = Pe(t);
305
- let o = n.call(t, e);
306
- o ? process.env.NODE_ENV !== "production" && on(t, n, e) : (e = d(e), o = n.call(t, e));
307
- const s = r ? r.call(t, e) : void 0, i = t.delete(e);
308
- return o && U(t, "delete", e, void 0, s), i;
309
- }
310
- function yt() {
311
- const e = d(this), t = e.size !== 0, n = process.env.NODE_ENV !== "production" ? J(e) ? new Map(e) : new Set(e) : void 0, r = e.clear();
312
- return t && U(e, "clear", void 0, void 0, n), r;
313
- }
314
- function ge(e, t) {
315
- return function(r, o) {
316
- const s = this, i = s.__v_raw, c = d(i), u = t ? rt : e ? ct : ae;
317
- return !e && T(c, "iterate", q), i.forEach((a, p) => r.call(o, u(a), u(p), s));
318
- };
319
- }
320
- function me(e, t, n) {
321
- return function(...r) {
322
- const o = this.__v_raw, s = d(o), i = J(s), c = e === "entries" || e === Symbol.iterator && i, u = e === "keys" && i, a = o[e](...r), p = n ? rt : t ? ct : ae;
323
- return !t && T(s, "iterate", u ? We : q), {
324
- next() {
325
- const { value: l, done: f } = a.next();
326
- return f ? { value: l, done: f } : {
327
- value: c ? [p(l[0]), p(l[1])] : p(l),
328
- done: f
329
- };
330
- },
331
- [Symbol.iterator]() {
332
- return this;
333
- }
334
- };
335
- };
336
- }
337
- function z(e) {
338
- return function(...t) {
339
- if (process.env.NODE_ENV !== "production") {
340
- const n = t[0] ? `on key "${t[0]}" ` : "";
341
- console.warn(`${ye(e)} operation ${n}failed: target is readonly.`, d(this));
342
- }
343
- return e === "delete" ? !1 : this;
344
- };
345
- }
346
- function mo() {
347
- const e = {
348
- get(s) {
349
- return de(this, s);
350
- },
351
- get size() {
352
- return _e(this);
353
- },
354
- has: he,
355
- add: vt,
356
- set: Nt,
357
- delete: St,
358
- clear: yt,
359
- forEach: ge(!1, !1)
360
- }, t = {
361
- get(s) {
362
- return de(this, s, !1, !0);
363
- },
364
- get size() {
365
- return _e(this);
366
- },
367
- has: he,
368
- add: vt,
369
- set: Nt,
370
- delete: St,
371
- clear: yt,
372
- forEach: ge(!1, !0)
373
- }, n = {
374
- get(s) {
375
- return de(this, s, !0);
376
- },
377
- get size() {
378
- return _e(this, !0);
379
- },
380
- has(s) {
381
- return he.call(this, s, !0);
382
- },
383
- add: z("add"),
384
- set: z("set"),
385
- delete: z("delete"),
386
- clear: z("clear"),
387
- forEach: ge(!0, !1)
388
- }, r = {
389
- get(s) {
390
- return de(this, s, !0, !0);
391
- },
392
- get size() {
393
- return _e(this, !0);
394
- },
395
- has(s) {
396
- return he.call(this, s, !0);
397
- },
398
- add: z("add"),
399
- set: z("set"),
400
- delete: z("delete"),
401
- clear: z("clear"),
402
- forEach: ge(!0, !0)
403
- };
404
- return ["keys", "values", "entries", Symbol.iterator].forEach((s) => {
405
- e[s] = me(s, !1, !1), n[s] = me(s, !0, !1), t[s] = me(s, !1, !0), r[s] = me(s, !0, !0);
406
- }), [
407
- e,
408
- n,
409
- t,
410
- r
411
- ];
412
- }
413
- const [wo, Eo, bo, vo] = /* @__PURE__ */ mo();
414
- function st(e, t) {
415
- const n = t ? e ? vo : bo : e ? Eo : wo;
416
- return (r, o, s) => o === "__v_isReactive" ? !e : o === "__v_isReadonly" ? e : o === "__v_raw" ? r : Reflect.get(v(n, o) && o in r ? n : r, o, s);
417
- }
418
- const No = {
419
- get: /* @__PURE__ */ st(!1, !1)
420
- }, So = {
421
- get: /* @__PURE__ */ st(!0, !1)
422
- }, yo = {
423
- get: /* @__PURE__ */ st(!0, !0)
424
- };
425
- function on(e, t, n) {
426
- const r = d(n);
427
- if (r !== n && t.call(e, r)) {
428
- const o = Lt(e);
429
- console.warn(`Reactive ${o} contains both the raw and reactive versions of the same object${o === "Map" ? " as keys" : ""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`);
430
- }
431
- }
432
- const rn = /* @__PURE__ */ new WeakMap(), Oo = /* @__PURE__ */ new WeakMap(), sn = /* @__PURE__ */ new WeakMap(), cn = /* @__PURE__ */ new WeakMap();
433
- function Io(e) {
434
- switch (e) {
435
- case "Object":
436
- case "Array":
437
- return 1;
438
- case "Map":
439
- case "Set":
440
- case "WeakMap":
441
- case "WeakSet":
442
- return 2;
443
- default:
444
- return 0;
445
- }
446
- }
447
- function xo(e) {
448
- return e.__v_skip || !Object.isExtensible(e) ? 0 : Io(Lt(e));
449
- }
450
- function ln(e) {
451
- return L(e) ? e : it(e, !1, _o, No, rn);
452
- }
453
- function un(e) {
454
- return it(e, !0, nn, So, sn);
455
- }
456
- function we(e) {
457
- return it(e, !0, go, yo, cn);
458
- }
459
- function it(e, t, n, r, o) {
460
- if (!S(e))
461
- return process.env.NODE_ENV !== "production" && console.warn(`value cannot be made reactive: ${String(e)}`), e;
462
- if (e.__v_raw && !(t && e.__v_isReactive))
463
- return e;
464
- const s = o.get(e);
465
- if (s)
466
- return s;
467
- const i = xo(e);
468
- if (i === 0)
469
- return e;
470
- const c = new Proxy(e, i === 2 ? r : n);
471
- return o.set(e, c), c;
472
- }
473
- function Y(e) {
474
- return L(e) ? Y(e.__v_raw) : !!(e && e.__v_isReactive);
475
- }
476
- function L(e) {
477
- return !!(e && e.__v_isReadonly);
478
- }
479
- function Oe(e) {
480
- return !!(e && e.__v_isShallow);
481
- }
482
- function Le(e) {
483
- return Y(e) || L(e);
484
- }
485
- function d(e) {
486
- const t = e && e.__v_raw;
487
- return t ? d(t) : e;
488
- }
489
- function $o(e) {
490
- return Xn(e, "__v_skip", !0), e;
491
- }
492
- const ae = (e) => S(e) ? ln(e) : e, ct = (e) => S(e) ? un(e) : e;
493
- function an(e) {
494
- K && I && (e = d(e), process.env.NODE_ENV !== "production" ? Ue(e.dep || (e.dep = ue()), {
495
- target: e,
496
- type: "get",
497
- key: "value"
498
- }) : Ue(e.dep || (e.dep = ue())));
499
- }
500
- function fn(e, t) {
501
- e = d(e), e.dep && (process.env.NODE_ENV !== "production" ? te(e.dep, {
502
- target: e,
503
- type: "set",
504
- key: "value",
505
- newValue: t
506
- }) : te(e.dep));
507
- }
508
- function x(e) {
509
- return !!(e && e.__v_isRef === !0);
510
- }
511
- function Co(e) {
512
- return Vo(e, !1);
513
- }
514
- function Vo(e, t) {
515
- return x(e) ? e : new Do(e, t);
516
- }
517
- class Do {
518
- constructor(t, n) {
519
- this.__v_isShallow = n, this.dep = void 0, this.__v_isRef = !0, this._rawValue = n ? t : d(t), this._value = n ? t : ae(t);
520
- }
521
- get value() {
522
- return an(this), this._value;
523
- }
524
- set value(t) {
525
- const n = this.__v_isShallow || Oe(t) || L(t);
526
- t = n ? t : d(t), le(t, this._rawValue) && (this._rawValue = t, this._value = n ? t : ae(t), fn(this, t));
527
- }
528
- }
529
- function Ro(e) {
530
- return x(e) ? e.value : e;
531
- }
532
- const To = {
533
- get: (e, t, n) => Ro(Reflect.get(e, t, n)),
534
- set: (e, t, n, r) => {
535
- const o = e[t];
536
- return x(o) && !x(n) ? (o.value = n, !0) : Reflect.set(e, t, n, r);
537
- }
538
- };
539
- function Mo(e) {
540
- return Y(e) ? e : new Proxy(e, To);
541
- }
542
- var pn;
543
- class Po {
544
- constructor(t, n, r, o) {
545
- this._setter = n, this.dep = void 0, this.__v_isRef = !0, this[pn] = !1, this._dirty = !0, this.effect = new Qt(t, () => {
546
- this._dirty || (this._dirty = !0, fn(this));
547
- }), this.effect.computed = this, this.effect.active = this._cacheable = !o, this.__v_isReadonly = r;
548
- }
549
- get value() {
550
- const t = d(this);
551
- return an(t), (t._dirty || !t._cacheable) && (t._dirty = !1, t._value = t.effect.run()), t._value;
552
- }
553
- set value(t) {
554
- this._setter(t);
555
- }
556
- }
557
- pn = "__v_isReadonly";
558
- function Fo(e, t, n = !1) {
559
- let r, o;
560
- const s = y(e);
561
- s ? (r = e, o = process.env.NODE_ENV !== "production" ? () => {
562
- console.warn("Write operation failed: computed value is readonly");
563
- } : et) : (r = e.get, o = e.set);
564
- const i = new Po(r, o, s || !o, n);
565
- return process.env.NODE_ENV !== "production" && t && !n && (i.effect.onTrack = t.onTrack, i.effect.onTrigger = t.onTrigger), i;
566
- }
567
- const Q = [];
568
- function Ao(e) {
569
- Q.push(e);
570
- }
571
- function jo() {
572
- Q.pop();
573
- }
574
- function N(e, ...t) {
575
- Zt();
576
- const n = Q.length ? Q[Q.length - 1].component : null, r = n && n.appContext.config.warnHandler, o = zo();
577
- if (r)
578
- X(r, n, 11, [
579
- e + t.join(""),
580
- n && n.proxy,
581
- o.map(({ vnode: s }) => `at <${$n(n, s.type)}>`).join(`
582
- `),
583
- o
584
- ]);
585
- else {
586
- const s = [`[Vue warn]: ${e}`, ...t];
587
- o.length && s.push(`
588
- `, ...Ho(o)), console.warn(...s);
589
- }
590
- en();
591
- }
592
- function zo() {
593
- let e = Q[Q.length - 1];
594
- if (!e)
595
- return [];
596
- const t = [];
597
- for (; e; ) {
598
- const n = t[0];
599
- n && n.vnode === e ? n.recurseCount++ : t.push({
600
- vnode: e,
601
- recurseCount: 0
602
- });
603
- const r = e.component && e.component.parent;
604
- e = r && r.vnode;
605
- }
606
- return t;
607
- }
608
- function Ho(e) {
609
- const t = [];
610
- return e.forEach((n, r) => {
611
- t.push(...r === 0 ? [] : [`
612
- `], ...Go(n));
613
- }), t;
614
- }
615
- function Go({ vnode: e, recurseCount: t }) {
616
- const n = t > 0 ? `... (${t} recursive calls)` : "", r = e.component ? e.component.parent == null : !1, o = ` at <${$n(e.component, e.type, r)}`, s = ">" + n;
617
- return e.props ? [o, ...ko(e.props), s] : [o + s];
618
- }
619
- function ko(e) {
620
- const t = [], n = Object.keys(e);
621
- return n.slice(0, 3).forEach((r) => {
622
- t.push(...dn(r, e[r]));
623
- }), n.length > 3 && t.push(" ..."), t;
624
- }
625
- function dn(e, t, n) {
626
- return D(t) ? (t = JSON.stringify(t), n ? t : [`${e}=${t}`]) : typeof t == "number" || typeof t == "boolean" || t == null ? n ? t : [`${e}=${t}`] : x(t) ? (t = dn(e, d(t.value), !0), n ? t : [`${e}=Ref<`, t, ">"]) : y(t) ? [`${e}=fn${t.name ? `<${t.name}>` : ""}`] : (t = d(t), n ? t : [`${e}=`, t]);
627
- }
628
- const hn = {
629
- sp: "serverPrefetch hook",
630
- bc: "beforeCreate hook",
631
- c: "created hook",
632
- bm: "beforeMount hook",
633
- m: "mounted hook",
634
- bu: "beforeUpdate hook",
635
- u: "updated",
636
- bum: "beforeUnmount hook",
637
- um: "unmounted hook",
638
- a: "activated hook",
639
- da: "deactivated hook",
640
- ec: "errorCaptured hook",
641
- rtc: "renderTracked hook",
642
- rtg: "renderTriggered hook",
643
- [0]: "setup function",
644
- [1]: "render function",
645
- [2]: "watcher getter",
646
- [3]: "watcher callback",
647
- [4]: "watcher cleanup function",
648
- [5]: "native event handler",
649
- [6]: "component event handler",
650
- [7]: "vnode hook",
651
- [8]: "directive hook",
652
- [9]: "transition hook",
653
- [10]: "app errorHandler",
654
- [11]: "app warnHandler",
655
- [12]: "ref function",
656
- [13]: "async component loader",
657
- [14]: "scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"
658
- };
659
- function X(e, t, n, r) {
660
- let o;
661
- try {
662
- o = r ? e(...r) : e();
663
- } catch (s) {
664
- _n(s, t, n);
665
- }
666
- return o;
667
- }
668
- function Be(e, t, n, r) {
669
- if (y(e)) {
670
- const s = X(e, t, n, r);
671
- return s && Yn(s) && s.catch((i) => {
672
- _n(i, t, n);
673
- }), s;
674
- }
675
- const o = [];
676
- for (let s = 0; s < e.length; s++)
677
- o.push(Be(e[s], t, n, r));
678
- return o;
679
- }
680
- function _n(e, t, n, r = !0) {
681
- const o = t ? t.vnode : null;
682
- if (t) {
683
- let s = t.parent;
684
- const i = t.proxy, c = process.env.NODE_ENV !== "production" ? hn[n] : n;
685
- for (; s; ) {
686
- const a = s.ec;
687
- if (a) {
688
- for (let p = 0; p < a.length; p++)
689
- if (a[p](e, i, c) === !1)
690
- return;
691
- }
692
- s = s.parent;
693
- }
694
- const u = t.appContext.config.errorHandler;
695
- if (u) {
696
- X(u, null, 10, [e, i, c]);
697
- return;
698
- }
699
- }
700
- Ko(e, n, o, r);
701
- }
702
- function Ko(e, t, n, r = !0) {
703
- if (process.env.NODE_ENV !== "production") {
704
- const o = hn[t];
705
- if (n && Ao(n), N(`Unhandled error${o ? ` during execution of ${o}` : ""}`), n && jo(), r)
706
- throw e;
707
- console.error(e);
708
- } else
709
- console.error(e);
710
- }
711
- let Ie = !1, Je = !1;
712
- const M = [];
713
- let G = 0;
714
- const oe = [];
715
- let j = null, H = 0;
716
- const gn = /* @__PURE__ */ Promise.resolve();
717
- let lt = null;
718
- const Wo = 100;
719
- function Uo(e) {
720
- const t = lt || gn;
721
- return e ? t.then(this ? e.bind(this) : e) : t;
722
- }
723
- function Lo(e) {
724
- let t = G + 1, n = M.length;
725
- for (; t < n; ) {
726
- const r = t + n >>> 1;
727
- fe(M[r]) < e ? t = r + 1 : n = r;
728
- }
729
- return t;
730
- }
731
- function ut(e) {
732
- (!M.length || !M.includes(e, Ie && e.allowRecurse ? G + 1 : G)) && (e.id == null ? M.push(e) : M.splice(Lo(e.id), 0, e), mn());
733
- }
734
- function mn() {
735
- !Ie && !Je && (Je = !0, lt = gn.then(En));
736
- }
737
- function wn(e) {
738
- w(e) ? oe.push(...e) : (!j || !j.includes(e, e.allowRecurse ? H + 1 : H)) && oe.push(e), mn();
739
- }
740
- function Bo(e) {
741
- if (oe.length) {
742
- const t = [...new Set(oe)];
743
- if (oe.length = 0, j) {
744
- j.push(...t);
745
- return;
746
- }
747
- for (j = t, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), j.sort((n, r) => fe(n) - fe(r)), H = 0; H < j.length; H++)
748
- process.env.NODE_ENV !== "production" && bn(e, j[H]) || j[H]();
749
- j = null, H = 0;
750
- }
751
- }
752
- const fe = (e) => e.id == null ? 1 / 0 : e.id, Jo = (e, t) => {
753
- const n = fe(e) - fe(t);
754
- if (n === 0) {
755
- if (e.pre && !t.pre)
756
- return -1;
757
- if (t.pre && !e.pre)
758
- return 1;
759
- }
760
- return n;
761
- };
762
- function En(e) {
763
- Je = !1, Ie = !0, process.env.NODE_ENV !== "production" && (e = e || /* @__PURE__ */ new Map()), M.sort(Jo);
764
- const t = process.env.NODE_ENV !== "production" ? (n) => bn(e, n) : et;
765
- try {
766
- for (G = 0; G < M.length; G++) {
767
- const n = M[G];
768
- if (n && n.active !== !1) {
769
- if (process.env.NODE_ENV !== "production" && t(n))
770
- continue;
771
- X(n, null, 14);
772
- }
773
- }
774
- } finally {
775
- G = 0, M.length = 0, Bo(e), Ie = !1, lt = null, (M.length || oe.length) && En(e);
776
- }
777
- }
778
- function bn(e, t) {
779
- if (!e.has(t))
780
- e.set(t, 1);
781
- else {
782
- const n = e.get(t);
783
- if (n > Wo) {
784
- const r = t.ownerInstance, o = r && pt(r.type);
785
- return N(`Maximum recursive updates exceeded${o ? ` in component <${o}>` : ""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`), !0;
786
- } else
787
- e.set(t, n + 1);
788
- }
789
- }
790
- const re = /* @__PURE__ */ new Set();
791
- process.env.NODE_ENV !== "production" && (Zn().__VUE_HMR_RUNTIME__ = {
792
- createRecord: He(qo),
793
- rerender: He(Yo),
794
- reload: He(Qo)
795
- });
796
- const xe = /* @__PURE__ */ new Map();
797
- function qo(e, t) {
798
- return xe.has(e) ? !1 : (xe.set(e, {
799
- initialDef: ie(t),
800
- instances: /* @__PURE__ */ new Set()
801
- }), !0);
802
- }
803
- function ie(e) {
804
- return Cn(e) ? e.__vccOpts : e;
805
- }
806
- function Yo(e, t) {
807
- const n = xe.get(e);
808
- !n || (n.initialDef.render = t, [...n.instances].forEach((r) => {
809
- t && (r.render = t, ie(r.type).render = t), r.renderCache = [], r.update();
810
- }));
811
- }
812
- function Qo(e, t) {
813
- const n = xe.get(e);
814
- if (!n)
815
- return;
816
- t = ie(t), Ot(n.initialDef, t);
817
- const r = [...n.instances];
818
- for (const o of r) {
819
- const s = ie(o.type);
820
- re.has(s) || (s !== n.initialDef && Ot(s, t), re.add(s)), o.appContext.optionsCache.delete(o.type), o.ceReload ? (re.add(s), o.ceReload(t.styles), re.delete(s)) : o.parent ? (ut(o.parent.update), o.parent.type.__asyncLoader && o.parent.ceReload && o.parent.ceReload(t.styles)) : o.appContext.reload ? o.appContext.reload() : typeof window < "u" ? window.location.reload() : console.warn("[HMR] Root or manually mounted instance modified. Full reload required.");
821
- }
822
- wn(() => {
823
- for (const o of r)
824
- re.delete(ie(o.type));
825
- });
826
- }
827
- function Ot(e, t) {
828
- A(e, t);
829
- for (const n in e)
830
- n !== "__file" && !(n in t) && delete e[n];
831
- }
832
- function He(e) {
833
- return (t, n) => {
834
- try {
835
- return e(t, n);
836
- } catch (r) {
837
- console.error(r), console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.");
838
- }
839
- };
840
- }
841
- function Xo(e, ...t) {
842
- }
843
- const Zo = /* @__PURE__ */ er("component:updated");
844
- function er(e) {
845
- return (t) => {
846
- Xo(e, t.appContext.app, t.uid, t.parent ? t.parent.uid : void 0, t);
847
- };
848
- }
849
- let $ = null, Fe = null;
850
- function It(e) {
851
- const t = $;
852
- return $ = e, Fe = e && e.type.__scopeId || null, t;
853
- }
854
- function tr(e) {
855
- Fe = e;
856
- }
857
- function nr() {
858
- Fe = null;
859
- }
860
- function vn(e, t = $, n) {
861
- if (!t || e._n)
862
- return e;
863
- const r = (...o) => {
864
- r._d && Rt(-1);
865
- const s = It(t), i = e(...o);
866
- return It(s), r._d && Rt(1), process.env.NODE_ENV !== "production" && Zo(t), i;
867
- };
868
- return r._n = !0, r._c = !0, r._d = !0, r;
869
- }
870
- const or = (e) => e.__isSuspense;
871
- function rr(e, t) {
872
- t && t.pendingBranch ? w(e) ? t.effects.push(...e) : t.effects.push(e) : wn(e);
873
- }
874
- const xt = {};
875
- function sr(e, t, { immediate: n, deep: r, flush: o, onTrack: s, onTrigger: i } = C) {
876
- process.env.NODE_ENV !== "production" && !t && (n !== void 0 && N('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'), r !== void 0 && N('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));
877
- const c = (h) => {
878
- N("Invalid watch source: ", h, "A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.");
879
- }, u = Z;
880
- let a, p = !1, l = !1;
881
- if (x(e) ? (a = () => e.value, p = Oe(e)) : Y(e) ? (a = () => e, r = !0) : w(e) ? (l = !0, p = e.some((h) => Y(h) || Oe(h)), a = () => e.map((h) => {
882
- if (x(h))
883
- return h.value;
884
- if (Y(h))
885
- return ne(h);
886
- if (y(h))
887
- return X(h, u, 2);
888
- process.env.NODE_ENV !== "production" && c(h);
889
- })) : y(e) ? t ? a = () => X(e, u, 2) : a = () => {
890
- if (!(u && u.isUnmounted))
891
- return f && f(), Be(e, u, 3, [E]);
892
- } : (a = et, process.env.NODE_ENV !== "production" && c(e)), t && r) {
893
- const h = a;
894
- a = () => ne(h());
895
- }
896
- let f, E = (h) => {
897
- f = b.onStop = () => {
898
- X(h, u, 4);
899
- };
900
- }, g = l ? [] : xt;
901
- const m = () => {
902
- if (!!b.active)
903
- if (t) {
904
- const h = b.run();
905
- (r || p || (l ? h.some((jn, zn) => le(jn, g[zn])) : le(h, g))) && (f && f(), Be(t, u, 3, [
906
- h,
907
- g === xt ? void 0 : g,
908
- E
909
- ]), g = h);
910
- } else
911
- b.run();
912
- };
913
- m.allowRecurse = !!t;
914
- let _;
915
- o === "sync" ? _ = m : o === "post" ? _ = () => Dt(m, u && u.suspense) : (m.pre = !0, u && (m.id = u.uid), _ = () => ut(m));
916
- const b = new Qt(a, _);
917
- return process.env.NODE_ENV !== "production" && (b.onTrack = s, b.onTrigger = i), t ? n ? m() : g = b.run() : o === "post" ? Dt(b.run.bind(b), u && u.suspense) : b.run(), () => {
918
- b.stop(), u && u.scope && Jn(u.scope.effects, b);
919
- };
920
- }
921
- function ir(e, t, n) {
922
- const r = this.proxy, o = D(e) ? e.includes(".") ? cr(r, e) : () => r[e] : e.bind(r, r);
923
- let s;
924
- y(t) ? s = t : (s = t.handler, n = t);
925
- const i = Z;
926
- Tt(this);
927
- const c = sr(o, s.bind(r), n);
928
- return i ? Tt(i) : Ir(), c;
929
- }
930
- function cr(e, t) {
931
- const n = t.split(".");
932
- return () => {
933
- let r = e;
934
- for (let o = 0; o < n.length && r; o++)
935
- r = r[n[o]];
936
- return r;
937
- };
938
- }
939
- function ne(e, t) {
940
- if (!S(e) || e.__v_skip || (t = t || /* @__PURE__ */ new Set(), t.has(e)))
941
- return e;
942
- if (t.add(e), x(e))
943
- ne(e.value, t);
944
- else if (w(e))
945
- for (let n = 0; n < e.length; n++)
946
- ne(e[n], t);
947
- else if (Wt(e) || J(e))
948
- e.forEach((n) => {
949
- ne(n, t);
950
- });
951
- else if (Bt(e))
952
- for (const n in e)
953
- ne(e[n], t);
954
- return e;
955
- }
956
- function Ae(e) {
957
- return y(e) ? { setup: e, name: e.name } : e;
958
- }
959
- const lr = (e) => !!e.type.__asyncLoader, qe = "components";
960
- function ce(e, t) {
961
- return ar(qe, e, !0, t) || e;
962
- }
963
- const ur = Symbol();
964
- function ar(e, t, n = !0, r = !1) {
965
- const o = $ || Z;
966
- if (o) {
967
- const s = o.type;
968
- if (e === qe) {
969
- const c = pt(s, !1);
970
- if (c && (c === t || c === Se(t) || c === ye(Se(t))))
971
- return s;
972
- }
973
- const i = $t(o[e] || s[e], t) || $t(o.appContext[e], t);
974
- if (!i && r)
975
- return s;
976
- if (process.env.NODE_ENV !== "production" && n && !i) {
977
- const c = e === qe ? `
978
- If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.` : "";
979
- N(`Failed to resolve ${e.slice(0, -1)}: ${t}${c}`);
980
- }
981
- return i;
982
- } else
983
- process.env.NODE_ENV !== "production" && N(`resolve${ye(e.slice(0, -1))} can only be used in render() or setup().`);
984
- }
985
- function $t(e, t) {
986
- return e && (e[t] || e[Se(t)] || e[ye(Se(t))]);
987
- }
988
- function Ye(e, t, n, r) {
989
- let o;
990
- const s = n && n[r];
991
- if (w(e) || D(e)) {
992
- o = new Array(e.length);
993
- for (let i = 0, c = e.length; i < c; i++)
994
- o[i] = t(e[i], i, void 0, s && s[i]);
995
- } else if (typeof e == "number") {
996
- process.env.NODE_ENV !== "production" && !Number.isInteger(e) && N(`The v-for range expect an integer value but got ${e}.`), o = new Array(e);
997
- for (let i = 0; i < e; i++)
998
- o[i] = t(i + 1, i, void 0, s && s[i]);
999
- } else if (S(e))
1000
- if (e[Symbol.iterator])
1001
- o = Array.from(e, (i, c) => t(i, c, void 0, s && s[c]));
1002
- else {
1003
- const i = Object.keys(e);
1004
- o = new Array(i.length);
1005
- for (let c = 0, u = i.length; c < u; c++) {
1006
- const a = i[c];
1007
- o[c] = t(e[a], a, c, s && s[c]);
1008
- }
29
+ function r(c) {
30
+ return {
31
+ name: "hah",
32
+ onlineCount: 0,
33
+ totalCount: 0,
34
+ items: e(c)
35
+ };
1009
36
  }
1010
- else
1011
- o = [];
1012
- return n && (n[r] = o), o;
1013
- }
1014
- function fr(e, t, n = {}, r, o) {
1015
- if ($.isCE || $.parent && lr($.parent) && $.parent.isCE)
1016
- return V("slot", t === "default" ? null : { name: t }, r && r());
1017
- let s = e[t];
1018
- process.env.NODE_ENV !== "production" && s && s.length > 1 && (N("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."), s = () => []), s && s._c && (s._d = !1), R();
1019
- const i = s && Nn(s(n)), c = je(ee, {
1020
- key: n.key || i && i.key || `_${t}`
1021
- }, i || (r ? r() : []), i && e._ === 1 ? 64 : -2);
1022
- return !o && c.scopeId && (c.slotScopeIds = [c.scopeId + "-s"]), s && s._c && (s._d = !0), c;
1023
- }
1024
- function Nn(e) {
1025
- return e.some((t) => De(t) ? !(t.type === Ve || t.type === ee && !Nn(t.children)) : !0) ? e : null;
1026
- }
1027
- const Qe = (e) => e ? xr(e) ? Cr(e) || e.proxy : Qe(e.parent) : null, $e = /* @__PURE__ */ A(/* @__PURE__ */ Object.create(null), {
1028
- $: (e) => e,
1029
- $el: (e) => e.vnode.el,
1030
- $data: (e) => e.data,
1031
- $props: (e) => process.env.NODE_ENV !== "production" ? we(e.props) : e.props,
1032
- $attrs: (e) => process.env.NODE_ENV !== "production" ? we(e.attrs) : e.attrs,
1033
- $slots: (e) => process.env.NODE_ENV !== "production" ? we(e.slots) : e.slots,
1034
- $refs: (e) => process.env.NODE_ENV !== "production" ? we(e.refs) : e.refs,
1035
- $parent: (e) => Qe(e.parent),
1036
- $root: (e) => Qe(e.root),
1037
- $emit: (e) => e.emit,
1038
- $options: (e) => hr(e),
1039
- $forceUpdate: (e) => e.f || (e.f = () => ut(e.update)),
1040
- $nextTick: (e) => e.n || (e.n = Uo.bind(e.proxy)),
1041
- $watch: (e) => ir.bind(e)
1042
- }), pr = (e) => e === "_" || e === "$", dr = {
1043
- get({ _: e }, t) {
1044
- const { ctx: n, setupState: r, data: o, props: s, accessCache: i, type: c, appContext: u } = e;
1045
- if (process.env.NODE_ENV !== "production" && t === "__isVue")
1046
- return !0;
1047
- if (process.env.NODE_ENV !== "production" && r !== C && r.__isScriptSetup && v(r, t))
1048
- return r[t];
1049
- let a;
1050
- if (t[0] !== "$") {
1051
- const E = i[t];
1052
- if (E !== void 0)
1053
- switch (E) {
1054
- case 1:
1055
- return r[t];
1056
- case 2:
1057
- return o[t];
1058
- case 4:
1059
- return n[t];
1060
- case 3:
1061
- return s[t];
37
+ o.RandomDeviceGroup = r;
38
+ })(t.Test || (t.Test = {}));
39
+ function n(o, s) {
40
+ for (let e = 0; e < o.length; e++)
41
+ s(o[e]), n(o[e].items, s);
42
+ }
43
+ ((o) => {
44
+ function s(e) {
45
+ const r = {}, c = {};
46
+ return n(e.items, (i) => {
47
+ r[i.id] = i;
48
+ for (let l = 0; l < i.devices.length; l++)
49
+ c[i.devices[l].id] = i.devices[l];
50
+ }), {
51
+ getGroup(i) {
52
+ return r[i];
53
+ },
54
+ getDevice(i) {
55
+ return c[i];
1062
56
  }
1063
- else {
1064
- if (r !== C && v(r, t))
1065
- return i[t] = 1, r[t];
1066
- if (o !== C && v(o, t))
1067
- return i[t] = 2, o[t];
1068
- if ((a = e.propsOptions[0]) && v(a, t))
1069
- return i[t] = 3, s[t];
1070
- if (n !== C && v(n, t))
1071
- return i[t] = 4, n[t];
1072
- i[t] = 0;
1073
- }
1074
- }
1075
- const p = $e[t];
1076
- let l, f;
1077
- if (p)
1078
- return t === "$attrs" && (T(e, "get", t), process.env.NODE_ENV !== "production" && void 0), p(e);
1079
- if ((l = c.__cssModules) && (l = l[t]))
1080
- return l;
1081
- if (n !== C && v(n, t))
1082
- return i[t] = 4, n[t];
1083
- if (f = u.config.globalProperties, v(f, t))
1084
- return f[t];
1085
- process.env.NODE_ENV !== "production" && $ && (!D(t) || t.indexOf("__v") !== 0) && (o !== C && pr(t[0]) && v(o, t) ? N(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`) : e === $ && N(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`));
1086
- },
1087
- set({ _: e }, t, n) {
1088
- const { data: r, setupState: o, ctx: s } = e;
1089
- return o !== C && v(o, t) ? (o[t] = n, !0) : r !== C && v(r, t) ? (r[t] = n, !0) : v(e.props, t) ? (process.env.NODE_ENV !== "production" && N(`Attempting to mutate prop "${t}". Props are readonly.`, e), !1) : t[0] === "$" && t.slice(1) in e ? (process.env.NODE_ENV !== "production" && N(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`, e), !1) : (process.env.NODE_ENV !== "production" && t in e.appContext.config.globalProperties ? Object.defineProperty(s, t, {
1090
- enumerable: !0,
1091
- configurable: !0,
1092
- value: n
1093
- }) : s[t] = n, !0);
1094
- },
1095
- has({ _: { data: e, setupState: t, accessCache: n, ctx: r, appContext: o, propsOptions: s } }, i) {
1096
- let c;
1097
- return !!n[i] || e !== C && v(e, i) || t !== C && v(t, i) || (c = s[0]) && v(c, i) || v(r, i) || v($e, i) || v(o.config.globalProperties, i);
1098
- },
1099
- defineProperty(e, t, n) {
1100
- return n.get != null ? e._.accessCache[t] = 0 : v(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
1101
- }
1102
- };
1103
- process.env.NODE_ENV !== "production" && (dr.ownKeys = (e) => (N("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."), Reflect.ownKeys(e)));
1104
- function hr(e) {
1105
- const t = e.type, { mixins: n, extends: r } = t, { mixins: o, optionsCache: s, config: { optionMergeStrategies: i } } = e.appContext, c = s.get(t);
1106
- let u;
1107
- return c ? u = c : !o.length && !n && !r ? u = t : (u = {}, o.length && o.forEach((a) => Ce(u, a, i, !0)), Ce(u, t, i)), S(t) && s.set(t, u), u;
1108
- }
1109
- function Ce(e, t, n, r = !1) {
1110
- const { mixins: o, extends: s } = t;
1111
- s && Ce(e, s, n, !0), o && o.forEach((i) => Ce(e, i, n, !0));
1112
- for (const i in t)
1113
- if (r && i === "expose")
1114
- process.env.NODE_ENV !== "production" && N('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');
1115
- else {
1116
- const c = _r[i] || n && n[i];
1117
- e[i] = c ? c(e[i], t[i]) : t[i];
1118
- }
1119
- return e;
1120
- }
1121
- const _r = {
1122
- data: Ct,
1123
- props: B,
1124
- emits: B,
1125
- methods: B,
1126
- computed: B,
1127
- beforeCreate: O,
1128
- created: O,
1129
- beforeMount: O,
1130
- mounted: O,
1131
- beforeUpdate: O,
1132
- updated: O,
1133
- beforeDestroy: O,
1134
- beforeUnmount: O,
1135
- destroyed: O,
1136
- unmounted: O,
1137
- activated: O,
1138
- deactivated: O,
1139
- errorCaptured: O,
1140
- serverPrefetch: O,
1141
- components: B,
1142
- directives: B,
1143
- watch: mr,
1144
- provide: Ct,
1145
- inject: gr
1146
- };
1147
- function Ct(e, t) {
1148
- return t ? e ? function() {
1149
- return A(y(e) ? e.call(this, this) : e, y(t) ? t.call(this, this) : t);
1150
- } : t : e;
1151
- }
1152
- function gr(e, t) {
1153
- return B(Vt(e), Vt(t));
1154
- }
1155
- function Vt(e) {
1156
- if (w(e)) {
1157
- const t = {};
1158
- for (let n = 0; n < e.length; n++)
1159
- t[e[n]] = e[n];
1160
- return t;
1161
- }
1162
- return e;
1163
- }
1164
- function O(e, t) {
1165
- return e ? [...new Set([].concat(e, t))] : t;
1166
- }
1167
- function B(e, t) {
1168
- return e ? A(A(/* @__PURE__ */ Object.create(null), e), t) : t;
1169
- }
1170
- function mr(e, t) {
1171
- if (!e)
1172
- return t;
1173
- if (!t)
1174
- return e;
1175
- const n = A(/* @__PURE__ */ Object.create(null), e);
1176
- for (const r in t)
1177
- n[r] = O(e[r], t[r]);
1178
- return n;
1179
- }
1180
- function wr() {
1181
- return {
1182
- app: null,
1183
- config: {
1184
- isNativeTag: Un,
1185
- performance: !1,
1186
- globalProperties: {},
1187
- optionMergeStrategies: {},
1188
- errorHandler: void 0,
1189
- warnHandler: void 0,
1190
- compilerOptions: {}
1191
- },
1192
- mixins: [],
1193
- components: {},
1194
- directives: {},
1195
- provides: /* @__PURE__ */ Object.create(null),
1196
- optionsCache: /* @__PURE__ */ new WeakMap(),
1197
- propsCache: /* @__PURE__ */ new WeakMap(),
1198
- emitsCache: /* @__PURE__ */ new WeakMap()
1199
- };
1200
- }
1201
- const Dt = rr, Er = (e) => e.__isTeleport, ee = Symbol(process.env.NODE_ENV !== "production" ? "Fragment" : void 0), br = Symbol(process.env.NODE_ENV !== "production" ? "Text" : void 0), Ve = Symbol(process.env.NODE_ENV !== "production" ? "Comment" : void 0);
1202
- Symbol(process.env.NODE_ENV !== "production" ? "Static" : void 0);
1203
- const Ee = [];
1204
- let P = null;
1205
- function R(e = !1) {
1206
- Ee.push(P = e ? null : []);
1207
- }
1208
- function vr() {
1209
- Ee.pop(), P = Ee[Ee.length - 1] || null;
1210
- }
1211
- let pe = 1;
1212
- function Rt(e) {
1213
- pe += e;
1214
- }
1215
- function Sn(e) {
1216
- return e.dynamicChildren = pe > 0 ? P || Wn : null, vr(), pe > 0 && P && P.push(e), e;
1217
- }
1218
- function k(e, t, n, r, o, s) {
1219
- return Sn(F(e, t, n, r, o, s, !0));
1220
- }
1221
- function je(e, t, n, r, o) {
1222
- return Sn(V(e, t, n, r, o, !0));
1223
- }
1224
- function De(e) {
1225
- return e ? e.__v_isVNode === !0 : !1;
1226
- }
1227
- const Nr = (...e) => In(...e), yn = "__vInternal", On = ({ key: e }) => e != null ? e : null, be = ({ ref: e, ref_key: t, ref_for: n }) => e != null ? D(e) || x(e) || y(e) ? { i: $, r: e, k: t, f: !!n } : e : null;
1228
- function F(e, t = null, n = null, r = 0, o = null, s = e === ee ? 0 : 1, i = !1, c = !1) {
1229
- const u = {
1230
- __v_isVNode: !0,
1231
- __v_skip: !0,
1232
- type: e,
1233
- props: t,
1234
- key: t && On(t),
1235
- ref: t && be(t),
1236
- scopeId: Fe,
1237
- slotScopeIds: null,
1238
- children: n,
1239
- component: null,
1240
- suspense: null,
1241
- ssContent: null,
1242
- ssFallback: null,
1243
- dirs: null,
1244
- transition: null,
1245
- el: null,
1246
- anchor: null,
1247
- target: null,
1248
- targetAnchor: null,
1249
- staticCount: 0,
1250
- shapeFlag: s,
1251
- patchFlag: r,
1252
- dynamicProps: o,
1253
- dynamicChildren: null,
1254
- appContext: null
1255
- };
1256
- return c ? (ft(u, n), s & 128 && e.normalize(u)) : n && (u.shapeFlag |= D(n) ? 8 : 16), process.env.NODE_ENV !== "production" && u.key !== u.key && N("VNode created with invalid key (NaN). VNode type:", u.type), pe > 0 && !i && P && (u.patchFlag > 0 || s & 6) && u.patchFlag !== 32 && P.push(u), u;
1257
- }
1258
- const V = process.env.NODE_ENV !== "production" ? Nr : In;
1259
- function In(e, t = null, n = null, r = 0, o = null, s = !1) {
1260
- if ((!e || e === ur) && (process.env.NODE_ENV !== "production" && !e && N(`Invalid vnode type when creating vnode: ${e}.`), e = Ve), De(e)) {
1261
- const c = Re(e, t, !0);
1262
- return n && ft(c, n), pe > 0 && !s && P && (c.shapeFlag & 6 ? P[P.indexOf(e)] = c : P.push(c)), c.patchFlag |= -2, c;
1263
- }
1264
- if (Cn(e) && (e = e.__vccOpts), t) {
1265
- t = Sr(t);
1266
- let { class: c, style: u } = t;
1267
- c && !D(c) && (t.class = Te(c)), S(u) && (Le(u) && !w(u) && (u = A({}, u)), t.style = Ze(u));
1268
- }
1269
- const i = D(e) ? 1 : or(e) ? 128 : Er(e) ? 64 : S(e) ? 4 : y(e) ? 2 : 0;
1270
- return process.env.NODE_ENV !== "production" && i & 4 && Le(e) && (e = d(e), N("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.", `
1271
- Component that was made reactive: `, e)), F(e, t, n, r, o, i, s, !0);
1272
- }
1273
- function Sr(e) {
1274
- return e ? Le(e) || yn in e ? A({}, e) : e : null;
1275
- }
1276
- function Re(e, t, n = !1) {
1277
- const { props: r, ref: o, patchFlag: s, children: i } = e, c = t ? Or(r || {}, t) : r;
1278
- return {
1279
- __v_isVNode: !0,
1280
- __v_skip: !0,
1281
- type: e.type,
1282
- props: c,
1283
- key: c && On(c),
1284
- ref: t && t.ref ? n && o ? w(o) ? o.concat(be(t)) : [o, be(t)] : be(t) : o,
1285
- scopeId: e.scopeId,
1286
- slotScopeIds: e.slotScopeIds,
1287
- children: process.env.NODE_ENV !== "production" && s === -1 && w(i) ? i.map(xn) : i,
1288
- target: e.target,
1289
- targetAnchor: e.targetAnchor,
1290
- staticCount: e.staticCount,
1291
- shapeFlag: e.shapeFlag,
1292
- patchFlag: t && e.type !== ee ? s === -1 ? 16 : s | 16 : s,
1293
- dynamicProps: e.dynamicProps,
1294
- dynamicChildren: e.dynamicChildren,
1295
- appContext: e.appContext,
1296
- dirs: e.dirs,
1297
- transition: e.transition,
1298
- component: e.component,
1299
- suspense: e.suspense,
1300
- ssContent: e.ssContent && Re(e.ssContent),
1301
- ssFallback: e.ssFallback && Re(e.ssFallback),
1302
- el: e.el,
1303
- anchor: e.anchor
1304
- };
1305
- }
1306
- function xn(e) {
1307
- const t = Re(e);
1308
- return w(e.children) && (t.children = e.children.map(xn)), t;
1309
- }
1310
- function at(e = " ", t = 0) {
1311
- return V(br, null, e, t);
1312
- }
1313
- function yr(e = "", t = !1) {
1314
- return t ? (R(), je(Ve, null, e)) : V(Ve, null, e);
1315
- }
1316
- function ft(e, t) {
1317
- let n = 0;
1318
- const { shapeFlag: r } = e;
1319
- if (t == null)
1320
- t = null;
1321
- else if (w(t))
1322
- n = 16;
1323
- else if (typeof t == "object")
1324
- if (r & 65) {
1325
- const o = t.default;
1326
- o && (o._c && (o._d = !1), ft(e, o()), o._c && (o._d = !0));
1327
- return;
1328
- } else {
1329
- n = 32;
1330
- const o = t._;
1331
- !o && !(yn in t) ? t._ctx = $ : o === 3 && $ && ($.slots._ === 1 ? t._ = 1 : (t._ = 2, e.patchFlag |= 1024));
1332
- }
1333
- else
1334
- y(t) ? (t = { default: t, _ctx: $ }, n = 32) : (t = String(t), r & 64 ? (n = 16, t = [at(t)]) : n = 8);
1335
- e.children = t, e.shapeFlag |= n;
1336
- }
1337
- function Or(...e) {
1338
- const t = {};
1339
- for (let n = 0; n < e.length; n++) {
1340
- const r = e[n];
1341
- for (const o in r)
1342
- if (o === "class")
1343
- t.class !== r.class && (t.class = Te([t.class, r.class]));
1344
- else if (o === "style")
1345
- t.style = Ze([t.style, r.style]);
1346
- else if (Bn(o)) {
1347
- const s = t[o], i = r[o];
1348
- i && s !== i && !(w(s) && s.includes(i)) && (t[o] = s ? [].concat(s, i) : i);
1349
- } else
1350
- o !== "" && (t[o] = r[o]);
1351
- }
1352
- return t;
1353
- }
1354
- wr();
1355
- let Z = null;
1356
- const Tt = (e) => {
1357
- Z = e, e.scope.on();
1358
- }, Ir = () => {
1359
- Z && Z.scope.off(), Z = null;
1360
- };
1361
- function xr(e) {
1362
- return e.vnode.shapeFlag & 4;
1363
- }
1364
- let $r = !1;
1365
- function Cr(e) {
1366
- if (e.exposed)
1367
- return e.exposeProxy || (e.exposeProxy = new Proxy(Mo($o(e.exposed)), {
1368
- get(t, n) {
1369
- if (n in t)
1370
- return t[n];
1371
- if (n in $e)
1372
- return $e[n](e);
1373
- }
1374
- }));
1375
- }
1376
- const Vr = /(?:^|[-_])(\w)/g, Dr = (e) => e.replace(Vr, (t) => t.toUpperCase()).replace(/[-_]/g, "");
1377
- function pt(e, t = !0) {
1378
- return y(e) ? e.displayName || e.name : e.name || t && e.__name;
1379
- }
1380
- function $n(e, t, n = !1) {
1381
- let r = pt(t);
1382
- if (!r && t.__file) {
1383
- const o = t.__file.match(/([^/\\]+)\.\w+$/);
1384
- o && (r = o[1]);
1385
- }
1386
- if (!r && e && e.parent) {
1387
- const o = (s) => {
1388
- for (const i in s)
1389
- if (s[i] === t)
1390
- return i;
1391
- };
1392
- r = o(e.components || e.parent.type.components) || o(e.appContext.components);
1393
- }
1394
- return r ? Dr(r) : n ? "App" : "Anonymous";
1395
- }
1396
- function Cn(e) {
1397
- return y(e) && "__vccOpts" in e;
1398
- }
1399
- const Mt = (e, t) => Fo(e, t, $r);
1400
- function Pt(e, t, n) {
1401
- const r = arguments.length;
1402
- return r === 2 ? S(t) && !w(t) ? De(t) ? V(e, null, [t]) : V(e, t) : V(e, null, t) : (r > 3 ? n = Array.prototype.slice.call(arguments, 2) : r === 3 && De(n) && (n = [n]), V(e, t, n));
1403
- }
1404
- Symbol(process.env.NODE_ENV !== "production" ? "ssrContext" : "");
1405
- function Ge(e) {
1406
- return !!(e && e.__v_isShallow);
1407
- }
1408
- function Rr() {
1409
- if (process.env.NODE_ENV === "production" || typeof window > "u")
1410
- return;
1411
- const e = { style: "color:#3ba776" }, t = { style: "color:#0b1bc9" }, n = { style: "color:#b62e24" }, r = { style: "color:#9d288c" }, o = {
1412
- header(l) {
1413
- return S(l) ? l.__isVue ? ["div", e, "VueInstance"] : x(l) ? [
1414
- "div",
1415
- {},
1416
- ["span", e, p(l)],
1417
- "<",
1418
- c(l.value),
1419
- ">"
1420
- ] : Y(l) ? [
1421
- "div",
1422
- {},
1423
- ["span", e, Ge(l) ? "ShallowReactive" : "Reactive"],
1424
- "<",
1425
- c(l),
1426
- `>${L(l) ? " (readonly)" : ""}`
1427
- ] : L(l) ? [
1428
- "div",
1429
- {},
1430
- ["span", e, Ge(l) ? "ShallowReadonly" : "Readonly"],
1431
- "<",
1432
- c(l),
1433
- ">"
1434
- ] : null : null;
1435
- },
1436
- hasBody(l) {
1437
- return l && l.__isVue;
1438
- },
1439
- body(l) {
1440
- if (l && l.__isVue)
1441
- return [
1442
- "div",
1443
- {},
1444
- ...s(l.$)
1445
- ];
57
+ };
1446
58
  }
1447
- };
1448
- function s(l) {
1449
- const f = [];
1450
- l.type.props && l.props && f.push(i("props", d(l.props))), l.setupState !== C && f.push(i("setup", l.setupState)), l.data !== C && f.push(i("data", d(l.data)));
1451
- const E = u(l, "computed");
1452
- E && f.push(i("computed", E));
1453
- const g = u(l, "inject");
1454
- return g && f.push(i("injected", g)), f.push([
1455
- "div",
1456
- {},
1457
- [
1458
- "span",
1459
- {
1460
- style: r.style + ";opacity:0.66"
1461
- },
1462
- "$ (internal): "
1463
- ],
1464
- ["object", { object: l }]
1465
- ]), f;
1466
- }
1467
- function i(l, f) {
1468
- return f = A({}, f), Object.keys(f).length ? [
1469
- "div",
1470
- { style: "line-height:1.25em;margin-bottom:0.6em" },
1471
- [
1472
- "div",
1473
- {
1474
- style: "color:#476582"
1475
- },
1476
- l
1477
- ],
1478
- [
1479
- "div",
1480
- {
1481
- style: "padding-left:1.25em"
1482
- },
1483
- ...Object.keys(f).map((E) => [
1484
- "div",
1485
- {},
1486
- ["span", r, E + ": "],
1487
- c(f[E], !1)
1488
- ])
1489
- ]
1490
- ] : ["span", {}];
1491
- }
1492
- function c(l, f = !0) {
1493
- return typeof l == "number" ? ["span", t, l] : typeof l == "string" ? ["span", n, JSON.stringify(l)] : typeof l == "boolean" ? ["span", r, l] : S(l) ? ["object", { object: f ? d(l) : l }] : ["span", n, String(l)];
1494
- }
1495
- function u(l, f) {
1496
- const E = l.type;
1497
- if (y(E))
1498
- return;
1499
- const g = {};
1500
- for (const m in l.ctx)
1501
- a(E, m, f) && (g[m] = l.ctx[m]);
1502
- return g;
1503
- }
1504
- function a(l, f, E) {
1505
- const g = l[E];
1506
- if (w(g) && g.includes(f) || S(g) && f in g || l.extends && a(l.extends, f, E) || l.mixins && l.mixins.some((m) => a(m, f, E)))
1507
- return !0;
1508
- }
1509
- function p(l) {
1510
- return Ge(l) ? "ShallowRef" : l.effect ? "ComputedRef" : "Ref";
1511
- }
1512
- window.devtoolsFormatters ? window.devtoolsFormatters.push(o) : window.devtoolsFormatters = [o];
1513
- }
1514
- var Ft;
1515
- ((e) => {
1516
- function t(o) {
1517
- const s = [];
1518
- for (let i = 0; i < o; i++)
1519
- s.push({
1520
- id: "testId",
1521
- name: `device-${i}`,
1522
- online: i % 2 == 0,
1523
- channels: []
1524
- });
1525
- return s;
1526
- }
1527
- function n(o) {
1528
- const s = [];
1529
- for (let i = 0; i < o; i++)
1530
- s.push({
1531
- id: `group=${i}`,
1532
- name: `group-${i}`,
1533
- onlineCount: 0,
1534
- totalCount: 0,
1535
- devices: t(10),
1536
- items: n(o - i - 1)
1537
- });
1538
- return s;
1539
- }
1540
- function r(o) {
1541
- return {
1542
- name: "hah",
1543
- onlineCount: 0,
1544
- totalCount: 0,
1545
- items: n(3)
1546
- };
1547
- }
1548
- e.RandomDeviceGroup = r;
1549
- })(Ft || (Ft = {}));
1550
- function Tr() {
1551
- Rr();
1552
- }
1553
- process.env.NODE_ENV !== "production" && Tr();
1554
- const Mr = Ae({
59
+ o.AccessSession = s;
60
+ })(t.Utils || (t.Utils = {}));
61
+ })(H || (H = {}));
62
+ const it = F({
1555
63
  props: {
1556
64
  countInfo: Object
1557
65
  },
1558
- setup(e) {
1559
- function t(o, s) {
1560
- if (s) {
1561
- let i = 0;
1562
- return s.items.forEach((c) => {
1563
- i += t(o, c);
1564
- }), o(s) + i;
66
+ setup(t) {
67
+ function n(e, r) {
68
+ if (r) {
69
+ let c = 0;
70
+ return r.items.forEach((i) => {
71
+ c += n(e, i);
72
+ }), e(r) + c;
1565
73
  }
1566
74
  return 0;
1567
75
  }
1568
- const n = Mt(() => t((o) => o.onlineCount, e.countInfo));
76
+ const o = O(() => n((e) => e.onlineCount, t.countInfo));
1569
77
  return {
1570
- totalCount: Mt(() => t((o) => o.totalCount, e.countInfo)),
1571
- onlineCount: n
78
+ totalCount: O(() => n((e) => e.totalCount, t.countInfo)),
79
+ onlineCount: o
1572
80
  };
1573
81
  }
1574
82
  });
1575
- const dt = (e, t) => {
1576
- const n = e.__vccOpts || e;
1577
- for (const [r, o] of t)
1578
- n[r] = o;
1579
- return n;
1580
- }, Pr = { class: "root" }, Fr = { class: "count-show" };
1581
- function Ar(e, t, n, r, o, s) {
1582
- return R(), k("div", Pr, [
1583
- fr(e.$slots, "default", {}, void 0, !0),
1584
- F("span", Fr, Ne(e.onlineCount) + "/" + Ne(e.totalCount), 1)
83
+ const M = (t, n) => {
84
+ const o = t.__vccOpts || t;
85
+ for (const [s, e] of n)
86
+ o[s] = e;
87
+ return o;
88
+ }, ct = { class: "root" }, lt = { class: "count-show" };
89
+ function at(t, n, o, s, e, r) {
90
+ return w(), b("div", ct, [
91
+ y(t.$slots, "default", {}, void 0, !0),
92
+ f("span", lt, P(t.onlineCount) + "/" + P(t.totalCount), 1)
1585
93
  ]);
1586
94
  }
1587
- const Vn = /* @__PURE__ */ dt(Mr, [["render", Ar], ["__scopeId", "data-v-645fa4e7"]]), Dn = Object.freeze(
95
+ const K = /* @__PURE__ */ M(it, [["render", at], ["__scopeId", "data-v-702e833c"]]), q = Object.freeze(
1588
96
  {
1589
97
  left: 0,
1590
98
  top: 0,
1591
99
  width: 16,
1592
100
  height: 16
1593
101
  }
1594
- ), Rn = Object.freeze({
102
+ ), J = Object.freeze({
1595
103
  rotate: 0,
1596
104
  vFlip: !1,
1597
105
  hFlip: !1
1598
- }), ht = Object.freeze({
1599
- ...Dn,
1600
- ...Rn
106
+ }), A = Object.freeze({
107
+ ...q,
108
+ ...J
1601
109
  });
1602
110
  Object.freeze({
1603
- ...ht,
111
+ ...A,
1604
112
  body: "",
1605
113
  hidden: !1
1606
114
  });
1607
115
  ({
1608
- ...Dn
116
+ ...q
1609
117
  });
1610
- const Tn = Object.freeze({
118
+ const Q = Object.freeze({
1611
119
  width: null,
1612
120
  height: null
1613
- }), Mn = Object.freeze({
1614
- ...Tn,
1615
- ...Rn
121
+ }), X = Object.freeze({
122
+ ...Q,
123
+ ...J
1616
124
  });
1617
- function jr(e, t) {
1618
- const n = {
1619
- ...e
125
+ function ut(t, n) {
126
+ const o = {
127
+ ...t
1620
128
  };
1621
- for (const r in t) {
1622
- const o = t[r], s = typeof o;
1623
- r in Tn ? (o === null || o && (s === "string" || s === "number")) && (n[r] = o) : s === typeof n[r] && (n[r] = r === "rotate" ? o % 4 : o);
129
+ for (const s in n) {
130
+ const e = n[s], r = typeof e;
131
+ s in Q ? (e === null || e && (r === "string" || r === "number")) && (o[s] = e) : r === typeof o[s] && (o[s] = s === "rotate" ? e % 4 : e);
1624
132
  }
1625
- return n;
133
+ return o;
1626
134
  }
1627
- const zr = /[\s,]+/;
1628
- function Hr(e, t) {
1629
- t.split(zr).forEach((n) => {
1630
- switch (n.trim()) {
135
+ const ht = /[\s,]+/;
136
+ function dt(t, n) {
137
+ n.split(ht).forEach((o) => {
138
+ switch (o.trim()) {
1631
139
  case "horizontal":
1632
- e.hFlip = !0;
140
+ t.hFlip = !0;
1633
141
  break;
1634
142
  case "vertical":
1635
- e.vFlip = !0;
143
+ t.vFlip = !0;
1636
144
  break;
1637
145
  }
1638
146
  });
1639
147
  }
1640
- function Gr(e, t = 0) {
1641
- const n = e.replace(/^-?[0-9.]*/, "");
1642
- function r(o) {
1643
- for (; o < 0; )
1644
- o += 4;
1645
- return o % 4;
1646
- }
1647
- if (n === "") {
1648
- const o = parseInt(e);
1649
- return isNaN(o) ? 0 : r(o);
1650
- } else if (n !== e) {
1651
- let o = 0;
1652
- switch (n) {
148
+ function ft(t, n = 0) {
149
+ const o = t.replace(/^-?[0-9.]*/, "");
150
+ function s(e) {
151
+ for (; e < 0; )
152
+ e += 4;
153
+ return e % 4;
154
+ }
155
+ if (o === "") {
156
+ const e = parseInt(t);
157
+ return isNaN(e) ? 0 : s(e);
158
+ } else if (o !== t) {
159
+ let e = 0;
160
+ switch (o) {
1653
161
  case "%":
1654
- o = 25;
162
+ e = 25;
1655
163
  break;
1656
164
  case "deg":
1657
- o = 90;
165
+ e = 90;
1658
166
  }
1659
- if (o) {
1660
- let s = parseFloat(e.slice(0, e.length - n.length));
1661
- return isNaN(s) ? 0 : (s = s / o, s % 1 === 0 ? r(s) : 0);
167
+ if (e) {
168
+ let r = parseFloat(t.slice(0, t.length - o.length));
169
+ return isNaN(r) ? 0 : (r = r / e, r % 1 === 0 ? s(r) : 0);
1662
170
  }
1663
171
  }
1664
- return t;
172
+ return n;
1665
173
  }
1666
- const kr = /(-?[0-9.]*[0-9]+[0-9.]*)/g, Kr = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
1667
- function At(e, t, n) {
1668
- if (t === 1)
1669
- return e;
1670
- if (n = n || 100, typeof e == "number")
1671
- return Math.ceil(e * t * n) / n;
1672
- if (typeof e != "string")
1673
- return e;
1674
- const r = e.split(kr);
1675
- if (r === null || !r.length)
1676
- return e;
1677
- const o = [];
1678
- let s = r.shift(), i = Kr.test(s);
174
+ const pt = /(-?[0-9.]*[0-9]+[0-9.]*)/g, gt = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
175
+ function L(t, n, o) {
176
+ if (n === 1)
177
+ return t;
178
+ if (o = o || 100, typeof t == "number")
179
+ return Math.ceil(t * n * o) / o;
180
+ if (typeof t != "string")
181
+ return t;
182
+ const s = t.split(pt);
183
+ if (s === null || !s.length)
184
+ return t;
185
+ const e = [];
186
+ let r = s.shift(), c = gt.test(r);
1679
187
  for (; ; ) {
1680
- if (i) {
1681
- const c = parseFloat(s);
1682
- isNaN(c) ? o.push(s) : o.push(Math.ceil(c * t * n) / n);
188
+ if (c) {
189
+ const i = parseFloat(r);
190
+ isNaN(i) ? e.push(r) : e.push(Math.ceil(i * n * o) / o);
1683
191
  } else
1684
- o.push(s);
1685
- if (s = r.shift(), s === void 0)
1686
- return o.join("");
1687
- i = !i;
192
+ e.push(r);
193
+ if (r = s.shift(), r === void 0)
194
+ return e.join("");
195
+ c = !c;
1688
196
  }
1689
197
  }
1690
- function Wr(e, t) {
1691
- const n = {
1692
- ...ht,
1693
- ...e
1694
- }, r = {
1695
- ...Mn,
198
+ function vt(t, n) {
199
+ const o = {
200
+ ...A,
1696
201
  ...t
1697
- }, o = {
1698
- left: n.left,
1699
- top: n.top,
1700
- width: n.width,
1701
- height: n.height
202
+ }, s = {
203
+ ...X,
204
+ ...n
205
+ }, e = {
206
+ left: o.left,
207
+ top: o.top,
208
+ width: o.width,
209
+ height: o.height
1702
210
  };
1703
- let s = n.body;
1704
- [n, r].forEach((E) => {
1705
- const g = [], m = E.hFlip, _ = E.vFlip;
1706
- let b = E.rotate;
1707
- m ? _ ? b += 2 : (g.push(
1708
- "translate(" + (o.width + o.left).toString() + " " + (0 - o.top).toString() + ")"
1709
- ), g.push("scale(-1 1)"), o.top = o.left = 0) : _ && (g.push(
1710
- "translate(" + (0 - o.left).toString() + " " + (o.height + o.top).toString() + ")"
1711
- ), g.push("scale(1 -1)"), o.top = o.left = 0);
1712
- let h;
1713
- switch (b < 0 && (b -= Math.floor(b / 4) * 4), b = b % 4, b) {
211
+ let r = o.body;
212
+ [o, s].forEach((m) => {
213
+ const g = [], d = m.hFlip, a = m.vFlip;
214
+ let v = m.rotate;
215
+ d ? a ? v += 2 : (g.push(
216
+ "translate(" + (e.width + e.left).toString() + " " + (0 - e.top).toString() + ")"
217
+ ), g.push("scale(-1 1)"), e.top = e.left = 0) : a && (g.push(
218
+ "translate(" + (0 - e.left).toString() + " " + (e.height + e.top).toString() + ")"
219
+ ), g.push("scale(1 -1)"), e.top = e.left = 0);
220
+ let _;
221
+ switch (v < 0 && (v -= Math.floor(v / 4) * 4), v = v % 4, v) {
1714
222
  case 1:
1715
- h = o.height / 2 + o.top, g.unshift(
1716
- "rotate(90 " + h.toString() + " " + h.toString() + ")"
223
+ _ = e.height / 2 + e.top, g.unshift(
224
+ "rotate(90 " + _.toString() + " " + _.toString() + ")"
1717
225
  );
1718
226
  break;
1719
227
  case 2:
1720
228
  g.unshift(
1721
- "rotate(180 " + (o.width / 2 + o.left).toString() + " " + (o.height / 2 + o.top).toString() + ")"
229
+ "rotate(180 " + (e.width / 2 + e.left).toString() + " " + (e.height / 2 + e.top).toString() + ")"
1722
230
  );
1723
231
  break;
1724
232
  case 3:
1725
- h = o.width / 2 + o.left, g.unshift(
1726
- "rotate(-90 " + h.toString() + " " + h.toString() + ")"
233
+ _ = e.width / 2 + e.left, g.unshift(
234
+ "rotate(-90 " + _.toString() + " " + _.toString() + ")"
1727
235
  );
1728
236
  break;
1729
237
  }
1730
- b % 2 === 1 && (o.left !== o.top && (h = o.left, o.left = o.top, o.top = h), o.width !== o.height && (h = o.width, o.width = o.height, o.height = h)), g.length && (s = '<g transform="' + g.join(" ") + '">' + s + "</g>");
238
+ v % 2 === 1 && (e.left !== e.top && (_ = e.left, e.left = e.top, e.top = _), e.width !== e.height && (_ = e.width, e.width = e.height, e.height = _)), g.length && (r = '<g transform="' + g.join(" ") + '">' + r + "</g>");
1731
239
  });
1732
- const i = r.width, c = r.height, u = o.width, a = o.height;
1733
- let p, l;
1734
- return i === null ? (l = c === null ? "1em" : c === "auto" ? a : c, p = At(l, u / a)) : (p = i === "auto" ? u : i, l = c === null ? At(p, a / u) : c === "auto" ? a : c), {
240
+ const c = s.width, i = s.height, l = e.width, h = e.height;
241
+ let p, u;
242
+ return c === null ? (u = i === null ? "1em" : i === "auto" ? h : i, p = L(u, l / h)) : (p = c === "auto" ? l : c, u = i === null ? L(p, h / l) : i === "auto" ? h : i), {
1735
243
  attributes: {
1736
244
  width: p.toString(),
1737
- height: l.toString(),
1738
- viewBox: o.left.toString() + " " + o.top.toString() + " " + u.toString() + " " + a.toString()
245
+ height: u.toString(),
246
+ viewBox: e.left.toString() + " " + e.top.toString() + " " + l.toString() + " " + h.toString()
1739
247
  },
1740
- body: s
248
+ body: r
1741
249
  };
1742
250
  }
1743
- const Ur = /\sid="(\S+)"/g, Lr = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
1744
- let Br = 0;
1745
- function Jr(e, t = Lr) {
1746
- const n = [];
1747
- let r;
1748
- for (; r = Ur.exec(e); )
1749
- n.push(r[1]);
1750
- return n.length && n.forEach((o) => {
1751
- const s = typeof t == "function" ? t(o) : t + (Br++).toString(), i = o.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1752
- e = e.replace(
1753
- new RegExp('([#;"])(' + i + ')([")]|\\.[a-z])', "g"),
1754
- "$1" + s + "$3"
251
+ const mt = /\sid="(\S+)"/g, _t = "IconifyId" + Date.now().toString(16) + (Math.random() * 16777216 | 0).toString(16);
252
+ let wt = 0;
253
+ function St(t, n = _t) {
254
+ const o = [];
255
+ let s;
256
+ for (; s = mt.exec(t); )
257
+ o.push(s[1]);
258
+ return o.length && o.forEach((e) => {
259
+ const r = typeof n == "function" ? n(e) : n + (wt++).toString(), c = e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
260
+ t = t.replace(
261
+ new RegExp('([#;"])(' + c + ')([")]|\\.[a-z])', "g"),
262
+ "$1" + r + "$3"
1755
263
  );
1756
- }), e;
264
+ }), t;
1757
265
  }
1758
- function qr(e, t) {
1759
- let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
1760
- for (const r in t)
1761
- n += " " + r + '="' + t[r] + '"';
1762
- return '<svg xmlns="http://www.w3.org/2000/svg"' + n + ">" + e + "</svg>";
266
+ function bt(t, n) {
267
+ let o = t.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
268
+ for (const s in n)
269
+ o += " " + s + '="' + n[s] + '"';
270
+ return '<svg xmlns="http://www.w3.org/2000/svg"' + o + ">" + t + "</svg>";
1763
271
  }
1764
- function Yr(e) {
1765
- return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
272
+ function yt(t) {
273
+ return t.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
1766
274
  }
1767
- function Qr(e) {
1768
- return 'url("data:image/svg+xml,' + Yr(e) + '")';
275
+ function Ct(t) {
276
+ return 'url("data:image/svg+xml,' + yt(t) + '")';
1769
277
  }
1770
- const jt = {
1771
- ...Mn,
278
+ const R = {
279
+ ...X,
1772
280
  inline: !1
1773
- }, Xr = {
281
+ }, $t = {
1774
282
  xmlns: "http://www.w3.org/2000/svg",
1775
283
  "xmlns:xlink": "http://www.w3.org/1999/xlink",
1776
284
  "aria-hidden": !0,
1777
285
  role: "img"
1778
- }, Zr = {
286
+ }, kt = {
1779
287
  display: "inline-block"
1780
- }, Xe = {
288
+ }, x = {
1781
289
  backgroundColor: "currentColor"
1782
- }, Pn = {
290
+ }, Y = {
1783
291
  backgroundColor: "transparent"
1784
- }, zt = {
292
+ }, B = {
1785
293
  Image: "var(--svg)",
1786
294
  Repeat: "no-repeat",
1787
295
  Size: "100% 100%"
1788
- }, Ht = {
1789
- webkitMask: Xe,
1790
- mask: Xe,
1791
- background: Pn
296
+ }, N = {
297
+ webkitMask: x,
298
+ mask: x,
299
+ background: Y
1792
300
  };
1793
- for (const e in Ht) {
1794
- const t = Ht[e];
1795
- for (const n in zt)
1796
- t[e + n] = zt[n];
1797
- }
1798
- const ve = {};
1799
- ["horizontal", "vertical"].forEach((e) => {
1800
- const t = e.slice(0, 1) + "Flip";
1801
- ve[e + "-flip"] = t, ve[e.slice(0, 1) + "-flip"] = t, ve[e + "Flip"] = t;
301
+ for (const t in N) {
302
+ const n = N[t];
303
+ for (const o in B)
304
+ n[t + o] = B[o];
305
+ }
306
+ const I = {};
307
+ ["horizontal", "vertical"].forEach((t) => {
308
+ const n = t.slice(0, 1) + "Flip";
309
+ I[t + "-flip"] = n, I[t.slice(0, 1) + "-flip"] = n, I[t + "Flip"] = n;
1802
310
  });
1803
- function Gt(e) {
1804
- return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
1805
- }
1806
- const es = (e, t) => {
1807
- const n = jr(jt, t), r = { ...Xr }, o = t.mode || "svg", s = {}, i = t.style, c = typeof i == "object" && !(i instanceof Array) ? i : {};
1808
- for (let m in t) {
1809
- const _ = t[m];
1810
- if (_ !== void 0)
1811
- switch (m) {
311
+ function V(t) {
312
+ return t + (t.match(/^[-0-9.]+$/) ? "px" : "");
313
+ }
314
+ const It = (t, n) => {
315
+ const o = ut(R, n), s = { ...$t }, e = n.mode || "svg", r = {}, c = n.style, i = typeof c == "object" && !(c instanceof Array) ? c : {};
316
+ for (let d in n) {
317
+ const a = n[d];
318
+ if (a !== void 0)
319
+ switch (d) {
1812
320
  case "icon":
1813
321
  case "style":
1814
322
  case "onLoad":
@@ -1817,207 +325,271 @@ const es = (e, t) => {
1817
325
  case "inline":
1818
326
  case "hFlip":
1819
327
  case "vFlip":
1820
- n[m] = _ === !0 || _ === "true" || _ === 1;
328
+ o[d] = a === !0 || a === "true" || a === 1;
1821
329
  break;
1822
330
  case "flip":
1823
- typeof _ == "string" && Hr(n, _);
331
+ typeof a == "string" && dt(o, a);
1824
332
  break;
1825
333
  case "color":
1826
- s.color = _;
334
+ r.color = a;
1827
335
  break;
1828
336
  case "rotate":
1829
- typeof _ == "string" ? n[m] = Gr(_) : typeof _ == "number" && (n[m] = _);
337
+ typeof a == "string" ? o[d] = ft(a) : typeof a == "number" && (o[d] = a);
1830
338
  break;
1831
339
  case "ariaHidden":
1832
340
  case "aria-hidden":
1833
- _ !== !0 && _ !== "true" && delete r["aria-hidden"];
341
+ a !== !0 && a !== "true" && delete s["aria-hidden"];
1834
342
  break;
1835
343
  default: {
1836
- const b = ve[m];
1837
- b ? (_ === !0 || _ === "true" || _ === 1) && (n[b] = !0) : jt[m] === void 0 && (r[m] = _);
344
+ const v = I[d];
345
+ v ? (a === !0 || a === "true" || a === 1) && (o[v] = !0) : R[d] === void 0 && (s[d] = a);
1838
346
  }
1839
347
  }
1840
348
  }
1841
- const u = Wr(e, n), a = u.attributes;
1842
- if (n.inline && (s.verticalAlign = "-0.125em"), o === "svg") {
1843
- r.style = {
1844
- ...s,
1845
- ...c
1846
- }, Object.assign(r, a);
1847
- let m = 0, _ = t.id;
1848
- return typeof _ == "string" && (_ = _.replace(/-/g, "_")), r.innerHTML = Jr(u.body, _ ? () => _ + "ID" + m++ : "iconifyVue"), Pt("svg", r);
1849
- }
1850
- const { body: p, width: l, height: f } = e, E = o === "mask" || (o === "bg" ? !1 : p.indexOf("currentColor") !== -1), g = qr(p, {
1851
- ...a,
1852
- width: l + "",
1853
- height: f + ""
349
+ const l = vt(t, o), h = l.attributes;
350
+ if (o.inline && (r.verticalAlign = "-0.125em"), e === "svg") {
351
+ s.style = {
352
+ ...r,
353
+ ...i
354
+ }, Object.assign(s, h);
355
+ let d = 0, a = n.id;
356
+ return typeof a == "string" && (a = a.replace(/-/g, "_")), s.innerHTML = St(l.body, a ? () => a + "ID" + d++ : "iconifyVue"), E("svg", s);
357
+ }
358
+ const { body: p, width: u, height: S } = t, m = e === "mask" || (e === "bg" ? !1 : p.indexOf("currentColor") !== -1), g = bt(p, {
359
+ ...h,
360
+ width: u + "",
361
+ height: S + ""
1854
362
  });
1855
- return r.style = {
1856
- ...s,
1857
- "--svg": Qr(g),
1858
- width: Gt(a.width),
1859
- height: Gt(a.height),
1860
- ...Zr,
1861
- ...E ? Xe : Pn,
1862
- ...c
1863
- }, Pt("span", r);
1864
- }, Fn = /* @__PURE__ */ Object.create(null);
1865
- function ze(e, t) {
1866
- Fn[e] = t;
1867
- }
1868
- const ts = Ae({
363
+ return s.style = {
364
+ ...r,
365
+ "--svg": Ct(g),
366
+ width: V(h.width),
367
+ height: V(h.height),
368
+ ...kt,
369
+ ...m ? x : Y,
370
+ ...i
371
+ }, E("span", s);
372
+ }, Z = /* @__PURE__ */ Object.create(null);
373
+ function z(t, n) {
374
+ Z[t] = n;
375
+ }
376
+ const Pt = F({
1869
377
  inheritAttrs: !1,
1870
378
  render() {
1871
- const e = this.$attrs, t = e.icon, n = typeof t == "string" ? Fn[t] : typeof t == "object" ? t : null;
1872
- return n === null || typeof n != "object" || typeof n.body != "string" ? this.$slots.default ? this.$slots.default() : null : es({
1873
- ...ht,
1874
- ...n
1875
- }, e);
379
+ const t = this.$attrs, n = t.icon, o = typeof n == "string" ? Z[n] : typeof n == "object" ? n : null;
380
+ return o === null || typeof o != "object" || typeof o.body != "string" ? this.$slots.default ? this.$slots.default() : null : It({
381
+ ...A,
382
+ ...o
383
+ }, t);
1876
384
  }
1877
- }), ns = Ae({
385
+ }), Ft = F({
1878
386
  components: {
1879
- CountShow: Vn,
1880
- Icon: ts
387
+ CountShow: K,
388
+ Icon: Pt
1881
389
  },
1882
390
  name: "group-show",
1883
391
  props: {
1884
- deviceGroup: Object
392
+ deviceGroup: Object,
393
+ controlParams: Object
1885
394
  },
1886
- setup() {
395
+ setup(t) {
396
+ function n(r) {
397
+ return r && r.filter((c) => {
398
+ var i;
399
+ return !((i = t.controlParams) != null && i.onlyShowOnline) || c.online;
400
+ }) || [];
401
+ }
402
+ const o = O(() => {
403
+ var r, c;
404
+ const i = t.controlParams.searchStr;
405
+ return i.length == 0 || t.deviceGroup && ((r = t.deviceGroup) == null ? void 0 : r.name.indexOf(i)) > 0 ? !0 : (c = t.deviceGroup) == null ? void 0 : c.devices.find((l) => l.name.indexOf(t.controlParams.searchStr) > 0);
406
+ });
407
+ function s(r) {
408
+ return t.controlParams.searchStr.length == 0 ? !0 : r.name.indexOf(t.controlParams.searchStr) > 0;
409
+ }
410
+ const e = G(!1);
1887
411
  return {
1888
- bShow: Co(!1)
412
+ showGroup: o,
413
+ showDevice: s,
414
+ FilterDevice: n,
415
+ bShow: e
1889
416
  };
1890
417
  }
1891
418
  });
1892
- const os = { class: "group" }, rs = {
419
+ const Ot = {
420
+ key: 0,
421
+ class: "group"
422
+ }, Gt = ["title"], jt = { class: "group-slot" }, Dt = {
1893
423
  key: 0,
1894
424
  style: { "margin-left": "26px" }
1895
- }, ss = ["title"];
1896
- function is(e, t, n, r, o, s) {
1897
- var i, c;
1898
- const u = ce("Icon"), a = ce("CountShow"), p = ce("group-show");
1899
- return R(), k("div", os, [
1900
- V(a, { countInfo: e.deviceGroup }, {
1901
- default: vn(() => {
1902
- var l;
425
+ }, xt = ["title"], Mt = { class: "device-slot" };
426
+ function At(t, n, o, s, e, r) {
427
+ var c, i;
428
+ const l = k("Icon"), h = k("CountShow"), p = k("group-show");
429
+ return t.showGroup ? (w(), b("div", Ot, [
430
+ $(h, { countInfo: t.deviceGroup }, {
431
+ default: C(() => {
432
+ var u, S;
1903
433
  return [
1904
- V(u, {
434
+ $(l, {
1905
435
  icon: "right",
1906
- rotate: e.bShow && "90deg",
436
+ rotate: t.bShow && "90deg",
1907
437
  width: "20",
1908
- onClick: t[0] || (t[0] = (f) => e.bShow = !e.bShow),
438
+ onClick: n[0] || (n[0] = (m) => t.bShow = !t.bShow),
1909
439
  class: "handle-ls-svg"
1910
440
  }, null, 8, ["rotate"]),
1911
- V(u, {
441
+ $(l, {
1912
442
  icon: "group",
1913
443
  width: "24",
1914
444
  class: "group-avatar"
1915
445
  }),
1916
- at(" " + Ne((l = e.deviceGroup) == null ? void 0 : l.name), 1)
446
+ f("span", {
447
+ class: "group-name",
448
+ title: (u = t.deviceGroup) == null ? void 0 : u.name
449
+ }, P((S = t.deviceGroup) == null ? void 0 : S.name), 9, Gt),
450
+ f("div", jt, [
451
+ y(t.$slots, "group", { group: t.deviceGroup }, void 0, !0)
452
+ ])
1917
453
  ];
1918
454
  }),
1919
- _: 1
455
+ _: 3
1920
456
  }, 8, ["countInfo"]),
1921
- e.bShow ? (R(), k("div", rs, [
1922
- (R(!0), k(ee, null, Ye((i = e.deviceGroup) == null ? void 0 : i.items, (l, f) => (R(), je(p, {
1923
- key: f,
1924
- deviceGroup: l
1925
- }, null, 8, ["deviceGroup"]))), 128)),
1926
- (R(!0), k(ee, null, Ye((c = e.deviceGroup) == null ? void 0 : c.devices, (l, f) => (R(), k("div", {
1927
- key: f,
1928
- class: Te(["device", l.online && " online-device"])
457
+ t.bShow ? (w(), b("div", Dt, [
458
+ (w(!0), b(j, null, D((c = t.deviceGroup) == null ? void 0 : c.items, (u, S) => (w(), W(p, {
459
+ key: S,
460
+ deviceGroup: u,
461
+ controlParams: t.controlParams
462
+ }, {
463
+ group: C(({ group: m }) => [
464
+ y(t.$slots, "group", { group: m }, void 0, !0)
465
+ ]),
466
+ device: C(({ device: m }) => [
467
+ y(t.$slots, "device", { device: m }, void 0, !0)
468
+ ]),
469
+ _: 2
470
+ }, 1032, ["deviceGroup", "controlParams"]))), 128)),
471
+ (w(!0), b(j, null, D(t.FilterDevice((i = t.deviceGroup) == null ? void 0 : i.devices), (u, S) => et((w(), b("div", {
472
+ key: S,
473
+ class: ot(["device", u.online && "online-device"])
1929
474
  }, [
1930
- V(u, {
475
+ $(l, {
1931
476
  icon: "user",
1932
477
  width: "16",
1933
478
  class: "device-avatar"
1934
479
  }),
1935
- F("span", {
1936
- title: l.id,
480
+ f("span", {
481
+ title: u.id,
1937
482
  class: "device-name"
1938
- }, Ne(l.name), 9, ss)
1939
- ], 2))), 128))
1940
- ])) : yr("", !0)
1941
- ]);
483
+ }, P(u.name), 9, xt),
484
+ f("div", Mt, [
485
+ y(t.$slots, "device", { device: u }, void 0, !0)
486
+ ])
487
+ ], 2)), [
488
+ [nt, t.showDevice(u)]
489
+ ])), 128))
490
+ ])) : T("", !0)
491
+ ])) : T("", !0);
1942
492
  }
1943
- const cs = /* @__PURE__ */ dt(ns, [["render", is], ["__scopeId", "data-v-babbb531"]]), ls = {
493
+ const zt = /* @__PURE__ */ M(Ft, [["render", At], ["__scopeId", "data-v-82150d7a"]]), Et = {
1944
494
  width: 1024,
1945
495
  height: 1024,
1946
496
  body: '<path fill="currentColor" d="M384 192v640l384-320.064z"/>'
1947
- }, An = {
497
+ }, Tt = {
1948
498
  width: 1024,
1949
499
  height: 1024,
1950
500
  body: '<path fill="currentColor" d="M878.08 448H241.92l-96 384h636.16l96-384zM832 384v-64H485.76L357.504 192H128v448l57.92-231.744A32 32 0 0 1 216.96 384H832zm-24.96 512H96a32 32 0 0 1-32-32V160a32 32 0 0 1 32-32h287.872l128.384 128H864a32 32 0 0 1 32 32v96h23.04a32 32 0 0 1 31.04 39.744l-112 448A32 32 0 0 1 807.04 896z"/>'
1951
- }, us = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1952
- __proto__: null,
1953
- default: An
1954
- }, Symbol.toStringTag, { value: "Module" })), as = {
501
+ }, Ht = {
1955
502
  width: 1024,
1956
503
  height: 1024,
1957
504
  body: '<path fill="currentColor" d="M628.736 528.896A416 416 0 0 1 928 928H96a415.872 415.872 0 0 1 299.264-399.104L512 704l116.736-175.104zM720 304a208 208 0 1 1-416 0a208 208 0 0 1 416 0z"/>'
1958
505
  };
1959
- ze("right", ls);
1960
- ze("group", An);
1961
- ze("user", as);
1962
- Promise.resolve().then(() => us).then(({ default: e }) => {
1963
- ze("group", e);
1964
- });
1965
- const fs = Ae({
506
+ z("right", Et);
507
+ z("group", Tt);
508
+ z("user", Ht);
509
+ const Lt = F({
1966
510
  components: {
1967
- CountShow: Vn,
1968
- GroupShow: cs
511
+ CountShow: K,
512
+ GroupShow: zt
1969
513
  },
1970
514
  props: {
1971
515
  deviceGroup: Object
1972
516
  },
1973
- mounted() {
517
+ methods: {
518
+ onCheckBoxChange() {
519
+ this.controlParams.onlyShowOnline = !this.controlParams.onlyShowOnline;
520
+ },
521
+ onSearchChange() {
522
+ var t;
523
+ this.inputSearchRef && (this.controlParams.searchStr = (t = this.inputSearchRef) == null ? void 0 : t.value, console.log(this.controlParams.searchStr));
524
+ }
1974
525
  },
1975
526
  setup() {
1976
- return {};
527
+ const t = G({
528
+ onlyShowOnline: !1,
529
+ searchStr: ""
530
+ });
531
+ return {
532
+ inputSearchRef: G(),
533
+ controlParams: t
534
+ };
1977
535
  }
1978
536
  });
1979
- const _t = (e) => (tr("data-v-32a0c3cc"), e = e(), nr(), e), ps = { class: "device-group-list" }, ds = { class: "search-panel" }, hs = /* @__PURE__ */ _t(() => /* @__PURE__ */ F("div", { style: { height: "32px", "line-height": "32px" } }, [
1980
- /* @__PURE__ */ F("img", { src: "" }),
1981
- /* @__PURE__ */ at(),
1982
- /* @__PURE__ */ F("input", { type: "text" })
1983
- ], -1)), _s = /* @__PURE__ */ _t(() => /* @__PURE__ */ F("input", {
1984
- type: "checkbox",
1985
- id: "onlineShow",
1986
- value: "onlineShow"
1987
- }, null, -1)), gs = /* @__PURE__ */ _t(() => /* @__PURE__ */ F("label", { for: "onlineShow" }, "\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907", -1)), ms = { class: "device-panel" };
1988
- function ws(e, t, n, r, o, s) {
1989
- var i;
1990
- const c = ce("CountShow"), u = ce("group-show");
1991
- return R(), k("div", ps, [
1992
- F("div", ds, [
1993
- hs,
1994
- V(c, { countInfo: e.deviceGroup }, {
1995
- default: vn(() => [
1996
- _s,
1997
- gs
537
+ const tt = (t) => (st("data-v-3b15399c"), t = t(), rt(), t), Rt = { class: "device-group-list" }, Bt = { class: "search-panel" }, Nt = { style: { height: "32px", "line-height": "32px" } }, Vt = /* @__PURE__ */ tt(() => /* @__PURE__ */ f("img", { src: "" }, null, -1)), Ut = /* @__PURE__ */ tt(() => /* @__PURE__ */ f("label", { for: "onlineShow" }, "\u53EA\u663E\u793A\u5728\u7EBF\u8BBE\u5907", -1)), Wt = { class: "device-panel" };
538
+ function Kt(t, n, o, s, e, r) {
539
+ var c;
540
+ const i = k("CountShow"), l = k("group-show");
541
+ return w(), b("div", Rt, [
542
+ f("div", Bt, [
543
+ f("div", Nt, [
544
+ Vt,
545
+ f("input", {
546
+ type: "text",
547
+ onChange: n[0] || (n[0] = (...h) => t.onSearchChange && t.onSearchChange(...h)),
548
+ ref: "inputSearchRef"
549
+ }, null, 544)
550
+ ]),
551
+ $(i, { countInfo: t.deviceGroup }, {
552
+ default: C(() => [
553
+ f("input", {
554
+ type: "checkbox",
555
+ id: "onlineShow",
556
+ value: "onlineShow",
557
+ onChange: n[1] || (n[1] = (...h) => t.onCheckBoxChange && t.onCheckBoxChange(...h))
558
+ }, null, 32),
559
+ Ut
1998
560
  ]),
1999
561
  _: 1
2000
562
  }, 8, ["countInfo"])
2001
563
  ]),
2002
- F("div", ms, [
2003
- (R(!0), k(ee, null, Ye((i = e.deviceGroup) == null ? void 0 : i.items, (a, p) => (R(), je(u, {
564
+ f("div", Wt, [
565
+ (w(!0), b(j, null, D((c = t.deviceGroup) == null ? void 0 : c.items, (h, p) => (w(), W(l, {
566
+ controlParams: t.controlParams,
2004
567
  key: p,
2005
- deviceGroup: a
2006
- }, null, 8, ["deviceGroup"]))), 128))
568
+ deviceGroup: h
569
+ }, {
570
+ group: C(({ group: u }) => [
571
+ y(t.$slots, "group", { group: u }, void 0, !0)
572
+ ]),
573
+ device: C(({ device: u }) => [
574
+ y(t.$slots, "device", { device: u }, void 0, !0)
575
+ ]),
576
+ _: 2
577
+ }, 1032, ["controlParams", "deviceGroup"]))), 128))
2007
578
  ])
2008
579
  ]);
2009
580
  }
2010
- const Es = /* @__PURE__ */ dt(fs, [["render", ws], ["__scopeId", "data-v-32a0c3cc"]]), kt = {
2011
- RecursionDeviceGroup: Es
2012
- }, bs = {
2013
- install(e) {
2014
- for (const t in kt) {
2015
- const n = kt[t];
2016
- e.component(t, n);
581
+ const qt = /* @__PURE__ */ M(Lt, [["render", Kt], ["__scopeId", "data-v-3b15399c"]]), U = {
582
+ RecursionDeviceGroup: qt
583
+ }, Qt = {
584
+ install(t) {
585
+ for (const n in U) {
586
+ const o = U[n];
587
+ t.component(n, o);
2017
588
  }
2018
589
  }
2019
590
  };
2020
591
  export {
2021
- Ft as Test,
2022
- bs as default
592
+ H as RecursionDeviceGroup,
593
+ Qt as default
2023
594
  };
595
+ //# sourceMappingURL=smarteye-e-components.mjs.map