@huyooo/ui 0.4.16 → 0.4.18

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