@huyooo/ui 0.7.20 → 0.7.26

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 (64) hide show
  1. package/dist/{AuthkitAuthModal-DxxZlUbh.js → AuthkitAuthModal-C1Kgu1TA.js} +670 -685
  2. package/dist/{AuthkitSignInPhone-BfqNvheZ.js → AuthkitSignInPhone-BG7r63dN.js} +224 -232
  3. package/dist/{Clipboard-C_4QFg2W.js → Clipboard-8rWlOPTZ.js} +2 -2
  4. package/dist/{Contact-DJtDuS50.js → Contact-Bpl7sIjY.js} +2 -2
  5. package/dist/{FeedbackItem-CI-w_fOt.js → FeedbackItem-DMpvHrOD.js} +3 -3
  6. package/dist/{FeedbackModal-3k-cMuoY.js → FeedbackModal-DIhSPUPO.js} +329 -342
  7. package/dist/{MessageHandle-Pxxvhs-7.js → MessageHandle-WA95I84_.js} +212 -236
  8. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BVvzvLUA.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BRficqbp.js} +26 -28
  9. package/dist/{MessageNotifications-FkiOW4qU.js → MessageNotifications-DmgFNjH7.js} +1 -1
  10. package/dist/{PaySubscriptions-BHTKDYFN.js → PaySubscriptions-F5sNex0h.js} +50 -74
  11. package/dist/{ReferrerReferees-9wk0_tGC.js → ReferrerReferees-DMA8Tj5i.js} +30 -32
  12. package/dist/{Upload.vue_vue_type_script_setup_true_lang-RZzfS9p1.js → Upload.vue_vue_type_script_setup_true_lang-D7ZGc2ZS.js} +1 -1
  13. package/dist/{UserAccountMenu-CKGTR8GB.js → UserAccountMenu-CkUtqNxY.js} +7 -7
  14. package/dist/{WidthContainer-BC30d-AV.js → WidthContainer-DSQui1pX.js} +7 -7
  15. package/dist/api/Authkit/Users.d.ts +7 -7
  16. package/dist/api/Authkit/apps.d.ts +2 -2
  17. package/dist/api/Authkit/auth.d.ts +10 -10
  18. package/dist/api/Authkit/oauth.d.ts +3 -3
  19. package/dist/api/Authkit/verify.d.ts +18 -5
  20. package/dist/api/Buckets/Files.d.ts +7 -7
  21. package/dist/api/Buckets.d.ts +2 -2
  22. package/dist/api/Invoices.d.ts +6 -6
  23. package/dist/api/Message/ChangelogNotifications.d.ts +2 -31
  24. package/dist/api/Message/EventNotifications.d.ts +2 -35
  25. package/dist/api/Message/MessageNotifications.d.ts +5 -35
  26. package/dist/api/Message/NoticeNotifications.d.ts +5 -42
  27. package/dist/api/Messages.d.ts +2 -2
  28. package/dist/api/Orders.d.ts +9 -9
  29. package/dist/api/Products.d.ts +6 -6
  30. package/dist/api/Quotas.d.ts +6 -6
  31. package/dist/api/Referrer.d.ts +1 -1
  32. package/dist/api/Subscriptions.d.ts +7 -7
  33. package/dist/api/index.d.ts +8 -8
  34. package/dist/authkit.js +6 -6
  35. package/dist/common/globalConfig.d.ts +2 -2
  36. package/dist/common.js +1 -1
  37. package/dist/composables/Authkit/useAuthkitAppsAuthPageInfo.d.ts +1 -1
  38. package/dist/composables/Authkit/useAuthkitAuth.d.ts +3 -3
  39. package/dist/composables/useMessageNotifications.d.ts +3 -3
  40. package/dist/composables.js +9 -9
  41. package/dist/feedback.js +3 -3
  42. package/dist/index.js +24 -24
  43. package/dist/main.d.ts +1 -0
  44. package/dist/message.js +3 -3
  45. package/dist/pay.js +1 -1
  46. package/dist/privateCom.js +1 -1
  47. package/dist/referrer.js +1 -1
  48. package/dist/request-B4CMspsP.js +196 -0
  49. package/dist/style.css +1 -1
  50. package/dist/upload.js +2 -2
  51. package/dist/{useAuthkitAppsAuthPageInfo-AFq46sfo.js → useAuthkitAppsAuthPageInfo-CtsTqri7.js} +17 -19
  52. package/dist/{useAuthkitCreateAndUpdate-BZXteclG.js → useAuthkitCreateAndUpdate-BUyZbiBj.js} +1 -1
  53. package/dist/useAuthkitUsersProfile-B7wHZwe-.js +257 -0
  54. package/dist/{useDownloads-2DzDw0ic.js → useDownloads-Cl_-B4sP.js} +1 -1
  55. package/dist/useMessageNotifications-CP7gi893.js +78 -0
  56. package/dist/{useSEO-BmD-Tu3B.js → useSEO-C_4yDk7S.js} +2 -2
  57. package/dist/{useTableHandle-SmqaOxbN.js → useTableHandle-6ekhLVbK.js} +1 -1
  58. package/dist/{useUploadCos-8imaHXLO.js → useUploadCos-dYc8op7M.js} +10 -7
  59. package/dist/user.js +1 -1
  60. package/dist/utils/request.d.ts +25 -2
  61. package/package.json +1 -1
  62. package/dist/auth-CfexrvhT.js +0 -188
  63. package/dist/useAuthkitUsersProfile-B26kPQrp.js +0 -234
  64. package/dist/useMessageNotifications-DiF1CPlT.js +0 -84
@@ -1,24 +1,24 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as B, createElementBlock as _, openBlock as o, normalizeStyle as K, normalizeClass as pe, createElementVNode as U, computed as M, createBlock as g, unref as l, withCtx as r, createVNode as u, createCommentVNode as R, Fragment as z, createTextVNode as S, toDisplayString as L, ref as v, onUnmounted as Fe, h as le, renderList as X, nextTick as O } from "vue";
5
- import { Space as fe, Image as me, Avatar as ve, Descriptions as Ue, DescriptionsItem as Z, Tag as j, Spin as Re, Button as Y, Form as Le, FormItem as W, Input as Be, Select as ae, Option as ne, Textarea as Ve, Message as ze, Breadcrumb as Pe, BreadcrumbItem as se, Modal as qe } from "@arco-design/web-vue";
4
+ import { defineComponent as B, createElementBlock as k, openBlock as o, normalizeStyle as H, normalizeClass as pe, createElementVNode as U, computed as M, createBlock as g, unref as a, withCtx as r, createVNode as d, createCommentVNode as R, Fragment as z, createTextVNode as x, toDisplayString as L, ref as y, onUnmounted as Fe, h as ae, renderList as X, nextTick as O } from "vue";
5
+ import { Space as fe, Image as me, Avatar as ve, Descriptions as Ue, DescriptionsItem as Z, Tag as j, Spin as Re, Button as Y, Form as Le, FormItem as K, Input as Be, Select as le, Option as ne, Textarea as Ve, Message as ze, Breadcrumb as Pe, BreadcrumbItem as se, Modal as qe } from "@arco-design/web-vue";
6
6
  import { M as De } from "./Menu-H-LxepvQ.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { c as N, g as q } from "./auth-CfexrvhT.js";
11
+ import { c as N, g as D } from "./request-B4CMspsP.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { u as Ee } from "./useUploadCos-8imaHXLO.js";
16
- import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ import { u as Ee } from "./useUploadCos-dYc8op7M.js";
16
+ import { _ as E } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  /* empty css */
18
18
  import { f as A } from "./index-Bb-d5pBq.js";
19
19
  import { C as Ne } from "./CustomTable-BCOwLyRJ.js";
20
20
  import { Bubble as ye, Prompts as Oe, Sender as je } from "ant-design-x-vue";
21
- import { C as ge } from "./Clipboard-C_4QFg2W.js";
21
+ import { C as ge } from "./Clipboard-8rWlOPTZ.js";
22
22
  import { Icon as Ae } from "@iconify/vue";
23
23
  import { _ as be, g as ke, i as _e } from "./plugin-vue_export-helper-LjDO2Zua.js";
24
24
  const Me = B({
@@ -48,45 +48,45 @@ const Me = B({
48
48
  click: (e) => !0
49
49
  },
50
50
  setup(e, {
51
- emit: a
51
+ emit: l
52
52
  }) {
53
- const t = ke("icon"), n = M(() => [t, `${t}-exclamation-circle`, {
53
+ const t = ke("icon"), s = M(() => [t, `${t}-exclamation-circle`, {
54
54
  [`${t}-spin`]: e.spin
55
- }]), p = M(() => {
56
- const s = {};
57
- return e.size && (s.fontSize = _e(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
55
+ }]), f = M(() => {
56
+ const n = {};
57
+ return e.size && (n.fontSize = _e(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
58
58
  });
59
59
  return {
60
- cls: n,
61
- innerStyle: p,
62
- onClick: (s) => {
63
- a("click", s);
60
+ cls: s,
61
+ innerStyle: f,
62
+ onClick: (n) => {
63
+ l("click", n);
64
64
  }
65
65
  };
66
66
  }
67
67
  }), Te = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
68
- function We(e, a, t, n, p, i) {
69
- return o(), _("svg", {
68
+ function We(e, l, t, s, f, u) {
69
+ return o(), k("svg", {
70
70
  viewBox: "0 0 48 48",
71
71
  fill: "none",
72
72
  xmlns: "http://www.w3.org/2000/svg",
73
73
  stroke: "currentColor",
74
74
  class: pe(e.cls),
75
- style: K(e.innerStyle),
75
+ style: H(e.innerStyle),
76
76
  "stroke-width": e.strokeWidth,
77
77
  "stroke-linecap": e.strokeLinecap,
78
78
  "stroke-linejoin": e.strokeLinejoin,
79
- onClick: a[0] || (a[0] = (...s) => e.onClick && e.onClick(...s))
80
- }, a[1] || (a[1] = [U("path", {
79
+ onClick: l[0] || (l[0] = (...n) => e.onClick && e.onClick(...n))
80
+ }, l[1] || (l[1] = [U("path", {
81
81
  d: "M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"
82
82
  }, null, -1)]), 14, Te);
83
83
  }
84
84
  var G = /* @__PURE__ */ be(Me, [["render", We]]);
85
85
  const re = Object.assign(G, {
86
- install: (e, a) => {
86
+ install: (e, l) => {
87
87
  var t;
88
- const n = (t = a == null ? void 0 : a.iconPrefix) != null ? t : "";
89
- e.component(n + G.name, G);
88
+ const s = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
89
+ e.component(s + G.name, G);
90
90
  }
91
91
  }), Ke = B({
92
92
  name: "IconLink",
@@ -115,55 +115,55 @@ const re = Object.assign(G, {
115
115
  click: (e) => !0
116
116
  },
117
117
  setup(e, {
118
- emit: a
118
+ emit: l
119
119
  }) {
120
- const t = ke("icon"), n = M(() => [t, `${t}-link`, {
120
+ const t = ke("icon"), s = M(() => [t, `${t}-link`, {
121
121
  [`${t}-spin`]: e.spin
122
- }]), p = M(() => {
123
- const s = {};
124
- return e.size && (s.fontSize = _e(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
122
+ }]), f = M(() => {
123
+ const n = {};
124
+ return e.size && (n.fontSize = _e(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
125
125
  });
126
126
  return {
127
- cls: n,
128
- innerStyle: p,
129
- onClick: (s) => {
130
- a("click", s);
127
+ cls: s,
128
+ innerStyle: f,
129
+ onClick: (n) => {
130
+ l("click", n);
131
131
  }
132
132
  };
133
133
  }
134
134
  }), He = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
135
- function Ze(e, a, t, n, p, i) {
136
- return o(), _("svg", {
135
+ function Ze(e, l, t, s, f, u) {
136
+ return o(), k("svg", {
137
137
  viewBox: "0 0 48 48",
138
138
  fill: "none",
139
139
  xmlns: "http://www.w3.org/2000/svg",
140
140
  stroke: "currentColor",
141
141
  class: pe(e.cls),
142
- style: K(e.innerStyle),
142
+ style: H(e.innerStyle),
143
143
  "stroke-width": e.strokeWidth,
144
144
  "stroke-linecap": e.strokeLinecap,
145
145
  "stroke-linejoin": e.strokeLinejoin,
146
- onClick: a[0] || (a[0] = (...s) => e.onClick && e.onClick(...s))
147
- }, a[1] || (a[1] = [U("path", {
146
+ onClick: l[0] || (l[0] = (...n) => e.onClick && e.onClick(...n))
147
+ }, l[1] || (l[1] = [U("path", {
148
148
  d: "m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"
149
149
  }, null, -1)]), 14, He);
150
150
  }
151
151
  var J = /* @__PURE__ */ be(Ke, [["render", Ze]]);
152
152
  const Ge = Object.assign(J, {
153
- install: (e, a) => {
153
+ install: (e, l) => {
154
154
  var t;
155
- const n = (t = a == null ? void 0 : a.iconPrefix) != null ? t : "";
156
- e.component(n + J.name, J);
155
+ const s = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
156
+ e.component(s + J.name, J);
157
157
  }
158
158
  }), Je = /* @__PURE__ */ B({
159
159
  __name: "FeedbackRefresh",
160
160
  setup(e) {
161
- return (a, t) => (o(), g(l(Ae), {
161
+ return (l, t) => (o(), g(a(Ae), {
162
162
  class: "icon",
163
163
  icon: "mingcute:refresh-2-line"
164
164
  }));
165
165
  }
166
- }), Qe = /* @__PURE__ */ D(Je, [["__scopeId", "data-v-33249ffb"]]), Xe = ["src"], Ye = /* @__PURE__ */ B({
166
+ }), Qe = /* @__PURE__ */ E(Je, [["__scopeId", "data-v-33249ffb"]]), Xe = ["src"], Ye = /* @__PURE__ */ B({
167
167
  __name: "FeedbackBubbleEnd",
168
168
  props: {
169
169
  value: {
@@ -197,50 +197,50 @@ const Ge = Object.assign(J, {
197
197
  },
198
198
  emits: ["refresh"],
199
199
  setup(e, {
200
- emit: a
200
+ emit: l
201
201
  }) {
202
- const t = e, n = a;
203
- function p() {
204
- n("refresh");
202
+ const t = e, s = l;
203
+ function f() {
204
+ s("refresh");
205
205
  }
206
- return (i, s) => (o(), g(l(ye), {
206
+ return (u, n) => (o(), g(a(ye), {
207
207
  placement: "end",
208
- style: K(t.bubbleStyle),
208
+ style: H(t.bubbleStyle),
209
209
  styles: {
210
210
  content: {
211
211
  padding: t.type === "image" ? "0px" : void 0
212
212
  }
213
213
  }
214
214
  }, {
215
- avatar: r(() => [u(l(ve), null, {
215
+ avatar: r(() => [d(a(ve), null, {
216
216
  default: r(() => [U("img", {
217
217
  alt: "avatar",
218
218
  src: t.avatarUrl
219
219
  }, null, 8, Xe)]),
220
220
  _: 1
221
221
  })]),
222
- message: r(() => [t.type === "text" ? (o(), _(z, {
222
+ message: r(() => [t.type === "text" ? (o(), k(z, {
223
223
  key: 0
224
- }, [S(L(t.value), 1)], 64)) : t.type === "image" ? (o(), g(l(me), {
224
+ }, [x(L(t.value), 1)], 64)) : t.type === "image" ? (o(), g(a(me), {
225
225
  key: 1,
226
226
  width: "100",
227
227
  src: t.value,
228
228
  "show-loader": ""
229
229
  }, null, 8, ["src"])) : R("", !0)]),
230
- footer: r(() => [u(l(fe), null, {
230
+ footer: r(() => [d(a(fe), null, {
231
231
  default: r(() => [t.showClipboard && t.type === "text" ? (o(), g(ge, {
232
232
  key: 0,
233
233
  value: e.value
234
234
  }, null, 8, ["value"])) : R("", !0), t.showRefresh ? (o(), g(Qe, {
235
235
  key: 1,
236
- onClick: p
236
+ onClick: f
237
237
  })) : R("", !0)]),
238
238
  _: 1
239
239
  })]),
240
240
  _: 1
241
241
  }, 8, ["style", "styles"]));
242
242
  }
243
- }), oe = /* @__PURE__ */ D(Ye, [["__scopeId", "data-v-2e1b7acf"]]), et = ["src"], tt = /* @__PURE__ */ B({
243
+ }), oe = /* @__PURE__ */ E(Ye, [["__scopeId", "data-v-2e1b7acf"]]), et = ["src"], tt = /* @__PURE__ */ B({
244
244
  __name: "FeedbackBubbleStart",
245
245
  props: {
246
246
  value: {
@@ -270,34 +270,34 @@ const Ge = Object.assign(J, {
270
270
  },
271
271
  emits: ["footer-click"],
272
272
  setup(e, {
273
- emit: a
273
+ emit: l
274
274
  }) {
275
275
  const t = e;
276
- return (n, p) => (o(), g(l(ye), {
276
+ return (s, f) => (o(), g(a(ye), {
277
277
  placement: "start",
278
- style: K(t.bubbleStyle),
278
+ style: H(t.bubbleStyle),
279
279
  styles: {
280
280
  content: {
281
281
  padding: t.type === "image" ? "0px" : void 0
282
282
  }
283
283
  }
284
284
  }, {
285
- avatar: r(() => [u(l(ve), null, {
285
+ avatar: r(() => [d(a(ve), null, {
286
286
  default: r(() => [U("img", {
287
287
  alt: "avatar",
288
288
  src: t.avatarUrl
289
289
  }, null, 8, et)]),
290
290
  _: 1
291
291
  })]),
292
- message: r(() => [t.type === "text" ? (o(), _(z, {
292
+ message: r(() => [t.type === "text" ? (o(), k(z, {
293
293
  key: 0
294
- }, [S(L(t.value), 1)], 64)) : t.type === "image" ? (o(), g(l(me), {
294
+ }, [x(L(t.value), 1)], 64)) : t.type === "image" ? (o(), g(a(me), {
295
295
  key: 1,
296
296
  width: "100",
297
297
  src: t.value,
298
298
  "show-loader": ""
299
299
  }, null, 8, ["src"])) : R("", !0)]),
300
- footer: r(() => [u(l(fe), null, {
300
+ footer: r(() => [d(a(fe), null, {
301
301
  default: r(() => [t.showClipboard && t.type === "text" ? (o(), g(ge, {
302
302
  key: 0,
303
303
  value: t.value
@@ -307,109 +307,109 @@ const Ge = Object.assign(J, {
307
307
  _: 1
308
308
  }, 8, ["style", "styles"]));
309
309
  }
310
- }), ie = /* @__PURE__ */ D(tt, [["__scopeId", "data-v-37150f19"]]), k = [];
310
+ }), ie = /* @__PURE__ */ E(tt, [["__scopeId", "data-v-37150f19"]]), b = [];
311
311
  for (let e = 0; e < 256; ++e)
312
- k.push((e + 256).toString(16).slice(1));
313
- function lt(e, a = 0) {
314
- return (k[e[a + 0]] + k[e[a + 1]] + k[e[a + 2]] + k[e[a + 3]] + "-" + k[e[a + 4]] + k[e[a + 5]] + "-" + k[e[a + 6]] + k[e[a + 7]] + "-" + k[e[a + 8]] + k[e[a + 9]] + "-" + k[e[a + 10]] + k[e[a + 11]] + k[e[a + 12]] + k[e[a + 13]] + k[e[a + 14]] + k[e[a + 15]]).toLowerCase();
312
+ b.push((e + 256).toString(16).slice(1));
313
+ function at(e, l = 0) {
314
+ return (b[e[l + 0]] + b[e[l + 1]] + b[e[l + 2]] + b[e[l + 3]] + "-" + b[e[l + 4]] + b[e[l + 5]] + "-" + b[e[l + 6]] + b[e[l + 7]] + "-" + b[e[l + 8]] + b[e[l + 9]] + "-" + b[e[l + 10]] + b[e[l + 11]] + b[e[l + 12]] + b[e[l + 13]] + b[e[l + 14]] + b[e[l + 15]]).toLowerCase();
315
315
  }
316
316
  let Q;
317
- const at = new Uint8Array(16);
317
+ const lt = new Uint8Array(16);
318
318
  function nt() {
319
319
  if (!Q) {
320
320
  if (typeof crypto > "u" || !crypto.getRandomValues)
321
321
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
322
322
  Q = crypto.getRandomValues.bind(crypto);
323
323
  }
324
- return Q(at);
324
+ return Q(lt);
325
325
  }
326
326
  const st = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
327
327
  randomUUID: st
328
328
  };
329
- function ce(e, a, t) {
330
- var p;
329
+ function de(e, l, t) {
330
+ var f;
331
331
  if (ue.randomUUID && !e)
332
332
  return ue.randomUUID();
333
333
  e = e || {};
334
- const n = e.random ?? ((p = e.rng) == null ? void 0 : p.call(e)) ?? nt();
335
- if (n.length < 16)
334
+ const s = e.random ?? ((f = e.rng) == null ? void 0 : f.call(e)) ?? nt();
335
+ if (s.length < 16)
336
336
  throw new Error("Random bytes length must be >= 16");
337
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, lt(n);
337
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, at(s);
338
338
  }
339
- function rt(e, a = {}) {
339
+ function rt(e, l = {}) {
340
340
  const {
341
341
  interval: t = 2e3,
342
- immediate: n = !1,
343
- autoStart: p = !1
344
- } = a, i = v(!1);
345
- let s = null;
346
- async function x() {
342
+ immediate: s = !1,
343
+ autoStart: f = !1
344
+ } = l, u = y(!1);
345
+ let n = null;
346
+ async function S() {
347
347
  try {
348
348
  await e();
349
349
  } catch (I) {
350
350
  console.error("轮询回调执行失败:", I);
351
351
  }
352
352
  }
353
- function c() {
354
- if (i.value) {
353
+ function i() {
354
+ if (u.value) {
355
355
  console.warn("轮询已在运行中");
356
356
  return;
357
357
  }
358
- i.value = !0, n && x(), s = setInterval(x, t);
358
+ u.value = !0, s && S(), n = setInterval(S, t);
359
359
  }
360
360
  function m() {
361
- s && (clearInterval(s), s = null), i.value = !1;
361
+ n && (clearInterval(n), n = null), u.value = !1;
362
362
  }
363
- function b() {
364
- m(), c();
363
+ function _() {
364
+ m(), i();
365
365
  }
366
- return p && c(), Fe(() => {
366
+ return f && i(), Fe(() => {
367
367
  m();
368
368
  }), {
369
- isPolling: i,
370
- start: c,
369
+ isPolling: u,
370
+ start: i,
371
371
  stop: m,
372
- restart: b
372
+ restart: _
373
373
  };
374
374
  }
375
375
  function ot(e) {
376
376
  return N({
377
- url: `${q.onesPrefixUrl}/feedbackCenter/create`,
377
+ url: `${D.onesPrefixUrl}/feedbackCenter/create`,
378
378
  method: "post",
379
379
  data: e
380
380
  });
381
381
  }
382
382
  function it(e) {
383
383
  return N({
384
- url: `${q.onesPrefixUrl}/feedbackCenter/findOne`,
384
+ url: `${D.onesPrefixUrl}/feedbackCenter/findOne`,
385
385
  method: "post",
386
386
  data: e
387
387
  });
388
388
  }
389
389
  function ut(e) {
390
390
  return N({
391
- url: `${q.onesPrefixUrl}/feedbackCenter/own`,
391
+ url: `${D.onesPrefixUrl}/feedbackCenter/own`,
392
392
  method: "post",
393
393
  data: e
394
394
  });
395
395
  }
396
- function de(e) {
396
+ function ce(e) {
397
397
  return N({
398
- url: `${q.onesPrefixUrl}/feedbackCenter/update/messages`,
398
+ url: `${D.onesPrefixUrl}/feedbackCenter/update/messages`,
399
399
  method: "post",
400
400
  data: e
401
401
  });
402
402
  }
403
- function ct(e) {
403
+ function dt(e) {
404
404
  return N({
405
- url: `${q.onesPrefixUrl}/messages/list/incremental`,
405
+ url: `${D.onesPrefixUrl}/messages/list/incremental`,
406
406
  method: "post",
407
407
  data: e
408
408
  });
409
409
  }
410
- function dt(e) {
410
+ function ct(e) {
411
411
  return N({
412
- url: `${q.onesPrefixUrl}/messages/list`,
412
+ url: `${D.onesPrefixUrl}/messages/list`,
413
413
  method: "post",
414
414
  data: e
415
415
  });
@@ -477,15 +477,15 @@ const ee = [{
477
477
  }
478
478
  },
479
479
  setup(e) {
480
- function a(d) {
481
- return d === "inProgress" ? "orangered" : d === "pending" ? "gold" : d === "resolved" ? "green" : d === "closed" ? "gray" : "arcoblue";
480
+ function l(c) {
481
+ return c === "inProgress" ? "orangered" : c === "pending" ? "gold" : c === "resolved" ? "green" : c === "closed" ? "gray" : "arcoblue";
482
482
  }
483
- const t = v(""), n = v(!1), p = [{
483
+ const t = y(""), s = y(!1), f = [{
484
484
  key: "1",
485
485
  label: "如何补充更多信息",
486
486
  description: "请详细描述您的问题或需求,以便我们更好地为您服务。",
487
487
  disabled: !0,
488
- icon: le(re, {
488
+ icon: ae(re, {
489
489
  style: {
490
490
  color: "#722ED1"
491
491
  }
@@ -495,22 +495,22 @@ const ee = [{
495
495
  label: "如何补充附件",
496
496
  description: "如有相关附件(如日志、截图等),请一并上传以便加快处理速度。",
497
497
  disabled: !0,
498
- icon: le(re, {
498
+ icon: ae(re, {
499
499
  style: {
500
500
  color: "#722ED1"
501
501
  }
502
502
  })
503
- }], i = v(null), s = v(null), x = () => {
504
- var d;
505
- (d = i.value) == null || d.focus({
503
+ }], u = y(null), n = y(null), S = () => {
504
+ var c;
505
+ (c = u.value) == null || c.focus({
506
506
  cursor: "end"
507
507
  }), O(() => {
508
- s.value && (s.value.scrollTop = s.value.scrollHeight);
508
+ n.value && (n.value.scrollTop = n.value.scrollHeight);
509
509
  });
510
- }, c = e;
510
+ }, i = e;
511
511
  function m() {
512
512
  }
513
- const b = v(!1), I = v([]), h = v(void 0), w = v({
513
+ const _ = y(!1), I = y([]), h = y(void 0), w = y({
514
514
  id: void 0,
515
515
  title: "",
516
516
  description: "",
@@ -520,152 +520,141 @@ const ee = [{
520
520
  createAt: ""
521
521
  }), P = () => {
522
522
  const {
523
- uploadFile: d
523
+ uploadFile: c
524
524
  } = Ee(), C = document.createElement("input");
525
- C.type = "file", C.accept = "image/*", C.style.display = "none", document.body.append(C), C.addEventListener("change", async (f) => {
525
+ C.type = "file", C.accept = "image/*", C.style.display = "none", document.body.append(C), C.addEventListener("change", async (p) => {
526
526
  var te;
527
- const E = (te = f.target.files) == null ? void 0 : te[0];
528
- if (E) {
529
- n.value = !0;
527
+ const q = (te = p.target.files) == null ? void 0 : te[0];
528
+ if (q) {
529
+ s.value = !0;
530
530
  try {
531
- d({
532
- bucketId: q.feedbackBucketId,
533
- file: E,
534
- onFileFinish(we, Ut, Se) {
531
+ c({
532
+ bucketId: D.feedbackBucketId,
533
+ file: q,
534
+ onFileFinish(xe, Ut, Se) {
535
535
  const Ie = {
536
- messageId: ce(),
537
- senderRole: c.senderRole,
536
+ messageId: de(),
537
+ senderRole: i.senderRole,
538
538
  type: "image",
539
539
  key: Se.Key
540
540
  }, $e = {
541
- id: c.id,
541
+ id: i.id,
542
542
  message: Ie
543
543
  };
544
- de($e).then(({
545
- data: H
546
- }) => {
547
- I.value.push(H.message), typeof H.message.seq == "number" && (h.value = H.message.seq), O(() => {
548
- x();
549
- }), n.value = !1, c.senderRole === "support" && w.value.status === "newFeedback" && $();
550
- }).catch(() => {
551
- n.value = !1;
552
- });
544
+ (async () => {
545
+ const {
546
+ data: W
547
+ } = await ce($e);
548
+ W ? (I.value.push(W.message), typeof W.message.seq == "number" && (h.value = W.message.seq), O(() => {
549
+ S();
550
+ }), s.value = !1, i.senderRole === "support" && w.value.status === "newFeedback" && $()) : s.value = !1;
551
+ })();
553
552
  },
554
- onError(we) {
555
- n.value = !1;
553
+ onError(xe) {
554
+ s.value = !1;
556
555
  }
557
556
  });
558
557
  } catch {
559
- n.value = !1;
558
+ s.value = !1;
560
559
  }
561
560
  }
562
561
  C.remove();
563
562
  }), C.click();
564
563
  };
565
- function y(d) {
566
- n.value = !0;
567
- const f = {
568
- messageId: ce(),
569
- senderRole: c.senderRole,
564
+ async function v(c) {
565
+ s.value = !0;
566
+ const p = {
567
+ messageId: de(),
568
+ senderRole: i.senderRole,
570
569
  type: "text",
571
- content: d
570
+ content: c
572
571
  }, T = {
573
- id: c.id,
574
- message: f
575
- };
576
- de(T).then(({
577
- data: E
578
- }) => {
579
- n.value = !1, I.value.push(E.message), typeof E.message.seq == "number" && (h.value = E.message.seq), O(() => {
580
- x();
581
- }), t.value = "", c.senderRole === "support" && w.value.status === "newFeedback" && $();
582
- }).catch(() => {
583
- n.value = !1;
584
- });
572
+ id: i.id,
573
+ message: p
574
+ }, {
575
+ data: q
576
+ } = await ce(T);
577
+ s.value = !1, q && (I.value.push(q.message), typeof q.message.seq == "number" && (h.value = q.message.seq), O(() => {
578
+ S();
579
+ }), t.value = "", i.senderRole === "support" && w.value.status === "newFeedback" && $());
585
580
  }
586
581
  function V() {
587
- y(t.value);
582
+ v(t.value);
588
583
  }
589
- function $() {
590
- b.value = !0, it({
591
- id: c.id
592
- }).then(async ({
593
- data: d
594
- }) => {
595
- b.value = !1, w.value = d, d.messages && d.messages.length > 0 && (I.value = d.messages, h.value = d.messages.at(-1).seq);
596
- }).catch(() => {
597
- b.value = !1;
584
+ async function $() {
585
+ _.value = !0;
586
+ const {
587
+ data: c
588
+ } = await it({
589
+ id: i.id
598
590
  });
591
+ _.value = !1, c && (w.value = c, c.messages && c.messages.length > 0 && (I.value = c.messages, h.value = c.messages.at(-1).seq));
599
592
  }
600
- function F() {
601
- ct({
602
- id: c.id,
593
+ async function F() {
594
+ const {
595
+ data: c
596
+ } = await dt({
597
+ id: i.id,
603
598
  lastSeq: h.value
604
- }).then(async ({
605
- data: d
606
- }) => {
607
- d && d.messages && d.messages.length > 0 && (I.value.push(...d.messages), h.value = d.messages.at(-1).seq, O(() => {
608
- x();
609
- }));
610
- }).catch(() => {
611
599
  });
600
+ c && c.messages && c.messages.length > 0 && (I.value.push(...c.messages), h.value = c.messages.at(-1).seq, O(() => {
601
+ S();
602
+ }));
612
603
  }
613
- function xe() {
614
- b.value = !0, dt({
615
- id: c.id
616
- }).then(async ({
617
- data: d
618
- }) => {
619
- b.value = !1, d && d.messages && d.messages.length > 0 && (I.value.push(...d.messages), h.value = d.messages.at(-1).seq, O(() => {
620
- x();
621
- }));
622
- }).catch(() => {
623
- b.value = !1;
604
+ async function we() {
605
+ _.value = !0;
606
+ const {
607
+ data: c
608
+ } = await ct({
609
+ id: i.id
624
610
  });
611
+ _.value = !1, c && c.messages && c.messages.length > 0 && (I.value.push(...c.messages), h.value = c.messages.at(-1).seq, O(() => {
612
+ S();
613
+ }));
625
614
  }
626
615
  return rt(F, {
627
616
  interval: 2e3,
628
617
  autoStart: !0
629
- }), $(), xe(), (d, C) => (o(), _("div", pt, [U("div", {
618
+ }), $(), we(), (c, C) => (o(), k("div", pt, [U("div", {
630
619
  ref_key: "scrollableContentRef",
631
- ref: s,
620
+ ref: n,
632
621
  class: "scrollable-content"
633
- }, [u(l(Ue), {
622
+ }, [d(a(Ue), {
634
623
  title: "基本信息"
635
624
  }, {
636
625
  title: r(() => [...C[1] || (C[1] = [U("div", {
637
626
  class: "title"
638
627
  }, "基本信息", -1)])]),
639
- default: r(() => [u(l(Z), {
628
+ default: r(() => [d(a(Z), {
640
629
  label: "标题:",
641
630
  span: 3
642
631
  }, {
643
- default: r(() => [S(L(w.value.title), 1)]),
632
+ default: r(() => [x(L(w.value.title), 1)]),
644
633
  _: 1
645
- }), u(l(Z), {
634
+ }), d(a(Z), {
646
635
  label: "反馈类型:",
647
636
  span: 1
648
637
  }, {
649
- default: r(() => [u(l(j), {
638
+ default: r(() => [d(a(j), {
650
639
  color: "arcoblue"
651
640
  }, {
652
641
  default: r(() => {
653
- var f;
654
- return [S(L((f = l(A)(l(ee), w.value.type)) == null ? void 0 : f.label), 1)];
642
+ var p;
643
+ return [x(L((p = a(A)(a(ee), w.value.type)) == null ? void 0 : p.label), 1)];
655
644
  }),
656
645
  _: 1
657
646
  })]),
658
647
  _: 1
659
- }), u(l(Z), {
648
+ }), d(a(Z), {
660
649
  label: "状态:",
661
650
  span: 1
662
651
  }, {
663
- default: r(() => [u(l(j), {
664
- color: a(w.value.status)
652
+ default: r(() => [d(a(j), {
653
+ color: l(w.value.status)
665
654
  }, {
666
655
  default: r(() => {
667
- var f;
668
- return [S(L((f = l(A)(l(Ce), w.value.status)) == null ? void 0 : f.label), 1)];
656
+ var p;
657
+ return [x(L((p = a(A)(a(Ce), w.value.status)) == null ? void 0 : p.label), 1)];
669
658
  }),
670
659
  _: 1
671
660
  }, 8, ["color"])]),
@@ -674,77 +663,77 @@ const ee = [{
674
663
  _: 1
675
664
  }), U("div", ft, [C[2] || (C[2] = U("div", {
676
665
  class: "title"
677
- }, "沟通记录", -1)), u(l(Re), {
666
+ }, "沟通记录", -1)), d(a(Re), {
678
667
  class: "messageContent",
679
- loading: b.value
668
+ loading: _.value
680
669
  }, {
681
- default: r(() => [I.value.length == 0 ? (o(), g(l(Oe), {
670
+ default: r(() => [I.value.length == 0 ? (o(), g(a(Oe), {
682
671
  key: 0,
683
672
  title: "☕️ 温馨提示!",
684
- items: p,
673
+ items: f,
685
674
  wrap: "",
686
675
  vertical: !1,
687
676
  onOnItemClick: m
688
- })) : (o(), _("div", mt, [(o(!0), _(z, null, X(I.value, (f, T) => (o(), _(z, {
677
+ })) : (o(), k("div", mt, [(o(!0), k(z, null, X(I.value, (p, T) => (o(), k(z, {
689
678
  key: T
690
- }, [f.type === "text" ? (o(), _(z, {
679
+ }, [p.type === "text" ? (o(), k(z, {
691
680
  key: 0
692
- }, [f.senderRole !== c.senderRole ? (o(), g(ie, {
681
+ }, [p.senderRole !== i.senderRole ? (o(), g(ie, {
693
682
  key: 0,
694
- value: f.content,
695
- type: f.type,
696
- "avatar-url": f.senderInfo.avatarUrl
683
+ value: p.content,
684
+ type: p.type,
685
+ "avatar-url": p.senderInfo.avatarUrl
697
686
  }, null, 8, ["value", "type", "avatar-url"])) : (o(), g(oe, {
698
687
  key: 1,
699
- value: f.content,
700
- "avatar-url": f.senderInfo.avatarUrl,
701
- type: f.type
702
- }, null, 8, ["value", "avatar-url", "type"]))], 64)) : (o(), _(z, {
688
+ value: p.content,
689
+ "avatar-url": p.senderInfo.avatarUrl,
690
+ type: p.type
691
+ }, null, 8, ["value", "avatar-url", "type"]))], 64)) : (o(), k(z, {
703
692
  key: 1
704
- }, [f.senderRole !== c.senderRole ? (o(), g(ie, {
693
+ }, [p.senderRole !== i.senderRole ? (o(), g(ie, {
705
694
  key: 0,
706
- type: f.type,
707
- value: f.url,
695
+ type: p.type,
696
+ value: p.url,
708
697
  "avatar-text": "S",
709
- "avatar-url": f.senderInfo.avatarUrl
698
+ "avatar-url": p.senderInfo.avatarUrl
710
699
  }, null, 8, ["type", "value", "avatar-url"])) : (o(), g(oe, {
711
700
  key: 1,
712
- type: f.type,
713
- value: f.url,
714
- "avatar-url": f.senderInfo.avatarUrl
701
+ type: p.type,
702
+ value: p.url,
703
+ "avatar-url": p.senderInfo.avatarUrl
715
704
  }, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))]))]),
716
705
  _: 1
717
- }, 8, ["loading"])])], 512), U("div", vt, [u(l(je), {
706
+ }, 8, ["loading"])])], 512), U("div", vt, [d(a(je), {
718
707
  ref_key: "senderRef",
719
- ref: i,
708
+ ref: u,
720
709
  value: t.value,
721
- "onUpdate:value": C[0] || (C[0] = (f) => t.value = f),
710
+ "onUpdate:value": C[0] || (C[0] = (p) => t.value = p),
722
711
  placeholder: "请输入你要咨询的问题?",
723
- loading: n.value,
712
+ loading: s.value,
724
713
  "allow-speech": !1,
725
- "read-only": n.value,
714
+ "read-only": s.value,
726
715
  onSubmit: V
727
716
  }, {
728
- prefix: r(() => [u(l(Y), {
717
+ prefix: r(() => [d(a(Y), {
729
718
  type: "text",
730
719
  class: "IconLink",
731
720
  onClick: P
732
721
  }, {
733
- icon: r(() => [u(l(Ge))]),
722
+ icon: r(() => [d(a(Ge))]),
734
723
  _: 1
735
724
  })]),
736
725
  _: 1
737
726
  }, 8, ["value", "loading", "read-only"])])]));
738
727
  }
739
- }), gt = /* @__PURE__ */ D(yt, [["__scopeId", "data-v-b6c96217"]]), bt = {
728
+ }), gt = /* @__PURE__ */ E(yt, [["__scopeId", "data-v-885ffa6e"]]), bt = {
740
729
  class: "FeedBackFrom"
741
730
  }, kt = /* @__PURE__ */ B({
742
731
  __name: "FeedbackForm",
743
732
  emits: ["confirm"],
744
733
  setup(e, {
745
- emit: a
734
+ emit: l
746
735
  }) {
747
- const t = a, n = v(), p = v(!1), i = v({
736
+ const t = l, s = y(), f = y(!1), u = y({
748
737
  id: void 0,
749
738
  title: "",
750
739
  type: "bugReports",
@@ -752,30 +741,30 @@ const ee = [{
752
741
  description: "",
753
742
  screenshots: []
754
743
  });
755
- v([]);
756
- function s() {
757
- n.value.validate().then((x) => {
758
- x || (p.value = !0, ot({
759
- title: i.value.title,
760
- type: i.value.type,
761
- priority: i.value.priority,
762
- description: i.value.description,
763
- screenshots: i.value.screenshots
764
- }).then(() => {
765
- p.value = !1, ze.success("新建反馈成功"), t("confirm");
766
- }).catch(() => {
767
- p.value = !1;
768
- }));
769
- });
744
+ y([]);
745
+ async function n() {
746
+ if (!await s.value.validate()) {
747
+ f.value = !0;
748
+ const {
749
+ error: i
750
+ } = await ot({
751
+ title: u.value.title,
752
+ type: u.value.type,
753
+ priority: u.value.priority,
754
+ description: u.value.description,
755
+ screenshots: u.value.screenshots
756
+ });
757
+ f.value = !1, i || (ze.success("新建反馈成功"), t("confirm"));
758
+ }
770
759
  }
771
- return (x, c) => (o(), _("div", bt, [u(l(Le), {
760
+ return (S, i) => (o(), k("div", bt, [d(a(Le), {
772
761
  ref_key: "formRef",
773
- ref: n,
774
- model: i.value,
762
+ ref: s,
763
+ model: u.value,
775
764
  "auto-label-width": "",
776
765
  layout: "vertical"
777
766
  }, {
778
- default: r(() => [u(l(W), {
767
+ default: r(() => [d(a(K), {
779
768
  field: "title",
780
769
  label: "标题",
781
770
  rules: [{
@@ -783,13 +772,13 @@ const ee = [{
783
772
  message: "请输入标题"
784
773
  }]
785
774
  }, {
786
- default: r(() => [u(l(Be), {
787
- modelValue: i.value.title,
788
- "onUpdate:modelValue": c[0] || (c[0] = (m) => i.value.title = m),
775
+ default: r(() => [d(a(Be), {
776
+ modelValue: u.value.title,
777
+ "onUpdate:modelValue": i[0] || (i[0] = (m) => u.value.title = m),
789
778
  placeholder: "请输入标题"
790
779
  }, null, 8, ["modelValue"])]),
791
780
  _: 1
792
- }), u(l(W), {
781
+ }), d(a(K), {
793
782
  field: "type",
794
783
  label: "反馈类型",
795
784
  rules: [{
@@ -797,22 +786,22 @@ const ee = [{
797
786
  message: "请选择反馈类型"
798
787
  }]
799
788
  }, {
800
- default: r(() => [u(l(ae), {
801
- modelValue: i.value.type,
802
- "onUpdate:modelValue": c[1] || (c[1] = (m) => i.value.type = m),
789
+ default: r(() => [d(a(le), {
790
+ modelValue: u.value.type,
791
+ "onUpdate:modelValue": i[1] || (i[1] = (m) => u.value.type = m),
803
792
  placeholder: "请选择反馈类型"
804
793
  }, {
805
- default: r(() => [(o(!0), _(z, null, X(l(ee), (m, b) => (o(), g(l(ne), {
806
- key: b,
794
+ default: r(() => [(o(!0), k(z, null, X(a(ee), (m, _) => (o(), g(a(ne), {
795
+ key: _,
807
796
  value: m.key
808
797
  }, {
809
- default: r(() => [S(L(m.label), 1)]),
798
+ default: r(() => [x(L(m.label), 1)]),
810
799
  _: 2
811
800
  }, 1032, ["value"]))), 128))]),
812
801
  _: 1
813
802
  }, 8, ["modelValue"])]),
814
803
  _: 1
815
- }), u(l(W), {
804
+ }), d(a(K), {
816
805
  field: "priority",
817
806
  label: "优先级",
818
807
  rules: [{
@@ -820,22 +809,22 @@ const ee = [{
820
809
  message: "请选择优先级"
821
810
  }]
822
811
  }, {
823
- default: r(() => [u(l(ae), {
824
- modelValue: i.value.priority,
825
- "onUpdate:modelValue": c[2] || (c[2] = (m) => i.value.priority = m),
812
+ default: r(() => [d(a(le), {
813
+ modelValue: u.value.priority,
814
+ "onUpdate:modelValue": i[2] || (i[2] = (m) => u.value.priority = m),
826
815
  placeholder: "请选择优先级"
827
816
  }, {
828
- default: r(() => [(o(!0), _(z, null, X(l(he), (m, b) => (o(), g(l(ne), {
829
- key: b,
817
+ default: r(() => [(o(!0), k(z, null, X(a(he), (m, _) => (o(), g(a(ne), {
818
+ key: _,
830
819
  value: m.key
831
820
  }, {
832
- default: r(() => [S(L(m.label), 1)]),
821
+ default: r(() => [x(L(m.label), 1)]),
833
822
  _: 2
834
823
  }, 1032, ["value"]))), 128))]),
835
824
  _: 1
836
825
  }, 8, ["modelValue"])]),
837
826
  _: 1
838
- }), u(l(W), {
827
+ }), d(a(K), {
839
828
  field: "description",
840
829
  label: "问题描述",
841
830
  rules: [{
@@ -843,9 +832,9 @@ const ee = [{
843
832
  message: "请输入问题描述"
844
833
  }]
845
834
  }, {
846
- default: r(() => [u(l(Ve), {
847
- modelValue: i.value.description,
848
- "onUpdate:modelValue": c[3] || (c[3] = (m) => i.value.description = m),
835
+ default: r(() => [d(a(Ve), {
836
+ modelValue: u.value.description,
837
+ "onUpdate:modelValue": i[3] || (i[3] = (m) => u.value.description = m),
849
838
  placeholder: "请输入问题描述",
850
839
  "allow-clear": "",
851
840
  "auto-size": {
@@ -853,38 +842,38 @@ const ee = [{
853
842
  }
854
843
  }, null, 8, ["modelValue"])]),
855
844
  _: 1
856
- }), R("", !0), u(l(Y), {
857
- loading: p.value,
845
+ }), R("", !0), d(a(Y), {
846
+ loading: f.value,
858
847
  type: "primary",
859
- onClick: s
848
+ onClick: n
860
849
  }, {
861
- default: r(() => [...c[4] || (c[4] = [S(" 提交 ", -1)])]),
850
+ default: r(() => [...i[4] || (i[4] = [x(" 提交 ", -1)])]),
862
851
  _: 1
863
852
  }, 8, ["loading"])]),
864
853
  _: 1
865
854
  }, 8, ["model"])]));
866
855
  }
867
- }), _t = /* @__PURE__ */ D(kt, [["__scopeId", "data-v-2f79c0a9"]]), ht = {
856
+ }), _t = /* @__PURE__ */ E(kt, [["__scopeId", "data-v-5d6d87ba"]]), ht = {
868
857
  class: "messages"
869
858
  }, Ct = {
870
859
  key: 1,
871
860
  class: "list"
872
- }, xt = /* @__PURE__ */ B({
861
+ }, wt = /* @__PURE__ */ B({
873
862
  __name: "FeedbackList",
874
863
  emits: ["toDetail"],
875
864
  setup(e, {
876
- emit: a
865
+ emit: l
877
866
  }) {
878
- const t = v(!0), n = v([]), p = v(!1), i = v(""), s = v({
867
+ const t = y(!0), s = y([]), f = y(!1), u = y(""), n = y({
879
868
  total: 0,
880
869
  current: 1,
881
870
  pageSize: 10
882
871
  });
883
- function x() {
872
+ function S() {
884
873
  t.value = !0;
885
874
  }
886
- function c(y) {
887
- i.value = y.id, t.value = !1;
875
+ function i(v) {
876
+ u.value = v.id, t.value = !1;
888
877
  }
889
878
  const m = [{
890
879
  dataIndex: "title",
@@ -918,111 +907,109 @@ const ee = [{
918
907
  fixed: "right",
919
908
  width: 80
920
909
  }];
921
- function b(y) {
922
- return y === "inProgress" ? "orangered" : y === "pending" ? "gold" : y === "resolved" ? "green" : y === "closed" ? "gray" : "arcoblue";
910
+ function _(v) {
911
+ return v === "inProgress" ? "orangered" : v === "pending" ? "gold" : v === "resolved" ? "green" : v === "closed" ? "gray" : "arcoblue";
923
912
  }
924
- function I(y) {
925
- return y === "urgent" ? "red" : y === "high" ? "orangered" : y === "low" ? "gray" : "blue";
913
+ function I(v) {
914
+ return v === "urgent" ? "red" : v === "high" ? "orangered" : v === "low" ? "gray" : "blue";
926
915
  }
927
- function h() {
928
- p.value = !0, ut({
929
- current: s.value.current,
930
- pageSize: s.value.pageSize
931
- }).then(async ({
932
- data: y
933
- }) => {
934
- p.value = !1, n.value = y.items, s.value.total = y.count;
935
- }).catch(() => {
936
- p.value = !1;
916
+ async function h() {
917
+ f.value = !0;
918
+ const {
919
+ data: v
920
+ } = await ut({
921
+ current: n.value.current,
922
+ pageSize: n.value.pageSize
937
923
  });
924
+ f.value = !1, v && (s.value = v.items, n.value.total = v.count);
938
925
  }
939
- const w = (y) => {
940
- s.value.current = y, h();
941
- }, P = (y) => {
942
- s.value.current = 1, s.value.pageSize = y, h();
926
+ const w = (v) => {
927
+ n.value.current = v, h();
928
+ }, P = (v) => {
929
+ n.value.current = 1, n.value.pageSize = v, h();
943
930
  };
944
- return h(), (y, V) => (o(), _("div", ht, [t.value ? R("", !0) : (o(), g(l(Pe), {
931
+ return h(), (v, V) => (o(), k("div", ht, [t.value ? R("", !0) : (o(), g(a(Pe), {
945
932
  key: 0,
946
933
  style: {
947
934
  "margin-bottom": "10px",
948
935
  cursor: "pointer"
949
936
  }
950
937
  }, {
951
- default: r(() => [u(l(se), {
938
+ default: r(() => [d(a(se), {
952
939
  style: {
953
940
  padding: "0px"
954
941
  },
955
- onClick: x
942
+ onClick: S
956
943
  }, {
957
- default: r(() => [...V[0] || (V[0] = [S("我的反馈", -1)])]),
944
+ default: r(() => [...V[0] || (V[0] = [x("我的反馈", -1)])]),
958
945
  _: 1
959
- }), u(l(se), {
946
+ }), d(a(se), {
960
947
  style: {
961
948
  padding: "0px"
962
949
  }
963
950
  }, {
964
- default: r(() => [...V[1] || (V[1] = [S("反馈详情", -1)])]),
951
+ default: r(() => [...V[1] || (V[1] = [x("反馈详情", -1)])]),
965
952
  _: 1
966
953
  })]),
967
954
  _: 1
968
- })), t.value ? (o(), _("div", Ct, [u(Ne, {
955
+ })), t.value ? (o(), k("div", Ct, [d(Ne, {
969
956
  columns: m,
970
- data: n.value,
971
- loading: p.value,
972
- pagination: s.value,
957
+ data: s.value,
958
+ loading: f.value,
959
+ pagination: n.value,
973
960
  onPageChange: w,
974
961
  onPageSizeChange: P
975
962
  }, {
976
963
  type: r(({
977
964
  record: $
978
- }) => [u(l(j), {
965
+ }) => [d(a(j), {
979
966
  color: "arcoblue"
980
967
  }, {
981
968
  default: r(() => {
982
969
  var F;
983
- return [S(L((F = l(A)(l(ee), $.type)) == null ? void 0 : F.label), 1)];
970
+ return [x(L((F = a(A)(a(ee), $.type)) == null ? void 0 : F.label), 1)];
984
971
  }),
985
972
  _: 2
986
973
  }, 1024)]),
987
974
  priority: r(({
988
975
  record: $
989
- }) => [u(l(j), {
976
+ }) => [d(a(j), {
990
977
  color: I($.priority)
991
978
  }, {
992
979
  default: r(() => {
993
980
  var F;
994
- return [S(L(((F = l(A)(l(he), $.priority)) == null ? void 0 : F.label) || "普通"), 1)];
981
+ return [x(L(((F = a(A)(a(he), $.priority)) == null ? void 0 : F.label) || "普通"), 1)];
995
982
  }),
996
983
  _: 2
997
984
  }, 1032, ["color"])]),
998
985
  status: r(({
999
986
  record: $
1000
- }) => [u(l(j), {
1001
- color: b($.status)
987
+ }) => [d(a(j), {
988
+ color: _($.status)
1002
989
  }, {
1003
990
  default: r(() => {
1004
991
  var F;
1005
- return [S(L((F = l(A)(l(Ce), $.status)) == null ? void 0 : F.label), 1)];
992
+ return [x(L((F = a(A)(a(Ce), $.status)) == null ? void 0 : F.label), 1)];
1006
993
  }),
1007
994
  _: 2
1008
995
  }, 1032, ["color"])]),
1009
996
  actions: r(({
1010
997
  record: $
1011
- }) => [u(l(Y), {
998
+ }) => [d(a(Y), {
1012
999
  type: "text",
1013
- onClick: (F) => c($)
1000
+ onClick: (F) => i($)
1014
1001
  }, {
1015
- default: r(() => [...V[2] || (V[2] = [S("查看", -1)])]),
1002
+ default: r(() => [...V[2] || (V[2] = [x("查看", -1)])]),
1016
1003
  _: 1
1017
1004
  }, 8, ["onClick"])]),
1018
1005
  _: 1
1019
1006
  }, 8, ["data", "loading", "pagination"])])) : (o(), g(gt, {
1020
1007
  key: 2,
1021
- id: i.value,
1008
+ id: u.value,
1022
1009
  "sender-role": "user"
1023
1010
  }, null, 8, ["id"]))]));
1024
1011
  }
1025
- }), wt = /* @__PURE__ */ D(xt, [["__scopeId", "data-v-2c77e3c1"]]), St = {
1012
+ }), xt = /* @__PURE__ */ E(wt, [["__scopeId", "data-v-aec6090b"]]), St = {
1026
1013
  key: 0,
1027
1014
  class: "content"
1028
1015
  }, It = {
@@ -1033,14 +1020,14 @@ const ee = [{
1033
1020
  __name: "FeedbackModal",
1034
1021
  emits: ["confirm", "cancel"],
1035
1022
  setup(e, {
1036
- expose: a,
1023
+ expose: l,
1037
1024
  emit: t
1038
1025
  }) {
1039
- const n = v(!1), p = t;
1040
- function i() {
1041
- p("cancel");
1026
+ const s = y(!1), f = t;
1027
+ function u() {
1028
+ f("cancel");
1042
1029
  }
1043
- const s = v(["FeedbackList"]), x = v([{
1030
+ const n = y(["FeedbackList"]), S = y([{
1044
1031
  name: "我的反馈",
1045
1032
  path: "FeedbackList",
1046
1033
  meta: {
@@ -1052,21 +1039,21 @@ const ee = [{
1052
1039
  meta: {
1053
1040
  icon: "mingcute:cube-3d-fill"
1054
1041
  }
1055
- }]), c = M(() => s.value.length !== 0 ? s.value[0] : "");
1042
+ }]), i = M(() => n.value.length !== 0 ? n.value[0] : "");
1056
1043
  function m() {
1057
- s.value = ["FeedbackList"];
1044
+ n.value = ["FeedbackList"];
1058
1045
  }
1059
- function b(h) {
1060
- s.value = [h.path];
1046
+ function _(h) {
1047
+ n.value = [h.path];
1061
1048
  }
1062
1049
  function I(h) {
1063
- n.value = h;
1050
+ s.value = h;
1064
1051
  }
1065
- return a({
1052
+ return l({
1066
1053
  setData: I
1067
- }), (h, w) => (o(), g(l(qe), {
1068
- visible: n.value,
1069
- "onUpdate:visible": w[1] || (w[1] = (P) => n.value = P),
1054
+ }), (h, w) => (o(), g(a(qe), {
1055
+ visible: s.value,
1056
+ "onUpdate:visible": w[1] || (w[1] = (P) => s.value = P),
1070
1057
  loading: !1,
1071
1058
  "body-class": "AppMessagebodyClass",
1072
1059
  "mask-closable": !1,
@@ -1074,29 +1061,29 @@ const ee = [{
1074
1061
  width: "auto",
1075
1062
  title: "用户反馈",
1076
1063
  "hide-title": !1,
1077
- onCancel: i
1064
+ onCancel: u
1078
1065
  }, {
1079
- default: r(() => [n.value ? (o(), _("div", St, [U("div", It, [u(De, {
1080
- "selected-keys": s.value,
1081
- "onUpdate:selectedKeys": w[0] || (w[0] = (P) => s.value = P),
1082
- menus: x.value,
1083
- onChange: b
1084
- }, null, 8, ["selected-keys", "menus"])]), U("div", $t, [c.value === "FeedbackList" ? (o(), g(wt, {
1066
+ default: r(() => [s.value ? (o(), k("div", St, [U("div", It, [d(De, {
1067
+ "selected-keys": n.value,
1068
+ "onUpdate:selectedKeys": w[0] || (w[0] = (P) => n.value = P),
1069
+ menus: S.value,
1070
+ onChange: _
1071
+ }, null, 8, ["selected-keys", "menus"])]), U("div", $t, [i.value === "FeedbackList" ? (o(), g(xt, {
1085
1072
  key: 0
1086
- })) : R("", !0), c.value === "CreateFeedback" ? (o(), g(_t, {
1073
+ })) : R("", !0), i.value === "CreateFeedback" ? (o(), g(_t, {
1087
1074
  key: 1,
1088
1075
  onConfirm: m
1089
1076
  })) : R("", !0)])])) : R("", !0)]),
1090
1077
  _: 1
1091
1078
  }, 8, ["visible"]));
1092
1079
  }
1093
- }), el = /* @__PURE__ */ D(Ft, [["__scopeId", "data-v-7b1c3729"]]);
1080
+ }), ea = /* @__PURE__ */ E(Ft, [["__scopeId", "data-v-7b1c3729"]]);
1094
1081
  export {
1095
1082
  oe as B,
1096
1083
  gt as F,
1097
1084
  Qe as R,
1098
1085
  ie as a,
1099
1086
  _t as b,
1100
- wt as c,
1101
- el as d
1087
+ xt as c,
1088
+ ea as d
1102
1089
  };