travel-ui 1.0.3 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/favicon.ico CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "travel-ui",
3
- "version": "1.0.3",
4
- "description": "修改css打包名称",
3
+ "version": "1.1.0",
4
+ "description": "增加评论组件",
5
5
  "main": "travel-ui.umd.js",
6
6
  "module": "travel-ui.es.js",
7
7
  "exports": {
@@ -19,7 +19,7 @@
19
19
  "license": "ISC",
20
20
  "type": "commonjs",
21
21
  "dependencies": {
22
- "less": "^4.4.2",
23
- "ant-design-vue": "^4.2.6"
22
+ "ant-design-vue": "^4.2.6",
23
+ "less": "^4.4.2"
24
24
  }
25
25
  }
package/style.css CHANGED
@@ -1 +1 @@
1
- .tw-airline-info[data-v-34ed9467]{color:#1890ff}
1
+ .tw-airline-info[data-v-75e539f7]{color:#1890ff}.tw-comments[data-v-966e1b1a]{width:100%}.tw-comments>.comments[data-v-966e1b1a]{width:100%}.tw-comments>.comments>.comment[data-v-966e1b1a]{width:100%;margin-bottom:16px}.tw-comments>.comments>.comment>.header[data-v-966e1b1a]{display:flex;flex-direction:row;margin-bottom:8px;font-size:12px}.tw-comments>.comments>.comment>.header>.name[data-v-966e1b1a]{color:#00000073;margin-right:20px}.tw-comments>.comments>.comment>.header>.time[data-v-966e1b1a]{color:#00000040}.tw-comments>.comments>.comment>.content[data-v-966e1b1a]{font-size:14px;line-height:16px;color:#f0182a}.tw-comments>.comments>.comment>.files[data-v-966e1b1a]{width:100%;display:flex;flex-direction:row;align-content:wrap;margin-bottom:12px;gap:8px}.tw-comments>.comments>.comment>.files>.file[data-v-966e1b1a]{border:1px solid #e8e8e8;padding:12px;border-radius:8px;display:flex;flex-direction:row;background-color:#fff}.tw-comments>.comments>.comment>.files>.file>.logo[data-v-966e1b1a]{width:40px;height:40px}.tw-comments>.comments>.comment>.files>.file>.detail[data-v-966e1b1a]{margin-left:12px}.tw-comments>.comments>.comment>.files>.file>.detail>.fileName[data-v-966e1b1a]{font-size:14px;line-height:16px;height:16px;font-weight:700;margin-bottom:8px;max-width:100px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tw-comments>.comments>.comment>.files>.file>.detail>.buttons[data-v-966e1b1a]{width:100%;display:flex;flex-direction:row;justify-content:flex-end;gap:12px;font-size:12px}.tw-comments>.comments>.comment>.files>.file>.detail>.buttons[data-v-966e1b1a]>*{cursor:pointer;color:#f0182a}.tw-comments>.comments>.comment>.files>.file>.detail>.buttons[data-v-966e1b1a]>*:hover{opacity:.8}.tw-comments>.addNew[data-v-966e1b1a]{width:100%;margin-top:24px;background-color:#fff;border:1px solid #e8e8e8;border-radius:4px;padding:12px}.tw-comments>.addNew>.files>.file[data-v-966e1b1a]{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;gap:8px;color:#f0182a;margin-bottom:8px}.tw-comments>.addNew>.files>.file>.name[data-v-966e1b1a]{font-size:12px;margin:0}.tw-comments>.addNew>.files>.file>.delete[data-v-966e1b1a]{cursor:pointer}.tw-comments>.addNew>.files>.file>.delete[data-v-966e1b1a]:hover{opacity:.8}.tw-comments>.addNew>.detail[data-v-966e1b1a]{display:flex;flex-direction:row;gap:12px}
package/travel-ui.es.js CHANGED
@@ -1,57 +1,1112 @@
1
- import { createElementBlock as r, openBlock as s, createTextVNode as o, createVNode as c, unref as d, withCtx as l } from "vue";
2
- import { Button as _ } from "ant-design-vue";
3
- function u(e) {
1
+ import { reactive as Ae, computed as Ue, createBlock as te, openBlock as m, unref as O, withCtx as $, createElementVNode as u, createTextVNode as ne, createVNode as g, createElementBlock as _, inject as ze, ref as I, h as re, getCurrentInstance as We, nextTick as Ve, defineComponent as qe, resolveComponent as L, Fragment as G, renderList as Z, createCommentVNode as Ge, toDisplayString as F } from "vue";
2
+ import { theme as Ze, ConfigProvider as je, Button as Qe, notification as ue } from "ant-design-vue";
3
+ function Ye(e) {
4
4
  return /^(?:\d{15}|\d{17}[\dXx])$/.test(e);
5
5
  }
6
- function f(e) {
6
+ function Je(e) {
7
7
  return /^1\d{10}$/.test(e);
8
8
  }
9
- function p(e) {
9
+ function Xe(e) {
10
10
  return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e);
11
11
  }
12
- const m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12
+ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13
13
  __proto__: null,
14
- isValidEmail: p,
15
- isValidIdCard: u,
16
- isValidPhoneNumber: f
17
- }, Symbol.toStringTag, { value: "Module" })), x = {
14
+ isValidEmail: Xe,
15
+ isValidIdCard: Ye,
16
+ isValidPhoneNumber: Je
17
+ }, Symbol.toStringTag, { value: "Module" })), de = Ae({
18
+ mode: "light",
19
+ algorithm: Ze.defaultAlgorithm,
20
+ token: {
21
+ colorPrimary: "#F0182A",
22
+ colorPrimaryBg: "#e6f4ff",
23
+ colorPrimaryBgHover: "#bae0ff",
24
+ borderRadius: 4,
25
+ wireframe: !0
26
+ // 是否开启线框风格
27
+ }
28
+ }), Pe = Ue(() => ({
29
+ algorithm: de.algorithm,
30
+ token: { ...de.token }
31
+ })), et = {
18
32
  class: "tw-airline-info"
19
- }, g = /* @__PURE__ */ Object.assign({
33
+ }, tt = /* @__PURE__ */ Object.assign({
20
34
  name: "TWAirlineInfo"
21
35
  }, {
22
36
  __name: "index",
23
37
  setup(e) {
24
- return (t, n) => (s(), r("div", x, [n[1] || (n[1] = o(" 123 ", -1)), c(d(_), {
25
- type: "primary"
38
+ return (n, t) => (m(), te(O(je), {
39
+ theme: O(Pe)
26
40
  }, {
27
- default: l(() => [...n[0] || (n[0] = [o("Primary Button", -1)])]),
41
+ default: $(() => [u("div", et, [t[1] || (t[1] = ne(" 123 ", -1)), g(O(Qe), {
42
+ type: "primary"
43
+ }, {
44
+ default: $(() => [...t[0] || (t[0] = [ne("Primary Button", -1)])]),
45
+ _: 1
46
+ })])]),
28
47
  _: 1
29
- })]));
30
- }
31
- }), b = (e, t) => {
32
- const n = e.__vccOpts || e;
33
- for (const [i, a] of t)
34
- n[i] = a;
35
- return n;
36
- }, y = /* @__PURE__ */ b(g, [["__scopeId", "data-v-34ed9467"]]), h = {
48
+ }, 8, ["theme"]));
49
+ }
50
+ }), Ie = (e, n) => {
51
+ const t = e.__vccOpts || e;
52
+ for (const [r, a] of n)
53
+ t[r] = a;
54
+ return t;
55
+ }, nt = /* @__PURE__ */ Ie(tt, [["__scopeId", "data-v-75e539f7"]]), rt = {
37
56
  class: "tw-hotel-info"
38
- }, v = /* @__PURE__ */ Object.assign({
57
+ }, at = /* @__PURE__ */ Object.assign({
39
58
  name: "TWHotelInfo"
40
59
  }, {
41
60
  __name: "index",
42
61
  setup(e) {
43
- return (t, n) => (s(), r("div", h));
62
+ return (n, t) => (m(), _("div", rt));
63
+ }
64
+ }), ot = "data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.1315%201.00644C20.4368%201.03635%2020.7239%201.16982%2020.9427%201.38619L27.6094%207.9771C27.8594%208.2243%2028%208.55949%2028%208.90909V28.3636C28%2029.0628%2027.7188%2029.7332%2027.2188%2030.2276C26.7187%2030.722%2026.0406%2031%2025.3333%2031H6.66667C5.95942%2031%205.28135%2030.722%204.78125%2030.2276C4.28115%2029.7332%204%2029.0628%204%2028.3636V3.63636C4%202.93716%204.28115%202.26679%204.78125%201.77237C5.28135%201.27796%205.95942%201%206.66667%201H20L20.1315%201.00644Z'%20fill='url(%23paint0_linear_31336_50582)'%20stroke='url(%23paint1_linear_31336_50582)'%20stroke-width='0.4'%20stroke-linejoin='round'/%3e%3cline%20x1='9.9'%20y1='13.1'%20x2='22.1'%20y2='13.1'%20stroke='%23F33F4E'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cline%20x1='9.9'%20y1='19.1'%20x2='18.1'%20y2='19.1'%20stroke='%23F33F4E'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_31336_50582'%20x1='16'%20y1='1'%20x2='16'%20y2='30'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='%23FFD2D2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_31336_50582'%20x1='16'%20y1='1'%20x2='16'%20y2='31'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23DEDEDE'/%3e%3cstop%20offset='1'%20stop-color='%23F57C7C'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";
65
+ function b(e, n) {
66
+ it(e) && (e = "100%");
67
+ var t = lt(e);
68
+ return e = n === 360 ? e : Math.min(n, Math.max(0, parseFloat(e))), t && (e = parseInt(String(e * n), 10) / 100), Math.abs(e - n) < 1e-6 ? 1 : (n === 360 ? e = (e < 0 ? e % n + n : e % n) / parseFloat(String(n)) : e = e % n / parseFloat(String(n)), e);
69
+ }
70
+ function it(e) {
71
+ return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
72
+ }
73
+ function lt(e) {
74
+ return typeof e == "string" && e.indexOf("%") !== -1;
75
+ }
76
+ function ct(e) {
77
+ return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
78
+ }
79
+ function B(e) {
80
+ return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
81
+ }
82
+ function Q(e) {
83
+ return e.length === 1 ? "0" + e : String(e);
84
+ }
85
+ function ft(e, n, t) {
86
+ return {
87
+ r: b(e, 255) * 255,
88
+ g: b(n, 255) * 255,
89
+ b: b(t, 255) * 255
90
+ };
91
+ }
92
+ function Y(e, n, t) {
93
+ return t < 0 && (t += 1), t > 1 && (t -= 1), t < 1 / 6 ? e + (n - e) * (6 * t) : t < 1 / 2 ? n : t < 2 / 3 ? e + (n - e) * (2 / 3 - t) * 6 : e;
94
+ }
95
+ function st(e, n, t) {
96
+ var r, a, o;
97
+ if (e = b(e, 360), n = b(n, 100), t = b(t, 100), n === 0)
98
+ a = t, o = t, r = t;
99
+ else {
100
+ var l = t < 0.5 ? t * (1 + n) : t + n - t * n, i = 2 * t - l;
101
+ r = Y(i, l, e + 1 / 3), a = Y(i, l, e), o = Y(i, l, e - 1 / 3);
102
+ }
103
+ return { r: r * 255, g: a * 255, b: o * 255 };
104
+ }
105
+ function ut(e, n, t) {
106
+ e = b(e, 255), n = b(n, 255), t = b(t, 255);
107
+ var r = Math.max(e, n, t), a = Math.min(e, n, t), o = 0, l = r, i = r - a, c = r === 0 ? 0 : i / r;
108
+ if (r === a)
109
+ o = 0;
110
+ else {
111
+ switch (r) {
112
+ case e:
113
+ o = (n - t) / i + (n < t ? 6 : 0);
114
+ break;
115
+ case n:
116
+ o = (t - e) / i + 2;
117
+ break;
118
+ case t:
119
+ o = (e - n) / i + 4;
120
+ break;
121
+ }
122
+ o /= 6;
123
+ }
124
+ return { h: o, s: c, v: l };
125
+ }
126
+ function dt(e, n, t) {
127
+ e = b(e, 360) * 6, n = b(n, 100), t = b(t, 100);
128
+ var r = Math.floor(e), a = e - r, o = t * (1 - n), l = t * (1 - a * n), i = t * (1 - (1 - a) * n), c = r % 6, f = [t, l, o, o, i, t][c], C = [i, t, t, l, o, o][c], w = [o, o, i, t, t, l][c];
129
+ return { r: f * 255, g: C * 255, b: w * 255 };
130
+ }
131
+ function pt(e, n, t, r) {
132
+ var a = [
133
+ Q(Math.round(e).toString(16)),
134
+ Q(Math.round(n).toString(16)),
135
+ Q(Math.round(t).toString(16))
136
+ ];
137
+ return a.join("");
138
+ }
139
+ function pe(e) {
140
+ return p(e) / 255;
141
+ }
142
+ function p(e) {
143
+ return parseInt(e, 16);
144
+ }
145
+ var me = {
146
+ aliceblue: "#f0f8ff",
147
+ antiquewhite: "#faebd7",
148
+ aqua: "#00ffff",
149
+ aquamarine: "#7fffd4",
150
+ azure: "#f0ffff",
151
+ beige: "#f5f5dc",
152
+ bisque: "#ffe4c4",
153
+ black: "#000000",
154
+ blanchedalmond: "#ffebcd",
155
+ blue: "#0000ff",
156
+ blueviolet: "#8a2be2",
157
+ brown: "#a52a2a",
158
+ burlywood: "#deb887",
159
+ cadetblue: "#5f9ea0",
160
+ chartreuse: "#7fff00",
161
+ chocolate: "#d2691e",
162
+ coral: "#ff7f50",
163
+ cornflowerblue: "#6495ed",
164
+ cornsilk: "#fff8dc",
165
+ crimson: "#dc143c",
166
+ cyan: "#00ffff",
167
+ darkblue: "#00008b",
168
+ darkcyan: "#008b8b",
169
+ darkgoldenrod: "#b8860b",
170
+ darkgray: "#a9a9a9",
171
+ darkgreen: "#006400",
172
+ darkgrey: "#a9a9a9",
173
+ darkkhaki: "#bdb76b",
174
+ darkmagenta: "#8b008b",
175
+ darkolivegreen: "#556b2f",
176
+ darkorange: "#ff8c00",
177
+ darkorchid: "#9932cc",
178
+ darkred: "#8b0000",
179
+ darksalmon: "#e9967a",
180
+ darkseagreen: "#8fbc8f",
181
+ darkslateblue: "#483d8b",
182
+ darkslategray: "#2f4f4f",
183
+ darkslategrey: "#2f4f4f",
184
+ darkturquoise: "#00ced1",
185
+ darkviolet: "#9400d3",
186
+ deeppink: "#ff1493",
187
+ deepskyblue: "#00bfff",
188
+ dimgray: "#696969",
189
+ dimgrey: "#696969",
190
+ dodgerblue: "#1e90ff",
191
+ firebrick: "#b22222",
192
+ floralwhite: "#fffaf0",
193
+ forestgreen: "#228b22",
194
+ fuchsia: "#ff00ff",
195
+ gainsboro: "#dcdcdc",
196
+ ghostwhite: "#f8f8ff",
197
+ goldenrod: "#daa520",
198
+ gold: "#ffd700",
199
+ gray: "#808080",
200
+ green: "#008000",
201
+ greenyellow: "#adff2f",
202
+ grey: "#808080",
203
+ honeydew: "#f0fff0",
204
+ hotpink: "#ff69b4",
205
+ indianred: "#cd5c5c",
206
+ indigo: "#4b0082",
207
+ ivory: "#fffff0",
208
+ khaki: "#f0e68c",
209
+ lavenderblush: "#fff0f5",
210
+ lavender: "#e6e6fa",
211
+ lawngreen: "#7cfc00",
212
+ lemonchiffon: "#fffacd",
213
+ lightblue: "#add8e6",
214
+ lightcoral: "#f08080",
215
+ lightcyan: "#e0ffff",
216
+ lightgoldenrodyellow: "#fafad2",
217
+ lightgray: "#d3d3d3",
218
+ lightgreen: "#90ee90",
219
+ lightgrey: "#d3d3d3",
220
+ lightpink: "#ffb6c1",
221
+ lightsalmon: "#ffa07a",
222
+ lightseagreen: "#20b2aa",
223
+ lightskyblue: "#87cefa",
224
+ lightslategray: "#778899",
225
+ lightslategrey: "#778899",
226
+ lightsteelblue: "#b0c4de",
227
+ lightyellow: "#ffffe0",
228
+ lime: "#00ff00",
229
+ limegreen: "#32cd32",
230
+ linen: "#faf0e6",
231
+ magenta: "#ff00ff",
232
+ maroon: "#800000",
233
+ mediumaquamarine: "#66cdaa",
234
+ mediumblue: "#0000cd",
235
+ mediumorchid: "#ba55d3",
236
+ mediumpurple: "#9370db",
237
+ mediumseagreen: "#3cb371",
238
+ mediumslateblue: "#7b68ee",
239
+ mediumspringgreen: "#00fa9a",
240
+ mediumturquoise: "#48d1cc",
241
+ mediumvioletred: "#c71585",
242
+ midnightblue: "#191970",
243
+ mintcream: "#f5fffa",
244
+ mistyrose: "#ffe4e1",
245
+ moccasin: "#ffe4b5",
246
+ navajowhite: "#ffdead",
247
+ navy: "#000080",
248
+ oldlace: "#fdf5e6",
249
+ olive: "#808000",
250
+ olivedrab: "#6b8e23",
251
+ orange: "#ffa500",
252
+ orangered: "#ff4500",
253
+ orchid: "#da70d6",
254
+ palegoldenrod: "#eee8aa",
255
+ palegreen: "#98fb98",
256
+ paleturquoise: "#afeeee",
257
+ palevioletred: "#db7093",
258
+ papayawhip: "#ffefd5",
259
+ peachpuff: "#ffdab9",
260
+ peru: "#cd853f",
261
+ pink: "#ffc0cb",
262
+ plum: "#dda0dd",
263
+ powderblue: "#b0e0e6",
264
+ purple: "#800080",
265
+ rebeccapurple: "#663399",
266
+ red: "#ff0000",
267
+ rosybrown: "#bc8f8f",
268
+ royalblue: "#4169e1",
269
+ saddlebrown: "#8b4513",
270
+ salmon: "#fa8072",
271
+ sandybrown: "#f4a460",
272
+ seagreen: "#2e8b57",
273
+ seashell: "#fff5ee",
274
+ sienna: "#a0522d",
275
+ silver: "#c0c0c0",
276
+ skyblue: "#87ceeb",
277
+ slateblue: "#6a5acd",
278
+ slategray: "#708090",
279
+ slategrey: "#708090",
280
+ snow: "#fffafa",
281
+ springgreen: "#00ff7f",
282
+ steelblue: "#4682b4",
283
+ tan: "#d2b48c",
284
+ teal: "#008080",
285
+ thistle: "#d8bfd8",
286
+ tomato: "#ff6347",
287
+ turquoise: "#40e0d0",
288
+ violet: "#ee82ee",
289
+ wheat: "#f5deb3",
290
+ white: "#ffffff",
291
+ whitesmoke: "#f5f5f5",
292
+ yellow: "#ffff00",
293
+ yellowgreen: "#9acd32"
294
+ };
295
+ function N(e) {
296
+ var n = { r: 0, g: 0, b: 0 }, t = 1, r = null, a = null, o = null, l = !1, i = !1;
297
+ return typeof e == "string" && (e = bt(e)), typeof e == "object" && (y(e.r) && y(e.g) && y(e.b) ? (n = ft(e.r, e.g, e.b), l = !0, i = String(e.r).substr(-1) === "%" ? "prgb" : "rgb") : y(e.h) && y(e.s) && y(e.v) ? (r = B(e.s), a = B(e.v), n = dt(e.h, r, a), l = !0, i = "hsv") : y(e.h) && y(e.s) && y(e.l) && (r = B(e.s), o = B(e.l), n = st(e.h, r, o), l = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = ct(t), {
298
+ ok: l,
299
+ format: e.format || i,
300
+ r: Math.min(255, Math.max(n.r, 0)),
301
+ g: Math.min(255, Math.max(n.g, 0)),
302
+ b: Math.min(255, Math.max(n.b, 0)),
303
+ a: t
304
+ };
305
+ }
306
+ var mt = "[-\\+]?\\d+%?", gt = "[-\\+]?\\d*\\.\\d+%?", k = "(?:".concat(gt, ")|(?:").concat(mt, ")"), J = "[\\s|\\(]+(".concat(k, ")[,|\\s]+(").concat(k, ")[,|\\s]+(").concat(k, ")\\s*\\)?"), X = "[\\s|\\(]+(".concat(k, ")[,|\\s]+(").concat(k, ")[,|\\s]+(").concat(k, ")[,|\\s]+(").concat(k, ")\\s*\\)?"), h = {
307
+ CSS_UNIT: new RegExp(k),
308
+ rgb: new RegExp("rgb" + J),
309
+ rgba: new RegExp("rgba" + X),
310
+ hsl: new RegExp("hsl" + J),
311
+ hsla: new RegExp("hsla" + X),
312
+ hsv: new RegExp("hsv" + J),
313
+ hsva: new RegExp("hsva" + X),
314
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
315
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
316
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
317
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
318
+ };
319
+ function bt(e) {
320
+ if (e = e.trim().toLowerCase(), e.length === 0)
321
+ return !1;
322
+ var n = !1;
323
+ if (me[e])
324
+ e = me[e], n = !0;
325
+ else if (e === "transparent")
326
+ return { r: 0, g: 0, b: 0, a: 0, format: "name" };
327
+ var t = h.rgb.exec(e);
328
+ return t ? { r: t[1], g: t[2], b: t[3] } : (t = h.rgba.exec(e), t ? { r: t[1], g: t[2], b: t[3], a: t[4] } : (t = h.hsl.exec(e), t ? { h: t[1], s: t[2], l: t[3] } : (t = h.hsla.exec(e), t ? { h: t[1], s: t[2], l: t[3], a: t[4] } : (t = h.hsv.exec(e), t ? { h: t[1], s: t[2], v: t[3] } : (t = h.hsva.exec(e), t ? { h: t[1], s: t[2], v: t[3], a: t[4] } : (t = h.hex8.exec(e), t ? {
329
+ r: p(t[1]),
330
+ g: p(t[2]),
331
+ b: p(t[3]),
332
+ a: pe(t[4]),
333
+ format: n ? "name" : "hex8"
334
+ } : (t = h.hex6.exec(e), t ? {
335
+ r: p(t[1]),
336
+ g: p(t[2]),
337
+ b: p(t[3]),
338
+ format: n ? "name" : "hex"
339
+ } : (t = h.hex4.exec(e), t ? {
340
+ r: p(t[1] + t[1]),
341
+ g: p(t[2] + t[2]),
342
+ b: p(t[3] + t[3]),
343
+ a: pe(t[4] + t[4]),
344
+ format: n ? "name" : "hex8"
345
+ } : (t = h.hex3.exec(e), t ? {
346
+ r: p(t[1] + t[1]),
347
+ g: p(t[2] + t[2]),
348
+ b: p(t[3] + t[3]),
349
+ format: n ? "name" : "hex"
350
+ } : !1)))))))));
351
+ }
352
+ function y(e) {
353
+ return !!h.CSS_UNIT.exec(String(e));
354
+ }
355
+ var H = 2, ge = 0.16, vt = 0.05, ht = 0.05, yt = 0.15, Ee = 5, Fe = 4, _t = [{
356
+ index: 7,
357
+ opacity: 0.15
358
+ }, {
359
+ index: 6,
360
+ opacity: 0.25
361
+ }, {
362
+ index: 5,
363
+ opacity: 0.3
364
+ }, {
365
+ index: 5,
366
+ opacity: 0.45
367
+ }, {
368
+ index: 5,
369
+ opacity: 0.65
370
+ }, {
371
+ index: 5,
372
+ opacity: 0.85
373
+ }, {
374
+ index: 4,
375
+ opacity: 0.9
376
+ }, {
377
+ index: 3,
378
+ opacity: 0.95
379
+ }, {
380
+ index: 2,
381
+ opacity: 0.97
382
+ }, {
383
+ index: 1,
384
+ opacity: 0.98
385
+ }];
386
+ function be(e) {
387
+ var n = e.r, t = e.g, r = e.b, a = ut(n, t, r);
388
+ return {
389
+ h: a.h * 360,
390
+ s: a.s,
391
+ v: a.v
392
+ };
393
+ }
394
+ function U(e) {
395
+ var n = e.r, t = e.g, r = e.b;
396
+ return "#".concat(pt(n, t, r));
397
+ }
398
+ function Ct(e, n, t) {
399
+ var r = t / 100, a = {
400
+ r: (n.r - e.r) * r + e.r,
401
+ g: (n.g - e.g) * r + e.g,
402
+ b: (n.b - e.b) * r + e.b
403
+ };
404
+ return a;
405
+ }
406
+ function ve(e, n, t) {
407
+ var r;
408
+ return Math.round(e.h) >= 60 && Math.round(e.h) <= 240 ? r = t ? Math.round(e.h) - H * n : Math.round(e.h) + H * n : r = t ? Math.round(e.h) + H * n : Math.round(e.h) - H * n, r < 0 ? r += 360 : r >= 360 && (r -= 360), r;
409
+ }
410
+ function he(e, n, t) {
411
+ if (e.h === 0 && e.s === 0)
412
+ return e.s;
413
+ var r;
414
+ return t ? r = e.s - ge * n : n === Fe ? r = e.s + ge : r = e.s + vt * n, r > 1 && (r = 1), t && n === Ee && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
415
+ }
416
+ function ye(e, n, t) {
417
+ var r;
418
+ return t ? r = e.v + ht * n : r = e.v - yt * n, r > 1 && (r = 1), Number(r.toFixed(2));
419
+ }
420
+ function ae(e) {
421
+ for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], r = N(e), a = Ee; a > 0; a -= 1) {
422
+ var o = be(r), l = U(N({
423
+ h: ve(o, a, !0),
424
+ s: he(o, a, !0),
425
+ v: ye(o, a, !0)
426
+ }));
427
+ t.push(l);
428
+ }
429
+ t.push(U(r));
430
+ for (var i = 1; i <= Fe; i += 1) {
431
+ var c = be(r), f = U(N({
432
+ h: ve(c, i),
433
+ s: he(c, i),
434
+ v: ye(c, i)
435
+ }));
436
+ t.push(f);
437
+ }
438
+ return n.theme === "dark" ? _t.map(function(C) {
439
+ var w = C.index, s = C.opacity, d = U(Ct(N(n.backgroundColor || "#141414"), N(t[w]), s * 100));
440
+ return d;
441
+ }) : t;
442
+ }
443
+ var K = {
444
+ red: "#F5222D",
445
+ volcano: "#FA541C",
446
+ orange: "#FA8C16",
447
+ gold: "#FAAD14",
448
+ yellow: "#FADB14",
449
+ lime: "#A0D911",
450
+ green: "#52C41A",
451
+ cyan: "#13C2C2",
452
+ blue: "#1890FF",
453
+ geekblue: "#2F54EB",
454
+ purple: "#722ED1",
455
+ magenta: "#EB2F96",
456
+ grey: "#666666"
457
+ }, z = {}, ee = {};
458
+ Object.keys(K).forEach(function(e) {
459
+ z[e] = ae(K[e]), z[e].primary = z[e][5], ee[e] = ae(K[e], {
460
+ theme: "dark",
461
+ backgroundColor: "#141414"
462
+ }), ee[e].primary = ee[e][5];
463
+ });
464
+ var wt = z.blue, xt = Symbol("iconContext"), Ne = function() {
465
+ return ze(xt, {
466
+ prefixCls: I("anticon"),
467
+ rootClassName: I(""),
468
+ csp: I()
469
+ });
470
+ };
471
+ function le() {
472
+ return !!(typeof window < "u" && window.document && window.document.createElement);
473
+ }
474
+ function Ot(e, n) {
475
+ return e && e.contains ? e.contains(n) : !1;
476
+ }
477
+ var _e = "data-vc-order", kt = "vc-icon-key", oe = /* @__PURE__ */ new Map();
478
+ function Me() {
479
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = e.mark;
480
+ return n ? n.startsWith("data-") ? n : "data-".concat(n) : kt;
481
+ }
482
+ function ce(e) {
483
+ if (e.attachTo)
484
+ return e.attachTo;
485
+ var n = document.querySelector("head");
486
+ return n || document.body;
487
+ }
488
+ function St(e) {
489
+ return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
490
+ }
491
+ function $e(e) {
492
+ return Array.from((oe.get(e) || e).children).filter(function(n) {
493
+ return n.tagName === "STYLE";
494
+ });
495
+ }
496
+ function Re(e) {
497
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
498
+ if (!le())
499
+ return null;
500
+ var t = n.csp, r = n.prepend, a = document.createElement("style");
501
+ a.setAttribute(_e, St(r)), t && t.nonce && (a.nonce = t.nonce), a.innerHTML = e;
502
+ var o = ce(n), l = o.firstChild;
503
+ if (r) {
504
+ if (r === "queue") {
505
+ var i = $e(o).filter(function(c) {
506
+ return ["prepend", "prependQueue"].includes(c.getAttribute(_e));
507
+ });
508
+ if (i.length)
509
+ return o.insertBefore(a, i[i.length - 1].nextSibling), a;
510
+ }
511
+ o.insertBefore(a, l);
512
+ } else
513
+ o.appendChild(a);
514
+ return a;
515
+ }
516
+ function Tt(e) {
517
+ var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = ce(n);
518
+ return $e(t).find(function(r) {
519
+ return r.getAttribute(Me(n)) === e;
520
+ });
521
+ }
522
+ function At(e, n) {
523
+ var t = oe.get(e);
524
+ if (!t || !Ot(document, t)) {
525
+ var r = Re("", n), a = r.parentNode;
526
+ oe.set(e, a), e.removeChild(r);
527
+ }
528
+ }
529
+ function jt(e, n) {
530
+ var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = ce(t);
531
+ At(r, t);
532
+ var a = Tt(n, t);
533
+ if (a)
534
+ return t.csp && t.csp.nonce && a.nonce !== t.csp.nonce && (a.nonce = t.csp.nonce), a.innerHTML !== e && (a.innerHTML = e), a;
535
+ var o = Re(e, t);
536
+ return o.setAttribute(Me(t), n), o;
537
+ }
538
+ function Ce(e) {
539
+ for (var n = 1; n < arguments.length; n++) {
540
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
541
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
542
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
543
+ }))), r.forEach(function(a) {
544
+ Pt(e, a, t[a]);
545
+ });
546
+ }
547
+ return e;
548
+ }
549
+ function Pt(e, n, t) {
550
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
551
+ }
552
+ function It(e, n) {
553
+ process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error("Warning: ".concat(n));
554
+ }
555
+ function Et(e, n) {
556
+ It(e, "[@ant-design/icons-vue] ".concat(n));
557
+ }
558
+ function we(e) {
559
+ return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
560
+ }
561
+ function ie(e, n, t) {
562
+ return t ? re(e.tag, Ce({
563
+ key: n
564
+ }, t, e.attrs), (e.children || []).map(function(r, a) {
565
+ return ie(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
566
+ })) : re(e.tag, Ce({
567
+ key: n
568
+ }, e.attrs), (e.children || []).map(function(r, a) {
569
+ return ie(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
570
+ }));
571
+ }
572
+ function De(e) {
573
+ return ae(e)[0];
574
+ }
575
+ function Le(e) {
576
+ return e ? Array.isArray(e) ? e : [e] : [];
577
+ }
578
+ var Ft = `
579
+ .anticon {
580
+ display: inline-block;
581
+ color: inherit;
582
+ font-style: normal;
583
+ line-height: 0;
584
+ text-align: center;
585
+ text-transform: none;
586
+ vertical-align: -0.125em;
587
+ text-rendering: optimizeLegibility;
588
+ -webkit-font-smoothing: antialiased;
589
+ -moz-osx-font-smoothing: grayscale;
590
+ }
591
+
592
+ .anticon > * {
593
+ line-height: 1;
594
+ }
595
+
596
+ .anticon svg {
597
+ display: inline-block;
598
+ }
599
+
600
+ .anticon::before {
601
+ display: none;
602
+ }
603
+
604
+ .anticon .anticon-icon {
605
+ display: block;
606
+ }
607
+
608
+ .anticon[tabindex] {
609
+ cursor: pointer;
610
+ }
611
+
612
+ .anticon-spin::before,
613
+ .anticon-spin {
614
+ display: inline-block;
615
+ -webkit-animation: loadingCircle 1s infinite linear;
616
+ animation: loadingCircle 1s infinite linear;
617
+ }
618
+
619
+ @-webkit-keyframes loadingCircle {
620
+ 100% {
621
+ -webkit-transform: rotate(360deg);
622
+ transform: rotate(360deg);
623
+ }
624
+ }
625
+
626
+ @keyframes loadingCircle {
627
+ 100% {
628
+ -webkit-transform: rotate(360deg);
629
+ transform: rotate(360deg);
630
+ }
631
+ }
632
+ `;
633
+ function Be(e) {
634
+ return e && e.getRootNode && e.getRootNode();
635
+ }
636
+ function Nt(e) {
637
+ return le() ? Be(e) instanceof ShadowRoot : !1;
638
+ }
639
+ function Mt(e) {
640
+ return Nt(e) ? Be(e) : null;
641
+ }
642
+ var $t = function() {
643
+ var n = Ne(), t = n.prefixCls, r = n.csp, a = We(), o = Ft;
644
+ t && (o = o.replace(/anticon/g, t.value)), Ve(function() {
645
+ if (le()) {
646
+ var l = a.vnode.el, i = Mt(l);
647
+ jt(o, "@ant-design-vue-icons", {
648
+ prepend: !0,
649
+ csp: r.value,
650
+ attachTo: i
651
+ });
652
+ }
653
+ });
654
+ }, Rt = ["icon", "primaryColor", "secondaryColor"];
655
+ function Dt(e, n) {
656
+ if (e == null) return {};
657
+ var t = Lt(e, n), r, a;
658
+ if (Object.getOwnPropertySymbols) {
659
+ var o = Object.getOwnPropertySymbols(e);
660
+ for (a = 0; a < o.length; a++)
661
+ r = o[a], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
662
+ }
663
+ return t;
664
+ }
665
+ function Lt(e, n) {
666
+ if (e == null) return {};
667
+ var t = {}, r = Object.keys(e), a, o;
668
+ for (o = 0; o < r.length; o++)
669
+ a = r[o], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
670
+ return t;
671
+ }
672
+ function W(e) {
673
+ for (var n = 1; n < arguments.length; n++) {
674
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
675
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
676
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
677
+ }))), r.forEach(function(a) {
678
+ Bt(e, a, t[a]);
679
+ });
680
+ }
681
+ return e;
682
+ }
683
+ function Bt(e, n, t) {
684
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
685
+ }
686
+ var R = Ae({
687
+ primaryColor: "#333",
688
+ secondaryColor: "#E6E6E6",
689
+ calculated: !1
690
+ });
691
+ function Ht(e) {
692
+ var n = e.primaryColor, t = e.secondaryColor;
693
+ R.primaryColor = n, R.secondaryColor = t || De(n), R.calculated = !!t;
694
+ }
695
+ function Ut() {
696
+ return W({}, R);
697
+ }
698
+ var S = function(n, t) {
699
+ var r = W({}, n, t.attrs), a = r.icon, o = r.primaryColor, l = r.secondaryColor, i = Dt(r, Rt), c = R;
700
+ if (o && (c = {
701
+ primaryColor: o,
702
+ secondaryColor: l || De(o)
703
+ }), Et(we(a), "icon should be icon definiton, but got ".concat(a)), !we(a))
704
+ return null;
705
+ var f = a;
706
+ return f && typeof f.icon == "function" && (f = W({}, f, {
707
+ icon: f.icon(c.primaryColor, c.secondaryColor)
708
+ })), ie(f.icon, "svg-".concat(f.name), W({}, i, {
709
+ "data-icon": f.name,
710
+ width: "1em",
711
+ height: "1em",
712
+ fill: "currentColor",
713
+ "aria-hidden": "true"
714
+ }));
715
+ };
716
+ S.props = {
717
+ icon: Object,
718
+ primaryColor: String,
719
+ secondaryColor: String,
720
+ focusable: String
721
+ };
722
+ S.inheritAttrs = !1;
723
+ S.displayName = "IconBase";
724
+ S.getTwoToneColors = Ut;
725
+ S.setTwoToneColors = Ht;
726
+ function zt(e, n) {
727
+ return Gt(e) || qt(e, n) || Vt(e, n) || Wt();
728
+ }
729
+ function Wt() {
730
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
731
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
732
+ }
733
+ function Vt(e, n) {
734
+ if (e) {
735
+ if (typeof e == "string") return xe(e, n);
736
+ var t = Object.prototype.toString.call(e).slice(8, -1);
737
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
738
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return xe(e, n);
739
+ }
740
+ }
741
+ function xe(e, n) {
742
+ (n == null || n > e.length) && (n = e.length);
743
+ for (var t = 0, r = new Array(n); t < n; t++)
744
+ r[t] = e[t];
745
+ return r;
746
+ }
747
+ function qt(e, n) {
748
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
749
+ if (t != null) {
750
+ var r = [], a = !0, o = !1, l, i;
751
+ try {
752
+ for (t = t.call(e); !(a = (l = t.next()).done) && (r.push(l.value), !(n && r.length === n)); a = !0)
753
+ ;
754
+ } catch (c) {
755
+ o = !0, i = c;
756
+ } finally {
757
+ try {
758
+ !a && t.return != null && t.return();
759
+ } finally {
760
+ if (o) throw i;
761
+ }
762
+ }
763
+ return r;
764
+ }
765
+ }
766
+ function Gt(e) {
767
+ if (Array.isArray(e)) return e;
768
+ }
769
+ function He(e) {
770
+ var n = Le(e), t = zt(n, 2), r = t[0], a = t[1];
771
+ return S.setTwoToneColors({
772
+ primaryColor: r,
773
+ secondaryColor: a
774
+ });
775
+ }
776
+ function Zt() {
777
+ var e = S.getTwoToneColors();
778
+ return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
779
+ }
780
+ var Qt = qe({
781
+ name: "InsertStyles",
782
+ setup: function() {
783
+ return $t(), function() {
784
+ return null;
785
+ };
786
+ }
787
+ }), Yt = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
788
+ function Jt(e, n) {
789
+ return tn(e) || en(e, n) || Kt(e, n) || Xt();
790
+ }
791
+ function Xt() {
792
+ throw new TypeError(`Invalid attempt to destructure non-iterable instance.
793
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
794
+ }
795
+ function Kt(e, n) {
796
+ if (e) {
797
+ if (typeof e == "string") return Oe(e, n);
798
+ var t = Object.prototype.toString.call(e).slice(8, -1);
799
+ if (t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set") return Array.from(e);
800
+ if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Oe(e, n);
801
+ }
802
+ }
803
+ function Oe(e, n) {
804
+ (n == null || n > e.length) && (n = e.length);
805
+ for (var t = 0, r = new Array(n); t < n; t++)
806
+ r[t] = e[t];
807
+ return r;
808
+ }
809
+ function en(e, n) {
810
+ var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
811
+ if (t != null) {
812
+ var r = [], a = !0, o = !1, l, i;
813
+ try {
814
+ for (t = t.call(e); !(a = (l = t.next()).done) && (r.push(l.value), !(n && r.length === n)); a = !0)
815
+ ;
816
+ } catch (c) {
817
+ o = !0, i = c;
818
+ } finally {
819
+ try {
820
+ !a && t.return != null && t.return();
821
+ } finally {
822
+ if (o) throw i;
823
+ }
824
+ }
825
+ return r;
826
+ }
827
+ }
828
+ function tn(e) {
829
+ if (Array.isArray(e)) return e;
830
+ }
831
+ function ke(e) {
832
+ for (var n = 1; n < arguments.length; n++) {
833
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
834
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
835
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
836
+ }))), r.forEach(function(a) {
837
+ M(e, a, t[a]);
838
+ });
839
+ }
840
+ return e;
841
+ }
842
+ function M(e, n, t) {
843
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
844
+ }
845
+ function nn(e, n) {
846
+ if (e == null) return {};
847
+ var t = rn(e, n), r, a;
848
+ if (Object.getOwnPropertySymbols) {
849
+ var o = Object.getOwnPropertySymbols(e);
850
+ for (a = 0; a < o.length; a++)
851
+ r = o[a], !(n.indexOf(r) >= 0) && Object.prototype.propertyIsEnumerable.call(e, r) && (t[r] = e[r]);
852
+ }
853
+ return t;
854
+ }
855
+ function rn(e, n) {
856
+ if (e == null) return {};
857
+ var t = {}, r = Object.keys(e), a, o;
858
+ for (o = 0; o < r.length; o++)
859
+ a = r[o], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
860
+ return t;
861
+ }
862
+ He(wt.primary);
863
+ var A = function(n, t) {
864
+ var r, a = ke({}, n, t.attrs), o = a.class, l = a.icon, i = a.spin, c = a.rotate, f = a.tabindex, C = a.twoToneColor, w = a.onClick, s = nn(a, Yt), d = Ne(), T = d.prefixCls, j = d.rootClassName, D = (r = {}, M(r, j.value, !!j.value), M(r, T.value, !0), M(r, "".concat(T.value, "-").concat(l.name), !!l.name), M(r, "".concat(T.value, "-spin"), !!i || l.name === "loading"), r), E = f;
865
+ E === void 0 && w && (E = -1);
866
+ var v = c ? {
867
+ msTransform: "rotate(".concat(c, "deg)"),
868
+ transform: "rotate(".concat(c, "deg)")
869
+ } : void 0, P = Le(C), x = Jt(P, 2), q = x[0], se = x[1];
870
+ return g("span", ke({
871
+ role: "img",
872
+ "aria-label": l.name
873
+ }, s, {
874
+ onClick: w,
875
+ class: [D, o],
876
+ tabindex: E
877
+ }), [g(S, {
878
+ icon: l,
879
+ primaryColor: q,
880
+ secondaryColor: se,
881
+ style: v
882
+ }, null), g(Qt, null, null)]);
883
+ };
884
+ A.props = {
885
+ spin: Boolean,
886
+ rotate: Number,
887
+ icon: Object,
888
+ twoToneColor: [String, Array]
889
+ };
890
+ A.displayName = "AntdIcon";
891
+ A.inheritAttrs = !1;
892
+ A.getTwoToneColor = Zt;
893
+ A.setTwoToneColor = He;
894
+ var an = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z" } }] }, name: "delete", theme: "outlined" };
895
+ function Se(e) {
896
+ for (var n = 1; n < arguments.length; n++) {
897
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
898
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
899
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
900
+ }))), r.forEach(function(a) {
901
+ on(e, a, t[a]);
902
+ });
903
+ }
904
+ return e;
905
+ }
906
+ function on(e, n, t) {
907
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
908
+ }
909
+ var fe = function(n, t) {
910
+ var r = Se({}, n, t.attrs);
911
+ return g(A, Se({}, r, {
912
+ icon: an
913
+ }), null);
914
+ };
915
+ fe.displayName = "DeleteOutlined";
916
+ fe.inheritAttrs = !1;
917
+ var ln = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z" } }] }, name: "link", theme: "outlined" };
918
+ function Te(e) {
919
+ for (var n = 1; n < arguments.length; n++) {
920
+ var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
921
+ typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
922
+ return Object.getOwnPropertyDescriptor(t, a).enumerable;
923
+ }))), r.forEach(function(a) {
924
+ cn(e, a, t[a]);
925
+ });
926
+ }
927
+ return e;
928
+ }
929
+ function cn(e, n, t) {
930
+ return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
931
+ }
932
+ var V = function(n, t) {
933
+ var r = Te({}, n, t.attrs);
934
+ return g(A, Te({}, r, {
935
+ icon: ln
936
+ }), null);
937
+ };
938
+ V.displayName = "LinkOutlined";
939
+ V.inheritAttrs = !1;
940
+ const fn = {
941
+ class: "tw-comments"
942
+ }, sn = {
943
+ class: "comments"
944
+ }, un = {
945
+ class: "header"
946
+ }, dn = {
947
+ class: "name"
948
+ }, pn = {
949
+ class: "time"
950
+ }, mn = {
951
+ key: 0,
952
+ class: "files"
953
+ }, gn = {
954
+ key: 1,
955
+ class: "logo",
956
+ src: ot
957
+ }, bn = {
958
+ class: "detail"
959
+ }, vn = {
960
+ class: "fileName"
961
+ }, hn = {
962
+ class: "buttons"
963
+ }, yn = ["onClick"], _n = {
964
+ class: "content"
965
+ }, Cn = {
966
+ class: "addNew"
967
+ }, wn = {
968
+ class: "files"
969
+ }, xn = {
970
+ class: "name"
971
+ }, On = {
972
+ class: "detail"
973
+ }, kn = /* @__PURE__ */ Object.assign({
974
+ name: "TWComments"
975
+ }, {
976
+ __name: "index",
977
+ props: {
978
+ comments: {
979
+ type: Array,
980
+ default: () => []
981
+ },
982
+ // 文件Name属性
983
+ fileNameKey: {
984
+ type: String,
985
+ default: "fileName"
986
+ },
987
+ // 文件Url属性
988
+ fileUrlKey: {
989
+ type: String,
990
+ default: "fileUrl"
991
+ },
992
+ // 上传地址
993
+ uploadAction: {
994
+ type: String,
995
+ default: "https://www.mocky.io/v2/5cc8019d300000980a055e76"
996
+ }
997
+ },
998
+ emits: ["submit"],
999
+ setup(e, {
1000
+ emit: n
1001
+ }) {
1002
+ const t = e, r = (s) => {
1003
+ const d = [".png", ".jpg", ".jpeg", ".gif", ".bmp", ".webp"], T = s.toLowerCase();
1004
+ return d.some((j) => T.endsWith(j));
1005
+ }, a = (s) => {
1006
+ window.open(s, "_blank");
1007
+ }, o = I([
1008
+ // {
1009
+ // fileName: "文件12341234.pdf",
1010
+ // fileUrl: "/path/to/file.pdf",
1011
+ // },
1012
+ // {
1013
+ // fileName: "文件.pdf",
1014
+ // fileUrl: "/path/to/file.pdf",
1015
+ // },
1016
+ ]), l = I(!1), i = ({
1017
+ file: s
1018
+ }) => {
1019
+ if (console.log("上传文件了: ", s), l.value = !0, s.response)
1020
+ if (l.value = !1, s.response.IsSuccess) {
1021
+ const d = {
1022
+ fileName: s.response.ResultData[t.fileNameKey],
1023
+ fileUrl: s.response.ResultData[t.fileUrlKey]
1024
+ };
1025
+ o.value.push(d);
1026
+ } else
1027
+ ue.error({
1028
+ message: "上传失败"
1029
+ });
1030
+ else
1031
+ setTimeout(() => {
1032
+ l.value = !1;
1033
+ }, 2e3);
1034
+ }, c = (s) => {
1035
+ o.value.splice(s, 1);
1036
+ }, f = I(""), C = n, w = () => {
1037
+ if (!f.value.trim() && o.value.length === 0) {
1038
+ ue.warning({
1039
+ message: "请填写"
1040
+ });
1041
+ return;
1042
+ }
1043
+ const s = {
1044
+ comment: f.value,
1045
+ files: o.value
1046
+ };
1047
+ C("submit", s), f.value = "", o.value = [];
1048
+ };
1049
+ return (s, d) => {
1050
+ const T = L("a-image"), j = L("a-input"), D = L("a-button"), E = L("a-upload");
1051
+ return m(), te(O(je), {
1052
+ theme: O(Pe)
1053
+ }, {
1054
+ default: $(() => [u("div", fn, [u("div", sn, [(m(!0), _(G, null, Z(t.comments, (v, P) => (m(), _("div", {
1055
+ class: "comment",
1056
+ key: P
1057
+ }, [u("div", un, [u("p", dn, F(v.name), 1), u("p", pn, F(v.time), 1)]), v.files?.length > 0 ? (m(), _("div", mn, [(m(!0), _(G, null, Z(v.files, (x, q) => (m(), _("div", {
1058
+ class: "file",
1059
+ key: q
1060
+ }, [r(x[t.fileNameKey]) ? (m(), te(T, {
1061
+ key: 0,
1062
+ src: x.fileUrl,
1063
+ width: "40px",
1064
+ height: "40px"
1065
+ }, null, 8, ["src"])) : (m(), _("img", gn)), u("div", bn, [u("p", vn, F(x[t.fileNameKey]), 1), u("div", hn, [u("p", {
1066
+ onClick: (se) => a(x[t.fileUrlKey])
1067
+ }, "下载", 8, yn)])])]))), 128))])) : Ge("", !0), u("div", _n, F(v.content), 1)]))), 128))]), u("div", Cn, [u("div", wn, [(m(!0), _(G, null, Z(o.value, (v, P) => (m(), _("div", {
1068
+ class: "file",
1069
+ key: P
1070
+ }, [g(O(V)), u("p", xn, F(v.fileName), 1), g(O(fe), {
1071
+ class: "delete",
1072
+ onClick: (x) => c(P)
1073
+ }, null, 8, ["onClick"])]))), 128))]), u("div", On, [g(j, {
1074
+ value: f.value,
1075
+ "onUpdate:value": d[0] || (d[0] = (v) => f.value = v),
1076
+ placeholder: "请输入",
1077
+ bordered: !1
1078
+ }, null, 8, ["value"]), g(E, {
1079
+ name: "file",
1080
+ action: e.uploadAction,
1081
+ showUploadList: !1,
1082
+ onChange: i
1083
+ }, {
1084
+ default: $(() => [g(D, {
1085
+ icon: re(O(V)),
1086
+ loading: l.value
1087
+ }, null, 8, ["icon", "loading"])]),
1088
+ _: 1
1089
+ }, 8, ["action"]), g(D, {
1090
+ type: "primary",
1091
+ onClick: w
1092
+ }, {
1093
+ default: $(() => [...d[1] || (d[1] = [ne("提交", -1)])]),
1094
+ _: 1
1095
+ })])])])]),
1096
+ _: 1
1097
+ }, 8, ["theme"]);
1098
+ };
44
1099
  }
45
- }), I = [y, v], R = function(e) {
46
- I.forEach((t) => {
47
- e.component(t.name, t);
1100
+ }), Sn = /* @__PURE__ */ Ie(kn, [["__scopeId", "data-v-966e1b1a"]]), Tn = [nt, at, Sn], An = function(e) {
1101
+ Tn.forEach((n) => {
1102
+ e.component(n.name, n);
48
1103
  });
49
- }, C = { install: R, publicJs: m };
1104
+ }, In = { install: An, publicJs: Ke };
50
1105
  export {
51
- y as TWAirlineInfo,
52
- v as TWHotelInfo,
53
- C as default,
54
- p as isValidEmail,
55
- u as isValidIdCard,
56
- f as isValidPhoneNumber
1106
+ nt as TWAirlineInfo,
1107
+ at as TWHotelInfo,
1108
+ In as default,
1109
+ Xe as isValidEmail,
1110
+ Ye as isValidIdCard,
1111
+ Je as isValidPhoneNumber
57
1112
  };
package/travel-ui.umd.js CHANGED
@@ -1 +1,57 @@
1
- (function(e,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],n):(e=typeof globalThis<"u"?globalThis:e||self,n(e["travel-ui"]={},e.Vue,e.Antd))})(this,(function(e,n,l){"use strict";function s(t){return/^(?:\d{15}|\d{17}[\dXx])$/.test(t)}function r(t){return/^1\d{10}$/.test(t)}function d(t){return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t)}const u=Object.freeze(Object.defineProperty({__proto__:null,isValidEmail:d,isValidIdCard:s,isValidPhoneNumber:r},Symbol.toStringTag,{value:"Module"})),f={class:"tw-airline-info"},a=((t,i)=>{const o=t.__vccOpts||t;for(const[x,g]of i)o[x]=g;return o})(Object.assign({name:"TWAirlineInfo"},{__name:"index",setup(t){return(i,o)=>(n.openBlock(),n.createElementBlock("div",f,[o[1]||(o[1]=n.createTextVNode(" 123 ",-1)),n.createVNode(n.unref(l.Button),{type:"primary"},{default:n.withCtx(()=>[...o[0]||(o[0]=[n.createTextVNode("Primary Button",-1)])]),_:1})]))}}),[["__scopeId","data-v-34ed9467"]]),_={class:"tw-hotel-info"},c=Object.assign({name:"TWHotelInfo"},{__name:"index",setup(t){return(i,o)=>(n.openBlock(),n.createElementBlock("div",_))}}),m=[a,c],p={install:function(t){m.forEach(i=>{t.component(i.name,i)})},publicJs:u};e.TWAirlineInfo=a,e.TWHotelInfo=c,e.default=p,e.isValidEmail=d,e.isValidIdCard=s,e.isValidPhoneNumber=r,Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
1
+ (function(d,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("ant-design-vue")):typeof define=="function"&&define.amd?define(["exports","vue","ant-design-vue"],o):(d=typeof globalThis<"u"?globalThis:d||self,o(d["travel-ui"]={},d.Vue,d.Antd))})(this,(function(d,o,O){"use strict";function K(e){return/^(?:\d{15}|\d{17}[\dXx])$/.test(e)}function ee(e){return/^1\d{10}$/.test(e)}function te(e){return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e)}const Ie=Object.freeze(Object.defineProperty({__proto__:null,isValidEmail:te,isValidIdCard:K,isValidPhoneNumber:ee},Symbol.toStringTag,{value:"Module"})),ne=o.reactive({mode:"light",algorithm:O.theme.defaultAlgorithm,token:{colorPrimary:"#F0182A",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",borderRadius:4,wireframe:!0}}),re=o.computed(()=>({algorithm:ne.algorithm,token:{...ne.token}})),Fe={class:"tw-airline-info"},Be=Object.assign({name:"TWAirlineInfo"},{__name:"index",setup(e){return(n,t)=>(o.openBlock(),o.createBlock(o.unref(O.ConfigProvider),{theme:o.unref(re)},{default:o.withCtx(()=>[o.createElementVNode("div",Fe,[t[1]||(t[1]=o.createTextVNode(" 123 ",-1)),o.createVNode(o.unref(O.Button),{type:"primary"},{default:o.withCtx(()=>[...t[0]||(t[0]=[o.createTextVNode("Primary Button",-1)])]),_:1})])]),_:1},8,["theme"]))}}),ae=(e,n)=>{const t=e.__vccOpts||e;for(const[r,a]of n)t[r]=a;return t},oe=ae(Be,[["__scopeId","data-v-75e539f7"]]),Me={class:"tw-hotel-info"},ie=Object.assign({name:"TWHotelInfo"},{__name:"index",setup(e){return(n,t)=>(o.openBlock(),o.createElementBlock("div",Me))}}),Ve="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M20.1315%201.00644C20.4368%201.03635%2020.7239%201.16982%2020.9427%201.38619L27.6094%207.9771C27.8594%208.2243%2028%208.55949%2028%208.90909V28.3636C28%2029.0628%2027.7188%2029.7332%2027.2188%2030.2276C26.7187%2030.722%2026.0406%2031%2025.3333%2031H6.66667C5.95942%2031%205.28135%2030.722%204.78125%2030.2276C4.28115%2029.7332%204%2029.0628%204%2028.3636V3.63636C4%202.93716%204.28115%202.26679%204.78125%201.77237C5.28135%201.27796%205.95942%201%206.66667%201H20L20.1315%201.00644Z'%20fill='url(%23paint0_linear_31336_50582)'%20stroke='url(%23paint1_linear_31336_50582)'%20stroke-width='0.4'%20stroke-linejoin='round'/%3e%3cline%20x1='9.9'%20y1='13.1'%20x2='22.1'%20y2='13.1'%20stroke='%23F33F4E'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cline%20x1='9.9'%20y1='19.1'%20x2='18.1'%20y2='19.1'%20stroke='%23F33F4E'%20stroke-width='1.8'%20stroke-linecap='round'/%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_31336_50582'%20x1='16'%20y1='1'%20x2='16'%20y2='30'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='white'/%3e%3cstop%20offset='1'%20stop-color='%23FFD2D2'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_31336_50582'%20x1='16'%20y1='1'%20x2='16'%20y2='31'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23DEDEDE'/%3e%3cstop%20offset='1'%20stop-color='%23F57C7C'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e";function g(e,n){$e(e)&&(e="100%");var t=Re(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function $e(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Re(e){return typeof e=="string"&&e.indexOf("%")!==-1}function De(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function I(e){return e<=1?"".concat(Number(e)*100,"%"):e}function D(e){return e.length===1?"0"+e:String(e)}function Le(e,n,t){return{r:g(e,255)*255,g:g(n,255)*255,b:g(t,255)*255}}function L(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function He(e,n,t){var r,a,i;if(e=g(e,360),n=g(n,100),t=g(t,100),n===0)a=t,i=t,r=t;else{var c=t<.5?t*(1+n):t+n-t*n,l=2*t-c;r=L(l,c,e+1/3),a=L(l,c,e),i=L(l,c,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function Ue(e,n,t){e=g(e,255),n=g(n,255),t=g(t,255);var r=Math.max(e,n,t),a=Math.min(e,n,t),i=0,c=r,l=r-a,f=r===0?0:l/r;if(r===a)i=0;else{switch(r){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s:f,v:c}}function ze(e,n,t){e=g(e,360)*6,n=g(n,100),t=g(t,100);var r=Math.floor(e),a=e-r,i=t*(1-n),c=t*(1-a*n),l=t*(1-(1-a)*n),f=r%6,s=[t,c,i,i,l,t][f],_=[l,t,t,c,i,i][f],w=[i,i,l,t,t,c][f];return{r:s*255,g:_*255,b:w*255}}function We(e,n,t,r){var a=[D(Math.round(e).toString(16)),D(Math.round(n).toString(16)),D(Math.round(t).toString(16))];return a.join("")}function le(e){return m(e)/255}function m(e){return parseInt(e,16)}var ce={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function N(e){var n={r:0,g:0,b:0},t=1,r=null,a=null,i=null,c=!1,l=!1;return typeof e=="string"&&(e=Ze(e)),typeof e=="object"&&(y(e.r)&&y(e.g)&&y(e.b)?(n=Le(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):y(e.h)&&y(e.s)&&y(e.v)?(r=I(e.s),a=I(e.v),n=ze(e.h,r,a),c=!0,l="hsv"):y(e.h)&&y(e.s)&&y(e.l)&&(r=I(e.s),i=I(e.l),n=He(e.h,r,i),c=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=De(t),{ok:c,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var qe="[-\\+]?\\d+%?",Ge="[-\\+]?\\d*\\.\\d+%?",v="(?:".concat(Ge,")|(?:").concat(qe,")"),H="[\\s|\\(]+(".concat(v,")[,|\\s]+(").concat(v,")[,|\\s]+(").concat(v,")\\s*\\)?"),U="[\\s|\\(]+(".concat(v,")[,|\\s]+(").concat(v,")[,|\\s]+(").concat(v,")[,|\\s]+(").concat(v,")\\s*\\)?"),b={CSS_UNIT:new RegExp(v),rgb:new RegExp("rgb"+H),rgba:new RegExp("rgba"+U),hsl:new RegExp("hsl"+H),hsla:new RegExp("hsla"+U),hsv:new RegExp("hsv"+H),hsva:new RegExp("hsva"+U),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Ze(e){if(e=e.trim().toLowerCase(),e.length===0)return!1;var n=!1;if(ce[e])e=ce[e],n=!0;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=b.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=b.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=b.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=b.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=b.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=b.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=b.hex8.exec(e),t?{r:m(t[1]),g:m(t[2]),b:m(t[3]),a:le(t[4]),format:n?"name":"hex8"}:(t=b.hex6.exec(e),t?{r:m(t[1]),g:m(t[2]),b:m(t[3]),format:n?"name":"hex"}:(t=b.hex4.exec(e),t?{r:m(t[1]+t[1]),g:m(t[2]+t[2]),b:m(t[3]+t[3]),a:le(t[4]+t[4]),format:n?"name":"hex8"}:(t=b.hex3.exec(e),t?{r:m(t[1]+t[1]),g:m(t[2]+t[2]),b:m(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function y(e){return!!b.CSS_UNIT.exec(String(e))}var F=2,fe=.16,Qe=.05,Ye=.05,Je=.15,se=5,ue=4,Xe=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function de(e){var n=e.r,t=e.g,r=e.b,a=Ue(n,t,r);return{h:a.h*360,s:a.s,v:a.v}}function B(e){var n=e.r,t=e.g,r=e.b;return"#".concat(We(n,t,r))}function Ke(e,n,t){var r=t/100,a={r:(n.r-e.r)*r+e.r,g:(n.g-e.g)*r+e.g,b:(n.b-e.b)*r+e.b};return a}function me(e,n,t){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=t?Math.round(e.h)-F*n:Math.round(e.h)+F*n:r=t?Math.round(e.h)+F*n:Math.round(e.h)-F*n,r<0?r+=360:r>=360&&(r-=360),r}function pe(e,n,t){if(e.h===0&&e.s===0)return e.s;var r;return t?r=e.s-fe*n:n===ue?r=e.s+fe:r=e.s+Qe*n,r>1&&(r=1),t&&n===se&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2))}function ge(e,n,t){var r;return t?r=e.v+Ye*n:r=e.v-Je*n,r>1&&(r=1),Number(r.toFixed(2))}function z(e){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],r=N(e),a=se;a>0;a-=1){var i=de(r),c=B(N({h:me(i,a,!0),s:pe(i,a,!0),v:ge(i,a,!0)}));t.push(c)}t.push(B(r));for(var l=1;l<=ue;l+=1){var f=de(r),s=B(N({h:me(f,l),s:pe(f,l),v:ge(f,l)}));t.push(s)}return n.theme==="dark"?Xe.map(function(_){var w=_.index,u=_.opacity,p=B(Ke(N(n.backgroundColor||"#141414"),N(t[w]),u*100));return p}):t}var W={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},M={},q={};Object.keys(W).forEach(function(e){M[e]=z(W[e]),M[e].primary=M[e][5],q[e]=z(W[e],{theme:"dark",backgroundColor:"#141414"}),q[e].primary=q[e][5]});var et=M.blue,tt=Symbol("iconContext"),be=function(){return o.inject(tt,{prefixCls:o.ref("anticon"),rootClassName:o.ref(""),csp:o.ref()})};function G(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function nt(e,n){return e&&e.contains?e.contains(n):!1}var he="data-vc-order",rt="vc-icon-key",Z=new Map;function ye(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.mark;return n?n.startsWith("data-")?n:"data-".concat(n):rt}function Q(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function at(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function ve(e){return Array.from((Z.get(e)||e).children).filter(function(n){return n.tagName==="STYLE"})}function Ce(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!G())return null;var t=n.csp,r=n.prepend,a=document.createElement("style");a.setAttribute(he,at(r)),t&&t.nonce&&(a.nonce=t.nonce),a.innerHTML=e;var i=Q(n),c=i.firstChild;if(r){if(r==="queue"){var l=ve(i).filter(function(f){return["prepend","prependQueue"].includes(f.getAttribute(he))});if(l.length)return i.insertBefore(a,l[l.length-1].nextSibling),a}i.insertBefore(a,c)}else i.appendChild(a);return a}function ot(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=Q(n);return ve(t).find(function(r){return r.getAttribute(ye(n))===e})}function it(e,n){var t=Z.get(e);if(!t||!nt(document,t)){var r=Ce("",n),a=r.parentNode;Z.set(e,a),e.removeChild(r)}}function lt(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Q(t);it(r,t);var a=ot(n,t);if(a)return t.csp&&t.csp.nonce&&a.nonce!==t.csp.nonce&&(a.nonce=t.csp.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;var i=Ce(e,t);return i.setAttribute(ye(t),n),i}function _e(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.forEach(function(a){ct(e,a,t[a])})}return e}function ct(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function ft(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function st(e,n){ft(e,"[@ant-design/icons-vue] ".concat(n))}function we(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Y(e,n,t){return t?o.h(e.tag,_e({key:n},t,e.attrs),(e.children||[]).map(function(r,a){return Y(r,"".concat(n,"-").concat(e.tag,"-").concat(a))})):o.h(e.tag,_e({key:n},e.attrs),(e.children||[]).map(function(r,a){return Y(r,"".concat(n,"-").concat(e.tag,"-").concat(a))}))}function ke(e){return z(e)[0]}function xe(e){return e?Array.isArray(e)?e:[e]:[]}var ut=`
2
+ .anticon {
3
+ display: inline-block;
4
+ color: inherit;
5
+ font-style: normal;
6
+ line-height: 0;
7
+ text-align: center;
8
+ text-transform: none;
9
+ vertical-align: -0.125em;
10
+ text-rendering: optimizeLegibility;
11
+ -webkit-font-smoothing: antialiased;
12
+ -moz-osx-font-smoothing: grayscale;
13
+ }
14
+
15
+ .anticon > * {
16
+ line-height: 1;
17
+ }
18
+
19
+ .anticon svg {
20
+ display: inline-block;
21
+ }
22
+
23
+ .anticon::before {
24
+ display: none;
25
+ }
26
+
27
+ .anticon .anticon-icon {
28
+ display: block;
29
+ }
30
+
31
+ .anticon[tabindex] {
32
+ cursor: pointer;
33
+ }
34
+
35
+ .anticon-spin::before,
36
+ .anticon-spin {
37
+ display: inline-block;
38
+ -webkit-animation: loadingCircle 1s infinite linear;
39
+ animation: loadingCircle 1s infinite linear;
40
+ }
41
+
42
+ @-webkit-keyframes loadingCircle {
43
+ 100% {
44
+ -webkit-transform: rotate(360deg);
45
+ transform: rotate(360deg);
46
+ }
47
+ }
48
+
49
+ @keyframes loadingCircle {
50
+ 100% {
51
+ -webkit-transform: rotate(360deg);
52
+ transform: rotate(360deg);
53
+ }
54
+ }
55
+ `;function Se(e){return e&&e.getRootNode&&e.getRootNode()}function dt(e){return G()?Se(e)instanceof ShadowRoot:!1}function mt(e){return dt(e)?Se(e):null}var pt=function(){var n=be(),t=n.prefixCls,r=n.csp,a=o.getCurrentInstance(),i=ut;t&&(i=i.replace(/anticon/g,t.value)),o.nextTick(function(){if(G()){var c=a.vnode.el,l=mt(c);lt(i,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:l})}})},gt=["icon","primaryColor","secondaryColor"];function bt(e,n){if(e==null)return{};var t=ht(e,n),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function ht(e,n){if(e==null)return{};var t={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(n.indexOf(a)>=0)&&(t[a]=e[a]);return t}function V(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.forEach(function(a){yt(e,a,t[a])})}return e}function yt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var A=o.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function vt(e){var n=e.primaryColor,t=e.secondaryColor;A.primaryColor=n,A.secondaryColor=t||ke(n),A.calculated=!!t}function Ct(){return V({},A)}var C=function(n,t){var r=V({},n,t.attrs),a=r.icon,i=r.primaryColor,c=r.secondaryColor,l=bt(r,gt),f=A;if(i&&(f={primaryColor:i,secondaryColor:c||ke(i)}),st(we(a),"icon should be icon definiton, but got ".concat(a)),!we(a))return null;var s=a;return s&&typeof s.icon=="function"&&(s=V({},s,{icon:s.icon(f.primaryColor,f.secondaryColor)})),Y(s.icon,"svg-".concat(s.name),V({},l,{"data-icon":s.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};C.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},C.inheritAttrs=!1,C.displayName="IconBase",C.getTwoToneColors=Ct,C.setTwoToneColors=vt;function _t(e,n){return St(e)||xt(e,n)||kt(e,n)||wt()}function wt(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
56
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function kt(e,n){if(e){if(typeof e=="string")return Oe(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Oe(e,n)}}function Oe(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function xt(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r=[],a=!0,i=!1,c,l;try{for(t=t.call(e);!(a=(c=t.next()).done)&&(r.push(c.value),!(n&&r.length===n));a=!0);}catch(f){i=!0,l=f}finally{try{!a&&t.return!=null&&t.return()}finally{if(i)throw l}}return r}}function St(e){if(Array.isArray(e))return e}function Te(e){var n=xe(e),t=_t(n,2),r=t[0],a=t[1];return C.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Ot(){var e=C.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Tt=o.defineComponent({name:"InsertStyles",setup:function(){return pt(),function(){return null}}}),Et=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function Nt(e,n){return It(e)||Pt(e,n)||jt(e,n)||At()}function At(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
57
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jt(e,n){if(e){if(typeof e=="string")return Ee(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Ee(e,n)}}function Ee(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function Pt(e,n){var t=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(t!=null){var r=[],a=!0,i=!1,c,l;try{for(t=t.call(e);!(a=(c=t.next()).done)&&(r.push(c.value),!(n&&r.length===n));a=!0);}catch(f){i=!0,l=f}finally{try{!a&&t.return!=null&&t.return()}finally{if(i)throw l}}return r}}function It(e){if(Array.isArray(e))return e}function Ne(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.forEach(function(a){j(e,a,t[a])})}return e}function j(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function Ft(e,n){if(e==null)return{};var t=Bt(e,n),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}function Bt(e,n){if(e==null)return{};var t={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(n.indexOf(a)>=0)&&(t[a]=e[a]);return t}Te(et.primary);var x=function(n,t){var r,a=Ne({},n,t.attrs),i=a.class,c=a.icon,l=a.spin,f=a.rotate,s=a.tabindex,_=a.twoToneColor,w=a.onClick,u=Ft(a,Et),p=be(),S=p.prefixCls,T=p.rootClassName,R=(r={},j(r,T.value,!!T.value),j(r,S.value,!0),j(r,"".concat(S.value,"-").concat(c.name),!!c.name),j(r,"".concat(S.value,"-spin"),!!l||c.name==="loading"),r),P=s;P===void 0&&w&&(P=-1);var h=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=xe(_),k=Nt(E,2),X=k[0],Pe=k[1];return o.createVNode("span",Ne({role:"img","aria-label":c.name},u,{onClick:w,class:[R,i],tabindex:P}),[o.createVNode(C,{icon:c,primaryColor:X,secondaryColor:Pe,style:h},null),o.createVNode(Tt,null,null)])};x.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},x.displayName="AntdIcon",x.inheritAttrs=!1,x.getTwoToneColor=Ot,x.setTwoToneColor=Te;var Mt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function Ae(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.forEach(function(a){Vt(e,a,t[a])})}return e}function Vt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var J=function(n,t){var r=Ae({},n,t.attrs);return o.createVNode(x,Ae({},r,{icon:Mt}),null)};J.displayName="DeleteOutlined",J.inheritAttrs=!1;var $t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M574 665.4a8.03 8.03 0 00-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 00-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 000 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 000 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 00-11.3 0L372.3 598.7a8.03 8.03 0 000 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"}}]},name:"link",theme:"outlined"};function je(e){for(var n=1;n<arguments.length;n++){var t=arguments[n]!=null?Object(arguments[n]):{},r=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(r=r.concat(Object.getOwnPropertySymbols(t).filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable}))),r.forEach(function(a){Rt(e,a,t[a])})}return e}function Rt(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var $=function(n,t){var r=je({},n,t.attrs);return o.createVNode(x,je({},r,{icon:$t}),null)};$.displayName="LinkOutlined",$.inheritAttrs=!1;const Dt={class:"tw-comments"},Lt={class:"comments"},Ht={class:"header"},Ut={class:"name"},zt={class:"time"},Wt={key:0,class:"files"},qt={key:1,class:"logo",src:Ve},Gt={class:"detail"},Zt={class:"fileName"},Qt={class:"buttons"},Yt=["onClick"],Jt={class:"content"},Xt={class:"addNew"},Kt={class:"files"},en={class:"name"},tn={class:"detail"},nn=[oe,ie,ae(Object.assign({name:"TWComments"},{__name:"index",props:{comments:{type:Array,default:()=>[]},fileNameKey:{type:String,default:"fileName"},fileUrlKey:{type:String,default:"fileUrl"},uploadAction:{type:String,default:"https://www.mocky.io/v2/5cc8019d300000980a055e76"}},emits:["submit"],setup(e,{emit:n}){const t=e,r=u=>{const p=[".png",".jpg",".jpeg",".gif",".bmp",".webp"],S=u.toLowerCase();return p.some(T=>S.endsWith(T))},a=u=>{window.open(u,"_blank")},i=o.ref([]),c=o.ref(!1),l=({file:u})=>{if(console.log("上传文件了: ",u),c.value=!0,u.response)if(c.value=!1,u.response.IsSuccess){const p={fileName:u.response.ResultData[t.fileNameKey],fileUrl:u.response.ResultData[t.fileUrlKey]};i.value.push(p)}else O.notification.error({message:"上传失败"});else setTimeout(()=>{c.value=!1},2e3)},f=u=>{i.value.splice(u,1)},s=o.ref(""),_=n,w=()=>{if(!s.value.trim()&&i.value.length===0){O.notification.warning({message:"请填写"});return}const u={comment:s.value,files:i.value};_("submit",u),s.value="",i.value=[]};return(u,p)=>{const S=o.resolveComponent("a-image"),T=o.resolveComponent("a-input"),R=o.resolveComponent("a-button"),P=o.resolveComponent("a-upload");return o.openBlock(),o.createBlock(o.unref(O.ConfigProvider),{theme:o.unref(re)},{default:o.withCtx(()=>[o.createElementVNode("div",Dt,[o.createElementVNode("div",Lt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.comments,(h,E)=>(o.openBlock(),o.createElementBlock("div",{class:"comment",key:E},[o.createElementVNode("div",Ht,[o.createElementVNode("p",Ut,o.toDisplayString(h.name),1),o.createElementVNode("p",zt,o.toDisplayString(h.time),1)]),h.files?.length>0?(o.openBlock(),o.createElementBlock("div",Wt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.files,(k,X)=>(o.openBlock(),o.createElementBlock("div",{class:"file",key:X},[r(k[t.fileNameKey])?(o.openBlock(),o.createBlock(S,{key:0,src:k.fileUrl,width:"40px",height:"40px"},null,8,["src"])):(o.openBlock(),o.createElementBlock("img",qt)),o.createElementVNode("div",Gt,[o.createElementVNode("p",Zt,o.toDisplayString(k[t.fileNameKey]),1),o.createElementVNode("div",Qt,[o.createElementVNode("p",{onClick:Pe=>a(k[t.fileUrlKey])},"下载",8,Yt)])])]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",Jt,o.toDisplayString(h.content),1)]))),128))]),o.createElementVNode("div",Xt,[o.createElementVNode("div",Kt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(h,E)=>(o.openBlock(),o.createElementBlock("div",{class:"file",key:E},[o.createVNode(o.unref($)),o.createElementVNode("p",en,o.toDisplayString(h.fileName),1),o.createVNode(o.unref(J),{class:"delete",onClick:k=>f(E)},null,8,["onClick"])]))),128))]),o.createElementVNode("div",tn,[o.createVNode(T,{value:s.value,"onUpdate:value":p[0]||(p[0]=h=>s.value=h),placeholder:"请输入",bordered:!1},null,8,["value"]),o.createVNode(P,{name:"file",action:e.uploadAction,showUploadList:!1,onChange:l},{default:o.withCtx(()=>[o.createVNode(R,{icon:o.h(o.unref($)),loading:c.value},null,8,["icon","loading"])]),_:1},8,["action"]),o.createVNode(R,{type:"primary",onClick:w},{default:o.withCtx(()=>[...p[1]||(p[1]=[o.createTextVNode("提交",-1)])]),_:1})])])])]),_:1},8,["theme"])}}}),[["__scopeId","data-v-966e1b1a"]])],rn={install:function(e){nn.forEach(n=>{e.component(n.name,n)})},publicJs:Ie};d.TWAirlineInfo=oe,d.TWHotelInfo=ie,d.default=rn,d.isValidEmail=te,d.isValidIdCard=K,d.isValidPhoneNumber=ee,Object.defineProperties(d,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));