@huyooo/ui 0.10.2 → 0.10.3

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 (30) hide show
  1. package/dist/{AuthkitAuthModal-CIqo_ytT.js → AuthkitAuthModal-De0eEWOC.js} +443 -443
  2. package/dist/{AuthkitSignInPhone-GEP_InIp.js → AuthkitSignInPhone-DEUVn3Rq.js} +4 -4
  3. package/dist/{Clipboard-BsST2Mjo.js → Clipboard-CMm8I4Rb.js} +1 -1
  4. package/dist/{CollapseItem-DN-GUAQA.js → CollapseItem-BAuejDBZ.js} +10 -10
  5. package/dist/{Contact-D1RLCHL7.js → Contact-Dgn8_it4.js} +1 -1
  6. package/dist/{FeedbackItem-BhBJPtoI.js → FeedbackItem-CRiLkWMh.js} +6 -6
  7. package/dist/{FeedbackModal-Ci0sZsOa.js → FeedbackModal-B8WLPCy_.js} +365 -366
  8. package/dist/{LandingPageSectionHeader-1h01zdKJ.js → LandingPageSectionHeader-Cs1x8i3q.js} +1 -1
  9. package/dist/{LandingPageSectionTabs-BRTZaLEe.js → LandingPageSectionTabs-Dv_xOLqR.js} +11 -11
  10. package/dist/{Menu-v8cCDSzi.js → Menu-Cy2ZPeaz.js} +18 -18
  11. package/dist/{MessageHandle-Dkpc4axC.js → MessageHandle-DpIUeQ7U.js} +6 -6
  12. package/dist/{MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-DqXjEfo9.js → MessageNoticeNotificationsDetails.vue_vue_type_script_setup_true_lang-BbtfWRUD.js} +47 -47
  13. package/dist/{PaySubscriptions-ygmbIpWM.js → PaySubscriptions-W6GJ28uE.js} +15 -15
  14. package/dist/{ReferrerReferees-BlHsWD6F.js → ReferrerReferees-C5Sjn7aD.js} +7 -7
  15. package/dist/{UserAccountMenu-C6MK8Ulm.js → UserAccountMenu-OdwonGFa.js} +6 -6
  16. package/dist/{WidthContainer-IvPa1ayt.js → WidthContainer-Cpdc67hQ.js} +125 -128
  17. package/dist/authkit.js +2 -2
  18. package/dist/common.js +3 -3
  19. package/dist/components/Authkit/AuthkitAppSetting.vue.d.ts +1 -1
  20. package/dist/components/User/UserPanel.vue.d.ts +2 -2
  21. package/dist/feedback.js +3 -3
  22. package/dist/landingPage.js +2 -2
  23. package/dist/main.js +50 -50
  24. package/dist/message.js +2 -2
  25. package/dist/pay.js +1 -1
  26. package/dist/privateCom.js +1 -1
  27. package/dist/referrer.js +1 -1
  28. package/dist/style.css +1 -1
  29. package/dist/user.js +1 -1
  30. package/package.json +1 -1
@@ -1,27 +1,27 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as U, computed as A, openBlock as o, createElementBlock as _, normalizeStyle as W, normalizeClass as ce, createElementVNode as F, 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-v8cCDSzi.js";
4
+ import { defineComponent as V, computed as A, openBlock as o, createElementBlock as h, normalizeStyle as W, normalizeClass as ce, createElementVNode as B, createBlock as g, unref as a, withCtx as n, createVNode as d, createCommentVNode as L, Fragment as q, createTextVNode as C, toDisplayString as U, ref as y, onUnmounted as Re, h as ae, renderList as Q, nextTick as j } from "vue";
5
+ import { Space as pe, Image as fe, Avatar as me, Descriptions as $e, DescriptionsItem as H, Tag as E, Spin as Fe, Button as X, Form as Be, FormItem as T, Input as Le, Select as le, Option as ne, Textarea as Ue, Message as Ve, Breadcrumb as ze, BreadcrumbItem as se, Modal as qe } from "@arco-design/web-vue";
6
+ import { M as Ne } from "./Menu-Cy2ZPeaz.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
- import { o as E, g as De } from "./apiClients-DJchWBAG.js";
11
+ import { o as P, g as Pe } from "./apiClients-DJchWBAG.js";
12
12
  /* empty css */
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { u as Ee } from "./useUploadCos-BO3W_uqs.js";
16
- import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
15
+ import { u as De } from "./useUploadCos-BO3W_uqs.js";
16
+ import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
17
  /* empty css */
18
18
  import { f as O } from "./index-D56hUMeD.js";
19
- import { C as Ne } from "./CustomTable-CVZ4mFzi.js";
20
- import { Bubble as ve, Prompts as Pe, Sender as je } from "ant-design-x-vue";
21
- import { C as ye } from "./Clipboard-BsST2Mjo.js";
22
- import { Icon as Oe } from "@iconify/vue";
19
+ import { C as je } from "./CustomTable-CVZ4mFzi.js";
20
+ import { Bubble as ve, Prompts as Ee, Sender as Oe } from "ant-design-x-vue";
21
+ import { C as ye } from "./Clipboard-CMm8I4Rb.js";
22
+ import { Icon as Ae } from "@iconify/vue";
23
23
  import { _ as ge, g as be, i as ke } from "./plugin-vue_export-helper-LjDO2Zua.js";
24
- const Ae = U({
24
+ const Me = V({
25
25
  name: "IconExclamationCircle",
26
26
  props: {
27
27
  size: {
@@ -50,23 +50,23 @@ const Ae = U({
50
50
  setup(e, {
51
51
  emit: l
52
52
  }) {
53
- const t = be("icon"), s = A(() => [t, `${t}-exclamation-circle`, {
53
+ const t = be("icon"), r = A(() => [t, `${t}-exclamation-circle`, {
54
54
  [`${t}-spin`]: e.spin
55
- }]), f = A(() => {
56
- const n = {};
57
- return e.size && (n.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
55
+ }]), i = A(() => {
56
+ const s = {};
57
+ return e.size && (s.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
58
58
  });
59
59
  return {
60
- cls: s,
61
- innerStyle: f,
62
- onClick: (n) => {
63
- l("click", n);
60
+ cls: r,
61
+ innerStyle: i,
62
+ onClick: (s) => {
63
+ l("click", s);
64
64
  }
65
65
  };
66
66
  }
67
- }), Me = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
68
- function Te(e, l, t, s, f, d) {
69
- return o(), _("svg", {
67
+ }), Te = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
68
+ function We(e, l, t, r, i, p) {
69
+ return o(), h("svg", {
70
70
  viewBox: "0 0 48 48",
71
71
  fill: "none",
72
72
  xmlns: "http://www.w3.org/2000/svg",
@@ -76,19 +76,19 @@ function Te(e, l, t, s, f, d) {
76
76
  "stroke-width": e.strokeWidth,
77
77
  "stroke-linecap": e.strokeLinecap,
78
78
  "stroke-linejoin": e.strokeLinejoin,
79
- onClick: l[0] || (l[0] = (...n) => e.onClick && e.onClick(...n))
80
- }, l[1] || (l[1] = [F("path", {
79
+ onClick: l[0] || (l[0] = (...s) => e.onClick && e.onClick(...s))
80
+ }, l[1] || (l[1] = [B("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, Me);
82
+ }, null, -1)]), 14, Te);
83
83
  }
84
- var Z = /* @__PURE__ */ ge(Ae, [["render", Te]]);
84
+ var Z = /* @__PURE__ */ ge(Me, [["render", We]]);
85
85
  const re = Object.assign(Z, {
86
86
  install: (e, l) => {
87
87
  var t;
88
- const s = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
89
- e.component(s + Z.name, Z);
88
+ const r = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
89
+ e.component(r + Z.name, Z);
90
90
  }
91
- }), We = U({
91
+ }), Ke = V({
92
92
  name: "IconLink",
93
93
  props: {
94
94
  size: {
@@ -117,23 +117,23 @@ const re = Object.assign(Z, {
117
117
  setup(e, {
118
118
  emit: l
119
119
  }) {
120
- const t = be("icon"), s = A(() => [t, `${t}-link`, {
120
+ const t = be("icon"), r = A(() => [t, `${t}-link`, {
121
121
  [`${t}-spin`]: e.spin
122
- }]), f = A(() => {
123
- const n = {};
124
- return e.size && (n.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
122
+ }]), i = A(() => {
123
+ const s = {};
124
+ return e.size && (s.fontSize = ke(e.size) ? `${e.size}px` : e.size), e.rotate && (s.transform = `rotate(${e.rotate}deg)`), s;
125
125
  });
126
126
  return {
127
- cls: s,
128
- innerStyle: f,
129
- onClick: (n) => {
130
- l("click", n);
127
+ cls: r,
128
+ innerStyle: i,
129
+ onClick: (s) => {
130
+ l("click", s);
131
131
  }
132
132
  };
133
133
  }
134
- }), Ke = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
135
- function He(e, l, t, s, f, d) {
136
- return o(), _("svg", {
134
+ }), He = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
135
+ function Ze(e, l, t, r, i, p) {
136
+ return o(), h("svg", {
137
137
  viewBox: "0 0 48 48",
138
138
  fill: "none",
139
139
  xmlns: "http://www.w3.org/2000/svg",
@@ -143,27 +143,27 @@ function He(e, l, t, s, f, d) {
143
143
  "stroke-width": e.strokeWidth,
144
144
  "stroke-linecap": e.strokeLinecap,
145
145
  "stroke-linejoin": e.strokeLinejoin,
146
- onClick: l[0] || (l[0] = (...n) => e.onClick && e.onClick(...n))
147
- }, l[1] || (l[1] = [F("path", {
146
+ onClick: l[0] || (l[0] = (...s) => e.onClick && e.onClick(...s))
147
+ }, l[1] || (l[1] = [B("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, Ke);
149
+ }, null, -1)]), 14, He);
150
150
  }
151
- var G = /* @__PURE__ */ ge(We, [["render", He]]);
152
- const Ze = Object.assign(G, {
151
+ var G = /* @__PURE__ */ ge(Ke, [["render", Ze]]);
152
+ const Ge = Object.assign(G, {
153
153
  install: (e, l) => {
154
154
  var t;
155
- const s = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
156
- e.component(s + G.name, G);
155
+ const r = (t = l == null ? void 0 : l.iconPrefix) != null ? t : "";
156
+ e.component(r + G.name, G);
157
157
  }
158
- }), Ge = /* @__PURE__ */ U({
158
+ }), Je = /* @__PURE__ */ V({
159
159
  __name: "FeedbackRefresh",
160
160
  setup(e) {
161
- return (l, t) => (o(), g(a(Oe), {
161
+ return (l, t) => (o(), g(a(Ae), {
162
162
  class: "icon",
163
163
  icon: "mingcute:refresh-2-line"
164
164
  }));
165
165
  }
166
- }), Je = /* @__PURE__ */ N(Ge, [["__scopeId", "data-v-33249ffb"]]), Qe = ["src"], Xe = /* @__PURE__ */ U({
166
+ }), Qe = /* @__PURE__ */ D(Je, [["__scopeId", "data-v-64bb6fc2"]]), Xe = ["src"], Ye = /* @__PURE__ */ V({
167
167
  __name: "FeedbackBubbleEnd",
168
168
  props: {
169
169
  value: {
@@ -199,11 +199,11 @@ const Ze = Object.assign(G, {
199
199
  setup(e, {
200
200
  emit: l
201
201
  }) {
202
- const t = e, s = l;
203
- function f() {
204
- s("refresh");
202
+ const t = e, r = l;
203
+ function i() {
204
+ r("refresh");
205
205
  }
206
- return (d, n) => (o(), g(a(ve), {
206
+ return (p, s) => (o(), g(a(ve), {
207
207
  placement: "end",
208
208
  style: W(t.bubbleStyle),
209
209
  styles: {
@@ -212,35 +212,35 @@ const Ze = Object.assign(G, {
212
212
  }
213
213
  }
214
214
  }, {
215
- avatar: r(() => [u(a(me), null, {
216
- default: r(() => [F("img", {
215
+ avatar: n(() => [d(a(me), null, {
216
+ default: n(() => [B("img", {
217
217
  alt: "avatar",
218
218
  src: t.avatarUrl
219
- }, null, 8, Qe)]),
219
+ }, null, 8, Xe)]),
220
220
  _: 1
221
221
  })]),
222
- message: r(() => [t.type === "text" ? (o(), _(z, {
222
+ message: n(() => [t.type === "text" ? (o(), h(q, {
223
223
  key: 0
224
- }, [x(L(t.value), 1)], 64)) : t.type === "image" ? (o(), g(a(fe), {
224
+ }, [C(U(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"])) : B("", !0)]),
230
- footer: r(() => [u(a(pe), null, {
231
- default: r(() => [t.showClipboard && t.type === "text" ? (o(), g(ye, {
229
+ }, null, 8, ["src"])) : L("", !0)]),
230
+ footer: n(() => [d(a(pe), null, {
231
+ default: n(() => [t.showClipboard && t.type === "text" ? (o(), g(ye, {
232
232
  key: 0,
233
233
  value: e.value
234
- }, null, 8, ["value"])) : B("", !0), t.showRefresh ? (o(), g(Je, {
234
+ }, null, 8, ["value"])) : L("", !0), t.showRefresh ? (o(), g(Qe, {
235
235
  key: 1,
236
- onClick: f
237
- })) : B("", !0)]),
236
+ onClick: i
237
+ })) : L("", !0)]),
238
238
  _: 1
239
239
  })]),
240
240
  _: 1
241
241
  }, 8, ["style", "styles"]));
242
242
  }
243
- }), oe = /* @__PURE__ */ N(Xe, [["__scopeId", "data-v-2e1b7acf"]]), Ye = ["src"], et = /* @__PURE__ */ U({
243
+ }), oe = /* @__PURE__ */ D(Ye, [["__scopeId", "data-v-2e1b7acf"]]), et = ["src"], tt = /* @__PURE__ */ V({
244
244
  __name: "FeedbackBubbleStart",
245
245
  props: {
246
246
  value: {
@@ -273,7 +273,7 @@ const Ze = Object.assign(G, {
273
273
  emit: l
274
274
  }) {
275
275
  const t = e;
276
- return (s, f) => (o(), g(a(ve), {
276
+ return (r, i) => (o(), g(a(ve), {
277
277
  placement: "start",
278
278
  style: W(t.bubbleStyle),
279
279
  styles: {
@@ -282,94 +282,94 @@ const Ze = Object.assign(G, {
282
282
  }
283
283
  }
284
284
  }, {
285
- avatar: r(() => [u(a(me), null, {
286
- default: r(() => [F("img", {
285
+ avatar: n(() => [d(a(me), null, {
286
+ default: n(() => [B("img", {
287
287
  alt: "avatar",
288
288
  src: t.avatarUrl
289
- }, null, 8, Ye)]),
289
+ }, null, 8, et)]),
290
290
  _: 1
291
291
  })]),
292
- message: r(() => [t.type === "text" ? (o(), _(z, {
292
+ message: n(() => [t.type === "text" ? (o(), h(q, {
293
293
  key: 0
294
- }, [x(L(t.value), 1)], 64)) : t.type === "image" ? (o(), g(a(fe), {
294
+ }, [C(U(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"])) : B("", !0)]),
300
- footer: r(() => [u(a(pe), null, {
301
- default: r(() => [t.showClipboard && t.type === "text" ? (o(), g(ye, {
299
+ }, null, 8, ["src"])) : L("", !0)]),
300
+ footer: n(() => [d(a(pe), null, {
301
+ default: n(() => [t.showClipboard && t.type === "text" ? (o(), g(ye, {
302
302
  key: 0,
303
303
  value: t.value
304
- }, null, 8, ["value"])) : B("", !0)]),
304
+ }, null, 8, ["value"])) : L("", !0)]),
305
305
  _: 1
306
306
  })]),
307
307
  _: 1
308
308
  }, 8, ["style", "styles"]));
309
309
  }
310
- }), ie = /* @__PURE__ */ N(et, [["__scopeId", "data-v-37150f19"]]), k = [];
310
+ }), ie = /* @__PURE__ */ D(tt, [["__scopeId", "data-v-37150f19"]]), k = [];
311
311
  for (let e = 0; e < 256; ++e)
312
312
  k.push((e + 256).toString(16).slice(1));
313
- function tt(e, l = 0) {
313
+ function at(e, l = 0) {
314
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
316
  let J;
317
- const at = new Uint8Array(16);
318
- function lt() {
317
+ const lt = new Uint8Array(16);
318
+ function nt() {
319
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
322
  J = crypto.getRandomValues.bind(crypto);
323
323
  }
324
- return J(at);
324
+ return J(lt);
325
325
  }
326
- const nt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
327
- randomUUID: nt
326
+ const st = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ue = {
327
+ randomUUID: st
328
328
  };
329
329
  function de(e, l, t) {
330
- var f;
330
+ var i;
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)) ?? lt();
335
- if (s.length < 16)
334
+ const r = e.random ?? ((i = e.rng) == null ? void 0 : i.call(e)) ?? nt();
335
+ if (r.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, tt(s);
337
+ return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, at(r);
338
338
  }
339
- function st(e, l = {}) {
339
+ function rt(e, l = {}) {
340
340
  const {
341
341
  interval: t = 2e3,
342
- immediate: s = !1,
343
- autoStart: f = !1
344
- } = l, d = y(!1);
345
- let n = null;
346
- async function S() {
342
+ immediate: r = !1,
343
+ autoStart: i = !1
344
+ } = l, p = y(!1);
345
+ let s = null;
346
+ async function w() {
347
347
  try {
348
348
  await e();
349
- } catch (I) {
350
- console.error("轮询回调执行失败:", I);
349
+ } catch ($) {
350
+ console.error("轮询回调执行失败:", $);
351
351
  }
352
352
  }
353
- function i() {
354
- if (d.value) {
353
+ function m() {
354
+ if (p.value) {
355
355
  console.warn("轮询已在运行中");
356
356
  return;
357
357
  }
358
- d.value = !0, s && S(), n = setInterval(S, t);
358
+ p.value = !0, r && w(), s = setInterval(w, t);
359
359
  }
360
- function m() {
361
- n && (clearInterval(n), n = null), d.value = !1;
360
+ function u() {
361
+ s && (clearInterval(s), s = null), p.value = !1;
362
362
  }
363
- function h() {
364
- m(), i();
363
+ function R() {
364
+ u(), m();
365
365
  }
366
- return f && i(), Ie(() => {
367
- m();
366
+ return i && m(), Re(() => {
367
+ u();
368
368
  }), {
369
- isPolling: d,
370
- start: i,
371
- stop: m,
372
- restart: h
369
+ isPolling: p,
370
+ start: m,
371
+ stop: u,
372
+ restart: R
373
373
  };
374
374
  }
375
375
  const Y = [{
@@ -411,16 +411,16 @@ const Y = [{
411
411
  }, {
412
412
  key: "closed",
413
413
  label: "已关闭"
414
- }], rt = {
414
+ }], ot = {
415
415
  class: "FeedBackDetails"
416
- }, ot = {
417
- class: "content"
418
416
  }, it = {
417
+ class: "content"
418
+ }, ut = {
419
419
  key: 1,
420
420
  class: "Bubbles"
421
- }, ut = {
421
+ }, dt = {
422
422
  class: "sender-container"
423
- }, dt = /* @__PURE__ */ U({
423
+ }, ct = /* @__PURE__ */ V({
424
424
  __name: "FeedbackDetails",
425
425
  props: {
426
426
  id: {
@@ -435,18 +435,19 @@ const Y = [{
435
435
  }
436
436
  },
437
437
  setup(e) {
438
- function l(c) {
438
+ const l = {
439
+ color: "var(--huyooo-accent-primary)"
440
+ };
441
+ function t(c) {
439
442
  return c === "inProgress" ? "orangered" : c === "pending" ? "gold" : c === "resolved" ? "green" : c === "closed" ? "gray" : "arcoblue";
440
443
  }
441
- const t = y(""), s = y(!1), f = [{
444
+ const r = y(""), i = y(!1), p = [{
442
445
  key: "1",
443
446
  label: "如何补充更多信息",
444
447
  description: "请详细描述您的问题或需求,以便我们更好地为您服务。",
445
448
  disabled: !0,
446
449
  icon: ae(re, {
447
- style: {
448
- color: "#722ED1"
449
- }
450
+ style: l
450
451
  })
451
452
  }, {
452
453
  key: "3",
@@ -454,21 +455,19 @@ const Y = [{
454
455
  description: "如有相关附件(如日志、截图等),请一并上传以便加快处理速度。",
455
456
  disabled: !0,
456
457
  icon: ae(re, {
457
- style: {
458
- color: "#722ED1"
459
- }
458
+ style: l
460
459
  })
461
- }], d = y(null), n = y(null), S = () => {
460
+ }], s = y(null), w = y(null), m = () => {
462
461
  var c;
463
- (c = d.value) == null || c.focus({
462
+ (c = s.value) == null || c.focus({
464
463
  cursor: "end"
465
- }), P(() => {
466
- n.value && (n.value.scrollTop = n.value.scrollHeight);
464
+ }), j(() => {
465
+ w.value && (w.value.scrollTop = w.value.scrollHeight);
467
466
  });
468
- }, i = e;
469
- function m() {
467
+ }, u = e;
468
+ function R() {
470
469
  }
471
- const h = y(!1), I = y([]), C = y(void 0), w = y({
470
+ const $ = y(!1), _ = y([]), x = y(void 0), S = y({
472
471
  id: void 0,
473
472
  title: "",
474
473
  description: "",
@@ -476,27 +475,27 @@ const Y = [{
476
475
  status: "newFeedback",
477
476
  reply: "",
478
477
  createAt: ""
479
- }), q = () => {
478
+ }), v = () => {
480
479
  const {
481
480
  uploadFile: c
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) => {
481
+ } = De(), b = document.createElement("input");
482
+ b.type = "file", b.accept = "image/*", b.style.display = "none", document.body.append(b), b.addEventListener("change", async (f) => {
484
483
  var te;
485
- const ee = (te = p.target.files) == null ? void 0 : te[0];
484
+ const ee = (te = f.target.files) == null ? void 0 : te[0];
486
485
  if (ee) {
487
- s.value = !0;
486
+ i.value = !0;
488
487
  try {
489
488
  c({
490
- bucketId: De.feedbackBucketId,
489
+ bucketId: Pe.feedbackBucketId,
491
490
  file: ee,
492
- onFileFinish(we, wt, xe) {
491
+ onFileFinish(xe, xt, Se) {
493
492
  const K = {
494
493
  messageId: de(),
495
- senderRole: i.senderRole,
494
+ senderRole: u.senderRole,
496
495
  type: "image",
497
- key: xe.Key
498
- }, Se = {
499
- id: i.id,
496
+ key: Se.Key
497
+ }, Ie = {
498
+ id: u.id,
500
499
  message: {
501
500
  type: K.type,
502
501
  key: K.key,
@@ -506,199 +505,199 @@ const Y = [{
506
505
  (async () => {
507
506
  const {
508
507
  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(() => {
511
- S();
512
- }), s.value = !1, i.senderRole === "support" && w.value.status === "newFeedback" && R()) : s.value = !1;
508
+ } = await P.feedbackCenter.update.messages.post(Ie);
509
+ M ? (_.value.push(M.message), typeof M.message.seq == "number" && (x.value = M.message.seq), j(() => {
510
+ m();
511
+ }), i.value = !1, u.senderRole === "support" && S.value.status === "newFeedback" && I()) : i.value = !1;
513
512
  })();
514
513
  },
515
- onError(we) {
516
- s.value = !1;
514
+ onError(xe) {
515
+ i.value = !1;
517
516
  }
518
517
  });
519
518
  } catch {
520
- s.value = !1;
519
+ i.value = !1;
521
520
  }
522
521
  }
523
522
  b.remove();
524
523
  }), b.click();
525
524
  };
526
- async function v(c) {
527
- s.value = !0, de();
525
+ async function z(c) {
526
+ i.value = !0, de();
528
527
  const b = {
529
- senderRole: i.senderRole,
528
+ senderRole: u.senderRole,
530
529
  type: "text",
531
530
  content: c
532
- }, p = {
533
- id: i.id,
531
+ }, f = {
532
+ id: u.id,
534
533
  message: {
535
534
  type: b.type,
536
535
  content: b.content,
537
536
  senderRole: b.senderRole
538
537
  }
539
538
  }, {
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(() => {
543
- S();
544
- }), t.value = "", i.senderRole === "support" && w.value.status === "newFeedback" && R());
539
+ data: N
540
+ } = await P.feedbackCenter.update.messages.post(f);
541
+ i.value = !1, N && (_.value.push(N.message), typeof N.message.seq == "number" && (x.value = N.message.seq), j(() => {
542
+ m();
543
+ }), r.value = "", u.senderRole === "support" && S.value.status === "newFeedback" && I());
545
544
  }
546
- function V() {
547
- v(t.value);
545
+ function F() {
546
+ z(r.value);
548
547
  }
549
- async function R() {
550
- h.value = !0;
548
+ async function I() {
549
+ $.value = !0;
551
550
  const {
552
551
  data: c
553
- } = await E.feedbackCenter.findOne.post({
554
- id: i.id
552
+ } = await P.feedbackCenter.findOne.post({
553
+ id: u.id
555
554
  });
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));
555
+ $.value = !1, c && (S.value = c, c.messages && c.messages.length > 0 && (_.value = c.messages, x.value = c.messages.at(-1).seq));
557
556
  }
558
- async function $() {
557
+ async function Ce() {
559
558
  const {
560
559
  data: c
561
- } = await E.messages.list.incremental.post({
562
- id: i.id,
563
- lastSeq: C.value
560
+ } = await P.messages.list.incremental.post({
561
+ id: u.id,
562
+ lastSeq: x.value
564
563
  });
565
- c && c.messages && c.messages.length > 0 && (I.value.push(...c.messages), C.value = c.messages.at(-1).seq, P(() => {
566
- S();
564
+ c && c.messages && c.messages.length > 0 && (_.value.push(...c.messages), x.value = c.messages.at(-1).seq, j(() => {
565
+ m();
567
566
  }));
568
567
  }
569
- async function Ce() {
570
- h.value = !0;
568
+ async function we() {
569
+ $.value = !0;
571
570
  const {
572
571
  data: c
573
- } = await E.messages.list.post({
574
- id: i.id
572
+ } = await P.messages.list.post({
573
+ id: u.id
575
574
  });
576
- h.value = !1, c && c.messages && c.messages.length > 0 && (I.value.push(...c.messages), C.value = c.messages.at(-1).seq, P(() => {
577
- S();
575
+ $.value = !1, c && c.messages && c.messages.length > 0 && (_.value.push(...c.messages), x.value = c.messages.at(-1).seq, j(() => {
576
+ m();
578
577
  }));
579
578
  }
580
- return st($, {
579
+ return rt(Ce, {
581
580
  interval: 2e3,
582
581
  autoStart: !0
583
- }), R(), Ce(), (c, b) => (o(), _("div", rt, [F("div", {
582
+ }), I(), we(), (c, b) => (o(), h("div", ot, [B("div", {
584
583
  ref_key: "scrollableContentRef",
585
- ref: n,
584
+ ref: w,
586
585
  class: "scrollable-content"
587
- }, [u(a(Re), {
586
+ }, [d(a($e), {
588
587
  title: "基本信息"
589
588
  }, {
590
- title: r(() => [...b[1] || (b[1] = [F("div", {
589
+ title: n(() => [...b[1] || (b[1] = [B("div", {
591
590
  class: "title"
592
591
  }, "基本信息", -1)])]),
593
- default: r(() => [u(a(H), {
592
+ default: n(() => [d(a(H), {
594
593
  label: "标题:",
595
594
  span: 3
596
595
  }, {
597
- default: r(() => [x(L(w.value.title), 1)]),
596
+ default: n(() => [C(U(S.value.title), 1)]),
598
597
  _: 1
599
- }), u(a(H), {
598
+ }), d(a(H), {
600
599
  label: "反馈类型:",
601
600
  span: 1
602
601
  }, {
603
- default: r(() => [u(a(j), {
602
+ default: n(() => [d(a(E), {
604
603
  color: "arcoblue"
605
604
  }, {
606
- default: r(() => {
607
- var p;
608
- return [x(L((p = a(O)(a(Y), w.value.type)) == null ? void 0 : p.label), 1)];
605
+ default: n(() => {
606
+ var f;
607
+ return [C(U((f = a(O)(a(Y), S.value.type)) == null ? void 0 : f.label), 1)];
609
608
  }),
610
609
  _: 1
611
610
  })]),
612
611
  _: 1
613
- }), u(a(H), {
612
+ }), d(a(H), {
614
613
  label: "状态:",
615
614
  span: 1
616
615
  }, {
617
- default: r(() => [u(a(j), {
618
- color: l(w.value.status)
616
+ default: n(() => [d(a(E), {
617
+ color: t(S.value.status)
619
618
  }, {
620
- default: r(() => {
621
- var p;
622
- return [x(L((p = a(O)(a(he), w.value.status)) == null ? void 0 : p.label), 1)];
619
+ default: n(() => {
620
+ var f;
621
+ return [C(U((f = a(O)(a(he), S.value.status)) == null ? void 0 : f.label), 1)];
623
622
  }),
624
623
  _: 1
625
624
  }, 8, ["color"])]),
626
625
  _: 1
627
626
  })]),
628
627
  _: 1
629
- }), F("div", ot, [b[2] || (b[2] = F("div", {
628
+ }), B("div", it, [b[2] || (b[2] = B("div", {
630
629
  class: "title"
631
- }, "沟通记录", -1)), u(a($e), {
630
+ }, "沟通记录", -1)), d(a(Fe), {
632
631
  class: "messageContent",
633
- loading: h.value
632
+ loading: $.value
634
633
  }, {
635
- default: r(() => [I.value.length == 0 ? (o(), g(a(Pe), {
634
+ default: n(() => [_.value.length == 0 ? (o(), g(a(Ee), {
636
635
  key: 0,
637
636
  title: "☕️ 温馨提示!",
638
- items: f,
637
+ items: p,
639
638
  wrap: "",
640
639
  vertical: !1,
641
- onOnItemClick: m
642
- })) : (o(), _("div", it, [(o(!0), _(z, null, Q(I.value, (p, D) => (o(), _(z, {
643
- key: D
644
- }, [p.type === "text" ? (o(), _(z, {
640
+ onOnItemClick: R
641
+ })) : (o(), h("div", ut, [(o(!0), h(q, null, Q(_.value, (f, N) => (o(), h(q, {
642
+ key: N
643
+ }, [f.type === "text" ? (o(), h(q, {
645
644
  key: 0
646
- }, [p.senderRole !== i.senderRole ? (o(), g(ie, {
645
+ }, [f.senderRole !== u.senderRole ? (o(), g(ie, {
647
646
  key: 0,
648
- value: p.content,
649
- type: p.type,
650
- "avatar-url": p.senderInfo.avatarUrl
647
+ value: f.content,
648
+ type: f.type,
649
+ "avatar-url": f.senderInfo.avatarUrl
651
650
  }, null, 8, ["value", "type", "avatar-url"])) : (o(), g(oe, {
652
651
  key: 1,
653
- value: p.content,
654
- "avatar-url": p.senderInfo.avatarUrl,
655
- type: p.type
656
- }, null, 8, ["value", "avatar-url", "type"]))], 64)) : (o(), _(z, {
652
+ value: f.content,
653
+ "avatar-url": f.senderInfo.avatarUrl,
654
+ type: f.type
655
+ }, null, 8, ["value", "avatar-url", "type"]))], 64)) : (o(), h(q, {
657
656
  key: 1
658
- }, [p.senderRole !== i.senderRole ? (o(), g(ie, {
657
+ }, [f.senderRole !== u.senderRole ? (o(), g(ie, {
659
658
  key: 0,
660
- type: p.type,
661
- value: p.url,
659
+ type: f.type,
660
+ value: f.url,
662
661
  "avatar-text": "S",
663
- "avatar-url": p.senderInfo.avatarUrl
662
+ "avatar-url": f.senderInfo.avatarUrl
664
663
  }, null, 8, ["type", "value", "avatar-url"])) : (o(), g(oe, {
665
664
  key: 1,
666
- type: p.type,
667
- value: p.url,
668
- "avatar-url": p.senderInfo.avatarUrl
665
+ type: f.type,
666
+ value: f.url,
667
+ "avatar-url": f.senderInfo.avatarUrl
669
668
  }, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))]))]),
670
669
  _: 1
671
- }, 8, ["loading"])])], 512), F("div", ut, [u(a(je), {
670
+ }, 8, ["loading"])])], 512), B("div", dt, [d(a(Oe), {
672
671
  ref_key: "senderRef",
673
- ref: d,
674
- value: t.value,
675
- "onUpdate:value": b[0] || (b[0] = (p) => t.value = p),
672
+ ref: s,
673
+ value: r.value,
674
+ "onUpdate:value": b[0] || (b[0] = (f) => r.value = f),
676
675
  placeholder: "请输入你要咨询的问题?",
677
- loading: s.value,
676
+ loading: i.value,
678
677
  "allow-speech": !1,
679
- "read-only": s.value,
680
- onSubmit: V
678
+ "read-only": i.value,
679
+ onSubmit: F
681
680
  }, {
682
- prefix: r(() => [u(a(X), {
681
+ prefix: n(() => [d(a(X), {
683
682
  type: "text",
684
683
  class: "IconLink",
685
- onClick: q
684
+ onClick: v
686
685
  }, {
687
- icon: r(() => [u(a(Ze))]),
686
+ icon: n(() => [d(a(Ge))]),
688
687
  _: 1
689
688
  })]),
690
689
  _: 1
691
690
  }, 8, ["value", "loading", "read-only"])])]));
692
691
  }
693
- }), ct = /* @__PURE__ */ N(dt, [["__scopeId", "data-v-d82b1c96"]]), pt = {
692
+ }), pt = /* @__PURE__ */ D(ct, [["__scopeId", "data-v-de790d44"]]), ft = {
694
693
  class: "FeedBackFrom"
695
- }, ft = /* @__PURE__ */ U({
694
+ }, mt = /* @__PURE__ */ V({
696
695
  __name: "FeedbackForm",
697
696
  emits: ["confirm"],
698
697
  setup(e, {
699
698
  emit: l
700
699
  }) {
701
- const t = l, s = y(), f = y(!1), d = y({
700
+ const t = l, r = y(), i = y(!1), p = y({
702
701
  id: void 0,
703
702
  title: "",
704
703
  type: "bugReports",
@@ -707,29 +706,29 @@ const Y = [{
707
706
  screenshots: []
708
707
  });
709
708
  y([]);
710
- async function n() {
711
- if (!await s.value.validate()) {
712
- f.value = !0;
709
+ async function s() {
710
+ if (!await r.value.validate()) {
711
+ i.value = !0;
713
712
  const {
714
- error: i
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
713
+ error: m
714
+ } = await P.feedbackCenter.create.post({
715
+ title: p.value.title,
716
+ type: p.value.type,
717
+ priority: p.value.priority,
718
+ description: p.value.description
720
719
  // screenshots 字段暂不支持,后续可能需要通过消息发送
721
720
  });
722
- f.value = !1, i || (Ue.success("新建反馈成功"), t("confirm"));
721
+ i.value = !1, m || (Ve.success("新建反馈成功"), t("confirm"));
723
722
  }
724
723
  }
725
- return (S, i) => (o(), _("div", pt, [u(a(Fe), {
724
+ return (w, m) => (o(), h("div", ft, [d(a(Be), {
726
725
  ref_key: "formRef",
727
- ref: s,
728
- model: d.value,
726
+ ref: r,
727
+ model: p.value,
729
728
  "auto-label-width": "",
730
729
  layout: "vertical"
731
730
  }, {
732
- default: r(() => [u(a(T), {
731
+ default: n(() => [d(a(T), {
733
732
  field: "title",
734
733
  label: "标题",
735
734
  rules: [{
@@ -737,13 +736,13 @@ const Y = [{
737
736
  message: "请输入标题"
738
737
  }]
739
738
  }, {
740
- default: r(() => [u(a(Be), {
741
- modelValue: d.value.title,
742
- "onUpdate:modelValue": i[0] || (i[0] = (m) => d.value.title = m),
739
+ default: n(() => [d(a(Le), {
740
+ modelValue: p.value.title,
741
+ "onUpdate:modelValue": m[0] || (m[0] = (u) => p.value.title = u),
743
742
  placeholder: "请输入标题"
744
743
  }, null, 8, ["modelValue"])]),
745
744
  _: 1
746
- }), u(a(T), {
745
+ }), d(a(T), {
747
746
  field: "type",
748
747
  label: "反馈类型",
749
748
  rules: [{
@@ -751,22 +750,22 @@ const Y = [{
751
750
  message: "请选择反馈类型"
752
751
  }]
753
752
  }, {
754
- default: r(() => [u(a(le), {
755
- modelValue: d.value.type,
756
- "onUpdate:modelValue": i[1] || (i[1] = (m) => d.value.type = m),
753
+ default: n(() => [d(a(le), {
754
+ modelValue: p.value.type,
755
+ "onUpdate:modelValue": m[1] || (m[1] = (u) => p.value.type = u),
757
756
  placeholder: "请选择反馈类型"
758
757
  }, {
759
- default: r(() => [(o(!0), _(z, null, Q(a(Y), (m, h) => (o(), g(a(ne), {
760
- key: h,
761
- value: m.key
758
+ default: n(() => [(o(!0), h(q, null, Q(a(Y), (u, R) => (o(), g(a(ne), {
759
+ key: R,
760
+ value: u.key
762
761
  }, {
763
- default: r(() => [x(L(m.label), 1)]),
762
+ default: n(() => [C(U(u.label), 1)]),
764
763
  _: 2
765
764
  }, 1032, ["value"]))), 128))]),
766
765
  _: 1
767
766
  }, 8, ["modelValue"])]),
768
767
  _: 1
769
- }), u(a(T), {
768
+ }), d(a(T), {
770
769
  field: "priority",
771
770
  label: "优先级",
772
771
  rules: [{
@@ -774,22 +773,22 @@ const Y = [{
774
773
  message: "请选择优先级"
775
774
  }]
776
775
  }, {
777
- default: r(() => [u(a(le), {
778
- modelValue: d.value.priority,
779
- "onUpdate:modelValue": i[2] || (i[2] = (m) => d.value.priority = m),
776
+ default: n(() => [d(a(le), {
777
+ modelValue: p.value.priority,
778
+ "onUpdate:modelValue": m[2] || (m[2] = (u) => p.value.priority = u),
780
779
  placeholder: "请选择优先级"
781
780
  }, {
782
- default: r(() => [(o(!0), _(z, null, Q(a(_e), (m, h) => (o(), g(a(ne), {
783
- key: h,
784
- value: m.key
781
+ default: n(() => [(o(!0), h(q, null, Q(a(_e), (u, R) => (o(), g(a(ne), {
782
+ key: R,
783
+ value: u.key
785
784
  }, {
786
- default: r(() => [x(L(m.label), 1)]),
785
+ default: n(() => [C(U(u.label), 1)]),
787
786
  _: 2
788
787
  }, 1032, ["value"]))), 128))]),
789
788
  _: 1
790
789
  }, 8, ["modelValue"])]),
791
790
  _: 1
792
- }), u(a(T), {
791
+ }), d(a(T), {
793
792
  field: "description",
794
793
  label: "问题描述",
795
794
  rules: [{
@@ -797,9 +796,9 @@ const Y = [{
797
796
  message: "请输入问题描述"
798
797
  }]
799
798
  }, {
800
- default: r(() => [u(a(Le), {
801
- modelValue: d.value.description,
802
- "onUpdate:modelValue": i[3] || (i[3] = (m) => d.value.description = m),
799
+ default: n(() => [d(a(Ue), {
800
+ modelValue: p.value.description,
801
+ "onUpdate:modelValue": m[3] || (m[3] = (u) => p.value.description = u),
803
802
  placeholder: "请输入问题描述",
804
803
  "allow-clear": "",
805
804
  "auto-size": {
@@ -807,40 +806,40 @@ const Y = [{
807
806
  }
808
807
  }, null, 8, ["modelValue"])]),
809
808
  _: 1
810
- }), B("", !0), u(a(X), {
811
- loading: f.value,
809
+ }), L("", !0), d(a(X), {
810
+ loading: i.value,
812
811
  type: "primary",
813
- onClick: n
812
+ onClick: s
814
813
  }, {
815
- default: r(() => [...i[4] || (i[4] = [x(" 提交 ", -1)])]),
814
+ default: n(() => [...m[4] || (m[4] = [C(" 提交 ", -1)])]),
816
815
  _: 1
817
816
  }, 8, ["loading"])]),
818
817
  _: 1
819
818
  }, 8, ["model"])]));
820
819
  }
821
- }), mt = /* @__PURE__ */ N(ft, [["__scopeId", "data-v-bf24e737"]]), vt = {
820
+ }), vt = /* @__PURE__ */ D(mt, [["__scopeId", "data-v-bf24e737"]]), yt = {
822
821
  class: "messages"
823
- }, yt = {
822
+ }, gt = {
824
823
  key: 1,
825
824
  class: "list"
826
- }, gt = /* @__PURE__ */ U({
825
+ }, bt = /* @__PURE__ */ V({
827
826
  __name: "FeedbackList",
828
827
  emits: ["toDetail"],
829
828
  setup(e, {
830
829
  emit: l
831
830
  }) {
832
- const t = y(!0), s = y([]), f = y(!1), d = y(""), n = y({
831
+ const t = y(!0), r = y([]), i = y(!1), p = y(""), s = y({
833
832
  total: 0,
834
833
  current: 1,
835
834
  pageSize: 10
836
835
  });
837
- function S() {
836
+ function w() {
838
837
  t.value = !0;
839
838
  }
840
- function i(v) {
841
- d.value = v.id, t.value = !1;
839
+ function m(v) {
840
+ p.value = v.id, t.value = !1;
842
841
  }
843
- const m = [{
842
+ const u = [{
844
843
  dataIndex: "title",
845
844
  title: "标题",
846
845
  minWidth: 120,
@@ -872,127 +871,127 @@ const Y = [{
872
871
  fixed: "right",
873
872
  width: 80
874
873
  }];
875
- function h(v) {
874
+ function R(v) {
876
875
  return v === "inProgress" ? "orangered" : v === "pending" ? "gold" : v === "resolved" ? "green" : v === "closed" ? "gray" : "arcoblue";
877
876
  }
878
- function I(v) {
877
+ function $(v) {
879
878
  return v === "urgent" ? "red" : v === "high" ? "orangered" : v === "low" ? "gray" : "blue";
880
879
  }
881
- async function C() {
882
- f.value = !0;
880
+ async function _() {
881
+ i.value = !0;
883
882
  const {
884
883
  data: v
885
- } = await E.feedbackCenter.own.post({
886
- current: n.value.current,
887
- pageSize: n.value.pageSize
884
+ } = await P.feedbackCenter.own.post({
885
+ current: s.value.current,
886
+ pageSize: s.value.pageSize
888
887
  });
889
- f.value = !1, v && (s.value = v.items, n.value.total = v.count);
888
+ i.value = !1, v && (r.value = v.items, s.value.total = v.count);
890
889
  }
891
- const w = (v) => {
892
- n.value.current = v, C();
893
- }, q = (v) => {
894
- n.value.current = 1, n.value.pageSize = v, C();
890
+ const x = (v) => {
891
+ s.value.current = v, _();
892
+ }, S = (v) => {
893
+ s.value.current = 1, s.value.pageSize = v, _();
895
894
  };
896
- return C(), (v, V) => (o(), _("div", vt, [t.value ? B("", !0) : (o(), g(a(Ve), {
895
+ return _(), (v, z) => (o(), h("div", yt, [t.value ? L("", !0) : (o(), g(a(ze), {
897
896
  key: 0,
898
897
  style: {
899
898
  "margin-bottom": "10px",
900
899
  cursor: "pointer"
901
900
  }
902
901
  }, {
903
- default: r(() => [u(a(se), {
902
+ default: n(() => [d(a(se), {
904
903
  style: {
905
904
  padding: "0px"
906
905
  },
907
- onClick: S
906
+ onClick: w
908
907
  }, {
909
- default: r(() => [...V[0] || (V[0] = [x("我的反馈", -1)])]),
908
+ default: n(() => [...z[0] || (z[0] = [C("我的反馈", -1)])]),
910
909
  _: 1
911
- }), u(a(se), {
910
+ }), d(a(se), {
912
911
  style: {
913
912
  padding: "0px"
914
913
  }
915
914
  }, {
916
- default: r(() => [...V[1] || (V[1] = [x("反馈详情", -1)])]),
915
+ default: n(() => [...z[1] || (z[1] = [C("反馈详情", -1)])]),
917
916
  _: 1
918
917
  })]),
919
918
  _: 1
920
- })), t.value ? (o(), _("div", yt, [u(Ne, {
921
- columns: m,
922
- data: s.value,
923
- loading: f.value,
924
- pagination: n.value,
925
- onPageChange: w,
926
- onPageSizeChange: q
919
+ })), t.value ? (o(), h("div", gt, [d(je, {
920
+ columns: u,
921
+ data: r.value,
922
+ loading: i.value,
923
+ pagination: s.value,
924
+ onPageChange: x,
925
+ onPageSizeChange: S
927
926
  }, {
928
- type: r(({
929
- record: R
930
- }) => [u(a(j), {
927
+ type: n(({
928
+ record: F
929
+ }) => [d(a(E), {
931
930
  color: "arcoblue"
932
931
  }, {
933
- default: r(() => {
934
- var $;
935
- return [x(L(($ = a(O)(a(Y), R.type)) == null ? void 0 : $.label), 1)];
932
+ default: n(() => {
933
+ var I;
934
+ return [C(U((I = a(O)(a(Y), F.type)) == null ? void 0 : I.label), 1)];
936
935
  }),
937
936
  _: 2
938
937
  }, 1024)]),
939
- priority: r(({
940
- record: R
941
- }) => [u(a(j), {
942
- color: I(R.priority)
938
+ priority: n(({
939
+ record: F
940
+ }) => [d(a(E), {
941
+ color: $(F.priority)
943
942
  }, {
944
- default: r(() => {
945
- var $;
946
- return [x(L((($ = a(O)(a(_e), R.priority)) == null ? void 0 : $.label) || "普通"), 1)];
943
+ default: n(() => {
944
+ var I;
945
+ return [C(U(((I = a(O)(a(_e), F.priority)) == null ? void 0 : I.label) || "普通"), 1)];
947
946
  }),
948
947
  _: 2
949
948
  }, 1032, ["color"])]),
950
- status: r(({
951
- record: R
952
- }) => [u(a(j), {
953
- color: h(R.status)
949
+ status: n(({
950
+ record: F
951
+ }) => [d(a(E), {
952
+ color: R(F.status)
954
953
  }, {
955
- default: r(() => {
956
- var $;
957
- return [x(L(($ = a(O)(a(he), R.status)) == null ? void 0 : $.label), 1)];
954
+ default: n(() => {
955
+ var I;
956
+ return [C(U((I = a(O)(a(he), F.status)) == null ? void 0 : I.label), 1)];
958
957
  }),
959
958
  _: 2
960
959
  }, 1032, ["color"])]),
961
- actions: r(({
962
- record: R
963
- }) => [u(a(X), {
960
+ actions: n(({
961
+ record: F
962
+ }) => [d(a(X), {
964
963
  type: "text",
965
- onClick: ($) => i(R)
964
+ onClick: (I) => m(F)
966
965
  }, {
967
- default: r(() => [...V[2] || (V[2] = [x("查看", -1)])]),
966
+ default: n(() => [...z[2] || (z[2] = [C("查看", -1)])]),
968
967
  _: 1
969
968
  }, 8, ["onClick"])]),
970
969
  _: 1
971
- }, 8, ["data", "loading", "pagination"])])) : (o(), g(ct, {
970
+ }, 8, ["data", "loading", "pagination"])])) : (o(), g(pt, {
972
971
  key: 2,
973
- id: d.value,
972
+ id: p.value,
974
973
  "sender-role": "user"
975
974
  }, null, 8, ["id"]))]));
976
975
  }
977
- }), bt = /* @__PURE__ */ N(gt, [["__scopeId", "data-v-a6a0f2d2"]]), kt = {
976
+ }), kt = /* @__PURE__ */ D(bt, [["__scopeId", "data-v-5fb9e85f"]]), _t = {
978
977
  key: 0,
979
978
  class: "content"
980
- }, _t = {
981
- class: "left"
982
979
  }, ht = {
980
+ class: "left"
981
+ }, Ct = {
983
982
  class: "right"
984
- }, Ct = /* @__PURE__ */ U({
983
+ }, wt = /* @__PURE__ */ V({
985
984
  __name: "FeedbackModal",
986
985
  emits: ["confirm", "cancel"],
987
986
  setup(e, {
988
987
  expose: l,
989
988
  emit: t
990
989
  }) {
991
- const s = y(!1), f = t;
992
- function d() {
993
- f("cancel");
990
+ const r = y(!1), i = t;
991
+ function p() {
992
+ i("cancel");
994
993
  }
995
- const n = y(["FeedbackList"]), S = y([{
994
+ const s = y(["FeedbackList"]), w = y([{
996
995
  name: "我的反馈",
997
996
  path: "FeedbackList",
998
997
  meta: {
@@ -1004,21 +1003,21 @@ const Y = [{
1004
1003
  meta: {
1005
1004
  icon: "mingcute:cube-3d-fill"
1006
1005
  }
1007
- }]), i = A(() => n.value.length !== 0 ? n.value[0] : "");
1008
- function m() {
1009
- n.value = ["FeedbackList"];
1006
+ }]), m = A(() => s.value.length !== 0 ? s.value[0] : "");
1007
+ function u() {
1008
+ s.value = ["FeedbackList"];
1010
1009
  }
1011
- function h(C) {
1012
- n.value = [C.path];
1010
+ function R(_) {
1011
+ s.value = [_.path];
1013
1012
  }
1014
- function I(C) {
1015
- s.value = C;
1013
+ function $(_) {
1014
+ r.value = _;
1016
1015
  }
1017
1016
  return l({
1018
- setData: I
1019
- }), (C, w) => (o(), g(a(ze), {
1020
- visible: s.value,
1021
- "onUpdate:visible": w[1] || (w[1] = (q) => s.value = q),
1017
+ setData: $
1018
+ }), (_, x) => (o(), g(a(qe), {
1019
+ visible: r.value,
1020
+ "onUpdate:visible": x[1] || (x[1] = (S) => r.value = S),
1022
1021
  loading: !1,
1023
1022
  "body-class": "AppMessagebodyClass",
1024
1023
  "mask-closable": !1,
@@ -1026,29 +1025,29 @@ const Y = [{
1026
1025
  width: "auto",
1027
1026
  title: "用户反馈",
1028
1027
  "hide-title": !1,
1029
- onCancel: d
1028
+ onCancel: p
1030
1029
  }, {
1031
- default: r(() => [s.value ? (o(), _("div", kt, [F("div", _t, [u(qe, {
1032
- "selected-keys": n.value,
1033
- "onUpdate:selectedKeys": w[0] || (w[0] = (q) => n.value = q),
1034
- menus: S.value,
1035
- onChange: h
1036
- }, null, 8, ["selected-keys", "menus"])]), F("div", ht, [i.value === "FeedbackList" ? (o(), g(bt, {
1030
+ default: n(() => [r.value ? (o(), h("div", _t, [B("div", ht, [d(Ne, {
1031
+ "selected-keys": s.value,
1032
+ "onUpdate:selectedKeys": x[0] || (x[0] = (S) => s.value = S),
1033
+ menus: w.value,
1034
+ onChange: R
1035
+ }, null, 8, ["selected-keys", "menus"])]), B("div", Ct, [m.value === "FeedbackList" ? (o(), g(kt, {
1037
1036
  key: 0
1038
- })) : B("", !0), i.value === "CreateFeedback" ? (o(), g(mt, {
1037
+ })) : L("", !0), m.value === "CreateFeedback" ? (o(), g(vt, {
1039
1038
  key: 1,
1040
- onConfirm: m
1041
- })) : B("", !0)])])) : B("", !0)]),
1039
+ onConfirm: u
1040
+ })) : L("", !0)])])) : L("", !0)]),
1042
1041
  _: 1
1043
1042
  }, 8, ["visible"]));
1044
1043
  }
1045
- }), Zt = /* @__PURE__ */ N(Ct, [["__scopeId", "data-v-07cb749e"]]);
1044
+ }), Gt = /* @__PURE__ */ D(wt, [["__scopeId", "data-v-7ca0cfbf"]]);
1046
1045
  export {
1047
1046
  oe as B,
1048
- ct as F,
1049
- Je as R,
1047
+ pt as F,
1048
+ Qe as R,
1050
1049
  ie as a,
1051
- mt as b,
1052
- bt as c,
1053
- Zt as d
1050
+ vt as b,
1051
+ kt as c,
1052
+ Gt as d
1054
1053
  };