@huyooo/ui 0.4.34 → 0.4.35

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 (61) hide show
  1. package/dist/{AuthkitAppSetting-DqhUivnU.js → AuthkitAppSetting-D6PAh-ZI.js} +216 -215
  2. package/dist/{AuthkitAuthorize-f_yAVn7e.js → AuthkitAuthorize-DKG7JGSV.js} +4 -4
  3. package/dist/{FeedbackItem-DJiIQBMe.js → FeedbackItem-BO8dYYKo.js} +3 -7
  4. package/dist/FeedbackModal-B_W_RWec.js +1061 -0
  5. package/dist/MessageHandle-Dt6rb0rg.js +830 -0
  6. package/dist/{PaySubscriptions-foEcT6VN.js → PaySubscriptions-B42IdT-5.js} +59 -58
  7. package/dist/ReferrerReferees-CvuUodDZ.js +116 -0
  8. package/dist/{Upload.vue_vue_type_script_setup_true_lang-C2OaTrku.js → Upload.vue_vue_type_script_setup_true_lang-Bw3IlEUj.js} +4 -4
  9. package/dist/{UserPanel-CA3roDgH.js → UserPanel-BIKWssEY.js} +169 -174
  10. package/dist/api/Authkit/apps.d.ts +1 -1
  11. package/dist/api/Buckets/Files.d.ts +7 -7
  12. package/dist/api/Buckets.d.ts +2 -2
  13. package/dist/api/Message/ChangelogNotifications.d.ts +2 -2
  14. package/dist/api/Message/EventNotifications.d.ts +2 -2
  15. package/dist/api/Message/MessageNotifications.d.ts +5 -5
  16. package/dist/api/Message/NoticeNotifications.d.ts +2 -2
  17. package/dist/api/Messages.d.ts +2 -2
  18. package/dist/api/Referrer.d.ts +1 -1
  19. package/dist/api/index.d.ts +8 -8
  20. package/dist/authkit.js +4 -4
  21. package/dist/common/globalConfig.d.ts +15 -0
  22. package/dist/common.d.ts +1 -1
  23. package/dist/common.js +21 -19
  24. package/dist/components/Feedback/FeedbackContainer.vue.d.ts +0 -8
  25. package/dist/components/Feedback/FeedbackDetails.vue.d.ts +1 -1
  26. package/dist/components/Feedback/FeedbackForm.vue.d.ts +2 -20
  27. package/dist/components/Message/MessageAppMessage.vue.d.ts +1 -24
  28. package/dist/components/Message/MessageChangelogNotifications.vue.d.ts +1 -11
  29. package/dist/components/Message/MessageChangelogNotificationsDetails.vue.d.ts +0 -8
  30. package/dist/components/Message/MessageEventNotifications.vue.d.ts +1 -11
  31. package/dist/components/Message/MessageEventNotificationsDetails.vue.d.ts +0 -8
  32. package/dist/components/Message/MessageHandle.vue.d.ts +28 -88
  33. package/dist/components/Message/MessageNoticeNotifications.vue.d.ts +1 -11
  34. package/dist/components/Message/MessageNoticeNotificationsDetails.vue.d.ts +0 -8
  35. package/dist/components/Message/MessageNotifications.vue.d.ts +1 -11
  36. package/dist/components/Referrer/ReferrerReferees.vue.d.ts +2 -12
  37. package/dist/components/User/UserPanel.vue.d.ts +30 -100
  38. package/dist/composables/useMessageNotifications.d.ts +1 -1
  39. package/dist/composables.d.ts +1 -1
  40. package/dist/composables.js +16 -15
  41. package/dist/feedback.js +2 -2
  42. package/dist/globalConfig-dtNQA0ZH.js +15 -0
  43. package/dist/index.js +27 -25
  44. package/dist/message.js +2 -2
  45. package/dist/pay.js +1 -1
  46. package/dist/referrer.js +1 -1
  47. package/dist/style.css +1 -1
  48. package/dist/upload.js +2 -2
  49. package/dist/{useAuthkitAuthModal-OkUKCIWR.js → useAuthkitAuthModal-C153ZpNb.js} +14 -13
  50. package/dist/useAuthkitUsersProfile-CT2MN1S5.js +228 -0
  51. package/dist/useMessageNotifications-DkKSVkdt.js +106 -0
  52. package/dist/{useUploadCos-uerXQY3P.js → useUploadCos-C3ts0Gpa.js} +1481 -1499
  53. package/dist/user.d.ts +0 -1
  54. package/dist/user.js +4 -6
  55. package/package.json +1 -1
  56. package/dist/FeedbackModal-D7gtWqMr.js +0 -1077
  57. package/dist/MessageHandle-DN_JsQb2.js +0 -885
  58. package/dist/ReferrerReferees-DxNJ2ETq.js +0 -121
  59. package/dist/composables/useGlobalConfig.d.ts +0 -20
  60. package/dist/useAuthkitUsersProfile-Diituvy1.js +0 -227
  61. package/dist/useMessageNotifications-lmP0vJDM.js +0 -105
@@ -0,0 +1,830 @@
1
+ import { defineComponent as b, ref as r, createBlock as p, openBlock as l, unref as u, withCtx as y, createVNode as v, createCommentVNode as _, createElementBlock as g, Fragment as T, renderList as z, createElementVNode as $, renderSlot as I, toDisplayString as L, createTextVNode as N, withModifiers as q, normalizeClass as E, watch as R, isRef as F, mergeModels as w, useModel as H, computed as j } from "vue";
2
+ /* empty css */
3
+ /* empty css */
4
+ /* empty css */
5
+ /* empty css */
6
+ import { Spin as V, Empty as K, Button as G, Divider as J, Breadcrumb as O, BreadcrumbItem as x, Modal as P } from "@arco-design/web-vue";
7
+ import { api as S } from "@huyooo/api";
8
+ import { g as D } from "./globalConfig-dtNQA0ZH.js";
9
+ import { TiptapEditor as Q, TiptapTitle as W } from "@huyooo/vue-tiptap";
10
+ import { _ as C } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
+ /* empty css */
12
+ import { useIntersectionObserver as X } from "@vueuse/core";
13
+ import { u as Y } from "./useMessageNotifications-DkKSVkdt.js";
14
+ import { Icon as Z } from "@iconify/vue";
15
+ import { u as ee } from "./useAuthkitCreateAndUpdate-BpPW409v.js";
16
+ import { M as te } from "./Menu-Cxo8Rpu3.js";
17
+ function ne(a) {
18
+ return S({
19
+ url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/find`,
20
+ method: "post",
21
+ data: a
22
+ });
23
+ }
24
+ function se(a) {
25
+ return S({
26
+ url: `${D.prefixUrl}/restfulApi/messageCenter/changelogNotifications/findOne`,
27
+ method: "post",
28
+ data: a
29
+ });
30
+ }
31
+ const ie = /* @__PURE__ */ b({
32
+ __name: "MessageDetails",
33
+ props: {
34
+ content: {
35
+ type: Object,
36
+ default: null
37
+ },
38
+ title: {
39
+ type: String,
40
+ required: !0
41
+ },
42
+ loading: {
43
+ type: Boolean,
44
+ default: !1
45
+ }
46
+ },
47
+ emits: ["itemClick", "tableOfContentsUpdate", "update:title", "update:content"],
48
+ setup(a, {
49
+ emit: i
50
+ }) {
51
+ const o = r([]), c = a, n = r(!1), e = i, t = r();
52
+ function s(f) {
53
+ o.value = f, e("tableOfContentsUpdate", f);
54
+ }
55
+ return (f, h) => (l(), p(u(V), {
56
+ loading: c.loading,
57
+ tip: "文档加载中...",
58
+ class: "Spin",
59
+ dot: ""
60
+ }, {
61
+ default: y(() => [v(u(Q), {
62
+ ref_key: "TiptapEditorRef",
63
+ ref: t,
64
+ "model-value": c.content,
65
+ editable: n.value,
66
+ "tiptap-editor-content-class": "tiptapEditorContentClass",
67
+ onTableOfContentsUpdate: s
68
+ }, {
69
+ title: y(() => [v(u(W), {
70
+ "model-value": c.title,
71
+ editable: n.value
72
+ }, null, 8, ["model-value", "editable"])]),
73
+ _: 1
74
+ }, 8, ["model-value", "editable"]), _("", !0)]),
75
+ _: 1
76
+ }, 8, ["loading"]));
77
+ }
78
+ }), U = /* @__PURE__ */ C(ie, [["__scopeId", "data-v-8eec0226"]]), ae = /* @__PURE__ */ b({
79
+ __name: "MessageChangelogNotificationsDetails",
80
+ props: {
81
+ id: {
82
+ type: String,
83
+ required: !0
84
+ }
85
+ },
86
+ setup(a) {
87
+ const i = r(!1), o = r(null), c = r(""), n = a;
88
+ function e() {
89
+ i.value = !0, se({
90
+ id: n.id
91
+ }).then(({
92
+ data: t
93
+ }) => {
94
+ o.value = t.content, c.value = t.title, i.value = !1;
95
+ }).catch((t) => {
96
+ console.error("获取变更日志详情失败:", t), i.value = !1;
97
+ });
98
+ }
99
+ return e(), (t, s) => (l(), p(U, {
100
+ content: o.value,
101
+ title: c.value,
102
+ loading: i.value
103
+ }, null, 8, ["content", "title", "loading"]));
104
+ }
105
+ }), oe = {
106
+ key: 0,
107
+ class: "loading"
108
+ }, le = {
109
+ key: 1,
110
+ class: "none"
111
+ }, ue = /* @__PURE__ */ b({
112
+ __name: "InfiniteLoading",
113
+ props: {
114
+ loading: {
115
+ type: Boolean,
116
+ default: !1
117
+ },
118
+ finished: {
119
+ type: Boolean,
120
+ default: !1
121
+ },
122
+ loadingText: {
123
+ type: String,
124
+ default: "数据加载中..."
125
+ },
126
+ finishedText: {
127
+ type: String,
128
+ default: "亲,没有更多了!"
129
+ },
130
+ showFinishedText: {
131
+ type: Boolean,
132
+ default: !0
133
+ },
134
+ threshold: {
135
+ type: Number,
136
+ default: 0
137
+ }
138
+ },
139
+ emits: ["infinite"],
140
+ setup(a, {
141
+ emit: i
142
+ }) {
143
+ const o = a, c = i, n = r(null);
144
+ return X(n, ([{
145
+ isIntersecting: e
146
+ }]) => {
147
+ e && // 当loading和finished的值都为false时,就通知父组件调用方法继续向后台请求数据
148
+ !o.loading && !o.finished && c("infinite");
149
+ }, {
150
+ threshold: o.threshold
151
+ }), (e, t) => (l(), g("div", {
152
+ ref_key: "container",
153
+ ref: n,
154
+ class: "infinite-loading"
155
+ }, [a.loading ? (l(), g("div", oe, [v(u(V), {
156
+ tip: a.loadingText
157
+ }, null, 8, ["tip"])])) : _("", !0), a.finished && a.showFinishedText ? (l(), g("div", le, [v(u(K), {
158
+ description: a.finishedText
159
+ }, null, 8, ["description"])])) : _("", !0)], 512));
160
+ }
161
+ }), ce = /* @__PURE__ */ C(ue, [["__scopeId", "data-v-b513f798"]]), re = {
162
+ class: "message-list-container"
163
+ }, de = {
164
+ key: 0,
165
+ class: "empty-wrapper"
166
+ }, fe = {
167
+ class: "messsageItemBody"
168
+ }, pe = {
169
+ class: "messageBody"
170
+ }, ge = {
171
+ class: "messageHeader"
172
+ }, me = {
173
+ key: 1,
174
+ class: "title"
175
+ }, ve = {
176
+ class: "description"
177
+ }, _e = {
178
+ class: "createAt"
179
+ }, ye = {
180
+ class: "messageHandle"
181
+ }, he = /* @__PURE__ */ b({
182
+ __name: "MessageList",
183
+ props: {
184
+ messageList: {
185
+ type: Array,
186
+ required: !0
187
+ },
188
+ loading: {
189
+ type: Boolean,
190
+ default: !1
191
+ },
192
+ finished: {
193
+ type: Boolean,
194
+ default: !1
195
+ },
196
+ showButton: {
197
+ type: Boolean,
198
+ default: !0
199
+ }
200
+ },
201
+ emits: ["openDetails", "infinite"],
202
+ setup(a, {
203
+ emit: i
204
+ }) {
205
+ const o = a, c = i;
206
+ function n(e, t) {
207
+ c("openDetails", e, t);
208
+ }
209
+ return (e, t) => (l(), g("div", re, [o.messageList.length === 0 ? (l(), g("div", de, [v(u(K), {
210
+ description: "暂无消息"
211
+ })])) : (l(), g(T, {
212
+ key: 1
213
+ }, [(l(!0), g(T, null, z(o.messageList, (s, f) => (l(), g("div", {
214
+ key: f,
215
+ class: "messageItem"
216
+ }, [$("span", fe, [$("span", pe, [$("span", ge, [e.$slots.title ? I(e.$slots, "title", {
217
+ key: 0,
218
+ item: s,
219
+ index: f
220
+ }, void 0, !0) : (l(), g("span", me, L(s.title), 1))]), $("span", ve, [e.$slots.description ? I(e.$slots, "description", {
221
+ key: 0,
222
+ item: s,
223
+ index: f
224
+ }, void 0, !0) : (l(), g(T, {
225
+ key: 1
226
+ }, [N(L(s.description), 1)], 64))]), $("span", _e, [e.$slots.createAt ? I(e.$slots, "createAt", {
227
+ key: 0,
228
+ item: s,
229
+ index: f
230
+ }, void 0, !0) : (l(), g(T, {
231
+ key: 1
232
+ }, [N(L(s.createAt), 1)], 64))])]), $("span", ye, [e.$slots.handle ? I(e.$slots, "handle", {
233
+ key: 0,
234
+ item: s,
235
+ index: f
236
+ }, void 0, !0) : o.showButton ? (l(), p(u(G), {
237
+ key: 1,
238
+ type: "text",
239
+ onClick: q((h) => n(s, f), ["stop"])
240
+ }, {
241
+ default: y(() => t[1] || (t[1] = [N("查看")])),
242
+ _: 2,
243
+ __: [1]
244
+ }, 1032, ["onClick"])) : _("", !0)])]), v(u(J), {
245
+ style: {
246
+ margin: "0px"
247
+ }
248
+ })]))), 128)), v(ce, {
249
+ loading: o.loading,
250
+ finished: o.finished,
251
+ onInfinite: t[0] || (t[0] = (s) => e.$emit("infinite"))
252
+ }, null, 8, ["loading", "finished"])], 64))]));
253
+ }
254
+ }), B = /* @__PURE__ */ C(he, [["__scopeId", "data-v-7b39af6e"]]), be = {
255
+ class: "right"
256
+ }, ke = /* @__PURE__ */ b({
257
+ __name: "MessageChangelogNotifications",
258
+ setup(a) {
259
+ const i = r(!0), o = r();
260
+ function c() {
261
+ i.value = !0;
262
+ }
263
+ const n = r(!1), e = r(!1), t = r([]), s = r({
264
+ total: 0,
265
+ current: 1,
266
+ pageSize: 10
267
+ });
268
+ function f() {
269
+ n.value = !0, ne({
270
+ current: s.value.current,
271
+ pageSize: s.value.pageSize,
272
+ where: {}
273
+ }).then(({
274
+ data: d
275
+ }) => {
276
+ n.value = !1, t.value = d.items, s.value.total = d.count, e.value = d.items.length < s.value.pageSize;
277
+ }).catch(() => {
278
+ n.value = !1;
279
+ });
280
+ }
281
+ function h(d) {
282
+ console.log(d, "itemitem"), o.value = d.id, i.value = !1;
283
+ }
284
+ return f(), (d, m) => (l(), g("div", be, [i.value ? _("", !0) : (l(), p(u(O), {
285
+ key: 0,
286
+ style: {
287
+ "margin-bottom": "10px",
288
+ cursor: "pointer"
289
+ }
290
+ }, {
291
+ default: y(() => [v(u(x), {
292
+ style: {
293
+ padding: "0px"
294
+ },
295
+ onClick: c
296
+ }, {
297
+ default: y(() => m[0] || (m[0] = [N("功能变更")])),
298
+ _: 1,
299
+ __: [0]
300
+ }), v(u(x), {
301
+ style: {
302
+ padding: "0px"
303
+ }
304
+ }, {
305
+ default: y(() => m[1] || (m[1] = [N("详情")])),
306
+ _: 1,
307
+ __: [1]
308
+ })]),
309
+ _: 1
310
+ })), i.value ? (l(), p(B, {
311
+ key: 1,
312
+ "message-list": t.value,
313
+ loading: n.value,
314
+ finished: e.value,
315
+ onOpenDetails: h,
316
+ onInfinite: f
317
+ }, null, 8, ["message-list", "loading", "finished"])) : (l(), p(ae, {
318
+ key: 2,
319
+ id: o.value
320
+ }, null, 8, ["id"]))]));
321
+ }
322
+ }), Ne = /* @__PURE__ */ C(ke, [["__scopeId", "data-v-e755c9b4"]]);
323
+ function Ce(a) {
324
+ return S({
325
+ url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/find`,
326
+ method: "post",
327
+ data: a
328
+ });
329
+ }
330
+ function $e(a) {
331
+ return S({
332
+ url: `${D.prefixUrl}/restfulApi/messageCenter/eventNotifications/findOne`,
333
+ method: "post",
334
+ data: a
335
+ });
336
+ }
337
+ const xe = /* @__PURE__ */ b({
338
+ __name: "MessageEventNotificationsDetails",
339
+ props: {
340
+ id: {
341
+ type: String,
342
+ required: !0
343
+ }
344
+ },
345
+ setup(a) {
346
+ const i = r(!1), o = r(null), c = r(""), n = a;
347
+ function e() {
348
+ i.value = !0, $e({
349
+ id: n.id
350
+ }).then(({
351
+ data: t
352
+ }) => {
353
+ o.value = t.content, c.value = t.title, i.value = !1;
354
+ }).catch((t) => {
355
+ console.error("获取事件通知详情失败:", t), i.value = !1;
356
+ });
357
+ }
358
+ return e(), (t, s) => (l(), p(U, {
359
+ content: o.value,
360
+ title: c.value,
361
+ loading: i.value
362
+ }, null, 8, ["content", "title", "loading"]));
363
+ }
364
+ }), Me = {
365
+ class: "right"
366
+ }, Ae = /* @__PURE__ */ b({
367
+ __name: "MessageEventNotifications",
368
+ setup(a) {
369
+ const i = r(!0), o = r();
370
+ function c() {
371
+ i.value = !0;
372
+ }
373
+ const n = r(!1), e = r(!1), t = r([]), s = r({
374
+ total: 0,
375
+ current: 1,
376
+ pageSize: 10
377
+ });
378
+ function f() {
379
+ n.value = !0, Ce({
380
+ current: s.value.current,
381
+ pageSize: s.value.pageSize,
382
+ where: {}
383
+ }).then(({
384
+ data: d
385
+ }) => {
386
+ n.value = !1, t.value = d.items, s.value.total = d.count, e.value = d.items.length < s.value.pageSize;
387
+ }).catch(() => {
388
+ n.value = !1;
389
+ });
390
+ }
391
+ function h(d) {
392
+ o.value = d.id, i.value = !1;
393
+ }
394
+ return f(), (d, m) => (l(), g("div", Me, [i.value ? _("", !0) : (l(), p(u(O), {
395
+ key: 0,
396
+ style: {
397
+ "margin-bottom": "10px",
398
+ cursor: "pointer"
399
+ }
400
+ }, {
401
+ default: y(() => [v(u(x), {
402
+ style: {
403
+ padding: "0px"
404
+ },
405
+ onClick: c
406
+ }, {
407
+ default: y(() => m[0] || (m[0] = [N("活动通知")])),
408
+ _: 1,
409
+ __: [0]
410
+ }), v(u(x), {
411
+ style: {
412
+ padding: "0px"
413
+ }
414
+ }, {
415
+ default: y(() => m[1] || (m[1] = [N("详情")])),
416
+ _: 1,
417
+ __: [1]
418
+ })]),
419
+ _: 1
420
+ })), i.value ? (l(), p(B, {
421
+ key: 1,
422
+ "message-list": t.value,
423
+ loading: n.value,
424
+ finished: e.value,
425
+ onOpenDetails: h,
426
+ onInfinite: f
427
+ }, null, 8, ["message-list", "loading", "finished"])) : (l(), p(xe, {
428
+ key: 2,
429
+ id: o.value
430
+ }, null, 8, ["id"]))]));
431
+ }
432
+ }), Te = /* @__PURE__ */ C(Ae, [["__scopeId", "data-v-d7c05b07"]]), Se = {
433
+ style: {
434
+ display: "flex",
435
+ gap: "16px"
436
+ }
437
+ }, De = ["onClick"], Ie = /* @__PURE__ */ b({
438
+ __name: "MessageCustomTabs",
439
+ props: {
440
+ modelValue: {
441
+ type: String,
442
+ default: "1"
443
+ },
444
+ tabs: {
445
+ type: Array,
446
+ default: () => [{
447
+ label: "未读消息",
448
+ key: "1"
449
+ }, {
450
+ label: "已读消息",
451
+ key: "2"
452
+ }]
453
+ }
454
+ },
455
+ emits: ["update:modelValue", "change"],
456
+ setup(a, {
457
+ emit: i
458
+ }) {
459
+ const o = a, c = i;
460
+ function n(e) {
461
+ e !== o.modelValue && (c("update:modelValue", e), c("change", e));
462
+ }
463
+ return (e, t) => (l(), g("div", Se, [(l(!0), g(T, null, z(a.tabs, (s) => (l(), g("span", {
464
+ key: s.key,
465
+ class: E(["custom-tab", [{
466
+ active: a.modelValue === s.key
467
+ }]]),
468
+ onClick: (f) => n(s.key)
469
+ }, L(s.label), 11, De))), 128))]));
470
+ }
471
+ }), Le = /* @__PURE__ */ C(Ie, [["__scopeId", "data-v-fafcc3ad"]]), Oe = {
472
+ class: "tabs"
473
+ }, Be = /* @__PURE__ */ b({
474
+ __name: "MessageTabs",
475
+ props: {
476
+ tabs: {
477
+ type: Array,
478
+ required: !0
479
+ },
480
+ messageList: {
481
+ type: Array,
482
+ required: !0
483
+ },
484
+ activeTab: {
485
+ type: String,
486
+ required: !0
487
+ }
488
+ },
489
+ emits: ["update:activeTab", "change", "readAll"],
490
+ setup(a, {
491
+ emit: i
492
+ }) {
493
+ const o = a, c = i, n = r(o.activeTab);
494
+ R(() => o.activeTab, (s) => {
495
+ n.value = s;
496
+ });
497
+ function e(s) {
498
+ n.value = s, c("update:activeTab", s), c("change", s);
499
+ }
500
+ function t() {
501
+ o.messageList.length !== 0 && c("readAll");
502
+ }
503
+ return (s, f) => (l(), g("div", Oe, [v(Le, {
504
+ modelValue: n.value,
505
+ "onUpdate:modelValue": f[0] || (f[0] = (h) => n.value = h),
506
+ tabs: a.tabs,
507
+ onChange: e
508
+ }, null, 8, ["modelValue", "tabs"]), n.value === "unread" ? (l(), g("div", {
509
+ key: 0,
510
+ class: E(["readAll", {
511
+ disabled: a.messageList.length === 0
512
+ }]),
513
+ onClick: t
514
+ }, [v(u(Z), {
515
+ class: "icon",
516
+ icon: "icon-park-outline:clear"
517
+ }), f[1] || (f[1] = $("span", null, " 全部已读", -1))], 2)) : _("", !0)]));
518
+ }
519
+ }), Ue = /* @__PURE__ */ C(Be, [["__scopeId", "data-v-91277265"]]), we = {
520
+ class: "right"
521
+ }, ze = /* @__PURE__ */ b({
522
+ __name: "MessageNotifications",
523
+ setup(a) {
524
+ const {
525
+ isList: i,
526
+ loading: o,
527
+ finished: c,
528
+ messageList: n,
529
+ activeTab: e,
530
+ tabs: t,
531
+ toList: s,
532
+ onTabChange: f,
533
+ readAll: h,
534
+ getData: d,
535
+ openDetails: m
536
+ } = Y("system");
537
+ return (A, k) => (l(), g("div", we, [u(i) ? _("", !0) : (l(), p(u(O), {
538
+ key: 0,
539
+ style: {
540
+ "margin-bottom": "10px",
541
+ cursor: "pointer"
542
+ }
543
+ }, {
544
+ default: y(() => [v(u(x), {
545
+ style: {
546
+ padding: "0px"
547
+ },
548
+ onClick: u(s)
549
+ }, {
550
+ default: y(() => k[1] || (k[1] = [N("消息通知")])),
551
+ _: 1,
552
+ __: [1]
553
+ }, 8, ["onClick"]), v(u(x), {
554
+ style: {
555
+ padding: "0px"
556
+ }
557
+ }, {
558
+ default: y(() => k[2] || (k[2] = [N("详情")])),
559
+ _: 1,
560
+ __: [2]
561
+ })]),
562
+ _: 1
563
+ })), u(i) ? (l(), p(Ue, {
564
+ key: 1,
565
+ "active-tab": u(e),
566
+ "onUpdate:activeTab": k[0] || (k[0] = (M) => F(e) ? e.value = M : null),
567
+ tabs: u(t),
568
+ "message-list": u(n),
569
+ onChange: u(f),
570
+ onReadAll: u(h)
571
+ }, null, 8, ["active-tab", "tabs", "message-list", "onChange", "onReadAll"])) : _("", !0), u(i) ? (l(), p(B, {
572
+ key: 2,
573
+ "message-list": u(n),
574
+ loading: u(o),
575
+ finished: u(c),
576
+ "show-button": !1,
577
+ onOpenDetails: u(m),
578
+ onInfinite: u(d)
579
+ }, null, 8, ["message-list", "loading", "finished", "onOpenDetails", "onInfinite"])) : _("", !0)]));
580
+ }
581
+ }), Ee = /* @__PURE__ */ C(ze, [["__scopeId", "data-v-7310aa38"]]);
582
+ function Fe(a) {
583
+ return S({
584
+ url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/find`,
585
+ method: "post",
586
+ data: a
587
+ });
588
+ }
589
+ function Ve(a) {
590
+ return S({
591
+ url: `${D.prefixUrl}/restfulApi/messageCenter/noticeNotifications/findOne`,
592
+ method: "post",
593
+ data: a
594
+ });
595
+ }
596
+ const Ke = /* @__PURE__ */ b({
597
+ __name: "MessageNoticeNotificationsDetails",
598
+ props: {
599
+ id: {
600
+ type: String,
601
+ required: !0
602
+ }
603
+ },
604
+ setup(a) {
605
+ const i = r(!1), o = r(null), c = r(""), n = a;
606
+ function e() {
607
+ i.value = !0, Ve({
608
+ id: n.id
609
+ }).then(({
610
+ data: t
611
+ }) => {
612
+ o.value = t.content, c.value = t.title, i.value = !1;
613
+ }).catch((t) => {
614
+ console.error("获取通知详情失败:", t), i.value = !1;
615
+ });
616
+ }
617
+ return e(), (t, s) => (l(), p(U, {
618
+ content: o.value,
619
+ title: c.value,
620
+ loading: i.value
621
+ }, null, 8, ["content", "title", "loading"]));
622
+ }
623
+ }), qe = {
624
+ class: "right"
625
+ }, Re = /* @__PURE__ */ b({
626
+ __name: "MessageNoticeNotifications",
627
+ setup(a) {
628
+ const i = r(), o = r(!0);
629
+ function c() {
630
+ o.value = !0;
631
+ }
632
+ const n = r(!1), e = r(!1), t = r([]), s = r({
633
+ total: 0,
634
+ current: 1,
635
+ pageSize: 10
636
+ });
637
+ function f() {
638
+ n.value = !0, Fe({
639
+ current: s.value.current,
640
+ pageSize: s.value.pageSize,
641
+ where: {}
642
+ }).then(({
643
+ data: d
644
+ }) => {
645
+ n.value = !1, t.value = d.items, s.value.total = d.count, e.value = d.items.length < s.value.pageSize;
646
+ }).catch(() => {
647
+ n.value = !1;
648
+ });
649
+ }
650
+ function h(d) {
651
+ i.value = d.id, o.value = !1;
652
+ }
653
+ return f(), (d, m) => (l(), g("div", qe, [o.value ? _("", !0) : (l(), p(u(O), {
654
+ key: 0,
655
+ style: {
656
+ "margin-bottom": "10px",
657
+ cursor: "pointer"
658
+ }
659
+ }, {
660
+ default: y(() => [v(u(x), {
661
+ style: {
662
+ padding: "0px"
663
+ },
664
+ onClick: c
665
+ }, {
666
+ default: y(() => m[0] || (m[0] = [N("公告")])),
667
+ _: 1,
668
+ __: [0]
669
+ }), v(u(x), {
670
+ style: {
671
+ padding: "0px"
672
+ }
673
+ }, {
674
+ default: y(() => m[1] || (m[1] = [N("详情")])),
675
+ _: 1,
676
+ __: [1]
677
+ })]),
678
+ _: 1
679
+ })), o.value ? (l(), p(B, {
680
+ key: 1,
681
+ "message-list": t.value,
682
+ loading: n.value,
683
+ finished: e.value,
684
+ onOpenDetails: h,
685
+ onInfinite: f
686
+ }, null, 8, ["message-list", "loading", "finished"])) : (l(), p(Ke, {
687
+ key: 2,
688
+ id: i.value
689
+ }, null, 8, ["id"]))]));
690
+ }
691
+ }), He = /* @__PURE__ */ C(Re, [["__scopeId", "data-v-cacc5d25"]]), je = {
692
+ class: "content"
693
+ }, Ge = {
694
+ class: "left"
695
+ }, Je = /* @__PURE__ */ b({
696
+ __name: "MessageAppMessage",
697
+ props: /* @__PURE__ */ w({
698
+ menus: {
699
+ type: Array,
700
+ required: !0
701
+ }
702
+ }, {
703
+ selectedKeys: {
704
+ default: ["ChangelogNotifications"]
705
+ },
706
+ selectedKeysModifiers: {}
707
+ }),
708
+ emits: /* @__PURE__ */ w(["cancel", "change"], ["update:selectedKeys"]),
709
+ setup(a, {
710
+ expose: i,
711
+ emit: o
712
+ }) {
713
+ const c = a, n = o, e = H(a, "selectedKeys"), t = j(() => e.value.length !== 0 ? e.value[0] : "");
714
+ function s() {
715
+ n("cancel");
716
+ }
717
+ function f(A, k) {
718
+ const M = A.path;
719
+ e.value = [M], n("change", A, k);
720
+ }
721
+ const {
722
+ changeType: h,
723
+ show: d
724
+ } = ee(n);
725
+ function m(A) {
726
+ d.value = A, h.value = "编辑";
727
+ }
728
+ return i({
729
+ setData: m
730
+ }), (A, k) => (l(), p(u(P), {
731
+ visible: u(d),
732
+ "onUpdate:visible": k[1] || (k[1] = (M) => F(d) ? d.value = M : null),
733
+ loading: !1,
734
+ "body-class": "AppMessagebodyClass",
735
+ "mask-closable": !1,
736
+ footer: !1,
737
+ "hide-title": !1,
738
+ width: "880px",
739
+ onCancel: s
740
+ }, {
741
+ default: y(() => [$("div", je, [$("div", Ge, [v(te, {
742
+ "selected-keys": e.value,
743
+ "onUpdate:selectedKeys": k[0] || (k[0] = (M) => e.value = M),
744
+ menus: c.menus,
745
+ onChange: f
746
+ }, null, 8, ["selected-keys", "menus"])]), u(d) ? (l(), g(T, {
747
+ key: 0
748
+ }, [t.value === "ChangelogNotifications" ? (l(), p(Ne, {
749
+ key: 0
750
+ })) : _("", !0), t.value === "EventNotifications" ? (l(), p(Te, {
751
+ key: 1
752
+ })) : _("", !0), t.value === "MessageNotifications" ? (l(), p(Ee, {
753
+ key: 2
754
+ })) : _("", !0), t.value === "NoticeNotifications" ? (l(), p(He, {
755
+ key: 3
756
+ })) : _("", !0)], 64)) : _("", !0)])]),
757
+ _: 1
758
+ }, 8, ["visible"]));
759
+ }
760
+ }), Pe = /* @__PURE__ */ C(Je, [["__scopeId", "data-v-8f921467"]]), Qe = /* @__PURE__ */ b({
761
+ __name: "MessageHandle",
762
+ setup(a, {
763
+ expose: i
764
+ }) {
765
+ const o = r(["ChangelogNotifications"]), c = r(), n = r(Symbol("key"));
766
+ function e() {
767
+ c.value.setData(!0);
768
+ }
769
+ function t() {
770
+ n.value = Symbol("key");
771
+ }
772
+ function s() {
773
+ n.value = Symbol("key");
774
+ }
775
+ const f = r([{
776
+ name: "功能变更",
777
+ path: "ChangelogNotifications",
778
+ meta: {
779
+ icon: "mingcute:cube-3d-fill"
780
+ }
781
+ }, {
782
+ name: "活动通知",
783
+ path: "EventNotifications",
784
+ meta: {
785
+ icon: "mingcute:receive-money-fill"
786
+ }
787
+ }, {
788
+ name: "消息通知",
789
+ path: "MessageNotifications",
790
+ meta: {
791
+ icon: "mingcute:message-1-fill"
792
+ }
793
+ }, {
794
+ name: "公告",
795
+ path: "NoticeNotifications",
796
+ meta: {
797
+ icon: "mingcute:announcement-fill"
798
+ }
799
+ }]);
800
+ return i({
801
+ openNotification: e
802
+ }), (h, d) => (l(), p(Pe, {
803
+ ref_key: "MessageNotificationsRef",
804
+ ref: c,
805
+ key: n.value,
806
+ "selected-keys": o.value,
807
+ "onUpdate:selectedKeys": d[0] || (d[0] = (m) => o.value = m),
808
+ menus: f.value,
809
+ title: "消息中心",
810
+ onConfirm: s,
811
+ onCancel: t
812
+ }, null, 8, ["selected-keys", "menus"]));
813
+ }
814
+ }), ft = /* @__PURE__ */ C(Qe, [["__scopeId", "data-v-dd5fd3b4"]]);
815
+ export {
816
+ Pe as A,
817
+ Ne as C,
818
+ U as D,
819
+ Te as E,
820
+ ce as I,
821
+ ft as M,
822
+ He as N,
823
+ ae as _,
824
+ Le as a,
825
+ xe as b,
826
+ B as c,
827
+ Ee as d,
828
+ Ue as e,
829
+ Ke as f
830
+ };