vuesp-components 2.3.2 → 2.4.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.
Files changed (33) hide show
  1. package/README.md +0 -10
  2. package/dist/{VDialog.vue_vue_type_script_setup_true_lang-CB1kfyUa.js → VDialog.vue_vue_type_script_setup_true_lang-B-VlZkin.js} +410 -318
  3. package/dist/components/card/main/CardMain.vue.d.ts.map +1 -1
  4. package/dist/components/card/main/types.d.ts +3 -2
  5. package/dist/components/card/main/types.d.ts.map +1 -1
  6. package/dist/components/dashboard/cards/CardDate.vue.d.ts +6 -0
  7. package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
  8. package/dist/components/index.es.js +692 -807
  9. package/dist/components/ui/button/VButton.vue.d.ts.map +1 -1
  10. package/dist/components/ui/button/types.d.ts.map +1 -1
  11. package/dist/components/ui/dialog/VDialog.vue.d.ts.map +1 -1
  12. package/dist/components/ui/index.d.ts +1 -3
  13. package/dist/components/ui/index.d.ts.map +1 -1
  14. package/dist/components/ui/loader/VLoader.vue.d.ts +2 -1
  15. package/dist/components/ui/loader/VLoader.vue.d.ts.map +1 -1
  16. package/dist/components/ui/loader/types.d.ts +3 -0
  17. package/dist/components/ui/loader/types.d.ts.map +1 -1
  18. package/dist/components/ui/tabs/types.d.ts +1 -0
  19. package/dist/components/ui/tabs/types.d.ts.map +1 -1
  20. package/dist/components/ui/text-field/VTextField.vue.d.ts.map +1 -1
  21. package/dist/components/ui/text-field/types.d.ts +3 -0
  22. package/dist/components/ui/text-field/types.d.ts.map +1 -1
  23. package/dist/components/ui/vision/VisionSearch.vue.d.ts +9 -1
  24. package/dist/components/ui/vision/VisionSearch.vue.d.ts.map +1 -1
  25. package/dist/components/ui/vision/VisionThemeToggle.vue.d.ts +12 -1
  26. package/dist/components/ui/vision/VisionThemeToggle.vue.d.ts.map +1 -1
  27. package/dist/index.es.js +3 -3
  28. package/dist/style.css +1 -1
  29. package/package.json +1 -1
  30. package/dist/components/ui/vision/VisionCard.vue.d.ts +0 -21
  31. package/dist/components/ui/vision/VisionCard.vue.d.ts.map +0 -1
  32. package/dist/components/ui/vision/VisionInput.vue.d.ts +0 -19
  33. package/dist/components/ui/vision/VisionInput.vue.d.ts.map +0 -1
@@ -1,12 +1,12 @@
1
- import { defineComponent as M, resolveComponent as Ae, openBlock as p, createElementBlock as v, Fragment as L, createCommentVNode as z, createElementVNode as o, normalizeClass as T, createVNode as g, withCtx as x, createBlock as I, renderSlot as k, markRaw as O, computed as B, withModifiers as F, toDisplayString as _, unref as q, TransitionGroup as De, renderList as N, mergeProps as j, ref as E, watch as oe, resolveDynamicComponent as me, Transition as ke, normalizeStyle as ve, createTextVNode as H, normalizeProps as K, guardReactiveProps as R, onMounted as Q, onUnmounted as we, reactive as nt, useTemplateRef as Ie, withDirectives as he, vShow as st, vModelText as He, createSlots as lt, isRef as ot, useModel as at, vModelDynamic as it, mergeModels as rt, Teleport as dt, nextTick as je } from "vue";
2
- import { a as ct, V as Pe, j as A, h as Ne, g as Ce, k as ce, l as ut, d as mt, i as pt, e as le, _ as Oe, f as J } from "../VDialog.vue_vue_type_script_setup_true_lang-CB1kfyUa.js";
3
- import { b as qa, m as Ga } from "../VDialog.vue_vue_type_script_setup_true_lang-CB1kfyUa.js";
4
- import { f as ft, t as vt, g as ht, u as pe, s as gt, d as bt, m as xt, c as yt } from "../app-B45sALrX.js";
5
- import { d as Me, e as _t, o as $t } from "../useDialog-ALG4kFE7.js";
6
- import { getDataValue as kt } from "../dashboard/index.es.js";
7
- import { useForm as wt } from "../composables/index.es.js";
8
- import { required as Ct, maxLen as Mt } from "../validate/index.es.js";
9
- const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, fa = /* @__PURE__ */ M({
1
+ import { defineComponent as S, resolveComponent as Ae, openBlock as p, createElementBlock as v, Fragment as B, createCommentVNode as V, createElementVNode as o, normalizeClass as E, createVNode as g, withCtx as x, createBlock as I, renderSlot as k, markRaw as O, computed as M, withModifiers as R, toDisplayString as _, unref as q, TransitionGroup as De, renderList as N, mergeProps as H, ref as L, watch as oe, resolveDynamicComponent as ue, Transition as $e, normalizeStyle as ve, createTextVNode as j, normalizeProps as F, guardReactiveProps as U, onMounted as Q, onUnmounted as ke, reactive as nt, useTemplateRef as Ie, withDirectives as we, vShow as st, vModelText as je, createSlots as lt, isRef as ot, Teleport as at, nextTick as He } from "vue";
2
+ import { a as it, V as Pe, j as A, h as Ne, g as Ce, k as de, l as rt, d as dt, i as ct, e as le, _ as Oe, f as J, m as me } from "../VDialog.vue_vue_type_script_setup_true_lang-B-VlZkin.js";
3
+ import { b as ja, n as Ha } from "../VDialog.vue_vue_type_script_setup_true_lang-B-VlZkin.js";
4
+ import { f as ut, t as mt, g as pt, u as pe, s as ft, d as vt, m as ht, c as gt } from "../app-B45sALrX.js";
5
+ import { d as Se, e as bt, o as xt } from "../useDialog-ALG4kFE7.js";
6
+ import { getDataValue as yt } from "../dashboard/index.es.js";
7
+ import { useForm as _t } from "../composables/index.es.js";
8
+ import { required as $t, maxLen as kt } from "../validate/index.es.js";
9
+ const wt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, aa = /* @__PURE__ */ S({
10
10
  __name: "AppAside",
11
11
  props: {
12
12
  isSidebar: { type: Boolean, default: !1 }
@@ -18,21 +18,21 @@ const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
18
18
  };
19
19
  return (t, r) => {
20
20
  const c = Ae("router-link");
21
- return p(), v(L, null, [
21
+ return p(), v(B, null, [
22
22
  e.isSidebar ? (p(), v("div", {
23
23
  key: 0,
24
24
  class: "lg:hidden overlay fixed left-0 top-0 h-full w-full bg-black/40 z-10 bg-blur",
25
25
  onClick: s
26
- })) : z("", !0),
26
+ })) : V("", !0),
27
27
  o("aside", {
28
- class: T([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: E([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"])
29
29
  }, [
30
30
  o("div", {
31
- class: T([e.isSidebar ? "justify-center" : "justify-between", "sidebar-header flex items-center gap-2 border-b border-gray-200/60 pt-6 pb-6 justify-between dark:border-white/5"])
31
+ class: E([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
33
  g(c, { to: "/" }, {
34
34
  default: x(() => [
35
- e.isSidebar ? (p(), I(ct, {
35
+ e.isSidebar ? (p(), I(it, {
36
36
  key: 0,
37
37
  class: "h-[30px] text-primary"
38
38
  })) : (p(), I(Pe, {
@@ -43,92 +43,92 @@ const zt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
43
43
  _: 1
44
44
  })
45
45
  ], 2),
46
- o("div", zt, [
46
+ o("div", wt, [
47
47
  k(t.$slots, "default")
48
48
  ])
49
49
  ], 2)
50
50
  ], 64);
51
51
  };
52
52
  }
53
- }), St = {
53
+ }), Ct = {
54
54
  viewBox: "0 0 24 24",
55
55
  width: "1.2em",
56
56
  height: "1.2em"
57
57
  };
58
- function Vt(e, n) {
59
- return p(), v("svg", St, [...n[0] || (n[0] = [
58
+ function St(e, n) {
59
+ return p(), v("svg", Ct, [...n[0] || (n[0] = [
60
60
  o("path", {
61
61
  fill: "currentColor",
62
62
  d: "M4.5 10.5c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S6 12.825 6 12s-.675-1.5-1.5-1.5m15 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5S21 12.825 21 12s-.675-1.5-1.5-1.5m-7.5 0c-.825 0-1.5.675-1.5 1.5s.675 1.5 1.5 1.5s1.5-.675 1.5-1.5s-.675-1.5-1.5-1.5"
63
63
  }, null, -1)
64
64
  ])]);
65
65
  }
66
- const Ue = O({ name: "ri-more-line", render: Vt }), Tt = {
66
+ const Ke = O({ name: "ri-more-line", render: St }), zt = {
67
67
  viewBox: "0 0 24 24",
68
68
  width: "1.2em",
69
69
  height: "1.2em"
70
70
  };
71
- function Et(e, n) {
72
- return p(), v("svg", Tt, [...n[0] || (n[0] = [
71
+ function Vt(e, n) {
72
+ return p(), v("svg", zt, [...n[0] || (n[0] = [
73
73
  o("path", {
74
74
  fill: "currentColor",
75
75
  d: "M4 18h2v2h12V4H6v2H4V3a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1zm2-7h7v2H6v3l-5-4l5-4z"
76
76
  }, null, -1)
77
77
  ])]);
78
78
  }
79
- const Bt = O({ name: "ri-logout-box-line", render: Et }), Lt = {
79
+ const Tt = O({ name: "ri-logout-box-line", render: Vt }), Et = {
80
80
  viewBox: "0 0 24 24",
81
81
  width: "1.2em",
82
82
  height: "1.2em"
83
83
  };
84
- function At(e, n) {
85
- return p(), v("svg", Lt, [...n[0] || (n[0] = [
84
+ function Lt(e, n) {
85
+ return p(), v("svg", Et, [...n[0] || (n[0] = [
86
86
  o("path", {
87
87
  fill: "currentColor",
88
88
  d: "M5 18h14v-6.969C19 7.148 15.866 4 12 4s-7 3.148-7 7.031zm7-16c4.97 0 9 4.043 9 9.031V20H3v-8.969C3 6.043 7.03 2 12 2M9.5 21h5a2.5 2.5 0 0 1-5 0"
89
89
  }, null, -1)
90
90
  ])]);
91
91
  }
92
- const Ke = O({ name: "ri-notification-line", render: At }), Dt = {
92
+ const Fe = O({ name: "ri-notification-line", render: Lt }), Bt = {
93
93
  viewBox: "0 0 24 24",
94
94
  width: "1.2em",
95
95
  height: "1.2em"
96
96
  };
97
- function It(e, n) {
98
- return p(), v("svg", Dt, [...n[0] || (n[0] = [
97
+ function Mt(e, n) {
98
+ return p(), v("svg", Bt, [...n[0] || (n[0] = [
99
99
  o("path", {
100
100
  fill: "currentColor",
101
101
  d: "M10 7a7 7 0 0 0 12 4.9v.1c0 5.523-4.477 10-10 10S2 17.523 2 12S6.477 2 12 2h.1A6.98 6.98 0 0 0 10 7m-6 5a8 8 0 0 0 15.062 3.762A9 9 0 0 1 8.238 4.938A8 8 0 0 0 4 12"
102
102
  }, null, -1)
103
103
  ])]);
104
104
  }
105
- const Ht = O({ name: "ri-moon-line", render: It }), jt = {
105
+ const At = O({ name: "ri-moon-line", render: Mt }), Dt = {
106
106
  viewBox: "0 0 24 24",
107
107
  width: "1.2em",
108
108
  height: "1.2em"
109
109
  };
110
- function Pt(e, n) {
111
- return p(), v("svg", jt, [...n[0] || (n[0] = [
110
+ function It(e, n) {
111
+ return p(), v("svg", Dt, [...n[0] || (n[0] = [
112
112
  o("path", {
113
113
  fill: "currentColor",
114
114
  d: "M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"
115
115
  }, null, -1)
116
116
  ])]);
117
117
  }
118
- const Nt = O({ name: "ri-sun-line", render: Pt }), Ot = {
118
+ const jt = O({ name: "ri-sun-line", render: It }), Ht = {
119
119
  viewBox: "0 0 24 24",
120
120
  width: "1.2em",
121
121
  height: "1.2em"
122
122
  };
123
- function Ut(e, n) {
124
- return p(), v("svg", Ot, [...n[0] || (n[0] = [
123
+ function Pt(e, n) {
124
+ return p(), v("svg", Ht, [...n[0] || (n[0] = [
125
125
  o("path", {
126
126
  fill: "currentColor",
127
127
  d: "M3 4h18v2H3zm0 7h18v2H3zm0 7h18v2H3z"
128
128
  }, null, -1)
129
129
  ])]);
130
130
  }
131
- const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header relative sticky top-0 left-0 z-10 w-full border-b shadow-[0_20px_60px_-35px_rgba(0,0,0,0.9)]" }, Ft = { class: "px-4 py-4 sm:px-6 lg:px-8" }, Wt = { class: "container mx-auto flex flex-auto items-center" }, qt = { class: "lg:hidden h-[30px]" }, Gt = { class: "gap-4 hidden lg:flex" }, Jt = { class: "lg:hidden flex gap-4" }, Zt = { class: "ms-2" }, va = /* @__PURE__ */ M({
131
+ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header relative sticky top-0 left-0 z-10 w-full border-b shadow-[0_20px_60px_-35px_rgba(0,0,0,0.9)]" }, Kt = { class: "px-4 py-4 sm:px-6 lg:px-8" }, Ft = { class: "container mx-auto flex flex-auto items-center" }, Ut = { class: "lg:hidden h-[30px]" }, Rt = { class: "gap-4 hidden lg:flex" }, Wt = { class: "lg:hidden flex gap-4" }, qt = { class: "ms-2" }, ia = /* @__PURE__ */ S({
132
132
  __name: "AppHeader",
133
133
  props: {
134
134
  changeTheme: { type: Function },
@@ -140,17 +140,17 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
140
140
  { name: "Theme", value: 1 },
141
141
  { name: "Notification", value: 2 },
142
142
  { name: "Logout", value: 3 }
143
- ], t = B(() => !!e.notifications.find((i) => i.isNew)), r = (i) => l("sidebar", i), c = (i) => l("notif", i), d = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), m = () => {
143
+ ], t = M(() => !!e.notifications.find((i) => i.isNew)), r = (i) => l("sidebar", i), c = (i) => l("notif", i), d = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), m = () => {
144
144
  e.changeTheme && e.changeTheme();
145
145
  }, a = ({ value: i }, u) => {
146
146
  i == 1 && m(), i == 2 && c(u), i == 3 && d();
147
147
  };
148
148
  return (i, u) => {
149
- const f = Kt, b = Ae("router-link"), h = Nt, y = Ht, S = Ke, V = Bt, w = Ue;
150
- return p(), v("header", Rt, [
149
+ const f = Nt, b = Ae("router-link"), h = jt, y = At, z = Fe, T = Tt, w = Ke;
150
+ return p(), v("header", Ot, [
151
151
  u[3] || (u[3] = o("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
- o("div", Ft, [
153
- o("div", Wt, [
152
+ o("div", Kt, [
153
+ o("div", Ft, [
154
154
  g(A, {
155
155
  type: "icon",
156
156
  onClick: r
@@ -161,7 +161,7 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
161
161
  _: 1
162
162
  }),
163
163
  u[1] || (u[1] = o("div", { class: "lg:hidden flex-auto" }, null, -1)),
164
- o("div", qt, [
164
+ o("div", Ut, [
165
165
  g(b, { to: "/" }, {
166
166
  default: x(() => [
167
167
  g(Pe, { class: "h-[30px] text-primary" })
@@ -170,7 +170,7 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
170
170
  })
171
171
  ]),
172
172
  u[2] || (u[2] = o("div", { class: "flex-auto" }, null, -1)),
173
- o("div", Gt, [
173
+ o("div", Rt, [
174
174
  g(A, {
175
175
  type: "icon",
176
176
  onClick: m
@@ -187,25 +187,25 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
187
187
  }, {
188
188
  default: x(() => [
189
189
  o("span", {
190
- class: T([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
190
+ class: E([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
191
191
  }, [...u[0] || (u[0] = [
192
192
  o("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(S, { class: "size-5" })
194
+ g(z, { class: "size-5" })
195
195
  ]),
196
196
  _: 1
197
197
  }),
198
198
  g(A, {
199
199
  type: "icon",
200
- onClick: F(d, ["prevent"])
200
+ onClick: R(d, ["prevent"])
201
201
  }, {
202
202
  default: x(() => [
203
- g(V, { class: "size-5" })
203
+ g(T, { class: "size-5" })
204
204
  ]),
205
205
  _: 1
206
206
  })
207
207
  ]),
208
- o("div", Jt, [
208
+ o("div", Wt, [
209
209
  g(Ne, {
210
210
  left: "unset",
211
211
  right: "0",
@@ -229,7 +229,7 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
229
229
  onClick: a
230
230
  }, {
231
231
  default: x(({ item: P }) => [
232
- o("span", Zt, _(P.name), 1)
232
+ o("span", qt, _(P.name), 1)
233
233
  ]),
234
234
  _: 1
235
235
  })
@@ -242,7 +242,7 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
242
242
  ]);
243
243
  };
244
244
  }
245
- }), Xt = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, Yt = { class: "flex-auto text-xs" }, Qt = { class: "text-gray-500 dark:text-gray-400 mt-1" }, en = /* @__PURE__ */ M({
245
+ }), Gt = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, Jt = { class: "flex-auto text-xs" }, Zt = { class: "text-gray-500 dark:text-gray-400 mt-1" }, Xt = /* @__PURE__ */ S({
246
246
  __name: "CardNotification",
247
247
  props: {
248
248
  empty: {},
@@ -257,10 +257,10 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
257
257
  setup(e, { emit: n }) {
258
258
  const l = e, s = n, t = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], r = (m) => t[m], c = (m) => s("remove", m), d = (m) => s("read", m);
259
259
  return (m, a) => {
260
- const i = Ke, u = ce;
261
- return p(), v("div", Xt, [
260
+ const i = Fe, u = de;
261
+ return p(), v("div", Gt, [
262
262
  o("div", {
263
- class: T(["absolute left-0 top-0 w-[3px] h-full", r(l.color)])
263
+ class: E(["absolute left-0 top-0 w-[3px] h-full", r(l.color)])
264
264
  }, null, 2),
265
265
  g(A, {
266
266
  class: "shrink-0",
@@ -269,7 +269,7 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
269
269
  }, {
270
270
  default: x(() => [
271
271
  o("span", {
272
- class: T([l.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
272
+ class: E([l.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
273
273
  }, [...a[0] || (a[0] = [
274
274
  o("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),
@@ -277,9 +277,9 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
277
277
  ]),
278
278
  _: 1
279
279
  }),
280
- o("div", Yt, [
280
+ o("div", Jt, [
281
281
  o("div", null, _(l.text), 1),
282
- o("div", Qt, _(q(ft)(l.date)) + " (" + _(q(vt)(l.date)) + ")", 1)
282
+ o("div", Zt, _(q(ut)(l.date)) + " (" + _(q(mt)(l.date)) + ")", 1)
283
283
  ]),
284
284
  g(A, {
285
285
  class: "shrink-0",
@@ -295,10 +295,10 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
295
295
  ]);
296
296
  };
297
297
  }
298
- }), tn = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, nn = {
298
+ }), Yt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Qt = {
299
299
  key: 0,
300
300
  class: "flex flex-col gap-2 p-2"
301
- }, ha = /* @__PURE__ */ M({
301
+ }, ra = /* @__PURE__ */ S({
302
302
  __name: "AppNotification",
303
303
  props: {
304
304
  value: { type: Boolean },
@@ -306,19 +306,19 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
306
306
  },
307
307
  emits: ["close", "remove", "read"],
308
308
  setup(e, { emit: n }) {
309
- const l = e, s = n, t = B(() => !!l.notifications.find((a) => a.isNew)), r = B(() => !!l.notifications.length), c = (a) => s("close", a), d = (a) => s("remove", a), m = (a) => s("read", a);
310
- return (a, i) => (p(), v(L, null, [
309
+ const l = e, s = n, t = M(() => !!l.notifications.find((a) => a.isNew)), r = M(() => !!l.notifications.length), c = (a) => s("close", a), d = (a) => s("remove", a), m = (a) => s("read", a);
310
+ return (a, i) => (p(), v(B, null, [
311
311
  l.value ? (p(), v("div", {
312
312
  key: 0,
313
313
  class: "overlay fixed left-0 top-0 h-full w-full bg-black/40 bg-blur",
314
314
  onClick: c
315
- })) : z("", !0),
315
+ })) : V("", !0),
316
316
  o("aside", {
317
- class: T([l.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: E([l.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"])
318
318
  }, [
319
- o("div", tn, [
319
+ o("div", Yt, [
320
320
  k(a.$slots, "header", { isNew: t.value }),
321
- r.value ? (p(), v("div", nn, [
321
+ r.value ? (p(), v("div", Qt, [
322
322
  g(De, {
323
323
  "enter-active-class": "transition-all duration-300 ",
324
324
  "enter-from-class": "opacity-0 translate-x-1/2",
@@ -328,12 +328,12 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
328
328
  "leave-to-class": "opacity-0 translate-x-1/2"
329
329
  }, {
330
330
  default: x(() => [
331
- (p(!0), v(L, null, N(l.notifications, (u) => (p(), v("div", {
331
+ (p(!0), v(B, null, N(l.notifications, (u) => (p(), v("div", {
332
332
  key: u.date,
333
333
  class: "relative"
334
334
  }, [
335
335
  k(a.$slots, "card", { item: u }, () => [
336
- g(en, j({ ref_for: !0 }, u, {
336
+ g(Xt, H({ ref_for: !0 }, u, {
337
337
  class: "rounded-md border border-gray-200/60 bg-white/50 dark:border-white/5 dark:bg-white/[0.03]",
338
338
  onRemove: (f) => d(u),
339
339
  onRead: (f) => m(u)
@@ -348,32 +348,32 @@ const Kt = O({ name: "ri-menu-line", render: Ut }), Rt = { class: "glass-header
348
348
  ], 2)
349
349
  ], 64));
350
350
  }
351
- }), sn = {}, ln = { class: "fixed h-full w-full top-0 left-0 z-20" }, on = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
352
- function an(e, n) {
353
- return p(), v("div", ln, [
351
+ }), en = {}, tn = { class: "fixed h-full w-full top-0 left-0 z-20" }, nn = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
352
+ function sn(e, n) {
353
+ return p(), v("div", tn, [
354
354
  n[0] || (n[0] = o("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
355
- o("div", on, [
355
+ o("div", nn, [
356
356
  k(e.$slots, "default")
357
357
  ])
358
358
  ]);
359
359
  }
360
- const ga = /* @__PURE__ */ ut(sn, [["render", an]]), rn = {
360
+ const da = /* @__PURE__ */ rt(en, [["render", sn]]), ln = {
361
361
  viewBox: "0 0 24 24",
362
362
  width: "1.2em",
363
363
  height: "1.2em"
364
364
  };
365
- function dn(e, n) {
366
- return p(), v("svg", rn, [...n[0] || (n[0] = [
365
+ function on(e, n) {
366
+ return p(), v("svg", ln, [...n[0] || (n[0] = [
367
367
  o("path", {
368
368
  fill: "currentColor",
369
369
  d: "m13.172 12l-4.95-4.95l1.414-1.413L16 12l-6.364 6.364l-1.414-1.415z"
370
370
  }, null, -1)
371
371
  ])]);
372
372
  }
373
- const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4 flex flex-col gap-2" }, mn = { class: "size-6 flex-[0_0_24px] opacity-60" }, pn = ["onClick"], fn = { class: "flex flex-col gap-2" }, vn = { class: "flex gap-2 ms-8" }, hn = { class: "size-5 flex-[0_0_24px]" }, gn = { class: "flex-1 first-letter:uppercase text-sm" }, bn = {
373
+ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4 flex flex-col gap-2" }, dn = { class: "size-6 flex-[0_0_24px] opacity-60" }, cn = ["onClick"], un = { class: "flex flex-col gap-2" }, mn = { class: "flex gap-2 ms-8" }, pn = { class: "size-5 flex-[0_0_24px]" }, fn = { class: "flex-1 first-letter:uppercase text-sm" }, vn = {
374
374
  key: 0,
375
375
  class: "mt-2"
376
- }, xn = { class: "flex flex-col gap-2" }, yn = { class: "flex gap-2 ms-14" }, _n = { class: "size-5 flex-[0_0_24px]" }, $n = { class: "flex-1 first-letter:uppercase text-sm" }, ba = /* @__PURE__ */ M({
376
+ }, hn = { class: "flex flex-col gap-2" }, gn = { class: "flex gap-2 ms-14" }, bn = { class: "size-5 flex-[0_0_24px]" }, xn = { class: "flex-1 first-letter:uppercase text-sm" }, ca = /* @__PURE__ */ S({
377
377
  __name: "AppNav",
378
378
  props: {
379
379
  menu: { default: () => [] },
@@ -382,7 +382,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
382
382
  },
383
383
  emits: ["sidebar"],
384
384
  setup(e, { emit: n }) {
385
- const l = n, s = E(""), t = ({ name: a }) => {
385
+ const l = n, s = L(""), t = ({ name: a }) => {
386
386
  e.isSidebar && l("sidebar", !e.isSidebar), s.value !== a && (s.value = s.value === a ? "" : a);
387
387
  }, r = (a) => e.fullPath === a, c = (a) => a ? e.fullPath === a || e.fullPath.startsWith(a) : !1, d = (a, i) => !a.path || i === "/" || a.path === "/" ? !1 : a.path === i || i.includes(a.path), m = (a, i) => (a == null ? void 0 : a.find(
388
388
  (u) => {
@@ -399,99 +399,99 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
399
399
  () => e.menu,
400
400
  () => {
401
401
  var a;
402
- return s.value = ((a = m(e.menu, e.fullPath) ?? ht(e.menu, e.fullPath)) == null ? void 0 : a.name) || "";
402
+ return s.value = ((a = m(e.menu, e.fullPath) ?? pt(e.menu, e.fullPath)) == null ? void 0 : a.name) || "";
403
403
  }
404
404
  ), (a, i) => {
405
- const u = cn;
405
+ const u = an;
406
406
  return p(), v("nav", null, [
407
- o("ul", un, [
408
- (p(!0), v(L, null, N(e.menu, (f) => (p(), v("li", {
407
+ o("ul", rn, [
408
+ (p(!0), v(B, null, N(e.menu, (f) => (p(), v("li", {
409
409
  key: f.name
410
410
  }, [
411
- (p(), I(me(f.path ? "router-link" : "span"), {
411
+ (p(), I(ue(f.path ? "router-link" : "span"), {
412
412
  to: f.path,
413
- class: T(["flex gap-2 items-center px-3 py-2 rounded", r(f.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"]),
414
- onClick: F((b) => t(f), ["prevent", "stop"])
413
+ class: E(["flex gap-2 items-center px-3 py-2 rounded", r(f.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"]),
414
+ onClick: R((b) => t(f), ["prevent", "stop"])
415
415
  }, {
416
416
  default: x(() => [
417
- o("div", mn, [
417
+ o("div", dn, [
418
418
  k(a.$slots, "icon", { item: f })
419
419
  ]),
420
420
  o("span", {
421
- class: T(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
421
+ class: E(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
422
422
  }, _(f.name), 3),
423
423
  o("button", {
424
- class: T(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
425
- onClick: F((b) => t(f), ["prevent", "stop"])
424
+ class: E(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
425
+ onClick: R((b) => t(f), ["prevent", "stop"])
426
426
  }, [
427
- f.children ? (p(), I(u, { key: 0 })) : z("", !0)
428
- ], 10, pn)
427
+ f.children ? (p(), I(u, { key: 0 })) : V("", !0)
428
+ ], 10, cn)
429
429
  ]),
430
430
  _: 2
431
431
  }, 1032, ["to", "class", "onClick"])),
432
432
  f.children ? (p(), v("div", {
433
433
  key: 0,
434
- class: T(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", s.value === f.name ? "block" : "hidden"]])
434
+ class: E(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", s.value === f.name ? "block" : "hidden"]])
435
435
  }, [
436
- o("ul", fn, [
437
- (p(!0), v(L, null, N(f.children, ({ name: b, path: h, icon: y, children: S }) => (p(), v("li", { key: b }, [
438
- (p(), I(me(h ? "router-link" : "span"), {
436
+ o("ul", un, [
437
+ (p(!0), v(B, null, N(f.children, ({ name: b, path: h, icon: y, children: z }) => (p(), v("li", { key: b }, [
438
+ (p(), I(ue(h ? "router-link" : "span"), {
439
439
  to: h,
440
- class: T(["flex gap-2 items-center px-3 py-2 rounded", r(h) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
440
+ class: E(["flex gap-2 items-center px-3 py-2 rounded", r(h) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
441
441
  }, {
442
442
  default: x(() => [
443
- o("div", vn, [
444
- o("div", hn, [
443
+ o("div", mn, [
444
+ o("div", pn, [
445
445
  k(a.$slots, "icon-children", {
446
446
  item: { name: b, path: h, icon: y }
447
447
  })
448
448
  ]),
449
- o("span", gn, _(b), 1)
449
+ o("span", fn, _(b), 1)
450
450
  ])
451
451
  ]),
452
452
  _: 2
453
453
  }, 1032, ["to", "class"])),
454
- S != null && S.length && c(h) ? (p(), v("div", bn, [
455
- o("ul", xn, [
456
- (p(!0), v(L, null, N(S, (V) => (p(), v("li", {
457
- key: V.name
454
+ z != null && z.length && c(h) ? (p(), v("div", vn, [
455
+ o("ul", hn, [
456
+ (p(!0), v(B, null, N(z, (T) => (p(), v("li", {
457
+ key: T.name
458
458
  }, [
459
- (p(), I(me(V.path ? "router-link" : "span"), {
460
- to: V.path,
461
- class: T(["flex gap-2 items-center px-3 py-2 rounded", r(V.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
459
+ (p(), I(ue(T.path ? "router-link" : "span"), {
460
+ to: T.path,
461
+ class: E(["flex gap-2 items-center px-3 py-2 rounded", r(T.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
462
462
  }, {
463
463
  default: x(() => [
464
- o("div", yn, [
465
- o("div", _n, [
466
- k(a.$slots, "icon-children", { item: V })
464
+ o("div", gn, [
465
+ o("div", bn, [
466
+ k(a.$slots, "icon-children", { item: T })
467
467
  ]),
468
- o("span", $n, _(V.name), 1)
468
+ o("span", xn, _(T.name), 1)
469
469
  ])
470
470
  ]),
471
471
  _: 2
472
472
  }, 1032, ["to", "class"]))
473
473
  ]))), 128))
474
474
  ])
475
- ])) : z("", !0)
475
+ ])) : V("", !0)
476
476
  ]))), 128))
477
477
  ])
478
- ], 2)) : z("", !0)
478
+ ], 2)) : V("", !0)
479
479
  ]))), 128))
480
480
  ])
481
481
  ]);
482
482
  };
483
483
  }
484
- }), kn = {
484
+ }), yn = {
485
485
  key: 0,
486
486
  class: "glass-panel w-full min-w-[260px] max-w-xs p-4 shadow-lg",
487
487
  role: "alert"
488
- }, wn = { class: "flex items-center gap-4 text-sm" }, Cn = {
488
+ }, _n = { class: "flex items-center gap-4 text-sm" }, $n = {
489
489
  key: 0,
490
490
  class: "text-green-600"
491
- }, Mn = {
491
+ }, kn = {
492
492
  key: 1,
493
493
  class: "relative mt-2 block h-4 w-full select-none overflow-hidden rounded-md bg-gray-200/70 dark:bg-white/10"
494
- }, zn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Sn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, xa = /* @__PURE__ */ M({
494
+ }, wn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-black dark:text-white text-center leading-none" }, Cn = { class: "absolute left-[140px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, ua = /* @__PURE__ */ S({
495
495
  __name: "AppProgress",
496
496
  props: {
497
497
  timeout: { default: 5e3 },
@@ -502,7 +502,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
502
502
  length: { default: 0 }
503
503
  },
504
504
  setup(e) {
505
- const n = E(!1), l = B(() => !!e.length), s = B(() => !!(l.value && t.value === 100 && !e.status)), t = B(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), r = Me(() => {
505
+ const n = L(!1), l = M(() => !!e.length), s = M(() => !!(l.value && t.value === 100 && !e.status)), t = M(() => e.status ? Math.ceil(e.size * 100 / e.length) : 100), r = Se(() => {
506
506
  n.value = !1;
507
507
  }, e.timeout);
508
508
  return oe(
@@ -511,8 +511,8 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
511
511
  n.value = !0, r();
512
512
  }
513
513
  ), (c, d) => {
514
- const m = ce;
515
- return p(), I(ke, {
514
+ const m = de;
515
+ return p(), I($e, {
516
516
  "enter-active-class": "duration-300 ease-out",
517
517
  "enter-from-class": "transform opacity-0 translate-x-full",
518
518
  "enter-to-class": "opacity-100 translate-x-0",
@@ -521,11 +521,11 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
521
521
  "leave-to-class": "transform opacity-0 -translate-y-8"
522
522
  }, {
523
523
  default: x(() => [
524
- n.value ? (p(), v("div", kn, [
525
- o("div", wn, [
524
+ n.value ? (p(), v("div", yn, [
525
+ o("div", _n, [
526
526
  k(c.$slots, "default", { isDone: s.value }, () => [
527
527
  d[1] || (d[1] = o("div", { class: "flex-auto" }, "Progress...", -1)),
528
- s.value ? (p(), v("span", Cn, "Done")) : z("", !0)
528
+ s.value ? (p(), v("span", $n, "Done")) : V("", !0)
529
529
  ]),
530
530
  o("button", {
531
531
  class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
@@ -538,23 +538,23 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
538
538
  key: 0,
539
539
  class: "h-[2px] fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
540
540
  style: ve(`width: ${t.value}%`)
541
- }, null, 4)) : z("", !0),
542
- l.value ? (p(), v("div", Mn, [
543
- o("div", zn, _(t.value) + "%", 1),
541
+ }, null, 4)) : V("", !0),
542
+ l.value ? (p(), v("div", kn, [
543
+ o("div", wn, _(t.value) + "%", 1),
544
544
  o("div", {
545
545
  class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
546
546
  style: ve(`width: ${t.value}%`)
547
547
  }, [
548
- o("div", Sn, _(t.value) + "%", 1)
548
+ o("div", Cn, _(t.value) + "%", 1)
549
549
  ], 4)
550
- ])) : z("", !0)
551
- ])) : z("", !0)
550
+ ])) : V("", !0)
551
+ ])) : V("", !0)
552
552
  ]),
553
553
  _: 3
554
554
  });
555
555
  };
556
556
  }
557
- }), Vn = { class: "my-4 text-gray-700 dark:text-gray-400" }, Tn = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, En = { class: "flex gap-2" }, Bn = { class: "text-gray-700 dark:text-gray-400" }, Ln = { class: "flex gap-2" }, An = { class: "flex gap-2" }, Dn = { class: "text-gray-700 dark:text-gray-400" }, In = { class: "flex gap-2" }, Hn = { class: "text-gray-700 dark:text-gray-400" }, jn = { class: "flex flex-col gap-4 text-sm" }, Pn = { class: "flex gap-4" }, ya = /* @__PURE__ */ M({
557
+ }), Sn = { class: "my-4 text-gray-700 dark:text-gray-400" }, zn = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Vn = { class: "flex gap-2" }, Tn = { class: "text-gray-700 dark:text-gray-400" }, En = { class: "flex gap-2" }, Ln = { class: "flex gap-2" }, Bn = { class: "text-gray-700 dark:text-gray-400" }, Mn = { class: "flex gap-2" }, An = { class: "text-gray-700 dark:text-gray-400" }, Dn = { class: "flex flex-col gap-4 text-sm" }, In = { class: "flex gap-4" }, ma = /* @__PURE__ */ S({
558
558
  __name: "BlockInfo",
559
559
  props: {
560
560
  pkg: {},
@@ -568,7 +568,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
568
568
  board: {}
569
569
  },
570
570
  setup(e) {
571
- const n = B(() => e.firmware.join(".")), l = B(() => {
571
+ const n = M(() => e.firmware.join(".")), l = M(() => {
572
572
  var t, r, c, d, m, a, i;
573
573
  const s = [];
574
574
  return (t = e.pkg) != null && t.homepage && s.push({ name: "homepage", href: e.pkg.homepage }), (c = (r = e.pkg) == null ? void 0 : r.repository) != null && c.url && s.push({ name: "repository", href: e.pkg.repository.url }), (m = (d = e.pkg) == null ? void 0 : d.bugs) != null && m.url && s.push({ name: "bugs", href: e.pkg.bugs.url }), (a = e.pkg) != null && a.author && s.push({ name: "author", href: `mailto:${(i = e.pkg) == null ? void 0 : i.author}` }), s;
@@ -576,37 +576,37 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
576
576
  return (s, t) => {
577
577
  var r, c;
578
578
  return p(), v("div", null, [
579
- o("p", Vn, _((r = e.pkg) == null ? void 0 : r.description), 1),
580
- o("div", Tn, [
581
- o("div", En, [
582
- t[0] || (t[0] = H(" Firmware (hw): ", -1)),
583
- o("span", Bn, _(n.value), 1)
579
+ o("p", Sn, _((r = e.pkg) == null ? void 0 : r.description), 1),
580
+ o("div", zn, [
581
+ o("div", Vn, [
582
+ t[0] || (t[0] = j(" Firmware (hw): ", -1)),
583
+ o("span", Tn, _(n.value), 1)
584
584
  ]),
585
- o("div", Ln, [
586
- o("div", An, [
587
- t[1] || (t[1] = H(" Version (web): ", -1)),
588
- o("span", Dn, _((c = e.pkg) == null ? void 0 : c.version), 1)
585
+ o("div", En, [
586
+ o("div", Ln, [
587
+ t[1] || (t[1] = j(" Version (web): ", -1)),
588
+ o("span", Bn, _((c = e.pkg) == null ? void 0 : c.version), 1)
589
589
  ])
590
590
  ]),
591
591
  t[3] || (t[3] = o("div", { class: "flex-auto" }, null, -1)),
592
- o("div", In, [
593
- t[2] || (t[2] = H(" ID: ", -1)),
594
- o("span", Hn, _(e.id.toString(16)), 1)
592
+ o("div", Mn, [
593
+ t[2] || (t[2] = j(" ID: ", -1)),
594
+ o("span", An, _(e.id.toString(16)), 1)
595
595
  ])
596
596
  ]),
597
597
  t[4] || (t[4] = o("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
598
- o("div", jn, [
599
- o("div", Pn, [
598
+ o("div", Dn, [
599
+ o("div", In, [
600
600
  k(s.$slots, "links", { links: l.value })
601
601
  ])
602
602
  ])
603
603
  ]);
604
604
  };
605
605
  }
606
- }), Nn = ["onClick"], On = { class: "mr-2" }, Un = { class: "text-sm" }, Kn = { class: "text-gray-400 text-xs" }, Rn = {
606
+ }), jn = ["onClick"], Hn = { class: "mr-2" }, Pn = { class: "text-sm" }, Nn = { class: "text-gray-400 text-xs" }, On = {
607
607
  key: 0,
608
608
  class: "flex justify-center"
609
- }, Fn = { class: "flex justify-end mt-4" }, _a = /* @__PURE__ */ M({
609
+ }, Kn = { class: "flex justify-end mt-4" }, pa = /* @__PURE__ */ S({
610
610
  __name: "BlockScan",
611
611
  props: {
612
612
  items: { default: () => [] }
@@ -615,7 +615,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
615
615
  setup(e, { emit: n }) {
616
616
  const l = n, s = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], t = (c) => l("select", c), r = (c) => l("scan", c);
617
617
  return (c, d) => {
618
- const m = mt, a = Ce, i = pt, u = A;
618
+ const m = dt, a = Ce, i = ct, u = A;
619
619
  return p(), v("div", null, [
620
620
  g(a, {
621
621
  items: e.items,
@@ -626,27 +626,27 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
626
626
  class: "flex items-center w-full",
627
627
  onClick: (b) => t(f)
628
628
  }, [
629
- o("div", On, [
630
- g(m, K(R(f)), null, 16)
629
+ o("div", Hn, [
630
+ g(m, F(U(f)), null, 16)
631
631
  ]),
632
632
  o("div", null, [
633
- o("div", Un, _(f.ssid), 1),
634
- o("div", Kn, _(c.$t("security")) + " : " + _(s[f.encryptionType] || "unknown"), 1)
633
+ o("div", Pn, _(f.ssid), 1),
634
+ o("div", Nn, _(c.$t("security")) + " : " + _(s[f.encryptionType] || "unknown"), 1)
635
635
  ])
636
- ], 8, Nn)
636
+ ], 8, jn)
637
637
  ]),
638
638
  _: 1
639
639
  }, 8, ["items"]),
640
- e.items.length ? z("", !0) : (p(), v("div", Rn, [
640
+ e.items.length ? V("", !0) : (p(), v("div", On, [
641
641
  g(i, { class: "text-primary" })
642
642
  ])),
643
- o("div", Fn, [
643
+ o("div", Kn, [
644
644
  g(u, {
645
645
  color: "blue",
646
646
  onClick: r
647
647
  }, {
648
648
  default: x(() => [
649
- H(_(c.$t("scan")), 1)
649
+ j(_(c.$t("scan")), 1)
650
650
  ]),
651
651
  _: 1
652
652
  })
@@ -654,7 +654,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
654
654
  ]);
655
655
  };
656
656
  }
657
- }), Wn = { class: "md:flex items-center mb-4" }, qn = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, Gn = { class: "md:max-w-50" }, Jn = { class: "flex items-center mb-4" }, Zn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Xn = { class: "flex items-center mb-4" }, Yn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, $a = /* @__PURE__ */ M({
657
+ }), Fn = { class: "md:flex items-center mb-4" }, Un = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, Rn = { class: "md:max-w-50" }, Wn = { class: "flex items-center mb-4" }, qn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Gn = { class: "flex items-center mb-4" }, Jn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, fa = /* @__PURE__ */ S({
658
658
  __name: "BlockService",
659
659
  props: {
660
660
  locale: {},
@@ -668,10 +668,10 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
668
668
  };
669
669
  return (r, c) => {
670
670
  const d = le, m = A;
671
- return p(), v(L, null, [
672
- o("div", Wn, [
673
- o("div", qn, _(r.$t("selectLang")), 1),
674
- o("div", Gn, [
671
+ return p(), v(B, null, [
672
+ o("div", Fn, [
673
+ o("div", Un, _(r.$t("selectLang")), 1),
674
+ o("div", Rn, [
675
675
  g(d, {
676
676
  "model-value": t(e.locale),
677
677
  label: r.$t("lang"),
@@ -680,8 +680,8 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
680
680
  }, null, 8, ["model-value", "label", "items"])
681
681
  ])
682
682
  ]),
683
- o("div", Jn, [
684
- o("div", Zn, _(r.$t("rebootDev")), 1),
683
+ o("div", Wn, [
684
+ o("div", qn, _(r.$t("rebootDev")), 1),
685
685
  g(m, {
686
686
  class: "min-w-[100px]",
687
687
  color: "red",
@@ -689,20 +689,20 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
689
689
  onClick: c[0] || (c[0] = (a) => l("reboot", a))
690
690
  }, {
691
691
  default: x(() => [
692
- H(_(r.$t("reboot")), 1)
692
+ j(_(r.$t("reboot")), 1)
693
693
  ]),
694
694
  _: 1
695
695
  })
696
696
  ]),
697
- o("div", Xn, [
698
- o("div", Yn, _(r.$t("resetConf")), 1),
697
+ o("div", Gn, [
698
+ o("div", Jn, _(r.$t("resetConf")), 1),
699
699
  g(m, {
700
700
  class: "min-w-[100px]",
701
701
  color: "red",
702
702
  onClick: c[1] || (c[1] = (a) => l("reset", a))
703
703
  }, {
704
704
  default: x(() => [
705
- H(_(r.$t("reset")), 1)
705
+ j(_(r.$t("reset")), 1)
706
706
  ]),
707
707
  _: 1
708
708
  })
@@ -710,7 +710,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
710
710
  ], 64);
711
711
  };
712
712
  }
713
- }), Qn = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, es = { class: "flex flex-col w-full items-center gap-2" }, ts = ["title"], ns = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-900 dark:text-white" }, ss = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, ls = { class: "flex justify-between w-full text-xs" }, os = { class: "text-gray-500 dark:text-white/50" }, as = { class: "text-sm" }, is = { class: "text-gray-500 dark:text-white/50 text-left" }, rs = { class: "text-right text-xs" }, ka = /* @__PURE__ */ M({
713
+ }), Zn = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, Xn = { class: "flex flex-col w-full items-center gap-2" }, Yn = ["title"], Qn = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-900 dark:text-white" }, es = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, ts = { class: "flex justify-between w-full text-xs" }, ns = { class: "text-gray-500 dark:text-white/50" }, ss = { class: "text-sm" }, ls = { class: "text-gray-500 dark:text-white/50 text-left" }, os = { class: "text-right text-xs" }, va = /* @__PURE__ */ S({
714
714
  __name: "BlockStatus",
715
715
  props: {
716
716
  pkg: {},
@@ -724,64 +724,64 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
724
724
  board: {}
725
725
  },
726
726
  setup(e) {
727
- const n = E(e.uptime);
727
+ const n = L(e.uptime);
728
728
  let l = null;
729
- const s = B(() => e.firmware.join(".")), t = B(() => [
729
+ const s = M(() => e.firmware.join(".")), t = M(() => [
730
730
  { name: "used", value: pe(e.usedBytes) },
731
731
  { name: "available", value: pe(e.totalBytes - e.usedBytes) },
732
732
  { name: "total", value: pe(e.totalBytes) }
733
- ]), r = B(() => {
733
+ ]), r = M(() => {
734
734
  var m;
735
735
  return [
736
- { name: "uptime", value: gt(n.value) },
736
+ { name: "uptime", value: ft(n.value) },
737
737
  { name: "id", value: `${e.id.toString(16)} (${e.id})` },
738
738
  { name: "firmware", value: s.value },
739
739
  { name: "version", value: (m = e.pkg) == null ? void 0 : m.version }
740
740
  ];
741
- }), c = B(() => e.usedBytes ? Math.round(e.usedBytes * 100 / e.totalBytes) : 0), d = () => {
741
+ }), c = M(() => e.usedBytes ? Math.round(e.usedBytes * 100 / e.totalBytes) : 0), d = () => {
742
742
  n.value++, l = setTimeout(d, 1e3);
743
743
  };
744
744
  return Q(() => {
745
745
  d();
746
- }), we(() => {
746
+ }), ke(() => {
747
747
  n.value = 0, l && clearTimeout(l);
748
748
  }), (m, a) => {
749
749
  var i, u, f;
750
- return p(), v("div", Qn, [
751
- o("div", es, [
750
+ return p(), v("div", Zn, [
751
+ o("div", Xn, [
752
752
  o("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: `${c.value}%`
755
755
  }, [
756
- o("div", ns, _(c.value) + "%", 1),
756
+ o("div", Qn, _(c.value) + "%", 1),
757
757
  o("div", {
758
758
  class: "relative h-4 overflow-hidden rounded-md bg-primary transition-all duration-500",
759
759
  style: ve(`width: ${c.value}%`)
760
760
  }, [
761
- o("div", ss, _(c.value) + "%", 1)
761
+ o("div", es, _(c.value) + "%", 1)
762
762
  ], 4)
763
- ], 8, ts),
764
- o("div", ls, [
765
- (p(!0), v(L, null, N(t.value, (b) => (p(), v("div", {
763
+ ], 8, Yn),
764
+ o("div", ts, [
765
+ (p(!0), v(B, null, N(t.value, (b) => (p(), v("div", {
766
766
  key: b.name,
767
767
  class: "flex-auto"
768
768
  }, [
769
- o("div", os, [
769
+ o("div", ns, [
770
770
  k(m.$slots, "name", { item: b })
771
771
  ]),
772
772
  o("div", null, _(b.value), 1)
773
773
  ]))), 128))
774
774
  ])
775
775
  ]),
776
- o("div", as, [
777
- (p(!0), v(L, null, N(r.value, (b) => (p(), v("div", {
776
+ o("div", ss, [
777
+ (p(!0), v(B, null, N(r.value, (b) => (p(), v("div", {
778
778
  key: b.name,
779
779
  class: "flex justify-between items-center"
780
780
  }, [
781
- o("div", is, [
781
+ o("div", ls, [
782
782
  k(m.$slots, "name", { item: b })
783
783
  ]),
784
- o("div", rs, _(b.value), 1)
784
+ o("div", os, _(b.value), 1)
785
785
  ]))), 128))
786
786
  ]),
787
787
  o("div", null, [
@@ -793,7 +793,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
793
793
  ]);
794
794
  };
795
795
  }
796
- }), ds = { class: "flex items-center cursor-pointer" }, cs = /* @__PURE__ */ M({
796
+ }), as = { class: "flex items-center cursor-pointer" }, is = /* @__PURE__ */ S({
797
797
  __name: "VFile",
798
798
  emits: ["change"],
799
799
  setup(e, { emit: n }) {
@@ -801,15 +801,15 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
801
801
  const r = t.target;
802
802
  r.files && l("change", r.files);
803
803
  };
804
- return (t, r) => (p(), v("label", ds, [
805
- o("input", j({
804
+ return (t, r) => (p(), v("label", as, [
805
+ o("input", H({
806
806
  type: "file",
807
807
  class: "hidden"
808
808
  }, t.$attrs, { onChange: s }), null, 16),
809
809
  k(t.$slots, "default")
810
810
  ]));
811
811
  }
812
- }), us = { class: "md:flex" }, ms = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, wa = /* @__PURE__ */ M({
812
+ }), rs = { class: "md:flex" }, ds = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, ha = /* @__PURE__ */ S({
813
813
  __name: "BlockUpdate",
814
814
  emits: ["update"],
815
815
  setup(e, { emit: n }) {
@@ -829,18 +829,18 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
829
829
  return (d, m) => {
830
830
  const a = A;
831
831
  return p(), v("div", null, [
832
- (p(!0), v(L, null, N(s, (i, u) => (p(), v("div", {
832
+ (p(!0), v(B, null, N(s, (i, u) => (p(), v("div", {
833
833
  key: u,
834
834
  class: "mb-4 flex items-center"
835
835
  }, [
836
- g(cs, {
836
+ g(is, {
837
837
  accept: ".bin",
838
838
  onChange: (f) => s[u] = f,
839
839
  class: "flex-auto"
840
840
  }, {
841
841
  default: x(() => [
842
- o("div", us, [
843
- o("h6", ms, _(u) + ":", 1),
842
+ o("div", rs, [
843
+ o("h6", ds, _(u) + ":", 1),
844
844
  k(d.$slots, "default", {
845
845
  file: t(i)
846
846
  })
@@ -855,7 +855,7 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
855
855
  onClick: (f) => c(`${u}.bin`, i)
856
856
  }, {
857
857
  default: x(() => [
858
- H(_(d.$t("btnUpdate")), 1)
858
+ j(_(d.$t("btnUpdate")), 1)
859
859
  ]),
860
860
  _: 1
861
861
  }, 8, ["disabled", "onClick"])
@@ -863,20 +863,20 @@ const cn = O({ name: "ri-arrow-right-s-line", render: dn }), un = { class: "mb-4
863
863
  ]);
864
864
  };
865
865
  }
866
- }), ps = {
866
+ }), cs = {
867
867
  viewBox: "0 0 24 24",
868
868
  width: "1.2em",
869
869
  height: "1.2em"
870
870
  };
871
- function fs(e, n) {
872
- return p(), v("svg", ps, [...n[0] || (n[0] = [
871
+ function us(e, n) {
872
+ return p(), v("svg", cs, [...n[0] || (n[0] = [
873
873
  o("path", {
874
874
  fill: "currentColor",
875
875
  d: "M12.172 12L9.343 9.173l1.415-1.414L15 12l-4.242 4.242l-1.415-1.414z"
876
876
  }, null, -1)
877
877
  ])]);
878
878
  }
879
- const Re = O({ name: "ri-arrow-drop-right-line", render: fs }), vs = { class: "flex items-center gap-1.5" }, Ca = /* @__PURE__ */ M({
879
+ const Ue = O({ name: "ri-arrow-drop-right-line", render: us }), ms = { class: "flex items-center gap-1.5" }, ga = /* @__PURE__ */ S({
880
880
  __name: "BlockBreadcrumb",
881
881
  props: {
882
882
  items: { default: () => [] }
@@ -885,20 +885,20 @@ const Re = O({ name: "ri-arrow-drop-right-line", render: fs }), vs = { class: "f
885
885
  setup(e, { emit: n }) {
886
886
  const l = n, s = (t) => l("click", t);
887
887
  return (t, r) => {
888
- const c = Re;
888
+ const c = Ue;
889
889
  return p(), v("nav", null, [
890
- o("ol", vs, [
891
- (p(!0), v(L, null, N(e.items, (d, m) => (p(), v("li", {
890
+ o("ol", ms, [
891
+ (p(!0), v(B, null, N(e.items, (d, m) => (p(), v("li", {
892
892
  key: m,
893
- class: T(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", d.path ? "" : "text-gray-800 dark:text-white/90"])
893
+ class: E(["inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400", d.path ? "" : "text-gray-800 dark:text-white/90"])
894
894
  }, [
895
895
  k(t.$slots, "default", { item: d }, () => [
896
- (p(), I(me(d.path ? "a" : "span"), {
896
+ (p(), I(ue(d.path ? "a" : "span"), {
897
897
  href: d.path,
898
898
  onClick: (a) => s(d)
899
899
  }, {
900
900
  default: x(() => [
901
- H(_(d.name), 1)
901
+ j(_(d.name), 1)
902
902
  ]),
903
903
  _: 2
904
904
  }, 1032, ["href", "onClick"]))
@@ -906,29 +906,29 @@ const Re = O({ name: "ri-arrow-drop-right-line", render: fs }), vs = { class: "f
906
906
  d.path ? (p(), I(c, {
907
907
  key: 0,
908
908
  class: "rotate-270"
909
- })) : z("", !0)
909
+ })) : V("", !0)
910
910
  ], 2))), 128))
911
911
  ])
912
912
  ]);
913
913
  };
914
914
  }
915
- }), hs = {
915
+ }), ps = {
916
916
  viewBox: "0 0 24 24",
917
917
  width: "1.2em",
918
918
  height: "1.2em"
919
919
  };
920
- function gs(e, n) {
921
- return p(), v("svg", hs, [...n[0] || (n[0] = [
920
+ function fs(e, n) {
921
+ return p(), v("svg", ps, [...n[0] || (n[0] = [
922
922
  o("path", {
923
923
  fill: "currentColor",
924
924
  d: "M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9zm-2 5h6v2H7zm0 4h6v2H7z"
925
925
  }, null, -1)
926
926
  ])]);
927
927
  }
928
- const bs = O({ name: "ri-file-copy2-line", render: gs }), xs = { class: "flex-auto flex justify-between" }, ys = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, _s = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, $s = {
928
+ const vs = O({ name: "ri-file-copy2-line", render: fs }), hs = { class: "flex-auto flex justify-between" }, gs = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, bs = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, xs = {
929
929
  key: 0,
930
930
  class: "absolute left-1/2 top-1/2 size-[calc(50%)] text-gray-200/30 dark:text-gray-800/30 -translate-1/2"
931
- }, ks = { class: "min-h-60 relative" }, ws = { class: "pt-6" }, Cs = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, Ms = { class: "text-center text-xl mt-4" }, ae = /* @__PURE__ */ M({
931
+ }, ys = { class: "min-h-60 relative" }, _s = { class: "pt-6" }, $s = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, ks = { class: "text-center text-xl mt-4" }, ae = /* @__PURE__ */ S({
932
932
  __name: "CardBase",
933
933
  props: {
934
934
  size: {},
@@ -948,40 +948,40 @@ const bs = O({ name: "ri-file-copy2-line", render: gs }), xs = { class: "flex-au
948
948
  },
949
949
  emits: ["edit", "close", "click", "clone", "open", "setState"],
950
950
  setup(e, { emit: n }) {
951
- const l = e, s = n, t = E(!1), r = B(() => ["button", "dimmer"].includes(l.type || "") && l.value ? "text-amber-500" : "text-gray-400"), c = (u) => s("edit", u), d = (u) => s("clone", u), m = () => t.value = !0, a = (u) => s("open", u), i = (u) => {
951
+ const l = e, s = n, t = L(!1), r = M(() => ["button", "dimmer"].includes(l.type || "") && l.value ? "text-amber-500" : "text-gray-400"), c = (u) => s("edit", u), d = (u) => s("clone", u), m = () => t.value = !0, a = (u) => s("open", u), i = (u) => {
952
952
  t.value = !1, s("close", u);
953
953
  };
954
954
  return (u, f) => {
955
- const b = Ue, h = bs;
955
+ const b = Ke, h = vs;
956
956
  return p(), v("div", {
957
957
  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)]",
958
958
  onClick: m
959
959
  }, [
960
- o("div", xs, [
960
+ o("div", hs, [
961
961
  o("div", {
962
- class: T([r.value, "size-8 animate-shake"])
962
+ class: E([r.value, "size-8 animate-shake"])
963
963
  }, [
964
- k(u.$slots, "icon", K(R(l)))
964
+ k(u.$slots, "icon", F(U(l)))
965
965
  ], 2),
966
- k(u.$slots, "header", K(R(l)))
966
+ k(u.$slots, "header", F(U(l)))
967
967
  ]),
968
968
  o("div", null, [
969
- k(u.$slots, "body", K(R(l)), () => [
970
- o("h6", ys, [
971
- k(u.$slots, "name", K(R(l)), () => [
972
- H(_(l.name), 1)
969
+ k(u.$slots, "body", F(U(l)), () => [
970
+ o("h6", gs, [
971
+ k(u.$slots, "name", F(U(l)), () => [
972
+ j(_(l.name), 1)
973
973
  ])
974
974
  ]),
975
- o("div", _s, [
976
- k(u.$slots, "value", K(R(l)), () => [
977
- H(_(l.valueTo || l.value), 1)
975
+ o("div", bs, [
976
+ k(u.$slots, "value", F(U(l)), () => [
977
+ j(_(l.valueTo || l.value), 1)
978
978
  ])
979
979
  ])
980
980
  ])
981
981
  ]),
982
- l.icon ? (p(), v("div", $s, [
983
- k(u.$slots, "icon", K(R(l)))
984
- ])) : z("", !0),
982
+ l.icon ? (p(), v("div", xs, [
983
+ k(u.$slots, "icon", F(U(l)))
984
+ ])) : V("", !0),
985
985
  t.value ? (p(), I(Oe, {
986
986
  key: 1,
987
987
  size: l.size || "sm",
@@ -1010,41 +1010,41 @@ const bs = O({ name: "ri-file-copy2-line", render: gs }), xs = { class: "flex-au
1010
1010
  })
1011
1011
  ]),
1012
1012
  default: x(() => [
1013
- o("div", ks, [
1014
- o("div", ws, [
1015
- o("h3", Cs, [
1016
- k(u.$slots, "dialog-name", K(R(l)), () => [
1017
- H(_(l.name), 1)
1013
+ o("div", ys, [
1014
+ o("div", _s, [
1015
+ o("h3", $s, [
1016
+ k(u.$slots, "dialog-name", F(U(l)), () => [
1017
+ j(_(l.name), 1)
1018
1018
  ])
1019
1019
  ]),
1020
- k(u.$slots, "dialog", K(R(l))),
1021
- o("p", Ms, [
1022
- k(u.$slots, "dialog-value", K(R(l)), () => [
1023
- H(_(l.valueTo || l.value), 1)
1020
+ k(u.$slots, "dialog", F(U(l))),
1021
+ o("p", ks, [
1022
+ k(u.$slots, "dialog-value", F(U(l)), () => [
1023
+ j(_(l.valueTo || l.value), 1)
1024
1024
  ])
1025
1025
  ])
1026
1026
  ])
1027
1027
  ])
1028
1028
  ]),
1029
1029
  _: 3
1030
- }, 8, ["size", "title"])) : z("", !0)
1030
+ }, 8, ["size", "title"])) : V("", !0)
1031
1031
  ]);
1032
1032
  };
1033
1033
  }
1034
- }), zs = {
1034
+ }), ws = {
1035
1035
  viewBox: "0 0 24 24",
1036
1036
  width: "1.2em",
1037
1037
  height: "1.2em"
1038
1038
  };
1039
- function Ss(e, n) {
1040
- return p(), v("svg", zs, [...n[0] || (n[0] = [
1039
+ function Cs(e, n) {
1040
+ return p(), v("svg", ws, [...n[0] || (n[0] = [
1041
1041
  o("path", {
1042
1042
  fill: "currentColor",
1043
1043
  d: "m6.265 3.807l1.147 1.639a8 8 0 1 0 9.176 0l1.147-1.639A9.99 9.99 0 0 1 22 12c0 5.523-4.477 10-10 10S2 17.523 2 12a9.99 9.99 0 0 1 4.265-8.193M11 12V2h2v10z"
1044
1044
  }, null, -1)
1045
1045
  ])]);
1046
1046
  }
1047
- const Vs = O({ name: "ri-shut-down-line", render: Ss }), Ts = { class: "flex justify-end" }, Es = { class: "flex justify-center py-4" }, Ma = /* @__PURE__ */ M({
1047
+ const Ss = O({ name: "ri-shut-down-line", render: Cs }), zs = { class: "flex justify-end" }, Vs = { class: "flex justify-center py-4" }, ba = /* @__PURE__ */ S({
1048
1048
  __name: "CardButton",
1049
1049
  props: {
1050
1050
  size: {},
@@ -1069,21 +1069,21 @@ const Vs = O({ name: "ri-shut-down-line", render: Ss }), Ts = { class: "flex jus
1069
1069
  return { disabled: d };
1070
1070
  }, r = () => s("setState", !l.value);
1071
1071
  return (c, d) => {
1072
- const m = Vs;
1073
- return p(), I(ae, j(l, {
1072
+ const m = Ss;
1073
+ return p(), I(ae, H(l, {
1074
1074
  onClick: d[0] || (d[0] = (a) => s("click", a)),
1075
1075
  onEdit: d[1] || (d[1] = (a) => s("edit", a)),
1076
1076
  onClone: d[2] || (d[2] = (a) => s("clone", a))
1077
1077
  }), {
1078
1078
  icon: x((a) => [
1079
- k(c.$slots, "icon", K(R(a)))
1079
+ k(c.$slots, "icon", F(U(a)))
1080
1080
  ]),
1081
1081
  header: x((a) => [
1082
- o("div", Ts, [
1083
- g(A, j(t(a), {
1082
+ o("div", zs, [
1083
+ g(A, H(t(a), {
1084
1084
  type: "icon",
1085
1085
  class: l.value ? "text-amber-500" : "text-gray-500",
1086
- onClick: F(r, ["stop"])
1086
+ onClick: R(r, ["stop"])
1087
1087
  }), {
1088
1088
  default: x(() => [
1089
1089
  g(m, { class: "size-8" })
@@ -1093,11 +1093,11 @@ const Vs = O({ name: "ri-shut-down-line", render: Ss }), Ts = { class: "flex jus
1093
1093
  ])
1094
1094
  ]),
1095
1095
  dialog: x((a) => [
1096
- o("div", Es, [
1097
- g(A, j(t(a), {
1096
+ o("div", Vs, [
1097
+ g(A, H(t(a), {
1098
1098
  type: "icon",
1099
1099
  class: ["size-18", l.value ? "text-amber-500" : "text-gray-500"],
1100
- onClick: F(r, ["stop"])
1100
+ onClick: R(r, ["stop"])
1101
1101
  }), {
1102
1102
  default: x(() => [
1103
1103
  g(m, { class: "size-16" })
@@ -1110,20 +1110,20 @@ const Vs = O({ name: "ri-shut-down-line", render: Ss }), Ts = { class: "flex jus
1110
1110
  }, 16);
1111
1111
  };
1112
1112
  }
1113
- }), Bs = {
1113
+ }), Ts = {
1114
1114
  viewBox: "0 0 24 24",
1115
1115
  width: "1.2em",
1116
1116
  height: "1.2em"
1117
1117
  };
1118
- function Ls(e, n) {
1119
- return p(), v("svg", Bs, [...n[0] || (n[0] = [
1118
+ function Es(e, n) {
1119
+ return p(), v("svg", Ts, [...n[0] || (n[0] = [
1120
1120
  o("path", {
1121
1121
  fill: "currentColor",
1122
1122
  d: "M12 22C6.477 22 2 17.523 2 12S6.477 2 12 2s10 4.477 10 10s-4.477 10-10 10m0-2a8 8 0 1 0 0-16a8 8 0 0 0 0 16m1-8h4v2h-6V7h2z"
1123
1123
  }, null, -1)
1124
1124
  ])]);
1125
1125
  }
1126
- const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-center relative mx-2 my-6" }, za = /* @__PURE__ */ M({
1126
+ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-center relative mx-2 my-6" }, xa = /* @__PURE__ */ S({
1127
1127
  __name: "CardDate",
1128
1128
  props: {
1129
1129
  size: {},
@@ -1156,28 +1156,28 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1156
1156
  a != null && a.showPicker && a.showPicker();
1157
1157
  };
1158
1158
  return (a, i) => {
1159
- const u = As;
1160
- return p(), I(ae, j(l, {
1159
+ const u = Ls;
1160
+ return p(), I(ae, H(l, {
1161
1161
  onClick: i[0] || (i[0] = (f) => s("click", f)),
1162
1162
  onEdit: i[1] || (i[1] = (f) => s("edit", f)),
1163
1163
  onClone: i[2] || (i[2] = (f) => s("clone", f))
1164
1164
  }), {
1165
1165
  icon: x((f) => [
1166
- k(a.$slots, "icon", K(R(f)))
1166
+ k(a.$slots, "icon", F(U(f)))
1167
1167
  ]),
1168
1168
  header: x((f) => [
1169
1169
  o("div", null, [
1170
1170
  g(A, {
1171
1171
  type: "icon",
1172
1172
  class: "text-gray-500",
1173
- onClick: F(m, ["stop"])
1173
+ onClick: R(m, ["stop"])
1174
1174
  }, {
1175
1175
  default: x(() => [
1176
1176
  g(u, { class: "size-7" })
1177
1177
  ]),
1178
1178
  _: 1
1179
1179
  }),
1180
- g(J, j({
1180
+ g(J, H({
1181
1181
  ref_key: "time",
1182
1182
  ref: t
1183
1183
  }, d(f), {
@@ -1189,8 +1189,8 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1189
1189
  ])
1190
1190
  ]),
1191
1191
  dialog: x((f) => [
1192
- o("div", Ds, [
1193
- g(J, j(d(f), {
1192
+ o("div", Bs, [
1193
+ g(J, H(d(f), {
1194
1194
  type: "datetime-local",
1195
1195
  onChange: c
1196
1196
  }), null, 16)
@@ -1200,15 +1200,15 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1200
1200
  }, 16);
1201
1201
  };
1202
1202
  }
1203
- }), Is = { class: "flex justify-end" }, Hs = { class: "flex justify-end" }, js = {
1204
- class: /* @__PURE__ */ T("text-blue-600 dark:text-blue-400")
1205
- }, Ps = {
1203
+ }), Ms = { class: "flex justify-end" }, As = { class: "flex justify-end" }, Ds = {
1204
+ class: /* @__PURE__ */ E("text-blue-600 dark:text-blue-400")
1205
+ }, Is = {
1206
1206
  width: "30",
1207
1207
  height: "30",
1208
1208
  viewBox: "-7.5 -7.5 75 75",
1209
1209
  version: "1.1",
1210
1210
  style: { transform: "rotate(-90deg)" }
1211
- }, Ns = ["stroke-dashoffset"], Os = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, Sa = /* @__PURE__ */ M({
1211
+ }, js = ["stroke-dashoffset"], Hs = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, ya = /* @__PURE__ */ S({
1212
1212
  __name: "CardDimmer",
1213
1213
  props: {
1214
1214
  size: {},
@@ -1228,30 +1228,30 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1228
1228
  },
1229
1229
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1230
1230
  setup(e, { emit: n }) {
1231
- const l = e, s = n, t = E(0), r = ({ opts: i, value: u }) => Math.round(100 * +u / ((i == null ? void 0 : i.max) || 255)), c = ({ opts: i, value: u }) => Math.round(187 - +u / ((i == null ? void 0 : i.max) || 255) * 187), d = ({ value: i, opts: u }) => {
1231
+ const l = e, s = n, t = L(0), r = ({ opts: i, value: u }) => Math.round(100 * +u / ((i == null ? void 0 : i.max) || 255)), c = ({ opts: i, value: u }) => Math.round(187 - +u / ((i == null ? void 0 : i.max) || 255) * 187), d = ({ value: i, opts: u }) => {
1232
1232
  const { min: f = 0, max: b = 255, step: h = 1, disabled: y } = u || {};
1233
1233
  return { min: f, max: b, step: h, value: i, disabled: !!y, class: y ? "" : "cursor-pointer" };
1234
1234
  }, m = (i) => s("setState", +i.target.value || 0), a = ({ value: i }) => {
1235
1235
  +i != 0 ? (t.value = +i, s("setState", 0)) : s("setState", i ? 0 : t.value || 255);
1236
1236
  };
1237
- return (i, u) => (p(), I(ae, j(l, {
1237
+ return (i, u) => (p(), I(ae, H(l, {
1238
1238
  onClick: u[0] || (u[0] = (f) => s("click", f)),
1239
1239
  onEdit: u[1] || (u[1] = (f) => s("edit", f)),
1240
1240
  onClone: u[2] || (u[2] = (f) => s("clone", f))
1241
1241
  }), {
1242
1242
  icon: x((f) => [
1243
- k(i.$slots, "icon", K(R(f)))
1243
+ k(i.$slots, "icon", F(U(f)))
1244
1244
  ]),
1245
1245
  header: x((f) => [
1246
- o("div", Is, [
1247
- o("div", Hs, [
1248
- g(A, j(d(f), {
1246
+ o("div", Ms, [
1247
+ o("div", As, [
1248
+ g(A, H(d(f), {
1249
1249
  type: "icon",
1250
- onClick: F((b) => a(f), ["stop"])
1250
+ onClick: R((b) => a(f), ["stop"])
1251
1251
  }), {
1252
1252
  default: x(() => [
1253
- o("div", js, [
1254
- (p(), v("svg", Ps, [
1253
+ o("div", Ds, [
1254
+ (p(), v("svg", Is, [
1255
1255
  u[3] || (u[3] = o("circle", {
1256
1256
  class: "stroke-gray-300 dark:stroke-gray-700",
1257
1257
  r: "30",
@@ -1270,7 +1270,7 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1270
1270
  "stroke-dashoffset": c(f),
1271
1271
  fill: "transparent",
1272
1272
  "stroke-dasharray": "187"
1273
- }, null, 8, Ns)
1273
+ }, null, 8, js)
1274
1274
  ]))
1275
1275
  ])
1276
1276
  ]),
@@ -1281,15 +1281,15 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1281
1281
  ]),
1282
1282
  dialog: x((f) => [
1283
1283
  o("div", {
1284
- class: T(["flex justify-center relative mx-2 my-6", d(f).disabled ? "opacity-40" : ""])
1284
+ class: E(["flex justify-center relative mx-2 my-6", d(f).disabled ? "opacity-40" : ""])
1285
1285
  }, [
1286
1286
  u[4] || (u[4] = o("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
1287
1287
  o("div", {
1288
1288
  class: "absolute h-10 top-0 left-0 bg-blue-600 dark:bg-blue-400 z-0 rounded-md transition-[width_0.3s_linear]",
1289
1289
  style: ve(`width: ${r(f)}%`)
1290
1290
  }, null, 4),
1291
- o("div", Os, _(r(f)) + " %", 1),
1292
- o("input", j({ type: "range" }, d(f), {
1291
+ o("div", Hs, _(r(f)) + " %", 1),
1292
+ o("input", H({ type: "range" }, d(f), {
1293
1293
  class: "w-full h-10 z-10 appearance-none opacity-0",
1294
1294
  onChange: m
1295
1295
  }), null, 16)
@@ -1298,7 +1298,7 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1298
1298
  _: 3
1299
1299
  }, 16));
1300
1300
  }
1301
- }), Va = /* @__PURE__ */ M({
1301
+ }), _a = /* @__PURE__ */ S({
1302
1302
  __name: "CardInfo",
1303
1303
  props: {
1304
1304
  size: {},
@@ -1319,13 +1319,13 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1319
1319
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1320
1320
  setup(e, { emit: n }) {
1321
1321
  const l = e, s = n;
1322
- return (t, r) => (p(), I(ae, j(l, {
1322
+ return (t, r) => (p(), I(ae, H(l, {
1323
1323
  onClick: r[0] || (r[0] = (c) => s("click", c)),
1324
1324
  onEdit: r[1] || (r[1] = (c) => s("edit", c)),
1325
1325
  onClone: r[2] || (r[2] = (c) => s("clone", c))
1326
1326
  }), {
1327
1327
  icon: x((c) => [
1328
- k(t.$slots, "icon", K(R(c)))
1328
+ k(t.$slots, "icon", F(U(c)))
1329
1329
  ]),
1330
1330
  default: x(() => [
1331
1331
  k(t.$slots, "dialog")
@@ -1333,7 +1333,7 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1333
1333
  _: 3
1334
1334
  }, 16));
1335
1335
  }
1336
- }), Us = { class: "flex justify-center relative mx-2 my-6" }, Ta = /* @__PURE__ */ M({
1336
+ }), Ps = { class: "flex justify-center relative mx-2 my-6" }, $a = /* @__PURE__ */ S({
1337
1337
  __name: "CardInput",
1338
1338
  props: {
1339
1339
  size: {},
@@ -1353,7 +1353,7 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1353
1353
  },
1354
1354
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1355
1355
  setup(e, { emit: n }) {
1356
- const l = e, s = n, t = E(l.value || ""), r = ({ name: d, opts: m = {} }) => {
1356
+ const l = e, s = n, t = L(l.value || ""), r = ({ name: d, opts: m = {} }) => {
1357
1357
  const { disabled: a } = m;
1358
1358
  return { label: d, disabled: a };
1359
1359
  }, c = (d) => s("setState", d.target.value);
@@ -1363,18 +1363,18 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1363
1363
  t.value = d;
1364
1364
  }
1365
1365
  ), (d, m) => {
1366
- const a = Re;
1367
- return p(), I(ae, j(l, {
1366
+ const a = Ue;
1367
+ return p(), I(ae, H(l, {
1368
1368
  onClick: m[1] || (m[1] = (i) => s("click", i)),
1369
1369
  onEdit: m[2] || (m[2] = (i) => s("edit", i)),
1370
1370
  onClone: m[3] || (m[3] = (i) => s("clone", i))
1371
1371
  }), {
1372
1372
  icon: x((i) => [
1373
- k(d.$slots, "icon", K(R(i)))
1373
+ k(d.$slots, "icon", F(U(i)))
1374
1374
  ]),
1375
1375
  dialog: x((i) => [
1376
- o("div", Us, [
1377
- g(J, j({
1376
+ o("div", Ps, [
1377
+ g(J, H({
1378
1378
  modelValue: t.value,
1379
1379
  "onUpdate:modelValue": m[0] || (m[0] = (u) => t.value = u)
1380
1380
  }, r(i), {
@@ -1392,20 +1392,20 @@ const As = O({ name: "ri-time-line", render: Ls }), Ds = { class: "flex justify-
1392
1392
  }, 16);
1393
1393
  };
1394
1394
  }
1395
- }), Ks = {
1395
+ }), Ns = {
1396
1396
  viewBox: "0 0 24 24",
1397
1397
  width: "1.2em",
1398
1398
  height: "1.2em"
1399
1399
  };
1400
- function Rs(e, n) {
1401
- return p(), v("svg", Ks, [...n[0] || (n[0] = [
1400
+ function Os(e, n) {
1401
+ return p(), v("svg", Ns, [...n[0] || (n[0] = [
1402
1402
  o("path", {
1403
1403
  fill: "currentColor",
1404
1404
  d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
1405
1405
  }, null, -1)
1406
1406
  ])]);
1407
1407
  }
1408
- const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify-center py-4" }, Ea = /* @__PURE__ */ M({
1408
+ const Ks = O({ name: "ri-list-check", render: Os }), Fs = { class: "flex justify-center py-4" }, ka = /* @__PURE__ */ S({
1409
1409
  __name: "CardList",
1410
1410
  props: {
1411
1411
  size: {},
@@ -1434,27 +1434,27 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
1434
1434
  return { label: d, modelValue: f, items: i, disabled: !!u };
1435
1435
  };
1436
1436
  return (d, m) => {
1437
- const a = Fs;
1438
- return p(), I(ae, j(l, {
1437
+ const a = Ks;
1438
+ return p(), I(ae, H(l, {
1439
1439
  onClick: m[1] || (m[1] = (i) => s("click", i)),
1440
1440
  onEdit: m[2] || (m[2] = (i) => s("edit", i)),
1441
1441
  onClone: m[3] || (m[3] = (i) => s("clone", i))
1442
1442
  }), {
1443
1443
  icon: x((i) => [
1444
- k(d.$slots, "icon", K(R(i)))
1444
+ k(d.$slots, "icon", F(U(i)))
1445
1445
  ]),
1446
1446
  value: x((i) => [
1447
- H(_(r(i)), 1)
1447
+ j(_(r(i)), 1)
1448
1448
  ]),
1449
1449
  "dialog-value": x((i) => [
1450
- H(_(r(i)), 1)
1450
+ j(_(r(i)), 1)
1451
1451
  ]),
1452
1452
  header: x((i) => [
1453
1453
  o("div", {
1454
- onClick: m[0] || (m[0] = F(() => {
1454
+ onClick: m[0] || (m[0] = R(() => {
1455
1455
  }, ["prevent", "stop"]))
1456
1456
  }, [
1457
- g(le, j(c(i), {
1457
+ g(le, H(c(i), {
1458
1458
  "is-popup": "",
1459
1459
  top: "0",
1460
1460
  left: "-115px",
@@ -1464,7 +1464,7 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
1464
1464
  g(A, {
1465
1465
  type: "icon",
1466
1466
  class: "text-gray-500",
1467
- onClick: F(u.click, ["stop"])
1467
+ onClick: R(u.click, ["stop"])
1468
1468
  }, {
1469
1469
  default: x(() => [
1470
1470
  g(a, { class: "size-6" })
@@ -1477,8 +1477,8 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
1477
1477
  ])
1478
1478
  ]),
1479
1479
  dialog: x((i) => [
1480
- o("div", Ws, [
1481
- g(le, j(c(i), {
1480
+ o("div", Fs, [
1481
+ g(le, H(c(i), {
1482
1482
  top: "-50%",
1483
1483
  left: "50%",
1484
1484
  onChange: t
@@ -1489,33 +1489,33 @@ const Fs = O({ name: "ri-list-check", render: Rs }), Ws = { class: "flex justify
1489
1489
  }, 16);
1490
1490
  };
1491
1491
  }
1492
- }), qs = {
1492
+ }), Us = {
1493
1493
  viewBox: "0 0 24 24",
1494
1494
  width: "1.2em",
1495
1495
  height: "1.2em"
1496
1496
  };
1497
- function Gs(e, n) {
1498
- return p(), v("svg", qs, [...n[0] || (n[0] = [
1497
+ function Rs(e, n) {
1498
+ return p(), v("svg", Us, [...n[0] || (n[0] = [
1499
1499
  o("path", {
1500
1500
  fill: "currentColor",
1501
1501
  d: "M15.5 5a3.5 3.5 0 1 0 0 7a3.5 3.5 0 0 0 0-7M10 8.5a5.5 5.5 0 1 1 10.032 3.117l2.675 2.676l-1.414 1.414l-2.675-2.675A5.5 5.5 0 0 1 10 8.5M3 4h5v2H3zm0 7h5v2H3zm18 7v2H3v-2z"
1502
1502
  }, null, -1)
1503
1503
  ])]);
1504
1504
  }
1505
- const Js = O({ name: "ri-menu-search-line", render: Gs }), Zs = {
1505
+ const Ws = O({ name: "ri-menu-search-line", render: Rs }), qs = {
1506
1506
  viewBox: "0 0 24 24",
1507
1507
  width: "1.2em",
1508
1508
  height: "1.2em"
1509
1509
  };
1510
- function Xs(e, n) {
1511
- return p(), v("svg", Zs, [...n[0] || (n[0] = [
1510
+ function Gs(e, n) {
1511
+ return p(), v("svg", qs, [...n[0] || (n[0] = [
1512
1512
  o("path", {
1513
1513
  fill: "currentColor",
1514
1514
  d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
1515
1515
  }, null, -1)
1516
1516
  ])]);
1517
1517
  }
1518
- const ge = O({ name: "ri-add-line", render: Xs }), Ys = { class: "flex w-full relative" }, Qs = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, el = ["disabled"], Fe = /* @__PURE__ */ M({
1518
+ const he = O({ name: "ri-add-line", render: Gs }), Js = { class: "flex w-full relative" }, Zs = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Xs = ["disabled"], Re = /* @__PURE__ */ S({
1519
1519
  __name: "VTextWrapper",
1520
1520
  props: {
1521
1521
  active: { type: Boolean },
@@ -1525,66 +1525,66 @@ const ge = O({ name: "ri-add-line", render: Xs }), Ys = { class: "flex w-full re
1525
1525
  },
1526
1526
  emits: ["icon"],
1527
1527
  setup(e, { emit: n }) {
1528
- const l = n, s = B(() => e.active ? "top-0 left-3 text-xs" : "top-1/2"), t = B(() => [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"]);
1528
+ const l = n, s = M(() => e.active ? "top-0 left-3 text-xs" : "top-1/2"), t = M(() => [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"]);
1529
1529
  return (r, c) => {
1530
- const d = ge;
1531
- return p(), v("div", Ys, [
1530
+ const d = he;
1531
+ return p(), v("div", Js, [
1532
1532
  o("div", {
1533
- class: T(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-primary/60", t.value])
1533
+ class: E(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-primary/60", t.value])
1534
1534
  }, [
1535
1535
  o("span", {
1536
- class: T(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", s.value])
1536
+ class: E(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", s.value])
1537
1537
  }, _(e.label), 3),
1538
- o("div", Qs, [
1538
+ o("div", Zs, [
1539
1539
  k(r.$slots, "default")
1540
1540
  ]),
1541
- e.hideIcon ? z("", !0) : (p(), v("button", {
1541
+ e.hideIcon ? V("", !0) : (p(), v("button", {
1542
1542
  key: 0,
1543
1543
  disabled: e.disabled,
1544
- class: T([{ "cursor-pointer": !e.disabled }, "h-full flex items-center justify-center text-gray-400 border-l border-gray-300 dark:border-gray-700/50 flex-[0_0_50px]"]),
1544
+ class: E([{ "cursor-pointer": !e.disabled }, "h-full flex items-center justify-center text-gray-400 border-l border-gray-300 dark:border-gray-700/50 flex-[0_0_50px]"]),
1545
1545
  onClick: c[0] || (c[0] = (m) => l("icon", m))
1546
1546
  }, [
1547
1547
  k(r.$slots, "icon", {}, () => [
1548
1548
  g(d, { class: "size-4" })
1549
1549
  ])
1550
- ], 10, el))
1550
+ ], 10, Xs))
1551
1551
  ], 2)
1552
1552
  ]);
1553
1553
  };
1554
1554
  }
1555
- }), tl = {
1555
+ }), Ys = {
1556
1556
  viewBox: "0 0 24 24",
1557
1557
  width: "1.2em",
1558
1558
  height: "1.2em"
1559
1559
  };
1560
- function nl(e, n) {
1561
- return p(), v("svg", tl, [...n[0] || (n[0] = [
1560
+ function Qs(e, n) {
1561
+ return p(), v("svg", Ys, [...n[0] || (n[0] = [
1562
1562
  o("path", {
1563
1563
  fill: "currentColor",
1564
1564
  d: "M7 6V3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1h-3v3c0 .552-.45 1-1.007 1H4.007A1 1 0 0 1 3 21l.003-14c0-.552.45-1 1.006-1zM5.002 8L5 20h10V8zM9 6h8v10h2V4H9z"
1565
1565
  }, null, -1)
1566
1566
  ])]);
1567
1567
  }
1568
- const sl = O({ name: "ri-file-copy-line", render: nl }), ll = {
1568
+ const el = O({ name: "ri-file-copy-line", render: Qs }), tl = {
1569
1569
  viewBox: "0 0 24 24",
1570
1570
  width: "1.2em",
1571
1571
  height: "1.2em"
1572
1572
  };
1573
- function ol(e, n) {
1574
- return p(), v("svg", ll, [...n[0] || (n[0] = [
1573
+ function nl(e, n) {
1574
+ return p(), v("svg", tl, [...n[0] || (n[0] = [
1575
1575
  o("path", {
1576
1576
  fill: "currentColor",
1577
1577
  d: "M2 4a1 1 0 0 1 1-1h7.414l2 2H21a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3c-.55 0-1-.45-1-1zm8.586 2l-1-1H4v2h5.586zM4 9v10h16V7h-7.586l-2 2z"
1578
1578
  }, null, -1)
1579
1579
  ])]);
1580
1580
  }
1581
- const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1581
+ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1582
1582
  key: 0,
1583
1583
  class: "me-1"
1584
- }, dl = { class: "dark:text-gray-300" }, cl = { class: "flex gap-3 items-center z-10" }, ul = {
1584
+ }, al = { class: "dark:text-gray-300" }, il = { class: "flex gap-3 items-center z-10" }, rl = {
1585
1585
  key: 0,
1586
1586
  class: "flex ps-5"
1587
- }, ml = { class: "font-medium dark:text-gray-300" }, We = /* @__PURE__ */ M({
1587
+ }, dl = { class: "font-medium dark:text-gray-300" }, We = /* @__PURE__ */ S({
1588
1588
  __name: "VListObject",
1589
1589
  props: {
1590
1590
  items: { default: () => ({}) },
@@ -1593,62 +1593,62 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1593
1593
  },
1594
1594
  emits: ["click"],
1595
1595
  setup(e, { emit: n }) {
1596
- const l = n, s = () => "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", t = E({}), { text: r, copy: c, copied: d, isSupported: m } = _t(), a = (b) => {
1596
+ const l = n, s = () => "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", t = L({}), { text: r, copy: c, copied: d, isSupported: m } = bt(), a = (b) => {
1597
1597
  t.value[b] = !t.value[b];
1598
1598
  }, i = (b) => typeof b == "object", u = (b) => `${e.path ? e.path + "." : ""}${b}`, f = (b, h) => {
1599
1599
  l("click", { key: b, path: u(b), isObject: h });
1600
1600
  };
1601
1601
  return (b, h) => {
1602
- const y = al, S = sl, V = ge;
1602
+ const y = sl, z = el, T = he;
1603
1603
  return p(), v("ul", null, [
1604
- (p(!0), v(L, null, N(e.items, (w, P) => (p(), v("li", {
1604
+ (p(!0), v(B, null, N(e.items, (w, P) => (p(), v("li", {
1605
1605
  key: P,
1606
- class: T(i(w) ? "" : `flex items-center ${s()}`)
1606
+ class: E(i(w) ? "" : `flex items-center ${s()}`)
1607
1607
  }, [
1608
1608
  o("div", {
1609
- class: T(["flex items-center cursor-pointer ps-2 h-8", i(w) ? `${s()}` : ""]),
1609
+ class: E(["flex items-center cursor-pointer ps-2 h-8", i(w) ? `${s()}` : ""]),
1610
1610
  onClick: (Z) => a(P)
1611
1611
  }, [
1612
- i(w) ? (p(), v("div", rl, [
1612
+ i(w) ? (p(), v("div", ol, [
1613
1613
  g(y, { class: "size-5" })
1614
- ])) : z("", !0),
1615
- o("div", dl, _(P), 1),
1614
+ ])) : V("", !0),
1615
+ o("div", al, _(P), 1),
1616
1616
  q(m) ? (p(), I(A, {
1617
1617
  key: 1,
1618
1618
  class: "opacity-20 hover:opacity-70 transition-all",
1619
1619
  color: "transparent",
1620
1620
  size: "sm",
1621
- onClick: F((Z) => q(c)(u(P)), ["stop"])
1621
+ onClick: R((Z) => q(c)(u(P)), ["stop"])
1622
1622
  }, {
1623
1623
  default: x(() => [
1624
- g(S, { class: "size-5" })
1624
+ g(z, { class: "size-5" })
1625
1625
  ]),
1626
1626
  _: 1
1627
- }, 8, ["onClick"])) : z("", !0),
1627
+ }, 8, ["onClick"])) : V("", !0),
1628
1628
  q(r) === u(P) ? (p(), v("span", {
1629
1629
  key: 2,
1630
- class: T(["text-gray-500 transition-all duration-1000 text-sm", q(d) ? "opacity-100" : "opacity-0"])
1631
- }, _(b.$t("copied")), 3)) : z("", !0),
1632
- !e.onlyValue && i(w) ? (p(), v(L, { key: 3 }, [
1630
+ class: E(["text-gray-500 transition-all duration-1000 text-sm", q(d) ? "opacity-100" : "opacity-0"])
1631
+ }, _(b.$t("copied")), 3)) : V("", !0),
1632
+ !e.onlyValue && i(w) ? (p(), v(B, { key: 3 }, [
1633
1633
  h[1] || (h[1] = o("div", { class: "flex-auto" }, null, -1)),
1634
- o("div", cl, [
1634
+ o("div", il, [
1635
1635
  g(A, {
1636
1636
  class: "opacity-20 hover:opacity-70 transition-all",
1637
1637
  color: "transparent",
1638
1638
  size: "sm",
1639
1639
  title: b.$t("add"),
1640
- onClick: F((Z) => f(P, i(w)), ["stop"])
1640
+ onClick: R((Z) => f(P, i(w)), ["stop"])
1641
1641
  }, {
1642
1642
  default: x(() => [
1643
- g(V, { class: "size-5" })
1643
+ g(T, { class: "size-5" })
1644
1644
  ]),
1645
1645
  _: 1
1646
1646
  }, 8, ["title", "onClick"])
1647
1647
  ])
1648
- ], 64)) : z("", !0)
1649
- ], 10, il),
1650
- i(w) ? (p(), v("div", ul, [
1651
- he(g(We, {
1648
+ ], 64)) : V("", !0)
1649
+ ], 10, ll),
1650
+ i(w) ? (p(), v("div", rl, [
1651
+ we(g(We, {
1652
1652
  class: "flex-auto",
1653
1653
  path: u(P),
1654
1654
  items: w,
@@ -1657,18 +1657,18 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1657
1657
  }, null, 8, ["path", "items", "onlyValue"]), [
1658
1658
  [st, t.value[P]]
1659
1659
  ])
1660
- ])) : (p(), v(L, { key: 1 }, [
1660
+ ])) : (p(), v(B, { key: 1 }, [
1661
1661
  h[2] || (h[2] = o("div", { class: "flex-auto gap-3" }, null, -1)),
1662
- o("div", ml, _(w), 1),
1662
+ o("div", dl, _(w), 1),
1663
1663
  g(A, {
1664
1664
  class: "opacity-20 hover:opacity-70 transition-all",
1665
1665
  color: "gray",
1666
1666
  size: "sm",
1667
1667
  title: b.$t("add"),
1668
- onClick: F((Z) => f(P, i(w)), ["stop"])
1668
+ onClick: R((Z) => f(P, i(w)), ["stop"])
1669
1669
  }, {
1670
1670
  default: x(() => [
1671
- g(V, { class: "size-5" })
1671
+ g(T, { class: "size-5" })
1672
1672
  ]),
1673
1673
  _: 1
1674
1674
  }, 8, ["title", "onClick"])
@@ -1677,15 +1677,16 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1677
1677
  ]);
1678
1678
  };
1679
1679
  }
1680
- }), pl = { class: "glass-inset rounded-md p-1" }, fl = { class: "flex gap-1" }, vl = ["onClick"], hl = { class: "px-4 py-2" }, gl = { class: "relative my-4" }, bl = { key: 0 }, xl = /* @__PURE__ */ M({
1680
+ }), cl = { class: "glass-inset rounded-md p-1" }, ul = { class: "flex gap-1" }, ml = ["onClick"], pl = { class: "relative my-4" }, fl = { key: 0 }, vl = /* @__PURE__ */ S({
1681
1681
  __name: "VTabs",
1682
1682
  props: {
1683
1683
  value: {},
1684
- items: {}
1684
+ items: {},
1685
+ size: { default: "md" }
1685
1686
  },
1686
1687
  emits: ["click"],
1687
1688
  setup(e, { expose: n, emit: l }) {
1688
- const s = l, t = E(e.value || 0), r = (d) => [
1689
+ const s = l, t = L(e.value || 0), r = (d) => [
1689
1690
  t.value === d ? "bg-primary/10 text-primary" : "text-gray-500 hover:bg-white/5 dark:text-white/50 dark:hover:bg-white/5"
1690
1691
  ], c = (d) => {
1691
1692
  t.value = d, s("click", d);
@@ -1694,9 +1695,9 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1694
1695
  setActiveTab: c,
1695
1696
  activeTab: t
1696
1697
  }), (d, m) => (p(), v("div", null, [
1697
- o("div", pl, [
1698
- o("div", fl, [
1699
- (p(!0), v(L, null, N(e.items, (a, i) => (p(), v("div", {
1698
+ o("div", cl, [
1699
+ o("div", ul, [
1700
+ (p(!0), v(B, null, N(e.items, (a, i) => (p(), v("div", {
1700
1701
  key: i,
1701
1702
  class: "relative flex-auto"
1702
1703
  }, [
@@ -1706,25 +1707,27 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1706
1707
  onClick: (u) => c(i)
1707
1708
  }, [
1708
1709
  o("div", {
1709
- class: T([r(i), "rounded-md px-3 py-2 font-medium text-lg transition"])
1710
+ class: E([[r(i), e.size === "sm" ? "px-2 py-1 text-xs" : "px-3 py-2 text-sm"], "rounded-md font-medium transition"])
1710
1711
  }, [
1711
1712
  k(d.$slots, "header", {
1712
1713
  tab: a,
1713
1714
  i
1714
1715
  }, () => [
1715
- o("div", hl, _(a.title), 1)
1716
+ o("div", {
1717
+ class: E(e.size === "sm" ? "px-2 py-0.5" : "px-3 py-1")
1718
+ }, _(a.title), 3)
1716
1719
  ])
1717
1720
  ], 2)
1718
- ], 8, vl)
1721
+ ], 8, ml)
1719
1722
  ]))), 128))
1720
1723
  ])
1721
1724
  ]),
1722
- o("div", gl, [
1723
- (p(!0), v(L, null, N(e.items, (a, i) => (p(), v("div", {
1725
+ o("div", pl, [
1726
+ (p(!0), v(B, null, N(e.items, (a, i) => (p(), v("div", {
1724
1727
  key: i,
1725
1728
  class: "tab-panel"
1726
1729
  }, [
1727
- g(ke, {
1730
+ g($e, {
1728
1731
  "enter-active-class": "transition-all duration-300 ease-out",
1729
1732
  "enter-from-class": "transform opacity-0 translate-x-2",
1730
1733
  "enter-to-class": "transform opacity-100 translate-x-0",
@@ -1733,9 +1736,9 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1733
1736
  "leave-to-class": "transform opacity-0 -translate-x-2"
1734
1737
  }, {
1735
1738
  default: x(() => [
1736
- t.value === i ? (p(), v("div", bl, [
1739
+ t.value === i ? (p(), v("div", fl, [
1737
1740
  k(d.$slots, `tab-${i}`)
1738
- ])) : z("", !0)
1741
+ ])) : V("", !0)
1739
1742
  ]),
1740
1743
  _: 2
1741
1744
  }, 1024)
@@ -1743,7 +1746,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1743
1746
  ])
1744
1747
  ]));
1745
1748
  }
1746
- }), yl = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, _l = ["title", "onMouseenter", "onMouseleave"], $l = { class: "flex flex-auto" }, kl = ["disabled"], xe = /* @__PURE__ */ M({
1749
+ }), hl = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, gl = ["title", "onMouseenter", "onMouseleave"], bl = { class: "flex flex-auto" }, xl = ["disabled"], be = /* @__PURE__ */ S({
1747
1750
  __name: "VFunc",
1748
1751
  props: {
1749
1752
  label: {},
@@ -1754,13 +1757,13 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1754
1757
  },
1755
1758
  emits: ["change", "icon", "hover"],
1756
1759
  setup(e, { emit: n }) {
1757
- const l = n, s = ["v", "a", "b", "c"], t = E(e.value || ""), r = (m) => {
1760
+ const l = n, s = ["v", "a", "b", "c"], t = L(e.value || ""), r = (m) => {
1758
1761
  try {
1759
1762
  return new Function(m), !0;
1760
1763
  } catch (a) {
1761
1764
  return console.warn(a), !1;
1762
1765
  }
1763
- }, c = Me((m) => {
1766
+ }, c = Se((m) => {
1764
1767
  const a = m.target;
1765
1768
  r(a.value) && l("change", a.value);
1766
1769
  }, 500), d = (m) => l("icon", m);
@@ -1770,8 +1773,8 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1770
1773
  e.value && (t.value = e.value);
1771
1774
  }
1772
1775
  ), (m, a) => {
1773
- const i = ce, u = ge;
1774
- return p(), I(Fe, {
1776
+ const i = de, u = he;
1777
+ return p(), I(Re, {
1775
1778
  active: !!e.value,
1776
1779
  disabled: e.disabled,
1777
1780
  label: e.label,
@@ -1788,39 +1791,39 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1788
1791
  }))
1789
1792
  ]),
1790
1793
  default: x(() => [
1791
- e.value ? (p(), v(L, { key: 0 }, [
1792
- o("div", yl, [
1793
- a[3] || (a[3] = H(" ( ", -1)),
1794
- (p(!0), v(L, null, N(e.args, (f, b) => (p(), v(L, { key: f }, [
1794
+ e.value ? (p(), v(B, { key: 0 }, [
1795
+ o("div", hl, [
1796
+ a[3] || (a[3] = j(" ( ", -1)),
1797
+ (p(!0), v(B, null, N(e.args, (f, b) => (p(), v(B, { key: f }, [
1795
1798
  o("span", {
1796
1799
  class: "text-blue-400/80",
1797
1800
  title: f,
1798
1801
  onMouseenter: (h) => l("hover", "enter", b),
1799
1802
  onMouseleave: (h) => l("hover", "leave", b)
1800
- }, _(s[b]), 41, _l),
1803
+ }, _(s[b]), 41, gl),
1801
1804
  a[2] || (a[2] = o("span", { class: "last:hidden" }, ",", -1))
1802
1805
  ], 64))), 128)),
1803
- a[4] || (a[4] = H(" ) => ", -1))
1806
+ a[4] || (a[4] = j(" ) => ", -1))
1804
1807
  ]),
1805
- o("div", $l, [
1806
- he(o("textarea", {
1808
+ o("div", bl, [
1809
+ we(o("textarea", {
1807
1810
  "onUpdate:modelValue": a[0] || (a[0] = (f) => t.value = f),
1808
1811
  class: "outline-0 w-full resize-none field-sizing-content",
1809
1812
  type: "text",
1810
1813
  disabled: e.disabled,
1811
1814
  onInput: a[1] || (a[1] = //@ts-ignore
1812
1815
  (...f) => q(c) && q(c)(...f))
1813
- }, null, 40, kl), [
1814
- [He, t.value]
1816
+ }, null, 40, xl), [
1817
+ [je, t.value]
1815
1818
  ])
1816
1819
  ])
1817
- ], 64)) : z("", !0)
1820
+ ], 64)) : V("", !0)
1818
1821
  ]),
1819
1822
  _: 1
1820
1823
  }, 8, ["active", "disabled", "label", "hideIcon"]);
1821
1824
  };
1822
1825
  }
1823
- }), wl = ["checked", "disabled"], Cl = { class: "text-sm ms-2 peer-disabled:opacity-40" }, Ml = /* @__PURE__ */ M({
1826
+ }), yl = ["checked", "disabled"], _l = { class: "text-sm ms-2 peer-disabled:opacity-40" }, $l = /* @__PURE__ */ S({
1824
1827
  __name: "VCheckbox",
1825
1828
  props: {
1826
1829
  modelValue: { type: [Number, Boolean], default: !1 },
@@ -1833,7 +1836,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1833
1836
  l("update:modelValue", c.checked);
1834
1837
  }, t = (r) => l("click", r);
1835
1838
  return (r, c) => (p(), v("label", {
1836
- class: T(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
1839
+ class: E(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
1837
1840
  onClick: t
1838
1841
  }, [
1839
1842
  o("input", {
@@ -1842,7 +1845,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1842
1845
  disabled: e.disabled,
1843
1846
  class: "peer size-5 appearance-none rounded-md border border-gray-300/80 bg-white/50 transition-all checked:border-[var(--accent-blue)] checked:bg-blue-50 dark:checked:border-[var(--accent-blue)] dark:checked:bg-[var(--accent-blue)] disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15 dark:bg-white/[0.04]",
1844
1847
  onChange: s
1845
- }, null, 40, wl),
1848
+ }, null, 40, yl),
1846
1849
  c[0] || (c[0] = o("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" }, [
1847
1850
  o("svg", {
1848
1851
  class: "h-3.5 w-3.5",
@@ -1858,18 +1861,18 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1858
1861
  })
1859
1862
  ])
1860
1863
  ], -1)),
1861
- o("span", Cl, [
1864
+ o("span", _l, [
1862
1865
  k(r.$slots, "default")
1863
1866
  ])
1864
1867
  ], 2));
1865
1868
  }
1866
- }), zl = { class: "flex flex-col" }, Sl = { class: "flex gap-4 mb-6" }, Vl = {
1869
+ }), kl = { class: "flex flex-col" }, wl = { class: "flex gap-4 mb-6" }, Cl = {
1867
1870
  key: 0,
1868
1871
  class: "flex gap-4"
1869
- }, Tl = {
1872
+ }, Sl = {
1870
1873
  key: 1,
1871
1874
  class: ""
1872
- }, El = { class: "flex flex-col md:flex-row gap-4" }, Bl = { class: "flex gap-4" }, Ll = { class: "flex justify-between flex-auto" }, Al = ["onClick"], Dl = /* @__PURE__ */ M({
1875
+ }, zl = { class: "flex flex-col md:flex-row gap-4" }, Vl = { class: "flex gap-4" }, Tl = { class: "flex justify-between flex-auto" }, El = ["onClick"], Ll = /* @__PURE__ */ S({
1873
1876
  __name: "ItemOptions",
1874
1877
  props: {
1875
1878
  min: { default: 0 },
@@ -1882,35 +1885,35 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1882
1885
  },
1883
1886
  emits: ["update"],
1884
1887
  setup(e, { emit: n }) {
1885
- const l = n, s = B(() => e.items.map((h, y) => ({ ...h, id: ++y }))), t = E({ name: "", value: "" }), r = B(() => e.items.length + 1), c = B(() => {
1888
+ const l = n, s = M(() => e.items.map((h, y) => ({ ...h, id: ++y }))), t = L({ name: "", value: "" }), r = M(() => e.items.length + 1), c = M(() => {
1886
1889
  var h;
1887
1890
  return !((h = t.value) != null && h.id);
1888
- }), d = (h) => e.type === h, m = (h, y) => l("update", h, y), a = (h) => h.map(({ name: y, value: S }) => ({ name: y, value: S })), i = ({ id: h, name: y, value: S }) => t.value = { id: h, name: y, value: S }, u = () => {
1891
+ }), d = (h) => e.type === h, m = (h, y) => l("update", h, y), a = (h) => h.map(({ name: y, value: z }) => ({ name: y, value: z })), i = ({ id: h, name: y, value: z }) => t.value = { id: h, name: y, value: z }, u = () => {
1889
1892
  const h = r.value;
1890
1893
  t.value = { name: `New_${h}`, value: `${h}`, id: h }, m("items", a([...s.value, t.value]));
1891
1894
  }, f = (h) => {
1892
1895
  t.value.name === h.name && (t.value = { name: "", value: "" }), m("items", a(s.value.filter((y) => y.value !== h.value)));
1893
- }, b = Me(() => {
1896
+ }, b = Se(() => {
1894
1897
  const h = t.value;
1895
1898
  if (!h.name || !h.value) return;
1896
- const y = s.value.map((S) => S.id === h.id ? h : S);
1899
+ const y = s.value.map((z) => z.id === h.id ? h : z);
1897
1900
  m("items", a(y));
1898
1901
  }, 300);
1899
1902
  return (h, y) => {
1900
- const S = ce, V = ge;
1901
- return p(), v("div", zl, [
1902
- o("div", Sl, [
1903
- g(Ml, {
1903
+ const z = de, T = he;
1904
+ return p(), v("div", kl, [
1905
+ o("div", wl, [
1906
+ g($l, {
1904
1907
  modelValue: e.disabled,
1905
1908
  "onUpdate:modelValue": y[0] || (y[0] = (w) => m("disabled", w ? 1 : 0))
1906
1909
  }, {
1907
1910
  default: x(() => [...y[6] || (y[6] = [
1908
- H("Disabled", -1)
1911
+ j("Disabled", -1)
1909
1912
  ])]),
1910
1913
  _: 1
1911
1914
  }, 8, ["modelValue"])
1912
1915
  ]),
1913
- d("dimmer") ? (p(), v("div", Vl, [
1916
+ d("dimmer") ? (p(), v("div", Cl, [
1914
1917
  g(J, {
1915
1918
  modelValue: e.min,
1916
1919
  label: "Min",
@@ -1926,9 +1929,9 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1926
1929
  label: "Step",
1927
1930
  "onUpdate:modelValue": y[3] || (y[3] = (w) => m("step", +w))
1928
1931
  }, null, 8, ["modelValue"])
1929
- ])) : z("", !0),
1930
- d("list") ? (p(), v("div", Tl, [
1931
- o("div", El, [
1932
+ ])) : V("", !0),
1933
+ d("list") ? (p(), v("div", Sl, [
1934
+ o("div", zl, [
1932
1935
  g(J, {
1933
1936
  modelValue: t.value.name,
1934
1937
  "onUpdate:modelValue": [
@@ -1948,7 +1951,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1948
1951
  label: "Value"
1949
1952
  }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
1950
1953
  ]),
1951
- o("div", Bl, [
1954
+ o("div", Vl, [
1952
1955
  g(le, {
1953
1956
  "model-value": t.value.value,
1954
1957
  label: "List",
@@ -1958,14 +1961,14 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1958
1961
  onChange: i
1959
1962
  }, {
1960
1963
  item: x(({ item: w }) => [
1961
- o("div", Ll, [
1964
+ o("div", Tl, [
1962
1965
  o("span", null, _(w.name), 1),
1963
1966
  o("button", {
1964
1967
  class: "cursor-pointer size-4",
1965
- onClick: F((P) => f(w), ["prevent", "stop"])
1968
+ onClick: R((P) => f(w), ["prevent", "stop"])
1966
1969
  }, [
1967
- g(S)
1968
- ], 8, Al)
1970
+ g(z)
1971
+ ], 8, El)
1969
1972
  ])
1970
1973
  ]),
1971
1974
  _: 1
@@ -1976,16 +1979,16 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1976
1979
  onClick: u
1977
1980
  }, {
1978
1981
  default: x(() => [
1979
- g(V)
1982
+ g(T)
1980
1983
  ]),
1981
1984
  _: 1
1982
1985
  })
1983
1986
  ])
1984
- ])) : z("", !0)
1987
+ ])) : V("", !0)
1985
1988
  ]);
1986
1989
  };
1987
1990
  }
1988
- }), Il = { class: "flex flex-col" }, Hl = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, jl = { class: "flex-auto order-1" }, Pl = { class: "flex-auto gap-x-2 order-1" }, Nl = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, Ol = { class: "flex gap-2 items-center" }, Ul = { class: "flex flex-col gap-4" }, Kl = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Rl = { class: "relative group" }, Fl = { class: "select-none" }, Wl = ["onClick"], ql = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, Gl = { class: "flex-[0_0_130px] size-[130px]" }, Jl = { class: "flex gap-4 justify-end" }, Zl = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, Ba = /* @__PURE__ */ M({
1991
+ }), Bl = { class: "flex flex-col" }, Ml = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, Al = { class: "flex-auto order-1" }, Dl = { class: "flex-auto gap-x-2 order-1" }, Il = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, jl = { class: "flex gap-2 items-center" }, Hl = { class: "flex flex-col gap-4" }, Pl = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Nl = { class: "relative group" }, Ol = { class: "select-none" }, Kl = ["onClick"], Fl = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, Ul = { class: "flex-[0_0_130px] size-[130px]" }, Rl = { class: "flex gap-4 justify-end" }, Wl = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, wa = /* @__PURE__ */ S({
1989
1992
  __name: "ItemEdit",
1990
1993
  props: {
1991
1994
  items: {},
@@ -1996,7 +1999,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
1996
1999
  },
1997
2000
  emits: ["button"],
1998
2001
  setup(e, { emit: n }) {
1999
- const l = n, s = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = E({
2002
+ const l = n, s = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = L({
2000
2003
  id: "",
2001
2004
  name: "",
2002
2005
  type: "button",
@@ -2006,16 +2009,16 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2006
2009
  set: "",
2007
2010
  get: "",
2008
2011
  getTo: ""
2009
- }), r = E(!1), c = B(() => {
2012
+ }), r = L(!1), c = M(() => {
2010
2013
  var $;
2011
2014
  return !(($ = e.item) != null && $.id);
2012
- }), d = B(() => !!e.items.filter(($) => {
2015
+ }), d = M(() => !!e.items.filter(($) => {
2013
2016
  var C;
2014
2017
  return $.id !== ((C = e.item) == null ? void 0 : C.id);
2015
- }).find(($) => $.id === (t == null ? void 0 : t.value.id))), m = B(() => t.value.type === "info"), a = B(() => {
2018
+ }).find(($) => $.id === (t == null ? void 0 : t.value.id))), m = M(() => t.value.type === "info"), a = M(() => {
2016
2019
  var $;
2017
2020
  return ($ = t.value.args) == null ? void 0 : $.length;
2018
- }), i = B(() => t.value.args.length > 3), u = B(() => {
2021
+ }), i = M(() => t.value.args.length > 3), u = M(() => {
2019
2022
  if (d.value) return !0;
2020
2023
  const { id: $, args: C } = t.value;
2021
2024
  return !$ || !C.length;
@@ -2024,11 +2027,11 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2024
2027
  t.value.type = C, delete t.value.opts, ["button", "list", "dimmer"].includes(C) && ($ === "button" && (t.value.opts = {}), $ === "list" && (t.value.opts = { items: [] }), $ === "dimmer" && (t.value.opts = { min: 0, max: 255, step: 1 }));
2025
2028
  }, h = ($) => {
2026
2029
  $ === "get" && (t.value.get ? delete t.value.get : t.value.get = "v"), $ === "set" && (t.value.set ? delete t.value.set : t.value.set = "v"), $ === "getTo" && (t.value.getTo ? delete t.value.getTo : t.value.getTo = "v");
2027
- }, y = ($) => l("button", $, t.value), S = ($) => t.value.args = t.value.args.filter((C) => C !== $), V = ({ path: $ }) => {
2030
+ }, y = ($) => l("button", $, t.value), z = ($) => t.value.args = t.value.args.filter((C) => C !== $), T = ({ path: $ }) => {
2028
2031
  !t.value.args.length && !t.value.id && (t.value.id = $), t.value.args.push($), r.value = !1;
2029
- }, w = E(-1), P = ($) => w.value === $, Z = ($, C) => {
2032
+ }, w = L(-1), P = ($) => w.value === $, Z = ($, C) => {
2030
2033
  $ === "enter" && (w.value = C), $ === "leave" && (w.value = -1);
2031
- }, be = ($, C) => {
2034
+ }, ge = ($, C) => {
2032
2035
  $ === "set" && (t.value.set = C), $ === "get" && (t.value.get = C), $ === "getTo" && (t.value.getTo = C), C || delete t.value[$];
2033
2036
  }, Ye = () => {
2034
2037
  r.value = !0;
@@ -2037,19 +2040,19 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2037
2040
  };
2038
2041
  return Q(() => {
2039
2042
  var $;
2040
- ($ = e.item) != null && $.id && (t.value = bt(e.item));
2043
+ ($ = e.item) != null && $.id && (t.value = vt(e.item));
2041
2044
  }), ($, C) => {
2042
- const et = Js, tt = ce;
2043
- return p(), v("div", Il, [
2044
- o("div", Hl, [
2045
- o("div", jl, [
2046
- g(xl, {
2045
+ const et = Ws, tt = de;
2046
+ return p(), v("div", Bl, [
2047
+ o("div", Ml, [
2048
+ o("div", Al, [
2049
+ g(vl, {
2047
2050
  class: "flex-auto min-h-75",
2048
2051
  value: 0,
2049
2052
  items: s
2050
2053
  }, {
2051
2054
  "tab-0": x(() => [
2052
- o("div", Pl, [
2055
+ o("div", Dl, [
2053
2056
  g(J, {
2054
2057
  modelValue: t.value.id,
2055
2058
  "onUpdate:modelValue": C[0] || (C[0] = (D) => t.value.id = D),
@@ -2077,7 +2080,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2077
2080
  "onUpdate:modelValue": C[1] || (C[1] = (D) => t.value.name = D),
2078
2081
  label: "Name"
2079
2082
  }, null, 8, ["modelValue"]),
2080
- o("div", Nl, [
2083
+ o("div", Il, [
2081
2084
  g(le, {
2082
2085
  "model-value": t.value.icon,
2083
2086
  bottom: "0",
@@ -2088,7 +2091,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2088
2091
  onChange: f
2089
2092
  }, {
2090
2093
  item: x(({ item: D }) => [
2091
- o("div", Ol, [
2094
+ o("div", jl, [
2092
2095
  k($.$slots, "icon", {
2093
2096
  icon: D.value
2094
2097
  }),
@@ -2109,70 +2112,70 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2109
2112
  ])
2110
2113
  ]),
2111
2114
  "tab-1": x(() => [
2112
- o("div", Ul, [
2113
- g(Fe, {
2115
+ o("div", Hl, [
2116
+ g(Re, {
2114
2117
  active: !!t.value.args.length,
2115
2118
  disabled: i.value,
2116
2119
  label: "Arguments",
2117
2120
  onIcon: C[2] || (C[2] = (D) => r.value = !0)
2118
2121
  }, {
2119
2122
  default: x(() => [
2120
- o("div", Kl, [
2121
- (p(!0), v(L, null, N(t.value.args, (D, Ve) => (p(), v("div", {
2123
+ o("div", Pl, [
2124
+ (p(!0), v(B, null, N(t.value.args, (D, Te) => (p(), v("div", {
2122
2125
  key: D,
2123
2126
  class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
2124
2127
  }, [
2125
- o("div", Rl, [
2126
- o("span", Fl, _(D), 1),
2128
+ o("div", Nl, [
2129
+ o("span", Ol, _(D), 1),
2127
2130
  o("div", {
2128
- class: T(["fixed left-1/2 top-1/2 p-4 text-white bg-gray-900 rounded-md group-hover:visible invisible opacity-0 group-hover:opacity-100 z-50 transition-all -translate-1/2", P(Ve) ? "visible opacity-100" : ""])
2131
+ class: E(["fixed left-1/2 top-1/2 p-4 text-white bg-gray-900 rounded-md group-hover:visible invisible opacity-0 group-hover:opacity-100 z-50 transition-all -translate-1/2", P(Te) ? "visible opacity-100" : ""])
2129
2132
  }, [
2130
- o("pre", null, _(q(kt)(D, e.object)), 1)
2133
+ o("pre", null, _(q(yt)(D, e.object)), 1)
2131
2134
  ], 2)
2132
2135
  ]),
2133
- Ve || t.value.args.length < 2 ? (p(), v("button", {
2136
+ Te || t.value.args.length < 2 ? (p(), v("button", {
2134
2137
  key: 0,
2135
2138
  class: "cursor-pointer ms-1",
2136
- onClick: (aa) => S(D)
2139
+ onClick: (Yo) => z(D)
2137
2140
  }, [
2138
2141
  g(tt, { class: "size-5" })
2139
- ], 8, Wl)) : z("", !0)
2142
+ ], 8, Kl)) : V("", !0)
2140
2143
  ]))), 128))
2141
2144
  ])
2142
2145
  ]),
2143
2146
  _: 1
2144
2147
  }, 8, ["active", "disabled"]),
2145
- g(xe, {
2148
+ g(be, {
2146
2149
  value: t.value.set,
2147
2150
  args: t.value.args,
2148
2151
  disabled: !a.value || m.value,
2149
2152
  label: "Set",
2150
2153
  onIcon: C[3] || (C[3] = (D) => h("set")),
2151
2154
  onHover: Z,
2152
- onChange: C[4] || (C[4] = (D) => be("set", D))
2155
+ onChange: C[4] || (C[4] = (D) => ge("set", D))
2153
2156
  }, null, 8, ["value", "args", "disabled"]),
2154
- g(xe, {
2157
+ g(be, {
2155
2158
  value: t.value.get,
2156
2159
  args: t.value.args,
2157
2160
  disabled: !a.value,
2158
2161
  label: "Get",
2159
2162
  onIcon: C[5] || (C[5] = (D) => h("get")),
2160
2163
  onHover: Z,
2161
- onChange: C[6] || (C[6] = (D) => be("get", D))
2164
+ onChange: C[6] || (C[6] = (D) => ge("get", D))
2162
2165
  }, null, 8, ["value", "args", "disabled"]),
2163
- g(xe, {
2166
+ g(be, {
2164
2167
  value: t.value.getTo,
2165
2168
  args: t.value.args,
2166
2169
  disabled: !a.value,
2167
2170
  label: "GetTo",
2168
2171
  onIcon: C[7] || (C[7] = (D) => h("getTo")),
2169
2172
  onHover: Z,
2170
- onChange: C[8] || (C[8] = (D) => be("getTo", D))
2173
+ onChange: C[8] || (C[8] = (D) => ge("getTo", D))
2171
2174
  }, null, 8, ["value", "args", "disabled"])
2172
2175
  ])
2173
2176
  ]),
2174
2177
  "tab-2": x(() => [
2175
- g(Dl, j(t.value.opts, {
2178
+ g(Ll, H(t.value.opts, {
2176
2179
  value: t.value.value,
2177
2180
  type: t.value.type,
2178
2181
  onUpdate: Qe
@@ -2181,13 +2184,13 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2181
2184
  _: 3
2182
2185
  })
2183
2186
  ]),
2184
- o("div", ql, [
2185
- o("div", Gl, [
2187
+ o("div", Fl, [
2188
+ o("div", Ul, [
2186
2189
  k($.$slots, "default", { item: t.value })
2187
2190
  ])
2188
2191
  ])
2189
2192
  ]),
2190
- o("div", Jl, [
2193
+ o("div", Rl, [
2191
2194
  g(A, {
2192
2195
  class: "px-4",
2193
2196
  color: "blue",
@@ -2195,7 +2198,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2195
2198
  onClick: C[9] || (C[9] = (D) => y(c.value ? "add" : "save"))
2196
2199
  }, {
2197
2200
  default: x(() => [
2198
- H(_(c.value ? $.$t("add") : $.$t("save")), 1)
2201
+ j(_(c.value ? $.$t("add") : $.$t("save")), 1)
2199
2202
  ]),
2200
2203
  _: 1
2201
2204
  }, 8, ["disabled"]),
@@ -2206,7 +2209,7 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2206
2209
  onClick: C[10] || (C[10] = (D) => y("remove"))
2207
2210
  }, {
2208
2211
  default: x(() => [
2209
- H(_($.$t("remove")), 1)
2212
+ j(_($.$t("remove")), 1)
2210
2213
  ]),
2211
2214
  _: 1
2212
2215
  })
@@ -2218,39 +2221,39 @@ const al = O({ name: "ri-folder6-line", render: ol }), il = ["onClick"], rl = {
2218
2221
  onClose: C[11] || (C[11] = (D) => r.value = !1)
2219
2222
  }, {
2220
2223
  default: x(() => [
2221
- o("div", Zl, [
2224
+ o("div", Wl, [
2222
2225
  g(We, {
2223
2226
  items: e.object,
2224
2227
  onlyValue: !a.value,
2225
- onClick: V
2228
+ onClick: T
2226
2229
  }, null, 8, ["items", "onlyValue"])
2227
2230
  ])
2228
2231
  ]),
2229
2232
  _: 1
2230
- }, 8, ["title"])) : z("", !0)
2233
+ }, 8, ["title"])) : V("", !0)
2231
2234
  ]);
2232
2235
  };
2233
2236
  }
2234
- }), Te = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, Xl = { lineHeight: "inherit", whiteSpace: "pre-wrap", wordBreak: "keep-all", overflowWrap: "break-word", background: "none", position: "absolute", width: "100%", height: "100%", zIndex: "1", resize: "none", caretColor: "currentColor", padding: "inherit", outline: "none", fontSize: "inherit", fontFamily: "inherit", letterSpacing: "inherit", boxSizing: "border-box", border: "none", top: "0px", left: "0px", color: "inherit", overflow: "hidden", "-webkit-font-smoothing": "antialiased", "-webkit-text-fill-color": "transparent" }, Yl = { lineHeight: "inherit", position: "relative", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "0", width: "100%", margin: "0", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, Ql = { lineHeight: "inherit", position: "absolute", width: "100%", height: "100%", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "inherit", margin: "0", top: "0px", left: "0px", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, qe = (e) => Ge(e);
2235
- function Ee(e) {
2237
+ }), Ee = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, ql = { lineHeight: "inherit", whiteSpace: "pre-wrap", wordBreak: "keep-all", overflowWrap: "break-word", background: "none", position: "absolute", width: "100%", height: "100%", zIndex: "1", resize: "none", caretColor: "currentColor", padding: "inherit", outline: "none", fontSize: "inherit", fontFamily: "inherit", letterSpacing: "inherit", boxSizing: "border-box", border: "none", top: "0px", left: "0px", color: "inherit", overflow: "hidden", "-webkit-font-smoothing": "antialiased", "-webkit-text-fill-color": "transparent" }, Gl = { lineHeight: "inherit", position: "relative", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "0", width: "100%", margin: "0", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, Jl = { lineHeight: "inherit", position: "absolute", width: "100%", height: "100%", whiteSpace: "pre-wrap", wordBreak: "keep-all", padding: "inherit", margin: "0", top: "0px", left: "0px", pointerEvents: "none", boxSizing: "border-box", overflowWrap: "break-word", fontFamily: "inherit" }, qe = (e) => Ge(e);
2238
+ function Le(e) {
2236
2239
  const n = Array.isArray(e) ? e : [e];
2237
2240
  return n.length === 0 ? qe : (l) => n.reduce((s, t, r) => t(s, { html: r > 0 }), l);
2238
2241
  }
2239
- class eo {
2242
+ class Zl {
2240
2243
  constructor(n, l = {}) {
2241
2244
  if (this.lines = null, !n) throw new Error("selector is not defined");
2242
2245
  if (this.root = n instanceof Node ? n : document.querySelector(n), !this.root) throw new Error(`element with "${n}" selector is not exist`);
2243
2246
  const s = { value: "", styles: {}, plugins: [], highlighter: qe }, { highlighters: t, ...r } = l;
2244
- this.options = { ...s, ...r, highlighter: t ? Ee(t) : s.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
2247
+ this.options = { ...s, ...r, highlighter: t ? Le(t) : s.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
2245
2248
  }
2246
2249
  init() {
2247
2250
  this.textarea = document.createElement("textarea"), this.textarea.setAttribute("spellcheck", "false"), this.textarea.setAttribute("autocapitalize", "off"), this.textarea.setAttribute("autocorrect", "off"), this.textarea.setAttribute("autocomplete", "off"), this.pre = document.createElement("pre");
2248
- const n = Object.keys(Te).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
2251
+ const n = Object.keys(Ee).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
2249
2252
  this.initialRootStyles = {};
2250
2253
  const l = this.root.style;
2251
2254
  n.forEach((s) => {
2252
2255
  this.initialRootStyles[s] = l[s] || "";
2253
- }), Object.assign(this.root.style, Te, this.options.styles), Object.assign(this.textarea.style, Xl), Object.assign(this.pre.style, Yl), this.basePaddingLeft = this.root.style.paddingLeft || "", this.root.appendChild(this.textarea), this.root.appendChild(this.pre), this.addTextareaEvents(), this.update({ value: this.options.value }), this.updateLines();
2256
+ }), Object.assign(this.root.style, Ee, this.options.styles), Object.assign(this.textarea.style, ql), Object.assign(this.pre.style, Gl), this.basePaddingLeft = this.root.style.paddingLeft || "", this.root.appendChild(this.textarea), this.root.appendChild(this.pre), this.addTextareaEvents(), this.update({ value: this.options.value }), this.updateLines();
2254
2257
  }
2255
2258
  addTextareaEvents() {
2256
2259
  this.handleEvent = (n) => {
@@ -2272,13 +2275,13 @@ class eo {
2272
2275
  updateOptions(n) {
2273
2276
  if (!this.textarea) return;
2274
2277
  const { highlighters: l, ...s } = n;
2275
- if (this.options = { ...this.options, ...s, highlighter: l ? Ee(l) : this.options.highlighter }, n.styles) {
2278
+ if (this.options = { ...this.options, ...s, highlighter: l ? Le(l) : this.options.highlighter }, n.styles) {
2276
2279
  const t = this.root.style;
2277
2280
  Object.keys(n.styles).forEach((r) => {
2278
2281
  r in this.initialRootStyles || (this.initialRootStyles[r] = t[r] || "");
2279
2282
  }), Object.assign(this.root.style, n.styles), ("paddingLeft" in n.styles || "padding" in n.styles) && (this.basePaddingLeft = this.root.style.paddingLeft || "");
2280
2283
  }
2281
- this.lines && !this.options.lineNumbers && (ue(this.lines), this.lines = null, this.root.style.paddingLeft = this.basePaddingLeft), n.value != null && this.update({ value: n.value }), this.render();
2284
+ this.lines && !this.options.lineNumbers && (ce(this.lines), this.lines = null, this.root.style.paddingLeft = this.basePaddingLeft), n.value != null && this.update({ value: n.value }), this.render();
2282
2285
  }
2283
2286
  render() {
2284
2287
  const n = this.options.highlighter(this.value);
@@ -2286,35 +2289,35 @@ class eo {
2286
2289
  }
2287
2290
  updateLines() {
2288
2291
  if (!this.options.lineNumbers) return;
2289
- this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Ql));
2292
+ this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Jl));
2290
2293
  const n = this.value.split(`
2291
2294
  `), l = n.length.toString().length;
2292
2295
  this.root.style.paddingLeft = `${l + 1}ch`, this.lines.innerHTML = n.map((s, t) => `${`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${l}ch; text-align: right">${1 + t}</span>`}${`<span style="color: transparent; pointer-events: none">${Ge(s)}</span>`}`).join(`
2293
2296
  `);
2294
2297
  }
2295
2298
  destroy() {
2296
- this.textarea && (this.textarea.removeEventListener("input", this.handleEvent), this.textarea.removeEventListener("keydown", this.handleEvent), this.textarea.removeEventListener("compositionend", this.handleEvent), ue(this.textarea), ue(this.pre), ue(this.lines), Object.assign(this.root.style, this.initialRootStyles), Object.assign(this, { textarea: null, pre: null, lines: null, updateCallback: null, handleEvent: null, initialRootStyles: null, options: null, root: null }));
2299
+ this.textarea && (this.textarea.removeEventListener("input", this.handleEvent), this.textarea.removeEventListener("keydown", this.handleEvent), this.textarea.removeEventListener("compositionend", this.handleEvent), ce(this.textarea), ce(this.pre), ce(this.lines), Object.assign(this.root.style, this.initialRootStyles), Object.assign(this, { textarea: null, pre: null, lines: null, updateCallback: null, handleEvent: null, initialRootStyles: null, options: null, root: null }));
2297
2300
  }
2298
2301
  onUpdate(n) {
2299
2302
  this.updateCallback = n;
2300
2303
  }
2301
2304
  }
2302
- function ue(e) {
2305
+ function ce(e) {
2303
2306
  e && e.parentNode && e.parentNode.removeChild(e);
2304
2307
  }
2305
2308
  function Ge(e) {
2306
2309
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
2307
2310
  }
2308
- const Be = { alt: "altKey", control: "ctrlKey", ctrl: "ctrlKey", meta: "metaKey", shift: "shiftKey", "ctrl/cmd": typeof window < "u" && window.navigator && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "metaKey" : "ctrlKey" }, to = { add: "=" }, no = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
2311
+ const Be = { alt: "altKey", control: "ctrlKey", ctrl: "ctrlKey", meta: "metaKey", shift: "shiftKey", "ctrl/cmd": typeof window < "u" && window.navigator && /Mac|iPod|iPhone|iPad/.test(window.navigator.platform) ? "metaKey" : "ctrlKey" }, Xl = { add: "=" }, Yl = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
2309
2312
  function re(e, n) {
2310
- const l = e.split("+").reduce((m, a) => Be[a] ? (m.modifiers[Be[a]] = !0, m) : { ...m, key: to[a] || a.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), s = Object.keys(l.modifiers).every((m) => l.modifiers[m] ? n[m] : !n[m]);
2313
+ const l = e.split("+").reduce((m, a) => Be[a] ? (m.modifiers[Be[a]] = !0, m) : { ...m, key: Xl[a] || a.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), s = Object.keys(l.modifiers).every((m) => l.modifiers[m] ? n[m] : !n[m]);
2311
2314
  if (!l.key) return s;
2312
- const t = n.key != null && n.key.toLowerCase() === l.key, r = (c = l.key, /^[a-z]$/.test(c) ? `key${c}` : /^[0-9]$/.test(c) ? `digit${c}` : no[c] || null);
2315
+ const t = n.key != null && n.key.toLowerCase() === l.key, r = (c = l.key, /^[a-z]$/.test(c) ? `key${c}` : /^[0-9]$/.test(c) ? `digit${c}` : Yl[c] || null);
2313
2316
  var c;
2314
2317
  const d = !n.isComposing && r != null && n.code != null && n.code.toLowerCase() === r;
2315
2318
  return s && (t || d);
2316
2319
  }
2317
- function so(e = {}) {
2320
+ function Ql(e = {}) {
2318
2321
  const n = Math.max(1, e.limit == null ? 300 : e.limit), l = e.coalesceMs == null ? 300 : e.coalesceMs;
2319
2322
  let s = [], t = null, r = null;
2320
2323
  const c = (d) => {
@@ -2333,7 +2336,7 @@ function so(e = {}) {
2333
2336
  }
2334
2337
  };
2335
2338
  }
2336
- const lo = () => (e, n) => {
2339
+ const eo = () => (e, n) => {
2337
2340
  const { value: l, selectionStart: s, selectionEnd: t } = e;
2338
2341
  if (!re("enter", n) || n.type !== "keydown") return;
2339
2342
  const r = l.substring(0, s).split(`
@@ -2343,7 +2346,7 @@ const lo = () => (e, n) => {
2343
2346
  const d = `
2344
2347
  ` + c[0];
2345
2348
  return { value: l.substring(0, s) + d + l.substring(t), selectionStart: s + d.length, selectionEnd: s + d.length };
2346
- }, oo = () => (e, n) => {
2349
+ }, to = () => (e, n) => {
2347
2350
  if (typeof KeyboardEvent > "u" || !(n instanceof KeyboardEvent) || n.key !== "Enter")
2348
2351
  return;
2349
2352
  const { value: l, selectionStart: s, selectionEnd: t } = e;
@@ -2364,34 +2367,34 @@ const lo = () => (e, n) => {
2364
2367
  selectionEnd: f
2365
2368
  };
2366
2369
  };
2367
- let ze = [], W = null, U = 0, X = [], ee = null, te = null, Se, Je, G = null, se = null;
2368
- const ao = (e) => {
2370
+ let ze = [], W = null, K = 0, X = [], ee = null, te = null, Ve, Je, G = null, se = null;
2371
+ const no = (e) => {
2369
2372
  const { customSuggestions: n = [], minPrefixLength: l = 1, maxSuggestions: s = 20, tabSize: t = 2, tooltip: r = { enabled: !0 }, i18n: c, renderMenu: d, renderTooltip: m } = e;
2370
2373
  if (!d || !m)
2371
2374
  throw new Error("renderMenu and renderTooltip are required");
2372
- return ze = [...n].map((a) => c(a)), Se = d, Je = m, (a, i) => {
2375
+ return ze = [...n].map((a) => c(a)), Ve = d, Je = m, (a, i) => {
2373
2376
  if (typeof KeyboardEvent > "u" || !(i instanceof KeyboardEvent))
2374
2377
  return;
2375
2378
  const { value: u, selectionStart: f } = a, b = i.target;
2376
2379
  if (te = b, r.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
2377
- setTimeout(() => Le(b), 100);
2380
+ setTimeout(() => Me(b), 100);
2378
2381
  }), b.addEventListener("keyup", () => {
2379
- setTimeout(() => Le(b), 100);
2382
+ setTimeout(() => Me(b), 100);
2380
2383
  })), W) {
2381
2384
  switch (i.key) {
2382
2385
  case "ArrowDown":
2383
- return i.preventDefault(), U < X.length - 1 && (U++, ne()), { ...a };
2386
+ return i.preventDefault(), K < X.length - 1 && (K++, ne()), { ...a };
2384
2387
  case "ArrowUp":
2385
- return i.preventDefault(), U > 0 && (U--, ne()), { ...a };
2388
+ return i.preventDefault(), K > 0 && (K--, ne()), { ...a };
2386
2389
  case "Enter":
2387
- if (i.preventDefault(), X[U]) {
2388
- const h = _e(a, X[U]);
2390
+ if (i.preventDefault(), X[K]) {
2391
+ const h = ye(a, X[K]);
2389
2392
  return Y(), h;
2390
2393
  }
2391
2394
  return;
2392
2395
  case "Tab":
2393
- if (i.preventDefault(), X[U]) {
2394
- const h = _e(a, X[U]);
2396
+ if (i.preventDefault(), X[K]) {
2397
+ const h = ye(a, X[K]);
2395
2398
  return Y(), h;
2396
2399
  }
2397
2400
  return;
@@ -2400,12 +2403,12 @@ const ao = (e) => {
2400
2403
  case "Backspace":
2401
2404
  setTimeout(() => {
2402
2405
  if (te) {
2403
- const h = te.value, y = te.selectionStart, S = fe(h, y), V = h.slice(S, y);
2404
- if (V.length < l)
2406
+ const h = te.value, y = te.selectionStart, z = fe(h, y), T = h.slice(z, y);
2407
+ if (T.length < l)
2405
2408
  Y();
2406
2409
  else {
2407
- const w = ye(V).slice(0, s);
2408
- w.length === 0 ? Y() : (X = w, U = 0, ne());
2410
+ const w = xe(T).slice(0, s);
2411
+ w.length === 0 ? Y() : (X = w, K = 0, ne());
2409
2412
  }
2410
2413
  }
2411
2414
  }, 0);
@@ -2418,13 +2421,13 @@ const ao = (e) => {
2418
2421
  i.preventDefault();
2419
2422
  const h = fe(u, f), y = u.slice(h, f);
2420
2423
  if (y.length > 0) {
2421
- const P = ye(y);
2424
+ const P = xe(y);
2422
2425
  if (P.length > 0)
2423
- return _e(a, P[0]);
2426
+ return ye(a, P[0]);
2424
2427
  }
2425
- const S = " ".repeat(t), V = u.slice(0, f) + S + u.slice(f), w = f + t;
2428
+ const z = " ".repeat(t), T = u.slice(0, f) + z + u.slice(f), w = f + t;
2426
2429
  return {
2427
- value: V,
2430
+ value: T,
2428
2431
  selectionStart: w,
2429
2432
  selectionEnd: w
2430
2433
  };
@@ -2432,21 +2435,21 @@ const ao = (e) => {
2432
2435
  if (!(i.key.length !== 1 || i.ctrlKey || i.metaKey || i.altKey))
2433
2436
  return ee && clearTimeout(ee), ee = setTimeout(() => {
2434
2437
  ee = null;
2435
- const h = b.value, y = b.selectionStart, S = fe(h, y), V = h.slice(S, y);
2436
- if (V.length < l) {
2438
+ const h = b.value, y = b.selectionStart, z = fe(h, y), T = h.slice(z, y);
2439
+ if (T.length < l) {
2437
2440
  Y();
2438
2441
  return;
2439
2442
  }
2440
- let w = ye(V);
2443
+ let w = xe(T);
2441
2444
  if (w = w.slice(0, s), w.length === 0) {
2442
2445
  Y();
2443
2446
  return;
2444
2447
  }
2445
- X = w, U = 0, W ? ne() : io(b, w);
2448
+ X = w, K = 0, W ? ne() : so(b, w);
2446
2449
  }, 0), { ...a };
2447
2450
  };
2448
2451
  };
2449
- function ye(e) {
2452
+ function xe(e) {
2450
2453
  const n = e.toLowerCase();
2451
2454
  return ze.filter((l) => {
2452
2455
  const s = l.label.toLowerCase();
@@ -2465,11 +2468,11 @@ function fe(e, n) {
2465
2468
  l--;
2466
2469
  return l;
2467
2470
  }
2468
- function io(e, n) {
2469
- Y(), X = n, U = 0;
2471
+ function so(e, n) {
2472
+ Y(), X = n, K = 0;
2470
2473
  const l = Ze(e);
2471
- W = Se(n, U, (s) => {
2472
- U = s, ne();
2474
+ W = Ve(n, K, (s) => {
2475
+ K = s, ne();
2473
2476
  }), Object.assign(W.style, {
2474
2477
  position: "fixed",
2475
2478
  left: `${l.left}px`,
@@ -2479,8 +2482,8 @@ function io(e, n) {
2479
2482
  }
2480
2483
  function ne() {
2481
2484
  if (!W || !te) return;
2482
- const e = Se(X, U, (l) => {
2483
- U = l, ne();
2485
+ const e = Ve(X, K, (l) => {
2486
+ K = l, ne();
2484
2487
  }), n = W.getBoundingClientRect();
2485
2488
  W.replaceWith(e), W = e, Object.assign(W.style, {
2486
2489
  position: "fixed",
@@ -2489,23 +2492,23 @@ function ne() {
2489
2492
  zIndex: "10000"
2490
2493
  });
2491
2494
  }
2492
- function _e(e, n) {
2495
+ function ye(e, n) {
2493
2496
  const { value: l, selectionStart: s } = e, t = fe(l, s), r = n.insert || n.label, c = /\$\{([^}]*)\}/g;
2494
2497
  let d = r;
2495
2498
  const m = [];
2496
2499
  let a;
2497
2500
  for (; (a = c.exec(r)) !== null; ) {
2498
- const h = a[1], y = a.index, S = a[0].length;
2499
- m.push({ index: y, text: h, length: S });
2501
+ const h = a[1], y = a.index, z = a[0].length;
2502
+ m.push({ index: y, text: h, length: z });
2500
2503
  }
2501
2504
  d = r.replace(/\$\{([^}]*)\}/g, "$1");
2502
2505
  const i = m[0];
2503
2506
  let u = t + d.length, f = t + d.length;
2504
2507
  if (i) {
2505
- let h = 0, y = 0, S = !1;
2506
- for (; y < r.length && !S; ) {
2507
- const V = m.find((w) => w.index === y);
2508
- V ? (h += V.text.length, y += V.length, V === i && (u = t + h - V.text.length, f = t + h, S = !0)) : (h++, y++);
2508
+ let h = 0, y = 0, z = !1;
2509
+ for (; y < r.length && !z; ) {
2510
+ const T = m.find((w) => w.index === y);
2511
+ T ? (h += T.text.length, y += T.length, T === i && (u = t + h - T.text.length, f = t + h, z = !0)) : (h++, y++);
2509
2512
  }
2510
2513
  }
2511
2514
  return {
@@ -2515,7 +2518,7 @@ function _e(e, n) {
2515
2518
  };
2516
2519
  }
2517
2520
  function Y() {
2518
- ee && (clearTimeout(ee), ee = null), W && (W.remove(), W = null, X = [], U = 0, te = null);
2521
+ ee && (clearTimeout(ee), ee = null), W && (W.remove(), W = null, X = [], K = 0, te = null);
2519
2522
  }
2520
2523
  function Ze(e) {
2521
2524
  const n = e.getBoundingClientRect(), { value: l, selectionStart: s } = e, r = l.substring(0, s).split(`
@@ -2525,7 +2528,7 @@ function Ze(e) {
2525
2528
  top: n.top + (c - 1) * m
2526
2529
  };
2527
2530
  }
2528
- function Le(e) {
2531
+ function Me(e) {
2529
2532
  se && clearTimeout(se), se = setTimeout(() => {
2530
2533
  const n = e.selectionStart, l = e.selectionEnd;
2531
2534
  if (n === l) {
@@ -2557,24 +2560,24 @@ typeof document < "u" && document.addEventListener("mousedown", (e) => {
2557
2560
  const n = e.target;
2558
2561
  W && !W.contains(n) && Y(), G && !G.contains(n) && ie();
2559
2562
  });
2560
- const $e = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), ro = ["else", "end", "call", "fade"], co = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), uo = (e) => {
2561
- const n = e.filter((d) => d.type !== "var").map((d) => d.label), c = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...ro, ...n])).map(co).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
2563
+ const _e = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), lo = ["else", "end", "call", "fade"], oo = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), ao = (e) => {
2564
+ const n = e.filter((d) => d.type !== "var").map((d) => d.label), c = `(\\/\\/[^\\n]*)|('[^'\\n]*')|(\\b\\d+(?:\\.\\d+)?\\b)|(\\b(?:${Array.from(/* @__PURE__ */ new Set([...lo, ...n])).map(oo).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
2562
2565
  return new RegExp(c, "g");
2563
- }, mo = (e) => (n) => {
2564
- const l = uo(e);
2566
+ }, io = (e) => (n) => {
2567
+ const l = ao(e);
2565
2568
  let s = "", t = 0;
2566
2569
  for (const r of n.matchAll(l)) {
2567
2570
  const [c, d, m, a, i, u, f, b] = r;
2568
2571
  let h = "";
2569
- d ? h = "comment" : m ? h = "str" : a ? h = "num" : i ? h = "word" : u ? h = "var" : f ? h = "event" : b && (h = "operator"), s += $e(n.slice(t, r.index)), s += `<span class="tok--${h}">${$e(c)}</span>`, t = r.index + c.length;
2572
+ d ? h = "comment" : m ? h = "str" : a ? h = "num" : i ? h = "word" : u ? h = "var" : f ? h = "event" : b && (h = "operator"), s += _e(n.slice(t, r.index)), s += `<span class="tok--${h}">${_e(c)}</span>`, t = r.index + c.length;
2570
2573
  }
2571
- return s += $e(n.slice(t)), s;
2574
+ return s += _e(n.slice(t)), s;
2572
2575
  }, Xe = {
2573
2576
  word: "text-blue-600 dark:text-blue-400",
2574
2577
  func: "text-yellow-600 dark:text-yellow-400",
2575
2578
  var: "text-cyan-600 dark:text-cyan-400",
2576
2579
  event: "text-purple-600 dark:text-purple-400"
2577
- }, po = (e, n, l) => {
2580
+ }, ro = (e, n, l) => {
2578
2581
  const s = document.createElement("div");
2579
2582
  return s.className = `
2580
2583
  fixed z-[10000] min-w-[250px] max-w-[400px] max-h-[250px]
@@ -2597,7 +2600,7 @@ const $e = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
2597
2600
  ${t.description ? `<span class="text-xs text-gray-400 dark:text-gray-500">${t.description}</span>` : ""}
2598
2601
  `, d.addEventListener("click", () => l(r)), s.appendChild(d);
2599
2602
  }), s;
2600
- }, fo = (e, n) => {
2603
+ }, co = (e, n) => {
2601
2604
  const l = document.createElement("div");
2602
2605
  l.className = `
2603
2606
  fixed z-[10001] px-3 py-2 font-mono text-sm max-w-[300px]
@@ -2616,7 +2619,7 @@ const $e = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
2616
2619
  absolute bottom-[-6px] left-1/2 w-2.5 h-2.5 -translate-x-1/2 rotate-45
2617
2620
  bg-white dark:bg-gray-800 border-r border-b border-gray-200 dark:border-gray-700
2618
2621
  `, l.appendChild(r), l;
2619
- }, vo = [
2622
+ }, uo = [
2620
2623
  { label: "if", type: "word", insert: `if:\${$v0<10};
2621
2624
 
2622
2625
  else;
@@ -2651,7 +2654,7 @@ end;`, detail: "event(name: string)" },
2651
2654
  { label: "$e", type: "var", insert: "$e${0}", detail: "var event" },
2652
2655
  { label: "$c", type: "var", insert: "$c${0}", detail: "var call" },
2653
2656
  { label: "$p", type: "var", insert: "$p${0}", detail: "gpio" }
2654
- ], La = /* @__PURE__ */ M({
2657
+ ], Ca = /* @__PURE__ */ S({
2655
2658
  __name: "ScriptEditor",
2656
2659
  props: {
2657
2660
  modelValue: {},
@@ -2661,21 +2664,21 @@ end;`, detail: "event(name: string)" },
2661
2664
  setup(e, { emit: n }) {
2662
2665
  const l = n;
2663
2666
  let s;
2664
- const t = [...vo, ...e.suggestions];
2667
+ const t = [...uo, ...e.suggestions];
2665
2668
  return oe(
2666
2669
  () => e.modelValue,
2667
2670
  (r) => {
2668
2671
  s.update({ value: r });
2669
2672
  }
2670
2673
  ), Q(() => {
2671
- s = new eo("#editor", {
2674
+ s = new Zl("#editor", {
2672
2675
  value: e.modelValue,
2673
2676
  lineNumbers: !0,
2674
- highlighters: [mo(t)],
2677
+ highlighters: [io(t)],
2675
2678
  plugins: [
2676
- so(),
2677
- lo(),
2678
- ao({
2679
+ Ql(),
2680
+ eo(),
2681
+ no({
2679
2682
  customSuggestions: t,
2680
2683
  minPrefixLength: 1,
2681
2684
  maxSuggestions: 20,
@@ -2683,16 +2686,16 @@ end;`, detail: "event(name: string)" },
2683
2686
  tooltip: {
2684
2687
  enabled: !0
2685
2688
  },
2686
- renderMenu: po,
2687
- renderTooltip: fo
2689
+ renderMenu: ro,
2690
+ renderTooltip: co
2688
2691
  }),
2689
- oo()
2692
+ to()
2690
2693
  ],
2691
2694
  styles: { fontSize: "14px" }
2692
2695
  }), s.onUpdate((r) => {
2693
2696
  l("update:modelValue", r);
2694
2697
  });
2695
- }), we(() => {
2698
+ }), ke(() => {
2696
2699
  s.destroy();
2697
2700
  }), (r, c) => (p(), v("div", null, [...c[0] || (c[0] = [
2698
2701
  o("div", {
@@ -2701,22 +2704,22 @@ end;`, detail: "event(name: string)" },
2701
2704
  }, null, -1)
2702
2705
  ])]));
2703
2706
  }
2704
- }), ho = { class: "max-w-4xl mx-auto" }, go = {
2707
+ }), mo = { class: "max-w-4xl mx-auto" }, po = {
2705
2708
  key: 0,
2706
2709
  class: "text-sm"
2707
- }, bo = {
2710
+ }, fo = {
2708
2711
  key: 0,
2709
2712
  class: "text-gray-500"
2710
- }, xo = {
2713
+ }, vo = {
2711
2714
  key: 1,
2712
2715
  class: "text-red-600"
2713
- }, yo = ["innerHTML"], _o = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", $o = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", Aa = /* @__PURE__ */ M({
2716
+ }, ho = ["innerHTML"], go = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", bo = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", Sa = /* @__PURE__ */ S({
2714
2717
  __name: "ScriptViewDocs",
2715
2718
  props: {
2716
2719
  lang: { default: "en" }
2717
2720
  },
2718
2721
  setup(e) {
2719
- const n = E(""), l = E(""), s = E(null), t = E(!1), r = E(null);
2722
+ const n = L(""), l = L(""), s = L(null), t = L(!1), r = L(null);
2720
2723
  let c = null;
2721
2724
  const d = () => new Promise((i, u) => {
2722
2725
  if (typeof window > "u" || typeof document > "u") {
@@ -2732,7 +2735,7 @@ end;`, detail: "event(name: string)" },
2732
2735
  return;
2733
2736
  }
2734
2737
  const f = document.createElement("script");
2735
- f.src = $o, f.async = !0, f.onload = () => {
2738
+ f.src = bo, f.async = !0, f.onload = () => {
2736
2739
  window.marked ? (window.marked.setOptions({
2737
2740
  gfm: !0,
2738
2741
  breaks: !0,
@@ -2751,8 +2754,8 @@ end;`, detail: "event(name: string)" },
2751
2754
  continue;
2752
2755
  }
2753
2756
  if (b && h.includes(":")) {
2754
- const [y, S] = h.split(":").map((V) => V.trim());
2755
- y && S && (y.toLowerCase().includes("version") && (f.version = S), (y.toLowerCase().includes("обновлено") || y.toLowerCase().includes("updated")) && (f.updated = S));
2757
+ const [y, z] = h.split(":").map((T) => T.trim());
2758
+ y && z && (y.toLowerCase().includes("version") && (f.version = z), (y.toLowerCase().includes("обновлено") || y.toLowerCase().includes("updated")) && (f.updated = z));
2756
2759
  }
2757
2760
  }
2758
2761
  return f;
@@ -2763,7 +2766,7 @@ end;`, detail: "event(name: string)" },
2763
2766
  }
2764
2767
  t.value = !0, r.value = null, l.value = "";
2765
2768
  try {
2766
- const u = `${_o}${i}.md`, f = await fetch(u);
2769
+ const u = `${go}${i}.md`, f = await fetch(u);
2767
2770
  if (!f.ok)
2768
2771
  throw new Error(`HTTP ${f.status}: ${f.statusText}`);
2769
2772
  const b = await f.text();
@@ -2784,27 +2787,27 @@ end;`, detail: "event(name: string)" },
2784
2787
  const u = i instanceof Error ? i.message : "";
2785
2788
  r.value = u, console.error("Initialization error:", i);
2786
2789
  }
2787
- }), (i, u) => (p(), v("div", ho, [
2788
- t.value || r.value ? (p(), v("div", go, [
2789
- t.value ? (p(), v("span", bo, "⏳")) : z("", !0),
2790
- r.value ? (p(), v("span", xo, "❌ " + _(r.value), 1)) : z("", !0)
2791
- ])) : z("", !0),
2790
+ }), (i, u) => (p(), v("div", mo, [
2791
+ t.value || r.value ? (p(), v("div", po, [
2792
+ t.value ? (p(), v("span", fo, "⏳")) : V("", !0),
2793
+ r.value ? (p(), v("span", vo, "❌ " + _(r.value), 1)) : V("", !0)
2794
+ ])) : V("", !0),
2792
2795
  o("div", {
2793
2796
  class: "docs-content",
2794
2797
  innerHTML: l.value
2795
- }, null, 8, yo)
2798
+ }, null, 8, ho)
2796
2799
  ]));
2797
2800
  }
2798
- }), ko = { class: "my-4" }, Da = /* @__PURE__ */ M({
2801
+ }), xo = { class: "my-4" }, za = /* @__PURE__ */ S({
2799
2802
  __name: "ScriptDialog",
2800
2803
  props: {
2801
2804
  idScript: {}
2802
2805
  },
2803
2806
  emits: ["add", "close"],
2804
2807
  setup(e, { emit: n }) {
2805
- const l = n, { defineField: s, handleSubmit: t, isValid: r } = wt({
2808
+ const l = n, { defineField: s, handleSubmit: t, isValid: r } = _t({
2806
2809
  validationSchema: () => ({
2807
- name: [Ct, Mt(8)]
2810
+ name: [$t, kt(8)]
2808
2811
  })
2809
2812
  }), [c, d] = s("name"), m = () => {
2810
2813
  l("add", c.value);
@@ -2815,8 +2818,8 @@ end;`, detail: "event(name: string)" },
2815
2818
  e.idScript || (c.value = "boot");
2816
2819
  }), (i, u) => {
2817
2820
  const f = J, b = A;
2818
- return p(), v("div", ko, [
2819
- g(f, j({
2821
+ return p(), v("div", xo, [
2822
+ g(f, H({
2820
2823
  modelValue: q(c),
2821
2824
  "onUpdate:modelValue": u[0] || (u[0] = (h) => ot(c) ? c.value = h : null)
2822
2825
  }, q(d), {
@@ -2830,165 +2833,38 @@ end;`, detail: "event(name: string)" },
2830
2833
  onClick: q(a)
2831
2834
  }, {
2832
2835
  default: x(() => [
2833
- H(_(i.$t("add")), 1)
2836
+ j(_(i.$t("add")), 1)
2834
2837
  ]),
2835
2838
  _: 1
2836
2839
  }, 8, ["disabled", "onClick"])
2837
2840
  ]);
2838
2841
  };
2839
2842
  }
2840
- }), wo = ["width", "height"], Co = ["d"], de = /* @__PURE__ */ M({
2841
- __name: "VisionIcon",
2842
- props: {
2843
- name: {},
2844
- size: { default: 20 }
2845
- },
2846
- setup(e) {
2847
- const n = {
2848
- home: ["M3 10.5 12 3l9 7.5", "M5 9.5V21h14V9.5"],
2849
- chart: ["M4 19V5", "M4 19h16", "M8 16v-5", "M12 16V8", "M16 16v-3", "M20 16V6"],
2850
- card: ["M3 6h18v12H3z", "M3 10h18"],
2851
- user: ["M12 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8", "M4 21a8 8 0 0 1 16 0"],
2852
- users: ["M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2", "M9 11a4 4 0 1 0 0-8 4 4 0 0 0 0 8", "M22 21v-2a4 4 0 0 0-3-3.9", "M16 3.1a4 4 0 0 1 0 7.8"],
2853
- document: ["M6 3h8l4 4v14H6z", "M14 3v4h4", "M9 12h6", "M9 16h6"],
2854
- rocket: ["M5 15c-1 3-1 4-1 5 1 0 2 0 5-1", "M9 15l-3-3c4-8 8-9 12-9 0 4-1 8-9 12z", "M14 10a1 1 0 1 0 2 0 1 1 0 0 0-2 0"],
2855
- search: ["M11 19a8 8 0 1 0 0-16 8 8 0 0 0 0 16", "M21 21l-4.3-4.3"],
2856
- settings: ["M12 15.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7", "M19.4 15a1.7 1.7 0 0 0 .3 1.9l.1.1-2 2-.1-.1a1.7 1.7 0 0 0-1.9-.3 1.7 1.7 0 0 0-1 1.6V21h-2.8v-.2a1.7 1.7 0 0 0-1-1.6 1.7 1.7 0 0 0-1.9.3l-.1.1-2-2 .1-.1a1.7 1.7 0 0 0 .3-1.9 1.7 1.7 0 0 0-1.6-1H3v-2.8h.2a1.7 1.7 0 0 0 1.6-1 1.7 1.7 0 0 0-.3-1.9l-.1-.1 2-2 .1.1a1.7 1.7 0 0 0 1.9.3 1.7 1.7 0 0 0 1-1.6V3h2.8v.2a1.7 1.7 0 0 0 1 1.6 1.7 1.7 0 0 0 1.9-.3l.1-.1 2 2-.1.1a1.7 1.7 0 0 0-.3 1.9 1.7 1.7 0 0 0 1.6 1h.2V12h-.2a1.7 1.7 0 0 0-1.6 1z"],
2857
- bell: ["M18 8a6 6 0 1 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9", "M13.7 21a2 2 0 0 1-3.4 0"],
2858
- arrowRight: ["M5 12h14", "M13 6l6 6-6 6"],
2859
- arrowUpRight: ["M7 17 17 7", "M8 7h9v9"],
2860
- check: ["M20 6 9 17l-5-5"],
2861
- plus: ["M12 5v14", "M5 12h14"],
2862
- dots: ["M5 12h.01", "M12 12h.01", "M19 12h.01"],
2863
- logout: ["M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", "M16 17l5-5-5-5", "M21 12H9"],
2864
- sun: ["M12 17a5 5 0 1 0 0-10 5 5 0 0 0 0 10", "M12 1v2", "M12 21v2", "M4.2 4.2l1.4 1.4", "M18.4 18.4l1.4 1.4", "M1 12h2", "M21 12h2", "M4.2 19.8l1.4-1.4", "M18.4 5.6l1.4-1.4"],
2865
- moon: ["M21 12.8A9 9 0 1 1 11.2 3 7 7 0 0 0 21 12.8"],
2866
- help: ["M12 22a10 10 0 1 0 0-20 10 10 0 0 0 0 20", "M9.1 9a3 3 0 1 1 5.8 1c0 2-3 2-3 4", "M12 17h.01"],
2867
- wallet: ["M3 7h18v12H3z", "M3 7l2-3h14l2 3", "M16 13h2"],
2868
- trendUp: ["M3 17l6-6 4 4 8-8", "M15 7h6v6"],
2869
- trendDown: ["M3 7l6 6 4-4 8 8", "M15 17h6v-6"],
2870
- menu: ["M4 6h16", "M4 12h16", "M4 18h16"],
2871
- close: ["M6 6l12 12", "M18 6 6 18"],
2872
- chevronDown: ["M6 9l6 6 6-6"],
2873
- download: ["M12 3v12", "M7 10l5 5 5-5", "M5 21h14"],
2874
- edit: ["M12 20h9", "M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z"],
2875
- trash: ["M3 6h18", "M8 6V4h8v2", "M19 6l-1 15H6L5 6", "M10 11v6", "M14 11v6"],
2876
- calendar: ["M4 5h16v16H4z", "M16 3v4", "M8 3v4", "M4 10h16"],
2877
- filter: ["M3 5h18", "M6 12h12", "M10 19h4"],
2878
- star: ["M12 3l2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.3 6.4 20.2l1.1-6.2L3 9.6l6.2-.9z"],
2879
- bolt: ["M13 2 3 14h8l-1 8 11-13h-8z"],
2880
- wifi: ["M5 12.5a10 10 0 0 1 14 0", "M8.5 16a5 5 0 0 1 7 0", "M12 20h.01"],
2881
- click: ["M9 9l10 4-4 2-2 4z", "M4 4l3 3"],
2882
- shopping: ["M6 6h15l-1.5 9h-12z", "M6 6 5 3H2", "M9 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2", "M18 20a1 1 0 1 0 0-2 1 1 0 0 0 0 2"],
2883
- box: ["M21 8l-9-5-9 5 9 5 9-5", "M3 8v8l9 5 9-5V8", "M12 13v8"],
2884
- external: ["M14 3h7v7", "M10 14 21 3", "M21 14v7H3V3h7"],
2885
- github: ["M15 22v-4a4.8 4.8 0 0 0-1-3.5c3.3-.4 6.8-1.6 6.8-7A5.4 5.4 0 0 0 19.5 4 5 5 0 0 0 19.4.5S18.2.1 15 1.8a13.4 13.4 0 0 0-7 0C4.8.1 3.6.5 3.6.5A5 5 0 0 0 3.5 4 5.4 5.4 0 0 0 2 7.5c0 5.4 3.5 6.6 6.8 7A4.8 4.8 0 0 0 8 18v4", "M8 19c-3 .9-3-1.5-4-2"]
2886
- }, l = B(() => n[e.name] ?? n.help);
2887
- return (s, t) => (p(), v("svg", {
2888
- width: e.size,
2889
- height: e.size,
2890
- viewBox: "0 0 24 24",
2891
- fill: "none",
2892
- stroke: "currentColor",
2893
- "stroke-width": "1.8",
2894
- "stroke-linecap": "round",
2895
- "stroke-linejoin": "round",
2896
- "aria-hidden": "true"
2897
- }, [
2898
- (p(!0), v(L, null, N(l.value, (r, c) => (p(), v("path", {
2899
- key: c,
2900
- d: r
2901
- }, null, 8, Co))), 128))
2902
- ], 8, wo));
2903
- }
2904
- }), Ia = /* @__PURE__ */ M({
2905
- __name: "VisionCard",
2906
- props: {
2907
- padded: { type: Boolean, default: !0 }
2908
- },
2909
- setup(e) {
2910
- const n = B(() => e.padded ? "p-5 md:p-6" : "");
2911
- return (l, s) => (p(), v("div", {
2912
- class: T(["glass-panel", n.value])
2913
- }, [
2914
- k(l.$slots, "default")
2915
- ], 2));
2916
- }
2917
- }), Mo = { class: "block" }, zo = {
2918
- key: 0,
2919
- class: "mb-2 block text-xs font-medium text-vision-muted"
2920
- }, So = ["type", "name", "placeholder", "autocomplete"], Vo = {
2921
- key: 1,
2922
- class: "mt-1 block text-xs text-vision-danger"
2923
- }, Ha = /* @__PURE__ */ M({
2924
- __name: "VisionInput",
2925
- props: /* @__PURE__ */ rt({
2926
- label: { default: "" },
2927
- placeholder: { default: "" },
2928
- type: { default: "text" },
2929
- name: { default: "" },
2930
- autocomplete: { default: "off" },
2931
- icon: { default: "" },
2932
- error: { default: "" }
2933
- }, {
2934
- modelValue: { default: "" },
2935
- modelModifiers: {}
2936
- }),
2937
- emits: ["update:modelValue"],
2938
- setup(e) {
2939
- const n = at(e, "modelValue");
2940
- return (l, s) => (p(), v("label", Mo, [
2941
- e.label ? (p(), v("span", zo, _(e.label), 1)) : z("", !0),
2942
- o("span", {
2943
- class: T(["glass-inset flex items-center gap-3 rounded-md px-4 transition-colors focus-within:border-vision-primary/60", e.error ? "border-vision-danger/50" : "border-white/10 hover:border-white/20"])
2944
- }, [
2945
- e.icon ? (p(), I(de, {
2946
- key: 0,
2947
- name: e.icon,
2948
- size: 18,
2949
- class: "shrink-0 text-vision-muted"
2950
- }, null, 8, ["name"])) : z("", !0),
2951
- he(o("input", {
2952
- "onUpdate:modelValue": s[0] || (s[0] = (t) => n.value = t),
2953
- type: e.type,
2954
- name: e.name,
2955
- placeholder: e.placeholder,
2956
- autocomplete: e.autocomplete,
2957
- class: "h-11 min-w-0 flex-1 bg-transparent text-sm text-white placeholder:text-vision-muted/70 focus:outline-none"
2958
- }, null, 8, So), [
2959
- [it, n.value]
2960
- ])
2961
- ], 2),
2962
- e.error ? (p(), v("span", Vo, _(e.error), 1)) : z("", !0)
2963
- ]));
2964
- }
2965
- }), To = {
2966
- 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",
2967
- role: "dialog",
2968
- "aria-modal": "true",
2969
- "aria-label": "Поиск"
2970
- }, Eo = { class: "flex items-center gap-3 border-b border-gray-200/70 px-4 dark:border-white/10" }, Bo = ["placeholder"], Lo = { class: "max-h-[55vh] overflow-y-auto p-2" }, Ao = ["href"], Do = { class: "min-w-0" }, Io = { class: "flex flex-wrap items-baseline gap-2" }, Ho = { class: "text-sm font-medium text-gray-900 dark:text-white" }, jo = {
2843
+ }), yo = ["aria-label"], _o = { class: "hidden lg:inline" }, $o = ["aria-label"], ko = { class: "flex items-center gap-3 border-b border-gray-200/70 px-4 dark:border-white/10" }, wo = ["placeholder"], Co = { class: "max-h-[55vh] overflow-y-auto p-2" }, So = ["href"], zo = { class: "min-w-0" }, Vo = { class: "flex flex-wrap items-baseline gap-2" }, To = { class: "text-sm font-medium text-gray-900 dark:text-white" }, Eo = {
2971
2844
  key: 0,
2972
2845
  class: "text-[10px] uppercase tracking-wider text-gray-400"
2973
- }, Po = {
2846
+ }, Lo = {
2974
2847
  key: 0,
2975
2848
  class: "mt-0.5 block truncate text-xs text-gray-500 dark:text-gray-400"
2976
- }, No = {
2849
+ }, Bo = {
2977
2850
  key: 0,
2978
2851
  class: "px-4 py-10 text-center text-sm text-gray-500 dark:text-gray-400"
2979
- }, ja = /* @__PURE__ */ M({
2852
+ }, Va = /* @__PURE__ */ S({
2980
2853
  __name: "VisionSearch",
2981
2854
  props: {
2982
2855
  items: {},
2983
- placeholder: {}
2856
+ placeholder: { default: "Поиск по документации и страницам…" },
2857
+ label: { default: "Поиск" },
2858
+ dialogLabel: { default: "Поиск" },
2859
+ emptyText: { default: "Ничего не найдено. Попробуйте другой запрос." }
2984
2860
  },
2985
2861
  setup(e) {
2986
- const n = e, l = E(!1), s = E(""), t = E(null), r = B(() => {
2862
+ const n = e, l = L(!1), s = L(""), t = L(null), r = M(() => {
2987
2863
  const a = s.value.trim().toLowerCase();
2988
2864
  return (a ? n.items.filter((u) => `${u.title} ${u.description ?? ""} ${u.group ?? ""}`.toLowerCase().includes(a)) : n.items).slice(0, 14);
2989
2865
  }), c = async () => {
2990
2866
  var a;
2991
- l.value = !0, s.value = "", await je(), (a = t.value) == null || a.focus();
2867
+ l.value = !0, s.value = "", await He(), (a = t.value) == null || a.focus();
2992
2868
  }, d = () => {
2993
2869
  l.value = !1, s.value = "";
2994
2870
  }, m = (a) => {
@@ -3000,96 +2876,107 @@ end;`, detail: "event(name: string)" },
3000
2876
  };
3001
2877
  return oe(l, (a) => {
3002
2878
  typeof document < "u" && (document.body.style.overflow = a ? "hidden" : "");
3003
- }), Q(() => window.addEventListener("keydown", m)), we(() => {
2879
+ }), Q(() => window.addEventListener("keydown", m)), ke(() => {
3004
2880
  window.removeEventListener("keydown", m), typeof document < "u" && (document.body.style.overflow = "");
3005
- }), (a, i) => (p(), v(L, null, [
2881
+ }), (a, i) => (p(), v(B, null, [
3006
2882
  o("button", {
3007
2883
  type: "button",
3008
2884
  class: "inline-flex h-9 items-center gap-2 rounded-md px-2.5 text-xs text-gray-500 transition-colors hover:bg-white/50 hover:text-[var(--app-accent)] dark:text-gray-400 dark:hover:bg-white/5 dark:hover:text-white",
3009
- "aria-label": "Поиск",
2885
+ "aria-label": e.label,
3010
2886
  onClick: c
3011
2887
  }, [
3012
- g(de, {
2888
+ g(me, {
3013
2889
  name: "search",
3014
2890
  size: 17
3015
2891
  }),
3016
- i[1] || (i[1] = o("span", { class: "hidden lg:inline" }, "Поиск", -1)),
3017
- i[2] || (i[2] = o("kbd", { class: "hidden rounded border border-gray-300/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-400 dark:border-white/10 dark:text-gray-500 lg:inline" }, "⌘K", -1))
3018
- ]),
3019
- (p(), I(dt, { to: "body" }, [
2892
+ o("span", _o, _(e.label), 1),
2893
+ i[1] || (i[1] = o("kbd", { class: "hidden rounded border border-gray-300/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-400 dark:border-white/10 dark:text-gray-500 lg:inline" }, "⌘K", -1))
2894
+ ], 8, yo),
2895
+ (p(), I(at, { to: "body" }, [
3020
2896
  l.value ? (p(), v("div", {
3021
2897
  key: 0,
3022
2898
  class: "fixed inset-0 z-[100] flex items-start justify-center overflow-y-auto bg-slate-900/40 px-4 pt-[12vh] backdrop-blur-sm dark:bg-black/60",
3023
- onClick: F(d, ["self"])
2899
+ onClick: R(d, ["self"])
3024
2900
  }, [
3025
- o("div", To, [
3026
- o("div", Eo, [
3027
- g(de, {
2901
+ o("div", {
2902
+ 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",
2903
+ role: "dialog",
2904
+ "aria-modal": "true",
2905
+ "aria-label": e.dialogLabel
2906
+ }, [
2907
+ o("div", ko, [
2908
+ g(me, {
3028
2909
  name: "search",
3029
2910
  size: 18,
3030
2911
  class: "shrink-0 text-gray-400"
3031
2912
  }),
3032
- he(o("input", {
2913
+ we(o("input", {
3033
2914
  ref_key: "input",
3034
2915
  ref: t,
3035
2916
  "onUpdate:modelValue": i[0] || (i[0] = (u) => s.value = u),
3036
2917
  type: "search",
3037
- placeholder: e.placeholder ?? "Поиск по документации и страницам…",
2918
+ placeholder: e.placeholder,
3038
2919
  class: "h-14 min-w-0 flex-1 bg-transparent text-sm text-gray-900 placeholder:text-gray-400 focus:outline-none dark:text-white dark:placeholder:text-gray-500"
3039
- }, null, 8, Bo), [
3040
- [He, s.value]
2920
+ }, null, 8, wo), [
2921
+ [je, s.value]
3041
2922
  ]),
3042
- i[3] || (i[3] = o("kbd", { class: "hidden rounded border border-gray-300/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-400 dark:border-white/10 dark:text-gray-500 sm:inline" }, "Esc", -1))
2923
+ i[2] || (i[2] = o("kbd", { class: "hidden rounded border border-gray-300/60 px-1.5 py-0.5 font-mono text-[10px] text-gray-400 dark:border-white/10 dark:text-gray-500 sm:inline" }, "Esc", -1))
3043
2924
  ]),
3044
- o("div", Lo, [
3045
- (p(!0), v(L, null, N(r.value, (u) => (p(), v("a", {
2925
+ o("div", Co, [
2926
+ (p(!0), v(B, null, N(r.value, (u) => (p(), v("a", {
3046
2927
  key: `${u.group}-${u.to}-${u.title}`,
3047
2928
  href: u.to,
3048
2929
  class: "flex items-start gap-3 rounded-md px-3 py-2.5 transition-colors hover:bg-white/50 dark:hover:bg-white/5",
3049
2930
  onClick: d
3050
2931
  }, [
3051
- g(de, {
2932
+ g(me, {
3052
2933
  name: "arrowRight",
3053
2934
  size: 16,
3054
2935
  class: "mt-0.5 shrink-0 text-gray-400"
3055
2936
  }),
3056
- o("span", Do, [
3057
- o("span", Io, [
3058
- o("span", Ho, _(u.title), 1),
3059
- u.group ? (p(), v("span", jo, _(u.group), 1)) : z("", !0)
2937
+ o("span", zo, [
2938
+ o("span", Vo, [
2939
+ o("span", To, _(u.title), 1),
2940
+ u.group ? (p(), v("span", Eo, _(u.group), 1)) : V("", !0)
3060
2941
  ]),
3061
- u.description ? (p(), v("span", Po, _(u.description), 1)) : z("", !0)
2942
+ u.description ? (p(), v("span", Lo, _(u.description), 1)) : V("", !0)
3062
2943
  ])
3063
- ], 8, Ao))), 128)),
3064
- r.value.length ? z("", !0) : (p(), v("p", No, " Ничего не найдено. Попробуйте другой запрос. "))
2944
+ ], 8, So))), 128)),
2945
+ r.value.length ? V("", !0) : (p(), v("p", Bo, _(e.emptyText), 1))
3065
2946
  ])
3066
- ])
3067
- ])) : z("", !0)
2947
+ ], 8, $o)
2948
+ ])) : V("", !0)
3068
2949
  ]))
3069
2950
  ], 64));
3070
2951
  }
3071
- }), Oo = ["aria-label", "title"], Pa = /* @__PURE__ */ M({
2952
+ }), Mo = ["aria-label", "title"], Ta = /* @__PURE__ */ S({
3072
2953
  __name: "VisionThemeToggle",
2954
+ props: {
2955
+ labelLight: { default: "Включить светлую тему" },
2956
+ labelDark: { default: "Включить тёмную тему" },
2957
+ titleLight: { default: "Светлая тема" },
2958
+ titleDark: { default: "Тёмная тема" }
2959
+ },
3073
2960
  setup(e) {
3074
- const n = E(xt("theme") === "light" ? "light" : "dark"), l = (s) => {
3075
- n.value = s, yt(s);
2961
+ const n = L(ht("theme") === "light" ? "light" : "dark"), l = (s) => {
2962
+ n.value = s, gt(s);
3076
2963
  };
3077
2964
  return Q(async () => {
3078
- await je(), setTimeout(() => l(n.value), 0);
2965
+ await He(), setTimeout(() => l(n.value), 0);
3079
2966
  }), (s, t) => (p(), v("button", {
3080
2967
  type: "button",
3081
2968
  class: "grid size-9 place-items-center rounded-md text-gray-600 transition-colors hover:bg-white/50 hover:text-[var(--app-accent)] dark:text-gray-300 dark:hover:bg-white/5 dark:hover:text-white",
3082
- "aria-label": n.value === "dark" ? "Включить светлую тему" : "Включить тёмную тему",
3083
- title: n.value === "dark" ? "Светлая тема" : "Тёмная тема",
2969
+ "aria-label": n.value === "dark" ? e.labelLight : e.labelDark,
2970
+ title: n.value === "dark" ? e.titleLight : e.titleDark,
3084
2971
  onClick: t[0] || (t[0] = (r) => l(n.value === "dark" ? "light" : "dark"))
3085
2972
  }, [
3086
- g(de, {
2973
+ g(me, {
3087
2974
  name: n.value === "dark" ? "sun" : "moon",
3088
2975
  size: 18
3089
2976
  }, null, 8, ["name"])
3090
- ], 8, Oo));
2977
+ ], 8, Mo));
3091
2978
  }
3092
- }), Na = /* @__PURE__ */ M({
2979
+ }), Ea = /* @__PURE__ */ S({
3093
2980
  __name: "VAutocomplete",
3094
2981
  props: {
3095
2982
  modelValue: { default: "" },
@@ -3103,7 +2990,7 @@ end;`, detail: "event(name: string)" },
3103
2990
  const l = n, s = (r) => l("update:modelValue", r), t = (r, c) => {
3104
2991
  r.click(new Event("click")), l("select", c);
3105
2992
  };
3106
- return (r, c) => (p(), I(Ne, j(r.$attrs, {
2993
+ return (r, c) => (p(), I(Ne, H(r.$attrs, {
3107
2994
  top: "50px",
3108
2995
  "hide-on-click": ""
3109
2996
  }), {
@@ -3124,7 +3011,7 @@ end;`, detail: "event(name: string)" },
3124
3011
  }, {
3125
3012
  default: x(({ item: m }) => [
3126
3013
  k(r.$slots, "default", { item: m }, () => [
3127
- H(_(m.name), 1)
3014
+ j(_(m.name), 1)
3128
3015
  ])
3129
3016
  ]),
3130
3017
  _: 3
@@ -3133,27 +3020,27 @@ end;`, detail: "event(name: string)" },
3133
3020
  _: 3
3134
3021
  }, 16));
3135
3022
  }
3136
- }), Uo = {
3023
+ }), Ao = {
3137
3024
  viewBox: "0 0 24 24",
3138
3025
  width: "1.2em",
3139
3026
  height: "1.2em"
3140
3027
  };
3141
- function Ko(e, n) {
3142
- return p(), v("svg", Uo, [...n[0] || (n[0] = [
3028
+ function Do(e, n) {
3029
+ return p(), v("svg", Ao, [...n[0] || (n[0] = [
3143
3030
  o("path", {
3144
3031
  fill: "currentColor",
3145
3032
  d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
3146
3033
  }, null, -1)
3147
3034
  ])]);
3148
3035
  }
3149
- const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, Wo = { class: "p-4" }, Oa = /* @__PURE__ */ M({
3036
+ const Io = O({ name: "ri-arrow-drop-down-line", render: Do }), jo = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, Ho = { class: "p-4" }, La = /* @__PURE__ */ S({
3150
3037
  __name: "VExpansion",
3151
3038
  props: {
3152
3039
  label: { default: "" },
3153
3040
  value: { type: Boolean, default: !1 }
3154
3041
  },
3155
3042
  setup(e) {
3156
- const n = E(null), l = E(e.value), s = () => {
3043
+ const n = L(null), l = L(e.value), s = () => {
3157
3044
  if (!n.value) return;
3158
3045
  const r = n.value.querySelector(".v-expansion__content");
3159
3046
  r && (r.style.maxHeight = l.value ? `${r.scrollHeight}px` : "0");
@@ -3163,7 +3050,7 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3163
3050
  return Q(() => {
3164
3051
  s();
3165
3052
  }), (r, c) => {
3166
- const d = Ro;
3053
+ const d = Io;
3167
3054
  return p(), v("div", {
3168
3055
  ref_key: "root",
3169
3056
  ref: n,
@@ -3175,23 +3062,23 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3175
3062
  }, [
3176
3063
  o("h4", null, _(e.label), 1),
3177
3064
  o("div", {
3178
- class: T(["transition text-gray-400", { "rotate-x-180": l.value }])
3065
+ class: E(["transition text-gray-400", { "rotate-x-180": l.value }])
3179
3066
  }, [
3180
3067
  g(d, { class: "size-6" })
3181
3068
  ], 2)
3182
3069
  ]),
3183
- o("div", Fo, [
3184
- o("div", Wo, [
3070
+ o("div", jo, [
3071
+ o("div", Ho, [
3185
3072
  k(r.$slots, "default")
3186
3073
  ])
3187
3074
  ])
3188
3075
  ], 512);
3189
3076
  };
3190
3077
  }
3191
- }), qo = ["onDragstart", "onDragenter"], Go = {
3078
+ }), Po = ["onDragstart", "onDragenter"], No = {
3192
3079
  key: 0,
3193
3080
  class: "absolute inset-0 border border-dashed border-blue-600 rounded"
3194
- }, Ua = /* @__PURE__ */ M({
3081
+ }, Ba = /* @__PURE__ */ S({
3195
3082
  __name: "VDragDrop",
3196
3083
  props: {
3197
3084
  items: {},
@@ -3199,7 +3086,7 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3199
3086
  },
3200
3087
  emits: ["update:items", "order-change"],
3201
3088
  setup(e, { emit: n }) {
3202
- const l = n, s = E(null), t = E(0), r = E(-1), c = ({ id: u }) => ({
3089
+ const l = n, s = L(null), t = L(0), r = L(-1), c = ({ id: u }) => ({
3203
3090
  "opacity-30 scale-105 z-10": s.value === u,
3204
3091
  "transition-transform duration-200": s.value !== u
3205
3092
  }), d = (u, f, b) => {
@@ -3219,7 +3106,7 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3219
3106
  r.value = -1;
3220
3107
  };
3221
3108
  return (u, f) => (p(), v("div", {
3222
- onDragover: f[1] || (f[1] = F(() => {
3109
+ onDragover: f[1] || (f[1] = R(() => {
3223
3110
  }, ["prevent"])),
3224
3111
  onDrop: i
3225
3112
  }, [
@@ -3233,14 +3120,14 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3233
3120
  "move-class": "transition-all duration-300 ease"
3234
3121
  }, {
3235
3122
  default: x(() => [
3236
- (p(!0), v(L, null, N(e.items, (b, h) => (p(), v("div", {
3123
+ (p(!0), v(B, null, N(e.items, (b, h) => (p(), v("div", {
3237
3124
  key: `${b.id}_drug`,
3238
- class: T(["relative group", c(b)]),
3125
+ class: E(["relative group", c(b)]),
3239
3126
  draggable: "true",
3240
3127
  onDragstart: (y) => d(y, b.id, h),
3241
3128
  onDragenter: (y) => m(h),
3242
3129
  onDragend: a,
3243
- onDragover: f[0] || (f[0] = F(() => {
3130
+ onDragover: f[0] || (f[0] = R(() => {
3244
3131
  }, ["prevent"]))
3245
3132
  }, [
3246
3133
  k(u.$slots, "default", {
@@ -3249,17 +3136,17 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3249
3136
  index: h,
3250
3137
  isDragging: s.value === b.id
3251
3138
  }),
3252
- r.value === h && s.value !== b.id ? (p(), v("div", Go)) : z("", !0)
3253
- ], 42, qo))), 128))
3139
+ r.value === h && s.value !== b.id ? (p(), v("div", No)) : V("", !0)
3140
+ ], 42, Po))), 128))
3254
3141
  ]),
3255
3142
  _: 3
3256
3143
  })
3257
3144
  ], 32));
3258
3145
  }
3259
- }), Jo = { class: "glass-inset overflow-hidden rounded-md" }, Zo = { class: "min-w-full" }, Xo = { class: "border-y border-gray-200/70 py-3 dark:border-white/10" }, Yo = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, Qo = { class: "flex items-center" }, ea = { class: "divide-y divide-gray-100 dark:divide-white/5" }, ta = ["onClick"], na = { class: "flex items-center text-gray-700 dark:text-white/70" }, sa = { key: 1 }, la = {
3146
+ }), Oo = { class: "glass-inset overflow-x-auto rounded-md" }, Ko = { class: "min-w-full" }, Fo = { class: "border-y border-gray-200/70 py-3 dark:border-white/10" }, Uo = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, Ro = { class: "flex items-center" }, Wo = { class: "divide-y divide-gray-100 dark:divide-white/5" }, qo = ["onClick"], Go = { class: "flex items-center text-gray-700 dark:text-white/70" }, Jo = { key: 1 }, Zo = {
3260
3147
  class: "py-3 whitespace-nowrap",
3261
3148
  colspan: "9"
3262
- }, oa = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, Ka = /* @__PURE__ */ M({
3149
+ }, Xo = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, Ma = /* @__PURE__ */ S({
3263
3150
  __name: "VTable",
3264
3151
  props: {
3265
3152
  headers: { default: () => [] },
@@ -3268,47 +3155,47 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3268
3155
  emits: ["click"],
3269
3156
  setup(e, { emit: n }) {
3270
3157
  const l = n, s = (c, d) => l("click", c, d), t = (c) => (c == null ? void 0 : c.className) || "", r = (c, { key: d }) => c == null ? void 0 : c[d];
3271
- return (c, d) => (p(), v("div", Jo, [
3272
- o("table", Zo, [
3273
- o("thead", Xo, [
3274
- o("tr", Yo, [
3275
- (p(!0), v(L, null, N(e.headers, (m, a) => (p(), v("th", {
3158
+ return (c, d) => (p(), v("div", Oo, [
3159
+ o("table", Ko, [
3160
+ o("thead", Fo, [
3161
+ o("tr", Uo, [
3162
+ (p(!0), v(B, null, N(e.headers, (m, a) => (p(), v("th", {
3276
3163
  key: a,
3277
- class: T(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", t(m)])
3164
+ class: E(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", t(m)])
3278
3165
  }, [
3279
3166
  k(c.$slots, "header", {
3280
3167
  item: m,
3281
3168
  i: a
3282
3169
  }, () => [
3283
- o("div", Qo, _(m.name), 1)
3170
+ o("div", Ro, _(m.name), 1)
3284
3171
  ])
3285
3172
  ], 2))), 128))
3286
3173
  ])
3287
3174
  ]),
3288
- o("tbody", ea, [
3289
- e.items.length ? (p(!0), v(L, { key: 0 }, N(e.items, (m, a) => (p(), v("tr", {
3175
+ o("tbody", Wo, [
3176
+ e.items.length ? (p(!0), v(B, { key: 0 }, N(e.items, (m, a) => (p(), v("tr", {
3290
3177
  key: a,
3291
3178
  class: "transition-colors hover:bg-primary/[0.04] dark:hover:bg-white/[0.04]",
3292
3179
  onClick: (i) => s(m, i)
3293
3180
  }, [
3294
- (p(!0), v(L, null, N(e.headers, (i, u) => (p(), v("td", {
3181
+ (p(!0), v(B, null, N(e.headers, (i, u) => (p(), v("td", {
3295
3182
  key: u,
3296
3183
  class: "py-2 px-4"
3297
3184
  }, [
3298
- o("div", na, [
3185
+ o("div", Go, [
3299
3186
  k(c.$slots, i.key, {
3300
3187
  item: m,
3301
3188
  i: a
3302
3189
  }, () => [
3303
- H(_(r(m, i)), 1)
3190
+ j(_(r(m, i)), 1)
3304
3191
  ])
3305
3192
  ])
3306
3193
  ]))), 128))
3307
- ], 8, ta))), 128)) : (p(), v("tr", sa, [
3308
- o("td", la, [
3309
- o("div", oa, [
3194
+ ], 8, qo))), 128)) : (p(), v("tr", Jo, [
3195
+ o("td", Zo, [
3196
+ o("div", Xo, [
3310
3197
  k(c.$slots, "empty", {}, () => [
3311
- d[0] || (d[0] = H("The list is empty", -1))
3198
+ d[0] || (d[0] = j("The list is empty", -1))
3312
3199
  ])
3313
3200
  ])
3314
3201
  ])
@@ -3317,19 +3204,19 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3317
3204
  ])
3318
3205
  ]));
3319
3206
  }
3320
- }), Ra = /* @__PURE__ */ M({
3207
+ }), Aa = /* @__PURE__ */ S({
3321
3208
  __name: "VTooltip",
3322
3209
  props: {
3323
3210
  timeout: {},
3324
3211
  disabled: { type: Boolean }
3325
3212
  },
3326
3213
  setup(e) {
3327
- const n = E(!1), l = () => {
3214
+ const n = L(!1), l = () => {
3328
3215
  e.disabled || (n.value = !0);
3329
3216
  }, s = () => {
3330
3217
  n.value = !1;
3331
3218
  }, t = Ie("tooltip");
3332
- return $t(t, () => s()), (r, c) => (p(), v("div", {
3219
+ return xt(t, () => s()), (r, c) => (p(), v("div", {
3333
3220
  ref: "tooltip",
3334
3221
  class: "relative v-tooltip",
3335
3222
  onMouseenter: l,
@@ -3341,7 +3228,7 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3341
3228
  }, [
3342
3229
  k(r.$slots, "activator")
3343
3230
  ]),
3344
- g(ke, {
3231
+ g($e, {
3345
3232
  "enter-active-class": "duration-300 ease-out",
3346
3233
  "enter-from-class": "transform opacity-0 -translate-y-2",
3347
3234
  "enter-to-class": "opacity-100 translate-y-0",
@@ -3358,58 +3245,56 @@ const Ro = O({ name: "ri-arrow-drop-down-line", render: Ko }), Fo = { class: "v-
3358
3245
  }
3359
3246
  });
3360
3247
  export {
3361
- fa as AppAside,
3362
- va as AppHeader,
3363
- ba as AppNav,
3364
- ha as AppNotification,
3365
- ga as AppOverlay,
3366
- xa as AppProgress,
3367
- Ca as BlockBreadcrumb,
3368
- ya as BlockInfo,
3369
- _a as BlockScan,
3370
- $a as BlockService,
3371
- ka as BlockStatus,
3372
- wa as BlockUpdate,
3248
+ aa as AppAside,
3249
+ ia as AppHeader,
3250
+ ca as AppNav,
3251
+ ra as AppNotification,
3252
+ da as AppOverlay,
3253
+ ua as AppProgress,
3254
+ ga as BlockBreadcrumb,
3255
+ ma as BlockInfo,
3256
+ pa as BlockScan,
3257
+ fa as BlockService,
3258
+ va as BlockStatus,
3259
+ ha as BlockUpdate,
3373
3260
  ae as CardBase,
3374
- Ma as CardButton,
3375
- za as CardDate,
3376
- Sa as CardDimmer,
3377
- Va as CardInfo,
3378
- Ta as CardInput,
3379
- Ea as CardList,
3380
- qa as CardMain,
3381
- en as CardNotification,
3382
- vo as DEFAULT_SUGGESTIONS,
3383
- Ba as ItemEdit,
3384
- Da as ScriptDialog,
3385
- La as ScriptEditor,
3386
- Aa as ScriptViewDocs,
3387
- Na as VAutocomplete,
3261
+ ba as CardButton,
3262
+ xa as CardDate,
3263
+ ya as CardDimmer,
3264
+ _a as CardInfo,
3265
+ $a as CardInput,
3266
+ ka as CardList,
3267
+ ja as CardMain,
3268
+ Xt as CardNotification,
3269
+ uo as DEFAULT_SUGGESTIONS,
3270
+ wa as ItemEdit,
3271
+ za as ScriptDialog,
3272
+ Ca as ScriptEditor,
3273
+ Sa as ScriptViewDocs,
3274
+ Ea as VAutocomplete,
3388
3275
  A as VButton,
3389
- Ml as VCheckbox,
3276
+ $l as VCheckbox,
3390
3277
  Oe as VDialog,
3391
- Ua as VDragDrop,
3278
+ Ba as VDragDrop,
3392
3279
  Ne as VDropdown,
3393
- Oa as VExpansion,
3394
- cs as VFile,
3395
- xe as VFunc,
3280
+ La as VExpansion,
3281
+ is as VFile,
3282
+ be as VFunc,
3396
3283
  Pe as VIconLogo,
3397
- ct as VIconLogoMini,
3284
+ it as VIconLogoMini,
3398
3285
  Ce as VList,
3399
3286
  We as VListObject,
3400
- pt as VLoader,
3401
- Ga as VPopup,
3287
+ ct as VLoader,
3288
+ Ha as VPopup,
3402
3289
  le as VSelect,
3403
- Ka as VTable,
3404
- xl as VTabs,
3290
+ Ma as VTable,
3291
+ vl as VTabs,
3405
3292
  J as VTextField,
3406
- Fe as VTextWrapper,
3407
- Ra as VTooltip,
3408
- mt as VWifiIcon,
3409
- Ia as VisionCard,
3410
- de as VisionIcon,
3411
- Ha as VisionInput,
3412
- ja as VisionSearch,
3413
- Pa as VisionThemeToggle,
3414
- mo as fullHighlighter
3293
+ Re as VTextWrapper,
3294
+ Aa as VTooltip,
3295
+ dt as VWifiIcon,
3296
+ me as VisionIcon,
3297
+ Va as VisionSearch,
3298
+ Ta as VisionThemeToggle,
3299
+ io as fullHighlighter
3415
3300
  };