vuesp-components 2.5.0 → 2.5.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,6 +1,6 @@
1
- import { defineComponent as E, resolveComponent as Ut, openBlock as m, createElementBlock as v, Fragment as D, createCommentVNode as T, createElementVNode as l, normalizeClass as j, createVNode as p, withCtx as x, createBlock as I, renderSlot as M, markRaw as ne, computed as _, withModifiers as te, toDisplayString as w, unref as J, TransitionGroup as Kt, renderList as H, mergeProps as q, ref as L, watch as Te, resolveDynamicComponent as Re, Transition as kt, normalizeStyle as Me, createTextVNode as A, normalizeProps as ae, guardReactiveProps as oe, onMounted as ke, onUnmounted as Ze, reactive as Wt, withDirectives as dt, vShow as bn, vModelText as $t, nextTick as wt, toValue as xn, useTemplateRef as Gt, createSlots as kn, isRef as $n, Teleport as wn } from "vue";
2
- import { a as _n, V as Jt, j as R, h as Xt, g as _t, k as Pe, l as Cn, d as Sn, i as zn, e as he, _ as Ae, f as ie, m as Q, b as Tn } from "../CardMain.vue_vue_type_style_index_0_lang-MxVgTFJ8.js";
3
- import { n as vc } from "../CardMain.vue_vue_type_style_index_0_lang-MxVgTFJ8.js";
1
+ import { defineComponent as E, resolveComponent as Ut, openBlock as m, createElementBlock as g, Fragment as D, createCommentVNode as T, createElementVNode as l, normalizeClass as j, createVNode as p, withCtx as x, createBlock as I, renderSlot as M, markRaw as ne, computed as _, withModifiers as te, toDisplayString as w, unref as J, TransitionGroup as Kt, renderList as H, mergeProps as q, ref as L, watch as Te, resolveDynamicComponent as Re, Transition as kt, normalizeStyle as Me, createTextVNode as A, normalizeProps as ae, guardReactiveProps as oe, onMounted as ke, onUnmounted as Ze, reactive as Wt, withDirectives as dt, vShow as bn, vModelText as $t, nextTick as wt, toValue as xn, useTemplateRef as Gt, createSlots as kn, isRef as $n, Teleport as wn } from "vue";
2
+ import { a as _n, V as Jt, j as R, h as Xt, g as _t, k as Pe, l as Cn, d as Sn, i as zn, e as he, _ as Ae, f as ie, m as Q, b as Tn } from "../CardMain.vue_vue_type_style_index_0_lang-CCrFdlnW.js";
3
+ import { n as gc } from "../CardMain.vue_vue_type_style_index_0_lang-CCrFdlnW.js";
4
4
  import { f as An, t as Vn, g as Bn, u as st, s as En, d as Mn, m as Ln, c as In } from "../app-B45sALrX.js";
5
5
  import { d as Ct, e as On, f as Fn, o as Dn } from "../useDialog-BdpYSys6.js";
6
6
  import { useForm as jn } from "../composables/index.es.js";
@@ -18,17 +18,17 @@ const Hn = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
18
18
  };
19
19
  return (n, o) => {
20
20
  const i = Ut("router-link");
21
- return m(), v(D, null, [
22
- e.isSidebar ? (m(), v("div", {
21
+ return m(), g(D, null, [
22
+ e.isSidebar ? (m(), g("div", {
23
23
  key: 0,
24
24
  class: "lg:hidden overlay fixed left-0 top-0 h-full w-full bg-black/40 z-10 bg-blur",
25
25
  onClick: a
26
26
  })) : T("", !0),
27
27
  l("aside", {
28
- class: j([e.isSidebar ? "translate-x-0 lg:w-[90px]" : "-translate-x-full", "overflow-x-hidden fixed top-0 left-0 z-10 flex lg:static h-full w-[290px] flex-col overflow-y-auto border-r border-gray-200/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: j([e.isSidebar ? "translate-x-0 lg:w-[90px]" : "-translate-x-full", "overflow-x-hidden fixed top-0 left-0 z-10 flex lg:static h-full w-[290px] 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: j([e.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 border-b border-gray-200/60 pt-6 pb-6 justify-between dark:border-white/5"])
31
+ class: j([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
  p(i, { to: "/" }, {
34
34
  default: x(() => [
@@ -56,7 +56,7 @@ const Hn = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
56
56
  height: "1.2em"
57
57
  };
58
58
  function Kn(e, t) {
59
- return m(), v("svg", Un, [...t[0] || (t[0] = [
59
+ return m(), g("svg", Un, [...t[0] || (t[0] = [
60
60
  l("path", {
61
61
  fill: "currentColor",
62
62
  d: "M4.5 10.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S6 12.825 6 12s-.675-1.5-1.5-1.5m15 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S21 12.825 21 12s-.675-1.5-1.5-1.5m-7.5 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5s1.5-.675 1.5-1.5s-.675-1.5-1.5-1.5"
@@ -69,7 +69,7 @@ const qt = ne({ name: "ri-more-line", render: Kn }), Wn = {
69
69
  height: "1.2em"
70
70
  };
71
71
  function Gn(e, t) {
72
- return m(), v("svg", Wn, [...t[0] || (t[0] = [
72
+ return m(), g("svg", Wn, [...t[0] || (t[0] = [
73
73
  l("path", {
74
74
  fill: "currentColor",
75
75
  d: "M4 18h2v2h12V4H6v2H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2-7h7v2H6v3l-5-4l5-4z"
@@ -82,7 +82,7 @@ const Jn = ne({ name: "ri-logout-box-line", render: Gn }), Xn = {
82
82
  height: "1.2em"
83
83
  };
84
84
  function qn(e, t) {
85
- return m(), v("svg", Xn, [...t[0] || (t[0] = [
85
+ return m(), g("svg", Xn, [...t[0] || (t[0] = [
86
86
  l("path", {
87
87
  fill: "currentColor",
88
88
  d: "M5 18h14v-6.969C19 7.148 15.866 4 12 4s-7 3.148-7 7.031zm7-16c4.97 0 9 4.043 9 9.031V20H3v-8.969C3 6.043 7.03 2 12 2M9.5 21h5a2.5 2.5 0 0 1-5 0"
@@ -95,7 +95,7 @@ const Yt = ne({ name: "ri-notification-line", render: qn }), Yn = {
95
95
  height: "1.2em"
96
96
  };
97
97
  function Zn(e, t) {
98
- return m(), v("svg", Yn, [...t[0] || (t[0] = [
98
+ return m(), g("svg", Yn, [...t[0] || (t[0] = [
99
99
  l("path", {
100
100
  fill: "currentColor",
101
101
  d: "M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2h.1A6.98 6.98 0 0 0 10 7m-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938A8 8 0 0 0 4 12"
@@ -108,7 +108,7 @@ const Qn = ne({ name: "ri-moon-line", render: Zn }), el = {
108
108
  height: "1.2em"
109
109
  };
110
110
  function tl(e, t) {
111
- return m(), v("svg", el, [...t[0] || (t[0] = [
111
+ return m(), g("svg", el, [...t[0] || (t[0] = [
112
112
  l("path", {
113
113
  fill: "currentColor",
114
114
  d: "M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"
@@ -121,7 +121,7 @@ const nl = ne({ name: "ri-sun-line", render: tl }), ll = {
121
121
  height: "1.2em"
122
122
  };
123
123
  function sl(e, t) {
124
- return m(), v("svg", ll, [...t[0] || (t[0] = [
124
+ return m(), g("svg", ll, [...t[0] || (t[0] = [
125
125
  l("path", {
126
126
  fill: "currentColor",
127
127
  d: "M3 4h18v2H3zm0 7h18v2H3zm0 7h18v2H3z"
@@ -146,8 +146,8 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
146
146
  d == 1 && u(), d == 2 && i(f), d == 3 && c();
147
147
  };
148
148
  return (d, f) => {
149
- const g = al, b = Ut("router-link"), h = nl, $ = Qn, O = Yt, F = Jn, B = qt;
150
- return m(), v("header", ol, [
149
+ const v = al, b = Ut("router-link"), h = nl, $ = Qn, O = Yt, F = Jn, B = qt;
150
+ return m(), g("header", ol, [
151
151
  f[3] || (f[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)),
152
152
  l("div", il, [
153
153
  l("div", rl, [
@@ -156,7 +156,7 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
156
156
  onClick: o
157
157
  }, {
158
158
  default: x(() => [
159
- p(g, { class: "size-5" })
159
+ p(v, { class: "size-5" })
160
160
  ]),
161
161
  _: 1
162
162
  }),
@@ -242,7 +242,7 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
242
242
  ]);
243
243
  };
244
244
  }
245
- }), fl = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, vl = { class: "flex-auto text-xs" }, gl = { class: "text-gray-500 dark:text-gray-400 mt-1" }, pl = /* @__PURE__ */ E({
245
+ }), fl = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, gl = { class: "flex-auto text-xs" }, vl = { class: "text-gray-dark-25 dark:text-gray-main mt-1" }, pl = /* @__PURE__ */ E({
246
246
  __name: "CardNotification",
247
247
  props: {
248
248
  empty: {},
@@ -258,7 +258,7 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
258
258
  const s = e, a = t, n = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], o = (u) => n[u], i = (u) => a("remove", u), c = (u) => a("read", u);
259
259
  return (u, r) => {
260
260
  const d = Yt, f = Pe;
261
- return m(), v("div", fl, [
261
+ return m(), g("div", fl, [
262
262
  l("div", {
263
263
  class: j(["absolute left-0 top-0 w-[3px] h-full", o(s.color)])
264
264
  }, null, 2),
@@ -277,9 +277,9 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
277
277
  ]),
278
278
  _: 1
279
279
  }),
280
- l("div", vl, [
280
+ l("div", gl, [
281
281
  l("div", null, w(s.text), 1),
282
- l("div", gl, w(J(An)(s.date)) + " (" + w(J(Vn)(s.date)) + ")", 1)
282
+ l("div", vl, w(J(An)(s.date)) + " (" + w(J(Vn)(s.date)) + ")", 1)
283
283
  ]),
284
284
  p(R, {
285
285
  class: "shrink-0",
@@ -307,18 +307,18 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
307
307
  emits: ["close", "remove", "read"],
308
308
  setup(e, { emit: t }) {
309
309
  const s = e, a = t, n = _(() => !!s.notifications.find((r) => r.isNew)), o = _(() => !!s.notifications.length), i = (r) => a("close", r), c = (r) => a("remove", r), u = (r) => a("read", r);
310
- return (r, d) => (m(), v(D, null, [
311
- s.value ? (m(), v("div", {
310
+ return (r, d) => (m(), g(D, null, [
311
+ s.value ? (m(), g("div", {
312
312
  key: 0,
313
313
  class: "overlay fixed left-0 top-0 h-full w-full bg-black/40 bg-blur",
314
314
  onClick: i
315
315
  })) : T("", !0),
316
316
  l("aside", {
317
- class: j([s.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-[73px] right-0 flex h-[calc(100%-73px)] w-[290px] md:w-80 border-l border-gray-200/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"])
317
+ class: j([s.value ? "translate-x-0 " : "translate-x-full", "overflow-x-hidden fixed top-[73px] right-0 flex h-[calc(100%-73px)] w-[290px] 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"])
318
318
  }, [
319
319
  l("div", hl, [
320
320
  M(r.$slots, "header", { isNew: n.value }),
321
- o.value ? (m(), v("div", yl, [
321
+ o.value ? (m(), g("div", yl, [
322
322
  p(Kt, {
323
323
  "enter-active-class": "transition-all duration-300 ",
324
324
  "enter-from-class": "opacity-0 translate-x-1/2",
@@ -328,15 +328,15 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
328
328
  "leave-to-class": "opacity-0 translate-x-1/2"
329
329
  }, {
330
330
  default: x(() => [
331
- (m(!0), v(D, null, H(s.notifications, (f) => (m(), v("div", {
331
+ (m(!0), g(D, null, H(s.notifications, (f) => (m(), g("div", {
332
332
  key: f.date,
333
333
  class: "relative"
334
334
  }, [
335
335
  M(r.$slots, "card", { item: f }, () => [
336
336
  p(pl, q({ ref_for: !0 }, f, {
337
- class: "rounded-md border border-gray-200/60 bg-white/50 dark:border-white/5 dark:bg-white/[0.03]",
338
- onRemove: (g) => c(f),
339
- onRead: (g) => u(f)
337
+ class: "rounded-md border border-gray-light-10/60 bg-white/50 dark:border-white/5 dark:bg-white/[0.03]",
338
+ onRemove: (v) => c(f),
339
+ onRead: (v) => u(f)
340
340
  }), null, 16, ["onRemove", "onRead"])
341
341
  ])
342
342
  ]))), 128))
@@ -350,7 +350,7 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
350
350
  }
351
351
  }), bl = {}, xl = { class: "fixed h-full w-full top-0 left-0 z-20" }, kl = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
352
352
  function $l(e, t) {
353
- return m(), v("div", xl, [
353
+ return m(), g("div", xl, [
354
354
  t[0] || (t[0] = l("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
355
355
  l("div", kl, [
356
356
  M(e.$slots, "default")
@@ -363,7 +363,7 @@ const Md = /* @__PURE__ */ Cn(bl, [["render", $l]]), wl = {
363
363
  height: "1.2em"
364
364
  };
365
365
  function _l(e, t) {
366
- return m(), v("svg", wl, [...t[0] || (t[0] = [
366
+ return m(), g("svg", wl, [...t[0] || (t[0] = [
367
367
  l("path", {
368
368
  fill: "currentColor",
369
369
  d: "m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"
@@ -386,8 +386,8 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
386
386
  e.isSidebar && s("sidebar", !e.isSidebar), a.value !== r && (a.value = a.value === r ? "" : r);
387
387
  }, o = (r) => e.fullPath === r, i = (r) => r ? e.fullPath === r || e.fullPath.startsWith(r) : !1, c = (r, d) => !r.path || d === "/" || r.path === "/" ? !1 : r.path === d || d.includes(r.path), u = (r, d) => (r == null ? void 0 : r.find(
388
388
  (f) => {
389
- var g;
390
- return c(f, d) || ((g = f.children) == null ? void 0 : g.some(
389
+ var v;
390
+ return c(f, d) || ((v = f.children) == null ? void 0 : v.some(
391
391
  (b) => {
392
392
  var h;
393
393
  return c(b, d) || ((h = b.children) == null ? void 0 : h.some(($) => c($, d)));
@@ -403,38 +403,38 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
403
403
  }
404
404
  ), (r, d) => {
405
405
  const f = Cl;
406
- return m(), v("nav", null, [
406
+ return m(), g("nav", null, [
407
407
  l("ul", Sl, [
408
- (m(!0), v(D, null, H(e.menu, (g) => (m(), v("li", {
409
- key: g.name
408
+ (m(!0), g(D, null, H(e.menu, (v) => (m(), g("li", {
409
+ key: v.name
410
410
  }, [
411
- (m(), I(Re(g.path ? "router-link" : "span"), {
412
- to: g.path,
413
- class: j(["flex gap-2 items-center px-3 py-2 rounded", o(g.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
414
- onClick: te((b) => n(g), ["prevent", "stop"])
411
+ (m(), I(Re(v.path ? "router-link" : "span"), {
412
+ to: v.path,
413
+ class: j(["flex gap-2 items-center px-3 py-2 rounded", o(v.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
414
+ onClick: te((b) => n(v), ["prevent", "stop"])
415
415
  }, {
416
416
  default: x(() => [
417
417
  l("div", zl, [
418
- M(r.$slots, "icon", { item: g })
418
+ M(r.$slots, "icon", { item: v })
419
419
  ]),
420
420
  l("span", {
421
421
  class: j(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
422
- }, w(g.name), 3),
422
+ }, w(v.name), 3),
423
423
  l("button", {
424
424
  class: j(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
425
- onClick: te((b) => n(g), ["prevent", "stop"])
425
+ onClick: te((b) => n(v), ["prevent", "stop"])
426
426
  }, [
427
- g.children ? (m(), I(f, { key: 0 })) : T("", !0)
427
+ v.children ? (m(), I(f, { key: 0 })) : T("", !0)
428
428
  ], 10, Tl)
429
429
  ]),
430
430
  _: 2
431
431
  }, 1032, ["to", "class", "onClick"])),
432
- g.children ? (m(), v("div", {
432
+ v.children ? (m(), g("div", {
433
433
  key: 0,
434
- class: j(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", a.value === g.name ? "block" : "hidden"]])
434
+ class: j(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", a.value === v.name ? "block" : "hidden"]])
435
435
  }, [
436
436
  l("ul", Al, [
437
- (m(!0), v(D, null, H(g.children, ({ name: b, path: h, icon: $, children: O }) => (m(), v("li", { key: b }, [
437
+ (m(!0), g(D, null, H(v.children, ({ name: b, path: h, icon: $, children: O }) => (m(), g("li", { key: b }, [
438
438
  (m(), I(Re(h ? "router-link" : "span"), {
439
439
  to: h,
440
440
  class: j(["flex gap-2 items-center px-3 py-2 rounded", o(h) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"])
@@ -451,9 +451,9 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
451
451
  ]),
452
452
  _: 2
453
453
  }, 1032, ["to", "class"])),
454
- O != null && O.length && i(h) ? (m(), v("div", Ml, [
454
+ O != null && O.length && i(h) ? (m(), g("div", Ml, [
455
455
  l("ul", Ll, [
456
- (m(!0), v(D, null, H(O, (F) => (m(), v("li", {
456
+ (m(!0), g(D, null, H(O, (F) => (m(), g("li", {
457
457
  key: F.name
458
458
  }, [
459
459
  (m(), I(Re(F.path ? "router-link" : "span"), {
@@ -490,7 +490,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
490
490
  class: "text-green-600"
491
491
  }, Nl = {
492
492
  key: 1,
493
- class: "relative mt-2 block h-4 w-full select-none overflow-hidden rounded-md bg-gray-200/70 dark:bg-white/10"
493
+ class: "relative mt-2 block h-4 w-full select-none overflow-hidden rounded-md bg-gray-light-10/70 dark:bg-white/10"
494
494
  }, Pl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Hl = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, Id = /* @__PURE__ */ E({
495
495
  __name: "AppProgress",
496
496
  props: {
@@ -521,25 +521,25 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
521
521
  "leave-to-class": "transform opacity-0 -translate-y-8"
522
522
  }, {
523
523
  default: x(() => [
524
- t.value ? (m(), v("div", Dl, [
524
+ t.value ? (m(), g("div", Dl, [
525
525
  l("div", jl, [
526
526
  M(i.$slots, "default", { isDone: a.value }, () => [
527
527
  c[1] || (c[1] = l("div", { class: "flex-auto" }, "Progress...", -1)),
528
- a.value ? (m(), v("span", Rl, "Done")) : T("", !0)
528
+ a.value ? (m(), g("span", Rl, "Done")) : T("", !0)
529
529
  ]),
530
530
  l("button", {
531
- class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
531
+ class: "cursor-pointer transition text-gray-dark-30 dark:text-gray-main self-start hover:text-gray-dark-25",
532
532
  onClick: c[0] || (c[0] = (r) => t.value = !1)
533
533
  }, [
534
534
  p(u, { class: "size-4" })
535
535
  ])
536
536
  ]),
537
- s.value ? (m(), v("div", {
537
+ s.value ? (m(), g("div", {
538
538
  key: 0,
539
539
  class: "h-[2px] fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
540
540
  style: Me(`width: ${n.value}%`)
541
541
  }, null, 4)) : T("", !0),
542
- s.value ? (m(), v("div", Nl, [
542
+ s.value ? (m(), g("div", Nl, [
543
543
  l("div", Pl, w(n.value) + "%", 1),
544
544
  l("div", {
545
545
  class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
@@ -554,7 +554,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
554
554
  });
555
555
  };
556
556
  }
557
- }), Ul = { class: "my-4 text-gray-700 dark:text-gray-400" }, Kl = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Wl = { class: "flex gap-2" }, Gl = { class: "text-gray-700 dark:text-gray-400" }, Jl = { class: "flex gap-2" }, Xl = { class: "flex gap-2" }, ql = { class: "text-gray-700 dark:text-gray-400" }, Yl = { class: "flex gap-2" }, Zl = { class: "text-gray-700 dark:text-gray-400" }, Ql = { class: "flex flex-col gap-4 text-sm" }, es = { class: "flex gap-4" }, Od = /* @__PURE__ */ E({
557
+ }), Ul = { class: "my-4 text-gray-dark-30 dark:text-gray-main" }, Kl = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Wl = { class: "flex gap-2" }, Gl = { class: "text-gray-dark-30 dark:text-gray-main" }, Jl = { class: "flex gap-2" }, Xl = { class: "flex gap-2" }, ql = { class: "text-gray-dark-30 dark:text-gray-main" }, Yl = { class: "flex gap-2" }, Zl = { class: "text-gray-dark-30 dark:text-gray-main" }, Ql = { class: "flex flex-col gap-4 text-sm" }, es = { class: "flex gap-4" }, Od = /* @__PURE__ */ E({
558
558
  __name: "BlockInfo",
559
559
  props: {
560
560
  pkg: {},
@@ -575,7 +575,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
575
575
  });
576
576
  return (a, n) => {
577
577
  var o, i;
578
- return m(), v("div", null, [
578
+ return m(), g("div", null, [
579
579
  l("p", Ul, w((o = e.pkg) == null ? void 0 : o.description), 1),
580
580
  l("div", Kl, [
581
581
  l("div", Wl, [
@@ -594,7 +594,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
594
594
  l("span", Zl, w(e.id.toString(16)), 1)
595
595
  ])
596
596
  ]),
597
- n[4] || (n[4] = l("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
597
+ n[4] || (n[4] = l("hr", { class: "dark:text-gray-dark-30 text-gray-light-10 my-2" }, null, -1)),
598
598
  l("div", Ql, [
599
599
  l("div", es, [
600
600
  M(a.$slots, "links", { links: s.value })
@@ -603,7 +603,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
603
603
  ]);
604
604
  };
605
605
  }
606
- }), ts = ["onClick"], ns = { class: "mr-2" }, ls = { class: "text-sm" }, ss = { class: "text-gray-400 text-xs" }, as = {
606
+ }), ts = ["onClick"], ns = { class: "mr-2" }, ls = { class: "text-sm" }, ss = { class: "text-gray-main text-xs" }, as = {
607
607
  key: 0,
608
608
  class: "flex justify-center"
609
609
  }, os = { class: "flex justify-end mt-4" }, Fd = /* @__PURE__ */ E({
@@ -616,28 +616,28 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
616
616
  const s = t, a = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], n = (i) => s("select", i), o = (i) => s("scan", i);
617
617
  return (i, c) => {
618
618
  const u = Sn, r = _t, d = zn, f = R;
619
- return m(), v("div", null, [
619
+ return m(), g("div", null, [
620
620
  p(r, {
621
621
  items: e.items,
622
622
  class: "bg-transparent! ring-0!"
623
623
  }, {
624
- default: x(({ item: g }) => [
624
+ default: x(({ item: v }) => [
625
625
  l("div", {
626
626
  class: "flex items-center w-full",
627
- onClick: (b) => n(g)
627
+ onClick: (b) => n(v)
628
628
  }, [
629
629
  l("div", ns, [
630
- p(u, ae(oe(g)), null, 16)
630
+ p(u, ae(oe(v)), null, 16)
631
631
  ]),
632
632
  l("div", null, [
633
- l("div", ls, w(g.ssid), 1),
634
- l("div", ss, w(i.$t("security")) + " : " + w(a[g.encryptionType] || "unknown"), 1)
633
+ l("div", ls, w(v.ssid), 1),
634
+ l("div", ss, w(i.$t("security")) + " : " + w(a[v.encryptionType] || "unknown"), 1)
635
635
  ])
636
636
  ], 8, ts)
637
637
  ]),
638
638
  _: 1
639
639
  }, 8, ["items"]),
640
- e.items.length ? T("", !0) : (m(), v("div", as, [
640
+ e.items.length ? T("", !0) : (m(), g("div", as, [
641
641
  p(d, { class: "text-cyan-main" })
642
642
  ])),
643
643
  l("div", os, [
@@ -654,7 +654,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
654
654
  ]);
655
655
  };
656
656
  }
657
- }), is = { class: "md:flex items-center mb-4" }, rs = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, ds = { class: "md:max-w-50" }, cs = { class: "flex items-center mb-4" }, us = { class: "flex-auto text-gray-600 bg:text-gray-400" }, ms = { class: "flex items-center mb-4" }, fs = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Dd = /* @__PURE__ */ E({
657
+ }), is = { class: "md:flex items-center mb-4" }, rs = { class: "flex-auto text-gray-dark-25 bg:text-gray-main mb-2" }, ds = { class: "md:max-w-50" }, cs = { class: "flex items-center mb-4" }, us = { class: "flex-auto text-gray-dark-25 bg:text-gray-main" }, ms = { class: "flex items-center mb-4" }, fs = { class: "flex-auto text-gray-dark-25 bg:text-gray-main" }, Dd = /* @__PURE__ */ E({
658
658
  __name: "BlockService",
659
659
  props: {
660
660
  locale: {},
@@ -668,7 +668,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
668
668
  };
669
669
  return (o, i) => {
670
670
  const c = he, u = R;
671
- return m(), v(D, null, [
671
+ return m(), g(D, null, [
672
672
  l("div", is, [
673
673
  l("div", rs, w(o.$t("selectLang")), 1),
674
674
  l("div", ds, [
@@ -710,7 +710,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
710
710
  ], 64);
711
711
  };
712
712
  }
713
- }), vs = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, gs = { class: "flex flex-col w-full items-center gap-2" }, ps = ["title"], hs = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-900 dark:text-white" }, ys = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, bs = { class: "flex justify-between w-full text-xs" }, xs = { class: "text-gray-500 dark:text-white/50" }, ks = { class: "text-sm" }, $s = { class: "text-gray-500 dark:text-white/50 text-left" }, ws = { class: "text-right text-xs" }, jd = /* @__PURE__ */ E({
713
+ }), gs = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, vs = { class: "flex flex-col w-full items-center gap-2" }, ps = ["title"], hs = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-dark-40 dark:text-white" }, ys = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, bs = { class: "flex justify-between w-full text-xs" }, xs = { class: "text-gray-dark-25 dark:text-white/50" }, ks = { class: "text-sm" }, $s = { class: "text-gray-dark-25 dark:text-white/50 text-left" }, ws = { class: "text-right text-xs" }, jd = /* @__PURE__ */ E({
714
714
  __name: "BlockStatus",
715
715
  props: {
716
716
  pkg: {},
@@ -746,11 +746,11 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
746
746
  }), Ze(() => {
747
747
  t.value = 0, s && clearTimeout(s);
748
748
  }), (u, r) => {
749
- var d, f, g;
750
- return m(), v("div", vs, [
751
- l("div", gs, [
749
+ var d, f, v;
750
+ return m(), g("div", gs, [
751
+ l("div", vs, [
752
752
  l("div", {
753
- class: "relative block h-4 w-full select-none overflow-hidden rounded-md bg-gray-200/70 dark:bg-white/10",
753
+ class: "relative block h-4 w-full select-none overflow-hidden rounded-md bg-gray-light-10/70 dark:bg-white/10",
754
754
  title: `${i.value}%`
755
755
  }, [
756
756
  l("div", hs, w(i.value) + "%", 1),
@@ -762,7 +762,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
762
762
  ], 4)
763
763
  ], 8, ps),
764
764
  l("div", bs, [
765
- (m(!0), v(D, null, H(n.value, (b) => (m(), v("div", {
765
+ (m(!0), g(D, null, H(n.value, (b) => (m(), g("div", {
766
766
  key: b.name,
767
767
  class: "flex-auto"
768
768
  }, [
@@ -774,7 +774,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
774
774
  ])
775
775
  ]),
776
776
  l("div", ks, [
777
- (m(!0), v(D, null, H(o.value, (b) => (m(), v("div", {
777
+ (m(!0), g(D, null, H(o.value, (b) => (m(), g("div", {
778
778
  key: b.name,
779
779
  class: "flex justify-between items-center"
780
780
  }, [
@@ -787,7 +787,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
787
787
  l("div", null, [
788
788
  M(u.$slots, "default", {
789
789
  home: (d = e.pkg) == null ? void 0 : d.homepage,
790
- repo: (g = (f = e.pkg) == null ? void 0 : f.repository) == null ? void 0 : g.url
790
+ repo: (v = (f = e.pkg) == null ? void 0 : f.repository) == null ? void 0 : v.url
791
791
  })
792
792
  ])
793
793
  ]);
@@ -801,7 +801,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
801
801
  const o = n.target;
802
802
  o.files && s("change", o.files);
803
803
  };
804
- return (n, o) => (m(), v("label", _s, [
804
+ return (n, o) => (m(), g("label", _s, [
805
805
  l("input", q({
806
806
  type: "file",
807
807
  class: "hidden"
@@ -809,7 +809,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
809
809
  M(n.$slots, "default")
810
810
  ]));
811
811
  }
812
- }), Ss = { class: "md:flex" }, zs = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, Rd = /* @__PURE__ */ E({
812
+ }), Ss = { class: "md:flex" }, zs = { class: "text-gray-dark-25 bg:text-gray-main first-letter:uppercase min-w-19" }, Rd = /* @__PURE__ */ E({
813
813
  __name: "BlockUpdate",
814
814
  emits: ["update"],
815
815
  setup(e, { emit: t }) {
@@ -828,14 +828,14 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
828
828
  };
829
829
  return (c, u) => {
830
830
  const r = R;
831
- return m(), v("div", null, [
832
- (m(!0), v(D, null, H(a, (d, f) => (m(), v("div", {
831
+ return m(), g("div", null, [
832
+ (m(!0), g(D, null, H(a, (d, f) => (m(), g("div", {
833
833
  key: f,
834
834
  class: "mb-4 flex items-center"
835
835
  }, [
836
836
  p(Cs, {
837
837
  accept: ".bin",
838
- onChange: (g) => a[f] = g,
838
+ onChange: (v) => a[f] = v,
839
839
  class: "flex-auto"
840
840
  }, {
841
841
  default: x(() => [
@@ -852,7 +852,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
852
852
  class: "min-w-[100px]",
853
853
  color: "blue",
854
854
  disabled: !d,
855
- onClick: (g) => i(`${f}.bin`, d)
855
+ onClick: (v) => i(`${f}.bin`, d)
856
856
  }, {
857
857
  default: x(() => [
858
858
  A(w(c.$t("btnUpdate")), 1)
@@ -869,7 +869,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
869
869
  height: "1.2em"
870
870
  };
871
871
  function As(e, t) {
872
- return m(), v("svg", Ts, [...t[0] || (t[0] = [
872
+ return m(), g("svg", Ts, [...t[0] || (t[0] = [
873
873
  l("path", {
874
874
  fill: "currentColor",
875
875
  d: "M12.172 12L9.343 9.173l1.415-1.414L15 12l-4.242 4.242l-1.415-1.414z"
@@ -886,11 +886,11 @@ const Zt = ne({ name: "ri-arrow-drop-right-line", render: As }), Vs = { class: "
886
886
  const s = t, a = (n) => s("click", n);
887
887
  return (n, o) => {
888
888
  const i = Zt;
889
- return m(), v("nav", null, [
889
+ return m(), g("nav", null, [
890
890
  l("ol", Vs, [
891
- (m(!0), v(D, null, H(e.items, (c, u) => (m(), v("li", {
891
+ (m(!0), g(D, null, H(e.items, (c, u) => (m(), g("li", {
892
892
  key: u,
893
- class: j(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", c.path ? "" : "text-gray-800 dark:text-white/90"])
893
+ class: j(["inline-flex items-center gap-1.5 text-sm text-gray-dark-25 dark:text-gray-main", c.path ? "" : "text-gray-dark-30 dark:text-white/90"])
894
894
  }, [
895
895
  M(n.$slots, "default", { item: c }, () => [
896
896
  (m(), I(Re(c.path ? "a" : "span"), {
@@ -918,7 +918,7 @@ const Zt = ne({ name: "ri-arrow-drop-right-line", render: As }), Vs = { class: "
918
918
  height: "1.2em"
919
919
  };
920
920
  function Es(e, t) {
921
- return m(), v("svg", Bs, [...t[0] || (t[0] = [
921
+ return m(), g("svg", Bs, [...t[0] || (t[0] = [
922
922
  l("path", {
923
923
  fill: "currentColor",
924
924
  d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
@@ -931,7 +931,7 @@ const ct = ne({ name: "ri-add-line", render: Es }), Ms = {
931
931
  height: "1.2em"
932
932
  };
933
933
  function Ls(e, t) {
934
- return m(), v("svg", Ms, [...t[0] || (t[0] = [
934
+ return m(), g("svg", Ms, [...t[0] || (t[0] = [
935
935
  l("path", {
936
936
  fill: "currentColor",
937
937
  d: "M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"
@@ -944,7 +944,7 @@ const Is = ne({ name: "ri-file-copy-line", render: Ls }), Os = {
944
944
  height: "1.2em"
945
945
  };
946
946
  function Fs(e, t) {
947
- return m(), v("svg", Os, [...t[0] || (t[0] = [
947
+ return m(), g("svg", Os, [...t[0] || (t[0] = [
948
948
  l("path", {
949
949
  fill: "currentColor",
950
950
  d: "M2 4a1 1 0 0 1 1-1h7.414l2 2H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3c-.55 0-1-.45-1-1zm8.586 2l-1-1H4v2h5.586zM4 9v10h16V7h-7.586l-2 2z"
@@ -954,10 +954,10 @@ function Fs(e, t) {
954
954
  const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
955
955
  key: 0,
956
956
  class: "me-1"
957
- }, Ns = { class: "dark:text-gray-300" }, Ps = { class: "flex gap-3 items-center z-10" }, Hs = {
957
+ }, Ns = { class: "dark:text-gray-light-10" }, Ps = { class: "flex gap-3 items-center z-10" }, Hs = {
958
958
  key: 0,
959
959
  class: "flex ps-5"
960
- }, Us = { class: "font-medium dark:text-gray-300" }, St = /* @__PURE__ */ E({
960
+ }, Us = { class: "font-medium dark:text-gray-light-10" }, St = /* @__PURE__ */ E({
961
961
  __name: "VListObject",
962
962
  props: {
963
963
  items: { default: () => ({}) },
@@ -966,23 +966,23 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
966
966
  },
967
967
  emits: ["click"],
968
968
  setup(e, { emit: t }) {
969
- const s = t, a = () => "before:absolute before:w-full before:h-8 before:t-0 before:left-0 before:border-b before:border-gray-200 dark:before:border-gray-800/50 hover:before:bg-gray-400/10", n = L({}), { text: o, copy: i, copied: c, isSupported: u } = On(), r = (b) => {
969
+ const s = t, a = () => "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", n = L({}), { text: o, copy: i, copied: c, isSupported: u } = On(), r = (b) => {
970
970
  n.value[b] = !n.value[b];
971
- }, d = (b) => typeof b == "object", f = (b) => `${e.path ? e.path + "." : ""}${b}`, g = (b, h) => {
971
+ }, d = (b) => typeof b == "object", f = (b) => `${e.path ? e.path + "." : ""}${b}`, v = (b, h) => {
972
972
  s("click", { key: b, path: f(b), isObject: h });
973
973
  };
974
974
  return (b, h) => {
975
975
  const $ = Ds, O = Is, F = ct;
976
- return m(), v("ul", null, [
977
- (m(!0), v(D, null, H(e.items, (B, X) => (m(), v("li", {
976
+ return m(), g("ul", null, [
977
+ (m(!0), g(D, null, H(e.items, (B, X) => (m(), g("li", {
978
978
  key: X,
979
979
  class: j(d(B) ? "" : `flex items-center ${a()}`)
980
980
  }, [
981
981
  l("div", {
982
982
  class: j(["flex items-center cursor-pointer ps-2 h-8", d(B) ? `${a()}` : ""]),
983
- onClick: (ve) => r(X)
983
+ onClick: (ge) => r(X)
984
984
  }, [
985
- d(B) ? (m(), v("div", Rs, [
985
+ d(B) ? (m(), g("div", Rs, [
986
986
  p($, { class: "size-5" })
987
987
  ])) : T("", !0),
988
988
  l("div", Ns, w(X), 1),
@@ -991,18 +991,18 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
991
991
  class: "opacity-20 hover:opacity-70 transition-all",
992
992
  color: "transparent",
993
993
  size: "sm",
994
- onClick: te((ve) => J(i)(f(X)), ["stop"])
994
+ onClick: te((ge) => J(i)(f(X)), ["stop"])
995
995
  }, {
996
996
  default: x(() => [
997
997
  p(O, { class: "size-5" })
998
998
  ]),
999
999
  _: 1
1000
1000
  }, 8, ["onClick"])) : T("", !0),
1001
- J(o) === f(X) ? (m(), v("span", {
1001
+ J(o) === f(X) ? (m(), g("span", {
1002
1002
  key: 2,
1003
- class: j(["text-gray-500 transition-all duration-1000 text-sm", J(c) ? "opacity-100" : "opacity-0"])
1003
+ class: j(["text-gray-dark-25 transition-all duration-1000 text-sm", J(c) ? "opacity-100" : "opacity-0"])
1004
1004
  }, w(b.$t("copied")), 3)) : T("", !0),
1005
- !e.onlyValue && d(B) ? (m(), v(D, { key: 3 }, [
1005
+ !e.onlyValue && d(B) ? (m(), g(D, { key: 3 }, [
1006
1006
  h[1] || (h[1] = l("div", { class: "flex-auto" }, null, -1)),
1007
1007
  l("div", Ps, [
1008
1008
  p(R, {
@@ -1010,7 +1010,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1010
1010
  color: "transparent",
1011
1011
  size: "sm",
1012
1012
  title: b.$t("add"),
1013
- onClick: te((ve) => g(X, d(B)), ["stop"])
1013
+ onClick: te((ge) => v(X, d(B)), ["stop"])
1014
1014
  }, {
1015
1015
  default: x(() => [
1016
1016
  p(F, { class: "size-5" })
@@ -1020,17 +1020,17 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1020
1020
  ])
1021
1021
  ], 64)) : T("", !0)
1022
1022
  ], 10, js),
1023
- d(B) ? (m(), v("div", Hs, [
1023
+ d(B) ? (m(), g("div", Hs, [
1024
1024
  dt(p(St, {
1025
1025
  class: "flex-auto",
1026
1026
  path: f(X),
1027
1027
  items: B,
1028
1028
  onlyValue: e.onlyValue,
1029
- onClick: h[0] || (h[0] = (ve) => s("click", ve))
1029
+ onClick: h[0] || (h[0] = (ge) => s("click", ge))
1030
1030
  }, null, 8, ["path", "items", "onlyValue"]), [
1031
1031
  [bn, n.value[X]]
1032
1032
  ])
1033
- ])) : (m(), v(D, { key: 1 }, [
1033
+ ])) : (m(), g(D, { key: 1 }, [
1034
1034
  h[2] || (h[2] = l("div", { class: "flex-auto gap-3" }, null, -1)),
1035
1035
  l("div", Us, w(B), 1),
1036
1036
  p(R, {
@@ -1038,7 +1038,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1038
1038
  color: "gray",
1039
1039
  size: "sm",
1040
1040
  title: b.$t("add"),
1041
- onClick: te((ve) => g(X, d(B)), ["stop"])
1041
+ onClick: te((ge) => v(X, d(B)), ["stop"])
1042
1042
  }, {
1043
1043
  default: x(() => [
1044
1044
  p(F, { class: "size-5" })
@@ -1064,11 +1064,11 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1064
1064
  setup(e, { emit: t }) {
1065
1065
  const s = t, a = _(() => [
1066
1066
  "left-3.5",
1067
- e.active ? "top-0 bg-white/80 px-1 text-xs text-gray-500 dark:bg-night-light-10/80 dark:text-gray-400" : "top-1/2 bg-transparent px-0 text-gray-400 dark:text-gray-500"
1068
- ]), n = _(() => [e.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"]);
1067
+ e.active ? "top-0 bg-white/80 px-1 text-xs text-gray-dark-25 dark:bg-night-light-10/80 dark:text-gray-main" : "top-1/2 bg-transparent px-0 text-gray-main dark:text-gray-dark-25"
1068
+ ]), n = _(() => [e.disabled ? "border-gray-main opacity-40" : "border-gray-light-10 hover:border-gray-main dark:border-gray-dark-30/50 hover:dark:border-gray-dark-25/50"]);
1069
1069
  return (o, i) => {
1070
1070
  const c = ct;
1071
- return m(), v("div", Ks, [
1071
+ return m(), g("div", Ks, [
1072
1072
  l("div", {
1073
1073
  class: j(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-cyan-main/60", n.value])
1074
1074
  }, [
@@ -1078,12 +1078,12 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1078
1078
  l("div", Ws, [
1079
1079
  M(o.$slots, "default")
1080
1080
  ]),
1081
- e.hideIcon ? T("", !0) : (m(), v("button", {
1081
+ e.hideIcon ? T("", !0) : (m(), g("button", {
1082
1082
  key: 0,
1083
1083
  disabled: e.disabled || e.iconDisabled,
1084
1084
  "aria-label": e.iconLabel || void 0,
1085
1085
  title: e.iconLabel || void 0,
1086
- class: j([{ "cursor-pointer": !e.disabled && !e.iconDisabled, "opacity-40": e.iconDisabled }, "h-full flex items-center justify-center text-gray-400 border-l border-gray-300 dark:border-gray-700/50 flex-[0_0_50px]"]),
1086
+ class: j([{ "cursor-pointer": !e.disabled && !e.iconDisabled, "opacity-40": e.iconDisabled }, "h-full flex items-center justify-center text-gray-main border-l border-gray-light-10 dark:border-gray-dark-30/50 flex-[0_0_50px]"]),
1087
1087
  onClick: i[0] || (i[0] = (u) => s("icon", u))
1088
1088
  }, [
1089
1089
  M(o.$slots, "icon", {}, () => [
@@ -1105,9 +1105,9 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1105
1105
  onClose: n[0] || (n[0] = (o) => s("close"))
1106
1106
  }, {
1107
1107
  default: x(() => [...n[1] || (n[1] = [
1108
- l("div", { class: "flex flex-col gap-4 text-sm leading-relaxed text-gray-600 dark:text-gray-300" }, [
1108
+ l("div", { class: "flex flex-col gap-4 text-sm leading-relaxed text-gray-dark-25 dark:text-gray-light-10" }, [
1109
1109
  l("section", null, [
1110
- l("h5", { class: "mb-1 text-base font-semibold text-gray-900 dark:text-white" }, "Блоки и данные"),
1110
+ l("h5", { class: "mb-1 text-base font-semibold text-gray-dark-40 dark:text-white" }, "Блоки и данные"),
1111
1111
  l("p", null, " Слева выбери блок: «Солнце», «Сеть», «Батарея», «Дом», «Инвертор» или «Основное». Справа появятся его аргументы, показатели и направление. "),
1112
1112
  l("p", { class: "mt-2" }, [
1113
1113
  A(" В поле выражения нажми иконку поиска — откроется дерево данных. Выбери значение, и в поле попадёт путь вида "),
@@ -1116,7 +1116,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1116
1116
  ])
1117
1117
  ]),
1118
1118
  l("section", null, [
1119
- l("h5", { class: "mb-1 text-base font-semibold text-gray-900 dark:text-white" }, "Аргументы группы"),
1119
+ l("h5", { class: "mb-1 text-base font-semibold text-gray-dark-40 dark:text-white" }, "Аргументы группы"),
1120
1120
  l("p", null, [
1121
1121
  A(" Сначала добавь аргументы группы — до четырёх: "),
1122
1122
  l("code", { class: "rounded bg-white/5 px-1.5 py-0.5" }, "a"),
@@ -1128,7 +1128,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1128
1128
  l("code", { class: "rounded bg-white/5 px-1.5 py-0.5" }, "d"),
1129
1129
  A(". Они общие для всех показателей этого блока, например солнца или батареи. Значение выбирается через дерево данных. Наведи на букву аргумента в выражении — появится его текущее значение. ")
1130
1130
  ]),
1131
- l("h5", { class: "mb-1 mt-4 text-base font-semibold text-gray-900 dark:text-white" }, "Показатели"),
1131
+ l("h5", { class: "mb-1 mt-4 text-base font-semibold text-gray-dark-40 dark:text-white" }, "Показатели"),
1132
1132
  l("p", null, [
1133
1133
  A(" Кнопка «+» добавляет показатель. У показателя есть название, значение и формат. В значении используй аргументы группы, в формате — "),
1134
1134
  l("code", { class: "rounded bg-white/5 px-1.5 py-0.5" }, "v"),
@@ -1140,11 +1140,11 @@ a + ' Вт'`),
1140
1140
  l("p", { class: "mt-2" }, " Порядок меняется перетаскиванием за точки, удалить показатель можно корзиной. До 10 показателей на блок. Иконка палитры открывает размер, цвет, начертание и выравнивание — только пресеты, без произвольного HTML и классов. ")
1141
1141
  ]),
1142
1142
  l("section", null, [
1143
- l("h5", { class: "mb-1 text-base font-semibold text-gray-900 dark:text-white" }, "Направление"),
1143
+ l("h5", { class: "mb-1 text-base font-semibold text-gray-dark-40 dark:text-white" }, "Направление"),
1144
1144
  l("p", null, " У солнца, сети, батареи и дома есть отдельное поле «Направление». У солнца и дома — прямое, обратное или нет потока; у сети — импорт, экспорт или обмена нет; у батареи — зарядка, разрядка или без обмена. ")
1145
1145
  ]),
1146
1146
  l("section", null, [
1147
- l("h5", { class: "mb-1 text-base font-semibold text-gray-900 dark:text-white" }, "Выражения"),
1147
+ l("h5", { class: "mb-1 text-base font-semibold text-gray-dark-40 dark:text-white" }, "Выражения"),
1148
1148
  l("p", null, [
1149
1149
  A(" Вместо готового пути можно написать выражение. Доступны корни "),
1150
1150
  l("code", { class: "rounded bg-white/5 px-1.5 py-0.5" }, "device"),
@@ -1174,7 +1174,7 @@ round(get('dallas.28aa.temp'), 1)
1174
1174
  solarPower + gridPower - batteryPower`)
1175
1175
  ]),
1176
1176
  l("section", null, [
1177
- l("h5", { class: "mb-1 text-base font-semibold text-gray-900 dark:text-white" }, "Значение и формат"),
1177
+ l("h5", { class: "mb-1 text-base font-semibold text-gray-dark-40 dark:text-white" }, "Значение и формат"),
1178
1178
  l("p", null, [
1179
1179
  A(" В значении собери число из аргументов, а в формате добавь единицу, текст и перенос строки. В формате "),
1180
1180
  l("code", { class: "rounded bg-white/5 px-1.5 py-0.5" }, "v"),
@@ -1192,11 +1192,11 @@ v + ' кВт·ч<br>выработка за день'`),
1192
1192
  ])
1193
1193
  ]),
1194
1194
  l("section", null, [
1195
- l("h5", { class: "mb-1 text-base font-semibold text-gray-900 dark:text-white" }, "Сохранение и перенос"),
1195
+ l("h5", { class: "mb-1 text-base font-semibold text-gray-dark-40 dark:text-white" }, "Сохранение и перенос"),
1196
1196
  l("p", null, " Изменения сохраняются автоматически. Крестик просто закрывает окно. Иконки в шапке: справка, импорт JSON и экспорт JSON. ")
1197
1197
  ]),
1198
1198
  l("section", null, [
1199
- l("h5", { class: "mb-1 text-base font-semibold text-gray-900 dark:text-white" }, "Где хранится настройка"),
1199
+ l("h5", { class: "mb-1 text-base font-semibold text-gray-dark-40 dark:text-white" }, "Где хранится настройка"),
1200
1200
  l("p", null, " Конфиг блока хранится на самом устройстве или в хабе, а не в браузере. Поэтому настройки одинаковы на компьютере и телефоне. ")
1201
1201
  ])
1202
1202
  ], -1)
@@ -1206,7 +1206,7 @@ v + ' кВт·ч<br>выработка за день'`),
1206
1206
  }
1207
1207
  }), Xs = { class: "glass-inset rounded-xl p-3" }, qs = { class: "flex items-end gap-2" }, Ys = {
1208
1208
  key: 0,
1209
- class: "mt-1.5 text-xs text-gray-500 dark:text-gray-400"
1209
+ class: "mt-1.5 text-xs text-gray-dark-25 dark:text-gray-main"
1210
1210
  }, Lt = /* @__PURE__ */ E({
1211
1211
  __name: "BlockFieldCard",
1212
1212
  props: {
@@ -1221,7 +1221,7 @@ v + ' кВт·ч<br>выработка за день'`),
1221
1221
  emits: ["update:modelValue", "update:format", "pick", "reset"],
1222
1222
  setup(e, { emit: t }) {
1223
1223
  const s = t;
1224
- return (a, n) => (m(), v("div", Xs, [
1224
+ return (a, n) => (m(), g("div", Xs, [
1225
1225
  l("div", qs, [
1226
1226
  l("div", {
1227
1227
  class: j(["grid min-w-0 flex-1 gap-2", { "sm:grid-cols-2": e.hasFormat }])
@@ -1278,7 +1278,7 @@ v + ' кВт·ч<br>выработка за день'`),
1278
1278
  _: 1
1279
1279
  })) : T("", !0)
1280
1280
  ]),
1281
- e.field.hint ? (m(), v("p", Ys, w(e.field.hint), 1)) : T("", !0)
1281
+ e.field.hint ? (m(), g("p", Ys, w(e.field.hint), 1)) : T("", !0)
1282
1282
  ]));
1283
1283
  }
1284
1284
  }), Zs = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, Qs = ["title"], ea = ["title"], ta = { class: "flex flex-auto" }, na = ["disabled"], Xe = /* @__PURE__ */ E({
@@ -1316,7 +1316,7 @@ v + ' кВт·ч<br>выработка за день'`),
1316
1316
  d !== o.value && (o.value = d);
1317
1317
  }
1318
1318
  ), (r, d) => {
1319
- const f = Pe, g = ct;
1319
+ const f = Pe, v = ct;
1320
1320
  return m(), I(zt, {
1321
1321
  active: !!e.value,
1322
1322
  disabled: e.disabled,
@@ -1328,18 +1328,18 @@ v + ' кВт·ч<br>выработка за день'`),
1328
1328
  e.value ? (m(), I(f, {
1329
1329
  key: 0,
1330
1330
  class: "size-4"
1331
- })) : (m(), I(g, {
1331
+ })) : (m(), I(v, {
1332
1332
  key: 1,
1333
1333
  class: "size-4"
1334
1334
  }))
1335
1335
  ]),
1336
1336
  default: x(() => [
1337
- e.value ? (m(), v(D, { key: 0 }, [
1337
+ e.value ? (m(), g(D, { key: 0 }, [
1338
1338
  l("div", Zs, [
1339
1339
  d[4] || (d[4] = A(" ( ", -1)),
1340
- (m(!0), v(D, null, H(e.prefix, (b, h) => {
1340
+ (m(!0), g(D, null, H(e.prefix, (b, h) => {
1341
1341
  var $;
1342
- return m(), v(D, {
1342
+ return m(), g(D, {
1343
1343
  key: `prefix-${h}`
1344
1344
  }, [
1345
1345
  l("span", {
@@ -1349,7 +1349,7 @@ v + ' кВт·ч<br>выработка за день'`),
1349
1349
  d[2] || (d[2] = l("span", { class: "last:hidden" }, ",", -1))
1350
1350
  ], 64);
1351
1351
  }), 128)),
1352
- (m(!0), v(D, null, H(e.args, (b, h) => (m(), v(D, { key: b }, [
1352
+ (m(!0), g(D, null, H(e.args, (b, h) => (m(), g(D, { key: b }, [
1353
1353
  l("span", {
1354
1354
  class: "text-blue-400/80",
1355
1355
  title: e.argumentTitle ? `${e.argumentTitle}: ${b}` : b
@@ -1388,8 +1388,8 @@ v + ' кВт·ч<br>выработка за день'`),
1388
1388
  lg: "text-lg",
1389
1389
  xl: "text-xl"
1390
1390
  }, sa = {
1391
- default: "text-gray-900 dark:text-white",
1392
- muted: "text-gray-500 dark:text-gray-400",
1391
+ default: "text-gray-dark-40 dark:text-white",
1392
+ muted: "text-gray-dark-25 dark:text-gray-main",
1393
1393
  primary: "text-cyan-main",
1394
1394
  success: "text-emerald-600 dark:text-emerald-400",
1395
1395
  warning: "text-amber-600 dark:text-amber-400",
@@ -1523,15 +1523,15 @@ v + ' кВт·ч<br>выработка за день'`),
1523
1523
  raw: o,
1524
1524
  style: { ...Tt, ...e.style }
1525
1525
  };
1526
- }, va = (e, t, s, a) => {
1526
+ }, ga = (e, t, s, a) => {
1527
1527
  var i, c, u, r;
1528
1528
  const n = /* @__PURE__ */ new Set([
1529
1529
  ...Object.keys(e.metrics ?? {}),
1530
1530
  ...Object.keys(t.metrics ?? {})
1531
1531
  ]), o = {};
1532
1532
  for (const d of n) {
1533
- const f = ((i = t.metrics) == null ? void 0 : i[d]) ?? ((c = e.metrics) == null ? void 0 : c[d]) ?? [], g = ((u = t.metricArgs) == null ? void 0 : u[d]) ?? ((r = e.metricArgs) == null ? void 0 : r[d]) ?? [];
1534
- o[d] = f.slice(0, bt).map((b) => fa(b, g, s, a));
1533
+ const f = ((i = t.metrics) == null ? void 0 : i[d]) ?? ((c = e.metrics) == null ? void 0 : c[d]) ?? [], v = ((u = t.metricArgs) == null ? void 0 : u[d]) ?? ((r = e.metricArgs) == null ? void 0 : r[d]) ?? [];
1534
+ o[d] = f.slice(0, bt).map((b) => fa(b, v, s, a));
1535
1535
  }
1536
1536
  return o;
1537
1537
  }, Vt = (e, t, s) => {
@@ -1543,8 +1543,8 @@ v + ' кВт·ч<br>выработка за день'`),
1543
1543
  const d = ma(r ?? u ?? o.default, o.type);
1544
1544
  n[o.key] = d, a[o.key] = d;
1545
1545
  }
1546
- return n.metrics = va(e, t, s, n), n;
1547
- }, ga = { class: "glass-inset rounded-xl p-3" }, pa = { class: "flex items-center gap-2" }, ha = { class: "min-w-0 flex-1" }, ya = { class: "mt-2 flex flex-col gap-2" }, ba = /* @__PURE__ */ E({
1546
+ return n.metrics = ga(e, t, s, n), n;
1547
+ }, va = { class: "glass-inset rounded-xl p-3" }, pa = { class: "flex items-center gap-2" }, ha = { class: "min-w-0 flex-1" }, ya = { class: "mt-2 flex flex-col gap-2" }, ba = /* @__PURE__ */ E({
1548
1548
  __name: "BlockMetricCard",
1549
1549
  props: {
1550
1550
  metric: {},
@@ -1554,7 +1554,7 @@ v + ' кВт·ч<br>выработка за день'`),
1554
1554
  emits: ["remove", "open-style", "toggle-field", "dragstart", "dragend", "change", "hover"],
1555
1555
  setup(e, { emit: t }) {
1556
1556
  const s = t, a = (n, o) => s("hover", n, o);
1557
- return (n, o) => (m(), v("div", ga, [
1557
+ return (n, o) => (m(), g("div", va, [
1558
1558
  l("div", pa, [
1559
1559
  l("div", ha, [
1560
1560
  p(ie, {
@@ -1597,7 +1597,7 @@ v + ' кВт·ч<br>выработка за день'`),
1597
1597
  }),
1598
1598
  l("span", {
1599
1599
  draggable: "true",
1600
- class: "-me-1 grid size-8 shrink-0 cursor-grab place-items-center rounded-md text-gray-400 transition hover:bg-white/5 hover:text-white active:cursor-grabbing",
1600
+ class: "-me-1 grid size-8 shrink-0 cursor-grab place-items-center rounded-md text-gray-main transition hover:bg-white/5 hover:text-white active:cursor-grabbing",
1601
1601
  title: "Перетащить показатель",
1602
1602
  onDragstart: o[3] || (o[3] = (i) => s("dragstart", i, e.index)),
1603
1603
  onDragend: o[4] || (o[4] = (i) => s("dragend"))
@@ -1631,7 +1631,7 @@ v + ' кВт·ч<br>выработка за день'`),
1631
1631
  ])
1632
1632
  ]));
1633
1633
  }
1634
- }), xa = { class: "flex min-h-96 flex-col gap-4" }, ka = { class: "text-sm text-gray-500 dark:text-gray-400" }, $a = { class: "font-medium text-gray-900 dark:text-white" }, wa = { class: "glass-inset rounded-md p-3" }, _a = { class: "grid gap-3 sm:grid-cols-2" }, Ca = { class: "mt-auto flex justify-end" }, Sa = /* @__PURE__ */ E({
1634
+ }), xa = { class: "flex min-h-96 flex-col gap-4" }, ka = { class: "text-sm text-gray-dark-25 dark:text-gray-main" }, $a = { class: "font-medium text-gray-dark-40 dark:text-white" }, wa = { class: "glass-inset rounded-md p-3" }, _a = { class: "grid gap-3 sm:grid-cols-2" }, Ca = { class: "mt-auto flex justify-end" }, Sa = /* @__PURE__ */ E({
1635
1635
  __name: "BlockMetricStyleDialog",
1636
1636
  props: {
1637
1637
  label: {},
@@ -1645,7 +1645,7 @@ v + ' кВт·ч<br>выработка за день'`),
1645
1645
  return ((O = h.find((F) => F.value === $)) == null ? void 0 : O.name) ?? "";
1646
1646
  }, o = _(() => n(It, a.value.size)), i = _(() => n(Ot, a.value.color)), c = _(() => n(Ft, a.value.weight)), u = _(() => n(Dt, a.value.align)), r = (h) => {
1647
1647
  s("update", { ...a.value, ...h });
1648
- }, d = (h) => r({ size: h.value }), f = (h) => r({ color: h.value }), g = (h) => r({ weight: h.value }), b = (h) => r({ align: h.value });
1648
+ }, d = (h) => r({ size: h.value }), f = (h) => r({ color: h.value }), v = (h) => r({ weight: h.value }), b = (h) => r({ align: h.value });
1649
1649
  return (h, $) => (m(), I(Ae, {
1650
1650
  title: "Стиль показателя",
1651
1651
  size: "md",
@@ -1658,7 +1658,7 @@ v + ' кВт·ч<br>выработка за день'`),
1658
1658
  l("span", $a, w(e.label), 1)
1659
1659
  ]),
1660
1660
  l("div", wa, [
1661
- $[3] || ($[3] = l("span", { class: "block text-xs text-gray-500 dark:text-gray-400" }, "Предпросмотр", -1)),
1661
+ $[3] || ($[3] = l("span", { class: "block text-xs text-gray-dark-25 dark:text-gray-main" }, "Предпросмотр", -1)),
1662
1662
  l("span", {
1663
1663
  class: j(["mt-1 block whitespace-pre", J(yt)(a.value)])
1664
1664
  }, w(e.preview || "1 234 кВт·ч"), 3)
@@ -1680,7 +1680,7 @@ v + ' кВт·ч<br>выработка за день'`),
1680
1680
  "model-value": c.value,
1681
1681
  items: J(Ft),
1682
1682
  label: "Начертание",
1683
- onChange: g
1683
+ onChange: v
1684
1684
  }, null, 8, ["model-value", "items"]),
1685
1685
  p(he, {
1686
1686
  "model-value": u.value,
@@ -1708,7 +1708,7 @@ v + ' кВт·ч<br>выработка за день'`),
1708
1708
  }), za = { class: "me-2 flex items-center gap-2" }, Ta = { class: "grid gap-4 md:grid-cols-[180px_minmax(0,1fr)]" }, Aa = {
1709
1709
  class: "flex flex-col gap-1",
1710
1710
  "aria-label": "Блоки"
1711
- }, Va = ["onClick"], Ba = { class: "grid size-8 shrink-0 place-items-center rounded-md border border-gray-300/50 dark:border-white/10" }, Ea = { class: "min-w-0 flex-1 truncate text-sm font-medium" }, Ma = { class: "text-xs text-gray-500 dark:text-gray-400" }, La = { class: "flex max-h-120 min-w-0 flex-col gap-3 overflow-y-auto pe-1 scrollbar" }, Ia = {
1711
+ }, Va = ["onClick"], Ba = { class: "grid size-8 shrink-0 place-items-center rounded-md border border-gray-light-10/50 dark:border-white/10" }, Ea = { class: "min-w-0 flex-1 truncate text-sm font-medium" }, Ma = { class: "text-xs text-gray-dark-25 dark:text-gray-main" }, La = { class: "flex max-h-120 min-w-0 flex-col gap-3 overflow-y-auto pe-1 scrollbar" }, Ia = {
1712
1712
  key: 1,
1713
1713
  class: "glass-inset rounded-xl p-3"
1714
1714
  }, Oa = {
@@ -1719,7 +1719,7 @@ v + ' кВт·ч<br>выработка за день'`),
1719
1719
  class: "flex flex-col gap-2"
1720
1720
  }, Na = { class: "flex items-center justify-between gap-2" }, Pa = {
1721
1721
  key: 0,
1722
- class: "glass-inset rounded-xl p-3 text-sm text-gray-500 dark:text-gray-400"
1722
+ class: "glass-inset rounded-xl p-3 text-sm text-gray-dark-25 dark:text-gray-main"
1723
1723
  }, Ha = {
1724
1724
  key: 1,
1725
1725
  class: "flex flex-col gap-2"
@@ -1769,9 +1769,9 @@ v + ' кВт·ч<br>выработка за день'`),
1769
1769
  for (const [W, S] of Object.entries(e.definition.metrics ?? {}))
1770
1770
  k.metrics[W] || (k.metrics[W] = JSON.parse(JSON.stringify(S)));
1771
1771
  return k;
1772
- }, i = L(o(e.config)), c = L("general"), u = L(!1), r = L(!1), d = L(null), f = L(null), g = L(null), b = L(null), h = L(null), $ = L(null);
1772
+ }, i = L(o(e.config)), c = L("general"), u = L(!1), r = L(!1), d = L(null), f = L(null), v = L(null), b = L(null), h = L(null), $ = L(null);
1773
1773
  let O = JSON.stringify(i.value), F = null;
1774
- const B = _(() => Vt(e.definition, i.value, e.context)), X = _(() => B.value.metrics ?? {}), ve = _(
1774
+ const B = _(() => Vt(e.definition, i.value, e.context)), X = _(() => B.value.metrics ?? {}), ge = _(
1775
1775
  () => a.map((y) => ({
1776
1776
  ...y,
1777
1777
  count: e.definition.fields.filter((k) => (k.block ?? "general") === y.key).length
@@ -1791,7 +1791,7 @@ v + ' кВт·ч<br>выработка за день'`),
1791
1791
  var y;
1792
1792
  return V.value ? ((y = i.value.metrics) == null ? void 0 : y[c.value]) ?? [] : [];
1793
1793
  });
1794
- Te(ve, (y) => {
1794
+ Te(ge, (y) => {
1795
1795
  y.length && !y.some((k) => k.key === c.value) && (c.value = y[0].key);
1796
1796
  });
1797
1797
  const mt = (y) => {
@@ -1821,16 +1821,16 @@ v + ' кВт·ч<br>выработка за день'`),
1821
1821
  }, z = (y) => {
1822
1822
  const k = B.value[y];
1823
1823
  return k === void 0 ? "—" : typeof k == "boolean" ? k ? "да" : "нет" : String(k);
1824
- }, N = (y) => `v + ' ${y.unit ?? "ед."}'`, ge = () => {
1824
+ }, N = (y) => `v + ' ${y.unit ?? "ед."}'`, ve = () => {
1825
1825
  F && (clearTimeout(F), F = null);
1826
1826
  const y = o(i.value), k = JSON.stringify(y);
1827
1827
  k !== O && (O = k, s("update:config", y));
1828
1828
  };
1829
1829
  Te(i, () => {
1830
- F && clearTimeout(F), F = setTimeout(ge, 500);
1830
+ F && clearTimeout(F), F = setTimeout(ve, 500);
1831
1831
  }, { deep: !0 });
1832
1832
  const We = () => {
1833
- ge(), s("close");
1833
+ ve(), s("close");
1834
1834
  }, Ge = (y) => {
1835
1835
  d.value = { kind: "field", key: y }, r.value = !0;
1836
1836
  }, Qe = (y) => {
@@ -1854,7 +1854,7 @@ v + ' кВт·ч<br>выработка за день'`),
1854
1854
  [c.value]: Z.value.filter((k, W) => W !== y)
1855
1855
  };
1856
1856
  }, Ce = (y, k) => {
1857
- g.value = y === "enter" ? k : null;
1857
+ v.value = y === "enter" ? k : null;
1858
1858
  }, P = () => `metric-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 6)}`, Se = () => {
1859
1859
  var k;
1860
1860
  const y = (k = i.value.metrics) == null ? void 0 : k[c.value];
@@ -1880,14 +1880,14 @@ v + ' кВт·ч<br>выработка за день'`),
1880
1880
  h.value = k, y.dataTransfer && (y.dataTransfer.effectAllowed = "move", y.dataTransfer.setData("text/plain", String(k)));
1881
1881
  }, et = (y) => {
1882
1882
  h.value !== null && ($.value = y);
1883
- }, vt = (y) => {
1883
+ }, gt = (y) => {
1884
1884
  const k = h.value;
1885
1885
  if (h.value = null, $.value = null, k === null || k === y) return;
1886
1886
  const W = [...de.value], [S] = W.splice(k, 1);
1887
1887
  W.splice(y, 0, S), i.value.metrics = { ...i.value.metrics ?? {}, [c.value]: W };
1888
- }, vn = () => {
1888
+ }, gn = () => {
1889
1889
  h.value = null, $.value = null;
1890
- }, gn = (y) => {
1890
+ }, vn = (y) => {
1891
1891
  var k, W;
1892
1892
  return ((W = (k = X.value[c.value]) == null ? void 0 : k.find((S) => S.id === y.id)) == null ? void 0 : W.value) ?? "";
1893
1893
  }, tt = (y, k) => {
@@ -1910,12 +1910,12 @@ v + ' кВт·ч<br>выработка за день'`),
1910
1910
  ...Y,
1911
1911
  id: i.value.id,
1912
1912
  type: e.definition.type
1913
- }, ge();
1913
+ }, ve();
1914
1914
  } finally {
1915
1915
  k.value = "";
1916
1916
  }
1917
1917
  };
1918
- return Ze(ge), (y, k) => {
1918
+ return Ze(ve), (y, k) => {
1919
1919
  const W = Pe;
1920
1920
  return m(), I(Ae, {
1921
1921
  title: "Настройка блока",
@@ -1982,7 +1982,7 @@ v + ' кВт·ч<br>выработка за день'`),
1982
1982
  }, null, 544),
1983
1983
  l("div", Ta, [
1984
1984
  l("nav", Aa, [
1985
- (m(!0), v(D, null, H(ve.value, (S) => (m(), v("button", {
1985
+ (m(!0), g(D, null, H(ge.value, (S) => (m(), g("button", {
1986
1986
  key: S.key,
1987
1987
  type: "button",
1988
1988
  class: j(["flex items-center gap-2 rounded-md px-3 py-2 text-left transition", c.value === S.key ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"]),
@@ -1999,7 +1999,7 @@ v + ' кВт·ч<br>выработка за день'`),
1999
1999
  ], 10, Va))), 128))
2000
2000
  ]),
2001
2001
  l("div", La, [
2002
- K.value ? (m(!0), v(D, { key: 0 }, H(Oe.value, (S) => (m(), I(Lt, {
2002
+ K.value ? (m(!0), g(D, { key: 0 }, H(Oe.value, (S) => (m(), I(Lt, {
2003
2003
  key: S.key,
2004
2004
  field: S,
2005
2005
  "model-value": Be(S),
@@ -2011,7 +2011,7 @@ v + ' кВт·ч<br>выработка за день'`),
2011
2011
  "onUpdate:modelValue": (Y) => _e(S, Y),
2012
2012
  "onUpdate:format": (Y) => G(S, Y),
2013
2013
  onPick: (Y) => Ge(S.key)
2014
- }, null, 8, ["field", "model-value", "format-value", "has-format", "placeholder", "placeholder-format", "onUpdate:modelValue", "onUpdate:format", "onPick"]))), 128)) : (m(), v(D, { key: 1 }, [
2014
+ }, null, 8, ["field", "model-value", "format-value", "has-format", "placeholder", "placeholder-format", "onUpdate:modelValue", "onUpdate:format", "onPick"]))), 128)) : (m(), g(D, { key: 1 }, [
2015
2015
  re.value ? (m(), I(Lt, {
2016
2016
  key: 0,
2017
2017
  field: re.value,
@@ -2025,7 +2025,7 @@ v + ' кВт·ч<br>выработка за день'`),
2025
2025
  "onUpdate:format": k[2] || (k[2] = (S) => G(re.value, S)),
2026
2026
  onPick: k[3] || (k[3] = (S) => Ge(re.value.key))
2027
2027
  }, null, 8, ["field", "model-value", "format-value", "has-format", "placeholder", "placeholder-format"])) : T("", !0),
2028
- V.value ? (m(), v("section", Ia, [
2028
+ V.value ? (m(), g("section", Ia, [
2029
2029
  p(zt, {
2030
2030
  active: !!Z.value.length,
2031
2031
  "icon-disabled": Z.value.length >= J(qe),
@@ -2034,18 +2034,18 @@ v + ' кВт·ч<br>выработка за день'`),
2034
2034
  onIcon: k[4] || (k[4] = (S) => Qe())
2035
2035
  }, {
2036
2036
  default: x(() => [
2037
- Z.value.length ? (m(), v("div", Oa, [
2038
- (m(!0), v(D, null, H(Z.value, (S, Y) => (m(), v("div", {
2037
+ Z.value.length ? (m(), g("div", Oa, [
2038
+ (m(!0), g(D, null, H(Z.value, (S, Y) => (m(), g("div", {
2039
2039
  key: S,
2040
- class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
2040
+ class: "flex items-center rounded-full bg-gray-light-10 dark:bg-gray-dark-40/50 px-2 py-[2px] text-xs"
2041
2041
  }, [
2042
2042
  l("div", Fa, [
2043
2043
  l("span", Da, w(S), 1)
2044
2044
  ]),
2045
- Y || Z.value.length < 2 ? (m(), v("button", {
2045
+ Y || Z.value.length < 2 ? (m(), g("button", {
2046
2046
  key: 0,
2047
2047
  type: "button",
2048
- class: "ms-1 shrink-0 cursor-pointer text-gray-400 transition hover:text-rose-500",
2048
+ class: "ms-1 shrink-0 cursor-pointer text-gray-main transition hover:text-rose-500",
2049
2049
  onClick: (ze) => ue(Y)
2050
2050
  }, [
2051
2051
  p(W, { class: "size-5" })
@@ -2056,7 +2056,7 @@ v + ' кВт·ч<br>выработка за день'`),
2056
2056
  _: 1
2057
2057
  }, 8, ["active", "icon-disabled"])
2058
2058
  ])) : T("", !0),
2059
- V.value ? (m(), v("section", Ra, [
2059
+ V.value ? (m(), g("section", Ra, [
2060
2060
  l("div", Na, [
2061
2061
  k[8] || (k[8] = l("h4", { class: "text-sm font-semibold" }, "Показатели", -1)),
2062
2062
  p(R, {
@@ -2076,12 +2076,12 @@ v + ' кВт·ч<br>выработка за день'`),
2076
2076
  _: 1
2077
2077
  }, 8, ["disabled"])
2078
2078
  ]),
2079
- de.value.length ? (m(), v("div", Ha, [
2080
- (m(!0), v(D, null, H(de.value, (S, Y) => (m(), v("div", {
2079
+ de.value.length ? (m(), g("div", Ha, [
2080
+ (m(!0), g(D, null, H(de.value, (S, Y) => (m(), g("div", {
2081
2081
  key: S.id,
2082
2082
  class: j(["rounded-xl transition", { "ring-1 ring-cyan-main/50": $.value === Y }]),
2083
2083
  onDragover: te((ze) => et(Y), ["prevent"]),
2084
- onDrop: te((ze) => vt(Y), ["prevent"])
2084
+ onDrop: te((ze) => gt(Y), ["prevent"])
2085
2085
  }, [
2086
2086
  p(ba, {
2087
2087
  metric: S,
@@ -2091,14 +2091,14 @@ v + ' кВт·ч<br>выработка за день'`),
2091
2091
  onOpenStyle: (ze) => fe(S),
2092
2092
  onToggleField: (ze) => me(S, ze),
2093
2093
  onDragstart: ee,
2094
- onDragend: vn,
2094
+ onDragend: gn,
2095
2095
  onChange: (ze) => tt(S, ze),
2096
2096
  onHover: Ce
2097
2097
  }, null, 8, ["metric", "index", "args", "onRemove", "onOpenStyle", "onToggleField", "onChange"])
2098
2098
  ], 42, Ua))), 128))
2099
- ])) : (m(), v("p", Pa, "Показателей нет. Добавьте первый."))
2099
+ ])) : (m(), g("p", Pa, "Показателей нет. Добавьте первый."))
2100
2100
  ])) : T("", !0),
2101
- ye.value ? (m(), v("div", Ka, [
2101
+ ye.value ? (m(), g("div", Ka, [
2102
2102
  p(he, {
2103
2103
  "model-value": Le.value,
2104
2104
  items: Ue.value,
@@ -2113,7 +2113,7 @@ v + ' кВт·ч<br>выработка за день'`),
2113
2113
  key: 0,
2114
2114
  label: f.value.label,
2115
2115
  style: Me(f.value.style),
2116
- preview: gn(f.value),
2116
+ preview: vn(f.value),
2117
2117
  onUpdate: le,
2118
2118
  onClose: k[5] || (k[5] = (S) => f.value = null)
2119
2119
  }, null, 8, ["label", "style", "preview"])) : T("", !0),
@@ -2155,7 +2155,7 @@ v + ' кВт·ч<br>выработка за день'`),
2155
2155
  const s = t, a = L(!1), n = _(() => e.definition.component), o = _(() => Vt(e.definition, e.config, e.context)), i = (c) => {
2156
2156
  s("update:config", c);
2157
2157
  };
2158
- return (c, u) => (m(), v(D, null, [
2158
+ return (c, u) => (m(), g(D, null, [
2159
2159
  (m(), I(Re(n.value), q(o.value, {
2160
2160
  editable: "",
2161
2161
  onSettings: u[0] || (u[0] = (r) => a.value = !0)
@@ -2174,10 +2174,10 @@ v + ' кВт·ч<br>выработка за день'`),
2174
2174
  }
2175
2175
  }), Ja = { class: "grid gap-3 sm:grid-cols-2" }, Xa = ["onClick"], qa = { class: "grid size-10 place-items-center rounded-lg border border-cyan-main/20 bg-cyan-main/10 text-cyan-main" }, Ya = { class: "mt-3 block text-base font-semibold" }, Za = {
2176
2176
  key: 0,
2177
- class: "mt-1 block text-sm text-gray-500 dark:text-gray-400"
2177
+ class: "mt-1 block text-sm text-gray-dark-25 dark:text-gray-main"
2178
2178
  }, Qa = {
2179
2179
  key: 0,
2180
- class: "py-8 text-center text-sm text-gray-500 dark:text-gray-400"
2180
+ class: "py-8 text-center text-sm text-gray-dark-25 dark:text-gray-main"
2181
2181
  }, Hd = /* @__PURE__ */ E({
2182
2182
  __name: "BlockPicker",
2183
2183
  props: {
@@ -2193,7 +2193,7 @@ v + ' кВт·ч<br>выработка за день'`),
2193
2193
  }, {
2194
2194
  default: x(() => [
2195
2195
  l("div", Ja, [
2196
- (m(!0), v(D, null, H(e.definitions, (o) => (m(), v("button", {
2196
+ (m(!0), g(D, null, H(e.definitions, (o) => (m(), g("button", {
2197
2197
  key: o.type,
2198
2198
  type: "button",
2199
2199
  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",
@@ -2206,10 +2206,10 @@ v + ' кВт·ч<br>выработка за день'`),
2206
2206
  }, null, 8, ["name"])
2207
2207
  ]),
2208
2208
  l("span", Ya, w(o.name), 1),
2209
- o.description ? (m(), v("span", Za, w(o.description), 1)) : T("", !0)
2209
+ o.description ? (m(), g("span", Za, w(o.description), 1)) : T("", !0)
2210
2210
  ], 8, Xa))), 128))
2211
2211
  ]),
2212
- e.definitions.length ? T("", !0) : (m(), v("p", Qa, " Пока нет доступных блоков. "))
2212
+ e.definitions.length ? T("", !0) : (m(), g("p", Qa, " Пока нет доступных блоков. "))
2213
2213
  ]),
2214
2214
  _: 1
2215
2215
  }));
@@ -2248,7 +2248,7 @@ v + ' кВт·ч<br>выработка за день'`),
2248
2248
  emits: ["update:config"],
2249
2249
  setup(e, { emit: t }) {
2250
2250
  const s = t, a = L(!1), n = _(() => e.definition.component);
2251
- return (o, i) => (m(), v(D, null, [
2251
+ return (o, i) => (m(), g(D, null, [
2252
2252
  (m(), I(Re(n.value), q(o.$attrs, {
2253
2253
  editable: e.editable,
2254
2254
  onSettings: i[0] || (i[0] = (c) => a.value = !0)
@@ -2298,7 +2298,7 @@ v + ' кВт·ч<br>выработка за день'`),
2298
2298
  }, {
2299
2299
  default: x(() => [
2300
2300
  l("div", to, [
2301
- r[5] || (r[5] = l("p", { class: "text-sm text-gray-500 dark:text-gray-400" }, " Вставь JSON, который был скопирован кнопкой «Экспорт». ", -1)),
2301
+ r[5] || (r[5] = l("p", { class: "text-sm text-gray-dark-25 dark:text-gray-main" }, " Вставь JSON, который был скопирован кнопкой «Экспорт». ", -1)),
2302
2302
  dt(l("textarea", {
2303
2303
  "onUpdate:modelValue": r[0] || (r[0] = (d) => a.value = d),
2304
2304
  class: "glass-inset min-h-40 w-full rounded-md p-3 font-mono text-xs outline-none",
@@ -2307,7 +2307,7 @@ v + ' кВт·ч<br>выработка за день'`),
2307
2307
  }, null, 512), [
2308
2308
  [$t, a.value]
2309
2309
  ]),
2310
- n.value ? (m(), v("p", no, w(n.value), 1)) : T("", !0),
2310
+ n.value ? (m(), g("p", no, w(n.value), 1)) : T("", !0),
2311
2311
  l("div", lo, [
2312
2312
  p(R, {
2313
2313
  color: "gray",
@@ -2334,10 +2334,10 @@ v + ' кВт·ч<br>выработка за день'`),
2334
2334
  _: 1
2335
2335
  }));
2336
2336
  }
2337
- }), so = { class: "flex items-center gap-2" }, ao = ["viewBox"], oo = ["id", "d"], io = ["d"], ro = ["d"], co = ["d"], uo = ["dur", "begin", "keyPoints"], mo = ["href"], fo = ["dur", "begin"], vo = { class: "relative grid h-full grid-cols-2 grid-rows-3 gap-3 lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]" }, go = { class: "flex items-center gap-2" }, po = { class: "min-w-0 flex-1 truncate text-sm font-semibold" }, ho = {
2337
+ }), so = { class: "flex items-center gap-2" }, ao = ["viewBox"], oo = ["id", "d"], io = ["d"], ro = ["d"], co = ["d"], uo = ["dur", "begin", "keyPoints"], mo = ["href"], fo = ["dur", "begin"], go = { class: "relative grid h-full grid-cols-2 grid-rows-3 gap-3 lg:grid-cols-[minmax(0,1fr)_auto_minmax(0,1fr)]" }, vo = { class: "flex items-center gap-2" }, po = { class: "min-w-0 flex-1 truncate text-sm font-semibold" }, ho = {
2338
2338
  key: 0,
2339
2339
  class: "flex flex-col gap-2"
2340
- }, yo = { class: "block text-xs text-gray-500 dark:text-gray-400" }, bo = { 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" }, xo = { class: "relative" }, ko = { class: "flex items-center gap-2" }, $o = { class: "grid size-9 place-items-center rounded-lg bg-cyan-main/15" }, wo = { class: "text-sm font-semibold text-gray-800 dark:text-white" }, _o = { class: "mt-3" }, Co = { class: "whitespace-pre-line text-2xl font-bold text-gray-900 dark:text-white" }, So = { class: "ml-1 text-xs text-gray-500 dark:text-gray-400" }, zo = { class: "mt-3 grid grid-cols-2 gap-2" }, To = { class: "min-w-0 truncate text-xs text-gray-500 dark:text-gray-400" }, Ao = { class: "glass-inset mt-2 rounded-md px-3 py-2" }, Vo = { class: "flex items-center justify-between gap-2 text-xs" }, Bo = { class: "whitespace-pre-line font-semibold" }, Eo = { class: "mt-2 h-1.5 overflow-hidden rounded-full bg-gray-200/70 dark:bg-white/10" }, Mo = /* @__PURE__ */ E({
2340
+ }, yo = { class: "block text-xs text-gray-dark-25 dark:text-gray-main" }, bo = { 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" }, xo = { class: "relative" }, ko = { class: "flex items-center gap-2" }, $o = { class: "grid size-9 place-items-center rounded-lg bg-cyan-main/15" }, wo = { class: "text-sm font-semibold text-gray-dark-30 dark:text-white" }, _o = { class: "mt-3" }, Co = { class: "whitespace-pre-line text-2xl font-bold text-gray-dark-40 dark:text-white" }, So = { class: "ml-1 text-xs text-gray-dark-25 dark:text-gray-main" }, zo = { class: "mt-3 grid grid-cols-2 gap-2" }, To = { class: "min-w-0 truncate text-xs text-gray-dark-25 dark:text-gray-main" }, Ao = { class: "glass-inset mt-2 rounded-md px-3 py-2" }, Vo = { class: "flex items-center justify-between gap-2 text-xs" }, Bo = { class: "whitespace-pre-line font-semibold" }, Eo = { class: "mt-2 h-1.5 overflow-hidden rounded-full bg-gray-light-10/70 dark:bg-white/10" }, Mo = /* @__PURE__ */ E({
2341
2341
  __name: "EnergyFlowCard",
2342
2342
  props: {
2343
2343
  title: { default: "Сетевой инвертор" },
@@ -2368,16 +2368,16 @@ v + ' кВт·ч<br>выработка за день'`),
2368
2368
  return ((G = e.metrics) == null ? void 0 : G[U]) ?? [];
2369
2369
  }, c = (U, G, z) => {
2370
2370
  var Ke;
2371
- const N = ((Ke = e.metrics) == null ? void 0 : Ke[U]) ?? [], ge = N.find((We) => We.id === G) ?? N[z];
2372
- return ge == null ? void 0 : ge.raw;
2371
+ const N = ((Ke = e.metrics) == null ? void 0 : Ke[U]) ?? [], ve = N.find((We) => We.id === G) ?? N[z];
2372
+ return ve == null ? void 0 : ve.raw;
2373
2373
  }, u = (U, G) => {
2374
2374
  const z = typeof U == "number" ? U : Number.parseFloat(String(U));
2375
2375
  return Number.isFinite(z) ? z : G;
2376
- }, r = _(() => u(c("solar", "solar-power", 0), e.solarPower)), d = _(() => u(c("grid", "grid-power", 0), e.gridPower)), f = _(() => u(c("battery", "battery-power", 0), e.batteryPower)), g = _(() => u(c("battery", "battery-soc", 1), e.batterySoc)), b = _(() => u(c("house", "house-load", 0), e.loadPower)), h = _(() => r.value > 0 && e.solarFlow !== "idle"), $ = _(() => e.solarFlow === "reverse"), O = _(() => d.value !== 0 || ["import", "export"].includes(e.gridFlow)), F = _(() => f.value !== 0 || ["charge", "discharge"].includes(e.batteryFlow)), B = _(() => e.gridFlow === "export" ? !0 : e.gridFlow === "import" ? !1 : d.value < 0), X = _(() => e.batteryFlow === "charge" ? !0 : e.batteryFlow === "discharge" ? !1 : f.value > 0), ve = _(() => b.value > 0 && e.houseFlow !== "idle"), C = _(() => e.houseFlow !== "reverse"), V = _(() => o(b.value)), Ve = _(() => i("inverter")), re = Fn(), K = _(() => re.value === "reduce"), ye = _(() => [
2376
+ }, r = _(() => u(c("solar", "solar-power", 0), e.solarPower)), d = _(() => u(c("grid", "grid-power", 0), e.gridPower)), f = _(() => u(c("battery", "battery-power", 0), e.batteryPower)), v = _(() => u(c("battery", "battery-soc", 1), e.batterySoc)), b = _(() => u(c("house", "house-load", 0), e.loadPower)), h = _(() => r.value > 0 && e.solarFlow !== "idle"), $ = _(() => e.solarFlow === "reverse"), O = _(() => d.value !== 0 || ["import", "export"].includes(e.gridFlow)), F = _(() => f.value !== 0 || ["charge", "discharge"].includes(e.batteryFlow)), B = _(() => e.gridFlow === "export" ? !0 : e.gridFlow === "import" ? !1 : d.value < 0), X = _(() => e.batteryFlow === "charge" ? !0 : e.batteryFlow === "discharge" ? !1 : f.value > 0), ge = _(() => b.value > 0 && e.houseFlow !== "idle"), C = _(() => e.houseFlow !== "reverse"), V = _(() => o(b.value)), Ve = _(() => i("inverter")), re = Fn(), K = _(() => re.value === "reduce"), ye = _(() => [
2377
2377
  { id: "solar", active: h.value, reverse: $.value, speed: a(r.value) },
2378
2378
  { id: "battery", active: F.value, reverse: X.value, speed: a(f.value) },
2379
2379
  { id: "grid", active: O.value, reverse: B.value, speed: a(d.value) },
2380
- { id: "home", active: ve.value, reverse: C.value, speed: a(b.value) }
2380
+ { id: "home", active: ge.value, reverse: C.value, speed: a(b.value) }
2381
2381
  ]), Ue = _(() => ye.value.filter((U) => U.active)), ut = _(() => [
2382
2382
  {
2383
2383
  key: "solar",
@@ -2431,10 +2431,10 @@ v + ' кВт·ч<br>выработка за день'`),
2431
2431
  if (!U || !G) return;
2432
2432
  const z = U.getBoundingClientRect();
2433
2433
  if (z.width < 2 || z.height < 2) return;
2434
- const N = Be(G, z), ge = N.x + N.width / 2, Ke = N.y + N.height / 2, We = ye.value.map((ue) => {
2434
+ const N = Be(G, z), ve = N.x + N.width / 2, Ke = N.y + N.height / 2, We = ye.value.map((ue) => {
2435
2435
  const Ce = Oe.get(ue.id);
2436
2436
  if (!Ce) return null;
2437
- const P = Be(Ce, z), Se = P.x + P.width / 2, $e = P.y + P.height / 2, me = ge - Se, fe = Ke - $e, le = Math.abs(me) >= Math.abs(fe), ee = le ? me > 0 ? "right" : "left" : fe > 0 ? "bottom" : "top", et = ee === "left" ? "right" : ee === "right" ? "left" : ee === "top" ? "bottom" : "top";
2437
+ const P = Be(Ce, z), Se = P.x + P.width / 2, $e = P.y + P.height / 2, me = ve - Se, fe = Ke - $e, le = Math.abs(me) >= Math.abs(fe), ee = le ? me > 0 ? "right" : "left" : fe > 0 ? "bottom" : "top", et = ee === "left" ? "right" : ee === "right" ? "left" : ee === "top" ? "bottom" : "top";
2438
2438
  return { id: ue.id, rect: P, nodeSide: ee, portSide: et, pos: le ? $e : Se };
2439
2439
  }).filter((ue) => ue !== null), Ge = { left: [], right: [], top: [], bottom: [] };
2440
2440
  for (const ue of We) Ge[ue.portSide].push(ue);
@@ -2447,8 +2447,8 @@ v + ' кВт·ч<br>выработка за день'`),
2447
2447
  ue === "left" ? (me = N.x, fe = N.y + N.height * $e) : ue === "right" ? (me = N.x + N.width, fe = N.y + N.height * $e) : ue === "top" ? (me = N.x + N.width * $e, fe = N.y) : (me = N.x + N.width * $e, fe = N.y + N.height);
2448
2448
  let le = 0, ee = 0;
2449
2449
  P.nodeSide === "left" ? (le = P.rect.x, ee = P.rect.y + P.rect.height / 2) : P.nodeSide === "right" ? (le = P.rect.x + P.rect.width, ee = P.rect.y + P.rect.height / 2) : P.nodeSide === "top" ? (le = P.rect.x + P.rect.width / 2, ee = P.rect.y) : (le = P.rect.x + P.rect.width / 2, ee = P.rect.y + P.rect.height);
2450
- const vt = P.portSide === "left" || P.portSide === "right" ? `M${le.toFixed(1)} ${ee.toFixed(1)} C${(le + (me - le) * 0.55).toFixed(1)} ${ee.toFixed(1)} ${(le + (me - le) * 0.55).toFixed(1)} ${fe.toFixed(1)} ${me.toFixed(1)} ${fe.toFixed(1)}` : `M${le.toFixed(1)} ${ee.toFixed(1)} C${le.toFixed(1)} ${(ee + (fe - ee) * 0.55).toFixed(1)} ${me.toFixed(1)} ${(ee + (fe - ee) * 0.55).toFixed(1)} ${me.toFixed(1)} ${fe.toFixed(1)}`;
2451
- Qe[P.id] = vt;
2450
+ const gt = P.portSide === "left" || P.portSide === "right" ? `M${le.toFixed(1)} ${ee.toFixed(1)} C${(le + (me - le) * 0.55).toFixed(1)} ${ee.toFixed(1)} ${(le + (me - le) * 0.55).toFixed(1)} ${fe.toFixed(1)} ${me.toFixed(1)} ${fe.toFixed(1)}` : `M${le.toFixed(1)} ${ee.toFixed(1)} C${le.toFixed(1)} ${(ee + (fe - ee) * 0.55).toFixed(1)} ${me.toFixed(1)} ${(ee + (fe - ee) * 0.55).toFixed(1)} ${me.toFixed(1)} ${fe.toFixed(1)}`;
2451
+ Qe[P.id] = gt;
2452
2452
  });
2453
2453
  }
2454
2454
  Z.value = { width: z.width, height: z.height, paths: Qe };
@@ -2466,10 +2466,10 @@ v + ' кВт·ч<br>выработка за день'`),
2466
2466
  header: x(() => [
2467
2467
  l("div", so, [
2468
2468
  l("span", {
2469
- class: j(["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-300/60 bg-gray-500/10 text-gray-500 dark:border-white/10 dark:text-gray-400"])
2469
+ class: j(["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"])
2470
2470
  }, [
2471
2471
  l("span", {
2472
- class: j(["size-1.5 rounded-full", e.online ? "animate-pulse bg-emerald-500" : "bg-gray-400"])
2472
+ class: j(["size-1.5 rounded-full", e.online ? "animate-pulse bg-emerald-500" : "bg-gray-main"])
2473
2473
  }, null, 2),
2474
2474
  A(" " + w(e.online ? "Онлайн" : "Не в сети"), 1)
2475
2475
  ], 2),
@@ -2512,20 +2512,20 @@ v + ' кВт·ч<br>выработка за день'`),
2512
2512
  ref: Le,
2513
2513
  class: "relative min-h-120 lg:min-h-104"
2514
2514
  }, [
2515
- Z.value ? (m(), v("svg", {
2515
+ Z.value ? (m(), g("svg", {
2516
2516
  key: 0,
2517
2517
  class: "pointer-events-none absolute inset-0 size-full",
2518
2518
  viewBox: `0 0 ${Z.value.width} ${Z.value.height}`,
2519
2519
  "aria-hidden": "true"
2520
2520
  }, [
2521
- (m(!0), v(D, null, H(ye.value, (z) => (m(), v("path", {
2521
+ (m(!0), g(D, null, H(ye.value, (z) => (m(), g("path", {
2522
2522
  id: `energy-path-${z.id}`,
2523
2523
  key: `rail-${z.id}`,
2524
- class: "stroke-current text-gray-400 dark:text-white/20 [stroke-width:1.5] [stroke-linecap:round] [stroke-dasharray:2_6] opacity-45",
2524
+ class: "stroke-current text-gray-main dark:text-white/20 [stroke-width:1.5] [stroke-linecap:round] [stroke-dasharray:2_6] opacity-45",
2525
2525
  d: Z.value.paths[z.id],
2526
2526
  fill: "none"
2527
2527
  }, null, 8, oo))), 128)),
2528
- (m(!0), v(D, null, H(Ue.value, (z) => (m(), v("g", {
2528
+ (m(!0), g(D, null, H(Ue.value, (z) => (m(), g("g", {
2529
2529
  key: `flow-${z.id}`
2530
2530
  }, [
2531
2531
  l("path", {
@@ -2539,21 +2539,21 @@ v + ' кВт·ч<br>выработка за день'`),
2539
2539
  fill: "none"
2540
2540
  }, null, 8, ro),
2541
2541
  l("path", {
2542
- class: j(["animate-energy-flow stroke-[var(--color-neutral-light-30)] [stroke-width:2] [stroke-linecap:round] [stroke-dasharray:16_22] opacity-75 drop-shadow-[var(--shadow-cyan-glow-xs)] motion-reduce:animate-none motion-reduce:[stroke-dasharray:none]", { "[animation-direction:reverse]": z.reverse }]),
2542
+ class: j(["animate-energy-flow stroke-[var(--color-gray-light-30)] [stroke-width:2] [stroke-linecap:round] [stroke-dasharray:16_22] opacity-75 drop-shadow-[var(--shadow-cyan-glow-xs)] motion-reduce:animate-none motion-reduce:[stroke-dasharray:none]", { "[animation-direction:reverse]": z.reverse }]),
2543
2543
  d: Z.value.paths[z.id],
2544
2544
  style: Me({ animationDuration: `${z.speed}s` }),
2545
2545
  fill: "none"
2546
2546
  }, null, 14, co),
2547
- K.value ? T("", !0) : (m(), v(D, { key: 0 }, H([0, 1, 2], (N, ge) => l("circle", {
2547
+ K.value ? T("", !0) : (m(), g(D, { key: 0 }, H([0, 1, 2], (N, ve) => l("circle", {
2548
2548
  key: `dot-${z.id}-${N}`,
2549
2549
  r: "2.6",
2550
- fill: "var(--color-neutral-light-30)",
2550
+ fill: "var(--color-gray-light-30)",
2551
2551
  opacity: "0",
2552
2552
  class: "drop-shadow-[var(--shadow-cyan-glow-dot)]"
2553
2553
  }, [
2554
2554
  l("animateMotion", {
2555
2555
  dur: `${z.speed}s`,
2556
- begin: `${ge * z.speed / 3}s`,
2556
+ begin: `${ve * z.speed / 3}s`,
2557
2557
  repeatCount: "indefinite",
2558
2558
  calcMode: "linear",
2559
2559
  keyTimes: "0;1",
@@ -2568,14 +2568,14 @@ v + ' кВт·ч<br>выработка за день'`),
2568
2568
  values: "0;1;1;0",
2569
2569
  keyTimes: "0;0.15;0.85;1",
2570
2570
  dur: `${z.speed}s`,
2571
- begin: `${ge * z.speed / 3}s`,
2571
+ begin: `${ve * z.speed / 3}s`,
2572
2572
  repeatCount: "indefinite"
2573
2573
  }, null, 8, fo)
2574
2574
  ])), 64))
2575
2575
  ]))), 128))
2576
2576
  ], 8, ao)) : T("", !0),
2577
- l("div", vo, [
2578
- (m(!0), v(D, null, H(ut.value, (z) => (m(), v("div", {
2577
+ l("div", go, [
2578
+ (m(!0), g(D, null, H(ut.value, (z) => (m(), g("div", {
2579
2579
  key: z.key,
2580
2580
  ref_for: !0,
2581
2581
  ref: (N) => mt(z.key, N),
@@ -2584,7 +2584,7 @@ v + ' кВт·ч<br>выработка за день'`),
2584
2584
  l("div", {
2585
2585
  class: j(["relative flex w-full max-w-none flex-col gap-3 rounded-2xl border p-4 shadow-[var(--shadow-cyan-glow-soft)] lg:max-w-56", z.card])
2586
2586
  }, [
2587
- l("div", go, [
2587
+ l("div", vo, [
2588
2588
  l("span", {
2589
2589
  class: j(["grid size-8 shrink-0 place-items-center rounded-lg", z.surface])
2590
2590
  }, [
@@ -2596,8 +2596,8 @@ v + ' кВт·ч<br>выработка за день'`),
2596
2596
  ], 2),
2597
2597
  l("span", po, w(z.label), 1)
2598
2598
  ]),
2599
- z.metrics.length ? (m(), v("div", ho, [
2600
- (m(!0), v(D, null, H(z.metrics, (N) => (m(), v("div", {
2599
+ z.metrics.length ? (m(), g("div", ho, [
2600
+ (m(!0), g(D, null, H(z.metrics, (N) => (m(), g("div", {
2601
2601
  key: N.id,
2602
2602
  class: "glass-inset rounded-lg px-3 py-2"
2603
2603
  }, [
@@ -2631,7 +2631,7 @@ v + ' кВт·ч<br>выработка за день'`),
2631
2631
  l("span", So, w(e.loadLabel), 1)
2632
2632
  ]),
2633
2633
  l("dl", zo, [
2634
- (m(!0), v(D, null, H(Ve.value, (z) => (m(), v("div", {
2634
+ (m(!0), g(D, null, H(Ve.value, (z) => (m(), g("div", {
2635
2635
  key: z.id,
2636
2636
  class: "glass-inset rounded-md px-3 py-2"
2637
2637
  }, [
@@ -2643,13 +2643,13 @@ v + ' кВт·ч<br>выработка за день'`),
2643
2643
  ]),
2644
2644
  l("div", Ao, [
2645
2645
  l("div", Vo, [
2646
- G[2] || (G[2] = l("span", { class: "text-gray-500 dark:text-gray-400" }, "Батарея", -1)),
2647
- l("span", Bo, w(g.value) + " %", 1)
2646
+ G[2] || (G[2] = l("span", { class: "text-gray-dark-25 dark:text-gray-main" }, "Батарея", -1)),
2647
+ l("span", Bo, w(v.value) + " %", 1)
2648
2648
  ]),
2649
2649
  l("div", Eo, [
2650
2650
  l("div", {
2651
2651
  class: "h-full rounded-full bg-emerald-500 transition-all duration-500",
2652
- style: Me({ width: `${g.value}%` })
2652
+ style: Me({ width: `${v.value}%` })
2653
2653
  }, null, 4)
2654
2654
  ])
2655
2655
  ])
@@ -2895,23 +2895,23 @@ v + ' кВт·ч<br>выработка за день'`),
2895
2895
  }), i = _(() => a.createContext(xn(t))), c = _(() => Vt(e, o.value, i.value)), u = _(() => ({ ...o.value.units ?? {} })), r = async () => {
2896
2896
  if (s.storage)
2897
2897
  try {
2898
- const g = (await s.storage.read()).find((b) => b.id === n);
2899
- if (!g) return;
2898
+ const v = (await s.storage.read()).find((b) => b.id === n);
2899
+ if (!v) return;
2900
2900
  o.value = {
2901
2901
  ...o.value,
2902
- ...g,
2902
+ ...v,
2903
2903
  id: n,
2904
2904
  type: e.type,
2905
2905
  provider: a.id,
2906
- bindings: { ...o.value.bindings, ...g.bindings }
2906
+ bindings: { ...o.value.bindings, ...v.bindings }
2907
2907
  };
2908
2908
  } catch {
2909
2909
  }
2910
2910
  }, d = async (f) => {
2911
2911
  if (o.value = f, !!s.storage)
2912
2912
  try {
2913
- const g = await s.storage.read();
2914
- await s.storage.write([...g.filter((b) => b.id !== f.id), f]);
2913
+ const v = await s.storage.read();
2914
+ await s.storage.write([...v.filter((b) => b.id !== f.id), f]);
2915
2915
  } catch {
2916
2916
  }
2917
2917
  };
@@ -2929,17 +2929,17 @@ v + ' кВт·ч<br>выработка за день'`),
2929
2929
  height: "1.2em"
2930
2930
  };
2931
2931
  function ii(e, t) {
2932
- return m(), v("svg", oi, [...t[0] || (t[0] = [
2932
+ return m(), g("svg", oi, [...t[0] || (t[0] = [
2933
2933
  l("path", {
2934
2934
  fill: "currentColor",
2935
2935
  d: "M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9zm-2 5h6v2H7zm0 4h6v2H7z"
2936
2936
  }, null, -1)
2937
2937
  ])]);
2938
2938
  }
2939
- const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-auto flex justify-between" }, ci = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, ui = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, mi = {
2939
+ const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-auto flex justify-between" }, ci = { class: "text-sm text-gray-dark-25 font-medium line-clamp-2 overflow-hidden" }, ui = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, mi = {
2940
2940
  key: 0,
2941
- class: "absolute left-1/2 top-1/2 size-[calc(50%)] text-gray-200/30 dark:text-gray-800/30 -translate-1/2"
2942
- }, fi = { class: "min-h-60 relative" }, vi = { class: "pt-6" }, gi = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, pi = { class: "text-center text-xl mt-4" }, He = /* @__PURE__ */ E({
2941
+ class: "absolute left-1/2 top-1/2 size-[calc(50%)] text-gray-light-10/30 dark:text-gray-dark-30/30 -translate-1/2"
2942
+ }, fi = { class: "min-h-60 relative" }, gi = { class: "pt-6" }, vi = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, pi = { class: "text-center text-xl mt-4" }, He = /* @__PURE__ */ E({
2943
2943
  __name: "CardBase",
2944
2944
  props: {
2945
2945
  size: {},
@@ -2959,12 +2959,12 @@ const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-a
2959
2959
  },
2960
2960
  emits: ["edit", "close", "click", "clone", "open", "setState"],
2961
2961
  setup(e, { emit: t }) {
2962
- const s = e, a = t, n = L(!1), o = _(() => ["button", "dimmer"].includes(s.type || "") && s.value ? "text-amber-500" : "text-gray-400"), i = (f) => a("edit", f), c = (f) => a("clone", f), u = () => n.value = !0, r = (f) => a("open", f), d = (f) => {
2962
+ const s = e, a = t, n = L(!1), o = _(() => ["button", "dimmer"].includes(s.type || "") && s.value ? "text-amber-500" : "text-gray-main"), i = (f) => a("edit", f), c = (f) => a("clone", f), u = () => n.value = !0, r = (f) => a("open", f), d = (f) => {
2963
2963
  n.value = !1, a("close", f);
2964
2964
  };
2965
- return (f, g) => {
2965
+ return (f, v) => {
2966
2966
  const b = qt, h = ri;
2967
- return m(), v("div", {
2967
+ return m(), g("div", {
2968
2968
  class: "glass-panel relative flex aspect-square cursor-pointer flex-col p-2 transition-all hover:border-cyan-main/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_50px_-18px_rgba(40,183,240,0.25)]",
2969
2969
  onClick: u
2970
2970
  }, [
@@ -2990,7 +2990,7 @@ const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-a
2990
2990
  ])
2991
2991
  ])
2992
2992
  ]),
2993
- s.icon ? (m(), v("div", mi, [
2993
+ s.icon ? (m(), g("div", mi, [
2994
2994
  M(f.$slots, "icon", ae(oe(s)))
2995
2995
  ])) : T("", !0),
2996
2996
  n.value ? (m(), I(Ae, {
@@ -3015,15 +3015,15 @@ const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-a
3015
3015
  onClick: c
3016
3016
  }, {
3017
3017
  default: x(() => [
3018
- p(h, { class: "size-4 text-gray-500" })
3018
+ p(h, { class: "size-4 text-gray-dark-25" })
3019
3019
  ]),
3020
3020
  _: 1
3021
3021
  })
3022
3022
  ]),
3023
3023
  default: x(() => [
3024
3024
  l("div", fi, [
3025
- l("div", vi, [
3026
- l("h3", gi, [
3025
+ l("div", gi, [
3026
+ l("h3", vi, [
3027
3027
  M(f.$slots, "dialog-name", ae(oe(s)), () => [
3028
3028
  A(w(s.name), 1)
3029
3029
  ])
@@ -3048,7 +3048,7 @@ const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-a
3048
3048
  height: "1.2em"
3049
3049
  };
3050
3050
  function yi(e, t) {
3051
- return m(), v("svg", hi, [...t[0] || (t[0] = [
3051
+ return m(), g("svg", hi, [...t[0] || (t[0] = [
3052
3052
  l("path", {
3053
3053
  fill: "currentColor",
3054
3054
  d: "m6.265 3.807l1.147 1.639a8 8 0 1 0 9.176 0l1.147-1.639A9.99 9.99 0 0 1 22 12c0 5.523-4.477 10-10 10S2 17.523 2 12a9.99 9.99 0 0 1 4.265-8.193M11 12V2h2v10z"
@@ -3093,7 +3093,7 @@ const bi = ne({ name: "ri-shut-down-line", render: yi }), xi = { class: "flex ju
3093
3093
  l("div", xi, [
3094
3094
  p(R, q(n(r), {
3095
3095
  type: "icon",
3096
- class: s.value ? "text-amber-500" : "text-gray-500",
3096
+ class: s.value ? "text-amber-500" : "text-gray-dark-25",
3097
3097
  onClick: te(o, ["stop"])
3098
3098
  }), {
3099
3099
  default: x(() => [
@@ -3107,7 +3107,7 @@ const bi = ne({ name: "ri-shut-down-line", render: yi }), xi = { class: "flex ju
3107
3107
  l("div", ki, [
3108
3108
  p(R, q(n(r), {
3109
3109
  type: "icon",
3110
- class: ["size-18", s.value ? "text-amber-500" : "text-gray-500"],
3110
+ class: ["size-18", s.value ? "text-amber-500" : "text-gray-dark-25"],
3111
3111
  onClick: te(o, ["stop"])
3112
3112
  }), {
3113
3113
  default: x(() => [
@@ -3127,7 +3127,7 @@ const bi = ne({ name: "ri-shut-down-line", render: yi }), xi = { class: "flex ju
3127
3127
  height: "1.2em"
3128
3128
  };
3129
3129
  function wi(e, t) {
3130
- return m(), v("svg", $i, [...t[0] || (t[0] = [
3130
+ return m(), g("svg", $i, [...t[0] || (t[0] = [
3131
3131
  l("path", {
3132
3132
  fill: "currentColor",
3133
3133
  d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m1-8h4v2h-6V7h2z"
@@ -3159,8 +3159,8 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3159
3159
  const d = (f = r == null ? void 0 : r.target) == null ? void 0 : f.valueAsNumber;
3160
3160
  d && a("setState", d / 1e3);
3161
3161
  }, c = ({ name: r, value: d, opts: f = {} }) => {
3162
- const { disabled: g } = f;
3163
- return { label: r, modelValue: o(d), disabled: g };
3162
+ const { disabled: v } = f;
3163
+ return { label: r, modelValue: o(d), disabled: v };
3164
3164
  }, u = () => {
3165
3165
  var d, f;
3166
3166
  const r = (f = (d = n.value) == null ? void 0 : d.$el) == null ? void 0 : f.querySelector("input");
@@ -3169,18 +3169,18 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3169
3169
  return (r, d) => {
3170
3170
  const f = _i;
3171
3171
  return m(), I(He, q(s, {
3172
- onClick: d[0] || (d[0] = (g) => a("click", g)),
3173
- onEdit: d[1] || (d[1] = (g) => a("edit", g)),
3174
- onClone: d[2] || (d[2] = (g) => a("clone", g))
3172
+ onClick: d[0] || (d[0] = (v) => a("click", v)),
3173
+ onEdit: d[1] || (d[1] = (v) => a("edit", v)),
3174
+ onClone: d[2] || (d[2] = (v) => a("clone", v))
3175
3175
  }), {
3176
- icon: x((g) => [
3177
- M(r.$slots, "icon", ae(oe(g)))
3176
+ icon: x((v) => [
3177
+ M(r.$slots, "icon", ae(oe(v)))
3178
3178
  ]),
3179
- header: x((g) => [
3179
+ header: x((v) => [
3180
3180
  l("div", null, [
3181
3181
  p(R, {
3182
3182
  type: "icon",
3183
- class: "text-gray-500",
3183
+ class: "text-gray-dark-25",
3184
3184
  onClick: te(u, ["stop"])
3185
3185
  }, {
3186
3186
  default: x(() => [
@@ -3191,7 +3191,7 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3191
3191
  p(ie, q({
3192
3192
  ref_key: "time",
3193
3193
  ref: n
3194
- }, c(g), {
3194
+ }, c(v), {
3195
3195
  type: "datetime-local",
3196
3196
  class: "size-0",
3197
3197
  hidden: "",
@@ -3199,9 +3199,9 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3199
3199
  }), null, 16)
3200
3200
  ])
3201
3201
  ]),
3202
- dialog: x((g) => [
3202
+ dialog: x((v) => [
3203
3203
  l("div", Ci, [
3204
- p(ie, q(c(g), {
3204
+ p(ie, q(c(v), {
3205
3205
  type: "datetime-local",
3206
3206
  onChange: i
3207
3207
  }), null, 16)
@@ -3240,31 +3240,31 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3240
3240
  emits: ["edit", "close", "click", "clone", "open", "setState"],
3241
3241
  setup(e, { emit: t }) {
3242
3242
  const s = e, a = t, n = L(0), o = ({ opts: d, value: f }) => Math.round(100 * +f / ((d == null ? void 0 : d.max) || 255)), i = ({ opts: d, value: f }) => Math.round(187 - +f / ((d == null ? void 0 : d.max) || 255) * 187), c = ({ value: d, opts: f }) => {
3243
- const { min: g = 0, max: b = 255, step: h = 1, disabled: $ } = f || {};
3244
- return { min: g, max: b, step: h, value: d, disabled: !!$, class: $ ? "" : "cursor-pointer" };
3243
+ const { min: v = 0, max: b = 255, step: h = 1, disabled: $ } = f || {};
3244
+ return { min: v, max: b, step: h, value: d, disabled: !!$, class: $ ? "" : "cursor-pointer" };
3245
3245
  }, u = (d) => a("setState", +d.target.value || 0), r = ({ value: d }) => {
3246
3246
  +d != 0 ? (n.value = +d, a("setState", 0)) : a("setState", d ? 0 : n.value || 255);
3247
3247
  };
3248
3248
  return (d, f) => (m(), I(He, q(s, {
3249
- onClick: f[0] || (f[0] = (g) => a("click", g)),
3250
- onEdit: f[1] || (f[1] = (g) => a("edit", g)),
3251
- onClone: f[2] || (f[2] = (g) => a("clone", g))
3249
+ onClick: f[0] || (f[0] = (v) => a("click", v)),
3250
+ onEdit: f[1] || (f[1] = (v) => a("edit", v)),
3251
+ onClone: f[2] || (f[2] = (v) => a("clone", v))
3252
3252
  }), {
3253
- icon: x((g) => [
3254
- M(d.$slots, "icon", ae(oe(g)))
3253
+ icon: x((v) => [
3254
+ M(d.$slots, "icon", ae(oe(v)))
3255
3255
  ]),
3256
- header: x((g) => [
3256
+ header: x((v) => [
3257
3257
  l("div", Si, [
3258
3258
  l("div", zi, [
3259
- p(R, q(c(g), {
3259
+ p(R, q(c(v), {
3260
3260
  type: "icon",
3261
- onClick: te((b) => r(g), ["stop"])
3261
+ onClick: te((b) => r(v), ["stop"])
3262
3262
  }), {
3263
3263
  default: x(() => [
3264
3264
  l("div", Ti, [
3265
- (m(), v("svg", Ai, [
3265
+ (m(), g("svg", Ai, [
3266
3266
  f[3] || (f[3] = l("circle", {
3267
- class: "stroke-gray-300 dark:stroke-gray-700",
3267
+ class: "stroke-gray-light-10 dark:stroke-gray-dark-30",
3268
3268
  r: "30",
3269
3269
  cx: "30",
3270
3270
  cy: "30",
@@ -3278,7 +3278,7 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3278
3278
  stroke: "currentColor",
3279
3279
  "stroke-width": "8",
3280
3280
  "stroke-linecap": "butt",
3281
- "stroke-dashoffset": i(g),
3281
+ "stroke-dashoffset": i(v),
3282
3282
  fill: "transparent",
3283
3283
  "stroke-dasharray": "187"
3284
3284
  }, null, 8, Vi)
@@ -3290,17 +3290,17 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3290
3290
  ])
3291
3291
  ])
3292
3292
  ]),
3293
- dialog: x((g) => [
3293
+ dialog: x((v) => [
3294
3294
  l("div", {
3295
- class: j(["flex justify-center relative mx-2 my-6", c(g).disabled ? "opacity-40" : ""])
3295
+ class: j(["flex justify-center relative mx-2 my-6", c(v).disabled ? "opacity-40" : ""])
3296
3296
  }, [
3297
- f[4] || (f[4] = l("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
3297
+ f[4] || (f[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)),
3298
3298
  l("div", {
3299
3299
  class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
3300
- style: Me(`width: ${o(g)}%`)
3300
+ style: Me(`width: ${o(v)}%`)
3301
3301
  }, null, 4),
3302
- l("div", Bi, w(o(g)) + " %", 1),
3303
- l("input", q({ type: "range" }, c(g), {
3302
+ l("div", Bi, w(o(v)) + " %", 1),
3303
+ l("input", q({ type: "range" }, c(v), {
3304
3304
  class: "w-full h-10 z-10 appearance-none opacity-0",
3305
3305
  onChange: u
3306
3306
  }), null, 16)
@@ -3409,7 +3409,7 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3409
3409
  height: "1.2em"
3410
3410
  };
3411
3411
  function Li(e, t) {
3412
- return m(), v("svg", Mi, [...t[0] || (t[0] = [
3412
+ return m(), g("svg", Mi, [...t[0] || (t[0] = [
3413
3413
  l("path", {
3414
3414
  fill: "currentColor",
3415
3415
  d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
@@ -3441,8 +3441,8 @@ const Ii = ne({ name: "ri-list-check", render: Li }), Oi = { class: "flex justif
3441
3441
  return Array.isArray(c == null ? void 0 : c.items) && ((r = c == null ? void 0 : c.items.find((d) => d.value == u)) == null ? void 0 : r.name) || u;
3442
3442
  }, i = ({ name: c, value: u, opts: r = {} }) => {
3443
3443
  var b;
3444
- const { items: d = [], disabled: f } = r, g = ((b = d.find((h) => h.value == u)) == null ? void 0 : b.name) || u;
3445
- return { label: c, modelValue: g, items: d, disabled: !!f };
3444
+ const { items: d = [], disabled: f } = r, v = ((b = d.find((h) => h.value == u)) == null ? void 0 : b.name) || u;
3445
+ return { label: c, modelValue: v, items: d, disabled: !!f };
3446
3446
  };
3447
3447
  return (c, u) => {
3448
3448
  const r = Ii;
@@ -3474,7 +3474,7 @@ const Ii = ne({ name: "ri-list-check", render: Li }), Oi = { class: "flex justif
3474
3474
  activator: x(({ on: f }) => [
3475
3475
  p(R, {
3476
3476
  type: "icon",
3477
- class: "text-gray-500",
3477
+ class: "text-gray-dark-25",
3478
3478
  onClick: te(f.click, ["stop"])
3479
3479
  }, {
3480
3480
  default: x(() => [
@@ -3506,7 +3506,7 @@ const Ii = ne({ name: "ri-list-check", render: Li }), Oi = { class: "flex justif
3506
3506
  height: "1.2em"
3507
3507
  };
3508
3508
  function Di(e, t) {
3509
- return m(), v("svg", Fi, [...t[0] || (t[0] = [
3509
+ return m(), g("svg", Fi, [...t[0] || (t[0] = [
3510
3510
  l("path", {
3511
3511
  fill: "currentColor",
3512
3512
  d: "M15.5 5a3.5 3.5 0 1 0 0 7a3.5 3.5 0 0 0 0-7M10 8.5a5.5 5.5 0 1 1 10.032 3.117l2.675 2.676l-1.414 1.414l-2.675-2.675A5.5 5.5 0 0 1 10 8.5M3 4h5v2H3zm0 7h5v2H3zm18 7v2H3v-2z"
@@ -3523,17 +3523,17 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3523
3523
  emits: ["click"],
3524
3524
  setup(e, { expose: t, emit: s }) {
3525
3525
  const a = s, n = L(e.value || 0), o = (c) => [
3526
- n.value === c ? "bg-cyan-main/10 text-cyan-main" : "text-gray-500 hover:bg-white/5 dark:text-white/50 dark:hover:bg-white/5"
3526
+ n.value === c ? "bg-cyan-main/10 text-cyan-main" : "text-gray-dark-25 hover:bg-white/5 dark:text-white/50 dark:hover:bg-white/5"
3527
3527
  ], i = (c) => {
3528
3528
  n.value = c, a("click", c);
3529
3529
  };
3530
3530
  return t({
3531
3531
  setActiveTab: i,
3532
3532
  activeTab: n
3533
- }), (c, u) => (m(), v("div", null, [
3533
+ }), (c, u) => (m(), g("div", null, [
3534
3534
  l("div", Ri, [
3535
3535
  l("div", Ni, [
3536
- (m(!0), v(D, null, H(e.items, (r, d) => (m(), v("div", {
3536
+ (m(!0), g(D, null, H(e.items, (r, d) => (m(), g("div", {
3537
3537
  key: d,
3538
3538
  class: "relative flex-auto"
3539
3539
  }, [
@@ -3559,7 +3559,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3559
3559
  ])
3560
3560
  ]),
3561
3561
  l("div", Hi, [
3562
- (m(!0), v(D, null, H(e.items, (r, d) => (m(), v("div", {
3562
+ (m(!0), g(D, null, H(e.items, (r, d) => (m(), g("div", {
3563
3563
  key: d,
3564
3564
  class: "tab-panel"
3565
3565
  }, [
@@ -3572,7 +3572,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3572
3572
  "leave-to-class": "transform opacity-0 -translate-x-2"
3573
3573
  }, {
3574
3574
  default: x(() => [
3575
- n.value === d ? (m(), v("div", Ui, [
3575
+ n.value === d ? (m(), g("div", Ui, [
3576
3576
  M(c.$slots, `tab-${d}`)
3577
3577
  ])) : T("", !0)
3578
3578
  ]),
@@ -3594,7 +3594,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3594
3594
  const i = o.target;
3595
3595
  s("update:modelValue", i.checked);
3596
3596
  }, n = (o) => s("click", o);
3597
- return (o, i) => (m(), v("label", {
3597
+ return (o, i) => (m(), g("label", {
3598
3598
  class: j(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
3599
3599
  onClick: n
3600
3600
  }, [
@@ -3602,7 +3602,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3602
3602
  type: "checkbox",
3603
3603
  checked: !!e.modelValue,
3604
3604
  disabled: e.disabled,
3605
- class: "peer size-5 appearance-none rounded-md border border-gray-300/80 bg-transparent transition-all checked:border-[var(--color-blue-main)] disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15",
3605
+ class: "peer size-5 appearance-none rounded-md border border-gray-light-10/80 bg-transparent transition-all checked:border-[var(--color-blue-main)] disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15",
3606
3606
  onChange: a
3607
3607
  }, null, 40, Wi),
3608
3608
  i[0] || (i[0] = l("button", { class: "pointer-events-none absolute left-[10px] top-1/2 -translate-x-1/2 -translate-y-1/2 text-[var(--color-blue-main)] opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 dark:text-white" }, [
@@ -3650,7 +3650,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3650
3650
  }), c = (h) => e.type === h, u = (h, $) => s("update", h, $), r = (h) => h.map(({ name: $, value: O }) => ({ name: $, value: O })), d = ({ id: h, name: $, value: O }) => n.value = { id: h, name: $, value: O }, f = () => {
3651
3651
  const h = o.value;
3652
3652
  n.value = { name: `New_${h}`, value: `${h}`, id: h }, u("items", r([...a.value, n.value]));
3653
- }, g = (h) => {
3653
+ }, v = (h) => {
3654
3654
  n.value.name === h.name && (n.value = { name: "", value: "" }), u("items", r(a.value.filter(($) => $.value !== h.value)));
3655
3655
  }, b = Ct(() => {
3656
3656
  const h = n.value;
@@ -3660,7 +3660,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3660
3660
  }, 300);
3661
3661
  return (h, $) => {
3662
3662
  const O = Pe, F = ct;
3663
- return m(), v("div", Xi, [
3663
+ return m(), g("div", Xi, [
3664
3664
  l("div", qi, [
3665
3665
  p(Ji, {
3666
3666
  modelValue: e.disabled,
@@ -3672,7 +3672,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3672
3672
  _: 1
3673
3673
  }, 8, ["modelValue"])
3674
3674
  ]),
3675
- c("dimmer") ? (m(), v("div", Yi, [
3675
+ c("dimmer") ? (m(), g("div", Yi, [
3676
3676
  p(ie, {
3677
3677
  modelValue: e.min,
3678
3678
  label: "Min",
@@ -3689,7 +3689,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3689
3689
  "onUpdate:modelValue": $[3] || ($[3] = (B) => u("step", +B))
3690
3690
  }, null, 8, ["modelValue"])
3691
3691
  ])) : T("", !0),
3692
- c("list") ? (m(), v("div", Zi, [
3692
+ c("list") ? (m(), g("div", Zi, [
3693
3693
  l("div", Qi, [
3694
3694
  p(ie, {
3695
3695
  modelValue: n.value.name,
@@ -3724,7 +3724,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3724
3724
  l("span", null, w(B.name), 1),
3725
3725
  l("button", {
3726
3726
  class: "cursor-pointer size-4",
3727
- onClick: te((X) => g(B), ["prevent", "stop"])
3727
+ onClick: te((X) => v(B), ["prevent", "stop"])
3728
3728
  }, [
3729
3729
  p(O)
3730
3730
  ], 8, nr)
@@ -3747,7 +3747,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3747
3747
  ]);
3748
3748
  };
3749
3749
  }
3750
- }), sr = { class: "flex flex-col" }, ar = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, or = { class: "flex-auto order-1" }, ir = { class: "flex-auto gap-x-2 order-1" }, rr = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, dr = { class: "flex gap-2 items-center" }, cr = { class: "flex flex-col gap-4" }, ur = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, mr = { class: "relative group" }, fr = { class: "select-none" }, vr = ["onClick"], gr = { class: "flex justify-center order-0 md:order-1" }, pr = { class: "flex-[0_0_130px] size-[130px]" }, hr = { class: "flex gap-4 justify-end" }, yr = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, tc = /* @__PURE__ */ E({
3750
+ }), sr = { class: "flex flex-col" }, ar = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, or = { class: "flex-auto order-1" }, ir = { class: "flex-auto gap-x-2 order-1" }, rr = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, dr = { class: "flex gap-2 items-center" }, cr = { class: "flex flex-col gap-4" }, ur = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, mr = { class: "relative group" }, fr = { class: "select-none" }, gr = ["onClick"], vr = { class: "flex justify-center order-0 md:order-1" }, pr = { class: "flex-[0_0_130px] size-[130px]" }, hr = { class: "flex gap-4 justify-end" }, yr = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, tc = /* @__PURE__ */ E({
3751
3751
  __name: "ItemEdit",
3752
3752
  props: {
3753
3753
  items: {},
@@ -3781,7 +3781,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3781
3781
  if (c.value) return !0;
3782
3782
  const { id: C, args: V } = n.value;
3783
3783
  return !C || !V.length;
3784
- }), g = ({ value: C }) => n.value.icon = C, b = ({ value: C }) => {
3784
+ }), v = ({ value: C }) => n.value.icon = C, b = ({ value: C }) => {
3785
3785
  const V = C;
3786
3786
  n.value.type = V, delete n.value.opts, ["button", "list", "dimmer"].includes(V) && (C === "button" && (n.value.opts = {}), C === "list" && (n.value.opts = { items: [] }), C === "dimmer" && (n.value.opts = { min: 0, max: 255, step: 1 }));
3787
3787
  }, h = (C) => {
@@ -3792,7 +3792,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3792
3792
  C === "set" && (n.value.set = V), C === "get" && (n.value.get = V), C === "getTo" && (n.value.getTo = V), V || delete n.value[C];
3793
3793
  }, X = () => {
3794
3794
  o.value = !0;
3795
- }, ve = (C, V) => {
3795
+ }, ge = (C, V) => {
3796
3796
  n.value.opts || (n.value.opts = {}), n.value.opts[C] = V, C === "disabled" && !V && delete n.value.opts[C];
3797
3797
  };
3798
3798
  return ke(() => {
@@ -3800,7 +3800,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3800
3800
  (C = e.item) != null && C.id && (n.value = Mn(e.item));
3801
3801
  }), (C, V) => {
3802
3802
  const Ve = ji, re = Pe;
3803
- return m(), v("div", sr, [
3803
+ return m(), g("div", sr, [
3804
3804
  l("div", ar, [
3805
3805
  l("div", or, [
3806
3806
  p(Ki, {
@@ -3845,7 +3845,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3845
3845
  label: "Icon",
3846
3846
  class: "mb-6",
3847
3847
  items: e.listIcons,
3848
- onChange: g
3848
+ onChange: v
3849
3849
  }, {
3850
3850
  item: x(({ item: K }) => [
3851
3851
  l("div", dr, [
@@ -3878,20 +3878,20 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3878
3878
  }, {
3879
3879
  default: x(() => [
3880
3880
  l("div", ur, [
3881
- (m(!0), v(D, null, H(n.value.args, (K, ye) => (m(), v("div", {
3881
+ (m(!0), g(D, null, H(n.value.args, (K, ye) => (m(), g("div", {
3882
3882
  key: K,
3883
- class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
3883
+ class: "flex items-center rounded-full bg-gray-light-10 dark:bg-gray-dark-40/50 px-2 py-[2px] text-xs"
3884
3884
  }, [
3885
3885
  l("div", mr, [
3886
3886
  l("span", fr, w(K), 1)
3887
3887
  ]),
3888
- ye || n.value.args.length < 2 ? (m(), v("button", {
3888
+ ye || n.value.args.length < 2 ? (m(), g("button", {
3889
3889
  key: 0,
3890
- class: "ms-1 shrink-0 cursor-pointer text-gray-400 transition hover:text-rose-500",
3890
+ class: "ms-1 shrink-0 cursor-pointer text-gray-main transition hover:text-rose-500",
3891
3891
  onClick: (Ue) => O(K)
3892
3892
  }, [
3893
3893
  p(re, { class: "size-5" })
3894
- ], 8, vr)) : T("", !0)
3894
+ ], 8, gr)) : T("", !0)
3895
3895
  ]))), 128))
3896
3896
  ])
3897
3897
  ]),
@@ -3934,13 +3934,13 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3934
3934
  p(lr, q(n.value.opts, {
3935
3935
  value: n.value.value,
3936
3936
  type: n.value.type,
3937
- onUpdate: ve
3937
+ onUpdate: ge
3938
3938
  }), null, 16, ["value", "type"])
3939
3939
  ]),
3940
3940
  _: 3
3941
3941
  })
3942
3942
  ]),
3943
- l("div", gr, [
3943
+ l("div", vr, [
3944
3944
  l("div", pr, [
3945
3945
  M(C.$slots, "default", { item: n.value })
3946
3946
  ])
@@ -4086,8 +4086,8 @@ function Cr(e = {}) {
4086
4086
  if (d) return o = null, a[n].value !== c.value ? void i(c) : (n = Math.min(a.length - 1, n + 1), a[n]);
4087
4087
  if (u.type === "keydown") return a[n].value !== c.value ? (o = null, void i(c)) : void (a[n] = c);
4088
4088
  if (u.type === "input") {
4089
- const f = u.timeStamp, g = f != null && o != null && f - o <= s;
4090
- if (o = f ?? null, g) return void (a[n] = c);
4089
+ const f = u.timeStamp, v = f != null && o != null && f - o <= s;
4090
+ if (o = f ?? null, v) return void (a[n] = c);
4091
4091
  i(c);
4092
4092
  }
4093
4093
  };
@@ -4116,11 +4116,11 @@ const Sr = () => (e, t) => {
4116
4116
  const d = s.substring(o, c).trimEnd();
4117
4117
  if (d.endsWith(";") || d.length === 0)
4118
4118
  return;
4119
- const f = s.slice(0, c) + ";" + s.slice(c), g = a + 1;
4119
+ const f = s.slice(0, c) + ";" + s.slice(c), v = a + 1;
4120
4120
  return {
4121
4121
  value: f,
4122
- selectionStart: g,
4123
- selectionEnd: g
4122
+ selectionStart: v,
4123
+ selectionEnd: v
4124
4124
  };
4125
4125
  };
4126
4126
  let Bt = [], ce = null, se = 0, be = [], Ee = null, De = null, Et, un, pe = null, Ne = null;
@@ -4131,7 +4131,7 @@ const Tr = (e) => {
4131
4131
  return Bt = [...t].map((r) => i(r)), Et = c, un = u, (r, d) => {
4132
4132
  if (typeof KeyboardEvent > "u" || !(d instanceof KeyboardEvent))
4133
4133
  return;
4134
- const { value: f, selectionStart: g } = r, b = d.target;
4134
+ const { value: f, selectionStart: v } = r, b = d.target;
4135
4135
  if (De = b, o.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
4136
4136
  setTimeout(() => Ht(b), 100);
4137
4137
  }), b.addEventListener("keyup", () => {
@@ -4163,7 +4163,7 @@ const Tr = (e) => {
4163
4163
  if (F.length < s)
4164
4164
  we();
4165
4165
  else {
4166
- const B = gt(F).slice(0, a);
4166
+ const B = vt(F).slice(0, a);
4167
4167
  B.length === 0 ? we() : (be = B, se = 0, je());
4168
4168
  }
4169
4169
  }
@@ -4175,13 +4175,13 @@ const Tr = (e) => {
4175
4175
  }
4176
4176
  if (Ye("tab", d)) {
4177
4177
  d.preventDefault();
4178
- const h = it(f, g), $ = f.slice(h, g);
4178
+ const h = it(f, v), $ = f.slice(h, v);
4179
4179
  if ($.length > 0) {
4180
- const X = gt($);
4180
+ const X = vt($);
4181
4181
  if (X.length > 0)
4182
4182
  return pt(r, X[0]);
4183
4183
  }
4184
- const O = " ".repeat(n), F = f.slice(0, g) + O + f.slice(g), B = g + n;
4184
+ const O = " ".repeat(n), F = f.slice(0, v) + O + f.slice(v), B = v + n;
4185
4185
  return {
4186
4186
  value: F,
4187
4187
  selectionStart: B,
@@ -4196,7 +4196,7 @@ const Tr = (e) => {
4196
4196
  we();
4197
4197
  return;
4198
4198
  }
4199
- let B = gt(F);
4199
+ let B = vt(F);
4200
4200
  if (B = B.slice(0, a), B.length === 0) {
4201
4201
  we();
4202
4202
  return;
@@ -4205,7 +4205,7 @@ const Tr = (e) => {
4205
4205
  }, 0), { ...r };
4206
4206
  };
4207
4207
  };
4208
- function gt(e) {
4208
+ function vt(e) {
4209
4209
  const t = e.toLowerCase();
4210
4210
  return Bt.filter((s) => {
4211
4211
  const a = s.label.toLowerCase();
@@ -4259,18 +4259,18 @@ function pt(e, t) {
4259
4259
  }
4260
4260
  c = o.replace(/\$\{([^}]*)\}/g, "$1");
4261
4261
  const d = u[0];
4262
- let f = n + c.length, g = n + c.length;
4262
+ let f = n + c.length, v = n + c.length;
4263
4263
  if (d) {
4264
4264
  let h = 0, $ = 0, O = !1;
4265
4265
  for (; $ < o.length && !O; ) {
4266
4266
  const F = u.find((B) => B.index === $);
4267
- F ? (h += F.text.length, $ += F.length, F === d && (f = n + h - F.text.length, g = n + h, O = !0)) : (h++, $++);
4267
+ F ? (h += F.text.length, $ += F.length, F === d && (f = n + h - F.text.length, v = n + h, O = !0)) : (h++, $++);
4268
4268
  }
4269
4269
  }
4270
4270
  return {
4271
4271
  value: s.slice(0, n) + c + s.slice(a),
4272
4272
  selectionStart: f,
4273
- selectionEnd: g
4273
+ selectionEnd: v
4274
4274
  };
4275
4275
  }
4276
4276
  function we() {
@@ -4323,9 +4323,9 @@ const ht = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
4323
4323
  const s = Er(e);
4324
4324
  let a = "", n = 0;
4325
4325
  for (const o of t.matchAll(s)) {
4326
- const [i, c, u, r, d, f, g, b] = o;
4326
+ const [i, c, u, r, d, f, v, b] = o;
4327
4327
  let h = "";
4328
- c ? h = "comment" : u ? h = "str" : r ? h = "num" : d ? h = "word" : f ? h = "var" : g ? h = "event" : b && (h = "operator"), a += ht(t.slice(n, o.index)), a += `<span class="tok--${h}">${ht(i)}</span>`, n = o.index + i.length;
4328
+ c ? h = "comment" : u ? h = "str" : r ? h = "num" : d ? h = "word" : f ? h = "var" : v ? h = "event" : b && (h = "operator"), a += ht(t.slice(n, o.index)), a += `<span class="tok--${h}">${ht(i)}</span>`, n = o.index + i.length;
4329
4329
  }
4330
4330
  return a += ht(t.slice(n)), a;
4331
4331
  }, fn = {
@@ -4338,22 +4338,22 @@ const ht = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
4338
4338
  return a.className = `
4339
4339
  fixed z-[10000] min-w-[250px] max-w-[400px] max-h-[250px]
4340
4340
  overflow-y-auto p-1 rounded-lg shadow-lg border
4341
- border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800
4341
+ border-gray-light-10 dark:border-gray-dark-30 bg-white dark:bg-gray-dark-30
4342
4342
  text-sm font-mono scrollbar pointer-events-none
4343
4343
  `, e.forEach((n, o) => {
4344
4344
  const i = o === t, c = document.createElement("div");
4345
4345
  c.className = `
4346
4346
  flex items-center justify-between gap-2 px-3 py-1.5 cursor-pointer
4347
4347
  rounded transition-colors duration-100 border-l-2
4348
- ${i ? "border-blue-500 dark:border-blue-400 bg-blue-50 dark:bg-blue-900/30" : "border-transparent hover:bg-gray-100 dark:hover:bg-gray-700"}
4348
+ ${i ? "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"}
4349
4349
  `;
4350
- const u = fn[n.type] || "text-gray-700 dark:text-gray-300";
4350
+ const u = fn[n.type] || "text-gray-dark-30 dark:text-gray-light-10";
4351
4351
  c.innerHTML = `
4352
4352
  <div class="flex items-center gap-2 flex-1">
4353
4353
  <span class="${u} font-medium">${n.label}</span>
4354
- ${n.detail ? `<span class="text-xs text-gray-500 dark:text-gray-400 ml-2">${n.detail}</span>` : ""}
4354
+ ${n.detail ? `<span class="text-xs text-gray-dark-25 dark:text-gray-main ml-2">${n.detail}</span>` : ""}
4355
4355
  </div>
4356
- ${n.description ? `<span class="text-xs text-gray-400 dark:text-gray-500">${n.description}</span>` : ""}
4356
+ ${n.description ? `<span class="text-xs text-gray-main dark:text-gray-dark-25">${n.description}</span>` : ""}
4357
4357
  `, c.addEventListener("click", () => s(o)), a.appendChild(c);
4358
4358
  }), a;
4359
4359
  }, Ir = (e, t) => {
@@ -4362,18 +4362,18 @@ const ht = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
4362
4362
  fixed z-[10001] px-3 py-2 font-mono text-sm max-w-[300px]
4363
4363
  min-w-[50px] min-h-[20px] rounded-lg shadow-lg border
4364
4364
  pointer-events-none transition-opacity duration-150
4365
- bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700
4366
- text-gray-700 dark:text-gray-300 pointer-events-none
4365
+ bg-white dark:bg-gray-dark-30 border-gray-light-10 dark:border-gray-dark-30
4366
+ text-gray-dark-30 dark:text-gray-light-10 pointer-events-none
4367
4367
  `, s.style.cssText = `
4368
4368
  left: ${t.left + 40}px; top: ${t.top - 10}px;
4369
4369
  transform: translateX(-50%) translateY(-100%); opacity: 0;
4370
4370
  `;
4371
- let n = `<div class="font-medium ${fn[e.type] || "text-gray-700 dark:text-gray-300"}">${e.label}</div>`;
4372
- e.detail && (n += `<div class="text-gray-500 dark:text-gray-400 mt-0.5 text-xs">${e.detail}</div>`), e.description && (n += `<div class="text-gray-400 dark:text-gray-500 text-xs mt-1 pt-1 border-t border-gray-200 dark:border-gray-700">${e.description}</div>`), s.innerHTML = n;
4371
+ let n = `<div class="font-medium ${fn[e.type] || "text-gray-dark-30 dark:text-gray-light-10"}">${e.label}</div>`;
4372
+ e.detail && (n += `<div class="text-gray-dark-25 dark:text-gray-main mt-0.5 text-xs">${e.detail}</div>`), e.description && (n += `<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>`), s.innerHTML = n;
4373
4373
  const o = document.createElement("div");
4374
4374
  return o.className = `
4375
4375
  absolute bottom-[-6px] left-1/2 w-2.5 h-2.5 -translate-x-1/2 rotate-45
4376
- bg-white dark:bg-gray-800 border-r border-b border-gray-200 dark:border-gray-700
4376
+ bg-white dark:bg-gray-dark-30 border-r border-b border-gray-light-10 dark:border-gray-dark-30
4377
4377
  `, s.appendChild(o), s;
4378
4378
  }, Or = [
4379
4379
  { label: "if", type: "word", insert: `if:\${$v0<10};
@@ -4453,7 +4453,7 @@ end;`, detail: "event(name: string)" },
4453
4453
  });
4454
4454
  }), Ze(() => {
4455
4455
  a.destroy();
4456
- }), (o, i) => (m(), v("div", null, [...i[0] || (i[0] = [
4456
+ }), (o, i) => (m(), g("div", null, [...i[0] || (i[0] = [
4457
4457
  l("div", {
4458
4458
  class: "",
4459
4459
  id: "editor"
@@ -4465,7 +4465,7 @@ end;`, detail: "event(name: string)" },
4465
4465
  class: "text-sm"
4466
4466
  }, jr = {
4467
4467
  key: 0,
4468
- class: "text-gray-500"
4468
+ class: "text-gray-dark-25"
4469
4469
  }, Rr = {
4470
4470
  key: 1,
4471
4471
  class: "text-red-600"
@@ -4490,19 +4490,19 @@ end;`, detail: "event(name: string)" },
4490
4490
  }), d(window.marked);
4491
4491
  return;
4492
4492
  }
4493
- const g = document.createElement("script");
4494
- g.src = Hr, g.async = !0, g.onload = () => {
4493
+ const v = document.createElement("script");
4494
+ v.src = Hr, v.async = !0, v.onload = () => {
4495
4495
  window.marked ? (window.marked.setOptions({
4496
4496
  gfm: !0,
4497
4497
  breaks: !0,
4498
4498
  headerIds: !1
4499
4499
  }), d(window.marked)) : f(new Error("Marked library not found after loading"));
4500
- }, g.onerror = () => {
4500
+ }, v.onerror = () => {
4501
4501
  f(new Error("Failed to load Marked library from CDN"));
4502
- }, document.head.appendChild(g);
4502
+ }, document.head.appendChild(v);
4503
4503
  }), u = (d) => {
4504
4504
  const f = d.split(`
4505
- `), g = {};
4505
+ `), v = {};
4506
4506
  let b = !0;
4507
4507
  for (const h of f) {
4508
4508
  if (b && h.startsWith("#")) {
@@ -4511,10 +4511,10 @@ end;`, detail: "event(name: string)" },
4511
4511
  }
4512
4512
  if (b && h.includes(":")) {
4513
4513
  const [$, O] = h.split(":").map((F) => F.trim());
4514
- $ && O && ($.toLowerCase().includes("version") && (g.version = O), ($.toLowerCase().includes("обновлено") || $.toLowerCase().includes("updated")) && (g.updated = O));
4514
+ $ && O && ($.toLowerCase().includes("version") && (v.version = O), ($.toLowerCase().includes("обновлено") || $.toLowerCase().includes("updated")) && (v.updated = O));
4515
4515
  }
4516
4516
  }
4517
- return g;
4517
+ return v;
4518
4518
  }, r = async (d) => {
4519
4519
  if (!i) {
4520
4520
  o.value = "error";
@@ -4522,14 +4522,14 @@ end;`, detail: "event(name: string)" },
4522
4522
  }
4523
4523
  n.value = !0, o.value = null, s.value = "";
4524
4524
  try {
4525
- const f = `${Pr}${d}.md`, g = await fetch(f);
4526
- if (!g.ok)
4527
- throw new Error(`HTTP ${g.status}: ${g.statusText}`);
4528
- const b = await g.text();
4525
+ const f = `${Pr}${d}.md`, v = await fetch(f);
4526
+ if (!v.ok)
4527
+ throw new Error(`HTTP ${v.status}: ${v.statusText}`);
4528
+ const b = await v.text();
4529
4529
  t.value = b, a.value = u(b), s.value = i.parse(b);
4530
4530
  } catch (f) {
4531
- const g = f instanceof Error ? f.message : "";
4532
- o.value = g, console.error("Error loading docs:", f);
4531
+ const v = f instanceof Error ? f.message : "";
4532
+ o.value = v, console.error("Error loading docs:", f);
4533
4533
  } finally {
4534
4534
  n.value = !1;
4535
4535
  }
@@ -4543,10 +4543,10 @@ end;`, detail: "event(name: string)" },
4543
4543
  const f = d instanceof Error ? d.message : "";
4544
4544
  o.value = f, console.error("Initialization error:", d);
4545
4545
  }
4546
- }), (d, f) => (m(), v("div", Fr, [
4547
- n.value || o.value ? (m(), v("div", Dr, [
4548
- n.value ? (m(), v("span", jr, "⏳")) : T("", !0),
4549
- o.value ? (m(), v("span", Rr, "❌ " + w(o.value), 1)) : T("", !0)
4546
+ }), (d, f) => (m(), g("div", Fr, [
4547
+ n.value || o.value ? (m(), g("div", Dr, [
4548
+ n.value ? (m(), g("span", jr, "⏳")) : T("", !0),
4549
+ o.value ? (m(), g("span", Rr, "❌ " + w(o.value), 1)) : T("", !0)
4550
4550
  ])) : T("", !0),
4551
4551
  l("div", {
4552
4552
  class: "docs-content",
@@ -4573,9 +4573,9 @@ end;`, detail: "event(name: string)" },
4573
4573
  return ke(() => {
4574
4574
  e.idScript || (i.value = "boot");
4575
4575
  }), (d, f) => {
4576
- const g = ie, b = R;
4577
- return m(), v("div", Ur, [
4578
- p(g, q({
4576
+ const v = ie, b = R;
4577
+ return m(), g("div", Ur, [
4578
+ p(v, q({
4579
4579
  modelValue: J(i),
4580
4580
  "onUpdate:modelValue": f[0] || (f[0] = (h) => $n(i) ? i.value = h : null)
4581
4581
  }, J(c), {
@@ -4596,15 +4596,15 @@ end;`, detail: "event(name: string)" },
4596
4596
  ]);
4597
4597
  };
4598
4598
  }
4599
- }), Kr = ["aria-label"], Wr = { class: "hidden lg:inline" }, Gr = ["aria-label"], Jr = { class: "flex items-center gap-3 border-b border-gray-200/70 px-4 dark:border-white/10" }, Xr = ["placeholder"], qr = { class: "max-h-[55vh] overflow-y-auto p-2" }, Yr = ["href"], Zr = { class: "min-w-0" }, Qr = { class: "flex flex-wrap items-baseline gap-2" }, ed = { class: "text-sm font-medium text-gray-900 dark:text-white" }, td = {
4599
+ }), Kr = ["aria-label"], Wr = { class: "hidden lg:inline" }, Gr = ["aria-label"], Jr = { class: "flex items-center gap-3 border-b border-gray-light-10/70 px-4 dark:border-white/10" }, Xr = ["placeholder"], qr = { class: "max-h-[55vh] overflow-y-auto p-2" }, Yr = ["href"], Zr = { class: "min-w-0" }, Qr = { class: "flex flex-wrap items-baseline gap-2" }, ed = { class: "text-sm font-medium text-gray-dark-40 dark:text-white" }, td = {
4600
4600
  key: 0,
4601
- class: "text-[10px] uppercase tracking-wider text-gray-400"
4601
+ class: "text-[10px] uppercase tracking-wider text-gray-main"
4602
4602
  }, nd = {
4603
4603
  key: 0,
4604
- class: "mt-0.5 block truncate text-xs text-gray-500 dark:text-gray-400"
4604
+ class: "mt-0.5 block truncate text-xs text-gray-dark-25 dark:text-gray-main"
4605
4605
  }, ld = {
4606
4606
  key: 0,
4607
- class: "px-4 py-10 text-center text-sm text-gray-500 dark:text-gray-400"
4607
+ class: "px-4 py-10 text-center text-sm text-gray-dark-25 dark:text-gray-main"
4608
4608
  }, ac = /* @__PURE__ */ E({
4609
4609
  __name: "VisionSearch",
4610
4610
  props: {
@@ -4634,10 +4634,10 @@ end;`, detail: "event(name: string)" },
4634
4634
  typeof document < "u" && (document.body.style.overflow = r ? "hidden" : "");
4635
4635
  }), ke(() => window.addEventListener("keydown", u)), Ze(() => {
4636
4636
  window.removeEventListener("keydown", u), typeof document < "u" && (document.body.style.overflow = "");
4637
- }), (r, d) => (m(), v(D, null, [
4637
+ }), (r, d) => (m(), g(D, null, [
4638
4638
  l("button", {
4639
4639
  type: "button",
4640
- class: "inline-flex h-9 items-center gap-2 rounded-md px-2.5 text-xs text-gray-500 transition-colors hover:bg-white/50 hover:text-[var(--app-accent)] dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",
4640
+ class: "inline-flex h-9 items-center gap-2 rounded-md px-2.5 text-xs text-gray-dark-25 transition-colors hover:bg-white/50 hover:text-[var(--app-accent)] dark:text-gray-main dark:hover:bg-white/5 dark:hover:text-white",
4641
4641
  "aria-label": e.label,
4642
4642
  onClick: i
4643
4643
  }, [
@@ -4646,16 +4646,16 @@ end;`, detail: "event(name: string)" },
4646
4646
  size: 17
4647
4647
  }),
4648
4648
  l("span", Wr, w(e.label), 1),
4649
- d[1] || (d[1] = l("kbd", { class: "hidden rounded border border-gray-300/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-400 dark:border-white/10 dark:text-gray-500 lg:inline" }, "⌘K", -1))
4649
+ d[1] || (d[1] = l("kbd", { class: "hidden rounded border border-gray-light-10/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-main dark:border-white/10 dark:text-gray-dark-25 lg:inline" }, "⌘K", -1))
4650
4650
  ], 8, Kr),
4651
4651
  (m(), I(wn, { to: "body" }, [
4652
- s.value ? (m(), v("div", {
4652
+ s.value ? (m(), g("div", {
4653
4653
  key: 0,
4654
4654
  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",
4655
4655
  onClick: te(c, ["self"])
4656
4656
  }, [
4657
4657
  l("div", {
4658
- class: "glass-panel w-full max-w-2xl overflow-hidden rounded-[12px] border border-gray-200/70 bg-white/95 dark:border-white/10 dark:bg-night-light-10/95",
4658
+ class: "glass-panel w-full max-w-2xl overflow-hidden rounded-[12px] border border-gray-light-10/70 bg-white/95 dark:border-white/10 dark:bg-night-light-10/95",
4659
4659
  role: "dialog",
4660
4660
  "aria-modal": "true",
4661
4661
  "aria-label": e.dialogLabel
@@ -4664,7 +4664,7 @@ end;`, detail: "event(name: string)" },
4664
4664
  p(Q, {
4665
4665
  name: "search",
4666
4666
  size: 18,
4667
- class: "shrink-0 text-gray-400"
4667
+ class: "shrink-0 text-gray-main"
4668
4668
  }),
4669
4669
  dt(l("input", {
4670
4670
  ref_key: "input",
@@ -4672,14 +4672,14 @@ end;`, detail: "event(name: string)" },
4672
4672
  "onUpdate:modelValue": d[0] || (d[0] = (f) => a.value = f),
4673
4673
  type: "search",
4674
4674
  placeholder: e.placeholder,
4675
- class: "h-14 min-w-0 flex-1 bg-transparent text-sm text-gray-900 placeholder:text-gray-400 focus:outline-none dark:text-white dark:placeholder:text-gray-500"
4675
+ 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-dark-25"
4676
4676
  }, null, 8, Xr), [
4677
4677
  [$t, a.value]
4678
4678
  ]),
4679
- d[2] || (d[2] = l("kbd", { class: "hidden rounded border border-gray-300/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-400 dark:border-white/10 dark:text-gray-500 sm:inline" }, "Esc", -1))
4679
+ d[2] || (d[2] = l("kbd", { class: "hidden rounded border border-gray-light-10/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-main dark:border-white/10 dark:text-gray-dark-25 sm:inline" }, "Esc", -1))
4680
4680
  ]),
4681
4681
  l("div", qr, [
4682
- (m(!0), v(D, null, H(o.value, (f) => (m(), v("a", {
4682
+ (m(!0), g(D, null, H(o.value, (f) => (m(), g("a", {
4683
4683
  key: `${f.group}-${f.to}-${f.title}`,
4684
4684
  href: f.to,
4685
4685
  class: "flex items-start gap-3 rounded-md px-3 py-2.5 transition-colors hover:bg-white/50 dark:hover:bg-white/5",
@@ -4688,17 +4688,17 @@ end;`, detail: "event(name: string)" },
4688
4688
  p(Q, {
4689
4689
  name: "arrowRight",
4690
4690
  size: 16,
4691
- class: "mt-0.5 shrink-0 text-gray-400"
4691
+ class: "mt-0.5 shrink-0 text-gray-main"
4692
4692
  }),
4693
4693
  l("span", Zr, [
4694
4694
  l("span", Qr, [
4695
4695
  l("span", ed, w(f.title), 1),
4696
- f.group ? (m(), v("span", td, w(f.group), 1)) : T("", !0)
4696
+ f.group ? (m(), g("span", td, w(f.group), 1)) : T("", !0)
4697
4697
  ]),
4698
- f.description ? (m(), v("span", nd, w(f.description), 1)) : T("", !0)
4698
+ f.description ? (m(), g("span", nd, w(f.description), 1)) : T("", !0)
4699
4699
  ])
4700
4700
  ], 8, Yr))), 128)),
4701
- o.value.length ? T("", !0) : (m(), v("p", ld, w(e.emptyText), 1))
4701
+ o.value.length ? T("", !0) : (m(), g("p", ld, w(e.emptyText), 1))
4702
4702
  ])
4703
4703
  ], 8, Gr)
4704
4704
  ])) : T("", !0)
@@ -4719,9 +4719,9 @@ end;`, detail: "event(name: string)" },
4719
4719
  };
4720
4720
  return ke(async () => {
4721
4721
  await wt(), setTimeout(() => s(t.value), 0);
4722
- }), (a, n) => (m(), v("button", {
4722
+ }), (a, n) => (m(), g("button", {
4723
4723
  type: "button",
4724
- class: "grid size-9 place-items-center rounded-md text-gray-600 transition-colors hover:bg-white/50 hover:text-[var(--app-accent)] dark:text-gray-300 dark:hover:bg-white/5 dark:hover:text-white",
4724
+ class: "grid size-9 place-items-center rounded-md text-gray-dark-25 transition-colors hover:bg-white/50 hover:text-[var(--app-accent)] dark:text-gray-light-10 dark:hover:bg-white/5 dark:hover:text-white",
4725
4725
  "aria-label": t.value === "dark" ? e.labelLight : e.labelDark,
4726
4726
  title: t.value === "dark" ? e.titleLight : e.titleDark,
4727
4727
  onClick: n[0] || (n[0] = (o) => s(t.value === "dark" ? "light" : "dark"))
@@ -4783,7 +4783,7 @@ end;`, detail: "event(name: string)" },
4783
4783
  height: "1.2em"
4784
4784
  };
4785
4785
  function od(e, t) {
4786
- return m(), v("svg", ad, [...t[0] || (t[0] = [
4786
+ return m(), g("svg", ad, [...t[0] || (t[0] = [
4787
4787
  l("path", {
4788
4788
  fill: "currentColor",
4789
4789
  d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
@@ -4808,7 +4808,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4808
4808
  a();
4809
4809
  }), (o, i) => {
4810
4810
  const c = id;
4811
- return m(), v("div", {
4811
+ return m(), g("div", {
4812
4812
  ref_key: "root",
4813
4813
  ref: t,
4814
4814
  class: "glass-inset mb-2 overflow-hidden rounded-md"
@@ -4819,7 +4819,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4819
4819
  }, [
4820
4820
  l("h4", null, w(e.label), 1),
4821
4821
  l("div", {
4822
- class: j(["transition text-gray-400", { "rotate-x-180": s.value }])
4822
+ class: j(["transition text-gray-main", { "rotate-x-180": s.value }])
4823
4823
  }, [
4824
4824
  p(c, { class: "size-6" })
4825
4825
  ], 2)
@@ -4846,24 +4846,24 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4846
4846
  const s = t, a = L(null), n = L(0), o = L(-1), i = ({ id: f }) => ({
4847
4847
  "opacity-30 scale-105 z-10": a.value === f,
4848
4848
  "transition-transform duration-200": a.value !== f
4849
- }), c = (f, g, b) => {
4850
- a.value = g, n.value = b, f.dataTransfer.effectAllowed = "move";
4849
+ }), c = (f, v, b) => {
4850
+ a.value = v, n.value = b, f.dataTransfer.effectAllowed = "move";
4851
4851
  }, u = (f) => {
4852
4852
  a.value !== null && (o.value = f);
4853
4853
  }, r = () => {
4854
4854
  a.value = null, o.value = -1;
4855
4855
  }, d = (f) => {
4856
4856
  if (f.preventDefault(), a.value && o.value !== -1) {
4857
- const g = e.items.findIndex((h) => h[e.itemKey] === a.value), b = o.value;
4858
- if (g !== b && b !== -1) {
4859
- const h = [...e.items], [$] = h.splice(g, 1);
4860
- h.splice(b, 0, $), s("update:items", h), s("order-change", { fromIndex: g, toIndex: b, movedItem: $, newOrder: h });
4857
+ const v = e.items.findIndex((h) => h[e.itemKey] === a.value), b = o.value;
4858
+ if (v !== b && b !== -1) {
4859
+ const h = [...e.items], [$] = h.splice(v, 1);
4860
+ h.splice(b, 0, $), s("update:items", h), s("order-change", { fromIndex: v, toIndex: b, movedItem: $, newOrder: h });
4861
4861
  }
4862
4862
  }
4863
4863
  o.value = -1;
4864
4864
  };
4865
- return (f, g) => (m(), v("div", {
4866
- onDragover: g[1] || (g[1] = te(() => {
4865
+ return (f, v) => (m(), g("div", {
4866
+ onDragover: v[1] || (v[1] = te(() => {
4867
4867
  }, ["prevent"])),
4868
4868
  onDrop: d
4869
4869
  }, [
@@ -4877,14 +4877,14 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4877
4877
  "move-class": "transition-all duration-300 ease"
4878
4878
  }, {
4879
4879
  default: x(() => [
4880
- (m(!0), v(D, null, H(e.items, (b, h) => (m(), v("div", {
4880
+ (m(!0), g(D, null, H(e.items, (b, h) => (m(), g("div", {
4881
4881
  key: `${b.id}_drug`,
4882
4882
  class: j(["relative group", i(b)]),
4883
4883
  draggable: "true",
4884
4884
  onDragstart: ($) => c($, b.id, h),
4885
4885
  onDragenter: ($) => u(h),
4886
4886
  onDragend: r,
4887
- onDragover: g[0] || (g[0] = te(() => {
4887
+ onDragover: v[0] || (v[0] = te(() => {
4888
4888
  }, ["prevent"]))
4889
4889
  }, [
4890
4890
  M(f.$slots, "default", {
@@ -4893,17 +4893,17 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4893
4893
  index: h,
4894
4894
  isDragging: a.value === b.id
4895
4895
  }),
4896
- o.value === h && a.value !== b.id ? (m(), v("div", ud)) : T("", !0)
4896
+ o.value === h && a.value !== b.id ? (m(), g("div", ud)) : T("", !0)
4897
4897
  ], 42, cd))), 128))
4898
4898
  ]),
4899
4899
  _: 3
4900
4900
  })
4901
4901
  ], 32));
4902
4902
  }
4903
- }), md = { class: "glass-inset overflow-x-auto rounded-md" }, fd = { class: "min-w-full" }, vd = { class: "border-y border-gray-200/70 py-3 dark:border-white/10" }, gd = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, pd = { class: "flex items-center" }, hd = { class: "divide-y divide-gray-100 dark:divide-white/5" }, yd = ["onClick"], bd = { class: "flex items-center text-gray-700 dark:text-white/70" }, xd = { key: 1 }, kd = {
4903
+ }), md = { class: "glass-inset overflow-x-auto rounded-md" }, fd = { class: "min-w-full" }, gd = { class: "border-y border-gray-light-10/70 py-3 dark:border-white/10" }, vd = { class: "bg-gray-light-30/70 dark:bg-white/[0.04]" }, pd = { class: "flex items-center" }, hd = { class: "divide-y divide-gray-light-30 dark:divide-white/5" }, yd = ["onClick"], bd = { class: "flex items-center text-gray-dark-30 dark:text-white/70" }, xd = { key: 1 }, kd = {
4904
4904
  class: "py-3 whitespace-nowrap",
4905
4905
  colspan: "9"
4906
- }, $d = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, cc = /* @__PURE__ */ E({
4906
+ }, $d = { class: "flex items-center justify-center px-2 text-sm text-gray-dark-25 dark:text-white/50" }, cc = /* @__PURE__ */ E({
4907
4907
  __name: "VTable",
4908
4908
  props: {
4909
4909
  headers: { default: () => [] },
@@ -4912,13 +4912,13 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4912
4912
  emits: ["click"],
4913
4913
  setup(e, { emit: t }) {
4914
4914
  const s = t, a = (i, c) => s("click", i, c), n = (i) => (i == null ? void 0 : i.className) || "", o = (i, { key: c }) => i == null ? void 0 : i[c];
4915
- return (i, c) => (m(), v("div", md, [
4915
+ return (i, c) => (m(), g("div", md, [
4916
4916
  l("table", fd, [
4917
- l("thead", vd, [
4918
- l("tr", gd, [
4919
- (m(!0), v(D, null, H(e.headers, (u, r) => (m(), v("th", {
4917
+ l("thead", gd, [
4918
+ l("tr", vd, [
4919
+ (m(!0), g(D, null, H(e.headers, (u, r) => (m(), g("th", {
4920
4920
  key: r,
4921
- class: j(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", n(u)])
4921
+ class: j(["px-4 py-2 whitespace-nowrap font-normal text-gray-dark-25 dark:text-white/50", n(u)])
4922
4922
  }, [
4923
4923
  M(i.$slots, "header", {
4924
4924
  item: u,
@@ -4930,12 +4930,12 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4930
4930
  ])
4931
4931
  ]),
4932
4932
  l("tbody", hd, [
4933
- e.items.length ? (m(!0), v(D, { key: 0 }, H(e.items, (u, r) => (m(), v("tr", {
4933
+ e.items.length ? (m(!0), g(D, { key: 0 }, H(e.items, (u, r) => (m(), g("tr", {
4934
4934
  key: r,
4935
4935
  class: "transition-colors hover:bg-cyan-main/[0.04] dark:hover:bg-white/[0.04]",
4936
4936
  onClick: (d) => a(u, d)
4937
4937
  }, [
4938
- (m(!0), v(D, null, H(e.headers, (d, f) => (m(), v("td", {
4938
+ (m(!0), g(D, null, H(e.headers, (d, f) => (m(), g("td", {
4939
4939
  key: f,
4940
4940
  class: "py-2 px-4"
4941
4941
  }, [
@@ -4948,7 +4948,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4948
4948
  ])
4949
4949
  ])
4950
4950
  ]))), 128))
4951
- ], 8, yd))), 128)) : (m(), v("tr", xd, [
4951
+ ], 8, yd))), 128)) : (m(), g("tr", xd, [
4952
4952
  l("td", kd, [
4953
4953
  l("div", $d, [
4954
4954
  M(i.$slots, "empty", {}, () => [
@@ -4973,7 +4973,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4973
4973
  }, a = () => {
4974
4974
  t.value = !1;
4975
4975
  }, n = Gt("tooltip");
4976
- return Dn(n, () => a()), (o, i) => (m(), v("div", {
4976
+ return Dn(n, () => a()), (o, i) => (m(), g("div", {
4977
4977
  ref: "tooltip",
4978
4978
  class: "relative v-tooltip",
4979
4979
  onMouseenter: s,
@@ -5052,7 +5052,7 @@ export {
5052
5052
  _t as VList,
5053
5053
  St as VListObject,
5054
5054
  zn as VLoader,
5055
- vc as VPopup,
5055
+ gc as VPopup,
5056
5056
  he as VSelect,
5057
5057
  cc as VTable,
5058
5058
  Ki as VTabs,
@@ -5072,7 +5072,7 @@ export {
5072
5072
  Mr as fullHighlighter,
5073
5073
  yt as metricClasses,
5074
5074
  Vt as resolveBlockBindings,
5075
- va as resolveBlockMetrics,
5075
+ ga as resolveBlockMetrics,
5076
5076
  fa as resolveMetric,
5077
5077
  Pd as resolveMetricArgValues,
5078
5078
  Jd as useBlock