vuesp-components 3.0.0 → 3.0.1

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,12 +1,12 @@
1
- import { defineComponent as L, resolveComponent as Nt, openBlock as f, createElementBlock as g, Fragment as D, createCommentVNode as T, createElementVNode as l, normalizeClass as F, createVNode as v, withCtx as x, createBlock as M, renderSlot as B, computed as C, withModifiers as Q, toDisplayString as w, unref as H, TransitionGroup as Rt, renderList as K, mergeProps as X, ref as O, watch as _e, resolveDynamicComponent as Ee, Transition as ht, normalizeStyle as Ve, createTextVNode as E, normalizeProps as ae, guardReactiveProps as se, onMounted as he, onUnmounted as Je, reactive as Pt, withDirectives as ot, vShow as ua, vModelText as yt, nextTick as bt, toValue as ma, useTemplateRef as Ut, createSlots as fa, isRef as ga, Teleport as va } from "vue";
2
- import { a as pa, V as Kt, i as j, j as I, g as Ht, f as xt, k as ha, b as ya, h as ba, d as ge, u as xa, _ as Se, e as le } from "../VDialog.vue_vue_type_script_setup_true_lang-C_akEjfi.js";
3
- import { I as kd, l as $d, m as wd } from "../VDialog.vue_vue_type_script_setup_true_lang-C_akEjfi.js";
4
- import { f as ka, t as $a, g as wa, u as tt, s as Ca, d as _a, m as Sa, c as Ta } from "../app-B45sALrX.js";
5
- import { e as kt, f as Aa, g as za, o as Ea } from "../useDialog-Buvn63AR.js";
6
- import { useForm as Va } from "../composables/index.es.js";
7
- import { required as Ba, maxLen as Ia } from "../validate/index.es.js";
8
- import { a as La } from "../paths-CbO4FuTv.js";
9
- const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Fr = /* @__PURE__ */ L({
1
+ import { defineComponent as L, resolveComponent as Rt, openBlock as f, createElementBlock as g, Fragment as D, createCommentVNode as T, createElementVNode as l, normalizeClass as M, createVNode as v, withCtx as x, createBlock as O, renderSlot as B, computed as C, withModifiers as Q, toDisplayString as w, unref as H, TransitionGroup as Pt, renderList as K, mergeProps as X, ref as F, watch as _e, resolveDynamicComponent as Ee, Transition as yt, normalizeStyle as Ve, createTextVNode as E, normalizeProps as ae, guardReactiveProps as se, onMounted as he, onUnmounted as Je, reactive as Ut, withDirectives as ot, vShow as ma, vModelText as bt, nextTick as xt, toValue as fa, useTemplateRef as Kt, createSlots as ga, isRef as va, Teleport as pa } from "vue";
2
+ import { a as ha, V as Ht, i as j, j as I, g as Wt, f as kt, k as ya, b as ba, h as xa, d as ge, u as ka, _ as Se, e as le } from "../VDialog.vue_vue_type_script_setup_true_lang-C_akEjfi.js";
3
+ import { I as $d, l as wd, m as Cd } from "../VDialog.vue_vue_type_script_setup_true_lang-C_akEjfi.js";
4
+ import { f as $a, t as wa, g as Ca, u as tt, s as _a, d as Sa, m as Ta, c as Aa } from "../app-B45sALrX.js";
5
+ import { e as $t, f as za, g as Ea, o as Va } from "../useDialog-Buvn63AR.js";
6
+ import { useForm as Ba } from "../composables/index.es.js";
7
+ import { required as Ia, maxLen as La } from "../validate/index.es.js";
8
+ import { a as Ma } from "../paths-CbO4FuTv.js";
9
+ const Oa = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Dr = /* @__PURE__ */ L({
10
10
  __name: "AppAside",
11
11
  props: {
12
12
  isSidebar: { type: Boolean, default: !1 }
@@ -17,7 +17,7 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
17
17
  e.isSidebar && a("sidebar", !e.isSidebar);
18
18
  };
19
19
  return (t, o) => {
20
- const r = Nt("router-link");
20
+ const r = Rt("router-link");
21
21
  return f(), g(D, null, [
22
22
  e.isSidebar ? (f(), g("div", {
23
23
  key: 0,
@@ -25,17 +25,17 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
25
25
  onClick: n
26
26
  })) : T("", !0),
27
27
  l("aside", {
28
- class: F([e.isSidebar ? "translate-x-0 lg:w-24" : "-translate-x-full", "overflow-x-hidden fixed top-0 left-0 z-10 flex lg:static h-full w-75 flex-col overflow-y-auto border-r border-gray-light-10/70 bg-white/70 px-5 backdrop-blur-2xl transition-all duration-350 lg:translate-x-0 dark:border-white/10 dark:bg-night-main/70"])
28
+ class: M([e.isSidebar ? "translate-x-0 lg:w-24" : "-translate-x-full", "overflow-x-hidden fixed top-0 left-0 z-10 flex lg:static h-full w-75 flex-col overflow-y-auto border-r border-gray-light-10/70 bg-white/70 px-5 backdrop-blur-2xl transition-all duration-350 lg:translate-x-0 dark:border-white/10 dark:bg-night-main/70"])
29
29
  }, [
30
30
  l("div", {
31
- class: F([e.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 border-b border-gray-light-10/60 pt-6 pb-6 justify-between dark:border-white/5"])
31
+ class: M([e.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 border-b border-gray-light-10/60 pt-6 pb-6 justify-between dark:border-white/5"])
32
32
  }, [
33
33
  v(r, { to: "/" }, {
34
34
  default: x(() => [
35
- e.isSidebar ? (f(), M(pa, {
35
+ e.isSidebar ? (f(), O(ha, {
36
36
  key: 0,
37
37
  class: "h-7 text-cyan-main"
38
- })) : (f(), M(Kt, {
38
+ })) : (f(), O(Ht, {
39
39
  key: 1,
40
40
  class: "h-7 text-cyan-main"
41
41
  }))
@@ -43,14 +43,14 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
43
43
  _: 1
44
44
  })
45
45
  ], 2),
46
- l("div", Ma, [
46
+ l("div", Oa, [
47
47
  B(t.$slots, "default")
48
48
  ])
49
49
  ], 2)
50
50
  ], 64);
51
51
  };
52
52
  }
53
- }), Oa = { class: "glass-header relative sticky top-0 left-0 z-10 w-full border-b shadow-card" }, Fa = { class: "px-4 py-4 sm:px-6 lg:px-8" }, Da = { class: "container mx-auto flex flex-auto items-center" }, ja = { class: "lg:hidden h-7" }, Na = { class: "gap-4 hidden lg:flex" }, Ra = { class: "lg:hidden flex gap-4" }, Pa = { class: "ms-2" }, Dr = /* @__PURE__ */ L({
53
+ }), Fa = { class: "glass-header relative sticky top-0 left-0 z-10 w-full border-b shadow-card" }, Da = { class: "px-4 py-4 sm:px-6 lg:px-8" }, ja = { class: "container mx-auto flex flex-auto items-center" }, Na = { class: "lg:hidden h-7" }, Ra = { class: "gap-4 hidden lg:flex" }, Pa = { class: "lg:hidden flex gap-4" }, Ua = { class: "ms-2" }, jr = /* @__PURE__ */ L({
54
54
  __name: "AppHeader",
55
55
  props: {
56
56
  changeTheme: { type: Function },
@@ -68,11 +68,11 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
68
68
  c == 1 && u(), c == 2 && r(m), c == 3 && d();
69
69
  };
70
70
  return (c, m) => {
71
- const p = Nt("router-link");
72
- return f(), g("header", Oa, [
71
+ const p = Rt("router-link");
72
+ return f(), g("header", Fa, [
73
73
  m[3] || (m[3] = l("div", { class: "pointer-events-none absolute inset-x-0 top-0 h-px bg-gradient-to-r from-transparent via-white/35 to-transparent" }, null, -1)),
74
- l("div", Fa, [
75
- l("div", Da, [
74
+ l("div", Da, [
75
+ l("div", ja, [
76
76
  v(j, {
77
77
  type: "icon",
78
78
  onClick: o
@@ -86,16 +86,16 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
86
86
  _: 1
87
87
  }),
88
88
  m[1] || (m[1] = l("div", { class: "lg:hidden flex-auto" }, null, -1)),
89
- l("div", ja, [
89
+ l("div", Na, [
90
90
  v(p, { to: "/" }, {
91
91
  default: x(() => [
92
- v(Kt, { class: "h-7 text-cyan-main" })
92
+ v(Ht, { class: "h-7 text-cyan-main" })
93
93
  ]),
94
94
  _: 1
95
95
  })
96
96
  ]),
97
97
  m[2] || (m[2] = l("div", { class: "flex-auto" }, null, -1)),
98
- l("div", Na, [
98
+ l("div", Ra, [
99
99
  v(j, {
100
100
  type: "icon",
101
101
  onClick: u
@@ -118,7 +118,7 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
118
118
  }, {
119
119
  default: x(() => [
120
120
  l("span", {
121
- class: F([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
121
+ class: M([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
122
122
  }, [...m[0] || (m[0] = [
123
123
  l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
124
124
  ])], 2),
@@ -142,8 +142,8 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
142
142
  _: 1
143
143
  })
144
144
  ]),
145
- l("div", Ra, [
146
- v(Ht, {
145
+ l("div", Pa, [
146
+ v(Wt, {
147
147
  left: "unset",
148
148
  right: "0",
149
149
  top: "0"
@@ -161,12 +161,12 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
161
161
  }, 8, ["onClick"])
162
162
  ]),
163
163
  default: x(() => [
164
- v(xt, {
164
+ v(kt, {
165
165
  items: n,
166
166
  onClick: i
167
167
  }, {
168
168
  default: x(({ item: b }) => [
169
- l("span", Pa, w(b.name), 1)
169
+ l("span", Ua, w(b.name), 1)
170
170
  ]),
171
171
  _: 1
172
172
  })
@@ -179,7 +179,7 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
179
179
  ]);
180
180
  };
181
181
  }
182
- }), Ua = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, Ka = { class: "flex-auto text-xs" }, Ha = { class: "text-gray-dark-25 dark:text-gray-main mt-1" }, Wa = /* @__PURE__ */ L({
182
+ }), Ka = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, Ha = { class: "flex-auto text-xs" }, Wa = { class: "text-gray-dark-25 dark:text-gray-main mt-1" }, Ga = /* @__PURE__ */ L({
183
183
  __name: "CardNotification",
184
184
  props: {
185
185
  empty: {},
@@ -192,9 +192,9 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
192
192
  emits: ["remove", "read"],
193
193
  setup(e, { emit: s }) {
194
194
  const a = e, n = s, t = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], o = (u) => t[u], r = (u) => n("remove", u), d = (u) => n("read", u);
195
- return (u, i) => (f(), g("div", Ua, [
195
+ return (u, i) => (f(), g("div", Ka, [
196
196
  l("div", {
197
- class: F(["absolute left-0 top-0 w-1 h-full", o(a.color)])
197
+ class: M(["absolute left-0 top-0 w-1 h-full", o(a.color)])
198
198
  }, null, 2),
199
199
  v(j, {
200
200
  class: "shrink-0",
@@ -203,7 +203,7 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
203
203
  }, {
204
204
  default: x(() => [
205
205
  l("span", {
206
- class: F([a.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
206
+ class: M([a.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
207
207
  }, [...i[0] || (i[0] = [
208
208
  l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
209
209
  ])], 2),
@@ -214,9 +214,9 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
214
214
  ]),
215
215
  _: 1
216
216
  }),
217
- l("div", Ka, [
217
+ l("div", Ha, [
218
218
  l("div", null, w(a.text), 1),
219
- l("div", Ha, w(H(ka)(a.date)) + " (" + w(H($a)(a.date)) + ")", 1)
219
+ l("div", Wa, w(H($a)(a.date)) + " (" + w(H(wa)(a.date)) + ")", 1)
220
220
  ]),
221
221
  v(j, {
222
222
  class: "shrink-0",
@@ -234,10 +234,10 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
234
234
  })
235
235
  ]));
236
236
  }
237
- }), Ga = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Ja = {
237
+ }), Ja = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Xa = {
238
238
  key: 0,
239
239
  class: "flex flex-col gap-2 p-2"
240
- }, jr = /* @__PURE__ */ L({
240
+ }, Nr = /* @__PURE__ */ L({
241
241
  __name: "AppNotification",
242
242
  props: {
243
243
  value: { type: Boolean },
@@ -253,12 +253,12 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
253
253
  onClick: r
254
254
  })) : T("", !0),
255
255
  l("aside", {
256
- class: F([a.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-18 bottom-0 right-0 flex w-72 md:w-80 border-l border-gray-light-10/70 flex-col overflow-y-auto transition-all duration-350 dark:border-white/10 bg-white/90 backdrop-blur-2xl dark:bg-night-main/80"])
256
+ class: M([a.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-18 bottom-0 right-0 flex w-72 md:w-80 border-l border-gray-light-10/70 flex-col overflow-y-auto transition-all duration-350 dark:border-white/10 bg-white/90 backdrop-blur-2xl dark:bg-night-main/80"])
257
257
  }, [
258
- l("div", Ga, [
258
+ l("div", Ja, [
259
259
  B(i.$slots, "header", { isNew: t.value }),
260
- o.value ? (f(), g("div", Ja, [
261
- v(Rt, {
260
+ o.value ? (f(), g("div", Xa, [
261
+ v(Pt, {
262
262
  "enter-active-class": "transition-all duration-300 ",
263
263
  "enter-from-class": "opacity-0 translate-x-1/2",
264
264
  "enter-to-class": "opacity-100 translate-x-0",
@@ -272,7 +272,7 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
272
272
  class: "relative"
273
273
  }, [
274
274
  B(i.$slots, "card", { item: m }, () => [
275
- v(Wa, X({ ref_for: !0 }, m, {
275
+ v(Ga, X({ ref_for: !0 }, m, {
276
276
  class: "rounded-md border border-gray-light-10/60 bg-white/50 dark:border-white/5 dark:bg-white/[0.03]",
277
277
  onRemove: (p) => d(m),
278
278
  onRead: (p) => u(m)
@@ -287,19 +287,19 @@ const Ma = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
287
287
  ], 2)
288
288
  ], 64));
289
289
  }
290
- }), Xa = {}, qa = { class: "fixed h-full w-full top-0 left-0 z-20" }, Ya = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
291
- function Za(e, s) {
292
- return f(), g("div", qa, [
290
+ }), qa = {}, Ya = { class: "fixed h-full w-full top-0 left-0 z-20" }, Za = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
291
+ function Qa(e, s) {
292
+ return f(), g("div", Ya, [
293
293
  s[0] || (s[0] = l("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
294
- l("div", Ya, [
294
+ l("div", Za, [
295
295
  B(e.$slots, "default")
296
296
  ])
297
297
  ]);
298
298
  }
299
- const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex flex-col gap-2" }, es = { class: "size-6 flex-[0_0_24px] opacity-60" }, ts = ["onClick"], as = { class: "flex flex-col gap-2" }, ss = { class: "flex gap-2 ms-8" }, ls = { class: "size-5 flex-[0_0_24px]" }, ns = { class: "flex-1 first-letter:uppercase text-sm" }, os = {
299
+ const Rr = /* @__PURE__ */ ya(qa, [["render", Qa]]), es = { class: "mb-4 flex flex-col gap-2" }, ts = { class: "size-6 flex-[0_0_24px] opacity-60" }, as = ["onClick"], ss = { class: "flex flex-col gap-2" }, ls = { class: "flex gap-2 ms-8" }, ns = { class: "size-5 flex-[0_0_24px]" }, os = { class: "flex-1 first-letter:uppercase text-sm" }, is = {
300
300
  key: 0,
301
301
  class: "mt-2"
302
- }, is = { class: "flex flex-col gap-2" }, rs = { class: "flex gap-2 ms-14" }, ds = { class: "size-5 flex-[0_0_24px]" }, cs = { class: "flex-1 first-letter:uppercase text-sm" }, Rr = /* @__PURE__ */ L({
302
+ }, rs = { class: "flex flex-col gap-2" }, ds = { class: "flex gap-2 ms-14" }, cs = { class: "size-5 flex-[0_0_24px]" }, us = { class: "flex-1 first-letter:uppercase text-sm" }, Pr = /* @__PURE__ */ L({
303
303
  __name: "AppNav",
304
304
  props: {
305
305
  menu: { default: () => [] },
@@ -308,7 +308,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
308
308
  },
309
309
  emits: ["sidebar"],
310
310
  setup(e, { emit: s }) {
311
- const a = s, n = O(""), t = ({ name: i }) => {
311
+ const a = s, n = F(""), t = ({ name: i }) => {
312
312
  e.isSidebar && a("sidebar", !e.isSidebar), n.value !== i && (n.value = n.value === i ? "" : i);
313
313
  }, o = (i) => e.fullPath === i, r = (i) => i ? e.fullPath === i || e.fullPath.startsWith(i) : !1, d = (i, c) => !i.path || c === "/" || i.path === "/" ? !1 : i.path === c || c.includes(i.path), u = (i, c) => (i == null ? void 0 : i.find(
314
314
  (m) => {
@@ -325,74 +325,74 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
325
325
  () => e.menu,
326
326
  () => {
327
327
  var i;
328
- return n.value = ((i = u(e.menu, e.fullPath) ?? wa(e.menu, e.fullPath)) == null ? void 0 : i.name) || "";
328
+ return n.value = ((i = u(e.menu, e.fullPath) ?? Ca(e.menu, e.fullPath)) == null ? void 0 : i.name) || "";
329
329
  }
330
330
  ), (i, c) => (f(), g("nav", null, [
331
- l("ul", Qa, [
331
+ l("ul", es, [
332
332
  (f(!0), g(D, null, K(e.menu, (m) => (f(), g("li", {
333
333
  key: m.name
334
334
  }, [
335
- (f(), M(Ee(m.path ? "router-link" : "span"), {
335
+ (f(), O(Ee(m.path ? "router-link" : "span"), {
336
336
  to: m.path,
337
- class: F(["flex gap-2 items-center px-3 py-2 rounded", o(m.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
337
+ class: M(["flex gap-2 items-center px-3 py-2 rounded", o(m.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
338
338
  onClick: Q((p) => t(m), ["prevent", "stop"])
339
339
  }, {
340
340
  default: x(() => [
341
- l("div", es, [
341
+ l("div", ts, [
342
342
  B(i.$slots, "icon", { item: m })
343
343
  ]),
344
344
  l("span", {
345
- class: F(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
345
+ class: M(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
346
346
  }, w(m.name), 3),
347
347
  l("button", {
348
- class: F(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
348
+ class: M(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
349
349
  onClick: Q((p) => t(m), ["prevent", "stop"])
350
350
  }, [
351
- m.children ? (f(), M(I, {
351
+ m.children ? (f(), O(I, {
352
352
  key: 0,
353
353
  name: "arrow-right"
354
354
  })) : T("", !0)
355
- ], 10, ts)
355
+ ], 10, as)
356
356
  ]),
357
357
  _: 2
358
358
  }, 1032, ["to", "class", "onClick"])),
359
359
  m.children ? (f(), g("div", {
360
360
  key: 0,
361
- class: F(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", n.value === m.name ? "block" : "hidden"]])
361
+ class: M(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", n.value === m.name ? "block" : "hidden"]])
362
362
  }, [
363
- l("ul", as, [
363
+ l("ul", ss, [
364
364
  (f(!0), g(D, null, K(m.children, ({ name: p, path: b, icon: h, children: k }) => (f(), g("li", { key: p }, [
365
- (f(), M(Ee(b ? "router-link" : "span"), {
365
+ (f(), O(Ee(b ? "router-link" : "span"), {
366
366
  to: b,
367
- class: F(["flex gap-2 items-center px-3 py-2 rounded", o(b) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"])
367
+ class: M(["flex gap-2 items-center px-3 py-2 rounded", o(b) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"])
368
368
  }, {
369
369
  default: x(() => [
370
- l("div", ss, [
371
- l("div", ls, [
370
+ l("div", ls, [
371
+ l("div", ns, [
372
372
  B(i.$slots, "icon-children", {
373
373
  item: { name: p, path: b, icon: h }
374
374
  })
375
375
  ]),
376
- l("span", ns, w(p), 1)
376
+ l("span", os, w(p), 1)
377
377
  ])
378
378
  ]),
379
379
  _: 2
380
380
  }, 1032, ["to", "class"])),
381
- k != null && k.length && r(b) ? (f(), g("div", os, [
382
- l("ul", is, [
381
+ k != null && k.length && r(b) ? (f(), g("div", is, [
382
+ l("ul", rs, [
383
383
  (f(!0), g(D, null, K(k, (_) => (f(), g("li", {
384
384
  key: _.name
385
385
  }, [
386
- (f(), M(Ee(_.path ? "router-link" : "span"), {
386
+ (f(), O(Ee(_.path ? "router-link" : "span"), {
387
387
  to: _.path,
388
- class: F(["flex gap-2 items-center px-3 py-2 rounded", o(_.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"])
388
+ class: M(["flex gap-2 items-center px-3 py-2 rounded", o(_.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"])
389
389
  }, {
390
390
  default: x(() => [
391
- l("div", rs, [
392
- l("div", ds, [
391
+ l("div", ds, [
392
+ l("div", cs, [
393
393
  B(i.$slots, "icon-children", { item: _ })
394
394
  ]),
395
- l("span", cs, w(_.name), 1)
395
+ l("span", us, w(_.name), 1)
396
396
  ])
397
397
  ]),
398
398
  _: 2
@@ -407,17 +407,17 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
407
407
  ])
408
408
  ]));
409
409
  }
410
- }), us = {
410
+ }), ms = {
411
411
  key: 0,
412
412
  class: "glass-inset w-full min-w-64 max-w-xs rounded-xl p-4 shadow-lg",
413
413
  role: "alert"
414
- }, ms = { class: "flex items-center gap-4 text-sm" }, fs = {
414
+ }, fs = { class: "flex items-center gap-4 text-sm" }, gs = {
415
415
  key: 0,
416
416
  class: "text-green-600"
417
- }, gs = {
417
+ }, vs = {
418
418
  key: 1,
419
419
  class: "relative mt-2 block h-4 w-full select-none overflow-hidden rounded-md bg-gray-light-10/70 dark:bg-white/10"
420
- }, vs = { class: "absolute left-36 top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, ps = { class: "absolute left-36 top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Pr = /* @__PURE__ */ L({
420
+ }, ps = { class: "absolute left-36 top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, hs = { class: "absolute left-36 top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Ur = /* @__PURE__ */ L({
421
421
  __name: "AppProgress",
422
422
  props: {
423
423
  timeout: { default: 5e3 },
@@ -428,7 +428,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
428
428
  length: { default: 0 }
429
429
  },
430
430
  setup(e) {
431
- const s = O(!1), a = C(() => !!e.length), n = C(() => !!(a.value && t.value === 100 && !e.status)), t = C(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), o = kt(() => {
431
+ const s = F(!1), a = C(() => !!e.length), n = C(() => !!(a.value && t.value === 100 && !e.status)), t = C(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), o = $t(() => {
432
432
  s.value = !1;
433
433
  }, e.timeout);
434
434
  return _e(
@@ -436,7 +436,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
436
436
  () => {
437
437
  s.value = !0, o();
438
438
  }
439
- ), (r, d) => (f(), M(ht, {
439
+ ), (r, d) => (f(), O(yt, {
440
440
  "enter-active-class": "duration-300 ease-out",
441
441
  "enter-from-class": "transform opacity-0 translate-x-full",
442
442
  "enter-to-class": "opacity-100 translate-x-0",
@@ -445,11 +445,11 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
445
445
  "leave-to-class": "transform opacity-0 -translate-y-8"
446
446
  }, {
447
447
  default: x(() => [
448
- s.value ? (f(), g("div", us, [
449
- l("div", ms, [
448
+ s.value ? (f(), g("div", ms, [
449
+ l("div", fs, [
450
450
  B(r.$slots, "default", { isDone: n.value }, () => [
451
451
  d[1] || (d[1] = l("div", { class: "flex-auto" }, "Progress...", -1)),
452
- n.value ? (f(), g("span", fs, "Done")) : T("", !0)
452
+ n.value ? (f(), g("span", gs, "Done")) : T("", !0)
453
453
  ]),
454
454
  l("button", {
455
455
  class: "cursor-pointer transition text-gray-dark-30 dark:text-gray-main self-start hover:text-gray-dark-25",
@@ -466,13 +466,13 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
466
466
  class: "h-0.5 fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
467
467
  style: Ve(`width: ${t.value}%`)
468
468
  }, null, 4)) : T("", !0),
469
- a.value ? (f(), g("div", gs, [
470
- l("div", vs, w(t.value) + "%", 1),
469
+ a.value ? (f(), g("div", vs, [
470
+ l("div", ps, w(t.value) + "%", 1),
471
471
  l("div", {
472
472
  class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
473
473
  style: Ve(`width: ${t.value}%`)
474
474
  }, [
475
- l("div", ps, w(t.value) + "%", 1)
475
+ l("div", hs, w(t.value) + "%", 1)
476
476
  ], 4)
477
477
  ])) : T("", !0)
478
478
  ])) : T("", !0)
@@ -480,7 +480,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
480
480
  _: 3
481
481
  }));
482
482
  }
483
- }), hs = { class: "my-4 text-gray-dark-30 dark:text-gray-main" }, ys = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, bs = { class: "flex gap-2" }, xs = { class: "text-gray-dark-30 dark:text-gray-main" }, ks = { class: "flex gap-2" }, $s = { class: "flex gap-2" }, ws = { class: "text-gray-dark-30 dark:text-gray-main" }, Cs = { class: "flex gap-2" }, _s = { class: "text-gray-dark-30 dark:text-gray-main" }, Ss = { class: "flex flex-col gap-4 text-sm" }, Ts = { class: "flex gap-4" }, Ur = /* @__PURE__ */ L({
483
+ }), ys = { class: "my-4 text-gray-dark-30 dark:text-gray-main" }, bs = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, xs = { class: "flex gap-2" }, ks = { class: "text-gray-dark-30 dark:text-gray-main" }, $s = { class: "flex gap-2" }, ws = { class: "flex gap-2" }, Cs = { class: "text-gray-dark-30 dark:text-gray-main" }, _s = { class: "flex gap-2" }, Ss = { class: "text-gray-dark-30 dark:text-gray-main" }, Ts = { class: "flex flex-col gap-4 text-sm" }, As = { class: "flex gap-4" }, Kr = /* @__PURE__ */ L({
484
484
  __name: "BlockInfo",
485
485
  props: {
486
486
  pkg: {},
@@ -501,37 +501,37 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
501
501
  return (n, t) => {
502
502
  var o, r;
503
503
  return f(), g("div", null, [
504
- l("p", hs, w((o = e.pkg) == null ? void 0 : o.description), 1),
505
- l("div", ys, [
506
- l("div", bs, [
504
+ l("p", ys, w((o = e.pkg) == null ? void 0 : o.description), 1),
505
+ l("div", bs, [
506
+ l("div", xs, [
507
507
  t[0] || (t[0] = E(" Firmware (hw): ", -1)),
508
- l("span", xs, w(s.value), 1)
508
+ l("span", ks, w(s.value), 1)
509
509
  ]),
510
- l("div", ks, [
511
- l("div", $s, [
510
+ l("div", $s, [
511
+ l("div", ws, [
512
512
  t[1] || (t[1] = E(" Version (web): ", -1)),
513
- l("span", ws, w((r = e.pkg) == null ? void 0 : r.version), 1)
513
+ l("span", Cs, w((r = e.pkg) == null ? void 0 : r.version), 1)
514
514
  ])
515
515
  ]),
516
516
  t[3] || (t[3] = l("div", { class: "flex-auto" }, null, -1)),
517
- l("div", Cs, [
517
+ l("div", _s, [
518
518
  t[2] || (t[2] = E(" ID: ", -1)),
519
- l("span", _s, w(e.id.toString(16)), 1)
519
+ l("span", Ss, w(e.id.toString(16)), 1)
520
520
  ])
521
521
  ]),
522
522
  t[4] || (t[4] = l("hr", { class: "dark:text-gray-dark-30 text-gray-light-10 my-2" }, null, -1)),
523
- l("div", Ss, [
524
- l("div", Ts, [
523
+ l("div", Ts, [
524
+ l("div", As, [
525
525
  B(n.$slots, "links", { links: a.value })
526
526
  ])
527
527
  ])
528
528
  ]);
529
529
  };
530
530
  }
531
- }), As = ["onClick"], zs = { class: "mr-2" }, Es = { class: "text-sm" }, Vs = { class: "text-gray-main text-xs" }, Bs = {
531
+ }), zs = ["onClick"], Es = { class: "mr-2" }, Vs = { class: "text-sm" }, Bs = { class: "text-gray-main text-xs" }, Is = {
532
532
  key: 0,
533
533
  class: "flex justify-center"
534
- }, Is = { class: "flex justify-end mt-4" }, Kr = /* @__PURE__ */ L({
534
+ }, Ls = { class: "flex justify-end mt-4" }, Hr = /* @__PURE__ */ L({
535
535
  __name: "BlockScan",
536
536
  props: {
537
537
  items: { default: () => [] }
@@ -540,7 +540,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
540
540
  setup(e, { emit: s }) {
541
541
  const a = s, n = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], t = (r) => a("select", r), o = (r) => a("scan", r);
542
542
  return (r, d) => {
543
- const u = ya, i = xt, c = ba, m = j;
543
+ const u = ba, i = kt, c = xa, m = j;
544
544
  return f(), g("div", null, [
545
545
  v(i, {
546
546
  items: e.items,
@@ -551,21 +551,21 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
551
551
  class: "flex items-center w-full",
552
552
  onClick: (b) => t(p)
553
553
  }, [
554
- l("div", zs, [
554
+ l("div", Es, [
555
555
  v(u, ae(se(p)), null, 16)
556
556
  ]),
557
557
  l("div", null, [
558
- l("div", Es, w(p.ssid), 1),
559
- l("div", Vs, w(r.$t("security")) + " : " + w(n[p.encryptionType] || "unknown"), 1)
558
+ l("div", Vs, w(p.ssid), 1),
559
+ l("div", Bs, w(r.$t("security")) + " : " + w(n[p.encryptionType] || "unknown"), 1)
560
560
  ])
561
- ], 8, As)
561
+ ], 8, zs)
562
562
  ]),
563
563
  _: 1
564
564
  }, 8, ["items"]),
565
- e.items.length ? T("", !0) : (f(), g("div", Bs, [
565
+ e.items.length ? T("", !0) : (f(), g("div", Is, [
566
566
  v(c, { class: "text-cyan-main" })
567
567
  ])),
568
- l("div", Is, [
568
+ l("div", Ls, [
569
569
  v(m, {
570
570
  color: "blue",
571
571
  onClick: o
@@ -579,7 +579,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
579
579
  ]);
580
580
  };
581
581
  }
582
- }), Ls = { class: "md:flex items-center mb-4" }, Ms = { class: "flex-auto text-gray-dark-25 bg:text-gray-main mb-2" }, Os = { class: "md:max-w-50" }, Fs = { class: "flex items-center mb-4" }, Ds = { class: "flex-auto text-gray-dark-25 bg:text-gray-main" }, js = { class: "flex items-center mb-4" }, Ns = { class: "flex-auto text-gray-dark-25 bg:text-gray-main" }, Hr = /* @__PURE__ */ L({
582
+ }), Ms = { class: "md:flex items-center mb-4" }, Os = { class: "flex-auto text-gray-dark-25 dark:text-gray-light-10 mb-2" }, Fs = { class: "md:max-w-50" }, Ds = { class: "flex items-center mb-4" }, js = { class: "flex-auto text-gray-dark-25 dark:text-gray-light-10" }, Ns = { class: "flex items-center mb-4" }, Rs = { class: "flex-auto text-gray-dark-25 dark:text-gray-light-10" }, Wr = /* @__PURE__ */ L({
583
583
  __name: "BlockService",
584
584
  props: {
585
585
  locale: {},
@@ -594,9 +594,9 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
594
594
  return (o, r) => {
595
595
  const d = ge, u = j;
596
596
  return f(), g(D, null, [
597
- l("div", Ls, [
598
- l("div", Ms, w(o.$t("selectLang")), 1),
599
- l("div", Os, [
597
+ l("div", Ms, [
598
+ l("div", Os, w(o.$t("selectLang")), 1),
599
+ l("div", Fs, [
600
600
  v(d, {
601
601
  "model-value": t(e.locale),
602
602
  label: o.$t("lang"),
@@ -605,8 +605,8 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
605
605
  }, null, 8, ["model-value", "label", "items"])
606
606
  ])
607
607
  ]),
608
- l("div", Fs, [
609
- l("div", Ds, w(o.$t("rebootDev")), 1),
608
+ l("div", Ds, [
609
+ l("div", js, w(o.$t("rebootDev")), 1),
610
610
  v(u, {
611
611
  class: "min-w-24",
612
612
  color: "red",
@@ -619,8 +619,8 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
619
619
  _: 1
620
620
  })
621
621
  ]),
622
- l("div", js, [
623
- l("div", Ns, w(o.$t("resetConf")), 1),
622
+ l("div", Ns, [
623
+ l("div", Rs, w(o.$t("resetConf")), 1),
624
624
  v(u, {
625
625
  class: "min-w-24",
626
626
  color: "red",
@@ -635,7 +635,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
635
635
  ], 64);
636
636
  };
637
637
  }
638
- }), Rs = { class: "grid grid-cols-1 gap-4 lg:max-w-90 min-w-64" }, Ps = { class: "flex flex-col w-full items-center gap-2" }, Us = ["title"], Ks = { class: "absolute left-28 top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-dark-40 dark:text-white" }, Hs = { class: "absolute left-28 top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Ws = { class: "flex justify-between w-full text-xs" }, Gs = { class: "text-gray-dark-25 dark:text-white/50" }, Js = { class: "text-sm" }, Xs = { class: "text-gray-dark-25 dark:text-white/50 text-left" }, qs = { class: "text-right text-xs" }, Wr = /* @__PURE__ */ L({
638
+ }), Ps = { class: "grid grid-cols-1 gap-4 lg:max-w-90 min-w-64" }, Us = { class: "flex flex-col w-full items-center gap-2" }, Ks = ["title"], Hs = { class: "absolute left-28 top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-dark-40 dark:text-white" }, Ws = { class: "absolute left-28 top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Gs = { class: "flex justify-between w-full text-xs" }, Js = { class: "text-gray-dark-25 dark:text-white/50" }, Xs = { class: "text-sm" }, qs = { class: "text-gray-dark-25 dark:text-white/50 text-left" }, Ys = { class: "text-right text-xs" }, Gr = /* @__PURE__ */ L({
639
639
  __name: "BlockStatus",
640
640
  props: {
641
641
  pkg: {},
@@ -648,7 +648,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
648
648
  board: {}
649
649
  },
650
650
  setup(e) {
651
- const s = O(e.uptime);
651
+ const s = F(e.uptime);
652
652
  let a = null;
653
653
  const n = C(() => e.firmware.join(".")), t = C(() => [
654
654
  { name: "used", value: tt(e.usedBytes) },
@@ -657,7 +657,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
657
657
  ]), o = C(() => {
658
658
  var u;
659
659
  return [
660
- { name: "uptime", value: Ca(s.value) },
660
+ { name: "uptime", value: _a(s.value) },
661
661
  { name: "id", value: `${e.id.toString(16)} (${e.id})` },
662
662
  { name: "firmware", value: n.value },
663
663
  { name: "version", value: (u = e.pkg) == null ? void 0 : u.version }
@@ -671,41 +671,41 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
671
671
  s.value = 0, a && clearTimeout(a);
672
672
  }), (u, i) => {
673
673
  var c, m, p;
674
- return f(), g("div", Rs, [
675
- l("div", Ps, [
674
+ return f(), g("div", Ps, [
675
+ l("div", Us, [
676
676
  l("div", {
677
677
  class: "relative block h-4 w-full select-none overflow-hidden rounded-md bg-gray-light-10/70 dark:bg-white/10",
678
678
  title: `${r.value}%`
679
679
  }, [
680
- l("div", Ks, w(r.value) + "%", 1),
680
+ l("div", Hs, w(r.value) + "%", 1),
681
681
  l("div", {
682
682
  class: "relative h-4 overflow-hidden rounded-md bg-cyan-main transition-all duration-500",
683
683
  style: Ve(`width: ${r.value}%`)
684
684
  }, [
685
- l("div", Hs, w(r.value) + "%", 1)
685
+ l("div", Ws, w(r.value) + "%", 1)
686
686
  ], 4)
687
- ], 8, Us),
688
- l("div", Ws, [
687
+ ], 8, Ks),
688
+ l("div", Gs, [
689
689
  (f(!0), g(D, null, K(t.value, (b) => (f(), g("div", {
690
690
  key: b.name,
691
691
  class: "flex-auto"
692
692
  }, [
693
- l("div", Gs, [
693
+ l("div", Js, [
694
694
  B(u.$slots, "name", { item: b })
695
695
  ]),
696
696
  l("div", null, w(b.value), 1)
697
697
  ]))), 128))
698
698
  ])
699
699
  ]),
700
- l("div", Js, [
700
+ l("div", Xs, [
701
701
  (f(!0), g(D, null, K(o.value, (b) => (f(), g("div", {
702
702
  key: b.name,
703
703
  class: "flex justify-between items-center"
704
704
  }, [
705
- l("div", Xs, [
705
+ l("div", qs, [
706
706
  B(u.$slots, "name", { item: b })
707
707
  ]),
708
- l("div", qs, w(b.value), 1)
708
+ l("div", Ys, w(b.value), 1)
709
709
  ]))), 128))
710
710
  ]),
711
711
  l("div", null, [
@@ -717,7 +717,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
717
717
  ]);
718
718
  };
719
719
  }
720
- }), Ys = { class: "flex items-center cursor-pointer" }, Zs = /* @__PURE__ */ L({
720
+ }), Zs = { class: "flex items-center cursor-pointer" }, Qs = /* @__PURE__ */ L({
721
721
  __name: "VFile",
722
722
  emits: ["change"],
723
723
  setup(e, { emit: s }) {
@@ -725,7 +725,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
725
725
  const o = t.target;
726
726
  o.files && a("change", o.files);
727
727
  };
728
- return (t, o) => (f(), g("label", Ys, [
728
+ return (t, o) => (f(), g("label", Zs, [
729
729
  l("input", X({
730
730
  type: "file",
731
731
  class: "hidden"
@@ -733,11 +733,11 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
733
733
  B(t.$slots, "default")
734
734
  ]));
735
735
  }
736
- }), Qs = { class: "md:flex" }, el = { class: "text-gray-dark-25 bg:text-gray-main first-letter:uppercase min-w-19" }, Gr = /* @__PURE__ */ L({
736
+ }), el = { class: "md:flex" }, tl = { class: "text-gray-dark-25 dark:text-gray-light-10 first-letter:uppercase min-w-19" }, Jr = /* @__PURE__ */ L({
737
737
  __name: "BlockUpdate",
738
738
  emits: ["update"],
739
739
  setup(e, { emit: s }) {
740
- const a = s, n = Pt({ firmware: null, littlefs: null }), t = (d) => d ? Array.from(d).map((u) => `${u.name} (${tt(u.size)})`).join("") : "", o = (d, u) => {
740
+ const a = s, n = Ut({ firmware: null, littlefs: null }), t = (d) => d ? Array.from(d).map((u) => `${u.name} (${tt(u.size)})`).join("") : "", o = (d, u) => {
741
741
  const i = new FormData();
742
742
  for (let c = 0; c < d.length; c++) {
743
743
  const m = d.item(c);
@@ -757,14 +757,14 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
757
757
  key: m,
758
758
  class: "mb-4 flex items-center"
759
759
  }, [
760
- v(Zs, {
760
+ v(Qs, {
761
761
  accept: ".bin",
762
762
  onChange: (p) => n[m] = p,
763
763
  class: "flex-auto"
764
764
  }, {
765
765
  default: x(() => [
766
- l("div", Qs, [
767
- l("h6", el, w(m) + ":", 1),
766
+ l("div", el, [
767
+ l("h6", tl, w(m) + ":", 1),
768
768
  B(d.$slots, "default", {
769
769
  file: t(c)
770
770
  })
@@ -787,7 +787,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
787
787
  ]);
788
788
  };
789
789
  }
790
- }), tl = { class: "flex items-center gap-1.5" }, Jr = /* @__PURE__ */ L({
790
+ }), al = { class: "flex items-center gap-1.5" }, Xr = /* @__PURE__ */ L({
791
791
  __name: "BlockBreadcrumb",
792
792
  props: {
793
793
  items: { default: () => [] }
@@ -796,13 +796,13 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
796
796
  setup(e, { emit: s }) {
797
797
  const a = s, n = (t) => a("click", t);
798
798
  return (t, o) => (f(), g("nav", null, [
799
- l("ol", tl, [
799
+ l("ol", al, [
800
800
  (f(!0), g(D, null, K(e.items, (r, d) => (f(), g("li", {
801
801
  key: d,
802
- class: F(["inline-flex items-center gap-1.5 text-sm text-gray-dark-25 dark:text-gray-main", r.path ? "" : "text-gray-dark-30 dark:text-white/90"])
802
+ class: M(["inline-flex items-center gap-1.5 text-sm text-gray-dark-25 dark:text-gray-main", r.path ? "" : "text-gray-dark-30 dark:text-white/90"])
803
803
  }, [
804
804
  B(t.$slots, "default", { item: r }, () => [
805
- (f(), M(Ee(r.path ? "a" : "span"), {
805
+ (f(), O(Ee(r.path ? "a" : "span"), {
806
806
  href: r.path,
807
807
  onClick: (u) => n(r)
808
808
  }, {
@@ -812,22 +812,23 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
812
812
  _: 2
813
813
  }, 1032, ["href", "onClick"]))
814
814
  ]),
815
- r.path ? (f(), M(I, {
815
+ r.path ? (f(), O(I, {
816
816
  key: 0,
817
817
  name: "chevron-right",
818
- class: "rotate-270"
818
+ size: 14,
819
+ class: "shrink-0"
819
820
  })) : T("", !0)
820
821
  ], 2))), 128))
821
822
  ])
822
823
  ]));
823
824
  }
824
- }), al = ["onClick"], sl = {
825
+ }), sl = ["onClick"], ll = {
825
826
  key: 0,
826
827
  class: "me-1"
827
- }, ll = { class: "dark:text-gray-light-10" }, nl = { class: "flex gap-3 items-center z-10" }, ol = {
828
+ }, nl = { class: "dark:text-gray-light-10" }, ol = { class: "flex items-center z-10" }, il = {
828
829
  key: 0,
829
830
  class: "flex ps-5"
830
- }, il = { class: "font-medium dark:text-gray-light-10" }, $t = /* @__PURE__ */ L({
831
+ }, rl = { class: "font-medium dark:text-gray-light-10" }, ut = "ms-2 opacity-20 transition-all hover:opacity-70", wt = /* @__PURE__ */ L({
831
832
  __name: "VListObject",
832
833
  props: {
833
834
  items: { default: () => ({}) },
@@ -836,7 +837,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
836
837
  },
837
838
  emits: ["click"],
838
839
  setup(e, { emit: s }) {
839
- const a = s, n = () => "before:absolute before:w-full before:h-8 before:t-0 before:left-0 before:border-b before:border-gray-light-10 dark:before:border-gray-dark-30/50 hover:before:bg-gray-main/10", t = O({}), { text: o, copy: r, copied: d, isSupported: u } = Aa(), i = (b) => {
840
+ const a = s, n = () => "before:absolute before:w-full before:h-8 before:t-0 before:left-0 before:border-b before:border-gray-light-10 dark:before:border-gray-dark-30/50 hover:before:bg-gray-main/10", t = F({}), { text: o, copy: r, copied: d, isSupported: u } = za(), i = (b) => {
840
841
  t.value[b] = !t.value[b];
841
842
  }, c = (b) => typeof b == "object", m = (b) => `${e.path ? e.path + "." : ""}${b}`, p = (b, h) => {
842
843
  a("click", { key: b, path: m(b), isObject: h });
@@ -844,22 +845,22 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
844
845
  return (b, h) => (f(), g("ul", null, [
845
846
  (f(!0), g(D, null, K(e.items, (k, _) => (f(), g("li", {
846
847
  key: _,
847
- class: F(c(k) ? "" : `flex items-center ${n()}`)
848
+ class: M(c(k) ? "" : `flex items-center ${n()}`)
848
849
  }, [
849
850
  l("div", {
850
- class: F(["flex items-center cursor-pointer ps-2 h-8", c(k) ? `${n()}` : ""]),
851
+ class: M(["flex items-center cursor-pointer ps-2 h-8", c(k) ? `${n()}` : ""]),
851
852
  onClick: (N) => i(_)
852
853
  }, [
853
- c(k) ? (f(), g("div", sl, [
854
+ c(k) ? (f(), g("div", ll, [
854
855
  v(I, {
855
856
  name: "folder",
856
857
  class: "size-5"
857
858
  })
858
859
  ])) : T("", !0),
859
- l("div", ll, w(_), 1),
860
- H(u) ? (f(), M(j, {
860
+ l("div", nl, w(_), 1),
861
+ H(u) ? (f(), O(j, {
861
862
  key: 1,
862
- class: "opacity-20 hover:opacity-70 transition-all",
863
+ class: M(ut),
863
864
  color: "transparent",
864
865
  size: "sm",
865
866
  onClick: Q((N) => H(r)(m(_)), ["stop"])
@@ -874,13 +875,13 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
874
875
  }, 8, ["onClick"])) : T("", !0),
875
876
  H(o) === m(_) ? (f(), g("span", {
876
877
  key: 2,
877
- class: F(["text-gray-dark-25 transition-all duration-1000 text-sm", H(d) ? "opacity-100" : "opacity-0"])
878
+ class: M(["text-gray-dark-25 transition-all duration-1000 text-sm", H(d) ? "opacity-100" : "opacity-0"])
878
879
  }, w(b.$t("copied")), 3)) : T("", !0),
879
880
  !e.onlyValue && c(k) ? (f(), g(D, { key: 3 }, [
880
881
  h[1] || (h[1] = l("div", { class: "flex-auto" }, null, -1)),
881
- l("div", nl, [
882
+ l("div", ol, [
882
883
  v(j, {
883
- class: "opacity-20 hover:opacity-70 transition-all",
884
+ class: M(ut),
884
885
  color: "transparent",
885
886
  size: "sm",
886
887
  title: b.$t("add"),
@@ -896,23 +897,23 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
896
897
  }, 8, ["title", "onClick"])
897
898
  ])
898
899
  ], 64)) : T("", !0)
899
- ], 10, al),
900
- c(k) ? (f(), g("div", ol, [
901
- ot(v($t, {
900
+ ], 10, sl),
901
+ c(k) ? (f(), g("div", il, [
902
+ ot(v(wt, {
902
903
  class: "flex-auto",
903
904
  path: m(_),
904
905
  items: k,
905
906
  onlyValue: e.onlyValue,
906
907
  onClick: h[0] || (h[0] = (N) => a("click", N))
907
908
  }, null, 8, ["path", "items", "onlyValue"]), [
908
- [ua, t.value[_]]
909
+ [ma, t.value[_]]
909
910
  ])
910
911
  ])) : (f(), g(D, { key: 1 }, [
911
912
  h[2] || (h[2] = l("div", { class: "flex-auto gap-3" }, null, -1)),
912
- l("div", il, w(k), 1),
913
+ l("div", rl, w(k), 1),
913
914
  v(j, {
914
- class: "opacity-20 hover:opacity-70 transition-all",
915
- color: "gray",
915
+ class: M(ut),
916
+ color: "transparent",
916
917
  size: "sm",
917
918
  title: b.$t("add"),
918
919
  onClick: Q((N) => p(_, c(k)), ["stop"])
@@ -929,7 +930,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
929
930
  ], 2))), 128))
930
931
  ]));
931
932
  }
932
- }), rl = { class: "flex w-full relative" }, dl = ["disabled", "aria-label", "title"], wt = /* @__PURE__ */ L({
933
+ }), dl = { class: "flex w-full relative" }, cl = ["disabled", "aria-label", "title"], Ct = /* @__PURE__ */ L({
933
934
  __name: "VTextWrapper",
934
935
  props: {
935
936
  active: { type: Boolean },
@@ -941,16 +942,16 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
941
942
  },
942
943
  emits: ["icon"],
943
944
  setup(e, { emit: s }) {
944
- const a = e, n = s, { labelClass: t, borderClass: o, contentClass: r, slotClass: d } = xa(a, "wrapper");
945
- return (u, i) => (f(), g("div", rl, [
945
+ const a = e, n = s, { labelClass: t, borderClass: o, contentClass: r, slotClass: d } = ka(a, "wrapper");
946
+ return (u, i) => (f(), g("div", dl, [
946
947
  l("div", {
947
- class: F(["glass-inset relative flex w-full items-center rounded-md transition focus-within:border-cyan-main/60", [H(d), H(o)]])
948
+ class: M(["glass-inset relative flex w-full items-center rounded-md transition focus-within:border-cyan-main/60", [H(d), H(o)]])
948
949
  }, [
949
950
  l("span", {
950
- class: F(["absolute -translate-y-1/2 rounded transition-all", H(t)])
951
+ class: M(["absolute -translate-y-1/2 rounded transition-all", H(t)])
951
952
  }, w(a.label), 3),
952
953
  l("div", {
953
- class: F(H(r))
954
+ class: M(H(r))
954
955
  }, [
955
956
  B(u.$slots, "default")
956
957
  ], 2),
@@ -960,7 +961,7 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
960
961
  disabled: a.disabled || a.iconDisabled,
961
962
  "aria-label": a.iconLabel || void 0,
962
963
  title: a.iconLabel || void 0,
963
- class: F(["flex h-full flex-[0_0_50px] items-center justify-center rounded-r-md border-l border-gray-light-10 text-gray-main transition hover:text-cyan-main disabled:pointer-events-none disabled:opacity-40 dark:border-white/10", { "cursor-pointer": !a.disabled && !a.iconDisabled }]),
964
+ class: M(["flex h-full flex-[0_0_50px] items-center justify-center rounded-r-md border-l border-gray-light-10 text-gray-main transition hover:text-cyan-main disabled:pointer-events-none disabled:opacity-40 dark:border-white/10", { "cursor-pointer": !a.disabled && !a.iconDisabled }]),
964
965
  onClick: i[0] || (i[0] = (c) => n("icon", c))
965
966
  }, [
966
967
  B(u.$slots, "icon", {}, () => [
@@ -969,16 +970,16 @@ const Nr = /* @__PURE__ */ ha(Xa, [["render", Za]]), Qa = { class: "mb-4 flex fl
969
970
  class: "size-4"
970
971
  })
971
972
  ])
972
- ], 10, dl))
973
+ ], 10, cl))
973
974
  ], 2)
974
975
  ]));
975
976
  }
976
- }), cl = /* @__PURE__ */ L({
977
+ }), ul = /* @__PURE__ */ L({
977
978
  __name: "BlockDataHelp",
978
979
  emits: ["close"],
979
980
  setup(e, { emit: s }) {
980
981
  const a = s;
981
- return (n, t) => (f(), M(Se, {
982
+ return (n, t) => (f(), O(Se, {
982
983
  title: "Как настроить блок",
983
984
  size: "md",
984
985
  onClose: t[0] || (t[0] = (o) => a("close"))
@@ -1083,10 +1084,10 @@ v + ' кВт·ч<br>выработка за день'`),
1083
1084
  _: 1
1084
1085
  }));
1085
1086
  }
1086
- }), ul = { class: "glass-inset rounded-xl p-3" }, ml = { class: "flex items-end gap-2" }, fl = {
1087
+ }), ml = { class: "glass-inset rounded-xl p-3" }, fl = { class: "flex items-end gap-2" }, gl = {
1087
1088
  key: 0,
1088
1089
  class: "mt-1.5 text-xs text-gray-dark-25 dark:text-gray-main"
1089
- }, Et = /* @__PURE__ */ L({
1090
+ }, Vt = /* @__PURE__ */ L({
1090
1091
  __name: "BlockFieldCard",
1091
1092
  props: {
1092
1093
  field: {},
@@ -1100,19 +1101,19 @@ v + ' кВт·ч<br>выработка за день'`),
1100
1101
  emits: ["update:modelValue", "update:format", "pick", "reset"],
1101
1102
  setup(e, { emit: s }) {
1102
1103
  const a = s;
1103
- return (n, t) => (f(), g("div", ul, [
1104
- l("div", ml, [
1104
+ return (n, t) => (f(), g("div", ml, [
1105
+ l("div", fl, [
1105
1106
  l("div", {
1106
- class: F(["grid min-w-0 flex-1 gap-2", { "sm:grid-cols-2": e.hasFormat }])
1107
+ class: M(["grid min-w-0 flex-1 gap-2", { "sm:grid-cols-2": e.hasFormat }])
1107
1108
  }, [
1108
- e.field.plain ? (f(), M(le, {
1109
+ e.field.plain ? (f(), O(le, {
1109
1110
  key: 0,
1110
1111
  active: "",
1111
1112
  "hide-message": "",
1112
1113
  "model-value": e.modelValue,
1113
1114
  label: e.field.label,
1114
1115
  "onUpdate:modelValue": t[0] || (t[0] = (o) => a("update:modelValue", o))
1115
- }, null, 8, ["model-value", "label"])) : (f(), M(le, {
1116
+ }, null, 8, ["model-value", "label"])) : (f(), O(le, {
1116
1117
  key: 1,
1117
1118
  active: "",
1118
1119
  "hide-message": "",
@@ -1130,7 +1131,7 @@ v + ' кВт·ч<br>выработка за день'`),
1130
1131
  ]),
1131
1132
  _: 1
1132
1133
  }, 8, ["model-value", "label", "placeholder"])),
1133
- e.hasFormat ? (f(), M(le, {
1134
+ e.hasFormat ? (f(), O(le, {
1134
1135
  key: 2,
1135
1136
  active: "",
1136
1137
  "hide-message": "",
@@ -1140,7 +1141,7 @@ v + ' кВт·ч<br>выработка за день'`),
1140
1141
  "onUpdate:modelValue": t[3] || (t[3] = (o) => a("update:format", o))
1141
1142
  }, null, 8, ["model-value", "placeholder"])) : T("", !0)
1142
1143
  ], 2),
1143
- e.showReset ? (f(), M(j, {
1144
+ e.showReset ? (f(), O(j, {
1144
1145
  key: 0,
1145
1146
  type: "icon",
1146
1147
  class: "shrink-0",
@@ -1157,10 +1158,10 @@ v + ' кВт·ч<br>выработка за день'`),
1157
1158
  _: 1
1158
1159
  })) : T("", !0)
1159
1160
  ]),
1160
- e.field.hint ? (f(), g("p", fl, w(e.field.hint), 1)) : T("", !0)
1161
+ e.field.hint ? (f(), g("p", gl, w(e.field.hint), 1)) : T("", !0)
1161
1162
  ]));
1162
1163
  }
1163
- }), gl = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, vl = ["title"], pl = ["title"], hl = { class: "flex flex-auto" }, yl = ["disabled"], He = /* @__PURE__ */ L({
1164
+ }), vl = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, pl = ["title"], hl = ["title"], yl = { class: "flex flex-auto" }, bl = ["disabled"], He = /* @__PURE__ */ L({
1164
1165
  __name: "VFunc",
1165
1166
  props: {
1166
1167
  label: {},
@@ -1178,13 +1179,13 @@ v + ' кВт·ч<br>выработка за день'`),
1178
1179
  const a = s, n = ["a", "b", "c", "d"], t = (i) => {
1179
1180
  var c;
1180
1181
  return ((c = e.params) == null ? void 0 : c[i]) ?? n[i] ?? "";
1181
- }, o = O(e.value || ""), r = (i) => {
1182
+ }, o = F(e.value || ""), r = (i) => {
1182
1183
  try {
1183
1184
  return new Function(i), !0;
1184
1185
  } catch (c) {
1185
1186
  return console.warn(c), !1;
1186
1187
  }
1187
- }, d = kt((i) => {
1188
+ }, d = $t((i) => {
1188
1189
  const c = i.target;
1189
1190
  r(c.value) && a("change", c.value);
1190
1191
  }, 500), u = (i) => a("icon", i);
@@ -1194,7 +1195,7 @@ v + ' кВт·ч<br>выработка за день'`),
1194
1195
  const c = i ?? "";
1195
1196
  c !== o.value && (o.value = c);
1196
1197
  }
1197
- ), (i, c) => (f(), M(wt, {
1198
+ ), (i, c) => (f(), O(Ct, {
1198
1199
  active: !!e.value,
1199
1200
  disabled: e.disabled,
1200
1201
  label: e.label,
@@ -1202,11 +1203,11 @@ v + ' кВт·ч<br>выработка за день'`),
1202
1203
  onIcon: u
1203
1204
  }, {
1204
1205
  icon: x(() => [
1205
- e.value ? (f(), M(I, {
1206
+ e.value ? (f(), O(I, {
1206
1207
  key: 0,
1207
1208
  name: "close",
1208
1209
  class: "size-4"
1209
- })) : (f(), M(I, {
1210
+ })) : (f(), O(I, {
1210
1211
  key: 1,
1211
1212
  name: "add",
1212
1213
  class: "size-4"
@@ -1214,7 +1215,7 @@ v + ' кВт·ч<br>выработка за день'`),
1214
1215
  ]),
1215
1216
  default: x(() => [
1216
1217
  e.value ? (f(), g(D, { key: 0 }, [
1217
- l("div", gl, [
1218
+ l("div", vl, [
1218
1219
  c[4] || (c[4] = E(" ( ", -1)),
1219
1220
  (f(!0), g(D, null, K(e.prefix, (m, p) => {
1220
1221
  var b;
@@ -1224,7 +1225,7 @@ v + ' кВт·ч<br>выработка за день'`),
1224
1225
  l("span", {
1225
1226
  class: "text-blue-400/80",
1226
1227
  title: (b = e.prefixTitles) == null ? void 0 : b[p]
1227
- }, w(m), 9, vl),
1228
+ }, w(m), 9, pl),
1228
1229
  c[2] || (c[2] = l("span", { class: "last:hidden" }, ",", -1))
1229
1230
  ], 64);
1230
1231
  }), 128)),
@@ -1232,12 +1233,12 @@ v + ' кВт·ч<br>выработка за день'`),
1232
1233
  l("span", {
1233
1234
  class: "text-blue-400/80",
1234
1235
  title: e.argumentTitle ? `${e.argumentTitle}: ${m}` : m
1235
- }, w(t(p)), 9, pl),
1236
+ }, w(t(p)), 9, hl),
1236
1237
  c[3] || (c[3] = l("span", { class: "last:hidden" }, ",", -1))
1237
1238
  ], 64))), 128)),
1238
1239
  c[5] || (c[5] = E(" ) => ", -1))
1239
1240
  ]),
1240
- l("div", hl, [
1241
+ l("div", yl, [
1241
1242
  ot(l("textarea", {
1242
1243
  "onUpdate:modelValue": c[0] || (c[0] = (m) => o.value = m),
1243
1244
  class: "outline-0 w-full resize-none field-sizing-content",
@@ -1245,8 +1246,8 @@ v + ' кВт·ч<br>выработка за день'`),
1245
1246
  disabled: e.disabled,
1246
1247
  onInput: c[1] || (c[1] = //@ts-ignore
1247
1248
  (...m) => H(d) && H(d)(...m))
1248
- }, null, 40, yl), [
1249
- [yt, o.value]
1249
+ }, null, 40, bl), [
1250
+ [bt, o.value]
1250
1251
  ])
1251
1252
  ])
1252
1253
  ], 64)) : T("", !0)
@@ -1254,60 +1255,60 @@ v + ' кВт·ч<br>выработка за день'`),
1254
1255
  _: 1
1255
1256
  }, 8, ["active", "disabled", "label", "hideIcon"]));
1256
1257
  }
1257
- }), Ct = {
1258
+ }), _t = {
1258
1259
  size: "sm",
1259
1260
  color: "default",
1260
1261
  weight: "semibold",
1261
1262
  align: "right"
1262
- }, bl = {
1263
+ }, xl = {
1263
1264
  xs: "text-xs",
1264
1265
  sm: "text-sm",
1265
1266
  base: "text-base",
1266
1267
  lg: "text-lg",
1267
1268
  xl: "text-xl"
1268
- }, xl = {
1269
+ }, kl = {
1269
1270
  default: "text-gray-dark-40 dark:text-white",
1270
1271
  muted: "text-gray-dark-25 dark:text-gray-main",
1271
1272
  primary: "text-cyan-main",
1272
1273
  success: "text-emerald-600 dark:text-emerald-400",
1273
1274
  warning: "text-amber-600 dark:text-amber-400",
1274
1275
  danger: "text-rose-600 dark:text-rose-400"
1275
- }, kl = {
1276
+ }, $l = {
1276
1277
  normal: "font-normal",
1277
1278
  medium: "font-medium",
1278
1279
  semibold: "font-semibold"
1279
- }, $l = {
1280
+ }, wl = {
1280
1281
  left: "text-left",
1281
1282
  right: "text-right"
1282
- }, Vt = [
1283
+ }, Bt = [
1283
1284
  { value: "xs", name: "Мелкий" },
1284
1285
  { value: "sm", name: "Обычный" },
1285
1286
  { value: "base", name: "Средний" },
1286
1287
  { value: "lg", name: "Крупный" },
1287
1288
  { value: "xl", name: "Очень крупный" }
1288
- ], Bt = [
1289
+ ], It = [
1289
1290
  { value: "default", name: "Основной" },
1290
1291
  { value: "muted", name: "Приглушённый" },
1291
1292
  { value: "primary", name: "Акцент" },
1292
1293
  { value: "success", name: "Успех" },
1293
1294
  { value: "warning", name: "Внимание" },
1294
1295
  { value: "danger", name: "Опасность" }
1295
- ], It = [
1296
+ ], Lt = [
1296
1297
  { value: "normal", name: "Обычное" },
1297
1298
  { value: "medium", name: "Среднее" },
1298
1299
  { value: "semibold", name: "Полужирное" }
1299
- ], Lt = [
1300
+ ], Mt = [
1300
1301
  { value: "left", name: "Слева" },
1301
1302
  { value: "right", name: "Справа" }
1302
- ], gt = (e) => {
1303
- const s = { ...Ct, ...e };
1303
+ ], vt = (e) => {
1304
+ const s = { ..._t, ...e };
1304
1305
  return [
1305
- bl[s.size],
1306
- xl[s.color],
1307
- kl[s.weight],
1308
- $l[s.align]
1306
+ xl[s.size],
1307
+ kl[s.color],
1308
+ $l[s.weight],
1309
+ wl[s.align]
1309
1310
  ].join(" ");
1310
- }, Wt = /^[A-Za-z_$][\w$]*(\.[\w$]+)+$/, wl = /^[A-Za-z_$][\w$]*$/, Cl = /* @__PURE__ */ new Set([
1311
+ }, Gt = /^[A-Za-z_$][\w$]*(\.[\w$]+)+$/, Cl = /^[A-Za-z_$][\w$]*$/, _l = /* @__PURE__ */ new Set([
1311
1312
  "await",
1312
1313
  "break",
1313
1314
  "case",
@@ -1348,19 +1349,19 @@ v + ' кВт·ч<br>выработка за день'`),
1348
1349
  "while",
1349
1350
  "with",
1350
1351
  "yield"
1351
- ]), vt = 10, We = 4, pt = ["a", "b", "c", "d"], _l = (e) => wl.test(e) && !Cl.has(e), Gt = (e, s) => {
1352
+ ]), pt = 10, We = 4, ht = ["a", "b", "c", "d"], Sl = (e) => Cl.test(e) && !_l.has(e), Jt = (e, s) => {
1352
1353
  try {
1353
- const a = Object.keys(s).filter(_l), n = a.map((o) => s[o]);
1354
+ const a = Object.keys(s).filter(Sl), n = a.map((o) => s[o]);
1354
1355
  return new Function(...a, `"use strict"; return (${e});`)(...n);
1355
1356
  } catch {
1356
1357
  return;
1357
1358
  }
1358
1359
  }, at = (e, s, a) => {
1359
1360
  if (!e.trim()) return;
1360
- const n = Gt(e, s);
1361
- return n === void 0 && Wt.test(e) ? a.get(e) : n;
1362
- }, Sl = (e) => e == null || e === "" ? "—" : typeof e == "boolean" ? e ? "да" : "нет" : typeof e == "number" ? Number.isInteger(e) ? String(e) : String(Number(e.toFixed(2))) : String(e), Tl = (e) => e.replace(/<br\s*\/?>/gi, `
1363
- `), st = (e) => typeof e == "number" && !Number.isFinite(e) ? void 0 : e, Al = (e, s) => {
1361
+ const n = Jt(e, s);
1362
+ return n === void 0 && Gt.test(e) ? a.get(e) : n;
1363
+ }, Tl = (e) => e == null || e === "" ? "—" : typeof e == "boolean" ? e ? "да" : "нет" : typeof e == "number" ? Number.isInteger(e) ? String(e) : String(Number(e.toFixed(2))) : String(e), Al = (e) => e.replace(/<br\s*\/?>/gi, `
1364
+ `), st = (e) => typeof e == "number" && !Number.isFinite(e) ? void 0 : e, zl = (e, s) => {
1364
1365
  if (!(e == null || e === "")) {
1365
1366
  if (s === "number") {
1366
1367
  const a = typeof e == "number" ? e : Number.parseFloat(String(e));
@@ -1371,7 +1372,7 @@ v + ' кВт·ч<br>выработка за день'`),
1371
1372
  }, Qe = (e) => {
1372
1373
  const s = typeof e == "number" ? e : Number.parseFloat(String(e));
1373
1374
  return Number.isFinite(s) ? s : 0;
1374
- }, _t = (e) => ({
1375
+ }, St = (e) => ({
1375
1376
  ...e.helpers,
1376
1377
  ...e.roots,
1377
1378
  get: e.get,
@@ -1379,13 +1380,13 @@ v + ' кВт·ч<br>выработка за день'`),
1379
1380
  scale: (s, a = 1, n = 0) => Qe(s) * a + n,
1380
1381
  round: (s, a = 0) => Number(Qe(s).toFixed(a)),
1381
1382
  clamp: (s, a, n) => Math.min(n, Math.max(a, Qe(s)))
1382
- }), Xr = (e, s, a) => {
1383
- const n = { ..._t(s), ...a };
1383
+ }), qr = (e, s, a) => {
1384
+ const n = { ...St(s), ...a };
1384
1385
  return e.slice(0, We).map((t) => st(at(t, n, s)));
1385
- }, zl = (e, s, a, n) => {
1386
- const t = { ..._t(a), ...n };
1386
+ }, El = (e, s, a, n) => {
1387
+ const t = { ...St(a), ...n };
1387
1388
  s.slice(0, We).forEach((d, u) => {
1388
- t[pt[u]] = st(at(d, t, a));
1389
+ t[ht[u]] = st(at(d, t, a));
1389
1390
  });
1390
1391
  let o = st(at(e.value, t, a));
1391
1392
  o === void 0 && (o = t.a), t.v = o, t.a = t.a ?? o;
@@ -1397,11 +1398,11 @@ v + ' кВт·ч<br>выработка за день'`),
1397
1398
  return {
1398
1399
  id: e.id,
1399
1400
  label: e.label.trim() || "Показатель",
1400
- value: Tl(r ?? Sl(o)),
1401
+ value: Al(r ?? Tl(o)),
1401
1402
  raw: o,
1402
- style: { ...Ct, ...e.style }
1403
+ style: { ..._t, ...e.style }
1403
1404
  };
1404
- }, El = (e, s, a, n) => {
1405
+ }, Vl = (e, s, a, n) => {
1405
1406
  var r, d, u, i;
1406
1407
  const t = /* @__PURE__ */ new Set([
1407
1408
  ...Object.keys(e.metrics ?? {}),
@@ -1409,20 +1410,20 @@ v + ' кВт·ч<br>выработка за день'`),
1409
1410
  ]), o = {};
1410
1411
  for (const c of t) {
1411
1412
  const m = ((r = s.metrics) == null ? void 0 : r[c]) ?? ((d = e.metrics) == null ? void 0 : d[c]) ?? [], p = ((u = s.metricArgs) == null ? void 0 : u[c]) ?? ((i = e.metricArgs) == null ? void 0 : i[c]) ?? [];
1412
- o[c] = m.slice(0, vt).map((b) => zl(b, p, a, n));
1413
+ o[c] = m.slice(0, pt).map((b) => El(b, p, a, n));
1413
1414
  }
1414
1415
  return o;
1415
- }, St = (e, s, a) => {
1416
- const n = _t(a), t = {};
1416
+ }, Tt = (e, s, a) => {
1417
+ const n = St(a), t = {};
1417
1418
  for (const o of e.fields) {
1418
1419
  const r = s.bindings[o.key], d = typeof r == "string" ? r : r == null ? void 0 : r.expr, u = typeof r == "object" ? r == null ? void 0 : r.fallback : void 0;
1419
1420
  let i;
1420
- o.formatFor && (n.v = t[o.formatFor]), d && (i = Gt(d, n), i === void 0 && Wt.test(d) && (i = a.get(d)));
1421
- const c = Al(i ?? u ?? o.default, o.type);
1421
+ o.formatFor && (n.v = t[o.formatFor]), d && (i = Jt(d, n), i === void 0 && Gt.test(d) && (i = a.get(d)));
1422
+ const c = zl(i ?? u ?? o.default, o.type);
1422
1423
  t[o.key] = c, n[o.key] = c;
1423
1424
  }
1424
- return t.metrics = El(e, s, a, t), t;
1425
- }, Vl = { class: "glass-inset rounded-xl p-3" }, Bl = { class: "flex items-center gap-2" }, Il = { class: "min-w-0 flex-1" }, Ll = { class: "mt-2 flex flex-col gap-2" }, Ml = /* @__PURE__ */ L({
1425
+ return t.metrics = Vl(e, s, a, t), t;
1426
+ }, Bl = { class: "glass-inset rounded-xl p-3" }, Il = { class: "flex items-center gap-2" }, Ll = { class: "min-w-0 flex-1" }, Ml = { class: "mt-2 flex flex-col gap-2" }, Ol = /* @__PURE__ */ L({
1426
1427
  __name: "BlockMetricCard",
1427
1428
  props: {
1428
1429
  metric: {},
@@ -1432,9 +1433,9 @@ v + ' кВт·ч<br>выработка за день'`),
1432
1433
  emits: ["remove", "open-style", "toggle-field", "dragstart", "dragend", "change", "hover"],
1433
1434
  setup(e, { emit: s }) {
1434
1435
  const a = s, n = (t, o) => a("hover", t, o);
1435
- return (t, o) => (f(), g("div", Vl, [
1436
- l("div", Bl, [
1437
- l("div", Il, [
1436
+ return (t, o) => (f(), g("div", Bl, [
1437
+ l("div", Il, [
1438
+ l("div", Ll, [
1438
1439
  v(le, {
1439
1440
  active: "",
1440
1441
  "hide-message": "",
@@ -1486,11 +1487,11 @@ v + ' кВт·ч<br>выработка за день'`),
1486
1487
  })
1487
1488
  ], 32)
1488
1489
  ]),
1489
- l("div", Ll, [
1490
+ l("div", Ml, [
1490
1491
  v(He, {
1491
1492
  value: e.metric.value,
1492
1493
  args: e.args,
1493
- params: [...H(pt)],
1494
+ params: [...H(ht)],
1494
1495
  label: "Значение",
1495
1496
  onIcon: o[5] || (o[5] = (r) => a("toggle-field", "value")),
1496
1497
  onChange: o[6] || (o[6] = (r) => a("change", { value: r })),
@@ -1499,7 +1500,7 @@ v + ' кВт·ч<br>выработка за день'`),
1499
1500
  v(He, {
1500
1501
  value: e.metric.format,
1501
1502
  args: e.args,
1502
- params: [...H(pt)],
1503
+ params: [...H(ht)],
1503
1504
  prefix: ["v"],
1504
1505
  label: "Формат",
1505
1506
  onIcon: o[7] || (o[7] = (r) => a("toggle-field", "format")),
@@ -1509,7 +1510,7 @@ v + ' кВт·ч<br>выработка за день'`),
1509
1510
  ])
1510
1511
  ]));
1511
1512
  }
1512
- }), Ol = { class: "flex min-h-96 flex-col gap-4" }, Fl = { class: "text-sm text-gray-dark-25 dark:text-gray-main" }, Dl = { class: "font-medium text-gray-dark-40 dark:text-white" }, jl = { class: "glass-inset rounded-md p-3" }, Nl = { class: "grid gap-3 sm:grid-cols-2" }, Rl = { class: "mt-auto flex justify-end" }, Pl = /* @__PURE__ */ L({
1513
+ }), Fl = { class: "flex min-h-96 flex-col gap-4" }, Dl = { class: "text-sm text-gray-dark-25 dark:text-gray-main" }, jl = { class: "font-medium text-gray-dark-40 dark:text-white" }, Nl = { class: "glass-inset rounded-md p-3" }, Rl = { class: "grid gap-3 sm:grid-cols-2" }, Pl = { class: "mt-auto flex justify-end" }, Ul = /* @__PURE__ */ L({
1513
1514
  __name: "BlockMetricStyleDialog",
1514
1515
  props: {
1515
1516
  label: {},
@@ -1518,56 +1519,56 @@ v + ' кВт·ч<br>выработка за день'`),
1518
1519
  },
1519
1520
  emits: ["close", "update"],
1520
1521
  setup(e, { emit: s }) {
1521
- const a = s, n = C(() => ({ ...Ct, ...e.style })), t = (h, k) => {
1522
+ const a = s, n = C(() => ({ ..._t, ...e.style })), t = (h, k) => {
1522
1523
  var _;
1523
1524
  return ((_ = h.find((N) => N.value === k)) == null ? void 0 : _.name) ?? "";
1524
- }, o = C(() => t(Vt, n.value.size)), r = C(() => t(Bt, n.value.color)), d = C(() => t(It, n.value.weight)), u = C(() => t(Lt, n.value.align)), i = (h) => {
1525
+ }, o = C(() => t(Bt, n.value.size)), r = C(() => t(It, n.value.color)), d = C(() => t(Lt, n.value.weight)), u = C(() => t(Mt, n.value.align)), i = (h) => {
1525
1526
  a("update", { ...n.value, ...h });
1526
1527
  }, c = (h) => i({ size: h.value }), m = (h) => i({ color: h.value }), p = (h) => i({ weight: h.value }), b = (h) => i({ align: h.value });
1527
- return (h, k) => (f(), M(Se, {
1528
+ return (h, k) => (f(), O(Se, {
1528
1529
  title: "Стиль показателя",
1529
1530
  size: "md",
1530
1531
  onClose: k[1] || (k[1] = (_) => a("close"))
1531
1532
  }, {
1532
1533
  default: x(() => [
1533
- l("div", Ol, [
1534
- l("p", Fl, [
1534
+ l("div", Fl, [
1535
+ l("p", Dl, [
1535
1536
  k[2] || (k[2] = E(" Показатель: ", -1)),
1536
- l("span", Dl, w(e.label), 1)
1537
+ l("span", jl, w(e.label), 1)
1537
1538
  ]),
1538
- l("div", jl, [
1539
+ l("div", Nl, [
1539
1540
  k[3] || (k[3] = l("span", { class: "block text-xs text-gray-dark-25 dark:text-gray-main" }, "Предпросмотр", -1)),
1540
1541
  l("span", {
1541
- class: F(["mt-1 block whitespace-pre", H(gt)(n.value)])
1542
+ class: M(["mt-1 block whitespace-pre", H(vt)(n.value)])
1542
1543
  }, w(e.preview || "1 234 кВт·ч"), 3)
1543
1544
  ]),
1544
- l("div", Nl, [
1545
+ l("div", Rl, [
1545
1546
  v(ge, {
1546
1547
  "model-value": o.value,
1547
- items: H(Vt),
1548
+ items: H(Bt),
1548
1549
  label: "Размер",
1549
1550
  onChange: c
1550
1551
  }, null, 8, ["model-value", "items"]),
1551
1552
  v(ge, {
1552
1553
  "model-value": r.value,
1553
- items: H(Bt),
1554
+ items: H(It),
1554
1555
  label: "Цвет",
1555
1556
  onChange: m
1556
1557
  }, null, 8, ["model-value", "items"]),
1557
1558
  v(ge, {
1558
1559
  "model-value": d.value,
1559
- items: H(It),
1560
+ items: H(Lt),
1560
1561
  label: "Начертание",
1561
1562
  onChange: p
1562
1563
  }, null, 8, ["model-value", "items"]),
1563
1564
  v(ge, {
1564
1565
  "model-value": u.value,
1565
- items: H(Lt),
1566
+ items: H(Mt),
1566
1567
  label: "Выравнивание",
1567
1568
  onChange: b
1568
1569
  }, null, 8, ["model-value", "items"])
1569
1570
  ]),
1570
- l("div", Rl, [
1571
+ l("div", Pl, [
1571
1572
  v(j, {
1572
1573
  color: "blue",
1573
1574
  onClick: k[0] || (k[0] = (_) => a("close"))
@@ -1583,28 +1584,28 @@ v + ' кВт·ч<br>выработка за день'`),
1583
1584
  _: 1
1584
1585
  }));
1585
1586
  }
1586
- }), Ul = { class: "me-2 flex items-center gap-2" }, Kl = { class: "grid gap-4 md:grid-cols-[180px_minmax(0,1fr)]" }, Hl = {
1587
+ }), Kl = { class: "me-2 flex items-center gap-2" }, Hl = { class: "grid gap-4 md:grid-cols-[180px_minmax(0,1fr)]" }, Wl = {
1587
1588
  class: "flex flex-col gap-1",
1588
1589
  "aria-label": "Блоки"
1589
- }, Wl = ["onClick"], Gl = { class: "grid size-8 shrink-0 place-items-center rounded-md border border-gray-light-10/50 dark:border-white/10" }, Jl = { class: "min-w-0 flex-1 truncate text-sm font-medium" }, Xl = { class: "text-xs text-gray-dark-25 dark:text-gray-main" }, ql = { class: "flex max-h-120 min-w-0 flex-col gap-3 overflow-y-auto pe-1 scrollbar" }, Yl = {
1590
+ }, Gl = ["onClick"], Jl = { class: "grid size-8 shrink-0 place-items-center rounded-md border border-gray-light-10/50 dark:border-white/10" }, Xl = { class: "min-w-0 flex-1 truncate text-sm font-medium" }, ql = { class: "text-xs text-gray-dark-25 dark:text-gray-main" }, Yl = { class: "flex max-h-120 min-w-0 flex-col gap-3 overflow-y-auto pe-1 scrollbar" }, Zl = {
1590
1591
  key: 1,
1591
1592
  class: "glass-inset rounded-xl p-3"
1592
- }, Zl = {
1593
+ }, Ql = {
1593
1594
  key: 0,
1594
1595
  class: "flex gap-2 flex-wrap flex-auto px-2 py-1"
1595
- }, Ql = { class: "relative group" }, en = { class: "select-none" }, tn = ["onClick"], an = {
1596
+ }, en = { class: "relative group" }, tn = { class: "select-none" }, an = ["onClick"], sn = {
1596
1597
  key: 2,
1597
1598
  class: "flex flex-col gap-2"
1598
- }, sn = { class: "flex items-center justify-between gap-2" }, ln = {
1599
+ }, ln = { class: "flex items-center justify-between gap-2" }, nn = {
1599
1600
  key: 0,
1600
1601
  class: "glass-inset rounded-xl p-3 text-sm text-gray-dark-25 dark:text-gray-main"
1601
- }, nn = {
1602
+ }, on = {
1602
1603
  key: 1,
1603
1604
  class: "flex flex-col gap-2"
1604
- }, on = ["onDragover", "onDrop"], rn = {
1605
+ }, rn = ["onDragover", "onDrop"], dn = {
1605
1606
  key: 3,
1606
1607
  class: "glass-inset rounded-xl p-3"
1607
- }, dn = { class: "relative max-h-120 overflow-auto scrollbar" }, Jt = /* @__PURE__ */ L({
1608
+ }, cn = { class: "relative max-h-120 overflow-auto scrollbar" }, Xt = /* @__PURE__ */ L({
1608
1609
  __name: "BlockDataSettings",
1609
1610
  props: {
1610
1611
  definition: {},
@@ -1647,9 +1648,9 @@ v + ' кВт·ч<br>выработка за день'`),
1647
1648
  for (const [S, P] of Object.entries(e.definition.metrics ?? {}))
1648
1649
  $.metrics[S] || ($.metrics[S] = JSON.parse(JSON.stringify(P)));
1649
1650
  return $;
1650
- }, r = O(o(e.config)), d = O("general"), u = O(!1), i = O(!1), c = O(null), m = O(null), p = O(null), b = O(null), h = O(null), k = O(null);
1651
+ }, r = F(o(e.config)), d = F("general"), u = F(!1), i = F(!1), c = F(null), m = F(null), p = F(null), b = F(null), h = F(null), k = F(null);
1651
1652
  let _ = JSON.stringify(r.value), N = null;
1652
- const q = C(() => St(e.definition, r.value, e.context)), xe = C(() => q.value.metrics ?? {}), Te = C(
1653
+ const q = C(() => Tt(e.definition, r.value, e.context)), xe = C(() => q.value.metrics ?? {}), Te = C(
1653
1654
  () => n.map((y) => ({
1654
1655
  ...y,
1655
1656
  count: e.definition.fields.filter(($) => ($.block ?? "general") === y.key).length
@@ -1736,7 +1737,7 @@ v + ' кВт·ч<br>выработка за день'`),
1736
1737
  }, U = () => `metric-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 6)}`, Ce = () => {
1737
1738
  var $;
1738
1739
  const y = ($ = r.value.metrics) == null ? void 0 : $[d.value];
1739
- !V.value || !y || y.length >= vt || y.push({ id: U(), label: "Показатель", value: "", format: "" });
1740
+ !V.value || !y || y.length >= pt || y.push({ id: U(), label: "Показатель", value: "", format: "" });
1740
1741
  }, ye = (y) => {
1741
1742
  var S;
1742
1743
  const $ = (S = r.value.metrics) == null ? void 0 : S[d.value];
@@ -1763,26 +1764,26 @@ v + ' кВт·ч<br>выработка за день'`),
1763
1764
  if (h.value = null, k.value = null, $ === null || $ === y) return;
1764
1765
  const S = [...oe.value], [P] = S.splice($, 1);
1765
1766
  S.splice(y, 0, P), r.value.metrics = { ...r.value.metrics ?? {}, [d.value]: S };
1766
- }, oa = () => {
1767
+ }, ia = () => {
1767
1768
  h.value = null, k.value = null;
1768
- }, ia = (y) => {
1769
+ }, ra = (y) => {
1769
1770
  var $, S;
1770
1771
  return ((S = ($ = xe.value[d.value]) == null ? void 0 : $.find((P) => P.id === y.id)) == null ? void 0 : S.value) ?? "";
1771
1772
  }, Ze = (y, $) => {
1772
1773
  Object.assign(y, $);
1773
- }, ra = () => {
1774
+ }, da = () => {
1774
1775
  const y = JSON.stringify(r.value, null, 2), $ = new Blob([y], { type: "application/json" }), S = URL.createObjectURL($), P = document.createElement("a");
1775
1776
  P.href = S, P.download = `${e.definition.type}.json`, P.click(), URL.revokeObjectURL(S);
1776
- }, da = () => {
1777
+ }, ca = () => {
1777
1778
  var y;
1778
1779
  return (y = b.value) == null ? void 0 : y.click();
1779
- }, zt = (y) => typeof y == "object" && y !== null && !Array.isArray(y), ca = async (y) => {
1780
+ }, Et = (y) => typeof y == "object" && y !== null && !Array.isArray(y), ua = async (y) => {
1780
1781
  var P;
1781
1782
  const $ = y.target, S = (P = $.files) == null ? void 0 : P[0];
1782
1783
  if (S)
1783
1784
  try {
1784
1785
  const ie = JSON.parse(await S.text());
1785
- if (!zt(ie) || typeof ie.type != "string" || !zt(ie.bindings)) return;
1786
+ if (!Et(ie) || typeof ie.type != "string" || !Et(ie.bindings)) return;
1786
1787
  r.value = {
1787
1788
  ...r.value,
1788
1789
  ...ie,
@@ -1793,13 +1794,13 @@ v + ' кВт·ч<br>выработка за день'`),
1793
1794
  $.value = "";
1794
1795
  }
1795
1796
  };
1796
- return Je(me), (y, $) => (f(), M(Se, {
1797
+ return Je(me), (y, $) => (f(), O(Se, {
1797
1798
  title: "Настройка блока",
1798
1799
  size: "lg",
1799
1800
  onClose: Pe
1800
1801
  }, {
1801
1802
  "header-btn": x(() => [
1802
- l("div", Ul, [
1803
+ l("div", Kl, [
1803
1804
  v(j, {
1804
1805
  type: "icon",
1805
1806
  size: "sm",
@@ -1820,7 +1821,7 @@ v + ' кВт·ч<br>выработка за день'`),
1820
1821
  size: "sm",
1821
1822
  "aria-label": "Импорт",
1822
1823
  title: "Импорт",
1823
- onClick: da
1824
+ onClick: ca
1824
1825
  }, {
1825
1826
  default: x(() => [
1826
1827
  v(I, {
@@ -1835,7 +1836,7 @@ v + ' кВт·ч<br>выработка за день'`),
1835
1836
  size: "sm",
1836
1837
  "aria-label": "Экспорт",
1837
1838
  title: "Экспорт",
1838
- onClick: ra
1839
+ onClick: da
1839
1840
  }, {
1840
1841
  default: x(() => [
1841
1842
  v(I, {
@@ -1854,28 +1855,28 @@ v + ' кВт·ч<br>выработка за день'`),
1854
1855
  type: "file",
1855
1856
  accept: "application/json,.json",
1856
1857
  class: "hidden",
1857
- onChange: ca
1858
+ onChange: ua
1858
1859
  }, null, 544),
1859
- l("div", Kl, [
1860
- l("nav", Hl, [
1860
+ l("div", Hl, [
1861
+ l("nav", Wl, [
1861
1862
  (f(!0), g(D, null, K(Te.value, (S) => (f(), g("button", {
1862
1863
  key: S.key,
1863
1864
  type: "button",
1864
- class: F(["flex items-center gap-2 rounded-md px-3 py-2 text-left transition", d.value === S.key ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
1865
+ class: M(["flex items-center gap-2 rounded-md px-3 py-2 text-left transition", d.value === S.key ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
1865
1866
  onClick: (P) => d.value = S.key
1866
1867
  }, [
1867
- l("span", Gl, [
1868
+ l("span", Jl, [
1868
1869
  v(I, {
1869
1870
  name: S.icon,
1870
1871
  size: 16
1871
1872
  }, null, 8, ["name"])
1872
1873
  ]),
1873
- l("span", Jl, w(S.label), 1),
1874
- l("span", Xl, w(S.count), 1)
1875
- ], 10, Wl))), 128))
1874
+ l("span", Xl, w(S.label), 1),
1875
+ l("span", ql, w(S.count), 1)
1876
+ ], 10, Gl))), 128))
1876
1877
  ]),
1877
- l("div", ql, [
1878
- Ne.value ? (f(!0), g(D, { key: 0 }, K(Le.value, (S) => (f(), M(Et, {
1878
+ l("div", Yl, [
1879
+ Ne.value ? (f(!0), g(D, { key: 0 }, K(Le.value, (S) => (f(), O(Vt, {
1879
1880
  key: S.key,
1880
1881
  field: S,
1881
1882
  "model-value": Ae(S),
@@ -1888,7 +1889,7 @@ v + ' кВт·ч<br>выработка за день'`),
1888
1889
  "onUpdate:format": (P) => J(S, P),
1889
1890
  onPick: (P) => Ue(S.key)
1890
1891
  }, null, 8, ["field", "model-value", "format-value", "has-format", "placeholder", "placeholder-format", "onUpdate:modelValue", "onUpdate:format", "onPick"]))), 128)) : (f(), g(D, { key: 1 }, [
1891
- ne.value ? (f(), M(Et, {
1892
+ ne.value ? (f(), O(Vt, {
1892
1893
  key: 0,
1893
1894
  field: ne.value,
1894
1895
  "model-value": Ae(ne.value),
@@ -1901,8 +1902,8 @@ v + ' кВт·ч<br>выработка за день'`),
1901
1902
  "onUpdate:format": $[2] || ($[2] = (S) => J(ne.value, S)),
1902
1903
  onPick: $[3] || ($[3] = (S) => Ue(ne.value.key))
1903
1904
  }, null, 8, ["field", "model-value", "format-value", "has-format", "placeholder", "placeholder-format"])) : T("", !0),
1904
- V.value ? (f(), g("section", Yl, [
1905
- v(wt, {
1905
+ V.value ? (f(), g("section", Zl, [
1906
+ v(Ct, {
1906
1907
  active: !!Y.value.length,
1907
1908
  "icon-disabled": Y.value.length >= H(We),
1908
1909
  label: "Аргументы",
@@ -1910,13 +1911,13 @@ v + ' кВт·ч<br>выработка за день'`),
1910
1911
  onIcon: $[4] || ($[4] = (S) => qe())
1911
1912
  }, {
1912
1913
  default: x(() => [
1913
- Y.value.length ? (f(), g("div", Zl, [
1914
+ Y.value.length ? (f(), g("div", Ql, [
1914
1915
  (f(!0), g(D, null, K(Y.value, (S, P) => (f(), g("div", {
1915
1916
  key: S,
1916
1917
  class: "flex items-center rounded-full bg-gray-light-10 dark:bg-gray-dark-40/50 px-2 py-1 text-xs"
1917
1918
  }, [
1918
- l("div", Ql, [
1919
- l("span", en, w(S), 1)
1919
+ l("div", en, [
1920
+ l("span", tn, w(S), 1)
1920
1921
  ]),
1921
1922
  P || Y.value.length < 2 ? (f(), g("button", {
1922
1923
  key: 0,
@@ -1928,22 +1929,22 @@ v + ' кВт·ч<br>выработка за день'`),
1928
1929
  name: "close",
1929
1930
  class: "size-5"
1930
1931
  })
1931
- ], 8, tn)) : T("", !0)
1932
+ ], 8, an)) : T("", !0)
1932
1933
  ]))), 128))
1933
1934
  ])) : T("", !0)
1934
1935
  ]),
1935
1936
  _: 1
1936
1937
  }, 8, ["active", "icon-disabled"])
1937
1938
  ])) : T("", !0),
1938
- V.value ? (f(), g("section", an, [
1939
- l("div", sn, [
1939
+ V.value ? (f(), g("section", sn, [
1940
+ l("div", ln, [
1940
1941
  $[8] || ($[8] = l("h4", { class: "text-sm font-semibold" }, "Показатели", -1)),
1941
1942
  v(j, {
1942
1943
  type: "icon",
1943
1944
  size: "sm",
1944
1945
  "aria-label": "Добавить показатель",
1945
1946
  title: "Добавить показатель",
1946
- disabled: oe.value.length >= H(vt),
1947
+ disabled: oe.value.length >= H(pt),
1947
1948
  onClick: Ce
1948
1949
  }, {
1949
1950
  default: x(() => [
@@ -1955,14 +1956,14 @@ v + ' кВт·ч<br>выработка за день'`),
1955
1956
  _: 1
1956
1957
  }, 8, ["disabled"])
1957
1958
  ]),
1958
- oe.value.length ? (f(), g("div", nn, [
1959
+ oe.value.length ? (f(), g("div", on, [
1959
1960
  (f(!0), g(D, null, K(oe.value, (S, P) => (f(), g("div", {
1960
1961
  key: S.id,
1961
- class: F(["rounded-xl transition", { "ring-1 ring-cyan-main/50": k.value === P }]),
1962
+ class: M(["rounded-xl transition", { "ring-1 ring-cyan-main/50": k.value === P }]),
1962
1963
  onDragover: Q((ie) => Ye(P), ["prevent"]),
1963
1964
  onDrop: Q((ie) => ct(P), ["prevent"])
1964
1965
  }, [
1965
- v(Ml, {
1966
+ v(Ol, {
1966
1967
  metric: S,
1967
1968
  index: P,
1968
1969
  args: Y.value,
@@ -1970,14 +1971,14 @@ v + ' кВт·ч<br>выработка за день'`),
1970
1971
  onOpenStyle: (ie) => ue(S),
1971
1972
  onToggleField: (ie) => ce(S, ie),
1972
1973
  onDragstart: Z,
1973
- onDragend: oa,
1974
+ onDragend: ia,
1974
1975
  onChange: (ie) => Ze(S, ie),
1975
1976
  onHover: we
1976
1977
  }, null, 8, ["metric", "index", "args", "onRemove", "onOpenStyle", "onToggleField", "onChange"])
1977
- ], 42, on))), 128))
1978
- ])) : (f(), g("p", ln, "Показателей нет. Добавьте первый."))
1978
+ ], 42, rn))), 128))
1979
+ ])) : (f(), g("p", nn, "Показателей нет. Добавьте первый."))
1979
1980
  ])) : T("", !0),
1980
- ke.value ? (f(), g("div", rn, [
1981
+ ke.value ? (f(), g("div", dn, [
1981
1982
  v(ge, {
1982
1983
  "model-value": Be.value,
1983
1984
  items: Xe.value,
@@ -1988,23 +1989,23 @@ v + ' кВт·ч<br>выработка за день'`),
1988
1989
  ], 64))
1989
1990
  ])
1990
1991
  ]),
1991
- m.value ? (f(), M(Pl, {
1992
+ m.value ? (f(), O(Ul, {
1992
1993
  key: 0,
1993
1994
  label: m.value.label,
1994
1995
  style: Ve(m.value.style),
1995
- preview: ia(m.value),
1996
+ preview: ra(m.value),
1996
1997
  onUpdate: ee,
1997
1998
  onClose: $[5] || ($[5] = (S) => m.value = null)
1998
1999
  }, null, 8, ["label", "style", "preview"])) : T("", !0),
1999
- i.value ? (f(), M(Se, {
2000
+ i.value ? (f(), O(Se, {
2000
2001
  key: 1,
2001
2002
  title: "Выбор данных",
2002
2003
  size: "md",
2003
2004
  onClose: $[6] || ($[6] = (S) => i.value = !1)
2004
2005
  }, {
2005
2006
  default: x(() => [
2006
- l("div", dn, [
2007
- v($t, {
2007
+ l("div", cn, [
2008
+ v(wt, {
2008
2009
  items: e.context.roots,
2009
2010
  onClick: dt
2010
2011
  }, null, 8, ["items"])
@@ -2012,7 +2013,7 @@ v + ' кВт·ч<br>выработка за день'`),
2012
2013
  ]),
2013
2014
  _: 1
2014
2015
  })) : T("", !0),
2015
- u.value ? (f(), M(cl, {
2016
+ u.value ? (f(), O(ul, {
2016
2017
  key: 2,
2017
2018
  onClose: $[7] || ($[7] = (S) => u.value = !1)
2018
2019
  })) : T("", !0)
@@ -2020,7 +2021,7 @@ v + ' кВт·ч<br>выработка за день'`),
2020
2021
  _: 1
2021
2022
  }));
2022
2023
  }
2023
- }), cn = /* @__PURE__ */ L({
2024
+ }), un = /* @__PURE__ */ L({
2024
2025
  __name: "BlockHost",
2025
2026
  props: {
2026
2027
  definition: {},
@@ -2030,15 +2031,15 @@ v + ' кВт·ч<br>выработка за день'`),
2030
2031
  },
2031
2032
  emits: ["update:config", "remove"],
2032
2033
  setup(e, { emit: s }) {
2033
- const a = s, n = O(!1), t = C(() => e.definition.component), o = C(() => St(e.definition, e.config, e.context)), r = (d) => {
2034
+ const a = s, n = F(!1), t = C(() => e.definition.component), o = C(() => Tt(e.definition, e.config, e.context)), r = (d) => {
2034
2035
  a("update:config", d);
2035
2036
  };
2036
2037
  return (d, u) => (f(), g(D, null, [
2037
- (f(), M(Ee(t.value), X(o.value, {
2038
+ (f(), O(Ee(t.value), X(o.value, {
2038
2039
  editable: "",
2039
2040
  onSettings: u[0] || (u[0] = (i) => n.value = !0)
2040
2041
  }), null, 16)),
2041
- n.value ? (f(), M(Jt, {
2042
+ n.value ? (f(), O(Xt, {
2042
2043
  key: 0,
2043
2044
  definition: e.definition,
2044
2045
  config: e.config,
@@ -2050,13 +2051,13 @@ v + ' кВт·ч<br>выработка за день'`),
2050
2051
  }, null, 8, ["definition", "config", "context", "removable"])) : T("", !0)
2051
2052
  ], 64));
2052
2053
  }
2053
- }), un = { class: "grid gap-3 sm:grid-cols-2" }, mn = ["onClick"], fn = { class: "grid size-10 place-items-center rounded-lg border border-cyan-main/20 bg-cyan-main/10 text-cyan-main" }, gn = { class: "mt-3 block text-base font-semibold" }, vn = {
2054
+ }), mn = { class: "grid gap-3 sm:grid-cols-2" }, fn = ["onClick"], gn = { class: "grid size-10 place-items-center rounded-lg border border-cyan-main/20 bg-cyan-main/10 text-cyan-main" }, vn = { class: "mt-3 block text-base font-semibold" }, pn = {
2054
2055
  key: 0,
2055
2056
  class: "mt-1 block text-sm text-gray-dark-25 dark:text-gray-main"
2056
- }, pn = {
2057
+ }, hn = {
2057
2058
  key: 0,
2058
2059
  class: "py-8 text-center text-sm text-gray-dark-25 dark:text-gray-main"
2059
- }, qr = /* @__PURE__ */ L({
2060
+ }, Yr = /* @__PURE__ */ L({
2060
2061
  __name: "BlockPicker",
2061
2062
  props: {
2062
2063
  definitions: {}
@@ -2064,35 +2065,35 @@ v + ' кВт·ч<br>выработка за день'`),
2064
2065
  emits: ["close", "select"],
2065
2066
  setup(e, { emit: s }) {
2066
2067
  const a = s;
2067
- return (n, t) => (f(), M(Se, {
2068
+ return (n, t) => (f(), O(Se, {
2068
2069
  title: "Добавить блок",
2069
2070
  size: "md",
2070
2071
  onClose: t[0] || (t[0] = (o) => a("close"))
2071
2072
  }, {
2072
2073
  default: x(() => [
2073
- l("div", un, [
2074
+ l("div", mn, [
2074
2075
  (f(!0), g(D, null, K(e.definitions, (o) => (f(), g("button", {
2075
2076
  key: o.type,
2076
2077
  type: "button",
2077
2078
  class: "glass-inset flex flex-col items-start rounded-xl p-4 text-left transition hover:border-cyan-main/30 hover:bg-cyan-main/5",
2078
2079
  onClick: (r) => a("select", o.type)
2079
2080
  }, [
2080
- l("span", fn, [
2081
+ l("span", gn, [
2081
2082
  v(I, {
2082
2083
  name: o.icon ?? "box",
2083
2084
  size: 20
2084
2085
  }, null, 8, ["name"])
2085
2086
  ]),
2086
- l("span", gn, w(o.name), 1),
2087
- o.description ? (f(), g("span", vn, w(o.description), 1)) : T("", !0)
2088
- ], 8, mn))), 128))
2087
+ l("span", vn, w(o.name), 1),
2088
+ o.description ? (f(), g("span", pn, w(o.description), 1)) : T("", !0)
2089
+ ], 8, fn))), 128))
2089
2090
  ]),
2090
- e.definitions.length ? T("", !0) : (f(), g("p", pn, " Пока нет доступных блоков. "))
2091
+ e.definitions.length ? T("", !0) : (f(), g("p", hn, " Пока нет доступных блоков. "))
2091
2092
  ]),
2092
2093
  _: 1
2093
2094
  }));
2094
2095
  }
2095
- }), Yr = /* @__PURE__ */ L({
2096
+ }), Zr = /* @__PURE__ */ L({
2096
2097
  __name: "BlockView",
2097
2098
  props: {
2098
2099
  definition: {},
@@ -2104,7 +2105,7 @@ v + ' кВт·ч<br>выработка за день'`),
2104
2105
  emits: ["update:config", "remove"],
2105
2106
  setup(e, { emit: s }) {
2106
2107
  const a = s, n = C(() => e.provider.createContext(e.source));
2107
- return (t, o) => (f(), M(cn, {
2108
+ return (t, o) => (f(), O(un, {
2108
2109
  definition: e.definition,
2109
2110
  config: e.config,
2110
2111
  context: n.value,
@@ -2113,7 +2114,7 @@ v + ' кВт·ч<br>выработка за день'`),
2113
2114
  onRemove: o[1] || (o[1] = (r) => a("remove"))
2114
2115
  }, null, 8, ["definition", "config", "context", "removable"]));
2115
2116
  }
2116
- }), hn = /* @__PURE__ */ L({
2117
+ }), yn = /* @__PURE__ */ L({
2117
2118
  inheritAttrs: !1,
2118
2119
  __name: "BlockShell",
2119
2120
  props: {
@@ -2125,13 +2126,13 @@ v + ' кВт·ч<br>выработка за день'`),
2125
2126
  },
2126
2127
  emits: ["update:config"],
2127
2128
  setup(e, { emit: s }) {
2128
- const a = s, n = O(!1), t = C(() => e.definition.component);
2129
+ const a = s, n = F(!1), t = C(() => e.definition.component);
2129
2130
  return (o, r) => (f(), g(D, null, [
2130
- (f(), M(Ee(t.value), X(o.$attrs, {
2131
+ (f(), O(Ee(t.value), X(o.$attrs, {
2131
2132
  editable: e.editable,
2132
2133
  onSettings: r[0] || (r[0] = (d) => n.value = !0)
2133
2134
  }), null, 16, ["editable"])),
2134
- n.value ? (f(), M(Jt, {
2135
+ n.value ? (f(), O(Xt, {
2135
2136
  key: 0,
2136
2137
  definition: e.definition,
2137
2138
  config: e.config,
@@ -2142,14 +2143,14 @@ v + ' кВт·ч<br>выработка за день'`),
2142
2143
  }, null, 8, ["definition", "config", "context", "removable"])) : T("", !0)
2143
2144
  ], 64));
2144
2145
  }
2145
- }), yn = { class: "flex flex-col gap-3" }, bn = {
2146
+ }), bn = { class: "flex flex-col gap-3" }, xn = {
2146
2147
  key: 0,
2147
2148
  class: "text-sm text-red-500"
2148
- }, xn = { class: "flex justify-end gap-2" }, Zr = /* @__PURE__ */ L({
2149
+ }, kn = { class: "flex justify-end gap-2" }, Qr = /* @__PURE__ */ L({
2149
2150
  __name: "BlockImport",
2150
2151
  emits: ["close", "import"],
2151
2152
  setup(e, { emit: s }) {
2152
- const a = s, n = O(""), t = O(""), o = (u) => typeof u == "object" && u !== null && !Array.isArray(u), r = () => {
2153
+ const a = s, n = F(""), t = F(""), o = (u) => typeof u == "object" && u !== null && !Array.isArray(u), r = () => {
2153
2154
  try {
2154
2155
  const u = JSON.parse(n.value);
2155
2156
  return !o(u) || typeof u.type != "string" || !o(u.bindings) ? (t.value = "Нужен JSON блока с полями type и bindings.", null) : {
@@ -2169,13 +2170,13 @@ v + ' кВт·ч<br>выработка за день'`),
2169
2170
  const u = r();
2170
2171
  u && (a("import", u), a("close"));
2171
2172
  };
2172
- return (u, i) => (f(), M(Se, {
2173
+ return (u, i) => (f(), O(Se, {
2173
2174
  title: "Импорт блока",
2174
2175
  size: "md",
2175
2176
  onClose: i[2] || (i[2] = (c) => a("close"))
2176
2177
  }, {
2177
2178
  default: x(() => [
2178
- l("div", yn, [
2179
+ l("div", bn, [
2179
2180
  i[5] || (i[5] = l("p", { class: "text-sm text-gray-dark-25 dark:text-gray-main" }, " Вставь JSON, который был скопирован кнопкой «Экспорт». ", -1)),
2180
2181
  ot(l("textarea", {
2181
2182
  "onUpdate:modelValue": i[0] || (i[0] = (c) => n.value = c),
@@ -2183,10 +2184,10 @@ v + ' кВт·ч<br>выработка за день'`),
2183
2184
  spellcheck: "false",
2184
2185
  placeholder: '{"type":"energy-flow","bindings":{...}}'
2185
2186
  }, null, 512), [
2186
- [yt, n.value]
2187
+ [bt, n.value]
2187
2188
  ]),
2188
- t.value ? (f(), g("p", bn, w(t.value), 1)) : T("", !0),
2189
- l("div", xn, [
2189
+ t.value ? (f(), g("p", xn, w(t.value), 1)) : T("", !0),
2190
+ l("div", kn, [
2190
2191
  v(j, {
2191
2192
  color: "gray",
2192
2193
  variant: "outline",
@@ -2212,25 +2213,25 @@ v + ' кВт·ч<br>выработка за день'`),
2212
2213
  _: 1
2213
2214
  }));
2214
2215
  }
2215
- }), kn = {
2216
+ }), $n = {
2216
2217
  key: 0,
2217
2218
  class: "mb-4 flex items-start justify-between gap-3"
2218
- }, $n = {
2219
+ }, wn = {
2219
2220
  key: 0,
2220
2221
  class: "min-w-0"
2221
- }, wn = {
2222
+ }, Cn = {
2222
2223
  key: 0,
2223
2224
  class: "text-lg font-semibold text-gray-dark-30 dark:text-white"
2224
- }, Cn = {
2225
+ }, _n = {
2225
2226
  key: 1,
2226
2227
  class: "mt-1 text-sm text-gray-dark-25 dark:text-gray-main"
2227
- }, _n = {
2228
+ }, Sn = {
2228
2229
  key: 1,
2229
2230
  class: "ml-auto shrink-0"
2230
- }, Sn = ["inert"], Tn = {
2231
+ }, Tn = ["inert"], An = {
2231
2232
  key: 1,
2232
2233
  class: "mt-4 border-t border-gray-light-10/70 pt-4 dark:border-white/10"
2233
- }, An = /* @__PURE__ */ L({
2234
+ }, zn = /* @__PURE__ */ L({
2234
2235
  __name: "VCard",
2235
2236
  props: {
2236
2237
  variant: { default: "glass" },
@@ -2265,17 +2266,17 @@ v + ' кВт·ч<br>выработка за день'`),
2265
2266
  n[e.tone],
2266
2267
  e.hover ? "hover:border-cyan-main/25 hover:shadow-cyan-glow" : ""
2267
2268
  ]);
2268
- return (o, r) => (f(), M(Ee(e.as), {
2269
- class: F(t.value),
2269
+ return (o, r) => (f(), O(Ee(e.as), {
2270
+ class: M(t.value),
2270
2271
  "aria-disabled": e.disabled || void 0
2271
2272
  }, {
2272
2273
  default: x(() => [
2273
- e.title || e.subtitle || o.$slots.header ? (f(), g("div", kn, [
2274
- e.title || e.subtitle ? (f(), g("div", $n, [
2275
- e.title ? (f(), g("h3", wn, w(e.title), 1)) : T("", !0),
2276
- e.subtitle ? (f(), g("p", Cn, w(e.subtitle), 1)) : T("", !0)
2274
+ e.title || e.subtitle || o.$slots.header ? (f(), g("div", $n, [
2275
+ e.title || e.subtitle ? (f(), g("div", wn, [
2276
+ e.title ? (f(), g("h3", Cn, w(e.title), 1)) : T("", !0),
2277
+ e.subtitle ? (f(), g("p", _n, w(e.subtitle), 1)) : T("", !0)
2277
2278
  ])) : T("", !0),
2278
- o.$slots.header ? (f(), g("div", _n, [
2279
+ o.$slots.header ? (f(), g("div", Sn, [
2279
2280
  B(o.$slots, "header")
2280
2281
  ])) : T("", !0)
2281
2282
  ])) : T("", !0),
@@ -2284,18 +2285,18 @@ v + ' кВт·ч<br>выработка за день'`),
2284
2285
  class: "max-w-full"
2285
2286
  }, [
2286
2287
  B(o.$slots, "default")
2287
- ], 8, Sn),
2288
- o.$slots.footer ? (f(), g("div", Tn, [
2288
+ ], 8, Tn),
2289
+ o.$slots.footer ? (f(), g("div", An, [
2289
2290
  B(o.$slots, "footer")
2290
2291
  ])) : T("", !0)
2291
2292
  ]),
2292
2293
  _: 3
2293
2294
  }, 8, ["class", "aria-disabled"]));
2294
2295
  }
2295
- }), zn = { class: "flex items-center gap-2" }, En = ["viewBox"], Vn = ["id", "d"], Bn = ["d"], In = ["d"], Ln = ["d"], Mn = ["dur", "begin", "keyPoints"], On = ["href"], Fn = ["dur", "begin"], Dn = { class: "relative grid h-full grid-cols-2 grid-rows-3 gap-3 lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]" }, jn = { class: "flex items-center gap-2" }, Nn = { class: "min-w-0 flex-1 truncate text-sm font-semibold" }, Rn = {
2296
+ }), En = { class: "flex items-center gap-2" }, Vn = ["viewBox"], Bn = ["id", "d"], In = ["d"], Ln = ["d"], Mn = ["d"], On = ["dur", "begin", "keyPoints"], Fn = ["href"], Dn = ["dur", "begin"], jn = { class: "relative grid h-full grid-cols-2 grid-rows-3 gap-3 lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]" }, Nn = { class: "flex items-center gap-2" }, Rn = { class: "min-w-0 flex-1 truncate text-sm font-semibold" }, Pn = {
2296
2297
  key: 0,
2297
2298
  class: "flex flex-col gap-2"
2298
- }, Pn = { class: "block text-xs text-gray-dark-25 dark:text-gray-main" }, Un = { class: "col-span-2 row-start-2 grid place-items-center lg:col-span-1 lg:col-start-2 lg:row-span-3 lg:self-center" }, Kn = { class: "relative" }, Hn = { class: "flex items-center gap-2" }, Wn = { class: "grid size-9 place-items-center rounded-lg bg-cyan-main/15" }, Gn = { class: "text-sm font-semibold text-gray-dark-30 dark:text-white" }, Jn = { class: "mt-3" }, Xn = { class: "whitespace-pre-line text-2xl font-bold text-gray-dark-40 dark:text-white" }, qn = { class: "ml-1 text-xs text-gray-dark-25 dark:text-gray-main" }, Yn = { class: "mt-3 grid grid-cols-2 gap-2" }, Zn = { class: "min-w-0 truncate text-xs text-gray-dark-25 dark:text-gray-main" }, Qn = { class: "glass-inset mt-2 rounded-md px-3 py-2" }, eo = { class: "flex items-center justify-between gap-2 text-xs" }, to = { class: "whitespace-pre-line font-semibold" }, ao = { class: "mt-2 h-1.5 overflow-hidden rounded-full bg-gray-light-10/70 dark:bg-white/10" }, so = /* @__PURE__ */ L({
2299
+ }, Un = { class: "block text-xs text-gray-dark-25 dark:text-gray-main" }, Kn = { class: "col-span-2 row-start-2 grid place-items-center lg:col-span-1 lg:col-start-2 lg:row-span-3 lg:self-center" }, Hn = { class: "relative" }, Wn = { class: "flex items-center gap-2" }, Gn = { class: "grid size-9 place-items-center rounded-lg bg-cyan-main/15" }, Jn = { class: "text-sm font-semibold text-gray-dark-30 dark:text-white" }, Xn = { class: "mt-3" }, qn = { class: "whitespace-pre-line text-2xl font-bold text-gray-dark-40 dark:text-white" }, Yn = { class: "ml-1 text-xs text-gray-dark-25 dark:text-gray-main" }, Zn = { class: "mt-3 grid grid-cols-2 gap-2" }, Qn = { class: "min-w-0 truncate text-xs text-gray-dark-25 dark:text-gray-main" }, eo = { class: "glass-inset mt-2 rounded-md px-3 py-2" }, to = { class: "flex items-center justify-between gap-2 text-xs" }, ao = { class: "whitespace-pre-line font-semibold" }, so = { class: "mt-2 h-1.5 overflow-hidden rounded-full bg-gray-light-10/70 dark:bg-white/10" }, lo = /* @__PURE__ */ L({
2299
2300
  __name: "EnergyFlowCard",
2300
2301
  props: {
2301
2302
  title: { default: "Сетевой инвертор" },
@@ -2331,7 +2332,7 @@ v + ' кВт·ч<br>выработка за день'`),
2331
2332
  }, u = (G, J) => {
2332
2333
  const z = typeof G == "number" ? G : Number.parseFloat(String(G));
2333
2334
  return Number.isFinite(z) ? z : J;
2334
- }, i = C(() => u(d("solar", "solar-power", 0), e.solarPower)), c = C(() => u(d("grid", "grid-power", 0), e.gridPower)), m = C(() => u(d("battery", "battery-power", 0), e.batteryPower)), p = C(() => u(d("battery", "battery-soc", 1), e.batterySoc)), b = C(() => u(d("house", "house-load", 0), e.loadPower)), h = C(() => i.value > 0 && e.solarFlow !== "idle"), k = C(() => e.solarFlow === "reverse"), _ = C(() => c.value !== 0 || ["import", "export"].includes(e.gridFlow)), N = C(() => m.value !== 0 || ["charge", "discharge"].includes(e.batteryFlow)), q = C(() => e.gridFlow === "export" ? !0 : e.gridFlow === "import" ? !1 : c.value < 0), xe = C(() => e.batteryFlow === "charge" ? !0 : e.batteryFlow === "discharge" ? !1 : m.value > 0), Te = C(() => b.value > 0 && e.houseFlow !== "idle"), A = C(() => e.houseFlow !== "reverse"), V = C(() => o(b.value)), W = C(() => r("inverter")), ne = za(), Ne = C(() => ne.value === "reduce"), ke = C(() => [
2335
+ }, i = C(() => u(d("solar", "solar-power", 0), e.solarPower)), c = C(() => u(d("grid", "grid-power", 0), e.gridPower)), m = C(() => u(d("battery", "battery-power", 0), e.batteryPower)), p = C(() => u(d("battery", "battery-soc", 1), e.batterySoc)), b = C(() => u(d("house", "house-load", 0), e.loadPower)), h = C(() => i.value > 0 && e.solarFlow !== "idle"), k = C(() => e.solarFlow === "reverse"), _ = C(() => c.value !== 0 || ["import", "export"].includes(e.gridFlow)), N = C(() => m.value !== 0 || ["charge", "discharge"].includes(e.batteryFlow)), q = C(() => e.gridFlow === "export" ? !0 : e.gridFlow === "import" ? !1 : c.value < 0), xe = C(() => e.batteryFlow === "charge" ? !0 : e.batteryFlow === "discharge" ? !1 : m.value > 0), Te = C(() => b.value > 0 && e.houseFlow !== "idle"), A = C(() => e.houseFlow !== "reverse"), V = C(() => o(b.value)), W = C(() => r("inverter")), ne = Ea(), Ne = C(() => ne.value === "reduce"), ke = C(() => [
2335
2336
  { id: "solar", active: h.value, reverse: k.value, speed: n(i.value) },
2336
2337
  { id: "battery", active: N.value, reverse: xe.value, speed: n(m.value) },
2337
2338
  { id: "grid", active: _.value, reverse: q.value, speed: n(c.value) },
@@ -2377,7 +2378,7 @@ v + ' кВт·ч<br>выработка за день'`),
2377
2378
  surface: "bg-violet-500/10",
2378
2379
  card: "border-violet-500/25 bg-violet-500/[0.04]"
2379
2380
  }
2380
- ]), Be = O(null), Ie = O(null), Le = /* @__PURE__ */ new Map(), Y = O(null);
2381
+ ]), Be = F(null), Ie = F(null), Le = /* @__PURE__ */ new Map(), Y = F(null);
2381
2382
  let oe = null;
2382
2383
  const rt = (G, J) => {
2383
2384
  J instanceof HTMLElement ? Le.set(G, J) : Le.delete(G);
@@ -2417,24 +2418,24 @@ v + ' кВт·ч<br>выработка за день'`),
2417
2418
  }
2418
2419
  };
2419
2420
  return he(async () => {
2420
- oe = new ResizeObserver(() => $e()), await bt(), $e(), Me();
2421
+ oe = new ResizeObserver(() => $e()), await xt(), $e(), Me();
2421
2422
  }), Je(() => {
2422
2423
  oe == null || oe.disconnect(), oe = null;
2423
- }), (G, J) => (f(), M(An, {
2424
+ }), (G, J) => (f(), O(zn, {
2424
2425
  title: e.title,
2425
2426
  hover: ""
2426
2427
  }, {
2427
2428
  header: x(() => [
2428
- l("div", zn, [
2429
+ l("div", En, [
2429
2430
  l("span", {
2430
- class: F(["inline-flex items-center gap-2 rounded-full border px-2.5 py-1 text-xs font-medium", e.online ? "border-emerald-500/25 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400" : "border-gray-light-10/60 bg-gray-dark-25/10 text-gray-dark-25 dark:border-white/10 dark:text-gray-main"])
2431
+ class: M(["inline-flex items-center gap-2 rounded-full border px-2.5 py-1 text-xs font-medium", e.online ? "border-emerald-500/25 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400" : "border-gray-light-10/60 bg-gray-dark-25/10 text-gray-dark-25 dark:border-white/10 dark:text-gray-main"])
2431
2432
  }, [
2432
2433
  l("span", {
2433
- class: F(["size-1.5 rounded-full", e.online ? "animate-pulse bg-emerald-500" : "bg-gray-main"])
2434
+ class: M(["size-1.5 rounded-full", e.online ? "animate-pulse bg-emerald-500" : "bg-gray-main"])
2434
2435
  }, null, 2),
2435
2436
  E(" " + w(e.online ? "Онлайн" : "Не в сети"), 1)
2436
2437
  ], 2),
2437
- e.editable ? (f(), M(j, {
2438
+ e.editable ? (f(), O(j, {
2438
2439
  key: 0,
2439
2440
  type: "icon",
2440
2441
  size: "sm",
@@ -2485,7 +2486,7 @@ v + ' кВт·ч<br>выработка за день'`),
2485
2486
  class: "stroke-current text-gray-main dark:text-white/20 [stroke-width:1.5] [stroke-linecap:round] [stroke-dasharray:2_6] opacity-45",
2486
2487
  d: Y.value.paths[z.id],
2487
2488
  fill: "none"
2488
- }, null, 8, Vn))), 128)),
2489
+ }, null, 8, Bn))), 128)),
2489
2490
  (f(!0), g(D, null, K(Xe.value, (z) => (f(), g("g", {
2490
2491
  key: `flow-${z.id}`
2491
2492
  }, [
@@ -2493,18 +2494,18 @@ v + ' кВт·ч<br>выработка за день'`),
2493
2494
  class: "stroke-cyan-main [stroke-width:2.5] [stroke-linecap:round] opacity-55",
2494
2495
  d: Y.value.paths[z.id],
2495
2496
  fill: "none"
2496
- }, null, 8, Bn),
2497
+ }, null, 8, In),
2497
2498
  l("path", {
2498
2499
  class: "stroke-cyan-main [stroke-width:10] [stroke-linecap:round] opacity-20 blur-sm",
2499
2500
  d: Y.value.paths[z.id],
2500
2501
  fill: "none"
2501
- }, null, 8, In),
2502
+ }, null, 8, Ln),
2502
2503
  l("path", {
2503
- class: F(["animate-energy-flow stroke-gray-light-30 stroke-2 [stroke-linecap:round] [stroke-dasharray:16_22] opacity-75 drop-shadow-cyan-glow-xs motion-reduce:animate-none motion-reduce:[stroke-dasharray:none]", { "[animation-direction:reverse]": z.reverse }]),
2504
+ class: M(["animate-energy-flow stroke-gray-light-30 stroke-2 [stroke-linecap:round] [stroke-dasharray:16_22] opacity-75 drop-shadow-cyan-glow-xs motion-reduce:animate-none motion-reduce:[stroke-dasharray:none]", { "[animation-direction:reverse]": z.reverse }]),
2504
2505
  d: Y.value.paths[z.id],
2505
2506
  style: Ve({ animationDuration: `${z.speed}s` }),
2506
2507
  fill: "none"
2507
- }, null, 14, Ln),
2508
+ }, null, 14, Mn),
2508
2509
  Ne.value ? T("", !0) : (f(), g(D, { key: 0 }, K([0, 1, 2], (R, me) => l("circle", {
2509
2510
  key: `dot-${z.id}-${R}`,
2510
2511
  r: "2.6",
@@ -2521,8 +2522,8 @@ v + ' кВт·ч<br>выработка за день'`),
2521
2522
  }, [
2522
2523
  l("mpath", {
2523
2524
  href: `#energy-path-${z.id}`
2524
- }, null, 8, On)
2525
- ], 8, Mn),
2525
+ }, null, 8, Fn)
2526
+ ], 8, On),
2526
2527
  l("animate", {
2527
2528
  attributeName: "opacity",
2528
2529
  values: "0;1;1;0",
@@ -2530,83 +2531,83 @@ v + ' кВт·ч<br>выработка за день'`),
2530
2531
  dur: `${z.speed}s`,
2531
2532
  begin: `${me * z.speed / 3}s`,
2532
2533
  repeatCount: "indefinite"
2533
- }, null, 8, Fn)
2534
+ }, null, 8, Dn)
2534
2535
  ])), 64))
2535
2536
  ]))), 128))
2536
- ], 8, En)) : T("", !0),
2537
- l("div", Dn, [
2537
+ ], 8, Vn)) : T("", !0),
2538
+ l("div", jn, [
2538
2539
  (f(!0), g(D, null, K(it.value, (z) => (f(), g("div", {
2539
2540
  key: z.key,
2540
2541
  ref_for: !0,
2541
2542
  ref: (R) => rt(z.key, R),
2542
- class: F(z.wrapper)
2543
+ class: M(z.wrapper)
2543
2544
  }, [
2544
2545
  l("div", {
2545
- class: F(["relative flex w-full max-w-none flex-col gap-3 rounded-2xl border p-4 shadow-cyan-glow-soft lg:max-w-56", z.card])
2546
+ class: M(["relative flex w-full max-w-none flex-col gap-3 rounded-2xl border p-4 shadow-cyan-glow-soft lg:max-w-56", z.card])
2546
2547
  }, [
2547
- l("div", jn, [
2548
+ l("div", Nn, [
2548
2549
  l("span", {
2549
- class: F(["grid size-8 shrink-0 place-items-center rounded-lg", z.surface])
2550
+ class: M(["grid size-8 shrink-0 place-items-center rounded-lg", z.surface])
2550
2551
  }, [
2551
2552
  v(I, {
2552
2553
  name: z.icon,
2553
2554
  size: 16,
2554
- class: F(z.tone)
2555
+ class: M(z.tone)
2555
2556
  }, null, 8, ["name", "class"])
2556
2557
  ], 2),
2557
- l("span", Nn, w(z.label), 1)
2558
+ l("span", Rn, w(z.label), 1)
2558
2559
  ]),
2559
- z.metrics.length ? (f(), g("div", Rn, [
2560
+ z.metrics.length ? (f(), g("div", Pn, [
2560
2561
  (f(!0), g(D, null, K(z.metrics, (R) => (f(), g("div", {
2561
2562
  key: R.id,
2562
2563
  class: "glass-inset rounded-lg px-3 py-2"
2563
2564
  }, [
2564
- l("span", Pn, w(R.label), 1),
2565
+ l("span", Un, w(R.label), 1),
2565
2566
  l("span", {
2566
- class: F(["mt-0.5 block whitespace-pre", H(gt)(R.style)])
2567
+ class: M(["mt-0.5 block whitespace-pre", H(vt)(R.style)])
2567
2568
  }, w(R.value), 3)
2568
2569
  ]))), 128))
2569
2570
  ])) : T("", !0)
2570
2571
  ], 2)
2571
2572
  ], 2))), 128)),
2572
- l("div", Un, [
2573
+ l("div", Kn, [
2573
2574
  l("div", {
2574
2575
  ref_key: "inverterRef",
2575
2576
  ref: Ie,
2576
2577
  class: "relative w-full max-w-72 rounded-2xl border border-cyan-main/30 bg-cyan-main/10 p-4 text-cyan-main shadow-cyan-glow"
2577
2578
  }, [
2578
2579
  J[3] || (J[3] = l("span", { class: "absolute -inset-2 rounded-3xl border border-cyan-main/15" }, null, -1)),
2579
- l("div", Kn, [
2580
- l("div", Hn, [
2581
- l("span", Wn, [
2580
+ l("div", Hn, [
2581
+ l("div", Wn, [
2582
+ l("span", Gn, [
2582
2583
  v(I, {
2583
2584
  name: "inverter",
2584
2585
  size: 20
2585
2586
  })
2586
2587
  ]),
2587
- l("span", Gn, w(e.inverterTitle), 1)
2588
+ l("span", Jn, w(e.inverterTitle), 1)
2588
2589
  ]),
2589
- l("div", Jn, [
2590
- l("span", Xn, w(V.value), 1),
2591
- l("span", qn, w(e.loadLabel), 1)
2590
+ l("div", Xn, [
2591
+ l("span", qn, w(V.value), 1),
2592
+ l("span", Yn, w(e.loadLabel), 1)
2592
2593
  ]),
2593
- l("dl", Yn, [
2594
+ l("dl", Zn, [
2594
2595
  (f(!0), g(D, null, K(W.value, (z) => (f(), g("div", {
2595
2596
  key: z.id,
2596
2597
  class: "glass-inset rounded-md px-3 py-2"
2597
2598
  }, [
2598
- l("dt", Zn, w(z.label), 1),
2599
+ l("dt", Qn, w(z.label), 1),
2599
2600
  l("dd", {
2600
- class: F(["mt-0.5 whitespace-pre", H(gt)(z.style)])
2601
+ class: M(["mt-0.5 whitespace-pre", H(vt)(z.style)])
2601
2602
  }, w(z.value), 3)
2602
2603
  ]))), 128))
2603
2604
  ]),
2604
- l("div", Qn, [
2605
- l("div", eo, [
2605
+ l("div", eo, [
2606
+ l("div", to, [
2606
2607
  J[2] || (J[2] = l("span", { class: "text-gray-dark-25 dark:text-gray-main" }, "Батарея", -1)),
2607
- l("span", to, w(p.value) + " %", 1)
2608
+ l("span", ao, w(p.value) + " %", 1)
2608
2609
  ]),
2609
- l("div", ao, [
2610
+ l("div", so, [
2610
2611
  l("div", {
2611
2612
  class: "h-full rounded-full bg-emerald-500 transition-all duration-500",
2612
2613
  style: Ve({ width: `${p.value}%` })
@@ -2622,10 +2623,10 @@ v + ' кВт·ч<br>выработка за день'`),
2622
2623
  _: 1
2623
2624
  }, 8, ["title"]));
2624
2625
  }
2625
- }), lo = {
2626
+ }), no = {
2626
2627
  title: "'Сетевой инвертор'",
2627
2628
  online: "true"
2628
- }, no = {
2629
+ }, oo = {
2629
2630
  solar: [
2630
2631
  { id: "solar-power", label: "Генерация", value: "a", format: "v + ' кВт'" },
2631
2632
  { id: "solar-today", label: "Выработка за день", value: "b", format: "v + ' кВт·ч'" }
@@ -2650,15 +2651,15 @@ v + ' кВт·ч<br>выработка за день'`),
2650
2651
  { id: "inverter-generation", label: "Генерация", value: "c", format: "v + ' кВт'" },
2651
2652
  { id: "inverter-temperature", label: "Температура", value: "d", format: "v + ' °C'" }
2652
2653
  ]
2653
- }, oo = {
2654
+ }, io = {
2654
2655
  type: "energy-flow",
2655
2656
  defaultId: "energy-main",
2656
2657
  name: "Сетевой инвертор",
2657
2658
  description: "Солнце, сеть, батарея и дом с анимированным перетеканием энергии.",
2658
2659
  icon: "bolt",
2659
- component: so,
2660
- defaults: lo,
2661
- metrics: no,
2660
+ component: lo,
2661
+ defaults: no,
2662
+ metrics: oo,
2662
2663
  fields: [
2663
2664
  { key: "title", plain: !0, block: "general", label: "Заголовок блока", type: "string", default: "Сетевой инвертор" },
2664
2665
  { key: "online", block: "general", label: "Устройство онлайн", type: "boolean", default: !0 },
@@ -2673,7 +2674,7 @@ v + ' кВт·ч<br>выработка за день'`),
2673
2674
  { key: "inverterTitle", plain: !0, block: "inverter", label: "Заголовок", type: "string", default: "Инвертор" },
2674
2675
  { key: "loadLabel", plain: !0, block: "inverter", label: "Подпись нагрузки", type: "string", default: "нагрузка" }
2675
2676
  ]
2676
- }, Qr = /* @__PURE__ */ L({
2677
+ }, ed = /* @__PURE__ */ L({
2677
2678
  inheritAttrs: !1,
2678
2679
  __name: "EnergyFlowBlock",
2679
2680
  props: {
@@ -2685,8 +2686,8 @@ v + ' кВт·ч<br>выработка за день'`),
2685
2686
  emits: ["update:config"],
2686
2687
  setup(e, { emit: s }) {
2687
2688
  const a = s;
2688
- return (n, t) => (f(), M(hn, X({
2689
- definition: H(oo),
2689
+ return (n, t) => (f(), O(yn, X({
2690
+ definition: H(io),
2690
2691
  config: e.config,
2691
2692
  context: e.context,
2692
2693
  editable: e.editable,
@@ -2695,14 +2696,14 @@ v + ' кВт·ч<br>выработка за день'`),
2695
2696
  "onUpdate:config": t[0] || (t[0] = (o) => a("update:config", o))
2696
2697
  }), null, 16, ["definition", "config", "context", "editable", "removable"]));
2697
2698
  }
2698
- }), io = (e, s, a, n) => ({
2699
+ }), ro = (e, s, a, n) => ({
2699
2700
  kind: e,
2700
2701
  roots: s,
2701
2702
  helpers: a,
2702
2703
  meta: n,
2703
- get: (t) => La(t, s)
2704
- }), ro = (e) => {
2705
- const s = io("device", {
2704
+ get: (t) => Ma(t, s)
2705
+ }), co = (e) => {
2706
+ const s = ro("device", {
2706
2707
  device: e.device ?? {},
2707
2708
  ports: e.ports ?? {},
2708
2709
  dallas: e.dallas ?? {},
@@ -2714,36 +2715,36 @@ v + ' кВт·ч<br>выработка за день'`),
2714
2715
  port: (a) => s.get(`ports.${String(a)}`),
2715
2716
  dallas: (a) => s.get(`dallas.${String(a)}`)
2716
2717
  }, s;
2717
- }, co = {
2718
+ }, uo = {
2718
2719
  id: "vuesp.device",
2719
2720
  label: "Устройство vuesp",
2720
- createContext: (e) => ro(e)
2721
- }, uo = "/tmp/blocks.json", Mt = "/fs", mo = 1, fo = 8, Xt = 10, qt = 4, nt = 512, go = 64, vo = 8192, Yt = ["vuesp.blocks", "vuesp.block.energy"], po = ["xs", "sm", "base", "lg", "xl"], ho = ["default", "muted", "primary", "success", "warning", "danger"], yo = ["normal", "medium", "semibold"], bo = ["left", "right"], pe = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Zt = (e) => {
2721
+ createContext: (e) => co(e)
2722
+ }, mo = "/tmp/blocks.json", Ot = "/fs", fo = 1, go = 8, qt = 10, Yt = 4, nt = 512, vo = 64, po = 8192, Zt = ["vuesp.blocks", "vuesp.block.energy"], ho = ["xs", "sm", "base", "lg", "xl"], yo = ["default", "muted", "primary", "success", "warning", "danger"], bo = ["normal", "medium", "semibold"], xo = ["left", "right"], pe = (e) => typeof e == "object" && e !== null && !Array.isArray(e), Qt = (e) => {
2722
2723
  if (!pe(e)) return;
2723
2724
  const s = {};
2724
- return typeof e.size == "string" && po.includes(e.size) && (s.size = e.size), typeof e.color == "string" && ho.includes(e.color) && (s.color = e.color), typeof e.weight == "string" && yo.includes(e.weight) && (s.weight = e.weight), typeof e.align == "string" && bo.includes(e.align) && (s.align = e.align), Object.keys(s).length ? s : void 0;
2725
- }, xo = (e) => !pe(e) || typeof e.i != "string" || !e.i ? null : {
2725
+ return typeof e.size == "string" && ho.includes(e.size) && (s.size = e.size), typeof e.color == "string" && yo.includes(e.color) && (s.color = e.color), typeof e.weight == "string" && bo.includes(e.weight) && (s.weight = e.weight), typeof e.align == "string" && xo.includes(e.align) && (s.align = e.align), Object.keys(s).length ? s : void 0;
2726
+ }, ko = (e) => !pe(e) || typeof e.i != "string" || !e.i ? null : {
2726
2727
  id: e.i,
2727
2728
  label: typeof e.l == "string" ? e.l : "",
2728
2729
  value: typeof e.v == "string" ? e.v : "",
2729
2730
  format: typeof e.f == "string" ? e.f : "",
2730
- style: Zt(e.s)
2731
- }, ko = (e) => {
2731
+ style: Qt(e.s)
2732
+ }, $o = (e) => {
2732
2733
  if (!pe(e)) return;
2733
2734
  const s = {};
2734
2735
  for (const [a, n] of Object.entries(e))
2735
- Array.isArray(n) && (s[a] = n.filter((t) => typeof t == "string").slice(0, qt));
2736
+ Array.isArray(n) && (s[a] = n.filter((t) => typeof t == "string").slice(0, Yt));
2736
2737
  return Object.keys(s).length ? s : void 0;
2737
- }, $o = (e) => {
2738
+ }, wo = (e) => {
2738
2739
  if (!pe(e)) return;
2739
2740
  const s = {};
2740
2741
  for (const [a, n] of Object.entries(e)) {
2741
2742
  if (!Array.isArray(n)) continue;
2742
- const t = n.map(xo).filter((o) => o !== null).slice(0, Xt);
2743
+ const t = n.map(ko).filter((o) => o !== null).slice(0, qt);
2743
2744
  (t.length || Array.isArray(n)) && (s[a] = t);
2744
2745
  }
2745
2746
  return Object.keys(s).length ? s : void 0;
2746
- }, wo = (e) => {
2747
+ }, Co = (e) => {
2747
2748
  if (!e) return;
2748
2749
  const s = {};
2749
2750
  for (const [a, n] of Object.entries(e))
@@ -2755,34 +2756,34 @@ v + ' кВт·ч<br>выработка за день'`),
2755
2756
  ...t.style && Object.keys(t.style).length ? { s: t.style } : {}
2756
2757
  })));
2757
2758
  return Object.keys(s).length ? s : void 0;
2758
- }, Co = (e) => ({
2759
+ }, _o = (e) => ({
2759
2760
  id: e.id.slice(0, 64),
2760
- label: String(e.label ?? "").slice(0, go),
2761
+ label: String(e.label ?? "").slice(0, vo),
2761
2762
  value: String(e.value ?? "").slice(0, nt),
2762
2763
  format: String(e.format ?? "").slice(0, nt),
2763
- ...e.style ? { style: Zt(e.style) } : {}
2764
- }), _o = (e) => {
2764
+ ...e.style ? { style: Qt(e.style) } : {}
2765
+ }), So = (e) => {
2765
2766
  if (!e) return;
2766
2767
  const s = {};
2767
2768
  for (const [a, n] of Object.entries(e))
2768
- Array.isArray(n) && (s[a] = n.slice(0, qt).map((t) => String(t).slice(0, nt)));
2769
+ Array.isArray(n) && (s[a] = n.slice(0, Yt).map((t) => String(t).slice(0, nt)));
2769
2770
  return Object.keys(s).length ? s : void 0;
2770
- }, So = (e) => {
2771
+ }, To = (e) => {
2771
2772
  if (!e) return;
2772
2773
  const s = {};
2773
2774
  for (const [a, n] of Object.entries(e))
2774
- n && (s[a] = n.slice(0, Xt).map(Co));
2775
+ n && (s[a] = n.slice(0, qt).map(_o));
2775
2776
  return Object.keys(s).length ? s : void 0;
2776
- }, Qt = (e) => Array.isArray(e) ? e : pe(e) && typeof e.type == "string" && pe(e.bindings) ? [e] : !pe(e) || !Array.isArray(e.b) ? [] : e.b.filter(pe).map((s) => ({
2777
+ }, ea = (e) => Array.isArray(e) ? e : pe(e) && typeof e.type == "string" && pe(e.bindings) ? [e] : !pe(e) || !Array.isArray(e.b) ? [] : e.b.filter(pe).map((s) => ({
2777
2778
  id: String(s.i ?? ""),
2778
2779
  type: String(s.t ?? ""),
2779
2780
  provider: s.p ? String(s.p) : void 0,
2780
2781
  bindings: pe(s.m) ? s.m : {},
2781
2782
  units: pe(s.u) ? s.u : void 0,
2782
- metricArgs: ko(s.A),
2783
- metrics: $o(s.g)
2784
- })).filter((s) => s.id && s.type), ea = (e) => ({
2785
- v: mo,
2783
+ metricArgs: $o(s.A),
2784
+ metrics: wo(s.g)
2785
+ })).filter((s) => s.id && s.type), ta = (e) => ({
2786
+ v: fo,
2786
2787
  b: e.map((s) => ({
2787
2788
  i: s.id,
2788
2789
  t: s.type,
@@ -2790,69 +2791,69 @@ v + ' кВт·ч<br>выработка за день'`),
2790
2791
  m: s.bindings,
2791
2792
  ...s.units && Object.keys(s.units).length ? { u: s.units } : {},
2792
2793
  ...s.metricArgs && Object.keys(s.metricArgs).length ? { A: s.metricArgs } : {},
2793
- ...s.metrics && Object.keys(s.metrics).length ? { g: wo(s.metrics) } : {}
2794
+ ...s.metrics && Object.keys(s.metrics).length ? { g: Co(s.metrics) } : {}
2794
2795
  }))
2795
- }), To = (e) => {
2796
- const s = e.slice(0, fo).map((a) => ({
2796
+ }), Ao = (e) => {
2797
+ const s = e.slice(0, go).map((a) => ({
2797
2798
  ...a,
2798
2799
  bindings: Object.fromEntries(
2799
2800
  Object.entries(a.bindings).map(([n, t]) => [n, typeof t == "string" ? t.slice(0, nt) : t]).filter(([, n]) => n !== "")
2800
2801
  ),
2801
- metricArgs: _o(a.metricArgs),
2802
- metrics: So(a.metrics)
2802
+ metricArgs: So(a.metricArgs),
2803
+ metrics: To(a.metrics)
2803
2804
  }));
2804
- for (; s.length > 0 && JSON.stringify(ea(s)).length > vo; )
2805
+ for (; s.length > 0 && JSON.stringify(ta(s)).length > po; )
2805
2806
  s.pop();
2806
2807
  return s;
2807
- }, Ao = () => {
2808
- for (const e of Yt)
2808
+ }, zo = () => {
2809
+ for (const e of Zt)
2809
2810
  try {
2810
2811
  const s = localStorage.getItem(e);
2811
2812
  if (!s) continue;
2812
- const a = Qt(JSON.parse(s));
2813
+ const a = ea(JSON.parse(s));
2813
2814
  if (a.length) return a;
2814
2815
  } catch {
2815
2816
  }
2816
2817
  return [];
2817
- }, zo = () => {
2818
- for (const e of Yt)
2818
+ }, Eo = () => {
2819
+ for (const e of Zt)
2819
2820
  try {
2820
2821
  localStorage.removeItem(e);
2821
2822
  } catch {
2822
2823
  }
2823
- }, Eo = (e = uo) => {
2824
+ }, Vo = (e = mo) => {
2824
2825
  const s = async (n) => {
2825
2826
  const t = new FormData();
2826
- t.append("file[0]", new Blob([JSON.stringify(ea(To(n)))], { type: "application/json" }), e);
2827
- const o = await fetch(Mt, { method: "POST", body: t });
2827
+ t.append("file[0]", new Blob([JSON.stringify(ta(Ao(n)))], { type: "application/json" }), e);
2828
+ const o = await fetch(Ot, { method: "POST", body: t });
2828
2829
  if (!o.ok) throw new Error(`Не удалось сохранить настройки блока: HTTP ${o.status}`);
2829
2830
  };
2830
2831
  return { read: async () => {
2831
2832
  try {
2832
- const t = await fetch(`${Mt}?file=${e}`);
2833
+ const t = await fetch(`${Ot}?file=${e}`);
2833
2834
  if (t.ok) {
2834
- const o = Qt(await t.json());
2835
+ const o = ea(await t.json());
2835
2836
  if (o.length) return o;
2836
2837
  }
2837
2838
  } catch {
2838
2839
  }
2839
- const n = Ao();
2840
+ const n = zo();
2840
2841
  if (n.length)
2841
2842
  try {
2842
- await s(n), zo();
2843
+ await s(n), Eo();
2843
2844
  } catch {
2844
2845
  }
2845
2846
  return n;
2846
2847
  }, write: s };
2847
- }, ed = Eo(), td = (e, s, a = {}) => {
2848
- const n = a.provider ?? co, t = a.id ?? e.defaultId ?? e.type, o = O({
2848
+ }, td = Vo(), ad = (e, s, a = {}) => {
2849
+ const n = a.provider ?? uo, t = a.id ?? e.defaultId ?? e.type, o = F({
2849
2850
  id: t,
2850
2851
  type: e.type,
2851
2852
  provider: n.id,
2852
2853
  title: e.name,
2853
2854
  bindings: { ...e.defaults ?? {} },
2854
2855
  units: {}
2855
- }), r = C(() => n.createContext(ma(s))), d = C(() => St(e, o.value, r.value)), u = C(() => ({ ...o.value.units ?? {} })), i = async () => {
2856
+ }), r = C(() => n.createContext(fa(s))), d = C(() => Tt(e, o.value, r.value)), u = C(() => ({ ...o.value.units ?? {} })), i = async () => {
2856
2857
  if (a.storage)
2857
2858
  try {
2858
2859
  const p = (await a.storage.read()).find((b) => b.id === t);
@@ -2875,7 +2876,7 @@ v + ' кВт·ч<br>выработка за день'`),
2875
2876
  } catch {
2876
2877
  }
2877
2878
  };
2878
- return he(i), Pt({
2879
+ return he(i), Ut({
2879
2880
  config: o,
2880
2881
  context: r,
2881
2882
  data: d,
@@ -2883,10 +2884,10 @@ v + ' кВт·ч<br>выработка за день'`),
2883
2884
  load: i,
2884
2885
  update: c
2885
2886
  });
2886
- }, Vo = { class: "flex-auto flex justify-between" }, Bo = { class: "text-sm text-gray-dark-25 font-medium line-clamp-2 overflow-hidden" }, Io = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, Lo = {
2887
+ }, Bo = { class: "flex-auto flex justify-between" }, Io = { class: "text-sm text-gray-dark-25 font-medium line-clamp-2 overflow-hidden dark:text-gray-light-10" }, Lo = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, Mo = {
2887
2888
  key: 0,
2888
- class: "absolute left-1/2 top-1/2 size-1/2 text-gray-light-10/30 dark:text-gray-dark-30/30 -translate-1/2"
2889
- }, Mo = { class: "min-h-60 relative" }, Oo = { class: "pt-6" }, Fo = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, Do = { class: "text-center text-xl mt-4" }, je = /* @__PURE__ */ L({
2889
+ class: "absolute left-1/2 top-1/2 size-1/2 text-gray-light-10/30 dark:text-white/10 -translate-1/2"
2890
+ }, Oo = { class: "min-h-60 relative" }, Fo = { class: "pt-6" }, Do = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, jo = { class: "text-center text-xl mt-4" }, je = /* @__PURE__ */ L({
2890
2891
  __name: "CardBase",
2891
2892
  props: {
2892
2893
  size: {},
@@ -2906,16 +2907,16 @@ v + ' кВт·ч<br>выработка за день'`),
2906
2907
  },
2907
2908
  emits: ["edit", "close", "click", "clone", "open", "setState"],
2908
2909
  setup(e, { emit: s }) {
2909
- const a = e, n = s, t = O(!1), o = C(() => ["button", "dimmer"].includes(a.type || "") && a.value ? "text-amber-500" : "text-gray-main"), r = (m) => n("edit", m), d = (m) => n("clone", m), u = () => t.value = !0, i = (m) => n("open", m), c = (m) => {
2910
+ const a = e, n = s, t = F(!1), o = C(() => ["button", "dimmer"].includes(a.type || "") && a.value ? "text-amber-500" : "text-gray-main dark:text-gray-light-10"), r = (m) => n("edit", m), d = (m) => n("clone", m), u = () => t.value = !0, i = (m) => n("open", m), c = (m) => {
2910
2911
  t.value = !1, n("close", m);
2911
2912
  };
2912
2913
  return (m, p) => (f(), g("div", {
2913
2914
  class: "glass-inset relative flex aspect-square rounded-xl cursor-pointer flex-col p-2 transition-all hover:border-cyan-main/25 hover:shadow-cyan-glow",
2914
2915
  onClick: u
2915
2916
  }, [
2916
- l("div", Vo, [
2917
+ l("div", Bo, [
2917
2918
  l("div", {
2918
- class: F([o.value, "size-8 animate-shake"])
2919
+ class: M([o.value, "size-8 animate-shake"])
2919
2920
  }, [
2920
2921
  B(m.$slots, "icon", ae(se(a)))
2921
2922
  ], 2),
@@ -2923,22 +2924,22 @@ v + ' кВт·ч<br>выработка за день'`),
2923
2924
  ]),
2924
2925
  l("div", null, [
2925
2926
  B(m.$slots, "body", ae(se(a)), () => [
2926
- l("h6", Bo, [
2927
+ l("h6", Io, [
2927
2928
  B(m.$slots, "name", ae(se(a)), () => [
2928
2929
  E(w(a.name), 1)
2929
2930
  ])
2930
2931
  ]),
2931
- l("div", Io, [
2932
+ l("div", Lo, [
2932
2933
  B(m.$slots, "value", ae(se(a)), () => [
2933
2934
  E(w(a.valueTo || a.value), 1)
2934
2935
  ])
2935
2936
  ])
2936
2937
  ])
2937
2938
  ]),
2938
- a.icon ? (f(), g("div", Lo, [
2939
+ a.icon ? (f(), g("div", Mo, [
2939
2940
  B(m.$slots, "icon", ae(se(a)))
2940
2941
  ])) : T("", !0),
2941
- t.value ? (f(), M(Se, {
2942
+ t.value ? (f(), O(Se, {
2942
2943
  key: 1,
2943
2944
  size: a.size || "sm",
2944
2945
  title: e.name,
@@ -2962,22 +2963,22 @@ v + ' кВт·ч<br>выработка за день'`),
2962
2963
  default: x(() => [
2963
2964
  v(I, {
2964
2965
  name: "copy",
2965
- class: "size-4 text-gray-dark-25"
2966
+ class: "size-4 text-gray-dark-25 dark:text-gray-light-10"
2966
2967
  })
2967
2968
  ]),
2968
2969
  _: 1
2969
2970
  })
2970
2971
  ]),
2971
2972
  default: x(() => [
2972
- l("div", Mo, [
2973
- l("div", Oo, [
2974
- l("h3", Fo, [
2973
+ l("div", Oo, [
2974
+ l("div", Fo, [
2975
+ l("h3", Do, [
2975
2976
  B(m.$slots, "dialog-name", ae(se(a)), () => [
2976
2977
  E(w(a.name), 1)
2977
2978
  ])
2978
2979
  ]),
2979
2980
  B(m.$slots, "dialog", ae(se(a))),
2980
- l("p", Do, [
2981
+ l("p", jo, [
2981
2982
  B(m.$slots, "dialog-value", ae(se(a)), () => [
2982
2983
  E(w(a.valueTo || a.value), 1)
2983
2984
  ])
@@ -2989,7 +2990,7 @@ v + ' кВт·ч<br>выработка за день'`),
2989
2990
  }, 8, ["size", "title"])) : T("", !0)
2990
2991
  ]));
2991
2992
  }
2992
- }), jo = { class: "flex justify-end" }, No = { class: "flex justify-center py-4" }, ad = /* @__PURE__ */ L({
2993
+ }), No = { class: "flex justify-end" }, Ro = { class: "flex justify-center py-4" }, sd = /* @__PURE__ */ L({
2993
2994
  __name: "CardButton",
2994
2995
  props: {
2995
2996
  size: {},
@@ -3013,7 +3014,7 @@ v + ' кВт·ч<br>выработка за день'`),
3013
3014
  const { disabled: d } = r;
3014
3015
  return { disabled: !!d };
3015
3016
  }, o = () => n("setState", !a.value);
3016
- return (r, d) => (f(), M(je, X(a, {
3017
+ return (r, d) => (f(), O(je, X(a, {
3017
3018
  onClick: d[0] || (d[0] = (u) => n("click", u)),
3018
3019
  onEdit: d[1] || (d[1] = (u) => n("edit", u)),
3019
3020
  onClone: d[2] || (d[2] = (u) => n("clone", u))
@@ -3022,10 +3023,10 @@ v + ' кВт·ч<br>выработка за день'`),
3022
3023
  B(r.$slots, "icon", ae(se(u)))
3023
3024
  ]),
3024
3025
  header: x((u) => [
3025
- l("div", jo, [
3026
+ l("div", No, [
3026
3027
  v(j, X(t(u), {
3027
3028
  type: "icon",
3028
- class: a.value ? "text-amber-500" : "text-gray-dark-25",
3029
+ class: a.value ? "text-amber-500" : "text-gray-dark-25 dark:text-gray-light-10",
3029
3030
  onClick: Q(o, ["stop"])
3030
3031
  }), {
3031
3032
  default: x(() => [
@@ -3039,10 +3040,10 @@ v + ' кВт·ч<br>выработка за день'`),
3039
3040
  ])
3040
3041
  ]),
3041
3042
  dialog: x((u) => [
3042
- l("div", No, [
3043
+ l("div", Ro, [
3043
3044
  v(j, X(t(u), {
3044
3045
  type: "icon",
3045
- class: ["size-18", a.value ? "text-amber-500" : "text-gray-dark-25"],
3046
+ class: ["size-18", a.value ? "text-amber-500" : "text-gray-dark-25 dark:text-gray-light-10"],
3046
3047
  onClick: Q(o, ["stop"])
3047
3048
  }), {
3048
3049
  default: x(() => [
@@ -3058,7 +3059,7 @@ v + ' кВт·ч<br>выработка за день'`),
3058
3059
  _: 3
3059
3060
  }, 16));
3060
3061
  }
3061
- }), Ro = { class: "flex justify-center relative mx-2 my-6" }, sd = /* @__PURE__ */ L({
3062
+ }), Po = { class: "flex justify-center relative mx-2 my-6" }, ld = /* @__PURE__ */ L({
3062
3063
  __name: "CardDate",
3063
3064
  props: {
3064
3065
  size: {},
@@ -3078,7 +3079,7 @@ v + ' кВт·ч<br>выработка за день'`),
3078
3079
  },
3079
3080
  emits: ["edit", "close", "click", "clone", "open", "setState"],
3080
3081
  setup(e, { emit: s }) {
3081
- const a = e, n = s, t = Ut("time"), o = (i) => new Date(+i * 1e3).toISOString().slice(0, 16), r = (i) => {
3082
+ const a = e, n = s, t = Kt("time"), o = (i) => new Date(+i * 1e3).toISOString().slice(0, 16), r = (i) => {
3082
3083
  var m;
3083
3084
  const c = (m = i == null ? void 0 : i.target) == null ? void 0 : m.valueAsNumber;
3084
3085
  c && n("setState", c / 1e3);
@@ -3090,7 +3091,7 @@ v + ' кВт·ч<br>выработка за день'`),
3090
3091
  const i = (m = (c = t.value) == null ? void 0 : c.$el) == null ? void 0 : m.querySelector("input");
3091
3092
  i != null && i.showPicker && i.showPicker();
3092
3093
  };
3093
- return (i, c) => (f(), M(je, X(a, {
3094
+ return (i, c) => (f(), O(je, X(a, {
3094
3095
  onClick: c[0] || (c[0] = (m) => n("click", m)),
3095
3096
  onEdit: c[1] || (c[1] = (m) => n("edit", m)),
3096
3097
  onClone: c[2] || (c[2] = (m) => n("clone", m))
@@ -3102,7 +3103,7 @@ v + ' кВт·ч<br>выработка за день'`),
3102
3103
  l("div", null, [
3103
3104
  v(j, {
3104
3105
  type: "icon",
3105
- class: "text-gray-dark-25",
3106
+ class: "text-gray-dark-25 dark:text-gray-light-10",
3106
3107
  onClick: Q(u, ["stop"])
3107
3108
  }, {
3108
3109
  default: x(() => [
@@ -3125,7 +3126,7 @@ v + ' кВт·ч<br>выработка за день'`),
3125
3126
  ])
3126
3127
  ]),
3127
3128
  dialog: x((m) => [
3128
- l("div", Ro, [
3129
+ l("div", Po, [
3129
3130
  v(le, X(d(m), {
3130
3131
  type: "datetime-local",
3131
3132
  onChange: r
@@ -3135,15 +3136,15 @@ v + ' кВт·ч<br>выработка за день'`),
3135
3136
  _: 3
3136
3137
  }, 16));
3137
3138
  }
3138
- }), Po = { class: "flex justify-end" }, Uo = { class: "flex justify-end" }, Ko = {
3139
- class: /* @__PURE__ */ F("text-blue-600 dark:text-blue-400")
3140
- }, Ho = {
3139
+ }), Uo = { class: "flex justify-end" }, Ko = { class: "flex justify-end" }, Ho = {
3140
+ class: /* @__PURE__ */ M("text-blue-600 dark:text-blue-400")
3141
+ }, Wo = {
3141
3142
  width: "30",
3142
3143
  height: "30",
3143
3144
  viewBox: "-7.5 -7.5 75 75",
3144
3145
  version: "1.1",
3145
3146
  style: { transform: "rotate(-90deg)" }
3146
- }, Wo = ["stroke-dashoffset"], Go = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, ld = /* @__PURE__ */ L({
3147
+ }, Go = ["stroke-dashoffset"], Jo = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, nd = /* @__PURE__ */ L({
3147
3148
  __name: "CardDimmer",
3148
3149
  props: {
3149
3150
  size: {},
@@ -3163,13 +3164,13 @@ v + ' кВт·ч<br>выработка за день'`),
3163
3164
  },
3164
3165
  emits: ["edit", "close", "click", "clone", "open", "setState"],
3165
3166
  setup(e, { emit: s }) {
3166
- const a = e, n = s, t = O(0), o = ({ opts: c, value: m }) => Math.round(100 * +m / ((c == null ? void 0 : c.max) || 255)), r = ({ opts: c, value: m }) => Math.round(187 - +m / ((c == null ? void 0 : c.max) || 255) * 187), d = ({ value: c, opts: m }) => {
3167
+ const a = e, n = s, t = F(0), o = ({ opts: c, value: m }) => Math.round(100 * +m / ((c == null ? void 0 : c.max) || 255)), r = ({ opts: c, value: m }) => Math.round(187 - +m / ((c == null ? void 0 : c.max) || 255) * 187), d = ({ value: c, opts: m }) => {
3167
3168
  const { min: p = 0, max: b = 255, step: h = 1, disabled: k } = m || {};
3168
3169
  return { min: p, max: b, step: h, value: c, disabled: !!k, class: k ? "" : "cursor-pointer" };
3169
3170
  }, u = (c) => n("setState", +c.target.value || 0), i = ({ value: c }) => {
3170
3171
  +c != 0 ? (t.value = +c, n("setState", 0)) : n("setState", c ? 0 : t.value || 255);
3171
3172
  };
3172
- return (c, m) => (f(), M(je, X(a, {
3173
+ return (c, m) => (f(), O(je, X(a, {
3173
3174
  onClick: m[0] || (m[0] = (p) => n("click", p)),
3174
3175
  onEdit: m[1] || (m[1] = (p) => n("edit", p)),
3175
3176
  onClone: m[2] || (m[2] = (p) => n("clone", p))
@@ -3178,15 +3179,15 @@ v + ' кВт·ч<br>выработка за день'`),
3178
3179
  B(c.$slots, "icon", ae(se(p)))
3179
3180
  ]),
3180
3181
  header: x((p) => [
3181
- l("div", Po, [
3182
- l("div", Uo, [
3182
+ l("div", Uo, [
3183
+ l("div", Ko, [
3183
3184
  v(j, X(d(p), {
3184
3185
  type: "icon",
3185
3186
  onClick: Q((b) => i(p), ["stop"])
3186
3187
  }), {
3187
3188
  default: x(() => [
3188
- l("div", Ko, [
3189
- (f(), g("svg", Ho, [
3189
+ l("div", Ho, [
3190
+ (f(), g("svg", Wo, [
3190
3191
  m[3] || (m[3] = l("circle", {
3191
3192
  class: "stroke-gray-light-10 dark:stroke-gray-dark-30",
3192
3193
  r: "30",
@@ -3205,7 +3206,7 @@ v + ' кВт·ч<br>выработка за день'`),
3205
3206
  "stroke-dashoffset": r(p),
3206
3207
  fill: "transparent",
3207
3208
  "stroke-dasharray": "187"
3208
- }, null, 8, Wo)
3209
+ }, null, 8, Go)
3209
3210
  ]))
3210
3211
  ])
3211
3212
  ]),
@@ -3216,14 +3217,14 @@ v + ' кВт·ч<br>выработка за день'`),
3216
3217
  ]),
3217
3218
  dialog: x((p) => [
3218
3219
  l("div", {
3219
- class: F(["flex justify-center relative mx-2 my-6", d(p).disabled ? "opacity-40" : ""])
3220
+ class: M(["flex justify-center relative mx-2 my-6", d(p).disabled ? "opacity-40" : ""])
3220
3221
  }, [
3221
3222
  m[4] || (m[4] = l("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-main dark:bg-gray-dark-30 z-0 rounded-md" }, null, -1)),
3222
3223
  l("div", {
3223
3224
  class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
3224
3225
  style: Ve(`width: ${o(p)}%`)
3225
3226
  }, null, 4),
3226
- l("div", Go, w(o(p)) + " %", 1),
3227
+ l("div", Jo, w(o(p)) + " %", 1),
3227
3228
  l("input", X({ type: "range" }, d(p), {
3228
3229
  class: "w-full h-10 z-10 appearance-none opacity-0",
3229
3230
  onChange: u
@@ -3233,7 +3234,7 @@ v + ' кВт·ч<br>выработка за день'`),
3233
3234
  _: 3
3234
3235
  }, 16));
3235
3236
  }
3236
- }), nd = /* @__PURE__ */ L({
3237
+ }), od = /* @__PURE__ */ L({
3237
3238
  __name: "CardInfo",
3238
3239
  props: {
3239
3240
  size: {},
@@ -3254,7 +3255,7 @@ v + ' кВт·ч<br>выработка за день'`),
3254
3255
  emits: ["edit", "close", "click", "clone", "open", "setState"],
3255
3256
  setup(e, { emit: s }) {
3256
3257
  const a = e, n = s;
3257
- return (t, o) => (f(), M(je, X(a, {
3258
+ return (t, o) => (f(), O(je, X(a, {
3258
3259
  onClick: o[0] || (o[0] = (r) => n("click", r)),
3259
3260
  onEdit: o[1] || (o[1] = (r) => n("edit", r)),
3260
3261
  onClone: o[2] || (o[2] = (r) => n("clone", r))
@@ -3268,7 +3269,7 @@ v + ' кВт·ч<br>выработка за день'`),
3268
3269
  _: 3
3269
3270
  }, 16));
3270
3271
  }
3271
- }), Jo = { class: "flex justify-center relative mx-2 my-6" }, od = /* @__PURE__ */ L({
3272
+ }), Xo = { class: "flex justify-center relative mx-2 my-6" }, id = /* @__PURE__ */ L({
3272
3273
  __name: "CardInput",
3273
3274
  props: {
3274
3275
  size: {},
@@ -3288,7 +3289,7 @@ v + ' кВт·ч<br>выработка за день'`),
3288
3289
  },
3289
3290
  emits: ["edit", "close", "click", "clone", "open", "setState"],
3290
3291
  setup(e, { emit: s }) {
3291
- const a = e, n = s, t = O(a.value || ""), o = ({ name: d, opts: u = {} }) => {
3292
+ const a = e, n = s, t = F(a.value || ""), o = ({ name: d, opts: u = {} }) => {
3292
3293
  const { disabled: i } = u;
3293
3294
  return { label: d, disabled: i };
3294
3295
  }, r = (d) => n("setState", d.target.value);
@@ -3297,7 +3298,7 @@ v + ' кВт·ч<br>выработка за день'`),
3297
3298
  (d) => {
3298
3299
  t.value = d;
3299
3300
  }
3300
- ), (d, u) => (f(), M(je, X(a, {
3301
+ ), (d, u) => (f(), O(je, X(a, {
3301
3302
  onClick: u[1] || (u[1] = (i) => n("click", i)),
3302
3303
  onEdit: u[2] || (u[2] = (i) => n("edit", i)),
3303
3304
  onClone: u[3] || (u[3] = (i) => n("clone", i))
@@ -3306,7 +3307,7 @@ v + ' кВт·ч<br>выработка за день'`),
3306
3307
  B(d.$slots, "icon", ae(se(i)))
3307
3308
  ]),
3308
3309
  dialog: x((i) => [
3309
- l("div", Jo, [
3310
+ l("div", Xo, [
3310
3311
  v(le, X({
3311
3312
  modelValue: t.value,
3312
3313
  "onUpdate:modelValue": u[0] || (u[0] = (c) => t.value = c)
@@ -3327,7 +3328,7 @@ v + ' кВт·ч<br>выработка за день'`),
3327
3328
  _: 3
3328
3329
  }, 16));
3329
3330
  }
3330
- }), Xo = { class: "flex justify-center py-4" }, id = /* @__PURE__ */ L({
3331
+ }), qo = { class: "flex justify-center py-4" }, rd = /* @__PURE__ */ L({
3331
3332
  __name: "CardList",
3332
3333
  props: {
3333
3334
  size: {},
@@ -3355,7 +3356,7 @@ v + ' кВт·ч<br>выработка за день'`),
3355
3356
  const { items: c = [], disabled: m } = i, p = ((b = c.find((h) => h.value == u)) == null ? void 0 : b.name) || u;
3356
3357
  return { label: d, modelValue: p, items: c, disabled: !!m };
3357
3358
  };
3358
- return (d, u) => (f(), M(je, X(a, {
3359
+ return (d, u) => (f(), O(je, X(a, {
3359
3360
  onClick: u[1] || (u[1] = (i) => n("click", i)),
3360
3361
  onEdit: u[2] || (u[2] = (i) => n("edit", i)),
3361
3362
  onClone: u[3] || (u[3] = (i) => n("clone", i))
@@ -3383,7 +3384,7 @@ v + ' кВт·ч<br>выработка за день'`),
3383
3384
  activator: x(({ on: c }) => [
3384
3385
  v(j, {
3385
3386
  type: "icon",
3386
- class: "text-gray-dark-25",
3387
+ class: "text-gray-dark-25 dark:text-gray-light-10",
3387
3388
  onClick: Q(c.click, ["stop"])
3388
3389
  }, {
3389
3390
  default: x(() => [
@@ -3400,7 +3401,7 @@ v + ' кВт·ч<br>выработка за день'`),
3400
3401
  ])
3401
3402
  ]),
3402
3403
  dialog: x((i) => [
3403
- l("div", Xo, [
3404
+ l("div", qo, [
3404
3405
  v(ge, X(r(i), {
3405
3406
  top: "-50%",
3406
3407
  left: "50%",
@@ -3411,7 +3412,7 @@ v + ' кВт·ч<br>выработка за день'`),
3411
3412
  _: 3
3412
3413
  }, 16));
3413
3414
  }
3414
- }), qo = { class: "glass-inset rounded-md p-1" }, Yo = { class: "flex gap-1" }, Zo = ["onClick"], Qo = { class: "relative my-4" }, ei = { key: 0 }, ti = /* @__PURE__ */ L({
3415
+ }), Yo = { class: "glass-inset rounded-md p-1" }, Zo = { class: "flex gap-1" }, Qo = ["onClick"], ei = { class: "relative my-4" }, ti = { key: 0 }, ai = /* @__PURE__ */ L({
3415
3416
  __name: "VTabs",
3416
3417
  props: {
3417
3418
  value: {},
@@ -3420,7 +3421,7 @@ v + ' кВт·ч<br>выработка за день'`),
3420
3421
  },
3421
3422
  emits: ["click"],
3422
3423
  setup(e, { expose: s, emit: a }) {
3423
- const n = a, t = O(e.value || 0), o = (d) => [
3424
+ const n = a, t = F(e.value || 0), o = (d) => [
3424
3425
  t.value === d ? "bg-cyan-main/10 text-cyan-main" : "text-gray-dark-25 hover:bg-white/5 dark:text-white/50 dark:hover:bg-white/5"
3425
3426
  ], r = (d) => {
3426
3427
  t.value = d, n("click", d);
@@ -3429,8 +3430,8 @@ v + ' кВт·ч<br>выработка за день'`),
3429
3430
  setActiveTab: r,
3430
3431
  activeTab: t
3431
3432
  }), (d, u) => (f(), g("div", null, [
3432
- l("div", qo, [
3433
- l("div", Yo, [
3433
+ l("div", Yo, [
3434
+ l("div", Zo, [
3434
3435
  (f(!0), g(D, null, K(e.items, (i, c) => (f(), g("div", {
3435
3436
  key: c,
3436
3437
  class: "relative flex-auto"
@@ -3441,27 +3442,27 @@ v + ' кВт·ч<br>выработка за день'`),
3441
3442
  onClick: (m) => r(c)
3442
3443
  }, [
3443
3444
  l("div", {
3444
- class: F([[o(c), e.size === "sm" ? "px-2 py-1 text-xs" : "px-3 py-2 text-sm"], "rounded-md font-medium transition"])
3445
+ class: M([[o(c), e.size === "sm" ? "px-2 py-1 text-xs" : "px-3 py-2 text-sm"], "rounded-md font-medium transition"])
3445
3446
  }, [
3446
3447
  B(d.$slots, "header", {
3447
3448
  tab: i,
3448
3449
  i: c
3449
3450
  }, () => [
3450
3451
  l("div", {
3451
- class: F(e.size === "sm" ? "px-2 py-0.5" : "px-3 py-1")
3452
+ class: M(e.size === "sm" ? "px-2 py-0.5" : "px-3 py-1")
3452
3453
  }, w(i.title), 3)
3453
3454
  ])
3454
3455
  ], 2)
3455
- ], 8, Zo)
3456
+ ], 8, Qo)
3456
3457
  ]))), 128))
3457
3458
  ])
3458
3459
  ]),
3459
- l("div", Qo, [
3460
+ l("div", ei, [
3460
3461
  (f(!0), g(D, null, K(e.items, (i, c) => (f(), g("div", {
3461
3462
  key: c,
3462
3463
  class: "tab-panel"
3463
3464
  }, [
3464
- v(ht, {
3465
+ v(yt, {
3465
3466
  "enter-active-class": "transition-all duration-300 ease-out",
3466
3467
  "enter-from-class": "transform opacity-0 translate-x-2",
3467
3468
  "enter-to-class": "transform opacity-100 translate-x-0",
@@ -3470,7 +3471,7 @@ v + ' кВт·ч<br>выработка за день'`),
3470
3471
  "leave-to-class": "transform opacity-0 -translate-x-2"
3471
3472
  }, {
3472
3473
  default: x(() => [
3473
- t.value === c ? (f(), g("div", ei, [
3474
+ t.value === c ? (f(), g("div", ti, [
3474
3475
  B(d.$slots, `tab-${c}`)
3475
3476
  ])) : T("", !0)
3476
3477
  ]),
@@ -3480,7 +3481,7 @@ v + ' кВт·ч<br>выработка за день'`),
3480
3481
  ])
3481
3482
  ]));
3482
3483
  }
3483
- }), ai = ["checked", "disabled"], si = { class: "text-sm ms-2 peer-disabled:opacity-40" }, li = /* @__PURE__ */ L({
3484
+ }), si = ["checked", "disabled"], li = { class: "text-sm ms-2 peer-disabled:opacity-40" }, ni = /* @__PURE__ */ L({
3484
3485
  __name: "VCheckbox",
3485
3486
  props: {
3486
3487
  modelValue: { type: [Number, Boolean], default: !1 },
@@ -3493,7 +3494,7 @@ v + ' кВт·ч<br>выработка за день'`),
3493
3494
  a("update:modelValue", r.checked);
3494
3495
  }, t = (o) => a("click", o);
3495
3496
  return (o, r) => (f(), g("label", {
3496
- class: F(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
3497
+ class: M(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
3497
3498
  onClick: t
3498
3499
  }, [
3499
3500
  l("input", {
@@ -3502,7 +3503,7 @@ v + ' кВт·ч<br>выработка за день'`),
3502
3503
  disabled: e.disabled,
3503
3504
  class: "peer size-5 appearance-none rounded-md border border-gray-light-10/80 bg-transparent transition-all checked:border-blue-main disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15",
3504
3505
  onChange: n
3505
- }, null, 40, ai),
3506
+ }, null, 40, si),
3506
3507
  r[0] || (r[0] = l("button", { class: "pointer-events-none absolute left-2.5 top-1/2 -translate-x-1/2 -translate-y-1/2 text-blue-main opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 dark:text-white" }, [
3507
3508
  l("svg", {
3508
3509
  class: "h-3.5 w-3.5",
@@ -3518,15 +3519,15 @@ v + ' кВт·ч<br>выработка за день'`),
3518
3519
  })
3519
3520
  ])
3520
3521
  ], -1)),
3521
- l("span", si, [
3522
+ l("span", li, [
3522
3523
  B(o.$slots, "default")
3523
3524
  ])
3524
3525
  ], 2));
3525
3526
  }
3526
- }), ni = { class: "flex flex-col" }, oi = { class: "flex gap-4 mb-6" }, ii = {
3527
+ }), oi = { class: "flex flex-col" }, ii = { class: "flex gap-4 mb-6" }, ri = {
3527
3528
  key: 0,
3528
3529
  class: "flex gap-4"
3529
- }, ri = { key: 1 }, di = { class: "flex flex-col md:flex-row gap-4" }, ci = { class: "flex gap-4" }, ui = { class: "flex justify-between flex-auto" }, mi = ["onClick"], fi = /* @__PURE__ */ L({
3530
+ }, di = { key: 1 }, ci = { class: "flex flex-col md:flex-row gap-4" }, ui = { class: "flex gap-4" }, mi = { class: "flex justify-between flex-auto" }, fi = ["onClick"], gi = /* @__PURE__ */ L({
3530
3531
  __name: "ItemOptions",
3531
3532
  props: {
3532
3533
  min: { default: 0 },
@@ -3539,7 +3540,7 @@ v + ' кВт·ч<br>выработка за день'`),
3539
3540
  },
3540
3541
  emits: ["update"],
3541
3542
  setup(e, { emit: s }) {
3542
- const a = s, n = C(() => e.items.map((h, k) => ({ ...h, id: ++k }))), t = O({ name: "", value: "" }), o = C(() => e.items.length + 1), r = C(() => {
3543
+ const a = s, n = C(() => e.items.map((h, k) => ({ ...h, id: ++k }))), t = F({ name: "", value: "" }), o = C(() => e.items.length + 1), r = C(() => {
3543
3544
  var h;
3544
3545
  return !((h = t.value) != null && h.id);
3545
3546
  }), d = (h) => e.type === h, u = (h, k) => a("update", h, k), i = (h) => h.map(({ name: k, value: _ }) => ({ name: k, value: _ })), c = ({ id: h, name: k, value: _ }) => t.value = { id: h, name: k, value: _ }, m = () => {
@@ -3547,15 +3548,15 @@ v + ' кВт·ч<br>выработка за день'`),
3547
3548
  t.value = { name: `New_${h}`, value: `${h}`, id: h }, u("items", i([...n.value, t.value]));
3548
3549
  }, p = (h) => {
3549
3550
  t.value.name === h.name && (t.value = { name: "", value: "" }), u("items", i(n.value.filter((k) => k.value !== h.value)));
3550
- }, b = kt(() => {
3551
+ }, b = $t(() => {
3551
3552
  const h = t.value;
3552
3553
  if (!h.name || !h.value) return;
3553
3554
  const k = n.value.map((_) => _.id === h.id ? h : _);
3554
3555
  u("items", i(k));
3555
3556
  }, 300);
3556
- return (h, k) => (f(), g("div", ni, [
3557
- l("div", oi, [
3558
- v(li, {
3557
+ return (h, k) => (f(), g("div", oi, [
3558
+ l("div", ii, [
3559
+ v(ni, {
3559
3560
  modelValue: e.disabled,
3560
3561
  "onUpdate:modelValue": k[0] || (k[0] = (_) => u("disabled", _ ? 1 : 0))
3561
3562
  }, {
@@ -3565,7 +3566,7 @@ v + ' кВт·ч<br>выработка за день'`),
3565
3566
  _: 1
3566
3567
  }, 8, ["modelValue"])
3567
3568
  ]),
3568
- d("dimmer") ? (f(), g("div", ii, [
3569
+ d("dimmer") ? (f(), g("div", ri, [
3569
3570
  v(le, {
3570
3571
  modelValue: e.min,
3571
3572
  label: "Min",
@@ -3582,8 +3583,8 @@ v + ' кВт·ч<br>выработка за день'`),
3582
3583
  "onUpdate:modelValue": k[3] || (k[3] = (_) => u("step", +_))
3583
3584
  }, null, 8, ["modelValue"])
3584
3585
  ])) : T("", !0),
3585
- d("list") ? (f(), g("div", ri, [
3586
- l("div", di, [
3586
+ d("list") ? (f(), g("div", di, [
3587
+ l("div", ci, [
3587
3588
  v(le, {
3588
3589
  modelValue: t.value.name,
3589
3590
  "onUpdate:modelValue": [
@@ -3603,7 +3604,7 @@ v + ' кВт·ч<br>выработка за день'`),
3603
3604
  label: "Value"
3604
3605
  }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
3605
3606
  ]),
3606
- l("div", ci, [
3607
+ l("div", ui, [
3607
3608
  v(ge, {
3608
3609
  "model-value": t.value.value,
3609
3610
  label: "List",
@@ -3613,14 +3614,14 @@ v + ' кВт·ч<br>выработка за день'`),
3613
3614
  onChange: c
3614
3615
  }, {
3615
3616
  item: x(({ item: _ }) => [
3616
- l("div", ui, [
3617
+ l("div", mi, [
3617
3618
  l("span", null, w(_.name), 1),
3618
3619
  l("button", {
3619
3620
  class: "cursor-pointer size-4",
3620
3621
  onClick: Q((N) => p(_), ["prevent", "stop"])
3621
3622
  }, [
3622
3623
  v(I, { name: "close" })
3623
- ], 8, mi)
3624
+ ], 8, fi)
3624
3625
  ])
3625
3626
  ]),
3626
3627
  _: 1
@@ -3639,7 +3640,7 @@ v + ' кВт·ч<br>выработка за день'`),
3639
3640
  ])) : T("", !0)
3640
3641
  ]));
3641
3642
  }
3642
- }), gi = { class: "flex flex-col" }, vi = { class: "flex flex-col md:flex-row gap-6 min-h-72" }, pi = { class: "flex-auto order-1" }, hi = { class: "flex-auto gap-x-2 order-1" }, yi = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, bi = { class: "flex gap-2 items-center" }, xi = { class: "flex flex-col gap-4" }, ki = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, $i = { class: "relative group" }, wi = { class: "select-none" }, Ci = ["onClick"], _i = { class: "flex justify-center order-0 md:order-1" }, Si = { class: "size-32 shrink-0" }, Ti = { class: "flex gap-4 justify-end" }, Ai = { class: "relative min-h-52 max-h-100dvh overflow-auto scrollbar" }, rd = /* @__PURE__ */ L({
3643
+ }), vi = { class: "flex flex-col" }, pi = { class: "flex flex-col md:flex-row gap-6 min-h-72" }, hi = { class: "flex-auto order-1" }, yi = { class: "flex-auto gap-x-2 order-1" }, bi = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, xi = { class: "flex gap-2 items-center" }, ki = { class: "flex flex-col gap-4" }, $i = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, wi = { class: "relative group" }, Ci = { class: "select-none" }, _i = ["onClick"], Si = { class: "flex justify-center order-0 md:order-1" }, Ti = { class: "size-32 shrink-0" }, Ai = { class: "flex gap-4 justify-end" }, zi = { class: "relative min-h-52 max-h-100dvh overflow-auto scrollbar" }, dd = /* @__PURE__ */ L({
3643
3644
  __name: "ItemEdit",
3644
3645
  props: {
3645
3646
  items: {},
@@ -3650,7 +3651,7 @@ v + ' кВт·ч<br>выработка за день'`),
3650
3651
  },
3651
3652
  emits: ["button"],
3652
3653
  setup(e, { emit: s }) {
3653
- const a = s, n = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = O({
3654
+ const a = s, n = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = F({
3654
3655
  id: "",
3655
3656
  name: "",
3656
3657
  type: "button",
@@ -3660,7 +3661,7 @@ v + ' кВт·ч<br>выработка за день'`),
3660
3661
  set: "",
3661
3662
  get: "",
3662
3663
  getTo: ""
3663
- }), o = O(!1), r = C(() => {
3664
+ }), o = F(!1), r = C(() => {
3664
3665
  var A;
3665
3666
  return !((A = e.item) != null && A.id);
3666
3667
  }), d = C(() => !!e.items.filter((A) => {
@@ -3689,23 +3690,23 @@ v + ' кВт·ч<br>выработка за день'`),
3689
3690
  };
3690
3691
  return he(() => {
3691
3692
  var A;
3692
- (A = e.item) != null && A.id && (t.value = _a(e.item));
3693
- }), (A, V) => (f(), g("div", gi, [
3694
- l("div", vi, [
3695
- l("div", pi, [
3696
- v(ti, {
3693
+ (A = e.item) != null && A.id && (t.value = Sa(e.item));
3694
+ }), (A, V) => (f(), g("div", vi, [
3695
+ l("div", pi, [
3696
+ l("div", hi, [
3697
+ v(ai, {
3697
3698
  class: "flex-auto min-h-75",
3698
3699
  value: 0,
3699
3700
  items: n
3700
3701
  }, {
3701
3702
  "tab-0": x(() => [
3702
- l("div", hi, [
3703
+ l("div", yi, [
3703
3704
  v(le, {
3704
3705
  modelValue: t.value.id,
3705
3706
  "onUpdate:modelValue": V[0] || (V[0] = (W) => t.value.id = W),
3706
3707
  label: "ID",
3707
3708
  message: d.value ? A.$t("used") : ""
3708
- }, fa({ _: 2 }, [
3709
+ }, ga({ _: 2 }, [
3709
3710
  i.value ? void 0 : {
3710
3711
  name: "icon",
3711
3712
  fn: x(() => [
@@ -3727,7 +3728,7 @@ v + ' кВт·ч<br>выработка за день'`),
3727
3728
  "onUpdate:modelValue": V[1] || (V[1] = (W) => t.value.name = W),
3728
3729
  label: "Name"
3729
3730
  }, null, 8, ["modelValue"]),
3730
- l("div", yi, [
3731
+ l("div", bi, [
3731
3732
  v(ge, {
3732
3733
  "model-value": t.value.icon,
3733
3734
  bottom: "0",
@@ -3738,7 +3739,7 @@ v + ' кВт·ч<br>выработка за день'`),
3738
3739
  onChange: p
3739
3740
  }, {
3740
3741
  item: x(({ item: W }) => [
3741
- l("div", bi, [
3742
+ l("div", xi, [
3742
3743
  B(A.$slots, "icon", {
3743
3744
  icon: W.value
3744
3745
  }),
@@ -3759,21 +3760,21 @@ v + ' кВт·ч<br>выработка за день'`),
3759
3760
  ])
3760
3761
  ]),
3761
3762
  "tab-1": x(() => [
3762
- l("div", xi, [
3763
- v(wt, {
3763
+ l("div", ki, [
3764
+ v(Ct, {
3764
3765
  active: !!t.value.args.length,
3765
3766
  disabled: c.value,
3766
3767
  label: "Arguments",
3767
3768
  onIcon: V[2] || (V[2] = (W) => o.value = !0)
3768
3769
  }, {
3769
3770
  default: x(() => [
3770
- l("div", ki, [
3771
+ l("div", $i, [
3771
3772
  (f(!0), g(D, null, K(t.value.args, (W, ne) => (f(), g("div", {
3772
3773
  key: W,
3773
3774
  class: "flex items-center rounded-full bg-gray-light-10 dark:bg-gray-dark-40/50 px-2 py-1 text-xs"
3774
3775
  }, [
3775
- l("div", $i, [
3776
- l("span", wi, w(W), 1)
3776
+ l("div", wi, [
3777
+ l("span", Ci, w(W), 1)
3777
3778
  ]),
3778
3779
  ne || t.value.args.length < 2 ? (f(), g("button", {
3779
3780
  key: 0,
@@ -3784,7 +3785,7 @@ v + ' кВт·ч<br>выработка за день'`),
3784
3785
  name: "close",
3785
3786
  class: "size-5"
3786
3787
  })
3787
- ], 8, Ci)) : T("", !0)
3788
+ ], 8, _i)) : T("", !0)
3788
3789
  ]))), 128))
3789
3790
  ])
3790
3791
  ]),
@@ -3824,7 +3825,7 @@ v + ' кВт·ч<br>выработка за день'`),
3824
3825
  ])
3825
3826
  ]),
3826
3827
  "tab-2": x(() => [
3827
- v(fi, X(t.value.opts, {
3828
+ v(gi, X(t.value.opts, {
3828
3829
  value: t.value.value,
3829
3830
  type: t.value.type,
3830
3831
  onUpdate: Te
@@ -3833,13 +3834,13 @@ v + ' кВт·ч<br>выработка за день'`),
3833
3834
  _: 3
3834
3835
  })
3835
3836
  ]),
3836
- l("div", _i, [
3837
- l("div", Si, [
3837
+ l("div", Si, [
3838
+ l("div", Ti, [
3838
3839
  B(A.$slots, "default", { item: t.value })
3839
3840
  ])
3840
3841
  ])
3841
3842
  ]),
3842
- l("div", Ti, [
3843
+ l("div", Ai, [
3843
3844
  v(j, {
3844
3845
  class: "px-4",
3845
3846
  color: "blue",
@@ -3863,15 +3864,15 @@ v + ' кВт·ч<br>выработка за день'`),
3863
3864
  _: 1
3864
3865
  })
3865
3866
  ]),
3866
- o.value ? (f(), M(Se, {
3867
+ o.value ? (f(), O(Se, {
3867
3868
  key: 0,
3868
3869
  size: "md",
3869
3870
  title: A.$t("select"),
3870
3871
  onClose: V[11] || (V[11] = (W) => o.value = !1)
3871
3872
  }, {
3872
3873
  default: x(() => [
3873
- l("div", Ai, [
3874
- v($t, {
3874
+ l("div", zi, [
3875
+ v(wt, {
3875
3876
  items: e.object,
3876
3877
  onlyValue: !i.value,
3877
3878
  onClick: N
@@ -3882,26 +3883,26 @@ v + ' кВт·ч<br>выработка за день'`),
3882
3883
  }, 8, ["title"])) : T("", !0)
3883
3884
  ]));
3884
3885
  }
3885
- }), Ot = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, zi = { lineHeight: "inherit", whiteSpace: "pre-wrap", wordBreak: "keep-all", overflowWrap: "break-word", background: "none", position: "absolute", width: "100%", height: "100%", zIndex: "1", resize: "none", caretColor: "currentColor", padding: "inherit", outline: "none", fontSize: "inherit", fontFamily: "inherit", letterSpacing: "inherit", boxSizing: "border-box", border: "none", top: "0px", left: "0px", color: "inherit", overflow: "hidden", "-webkit-font-smoothing": "antialiased", "-webkit-text-fill-color": "transparent" }, Ei = { lineHeight: "inherit", position: "relative", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "0", width: "100%", margin: "0", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, Vi = { lineHeight: "inherit", position: "absolute", width: "100%", height: "100%", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "inherit", margin: "0", top: "0px", left: "0px", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, ta = (e) => aa(e);
3886
- function Ft(e) {
3886
+ }), Ft = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, Ei = { lineHeight: "inherit", whiteSpace: "pre-wrap", wordBreak: "keep-all", overflowWrap: "break-word", background: "none", position: "absolute", width: "100%", height: "100%", zIndex: "1", resize: "none", caretColor: "currentColor", padding: "inherit", outline: "none", fontSize: "inherit", fontFamily: "inherit", letterSpacing: "inherit", boxSizing: "border-box", border: "none", top: "0px", left: "0px", color: "inherit", overflow: "hidden", "-webkit-font-smoothing": "antialiased", "-webkit-text-fill-color": "transparent" }, Vi = { lineHeight: "inherit", position: "relative", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "0", width: "100%", margin: "0", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, Bi = { lineHeight: "inherit", position: "absolute", width: "100%", height: "100%", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "inherit", margin: "0", top: "0px", left: "0px", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, aa = (e) => sa(e);
3887
+ function Dt(e) {
3887
3888
  const s = Array.isArray(e) ? e : [e];
3888
- return s.length === 0 ? ta : (a) => s.reduce((n, t, o) => t(n, { html: o > 0 }), a);
3889
+ return s.length === 0 ? aa : (a) => s.reduce((n, t, o) => t(n, { html: o > 0 }), a);
3889
3890
  }
3890
- class Bi {
3891
+ class Ii {
3891
3892
  constructor(s, a = {}) {
3892
3893
  if (this.lines = null, !s) throw new Error("selector is not defined");
3893
3894
  if (this.root = s instanceof Node ? s : document.querySelector(s), !this.root) throw new Error(`element with "${s}" selector is not exist`);
3894
- const n = { value: "", styles: {}, plugins: [], highlighter: ta }, { highlighters: t, ...o } = a;
3895
- this.options = { ...n, ...o, highlighter: t ? Ft(t) : n.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
3895
+ const n = { value: "", styles: {}, plugins: [], highlighter: aa }, { highlighters: t, ...o } = a;
3896
+ this.options = { ...n, ...o, highlighter: t ? Dt(t) : n.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
3896
3897
  }
3897
3898
  init() {
3898
3899
  this.textarea = document.createElement("textarea"), this.textarea.setAttribute("spellcheck", "false"), this.textarea.setAttribute("autocapitalize", "off"), this.textarea.setAttribute("autocorrect", "off"), this.textarea.setAttribute("autocomplete", "off"), this.pre = document.createElement("pre");
3899
- const s = Object.keys(Ot).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
3900
+ const s = Object.keys(Ft).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
3900
3901
  this.initialRootStyles = {};
3901
3902
  const a = this.root.style;
3902
3903
  s.forEach((n) => {
3903
3904
  this.initialRootStyles[n] = a[n] || "";
3904
- }), Object.assign(this.root.style, Ot, this.options.styles), Object.assign(this.textarea.style, zi), Object.assign(this.pre.style, Ei), this.basePaddingLeft = this.root.style.paddingLeft || "", this.root.appendChild(this.textarea), this.root.appendChild(this.pre), this.addTextareaEvents(), this.update({ value: this.options.value }), this.updateLines();
3905
+ }), Object.assign(this.root.style, Ft, this.options.styles), Object.assign(this.textarea.style, Ei), Object.assign(this.pre.style, Vi), this.basePaddingLeft = this.root.style.paddingLeft || "", this.root.appendChild(this.textarea), this.root.appendChild(this.pre), this.addTextareaEvents(), this.update({ value: this.options.value }), this.updateLines();
3905
3906
  }
3906
3907
  addTextareaEvents() {
3907
3908
  this.handleEvent = (s) => {
@@ -3923,7 +3924,7 @@ class Bi {
3923
3924
  updateOptions(s) {
3924
3925
  if (!this.textarea) return;
3925
3926
  const { highlighters: a, ...n } = s;
3926
- if (this.options = { ...this.options, ...n, highlighter: a ? Ft(a) : this.options.highlighter }, s.styles) {
3927
+ if (this.options = { ...this.options, ...n, highlighter: a ? Dt(a) : this.options.highlighter }, s.styles) {
3927
3928
  const t = this.root.style;
3928
3929
  Object.keys(s.styles).forEach((o) => {
3929
3930
  o in this.initialRootStyles || (this.initialRootStyles[o] = t[o] || "");
@@ -3937,10 +3938,10 @@ class Bi {
3937
3938
  }
3938
3939
  updateLines() {
3939
3940
  if (!this.options.lineNumbers) return;
3940
- this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Vi));
3941
+ this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Bi));
3941
3942
  const s = this.value.split(`
3942
3943
  `), a = s.length.toString().length;
3943
- this.root.style.paddingLeft = `${a + 1}ch`, this.lines.innerHTML = s.map((n, t) => `${`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${a}ch; text-align: right">${1 + t}</span>`}${`<span style="color: transparent; pointer-events: none">${aa(n)}</span>`}`).join(`
3944
+ this.root.style.paddingLeft = `${a + 1}ch`, this.lines.innerHTML = s.map((n, t) => `${`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${a}ch; text-align: right">${1 + t}</span>`}${`<span style="color: transparent; pointer-events: none">${sa(n)}</span>`}`).join(`
3944
3945
  `);
3945
3946
  }
3946
3947
  destroy() {
@@ -3953,19 +3954,19 @@ class Bi {
3953
3954
  function et(e) {
3954
3955
  e && e.parentNode && e.parentNode.removeChild(e);
3955
3956
  }
3956
- function aa(e) {
3957
+ function sa(e) {
3957
3958
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
3958
3959
  }
3959
- const Dt = { alt: "altKey", control: "ctrlKey", ctrl: "ctrlKey", meta: "metaKey", shift: "shiftKey", "ctrl/cmd": typeof window < "u" && window.navigator && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "metaKey" : "ctrlKey" }, Ii = { add: "=" }, Li = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
3960
+ const jt = { alt: "altKey", control: "ctrlKey", ctrl: "ctrlKey", meta: "metaKey", shift: "shiftKey", "ctrl/cmd": typeof window < "u" && window.navigator && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "metaKey" : "ctrlKey" }, Li = { add: "=" }, Mi = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
3960
3961
  function Ge(e, s) {
3961
- const a = e.split("+").reduce((u, i) => Dt[i] ? (u.modifiers[Dt[i]] = !0, u) : { ...u, key: Ii[i] || i.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), n = Object.keys(a.modifiers).every((u) => a.modifiers[u] ? s[u] : !s[u]);
3962
+ const a = e.split("+").reduce((u, i) => jt[i] ? (u.modifiers[jt[i]] = !0, u) : { ...u, key: Li[i] || i.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), n = Object.keys(a.modifiers).every((u) => a.modifiers[u] ? s[u] : !s[u]);
3962
3963
  if (!a.key) return n;
3963
- const t = s.key != null && s.key.toLowerCase() === a.key, o = (r = a.key, /^[a-z]$/.test(r) ? `key${r}` : /^[0-9]$/.test(r) ? `digit${r}` : Li[r] || null);
3964
+ const t = s.key != null && s.key.toLowerCase() === a.key, o = (r = a.key, /^[a-z]$/.test(r) ? `key${r}` : /^[0-9]$/.test(r) ? `digit${r}` : Mi[r] || null);
3964
3965
  var r;
3965
3966
  const d = !s.isComposing && o != null && s.code != null && s.code.toLowerCase() === o;
3966
3967
  return n && (t || d);
3967
3968
  }
3968
- function Mi(e = {}) {
3969
+ function Oi(e = {}) {
3969
3970
  const s = Math.max(1, e.limit == null ? 300 : e.limit), a = e.coalesceMs == null ? 300 : e.coalesceMs;
3970
3971
  let n = [], t = null, o = null;
3971
3972
  const r = (d) => {
@@ -3984,7 +3985,7 @@ function Mi(e = {}) {
3984
3985
  }
3985
3986
  };
3986
3987
  }
3987
- const Oi = () => (e, s) => {
3988
+ const Fi = () => (e, s) => {
3988
3989
  const { value: a, selectionStart: n, selectionEnd: t } = e;
3989
3990
  if (!Ge("enter", s) || s.type !== "keydown") return;
3990
3991
  const o = a.substring(0, n).split(`
@@ -3994,7 +3995,7 @@ const Oi = () => (e, s) => {
3994
3995
  const d = `
3995
3996
  ` + r[0];
3996
3997
  return { value: a.substring(0, n) + d + a.substring(t), selectionStart: n + d.length, selectionEnd: n + d.length };
3997
- }, Fi = () => (e, s) => {
3998
+ }, Di = () => (e, s) => {
3998
3999
  if (typeof KeyboardEvent > "u" || !(s instanceof KeyboardEvent) || s.key !== "Enter")
3999
4000
  return;
4000
4001
  const { value: a, selectionStart: n, selectionEnd: t } = e;
@@ -4015,19 +4016,19 @@ const Oi = () => (e, s) => {
4015
4016
  selectionEnd: p
4016
4017
  };
4017
4018
  };
4018
- let Tt = [], re = null, te = 0, ve = [], ze = null, Oe = null, At, sa, fe = null, De = null;
4019
- const Di = (e) => {
4019
+ let At = [], re = null, te = 0, ve = [], ze = null, Oe = null, zt, la, fe = null, De = null;
4020
+ const ji = (e) => {
4020
4021
  const { customSuggestions: s = [], minPrefixLength: a = 1, maxSuggestions: n = 20, tabSize: t = 2, tooltip: o = { enabled: !0 }, i18n: r, renderMenu: d, renderTooltip: u } = e;
4021
4022
  if (!d || !u)
4022
4023
  throw new Error("renderMenu and renderTooltip are required");
4023
- return Tt = [...s].map((i) => r(i)), At = d, sa = u, (i, c) => {
4024
+ return At = [...s].map((i) => r(i)), zt = d, la = u, (i, c) => {
4024
4025
  if (typeof KeyboardEvent > "u" || !(c instanceof KeyboardEvent))
4025
4026
  return;
4026
4027
  const { value: m, selectionStart: p } = i, b = c.target;
4027
4028
  if (Oe = b, o.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
4028
- setTimeout(() => jt(b), 100);
4029
+ setTimeout(() => Nt(b), 100);
4029
4030
  }), b.addEventListener("keyup", () => {
4030
- setTimeout(() => jt(b), 100);
4031
+ setTimeout(() => Nt(b), 100);
4031
4032
  })), re) {
4032
4033
  switch (c.key) {
4033
4034
  case "ArrowDown":
@@ -4036,13 +4037,13 @@ const Di = (e) => {
4036
4037
  return c.preventDefault(), te > 0 && (te--, Fe()), { ...i };
4037
4038
  case "Enter":
4038
4039
  if (c.preventDefault(), ve[te]) {
4039
- const h = mt(i, ve[te]);
4040
+ const h = ft(i, ve[te]);
4040
4041
  return be(), h;
4041
4042
  }
4042
4043
  return;
4043
4044
  case "Tab":
4044
4045
  if (c.preventDefault(), ve[te]) {
4045
- const h = mt(i, ve[te]);
4046
+ const h = ft(i, ve[te]);
4046
4047
  return be(), h;
4047
4048
  }
4048
4049
  return;
@@ -4055,7 +4056,7 @@ const Di = (e) => {
4055
4056
  if (N.length < a)
4056
4057
  be();
4057
4058
  else {
4058
- const q = ut(N).slice(0, n);
4059
+ const q = mt(N).slice(0, n);
4059
4060
  q.length === 0 ? be() : (ve = q, te = 0, Fe());
4060
4061
  }
4061
4062
  }
@@ -4069,9 +4070,9 @@ const Di = (e) => {
4069
4070
  c.preventDefault();
4070
4071
  const h = lt(m, p), k = m.slice(h, p);
4071
4072
  if (k.length > 0) {
4072
- const xe = ut(k);
4073
+ const xe = mt(k);
4073
4074
  if (xe.length > 0)
4074
- return mt(i, xe[0]);
4075
+ return ft(i, xe[0]);
4075
4076
  }
4076
4077
  const _ = " ".repeat(t), N = m.slice(0, p) + _ + m.slice(p), q = p + t;
4077
4078
  return {
@@ -4088,18 +4089,18 @@ const Di = (e) => {
4088
4089
  be();
4089
4090
  return;
4090
4091
  }
4091
- let q = ut(N);
4092
+ let q = mt(N);
4092
4093
  if (q = q.slice(0, n), q.length === 0) {
4093
4094
  be();
4094
4095
  return;
4095
4096
  }
4096
- ve = q, te = 0, re ? Fe() : ji(b, q);
4097
+ ve = q, te = 0, re ? Fe() : Ni(b, q);
4097
4098
  }, 0), { ...i };
4098
4099
  };
4099
4100
  };
4100
- function ut(e) {
4101
+ function mt(e) {
4101
4102
  const s = e.toLowerCase();
4102
- return Tt.filter((a) => {
4103
+ return At.filter((a) => {
4103
4104
  const n = a.label.toLowerCase();
4104
4105
  return n.startsWith(s) || n.includes(s) || n.split("_").map((t) => t[0]).join("").startsWith(s);
4105
4106
  }).sort((a, n) => {
@@ -4116,10 +4117,10 @@ function lt(e, s) {
4116
4117
  a--;
4117
4118
  return a;
4118
4119
  }
4119
- function ji(e, s) {
4120
+ function Ni(e, s) {
4120
4121
  be(), ve = s, te = 0;
4121
- const a = la(e);
4122
- re = At(s, te, (n) => {
4122
+ const a = na(e);
4123
+ re = zt(s, te, (n) => {
4123
4124
  te = n, Fe();
4124
4125
  }), Object.assign(re.style, {
4125
4126
  position: "fixed",
@@ -4130,7 +4131,7 @@ function ji(e, s) {
4130
4131
  }
4131
4132
  function Fe() {
4132
4133
  if (!re || !Oe) return;
4133
- const e = At(ve, te, (a) => {
4134
+ const e = zt(ve, te, (a) => {
4134
4135
  te = a, Fe();
4135
4136
  }), s = re.getBoundingClientRect();
4136
4137
  re.replaceWith(e), re = e, Object.assign(re.style, {
@@ -4140,7 +4141,7 @@ function Fe() {
4140
4141
  zIndex: "10000"
4141
4142
  });
4142
4143
  }
4143
- function mt(e, s) {
4144
+ function ft(e, s) {
4144
4145
  const { value: a, selectionStart: n } = e, t = lt(a, n), o = s.insert || s.label, r = /\$\{([^}]*)\}/g;
4145
4146
  let d = o;
4146
4147
  const u = [];
@@ -4168,7 +4169,7 @@ function mt(e, s) {
4168
4169
  function be() {
4169
4170
  ze && (clearTimeout(ze), ze = null), re && (re.remove(), re = null, ve = [], te = 0, Oe = null);
4170
4171
  }
4171
- function la(e) {
4172
+ function na(e) {
4172
4173
  const s = e.getBoundingClientRect(), { value: a, selectionStart: n } = e, o = a.substring(0, n).split(`
4173
4174
  `), r = o.length, d = o[o.length - 1] || "", u = parseInt(getComputedStyle(e).lineHeight) || 20;
4174
4175
  return {
@@ -4176,7 +4177,7 @@ function la(e) {
4176
4177
  top: s.top + (r - 1) * u
4177
4178
  };
4178
4179
  }
4179
- function jt(e) {
4180
+ function Nt(e) {
4180
4181
  De && clearTimeout(De), De = setTimeout(() => {
4181
4182
  const s = e.selectionStart, a = e.selectionEnd;
4182
4183
  if (s === a) {
@@ -4188,12 +4189,12 @@ function jt(e) {
4188
4189
  Ke();
4189
4190
  return;
4190
4191
  }
4191
- const t = Tt.find((d) => d.label === n);
4192
+ const t = At.find((d) => d.label === n);
4192
4193
  if (!t) {
4193
4194
  Ke();
4194
4195
  return;
4195
4196
  }
4196
- const o = la(e), r = sa(t, o);
4197
+ const o = na(e), r = la(t, o);
4197
4198
  r.style.opacity = "0", fe && fe.remove(), fe = r, document.body.appendChild(fe), requestAnimationFrame(() => {
4198
4199
  fe && (fe.style.opacity = "1");
4199
4200
  }), setTimeout(() => Ke(), 3e3);
@@ -4208,24 +4209,24 @@ typeof document < "u" && document.addEventListener("mousedown", (e) => {
4208
4209
  const s = e.target;
4209
4210
  re && !re.contains(s) && be(), fe && !fe.contains(s) && Ke();
4210
4211
  });
4211
- const ft = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Ni = ["else", "end", "call", "fade"], Ri = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Pi = (e) => {
4212
- const s = e.filter((d) => d.type !== "var").map((d) => d.label), r = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...Ni, ...s])).map(Ri).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
4212
+ const gt = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Ri = ["else", "end", "call", "fade"], Pi = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Ui = (e) => {
4213
+ const s = e.filter((d) => d.type !== "var").map((d) => d.label), r = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...Ri, ...s])).map(Pi).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
4213
4214
  return new RegExp(r, "g");
4214
- }, Ui = (e) => (s) => {
4215
- const a = Pi(e);
4215
+ }, Ki = (e) => (s) => {
4216
+ const a = Ui(e);
4216
4217
  let n = "", t = 0;
4217
4218
  for (const o of s.matchAll(a)) {
4218
4219
  const [r, d, u, i, c, m, p, b] = o;
4219
4220
  let h = "";
4220
- d ? h = "comment" : u ? h = "str" : i ? h = "num" : c ? h = "word" : m ? h = "var" : p ? h = "event" : b && (h = "operator"), n += ft(s.slice(t, o.index)), n += `<span class="tok--${h}">${ft(r)}</span>`, t = o.index + r.length;
4221
+ d ? h = "comment" : u ? h = "str" : i ? h = "num" : c ? h = "word" : m ? h = "var" : p ? h = "event" : b && (h = "operator"), n += gt(s.slice(t, o.index)), n += `<span class="tok--${h}">${gt(r)}</span>`, t = o.index + r.length;
4221
4222
  }
4222
- return n += ft(s.slice(t)), n;
4223
- }, na = {
4223
+ return n += gt(s.slice(t)), n;
4224
+ }, oa = {
4224
4225
  word: "text-blue-600 dark:text-blue-400",
4225
4226
  func: "text-yellow-600 dark:text-yellow-400",
4226
4227
  var: "text-cyan-600 dark:text-cyan-400",
4227
4228
  event: "text-purple-600 dark:text-purple-400"
4228
- }, Ki = (e, s, a) => {
4229
+ }, Hi = (e, s, a) => {
4229
4230
  const n = document.createElement("div");
4230
4231
  return n.className = `
4231
4232
  fixed z-[10000] min-w-64 max-w-100 max-h-64
@@ -4239,7 +4240,7 @@ const ft = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
4239
4240
  rounded transition-colors duration-100 border-l-2
4240
4241
  ${r ? "border-blue-500 dark:border-blue-400 bg-blue-50 dark:bg-blue-900/30" : "border-transparent hover:bg-gray-light-30 dark:hover:bg-gray-dark-30"}
4241
4242
  `;
4242
- const u = na[t.type] || "text-gray-dark-30 dark:text-gray-light-10";
4243
+ const u = oa[t.type] || "text-gray-dark-30 dark:text-gray-light-10";
4243
4244
  d.innerHTML = `
4244
4245
  <div class="flex items-center gap-2 flex-1">
4245
4246
  <span class="${u} font-medium">${t.label}</span>
@@ -4248,7 +4249,7 @@ const ft = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
4248
4249
  ${t.description ? `<span class="text-xs text-gray-main dark:text-gray-dark-25">${t.description}</span>` : ""}
4249
4250
  `, d.addEventListener("click", () => a(o)), n.appendChild(d);
4250
4251
  }), n;
4251
- }, Hi = (e, s) => {
4252
+ }, Wi = (e, s) => {
4252
4253
  const a = document.createElement("div");
4253
4254
  a.className = `
4254
4255
  fixed z-[10001] px-3 py-2 font-mono text-sm max-w-75
@@ -4260,14 +4261,14 @@ const ft = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
4260
4261
  left: ${s.left + 40}px; top: ${s.top - 10}px;
4261
4262
  transform: translateX(-50%) translateY(-100%); opacity: 0;
4262
4263
  `;
4263
- let t = `<div class="font-medium ${na[e.type] || "text-gray-dark-30 dark:text-gray-light-10"}">${e.label}</div>`;
4264
+ let t = `<div class="font-medium ${oa[e.type] || "text-gray-dark-30 dark:text-gray-light-10"}">${e.label}</div>`;
4264
4265
  e.detail && (t += `<div class="text-gray-dark-25 dark:text-gray-main mt-0.5 text-xs">${e.detail}</div>`), e.description && (t += `<div class="text-gray-main dark:text-gray-dark-25 text-xs mt-1 pt-1 border-t border-gray-light-10 dark:border-gray-dark-30">${e.description}</div>`), a.innerHTML = t;
4265
4266
  const o = document.createElement("div");
4266
4267
  return o.className = `
4267
4268
  absolute -bottom-1 left-1/2 w-2.5 h-2.5 -translate-x-1/2 rotate-45
4268
4269
  bg-white dark:bg-gray-dark-30 border-r border-b border-gray-light-10 dark:border-gray-dark-30
4269
4270
  `, a.appendChild(o), a;
4270
- }, Wi = [
4271
+ }, Gi = [
4271
4272
  { label: "if", type: "word", insert: `if:\${$v0<10};
4272
4273
 
4273
4274
  else;
@@ -4302,7 +4303,7 @@ end;`, detail: "event(name: string)" },
4302
4303
  { label: "$e", type: "var", insert: "$e${0}", detail: "var event" },
4303
4304
  { label: "$c", type: "var", insert: "$c${0}", detail: "var call" },
4304
4305
  { label: "$p", type: "var", insert: "$p${0}", detail: "gpio" }
4305
- ], dd = /* @__PURE__ */ L({
4306
+ ], cd = /* @__PURE__ */ L({
4306
4307
  __name: "ScriptEditor",
4307
4308
  props: {
4308
4309
  modelValue: {},
@@ -4312,21 +4313,21 @@ end;`, detail: "event(name: string)" },
4312
4313
  setup(e, { emit: s }) {
4313
4314
  const a = s;
4314
4315
  let n;
4315
- const t = [...Wi, ...e.suggestions];
4316
+ const t = [...Gi, ...e.suggestions];
4316
4317
  return _e(
4317
4318
  () => e.modelValue,
4318
4319
  (o) => {
4319
4320
  n.update({ value: o });
4320
4321
  }
4321
4322
  ), he(() => {
4322
- n = new Bi("#editor", {
4323
+ n = new Ii("#editor", {
4323
4324
  value: e.modelValue,
4324
4325
  lineNumbers: !0,
4325
- highlighters: [Ui(t)],
4326
+ highlighters: [Ki(t)],
4326
4327
  plugins: [
4327
- Mi(),
4328
4328
  Oi(),
4329
- Di({
4329
+ Fi(),
4330
+ ji({
4330
4331
  customSuggestions: t,
4331
4332
  minPrefixLength: 1,
4332
4333
  maxSuggestions: 20,
@@ -4334,10 +4335,10 @@ end;`, detail: "event(name: string)" },
4334
4335
  tooltip: {
4335
4336
  enabled: !0
4336
4337
  },
4337
- renderMenu: Ki,
4338
- renderTooltip: Hi
4338
+ renderMenu: Hi,
4339
+ renderTooltip: Wi
4339
4340
  }),
4340
- Fi()
4341
+ Di()
4341
4342
  ],
4342
4343
  styles: { fontSize: "14px" }
4343
4344
  }), n.onUpdate((o) => {
@@ -4349,22 +4350,22 @@ end;`, detail: "event(name: string)" },
4349
4350
  l("div", { id: "editor" }, null, -1)
4350
4351
  ])]));
4351
4352
  }
4352
- }), Gi = { class: "max-w-4xl mx-auto" }, Ji = {
4353
+ }), Ji = { class: "max-w-4xl mx-auto" }, Xi = {
4353
4354
  key: 0,
4354
4355
  class: "text-sm"
4355
- }, Xi = {
4356
+ }, qi = {
4356
4357
  key: 0,
4357
4358
  class: "text-gray-dark-25"
4358
- }, qi = {
4359
+ }, Yi = {
4359
4360
  key: 1,
4360
4361
  class: "text-red-600"
4361
- }, Yi = ["innerHTML"], Zi = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", Qi = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", cd = /* @__PURE__ */ L({
4362
+ }, Zi = ["innerHTML"], Qi = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", er = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", ud = /* @__PURE__ */ L({
4362
4363
  __name: "ScriptViewDocs",
4363
4364
  props: {
4364
4365
  lang: { default: "en" }
4365
4366
  },
4366
4367
  setup(e) {
4367
- const s = O(""), a = O(""), n = O(null), t = O(!1), o = O(null);
4368
+ const s = F(""), a = F(""), n = F(null), t = F(!1), o = F(null);
4368
4369
  let r = null;
4369
4370
  const d = () => new Promise((c, m) => {
4370
4371
  if (typeof window > "u" || typeof document > "u") {
@@ -4380,7 +4381,7 @@ end;`, detail: "event(name: string)" },
4380
4381
  return;
4381
4382
  }
4382
4383
  const p = document.createElement("script");
4383
- p.src = Qi, p.async = !0, p.onload = () => {
4384
+ p.src = er, p.async = !0, p.onload = () => {
4384
4385
  window.marked ? (window.marked.setOptions({
4385
4386
  gfm: !0,
4386
4387
  breaks: !0,
@@ -4411,7 +4412,7 @@ end;`, detail: "event(name: string)" },
4411
4412
  }
4412
4413
  t.value = !0, o.value = null, a.value = "";
4413
4414
  try {
4414
- const m = `${Zi}${c}.md`, p = await fetch(m);
4415
+ const m = `${Qi}${c}.md`, p = await fetch(m);
4415
4416
  if (!p.ok)
4416
4417
  throw new Error(`HTTP ${p.status}: ${p.statusText}`);
4417
4418
  const b = await p.text();
@@ -4432,27 +4433,27 @@ end;`, detail: "event(name: string)" },
4432
4433
  const m = c instanceof Error ? c.message : "";
4433
4434
  o.value = m, console.error("Initialization error:", c);
4434
4435
  }
4435
- }), (c, m) => (f(), g("div", Gi, [
4436
- t.value || o.value ? (f(), g("div", Ji, [
4437
- t.value ? (f(), g("span", Xi, "⏳")) : T("", !0),
4438
- o.value ? (f(), g("span", qi, "❌ " + w(o.value), 1)) : T("", !0)
4436
+ }), (c, m) => (f(), g("div", Ji, [
4437
+ t.value || o.value ? (f(), g("div", Xi, [
4438
+ t.value ? (f(), g("span", qi, "⏳")) : T("", !0),
4439
+ o.value ? (f(), g("span", Yi, "❌ " + w(o.value), 1)) : T("", !0)
4439
4440
  ])) : T("", !0),
4440
4441
  l("div", {
4441
4442
  class: "docs-content",
4442
4443
  innerHTML: a.value
4443
- }, null, 8, Yi)
4444
+ }, null, 8, Zi)
4444
4445
  ]));
4445
4446
  }
4446
- }), er = { class: "my-4" }, ud = /* @__PURE__ */ L({
4447
+ }), tr = { class: "my-4" }, md = /* @__PURE__ */ L({
4447
4448
  __name: "ScriptDialog",
4448
4449
  props: {
4449
4450
  idScript: {}
4450
4451
  },
4451
4452
  emits: ["add", "close"],
4452
4453
  setup(e, { emit: s }) {
4453
- const a = s, { defineField: n, handleSubmit: t, isValid: o } = Va({
4454
+ const a = s, { defineField: n, handleSubmit: t, isValid: o } = Ba({
4454
4455
  validationSchema: () => ({
4455
- name: [Ba, Ia(8)]
4456
+ name: [Ia, La(8)]
4456
4457
  })
4457
4458
  }), [r, d] = n("name"), u = () => {
4458
4459
  a("add", r.value);
@@ -4463,10 +4464,10 @@ end;`, detail: "event(name: string)" },
4463
4464
  e.idScript || (r.value = "boot");
4464
4465
  }), (c, m) => {
4465
4466
  const p = le, b = j;
4466
- return f(), g("div", er, [
4467
+ return f(), g("div", tr, [
4467
4468
  v(p, X({
4468
4469
  modelValue: H(r),
4469
- "onUpdate:modelValue": m[0] || (m[0] = (h) => ga(r) ? r.value = h : null)
4470
+ "onUpdate:modelValue": m[0] || (m[0] = (h) => va(r) ? r.value = h : null)
4470
4471
  }, H(d), {
4471
4472
  disabled: !e.idScript,
4472
4473
  label: c.$t("name")
@@ -4485,16 +4486,16 @@ end;`, detail: "event(name: string)" },
4485
4486
  ]);
4486
4487
  };
4487
4488
  }
4488
- }), tr = ["aria-label"], ar = { class: "hidden lg:inline" }, sr = ["aria-label"], lr = { class: "flex items-center gap-3 border-b border-gray-light-10/70 px-4 dark:border-white/10" }, nr = ["placeholder"], or = { class: "max-h-[55vh] overflow-y-auto p-2" }, ir = ["href"], rr = { class: "min-w-0" }, dr = { class: "flex flex-wrap items-baseline gap-2" }, cr = { class: "text-sm font-medium text-gray-dark-40 dark:text-white" }, ur = {
4489
+ }), ar = ["aria-label"], sr = { class: "hidden lg:inline" }, lr = ["aria-label"], nr = { class: "flex items-center gap-3 border-b border-gray-light-10/70 px-4 dark:border-white/10" }, or = ["placeholder"], ir = { class: "max-h-[55vh] overflow-y-auto p-2" }, rr = ["href"], dr = { class: "min-w-0" }, cr = { class: "flex flex-wrap items-baseline gap-2" }, ur = { class: "text-sm font-medium text-gray-dark-40 dark:text-white" }, mr = {
4489
4490
  key: 0,
4490
4491
  class: "text-xs uppercase tracking-wider text-gray-main"
4491
- }, mr = {
4492
+ }, fr = {
4492
4493
  key: 0,
4493
4494
  class: "mt-0.5 block truncate text-xs text-gray-dark-25 dark:text-gray-main"
4494
- }, fr = {
4495
+ }, gr = {
4495
4496
  key: 0,
4496
4497
  class: "px-4 py-10 text-center text-sm text-gray-dark-25 dark:text-gray-main"
4497
- }, md = /* @__PURE__ */ L({
4498
+ }, fd = /* @__PURE__ */ L({
4498
4499
  __name: "VisionSearch",
4499
4500
  props: {
4500
4501
  items: {},
@@ -4504,12 +4505,12 @@ end;`, detail: "event(name: string)" },
4504
4505
  emptyText: { default: "Ничего не найдено. Попробуйте другой запрос." }
4505
4506
  },
4506
4507
  setup(e) {
4507
- const s = e, a = O(!1), n = O(""), t = O(null), o = C(() => {
4508
+ const s = e, a = F(!1), n = F(""), t = F(null), o = C(() => {
4508
4509
  const i = n.value.trim().toLowerCase();
4509
4510
  return (i ? s.items.filter((m) => `${m.title} ${m.description ?? ""} ${m.group ?? ""}`.toLowerCase().includes(i)) : s.items).slice(0, 14);
4510
4511
  }), r = async () => {
4511
4512
  var i;
4512
- a.value = !0, n.value = "", await bt(), (i = t.value) == null || i.focus();
4513
+ a.value = !0, n.value = "", await xt(), (i = t.value) == null || i.focus();
4513
4514
  }, d = () => {
4514
4515
  a.value = !1, n.value = "";
4515
4516
  }, u = (i) => {
@@ -4534,10 +4535,10 @@ end;`, detail: "event(name: string)" },
4534
4535
  name: "search",
4535
4536
  size: 17
4536
4537
  }),
4537
- l("span", ar, w(e.label), 1),
4538
+ l("span", sr, w(e.label), 1),
4538
4539
  c[1] || (c[1] = l("kbd", { class: "hidden rounded border border-gray-light-10/60 px-1.5 py-0.5 font-mono text-xs text-gray-main dark:border-white/10 dark:text-gray-dark-25 lg:inline" }, "⌘K", -1))
4539
- ], 8, tr),
4540
- (f(), M(va, { to: "body" }, [
4540
+ ], 8, ar),
4541
+ (f(), O(pa, { to: "body" }, [
4541
4542
  a.value ? (f(), g("div", {
4542
4543
  key: 0,
4543
4544
  class: "fixed inset-0 z-[100] flex items-start justify-center overflow-y-auto bg-slate-900/40 px-4 pt-[12vh] backdrop-blur-sm dark:bg-black/60",
@@ -4549,7 +4550,7 @@ end;`, detail: "event(name: string)" },
4549
4550
  "aria-modal": "true",
4550
4551
  "aria-label": e.dialogLabel
4551
4552
  }, [
4552
- l("div", lr, [
4553
+ l("div", nr, [
4553
4554
  v(I, {
4554
4555
  name: "search",
4555
4556
  size: 18,
@@ -4562,12 +4563,12 @@ end;`, detail: "event(name: string)" },
4562
4563
  type: "search",
4563
4564
  placeholder: e.placeholder,
4564
4565
  class: "h-14 min-w-0 flex-1 bg-transparent text-sm text-gray-dark-40 placeholder:text-gray-main focus:outline-none dark:text-white dark:placeholder:text-gray-main"
4565
- }, null, 8, nr), [
4566
- [yt, n.value]
4566
+ }, null, 8, or), [
4567
+ [bt, n.value]
4567
4568
  ]),
4568
4569
  c[2] || (c[2] = l("kbd", { class: "hidden rounded border border-gray-light-10/60 px-1.5 py-0.5 font-mono text-xs text-gray-main dark:border-white/10 dark:text-gray-dark-25 sm:inline" }, "Esc", -1))
4569
4570
  ]),
4570
- l("div", or, [
4571
+ l("div", ir, [
4571
4572
  (f(!0), g(D, null, K(o.value, (m) => (f(), g("a", {
4572
4573
  key: `${m.group}-${m.to}-${m.title}`,
4573
4574
  href: m.to,
@@ -4579,22 +4580,22 @@ end;`, detail: "event(name: string)" },
4579
4580
  size: 16,
4580
4581
  class: "mt-0.5 shrink-0 text-gray-main"
4581
4582
  }),
4582
- l("span", rr, [
4583
- l("span", dr, [
4584
- l("span", cr, w(m.title), 1),
4585
- m.group ? (f(), g("span", ur, w(m.group), 1)) : T("", !0)
4583
+ l("span", dr, [
4584
+ l("span", cr, [
4585
+ l("span", ur, w(m.title), 1),
4586
+ m.group ? (f(), g("span", mr, w(m.group), 1)) : T("", !0)
4586
4587
  ]),
4587
- m.description ? (f(), g("span", mr, w(m.description), 1)) : T("", !0)
4588
+ m.description ? (f(), g("span", fr, w(m.description), 1)) : T("", !0)
4588
4589
  ])
4589
- ], 8, ir))), 128)),
4590
- o.value.length ? T("", !0) : (f(), g("p", fr, w(e.emptyText), 1))
4590
+ ], 8, rr))), 128)),
4591
+ o.value.length ? T("", !0) : (f(), g("p", gr, w(e.emptyText), 1))
4591
4592
  ])
4592
- ], 8, sr)
4593
+ ], 8, lr)
4593
4594
  ])) : T("", !0)
4594
4595
  ]))
4595
4596
  ], 64));
4596
4597
  }
4597
- }), gr = ["aria-label", "title"], fd = /* @__PURE__ */ L({
4598
+ }), vr = ["aria-label", "title"], gd = /* @__PURE__ */ L({
4598
4599
  __name: "VisionThemeToggle",
4599
4600
  props: {
4600
4601
  labelLight: { default: "Включить светлую тему" },
@@ -4603,11 +4604,11 @@ end;`, detail: "event(name: string)" },
4603
4604
  titleDark: { default: "Тёмная тема" }
4604
4605
  },
4605
4606
  setup(e) {
4606
- const s = O(Sa("theme") === "light" ? "light" : "dark"), a = (n) => {
4607
- s.value = n, Ta(n);
4607
+ const s = F(Ta("theme") === "light" ? "light" : "dark"), a = (n) => {
4608
+ s.value = n, Aa(n);
4608
4609
  };
4609
4610
  return he(async () => {
4610
- await bt(), setTimeout(() => a(s.value), 0);
4611
+ await xt(), setTimeout(() => a(s.value), 0);
4611
4612
  }), (n, t) => (f(), g("button", {
4612
4613
  type: "button",
4613
4614
  class: "grid size-9 place-items-center rounded-md text-gray-dark-25 transition-colors hover:bg-white/50 hover:text-violet-main dark:text-gray-light-10 dark:hover:bg-white/5 dark:hover:text-white",
@@ -4619,9 +4620,9 @@ end;`, detail: "event(name: string)" },
4619
4620
  name: s.value === "dark" ? "sun" : "moon",
4620
4621
  size: 18
4621
4622
  }, null, 8, ["name"])
4622
- ], 8, gr));
4623
+ ], 8, vr));
4623
4624
  }
4624
- }), gd = /* @__PURE__ */ L({
4625
+ }), vd = /* @__PURE__ */ L({
4625
4626
  __name: "VAutocomplete",
4626
4627
  props: {
4627
4628
  modelValue: { default: "" },
@@ -4635,7 +4636,7 @@ end;`, detail: "event(name: string)" },
4635
4636
  const a = s, n = (o) => a("update:modelValue", o), t = (o, r) => {
4636
4637
  o.click(new Event("click")), a("select", r);
4637
4638
  };
4638
- return (o, r) => (f(), M(Ht, X(o.$attrs, {
4639
+ return (o, r) => (f(), O(Wt, X(o.$attrs, {
4639
4640
  top: "50px",
4640
4641
  "hide-on-click": ""
4641
4642
  }), {
@@ -4650,7 +4651,7 @@ end;`, detail: "event(name: string)" },
4650
4651
  }, null, 8, ["model-value", "name", "message", "label", "onClick"])
4651
4652
  ]),
4652
4653
  default: x(({ on: d, isLgOrLarger: u }) => [
4653
- v(xt, {
4654
+ v(kt, {
4654
4655
  items: e.items,
4655
4656
  plain: !u,
4656
4657
  onClick: (i) => t(d, i)
@@ -4666,14 +4667,14 @@ end;`, detail: "event(name: string)" },
4666
4667
  _: 3
4667
4668
  }, 16));
4668
4669
  }
4669
- }), vr = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, pr = { class: "p-4" }, vd = /* @__PURE__ */ L({
4670
+ }), pr = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, hr = { class: "p-4" }, pd = /* @__PURE__ */ L({
4670
4671
  __name: "VExpansion",
4671
4672
  props: {
4672
4673
  label: { default: "" },
4673
4674
  value: { type: Boolean, default: !1 }
4674
4675
  },
4675
4676
  setup(e) {
4676
- const s = O(null), a = O(e.value), n = () => {
4677
+ const s = F(null), a = F(e.value), n = () => {
4677
4678
  if (!s.value) return;
4678
4679
  const o = s.value.querySelector(".v-expansion__content");
4679
4680
  o && (o.style.maxHeight = a.value ? `${o.scrollHeight}px` : "0");
@@ -4693,7 +4694,7 @@ end;`, detail: "event(name: string)" },
4693
4694
  }, [
4694
4695
  l("h4", null, w(e.label), 1),
4695
4696
  l("div", {
4696
- class: F(["transition text-gray-main", { "rotate-x-180": a.value }])
4697
+ class: M(["transition text-gray-main", { "rotate-x-180": a.value }])
4697
4698
  }, [
4698
4699
  v(I, {
4699
4700
  name: "chevron-down",
@@ -4701,17 +4702,17 @@ end;`, detail: "event(name: string)" },
4701
4702
  })
4702
4703
  ], 2)
4703
4704
  ]),
4704
- l("div", vr, [
4705
- l("div", pr, [
4705
+ l("div", pr, [
4706
+ l("div", hr, [
4706
4707
  B(o.$slots, "default")
4707
4708
  ])
4708
4709
  ])
4709
4710
  ], 512));
4710
4711
  }
4711
- }), hr = ["onDragstart", "onDragenter"], yr = {
4712
+ }), yr = ["onDragstart", "onDragenter"], br = {
4712
4713
  key: 0,
4713
4714
  class: "absolute inset-0 border border-dashed border-blue-600 rounded"
4714
- }, pd = /* @__PURE__ */ L({
4715
+ }, hd = /* @__PURE__ */ L({
4715
4716
  __name: "VDragDrop",
4716
4717
  props: {
4717
4718
  items: {},
@@ -4719,7 +4720,7 @@ end;`, detail: "event(name: string)" },
4719
4720
  },
4720
4721
  emits: ["update:items", "order-change"],
4721
4722
  setup(e, { emit: s }) {
4722
- const a = s, n = O(null), t = O(0), o = O(-1), r = ({ id: m }) => ({
4723
+ const a = s, n = F(null), t = F(0), o = F(-1), r = ({ id: m }) => ({
4723
4724
  "opacity-30 scale-105 z-10": n.value === m,
4724
4725
  "transition-transform duration-200": n.value !== m
4725
4726
  }), d = (m, p, b) => {
@@ -4743,7 +4744,7 @@ end;`, detail: "event(name: string)" },
4743
4744
  }, ["prevent"])),
4744
4745
  onDrop: c
4745
4746
  }, [
4746
- v(Rt, {
4747
+ v(Pt, {
4747
4748
  "enter-active-class": "transition-all duration-300 ease",
4748
4749
  "enter-from-class": "opacity-0 translate-x-8",
4749
4750
  "enter-to-class": "opacity-100 translate-x-0",
@@ -4755,7 +4756,7 @@ end;`, detail: "event(name: string)" },
4755
4756
  default: x(() => [
4756
4757
  (f(!0), g(D, null, K(e.items, (b, h) => (f(), g("div", {
4757
4758
  key: `${b.id}_drug`,
4758
- class: F(["relative group", r(b)]),
4759
+ class: M(["relative group", r(b)]),
4759
4760
  draggable: "true",
4760
4761
  onDragstart: (k) => d(k, b.id, h),
4761
4762
  onDragenter: (k) => u(h),
@@ -4769,17 +4770,17 @@ end;`, detail: "event(name: string)" },
4769
4770
  index: h,
4770
4771
  isDragging: n.value === b.id
4771
4772
  }),
4772
- o.value === h && n.value !== b.id ? (f(), g("div", yr)) : T("", !0)
4773
- ], 42, hr))), 128))
4773
+ o.value === h && n.value !== b.id ? (f(), g("div", br)) : T("", !0)
4774
+ ], 42, yr))), 128))
4774
4775
  ]),
4775
4776
  _: 3
4776
4777
  })
4777
4778
  ], 32));
4778
4779
  }
4779
- }), br = { class: "glass-inset overflow-x-auto rounded-md" }, xr = { class: "min-w-full" }, kr = { class: "border-y border-gray-light-10/70 py-3 dark:border-white/10" }, $r = { class: "bg-gray-light-30/70 dark:bg-white/[0.04]" }, wr = { class: "flex items-center" }, Cr = { class: "divide-y divide-gray-light-30 dark:divide-white/5" }, _r = ["onClick"], Sr = { class: "flex items-center text-gray-dark-30 dark:text-white/70" }, Tr = { key: 1 }, Ar = {
4780
+ }), xr = { class: "glass-inset overflow-x-auto rounded-md" }, kr = { class: "min-w-full" }, $r = { class: "border-y border-gray-light-10/70 py-3 dark:border-white/10" }, wr = { class: "bg-gray-light-30/70 dark:bg-white/[0.04]" }, Cr = { class: "flex items-center" }, _r = { class: "divide-y divide-gray-light-30 dark:divide-white/5" }, Sr = ["onClick"], Tr = { class: "flex items-center text-gray-dark-30 dark:text-white/70" }, Ar = { key: 1 }, zr = {
4780
4781
  class: "py-3 whitespace-nowrap",
4781
4782
  colspan: "9"
4782
- }, zr = { class: "flex items-center justify-center px-2 text-sm text-gray-dark-25 dark:text-white/50" }, hd = /* @__PURE__ */ L({
4783
+ }, Er = { class: "flex items-center justify-center px-2 text-sm text-gray-dark-25 dark:text-white/50" }, yd = /* @__PURE__ */ L({
4783
4784
  __name: "VTable",
4784
4785
  props: {
4785
4786
  headers: { default: () => [] },
@@ -4788,24 +4789,24 @@ end;`, detail: "event(name: string)" },
4788
4789
  emits: ["click"],
4789
4790
  setup(e, { emit: s }) {
4790
4791
  const a = s, n = (r, d) => a("click", r, d), t = (r) => (r == null ? void 0 : r.className) || "", o = (r, { key: d }) => r == null ? void 0 : r[d];
4791
- return (r, d) => (f(), g("div", br, [
4792
- l("table", xr, [
4793
- l("thead", kr, [
4794
- l("tr", $r, [
4792
+ return (r, d) => (f(), g("div", xr, [
4793
+ l("table", kr, [
4794
+ l("thead", $r, [
4795
+ l("tr", wr, [
4795
4796
  (f(!0), g(D, null, K(e.headers, (u, i) => (f(), g("th", {
4796
4797
  key: i,
4797
- class: F(["px-4 py-2 whitespace-nowrap font-normal text-gray-dark-25 dark:text-white/50", t(u)])
4798
+ class: M(["px-4 py-2 whitespace-nowrap font-normal text-gray-dark-25 dark:text-white/50", t(u)])
4798
4799
  }, [
4799
4800
  B(r.$slots, "header", {
4800
4801
  item: u,
4801
4802
  i
4802
4803
  }, () => [
4803
- l("div", wr, w(u.name), 1)
4804
+ l("div", Cr, w(u.name), 1)
4804
4805
  ])
4805
4806
  ], 2))), 128))
4806
4807
  ])
4807
4808
  ]),
4808
- l("tbody", Cr, [
4809
+ l("tbody", _r, [
4809
4810
  e.items.length ? (f(!0), g(D, { key: 0 }, K(e.items, (u, i) => (f(), g("tr", {
4810
4811
  key: i,
4811
4812
  class: "transition-colors hover:bg-cyan-main/[0.04] dark:hover:bg-white/[0.04]",
@@ -4815,7 +4816,7 @@ end;`, detail: "event(name: string)" },
4815
4816
  key: m,
4816
4817
  class: "py-2 px-4"
4817
4818
  }, [
4818
- l("div", Sr, [
4819
+ l("div", Tr, [
4819
4820
  B(r.$slots, c.key, {
4820
4821
  item: u,
4821
4822
  i
@@ -4824,9 +4825,9 @@ end;`, detail: "event(name: string)" },
4824
4825
  ])
4825
4826
  ])
4826
4827
  ]))), 128))
4827
- ], 8, _r))), 128)) : (f(), g("tr", Tr, [
4828
- l("td", Ar, [
4829
- l("div", zr, [
4828
+ ], 8, Sr))), 128)) : (f(), g("tr", Ar, [
4829
+ l("td", zr, [
4830
+ l("div", Er, [
4830
4831
  B(r.$slots, "empty", {}, () => [
4831
4832
  d[0] || (d[0] = E("The list is empty", -1))
4832
4833
  ])
@@ -4837,19 +4838,19 @@ end;`, detail: "event(name: string)" },
4837
4838
  ])
4838
4839
  ]));
4839
4840
  }
4840
- }), yd = /* @__PURE__ */ L({
4841
+ }), bd = /* @__PURE__ */ L({
4841
4842
  __name: "VTooltip",
4842
4843
  props: {
4843
4844
  timeout: {},
4844
4845
  disabled: { type: Boolean }
4845
4846
  },
4846
4847
  setup(e) {
4847
- const s = O(!1), a = () => {
4848
+ const s = F(!1), a = () => {
4848
4849
  e.disabled || (s.value = !0);
4849
4850
  }, n = () => {
4850
4851
  s.value = !1;
4851
- }, t = Ut("tooltip");
4852
- return Ea(t, () => n()), (o, r) => (f(), g("div", {
4852
+ }, t = Kt("tooltip");
4853
+ return Va(t, () => n()), (o, r) => (f(), g("div", {
4853
4854
  ref: "tooltip",
4854
4855
  class: "relative v-tooltip",
4855
4856
  onMouseenter: a,
@@ -4861,7 +4862,7 @@ end;`, detail: "event(name: string)" },
4861
4862
  }, [
4862
4863
  B(o.$slots, "activator")
4863
4864
  ]),
4864
- v(ht, {
4865
+ v(yt, {
4865
4866
  "enter-active-class": "duration-300 ease-out",
4866
4867
  "enter-from-class": "transform opacity-0 -translate-y-2",
4867
4868
  "enter-to-class": "opacity-100 translate-y-0",
@@ -4878,80 +4879,80 @@ end;`, detail: "event(name: string)" },
4878
4879
  }
4879
4880
  });
4880
4881
  export {
4881
- Fr as AppAside,
4882
- Dr as AppHeader,
4883
- Rr as AppNav,
4884
- jr as AppNotification,
4885
- Nr as AppOverlay,
4886
- Pr as AppProgress,
4887
- Jr as BlockBreadcrumb,
4888
- Jt as BlockDataSettings,
4889
- cn as BlockHost,
4890
- Zr as BlockImport,
4891
- Ur as BlockInfo,
4892
- qr as BlockPicker,
4893
- Kr as BlockScan,
4894
- Hr as BlockService,
4895
- hn as BlockShell,
4896
- Wr as BlockStatus,
4897
- Gr as BlockUpdate,
4898
- Yr as BlockView,
4882
+ Dr as AppAside,
4883
+ jr as AppHeader,
4884
+ Pr as AppNav,
4885
+ Nr as AppNotification,
4886
+ Rr as AppOverlay,
4887
+ Ur as AppProgress,
4888
+ Xr as BlockBreadcrumb,
4889
+ Xt as BlockDataSettings,
4890
+ un as BlockHost,
4891
+ Qr as BlockImport,
4892
+ Kr as BlockInfo,
4893
+ Yr as BlockPicker,
4894
+ Hr as BlockScan,
4895
+ Wr as BlockService,
4896
+ yn as BlockShell,
4897
+ Gr as BlockStatus,
4898
+ Jr as BlockUpdate,
4899
+ Zr as BlockView,
4899
4900
  je as CardBase,
4900
- ad as CardButton,
4901
- sd as CardDate,
4902
- ld as CardDimmer,
4903
- nd as CardInfo,
4904
- od as CardInput,
4905
- id as CardList,
4906
- Wa as CardNotification,
4907
- Ct as DEFAULT_METRIC_STYLE,
4908
- Wi as DEFAULT_SUGGESTIONS,
4909
- Qr as EnergyFlowBlock,
4910
- kd as ICONS,
4911
- $d as ICON_NAMES,
4912
- rd as ItemEdit,
4913
- vt as MAX_METRICS,
4901
+ sd as CardButton,
4902
+ ld as CardDate,
4903
+ nd as CardDimmer,
4904
+ od as CardInfo,
4905
+ id as CardInput,
4906
+ rd as CardList,
4907
+ Ga as CardNotification,
4908
+ _t as DEFAULT_METRIC_STYLE,
4909
+ Gi as DEFAULT_SUGGESTIONS,
4910
+ ed as EnergyFlowBlock,
4911
+ $d as ICONS,
4912
+ wd as ICON_NAMES,
4913
+ dd as ItemEdit,
4914
+ pt as MAX_METRICS,
4914
4915
  We as MAX_METRIC_ARGS,
4915
- ud as ScriptDialog,
4916
- dd as ScriptEditor,
4917
- cd as ScriptViewDocs,
4918
- gd as VAutocomplete,
4916
+ md as ScriptDialog,
4917
+ cd as ScriptEditor,
4918
+ ud as ScriptViewDocs,
4919
+ vd as VAutocomplete,
4919
4920
  j as VButton,
4920
- An as VCard,
4921
- li as VCheckbox,
4921
+ zn as VCard,
4922
+ ni as VCheckbox,
4922
4923
  Se as VDialog,
4923
- pd as VDragDrop,
4924
- Ht as VDropdown,
4925
- vd as VExpansion,
4926
- Zs as VFile,
4924
+ hd as VDragDrop,
4925
+ Wt as VDropdown,
4926
+ pd as VExpansion,
4927
+ Qs as VFile,
4927
4928
  He as VFunc,
4928
4929
  I as VIcon,
4929
- Kt as VIconLogo,
4930
- pa as VIconLogoMini,
4931
- xt as VList,
4932
- $t as VListObject,
4933
- ba as VLoader,
4934
- wd as VPopup,
4930
+ Ht as VIconLogo,
4931
+ ha as VIconLogoMini,
4932
+ kt as VList,
4933
+ wt as VListObject,
4934
+ xa as VLoader,
4935
+ Cd as VPopup,
4935
4936
  ge as VSelect,
4936
- hd as VTable,
4937
- ti as VTabs,
4937
+ yd as VTable,
4938
+ ai as VTabs,
4938
4939
  le as VTextField,
4939
- wt as VTextWrapper,
4940
- yd as VTooltip,
4941
- ya as VWifiIcon,
4942
- md as VisionSearch,
4943
- fd as VisionThemeToggle,
4944
- io as createBlockContext,
4945
- Eo as createDeviceBlockStorage,
4946
- ro as createDeviceContext,
4947
- ed as deviceBlockStorage,
4948
- co as deviceProvider,
4949
- oo as energyFlowDefinition,
4950
- Ui as fullHighlighter,
4951
- gt as metricClasses,
4952
- St as resolveBlockBindings,
4953
- El as resolveBlockMetrics,
4954
- zl as resolveMetric,
4955
- Xr as resolveMetricArgValues,
4956
- td as useBlock
4940
+ Ct as VTextWrapper,
4941
+ bd as VTooltip,
4942
+ ba as VWifiIcon,
4943
+ fd as VisionSearch,
4944
+ gd as VisionThemeToggle,
4945
+ ro as createBlockContext,
4946
+ Vo as createDeviceBlockStorage,
4947
+ co as createDeviceContext,
4948
+ td as deviceBlockStorage,
4949
+ uo as deviceProvider,
4950
+ io as energyFlowDefinition,
4951
+ Ki as fullHighlighter,
4952
+ vt as metricClasses,
4953
+ Tt as resolveBlockBindings,
4954
+ Vl as resolveBlockMetrics,
4955
+ El as resolveMetric,
4956
+ qr as resolveMetricArgValues,
4957
+ ad as useBlock
4957
4958
  };