vuesp-components 2.4.3 → 2.5.0

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 g, 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-jUPno8E0.js";
3
- import { n as vc } from "../CardMain.vue_vue_type_style_index_0_lang-jUPno8E0.js";
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";
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";
@@ -25,19 +25,19 @@ const Hn = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
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-[#07112c]/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-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"])
29
29
  }, [
30
30
  l("div", {
31
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"])
32
32
  }, [
33
- g(i, { to: "/" }, {
33
+ p(i, { to: "/" }, {
34
34
  default: x(() => [
35
35
  e.isSidebar ? (m(), I(_n, {
36
36
  key: 0,
37
- class: "h-[30px] text-primary"
37
+ class: "h-[30px] text-cyan-main"
38
38
  })) : (m(), I(Jt, {
39
39
  key: 1,
40
- class: "h-[30px] text-primary"
40
+ class: "h-[30px] text-cyan-main"
41
41
  }))
42
42
  ]),
43
43
  _: 1
@@ -146,42 +146,42 @@ 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 p = al, b = Ut("router-link"), h = nl, $ = Qn, O = Yt, F = Jn, B = qt;
149
+ const g = al, b = Ut("router-link"), h = nl, $ = Qn, O = Yt, F = Jn, B = qt;
150
150
  return m(), v("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, [
154
- g(R, {
154
+ p(R, {
155
155
  type: "icon",
156
156
  onClick: o
157
157
  }, {
158
158
  default: x(() => [
159
- g(p, { class: "size-5" })
159
+ p(g, { class: "size-5" })
160
160
  ]),
161
161
  _: 1
162
162
  }),
163
163
  f[1] || (f[1] = l("div", { class: "lg:hidden flex-auto" }, null, -1)),
164
164
  l("div", dl, [
165
- g(b, { to: "/" }, {
165
+ p(b, { to: "/" }, {
166
166
  default: x(() => [
167
- g(Jt, { class: "h-[30px] text-primary" })
167
+ p(Jt, { class: "h-[30px] text-cyan-main" })
168
168
  ]),
169
169
  _: 1
170
170
  })
171
171
  ]),
172
172
  f[2] || (f[2] = l("div", { class: "flex-auto" }, null, -1)),
173
173
  l("div", cl, [
174
- g(R, {
174
+ p(R, {
175
175
  type: "icon",
176
176
  onClick: u
177
177
  }, {
178
178
  default: x(() => [
179
- g(h, { class: "dark:hidden" }),
180
- g($, { class: "hidden dark:flex" })
179
+ p(h, { class: "dark:hidden" }),
180
+ p($, { class: "hidden dark:flex" })
181
181
  ]),
182
182
  _: 1
183
183
  }),
184
- g(R, {
184
+ p(R, {
185
185
  type: "icon",
186
186
  onClick: i
187
187
  }, {
@@ -191,40 +191,40 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
191
191
  }, [...f[0] || (f[0] = [
192
192
  l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
193
193
  ])], 2),
194
- g(O, { class: "size-5" })
194
+ p(O, { class: "size-5" })
195
195
  ]),
196
196
  _: 1
197
197
  }),
198
- g(R, {
198
+ p(R, {
199
199
  type: "icon",
200
200
  onClick: te(c, ["prevent"])
201
201
  }, {
202
202
  default: x(() => [
203
- g(F, { class: "size-5" })
203
+ p(F, { class: "size-5" })
204
204
  ]),
205
205
  _: 1
206
206
  })
207
207
  ]),
208
208
  l("div", ul, [
209
- g(Xt, {
209
+ p(Xt, {
210
210
  left: "unset",
211
211
  right: "0",
212
212
  top: "0"
213
213
  }, {
214
214
  activator: x(({ on: X }) => [
215
- g(R, {
215
+ p(R, {
216
216
  type: "icon",
217
217
  class: "flex",
218
218
  onClick: X.click
219
219
  }, {
220
220
  default: x(() => [
221
- g(B)
221
+ p(B)
222
222
  ]),
223
223
  _: 1
224
224
  }, 8, ["onClick"])
225
225
  ]),
226
226
  default: x(() => [
227
- g(_t, {
227
+ p(_t, {
228
228
  items: a,
229
229
  onClick: r
230
230
  }, {
@@ -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" }, pl = { class: "text-gray-500 dark:text-gray-400 mt-1" }, gl = /* @__PURE__ */ E({
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({
246
246
  __name: "CardNotification",
247
247
  props: {
248
248
  empty: {},
@@ -262,7 +262,7 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
262
262
  l("div", {
263
263
  class: j(["absolute left-0 top-0 w-[3px] h-full", o(s.color)])
264
264
  }, null, 2),
265
- g(R, {
265
+ p(R, {
266
266
  class: "shrink-0",
267
267
  type: "icon",
268
268
  onClick: c
@@ -273,22 +273,22 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
273
273
  }, [...r[0] || (r[0] = [
274
274
  l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
275
275
  ])], 2),
276
- g(d, { class: "size-5" })
276
+ p(d, { class: "size-5" })
277
277
  ]),
278
278
  _: 1
279
279
  }),
280
280
  l("div", vl, [
281
281
  l("div", null, w(s.text), 1),
282
- l("div", pl, w(J(An)(s.date)) + " (" + w(J(Vn)(s.date)) + ")", 1)
282
+ l("div", gl, w(J(An)(s.date)) + " (" + w(J(Vn)(s.date)) + ")", 1)
283
283
  ]),
284
- g(R, {
284
+ p(R, {
285
285
  class: "shrink-0",
286
286
  type: "icon",
287
287
  size: "sm",
288
288
  onClick: i
289
289
  }, {
290
290
  default: x(() => [
291
- g(f, { class: "size-4" })
291
+ p(f, { class: "size-4" })
292
292
  ]),
293
293
  _: 1
294
294
  })
@@ -314,12 +314,12 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
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-[#07112c]/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-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"])
318
318
  }, [
319
319
  l("div", hl, [
320
320
  M(r.$slots, "header", { isNew: n.value }),
321
321
  o.value ? (m(), v("div", yl, [
322
- g(Kt, {
322
+ p(Kt, {
323
323
  "enter-active-class": "transition-all duration-300 ",
324
324
  "enter-from-class": "opacity-0 translate-x-1/2",
325
325
  "enter-to-class": "opacity-100 translate-x-0",
@@ -333,10 +333,10 @@ const al = ne({ name: "ri-menu-line", render: sl }), ol = { class: "glass-header
333
333
  class: "relative"
334
334
  }, [
335
335
  M(r.$slots, "card", { item: f }, () => [
336
- g(gl, q({ ref_for: !0 }, f, {
336
+ p(pl, q({ ref_for: !0 }, f, {
337
337
  class: "rounded-md border border-gray-200/60 bg-white/50 dark:border-white/5 dark:bg-white/[0.03]",
338
- onRemove: (p) => c(f),
339
- onRead: (p) => u(f)
338
+ onRemove: (g) => c(f),
339
+ onRead: (g) => u(f)
340
340
  }), null, 16, ["onRemove", "onRead"])
341
341
  ])
342
342
  ]))), 128))
@@ -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 p;
390
- return c(f, d) || ((p = f.children) == null ? void 0 : p.some(
389
+ var g;
390
+ return c(f, d) || ((g = f.children) == null ? void 0 : g.some(
391
391
  (b) => {
392
392
  var h;
393
393
  return c(b, d) || ((h = b.children) == null ? void 0 : h.some(($) => c($, d)));
@@ -405,39 +405,39 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
405
405
  const f = Cl;
406
406
  return m(), v("nav", null, [
407
407
  l("ul", Sl, [
408
- (m(!0), v(D, null, H(e.menu, (p) => (m(), v("li", {
409
- key: p.name
408
+ (m(!0), v(D, null, H(e.menu, (g) => (m(), v("li", {
409
+ key: g.name
410
410
  }, [
411
- (m(), I(Re(p.path ? "router-link" : "span"), {
412
- to: p.path,
413
- class: j(["flex gap-2 items-center px-3 py-2 rounded", o(p.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"]),
414
- onClick: te((b) => n(p), ["prevent", "stop"])
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"])
415
415
  }, {
416
416
  default: x(() => [
417
417
  l("div", zl, [
418
- M(r.$slots, "icon", { item: p })
418
+ M(r.$slots, "icon", { item: g })
419
419
  ]),
420
420
  l("span", {
421
421
  class: j(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
422
- }, w(p.name), 3),
422
+ }, w(g.name), 3),
423
423
  l("button", {
424
424
  class: j(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
425
- onClick: te((b) => n(p), ["prevent", "stop"])
425
+ onClick: te((b) => n(g), ["prevent", "stop"])
426
426
  }, [
427
- p.children ? (m(), I(f, { key: 0 })) : T("", !0)
427
+ g.children ? (m(), I(f, { key: 0 })) : T("", !0)
428
428
  ], 10, Tl)
429
429
  ]),
430
430
  _: 2
431
431
  }, 1032, ["to", "class", "onClick"])),
432
- p.children ? (m(), v("div", {
432
+ g.children ? (m(), v("div", {
433
433
  key: 0,
434
- class: j(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", a.value === p.name ? "block" : "hidden"]])
434
+ class: j(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", a.value === g.name ? "block" : "hidden"]])
435
435
  }, [
436
436
  l("ul", Al, [
437
- (m(!0), v(D, null, H(p.children, ({ name: b, path: h, icon: $, children: O }) => (m(), v("li", { key: b }, [
437
+ (m(!0), v(D, null, H(g.children, ({ name: b, path: h, icon: $, children: O }) => (m(), v("li", { key: b }, [
438
438
  (m(), I(Re(h ? "router-link" : "span"), {
439
439
  to: h,
440
- class: j(["flex gap-2 items-center px-3 py-2 rounded", o(h) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
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"])
441
441
  }, {
442
442
  default: x(() => [
443
443
  l("div", Vl, [
@@ -458,7 +458,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
458
458
  }, [
459
459
  (m(), I(Re(F.path ? "router-link" : "span"), {
460
460
  to: F.path,
461
- class: j(["flex gap-2 items-center px-3 py-2 rounded", o(F.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
461
+ class: j(["flex gap-2 items-center px-3 py-2 rounded", o(F.path) ? "bg-cyan-main/10 text-cyan-main" : "hover:bg-white/5"])
462
462
  }, {
463
463
  default: x(() => [
464
464
  l("div", Il, [
@@ -531,7 +531,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
531
531
  class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
532
532
  onClick: c[0] || (c[0] = (r) => t.value = !1)
533
533
  }, [
534
- g(u, { class: "size-4" })
534
+ p(u, { class: "size-4" })
535
535
  ])
536
536
  ]),
537
537
  s.value ? (m(), v("div", {
@@ -617,31 +617,31 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
617
617
  return (i, c) => {
618
618
  const u = Sn, r = _t, d = zn, f = R;
619
619
  return m(), v("div", null, [
620
- g(r, {
620
+ p(r, {
621
621
  items: e.items,
622
622
  class: "bg-transparent! ring-0!"
623
623
  }, {
624
- default: x(({ item: p }) => [
624
+ default: x(({ item: g }) => [
625
625
  l("div", {
626
626
  class: "flex items-center w-full",
627
- onClick: (b) => n(p)
627
+ onClick: (b) => n(g)
628
628
  }, [
629
629
  l("div", ns, [
630
- g(u, ae(oe(p)), null, 16)
630
+ p(u, ae(oe(g)), null, 16)
631
631
  ]),
632
632
  l("div", null, [
633
- l("div", ls, w(p.ssid), 1),
634
- l("div", ss, w(i.$t("security")) + " : " + w(a[p.encryptionType] || "unknown"), 1)
633
+ l("div", ls, w(g.ssid), 1),
634
+ l("div", ss, w(i.$t("security")) + " : " + w(a[g.encryptionType] || "unknown"), 1)
635
635
  ])
636
636
  ], 8, ts)
637
637
  ]),
638
638
  _: 1
639
639
  }, 8, ["items"]),
640
640
  e.items.length ? T("", !0) : (m(), v("div", as, [
641
- g(d, { class: "text-primary" })
641
+ p(d, { class: "text-cyan-main" })
642
642
  ])),
643
643
  l("div", os, [
644
- g(f, {
644
+ p(f, {
645
645
  color: "blue",
646
646
  onClick: o
647
647
  }, {
@@ -672,7 +672,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
672
672
  l("div", is, [
673
673
  l("div", rs, w(o.$t("selectLang")), 1),
674
674
  l("div", ds, [
675
- g(c, {
675
+ p(c, {
676
676
  "model-value": n(e.locale),
677
677
  label: o.$t("lang"),
678
678
  items: e.locales,
@@ -682,7 +682,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
682
682
  ]),
683
683
  l("div", cs, [
684
684
  l("div", us, w(o.$t("rebootDev")), 1),
685
- g(u, {
685
+ p(u, {
686
686
  class: "min-w-[100px]",
687
687
  color: "red",
688
688
  outline: "",
@@ -696,7 +696,7 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
696
696
  ]),
697
697
  l("div", ms, [
698
698
  l("div", fs, w(o.$t("resetConf")), 1),
699
- g(u, {
699
+ p(u, {
700
700
  class: "min-w-[100px]",
701
701
  color: "red",
702
702
  onClick: i[1] || (i[1] = (r) => s("reset", r))
@@ -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]" }, ps = { class: "flex flex-col w-full items-center gap-2" }, gs = ["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
+ }), 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({
714
714
  __name: "BlockStatus",
715
715
  props: {
716
716
  pkg: {},
@@ -746,21 +746,21 @@ 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, p;
749
+ var d, f, g;
750
750
  return m(), v("div", vs, [
751
- l("div", ps, [
751
+ l("div", gs, [
752
752
  l("div", {
753
753
  class: "relative block h-4 w-full select-none overflow-hidden rounded-md bg-gray-200/70 dark:bg-white/10",
754
754
  title: `${i.value}%`
755
755
  }, [
756
756
  l("div", hs, w(i.value) + "%", 1),
757
757
  l("div", {
758
- class: "relative h-4 overflow-hidden rounded-md bg-primary transition-all duration-500",
758
+ class: "relative h-4 overflow-hidden rounded-md bg-cyan-main transition-all duration-500",
759
759
  style: Me(`width: ${i.value}%`)
760
760
  }, [
761
761
  l("div", ys, w(i.value) + "%", 1)
762
762
  ], 4)
763
- ], 8, gs),
763
+ ], 8, ps),
764
764
  l("div", bs, [
765
765
  (m(!0), v(D, null, H(n.value, (b) => (m(), v("div", {
766
766
  key: b.name,
@@ -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: (p = (f = e.pkg) == null ? void 0 : f.repository) == null ? void 0 : p.url
790
+ repo: (g = (f = e.pkg) == null ? void 0 : f.repository) == null ? void 0 : g.url
791
791
  })
792
792
  ])
793
793
  ]);
@@ -833,9 +833,9 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
833
833
  key: f,
834
834
  class: "mb-4 flex items-center"
835
835
  }, [
836
- g(Cs, {
836
+ p(Cs, {
837
837
  accept: ".bin",
838
- onChange: (p) => a[f] = p,
838
+ onChange: (g) => a[f] = g,
839
839
  class: "flex-auto"
840
840
  }, {
841
841
  default: x(() => [
@@ -848,11 +848,11 @@ const Cl = ne({ name: "ri-arrow-right-s-line", render: _l }), Sl = { class: "mb-
848
848
  ]),
849
849
  _: 2
850
850
  }, 1032, ["onChange"]),
851
- g(r, {
851
+ p(r, {
852
852
  class: "min-w-[100px]",
853
853
  color: "blue",
854
854
  disabled: !d,
855
- onClick: (p) => i(`${f}.bin`, d)
855
+ onClick: (g) => i(`${f}.bin`, d)
856
856
  }, {
857
857
  default: x(() => [
858
858
  A(w(c.$t("btnUpdate")), 1)
@@ -968,7 +968,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
968
968
  setup(e, { emit: t }) {
969
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) => {
970
970
  n.value[b] = !n.value[b];
971
- }, d = (b) => typeof b == "object", f = (b) => `${e.path ? e.path + "." : ""}${b}`, p = (b, h) => {
971
+ }, d = (b) => typeof b == "object", f = (b) => `${e.path ? e.path + "." : ""}${b}`, g = (b, h) => {
972
972
  s("click", { key: b, path: f(b), isObject: h });
973
973
  };
974
974
  return (b, h) => {
@@ -983,7 +983,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
983
983
  onClick: (ve) => r(X)
984
984
  }, [
985
985
  d(B) ? (m(), v("div", Rs, [
986
- g($, { class: "size-5" })
986
+ p($, { class: "size-5" })
987
987
  ])) : T("", !0),
988
988
  l("div", Ns, w(X), 1),
989
989
  J(u) ? (m(), I(R, {
@@ -994,7 +994,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
994
994
  onClick: te((ve) => J(i)(f(X)), ["stop"])
995
995
  }, {
996
996
  default: x(() => [
997
- g(O, { class: "size-5" })
997
+ p(O, { class: "size-5" })
998
998
  ]),
999
999
  _: 1
1000
1000
  }, 8, ["onClick"])) : T("", !0),
@@ -1005,15 +1005,15 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1005
1005
  !e.onlyValue && d(B) ? (m(), v(D, { key: 3 }, [
1006
1006
  h[1] || (h[1] = l("div", { class: "flex-auto" }, null, -1)),
1007
1007
  l("div", Ps, [
1008
- g(R, {
1008
+ p(R, {
1009
1009
  class: "opacity-20 hover:opacity-70 transition-all",
1010
1010
  color: "transparent",
1011
1011
  size: "sm",
1012
1012
  title: b.$t("add"),
1013
- onClick: te((ve) => p(X, d(B)), ["stop"])
1013
+ onClick: te((ve) => g(X, d(B)), ["stop"])
1014
1014
  }, {
1015
1015
  default: x(() => [
1016
- g(F, { class: "size-5" })
1016
+ p(F, { class: "size-5" })
1017
1017
  ]),
1018
1018
  _: 1
1019
1019
  }, 8, ["title", "onClick"])
@@ -1021,7 +1021,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1021
1021
  ], 64)) : T("", !0)
1022
1022
  ], 10, js),
1023
1023
  d(B) ? (m(), v("div", Hs, [
1024
- dt(g(St, {
1024
+ dt(p(St, {
1025
1025
  class: "flex-auto",
1026
1026
  path: f(X),
1027
1027
  items: B,
@@ -1033,15 +1033,15 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1033
1033
  ])) : (m(), v(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
- g(R, {
1036
+ p(R, {
1037
1037
  class: "opacity-20 hover:opacity-70 transition-all",
1038
1038
  color: "gray",
1039
1039
  size: "sm",
1040
1040
  title: b.$t("add"),
1041
- onClick: te((ve) => p(X, d(B)), ["stop"])
1041
+ onClick: te((ve) => g(X, d(B)), ["stop"])
1042
1042
  }, {
1043
1043
  default: x(() => [
1044
- g(F, { class: "size-5" })
1044
+ p(F, { class: "size-5" })
1045
1045
  ]),
1046
1046
  _: 1
1047
1047
  }, 8, ["title", "onClick"])
@@ -1064,13 +1064,13 @@ 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-[#0b1538]/80 dark:text-gray-400" : "top-1/2 bg-transparent px-0 text-gray-400 dark:text-gray-500"
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
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"]);
1069
1069
  return (o, i) => {
1070
1070
  const c = ct;
1071
1071
  return m(), v("div", Ks, [
1072
1072
  l("div", {
1073
- class: j(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-primary/60", n.value])
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
  }, [
1075
1075
  l("span", {
1076
1076
  class: j(["absolute -translate-y-1/2 rounded transition-all", a.value])
@@ -1087,7 +1087,7 @@ const Ds = ne({ name: "ri-folder6-line", render: Fs }), js = ["onClick"], Rs = {
1087
1087
  onClick: i[0] || (i[0] = (u) => s("icon", u))
1088
1088
  }, [
1089
1089
  M(o.$slots, "icon", {}, () => [
1090
- g(c, { class: "size-4" })
1090
+ p(c, { class: "size-4" })
1091
1091
  ])
1092
1092
  ], 10, Gs))
1093
1093
  ], 2)
@@ -1244,7 +1244,7 @@ v + ' кВт·ч<br>выработка за день'`),
1244
1244
  onOnIcon: n[2] || (n[2] = (o) => s("pick"))
1245
1245
  }, {
1246
1246
  icon: x(() => [
1247
- g(Q, {
1247
+ p(Q, {
1248
1248
  name: "search",
1249
1249
  size: 16
1250
1250
  })
@@ -1270,7 +1270,7 @@ v + ' кВт·ч<br>выработка за день'`),
1270
1270
  onClick: n[4] || (n[4] = (o) => s("reset"))
1271
1271
  }, {
1272
1272
  default: x(() => [
1273
- g(Q, {
1273
+ p(Q, {
1274
1274
  name: "refresh",
1275
1275
  size: 14
1276
1276
  })
@@ -1316,7 +1316,7 @@ v + ' кВт·ч<br>выработка за день'`),
1316
1316
  d !== o.value && (o.value = d);
1317
1317
  }
1318
1318
  ), (r, d) => {
1319
- const f = Pe, p = ct;
1319
+ const f = Pe, g = ct;
1320
1320
  return m(), I(zt, {
1321
1321
  active: !!e.value,
1322
1322
  disabled: e.disabled,
@@ -1328,7 +1328,7 @@ v + ' кВт·ч<br>выработка за день'`),
1328
1328
  e.value ? (m(), I(f, {
1329
1329
  key: 0,
1330
1330
  class: "size-4"
1331
- })) : (m(), I(p, {
1331
+ })) : (m(), I(g, {
1332
1332
  key: 1,
1333
1333
  class: "size-4"
1334
1334
  }))
@@ -1390,7 +1390,7 @@ v + ' кВт·ч<br>выработка за день'`),
1390
1390
  }, sa = {
1391
1391
  default: "text-gray-900 dark:text-white",
1392
1392
  muted: "text-gray-500 dark:text-gray-400",
1393
- primary: "text-primary",
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",
1396
1396
  danger: "text-rose-600 dark:text-rose-400"
@@ -1530,8 +1530,8 @@ v + ' кВт·ч<br>выработка за день'`),
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]) ?? [], p = ((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, p, s, a));
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));
1535
1535
  }
1536
1536
  return o;
1537
1537
  }, Vt = (e, t, s) => {
@@ -1544,7 +1544,7 @@ v + ' кВт·ч<br>выработка за день'`),
1544
1544
  n[o.key] = d, a[o.key] = d;
1545
1545
  }
1546
1546
  return n.metrics = va(e, t, s, n), n;
1547
- }, pa = { class: "glass-inset rounded-xl p-3" }, ga = { 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({
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({
1548
1548
  __name: "BlockMetricCard",
1549
1549
  props: {
1550
1550
  metric: {},
@@ -1554,10 +1554,10 @@ 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", pa, [
1558
- l("div", ga, [
1557
+ return (n, o) => (m(), v("div", ga, [
1558
+ l("div", pa, [
1559
1559
  l("div", ha, [
1560
- g(ie, {
1560
+ p(ie, {
1561
1561
  active: "",
1562
1562
  "hide-message": "",
1563
1563
  "model-value": e.metric.label,
@@ -1565,7 +1565,7 @@ v + ' кВт·ч<br>выработка за день'`),
1565
1565
  "onUpdate:modelValue": o[0] || (o[0] = (i) => s("change", { label: i }))
1566
1566
  }, null, 8, ["model-value"])
1567
1567
  ]),
1568
- g(R, {
1568
+ p(R, {
1569
1569
  type: "icon",
1570
1570
  size: "sm",
1571
1571
  "aria-label": "Стиль показателя",
@@ -1573,14 +1573,14 @@ v + ' кВт·ч<br>выработка за день'`),
1573
1573
  onClick: o[1] || (o[1] = (i) => s("open-style"))
1574
1574
  }, {
1575
1575
  default: x(() => [
1576
- g(Q, {
1576
+ p(Q, {
1577
1577
  name: "palette",
1578
1578
  size: 18
1579
1579
  })
1580
1580
  ]),
1581
1581
  _: 1
1582
1582
  }),
1583
- g(R, {
1583
+ p(R, {
1584
1584
  type: "icon",
1585
1585
  size: "sm",
1586
1586
  "aria-label": "Удалить показатель",
@@ -1588,7 +1588,7 @@ v + ' кВт·ч<br>выработка за день'`),
1588
1588
  onClick: o[2] || (o[2] = (i) => s("remove"))
1589
1589
  }, {
1590
1590
  default: x(() => [
1591
- g(Q, {
1591
+ p(Q, {
1592
1592
  name: "trash",
1593
1593
  size: 14
1594
1594
  })
@@ -1602,14 +1602,14 @@ v + ' кВт·ч<br>выработка за день'`),
1602
1602
  onDragstart: o[3] || (o[3] = (i) => s("dragstart", i, e.index)),
1603
1603
  onDragend: o[4] || (o[4] = (i) => s("dragend"))
1604
1604
  }, [
1605
- g(Q, {
1605
+ p(Q, {
1606
1606
  name: "grip",
1607
1607
  size: 16
1608
1608
  })
1609
1609
  ], 32)
1610
1610
  ]),
1611
1611
  l("div", ya, [
1612
- g(Xe, {
1612
+ p(Xe, {
1613
1613
  value: e.metric.value,
1614
1614
  args: e.args,
1615
1615
  params: [...J(xt)],
@@ -1618,7 +1618,7 @@ v + ' кВт·ч<br>выработка за день'`),
1618
1618
  onChange: o[6] || (o[6] = (i) => s("change", { value: i })),
1619
1619
  onHover: a
1620
1620
  }, null, 8, ["value", "args", "params"]),
1621
- g(Xe, {
1621
+ p(Xe, {
1622
1622
  value: e.metric.format,
1623
1623
  args: e.args,
1624
1624
  params: [...J(xt)],
@@ -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 }), p = (h) => r({ weight: h.value }), b = (h) => r({ align: h.value });
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 });
1649
1649
  return (h, $) => (m(), I(Ae, {
1650
1650
  title: "Стиль показателя",
1651
1651
  size: "md",
@@ -1664,25 +1664,25 @@ v + ' кВт·ч<br>выработка за день'`),
1664
1664
  }, w(e.preview || "1 234 кВт·ч"), 3)
1665
1665
  ]),
1666
1666
  l("div", _a, [
1667
- g(he, {
1667
+ p(he, {
1668
1668
  "model-value": o.value,
1669
1669
  items: J(It),
1670
1670
  label: "Размер",
1671
1671
  onChange: d
1672
1672
  }, null, 8, ["model-value", "items"]),
1673
- g(he, {
1673
+ p(he, {
1674
1674
  "model-value": i.value,
1675
1675
  items: J(Ot),
1676
1676
  label: "Цвет",
1677
1677
  onChange: f
1678
1678
  }, null, 8, ["model-value", "items"]),
1679
- g(he, {
1679
+ p(he, {
1680
1680
  "model-value": c.value,
1681
1681
  items: J(Ft),
1682
1682
  label: "Начертание",
1683
- onChange: p
1683
+ onChange: g
1684
1684
  }, null, 8, ["model-value", "items"]),
1685
- g(he, {
1685
+ p(he, {
1686
1686
  "model-value": u.value,
1687
1687
  items: J(Dt),
1688
1688
  label: "Выравнивание",
@@ -1690,7 +1690,7 @@ v + ' кВт·ч<br>выработка за день'`),
1690
1690
  }, null, 8, ["model-value", "items"])
1691
1691
  ]),
1692
1692
  l("div", Ca, [
1693
- g(R, {
1693
+ p(R, {
1694
1694
  variant: "primary",
1695
1695
  onClick: $[0] || ($[0] = (O) => s("close"))
1696
1696
  }, {
@@ -1769,7 +1769,7 @@ 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), p = 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), g = L(null), b = L(null), h = L(null), $ = L(null);
1773
1773
  let O = JSON.stringify(i.value), F = null;
1774
1774
  const B = _(() => Vt(e.definition, i.value, e.context)), X = _(() => B.value.metrics ?? {}), ve = _(
1775
1775
  () => a.map((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 ?? "ед."}'`, pe = () => {
1824
+ }, N = (y) => `v + ' ${y.unit ?? "ед."}'`, ge = () => {
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(pe, 500);
1830
+ F && clearTimeout(F), F = setTimeout(ge, 500);
1831
1831
  }, { deep: !0 });
1832
1832
  const We = () => {
1833
- pe(), s("close");
1833
+ ge(), 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
- p.value = y === "enter" ? k : null;
1857
+ g.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];
@@ -1887,12 +1887,12 @@ v + ' кВт·ч<br>выработка за день'`),
1887
1887
  W.splice(y, 0, S), i.value.metrics = { ...i.value.metrics ?? {}, [c.value]: W };
1888
1888
  }, vn = () => {
1889
1889
  h.value = null, $.value = null;
1890
- }, pn = (y) => {
1890
+ }, gn = (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) => {
1894
1894
  Object.assign(y, k);
1895
- }, gn = () => {
1895
+ }, pn = () => {
1896
1896
  const y = JSON.stringify(i.value, null, 2), k = new Blob([y], { type: "application/json" }), W = URL.createObjectURL(k), S = document.createElement("a");
1897
1897
  S.href = W, S.download = `${e.definition.type}.json`, S.click(), URL.revokeObjectURL(W);
1898
1898
  }, hn = () => {
@@ -1910,12 +1910,12 @@ v + ' кВт·ч<br>выработка за день'`),
1910
1910
  ...Y,
1911
1911
  id: i.value.id,
1912
1912
  type: e.definition.type
1913
- }, pe();
1913
+ }, ge();
1914
1914
  } finally {
1915
1915
  k.value = "";
1916
1916
  }
1917
1917
  };
1918
- return Ze(pe), (y, k) => {
1918
+ return Ze(ge), (y, k) => {
1919
1919
  const W = Pe;
1920
1920
  return m(), I(Ae, {
1921
1921
  title: "Настройка блока",
@@ -1924,7 +1924,7 @@ v + ' кВт·ч<br>выработка за день'`),
1924
1924
  }, {
1925
1925
  "header-btn": x(() => [
1926
1926
  l("div", za, [
1927
- g(R, {
1927
+ p(R, {
1928
1928
  type: "icon",
1929
1929
  size: "sm",
1930
1930
  "aria-label": "Справка",
@@ -1932,14 +1932,14 @@ v + ' кВт·ч<br>выработка за день'`),
1932
1932
  onClick: k[0] || (k[0] = (S) => u.value = !0)
1933
1933
  }, {
1934
1934
  default: x(() => [
1935
- g(Q, {
1935
+ p(Q, {
1936
1936
  name: "help",
1937
1937
  size: 16
1938
1938
  })
1939
1939
  ]),
1940
1940
  _: 1
1941
1941
  }),
1942
- g(R, {
1942
+ p(R, {
1943
1943
  type: "icon",
1944
1944
  size: "sm",
1945
1945
  "aria-label": "Импорт",
@@ -1947,22 +1947,22 @@ v + ' кВт·ч<br>выработка за день'`),
1947
1947
  onClick: hn
1948
1948
  }, {
1949
1949
  default: x(() => [
1950
- g(Q, {
1950
+ p(Q, {
1951
1951
  name: "upload",
1952
1952
  size: 16
1953
1953
  })
1954
1954
  ]),
1955
1955
  _: 1
1956
1956
  }),
1957
- g(R, {
1957
+ p(R, {
1958
1958
  type: "icon",
1959
1959
  size: "sm",
1960
1960
  "aria-label": "Экспорт",
1961
1961
  title: "Экспорт",
1962
- onClick: gn
1962
+ onClick: pn
1963
1963
  }, {
1964
1964
  default: x(() => [
1965
- g(Q, {
1965
+ p(Q, {
1966
1966
  name: "download",
1967
1967
  size: 16
1968
1968
  })
@@ -1985,11 +1985,11 @@ v + ' кВт·ч<br>выработка за день'`),
1985
1985
  (m(!0), v(D, null, H(ve.value, (S) => (m(), v("button", {
1986
1986
  key: S.key,
1987
1987
  type: "button",
1988
- class: j(["flex items-center gap-2 rounded-md px-3 py-2 text-left transition", c.value === S.key ? "bg-primary/10 text-primary" : "hover:bg-white/5"]),
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"]),
1989
1989
  onClick: (Y) => c.value = S.key
1990
1990
  }, [
1991
1991
  l("span", Ba, [
1992
- g(Q, {
1992
+ p(Q, {
1993
1993
  name: S.icon,
1994
1994
  size: 16
1995
1995
  }, null, 8, ["name"])
@@ -2026,7 +2026,7 @@ v + ' кВт·ч<br>выработка за день'`),
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
2028
  V.value ? (m(), v("section", Ia, [
2029
- g(zt, {
2029
+ p(zt, {
2030
2030
  active: !!Z.value.length,
2031
2031
  "icon-disabled": Z.value.length >= J(qe),
2032
2032
  label: "Аргументы",
@@ -2048,7 +2048,7 @@ v + ' кВт·ч<br>выработка за день'`),
2048
2048
  class: "ms-1 shrink-0 cursor-pointer text-gray-400 transition hover:text-rose-500",
2049
2049
  onClick: (ze) => ue(Y)
2050
2050
  }, [
2051
- g(W, { class: "size-5" })
2051
+ p(W, { class: "size-5" })
2052
2052
  ], 8, ja)) : T("", !0)
2053
2053
  ]))), 128))
2054
2054
  ])) : T("", !0)
@@ -2059,7 +2059,7 @@ v + ' кВт·ч<br>выработка за день'`),
2059
2059
  V.value ? (m(), v("section", Ra, [
2060
2060
  l("div", Na, [
2061
2061
  k[8] || (k[8] = l("h4", { class: "text-sm font-semibold" }, "Показатели", -1)),
2062
- g(R, {
2062
+ p(R, {
2063
2063
  type: "icon",
2064
2064
  size: "sm",
2065
2065
  "aria-label": "Добавить показатель",
@@ -2068,7 +2068,7 @@ v + ' кВт·ч<br>выработка за день'`),
2068
2068
  onClick: Se
2069
2069
  }, {
2070
2070
  default: x(() => [
2071
- g(Q, {
2071
+ p(Q, {
2072
2072
  name: "plus",
2073
2073
  size: 14
2074
2074
  })
@@ -2079,11 +2079,11 @@ v + ' кВт·ч<br>выработка за день'`),
2079
2079
  de.value.length ? (m(), v("div", Ha, [
2080
2080
  (m(!0), v(D, null, H(de.value, (S, Y) => (m(), v("div", {
2081
2081
  key: S.id,
2082
- class: j(["rounded-xl transition", { "ring-1 ring-primary/50": $.value === Y }]),
2082
+ class: j(["rounded-xl transition", { "ring-1 ring-cyan-main/50": $.value === Y }]),
2083
2083
  onDragover: te((ze) => et(Y), ["prevent"]),
2084
2084
  onDrop: te((ze) => vt(Y), ["prevent"])
2085
2085
  }, [
2086
- g(ba, {
2086
+ p(ba, {
2087
2087
  metric: S,
2088
2088
  index: Y,
2089
2089
  args: Z.value,
@@ -2099,7 +2099,7 @@ v + ' кВт·ч<br>выработка за день'`),
2099
2099
  ])) : (m(), v("p", Pa, "Показателей нет. Добавьте первый."))
2100
2100
  ])) : T("", !0),
2101
2101
  ye.value ? (m(), v("div", Ka, [
2102
- g(he, {
2102
+ p(he, {
2103
2103
  "model-value": Le.value,
2104
2104
  items: Ue.value,
2105
2105
  label: "Направление",
@@ -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: pn(f.value),
2116
+ preview: gn(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),
@@ -2125,7 +2125,7 @@ v + ' кВт·ч<br>выработка за день'`),
2125
2125
  }, {
2126
2126
  default: x(() => [
2127
2127
  l("div", Wa, [
2128
- g(St, {
2128
+ p(St, {
2129
2129
  items: e.context.roots,
2130
2130
  onClick: ft
2131
2131
  }, null, 8, ["items"])
@@ -2172,7 +2172,7 @@ v + ' кВт·ч<br>выработка за день'`),
2172
2172
  }, null, 8, ["definition", "config", "context", "removable"])) : T("", !0)
2173
2173
  ], 64));
2174
2174
  }
2175
- }), Ja = { class: "grid gap-3 sm:grid-cols-2" }, Xa = ["onClick"], qa = { class: "grid size-10 place-items-center rounded-lg border border-primary/20 bg-primary/10 text-primary" }, Ya = { class: "mt-3 block text-base font-semibold" }, Za = {
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
2177
  class: "mt-1 block text-sm text-gray-500 dark:text-gray-400"
2178
2178
  }, Qa = {
@@ -2196,11 +2196,11 @@ v + ' кВт·ч<br>выработка за день'`),
2196
2196
  (m(!0), v(D, null, H(e.definitions, (o) => (m(), v("button", {
2197
2197
  key: o.type,
2198
2198
  type: "button",
2199
- class: "glass-inset flex flex-col items-start rounded-xl p-4 text-left transition hover:border-primary/30 hover:bg-primary/5",
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",
2200
2200
  onClick: (i) => s("select", o.type)
2201
2201
  }, [
2202
2202
  l("span", qa, [
2203
- g(Q, {
2203
+ p(Q, {
2204
2204
  name: o.icon ?? "box",
2205
2205
  size: 20
2206
2206
  }, null, 8, ["name"])
@@ -2309,7 +2309,7 @@ v + ' кВт·ч<br>выработка за день'`),
2309
2309
  ]),
2310
2310
  n.value ? (m(), v("p", no, w(n.value), 1)) : T("", !0),
2311
2311
  l("div", lo, [
2312
- g(R, {
2312
+ p(R, {
2313
2313
  color: "gray",
2314
2314
  outline: "",
2315
2315
  onClick: r[1] || (r[1] = (d) => s("close"))
@@ -2319,7 +2319,7 @@ v + ' кВт·ч<br>выработка за день'`),
2319
2319
  ])]),
2320
2320
  _: 1
2321
2321
  }),
2322
- g(R, {
2322
+ p(R, {
2323
2323
  variant: "primary",
2324
2324
  onClick: c
2325
2325
  }, {
@@ -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)]" }, po = { class: "flex items-center gap-2" }, go = { 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"], 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 = {
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-primary/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-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({
2341
2341
  __name: "EnergyFlowCard",
2342
2342
  props: {
2343
2343
  title: { default: "Сетевой инвертор" },
@@ -2368,12 +2368,12 @@ 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]) ?? [], pe = N.find((We) => We.id === G) ?? N[z];
2372
- return pe == null ? void 0 : pe.raw;
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;
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)), p = _(() => 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)), 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 = _(() => [
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) },
@@ -2405,9 +2405,9 @@ v + ' кВт·ч<br>выработка за день'`),
2405
2405
  icon: "plug",
2406
2406
  label: n(e.gridTitle),
2407
2407
  metrics: i("grid"),
2408
- tone: "text-primary",
2409
- surface: "bg-primary/10",
2410
- card: "border-primary/25 bg-primary/[0.04]"
2408
+ tone: "text-cyan-main",
2409
+ surface: "bg-cyan-main/10",
2410
+ card: "border-cyan-main/25 bg-cyan-main/[0.04]"
2411
2411
  },
2412
2412
  {
2413
2413
  key: "home",
@@ -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), pe = N.x + N.width / 2, Ke = N.y + N.height / 2, We = ye.value.map((ue) => {
2434
+ const N = Be(G, z), ge = 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 = pe - 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 = 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";
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);
@@ -2482,14 +2482,14 @@ v + ' кВт·ч<br>выработка за день'`),
2482
2482
  onClick: G[0] || (G[0] = (z) => s("settings"))
2483
2483
  }, {
2484
2484
  default: x(() => [
2485
- g(Q, {
2485
+ p(Q, {
2486
2486
  name: "settings",
2487
2487
  size: 16
2488
2488
  })
2489
2489
  ]),
2490
2490
  _: 1
2491
2491
  })) : T("", !0),
2492
- g(R, {
2492
+ p(R, {
2493
2493
  type: "icon",
2494
2494
  size: "sm",
2495
2495
  "aria-label": "Обновить данные",
@@ -2497,7 +2497,7 @@ v + ' кВт·ч<br>выработка за день'`),
2497
2497
  onClick: G[1] || (G[1] = (z) => s("refresh"))
2498
2498
  }, {
2499
2499
  default: x(() => [
2500
- g(Q, {
2500
+ p(Q, {
2501
2501
  name: "refresh",
2502
2502
  size: 16
2503
2503
  })
@@ -2529,31 +2529,31 @@ v + ' кВт·ч<br>выработка за день'`),
2529
2529
  key: `flow-${z.id}`
2530
2530
  }, [
2531
2531
  l("path", {
2532
- class: "stroke-[var(--color-primary)] [stroke-width:2.5] [stroke-linecap:round] opacity-55",
2532
+ class: "stroke-[var(--color-cyan-main)] [stroke-width:2.5] [stroke-linecap:round] opacity-55",
2533
2533
  d: Z.value.paths[z.id],
2534
2534
  fill: "none"
2535
2535
  }, null, 8, io),
2536
2536
  l("path", {
2537
- class: "stroke-[var(--color-primary)] [stroke-width:10] [stroke-linecap:round] opacity-20 blur-[6px]",
2537
+ class: "stroke-[var(--color-cyan-main)] [stroke-width:10] [stroke-linecap:round] opacity-20 blur-[6px]",
2538
2538
  d: Z.value.paths[z.id],
2539
2539
  fill: "none"
2540
2540
  }, null, 8, ro),
2541
2541
  l("path", {
2542
- class: j(["animate-energy-flow stroke-[#d6f6ff] [stroke-width:2] [stroke-linecap:round] [stroke-dasharray:16_22] opacity-75 drop-shadow-[0_0_4px_rgba(40,183,240,0.55)] motion-reduce:animate-none motion-reduce:[stroke-dasharray:none]", { "[animation-direction:reverse]": z.reverse }]),
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 }]),
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, pe) => l("circle", {
2547
+ K.value ? T("", !0) : (m(), v(D, { key: 0 }, H([0, 1, 2], (N, ge) => l("circle", {
2548
2548
  key: `dot-${z.id}-${N}`,
2549
2549
  r: "2.6",
2550
- fill: "#d6f6ff",
2550
+ fill: "var(--color-neutral-light-30)",
2551
2551
  opacity: "0",
2552
- class: "drop-shadow-[0_0_5px_rgba(40,183,240,0.9)]"
2552
+ class: "drop-shadow-[var(--shadow-cyan-glow-dot)]"
2553
2553
  }, [
2554
2554
  l("animateMotion", {
2555
2555
  dur: `${z.speed}s`,
2556
- begin: `${pe * z.speed / 3}s`,
2556
+ begin: `${ge * z.speed / 3}s`,
2557
2557
  repeatCount: "indefinite",
2558
2558
  calcMode: "linear",
2559
2559
  keyTimes: "0;1",
@@ -2568,7 +2568,7 @@ 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: `${pe * z.speed / 3}s`,
2571
+ begin: `${ge * z.speed / 3}s`,
2572
2572
  repeatCount: "indefinite"
2573
2573
  }, null, 8, fo)
2574
2574
  ])), 64))
@@ -2582,19 +2582,19 @@ v + ' кВт·ч<br>выработка за день'`),
2582
2582
  class: j(z.wrapper)
2583
2583
  }, [
2584
2584
  l("div", {
2585
- class: j(["relative flex w-full max-w-none flex-col gap-3 rounded-2xl border p-4 shadow-[0_0_60px_-40px_rgba(40,183,240,0.35)] lg:max-w-56", z.card])
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", po, [
2587
+ l("div", go, [
2588
2588
  l("span", {
2589
2589
  class: j(["grid size-8 shrink-0 place-items-center rounded-lg", z.surface])
2590
2590
  }, [
2591
- g(Q, {
2591
+ p(Q, {
2592
2592
  name: z.icon,
2593
2593
  size: 16,
2594
2594
  class: j(z.tone)
2595
2595
  }, null, 8, ["name", "class"])
2596
2596
  ], 2),
2597
- l("span", go, w(z.label), 1)
2597
+ l("span", po, w(z.label), 1)
2598
2598
  ]),
2599
2599
  z.metrics.length ? (m(), v("div", ho, [
2600
2600
  (m(!0), v(D, null, H(z.metrics, (N) => (m(), v("div", {
@@ -2613,13 +2613,13 @@ v + ' кВт·ч<br>выработка за день'`),
2613
2613
  l("div", {
2614
2614
  ref_key: "inverterRef",
2615
2615
  ref: Ie,
2616
- class: "relative w-full max-w-72 rounded-2xl border border-primary/30 bg-primary/10 p-4 text-primary shadow-[0_0_70px_-24px_rgba(40,183,240,0.9)]"
2616
+ class: "relative w-full max-w-72 rounded-2xl border border-cyan-main/30 bg-cyan-main/10 p-4 text-cyan-main shadow-[var(--shadow-cyan-glow)]"
2617
2617
  }, [
2618
- G[3] || (G[3] = l("span", { class: "absolute -inset-2 rounded-3xl border border-primary/15" }, null, -1)),
2618
+ G[3] || (G[3] = l("span", { class: "absolute -inset-2 rounded-3xl border border-cyan-main/15" }, null, -1)),
2619
2619
  l("div", xo, [
2620
2620
  l("div", ko, [
2621
2621
  l("span", $o, [
2622
- g(Q, {
2622
+ p(Q, {
2623
2623
  name: "inverter",
2624
2624
  size: 20
2625
2625
  })
@@ -2644,12 +2644,12 @@ v + ' кВт·ч<br>выработка за день'`),
2644
2644
  l("div", Ao, [
2645
2645
  l("div", Vo, [
2646
2646
  G[2] || (G[2] = l("span", { class: "text-gray-500 dark:text-gray-400" }, "Батарея", -1)),
2647
- l("span", Bo, w(p.value) + " %", 1)
2647
+ l("span", Bo, w(g.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: `${p.value}%` })
2652
+ style: Me({ width: `${g.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 p = (await s.storage.read()).find((b) => b.id === n);
2899
- if (!p) return;
2898
+ const g = (await s.storage.read()).find((b) => b.id === n);
2899
+ if (!g) return;
2900
2900
  o.value = {
2901
2901
  ...o.value,
2902
- ...p,
2902
+ ...g,
2903
2903
  id: n,
2904
2904
  type: e.type,
2905
2905
  provider: a.id,
2906
- bindings: { ...o.value.bindings, ...p.bindings }
2906
+ bindings: { ...o.value.bindings, ...g.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 p = await s.storage.read();
2914
- await s.storage.write([...p.filter((b) => b.id !== f.id), f]);
2913
+ const g = await s.storage.read();
2914
+ await s.storage.write([...g.filter((b) => b.id !== f.id), f]);
2915
2915
  } catch {
2916
2916
  }
2917
2917
  };
@@ -2939,7 +2939,7 @@ function ii(e, t) {
2939
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 = {
2940
2940
  key: 0,
2941
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" }, pi = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, gi = { class: "text-center text-xl mt-4" }, He = /* @__PURE__ */ E({
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({
2943
2943
  __name: "CardBase",
2944
2944
  props: {
2945
2945
  size: {},
@@ -2962,10 +2962,10 @@ const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-a
2962
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) => {
2963
2963
  n.value = !1, a("close", f);
2964
2964
  };
2965
- return (f, p) => {
2965
+ return (f, g) => {
2966
2966
  const b = qt, h = ri;
2967
2967
  return m(), v("div", {
2968
- class: "glass-panel relative flex aspect-square cursor-pointer flex-col p-2 transition-all hover:border-primary/25 hover:shadow-[inset_0_1px_0_rgba(255,255,255,0.18),0_0_50px_-18px_rgba(40,183,240,0.25)]",
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
  }, [
2971
2971
  l("div", di, [
@@ -3001,21 +3001,21 @@ const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-a
3001
3001
  onOpen: r
3002
3002
  }, {
3003
3003
  "header-btn": x(() => [
3004
- g(R, {
3004
+ p(R, {
3005
3005
  color: "transparent",
3006
3006
  onClick: i
3007
3007
  }, {
3008
3008
  default: x(() => [
3009
- g(b)
3009
+ p(b)
3010
3010
  ]),
3011
3011
  _: 1
3012
3012
  }),
3013
- g(R, {
3013
+ p(R, {
3014
3014
  color: "transparent",
3015
3015
  onClick: c
3016
3016
  }, {
3017
3017
  default: x(() => [
3018
- g(h, { class: "size-4 text-gray-500" })
3018
+ p(h, { class: "size-4 text-gray-500" })
3019
3019
  ]),
3020
3020
  _: 1
3021
3021
  })
@@ -3023,13 +3023,13 @@ const ri = ne({ name: "ri-file-copy2-line", render: ii }), di = { class: "flex-a
3023
3023
  default: x(() => [
3024
3024
  l("div", fi, [
3025
3025
  l("div", vi, [
3026
- l("h3", pi, [
3026
+ l("h3", gi, [
3027
3027
  M(f.$slots, "dialog-name", ae(oe(s)), () => [
3028
3028
  A(w(s.name), 1)
3029
3029
  ])
3030
3030
  ]),
3031
3031
  M(f.$slots, "dialog", ae(oe(s))),
3032
- l("p", gi, [
3032
+ l("p", pi, [
3033
3033
  M(f.$slots, "dialog-value", ae(oe(s)), () => [
3034
3034
  A(w(s.valueTo || s.value), 1)
3035
3035
  ])
@@ -3091,13 +3091,13 @@ const bi = ne({ name: "ri-shut-down-line", render: yi }), xi = { class: "flex ju
3091
3091
  ]),
3092
3092
  header: x((r) => [
3093
3093
  l("div", xi, [
3094
- g(R, q(n(r), {
3094
+ p(R, q(n(r), {
3095
3095
  type: "icon",
3096
3096
  class: s.value ? "text-amber-500" : "text-gray-500",
3097
3097
  onClick: te(o, ["stop"])
3098
3098
  }), {
3099
3099
  default: x(() => [
3100
- g(u, { class: "size-8" })
3100
+ p(u, { class: "size-8" })
3101
3101
  ]),
3102
3102
  _: 1
3103
3103
  }, 16, ["class"])
@@ -3105,13 +3105,13 @@ const bi = ne({ name: "ri-shut-down-line", render: yi }), xi = { class: "flex ju
3105
3105
  ]),
3106
3106
  dialog: x((r) => [
3107
3107
  l("div", ki, [
3108
- g(R, q(n(r), {
3108
+ p(R, q(n(r), {
3109
3109
  type: "icon",
3110
3110
  class: ["size-18", s.value ? "text-amber-500" : "text-gray-500"],
3111
3111
  onClick: te(o, ["stop"])
3112
3112
  }), {
3113
3113
  default: x(() => [
3114
- g(u, { class: "size-16" })
3114
+ p(u, { class: "size-16" })
3115
3115
  ]),
3116
3116
  _: 1
3117
3117
  }, 16, ["class"])
@@ -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: p } = f;
3163
- return { label: r, modelValue: o(d), disabled: p };
3162
+ const { disabled: g } = f;
3163
+ return { label: r, modelValue: o(d), disabled: g };
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,29 +3169,29 @@ 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] = (p) => a("click", p)),
3173
- onEdit: d[1] || (d[1] = (p) => a("edit", p)),
3174
- onClone: d[2] || (d[2] = (p) => a("clone", p))
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))
3175
3175
  }), {
3176
- icon: x((p) => [
3177
- M(r.$slots, "icon", ae(oe(p)))
3176
+ icon: x((g) => [
3177
+ M(r.$slots, "icon", ae(oe(g)))
3178
3178
  ]),
3179
- header: x((p) => [
3179
+ header: x((g) => [
3180
3180
  l("div", null, [
3181
- g(R, {
3181
+ p(R, {
3182
3182
  type: "icon",
3183
3183
  class: "text-gray-500",
3184
3184
  onClick: te(u, ["stop"])
3185
3185
  }, {
3186
3186
  default: x(() => [
3187
- g(f, { class: "size-7" })
3187
+ p(f, { class: "size-7" })
3188
3188
  ]),
3189
3189
  _: 1
3190
3190
  }),
3191
- g(ie, q({
3191
+ p(ie, q({
3192
3192
  ref_key: "time",
3193
3193
  ref: n
3194
- }, c(p), {
3194
+ }, c(g), {
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((p) => [
3202
+ dialog: x((g) => [
3203
3203
  l("div", Ci, [
3204
- g(ie, q(c(p), {
3204
+ p(ie, q(c(g), {
3205
3205
  type: "datetime-local",
3206
3206
  onChange: i
3207
3207
  }), null, 16)
@@ -3240,25 +3240,25 @@ 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: p = 0, max: b = 255, step: h = 1, disabled: $ } = f || {};
3244
- return { min: p, max: b, step: h, value: d, disabled: !!$, class: $ ? "" : "cursor-pointer" };
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" };
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] = (p) => a("click", p)),
3250
- onEdit: f[1] || (f[1] = (p) => a("edit", p)),
3251
- onClone: f[2] || (f[2] = (p) => a("clone", p))
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))
3252
3252
  }), {
3253
- icon: x((p) => [
3254
- M(d.$slots, "icon", ae(oe(p)))
3253
+ icon: x((g) => [
3254
+ M(d.$slots, "icon", ae(oe(g)))
3255
3255
  ]),
3256
- header: x((p) => [
3256
+ header: x((g) => [
3257
3257
  l("div", Si, [
3258
3258
  l("div", zi, [
3259
- g(R, q(c(p), {
3259
+ p(R, q(c(g), {
3260
3260
  type: "icon",
3261
- onClick: te((b) => r(p), ["stop"])
3261
+ onClick: te((b) => r(g), ["stop"])
3262
3262
  }), {
3263
3263
  default: x(() => [
3264
3264
  l("div", Ti, [
@@ -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(p),
3281
+ "stroke-dashoffset": i(g),
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((p) => [
3293
+ dialog: x((g) => [
3294
3294
  l("div", {
3295
- class: j(["flex justify-center relative mx-2 my-6", c(p).disabled ? "opacity-40" : ""])
3295
+ class: j(["flex justify-center relative mx-2 my-6", c(g).disabled ? "opacity-40" : ""])
3296
3296
  }, [
3297
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)),
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(p)}%`)
3300
+ style: Me(`width: ${o(g)}%`)
3301
3301
  }, null, 4),
3302
- l("div", Bi, w(o(p)) + " %", 1),
3303
- l("input", q({ type: "range" }, c(p), {
3302
+ l("div", Bi, w(o(g)) + " %", 1),
3303
+ l("input", q({ type: "range" }, c(g), {
3304
3304
  class: "w-full h-10 z-10 appearance-none opacity-0",
3305
3305
  onChange: u
3306
3306
  }), null, 16)
@@ -3385,7 +3385,7 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3385
3385
  ]),
3386
3386
  dialog: x((d) => [
3387
3387
  l("div", Ei, [
3388
- g(ie, q({
3388
+ p(ie, q({
3389
3389
  modelValue: n.value,
3390
3390
  "onUpdate:modelValue": u[0] || (u[0] = (f) => n.value = f)
3391
3391
  }, o(d), {
@@ -3393,7 +3393,7 @@ const _i = ne({ name: "ri-time-line", render: wi }), Ci = { class: "flex justify
3393
3393
  onBlur: i
3394
3394
  }), {
3395
3395
  icon: x(() => [
3396
- g(r, { class: "size-8" })
3396
+ p(r, { class: "size-8" })
3397
3397
  ]),
3398
3398
  _: 1
3399
3399
  }, 16, ["modelValue"])
@@ -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, p = ((b = d.find((h) => h.value == u)) == null ? void 0 : b.name) || u;
3445
- return { label: c, modelValue: p, items: d, disabled: !!f };
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 };
3446
3446
  };
3447
3447
  return (c, u) => {
3448
3448
  const r = Ii;
@@ -3465,20 +3465,20 @@ const Ii = ne({ name: "ri-list-check", render: Li }), Oi = { class: "flex justif
3465
3465
  onClick: u[0] || (u[0] = te(() => {
3466
3466
  }, ["prevent", "stop"]))
3467
3467
  }, [
3468
- g(he, q(i(d), {
3468
+ p(he, q(i(d), {
3469
3469
  "is-popup": "",
3470
3470
  top: "0",
3471
3471
  left: "-115px",
3472
3472
  onChange: n
3473
3473
  }), {
3474
3474
  activator: x(({ on: f }) => [
3475
- g(R, {
3475
+ p(R, {
3476
3476
  type: "icon",
3477
3477
  class: "text-gray-500",
3478
3478
  onClick: te(f.click, ["stop"])
3479
3479
  }, {
3480
3480
  default: x(() => [
3481
- g(r, { class: "size-6" })
3481
+ p(r, { class: "size-6" })
3482
3482
  ]),
3483
3483
  _: 1
3484
3484
  }, 8, ["onClick"])
@@ -3489,7 +3489,7 @@ const Ii = ne({ name: "ri-list-check", render: Li }), Oi = { class: "flex justif
3489
3489
  ]),
3490
3490
  dialog: x((d) => [
3491
3491
  l("div", Oi, [
3492
- g(he, q(i(d), {
3492
+ p(he, q(i(d), {
3493
3493
  top: "-50%",
3494
3494
  left: "50%",
3495
3495
  onChange: n
@@ -3523,7 +3523,7 @@ 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-primary/10 text-primary" : "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-500 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
  };
@@ -3563,7 +3563,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3563
3563
  key: d,
3564
3564
  class: "tab-panel"
3565
3565
  }, [
3566
- g(kt, {
3566
+ p(kt, {
3567
3567
  "enter-active-class": "transition-all duration-300 ease-out",
3568
3568
  "enter-from-class": "transform opacity-0 translate-x-2",
3569
3569
  "enter-to-class": "transform opacity-100 translate-x-0",
@@ -3602,10 +3602,10 @@ 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(--accent-blue)] disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15",
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",
3606
3606
  onChange: a
3607
3607
  }, null, 40, Wi),
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(--accent-blue)] opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 dark:text-white" }, [
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" }, [
3609
3609
  l("svg", {
3610
3610
  class: "h-3.5 w-3.5",
3611
3611
  viewBox: "0 0 20 20",
@@ -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
- }, p = (h) => {
3653
+ }, g = (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;
@@ -3662,7 +3662,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3662
3662
  const O = Pe, F = ct;
3663
3663
  return m(), v("div", Xi, [
3664
3664
  l("div", qi, [
3665
- g(Ji, {
3665
+ p(Ji, {
3666
3666
  modelValue: e.disabled,
3667
3667
  "onUpdate:modelValue": $[0] || ($[0] = (B) => u("disabled", B ? 1 : 0))
3668
3668
  }, {
@@ -3673,17 +3673,17 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3673
3673
  }, 8, ["modelValue"])
3674
3674
  ]),
3675
3675
  c("dimmer") ? (m(), v("div", Yi, [
3676
- g(ie, {
3676
+ p(ie, {
3677
3677
  modelValue: e.min,
3678
3678
  label: "Min",
3679
3679
  "onUpdate:modelValue": $[1] || ($[1] = (B) => u("min", +B))
3680
3680
  }, null, 8, ["modelValue"]),
3681
- g(ie, {
3681
+ p(ie, {
3682
3682
  modelValue: e.max,
3683
3683
  label: "Max",
3684
3684
  "onUpdate:modelValue": $[2] || ($[2] = (B) => u("max", +B))
3685
3685
  }, null, 8, ["modelValue"]),
3686
- g(ie, {
3686
+ p(ie, {
3687
3687
  modelValue: e.step,
3688
3688
  label: "Step",
3689
3689
  "onUpdate:modelValue": $[3] || ($[3] = (B) => u("step", +B))
@@ -3691,7 +3691,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3691
3691
  ])) : T("", !0),
3692
3692
  c("list") ? (m(), v("div", Zi, [
3693
3693
  l("div", Qi, [
3694
- g(ie, {
3694
+ p(ie, {
3695
3695
  modelValue: n.value.name,
3696
3696
  "onUpdate:modelValue": [
3697
3697
  $[4] || ($[4] = (B) => n.value.name = B),
@@ -3700,7 +3700,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3700
3700
  disabled: i.value,
3701
3701
  label: "Name"
3702
3702
  }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"]),
3703
- g(ie, {
3703
+ p(ie, {
3704
3704
  modelValue: n.value.value,
3705
3705
  "onUpdate:modelValue": [
3706
3706
  $[5] || ($[5] = (B) => n.value.value = B),
@@ -3711,7 +3711,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3711
3711
  }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
3712
3712
  ]),
3713
3713
  l("div", er, [
3714
- g(he, {
3714
+ p(he, {
3715
3715
  "model-value": n.value.value,
3716
3716
  label: "List",
3717
3717
  items: a.value,
@@ -3724,21 +3724,21 @@ 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) => p(B), ["prevent", "stop"])
3727
+ onClick: te((X) => g(B), ["prevent", "stop"])
3728
3728
  }, [
3729
- g(O)
3729
+ p(O)
3730
3730
  ], 8, nr)
3731
3731
  ])
3732
3732
  ]),
3733
3733
  _: 1
3734
3734
  }, 8, ["model-value", "items"]),
3735
- g(R, {
3735
+ p(R, {
3736
3736
  class: "px-4",
3737
3737
  color: "blue",
3738
3738
  onClick: f
3739
3739
  }, {
3740
3740
  default: x(() => [
3741
- g(F)
3741
+ p(F)
3742
3742
  ]),
3743
3743
  _: 1
3744
3744
  })
@@ -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"], pr = { class: "flex justify-center order-0 md:order-1" }, gr = { 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" }, 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({
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
- }), p = ({ value: C }) => n.value.icon = C, b = ({ value: C }) => {
3784
+ }), g = ({ 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) => {
@@ -3803,14 +3803,14 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3803
3803
  return m(), v("div", sr, [
3804
3804
  l("div", ar, [
3805
3805
  l("div", or, [
3806
- g(Ki, {
3806
+ p(Ki, {
3807
3807
  class: "flex-auto min-h-75",
3808
3808
  value: 0,
3809
3809
  items: a
3810
3810
  }, {
3811
3811
  "tab-0": x(() => [
3812
3812
  l("div", ir, [
3813
- g(ie, {
3813
+ p(ie, {
3814
3814
  modelValue: n.value.id,
3815
3815
  "onUpdate:modelValue": V[0] || (V[0] = (K) => n.value.id = K),
3816
3816
  label: "ID",
@@ -3819,12 +3819,12 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3819
3819
  r.value ? void 0 : {
3820
3820
  name: "icon",
3821
3821
  fn: x(() => [
3822
- g(R, {
3822
+ p(R, {
3823
3823
  color: "transparent",
3824
3824
  onClick: X
3825
3825
  }, {
3826
3826
  default: x(() => [
3827
- g(Ve)
3827
+ p(Ve)
3828
3828
  ]),
3829
3829
  _: 1
3830
3830
  })
@@ -3832,20 +3832,20 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3832
3832
  key: "0"
3833
3833
  }
3834
3834
  ]), 1032, ["modelValue", "message"]),
3835
- g(ie, {
3835
+ p(ie, {
3836
3836
  modelValue: n.value.name,
3837
3837
  "onUpdate:modelValue": V[1] || (V[1] = (K) => n.value.name = K),
3838
3838
  label: "Name"
3839
3839
  }, null, 8, ["modelValue"]),
3840
3840
  l("div", rr, [
3841
- g(he, {
3841
+ p(he, {
3842
3842
  "model-value": n.value.icon,
3843
3843
  bottom: "0",
3844
3844
  top: "unset",
3845
3845
  label: "Icon",
3846
3846
  class: "mb-6",
3847
3847
  items: e.listIcons,
3848
- onChange: p
3848
+ onChange: g
3849
3849
  }, {
3850
3850
  item: x(({ item: K }) => [
3851
3851
  l("div", dr, [
@@ -3857,7 +3857,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3857
3857
  ]),
3858
3858
  _: 3
3859
3859
  }, 8, ["model-value", "items"]),
3860
- g(he, {
3860
+ p(he, {
3861
3861
  "model-value": n.value.type,
3862
3862
  bottom: "0",
3863
3863
  top: "unset",
@@ -3870,7 +3870,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3870
3870
  ]),
3871
3871
  "tab-1": x(() => [
3872
3872
  l("div", cr, [
3873
- g(zt, {
3873
+ p(zt, {
3874
3874
  active: !!n.value.args.length,
3875
3875
  disabled: d.value,
3876
3876
  label: "Arguments",
@@ -3890,14 +3890,14 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3890
3890
  class: "ms-1 shrink-0 cursor-pointer text-gray-400 transition hover:text-rose-500",
3891
3891
  onClick: (Ue) => O(K)
3892
3892
  }, [
3893
- g(re, { class: "size-5" })
3893
+ p(re, { class: "size-5" })
3894
3894
  ], 8, vr)) : T("", !0)
3895
3895
  ]))), 128))
3896
3896
  ])
3897
3897
  ]),
3898
3898
  _: 1
3899
3899
  }, 8, ["active", "disabled"]),
3900
- g(Xe, {
3900
+ p(Xe, {
3901
3901
  value: n.value.set,
3902
3902
  args: n.value.args,
3903
3903
  prefix: ["v"],
@@ -3908,7 +3908,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3908
3908
  onIcon: V[3] || (V[3] = (K) => h("set")),
3909
3909
  onChange: V[4] || (V[4] = (K) => B("set", K))
3910
3910
  }, null, 8, ["value", "args", "prefix-titles", "argument-title", "disabled"]),
3911
- g(Xe, {
3911
+ p(Xe, {
3912
3912
  value: n.value.get,
3913
3913
  args: n.value.args,
3914
3914
  "argument-title": C.$t("dashboard.argument"),
@@ -3917,7 +3917,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3917
3917
  onIcon: V[5] || (V[5] = (K) => h("get")),
3918
3918
  onChange: V[6] || (V[6] = (K) => B("get", K))
3919
3919
  }, null, 8, ["value", "args", "argument-title", "disabled"]),
3920
- g(Xe, {
3920
+ p(Xe, {
3921
3921
  value: n.value.getTo,
3922
3922
  args: n.value.args,
3923
3923
  prefix: ["v"],
@@ -3931,7 +3931,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3931
3931
  ])
3932
3932
  ]),
3933
3933
  "tab-2": x(() => [
3934
- g(lr, q(n.value.opts, {
3934
+ p(lr, q(n.value.opts, {
3935
3935
  value: n.value.value,
3936
3936
  type: n.value.type,
3937
3937
  onUpdate: ve
@@ -3940,14 +3940,14 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3940
3940
  _: 3
3941
3941
  })
3942
3942
  ]),
3943
- l("div", pr, [
3944
- l("div", gr, [
3943
+ l("div", gr, [
3944
+ l("div", pr, [
3945
3945
  M(C.$slots, "default", { item: n.value })
3946
3946
  ])
3947
3947
  ])
3948
3948
  ]),
3949
3949
  l("div", hr, [
3950
- g(R, {
3950
+ p(R, {
3951
3951
  class: "px-4",
3952
3952
  color: "blue",
3953
3953
  disabled: f.value,
@@ -3958,7 +3958,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3958
3958
  ]),
3959
3959
  _: 1
3960
3960
  }, 8, ["disabled"]),
3961
- g(R, {
3961
+ p(R, {
3962
3962
  class: "px-4",
3963
3963
  color: "red",
3964
3964
  outline: "",
@@ -3978,7 +3978,7 @@ const ji = ne({ name: "ri-menu-search-line", render: Di }), Ri = { class: "glass
3978
3978
  }, {
3979
3979
  default: x(() => [
3980
3980
  l("div", yr, [
3981
- g(St, {
3981
+ p(St, {
3982
3982
  items: e.object,
3983
3983
  onlyValue: !r.value,
3984
3984
  onClick: F
@@ -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, p = f != null && o != null && f - o <= s;
4090
- if (o = f ?? null, p) return void (a[n] = c);
4089
+ const f = u.timeStamp, g = f != null && o != null && f - o <= s;
4090
+ if (o = f ?? null, g) return void (a[n] = c);
4091
4091
  i(c);
4092
4092
  }
4093
4093
  };
@@ -4116,14 +4116,14 @@ 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), p = a + 1;
4119
+ const f = s.slice(0, c) + ";" + s.slice(c), g = a + 1;
4120
4120
  return {
4121
4121
  value: f,
4122
- selectionStart: p,
4123
- selectionEnd: p
4122
+ selectionStart: g,
4123
+ selectionEnd: g
4124
4124
  };
4125
4125
  };
4126
- let Bt = [], ce = null, se = 0, be = [], Ee = null, De = null, Et, un, ge = null, Ne = null;
4126
+ let Bt = [], ce = null, se = 0, be = [], Ee = null, De = null, Et, un, pe = null, Ne = null;
4127
4127
  const Tr = (e) => {
4128
4128
  const { customSuggestions: t = [], minPrefixLength: s = 1, maxSuggestions: a = 20, tabSize: n = 2, tooltip: o = { enabled: !0 }, i18n: i, renderMenu: c, renderTooltip: u } = e;
4129
4129
  if (!c || !u)
@@ -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: p } = r, b = d.target;
4134
+ const { value: f, selectionStart: g } = 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", () => {
@@ -4144,13 +4144,13 @@ const Tr = (e) => {
4144
4144
  return d.preventDefault(), se > 0 && (se--, je()), { ...r };
4145
4145
  case "Enter":
4146
4146
  if (d.preventDefault(), be[se]) {
4147
- const h = gt(r, be[se]);
4147
+ const h = pt(r, be[se]);
4148
4148
  return we(), h;
4149
4149
  }
4150
4150
  return;
4151
4151
  case "Tab":
4152
4152
  if (d.preventDefault(), be[se]) {
4153
- const h = gt(r, be[se]);
4153
+ const h = pt(r, be[se]);
4154
4154
  return we(), h;
4155
4155
  }
4156
4156
  return;
@@ -4163,7 +4163,7 @@ const Tr = (e) => {
4163
4163
  if (F.length < s)
4164
4164
  we();
4165
4165
  else {
4166
- const B = pt(F).slice(0, a);
4166
+ const B = gt(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, p), $ = f.slice(h, p);
4178
+ const h = it(f, g), $ = f.slice(h, g);
4179
4179
  if ($.length > 0) {
4180
- const X = pt($);
4180
+ const X = gt($);
4181
4181
  if (X.length > 0)
4182
- return gt(r, X[0]);
4182
+ return pt(r, X[0]);
4183
4183
  }
4184
- const O = " ".repeat(n), F = f.slice(0, p) + O + f.slice(p), B = p + n;
4184
+ const O = " ".repeat(n), F = f.slice(0, g) + O + f.slice(g), B = g + 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 = pt(F);
4199
+ let B = gt(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 pt(e) {
4208
+ function gt(e) {
4209
4209
  const t = e.toLowerCase();
4210
4210
  return Bt.filter((s) => {
4211
4211
  const a = s.label.toLowerCase();
@@ -4248,7 +4248,7 @@ function je() {
4248
4248
  zIndex: "10000"
4249
4249
  });
4250
4250
  }
4251
- function gt(e, t) {
4251
+ function pt(e, t) {
4252
4252
  const { value: s, selectionStart: a } = e, n = it(s, a), o = t.insert || t.label, i = /\$\{([^}]*)\}/g;
4253
4253
  let c = o;
4254
4254
  const u = [];
@@ -4259,18 +4259,18 @@ function gt(e, t) {
4259
4259
  }
4260
4260
  c = o.replace(/\$\{([^}]*)\}/g, "$1");
4261
4261
  const d = u[0];
4262
- let f = n + c.length, p = n + c.length;
4262
+ let f = n + c.length, g = 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, p = n + h, O = !0)) : (h++, $++);
4267
+ F ? (h += F.text.length, $ += F.length, F === d && (f = n + h - F.text.length, g = 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: p
4273
+ selectionEnd: g
4274
4274
  };
4275
4275
  }
4276
4276
  function we() {
@@ -4302,19 +4302,19 @@ function Ht(e) {
4302
4302
  return;
4303
4303
  }
4304
4304
  const o = mn(e), i = un(n, o);
4305
- i.style.opacity = "0", ge && ge.remove(), ge = i, document.body.appendChild(ge), requestAnimationFrame(() => {
4306
- ge && (ge.style.opacity = "1");
4305
+ i.style.opacity = "0", pe && pe.remove(), pe = i, document.body.appendChild(pe), requestAnimationFrame(() => {
4306
+ pe && (pe.style.opacity = "1");
4307
4307
  }), setTimeout(() => Je(), 3e3);
4308
4308
  }, 300);
4309
4309
  }
4310
4310
  function Je() {
4311
- Ne && (clearTimeout(Ne), Ne = null), ge && (ge.style.opacity = "0", setTimeout(() => {
4312
- ge && (ge.remove(), ge = null);
4311
+ Ne && (clearTimeout(Ne), Ne = null), pe && (pe.style.opacity = "0", setTimeout(() => {
4312
+ pe && (pe.remove(), pe = null);
4313
4313
  }, 150));
4314
4314
  }
4315
4315
  typeof document < "u" && document.addEventListener("mousedown", (e) => {
4316
4316
  const t = e.target;
4317
- ce && !ce.contains(t) && we(), ge && !ge.contains(t) && Je();
4317
+ ce && !ce.contains(t) && we(), pe && !pe.contains(t) && Je();
4318
4318
  });
4319
4319
  const ht = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Vr = ["else", "end", "call", "fade"], Br = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Er = (e) => {
4320
4320
  const t = e.filter((c) => c.type !== "var").map((c) => c.label), i = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...Vr, ...t])).map(Br).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
@@ -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, p, b] = o;
4326
+ const [i, c, u, r, d, f, g, b] = o;
4327
4327
  let h = "";
4328
- c ? h = "comment" : u ? h = "str" : r ? h = "num" : d ? h = "word" : f ? h = "var" : p ? 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" : 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;
4329
4329
  }
4330
4330
  return a += ht(t.slice(n)), a;
4331
4331
  }, fn = {
@@ -4490,19 +4490,19 @@ end;`, detail: "event(name: string)" },
4490
4490
  }), d(window.marked);
4491
4491
  return;
4492
4492
  }
4493
- const p = document.createElement("script");
4494
- p.src = Hr, p.async = !0, p.onload = () => {
4493
+ const g = document.createElement("script");
4494
+ g.src = Hr, g.async = !0, g.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
- }, p.onerror = () => {
4500
+ }, g.onerror = () => {
4501
4501
  f(new Error("Failed to load Marked library from CDN"));
4502
- }, document.head.appendChild(p);
4502
+ }, document.head.appendChild(g);
4503
4503
  }), u = (d) => {
4504
4504
  const f = d.split(`
4505
- `), p = {};
4505
+ `), g = {};
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") && (p.version = O), ($.toLowerCase().includes("обновлено") || $.toLowerCase().includes("updated")) && (p.updated = O));
4514
+ $ && O && ($.toLowerCase().includes("version") && (g.version = O), ($.toLowerCase().includes("обновлено") || $.toLowerCase().includes("updated")) && (g.updated = O));
4515
4515
  }
4516
4516
  }
4517
- return p;
4517
+ return g;
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`, p = await fetch(f);
4526
- if (!p.ok)
4527
- throw new Error(`HTTP ${p.status}: ${p.statusText}`);
4528
- const b = await p.text();
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();
4529
4529
  t.value = b, a.value = u(b), s.value = i.parse(b);
4530
4530
  } catch (f) {
4531
- const p = f instanceof Error ? f.message : "";
4532
- o.value = p, console.error("Error loading docs:", f);
4531
+ const g = f instanceof Error ? f.message : "";
4532
+ o.value = g, console.error("Error loading docs:", f);
4533
4533
  } finally {
4534
4534
  n.value = !1;
4535
4535
  }
@@ -4573,16 +4573,16 @@ end;`, detail: "event(name: string)" },
4573
4573
  return ke(() => {
4574
4574
  e.idScript || (i.value = "boot");
4575
4575
  }), (d, f) => {
4576
- const p = ie, b = R;
4576
+ const g = ie, b = R;
4577
4577
  return m(), v("div", Ur, [
4578
- g(p, q({
4578
+ p(g, 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), {
4582
4582
  disabled: !e.idScript,
4583
4583
  label: d.$t("name")
4584
4584
  }), null, 16, ["modelValue", "disabled", "label"]),
4585
- g(b, {
4585
+ p(b, {
4586
4586
  class: "w-full",
4587
4587
  color: "blue",
4588
4588
  disabled: !J(o),
@@ -4641,7 +4641,7 @@ end;`, detail: "event(name: string)" },
4641
4641
  "aria-label": e.label,
4642
4642
  onClick: i
4643
4643
  }, [
4644
- g(Q, {
4644
+ p(Q, {
4645
4645
  name: "search",
4646
4646
  size: 17
4647
4647
  }),
@@ -4655,13 +4655,13 @@ end;`, detail: "event(name: string)" },
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-[#0b1235]/95",
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",
4659
4659
  role: "dialog",
4660
4660
  "aria-modal": "true",
4661
4661
  "aria-label": e.dialogLabel
4662
4662
  }, [
4663
4663
  l("div", Jr, [
4664
- g(Q, {
4664
+ p(Q, {
4665
4665
  name: "search",
4666
4666
  size: 18,
4667
4667
  class: "shrink-0 text-gray-400"
@@ -4685,7 +4685,7 @@ end;`, detail: "event(name: string)" },
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",
4686
4686
  onClick: c
4687
4687
  }, [
4688
- g(Q, {
4688
+ p(Q, {
4689
4689
  name: "arrowRight",
4690
4690
  size: 16,
4691
4691
  class: "mt-0.5 shrink-0 text-gray-400"
@@ -4726,7 +4726,7 @@ end;`, detail: "event(name: string)" },
4726
4726
  title: t.value === "dark" ? e.titleLight : e.titleDark,
4727
4727
  onClick: n[0] || (n[0] = (o) => s(t.value === "dark" ? "light" : "dark"))
4728
4728
  }, [
4729
- g(Q, {
4729
+ p(Q, {
4730
4730
  name: t.value === "dark" ? "sun" : "moon",
4731
4731
  size: 18
4732
4732
  }, null, 8, ["name"])
@@ -4751,7 +4751,7 @@ end;`, detail: "event(name: string)" },
4751
4751
  "hide-on-click": ""
4752
4752
  }), {
4753
4753
  activator: x(({ on: c }) => [
4754
- g(ie, {
4754
+ p(ie, {
4755
4755
  "model-value": e.modelValue,
4756
4756
  name: e.name,
4757
4757
  message: e.message,
@@ -4761,7 +4761,7 @@ end;`, detail: "event(name: string)" },
4761
4761
  }, null, 8, ["model-value", "name", "message", "label", "onClick"])
4762
4762
  ]),
4763
4763
  default: x(({ on: c, isLgOrLarger: u }) => [
4764
- g(_t, {
4764
+ p(_t, {
4765
4765
  items: e.items,
4766
4766
  plain: !u,
4767
4767
  onClick: (r) => n(c, r)
@@ -4821,7 +4821,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4821
4821
  l("div", {
4822
4822
  class: j(["transition text-gray-400", { "rotate-x-180": s.value }])
4823
4823
  }, [
4824
- g(c, { class: "size-6" })
4824
+ p(c, { class: "size-6" })
4825
4825
  ], 2)
4826
4826
  ]),
4827
4827
  l("div", rd, [
@@ -4846,28 +4846,28 @@ 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, p, b) => {
4850
- a.value = p, n.value = b, f.dataTransfer.effectAllowed = "move";
4849
+ }), c = (f, g, b) => {
4850
+ a.value = g, 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 p = e.items.findIndex((h) => h[e.itemKey] === a.value), b = o.value;
4858
- if (p !== b && b !== -1) {
4859
- const h = [...e.items], [$] = h.splice(p, 1);
4860
- h.splice(b, 0, $), s("update:items", h), s("order-change", { fromIndex: p, toIndex: b, movedItem: $, newOrder: h });
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 });
4861
4861
  }
4862
4862
  }
4863
4863
  o.value = -1;
4864
4864
  };
4865
- return (f, p) => (m(), v("div", {
4866
- onDragover: p[1] || (p[1] = te(() => {
4865
+ return (f, g) => (m(), v("div", {
4866
+ onDragover: g[1] || (g[1] = te(() => {
4867
4867
  }, ["prevent"])),
4868
4868
  onDrop: d
4869
4869
  }, [
4870
- g(Kt, {
4870
+ p(Kt, {
4871
4871
  "enter-active-class": "transition-all duration-300 ease",
4872
4872
  "enter-from-class": "opacity-0 translate-x-8",
4873
4873
  "enter-to-class": "opacity-100 translate-x-0",
@@ -4884,7 +4884,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4884
4884
  onDragstart: ($) => c($, b.id, h),
4885
4885
  onDragenter: ($) => u(h),
4886
4886
  onDragend: r,
4887
- onDragover: p[0] || (p[0] = te(() => {
4887
+ onDragover: g[0] || (g[0] = te(() => {
4888
4888
  }, ["prevent"]))
4889
4889
  }, [
4890
4890
  M(f.$slots, "default", {
@@ -4900,7 +4900,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
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" }, pd = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, gd = { 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" }, 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 = {
4904
4904
  class: "py-3 whitespace-nowrap",
4905
4905
  colspan: "9"
4906
4906
  }, $d = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, cc = /* @__PURE__ */ E({
@@ -4915,7 +4915,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4915
4915
  return (i, c) => (m(), v("div", md, [
4916
4916
  l("table", fd, [
4917
4917
  l("thead", vd, [
4918
- l("tr", pd, [
4918
+ l("tr", gd, [
4919
4919
  (m(!0), v(D, null, H(e.headers, (u, r) => (m(), v("th", {
4920
4920
  key: r,
4921
4921
  class: j(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", n(u)])
@@ -4924,7 +4924,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4924
4924
  item: u,
4925
4925
  i: r
4926
4926
  }, () => [
4927
- l("div", gd, w(u.name), 1)
4927
+ l("div", pd, w(u.name), 1)
4928
4928
  ])
4929
4929
  ], 2))), 128))
4930
4930
  ])
@@ -4932,7 +4932,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4932
4932
  l("tbody", hd, [
4933
4933
  e.items.length ? (m(!0), v(D, { key: 0 }, H(e.items, (u, r) => (m(), v("tr", {
4934
4934
  key: r,
4935
- class: "transition-colors hover:bg-primary/[0.04] dark:hover:bg-white/[0.04]",
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
4938
  (m(!0), v(D, null, H(e.headers, (d, f) => (m(), v("td", {
@@ -4985,7 +4985,7 @@ const id = ne({ name: "ri-arrow-drop-down-line", render: od }), rd = { class: "v
4985
4985
  }, [
4986
4986
  M(o.$slots, "activator")
4987
4987
  ]),
4988
- g(kt, {
4988
+ p(kt, {
4989
4989
  "enter-active-class": "duration-300 ease-out",
4990
4990
  "enter-from-class": "transform opacity-0 -translate-y-2",
4991
4991
  "enter-to-class": "opacity-100 translate-y-0",
@@ -5028,7 +5028,7 @@ export {
5028
5028
  Qd as CardInput,
5029
5029
  ec as CardList,
5030
5030
  Tn as CardMain,
5031
- gl as CardNotification,
5031
+ pl as CardNotification,
5032
5032
  Tt as DEFAULT_METRIC_STYLE,
5033
5033
  Or as DEFAULT_SUGGESTIONS,
5034
5034
  Wd as EnergyFlowBlock,