vuesp-components 2.2.1 → 2.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/{VDialog.vue_vue_type_script_setup_true_lang-BLLrcXdW.js → VDialog.vue_vue_type_script_setup_true_lang-ddssvQGq.js} +277 -265
  2. package/dist/{app-CG8zhRFf.js → app-B45sALrX.js} +35 -30
  3. package/dist/components/card/main/CardMain.vue.d.ts.map +1 -1
  4. package/dist/components/card/main/types.d.ts +1 -0
  5. package/dist/components/card/main/types.d.ts.map +1 -1
  6. package/dist/components/dashboard/cards/CardBase.vue.d.ts +54 -36
  7. package/dist/components/dashboard/cards/CardBase.vue.d.ts.map +1 -1
  8. package/dist/components/dashboard/cards/CardButton.vue.d.ts +6 -4
  9. package/dist/components/dashboard/cards/CardButton.vue.d.ts.map +1 -1
  10. package/dist/components/dashboard/cards/CardDate.vue.d.ts +6 -4
  11. package/dist/components/dashboard/cards/CardDate.vue.d.ts.map +1 -1
  12. package/dist/components/dashboard/cards/CardDimmer.vue.d.ts +6 -4
  13. package/dist/components/dashboard/cards/CardDimmer.vue.d.ts.map +1 -1
  14. package/dist/components/dashboard/cards/CardInfo.vue.d.ts +6 -4
  15. package/dist/components/dashboard/cards/CardInfo.vue.d.ts.map +1 -1
  16. package/dist/components/dashboard/cards/CardInput.vue.d.ts +6 -4
  17. package/dist/components/dashboard/cards/CardInput.vue.d.ts.map +1 -1
  18. package/dist/components/dashboard/cards/CardList.vue.d.ts +6 -4
  19. package/dist/components/dashboard/cards/CardList.vue.d.ts.map +1 -1
  20. package/dist/components/index.es.js +124 -106
  21. package/dist/components/script/viewDocs/ScriptViewDocs.vue.d.ts.map +1 -1
  22. package/dist/components/ui/dropdown/VDropdown.vue.d.ts.map +1 -1
  23. package/dist/dashboard/index.d.ts +2 -14
  24. package/dist/dashboard/index.d.ts.map +1 -1
  25. package/dist/dashboard/index.es.js +52 -32
  26. package/dist/dashboard/types.d.ts +3 -15
  27. package/dist/dashboard/types.d.ts.map +1 -1
  28. package/dist/helpers/app.d.ts.map +1 -1
  29. package/dist/helpers/index.es.js +1 -1
  30. package/dist/helpers/web-api.d.ts.map +1 -1
  31. package/dist/index.es.js +16 -25
  32. package/dist/types/messages.d.ts +14 -1
  33. package/dist/types/messages.d.ts.map +1 -1
  34. package/package.json +5 -1
@@ -1,7 +1,7 @@
1
- import { defineComponent as S, resolveComponent as Ee, openBlock as f, createElementBlock as v, Fragment as I, createCommentVNode as T, createElementVNode as o, normalizeClass as V, createVNode as h, withCtx as y, createBlock as j, renderSlot as k, markRaw as N, computed as M, withModifiers as q, toDisplayString as $, unref as W, TransitionGroup as Le, renderList as R, mergeProps as H, ref as A, watch as re, resolveDynamicComponent as xe, Transition as _e, normalizeStyle as fe, createTextVNode as D, normalizeProps as F, guardReactiveProps as U, onMounted as le, onUnmounted as Me, reactive as Qe, useTemplateRef as Ae, withDirectives as De, vShow as et, vModelText as tt, createSlots as nt, isRef as st } from "vue";
2
- import { a as lt, V as Ie, i as B, g as je, f as $e, j as ce, k as ot, c as at, h as it, d as se, _ as He, e as Z } from "../VDialog.vue_vue_type_script_setup_true_lang-BLLrcXdW.js";
3
- import { b as ua, l as ma } from "../VDialog.vue_vue_type_script_setup_true_lang-BLLrcXdW.js";
4
- import { f as rt, t as ct, g as dt, u as ue, s as ut, d as mt } from "../app-CG8zhRFf.js";
1
+ import { defineComponent as S, resolveComponent as Be, openBlock as f, createElementBlock as v, Fragment as I, createCommentVNode as T, createElementVNode as o, normalizeClass as V, createVNode as h, withCtx as y, createBlock as j, renderSlot as k, markRaw as N, computed as M, withModifiers as q, toDisplayString as $, unref as W, TransitionGroup as Le, renderList as R, mergeProps as H, ref as A, watch as re, resolveDynamicComponent as xe, Transition as _e, normalizeStyle as fe, createTextVNode as D, normalizeProps as F, guardReactiveProps as U, onMounted as le, onUnmounted as Me, reactive as Qe, useTemplateRef as Ae, withDirectives as De, vShow as et, vModelText as tt, createSlots as nt, isRef as st } from "vue";
2
+ import { a as lt, V as Ie, j as E, h as je, g as $e, k as ce, l as ot, d as at, i as it, e as se, _ as He, f as Z } from "../VDialog.vue_vue_type_script_setup_true_lang-ddssvQGq.js";
3
+ import { b as ua, m as ma } from "../VDialog.vue_vue_type_script_setup_true_lang-ddssvQGq.js";
4
+ import { f as rt, t as ct, g as dt, u as ue, s as ut, d as mt } from "../app-B45sALrX.js";
5
5
  import { d as ke, e as ft, o as pt } from "../useDialog-ALG4kFE7.js";
6
6
  import { getDataValue as vt } from "../dashboard/index.es.js";
7
7
  import { useForm as gt } from "../composables/index.es.js";
@@ -17,7 +17,7 @@ const yt = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 eas
17
17
  e.isSidebar && l("sidebar", !e.isSidebar);
18
18
  };
19
19
  return (t, a) => {
20
- const c = Ee("router-link");
20
+ const c = Be("router-link");
21
21
  return f(), v(I, null, [
22
22
  e.isSidebar ? (f(), v("div", {
23
23
  key: 0,
@@ -102,20 +102,20 @@ function Vt(e, n) {
102
102
  }, null, -1)
103
103
  ])]);
104
104
  }
105
- const Tt = N({ name: "ri-moon-line", render: Vt }), Bt = {
105
+ const Tt = N({ name: "ri-moon-line", render: Vt }), Et = {
106
106
  viewBox: "0 0 24 24",
107
107
  width: "1.2em",
108
108
  height: "1.2em"
109
109
  };
110
- function Et(e, n) {
111
- return f(), v("svg", Bt, [...n[0] || (n[0] = [
110
+ function Bt(e, n) {
111
+ return f(), v("svg", Et, [...n[0] || (n[0] = [
112
112
  o("path", {
113
113
  fill: "currentColor",
114
114
  d: "M12 18a6 6 0 1 1 0-12a6 6 0 0 1 0 12m0-2a4 4 0 1 0 0-8a4 4 0 0 0 0 8M11 1h2v3h-2zm0 19h2v3h-2zM3.515 4.929l1.414-1.414L7.05 5.636L5.636 7.05zM16.95 18.364l1.414-1.414l2.121 2.121l-1.414 1.414zm2.121-14.85l1.414 1.415l-2.121 2.121l-1.414-1.414zM5.636 16.95l1.414 1.414l-2.121 2.121l-1.414-1.414zM23 11v2h-3v-2zM4 11v2H1v-2z"
115
115
  }, null, -1)
116
116
  ])]);
117
117
  }
118
- const Lt = N({ name: "ri-sun-line", render: Et }), Mt = {
118
+ const Lt = N({ name: "ri-sun-line", render: Bt }), Mt = {
119
119
  viewBox: "0 0 24 24",
120
120
  width: "1.2em",
121
121
  height: "1.2em"
@@ -146,11 +146,11 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
146
146
  i == 1 && u(), i == 2 && c(m), i == 3 && r();
147
147
  };
148
148
  return (i, m) => {
149
- const p = Dt, b = Ee("router-link"), g = Lt, x = Tt, z = Ne, E = wt, w = Pe;
149
+ const p = Dt, b = Be("router-link"), g = Lt, x = Tt, z = Ne, B = wt, w = Pe;
150
150
  return f(), v("header", It, [
151
151
  o("div", jt, [
152
152
  o("div", Ht, [
153
- h(B, {
153
+ h(E, {
154
154
  type: "icon",
155
155
  onClick: a
156
156
  }, {
@@ -170,7 +170,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
170
170
  ]),
171
171
  m[2] || (m[2] = o("div", { class: "flex-auto" }, null, -1)),
172
172
  o("div", Nt, [
173
- h(B, {
173
+ h(E, {
174
174
  type: "icon",
175
175
  onClick: u
176
176
  }, {
@@ -180,7 +180,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
180
180
  ]),
181
181
  _: 1
182
182
  }),
183
- h(B, {
183
+ h(E, {
184
184
  type: "icon",
185
185
  onClick: c
186
186
  }, {
@@ -194,12 +194,12 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
194
194
  ]),
195
195
  _: 1
196
196
  }),
197
- h(B, {
197
+ h(E, {
198
198
  type: "icon",
199
199
  onClick: q(r, ["prevent"])
200
200
  }, {
201
201
  default: y(() => [
202
- h(E, { class: "size-5" })
202
+ h(B, { class: "size-5" })
203
203
  ]),
204
204
  _: 1
205
205
  })
@@ -211,7 +211,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
211
211
  top: "0"
212
212
  }, {
213
213
  activator: y(({ on: P }) => [
214
- h(B, {
214
+ h(E, {
215
215
  type: "icon",
216
216
  class: "flex",
217
217
  onClick: P.click
@@ -261,7 +261,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
261
261
  o("div", {
262
262
  class: V(["absolute left-0 top-0 w-[3px] h-full", a(l.color)])
263
263
  }, null, 2),
264
- h(B, {
264
+ h(E, {
265
265
  class: "shrink-0",
266
266
  type: "icon",
267
267
  onClick: r
@@ -280,7 +280,7 @@ const Dt = N({ name: "ri-menu-line", render: At }), It = { class: "bg-white dark
280
280
  o("div", null, $(l.text), 1),
281
281
  o("div", Kt, $(W(rt)(l.date)) + " (" + $(W(ct)(l.date)) + ")", 1)
282
282
  ]),
283
- h(B, {
283
+ h(E, {
284
284
  class: "shrink-0",
285
285
  type: "icon",
286
286
  size: "sm",
@@ -567,7 +567,7 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
567
567
  ]);
568
568
  };
569
569
  }
570
- }), zn = ["onClick"], Vn = { class: "mr-2" }, Tn = { class: "text-sm" }, Bn = { class: "text-gray-400 text-xs" }, En = {
570
+ }), zn = ["onClick"], Vn = { class: "mr-2" }, Tn = { class: "text-sm" }, En = { class: "text-gray-400 text-xs" }, Bn = {
571
571
  key: 0,
572
572
  class: "flex justify-center"
573
573
  }, Ln = { class: "flex justify-end mt-4" }, Uo = /* @__PURE__ */ S({
@@ -579,7 +579,7 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
579
579
  setup(e, { emit: n }) {
580
580
  const l = n, s = ["OPEN", "WEP", "WPA_PSK", "WPA2_PSK", "WPA_WPA2_PSK", "MAX", "", "NO", "AUTO"], t = (c) => l("select", c), a = (c) => l("scan", c);
581
581
  return (c, r) => {
582
- const u = at, d = $e, i = it, m = B;
582
+ const u = at, d = $e, i = it, m = E;
583
583
  return f(), v("div", null, [
584
584
  h(d, {
585
585
  items: e.items,
@@ -595,13 +595,13 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
595
595
  ]),
596
596
  o("div", null, [
597
597
  o("div", Tn, $(p.ssid), 1),
598
- o("div", Bn, $(c.$t("security")) + " : " + $(s[p.encryptionType] || "unknown"), 1)
598
+ o("div", En, $(c.$t("security")) + " : " + $(s[p.encryptionType] || "unknown"), 1)
599
599
  ])
600
600
  ], 8, zn)
601
601
  ]),
602
602
  _: 1
603
603
  }, 8, ["items"]),
604
- e.items.length ? T("", !0) : (f(), v("div", En, [
604
+ e.items.length ? T("", !0) : (f(), v("div", Bn, [
605
605
  h(i, { class: "text-primary" })
606
606
  ])),
607
607
  o("div", Ln, [
@@ -631,7 +631,7 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
631
631
  return (c = e.locales.find((r) => r.value === a)) == null ? void 0 : c.name;
632
632
  };
633
633
  return (a, c) => {
634
- const r = se, u = B;
634
+ const r = se, u = E;
635
635
  return f(), v(I, null, [
636
636
  o("div", Mn, [
637
637
  o("div", An, $(a.$t("selectLang")), 1),
@@ -791,7 +791,7 @@ const tn = N({ name: "ri-arrow-right-s-line", render: en }), nn = { class: "mb-4
791
791
  d && l("update", r, d);
792
792
  };
793
793
  return (r, u) => {
794
- const d = B;
794
+ const d = E;
795
795
  return f(), v("div", null, [
796
796
  (f(!0), v(I, null, R(s, (i, m) => (f(), v("div", {
797
797
  key: m,
@@ -896,17 +896,19 @@ const os = N({ name: "ri-file-copy2-line", render: ls }), as = { class: "flex-au
896
896
  __name: "CardBase",
897
897
  props: {
898
898
  size: {},
899
- id: {},
900
- name: {},
901
- type: {},
902
899
  icon: {},
903
900
  value: {},
904
901
  valueTo: {},
905
902
  opts: {},
903
+ id: {},
904
+ name: {},
905
+ type: {},
906
+ entityType: {},
906
907
  args: {},
907
- set: {},
908
908
  get: {},
909
- getTo: {}
909
+ getTo: {},
910
+ set: {},
911
+ meta: {}
910
912
  },
911
913
  emits: ["edit", "close", "click", "clone", "open", "setState"],
912
914
  setup(e, { emit: n }) {
@@ -952,7 +954,7 @@ const os = N({ name: "ri-file-copy2-line", render: ls }), as = { class: "flex-au
952
954
  onOpen: d
953
955
  }, {
954
956
  "header-btn": y(() => [
955
- h(B, {
957
+ h(E, {
956
958
  color: "transparent",
957
959
  onClick: c
958
960
  }, {
@@ -961,7 +963,7 @@ const os = N({ name: "ri-file-copy2-line", render: ls }), as = { class: "flex-au
961
963
  ]),
962
964
  _: 1
963
965
  }),
964
- h(B, {
966
+ h(E, {
965
967
  color: "transparent",
966
968
  onClick: r
967
969
  }, {
@@ -1010,17 +1012,19 @@ const gs = N({ name: "ri-shut-down-line", render: vs }), hs = { class: "flex jus
1010
1012
  __name: "CardButton",
1011
1013
  props: {
1012
1014
  size: {},
1013
- id: {},
1014
- name: {},
1015
- type: {},
1016
1015
  icon: {},
1017
1016
  value: {},
1018
1017
  valueTo: {},
1019
1018
  opts: {},
1019
+ id: {},
1020
+ name: {},
1021
+ type: {},
1022
+ entityType: {},
1020
1023
  args: {},
1021
- set: {},
1022
1024
  get: {},
1023
- getTo: {}
1025
+ getTo: {},
1026
+ set: {},
1027
+ meta: {}
1024
1028
  },
1025
1029
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1026
1030
  setup(e, { emit: n }) {
@@ -1040,7 +1044,7 @@ const gs = N({ name: "ri-shut-down-line", render: vs }), hs = { class: "flex jus
1040
1044
  ]),
1041
1045
  header: y((d) => [
1042
1046
  o("div", hs, [
1043
- h(B, H(t(d), {
1047
+ h(E, H(t(d), {
1044
1048
  type: "icon",
1045
1049
  class: l.value ? "text-amber-500" : "text-gray-500",
1046
1050
  onClick: q(a, ["stop"])
@@ -1054,7 +1058,7 @@ const gs = N({ name: "ri-shut-down-line", render: vs }), hs = { class: "flex jus
1054
1058
  ]),
1055
1059
  dialog: y((d) => [
1056
1060
  o("div", bs, [
1057
- h(B, H(t(d), {
1061
+ h(E, H(t(d), {
1058
1062
  type: "icon",
1059
1063
  class: ["size-18", l.value ? "text-amber-500" : "text-gray-500"],
1060
1064
  onClick: q(a, ["stop"])
@@ -1087,17 +1091,19 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
1087
1091
  __name: "CardDate",
1088
1092
  props: {
1089
1093
  size: {},
1090
- id: {},
1091
- name: {},
1092
- type: {},
1093
1094
  icon: {},
1094
1095
  value: {},
1095
1096
  valueTo: {},
1096
1097
  opts: {},
1098
+ id: {},
1099
+ name: {},
1100
+ type: {},
1101
+ entityType: {},
1097
1102
  args: {},
1098
- set: {},
1099
1103
  get: {},
1100
- getTo: {}
1104
+ getTo: {},
1105
+ set: {},
1106
+ meta: {}
1101
1107
  },
1102
1108
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1103
1109
  setup(e, { emit: n }) {
@@ -1125,7 +1131,7 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
1125
1131
  ]),
1126
1132
  header: y((p) => [
1127
1133
  o("div", null, [
1128
- h(B, {
1134
+ h(E, {
1129
1135
  type: "icon",
1130
1136
  class: "text-gray-500",
1131
1137
  onClick: q(u, ["stop"])
@@ -1170,17 +1176,19 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
1170
1176
  __name: "CardDimmer",
1171
1177
  props: {
1172
1178
  size: {},
1173
- id: {},
1174
- name: {},
1175
- type: {},
1176
1179
  icon: {},
1177
1180
  value: {},
1178
1181
  valueTo: {},
1179
1182
  opts: {},
1183
+ id: {},
1184
+ name: {},
1185
+ type: {},
1186
+ entityType: {},
1180
1187
  args: {},
1181
- set: {},
1182
1188
  get: {},
1183
- getTo: {}
1189
+ getTo: {},
1190
+ set: {},
1191
+ meta: {}
1184
1192
  },
1185
1193
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1186
1194
  setup(e, { emit: n }) {
@@ -1201,7 +1209,7 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
1201
1209
  header: y((p) => [
1202
1210
  o("div", ks, [
1203
1211
  o("div", ws, [
1204
- h(B, H(r(p), {
1212
+ h(E, H(r(p), {
1205
1213
  type: "icon",
1206
1214
  onClick: q((b) => d(p), ["stop"])
1207
1215
  }), {
@@ -1258,17 +1266,19 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
1258
1266
  __name: "CardInfo",
1259
1267
  props: {
1260
1268
  size: {},
1261
- id: {},
1262
- name: {},
1263
- type: {},
1264
1269
  icon: {},
1265
1270
  value: {},
1266
1271
  valueTo: {},
1267
1272
  opts: {},
1273
+ id: {},
1274
+ name: {},
1275
+ type: {},
1276
+ entityType: {},
1268
1277
  args: {},
1269
- set: {},
1270
1278
  get: {},
1271
- getTo: {}
1279
+ getTo: {},
1280
+ set: {},
1281
+ meta: {}
1272
1282
  },
1273
1283
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1274
1284
  setup(e, { emit: n }) {
@@ -1291,17 +1301,19 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
1291
1301
  __name: "CardInput",
1292
1302
  props: {
1293
1303
  size: {},
1294
- id: {},
1295
- name: {},
1296
- type: {},
1297
1304
  icon: {},
1298
1305
  value: {},
1299
1306
  valueTo: {},
1300
1307
  opts: {},
1308
+ id: {},
1309
+ name: {},
1310
+ type: {},
1311
+ entityType: {},
1301
1312
  args: {},
1302
- set: {},
1303
1313
  get: {},
1304
- getTo: {}
1314
+ getTo: {},
1315
+ set: {},
1316
+ meta: {}
1305
1317
  },
1306
1318
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1307
1319
  setup(e, { emit: n }) {
@@ -1344,34 +1356,36 @@ const _s = N({ name: "ri-time-line", render: xs }), $s = { class: "flex justify-
1344
1356
  }, 16);
1345
1357
  };
1346
1358
  }
1347
- }), Bs = {
1359
+ }), Es = {
1348
1360
  viewBox: "0 0 24 24",
1349
1361
  width: "1.2em",
1350
1362
  height: "1.2em"
1351
1363
  };
1352
- function Es(e, n) {
1353
- return f(), v("svg", Bs, [...n[0] || (n[0] = [
1364
+ function Bs(e, n) {
1365
+ return f(), v("svg", Es, [...n[0] || (n[0] = [
1354
1366
  o("path", {
1355
1367
  fill: "currentColor",
1356
1368
  d: "M8 4h13v2H8zm-5-.5h3v3H3zm0 7h3v3H3zm0 7h3v3H3zM8 11h13v2H8zm0 7h13v2H8z"
1357
1369
  }, null, -1)
1358
1370
  ])]);
1359
1371
  }
1360
- const Ls = N({ name: "ri-list-check", render: Es }), Ms = { class: "flex justify-center py-4" }, Qo = /* @__PURE__ */ S({
1372
+ const Ls = N({ name: "ri-list-check", render: Bs }), Ms = { class: "flex justify-center py-4" }, Qo = /* @__PURE__ */ S({
1361
1373
  __name: "CardList",
1362
1374
  props: {
1363
1375
  size: {},
1364
- id: {},
1365
- name: {},
1366
- type: {},
1367
1376
  icon: {},
1368
1377
  value: {},
1369
1378
  valueTo: {},
1370
1379
  opts: {},
1380
+ id: {},
1381
+ name: {},
1382
+ type: {},
1383
+ entityType: {},
1371
1384
  args: {},
1372
- set: {},
1373
1385
  get: {},
1374
- getTo: {}
1386
+ getTo: {},
1387
+ set: {},
1388
+ meta: {}
1375
1389
  },
1376
1390
  emits: ["edit", "close", "click", "clone", "open", "setState"],
1377
1391
  setup(e, { emit: n }) {
@@ -1411,7 +1425,7 @@ const Ls = N({ name: "ri-list-check", render: Es }), Ms = { class: "flex justify
1411
1425
  onChange: t
1412
1426
  }), {
1413
1427
  activator: y(({ on: m }) => [
1414
- h(B, {
1428
+ h(E, {
1415
1429
  type: "icon",
1416
1430
  class: "text-gray-500",
1417
1431
  onClick: q(m.click, ["stop"])
@@ -1549,7 +1563,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1549
1563
  l("click", { key: b, path: m(b), isObject: g });
1550
1564
  };
1551
1565
  return (b, g) => {
1552
- const x = qs, z = Rs, E = pe;
1566
+ const x = qs, z = Rs, B = pe;
1553
1567
  return f(), v("ul", null, [
1554
1568
  (f(!0), v(I, null, R(e.items, (w, P) => (f(), v("li", {
1555
1569
  key: P,
@@ -1563,7 +1577,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1563
1577
  h(x, { class: "size-5" })
1564
1578
  ])) : T("", !0),
1565
1579
  o("div", Js, $(P), 1),
1566
- W(u) ? (f(), j(B, {
1580
+ W(u) ? (f(), j(E, {
1567
1581
  key: 1,
1568
1582
  class: "opacity-20 hover:opacity-70 transition-all",
1569
1583
  color: "transparent",
@@ -1582,7 +1596,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1582
1596
  !e.onlyValue && i(w) ? (f(), v(I, { key: 3 }, [
1583
1597
  g[1] || (g[1] = o("div", { class: "flex-auto" }, null, -1)),
1584
1598
  o("div", Xs, [
1585
- h(B, {
1599
+ h(E, {
1586
1600
  class: "opacity-20 hover:opacity-70 transition-all",
1587
1601
  color: "transparent",
1588
1602
  size: "sm",
@@ -1590,7 +1604,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1590
1604
  onClick: q((J) => p(P, i(w)), ["stop"])
1591
1605
  }, {
1592
1606
  default: y(() => [
1593
- h(E, { class: "size-5" })
1607
+ h(B, { class: "size-5" })
1594
1608
  ]),
1595
1609
  _: 1
1596
1610
  }, 8, ["title", "onClick"])
@@ -1610,7 +1624,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1610
1624
  ])) : (f(), v(I, { key: 1 }, [
1611
1625
  g[2] || (g[2] = o("div", { class: "flex-auto gap-3" }, null, -1)),
1612
1626
  o("div", Qs, $(w), 1),
1613
- h(B, {
1627
+ h(E, {
1614
1628
  class: "opacity-20 hover:opacity-70 transition-all",
1615
1629
  color: "gray",
1616
1630
  size: "sm",
@@ -1618,7 +1632,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1618
1632
  onClick: q((J) => p(P, i(w)), ["stop"])
1619
1633
  }, {
1620
1634
  default: y(() => [
1621
- h(E, { class: "size-5" })
1635
+ h(B, { class: "size-5" })
1622
1636
  ]),
1623
1637
  _: 1
1624
1638
  }, 8, ["title", "onClick"])
@@ -1842,7 +1856,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1842
1856
  u("items", d(x));
1843
1857
  }, 300);
1844
1858
  return (g, x) => {
1845
- const z = ce, E = pe;
1859
+ const z = ce, B = pe;
1846
1860
  return f(), v("div", pl, [
1847
1861
  o("div", vl, [
1848
1862
  h(fl, {
@@ -1915,13 +1929,13 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1915
1929
  ]),
1916
1930
  _: 1
1917
1931
  }, 8, ["model-value", "items"]),
1918
- h(B, {
1932
+ h(E, {
1919
1933
  class: "px-4",
1920
1934
  color: "blue",
1921
1935
  onClick: m
1922
1936
  }, {
1923
1937
  default: y(() => [
1924
- h(E)
1938
+ h(B)
1925
1939
  ]),
1926
1940
  _: 1
1927
1941
  })
@@ -1930,7 +1944,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1930
1944
  ]);
1931
1945
  };
1932
1946
  }
1933
- }), kl = { class: "flex flex-col" }, wl = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, Cl = { class: "flex-auto order-1" }, Sl = { class: "flex-auto gap-x-2 order-1" }, zl = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, Vl = { class: "flex gap-2 items-center" }, Tl = { class: "flex flex-col gap-4" }, Bl = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, El = { class: "relative group" }, Ll = { class: "select-none" }, Ml = ["onClick"], Al = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, Dl = { class: "flex-[0_0_130px] size-[130px]" }, Il = { class: "flex gap-4 justify-end" }, jl = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, ea = /* @__PURE__ */ S({
1947
+ }), kl = { class: "flex flex-col" }, wl = { class: "flex flex-col md:flex-row gap-6 min-h-[300px]" }, Cl = { class: "flex-auto order-1" }, Sl = { class: "flex-auto gap-x-2 order-1" }, zl = { class: "grid grid-cols-1 md:grid-cols-2 gap-6" }, Vl = { class: "flex gap-2 items-center" }, Tl = { class: "flex flex-col gap-4" }, El = { class: "flex gap-2 flex-wrap flex-auto px-2 py-1" }, Bl = { class: "relative group" }, Ll = { class: "select-none" }, Ml = ["onClick"], Al = { class: "flex justify-center order-0 md:order-1 md:mt-11" }, Dl = { class: "flex-[0_0_130px] size-[130px]" }, Il = { class: "flex gap-4 justify-end" }, jl = { class: "relative min-h-[200px] max-h-100dvh overflow-auto scrollbar" }, ea = /* @__PURE__ */ S({
1934
1948
  __name: "ItemEdit",
1935
1949
  props: {
1936
1950
  items: {},
@@ -1969,7 +1983,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
1969
1983
  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 }));
1970
1984
  }, g = (_) => {
1971
1985
  _ === "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");
1972
- }, x = (_) => l("button", _, t.value), z = (_) => t.value.args = t.value.args.filter((C) => C !== _), E = ({ path: _ }) => {
1986
+ }, x = (_) => l("button", _, t.value), z = (_) => t.value.args = t.value.args.filter((C) => C !== _), B = ({ path: _ }) => {
1973
1987
  !t.value.args.length && !t.value.id && (t.value.id = _), t.value.args.push(_), a.value = !1;
1974
1988
  }, w = A(-1), P = (_) => w.value === _, J = (_, C) => {
1975
1989
  _ === "enter" && (w.value = C), _ === "leave" && (w.value = -1);
@@ -2004,7 +2018,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
2004
2018
  d.value ? void 0 : {
2005
2019
  name: "icon",
2006
2020
  fn: y(() => [
2007
- h(B, {
2021
+ h(E, {
2008
2022
  color: "transparent",
2009
2023
  onClick: Ze
2010
2024
  }, {
@@ -2062,12 +2076,12 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
2062
2076
  onIcon: C[2] || (C[2] = (L) => a.value = !0)
2063
2077
  }, {
2064
2078
  default: y(() => [
2065
- o("div", Bl, [
2079
+ o("div", El, [
2066
2080
  (f(!0), v(I, null, R(t.value.args, (L, Se) => (f(), v("div", {
2067
2081
  key: L,
2068
2082
  class: "flex items-center rounded-full bg-gray-200 dark:bg-gray-900/50 px-2 py-[2px] text-xs"
2069
2083
  }, [
2070
- o("div", El, [
2084
+ o("div", Bl, [
2071
2085
  o("span", Ll, $(L), 1),
2072
2086
  o("div", {
2073
2087
  class: V(["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(Se) ? "visible opacity-100" : ""])
@@ -2133,7 +2147,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
2133
2147
  ])
2134
2148
  ]),
2135
2149
  o("div", Il, [
2136
- h(B, {
2150
+ h(E, {
2137
2151
  class: "px-4",
2138
2152
  color: "blue",
2139
2153
  disabled: m.value,
@@ -2144,7 +2158,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
2144
2158
  ]),
2145
2159
  _: 1
2146
2160
  }, 8, ["disabled"]),
2147
- h(B, {
2161
+ h(E, {
2148
2162
  class: "px-4",
2149
2163
  color: "red",
2150
2164
  outline: "",
@@ -2167,7 +2181,7 @@ const qs = N({ name: "ri-folder6-line", render: Ws }), Gs = ["onClick"], Zs = {
2167
2181
  h(Ue, {
2168
2182
  items: e.object,
2169
2183
  onlyValue: !d.value,
2170
- onClick: E
2184
+ onClick: B
2171
2185
  }, null, 8, ["items", "onlyValue"])
2172
2186
  ])
2173
2187
  ]),
@@ -2289,7 +2303,7 @@ const Kl = () => (e, n) => {
2289
2303
  ` + c[0];
2290
2304
  return { value: l.substring(0, s) + r + l.substring(t), selectionStart: s + r.length, selectionEnd: s + r.length };
2291
2305
  }, Wl = () => (e, n) => {
2292
- if (!(n instanceof KeyboardEvent) || n.key !== "Enter")
2306
+ if (typeof KeyboardEvent > "u" || !(n instanceof KeyboardEvent) || n.key !== "Enter")
2293
2307
  return;
2294
2308
  const { value: l, selectionStart: s, selectionEnd: t } = e;
2295
2309
  if (s !== t)
@@ -2315,13 +2329,13 @@ const ql = (e) => {
2315
2329
  if (!r || !u)
2316
2330
  throw new Error("renderMenu and renderTooltip are required");
2317
2331
  return we = [...n].map((d) => c(d)), Ce = r, We = u, (d, i) => {
2318
- if (!(i instanceof KeyboardEvent))
2332
+ if (typeof KeyboardEvent > "u" || !(i instanceof KeyboardEvent))
2319
2333
  return;
2320
2334
  const { value: m, selectionStart: p } = d, b = i.target;
2321
2335
  if (ee = b, a.enabled !== !1 && !b.dataset.tooltipInitialized && (b.dataset.tooltipInitialized = "true", b.addEventListener("mouseup", () => {
2322
- setTimeout(() => Be(b), 100);
2336
+ setTimeout(() => Ee(b), 100);
2323
2337
  }), b.addEventListener("keyup", () => {
2324
- setTimeout(() => Be(b), 100);
2338
+ setTimeout(() => Ee(b), 100);
2325
2339
  })), K) {
2326
2340
  switch (i.key) {
2327
2341
  case "ArrowDown":
@@ -2345,11 +2359,11 @@ const ql = (e) => {
2345
2359
  case "Backspace":
2346
2360
  setTimeout(() => {
2347
2361
  if (ee) {
2348
- const g = ee.value, x = ee.selectionStart, z = me(g, x), E = g.slice(z, x);
2349
- if (E.length < l)
2362
+ const g = ee.value, x = ee.selectionStart, z = me(g, x), B = g.slice(z, x);
2363
+ if (B.length < l)
2350
2364
  Y();
2351
2365
  else {
2352
- const w = he(E).slice(0, s);
2366
+ const w = he(B).slice(0, s);
2353
2367
  w.length === 0 ? Y() : (X = w, O = 0, te());
2354
2368
  }
2355
2369
  }
@@ -2367,9 +2381,9 @@ const ql = (e) => {
2367
2381
  if (P.length > 0)
2368
2382
  return be(d, P[0]);
2369
2383
  }
2370
- const z = " ".repeat(t), E = m.slice(0, p) + z + m.slice(p), w = p + t;
2384
+ const z = " ".repeat(t), B = m.slice(0, p) + z + m.slice(p), w = p + t;
2371
2385
  return {
2372
- value: E,
2386
+ value: B,
2373
2387
  selectionStart: w,
2374
2388
  selectionEnd: w
2375
2389
  };
@@ -2377,12 +2391,12 @@ const ql = (e) => {
2377
2391
  if (!(i.key.length !== 1 || i.ctrlKey || i.metaKey || i.altKey))
2378
2392
  return Q && clearTimeout(Q), Q = setTimeout(() => {
2379
2393
  Q = null;
2380
- const g = b.value, x = b.selectionStart, z = me(g, x), E = g.slice(z, x);
2381
- if (E.length < l) {
2394
+ const g = b.value, x = b.selectionStart, z = me(g, x), B = g.slice(z, x);
2395
+ if (B.length < l) {
2382
2396
  Y();
2383
2397
  return;
2384
2398
  }
2385
- let w = he(E);
2399
+ let w = he(B);
2386
2400
  if (w = w.slice(0, s), w.length === 0) {
2387
2401
  Y();
2388
2402
  return;
@@ -2449,8 +2463,8 @@ function be(e, n) {
2449
2463
  if (i) {
2450
2464
  let g = 0, x = 0, z = !1;
2451
2465
  for (; x < a.length && !z; ) {
2452
- const E = u.find((w) => w.index === x);
2453
- E ? (g += E.text.length, x += E.length, E === i && (m = t + g - E.text.length, p = t + g, z = !0)) : (g++, x++);
2466
+ const B = u.find((w) => w.index === x);
2467
+ B ? (g += B.text.length, x += B.length, B === i && (m = t + g - B.text.length, p = t + g, z = !0)) : (g++, x++);
2454
2468
  }
2455
2469
  }
2456
2470
  return {
@@ -2470,7 +2484,7 @@ function qe(e) {
2470
2484
  top: n.top + (c - 1) * u
2471
2485
  };
2472
2486
  }
2473
- function Be(e) {
2487
+ function Ee(e) {
2474
2488
  ne && clearTimeout(ne), ne = setTimeout(() => {
2475
2489
  const n = e.selectionStart, l = e.selectionEnd;
2476
2490
  if (n === l) {
@@ -2498,7 +2512,7 @@ function ae() {
2498
2512
  G && (G.remove(), G = null);
2499
2513
  }, 150));
2500
2514
  }
2501
- document.addEventListener("mousedown", (e) => {
2515
+ typeof document < "u" && document.addEventListener("mousedown", (e) => {
2502
2516
  const n = e.target;
2503
2517
  K && !K.contains(n) && Y(), G && !G.contains(n) && ae();
2504
2518
  });
@@ -2664,6 +2678,10 @@ end;`, detail: "event(name: string)" },
2664
2678
  const n = A(""), l = A(""), s = A(null), t = A(!1), a = A(null);
2665
2679
  let c = null;
2666
2680
  const r = () => new Promise((i, m) => {
2681
+ if (typeof window > "u" || typeof document > "u") {
2682
+ m(new Error("Markdown loading is available only in a browser"));
2683
+ return;
2684
+ }
2667
2685
  if (window.marked) {
2668
2686
  window.marked.setOptions({
2669
2687
  gfm: !0,
@@ -2692,7 +2710,7 @@ end;`, detail: "event(name: string)" },
2692
2710
  continue;
2693
2711
  }
2694
2712
  if (b && g.includes(":")) {
2695
- const [x, z] = g.split(":").map((E) => E.trim());
2713
+ const [x, z] = g.split(":").map((B) => B.trim());
2696
2714
  x && z && (x.toLowerCase().includes("version") && (p.version = z), (x.toLowerCase().includes("обновлено") || x.toLowerCase().includes("updated")) && (p.updated = z));
2697
2715
  }
2698
2716
  }
@@ -2755,7 +2773,7 @@ end;`, detail: "event(name: string)" },
2755
2773
  return le(() => {
2756
2774
  e.idScript || (c.value = "boot");
2757
2775
  }), (i, m) => {
2758
- const p = Z, b = B;
2776
+ const p = Z, b = E;
2759
2777
  return f(), v("div", co, [
2760
2778
  h(p, H({
2761
2779
  modelValue: W(c),
@@ -3071,7 +3089,7 @@ export {
3071
3089
  ta as ScriptEditor,
3072
3090
  na as ScriptViewDocs,
3073
3091
  la as VAutocomplete,
3074
- B as VButton,
3092
+ E as VButton,
3075
3093
  fl as VCheckbox,
3076
3094
  He as VDialog,
3077
3095
  aa as VDragDrop,