bilitoolkit-ui 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/LICENSE +21 -201
  2. package/README.md +1 -1
  3. package/dist/bilitoolkit-ui.css +1 -6
  4. package/dist/common.d.ts +26 -0
  5. package/dist/common.js +22 -0
  6. package/dist/favicon.ico +0 -0
  7. package/dist/index.d.ts +3213 -28
  8. package/dist/index.js +1526 -0
  9. package/dist/styles/animations.scss +9 -0
  10. package/dist/styles/mixins.scss +36 -13
  11. package/package.json +40 -40
  12. package/dist/api/toolkit-api.d.ts +0 -2
  13. package/dist/bilitoolkit-ui.js +0 -117707
  14. package/dist/bilitoolkit-ui.umd.cjs +0 -85
  15. package/dist/common/ui-constants.d.ts +0 -9
  16. package/dist/components/bili/BiliAccountCard.vue.d.ts +0 -18
  17. package/dist/components/bili/types.d.ts +0 -7
  18. package/dist/components/common/AppIcon.vue.d.ts +0 -9
  19. package/dist/components/common/AppTooltip.vue.d.ts +0 -25
  20. package/dist/components/common/ExternalLink.vue.d.ts +0 -20
  21. package/dist/components/common/IconButton.vue.d.ts +0 -27
  22. package/dist/components/common/IconLabel.vue.d.ts +0 -20
  23. package/dist/components/common/LogPrint.vue.d.ts +0 -5
  24. package/dist/components/dialog/countdown/CountdownDialog.vue.d.ts +0 -22
  25. package/dist/components/dialog/countdown/types.d.ts +0 -11
  26. package/dist/components/dialog/countdown/useCountdown.d.ts +0 -9
  27. package/dist/components/dialog/loading/LoadingDialog.vue.d.ts +0 -16
  28. package/dist/components/dialog/loading/loadingService.d.ts +0 -12
  29. package/dist/components/dialog/loading/types.d.ts +0 -21
  30. package/dist/components/plugin/PluginMenuItem.vue.d.ts +0 -3
  31. package/dist/components/plugin/PluginMenus.vue.d.ts +0 -25
  32. package/dist/components/plugin/PluginPageContent.vue.d.ts +0 -17
  33. package/dist/components/plugin/PluginPageHeader.vue.d.ts +0 -7
  34. package/dist/components/plugin/types.d.ts +0 -12
  35. package/dist/components/settings/SettingGroup.vue.d.ts +0 -20
  36. package/dist/components/settings/SettingItem.vue.d.ts +0 -22
  37. package/dist/composables/useLoadingData.d.ts +0 -4
  38. package/dist/main.d.ts +0 -0
  39. package/dist/stores/app-theme.d.ts +0 -31
  40. package/dist/stores/selected-account.d.ts +0 -26
  41. package/dist/stores/test-data.d.ts +0 -70
  42. package/dist/test/menus.d.ts +0 -2
  43. package/dist/test/user.d.ts +0 -12
  44. package/dist/ui.d.ts +0 -10
  45. package/dist/utils/app-utils.d.ts +0 -20
  46. package/dist/utils/theme-utils.d.ts +0 -10
  47. package/dist/views/HomeView.vue.d.ts +0 -2
package/dist/index.js ADDED
@@ -0,0 +1,1526 @@
1
+ import { reactive as X, watch as F, ref as B, onMounted as le, onUnmounted as de, computed as b, toValue as Z, shallowRef as st, defineComponent as k, openBlock as i, createElementBlock as p, createElementVNode as c, toDisplayString as h, renderSlot as C, normalizeClass as G, createVNode as g, createCommentVNode as D, useModel as ve, createBlock as x, withCtx as d, unref as w, createTextVNode as H, mergeModels as j, useTemplateRef as ee, withDirectives as K, Fragment as O, renderList as te, normalizeStyle as Ie, toRaw as lt, render as se, vShow as Me, nextTick as we, useCssVars as nt, mergeProps as J, normalizeProps as at, guardReactiveProps as ot, withModifiers as Ae, useSlots as Le, useAttrs as ct } from "vue";
2
+ import { defineStore as be, storeToRefs as it } from "pinia";
3
+ import { defaultAppThemeState as xe, APP_THEME_STATE as De, UI_DB_KEYS as He } from "./common.js";
4
+ import { setupToolkitApi as rt } from "bilitoolkit-runtime";
5
+ import Ee from "lodash-es/cloneDeep";
6
+ import "element-plus/theme-chalk/dark/css-vars.css";
7
+ import "element-plus/theme-chalk/el-loading.css";
8
+ import "element-plus/theme-chalk/el-message.css";
9
+ import "element-plus/theme-chalk/el-message-box.css";
10
+ import { ElMessageBox as ut, ElMessage as dt } from "element-plus";
11
+ import { BiliApiBusinessError as vt } from "@ybgnb/bili-api";
12
+ import { isCanceledError as pt, getErrorMessage as gt, createAbortError as mt, serializeError as ft, getFormattedDateTime as ht } from "@ybgnb/utils";
13
+ import { AppError as _t } from "bilitoolkit-types";
14
+ import { ElDialog as Ce, ElButton as pe, ElLoadingDirective as Be, ElRow as At, ElCol as yt, ElInput as wt, ElTooltip as Re, ElPopconfirm as bt, ElMenuItem as qe, ElSubMenu as xt, ElMenu as Et, ElPopover as Ct, ElDropdown as Bt, ElDropdownMenu as kt, ElDropdownItem as St, ElTable as Qt, ElTableColumn as Pt, ElEmpty as zt, ElPagination as It } from "element-plus/es";
15
+ import "element-plus/es/components/base/style/css";
16
+ import "element-plus/es/components/dialog/style/css";
17
+ import "element-plus/es/components/button/style/css";
18
+ import "element-plus/es/components/loading/style/css";
19
+ import "element-plus/es/components/row/style/css";
20
+ import "element-plus/es/components/col/style/css";
21
+ import "element-plus/es/components/input/style/css";
22
+ import "element-plus/es/components/tooltip/style/css";
23
+ import "element-plus/es/components/popconfirm/style/css";
24
+ import "element-plus/es/components/sub-menu/style/css";
25
+ import "element-plus/es/components/menu-item/style/css";
26
+ import "element-plus/es/components/menu/style/css";
27
+ import "element-plus/es/components/dropdown/style/css";
28
+ import "element-plus/es/components/dropdown-menu/style/css";
29
+ import "element-plus/es/components/dropdown-item/style/css";
30
+ import "element-plus/es/components/popover/style/css";
31
+ import "element-plus/es/components/pagination/style/css";
32
+ import "element-plus/es/components/table/style/css";
33
+ import "element-plus/es/components/empty/style/css";
34
+ import "element-plus/es/components/table-column/style/css";
35
+ const R = rt(), Mt = {
36
+ mid: 1234567890,
37
+ name: "测试用户测试用户测试用户测试用户测试用户",
38
+ face: "http://i0.hdslb.com/bfs/face/member/noface.jpg",
39
+ sex: "男",
40
+ level: 6,
41
+ sign: "签名签名签名签名签名签名签名签名签名",
42
+ moral: 0,
43
+ silence: 0,
44
+ following: 666,
45
+ follower: 888,
46
+ coins: 1e4,
47
+ rank: 1e3,
48
+ vip: {
49
+ type: 0,
50
+ status: 0
51
+ }
52
+ }, Dt = [
53
+ {
54
+ title: "备份数据",
55
+ path: "/home"
56
+ },
57
+ {
58
+ title: "还原数据",
59
+ path: "/market"
60
+ },
61
+ {
62
+ title: "插件设置",
63
+ path: "/manage"
64
+ }
65
+ ], ne = be("biliToolkit-ui-test-data", () => {
66
+ const e = X({
67
+ isTest: !1,
68
+ user: Mt,
69
+ menus: Dt
70
+ });
71
+ return { init: async (t) => {
72
+ e.isTest = t;
73
+ }, state: e };
74
+ });
75
+ var E = (e, n, t, s = "srgb", a) => `color-mix(in ${s}, ${e} ${t}%, ${n} ${100 - t}%)`, Ue = (e) => {
76
+ let n = parseInt(e.slice(1, 3), 16), t = parseInt(e.slice(3, 5), 16), s = parseInt(e.slice(5, 7), 16);
77
+ return { r: n, g: t, b: s };
78
+ }, Ht = (e, n) => {
79
+ document.documentElement.style.setProperty(e, n);
80
+ };
81
+ const Te = "#ffffff", Ve = "#000000", he = (e, n, t) => {
82
+ const { r: s, g: a, b: l } = Ue(e);
83
+ for (let o = 2; o < 100; ) {
84
+ const r = o / 100;
85
+ n[`${t}-transparent-${o}`] = `rgba(${s}, ${a}, ${l}, ${r})`, o >= 10 ? o += 5 : o++;
86
+ }
87
+ }, re = (e, n, t) => {
88
+ const s = {};
89
+ t ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
90
+ const a = s["--app-color-foreground"] = t ? Te : Ve, l = s["--app-color-background"] = t ? Ve : Te;
91
+ s["--app-primary-color"] = e, s["--el-color-primary"] = e, s["--el-color-primary-light-1"] = E(e, l, 90), s["--el-color-primary-light-2"] = E(e, l, 80), s["--el-color-primary-light-3"] = E(e, l, 70), s["--el-color-primary-light-4"] = E(e, l, 60), s["--el-color-primary-light-5"] = E(e, l, 50), s["--el-color-primary-light-6"] = E(e, l, 40), s["--el-color-primary-light-7"] = E(e, l, 30), s["--el-color-primary-light-8"] = E(e, l, 20), s["--el-color-primary-light-9"] = E(e, l, 12), s["--el-color-primary-dark-1"] = E(e, a, 90), s["--el-color-primary-dark-2"] = E(e, a, 80), s["--el-color-primary-dark-3"] = E(e, a, 70), s["--el-color-primary-dark-4"] = E(e, a, 60), s["--el-color-primary-dark-5"] = E(e, a, 50), s["--el-color-primary-dark-6"] = E(e, a, 40), s["--el-color-primary-dark-7"] = E(e, a, 30), s["--el-color-primary-dark-8"] = E(e, a, 20), s["--el-color-primary-dark-9"] = E(e, a, 12);
92
+ const { r: o, g: r, b: u } = Ue(e);
93
+ s["--app-bg-color-overlay"] = `rgba(${o}, ${r}, ${u}, 0.05)`, s["--app-bg-color-overlay-hover"] = `rgba(${o}, ${r}, ${u}, 0.15)`, s["--app-bg-color-page"] = t ? "var(--el-fill-color-blank)" : "transparent", s["--app-bg-color-menus"] = "var(--app-bg-color-page)", t ? s["--app-text-shadow"] = " 0px 1px 2px rgba(255, 255, 255, .4)" : s["--app-text-shadow"] = " 0px 1px 2px rgba(0, 0, 0, .4)", he(e, s, "--app-color-primary"), he(l, s, "--app-color-background"), he(a, s, "--app-color-foreground");
94
+ for (const v in s)
95
+ Ht(v, s[v]);
96
+ }, ke = async (e) => {
97
+ const n = e ?? (await R.system.getAppThemeState()).themeMode;
98
+ return n === "system" ? await R.system.shouldUseDarkColors() : n === "dark";
99
+ }, ue = async (e) => {
100
+ if (ne().state.isTest) {
101
+ const n = e ?? xe;
102
+ re(n.primaryColor, n.themeMode, n?.dark);
103
+ } else {
104
+ const n = e ?? await R.system.getAppThemeState(), t = await ke(n.themeMode);
105
+ re(n.primaryColor, n.themeMode, t);
106
+ }
107
+ }, Tl = async () => {
108
+ await ue(void 0);
109
+ }, Vl = async () => {
110
+ await ue(xe);
111
+ }, $l = async (e) => {
112
+ const t = ge().state, s = await ke(e);
113
+ t.dark = s, t.themeMode = e, re(t.primaryColor, e, s);
114
+ }, Ll = async (e) => {
115
+ const t = ge().state, s = await ke(t.themeMode);
116
+ t.primaryColor = e, re(e, t.themeMode, s);
117
+ }, ge = be(
118
+ "biliToolkit-ui-theme",
119
+ () => {
120
+ const e = X(xe);
121
+ let n = !1;
122
+ const t = async (l, o) => {
123
+ const r = await window.toolkitApi.system.getAppThemeState();
124
+ Object.assign(e, r), await ue(r), l && o && (n = !0, F(
125
+ () => e,
126
+ (u) => {
127
+ const v = Ee(u);
128
+ window.toolkitApi.db.write(l, v).then(async () => {
129
+ await window.toolkitApi.event.emit(o, v);
130
+ });
131
+ },
132
+ { deep: !0 }
133
+ ));
134
+ };
135
+ window.toolkitApi.event.onUpdateAppTheme((l) => {
136
+ n || Object.assign(e, l), ue(l).then();
137
+ }).catch();
138
+ const s = (l) => (e.primaryColor = l, e.primaryColor);
139
+ return { init: t, state: e, switchThemeColor: () => {
140
+ e.primaryColorIndex = (e.primaryColorIndex + 1) % De.primaryColors.length;
141
+ const l = De.primaryColors[e.primaryColorIndex];
142
+ return s(l);
143
+ }, setPrimaryColor: s };
144
+ },
145
+ {
146
+ // 自己实现配置的持久化
147
+ persist: !1
148
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
149
+ }
150
+ ), je = be("biliToolkit-ui-selected-user", () => {
151
+ const e = B(null), { state: n } = ne(), t = async () => {
152
+ try {
153
+ if (n.isTest) {
154
+ e.value = n.user;
155
+ return;
156
+ }
157
+ e.value = await window.toolkitApi.db.init(He.UI_SELECTED_USER);
158
+ } catch {
159
+ }
160
+ };
161
+ return F(
162
+ e,
163
+ async (l) => {
164
+ l && !n.isTest && await window.toolkitApi.db.write(He.UI_SELECTED_USER, Ee(l));
165
+ },
166
+ { deep: !0 }
167
+ ), { init: t, user: e, deleteUser: () => {
168
+ e.value = null;
169
+ }, setUser: (l) => {
170
+ e.value = l;
171
+ } };
172
+ }), Rl = async (e, n) => {
173
+ const { useTestData: t = !1 } = n ?? {};
174
+ return Promise.resolve({ }), Promise.resolve({ }), Promise.resolve({ }), t ? await ne(e).init(!0) : await ge(e).init(n?.appThemeDBName, n?.appThemeUpdateEvent), await je(e).init(), {
175
+ install(s) {
176
+ }
177
+ };
178
+ };
179
+ function Tt(e) {
180
+ R.system.saveLog({
181
+ level: "error",
182
+ data: [JSON.stringify(ft(e))]
183
+ }).catch();
184
+ }
185
+ function $e(e, n) {
186
+ return e == null ? !1 : e instanceof n || typeof e == "object" && "name" in e && e.name === n.name;
187
+ }
188
+ const ql = (e) => {
189
+ if (!pt(e))
190
+ if (e) {
191
+ console.error(e);
192
+ const n = () => {
193
+ R && R.system && Tt(e);
194
+ };
195
+ $e(e, _t) ? Y(`${e.message}`) : $e(e, vt) ? (Y(`${e.message} (${e.responseCode})`), n()) : (Y(gt(e)), n());
196
+ } else
197
+ Se({
198
+ message: "未知错误",
199
+ type: "error"
200
+ });
201
+ };
202
+ function Se(e) {
203
+ const n = {
204
+ message: "",
205
+ type: "success",
206
+ duration: 3e3
207
+ };
208
+ typeof e == "string" ? n.message = e : Object.assign(n, e), dt(n);
209
+ }
210
+ function Y(e) {
211
+ Se({
212
+ message: e,
213
+ type: "error"
214
+ });
215
+ }
216
+ function Ul(e) {
217
+ Se({
218
+ message: e,
219
+ type: "warning"
220
+ });
221
+ }
222
+ function Vt(e, n = "提示", t = {}) {
223
+ return new Promise((s, a) => {
224
+ ut.confirm(
225
+ e,
226
+ n,
227
+ Object.assign(
228
+ {
229
+ autofocus: !1,
230
+ dangerouslyUseHTMLString: !0,
231
+ cancelButtonText: "取消",
232
+ confirmButtonText: "确定",
233
+ type: "warning"
234
+ },
235
+ t
236
+ )
237
+ ).then(() => {
238
+ s();
239
+ }).catch(() => {
240
+ a(mt());
241
+ });
242
+ });
243
+ }
244
+ async function jl(e) {
245
+ for (const [n, t, s] of e)
246
+ await Vt(n, t, s);
247
+ }
248
+ const Qe = (e) => {
249
+ const n = e?.loading ?? B(!1);
250
+ let t = null;
251
+ const s = B(!1);
252
+ return {
253
+ loading: n,
254
+ hasLoaded: s,
255
+ loadingData: (l) => async (...o) => (e?.singleFlight && n.value && t || (t = (async () => {
256
+ n.value = !0;
257
+ try {
258
+ return typeof l == "function" ? await l(...o) : await l;
259
+ } finally {
260
+ n.value = !1, s.value = !0, t = null;
261
+ }
262
+ })()), t)
263
+ };
264
+ }, Ol = (e, n = 3e3) => {
265
+ const { loading: t, loadingData: s } = Qe({ singleFlight: !0 }), a = s(e);
266
+ let l = null;
267
+ return le(async () => {
268
+ l = setInterval(a, n);
269
+ }), de(() => {
270
+ l && (clearInterval(l), l = null);
271
+ }), { loading: t, refreshTableData: a, reset: () => {
272
+ l && (clearInterval(l), l = null), a(), l = setInterval(a, n);
273
+ } };
274
+ }, $t = (e) => {
275
+ const { fetchPage: n, pageParams: t, queryParams: s, autoLoad: a, onLoaded: l } = e, o = b(() => {
276
+ const y = Z(t);
277
+ return {
278
+ pageNum: y?.pageNum ?? 1,
279
+ pageSize: y?.pageSize ?? 20,
280
+ totalPages: 0,
281
+ total: 0
282
+ };
283
+ }), r = B(o.value), u = B([]), { loading: v, loadingData: m } = Qe(), f = m(async () => {
284
+ const y = Z(s), T = {
285
+ pageNum: r.value.pageNum,
286
+ pageSize: r.value.pageSize
287
+ }, { data: P, ...I } = y ? await n(T, y) : await n(T);
288
+ u.value = P, r.value = I, l?.();
289
+ }), A = () => {
290
+ const { pageSize: y, ...T } = o.value;
291
+ Object.assign(r.value, T);
292
+ }, S = async () => {
293
+ A(), await f();
294
+ }, _ = async () => {
295
+ r.value.pageNum = 1, await f();
296
+ }, Q = async () => {
297
+ await f();
298
+ };
299
+ return a && le(async () => {
300
+ await S();
301
+ }), {
302
+ pageData: r,
303
+ tableData: u,
304
+ loading: v,
305
+ refresh: f,
306
+ resetAndRefresh: S,
307
+ handleSizeChange: _,
308
+ handleCurrPageChange: Q
309
+ };
310
+ }, Fl = (e, n) => {
311
+ const t = st([]);
312
+ function s(u) {
313
+ return t.value.includes(u);
314
+ }
315
+ function a(u) {
316
+ const v = t.value.indexOf(u);
317
+ v > -1 ? t.value = t.value.splice(v, 1) : t.value = [...t.value, u];
318
+ }
319
+ const l = B(!1);
320
+ F(
321
+ t,
322
+ () => {
323
+ const u = Z(e);
324
+ l.value = u.length > 0 && u.every((v) => t.value.includes(n(v)));
325
+ },
326
+ { immediate: !0 }
327
+ );
328
+ function o() {
329
+ if (l.value) {
330
+ const u = Z(e).map((v) => n(v));
331
+ t.value = u;
332
+ } else
333
+ t.value = [];
334
+ }
335
+ function r() {
336
+ return Z(e).filter((u) => t.value.includes(n(u)));
337
+ }
338
+ return {
339
+ selectedIds: t,
340
+ isSelected: s,
341
+ toggleSelect: a,
342
+ isAllSelected: l,
343
+ toggleAll: o,
344
+ getSelectedData: r
345
+ };
346
+ }, Lt = { class: "setting-group" }, Rt = { class: "setting-group__name" }, qt = { class: "setting-group__list" }, Nl = /* @__PURE__ */ k({
347
+ __name: "SettingGroup",
348
+ props: {
349
+ name: {}
350
+ },
351
+ setup(e) {
352
+ const n = e;
353
+ return (t, s) => (i(), p("div", Lt, [
354
+ c("div", Rt, h(n.name), 1),
355
+ c("div", qt, [
356
+ C(t.$slots, "default")
357
+ ])
358
+ ]));
359
+ }
360
+ }), U = /* @__PURE__ */ k({
361
+ __name: "AppIcon",
362
+ props: {
363
+ icon: {}
364
+ },
365
+ setup(e) {
366
+ const n = e;
367
+ let t;
368
+ ne().state.isTest ? t = { state: { dark: !1 } } : t = ge();
369
+ const s = b(() => t.state.dark ? `ri-${n.icon}-fill` : `ri-${n.icon}-line`);
370
+ return (a, l) => (i(), p("i", {
371
+ class: G([s.value, "icon-font"])
372
+ }, null, 2));
373
+ }
374
+ }), Ut = { class: "setting-item" }, jt = { class: "setting-item__content" }, Ot = { class: "setting-item__content__title" }, Ft = {
375
+ key: 0,
376
+ class: "setting-item__content__desc"
377
+ }, Nt = { class: "setting-item__options" }, Wt = /* @__PURE__ */ k({
378
+ __name: "SettingItem",
379
+ props: {
380
+ title: {},
381
+ desc: {},
382
+ iconClass: {}
383
+ },
384
+ setup(e) {
385
+ const n = e, t = B("equalizer-2");
386
+ return (s, a) => {
387
+ const l = U;
388
+ return i(), p("div", Ut, [
389
+ g(l, {
390
+ class: "setting-item__icon",
391
+ icon: n.iconClass || t.value
392
+ }, null, 8, ["icon"]),
393
+ c("div", jt, [
394
+ c("div", Ot, h(n.title), 1),
395
+ n.desc ? (i(), p("div", Ft, h(n.desc), 1)) : D("", !0)
396
+ ]),
397
+ c("div", Nt, [
398
+ C(s.$slots, "default", {}, void 0, !0)
399
+ ])
400
+ ]);
401
+ };
402
+ }
403
+ }), N = (e, n) => {
404
+ const t = e.__vccOpts || e;
405
+ for (const [s, a] of n)
406
+ t[s] = a;
407
+ return t;
408
+ }, Wl = /* @__PURE__ */ N(Wt, [["__scopeId", "data-v-bb581bf5"]]);
409
+ function Gt(e) {
410
+ const n = B(e), t = B(null), s = (l) => {
411
+ n.value = e, t.value = setInterval(() => {
412
+ n.value > 1 ? n.value-- : (a(), l());
413
+ }, 1e3);
414
+ }, a = () => {
415
+ t.value && (clearInterval(t.value), t.value = null);
416
+ };
417
+ return de(a), { countdown: n, start: s, stop: a };
418
+ }
419
+ const Jt = { class: "dialog-footer" }, Gl = /* @__PURE__ */ k({
420
+ __name: "CountdownDialog",
421
+ props: /* @__PURE__ */ j({
422
+ content: {},
423
+ countdown: {},
424
+ title: { default: "提示" },
425
+ confirmBtnText: { default: "确定" },
426
+ cancelBtnText: { default: "取消" },
427
+ width: { default: 500 }
428
+ }, {
429
+ modelValue: { type: Boolean, required: !0 },
430
+ modelModifiers: {}
431
+ }),
432
+ emits: /* @__PURE__ */ j(["onConfirm", "onCancel"], ["update:modelValue"]),
433
+ setup(e, { expose: n, emit: t }) {
434
+ const s = e, a = ve(e, "modelValue"), l = t, { countdown: o, start: r, stop: u } = Gt(s.countdown);
435
+ let v = !1;
436
+ const m = (_) => {
437
+ v || (v = !0, u(), l(_ === "confirm" ? "onConfirm" : "onCancel", _), a.value = !1, v = !1);
438
+ }, f = () => m("confirm"), A = () => m("cancel"), S = () => {
439
+ a.value = !0, r(A);
440
+ };
441
+ return F(a, (_, Q) => {
442
+ _ && !Q && r(A);
443
+ }), n({ show: S }), (_, Q) => {
444
+ const y = pe, T = Ce;
445
+ return i(), x(T, {
446
+ modelValue: a.value,
447
+ "onUpdate:modelValue": Q[0] || (Q[0] = (P) => a.value = P),
448
+ title: e.title,
449
+ width: e.width,
450
+ "close-on-click-modal": !1,
451
+ "close-on-press-escape": !1,
452
+ "show-close": !1,
453
+ "append-to-body": !0
454
+ }, {
455
+ footer: d(() => [
456
+ c("div", Jt, [
457
+ g(y, { onClick: A }, {
458
+ default: d(() => [
459
+ H(h(e.cancelBtnText) + "(" + h(w(o)) + "s)", 1)
460
+ ]),
461
+ _: 1
462
+ }),
463
+ g(y, {
464
+ type: "primary",
465
+ disabled: w(o) <= 0,
466
+ onClick: f
467
+ }, {
468
+ default: d(() => [
469
+ H(h(e.confirmBtnText), 1)
470
+ ]),
471
+ _: 1
472
+ }, 8, ["disabled"])
473
+ ])
474
+ ]),
475
+ default: d(() => [
476
+ c("div", null, h(e.content), 1),
477
+ c("div", null, h(w(o)) + "秒后自动取消", 1)
478
+ ]),
479
+ _: 1
480
+ }, 8, ["modelValue", "title", "width"]);
481
+ };
482
+ }
483
+ }), Zt = { class: "select-dialog" }, Kt = ["onClick"], Yt = { class: "option-item-label" }, Xt = { key: 0 }, es = { key: 1 }, ts = /* @__PURE__ */ k({
484
+ __name: "SelectDialog",
485
+ props: /* @__PURE__ */ j({
486
+ title: { default: "请选择" },
487
+ options: {},
488
+ defaultSelectedList: { default: () => [] },
489
+ getDataLabel: {},
490
+ getDataId: {},
491
+ multiple: { type: Boolean, default: !1 },
492
+ canSelectAll: { type: Boolean, default: !0 },
493
+ showCurrentSelection: { type: Boolean, default: !0 },
494
+ confirmText: { default: "确定" },
495
+ cancelText: { default: "取消" },
496
+ noSelectionTip: { default: "未选择数据" }
497
+ }, {
498
+ modelValue: { type: Boolean, required: !0 },
499
+ modelModifiers: {}
500
+ }),
501
+ emits: /* @__PURE__ */ j(["confirm"], ["update:modelValue"]),
502
+ setup(e, { emit: n }) {
503
+ const t = e, s = ve(e, "modelValue"), a = X([]), l = X([]), o = B(0), r = ee("listRef"), { loading: u, loadingData: v } = Qe(), m = B(!1), f = v(async (z) => {
504
+ l.splice(0, l.length, ...t.defaultSelectedList);
505
+ let M = !1;
506
+ z(() => {
507
+ M = !0;
508
+ });
509
+ const L = typeof t.options == "function" ? await t.options() : t.options;
510
+ M || a.splice(0, a.length, ...L);
511
+ }), A = () => {
512
+ o.value = r.value?.clientWidth ?? 0, m.value = !0;
513
+ };
514
+ F(
515
+ s,
516
+ async (z, M, L) => {
517
+ if (!z) {
518
+ m.value = !1;
519
+ return;
520
+ }
521
+ await f(L);
522
+ },
523
+ { immediate: !0 }
524
+ );
525
+ const S = n, _ = () => {
526
+ s.value = !1;
527
+ }, Q = () => {
528
+ if (!l || l.length === 0) {
529
+ Y(t.noSelectionTip);
530
+ return;
531
+ }
532
+ S("confirm", lt(l)), s.value = !1;
533
+ }, y = b(() => t.showCurrentSelection && m.value && !u.value && l.length > 0), T = (z) => l.includes(z), P = (z) => {
534
+ const M = l.indexOf(z);
535
+ M > -1 ? l.splice(M, 1) : t.multiple ? l.push(z) : l.splice(0, l.length, z);
536
+ }, I = b(() => a.every((z) => l.includes(z))), V = () => {
537
+ I.value ? l.splice(0, l.length) : l.splice(0, l.length, ...a);
538
+ };
539
+ return (z, M) => {
540
+ const L = pe, ae = Ce, me = Be;
541
+ return i(), p("div", Zt, [
542
+ g(ae, {
543
+ title: e.title,
544
+ modelValue: s.value,
545
+ "onUpdate:modelValue": M[0] || (M[0] = ($) => s.value = $),
546
+ style: { width: "fit-content", "min-width": "300px", "max-width": "800px", "max-height": "88vh", overflow: "auto" },
547
+ "close-on-click-modal": !1,
548
+ "close-on-press-escape": !1,
549
+ "show-close": !0,
550
+ "align-center": "",
551
+ onOpened: A
552
+ }, {
553
+ footer: d(() => [
554
+ e.multiple && e.canSelectAll ? (i(), p("span", {
555
+ key: 0,
556
+ class: G(["select-all", I.value ? "selected" : ""]),
557
+ onClick: V
558
+ }, [...M[1] || (M[1] = [
559
+ c("span", { class: "select-icon" }, null, -1),
560
+ H("全选", -1)
561
+ ])], 2)) : D("", !0),
562
+ g(L, { onClick: _ }, {
563
+ default: d(() => [
564
+ H(h(e.cancelText), 1)
565
+ ]),
566
+ _: 1
567
+ }),
568
+ g(L, {
569
+ type: "primary",
570
+ onClick: Q,
571
+ disabled: w(u)
572
+ }, {
573
+ default: d(() => [
574
+ H(h(e.confirmText), 1)
575
+ ]),
576
+ _: 1
577
+ }, 8, ["disabled"])
578
+ ]),
579
+ default: d(() => [
580
+ K((i(), p("div", {
581
+ class: G(["dialog-content", w(u) ? "loading" : ""])
582
+ }, [
583
+ c("div", {
584
+ ref_key: "listRef",
585
+ ref: r,
586
+ class: "option-list"
587
+ }, [
588
+ (i(!0), p(O, null, te(a, ($) => (i(), p("div", {
589
+ class: G(["option-item", T($) ? "selected" : ""]),
590
+ key: e.getDataId($),
591
+ onClick: (ze) => P($)
592
+ }, [
593
+ C(z.$slots, "item", {}, () => [
594
+ c("span", {
595
+ class: G(["select-icon", e.multiple ? "checkbox" : "radio"])
596
+ }, null, 2),
597
+ c("span", Yt, [
598
+ C(z.$slots, "item-label", {}, () => [
599
+ H(h(e.getDataLabel($)), 1)
600
+ ], !0)
601
+ ])
602
+ ], !0)
603
+ ], 10, Kt))), 128))
604
+ ], 512),
605
+ y.value ? (i(), p("div", {
606
+ key: 0,
607
+ class: "current-selection",
608
+ style: Ie({ width: `${o.value}px` })
609
+ }, [
610
+ e.multiple ? (i(), p("span", Xt, "已选择(" + h(l.length) + "):", 1)) : (i(), p("span", es, "已选择:")),
611
+ c("div", {
612
+ class: "current-selection-list",
613
+ style: Ie({ display: e.multiple ? "flex" : "contents" })
614
+ }, [
615
+ (i(!0), p(O, null, te(l, ($) => (i(), p("span", {
616
+ key: e.getDataId($)
617
+ }, h(e.getDataLabel($)), 1))), 128))
618
+ ], 4)
619
+ ], 4)) : D("", !0)
620
+ ], 2)), [
621
+ [me, w(u)]
622
+ ])
623
+ ]),
624
+ _: 3
625
+ }, 8, ["title", "modelValue"])
626
+ ]);
627
+ };
628
+ }
629
+ }), ss = /* @__PURE__ */ N(ts, [["__scopeId", "data-v-2ad04bd4"]]), Jl = (e) => new Promise((n) => {
630
+ let t = document.createElement("div");
631
+ const s = (l) => {
632
+ n(l), t && (se(null, t), t.remove(), t = null);
633
+ }, a = g(ss, {
634
+ ...e,
635
+ modelValue: !0,
636
+ "onUpdate:modelValue": (l) => {
637
+ l || s();
638
+ },
639
+ onConfirm: (l) => {
640
+ s(l);
641
+ }
642
+ });
643
+ document.body.appendChild(t), se(a, t);
644
+ }), ls = { class: "dialog-content" }, ns = { class: "header" }, as = {
645
+ key: 0,
646
+ class: "total-desc"
647
+ }, os = { class: "page-size-desc" }, cs = { class: "range-desc" }, is = /* @__PURE__ */ k({
648
+ __name: "PageRangeDialog",
649
+ props: /* @__PURE__ */ j({
650
+ title: { default: "请选择页码范围" },
651
+ defaultRange: { default: () => [1, 1] },
652
+ total: {},
653
+ minPage: { default: 1 },
654
+ maxPage: {},
655
+ pageSize: {},
656
+ confirmText: { default: "确定" },
657
+ cancelText: { default: "取消" }
658
+ }, {
659
+ modelValue: { type: Boolean, required: !0 },
660
+ modelModifiers: {}
661
+ }),
662
+ emits: /* @__PURE__ */ j(["confirm"], ["update:modelValue"]),
663
+ setup(e, { emit: n }) {
664
+ const t = e, s = ve(e, "modelValue"), a = b(() => t.total != null && t.maxPage != null ? Math.min(t.maxPage, Math.ceil(t.total / t.pageSize)) : t.total != null ? Math.ceil(t.total / t.pageSize) : t.maxPage), l = B(1), o = B(1), r = b(() => `共有 ${t.total} 条数据`), u = b(() => `每页可获取 ${t.pageSize} 条数据`), v = b(() => {
665
+ if (t.total != null) {
666
+ const S = t.pageSize - Math.max(o.value * t.pageSize - t.total, 0);
667
+ return `共选择 ${(o.value - l.value) * t.pageSize + S} 条数据`;
668
+ } else
669
+ return `共选择 ${(o.value + 1 - l.value) * t.pageSize} 条数据`;
670
+ });
671
+ F(
672
+ s,
673
+ async (S) => {
674
+ S && (l.value = t.defaultRange[0], o.value = t.defaultRange[1]);
675
+ },
676
+ { immediate: !0 }
677
+ );
678
+ const m = n, f = () => {
679
+ s.value = !1;
680
+ }, A = () => {
681
+ m("confirm", [l.value, o.value]), s.value = !1;
682
+ };
683
+ return (S, _) => {
684
+ const Q = wt, y = yt, T = At, P = pe, I = Ce;
685
+ return i(), x(I, {
686
+ title: e.title,
687
+ modelValue: s.value,
688
+ "onUpdate:modelValue": _[2] || (_[2] = (V) => s.value = V),
689
+ width: "200px",
690
+ "close-on-click-modal": !1,
691
+ "close-on-press-escape": !1,
692
+ "show-close": !0,
693
+ "align-center": ""
694
+ }, {
695
+ footer: d(() => [
696
+ g(P, { onClick: f }, {
697
+ default: d(() => [
698
+ H(h(e.cancelText), 1)
699
+ ]),
700
+ _: 1
701
+ }),
702
+ g(P, {
703
+ type: "primary",
704
+ onClick: A
705
+ }, {
706
+ default: d(() => [
707
+ H(h(e.confirmText), 1)
708
+ ]),
709
+ _: 1
710
+ })
711
+ ]),
712
+ default: d(() => [
713
+ c("div", ls, [
714
+ c("div", ns, [
715
+ e.total ? (i(), p("div", as, h(r.value), 1)) : D("", !0),
716
+ c("div", os, h(u.value), 1)
717
+ ]),
718
+ g(T, { class: "page-range" }, {
719
+ default: d(() => [
720
+ g(y, { span: 11 }, {
721
+ default: d(() => [
722
+ g(Q, {
723
+ type: "number",
724
+ modelValue: l.value,
725
+ "onUpdate:modelValue": _[0] || (_[0] = (V) => l.value = V),
726
+ min: e.minPage,
727
+ max: o.value
728
+ }, null, 8, ["modelValue", "min", "max"])
729
+ ]),
730
+ _: 1
731
+ }),
732
+ g(y, {
733
+ span: 2,
734
+ style: { "text-align": "center" }
735
+ }, {
736
+ default: d(() => [..._[3] || (_[3] = [
737
+ c("span", null, "-", -1)
738
+ ])]),
739
+ _: 1
740
+ }),
741
+ g(y, { span: 11 }, {
742
+ default: d(() => [
743
+ g(Q, {
744
+ type: "number",
745
+ modelValue: o.value,
746
+ "onUpdate:modelValue": _[1] || (_[1] = (V) => o.value = V),
747
+ min: l.value,
748
+ max: a.value
749
+ }, null, 8, ["modelValue", "min", "max"])
750
+ ]),
751
+ _: 1
752
+ })
753
+ ]),
754
+ _: 1
755
+ }),
756
+ c("div", cs, h(v.value), 1)
757
+ ])
758
+ ]),
759
+ _: 1
760
+ }, 8, ["title", "modelValue"]);
761
+ };
762
+ }
763
+ }), rs = /* @__PURE__ */ N(is, [["__scopeId", "data-v-715af5da"]]), Zl = (e) => new Promise((n) => {
764
+ let t = document.createElement("div");
765
+ const s = (l) => {
766
+ t && (se(null, t), t.remove(), t = null), n(l);
767
+ }, a = g(rs, {
768
+ ...e,
769
+ modelValue: !0,
770
+ "onUpdate:modelValue"(l) {
771
+ l || s();
772
+ },
773
+ onConfirm(l) {
774
+ s(l);
775
+ }
776
+ });
777
+ document.body.appendChild(t), se(a, t);
778
+ }), us = { class: "loading-mask el-overlay" }, ds = { class: "loading-content" }, vs = { class: "loading-spinner" }, ps = { class: "loading-text" }, gs = /* @__PURE__ */ k({
779
+ __name: "LoadingDialog",
780
+ props: /* @__PURE__ */ j({
781
+ canCancel: { type: Boolean, default: !1 },
782
+ onCancel: {},
783
+ loadingText: {}
784
+ }, {
785
+ modelValue: { type: Boolean, required: !0 },
786
+ modelModifiers: {}
787
+ }),
788
+ emits: ["update:modelValue"],
789
+ setup(e, { expose: n }) {
790
+ const t = ve(e, "modelValue"), a = X(Ee(e)), l = B(t), o = () => {
791
+ a.loadingText = a.loadingText ?? "加载中...";
792
+ }, r = () => {
793
+ a.onCancel?.(), t.value = !1;
794
+ };
795
+ return F(t, (m) => {
796
+ l.value = m;
797
+ }), n({ show: (m) => {
798
+ Object.assign(a, m), o(), l.value = !0, t.value = !0;
799
+ }, hide: () => {
800
+ l.value = !1, t.value = !1;
801
+ } }), (m, f) => {
802
+ const A = Be;
803
+ return K((i(), p("div", us, [
804
+ c("div", ds, [
805
+ K(c("div", {
806
+ class: "options-close-btn",
807
+ onClick: r
808
+ }, null, 512), [
809
+ [Me, a.canCancel]
810
+ ]),
811
+ K(c("div", vs, null, 512), [
812
+ [A, l.value]
813
+ ]),
814
+ c("div", ps, h(a.loadingText), 1)
815
+ ])
816
+ ], 512)), [
817
+ [Me, t.value]
818
+ ]);
819
+ };
820
+ }
821
+ });
822
+ let ce, _e = null, ie;
823
+ const Kl = {
824
+ /**
825
+ * 显示,返回一个Promise,解析为是否成功,false为用户取消
826
+ * @param options
827
+ */
828
+ show(e) {
829
+ return new Promise(async (n) => {
830
+ ce || (_e = document.createElement("div"), ce = g(gs, {
831
+ modelValue: !1
832
+ }), se(ce, _e), document.body.appendChild(_e), await we(() => {
833
+ ie = ce?.component?.exposed;
834
+ })), e?.autoCloseDelay && setTimeout(() => {
835
+ ie?.hide(), n(!0);
836
+ }, e?.autoCloseDelay), ie?.show({
837
+ canCancel: !1,
838
+ ...e,
839
+ onCancel: () => {
840
+ n(!1);
841
+ }
842
+ });
843
+ });
844
+ },
845
+ hide() {
846
+ ie?.hide();
847
+ }
848
+ }, ms = { class: "tooltip" }, fs = { class: "label" }, Pe = /* @__PURE__ */ k({
849
+ __name: "AppTooltip",
850
+ props: {
851
+ content: {},
852
+ lines: { default: 1 },
853
+ ellipsis: { default: "right" },
854
+ iconClass: {}
855
+ },
856
+ setup(e) {
857
+ nt((r) => ({
858
+ v22da9023: w(t)
859
+ }));
860
+ const n = e, t = n.lines, s = () => ({
861
+ "txt-ellipsis-right": n.ellipsis === "right",
862
+ "txt-ellipsis-left": n.ellipsis === "left",
863
+ "single-line": n.lines === 1
864
+ }), a = B(!1), l = ee("refContent"), o = new ResizeObserver(() => {
865
+ l.value && (n.lines === 1 ? a.value = l.value.scrollWidth > l.value.clientWidth : a.value = l.value.scrollHeight > l.value.clientHeight);
866
+ });
867
+ return le(() => {
868
+ l.value && o.observe(l.value);
869
+ }), de(() => {
870
+ o.disconnect();
871
+ }), (r, u) => {
872
+ const v = Re;
873
+ return i(), p("div", ms, [
874
+ c("div", fs, [
875
+ e.iconClass ? (i(), x(U, {
876
+ key: 0,
877
+ icon: e.iconClass
878
+ }, null, 8, ["icon"])) : D("", !0)
879
+ ]),
880
+ e.content ? (i(), x(v, {
881
+ key: 0,
882
+ effect: "light",
883
+ content: e.content,
884
+ placement: "top",
885
+ disabled: !a.value,
886
+ "show-after": 800
887
+ }, {
888
+ content: d(() => [
889
+ C(r.$slots, "tooltipContent")
890
+ ]),
891
+ default: d(() => [
892
+ c("div", J({
893
+ ref_key: "refContent",
894
+ ref: l
895
+ }, r.$attrs, {
896
+ class: ["tooltip__content", s()]
897
+ }), [
898
+ c("span", null, [
899
+ C(r.$slots, "default", {}, () => [
900
+ H(h(e.content), 1)
901
+ ])
902
+ ])
903
+ ], 16)
904
+ ]),
905
+ _: 3
906
+ }, 8, ["content", "disabled"])) : D("", !0)
907
+ ]);
908
+ };
909
+ }
910
+ }), Yl = /* @__PURE__ */ k({
911
+ inheritAttrs: !1,
912
+ __name: "IconButton",
913
+ props: {
914
+ confirm: {},
915
+ icon: {},
916
+ tip: {}
917
+ },
918
+ emits: ["click"],
919
+ setup(e, { emit: n }) {
920
+ const t = n, s = () => {
921
+ t("click");
922
+ };
923
+ return (a, l) => {
924
+ const o = Re, r = bt;
925
+ return e.tip ? (i(), p(O, { key: 0 }, [
926
+ e.confirm ? (i(), x(r, {
927
+ key: 0,
928
+ title: e.confirm,
929
+ placement: "left",
930
+ onConfirm: s
931
+ }, {
932
+ reference: d(() => [
933
+ c("span", at(ot(a.$attrs)), [
934
+ g(o, {
935
+ effect: "light",
936
+ content: e.tip,
937
+ placement: "top",
938
+ "show-after": 800
939
+ }, {
940
+ default: d(() => [
941
+ g(U, {
942
+ class: "icon-btn",
943
+ icon: e.icon
944
+ }, null, 8, ["icon"])
945
+ ]),
946
+ _: 1
947
+ }, 8, ["content"])
948
+ ], 16)
949
+ ]),
950
+ _: 1
951
+ }, 8, ["title"])) : (i(), x(o, {
952
+ key: 1,
953
+ effect: "light",
954
+ content: e.tip,
955
+ placement: "top",
956
+ "show-after": 800
957
+ }, {
958
+ default: d(() => [
959
+ g(U, J({
960
+ class: "icon-btn",
961
+ icon: e.icon,
962
+ onClick: Ae(s, ["stop"])
963
+ }, a.$attrs), null, 16, ["icon"])
964
+ ]),
965
+ _: 1
966
+ }, 8, ["content"]))
967
+ ], 64)) : (i(), p(O, { key: 1 }, [
968
+ e.confirm ? (i(), x(r, {
969
+ key: 0,
970
+ title: e.confirm,
971
+ placement: "left",
972
+ onConfirm: s
973
+ }, {
974
+ reference: d(() => [
975
+ g(U, J({
976
+ class: "icon-btn",
977
+ icon: e.icon
978
+ }, a.$attrs), null, 16, ["icon"])
979
+ ]),
980
+ _: 1
981
+ }, 8, ["title"])) : (i(), x(U, J({
982
+ key: 1,
983
+ class: "icon-btn",
984
+ icon: e.icon,
985
+ onClick: Ae(s, ["stop"])
986
+ }, a.$attrs), null, 16, ["icon"]))
987
+ ], 64));
988
+ };
989
+ }
990
+ }), hs = { class: "icon-label" }, Xl = /* @__PURE__ */ k({
991
+ __name: "IconLabel",
992
+ props: {
993
+ icon: {}
994
+ },
995
+ setup(e) {
996
+ return (n, t) => (i(), p("div", hs, [
997
+ g(U, { icon: e.icon }, null, 8, ["icon"]),
998
+ C(n.$slots, "default")
999
+ ]));
1000
+ }
1001
+ }), en = /* @__PURE__ */ k({
1002
+ __name: "ExternalLink",
1003
+ props: {
1004
+ url: {}
1005
+ },
1006
+ setup(e) {
1007
+ const n = e, t = () => {
1008
+ R.system.browsePage(n.url);
1009
+ };
1010
+ return (s, a) => (i(), p("span", {
1011
+ class: "external-link",
1012
+ onClick: Ae(t, ["prevent"])
1013
+ }, [
1014
+ C(s.$slots, "default")
1015
+ ]));
1016
+ }
1017
+ }), _s = ["innerHTML"], tn = /* @__PURE__ */ k({
1018
+ __name: "LogPrint",
1019
+ setup(e, { expose: n }) {
1020
+ const t = B([]), s = ee("logBoxRef");
1021
+ function a(o) {
1022
+ t.value.push(`[${ht()}] ${o}`), t.value.length > 500 && t.value.shift(), we(() => {
1023
+ s.value && (s.value.scrollTop = s.value.scrollHeight);
1024
+ });
1025
+ }
1026
+ return n({
1027
+ addLog: a,
1028
+ reset: () => {
1029
+ t.value = [];
1030
+ }
1031
+ }), (o, r) => (i(), p("div", {
1032
+ ref_key: "logBoxRef",
1033
+ ref: s,
1034
+ class: "log-print-box"
1035
+ }, [
1036
+ (i(!0), p(O, null, te(t.value, (u, v) => (i(), p("div", {
1037
+ key: v,
1038
+ innerHTML: u,
1039
+ class: "log-print-box__line"
1040
+ }, null, 8, _s))), 128))
1041
+ ], 512));
1042
+ }
1043
+ }), Oe = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv1{fill:transparent;}.st1.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv1{fill-rule:evenodd;clip-rule:evenodd;fill:%23C0C0C0;}%3c/style%3e%3crect%20class='st0%20lv1'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv1'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv1'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.2v0.7c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M15.8,18.9h2.6c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4h-0.6%20v-5.6c0-0.2-0.2-0.4-0.4-0.4h-1.4c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h0.4v4.6h-0.6c-0.2,0-0.4,0.2-0.4,0.4v0.6%20C15.3,18.7,15.5,18.9,15.8,18.9z%20M12.7,16.3v0.1c0,0.1-0.1,0.2-0.2,0.2c0,0,0,0-0.1,0.1l-2,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4V16.3L12.7,16.3z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", Fe = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv2{fill:transparent;}.st1.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv2{fill-rule:evenodd;clip-rule:evenodd;fill:%238BD29B;}%3c/style%3e%3crect%20class='st0%20lv2'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv2'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv2'%20d='M14,10h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6C1.3,20,1,19.8,1,19.4v-7.8%20C1,11.3,1.2,11,1.6,11h11.8v-0.4C13.4,10.3,13.6,10,14,10z%20M19.4,15.8c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H16v-1.7H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", Ne = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv3{fill:transparent;}.st1.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv3{fill-rule:evenodd;clip-rule:evenodd;fill:%237BCDEF;}%3c/style%3e%3crect%20class='st0%20lv3'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv3'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv3'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15%20c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1,0-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", We = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv4{fill:transparent;}.st1.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv4{fill-rule:evenodd;clip-rule:evenodd;fill:%23FEBB8B;}%3c/style%3e%3crect%20class='st0%20lv4'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv4'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv4'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,18.9c0.2,0,0.4-0.2,0.4-0.4v-6.9c0-0.2-0.2-0.4-0.4-0.4h-0.6%20c-0.2,0-0.4,0.2-0.4,0.4v2.7H16v-2.7c0-0.2-0.2-0.4-0.4-0.4H15c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v2.7%20c0,0.2,0.2,0.4,0.4,0.4H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1s-0.4,0-0.5-0.1l-2-2%20c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2v-3.3%20c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4H3.7%20v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", Ge = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv5{fill:transparent;}.st1.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv5{fill-rule:evenodd;clip-rule:evenodd;fill:%23EE672A;}%3c/style%3e%3crect%20class='st0%20lv5'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv5'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv5'%20d='M13.4,10.6c0-0.3,0.2-0.6,0.6-0.6h6.5c0.3,0,0.6,0.3,0.5,0.6v8.8c0,0.3-0.2,0.6-0.6,0.6H1.6%20C1.3,20,1,19.8,1,19.4v-7.8C1,11.3,1.2,11,1.6,11h11.8V10.6z%20M19.4,12.7c0.2,0,0.4-0.2,0.4-0.4v-0.7c0-0.2-0.2-0.4-0.4-0.4H15%20c-0.2,0-0.4,0.2-0.4,0.4v3.7c0,0.2,0.2,0.4,0.4,0.4h3.4v1.7H15c-0.2,0-0.4,0.2-0.4,0.4v0.6c0,0.2,0.2,0.4,0.4,0.4h4.4%20c0.2,0,0.4-0.2,0.4-0.4v-3.7c0-0.2-0.2-0.4-0.4-0.4H16v-1.6H19.4z%20M12.7,16.4c0,0.1,0,0.3-0.1,0.4l-2.1,2c-0.1,0.1-0.5,0.1-0.5,0.1%20s-0.4,0-0.5-0.1l-2-2c-0.1-0.1-0.1-0.3-0.1-0.4v-0.1v-3.5c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4l1.2,1.2l1.2-1.2%20v-3.3c0-0.2,0.2-0.4,0.4-0.4h0.6c0.2,0,0.4,0.2,0.4,0.4v3.4V16.4z%20M2.6,18.9h3.4c0.2,0,0.4-0.2,0.4-0.4v-0.6c0-0.2-0.2-0.4-0.4-0.4%20H3.7v-4.7c0-0.2-0.2-0.4-0.4-0.4H2.6c-0.2,0-0.4,0.2-0.4,0.4v5.8C2.2,18.7,2.4,18.9,2.6,18.9z'/%3e%3c/svg%3e", Je = "data:image/svg+xml,%3csvg%20version='1.1'%20id='图层_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%2030%2030'%20style='enable-background:new%200%200%2030%2030;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e.st0.lv6{fill:transparent;}.st1.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23FFFFFF;}.st2.lv6{fill-rule:evenodd;clip-rule:evenodd;fill:%23F04C49;}%3c/style%3e%3crect%20class='st0%20lv6'%20width='30'%20height='30'/%3e%3cpath%20class='st1%20lv6'%20d='M19.9,11.1h-5.6v1.1H2.1v6.7h17.8v-6.7h0V11.1z'/%3e%3cpath%20class='st2%20lv6'%20d='M14,10c-0.4,0-0.6,0.3-0.6,0.6V11H1.6C1.2,11,1,11.3,1,11.6v7.8C1,19.8,1.3,20,1.6,20h18.8%20c0.4,0,0.6-0.3,0.6-0.6v-8.8c0.1-0.3-0.2-0.6-0.5-0.6H14z%20M19.8,12.3c0,0.2-0.2,0.4-0.4,0.4H16v1.6h3.4c0.2,0,0.4,0.2,0.4,0.4v3.7%20c0,0.2-0.2,0.4-0.4,0.4H15c-0.2,0-0.4-0.2-0.4-0.4v-6.8c0-0.2,0.2-0.4,0.4-0.4h4.4c0.2,0,0.4,0.2,0.4,0.4V12.3z%20M12.6,16.7%20c0.1-0.1,0.1-0.2,0.1-0.4v-0.1v-3.4c0-0.2-0.2-0.4-0.4-0.4h-0.6c-0.2,0-0.4,0.2-0.4,0.4v3.3L10,17.3l-1.2-1.2v-3.4%20c0-0.2-0.2-0.4-0.4-0.4H7.8c-0.2,0-0.4,0.2-0.4,0.4v3.5v0.1c0,0.2,0,0.4,0.1,0.4l2,2c0.1,0.1,0.5,0.1,0.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bi8bfWhWez0VjomUNDHqsbtc4/ae7lJKjpJp7UUQEBAQEBAQEBAQEBBnOlC7l89PZYn8WMcNKB+I/ZHVmfWrHLO/xWcK3c2S+U9Y52URdwcv8AAdh6t/qVrON1WiaRLgKXDb4mP41W9sQy5R9o/AfFZjpnelDwLWdx4noyTk2YmE/1DIfHJarnjdVddJN67htLbZE/KWtOTst4jG/rOQ61I6Z3U0y6KWSCVk0Ty18bg5rhvBG4quTcMP3aO92inuLMg6RuUgH3XjY4day7y7m0giiAgICAgICAgICAgICAg6yyxwRPmlcGsjaXOJ5ABmSiMKu9wkutzqbjJnnPIXAczeQeoZBacLd3byIJi8Ygmu9rttDMSXUTHMcT97cGn+0BFt3EZSVDqSqhqmfahkbIPODmiJDFF6dfbzPXAnggeDhB5GDd17T60i27u0UiLxowvPAVs1mlfxKgcJFnyPA2j1j5KVvC96aUo6iAgICAgICAgICAgICAgrGkO6d78PSQMdlJWOEI/h3u+Ay9aRjO6jJFpyEBAQEBB6LdWy26vp6+E8eCRrx05HchLpu1NURVdPFVQu1o5mB7TzgjMLLv6+iKICAgICAgICAgICAgIMs0m3Luq9x0DHZso4wCP33bT8NVWOOd3VQVZEBAQEBAQato2ubq2xGjkOb6J+oP4DtH6j1KV1wvS2KNiAgICAgICAgICAgIOskjIo3SyHJrAXOPMAiMIuda+43Gprnk5zyuf5gTsHUtOF7eZAQEBAQEBBa9G9y7jv8A3I92UdYws/qG0fqPWpWsLqtXUdhAQEBAQEBAQEBAQEEViuV8GG7jJGcncA4Z+fZ+qRnLxiS04iAgICAgICD22SV8N4oZYzk5tRGQf6glJ63VZegQEBAQEBB//9k=", As = { class: "user-card" }, ys = { class: "user-card__face-wrapper" }, ws = ["src"], bs = {
1044
+ key: 0,
1045
+ class: "user-card--blocked"
1046
+ }, xs = { class: "user-card__info" }, Es = { class: "user-card__row" }, Cs = ["src"], Bs = { class: "user-card__row" }, ks = { class: "user-card__uid" }, Ss = { class: "user-card__row" }, Qs = { class: "user-card__stat__item" }, Ps = { class: "user-card__stat__value" }, zs = { class: "user-card__stat__item" }, Is = { class: "user-card__stat__value" }, Ms = { class: "user-card__stat__item" }, Ds = { class: "user-card__stat__value" }, Hs = /* @__PURE__ */ k({
1047
+ __name: "BiliUserCard",
1048
+ props: {
1049
+ user: {}
1050
+ },
1051
+ setup(e) {
1052
+ const n = e, t = b(() => n.user.face || ye), s = b(() => new URL((/* @__PURE__ */ Object.assign({ "../../assets/images/user_level/level_1.svg": Oe, "../../assets/images/user_level/level_2.svg": Fe, "../../assets/images/user_level/level_3.svg": Ne, "../../assets/images/user_level/level_4.svg": We, "../../assets/images/user_level/level_5.svg": Ge, "../../assets/images/user_level/level_6.svg": Je }))[`../../assets/images/user_level/level_${n.user.level}.svg`], import.meta.url).href);
1053
+ return (a, l) => {
1054
+ const o = Pe;
1055
+ return i(), p("div", As, [
1056
+ C(a.$slots, "default"),
1057
+ c("div", ys, [
1058
+ c("img", {
1059
+ class: "user-card__face",
1060
+ alt: "face",
1061
+ src: t.value
1062
+ }, null, 8, ws),
1063
+ e.user.silence === 1 ? (i(), p("span", bs, "账号已封禁")) : D("", !0)
1064
+ ]),
1065
+ c("div", xs, [
1066
+ c("div", Es, [
1067
+ g(o, {
1068
+ class: "user-card__name",
1069
+ content: e.user.name
1070
+ }, null, 8, ["content"]),
1071
+ c("img", {
1072
+ class: "user-card__level",
1073
+ src: s.value,
1074
+ alt: "level"
1075
+ }, null, 8, Cs)
1076
+ ]),
1077
+ c("div", Bs, [
1078
+ l[0] || (l[0] = c("span", { class: "user-card__uid-icon" }, null, -1)),
1079
+ c("span", ks, h(e.user.mid), 1)
1080
+ ]),
1081
+ c("div", Ss, [
1082
+ c("span", Qs, [
1083
+ c("span", Ps, h(e.user.following), 1),
1084
+ l[1] || (l[1] = c("span", { class: "user-card__stat__label" }, "关注", -1))
1085
+ ]),
1086
+ c("span", zs, [
1087
+ c("span", Is, h(e.user.follower), 1),
1088
+ l[2] || (l[2] = c("span", { class: "user-card__stat__label" }, "粉丝", -1))
1089
+ ]),
1090
+ c("span", Ms, [
1091
+ c("span", Ds, h(e.user.coins), 1),
1092
+ l[3] || (l[3] = c("span", { class: "user-card__stat__label" }, "硬币", -1))
1093
+ ])
1094
+ ])
1095
+ ])
1096
+ ]);
1097
+ };
1098
+ }
1099
+ }), Ts = { class: "user-info info-row" }, Vs = ["src"], $s = { class: "user-info__right" }, Ls = { class: "info-row" }, Rs = { class: "user-info__uid" }, qs = /* @__PURE__ */ k({
1100
+ __name: "BiliUserInfo",
1101
+ props: {
1102
+ user: {}
1103
+ },
1104
+ setup(e) {
1105
+ return (n, t) => {
1106
+ const s = Pe;
1107
+ return i(), p("div", Ts, [
1108
+ e.user.face ? (i(), p("img", {
1109
+ key: 0,
1110
+ class: "user-info__face",
1111
+ src: e.user.face,
1112
+ alt: "face"
1113
+ }, null, 8, Vs)) : D("", !0),
1114
+ c("div", $s, [
1115
+ g(s, {
1116
+ class: "user-info__name",
1117
+ content: e.user.name
1118
+ }, null, 8, ["content"]),
1119
+ c("div", Ls, [
1120
+ t[0] || (t[0] = c("span", { class: "user-info__uid-icon" }, null, -1)),
1121
+ c("span", Rs, h(e.user.mid), 1)
1122
+ ])
1123
+ ])
1124
+ ]);
1125
+ };
1126
+ }
1127
+ }), sn = /* @__PURE__ */ N(qs, [["__scopeId", "data-v-70fe8db3"]]), Ze = /* @__PURE__ */ k({
1128
+ __name: "PluginMenuItem",
1129
+ props: {
1130
+ menu: {}
1131
+ },
1132
+ setup(e) {
1133
+ return (n, t) => {
1134
+ const s = qe, a = xt;
1135
+ return !e.menu.children || e.menu.children.length === 0 ? (i(), x(s, {
1136
+ key: 0,
1137
+ index: e.menu.path
1138
+ }, {
1139
+ title: d(() => [
1140
+ H(h(e.menu.title), 1)
1141
+ ]),
1142
+ _: 1
1143
+ }, 8, ["index"])) : (i(), x(a, {
1144
+ key: 1,
1145
+ index: e.menu.path
1146
+ }, {
1147
+ title: d(() => [
1148
+ H(h(e.menu.title), 1)
1149
+ ]),
1150
+ default: d(() => [
1151
+ (i(!0), p(O, null, te(e.menu.children, (l) => (i(), x(Ze, {
1152
+ key: l.path,
1153
+ menu: l
1154
+ }, null, 8, ["menu"]))), 128))
1155
+ ]),
1156
+ _: 1
1157
+ }, 8, ["index"]));
1158
+ };
1159
+ }
1160
+ }), Us = /* @__PURE__ */ k({
1161
+ __name: "PluginMenus",
1162
+ props: {
1163
+ menus: {},
1164
+ activeIndex: {}
1165
+ },
1166
+ emits: ["handleSelect"],
1167
+ setup(e, { emit: n }) {
1168
+ const t = e, s = (m, f = /* @__PURE__ */ new Map()) => (m.forEach((A) => {
1169
+ f.set(A.path, A), A.children && A.children.length > 0 && s(A.children, f);
1170
+ }), f), a = b(() => s(t.menus)), l = n, o = (m) => {
1171
+ const f = a.value.get(m);
1172
+ f && l("handleSelect", f);
1173
+ }, r = Le(), u = b(() => !!r["left-item"] || !!r.left), v = b(() => !!r["right-item"] || !!r.right);
1174
+ return (m, f) => {
1175
+ const A = qe, S = Et;
1176
+ return i(), x(S, {
1177
+ "default-active": e.activeIndex,
1178
+ class: "plugin-menus",
1179
+ mode: "horizontal",
1180
+ ellipsis: !1,
1181
+ onSelect: o
1182
+ }, {
1183
+ default: d(() => [
1184
+ u.value ? C(m.$slots, "left-item", { key: 0 }, () => [
1185
+ g(A, {
1186
+ index: "-left",
1187
+ style: { "margin-right": "auto" }
1188
+ }, {
1189
+ default: d(() => [
1190
+ C(m.$slots, "left", {}, void 0, !0)
1191
+ ]),
1192
+ _: 3
1193
+ })
1194
+ ], !0) : D("", !0),
1195
+ (i(!0), p(O, null, te(e.menus, (_) => (i(), x(Ze, {
1196
+ key: _.path,
1197
+ menu: _,
1198
+ index: String(_.path)
1199
+ }, null, 8, ["menu", "index"]))), 128)),
1200
+ v.value ? C(m.$slots, "right-item", { key: 1 }, () => [
1201
+ g(A, {
1202
+ index: "-right",
1203
+ style: { "margin-left": "auto" }
1204
+ }, {
1205
+ default: d(() => [
1206
+ C(m.$slots, "right", {}, void 0, !0)
1207
+ ]),
1208
+ _: 3
1209
+ })
1210
+ ], !0) : D("", !0)
1211
+ ]),
1212
+ _: 3
1213
+ }, 8, ["default-active"]);
1214
+ };
1215
+ }
1216
+ }), js = /* @__PURE__ */ N(Us, [["__scopeId", "data-v-6dfc7821"]]), Os = { class: "plugin-page-header" }, Fs = { class: "plugin-page-header__user-container" }, Ns = { class: "plugin-page-header__user-container__info" }, Ws = ["src"], Gs = ["src"], Js = {
1217
+ key: 1,
1218
+ class: "plugin-page-header__user-container__info"
1219
+ }, ln = /* @__PURE__ */ k({
1220
+ __name: "PluginPageHeader",
1221
+ props: {
1222
+ menus: {},
1223
+ activeIndex: {}
1224
+ },
1225
+ emits: ["handleMenuSelect"],
1226
+ setup(e, { emit: n }) {
1227
+ const t = je(), { user: s } = it(t), a = b(() => s.value?.face || ye), l = b(() => new URL((/* @__PURE__ */ Object.assign({ "../../assets/images/user_level/level_1.svg": Oe, "../../assets/images/user_level/level_2.svg": Fe, "../../assets/images/user_level/level_3.svg": Ne, "../../assets/images/user_level/level_4.svg": We, "../../assets/images/user_level/level_5.svg": Ge, "../../assets/images/user_level/level_6.svg": Je }))[`../../assets/images/user_level/level_${s.value?.level ?? 0}.svg`], import.meta.url).href), o = async () => {
1228
+ t.setUser(await R.user.switchUser());
1229
+ }, r = () => {
1230
+ t.deleteUser();
1231
+ }, u = n, v = (m) => {
1232
+ m && u("handleMenuSelect", m);
1233
+ };
1234
+ return le(async () => {
1235
+ if (s.value && !ne().state.isTest)
1236
+ try {
1237
+ const m = await R.user.getMyInfoByCookie(s.value.userCookie);
1238
+ t.setUser(m);
1239
+ } catch {
1240
+ Y("当前用户 cookie 已失效"), t.deleteUser();
1241
+ }
1242
+ }), (m, f) => {
1243
+ const A = js, S = Pe, _ = Hs, Q = Ct, y = St, T = kt, P = Bt;
1244
+ return i(), p("div", Os, [
1245
+ g(A, {
1246
+ class: "plugin-page-header__menus",
1247
+ "active-index": e.activeIndex,
1248
+ menus: e.menus,
1249
+ onHandleSelect: v
1250
+ }, null, 8, ["active-index", "menus"]),
1251
+ c("div", Fs, [
1252
+ w(s) ? (i(), x(Q, {
1253
+ key: 0,
1254
+ placement: "bottom-end",
1255
+ width: "auto",
1256
+ trigger: "hover"
1257
+ }, {
1258
+ reference: d(() => [
1259
+ c("div", Ns, [
1260
+ c("img", {
1261
+ class: "plugin-page-header__user-container__info__face",
1262
+ src: a.value,
1263
+ alt: "face"
1264
+ }, null, 8, Ws),
1265
+ g(S, {
1266
+ class: "plugin-page-header__user-container__info__name",
1267
+ content: w(s).name
1268
+ }, null, 8, ["content"]),
1269
+ c("img", {
1270
+ class: "plugin-page-header__user-container__info__level",
1271
+ src: l.value,
1272
+ alt: "level img"
1273
+ }, null, 8, Gs)
1274
+ ])
1275
+ ]),
1276
+ default: d(() => [
1277
+ g(_, { user: w(s) }, null, 8, ["user"])
1278
+ ]),
1279
+ _: 1
1280
+ })) : (i(), p("div", Js, [...f[0] || (f[0] = [
1281
+ c("img", {
1282
+ class: "plugin-page-header__user-container__info__face",
1283
+ alt: "",
1284
+ src: ye
1285
+ }, null, -1),
1286
+ c("span", { class: "plugin-page-header__user-container__info__name" }, "未登录", -1)
1287
+ ])])),
1288
+ g(P, {
1289
+ placement: "bottom-end",
1290
+ trigger: "click",
1291
+ size: "default"
1292
+ }, {
1293
+ dropdown: d(() => [
1294
+ g(T, null, {
1295
+ default: d(() => [
1296
+ g(y, { onClick: o }, {
1297
+ default: d(() => [...f[1] || (f[1] = [
1298
+ H("选择用户", -1)
1299
+ ])]),
1300
+ _: 1
1301
+ }),
1302
+ w(s) ? (i(), x(y, {
1303
+ key: 0,
1304
+ onClick: r
1305
+ }, {
1306
+ default: d(() => [...f[2] || (f[2] = [
1307
+ H("取消选择", -1)
1308
+ ])]),
1309
+ _: 1
1310
+ })) : D("", !0)
1311
+ ]),
1312
+ _: 1
1313
+ })
1314
+ ]),
1315
+ default: d(() => [
1316
+ f[3] || (f[3] = c("span", { class: "plugin-page-header__user-container__arrow" }, "▼", -1))
1317
+ ]),
1318
+ _: 1
1319
+ })
1320
+ ])
1321
+ ]);
1322
+ };
1323
+ }
1324
+ }), Zs = {}, Ks = { class: "plugin-page-container" };
1325
+ function Ys(e, n) {
1326
+ return i(), p("div", Ks, [
1327
+ C(e.$slots, "default", {}, void 0, !0)
1328
+ ]);
1329
+ }
1330
+ const nn = /* @__PURE__ */ N(Zs, [["render", Ys], ["__scopeId", "data-v-03560940"]]), Xs = { class: "page-table__toolbar" }, el = { class: "page-table__actions" }, tl = /* @__PURE__ */ k({
1331
+ inheritAttrs: !1,
1332
+ __name: "PageTable",
1333
+ props: {
1334
+ autoLoad: { type: Boolean, default: !0 },
1335
+ searchActionLabel: { default: "搜索" },
1336
+ actions: { default: () => ["search", "resetQuery"] },
1337
+ fetchPage: {},
1338
+ pageParams: {},
1339
+ queryParams: {},
1340
+ pageSizes: {},
1341
+ selectionMode: {},
1342
+ tableHeight: {},
1343
+ tableLayout: { default: "auto" }
1344
+ },
1345
+ emits: ["reset", "search"],
1346
+ setup(e, { expose: n, emit: t }) {
1347
+ const s = ct(), a = b(() => ({
1348
+ class: s.class,
1349
+ style: s.style
1350
+ })), l = b(() => {
1351
+ const { class: W, style: q, ...oe } = s;
1352
+ return oe;
1353
+ }), o = e, r = B(!1), { pageData: u, tableData: v, loading: m, refresh: f, resetAndRefresh: A, handleSizeChange: S, handleCurrPageChange: _ } = $t({
1354
+ fetchPage: o.fetchPage,
1355
+ pageParams: o.pageParams,
1356
+ queryParams: o.queryParams ? () => o.queryParams : void 0,
1357
+ autoLoad: o.autoLoad,
1358
+ onLoaded: () => {
1359
+ r.value = !0, I.value?.setScrollTop(0);
1360
+ }
1361
+ }), Q = t, y = () => {
1362
+ Q("search"), f();
1363
+ }, T = async () => {
1364
+ Q("reset"), await we(), await A();
1365
+ }, P = ee("tableWrapperRef"), I = ee("tableRef"), V = B(void 0), z = async () => {
1366
+ o.tableHeight ? V.value = o.tableHeight : P.value?.clientHeight && (V.value = P.value?.clientHeight);
1367
+ };
1368
+ let M, L = 0;
1369
+ le(async () => {
1370
+ P.value && (M = new ResizeObserver((W) => {
1371
+ cancelAnimationFrame(L), L = requestAnimationFrame(() => {
1372
+ z();
1373
+ });
1374
+ }), M.observe(P.value));
1375
+ }), de(() => {
1376
+ M?.disconnect();
1377
+ });
1378
+ const ae = b(() => ({
1379
+ search: o.actions.includes("search"),
1380
+ resetQuery: o.actions.includes("resetQuery")
1381
+ })), me = b(() => o.pageSizes && o.pageSizes.length > 1 ? "total, sizes, prev, pager, next, jumper" : "total, prev, pager, next, jumper"), ze = !!Le().query;
1382
+ return n({
1383
+ loading: m,
1384
+ tableRef: I,
1385
+ tableData: v,
1386
+ pageData: u,
1387
+ refresh: f,
1388
+ resetAndRefresh: A,
1389
+ getSelectionRows: I.value?.getSelectionRows,
1390
+ toggleRowSelection: I.value?.toggleRowSelection,
1391
+ setCurrentRow: I.value?.setCurrentRow,
1392
+ clearSelection: I.value?.clearSelection,
1393
+ scrollTo: I.value?.scrollTo
1394
+ }), (W, q) => {
1395
+ const oe = pe, Ke = Pt, Ye = zt, Xe = Qt, et = It, tt = Be;
1396
+ return K((i(), p("div", J({ class: "page-table" }, a.value), [
1397
+ c("div", Xs, [
1398
+ c("div", {
1399
+ class: G(["page-table__query", ze ? "has-query" : ""])
1400
+ }, [
1401
+ C(W.$slots, "query", {}, void 0, !0),
1402
+ c("div", el, [
1403
+ C(W.$slots, "actions", {}, void 0, !0),
1404
+ ae.value.search ? (i(), x(oe, {
1405
+ key: 0,
1406
+ type: "primary",
1407
+ onClick: y
1408
+ }, {
1409
+ default: d(() => [
1410
+ H(h(e.searchActionLabel), 1)
1411
+ ]),
1412
+ _: 1
1413
+ })) : D("", !0),
1414
+ ae.value.resetQuery ? (i(), x(oe, {
1415
+ key: 1,
1416
+ onClick: T
1417
+ }, {
1418
+ default: d(() => [...q[2] || (q[2] = [
1419
+ H("重置", -1)
1420
+ ])]),
1421
+ _: 1
1422
+ })) : D("", !0)
1423
+ ])
1424
+ ], 2)
1425
+ ]),
1426
+ c("div", {
1427
+ ref_key: "tableWrapperRef",
1428
+ ref: P,
1429
+ class: "page-table__table-wrapper"
1430
+ }, [
1431
+ r.value ? (i(), x(Xe, J({
1432
+ key: 0,
1433
+ ref_key: "tableRef",
1434
+ ref: I
1435
+ }, l.value, {
1436
+ class: "page-table__table",
1437
+ data: w(v),
1438
+ border: "",
1439
+ height: V.value,
1440
+ "table-layout": e.tableLayout,
1441
+ "highlight-current-row": e.selectionMode === "single"
1442
+ }), {
1443
+ empty: d(() => [
1444
+ C(W.$slots, "empty", {}, () => [
1445
+ g(Ye, { description: "没有数据" })
1446
+ ], !0)
1447
+ ]),
1448
+ default: d(() => [
1449
+ e.selectionMode === "multiple" ? (i(), x(Ke, {
1450
+ key: 0,
1451
+ type: "selection",
1452
+ width: "55"
1453
+ })) : D("", !0),
1454
+ C(W.$slots, "default", {}, void 0, !0)
1455
+ ]),
1456
+ _: 3
1457
+ }, 16, ["data", "height", "table-layout", "highlight-current-row"])) : D("", !0)
1458
+ ], 512),
1459
+ g(et, {
1460
+ class: "page-table__pagination",
1461
+ "current-page": w(u).pageNum,
1462
+ "onUpdate:currentPage": q[0] || (q[0] = (fe) => w(u).pageNum = fe),
1463
+ "page-size": w(u).pageSize,
1464
+ "onUpdate:pageSize": q[1] || (q[1] = (fe) => w(u).pageSize = fe),
1465
+ "page-sizes": e.pageSizes,
1466
+ total: w(u).total,
1467
+ layout: me.value,
1468
+ onCurrentChange: w(_),
1469
+ onSizeChange: w(S)
1470
+ }, null, 8, ["current-page", "page-size", "page-sizes", "total", "layout", "onCurrentChange", "onSizeChange"])
1471
+ ], 16)), [
1472
+ [tt, w(m)]
1473
+ ]);
1474
+ };
1475
+ }
1476
+ }), an = /* @__PURE__ */ N(tl, [["__scopeId", "data-v-e20aaa6e"]]);
1477
+ export {
1478
+ U as AppIcon,
1479
+ Kl as AppLoadingDialog,
1480
+ Pe as AppTooltip,
1481
+ Hs as BiliUserCard,
1482
+ sn as BiliUserInfo,
1483
+ Gl as CountdownDialog,
1484
+ en as ExternalLink,
1485
+ Yl as IconButton,
1486
+ Xl as IconLabel,
1487
+ gs as LoadingDialog,
1488
+ tn as LogPrint,
1489
+ rs as PageRangeDialog,
1490
+ an as PageTable,
1491
+ Ze as PluginMenuItem,
1492
+ js as PluginMenus,
1493
+ nn as PluginPageContent,
1494
+ ln as PluginPageHeader,
1495
+ ss as SelectDialog,
1496
+ Nl as SettingGroup,
1497
+ Wl as SettingItem,
1498
+ re as baseUpdateThemeColor,
1499
+ Ve as blackColor,
1500
+ ql as handleError,
1501
+ Tl as initAppTheme,
1502
+ Rl as initBilitoolkitUi,
1503
+ he as initTransparentColors,
1504
+ ke as isDarkTheme,
1505
+ Vt as showConfirm,
1506
+ jl as showConfirmSequence,
1507
+ Y as showError,
1508
+ Zl as showPageRangeDialog,
1509
+ Jl as showSelectDialog,
1510
+ Se as showToast,
1511
+ Ul as showWarning,
1512
+ Vl as switchDefaultTheme,
1513
+ $l as switchThemeMode,
1514
+ R as toolkitApi,
1515
+ ue as updateAppTheme,
1516
+ Ll as updatePrimaryColor,
1517
+ ge as useAppThemeStore,
1518
+ Ol as useAutoRefreshData,
1519
+ Gt as useCountdown,
1520
+ Qe as useLoadingData,
1521
+ $t as usePageTable,
1522
+ Fl as useSelectData,
1523
+ je as useSelectedUserStore,
1524
+ ne as useTestDataStore,
1525
+ Te as whiteColor
1526
+ };