vuesp-components 2.4.0 → 2.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,41 +1,41 @@
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({
1
+ import { defineComponent as S, resolveComponent as Ae, openBlock as f, createElementBlock as v, Fragment as E, createCommentVNode as T, createElementVNode as s, normalizeClass as z, createVNode as g, withCtx as y, createBlock as I, renderSlot as k, markRaw as O, computed as B, withModifiers as U, toDisplayString as x, unref as q, TransitionGroup as De, renderList as j, mergeProps as H, ref as M, watch as oe, resolveDynamicComponent as fe, Transition as $e, normalizeStyle as ce, createTextVNode as D, normalizeProps as K, guardReactiveProps as R, onMounted as ee, onUnmounted as ke, reactive as nt, useTemplateRef as Pe, withDirectives as we, vShow as st, vModelText as Ie, createSlots as lt, isRef as at, Teleport as ot, nextTick as je } from "vue";
2
+ import { a as it, V as He, j as A, h as Ne, g as Ce, k as ue, l as rt, d as dt, i as ct, e as ae, b as ut, m as Q, _ as Oe, f as J } from "../VDialog.vue_vue_type_script_setup_true_lang-DSrvFSFT.js";
3
+ import { n as pi } from "../VDialog.vue_vue_type_script_setup_true_lang-DSrvFSFT.js";
4
+ import { f as mt, t as ft, g as pt, u as pe, s as vt, d as ht, m as gt, c as bt } from "../app-B45sALrX.js";
5
+ import { d as Se, e as yt, o as xt } from "../useDialog-ALG4kFE7.js";
6
+ import { getDataValue as _t } from "../dashboard/index.es.js";
7
+ import { useForm as $t } from "../composables/index.es.js";
8
+ import { required as kt, maxLen as wt } from "../validate/index.es.js";
9
+ const Ct = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Po = /* @__PURE__ */ S({
10
10
  __name: "AppAside",
11
11
  props: {
12
12
  isSidebar: { type: Boolean, default: !1 }
13
13
  },
14
14
  emits: ["sidebar"],
15
15
  setup(e, { emit: n }) {
16
- const l = n, s = () => {
17
- e.isSidebar && l("sidebar", !e.isSidebar);
16
+ const o = n, l = () => {
17
+ e.isSidebar && o("sidebar", !e.isSidebar);
18
18
  };
19
19
  return (t, r) => {
20
20
  const c = Ae("router-link");
21
- return p(), v(B, null, [
22
- e.isSidebar ? (p(), v("div", {
21
+ return f(), v(E, null, [
22
+ e.isSidebar ? (f(), 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
- onClick: s
26
- })) : V("", !0),
27
- o("aside", {
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"])
25
+ onClick: l
26
+ })) : T("", !0),
27
+ s("aside", {
28
+ class: z([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
- o("div", {
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"])
30
+ s("div", {
31
+ class: z([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
- default: x(() => [
35
- e.isSidebar ? (p(), I(it, {
34
+ default: y(() => [
35
+ e.isSidebar ? (f(), I(it, {
36
36
  key: 0,
37
37
  class: "h-[30px] text-primary"
38
- })) : (p(), I(Pe, {
38
+ })) : (f(), I(He, {
39
39
  key: 1,
40
40
  class: "h-[30px] text-primary"
41
41
  }))
@@ -43,73 +43,73 @@ const wt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
43
43
  _: 1
44
44
  })
45
45
  ], 2),
46
- o("div", wt, [
46
+ s("div", Ct, [
47
47
  k(t.$slots, "default")
48
48
  ])
49
49
  ], 2)
50
50
  ], 64);
51
51
  };
52
52
  }
53
- }), Ct = {
53
+ }), St = {
54
54
  viewBox: "0 0 24 24",
55
55
  width: "1.2em",
56
56
  height: "1.2em"
57
57
  };
58
- function St(e, n) {
59
- return p(), v("svg", Ct, [...n[0] || (n[0] = [
60
- o("path", {
58
+ function zt(e, n) {
59
+ return f(), v("svg", St, [...n[0] || (n[0] = [
60
+ s("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 Ke = O({ name: "ri-more-line", render: St }), zt = {
66
+ const Fe = O({ name: "ri-more-line", render: zt }), Vt = {
67
67
  viewBox: "0 0 24 24",
68
68
  width: "1.2em",
69
69
  height: "1.2em"
70
70
  };
71
- function Vt(e, n) {
72
- return p(), v("svg", zt, [...n[0] || (n[0] = [
73
- o("path", {
71
+ function Tt(e, n) {
72
+ return f(), v("svg", Vt, [...n[0] || (n[0] = [
73
+ s("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 Tt = O({ name: "ri-logout-box-line", render: Vt }), Et = {
79
+ const Lt = O({ name: "ri-logout-box-line", render: Tt }), Et = {
80
80
  viewBox: "0 0 24 24",
81
81
  width: "1.2em",
82
82
  height: "1.2em"
83
83
  };
84
- function Lt(e, n) {
85
- return p(), v("svg", Et, [...n[0] || (n[0] = [
86
- o("path", {
84
+ function Bt(e, n) {
85
+ return f(), v("svg", Et, [...n[0] || (n[0] = [
86
+ s("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 Fe = O({ name: "ri-notification-line", render: Lt }), Bt = {
92
+ const Ke = O({ name: "ri-notification-line", render: Bt }), Mt = {
93
93
  viewBox: "0 0 24 24",
94
94
  width: "1.2em",
95
95
  height: "1.2em"
96
96
  };
97
- function Mt(e, n) {
98
- return p(), v("svg", Bt, [...n[0] || (n[0] = [
99
- o("path", {
97
+ function At(e, n) {
98
+ return f(), v("svg", Mt, [...n[0] || (n[0] = [
99
+ s("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 At = O({ name: "ri-moon-line", render: Mt }), Dt = {
105
+ const Dt = O({ name: "ri-moon-line", render: At }), Pt = {
106
106
  viewBox: "0 0 24 24",
107
107
  width: "1.2em",
108
108
  height: "1.2em"
109
109
  };
110
110
  function It(e, n) {
111
- return p(), v("svg", Dt, [...n[0] || (n[0] = [
112
- o("path", {
111
+ return f(), v("svg", Pt, [...n[0] || (n[0] = [
112
+ s("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)
@@ -120,15 +120,15 @@ const jt = O({ name: "ri-sun-line", render: It }), Ht = {
120
120
  width: "1.2em",
121
121
  height: "1.2em"
122
122
  };
123
- function Pt(e, n) {
124
- return p(), v("svg", Ht, [...n[0] || (n[0] = [
125
- o("path", {
123
+ function Nt(e, n) {
124
+ return f(), v("svg", Ht, [...n[0] || (n[0] = [
125
+ s("path", {
126
126
  fill: "currentColor",
127
127
  d: "M3 4h18v2H3zm0 7h18v2H3zm0 7h18v2H3z"
128
128
  }, null, -1)
129
129
  ])]);
130
130
  }
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({
131
+ const Ot = O({ name: "ri-menu-line", render: Nt }), Ft = { 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" }, Rt = { class: "container mx-auto flex flex-auto items-center" }, Ut = { class: "lg:hidden h-[30px]" }, Wt = { class: "gap-4 hidden lg:flex" }, qt = { class: "lg:hidden flex gap-4" }, Gt = { class: "ms-2" }, Io = /* @__PURE__ */ S({
132
132
  __name: "AppHeader",
133
133
  props: {
134
134
  changeTheme: { type: Function },
@@ -136,48 +136,48 @@ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header
136
136
  },
137
137
  emits: ["sidebar", "notif"],
138
138
  setup(e, { emit: n }) {
139
- const l = n, s = [
139
+ const o = n, l = [
140
140
  { name: "Theme", value: 1 },
141
141
  { name: "Notification", value: 2 },
142
142
  { name: "Logout", value: 3 }
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 = () => {
143
+ ], t = B(() => !!e.notifications.find((a) => a.isNew)), r = (a) => o("sidebar", a), c = (a) => o("notif", a), d = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), m = () => {
144
144
  e.changeTheme && e.changeTheme();
145
- }, a = ({ value: i }, u) => {
146
- i == 1 && m(), i == 2 && c(u), i == 3 && d();
145
+ }, i = ({ value: a }, u) => {
146
+ a == 1 && m(), a == 2 && c(u), a == 3 && d();
147
147
  };
148
- return (i, u) => {
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
- 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", Kt, [
153
- o("div", Ft, [
148
+ return (a, u) => {
149
+ const p = Ot, b = Ae("router-link"), h = jt, _ = Dt, V = Ke, L = Lt, w = Fe;
150
+ return f(), v("header", Ft, [
151
+ u[3] || (u[3] = s("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
+ s("div", Kt, [
153
+ s("div", Rt, [
154
154
  g(A, {
155
155
  type: "icon",
156
156
  onClick: r
157
157
  }, {
158
- default: x(() => [
159
- g(f, { class: "size-5" })
158
+ default: y(() => [
159
+ g(p, { class: "size-5" })
160
160
  ]),
161
161
  _: 1
162
162
  }),
163
- u[1] || (u[1] = o("div", { class: "lg:hidden flex-auto" }, null, -1)),
164
- o("div", Ut, [
163
+ u[1] || (u[1] = s("div", { class: "lg:hidden flex-auto" }, null, -1)),
164
+ s("div", Ut, [
165
165
  g(b, { to: "/" }, {
166
- default: x(() => [
167
- g(Pe, { class: "h-[30px] text-primary" })
166
+ default: y(() => [
167
+ g(He, { class: "h-[30px] text-primary" })
168
168
  ]),
169
169
  _: 1
170
170
  })
171
171
  ]),
172
- u[2] || (u[2] = o("div", { class: "flex-auto" }, null, -1)),
173
- o("div", Rt, [
172
+ u[2] || (u[2] = s("div", { class: "flex-auto" }, null, -1)),
173
+ s("div", Wt, [
174
174
  g(A, {
175
175
  type: "icon",
176
176
  onClick: m
177
177
  }, {
178
- default: x(() => [
178
+ default: y(() => [
179
179
  g(h, { class: "dark:hidden" }),
180
- g(y, { class: "hidden dark:flex" })
180
+ g(_, { class: "hidden dark:flex" })
181
181
  ]),
182
182
  _: 1
183
183
  }),
@@ -185,51 +185,51 @@ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header
185
185
  type: "icon",
186
186
  onClick: c
187
187
  }, {
188
- default: x(() => [
189
- o("span", {
190
- class: E([t.value ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
188
+ default: y(() => [
189
+ s("span", {
190
+ class: z([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
- o("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
192
+ s("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(z, { class: "size-5" })
194
+ g(V, { class: "size-5" })
195
195
  ]),
196
196
  _: 1
197
197
  }),
198
198
  g(A, {
199
199
  type: "icon",
200
- onClick: R(d, ["prevent"])
200
+ onClick: U(d, ["prevent"])
201
201
  }, {
202
- default: x(() => [
203
- g(T, { class: "size-5" })
202
+ default: y(() => [
203
+ g(L, { class: "size-5" })
204
204
  ]),
205
205
  _: 1
206
206
  })
207
207
  ]),
208
- o("div", Wt, [
208
+ s("div", qt, [
209
209
  g(Ne, {
210
210
  left: "unset",
211
211
  right: "0",
212
212
  top: "0"
213
213
  }, {
214
- activator: x(({ on: P }) => [
214
+ activator: y(({ on: N }) => [
215
215
  g(A, {
216
216
  type: "icon",
217
217
  class: "flex",
218
- onClick: P.click
218
+ onClick: N.click
219
219
  }, {
220
- default: x(() => [
220
+ default: y(() => [
221
221
  g(w)
222
222
  ]),
223
223
  _: 1
224
224
  }, 8, ["onClick"])
225
225
  ]),
226
- default: x(() => [
226
+ default: y(() => [
227
227
  g(Ce, {
228
- items: s,
229
- onClick: a
228
+ items: l,
229
+ onClick: i
230
230
  }, {
231
- default: x(({ item: P }) => [
232
- o("span", qt, _(P.name), 1)
231
+ default: y(({ item: N }) => [
232
+ s("span", Gt, x(N.name), 1)
233
233
  ]),
234
234
  _: 1
235
235
  })
@@ -242,7 +242,7 @@ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header
242
242
  ]);
243
243
  };
244
244
  }
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({
245
+ }), Jt = { class: "relative flex items-center gap-2 w-full p-2 overflow-hidden" }, Zt = { class: "flex-auto text-xs" }, Xt = { class: "text-gray-500 dark:text-gray-400 mt-1" }, Yt = /* @__PURE__ */ S({
246
246
  __name: "CardNotification",
247
247
  props: {
248
248
  empty: {},
@@ -255,31 +255,31 @@ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header
255
255
  },
256
256
  emits: ["remove", "read"],
257
257
  setup(e, { emit: n }) {
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
- return (m, a) => {
260
- const i = Fe, u = de;
261
- return p(), v("div", Gt, [
262
- o("div", {
263
- class: E(["absolute left-0 top-0 w-[3px] h-full", r(l.color)])
258
+ const o = e, l = n, t = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], r = (m) => t[m], c = (m) => l("remove", m), d = (m) => l("read", m);
259
+ return (m, i) => {
260
+ const a = Ke, u = ue;
261
+ return f(), v("div", Jt, [
262
+ s("div", {
263
+ class: z(["absolute left-0 top-0 w-[3px] h-full", r(o.color)])
264
264
  }, null, 2),
265
265
  g(A, {
266
266
  class: "shrink-0",
267
267
  type: "icon",
268
268
  onClick: d
269
269
  }, {
270
- default: x(() => [
271
- o("span", {
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
- }, [...a[0] || (a[0] = [
274
- o("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
270
+ default: y(() => [
271
+ s("span", {
272
+ class: z([o.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
273
+ }, [...i[0] || (i[0] = [
274
+ s("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
275
275
  ])], 2),
276
- g(i, { class: "size-5" })
276
+ g(a, { class: "size-5" })
277
277
  ]),
278
278
  _: 1
279
279
  }),
280
- o("div", Jt, [
281
- o("div", null, _(l.text), 1),
282
- o("div", Zt, _(q(ut)(l.date)) + " (" + _(q(mt)(l.date)) + ")", 1)
280
+ s("div", Zt, [
281
+ s("div", null, x(o.text), 1),
282
+ s("div", Xt, x(q(mt)(o.date)) + " (" + x(q(ft)(o.date)) + ")", 1)
283
283
  ]),
284
284
  g(A, {
285
285
  class: "shrink-0",
@@ -287,7 +287,7 @@ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header
287
287
  size: "sm",
288
288
  onClick: c
289
289
  }, {
290
- default: x(() => [
290
+ default: y(() => [
291
291
  g(u, { class: "size-4" })
292
292
  ]),
293
293
  _: 1
@@ -295,10 +295,10 @@ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header
295
295
  ]);
296
296
  };
297
297
  }
298
- }), Yt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Qt = {
298
+ }), Qt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, en = {
299
299
  key: 0,
300
300
  class: "flex flex-col gap-2 p-2"
301
- }, ra = /* @__PURE__ */ S({
301
+ }, jo = /* @__PURE__ */ S({
302
302
  __name: "AppNotification",
303
303
  props: {
304
304
  value: { type: Boolean },
@@ -306,19 +306,19 @@ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header
306
306
  },
307
307
  emits: ["close", "remove", "read"],
308
308
  setup(e, { emit: n }) {
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
- l.value ? (p(), v("div", {
309
+ const o = e, l = n, t = B(() => !!o.notifications.find((i) => i.isNew)), r = B(() => !!o.notifications.length), c = (i) => l("close", i), d = (i) => l("remove", i), m = (i) => l("read", i);
310
+ return (i, a) => (f(), v(E, null, [
311
+ o.value ? (f(), 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
- })) : V("", !0),
316
- o("aside", {
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"])
315
+ })) : T("", !0),
316
+ s("aside", {
317
+ class: z([o.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", Yt, [
320
- k(a.$slots, "header", { isNew: t.value }),
321
- r.value ? (p(), v("div", Qt, [
319
+ s("div", Qt, [
320
+ k(i.$slots, "header", { isNew: t.value }),
321
+ r.value ? (f(), v("div", en, [
322
322
  g(De, {
323
323
  "enter-active-class": "transition-all duration-300 ",
324
324
  "enter-from-class": "opacity-0 translate-x-1/2",
@@ -327,53 +327,53 @@ const Nt = O({ name: "ri-menu-line", render: Pt }), Ot = { class: "glass-header
327
327
  "leave-from-class": "opacity-100 translate-x-0",
328
328
  "leave-to-class": "opacity-0 translate-x-1/2"
329
329
  }, {
330
- default: x(() => [
331
- (p(!0), v(B, null, N(l.notifications, (u) => (p(), v("div", {
330
+ default: y(() => [
331
+ (f(!0), v(E, null, j(o.notifications, (u) => (f(), v("div", {
332
332
  key: u.date,
333
333
  class: "relative"
334
334
  }, [
335
- k(a.$slots, "card", { item: u }, () => [
336
- g(Xt, H({ ref_for: !0 }, u, {
335
+ k(i.$slots, "card", { item: u }, () => [
336
+ g(Yt, 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
- onRemove: (f) => d(u),
339
- onRead: (f) => m(u)
338
+ onRemove: (p) => d(u),
339
+ onRead: (p) => m(u)
340
340
  }), null, 16, ["onRemove", "onRead"])
341
341
  ])
342
342
  ]))), 128))
343
343
  ]),
344
344
  _: 3
345
345
  })
346
- ])) : k(a.$slots, "empty", {}, void 0, void 0, 1)
346
+ ])) : k(i.$slots, "empty", {}, void 0, void 0, 1)
347
347
  ])
348
348
  ], 2)
349
349
  ], 64));
350
350
  }
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
- 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", nn, [
351
+ }), tn = {}, nn = { class: "fixed h-full w-full top-0 left-0 z-20" }, sn = { class: "absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2" };
352
+ function ln(e, n) {
353
+ return f(), v("div", nn, [
354
+ n[0] || (n[0] = s("div", { class: "absolute h-full w-full top-0 left-0 bg-black/60 bg-blur" }, null, -1)),
355
+ s("div", sn, [
356
356
  k(e.$slots, "default")
357
357
  ])
358
358
  ]);
359
359
  }
360
- const da = /* @__PURE__ */ rt(en, [["render", sn]]), ln = {
360
+ const Ho = /* @__PURE__ */ rt(tn, [["render", ln]]), an = {
361
361
  viewBox: "0 0 24 24",
362
362
  width: "1.2em",
363
363
  height: "1.2em"
364
364
  };
365
365
  function on(e, n) {
366
- return p(), v("svg", ln, [...n[0] || (n[0] = [
367
- o("path", {
366
+ return f(), v("svg", an, [...n[0] || (n[0] = [
367
+ s("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 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 = {
373
+ const rn = O({ name: "ri-arrow-right-s-line", render: on }), dn = { class: "mb-4 flex flex-col gap-2" }, cn = { class: "size-6 flex-[0_0_24px] opacity-60" }, un = ["onClick"], mn = { class: "flex flex-col gap-2" }, fn = { class: "flex gap-2 ms-8" }, pn = { class: "size-5 flex-[0_0_24px]" }, vn = { class: "flex-1 first-letter:uppercase text-sm" }, hn = {
374
374
  key: 0,
375
375
  class: "mt-2"
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({
376
+ }, gn = { class: "flex flex-col gap-2" }, bn = { class: "flex gap-2 ms-14" }, yn = { class: "size-5 flex-[0_0_24px]" }, xn = { class: "flex-1 first-letter:uppercase text-sm" }, No = /* @__PURE__ */ S({
377
377
  __name: "AppNav",
378
378
  props: {
379
379
  menu: { default: () => [] },
@@ -382,15 +382,15 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
382
382
  },
383
383
  emits: ["sidebar"],
384
384
  setup(e, { emit: n }) {
385
- const l = n, s = L(""), t = ({ name: a }) => {
386
- e.isSidebar && l("sidebar", !e.isSidebar), s.value !== a && (s.value = s.value === a ? "" : a);
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(
385
+ const o = n, l = M(""), t = ({ name: i }) => {
386
+ e.isSidebar && o("sidebar", !e.isSidebar), l.value !== i && (l.value = l.value === i ? "" : i);
387
+ }, r = (i) => e.fullPath === i, c = (i) => i ? e.fullPath === i || e.fullPath.startsWith(i) : !1, d = (i, a) => !i.path || a === "/" || i.path === "/" ? !1 : i.path === a || a.includes(i.path), m = (i, a) => (i == null ? void 0 : i.find(
388
388
  (u) => {
389
- var f;
390
- return d(u, i) || ((f = u.children) == null ? void 0 : f.some(
389
+ var p;
390
+ return d(u, a) || ((p = u.children) == null ? void 0 : p.some(
391
391
  (b) => {
392
392
  var h;
393
- return d(b, i) || ((h = b.children) == null ? void 0 : h.some((y) => d(y, i)));
393
+ return d(b, a) || ((h = b.children) == null ? void 0 : h.some((_) => d(_, a)));
394
394
  }
395
395
  ));
396
396
  }
@@ -398,100 +398,100 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
398
398
  return oe(
399
399
  () => e.menu,
400
400
  () => {
401
- var a;
402
- return s.value = ((a = m(e.menu, e.fullPath) ?? pt(e.menu, e.fullPath)) == null ? void 0 : a.name) || "";
401
+ var i;
402
+ return l.value = ((i = m(e.menu, e.fullPath) ?? pt(e.menu, e.fullPath)) == null ? void 0 : i.name) || "";
403
403
  }
404
- ), (a, i) => {
405
- const u = an;
406
- return p(), v("nav", null, [
407
- o("ul", rn, [
408
- (p(!0), v(B, null, N(e.menu, (f) => (p(), v("li", {
409
- key: f.name
404
+ ), (i, a) => {
405
+ const u = rn;
406
+ return f(), v("nav", null, [
407
+ s("ul", dn, [
408
+ (f(!0), v(E, null, j(e.menu, (p) => (f(), v("li", {
409
+ key: p.name
410
410
  }, [
411
- (p(), I(ue(f.path ? "router-link" : "span"), {
412
- to: f.path,
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"])
411
+ (f(), I(fe(p.path ? "router-link" : "span"), {
412
+ to: p.path,
413
+ class: z(["flex gap-2 items-center px-3 py-2 rounded", r(p.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"]),
414
+ onClick: U((b) => t(p), ["prevent", "stop"])
415
415
  }, {
416
- default: x(() => [
417
- o("div", dn, [
418
- k(a.$slots, "icon", { item: f })
416
+ default: y(() => [
417
+ s("div", cn, [
418
+ k(i.$slots, "icon", { item: p })
419
419
  ]),
420
- o("span", {
421
- class: E(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
422
- }, _(f.name), 3),
423
- o("button", {
424
- class: E(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
425
- onClick: R((b) => t(f), ["prevent", "stop"])
420
+ s("span", {
421
+ class: z(["flex-1 first-letter:uppercase text-sm", e.isSidebar ? "lg:hidden" : ""])
422
+ }, x(p.name), 3),
423
+ s("button", {
424
+ class: z(["cursor-pointer", [e.isSidebar ? "lg:hidden" : ""]]),
425
+ onClick: U((b) => t(p), ["prevent", "stop"])
426
426
  }, [
427
- f.children ? (p(), I(u, { key: 0 })) : V("", !0)
428
- ], 10, cn)
427
+ p.children ? (f(), I(u, { key: 0 })) : T("", !0)
428
+ ], 10, un)
429
429
  ]),
430
430
  _: 2
431
431
  }, 1032, ["to", "class", "onClick"])),
432
- f.children ? (p(), v("div", {
432
+ p.children ? (f(), v("div", {
433
433
  key: 0,
434
- class: E(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", s.value === f.name ? "block" : "hidden"]])
434
+ class: z(["translate transform overflow-hidden mt-2", [e.isSidebar ? "lg:hidden" : "", l.value === p.name ? "block" : "hidden"]])
435
435
  }, [
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"), {
436
+ s("ul", mn, [
437
+ (f(!0), v(E, null, j(p.children, ({ name: b, path: h, icon: _, children: V }) => (f(), v("li", { key: b }, [
438
+ (f(), I(fe(h ? "router-link" : "span"), {
439
439
  to: h,
440
- class: E(["flex gap-2 items-center px-3 py-2 rounded", r(h) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
440
+ class: z(["flex gap-2 items-center px-3 py-2 rounded", r(h) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
441
441
  }, {
442
- default: x(() => [
443
- o("div", mn, [
444
- o("div", pn, [
445
- k(a.$slots, "icon-children", {
446
- item: { name: b, path: h, icon: y }
442
+ default: y(() => [
443
+ s("div", fn, [
444
+ s("div", pn, [
445
+ k(i.$slots, "icon-children", {
446
+ item: { name: b, path: h, icon: _ }
447
447
  })
448
448
  ]),
449
- o("span", fn, _(b), 1)
449
+ s("span", vn, x(b), 1)
450
450
  ])
451
451
  ]),
452
452
  _: 2
453
453
  }, 1032, ["to", "class"])),
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
454
+ V != null && V.length && c(h) ? (f(), v("div", hn, [
455
+ s("ul", gn, [
456
+ (f(!0), v(E, null, j(V, (L) => (f(), v("li", {
457
+ key: L.name
458
458
  }, [
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"])
459
+ (f(), I(fe(L.path ? "router-link" : "span"), {
460
+ to: L.path,
461
+ class: z(["flex gap-2 items-center px-3 py-2 rounded", r(L.path) ? "bg-primary/10 text-primary" : "hover:bg-white/5"])
462
462
  }, {
463
- default: x(() => [
464
- o("div", gn, [
465
- o("div", bn, [
466
- k(a.$slots, "icon-children", { item: T })
463
+ default: y(() => [
464
+ s("div", bn, [
465
+ s("div", yn, [
466
+ k(i.$slots, "icon-children", { item: L })
467
467
  ]),
468
- o("span", xn, _(T.name), 1)
468
+ s("span", xn, x(L.name), 1)
469
469
  ])
470
470
  ]),
471
471
  _: 2
472
472
  }, 1032, ["to", "class"]))
473
473
  ]))), 128))
474
474
  ])
475
- ])) : V("", !0)
475
+ ])) : T("", !0)
476
476
  ]))), 128))
477
477
  ])
478
- ], 2)) : V("", !0)
478
+ ], 2)) : T("", !0)
479
479
  ]))), 128))
480
480
  ])
481
481
  ]);
482
482
  };
483
483
  }
484
- }), yn = {
484
+ }), _n = {
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
- }, _n = { class: "flex items-center gap-4 text-sm" }, $n = {
488
+ }, $n = { class: "flex items-center gap-4 text-sm" }, kn = {
489
489
  key: 0,
490
490
  class: "text-green-600"
491
- }, kn = {
491
+ }, wn = {
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
- }, 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({
494
+ }, Cn = { 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" }, Oo = /* @__PURE__ */ S({
495
495
  __name: "AppProgress",
496
496
  props: {
497
497
  timeout: { default: 5e3 },
@@ -502,7 +502,7 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
502
502
  length: { default: 0 }
503
503
  },
504
504
  setup(e) {
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(() => {
505
+ const n = M(!1), o = B(() => !!e.length), l = B(() => !!(o.value && t.value === 100 && !e.status)), t = B(() => 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 an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
511
511
  n.value = !0, r();
512
512
  }
513
513
  ), (c, d) => {
514
- const m = de;
515
- return p(), I($e, {
514
+ const m = ue;
515
+ return f(), 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",
@@ -520,41 +520,41 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
520
520
  "leave-from-class": "opacity-100 translate-y-0",
521
521
  "leave-to-class": "transform opacity-0 -translate-y-8"
522
522
  }, {
523
- default: x(() => [
524
- n.value ? (p(), v("div", yn, [
525
- o("div", _n, [
526
- k(c.$slots, "default", { isDone: s.value }, () => [
527
- d[1] || (d[1] = o("div", { class: "flex-auto" }, "Progress...", -1)),
528
- s.value ? (p(), v("span", $n, "Done")) : V("", !0)
523
+ default: y(() => [
524
+ n.value ? (f(), v("div", _n, [
525
+ s("div", $n, [
526
+ k(c.$slots, "default", { isDone: l.value }, () => [
527
+ d[1] || (d[1] = s("div", { class: "flex-auto" }, "Progress...", -1)),
528
+ l.value ? (f(), v("span", kn, "Done")) : T("", !0)
529
529
  ]),
530
- o("button", {
530
+ s("button", {
531
531
  class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
532
- onClick: d[0] || (d[0] = (a) => n.value = !1)
532
+ onClick: d[0] || (d[0] = (i) => n.value = !1)
533
533
  }, [
534
534
  g(m, { class: "size-4" })
535
535
  ])
536
536
  ]),
537
- l.value ? (p(), v("div", {
537
+ o.value ? (f(), v("div", {
538
538
  key: 0,
539
539
  class: "h-[2px] fixed top-0 left-0 w-full bg-blue-600 transition-all duration-500",
540
- style: ve(`width: ${t.value}%`)
541
- }, null, 4)) : V("", !0),
542
- l.value ? (p(), v("div", kn, [
543
- o("div", wn, _(t.value) + "%", 1),
544
- o("div", {
540
+ style: ce(`width: ${t.value}%`)
541
+ }, null, 4)) : T("", !0),
542
+ o.value ? (f(), v("div", wn, [
543
+ s("div", Cn, x(t.value) + "%", 1),
544
+ s("div", {
545
545
  class: "bg-blue-600 rounded h-4 overflow-hidden relative transition-all duration-500",
546
- style: ve(`width: ${t.value}%`)
546
+ style: ce(`width: ${t.value}%`)
547
547
  }, [
548
- o("div", Cn, _(t.value) + "%", 1)
548
+ s("div", Sn, x(t.value) + "%", 1)
549
549
  ], 4)
550
- ])) : V("", !0)
551
- ])) : V("", !0)
550
+ ])) : T("", !0)
551
+ ])) : T("", !0)
552
552
  ]),
553
553
  _: 3
554
554
  });
555
555
  };
556
556
  }
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({
557
+ }), zn = { class: "my-4 text-gray-700 dark:text-gray-400" }, Vn = { class: "flex flex-col md:flex-row flex-wrap md:gap-4 text-sm" }, Tn = { class: "flex gap-2" }, Ln = { class: "text-gray-700 dark:text-gray-400" }, En = { class: "flex gap-2" }, Bn = { class: "flex gap-2" }, Mn = { class: "text-gray-700 dark:text-gray-400" }, An = { class: "flex gap-2" }, Dn = { class: "text-gray-700 dark:text-gray-400" }, Pn = { class: "flex flex-col gap-4 text-sm" }, In = { class: "flex gap-4" }, Fo = /* @__PURE__ */ S({
558
558
  __name: "BlockInfo",
559
559
  props: {
560
560
  pkg: {},
@@ -568,85 +568,85 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
568
568
  board: {}
569
569
  },
570
570
  setup(e) {
571
- const n = M(() => e.firmware.join(".")), l = M(() => {
572
- var t, r, c, d, m, a, i;
573
- const s = [];
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;
571
+ const n = B(() => e.firmware.join(".")), o = B(() => {
572
+ var t, r, c, d, m, i, a;
573
+ const l = [];
574
+ return (t = e.pkg) != null && t.homepage && l.push({ name: "homepage", href: e.pkg.homepage }), (c = (r = e.pkg) == null ? void 0 : r.repository) != null && c.url && l.push({ name: "repository", href: e.pkg.repository.url }), (m = (d = e.pkg) == null ? void 0 : d.bugs) != null && m.url && l.push({ name: "bugs", href: e.pkg.bugs.url }), (i = e.pkg) != null && i.author && l.push({ name: "author", href: `mailto:${(a = e.pkg) == null ? void 0 : a.author}` }), l;
575
575
  });
576
- return (s, t) => {
576
+ return (l, t) => {
577
577
  var r, c;
578
- return p(), v("div", null, [
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)
578
+ return f(), v("div", null, [
579
+ s("p", zn, x((r = e.pkg) == null ? void 0 : r.description), 1),
580
+ s("div", Vn, [
581
+ s("div", Tn, [
582
+ t[0] || (t[0] = D(" Firmware (hw): ", -1)),
583
+ s("span", Ln, x(n.value), 1)
584
584
  ]),
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)
585
+ s("div", En, [
586
+ s("div", Bn, [
587
+ t[1] || (t[1] = D(" Version (web): ", -1)),
588
+ s("span", Mn, x((c = e.pkg) == null ? void 0 : c.version), 1)
589
589
  ])
590
590
  ]),
591
- t[3] || (t[3] = o("div", { class: "flex-auto" }, null, -1)),
592
- o("div", Mn, [
593
- t[2] || (t[2] = j(" ID: ", -1)),
594
- o("span", An, _(e.id.toString(16)), 1)
591
+ t[3] || (t[3] = s("div", { class: "flex-auto" }, null, -1)),
592
+ s("div", An, [
593
+ t[2] || (t[2] = D(" ID: ", -1)),
594
+ s("span", Dn, x(e.id.toString(16)), 1)
595
595
  ])
596
596
  ]),
597
- t[4] || (t[4] = o("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
598
- o("div", Dn, [
599
- o("div", In, [
600
- k(s.$slots, "links", { links: l.value })
597
+ t[4] || (t[4] = s("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
598
+ s("div", Pn, [
599
+ s("div", In, [
600
+ k(l.$slots, "links", { links: o.value })
601
601
  ])
602
602
  ])
603
603
  ]);
604
604
  };
605
605
  }
606
- }), jn = ["onClick"], Hn = { class: "mr-2" }, Pn = { class: "text-sm" }, Nn = { class: "text-gray-400 text-xs" }, On = {
606
+ }), jn = ["onClick"], Hn = { class: "mr-2" }, Nn = { class: "text-sm" }, On = { class: "text-gray-400 text-xs" }, Fn = {
607
607
  key: 0,
608
608
  class: "flex justify-center"
609
- }, Kn = { class: "flex justify-end mt-4" }, pa = /* @__PURE__ */ S({
609
+ }, Kn = { class: "flex justify-end mt-4" }, Ko = /* @__PURE__ */ S({
610
610
  __name: "BlockScan",
611
611
  props: {
612
612
  items: { default: () => [] }
613
613
  },
614
614
  emits: ["scan", "select"],
615
615
  setup(e, { emit: n }) {
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);
616
+ const o = n, l = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], t = (c) => o("select", c), r = (c) => o("scan", c);
617
617
  return (c, d) => {
618
- const m = dt, a = Ce, i = ct, u = A;
619
- return p(), v("div", null, [
620
- g(a, {
618
+ const m = dt, i = Ce, a = ct, u = A;
619
+ return f(), v("div", null, [
620
+ g(i, {
621
621
  items: e.items,
622
622
  class: "bg-transparent! ring-0!"
623
623
  }, {
624
- default: x(({ item: f }) => [
625
- o("div", {
624
+ default: y(({ item: p }) => [
625
+ s("div", {
626
626
  class: "flex items-center w-full",
627
- onClick: (b) => t(f)
627
+ onClick: (b) => t(p)
628
628
  }, [
629
- o("div", Hn, [
630
- g(m, F(U(f)), null, 16)
629
+ s("div", Hn, [
630
+ g(m, K(R(p)), null, 16)
631
631
  ]),
632
- o("div", null, [
633
- o("div", Pn, _(f.ssid), 1),
634
- o("div", Nn, _(c.$t("security")) + " : " + _(s[f.encryptionType] || "unknown"), 1)
632
+ s("div", null, [
633
+ s("div", Nn, x(p.ssid), 1),
634
+ s("div", On, x(c.$t("security")) + " : " + x(l[p.encryptionType] || "unknown"), 1)
635
635
  ])
636
636
  ], 8, jn)
637
637
  ]),
638
638
  _: 1
639
639
  }, 8, ["items"]),
640
- e.items.length ? V("", !0) : (p(), v("div", On, [
641
- g(i, { class: "text-primary" })
640
+ e.items.length ? T("", !0) : (f(), v("div", Fn, [
641
+ g(a, { class: "text-primary" })
642
642
  ])),
643
- o("div", Kn, [
643
+ s("div", Kn, [
644
644
  g(u, {
645
645
  color: "blue",
646
646
  onClick: r
647
647
  }, {
648
- default: x(() => [
649
- j(_(c.$t("scan")), 1)
648
+ default: y(() => [
649
+ D(x(c.$t("scan")), 1)
650
650
  ]),
651
651
  _: 1
652
652
  })
@@ -654,7 +654,7 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
654
654
  ]);
655
655
  };
656
656
  }
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({
657
+ }), Rn = { class: "md:flex items-center mb-4" }, Un = { class: "flex-auto text-gray-600 bg:text-gray-400 mb-2" }, Wn = { class: "md:max-w-50" }, qn = { class: "flex items-center mb-4" }, Gn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Jn = { class: "flex items-center mb-4" }, Zn = { class: "flex-auto text-gray-600 bg:text-gray-400" }, Ro = /* @__PURE__ */ S({
658
658
  __name: "BlockService",
659
659
  props: {
660
660
  locale: {},
@@ -662,47 +662,47 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
662
662
  },
663
663
  emits: ["reboot", "reset", "locale"],
664
664
  setup(e, { emit: n }) {
665
- const l = n, s = (r) => l("locale", r), t = (r) => {
665
+ const o = n, l = (r) => o("locale", r), t = (r) => {
666
666
  var c;
667
667
  return (c = e.locales.find((d) => d.value === r)) == null ? void 0 : c.name;
668
668
  };
669
669
  return (r, c) => {
670
- const d = le, m = A;
671
- return p(), v(B, null, [
672
- o("div", Fn, [
673
- o("div", Un, _(r.$t("selectLang")), 1),
674
- o("div", Rn, [
670
+ const d = ae, m = A;
671
+ return f(), v(E, null, [
672
+ s("div", Rn, [
673
+ s("div", Un, x(r.$t("selectLang")), 1),
674
+ s("div", Wn, [
675
675
  g(d, {
676
676
  "model-value": t(e.locale),
677
677
  label: r.$t("lang"),
678
678
  items: e.locales,
679
- onChange: s
679
+ onChange: l
680
680
  }, null, 8, ["model-value", "label", "items"])
681
681
  ])
682
682
  ]),
683
- o("div", Wn, [
684
- o("div", qn, _(r.$t("rebootDev")), 1),
683
+ s("div", qn, [
684
+ s("div", Gn, x(r.$t("rebootDev")), 1),
685
685
  g(m, {
686
686
  class: "min-w-[100px]",
687
687
  color: "red",
688
688
  outline: "",
689
- onClick: c[0] || (c[0] = (a) => l("reboot", a))
689
+ onClick: c[0] || (c[0] = (i) => o("reboot", i))
690
690
  }, {
691
- default: x(() => [
692
- j(_(r.$t("reboot")), 1)
691
+ default: y(() => [
692
+ D(x(r.$t("reboot")), 1)
693
693
  ]),
694
694
  _: 1
695
695
  })
696
696
  ]),
697
- o("div", Gn, [
698
- o("div", Jn, _(r.$t("resetConf")), 1),
697
+ s("div", Jn, [
698
+ s("div", Zn, x(r.$t("resetConf")), 1),
699
699
  g(m, {
700
700
  class: "min-w-[100px]",
701
701
  color: "red",
702
- onClick: c[1] || (c[1] = (a) => l("reset", a))
702
+ onClick: c[1] || (c[1] = (i) => o("reset", i))
703
703
  }, {
704
- default: x(() => [
705
- j(_(r.$t("reset")), 1)
704
+ default: y(() => [
705
+ D(x(r.$t("reset")), 1)
706
706
  ]),
707
707
  _: 1
708
708
  })
@@ -710,7 +710,7 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
710
710
  ], 64);
711
711
  };
712
712
  }
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({
713
+ }), Xn = { class: "grid grid-cols-1 gap-4 lg:max-w-[360px] min-w-[250px]" }, Yn = { class: "flex flex-col w-full items-center gap-2" }, Qn = ["title"], es = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-center text-sm font-bold leading-none text-gray-900 dark:text-white" }, ts = { class: "absolute left-[110px] top-1/2 -translate-1/2 text-sm font-bold text-white text-center leading-none" }, ns = { class: "flex justify-between w-full text-xs" }, ss = { class: "text-gray-500 dark:text-white/50" }, ls = { class: "text-sm" }, as = { class: "text-gray-500 dark:text-white/50 text-left" }, os = { class: "text-right text-xs" }, Uo = /* @__PURE__ */ S({
714
714
  __name: "BlockStatus",
715
715
  props: {
716
716
  pkg: {},
@@ -724,138 +724,138 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
724
724
  board: {}
725
725
  },
726
726
  setup(e) {
727
- const n = L(e.uptime);
728
- let l = null;
729
- const s = M(() => e.firmware.join(".")), t = M(() => [
727
+ const n = M(e.uptime);
728
+ let o = null;
729
+ const l = B(() => e.firmware.join(".")), t = B(() => [
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 = M(() => {
733
+ ]), r = B(() => {
734
734
  var m;
735
735
  return [
736
- { name: "uptime", value: ft(n.value) },
736
+ { name: "uptime", value: vt(n.value) },
737
737
  { name: "id", value: `${e.id.toString(16)} (${e.id})` },
738
- { name: "firmware", value: s.value },
738
+ { name: "firmware", value: l.value },
739
739
  { name: "version", value: (m = e.pkg) == null ? void 0 : m.version }
740
740
  ];
741
- }), c = M(() => e.usedBytes ? Math.round(e.usedBytes * 100 / e.totalBytes) : 0), d = () => {
742
- n.value++, l = setTimeout(d, 1e3);
741
+ }), c = B(() => e.usedBytes ? Math.round(e.usedBytes * 100 / e.totalBytes) : 0), d = () => {
742
+ n.value++, o = setTimeout(d, 1e3);
743
743
  };
744
- return Q(() => {
744
+ return ee(() => {
745
745
  d();
746
746
  }), ke(() => {
747
- n.value = 0, l && clearTimeout(l);
748
- }), (m, a) => {
749
- var i, u, f;
750
- return p(), v("div", Zn, [
751
- o("div", Xn, [
752
- o("div", {
747
+ n.value = 0, o && clearTimeout(o);
748
+ }), (m, i) => {
749
+ var a, u, p;
750
+ return f(), v("div", Xn, [
751
+ s("div", Yn, [
752
+ s("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", Qn, _(c.value) + "%", 1),
757
- o("div", {
756
+ s("div", es, x(c.value) + "%", 1),
757
+ s("div", {
758
758
  class: "relative h-4 overflow-hidden rounded-md bg-primary transition-all duration-500",
759
- style: ve(`width: ${c.value}%`)
759
+ style: ce(`width: ${c.value}%`)
760
760
  }, [
761
- o("div", es, _(c.value) + "%", 1)
761
+ s("div", ts, x(c.value) + "%", 1)
762
762
  ], 4)
763
- ], 8, Yn),
764
- o("div", ts, [
765
- (p(!0), v(B, null, N(t.value, (b) => (p(), v("div", {
763
+ ], 8, Qn),
764
+ s("div", ns, [
765
+ (f(!0), v(E, null, j(t.value, (b) => (f(), v("div", {
766
766
  key: b.name,
767
767
  class: "flex-auto"
768
768
  }, [
769
- o("div", ns, [
769
+ s("div", ss, [
770
770
  k(m.$slots, "name", { item: b })
771
771
  ]),
772
- o("div", null, _(b.value), 1)
772
+ s("div", null, x(b.value), 1)
773
773
  ]))), 128))
774
774
  ])
775
775
  ]),
776
- o("div", ss, [
777
- (p(!0), v(B, null, N(r.value, (b) => (p(), v("div", {
776
+ s("div", ls, [
777
+ (f(!0), v(E, null, j(r.value, (b) => (f(), v("div", {
778
778
  key: b.name,
779
779
  class: "flex justify-between items-center"
780
780
  }, [
781
- o("div", ls, [
781
+ s("div", as, [
782
782
  k(m.$slots, "name", { item: b })
783
783
  ]),
784
- o("div", os, _(b.value), 1)
784
+ s("div", os, x(b.value), 1)
785
785
  ]))), 128))
786
786
  ]),
787
- o("div", null, [
787
+ s("div", null, [
788
788
  k(m.$slots, "default", {
789
- home: (i = e.pkg) == null ? void 0 : i.homepage,
790
- repo: (f = (u = e.pkg) == null ? void 0 : u.repository) == null ? void 0 : f.url
789
+ home: (a = e.pkg) == null ? void 0 : a.homepage,
790
+ repo: (p = (u = e.pkg) == null ? void 0 : u.repository) == null ? void 0 : p.url
791
791
  })
792
792
  ])
793
793
  ]);
794
794
  };
795
795
  }
796
- }), as = { class: "flex items-center cursor-pointer" }, is = /* @__PURE__ */ S({
796
+ }), is = { class: "flex items-center cursor-pointer" }, rs = /* @__PURE__ */ S({
797
797
  __name: "VFile",
798
798
  emits: ["change"],
799
799
  setup(e, { emit: n }) {
800
- const l = n, s = async (t) => {
800
+ const o = n, l = async (t) => {
801
801
  const r = t.target;
802
- r.files && l("change", r.files);
802
+ r.files && o("change", r.files);
803
803
  };
804
- return (t, r) => (p(), v("label", as, [
805
- o("input", H({
804
+ return (t, r) => (f(), v("label", is, [
805
+ s("input", H({
806
806
  type: "file",
807
807
  class: "hidden"
808
- }, t.$attrs, { onChange: s }), null, 16),
808
+ }, t.$attrs, { onChange: l }), null, 16),
809
809
  k(t.$slots, "default")
810
810
  ]));
811
811
  }
812
- }), rs = { class: "md:flex" }, ds = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, ha = /* @__PURE__ */ S({
812
+ }), ds = { class: "md:flex" }, cs = { class: "text-gray-600 bg:text-gray-400 first-letter:uppercase min-w-19" }, Wo = /* @__PURE__ */ S({
813
813
  __name: "BlockUpdate",
814
814
  emits: ["update"],
815
815
  setup(e, { emit: n }) {
816
- const l = n, s = nt({ firmware: null, littlefs: null }), t = (d) => d ? Array.from(d).map((m) => `${m.name} (${pe(m.size)})`).join("") : "", r = (d, m) => {
817
- const a = new FormData();
818
- for (let i = 0; i < d.length; i++) {
819
- const u = d.item(i);
816
+ const o = n, l = nt({ firmware: null, littlefs: null }), t = (d) => d ? Array.from(d).map((m) => `${m.name} (${pe(m.size)})`).join("") : "", r = (d, m) => {
817
+ const i = new FormData();
818
+ for (let a = 0; a < d.length; a++) {
819
+ const u = d.item(a);
820
820
  if (!u) return;
821
- a.append(`file[${i}]`, u, m);
821
+ i.append(`file[${a}]`, u, m);
822
822
  }
823
- return a;
823
+ return i;
824
824
  }, c = (d, m) => {
825
825
  if (!m) return;
826
- const a = r(m, d);
827
- a && l("update", d, a);
826
+ const i = r(m, d);
827
+ i && o("update", d, i);
828
828
  };
829
829
  return (d, m) => {
830
- const a = A;
831
- return p(), v("div", null, [
832
- (p(!0), v(B, null, N(s, (i, u) => (p(), v("div", {
830
+ const i = A;
831
+ return f(), v("div", null, [
832
+ (f(!0), v(E, null, j(l, (a, u) => (f(), v("div", {
833
833
  key: u,
834
834
  class: "mb-4 flex items-center"
835
835
  }, [
836
- g(is, {
836
+ g(rs, {
837
837
  accept: ".bin",
838
- onChange: (f) => s[u] = f,
838
+ onChange: (p) => l[u] = p,
839
839
  class: "flex-auto"
840
840
  }, {
841
- default: x(() => [
842
- o("div", rs, [
843
- o("h6", ds, _(u) + ":", 1),
841
+ default: y(() => [
842
+ s("div", ds, [
843
+ s("h6", cs, x(u) + ":", 1),
844
844
  k(d.$slots, "default", {
845
- file: t(i)
845
+ file: t(a)
846
846
  })
847
847
  ])
848
848
  ]),
849
849
  _: 2
850
850
  }, 1032, ["onChange"]),
851
- g(a, {
851
+ g(i, {
852
852
  class: "min-w-[100px]",
853
853
  color: "blue",
854
- disabled: !i,
855
- onClick: (f) => c(`${u}.bin`, i)
854
+ disabled: !a,
855
+ onClick: (p) => c(`${u}.bin`, a)
856
856
  }, {
857
- default: x(() => [
858
- j(_(d.$t("btnUpdate")), 1)
857
+ default: y(() => [
858
+ D(x(d.$t("btnUpdate")), 1)
859
859
  ]),
860
860
  _: 1
861
861
  }, 8, ["disabled", "onClick"])
@@ -863,72 +863,286 @@ const an = O({ name: "ri-arrow-right-s-line", render: on }), rn = { class: "mb-4
863
863
  ]);
864
864
  };
865
865
  }
866
- }), cs = {
866
+ }), us = {
867
867
  viewBox: "0 0 24 24",
868
868
  width: "1.2em",
869
869
  height: "1.2em"
870
870
  };
871
- function us(e, n) {
872
- return p(), v("svg", cs, [...n[0] || (n[0] = [
873
- o("path", {
871
+ function ms(e, n) {
872
+ return f(), v("svg", us, [...n[0] || (n[0] = [
873
+ s("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 Ue = O({ name: "ri-arrow-drop-right-line", render: us }), ms = { class: "flex items-center gap-1.5" }, ga = /* @__PURE__ */ S({
879
+ const Re = O({ name: "ri-arrow-drop-right-line", render: ms }), fs = { class: "flex items-center gap-1.5" }, qo = /* @__PURE__ */ S({
880
880
  __name: "BlockBreadcrumb",
881
881
  props: {
882
882
  items: { default: () => [] }
883
883
  },
884
884
  emits: ["click"],
885
885
  setup(e, { emit: n }) {
886
- const l = n, s = (t) => l("click", t);
886
+ const o = n, l = (t) => o("click", t);
887
887
  return (t, r) => {
888
- const c = Ue;
889
- return p(), v("nav", null, [
890
- o("ol", ms, [
891
- (p(!0), v(B, null, N(e.items, (d, m) => (p(), v("li", {
888
+ const c = Re;
889
+ return f(), v("nav", null, [
890
+ s("ol", fs, [
891
+ (f(!0), v(E, null, j(e.items, (d, m) => (f(), v("li", {
892
892
  key: m,
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"])
893
+ class: z(["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(ue(d.path ? "a" : "span"), {
896
+ (f(), I(fe(d.path ? "a" : "span"), {
897
897
  href: d.path,
898
- onClick: (a) => s(d)
898
+ onClick: (i) => l(d)
899
899
  }, {
900
- default: x(() => [
901
- j(_(d.name), 1)
900
+ default: y(() => [
901
+ D(x(d.name), 1)
902
902
  ]),
903
903
  _: 2
904
904
  }, 1032, ["href", "onClick"]))
905
905
  ]),
906
- d.path ? (p(), I(c, {
906
+ d.path ? (f(), I(c, {
907
907
  key: 0,
908
908
  class: "rotate-270"
909
- })) : V("", !0)
909
+ })) : T("", !0)
910
910
  ], 2))), 128))
911
911
  ])
912
912
  ]);
913
913
  };
914
914
  }
915
- }), ps = {
915
+ }), ps = { class: "flex items-center gap-2" }, vs = { class: "grid gap-4 lg:grid-cols-[minmax(0,1fr)_260px]" }, hs = { class: "relative min-h-80 sm:min-h-96" }, gs = {
916
+ class: "pointer-events-none absolute inset-0 size-full",
917
+ viewBox: "0 0 100 100",
918
+ preserveAspectRatio: "none",
919
+ "aria-hidden": "true"
920
+ }, bs = ["id", "d"], ys = ["d"], xs = ["dur", "begin", "keyPoints"], _s = ["href"], $s = { class: "relative grid h-full grid-cols-2 grid-rows-3 gap-3" }, ks = { class: "glass-inset flex min-w-0 items-center gap-2 rounded-md px-2.5 py-2" }, ws = { class: "min-w-0" }, Cs = { class: "block truncate text-xs text-gray-500 dark:text-gray-400" }, Ss = { class: "block text-sm font-semibold" }, zs = { class: "col-span-2 row-start-2 grid place-items-center" }, Vs = { class: "relative grid size-20 place-items-center rounded-full border border-primary/30 bg-primary/10 text-primary" }, Ts = { class: "relative flex flex-col items-center" }, Ls = { class: "mt-1 text-xs font-semibold text-gray-600 dark:text-gray-300" }, Es = { class: "flex flex-col gap-2" }, Bs = { class: "grid grid-cols-2 gap-2" }, Ms = { class: "flex items-center gap-1.5 text-xs text-gray-500 dark:text-gray-400" }, As = { class: "mt-1 text-sm font-semibold" }, Ds = { class: "rounded-md bg-white/5 p-3" }, Ps = { class: "flex items-center justify-between gap-2 text-xs" }, Is = { class: "font-semibold" }, js = { class: "mt-2 h-1.5 overflow-hidden rounded-full bg-gray-200/70 dark:bg-white/10" }, Hs = { class: "mt-2 text-xs text-gray-500 dark:text-gray-400" }, Ns = { class: "rounded-md bg-white/5 p-3 text-xs text-gray-500 dark:text-gray-400" }, Os = { class: "font-medium text-gray-600 dark:text-gray-300" }, Fs = { class: "mt-1" }, Go = /* @__PURE__ */ S({
921
+ __name: "EnergyFlowBlock",
922
+ props: {
923
+ title: { default: "Сетевой инвертор" },
924
+ online: { type: Boolean, default: !0 },
925
+ solarPower: { default: 3.2 },
926
+ gridPower: { default: () => -0.6 },
927
+ batteryPower: { default: 0.8 },
928
+ batterySoc: { default: 78 },
929
+ loadPower: { default: 1.8 },
930
+ gridVoltage: { default: 230 },
931
+ gridFrequency: { default: 50 },
932
+ temperature: { default: 34 }
933
+ },
934
+ emits: ["refresh"],
935
+ setup(e, { emit: n }) {
936
+ const o = n, l = (m) => `${Math.abs(m).toFixed(1)} кВт`, t = B(() => [
937
+ { id: "solar", d: "M24 16 L50 50", tone: "text-amber-500", active: e.solarPower > 0, reverse: !1, path: "solar" },
938
+ { id: "battery", d: "M76 16 L50 50", tone: "text-emerald-500", active: e.batteryPower !== 0, reverse: e.batteryPower > 0, path: "battery" },
939
+ { id: "grid", d: "M24 84 L50 50", tone: "text-primary", active: e.gridPower !== 0, reverse: e.gridPower < 0, path: "grid" },
940
+ { id: "home", d: "M76 84 L50 50", tone: "text-violet-500", active: e.loadPower > 0, reverse: !0, path: "home" }
941
+ ]), r = B(() => [
942
+ {
943
+ key: "solar",
944
+ wrapper: "col-start-1 row-start-1 justify-self-start",
945
+ icon: "sun",
946
+ label: "Солнечная панель",
947
+ value: l(e.solarPower),
948
+ tone: "text-amber-500",
949
+ surface: "border-amber-500/20 bg-amber-500/10",
950
+ active: e.solarPower > 0
951
+ },
952
+ {
953
+ key: "battery",
954
+ wrapper: "col-start-2 row-start-1 justify-self-end",
955
+ icon: "battery",
956
+ label: "Батарея",
957
+ value: `${e.batterySoc} %`,
958
+ tone: "text-emerald-500",
959
+ surface: "border-emerald-500/20 bg-emerald-500/10",
960
+ active: e.batterySoc > 0
961
+ },
962
+ {
963
+ key: "grid",
964
+ wrapper: "col-start-1 row-start-3 self-end justify-self-start",
965
+ icon: "plug",
966
+ label: "Сеть",
967
+ value: `${e.gridVoltage} В`,
968
+ tone: "text-primary",
969
+ surface: "border-primary/20 bg-primary/10",
970
+ active: e.gridVoltage > 0
971
+ },
972
+ {
973
+ key: "home",
974
+ wrapper: "col-start-2 row-start-3 justify-self-end self-end",
975
+ icon: "home",
976
+ label: "Дом",
977
+ value: l(e.loadPower),
978
+ tone: "text-violet-500",
979
+ surface: "border-violet-500/20 bg-violet-500/10",
980
+ active: e.loadPower > 0
981
+ }
982
+ ]), c = B(() => [
983
+ { label: "Напряжение сети", value: `${e.gridVoltage} В`, icon: "bolt" },
984
+ { label: "Частота", value: `${e.gridFrequency} Гц`, icon: "chart" },
985
+ { label: "Генерация", value: l(e.solarPower), icon: "sun" },
986
+ { label: "Нагрузка", value: l(e.loadPower), icon: "home" },
987
+ { label: "Температура", value: `${e.temperature} °C`, icon: "temperature" }
988
+ ]), d = B(() => e.gridPower < 0 ? "Отдаём в сеть" : "Берём из сети");
989
+ return (m, i) => (f(), I(ut, { title: e.title }, {
990
+ header: y(() => [
991
+ s("div", ps, [
992
+ s("span", {
993
+ class: z(["inline-flex items-center gap-2 rounded-full border px-2.5 py-1 text-xs font-medium", e.online ? "border-emerald-500/25 bg-emerald-500/10 text-emerald-600 dark:text-emerald-400" : "border-gray-300/60 bg-gray-500/10 text-gray-500 dark:border-white/10 dark:text-gray-400"])
994
+ }, [
995
+ s("span", {
996
+ class: z(["size-1.5 rounded-full", e.online ? "animate-pulse bg-emerald-500" : "bg-gray-400"])
997
+ }, null, 2),
998
+ D(" " + x(e.online ? "Онлайн" : "Не в сети"), 1)
999
+ ], 2),
1000
+ g(A, {
1001
+ type: "icon",
1002
+ size: "sm",
1003
+ "aria-label": "Обновить данные",
1004
+ title: "Обновить данные",
1005
+ onClick: i[0] || (i[0] = (a) => o("refresh"))
1006
+ }, {
1007
+ default: y(() => [
1008
+ g(Q, {
1009
+ name: "refresh",
1010
+ size: 16
1011
+ })
1012
+ ]),
1013
+ _: 1
1014
+ })
1015
+ ])
1016
+ ]),
1017
+ default: y(() => [
1018
+ s("div", vs, [
1019
+ s("div", hs, [
1020
+ (f(), v("svg", gs, [
1021
+ (f(!0), v(E, null, j(t.value, (a) => (f(), v("path", {
1022
+ id: `energy-line-${a.id}`,
1023
+ key: `base-${a.id}`,
1024
+ class: "energy-base",
1025
+ d: a.d,
1026
+ fill: "none",
1027
+ "vector-effect": "non-scaling-stroke"
1028
+ }, null, 8, bs))), 128)),
1029
+ (f(!0), v(E, null, j(t.value.filter((a) => a.active), (a) => (f(), v("path", {
1030
+ key: `flow-${a.id}`,
1031
+ class: z(["energy-line", [a.tone, { "energy-line--reverse": a.reverse }]]),
1032
+ d: a.d,
1033
+ fill: "none",
1034
+ "vector-effect": "non-scaling-stroke"
1035
+ }, null, 10, ys))), 128)),
1036
+ (f(!0), v(E, null, j(t.value.filter((a) => a.active), (a, u) => (f(), v("circle", {
1037
+ key: `dot-${a.id}`,
1038
+ r: "1.5",
1039
+ fill: "currentColor",
1040
+ class: z(a.tone)
1041
+ }, [
1042
+ s("animateMotion", {
1043
+ dur: `${3 + u * 0.4}s`,
1044
+ begin: `${u * 0.25}s`,
1045
+ repeatCount: "indefinite",
1046
+ calcMode: "linear",
1047
+ keyTimes: "0;1",
1048
+ keyPoints: a.reverse ? "1;0" : "0;1"
1049
+ }, [
1050
+ s("mpath", {
1051
+ href: `#energy-line-${a.id}`
1052
+ }, null, 8, _s)
1053
+ ], 8, xs)
1054
+ ], 2))), 128))
1055
+ ])),
1056
+ s("div", $s, [
1057
+ (f(!0), v(E, null, j(r.value, (a) => (f(), v("div", {
1058
+ key: a.key,
1059
+ class: z(a.wrapper)
1060
+ }, [
1061
+ s("div", ks, [
1062
+ s("span", {
1063
+ class: z(["grid size-9 shrink-0 place-items-center rounded-md border", [a.tone, a.surface, { "opacity-40": !a.active }]])
1064
+ }, [
1065
+ g(Q, {
1066
+ name: a.icon,
1067
+ size: 18
1068
+ }, null, 8, ["name"])
1069
+ ], 2),
1070
+ s("span", ws, [
1071
+ s("span", Cs, x(a.label), 1),
1072
+ s("span", Ss, x(a.value), 1)
1073
+ ])
1074
+ ])
1075
+ ], 2))), 128)),
1076
+ s("div", zs, [
1077
+ s("div", Vs, [
1078
+ i[1] || (i[1] = s("span", { class: "absolute inset-0 animate-ping rounded-full border border-primary/20" }, null, -1)),
1079
+ s("span", Ts, [
1080
+ g(Q, {
1081
+ name: "inverter",
1082
+ size: 26
1083
+ }),
1084
+ s("span", Ls, x(l(e.loadPower)), 1)
1085
+ ])
1086
+ ])
1087
+ ])
1088
+ ])
1089
+ ]),
1090
+ s("div", Es, [
1091
+ s("dl", Bs, [
1092
+ (f(!0), v(E, null, j(c.value, (a) => (f(), v("div", {
1093
+ key: a.label,
1094
+ class: "rounded-md bg-white/5 p-3"
1095
+ }, [
1096
+ s("dt", Ms, [
1097
+ g(Q, {
1098
+ name: a.icon,
1099
+ size: 14
1100
+ }, null, 8, ["name"]),
1101
+ D(" " + x(a.label), 1)
1102
+ ]),
1103
+ s("dd", As, x(a.value), 1)
1104
+ ]))), 128))
1105
+ ]),
1106
+ s("div", Ds, [
1107
+ s("div", Ps, [
1108
+ i[2] || (i[2] = s("span", { class: "text-gray-500 dark:text-gray-400" }, "Батарея", -1)),
1109
+ s("span", Is, x(e.batterySoc) + " %", 1)
1110
+ ]),
1111
+ s("div", js, [
1112
+ s("div", {
1113
+ class: "h-full rounded-full bg-emerald-500 transition-all duration-500",
1114
+ style: ce({ width: `${e.batterySoc}%` })
1115
+ }, null, 4)
1116
+ ]),
1117
+ s("p", Hs, x(e.batteryPower >= 0 ? "Зарядка" : "Разрядка") + " · " + x(l(e.batteryPower)), 1)
1118
+ ]),
1119
+ s("div", Ns, [
1120
+ s("p", Os, x(d.value), 1),
1121
+ s("p", Fs, x(l(e.gridPower)) + " · " + x(e.gridFrequency) + " Гц", 1)
1122
+ ])
1123
+ ])
1124
+ ])
1125
+ ]),
1126
+ _: 1
1127
+ }, 8, ["title"]));
1128
+ }
1129
+ }), Ks = {
916
1130
  viewBox: "0 0 24 24",
917
1131
  width: "1.2em",
918
1132
  height: "1.2em"
919
1133
  };
920
- function fs(e, n) {
921
- return p(), v("svg", ps, [...n[0] || (n[0] = [
922
- o("path", {
1134
+ function Rs(e, n) {
1135
+ return f(), v("svg", Ks, [...n[0] || (n[0] = [
1136
+ s("path", {
923
1137
  fill: "currentColor",
924
1138
  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
1139
  }, null, -1)
926
1140
  ])]);
927
1141
  }
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 = {
1142
+ const Us = O({ name: "ri-file-copy2-line", render: Rs }), Ws = { class: "flex-auto flex justify-between" }, qs = { class: "text-sm text-gray-500 font-medium line-clamp-2 overflow-hidden" }, Gs = { class: "text-sm text-ellipsis overflow-hidden text-nowrap" }, Js = {
929
1143
  key: 0,
930
1144
  class: "absolute left-1/2 top-1/2 size-[calc(50%)] text-gray-200/30 dark:text-gray-800/30 -translate-1/2"
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({
1145
+ }, Zs = { class: "min-h-60 relative" }, Xs = { class: "pt-6" }, Ys = { class: "text-center text-3xl text-ellipsis overflow-hidden" }, Qs = { class: "text-center text-xl mt-4" }, ie = /* @__PURE__ */ S({
932
1146
  __name: "CardBase",
933
1147
  props: {
934
1148
  size: {},
@@ -948,53 +1162,53 @@ const vs = O({ name: "ri-file-copy2-line", render: fs }), hs = { class: "flex-au
948
1162
  },
949
1163
  emits: ["edit", "close", "click", "clone", "open", "setState"],
950
1164
  setup(e, { emit: n }) {
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
- t.value = !1, s("close", u);
1165
+ const o = e, l = n, t = M(!1), r = B(() => ["button", "dimmer"].includes(o.type || "") && o.value ? "text-amber-500" : "text-gray-400"), c = (u) => l("edit", u), d = (u) => l("clone", u), m = () => t.value = !0, i = (u) => l("open", u), a = (u) => {
1166
+ t.value = !1, l("close", u);
953
1167
  };
954
- return (u, f) => {
955
- const b = Ke, h = vs;
956
- return p(), v("div", {
1168
+ return (u, p) => {
1169
+ const b = Fe, h = Us;
1170
+ return f(), v("div", {
957
1171
  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
1172
  onClick: m
959
1173
  }, [
960
- o("div", hs, [
961
- o("div", {
962
- class: E([r.value, "size-8 animate-shake"])
1174
+ s("div", Ws, [
1175
+ s("div", {
1176
+ class: z([r.value, "size-8 animate-shake"])
963
1177
  }, [
964
- k(u.$slots, "icon", F(U(l)))
1178
+ k(u.$slots, "icon", K(R(o)))
965
1179
  ], 2),
966
- k(u.$slots, "header", F(U(l)))
1180
+ k(u.$slots, "header", K(R(o)))
967
1181
  ]),
968
- o("div", null, [
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)
1182
+ s("div", null, [
1183
+ k(u.$slots, "body", K(R(o)), () => [
1184
+ s("h6", qs, [
1185
+ k(u.$slots, "name", K(R(o)), () => [
1186
+ D(x(o.name), 1)
973
1187
  ])
974
1188
  ]),
975
- o("div", bs, [
976
- k(u.$slots, "value", F(U(l)), () => [
977
- j(_(l.valueTo || l.value), 1)
1189
+ s("div", Gs, [
1190
+ k(u.$slots, "value", K(R(o)), () => [
1191
+ D(x(o.valueTo || o.value), 1)
978
1192
  ])
979
1193
  ])
980
1194
  ])
981
1195
  ]),
982
- l.icon ? (p(), v("div", xs, [
983
- k(u.$slots, "icon", F(U(l)))
984
- ])) : V("", !0),
985
- t.value ? (p(), I(Oe, {
1196
+ o.icon ? (f(), v("div", Js, [
1197
+ k(u.$slots, "icon", K(R(o)))
1198
+ ])) : T("", !0),
1199
+ t.value ? (f(), I(Oe, {
986
1200
  key: 1,
987
- size: l.size || "sm",
1201
+ size: o.size || "sm",
988
1202
  title: e.name,
989
- onClose: i,
990
- onOpen: a
1203
+ onClose: a,
1204
+ onOpen: i
991
1205
  }, {
992
- "header-btn": x(() => [
1206
+ "header-btn": y(() => [
993
1207
  g(A, {
994
1208
  color: "transparent",
995
1209
  onClick: c
996
1210
  }, {
997
- default: x(() => [
1211
+ default: y(() => [
998
1212
  g(b)
999
1213
  ]),
1000
1214
  _: 1
@@ -1003,48 +1217,48 @@ const vs = O({ name: "ri-file-copy2-line", render: fs }), hs = { class: "flex-au
1003
1217
  color: "transparent",
1004
1218
  onClick: d
1005
1219
  }, {
1006
- default: x(() => [
1220
+ default: y(() => [
1007
1221
  g(h, { class: "size-4 text-gray-500" })
1008
1222
  ]),
1009
1223
  _: 1
1010
1224
  })
1011
1225
  ]),
1012
- default: x(() => [
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)
1226
+ default: y(() => [
1227
+ s("div", Zs, [
1228
+ s("div", Xs, [
1229
+ s("h3", Ys, [
1230
+ k(u.$slots, "dialog-name", K(R(o)), () => [
1231
+ D(x(o.name), 1)
1018
1232
  ])
1019
1233
  ]),
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)
1234
+ k(u.$slots, "dialog", K(R(o))),
1235
+ s("p", Qs, [
1236
+ k(u.$slots, "dialog-value", K(R(o)), () => [
1237
+ D(x(o.valueTo || o.value), 1)
1024
1238
  ])
1025
1239
  ])
1026
1240
  ])
1027
1241
  ])
1028
1242
  ]),
1029
1243
  _: 3
1030
- }, 8, ["size", "title"])) : V("", !0)
1244
+ }, 8, ["size", "title"])) : T("", !0)
1031
1245
  ]);
1032
1246
  };
1033
1247
  }
1034
- }), ws = {
1248
+ }), el = {
1035
1249
  viewBox: "0 0 24 24",
1036
1250
  width: "1.2em",
1037
1251
  height: "1.2em"
1038
1252
  };
1039
- function Cs(e, n) {
1040
- return p(), v("svg", ws, [...n[0] || (n[0] = [
1041
- o("path", {
1253
+ function tl(e, n) {
1254
+ return f(), v("svg", el, [...n[0] || (n[0] = [
1255
+ s("path", {
1042
1256
  fill: "currentColor",
1043
1257
  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
1258
  }, null, -1)
1045
1259
  ])]);
1046
1260
  }
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({
1261
+ const nl = O({ name: "ri-shut-down-line", render: tl }), sl = { class: "flex justify-end" }, ll = { class: "flex justify-center py-4" }, Jo = /* @__PURE__ */ S({
1048
1262
  __name: "CardButton",
1049
1263
  props: {
1050
1264
  size: {},
@@ -1064,42 +1278,42 @@ const Ss = O({ name: "ri-shut-down-line", render: Cs }), zs = { class: "flex jus
1064
1278
  },
1065
1279
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1066
1280
  setup(e, { emit: n }) {
1067
- const l = e, s = n, t = ({ opts: c = {} }) => {
1281
+ const o = e, l = n, t = ({ opts: c = {} }) => {
1068
1282
  const { disabled: d } = c;
1069
- return { disabled: d };
1070
- }, r = () => s("setState", !l.value);
1283
+ return { disabled: !!d };
1284
+ }, r = () => l("setState", !o.value);
1071
1285
  return (c, d) => {
1072
- const m = Ss;
1073
- return p(), I(ae, H(l, {
1074
- onClick: d[0] || (d[0] = (a) => s("click", a)),
1075
- onEdit: d[1] || (d[1] = (a) => s("edit", a)),
1076
- onClone: d[2] || (d[2] = (a) => s("clone", a))
1286
+ const m = nl;
1287
+ return f(), I(ie, H(o, {
1288
+ onClick: d[0] || (d[0] = (i) => l("click", i)),
1289
+ onEdit: d[1] || (d[1] = (i) => l("edit", i)),
1290
+ onClone: d[2] || (d[2] = (i) => l("clone", i))
1077
1291
  }), {
1078
- icon: x((a) => [
1079
- k(c.$slots, "icon", F(U(a)))
1292
+ icon: y((i) => [
1293
+ k(c.$slots, "icon", K(R(i)))
1080
1294
  ]),
1081
- header: x((a) => [
1082
- o("div", zs, [
1083
- g(A, H(t(a), {
1295
+ header: y((i) => [
1296
+ s("div", sl, [
1297
+ g(A, H(t(i), {
1084
1298
  type: "icon",
1085
- class: l.value ? "text-amber-500" : "text-gray-500",
1086
- onClick: R(r, ["stop"])
1299
+ class: o.value ? "text-amber-500" : "text-gray-500",
1300
+ onClick: U(r, ["stop"])
1087
1301
  }), {
1088
- default: x(() => [
1302
+ default: y(() => [
1089
1303
  g(m, { class: "size-8" })
1090
1304
  ]),
1091
1305
  _: 1
1092
1306
  }, 16, ["class"])
1093
1307
  ])
1094
1308
  ]),
1095
- dialog: x((a) => [
1096
- o("div", Vs, [
1097
- g(A, H(t(a), {
1309
+ dialog: y((i) => [
1310
+ s("div", ll, [
1311
+ g(A, H(t(i), {
1098
1312
  type: "icon",
1099
- class: ["size-18", l.value ? "text-amber-500" : "text-gray-500"],
1100
- onClick: R(r, ["stop"])
1313
+ class: ["size-18", o.value ? "text-amber-500" : "text-gray-500"],
1314
+ onClick: U(r, ["stop"])
1101
1315
  }), {
1102
- default: x(() => [
1316
+ default: y(() => [
1103
1317
  g(m, { class: "size-16" })
1104
1318
  ]),
1105
1319
  _: 1
@@ -1110,20 +1324,20 @@ const Ss = O({ name: "ri-shut-down-line", render: Cs }), zs = { class: "flex jus
1110
1324
  }, 16);
1111
1325
  };
1112
1326
  }
1113
- }), Ts = {
1327
+ }), al = {
1114
1328
  viewBox: "0 0 24 24",
1115
1329
  width: "1.2em",
1116
1330
  height: "1.2em"
1117
1331
  };
1118
- function Es(e, n) {
1119
- return p(), v("svg", Ts, [...n[0] || (n[0] = [
1120
- o("path", {
1332
+ function ol(e, n) {
1333
+ return f(), v("svg", al, [...n[0] || (n[0] = [
1334
+ s("path", {
1121
1335
  fill: "currentColor",
1122
1336
  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
1337
  }, null, -1)
1124
1338
  ])]);
1125
1339
  }
1126
- const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-center relative mx-2 my-6" }, xa = /* @__PURE__ */ S({
1340
+ const il = O({ name: "ri-time-line", render: ol }), rl = { class: "flex justify-center relative mx-2 my-6" }, Zo = /* @__PURE__ */ S({
1127
1341
  __name: "CardDate",
1128
1342
  props: {
1129
1343
  size: {},
@@ -1143,36 +1357,36 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1143
1357
  },
1144
1358
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1145
1359
  setup(e, { emit: n }) {
1146
- const l = e, s = n, t = Ie("time"), r = (a) => new Date(+a * 1e3).toISOString().slice(0, 16), c = (a) => {
1360
+ const o = e, l = n, t = Pe("time"), r = (i) => new Date(+i * 1e3).toISOString().slice(0, 16), c = (i) => {
1147
1361
  var u;
1148
- const i = (u = a == null ? void 0 : a.target) == null ? void 0 : u.valueAsNumber;
1149
- i && s("setState", i / 1e3);
1150
- }, d = ({ name: a, value: i, opts: u = {} }) => {
1151
- const { disabled: f } = u;
1152
- return { label: a, modelValue: r(i), disabled: f };
1362
+ const a = (u = i == null ? void 0 : i.target) == null ? void 0 : u.valueAsNumber;
1363
+ a && l("setState", a / 1e3);
1364
+ }, d = ({ name: i, value: a, opts: u = {} }) => {
1365
+ const { disabled: p } = u;
1366
+ return { label: i, modelValue: r(a), disabled: p };
1153
1367
  }, m = () => {
1154
- var i, u;
1155
- const a = (u = (i = t.value) == null ? void 0 : i.$el) == null ? void 0 : u.querySelector("input");
1156
- a != null && a.showPicker && a.showPicker();
1368
+ var a, u;
1369
+ const i = (u = (a = t.value) == null ? void 0 : a.$el) == null ? void 0 : u.querySelector("input");
1370
+ i != null && i.showPicker && i.showPicker();
1157
1371
  };
1158
- return (a, i) => {
1159
- const u = Ls;
1160
- return p(), I(ae, H(l, {
1161
- onClick: i[0] || (i[0] = (f) => s("click", f)),
1162
- onEdit: i[1] || (i[1] = (f) => s("edit", f)),
1163
- onClone: i[2] || (i[2] = (f) => s("clone", f))
1372
+ return (i, a) => {
1373
+ const u = il;
1374
+ return f(), I(ie, H(o, {
1375
+ onClick: a[0] || (a[0] = (p) => l("click", p)),
1376
+ onEdit: a[1] || (a[1] = (p) => l("edit", p)),
1377
+ onClone: a[2] || (a[2] = (p) => l("clone", p))
1164
1378
  }), {
1165
- icon: x((f) => [
1166
- k(a.$slots, "icon", F(U(f)))
1379
+ icon: y((p) => [
1380
+ k(i.$slots, "icon", K(R(p)))
1167
1381
  ]),
1168
- header: x((f) => [
1169
- o("div", null, [
1382
+ header: y((p) => [
1383
+ s("div", null, [
1170
1384
  g(A, {
1171
1385
  type: "icon",
1172
1386
  class: "text-gray-500",
1173
- onClick: R(m, ["stop"])
1387
+ onClick: U(m, ["stop"])
1174
1388
  }, {
1175
- default: x(() => [
1389
+ default: y(() => [
1176
1390
  g(u, { class: "size-7" })
1177
1391
  ]),
1178
1392
  _: 1
@@ -1180,7 +1394,7 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1180
1394
  g(J, H({
1181
1395
  ref_key: "time",
1182
1396
  ref: t
1183
- }, d(f), {
1397
+ }, d(p), {
1184
1398
  type: "datetime-local",
1185
1399
  class: "size-0",
1186
1400
  hidden: "",
@@ -1188,9 +1402,9 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1188
1402
  }), null, 16)
1189
1403
  ])
1190
1404
  ]),
1191
- dialog: x((f) => [
1192
- o("div", Bs, [
1193
- g(J, H(d(f), {
1405
+ dialog: y((p) => [
1406
+ s("div", rl, [
1407
+ g(J, H(d(p), {
1194
1408
  type: "datetime-local",
1195
1409
  onChange: c
1196
1410
  }), null, 16)
@@ -1200,15 +1414,15 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1200
1414
  }, 16);
1201
1415
  };
1202
1416
  }
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 = {
1417
+ }), dl = { class: "flex justify-end" }, cl = { class: "flex justify-end" }, ul = {
1418
+ class: /* @__PURE__ */ z("text-blue-600 dark:text-blue-400")
1419
+ }, ml = {
1206
1420
  width: "30",
1207
1421
  height: "30",
1208
1422
  viewBox: "-7.5 -7.5 75 75",
1209
1423
  version: "1.1",
1210
1424
  style: { transform: "rotate(-90deg)" }
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({
1425
+ }, fl = ["stroke-dashoffset"], pl = { class: "absolute top-1/2 left-1/2 -translate-1/2 text-white z-10 font-bold text-xl" }, Xo = /* @__PURE__ */ S({
1212
1426
  __name: "CardDimmer",
1213
1427
  props: {
1214
1428
  size: {},
@@ -1228,31 +1442,31 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1228
1442
  },
1229
1443
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1230
1444
  setup(e, { emit: n }) {
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
- const { min: f = 0, max: b = 255, step: h = 1, disabled: y } = u || {};
1233
- return { min: f, max: b, step: h, value: i, disabled: !!y, class: y ? "" : "cursor-pointer" };
1234
- }, m = (i) => s("setState", +i.target.value || 0), a = ({ value: i }) => {
1235
- +i != 0 ? (t.value = +i, s("setState", 0)) : s("setState", i ? 0 : t.value || 255);
1445
+ const o = e, l = n, t = M(0), r = ({ opts: a, value: u }) => Math.round(100 * +u / ((a == null ? void 0 : a.max) || 255)), c = ({ opts: a, value: u }) => Math.round(187 - +u / ((a == null ? void 0 : a.max) || 255) * 187), d = ({ value: a, opts: u }) => {
1446
+ const { min: p = 0, max: b = 255, step: h = 1, disabled: _ } = u || {};
1447
+ return { min: p, max: b, step: h, value: a, disabled: !!_, class: _ ? "" : "cursor-pointer" };
1448
+ }, m = (a) => l("setState", +a.target.value || 0), i = ({ value: a }) => {
1449
+ +a != 0 ? (t.value = +a, l("setState", 0)) : l("setState", a ? 0 : t.value || 255);
1236
1450
  };
1237
- return (i, u) => (p(), I(ae, H(l, {
1238
- onClick: u[0] || (u[0] = (f) => s("click", f)),
1239
- onEdit: u[1] || (u[1] = (f) => s("edit", f)),
1240
- onClone: u[2] || (u[2] = (f) => s("clone", f))
1451
+ return (a, u) => (f(), I(ie, H(o, {
1452
+ onClick: u[0] || (u[0] = (p) => l("click", p)),
1453
+ onEdit: u[1] || (u[1] = (p) => l("edit", p)),
1454
+ onClone: u[2] || (u[2] = (p) => l("clone", p))
1241
1455
  }), {
1242
- icon: x((f) => [
1243
- k(i.$slots, "icon", F(U(f)))
1456
+ icon: y((p) => [
1457
+ k(a.$slots, "icon", K(R(p)))
1244
1458
  ]),
1245
- header: x((f) => [
1246
- o("div", Ms, [
1247
- o("div", As, [
1248
- g(A, H(d(f), {
1459
+ header: y((p) => [
1460
+ s("div", dl, [
1461
+ s("div", cl, [
1462
+ g(A, H(d(p), {
1249
1463
  type: "icon",
1250
- onClick: R((b) => a(f), ["stop"])
1464
+ onClick: U((b) => i(p), ["stop"])
1251
1465
  }), {
1252
- default: x(() => [
1253
- o("div", Ds, [
1254
- (p(), v("svg", Is, [
1255
- u[3] || (u[3] = o("circle", {
1466
+ default: y(() => [
1467
+ s("div", ul, [
1468
+ (f(), v("svg", ml, [
1469
+ u[3] || (u[3] = s("circle", {
1256
1470
  class: "stroke-gray-300 dark:stroke-gray-700",
1257
1471
  r: "30",
1258
1472
  cx: "30",
@@ -1260,17 +1474,17 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1260
1474
  fill: "transparent",
1261
1475
  "stroke-width": "10"
1262
1476
  }, null, -1)),
1263
- o("circle", {
1477
+ s("circle", {
1264
1478
  r: "30",
1265
1479
  cx: "30",
1266
1480
  cy: "30",
1267
1481
  stroke: "currentColor",
1268
1482
  "stroke-width": "8",
1269
1483
  "stroke-linecap": "butt",
1270
- "stroke-dashoffset": c(f),
1484
+ "stroke-dashoffset": c(p),
1271
1485
  fill: "transparent",
1272
1486
  "stroke-dasharray": "187"
1273
- }, null, 8, js)
1487
+ }, null, 8, fl)
1274
1488
  ]))
1275
1489
  ])
1276
1490
  ]),
@@ -1279,17 +1493,17 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1279
1493
  ])
1280
1494
  ])
1281
1495
  ]),
1282
- dialog: x((f) => [
1283
- o("div", {
1284
- class: E(["flex justify-center relative mx-2 my-6", d(f).disabled ? "opacity-40" : ""])
1496
+ dialog: y((p) => [
1497
+ s("div", {
1498
+ class: z(["flex justify-center relative mx-2 my-6", d(p).disabled ? "opacity-40" : ""])
1285
1499
  }, [
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
- o("div", {
1500
+ u[4] || (u[4] = s("div", { class: "absolute h-10 w-full top-0 left-0 bg-gray-400 dark:bg-gray-700 z-0 rounded-md" }, null, -1)),
1501
+ s("div", {
1288
1502
  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
- style: ve(`width: ${r(f)}%`)
1503
+ style: ce(`width: ${r(p)}%`)
1290
1504
  }, null, 4),
1291
- o("div", Hs, _(r(f)) + " %", 1),
1292
- o("input", H({ type: "range" }, d(f), {
1505
+ s("div", pl, x(r(p)) + " %", 1),
1506
+ s("input", H({ type: "range" }, d(p), {
1293
1507
  class: "w-full h-10 z-10 appearance-none opacity-0",
1294
1508
  onChange: m
1295
1509
  }), null, 16)
@@ -1298,7 +1512,7 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1298
1512
  _: 3
1299
1513
  }, 16));
1300
1514
  }
1301
- }), _a = /* @__PURE__ */ S({
1515
+ }), Yo = /* @__PURE__ */ S({
1302
1516
  __name: "CardInfo",
1303
1517
  props: {
1304
1518
  size: {},
@@ -1318,22 +1532,22 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1318
1532
  },
1319
1533
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1320
1534
  setup(e, { emit: n }) {
1321
- const l = e, s = n;
1322
- return (t, r) => (p(), I(ae, H(l, {
1323
- onClick: r[0] || (r[0] = (c) => s("click", c)),
1324
- onEdit: r[1] || (r[1] = (c) => s("edit", c)),
1325
- onClone: r[2] || (r[2] = (c) => s("clone", c))
1535
+ const o = e, l = n;
1536
+ return (t, r) => (f(), I(ie, H(o, {
1537
+ onClick: r[0] || (r[0] = (c) => l("click", c)),
1538
+ onEdit: r[1] || (r[1] = (c) => l("edit", c)),
1539
+ onClone: r[2] || (r[2] = (c) => l("clone", c))
1326
1540
  }), {
1327
- icon: x((c) => [
1328
- k(t.$slots, "icon", F(U(c)))
1541
+ icon: y((c) => [
1542
+ k(t.$slots, "icon", K(R(c)))
1329
1543
  ]),
1330
- default: x(() => [
1544
+ default: y(() => [
1331
1545
  k(t.$slots, "dialog")
1332
1546
  ]),
1333
1547
  _: 3
1334
1548
  }, 16));
1335
1549
  }
1336
- }), Ps = { class: "flex justify-center relative mx-2 my-6" }, $a = /* @__PURE__ */ S({
1550
+ }), vl = { class: "flex justify-center relative mx-2 my-6" }, Qo = /* @__PURE__ */ S({
1337
1551
  __name: "CardInput",
1338
1552
  props: {
1339
1553
  size: {},
@@ -1353,36 +1567,36 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1353
1567
  },
1354
1568
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1355
1569
  setup(e, { emit: n }) {
1356
- const l = e, s = n, t = L(l.value || ""), r = ({ name: d, opts: m = {} }) => {
1357
- const { disabled: a } = m;
1358
- return { label: d, disabled: a };
1359
- }, c = (d) => s("setState", d.target.value);
1570
+ const o = e, l = n, t = M(o.value || ""), r = ({ name: d, opts: m = {} }) => {
1571
+ const { disabled: i } = m;
1572
+ return { label: d, disabled: i };
1573
+ }, c = (d) => l("setState", d.target.value);
1360
1574
  return oe(
1361
- () => l.value,
1575
+ () => o.value,
1362
1576
  (d) => {
1363
1577
  t.value = d;
1364
1578
  }
1365
1579
  ), (d, m) => {
1366
- const a = Ue;
1367
- return p(), I(ae, H(l, {
1368
- onClick: m[1] || (m[1] = (i) => s("click", i)),
1369
- onEdit: m[2] || (m[2] = (i) => s("edit", i)),
1370
- onClone: m[3] || (m[3] = (i) => s("clone", i))
1580
+ const i = Re;
1581
+ return f(), I(ie, H(o, {
1582
+ onClick: m[1] || (m[1] = (a) => l("click", a)),
1583
+ onEdit: m[2] || (m[2] = (a) => l("edit", a)),
1584
+ onClone: m[3] || (m[3] = (a) => l("clone", a))
1371
1585
  }), {
1372
- icon: x((i) => [
1373
- k(d.$slots, "icon", F(U(i)))
1586
+ icon: y((a) => [
1587
+ k(d.$slots, "icon", K(R(a)))
1374
1588
  ]),
1375
- dialog: x((i) => [
1376
- o("div", Ps, [
1589
+ dialog: y((a) => [
1590
+ s("div", vl, [
1377
1591
  g(J, H({
1378
1592
  modelValue: t.value,
1379
1593
  "onUpdate:modelValue": m[0] || (m[0] = (u) => t.value = u)
1380
- }, r(i), {
1594
+ }, r(a), {
1381
1595
  onEnter: c,
1382
1596
  onBlur: c
1383
1597
  }), {
1384
- icon: x(() => [
1385
- g(a, { class: "size-8" })
1598
+ icon: y(() => [
1599
+ g(i, { class: "size-8" })
1386
1600
  ]),
1387
1601
  _: 1
1388
1602
  }, 16, ["modelValue"])
@@ -1392,20 +1606,20 @@ const Ls = O({ name: "ri-time-line", render: Es }), Bs = { class: "flex justify-
1392
1606
  }, 16);
1393
1607
  };
1394
1608
  }
1395
- }), Ns = {
1609
+ }), hl = {
1396
1610
  viewBox: "0 0 24 24",
1397
1611
  width: "1.2em",
1398
1612
  height: "1.2em"
1399
1613
  };
1400
- function Os(e, n) {
1401
- return p(), v("svg", Ns, [...n[0] || (n[0] = [
1402
- o("path", {
1614
+ function gl(e, n) {
1615
+ return f(), v("svg", hl, [...n[0] || (n[0] = [
1616
+ s("path", {
1403
1617
  fill: "currentColor",
1404
1618
  d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
1405
1619
  }, null, -1)
1406
1620
  ])]);
1407
1621
  }
1408
- const Ks = O({ name: "ri-list-check", render: Os }), Fs = { class: "flex justify-center py-4" }, ka = /* @__PURE__ */ S({
1622
+ const bl = O({ name: "ri-list-check", render: gl }), yl = { class: "flex justify-center py-4" }, ei = /* @__PURE__ */ S({
1409
1623
  __name: "CardList",
1410
1624
  props: {
1411
1625
  size: {},
@@ -1425,49 +1639,49 @@ const Ks = O({ name: "ri-list-check", render: Os }), Fs = { class: "flex justify
1425
1639
  },
1426
1640
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1427
1641
  setup(e, { emit: n }) {
1428
- const l = e, s = n, t = ({ value: d }) => s("setState", d), r = ({ opts: d, value: m }) => {
1429
- var a;
1430
- return Array.isArray(d == null ? void 0 : d.items) && ((a = d == null ? void 0 : d.items.find((i) => i.value == m)) == null ? void 0 : a.name) || m;
1431
- }, c = ({ name: d, value: m, opts: a = {} }) => {
1642
+ const o = e, l = n, t = ({ value: d }) => l("setState", d), r = ({ opts: d, value: m }) => {
1643
+ var i;
1644
+ return Array.isArray(d == null ? void 0 : d.items) && ((i = d == null ? void 0 : d.items.find((a) => a.value == m)) == null ? void 0 : i.name) || m;
1645
+ }, c = ({ name: d, value: m, opts: i = {} }) => {
1432
1646
  var b;
1433
- const { items: i = [], disabled: u } = a, f = ((b = i.find((h) => h.value == m)) == null ? void 0 : b.name) || m;
1434
- return { label: d, modelValue: f, items: i, disabled: !!u };
1647
+ const { items: a = [], disabled: u } = i, p = ((b = a.find((h) => h.value == m)) == null ? void 0 : b.name) || m;
1648
+ return { label: d, modelValue: p, items: a, disabled: !!u };
1435
1649
  };
1436
1650
  return (d, m) => {
1437
- const a = Ks;
1438
- return p(), I(ae, H(l, {
1439
- onClick: m[1] || (m[1] = (i) => s("click", i)),
1440
- onEdit: m[2] || (m[2] = (i) => s("edit", i)),
1441
- onClone: m[3] || (m[3] = (i) => s("clone", i))
1651
+ const i = bl;
1652
+ return f(), I(ie, H(o, {
1653
+ onClick: m[1] || (m[1] = (a) => l("click", a)),
1654
+ onEdit: m[2] || (m[2] = (a) => l("edit", a)),
1655
+ onClone: m[3] || (m[3] = (a) => l("clone", a))
1442
1656
  }), {
1443
- icon: x((i) => [
1444
- k(d.$slots, "icon", F(U(i)))
1657
+ icon: y((a) => [
1658
+ k(d.$slots, "icon", K(R(a)))
1445
1659
  ]),
1446
- value: x((i) => [
1447
- j(_(r(i)), 1)
1660
+ value: y((a) => [
1661
+ D(x(r(a)), 1)
1448
1662
  ]),
1449
- "dialog-value": x((i) => [
1450
- j(_(r(i)), 1)
1663
+ "dialog-value": y((a) => [
1664
+ D(x(r(a)), 1)
1451
1665
  ]),
1452
- header: x((i) => [
1453
- o("div", {
1454
- onClick: m[0] || (m[0] = R(() => {
1666
+ header: y((a) => [
1667
+ s("div", {
1668
+ onClick: m[0] || (m[0] = U(() => {
1455
1669
  }, ["prevent", "stop"]))
1456
1670
  }, [
1457
- g(le, H(c(i), {
1671
+ g(ae, H(c(a), {
1458
1672
  "is-popup": "",
1459
1673
  top: "0",
1460
1674
  left: "-115px",
1461
1675
  onChange: t
1462
1676
  }), {
1463
- activator: x(({ on: u }) => [
1677
+ activator: y(({ on: u }) => [
1464
1678
  g(A, {
1465
1679
  type: "icon",
1466
1680
  class: "text-gray-500",
1467
- onClick: R(u.click, ["stop"])
1681
+ onClick: U(u.click, ["stop"])
1468
1682
  }, {
1469
- default: x(() => [
1470
- g(a, { class: "size-6" })
1683
+ default: y(() => [
1684
+ g(i, { class: "size-6" })
1471
1685
  ]),
1472
1686
  _: 1
1473
1687
  }, 8, ["onClick"])
@@ -1476,9 +1690,9 @@ const Ks = O({ name: "ri-list-check", render: Os }), Fs = { class: "flex justify
1476
1690
  }, 16)
1477
1691
  ])
1478
1692
  ]),
1479
- dialog: x((i) => [
1480
- o("div", Fs, [
1481
- g(le, H(c(i), {
1693
+ dialog: y((a) => [
1694
+ s("div", yl, [
1695
+ g(ae, H(c(a), {
1482
1696
  top: "-50%",
1483
1697
  left: "50%",
1484
1698
  onChange: t
@@ -1489,33 +1703,33 @@ const Ks = O({ name: "ri-list-check", render: Os }), Fs = { class: "flex justify
1489
1703
  }, 16);
1490
1704
  };
1491
1705
  }
1492
- }), Us = {
1706
+ }), xl = {
1493
1707
  viewBox: "0 0 24 24",
1494
1708
  width: "1.2em",
1495
1709
  height: "1.2em"
1496
1710
  };
1497
- function Rs(e, n) {
1498
- return p(), v("svg", Us, [...n[0] || (n[0] = [
1499
- o("path", {
1711
+ function _l(e, n) {
1712
+ return f(), v("svg", xl, [...n[0] || (n[0] = [
1713
+ s("path", {
1500
1714
  fill: "currentColor",
1501
1715
  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
1716
  }, null, -1)
1503
1717
  ])]);
1504
1718
  }
1505
- const Ws = O({ name: "ri-menu-search-line", render: Rs }), qs = {
1719
+ const $l = O({ name: "ri-menu-search-line", render: _l }), kl = {
1506
1720
  viewBox: "0 0 24 24",
1507
1721
  width: "1.2em",
1508
1722
  height: "1.2em"
1509
1723
  };
1510
- function Gs(e, n) {
1511
- return p(), v("svg", qs, [...n[0] || (n[0] = [
1512
- o("path", {
1724
+ function wl(e, n) {
1725
+ return f(), v("svg", kl, [...n[0] || (n[0] = [
1726
+ s("path", {
1513
1727
  fill: "currentColor",
1514
1728
  d: "M11 11V5h2v6h6v2h-6v6h-2v-6H5v-2z"
1515
1729
  }, null, -1)
1516
1730
  ])]);
1517
1731
  }
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({
1732
+ const he = O({ name: "ri-add-line", render: wl }), Cl = { class: "flex w-full relative" }, Sl = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, zl = ["disabled"], Ue = /* @__PURE__ */ S({
1519
1733
  __name: "VTextWrapper",
1520
1734
  props: {
1521
1735
  active: { type: Boolean },
@@ -1525,66 +1739,66 @@ const he = O({ name: "ri-add-line", render: Gs }), Js = { class: "flex w-full re
1525
1739
  },
1526
1740
  emits: ["icon"],
1527
1741
  setup(e, { emit: n }) {
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"]);
1742
+ const o = n, l = 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"]);
1529
1743
  return (r, c) => {
1530
1744
  const d = he;
1531
- return p(), v("div", Js, [
1532
- o("div", {
1533
- class: E(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-primary/60", t.value])
1745
+ return f(), v("div", Cl, [
1746
+ s("div", {
1747
+ class: z(["glass-inset relative flex min-h-[40px] w-full items-center rounded-md transition focus-within:border-primary/60", t.value])
1534
1748
  }, [
1535
- o("span", {
1536
- class: E(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", s.value])
1537
- }, _(e.label), 3),
1538
- o("div", Zs, [
1749
+ s("span", {
1750
+ class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", l.value])
1751
+ }, x(e.label), 3),
1752
+ s("div", Sl, [
1539
1753
  k(r.$slots, "default")
1540
1754
  ]),
1541
- e.hideIcon ? V("", !0) : (p(), v("button", {
1755
+ e.hideIcon ? T("", !0) : (f(), v("button", {
1542
1756
  key: 0,
1543
1757
  disabled: e.disabled,
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
- onClick: c[0] || (c[0] = (m) => l("icon", m))
1758
+ class: z([{ "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]"]),
1759
+ onClick: c[0] || (c[0] = (m) => o("icon", m))
1546
1760
  }, [
1547
1761
  k(r.$slots, "icon", {}, () => [
1548
1762
  g(d, { class: "size-4" })
1549
1763
  ])
1550
- ], 10, Xs))
1764
+ ], 10, zl))
1551
1765
  ], 2)
1552
1766
  ]);
1553
1767
  };
1554
1768
  }
1555
- }), Ys = {
1769
+ }), Vl = {
1556
1770
  viewBox: "0 0 24 24",
1557
1771
  width: "1.2em",
1558
1772
  height: "1.2em"
1559
1773
  };
1560
- function Qs(e, n) {
1561
- return p(), v("svg", Ys, [...n[0] || (n[0] = [
1562
- o("path", {
1774
+ function Tl(e, n) {
1775
+ return f(), v("svg", Vl, [...n[0] || (n[0] = [
1776
+ s("path", {
1563
1777
  fill: "currentColor",
1564
1778
  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
1779
  }, null, -1)
1566
1780
  ])]);
1567
1781
  }
1568
- const el = O({ name: "ri-file-copy-line", render: Qs }), tl = {
1782
+ const Ll = O({ name: "ri-file-copy-line", render: Tl }), El = {
1569
1783
  viewBox: "0 0 24 24",
1570
1784
  width: "1.2em",
1571
1785
  height: "1.2em"
1572
1786
  };
1573
- function nl(e, n) {
1574
- return p(), v("svg", tl, [...n[0] || (n[0] = [
1575
- o("path", {
1787
+ function Bl(e, n) {
1788
+ return f(), v("svg", El, [...n[0] || (n[0] = [
1789
+ s("path", {
1576
1790
  fill: "currentColor",
1577
1791
  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
1792
  }, null, -1)
1579
1793
  ])]);
1580
1794
  }
1581
- const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1795
+ const Ml = O({ name: "ri-folder6-line", render: Bl }), Al = ["onClick"], Dl = {
1582
1796
  key: 0,
1583
1797
  class: "me-1"
1584
- }, al = { class: "dark:text-gray-300" }, il = { class: "flex gap-3 items-center z-10" }, rl = {
1798
+ }, Pl = { class: "dark:text-gray-300" }, Il = { class: "flex gap-3 items-center z-10" }, jl = {
1585
1799
  key: 0,
1586
1800
  class: "flex ps-5"
1587
- }, dl = { class: "font-medium dark:text-gray-300" }, We = /* @__PURE__ */ S({
1801
+ }, Hl = { class: "font-medium dark:text-gray-300" }, We = /* @__PURE__ */ S({
1588
1802
  __name: "VListObject",
1589
1803
  props: {
1590
1804
  items: { default: () => ({}) },
@@ -1593,82 +1807,82 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1593
1807
  },
1594
1808
  emits: ["click"],
1595
1809
  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 = L({}), { text: r, copy: c, copied: d, isSupported: m } = bt(), a = (b) => {
1810
+ const o = n, l = () => "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 = M({}), { text: r, copy: c, copied: d, isSupported: m } = yt(), i = (b) => {
1597
1811
  t.value[b] = !t.value[b];
1598
- }, i = (b) => typeof b == "object", u = (b) => `${e.path ? e.path + "." : ""}${b}`, f = (b, h) => {
1599
- l("click", { key: b, path: u(b), isObject: h });
1812
+ }, a = (b) => typeof b == "object", u = (b) => `${e.path ? e.path + "." : ""}${b}`, p = (b, h) => {
1813
+ o("click", { key: b, path: u(b), isObject: h });
1600
1814
  };
1601
1815
  return (b, h) => {
1602
- const y = sl, z = el, T = he;
1603
- return p(), v("ul", null, [
1604
- (p(!0), v(B, null, N(e.items, (w, P) => (p(), v("li", {
1605
- key: P,
1606
- class: E(i(w) ? "" : `flex items-center ${s()}`)
1816
+ const _ = Ml, V = Ll, L = he;
1817
+ return f(), v("ul", null, [
1818
+ (f(!0), v(E, null, j(e.items, (w, N) => (f(), v("li", {
1819
+ key: N,
1820
+ class: z(a(w) ? "" : `flex items-center ${l()}`)
1607
1821
  }, [
1608
- o("div", {
1609
- class: E(["flex items-center cursor-pointer ps-2 h-8", i(w) ? `${s()}` : ""]),
1610
- onClick: (Z) => a(P)
1822
+ s("div", {
1823
+ class: z(["flex items-center cursor-pointer ps-2 h-8", a(w) ? `${l()}` : ""]),
1824
+ onClick: (Z) => i(N)
1611
1825
  }, [
1612
- i(w) ? (p(), v("div", ol, [
1613
- g(y, { class: "size-5" })
1614
- ])) : V("", !0),
1615
- o("div", al, _(P), 1),
1616
- q(m) ? (p(), I(A, {
1826
+ a(w) ? (f(), v("div", Dl, [
1827
+ g(_, { class: "size-5" })
1828
+ ])) : T("", !0),
1829
+ s("div", Pl, x(N), 1),
1830
+ q(m) ? (f(), I(A, {
1617
1831
  key: 1,
1618
1832
  class: "opacity-20 hover:opacity-70 transition-all",
1619
1833
  color: "transparent",
1620
1834
  size: "sm",
1621
- onClick: R((Z) => q(c)(u(P)), ["stop"])
1835
+ onClick: U((Z) => q(c)(u(N)), ["stop"])
1622
1836
  }, {
1623
- default: x(() => [
1624
- g(z, { class: "size-5" })
1837
+ default: y(() => [
1838
+ g(V, { class: "size-5" })
1625
1839
  ]),
1626
1840
  _: 1
1627
- }, 8, ["onClick"])) : V("", !0),
1628
- q(r) === u(P) ? (p(), v("span", {
1841
+ }, 8, ["onClick"])) : T("", !0),
1842
+ q(r) === u(N) ? (f(), v("span", {
1629
1843
  key: 2,
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
- h[1] || (h[1] = o("div", { class: "flex-auto" }, null, -1)),
1634
- o("div", il, [
1844
+ class: z(["text-gray-500 transition-all duration-1000 text-sm", q(d) ? "opacity-100" : "opacity-0"])
1845
+ }, x(b.$t("copied")), 3)) : T("", !0),
1846
+ !e.onlyValue && a(w) ? (f(), v(E, { key: 3 }, [
1847
+ h[1] || (h[1] = s("div", { class: "flex-auto" }, null, -1)),
1848
+ s("div", Il, [
1635
1849
  g(A, {
1636
1850
  class: "opacity-20 hover:opacity-70 transition-all",
1637
1851
  color: "transparent",
1638
1852
  size: "sm",
1639
1853
  title: b.$t("add"),
1640
- onClick: R((Z) => f(P, i(w)), ["stop"])
1854
+ onClick: U((Z) => p(N, a(w)), ["stop"])
1641
1855
  }, {
1642
- default: x(() => [
1643
- g(T, { class: "size-5" })
1856
+ default: y(() => [
1857
+ g(L, { class: "size-5" })
1644
1858
  ]),
1645
1859
  _: 1
1646
1860
  }, 8, ["title", "onClick"])
1647
1861
  ])
1648
- ], 64)) : V("", !0)
1649
- ], 10, ll),
1650
- i(w) ? (p(), v("div", rl, [
1862
+ ], 64)) : T("", !0)
1863
+ ], 10, Al),
1864
+ a(w) ? (f(), v("div", jl, [
1651
1865
  we(g(We, {
1652
1866
  class: "flex-auto",
1653
- path: u(P),
1867
+ path: u(N),
1654
1868
  items: w,
1655
1869
  onlyValue: e.onlyValue,
1656
- onClick: h[0] || (h[0] = (Z) => l("click", Z))
1870
+ onClick: h[0] || (h[0] = (Z) => o("click", Z))
1657
1871
  }, null, 8, ["path", "items", "onlyValue"]), [
1658
- [st, t.value[P]]
1872
+ [st, t.value[N]]
1659
1873
  ])
1660
- ])) : (p(), v(B, { key: 1 }, [
1661
- h[2] || (h[2] = o("div", { class: "flex-auto gap-3" }, null, -1)),
1662
- o("div", dl, _(w), 1),
1874
+ ])) : (f(), v(E, { key: 1 }, [
1875
+ h[2] || (h[2] = s("div", { class: "flex-auto gap-3" }, null, -1)),
1876
+ s("div", Hl, x(w), 1),
1663
1877
  g(A, {
1664
1878
  class: "opacity-20 hover:opacity-70 transition-all",
1665
1879
  color: "gray",
1666
1880
  size: "sm",
1667
1881
  title: b.$t("add"),
1668
- onClick: R((Z) => f(P, i(w)), ["stop"])
1882
+ onClick: U((Z) => p(N, a(w)), ["stop"])
1669
1883
  }, {
1670
- default: x(() => [
1671
- g(T, { class: "size-5" })
1884
+ default: y(() => [
1885
+ g(L, { class: "size-5" })
1672
1886
  ]),
1673
1887
  _: 1
1674
1888
  }, 8, ["title", "onClick"])
@@ -1677,7 +1891,7 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1677
1891
  ]);
1678
1892
  };
1679
1893
  }
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({
1894
+ }), Nl = { class: "glass-inset rounded-md p-1" }, Ol = { class: "flex gap-1" }, Fl = ["onClick"], Kl = { class: "relative my-4" }, Rl = { key: 0 }, Ul = /* @__PURE__ */ S({
1681
1895
  __name: "VTabs",
1682
1896
  props: {
1683
1897
  value: {},
@@ -1685,46 +1899,46 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1685
1899
  size: { default: "md" }
1686
1900
  },
1687
1901
  emits: ["click"],
1688
- setup(e, { expose: n, emit: l }) {
1689
- const s = l, t = L(e.value || 0), r = (d) => [
1902
+ setup(e, { expose: n, emit: o }) {
1903
+ const l = o, t = M(e.value || 0), r = (d) => [
1690
1904
  t.value === d ? "bg-primary/10 text-primary" : "text-gray-500 hover:bg-white/5 dark:text-white/50 dark:hover:bg-white/5"
1691
1905
  ], c = (d) => {
1692
- t.value = d, s("click", d);
1906
+ t.value = d, l("click", d);
1693
1907
  };
1694
1908
  return n({
1695
1909
  setActiveTab: c,
1696
1910
  activeTab: t
1697
- }), (d, m) => (p(), v("div", null, [
1698
- o("div", cl, [
1699
- o("div", ul, [
1700
- (p(!0), v(B, null, N(e.items, (a, i) => (p(), v("div", {
1701
- key: i,
1911
+ }), (d, m) => (f(), v("div", null, [
1912
+ s("div", Nl, [
1913
+ s("div", Ol, [
1914
+ (f(!0), v(E, null, j(e.items, (i, a) => (f(), v("div", {
1915
+ key: a,
1702
1916
  class: "relative flex-auto"
1703
1917
  }, [
1704
- o("button", {
1918
+ s("button", {
1705
1919
  type: "button",
1706
1920
  class: "w-full",
1707
- onClick: (u) => c(i)
1921
+ onClick: (u) => c(a)
1708
1922
  }, [
1709
- o("div", {
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"])
1923
+ s("div", {
1924
+ class: z([[r(a), e.size === "sm" ? "px-2 py-1 text-xs" : "px-3 py-2 text-sm"], "rounded-md font-medium transition"])
1711
1925
  }, [
1712
1926
  k(d.$slots, "header", {
1713
- tab: a,
1714
- i
1927
+ tab: i,
1928
+ i: a
1715
1929
  }, () => [
1716
- o("div", {
1717
- class: E(e.size === "sm" ? "px-2 py-0.5" : "px-3 py-1")
1718
- }, _(a.title), 3)
1930
+ s("div", {
1931
+ class: z(e.size === "sm" ? "px-2 py-0.5" : "px-3 py-1")
1932
+ }, x(i.title), 3)
1719
1933
  ])
1720
1934
  ], 2)
1721
- ], 8, ml)
1935
+ ], 8, Fl)
1722
1936
  ]))), 128))
1723
1937
  ])
1724
1938
  ]),
1725
- o("div", pl, [
1726
- (p(!0), v(B, null, N(e.items, (a, i) => (p(), v("div", {
1727
- key: i,
1939
+ s("div", Kl, [
1940
+ (f(!0), v(E, null, j(e.items, (i, a) => (f(), v("div", {
1941
+ key: a,
1728
1942
  class: "tab-panel"
1729
1943
  }, [
1730
1944
  g($e, {
@@ -1735,10 +1949,10 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1735
1949
  "leave-from-class": "transform opacity-100 translate-x-0",
1736
1950
  "leave-to-class": "transform opacity-0 -translate-x-2"
1737
1951
  }, {
1738
- default: x(() => [
1739
- t.value === i ? (p(), v("div", fl, [
1740
- k(d.$slots, `tab-${i}`)
1741
- ])) : V("", !0)
1952
+ default: y(() => [
1953
+ t.value === a ? (f(), v("div", Rl, [
1954
+ k(d.$slots, `tab-${a}`)
1955
+ ])) : T("", !0)
1742
1956
  ]),
1743
1957
  _: 2
1744
1958
  }, 1024)
@@ -1746,7 +1960,7 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1746
1960
  ])
1747
1961
  ]));
1748
1962
  }
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({
1963
+ }), Wl = { class: "flex gap-1 text-amber-500 self-start text-nowrap select-none" }, ql = ["title", "onMouseenter", "onMouseleave"], Gl = { class: "flex flex-auto" }, Jl = ["disabled"], be = /* @__PURE__ */ S({
1750
1964
  __name: "VFunc",
1751
1965
  props: {
1752
1966
  label: {},
@@ -1757,73 +1971,73 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1757
1971
  },
1758
1972
  emits: ["change", "icon", "hover"],
1759
1973
  setup(e, { emit: n }) {
1760
- const l = n, s = ["v", "a", "b", "c"], t = L(e.value || ""), r = (m) => {
1974
+ const o = n, l = ["v", "a", "b", "c"], t = M(e.value || ""), r = (m) => {
1761
1975
  try {
1762
1976
  return new Function(m), !0;
1763
- } catch (a) {
1764
- return console.warn(a), !1;
1977
+ } catch (i) {
1978
+ return console.warn(i), !1;
1765
1979
  }
1766
1980
  }, c = Se((m) => {
1767
- const a = m.target;
1768
- r(a.value) && l("change", a.value);
1769
- }, 500), d = (m) => l("icon", m);
1981
+ const i = m.target;
1982
+ r(i.value) && o("change", i.value);
1983
+ }, 500), d = (m) => o("icon", m);
1770
1984
  return oe(
1771
1985
  () => e.value,
1772
1986
  () => {
1773
1987
  e.value && (t.value = e.value);
1774
1988
  }
1775
- ), (m, a) => {
1776
- const i = de, u = he;
1777
- return p(), I(Re, {
1989
+ ), (m, i) => {
1990
+ const a = ue, u = he;
1991
+ return f(), I(Ue, {
1778
1992
  active: !!e.value,
1779
1993
  disabled: e.disabled,
1780
1994
  label: e.label,
1781
1995
  hideIcon: e.hideIcon,
1782
1996
  onIcon: d
1783
1997
  }, {
1784
- icon: x(() => [
1785
- e.value ? (p(), I(i, {
1998
+ icon: y(() => [
1999
+ e.value ? (f(), I(a, {
1786
2000
  key: 0,
1787
2001
  class: "size-4"
1788
- })) : (p(), I(u, {
2002
+ })) : (f(), I(u, {
1789
2003
  key: 1,
1790
2004
  class: "size-4"
1791
2005
  }))
1792
2006
  ]),
1793
- default: x(() => [
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 }, [
1798
- o("span", {
2007
+ default: y(() => [
2008
+ e.value ? (f(), v(E, { key: 0 }, [
2009
+ s("div", Wl, [
2010
+ i[3] || (i[3] = D(" ( ", -1)),
2011
+ (f(!0), v(E, null, j(e.args, (p, b) => (f(), v(E, { key: p }, [
2012
+ s("span", {
1799
2013
  class: "text-blue-400/80",
1800
- title: f,
1801
- onMouseenter: (h) => l("hover", "enter", b),
1802
- onMouseleave: (h) => l("hover", "leave", b)
1803
- }, _(s[b]), 41, gl),
1804
- a[2] || (a[2] = o("span", { class: "last:hidden" }, ",", -1))
2014
+ title: p,
2015
+ onMouseenter: (h) => o("hover", "enter", b),
2016
+ onMouseleave: (h) => o("hover", "leave", b)
2017
+ }, x(l[b]), 41, ql),
2018
+ i[2] || (i[2] = s("span", { class: "last:hidden" }, ",", -1))
1805
2019
  ], 64))), 128)),
1806
- a[4] || (a[4] = j(" ) => ", -1))
2020
+ i[4] || (i[4] = D(" ) => ", -1))
1807
2021
  ]),
1808
- o("div", bl, [
1809
- we(o("textarea", {
1810
- "onUpdate:modelValue": a[0] || (a[0] = (f) => t.value = f),
2022
+ s("div", Gl, [
2023
+ we(s("textarea", {
2024
+ "onUpdate:modelValue": i[0] || (i[0] = (p) => t.value = p),
1811
2025
  class: "outline-0 w-full resize-none field-sizing-content",
1812
2026
  type: "text",
1813
2027
  disabled: e.disabled,
1814
- onInput: a[1] || (a[1] = //@ts-ignore
1815
- (...f) => q(c) && q(c)(...f))
1816
- }, null, 40, xl), [
1817
- [je, t.value]
2028
+ onInput: i[1] || (i[1] = //@ts-ignore
2029
+ (...p) => q(c) && q(c)(...p))
2030
+ }, null, 40, Jl), [
2031
+ [Ie, t.value]
1818
2032
  ])
1819
2033
  ])
1820
- ], 64)) : V("", !0)
2034
+ ], 64)) : T("", !0)
1821
2035
  ]),
1822
2036
  _: 1
1823
2037
  }, 8, ["active", "disabled", "label", "hideIcon"]);
1824
2038
  };
1825
2039
  }
1826
- }), yl = ["checked", "disabled"], _l = { class: "text-sm ms-2 peer-disabled:opacity-40" }, $l = /* @__PURE__ */ S({
2040
+ }), Zl = ["checked", "disabled"], Xl = { class: "text-sm ms-2 peer-disabled:opacity-40" }, Yl = /* @__PURE__ */ S({
1827
2041
  __name: "VCheckbox",
1828
2042
  props: {
1829
2043
  modelValue: { type: [Number, Boolean], default: !1 },
@@ -1831,48 +2045,48 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1831
2045
  },
1832
2046
  emits: ["update:modelValue", "click"],
1833
2047
  setup(e, { emit: n }) {
1834
- const l = n, s = (r) => {
2048
+ const o = n, l = (r) => {
1835
2049
  const c = r.target;
1836
- l("update:modelValue", c.checked);
1837
- }, t = (r) => l("click", r);
1838
- return (r, c) => (p(), v("label", {
1839
- class: E(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
2050
+ o("update:modelValue", c.checked);
2051
+ }, t = (r) => o("click", r);
2052
+ return (r, c) => (f(), v("label", {
2053
+ class: z(["inline-flex items-center relative", { "cursor-pointer": !e.disabled }]),
1840
2054
  onClick: t
1841
2055
  }, [
1842
- o("input", {
2056
+ s("input", {
1843
2057
  type: "checkbox",
1844
2058
  checked: !!e.modelValue,
1845
2059
  disabled: e.disabled,
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]",
1847
- onChange: s
1848
- }, null, 40, yl),
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" }, [
1850
- o("svg", {
2060
+ class: "peer size-5 appearance-none rounded-md border border-gray-300/80 bg-transparent transition-all checked:border-[var(--accent-blue)] disabled:opacity-40 not-disabled:cursor-pointer dark:border-white/15",
2061
+ onChange: l
2062
+ }, null, 40, Zl),
2063
+ c[0] || (c[0] = s("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" }, [
2064
+ s("svg", {
1851
2065
  class: "h-3.5 w-3.5",
1852
2066
  viewBox: "0 0 20 20",
1853
2067
  fill: "currentColor",
1854
2068
  stroke: "currentColor",
1855
2069
  "stroke-width": "1"
1856
2070
  }, [
1857
- o("path", {
2071
+ s("path", {
1858
2072
  "fill-rule": "evenodd",
1859
2073
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
1860
2074
  "clip-rule": "evenodd"
1861
2075
  })
1862
2076
  ])
1863
2077
  ], -1)),
1864
- o("span", _l, [
2078
+ s("span", Xl, [
1865
2079
  k(r.$slots, "default")
1866
2080
  ])
1867
2081
  ], 2));
1868
2082
  }
1869
- }), kl = { class: "flex flex-col" }, wl = { class: "flex gap-4 mb-6" }, Cl = {
2083
+ }), Ql = { class: "flex flex-col" }, ea = { class: "flex gap-4 mb-6" }, ta = {
1870
2084
  key: 0,
1871
2085
  class: "flex gap-4"
1872
- }, Sl = {
2086
+ }, na = {
1873
2087
  key: 1,
1874
2088
  class: ""
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({
2089
+ }, sa = { class: "flex flex-col md:flex-row gap-4" }, la = { class: "flex gap-4" }, aa = { class: "flex justify-between flex-auto" }, oa = ["onClick"], ia = /* @__PURE__ */ S({
1876
2090
  __name: "ItemOptions",
1877
2091
  props: {
1878
2092
  min: { default: 0 },
@@ -1885,57 +2099,57 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1885
2099
  },
1886
2100
  emits: ["update"],
1887
2101
  setup(e, { emit: n }) {
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(() => {
2102
+ const o = n, l = B(() => e.items.map((h, _) => ({ ...h, id: ++_ }))), t = M({ name: "", value: "" }), r = B(() => e.items.length + 1), c = B(() => {
1889
2103
  var h;
1890
2104
  return !((h = t.value) != null && h.id);
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 = () => {
2105
+ }), d = (h) => e.type === h, m = (h, _) => o("update", h, _), i = (h) => h.map(({ name: _, value: V }) => ({ name: _, value: V })), a = ({ id: h, name: _, value: V }) => t.value = { id: h, name: _, value: V }, u = () => {
1892
2106
  const h = r.value;
1893
- t.value = { name: `New_${h}`, value: `${h}`, id: h }, m("items", a([...s.value, t.value]));
1894
- }, f = (h) => {
1895
- t.value.name === h.name && (t.value = { name: "", value: "" }), m("items", a(s.value.filter((y) => y.value !== h.value)));
2107
+ t.value = { name: `New_${h}`, value: `${h}`, id: h }, m("items", i([...l.value, t.value]));
2108
+ }, p = (h) => {
2109
+ t.value.name === h.name && (t.value = { name: "", value: "" }), m("items", i(l.value.filter((_) => _.value !== h.value)));
1896
2110
  }, b = Se(() => {
1897
2111
  const h = t.value;
1898
2112
  if (!h.name || !h.value) return;
1899
- const y = s.value.map((z) => z.id === h.id ? h : z);
1900
- m("items", a(y));
2113
+ const _ = l.value.map((V) => V.id === h.id ? h : V);
2114
+ m("items", i(_));
1901
2115
  }, 300);
1902
- return (h, y) => {
1903
- const z = de, T = he;
1904
- return p(), v("div", kl, [
1905
- o("div", wl, [
1906
- g($l, {
2116
+ return (h, _) => {
2117
+ const V = ue, L = he;
2118
+ return f(), v("div", Ql, [
2119
+ s("div", ea, [
2120
+ g(Yl, {
1907
2121
  modelValue: e.disabled,
1908
- "onUpdate:modelValue": y[0] || (y[0] = (w) => m("disabled", w ? 1 : 0))
2122
+ "onUpdate:modelValue": _[0] || (_[0] = (w) => m("disabled", w ? 1 : 0))
1909
2123
  }, {
1910
- default: x(() => [...y[6] || (y[6] = [
1911
- j("Disabled", -1)
2124
+ default: y(() => [..._[6] || (_[6] = [
2125
+ D("Disabled", -1)
1912
2126
  ])]),
1913
2127
  _: 1
1914
2128
  }, 8, ["modelValue"])
1915
2129
  ]),
1916
- d("dimmer") ? (p(), v("div", Cl, [
2130
+ d("dimmer") ? (f(), v("div", ta, [
1917
2131
  g(J, {
1918
2132
  modelValue: e.min,
1919
2133
  label: "Min",
1920
- "onUpdate:modelValue": y[1] || (y[1] = (w) => m("min", +w))
2134
+ "onUpdate:modelValue": _[1] || (_[1] = (w) => m("min", +w))
1921
2135
  }, null, 8, ["modelValue"]),
1922
2136
  g(J, {
1923
2137
  modelValue: e.max,
1924
2138
  label: "Max",
1925
- "onUpdate:modelValue": y[2] || (y[2] = (w) => m("max", +w))
2139
+ "onUpdate:modelValue": _[2] || (_[2] = (w) => m("max", +w))
1926
2140
  }, null, 8, ["modelValue"]),
1927
2141
  g(J, {
1928
2142
  modelValue: e.step,
1929
2143
  label: "Step",
1930
- "onUpdate:modelValue": y[3] || (y[3] = (w) => m("step", +w))
2144
+ "onUpdate:modelValue": _[3] || (_[3] = (w) => m("step", +w))
1931
2145
  }, null, 8, ["modelValue"])
1932
- ])) : V("", !0),
1933
- d("list") ? (p(), v("div", Sl, [
1934
- o("div", zl, [
2146
+ ])) : T("", !0),
2147
+ d("list") ? (f(), v("div", na, [
2148
+ s("div", sa, [
1935
2149
  g(J, {
1936
2150
  modelValue: t.value.name,
1937
2151
  "onUpdate:modelValue": [
1938
- y[4] || (y[4] = (w) => t.value.name = w),
2152
+ _[4] || (_[4] = (w) => t.value.name = w),
1939
2153
  q(b)
1940
2154
  ],
1941
2155
  disabled: c.value,
@@ -1944,31 +2158,31 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1944
2158
  g(J, {
1945
2159
  modelValue: t.value.value,
1946
2160
  "onUpdate:modelValue": [
1947
- y[5] || (y[5] = (w) => t.value.value = w),
2161
+ _[5] || (_[5] = (w) => t.value.value = w),
1948
2162
  q(b)
1949
2163
  ],
1950
2164
  disabled: c.value,
1951
2165
  label: "Value"
1952
2166
  }, null, 8, ["modelValue", "disabled", "onUpdate:modelValue"])
1953
2167
  ]),
1954
- o("div", Vl, [
1955
- g(le, {
2168
+ s("div", la, [
2169
+ g(ae, {
1956
2170
  "model-value": t.value.value,
1957
2171
  label: "List",
1958
- items: s.value,
2172
+ items: l.value,
1959
2173
  top: "unset",
1960
2174
  bottom: "0",
1961
- onChange: i
2175
+ onChange: a
1962
2176
  }, {
1963
- item: x(({ item: w }) => [
1964
- o("div", Tl, [
1965
- o("span", null, _(w.name), 1),
1966
- o("button", {
2177
+ item: y(({ item: w }) => [
2178
+ s("div", aa, [
2179
+ s("span", null, x(w.name), 1),
2180
+ s("button", {
1967
2181
  class: "cursor-pointer size-4",
1968
- onClick: R((P) => f(w), ["prevent", "stop"])
2182
+ onClick: U((N) => p(w), ["prevent", "stop"])
1969
2183
  }, [
1970
- g(z)
1971
- ], 8, El)
2184
+ g(V)
2185
+ ], 8, oa)
1972
2186
  ])
1973
2187
  ]),
1974
2188
  _: 1
@@ -1978,17 +2192,17 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1978
2192
  color: "blue",
1979
2193
  onClick: u
1980
2194
  }, {
1981
- default: x(() => [
1982
- g(T)
2195
+ default: y(() => [
2196
+ g(L)
1983
2197
  ]),
1984
2198
  _: 1
1985
2199
  })
1986
2200
  ])
1987
- ])) : V("", !0)
2201
+ ])) : T("", !0)
1988
2202
  ]);
1989
2203
  };
1990
2204
  }
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({
2205
+ }), ra = { class: "flex flex-col" }, da = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, ca = { class: "flex-auto order-1" }, ua = { class: "flex-auto gap-x-2 order-1" }, ma = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, fa = { class: "flex gap-2 items-center" }, pa = { class: "flex flex-col gap-4" }, va = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, ha = { class: "relative group" }, ga = { class: "select-none" }, ba = ["onClick"], ya = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, xa = { class: "flex-[0_0_130px] size-[130px]" }, _a = { class: "flex gap-4 justify-end" }, $a = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, ti = /* @__PURE__ */ S({
1992
2206
  __name: "ItemEdit",
1993
2207
  props: {
1994
2208
  items: {},
@@ -1999,7 +2213,7 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
1999
2213
  },
2000
2214
  emits: ["button"],
2001
2215
  setup(e, { emit: n }) {
2002
- const l = n, s = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = L({
2216
+ const o = n, l = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], t = M({
2003
2217
  id: "",
2004
2218
  name: "",
2005
2219
  type: "button",
@@ -2009,27 +2223,27 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
2009
2223
  set: "",
2010
2224
  get: "",
2011
2225
  getTo: ""
2012
- }), r = L(!1), c = M(() => {
2226
+ }), r = M(!1), c = B(() => {
2013
2227
  var $;
2014
2228
  return !(($ = e.item) != null && $.id);
2015
- }), d = M(() => !!e.items.filter(($) => {
2229
+ }), d = B(() => !!e.items.filter(($) => {
2016
2230
  var C;
2017
2231
  return $.id !== ((C = e.item) == null ? void 0 : C.id);
2018
- }).find(($) => $.id === (t == null ? void 0 : t.value.id))), m = M(() => t.value.type === "info"), a = M(() => {
2232
+ }).find(($) => $.id === (t == null ? void 0 : t.value.id))), m = B(() => t.value.type === "info"), i = B(() => {
2019
2233
  var $;
2020
2234
  return ($ = t.value.args) == null ? void 0 : $.length;
2021
- }), i = M(() => t.value.args.length > 3), u = M(() => {
2235
+ }), a = B(() => t.value.args.length > 3), u = B(() => {
2022
2236
  if (d.value) return !0;
2023
2237
  const { id: $, args: C } = t.value;
2024
2238
  return !$ || !C.length;
2025
- }), f = ({ value: $ }) => t.value.icon = $, b = ({ value: $ }) => {
2239
+ }), p = ({ value: $ }) => t.value.icon = $, b = ({ value: $ }) => {
2026
2240
  const C = $;
2027
2241
  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 }));
2028
2242
  }, h = ($) => {
2029
2243
  $ === "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");
2030
- }, y = ($) => l("button", $, t.value), z = ($) => t.value.args = t.value.args.filter((C) => C !== $), T = ({ path: $ }) => {
2244
+ }, _ = ($) => o("button", $, t.value), V = ($) => t.value.args = t.value.args.filter((C) => C !== $), L = ({ path: $ }) => {
2031
2245
  !t.value.args.length && !t.value.id && (t.value.id = $), t.value.args.push($), r.value = !1;
2032
- }, w = L(-1), P = ($) => w.value === $, Z = ($, C) => {
2246
+ }, w = M(-1), N = ($) => w.value === $, Z = ($, C) => {
2033
2247
  $ === "enter" && (w.value = C), $ === "leave" && (w.value = -1);
2034
2248
  }, ge = ($, C) => {
2035
2249
  $ === "set" && (t.value.set = C), $ === "get" && (t.value.get = C), $ === "getTo" && (t.value.getTo = C), C || delete t.value[$];
@@ -2038,35 +2252,35 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
2038
2252
  }, Qe = ($, C) => {
2039
2253
  t.value.opts || (t.value.opts = {}), t.value.opts[$] = C, $ === "disabled" && !C && delete t.value.opts[$];
2040
2254
  };
2041
- return Q(() => {
2255
+ return ee(() => {
2042
2256
  var $;
2043
- ($ = e.item) != null && $.id && (t.value = vt(e.item));
2257
+ ($ = e.item) != null && $.id && (t.value = ht(e.item));
2044
2258
  }), ($, C) => {
2045
- const et = Ws, tt = de;
2046
- return p(), v("div", Bl, [
2047
- o("div", Ml, [
2048
- o("div", Al, [
2049
- g(vl, {
2259
+ const et = $l, tt = ue;
2260
+ return f(), v("div", ra, [
2261
+ s("div", da, [
2262
+ s("div", ca, [
2263
+ g(Ul, {
2050
2264
  class: "flex-auto min-h-75",
2051
2265
  value: 0,
2052
- items: s
2266
+ items: l
2053
2267
  }, {
2054
- "tab-0": x(() => [
2055
- o("div", Dl, [
2268
+ "tab-0": y(() => [
2269
+ s("div", ua, [
2056
2270
  g(J, {
2057
2271
  modelValue: t.value.id,
2058
- "onUpdate:modelValue": C[0] || (C[0] = (D) => t.value.id = D),
2272
+ "onUpdate:modelValue": C[0] || (C[0] = (P) => t.value.id = P),
2059
2273
  label: "ID",
2060
2274
  message: d.value ? $.$t("used") : ""
2061
2275
  }, lt({ _: 2 }, [
2062
- a.value ? void 0 : {
2276
+ i.value ? void 0 : {
2063
2277
  name: "icon",
2064
- fn: x(() => [
2278
+ fn: y(() => [
2065
2279
  g(A, {
2066
2280
  color: "transparent",
2067
2281
  onClick: Ye
2068
2282
  }, {
2069
- default: x(() => [
2283
+ default: y(() => [
2070
2284
  g(et)
2071
2285
  ]),
2072
2286
  _: 1
@@ -2077,30 +2291,30 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
2077
2291
  ]), 1032, ["modelValue", "message"]),
2078
2292
  g(J, {
2079
2293
  modelValue: t.value.name,
2080
- "onUpdate:modelValue": C[1] || (C[1] = (D) => t.value.name = D),
2294
+ "onUpdate:modelValue": C[1] || (C[1] = (P) => t.value.name = P),
2081
2295
  label: "Name"
2082
2296
  }, null, 8, ["modelValue"]),
2083
- o("div", Il, [
2084
- g(le, {
2297
+ s("div", ma, [
2298
+ g(ae, {
2085
2299
  "model-value": t.value.icon,
2086
2300
  bottom: "0",
2087
2301
  top: "unset",
2088
2302
  label: "Icon",
2089
2303
  class: "mb-6",
2090
2304
  items: e.listIcons,
2091
- onChange: f
2305
+ onChange: p
2092
2306
  }, {
2093
- item: x(({ item: D }) => [
2094
- o("div", jl, [
2307
+ item: y(({ item: P }) => [
2308
+ s("div", fa, [
2095
2309
  k($.$slots, "icon", {
2096
- icon: D.value
2310
+ icon: P.value
2097
2311
  }),
2098
- o("div", null, _(D.name), 1)
2312
+ s("div", null, x(P.name), 1)
2099
2313
  ])
2100
2314
  ]),
2101
2315
  _: 3
2102
2316
  }, 8, ["model-value", "items"]),
2103
- g(le, {
2317
+ g(ae, {
2104
2318
  "model-value": t.value.type,
2105
2319
  bottom: "0",
2106
2320
  top: "unset",
@@ -2111,35 +2325,35 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
2111
2325
  ])
2112
2326
  ])
2113
2327
  ]),
2114
- "tab-1": x(() => [
2115
- o("div", Hl, [
2116
- g(Re, {
2328
+ "tab-1": y(() => [
2329
+ s("div", pa, [
2330
+ g(Ue, {
2117
2331
  active: !!t.value.args.length,
2118
- disabled: i.value,
2332
+ disabled: a.value,
2119
2333
  label: "Arguments",
2120
- onIcon: C[2] || (C[2] = (D) => r.value = !0)
2334
+ onIcon: C[2] || (C[2] = (P) => r.value = !0)
2121
2335
  }, {
2122
- default: x(() => [
2123
- o("div", Pl, [
2124
- (p(!0), v(B, null, N(t.value.args, (D, Te) => (p(), v("div", {
2125
- key: D,
2336
+ default: y(() => [
2337
+ s("div", va, [
2338
+ (f(!0), v(E, null, j(t.value.args, (P, Te) => (f(), v("div", {
2339
+ key: P,
2126
2340
  class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
2127
2341
  }, [
2128
- o("div", Nl, [
2129
- o("span", Ol, _(D), 1),
2130
- o("div", {
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" : ""])
2342
+ s("div", ha, [
2343
+ s("span", ga, x(P), 1),
2344
+ s("div", {
2345
+ class: z(["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", N(Te) ? "visible opacity-100" : ""])
2132
2346
  }, [
2133
- o("pre", null, _(q(yt)(D, e.object)), 1)
2347
+ s("pre", null, x(q(_t)(P, e.object)), 1)
2134
2348
  ], 2)
2135
2349
  ]),
2136
- Te || t.value.args.length < 2 ? (p(), v("button", {
2350
+ Te || t.value.args.length < 2 ? (f(), v("button", {
2137
2351
  key: 0,
2138
2352
  class: "cursor-pointer ms-1",
2139
- onClick: (Yo) => z(D)
2353
+ onClick: (Vo) => V(P)
2140
2354
  }, [
2141
2355
  g(tt, { class: "size-5" })
2142
- ], 8, Kl)) : V("", !0)
2356
+ ], 8, ba)) : T("", !0)
2143
2357
  ]))), 128))
2144
2358
  ])
2145
2359
  ]),
@@ -2148,34 +2362,34 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
2148
2362
  g(be, {
2149
2363
  value: t.value.set,
2150
2364
  args: t.value.args,
2151
- disabled: !a.value || m.value,
2365
+ disabled: !i.value || m.value,
2152
2366
  label: "Set",
2153
- onIcon: C[3] || (C[3] = (D) => h("set")),
2367
+ onIcon: C[3] || (C[3] = (P) => h("set")),
2154
2368
  onHover: Z,
2155
- onChange: C[4] || (C[4] = (D) => ge("set", D))
2369
+ onChange: C[4] || (C[4] = (P) => ge("set", P))
2156
2370
  }, null, 8, ["value", "args", "disabled"]),
2157
2371
  g(be, {
2158
2372
  value: t.value.get,
2159
2373
  args: t.value.args,
2160
- disabled: !a.value,
2374
+ disabled: !i.value,
2161
2375
  label: "Get",
2162
- onIcon: C[5] || (C[5] = (D) => h("get")),
2376
+ onIcon: C[5] || (C[5] = (P) => h("get")),
2163
2377
  onHover: Z,
2164
- onChange: C[6] || (C[6] = (D) => ge("get", D))
2378
+ onChange: C[6] || (C[6] = (P) => ge("get", P))
2165
2379
  }, null, 8, ["value", "args", "disabled"]),
2166
2380
  g(be, {
2167
2381
  value: t.value.getTo,
2168
2382
  args: t.value.args,
2169
- disabled: !a.value,
2383
+ disabled: !i.value,
2170
2384
  label: "GetTo",
2171
- onIcon: C[7] || (C[7] = (D) => h("getTo")),
2385
+ onIcon: C[7] || (C[7] = (P) => h("getTo")),
2172
2386
  onHover: Z,
2173
- onChange: C[8] || (C[8] = (D) => ge("getTo", D))
2387
+ onChange: C[8] || (C[8] = (P) => ge("getTo", P))
2174
2388
  }, null, 8, ["value", "args", "disabled"])
2175
2389
  ])
2176
2390
  ]),
2177
- "tab-2": x(() => [
2178
- g(Ll, H(t.value.opts, {
2391
+ "tab-2": y(() => [
2392
+ g(ia, H(t.value.opts, {
2179
2393
  value: t.value.value,
2180
2394
  type: t.value.type,
2181
2395
  onUpdate: Qe
@@ -2184,21 +2398,21 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
2184
2398
  _: 3
2185
2399
  })
2186
2400
  ]),
2187
- o("div", Fl, [
2188
- o("div", Ul, [
2401
+ s("div", ya, [
2402
+ s("div", xa, [
2189
2403
  k($.$slots, "default", { item: t.value })
2190
2404
  ])
2191
2405
  ])
2192
2406
  ]),
2193
- o("div", Rl, [
2407
+ s("div", _a, [
2194
2408
  g(A, {
2195
2409
  class: "px-4",
2196
2410
  color: "blue",
2197
2411
  disabled: u.value,
2198
- onClick: C[9] || (C[9] = (D) => y(c.value ? "add" : "save"))
2412
+ onClick: C[9] || (C[9] = (P) => _(c.value ? "add" : "save"))
2199
2413
  }, {
2200
- default: x(() => [
2201
- j(_(c.value ? $.$t("add") : $.$t("save")), 1)
2414
+ default: y(() => [
2415
+ D(x(c.value ? $.$t("add") : $.$t("save")), 1)
2202
2416
  ]),
2203
2417
  _: 1
2204
2418
  }, 8, ["disabled"]),
@@ -2206,82 +2420,82 @@ const sl = O({ name: "ri-folder6-line", render: nl }), ll = ["onClick"], ol = {
2206
2420
  class: "px-4",
2207
2421
  color: "red",
2208
2422
  outline: "",
2209
- onClick: C[10] || (C[10] = (D) => y("remove"))
2423
+ onClick: C[10] || (C[10] = (P) => _("remove"))
2210
2424
  }, {
2211
- default: x(() => [
2212
- j(_($.$t("remove")), 1)
2425
+ default: y(() => [
2426
+ D(x($.$t("remove")), 1)
2213
2427
  ]),
2214
2428
  _: 1
2215
2429
  })
2216
2430
  ]),
2217
- r.value ? (p(), I(Oe, {
2431
+ r.value ? (f(), I(Oe, {
2218
2432
  key: 0,
2219
2433
  size: "md",
2220
2434
  title: $.$t("select"),
2221
- onClose: C[11] || (C[11] = (D) => r.value = !1)
2435
+ onClose: C[11] || (C[11] = (P) => r.value = !1)
2222
2436
  }, {
2223
- default: x(() => [
2224
- o("div", Wl, [
2437
+ default: y(() => [
2438
+ s("div", $a, [
2225
2439
  g(We, {
2226
2440
  items: e.object,
2227
- onlyValue: !a.value,
2228
- onClick: T
2441
+ onlyValue: !i.value,
2442
+ onClick: L
2229
2443
  }, null, 8, ["items", "onlyValue"])
2230
2444
  ])
2231
2445
  ]),
2232
2446
  _: 1
2233
- }, 8, ["title"])) : V("", !0)
2447
+ }, 8, ["title"])) : T("", !0)
2234
2448
  ]);
2235
2449
  };
2236
2450
  }
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) {
2451
+ }), Le = { position: "relative", boxSizing: "border-box", overflow: "hidden", fontSize: "16px", fontFamily: 'Menlo, Consolas, "Liberation Mono", Monaco, "Lucida Console", monospace' }, ka = { 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" }, wa = { 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" }, Ca = { 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);
2452
+ function Ee(e) {
2239
2453
  const n = Array.isArray(e) ? e : [e];
2240
- return n.length === 0 ? qe : (l) => n.reduce((s, t, r) => t(s, { html: r > 0 }), l);
2454
+ return n.length === 0 ? qe : (o) => n.reduce((l, t, r) => t(l, { html: r > 0 }), o);
2241
2455
  }
2242
- class Zl {
2243
- constructor(n, l = {}) {
2456
+ class Sa {
2457
+ constructor(n, o = {}) {
2244
2458
  if (this.lines = null, !n) throw new Error("selector is not defined");
2245
2459
  if (this.root = n instanceof Node ? n : document.querySelector(n), !this.root) throw new Error(`element with "${n}" selector is not exist`);
2246
- const s = { value: "", styles: {}, plugins: [], highlighter: qe }, { highlighters: t, ...r } = l;
2247
- this.options = { ...s, ...r, highlighter: t ? Le(t) : s.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
2460
+ const l = { value: "", styles: {}, plugins: [], highlighter: qe }, { highlighters: t, ...r } = o;
2461
+ this.options = { ...l, ...r, highlighter: t ? Ee(t) : l.highlighter }, this.options.value = this.options.value == null ? "" : String(this.options.value), this.init();
2248
2462
  }
2249
2463
  init() {
2250
2464
  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");
2251
- const n = Object.keys(Ee).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
2465
+ const n = Object.keys(Le).concat(Object.keys(this.options.styles)).concat(["paddingLeft"]);
2252
2466
  this.initialRootStyles = {};
2253
- const l = this.root.style;
2254
- n.forEach((s) => {
2255
- this.initialRootStyles[s] = l[s] || "";
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();
2467
+ const o = this.root.style;
2468
+ n.forEach((l) => {
2469
+ this.initialRootStyles[l] = o[l] || "";
2470
+ }), Object.assign(this.root.style, Le, this.options.styles), Object.assign(this.textarea.style, ka), Object.assign(this.pre.style, wa), 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();
2257
2471
  }
2258
2472
  addTextareaEvents() {
2259
2473
  this.handleEvent = (n) => {
2260
2474
  if (n.type === "keydown" && this.textarea.readOnly) return;
2261
- const l = n;
2262
- if (l.isComposing || l.keyCode === 229) return;
2263
- const s = function(t, r) {
2475
+ const o = n;
2476
+ if (o.isComposing || o.keyCode === 229) return;
2477
+ const l = function(t, r) {
2264
2478
  const { value: c, selectionStart: d, selectionEnd: m } = r.target;
2265
- return t.reduce((a, i) => ({ ...a, ...i(a, r) }), { value: c, selectionStart: d, selectionEnd: m });
2479
+ return t.reduce((i, a) => ({ ...i, ...a(i, r) }), { value: c, selectionStart: d, selectionEnd: m });
2266
2480
  }(this.options.plugins, n);
2267
- this.update(s);
2481
+ this.update(l);
2268
2482
  }, this.textarea.addEventListener("input", this.handleEvent), this.textarea.addEventListener("keydown", this.handleEvent), this.textarea.addEventListener("compositionend", this.handleEvent);
2269
2483
  }
2270
2484
  update(n) {
2271
2485
  if (!this.textarea) return;
2272
- let { value: l, selectionStart: s, selectionEnd: t } = n;
2273
- l != null && (l = String(l), s == null && (s = this.textarea.selectionStart), t == null && (t = this.textarea.selectionEnd), this.textarea.value !== l && (this.textarea.value = l)), s != null && (this.textarea.selectionStart = s), t != null && (this.textarea.selectionEnd = t), l !== this.value && l != null && (this.value = l, this.render(), this.updateCallback && this.updateCallback(l));
2486
+ let { value: o, selectionStart: l, selectionEnd: t } = n;
2487
+ o != null && (o = String(o), l == null && (l = this.textarea.selectionStart), t == null && (t = this.textarea.selectionEnd), this.textarea.value !== o && (this.textarea.value = o)), l != null && (this.textarea.selectionStart = l), t != null && (this.textarea.selectionEnd = t), o !== this.value && o != null && (this.value = o, this.render(), this.updateCallback && this.updateCallback(o));
2274
2488
  }
2275
2489
  updateOptions(n) {
2276
2490
  if (!this.textarea) return;
2277
- const { highlighters: l, ...s } = n;
2278
- if (this.options = { ...this.options, ...s, highlighter: l ? Le(l) : this.options.highlighter }, n.styles) {
2491
+ const { highlighters: o, ...l } = n;
2492
+ if (this.options = { ...this.options, ...l, highlighter: o ? Ee(o) : this.options.highlighter }, n.styles) {
2279
2493
  const t = this.root.style;
2280
2494
  Object.keys(n.styles).forEach((r) => {
2281
2495
  r in this.initialRootStyles || (this.initialRootStyles[r] = t[r] || "");
2282
2496
  }), Object.assign(this.root.style, n.styles), ("paddingLeft" in n.styles || "padding" in n.styles) && (this.basePaddingLeft = this.root.style.paddingLeft || "");
2283
2497
  }
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();
2498
+ this.lines && !this.options.lineNumbers && (me(this.lines), this.lines = null, this.root.style.paddingLeft = this.basePaddingLeft), n.value != null && this.update({ value: n.value }), this.render();
2285
2499
  }
2286
2500
  render() {
2287
2501
  const n = this.options.highlighter(this.value);
@@ -2289,201 +2503,201 @@ class Zl {
2289
2503
  }
2290
2504
  updateLines() {
2291
2505
  if (!this.options.lineNumbers) return;
2292
- this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Jl));
2506
+ this.lines || (this.lines = document.createElement("pre"), this.root.appendChild(this.lines), Object.assign(this.lines.style, Ca));
2293
2507
  const n = this.value.split(`
2294
- `), l = n.length.toString().length;
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(`
2508
+ `), o = n.length.toString().length;
2509
+ this.root.style.paddingLeft = `${o + 1}ch`, this.lines.innerHTML = n.map((l, t) => `${`<span class="yace-line" style="position: absolute; opacity: .3; left: 0; width: ${o}ch; text-align: right">${1 + t}</span>`}${`<span style="color: transparent; pointer-events: none">${Ge(l)}</span>`}`).join(`
2296
2510
  `);
2297
2511
  }
2298
2512
  destroy() {
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 }));
2513
+ this.textarea && (this.textarea.removeEventListener("input", this.handleEvent), this.textarea.removeEventListener("keydown", this.handleEvent), this.textarea.removeEventListener("compositionend", this.handleEvent), me(this.textarea), me(this.pre), me(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 }));
2300
2514
  }
2301
2515
  onUpdate(n) {
2302
2516
  this.updateCallback = n;
2303
2517
  }
2304
2518
  }
2305
- function ce(e) {
2519
+ function me(e) {
2306
2520
  e && e.parentNode && e.parentNode.removeChild(e);
2307
2521
  }
2308
2522
  function Ge(e) {
2309
2523
  return e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;").replace(/"/g, "&quot;").replace(/'/g, "&#039;");
2310
2524
  }
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" };
2312
- function re(e, n) {
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]);
2314
- if (!l.key) return s;
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);
2525
+ 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" }, za = { add: "=" }, Va = { ";": "semicolon", "=": "equal", ",": "comma", "-": "minus", ".": "period", "/": "slash", "`": "backquote", "[": "bracketleft", "\\": "backslash", "]": "bracketright", "'": "quote" };
2526
+ function de(e, n) {
2527
+ const o = e.split("+").reduce((m, i) => Be[i] ? (m.modifiers[Be[i]] = !0, m) : { ...m, key: za[i] || i.toLowerCase() }, { modifiers: { altKey: !1, ctrlKey: !1, metaKey: !1, shiftKey: !1 }, key: null }), l = Object.keys(o.modifiers).every((m) => o.modifiers[m] ? n[m] : !n[m]);
2528
+ if (!o.key) return l;
2529
+ const t = n.key != null && n.key.toLowerCase() === o.key, r = (c = o.key, /^[a-z]$/.test(c) ? `key${c}` : /^[0-9]$/.test(c) ? `digit${c}` : Va[c] || null);
2316
2530
  var c;
2317
2531
  const d = !n.isComposing && r != null && n.code != null && n.code.toLowerCase() === r;
2318
- return s && (t || d);
2532
+ return l && (t || d);
2319
2533
  }
2320
- function Ql(e = {}) {
2321
- const n = Math.max(1, e.limit == null ? 300 : e.limit), l = e.coalesceMs == null ? 300 : e.coalesceMs;
2322
- let s = [], t = null, r = null;
2534
+ function Ta(e = {}) {
2535
+ const n = Math.max(1, e.limit == null ? 300 : e.limit), o = e.coalesceMs == null ? 300 : e.coalesceMs;
2536
+ let l = [], t = null, r = null;
2323
2537
  const c = (d) => {
2324
- s = s.slice(0, t + 1), s.push(d), s.length > n && (s = s.slice(s.length - n)), t = s.length - 1;
2538
+ l = l.slice(0, t + 1), l.push(d), l.length > n && (l = l.slice(l.length - n)), t = l.length - 1;
2325
2539
  };
2326
2540
  return (d, m) => {
2327
- const a = m.type === "keydown" && re("ctrl/cmd+z", m), i = m.type === "keydown" && (re("ctrl/cmd+shift+z", m) || re("ctrl+y", m));
2328
- if ((a || i) && m.preventDefault(), t === null) return s = [d], void (t = 0);
2329
- if (a) return r = null, s[t].value !== d.value ? c(d) : s[t] = d, t = Math.max(0, t - 1), s[t];
2330
- if (i) return r = null, s[t].value !== d.value ? void c(d) : (t = Math.min(s.length - 1, t + 1), s[t]);
2331
- if (m.type === "keydown") return s[t].value !== d.value ? (r = null, void c(d)) : void (s[t] = d);
2541
+ const i = m.type === "keydown" && de("ctrl/cmd+z", m), a = m.type === "keydown" && (de("ctrl/cmd+shift+z", m) || de("ctrl+y", m));
2542
+ if ((i || a) && m.preventDefault(), t === null) return l = [d], void (t = 0);
2543
+ if (i) return r = null, l[t].value !== d.value ? c(d) : l[t] = d, t = Math.max(0, t - 1), l[t];
2544
+ if (a) return r = null, l[t].value !== d.value ? void c(d) : (t = Math.min(l.length - 1, t + 1), l[t]);
2545
+ if (m.type === "keydown") return l[t].value !== d.value ? (r = null, void c(d)) : void (l[t] = d);
2332
2546
  if (m.type === "input") {
2333
- const u = m.timeStamp, f = u != null && r != null && u - r <= l;
2334
- if (r = u ?? null, f) return void (s[t] = d);
2547
+ const u = m.timeStamp, p = u != null && r != null && u - r <= o;
2548
+ if (r = u ?? null, p) return void (l[t] = d);
2335
2549
  c(d);
2336
2550
  }
2337
2551
  };
2338
2552
  }
2339
- const eo = () => (e, n) => {
2340
- const { value: l, selectionStart: s, selectionEnd: t } = e;
2341
- if (!re("enter", n) || n.type !== "keydown") return;
2342
- const r = l.substring(0, s).split(`
2553
+ const La = () => (e, n) => {
2554
+ const { value: o, selectionStart: l, selectionEnd: t } = e;
2555
+ if (!de("enter", n) || n.type !== "keydown") return;
2556
+ const r = o.substring(0, l).split(`
2343
2557
  `).pop(), c = /^\s+/.exec(r);
2344
2558
  if (!c) return;
2345
2559
  n.preventDefault();
2346
2560
  const d = `
2347
2561
  ` + c[0];
2348
- return { value: l.substring(0, s) + d + l.substring(t), selectionStart: s + d.length, selectionEnd: s + d.length };
2349
- }, to = () => (e, n) => {
2562
+ return { value: o.substring(0, l) + d + o.substring(t), selectionStart: l + d.length, selectionEnd: l + d.length };
2563
+ }, Ea = () => (e, n) => {
2350
2564
  if (typeof KeyboardEvent > "u" || !(n instanceof KeyboardEvent) || n.key !== "Enter")
2351
2565
  return;
2352
- const { value: l, selectionStart: s, selectionEnd: t } = e;
2353
- if (s !== t)
2566
+ const { value: o, selectionStart: l, selectionEnd: t } = e;
2567
+ if (l !== t)
2354
2568
  return;
2355
- const r = l.lastIndexOf(`
2356
- `, s - 1) + 1, c = l.indexOf(`
2357
- `, s), d = c === -1 ? l.length : c;
2358
- if (l.slice(s, d).trim().length > 0)
2569
+ const r = o.lastIndexOf(`
2570
+ `, l - 1) + 1, c = o.indexOf(`
2571
+ `, l), d = c === -1 ? o.length : c;
2572
+ if (o.slice(l, d).trim().length > 0)
2359
2573
  return;
2360
- const i = l.substring(r, d).trimEnd();
2361
- if (i.endsWith(";") || i.length === 0)
2574
+ const a = o.substring(r, d).trimEnd();
2575
+ if (a.endsWith(";") || a.length === 0)
2362
2576
  return;
2363
- const u = l.slice(0, d) + ";" + l.slice(d), f = s + 1;
2577
+ const u = o.slice(0, d) + ";" + o.slice(d), p = l + 1;
2364
2578
  return {
2365
2579
  value: u,
2366
- selectionStart: f,
2367
- selectionEnd: f
2580
+ selectionStart: p,
2581
+ selectionEnd: p
2368
2582
  };
2369
2583
  };
2370
- let ze = [], W = null, K = 0, X = [], ee = null, te = null, Ve, Je, G = null, se = null;
2371
- const no = (e) => {
2372
- const { customSuggestions: n = [], minPrefixLength: l = 1, maxSuggestions: s = 20, tabSize: t = 2, tooltip: r = { enabled: !0 }, i18n: c, renderMenu: d, renderTooltip: m } = e;
2584
+ let ze = [], W = null, F = 0, X = [], te = null, ne = null, Ve, Je, G = null, le = null;
2585
+ const Ba = (e) => {
2586
+ const { customSuggestions: n = [], minPrefixLength: o = 1, maxSuggestions: l = 20, tabSize: t = 2, tooltip: r = { enabled: !0 }, i18n: c, renderMenu: d, renderTooltip: m } = e;
2373
2587
  if (!d || !m)
2374
2588
  throw new Error("renderMenu and renderTooltip are required");
2375
- return ze = [...n].map((a) => c(a)), Ve = d, Je = m, (a, i) => {
2376
- if (typeof KeyboardEvent > "u" || !(i instanceof KeyboardEvent))
2589
+ return ze = [...n].map((i) => c(i)), Ve = d, Je = m, (i, a) => {
2590
+ if (typeof KeyboardEvent > "u" || !(a instanceof KeyboardEvent))
2377
2591
  return;
2378
- const { value: u, selectionStart: f } = a, b = i.target;
2379
- if (te = b, r.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
2592
+ const { value: u, selectionStart: p } = i, b = a.target;
2593
+ if (ne = b, r.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
2380
2594
  setTimeout(() => Me(b), 100);
2381
2595
  }), b.addEventListener("keyup", () => {
2382
2596
  setTimeout(() => Me(b), 100);
2383
2597
  })), W) {
2384
- switch (i.key) {
2598
+ switch (a.key) {
2385
2599
  case "ArrowDown":
2386
- return i.preventDefault(), K < X.length - 1 && (K++, ne()), { ...a };
2600
+ return a.preventDefault(), F < X.length - 1 && (F++, se()), { ...i };
2387
2601
  case "ArrowUp":
2388
- return i.preventDefault(), K > 0 && (K--, ne()), { ...a };
2602
+ return a.preventDefault(), F > 0 && (F--, se()), { ...i };
2389
2603
  case "Enter":
2390
- if (i.preventDefault(), X[K]) {
2391
- const h = ye(a, X[K]);
2604
+ if (a.preventDefault(), X[F]) {
2605
+ const h = xe(i, X[F]);
2392
2606
  return Y(), h;
2393
2607
  }
2394
2608
  return;
2395
2609
  case "Tab":
2396
- if (i.preventDefault(), X[K]) {
2397
- const h = ye(a, X[K]);
2610
+ if (a.preventDefault(), X[F]) {
2611
+ const h = xe(i, X[F]);
2398
2612
  return Y(), h;
2399
2613
  }
2400
2614
  return;
2401
2615
  case "Escape":
2402
- return i.preventDefault(), Y(), { ...a };
2616
+ return a.preventDefault(), Y(), { ...i };
2403
2617
  case "Backspace":
2404
2618
  setTimeout(() => {
2405
- if (te) {
2406
- const h = te.value, y = te.selectionStart, z = fe(h, y), T = h.slice(z, y);
2407
- if (T.length < l)
2619
+ if (ne) {
2620
+ const h = ne.value, _ = ne.selectionStart, V = ve(h, _), L = h.slice(V, _);
2621
+ if (L.length < o)
2408
2622
  Y();
2409
2623
  else {
2410
- const w = xe(T).slice(0, s);
2411
- w.length === 0 ? Y() : (X = w, K = 0, ne());
2624
+ const w = ye(L).slice(0, l);
2625
+ w.length === 0 ? Y() : (X = w, F = 0, se());
2412
2626
  }
2413
2627
  }
2414
2628
  }, 0);
2415
2629
  return;
2416
2630
  }
2417
- if (["ArrowDown", "ArrowUp", "Enter", "Tab", "Escape", "Backspace"].includes(i.key))
2418
- return { ...a };
2631
+ if (["ArrowDown", "ArrowUp", "Enter", "Tab", "Escape", "Backspace"].includes(a.key))
2632
+ return { ...i };
2419
2633
  }
2420
- if (re("tab", i)) {
2421
- i.preventDefault();
2422
- const h = fe(u, f), y = u.slice(h, f);
2423
- if (y.length > 0) {
2424
- const P = xe(y);
2425
- if (P.length > 0)
2426
- return ye(a, P[0]);
2634
+ if (de("tab", a)) {
2635
+ a.preventDefault();
2636
+ const h = ve(u, p), _ = u.slice(h, p);
2637
+ if (_.length > 0) {
2638
+ const N = ye(_);
2639
+ if (N.length > 0)
2640
+ return xe(i, N[0]);
2427
2641
  }
2428
- const z = " ".repeat(t), T = u.slice(0, f) + z + u.slice(f), w = f + t;
2642
+ const V = " ".repeat(t), L = u.slice(0, p) + V + u.slice(p), w = p + t;
2429
2643
  return {
2430
- value: T,
2644
+ value: L,
2431
2645
  selectionStart: w,
2432
2646
  selectionEnd: w
2433
2647
  };
2434
2648
  }
2435
- if (!(i.key.length !== 1 || i.ctrlKey || i.metaKey || i.altKey))
2436
- return ee && clearTimeout(ee), ee = setTimeout(() => {
2437
- ee = null;
2438
- const h = b.value, y = b.selectionStart, z = fe(h, y), T = h.slice(z, y);
2439
- if (T.length < l) {
2649
+ if (!(a.key.length !== 1 || a.ctrlKey || a.metaKey || a.altKey))
2650
+ return te && clearTimeout(te), te = setTimeout(() => {
2651
+ te = null;
2652
+ const h = b.value, _ = b.selectionStart, V = ve(h, _), L = h.slice(V, _);
2653
+ if (L.length < o) {
2440
2654
  Y();
2441
2655
  return;
2442
2656
  }
2443
- let w = xe(T);
2444
- if (w = w.slice(0, s), w.length === 0) {
2657
+ let w = ye(L);
2658
+ if (w = w.slice(0, l), w.length === 0) {
2445
2659
  Y();
2446
2660
  return;
2447
2661
  }
2448
- X = w, K = 0, W ? ne() : so(b, w);
2449
- }, 0), { ...a };
2662
+ X = w, F = 0, W ? se() : Ma(b, w);
2663
+ }, 0), { ...i };
2450
2664
  };
2451
2665
  };
2452
- function xe(e) {
2666
+ function ye(e) {
2453
2667
  const n = e.toLowerCase();
2454
- return ze.filter((l) => {
2455
- const s = l.label.toLowerCase();
2456
- return s.startsWith(n) || s.includes(n) || s.split("_").map((t) => t[0]).join("").startsWith(n);
2457
- }).sort((l, s) => {
2458
- const t = l.label.toLowerCase(), r = s.label.toLowerCase(), c = t.startsWith(n), d = r.startsWith(n);
2668
+ return ze.filter((o) => {
2669
+ const l = o.label.toLowerCase();
2670
+ return l.startsWith(n) || l.includes(n) || l.split("_").map((t) => t[0]).join("").startsWith(n);
2671
+ }).sort((o, l) => {
2672
+ const t = o.label.toLowerCase(), r = l.label.toLowerCase(), c = t.startsWith(n), d = r.startsWith(n);
2459
2673
  if (c && !d) return -1;
2460
2674
  if (!c && d) return 1;
2461
- const m = t.indexOf(n), a = r.indexOf(n);
2462
- return m !== a ? m - a : t.length !== r.length ? t.length - r.length : t.localeCompare(r);
2675
+ const m = t.indexOf(n), i = r.indexOf(n);
2676
+ return m !== i ? m - i : t.length !== r.length ? t.length - r.length : t.localeCompare(r);
2463
2677
  });
2464
2678
  }
2465
- function fe(e, n) {
2466
- let l = n;
2467
- for (; l > 0 && /[a-zA-Z0-9_$]/.test(e[l - 1]); )
2468
- l--;
2469
- return l;
2679
+ function ve(e, n) {
2680
+ let o = n;
2681
+ for (; o > 0 && /[a-zA-Z0-9_$]/.test(e[o - 1]); )
2682
+ o--;
2683
+ return o;
2470
2684
  }
2471
- function so(e, n) {
2472
- Y(), X = n, K = 0;
2473
- const l = Ze(e);
2474
- W = Ve(n, K, (s) => {
2475
- K = s, ne();
2685
+ function Ma(e, n) {
2686
+ Y(), X = n, F = 0;
2687
+ const o = Ze(e);
2688
+ W = Ve(n, F, (l) => {
2689
+ F = l, se();
2476
2690
  }), Object.assign(W.style, {
2477
2691
  position: "fixed",
2478
- left: `${l.left}px`,
2479
- top: `${l.top + 24}px`,
2692
+ left: `${o.left}px`,
2693
+ top: `${o.top + 24}px`,
2480
2694
  zIndex: "10000"
2481
2695
  }), document.body.appendChild(W);
2482
2696
  }
2483
- function ne() {
2484
- if (!W || !te) return;
2485
- const e = Ve(X, K, (l) => {
2486
- K = l, ne();
2697
+ function se() {
2698
+ if (!W || !ne) return;
2699
+ const e = Ve(X, F, (o) => {
2700
+ F = o, se();
2487
2701
  }), n = W.getBoundingClientRect();
2488
2702
  W.replaceWith(e), W = e, Object.assign(W.style, {
2489
2703
  position: "fixed",
@@ -2492,36 +2706,36 @@ function ne() {
2492
2706
  zIndex: "10000"
2493
2707
  });
2494
2708
  }
2495
- function ye(e, n) {
2496
- const { value: l, selectionStart: s } = e, t = fe(l, s), r = n.insert || n.label, c = /\$\{([^}]*)\}/g;
2709
+ function xe(e, n) {
2710
+ const { value: o, selectionStart: l } = e, t = ve(o, l), r = n.insert || n.label, c = /\$\{([^}]*)\}/g;
2497
2711
  let d = r;
2498
2712
  const m = [];
2499
- let a;
2500
- for (; (a = c.exec(r)) !== null; ) {
2501
- const h = a[1], y = a.index, z = a[0].length;
2502
- m.push({ index: y, text: h, length: z });
2713
+ let i;
2714
+ for (; (i = c.exec(r)) !== null; ) {
2715
+ const h = i[1], _ = i.index, V = i[0].length;
2716
+ m.push({ index: _, text: h, length: V });
2503
2717
  }
2504
2718
  d = r.replace(/\$\{([^}]*)\}/g, "$1");
2505
- const i = m[0];
2506
- let u = t + d.length, f = t + d.length;
2507
- if (i) {
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++);
2719
+ const a = m[0];
2720
+ let u = t + d.length, p = t + d.length;
2721
+ if (a) {
2722
+ let h = 0, _ = 0, V = !1;
2723
+ for (; _ < r.length && !V; ) {
2724
+ const L = m.find((w) => w.index === _);
2725
+ L ? (h += L.text.length, _ += L.length, L === a && (u = t + h - L.text.length, p = t + h, V = !0)) : (h++, _++);
2512
2726
  }
2513
2727
  }
2514
2728
  return {
2515
- value: l.slice(0, t) + d + l.slice(s),
2729
+ value: o.slice(0, t) + d + o.slice(l),
2516
2730
  selectionStart: u,
2517
- selectionEnd: f
2731
+ selectionEnd: p
2518
2732
  };
2519
2733
  }
2520
2734
  function Y() {
2521
- ee && (clearTimeout(ee), ee = null), W && (W.remove(), W = null, X = [], K = 0, te = null);
2735
+ te && (clearTimeout(te), te = null), W && (W.remove(), W = null, X = [], F = 0, ne = null);
2522
2736
  }
2523
2737
  function Ze(e) {
2524
- const n = e.getBoundingClientRect(), { value: l, selectionStart: s } = e, r = l.substring(0, s).split(`
2738
+ const n = e.getBoundingClientRect(), { value: o, selectionStart: l } = e, r = o.substring(0, l).split(`
2525
2739
  `), c = r.length, d = r[r.length - 1] || "", m = parseInt(getComputedStyle(e).lineHeight) || 20;
2526
2740
  return {
2527
2741
  left: n.left + 10 + d.length * 8,
@@ -2529,57 +2743,57 @@ function Ze(e) {
2529
2743
  };
2530
2744
  }
2531
2745
  function Me(e) {
2532
- se && clearTimeout(se), se = setTimeout(() => {
2533
- const n = e.selectionStart, l = e.selectionEnd;
2534
- if (n === l) {
2535
- ie();
2746
+ le && clearTimeout(le), le = setTimeout(() => {
2747
+ const n = e.selectionStart, o = e.selectionEnd;
2748
+ if (n === o) {
2749
+ re();
2536
2750
  return;
2537
2751
  }
2538
- const s = e.value.substring(n, l).trim();
2539
- if (!s) {
2540
- ie();
2752
+ const l = e.value.substring(n, o).trim();
2753
+ if (!l) {
2754
+ re();
2541
2755
  return;
2542
2756
  }
2543
- const t = ze.find((d) => d.label === s);
2757
+ const t = ze.find((d) => d.label === l);
2544
2758
  if (!t) {
2545
- ie();
2759
+ re();
2546
2760
  return;
2547
2761
  }
2548
2762
  const r = Ze(e), c = Je(t, r);
2549
2763
  c.style.opacity = "0", G && G.remove(), G = c, document.body.appendChild(G), requestAnimationFrame(() => {
2550
2764
  G && (G.style.opacity = "1");
2551
- }), setTimeout(() => ie(), 3e3);
2765
+ }), setTimeout(() => re(), 3e3);
2552
2766
  }, 300);
2553
2767
  }
2554
- function ie() {
2555
- se && (clearTimeout(se), se = null), G && (G.style.opacity = "0", setTimeout(() => {
2768
+ function re() {
2769
+ le && (clearTimeout(le), le = null), G && (G.style.opacity = "0", setTimeout(() => {
2556
2770
  G && (G.remove(), G = null);
2557
2771
  }, 150));
2558
2772
  }
2559
2773
  typeof document < "u" && document.addEventListener("mousedown", (e) => {
2560
2774
  const n = e.target;
2561
- W && !W.contains(n) && Y(), G && !G.contains(n) && ie();
2775
+ W && !W.contains(n) && Y(), G && !G.contains(n) && re();
2562
2776
  });
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)|([;:(){}])`;
2777
+ const _e = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "&gt;"), Aa = ["else", "end", "call", "fade"], Da = (e) => e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), Pa = (e) => {
2778
+ 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([...Aa, ...n])).map(Da).join("|")})\\b)|(\\$[a-zA-Z_][a-zA-Z0-9_]*)|(\\b(?:btn_\\d+(?:_\\d+)?)\\b)|([;:(){}])`;
2565
2779
  return new RegExp(c, "g");
2566
- }, io = (e) => (n) => {
2567
- const l = ao(e);
2568
- let s = "", t = 0;
2569
- for (const r of n.matchAll(l)) {
2570
- const [c, d, m, a, i, u, f, b] = r;
2780
+ }, Ia = (e) => (n) => {
2781
+ const o = Pa(e);
2782
+ let l = "", t = 0;
2783
+ for (const r of n.matchAll(o)) {
2784
+ const [c, d, m, i, a, u, p, b] = r;
2571
2785
  let h = "";
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;
2786
+ d ? h = "comment" : m ? h = "str" : i ? h = "num" : a ? h = "word" : u ? h = "var" : p ? h = "event" : b && (h = "operator"), l += _e(n.slice(t, r.index)), l += `<span class="tok--${h}">${_e(c)}</span>`, t = r.index + c.length;
2573
2787
  }
2574
- return s += _e(n.slice(t)), s;
2788
+ return l += _e(n.slice(t)), l;
2575
2789
  }, Xe = {
2576
2790
  word: "text-blue-600 dark:text-blue-400",
2577
2791
  func: "text-yellow-600 dark:text-yellow-400",
2578
2792
  var: "text-cyan-600 dark:text-cyan-400",
2579
2793
  event: "text-purple-600 dark:text-purple-400"
2580
- }, ro = (e, n, l) => {
2581
- const s = document.createElement("div");
2582
- return s.className = `
2794
+ }, ja = (e, n, o) => {
2795
+ const l = document.createElement("div");
2796
+ return l.className = `
2583
2797
  fixed z-[10000] min-w-[250px] max-w-[400px] max-h-[250px]
2584
2798
  overflow-y-auto p-1 rounded-lg shadow-lg border
2585
2799
  border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800
@@ -2598,28 +2812,28 @@ const _e = (e) => e.replace(/&/g, "&amp;").replace(/</g, "&lt;").replace(/>/g, "
2598
2812
  ${t.detail ? `<span class="text-xs text-gray-500 dark:text-gray-400 ml-2">${t.detail}</span>` : ""}
2599
2813
  </div>
2600
2814
  ${t.description ? `<span class="text-xs text-gray-400 dark:text-gray-500">${t.description}</span>` : ""}
2601
- `, d.addEventListener("click", () => l(r)), s.appendChild(d);
2602
- }), s;
2603
- }, co = (e, n) => {
2604
- const l = document.createElement("div");
2605
- l.className = `
2815
+ `, d.addEventListener("click", () => o(r)), l.appendChild(d);
2816
+ }), l;
2817
+ }, Ha = (e, n) => {
2818
+ const o = document.createElement("div");
2819
+ o.className = `
2606
2820
  fixed z-[10001] px-3 py-2 font-mono text-sm max-w-[300px]
2607
2821
  min-w-[50px] min-h-[20px] rounded-lg shadow-lg border
2608
2822
  pointer-events-none transition-opacity duration-150
2609
2823
  bg-white dark:bg-gray-800 border-gray-200 dark:border-gray-700
2610
2824
  text-gray-700 dark:text-gray-300 pointer-events-none
2611
- `, l.style.cssText = `
2825
+ `, o.style.cssText = `
2612
2826
  left: ${n.left + 40}px; top: ${n.top - 10}px;
2613
2827
  transform: translateX(-50%) translateY(-100%); opacity: 0;
2614
2828
  `;
2615
2829
  let t = `<div class="font-medium ${Xe[e.type] || "text-gray-700 dark:text-gray-300"}">${e.label}</div>`;
2616
- e.detail && (t += `<div class="text-gray-500 dark:text-gray-400 mt-0.5 text-xs">${e.detail}</div>`), e.description && (t += `<div class="text-gray-400 dark:text-gray-500 text-xs mt-1 pt-1 border-t border-gray-200 dark:border-gray-700">${e.description}</div>`), l.innerHTML = t;
2830
+ e.detail && (t += `<div class="text-gray-500 dark:text-gray-400 mt-0.5 text-xs">${e.detail}</div>`), e.description && (t += `<div class="text-gray-400 dark:text-gray-500 text-xs mt-1 pt-1 border-t border-gray-200 dark:border-gray-700">${e.description}</div>`), o.innerHTML = t;
2617
2831
  const r = document.createElement("div");
2618
2832
  return r.className = `
2619
2833
  absolute bottom-[-6px] left-1/2 w-2.5 h-2.5 -translate-x-1/2 rotate-45
2620
2834
  bg-white dark:bg-gray-800 border-r border-b border-gray-200 dark:border-gray-700
2621
- `, l.appendChild(r), l;
2622
- }, uo = [
2835
+ `, o.appendChild(r), o;
2836
+ }, Na = [
2623
2837
  { label: "if", type: "word", insert: `if:\${$v0<10};
2624
2838
 
2625
2839
  else;
@@ -2654,7 +2868,7 @@ end;`, detail: "event(name: string)" },
2654
2868
  { label: "$e", type: "var", insert: "$e${0}", detail: "var event" },
2655
2869
  { label: "$c", type: "var", insert: "$c${0}", detail: "var call" },
2656
2870
  { label: "$p", type: "var", insert: "$p${0}", detail: "gpio" }
2657
- ], Ca = /* @__PURE__ */ S({
2871
+ ], ni = /* @__PURE__ */ S({
2658
2872
  __name: "ScriptEditor",
2659
2873
  props: {
2660
2874
  modelValue: {},
@@ -2662,23 +2876,23 @@ end;`, detail: "event(name: string)" },
2662
2876
  },
2663
2877
  emits: ["update:modelValue", "update"],
2664
2878
  setup(e, { emit: n }) {
2665
- const l = n;
2666
- let s;
2667
- const t = [...uo, ...e.suggestions];
2879
+ const o = n;
2880
+ let l;
2881
+ const t = [...Na, ...e.suggestions];
2668
2882
  return oe(
2669
2883
  () => e.modelValue,
2670
2884
  (r) => {
2671
- s.update({ value: r });
2885
+ l.update({ value: r });
2672
2886
  }
2673
- ), Q(() => {
2674
- s = new Zl("#editor", {
2887
+ ), ee(() => {
2888
+ l = new Sa("#editor", {
2675
2889
  value: e.modelValue,
2676
2890
  lineNumbers: !0,
2677
- highlighters: [io(t)],
2891
+ highlighters: [Ia(t)],
2678
2892
  plugins: [
2679
- Ql(),
2680
- eo(),
2681
- no({
2893
+ Ta(),
2894
+ La(),
2895
+ Ba({
2682
2896
  customSuggestions: t,
2683
2897
  minPrefixLength: 1,
2684
2898
  maxSuggestions: 20,
@@ -2686,42 +2900,42 @@ end;`, detail: "event(name: string)" },
2686
2900
  tooltip: {
2687
2901
  enabled: !0
2688
2902
  },
2689
- renderMenu: ro,
2690
- renderTooltip: co
2903
+ renderMenu: ja,
2904
+ renderTooltip: Ha
2691
2905
  }),
2692
- to()
2906
+ Ea()
2693
2907
  ],
2694
2908
  styles: { fontSize: "14px" }
2695
- }), s.onUpdate((r) => {
2696
- l("update:modelValue", r);
2909
+ }), l.onUpdate((r) => {
2910
+ o("update:modelValue", r);
2697
2911
  });
2698
2912
  }), ke(() => {
2699
- s.destroy();
2700
- }), (r, c) => (p(), v("div", null, [...c[0] || (c[0] = [
2701
- o("div", {
2913
+ l.destroy();
2914
+ }), (r, c) => (f(), v("div", null, [...c[0] || (c[0] = [
2915
+ s("div", {
2702
2916
  class: "",
2703
2917
  id: "editor"
2704
2918
  }, null, -1)
2705
2919
  ])]));
2706
2920
  }
2707
- }), mo = { class: "max-w-4xl mx-auto" }, po = {
2921
+ }), Oa = { class: "max-w-4xl mx-auto" }, Fa = {
2708
2922
  key: 0,
2709
2923
  class: "text-sm"
2710
- }, fo = {
2924
+ }, Ka = {
2711
2925
  key: 0,
2712
2926
  class: "text-gray-500"
2713
- }, vo = {
2927
+ }, Ra = {
2714
2928
  key: 1,
2715
2929
  class: "text-red-600"
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({
2930
+ }, Ua = ["innerHTML"], Wa = "https://raw.githubusercontent.com/bondrogeen/vuesp/refs/heads/master/github/docs/scriptrunner/", qa = "https://cdn.jsdelivr.net/npm/marked/lib/marked.umd.js", si = /* @__PURE__ */ S({
2717
2931
  __name: "ScriptViewDocs",
2718
2932
  props: {
2719
2933
  lang: { default: "en" }
2720
2934
  },
2721
2935
  setup(e) {
2722
- const n = L(""), l = L(""), s = L(null), t = L(!1), r = L(null);
2936
+ const n = M(""), o = M(""), l = M(null), t = M(!1), r = M(null);
2723
2937
  let c = null;
2724
- const d = () => new Promise((i, u) => {
2938
+ const d = () => new Promise((a, u) => {
2725
2939
  if (typeof window > "u" || typeof document > "u") {
2726
2940
  u(new Error("Markdown loading is available only in a browser"));
2727
2941
  return;
@@ -2731,22 +2945,22 @@ end;`, detail: "event(name: string)" },
2731
2945
  gfm: !0,
2732
2946
  breaks: !0,
2733
2947
  headerIds: !1
2734
- }), i(window.marked);
2948
+ }), a(window.marked);
2735
2949
  return;
2736
2950
  }
2737
- const f = document.createElement("script");
2738
- f.src = bo, f.async = !0, f.onload = () => {
2951
+ const p = document.createElement("script");
2952
+ p.src = qa, p.async = !0, p.onload = () => {
2739
2953
  window.marked ? (window.marked.setOptions({
2740
2954
  gfm: !0,
2741
2955
  breaks: !0,
2742
2956
  headerIds: !1
2743
- }), i(window.marked)) : u(new Error("Marked library not found after loading"));
2744
- }, f.onerror = () => {
2957
+ }), a(window.marked)) : u(new Error("Marked library not found after loading"));
2958
+ }, p.onerror = () => {
2745
2959
  u(new Error("Failed to load Marked library from CDN"));
2746
- }, document.head.appendChild(f);
2747
- }), m = (i) => {
2748
- const u = i.split(`
2749
- `), f = {};
2960
+ }, document.head.appendChild(p);
2961
+ }), m = (a) => {
2962
+ const u = a.split(`
2963
+ `), p = {};
2750
2964
  let b = !0;
2751
2965
  for (const h of u) {
2752
2966
  if (b && h.startsWith("#")) {
@@ -2754,102 +2968,102 @@ end;`, detail: "event(name: string)" },
2754
2968
  continue;
2755
2969
  }
2756
2970
  if (b && h.includes(":")) {
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));
2971
+ const [_, V] = h.split(":").map((L) => L.trim());
2972
+ _ && V && (_.toLowerCase().includes("version") && (p.version = V), (_.toLowerCase().includes("обновлено") || _.toLowerCase().includes("updated")) && (p.updated = V));
2759
2973
  }
2760
2974
  }
2761
- return f;
2762
- }, a = async (i) => {
2975
+ return p;
2976
+ }, i = async (a) => {
2763
2977
  if (!c) {
2764
2978
  r.value = "error";
2765
2979
  return;
2766
2980
  }
2767
- t.value = !0, r.value = null, l.value = "";
2981
+ t.value = !0, r.value = null, o.value = "";
2768
2982
  try {
2769
- const u = `${go}${i}.md`, f = await fetch(u);
2770
- if (!f.ok)
2771
- throw new Error(`HTTP ${f.status}: ${f.statusText}`);
2772
- const b = await f.text();
2773
- n.value = b, s.value = m(b), l.value = c.parse(b);
2983
+ const u = `${Wa}${a}.md`, p = await fetch(u);
2984
+ if (!p.ok)
2985
+ throw new Error(`HTTP ${p.status}: ${p.statusText}`);
2986
+ const b = await p.text();
2987
+ n.value = b, l.value = m(b), o.value = c.parse(b);
2774
2988
  } catch (u) {
2775
- const f = u instanceof Error ? u.message : "";
2776
- r.value = f, console.error("Error loading docs:", u);
2989
+ const p = u instanceof Error ? u.message : "";
2990
+ r.value = p, console.error("Error loading docs:", u);
2777
2991
  } finally {
2778
2992
  t.value = !1;
2779
2993
  }
2780
2994
  };
2781
- return Q(async () => {
2995
+ return ee(async () => {
2782
2996
  try {
2783
2997
  c = await d();
2784
- const i = e.lang ? "ru" : "en";
2785
- await a(i);
2786
- } catch (i) {
2787
- const u = i instanceof Error ? i.message : "";
2788
- r.value = u, console.error("Initialization error:", i);
2998
+ const a = e.lang ? "ru" : "en";
2999
+ await i(a);
3000
+ } catch (a) {
3001
+ const u = a instanceof Error ? a.message : "";
3002
+ r.value = u, console.error("Initialization error:", a);
2789
3003
  }
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),
2795
- o("div", {
3004
+ }), (a, u) => (f(), v("div", Oa, [
3005
+ t.value || r.value ? (f(), v("div", Fa, [
3006
+ t.value ? (f(), v("span", Ka, "⏳")) : T("", !0),
3007
+ r.value ? (f(), v("span", Ra, "❌ " + x(r.value), 1)) : T("", !0)
3008
+ ])) : T("", !0),
3009
+ s("div", {
2796
3010
  class: "docs-content",
2797
- innerHTML: l.value
2798
- }, null, 8, ho)
3011
+ innerHTML: o.value
3012
+ }, null, 8, Ua)
2799
3013
  ]));
2800
3014
  }
2801
- }), xo = { class: "my-4" }, za = /* @__PURE__ */ S({
3015
+ }), Ga = { class: "my-4" }, li = /* @__PURE__ */ S({
2802
3016
  __name: "ScriptDialog",
2803
3017
  props: {
2804
3018
  idScript: {}
2805
3019
  },
2806
3020
  emits: ["add", "close"],
2807
3021
  setup(e, { emit: n }) {
2808
- const l = n, { defineField: s, handleSubmit: t, isValid: r } = _t({
3022
+ const o = n, { defineField: l, handleSubmit: t, isValid: r } = $t({
2809
3023
  validationSchema: () => ({
2810
- name: [$t, kt(8)]
3024
+ name: [kt, wt(8)]
2811
3025
  })
2812
- }), [c, d] = s("name"), m = () => {
2813
- l("add", c.value);
2814
- }, a = t(() => {
2815
- m(), c.value = "", l("close", new Event("close"));
3026
+ }), [c, d] = l("name"), m = () => {
3027
+ o("add", c.value);
3028
+ }, i = t(() => {
3029
+ m(), c.value = "", o("close", new Event("close"));
2816
3030
  });
2817
- return Q(() => {
3031
+ return ee(() => {
2818
3032
  e.idScript || (c.value = "boot");
2819
- }), (i, u) => {
2820
- const f = J, b = A;
2821
- return p(), v("div", xo, [
2822
- g(f, H({
3033
+ }), (a, u) => {
3034
+ const p = J, b = A;
3035
+ return f(), v("div", Ga, [
3036
+ g(p, H({
2823
3037
  modelValue: q(c),
2824
- "onUpdate:modelValue": u[0] || (u[0] = (h) => ot(c) ? c.value = h : null)
3038
+ "onUpdate:modelValue": u[0] || (u[0] = (h) => at(c) ? c.value = h : null)
2825
3039
  }, q(d), {
2826
3040
  disabled: !e.idScript,
2827
- label: i.$t("name")
3041
+ label: a.$t("name")
2828
3042
  }), null, 16, ["modelValue", "disabled", "label"]),
2829
3043
  g(b, {
2830
3044
  class: "w-full",
2831
3045
  color: "blue",
2832
3046
  disabled: !q(r),
2833
- onClick: q(a)
3047
+ onClick: q(i)
2834
3048
  }, {
2835
- default: x(() => [
2836
- j(_(i.$t("add")), 1)
3049
+ default: y(() => [
3050
+ D(x(a.$t("add")), 1)
2837
3051
  ]),
2838
3052
  _: 1
2839
3053
  }, 8, ["disabled", "onClick"])
2840
3054
  ]);
2841
3055
  };
2842
3056
  }
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 = {
3057
+ }), Ja = ["aria-label"], Za = { class: "hidden lg:inline" }, Xa = ["aria-label"], Ya = { class: "flex items-center gap-3 border-b border-gray-200/70 px-4 dark:border-white/10" }, Qa = ["placeholder"], eo = { class: "max-h-[55vh] overflow-y-auto p-2" }, to = ["href"], no = { class: "min-w-0" }, so = { class: "flex flex-wrap items-baseline gap-2" }, lo = { class: "text-sm font-medium text-gray-900 dark:text-white" }, ao = {
2844
3058
  key: 0,
2845
3059
  class: "text-[10px] uppercase tracking-wider text-gray-400"
2846
- }, Lo = {
3060
+ }, oo = {
2847
3061
  key: 0,
2848
3062
  class: "mt-0.5 block truncate text-xs text-gray-500 dark:text-gray-400"
2849
- }, Bo = {
3063
+ }, io = {
2850
3064
  key: 0,
2851
3065
  class: "px-4 py-10 text-center text-sm text-gray-500 dark:text-gray-400"
2852
- }, Va = /* @__PURE__ */ S({
3066
+ }, ai = /* @__PURE__ */ S({
2853
3067
  __name: "VisionSearch",
2854
3068
  props: {
2855
3069
  items: {},
@@ -2859,97 +3073,97 @@ end;`, detail: "event(name: string)" },
2859
3073
  emptyText: { default: "Ничего не найдено. Попробуйте другой запрос." }
2860
3074
  },
2861
3075
  setup(e) {
2862
- const n = e, l = L(!1), s = L(""), t = L(null), r = M(() => {
2863
- const a = s.value.trim().toLowerCase();
2864
- return (a ? n.items.filter((u) => `${u.title} ${u.description ?? ""} ${u.group ?? ""}`.toLowerCase().includes(a)) : n.items).slice(0, 14);
3076
+ const n = e, o = M(!1), l = M(""), t = M(null), r = B(() => {
3077
+ const i = l.value.trim().toLowerCase();
3078
+ return (i ? n.items.filter((u) => `${u.title} ${u.description ?? ""} ${u.group ?? ""}`.toLowerCase().includes(i)) : n.items).slice(0, 14);
2865
3079
  }), c = async () => {
2866
- var a;
2867
- l.value = !0, s.value = "", await He(), (a = t.value) == null || a.focus();
3080
+ var i;
3081
+ o.value = !0, l.value = "", await je(), (i = t.value) == null || i.focus();
2868
3082
  }, d = () => {
2869
- l.value = !1, s.value = "";
2870
- }, m = (a) => {
2871
- if ((a.metaKey || a.ctrlKey) && a.key.toLowerCase() === "k") {
2872
- a.preventDefault(), l.value ? d() : c();
3083
+ o.value = !1, l.value = "";
3084
+ }, m = (i) => {
3085
+ if ((i.metaKey || i.ctrlKey) && i.key.toLowerCase() === "k") {
3086
+ i.preventDefault(), o.value ? d() : c();
2873
3087
  return;
2874
3088
  }
2875
- a.key === "Escape" && l.value && d();
3089
+ i.key === "Escape" && o.value && d();
2876
3090
  };
2877
- return oe(l, (a) => {
2878
- typeof document < "u" && (document.body.style.overflow = a ? "hidden" : "");
2879
- }), Q(() => window.addEventListener("keydown", m)), ke(() => {
3091
+ return oe(o, (i) => {
3092
+ typeof document < "u" && (document.body.style.overflow = i ? "hidden" : "");
3093
+ }), ee(() => window.addEventListener("keydown", m)), ke(() => {
2880
3094
  window.removeEventListener("keydown", m), typeof document < "u" && (document.body.style.overflow = "");
2881
- }), (a, i) => (p(), v(B, null, [
2882
- o("button", {
3095
+ }), (i, a) => (f(), v(E, null, [
3096
+ s("button", {
2883
3097
  type: "button",
2884
3098
  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",
2885
3099
  "aria-label": e.label,
2886
3100
  onClick: c
2887
3101
  }, [
2888
- g(me, {
3102
+ g(Q, {
2889
3103
  name: "search",
2890
3104
  size: 17
2891
3105
  }),
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" }, [
2896
- l.value ? (p(), v("div", {
3106
+ s("span", Za, x(e.label), 1),
3107
+ a[1] || (a[1] = s("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))
3108
+ ], 8, Ja),
3109
+ (f(), I(ot, { to: "body" }, [
3110
+ o.value ? (f(), v("div", {
2897
3111
  key: 0,
2898
3112
  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",
2899
- onClick: R(d, ["self"])
3113
+ onClick: U(d, ["self"])
2900
3114
  }, [
2901
- o("div", {
3115
+ s("div", {
2902
3116
  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
3117
  role: "dialog",
2904
3118
  "aria-modal": "true",
2905
3119
  "aria-label": e.dialogLabel
2906
3120
  }, [
2907
- o("div", ko, [
2908
- g(me, {
3121
+ s("div", Ya, [
3122
+ g(Q, {
2909
3123
  name: "search",
2910
3124
  size: 18,
2911
3125
  class: "shrink-0 text-gray-400"
2912
3126
  }),
2913
- we(o("input", {
3127
+ we(s("input", {
2914
3128
  ref_key: "input",
2915
3129
  ref: t,
2916
- "onUpdate:modelValue": i[0] || (i[0] = (u) => s.value = u),
3130
+ "onUpdate:modelValue": a[0] || (a[0] = (u) => l.value = u),
2917
3131
  type: "search",
2918
3132
  placeholder: e.placeholder,
2919
3133
  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"
2920
- }, null, 8, wo), [
2921
- [je, s.value]
3134
+ }, null, 8, Qa), [
3135
+ [Ie, l.value]
2922
3136
  ]),
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))
3137
+ a[2] || (a[2] = s("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))
2924
3138
  ]),
2925
- o("div", Co, [
2926
- (p(!0), v(B, null, N(r.value, (u) => (p(), v("a", {
3139
+ s("div", eo, [
3140
+ (f(!0), v(E, null, j(r.value, (u) => (f(), v("a", {
2927
3141
  key: `${u.group}-${u.to}-${u.title}`,
2928
3142
  href: u.to,
2929
3143
  class: "flex items-start gap-3 rounded-md px-3 py-2.5 transition-colors hover:bg-white/50 dark:hover:bg-white/5",
2930
3144
  onClick: d
2931
3145
  }, [
2932
- g(me, {
3146
+ g(Q, {
2933
3147
  name: "arrowRight",
2934
3148
  size: 16,
2935
3149
  class: "mt-0.5 shrink-0 text-gray-400"
2936
3150
  }),
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)
3151
+ s("span", no, [
3152
+ s("span", so, [
3153
+ s("span", lo, x(u.title), 1),
3154
+ u.group ? (f(), v("span", ao, x(u.group), 1)) : T("", !0)
2941
3155
  ]),
2942
- u.description ? (p(), v("span", Lo, _(u.description), 1)) : V("", !0)
3156
+ u.description ? (f(), v("span", oo, x(u.description), 1)) : T("", !0)
2943
3157
  ])
2944
- ], 8, So))), 128)),
2945
- r.value.length ? V("", !0) : (p(), v("p", Bo, _(e.emptyText), 1))
3158
+ ], 8, to))), 128)),
3159
+ r.value.length ? T("", !0) : (f(), v("p", io, x(e.emptyText), 1))
2946
3160
  ])
2947
- ], 8, $o)
2948
- ])) : V("", !0)
3161
+ ], 8, Xa)
3162
+ ])) : T("", !0)
2949
3163
  ]))
2950
3164
  ], 64));
2951
3165
  }
2952
- }), Mo = ["aria-label", "title"], Ta = /* @__PURE__ */ S({
3166
+ }), ro = ["aria-label", "title"], oi = /* @__PURE__ */ S({
2953
3167
  __name: "VisionThemeToggle",
2954
3168
  props: {
2955
3169
  labelLight: { default: "Включить светлую тему" },
@@ -2958,25 +3172,25 @@ end;`, detail: "event(name: string)" },
2958
3172
  titleDark: { default: "Тёмная тема" }
2959
3173
  },
2960
3174
  setup(e) {
2961
- const n = L(ht("theme") === "light" ? "light" : "dark"), l = (s) => {
2962
- n.value = s, gt(s);
3175
+ const n = M(gt("theme") === "light" ? "light" : "dark"), o = (l) => {
3176
+ n.value = l, bt(l);
2963
3177
  };
2964
- return Q(async () => {
2965
- await He(), setTimeout(() => l(n.value), 0);
2966
- }), (s, t) => (p(), v("button", {
3178
+ return ee(async () => {
3179
+ await je(), setTimeout(() => o(n.value), 0);
3180
+ }), (l, t) => (f(), v("button", {
2967
3181
  type: "button",
2968
3182
  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",
2969
3183
  "aria-label": n.value === "dark" ? e.labelLight : e.labelDark,
2970
3184
  title: n.value === "dark" ? e.titleLight : e.titleDark,
2971
- onClick: t[0] || (t[0] = (r) => l(n.value === "dark" ? "light" : "dark"))
3185
+ onClick: t[0] || (t[0] = (r) => o(n.value === "dark" ? "light" : "dark"))
2972
3186
  }, [
2973
- g(me, {
3187
+ g(Q, {
2974
3188
  name: n.value === "dark" ? "sun" : "moon",
2975
3189
  size: 18
2976
3190
  }, null, 8, ["name"])
2977
- ], 8, Mo));
3191
+ ], 8, ro));
2978
3192
  }
2979
- }), Ea = /* @__PURE__ */ S({
3193
+ }), ii = /* @__PURE__ */ S({
2980
3194
  __name: "VAutocomplete",
2981
3195
  props: {
2982
3196
  modelValue: { default: "" },
@@ -2987,98 +3201,99 @@ end;`, detail: "event(name: string)" },
2987
3201
  },
2988
3202
  emits: ["update:modelValue", "select"],
2989
3203
  setup(e, { emit: n }) {
2990
- const l = n, s = (r) => l("update:modelValue", r), t = (r, c) => {
2991
- r.click(new Event("click")), l("select", c);
3204
+ const o = n, l = (r) => o("update:modelValue", r), t = (r, c) => {
3205
+ r.click(new Event("click")), o("select", c);
2992
3206
  };
2993
- return (r, c) => (p(), I(Ne, H(r.$attrs, {
3207
+ return (r, c) => (f(), I(Ne, H(r.$attrs, {
2994
3208
  top: "50px",
2995
3209
  "hide-on-click": ""
2996
3210
  }), {
2997
- activator: x(({ on: d }) => [
3211
+ activator: y(({ on: d }) => [
2998
3212
  g(J, {
2999
3213
  "model-value": e.modelValue,
3000
3214
  name: e.name,
3001
3215
  message: e.message,
3002
3216
  label: e.label,
3003
- "onUpdate:modelValue": s,
3217
+ "onUpdate:modelValue": l,
3004
3218
  onClick: d.open
3005
3219
  }, null, 8, ["model-value", "name", "message", "label", "onClick"])
3006
3220
  ]),
3007
- default: x(({ on: d }) => [
3221
+ default: y(({ on: d, isLgOrLarger: m }) => [
3008
3222
  g(Ce, {
3009
3223
  items: e.items,
3010
- onClick: (m) => t(d, m)
3224
+ plain: !m,
3225
+ onClick: (i) => t(d, i)
3011
3226
  }, {
3012
- default: x(({ item: m }) => [
3013
- k(r.$slots, "default", { item: m }, () => [
3014
- j(_(m.name), 1)
3227
+ default: y(({ item: i }) => [
3228
+ k(r.$slots, "default", { item: i }, () => [
3229
+ D(x(i.name), 1)
3015
3230
  ])
3016
3231
  ]),
3017
3232
  _: 3
3018
- }, 8, ["items", "onClick"])
3233
+ }, 8, ["items", "plain", "onClick"])
3019
3234
  ]),
3020
3235
  _: 3
3021
3236
  }, 16));
3022
3237
  }
3023
- }), Ao = {
3238
+ }), co = {
3024
3239
  viewBox: "0 0 24 24",
3025
3240
  width: "1.2em",
3026
3241
  height: "1.2em"
3027
3242
  };
3028
- function Do(e, n) {
3029
- return p(), v("svg", Ao, [...n[0] || (n[0] = [
3030
- o("path", {
3243
+ function uo(e, n) {
3244
+ return f(), v("svg", co, [...n[0] || (n[0] = [
3245
+ s("path", {
3031
3246
  fill: "currentColor",
3032
3247
  d: "m12 15l-4.243-4.242l1.415-1.414L12 12.172l2.828-2.828l1.415 1.414z"
3033
3248
  }, null, -1)
3034
3249
  ])]);
3035
3250
  }
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({
3251
+ const mo = O({ name: "ri-arrow-drop-down-line", render: uo }), fo = { class: "v-expansion__content max-h-0 overflow-hidden transition-all duration-300" }, po = { class: "p-4" }, ri = /* @__PURE__ */ S({
3037
3252
  __name: "VExpansion",
3038
3253
  props: {
3039
3254
  label: { default: "" },
3040
3255
  value: { type: Boolean, default: !1 }
3041
3256
  },
3042
3257
  setup(e) {
3043
- const n = L(null), l = L(e.value), s = () => {
3258
+ const n = M(null), o = M(e.value), l = () => {
3044
3259
  if (!n.value) return;
3045
3260
  const r = n.value.querySelector(".v-expansion__content");
3046
- r && (r.style.maxHeight = l.value ? `${r.scrollHeight}px` : "0");
3261
+ r && (r.style.maxHeight = o.value ? `${r.scrollHeight}px` : "0");
3047
3262
  }, t = () => {
3048
- l.value = !l.value, s();
3263
+ o.value = !o.value, l();
3049
3264
  };
3050
- return Q(() => {
3051
- s();
3265
+ return ee(() => {
3266
+ l();
3052
3267
  }), (r, c) => {
3053
- const d = Io;
3054
- return p(), v("div", {
3268
+ const d = mo;
3269
+ return f(), v("div", {
3055
3270
  ref_key: "root",
3056
3271
  ref: n,
3057
3272
  class: "glass-inset mb-2 overflow-hidden rounded-md"
3058
3273
  }, [
3059
- o("div", {
3274
+ s("div", {
3060
3275
  class: "cursor-pointer min-h-[60px] px-4 flex items-center justify-between",
3061
3276
  onClick: t
3062
3277
  }, [
3063
- o("h4", null, _(e.label), 1),
3064
- o("div", {
3065
- class: E(["transition text-gray-400", { "rotate-x-180": l.value }])
3278
+ s("h4", null, x(e.label), 1),
3279
+ s("div", {
3280
+ class: z(["transition text-gray-400", { "rotate-x-180": o.value }])
3066
3281
  }, [
3067
3282
  g(d, { class: "size-6" })
3068
3283
  ], 2)
3069
3284
  ]),
3070
- o("div", jo, [
3071
- o("div", Ho, [
3285
+ s("div", fo, [
3286
+ s("div", po, [
3072
3287
  k(r.$slots, "default")
3073
3288
  ])
3074
3289
  ])
3075
3290
  ], 512);
3076
3291
  };
3077
3292
  }
3078
- }), Po = ["onDragstart", "onDragenter"], No = {
3293
+ }), vo = ["onDragstart", "onDragenter"], ho = {
3079
3294
  key: 0,
3080
3295
  class: "absolute inset-0 border border-dashed border-blue-600 rounded"
3081
- }, Ba = /* @__PURE__ */ S({
3296
+ }, di = /* @__PURE__ */ S({
3082
3297
  __name: "VDragDrop",
3083
3298
  props: {
3084
3299
  items: {},
@@ -3086,29 +3301,29 @@ const Io = O({ name: "ri-arrow-drop-down-line", render: Do }), jo = { class: "v-
3086
3301
  },
3087
3302
  emits: ["update:items", "order-change"],
3088
3303
  setup(e, { emit: n }) {
3089
- const l = n, s = L(null), t = L(0), r = L(-1), c = ({ id: u }) => ({
3090
- "opacity-30 scale-105 z-10": s.value === u,
3091
- "transition-transform duration-200": s.value !== u
3092
- }), d = (u, f, b) => {
3093
- s.value = f, t.value = b, u.dataTransfer.effectAllowed = "move";
3304
+ const o = n, l = M(null), t = M(0), r = M(-1), c = ({ id: u }) => ({
3305
+ "opacity-30 scale-105 z-10": l.value === u,
3306
+ "transition-transform duration-200": l.value !== u
3307
+ }), d = (u, p, b) => {
3308
+ l.value = p, t.value = b, u.dataTransfer.effectAllowed = "move";
3094
3309
  }, m = (u) => {
3095
- s.value !== null && (r.value = u);
3096
- }, a = () => {
3097
- s.value = null, r.value = -1;
3098
- }, i = (u) => {
3099
- if (u.preventDefault(), s.value && r.value !== -1) {
3100
- const f = e.items.findIndex((h) => h[e.itemKey] === s.value), b = r.value;
3101
- if (f !== b && b !== -1) {
3102
- const h = [...e.items], [y] = h.splice(f, 1);
3103
- h.splice(b, 0, y), l("update:items", h), l("order-change", { fromIndex: f, toIndex: b, movedItem: y, newOrder: h });
3310
+ l.value !== null && (r.value = u);
3311
+ }, i = () => {
3312
+ l.value = null, r.value = -1;
3313
+ }, a = (u) => {
3314
+ if (u.preventDefault(), l.value && r.value !== -1) {
3315
+ const p = e.items.findIndex((h) => h[e.itemKey] === l.value), b = r.value;
3316
+ if (p !== b && b !== -1) {
3317
+ const h = [...e.items], [_] = h.splice(p, 1);
3318
+ h.splice(b, 0, _), o("update:items", h), o("order-change", { fromIndex: p, toIndex: b, movedItem: _, newOrder: h });
3104
3319
  }
3105
3320
  }
3106
3321
  r.value = -1;
3107
3322
  };
3108
- return (u, f) => (p(), v("div", {
3109
- onDragover: f[1] || (f[1] = R(() => {
3323
+ return (u, p) => (f(), v("div", {
3324
+ onDragover: p[1] || (p[1] = U(() => {
3110
3325
  }, ["prevent"])),
3111
- onDrop: i
3326
+ onDrop: a
3112
3327
  }, [
3113
3328
  g(De, {
3114
3329
  "enter-active-class": "transition-all duration-300 ease",
@@ -3119,34 +3334,34 @@ const Io = O({ name: "ri-arrow-drop-down-line", render: Do }), jo = { class: "v-
3119
3334
  "leave-to-class": "opacity-0 translate-x-8",
3120
3335
  "move-class": "transition-all duration-300 ease"
3121
3336
  }, {
3122
- default: x(() => [
3123
- (p(!0), v(B, null, N(e.items, (b, h) => (p(), v("div", {
3337
+ default: y(() => [
3338
+ (f(!0), v(E, null, j(e.items, (b, h) => (f(), v("div", {
3124
3339
  key: `${b.id}_drug`,
3125
- class: E(["relative group", c(b)]),
3340
+ class: z(["relative group", c(b)]),
3126
3341
  draggable: "true",
3127
- onDragstart: (y) => d(y, b.id, h),
3128
- onDragenter: (y) => m(h),
3129
- onDragend: a,
3130
- onDragover: f[0] || (f[0] = R(() => {
3342
+ onDragstart: (_) => d(_, b.id, h),
3343
+ onDragenter: (_) => m(h),
3344
+ onDragend: i,
3345
+ onDragover: p[0] || (p[0] = U(() => {
3131
3346
  }, ["prevent"]))
3132
3347
  }, [
3133
3348
  k(u.$slots, "default", {
3134
3349
  item: b,
3135
3350
  key: b.id,
3136
3351
  index: h,
3137
- isDragging: s.value === b.id
3352
+ isDragging: l.value === b.id
3138
3353
  }),
3139
- r.value === h && s.value !== b.id ? (p(), v("div", No)) : V("", !0)
3140
- ], 42, Po))), 128))
3354
+ r.value === h && l.value !== b.id ? (f(), v("div", ho)) : T("", !0)
3355
+ ], 42, vo))), 128))
3141
3356
  ]),
3142
3357
  _: 3
3143
3358
  })
3144
3359
  ], 32));
3145
3360
  }
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 = {
3361
+ }), go = { class: "glass-inset overflow-x-auto rounded-md" }, bo = { class: "min-w-full" }, yo = { class: "border-y border-gray-200/70 py-3 dark:border-white/10" }, xo = { class: "bg-gray-100/70 dark:bg-white/[0.04]" }, _o = { class: "flex items-center" }, $o = { class: "divide-y divide-gray-100 dark:divide-white/5" }, ko = ["onClick"], wo = { class: "flex items-center text-gray-700 dark:text-white/70" }, Co = { key: 1 }, So = {
3147
3362
  class: "py-3 whitespace-nowrap",
3148
3363
  colspan: "9"
3149
- }, Xo = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, Ma = /* @__PURE__ */ S({
3364
+ }, zo = { class: "flex items-center justify-center px-2 text-sm text-gray-500 dark:text-white/50" }, ci = /* @__PURE__ */ S({
3150
3365
  __name: "VTable",
3151
3366
  props: {
3152
3367
  headers: { default: () => [] },
@@ -3154,48 +3369,48 @@ const Io = O({ name: "ri-arrow-drop-down-line", render: Do }), jo = { class: "v-
3154
3369
  },
3155
3370
  emits: ["click"],
3156
3371
  setup(e, { emit: n }) {
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];
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", {
3163
- key: a,
3164
- class: E(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", t(m)])
3372
+ const o = n, l = (c, d) => o("click", c, d), t = (c) => (c == null ? void 0 : c.className) || "", r = (c, { key: d }) => c == null ? void 0 : c[d];
3373
+ return (c, d) => (f(), v("div", go, [
3374
+ s("table", bo, [
3375
+ s("thead", yo, [
3376
+ s("tr", xo, [
3377
+ (f(!0), v(E, null, j(e.headers, (m, i) => (f(), v("th", {
3378
+ key: i,
3379
+ class: z(["px-4 py-2 whitespace-nowrap font-normal text-gray-500 dark:text-white/50", t(m)])
3165
3380
  }, [
3166
3381
  k(c.$slots, "header", {
3167
3382
  item: m,
3168
- i: a
3383
+ i
3169
3384
  }, () => [
3170
- o("div", Ro, _(m.name), 1)
3385
+ s("div", _o, x(m.name), 1)
3171
3386
  ])
3172
3387
  ], 2))), 128))
3173
3388
  ])
3174
3389
  ]),
3175
- o("tbody", Wo, [
3176
- e.items.length ? (p(!0), v(B, { key: 0 }, N(e.items, (m, a) => (p(), v("tr", {
3177
- key: a,
3390
+ s("tbody", $o, [
3391
+ e.items.length ? (f(!0), v(E, { key: 0 }, j(e.items, (m, i) => (f(), v("tr", {
3392
+ key: i,
3178
3393
  class: "transition-colors hover:bg-primary/[0.04] dark:hover:bg-white/[0.04]",
3179
- onClick: (i) => s(m, i)
3394
+ onClick: (a) => l(m, a)
3180
3395
  }, [
3181
- (p(!0), v(B, null, N(e.headers, (i, u) => (p(), v("td", {
3396
+ (f(!0), v(E, null, j(e.headers, (a, u) => (f(), v("td", {
3182
3397
  key: u,
3183
3398
  class: "py-2 px-4"
3184
3399
  }, [
3185
- o("div", Go, [
3186
- k(c.$slots, i.key, {
3400
+ s("div", wo, [
3401
+ k(c.$slots, a.key, {
3187
3402
  item: m,
3188
- i: a
3403
+ i
3189
3404
  }, () => [
3190
- j(_(r(m, i)), 1)
3405
+ D(x(r(m, a)), 1)
3191
3406
  ])
3192
3407
  ])
3193
3408
  ]))), 128))
3194
- ], 8, qo))), 128)) : (p(), v("tr", Jo, [
3195
- o("td", Zo, [
3196
- o("div", Xo, [
3409
+ ], 8, ko))), 128)) : (f(), v("tr", Co, [
3410
+ s("td", So, [
3411
+ s("div", zo, [
3197
3412
  k(c.$slots, "empty", {}, () => [
3198
- d[0] || (d[0] = j("The list is empty", -1))
3413
+ d[0] || (d[0] = D("The list is empty", -1))
3199
3414
  ])
3200
3415
  ])
3201
3416
  ])
@@ -3204,27 +3419,27 @@ const Io = O({ name: "ri-arrow-drop-down-line", render: Do }), jo = { class: "v-
3204
3419
  ])
3205
3420
  ]));
3206
3421
  }
3207
- }), Aa = /* @__PURE__ */ S({
3422
+ }), ui = /* @__PURE__ */ S({
3208
3423
  __name: "VTooltip",
3209
3424
  props: {
3210
3425
  timeout: {},
3211
3426
  disabled: { type: Boolean }
3212
3427
  },
3213
3428
  setup(e) {
3214
- const n = L(!1), l = () => {
3429
+ const n = M(!1), o = () => {
3215
3430
  e.disabled || (n.value = !0);
3216
- }, s = () => {
3431
+ }, l = () => {
3217
3432
  n.value = !1;
3218
- }, t = Ie("tooltip");
3219
- return xt(t, () => s()), (r, c) => (p(), v("div", {
3433
+ }, t = Pe("tooltip");
3434
+ return xt(t, () => l()), (r, c) => (f(), v("div", {
3220
3435
  ref: "tooltip",
3221
3436
  class: "relative v-tooltip",
3222
- onMouseenter: l,
3223
- onMouseleave: s
3437
+ onMouseenter: o,
3438
+ onMouseleave: l
3224
3439
  }, [
3225
- o("button", {
3440
+ s("button", {
3226
3441
  type: "button",
3227
- onClick: l
3442
+ onClick: o
3228
3443
  }, [
3229
3444
  k(r.$slots, "activator")
3230
3445
  ]),
@@ -3236,7 +3451,7 @@ const Io = O({ name: "ri-arrow-drop-down-line", render: Do }), jo = { class: "v-
3236
3451
  "leave-from-class": "opacity-100 translate-y-0",
3237
3452
  "leave-to-class": "transform opacity-0 -translate-y-2"
3238
3453
  }, {
3239
- default: x(() => [
3454
+ default: y(() => [
3240
3455
  k(r.$slots, "default", { show: n.value })
3241
3456
  ]),
3242
3457
  _: 3
@@ -3245,56 +3460,57 @@ const Io = O({ name: "ri-arrow-drop-down-line", render: Do }), jo = { class: "v-
3245
3460
  }
3246
3461
  });
3247
3462
  export {
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,
3260
- ae as CardBase,
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,
3463
+ Po as AppAside,
3464
+ Io as AppHeader,
3465
+ No as AppNav,
3466
+ jo as AppNotification,
3467
+ Ho as AppOverlay,
3468
+ Oo as AppProgress,
3469
+ qo as BlockBreadcrumb,
3470
+ Fo as BlockInfo,
3471
+ Ko as BlockScan,
3472
+ Ro as BlockService,
3473
+ Uo as BlockStatus,
3474
+ Wo as BlockUpdate,
3475
+ ie as CardBase,
3476
+ Jo as CardButton,
3477
+ Zo as CardDate,
3478
+ Xo as CardDimmer,
3479
+ Yo as CardInfo,
3480
+ Qo as CardInput,
3481
+ ei as CardList,
3482
+ ut as CardMain,
3483
+ Yt as CardNotification,
3484
+ Na as DEFAULT_SUGGESTIONS,
3485
+ Go as EnergyFlowBlock,
3486
+ ti as ItemEdit,
3487
+ li as ScriptDialog,
3488
+ ni as ScriptEditor,
3489
+ si as ScriptViewDocs,
3490
+ ii as VAutocomplete,
3275
3491
  A as VButton,
3276
- $l as VCheckbox,
3492
+ Yl as VCheckbox,
3277
3493
  Oe as VDialog,
3278
- Ba as VDragDrop,
3494
+ di as VDragDrop,
3279
3495
  Ne as VDropdown,
3280
- La as VExpansion,
3281
- is as VFile,
3496
+ ri as VExpansion,
3497
+ rs as VFile,
3282
3498
  be as VFunc,
3283
- Pe as VIconLogo,
3499
+ He as VIconLogo,
3284
3500
  it as VIconLogoMini,
3285
3501
  Ce as VList,
3286
3502
  We as VListObject,
3287
3503
  ct as VLoader,
3288
- Ha as VPopup,
3289
- le as VSelect,
3290
- Ma as VTable,
3291
- vl as VTabs,
3504
+ pi as VPopup,
3505
+ ae as VSelect,
3506
+ ci as VTable,
3507
+ Ul as VTabs,
3292
3508
  J as VTextField,
3293
- Re as VTextWrapper,
3294
- Aa as VTooltip,
3509
+ Ue as VTextWrapper,
3510
+ ui as VTooltip,
3295
3511
  dt as VWifiIcon,
3296
- me as VisionIcon,
3297
- Va as VisionSearch,
3298
- Ta as VisionThemeToggle,
3299
- io as fullHighlighter
3512
+ Q as VisionIcon,
3513
+ ai as VisionSearch,
3514
+ oi as VisionThemeToggle,
3515
+ Ia as fullHighlighter
3300
3516
  };