nicklabs-ui 1.0.87 → 1.0.89

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
@@ -5024,10 +5024,10 @@ var Na = { class: "icon-wrap" }, Pa = ["innerHTML"], Fa = {
5024
5024
  }, A(e.confirmText), 11, xs)])
5025
5025
  ], 6))), 128))])], 2)]));
5026
5026
  }
5027
- }), [["__scopeId", "data-v-20105bbb"]]), Cs = ["onClick"], ws = { class: "th-content" }, Ts = {
5027
+ }), [["__scopeId", "data-v-20105bbb"]]), Cs = { class: "vtable-hscroll" }, ws = { class: "vtable-htable" }, Ts = ["onClick"], Es = { class: "th-content" }, Ds = {
5028
5028
  key: 0,
5029
5029
  class: "sort-icon"
5030
- }, Es = {
5030
+ }, Os = {
5031
5031
  key: 0,
5032
5032
  viewBox: "0 0 24 24",
5033
5033
  fill: "none",
@@ -5035,7 +5035,7 @@ var Na = { class: "icon-wrap" }, Pa = ["innerHTML"], Fa = {
5035
5035
  "stroke-width": "2",
5036
5036
  "stroke-linecap": "round",
5037
5037
  "stroke-linejoin": "round"
5038
- }, Ds = {
5038
+ }, ks = {
5039
5039
  key: 1,
5040
5040
  viewBox: "0 0 24 24",
5041
5041
  fill: "none",
@@ -5043,7 +5043,7 @@ var Na = { class: "icon-wrap" }, Pa = ["innerHTML"], Fa = {
5043
5043
  "stroke-width": "2",
5044
5044
  "stroke-linecap": "round",
5045
5045
  "stroke-linejoin": "round"
5046
- }, Os = {
5046
+ }, As = {
5047
5047
  key: 2,
5048
5048
  viewBox: "0 0 24 24",
5049
5049
  fill: "none",
@@ -5051,13 +5051,13 @@ var Na = { class: "icon-wrap" }, Pa = ["innerHTML"], Fa = {
5051
5051
  "stroke-width": "2",
5052
5052
  "stroke-linecap": "round",
5053
5053
  "stroke-linejoin": "round"
5054
- }, ks = {
5054
+ }, js = {
5055
5055
  key: 0,
5056
5056
  class: "vtable-th actions"
5057
- }, As = ["onClick"], js = {
5057
+ }, Ms = ["onClick"], Ns = {
5058
5058
  key: 0,
5059
- class: "vtable-td actions"
5060
- }, Ms = /* @__PURE__ */ z(/* @__PURE__ */ p({
5059
+ class: "actions"
5060
+ }, Ps = "120px", Fs = /* @__PURE__ */ z(/* @__PURE__ */ p({
5061
5061
  __name: "NVirtualTable",
5062
5062
  props: {
5063
5063
  columns: { default: () => [] },
@@ -5079,76 +5079,76 @@ var Na = { class: "icon-wrap" }, Pa = ["innerHTML"], Fa = {
5079
5079
  itemKey: { default: "id" },
5080
5080
  rowHeight: { default: 56 },
5081
5081
  height: { default: "480px" },
5082
- overscan: { default: 8 }
5082
+ overscan: { default: 8 },
5083
+ actionsWidth: { default: "120px" }
5083
5084
  },
5084
5085
  emits: ["sort", "click"],
5085
5086
  setup(t, { emit: n }) {
5086
5087
  let r = n, a = P(), l = T(null), u = T({
5087
5088
  key: "",
5088
5089
  order: null
5089
- }), p = i(() => !!a.actions), m = i(() => {
5090
- let e = t.columns.map((e) => e.width ?? "1fr");
5091
- return p.value && e.push("max-content"), e.join(" ");
5092
- }), h = zn(i(() => ({
5090
+ }), p = i(() => !!a.actions), m = (e) => {
5091
+ let t = e ?? "1fr";
5092
+ return t.endsWith("fr") ? `minmax(${Ps}, ${t})` : `minmax(${t}, ${t})`;
5093
+ }, h = i(() => {
5094
+ let e = t.columns.map((e) => m(e.width));
5095
+ return p.value && e.push(`minmax(${t.actionsWidth}, ${t.actionsWidth})`), e.join(" ");
5096
+ }), g = zn(i(() => ({
5093
5097
  count: t.items.length,
5094
5098
  getScrollElement: () => l.value,
5095
5099
  estimateSize: () => t.rowHeight,
5096
5100
  overscan: t.overscan
5097
- }))), g = i(() => h.value.getVirtualItems()), y = i(() => h.value.getTotalSize()), b = (e) => {
5101
+ }))), y = i(() => g.value.getVirtualItems()), b = i(() => g.value.getTotalSize()), x = (e) => {
5098
5102
  e.sortable && (u.value.key === e.key ? u.value.order = u.value.order === "asc" ? "desc" : "asc" : (u.value.key = e.key, u.value.order = "asc"), r("sort", { ...u.value }));
5099
5103
  };
5100
- return (n, i) => (C(), s("div", { class: _(["vtable", [{ bordered: t.bordered }, { hoverable: t.hoverable }]]) }, [
5101
- c("div", {
5102
- class: "vtable-header",
5103
- style: v({ gridTemplateColumns: m.value })
5104
- }, [(C(!0), s(e, null, E(t.columns, (e) => (C(), s("div", {
5105
- key: e.key,
5106
- class: _(["vtable-th", { sortable: e.sortable }]),
5107
- onClick: (t) => b(e)
5108
- }, [c("span", ws, [d(A(e.label) + " ", 1), e.sortable ? (C(), s("span", Ts, [u.value.key !== e.key || u.value.order === null ? (C(), s("svg", Es, [...i[0] ||= [c("path", { d: "M8 9l4-4 4 4" }, null, -1), c("path", { d: "M16 15l-4 4-4-4" }, null, -1)]])) : u.value.order === "asc" ? (C(), s("svg", Ds, [...i[1] ||= [c("path", { d: "M8 15l4-6 4 6" }, null, -1)]])) : (C(), s("svg", Os, [...i[2] ||= [c("path", { d: "M8 9l4 6 4-6" }, null, -1)]]))])) : o("", !0)])], 10, Cs))), 128)), p.value ? (C(), s("div", ks, [D(n.$slots, "actions-header", {}, () => [i[3] ||= d("操作", -1)], !0)])) : o("", !0)], 4),
5109
- f(fa, {
5110
- loading: t.loading,
5111
- overlay: ""
5112
- }, {
5113
- default: I(() => [t.loading || t.items.length > 0 ? (C(), s("div", {
5114
- key: 0,
5115
- ref_key: "scrollRef",
5116
- ref: l,
5117
- class: "vtable-body",
5118
- style: v({ height: t.height })
5119
- }, [!t.loading && t.items.length > 0 ? (C(), s("div", {
5120
- key: 0,
5121
- class: "vtable-viewport",
5122
- style: v({ height: `${y.value}px` })
5123
- }, [(C(!0), s(e, null, E(g.value, (e) => (C(), s("div", {
5124
- key: t.items[e.index]?.[t.itemKey] ?? e.index,
5125
- class: "vtable-row",
5126
- style: v({
5127
- gridTemplateColumns: m.value,
5128
- height: `${e.size}px`,
5129
- transform: `translateY(${e.start}px)`
5130
- }),
5131
- onClick: (n) => r("click", t.items[e.index])
5132
- }, [D(n.$slots, "cell", {
5133
- index: e.index,
5134
- item: t.items[e.index],
5135
- columns: t.columns
5136
- }, void 0, !0), p.value ? (C(), s("div", js, [D(n.$slots, "actions", {
5137
- index: e.index,
5138
- item: t.items[e.index]
5139
- }, void 0, !0)])) : o("", !0)], 12, As))), 128))], 4)) : o("", !0)], 4)) : o("", !0)]),
5140
- _: 3
5141
- }, 8, ["loading"]),
5142
- !t.loading && t.items.length === 0 ? D(n.$slots, "empty", { key: 0 }, () => [f(ta, {
5143
- title: t.emptyTitle,
5144
- description: t.emptyDescription
5145
- }, null, 8, ["title", "description"])], !0) : o("", !0)
5146
- ], 2));
5104
+ return (n, i) => (C(), s("div", { class: _(["vtable", [{ bordered: t.bordered }, { hoverable: t.hoverable }]]) }, [c("div", Cs, [c("div", ws, [c("div", {
5105
+ class: "vtable-header",
5106
+ style: v({ gridTemplateColumns: h.value })
5107
+ }, [(C(!0), s(e, null, E(t.columns, (e) => (C(), s("div", {
5108
+ key: e.key,
5109
+ class: _(["vtable-th", { sortable: e.sortable }]),
5110
+ onClick: (t) => x(e)
5111
+ }, [c("span", Es, [d(A(e.label) + " ", 1), e.sortable ? (C(), s("span", Ds, [u.value.key !== e.key || u.value.order === null ? (C(), s("svg", Os, [...i[0] ||= [c("path", { d: "M8 9l4-4 4 4" }, null, -1), c("path", { d: "M16 15l-4 4-4-4" }, null, -1)]])) : u.value.order === "asc" ? (C(), s("svg", ks, [...i[1] ||= [c("path", { d: "M8 15l4-6 4 6" }, null, -1)]])) : (C(), s("svg", As, [...i[2] ||= [c("path", { d: "M8 9l4 6 4-6" }, null, -1)]]))])) : o("", !0)])], 10, Ts))), 128)), p.value ? (C(), s("div", js, [D(n.$slots, "actions-header", {}, () => [i[3] ||= d("操作", -1)], !0)])) : o("", !0)], 4), f(fa, {
5112
+ loading: t.loading,
5113
+ overlay: ""
5114
+ }, {
5115
+ default: I(() => [t.loading || t.items.length > 0 ? (C(), s("div", {
5116
+ key: 0,
5117
+ ref_key: "scrollRef",
5118
+ ref: l,
5119
+ class: "vtable-body",
5120
+ style: v({ height: t.height })
5121
+ }, [!t.loading && t.items.length > 0 ? (C(), s("div", {
5122
+ key: 0,
5123
+ class: "vtable-viewport",
5124
+ style: v({ height: `${b.value}px` })
5125
+ }, [(C(!0), s(e, null, E(y.value, (e) => (C(), s("div", {
5126
+ key: t.items[e.index]?.[t.itemKey] ?? e.index,
5127
+ class: "vtable-row",
5128
+ style: v({
5129
+ gridTemplateColumns: h.value,
5130
+ height: `${e.size}px`,
5131
+ transform: `translateY(${e.start}px)`
5132
+ }),
5133
+ onClick: (n) => r("click", t.items[e.index])
5134
+ }, [D(n.$slots, "cell", {
5135
+ index: e.index,
5136
+ item: t.items[e.index],
5137
+ columns: t.columns
5138
+ }, void 0, !0), p.value ? (C(), s("div", Ns, [D(n.$slots, "actions", {
5139
+ index: e.index,
5140
+ item: t.items[e.index]
5141
+ }, void 0, !0)])) : o("", !0)], 12, Ms))), 128))], 4)) : o("", !0)], 4)) : o("", !0)]),
5142
+ _: 3
5143
+ }, 8, ["loading"])])]), !t.loading && t.items.length === 0 ? D(n.$slots, "empty", { key: 0 }, () => [f(ta, {
5144
+ title: t.emptyTitle,
5145
+ description: t.emptyDescription
5146
+ }, null, 8, ["title", "description"])], !0) : o("", !0)], 2));
5147
5147
  }
5148
- }), [["__scopeId", "data-v-eafa0530"]]);
5148
+ }), [["__scopeId", "data-v-c7d6a7e3"]]);
5149
5149
  //#endregion
5150
5150
  //#region src/composables/useDisclosure.ts
5151
- function Ns() {
5151
+ function Is() {
5152
5152
  let e = T(!1);
5153
5153
  function t() {
5154
5154
  e.value = !0;
@@ -5164,11 +5164,11 @@ function Ns() {
5164
5164
  }
5165
5165
  //#endregion
5166
5166
  //#region src/composables/useMediaSelect.ts
5167
- var Ps = (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", Fs = (e, t = "floor") => {
5167
+ var Ls = (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", Rs = (e, t = "floor") => {
5168
5168
  if (e == null || isNaN(e)) return "0:00";
5169
5169
  let n = t === "round" ? Math.round(e) : Math.floor(e), r = Math.floor(n / 60), i = n % 60;
5170
5170
  return r + ":" + (i < 10 ? "0" : "") + i;
5171
- }, Is = (e) => e.width && e.height ? e.width + "×" + e.height : "—", Ls = (e, t) => {
5171
+ }, zs = (e) => e.width && e.height ? e.width + "×" + e.height : "—", Bs = (e, t) => {
5172
5172
  if (e.name) return e.name;
5173
5173
  try {
5174
5174
  let n = new URL(e.url, window.location.href).pathname;
@@ -5176,17 +5176,17 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5176
5176
  } catch {
5177
5177
  return t;
5178
5178
  }
5179
- }, Rs = (e) => {
5179
+ }, Vs = (e) => {
5180
5180
  e?.startsWith("blob:") && URL.revokeObjectURL(e);
5181
- }, zs = (e) => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : e + Math.random().toString(36).slice(2, 9), Bs = (e, t, n) => {
5181
+ }, Hs = (e) => typeof crypto < "u" && "randomUUID" in crypto ? crypto.randomUUID() : e + Math.random().toString(36).slice(2, 9), Us = (e, t, n) => {
5182
5182
  let r = t.split(",").map((e) => e.trim().toLowerCase()).filter(Boolean);
5183
5183
  if (r.length === 0) return e.type.startsWith(n);
5184
5184
  let i = e.type.toLowerCase(), a = e.name.toLowerCase();
5185
5185
  return r.some((e) => e.startsWith(".") ? a.endsWith(e) : e.endsWith("/*") ? i.startsWith(e.slice(0, -1)) : i === e);
5186
- }, Vs = (e, t) => {
5186
+ }, Ws = (e, t) => {
5187
5187
  let n = [], r = !1;
5188
5188
  return Array.prototype.forEach.call(e, (e) => {
5189
- if (!Bs(e, t.accept, t.fallbackTypePrefix)) {
5189
+ if (!Us(e, t.accept, t.fallbackTypePrefix)) {
5190
5190
  t.onError({
5191
5191
  type: "type",
5192
5192
  file: e
@@ -5209,7 +5209,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5209
5209
  }
5210
5210
  n.push(e);
5211
5211
  }), n;
5212
- }, Hs = (e) => {
5212
+ }, Gs = (e) => {
5213
5213
  let t = T(!1), n = async () => {
5214
5214
  if (!e.isBlocked()) if (e.multiple()) {
5215
5215
  let t = await ai.input.custom(e.accept(), !0);
@@ -5240,7 +5240,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5240
5240
  },
5241
5241
  openFileDialog: n
5242
5242
  };
5243
- }, Us = (e, t) => {
5243
+ }, Ks = (e, t) => {
5244
5244
  let n = "", r = (e) => {
5245
5245
  e.key === "Escape" && t();
5246
5246
  };
@@ -5249,26 +5249,26 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5249
5249
  }), y(() => {
5250
5250
  e.value && (document.body.style.overflow = n), document.removeEventListener("keydown", r);
5251
5251
  });
5252
- }, Ws = {
5252
+ }, qs = {
5253
5253
  key: 0,
5254
5254
  class: "head"
5255
- }, Gs = ["textContent"], Ks = {
5255
+ }, Js = ["textContent"], Ys = {
5256
5256
  key: 1,
5257
5257
  class: "count-chip"
5258
- }, qs = { class: "grid" }, Js = {
5258
+ }, Xs = { class: "grid" }, Zs = {
5259
5259
  key: 0,
5260
5260
  class: "icon",
5261
5261
  "aria-hidden": "true"
5262
- }, Ys = ["textContent"], Xs = ["textContent"], Zs = ["onClick"], Qs = ["src"], $s = {
5262
+ }, Qs = ["textContent"], $s = ["textContent"], ec = ["onClick"], tc = ["src"], nc = {
5263
5263
  key: 1,
5264
5264
  class: "placeholder-label"
5265
- }, ec = { class: "duration" }, tc = { class: "card-body" }, nc = ["title"], rc = { class: "file-meta" }, ic = { key: 0 }, ac = {
5265
+ }, rc = { class: "duration" }, ic = { class: "card-body" }, ac = ["title"], oc = { class: "file-meta" }, sc = { key: 0 }, cc = {
5266
5266
  key: 1,
5267
5267
  class: "dot-separator"
5268
- }, oc = { key: 2 }, sc = { class: "card-actions" }, cc = ["onClick"], lc = ["disabled", "onClick"], uc = { class: "vi-modal-card" }, dc = { class: "vi-modal-media" }, fc = ["src"], pc = {
5268
+ }, lc = { key: 2 }, uc = { class: "card-actions" }, dc = ["onClick"], fc = ["disabled", "onClick"], pc = { class: "vi-modal-card" }, mc = { class: "vi-modal-media" }, hc = ["src"], gc = {
5269
5269
  key: 1,
5270
5270
  class: "vi-modal-placeholder"
5271
- }, mc = { class: "vi-modal-bar" }, hc = { class: "vi-modal-info" }, gc = { class: "modal-name" }, _c = { class: "modal-meta" }, vc = /* @__PURE__ */ z(/* @__PURE__ */ p({
5271
+ }, _c = { class: "vi-modal-bar" }, vc = { class: "vi-modal-info" }, yc = { class: "modal-name" }, bc = { class: "modal-meta" }, xc = /* @__PURE__ */ z(/* @__PURE__ */ p({
5272
5272
  __name: "NVideoSelect",
5273
5273
  props: {
5274
5274
  modelValue: { default: () => [] },
@@ -5306,7 +5306,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5306
5306
  "error"
5307
5307
  ],
5308
5308
  setup(r, { emit: l }) {
5309
- let u = l, p = T(null), [m, g, v] = Ns(), { confirm: b } = ci(), x = !1, S = i(() => r.modelValue.length), w = (e) => Fs(e, "round"), D = (e) => Ls(e, "影片"), O = (e) => {
5309
+ let u = l, p = T(null), [m, g, v] = Is(), { confirm: b } = ci(), x = !1, S = i(() => r.modelValue.length), w = (e) => Rs(e, "round"), D = (e) => Bs(e, "影片"), O = (e) => {
5310
5310
  if (!e.url) return;
5311
5311
  let t = document.createElement("video");
5312
5312
  t.preload = "metadata";
@@ -5331,13 +5331,13 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5331
5331
  !e.url || k.has(e.id) || (k.add(e.id), (e.duration == null || e.width == null) && O(e));
5332
5332
  });
5333
5333
  }, { immediate: !0 });
5334
- let { isDragging: j, dropZoneHandlers: M } = Hs({
5334
+ let { isDragging: j, dropZoneHandlers: M } = Gs({
5335
5335
  isBlocked: () => r.disabled || r.readonly,
5336
5336
  accept: () => r.accept,
5337
5337
  multiple: () => r.multiple,
5338
5338
  onFiles: (e) => {
5339
5339
  if (r.disabled || r.readonly) return;
5340
- let t = Vs(e, {
5340
+ let t = Ws(e, {
5341
5341
  accept: r.accept,
5342
5342
  fallbackTypePrefix: "video/",
5343
5343
  maxSize: r.maxSize,
@@ -5346,7 +5346,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5346
5346
  });
5347
5347
  if (t.length === 0) return;
5348
5348
  let n = t.map((e) => ({
5349
- id: zs("v"),
5349
+ id: Hs("v"),
5350
5350
  file: e,
5351
5351
  name: e.name,
5352
5352
  size: e.size,
@@ -5368,7 +5368,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5368
5368
  confirmText: "移除",
5369
5369
  cancelText: "取消"
5370
5370
  })) return;
5371
- Rs(t.url), k.delete(e);
5371
+ Vs(t.url), k.delete(e);
5372
5372
  let n = r.modelValue.filter((t) => t.id !== e);
5373
5373
  u("update:modelValue", n), u("change", n), u("remove", t);
5374
5374
  }, P = (e) => {
@@ -5378,30 +5378,30 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5378
5378
  }, ne = i(() => {
5379
5379
  let e = p.value;
5380
5380
  return e ? [
5381
- e.size == null ? null : Ps(e.size),
5382
- e.width && e.height ? Is(e) : null,
5381
+ e.size == null ? null : Ls(e.size),
5382
+ e.width && e.height ? zs(e) : null,
5383
5383
  w(e.duration)
5384
5384
  ].filter(Boolean).join(" · ") : "";
5385
5385
  });
5386
- return Us(m, te), y(() => {
5387
- x = !0, r.autoRevoke && r.modelValue.forEach((e) => Rs(e.url));
5386
+ return Ks(m, te), y(() => {
5387
+ x = !0, r.autoRevoke && r.modelValue.forEach((e) => Vs(e.url));
5388
5388
  }), (i, l) => (C(), s("div", { class: _(["video-input", {
5389
5389
  "is-disabled": r.disabled,
5390
5390
  "is-readonly": r.readonly
5391
5391
  }]) }, [
5392
- r.title || r.showCount ? (C(), s("div", Ws, [r.title ? (C(), s("span", {
5392
+ r.title || r.showCount ? (C(), s("div", qs, [r.title ? (C(), s("span", {
5393
5393
  key: 0,
5394
5394
  class: "title",
5395
5395
  textContent: A(r.title)
5396
- }, null, 8, Gs)) : o("", !0), r.showCount ? (C(), s("span", Ks, A(S.value) + " 支", 1)) : o("", !0)])) : o("", !0),
5397
- c("div", qs, [S.value === 0 ? (C(), s("div", h({
5396
+ }, null, 8, Js)) : o("", !0), r.showCount ? (C(), s("span", Ys, A(S.value) + " 支", 1)) : o("", !0)])) : o("", !0),
5397
+ c("div", Xs, [S.value === 0 ? (C(), s("div", h({
5398
5398
  key: 0,
5399
5399
  class: ["empty", {
5400
5400
  "is-drag": N(j),
5401
5401
  "is-static": r.readonly
5402
5402
  }]
5403
5403
  }, r.readonly ? {} : N(M)), [
5404
- r.readonly ? o("", !0) : (C(), s("span", Js, [...l[0] ||= [c("svg", {
5404
+ r.readonly ? o("", !0) : (C(), s("span", Zs, [...l[0] ||= [c("svg", {
5405
5405
  viewBox: "0 0 24 24",
5406
5406
  fill: "none",
5407
5407
  stroke: "currentColor",
@@ -5413,11 +5413,11 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5413
5413
  c("path", { d: "M7 9l5-5 5 5" }),
5414
5414
  c("path", { d: "M12 4v12" })
5415
5415
  ], -1)]])),
5416
- c("h3", { textContent: A(r.readonly ? "目前沒有影片" : r.emptyTitle) }, null, 8, Ys),
5416
+ c("h3", { textContent: A(r.readonly ? "目前沒有影片" : r.emptyTitle) }, null, 8, Qs),
5417
5417
  r.readonly ? o("", !0) : (C(), s("p", {
5418
5418
  key: 1,
5419
5419
  textContent: A(r.emptyHint)
5420
- }, null, 8, Xs))
5420
+ }, null, 8, $s))
5421
5421
  ], 16)) : (C(), s(e, { key: 1 }, [(C(!0), s(e, null, E(r.modelValue, (e) => (C(), s("div", {
5422
5422
  key: e.id,
5423
5423
  class: "card"
@@ -5430,7 +5430,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5430
5430
  src: e.url + "#t=0.5",
5431
5431
  muted: "",
5432
5432
  preload: "metadata"
5433
- }, null, 8, Qs)) : (C(), s("div", $s, "縮圖預覽")),
5433
+ }, null, 8, tc)) : (C(), s("div", nc, "縮圖預覽")),
5434
5434
  l[1] ||= c("div", {
5435
5435
  class: "play",
5436
5436
  "aria-hidden": "true"
@@ -5438,18 +5438,18 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5438
5438
  viewBox: "0 0 24 24",
5439
5439
  fill: "currentColor"
5440
5440
  }, [c("path", { d: "M8 5v14l11-7z" })])], -1),
5441
- c("div", ec, A(w(e.duration)), 1)
5442
- ], 10, Zs), c("div", tc, [
5441
+ c("div", rc, A(w(e.duration)), 1)
5442
+ ], 10, ec), c("div", ic, [
5443
5443
  c("div", {
5444
5444
  class: "file-name",
5445
5445
  title: D(e)
5446
- }, A(D(e)), 9, nc),
5447
- c("div", rc, [
5448
- e.size == null ? o("", !0) : (C(), s("span", ic, A(N(Ps)(e.size)), 1)),
5449
- e.size != null && e.width && e.height ? (C(), s("span", ac)) : o("", !0),
5450
- e.width && e.height ? (C(), s("span", oc, A(N(Is)(e)), 1)) : o("", !0)
5446
+ }, A(D(e)), 9, ac),
5447
+ c("div", oc, [
5448
+ e.size == null ? o("", !0) : (C(), s("span", sc, A(N(Ls)(e.size)), 1)),
5449
+ e.size != null && e.width && e.height ? (C(), s("span", cc)) : o("", !0),
5450
+ e.width && e.height ? (C(), s("span", lc, A(N(zs)(e)), 1)) : o("", !0)
5451
5451
  ]),
5452
- c("div", sc, [c("button", {
5452
+ c("div", uc, [c("button", {
5453
5453
  class: "action preview",
5454
5454
  onClick: (t) => P(e)
5455
5455
  }, [...l[2] ||= [c("svg", {
@@ -5463,7 +5463,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5463
5463
  cx: "12",
5464
5464
  cy: "12",
5465
5465
  r: "3"
5466
- })], -1), d(" 預覽 ", -1)]], 8, cc), r.readonly ? o("", !0) : (C(), s("button", {
5466
+ })], -1), d(" 預覽 ", -1)]], 8, dc), r.readonly ? o("", !0) : (C(), s("button", {
5467
5467
  key: 0,
5468
5468
  class: "action delete",
5469
5469
  "aria-label": "刪除",
@@ -5476,7 +5476,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5476
5476
  "stroke-width": "2",
5477
5477
  "stroke-linecap": "round",
5478
5478
  "stroke-linejoin": "round"
5479
- }, [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, lc))])
5479
+ }, [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, fc))])
5480
5480
  ])]))), 128)), r.multiple && !r.readonly ? (C(), s("div", h({
5481
5481
  key: 0,
5482
5482
  class: ["add-card", { "is-drag": N(j) }]
@@ -5500,7 +5500,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5500
5500
  key: 0,
5501
5501
  class: "vi-modal",
5502
5502
  onClick: L(te, ["self"])
5503
- }, [c("div", uc, [c("div", dc, [p.value?.url ? (C(), s("video", {
5503
+ }, [c("div", pc, [c("div", mc, [p.value?.url ? (C(), s("video", {
5504
5504
  key: 0,
5505
5505
  src: p.value.url,
5506
5506
  controls: "",
@@ -5508,7 +5508,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5508
5508
  playsinline: "",
5509
5509
  controlslist: "nofullscreen nodownload noremoteplayback noplaybackrate",
5510
5510
  disablepictureinpicture: ""
5511
- }, null, 8, fc)) : (C(), s("div", pc, " 示範影片 · 上傳真實檔案即可在此播放 "))]), c("div", mc, [c("div", hc, [c("div", gc, A(p.value ? D(p.value) : ""), 1), c("div", _c, A(ne.value), 1)]), c("button", {
5511
+ }, null, 8, hc)) : (C(), s("div", gc, " 示範影片 · 上傳真實檔案即可在此播放 "))]), c("div", _c, [c("div", vc, [c("div", yc, A(p.value ? D(p.value) : ""), 1), c("div", bc, A(ne.value), 1)]), c("button", {
5512
5512
  class: "vi-modal-close",
5513
5513
  "aria-label": "關閉",
5514
5514
  onClick: te
@@ -5524,26 +5524,26 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5524
5524
  })]))
5525
5525
  ], 2));
5526
5526
  }
5527
- }), [["__scopeId", "data-v-479d302a"]]), yc = {
5527
+ }), [["__scopeId", "data-v-479d302a"]]), Sc = {
5528
5528
  key: 0,
5529
5529
  class: "head"
5530
- }, bc = ["textContent"], xc = {
5530
+ }, Cc = ["textContent"], wc = {
5531
5531
  key: 1,
5532
5532
  class: "count-chip"
5533
- }, Sc = { class: "grid" }, Cc = {
5533
+ }, Tc = { class: "grid" }, Ec = {
5534
5534
  key: 0,
5535
5535
  class: "icon",
5536
5536
  "aria-hidden": "true"
5537
- }, wc = ["textContent"], Tc = ["textContent"], Ec = ["onClick"], Dc = ["src", "alt"], Oc = {
5537
+ }, Dc = ["textContent"], Oc = ["textContent"], kc = ["onClick"], Ac = ["src", "alt"], jc = {
5538
5538
  key: 1,
5539
5539
  class: "placeholder-label"
5540
- }, kc = { class: "card-body" }, Ac = ["title"], jc = { class: "file-meta" }, Mc = { key: 0 }, Nc = {
5540
+ }, Mc = { class: "card-body" }, Nc = ["title"], Pc = { class: "file-meta" }, Fc = { key: 0 }, Ic = {
5541
5541
  key: 1,
5542
5542
  class: "dot-separator"
5543
- }, Pc = { key: 2 }, Fc = { class: "card-actions" }, Ic = ["onClick"], Lc = ["disabled", "onClick"], Rc = { class: "ii-modal-card" }, zc = { class: "ii-modal-media" }, Bc = ["src", "alt"], Vc = {
5543
+ }, Lc = { key: 2 }, Rc = { class: "card-actions" }, zc = ["onClick"], Bc = ["disabled", "onClick"], Vc = { class: "ii-modal-card" }, Hc = { class: "ii-modal-media" }, Uc = ["src", "alt"], Wc = {
5544
5544
  key: 1,
5545
5545
  class: "ii-modal-ph"
5546
- }, Hc = { class: "ii-modal-bar" }, Uc = { class: "ii-modal-info" }, Wc = { class: "modal-name" }, Gc = { class: "modal-meta" }, Kc = /* @__PURE__ */ z(/* @__PURE__ */ p({
5546
+ }, Gc = { class: "ii-modal-bar" }, Kc = { class: "ii-modal-info" }, qc = { class: "modal-name" }, Jc = { class: "modal-meta" }, Yc = /* @__PURE__ */ z(/* @__PURE__ */ p({
5547
5547
  __name: "NImageSelect",
5548
5548
  props: {
5549
5549
  modelValue: { default: () => [] },
@@ -5581,7 +5581,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5581
5581
  "error"
5582
5582
  ],
5583
5583
  setup(r, { emit: l }) {
5584
- let u = l, p = T(null), [m, g, v] = Ns(), { confirm: b } = ci(), x = !1, S = i(() => r.modelValue.length), w = (e) => Ls(e, "圖片"), D = (e) => {
5584
+ let u = l, p = T(null), [m, g, v] = Is(), { confirm: b } = ci(), x = !1, S = i(() => r.modelValue.length), w = (e) => Bs(e, "圖片"), D = (e) => {
5585
5585
  if (!e.url) return;
5586
5586
  let t = new Image(), n = () => {
5587
5587
  t.removeEventListener("load", i), t.removeEventListener("error", n), t.removeAttribute("src");
@@ -5603,13 +5603,13 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5603
5603
  !e.url || O.has(e.id) || (O.add(e.id), (e.width == null || e.height == null) && D(e));
5604
5604
  });
5605
5605
  }, { immediate: !0 });
5606
- let { isDragging: k, dropZoneHandlers: j } = Hs({
5606
+ let { isDragging: k, dropZoneHandlers: j } = Gs({
5607
5607
  isBlocked: () => r.disabled || r.readonly,
5608
5608
  accept: () => r.accept,
5609
5609
  multiple: () => r.multiple,
5610
5610
  onFiles: (e) => {
5611
5611
  if (r.disabled || r.readonly) return;
5612
- let t = Vs(e, {
5612
+ let t = Ws(e, {
5613
5613
  accept: r.accept,
5614
5614
  fallbackTypePrefix: "image/",
5615
5615
  maxSize: r.maxSize,
@@ -5618,7 +5618,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5618
5618
  });
5619
5619
  if (t.length === 0) return;
5620
5620
  let n = t.map((e) => ({
5621
- id: zs("i"),
5621
+ id: Hs("i"),
5622
5622
  file: e,
5623
5623
  name: e.name,
5624
5624
  size: e.size,
@@ -5639,7 +5639,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5639
5639
  confirmText: "移除",
5640
5640
  cancelText: "取消"
5641
5641
  })) return;
5642
- Rs(t.url), O.delete(e);
5642
+ Vs(t.url), O.delete(e);
5643
5643
  let n = r.modelValue.filter((t) => t.id !== e);
5644
5644
  u("update:modelValue", n), u("change", n), u("remove", t);
5645
5645
  }, ee = (e) => {
@@ -5648,27 +5648,27 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5648
5648
  v();
5649
5649
  }, te = i(() => {
5650
5650
  let e = p.value;
5651
- return e ? [e.size == null ? null : Ps(e.size), e.width && e.height ? Is(e) : null].filter(Boolean).join(" · ") : "";
5651
+ return e ? [e.size == null ? null : Ls(e.size), e.width && e.height ? zs(e) : null].filter(Boolean).join(" · ") : "";
5652
5652
  });
5653
- return Us(m, P), y(() => {
5654
- x = !0, r.autoRevoke && r.modelValue.forEach((e) => Rs(e.url));
5653
+ return Ks(m, P), y(() => {
5654
+ x = !0, r.autoRevoke && r.modelValue.forEach((e) => Vs(e.url));
5655
5655
  }), (i, l) => (C(), s("div", { class: _(["image-input", {
5656
5656
  "is-disabled": r.disabled,
5657
5657
  "is-readonly": r.readonly
5658
5658
  }]) }, [
5659
- r.title || r.showCount ? (C(), s("div", yc, [r.title ? (C(), s("span", {
5659
+ r.title || r.showCount ? (C(), s("div", Sc, [r.title ? (C(), s("span", {
5660
5660
  key: 0,
5661
5661
  class: "title",
5662
5662
  textContent: A(r.title)
5663
- }, null, 8, bc)) : o("", !0), r.showCount ? (C(), s("span", xc, A(S.value) + " 張", 1)) : o("", !0)])) : o("", !0),
5664
- c("div", Sc, [S.value === 0 ? (C(), s("div", h({
5663
+ }, null, 8, Cc)) : o("", !0), r.showCount ? (C(), s("span", wc, A(S.value) + " 張", 1)) : o("", !0)])) : o("", !0),
5664
+ c("div", Tc, [S.value === 0 ? (C(), s("div", h({
5665
5665
  key: 0,
5666
5666
  class: ["empty", {
5667
5667
  "is-drag": N(k),
5668
5668
  "is-static": r.readonly
5669
5669
  }]
5670
5670
  }, r.readonly ? {} : N(j)), [
5671
- r.readonly ? o("", !0) : (C(), s("span", Cc, [...l[0] ||= [c("svg", {
5671
+ r.readonly ? o("", !0) : (C(), s("span", Ec, [...l[0] ||= [c("svg", {
5672
5672
  viewBox: "0 0 24 24",
5673
5673
  fill: "none",
5674
5674
  stroke: "currentColor",
@@ -5690,11 +5690,11 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5690
5690
  }),
5691
5691
  c("path", { d: "M21 15l-5-5L5 21" })
5692
5692
  ], -1)]])),
5693
- c("h3", { textContent: A(r.readonly ? "目前沒有圖片" : r.emptyTitle) }, null, 8, wc),
5693
+ c("h3", { textContent: A(r.readonly ? "目前沒有圖片" : r.emptyTitle) }, null, 8, Dc),
5694
5694
  r.readonly ? o("", !0) : (C(), s("p", {
5695
5695
  key: 1,
5696
5696
  textContent: A(r.emptyHint)
5697
- }, null, 8, Tc))
5697
+ }, null, 8, Oc))
5698
5698
  ], 16)) : (C(), s(e, { key: 1 }, [(C(!0), s(e, null, E(r.modelValue, (e) => (C(), s("div", {
5699
5699
  key: e.id,
5700
5700
  class: "card"
@@ -5706,7 +5706,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5706
5706
  src: e.url,
5707
5707
  alt: w(e),
5708
5708
  loading: "lazy"
5709
- }, null, 8, Dc)) : (C(), s("div", Oc, "縮圖預覽")), l[1] ||= c("div", {
5709
+ }, null, 8, Ac)) : (C(), s("div", jc, "縮圖預覽")), l[1] ||= c("div", {
5710
5710
  class: "zoom",
5711
5711
  "aria-hidden": "true"
5712
5712
  }, [c("svg", {
@@ -5720,17 +5720,17 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5720
5720
  cx: "11",
5721
5721
  cy: "11",
5722
5722
  r: "7"
5723
- }), c("path", { d: "m21 21-4.3-4.3M11 8v6M8 11h6" })])], -1)], 10, Ec), c("div", kc, [
5723
+ }), c("path", { d: "m21 21-4.3-4.3M11 8v6M8 11h6" })])], -1)], 10, kc), c("div", Mc, [
5724
5724
  c("div", {
5725
5725
  class: "file-name",
5726
5726
  title: w(e)
5727
- }, A(w(e)), 9, Ac),
5728
- c("div", jc, [
5729
- e.size == null ? o("", !0) : (C(), s("span", Mc, A(N(Ps)(e.size)), 1)),
5730
- e.size != null && e.width && e.height ? (C(), s("span", Nc)) : o("", !0),
5731
- e.width && e.height ? (C(), s("span", Pc, A(N(Is)(e)), 1)) : o("", !0)
5727
+ }, A(w(e)), 9, Nc),
5728
+ c("div", Pc, [
5729
+ e.size == null ? o("", !0) : (C(), s("span", Fc, A(N(Ls)(e.size)), 1)),
5730
+ e.size != null && e.width && e.height ? (C(), s("span", Ic)) : o("", !0),
5731
+ e.width && e.height ? (C(), s("span", Lc, A(N(zs)(e)), 1)) : o("", !0)
5732
5732
  ]),
5733
- c("div", Fc, [c("button", {
5733
+ c("div", Rc, [c("button", {
5734
5734
  class: "action preview",
5735
5735
  onClick: (t) => ee(e)
5736
5736
  }, [...l[2] ||= [c("svg", {
@@ -5744,7 +5744,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5744
5744
  cx: "12",
5745
5745
  cy: "12",
5746
5746
  r: "3"
5747
- })], -1), d(" 預覽 ", -1)]], 8, Ic), r.readonly ? o("", !0) : (C(), s("button", {
5747
+ })], -1), d(" 預覽 ", -1)]], 8, zc), r.readonly ? o("", !0) : (C(), s("button", {
5748
5748
  key: 0,
5749
5749
  class: "action delete",
5750
5750
  "aria-label": "刪除",
@@ -5757,7 +5757,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5757
5757
  "stroke-width": "2",
5758
5758
  "stroke-linecap": "round",
5759
5759
  "stroke-linejoin": "round"
5760
- }, [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, Lc))])
5760
+ }, [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, Bc))])
5761
5761
  ])]))), 128)), r.multiple && !r.readonly ? (C(), s("div", h({
5762
5762
  key: 0,
5763
5763
  class: ["add-card", { "is-drag": N(k) }]
@@ -5781,11 +5781,11 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5781
5781
  key: 0,
5782
5782
  class: "ii-modal",
5783
5783
  onClick: L(P, ["self"])
5784
- }, [c("div", Rc, [c("div", zc, [p.value?.url ? (C(), s("img", {
5784
+ }, [c("div", Vc, [c("div", Hc, [p.value?.url ? (C(), s("img", {
5785
5785
  key: 0,
5786
5786
  src: p.value.url,
5787
5787
  alt: p.value ? w(p.value) : ""
5788
- }, null, 8, Bc)) : (C(), s("div", Vc, " 示範圖片 · 上傳真實檔案即可在此檢視 "))]), c("div", Hc, [c("div", Uc, [c("div", Wc, A(p.value ? w(p.value) : ""), 1), c("div", Gc, A(te.value), 1)]), c("button", {
5788
+ }, null, 8, Uc)) : (C(), s("div", Wc, " 示範圖片 · 上傳真實檔案即可在此檢視 "))]), c("div", Gc, [c("div", Kc, [c("div", qc, A(p.value ? w(p.value) : ""), 1), c("div", Jc, A(te.value), 1)]), c("button", {
5789
5789
  class: "ii-modal-close",
5790
5790
  "aria-label": "關閉",
5791
5791
  onClick: P
@@ -5801,40 +5801,40 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5801
5801
  })]))
5802
5802
  ], 2));
5803
5803
  }
5804
- }), [["__scopeId", "data-v-aa2d3585"]]), qc = {
5804
+ }), [["__scopeId", "data-v-aa2d3585"]]), Xc = {
5805
5805
  key: 0,
5806
5806
  class: "head"
5807
- }, Jc = ["textContent"], Yc = {
5807
+ }, Zc = ["textContent"], Qc = {
5808
5808
  key: 1,
5809
5809
  class: "count-chip"
5810
- }, Xc = {
5810
+ }, $c = {
5811
5811
  key: 0,
5812
5812
  class: "icon",
5813
5813
  "aria-hidden": "true"
5814
- }, Zc = ["textContent"], Qc = ["textContent"], $c = {
5814
+ }, el = ["textContent"], tl = ["textContent"], nl = {
5815
5815
  key: 2,
5816
5816
  class: "list"
5817
- }, el = [
5817
+ }, rl = [
5818
5818
  "src",
5819
5819
  "onLoadedmetadata",
5820
5820
  "onTimeupdate",
5821
5821
  "onEnded"
5822
- ], tl = [
5822
+ ], il = [
5823
5823
  "aria-label",
5824
5824
  "disabled",
5825
5825
  "onClick"
5826
- ], nl = {
5826
+ ], al = {
5827
5827
  key: 0,
5828
5828
  viewBox: "0 0 24 24",
5829
5829
  fill: "currentColor"
5830
- }, rl = {
5830
+ }, ol = {
5831
5831
  key: 1,
5832
5832
  viewBox: "0 0 24 24",
5833
5833
  fill: "currentColor"
5834
- }, il = { class: "meta" }, al = ["title"], ol = { class: "sub" }, sl = ["onMousedown", "onTouchstart"], cl = {
5834
+ }, sl = { class: "meta" }, cl = ["title"], ll = { class: "sub" }, ul = ["onMousedown", "onTouchstart"], dl = {
5835
5835
  key: 1,
5836
5836
  class: "track"
5837
- }, ll = { class: "time" }, ul = ["disabled", "onClick"], dl = { class: "meta" }, fl = { class: "name" }, pl = 30, ml = 256, hl = 5, gl = /* @__PURE__ */ z(/* @__PURE__ */ p({
5837
+ }, fl = { class: "time" }, pl = ["disabled", "onClick"], ml = { class: "meta" }, hl = { class: "name" }, gl = 30, _l = 256, vl = 5, yl = /* @__PURE__ */ z(/* @__PURE__ */ p({
5838
5838
  __name: "NAudioSelect",
5839
5839
  props: {
5840
5840
  modelValue: { default: () => [] },
@@ -5885,8 +5885,8 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5885
5885
  let e = 0;
5886
5886
  if (r.forEach((t) => {
5887
5887
  t.refCount <= 0 && (e += 1);
5888
- }), !(e <= pl)) {
5889
- for (let [t, n] of r) if (!(n.refCount > 0) && (r.delete(t), --e, e <= pl)) break;
5888
+ }), !(e <= gl)) {
5889
+ for (let [t, n] of r) if (!(n.refCount > 0) && (r.delete(t), --e, e <= gl)) break;
5890
5890
  }
5891
5891
  }, f = (e, t) => {
5892
5892
  if (!e) return;
@@ -5900,9 +5900,9 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5900
5900
  n <= 0 || (n === 1 ? j.delete(e) : j.set(e, n - 1), f(e, t));
5901
5901
  }, P = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new Map(), I = (e, t) => {
5902
5902
  t ? P.set(e, t) : P.delete(e);
5903
- }, ne = i(() => t.modelValue.length), re = () => zs("a"), ie = (e) => Ls(e, "音訊"), R = null, ae = () => (R ||= new (window.AudioContext || window.webkitAudioContext)(), R), oe = async (e) => {
5904
- let t = await ae().decodeAudioData(e.slice(0)), n = t.getChannelData(0), r = Math.floor(n.length / ml) || 1, i = Array(ml), a = 0;
5905
- for (let e = 0; e < ml; e++) {
5903
+ }, ne = i(() => t.modelValue.length), re = () => Hs("a"), ie = (e) => Bs(e, "音訊"), R = null, ae = () => (R ||= new (window.AudioContext || window.webkitAudioContext)(), R), oe = async (e) => {
5904
+ let t = await ae().decodeAudioData(e.slice(0)), n = t.getChannelData(0), r = Math.floor(n.length / _l) || 1, i = Array(_l), a = 0;
5905
+ for (let e = 0; e < _l; e++) {
5906
5906
  let t = 0, o = e * r, s = Math.min(n.length, o + r);
5907
5907
  for (let e = o; e < s; e++) {
5908
5908
  let r = Math.abs(n[e]);
@@ -5911,7 +5911,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5911
5911
  i[e] = t, t > a && (a = t);
5912
5912
  }
5913
5913
  let o = a > 0 ? 1 / a : 1;
5914
- for (let e = 0; e < ml; e++) i[e] = Math.max(.06, i[e] * o);
5914
+ for (let e = 0; e < _l; e++) i[e] = Math.max(.06, i[e] * o);
5915
5915
  return {
5916
5916
  peaks: i,
5917
5917
  duration: t.duration
@@ -5924,7 +5924,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5924
5924
  B || requestAnimationFrame(() => z(e));
5925
5925
  return;
5926
5926
  }
5927
- let i = Math.max(8, Math.min(n.length, Math.floor((r + 2) / hl)));
5927
+ let i = Math.max(8, Math.min(n.length, Math.floor((r + 2) / vl)));
5928
5928
  if (D[e] && D[e].length === i) return;
5929
5929
  let a = Array(i);
5930
5930
  for (let e = 0; e < i; e++) {
@@ -5944,13 +5944,13 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5944
5944
  let n = t;
5945
5945
  n.dataset.waveId = e, te.set(e, n), B ? B.observe(n) : z(e);
5946
5946
  } else te.delete(e);
5947
- }, { isDragging: H, dropZoneHandlers: U } = Hs({
5947
+ }, { isDragging: H, dropZoneHandlers: U } = Gs({
5948
5948
  isBlocked: () => t.disabled || t.readonly,
5949
5949
  accept: () => t.accept,
5950
5950
  multiple: () => t.multiple,
5951
5951
  onFiles: (e) => {
5952
5952
  if (t.disabled || t.readonly) return;
5953
- let n = Vs(e, {
5953
+ let n = Ws(e, {
5954
5954
  accept: t.accept,
5955
5955
  fallbackTypePrefix: "audio/",
5956
5956
  maxSize: t.maxSize,
@@ -5994,7 +5994,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
5994
5994
  confirmText: "移除",
5995
5995
  cancelText: "取消"
5996
5996
  })) return;
5997
- x.value === e && ce(), Rs(n.url), ee(n.url, !0), delete S[e], delete D[e], delete O[e], k.delete(e);
5997
+ x.value === e && ce(), Vs(n.url), ee(n.url, !0), delete S[e], delete D[e], delete O[e], k.delete(e);
5998
5998
  let r = t.modelValue.filter((t) => t.id !== e);
5999
5999
  p("update:modelValue", r), p("change", r), p("remove", n);
6000
6000
  }, ce = () => {
@@ -6065,24 +6065,24 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6065
6065
  !e.url || k.has(e.id) || (k.add(e.id), S[e.id] || ve(e));
6066
6066
  });
6067
6067
  }, { immediate: !0 }), y(() => {
6068
- b = !0, fe?.(), t.autoRevoke && t.modelValue.forEach((e) => Rs(e.url)), j.forEach((e, t) => {
6068
+ b = !0, fe?.(), t.autoRevoke && t.modelValue.forEach((e) => Vs(e.url)), j.forEach((e, t) => {
6069
6069
  for (let n = 0; n < e; n++) f(t, !1);
6070
6070
  }), j.clear(), B?.disconnect(), R &&= (R.close(), null);
6071
6071
  }), (n, r) => (C(), s("div", { class: _(["audio-input", {
6072
6072
  "is-disabled": t.disabled,
6073
6073
  "is-readonly": t.readonly
6074
- }]) }, [t.title || t.showCount ? (C(), s("div", qc, [t.title ? (C(), s("span", {
6074
+ }]) }, [t.title || t.showCount ? (C(), s("div", Xc, [t.title ? (C(), s("span", {
6075
6075
  key: 0,
6076
6076
  class: "title",
6077
6077
  textContent: A(t.title)
6078
- }, null, 8, Jc)) : o("", !0), t.showCount ? (C(), s("span", Yc, A(ne.value) + " 首", 1)) : o("", !0)])) : o("", !0), ne.value === 0 && g.value.length === 0 ? (C(), s("div", h({
6078
+ }, null, 8, Zc)) : o("", !0), t.showCount ? (C(), s("span", Qc, A(ne.value) + " 首", 1)) : o("", !0)])) : o("", !0), ne.value === 0 && g.value.length === 0 ? (C(), s("div", h({
6079
6079
  key: 1,
6080
6080
  class: ["empty", {
6081
6081
  "is-drag": N(H),
6082
6082
  "is-static": t.readonly
6083
6083
  }]
6084
6084
  }, t.readonly ? {} : N(U)), [
6085
- t.readonly ? o("", !0) : (C(), s("span", Xc, [...r[0] ||= [c("svg", {
6085
+ t.readonly ? o("", !0) : (C(), s("span", $c, [...r[0] ||= [c("svg", {
6086
6086
  viewBox: "0 0 24 24",
6087
6087
  fill: "none",
6088
6088
  stroke: "currentColor",
@@ -6102,12 +6102,12 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6102
6102
  r: "3"
6103
6103
  })
6104
6104
  ], -1)]])),
6105
- c("h3", { textContent: A(t.readonly ? "目前沒有音訊" : t.emptyTitle) }, null, 8, Zc),
6105
+ c("h3", { textContent: A(t.readonly ? "目前沒有音訊" : t.emptyTitle) }, null, 8, el),
6106
6106
  t.readonly ? o("", !0) : (C(), s("p", {
6107
6107
  key: 1,
6108
6108
  textContent: A(t.emptyHint)
6109
- }, null, 8, Qc))
6110
- ], 16)) : (C(), s("div", $c, [
6109
+ }, null, 8, tl))
6110
+ ], 16)) : (C(), s("div", nl, [
6111
6111
  (C(!0), s(e, null, E(t.modelValue, (n) => (C(), s("div", {
6112
6112
  key: n.id,
6113
6113
  class: _(["row", { "is-playing": x.value === n.id }])
@@ -6120,13 +6120,13 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6120
6120
  onLoadedmetadata: (e) => ye(n.id, e),
6121
6121
  onTimeupdate: (e) => ue(n.id, e),
6122
6122
  onEnded: (e) => de(n.id)
6123
- }, null, 40, el),
6123
+ }, null, 40, rl),
6124
6124
  c("button", {
6125
6125
  class: "play-btn",
6126
6126
  "aria-label": x.value === n.id ? "暫停" : "播放",
6127
6127
  disabled: !n.url,
6128
6128
  onClick: (e) => le(n.id)
6129
- }, [x.value === n.id ? (C(), s("svg", nl, [...r[1] ||= [c("rect", {
6129
+ }, [x.value === n.id ? (C(), s("svg", al, [...r[1] ||= [c("rect", {
6130
6130
  x: "6",
6131
6131
  y: "5",
6132
6132
  width: "4",
@@ -6138,11 +6138,11 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6138
6138
  width: "4",
6139
6139
  height: "14",
6140
6140
  rx: "1"
6141
- }, null, -1)]])) : (C(), s("svg", rl, [...r[2] ||= [c("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, tl),
6142
- c("div", il, [c("div", {
6141
+ }, null, -1)]])) : (C(), s("svg", ol, [...r[2] ||= [c("path", { d: "M8 5v14l11-7z" }, null, -1)]]))], 8, il),
6142
+ c("div", sl, [c("div", {
6143
6143
  class: "name",
6144
6144
  title: ie(n)
6145
- }, A(ie(n)), 9, al), c("div", ol, [n.size == null ? o("", !0) : (C(), s(e, { key: 0 }, [d(A(N(Ps)(n.size)) + " · ", 1)], 64)), d(" " + A(N(Fs)(n.duration)), 1)])]),
6145
+ }, A(ie(n)), 9, cl), c("div", ll, [n.size == null ? o("", !0) : (C(), s(e, { key: 0 }, [d(A(N(Ls)(n.size)) + " · ", 1)], 64)), d(" " + A(N(Rs)(n.duration)), 1)])]),
6146
6146
  c("div", {
6147
6147
  class: _(["wave", { "is-track": !D[n.id]?.length }]),
6148
6148
  ref_for: !0,
@@ -6153,11 +6153,11 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6153
6153
  key: t,
6154
6154
  class: _(["bar", { "is-played": me(n, t) }]),
6155
6155
  style: v({ height: Math.max(2, Math.round(e * 34)) + "px" })
6156
- }, null, 6))), 128)) : (C(), s("div", cl, [c("div", {
6156
+ }, null, 6))), 128)) : (C(), s("div", dl, [c("div", {
6157
6157
  class: "track-fill",
6158
6158
  style: v({ width: he(n) * 100 + "%" })
6159
- }, null, 4)]))], 42, sl),
6160
- c("div", ll, A(N(Fs)(O[n.id] || 0)) + " / " + A(N(Fs)(n.duration)), 1),
6159
+ }, null, 4)]))], 42, ul),
6160
+ c("div", fl, A(N(Rs)(O[n.id] || 0)) + " / " + A(N(Rs)(n.duration)), 1),
6161
6161
  t.readonly ? o("", !0) : (C(), s("button", {
6162
6162
  key: 0,
6163
6163
  class: "del-btn",
@@ -6171,7 +6171,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6171
6171
  "stroke-width": "1.8",
6172
6172
  "stroke-linecap": "round",
6173
6173
  "stroke-linejoin": "round"
6174
- }, [c("path", { d: "M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14" })], -1)]], 8, ul))
6174
+ }, [c("path", { d: "M3 6h18M8 6V4h8v2M6 6l1 14h10l1-14" })], -1)]], 8, pl))
6175
6175
  ], 2))), 128)),
6176
6176
  (C(!0), s(e, null, E(g.value, (e) => (C(), s("div", {
6177
6177
  key: e.tag,
@@ -6185,20 +6185,20 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6185
6185
  stroke: "currentColor",
6186
6186
  "stroke-width": "2",
6187
6187
  "stroke-linecap": "round"
6188
- }, [c("path", { d: "M12 3a9 9 0 1 0 9 9" })])], -1), c("div", dl, [c("div", fl, A(e.name), 1), r[4] ||= c("div", { class: "sub" }, "解析波形中…", -1)])]))), 128)),
6188
+ }, [c("path", { d: "M12 3a9 9 0 1 0 9 9" })])], -1), c("div", ml, [c("div", hl, A(e.name), 1), r[4] ||= c("div", { class: "sub" }, "解析波形中…", -1)])]))), 128)),
6189
6189
  t.multiple && !t.readonly ? (C(), s("div", h({
6190
6190
  key: 0,
6191
6191
  class: ["add", { "is-drag": N(H) }]
6192
6192
  }, N(U)), [...r[6] ||= [u("<span class=\"plus\" aria-hidden=\"true\" data-v-3def95e6><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.8\" stroke-linecap=\"round\" data-v-3def95e6><path d=\"M12 5v14M5 12h14\" data-v-3def95e6></path></svg></span><div class=\"add-text\" data-v-3def95e6><div class=\"t\" data-v-3def95e6>新增音訊</div><div class=\"d\" data-v-3def95e6>點擊或拖放檔案 · MP3 / WAV / OGG / M4A</div></div>", 2)]], 16)) : o("", !0)
6193
6193
  ]))], 2));
6194
6194
  }
6195
- }), [["__scopeId", "data-v-3def95e6"]]), _l = { class: "header" }, vl = { class: "brand-logo" }, yl = { class: "logo-text" }, bl = { class: "logo-icon" }, xl = { class: "nav" }, Sl = ["onClick"], Cl = ["innerHTML"], wl = { class: "nav-list" }, Tl = ["href", "onClick"], El = ["innerHTML"], Dl = { class: "nav-text" }, Ol = ["href", "onClick"], kl = { class: "title no-children" }, Al = ["innerHTML"], jl = { class: "user-capsule" }, Ml = { class: "user-avatar" }, Nl = ["src"], Pl = {
6195
+ }), [["__scopeId", "data-v-3def95e6"]]), bl = { class: "header" }, xl = { class: "brand-logo" }, Sl = { class: "logo-text" }, Cl = { class: "logo-icon" }, wl = { class: "nav" }, Tl = ["onClick"], El = ["innerHTML"], Dl = { class: "nav-list" }, Ol = ["href", "onClick"], kl = ["innerHTML"], Al = { class: "nav-text" }, jl = ["href", "onClick"], Ml = { class: "title no-children" }, Nl = ["innerHTML"], Pl = { class: "user-capsule" }, Fl = { class: "user-avatar" }, Il = ["src"], Ll = {
6196
6196
  key: 1,
6197
6197
  xmlns: "http://www.w3.org/2000/svg",
6198
6198
  width: "36",
6199
6199
  height: "36",
6200
6200
  viewBox: "0 0 36 36"
6201
- }, Fl = { class: "user-info" }, Il = { class: "user-name-row" }, Ll = { class: "user-name" }, Rl = /* @__PURE__ */ z(/* @__PURE__ */ p({
6201
+ }, Rl = { class: "user-info" }, zl = { class: "user-name-row" }, Bl = { class: "user-name" }, Vl = /* @__PURE__ */ z(/* @__PURE__ */ p({
6202
6202
  __name: "NSidebar",
6203
6203
  props: {
6204
6204
  title: { default: "" },
@@ -6251,8 +6251,8 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6251
6251
  class: "content",
6252
6252
  onMouseenter: v[2] ||= (e) => p.value = !0
6253
6253
  }, [
6254
- D(r.$slots, "header", {}, () => [c("div", _l, [c("div", vl, [c("span", yl, A(n.title), 1), c("span", bl, A(n.title.substring(0, 1).toUpperCase()), 1)])])], !0),
6255
- c("div", xl, [(C(!0), s(e, null, E(n.menus, (t) => (C(), s(e, null, [t.children?.length ? (C(), s("div", {
6254
+ D(r.$slots, "header", {}, () => [c("div", bl, [c("div", xl, [c("span", Sl, A(n.title), 1), c("span", Cl, A(n.title.substring(0, 1).toUpperCase()), 1)])])], !0),
6255
+ c("div", wl, [(C(!0), s(e, null, E(n.menus, (t) => (C(), s(e, null, [t.children?.length ? (C(), s("div", {
6256
6256
  key: 0,
6257
6257
  class: _(["menu", {
6258
6258
  open: N(i)(t.title),
@@ -6261,7 +6261,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6261
6261
  }, [c("div", {
6262
6262
  class: "title",
6263
6263
  onClick: (e) => N(o)(t.title)
6264
- }, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Cl), c("span", null, A(t.title), 1)]), v[6] ||= c("svg", {
6264
+ }, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, El), c("span", null, A(t.title), 1)]), v[6] ||= c("svg", {
6265
6265
  xmlns: "http://www.w3.org/2000/svg",
6266
6266
  width: "14",
6267
6267
  height: "14",
@@ -6272,23 +6272,23 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6272
6272
  "stroke-linecap": "round",
6273
6273
  "stroke-linejoin": "round",
6274
6274
  class: "icon"
6275
- }, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, Sl), c("div", wl, [c("div", null, [(C(!0), s(e, null, E(t.children, (e) => (C(), s("a", {
6275
+ }, [c("path", { d: "m9 18 6-6-6-6" })], -1)], 8, Tl), c("div", Dl, [c("div", null, [(C(!0), s(e, null, E(t.children, (e) => (C(), s("a", {
6276
6276
  href: e.route,
6277
6277
  onClick: L((t) => h(e), ["prevent"])
6278
- }, [c("div", { class: _(["nav-item", { active: N(d)(e, n.currentPath) }]) }, [c("div", { innerHTML: e.icon }, null, 8, El), c("span", Dl, A(e.title), 1)], 2)], 8, Tl))), 256))])])], 2)) : (C(), s("div", {
6278
+ }, [c("div", { class: _(["nav-item", { active: N(d)(e, n.currentPath) }]) }, [c("div", { innerHTML: e.icon }, null, 8, kl), c("span", Al, A(e.title), 1)], 2)], 8, Ol))), 256))])])], 2)) : (C(), s("div", {
6279
6279
  key: 1,
6280
6280
  class: _(["menu", { active: t.route === n.currentPath }])
6281
6281
  }, [c("a", {
6282
6282
  href: t.route,
6283
6283
  onClick: L((e) => g(t), ["prevent"])
6284
- }, [c("div", kl, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Al), c("span", null, A(t.title), 1)])])], 8, Ol)], 2))], 64))), 256))]),
6285
- c("div", jl, [D(r.$slots, "user", {}, () => [
6286
- c("div", Ml, [n.userAvatarUrl ? (C(), s("img", {
6284
+ }, [c("div", Ml, [c("div", null, [c("div", { innerHTML: t.icon }, null, 8, Nl), c("span", null, A(t.title), 1)])])], 8, jl)], 2))], 64))), 256))]),
6285
+ c("div", Pl, [D(r.$slots, "user", {}, () => [
6286
+ c("div", Fl, [n.userAvatarUrl ? (C(), s("img", {
6287
6287
  key: 0,
6288
6288
  src: n.userAvatarUrl,
6289
6289
  alt: "User Avatar"
6290
- }, null, 8, Nl)) : (C(), s("svg", Pl, [...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)]]))]),
6291
- c("div", Fl, [c("div", Il, [c("span", Ll, A(n.userName), 1)])]),
6290
+ }, null, 8, Il)) : (C(), s("svg", Ll, [...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)]]))]),
6291
+ c("div", Rl, [c("div", zl, [c("span", Bl, A(n.userName), 1)])]),
6292
6292
  f(B, {
6293
6293
  class: "logout-btn",
6294
6294
  intent: "error",
@@ -6327,7 +6327,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6327
6327
  }, null, 2)]))
6328
6328
  ], 34));
6329
6329
  }
6330
- }), [["__scopeId", "data-v-2c73c218"]]), zl = { class: "layout" }, Bl = { class: "main-content" }, Vl = { class: "copyright" }, Hl = /* @__PURE__ */ z(/* @__PURE__ */ p({
6330
+ }), [["__scopeId", "data-v-2c73c218"]]), Hl = { class: "layout" }, Ul = { class: "main-content" }, Wl = { class: "copyright" }, Gl = /* @__PURE__ */ z(/* @__PURE__ */ p({
6331
6331
  __name: "NLayout",
6332
6332
  props: {
6333
6333
  title: { default: "NICKLABS" },
@@ -6343,7 +6343,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6343
6343
  emits: ["logout", "navigate"],
6344
6344
  setup(e, { emit: t }) {
6345
6345
  let n = Di(), r = t;
6346
- return (t, i) => (C(), s("div", zl, [e.isShowSidebar ? (C(), a(Rl, {
6346
+ return (t, i) => (C(), s("div", Hl, [e.isShowSidebar ? (C(), a(Vl, {
6347
6347
  key: 0,
6348
6348
  title: e.title,
6349
6349
  userName: e.userName,
@@ -6359,18 +6359,18 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6359
6359
  "isOpen",
6360
6360
  "menus",
6361
6361
  "currentPath"
6362
- ])) : o("", !0), c("main", Bl, [D(t.$slots, "default", {}, void 0, !0), c("div", Vl, A(e.copyright), 1)])]));
6362
+ ])) : o("", !0), c("main", Ul, [D(t.$slots, "default", {}, void 0, !0), c("div", Wl, A(e.copyright), 1)])]));
6363
6363
  }
6364
- }), [["__scopeId", "data-v-41b1eb44"]]), Ul = { class: "topbar" }, Wl = { class: "topbar-left" }, Gl = { class: "topbar-right" }, Kl = {
6364
+ }), [["__scopeId", "data-v-41b1eb44"]]), Kl = { class: "topbar" }, ql = { class: "topbar-left" }, Jl = { class: "topbar-right" }, Yl = {
6365
6365
  key: 0,
6366
6366
  class: "pill"
6367
- }, ql = {
6367
+ }, Xl = {
6368
6368
  key: 0,
6369
6369
  class: "name"
6370
- }, Jl = {
6370
+ }, Zl = {
6371
6371
  key: 1,
6372
6372
  class: "separator"
6373
- }, Yl = /* @__PURE__ */ z(/* @__PURE__ */ p({
6373
+ }, Ql = /* @__PURE__ */ z(/* @__PURE__ */ p({
6374
6374
  __name: "NNavigation",
6375
6375
  props: {
6376
6376
  isShowSidebar: {
@@ -6395,7 +6395,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6395
6395
  let n = t, r = () => {
6396
6396
  document.fullscreenElement ? document.exitFullscreen?.() : document.documentElement.requestFullscreen();
6397
6397
  };
6398
- return (t, i) => (C(), s("header", Ul, [c("div", Wl, [e.isShowSidebar ? (C(), a(B, {
6398
+ return (t, i) => (C(), s("header", Kl, [c("div", ql, [e.isShowSidebar ? (C(), a(B, {
6399
6399
  key: 0,
6400
6400
  onClick: i[0] ||= (e) => n("toggleSidebar"),
6401
6401
  padding: "8px"
@@ -6438,9 +6438,9 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6438
6438
  c("path", { d: "M16 21h3a2 2 0 0 0 2-2v-3" })
6439
6439
  ], -1)]]),
6440
6440
  _: 1
6441
- })) : o("", !0)]), c("div", Gl, [e.isShowUser || e.isShowLogoutButton ? (C(), s("div", Kl, [
6442
- e.isShowUser ? (C(), s("span", ql, "Nick")) : o("", !0),
6443
- e.isShowUser && e.isShowLogoutButton ? (C(), s("div", Jl)) : o("", !0),
6441
+ })) : o("", !0)]), c("div", Jl, [e.isShowUser || e.isShowLogoutButton ? (C(), s("div", Yl, [
6442
+ e.isShowUser ? (C(), s("span", Xl, "Nick")) : o("", !0),
6443
+ e.isShowUser && e.isShowLogoutButton ? (C(), s("div", Zl)) : o("", !0),
6444
6444
  e.isShowLogoutButton ? (C(), a(B, {
6445
6445
  key: 2,
6446
6446
  variant: "mute",
@@ -6466,10 +6466,10 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6466
6466
  })) : o("", !0)
6467
6467
  ])) : o("", !0)])]));
6468
6468
  }
6469
- }), [["__scopeId", "data-v-f38a4beb"]]), Xl = { class: "brand" }, Zl = ["src", "alt"], Ql = {
6469
+ }), [["__scopeId", "data-v-f38a4beb"]]), $l = { class: "brand" }, eu = ["src", "alt"], tu = {
6470
6470
  key: 1,
6471
6471
  class: "icon"
6472
- }, $l = { key: 2 }, eu = { key: 3 }, tu = /* @__PURE__ */ z(/* @__PURE__ */ p({
6472
+ }, nu = { key: 2 }, ru = { key: 3 }, iu = /* @__PURE__ */ z(/* @__PURE__ */ p({
6473
6473
  __name: "NLoginLayout",
6474
6474
  props: {
6475
6475
  backgroundImage: { default: "" },
@@ -6487,15 +6487,15 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6487
6487
  radius: "xl",
6488
6488
  class: "card"
6489
6489
  }, {
6490
- default: I(() => [c("div", Xl, [
6490
+ default: I(() => [c("div", $l, [
6491
6491
  t.value ? (C(), s("img", {
6492
6492
  key: 0,
6493
6493
  class: "logo-img",
6494
6494
  src: e.logo,
6495
6495
  alt: e.title
6496
- }, null, 8, Zl)) : (C(), s("div", Ql, A(e.logo), 1)),
6497
- e.title ? (C(), s("h1", $l, A(e.title), 1)) : o("", !0),
6498
- e.description ? (C(), s("p", eu, A(e.description), 1)) : o("", !0)
6496
+ }, null, 8, eu)) : (C(), s("div", tu, A(e.logo), 1)),
6497
+ e.title ? (C(), s("h1", nu, A(e.title), 1)) : o("", !0),
6498
+ e.description ? (C(), s("p", ru, A(e.description), 1)) : o("", !0)
6499
6499
  ]), D(n.$slots, "default", {}, void 0, !0)]),
6500
6500
  _: 3
6501
6501
  })], 4));
@@ -6503,7 +6503,7 @@ var Ps = (e) => e == null ? "—" : e < 1024 ? e + " B" : e < 1048576 ? (e / 102
6503
6503
  }), [["__scopeId", "data-v-f0866bc5"]]);
6504
6504
  //#endregion
6505
6505
  //#region src/composables/useRouteModal.ts
6506
- function nu(e) {
6506
+ function au(e) {
6507
6507
  let t = i(() => {
6508
6508
  let t = R();
6509
6509
  return t ? t.currentRoute.value.matched.some((t) => t.name === e.routeName) : !1;
@@ -6527,7 +6527,7 @@ function nu(e) {
6527
6527
  }
6528
6528
  //#endregion
6529
6529
  //#region src/index.ts
6530
- var ru = {
6530
+ var ou = {
6531
6531
  NButton: B,
6532
6532
  NBreadcrumb: ue,
6533
6533
  NInput: _e,
@@ -6549,19 +6549,19 @@ var ru = {
6549
6549
  NDrawer: ps,
6550
6550
  NAlert: Ss,
6551
6551
  NTable: Ta,
6552
- NVirtualTable: Ms,
6553
- NVideoSelect: vc,
6554
- NImageSelect: Kc,
6555
- NAudioSelect: gl,
6556
- NLayout: Hl,
6557
- NNavigation: Yl,
6558
- NSidebar: Rl,
6552
+ NVirtualTable: Fs,
6553
+ NVideoSelect: xc,
6554
+ NImageSelect: Yc,
6555
+ NAudioSelect: yl,
6556
+ NLayout: Gl,
6557
+ NNavigation: Ql,
6558
+ NSidebar: Vl,
6559
6559
  NCard: Gi,
6560
- NLoginLayout: tu
6561
- }, iu = { install(e, t = {}) {
6562
- Object.entries(ru).forEach(([t, n]) => {
6560
+ NLoginLayout: iu
6561
+ }, su = { install(e, t = {}) {
6562
+ Object.entries(ou).forEach(([t, n]) => {
6563
6563
  e.component(t, n);
6564
6564
  }), t.router && ie(t.router);
6565
6565
  } };
6566
6566
  //#endregion
6567
- export { Ss as NAlert, gl as NAudioSelect, B as NButton, Gi as NCard, K as NCheckbox, qa as NCode, ns as NDatePicker, ps as NDrawer, ta as NEmpty, Ci as NFileSelect, Wi as NForm, Kc as NImageSelect, _e as NInput, Hl as NLayout, ka as NList, fa as NLoading, tu as NLoginLayout, cs as NModal, Yl as NNavigation, Zn as NSelect, Rl as NSidebar, Ya as NSwitch, Ta as NTable, Xa as NTag, Se as NTextarea, Ra as NToast, rs as NTooltip, vc as NVideoSelect, Ms as NVirtualTable, iu as NickLabsUI, ci as useAlert, U as useBreadcrumb, Ns as useDisclosure, nu as useRouteModal, Di as useSidebarManager, Ma as useToast };
6567
+ export { Ss as NAlert, yl as NAudioSelect, B as NButton, Gi as NCard, K as NCheckbox, qa as NCode, ns as NDatePicker, ps as NDrawer, ta as NEmpty, Ci as NFileSelect, Wi as NForm, Yc as NImageSelect, _e as NInput, Gl as NLayout, ka as NList, fa as NLoading, iu as NLoginLayout, cs as NModal, Ql as NNavigation, Zn as NSelect, Vl as NSidebar, Ya as NSwitch, Ta as NTable, Xa as NTag, Se as NTextarea, Ra as NToast, rs as NTooltip, xc as NVideoSelect, Fs as NVirtualTable, su as NickLabsUI, ci as useAlert, U as useBreadcrumb, Is as useDisclosure, au as useRouteModal, Di as useSidebarManager, Ma as useToast };