@huyooo/ui 0.7.26 → 0.8.0

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