vuesp-components 1.3.7 → 1.3.8

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.
package/dist/index.es.js CHANGED
@@ -568,7 +568,7 @@ const ql = { render: Wl }, B = /* @__PURE__ */ V({
568
568
  IconInfo: Rl,
569
569
  IconPlus: ql
570
570
  }, o = M(() => t.name ? e[`Icon${t.name}`] : ve);
571
- return (r, a) => (s(), A(G(o.value), { name: "Icon" }));
571
+ return (n, a) => (s(), A(G(o.value), { name: n.name }, null, 8, ["name"]));
572
572
  }
573
573
  }), Gl = { class: "no-scrollbar flex flex-col overflow-y-auto duration-300 ease-linear h-full" }, Kl = /* @__PURE__ */ V({
574
574
  __name: "AppAside",
@@ -577,7 +577,7 @@ const ql = { render: Wl }, B = /* @__PURE__ */ V({
577
577
  },
578
578
  emits: ["sidebar"],
579
579
  setup(t, { emit: e }) {
580
- const o = e, r = () => {
580
+ const o = e, n = () => {
581
581
  t.isSidebar && o("sidebar", !t.isSidebar);
582
582
  };
583
583
  return (a, u) => {
@@ -586,7 +586,7 @@ const ql = { render: Wl }, B = /* @__PURE__ */ V({
586
586
  a.isSidebar ? (s(), v("div", {
587
587
  key: 0,
588
588
  class: "lg:hidden overlay fixed left-0 top-0 h-full w-full bg-black/40 z-10 bg-blur",
589
- onClick: r
589
+ onClick: n
590
590
  })) : I("", !0),
591
591
  l("aside", {
592
592
  class: z([a.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 px-5 transition-all duration-350 lg:translate-x-0 dark:border-gray-800 bg-white dark:bg-gray-900"])
@@ -618,8 +618,8 @@ const ql = { render: Wl }, B = /* @__PURE__ */ V({
618
618
  }
619
619
  }), ge = (t, e) => {
620
620
  const o = t.__vccOpts || t;
621
- for (const [r, a] of e)
622
- o[r] = a;
621
+ for (const [n, a] of e)
622
+ o[n] = a;
623
623
  return o;
624
624
  }, Zl = {}, Jl = {
625
625
  class: "animate-spin h-6 w-6",
@@ -658,7 +658,7 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
658
658
  },
659
659
  emits: ["click"],
660
660
  setup(t, { emit: e }) {
661
- const o = e, r = (m) => o("click", m), a = t.outline ? "border border-green-600 text-green-600" : "bg-green-600 dark:bg-green-800", u = t.outline ? "border border-red-600 text-red-600" : "bg-red-600 dark:bg-red-800", d = t.outline ? "border border-gray-600 text-gray-600" : "bg-gray-500 dark:bg-gray-800", f = t.outline ? "border border-blue-600 text-blue-600" : "bg-blue-700 dark:bg-blue-800", c = { green: a, red: u, gray: d, blue: f }, n = {
661
+ const o = e, n = (m) => o("click", m), a = t.outline ? "border border-green-600 text-green-600" : "bg-green-600 dark:bg-green-800", u = t.outline ? "border border-red-600 text-red-600" : "bg-red-600 dark:bg-red-800", d = t.outline ? "border border-gray-600 text-gray-600" : "bg-gray-500 dark:bg-gray-800", f = t.outline ? "border border-blue-600 text-blue-600" : "bg-blue-700 dark:bg-blue-800", c = { green: a, red: u, gray: d, blue: f }, r = {
662
662
  button: "px-4",
663
663
  icon: "rounded-full border border-gray-200 dark:border-gray-800"
664
664
  }, i = {
@@ -667,13 +667,13 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
667
667
  }, h = M(() => [Xl, w(t.color), b(t.type), $(t.type, t.size), { "w-full": t.block }]), y = M(() => t.href || t.to ? "router-link" : "button"), $ = (m, E) => {
668
668
  var Q;
669
669
  return ((Q = i[m]) == null ? void 0 : Q[E]) || "";
670
- }, b = (m) => (n == null ? void 0 : n[m]) || "", w = (m) => t.type === "icon" ? "" : `${t.outline ? "dark:text-white" : "text-white"} ${(c == null ? void 0 : c[m]) || ""}`;
670
+ }, b = (m) => (r == null ? void 0 : r[m]) || "", w = (m) => t.type === "icon" ? "" : `${t.outline ? "dark:text-white" : "text-white"} ${(c == null ? void 0 : c[m]) || ""}`;
671
671
  return (m, E) => (s(), A(G(y.value), H(m.$attrs, {
672
672
  href: m.href,
673
673
  to: m.to,
674
674
  class: h.value,
675
675
  disabled: !!m.disabled,
676
- onClick: r
676
+ onClick: n
677
677
  }), {
678
678
  default: g(() => [
679
679
  l("span", {
@@ -704,18 +704,18 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
704
704
  },
705
705
  emits: ["close", "open"],
706
706
  setup(t, { emit: e }) {
707
- const o = e, r = L(!1), a = { sm: "max-w-[330px]", md: "max-w-[600px]", lg: "max-w-[960px]" }, u = M(() => a[t.size]), d = (n) => {
708
- r.value = !1, setTimeout(() => {
709
- o("close", n);
707
+ const o = e, n = L(!1), a = { sm: "max-w-[330px]", md: "max-w-[600px]", lg: "max-w-[960px]" }, u = M(() => a[t.size]), d = (r) => {
708
+ n.value = !1, setTimeout(() => {
709
+ o("close", r);
710
710
  }, 300);
711
- }, f = (n) => {
712
- t.callback && t.callback(), d(n);
713
- }, c = () => o("open", r.value);
711
+ }, f = (r) => {
712
+ t.callback && t.callback(), d(r);
713
+ }, c = () => o("open", n.value);
714
714
  return ne(() => {
715
715
  setTimeout(() => {
716
- r.value = !0;
716
+ n.value = !0;
717
717
  }, 300);
718
- }), (n, i) => (s(), A(we, { to: "body" }, [
718
+ }), (r, i) => (s(), A(we, { to: "body" }, [
719
719
  p(X, {
720
720
  "enter-active-class": "duration-300 ease-out",
721
721
  "enter-from-class": "transform opacity-0 -translate-y-2",
@@ -726,7 +726,7 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
726
726
  onAfterEnter: c
727
727
  }, {
728
728
  default: g(() => [
729
- r.value ? (s(), v("div", {
729
+ n.value ? (s(), v("div", {
730
730
  key: 0,
731
731
  class: "z-20 fixed top-0 h-[100dvh] w-full left-0 flex flex-col",
732
732
  onWheel: i[0] || (i[0] = P(() => {
@@ -741,8 +741,8 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
741
741
  class: z(["m-auto w-full bg-gray-50 dark:bg-gray-900 shadow-lg flex flex-col rounded-sm z-30", u.value])
742
742
  }, [
743
743
  l("div", ea, [
744
- C(n.$slots, "header", {}, () => [
745
- l("h4", null, _(n.title), 1)
744
+ C(r.$slots, "header", {}, () => [
745
+ l("h4", null, _(r.title), 1)
746
746
  ]),
747
747
  p(j, {
748
748
  type: "icon",
@@ -755,19 +755,19 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
755
755
  })
756
756
  ]),
757
757
  l("div", ta, [
758
- C(n.$slots, "default", {}, () => [
759
- l("div", { innerHTML: n.message }, null, 8, la)
758
+ C(r.$slots, "default", {}, () => [
759
+ l("div", { innerHTML: r.message }, null, 8, la)
760
760
  ])
761
761
  ]),
762
- n.$slots.footer || n.callback ? (s(), v("div", aa, [
763
- C(n.$slots, "footer", {}, () => [
762
+ r.$slots.footer || r.callback ? (s(), v("div", aa, [
763
+ C(r.$slots, "footer", {}, () => [
764
764
  p(j, {
765
765
  color: "blue",
766
766
  size: "small",
767
767
  onClick: f
768
768
  }, {
769
769
  default: g(() => [
770
- T(_(n.button), 1)
770
+ T(_(r.button), 1)
771
771
  ]),
772
772
  _: 1
773
773
  })
@@ -792,22 +792,22 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
792
792
  },
793
793
  emits: ["click", "show", "close"],
794
794
  setup(t, { emit: e }) {
795
- const o = e, r = L(!1), a = M(() => ({ top: t.top, left: t.left, right: t.right, "max-height": t.height })), u = (i) => {
796
- r.value && c(i);
795
+ const o = e, n = L(!1), a = M(() => ({ top: t.top, left: t.left, right: t.right, "max-height": t.height })), u = (i) => {
796
+ n.value && c(i);
797
797
  }, d = (i) => {
798
- r.value ? t.hideOnClick && c(i) : f(i), o("click", r.value);
798
+ n.value ? t.hideOnClick && c(i) : f(i), o("click", n.value);
799
799
  }, f = (i) => {
800
- r.value = !0, o("show", i);
800
+ n.value = !0, o("show", i);
801
801
  }, c = (i) => {
802
- r.value = !1, o("close", i);
803
- }, n = { click: d, open: f };
802
+ n.value = !1, o("close", i);
803
+ }, r = { click: d, open: f };
804
804
  return (i, h) => {
805
805
  const y = Ce("outside");
806
806
  return re((s(), v("div", sa, [
807
807
  l("div", oa, [
808
808
  C(i.$slots, "activator", {
809
- on: n,
810
- show: r.value
809
+ on: r,
810
+ show: n.value
811
811
  })
812
812
  ]),
813
813
  p(X, {
@@ -819,17 +819,17 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
819
819
  "leave-to-class": "transform opacity-0 -translate-y-2"
820
820
  }, {
821
821
  default: g(() => [
822
- r.value ? (s(), v("div", {
822
+ n.value ? (s(), v("div", {
823
823
  key: 0,
824
824
  class: "z-10 min-w-full absolute overflow-auto shadow-lg scrollbar",
825
825
  style: K(a.value),
826
826
  onClick: d
827
827
  }, [
828
828
  C(i.$slots, "default", {
829
- on: n,
829
+ on: r,
830
830
  show: f,
831
831
  hide: c,
832
- isShown: r.value
832
+ isShown: n.value
833
833
  })
834
834
  ], 4)) : I("", !0)
835
835
  ]),
@@ -848,7 +848,7 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
848
848
  },
849
849
  emits: ["click"],
850
850
  setup(t, { emit: e }) {
851
- const o = t, r = e, a = (u, d) => r("click", u, d);
851
+ const o = t, n = e, a = (u, d) => n("click", u, d);
852
852
  return (u, d) => (s(), v("ul", {
853
853
  class: z(o.className ?? "bg-white dark:bg-gray-800")
854
854
  }, [
@@ -871,13 +871,13 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
871
871
  },
872
872
  emits: ["sidebar", "notif"],
873
873
  setup(t, { emit: e }) {
874
- const o = e, r = [
874
+ const o = e, n = [
875
875
  { name: "Theme", value: 1 },
876
876
  { name: "Notification", value: 2 },
877
877
  { name: "Logout", value: 3 }
878
878
  ], a = M(() => !!t.notifications.find((i) => i.isNew)), u = (i) => o("sidebar", i), d = (i) => o("notif", i), f = async () => await fetch("/", { headers: { Authorization: "Basic AAAAAAAAAAAAAAAAAAA=" } }), c = () => {
879
879
  t.changeTheme && t.changeTheme();
880
- }, n = ({ value: i }, h) => {
880
+ }, r = ({ value: i }, h) => {
881
881
  i == 1 && c(), i == 2 && d(h), i == 3 && f();
882
882
  };
883
883
  return (i, h) => {
@@ -975,8 +975,8 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
975
975
  ]),
976
976
  default: g(() => [
977
977
  p(ee, {
978
- list: r,
979
- onClick: n
978
+ list: n,
979
+ onClick: r
980
980
  }, {
981
981
  default: g(({ item: $ }) => [
982
982
  l("span", fa, _($.name), 1)
@@ -1005,8 +1005,8 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
1005
1005
  },
1006
1006
  emits: ["remove", "read"],
1007
1007
  setup(t, { emit: e }) {
1008
- const o = t, r = e, a = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], u = (c) => a[c], d = (c) => r("remove", c), f = (c) => r("read", c);
1009
- return (c, n) => (s(), v("div", pa, [
1008
+ const o = t, n = e, a = ["", "bg-green-500", "bg-red-500", "bg-yellow-500", "bg-blue-500"], u = (c) => a[c], d = (c) => n("remove", c), f = (c) => n("read", c);
1009
+ return (c, r) => (s(), v("div", pa, [
1010
1010
  l("div", {
1011
1011
  class: z(["absolute left-0 top-0 w-[3px] h-full", u(o.color)])
1012
1012
  }, null, 2),
@@ -1019,7 +1019,7 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
1019
1019
  default: g(() => [
1020
1020
  l("span", {
1021
1021
  class: z([o.isNew ? "flex" : "hidden", "absolute right-0 top-0.5 z-1 h-2 w-2 rounded-full bg-orange-400"])
1022
- }, n[0] || (n[0] = [
1022
+ }, r[0] || (r[0] = [
1023
1023
  l("span", { class: "absolute -z-1 inline-flex h-full w-full animate-ping rounded-full bg-orange-400 opacity-75" }, null, -1)
1024
1024
  ]), 2),
1025
1025
  p(B, {
@@ -1060,8 +1060,8 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
1060
1060
  },
1061
1061
  emits: ["close", "remove", "read"],
1062
1062
  setup(t, { emit: e }) {
1063
- const o = t, r = e, a = M(() => !!o.notifications.find((n) => n.isNew)), u = M(() => !!o.notifications.length), d = (n) => r("close", n), f = (n) => r("remove", n), c = (n) => r("read", n);
1064
- return (n, i) => (s(), v(D, null, [
1063
+ const o = t, n = e, a = M(() => !!o.notifications.find((r) => r.isNew)), u = M(() => !!o.notifications.length), d = (r) => n("close", r), f = (r) => n("remove", r), c = (r) => n("read", r);
1064
+ return (r, i) => (s(), v(D, null, [
1065
1065
  o.value ? (s(), v("div", {
1066
1066
  key: 0,
1067
1067
  class: "overlay fixed left-0 top-0 h-full w-full bg-black/40 bg-blur",
@@ -1071,7 +1071,7 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
1071
1071
  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 flex-col overflow-y-auto transition-all duration-350 dark:border-gray-800 bg-white dark:bg-gray-900"])
1072
1072
  }, [
1073
1073
  l("div", ya, [
1074
- C(n.$slots, "header", { isNew: a.value }),
1074
+ C(r.$slots, "header", { isNew: a.value }),
1075
1075
  u.value ? (s(), v("div", xa, [
1076
1076
  p(me, {
1077
1077
  "enter-active-class": "transition-all duration-300 ",
@@ -1086,7 +1086,7 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
1086
1086
  key: h.date,
1087
1087
  class: "relative"
1088
1088
  }, [
1089
- C(n.$slots, "card", { item: h }, () => [
1089
+ C(r.$slots, "card", { item: h }, () => [
1090
1090
  p(ba, H({ ref_for: !0 }, h, {
1091
1091
  class: "bg-gray-200/50 dark:bg-gray-800/50 rounded-md",
1092
1092
  onRemove: (y) => f(h),
@@ -1097,7 +1097,7 @@ const be = /* @__PURE__ */ ge(Zl, [["render", Ql]]), Xl = "relative flex justify
1097
1097
  ]),
1098
1098
  _: 3
1099
1099
  })
1100
- ])) : C(n.$slots, "empty", { key: 1 })
1100
+ ])) : C(r.$slots, "empty", { key: 1 })
1101
1101
  ])
1102
1102
  ], 2)
1103
1103
  ], 64));
@@ -1120,14 +1120,14 @@ const za = /* @__PURE__ */ ge(_a, [["render", Ca]]), Va = { class: "mb-4 flex fl
1120
1120
  },
1121
1121
  emits: ["sidebar"],
1122
1122
  setup(t, { emit: e }) {
1123
- const o = e, r = L(""), a = ({ name: d }) => {
1124
- t.isSidebar && o("sidebar", !t.isSidebar), r.value !== d && (r.value = r.value === d ? "" : d);
1123
+ const o = e, n = L(""), a = ({ name: d }) => {
1124
+ t.isSidebar && o("sidebar", !t.isSidebar), n.value !== d && (n.value = n.value === d ? "" : d);
1125
1125
  }, u = (d) => t.fullPath === d;
1126
1126
  return W(
1127
1127
  () => t.menu,
1128
1128
  () => {
1129
1129
  var d;
1130
- return r.value = ((d = Oe(t.menu, t.fullPath)) == null ? void 0 : d.name) || "";
1130
+ return n.value = ((d = Oe(t.menu, t.fullPath)) == null ? void 0 : d.name) || "";
1131
1131
  }
1132
1132
  ), (d, f) => (s(), v("nav", null, [
1133
1133
  l("ul", Va, [
@@ -1137,7 +1137,7 @@ const za = /* @__PURE__ */ ge(_a, [["render", Ca]]), Va = { class: "mb-4 flex fl
1137
1137
  (s(), A(G(c.path ? "router-link" : "span"), {
1138
1138
  to: c.path,
1139
1139
  class: z(["flex gap-2 items-center px-3 py-2 rounded-lg", u(c.path) ? "bg-blue-500/10" : "hover:bg-gray-500/10"]),
1140
- onClick: P((n) => a(c), ["prevent", "stop"])
1140
+ onClick: P((r) => a(c), ["prevent", "stop"])
1141
1141
  }, {
1142
1142
  default: g(() => [
1143
1143
  p(B, {
@@ -1149,7 +1149,7 @@ const za = /* @__PURE__ */ ge(_a, [["render", Ca]]), Va = { class: "mb-4 flex fl
1149
1149
  }, _(c.name), 3),
1150
1150
  l("button", {
1151
1151
  class: z(["cursor-pointer", [d.isSidebar ? "lg:hidden" : ""]]),
1152
- onClick: P((n) => a(c), ["prevent", "stop"])
1152
+ onClick: P((r) => a(c), ["prevent", "stop"])
1153
1153
  }, [
1154
1154
  c.children ? (s(), A(B, {
1155
1155
  key: 0,
@@ -1161,10 +1161,10 @@ const za = /* @__PURE__ */ ge(_a, [["render", Ca]]), Va = { class: "mb-4 flex fl
1161
1161
  }, 1032, ["to", "class", "onClick"])),
1162
1162
  c.children ? (s(), v("div", {
1163
1163
  key: 0,
1164
- class: z(["translate transform overflow-hidden mt-2", [d.isSidebar ? "lg:hidden" : "", r.value === c.name ? "block" : "hidden"]])
1164
+ class: z(["translate transform overflow-hidden mt-2", [d.isSidebar ? "lg:hidden" : "", n.value === c.name ? "block" : "hidden"]])
1165
1165
  }, [
1166
1166
  l("ul", Ma, [
1167
- (s(!0), v(D, null, N(c.children, ({ name: n, path: i, icon: h }) => (s(), v("li", { key: n }, [
1167
+ (s(!0), v(D, null, N(c.children, ({ name: r, path: i, icon: h }) => (s(), v("li", { key: r }, [
1168
1168
  (s(), A(G(i ? "router-link" : "span"), {
1169
1169
  to: i,
1170
1170
  class: z(["flex gap-2 items-center px-3 py-2 rounded-lg", u(i) ? "bg-blue-500/10" : "hover:bg-gray-500/10"])
@@ -1176,7 +1176,7 @@ const za = /* @__PURE__ */ ge(_a, [["render", Ca]]), Va = { class: "mb-4 flex fl
1176
1176
  name: h,
1177
1177
  class: "size-5 flex-[0_0_24px]"
1178
1178
  }, null, 8, ["name"])) : I("", !0),
1179
- l("span", Aa, _(n), 1)
1179
+ l("span", Aa, _(r), 1)
1180
1180
  ])
1181
1181
  ]),
1182
1182
  _: 2
@@ -1201,27 +1201,27 @@ function fe(...t) {
1201
1201
  return typeof e == "function" ? Ve(Be(() => ({ get: e, set: se }))) : L(e);
1202
1202
  }
1203
1203
  function Ha(t, e) {
1204
- function o(...r) {
1204
+ function o(...n) {
1205
1205
  return new Promise((a, u) => {
1206
- Promise.resolve(t(() => e.apply(this, r), { fn: e, thisArg: this, args: r })).then(a).catch(u);
1206
+ Promise.resolve(t(() => e.apply(this, n), { fn: e, thisArg: this, args: n })).then(a).catch(u);
1207
1207
  });
1208
1208
  }
1209
1209
  return o;
1210
1210
  }
1211
1211
  function La(t, e = {}) {
1212
- let o, r, a = se;
1212
+ let o, n, a = se;
1213
1213
  const u = (c) => {
1214
1214
  clearTimeout(c), a(), a = se;
1215
1215
  };
1216
1216
  let d;
1217
1217
  return (c) => {
1218
- const n = Z(t), i = Z(e.maxWait);
1219
- return o && u(o), n <= 0 || i !== void 0 && i <= 0 ? (r && (u(r), r = void 0), Promise.resolve(c())) : new Promise((h, y) => {
1220
- a = e.rejectOnCancel ? y : h, d = c, i && !r && (r = setTimeout(() => {
1221
- o && u(o), r = void 0, h(d());
1218
+ const r = Z(t), i = Z(e.maxWait);
1219
+ return o && u(o), r <= 0 || i !== void 0 && i <= 0 ? (n && (u(n), n = void 0), Promise.resolve(c())) : new Promise((h, y) => {
1220
+ a = e.rejectOnCancel ? y : h, d = c, i && !n && (n = setTimeout(() => {
1221
+ o && u(o), n = void 0, h(d());
1222
1222
  }, i)), o = setTimeout(() => {
1223
- r && u(r), r = void 0, h(c());
1224
- }, n);
1223
+ n && u(n), n = void 0, h(c());
1224
+ }, r);
1225
1225
  });
1226
1226
  };
1227
1227
  }
@@ -1243,17 +1243,17 @@ function ja(t) {
1243
1243
  return M(() => !!t());
1244
1244
  }
1245
1245
  function Na(t, e, o = {}) {
1246
- const { window: r = de, ...a } = o;
1246
+ const { window: n = de, ...a } = o;
1247
1247
  let u;
1248
- const d = /* @__PURE__ */ ja(() => r && "ResizeObserver" in r), f = () => {
1248
+ const d = /* @__PURE__ */ ja(() => n && "ResizeObserver" in n), f = () => {
1249
1249
  u && (u.disconnect(), u = void 0);
1250
1250
  }, c = M(() => {
1251
1251
  const h = Z(t);
1252
1252
  return Array.isArray(h) ? h.map((y) => he(y)) : [he(h)];
1253
- }), n = W(
1253
+ }), r = W(
1254
1254
  c,
1255
1255
  (h) => {
1256
- if (f(), d.value && r) {
1256
+ if (f(), d.value && n) {
1257
1257
  u = new ResizeObserver(e);
1258
1258
  for (const y of h)
1259
1259
  y && u.observe(y, a);
@@ -1261,7 +1261,7 @@ function Na(t, e, o = {}) {
1261
1261
  },
1262
1262
  { immediate: !0, flush: "post" }
1263
1263
  ), i = () => {
1264
- f(), n();
1264
+ f(), r();
1265
1265
  };
1266
1266
  return Ta(i), {
1267
1267
  isSupported: d,
@@ -1273,8 +1273,8 @@ function Oa(t = de, e) {
1273
1273
  }
1274
1274
  function Pa(t = {}) {
1275
1275
  var e, o;
1276
- const { window: r = de } = t, a = fe(t == null ? void 0 : t.element), u = fe((e = t == null ? void 0 : t.input) != null ? e : ""), d = (o = t == null ? void 0 : t.styleProp) != null ? o : "height", f = ue(1), c = ue(0);
1277
- function n() {
1276
+ const { window: n = de } = t, a = fe(t == null ? void 0 : t.element), u = fe((e = t == null ? void 0 : t.input) != null ? e : ""), d = (o = t == null ? void 0 : t.styleProp) != null ? o : "height", f = ue(1), c = ue(0);
1277
+ function r() {
1278
1278
  var i;
1279
1279
  if (!a.value)
1280
1280
  return;
@@ -1283,17 +1283,17 @@ function Pa(t = {}) {
1283
1283
  const y = Z(t == null ? void 0 : t.styleTarget);
1284
1284
  y ? y.style[d] = `${f.value}px` : h = `${f.value}px`, a.value.style[d] = h;
1285
1285
  }
1286
- return W([u, a], () => Ae(n), { immediate: !0 }), W(f, () => {
1286
+ return W([u, a], () => Ae(r), { immediate: !0 }), W(f, () => {
1287
1287
  var i;
1288
1288
  return (i = t == null ? void 0 : t.onResize) == null ? void 0 : i.call(t);
1289
1289
  }), Na(a, ([{ contentRect: i }]) => {
1290
- c.value !== i.width && Oa(r, () => {
1291
- c.value = i.width, n();
1290
+ c.value !== i.width && Oa(n, () => {
1291
+ c.value = i.width, r();
1292
1292
  });
1293
- }), t != null && t.watch && W(t.watch, n, { immediate: !0, deep: !0 }), {
1293
+ }), t != null && t.watch && W(t.watch, r, { immediate: !0, deep: !0 }), {
1294
1294
  textarea: a,
1295
1295
  input: u,
1296
- triggerResize: n
1296
+ triggerResize: r
1297
1297
  };
1298
1298
  }
1299
1299
  const Fa = {
@@ -1317,7 +1317,7 @@ const Fa = {
1317
1317
  length: { default: 0 }
1318
1318
  },
1319
1319
  setup(t) {
1320
- const e = L(!1), o = M(() => !!t.length), r = M(() => !!(o.value && a.value === 100 && !t.status)), a = M(() => t.status ? Math.ceil(t.size * 100 / t.length) : 100), u = /* @__PURE__ */ ie(() => {
1320
+ const e = L(!1), o = M(() => !!t.length), n = M(() => !!(o.value && a.value === 100 && !t.status)), a = M(() => t.status ? Math.ceil(t.size * 100 / t.length) : 100), u = /* @__PURE__ */ ie(() => {
1321
1321
  e.value = !1;
1322
1322
  }, t.timeout);
1323
1323
  return W(
@@ -1336,9 +1336,9 @@ const Fa = {
1336
1336
  default: g(() => [
1337
1337
  e.value ? (s(), v("div", Fa, [
1338
1338
  l("div", Ea, [
1339
- C(d.$slots, "default", { isDone: r.value }, () => [
1339
+ C(d.$slots, "default", { isDone: n.value }, () => [
1340
1340
  f[1] || (f[1] = l("div", { class: "flex-auto" }, "Progress...", -1)),
1341
- r.value ? (s(), v("span", Ra, "Done")) : I("", !0)
1341
+ n.value ? (s(), v("span", Ra, "Done")) : I("", !0)
1342
1342
  ]),
1343
1343
  l("button", {
1344
1344
  class: "cursor-pointer transition text-gray-700 dark:text-gray-400 self-start hover:text-gray-600",
@@ -1393,14 +1393,14 @@ const Fa = {
1393
1393
  },
1394
1394
  setup(t) {
1395
1395
  const e = M(() => t.firmware.join(".")), o = M(() => {
1396
- var a, u, d, f, c, n, i;
1397
- const r = [];
1398
- return (a = t.pkg) != null && a.homepage && r.push({ name: "homepage", href: t.pkg.homepage }), (d = (u = t.pkg) == null ? void 0 : u.repository) != null && d.url && r.push({ name: "repository", href: t.pkg.repository.url }), (c = (f = t.pkg) == null ? void 0 : f.bugs) != null && c.url && r.push({ name: "bugs", href: t.pkg.bugs.url }), (n = t.pkg) != null && n.author && r.push({ name: "author", href: `mailto:${(i = t.pkg) == null ? void 0 : i.author}` }), r;
1396
+ var a, u, d, f, c, r, i;
1397
+ const n = [];
1398
+ return (a = t.pkg) != null && a.homepage && n.push({ name: "homepage", href: t.pkg.homepage }), (d = (u = t.pkg) == null ? void 0 : u.repository) != null && d.url && n.push({ name: "repository", href: t.pkg.repository.url }), (c = (f = t.pkg) == null ? void 0 : f.bugs) != null && c.url && n.push({ name: "bugs", href: t.pkg.bugs.url }), (r = t.pkg) != null && r.author && n.push({ name: "author", href: `mailto:${(i = t.pkg) == null ? void 0 : i.author}` }), n;
1399
1399
  });
1400
- return (r, a) => {
1400
+ return (n, a) => {
1401
1401
  var u, d;
1402
1402
  return s(), v("div", null, [
1403
- l("p", Za, _((u = r.pkg) == null ? void 0 : u.description), 1),
1403
+ l("p", Za, _((u = n.pkg) == null ? void 0 : u.description), 1),
1404
1404
  l("div", Ja, [
1405
1405
  l("div", Qa, [
1406
1406
  a[0] || (a[0] = T(" Firmware (hw): ")),
@@ -1409,19 +1409,19 @@ const Fa = {
1409
1409
  l("div", Ya, [
1410
1410
  l("div", es, [
1411
1411
  a[1] || (a[1] = T(" Version (web): ")),
1412
- l("span", ts, _((d = r.pkg) == null ? void 0 : d.version), 1)
1412
+ l("span", ts, _((d = n.pkg) == null ? void 0 : d.version), 1)
1413
1413
  ])
1414
1414
  ]),
1415
1415
  a[3] || (a[3] = l("div", { class: "flex-auto" }, null, -1)),
1416
1416
  l("div", ls, [
1417
1417
  a[2] || (a[2] = T(" ID: ")),
1418
- l("span", as, _(r.id.toString(16)), 1)
1418
+ l("span", as, _(n.id.toString(16)), 1)
1419
1419
  ])
1420
1420
  ]),
1421
1421
  a[4] || (a[4] = l("hr", { class: "dark:text-gray-700 text-gray-200 my-2" }, null, -1)),
1422
1422
  l("div", ss, [
1423
1423
  l("div", os, [
1424
- C(r.$slots, "links", { links: o.value })
1424
+ C(n.$slots, "links", { links: o.value })
1425
1425
  ])
1426
1426
  ])
1427
1427
  ]);
@@ -1434,7 +1434,7 @@ const Fa = {
1434
1434
  },
1435
1435
  emits: ["click"],
1436
1436
  setup(t, { emit: e }) {
1437
- const o = e, r = (a) => o("click", a);
1437
+ const o = e, n = (a) => o("click", a);
1438
1438
  return (a, u) => (s(), v("nav", null, [
1439
1439
  l("ol", ns, [
1440
1440
  (s(!0), v(D, null, N(a.items, (d, f) => (s(), v("li", {
@@ -1444,7 +1444,7 @@ const Fa = {
1444
1444
  C(a.$slots, "default", { item: d }, () => [
1445
1445
  (s(), A(G(d.path ? "a" : "span"), {
1446
1446
  href: d.path,
1447
- onClick: (c) => r(d)
1447
+ onClick: (c) => n(d)
1448
1448
  }, {
1449
1449
  default: g(() => [
1450
1450
  T(_(d.name), 1)
@@ -1475,7 +1475,7 @@ const Fa = {
1475
1475
  },
1476
1476
  setup(t) {
1477
1477
  const e = t;
1478
- return (o, r) => (s(), v("div", {
1478
+ return (o, n) => (s(), v("div", {
1479
1479
  class: z(["relative rounded-md border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] sm:p-6", { "overflow-hidden": e.loading }])
1480
1480
  }, [
1481
1481
  o.loading ? (s(), v("div", rs)) : I("", !0),
@@ -1509,8 +1509,8 @@ const Fa = {
1509
1509
  },
1510
1510
  emits: ["edit", "close", "click", "open", "setState"],
1511
1511
  setup(t, { emit: e }) {
1512
- const o = t, r = e, a = L(!1), u = M(() => ["button", "dimmer"].includes(o.type || "") && o.value ? "text-amber-500" : "text-gray-400"), d = M(() => o.icon || ""), f = (h) => r("edit", h), c = () => a.value = !0, n = (h) => r("open", h), i = (h) => {
1513
- a.value = !1, r("close", h);
1512
+ const o = t, n = e, a = L(!1), u = M(() => ["button", "dimmer"].includes(o.type || "") && o.value ? "text-amber-500" : "text-gray-400"), d = M(() => o.icon || ""), f = (h) => n("edit", h), c = () => a.value = !0, r = (h) => n("open", h), i = (h) => {
1513
+ a.value = !1, n("close", h);
1514
1514
  };
1515
1515
  return (h, y) => {
1516
1516
  const $ = oe("AppDialog");
@@ -1553,7 +1553,7 @@ const Fa = {
1553
1553
  size: o.size || "sm",
1554
1554
  title: h.name,
1555
1555
  onClose: i,
1556
- onOpen: n
1556
+ onOpen: r
1557
1557
  }, {
1558
1558
  header: g(() => [
1559
1559
  l("div", ms, [
@@ -1608,14 +1608,14 @@ const Fa = {
1608
1608
  },
1609
1609
  emits: ["edit", "close", "click", "open", "setState"],
1610
1610
  setup(t, { emit: e }) {
1611
- const o = t, r = e, a = ({ opts: f = {} }) => {
1611
+ const o = t, n = e, a = ({ opts: f = {} }) => {
1612
1612
  const { disabled: c } = f;
1613
1613
  return { disabled: c };
1614
- }, u = (f) => r("click", f), d = () => r("setState", !o.value);
1614
+ }, u = (f) => n("click", f), d = () => n("setState", !o.value);
1615
1615
  return (f, c) => (s(), A(q, H(o, { onClick: u }), {
1616
- header: g((n) => [
1616
+ header: g((r) => [
1617
1617
  l("div", ks, [
1618
- p(j, H(a(n), {
1618
+ p(j, H(a(r), {
1619
1619
  type: "icon",
1620
1620
  class: "text-gray-500",
1621
1621
  onClick: P(d, ["stop"])
@@ -1630,9 +1630,9 @@ const Fa = {
1630
1630
  }, 1040)
1631
1631
  ])
1632
1632
  ]),
1633
- dialog: g((n) => [
1633
+ dialog: g((r) => [
1634
1634
  l("div", _s, [
1635
- p(j, H(a(n), {
1635
+ p(j, H(a(r), {
1636
1636
  type: "icon",
1637
1637
  class: ["size-18", o.value ? "text-amber-500" : "text-blue-600 dark:text-blue-400"],
1638
1638
  onClick: P(d, ["stop"])
@@ -1668,14 +1668,14 @@ const Fa = {
1668
1668
  },
1669
1669
  emits: ["update:modelValue", "click", "on-icon", "enter", "blur"],
1670
1670
  setup(t, { emit: e }) {
1671
- const o = e, r = {
1671
+ const o = e, n = {
1672
1672
  input: "w-full h-full px-4 outline-none overflow-ellipsis flex-auto overflow-hidden w-[calc(100% - 20px)] bg-transparent",
1673
1673
  textarea: "h-full w-full px-4 py-2 outline-none flex-auto bg-transparent"
1674
1674
  }, a = L(!1), u = M(() => [
1675
1675
  t.component === "input" ? "h-[40px]" : "min-h-[40px]",
1676
1676
  t.message ? "border-red-500 hover:border-red-400" : "",
1677
1677
  t.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"
1678
- ]), d = M(() => r[t.component]), f = (m) => m || m === 0, c = M(() => [Vs, a.value || f(t.modelValue) || t.active ? "top-0 left-3 text-xs" : "top-1/2"]), n = M(() => t.component === "input"), i = (m) => {
1678
+ ]), d = M(() => n[t.component]), f = (m) => m || m === 0, c = M(() => [Vs, a.value || f(t.modelValue) || t.active ? "top-0 left-3 text-xs" : "top-1/2"]), r = M(() => t.component === "input"), i = (m) => {
1679
1679
  a.value = !1, o("blur", m);
1680
1680
  }, h = (m) => {
1681
1681
  a.value = !0, o("blur", m);
@@ -1694,8 +1694,8 @@ const Fa = {
1694
1694
  disabled: !!m.disabled,
1695
1695
  type: m.type,
1696
1696
  readonly: m.readonly,
1697
- rows: n.value ? null : "2",
1698
- wrap: n.value ? null : "soft",
1697
+ rows: r.value ? null : "2",
1698
+ wrap: r.value ? null : "soft",
1699
1699
  class: d.value,
1700
1700
  onFocus: h,
1701
1701
  onBlur: i,
@@ -1737,15 +1737,15 @@ const Fa = {
1737
1737
  },
1738
1738
  emits: ["edit", "close", "click", "open", "setState"],
1739
1739
  setup(t, { emit: e }) {
1740
- const o = t, r = e, a = (c) => new Date(+c * 1e3).toISOString().slice(0, 16), u = (c) => {
1740
+ const o = t, n = e, a = (c) => new Date(+c * 1e3).toISOString().slice(0, 16), u = (c) => {
1741
1741
  var i;
1742
- const n = (i = c == null ? void 0 : c.target) == null ? void 0 : i.valueAsNumber;
1743
- n && r("setState", n / 1e3);
1744
- }, d = ({ name: c, value: n, opts: i = {} }) => {
1742
+ const r = (i = c == null ? void 0 : c.target) == null ? void 0 : i.valueAsNumber;
1743
+ r && n("setState", r / 1e3);
1744
+ }, d = ({ name: c, value: r, opts: i = {} }) => {
1745
1745
  const { disabled: h } = i;
1746
- return { label: c, modelValue: a(n), disabled: h };
1747
- }, f = (c) => r("click", c);
1748
- return (c, n) => (s(), A(q, H(o, { onClick: f }), {
1746
+ return { label: c, modelValue: a(r), disabled: h };
1747
+ }, f = (c) => n("click", c);
1748
+ return (c, r) => (s(), A(q, H(o, { onClick: f }), {
1749
1749
  dialog: g((i) => [
1750
1750
  l("div", Bs, [
1751
1751
  p(O, H(d(i), {
@@ -1783,11 +1783,11 @@ const Fa = {
1783
1783
  },
1784
1784
  emits: ["edit", "close", "click", "open", "setState"],
1785
1785
  setup(t, { emit: e }) {
1786
- const o = t, r = e, a = ({ opts: n, value: i }) => Math.round(100 * +i / ((n == null ? void 0 : n.max) || 255)), u = ({ opts: n, value: i }) => Math.round(187 - +i / ((n == null ? void 0 : n.max) || 255) * 187), d = ({ value: n, opts: i }) => {
1786
+ const o = t, n = e, a = ({ opts: r, value: i }) => Math.round(100 * +i / ((r == null ? void 0 : r.max) || 255)), u = ({ opts: r, value: i }) => Math.round(187 - +i / ((r == null ? void 0 : r.max) || 255) * 187), d = ({ value: r, opts: i }) => {
1787
1787
  const { min: h = 0, max: y = 255, step: $ = 1, disabled: b } = i || {};
1788
- return { min: h, max: y, step: $, value: n, disabled: !!b, class: b ? "" : "cursor-pointer" };
1789
- }, f = (n) => r("click", n), c = (n) => r("setState", +n.target.value || 0);
1790
- return (n, i) => (s(), A(q, H(o, { onClick: f }), {
1788
+ return { min: h, max: y, step: $, value: r, disabled: !!b, class: b ? "" : "cursor-pointer" };
1789
+ }, f = (r) => n("click", r), c = (r) => n("setState", +r.target.value || 0);
1790
+ return (r, i) => (s(), A(q, H(o, { onClick: f }), {
1791
1791
  header: g((h) => [
1792
1792
  l("div", Is, [
1793
1793
  l("div", As, [
@@ -1852,7 +1852,7 @@ const Fa = {
1852
1852
  },
1853
1853
  emits: ["edit", "close", "click", "open", "setState"],
1854
1854
  setup(t, { emit: e }) {
1855
- const o = t, r = e, a = (u) => r("click", u);
1855
+ const o = t, n = e, a = (u) => n("click", u);
1856
1856
  return (u, d) => (s(), A(q, H(o, { onClick: a }), {
1857
1857
  default: g(() => [
1858
1858
  C(u.$slots, "dialog")
@@ -1878,14 +1878,14 @@ const Fa = {
1878
1878
  },
1879
1879
  emits: ["edit", "close", "click", "open", "setState"],
1880
1880
  setup(t, { emit: e }) {
1881
- const o = t, r = e, a = ({ name: f, value: c, opts: n = {} }) => {
1882
- const { disabled: i } = n;
1881
+ const o = t, n = e, a = ({ name: f, value: c, opts: r = {} }) => {
1882
+ const { disabled: i } = r;
1883
1883
  return { label: f, modelValue: c, disabled: i };
1884
- }, u = (f) => r("setState", f.target.value), d = (f) => r("click", f);
1884
+ }, u = (f) => n("setState", f.target.value), d = (f) => n("click", f);
1885
1885
  return (f, c) => (s(), A(q, H(o, { onClick: d }), {
1886
- dialog: g((n) => [
1886
+ dialog: g((r) => [
1887
1887
  l("div", js, [
1888
- p(O, H(a(n), {
1888
+ p(O, H(a(r), {
1889
1889
  autofocus: "",
1890
1890
  onEnter: u,
1891
1891
  onBlur: u
@@ -1913,26 +1913,26 @@ const Fa = {
1913
1913
  },
1914
1914
  emits: ["update:modelValue", "change"],
1915
1915
  setup(t, { emit: e }) {
1916
- const o = e, r = M(() => {
1916
+ const o = e, n = M(() => {
1917
1917
  const f = t.list.find((c) => c.value === t.value);
1918
1918
  return (f == null ? void 0 : f.name) || "";
1919
1919
  }), a = (f) => ({ "rotate-x-180": f }), u = (f) => {
1920
- const c = f.target, n = (c == null ? void 0 : c.value) || 0, i = t.list.find((h) => h.value == n);
1920
+ const c = f.target, r = (c == null ? void 0 : c.value) || 0, i = t.list.find((h) => h.value == r);
1921
1921
  i && o("change", i);
1922
1922
  }, d = (f, c) => {
1923
1923
  f.click(new Event("click")), o("change", c);
1924
1924
  };
1925
1925
  return (f, c) => (s(), A(Y, H({ class: "relative w-full" }, f.$attrs, { top: "46px" }), {
1926
- activator: g(({ on: n, show: i }) => [
1926
+ activator: g(({ on: r, show: i }) => [
1927
1927
  p(O, {
1928
- "model-value": r.value,
1928
+ "model-value": n.value,
1929
1929
  readonly: "",
1930
1930
  hideMessage: "",
1931
1931
  disabled: f.disabled,
1932
1932
  active: "",
1933
1933
  label: f.label,
1934
- onClick: n.click,
1935
- onOnIcon: n.click
1934
+ onClick: r.click,
1935
+ onOnIcon: r.click
1936
1936
  }, {
1937
1937
  icon: g(() => [
1938
1938
  p(B, {
@@ -1954,10 +1954,10 @@ const Fa = {
1954
1954
  }, _(h.name), 9, Os))), 128))
1955
1955
  ], 32)
1956
1956
  ]),
1957
- default: g(({ on: n }) => [
1957
+ default: g(({ on: r }) => [
1958
1958
  p(ee, {
1959
1959
  list: f.list,
1960
- onClick: (i) => d(n, i)
1960
+ onClick: (i) => d(r, i)
1961
1961
  }, {
1962
1962
  default: g(({ item: i }) => [
1963
1963
  C(f.$slots, "default", { item: i }, () => [
@@ -1988,14 +1988,14 @@ const Fa = {
1988
1988
  },
1989
1989
  emits: ["edit", "close", "click", "open", "setState"],
1990
1990
  setup(t, { emit: e }) {
1991
- const o = t, r = e, a = (c) => r("click", c), u = ({ value: c }) => r("setState", c), d = ({ opts: c, value: n }) => {
1991
+ const o = t, n = e, a = (c) => n("click", c), u = ({ value: c }) => n("setState", c), d = ({ opts: c, value: r }) => {
1992
1992
  var i;
1993
- return Array.isArray(c == null ? void 0 : c.list) && ((i = c == null ? void 0 : c.list.find((h) => h.value === n)) == null ? void 0 : i.name) || n;
1994
- }, f = ({ name: c, value: n, opts: i = {} }) => {
1993
+ return Array.isArray(c == null ? void 0 : c.list) && ((i = c == null ? void 0 : c.list.find((h) => h.value === r)) == null ? void 0 : i.name) || r;
1994
+ }, f = ({ name: c, value: r, opts: i = {} }) => {
1995
1995
  const { list: h = [], disabled: y } = i;
1996
- return { label: c, value: n, list: h, disabled: y };
1996
+ return { label: c, value: r, list: h, disabled: y };
1997
1997
  };
1998
- return (c, n) => (s(), A(q, H(o, { onClick: a }), {
1998
+ return (c, r) => (s(), A(q, H(o, { onClick: a }), {
1999
1999
  value: g((i) => [
2000
2000
  T(_(d(i)), 1)
2001
2001
  ]),
@@ -2059,13 +2059,13 @@ const Fa = {
2059
2059
  },
2060
2060
  emits: ["icon"],
2061
2061
  setup(t, { emit: e }) {
2062
- const o = e, r = M(() => t.active ? "top-0 left-3 text-xs" : "top-1/2"), a = M(() => [t.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"]);
2062
+ const o = e, n = M(() => t.active ? "top-0 left-3 text-xs" : "top-1/2"), a = M(() => [t.disabled ? "border-gray-400 opacity-40" : "border-gray-300 hover:border-gray-400 dark:border-gray-700/50 hover:dark:border-gray-600/50"]);
2063
2063
  return (u, d) => (s(), v("div", qs, [
2064
2064
  l("div", {
2065
2065
  class: z(["relative w-full min-h-[40px] border border-gray-300 dark:border-gray-700 flex items-center rounded transition bg-white dark:bg-gray-800", a.value])
2066
2066
  }, [
2067
2067
  l("span", {
2068
- class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", r.value])
2068
+ class: z(["absolute left-4 transition-all rounded -translate-y-1/2 text-gray-600 dark:text-gray-400", n.value])
2069
2069
  }, _(u.label), 3),
2070
2070
  l("div", Gs, [
2071
2071
  C(u.$slots, "default")
@@ -2101,18 +2101,18 @@ const Fa = {
2101
2101
  },
2102
2102
  emits: ["click"],
2103
2103
  setup(t, { emit: e }) {
2104
- const o = e, r = () => "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", a = L({}), u = (n) => {
2105
- a.value[n] = !a.value[n];
2106
- }, d = (n) => typeof n == "object", f = (n) => `${t.path ? t.path + "." : ""}${n}`, c = (n, i) => {
2107
- o("click", { key: n, path: f(n), isObject: i });
2104
+ const o = e, n = () => "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", a = L({}), u = (r) => {
2105
+ a.value[r] = !a.value[r];
2106
+ }, d = (r) => typeof r == "object", f = (r) => `${t.path ? t.path + "." : ""}${r}`, c = (r, i) => {
2107
+ o("click", { key: r, path: f(r), isObject: i });
2108
2108
  };
2109
- return (n, i) => (s(), v("ul", null, [
2110
- (s(!0), v(D, null, N(n.items, (h, y) => (s(), v("li", {
2109
+ return (r, i) => (s(), v("ul", null, [
2110
+ (s(!0), v(D, null, N(r.items, (h, y) => (s(), v("li", {
2111
2111
  key: y,
2112
- class: z(d(h) ? "" : `flex items-center ${r()}`)
2112
+ class: z(d(h) ? "" : `flex items-center ${n()}`)
2113
2113
  }, [
2114
2114
  l("div", {
2115
- class: z(["flex items-center cursor-pointer ps-2 h-8", d(h) ? `${r()}` : ""]),
2115
+ class: z(["flex items-center cursor-pointer ps-2 h-8", d(h) ? `${n()}` : ""]),
2116
2116
  onClick: ($) => u(y)
2117
2117
  }, [
2118
2118
  d(h) ? (s(), v("div", Js, [
@@ -2122,7 +2122,7 @@ const Fa = {
2122
2122
  })
2123
2123
  ])) : I("", !0),
2124
2124
  l("div", null, _(y), 1),
2125
- !n.onlyValue && d(h) ? (s(), v(D, { key: 1 }, [
2125
+ !r.onlyValue && d(h) ? (s(), v(D, { key: 1 }, [
2126
2126
  i[1] || (i[1] = l("div", { class: "flex-auto" }, null, -1)),
2127
2127
  l("div", Qs, [
2128
2128
  l("button", {
@@ -2142,7 +2142,7 @@ const Fa = {
2142
2142
  class: "flex-auto",
2143
2143
  path: f(y),
2144
2144
  items: h,
2145
- onlyValue: n.onlyValue,
2145
+ onlyValue: r.onlyValue,
2146
2146
  onClick: i[0] || (i[0] = ($) => o("click", $))
2147
2147
  }, null, 8, ["path", "items", "onlyValue"]), [
2148
2148
  [Te, a.value[y]]
@@ -2171,26 +2171,26 @@ const Fa = {
2171
2171
  },
2172
2172
  emits: ["click"],
2173
2173
  setup(t, { expose: e, emit: o }) {
2174
- const r = o, a = L(t.value || 0), u = (f) => [a.value === f ? "" : "before:hidden"], d = (f) => {
2175
- a.value = f, r("click", f);
2174
+ const n = o, a = L(t.value || 0), u = (f) => [a.value === f ? "" : "before:hidden"], d = (f) => {
2175
+ a.value = f, n("click", f);
2176
2176
  };
2177
2177
  return e({
2178
2178
  setActiveTab: d,
2179
2179
  activeTab: a
2180
2180
  }), (f, c) => (s(), v("div", lo, [
2181
2181
  l("div", ao, [
2182
- (s(!0), v(D, null, N(f.items, (n, i) => (s(), v("div", {
2182
+ (s(!0), v(D, null, N(f.items, (r, i) => (s(), v("div", {
2183
2183
  key: i,
2184
2184
  class: "relative"
2185
2185
  }, [
2186
2186
  l("button", {
2187
2187
  class: z(["font-medium text-lg transition cursor-pointer before:h-[2px] before:absolute before:w-full before:bg-blue-700 before:left-0 before:bottom-0 px-4 py-2", u(i)]),
2188
2188
  onClick: (h) => d(i)
2189
- }, _(n.title), 11, so)
2189
+ }, _(r.title), 11, so)
2190
2190
  ]))), 128))
2191
2191
  ]),
2192
2192
  l("div", oo, [
2193
- (s(!0), v(D, null, N(f.items, (n, i) => (s(), v("div", {
2193
+ (s(!0), v(D, null, N(f.items, (r, i) => (s(), v("div", {
2194
2194
  key: i,
2195
2195
  class: "tab-panel"
2196
2196
  }, [
@@ -2224,32 +2224,32 @@ const Fa = {
2224
2224
  },
2225
2225
  emits: ["change", "icon", "hover"],
2226
2226
  setup(t, { emit: e }) {
2227
- const { textarea: o, input: r } = Pa(), a = e, u = ["v", "a", "b", "c"];
2228
- r.value = t.value || "";
2229
- const d = (n) => {
2227
+ const { textarea: o, input: n } = Pa(), a = e, u = ["v", "a", "b", "c"];
2228
+ n.value = t.value || "";
2229
+ const d = (r) => {
2230
2230
  try {
2231
- return new Function(n), !0;
2231
+ return new Function(r), !0;
2232
2232
  } catch (i) {
2233
2233
  return console.warn(i), !1;
2234
2234
  }
2235
- }, f = /* @__PURE__ */ ie((n) => {
2236
- const i = n.target;
2235
+ }, f = /* @__PURE__ */ ie((r) => {
2236
+ const i = r.target;
2237
2237
  d(i.value) && a("change", i.value);
2238
- }, 500), c = (n) => a("icon", n);
2238
+ }, 500), c = (r) => a("icon", r);
2239
2239
  return W(
2240
2240
  () => t.value,
2241
2241
  () => {
2242
- t.value && (r.value = t.value);
2242
+ t.value && (n.value = t.value);
2243
2243
  }
2244
- ), (n, i) => (s(), A(xe, {
2245
- active: !!n.value,
2246
- disabled: n.disabled,
2247
- label: n.label,
2248
- hideIcon: n.hideIcon,
2244
+ ), (r, i) => (s(), A(xe, {
2245
+ active: !!r.value,
2246
+ disabled: r.disabled,
2247
+ label: r.label,
2248
+ hideIcon: r.hideIcon,
2249
2249
  onIcon: c
2250
2250
  }, {
2251
2251
  icon: g(() => [
2252
- n.value ? (s(), A(B, {
2252
+ r.value ? (s(), A(B, {
2253
2253
  key: 0,
2254
2254
  name: "Close",
2255
2255
  class: "size-4"
@@ -2260,10 +2260,10 @@ const Fa = {
2260
2260
  }))
2261
2261
  ]),
2262
2262
  default: g(() => [
2263
- n.value ? (s(), v(D, { key: 0 }, [
2263
+ r.value ? (s(), v(D, { key: 0 }, [
2264
2264
  l("div", io, [
2265
2265
  i[3] || (i[3] = T(" ( ")),
2266
- (s(!0), v(D, null, N(n.args, (h, y) => (s(), v(D, { key: h }, [
2266
+ (s(!0), v(D, null, N(r.args, (h, y) => (s(), v(D, { key: h }, [
2267
2267
  l("span", {
2268
2268
  class: "text-blue-400/80",
2269
2269
  title: h,
@@ -2278,14 +2278,14 @@ const Fa = {
2278
2278
  re(l("textarea", {
2279
2279
  ref_key: "textarea",
2280
2280
  ref: o,
2281
- "onUpdate:modelValue": i[0] || (i[0] = (h) => De(r) ? r.value = h : null),
2281
+ "onUpdate:modelValue": i[0] || (i[0] = (h) => De(n) ? n.value = h : null),
2282
2282
  class: "outline-0 w-full resize-none",
2283
2283
  type: "text",
2284
- disabled: n.disabled,
2284
+ disabled: r.disabled,
2285
2285
  onInput: i[1] || (i[1] = //@ts-ignore
2286
2286
  (...h) => F(f) && F(f)(...h))
2287
2287
  }, null, 40, vo), [
2288
- [He, F(r)]
2288
+ [He, F(n)]
2289
2289
  ])
2290
2290
  ])
2291
2291
  ], 64)) : I("", !0)
@@ -2301,7 +2301,7 @@ const Fa = {
2301
2301
  },
2302
2302
  emits: ["update:modelValue", "click"],
2303
2303
  setup(t, { emit: e }) {
2304
- const o = e, r = (u) => {
2304
+ const o = e, n = (u) => {
2305
2305
  const d = u.target;
2306
2306
  o("update:modelValue", d.checked);
2307
2307
  }, a = (u) => o("click", u);
@@ -2314,7 +2314,7 @@ const Fa = {
2314
2314
  checked: !!u.modelValue,
2315
2315
  disabled: u.disabled,
2316
2316
  class: "peer size-5 transition-all appearance-none rounded border border-gray-300 dark:border-gray-700 disabled:opacity-40 not-disabled:cursor-pointer",
2317
- onChange: r
2317
+ onChange: n
2318
2318
  }, null, 40, fo),
2319
2319
  d[0] || (d[0] = l("button", { class: "absolute opacity-0 peer-checked:opacity-100 peer-disabled:opacity-40 top-1/2 left-[10px] transform -translate-x-1/2 -translate-y-1/2 pointer-events-none" }, [
2320
2320
  l("svg", {
@@ -2355,19 +2355,19 @@ const Fa = {
2355
2355
  },
2356
2356
  emits: ["update"],
2357
2357
  setup(t, { emit: e }) {
2358
- const o = e, r = M(() => t.list.map((b, w) => ({ ...b, id: ++w }))), a = L({ name: "", value: "" }), u = M(() => t.list.length + 1), d = M(() => {
2358
+ const o = e, n = M(() => t.list.map((b, w) => ({ ...b, id: ++w }))), a = L({ name: "", value: "" }), u = M(() => t.list.length + 1), d = M(() => {
2359
2359
  var b;
2360
2360
  return !((b = a.value) != null && b.id);
2361
- }), f = (b) => t.type === b, c = (b, w) => o("update", b, w), n = (b) => b.map(({ name: w, value: m }) => ({ name: w, value: m })), i = ({ id: b, name: w, value: m }) => a.value = { id: b, name: w, value: m }, h = () => {
2361
+ }), f = (b) => t.type === b, c = (b, w) => o("update", b, w), r = (b) => b.map(({ name: w, value: m }) => ({ name: w, value: m })), i = ({ id: b, name: w, value: m }) => a.value = { id: b, name: w, value: m }, h = () => {
2362
2362
  const b = u.value;
2363
- a.value = { name: `New_${b}`, value: b, id: b }, c("list", n([a.value, ...r.value]));
2363
+ a.value = { name: `New_${b}`, value: b, id: b }, c("list", r([a.value, ...n.value]));
2364
2364
  }, y = (b) => {
2365
- a.value.name === b.name && (a.value = { name: "", value: "" }), c("list", n(r.value.filter((w) => w.value !== b.value)));
2365
+ a.value.name === b.name && (a.value = { name: "", value: "" }), c("list", r(n.value.filter((w) => w.value !== b.value)));
2366
2366
  }, $ = /* @__PURE__ */ ie(() => {
2367
2367
  const b = a.value;
2368
2368
  if (!b.name || !b.value) return;
2369
- const w = r.value.map((m) => m.id === b.id ? b : m);
2370
- c("list", n(w));
2369
+ const w = n.value.map((m) => m.id === b.id ? b : m);
2370
+ c("list", r(w));
2371
2371
  }, 300);
2372
2372
  return (b, w) => (s(), v("div", mo, [
2373
2373
  l("div", go, [
@@ -2428,7 +2428,7 @@ const Fa = {
2428
2428
  p(J, {
2429
2429
  value: a.value.value,
2430
2430
  label: "List",
2431
- list: r.value,
2431
+ list: n.value,
2432
2432
  onChange: i
2433
2433
  }, {
2434
2434
  default: g(({ item: m }) => [
@@ -2466,7 +2466,7 @@ const Fa = {
2466
2466
  },
2467
2467
  emits: ["button"],
2468
2468
  setup(t, { emit: e }) {
2469
- const o = e, r = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], a = L({
2469
+ const o = e, n = [{ title: "Main" }, { title: "Data" }, { title: "Options" }], a = L({
2470
2470
  id: "",
2471
2471
  name: "",
2472
2472
  type: "button",
@@ -2482,7 +2482,7 @@ const Fa = {
2482
2482
  }), f = M(() => a.value.type === "info"), c = M(() => {
2483
2483
  var x;
2484
2484
  return (x = a.value.args) == null ? void 0 : x.length;
2485
- }), n = M(() => a.value.args.length > 3), i = M(() => {
2485
+ }), r = M(() => a.value.args.length > 3), i = M(() => {
2486
2486
  const { id: x, args: k } = a.value;
2487
2487
  return !x || !k.length;
2488
2488
  }), h = ({ value: x }) => a.value.icon = x, y = ({ value: x }) => {
@@ -2511,7 +2511,7 @@ const Fa = {
2511
2511
  p(ro, {
2512
2512
  class: "flex-auto",
2513
2513
  value: 0,
2514
- items: r
2514
+ items: n
2515
2515
  }, {
2516
2516
  "tab-0": g(() => [
2517
2517
  l("div", Bo, [
@@ -2559,7 +2559,7 @@ const Fa = {
2559
2559
  l("div", Ao, [
2560
2560
  p(xe, {
2561
2561
  active: !!a.value.args.length,
2562
- disabled: n.value,
2562
+ disabled: r.value,
2563
2563
  label: "Arguments",
2564
2564
  onIcon: k[2] || (k[2] = (S) => u.value = !0)
2565
2565
  }, {
@@ -2712,7 +2712,7 @@ const Fa = {
2712
2712
  },
2713
2713
  emits: ["update:modelValue", "select"],
2714
2714
  setup(t, { emit: e }) {
2715
- const o = e, r = (u) => o("update:modelValue", u), a = (u, d) => {
2715
+ const o = e, n = (u) => o("update:modelValue", u), a = (u, d) => {
2716
2716
  u.click(new Event("click")), o("select", d);
2717
2717
  };
2718
2718
  return (u, d) => (s(), A(Y, H(u.$attrs, {
@@ -2725,7 +2725,7 @@ const Fa = {
2725
2725
  name: u.name,
2726
2726
  message: u.message,
2727
2727
  label: u.label,
2728
- "onUpdate:modelValue": r,
2728
+ "onUpdate:modelValue": n,
2729
2729
  onClick: f.open
2730
2730
  }, null, 8, ["model-value", "name", "message", "label", "onClick"])
2731
2731
  ]),
@@ -2752,15 +2752,15 @@ const Fa = {
2752
2752
  value: { type: Boolean, default: !1 }
2753
2753
  },
2754
2754
  setup(t) {
2755
- const e = L(null), o = L(t.value), r = () => {
2755
+ const e = L(null), o = L(t.value), n = () => {
2756
2756
  if (!e.value) return;
2757
2757
  const u = e.value.querySelector(".v-expansion__content");
2758
2758
  u && (u.style.maxHeight = o.value ? `${u.scrollHeight}px` : "0");
2759
2759
  }, a = () => {
2760
- o.value = !o.value, r();
2760
+ o.value = !o.value, n();
2761
2761
  };
2762
2762
  return ne(() => {
2763
- r();
2763
+ n();
2764
2764
  }), (u, d) => (s(), v("div", {
2765
2765
  ref_key: "root",
2766
2766
  ref: e,
@@ -2788,7 +2788,7 @@ const Fa = {
2788
2788
  __name: "VFile",
2789
2789
  emits: ["change"],
2790
2790
  setup(t, { emit: e }) {
2791
- const o = e, r = async (a) => {
2791
+ const o = e, n = async (a) => {
2792
2792
  const u = a.target;
2793
2793
  u.files && o("change", u.files);
2794
2794
  };
@@ -2796,7 +2796,7 @@ const Fa = {
2796
2796
  l("input", H({
2797
2797
  type: "file",
2798
2798
  class: "hidden"
2799
- }, a.$attrs, { onChange: r }), null, 16),
2799
+ }, a.$attrs, { onChange: n }), null, 16),
2800
2800
  C(a.$slots, "default")
2801
2801
  ]));
2802
2802
  }
@@ -2807,15 +2807,15 @@ const Fa = {
2807
2807
  channel: { default: 0 }
2808
2808
  },
2809
2809
  setup(t) {
2810
- const e = 2 * (t.rssi + 100), o = (r) => r < e;
2811
- return (r, a) => (s(), v("div", Wo, [
2810
+ const e = 2 * (t.rssi + 100), o = (n) => n < e;
2811
+ return (n, a) => (s(), v("div", Wo, [
2812
2812
  (s(), v(D, null, N([10, 15, 25, 40, 70], (u, d) => l("div", {
2813
2813
  key: u,
2814
2814
  class: z(["w-1 h-5 rounded-lg", [o(u) ? "bg-gray-900 dark:bg-gray-100" : "bg-gray-300 dark:bg-gray-700"]]),
2815
2815
  style: K(`height: ${(d + 1) * 5}px`),
2816
- title: `rssi: ${r.rssi} channel: ${r.channel}`
2816
+ title: `rssi: ${n.rssi} channel: ${n.channel}`
2817
2817
  }, null, 14, qo)), 64)),
2818
- l("div", Go, _(r.channel), 1)
2818
+ l("div", Go, _(n.channel), 1)
2819
2819
  ]));
2820
2820
  }
2821
2821
  }), Zo = ["onDragstart", "onDragenter"], Jo = {
@@ -2829,18 +2829,18 @@ const Fa = {
2829
2829
  },
2830
2830
  emits: ["update:items", "order-change"],
2831
2831
  setup(t, { emit: e }) {
2832
- const o = e, r = L(null), a = L(0), u = L(-1), d = ({ id: h }) => ({
2833
- "opacity-30 scale-105 z-10": r.value === h,
2834
- "transition-transform duration-200": r.value !== h
2832
+ const o = e, n = L(null), a = L(0), u = L(-1), d = ({ id: h }) => ({
2833
+ "opacity-30 scale-105 z-10": n.value === h,
2834
+ "transition-transform duration-200": n.value !== h
2835
2835
  }), f = (h, y, $) => {
2836
- r.value = y, a.value = $, h.dataTransfer.effectAllowed = "move";
2836
+ n.value = y, a.value = $, h.dataTransfer.effectAllowed = "move";
2837
2837
  }, c = (h) => {
2838
- r.value !== null && (u.value = h);
2839
- }, n = () => {
2840
- r.value = null, u.value = -1;
2838
+ n.value !== null && (u.value = h);
2839
+ }, r = () => {
2840
+ n.value = null, u.value = -1;
2841
2841
  }, i = (h) => {
2842
- if (h.preventDefault(), r.value && u.value !== -1) {
2843
- const y = t.items.findIndex((b) => b[t.itemKey] === r.value), $ = u.value;
2842
+ if (h.preventDefault(), n.value && u.value !== -1) {
2843
+ const y = t.items.findIndex((b) => b[t.itemKey] === n.value), $ = u.value;
2844
2844
  if (y !== $ && $ !== -1) {
2845
2845
  const b = [...t.items], [w] = b.splice(y, 1);
2846
2846
  b.splice($, 0, w), o("update:items", b), o("order-change", { fromIndex: y, toIndex: $, movedItem: w, newOrder: b });
@@ -2869,7 +2869,7 @@ const Fa = {
2869
2869
  draggable: "true",
2870
2870
  onDragstart: (w) => f(w, $.id, b),
2871
2871
  onDragenter: (w) => c(b),
2872
- onDragend: n,
2872
+ onDragend: r,
2873
2873
  onDragover: y[0] || (y[0] = P(() => {
2874
2874
  }, ["prevent"]))
2875
2875
  }, [
@@ -2877,9 +2877,9 @@ const Fa = {
2877
2877
  item: $,
2878
2878
  key: $.id,
2879
2879
  index: b,
2880
- isDragging: r.value === $.id
2880
+ isDragging: n.value === $.id
2881
2881
  }),
2882
- u.value === b && r.value !== $.id ? (s(), v("div", Jo)) : I("", !0)
2882
+ u.value === b && n.value !== $.id ? (s(), v("div", Jo)) : I("", !0)
2883
2883
  ], 42, Zo))), 128))
2884
2884
  ]),
2885
2885
  _: 3
@@ -2897,12 +2897,12 @@ const Fa = {
2897
2897
  },
2898
2898
  emits: ["click"],
2899
2899
  setup(t, { emit: e }) {
2900
- const o = e, r = (d, f) => o("click", { item: d, event: f }), a = (d) => (d == null ? void 0 : d.className) || "", u = (d, { key: f }) => d == null ? void 0 : d[f];
2900
+ const o = e, n = (d, f) => o("click", { item: d, event: f }), a = (d) => (d == null ? void 0 : d.className) || "", u = (d, { key: f }) => d == null ? void 0 : d[f];
2901
2901
  return (d, f) => (s(), v("table", Qo, [
2902
2902
  l("thead", Xo, [
2903
2903
  l("tr", Yo, [
2904
- (s(!0), v(D, null, N(d.headers, (c, n) => (s(), v("th", {
2905
- key: n,
2904
+ (s(!0), v(D, null, N(d.headers, (c, r) => (s(), v("th", {
2905
+ key: r,
2906
2906
  class: z(["py-2 whitespace-nowrap text-gray-500 dark:text-gray-400 font-normal px-4", a(c)])
2907
2907
  }, [
2908
2908
  C(d.$slots, "header", { item: c }, () => [
@@ -2912,10 +2912,10 @@ const Fa = {
2912
2912
  ])
2913
2913
  ]),
2914
2914
  l("tbody", tn, [
2915
- d.items.length ? (s(!0), v(D, { key: 0 }, N(d.items, (c, n) => (s(), v("tr", {
2916
- key: n,
2915
+ d.items.length ? (s(!0), v(D, { key: 0 }, N(d.items, (c, r) => (s(), v("tr", {
2916
+ key: r,
2917
2917
  class: "hover:bg-gray-50/50 dark:hover:bg-gray-800/50",
2918
- onClick: (i) => r(c, i)
2918
+ onClick: (i) => n(c, i)
2919
2919
  }, [
2920
2920
  (s(!0), v(D, null, N(d.headers, (i, h) => (s(), v("td", {
2921
2921
  key: h,