@huyooo/ui 0.4.9 → 0.4.11

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 (47) hide show
  1. package/dist/{AuthkitAppSetting-D4uAa2Ni.js → AuthkitAppSetting-B_ddDZoJ.js} +451 -432
  2. package/dist/{AuthkitAuthorize-WTE1sCbr.js → AuthkitAuthorize-DEGTLm9-.js} +33 -33
  3. package/dist/{CustomTable-Cd6RiAPX.js → CustomTable-DbiCOvmO.js} +209 -205
  4. package/dist/{FeedbackFeedBackItem-DYUIzqYg.js → FeedbackFeedBackItem-D1JwJFBF.js} +2 -2
  5. package/dist/{FeedbackFeedBackModal-DKgZZ8OR.js → FeedbackFeedBackModal-DOocV38w.js} +597 -596
  6. package/dist/InfiniteLoading-BOurBPUR.js +66 -0
  7. package/dist/{Menu-2SePYCYT.js → Menu-MZJINp6f.js} +32 -32
  8. package/dist/{MessageHandle-C9nSNw5A.js → MessageHandle-cZ2FXsJ5.js} +220 -260
  9. package/dist/{PaySubscriptions-CFKM4gyf.js → PaySubscriptions-MYoi8Ob_.js} +1 -1
  10. package/dist/{ReferrerReferees-q8H-v-Hq.js → ReferrerReferees-CFwb0s28.js} +49 -49
  11. package/dist/{Upload.vue_vue_type_script_setup_true_lang-DqfW_OJJ.js → Upload.vue_vue_type_script_setup_true_lang-uy8hhi_o.js} +1 -1
  12. package/dist/{UserPanel-xh-QbW8U.js → UserPanel-BhAJ5Dya.js} +167 -168
  13. package/dist/api/Authkit/Users.d.ts +5 -4
  14. package/dist/api/Authkit/auth.d.ts +5 -4
  15. package/dist/authkit.js +3 -3
  16. package/dist/common.js +9 -9
  17. package/dist/components/InfiniteLoading.vue.d.ts +40 -4
  18. package/dist/components/Upload/Upload.vue.d.ts +2 -2
  19. package/dist/components/User/UserAvatar.vue.d.ts +1 -1
  20. package/dist/components/User/UserBasicInformation.vue.d.ts +1 -1
  21. package/dist/composables/Authkit/useAuthkitAuth.d.ts +1 -1
  22. package/dist/composables/Authkit/useAuthkitProps.d.ts +5 -0
  23. package/dist/composables/Authkit/useAuthkitUsersProfile.d.ts +143 -1
  24. package/dist/composables/usePolling.d.ts +27 -0
  25. package/dist/composables/useUserPanelProps.d.ts +27 -5
  26. package/dist/composables.js +3 -3
  27. package/dist/feedback.js +2 -2
  28. package/dist/index.js +47 -47
  29. package/dist/message.d.ts +1 -1
  30. package/dist/message.js +9 -8
  31. package/dist/pay.js +1 -1
  32. package/dist/referrer.js +1 -1
  33. package/dist/style.css +1 -1
  34. package/dist/types/api.d.ts +133 -0
  35. package/dist/upload.js +2 -2
  36. package/dist/useAuthkitProps-DXXCuvZp.js +325 -0
  37. package/dist/{useUploadCos-DpOqkozy.js → useUploadCos-B8D9lYIk.js} +1486 -1489
  38. package/dist/useUserPanelProps-C5W72fZJ.js +54 -0
  39. package/dist/user.js +2 -2
  40. package/dist/utils/authkit.d.ts +7 -1
  41. package/dist/utils/configHelper.d.ts +17 -0
  42. package/dist/utils/errorHandler.d.ts +32 -0
  43. package/dist/utils/index.d.ts +11 -1
  44. package/package.json +1 -1
  45. package/dist/components/Message/MessageInfiniteLoading.vue.d.ts +0 -29
  46. package/dist/useAuthkitProps-DwKPhFjM.js +0 -283
  47. package/dist/useUserPanelProps-Dt9zkMJw.js +0 -14
@@ -1,27 +1,27 @@
1
1
  /* empty css */
2
2
  /* empty css */
3
3
  /* empty css */
4
- import { defineComponent as D, createElementBlock as R, openBlock as k, normalizeStyle as re, normalizeClass as Ce, createElementVNode as B, computed as J, ref as L, createBlock as U, unref as p, withCtx as h, createVNode as I, createCommentVNode as q, Fragment as W, createTextVNode as O, toDisplayString as M, h as ve, onUnmounted as je, renderList as we, nextTick as Z } from "vue";
5
- import { Message as Ie, Space as Ee, Image as Ae, Avatar as $e, Descriptions as Me, DescriptionsItem as se, Tag as te, Spin as Le, Button as fe, Form as ze, FormItem as ue, Input as Ve, Select as We, Option as He, Textarea as Ye, Breadcrumb as Ke, BreadcrumbItem as ge, Modal as Ge, Drawer as Xe } from "@arco-design/web-vue";
6
- import { M as Ze } from "./Menu-2SePYCYT.js";
4
+ import { defineComponent as B, createElementBlock as R, openBlock as S, normalizeStyle as ne, normalizeClass as Ce, createElementVNode as P, computed as G, ref as L, createBlock as T, unref as y, withCtx as h, createVNode as E, createCommentVNode as j, Fragment as z, createTextVNode as q, toDisplayString as M, onUnmounted as je, h as ve, renderList as we, nextTick as K } from "vue";
5
+ import { Message as Ie, Space as Ee, Image as Ae, Avatar as Le, Descriptions as Me, DescriptionsItem as se, Tag as ee, Spin as ze, Button as pe, Form as Ve, FormItem as ue, Input as We, Select as He, Option as Ye, Textarea as Ke, Breadcrumb as Ge, BreadcrumbItem as ge, Modal as Xe, Drawer as Ze } from "@arco-design/web-vue";
6
+ import { M as Je } from "./Menu-MZJINp6f.js";
7
7
  /* empty css */
8
8
  /* empty css */
9
9
  /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
- import { api as G } from "@huyooo/api";
12
+ import { api as W } from "@huyooo/api";
13
13
  /* empty css */
14
14
  /* empty css */
15
- import { r as Je, a as Qe, u as et } from "./useUploadCos-DpOqkozy.js";
15
+ import { r as Qe, a as et, u as tt } from "./useUploadCos-B8D9lYIk.js";
16
+ import { u as nt } from "./useUserPanelProps-C5W72fZJ.js";
16
17
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
17
- /* empty css */
18
- import { f as ne, C as tt } from "./CustomTable-Cd6RiAPX.js";
19
- import { useIntersectionObserver as nt } from "@vueuse/core";
20
- import { Bubble as Te, Prompts as rt, Sender as ot } from "ant-design-x-vue";
21
- import { Icon as Ue } from "@iconify/vue";
22
- import { c as at, g as it } from "./_commonjsHelpers-DaMA6jEr.js";
23
- import { _ as Fe, g as Re, i as Oe } from "./plugin-vue_export-helper-LjDO2Zua.js";
24
- const lt = D({
18
+ import { I as rt } from "./InfiniteLoading-BOurBPUR.js";
19
+ import { a as te, C as ot } from "./CustomTable-DbiCOvmO.js";
20
+ import { Bubble as Ue, Prompts as at, Sender as it } from "ant-design-x-vue";
21
+ import { Icon as $e } from "@iconify/vue";
22
+ import { c as lt, g as st } from "./_commonjsHelpers-DaMA6jEr.js";
23
+ import { _ as Te, g as Fe, i as Re } from "./plugin-vue_export-helper-LjDO2Zua.js";
24
+ const ut = B({
25
25
  name: "IconExclamationCircle",
26
26
  props: {
27
27
  size: {
@@ -50,45 +50,45 @@ const lt = D({
50
50
  setup(e, {
51
51
  emit: u
52
52
  }) {
53
- const r = Re("icon"), s = J(() => [r, `${r}-exclamation-circle`, {
53
+ const r = Fe("icon"), i = G(() => [r, `${r}-exclamation-circle`, {
54
54
  [`${r}-spin`]: e.spin
55
- }]), y = J(() => {
55
+ }]), p = G(() => {
56
56
  const n = {};
57
- return e.size && (n.fontSize = Oe(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
57
+ return e.size && (n.fontSize = Re(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
58
58
  });
59
59
  return {
60
- cls: s,
61
- innerStyle: y,
60
+ cls: i,
61
+ innerStyle: p,
62
62
  onClick: (n) => {
63
63
  u("click", n);
64
64
  }
65
65
  };
66
66
  }
67
- }), st = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
68
- function ut(e, u, r, s, y, a) {
69
- return k(), R("svg", {
67
+ }), ct = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
68
+ function dt(e, u, r, i, p, a) {
69
+ return S(), R("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: Ce(e.cls),
75
- style: re(e.innerStyle),
75
+ style: ne(e.innerStyle),
76
76
  "stroke-width": e.strokeWidth,
77
77
  "stroke-linecap": e.strokeLinecap,
78
78
  "stroke-linejoin": e.strokeLinejoin,
79
79
  onClick: u[0] || (u[0] = (...n) => e.onClick && e.onClick(...n))
80
- }, u[1] || (u[1] = [B("path", {
80
+ }, u[1] || (u[1] = [P("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, st);
82
+ }, null, -1)]), 14, ct);
83
83
  }
84
- var ce = /* @__PURE__ */ Fe(lt, [["render", ut]]);
84
+ var ce = /* @__PURE__ */ Te(ut, [["render", dt]]);
85
85
  const be = Object.assign(ce, {
86
86
  install: (e, u) => {
87
87
  var r;
88
- const s = (r = u == null ? void 0 : u.iconPrefix) != null ? r : "";
89
- e.component(s + ce.name, ce);
88
+ const i = (r = u == null ? void 0 : u.iconPrefix) != null ? r : "";
89
+ e.component(i + ce.name, ce);
90
90
  }
91
- }), ct = D({
91
+ }), ft = B({
92
92
  name: "IconLink",
93
93
  props: {
94
94
  size: {
@@ -117,58 +117,58 @@ const be = Object.assign(ce, {
117
117
  setup(e, {
118
118
  emit: u
119
119
  }) {
120
- const r = Re("icon"), s = J(() => [r, `${r}-link`, {
120
+ const r = Fe("icon"), i = G(() => [r, `${r}-link`, {
121
121
  [`${r}-spin`]: e.spin
122
- }]), y = J(() => {
122
+ }]), p = G(() => {
123
123
  const n = {};
124
- return e.size && (n.fontSize = Oe(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
124
+ return e.size && (n.fontSize = Re(e.size) ? `${e.size}px` : e.size), e.rotate && (n.transform = `rotate(${e.rotate}deg)`), n;
125
125
  });
126
126
  return {
127
- cls: s,
128
- innerStyle: y,
127
+ cls: i,
128
+ innerStyle: p,
129
129
  onClick: (n) => {
130
130
  u("click", n);
131
131
  }
132
132
  };
133
133
  }
134
- }), dt = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
135
- function ft(e, u, r, s, y, a) {
136
- return k(), R("svg", {
134
+ }), pt = ["stroke-width", "stroke-linecap", "stroke-linejoin"];
135
+ function yt(e, u, r, i, p, a) {
136
+ return S(), R("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: Ce(e.cls),
142
- style: re(e.innerStyle),
142
+ style: ne(e.innerStyle),
143
143
  "stroke-width": e.strokeWidth,
144
144
  "stroke-linecap": e.strokeLinecap,
145
145
  "stroke-linejoin": e.strokeLinejoin,
146
146
  onClick: u[0] || (u[0] = (...n) => e.onClick && e.onClick(...n))
147
- }, u[1] || (u[1] = [B("path", {
147
+ }, u[1] || (u[1] = [P("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, dt);
149
+ }, null, -1)]), 14, pt);
150
150
  }
151
- var de = /* @__PURE__ */ Fe(ct, [["render", ft]]);
152
- const pt = Object.assign(de, {
151
+ var de = /* @__PURE__ */ Te(ft, [["render", yt]]);
152
+ const mt = Object.assign(de, {
153
153
  install: (e, u) => {
154
154
  var r;
155
- const s = (r = u == null ? void 0 : u.iconPrefix) != null ? r : "";
156
- e.component(s + de.name, de);
155
+ const i = (r = u == null ? void 0 : u.iconPrefix) != null ? r : "";
156
+ e.component(i + de.name, de);
157
157
  }
158
- }), yt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), he = {
159
- randomUUID: yt
158
+ }), vt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), he = {
159
+ randomUUID: vt
160
160
  };
161
161
  function ke(e, u, r) {
162
- var y;
162
+ var p;
163
163
  if (he.randomUUID && !e)
164
164
  return he.randomUUID();
165
165
  e = e || {};
166
- const s = e.random ?? ((y = e.rng) == null ? void 0 : y.call(e)) ?? Je();
167
- if (s.length < 16)
166
+ const i = e.random ?? ((p = e.rng) == null ? void 0 : p.call(e)) ?? Qe();
167
+ if (i.length < 16)
168
168
  throw new Error("Random bytes length must be >= 16");
169
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Qe(s);
169
+ return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, et(i);
170
170
  }
171
- var qe = { exports: {} };
171
+ var Oe = { exports: {} };
172
172
  /*!
173
173
  * clipboard.js v2.0.11
174
174
  * https://clipboardjs.com/
@@ -176,9 +176,9 @@ var qe = { exports: {} };
176
176
  * Licensed MIT © Zeno Rocha
177
177
  */
178
178
  (function(e, u) {
179
- (function(s, y) {
180
- e.exports = y();
181
- })(at, function() {
179
+ (function(i, p) {
180
+ e.exports = p();
181
+ })(lt, function() {
182
182
  return (
183
183
  /******/
184
184
  function() {
@@ -191,126 +191,126 @@ var qe = { exports: {} };
191
191
  default: function() {
192
192
  return (
193
193
  /* binding */
194
- Pe
194
+ De
195
195
  );
196
196
  }
197
197
  });
198
- var o = t(279), f = /* @__PURE__ */ t.n(o), c = t(370), C = /* @__PURE__ */ t.n(c), E = t(817), T = /* @__PURE__ */ t.n(E);
199
- function _(g) {
198
+ var o = t(279), c = /* @__PURE__ */ t.n(o), d = t(370), _ = /* @__PURE__ */ t.n(d), I = t(817), $ = /* @__PURE__ */ t.n(I);
199
+ function w(b) {
200
200
  try {
201
- return document.execCommand(g);
201
+ return document.execCommand(b);
202
202
  } catch {
203
203
  return !1;
204
204
  }
205
205
  }
206
- var S = function(l) {
207
- var i = T()(l);
208
- return _("cut"), i;
209
- }, d = S;
210
- function A(g) {
211
- var l = document.documentElement.getAttribute("dir") === "rtl", i = document.createElement("textarea");
212
- i.style.fontSize = "12pt", i.style.border = "0", i.style.padding = "0", i.style.margin = "0", i.style.position = "absolute", i.style[l ? "right" : "left"] = "-9999px";
206
+ var x = function(s) {
207
+ var l = $()(s);
208
+ return w("cut"), l;
209
+ }, f = x;
210
+ function A(b) {
211
+ var s = document.documentElement.getAttribute("dir") === "rtl", l = document.createElement("textarea");
212
+ l.style.fontSize = "12pt", l.style.border = "0", l.style.padding = "0", l.style.margin = "0", l.style.position = "absolute", l.style[s ? "right" : "left"] = "-9999px";
213
213
  var m = window.pageYOffset || document.documentElement.scrollTop;
214
- return i.style.top = "".concat(m, "px"), i.setAttribute("readonly", ""), i.value = g, i;
214
+ return l.style.top = "".concat(m, "px"), l.setAttribute("readonly", ""), l.value = b, l;
215
215
  }
216
- var F = function(l, i) {
217
- var m = A(l);
218
- i.container.appendChild(m);
219
- var v = T()(m);
220
- return _("copy"), m.remove(), v;
221
- }, oe = function(l) {
222
- var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
216
+ var F = function(s, l) {
217
+ var m = A(s);
218
+ l.container.appendChild(m);
219
+ var g = $()(m);
220
+ return w("copy"), m.remove(), g;
221
+ }, re = function(s) {
222
+ var l = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
223
223
  container: document.body
224
224
  }, m = "";
225
- return typeof l == "string" ? m = F(l, i) : l instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(l == null ? void 0 : l.type) ? m = F(l.value, i) : (m = T()(l), _("copy")), m;
226
- }, X = oe;
227
- function Y(g) {
225
+ return typeof s == "string" ? m = F(s, l) : s instanceof HTMLInputElement && !["text", "search", "url", "tel", "password"].includes(s == null ? void 0 : s.type) ? m = F(s.value, l) : (m = $()(s), w("copy")), m;
226
+ }, v = re;
227
+ function U(b) {
228
228
  "@babel/helpers - typeof";
229
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? Y = function(i) {
230
- return typeof i;
231
- } : Y = function(i) {
232
- return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
233
- }, Y(g);
229
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? U = function(l) {
230
+ return typeof l;
231
+ } : U = function(l) {
232
+ return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
233
+ }, U(b);
234
234
  }
235
- var ae = function() {
236
- var l = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, i = l.action, m = i === void 0 ? "copy" : i, v = l.container, w = l.target, N = l.text;
235
+ var k = function() {
236
+ var s = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, l = s.action, m = l === void 0 ? "copy" : l, g = s.container, C = s.target, N = s.text;
237
237
  if (m !== "copy" && m !== "cut")
238
238
  throw new Error('Invalid "action" value, use either "copy" or "cut"');
239
- if (w !== void 0)
240
- if (w && Y(w) === "object" && w.nodeType === 1) {
241
- if (m === "copy" && w.hasAttribute("disabled"))
239
+ if (C !== void 0)
240
+ if (C && U(C) === "object" && C.nodeType === 1) {
241
+ if (m === "copy" && C.hasAttribute("disabled"))
242
242
  throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');
243
- if (m === "cut" && (w.hasAttribute("readonly") || w.hasAttribute("disabled")))
243
+ if (m === "cut" && (C.hasAttribute("readonly") || C.hasAttribute("disabled")))
244
244
  throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`);
245
245
  } else
246
246
  throw new Error('Invalid "target" value, use a valid Element');
247
247
  if (N)
248
- return X(N, {
249
- container: v
248
+ return v(N, {
249
+ container: g
250
250
  });
251
- if (w)
252
- return m === "cut" ? d(w) : X(w, {
253
- container: v
251
+ if (C)
252
+ return m === "cut" ? f(C) : v(C, {
253
+ container: g
254
254
  });
255
- }, b = ae;
256
- function $(g) {
255
+ }, D = k;
256
+ function O(b) {
257
257
  "@babel/helpers - typeof";
258
- return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? $ = function(i) {
259
- return typeof i;
260
- } : $ = function(i) {
261
- return i && typeof Symbol == "function" && i.constructor === Symbol && i !== Symbol.prototype ? "symbol" : typeof i;
262
- }, $(g);
258
+ return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? O = function(l) {
259
+ return typeof l;
260
+ } : O = function(l) {
261
+ return l && typeof Symbol == "function" && l.constructor === Symbol && l !== Symbol.prototype ? "symbol" : typeof l;
262
+ }, O(b);
263
263
  }
264
- function x(g, l) {
265
- if (!(g instanceof l))
264
+ function X(b, s) {
265
+ if (!(b instanceof s))
266
266
  throw new TypeError("Cannot call a class as a function");
267
267
  }
268
- function P(g, l) {
269
- for (var i = 0; i < l.length; i++) {
270
- var m = l[i];
271
- m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(g, m.key, m);
268
+ function V(b, s) {
269
+ for (var l = 0; l < s.length; l++) {
270
+ var m = s[l];
271
+ m.enumerable = m.enumerable || !1, m.configurable = !0, "value" in m && (m.writable = !0), Object.defineProperty(b, m.key, m);
272
272
  }
273
273
  }
274
- function j(g, l, i) {
275
- return l && P(g.prototype, l), i && P(g, i), g;
274
+ function me(b, s, l) {
275
+ return s && V(b.prototype, s), l && V(b, l), b;
276
276
  }
277
- function Q(g, l) {
278
- if (typeof l != "function" && l !== null)
277
+ function oe(b, s) {
278
+ if (typeof s != "function" && s !== null)
279
279
  throw new TypeError("Super expression must either be null or a function");
280
- g.prototype = Object.create(l && l.prototype, {
280
+ b.prototype = Object.create(s && s.prototype, {
281
281
  constructor: {
282
- value: g,
282
+ value: b,
283
283
  writable: !0,
284
284
  configurable: !0
285
285
  }
286
- }), l && z(g, l);
286
+ }), s && Z(b, s);
287
287
  }
288
- function z(g, l) {
289
- return z = Object.setPrototypeOf || function(m, v) {
290
- return m.__proto__ = v, m;
291
- }, z(g, l);
288
+ function Z(b, s) {
289
+ return Z = Object.setPrototypeOf || function(m, g) {
290
+ return m.__proto__ = g, m;
291
+ }, Z(b, s);
292
292
  }
293
- function ye(g) {
294
- var l = le();
293
+ function ae(b) {
294
+ var s = Pe();
295
295
  return function() {
296
- var m = K(g), v;
297
- if (l) {
298
- var w = K(this).constructor;
299
- v = Reflect.construct(m, arguments, w);
296
+ var m = J(b), g;
297
+ if (s) {
298
+ var C = J(this).constructor;
299
+ g = Reflect.construct(m, arguments, C);
300
300
  } else
301
- v = m.apply(this, arguments);
302
- return ie(this, v);
301
+ g = m.apply(this, arguments);
302
+ return ie(this, g);
303
303
  };
304
304
  }
305
- function ie(g, l) {
306
- return l && ($(l) === "object" || typeof l == "function") ? l : me(g);
305
+ function ie(b, s) {
306
+ return s && (O(s) === "object" || typeof s == "function") ? s : Y(b);
307
307
  }
308
- function me(g) {
309
- if (g === void 0)
308
+ function Y(b) {
309
+ if (b === void 0)
310
310
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
311
- return g;
311
+ return b;
312
312
  }
313
- function le() {
313
+ function Pe() {
314
314
  if (typeof Reflect > "u" || !Reflect.construct || Reflect.construct.sham) return !1;
315
315
  if (typeof Proxy == "function") return !0;
316
316
  try {
@@ -320,28 +320,28 @@ var qe = { exports: {} };
320
320
  return !1;
321
321
  }
322
322
  }
323
- function K(g) {
324
- return K = Object.setPrototypeOf ? Object.getPrototypeOf : function(i) {
325
- return i.__proto__ || Object.getPrototypeOf(i);
326
- }, K(g);
323
+ function J(b) {
324
+ return J = Object.setPrototypeOf ? Object.getPrototypeOf : function(l) {
325
+ return l.__proto__ || Object.getPrototypeOf(l);
326
+ }, J(b);
327
327
  }
328
- function V(g, l) {
329
- var i = "data-clipboard-".concat(g);
330
- if (l.hasAttribute(i))
331
- return l.getAttribute(i);
328
+ function le(b, s) {
329
+ var l = "data-clipboard-".concat(b);
330
+ if (s.hasAttribute(l))
331
+ return s.getAttribute(l);
332
332
  }
333
- var De = /* @__PURE__ */ function(g) {
334
- Q(i, g);
335
- var l = ye(i);
336
- function i(m, v) {
337
- var w;
338
- return x(this, i), w = l.call(this), w.resolveOptions(v), w.listenClick(m), w;
333
+ var Be = /* @__PURE__ */ function(b) {
334
+ oe(l, b);
335
+ var s = ae(l);
336
+ function l(m, g) {
337
+ var C;
338
+ return X(this, l), C = s.call(this), C.resolveOptions(g), C.listenClick(m), C;
339
339
  }
340
- return j(i, [{
340
+ return me(l, [{
341
341
  key: "resolveOptions",
342
342
  value: function() {
343
- var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
344
- this.action = typeof v.action == "function" ? v.action : this.defaultAction, this.target = typeof v.target == "function" ? v.target : this.defaultTarget, this.text = typeof v.text == "function" ? v.text : this.defaultText, this.container = $(v.container) === "object" ? v.container : document.body;
343
+ var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
344
+ this.action = typeof g.action == "function" ? g.action : this.defaultAction, this.target = typeof g.target == "function" ? g.target : this.defaultTarget, this.text = typeof g.text == "function" ? g.text : this.defaultText, this.container = O(g.container) === "object" ? g.container : document.body;
345
345
  }
346
346
  /**
347
347
  * Adds a click event listener to the passed trigger.
@@ -349,10 +349,10 @@ var qe = { exports: {} };
349
349
  */
350
350
  }, {
351
351
  key: "listenClick",
352
- value: function(v) {
353
- var w = this;
354
- this.listener = C()(v, "click", function(N) {
355
- return w.onClick(N);
352
+ value: function(g) {
353
+ var C = this;
354
+ this.listener = _()(g, "click", function(N) {
355
+ return C.onClick(N);
356
356
  });
357
357
  }
358
358
  /**
@@ -361,19 +361,19 @@ var qe = { exports: {} };
361
361
  */
362
362
  }, {
363
363
  key: "onClick",
364
- value: function(v) {
365
- var w = v.delegateTarget || v.currentTarget, N = this.action(w) || "copy", ee = b({
364
+ value: function(g) {
365
+ var C = g.delegateTarget || g.currentTarget, N = this.action(C) || "copy", Q = D({
366
366
  action: N,
367
367
  container: this.container,
368
- target: this.target(w),
369
- text: this.text(w)
368
+ target: this.target(C),
369
+ text: this.text(C)
370
370
  });
371
- this.emit(ee ? "success" : "error", {
371
+ this.emit(Q ? "success" : "error", {
372
372
  action: N,
373
- text: ee,
374
- trigger: w,
373
+ text: Q,
374
+ trigger: C,
375
375
  clearSelection: function() {
376
- w && w.focus(), window.getSelection().removeAllRanges();
376
+ C && C.focus(), window.getSelection().removeAllRanges();
377
377
  }
378
378
  });
379
379
  }
@@ -383,8 +383,8 @@ var qe = { exports: {} };
383
383
  */
384
384
  }, {
385
385
  key: "defaultAction",
386
- value: function(v) {
387
- return V("action", v);
386
+ value: function(g) {
387
+ return le("action", g);
388
388
  }
389
389
  /**
390
390
  * Default `target` lookup function.
@@ -392,10 +392,10 @@ var qe = { exports: {} };
392
392
  */
393
393
  }, {
394
394
  key: "defaultTarget",
395
- value: function(v) {
396
- var w = V("target", v);
397
- if (w)
398
- return document.querySelector(w);
395
+ value: function(g) {
396
+ var C = le("target", g);
397
+ if (C)
398
+ return document.querySelector(C);
399
399
  }
400
400
  /**
401
401
  * Allow fire programmatically a copy action
@@ -409,8 +409,8 @@ var qe = { exports: {} };
409
409
  * Default `text` lookup function.
410
410
  * @param {Element} trigger
411
411
  */
412
- value: function(v) {
413
- return V("text", v);
412
+ value: function(g) {
413
+ return le("text", g);
414
414
  }
415
415
  /**
416
416
  * Destroy lifecycle.
@@ -422,11 +422,11 @@ var qe = { exports: {} };
422
422
  }
423
423
  }], [{
424
424
  key: "copy",
425
- value: function(v) {
426
- var w = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
425
+ value: function(g) {
426
+ var C = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
427
427
  container: document.body
428
428
  };
429
- return X(v, w);
429
+ return v(g, C);
430
430
  }
431
431
  /**
432
432
  * Allow fire programmatically a cut action
@@ -435,8 +435,8 @@ var qe = { exports: {} };
435
435
  */
436
436
  }, {
437
437
  key: "cut",
438
- value: function(v) {
439
- return d(v);
438
+ value: function(g) {
439
+ return f(g);
440
440
  }
441
441
  /**
442
442
  * Returns the support of the given action, or all actions if no action is
@@ -446,13 +446,13 @@ var qe = { exports: {} };
446
446
  }, {
447
447
  key: "isSupported",
448
448
  value: function() {
449
- var v = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], w = typeof v == "string" ? [v] : v, N = !!document.queryCommandSupported;
450
- return w.forEach(function(ee) {
451
- N = N && !!document.queryCommandSupported(ee);
449
+ var g = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ["copy", "cut"], C = typeof g == "string" ? [g] : g, N = !!document.queryCommandSupported;
450
+ return C.forEach(function(Q) {
451
+ N = N && !!document.queryCommandSupported(Q);
452
452
  }), N;
453
453
  }
454
- }]), i;
455
- }(f()), Pe = De;
454
+ }]), l;
455
+ }(c()), De = Be;
456
456
  }
457
457
  ),
458
458
  /***/
@@ -464,11 +464,11 @@ var qe = { exports: {} };
464
464
  var t = Element.prototype;
465
465
  t.matches = t.matchesSelector || t.mozMatchesSelector || t.msMatchesSelector || t.oMatchesSelector || t.webkitMatchesSelector;
466
466
  }
467
- function o(f, c) {
468
- for (; f && f.nodeType !== n; ) {
469
- if (typeof f.matches == "function" && f.matches(c))
470
- return f;
471
- f = f.parentNode;
467
+ function o(c, d) {
468
+ for (; c && c.nodeType !== n; ) {
469
+ if (typeof c.matches == "function" && c.matches(d))
470
+ return c;
471
+ c = c.parentNode;
472
472
  }
473
473
  }
474
474
  a.exports = o;
@@ -479,25 +479,25 @@ var qe = { exports: {} };
479
479
  /***/
480
480
  function(a, n, t) {
481
481
  var o = t(828);
482
- function f(E, T, _, S, d) {
483
- var A = C.apply(this, arguments);
484
- return E.addEventListener(_, A, d), {
482
+ function c(I, $, w, x, f) {
483
+ var A = _.apply(this, arguments);
484
+ return I.addEventListener(w, A, f), {
485
485
  destroy: function() {
486
- E.removeEventListener(_, A, d);
486
+ I.removeEventListener(w, A, f);
487
487
  }
488
488
  };
489
489
  }
490
- function c(E, T, _, S, d) {
491
- return typeof E.addEventListener == "function" ? f.apply(null, arguments) : typeof _ == "function" ? f.bind(null, document).apply(null, arguments) : (typeof E == "string" && (E = document.querySelectorAll(E)), Array.prototype.map.call(E, function(A) {
492
- return f(A, T, _, S, d);
490
+ function d(I, $, w, x, f) {
491
+ return typeof I.addEventListener == "function" ? c.apply(null, arguments) : typeof w == "function" ? c.bind(null, document).apply(null, arguments) : (typeof I == "string" && (I = document.querySelectorAll(I)), Array.prototype.map.call(I, function(A) {
492
+ return c(A, $, w, x, f);
493
493
  }));
494
494
  }
495
- function C(E, T, _, S) {
496
- return function(d) {
497
- d.delegateTarget = o(d.target, T), d.delegateTarget && S.call(E, d);
495
+ function _(I, $, w, x) {
496
+ return function(f) {
497
+ f.delegateTarget = o(f.target, $), f.delegateTarget && x.call(I, f);
498
498
  };
499
499
  }
500
- a.exports = c;
500
+ a.exports = d;
501
501
  }
502
502
  ),
503
503
  /***/
@@ -521,44 +521,44 @@ var qe = { exports: {} };
521
521
  370: (
522
522
  /***/
523
523
  function(a, n, t) {
524
- var o = t(879), f = t(438);
525
- function c(_, S, d) {
526
- if (!_ && !S && !d)
524
+ var o = t(879), c = t(438);
525
+ function d(w, x, f) {
526
+ if (!w && !x && !f)
527
527
  throw new Error("Missing required arguments");
528
- if (!o.string(S))
528
+ if (!o.string(x))
529
529
  throw new TypeError("Second argument must be a String");
530
- if (!o.fn(d))
530
+ if (!o.fn(f))
531
531
  throw new TypeError("Third argument must be a Function");
532
- if (o.node(_))
533
- return C(_, S, d);
534
- if (o.nodeList(_))
535
- return E(_, S, d);
536
- if (o.string(_))
537
- return T(_, S, d);
532
+ if (o.node(w))
533
+ return _(w, x, f);
534
+ if (o.nodeList(w))
535
+ return I(w, x, f);
536
+ if (o.string(w))
537
+ return $(w, x, f);
538
538
  throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");
539
539
  }
540
- function C(_, S, d) {
541
- return _.addEventListener(S, d), {
540
+ function _(w, x, f) {
541
+ return w.addEventListener(x, f), {
542
542
  destroy: function() {
543
- _.removeEventListener(S, d);
543
+ w.removeEventListener(x, f);
544
544
  }
545
545
  };
546
546
  }
547
- function E(_, S, d) {
548
- return Array.prototype.forEach.call(_, function(A) {
549
- A.addEventListener(S, d);
547
+ function I(w, x, f) {
548
+ return Array.prototype.forEach.call(w, function(A) {
549
+ A.addEventListener(x, f);
550
550
  }), {
551
551
  destroy: function() {
552
- Array.prototype.forEach.call(_, function(A) {
553
- A.removeEventListener(S, d);
552
+ Array.prototype.forEach.call(w, function(A) {
553
+ A.removeEventListener(x, f);
554
554
  });
555
555
  }
556
556
  };
557
557
  }
558
- function T(_, S, d) {
559
- return f(document.body, _, S, d);
558
+ function $(w, x, f) {
559
+ return c(document.body, w, x, f);
560
560
  }
561
- a.exports = c;
561
+ a.exports = d;
562
562
  }
563
563
  ),
564
564
  /***/
@@ -570,12 +570,12 @@ var qe = { exports: {} };
570
570
  if (t.nodeName === "SELECT")
571
571
  t.focus(), o = t.value;
572
572
  else if (t.nodeName === "INPUT" || t.nodeName === "TEXTAREA") {
573
- var f = t.hasAttribute("readonly");
574
- f || t.setAttribute("readonly", ""), t.select(), t.setSelectionRange(0, t.value.length), f || t.removeAttribute("readonly"), o = t.value;
573
+ var c = t.hasAttribute("readonly");
574
+ c || t.setAttribute("readonly", ""), t.select(), t.setSelectionRange(0, t.value.length), c || t.removeAttribute("readonly"), o = t.value;
575
575
  } else {
576
576
  t.hasAttribute("contenteditable") && t.focus();
577
- var c = window.getSelection(), C = document.createRange();
578
- C.selectNodeContents(t), c.removeAllRanges(), c.addRange(C), o = c.toString();
577
+ var d = window.getSelection(), _ = document.createRange();
578
+ _.selectNodeContents(t), d.removeAllRanges(), d.addRange(_), o = d.toString();
579
579
  }
580
580
  return o;
581
581
  }
@@ -589,42 +589,42 @@ var qe = { exports: {} };
589
589
  function n() {
590
590
  }
591
591
  n.prototype = {
592
- on: function(t, o, f) {
593
- var c = this.e || (this.e = {});
594
- return (c[t] || (c[t] = [])).push({
592
+ on: function(t, o, c) {
593
+ var d = this.e || (this.e = {});
594
+ return (d[t] || (d[t] = [])).push({
595
595
  fn: o,
596
- ctx: f
596
+ ctx: c
597
597
  }), this;
598
598
  },
599
- once: function(t, o, f) {
600
- var c = this;
601
- function C() {
602
- c.off(t, C), o.apply(f, arguments);
599
+ once: function(t, o, c) {
600
+ var d = this;
601
+ function _() {
602
+ d.off(t, _), o.apply(c, arguments);
603
603
  }
604
- return C._ = o, this.on(t, C, f);
604
+ return _._ = o, this.on(t, _, c);
605
605
  },
606
606
  emit: function(t) {
607
- var o = [].slice.call(arguments, 1), f = ((this.e || (this.e = {}))[t] || []).slice(), c = 0, C = f.length;
608
- for (c; c < C; c++)
609
- f[c].fn.apply(f[c].ctx, o);
607
+ var o = [].slice.call(arguments, 1), c = ((this.e || (this.e = {}))[t] || []).slice(), d = 0, _ = c.length;
608
+ for (d; d < _; d++)
609
+ c[d].fn.apply(c[d].ctx, o);
610
610
  return this;
611
611
  },
612
612
  off: function(t, o) {
613
- var f = this.e || (this.e = {}), c = f[t], C = [];
614
- if (c && o)
615
- for (var E = 0, T = c.length; E < T; E++)
616
- c[E].fn !== o && c[E].fn._ !== o && C.push(c[E]);
617
- return C.length ? f[t] = C : delete f[t], this;
613
+ var c = this.e || (this.e = {}), d = c[t], _ = [];
614
+ if (d && o)
615
+ for (var I = 0, $ = d.length; I < $; I++)
616
+ d[I].fn !== o && d[I].fn._ !== o && _.push(d[I]);
617
+ return _.length ? c[t] = _ : delete c[t], this;
618
618
  }
619
619
  }, a.exports = n, a.exports.TinyEmitter = n;
620
620
  }
621
621
  )
622
622
  /******/
623
- }, s = {};
624
- function y(a) {
625
- if (s[a])
626
- return s[a].exports;
627
- var n = s[a] = {
623
+ }, i = {};
624
+ function p(a) {
625
+ if (i[a])
626
+ return i[a].exports;
627
+ var n = i[a] = {
628
628
  /******/
629
629
  // no module.id needed
630
630
  /******/
@@ -633,10 +633,10 @@ var qe = { exports: {} };
633
633
  exports: {}
634
634
  /******/
635
635
  };
636
- return r[a](n, n.exports, y), n.exports;
636
+ return r[a](n, n.exports, p), n.exports;
637
637
  }
638
638
  return function() {
639
- y.n = function(a) {
639
+ p.n = function(a) {
640
640
  var n = a && a.__esModule ? (
641
641
  /******/
642
642
  function() {
@@ -648,44 +648,44 @@ var qe = { exports: {} };
648
648
  return a;
649
649
  }
650
650
  );
651
- return y.d(n, {
651
+ return p.d(n, {
652
652
  a: n
653
653
  }), n;
654
654
  };
655
655
  }(), function() {
656
- y.d = function(a, n) {
656
+ p.d = function(a, n) {
657
657
  for (var t in n)
658
- y.o(n, t) && !y.o(a, t) && Object.defineProperty(a, t, {
658
+ p.o(n, t) && !p.o(a, t) && Object.defineProperty(a, t, {
659
659
  enumerable: !0,
660
660
  get: n[t]
661
661
  });
662
662
  };
663
663
  }(), function() {
664
- y.o = function(a, n) {
664
+ p.o = function(a, n) {
665
665
  return Object.prototype.hasOwnProperty.call(a, n);
666
666
  };
667
- }(), y(686);
667
+ }(), p(686);
668
668
  }().default
669
669
  );
670
670
  });
671
- })(qe);
672
- var mt = qe.exports;
673
- const vt = /* @__PURE__ */ it(mt), gt = (e) => ({
671
+ })(Oe);
672
+ var gt = Oe.exports;
673
+ const bt = /* @__PURE__ */ st(gt), ht = (e) => ({
674
674
  toClipboard(u, r) {
675
- return new Promise((s, y) => {
676
- const a = document.createElement("button"), n = new vt(a, {
675
+ return new Promise((i, p) => {
676
+ const a = document.createElement("button"), n = new bt(a, {
677
677
  text: () => u,
678
678
  action: () => "copy",
679
679
  container: r !== void 0 ? r : document.body
680
680
  });
681
681
  n.on("success", (t) => {
682
- n.destroy(), s(t);
682
+ n.destroy(), i(t);
683
683
  }), n.on("error", (t) => {
684
- n.destroy(), y(t);
684
+ n.destroy(), p(t);
685
685
  }), document.body.appendChild(a), a.click(), document.body.removeChild(a);
686
686
  });
687
687
  }
688
- }), bt = /* @__PURE__ */ D({
688
+ }), kt = /* @__PURE__ */ B({
689
689
  __name: "FeedbackClipboard",
690
690
  props: {
691
691
  value: {
@@ -700,30 +700,30 @@ const vt = /* @__PURE__ */ it(mt), gt = (e) => ({
700
700
  },
701
701
  setup(e) {
702
702
  const u = e, r = L(!1), {
703
- toClipboard: s
704
- } = gt();
705
- async function y() {
703
+ toClipboard: i
704
+ } = ht();
705
+ async function p() {
706
706
  try {
707
- await s(u.value), Ie.success(u.message || "复制成功"), r.value = !0;
707
+ await i(u.value), Ie.success(u.message || "复制成功"), r.value = !0;
708
708
  } catch (a) {
709
709
  console.error(a);
710
710
  }
711
711
  }
712
- return (a, n) => (k(), U(p(Ue), {
712
+ return (a, n) => (S(), T(y($e), {
713
713
  class: "icon",
714
714
  icon: "mingcute:copy-2-line",
715
- onClick: y
715
+ onClick: p
716
716
  }));
717
717
  }
718
- }), Ne = /* @__PURE__ */ H(bt, [["__scopeId", "data-v-fd869964"]]), ht = /* @__PURE__ */ D({
718
+ }), qe = /* @__PURE__ */ H(kt, [["__scopeId", "data-v-fd869964"]]), _t = /* @__PURE__ */ B({
719
719
  __name: "FeedbackRefresh",
720
720
  setup(e) {
721
- return (u, r) => (k(), U(p(Ue), {
721
+ return (u, r) => (S(), T(y($e), {
722
722
  class: "icon",
723
723
  icon: "mingcute:refresh-2-line"
724
724
  }));
725
725
  }
726
- }), kt = /* @__PURE__ */ H(ht, [["__scopeId", "data-v-a03acfef"]]), _t = ["src"], _e = /* @__PURE__ */ D({
726
+ }), xt = /* @__PURE__ */ H(_t, [["__scopeId", "data-v-a03acfef"]]), St = ["src"], _e = /* @__PURE__ */ B({
727
727
  __name: "FeedbackBubbleEnd",
728
728
  props: {
729
729
  value: {
@@ -759,48 +759,48 @@ const vt = /* @__PURE__ */ it(mt), gt = (e) => ({
759
759
  setup(e, {
760
760
  emit: u
761
761
  }) {
762
- const r = e, s = u;
763
- function y() {
764
- s("refresh");
762
+ const r = e, i = u;
763
+ function p() {
764
+ i("refresh");
765
765
  }
766
- return (a, n) => (k(), U(p(Te), {
766
+ return (a, n) => (S(), T(y(Ue), {
767
767
  placement: "end",
768
- style: re(r.bubbleStyle),
768
+ style: ne(r.bubbleStyle),
769
769
  styles: {
770
770
  content: {
771
771
  padding: r.type === "image" ? "0px" : void 0
772
772
  }
773
773
  }
774
774
  }, {
775
- avatar: h(() => [I(p($e), null, {
776
- default: h(() => [B("img", {
775
+ avatar: h(() => [E(y(Le), null, {
776
+ default: h(() => [P("img", {
777
777
  alt: "avatar",
778
778
  src: r.avatarUrl
779
- }, null, 8, _t)]),
779
+ }, null, 8, St)]),
780
780
  _: 1
781
781
  })]),
782
- message: h(() => [r.type === "text" ? (k(), R(W, {
782
+ message: h(() => [r.type === "text" ? (S(), R(z, {
783
783
  key: 0
784
- }, [O(M(r.value), 1)], 64)) : r.type === "image" ? (k(), U(p(Ae), {
784
+ }, [q(M(r.value), 1)], 64)) : r.type === "image" ? (S(), T(y(Ae), {
785
785
  key: 1,
786
786
  width: "100",
787
787
  src: r.value,
788
788
  "show-loader": ""
789
- }, null, 8, ["src"])) : q("", !0)]),
790
- footer: h(() => [I(p(Ee), null, {
791
- default: h(() => [r.showClipboard && r.type === "text" ? (k(), U(Ne, {
789
+ }, null, 8, ["src"])) : j("", !0)]),
790
+ footer: h(() => [E(y(Ee), null, {
791
+ default: h(() => [r.showClipboard && r.type === "text" ? (S(), T(qe, {
792
792
  key: 0,
793
793
  value: e.value
794
- }, null, 8, ["value"])) : q("", !0), r.showRefresh ? (k(), U(kt, {
794
+ }, null, 8, ["value"])) : j("", !0), r.showRefresh ? (S(), T(xt, {
795
795
  key: 1,
796
- onClick: y
797
- })) : q("", !0)]),
796
+ onClick: p
797
+ })) : j("", !0)]),
798
798
  _: 1
799
799
  })]),
800
800
  _: 1
801
801
  }, 8, ["style", "styles"]));
802
802
  }
803
- }), xt = ["src"], xe = /* @__PURE__ */ D({
803
+ }), Ct = ["src"], xe = /* @__PURE__ */ B({
804
804
  __name: "FeedbackBubbleStart",
805
805
  props: {
806
806
  value: {
@@ -833,84 +833,120 @@ const vt = /* @__PURE__ */ it(mt), gt = (e) => ({
833
833
  emit: u
834
834
  }) {
835
835
  const r = e;
836
- return (s, y) => (k(), U(p(Te), {
836
+ return (i, p) => (S(), T(y(Ue), {
837
837
  placement: "start",
838
- style: re(r.bubbleStyle),
838
+ style: ne(r.bubbleStyle),
839
839
  styles: {
840
840
  content: {
841
841
  padding: r.type === "image" ? "0px" : void 0
842
842
  }
843
843
  }
844
844
  }, {
845
- avatar: h(() => [I(p($e), null, {
846
- default: h(() => [B("img", {
845
+ avatar: h(() => [E(y(Le), null, {
846
+ default: h(() => [P("img", {
847
847
  alt: "avatar",
848
848
  src: r.avatarUrl
849
- }, null, 8, xt)]),
849
+ }, null, 8, Ct)]),
850
850
  _: 1
851
851
  })]),
852
- message: h(() => [r.type === "text" ? (k(), R(W, {
852
+ message: h(() => [r.type === "text" ? (S(), R(z, {
853
853
  key: 0
854
- }, [O(M(r.value), 1)], 64)) : r.type === "image" ? (k(), U(p(Ae), {
854
+ }, [q(M(r.value), 1)], 64)) : r.type === "image" ? (S(), T(y(Ae), {
855
855
  key: 1,
856
856
  width: "100",
857
857
  src: r.value,
858
858
  "show-loader": ""
859
- }, null, 8, ["src"])) : q("", !0)]),
860
- footer: h(() => [I(p(Ee), null, {
861
- default: h(() => [r.showClipboard && r.type === "text" ? (k(), U(Ne, {
859
+ }, null, 8, ["src"])) : j("", !0)]),
860
+ footer: h(() => [E(y(Ee), null, {
861
+ default: h(() => [r.showClipboard && r.type === "text" ? (S(), T(qe, {
862
862
  key: 0,
863
863
  value: r.value
864
- }, null, 8, ["value"])) : q("", !0)]),
864
+ }, null, 8, ["value"])) : j("", !0)]),
865
865
  _: 1
866
866
  })]),
867
867
  _: 1
868
868
  }, 8, ["style", "styles"]));
869
869
  }
870
870
  });
871
- function St(e, u) {
872
- return G({
871
+ function wt(e, u = {}) {
872
+ const {
873
+ interval: r = 2e3,
874
+ immediate: i = !1,
875
+ autoStart: p = !1
876
+ } = u, a = L(!1);
877
+ let n = null;
878
+ async function t() {
879
+ try {
880
+ await e();
881
+ } catch (_) {
882
+ console.error("轮询回调执行失败:", _);
883
+ }
884
+ }
885
+ function o() {
886
+ if (a.value) {
887
+ console.warn("轮询已在运行中");
888
+ return;
889
+ }
890
+ a.value = !0, i && t(), n = setInterval(t, r);
891
+ }
892
+ function c() {
893
+ n && (clearInterval(n), n = null), a.value = !1;
894
+ }
895
+ function d() {
896
+ c(), o();
897
+ }
898
+ return p && o(), je(() => {
899
+ c();
900
+ }), {
901
+ isPolling: a,
902
+ start: o,
903
+ stop: c,
904
+ restart: d
905
+ };
906
+ }
907
+ function It(e, u) {
908
+ return W({
873
909
  url: `${e}/restfulApi/feedbackCenter/create`,
874
910
  method: "post",
875
911
  data: u
876
912
  });
877
913
  }
878
- function Ct(e, u) {
879
- return G({
914
+ function Et(e, u) {
915
+ return W({
880
916
  url: `${e}/restfulApi/feedbackCenter/findOne`,
881
917
  method: "post",
882
918
  data: u
883
919
  });
884
920
  }
885
- function wt(e, u) {
886
- return G({
921
+ function At(e, u) {
922
+ return W({
887
923
  url: `${e}/restfulApi/feedbackCenter/own`,
888
924
  method: "post",
889
925
  data: u
890
926
  });
891
927
  }
892
928
  function Se(e, u) {
893
- return G({
929
+ return W({
894
930
  url: `${e}/restfulApi/feedbackCenter/update/messages`,
895
931
  method: "post",
896
932
  data: u
897
933
  });
898
934
  }
899
- function It(e, u) {
900
- return G({
935
+ function Lt(e, u) {
936
+ return W({
901
937
  url: `${e}/restfulApi/messages/list/incremental`,
902
938
  method: "post",
903
939
  data: u
904
940
  });
905
941
  }
906
- function Et(e, u) {
907
- return G({
942
+ function Ut(e, u) {
943
+ return W({
908
944
  url: `${e}/restfulApi/messages/list`,
909
945
  method: "post",
910
946
  data: u
911
947
  });
912
948
  }
913
- const pe = [{
949
+ const ye = [{
914
950
  key: "bugReports",
915
951
  label: "问题报告"
916
952
  }, {
@@ -922,7 +958,7 @@ const pe = [{
922
958
  }, {
923
959
  key: "generalOpinions",
924
960
  label: "一般意见"
925
- }], Be = [{
961
+ }], Ne = [{
926
962
  key: "newFeedback",
927
963
  label: "新建反馈"
928
964
  }, {
@@ -931,14 +967,14 @@ const pe = [{
931
967
  }, {
932
968
  key: "done",
933
969
  label: "已解决"
934
- }], At = {
970
+ }], $t = {
935
971
  class: "FeedBackDetails"
936
- }, $t = {
972
+ }, Tt = {
937
973
  class: "content"
938
- }, Lt = {
974
+ }, Ft = {
939
975
  key: 1,
940
976
  class: "Bubbles"
941
- }, Tt = /* @__PURE__ */ D({
977
+ }, Rt = /* @__PURE__ */ B({
942
978
  __name: "FeedbackFeedBackDetails",
943
979
  props: {
944
980
  id: {
@@ -973,10 +1009,10 @@ const pe = [{
973
1009
  }
974
1010
  },
975
1011
  setup(e) {
976
- function u(b) {
977
- return b === "inProgress" ? "orangered" : b === "done" ? "green" : "arcoblue";
1012
+ function u(v) {
1013
+ return v === "inProgress" ? "orangered" : v === "done" ? "green" : "arcoblue";
978
1014
  }
979
- const r = L(""), s = L(!1), y = [{
1015
+ const r = L(""), i = L(!1), p = [{
980
1016
  key: "1",
981
1017
  label: "如何补充更多信息",
982
1018
  description: "请详细描述您的问题或需求,以便我们更好地为您服务。",
@@ -997,33 +1033,31 @@ const pe = [{
997
1033
  }
998
1034
  })
999
1035
  }], a = L(null);
1000
- function n(b) {
1001
- for (; b; ) {
1002
- const x = window.getComputedStyle(b).overflowY;
1003
- if ((x === "auto" || x === "scroll") && b.scrollHeight > b.clientHeight)
1004
- return b;
1005
- b = b.parentElement;
1036
+ function n(v) {
1037
+ for (; v; ) {
1038
+ const k = window.getComputedStyle(v).overflowY;
1039
+ if ((k === "auto" || k === "scroll") && v.scrollHeight > v.clientHeight)
1040
+ return v;
1041
+ v = v.parentElement;
1006
1042
  }
1007
1043
  return null;
1008
1044
  }
1009
1045
  const t = () => {
1010
- var b;
1011
- (b = a.value) == null || b.focus({
1046
+ var v;
1047
+ (v = a.value) == null || v.focus({
1012
1048
  cursor: "end"
1013
- }), Z(() => {
1014
- var P;
1015
- const $ = (P = a.value) == null ? void 0 : P.$el, x = n($ || null);
1016
- x && x.scrollTo({
1017
- top: x.scrollHeight,
1049
+ }), K(() => {
1050
+ var D;
1051
+ const U = (D = a.value) == null ? void 0 : D.$el, k = n(U || null);
1052
+ k && k.scrollTo({
1053
+ top: k.scrollHeight,
1018
1054
  behavior: "smooth"
1019
1055
  });
1020
1056
  });
1021
1057
  }, o = e;
1022
- function f() {
1058
+ function c() {
1023
1059
  }
1024
- const c = L(!1), C = L([]), E = L(void 0);
1025
- let T = null;
1026
- const _ = L({
1060
+ const d = L(!1), _ = L([]), I = L(void 0), $ = L({
1027
1061
  id: void 0,
1028
1062
  title: "",
1029
1063
  description: "",
@@ -1031,225 +1065,218 @@ const pe = [{
1031
1065
  status: "done",
1032
1066
  reply: "",
1033
1067
  createAt: ""
1034
- }), S = () => {
1068
+ }), w = () => {
1035
1069
  const {
1036
- uploadFile: b
1037
- } = et({
1070
+ uploadFile: v
1071
+ } = tt({
1038
1072
  appId: o.appId,
1039
1073
  bucketId: o.bucketId,
1040
1074
  baseURL: o.prefixUrl,
1041
1075
  bucket: o.bucket,
1042
1076
  region: o.region
1043
- }), $ = document.createElement("input");
1044
- $.type = "file", $.accept = "image/*", $.style.display = "none", document.body.append($), $.addEventListener("change", async (x) => {
1045
- var Q;
1046
- const j = (Q = x.target.files) == null ? void 0 : Q[0];
1047
- if (j) {
1048
- s.value = !0;
1077
+ }), U = document.createElement("input");
1078
+ U.type = "file", U.accept = "image/*", U.style.display = "none", document.body.append(U), U.addEventListener("change", async (k) => {
1079
+ var X;
1080
+ const O = (X = k.target.files) == null ? void 0 : X[0];
1081
+ if (O) {
1082
+ i.value = !0;
1049
1083
  try {
1050
- b({
1051
- file: j,
1052
- onFileFinish(z, ye, ie) {
1053
- const le = {
1084
+ v({
1085
+ file: O,
1086
+ onFileFinish(V, me, oe) {
1087
+ const ae = {
1054
1088
  messageId: ke(),
1055
1089
  senderRole: o.senderRole,
1056
1090
  type: "image",
1057
- key: ie.Key
1058
- }, K = {
1091
+ key: oe.Key
1092
+ }, ie = {
1059
1093
  id: o.id,
1060
- message: le
1094
+ message: ae
1061
1095
  };
1062
- Se(o.prefixUrl, K).then(({
1063
- data: V
1096
+ Se(o.prefixUrl, ie).then(({
1097
+ data: Y
1064
1098
  }) => {
1065
- C.value.push(V.message), typeof V.message.seq == "number" && (E.value = V.message.seq), Z(() => {
1099
+ _.value.push(Y.message), typeof Y.message.seq == "number" && (I.value = Y.message.seq), K(() => {
1066
1100
  t();
1067
- }), s.value = !1;
1101
+ }), i.value = !1;
1068
1102
  }).catch(() => {
1069
- s.value = !1;
1103
+ i.value = !1;
1070
1104
  });
1071
1105
  },
1072
- onError(z) {
1073
- console.error("上传图片失败"), s.value = !1;
1106
+ onError(V) {
1107
+ console.error("上传图片失败"), i.value = !1;
1074
1108
  }
1075
1109
  });
1076
- } catch (z) {
1077
- console.error("上传图片失败", z), s.value = !1;
1110
+ } catch (V) {
1111
+ console.error("上传图片失败", V), i.value = !1;
1078
1112
  }
1079
1113
  }
1080
- $.remove();
1081
- }), $.click();
1114
+ U.remove();
1115
+ }), U.click();
1082
1116
  };
1083
- function d(b) {
1084
- s.value = !0;
1085
- const x = {
1117
+ function x(v) {
1118
+ i.value = !0;
1119
+ const k = {
1086
1120
  messageId: ke(),
1087
1121
  senderRole: o.senderRole,
1088
1122
  type: "text",
1089
- content: b
1090
- }, P = {
1123
+ content: v
1124
+ }, D = {
1091
1125
  id: o.id,
1092
- message: x
1126
+ message: k
1093
1127
  };
1094
- Se(o.prefixUrl, P).then(({
1095
- data: j
1128
+ Se(o.prefixUrl, D).then(({
1129
+ data: O
1096
1130
  }) => {
1097
- s.value = !1, C.value.push(j.message), typeof j.message.seq == "number" && (E.value = j.message.seq), Z(() => {
1131
+ i.value = !1, _.value.push(O.message), typeof O.message.seq == "number" && (I.value = O.message.seq), K(() => {
1098
1132
  t();
1099
1133
  }), r.value = "";
1100
1134
  }).catch(() => {
1101
- s.value = !1;
1135
+ i.value = !1;
1102
1136
  });
1103
1137
  }
1104
- function A() {
1105
- d(r.value);
1138
+ function f() {
1139
+ x(r.value);
1106
1140
  }
1107
- function F() {
1108
- c.value = !0, Ct(o.prefixUrl, {
1141
+ function A() {
1142
+ d.value = !0, Et(o.prefixUrl, {
1109
1143
  id: o.id
1110
1144
  }).then(async ({
1111
- data: b
1145
+ data: v
1112
1146
  }) => {
1113
- c.value = !1, _.value = b, b.messages && b.messages.length > 0 && (C.value = b.messages, E.value = b.messages.at(-1).seq);
1147
+ d.value = !1, $.value = v, v.messages && v.messages.length > 0 && (_.value = v.messages, I.value = v.messages.at(-1).seq);
1114
1148
  }).catch(() => {
1115
- c.value = !1;
1149
+ d.value = !1;
1116
1150
  });
1117
1151
  }
1118
- function oe() {
1119
- It(o.prefixUrl, {
1152
+ function F() {
1153
+ Lt(o.prefixUrl, {
1120
1154
  id: o.id,
1121
- lastSeq: E.value
1155
+ lastSeq: I.value
1122
1156
  }).then(async ({
1123
- data: b
1157
+ data: v
1124
1158
  }) => {
1125
- b && b.messages && b.messages.length > 0 && (C.value.push(...b.messages), E.value = b.messages.at(-1).seq, Z(() => {
1159
+ v && v.messages && v.messages.length > 0 && (_.value.push(...v.messages), I.value = v.messages.at(-1).seq, K(() => {
1126
1160
  t();
1127
1161
  }));
1128
1162
  }).catch(() => {
1129
1163
  });
1130
1164
  }
1131
- function X() {
1132
- c.value = !0, Et(o.prefixUrl, {
1165
+ function re() {
1166
+ d.value = !0, Ut(o.prefixUrl, {
1133
1167
  id: o.id
1134
1168
  }).then(async ({
1135
- data: b
1169
+ data: v
1136
1170
  }) => {
1137
- c.value = !1, b && b.messages && b.messages.length > 0 && (C.value.push(...b.messages), E.value = b.messages.at(-1).seq, Z(() => {
1171
+ d.value = !1, v && v.messages && v.messages.length > 0 && (_.value.push(...v.messages), I.value = v.messages.at(-1).seq, K(() => {
1138
1172
  t();
1139
1173
  }));
1140
1174
  }).catch(() => {
1141
- c.value = !1;
1175
+ d.value = !1;
1142
1176
  });
1143
1177
  }
1144
- function Y() {
1145
- T || (T = setInterval(() => {
1146
- oe();
1147
- }, 2e3));
1148
- }
1149
- function ae() {
1150
- T && (clearInterval(T), T = null);
1151
- }
1152
- return je(() => {
1153
- ae();
1154
- }), Y(), F(), X(), (b, $) => (k(), R("div", At, [I(p(Me), {
1178
+ return wt(F, {
1179
+ interval: 2e3,
1180
+ autoStart: !0
1181
+ }), A(), re(), (v, U) => (S(), R("div", $t, [E(y(Me), {
1155
1182
  title: "基本信息"
1156
1183
  }, {
1157
- title: h(() => $[1] || ($[1] = [B("div", {
1184
+ title: h(() => U[1] || (U[1] = [P("div", {
1158
1185
  class: "title"
1159
1186
  }, "沟通记录", -1)])),
1160
- default: h(() => [I(p(se), {
1187
+ default: h(() => [E(y(se), {
1161
1188
  label: "标题:",
1162
1189
  span: 3
1163
1190
  }, {
1164
- default: h(() => [O(M(_.value.title), 1)]),
1191
+ default: h(() => [q(M($.value.title), 1)]),
1165
1192
  _: 1
1166
- }), I(p(se), {
1193
+ }), E(y(se), {
1167
1194
  label: "反馈类型:",
1168
1195
  span: 1
1169
1196
  }, {
1170
- default: h(() => [I(p(te), {
1197
+ default: h(() => [E(y(ee), {
1171
1198
  color: "arcoblue"
1172
1199
  }, {
1173
1200
  default: h(() => {
1174
- var x;
1175
- return [O(M((x = p(ne)(p(pe), _.value.type)) == null ? void 0 : x.label), 1)];
1201
+ var k;
1202
+ return [q(M((k = y(te)(y(ye), $.value.type)) == null ? void 0 : k.label), 1)];
1176
1203
  }),
1177
1204
  _: 1
1178
1205
  })]),
1179
1206
  _: 1
1180
- }), I(p(se), {
1207
+ }), E(y(se), {
1181
1208
  label: "状态:",
1182
1209
  span: 1
1183
1210
  }, {
1184
- default: h(() => [I(p(te), {
1185
- color: u(_.value.status)
1211
+ default: h(() => [E(y(ee), {
1212
+ color: u($.value.status)
1186
1213
  }, {
1187
1214
  default: h(() => {
1188
- var x;
1189
- return [O(M((x = p(ne)(p(Be), _.value.status)) == null ? void 0 : x.label), 1)];
1215
+ var k;
1216
+ return [q(M((k = y(te)(y(Ne), $.value.status)) == null ? void 0 : k.label), 1)];
1190
1217
  }),
1191
1218
  _: 1
1192
1219
  }, 8, ["color"])]),
1193
1220
  _: 1
1194
1221
  })]),
1195
1222
  _: 1
1196
- }), B("div", $t, [$[2] || ($[2] = B("div", {
1223
+ }), P("div", Tt, [U[2] || (U[2] = P("div", {
1197
1224
  class: "title"
1198
- }, "沟通记录", -1)), I(p(Le), {
1225
+ }, "沟通记录", -1)), E(y(ze), {
1199
1226
  class: "messageContent",
1200
- loading: c.value
1227
+ loading: d.value
1201
1228
  }, {
1202
- default: h(() => [C.value.length == 0 ? (k(), U(p(rt), {
1229
+ default: h(() => [_.value.length == 0 ? (S(), T(y(at), {
1203
1230
  key: 0,
1204
1231
  title: "☕️ 温馨提示!",
1205
- items: y,
1232
+ items: p,
1206
1233
  wrap: "",
1207
1234
  vertical: !1,
1208
- onOnItemClick: f
1209
- })) : (k(), R("div", Lt, [(k(!0), R(W, null, we(C.value, (x, P) => (k(), R(W, {
1210
- key: P
1211
- }, [x.type === "text" ? (k(), R(W, {
1235
+ onOnItemClick: c
1236
+ })) : (S(), R("div", Ft, [(S(!0), R(z, null, we(_.value, (k, D) => (S(), R(z, {
1237
+ key: D
1238
+ }, [k.type === "text" ? (S(), R(z, {
1212
1239
  key: 0
1213
- }, [x.senderRole !== o.senderRole ? (k(), U(xe, {
1240
+ }, [k.senderRole !== o.senderRole ? (S(), T(xe, {
1214
1241
  key: 0,
1215
- value: x.content,
1216
- type: x.type,
1217
- "avatar-url": x.senderInfo.avatarUrl
1218
- }, null, 8, ["value", "type", "avatar-url"])) : (k(), U(_e, {
1242
+ value: k.content,
1243
+ type: k.type,
1244
+ "avatar-url": k.senderInfo.avatarUrl
1245
+ }, null, 8, ["value", "type", "avatar-url"])) : (S(), T(_e, {
1219
1246
  key: 1,
1220
- value: x.content,
1221
- "avatar-url": x.senderInfo.avatarUrl,
1222
- type: x.type
1223
- }, null, 8, ["value", "avatar-url", "type"]))], 64)) : (k(), R(W, {
1247
+ value: k.content,
1248
+ "avatar-url": k.senderInfo.avatarUrl,
1249
+ type: k.type
1250
+ }, null, 8, ["value", "avatar-url", "type"]))], 64)) : (S(), R(z, {
1224
1251
  key: 1
1225
- }, [x.senderRole !== o.senderRole ? (k(), U(xe, {
1252
+ }, [k.senderRole !== o.senderRole ? (S(), T(xe, {
1226
1253
  key: 0,
1227
- type: x.type,
1228
- value: x.url,
1254
+ type: k.type,
1255
+ value: k.url,
1229
1256
  "avatar-text": "S",
1230
- "avatar-url": x.senderInfo.avatarUrl
1231
- }, null, 8, ["type", "value", "avatar-url"])) : (k(), U(_e, {
1257
+ "avatar-url": k.senderInfo.avatarUrl
1258
+ }, null, 8, ["type", "value", "avatar-url"])) : (S(), T(_e, {
1232
1259
  key: 1,
1233
- type: x.type,
1234
- value: x.url,
1235
- "avatar-url": x.senderInfo.avatarUrl
1236
- }, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))])), I(p(ot), {
1260
+ type: k.type,
1261
+ value: k.url,
1262
+ "avatar-url": k.senderInfo.avatarUrl
1263
+ }, null, 8, ["type", "value", "avatar-url"]))], 64))], 64))), 128))])), E(y(it), {
1237
1264
  ref_key: "senderRef",
1238
1265
  ref: a,
1239
1266
  value: r.value,
1240
- "onUpdate:value": $[0] || ($[0] = (x) => r.value = x),
1267
+ "onUpdate:value": U[0] || (U[0] = (k) => r.value = k),
1241
1268
  placeholder: "请输入你要咨询的问题?",
1242
- loading: s.value,
1269
+ loading: i.value,
1243
1270
  "allow-speech": !1,
1244
- "read-only": s.value,
1245
- onSubmit: A
1271
+ "read-only": i.value,
1272
+ onSubmit: f
1246
1273
  }, {
1247
- prefix: h(() => [I(p(fe), {
1274
+ prefix: h(() => [E(y(pe), {
1248
1275
  type: "text",
1249
1276
  class: "IconLink",
1250
- onClick: S
1277
+ onClick: w
1251
1278
  }, {
1252
- icon: h(() => [I(p(pt))]),
1279
+ icon: h(() => [E(y(mt))]),
1253
1280
  _: 1
1254
1281
  })]),
1255
1282
  _: 1
@@ -1257,9 +1284,22 @@ const pe = [{
1257
1284
  _: 1
1258
1285
  }, 8, ["loading"])])]));
1259
1286
  }
1260
- }), Ut = /* @__PURE__ */ H(Tt, [["__scopeId", "data-v-9a5ae17c"]]), Ft = {
1287
+ }), Ot = /* @__PURE__ */ H(Rt, [["__scopeId", "data-v-a5d73724"]]);
1288
+ function fe(e, u) {
1289
+ const {
1290
+ config: r
1291
+ } = nt(), i = r.value[e];
1292
+ return i !== void 0 ? i : {
1293
+ appId: "",
1294
+ bucketId: "",
1295
+ prefixUrl: "/api",
1296
+ bucket: "",
1297
+ region: "ap-beijing"
1298
+ }[e];
1299
+ }
1300
+ const qt = {
1261
1301
  class: "FeedBackFrom"
1262
- }, Rt = /* @__PURE__ */ D({
1302
+ }, Nt = /* @__PURE__ */ B({
1263
1303
  __name: "FeedbackFeedBackFrom",
1264
1304
  props: {
1265
1305
  appId: {
@@ -1275,40 +1315,40 @@ const pe = [{
1275
1315
  setup(e, {
1276
1316
  emit: u
1277
1317
  }) {
1278
- const r = u, s = L(), y = L(!1), a = e, n = L({
1318
+ const r = u, i = L(), p = L(!1), a = e, n = L({
1279
1319
  id: void 0,
1280
1320
  title: "",
1281
1321
  type: "bugReports",
1282
1322
  description: "",
1283
1323
  screenshots: []
1284
1324
  });
1285
- L([]), a.appId;
1325
+ L([]), a.appId, fe("bucketId"), fe("bucket"), fe("region");
1286
1326
  function t() {
1287
- s.value.validate().then((o) => {
1327
+ i.value.validate().then((o) => {
1288
1328
  if (!o) {
1289
- y.value = !0, console.log("create");
1290
- const f = {
1329
+ p.value = !0, console.log("create");
1330
+ const c = {
1291
1331
  title: n.value.title,
1292
1332
  type: n.value.type,
1293
1333
  description: n.value.description,
1294
1334
  screenshots: n.value.screenshots
1295
1335
  };
1296
- St(a.prefixUrl, f).then(() => {
1297
- y.value = !1, Ie.success("新建反馈成功"), r("confirm");
1336
+ It(a.prefixUrl, c).then(() => {
1337
+ p.value = !1, Ie.success("新建反馈成功"), r("confirm");
1298
1338
  }).catch(() => {
1299
- y.value = !1;
1339
+ p.value = !1;
1300
1340
  });
1301
1341
  }
1302
1342
  });
1303
1343
  }
1304
- return (o, f) => (k(), R("div", Ft, [I(p(ze), {
1344
+ return (o, c) => (S(), R("div", qt, [E(y(Ve), {
1305
1345
  ref_key: "formRef",
1306
- ref: s,
1346
+ ref: i,
1307
1347
  model: n.value,
1308
1348
  "auto-label-width": "",
1309
1349
  layout: "vertical"
1310
1350
  }, {
1311
- default: h(() => [I(p(ue), {
1351
+ default: h(() => [E(y(ue), {
1312
1352
  field: "title",
1313
1353
  label: "标题",
1314
1354
  rules: [{
@@ -1316,13 +1356,13 @@ const pe = [{
1316
1356
  message: "请输入标题"
1317
1357
  }]
1318
1358
  }, {
1319
- default: h(() => [I(p(Ve), {
1359
+ default: h(() => [E(y(We), {
1320
1360
  modelValue: n.value.title,
1321
- "onUpdate:modelValue": f[0] || (f[0] = (c) => n.value.title = c),
1361
+ "onUpdate:modelValue": c[0] || (c[0] = (d) => n.value.title = d),
1322
1362
  placeholder: "请输入标题"
1323
1363
  }, null, 8, ["modelValue"])]),
1324
1364
  _: 1
1325
- }), I(p(ue), {
1365
+ }), E(y(ue), {
1326
1366
  field: "type",
1327
1367
  label: "反馈类型",
1328
1368
  rules: [{
@@ -1330,22 +1370,22 @@ const pe = [{
1330
1370
  message: "请选择反馈类型"
1331
1371
  }]
1332
1372
  }, {
1333
- default: h(() => [I(p(We), {
1373
+ default: h(() => [E(y(He), {
1334
1374
  modelValue: n.value.type,
1335
- "onUpdate:modelValue": f[1] || (f[1] = (c) => n.value.type = c),
1375
+ "onUpdate:modelValue": c[1] || (c[1] = (d) => n.value.type = d),
1336
1376
  placeholder: "请选择反馈类型"
1337
1377
  }, {
1338
- default: h(() => [(k(!0), R(W, null, we(p(pe), (c, C) => (k(), U(p(He), {
1339
- key: C,
1340
- value: c.key
1378
+ default: h(() => [(S(!0), R(z, null, we(y(ye), (d, _) => (S(), T(y(Ye), {
1379
+ key: _,
1380
+ value: d.key
1341
1381
  }, {
1342
- default: h(() => [O(M(c.label), 1)]),
1382
+ default: h(() => [q(M(d.label), 1)]),
1343
1383
  _: 2
1344
1384
  }, 1032, ["value"]))), 128))]),
1345
1385
  _: 1
1346
1386
  }, 8, ["modelValue"])]),
1347
1387
  _: 1
1348
- }), I(p(ue), {
1388
+ }), E(y(ue), {
1349
1389
  field: "description",
1350
1390
  label: "问题描述",
1351
1391
  rules: [{
@@ -1353,9 +1393,9 @@ const pe = [{
1353
1393
  message: "请输入问题描述"
1354
1394
  }]
1355
1395
  }, {
1356
- default: h(() => [I(p(Ye), {
1396
+ default: h(() => [E(y(Ke), {
1357
1397
  modelValue: n.value.description,
1358
- "onUpdate:modelValue": f[2] || (f[2] = (c) => n.value.description = c),
1398
+ "onUpdate:modelValue": c[2] || (c[2] = (d) => n.value.description = d),
1359
1399
  placeholder: "请输入问题描述",
1360
1400
  "allow-clear": "",
1361
1401
  "auto-size": {
@@ -1363,62 +1403,24 @@ const pe = [{
1363
1403
  }
1364
1404
  }, null, 8, ["modelValue"])]),
1365
1405
  _: 1
1366
- }), q("", !0), I(p(fe), {
1367
- loading: y.value,
1406
+ }), j("", !0), E(y(pe), {
1407
+ loading: p.value,
1368
1408
  type: "primary",
1369
1409
  onClick: t
1370
1410
  }, {
1371
- default: h(() => f[3] || (f[3] = [O(" 提交 ")])),
1411
+ default: h(() => c[3] || (c[3] = [q(" 提交 ")])),
1372
1412
  _: 1,
1373
1413
  __: [3]
1374
1414
  }, 8, ["loading"])]),
1375
1415
  _: 1
1376
1416
  }, 8, ["model"])]));
1377
1417
  }
1378
- }), Ot = /* @__PURE__ */ H(Rt, [["__scopeId", "data-v-5716aca2"]]), qt = {
1379
- key: 0,
1380
- class: "loading"
1381
- }, Nt = {
1382
- key: 1,
1383
- class: "none"
1384
- }, Bt = /* @__PURE__ */ D({
1385
- __name: "InfiniteLoading",
1386
- props: {
1387
- loading: {
1388
- type: Boolean,
1389
- default: () => !1
1390
- },
1391
- finished: {
1392
- type: Boolean,
1393
- default: () => !1
1394
- }
1395
- },
1396
- emits: ["infinite"],
1397
- setup(e, {
1398
- emit: u
1399
- }) {
1400
- const r = e, s = u, y = L(null);
1401
- return nt(y, ([{
1402
- isIntersecting: a
1403
- }]) => {
1404
- a && // 当loading和finished的值都为false时,就通知父组件调用方法继续向后台请求数据
1405
- !r.loading && !r.finished && (console.log(a, "isIntersecting"), s("infinite"));
1406
- }, {
1407
- threshold: 0
1408
- }), (a, n) => (k(), R("div", {
1409
- ref_key: "container",
1410
- ref: y,
1411
- class: "infinite-loading"
1412
- }, [e.loading ? (k(), R("div", qt, [I(p(Le), {
1413
- tip: "数据加载中..."
1414
- })])) : q("", !0), e.finished ? (k(), R("div", Nt, [q("", !0)])) : q("", !0)], 512));
1415
- }
1416
- }), Dt = /* @__PURE__ */ H(Bt, [["__scopeId", "data-v-c415f923"]]), Pt = {
1418
+ }), Pt = /* @__PURE__ */ H(Nt, [["__scopeId", "data-v-cfd11c62"]]), Bt = {
1417
1419
  class: "messages"
1418
- }, jt = {
1420
+ }, Dt = {
1419
1421
  key: 1,
1420
1422
  class: "list"
1421
- }, Mt = /* @__PURE__ */ D({
1423
+ }, jt = /* @__PURE__ */ B({
1422
1424
  __name: "FeedbackFeedBackList",
1423
1425
  props: {
1424
1426
  appId: {
@@ -1446,18 +1448,18 @@ const pe = [{
1446
1448
  setup(e, {
1447
1449
  emit: u
1448
1450
  }) {
1449
- const r = e, s = L(!0), y = L([]), a = L(!1), n = L(!1), t = L(""), o = L({
1451
+ const r = e, i = L(!0), p = L([]), a = L(!1), n = L(!1), t = L(""), o = L({
1450
1452
  total: 0,
1451
1453
  current: 1,
1452
1454
  pageSize: 10
1453
1455
  });
1454
- function f() {
1455
- s.value = !0;
1456
+ function c() {
1457
+ i.value = !0;
1456
1458
  }
1457
- function c(S) {
1458
- console.log(S, "record"), t.value = S.id, s.value = !1;
1459
+ function d(x) {
1460
+ console.log(x, "record"), t.value = x.id, i.value = !1;
1459
1461
  }
1460
- const C = [{
1462
+ const _ = [{
1461
1463
  dataIndex: "id",
1462
1464
  slotName: "id",
1463
1465
  title: "ID",
@@ -1497,105 +1499,105 @@ const pe = [{
1497
1499
  fixed: "right",
1498
1500
  minWidth: 80
1499
1501
  }];
1500
- function E(S) {
1501
- return S === "inProgress" ? "orangered" : S === "done" ? "green" : "arcoblue";
1502
+ function I(x) {
1503
+ return x === "inProgress" ? "orangered" : x === "done" ? "green" : "arcoblue";
1502
1504
  }
1503
- function T() {
1504
- a.value = !0, wt(r.prefixUrl, {
1505
+ function $() {
1506
+ a.value = !0, At(r.prefixUrl, {
1505
1507
  current: o.value.current,
1506
1508
  pageSize: o.value.pageSize
1507
1509
  }).then(async ({
1508
- data: S
1510
+ data: x
1509
1511
  }) => {
1510
- a.value = !1, S.items.forEach((d) => {
1512
+ a.value = !1, x.items.forEach((f) => {
1511
1513
  const A = {
1512
- id: d.id,
1513
- title: d.title,
1514
- description: d.description,
1515
- reply: d.reply,
1516
- type: d.type,
1517
- status: d.status,
1518
- createAt: d.createAt
1514
+ id: f.id,
1515
+ title: f.title,
1516
+ description: f.description,
1517
+ reply: f.reply,
1518
+ type: f.type,
1519
+ status: f.status,
1520
+ createAt: f.createAt
1519
1521
  };
1520
- y.value.push(A);
1521
- }), o.value.total = S.count, o.value.current++, S.items.length === 0 && (n.value = !0);
1522
+ p.value.push(A);
1523
+ }), o.value.total = x.count, o.value.current++, x.items.length === 0 && (n.value = !0);
1522
1524
  }).catch(() => {
1523
1525
  a.value = !1;
1524
1526
  });
1525
1527
  }
1526
- function _() {
1527
- T();
1528
+ function w() {
1529
+ $();
1528
1530
  }
1529
- return (S, d) => (k(), R("div", Pt, [s.value ? q("", !0) : (k(), U(p(Ke), {
1531
+ return (x, f) => (S(), R("div", Bt, [i.value ? j("", !0) : (S(), T(y(Ge), {
1530
1532
  key: 0,
1531
1533
  style: {
1532
1534
  "margin-bottom": "10px",
1533
1535
  cursor: "pointer"
1534
1536
  }
1535
1537
  }, {
1536
- default: h(() => [I(p(ge), {
1538
+ default: h(() => [E(y(ge), {
1537
1539
  style: {
1538
1540
  padding: "0px"
1539
1541
  },
1540
- onClick: f
1542
+ onClick: c
1541
1543
  }, {
1542
- default: h(() => d[0] || (d[0] = [O("我的反馈")])),
1544
+ default: h(() => f[0] || (f[0] = [q("我的反馈")])),
1543
1545
  _: 1,
1544
1546
  __: [0]
1545
- }), I(p(ge), {
1547
+ }), E(y(ge), {
1546
1548
  style: {
1547
1549
  padding: "0px"
1548
1550
  }
1549
1551
  }, {
1550
- default: h(() => d[1] || (d[1] = [O("反馈详情")])),
1552
+ default: h(() => f[1] || (f[1] = [q("反馈详情")])),
1551
1553
  _: 1,
1552
1554
  __: [1]
1553
1555
  })]),
1554
1556
  _: 1
1555
- })), s.value ? (k(), R("div", jt, [I(tt, {
1556
- columns: C,
1557
- data: y.value,
1557
+ })), i.value ? (S(), R("div", Dt, [E(ot, {
1558
+ columns: _,
1559
+ data: p.value,
1558
1560
  loading: a.value,
1559
1561
  pagination: null
1560
1562
  }, {
1561
1563
  type: h(({
1562
1564
  record: A
1563
- }) => [I(p(te), {
1565
+ }) => [E(y(ee), {
1564
1566
  color: "arcoblue"
1565
1567
  }, {
1566
1568
  default: h(() => {
1567
1569
  var F;
1568
- return [O(M((F = p(ne)(p(pe), A.type)) == null ? void 0 : F.label), 1)];
1570
+ return [q(M((F = y(te)(y(ye), A.type)) == null ? void 0 : F.label), 1)];
1569
1571
  }),
1570
1572
  _: 2
1571
1573
  }, 1024)]),
1572
1574
  status: h(({
1573
1575
  record: A
1574
- }) => [I(p(te), {
1575
- color: E(A.status)
1576
+ }) => [E(y(ee), {
1577
+ color: I(A.status)
1576
1578
  }, {
1577
1579
  default: h(() => {
1578
1580
  var F;
1579
- return [O(M((F = p(ne)(p(Be), A.status)) == null ? void 0 : F.label), 1)];
1581
+ return [q(M((F = y(te)(y(Ne), A.status)) == null ? void 0 : F.label), 1)];
1580
1582
  }),
1581
1583
  _: 2
1582
1584
  }, 1032, ["color"])]),
1583
1585
  actions: h(({
1584
1586
  record: A
1585
- }) => [I(p(fe), {
1587
+ }) => [E(y(pe), {
1586
1588
  type: "text",
1587
- onClick: (F) => c(A)
1589
+ onClick: (F) => d(A)
1588
1590
  }, {
1589
- default: h(() => d[2] || (d[2] = [O("查看")])),
1591
+ default: h(() => f[2] || (f[2] = [q("查看")])),
1590
1592
  _: 2,
1591
1593
  __: [2]
1592
1594
  }, 1032, ["onClick"])]),
1593
1595
  _: 1
1594
- }, 8, ["data", "loading"]), I(Dt, {
1596
+ }, 8, ["data", "loading"]), E(rt, {
1595
1597
  loading: a.value,
1596
1598
  finished: n.value,
1597
- onInfinite: _
1598
- }, null, 8, ["loading", "finished"])])) : (k(), U(Ut, {
1599
+ onInfinite: w
1600
+ }, null, 8, ["loading", "finished"])])) : (S(), T(Ot, {
1599
1601
  key: 2,
1600
1602
  id: t.value,
1601
1603
  "app-id": r.appId,
@@ -1606,13 +1608,13 @@ const pe = [{
1606
1608
  region: r.region
1607
1609
  }, null, 8, ["id", "app-id", "prefix-url", "bucket-id", "bucket", "region"]))]));
1608
1610
  }
1609
- }), zt = /* @__PURE__ */ H(Mt, [["__scopeId", "data-v-44e93219"]]), Vt = {
1611
+ }), Mt = /* @__PURE__ */ H(jt, [["__scopeId", "data-v-44e93219"]]), zt = {
1610
1612
  class: "content"
1611
- }, Wt = {
1613
+ }, Vt = {
1612
1614
  class: "left"
1613
- }, Ht = {
1615
+ }, Wt = {
1614
1616
  class: "right"
1615
- }, Yt = /* @__PURE__ */ D({
1617
+ }, Ht = /* @__PURE__ */ B({
1616
1618
  __name: "FeedbackFeedBackModal",
1617
1619
  props: {
1618
1620
  appId: {
@@ -1641,11 +1643,11 @@ const pe = [{
1641
1643
  expose: u,
1642
1644
  emit: r
1643
1645
  }) {
1644
- const s = L(!1), y = e, a = r;
1646
+ const i = L(!1), p = e, a = r;
1645
1647
  function n() {
1646
1648
  a("cancel");
1647
1649
  }
1648
- const t = L(["FeedbackList"]), o = L(["功能变更"]), f = L([{
1650
+ const t = L(["FeedbackList"]), o = L(["功能变更"]), c = L([{
1649
1651
  name: "我的反馈",
1650
1652
  path: "FeedbackList",
1651
1653
  meta: {
@@ -1657,25 +1659,25 @@ const pe = [{
1657
1659
  meta: {
1658
1660
  icon: "mingcute:cube-3d-fill"
1659
1661
  }
1660
- }]), c = L(!1), C = J(() => t.value.length !== 0 ? t.value[0] : "");
1661
- function E() {
1662
+ }]), d = L(!1), _ = G(() => t.value.length !== 0 ? t.value[0] : "");
1663
+ function I() {
1662
1664
  t.value = ["FeedbackList"];
1663
1665
  }
1664
- function T() {
1665
- c.value = !1;
1666
+ function $() {
1667
+ d.value = !1;
1666
1668
  }
1667
- function _(d, A) {
1668
- const F = d.path;
1669
- console.log(F, A, "lokokoko"), t.value = [F], o.value = d.name;
1669
+ function w(f, A) {
1670
+ const F = f.path;
1671
+ console.log(F, A, "lokokoko"), t.value = [F], o.value = f.name;
1670
1672
  }
1671
- function S(d) {
1672
- s.value = d;
1673
+ function x(f) {
1674
+ i.value = f;
1673
1675
  }
1674
1676
  return u({
1675
- setData: S
1676
- }), (d, A) => (k(), U(p(Ge), {
1677
- visible: s.value,
1678
- "onUpdate:visible": A[1] || (A[1] = (F) => s.value = F),
1677
+ setData: x
1678
+ }), (f, A) => (S(), T(y(Xe), {
1679
+ visible: i.value,
1680
+ "onUpdate:visible": A[1] || (A[1] = (F) => i.value = F),
1679
1681
  loading: !1,
1680
1682
  "body-class": "AppMessagebodyClass",
1681
1683
  "mask-closable": !1,
@@ -1685,47 +1687,46 @@ const pe = [{
1685
1687
  "hide-title": !1,
1686
1688
  onCancel: n
1687
1689
  }, {
1688
- default: h(() => [B("div", Vt, [B("div", Wt, [I(Ze, {
1690
+ default: h(() => [P("div", zt, [P("div", Vt, [E(Je, {
1689
1691
  "selected-keys": t.value,
1690
1692
  "onUpdate:selectedKeys": A[0] || (A[0] = (F) => t.value = F),
1691
- menus: f.value,
1692
- onChange: _
1693
- }, null, 8, ["selected-keys", "menus"])]), B("div", Ht, [C.value === "FeedbackList" ? (k(), U(zt, {
1693
+ menus: c.value,
1694
+ onChange: w
1695
+ }, null, 8, ["selected-keys", "menus"])]), P("div", Wt, [_.value === "FeedbackList" ? (S(), T(Mt, {
1694
1696
  key: 0,
1695
- "app-id": y.appId,
1696
- "prefix-url": y.prefixUrl,
1697
- "bucket-id": y.bucketId,
1698
- bucket: y.bucket,
1699
- region: y.region
1700
- }, null, 8, ["app-id", "prefix-url", "bucket-id", "bucket", "region"])) : q("", !0), C.value === "CreateFeedback" ? (k(), U(Ot, {
1697
+ "app-id": p.appId,
1698
+ "prefix-url": p.prefixUrl,
1699
+ "bucket-id": p.bucketId,
1700
+ bucket: p.bucket,
1701
+ region: p.region
1702
+ }, null, 8, ["app-id", "prefix-url", "bucket-id", "bucket", "region"])) : j("", !0), _.value === "CreateFeedback" ? (S(), T(Pt, {
1701
1703
  key: 1,
1702
- "app-id": y.appId,
1703
- "prefix-url": y.prefixUrl,
1704
- onConfirm: E
1705
- }, null, 8, ["app-id", "prefix-url"])) : q("", !0)])]), I(p(Xe), {
1704
+ "app-id": p.appId,
1705
+ "prefix-url": p.prefixUrl,
1706
+ onConfirm: I
1707
+ }, null, 8, ["app-id", "prefix-url"])) : j("", !0)])]), E(y(Ze), {
1706
1708
  width: 400,
1707
- visible: c.value,
1709
+ visible: d.value,
1708
1710
  "unmount-on-close": "",
1709
1711
  footer: !1,
1710
1712
  title: `${o.value}详情`,
1711
- onCancel: T
1713
+ onCancel: $
1712
1714
  }, {
1713
- default: h(() => A[2] || (A[2] = [B("div", null, " You can customize modal body text by the current situation. This modal will be closed immediately once you press the OK button. ", -1)])),
1715
+ default: h(() => A[2] || (A[2] = [P("div", null, " You can customize modal body text by the current situation. This modal will be closed immediately once you press the OK button. ", -1)])),
1714
1716
  _: 1,
1715
1717
  __: [2]
1716
1718
  }, 8, ["visible", "title"])]),
1717
1719
  _: 1
1718
1720
  }, 8, ["visible"]));
1719
1721
  }
1720
- }), hn = /* @__PURE__ */ H(Yt, [["__scopeId", "data-v-ea23d687"]]);
1722
+ }), bn = /* @__PURE__ */ H(Ht, [["__scopeId", "data-v-ea23d687"]]);
1721
1723
  export {
1722
- Ne as C,
1723
- Ut as F,
1724
- Dt as I,
1725
- kt as R,
1724
+ qe as C,
1725
+ Ot as F,
1726
+ xt as R,
1726
1727
  _e as _,
1727
1728
  xe as a,
1728
- Ot as b,
1729
- zt as c,
1730
- hn as d
1729
+ Pt as b,
1730
+ Mt as c,
1731
+ bn as d
1731
1732
  };