@huyooo/ui 1.0.7 → 2.0.1

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 (75) hide show
  1. package/dist/AuthkitAppSetting-DCQH9IpU.js +2678 -0
  2. package/dist/{Contact-BWuVR9ho.js → Contact-C7ROEqe-.js} +9 -9
  3. package/dist/{CustomTable-BzGfaAVH.js → CustomTable-GgvDEidl.js} +1 -1
  4. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-C1hPqnNT.js +1531 -0
  5. package/dist/{LegalDocViewer-DM8FYBpf.js → LegalDocViewer-D_QUh0uf.js} +747 -748
  6. package/dist/MessageHandle-DKoySsCG.js +1233 -0
  7. package/dist/{MessageList-Ce-_LNTk.js → MessageList-HSiKkUoD.js} +4 -4
  8. package/dist/PaySubscriptions-NcATVJGm.js +1331 -0
  9. package/dist/{PricingPlans-CV97ck9p.js → PricingPlans-CZn6eJby.js} +99 -105
  10. package/dist/{ReferrerReferees-DgygiIiE.js → ReferrerReferees-BoOQIssE.js} +47 -46
  11. package/dist/Upload.vue_vue_type_script_setup_true_lang-CkS2S9Xc.js +83 -0
  12. package/dist/{UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-0Td42Nb3.js → UserMenuInvitationsItem.vue_vue_type_script_setup_true_lang-BrNx6JWe.js} +64 -65
  13. package/dist/WidthContainer-BJLdZfzF.js +717 -0
  14. package/dist/api/billingSubscriptionApi.d.ts +4 -1
  15. package/dist/apiClients-CR-hEwog.js +245 -0
  16. package/dist/authkit.js +10 -10
  17. package/dist/common/globalConfig.d.ts +36 -18
  18. package/dist/common.js +2 -2
  19. package/dist/components/Authkit/Auth/AuthkitOauthCallback.vue.d.ts +2 -2
  20. package/dist/components/Authkit/AuthkitProvider.vue.d.ts +0 -5
  21. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +11 -0
  22. package/dist/components/Upload/Upload.vue.d.ts +7 -6
  23. package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -0
  24. package/dist/composables/Billing/usePaymentReturn.d.ts +1 -0
  25. package/dist/composables/uploadFeedbackAttachment.d.ts +8 -1
  26. package/dist/composables/useMessageList.d.ts +2 -1
  27. package/dist/composables.d.ts +2 -2
  28. package/dist/composables.js +46 -46
  29. package/dist/feedback.js +2 -2
  30. package/dist/{fetchAuthPageAboutUs-dzTSwRsB.js → fetchAuthPageAboutUs-BnKWq_TL.js} +4 -4
  31. package/dist/{index-BkLvw1PU.js → index-BhVwozr0.js} +1 -1
  32. package/dist/legalDocs/resolveAppId.d.ts +1 -1
  33. package/dist/main.d.ts +4 -3
  34. package/dist/main.js +464 -469
  35. package/dist/message.js +53 -52
  36. package/dist/pay.js +4 -4
  37. package/dist/privateCom.js +1 -1
  38. package/dist/referrer.js +1 -1
  39. package/dist/{useUploadCos-C8BqFPkx.js → runtime-DMCyhVcI.js} +2305 -2185
  40. package/dist/runtime.d.ts +22 -0
  41. package/dist/style.css +1 -1
  42. package/dist/types/api/auth.generated.d.ts +0 -10
  43. package/dist/upload/browserCosTransport.d.ts +22 -0
  44. package/dist/upload/browserUploadService.d.ts +21 -0
  45. package/dist/upload.d.ts +2 -1
  46. package/dist/upload.js +5 -4
  47. package/dist/{useAuthkitAppsAuthPageInfo-CNudJd04.js → useAuthkitAppsAuthPageInfo-Byu0yvrx.js} +18 -21
  48. package/dist/useAuthkitAuth-M2vTpEcb.js +272 -0
  49. package/dist/{useAuthkitCreateAndUpdate-BsINsI-E.js → useAuthkitCreateAndUpdate-D2_Bdazi.js} +1 -1
  50. package/dist/useAuthkitUsersProfile-DdUAENic.js +39 -0
  51. package/dist/useBillingStatusOptions-Jq6Wqfxb.js +61 -0
  52. package/dist/{useEnsureAuthenticated-DNkCCy_Y.js → useEnsureAuthenticated-Hel8hWLJ.js} +2 -2
  53. package/dist/{useLegalDocs-DQP_Yq6B.js → useLegalDocs-BOjqYRyQ.js} +25 -25
  54. package/dist/useMessageNotifications-AznFeFMD.js +80 -0
  55. package/dist/{useRoutePermission-CEiya9AM.js → useRoutePermission-BmUXTwQc.js} +2 -2
  56. package/dist/{useSEO-CDWxbk8B.js → useSEO-Chz4Zxuu.js} +89 -86
  57. package/dist/useSubscriptionCheckout-3ivcOcgC.js +353 -0
  58. package/dist/user.js +1 -1
  59. package/dist/utils/apiClients.d.ts +20 -12
  60. package/dist/utils/apiMiddlewares.d.ts +9 -23
  61. package/package.json +1 -1
  62. package/dist/AuthkitAppSetting-BN8-xgNq.js +0 -2674
  63. package/dist/FeedbackModal.vue_vue_type_script_setup_true_lang-DrL_XBqf.js +0 -1481
  64. package/dist/MessageHandle-mEkCsv9e.js +0 -1173
  65. package/dist/PaySubscriptions-CXkEjqr2.js +0 -1326
  66. package/dist/Upload.vue_vue_type_script_setup_true_lang-VGh2V4o0.js +0 -76
  67. package/dist/WidthContainer-CFMQRsCy.js +0 -721
  68. package/dist/apiClients-BcXOLuYu.js +0 -272
  69. package/dist/composables/Upload/useUploadCos.d.ts +0 -12
  70. package/dist/useAuthkitAuth-3m0yW6uP.js +0 -267
  71. package/dist/useAuthkitUsersProfile-DJlMsftY.js +0 -40
  72. package/dist/useBillingStatusOptions-CfHQOFNw.js +0 -71
  73. package/dist/useMessageNotifications-CAphguOm.js +0 -75
  74. package/dist/useSubscriptionCheckout-d_M_rKRa.js +0 -368
  75. package/dist/utils/billingFetch.d.ts +0 -1
@@ -0,0 +1,1233 @@
1
+ import { defineComponent as $, computed as D, openBlock as p, createElementBlock as S, toDisplayString as B, createBlock as b, unref as _, ref as f, withCtx as y, createVNode as C, createCommentVNode as h, Fragment as Z, renderList as se, normalizeClass as ee, watch as te, createElementVNode as V, createTextVNode as z, resolveDynamicComponent as ie, useModel as oe, isRef as le, mergeModels as Q } from "vue";
2
+ /* empty css */
3
+ /* empty css */
4
+ import { U as re } from "./userMenuModal-D-nDaYqM.js";
5
+ /* empty css */
6
+ import { M as q, a as j, u as ue } from "./MessageList-HSiKkUoD.js";
7
+ import { Descriptions as ce, Spin as ae, Breadcrumb as F, BreadcrumbItem as E, Tag as K, Modal as de } from "@arco-design/web-vue";
8
+ import { g as A } from "./apiClients-CR-hEwog.js";
9
+ import { TiptapEditor as pe, TiptapTitle as fe } from "@huyooo/vue-tiptap";
10
+ import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ import { Icon as ge } from "@iconify/vue";
12
+ import { u as ve } from "./useAuthkitCreateAndUpdate-D2_Bdazi.js";
13
+ import { M as ye } from "./Menu-uCexrsKP.js";
14
+ function P(a, t, u) {
15
+ if (a == null || a === "")
16
+ return "—";
17
+ if (typeof a == "boolean") {
18
+ if (t && (u != null && u[t])) {
19
+ const [i, o] = u[t];
20
+ return a ? i : o;
21
+ }
22
+ return a ? "是" : "否";
23
+ }
24
+ if (Array.isArray(a))
25
+ return a.map((i) => P(i)).join("、") || "—";
26
+ if (typeof a == "object")
27
+ try {
28
+ return JSON.stringify(a, null, 2);
29
+ } catch {
30
+ return String(a);
31
+ }
32
+ return String(a);
33
+ }
34
+ function me(a, t = {}) {
35
+ const u = new Set(t.hiddenKeys ?? []), i = t.fieldLabels ?? {}, o = [];
36
+ for (const [d, s] of Object.entries(a))
37
+ u.has(d) || d === t.nestedKey || o.push({
38
+ label: i[d] ?? d,
39
+ value: P(s, d, t.booleanLabels)
40
+ });
41
+ const l = t.nestedKey ? a[t.nestedKey] : void 0;
42
+ if (l && typeof l == "object" && !Array.isArray(l))
43
+ for (const [d, s] of Object.entries(l))
44
+ u.has(d) || o.push({
45
+ label: i[d] ?? d,
46
+ value: P(s, d, t.booleanLabels)
47
+ });
48
+ return o;
49
+ }
50
+ const _e = {
51
+ class: "json-message-body-fallback"
52
+ }, be = {
53
+ key: 0,
54
+ class: "json-message-body-fallback__text"
55
+ }, he = {
56
+ key: 2,
57
+ class: "json-message-body-fallback__raw"
58
+ }, Ae = /* @__PURE__ */ $({
59
+ __name: "JsonMessageBodyFallback",
60
+ props: {
61
+ data: {},
62
+ title: {},
63
+ description: {},
64
+ type: {}
65
+ },
66
+ setup(a) {
67
+ const t = a, u = D(() => typeof t.data.text == "string" && Object.keys(t.data).length === 1 ? t.data.text : ""), i = D(() => me(t.data)), o = D(() => {
68
+ try {
69
+ return JSON.stringify(t.data, null, 2);
70
+ } catch {
71
+ return String(t.data);
72
+ }
73
+ });
74
+ return (l, d) => (p(), S("div", _e, [u.value ? (p(), S("p", be, B(u.value), 1)) : i.value.length > 0 ? (p(), b(_(ce), {
75
+ key: 1,
76
+ column: 1,
77
+ bordered: "",
78
+ size: "medium",
79
+ data: i.value
80
+ }, null, 8, ["data"])) : (p(), S("pre", he, B(o.value), 1))]));
81
+ }
82
+ }), X = /* @__PURE__ */ R(Ae, [["__scopeId", "data-v-e61c87e4"]]), J = /* @__PURE__ */ new Map();
83
+ function bt(a, t) {
84
+ const u = a.trim();
85
+ u && J.set(u, t);
86
+ }
87
+ function ht(a) {
88
+ return J.has(a.trim());
89
+ }
90
+ function Ce(a) {
91
+ const t = a.trim();
92
+ return t ? J.get(t) ?? X : X;
93
+ }
94
+ function At() {
95
+ return [...J.keys()];
96
+ }
97
+ const Se = /* @__PURE__ */ $({
98
+ __name: "MessageDetails",
99
+ props: {
100
+ content: {
101
+ default: null
102
+ },
103
+ title: {},
104
+ loading: {
105
+ type: Boolean,
106
+ default: !1
107
+ }
108
+ },
109
+ emits: ["itemClick", "tableOfContentsUpdate", "update:title", "update:content"],
110
+ setup(a, {
111
+ emit: t
112
+ }) {
113
+ const u = f([]), i = a, o = f(!1), l = t, d = f();
114
+ function s(m) {
115
+ u.value = m, l("tableOfContentsUpdate", m);
116
+ }
117
+ return (m, v) => (p(), b(_(ae), {
118
+ loading: i.loading,
119
+ tip: "文档加载中...",
120
+ class: "Spin",
121
+ dot: ""
122
+ }, {
123
+ default: y(() => [C(_(pe), {
124
+ ref_key: "TiptapEditorRef",
125
+ ref: d,
126
+ "model-value": i.content,
127
+ editable: o.value,
128
+ "tiptap-editor-content-class": "tiptapEditorContentClass",
129
+ onTableOfContentsUpdate: s
130
+ }, {
131
+ title: y(() => [C(_(fe), {
132
+ "model-value": i.title,
133
+ editable: o.value
134
+ }, null, 8, ["model-value", "editable"])]),
135
+ _: 1
136
+ }, 8, ["model-value", "editable"]), h("", !0)]),
137
+ _: 1
138
+ }, 8, ["loading"]));
139
+ }
140
+ }), G = /* @__PURE__ */ R(Se, [["__scopeId", "data-v-2149941c"]]), ke = /* @__PURE__ */ $({
141
+ __name: "MessageChangelogNotificationsDetails",
142
+ props: {
143
+ id: {
144
+ type: String,
145
+ required: !0
146
+ }
147
+ },
148
+ setup(a) {
149
+ const t = f(!1), u = f(null), i = f(""), o = a;
150
+ async function l() {
151
+ t.value = !0;
152
+ const {
153
+ data: d,
154
+ error: s
155
+ } = await A().ones.messageCenter.changelogNotifications.findOne.post({
156
+ id: o.id
157
+ });
158
+ t.value = !1, !s && d && (u.value = d.content, i.value = d.title);
159
+ }
160
+ return l(), (d, s) => (p(), b(G, {
161
+ content: u.value,
162
+ title: i.value,
163
+ loading: t.value
164
+ }, null, 8, ["content", "title", "loading"]));
165
+ }
166
+ }), Ne = {
167
+ style: {
168
+ display: "flex",
169
+ gap: "16px"
170
+ }
171
+ }, we = ["onClick"], Me = /* @__PURE__ */ $({
172
+ __name: "MessageCustomTabs",
173
+ props: {
174
+ modelValue: {
175
+ type: String,
176
+ default: "1"
177
+ },
178
+ tabs: {
179
+ type: Array,
180
+ default: () => [{
181
+ label: "未读消息",
182
+ key: "1"
183
+ }, {
184
+ label: "已读消息",
185
+ key: "2"
186
+ }]
187
+ }
188
+ },
189
+ emits: ["update:modelValue", "change"],
190
+ setup(a, {
191
+ emit: t
192
+ }) {
193
+ const u = a, i = t;
194
+ function o(l) {
195
+ l !== u.modelValue && (i("update:modelValue", l), i("change", l));
196
+ }
197
+ return (l, d) => (p(), S("div", Ne, [(p(!0), S(Z, null, se(a.tabs, (s) => (p(), S("span", {
198
+ key: s.key,
199
+ class: ee(["custom-tab", [{
200
+ active: a.modelValue === s.key
201
+ }]]),
202
+ onClick: (m) => o(s.key)
203
+ }, B(s.label), 11, we))), 128))]));
204
+ }
205
+ }), Te = /* @__PURE__ */ R(Me, [["__scopeId", "data-v-d7edaca7"]]), ze = {
206
+ class: "tabs"
207
+ }, xe = /* @__PURE__ */ $({
208
+ __name: "MessageTabs",
209
+ props: {
210
+ tabs: {
211
+ type: Array,
212
+ required: !0
213
+ },
214
+ messageList: {
215
+ type: Array,
216
+ required: !0
217
+ },
218
+ activeTab: {
219
+ type: String,
220
+ required: !0
221
+ }
222
+ },
223
+ emits: ["update:activeTab", "change", "readAll"],
224
+ setup(a, {
225
+ emit: t
226
+ }) {
227
+ const u = a, i = t, o = f(u.activeTab);
228
+ te(() => u.activeTab, (s) => {
229
+ o.value = s;
230
+ });
231
+ function l(s) {
232
+ o.value = s, i("update:activeTab", s), i("change", s);
233
+ }
234
+ function d() {
235
+ u.messageList.length !== 0 && i("readAll");
236
+ }
237
+ return (s, m) => (p(), S("div", ze, [C(Te, {
238
+ modelValue: o.value,
239
+ "onUpdate:modelValue": m[0] || (m[0] = (v) => o.value = v),
240
+ tabs: a.tabs,
241
+ onChange: l
242
+ }, null, 8, ["modelValue", "tabs"]), o.value === "unread" ? (p(), S("div", {
243
+ key: 0,
244
+ class: ee(["readAll", {
245
+ disabled: a.messageList.length === 0
246
+ }]),
247
+ onClick: d
248
+ }, [C(_(ge), {
249
+ class: "icon",
250
+ icon: "icon-park-outline:clear"
251
+ }), m[1] || (m[1] = V("span", null, " 全部已读", -1))], 2)) : h("", !0)]));
252
+ }
253
+ }), H = /* @__PURE__ */ R(xe, [["__scopeId", "data-v-47f7fce5"]]), $e = {
254
+ class: "message-panel"
255
+ }, Ie = {
256
+ class: "version-prefix"
257
+ }, Le = {
258
+ key: 0,
259
+ class: "publish-time"
260
+ }, De = {
261
+ key: 3,
262
+ class: "message-panel__detail"
263
+ }, Be = /* @__PURE__ */ $({
264
+ __name: "MessageChangelogNotifications",
265
+ setup(a) {
266
+ const t = f(!0), u = f(""), i = f(!1), o = f(!1), l = f([]), d = f("unread"), s = f({
267
+ current: 1,
268
+ pageSize: 10,
269
+ total: 0
270
+ }), m = [{
271
+ label: "未读更新",
272
+ key: "unread"
273
+ }, {
274
+ label: "已读更新",
275
+ key: "read"
276
+ }], v = D(() => d.value === "read");
277
+ function x(n) {
278
+ return {
279
+ id: String(n.id),
280
+ title: String(n.title ?? ""),
281
+ description: String(n.description ?? ""),
282
+ createAt: String(n.createAt ?? ""),
283
+ updateAt: String(n.updateAt ?? ""),
284
+ version: String(n.version ?? ""),
285
+ changeType: String(n.changeType ?? "feature"),
286
+ publishedAt: n.publishedAt ? String(n.publishedAt) : null,
287
+ read: !!n.read,
288
+ readAt: n.readAt ? String(n.readAt) : null
289
+ };
290
+ }
291
+ async function k() {
292
+ var r;
293
+ i.value = !0;
294
+ const {
295
+ data: n,
296
+ error: c
297
+ } = await A().ones.messageCenter.changelogNotifications.own.post({
298
+ current: s.value.current,
299
+ pageSize: s.value.pageSize,
300
+ where: {
301
+ read: v.value
302
+ }
303
+ });
304
+ if (i.value = !1, c || !n)
305
+ return;
306
+ const e = n;
307
+ l.value = (e.items ?? []).map(x), s.value.total = e.count ?? 0, o.value = (((r = e.items) == null ? void 0 : r.length) ?? 0) < s.value.pageSize;
308
+ }
309
+ async function I() {
310
+ if (i.value || o.value)
311
+ return;
312
+ s.value.current += 1, i.value = !0;
313
+ const {
314
+ data: n,
315
+ error: c
316
+ } = await A().ones.messageCenter.changelogNotifications.own.post({
317
+ current: s.value.current,
318
+ pageSize: s.value.pageSize,
319
+ where: {
320
+ read: v.value
321
+ }
322
+ });
323
+ if (i.value = !1, c || !n)
324
+ return;
325
+ const r = (n.items ?? []).map(x);
326
+ l.value = [...l.value, ...r], o.value = r.length < s.value.pageSize;
327
+ }
328
+ function w() {
329
+ s.value.current = 1, o.value = !1, k();
330
+ }
331
+ async function O() {
332
+ if (l.value.length === 0)
333
+ return;
334
+ const {
335
+ error: n
336
+ } = await A().ones.messageCenter.changelogNotifications.readAll.post({});
337
+ n || (j(), k());
338
+ }
339
+ function N() {
340
+ t.value = !0, u.value = "";
341
+ }
342
+ async function M(n) {
343
+ if (u.value = n.id, t.value = !1, !n.read) {
344
+ const {
345
+ error: c
346
+ } = await A().ones.messageCenter.changelogNotifications.read.post({
347
+ changelogId: n.id
348
+ });
349
+ if (c)
350
+ return;
351
+ j(), v.value || (l.value = l.value.filter((e) => e.id !== n.id));
352
+ }
353
+ }
354
+ function T(n) {
355
+ return {
356
+ feature: "green",
357
+ improvement: "blue",
358
+ fix: "orange",
359
+ security: "red",
360
+ breaking: "magenta"
361
+ }[n] || "blue";
362
+ }
363
+ function U(n) {
364
+ return {
365
+ feature: "新功能",
366
+ improvement: "优化",
367
+ fix: "修复",
368
+ security: "安全",
369
+ breaking: "重大变更"
370
+ }[n] || "更新";
371
+ }
372
+ return k(), (n, c) => (p(), S("div", $e, [t.value ? h("", !0) : (p(), b(_(F), {
373
+ key: 0,
374
+ class: "message-panel__breadcrumb"
375
+ }, {
376
+ default: y(() => [C(_(E), {
377
+ onClick: N
378
+ }, {
379
+ default: y(() => [...c[1] || (c[1] = [z("更新日志", -1)])]),
380
+ _: 1
381
+ }), C(_(E), null, {
382
+ default: y(() => [...c[2] || (c[2] = [z("详情", -1)])]),
383
+ _: 1
384
+ })]),
385
+ _: 1
386
+ })), t.value ? (p(), b(H, {
387
+ key: 1,
388
+ "active-tab": d.value,
389
+ "onUpdate:activeTab": c[0] || (c[0] = (e) => d.value = e),
390
+ tabs: m,
391
+ "message-list": l.value,
392
+ onChange: w,
393
+ onReadAll: O
394
+ }, null, 8, ["active-tab", "message-list"])) : h("", !0), t.value ? (p(), b(q, {
395
+ key: 2,
396
+ "message-list": l.value,
397
+ loading: i.value,
398
+ finished: o.value,
399
+ "show-read-status": !0,
400
+ "show-view-button": !1,
401
+ onItemClick: M,
402
+ onLoadMore: I
403
+ }, {
404
+ prefix: y(({
405
+ item: e
406
+ }) => [V("span", Ie, B(e.version), 1)]),
407
+ tags: y(({
408
+ item: e
409
+ }) => [C(_(K), {
410
+ color: T(e.changeType),
411
+ size: "small"
412
+ }, {
413
+ default: y(() => [z(B(U(e.changeType)), 1)]),
414
+ _: 2
415
+ }, 1032, ["color"])]),
416
+ footer: y(({
417
+ item: e
418
+ }) => [e.publishedAt ? (p(), S("span", Le, " 发布于 " + B(e.publishedAt), 1)) : h("", !0)]),
419
+ _: 1
420
+ }, 8, ["message-list", "loading", "finished"])) : (p(), S("div", De, [C(ke, {
421
+ id: u.value
422
+ }, null, 8, ["id"])]))]));
423
+ }
424
+ }), Oe = /* @__PURE__ */ R(Be, [["__scopeId", "data-v-4bf24ccd"]]), Re = /* @__PURE__ */ $({
425
+ __name: "MessageEventNotificationsDetails",
426
+ props: {
427
+ id: {
428
+ type: String,
429
+ required: !0
430
+ }
431
+ },
432
+ setup(a) {
433
+ const t = f(!1), u = f(null), i = f(""), o = a;
434
+ async function l() {
435
+ t.value = !0;
436
+ const {
437
+ data: d,
438
+ error: s
439
+ } = await A().ones.messageCenter.eventNotifications.findOne.post({
440
+ id: o.id
441
+ });
442
+ t.value = !1, !s && d && (u.value = d.content, i.value = d.title);
443
+ }
444
+ return l(), (d, s) => (p(), b(G, {
445
+ content: u.value,
446
+ title: i.value,
447
+ loading: t.value
448
+ }, null, 8, ["content", "title", "loading"]));
449
+ }
450
+ }), Ee = {
451
+ class: "message-panel"
452
+ }, Ue = {
453
+ key: 0,
454
+ class: "time-range"
455
+ }, Ke = {
456
+ key: 3,
457
+ class: "message-panel__detail"
458
+ }, Ve = /* @__PURE__ */ $({
459
+ __name: "MessageEventNotifications",
460
+ setup(a) {
461
+ const t = f(!0), u = f(""), i = f(!1), o = f(!1), l = f([]), d = f("unread"), s = f({
462
+ current: 1,
463
+ pageSize: 10,
464
+ total: 0
465
+ }), m = [{
466
+ label: "未读活动",
467
+ key: "unread"
468
+ }, {
469
+ label: "已读活动",
470
+ key: "read"
471
+ }], v = D(() => d.value === "read");
472
+ function x(n) {
473
+ return {
474
+ id: String(n.id),
475
+ title: String(n.title ?? ""),
476
+ description: String(n.description ?? ""),
477
+ createAt: String(n.createAt ?? ""),
478
+ updateAt: String(n.updateAt ?? ""),
479
+ pinned: !!n.pinned,
480
+ status: String(n.status ?? ""),
481
+ displayStatus: String(n.displayStatus ?? ""),
482
+ startAt: n.startAt ? String(n.startAt) : null,
483
+ endAt: n.endAt ? String(n.endAt) : null,
484
+ read: !!n.read,
485
+ readAt: n.readAt ? String(n.readAt) : null
486
+ };
487
+ }
488
+ async function k() {
489
+ var r;
490
+ i.value = !0;
491
+ const {
492
+ data: n,
493
+ error: c
494
+ } = await A().ones.messageCenter.eventNotifications.own.post({
495
+ current: s.value.current,
496
+ pageSize: s.value.pageSize,
497
+ where: {
498
+ read: v.value
499
+ }
500
+ });
501
+ if (i.value = !1, c || !n)
502
+ return;
503
+ const e = n;
504
+ l.value = (e.items ?? []).map(x), s.value.total = e.count ?? 0, o.value = (((r = e.items) == null ? void 0 : r.length) ?? 0) < s.value.pageSize;
505
+ }
506
+ async function I() {
507
+ if (i.value || o.value)
508
+ return;
509
+ s.value.current += 1, i.value = !0;
510
+ const {
511
+ data: n,
512
+ error: c
513
+ } = await A().ones.messageCenter.eventNotifications.own.post({
514
+ current: s.value.current,
515
+ pageSize: s.value.pageSize,
516
+ where: {
517
+ read: v.value
518
+ }
519
+ });
520
+ if (i.value = !1, c || !n)
521
+ return;
522
+ const r = (n.items ?? []).map(x);
523
+ l.value = [...l.value, ...r], o.value = r.length < s.value.pageSize;
524
+ }
525
+ function w() {
526
+ s.value.current = 1, o.value = !1, k();
527
+ }
528
+ async function O() {
529
+ if (l.value.length === 0)
530
+ return;
531
+ const {
532
+ error: n
533
+ } = await A().ones.messageCenter.eventNotifications.readAll.post({});
534
+ n || (j(), k());
535
+ }
536
+ function N() {
537
+ t.value = !0, u.value = "";
538
+ }
539
+ async function M(n) {
540
+ if (u.value = n.id, t.value = !1, !n.read) {
541
+ const {
542
+ error: c
543
+ } = await A().ones.messageCenter.eventNotifications.read.post({
544
+ eventId: n.id
545
+ });
546
+ if (c)
547
+ return;
548
+ j(), v.value || (l.value = l.value.filter((e) => e.id !== n.id));
549
+ }
550
+ }
551
+ function T(n) {
552
+ return {
553
+ upcoming: "blue",
554
+ ongoing: "green",
555
+ ended: "gray",
556
+ published: "arcoblue"
557
+ }[n] || "gray";
558
+ }
559
+ function U(n) {
560
+ return {
561
+ upcoming: "即将开始",
562
+ ongoing: "进行中",
563
+ ended: "已结束",
564
+ published: "已发布"
565
+ }[n] || "未知";
566
+ }
567
+ return k(), (n, c) => (p(), S("div", Ee, [t.value ? h("", !0) : (p(), b(_(F), {
568
+ key: 0,
569
+ class: "message-panel__breadcrumb"
570
+ }, {
571
+ default: y(() => [C(_(E), {
572
+ onClick: N
573
+ }, {
574
+ default: y(() => [...c[1] || (c[1] = [z("活动通知", -1)])]),
575
+ _: 1
576
+ }), C(_(E), null, {
577
+ default: y(() => [...c[2] || (c[2] = [z("详情", -1)])]),
578
+ _: 1
579
+ })]),
580
+ _: 1
581
+ })), t.value ? (p(), b(H, {
582
+ key: 1,
583
+ "active-tab": d.value,
584
+ "onUpdate:activeTab": c[0] || (c[0] = (e) => d.value = e),
585
+ tabs: m,
586
+ "message-list": l.value,
587
+ onChange: w,
588
+ onReadAll: O
589
+ }, null, 8, ["active-tab", "message-list"])) : h("", !0), t.value ? (p(), b(q, {
590
+ key: 2,
591
+ "message-list": l.value,
592
+ loading: i.value,
593
+ finished: o.value,
594
+ "show-read-status": !0,
595
+ "show-view-button": !1,
596
+ onItemClick: M,
597
+ onLoadMore: I
598
+ }, {
599
+ tags: y(({
600
+ item: e
601
+ }) => [C(_(K), {
602
+ color: T(e.displayStatus),
603
+ size: "small"
604
+ }, {
605
+ default: y(() => [z(B(U(e.displayStatus)), 1)]),
606
+ _: 2
607
+ }, 1032, ["color"])]),
608
+ footer: y(({
609
+ item: e
610
+ }) => [e.startAt || e.endAt ? (p(), S("span", Ue, B(e.startAt || "无") + " ~ " + B(e.endAt || "无"), 1)) : h("", !0)]),
611
+ _: 1
612
+ }, 8, ["message-list", "loading", "finished"])) : (p(), S("div", Ke, [C(Re, {
613
+ id: u.value
614
+ }, null, 8, ["id"])]))]));
615
+ }
616
+ }), je = /* @__PURE__ */ R(Ve, [["__scopeId", "data-v-9985feb9"]]);
617
+ function Y(a) {
618
+ return !!a && typeof a == "object" && !Array.isArray(a);
619
+ }
620
+ function qe(a) {
621
+ return a.type === "doc" && Array.isArray(a.content);
622
+ }
623
+ function ne(a, t) {
624
+ if (Y(a))
625
+ return qe(a) ? W(t) : a;
626
+ if (typeof a == "string") {
627
+ const u = a.trim();
628
+ if (!u)
629
+ return W(t);
630
+ try {
631
+ const i = JSON.parse(u);
632
+ if (Y(i))
633
+ return ne(i, t);
634
+ } catch {
635
+ return {
636
+ text: u
637
+ };
638
+ }
639
+ }
640
+ return W(t);
641
+ }
642
+ function W(a) {
643
+ const t = a == null ? void 0 : a.trim();
644
+ return t ? {
645
+ text: t
646
+ } : {};
647
+ }
648
+ const Fe = {
649
+ class: "message-notification-detail"
650
+ }, Je = {
651
+ class: "message-notification-detail__title"
652
+ }, He = /* @__PURE__ */ $({
653
+ __name: "MessageNotificationDetails",
654
+ props: {
655
+ title: {},
656
+ type: {
657
+ default: ""
658
+ },
659
+ content: {},
660
+ description: {
661
+ default: ""
662
+ },
663
+ loading: {
664
+ type: Boolean,
665
+ default: !1
666
+ }
667
+ },
668
+ setup(a) {
669
+ const t = a, u = D(() => t.type.trim()), i = D(() => ne(t.content, t.description)), o = D(() => Ce(u.value));
670
+ return (l, d) => (p(), b(_(ae), {
671
+ loading: a.loading,
672
+ tip: "加载中...",
673
+ class: "Spin",
674
+ dot: ""
675
+ }, {
676
+ default: y(() => [V("div", Fe, [V("h1", Je, B(a.title), 1), (p(), b(ie(o.value), {
677
+ data: i.value,
678
+ title: a.title,
679
+ description: a.description,
680
+ type: u.value
681
+ }, null, 8, ["data", "title", "description", "type"]))])]),
682
+ _: 1
683
+ }, 8, ["loading"]));
684
+ }
685
+ }), We = /* @__PURE__ */ R(He, [["__scopeId", "data-v-5772f5d1"]]), Pe = {
686
+ class: "message-panel"
687
+ }, Ge = {
688
+ key: 3,
689
+ class: "message-panel__detail"
690
+ }, Qe = /* @__PURE__ */ $({
691
+ __name: "MessageNotifications",
692
+ setup(a) {
693
+ const t = f(!0), u = f(""), i = f(!1), o = f({
694
+ title: "",
695
+ type: "",
696
+ description: "",
697
+ content: null
698
+ }), l = f(!1), d = f(!1), s = f([]), m = f("unread"), v = f({
699
+ current: 1,
700
+ pageSize: 10,
701
+ total: 0
702
+ }), x = [{
703
+ label: "未读消息",
704
+ key: "unread"
705
+ }, {
706
+ label: "已读消息",
707
+ key: "read"
708
+ }], k = D(() => m.value === "read");
709
+ function I(c) {
710
+ return {
711
+ read: c
712
+ };
713
+ }
714
+ async function w() {
715
+ l.value = !0;
716
+ const {
717
+ data: c,
718
+ error: e
719
+ } = await A().ones.messageCenter.messageNotifications.own.post({
720
+ current: v.value.current,
721
+ pageSize: v.value.pageSize,
722
+ where: I(k.value)
723
+ });
724
+ l.value = !1, !e && c && (s.value = c.items.map((r) => ({
725
+ id: r.id,
726
+ title: r.title,
727
+ description: r.description,
728
+ createAt: r.createAt,
729
+ updateAt: r.updateAt,
730
+ priority: r.priority,
731
+ read: r.read ?? !1,
732
+ readAt: r.readAt ?? null
733
+ })), v.value.total = c.count, d.value = c.items.length < v.value.pageSize);
734
+ }
735
+ async function O() {
736
+ if (l.value || d.value) return;
737
+ v.value.current += 1, l.value = !0;
738
+ const {
739
+ data: c,
740
+ error: e
741
+ } = await A().ones.messageCenter.messageNotifications.own.post({
742
+ current: v.value.current,
743
+ pageSize: v.value.pageSize,
744
+ where: I(k.value)
745
+ });
746
+ if (l.value = !1, !e && c) {
747
+ const r = c.items.map((g) => ({
748
+ id: g.id,
749
+ title: g.title,
750
+ description: g.description,
751
+ createAt: g.createAt,
752
+ updateAt: g.updateAt,
753
+ priority: g.priority,
754
+ read: g.read ?? !1,
755
+ readAt: g.readAt ?? null
756
+ }));
757
+ s.value = [...s.value, ...r], d.value = c.items.length < v.value.pageSize;
758
+ }
759
+ }
760
+ function N() {
761
+ v.value.current = 1, d.value = !1, w();
762
+ }
763
+ async function M() {
764
+ if (s.value.length === 0) return;
765
+ const {
766
+ error: c
767
+ } = await A().ones.messageCenter.messageNotifications.readAll.post({});
768
+ c || w();
769
+ }
770
+ function T() {
771
+ t.value = !0, u.value = "", o.value = {
772
+ title: "",
773
+ type: "",
774
+ description: "",
775
+ content: null
776
+ };
777
+ }
778
+ async function U(c) {
779
+ i.value = !0;
780
+ const {
781
+ data: e,
782
+ error: r
783
+ } = await A().ones.messageCenter.messageNotifications.findOne.post({
784
+ id: c
785
+ });
786
+ i.value = !1, !r && e && (o.value = {
787
+ title: e.title,
788
+ type: e.type ?? "",
789
+ description: e.description ?? "",
790
+ content: e.content ?? null
791
+ });
792
+ }
793
+ async function n(c) {
794
+ if (u.value = c.id, t.value = !1, !c.read) {
795
+ const {
796
+ error: e
797
+ } = await A().ones.messageCenter.messageNotifications.read.post({
798
+ messageId: c.id
799
+ });
800
+ if (e)
801
+ return;
802
+ k.value || (s.value = s.value.filter((r) => r.id !== c.id));
803
+ }
804
+ U(c.id);
805
+ }
806
+ return w(), (c, e) => (p(), S("div", Pe, [t.value ? h("", !0) : (p(), b(_(F), {
807
+ key: 0,
808
+ class: "message-panel__breadcrumb"
809
+ }, {
810
+ default: y(() => [C(_(E), {
811
+ onClick: T
812
+ }, {
813
+ default: y(() => [...e[1] || (e[1] = [z("消息通知", -1)])]),
814
+ _: 1
815
+ }), C(_(E), null, {
816
+ default: y(() => [...e[2] || (e[2] = [z("详情", -1)])]),
817
+ _: 1
818
+ })]),
819
+ _: 1
820
+ })), t.value ? (p(), b(H, {
821
+ key: 1,
822
+ "active-tab": m.value,
823
+ "onUpdate:activeTab": e[0] || (e[0] = (r) => m.value = r),
824
+ tabs: x,
825
+ "message-list": s.value,
826
+ onChange: N,
827
+ onReadAll: M
828
+ }, null, 8, ["active-tab", "message-list"])) : h("", !0), t.value ? (p(), b(q, {
829
+ key: 2,
830
+ "message-list": s.value,
831
+ loading: l.value,
832
+ finished: d.value,
833
+ "show-read-status": !0,
834
+ "show-view-button": !1,
835
+ onItemClick: n,
836
+ onLoadMore: O
837
+ }, {
838
+ tags: y(({
839
+ item: r
840
+ }) => [r.priority === "urgent" ? (p(), b(_(K), {
841
+ key: 0,
842
+ color: "red",
843
+ size: "small"
844
+ }, {
845
+ default: y(() => [...e[3] || (e[3] = [z("紧急", -1)])]),
846
+ _: 1
847
+ })) : r.priority === "high" ? (p(), b(_(K), {
848
+ key: 1,
849
+ color: "orange",
850
+ size: "small"
851
+ }, {
852
+ default: y(() => [...e[4] || (e[4] = [z("高", -1)])]),
853
+ _: 1
854
+ })) : h("", !0)]),
855
+ _: 1
856
+ }, 8, ["message-list", "loading", "finished"])) : (p(), S("div", Ge, [C(We, {
857
+ title: o.value.title,
858
+ type: o.value.type,
859
+ content: o.value.content,
860
+ description: o.value.description,
861
+ loading: i.value
862
+ }, null, 8, ["title", "type", "content", "description", "loading"])]))]));
863
+ }
864
+ }), Xe = {
865
+ class: "message-panel"
866
+ }, Ye = {
867
+ key: 0,
868
+ class: "expire-time"
869
+ }, Ze = {
870
+ key: 3,
871
+ class: "message-panel__detail"
872
+ }, et = /* @__PURE__ */ $({
873
+ __name: "MessageNoticeNotifications",
874
+ setup(a) {
875
+ const t = f(!0), u = f(""), i = f(!1), o = f({
876
+ title: "",
877
+ content: null
878
+ }), l = f(!1), d = f(!1), s = f([]), m = f("unread"), v = f({
879
+ current: 1,
880
+ pageSize: 10,
881
+ total: 0
882
+ }), x = [{
883
+ label: "未读公告",
884
+ key: "unread"
885
+ }, {
886
+ label: "已读公告",
887
+ key: "read"
888
+ }], k = D(() => m.value === "read");
889
+ async function I() {
890
+ l.value = !0;
891
+ const {
892
+ data: e,
893
+ error: r
894
+ } = await A().ones.messageCenter.noticeNotifications.own.post({
895
+ current: v.value.current,
896
+ pageSize: v.value.pageSize,
897
+ where: {
898
+ read: k.value
899
+ }
900
+ });
901
+ l.value = !1, !r && e && (s.value = e.items.map((g) => ({
902
+ id: g.id,
903
+ title: g.title,
904
+ description: g.description,
905
+ createAt: g.createAt,
906
+ updateAt: g.updateAt,
907
+ pinned: g.pinned,
908
+ priority: g.priority,
909
+ displayStatus: g.displayStatus,
910
+ expireAt: g.expireAt,
911
+ requireConfirm: g.requireConfirm,
912
+ read: g.read ?? !1,
913
+ readAt: g.readAt ?? null
914
+ })), v.value.total = e.count, d.value = e.items.length < v.value.pageSize);
915
+ }
916
+ async function w() {
917
+ if (l.value || d.value) return;
918
+ v.value.current += 1, l.value = !0;
919
+ const {
920
+ data: e,
921
+ error: r
922
+ } = await A().ones.messageCenter.noticeNotifications.own.post({
923
+ current: v.value.current,
924
+ pageSize: v.value.pageSize,
925
+ where: {
926
+ read: k.value
927
+ }
928
+ });
929
+ if (l.value = !1, !r && e) {
930
+ const g = e.items.map((L) => ({
931
+ id: L.id,
932
+ title: L.title,
933
+ description: L.description,
934
+ createAt: L.createAt,
935
+ updateAt: L.updateAt,
936
+ pinned: L.pinned,
937
+ priority: L.priority,
938
+ displayStatus: L.displayStatus,
939
+ expireAt: L.expireAt,
940
+ requireConfirm: L.requireConfirm,
941
+ read: L.read ?? !1,
942
+ readAt: L.readAt ?? null
943
+ }));
944
+ s.value = [...s.value, ...g], d.value = e.items.length < v.value.pageSize;
945
+ }
946
+ }
947
+ function O() {
948
+ v.value.current = 1, d.value = !1, I();
949
+ }
950
+ async function N() {
951
+ if (s.value.length === 0) return;
952
+ const {
953
+ error: e
954
+ } = await A().ones.messageCenter.noticeNotifications.readAll.post({});
955
+ e || I();
956
+ }
957
+ function M() {
958
+ t.value = !0, u.value = "", o.value = {
959
+ title: "",
960
+ content: null
961
+ };
962
+ }
963
+ async function T(e) {
964
+ i.value = !0;
965
+ const {
966
+ data: r,
967
+ error: g
968
+ } = await A().ones.messageCenter.noticeNotifications.findOne.post({
969
+ id: e
970
+ });
971
+ i.value = !1, !g && r && (o.value = {
972
+ title: r.title,
973
+ content: r.content
974
+ });
975
+ }
976
+ async function U(e) {
977
+ if (u.value = e.id, t.value = !1, !e.read) {
978
+ const {
979
+ error: r
980
+ } = await A().ones.messageCenter.noticeNotifications.read.post({
981
+ noticeId: e.id
982
+ });
983
+ if (r)
984
+ return;
985
+ k.value || (s.value = s.value.filter((g) => g.id !== e.id));
986
+ }
987
+ T(e.id);
988
+ }
989
+ function n(e) {
990
+ return {
991
+ published: "green",
992
+ expired: "gray"
993
+ }[e] || "gray";
994
+ }
995
+ function c(e) {
996
+ return {
997
+ published: "有效",
998
+ expired: "已过期"
999
+ }[e] || "未知";
1000
+ }
1001
+ return I(), (e, r) => (p(), S("div", Xe, [t.value ? h("", !0) : (p(), b(_(F), {
1002
+ key: 0,
1003
+ class: "message-panel__breadcrumb"
1004
+ }, {
1005
+ default: y(() => [C(_(E), {
1006
+ onClick: M
1007
+ }, {
1008
+ default: y(() => [...r[1] || (r[1] = [z("公告通知", -1)])]),
1009
+ _: 1
1010
+ }), C(_(E), null, {
1011
+ default: y(() => [...r[2] || (r[2] = [z("详情", -1)])]),
1012
+ _: 1
1013
+ })]),
1014
+ _: 1
1015
+ })), t.value ? (p(), b(H, {
1016
+ key: 1,
1017
+ "active-tab": m.value,
1018
+ "onUpdate:activeTab": r[0] || (r[0] = (g) => m.value = g),
1019
+ tabs: x,
1020
+ "message-list": s.value,
1021
+ onChange: O,
1022
+ onReadAll: N
1023
+ }, null, 8, ["active-tab", "message-list"])) : h("", !0), t.value ? (p(), b(q, {
1024
+ key: 2,
1025
+ "message-list": s.value,
1026
+ loading: l.value,
1027
+ finished: d.value,
1028
+ "show-read-status": !0,
1029
+ "show-view-button": !1,
1030
+ onItemClick: U,
1031
+ onLoadMore: w
1032
+ }, {
1033
+ tags: y(({
1034
+ item: g
1035
+ }) => [g.priority === "urgent" ? (p(), b(_(K), {
1036
+ key: 0,
1037
+ color: "red",
1038
+ size: "small"
1039
+ }, {
1040
+ default: y(() => [...r[3] || (r[3] = [z("紧急", -1)])]),
1041
+ _: 1
1042
+ })) : g.priority === "important" ? (p(), b(_(K), {
1043
+ key: 1,
1044
+ color: "orange",
1045
+ size: "small"
1046
+ }, {
1047
+ default: y(() => [...r[4] || (r[4] = [z("重要", -1)])]),
1048
+ _: 1
1049
+ })) : h("", !0), C(_(K), {
1050
+ color: n(g.displayStatus),
1051
+ size: "small"
1052
+ }, {
1053
+ default: y(() => [z(B(c(g.displayStatus)), 1)]),
1054
+ _: 2
1055
+ }, 1032, ["color"])]),
1056
+ footer: y(({
1057
+ item: g
1058
+ }) => [g.expireAt ? (p(), S("span", Ye, B(g.displayStatus === "expired" ? "已过期" : `过期时间: ${g.expireAt}`), 1)) : h("", !0)]),
1059
+ _: 1
1060
+ }, 8, ["message-list", "loading", "finished"])) : (p(), S("div", Ze, [C(G, {
1061
+ title: o.value.title,
1062
+ content: o.value.content,
1063
+ loading: i.value
1064
+ }, null, 8, ["title", "content", "loading"])]))]));
1065
+ }
1066
+ }), tt = /* @__PURE__ */ R(et, [["__scopeId", "data-v-6925da12"]]), at = {
1067
+ class: "user-menu-modal-content"
1068
+ }, nt = {
1069
+ class: "left"
1070
+ }, st = /* @__PURE__ */ $({
1071
+ __name: "MessageAppMessage",
1072
+ props: /* @__PURE__ */ Q({
1073
+ title: {
1074
+ type: String,
1075
+ default: "消息中心"
1076
+ },
1077
+ menus: {
1078
+ type: Array,
1079
+ required: !0
1080
+ }
1081
+ }, {
1082
+ selectedKeys: {
1083
+ default: ["ChangelogNotifications"]
1084
+ },
1085
+ selectedKeysModifiers: {}
1086
+ }),
1087
+ emits: /* @__PURE__ */ Q(["cancel", "change"], ["update:selectedKeys"]),
1088
+ setup(a, {
1089
+ expose: t,
1090
+ emit: u
1091
+ }) {
1092
+ const i = a, o = u, {
1093
+ counts: l,
1094
+ refreshMessageCenterBadgeCounts: d
1095
+ } = ue(), s = D(() => {
1096
+ const N = l.value, M = {
1097
+ ChangelogNotifications: N.changelog,
1098
+ EventNotifications: N.event,
1099
+ MessageNotifications: N.message,
1100
+ NoticeNotifications: N.notice
1101
+ };
1102
+ return i.menus.map((T) => ({
1103
+ ...T,
1104
+ meta: {
1105
+ ...T.meta,
1106
+ badge: M[T.path] ?? 0
1107
+ }
1108
+ }));
1109
+ }), m = oe(a, "selectedKeys"), v = D(() => m.value.length !== 0 ? m.value[0] : "");
1110
+ function x() {
1111
+ o("cancel");
1112
+ }
1113
+ function k(N) {
1114
+ const M = N.path;
1115
+ m.value = [M], o("change", N);
1116
+ }
1117
+ const {
1118
+ changeType: I,
1119
+ show: w
1120
+ } = ve(o);
1121
+ function O(N) {
1122
+ w.value = N, I.value = "编辑", N && d();
1123
+ }
1124
+ return te(m, () => {
1125
+ w.value && window.setTimeout(() => {
1126
+ d();
1127
+ }, 1500);
1128
+ }), t({
1129
+ setData: O
1130
+ }), (N, M) => (p(), b(_(de), {
1131
+ visible: _(w),
1132
+ "onUpdate:visible": M[1] || (M[1] = (T) => le(w) ? w.value = T : null),
1133
+ loading: !1,
1134
+ "body-class": "AppMessagebodyClass",
1135
+ "mask-closable": !1,
1136
+ footer: !1,
1137
+ "hide-title": !1,
1138
+ title: i.title,
1139
+ width: _(re),
1140
+ onCancel: x
1141
+ }, {
1142
+ default: y(() => [V("div", at, [V("div", nt, [C(ye, {
1143
+ "selected-keys": m.value,
1144
+ "onUpdate:selectedKeys": M[0] || (M[0] = (T) => m.value = T),
1145
+ menus: s.value,
1146
+ onChange: k
1147
+ }, null, 8, ["selected-keys", "menus"])]), _(w) ? (p(), S(Z, {
1148
+ key: 0
1149
+ }, [v.value === "ChangelogNotifications" ? (p(), b(Oe, {
1150
+ key: 0
1151
+ })) : h("", !0), v.value === "EventNotifications" ? (p(), b(je, {
1152
+ key: 1
1153
+ })) : h("", !0), v.value === "MessageNotifications" ? (p(), b(Qe, {
1154
+ key: 2
1155
+ })) : h("", !0), v.value === "NoticeNotifications" ? (p(), b(tt, {
1156
+ key: 3
1157
+ })) : h("", !0)], 64)) : h("", !0)])]),
1158
+ _: 1
1159
+ }, 8, ["visible", "title", "width"]));
1160
+ }
1161
+ }), it = /* @__PURE__ */ $({
1162
+ __name: "MessageHandle",
1163
+ setup(a, {
1164
+ expose: t
1165
+ }) {
1166
+ const u = f(["ChangelogNotifications"]), i = f(), o = f(Symbol("key"));
1167
+ function l() {
1168
+ i.value.setData(!0);
1169
+ }
1170
+ function d() {
1171
+ o.value = Symbol("key");
1172
+ }
1173
+ function s() {
1174
+ o.value = Symbol("key");
1175
+ }
1176
+ const m = f([{
1177
+ name: "功能变更",
1178
+ path: "ChangelogNotifications",
1179
+ meta: {
1180
+ icon: "mingcute:cube-3d-fill"
1181
+ }
1182
+ }, {
1183
+ name: "活动通知",
1184
+ path: "EventNotifications",
1185
+ meta: {
1186
+ icon: "mingcute:receive-money-fill"
1187
+ }
1188
+ }, {
1189
+ name: "消息通知",
1190
+ path: "MessageNotifications",
1191
+ meta: {
1192
+ icon: "mingcute:message-1-fill"
1193
+ }
1194
+ }, {
1195
+ name: "公告",
1196
+ path: "NoticeNotifications",
1197
+ meta: {
1198
+ icon: "mingcute:announcement-fill"
1199
+ }
1200
+ }]);
1201
+ return t({
1202
+ openNotification: l
1203
+ }), (v, x) => (p(), b(st, {
1204
+ ref_key: "MessageNotificationsRef",
1205
+ ref: i,
1206
+ key: o.value,
1207
+ "selected-keys": u.value,
1208
+ "onUpdate:selectedKeys": x[0] || (x[0] = (k) => u.value = k),
1209
+ menus: m.value,
1210
+ title: "消息中心",
1211
+ onConfirm: s,
1212
+ onCancel: d
1213
+ }, null, 8, ["selected-keys", "menus"]));
1214
+ }
1215
+ }), Ct = /* @__PURE__ */ R(it, [["__scopeId", "data-v-2e2a72d0"]]);
1216
+ export {
1217
+ Oe as C,
1218
+ G as D,
1219
+ je as E,
1220
+ Ct as M,
1221
+ tt as N,
1222
+ st as _,
1223
+ ke as a,
1224
+ Te as b,
1225
+ Re as c,
1226
+ We as d,
1227
+ Qe as e,
1228
+ H as f,
1229
+ Ce as g,
1230
+ ht as h,
1231
+ At as l,
1232
+ bt as r
1233
+ };