travel-ui 1.1.0 → 1.1.2
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/package.json +6 -3
- package/travel-ui.es.js +268 -267
- package/travel-ui.umd.js +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "travel-ui",
|
|
3
|
-
"version": "1.1.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.1.2",
|
|
4
|
+
"description": "修复TWComments的使用",
|
|
5
5
|
"main": "travel-ui.umd.js",
|
|
6
6
|
"module": "travel-ui.es.js",
|
|
7
7
|
"exports": {
|
|
@@ -18,8 +18,11 @@
|
|
|
18
18
|
"author": "",
|
|
19
19
|
"license": "ISC",
|
|
20
20
|
"type": "commonjs",
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"vue": ">=3.3",
|
|
23
|
+
"ant-design-vue": ">=4.2.0"
|
|
24
|
+
},
|
|
21
25
|
"dependencies": {
|
|
22
|
-
"ant-design-vue": "^4.2.6",
|
|
23
26
|
"less": "^4.4.2"
|
|
24
27
|
}
|
|
25
28
|
}
|
package/travel-ui.es.js
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import { reactive as
|
|
2
|
-
import { theme as
|
|
3
|
-
function
|
|
1
|
+
import { reactive as Fe, computed as qe, createBlock as ne, openBlock as m, unref as O, withCtx as $, createElementVNode as u, createTextVNode as re, createVNode as g, createElementBlock as _, inject as Ge, ref as P, h as ae, getCurrentInstance as Ze, nextTick as Qe, defineComponent as Ye, resolveComponent as L, Fragment as Z, renderList as Q, createCommentVNode as Je, toDisplayString as F } from "vue";
|
|
2
|
+
import { theme as Xe, ConfigProvider as V, Button as oe, notification as pe, Input as me, Upload as ge, Image as be } from "ant-design-vue";
|
|
3
|
+
function Ke(e) {
|
|
4
4
|
return /^(?:\d{15}|\d{17}[\dXx])$/.test(e);
|
|
5
5
|
}
|
|
6
|
-
function
|
|
6
|
+
function et(e) {
|
|
7
7
|
return /^1\d{10}$/.test(e);
|
|
8
8
|
}
|
|
9
|
-
function
|
|
9
|
+
function tt(e) {
|
|
10
10
|
return /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(e);
|
|
11
11
|
}
|
|
12
|
-
const
|
|
12
|
+
const nt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
13
13
|
__proto__: null,
|
|
14
|
-
isValidEmail:
|
|
15
|
-
isValidIdCard:
|
|
16
|
-
isValidPhoneNumber:
|
|
17
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
14
|
+
isValidEmail: tt,
|
|
15
|
+
isValidIdCard: Ke,
|
|
16
|
+
isValidPhoneNumber: et
|
|
17
|
+
}, Symbol.toStringTag, { value: "Module" })), ve = Fe({
|
|
18
18
|
mode: "light",
|
|
19
|
-
algorithm:
|
|
19
|
+
algorithm: Xe.defaultAlgorithm,
|
|
20
20
|
token: {
|
|
21
21
|
colorPrimary: "#F0182A",
|
|
22
22
|
colorPrimaryBg: "#e6f4ff",
|
|
@@ -25,84 +25,84 @@ const Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
25
25
|
wireframe: !0
|
|
26
26
|
// 是否开启线框风格
|
|
27
27
|
}
|
|
28
|
-
}),
|
|
29
|
-
algorithm:
|
|
30
|
-
token: { ...
|
|
31
|
-
})),
|
|
28
|
+
}), Ne = qe(() => ({
|
|
29
|
+
algorithm: ve.algorithm,
|
|
30
|
+
token: { ...ve.token }
|
|
31
|
+
})), rt = {
|
|
32
32
|
class: "tw-airline-info"
|
|
33
|
-
},
|
|
33
|
+
}, at = /* @__PURE__ */ Object.assign({
|
|
34
34
|
name: "TWAirlineInfo"
|
|
35
35
|
}, {
|
|
36
36
|
__name: "index",
|
|
37
37
|
setup(e) {
|
|
38
|
-
return (n, t) => (m(),
|
|
39
|
-
theme: O(
|
|
38
|
+
return (n, t) => (m(), ne(O(V), {
|
|
39
|
+
theme: O(Ne)
|
|
40
40
|
}, {
|
|
41
|
-
default: $(() => [u("div",
|
|
41
|
+
default: $(() => [u("div", rt, [t[1] || (t[1] = re(" 123 ", -1)), g(O(oe), {
|
|
42
42
|
type: "primary"
|
|
43
43
|
}, {
|
|
44
|
-
default: $(() => [...t[0] || (t[0] = [
|
|
44
|
+
default: $(() => [...t[0] || (t[0] = [re("Primary Button", -1)])]),
|
|
45
45
|
_: 1
|
|
46
46
|
})])]),
|
|
47
47
|
_: 1
|
|
48
48
|
}, 8, ["theme"]));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), Me = (e, n) => {
|
|
51
51
|
const t = e.__vccOpts || e;
|
|
52
52
|
for (const [r, a] of n)
|
|
53
53
|
t[r] = a;
|
|
54
54
|
return t;
|
|
55
|
-
},
|
|
55
|
+
}, ot = /* @__PURE__ */ Me(at, [["__scopeId", "data-v-75e539f7"]]), it = {
|
|
56
56
|
class: "tw-hotel-info"
|
|
57
|
-
},
|
|
57
|
+
}, lt = /* @__PURE__ */ Object.assign({
|
|
58
58
|
name: "TWHotelInfo"
|
|
59
59
|
}, {
|
|
60
60
|
__name: "index",
|
|
61
61
|
setup(e) {
|
|
62
|
-
return (n, t) => (m(), _("div",
|
|
62
|
+
return (n, t) => (m(), _("div", it));
|
|
63
63
|
}
|
|
64
|
-
}),
|
|
64
|
+
}), ct = "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
65
|
function b(e, n) {
|
|
66
|
-
|
|
67
|
-
var t =
|
|
66
|
+
ft(e) && (e = "100%");
|
|
67
|
+
var t = st(e);
|
|
68
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
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function ft(e) {
|
|
71
71
|
return typeof e == "string" && e.indexOf(".") !== -1 && parseFloat(e) === 1;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function st(e) {
|
|
74
74
|
return typeof e == "string" && e.indexOf("%") !== -1;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function ut(e) {
|
|
77
77
|
return e = parseFloat(e), (isNaN(e) || e < 0 || e > 1) && (e = 1), e;
|
|
78
78
|
}
|
|
79
79
|
function B(e) {
|
|
80
80
|
return e <= 1 ? "".concat(Number(e) * 100, "%") : e;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function Y(e) {
|
|
83
83
|
return e.length === 1 ? "0" + e : String(e);
|
|
84
84
|
}
|
|
85
|
-
function
|
|
85
|
+
function dt(e, n, t) {
|
|
86
86
|
return {
|
|
87
87
|
r: b(e, 255) * 255,
|
|
88
88
|
g: b(n, 255) * 255,
|
|
89
89
|
b: b(t, 255) * 255
|
|
90
90
|
};
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function J(e, n, t) {
|
|
93
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
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function pt(e, n, t) {
|
|
96
96
|
var r, a, o;
|
|
97
97
|
if (e = b(e, 360), n = b(n, 100), t = b(t, 100), n === 0)
|
|
98
98
|
a = t, o = t, r = t;
|
|
99
99
|
else {
|
|
100
100
|
var l = t < 0.5 ? t * (1 + n) : t + n - t * n, i = 2 * t - l;
|
|
101
|
-
r =
|
|
101
|
+
r = J(i, l, e + 1 / 3), a = J(i, l, e), o = J(i, l, e - 1 / 3);
|
|
102
102
|
}
|
|
103
103
|
return { r: r * 255, g: a * 255, b: o * 255 };
|
|
104
104
|
}
|
|
105
|
-
function
|
|
105
|
+
function mt(e, n, t) {
|
|
106
106
|
e = b(e, 255), n = b(n, 255), t = b(t, 255);
|
|
107
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
108
|
if (r === a)
|
|
@@ -123,26 +123,26 @@ function ut(e, n, t) {
|
|
|
123
123
|
}
|
|
124
124
|
return { h: o, s: c, v: l };
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function gt(e, n, t) {
|
|
127
127
|
e = b(e, 360) * 6, n = b(n, 100), t = b(t, 100);
|
|
128
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
129
|
return { r: f * 255, g: C * 255, b: w * 255 };
|
|
130
130
|
}
|
|
131
|
-
function
|
|
131
|
+
function bt(e, n, t, r) {
|
|
132
132
|
var a = [
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
Y(Math.round(e).toString(16)),
|
|
134
|
+
Y(Math.round(n).toString(16)),
|
|
135
|
+
Y(Math.round(t).toString(16))
|
|
136
136
|
];
|
|
137
137
|
return a.join("");
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function he(e) {
|
|
140
140
|
return p(e) / 255;
|
|
141
141
|
}
|
|
142
142
|
function p(e) {
|
|
143
143
|
return parseInt(e, 16);
|
|
144
144
|
}
|
|
145
|
-
var
|
|
145
|
+
var ye = {
|
|
146
146
|
aliceblue: "#f0f8ff",
|
|
147
147
|
antiquewhite: "#faebd7",
|
|
148
148
|
aqua: "#00ffff",
|
|
@@ -294,7 +294,7 @@ var me = {
|
|
|
294
294
|
};
|
|
295
295
|
function N(e) {
|
|
296
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 =
|
|
297
|
+
return typeof e == "string" && (e = yt(e)), typeof e == "object" && (y(e.r) && y(e.g) && y(e.b) ? (n = dt(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 = gt(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 = pt(e.h, r, o), l = !0, i = "hsl"), Object.prototype.hasOwnProperty.call(e, "a") && (t = e.a)), t = ut(t), {
|
|
298
298
|
ok: l,
|
|
299
299
|
format: e.format || i,
|
|
300
300
|
r: Math.min(255, Math.max(n.r, 0)),
|
|
@@ -303,25 +303,25 @@ function N(e) {
|
|
|
303
303
|
a: t
|
|
304
304
|
};
|
|
305
305
|
}
|
|
306
|
-
var
|
|
306
|
+
var vt = "[-\\+]?\\d+%?", ht = "[-\\+]?\\d*\\.\\d+%?", k = "(?:".concat(ht, ")|(?:").concat(vt, ")"), X = "[\\s|\\(]+(".concat(k, ")[,|\\s]+(").concat(k, ")[,|\\s]+(").concat(k, ")\\s*\\)?"), K = "[\\s|\\(]+(".concat(k, ")[,|\\s]+(").concat(k, ")[,|\\s]+(").concat(k, ")[,|\\s]+(").concat(k, ")\\s*\\)?"), h = {
|
|
307
307
|
CSS_UNIT: new RegExp(k),
|
|
308
|
-
rgb: new RegExp("rgb" +
|
|
309
|
-
rgba: new RegExp("rgba" +
|
|
310
|
-
hsl: new RegExp("hsl" +
|
|
311
|
-
hsla: new RegExp("hsla" +
|
|
312
|
-
hsv: new RegExp("hsv" +
|
|
313
|
-
hsva: new RegExp("hsva" +
|
|
308
|
+
rgb: new RegExp("rgb" + X),
|
|
309
|
+
rgba: new RegExp("rgba" + K),
|
|
310
|
+
hsl: new RegExp("hsl" + X),
|
|
311
|
+
hsla: new RegExp("hsla" + K),
|
|
312
|
+
hsv: new RegExp("hsv" + X),
|
|
313
|
+
hsva: new RegExp("hsva" + K),
|
|
314
314
|
hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
315
315
|
hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
|
316
316
|
hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
|
317
317
|
hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
|
318
318
|
};
|
|
319
|
-
function
|
|
319
|
+
function yt(e) {
|
|
320
320
|
if (e = e.trim().toLowerCase(), e.length === 0)
|
|
321
321
|
return !1;
|
|
322
322
|
var n = !1;
|
|
323
|
-
if (
|
|
324
|
-
e =
|
|
323
|
+
if (ye[e])
|
|
324
|
+
e = ye[e], n = !0;
|
|
325
325
|
else if (e === "transparent")
|
|
326
326
|
return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
|
327
327
|
var t = h.rgb.exec(e);
|
|
@@ -329,7 +329,7 @@ function bt(e) {
|
|
|
329
329
|
r: p(t[1]),
|
|
330
330
|
g: p(t[2]),
|
|
331
331
|
b: p(t[3]),
|
|
332
|
-
a:
|
|
332
|
+
a: he(t[4]),
|
|
333
333
|
format: n ? "name" : "hex8"
|
|
334
334
|
} : (t = h.hex6.exec(e), t ? {
|
|
335
335
|
r: p(t[1]),
|
|
@@ -340,7 +340,7 @@ function bt(e) {
|
|
|
340
340
|
r: p(t[1] + t[1]),
|
|
341
341
|
g: p(t[2] + t[2]),
|
|
342
342
|
b: p(t[3] + t[3]),
|
|
343
|
-
a:
|
|
343
|
+
a: he(t[4] + t[4]),
|
|
344
344
|
format: n ? "name" : "hex8"
|
|
345
345
|
} : (t = h.hex3.exec(e), t ? {
|
|
346
346
|
r: p(t[1] + t[1]),
|
|
@@ -352,7 +352,7 @@ function bt(e) {
|
|
|
352
352
|
function y(e) {
|
|
353
353
|
return !!h.CSS_UNIT.exec(String(e));
|
|
354
354
|
}
|
|
355
|
-
var H = 2,
|
|
355
|
+
var H = 2, _e = 0.16, _t = 0.05, Ct = 0.05, wt = 0.15, $e = 5, Re = 4, xt = [{
|
|
356
356
|
index: 7,
|
|
357
357
|
opacity: 0.15
|
|
358
358
|
}, {
|
|
@@ -383,8 +383,8 @@ var H = 2, ge = 0.16, vt = 0.05, ht = 0.05, yt = 0.15, Ee = 5, Fe = 4, _t = [{
|
|
|
383
383
|
index: 1,
|
|
384
384
|
opacity: 0.98
|
|
385
385
|
}];
|
|
386
|
-
function
|
|
387
|
-
var n = e.r, t = e.g, r = e.b, a =
|
|
386
|
+
function Ce(e) {
|
|
387
|
+
var n = e.r, t = e.g, r = e.b, a = mt(n, t, r);
|
|
388
388
|
return {
|
|
389
389
|
h: a.h * 360,
|
|
390
390
|
s: a.s,
|
|
@@ -393,9 +393,9 @@ function be(e) {
|
|
|
393
393
|
}
|
|
394
394
|
function U(e) {
|
|
395
395
|
var n = e.r, t = e.g, r = e.b;
|
|
396
|
-
return "#".concat(
|
|
396
|
+
return "#".concat(bt(n, t, r));
|
|
397
397
|
}
|
|
398
|
-
function
|
|
398
|
+
function Ot(e, n, t) {
|
|
399
399
|
var r = t / 100, a = {
|
|
400
400
|
r: (n.r - e.r) * r + e.r,
|
|
401
401
|
g: (n.g - e.g) * r + e.g,
|
|
@@ -403,44 +403,44 @@ function Ct(e, n, t) {
|
|
|
403
403
|
};
|
|
404
404
|
return a;
|
|
405
405
|
}
|
|
406
|
-
function
|
|
406
|
+
function we(e, n, t) {
|
|
407
407
|
var r;
|
|
408
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
409
|
}
|
|
410
|
-
function
|
|
410
|
+
function xe(e, n, t) {
|
|
411
411
|
if (e.h === 0 && e.s === 0)
|
|
412
412
|
return e.s;
|
|
413
413
|
var r;
|
|
414
|
-
return t ? r = e.s -
|
|
414
|
+
return t ? r = e.s - _e * n : n === Re ? r = e.s + _e : r = e.s + _t * n, r > 1 && (r = 1), t && n === $e && r > 0.1 && (r = 0.1), r < 0.06 && (r = 0.06), Number(r.toFixed(2));
|
|
415
415
|
}
|
|
416
|
-
function
|
|
416
|
+
function Oe(e, n, t) {
|
|
417
417
|
var r;
|
|
418
|
-
return t ? r = e.v +
|
|
419
|
-
}
|
|
420
|
-
function
|
|
421
|
-
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], r = N(e), a =
|
|
422
|
-
var o =
|
|
423
|
-
h:
|
|
424
|
-
s:
|
|
425
|
-
v:
|
|
418
|
+
return t ? r = e.v + Ct * n : r = e.v - wt * n, r > 1 && (r = 1), Number(r.toFixed(2));
|
|
419
|
+
}
|
|
420
|
+
function ie(e) {
|
|
421
|
+
for (var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = [], r = N(e), a = $e; a > 0; a -= 1) {
|
|
422
|
+
var o = Ce(r), l = U(N({
|
|
423
|
+
h: we(o, a, !0),
|
|
424
|
+
s: xe(o, a, !0),
|
|
425
|
+
v: Oe(o, a, !0)
|
|
426
426
|
}));
|
|
427
427
|
t.push(l);
|
|
428
428
|
}
|
|
429
429
|
t.push(U(r));
|
|
430
|
-
for (var i = 1; i <=
|
|
431
|
-
var c =
|
|
432
|
-
h:
|
|
433
|
-
s:
|
|
434
|
-
v:
|
|
430
|
+
for (var i = 1; i <= Re; i += 1) {
|
|
431
|
+
var c = Ce(r), f = U(N({
|
|
432
|
+
h: we(c, i),
|
|
433
|
+
s: xe(c, i),
|
|
434
|
+
v: Oe(c, i)
|
|
435
435
|
}));
|
|
436
436
|
t.push(f);
|
|
437
437
|
}
|
|
438
|
-
return n.theme === "dark" ?
|
|
439
|
-
var w = C.index, s = C.opacity, d = U(
|
|
438
|
+
return n.theme === "dark" ? xt.map(function(C) {
|
|
439
|
+
var w = C.index, s = C.opacity, d = U(Ot(N(n.backgroundColor || "#141414"), N(t[w]), s * 100));
|
|
440
440
|
return d;
|
|
441
441
|
}) : t;
|
|
442
442
|
}
|
|
443
|
-
var
|
|
443
|
+
var ee = {
|
|
444
444
|
red: "#F5222D",
|
|
445
445
|
volcano: "#FA541C",
|
|
446
446
|
orange: "#FA8C16",
|
|
@@ -454,56 +454,56 @@ var K = {
|
|
|
454
454
|
purple: "#722ED1",
|
|
455
455
|
magenta: "#EB2F96",
|
|
456
456
|
grey: "#666666"
|
|
457
|
-
}, z = {},
|
|
458
|
-
Object.keys(
|
|
459
|
-
z[e] =
|
|
457
|
+
}, z = {}, te = {};
|
|
458
|
+
Object.keys(ee).forEach(function(e) {
|
|
459
|
+
z[e] = ie(ee[e]), z[e].primary = z[e][5], te[e] = ie(ee[e], {
|
|
460
460
|
theme: "dark",
|
|
461
461
|
backgroundColor: "#141414"
|
|
462
|
-
}),
|
|
462
|
+
}), te[e].primary = te[e][5];
|
|
463
463
|
});
|
|
464
|
-
var
|
|
465
|
-
return
|
|
466
|
-
prefixCls:
|
|
467
|
-
rootClassName:
|
|
468
|
-
csp:
|
|
464
|
+
var kt = z.blue, St = Symbol("iconContext"), De = function() {
|
|
465
|
+
return Ge(St, {
|
|
466
|
+
prefixCls: P("anticon"),
|
|
467
|
+
rootClassName: P(""),
|
|
468
|
+
csp: P()
|
|
469
469
|
});
|
|
470
470
|
};
|
|
471
|
-
function
|
|
471
|
+
function fe() {
|
|
472
472
|
return !!(typeof window < "u" && window.document && window.document.createElement);
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Tt(e, n) {
|
|
475
475
|
return e && e.contains ? e.contains(n) : !1;
|
|
476
476
|
}
|
|
477
|
-
var
|
|
478
|
-
function
|
|
477
|
+
var ke = "data-vc-order", At = "vc-icon-key", le = /* @__PURE__ */ new Map();
|
|
478
|
+
function Le() {
|
|
479
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) :
|
|
480
|
+
return n ? n.startsWith("data-") ? n : "data-".concat(n) : At;
|
|
481
481
|
}
|
|
482
|
-
function
|
|
482
|
+
function se(e) {
|
|
483
483
|
if (e.attachTo)
|
|
484
484
|
return e.attachTo;
|
|
485
485
|
var n = document.querySelector("head");
|
|
486
486
|
return n || document.body;
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function jt(e) {
|
|
489
489
|
return e === "queue" ? "prependQueue" : e ? "prepend" : "append";
|
|
490
490
|
}
|
|
491
|
-
function
|
|
492
|
-
return Array.from((
|
|
491
|
+
function Be(e) {
|
|
492
|
+
return Array.from((le.get(e) || e).children).filter(function(n) {
|
|
493
493
|
return n.tagName === "STYLE";
|
|
494
494
|
});
|
|
495
495
|
}
|
|
496
|
-
function
|
|
496
|
+
function He(e) {
|
|
497
497
|
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
498
|
-
if (!
|
|
498
|
+
if (!fe())
|
|
499
499
|
return null;
|
|
500
500
|
var t = n.csp, r = n.prepend, a = document.createElement("style");
|
|
501
|
-
a.setAttribute(
|
|
502
|
-
var o =
|
|
501
|
+
a.setAttribute(ke, jt(r)), t && t.nonce && (a.nonce = t.nonce), a.innerHTML = e;
|
|
502
|
+
var o = se(n), l = o.firstChild;
|
|
503
503
|
if (r) {
|
|
504
504
|
if (r === "queue") {
|
|
505
|
-
var i =
|
|
506
|
-
return ["prepend", "prependQueue"].includes(c.getAttribute(
|
|
505
|
+
var i = Be(o).filter(function(c) {
|
|
506
|
+
return ["prepend", "prependQueue"].includes(c.getAttribute(ke));
|
|
507
507
|
});
|
|
508
508
|
if (i.length)
|
|
509
509
|
return o.insertBefore(a, i[i.length - 1].nextSibling), a;
|
|
@@ -513,69 +513,69 @@ function Re(e) {
|
|
|
513
513
|
o.appendChild(a);
|
|
514
514
|
return a;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t =
|
|
518
|
-
return
|
|
519
|
-
return r.getAttribute(
|
|
516
|
+
function It(e) {
|
|
517
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, t = se(n);
|
|
518
|
+
return Be(t).find(function(r) {
|
|
519
|
+
return r.getAttribute(Le(n)) === e;
|
|
520
520
|
});
|
|
521
521
|
}
|
|
522
|
-
function
|
|
523
|
-
var t =
|
|
524
|
-
if (!t || !
|
|
525
|
-
var r =
|
|
526
|
-
|
|
522
|
+
function Pt(e, n) {
|
|
523
|
+
var t = le.get(e);
|
|
524
|
+
if (!t || !Tt(document, t)) {
|
|
525
|
+
var r = He("", n), a = r.parentNode;
|
|
526
|
+
le.set(e, a), e.removeChild(r);
|
|
527
527
|
}
|
|
528
528
|
}
|
|
529
|
-
function
|
|
530
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r =
|
|
531
|
-
|
|
532
|
-
var a =
|
|
529
|
+
function Et(e, n) {
|
|
530
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = se(t);
|
|
531
|
+
Pt(r, t);
|
|
532
|
+
var a = It(n, t);
|
|
533
533
|
if (a)
|
|
534
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 =
|
|
536
|
-
return o.setAttribute(
|
|
535
|
+
var o = He(e, t);
|
|
536
|
+
return o.setAttribute(Le(t), n), o;
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Se(e) {
|
|
539
539
|
for (var n = 1; n < arguments.length; n++) {
|
|
540
540
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
|
|
541
541
|
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
542
542
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
543
543
|
}))), r.forEach(function(a) {
|
|
544
|
-
|
|
544
|
+
Ft(e, a, t[a]);
|
|
545
545
|
});
|
|
546
546
|
}
|
|
547
547
|
return e;
|
|
548
548
|
}
|
|
549
|
-
function
|
|
549
|
+
function Ft(e, n, t) {
|
|
550
550
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
552
|
+
function Nt(e, n) {
|
|
553
553
|
process.env.NODE_ENV !== "production" && !e && console !== void 0 && console.error("Warning: ".concat(n));
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
|
|
555
|
+
function Mt(e, n) {
|
|
556
|
+
Nt(e, "[@ant-design/icons-vue] ".concat(n));
|
|
557
557
|
}
|
|
558
|
-
function
|
|
558
|
+
function Te(e) {
|
|
559
559
|
return typeof e == "object" && typeof e.name == "string" && typeof e.theme == "string" && (typeof e.icon == "object" || typeof e.icon == "function");
|
|
560
560
|
}
|
|
561
|
-
function
|
|
562
|
-
return t ?
|
|
561
|
+
function ce(e, n, t) {
|
|
562
|
+
return t ? ae(e.tag, Se({
|
|
563
563
|
key: n
|
|
564
564
|
}, t, e.attrs), (e.children || []).map(function(r, a) {
|
|
565
|
-
return
|
|
566
|
-
})) :
|
|
565
|
+
return ce(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
|
|
566
|
+
})) : ae(e.tag, Se({
|
|
567
567
|
key: n
|
|
568
568
|
}, e.attrs), (e.children || []).map(function(r, a) {
|
|
569
|
-
return
|
|
569
|
+
return ce(r, "".concat(n, "-").concat(e.tag, "-").concat(a));
|
|
570
570
|
}));
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
return
|
|
572
|
+
function Ue(e) {
|
|
573
|
+
return ie(e)[0];
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function ze(e) {
|
|
576
576
|
return e ? Array.isArray(e) ? e : [e] : [];
|
|
577
577
|
}
|
|
578
|
-
var
|
|
578
|
+
var $t = `
|
|
579
579
|
.anticon {
|
|
580
580
|
display: inline-block;
|
|
581
581
|
color: inherit;
|
|
@@ -630,31 +630,31 @@ var Ft = `
|
|
|
630
630
|
}
|
|
631
631
|
}
|
|
632
632
|
`;
|
|
633
|
-
function
|
|
633
|
+
function We(e) {
|
|
634
634
|
return e && e.getRootNode && e.getRootNode();
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
return
|
|
636
|
+
function Rt(e) {
|
|
637
|
+
return fe() ? We(e) instanceof ShadowRoot : !1;
|
|
638
638
|
}
|
|
639
|
-
function
|
|
640
|
-
return
|
|
639
|
+
function Dt(e) {
|
|
640
|
+
return Rt(e) ? We(e) : null;
|
|
641
641
|
}
|
|
642
|
-
var
|
|
643
|
-
var n =
|
|
644
|
-
t && (o = o.replace(/anticon/g, t.value)),
|
|
645
|
-
if (
|
|
646
|
-
var l = a.vnode.el, i =
|
|
647
|
-
|
|
642
|
+
var Lt = function() {
|
|
643
|
+
var n = De(), t = n.prefixCls, r = n.csp, a = Ze(), o = $t;
|
|
644
|
+
t && (o = o.replace(/anticon/g, t.value)), Qe(function() {
|
|
645
|
+
if (fe()) {
|
|
646
|
+
var l = a.vnode.el, i = Dt(l);
|
|
647
|
+
Et(o, "@ant-design-vue-icons", {
|
|
648
648
|
prepend: !0,
|
|
649
649
|
csp: r.value,
|
|
650
650
|
attachTo: i
|
|
651
651
|
});
|
|
652
652
|
}
|
|
653
653
|
});
|
|
654
|
-
},
|
|
655
|
-
function
|
|
654
|
+
}, Bt = ["icon", "primaryColor", "secondaryColor"];
|
|
655
|
+
function Ht(e, n) {
|
|
656
656
|
if (e == null) return {};
|
|
657
|
-
var t =
|
|
657
|
+
var t = Ut(e, n), r, a;
|
|
658
658
|
if (Object.getOwnPropertySymbols) {
|
|
659
659
|
var o = Object.getOwnPropertySymbols(e);
|
|
660
660
|
for (a = 0; a < o.length; a++)
|
|
@@ -662,7 +662,7 @@ function Dt(e, n) {
|
|
|
662
662
|
}
|
|
663
663
|
return t;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function Ut(e, n) {
|
|
666
666
|
if (e == null) return {};
|
|
667
667
|
var t = {}, r = Object.keys(e), a, o;
|
|
668
668
|
for (o = 0; o < r.length; o++)
|
|
@@ -675,37 +675,37 @@ function W(e) {
|
|
|
675
675
|
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
676
676
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
677
677
|
}))), r.forEach(function(a) {
|
|
678
|
-
|
|
678
|
+
zt(e, a, t[a]);
|
|
679
679
|
});
|
|
680
680
|
}
|
|
681
681
|
return e;
|
|
682
682
|
}
|
|
683
|
-
function
|
|
683
|
+
function zt(e, n, t) {
|
|
684
684
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
685
685
|
}
|
|
686
|
-
var R =
|
|
686
|
+
var R = Fe({
|
|
687
687
|
primaryColor: "#333",
|
|
688
688
|
secondaryColor: "#E6E6E6",
|
|
689
689
|
calculated: !1
|
|
690
690
|
});
|
|
691
|
-
function
|
|
691
|
+
function Wt(e) {
|
|
692
692
|
var n = e.primaryColor, t = e.secondaryColor;
|
|
693
|
-
R.primaryColor = n, R.secondaryColor = t ||
|
|
693
|
+
R.primaryColor = n, R.secondaryColor = t || Ue(n), R.calculated = !!t;
|
|
694
694
|
}
|
|
695
|
-
function
|
|
695
|
+
function Vt() {
|
|
696
696
|
return W({}, R);
|
|
697
697
|
}
|
|
698
698
|
var S = function(n, t) {
|
|
699
|
-
var r = W({}, n, t.attrs), a = r.icon, o = r.primaryColor, l = r.secondaryColor, i =
|
|
699
|
+
var r = W({}, n, t.attrs), a = r.icon, o = r.primaryColor, l = r.secondaryColor, i = Ht(r, Bt), c = R;
|
|
700
700
|
if (o && (c = {
|
|
701
701
|
primaryColor: o,
|
|
702
|
-
secondaryColor: l ||
|
|
703
|
-
}),
|
|
702
|
+
secondaryColor: l || Ue(o)
|
|
703
|
+
}), Mt(Te(a), "icon should be icon definiton, but got ".concat(a)), !Te(a))
|
|
704
704
|
return null;
|
|
705
705
|
var f = a;
|
|
706
706
|
return f && typeof f.icon == "function" && (f = W({}, f, {
|
|
707
707
|
icon: f.icon(c.primaryColor, c.secondaryColor)
|
|
708
|
-
})),
|
|
708
|
+
})), ce(f.icon, "svg-".concat(f.name), W({}, i, {
|
|
709
709
|
"data-icon": f.name,
|
|
710
710
|
width: "1em",
|
|
711
711
|
height: "1em",
|
|
@@ -721,30 +721,30 @@ S.props = {
|
|
|
721
721
|
};
|
|
722
722
|
S.inheritAttrs = !1;
|
|
723
723
|
S.displayName = "IconBase";
|
|
724
|
-
S.getTwoToneColors =
|
|
725
|
-
S.setTwoToneColors =
|
|
726
|
-
function
|
|
727
|
-
return
|
|
724
|
+
S.getTwoToneColors = Vt;
|
|
725
|
+
S.setTwoToneColors = Wt;
|
|
726
|
+
function qt(e, n) {
|
|
727
|
+
return Yt(e) || Qt(e, n) || Zt(e, n) || Gt();
|
|
728
728
|
}
|
|
729
|
-
function
|
|
729
|
+
function Gt() {
|
|
730
730
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
731
731
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
732
732
|
}
|
|
733
|
-
function
|
|
733
|
+
function Zt(e, n) {
|
|
734
734
|
if (e) {
|
|
735
|
-
if (typeof e == "string") return
|
|
735
|
+
if (typeof e == "string") return Ae(e, n);
|
|
736
736
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
737
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
|
|
738
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return Ae(e, n);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Ae(e, n) {
|
|
742
742
|
(n == null || n > e.length) && (n = e.length);
|
|
743
743
|
for (var t = 0, r = new Array(n); t < n; t++)
|
|
744
744
|
r[t] = e[t];
|
|
745
745
|
return r;
|
|
746
746
|
}
|
|
747
|
-
function
|
|
747
|
+
function Qt(e, n) {
|
|
748
748
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
749
749
|
if (t != null) {
|
|
750
750
|
var r = [], a = !0, o = !1, l, i;
|
|
@@ -763,50 +763,50 @@ function qt(e, n) {
|
|
|
763
763
|
return r;
|
|
764
764
|
}
|
|
765
765
|
}
|
|
766
|
-
function
|
|
766
|
+
function Yt(e) {
|
|
767
767
|
if (Array.isArray(e)) return e;
|
|
768
768
|
}
|
|
769
|
-
function
|
|
770
|
-
var n =
|
|
769
|
+
function Ve(e) {
|
|
770
|
+
var n = ze(e), t = qt(n, 2), r = t[0], a = t[1];
|
|
771
771
|
return S.setTwoToneColors({
|
|
772
772
|
primaryColor: r,
|
|
773
773
|
secondaryColor: a
|
|
774
774
|
});
|
|
775
775
|
}
|
|
776
|
-
function
|
|
776
|
+
function Jt() {
|
|
777
777
|
var e = S.getTwoToneColors();
|
|
778
778
|
return e.calculated ? [e.primaryColor, e.secondaryColor] : e.primaryColor;
|
|
779
779
|
}
|
|
780
|
-
var
|
|
780
|
+
var Xt = Ye({
|
|
781
781
|
name: "InsertStyles",
|
|
782
782
|
setup: function() {
|
|
783
|
-
return
|
|
783
|
+
return Lt(), function() {
|
|
784
784
|
return null;
|
|
785
785
|
};
|
|
786
786
|
}
|
|
787
|
-
}),
|
|
788
|
-
function
|
|
789
|
-
return
|
|
787
|
+
}), Kt = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
|
|
788
|
+
function en(e, n) {
|
|
789
|
+
return an(e) || rn(e, n) || nn(e, n) || tn();
|
|
790
790
|
}
|
|
791
|
-
function
|
|
791
|
+
function tn() {
|
|
792
792
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
793
793
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function nn(e, n) {
|
|
796
796
|
if (e) {
|
|
797
|
-
if (typeof e == "string") return
|
|
797
|
+
if (typeof e == "string") return je(e, n);
|
|
798
798
|
var t = Object.prototype.toString.call(e).slice(8, -1);
|
|
799
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
|
|
800
|
+
if (t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)) return je(e, n);
|
|
801
801
|
}
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function je(e, n) {
|
|
804
804
|
(n == null || n > e.length) && (n = e.length);
|
|
805
805
|
for (var t = 0, r = new Array(n); t < n; t++)
|
|
806
806
|
r[t] = e[t];
|
|
807
807
|
return r;
|
|
808
808
|
}
|
|
809
|
-
function
|
|
809
|
+
function rn(e, n) {
|
|
810
810
|
var t = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
811
811
|
if (t != null) {
|
|
812
812
|
var r = [], a = !0, o = !1, l, i;
|
|
@@ -825,10 +825,10 @@ function en(e, n) {
|
|
|
825
825
|
return r;
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
|
-
function
|
|
828
|
+
function an(e) {
|
|
829
829
|
if (Array.isArray(e)) return e;
|
|
830
830
|
}
|
|
831
|
-
function
|
|
831
|
+
function Ie(e) {
|
|
832
832
|
for (var n = 1; n < arguments.length; n++) {
|
|
833
833
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
|
|
834
834
|
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
@@ -842,9 +842,9 @@ function ke(e) {
|
|
|
842
842
|
function M(e, n, t) {
|
|
843
843
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
844
844
|
}
|
|
845
|
-
function
|
|
845
|
+
function on(e, n) {
|
|
846
846
|
if (e == null) return {};
|
|
847
|
-
var t =
|
|
847
|
+
var t = ln(e, n), r, a;
|
|
848
848
|
if (Object.getOwnPropertySymbols) {
|
|
849
849
|
var o = Object.getOwnPropertySymbols(e);
|
|
850
850
|
for (a = 0; a < o.length; a++)
|
|
@@ -852,22 +852,22 @@ function nn(e, n) {
|
|
|
852
852
|
}
|
|
853
853
|
return t;
|
|
854
854
|
}
|
|
855
|
-
function
|
|
855
|
+
function ln(e, n) {
|
|
856
856
|
if (e == null) return {};
|
|
857
857
|
var t = {}, r = Object.keys(e), a, o;
|
|
858
858
|
for (o = 0; o < r.length; o++)
|
|
859
859
|
a = r[o], !(n.indexOf(a) >= 0) && (t[a] = e[a]);
|
|
860
860
|
return t;
|
|
861
861
|
}
|
|
862
|
-
|
|
862
|
+
Ve(kt.primary);
|
|
863
863
|
var A = function(n, t) {
|
|
864
|
-
var r, a =
|
|
864
|
+
var r, a = Ie({}, 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 = on(a, Kt), d = De(), 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
865
|
E === void 0 && w && (E = -1);
|
|
866
866
|
var v = c ? {
|
|
867
867
|
msTransform: "rotate(".concat(c, "deg)"),
|
|
868
868
|
transform: "rotate(".concat(c, "deg)")
|
|
869
|
-
} : void 0,
|
|
870
|
-
return g("span",
|
|
869
|
+
} : void 0, I = ze(C), x = en(I, 2), G = x[0], de = x[1];
|
|
870
|
+
return g("span", Ie({
|
|
871
871
|
role: "img",
|
|
872
872
|
"aria-label": l.name
|
|
873
873
|
}, s, {
|
|
@@ -876,10 +876,10 @@ var A = function(n, t) {
|
|
|
876
876
|
tabindex: E
|
|
877
877
|
}), [g(S, {
|
|
878
878
|
icon: l,
|
|
879
|
-
primaryColor:
|
|
880
|
-
secondaryColor:
|
|
879
|
+
primaryColor: G,
|
|
880
|
+
secondaryColor: de,
|
|
881
881
|
style: v
|
|
882
|
-
}, null), g(
|
|
882
|
+
}, null), g(Xt, null, null)]);
|
|
883
883
|
};
|
|
884
884
|
A.props = {
|
|
885
885
|
spin: Boolean,
|
|
@@ -889,88 +889,88 @@ A.props = {
|
|
|
889
889
|
};
|
|
890
890
|
A.displayName = "AntdIcon";
|
|
891
891
|
A.inheritAttrs = !1;
|
|
892
|
-
A.getTwoToneColor =
|
|
893
|
-
A.setTwoToneColor =
|
|
894
|
-
var
|
|
895
|
-
function
|
|
892
|
+
A.getTwoToneColor = Jt;
|
|
893
|
+
A.setTwoToneColor = Ve;
|
|
894
|
+
var cn = { 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 Pe(e) {
|
|
896
896
|
for (var n = 1; n < arguments.length; n++) {
|
|
897
897
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
|
|
898
898
|
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
899
899
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
900
900
|
}))), r.forEach(function(a) {
|
|
901
|
-
|
|
901
|
+
fn(e, a, t[a]);
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
904
|
return e;
|
|
905
905
|
}
|
|
906
|
-
function
|
|
906
|
+
function fn(e, n, t) {
|
|
907
907
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
908
908
|
}
|
|
909
|
-
var
|
|
910
|
-
var r =
|
|
911
|
-
return g(A,
|
|
912
|
-
icon:
|
|
909
|
+
var ue = function(n, t) {
|
|
910
|
+
var r = Pe({}, n, t.attrs);
|
|
911
|
+
return g(A, Pe({}, r, {
|
|
912
|
+
icon: cn
|
|
913
913
|
}), null);
|
|
914
914
|
};
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
var
|
|
918
|
-
function
|
|
915
|
+
ue.displayName = "DeleteOutlined";
|
|
916
|
+
ue.inheritAttrs = !1;
|
|
917
|
+
var sn = { 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 Ee(e) {
|
|
919
919
|
for (var n = 1; n < arguments.length; n++) {
|
|
920
920
|
var t = arguments[n] != null ? Object(arguments[n]) : {}, r = Object.keys(t);
|
|
921
921
|
typeof Object.getOwnPropertySymbols == "function" && (r = r.concat(Object.getOwnPropertySymbols(t).filter(function(a) {
|
|
922
922
|
return Object.getOwnPropertyDescriptor(t, a).enumerable;
|
|
923
923
|
}))), r.forEach(function(a) {
|
|
924
|
-
|
|
924
|
+
un(e, a, t[a]);
|
|
925
925
|
});
|
|
926
926
|
}
|
|
927
927
|
return e;
|
|
928
928
|
}
|
|
929
|
-
function
|
|
929
|
+
function un(e, n, t) {
|
|
930
930
|
return n in e ? Object.defineProperty(e, n, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[n] = t, e;
|
|
931
931
|
}
|
|
932
|
-
var
|
|
933
|
-
var r =
|
|
934
|
-
return g(A,
|
|
935
|
-
icon:
|
|
932
|
+
var q = function(n, t) {
|
|
933
|
+
var r = Ee({}, n, t.attrs);
|
|
934
|
+
return g(A, Ee({}, r, {
|
|
935
|
+
icon: sn
|
|
936
936
|
}), null);
|
|
937
937
|
};
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
const
|
|
938
|
+
q.displayName = "LinkOutlined";
|
|
939
|
+
q.inheritAttrs = !1;
|
|
940
|
+
const dn = {
|
|
941
941
|
class: "tw-comments"
|
|
942
|
-
},
|
|
942
|
+
}, pn = {
|
|
943
943
|
class: "comments"
|
|
944
|
-
},
|
|
944
|
+
}, mn = {
|
|
945
945
|
class: "header"
|
|
946
|
-
},
|
|
946
|
+
}, gn = {
|
|
947
947
|
class: "name"
|
|
948
|
-
},
|
|
948
|
+
}, bn = {
|
|
949
949
|
class: "time"
|
|
950
|
-
},
|
|
950
|
+
}, vn = {
|
|
951
951
|
key: 0,
|
|
952
952
|
class: "files"
|
|
953
|
-
},
|
|
953
|
+
}, hn = {
|
|
954
954
|
key: 1,
|
|
955
955
|
class: "logo",
|
|
956
|
-
src:
|
|
957
|
-
},
|
|
956
|
+
src: ct
|
|
957
|
+
}, yn = {
|
|
958
958
|
class: "detail"
|
|
959
|
-
},
|
|
959
|
+
}, _n = {
|
|
960
960
|
class: "fileName"
|
|
961
|
-
},
|
|
961
|
+
}, Cn = {
|
|
962
962
|
class: "buttons"
|
|
963
|
-
},
|
|
963
|
+
}, wn = ["onClick"], xn = {
|
|
964
964
|
class: "content"
|
|
965
|
-
},
|
|
965
|
+
}, On = {
|
|
966
966
|
class: "addNew"
|
|
967
|
-
},
|
|
967
|
+
}, kn = {
|
|
968
968
|
class: "files"
|
|
969
|
-
},
|
|
969
|
+
}, Sn = {
|
|
970
970
|
class: "name"
|
|
971
|
-
},
|
|
971
|
+
}, Tn = {
|
|
972
972
|
class: "detail"
|
|
973
|
-
},
|
|
973
|
+
}, An = /* @__PURE__ */ Object.assign({
|
|
974
974
|
name: "TWComments"
|
|
975
975
|
}, {
|
|
976
976
|
__name: "index",
|
|
@@ -1004,7 +1004,7 @@ const fn = {
|
|
|
1004
1004
|
return d.some((j) => T.endsWith(j));
|
|
1005
1005
|
}, a = (s) => {
|
|
1006
1006
|
window.open(s, "_blank");
|
|
1007
|
-
}, o =
|
|
1007
|
+
}, o = P([
|
|
1008
1008
|
// {
|
|
1009
1009
|
// fileName: "文件12341234.pdf",
|
|
1010
1010
|
// fileUrl: "/path/to/file.pdf",
|
|
@@ -1013,7 +1013,7 @@ const fn = {
|
|
|
1013
1013
|
// fileName: "文件.pdf",
|
|
1014
1014
|
// fileUrl: "/path/to/file.pdf",
|
|
1015
1015
|
// },
|
|
1016
|
-
]), l =
|
|
1016
|
+
]), l = P(!1), i = ({
|
|
1017
1017
|
file: s
|
|
1018
1018
|
}) => {
|
|
1019
1019
|
if (console.log("上传文件了: ", s), l.value = !0, s.response)
|
|
@@ -1024,7 +1024,7 @@ const fn = {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
o.value.push(d);
|
|
1026
1026
|
} else
|
|
1027
|
-
|
|
1027
|
+
pe.error({
|
|
1028
1028
|
message: "上传失败"
|
|
1029
1029
|
});
|
|
1030
1030
|
else
|
|
@@ -1033,9 +1033,9 @@ const fn = {
|
|
|
1033
1033
|
}, 2e3);
|
|
1034
1034
|
}, c = (s) => {
|
|
1035
1035
|
o.value.splice(s, 1);
|
|
1036
|
-
}, f =
|
|
1036
|
+
}, f = P(""), C = n, w = () => {
|
|
1037
1037
|
if (!f.value.trim() && o.value.length === 0) {
|
|
1038
|
-
|
|
1038
|
+
pe.warning({
|
|
1039
1039
|
message: "请填写"
|
|
1040
1040
|
});
|
|
1041
1041
|
return;
|
|
@@ -1048,29 +1048,29 @@ const fn = {
|
|
|
1048
1048
|
};
|
|
1049
1049
|
return (s, d) => {
|
|
1050
1050
|
const T = L("a-image"), j = L("a-input"), D = L("a-button"), E = L("a-upload");
|
|
1051
|
-
return m(),
|
|
1052
|
-
theme: O(
|
|
1051
|
+
return m(), ne(O(V), {
|
|
1052
|
+
theme: O(Ne)
|
|
1053
1053
|
}, {
|
|
1054
|
-
default: $(() => [u("div",
|
|
1054
|
+
default: $(() => [u("div", dn, [u("div", pn, [(m(!0), _(Z, null, Q(t.comments, (v, I) => (m(), _("div", {
|
|
1055
1055
|
class: "comment",
|
|
1056
|
-
key:
|
|
1057
|
-
}, [u("div",
|
|
1056
|
+
key: I
|
|
1057
|
+
}, [u("div", mn, [u("p", gn, F(v.name), 1), u("p", bn, F(v.time), 1)]), v.files?.length > 0 ? (m(), _("div", vn, [(m(!0), _(Z, null, Q(v.files, (x, G) => (m(), _("div", {
|
|
1058
1058
|
class: "file",
|
|
1059
|
-
key:
|
|
1060
|
-
}, [r(x[t.fileNameKey]) ? (m(),
|
|
1059
|
+
key: G
|
|
1060
|
+
}, [r(x[t.fileNameKey]) ? (m(), ne(T, {
|
|
1061
1061
|
key: 0,
|
|
1062
1062
|
src: x.fileUrl,
|
|
1063
1063
|
width: "40px",
|
|
1064
1064
|
height: "40px"
|
|
1065
|
-
}, null, 8, ["src"])) : (m(), _("img",
|
|
1066
|
-
onClick: (
|
|
1067
|
-
}, "下载", 8,
|
|
1065
|
+
}, null, 8, ["src"])) : (m(), _("img", hn)), u("div", yn, [u("p", _n, F(x[t.fileNameKey]), 1), u("div", Cn, [u("p", {
|
|
1066
|
+
onClick: (de) => a(x[t.fileUrlKey])
|
|
1067
|
+
}, "下载", 8, wn)])])]))), 128))])) : Je("", !0), u("div", xn, F(v.content), 1)]))), 128))]), u("div", On, [u("div", kn, [(m(!0), _(Z, null, Q(o.value, (v, I) => (m(), _("div", {
|
|
1068
1068
|
class: "file",
|
|
1069
|
-
key:
|
|
1070
|
-
}, [g(O(
|
|
1069
|
+
key: I
|
|
1070
|
+
}, [g(O(q)), u("p", Sn, F(v.fileName), 1), g(O(ue), {
|
|
1071
1071
|
class: "delete",
|
|
1072
|
-
onClick: (x) => c(
|
|
1073
|
-
}, null, 8, ["onClick"])]))), 128))]), u("div",
|
|
1072
|
+
onClick: (x) => c(I)
|
|
1073
|
+
}, null, 8, ["onClick"])]))), 128))]), u("div", Tn, [g(j, {
|
|
1074
1074
|
value: f.value,
|
|
1075
1075
|
"onUpdate:value": d[0] || (d[0] = (v) => f.value = v),
|
|
1076
1076
|
placeholder: "请输入",
|
|
@@ -1082,7 +1082,7 @@ const fn = {
|
|
|
1082
1082
|
onChange: i
|
|
1083
1083
|
}, {
|
|
1084
1084
|
default: $(() => [g(D, {
|
|
1085
|
-
icon:
|
|
1085
|
+
icon: ae(O(q)),
|
|
1086
1086
|
loading: l.value
|
|
1087
1087
|
}, null, 8, ["icon", "loading"])]),
|
|
1088
1088
|
_: 1
|
|
@@ -1090,23 +1090,24 @@ const fn = {
|
|
|
1090
1090
|
type: "primary",
|
|
1091
1091
|
onClick: w
|
|
1092
1092
|
}, {
|
|
1093
|
-
default: $(() => [...d[1] || (d[1] = [
|
|
1093
|
+
default: $(() => [...d[1] || (d[1] = [re("提交", -1)])]),
|
|
1094
1094
|
_: 1
|
|
1095
1095
|
})])])])]),
|
|
1096
1096
|
_: 1
|
|
1097
1097
|
}, 8, ["theme"]);
|
|
1098
1098
|
};
|
|
1099
1099
|
}
|
|
1100
|
-
}),
|
|
1101
|
-
|
|
1100
|
+
}), jn = /* @__PURE__ */ Me(An, [["__scopeId", "data-v-966e1b1a"]]), In = [ot, lt, jn], Pn = function(e) {
|
|
1101
|
+
e.component(V.name, V), e.component(oe.name, oe), e.component(me.name, me), e.component(ge.name, ge), e.component(be.name, be), In.forEach((n) => {
|
|
1102
1102
|
e.component(n.name, n);
|
|
1103
1103
|
});
|
|
1104
|
-
},
|
|
1104
|
+
}, Nn = { install: Pn, publicJs: nt };
|
|
1105
1105
|
export {
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1106
|
+
ot as TWAirlineInfo,
|
|
1107
|
+
jn as TWComments,
|
|
1108
|
+
lt as TWHotelInfo,
|
|
1109
|
+
Nn as default,
|
|
1110
|
+
tt as isValidEmail,
|
|
1111
|
+
Ke as isValidIdCard,
|
|
1112
|
+
et as isValidPhoneNumber
|
|
1112
1113
|
};
|
package/travel-ui.umd.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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=`
|
|
1
|
+
(function(m,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):(m=typeof globalThis<"u"?globalThis:m||self,o(m["travel-ui"]={},m.Vue,m.Antd))})(this,(function(m,o,d){"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 Fe=Object.freeze(Object.defineProperty({__proto__:null,isValidEmail:te,isValidIdCard:K,isValidPhoneNumber:ee},Symbol.toStringTag,{value:"Module"})),ne=o.reactive({mode:"light",algorithm:d.theme.defaultAlgorithm,token:{colorPrimary:"#F0182A",colorPrimaryBg:"#e6f4ff",colorPrimaryBgHover:"#bae0ff",borderRadius:4,wireframe:!0}}),re=o.computed(()=>({algorithm:ne.algorithm,token:{...ne.token}})),Be={class:"tw-airline-info"},Me=Object.assign({name:"TWAirlineInfo"},{__name:"index",setup(e){return(n,t)=>(o.openBlock(),o.createBlock(o.unref(d.ConfigProvider),{theme:o.unref(re)},{default:o.withCtx(()=>[o.createElementVNode("div",Be,[t[1]||(t[1]=o.createTextVNode(" 123 ",-1)),o.createVNode(o.unref(d.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(Me,[["__scopeId","data-v-75e539f7"]]),$e={class:"tw-hotel-info"},ie=Object.assign({name:"TWHotelInfo"},{__name:"index",setup(e){return(n,t)=>(o.openBlock(),o.createElementBlock("div",$e))}}),Re="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 b(e,n){Le(e)&&(e="100%");var t=Ve(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 Le(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Ve(e){return typeof e=="string"&&e.indexOf("%")!==-1}function He(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function P(e){return e<=1?"".concat(Number(e)*100,"%"):e}function V(e){return e.length===1?"0"+e:String(e)}function Ue(e,n,t){return{r:b(e,255)*255,g:b(n,255)*255,b:b(t,255)*255}}function H(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 ze(e,n,t){var r,a,i;if(e=b(e,360),n=b(n,100),t=b(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=H(l,c,e+1/3),a=H(l,c,e),i=H(l,c,e-1/3)}return{r:r*255,g:a*255,b:i*255}}function De(e,n,t){e=b(e,255),n=b(n,255),t=b(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 We(e,n,t){e=b(e,360)*6,n=b(n,100),t=b(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],w=[l,t,t,c,i,i][f],k=[i,i,l,t,t,c][f];return{r:s*255,g:w*255,b:k*255}}function qe(e,n,t,r){var a=[V(Math.round(e).toString(16)),V(Math.round(n).toString(16)),V(Math.round(t).toString(16))];return a.join("")}function le(e){return p(e)/255}function p(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=Qe(e)),typeof e=="object"&&(v(e.r)&&v(e.g)&&v(e.b)?(n=Ue(e.r,e.g,e.b),c=!0,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):v(e.h)&&v(e.s)&&v(e.v)?(r=P(e.s),a=P(e.v),n=We(e.h,r,a),c=!0,l="hsv"):v(e.h)&&v(e.s)&&v(e.l)&&(r=P(e.s),i=P(e.l),n=ze(e.h,r,i),c=!0,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=He(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 Ge="[-\\+]?\\d+%?",Ze="[-\\+]?\\d*\\.\\d+%?",C="(?:".concat(Ze,")|(?:").concat(Ge,")"),U="[\\s|\\(]+(".concat(C,")[,|\\s]+(").concat(C,")[,|\\s]+(").concat(C,")\\s*\\)?"),z="[\\s|\\(]+(".concat(C,")[,|\\s]+(").concat(C,")[,|\\s]+(").concat(C,")[,|\\s]+(").concat(C,")\\s*\\)?"),h={CSS_UNIT:new RegExp(C),rgb:new RegExp("rgb"+U),rgba:new RegExp("rgba"+z),hsl:new RegExp("hsl"+U),hsla:new RegExp("hsla"+z),hsv:new RegExp("hsv"+U),hsva:new RegExp("hsva"+z),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 Qe(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=h.rgb.exec(e);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?{r:p(t[1]),g:p(t[2]),b:p(t[3]),a:le(t[4]),format:n?"name":"hex8"}:(t=h.hex6.exec(e),t?{r:p(t[1]),g:p(t[2]),b:p(t[3]),format:n?"name":"hex"}:(t=h.hex4.exec(e),t?{r:p(t[1]+t[1]),g:p(t[2]+t[2]),b:p(t[3]+t[3]),a:le(t[4]+t[4]),format:n?"name":"hex8"}:(t=h.hex3.exec(e),t?{r:p(t[1]+t[1]),g:p(t[2]+t[2]),b:p(t[3]+t[3]),format:n?"name":"hex"}:!1)))))))))}function v(e){return!!h.CSS_UNIT.exec(String(e))}var F=2,fe=.16,Ye=.05,Je=.05,Xe=.15,se=5,ue=4,Ke=[{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=De(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(qe(n,t,r))}function et(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+Ye*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+Je*n:r=e.v-Xe*n,r>1&&(r=1),Number(r.toFixed(2))}function D(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"?Ke.map(function(w){var k=w.index,u=w.opacity,g=B(et(N(n.backgroundColor||"#141414"),N(t[k]),u*100));return g}):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]=D(W[e]),M[e].primary=M[e][5],q[e]=D(W[e],{theme:"dark",backgroundColor:"#141414"}),q[e].primary=q[e][5]});var tt=M.blue,nt=Symbol("iconContext"),be=function(){return o.inject(nt,{prefixCls:o.ref("anticon"),rootClassName:o.ref(""),csp:o.ref()})};function G(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function rt(e,n){return e&&e.contains?e.contains(n):!1}var he="data-vc-order",at="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):at}function Q(e){if(e.attachTo)return e.attachTo;var n=document.querySelector("head");return n||document.body}function ot(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,ot(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 it(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 lt(e,n){var t=Z.get(e);if(!t||!rt(document,t)){var r=Ce("",n),a=r.parentNode;Z.set(e,a),e.removeChild(r)}}function ct(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Q(t);lt(r,t);var a=it(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){ft(e,a,t[a])})}return e}function ft(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function st(e,n){process.env.NODE_ENV!=="production"&&!e&&console!==void 0&&console.error("Warning: ".concat(n))}function ut(e,n){st(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 D(e)[0]}function xe(e){return e?Array.isArray(e)?e:[e]:[]}var dt=`
|
|
2
2
|
.anticon {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
color: inherit;
|
|
@@ -52,6 +52,6 @@
|
|
|
52
52
|
transform: rotate(360deg);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
`;function Se(e){return e&&e.getRootNode&&e.getRootNode()}function
|
|
56
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
57
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function
|
|
55
|
+
`;function Se(e){return e&&e.getRootNode&&e.getRootNode()}function mt(e){return G()?Se(e)instanceof ShadowRoot:!1}function pt(e){return mt(e)?Se(e):null}var gt=function(){var n=be(),t=n.prefixCls,r=n.csp,a=o.getCurrentInstance(),i=dt;t&&(i=i.replace(/anticon/g,t.value)),o.nextTick(function(){if(G()){var c=a.vnode.el,l=pt(c);ct(i,"@ant-design-vue-icons",{prepend:!0,csp:r.value,attachTo:l})}})},bt=["icon","primaryColor","secondaryColor"];function ht(e,n){if(e==null)return{};var t=yt(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 yt(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 $(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 A=o.reactive({primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1});function Ct(e){var n=e.primaryColor,t=e.secondaryColor;A.primaryColor=n,A.secondaryColor=t||ke(n),A.calculated=!!t}function _t(){return $({},A)}var _=function(n,t){var r=$({},n,t.attrs),a=r.icon,i=r.primaryColor,c=r.secondaryColor,l=ht(r,bt),f=A;if(i&&(f={primaryColor:i,secondaryColor:c||ke(i)}),ut(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=$({},s,{icon:s.icon(f.primaryColor,f.secondaryColor)})),Y(s.icon,"svg-".concat(s.name),$({},l,{"data-icon":s.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"}))};_.props={icon:Object,primaryColor:String,secondaryColor:String,focusable:String},_.inheritAttrs=!1,_.displayName="IconBase",_.getTwoToneColors=_t,_.setTwoToneColors=Ct;function wt(e,n){return Ot(e)||St(e,n)||xt(e,n)||kt()}function kt(){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 xt(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 St(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 Ot(e){if(Array.isArray(e))return e}function Te(e){var n=xe(e),t=wt(n,2),r=t[0],a=t[1];return _.setTwoToneColors({primaryColor:r,secondaryColor:a})}function Tt(){var e=_.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var Et=o.defineComponent({name:"InsertStyles",setup:function(){return gt(),function(){return null}}}),Nt=["class","icon","spin","rotate","tabindex","twoToneColor","onClick"];function At(e,n){return Ft(e)||Pt(e,n)||It(e,n)||jt()}function jt(){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 It(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 Ft(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 Bt(e,n){if(e==null)return{};var t=Mt(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 Mt(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(tt.primary);var S=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,w=a.twoToneColor,k=a.onClick,u=Bt(a,Nt),g=be(),O=g.prefixCls,T=g.rootClassName,L=(r={},j(r,T.value,!!T.value),j(r,O.value,!0),j(r,"".concat(O.value,"-").concat(c.name),!!c.name),j(r,"".concat(O.value,"-spin"),!!l||c.name==="loading"),r),I=s;I===void 0&&k&&(I=-1);var y=f?{msTransform:"rotate(".concat(f,"deg)"),transform:"rotate(".concat(f,"deg)")}:void 0,E=xe(w),x=At(E,2),X=x[0],Pe=x[1];return o.createVNode("span",Ne({role:"img","aria-label":c.name},u,{onClick:k,class:[L,i],tabindex:I}),[o.createVNode(_,{icon:c,primaryColor:X,secondaryColor:Pe,style:y},null),o.createVNode(Et,null,null)])};S.props={spin:Boolean,rotate:Number,icon:Object,twoToneColor:[String,Array]},S.displayName="AntdIcon",S.inheritAttrs=!1,S.getTwoToneColor=Tt,S.setTwoToneColor=Te;var $t={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){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 J=function(n,t){var r=Ae({},n,t.attrs);return o.createVNode(S,Ae({},r,{icon:$t}),null)};J.displayName="DeleteOutlined",J.inheritAttrs=!1;var Lt={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){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 R=function(n,t){var r=je({},n,t.attrs);return o.createVNode(S,je({},r,{icon:Lt}),null)};R.displayName="LinkOutlined",R.inheritAttrs=!1;const Ht={class:"tw-comments"},Ut={class:"comments"},zt={class:"header"},Dt={class:"name"},Wt={class:"time"},qt={key:0,class:"files"},Gt={key:1,class:"logo",src:Re},Zt={class:"detail"},Qt={class:"fileName"},Yt={class:"buttons"},Jt=["onClick"],Xt={class:"content"},Kt={class:"addNew"},en={class:"files"},tn={class:"name"},nn={class:"detail"},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 g=[".png",".jpg",".jpeg",".gif",".bmp",".webp"],O=u.toLowerCase();return g.some(T=>O.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 g={fileName:u.response.ResultData[t.fileNameKey],fileUrl:u.response.ResultData[t.fileUrlKey]};i.value.push(g)}else d.notification.error({message:"上传失败"});else setTimeout(()=>{c.value=!1},2e3)},f=u=>{i.value.splice(u,1)},s=o.ref(""),w=n,k=()=>{if(!s.value.trim()&&i.value.length===0){d.notification.warning({message:"请填写"});return}const u={comment:s.value,files:i.value};w("submit",u),s.value="",i.value=[]};return(u,g)=>{const O=o.resolveComponent("a-image"),T=o.resolveComponent("a-input"),L=o.resolveComponent("a-button"),I=o.resolveComponent("a-upload");return o.openBlock(),o.createBlock(o.unref(d.ConfigProvider),{theme:o.unref(re)},{default:o.withCtx(()=>[o.createElementVNode("div",Ht,[o.createElementVNode("div",Ut,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.comments,(y,E)=>(o.openBlock(),o.createElementBlock("div",{class:"comment",key:E},[o.createElementVNode("div",zt,[o.createElementVNode("p",Dt,o.toDisplayString(y.name),1),o.createElementVNode("p",Wt,o.toDisplayString(y.time),1)]),y.files?.length>0?(o.openBlock(),o.createElementBlock("div",qt,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(y.files,(x,X)=>(o.openBlock(),o.createElementBlock("div",{class:"file",key:X},[r(x[t.fileNameKey])?(o.openBlock(),o.createBlock(O,{key:0,src:x.fileUrl,width:"40px",height:"40px"},null,8,["src"])):(o.openBlock(),o.createElementBlock("img",Gt)),o.createElementVNode("div",Zt,[o.createElementVNode("p",Qt,o.toDisplayString(x[t.fileNameKey]),1),o.createElementVNode("div",Yt,[o.createElementVNode("p",{onClick:Pe=>a(x[t.fileUrlKey])},"下载",8,Jt)])])]))),128))])):o.createCommentVNode("",!0),o.createElementVNode("div",Xt,o.toDisplayString(y.content),1)]))),128))]),o.createElementVNode("div",Kt,[o.createElementVNode("div",en,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(i.value,(y,E)=>(o.openBlock(),o.createElementBlock("div",{class:"file",key:E},[o.createVNode(o.unref(R)),o.createElementVNode("p",tn,o.toDisplayString(y.fileName),1),o.createVNode(o.unref(J),{class:"delete",onClick:x=>f(E)},null,8,["onClick"])]))),128))]),o.createElementVNode("div",nn,[o.createVNode(T,{value:s.value,"onUpdate:value":g[0]||(g[0]=y=>s.value=y),placeholder:"请输入",bordered:!1},null,8,["value"]),o.createVNode(I,{name:"file",action:e.uploadAction,showUploadList:!1,onChange:l},{default:o.withCtx(()=>[o.createVNode(L,{icon:o.h(o.unref(R)),loading:c.value},null,8,["icon","loading"])]),_:1},8,["action"]),o.createVNode(L,{type:"primary",onClick:k},{default:o.withCtx(()=>[...g[1]||(g[1]=[o.createTextVNode("提交",-1)])]),_:1})])])])]),_:1},8,["theme"])}}}),[["__scopeId","data-v-966e1b1a"]]),rn=[oe,ie,Ie],an={install:function(e){e.component(d.ConfigProvider.name,d.ConfigProvider),e.component(d.Button.name,d.Button),e.component(d.Input.name,d.Input),e.component(d.Upload.name,d.Upload),e.component(d.Image.name,d.Image),rn.forEach(n=>{e.component(n.name,n)})},publicJs:Fe};m.TWAirlineInfo=oe,m.TWComments=Ie,m.TWHotelInfo=ie,m.default=an,m.isValidEmail=te,m.isValidIdCard=K,m.isValidPhoneNumber=ee,Object.defineProperties(m,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})}));
|