nicklabs-ui 1.0.78 → 1.0.80

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
@@ -1017,52 +1017,189 @@ var bt = {
1017
1017
  e > 0 && window.clearTimeout(e), e = window.setTimeout(t, n);
1018
1018
  };
1019
1019
  })() }
1020
- }, It = { class: "file-select" }, Lt = ["textContent"], Rt = ["aria-disabled"], zt = { class: "inner" }, Bt = { class: "text" }, Vt = ["textContent"], Ht = ["textContent"], Ut = /* @__PURE__ */ R(/* @__PURE__ */ p({
1020
+ }, It = 0, Lt = S([]);
1021
+ function Rt() {
1022
+ let e = function(e, t = {}) {
1023
+ let n = ++It;
1024
+ return new Promise((r) => {
1025
+ Lt.push({
1026
+ id: n,
1027
+ type: "alert",
1028
+ message: e,
1029
+ resolve: () => r(),
1030
+ status: t.status ?? "info",
1031
+ title: t.title ?? "",
1032
+ confirmText: t.confirmText ?? "確定"
1033
+ });
1034
+ });
1035
+ };
1036
+ e.success = (t, n = {}) => e(t, {
1037
+ ...n,
1038
+ status: "success"
1039
+ }), e.warning = (t, n = {}) => e(t, {
1040
+ ...n,
1041
+ status: "warning"
1042
+ }), e.danger = (t, n = {}) => e(t, {
1043
+ ...n,
1044
+ status: "danger"
1045
+ }), e.info = (t, n = {}) => e(t, {
1046
+ ...n,
1047
+ status: "info"
1048
+ });
1049
+ function t(e, t = {}) {
1050
+ return new Promise((n) => {
1051
+ let r = ++It;
1052
+ Lt.push({
1053
+ id: r,
1054
+ type: "confirm",
1055
+ message: e,
1056
+ resolve: n,
1057
+ status: t.status ?? "question",
1058
+ title: t.title ?? "",
1059
+ confirmText: t.confirmText ?? "確定",
1060
+ cancelText: t.cancelText ?? "取消"
1061
+ });
1062
+ });
1063
+ }
1064
+ function n() {
1065
+ for (; Lt.length > 0;) Lt.shift().resolve(!1);
1066
+ }
1067
+ return {
1068
+ alerts: Lt,
1069
+ alert: e,
1070
+ confirm: t,
1071
+ clearAlerts: n
1072
+ };
1073
+ }
1074
+ //#endregion
1075
+ //#region src/components/NFileSelect.vue?vue&type=script&setup=true&lang.ts
1076
+ var zt = {
1077
+ key: 0,
1078
+ class: "head"
1079
+ }, Bt = ["textContent"], Vt = {
1080
+ key: 1,
1081
+ class: "count-chip"
1082
+ }, Ht = ["aria-disabled"], Ut = { class: "text" }, Wt = ["textContent"], Gt = ["textContent"], Kt = {
1083
+ key: 2,
1084
+ class: "list"
1085
+ }, qt = { class: "meta" }, Jt = ["title"], Yt = { class: "sub" }, Xt = ["disabled", "onClick"], Zt = { class: "add-text" }, Qt = ["textContent"], $t = /* @__PURE__ */ R(/* @__PURE__ */ p({
1021
1086
  __name: "NFileSelect",
1022
1087
  props: {
1088
+ modelValue: { default: () => [] },
1089
+ accept: { default: "" },
1023
1090
  multiple: {
1024
1091
  type: Boolean,
1025
1092
  default: !1
1026
1093
  },
1094
+ maxSize: { default: 0 },
1027
1095
  disabled: {
1028
1096
  type: Boolean,
1029
1097
  default: !1
1030
1098
  },
1099
+ title: { default: "" },
1100
+ showCount: {
1101
+ type: Boolean,
1102
+ default: !1
1103
+ },
1031
1104
  label: { default: "拖曳檔案至此處或點擊選擇檔案" },
1032
- hint: { default: "支援所有檔案格式" },
1033
- accept: { default: "" },
1034
- title: { default: "" }
1105
+ hint: { default: "支援所有檔案格式" }
1035
1106
  },
1036
- emits: ["change:file", "change:files"],
1037
- setup(e, { emit: t }) {
1038
- let n = t, r = async () => {
1039
- if (!e.disabled) try {
1040
- if (e.multiple) {
1041
- let t = await $.input.custom(e.accept, !0);
1042
- if (t.length === 0) return;
1043
- n("change:files", t);
1044
- } else {
1045
- let t = await $.input.custom(e.accept, !1);
1046
- if (!t) return;
1047
- n("change:file", t);
1107
+ emits: [
1108
+ "update:modelValue",
1109
+ "change",
1110
+ "add",
1111
+ "remove",
1112
+ "error"
1113
+ ],
1114
+ setup(t, { emit: n }) {
1115
+ let r = n, { confirm: a } = Rt(), l = C(!1), u = i(() => t.modelValue.length), d = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 1024).toFixed(0) + " KB" : e < 1073741824 ? (e / 1048576).toFixed(1) + " MB" : (e / 1073741824).toFixed(2) + " GB", f = (e) => {
1116
+ if (e.type) return e.type;
1117
+ let t = e.name.lastIndexOf(".");
1118
+ return t > 0 ? e.name.slice(t + 1).toUpperCase() : "—";
1119
+ }, p = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : "f" + Math.random().toString(36).slice(2, 9), h = (e) => {
1120
+ let n = t.accept.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
1121
+ if (n.length === 0) return !0;
1122
+ let r = e.type.toLowerCase(), i = e.name.toLowerCase();
1123
+ return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r === e);
1124
+ }, _ = (e) => {
1125
+ if (t.disabled) return;
1126
+ let n = [], i = !1;
1127
+ if (Array.prototype.forEach.call(e, (e) => {
1128
+ if (!h(e)) {
1129
+ r("error", {
1130
+ type: "type",
1131
+ file: e
1132
+ });
1133
+ return;
1134
+ }
1135
+ if (t.maxSize > 0 && e.size > t.maxSize * 1024 * 1024) {
1136
+ r("error", {
1137
+ type: "size",
1138
+ file: e
1139
+ });
1140
+ return;
1141
+ }
1142
+ if (!t.multiple && t.modelValue.length + n.length >= 1) {
1143
+ i ||= (r("error", {
1144
+ type: "count",
1145
+ file: e
1146
+ }), !0);
1147
+ return;
1048
1148
  }
1049
- } catch (e) {
1050
- console.log(e);
1149
+ n.push({
1150
+ id: p(),
1151
+ file: e,
1152
+ name: e.name,
1153
+ size: e.size,
1154
+ type: e.type
1155
+ });
1156
+ }), n.length === 0) return;
1157
+ let a = [...t.modelValue, ...n];
1158
+ r("update:modelValue", a), r("change", a), r("add", n);
1159
+ }, v = async () => {
1160
+ if (!t.disabled) if (t.multiple) {
1161
+ let e = await $.input.custom(t.accept, !0);
1162
+ if (e.length === 0) return;
1163
+ _(e.map((e) => e.file));
1164
+ } else {
1165
+ let e = await $.input.custom(t.accept, !1);
1166
+ if (!e) return;
1167
+ _([e.file]);
1168
+ }
1169
+ }, y = async (e) => {
1170
+ if (t.disabled) return;
1171
+ let n = t.modelValue.find((t) => t.id === e);
1172
+ if (!n || !await a(`確定要移除「${n.name}」嗎?`, {
1173
+ title: "移除檔案",
1174
+ status: "danger",
1175
+ confirmText: "移除",
1176
+ cancelText: "取消"
1177
+ })) return;
1178
+ let i = t.modelValue.filter((t) => t.id !== e);
1179
+ r("update:modelValue", i), r("change", i), r("remove", n);
1180
+ }, b = {
1181
+ onClick: v,
1182
+ onDragenter: (e) => {
1183
+ t.disabled || (e.preventDefault(), l.value = !0);
1184
+ },
1185
+ onDragover: (e) => e.preventDefault(),
1186
+ onDragleave: (e) => {
1187
+ e.preventDefault(), l.value = !1;
1188
+ },
1189
+ onDrop: (e) => {
1190
+ t.disabled || (e.preventDefault(), l.value = !1, e.dataTransfer?.files?.length && _(e.dataTransfer.files));
1051
1191
  }
1052
1192
  };
1053
- return (t, n) => (x(), s("div", It, [e.title ? (x(), s("div", {
1193
+ return (n, r) => (x(), s("div", { class: g(["file-select", { "is-disabled": t.disabled }]) }, [t.title || t.showCount ? (x(), s("div", zt, [t.title ? (x(), s("span", {
1054
1194
  key: 0,
1055
- class: "label",
1056
- textContent: E(e.title)
1057
- }, null, 8, Lt)) : o("", !0), c("div", {
1058
- class: g(["select", {
1059
- multiple: e.multiple,
1060
- disabled: e.disabled
1061
- }]),
1195
+ class: "title",
1196
+ textContent: E(t.title)
1197
+ }, null, 8, Bt)) : o("", !0), t.showCount ? (x(), s("span", Vt, E(u.value) + " 個", 1)) : o("", !0)])) : o("", !0), u.value === 0 ? (x(), s("div", m({
1198
+ key: 1,
1199
+ class: ["empty", { "is-drag": l.value }],
1062
1200
  tabindex: "0",
1063
- "aria-disabled": e.disabled ? "true" : void 0,
1064
- onClick: r
1065
- }, [c("div", zt, [n[0] ||= c("span", {
1201
+ "aria-disabled": t.disabled ? "true" : void 0
1202
+ }, b), [r[0] ||= c("span", {
1066
1203
  class: "icon",
1067
1204
  "aria-hidden": "true"
1068
1205
  }, [c("svg", {
@@ -1075,47 +1212,94 @@ var bt = {
1075
1212
  "stroke-linejoin": "round",
1076
1213
  "stroke-width": "2",
1077
1214
  d: "M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-8l-4-4m0 0L8 8m4-4v12"
1078
- })])], -1), c("div", Bt, [c("p", {
1215
+ })])], -1), c("div", Ut, [c("p", {
1079
1216
  class: "label",
1080
- textContent: E(e.label)
1081
- }, null, 8, Vt), c("p", {
1217
+ textContent: E(t.label)
1218
+ }, null, 8, Wt), c("p", {
1082
1219
  class: "hint",
1083
- textContent: E(e.hint)
1084
- }, null, 8, Ht)])])], 10, Rt)]));
1220
+ textContent: E(t.hint)
1221
+ }, null, 8, Gt)])], 16, Ht)) : (x(), s("div", Kt, [(x(!0), s(e, null, w(t.modelValue, (e) => (x(), s("div", {
1222
+ key: e.id,
1223
+ class: "row"
1224
+ }, [
1225
+ r[2] ||= c("span", {
1226
+ class: "file-icon",
1227
+ "aria-hidden": "true"
1228
+ }, [c("svg", {
1229
+ viewBox: "0 0 24 24",
1230
+ fill: "none",
1231
+ stroke: "currentColor",
1232
+ "stroke-width": "1.8",
1233
+ "stroke-linecap": "round",
1234
+ "stroke-linejoin": "round"
1235
+ }, [c("path", { d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" }), c("path", { d: "M14 2v6h6" })])], -1),
1236
+ c("div", qt, [c("div", {
1237
+ class: "name",
1238
+ title: e.name
1239
+ }, E(e.name), 9, Jt), c("div", Yt, E(d(e.size)) + " · " + E(f(e)), 1)]),
1240
+ c("button", {
1241
+ class: "del-btn",
1242
+ "aria-label": "刪除",
1243
+ disabled: t.disabled,
1244
+ onClick: N((t) => y(e.id), ["stop"])
1245
+ }, [...r[1] ||= [c("svg", {
1246
+ viewBox: "0 0 24 24",
1247
+ fill: "none",
1248
+ stroke: "currentColor",
1249
+ "stroke-width": "1.8",
1250
+ "stroke-linecap": "round",
1251
+ "stroke-linejoin": "round"
1252
+ }, [c("path", { d: "M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14" })], -1)]], 8, Xt)
1253
+ ]))), 128)), t.multiple ? (x(), s("div", m({
1254
+ key: 0,
1255
+ class: ["add", { "is-drag": l.value }]
1256
+ }, b), [r[4] ||= c("span", {
1257
+ class: "plus",
1258
+ "aria-hidden": "true"
1259
+ }, [c("svg", {
1260
+ viewBox: "0 0 24 24",
1261
+ fill: "none",
1262
+ stroke: "currentColor",
1263
+ "stroke-width": "1.8",
1264
+ "stroke-linecap": "round"
1265
+ }, [c("path", { d: "M12 5v14M5 12h14" })])], -1), c("div", Zt, [r[3] ||= c("div", { class: "t" }, "新增檔案", -1), c("div", {
1266
+ class: "d",
1267
+ textContent: E(t.hint)
1268
+ }, null, 8, Qt)])], 16)) : o("", !0)]))], 2));
1085
1269
  }
1086
- }), [["__scopeId", "data-v-ef36f4d5"]]), Wt = C(!1), Gt = (e, t) => e.children?.some((e) => e.route === t) ?? !1, Kt = (e, t) => e.route === t;
1087
- function qt(e = "default") {
1270
+ }), [["__scopeId", "data-v-81f0f496"]]), en = C(!1), tn = (e, t) => e.children?.some((e) => e.route === t) ?? !1, nn = (e, t) => e.route === t;
1271
+ function rn(e = "default") {
1088
1272
  let t = `NSidebar:${e}:expanded`, n = S($.store.get(t, {}));
1089
- Wt.value = $.store.get("NSidebar:expanded", !1);
1273
+ en.value = $.store.get("NSidebar:expanded", !1);
1090
1274
  let r = (e) => !!n[e];
1091
1275
  return {
1092
1276
  isMenuExpanded: r,
1093
1277
  toggleMenu: (e) => {
1094
1278
  n[e] = !r(e), $.store.set(t, n);
1095
1279
  },
1096
- isSidebarExpanded: () => Wt.value,
1280
+ isSidebarExpanded: () => en.value,
1097
1281
  toggleSidebar: () => {
1098
- Wt.value = !Wt.value, $.store.set("NSidebar:expanded", Wt.value);
1282
+ en.value = !en.value, $.store.set("NSidebar:expanded", en.value);
1099
1283
  },
1100
1284
  setMenuActiveResolver: (e) => {
1101
- Gt = e;
1285
+ tn = e;
1102
1286
  },
1103
1287
  setItemActiveResolver: (e) => {
1104
- Kt = e;
1288
+ nn = e;
1105
1289
  },
1106
- resolveMenuActive: Gt,
1107
- resolveItemActive: Kt
1290
+ resolveMenuActive: tn,
1291
+ resolveItemActive: nn
1108
1292
  };
1109
1293
  }
1110
1294
  //#endregion
1111
1295
  //#region src/layouts/NHeroSection.vue?vue&type=script&setup=true&lang.ts
1112
- var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt = { class: "header" }, Zt = ["innerHTML"], Qt = { class: "body" }, $t = { class: "title-section" }, en = { class: "title" }, tn = { key: 0 }, nn = {
1296
+ var an = { class: "hero-section-container" }, on = { class: "hero-section" }, sn = { class: "header" }, cn = ["innerHTML"], ln = { class: "body" }, un = { class: "title-section" }, dn = { class: "title" }, fn = { key: 0 }, pn = {
1113
1297
  key: 1,
1114
1298
  class: "description"
1115
- }, rn = {
1299
+ }, mn = {
1116
1300
  key: 0,
1117
1301
  class: "toolbar"
1118
- }, an = /* @__PURE__ */ R(/* @__PURE__ */ p({
1302
+ }, hn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1119
1303
  __name: "NHeroSection",
1120
1304
  props: {
1121
1305
  icon: { default: "" },
@@ -1123,11 +1307,11 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1123
1307
  description: { default: "" }
1124
1308
  },
1125
1309
  setup(e) {
1126
- let t = qt();
1127
- return (n, r) => (x(), s("div", Jt, [c("div", Yt, [
1310
+ let t = rn();
1311
+ return (n, r) => (x(), s("div", an, [c("div", on, [
1128
1312
  r[2] ||= c("div", { class: "effect-background-left" }, null, -1),
1129
1313
  r[3] ||= c("div", { class: "effect-background-right" }, null, -1),
1130
- c("div", Xt, [f(z, {
1314
+ c("div", sn, [f(z, {
1131
1315
  class: "sidebar-toggle-button",
1132
1316
  padding: "8px",
1133
1317
  intent: "none",
@@ -1155,14 +1339,14 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1155
1339
  key: 0,
1156
1340
  class: "icon-bg",
1157
1341
  innerHTML: e.icon
1158
- }, null, 8, Zt)) : o("", !0),
1159
- c("div", Qt, [c("div", $t, [c("div", en, [e.title ? (x(), s("h1", tn, E(e.title), 1)) : o("", !0), n.$slots.description || e.description ? (x(), s("div", nn, [T(n.$slots, "description", {}, () => [d(E(e.description), 1)], !0)])) : o("", !0)])]), n.$slots.toolbar ? (x(), s("div", rn, [T(n.$slots, "toolbar", {}, void 0, !0)])) : o("", !0)])
1342
+ }, null, 8, cn)) : o("", !0),
1343
+ c("div", ln, [c("div", un, [c("div", dn, [e.title ? (x(), s("h1", fn, E(e.title), 1)) : o("", !0), n.$slots.description || e.description ? (x(), s("div", pn, [T(n.$slots, "description", {}, () => [d(E(e.description), 1)], !0)])) : o("", !0)])]), n.$slots.toolbar ? (x(), s("div", mn, [T(n.$slots, "toolbar", {}, void 0, !0)])) : o("", !0)])
1160
1344
  ])]));
1161
1345
  }
1162
- }), [["__scopeId", "data-v-6fef1cae"]]), on = { class: "content-container" }, sn = {
1346
+ }), [["__scopeId", "data-v-6fef1cae"]]), gn = { class: "content-container" }, _n = {
1163
1347
  key: 0,
1164
1348
  class: "nav-tabs"
1165
- }, cn = ["textContent", "onClick"], ln = { class: "tab-content" }, un = { class: "footer" }, dn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1349
+ }, vn = ["textContent", "onClick"], yn = { class: "tab-content" }, bn = { class: "footer" }, xn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1166
1350
  __name: "NForm",
1167
1351
  props: {
1168
1352
  model: { default: () => ({}) },
@@ -1187,7 +1371,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1187
1371
  }, m = () => {
1188
1372
  t.disabled || r("reset");
1189
1373
  };
1190
- return (n, i) => (x(), s("div", on, [T(n.$slots, "heroSection", {}, () => [f(an, {
1374
+ return (n, i) => (x(), s("div", gn, [T(n.$slots, "heroSection", {}, () => [f(hn, {
1191
1375
  icon: t.icon,
1192
1376
  title: t.title,
1193
1377
  description: t.description
@@ -1206,19 +1390,19 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1206
1390
  onSubmit: N(p, ["prevent"]),
1207
1391
  onReset: N(m, ["prevent"])
1208
1392
  }, [
1209
- t.tabs.length > 0 ? (x(), s("div", sn, [(x(!0), s(e, null, w(t.tabs, (e, t) => (x(), s("button", {
1393
+ t.tabs.length > 0 ? (x(), s("div", _n, [(x(!0), s(e, null, w(t.tabs, (e, t) => (x(), s("button", {
1210
1394
  key: `${e}${t}`,
1211
1395
  class: g(["nav-link", { active: d.value === t }]),
1212
1396
  textContent: E(e),
1213
1397
  onClick: () => {
1214
1398
  u.value = t, D($).store.set(a, t), r("update:modelValue", t);
1215
1399
  }
1216
- }, null, 10, cn))), 128))])) : o("", !0),
1217
- c("div", ln, [t.tabs.length > 0 ? (x(!0), s(e, { key: 0 }, w(t.tabs, (t, r) => (x(), s(e, null, [d.value === r ? T(n.$slots, `tab${r}`, { key: 0 }, void 0, !0) : o("", !0)], 64))), 256)) : o("", !0), t.tabs.length == 0 && n.$slots.tab0 ? T(n.$slots, "tab0", { key: 1 }, void 0, !0) : o("", !0)]),
1218
- c("div", un, [T(n.$slots, "footer", {}, void 0, !0)])
1400
+ }, null, 10, vn))), 128))])) : o("", !0),
1401
+ c("div", yn, [t.tabs.length > 0 ? (x(!0), s(e, { key: 0 }, w(t.tabs, (t, r) => (x(), s(e, null, [d.value === r ? T(n.$slots, `tab${r}`, { key: 0 }, void 0, !0) : o("", !0)], 64))), 256)) : o("", !0), t.tabs.length == 0 && n.$slots.tab0 ? T(n.$slots, "tab0", { key: 1 }, void 0, !0) : o("", !0)]),
1402
+ c("div", bn, [T(n.$slots, "footer", {}, void 0, !0)])
1219
1403
  ], 32)]));
1220
1404
  }
1221
- }), [["__scopeId", "data-v-fc11e625"]]), fn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1405
+ }), [["__scopeId", "data-v-fc11e625"]]), Sn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1222
1406
  __name: "NCard",
1223
1407
  props: {
1224
1408
  size: { default: "md" },
@@ -1230,13 +1414,13 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1230
1414
  [`radius-${e.radius}`]: !0
1231
1415
  }]) }, [T(t.$slots, "default", {}, void 0, !0)], 2));
1232
1416
  }
1233
- }), [["__scopeId", "data-v-56a18223"]]), pn = {
1417
+ }), [["__scopeId", "data-v-56a18223"]]), Cn = {
1234
1418
  key: 0,
1235
1419
  class: "paginate"
1236
- }, mn = { class: "summary" }, hn = { class: "pages" }, gn = {
1420
+ }, wn = { class: "summary" }, Tn = { class: "pages" }, En = {
1237
1421
  key: 1,
1238
1422
  class: "separator"
1239
- }, _n = /* @__PURE__ */ R(/* @__PURE__ */ p({
1423
+ }, Dn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1240
1424
  __name: "NPaginate",
1241
1425
  props: {
1242
1426
  totalItems: {},
@@ -1272,7 +1456,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1272
1456
  let t = Math.min(Math.max(1, e), u.value);
1273
1457
  l.value !== t && (l.value = t, r("onPageChange", l.value));
1274
1458
  }
1275
- return (n, r) => t.totalItems > 0 ? (x(), s("div", pn, [c("span", mn, "第 " + E(l.value) + " / " + E(u.value) + " 頁,共 " + E(t.totalItems) + " 筆", 1), c("div", hn, [
1459
+ return (n, r) => t.totalItems > 0 ? (x(), s("div", Cn, [c("span", wn, "第 " + E(l.value) + " / " + E(u.value) + " 頁,共 " + E(t.totalItems) + " 筆", 1), c("div", Tn, [
1276
1460
  f(z, {
1277
1461
  variant: "outline",
1278
1462
  padding: "",
@@ -1309,7 +1493,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1309
1493
  "variant",
1310
1494
  "intent",
1311
1495
  "onClick"
1312
- ])) : (x(), s("span", gn, "…"))], 64))), 128)),
1496
+ ])) : (x(), s("span", En, "…"))], 64))), 128)),
1313
1497
  f(z, {
1314
1498
  variant: "outline",
1315
1499
  padding: "",
@@ -1333,13 +1517,13 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1333
1517
  }, 8, ["disabled"])
1334
1518
  ])])) : o("", !0);
1335
1519
  }
1336
- }), [["__scopeId", "data-v-a191a116"]]), vn = ["innerHTML"], yn = { class: "title" }, bn = {
1520
+ }), [["__scopeId", "data-v-a191a116"]]), On = ["innerHTML"], kn = { class: "title" }, An = {
1337
1521
  key: 1,
1338
1522
  class: "description"
1339
- }, xn = {
1523
+ }, jn = {
1340
1524
  key: 2,
1341
1525
  class: "action"
1342
- }, Sn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1526
+ }, Mn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1343
1527
  __name: "NEmpty",
1344
1528
  props: {
1345
1529
  title: { default: "目前沒有資料" },
@@ -1353,37 +1537,37 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1353
1537
  key: 0,
1354
1538
  class: "icon",
1355
1539
  innerHTML: e.icon
1356
- }, null, 8, vn)) : o("", !0),
1357
- c("p", yn, E(e.title), 1),
1358
- e.description ? (x(), s("p", bn, E(e.description), 1)) : o("", !0),
1359
- t.$slots.default ? (x(), s("div", xn, [T(t.$slots, "default", {}, void 0, !0)])) : o("", !0)
1540
+ }, null, 8, On)) : o("", !0),
1541
+ c("p", kn, E(e.title), 1),
1542
+ e.description ? (x(), s("p", An, E(e.description), 1)) : o("", !0),
1543
+ t.$slots.default ? (x(), s("div", jn, [T(t.$slots, "default", {}, void 0, !0)])) : o("", !0)
1360
1544
  ], 2));
1361
1545
  }
1362
- }), [["__scopeId", "data-v-b9482c23"]]), Cn = {
1546
+ }), [["__scopeId", "data-v-b9482c23"]]), Nn = {
1363
1547
  key: 0,
1364
1548
  class: "loading-fullscreen"
1365
- }, wn = { class: "content" }, Tn = {
1549
+ }, Pn = { class: "content" }, Fn = {
1366
1550
  key: 0,
1367
1551
  class: "title"
1368
- }, En = {
1552
+ }, In = {
1369
1553
  key: 1,
1370
1554
  class: "loading-wrapper"
1371
- }, Dn = {
1555
+ }, Ln = {
1372
1556
  key: 0,
1373
1557
  class: "overlay"
1374
- }, On = { class: "content" }, kn = {
1558
+ }, Rn = { class: "content" }, zn = {
1375
1559
  key: 0,
1376
1560
  class: "title"
1377
- }, An = {
1561
+ }, Bn = {
1378
1562
  key: 0,
1379
1563
  class: "loading-inline"
1380
- }, jn = {
1564
+ }, Vn = {
1381
1565
  key: 0,
1382
1566
  class: "title"
1383
- }, Mn = {
1567
+ }, Hn = {
1384
1568
  key: 0,
1385
1569
  class: "title"
1386
- }, Nn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1570
+ }, Un = /* @__PURE__ */ R(/* @__PURE__ */ p({
1387
1571
  __name: "NLoading",
1388
1572
  props: {
1389
1573
  loading: {
@@ -1406,42 +1590,42 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1406
1590
  key: 0,
1407
1591
  to: "body"
1408
1592
  }, [f(n, { name: "fade" }, {
1409
- default: j(() => [r.loading ? (x(), s("div", Cn, [c("div", wn, [l[0] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1593
+ default: j(() => [r.loading ? (x(), s("div", Nn, [c("div", Pn, [l[0] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1410
1594
  cx: "25",
1411
1595
  cy: "25",
1412
1596
  r: "20",
1413
1597
  fill: "none",
1414
1598
  "stroke-width": "4"
1415
- })])], -1), r.title ? (x(), s("p", Tn, E(r.title), 1)) : o("", !0)])])) : o("", !0)]),
1599
+ })])], -1), r.title ? (x(), s("p", Fn, E(r.title), 1)) : o("", !0)])])) : o("", !0)]),
1416
1600
  _: 1
1417
- })])) : r.overlay ? (x(), s("div", En, [T(i.$slots, "default", {}, void 0, !0), f(n, { name: "fade" }, {
1418
- default: j(() => [r.loading ? (x(), s("div", Dn, [c("div", On, [l[1] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1601
+ })])) : r.overlay ? (x(), s("div", In, [T(i.$slots, "default", {}, void 0, !0), f(n, { name: "fade" }, {
1602
+ default: j(() => [r.loading ? (x(), s("div", Ln, [c("div", Rn, [l[1] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1419
1603
  cx: "25",
1420
1604
  cy: "25",
1421
1605
  r: "20",
1422
1606
  fill: "none",
1423
1607
  "stroke-width": "4"
1424
- })])], -1), r.title ? (x(), s("p", kn, E(r.title), 1)) : o("", !0)])])) : o("", !0)]),
1608
+ })])], -1), r.title ? (x(), s("p", zn, E(r.title), 1)) : o("", !0)])])) : o("", !0)]),
1425
1609
  _: 1
1426
- })])) : (x(), s(e, { key: 2 }, [r.loading ? (x(), s("div", An, [r.variant === "spinner" ? (x(), s(e, { key: 0 }, [l[2] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1610
+ })])) : (x(), s(e, { key: 2 }, [r.loading ? (x(), s("div", Bn, [r.variant === "spinner" ? (x(), s(e, { key: 0 }, [l[2] ||= c("div", { class: "spinner" }, [c("svg", { viewBox: "0 0 50 50" }, [c("circle", {
1427
1611
  cx: "25",
1428
1612
  cy: "25",
1429
1613
  r: "20",
1430
1614
  fill: "none",
1431
1615
  "stroke-width": "4"
1432
- })])], -1), r.title ? (x(), s("p", jn, E(r.title), 1)) : o("", !0)], 64)) : o("", !0), r.variant === "dots" ? (x(), s(e, { key: 1 }, [l[3] ||= c("div", { class: "dots" }, [
1616
+ })])], -1), r.title ? (x(), s("p", Vn, E(r.title), 1)) : o("", !0)], 64)) : o("", !0), r.variant === "dots" ? (x(), s(e, { key: 1 }, [l[3] ||= c("div", { class: "dots" }, [
1433
1617
  c("span"),
1434
1618
  c("span"),
1435
1619
  c("span")
1436
- ], -1), r.title ? (x(), s("p", Mn, E(r.title), 1)) : o("", !0)], 64)) : o("", !0)])) : T(i.$slots, "default", { key: 1 }, void 0, !0)], 64));
1620
+ ], -1), r.title ? (x(), s("p", Hn, E(r.title), 1)) : o("", !0)], 64)) : o("", !0)])) : T(i.$slots, "default", { key: 1 }, void 0, !0)], 64));
1437
1621
  }
1438
- }), [["__scopeId", "data-v-f3aa02fe"]]), Pn = { class: "table-scroll" }, Fn = {
1622
+ }), [["__scopeId", "data-v-f3aa02fe"]]), Wn = { class: "table-scroll" }, Gn = {
1439
1623
  key: 0,
1440
1624
  class: "batch"
1441
- }, In = ["onClick"], Ln = { class: "th-content" }, Rn = {
1625
+ }, Kn = ["onClick"], qn = { class: "th-content" }, Jn = {
1442
1626
  key: 0,
1443
1627
  class: "sort-icon"
1444
- }, zn = {
1628
+ }, Yn = {
1445
1629
  key: 0,
1446
1630
  viewBox: "0 0 24 24",
1447
1631
  fill: "none",
@@ -1449,7 +1633,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1449
1633
  "stroke-width": "2",
1450
1634
  "stroke-linecap": "round",
1451
1635
  "stroke-linejoin": "round"
1452
- }, Bn = {
1636
+ }, Xn = {
1453
1637
  key: 1,
1454
1638
  viewBox: "0 0 24 24",
1455
1639
  fill: "none",
@@ -1457,7 +1641,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1457
1641
  "stroke-width": "2",
1458
1642
  "stroke-linecap": "round",
1459
1643
  "stroke-linejoin": "round"
1460
- }, Vn = {
1644
+ }, Zn = {
1461
1645
  key: 2,
1462
1646
  viewBox: "0 0 24 24",
1463
1647
  fill: "none",
@@ -1465,13 +1649,13 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1465
1649
  "stroke-width": "2",
1466
1650
  "stroke-linecap": "round",
1467
1651
  "stroke-linejoin": "round"
1468
- }, Hn = {
1652
+ }, Qn = {
1469
1653
  key: 1,
1470
1654
  class: "actions"
1471
- }, Un = { key: 0 }, Wn = ["onClick"], Gn = {
1655
+ }, $n = { key: 0 }, er = ["onClick"], tr = {
1472
1656
  key: 0,
1473
1657
  class: "actions"
1474
- }, Kn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1658
+ }, nr = /* @__PURE__ */ R(/* @__PURE__ */ p({
1475
1659
  __name: "NTable",
1476
1660
  props: {
1477
1661
  columns: { default: () => [] },
@@ -1500,37 +1684,37 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1500
1684
  }), a = (e) => {
1501
1685
  e.sortable && (i.value.key === e.key ? i.value.order = i.value.order === "asc" ? "desc" : "asc" : (i.value.key = e.key, i.value.order = "asc"), r("sort", { ...i.value }));
1502
1686
  };
1503
- return (n, l) => (x(), s("div", { class: g(["table", [{ bordered: t.bordered }, { hoverable: t.hoverable }]]) }, [f(Nn, {
1687
+ return (n, l) => (x(), s("div", { class: g(["table", [{ bordered: t.bordered }, { hoverable: t.hoverable }]]) }, [f(Un, {
1504
1688
  loading: t.loading,
1505
1689
  overlay: ""
1506
1690
  }, {
1507
- default: j(() => [c("div", Pn, [c("table", null, [c("thead", null, [c("tr", null, [
1508
- n.$slots.batch ? (x(), s("th", Fn, [T(n.$slots, "batch", {}, void 0, !0)])) : o("", !0),
1691
+ default: j(() => [c("div", Wn, [c("table", null, [c("thead", null, [c("tr", null, [
1692
+ n.$slots.batch ? (x(), s("th", Gn, [T(n.$slots, "batch", {}, void 0, !0)])) : o("", !0),
1509
1693
  (x(!0), s(e, null, w(t.columns, (e) => (x(), s("th", {
1510
1694
  key: e.key,
1511
1695
  class: g({ sortable: e.sortable }),
1512
1696
  onClick: (t) => a(e)
1513
- }, [c("span", Ln, [d(E(e.label) + " ", 1), e.sortable ? (x(), s("span", Rn, [i.value.key !== e.key || i.value.order === null ? (x(), s("svg", zn, [...l[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" ? (x(), s("svg", Bn, [...l[1] ||= [c("path", { d: "M8 15l4-6 4 6" }, null, -1)]])) : (x(), s("svg", Vn, [...l[2] ||= [c("path", { d: "M8 9l4 6 4-6" }, null, -1)]]))])) : o("", !0)])], 10, In))), 128)),
1514
- n.$slots.actions ? (x(), s("th", Hn, [T(n.$slots, "actions-header", {}, () => [l[3] ||= d("操作", -1)], !0)])) : o("", !0)
1515
- ])]), !t.loading && t.items.length > 0 ? (x(), s("tbody", Un, [(x(!0), s(e, null, w(t.items, (e, i) => (x(), s("tr", {
1697
+ }, [c("span", qn, [d(E(e.label) + " ", 1), e.sortable ? (x(), s("span", Jn, [i.value.key !== e.key || i.value.order === null ? (x(), s("svg", Yn, [...l[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" ? (x(), s("svg", Xn, [...l[1] ||= [c("path", { d: "M8 15l4-6 4 6" }, null, -1)]])) : (x(), s("svg", Zn, [...l[2] ||= [c("path", { d: "M8 9l4 6 4-6" }, null, -1)]]))])) : o("", !0)])], 10, Kn))), 128)),
1698
+ n.$slots.actions ? (x(), s("th", Qn, [T(n.$slots, "actions-header", {}, () => [l[3] ||= d("操作", -1)], !0)])) : o("", !0)
1699
+ ])]), !t.loading && t.items.length > 0 ? (x(), s("tbody", $n, [(x(!0), s(e, null, w(t.items, (e, i) => (x(), s("tr", {
1516
1700
  key: e[t.itemKey] ?? i,
1517
1701
  onClick: (t) => r("click", e)
1518
1702
  }, [T(n.$slots, "item", {
1519
1703
  index: i,
1520
1704
  item: e,
1521
1705
  column: t.columns[i]
1522
- }, void 0, !0), n.$slots.actions ? (x(), s("td", Gn, [T(n.$slots, "actions", {
1706
+ }, void 0, !0), n.$slots.actions ? (x(), s("td", tr, [T(n.$slots, "actions", {
1523
1707
  index: i,
1524
1708
  item: e,
1525
1709
  column: t.columns[i]
1526
- }, void 0, !0)])) : o("", !0)], 8, Wn))), 128))])) : o("", !0)])])]),
1710
+ }, void 0, !0)])) : o("", !0)], 8, er))), 128))])) : o("", !0)])])]),
1527
1711
  _: 3
1528
- }, 8, ["loading"]), t.items.length === 0 ? T(n.$slots, "empty", { key: 0 }, () => [f(Sn, {
1712
+ }, 8, ["loading"]), t.items.length === 0 ? T(n.$slots, "empty", { key: 0 }, () => [f(Mn, {
1529
1713
  title: t.emptyTitle,
1530
1714
  description: t.emptyDescription
1531
1715
  }, null, 8, ["title", "description"])], !0) : o("", !0)], 2));
1532
1716
  }
1533
- }), [["__scopeId", "data-v-77619033"]]), qn = { class: "content-container" }, Jn = { key: 0 }, Yn = { class: "actions" }, Xn = /* @__PURE__ */ R(/* @__PURE__ */ p({
1717
+ }), [["__scopeId", "data-v-77619033"]]), rr = { class: "content-container" }, ir = { key: 0 }, ar = { class: "actions" }, or = /* @__PURE__ */ R(/* @__PURE__ */ p({
1534
1718
  __name: "NList",
1535
1719
  props: {
1536
1720
  title: { default: "" },
@@ -1600,7 +1784,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1600
1784
  function _() {
1601
1785
  r.value.clear();
1602
1786
  }
1603
- return (t, r) => (x(), s("div", qn, [T(t.$slots, "heroSection", {}, () => [f(an, {
1787
+ return (t, r) => (x(), s("div", rr, [T(t.$slots, "heroSection", {}, () => [f(hn, {
1604
1788
  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>",
1605
1789
  title: e.title,
1606
1790
  description: e.description
@@ -1696,11 +1880,11 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1696
1880
  })) : o("", !0)
1697
1881
  ]),
1698
1882
  key: "0"
1699
- } : void 0]), 1032, ["title", "description"])], !0), f(fn, {
1883
+ } : void 0]), 1032, ["title", "description"])], !0), f(Sn, {
1700
1884
  size: "none",
1701
1885
  radius: "xl"
1702
1886
  }, {
1703
- default: j(() => [f(Kn, {
1887
+ default: j(() => [f(nr, {
1704
1888
  columns: e.columns,
1705
1889
  items: e.items,
1706
1890
  hoverable: "",
@@ -1723,7 +1907,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1723
1907
  } : void 0,
1724
1908
  t.$slots.item ? {
1725
1909
  name: "item",
1726
- fn: j(({ item: n, column: r, index: i }) => [e.batchDeletable ? (x(), s("td", Jn, [f(xe, {
1910
+ fn: j(({ item: n, column: r, index: i }) => [e.batchDeletable ? (x(), s("td", ir, [f(xe, {
1727
1911
  onClick: N((e) => h(n), ["stop"]),
1728
1912
  "model-value": p(n.id)
1729
1913
  }, null, 8, ["onClick", "model-value"])])) : o("", !0), T(t.$slots, "item", {
@@ -1738,7 +1922,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1738
1922
  fn: j(({ item: r, index: i }) => [T(t.$slots, "actions", {
1739
1923
  item: r,
1740
1924
  index: i
1741
- }, () => [c("div", Yn, [e.updatable ? (x(), a(z, {
1925
+ }, () => [c("div", ar, [e.updatable ? (x(), a(z, {
1742
1926
  key: 0,
1743
1927
  variant: "outline",
1744
1928
  onClick: N(() => n("update", r), ["stop"])
@@ -1768,7 +1952,7 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1768
1952
  "empty-icon",
1769
1953
  "empty-title",
1770
1954
  "empty-description"
1771
- ]), e.items.length > 0 ? (x(), a(_n, {
1955
+ ]), e.items.length > 0 ? (x(), a(Dn, {
1772
1956
  key: 0,
1773
1957
  "total-items": e.totalItems,
1774
1958
  "current-page": e.currentPage,
@@ -1784,11 +1968,11 @@ var Jt = { class: "hero-section-container" }, Yt = { class: "hero-section" }, Xt
1784
1968
  _: 3
1785
1969
  })]));
1786
1970
  }
1787
- }), [["__scopeId", "data-v-66c8acf7"]]), Zn = 0, Qn = S([]);
1788
- function $n() {
1971
+ }), [["__scopeId", "data-v-66c8acf7"]]), sr = 0, cr = S([]);
1972
+ function lr() {
1789
1973
  let e = function(e, n = {}) {
1790
- let r = ++Zn, i = n.duration ?? 4e3;
1791
- Qn.push({
1974
+ let r = ++sr, i = n.duration ?? 4e3;
1975
+ cr.push({
1792
1976
  id: r,
1793
1977
  description: e,
1794
1978
  status: n.status ?? "info",
@@ -1810,31 +1994,31 @@ function $n() {
1810
1994
  status: "info"
1811
1995
  });
1812
1996
  function t(e) {
1813
- let t = Qn.findIndex((t) => t.id === e);
1814
- t !== -1 && Qn.splice(t, 1);
1997
+ let t = cr.findIndex((t) => t.id === e);
1998
+ t !== -1 && cr.splice(t, 1);
1815
1999
  }
1816
2000
  return {
1817
- toasts: Qn,
2001
+ toasts: cr,
1818
2002
  toast: e,
1819
2003
  removeToast: t
1820
2004
  };
1821
2005
  }
1822
2006
  //#endregion
1823
2007
  //#region src/components/NToast.vue?vue&type=script&setup=true&lang.ts
1824
- var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2008
+ var ur = { class: "icon-wrap" }, dr = ["innerHTML"], fr = {
1825
2009
  key: 0,
1826
2010
  class: "arc-timer",
1827
2011
  viewBox: "0 0 36 36",
1828
2012
  width: "36",
1829
2013
  height: "36",
1830
2014
  "shape-rendering": "geometricPrecision"
1831
- }, rr = { class: "body" }, ir = {
2015
+ }, pr = { class: "body" }, mr = {
1832
2016
  key: 0,
1833
2017
  class: "title"
1834
- }, ar = /* @__PURE__ */ R(/* @__PURE__ */ p({
2018
+ }, hr = /* @__PURE__ */ R(/* @__PURE__ */ p({
1835
2019
  __name: "NToast",
1836
2020
  setup(n) {
1837
- let { toasts: i } = $n(), l = {
2021
+ let { toasts: i } = lr(), l = {
1838
2022
  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>",
1839
2023
  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>",
1840
2024
  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>",
@@ -1848,10 +2032,10 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
1848
2032
  default: j(() => [(x(!0), s(e, null, w(D(i), (e) => (x(), s("div", {
1849
2033
  key: e.id,
1850
2034
  class: g(["toast", [`${e.status}`]])
1851
- }, [c("div", er, [c("div", {
2035
+ }, [c("div", ur, [c("div", {
1852
2036
  class: "icon",
1853
2037
  innerHTML: l[e.status]
1854
- }, null, 8, tr), e.duration > 0 ? (x(), s("svg", nr, [u[0] ||= c("circle", {
2038
+ }, null, 8, dr), e.duration > 0 ? (x(), s("svg", fr, [u[0] ||= c("circle", {
1855
2039
  class: "arc-track",
1856
2040
  cx: "18",
1857
2041
  cy: "18",
@@ -1863,17 +2047,17 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
1863
2047
  r: "16",
1864
2048
  transform: "rotate(-90 18 18)",
1865
2049
  style: _({ animationDuration: `${e.duration}ms` })
1866
- }, null, 4)])) : o("", !0)]), c("div", rr, [e.title ? (x(), s("p", ir, E(e.title), 1)) : o("", !0), e.description ? (x(), s("p", {
2050
+ }, null, 4)])) : o("", !0)]), c("div", pr, [e.title ? (x(), s("p", mr, E(e.title), 1)) : o("", !0), e.description ? (x(), s("p", {
1867
2051
  key: 1,
1868
2052
  class: g(e.title ? "description" : "title")
1869
2053
  }, E(e.description), 3)) : o("", !0)])], 2))), 128))]),
1870
2054
  _: 1
1871
2055
  })]));
1872
2056
  }
1873
- }), [["__scopeId", "data-v-53892c5f"]]), or = { class: "code" }, sr = {
2057
+ }), [["__scopeId", "data-v-53892c5f"]]), gr = { class: "code" }, _r = {
1874
2058
  key: 0,
1875
2059
  class: "header"
1876
- }, cr = { class: "language-label" }, lr = {
2060
+ }, vr = { class: "language-label" }, yr = {
1877
2061
  key: 0,
1878
2062
  xmlns: "http://www.w3.org/2000/svg",
1879
2063
  width: "14",
@@ -1884,7 +2068,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
1884
2068
  "stroke-width": "2",
1885
2069
  "stroke-linecap": "round",
1886
2070
  "stroke-linejoin": "round"
1887
- }, ur = {
2071
+ }, br = {
1888
2072
  key: 1,
1889
2073
  xmlns: "http://www.w3.org/2000/svg",
1890
2074
  width: "14",
@@ -1895,10 +2079,10 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
1895
2079
  "stroke-width": "2",
1896
2080
  "stroke-linecap": "round",
1897
2081
  "stroke-linejoin": "round"
1898
- }, dr = { class: "code-body" }, fr = {
2082
+ }, xr = { class: "code-body" }, Sr = {
1899
2083
  key: 0,
1900
2084
  class: "gutter"
1901
- }, pr = ["textContent"], mr = /* @__PURE__ */ R(/* @__PURE__ */ p({
2085
+ }, Cr = ["textContent"], wr = /* @__PURE__ */ R(/* @__PURE__ */ p({
1902
2086
  __name: "NCode",
1903
2087
  props: {
1904
2088
  code: {},
@@ -1917,28 +2101,28 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
1917
2101
  }, 2e3);
1918
2102
  } catch {}
1919
2103
  }
1920
- return (i, l) => (x(), s("div", or, [(t.language, x(), s("div", sr, [c("span", cr, E(t.language || "code"), 1), c("button", {
2104
+ return (i, l) => (x(), s("div", gr, [(t.language, x(), s("div", _r, [c("span", vr, E(t.language || "code"), 1), c("button", {
1921
2105
  class: g(["copy-btn", { copied: n.value }]),
1922
2106
  onClick: a
1923
- }, [n.value ? (x(), s("svg", ur, [...l[1] ||= [c("polyline", { points: "20 6 9 17 4 12" }, null, -1)]])) : (x(), s("svg", lr, [...l[0] ||= [c("rect", {
2107
+ }, [n.value ? (x(), s("svg", br, [...l[1] ||= [c("polyline", { points: "20 6 9 17 4 12" }, null, -1)]])) : (x(), s("svg", yr, [...l[0] ||= [c("rect", {
1924
2108
  x: "9",
1925
2109
  y: "9",
1926
2110
  width: "13",
1927
2111
  height: "13",
1928
2112
  rx: "2",
1929
2113
  ry: "2"
1930
- }, 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, E(n.value ? "Copied!" : "Copy"), 1)], 2)])), c("div", dr, [t.showLineNumbers ? (x(), s("div", fr, [(x(!0), s(e, null, w(r.value, (e, t) => (x(), s("span", {
2114
+ }, 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, E(n.value ? "Copied!" : "Copy"), 1)], 2)])), c("div", xr, [t.showLineNumbers ? (x(), s("div", Sr, [(x(!0), s(e, null, w(r.value, (e, t) => (x(), s("span", {
1931
2115
  key: t,
1932
2116
  class: "line-number"
1933
2117
  }, E(t + 1), 1))), 128))])) : o("", !0), c("pre", {
1934
2118
  class: "code-content",
1935
2119
  textContent: E(t.code.trim())
1936
- }, null, 8, pr)])]));
2120
+ }, null, 8, Cr)])]));
1937
2121
  }
1938
- }), [["__scopeId", "data-v-6fed5425"]]), hr = {
2122
+ }), [["__scopeId", "data-v-6fed5425"]]), Tr = {
1939
2123
  key: 0,
1940
2124
  class: "label"
1941
- }, gr = /* @__PURE__ */ R(/* @__PURE__ */ p({
2125
+ }, Er = /* @__PURE__ */ R(/* @__PURE__ */ p({
1942
2126
  __name: "NSwitch",
1943
2127
  props: {
1944
2128
  modelValue: {
@@ -1963,7 +2147,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
1963
2147
  let e = !n.modelValue;
1964
2148
  r("update:modelValue", e), r("change", e);
1965
2149
  };
1966
- return (t, n) => (x(), s("div", { class: g(["switch-wrapper", { inline: e.inline }]) }, [e.title ? (x(), s("label", hr, E(e.title), 1)) : o("", !0), c("div", {
2150
+ return (t, n) => (x(), s("div", { class: g(["switch-wrapper", { inline: e.inline }]) }, [e.title ? (x(), s("label", Tr, E(e.title), 1)) : o("", !0), c("div", {
1967
2151
  class: g(["switch", [
1968
2152
  `size-${e.size}`,
1969
2153
  { checked: a.value },
@@ -1972,7 +2156,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
1972
2156
  onClick: l
1973
2157
  }, [...n[0] ||= [c("div", { class: "inner" }, [c("div", { class: "handle" })], -1)]], 2)], 2));
1974
2158
  }
1975
- }), [["__scopeId", "data-v-efa08615"]]), _r = /* @__PURE__ */ R(/* @__PURE__ */ p({
2159
+ }), [["__scopeId", "data-v-efa08615"]]), Dr = /* @__PURE__ */ R(/* @__PURE__ */ p({
1976
2160
  __name: "NTag",
1977
2161
  props: {
1978
2162
  intent: { default: "none" },
@@ -2021,49 +2205,49 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2021
2205
  y2: "18"
2022
2206
  })], -1)]])) : o("", !0)], 2));
2023
2207
  }
2024
- }), [["__scopeId", "data-v-55e5be0f"]]), vr = {
2208
+ }), [["__scopeId", "data-v-55e5be0f"]]), Or = {
2025
2209
  key: 0,
2026
2210
  class: "label"
2027
- }, yr = {
2211
+ }, kr = {
2028
2212
  key: 0,
2029
2213
  class: "picker-dropdown"
2030
- }, 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 = {
2214
+ }, Ar = { class: "picker-header" }, jr = { class: "header-nav" }, Mr = { class: "header-nav" }, Nr = { class: "picker-body" }, Pr = { class: "weekday-grid" }, Fr = { class: "day-grid" }, Ir = {
2031
2215
  key: 1,
2032
2216
  class: "year-grid"
2033
- }, Dr = {
2217
+ }, Lr = {
2034
2218
  key: 0,
2035
2219
  class: "time-section"
2036
- }, Or = { class: "time-sliders" }, kr = {
2220
+ }, Rr = { class: "time-sliders" }, zr = {
2037
2221
  key: 0,
2038
2222
  class: "time-row"
2039
- }, Ar = ["value"], jr = { class: "time-val" }, Mr = {
2223
+ }, Br = ["value"], Vr = { class: "time-val" }, Hr = {
2040
2224
  key: 1,
2041
2225
  class: "time-row"
2042
- }, Nr = ["value"], Pr = { class: "time-val" }, Fr = { class: "mobile-sheet" }, Ir = { class: "picker-header" }, Lr = { class: "header-nav" }, Rr = { class: "header-nav" }, zr = { class: "picker-body" }, Br = { class: "weekday-grid" }, Vr = { class: "day-grid" }, Hr = {
2226
+ }, Ur = ["value"], Wr = { class: "time-val" }, Gr = { class: "mobile-sheet" }, Kr = { class: "picker-header" }, qr = { class: "header-nav" }, Jr = { class: "header-nav" }, Yr = { class: "picker-body" }, Xr = { class: "weekday-grid" }, Zr = { class: "day-grid" }, Qr = {
2043
2227
  key: 1,
2044
2228
  class: "year-grid"
2045
- }, Ur = {
2229
+ }, $r = {
2046
2230
  key: 0,
2047
2231
  class: "time-section"
2048
- }, Wr = { class: "time-sliders" }, Gr = {
2232
+ }, ei = { class: "time-sliders" }, ti = {
2049
2233
  key: 0,
2050
2234
  class: "time-row"
2051
- }, Kr = ["value"], qr = { class: "time-val" }, Jr = {
2235
+ }, ni = ["value"], ri = { class: "time-val" }, ii = {
2052
2236
  key: 1,
2053
2237
  class: "time-row"
2054
- }, Yr = ["value"], Xr = { class: "time-val" }, Zr = { class: "range-modal" }, Qr = { class: "range-body" }, $r = {
2238
+ }, ai = ["value"], oi = { class: "time-val" }, si = { class: "range-modal" }, ci = { class: "range-body" }, li = {
2055
2239
  key: 0,
2056
2240
  class: "range-sep"
2057
- }, ei = { class: "range-cal" }, ti = { class: "picker-header" }, ni = { class: "header-nav" }, ri = {
2241
+ }, ui = { class: "range-cal" }, di = { class: "picker-header" }, fi = { class: "header-nav" }, pi = {
2058
2242
  key: 1,
2059
2243
  class: "header-nav-placeholder"
2060
- }, ii = { class: "header-title no-click" }, ai = { class: "header-nav" }, oi = {
2244
+ }, mi = { class: "header-title no-click" }, hi = { class: "header-nav" }, gi = {
2061
2245
  key: 1,
2062
2246
  class: "header-nav-placeholder"
2063
- }, si = { class: "weekday-grid" }, ci = { class: "day-grid range-day-grid" }, li = ["onClick", "onMouseenter"], ui = { class: "range-footer" }, di = { class: "range-display" }, fi = { class: "mobile-sheet" }, pi = {
2247
+ }, _i = { class: "weekday-grid" }, vi = { class: "day-grid range-day-grid" }, yi = ["onClick", "onMouseenter"], bi = { class: "range-footer" }, xi = { class: "range-display" }, Si = { class: "mobile-sheet" }, Ci = {
2064
2248
  class: "picker-header",
2065
2249
  style: { "margin-top": "8px" }
2066
- }, mi = { class: "header-nav" }, hi = { class: "header-title no-click" }, gi = { class: "header-nav" }, _i = { class: "weekday-grid" }, vi = { class: "day-grid range-day-grid" }, yi = ["onClick"], bi = { class: "range-footer" }, xi = { class: "range-display" }, Si = /* @__PURE__ */ R(/* @__PURE__ */ p({
2250
+ }, wi = { class: "header-nav" }, Ti = { class: "header-title no-click" }, Ei = { class: "header-nav" }, Di = { class: "weekday-grid" }, Oi = { class: "day-grid range-day-grid" }, ki = ["onClick"], Ai = { class: "range-footer" }, ji = { class: "range-display" }, Mi = /* @__PURE__ */ R(/* @__PURE__ */ p({
2067
2251
  __name: "NDatePicker",
2068
2252
  props: {
2069
2253
  modelValue: { default: "" },
@@ -2352,7 +2536,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2352
2536
  ref: S,
2353
2537
  class: "datepicker"
2354
2538
  }, [
2355
- t.title ? (x(), s("label", vr, E(t.title), 1)) : o("", !0),
2539
+ t.title ? (x(), s("label", Or, E(t.title), 1)) : o("", !0),
2356
2540
  c("div", { class: g(["date-picker", {
2357
2541
  open: b.value && !t.range && !T.value,
2358
2542
  disabled: t.disabled
@@ -2380,9 +2564,9 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2380
2564
  }, [c("path", { d: "M18 6 6 18" }), c("path", { d: "m6 6 12 12" })], -1)]]),
2381
2565
  _: 1
2382
2566
  })) : o("", !0)]), f(n, { name: "fade" }, {
2383
- default: j(() => [b.value && !t.range && !T.value ? (x(), s("div", yr, [
2384
- c("div", br, [
2385
- c("div", xr, [f(z, {
2567
+ default: j(() => [b.value && !t.range && !T.value ? (x(), s("div", kr, [
2568
+ c("div", Ar, [
2569
+ c("div", jr, [f(z, {
2386
2570
  variant: "ghost",
2387
2571
  square: "",
2388
2572
  onClick: i[0] ||= (e) => ve(-1)
@@ -2422,7 +2606,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2422
2606
  class: "header-title",
2423
2607
  onClick: Ve
2424
2608
  }, [B.value === "date" ? (x(), s(e, { key: 0 }, [d(E(k[ie.value]) + " " + E(G.value), 1)], 64)) : (x(), s(e, { key: 1 }, [d(E(oe.value[0]) + " - " + E(oe.value[oe.value.length - 1]), 1)], 64))]),
2425
- c("div", Sr, [B.value === "date" ? (x(), a(z, {
2609
+ c("div", Mr, [B.value === "date" ? (x(), a(z, {
2426
2610
  key: 0,
2427
2611
  variant: "ghost",
2428
2612
  square: "",
@@ -2459,10 +2643,10 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2459
2643
  _: 1
2460
2644
  })])
2461
2645
  ]),
2462
- c("div", Cr, [B.value === "date" ? (x(), s(e, { key: 0 }, [c("div", wr, [(x(), s(e, null, w(M, (e) => c("span", {
2646
+ c("div", Nr, [B.value === "date" ? (x(), s(e, { key: 0 }, [c("div", Pr, [(x(), s(e, null, w(M, (e) => c("span", {
2463
2647
  key: e,
2464
2648
  class: "weekday"
2465
- }, E(e), 1)), 64))]), c("div", Tr, [(x(!0), s(e, null, w(se.value, (e, t) => (x(), a(z, {
2649
+ }, E(e), 1)), 64))]), c("div", Fr, [(x(!0), s(e, null, w(se.value, (e, t) => (x(), a(z, {
2466
2650
  key: t,
2467
2651
  variant: pe(e) ? "solid" : fe(e) ? "mute" : "ghost",
2468
2652
  intent: pe(e) || fe(e) ? "primary" : "none",
@@ -2477,7 +2661,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2477
2661
  "intent",
2478
2662
  "class",
2479
2663
  "onClick"
2480
- ]))), 128))])], 64)) : (x(), s("div", Er, [(x(!0), s(e, null, w(oe.value, (e) => (x(), a(z, {
2664
+ ]))), 128))])], 64)) : (x(), s("div", Ir, [(x(!0), s(e, null, w(oe.value, (e) => (x(), a(z, {
2481
2665
  key: e,
2482
2666
  variant: e === G.value ? "solid" : "ghost",
2483
2667
  intent: e === G.value ? "primary" : "none",
@@ -2491,7 +2675,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2491
2675
  "intent",
2492
2676
  "onClick"
2493
2677
  ]))), 128))]))]),
2494
- _.value && B.value === "date" ? (x(), s("div", Dr, [c("div", Or, [m.value ? (x(), s("div", kr, [
2678
+ _.value && B.value === "date" ? (x(), s("div", Lr, [c("div", Rr, [m.value ? (x(), s("div", zr, [
2495
2679
  i[27] ||= c("span", { class: "time-label" }, "時", -1),
2496
2680
  f(z, {
2497
2681
  variant: "ghost",
@@ -2522,7 +2706,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2522
2706
  max: "23",
2523
2707
  value: U.value,
2524
2708
  onInput: i[5] ||= (e) => xe(e, "H")
2525
- }, null, 40, Ar),
2709
+ }, null, 40, Br),
2526
2710
  f(z, {
2527
2711
  variant: "ghost",
2528
2712
  square: "",
@@ -2545,8 +2729,8 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2545
2729
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2546
2730
  _: 1
2547
2731
  }),
2548
- c("span", jr, E(R(U.value)), 1)
2549
- ])) : o("", !0), h.value ? (x(), s("div", Mr, [
2732
+ c("span", Vr, E(R(U.value)), 1)
2733
+ ])) : o("", !0), h.value ? (x(), s("div", Hr, [
2550
2734
  i[30] ||= c("span", { class: "time-label" }, "分", -1),
2551
2735
  f(z, {
2552
2736
  variant: "ghost",
@@ -2577,7 +2761,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2577
2761
  max: "59",
2578
2762
  value: W.value,
2579
2763
  onInput: i[8] ||= (e) => xe(e, "m")
2580
- }, null, 40, Nr),
2764
+ }, null, 40, Ur),
2581
2765
  f(z, {
2582
2766
  variant: "ghost",
2583
2767
  square: "",
@@ -2600,7 +2784,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2600
2784
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2601
2785
  _: 1
2602
2786
  }),
2603
- c("span", Pr, E(R(W.value)), 1)
2787
+ c("span", Wr, E(R(W.value)), 1)
2604
2788
  ])) : o("", !0)])])) : o("", !0)
2605
2789
  ])) : o("", !0)]),
2606
2790
  _: 1
@@ -2610,10 +2794,10 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2610
2794
  key: 0,
2611
2795
  class: "mobile-overlay",
2612
2796
  onClick: N(Be, ["self"])
2613
- }, [c("div", Fr, [
2797
+ }, [c("div", Gr, [
2614
2798
  i[41] ||= c("div", { class: "sheet-handle" }, null, -1),
2615
- c("div", Ir, [
2616
- c("div", Lr, [f(z, {
2799
+ c("div", Kr, [
2800
+ c("div", qr, [f(z, {
2617
2801
  variant: "ghost",
2618
2802
  square: "",
2619
2803
  onClick: i[10] ||= (e) => ve(-1)
@@ -2653,7 +2837,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2653
2837
  class: "header-title",
2654
2838
  onClick: Ve
2655
2839
  }, [B.value === "date" ? (x(), s(e, { key: 0 }, [d(E(k[ie.value]) + " " + E(G.value), 1)], 64)) : (x(), s(e, { key: 1 }, [d(E(oe.value[0]) + " - " + E(oe.value[oe.value.length - 1]), 1)], 64))]),
2656
- c("div", Rr, [B.value === "date" ? (x(), a(z, {
2840
+ c("div", Jr, [B.value === "date" ? (x(), a(z, {
2657
2841
  key: 0,
2658
2842
  variant: "ghost",
2659
2843
  square: "",
@@ -2690,10 +2874,10 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2690
2874
  _: 1
2691
2875
  })])
2692
2876
  ]),
2693
- c("div", zr, [B.value === "date" ? (x(), s(e, { key: 0 }, [c("div", Br, [(x(), s(e, null, w(M, (e) => c("span", {
2877
+ c("div", Yr, [B.value === "date" ? (x(), s(e, { key: 0 }, [c("div", Xr, [(x(), s(e, null, w(M, (e) => c("span", {
2694
2878
  key: e,
2695
2879
  class: "weekday"
2696
- }, E(e), 1)), 64))]), c("div", Vr, [(x(!0), s(e, null, w(se.value, (e, t) => (x(), a(z, {
2880
+ }, E(e), 1)), 64))]), c("div", Zr, [(x(!0), s(e, null, w(se.value, (e, t) => (x(), a(z, {
2697
2881
  key: t,
2698
2882
  variant: pe(e) ? "solid" : fe(e) ? "mute" : "ghost",
2699
2883
  intent: pe(e) || fe(e) ? "primary" : "none",
@@ -2708,7 +2892,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2708
2892
  "intent",
2709
2893
  "class",
2710
2894
  "onClick"
2711
- ]))), 128))])], 64)) : (x(), s("div", Hr, [(x(!0), s(e, null, w(oe.value, (e) => (x(), a(z, {
2895
+ ]))), 128))])], 64)) : (x(), s("div", Qr, [(x(!0), s(e, null, w(oe.value, (e) => (x(), a(z, {
2712
2896
  key: e,
2713
2897
  variant: e === G.value ? "solid" : "ghost",
2714
2898
  intent: e === G.value ? "primary" : "none",
@@ -2722,7 +2906,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2722
2906
  "intent",
2723
2907
  "onClick"
2724
2908
  ]))), 128))]))]),
2725
- _.value && B.value === "date" ? (x(), s("div", Ur, [c("div", Wr, [m.value ? (x(), s("div", Gr, [
2909
+ _.value && B.value === "date" ? (x(), s("div", $r, [c("div", ei, [m.value ? (x(), s("div", ti, [
2726
2910
  i[37] ||= c("span", { class: "time-label" }, "時", -1),
2727
2911
  f(z, {
2728
2912
  variant: "ghost",
@@ -2753,7 +2937,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2753
2937
  max: "23",
2754
2938
  value: U.value,
2755
2939
  onInput: i[15] ||= (e) => xe(e, "H")
2756
- }, null, 40, Kr),
2940
+ }, null, 40, ni),
2757
2941
  f(z, {
2758
2942
  variant: "ghost",
2759
2943
  square: "",
@@ -2776,8 +2960,8 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2776
2960
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2777
2961
  _: 1
2778
2962
  }),
2779
- c("span", qr, E(R(U.value)), 1)
2780
- ])) : o("", !0), h.value ? (x(), s("div", Jr, [
2963
+ c("span", ri, E(R(U.value)), 1)
2964
+ ])) : o("", !0), h.value ? (x(), s("div", ii, [
2781
2965
  i[40] ||= c("span", { class: "time-label" }, "分", -1),
2782
2966
  f(z, {
2783
2967
  variant: "ghost",
@@ -2808,7 +2992,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2808
2992
  max: "59",
2809
2993
  value: W.value,
2810
2994
  onInput: i[18] ||= (e) => xe(e, "m")
2811
- }, null, 40, Yr),
2995
+ }, null, 40, ai),
2812
2996
  f(z, {
2813
2997
  variant: "ghost",
2814
2998
  square: "",
@@ -2831,7 +3015,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2831
3015
  }, [c("path", { d: "m9 18 6-6-6-6" })], -1)]]),
2832
3016
  _: 1
2833
3017
  }),
2834
- c("span", Xr, E(R(W.value)), 1)
3018
+ c("span", oi, E(R(W.value)), 1)
2835
3019
  ])) : o("", !0)])])) : o("", !0)
2836
3020
  ])])) : o("", !0)]),
2837
3021
  _: 1
@@ -2841,11 +3025,11 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2841
3025
  key: 0,
2842
3026
  class: "range-overlay",
2843
3027
  onClick: N(Be, ["self"])
2844
- }, [c("div", Zr, [
3028
+ }, [c("div", si, [
2845
3029
  i[46] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
2846
- c("div", Qr, [(x(!0), s(e, null, w(Oe.value, (t) => (x(), s(e, { key: t.isLeft ? "left" : "right" }, [t.isLeft ? o("", !0) : (x(), s("div", $r)), c("div", ei, [
2847
- c("div", ti, [
2848
- c("div", ni, [t.isLeft ? (x(), a(z, {
3030
+ c("div", ci, [(x(!0), s(e, null, w(Oe.value, (t) => (x(), s(e, { key: t.isLeft ? "left" : "right" }, [t.isLeft ? o("", !0) : (x(), s("div", li)), c("div", ui, [
3031
+ c("div", di, [
3032
+ c("div", fi, [t.isLeft ? (x(), a(z, {
2849
3033
  key: 0,
2850
3034
  variant: "ghost",
2851
3035
  square: "",
@@ -2863,9 +3047,9 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2863
3047
  "stroke-linejoin": "round"
2864
3048
  }, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
2865
3049
  _: 1
2866
- })) : (x(), s("div", ri))]),
2867
- c("div", ii, E(k[t.month]) + " " + E(t.year), 1),
2868
- c("div", ai, [t.isLeft ? (x(), s("div", oi)) : (x(), a(z, {
3050
+ })) : (x(), s("div", pi))]),
3051
+ c("div", mi, E(k[t.month]) + " " + E(t.year), 1),
3052
+ c("div", hi, [t.isLeft ? (x(), s("div", gi)) : (x(), a(z, {
2869
3053
  key: 0,
2870
3054
  variant: "ghost",
2871
3055
  square: "",
@@ -2885,18 +3069,18 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2885
3069
  _: 1
2886
3070
  }))])
2887
3071
  ]),
2888
- c("div", si, [(x(), s(e, null, w(M, (e) => c("span", {
3072
+ c("div", _i, [(x(), s(e, null, w(M, (e) => c("span", {
2889
3073
  key: e,
2890
3074
  class: "weekday"
2891
3075
  }, E(e), 1)), 64))]),
2892
- c("div", ci, [(x(!0), s(e, null, w(t.days, (e, t) => (x(), s("div", {
3076
+ c("div", vi, [(x(!0), s(e, null, w(t.days, (e, t) => (x(), s("div", {
2893
3077
  key: t,
2894
3078
  class: g(["range-day", Le(e)]),
2895
3079
  onClick: (t) => Ie(e),
2896
3080
  onMouseenter: (t) => Z.value = e
2897
- }, E(e.day), 43, li))), 128))])
3081
+ }, E(e.day), 43, yi))), 128))])
2898
3082
  ])], 64))), 128))]),
2899
- c("div", ui, [c("div", di, [
3083
+ c("div", bi, [c("div", xi, [
2900
3084
  c("span", { class: g(["range-val", { "is-empty": !Me.value }]) }, E(Me.value || "開始日期"), 3),
2901
3085
  i[44] ||= c("span", { class: "range-arrow" }, "→", -1),
2902
3086
  c("span", { class: g(["range-val", { "is-empty": !Ne.value }]) }, E(Ne.value || "結束日期"), 3)
@@ -2918,11 +3102,11 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2918
3102
  key: 0,
2919
3103
  class: "mobile-overlay",
2920
3104
  onClick: N(Be, ["self"])
2921
- }, [c("div", fi, [
3105
+ }, [c("div", Si, [
2922
3106
  i[51] ||= c("div", { class: "sheet-handle" }, null, -1),
2923
3107
  i[52] ||= c("p", { class: "range-modal-title" }, "選擇日期範圍", -1),
2924
- c("div", pi, [
2925
- c("div", mi, [f(z, {
3108
+ c("div", Ci, [
3109
+ c("div", wi, [f(z, {
2926
3110
  variant: "ghost",
2927
3111
  square: "",
2928
3112
  onClick: Q
@@ -2940,8 +3124,8 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2940
3124
  }, [c("path", { d: "m15 18-6-6 6-6" })], -1)]]),
2941
3125
  _: 1
2942
3126
  })]),
2943
- c("div", hi, E(k[q.value]) + " " + E(Se.value), 1),
2944
- c("div", gi, [f(z, {
3127
+ c("div", Ti, E(k[q.value]) + " " + E(Se.value), 1),
3128
+ c("div", Ei, [f(z, {
2945
3129
  variant: "ghost",
2946
3130
  square: "",
2947
3131
  onClick: Fe
@@ -2960,16 +3144,16 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2960
3144
  _: 1
2961
3145
  })])
2962
3146
  ]),
2963
- c("div", _i, [(x(), s(e, null, w(M, (e) => c("span", {
3147
+ c("div", Di, [(x(), s(e, null, w(M, (e) => c("span", {
2964
3148
  key: e,
2965
3149
  class: "weekday"
2966
3150
  }, E(e), 1)), 64))]),
2967
- c("div", vi, [(x(!0), s(e, null, w(Ee.value, (e, t) => (x(), s("div", {
3151
+ c("div", Oi, [(x(!0), s(e, null, w(Ee.value, (e, t) => (x(), s("div", {
2968
3152
  key: t,
2969
3153
  class: g(["range-day", Le(e)]),
2970
3154
  onClick: (t) => Ie(e)
2971
- }, E(e.day), 11, yi))), 128))]),
2972
- c("div", bi, [c("div", xi, [
3155
+ }, E(e.day), 11, ki))), 128))]),
3156
+ c("div", Ai, [c("div", ji, [
2973
3157
  c("span", { class: g(["range-val", { "is-empty": !Me.value }]) }, E(Me.value || "開始日期"), 3),
2974
3158
  i[49] ||= c("span", { class: "range-arrow" }, "→", -1),
2975
3159
  c("span", { class: g(["range-val", { "is-empty": !Ne.value }]) }, E(Ne.value || "結束日期"), 3)
@@ -2988,7 +3172,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
2988
3172
  })
2989
3173
  ], 512));
2990
3174
  }
2991
- }), [["__scopeId", "data-v-a16fe255"]]), Ci = /* @__PURE__ */ R(/* @__PURE__ */ p({
3175
+ }), [["__scopeId", "data-v-a16fe255"]]), Ni = /* @__PURE__ */ R(/* @__PURE__ */ p({
2992
3176
  __name: "NTooltip",
2993
3177
  props: {
2994
3178
  content: { default: "" },
@@ -3023,10 +3207,10 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
3023
3207
  _: 3
3024
3208
  })], 32));
3025
3209
  }
3026
- }), [["__scopeId", "data-v-7a53ca0a"]]), wi = { class: "modal-header" }, Ti = { class: "modal-title" }, Ei = { class: "modal-content" }, Di = {
3210
+ }), [["__scopeId", "data-v-7a53ca0a"]]), Pi = { class: "modal-header" }, Fi = { class: "modal-title" }, Ii = { class: "modal-content" }, Li = {
3027
3211
  key: 0,
3028
3212
  class: "modal-footer"
3029
- }, Oi = /* @__PURE__ */ R(/* @__PURE__ */ p({
3213
+ }, Ri = /* @__PURE__ */ R(/* @__PURE__ */ p({
3030
3214
  __name: "NModal",
3031
3215
  props: {
3032
3216
  show: {
@@ -3070,7 +3254,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
3070
3254
  class: "modal-container",
3071
3255
  style: _({ width: e.width })
3072
3256
  }, [
3073
- c("header", wi, [c("h3", Ti, E(e.title), 1), e.showClose ? (x(), s("button", {
3257
+ c("header", Pi, [c("h3", Fi, E(e.title), 1), e.showClose ? (x(), s("button", {
3074
3258
  key: 0,
3075
3259
  class: "close-btn",
3076
3260
  onClick: l
@@ -3082,16 +3266,16 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
3082
3266
  fill: "currentColor",
3083
3267
  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"
3084
3268
  })], -1)]])) : o("", !0)]),
3085
- c("main", Ei, [T(r.$slots, "default", {}, void 0, !0)]),
3086
- r.$slots.footer ? (x(), s("footer", Di, [T(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
3269
+ c("main", Ii, [T(r.$slots, "default", {}, void 0, !0)]),
3270
+ r.$slots.footer ? (x(), s("footer", Li, [T(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
3087
3271
  ], 4)], 4)) : o("", !0)]),
3088
3272
  _: 3
3089
3273
  })]));
3090
3274
  }
3091
- }), [["__scopeId", "data-v-ee2fac3c"]]), ki = { class: "drawer-header" }, Ai = { class: "drawer-title" }, ji = { class: "drawer-body" }, Mi = {
3275
+ }), [["__scopeId", "data-v-ee2fac3c"]]), zi = { class: "drawer-header" }, Bi = { class: "drawer-title" }, Vi = { class: "drawer-body" }, Hi = {
3092
3276
  key: 0,
3093
3277
  class: "drawer-footer"
3094
- }, Ni = /* @__PURE__ */ R(/* @__PURE__ */ p({
3278
+ }, Ui = /* @__PURE__ */ R(/* @__PURE__ */ p({
3095
3279
  __name: "NDrawer",
3096
3280
  props: {
3097
3281
  show: {
@@ -3136,7 +3320,7 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
3136
3320
  class: g(["drawer-container", [`placement-${e.placement}`]]),
3137
3321
  style: _({ width: e.width })
3138
3322
  }, [
3139
- c("header", ki, [c("h3", Ai, [T(r.$slots, "title", {}, () => [d(E(e.title), 1)], !0)]), e.showClose ? (x(), s("button", {
3323
+ c("header", zi, [c("h3", Bi, [T(r.$slots, "title", {}, () => [d(E(e.title), 1)], !0)]), e.showClose ? (x(), s("button", {
3140
3324
  key: 0,
3141
3325
  class: "close-btn",
3142
3326
  onClick: l
@@ -3148,75 +3332,19 @@ var er = { class: "icon-wrap" }, tr = ["innerHTML"], nr = {
3148
3332
  fill: "currentColor",
3149
3333
  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"
3150
3334
  })], -1)]])) : o("", !0)]),
3151
- c("main", ji, [T(r.$slots, "default", {}, void 0, !0)]),
3152
- r.$slots.footer ? (x(), s("footer", Mi, [T(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
3335
+ c("main", Vi, [T(r.$slots, "default", {}, void 0, !0)]),
3336
+ r.$slots.footer ? (x(), s("footer", Hi, [T(r.$slots, "footer", {}, void 0, !0)])) : o("", !0)
3153
3337
  ], 6)], 4)) : o("", !0)]),
3154
3338
  _: 3
3155
3339
  })]));
3156
3340
  }
3157
- }), [["__scopeId", "data-v-f8c0a0bb"]]), Pi = 0, Fi = S([]);
3158
- function Ii() {
3159
- let e = function(e, t = {}) {
3160
- let n = ++Pi;
3161
- return new Promise((r) => {
3162
- Fi.push({
3163
- id: n,
3164
- type: "alert",
3165
- message: e,
3166
- resolve: () => r(),
3167
- status: t.status ?? "info",
3168
- title: t.title ?? "",
3169
- confirmText: t.confirmText ?? "確定"
3170
- });
3171
- });
3172
- };
3173
- e.success = (t, n = {}) => e(t, {
3174
- ...n,
3175
- status: "success"
3176
- }), e.warning = (t, n = {}) => e(t, {
3177
- ...n,
3178
- status: "warning"
3179
- }), e.danger = (t, n = {}) => e(t, {
3180
- ...n,
3181
- status: "danger"
3182
- }), e.info = (t, n = {}) => e(t, {
3183
- ...n,
3184
- status: "info"
3185
- });
3186
- function t(e, t = {}) {
3187
- return new Promise((n) => {
3188
- let r = ++Pi;
3189
- Fi.push({
3190
- id: r,
3191
- type: "confirm",
3192
- message: e,
3193
- resolve: n,
3194
- status: t.status ?? "question",
3195
- title: t.title ?? "",
3196
- confirmText: t.confirmText ?? "確定",
3197
- cancelText: t.cancelText ?? "取消"
3198
- });
3199
- });
3200
- }
3201
- function n() {
3202
- for (; Fi.length > 0;) Fi.shift().resolve(!1);
3203
- }
3204
- return {
3205
- alerts: Fi,
3206
- alert: e,
3207
- confirm: t,
3208
- clearAlerts: n
3209
- };
3210
- }
3211
- //#endregion
3212
- //#region src/components/NAlert.vue?vue&type=script&setup=true&lang.ts
3213
- var Li = { class: "cards-wrapper" }, Ri = ["innerHTML"], zi = { class: "card-body" }, Bi = {
3341
+ }), [["__scopeId", "data-v-f8c0a0bb"]]), Wi = { class: "cards-wrapper" }, Gi = ["innerHTML"], Ki = { class: "card-body" }, qi = {
3214
3342
  key: 0,
3215
3343
  class: "card-title"
3216
- }, Vi = { class: "card-message" }, Hi = { class: "card-footer" }, Ui = ["onClick"], Wi = ["onClick"], Gi = /* @__PURE__ */ R(/* @__PURE__ */ p({
3344
+ }, Ji = { class: "card-message" }, Yi = { class: "card-footer" }, Xi = ["onClick"], Zi = ["onClick"], Qi = /* @__PURE__ */ R(/* @__PURE__ */ p({
3217
3345
  __name: "NAlert",
3218
3346
  setup(n) {
3219
- let { alerts: r, clearAlerts: i } = Ii(), l = {
3347
+ let { alerts: r, clearAlerts: i } = Rt(), l = {
3220
3348
  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=\"M8 12l3 3 5-6\"/></svg>",
3221
3349
  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>",
3222
3350
  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>",
@@ -3253,7 +3381,7 @@ var Li = { class: "cards-wrapper" }, Ri = ["innerHTML"], zi = { class: "card-bod
3253
3381
  }
3254
3382
  return y(() => document.addEventListener("keydown", m)), b(() => {
3255
3383
  document.removeEventListener("keydown", m), i();
3256
- }), (n, i) => (x(), a(t, { to: "body" }, [c("div", { class: g(["backdrop", { open: D(r).length > 0 }]) }, null, 2), c("div", { class: g(["alert-stack", { open: D(r).length > 0 }]) }, [c("div", Li, [(x(!0), s(e, null, w(D(r), (e, t) => (x(), s("div", {
3384
+ }), (n, i) => (x(), a(t, { to: "body" }, [c("div", { class: g(["backdrop", { open: D(r).length > 0 }]) }, null, 2), c("div", { class: g(["alert-stack", { open: D(r).length > 0 }]) }, [c("div", Wi, [(x(!0), s(e, null, w(D(r), (e, t) => (x(), s("div", {
3257
3385
  key: e.id,
3258
3386
  class: g(["alert-card", `status-${e.status}`]),
3259
3387
  style: _(d(t))
@@ -3261,22 +3389,22 @@ var Li = { class: "cards-wrapper" }, Ri = ["innerHTML"], zi = { class: "card-bod
3261
3389
  c("div", {
3262
3390
  class: "card-icon",
3263
3391
  innerHTML: u(e)
3264
- }, null, 8, Ri),
3265
- c("div", zi, [e.title ? (x(), s("p", Bi, E(e.title), 1)) : o("", !0), c("p", Vi, E(e.message), 1)]),
3266
- c("div", Hi, [e.type === "confirm" ? (x(), s("button", {
3392
+ }, null, 8, Gi),
3393
+ c("div", Ki, [e.title ? (x(), s("p", qi, E(e.title), 1)) : o("", !0), c("p", Ji, E(e.message), 1)]),
3394
+ c("div", Yi, [e.type === "confirm" ? (x(), s("button", {
3267
3395
  key: 0,
3268
3396
  class: "btn btn-cancel",
3269
3397
  onClick: (t) => p(e)
3270
- }, E(e.cancelText), 9, Ui)) : o("", !0), c("button", {
3398
+ }, E(e.cancelText), 9, Xi)) : o("", !0), c("button", {
3271
3399
  class: g(["btn btn-confirm", `btn-${e.status}`]),
3272
3400
  onClick: (t) => f(e)
3273
- }, E(e.confirmText), 11, Wi)])
3401
+ }, E(e.confirmText), 11, Zi)])
3274
3402
  ], 6))), 128))])], 2)]));
3275
3403
  }
3276
3404
  }), [["__scopeId", "data-v-20105bbb"]]);
3277
3405
  //#endregion
3278
3406
  //#region src/composables/useDisclosure.ts
3279
- function Ki() {
3407
+ function $i() {
3280
3408
  let e = C(!1);
3281
3409
  function t() {
3282
3410
  e.value = !0;
@@ -3292,19 +3420,19 @@ function Ki() {
3292
3420
  }
3293
3421
  //#endregion
3294
3422
  //#region src/components/NVideoSelect.vue?vue&type=script&setup=true&lang.ts
3295
- var qi = {
3423
+ var ea = {
3296
3424
  key: 0,
3297
3425
  class: "head"
3298
- }, Ji = ["textContent"], Yi = {
3426
+ }, ta = ["textContent"], na = {
3299
3427
  key: 1,
3300
3428
  class: "count-chip"
3301
- }, Xi = { class: "grid" }, Zi = ["textContent"], Qi = ["textContent"], $i = ["onClick"], ea = ["src"], ta = {
3429
+ }, ra = { class: "grid" }, ia = ["textContent"], aa = ["textContent"], oa = ["onClick"], sa = ["src"], ca = {
3302
3430
  key: 1,
3303
3431
  class: "placeholder-label"
3304
- }, na = { class: "duration" }, ra = { class: "card-body" }, ia = ["title"], aa = { class: "file-meta" }, oa = { class: "card-actions" }, sa = ["onClick"], ca = ["disabled", "onClick"], la = { class: "vi-modal-card" }, ua = { class: "vi-modal-media" }, da = ["src"], fa = {
3432
+ }, la = { class: "duration" }, ua = { class: "card-body" }, da = ["title"], fa = { class: "file-meta" }, pa = { class: "card-actions" }, ma = ["onClick"], ha = ["disabled", "onClick"], ga = { class: "vi-modal-card" }, _a = { class: "vi-modal-media" }, va = ["src"], ya = {
3305
3433
  key: 1,
3306
3434
  class: "vi-modal-placeholder"
3307
- }, pa = { class: "vi-modal-bar" }, ma = { class: "vi-modal-info" }, ha = { class: "modal-name" }, ga = { class: "modal-meta" }, _a = /* @__PURE__ */ R(/* @__PURE__ */ p({
3435
+ }, ba = { class: "vi-modal-bar" }, xa = { class: "vi-modal-info" }, Sa = { class: "modal-name" }, Ca = { class: "modal-meta" }, wa = /* @__PURE__ */ R(/* @__PURE__ */ p({
3308
3436
  __name: "NVideoSelect",
3309
3437
  props: {
3310
3438
  modelValue: { default: () => [] },
@@ -3338,7 +3466,7 @@ var qi = {
3338
3466
  "error"
3339
3467
  ],
3340
3468
  setup(r, { emit: l }) {
3341
- let p = l, h = C(!1), _ = C(null), [y, b, S] = Ki(), { confirm: T } = Ii(), O = i(() => r.modelValue.length), k = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 1024).toFixed(0) + " KB" : e < 1073741824 ? (e / 1048576).toFixed(1) + " MB" : (e / 1073741824).toFixed(2) + " GB", M = (e) => {
3469
+ let p = l, h = C(!1), _ = C(null), [y, b, S] = $i(), { confirm: T } = Rt(), O = i(() => r.modelValue.length), k = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 1024).toFixed(0) + " KB" : e < 1073741824 ? (e / 1048576).toFixed(1) + " MB" : (e / 1073741824).toFixed(2) + " GB", M = (e) => {
3342
3470
  if (e == null || isNaN(e)) return "0:00";
3343
3471
  let t = Math.round(e), n = Math.floor(t / 60), r = t % 60;
3344
3472
  return n + ":" + (r < 10 ? "0" : "") + r;
@@ -3459,18 +3587,18 @@ var qi = {
3459
3587
  }
3460
3588
  };
3461
3589
  return (i, l) => (x(), s("div", { class: g(["video-input", { "is-disabled": r.disabled }]) }, [
3462
- r.title || r.showCount ? (x(), s("div", qi, [r.title ? (x(), s("span", {
3590
+ r.title || r.showCount ? (x(), s("div", ea, [r.title ? (x(), s("span", {
3463
3591
  key: 0,
3464
3592
  class: "title",
3465
3593
  textContent: E(r.title)
3466
- }, null, 8, Ji)) : o("", !0), r.showCount ? (x(), s("span", Yi, E(O.value) + " 支", 1)) : o("", !0)])) : o("", !0),
3467
- c("div", Xi, [O.value === 0 ? (x(), s("div", m({
3594
+ }, null, 8, ta)) : o("", !0), r.showCount ? (x(), s("span", na, E(O.value) + " 支", 1)) : o("", !0)])) : o("", !0),
3595
+ c("div", ra, [O.value === 0 ? (x(), s("div", m({
3468
3596
  key: 0,
3469
3597
  class: ["empty", { "is-drag": h.value }]
3470
3598
  }, W), [
3471
- l[0] ||= u("<span class=\"icon\" aria-hidden=\"true\" data-v-263224d2><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\" data-v-263224d2><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" data-v-263224d2></path><path d=\"M7 9l5-5 5 5\" data-v-263224d2></path><path d=\"M12 4v12\" data-v-263224d2></path></svg></span>", 1),
3472
- c("h3", { textContent: E(r.emptyTitle) }, null, 8, Zi),
3473
- c("p", { textContent: E(r.emptyHint) }, null, 8, Qi)
3599
+ l[0] ||= u("<span class=\"icon\" aria-hidden=\"true\" data-v-8ea5b0a2><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\" data-v-8ea5b0a2><path d=\"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4\" data-v-8ea5b0a2></path><path d=\"M7 9l5-5 5 5\" data-v-8ea5b0a2></path><path d=\"M12 4v12\" data-v-8ea5b0a2></path></svg></span>", 1),
3600
+ c("h3", { textContent: E(r.emptyTitle) }, null, 8, ia),
3601
+ c("p", { textContent: E(r.emptyHint) }, null, 8, aa)
3474
3602
  ], 16)) : (x(), s(e, { key: 1 }, [(x(!0), s(e, null, w(r.modelValue, (e) => (x(), s("div", {
3475
3603
  key: e.id,
3476
3604
  class: "card"
@@ -3483,7 +3611,7 @@ var qi = {
3483
3611
  src: e.url + "#t=0.5",
3484
3612
  muted: "",
3485
3613
  preload: "metadata"
3486
- }, null, 8, ea)) : (x(), s("div", ta, "縮圖預覽")),
3614
+ }, null, 8, sa)) : (x(), s("div", ca, "縮圖預覽")),
3487
3615
  l[1] ||= c("div", {
3488
3616
  class: "play",
3489
3617
  "aria-hidden": "true"
@@ -3491,18 +3619,18 @@ var qi = {
3491
3619
  viewBox: "0 0 24 24",
3492
3620
  fill: "currentColor"
3493
3621
  }, [c("path", { d: "M8 5v14l11-7z" })])], -1),
3494
- c("div", na, E(M(e.duration)), 1)
3495
- ], 10, $i), c("div", ra, [
3622
+ c("div", la, E(M(e.duration)), 1)
3623
+ ], 10, oa), c("div", ua, [
3496
3624
  c("div", {
3497
3625
  class: "file-name",
3498
3626
  title: e.name
3499
- }, E(e.name), 9, ia),
3500
- c("div", aa, [
3627
+ }, E(e.name), 9, da),
3628
+ c("div", fa, [
3501
3629
  c("span", null, E(k(e.size)), 1),
3502
3630
  l[2] ||= c("span", { class: "dot-separator" }, null, -1),
3503
3631
  c("span", null, E(P(e)), 1)
3504
3632
  ]),
3505
- c("div", oa, [c("button", {
3633
+ c("div", pa, [c("button", {
3506
3634
  class: "action preview",
3507
3635
  onClick: (t) => z(e)
3508
3636
  }, [...l[3] ||= [c("svg", {
@@ -3516,7 +3644,7 @@ var qi = {
3516
3644
  cx: "12",
3517
3645
  cy: "12",
3518
3646
  r: "3"
3519
- })], -1), d(" 預覽 ", -1)]], 8, sa), c("button", {
3647
+ })], -1), d(" 預覽 ", -1)]], 8, ma), c("button", {
3520
3648
  class: "action delete",
3521
3649
  "aria-label": "刪除",
3522
3650
  disabled: r.disabled,
@@ -3528,7 +3656,7 @@ var qi = {
3528
3656
  "stroke-width": "2",
3529
3657
  "stroke-linecap": "round",
3530
3658
  "stroke-linejoin": "round"
3531
- }, [c("path", { d: "M3 6h18M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }), c("path", { d: "M10 11v6M14 11v6" })], -1)]], 8, ca)])
3659
+ }, [c("path", { d: "M3 6h18M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }), c("path", { d: "M10 11v6M14 11v6" })], -1)]], 8, ha)])
3532
3660
  ])]))), 128)), r.multiple ? (x(), s("div", m({
3533
3661
  key: 0,
3534
3662
  class: ["add-card", { "is-drag": h.value }]
@@ -3552,7 +3680,7 @@ var qi = {
3552
3680
  key: 0,
3553
3681
  class: "vi-modal",
3554
3682
  onClick: N(B, ["self"])
3555
- }, [c("div", la, [c("div", ua, [_.value?.url ? (x(), s("video", {
3683
+ }, [c("div", ga, [c("div", _a, [_.value?.url ? (x(), s("video", {
3556
3684
  key: 0,
3557
3685
  src: _.value.url,
3558
3686
  controls: "",
@@ -3560,7 +3688,7 @@ var qi = {
3560
3688
  playsinline: "",
3561
3689
  controlslist: "nofullscreen nodownload noremoteplayback noplaybackrate",
3562
3690
  disablepictureinpicture: ""
3563
- }, null, 8, da)) : (x(), s("div", fa, " 示範影片 · 上傳真實檔案即可在此播放 "))]), c("div", pa, [c("div", ma, [c("div", ha, E(_.value?.name), 1), c("div", ga, E(V.value), 1)]), c("button", {
3691
+ }, null, 8, va)) : (x(), s("div", ya, " 示範影片 · 上傳真實檔案即可在此播放 "))]), c("div", ba, [c("div", xa, [c("div", Sa, E(_.value?.name), 1), c("div", Ca, E(V.value), 1)]), c("button", {
3564
3692
  class: "vi-modal-close",
3565
3693
  "aria-label": "關閉",
3566
3694
  onClick: B
@@ -3576,19 +3704,19 @@ var qi = {
3576
3704
  })]))
3577
3705
  ], 2));
3578
3706
  }
3579
- }), [["__scopeId", "data-v-263224d2"]]), va = {
3707
+ }), [["__scopeId", "data-v-8ea5b0a2"]]), Ta = {
3580
3708
  key: 0,
3581
3709
  class: "head"
3582
- }, ya = ["textContent"], ba = {
3710
+ }, Ea = ["textContent"], Da = {
3583
3711
  key: 1,
3584
3712
  class: "count-chip"
3585
- }, xa = { class: "grid" }, Sa = ["textContent"], Ca = ["textContent"], wa = ["onClick"], Ta = ["src", "alt"], Ea = {
3713
+ }, Oa = { class: "grid" }, ka = ["textContent"], Aa = ["textContent"], ja = ["onClick"], Ma = ["src", "alt"], Na = {
3586
3714
  key: 1,
3587
3715
  class: "placeholder-label"
3588
- }, Da = { class: "card-body" }, Oa = ["title"], ka = { class: "file-meta" }, Aa = { class: "card-actions" }, ja = ["onClick"], Ma = ["disabled", "onClick"], Na = { class: "ii-modal-card" }, Pa = { class: "ii-modal-media" }, Fa = ["src", "alt"], Ia = {
3716
+ }, Pa = { class: "card-body" }, Fa = ["title"], Ia = { class: "file-meta" }, La = { class: "card-actions" }, Ra = ["onClick"], za = ["disabled", "onClick"], Ba = { class: "ii-modal-card" }, Va = { class: "ii-modal-media" }, Ha = ["src", "alt"], Ua = {
3589
3717
  key: 1,
3590
3718
  class: "ii-modal-ph"
3591
- }, La = { class: "ii-modal-bar" }, Ra = { class: "ii-modal-info" }, za = { class: "modal-name" }, Ba = { class: "modal-meta" }, Va = /* @__PURE__ */ R(/* @__PURE__ */ p({
3719
+ }, Wa = { class: "ii-modal-bar" }, Ga = { class: "ii-modal-info" }, Ka = { class: "modal-name" }, qa = { class: "modal-meta" }, Ja = /* @__PURE__ */ R(/* @__PURE__ */ p({
3592
3720
  __name: "NImageSelect",
3593
3721
  props: {
3594
3722
  modelValue: { default: () => [] },
@@ -3622,7 +3750,7 @@ var qi = {
3622
3750
  "error"
3623
3751
  ],
3624
3752
  setup(r, { emit: l }) {
3625
- let p = l, h = C(!1), _ = C(null), [y, b, S] = Ki(), { confirm: T } = Ii(), O = i(() => r.modelValue.length), k = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 1024).toFixed(0) + " KB" : e < 1073741824 ? (e / 1048576).toFixed(1) + " MB" : (e / 1073741824).toFixed(2) + " GB", M = (e) => e.width && e.height ? e.width + "×" + e.height : "—", P = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : "i" + Math.random().toString(36).slice(2, 9), ee = (e) => {
3753
+ let p = l, h = C(!1), _ = C(null), [y, b, S] = $i(), { confirm: T } = Rt(), O = i(() => r.modelValue.length), k = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 1024).toFixed(0) + " KB" : e < 1073741824 ? (e / 1048576).toFixed(1) + " MB" : (e / 1073741824).toFixed(2) + " GB", M = (e) => e.width && e.height ? e.width + "×" + e.height : "—", P = () => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : "i" + Math.random().toString(36).slice(2, 9), ee = (e) => {
3626
3754
  let t = r.accept.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
3627
3755
  if (t.length === 0) return e.type.startsWith("image/");
3628
3756
  let n = e.type.toLowerCase(), i = e.name.toLowerCase();
@@ -3731,18 +3859,18 @@ var qi = {
3731
3859
  }
3732
3860
  };
3733
3861
  return (i, l) => (x(), s("div", { class: g(["image-input", { "is-disabled": r.disabled }]) }, [
3734
- r.title || r.showCount ? (x(), s("div", va, [r.title ? (x(), s("span", {
3862
+ r.title || r.showCount ? (x(), s("div", Ta, [r.title ? (x(), s("span", {
3735
3863
  key: 0,
3736
3864
  class: "title",
3737
3865
  textContent: E(r.title)
3738
- }, null, 8, ya)) : o("", !0), r.showCount ? (x(), s("span", ba, E(O.value) + " 張", 1)) : o("", !0)])) : o("", !0),
3739
- c("div", xa, [O.value === 0 ? (x(), s("div", m({
3866
+ }, null, 8, Ea)) : o("", !0), r.showCount ? (x(), s("span", Da, E(O.value) + " 張", 1)) : o("", !0)])) : o("", !0),
3867
+ c("div", Oa, [O.value === 0 ? (x(), s("div", m({
3740
3868
  key: 0,
3741
3869
  class: ["empty", { "is-drag": h.value }]
3742
3870
  }, U), [
3743
- l[0] ||= u("<span class=\"icon\" aria-hidden=\"true\" data-v-f11198be><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\" data-v-f11198be><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" data-v-f11198be></rect><circle cx=\"9\" cy=\"9\" r=\"2\" data-v-f11198be></circle><path d=\"m21 15-3.5-3.5a2 2 0 0 0-2.83 0L4 22\" data-v-f11198be></path></svg></span>", 1),
3744
- c("h3", { textContent: E(r.emptyTitle) }, null, 8, Sa),
3745
- c("p", { textContent: E(r.emptyHint) }, null, 8, Ca)
3871
+ l[0] ||= u("<span class=\"icon\" aria-hidden=\"true\" data-v-c05e4edc><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" data-v-c05e4edc><rect x=\"3\" y=\"3\" width=\"18\" height=\"18\" rx=\"2\" data-v-c05e4edc></rect><circle cx=\"8.5\" cy=\"8.5\" r=\"1.5\" data-v-c05e4edc></circle><path d=\"M21 15l-5-5L5 21\" data-v-c05e4edc></path></svg></span>", 1),
3872
+ c("h3", { textContent: E(r.emptyTitle) }, null, 8, ka),
3873
+ c("p", { textContent: E(r.emptyHint) }, null, 8, Aa)
3746
3874
  ], 16)) : (x(), s(e, { key: 1 }, [(x(!0), s(e, null, w(r.modelValue, (e) => (x(), s("div", {
3747
3875
  key: e.id,
3748
3876
  class: "card"
@@ -3754,7 +3882,7 @@ var qi = {
3754
3882
  src: e.url,
3755
3883
  alt: e.name,
3756
3884
  loading: "lazy"
3757
- }, null, 8, Ta)) : (x(), s("div", Ea, "縮圖預覽")), l[1] ||= c("div", {
3885
+ }, null, 8, Ma)) : (x(), s("div", Na, "縮圖預覽")), l[1] ||= c("div", {
3758
3886
  class: "zoom",
3759
3887
  "aria-hidden": "true"
3760
3888
  }, [c("svg", {
@@ -3768,17 +3896,17 @@ var qi = {
3768
3896
  cx: "11",
3769
3897
  cy: "11",
3770
3898
  r: "7"
3771
- }), c("path", { d: "m21 21-4.3-4.3M11 8v6M8 11h6" })])], -1)], 10, wa), c("div", Da, [
3899
+ }), c("path", { d: "m21 21-4.3-4.3M11 8v6M8 11h6" })])], -1)], 10, ja), c("div", Pa, [
3772
3900
  c("div", {
3773
3901
  class: "file-name",
3774
3902
  title: e.name
3775
- }, E(e.name), 9, Oa),
3776
- c("div", ka, [
3903
+ }, E(e.name), 9, Fa),
3904
+ c("div", Ia, [
3777
3905
  c("span", null, E(k(e.size)), 1),
3778
3906
  l[2] ||= c("span", { class: "dot-separator" }, null, -1),
3779
3907
  c("span", null, E(M(e)), 1)
3780
3908
  ]),
3781
- c("div", Aa, [c("button", {
3909
+ c("div", La, [c("button", {
3782
3910
  class: "action preview",
3783
3911
  onClick: (t) => R(e)
3784
3912
  }, [...l[3] ||= [c("svg", {
@@ -3792,7 +3920,7 @@ var qi = {
3792
3920
  cx: "12",
3793
3921
  cy: "12",
3794
3922
  r: "3"
3795
- })], -1), d(" 預覽 ", -1)]], 8, ja), c("button", {
3923
+ })], -1), d(" 預覽 ", -1)]], 8, Ra), c("button", {
3796
3924
  class: "action delete",
3797
3925
  "aria-label": "刪除",
3798
3926
  disabled: r.disabled,
@@ -3804,7 +3932,7 @@ var qi = {
3804
3932
  "stroke-width": "2",
3805
3933
  "stroke-linecap": "round",
3806
3934
  "stroke-linejoin": "round"
3807
- }, [c("path", { d: "M3 6h18M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }), c("path", { d: "M10 11v6M14 11v6" })], -1)]], 8, Ma)])
3935
+ }, [c("path", { d: "M3 6h18M8 6V4a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6" }), c("path", { d: "M10 11v6M14 11v6" })], -1)]], 8, za)])
3808
3936
  ])]))), 128)), r.multiple ? (x(), s("div", m({
3809
3937
  key: 0,
3810
3938
  class: ["add-card", { "is-drag": h.value }]
@@ -3828,11 +3956,11 @@ var qi = {
3828
3956
  key: 0,
3829
3957
  class: "ii-modal",
3830
3958
  onClick: N(z, ["self"])
3831
- }, [c("div", Na, [c("div", Pa, [_.value?.url ? (x(), s("img", {
3959
+ }, [c("div", Ba, [c("div", Va, [_.value?.url ? (x(), s("img", {
3832
3960
  key: 0,
3833
3961
  src: _.value.url,
3834
3962
  alt: _.value.name
3835
- }, null, 8, Fa)) : (x(), s("div", Ia, " 示範圖片 · 上傳真實檔案即可在此檢視 "))]), c("div", La, [c("div", Ra, [c("div", za, E(_.value?.name), 1), c("div", Ba, E(B.value), 1)]), c("button", {
3963
+ }, null, 8, Ha)) : (x(), s("div", Ua, " 示範圖片 · 上傳真實檔案即可在此檢視 "))]), c("div", Wa, [c("div", Ga, [c("div", Ka, E(_.value?.name), 1), c("div", qa, E(B.value), 1)]), c("button", {
3836
3964
  class: "ii-modal-close",
3837
3965
  "aria-label": "關閉",
3838
3966
  onClick: z
@@ -3848,32 +3976,32 @@ var qi = {
3848
3976
  })]))
3849
3977
  ], 2));
3850
3978
  }
3851
- }), [["__scopeId", "data-v-f11198be"]]), Ha = {
3979
+ }), [["__scopeId", "data-v-c05e4edc"]]), Ya = {
3852
3980
  key: 0,
3853
3981
  class: "head"
3854
- }, Ua = ["textContent"], Wa = {
3982
+ }, Xa = ["textContent"], Za = {
3855
3983
  key: 1,
3856
3984
  class: "count-chip"
3857
- }, Ga = ["textContent"], Ka = ["textContent"], qa = {
3985
+ }, Qa = ["textContent"], $a = ["textContent"], eo = {
3858
3986
  key: 2,
3859
3987
  class: "list"
3860
- }, Ja = [
3988
+ }, to = [
3861
3989
  "src",
3862
3990
  "onTimeupdate",
3863
3991
  "onEnded"
3864
- ], Ya = [
3992
+ ], no = [
3865
3993
  "aria-label",
3866
3994
  "disabled",
3867
3995
  "onClick"
3868
- ], Xa = {
3996
+ ], ro = {
3869
3997
  key: 0,
3870
3998
  viewBox: "0 0 24 24",
3871
3999
  fill: "currentColor"
3872
- }, Za = {
4000
+ }, io = {
3873
4001
  key: 1,
3874
4002
  viewBox: "0 0 24 24",
3875
4003
  fill: "currentColor"
3876
- }, Qa = { class: "meta" }, $a = ["title"], eo = { class: "sub" }, to = ["onMousedown", "onTouchstart"], no = { class: "time" }, ro = ["disabled", "onClick"], io = { class: "meta" }, ao = { class: "name" }, oo = 256, so = 5, co = /* @__PURE__ */ R(/* @__PURE__ */ p({
4004
+ }, ao = { class: "meta" }, oo = ["title"], so = { class: "sub" }, co = ["onMousedown", "onTouchstart"], lo = { class: "time" }, uo = ["disabled", "onClick"], fo = { class: "meta" }, po = { class: "name" }, mo = 256, ho = 5, go = /* @__PURE__ */ R(/* @__PURE__ */ p({
3877
4005
  __name: "NAudioSelect",
3878
4006
  props: {
3879
4007
  modelValue: { default: () => [] },
@@ -3907,7 +4035,7 @@ var qi = {
3907
4035
  "error"
3908
4036
  ],
3909
4037
  setup(t, { emit: n }) {
3910
- let r = n, { confirm: a } = Ii(), l = C(!1), d = C([]), f = C(null), p = S({}), h = S({}), y = S({}), b = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), D = (e, t) => {
4038
+ let r = n, { confirm: a } = Rt(), l = C(!1), d = C([]), f = C(null), p = S({}), h = S({}), y = S({}), b = /* @__PURE__ */ new Map(), T = /* @__PURE__ */ new Map(), D = (e, t) => {
3911
4039
  t ? b.set(e, t) : b.delete(e);
3912
4040
  }, O = i(() => t.modelValue.length), k = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 1024).toFixed(0) + " KB" : e < 1073741824 ? (e / 1048576).toFixed(1) + " MB" : (e / 1073741824).toFixed(2) + " GB", A = (e) => {
3913
4041
  if (e == null || isNaN(e)) return "0:00";
@@ -3919,8 +4047,8 @@ var qi = {
3919
4047
  let r = e.type.toLowerCase(), i = e.name.toLowerCase();
3920
4048
  return n.some((e) => e.startsWith(".") ? i.endsWith(e) : e.endsWith("/*") ? r.startsWith(e.slice(0, -1)) : r === e);
3921
4049
  }, P = null, ee = () => (P ||= new (window.AudioContext || window.webkitAudioContext)(), P), F = async (e) => {
3922
- let t = await e.arrayBuffer(), n = await ee().decodeAudioData(t.slice(0)), r = n.getChannelData(0), i = Math.floor(r.length / oo) || 1, a = Array(oo), o = 0;
3923
- for (let e = 0; e < oo; e++) {
4050
+ let t = await e.arrayBuffer(), n = await ee().decodeAudioData(t.slice(0)), r = n.getChannelData(0), i = Math.floor(r.length / mo) || 1, a = Array(mo), o = 0;
4051
+ for (let e = 0; e < mo; e++) {
3924
4052
  let t = 0, n = e * i, s = Math.min(r.length, n + i);
3925
4053
  for (let e = n; e < s; e++) {
3926
4054
  let n = Math.abs(r[e]);
@@ -3929,7 +4057,7 @@ var qi = {
3929
4057
  a[e] = t, t > o && (o = t);
3930
4058
  }
3931
4059
  let s = o > 0 ? 1 / o : 1;
3932
- for (let e = 0; e < oo; e++) a[e] = Math.max(.06, a[e] * s);
4060
+ for (let e = 0; e < mo; e++) a[e] = Math.max(.06, a[e] * s);
3933
4061
  return {
3934
4062
  peaks: a,
3935
4063
  duration: n.duration
@@ -3942,7 +4070,7 @@ var qi = {
3942
4070
  requestAnimationFrame(() => I(e));
3943
4071
  return;
3944
4072
  }
3945
- let i = Math.max(8, Math.min(n.length, Math.floor((r + 2) / so)));
4073
+ let i = Math.max(8, Math.min(n.length, Math.floor((r + 2) / ho)));
3946
4074
  if (h[e] && h[e].length === i) return;
3947
4075
  let a = Array(i);
3948
4076
  for (let e = 0; e < i; e++) {
@@ -4092,18 +4220,18 @@ var qi = {
4092
4220
  t.disabled || (e.preventDefault(), l.value = !1, e.dataTransfer?.files?.length && R(e.dataTransfer.files));
4093
4221
  }
4094
4222
  };
4095
- return (n, r) => (x(), s("div", { class: g(["audio-input", { "is-disabled": t.disabled }]) }, [t.title || t.showCount ? (x(), s("div", Ha, [t.title ? (x(), s("span", {
4223
+ return (n, r) => (x(), s("div", { class: g(["audio-input", { "is-disabled": t.disabled }]) }, [t.title || t.showCount ? (x(), s("div", Ya, [t.title ? (x(), s("span", {
4096
4224
  key: 0,
4097
4225
  class: "title",
4098
4226
  textContent: E(t.title)
4099
- }, null, 8, Ua)) : o("", !0), t.showCount ? (x(), s("span", Wa, E(O.value) + " 首", 1)) : o("", !0)])) : o("", !0), O.value === 0 && d.value.length === 0 ? (x(), s("div", m({
4227
+ }, null, 8, Xa)) : o("", !0), t.showCount ? (x(), s("span", Za, E(O.value) + " 首", 1)) : o("", !0)])) : o("", !0), O.value === 0 && d.value.length === 0 ? (x(), s("div", m({
4100
4228
  key: 1,
4101
4229
  class: ["empty", { "is-drag": l.value }]
4102
4230
  }, ie), [
4103
- r[0] ||= u("<span class=\"icon\" aria-hidden=\"true\" data-v-2f9bfb85><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\" data-v-2f9bfb85><path d=\"M9 18V5l12-2v13\" data-v-2f9bfb85></path><circle cx=\"6\" cy=\"18\" r=\"3\" data-v-2f9bfb85></circle><circle cx=\"18\" cy=\"16\" r=\"3\" data-v-2f9bfb85></circle></svg></span>", 1),
4104
- c("h3", { textContent: E(t.emptyTitle) }, null, 8, Ga),
4105
- c("p", { textContent: E(t.emptyHint) }, null, 8, Ka)
4106
- ], 16)) : (x(), s("div", qa, [
4231
+ r[0] ||= u("<span class=\"icon\" aria-hidden=\"true\" data-v-ef784628><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\" data-v-ef784628><path d=\"M9 18V5l12-2v13\" data-v-ef784628></path><circle cx=\"6\" cy=\"18\" r=\"3\" data-v-ef784628></circle><circle cx=\"18\" cy=\"16\" r=\"3\" data-v-ef784628></circle></svg></span>", 1),
4232
+ c("h3", { textContent: E(t.emptyTitle) }, null, 8, Qa),
4233
+ c("p", { textContent: E(t.emptyHint) }, null, 8, $a)
4234
+ ], 16)) : (x(), s("div", eo, [
4107
4235
  (x(!0), s(e, null, w(t.modelValue, (n) => (x(), s("div", {
4108
4236
  key: n.id,
4109
4237
  class: g(["row", { "is-playing": f.value === n.id }])
@@ -4115,13 +4243,13 @@ var qi = {
4115
4243
  preload: "metadata",
4116
4244
  onTimeupdate: (e) => U(n.id, e),
4117
4245
  onEnded: (e) => W(n.id)
4118
- }, null, 40, Ja),
4246
+ }, null, 40, to),
4119
4247
  c("button", {
4120
4248
  class: "play-btn",
4121
4249
  "aria-label": f.value === n.id ? "暫停" : "播放",
4122
4250
  disabled: !n.url,
4123
4251
  onClick: (e) => H(n.id)
4124
- }, [f.value === n.id ? (x(), s("svg", Xa, [...r[1] ||= [c("rect", {
4252
+ }, [f.value === n.id ? (x(), s("svg", ro, [...r[1] ||= [c("rect", {
4125
4253
  x: "6",
4126
4254
  y: "5",
4127
4255
  width: "4",
@@ -4133,11 +4261,11 @@ var qi = {
4133
4261
  width: "4",
4134
4262
  height: "14",
4135
4263
  rx: "1"
4136
- }, null, -1)]])) : (x(), s("svg", Za, [...r[2] ||= [c("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, Ya),
4137
- c("div", Qa, [c("div", {
4264
+ }, null, -1)]])) : (x(), s("svg", io, [...r[2] ||= [c("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, no),
4265
+ c("div", ao, [c("div", {
4138
4266
  class: "name",
4139
4267
  title: n.name
4140
- }, E(n.name), 9, $a), c("div", eo, E(k(n.size)) + " · " + E(A(n.duration)), 1)]),
4268
+ }, E(n.name), 9, oo), c("div", so, E(k(n.size)) + " · " + E(A(n.duration)), 1)]),
4141
4269
  c("div", {
4142
4270
  class: "wave",
4143
4271
  ref_for: !0,
@@ -4148,8 +4276,8 @@ var qi = {
4148
4276
  key: t,
4149
4277
  class: g(["bar", { "is-played": G(n, t) }]),
4150
4278
  style: _({ height: Math.max(2, Math.round(e * 34)) + "px" })
4151
- }, null, 6))), 128))], 40, to),
4152
- c("div", no, E(A(y[n.id] || 0)) + " / " + E(A(n.duration)), 1),
4279
+ }, null, 6))), 128))], 40, co),
4280
+ c("div", lo, E(A(y[n.id] || 0)) + " / " + E(A(n.duration)), 1),
4153
4281
  c("button", {
4154
4282
  class: "del-btn",
4155
4283
  "aria-label": "刪除",
@@ -4162,7 +4290,7 @@ var qi = {
4162
4290
  "stroke-width": "1.8",
4163
4291
  "stroke-linecap": "round",
4164
4292
  "stroke-linejoin": "round"
4165
- }, [c("path", { d: "M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14" })], -1)]], 8, ro)
4293
+ }, [c("path", { d: "M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14" })], -1)]], 8, uo)
4166
4294
  ], 2))), 128)),
4167
4295
  (x(!0), s(e, null, w(d.value, (e) => (x(), s("div", {
4168
4296
  key: e.tag,
@@ -4176,20 +4304,20 @@ var qi = {
4176
4304
  stroke: "currentColor",
4177
4305
  "stroke-width": "2",
4178
4306
  "stroke-linecap": "round"
4179
- }, [c("path", { d: "M12 3a9 9 0 1 0 9 9" })])], -1), c("div", io, [c("div", ao, E(e.name), 1), r[4] ||= c("div", { class: "sub" }, "解析波形中…", -1)])]))), 128)),
4307
+ }, [c("path", { d: "M12 3a9 9 0 1 0 9 9" })])], -1), c("div", fo, [c("div", po, E(e.name), 1), r[4] ||= c("div", { class: "sub" }, "解析波形中…", -1)])]))), 128)),
4180
4308
  t.multiple ? (x(), s("div", m({
4181
4309
  key: 0,
4182
4310
  class: ["add", { "is-drag": l.value }]
4183
- }, ie), [...r[6] ||= [u("<span class=\"plus\" aria-hidden=\"true\" data-v-2f9bfb85><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" data-v-2f9bfb85><path d=\"M12 5v14M5 12h14\" data-v-2f9bfb85></path></svg></span><div class=\"add-text\" data-v-2f9bfb85><div class=\"t\" data-v-2f9bfb85>新增音訊</div><div class=\"d\" data-v-2f9bfb85>點擊或拖放檔案 · MP3 / WAV / OGG / M4A</div></div>", 2)]], 16)) : o("", !0)
4311
+ }, ie), [...r[6] ||= [u("<span class=\"plus\" aria-hidden=\"true\" data-v-ef784628><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" data-v-ef784628><path d=\"M12 5v14M5 12h14\" data-v-ef784628></path></svg></span><div class=\"add-text\" data-v-ef784628><div class=\"t\" data-v-ef784628>新增音訊</div><div class=\"d\" data-v-ef784628>點擊或拖放檔案 · MP3 / WAV / OGG / M4A</div></div>", 2)]], 16)) : o("", !0)
4184
4312
  ]))], 2));
4185
4313
  }
4186
- }), [["__scopeId", "data-v-2f9bfb85"]]), lo = { class: "header" }, uo = { class: "brand-logo" }, fo = { class: "logo-text" }, po = { class: "logo-icon" }, mo = { class: "nav" }, ho = ["onClick"], go = ["innerHTML"], _o = { class: "nav-list" }, vo = ["href", "onClick"], yo = ["innerHTML"], bo = { class: "nav-text" }, xo = ["href", "onClick"], So = { class: "title no-children" }, Co = ["innerHTML"], wo = { class: "user-capsule" }, To = { class: "user-avatar" }, Eo = ["src"], Do = {
4314
+ }), [["__scopeId", "data-v-ef784628"]]), _o = { class: "header" }, vo = { class: "brand-logo" }, yo = { class: "logo-text" }, bo = { class: "logo-icon" }, xo = { class: "nav" }, So = ["onClick"], Co = ["innerHTML"], wo = { class: "nav-list" }, To = ["href", "onClick"], Eo = ["innerHTML"], Do = { class: "nav-text" }, Oo = ["href", "onClick"], ko = { class: "title no-children" }, Ao = ["innerHTML"], jo = { class: "user-capsule" }, Mo = { class: "user-avatar" }, No = ["src"], Po = {
4187
4315
  key: 1,
4188
4316
  xmlns: "http://www.w3.org/2000/svg",
4189
4317
  width: "36",
4190
4318
  height: "36",
4191
4319
  viewBox: "0 0 36 36"
4192
- }, Oo = { class: "user-info" }, ko = { class: "user-name-row" }, Ao = { class: "user-name" }, jo = /* @__PURE__ */ R(/* @__PURE__ */ p({
4320
+ }, Fo = { class: "user-info" }, Io = { class: "user-name-row" }, Lo = { class: "user-name" }, Ro = /* @__PURE__ */ R(/* @__PURE__ */ p({
4193
4321
  __name: "NSidebar",
4194
4322
  props: {
4195
4323
  title: { default: "" },
@@ -4208,7 +4336,7 @@ var qi = {
4208
4336
  "navigate"
4209
4337
  ],
4210
4338
  setup(n, { emit: r }) {
4211
- let { isMenuExpanded: i, toggleMenu: o, resolveMenuActive: l, resolveItemActive: d } = qt(), p = C(!1), m = r, h = (e) => {
4339
+ let { isMenuExpanded: i, toggleMenu: o, resolveMenuActive: l, resolveItemActive: d } = rn(), p = C(!1), m = r, h = (e) => {
4212
4340
  n.currentPath !== e.route && m("navigate", e);
4213
4341
  }, _ = (e) => {
4214
4342
  !e.route || n.currentPath === e.route || m("navigate", {
@@ -4242,8 +4370,8 @@ var qi = {
4242
4370
  class: "content",
4243
4371
  onMouseenter: v[2] ||= (e) => p.value = !0
4244
4372
  }, [
4245
- T(r.$slots, "header", {}, () => [c("div", lo, [c("div", uo, [c("span", fo, E(n.title), 1), c("span", po, E(n.title.substring(0, 1).toUpperCase()), 1)])])], !0),
4246
- c("div", mo, [(x(!0), s(e, null, w(n.menus, (t) => (x(), s(e, null, [t.children?.length ? (x(), s("div", {
4373
+ T(r.$slots, "header", {}, () => [c("div", _o, [c("div", vo, [c("span", yo, E(n.title), 1), c("span", bo, E(n.title.substring(0, 1).toUpperCase()), 1)])])], !0),
4374
+ c("div", xo, [(x(!0), s(e, null, w(n.menus, (t) => (x(), s(e, null, [t.children?.length ? (x(), s("div", {
4247
4375
  key: 0,
4248
4376
  class: g(["menu", {
4249
4377
  open: D(i)(t.title),
@@ -4252,7 +4380,7 @@ var qi = {
4252
4380
  }, [c("div", {
4253
4381
  class: "title",
4254
4382
  onClick: (e) => D(o)(t.title)
4255
- }, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, go), c("span", null, E(t.title), 1)]), v[6] ||= c("svg", {
4383
+ }, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Co), c("span", null, E(t.title), 1)]), v[6] ||= c("svg", {
4256
4384
  xmlns: "http://www.w3.org/2000/svg",
4257
4385
  width: "14",
4258
4386
  height: "14",
@@ -4263,23 +4391,23 @@ var qi = {
4263
4391
  "stroke-linecap": "round",
4264
4392
  "stroke-linejoin": "round",
4265
4393
  class: "icon"
4266
- }, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, ho), c("div", _o, [c("div", null, [(x(!0), s(e, null, w(t.children, (e) => (x(), s("a", {
4394
+ }, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, So), c("div", wo, [c("div", null, [(x(!0), s(e, null, w(t.children, (e) => (x(), s("a", {
4267
4395
  href: e.route,
4268
4396
  onClick: N((t) => h(e), ["prevent"])
4269
- }, [c("div", { class: g(["nav-item", { active: D(d)(e, n.currentPath) }]) }, [c("div", { innerHTML: e.icon }, null, 8, yo), c("span", bo, E(e.title), 1)], 2)], 8, vo))), 256))])])], 2)) : (x(), s("div", {
4397
+ }, [c("div", { class: g(["nav-item", { active: D(d)(e, n.currentPath) }]) }, [c("div", { innerHTML: e.icon }, null, 8, Eo), c("span", Do, E(e.title), 1)], 2)], 8, To))), 256))])])], 2)) : (x(), s("div", {
4270
4398
  key: 1,
4271
4399
  class: g(["menu", { active: t.route === n.currentPath }])
4272
4400
  }, [c("a", {
4273
4401
  href: t.route,
4274
4402
  onClick: N((e) => _(t), ["prevent"])
4275
- }, [c("div", So, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Co), c("span", null, E(t.title), 1)])])], 8, xo)], 2))], 64))), 256))]),
4276
- c("div", wo, [T(r.$slots, "user", {}, () => [
4277
- c("div", To, [n.userAvatarUrl ? (x(), s("img", {
4403
+ }, [c("div", ko, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Ao), c("span", null, E(t.title), 1)])])], 8, Oo)], 2))], 64))), 256))]),
4404
+ c("div", jo, [T(r.$slots, "user", {}, () => [
4405
+ c("div", Mo, [n.userAvatarUrl ? (x(), s("img", {
4278
4406
  key: 0,
4279
4407
  src: n.userAvatarUrl,
4280
4408
  alt: "User Avatar"
4281
- }, null, 8, Eo)) : (x(), s("svg", Do, [...v[7] ||= [u("<defs data-v-2c73c218><clipPath id=\"avatarClip\" data-v-2c73c218><circle cx=\"18\" cy=\"18\" r=\"18\" data-v-2c73c218></circle></clipPath></defs><circle cx=\"18\" cy=\"18\" r=\"18\" fill=\"#dbeafe\" data-v-2c73c218></circle><g clip-path=\"url(#avatarClip)\" data-v-2c73c218><circle cx=\"18\" cy=\"14\" r=\"6\" fill=\"#2563eb\" data-v-2c73c218></circle><path d=\"M6,34 Q6,24 18,24 Q30,24 30,34\" fill=\"#2563eb\" data-v-2c73c218></path></g>", 3)]]))]),
4282
- c("div", Oo, [c("div", ko, [c("span", Ao, E(n.userName), 1)])]),
4409
+ }, null, 8, No)) : (x(), s("svg", Po, [...v[7] ||= [u("<defs data-v-2c73c218><clipPath id=\"avatarClip\" data-v-2c73c218><circle cx=\"18\" cy=\"18\" r=\"18\" data-v-2c73c218></circle></clipPath></defs><circle cx=\"18\" cy=\"18\" r=\"18\" fill=\"#dbeafe\" data-v-2c73c218></circle><g clip-path=\"url(#avatarClip)\" data-v-2c73c218><circle cx=\"18\" cy=\"14\" r=\"6\" fill=\"#2563eb\" data-v-2c73c218></circle><path d=\"M6,34 Q6,24 18,24 Q30,24 30,34\" fill=\"#2563eb\" data-v-2c73c218></path></g>", 3)]]))]),
4410
+ c("div", Fo, [c("div", Io, [c("span", Lo, E(n.userName), 1)])]),
4283
4411
  f(z, {
4284
4412
  class: "logout-btn",
4285
4413
  intent: "error",
@@ -4318,7 +4446,7 @@ var qi = {
4318
4446
  }, null, 2)]))
4319
4447
  ], 34));
4320
4448
  }
4321
- }), [["__scopeId", "data-v-2c73c218"]]), Mo = { class: "layout" }, No = { class: "main-content" }, Po = { class: "copyright" }, Fo = /* @__PURE__ */ R(/* @__PURE__ */ p({
4449
+ }), [["__scopeId", "data-v-2c73c218"]]), zo = { class: "layout" }, Bo = { class: "main-content" }, Vo = { class: "copyright" }, Ho = /* @__PURE__ */ R(/* @__PURE__ */ p({
4322
4450
  __name: "NLayout",
4323
4451
  props: {
4324
4452
  title: { default: "NICKLABS" },
@@ -4333,8 +4461,8 @@ var qi = {
4333
4461
  },
4334
4462
  emits: ["logout", "navigate"],
4335
4463
  setup(e, { emit: t }) {
4336
- let n = qt(), r = t;
4337
- return (t, i) => (x(), s("div", Mo, [e.isShowSidebar ? (x(), a(jo, {
4464
+ let n = rn(), r = t;
4465
+ return (t, i) => (x(), s("div", zo, [e.isShowSidebar ? (x(), a(Ro, {
4338
4466
  key: 0,
4339
4467
  title: e.title,
4340
4468
  userName: e.userName,
@@ -4350,18 +4478,18 @@ var qi = {
4350
4478
  "isOpen",
4351
4479
  "menus",
4352
4480
  "currentPath"
4353
- ])) : o("", !0), c("main", No, [T(t.$slots, "default", {}, void 0, !0), c("div", Po, E(e.copyright), 1)])]));
4481
+ ])) : o("", !0), c("main", Bo, [T(t.$slots, "default", {}, void 0, !0), c("div", Vo, E(e.copyright), 1)])]));
4354
4482
  }
4355
- }), [["__scopeId", "data-v-41b1eb44"]]), Io = { class: "topbar" }, Lo = { class: "topbar-left" }, Ro = { class: "topbar-right" }, zo = {
4483
+ }), [["__scopeId", "data-v-41b1eb44"]]), Uo = { class: "topbar" }, Wo = { class: "topbar-left" }, Go = { class: "topbar-right" }, Ko = {
4356
4484
  key: 0,
4357
4485
  class: "pill"
4358
- }, Bo = {
4486
+ }, qo = {
4359
4487
  key: 0,
4360
4488
  class: "name"
4361
- }, Vo = {
4489
+ }, Jo = {
4362
4490
  key: 1,
4363
4491
  class: "separator"
4364
- }, Ho = /* @__PURE__ */ R(/* @__PURE__ */ p({
4492
+ }, Yo = /* @__PURE__ */ R(/* @__PURE__ */ p({
4365
4493
  __name: "NNavigation",
4366
4494
  props: {
4367
4495
  isShowSidebar: {
@@ -4386,7 +4514,7 @@ var qi = {
4386
4514
  let n = t, r = () => {
4387
4515
  document.fullscreenElement ? document.exitFullscreen?.() : document.documentElement.requestFullscreen();
4388
4516
  };
4389
- return (t, i) => (x(), s("header", Io, [c("div", Lo, [e.isShowSidebar ? (x(), a(z, {
4517
+ return (t, i) => (x(), s("header", Uo, [c("div", Wo, [e.isShowSidebar ? (x(), a(z, {
4390
4518
  key: 0,
4391
4519
  onClick: i[0] ||= (e) => n("toggleSidebar"),
4392
4520
  padding: "8px"
@@ -4429,9 +4557,9 @@ var qi = {
4429
4557
  c("path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" })
4430
4558
  ], -1)]]),
4431
4559
  _: 1
4432
- })) : o("", !0)]), c("div", Ro, [e.isShowUser || e.isShowLogoutButton ? (x(), s("div", zo, [
4433
- e.isShowUser ? (x(), s("span", Bo, "Nick")) : o("", !0),
4434
- e.isShowUser && e.isShowLogoutButton ? (x(), s("div", Vo)) : o("", !0),
4560
+ })) : o("", !0)]), c("div", Go, [e.isShowUser || e.isShowLogoutButton ? (x(), s("div", Ko, [
4561
+ e.isShowUser ? (x(), s("span", qo, "Nick")) : o("", !0),
4562
+ e.isShowUser && e.isShowLogoutButton ? (x(), s("div", Jo)) : o("", !0),
4435
4563
  e.isShowLogoutButton ? (x(), a(z, {
4436
4564
  key: 2,
4437
4565
  variant: "mute",
@@ -4457,10 +4585,10 @@ var qi = {
4457
4585
  })) : o("", !0)
4458
4586
  ])) : o("", !0)])]));
4459
4587
  }
4460
- }), [["__scopeId", "data-v-f38a4beb"]]), Uo = { class: "brand" }, Wo = ["src", "alt"], Go = {
4588
+ }), [["__scopeId", "data-v-f38a4beb"]]), Xo = { class: "brand" }, Zo = ["src", "alt"], Qo = {
4461
4589
  key: 1,
4462
4590
  class: "icon"
4463
- }, Ko = { key: 2 }, qo = { key: 3 }, Jo = /* @__PURE__ */ R(/* @__PURE__ */ p({
4591
+ }, $o = { key: 2 }, es = { key: 3 }, ts = /* @__PURE__ */ R(/* @__PURE__ */ p({
4464
4592
  __name: "NLoginLayout",
4465
4593
  props: {
4466
4594
  backgroundImage: { default: "" },
@@ -4473,20 +4601,20 @@ var qi = {
4473
4601
  return (n, r) => (x(), s("div", {
4474
4602
  class: "login-wrapper",
4475
4603
  style: _({ "--login-bg": e.backgroundImage ? `url('${e.backgroundImage}')` : "var(--bg-gradient)" })
4476
- }, [f(fn, {
4604
+ }, [f(Sn, {
4477
4605
  size: "lg",
4478
4606
  radius: "xl",
4479
4607
  class: "card"
4480
4608
  }, {
4481
- default: j(() => [c("div", Uo, [
4609
+ default: j(() => [c("div", Xo, [
4482
4610
  t.value ? (x(), s("img", {
4483
4611
  key: 0,
4484
4612
  class: "logo-img",
4485
4613
  src: e.logo,
4486
4614
  alt: e.title
4487
- }, null, 8, Wo)) : (x(), s("div", Go, E(e.logo), 1)),
4488
- e.title ? (x(), s("h1", Ko, E(e.title), 1)) : o("", !0),
4489
- e.description ? (x(), s("p", qo, E(e.description), 1)) : o("", !0)
4615
+ }, null, 8, Zo)) : (x(), s("div", Qo, E(e.logo), 1)),
4616
+ e.title ? (x(), s("h1", $o, E(e.title), 1)) : o("", !0),
4617
+ e.description ? (x(), s("p", es, E(e.description), 1)) : o("", !0)
4490
4618
  ]), T(n.$slots, "default", {}, void 0, !0)]),
4491
4619
  _: 3
4492
4620
  })], 4));
@@ -4494,7 +4622,7 @@ var qi = {
4494
4622
  }), [["__scopeId", "data-v-f0866bc5"]]);
4495
4623
  //#endregion
4496
4624
  //#region src/composables/useRouteModal.ts
4497
- function Yo(e) {
4625
+ function ns(e) {
4498
4626
  let t = i(() => {
4499
4627
  let t = F();
4500
4628
  return t ? t.currentRoute.value.matched.some((t) => t.name === e.routeName) : !1;
@@ -4518,40 +4646,40 @@ function Yo(e) {
4518
4646
  }
4519
4647
  //#endregion
4520
4648
  //#region src/index.ts
4521
- var Xo = {
4649
+ var rs = {
4522
4650
  NButton: z,
4523
4651
  NBreadcrumb: re,
4524
4652
  NInput: ue,
4525
4653
  NTextarea: he,
4526
4654
  NCheckbox: xe,
4527
4655
  NSelect: Oe,
4528
- NFileSelect: Ut,
4529
- NForm: dn,
4530
- NList: Xn,
4531
- NEmpty: Sn,
4532
- NToast: ar,
4533
- NLoading: Nn,
4534
- NCode: mr,
4535
- NSwitch: gr,
4536
- NTag: _r,
4537
- NDatePicker: Si,
4538
- NTooltip: Ci,
4539
- NModal: Oi,
4540
- NDrawer: Ni,
4541
- NAlert: Gi,
4542
- NTable: Kn,
4543
- NVideoSelect: _a,
4544
- NImageSelect: Va,
4545
- NAudioSelect: co,
4546
- NLayout: Fo,
4547
- NNavigation: Ho,
4548
- NSidebar: jo,
4549
- NCard: fn,
4550
- NLoginLayout: Jo
4551
- }, Zo = { install(e, t = {}) {
4552
- Object.entries(Xo).forEach(([t, n]) => {
4656
+ NFileSelect: $t,
4657
+ NForm: xn,
4658
+ NList: or,
4659
+ NEmpty: Mn,
4660
+ NToast: hr,
4661
+ NLoading: Un,
4662
+ NCode: wr,
4663
+ NSwitch: Er,
4664
+ NTag: Dr,
4665
+ NDatePicker: Mi,
4666
+ NTooltip: Ni,
4667
+ NModal: Ri,
4668
+ NDrawer: Ui,
4669
+ NAlert: Qi,
4670
+ NTable: nr,
4671
+ NVideoSelect: wa,
4672
+ NImageSelect: Ja,
4673
+ NAudioSelect: go,
4674
+ NLayout: Ho,
4675
+ NNavigation: Yo,
4676
+ NSidebar: Ro,
4677
+ NCard: Sn,
4678
+ NLoginLayout: ts
4679
+ }, is = { install(e, t = {}) {
4680
+ Object.entries(rs).forEach(([t, n]) => {
4553
4681
  e.component(t, n);
4554
4682
  }), t.router && ee(t.router);
4555
4683
  } };
4556
4684
  //#endregion
4557
- export { Gi as NAlert, co as NAudioSelect, z as NButton, fn as NCard, xe as NCheckbox, mr as NCode, Si as NDatePicker, Ni as NDrawer, Sn as NEmpty, Ut as NFileSelect, dn as NForm, Va as NImageSelect, ue as NInput, Fo as NLayout, Xn as NList, Nn as NLoading, Jo as NLoginLayout, Oi as NModal, Ho as NNavigation, Oe as NSelect, jo as NSidebar, gr as NSwitch, Kn as NTable, _r as NTag, he as NTextarea, ar as NToast, Ci as NTooltip, _a as NVideoSelect, Zo as NickLabsUI, Ii as useAlert, H as useBreadcrumb, Ki as useDisclosure, Yo as useRouteModal, qt as useSidebarManager, $n as useToast };
4685
+ export { Qi as NAlert, go as NAudioSelect, z as NButton, Sn as NCard, xe as NCheckbox, wr as NCode, Mi as NDatePicker, Ui as NDrawer, Mn as NEmpty, $t as NFileSelect, xn as NForm, Ja as NImageSelect, ue as NInput, Ho as NLayout, or as NList, Un as NLoading, ts as NLoginLayout, Ri as NModal, Yo as NNavigation, Oe as NSelect, Ro as NSidebar, Er as NSwitch, nr as NTable, Dr as NTag, he as NTextarea, hr as NToast, Ni as NTooltip, wa as NVideoSelect, is as NickLabsUI, Rt as useAlert, H as useBreadcrumb, $i as useDisclosure, ns as useRouteModal, rn as useSidebarManager, lr as useToast };