nicklabs-ui 1.0.4 → 1.0.7

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.mjs CHANGED
@@ -930,59 +930,56 @@ var ae = ["type", "disabled"], oe = /* @__PURE__ */ p({
930
930
  textContent: T(e.hint)
931
931
  }, null, 8, wt)])])], 10, bt)]));
932
932
  }
933
- }), [["__scopeId", "data-v-0fd41b7d"]]);
933
+ }), [["__scopeId", "data-v-c90d900b"]]);
934
934
  Array.isArray;
935
935
  var Et = /* @__PURE__ */ function(e) {
936
936
  return e[e.MATCHER_NOT_FOUND = 1] = "MATCHER_NOT_FOUND", e[e.NAVIGATION_GUARD_REDIRECT = 2] = "NAVIGATION_GUARD_REDIRECT", e[e.NAVIGATION_ABORTED = 4] = "NAVIGATION_ABORTED", e[e.NAVIGATION_CANCELLED = 8] = "NAVIGATION_CANCELLED", e[e.NAVIGATION_DUPLICATED = 16] = "NAVIGATION_DUPLICATED", e;
937
937
  }({});
938
- Symbol(process.env.NODE_ENV === "production" ? "" : "navigation failure"), Et.MATCHER_NOT_FOUND, Et.NAVIGATION_GUARD_REDIRECT, Et.NAVIGATION_ABORTED, Et.NAVIGATION_CANCELLED, Et.NAVIGATION_DUPLICATED, Symbol(process.env.NODE_ENV === "production" ? "" : "router view location matched"), Symbol(process.env.NODE_ENV === "production" ? "" : "router view depth");
939
- var Dt = Symbol(process.env.NODE_ENV === "production" ? "" : "router"), Ot = Symbol(process.env.NODE_ENV === "production" ? "" : "route location");
938
+ Symbol(process.env.NODE_ENV === "production" ? "" : "navigation failure"), Et.MATCHER_NOT_FOUND, Et.NAVIGATION_GUARD_REDIRECT, Et.NAVIGATION_ABORTED, Et.NAVIGATION_CANCELLED, Et.NAVIGATION_DUPLICATED, Symbol(process.env.NODE_ENV === "production" ? "" : "router view location matched"), Symbol(process.env.NODE_ENV === "production" ? "" : "router view depth"), Symbol(process.env.NODE_ENV === "production" ? "" : "router");
939
+ var Dt = Symbol(process.env.NODE_ENV === "production" ? "" : "route location");
940
940
  Symbol(process.env.NODE_ENV === "production" ? "" : "router view location");
941
- function kt() {
941
+ function Ot(e) {
942
942
  return m(Dt);
943
943
  }
944
- function At(e) {
945
- return m(Ot);
946
- }
947
944
  //#endregion
948
945
  //#region src/layouts/NBreadcrumb.vue?vue&type=script&setup=true&lang.ts
949
- var jt = { class: "breadcrumbs" }, Mt = /* @__PURE__ */ A(/* @__PURE__ */ p({
946
+ var kt = { class: "breadcrumbs" }, At = /* @__PURE__ */ A(/* @__PURE__ */ p({
950
947
  __name: "NBreadcrumb",
951
948
  setup(e) {
952
- return (e, t) => (b(), s("nav", jt, [...t[0] ||= [
949
+ return (e, t) => (b(), s("nav", kt, [...t[0] ||= [
953
950
  c("span", null, "Home", -1),
954
951
  c("span", null, "Admin", -1),
955
952
  c("span", { class: "active" }, "Functions", -1)
956
953
  ]]));
957
954
  }
958
- }), [["__scopeId", "data-v-c06b466b"]]), Nt = S(!1);
959
- function Pt(e = "default") {
955
+ }), [["__scopeId", "data-v-c06b466b"]]), jt = S(!1);
956
+ function Mt(e = "default") {
960
957
  let t = `NSidebar:${e}:expanded`, n = x($.store.get(t, {}));
961
- Nt.value = $.store.get("NSidebar:expanded", !1);
958
+ jt.value = $.store.get("NSidebar:expanded", !1);
962
959
  let r = (e) => !!n[e];
963
960
  return {
964
961
  isMenuExpanded: r,
965
962
  toggleMenu: (e) => {
966
963
  n[e] = !r(e), $.store.set(t, n);
967
964
  },
968
- isSidebarExpanded: () => Nt.value,
965
+ isSidebarExpanded: () => jt.value,
969
966
  toggleSidebar: () => {
970
- Nt.value = !Nt.value, $.store.set("NSidebar:expanded", Nt.value);
967
+ jt.value = !jt.value, $.store.set("NSidebar:expanded", jt.value);
971
968
  }
972
969
  };
973
970
  }
974
971
  //#endregion
975
972
  //#region src/layouts/NHeroSection.vue?vue&type=script&setup=true&lang.ts
976
- var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"], Rt = { class: "body" }, zt = { class: "title-section" }, Bt = { class: "title" }, Vt = { key: 0 }, Ht = { class: "toolbar" }, Ut = /* @__PURE__ */ A(/* @__PURE__ */ p({
973
+ var Nt = { class: "hero-section" }, Pt = { class: "header" }, Ft = ["innerHTML"], It = { class: "body" }, Lt = { class: "title-section" }, Rt = { class: "title" }, zt = { key: 0 }, Bt = { class: "toolbar" }, Vt = /* @__PURE__ */ A(/* @__PURE__ */ p({
977
974
  __name: "NHeroSection",
978
975
  props: {
979
976
  icon: { default: "" },
980
977
  title: { default: "" }
981
978
  },
982
979
  setup(e) {
983
- let t = Pt();
984
- return (n, r) => (b(), s("div", Ft, [
985
- c("div", It, [f(j, {
980
+ let t = Mt();
981
+ return (n, r) => (b(), s("div", Nt, [
982
+ c("div", Pt, [f(j, {
986
983
  class: "sidebar-toggle-button",
987
984
  padding: "8px",
988
985
  intent: "none",
@@ -1005,19 +1002,19 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1005
1002
  c("path", { d: "M4 19h16" })
1006
1003
  ], -1)]]),
1007
1004
  _: 1
1008
- }), f(Mt)]),
1005
+ }), f(At)]),
1009
1006
  e.icon ? (b(), s("div", {
1010
1007
  key: 0,
1011
1008
  class: "icon-bg",
1012
1009
  innerHTML: e.icon
1013
- }, null, 8, Lt)) : o("", !0),
1014
- c("div", Rt, [c("div", zt, [c("div", Bt, [e.title ? (b(), s("h1", Vt, T(e.title), 1)) : o("", !0)])]), c("div", Ht, [w(n.$slots, "default", {}, void 0, !0)])])
1010
+ }, null, 8, Ft)) : o("", !0),
1011
+ c("div", It, [c("div", Lt, [c("div", Rt, [e.title ? (b(), s("h1", zt, T(e.title), 1)) : o("", !0)])]), c("div", Bt, [w(n.$slots, "default", {}, void 0, !0)])])
1015
1012
  ]));
1016
1013
  }
1017
- }), [["__scopeId", "data-v-38ca441b"]]), Wt = { class: "content-container" }, Gt = {
1014
+ }), [["__scopeId", "data-v-38ca441b"]]), Ht = { class: "content-container" }, Ut = {
1018
1015
  key: 0,
1019
1016
  class: "nav-tabs"
1020
- }, Kt = ["textContent", "onClick"], qt = { class: "tab-content" }, Jt = { class: "footer" }, Yt = /* @__PURE__ */ A(/* @__PURE__ */ p({
1017
+ }, Wt = ["textContent", "onClick"], Gt = { class: "tab-content" }, Kt = { class: "footer" }, qt = /* @__PURE__ */ A(/* @__PURE__ */ p({
1021
1018
  __name: "NForm",
1022
1019
  props: {
1023
1020
  model: { default: () => ({}) },
@@ -1031,37 +1028,37 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1031
1028
  },
1032
1029
  emits: ["submit", "reset"],
1033
1030
  setup(t, { emit: n }) {
1034
- let r = n, i = `NForm:${At().path}:tab`, a = S(t.tabs.length > 0 ? $.store.get(i, 0) : 0), l = () => {
1031
+ let r = n, i = `NForm:${Ot().path}:tab`, a = S(t.tabs.length > 0 ? $.store.get(i, 0) : 0), l = () => {
1035
1032
  t.disabled || r("submit", t.model);
1036
1033
  }, u = () => {
1037
1034
  t.disabled || r("reset");
1038
1035
  };
1039
- return (n, r) => (b(), s("div", Wt, [f(Ut, {
1036
+ return (n, r) => (b(), s("div", Ht, [f(Vt, {
1040
1037
  icon: t.icon,
1041
1038
  title: t.title
1042
1039
  }, null, 8, ["icon", "title"]), c("form", {
1043
1040
  onSubmit: k(l, ["prevent"]),
1044
1041
  onReset: k(u, ["prevent"])
1045
1042
  }, [
1046
- t.tabs.length > 0 ? (b(), s("div", Gt, [(b(!0), s(e, null, C(t.tabs, (e, t) => (b(), s("button", {
1043
+ t.tabs.length > 0 ? (b(), s("div", Ut, [(b(!0), s(e, null, C(t.tabs, (e, t) => (b(), s("button", {
1047
1044
  key: `${e}${t}`,
1048
1045
  class: g(["nav-link", { active: a.value === t }]),
1049
1046
  textContent: T(e),
1050
1047
  onClick: () => {
1051
1048
  a.value = t, E($).store.set(i, t);
1052
1049
  }
1053
- }, null, 10, Kt))), 128))])) : o("", !0),
1054
- c("div", qt, [t.tabs.length > 0 ? (b(!0), s(e, { key: 0 }, C(t.tabs, (t, r) => (b(), s(e, null, [a.value === r ? w(n.$slots, `tab${r}`, { key: 0 }, void 0, !0) : o("", !0)], 64))), 256)) : o("", !0), t.tabs.length == 0 && n.$slots.tab0 ? w(n.$slots, "tab0", { key: 1 }, void 0, !0) : o("", !0)]),
1055
- c("div", Jt, [w(n.$slots, "footer", {}, void 0, !0)])
1050
+ }, null, 10, Wt))), 128))])) : o("", !0),
1051
+ c("div", Gt, [t.tabs.length > 0 ? (b(!0), s(e, { key: 0 }, C(t.tabs, (t, r) => (b(), s(e, null, [a.value === r ? w(n.$slots, `tab${r}`, { key: 0 }, void 0, !0) : o("", !0)], 64))), 256)) : o("", !0), t.tabs.length == 0 && n.$slots.tab0 ? w(n.$slots, "tab0", { key: 1 }, void 0, !0) : o("", !0)]),
1052
+ c("div", Kt, [w(n.$slots, "footer", {}, void 0, !0)])
1056
1053
  ], 32)]));
1057
1054
  }
1058
- }), [["__scopeId", "data-v-ca2ceba7"]]), Xt = ["innerHTML"], Zt = { class: "title" }, Qt = {
1055
+ }), [["__scopeId", "data-v-ca2ceba7"]]), Jt = ["innerHTML"], Yt = { class: "title" }, Xt = {
1059
1056
  key: 1,
1060
1057
  class: "description"
1061
- }, $t = {
1058
+ }, Zt = {
1062
1059
  key: 2,
1063
1060
  class: "action"
1064
- }, en = /* @__PURE__ */ A(/* @__PURE__ */ p({
1061
+ }, Qt = /* @__PURE__ */ A(/* @__PURE__ */ p({
1065
1062
  __name: "NEmpty",
1066
1063
  props: {
1067
1064
  title: { default: "目前沒有資料" },
@@ -1075,13 +1072,13 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1075
1072
  key: 0,
1076
1073
  class: "icon",
1077
1074
  innerHTML: e.icon
1078
- }, null, 8, Xt)) : o("", !0),
1079
- c("p", Zt, T(e.title), 1),
1080
- e.description ? (b(), s("p", Qt, T(e.description), 1)) : o("", !0),
1081
- t.$slots.default ? (b(), s("div", $t, [w(t.$slots, "default", {}, void 0, !0)])) : o("", !0)
1075
+ }, null, 8, Jt)) : o("", !0),
1076
+ c("p", Yt, T(e.title), 1),
1077
+ e.description ? (b(), s("p", Xt, T(e.description), 1)) : o("", !0),
1078
+ t.$slots.default ? (b(), s("div", Zt, [w(t.$slots, "default", {}, void 0, !0)])) : o("", !0)
1082
1079
  ], 2));
1083
1080
  }
1084
- }), [["__scopeId", "data-v-b806fad9"]]), tn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1081
+ }), [["__scopeId", "data-v-b806fad9"]]), $t = /* @__PURE__ */ A(/* @__PURE__ */ p({
1085
1082
  __name: "NCard",
1086
1083
  props: {
1087
1084
  size: { default: "md" },
@@ -1093,13 +1090,13 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1093
1090
  [`radius-${e.radius}`]: !0
1094
1091
  }]) }, [w(t.$slots, "default", {}, void 0, !0)], 2));
1095
1092
  }
1096
- }), [["__scopeId", "data-v-2f12383f"]]), nn = {
1093
+ }), [["__scopeId", "data-v-2f12383f"]]), en = {
1097
1094
  key: 0,
1098
1095
  class: "paginate"
1099
- }, rn = { class: "summary" }, an = { class: "pages" }, on = {
1096
+ }, tn = { class: "summary" }, nn = { class: "pages" }, rn = {
1100
1097
  key: 1,
1101
1098
  class: "separator"
1102
- }, sn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1099
+ }, an = /* @__PURE__ */ A(/* @__PURE__ */ p({
1103
1100
  __name: "NPaginate",
1104
1101
  props: {
1105
1102
  totalItems: {},
@@ -1130,7 +1127,7 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1130
1127
  let t = Math.min(Math.max(1, e), u.value);
1131
1128
  l.value !== t && (l.value = t, r("onPageChange", l.value));
1132
1129
  }
1133
- return (n, r) => t.totalItems > 0 ? (b(), s("div", nn, [c("span", rn, "第 " + T(l.value) + " / " + T(u.value) + " 頁,共 " + T(t.totalItems) + " 筆", 1), c("div", an, [
1130
+ return (n, r) => t.totalItems > 0 ? (b(), s("div", en, [c("span", tn, "第 " + T(l.value) + " / " + T(u.value) + " 頁,共 " + T(t.totalItems) + " 筆", 1), c("div", nn, [
1134
1131
  f(j, {
1135
1132
  variant: "outline",
1136
1133
  padding: "",
@@ -1167,7 +1164,7 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1167
1164
  "variant",
1168
1165
  "intent",
1169
1166
  "onClick"
1170
- ])) : (b(), s("span", on, "…"))], 64))), 128)),
1167
+ ])) : (b(), s("span", rn, "…"))], 64))), 128)),
1171
1168
  f(j, {
1172
1169
  variant: "outline",
1173
1170
  padding: "",
@@ -1191,10 +1188,10 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1191
1188
  }, 8, ["disabled"])
1192
1189
  ])])) : o("", !0);
1193
1190
  }
1194
- }), [["__scopeId", "data-v-06443bd8"]]), cn = { class: "table-scroll" }, ln = ["onClick"], un = { class: "th-content" }, dn = {
1191
+ }), [["__scopeId", "data-v-06443bd8"]]), on = { class: "table-scroll" }, sn = ["onClick"], cn = { class: "th-content" }, ln = {
1195
1192
  key: 0,
1196
1193
  class: "sort-icon"
1197
- }, fn = {
1194
+ }, un = {
1198
1195
  key: 0,
1199
1196
  viewBox: "0 0 24 24",
1200
1197
  fill: "none",
@@ -1202,7 +1199,7 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1202
1199
  "stroke-width": "2",
1203
1200
  "stroke-linecap": "round",
1204
1201
  "stroke-linejoin": "round"
1205
- }, pn = {
1202
+ }, dn = {
1206
1203
  key: 1,
1207
1204
  viewBox: "0 0 24 24",
1208
1205
  fill: "none",
@@ -1210,7 +1207,7 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1210
1207
  "stroke-width": "2",
1211
1208
  "stroke-linecap": "round",
1212
1209
  "stroke-linejoin": "round"
1213
- }, mn = {
1210
+ }, fn = {
1214
1211
  key: 2,
1215
1212
  viewBox: "0 0 24 24",
1216
1213
  fill: "none",
@@ -1218,13 +1215,13 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1218
1215
  "stroke-width": "2",
1219
1216
  "stroke-linecap": "round",
1220
1217
  "stroke-linejoin": "round"
1221
- }, hn = {
1218
+ }, pn = {
1222
1219
  key: 0,
1223
1220
  class: "col-actions"
1224
- }, gn = ["onClick"], _n = {
1221
+ }, mn = ["onClick"], hn = {
1225
1222
  key: 0,
1226
1223
  class: "col-actions"
1227
- }, vn = { key: 1 }, yn = ["colspan"], bn = { key: 2 }, xn = ["colspan"], Sn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1224
+ }, gn = { key: 1 }, _n = ["colspan"], vn = { key: 2 }, yn = ["colspan"], bn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1228
1225
  __name: "NTable",
1229
1226
  props: {
1230
1227
  columns: { default: () => [] },
@@ -1264,7 +1261,7 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1264
1261
  { bordered: t.bordered },
1265
1262
  { hoverable: t.hoverable },
1266
1263
  { loading: t.loading }
1267
- ]]) }, [c("div", cn, [c("table", null, [c("thead", null, [c("tr", null, [(b(!0), s(e, null, C(t.columns, (e) => (b(), s("th", {
1264
+ ]]) }, [c("div", on, [c("table", null, [c("thead", null, [c("tr", null, [(b(!0), s(e, null, C(t.columns, (e) => (b(), s("th", {
1268
1265
  key: e.key,
1269
1266
  style: _({
1270
1267
  width: e.width,
@@ -1272,7 +1269,7 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1272
1269
  }),
1273
1270
  class: g({ sortable: e.sortable }),
1274
1271
  onClick: (t) => a(e)
1275
- }, [c("span", un, [w(n.$slots, `header-${e.key}`, { col: e }, () => [d(T(e.label), 1)], !0), e.sortable ? (b(), s("span", dn, [i.value.key !== e.key || i.value.order === null ? (b(), s("svg", fn, [...u[0] ||= [c("path", { d: "M8 9l4-4 4 4" }, null, -1), c("path", { d: "M16 15l-4 4-4-4" }, null, -1)]])) : i.value.order === "asc" ? (b(), s("svg", pn, [...u[1] ||= [c("path", { d: "M8 15l4-6 4 6" }, null, -1)]])) : (b(), s("svg", mn, [...u[2] ||= [c("path", { d: "M8 9l4 6 4-6" }, null, -1)]]))])) : o("", !0)])], 14, ln))), 128)), n.$slots.actions ? (b(), s("th", hn, [w(n.$slots, "actions-header", {}, () => [u[3] ||= d("操作", -1)], !0)])) : o("", !0)])]), c("tbody", null, [!t.loading && t.rows.length > 0 ? (b(!0), s(e, { key: 0 }, C(t.rows, (i, a) => (b(), s("tr", {
1272
+ }, [c("span", cn, [w(n.$slots, `header-${e.key}`, { col: e }, () => [d(T(e.label), 1)], !0), e.sortable ? (b(), s("span", ln, [i.value.key !== e.key || i.value.order === null ? (b(), s("svg", un, [...u[0] ||= [c("path", { d: "M8 9l4-4 4 4" }, null, -1), c("path", { d: "M16 15l-4 4-4-4" }, null, -1)]])) : i.value.order === "asc" ? (b(), s("svg", dn, [...u[1] ||= [c("path", { d: "M8 15l4-6 4 6" }, null, -1)]])) : (b(), s("svg", fn, [...u[2] ||= [c("path", { d: "M8 9l4 6 4-6" }, null, -1)]]))])) : o("", !0)])], 14, sn))), 128)), n.$slots.actions ? (b(), s("th", pn, [w(n.$slots, "actions-header", {}, () => [u[3] ||= d("操作", -1)], !0)])) : o("", !0)])]), c("tbody", null, [!t.loading && t.rows.length > 0 ? (b(!0), s(e, { key: 0 }, C(t.rows, (i, a) => (b(), s("tr", {
1276
1273
  key: i[t.rowKey] ?? a,
1277
1274
  onClick: (e) => r("row-click", i)
1278
1275
  }, [(b(!0), s(e, null, C(t.columns, (e) => (b(), s("td", {
@@ -1282,25 +1279,25 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1282
1279
  value: l(i, e),
1283
1280
  row: i,
1284
1281
  index: a
1285
- }, () => [d(T(l(i, e)), 1)], !0)], 4))), 128)), n.$slots.actions ? (b(), s("td", _n, [w(n.$slots, "actions", {
1282
+ }, () => [d(T(l(i, e)), 1)], !0)], 4))), 128)), n.$slots.actions ? (b(), s("td", hn, [w(n.$slots, "actions", {
1286
1283
  row: i,
1287
1284
  index: a
1288
- }, void 0, !0)])) : o("", !0)], 8, gn))), 128)) : !t.loading && t.rows.length === 0 ? (b(), s("tr", vn, [c("td", {
1285
+ }, void 0, !0)])) : o("", !0)], 8, mn))), 128)) : !t.loading && t.rows.length === 0 ? (b(), s("tr", gn, [c("td", {
1289
1286
  colspan: t.columns.length + +!!n.$slots.actions,
1290
1287
  class: "empty-cell"
1291
- }, [w(n.$slots, "empty", {}, () => [d(T(t.emptyText), 1)], !0)], 8, yn)])) : t.loading ? (b(), s("tr", bn, [c("td", {
1288
+ }, [w(n.$slots, "empty", {}, () => [d(T(t.emptyText), 1)], !0)], 8, _n)])) : t.loading ? (b(), s("tr", vn, [c("td", {
1292
1289
  colspan: t.columns.length + +!!n.$slots.actions,
1293
1290
  class: "loading-cell"
1294
1291
  }, [w(n.$slots, "loading", {}, () => [u[4] ||= c("span", { class: "loading-dots" }, [
1295
1292
  c("span"),
1296
1293
  c("span"),
1297
1294
  c("span")
1298
- ], -1)], !0)], 8, xn)])) : o("", !0)])])])], 2));
1295
+ ], -1)], !0)], 8, yn)])) : o("", !0)])])])], 2));
1299
1296
  }
1300
- }), [["__scopeId", "data-v-e6e63613"]]), Cn = { class: "content-container" }, wn = {
1297
+ }), [["__scopeId", "data-v-e6e63613"]]), xn = { class: "content-container" }, Sn = {
1301
1298
  key: 0,
1302
1299
  class: "toolbar"
1303
- }, Tn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1300
+ }, Cn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1304
1301
  __name: "NList",
1305
1302
  props: {
1306
1303
  title: { default: "" },
@@ -1361,11 +1358,11 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1361
1358
  function ee() {
1362
1359
  e.batchDeletable && (h.value ? e.items.forEach((e) => u.value.delete(e.id)) : e.items.forEach((e) => u.value.add(e.id)), u.value = new Set(u.value));
1363
1360
  }
1364
- return (t, i) => (b(), s("div", Cn, [f(Ut, {
1361
+ return (t, i) => (b(), s("div", xn, [f(Vt, {
1365
1362
  icon: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"28\" height=\"28\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\">\n <path d=\"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2\"></path>\n <circle cx=\"12\" cy=\"7\" r=\"4\"></circle>\n </svg>",
1366
1363
  title: e.title
1367
1364
  }, {
1368
- default: O(() => [n.toolbar || e.refreshable || e.creatable || e.batchDeletable ? (b(), s("div", wn, [
1365
+ default: O(() => [n.toolbar || e.refreshable || e.creatable || e.batchDeletable ? (b(), s("div", Sn, [
1369
1366
  w(t.$slots, "toolbar", {}, void 0, !0),
1370
1367
  e.refreshable ? (b(), a(j, {
1371
1368
  key: 0,
@@ -1455,11 +1452,11 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1455
1452
  })) : o("", !0)
1456
1453
  ])) : o("", !0)]),
1457
1454
  _: 3
1458
- }, 8, ["title"]), f(tn, {
1455
+ }, 8, ["title"]), f($t, {
1459
1456
  size: "none",
1460
1457
  radius: "xl"
1461
1458
  }, {
1462
- default: O(() => [f(Sn, {
1459
+ default: O(() => [f(bn, {
1463
1460
  columns: g.value,
1464
1461
  rows: e.items,
1465
1462
  hoverable: "",
@@ -1470,7 +1467,7 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1470
1467
  },
1471
1468
  onSort: i[6] ||= (e) => r("sort", e)
1472
1469
  }, l({
1473
- empty: O(() => [f(en, {
1470
+ empty: O(() => [f(Qt, {
1474
1471
  title: e.emptyTitle,
1475
1472
  description: e.emptyDescription,
1476
1473
  icon: e.emptyIcon,
@@ -1529,7 +1526,7 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1529
1526
  fn: O(() => [w(t.$slots, "actions-header", {}, void 0, !0)]),
1530
1527
  key: "3"
1531
1528
  } : void 0
1532
- ]), 1032, ["columns", "rows"]), e.items.length > 0 ? (b(), a(sn, {
1529
+ ]), 1032, ["columns", "rows"]), e.items.length > 0 ? (b(), a(an, {
1533
1530
  key: 0,
1534
1531
  totalItems: e.items.length,
1535
1532
  pageSize: e.pageSize,
@@ -1543,11 +1540,11 @@ var Ft = { class: "hero-section" }, It = { class: "header" }, Lt = ["innerHTML"]
1543
1540
  _: 3
1544
1541
  })]));
1545
1542
  }
1546
- }), [["__scopeId", "data-v-b5402ec0"]]), En = 0, Dn = x([]);
1547
- function On() {
1543
+ }), [["__scopeId", "data-v-b5402ec0"]]), wn = 0, Tn = x([]);
1544
+ function En() {
1548
1545
  let e = function(e, n = {}) {
1549
- let r = ++En, i = n.duration ?? 4e3;
1550
- Dn.push({
1546
+ let r = ++wn, i = n.duration ?? 4e3;
1547
+ Tn.push({
1551
1548
  id: r,
1552
1549
  description: e,
1553
1550
  status: n.status ?? "info",
@@ -1569,34 +1566,34 @@ function On() {
1569
1566
  status: "info"
1570
1567
  });
1571
1568
  function t(e) {
1572
- let t = Dn.findIndex((t) => t.id === e);
1573
- t !== -1 && Dn.splice(t, 1);
1569
+ let t = Tn.findIndex((t) => t.id === e);
1570
+ t !== -1 && Tn.splice(t, 1);
1574
1571
  }
1575
1572
  return {
1576
- toasts: Dn,
1573
+ toasts: Tn,
1577
1574
  toast: e,
1578
1575
  removeToast: t
1579
1576
  };
1580
1577
  }
1581
1578
  //#endregion
1582
1579
  //#region src/components/NToast.vue?vue&type=script&setup=true&lang.ts
1583
- var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1580
+ var Dn = { class: "icon-wrap" }, On = ["innerHTML"], kn = {
1584
1581
  key: 0,
1585
1582
  class: "arc-timer",
1586
1583
  viewBox: "0 0 36 36",
1587
1584
  width: "36",
1588
1585
  height: "36",
1589
1586
  "shape-rendering": "geometricPrecision"
1590
- }, Mn = { class: "body" }, Nn = {
1587
+ }, An = { class: "body" }, jn = {
1591
1588
  key: 0,
1592
1589
  class: "title"
1593
- }, Pn = {
1590
+ }, Mn = {
1594
1591
  key: 1,
1595
1592
  class: "description"
1596
- }, Fn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1593
+ }, Nn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1597
1594
  __name: "NToast",
1598
1595
  setup(n) {
1599
- let { toasts: i } = On(), l = {
1596
+ let { toasts: i } = En(), l = {
1600
1597
  success: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"M20 6 9 17l-5-5\"/>\n </svg>",
1601
1598
  danger: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <circle cx=\"12\" cy=\"12\" r=\"10\"/>\n <path d=\"m15 9-6 6\"/>\n <path d=\"m9 9 6 6\"/>\n </svg>",
1602
1599
  warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\">\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/>\n <path d=\"M12 9v4\"/>\n <path d=\"M12 17h.01\"/>\n </svg>",
@@ -1610,10 +1607,10 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1610
1607
  default: O(() => [(b(!0), s(e, null, C(E(i), (e) => (b(), s("div", {
1611
1608
  key: e.id,
1612
1609
  class: g(["toast", [`${e.status}`]])
1613
- }, [c("div", kn, [c("div", {
1610
+ }, [c("div", Dn, [c("div", {
1614
1611
  class: "icon",
1615
1612
  innerHTML: l[e.status]
1616
- }, null, 8, An), e.duration > 0 ? (b(), s("svg", jn, [u[0] ||= c("circle", {
1613
+ }, null, 8, On), e.duration > 0 ? (b(), s("svg", kn, [u[0] ||= c("circle", {
1617
1614
  class: "arc-track",
1618
1615
  cx: "18",
1619
1616
  cy: "18",
@@ -1625,29 +1622,29 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1625
1622
  r: "16",
1626
1623
  transform: "rotate(-90 18 18)",
1627
1624
  style: _({ animationDuration: `${e.duration}ms` })
1628
- }, null, 4)])) : o("", !0)]), c("div", Mn, [e.title ? (b(), s("p", Nn, T(e.title), 1)) : o("", !0), e.description ? (b(), s("p", Pn, T(e.description), 1)) : o("", !0)])], 2))), 128))]),
1625
+ }, null, 4)])) : o("", !0)]), c("div", An, [e.title ? (b(), s("p", jn, T(e.title), 1)) : o("", !0), e.description ? (b(), s("p", Mn, T(e.description), 1)) : o("", !0)])], 2))), 128))]),
1629
1626
  _: 1
1630
1627
  })]));
1631
1628
  }
1632
- }), [["__scopeId", "data-v-3d2f3052"]]), In = {
1629
+ }), [["__scopeId", "data-v-3d2f3052"]]), Pn = {
1633
1630
  key: 0,
1634
1631
  class: "loading-wrapper"
1635
- }, Ln = {
1632
+ }, Fn = {
1636
1633
  key: 0,
1637
1634
  class: "overlay"
1638
- }, Rn = { class: "content" }, zn = {
1635
+ }, In = { class: "content" }, Ln = {
1639
1636
  key: 0,
1640
1637
  class: "title"
1641
- }, Bn = {
1638
+ }, Rn = {
1642
1639
  key: 0,
1643
1640
  class: "loading-inline"
1644
- }, Vn = {
1641
+ }, zn = {
1645
1642
  key: 0,
1646
1643
  class: "title"
1647
- }, Hn = {
1644
+ }, Bn = {
1648
1645
  key: 0,
1649
1646
  class: "title"
1650
- }, Un = /* @__PURE__ */ A(/* @__PURE__ */ p({
1647
+ }, Vn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1651
1648
  __name: "NLoading",
1652
1649
  props: {
1653
1650
  loading: {
@@ -1662,31 +1659,31 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1662
1659
  }
1663
1660
  },
1664
1661
  setup(t) {
1665
- return (r, i) => t.overlay ? (b(), s("div", In, [w(r.$slots, "default", {}, void 0, !0), f(n, { name: "fade" }, {
1666
- default: O(() => [t.loading ? (b(), s("div", Ln, [c("div", Rn, [i[0] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1662
+ return (r, i) => t.overlay ? (b(), s("div", Pn, [w(r.$slots, "default", {}, void 0, !0), f(n, { name: "fade" }, {
1663
+ default: O(() => [t.loading ? (b(), s("div", Fn, [c("div", In, [i[0] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1667
1664
  cx: "25",
1668
1665
  cy: "25",
1669
1666
  r: "20",
1670
1667
  fill: "none",
1671
1668
  "stroke-width": "4"
1672
- })])], -1), t.title ? (b(), s("p", zn, T(t.title), 1)) : o("", !0)])])) : o("", !0)]),
1669
+ })])], -1), t.title ? (b(), s("p", Ln, T(t.title), 1)) : o("", !0)])])) : o("", !0)]),
1673
1670
  _: 1
1674
- })])) : (b(), s(e, { key: 1 }, [t.loading ? (b(), s("div", Bn, [t.variant === "spinner" ? (b(), s(e, { key: 0 }, [i[1] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1671
+ })])) : (b(), s(e, { key: 1 }, [t.loading ? (b(), s("div", Rn, [t.variant === "spinner" ? (b(), s(e, { key: 0 }, [i[1] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1675
1672
  cx: "25",
1676
1673
  cy: "25",
1677
1674
  r: "20",
1678
1675
  fill: "none",
1679
1676
  "stroke-width": "4"
1680
- })])], -1), t.title ? (b(), s("p", Vn, T(t.title), 1)) : o("", !0)], 64)) : o("", !0), t.variant === "dots" ? (b(), s(e, { key: 1 }, [i[2] ||= c("div", { class: "dots" }, [
1677
+ })])], -1), t.title ? (b(), s("p", zn, T(t.title), 1)) : o("", !0)], 64)) : o("", !0), t.variant === "dots" ? (b(), s(e, { key: 1 }, [i[2] ||= c("div", { class: "dots" }, [
1681
1678
  c("span"),
1682
1679
  c("span"),
1683
1680
  c("span")
1684
- ], -1), t.title ? (b(), s("p", Hn, T(t.title), 1)) : o("", !0)], 64)) : o("", !0)])) : w(r.$slots, "default", { key: 1 }, void 0, !0)], 64));
1681
+ ], -1), t.title ? (b(), s("p", Bn, T(t.title), 1)) : o("", !0)], 64)) : o("", !0)])) : w(r.$slots, "default", { key: 1 }, void 0, !0)], 64));
1685
1682
  }
1686
- }), [["__scopeId", "data-v-b1c571f6"]]), Wn = { class: "code" }, Gn = {
1683
+ }), [["__scopeId", "data-v-b1c571f6"]]), Hn = { class: "code" }, Un = {
1687
1684
  key: 0,
1688
1685
  class: "header"
1689
- }, Kn = { class: "language-label" }, qn = {
1686
+ }, Wn = { class: "language-label" }, Gn = {
1690
1687
  key: 0,
1691
1688
  xmlns: "http://www.w3.org/2000/svg",
1692
1689
  width: "14",
@@ -1697,7 +1694,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1697
1694
  "stroke-width": "2",
1698
1695
  "stroke-linecap": "round",
1699
1696
  "stroke-linejoin": "round"
1700
- }, Jn = {
1697
+ }, Kn = {
1701
1698
  key: 1,
1702
1699
  xmlns: "http://www.w3.org/2000/svg",
1703
1700
  width: "14",
@@ -1708,10 +1705,10 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1708
1705
  "stroke-width": "2",
1709
1706
  "stroke-linecap": "round",
1710
1707
  "stroke-linejoin": "round"
1711
- }, Yn = { class: "code-body" }, Xn = {
1708
+ }, qn = { class: "code-body" }, Jn = {
1712
1709
  key: 0,
1713
1710
  class: "gutter"
1714
- }, Zn = ["textContent"], Qn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1711
+ }, Yn = ["textContent"], Xn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1715
1712
  __name: "NCode",
1716
1713
  props: {
1717
1714
  code: {},
@@ -1730,28 +1727,28 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1730
1727
  }, 2e3);
1731
1728
  } catch {}
1732
1729
  }
1733
- return (i, l) => (b(), s("div", Wn, [(t.language, b(), s("div", Gn, [c("span", Kn, T(t.language || "code"), 1), c("button", {
1730
+ return (i, l) => (b(), s("div", Hn, [(t.language, b(), s("div", Un, [c("span", Wn, T(t.language || "code"), 1), c("button", {
1734
1731
  class: g(["copy-btn", { copied: n.value }]),
1735
1732
  onClick: a
1736
- }, [n.value ? (b(), s("svg", Jn, [...l[1] ||= [c("polyline", { points: "20 6 9 17 4 12" }, null, -1)]])) : (b(), s("svg", qn, [...l[0] ||= [c("rect", {
1733
+ }, [n.value ? (b(), s("svg", Kn, [...l[1] ||= [c("polyline", { points: "20 6 9 17 4 12" }, null, -1)]])) : (b(), s("svg", Gn, [...l[0] ||= [c("rect", {
1737
1734
  x: "9",
1738
1735
  y: "9",
1739
1736
  width: "13",
1740
1737
  height: "13",
1741
1738
  rx: "2",
1742
1739
  ry: "2"
1743
- }, null, -1), c("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)]])), c("span", null, T(n.value ? "Copied!" : "Copy"), 1)], 2)])), c("div", Yn, [t.showLineNumbers ? (b(), s("div", Xn, [(b(!0), s(e, null, C(r.value, (e, t) => (b(), s("span", {
1740
+ }, null, -1), c("path", { d: "M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" }, null, -1)]])), c("span", null, T(n.value ? "Copied!" : "Copy"), 1)], 2)])), c("div", qn, [t.showLineNumbers ? (b(), s("div", Jn, [(b(!0), s(e, null, C(r.value, (e, t) => (b(), s("span", {
1744
1741
  key: t,
1745
1742
  class: "line-number"
1746
1743
  }, T(t + 1), 1))), 128))])) : o("", !0), c("pre", {
1747
1744
  class: "code-content",
1748
1745
  textContent: T(t.code.trim())
1749
- }, null, 8, Zn)])]));
1746
+ }, null, 8, Yn)])]));
1750
1747
  }
1751
- }), [["__scopeId", "data-v-6fed5425"]]), $n = {
1748
+ }), [["__scopeId", "data-v-6fed5425"]]), Zn = {
1752
1749
  key: 0,
1753
1750
  class: "label"
1754
- }, er = /* @__PURE__ */ A(/* @__PURE__ */ p({
1751
+ }, Qn = /* @__PURE__ */ A(/* @__PURE__ */ p({
1755
1752
  __name: "NSwitch",
1756
1753
  props: {
1757
1754
  modelValue: {
@@ -1779,9 +1776,9 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1779
1776
  { disabled: e.disabled }
1780
1777
  ]]),
1781
1778
  onClick: l
1782
- }, [n[0] ||= c("div", { class: "inner" }, [c("div", { class: "handle" })], -1), e.label ? (b(), s("span", $n, T(e.label), 1)) : o("", !0)], 2));
1779
+ }, [n[0] ||= c("div", { class: "inner" }, [c("div", { class: "handle" })], -1), e.label ? (b(), s("span", Zn, T(e.label), 1)) : o("", !0)], 2));
1783
1780
  }
1784
- }), [["__scopeId", "data-v-ba9c30d4"]]), tr = /* @__PURE__ */ A(/* @__PURE__ */ p({
1781
+ }), [["__scopeId", "data-v-ba9c30d4"]]), $n = /* @__PURE__ */ A(/* @__PURE__ */ p({
1785
1782
  __name: "NTag",
1786
1783
  props: {
1787
1784
  intent: { default: "none" },
@@ -1830,49 +1827,49 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
1830
1827
  y2: "18"
1831
1828
  })], -1)]])) : o("", !0)], 2));
1832
1829
  }
1833
- }), [["__scopeId", "data-v-77d4f175"]]), nr = {
1830
+ }), [["__scopeId", "data-v-77d4f175"]]), er = {
1834
1831
  key: 0,
1835
1832
  class: "label"
1836
- }, rr = {
1833
+ }, tr = {
1837
1834
  key: 0,
1838
1835
  class: "picker-dropdown"
1839
- }, ir = { class: "picker-header" }, ar = { class: "header-nav" }, or = { class: "header-nav" }, sr = { class: "picker-body" }, cr = { class: "weekday-grid" }, lr = { class: "day-grid" }, ur = {
1836
+ }, nr = { class: "picker-header" }, rr = { class: "header-nav" }, ir = { class: "header-nav" }, ar = { class: "picker-body" }, or = { class: "weekday-grid" }, sr = { class: "day-grid" }, cr = {
1840
1837
  key: 1,
1841
1838
  class: "year-grid"
1842
- }, dr = {
1839
+ }, lr = {
1843
1840
  key: 0,
1844
1841
  class: "time-section"
1845
- }, fr = { class: "time-sliders" }, pr = {
1842
+ }, ur = { class: "time-sliders" }, dr = {
1846
1843
  key: 0,
1847
1844
  class: "time-row"
1848
- }, mr = ["value"], hr = { class: "time-val" }, gr = {
1845
+ }, fr = ["value"], pr = { class: "time-val" }, mr = {
1849
1846
  key: 1,
1850
1847
  class: "time-row"
1851
- }, _r = ["value"], vr = { class: "time-val" }, yr = { class: "mobile-sheet" }, br = { class: "picker-header" }, xr = { class: "header-nav" }, Sr = { class: "header-nav" }, Cr = { class: "picker-body" }, wr = { class: "weekday-grid" }, Tr = { class: "day-grid" }, Er = {
1848
+ }, hr = ["value"], gr = { class: "time-val" }, _r = { class: "mobile-sheet" }, vr = { class: "picker-header" }, yr = { class: "header-nav" }, br = { class: "header-nav" }, xr = { class: "picker-body" }, Sr = { class: "weekday-grid" }, Cr = { class: "day-grid" }, wr = {
1852
1849
  key: 1,
1853
1850
  class: "year-grid"
1854
- }, Dr = {
1851
+ }, Tr = {
1855
1852
  key: 0,
1856
1853
  class: "time-section"
1857
- }, Or = { class: "time-sliders" }, kr = {
1854
+ }, Er = { class: "time-sliders" }, Dr = {
1858
1855
  key: 0,
1859
1856
  class: "time-row"
1860
- }, Ar = ["value"], jr = { class: "time-val" }, Mr = {
1857
+ }, Or = ["value"], kr = { class: "time-val" }, Ar = {
1861
1858
  key: 1,
1862
1859
  class: "time-row"
1863
- }, Nr = ["value"], Pr = { class: "time-val" }, Fr = { class: "range-modal" }, Ir = { class: "range-body" }, Lr = {
1860
+ }, jr = ["value"], Mr = { class: "time-val" }, Nr = { class: "range-modal" }, Pr = { class: "range-body" }, Fr = {
1864
1861
  key: 0,
1865
1862
  class: "range-sep"
1866
- }, Rr = { class: "range-cal" }, zr = { class: "picker-header" }, Br = { class: "header-nav" }, Vr = {
1863
+ }, Ir = { class: "range-cal" }, Lr = { class: "picker-header" }, Rr = { class: "header-nav" }, zr = {
1867
1864
  key: 1,
1868
1865
  class: "header-nav-placeholder"
1869
- }, Hr = { class: "header-title no-click" }, Ur = { class: "header-nav" }, Wr = {
1866
+ }, Br = { class: "header-title no-click" }, Vr = { class: "header-nav" }, Hr = {
1870
1867
  key: 1,
1871
1868
  class: "header-nav-placeholder"
1872
- }, Gr = { class: "weekday-grid" }, Kr = { class: "day-grid range-day-grid" }, qr = ["onClick", "onMouseenter"], Jr = { class: "range-footer" }, Yr = { class: "range-display" }, Xr = { class: "mobile-sheet" }, Zr = {
1869
+ }, Ur = { class: "weekday-grid" }, Wr = { class: "day-grid range-day-grid" }, Gr = ["onClick", "onMouseenter"], Kr = { class: "range-footer" }, qr = { class: "range-display" }, Jr = { class: "mobile-sheet" }, Yr = {
1873
1870
  class: "picker-header",
1874
1871
  style: { "margin-top": "8px" }
1875
- }, Qr = { class: "header-nav" }, $r = { class: "header-title no-click" }, ei = { class: "header-nav" }, ti = { class: "weekday-grid" }, ni = { class: "day-grid range-day-grid" }, ri = ["onClick"], ii = { class: "range-footer" }, ai = { class: "range-display" }, oi = /* @__PURE__ */ A(/* @__PURE__ */ p({
1872
+ }, Xr = { class: "header-nav" }, Zr = { class: "header-title no-click" }, Qr = { class: "header-nav" }, $r = { class: "weekday-grid" }, ei = { class: "day-grid range-day-grid" }, ti = ["onClick"], ni = { class: "range-footer" }, ri = { class: "range-display" }, ii = /* @__PURE__ */ A(/* @__PURE__ */ p({
1876
1873
  __name: "NDatePicker",
1877
1874
  props: {
1878
1875
  modelValue: { default: "" },
@@ -2157,7 +2154,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2157
2154
  ref: x,
2158
2155
  class: "datepicker"
2159
2156
  }, [
2160
- t.title ? (b(), s("label", nr, T(t.title), 1)) : o("", !0),
2157
+ t.title ? (b(), s("label", er, T(t.title), 1)) : o("", !0),
2161
2158
  c("div", { class: g(["date-picker", {
2162
2159
  open: y.value && !t.range && !w.value,
2163
2160
  disabled: t.disabled
@@ -2184,9 +2181,9 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2184
2181
  }, [c("path", { d: "M18 6 6 18" }), c("path", { d: "m6 6 12 12" })], -1)]]),
2185
2182
  _: 1
2186
2183
  })) : o("", !0)]), f(n, { name: "fade" }, {
2187
- default: O(() => [y.value && !t.range && !w.value ? (b(), s("div", rr, [
2188
- c("div", ir, [
2189
- c("div", ar, [f(j, {
2184
+ default: O(() => [y.value && !t.range && !w.value ? (b(), s("div", tr, [
2185
+ c("div", nr, [
2186
+ c("div", rr, [f(j, {
2190
2187
  variant: "ghost",
2191
2188
  square: "",
2192
2189
  onClick: i[0] ||= (e) => Se(-1)
@@ -2226,7 +2223,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2226
2223
  class: "header-title",
2227
2224
  onClick: He
2228
2225
  }, [N.value === "date" ? (b(), s(e, { key: 0 }, [d(T(D[z.value]) + " " + T(R.value), 1)], 64)) : (b(), s(e, { key: 1 }, [d(T(B.value[0]) + " - " + T(B.value[B.value.length - 1]), 1)], 64))]),
2229
- c("div", or, [N.value === "date" ? (b(), a(j, {
2226
+ c("div", ir, [N.value === "date" ? (b(), a(j, {
2230
2227
  key: 0,
2231
2228
  variant: "ghost",
2232
2229
  square: "",
@@ -2263,10 +2260,10 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2263
2260
  _: 1
2264
2261
  })])
2265
2262
  ]),
2266
- c("div", sr, [N.value === "date" ? (b(), s(e, { key: 0 }, [c("div", cr, [(b(), s(e, null, C(ne, (e) => c("span", {
2263
+ c("div", ar, [N.value === "date" ? (b(), s(e, { key: 0 }, [c("div", or, [(b(), s(e, null, C(ne, (e) => c("span", {
2267
2264
  key: e,
2268
2265
  class: "weekday"
2269
- }, T(e), 1)), 64))]), c("div", lr, [(b(!0), s(e, null, C(fe.value, (e, t) => (b(), a(j, {
2266
+ }, T(e), 1)), 64))]), c("div", sr, [(b(!0), s(e, null, C(fe.value, (e, t) => (b(), a(j, {
2270
2267
  key: t,
2271
2268
  variant: _e(e) ? "solid" : V(e) ? "mute" : "ghost",
2272
2269
  intent: _e(e) || V(e) ? "primary" : "none",
@@ -2281,7 +2278,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2281
2278
  "intent",
2282
2279
  "class",
2283
2280
  "onClick"
2284
- ]))), 128))])], 64)) : (b(), s("div", ur, [(b(!0), s(e, null, C(B.value, (e) => (b(), a(j, {
2281
+ ]))), 128))])], 64)) : (b(), s("div", cr, [(b(!0), s(e, null, C(B.value, (e) => (b(), a(j, {
2285
2282
  key: e,
2286
2283
  variant: e === R.value ? "solid" : "ghost",
2287
2284
  intent: e === R.value ? "primary" : "none",
@@ -2295,7 +2292,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2295
2292
  "intent",
2296
2293
  "onClick"
2297
2294
  ]))), 128))]))]),
2298
- _.value && N.value === "date" ? (b(), s("div", dr, [c("div", fr, [m.value ? (b(), s("div", pr, [
2295
+ _.value && N.value === "date" ? (b(), s("div", lr, [c("div", ur, [m.value ? (b(), s("div", dr, [
2299
2296
  i[27] ||= c("span", { class: "time-label" }, "時", -1),
2300
2297
  f(j, {
2301
2298
  variant: "ghost",
@@ -2326,7 +2323,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2326
2323
  max: "23",
2327
2324
  value: I.value,
2328
2325
  onInput: i[5] ||= (e) => we(e, "H")
2329
- }, null, 40, mr),
2326
+ }, null, 40, fr),
2330
2327
  f(j, {
2331
2328
  variant: "ghost",
2332
2329
  square: "",
@@ -2349,8 +2346,8 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2349
2346
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2350
2347
  _: 1
2351
2348
  }),
2352
- c("span", hr, T(M(I.value)), 1)
2353
- ])) : o("", !0), h.value ? (b(), s("div", gr, [
2349
+ c("span", pr, T(M(I.value)), 1)
2350
+ ])) : o("", !0), h.value ? (b(), s("div", mr, [
2354
2351
  i[30] ||= c("span", { class: "time-label" }, "分", -1),
2355
2352
  f(j, {
2356
2353
  variant: "ghost",
@@ -2381,7 +2378,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2381
2378
  max: "59",
2382
2379
  value: L.value,
2383
2380
  onInput: i[8] ||= (e) => we(e, "m")
2384
- }, null, 40, _r),
2381
+ }, null, 40, hr),
2385
2382
  f(j, {
2386
2383
  variant: "ghost",
2387
2384
  square: "",
@@ -2404,7 +2401,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2404
2401
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2405
2402
  _: 1
2406
2403
  }),
2407
- c("span", vr, T(M(L.value)), 1)
2404
+ c("span", gr, T(M(L.value)), 1)
2408
2405
  ])) : o("", !0)])])) : o("", !0)
2409
2406
  ])) : o("", !0)]),
2410
2407
  _: 1
@@ -2414,10 +2411,10 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2414
2411
  key: 0,
2415
2412
  class: "mobile-overlay",
2416
2413
  onClick: k(Z, ["self"])
2417
- }, [c("div", yr, [
2414
+ }, [c("div", _r, [
2418
2415
  i[41] ||= c("div", { class: "sheet-handle" }, null, -1),
2419
- c("div", br, [
2420
- c("div", xr, [f(j, {
2416
+ c("div", vr, [
2417
+ c("div", yr, [f(j, {
2421
2418
  variant: "ghost",
2422
2419
  square: "",
2423
2420
  onClick: i[10] ||= (e) => Se(-1)
@@ -2457,7 +2454,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2457
2454
  class: "header-title",
2458
2455
  onClick: He
2459
2456
  }, [N.value === "date" ? (b(), s(e, { key: 0 }, [d(T(D[z.value]) + " " + T(R.value), 1)], 64)) : (b(), s(e, { key: 1 }, [d(T(B.value[0]) + " - " + T(B.value[B.value.length - 1]), 1)], 64))]),
2460
- c("div", Sr, [N.value === "date" ? (b(), a(j, {
2457
+ c("div", br, [N.value === "date" ? (b(), a(j, {
2461
2458
  key: 0,
2462
2459
  variant: "ghost",
2463
2460
  square: "",
@@ -2494,10 +2491,10 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2494
2491
  _: 1
2495
2492
  })])
2496
2493
  ]),
2497
- c("div", Cr, [N.value === "date" ? (b(), s(e, { key: 0 }, [c("div", wr, [(b(), s(e, null, C(ne, (e) => c("span", {
2494
+ c("div", xr, [N.value === "date" ? (b(), s(e, { key: 0 }, [c("div", Sr, [(b(), s(e, null, C(ne, (e) => c("span", {
2498
2495
  key: e,
2499
2496
  class: "weekday"
2500
- }, T(e), 1)), 64))]), c("div", Tr, [(b(!0), s(e, null, C(fe.value, (e, t) => (b(), a(j, {
2497
+ }, T(e), 1)), 64))]), c("div", Cr, [(b(!0), s(e, null, C(fe.value, (e, t) => (b(), a(j, {
2501
2498
  key: t,
2502
2499
  variant: _e(e) ? "solid" : V(e) ? "mute" : "ghost",
2503
2500
  intent: _e(e) || V(e) ? "primary" : "none",
@@ -2512,7 +2509,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2512
2509
  "intent",
2513
2510
  "class",
2514
2511
  "onClick"
2515
- ]))), 128))])], 64)) : (b(), s("div", Er, [(b(!0), s(e, null, C(B.value, (e) => (b(), a(j, {
2512
+ ]))), 128))])], 64)) : (b(), s("div", wr, [(b(!0), s(e, null, C(B.value, (e) => (b(), a(j, {
2516
2513
  key: e,
2517
2514
  variant: e === R.value ? "solid" : "ghost",
2518
2515
  intent: e === R.value ? "primary" : "none",
@@ -2526,7 +2523,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2526
2523
  "intent",
2527
2524
  "onClick"
2528
2525
  ]))), 128))]))]),
2529
- _.value && N.value === "date" ? (b(), s("div", Dr, [c("div", Or, [m.value ? (b(), s("div", kr, [
2526
+ _.value && N.value === "date" ? (b(), s("div", Tr, [c("div", Er, [m.value ? (b(), s("div", Dr, [
2530
2527
  i[37] ||= c("span", { class: "time-label" }, "時", -1),
2531
2528
  f(j, {
2532
2529
  variant: "ghost",
@@ -2557,7 +2554,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2557
2554
  max: "23",
2558
2555
  value: I.value,
2559
2556
  onInput: i[15] ||= (e) => we(e, "H")
2560
- }, null, 40, Ar),
2557
+ }, null, 40, Or),
2561
2558
  f(j, {
2562
2559
  variant: "ghost",
2563
2560
  square: "",
@@ -2580,8 +2577,8 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2580
2577
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2581
2578
  _: 1
2582
2579
  }),
2583
- c("span", jr, T(M(I.value)), 1)
2584
- ])) : o("", !0), h.value ? (b(), s("div", Mr, [
2580
+ c("span", kr, T(M(I.value)), 1)
2581
+ ])) : o("", !0), h.value ? (b(), s("div", Ar, [
2585
2582
  i[40] ||= c("span", { class: "time-label" }, "分", -1),
2586
2583
  f(j, {
2587
2584
  variant: "ghost",
@@ -2612,7 +2609,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2612
2609
  max: "59",
2613
2610
  value: L.value,
2614
2611
  onInput: i[18] ||= (e) => we(e, "m")
2615
- }, null, 40, Nr),
2612
+ }, null, 40, jr),
2616
2613
  f(j, {
2617
2614
  variant: "ghost",
2618
2615
  square: "",
@@ -2635,7 +2632,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2635
2632
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2636
2633
  _: 1
2637
2634
  }),
2638
- c("span", Pr, T(M(L.value)), 1)
2635
+ c("span", Mr, T(M(L.value)), 1)
2639
2636
  ])) : o("", !0)])])) : o("", !0)
2640
2637
  ])])) : o("", !0)]),
2641
2638
  _: 1
@@ -2645,11 +2642,11 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2645
2642
  key: 0,
2646
2643
  class: "range-overlay",
2647
2644
  onClick: k(Z, ["self"])
2648
- }, [c("div", Fr, [
2645
+ }, [c("div", Nr, [
2649
2646
  i[46] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
2650
- c("div", Ir, [(b(!0), s(e, null, C(ke.value, (t) => (b(), s(e, { key: t.isLeft ? "left" : "right" }, [t.isLeft ? o("", !0) : (b(), s("div", Lr)), c("div", Rr, [
2651
- c("div", zr, [
2652
- c("div", Br, [t.isLeft ? (b(), a(j, {
2647
+ c("div", Pr, [(b(!0), s(e, null, C(ke.value, (t) => (b(), s(e, { key: t.isLeft ? "left" : "right" }, [t.isLeft ? o("", !0) : (b(), s("div", Fr)), c("div", Ir, [
2648
+ c("div", Lr, [
2649
+ c("div", Rr, [t.isLeft ? (b(), a(j, {
2653
2650
  key: 0,
2654
2651
  variant: "ghost",
2655
2652
  square: "",
@@ -2667,9 +2664,9 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2667
2664
  "stroke-linejoin": "round"
2668
2665
  }, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
2669
2666
  _: 1
2670
- })) : (b(), s("div", Vr))]),
2671
- c("div", Hr, T(D[t.month]) + " " + T(t.year), 1),
2672
- c("div", Ur, [t.isLeft ? (b(), s("div", Wr)) : (b(), a(j, {
2667
+ })) : (b(), s("div", zr))]),
2668
+ c("div", Br, T(D[t.month]) + " " + T(t.year), 1),
2669
+ c("div", Vr, [t.isLeft ? (b(), s("div", Hr)) : (b(), a(j, {
2673
2670
  key: 0,
2674
2671
  variant: "ghost",
2675
2672
  square: "",
@@ -2689,18 +2686,18 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2689
2686
  _: 1
2690
2687
  }))])
2691
2688
  ]),
2692
- c("div", Gr, [(b(), s(e, null, C(ne, (e) => c("span", {
2689
+ c("div", Ur, [(b(), s(e, null, C(ne, (e) => c("span", {
2693
2690
  key: e,
2694
2691
  class: "weekday"
2695
2692
  }, T(e), 1)), 64))]),
2696
- c("div", Kr, [(b(!0), s(e, null, C(t.days, (e, t) => (b(), s("div", {
2693
+ c("div", Wr, [(b(!0), s(e, null, C(t.days, (e, t) => (b(), s("div", {
2697
2694
  key: t,
2698
2695
  class: g(["range-day", ze(e)]),
2699
2696
  onClick: (t) => Re(e),
2700
2697
  onMouseenter: (t) => Y.value = e
2701
- }, T(e.day), 43, qr))), 128))])
2698
+ }, T(e.day), 43, Gr))), 128))])
2702
2699
  ])], 64))), 128))]),
2703
- c("div", Jr, [c("div", Yr, [
2700
+ c("div", Kr, [c("div", qr, [
2704
2701
  c("span", { class: g(["range-val", { "is-empty": !Ne.value }]) }, T(Ne.value || "開始日期"), 3),
2705
2702
  i[44] ||= c("span", { class: "range-arrow" }, "→", -1),
2706
2703
  c("span", { class: g(["range-val", { "is-empty": !Pe.value }]) }, T(Pe.value || "結束日期"), 3)
@@ -2722,11 +2719,11 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2722
2719
  key: 0,
2723
2720
  class: "mobile-overlay",
2724
2721
  onClick: k(Z, ["self"])
2725
- }, [c("div", Xr, [
2722
+ }, [c("div", Jr, [
2726
2723
  i[51] ||= c("div", { class: "sheet-handle" }, null, -1),
2727
2724
  i[52] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
2728
- c("div", Zr, [
2729
- c("div", Qr, [f(j, {
2725
+ c("div", Yr, [
2726
+ c("div", Xr, [f(j, {
2730
2727
  variant: "ghost",
2731
2728
  square: "",
2732
2729
  onClick: Ie
@@ -2744,8 +2741,8 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2744
2741
  }, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
2745
2742
  _: 1
2746
2743
  })]),
2747
- c("div", $r, T(D[G.value]) + " " + T(W.value), 1),
2748
- c("div", ei, [f(j, {
2744
+ c("div", Zr, T(D[G.value]) + " " + T(W.value), 1),
2745
+ c("div", Qr, [f(j, {
2749
2746
  variant: "ghost",
2750
2747
  square: "",
2751
2748
  onClick: Le
@@ -2764,16 +2761,16 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2764
2761
  _: 1
2765
2762
  })])
2766
2763
  ]),
2767
- c("div", ti, [(b(), s(e, null, C(ne, (e) => c("span", {
2764
+ c("div", $r, [(b(), s(e, null, C(ne, (e) => c("span", {
2768
2765
  key: e,
2769
2766
  class: "weekday"
2770
2767
  }, T(e), 1)), 64))]),
2771
- c("div", ni, [(b(!0), s(e, null, C(De.value, (e, t) => (b(), s("div", {
2768
+ c("div", ei, [(b(!0), s(e, null, C(De.value, (e, t) => (b(), s("div", {
2772
2769
  key: t,
2773
2770
  class: g(["range-day", ze(e)]),
2774
2771
  onClick: (t) => Re(e)
2775
- }, T(e.day), 11, ri))), 128))]),
2776
- c("div", ii, [c("div", ai, [
2772
+ }, T(e.day), 11, ti))), 128))]),
2773
+ c("div", ni, [c("div", ri, [
2777
2774
  c("span", { class: g(["range-val", { "is-empty": !Ne.value }]) }, T(Ne.value || "開始日期"), 3),
2778
2775
  i[49] ||= c("span", { class: "range-arrow" }, "→", -1),
2779
2776
  c("span", { class: g(["range-val", { "is-empty": !Pe.value }]) }, T(Pe.value || "結束日期"), 3)
@@ -2792,7 +2789,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2792
2789
  })
2793
2790
  ], 512));
2794
2791
  }
2795
- }), [["__scopeId", "data-v-1511ddb7"]]), si = /* @__PURE__ */ A(/* @__PURE__ */ p({
2792
+ }), [["__scopeId", "data-v-1511ddb7"]]), ai = /* @__PURE__ */ A(/* @__PURE__ */ p({
2796
2793
  __name: "NTooltip",
2797
2794
  props: {
2798
2795
  content: { default: "" },
@@ -2827,10 +2824,10 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2827
2824
  _: 3
2828
2825
  })], 32));
2829
2826
  }
2830
- }), [["__scopeId", "data-v-7a53ca0a"]]), ci = { class: "modal-header" }, li = { class: "modal-title" }, ui = { class: "modal-content" }, di = {
2827
+ }), [["__scopeId", "data-v-7a53ca0a"]]), oi = { class: "modal-header" }, si = { class: "modal-title" }, ci = { class: "modal-content" }, li = {
2831
2828
  key: 0,
2832
2829
  class: "modal-footer"
2833
- }, fi = /* @__PURE__ */ A(/* @__PURE__ */ p({
2830
+ }, ui = /* @__PURE__ */ A(/* @__PURE__ */ p({
2834
2831
  __name: "NModal",
2835
2832
  props: {
2836
2833
  show: {
@@ -2874,7 +2871,7 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2874
2871
  class: "modal-container",
2875
2872
  style: _({ width: e.width })
2876
2873
  }, [
2877
- c("header", ci, [c("h3", li, T(e.title), 1), e.showClose ? (b(), s("button", {
2874
+ c("header", oi, [c("h3", si, T(e.title), 1), e.showClose ? (b(), s("button", {
2878
2875
  key: 0,
2879
2876
  class: "close-btn",
2880
2877
  onClick: l
@@ -2886,18 +2883,18 @@ var kn = { class: "icon-wrap" }, An = ["innerHTML"], jn = {
2886
2883
  fill: "currentColor",
2887
2884
  d: "M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z"
2888
2885
  })], -1)]])) : o("", !0)]),
2889
- c("main", ui, [w(r.$slots, "default", {}, void 0, !0)]),
2890
- r.$slots.footer ? (b(), s("footer", di, [w(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
2886
+ c("main", ci, [w(r.$slots, "default", {}, void 0, !0)]),
2887
+ r.$slots.footer ? (b(), s("footer", li, [w(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
2891
2888
  ], 4)], 4)) : o("", !0)]),
2892
2889
  _: 3
2893
2890
  })]));
2894
2891
  }
2895
- }), [["__scopeId", "data-v-ee2fac3c"]]), pi = 0, mi = x([]);
2896
- function hi() {
2892
+ }), [["__scopeId", "data-v-ee2fac3c"]]), di = 0, fi = x([]);
2893
+ function pi() {
2897
2894
  let e = function(e, t = {}) {
2898
- let n = ++pi;
2895
+ let n = ++di;
2899
2896
  return new Promise((r) => {
2900
- mi.push({
2897
+ fi.push({
2901
2898
  id: n,
2902
2899
  type: "alert",
2903
2900
  message: e,
@@ -2923,8 +2920,8 @@ function hi() {
2923
2920
  });
2924
2921
  function t(e, t = {}) {
2925
2922
  return new Promise((n) => {
2926
- let r = ++pi;
2927
- mi.push({
2923
+ let r = ++di;
2924
+ fi.push({
2928
2925
  id: r,
2929
2926
  type: "confirm",
2930
2927
  message: e,
@@ -2937,10 +2934,10 @@ function hi() {
2937
2934
  });
2938
2935
  }
2939
2936
  function n() {
2940
- for (; mi.length > 0;) mi.shift().resolve(!1);
2937
+ for (; fi.length > 0;) fi.shift().resolve(!1);
2941
2938
  }
2942
2939
  return {
2943
- alerts: mi,
2940
+ alerts: fi,
2944
2941
  alert: e,
2945
2942
  confirm: t,
2946
2943
  clearAlerts: n
@@ -2948,13 +2945,13 @@ function hi() {
2948
2945
  }
2949
2946
  //#endregion
2950
2947
  //#region src/components/NAlert.vue?vue&type=script&setup=true&lang.ts
2951
- var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-body" }, yi = {
2948
+ var mi = { class: "cards-wrapper" }, hi = ["innerHTML"], gi = { class: "card-body" }, _i = {
2952
2949
  key: 0,
2953
2950
  class: "card-title"
2954
- }, bi = { class: "card-message" }, xi = { class: "card-footer" }, Si = ["onClick"], Ci = ["onClick"], wi = /* @__PURE__ */ A(/* @__PURE__ */ p({
2951
+ }, vi = { class: "card-message" }, yi = { class: "card-footer" }, bi = ["onClick"], xi = ["onClick"], Si = /* @__PURE__ */ A(/* @__PURE__ */ p({
2955
2952
  __name: "NAlert",
2956
2953
  setup(n) {
2957
- let { alerts: r, clearAlerts: i } = hi(), l = {
2954
+ let { alerts: r, clearAlerts: i } = pi(), l = {
2958
2955
  success: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"M20 6 9 17l-5-5\"/></svg>",
2959
2956
  warning: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\"/><path d=\"M12 9v4\"/><path d=\"M12 17h.01\"/></svg>",
2960
2957
  danger: "<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"72\" height=\"72\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><circle cx=\"12\" cy=\"12\" r=\"10\"/><path d=\"m15 9-6 6\"/><path d=\"m9 9 6 6\"/></svg>",
@@ -2991,7 +2988,7 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
2991
2988
  }
2992
2989
  return v(() => document.addEventListener("keydown", m)), y(() => {
2993
2990
  document.removeEventListener("keydown", m), i();
2994
- }), (n, i) => (b(), a(t, { to: "body" }, [c("div", { class: g(["backdrop", { open: E(r).length > 0 }]) }, null, 2), c("div", { class: g(["alert-stack", { open: E(r).length > 0 }]) }, [c("div", gi, [(b(!0), s(e, null, C(E(r), (e, t) => (b(), s("div", {
2991
+ }), (n, i) => (b(), a(t, { to: "body" }, [c("div", { class: g(["backdrop", { open: E(r).length > 0 }]) }, null, 2), c("div", { class: g(["alert-stack", { open: E(r).length > 0 }]) }, [c("div", mi, [(b(!0), s(e, null, C(E(r), (e, t) => (b(), s("div", {
2995
2992
  key: e.id,
2996
2993
  class: g(["alert-card", `status-${e.status}`]),
2997
2994
  style: _(d(t))
@@ -2999,52 +2996,48 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
2999
2996
  c("div", {
3000
2997
  class: "card-icon",
3001
2998
  innerHTML: u(e)
3002
- }, null, 8, _i),
3003
- c("div", vi, [e.title ? (b(), s("p", yi, T(e.title), 1)) : o("", !0), c("p", bi, T(e.message), 1)]),
3004
- c("div", xi, [e.type === "confirm" ? (b(), s("button", {
2999
+ }, null, 8, hi),
3000
+ c("div", gi, [e.title ? (b(), s("p", _i, T(e.title), 1)) : o("", !0), c("p", vi, T(e.message), 1)]),
3001
+ c("div", yi, [e.type === "confirm" ? (b(), s("button", {
3005
3002
  key: 0,
3006
3003
  class: "btn btn-cancel",
3007
3004
  onClick: (t) => p(e)
3008
- }, T(e.cancelText), 9, Si)) : o("", !0), c("button", {
3005
+ }, T(e.cancelText), 9, bi)) : o("", !0), c("button", {
3009
3006
  class: g(["btn btn-confirm", `btn-${e.status}`]),
3010
3007
  onClick: (t) => f(e)
3011
- }, T(e.confirmText), 11, Ci)])
3008
+ }, T(e.confirmText), 11, xi)])
3012
3009
  ], 6))), 128))])], 2)]));
3013
3010
  }
3014
- }), [["__scopeId", "data-v-617a4dbd"]]), Ti = { class: "nav" }, Ei = ["onClick"], Di = ["innerHTML"], Oi = { class: "nav-list" }, ki = ["href", "onClick"], Ai = ["innerHTML"], ji = { class: "nav-text" }, Mi = { class: "user-capsule" }, Ni = /* @__PURE__ */ A(/* @__PURE__ */ p({
3011
+ }), [["__scopeId", "data-v-617a4dbd"]]), Ci = { class: "nav" }, wi = ["onClick"], Ti = ["innerHTML"], Ei = { class: "nav-list" }, Di = ["href", "onClick"], Oi = ["innerHTML"], ki = { class: "nav-text" }, Ai = { class: "user-capsule" }, ji = /* @__PURE__ */ A(/* @__PURE__ */ p({
3015
3012
  __name: "NSidebar",
3016
3013
  props: {
3017
3014
  isOpen: {
3018
3015
  type: Boolean,
3019
3016
  default: !1
3020
3017
  },
3021
- menus: {}
3018
+ menus: {},
3019
+ currentPath: { default: "" }
3022
3020
  },
3023
- emits: ["update:isOpen", "logout"],
3021
+ emits: [
3022
+ "update:isOpen",
3023
+ "logout",
3024
+ "navigate"
3025
+ ],
3024
3026
  setup(n, { emit: r }) {
3025
- let { isMenuExpanded: i, toggleMenu: o } = Pt(), l = S(!1), d = kt(), p = r, m = (e) => {
3026
- let t = d.currentRoute.value.path;
3027
- return e.children?.some((e) => e.route === t);
3028
- }, h = (e) => d.currentRoute.value.path === e, _ = (e) => {
3029
- if (d.currentRoute.value.path !== e) {
3030
- if (!d.getRoutes().some((t) => t.path === e)) {
3031
- alert(`Route path "${e}" does not exist.`), console.error(`Route path "${e}" does not exist.`);
3032
- return;
3033
- }
3034
- d.push(e);
3035
- }
3027
+ let { isMenuExpanded: i, toggleMenu: o } = Mt(), l = S(!1), d = r, p = (e) => e.children?.some((e) => e.route === n.currentPath), m = (e) => n.currentPath === e, h = (e) => {
3028
+ n.currentPath !== e.route && d("navigate", e);
3036
3029
  };
3037
- return (r, d) => (b(), s("nav", {
3030
+ return (r, _) => (b(), s("nav", {
3038
3031
  class: g(["sidebar", {
3039
3032
  open: n.isOpen,
3040
3033
  "hover-expanded": l.value
3041
3034
  }]),
3042
- onMouseleave: d[4] ||= (e) => l.value = !1
3035
+ onMouseleave: _[4] ||= (e) => l.value = !1
3043
3036
  }, [
3044
3037
  c("div", {
3045
3038
  class: "arrow",
3046
- onClick: d[0] ||= (e) => p("update:isOpen", !n.isOpen)
3047
- }, [...d[5] ||= [c("div", { class: "icon" }, [c("svg", {
3039
+ onClick: _[0] ||= (e) => d("update:isOpen", !n.isOpen)
3040
+ }, [..._[5] ||= [c("div", { class: "icon" }, [c("svg", {
3048
3041
  xmlns: "http://www.w3.org/2000/svg",
3049
3042
  width: "18",
3050
3043
  height: "18",
@@ -3057,16 +3050,16 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
3057
3050
  }, [c("path", { d: "m9 18 6-6-6-6" })])], -1)]]),
3058
3051
  c("div", {
3059
3052
  class: "content",
3060
- onMouseenter: d[2] ||= (e) => l.value = !0
3053
+ onMouseenter: _[2] ||= (e) => l.value = !0
3061
3054
  }, [
3062
- d[9] ||= c("div", { class: "header" }, [c("div", { class: "brand-logo" }, [c("span", { class: "logo-text" }, "NICKLABS"), c("span", { class: "logo-icon" }, "N")])], -1),
3063
- c("div", Ti, [(b(!0), s(e, null, C(n.menus, (t) => (b(), s("div", { class: g(["menu", {
3055
+ _[9] ||= c("div", { class: "header" }, [c("div", { class: "brand-logo" }, [c("span", { class: "logo-text" }, "NICKLABS"), c("span", { class: "logo-icon" }, "N")])], -1),
3056
+ c("div", Ci, [(b(!0), s(e, null, C(n.menus, (t) => (b(), s("div", { class: g(["menu", {
3064
3057
  open: E(i)(t.title),
3065
- active: m(t)
3058
+ active: p(t)
3066
3059
  }]) }, [c("div", {
3067
3060
  class: "title",
3068
3061
  onClick: (e) => E(o)(t.title)
3069
- }, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Di), c("span", null, T(t.title), 1)]), d[6] ||= c("svg", {
3062
+ }, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Ti), c("span", null, T(t.title), 1)]), _[6] ||= c("svg", {
3070
3063
  xmlns: "http://www.w3.org/2000/svg",
3071
3064
  width: "14",
3072
3065
  height: "14",
@@ -3077,19 +3070,19 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
3077
3070
  "stroke-linecap": "round",
3078
3071
  "stroke-linejoin": "round",
3079
3072
  class: "icon"
3080
- }, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, Ei), c("div", Oi, [c("div", null, [(b(!0), s(e, null, C(t.children, (e) => (b(), s("a", {
3073
+ }, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, wi), c("div", Ei, [c("div", null, [(b(!0), s(e, null, C(t.children, (e) => (b(), s("a", {
3081
3074
  href: e.route,
3082
- onClick: k((t) => _(e.route), ["prevent"])
3083
- }, [c("div", { class: g(["nav-item", { active: h(e.route) }]) }, [c("div", { innerHTML: e.icon }, null, 8, Ai), c("span", ji, T(e.title), 1)], 2)], 8, ki))), 256))])])], 2))), 256))]),
3084
- c("div", Mi, [d[8] ||= u("<div class=\"user-avatar\" data-v-bb988f83><img src=\"https://api.dicebear.com/7.x/pixel-art/svg?seed=Nick\" alt=\"User Avatar\" data-v-bb988f83></div><div class=\"user-info\" data-v-bb988f83><div class=\"user-name-row\" data-v-bb988f83><span class=\"user-name\" data-v-bb988f83>Nick Huang</span></div></div>", 2), f(j, {
3075
+ onClick: k((t) => h(e), ["prevent"])
3076
+ }, [c("div", { class: g(["nav-item", { active: m(e.route) }]) }, [c("div", { innerHTML: e.icon }, null, 8, Oi), c("span", ki, T(e.title), 1)], 2)], 8, Di))), 256))])])], 2))), 256))]),
3077
+ c("div", Ai, [_[8] ||= u("<div class=\"user-avatar\" data-v-4109788d><img src=\"https://api.dicebear.com/7.x/pixel-art/svg?seed=Nick\" alt=\"User Avatar\" data-v-4109788d></div><div class=\"user-info\" data-v-4109788d><div class=\"user-name-row\" data-v-4109788d><span class=\"user-name\" data-v-4109788d>Nick Huang</span></div></div>", 2), f(j, {
3085
3078
  class: "logout-btn",
3086
3079
  intent: "error",
3087
3080
  variant: "ghost",
3088
3081
  "radius-size": "full",
3089
3082
  padding: "12px",
3090
- onClick: d[1] ||= (e) => p("logout")
3083
+ onClick: _[1] ||= (e) => d("logout")
3091
3084
  }, {
3092
- default: O(() => [...d[7] ||= [c("svg", {
3085
+ default: O(() => [..._[7] ||= [c("svg", {
3093
3086
  xmlns: "http://www.w3.org/2000/svg",
3094
3087
  width: "18",
3095
3088
  height: "18",
@@ -3114,11 +3107,11 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
3114
3107
  ], 32),
3115
3108
  (b(), a(t, { to: "body" }, [c("div", {
3116
3109
  class: g(["overlay", { active: n.isOpen }]),
3117
- onClick: d[3] ||= (e) => p("update:isOpen", !n.isOpen)
3110
+ onClick: _[3] ||= (e) => d("update:isOpen", !n.isOpen)
3118
3111
  }, null, 2)]))
3119
3112
  ], 34));
3120
3113
  }
3121
- }), [["__scopeId", "data-v-bb988f83"]]), Pi = { class: "layout" }, Fi = { class: "main-content" }, Ii = { class: "copyright" }, Li = /* @__PURE__ */ A(/* @__PURE__ */ p({
3114
+ }), [["__scopeId", "data-v-4109788d"]]), Mi = { class: "layout" }, Ni = { class: "main-content" }, Pi = { class: "copyright" }, Fi = /* @__PURE__ */ A(/* @__PURE__ */ p({
3122
3115
  __name: "NLayout",
3123
3116
  props: {
3124
3117
  isShowSidebar: {
@@ -3126,29 +3119,36 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
3126
3119
  default: !0
3127
3120
  },
3128
3121
  menus: {},
3129
- copyright: {}
3122
+ copyright: {},
3123
+ currentPath: { default: "" }
3130
3124
  },
3131
- emits: ["logout"],
3125
+ emits: ["logout", "navigate"],
3132
3126
  setup(e, { emit: t }) {
3133
- let n = Pt(), r = t;
3134
- return (t, i) => (b(), s("div", Pi, [e.isShowSidebar ? (b(), a(Ni, {
3127
+ let n = Mt(), r = t;
3128
+ return (t, i) => (b(), s("div", Mi, [e.isShowSidebar ? (b(), a(ji, {
3135
3129
  key: 0,
3136
3130
  isOpen: E(n).isSidebarExpanded(),
3137
3131
  "onUpdate:isOpen": i[0] ||= (e) => E(n).toggleSidebar(),
3138
3132
  menus: e.menus,
3139
- onLogout: i[1] ||= (e) => r("logout")
3140
- }, null, 8, ["isOpen", "menus"])) : o("", !0), c("main", Fi, [w(t.$slots, "default", {}, void 0, !0), c("div", Ii, T(e.copyright), 1)])]));
3133
+ currentPath: e.currentPath,
3134
+ onLogout: i[1] ||= (e) => r("logout"),
3135
+ onNavigate: i[2] ||= (e) => r("navigate", e)
3136
+ }, null, 8, [
3137
+ "isOpen",
3138
+ "menus",
3139
+ "currentPath"
3140
+ ])) : o("", !0), c("main", Ni, [w(t.$slots, "default", {}, void 0, !0), c("div", Pi, T(e.copyright), 1)])]));
3141
3141
  }
3142
- }), [["__scopeId", "data-v-3f749efe"]]), Ri = { class: "topbar" }, zi = { class: "topbar-left" }, Bi = { class: "topbar-right" }, Vi = {
3142
+ }), [["__scopeId", "data-v-f1e6b1f1"]]), Ii = { class: "topbar" }, Li = { class: "topbar-left" }, Ri = { class: "topbar-right" }, zi = {
3143
3143
  key: 0,
3144
3144
  class: "pill"
3145
- }, Hi = {
3145
+ }, Bi = {
3146
3146
  key: 0,
3147
3147
  class: "name"
3148
- }, Ui = {
3148
+ }, Vi = {
3149
3149
  key: 1,
3150
3150
  class: "separator"
3151
- }, Wi = /* @__PURE__ */ A(/* @__PURE__ */ p({
3151
+ }, Hi = /* @__PURE__ */ A(/* @__PURE__ */ p({
3152
3152
  __name: "NNavigation",
3153
3153
  props: {
3154
3154
  isShowSidebar: {
@@ -3173,7 +3173,7 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
3173
3173
  let n = t, r = () => {
3174
3174
  document.fullscreenElement ? document.exitFullscreen?.() : document.documentElement.requestFullscreen();
3175
3175
  };
3176
- return (t, i) => (b(), s("header", Ri, [c("div", zi, [e.isShowSidebar ? (b(), a(j, {
3176
+ return (t, i) => (b(), s("header", Ii, [c("div", Li, [e.isShowSidebar ? (b(), a(j, {
3177
3177
  key: 0,
3178
3178
  onClick: i[0] ||= (e) => n("toggleSidebar"),
3179
3179
  padding: "8px"
@@ -3216,9 +3216,9 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
3216
3216
  c("path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" })
3217
3217
  ], -1)]]),
3218
3218
  _: 1
3219
- })) : o("", !0)]), c("div", Bi, [e.isShowUser || e.isShowLogoutButton ? (b(), s("div", Vi, [
3220
- e.isShowUser ? (b(), s("span", Hi, "Nick")) : o("", !0),
3221
- e.isShowUser && e.isShowLogoutButton ? (b(), s("div", Ui)) : o("", !0),
3219
+ })) : o("", !0)]), c("div", Ri, [e.isShowUser || e.isShowLogoutButton ? (b(), s("div", zi, [
3220
+ e.isShowUser ? (b(), s("span", Bi, "Nick")) : o("", !0),
3221
+ e.isShowUser && e.isShowLogoutButton ? (b(), s("div", Vi)) : o("", !0),
3222
3222
  e.isShowLogoutButton ? (b(), a(j, {
3223
3223
  key: 2,
3224
3224
  variant: "mute",
@@ -3244,10 +3244,10 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
3244
3244
  })) : o("", !0)
3245
3245
  ])) : o("", !0)])]));
3246
3246
  }
3247
- }), [["__scopeId", "data-v-bb912f40"]]), Gi = { class: "brand" }, Ki = ["src", "alt"], qi = {
3247
+ }), [["__scopeId", "data-v-bb912f40"]]), Ui = { class: "brand" }, Wi = ["src", "alt"], Gi = {
3248
3248
  key: 1,
3249
3249
  class: "icon"
3250
- }, Ji = { key: 2 }, Yi = { key: 3 }, Xi = /* @__PURE__ */ A(/* @__PURE__ */ p({
3250
+ }, Ki = { key: 2 }, qi = { key: 3 }, Ji = /* @__PURE__ */ A(/* @__PURE__ */ p({
3251
3251
  __name: "NLoginLayout",
3252
3252
  props: {
3253
3253
  backgroundImage: { default: "" },
@@ -3260,24 +3260,24 @@ var gi = { class: "cards-wrapper" }, _i = ["innerHTML"], vi = { class: "card-bod
3260
3260
  return (n, r) => (b(), s("div", {
3261
3261
  class: "login-wrapper",
3262
3262
  style: _({ "--login-bg": e.backgroundImage ? `url('${e.backgroundImage}')` : "var(--bg-gradient)" })
3263
- }, [f(tn, {
3263
+ }, [f($t, {
3264
3264
  size: "lg",
3265
3265
  radius: "xl",
3266
3266
  class: "card"
3267
3267
  }, {
3268
- default: O(() => [c("div", Gi, [
3268
+ default: O(() => [c("div", Ui, [
3269
3269
  t.value ? (b(), s("img", {
3270
3270
  key: 0,
3271
3271
  class: "logo-img",
3272
3272
  src: e.logo,
3273
3273
  alt: e.title
3274
- }, null, 8, Ki)) : (b(), s("div", qi, T(e.logo), 1)),
3275
- e.title ? (b(), s("h1", Ji, T(e.title), 1)) : o("", !0),
3276
- e.description ? (b(), s("p", Yi, T(e.description), 1)) : o("", !0)
3274
+ }, null, 8, Wi)) : (b(), s("div", Gi, T(e.logo), 1)),
3275
+ e.title ? (b(), s("h1", Ki, T(e.title), 1)) : o("", !0),
3276
+ e.description ? (b(), s("p", qi, T(e.description), 1)) : o("", !0)
3277
3277
  ]), w(n.$slots, "default", {}, void 0, !0)]),
3278
3278
  _: 3
3279
3279
  })], 4));
3280
3280
  }
3281
3281
  }), [["__scopeId", "data-v-f0866bc5"]]);
3282
3282
  //#endregion
3283
- export { wi as NAlert, j as NButton, tn as NCard, V as NCheckbox, Qn as NCode, oi as NDatePicker, en as NEmpty, Tt as NFileSelect, Yt as NForm, le as NInput, Li as NLayout, Tn as NList, Un as NLoading, Xi as NLoginLayout, fi as NModal, Wi as NNavigation, G as NSelect, Ni as NSidebar, er as NSwitch, Sn as NTable, tr as NTag, B as NTextarea, Fn as NToast, si as NTooltip, hi as useAlert, Pt as useSidebarManager, On as useToast };
3283
+ export { Si as NAlert, j as NButton, $t as NCard, V as NCheckbox, Xn as NCode, ii as NDatePicker, Qt as NEmpty, Tt as NFileSelect, qt as NForm, le as NInput, Fi as NLayout, Cn as NList, Vn as NLoading, Ji as NLoginLayout, ui as NModal, Hi as NNavigation, G as NSelect, ji as NSidebar, Qn as NSwitch, bn as NTable, $n as NTag, B as NTextarea, Nn as NToast, ai as NTooltip, pi as useAlert, Mt as useSidebarManager, En as useToast };