@vaebe/ccui 2.0.0-beta.0 → 2.0.1-beta.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/README.md +4 -0
- package/button/index.es.js +28 -22
- package/button/index.umd.js +1 -1
- package/calendar/index.es.js +445 -90
- package/calendar/index.umd.js +1 -1
- package/ccui-cli.css +1 -1
- package/check-box/index.es.js +8 -2
- package/check-box/index.umd.js +1 -1
- package/chunk-Ndeg2fpE.js +20 -0
- package/collapse/index.es.js +10 -7
- package/collapse/index.umd.js +1 -1
- package/config-provider/chunk-C_CI6nMA.js +13 -0
- package/config-provider/en-BG83iZ_P.js +24 -0
- package/config-provider/index.es.js +408 -53
- package/config-provider/index.umd.js +1 -1
- package/config-provider/ja-B-93MQG5.js +56 -0
- package/config-provider/ko-86th3uXt.js +56 -0
- package/config-provider/zh-cn-BQE-LNg1.js +59 -0
- package/date-picker/ccui-cli.css +1 -1
- package/date-picker/index.es.js +664 -482
- package/date-picker/index.umd.js +1 -1
- package/drawer/index.es.js +271 -279
- package/drawer/index.umd.js +1 -1
- package/dropdown/index.es.js +187 -171
- package/dropdown/index.umd.js +1 -1
- package/empty/index.es.js +341 -24
- package/empty/index.umd.js +1 -1
- package/en-BVwCvuzF.js +24 -0
- package/float-button/index.es.js +1134 -46
- package/float-button/index.umd.js +1 -1
- package/form/index.es.js +1357 -261
- package/form/index.umd.js +1 -1
- package/icon/index.es.js +93 -10
- package/icon/index.umd.js +1 -1
- package/image/index.es.js +353 -36
- package/image/index.umd.js +1 -1
- package/input/index.es.js +24 -15
- package/input/index.umd.js +1 -1
- package/input-number/index.es.js +45 -25
- package/input-number/index.umd.js +1 -1
- package/ja-B4U4rt8A.js +56 -0
- package/ko-BG35I8uK.js +56 -0
- package/menu/index.es.js +3 -1
- package/menu/index.umd.js +1 -1
- package/message/index.es.js +1179 -86
- package/message/index.umd.js +1 -1
- package/modal/index.es.js +735 -335
- package/modal/index.umd.js +1 -1
- package/notification/index.es.js +1176 -83
- package/notification/index.umd.js +1 -1
- package/package.json +9 -9
- package/pagination/index.es.js +381 -60
- package/pagination/index.umd.js +1 -1
- package/popconfirm/index.es.js +469 -143
- package/popconfirm/index.umd.js +1 -1
- package/popover/index.es.js +192 -175
- package/popover/index.umd.js +1 -1
- package/radio/index.es.js +8 -2
- package/radio/index.umd.js +1 -1
- package/rate/index.es.js +22 -12
- package/rate/index.umd.js +1 -1
- package/select/index.es.js +135 -53
- package/select/index.umd.js +1 -1
- package/slider/index.es.js +165 -155
- package/slider/index.umd.js +1 -1
- package/steps/index.es.js +1140 -49
- package/steps/index.umd.js +1 -1
- package/switch/index.es.js +2 -0
- package/switch/index.umd.js +1 -1
- package/tabs/index.es.js +31 -5
- package/tabs/index.umd.js +1 -1
- package/tag/index.es.js +53 -35
- package/tag/index.umd.js +1 -1
- package/tooltip/index.es.js +78 -77
- package/tooltip/index.umd.js +1 -1
- package/tree/ccui-cli.css +1 -1
- package/tree/index.es.js +1491 -276
- package/tree/index.umd.js +1 -1
- package/typography/index.es.js +1213 -125
- package/typography/index.umd.js +1 -1
- package/vue-ccui.es.js +8726 -7604
- package/vue-ccui.umd.js +1 -1
- package/zh-cn-C8nbfD5S.js +59 -0
package/modal/index.es.js
CHANGED
|
@@ -1,22 +1,6 @@
|
|
|
1
1
|
import { Fragment as e, Teleport as t, Transition as n, computed as r, createApp as i, createTextVNode as a, createVNode as o, defineComponent as s, getCurrentInstance as c, h as l, inject as u, isVNode as d, nextTick as f, onBeforeUnmount as p, onMounted as m, onUnmounted as h, reactive as g, ref as _, shallowRef as v, watch as y } from "vue";
|
|
2
|
-
//#region
|
|
3
|
-
|
|
4
|
-
let r = e;
|
|
5
|
-
return t && (r += `__${t}`), n && (r += `--${n}`), r;
|
|
6
|
-
}
|
|
7
|
-
function x(e, t = !1) {
|
|
8
|
-
let n = t ? `.ccui-${e}` : `ccui-${e}`;
|
|
9
|
-
return {
|
|
10
|
-
b: () => b(n),
|
|
11
|
-
e: (e) => e ? b(n, e) : "",
|
|
12
|
-
m: (e) => e ? b(n, "", e) : "",
|
|
13
|
-
em: (e, t) => e && t ? b(n, e, t) : "",
|
|
14
|
-
is: (e) => `is-${e}`
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region ../../node_modules/.pnpm/@iconify+vue@5.0.1_vue@3.5.33_typescript@5.9.3_/node_modules/@iconify/vue/dist/iconify.mjs
|
|
19
|
-
var S = /^[a-z0-9]+(-[a-z0-9]+)*$/, C = (e, t, n, r = "") => {
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var b = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), x = /^[a-z0-9]+(-[a-z0-9]+)*$/, S = (e, t, n, r = "") => {
|
|
20
4
|
let i = e.split(":");
|
|
21
5
|
if (e.slice(0, 1) === "@") {
|
|
22
6
|
if (i.length < 2 || i.length > 3) return null;
|
|
@@ -29,7 +13,7 @@ var S = /^[a-z0-9]+(-[a-z0-9]+)*$/, C = (e, t, n, r = "") => {
|
|
|
29
13
|
prefix: n,
|
|
30
14
|
name: e
|
|
31
15
|
};
|
|
32
|
-
return t && !
|
|
16
|
+
return t && !C(a) ? null : a;
|
|
33
17
|
}
|
|
34
18
|
let a = i[0], o = a.split("-");
|
|
35
19
|
if (o.length > 1) {
|
|
@@ -38,7 +22,7 @@ var S = /^[a-z0-9]+(-[a-z0-9]+)*$/, C = (e, t, n, r = "") => {
|
|
|
38
22
|
prefix: o.shift(),
|
|
39
23
|
name: o.join("-")
|
|
40
24
|
};
|
|
41
|
-
return t && !
|
|
25
|
+
return t && !C(e) ? null : e;
|
|
42
26
|
}
|
|
43
27
|
if (n && r === "") {
|
|
44
28
|
let e = {
|
|
@@ -46,11 +30,11 @@ var S = /^[a-z0-9]+(-[a-z0-9]+)*$/, C = (e, t, n, r = "") => {
|
|
|
46
30
|
prefix: "",
|
|
47
31
|
name: a
|
|
48
32
|
};
|
|
49
|
-
return t && !
|
|
33
|
+
return t && !C(e, n) ? null : e;
|
|
50
34
|
}
|
|
51
35
|
return null;
|
|
52
|
-
},
|
|
53
|
-
function
|
|
36
|
+
}, C = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
|
|
37
|
+
function w(e, t) {
|
|
54
38
|
let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
|
|
55
39
|
function a(e) {
|
|
56
40
|
if (n[e]) return i[e] = [];
|
|
@@ -63,20 +47,20 @@ function T(e, t) {
|
|
|
63
47
|
}
|
|
64
48
|
return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
|
|
65
49
|
}
|
|
66
|
-
var
|
|
50
|
+
var T = Object.freeze({
|
|
67
51
|
left: 0,
|
|
68
52
|
top: 0,
|
|
69
53
|
width: 16,
|
|
70
54
|
height: 16
|
|
71
|
-
}),
|
|
55
|
+
}), E = Object.freeze({
|
|
72
56
|
rotate: 0,
|
|
73
57
|
vFlip: !1,
|
|
74
58
|
hFlip: !1
|
|
59
|
+
}), D = Object.freeze({
|
|
60
|
+
...T,
|
|
61
|
+
...E
|
|
75
62
|
}), O = Object.freeze({
|
|
76
|
-
...
|
|
77
|
-
...D
|
|
78
|
-
}), k = Object.freeze({
|
|
79
|
-
...O,
|
|
63
|
+
...D,
|
|
80
64
|
body: "",
|
|
81
65
|
hidden: !1
|
|
82
66
|
});
|
|
@@ -86,17 +70,17 @@ function ee(e, t) {
|
|
|
86
70
|
let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
|
|
87
71
|
return r && (n.rotate = r), n;
|
|
88
72
|
}
|
|
89
|
-
function
|
|
73
|
+
function k(e, t) {
|
|
90
74
|
let n = ee(e, t);
|
|
91
|
-
for (let r in
|
|
75
|
+
for (let r in O) r in E ? r in e && !(r in n) && (n[r] = E[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
|
|
92
76
|
return n;
|
|
93
77
|
}
|
|
94
|
-
function
|
|
78
|
+
function A(e, t, n) {
|
|
95
79
|
let r = e.icons, i = e.aliases || Object.create(null), a = {};
|
|
96
80
|
function o(e) {
|
|
97
|
-
a =
|
|
81
|
+
a = k(r[e] || i[e], a);
|
|
98
82
|
}
|
|
99
|
-
return o(t), n.forEach(o),
|
|
83
|
+
return o(t), n.forEach(o), k(e, a);
|
|
100
84
|
}
|
|
101
85
|
function j(e, t) {
|
|
102
86
|
let n = [];
|
|
@@ -104,18 +88,18 @@ function j(e, t) {
|
|
|
104
88
|
e.not_found instanceof Array && e.not_found.forEach((e) => {
|
|
105
89
|
t(e, null), n.push(e);
|
|
106
90
|
});
|
|
107
|
-
let r =
|
|
91
|
+
let r = w(e);
|
|
108
92
|
for (let i in r) {
|
|
109
93
|
let a = r[i];
|
|
110
|
-
a && (t(i,
|
|
94
|
+
a && (t(i, A(e, i, a)), n.push(i));
|
|
111
95
|
}
|
|
112
96
|
return n;
|
|
113
97
|
}
|
|
114
|
-
var
|
|
98
|
+
var te = {
|
|
115
99
|
provider: "",
|
|
116
100
|
aliases: {},
|
|
117
101
|
not_found: {},
|
|
118
|
-
...
|
|
102
|
+
...T
|
|
119
103
|
};
|
|
120
104
|
function M(e, t) {
|
|
121
105
|
for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
|
|
@@ -124,21 +108,21 @@ function M(e, t) {
|
|
|
124
108
|
function N(e) {
|
|
125
109
|
if (typeof e != "object" || !e) return null;
|
|
126
110
|
let t = e;
|
|
127
|
-
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !M(e,
|
|
111
|
+
if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !M(e, te)) return null;
|
|
128
112
|
let n = t.icons;
|
|
129
113
|
for (let e in n) {
|
|
130
114
|
let t = n[e];
|
|
131
|
-
if (!e || typeof t.body != "string" || !M(t,
|
|
115
|
+
if (!e || typeof t.body != "string" || !M(t, O)) return null;
|
|
132
116
|
}
|
|
133
117
|
let r = t.aliases || Object.create(null);
|
|
134
118
|
for (let e in r) {
|
|
135
119
|
let t = r[e], i = t.parent;
|
|
136
|
-
if (!e || typeof i != "string" || !n[i] && !r[i] || !M(t,
|
|
120
|
+
if (!e || typeof i != "string" || !n[i] && !r[i] || !M(t, O)) return null;
|
|
137
121
|
}
|
|
138
122
|
return t;
|
|
139
123
|
}
|
|
140
124
|
var P = Object.create(null);
|
|
141
|
-
function
|
|
125
|
+
function F(e, t) {
|
|
142
126
|
return {
|
|
143
127
|
provider: e,
|
|
144
128
|
prefix: t,
|
|
@@ -146,66 +130,66 @@ function re(e, t) {
|
|
|
146
130
|
missing: /* @__PURE__ */ new Set()
|
|
147
131
|
};
|
|
148
132
|
}
|
|
149
|
-
function
|
|
133
|
+
function I(e, t) {
|
|
150
134
|
let n = P[e] || (P[e] = Object.create(null));
|
|
151
|
-
return n[t] || (n[t] =
|
|
135
|
+
return n[t] || (n[t] = F(e, t));
|
|
152
136
|
}
|
|
153
|
-
function
|
|
137
|
+
function ne(e, t) {
|
|
154
138
|
return N(t) ? j(t, (t, n) => {
|
|
155
139
|
n ? e.icons[t] = n : e.missing.add(t);
|
|
156
140
|
}) : [];
|
|
157
141
|
}
|
|
158
|
-
function
|
|
142
|
+
function re(e, t, n) {
|
|
159
143
|
try {
|
|
160
144
|
if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
|
|
161
145
|
} catch {}
|
|
162
146
|
return !1;
|
|
163
147
|
}
|
|
164
148
|
var L = !1;
|
|
165
|
-
function
|
|
149
|
+
function R(e) {
|
|
166
150
|
return typeof e == "boolean" && (L = e), L;
|
|
167
151
|
}
|
|
168
|
-
function
|
|
169
|
-
let t = typeof e == "string" ?
|
|
152
|
+
function ie(e) {
|
|
153
|
+
let t = typeof e == "string" ? S(e, !0, L) : e;
|
|
170
154
|
if (t) {
|
|
171
|
-
let e =
|
|
155
|
+
let e = I(t.provider, t.prefix), n = t.name;
|
|
172
156
|
return e.icons[n] || (e.missing.has(n) ? null : void 0);
|
|
173
157
|
}
|
|
174
158
|
}
|
|
175
|
-
function
|
|
176
|
-
let n =
|
|
159
|
+
function ae(e, t) {
|
|
160
|
+
let n = S(e, !0, L);
|
|
177
161
|
if (!n) return !1;
|
|
178
|
-
let r =
|
|
179
|
-
return t ?
|
|
162
|
+
let r = I(n.provider, n.prefix);
|
|
163
|
+
return t ? re(r, n.name, t) : (r.missing.add(n.name), !0);
|
|
180
164
|
}
|
|
181
|
-
function
|
|
165
|
+
function oe(e, t) {
|
|
182
166
|
if (typeof e != "object") return !1;
|
|
183
167
|
if (typeof t != "string" && (t = e.provider || ""), L && !t && !e.prefix) {
|
|
184
168
|
let t = !1;
|
|
185
169
|
return N(e) && (e.prefix = "", j(e, (e, n) => {
|
|
186
|
-
|
|
170
|
+
ae(e, n) && (t = !0);
|
|
187
171
|
})), t;
|
|
188
172
|
}
|
|
189
173
|
let n = e.prefix;
|
|
190
|
-
return
|
|
174
|
+
return C({
|
|
191
175
|
prefix: n,
|
|
192
176
|
name: "a"
|
|
193
|
-
}) ? !!I(
|
|
177
|
+
}) ? !!ne(I(t, n), e) : !1;
|
|
194
178
|
}
|
|
195
|
-
var
|
|
179
|
+
var se = Object.freeze({
|
|
196
180
|
width: null,
|
|
197
181
|
height: null
|
|
198
|
-
}),
|
|
199
|
-
...
|
|
200
|
-
...
|
|
201
|
-
}),
|
|
202
|
-
function
|
|
182
|
+
}), ce = Object.freeze({
|
|
183
|
+
...se,
|
|
184
|
+
...E
|
|
185
|
+
}), le = /(-?[0-9.]*[0-9]+[0-9.]*)/g, ue = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
|
|
186
|
+
function de(e, t, n) {
|
|
203
187
|
if (t === 1) return e;
|
|
204
188
|
if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
|
|
205
189
|
if (typeof e != "string") return e;
|
|
206
|
-
let r = e.split(
|
|
190
|
+
let r = e.split(le);
|
|
207
191
|
if (r === null || !r.length) return e;
|
|
208
|
-
let i = [], a = r.shift(), o =
|
|
192
|
+
let i = [], a = r.shift(), o = ue.test(a);
|
|
209
193
|
for (;;) {
|
|
210
194
|
if (o) {
|
|
211
195
|
let e = parseFloat(a);
|
|
@@ -215,7 +199,7 @@ function pe(e, t, n) {
|
|
|
215
199
|
o = !o;
|
|
216
200
|
}
|
|
217
201
|
}
|
|
218
|
-
function
|
|
202
|
+
function fe(e, t = "defs") {
|
|
219
203
|
let n = "", r = e.indexOf("<" + t);
|
|
220
204
|
for (; r >= 0;) {
|
|
221
205
|
let i = e.indexOf(">", r), a = e.indexOf("</" + t);
|
|
@@ -229,20 +213,20 @@ function me(e, t = "defs") {
|
|
|
229
213
|
content: e
|
|
230
214
|
};
|
|
231
215
|
}
|
|
232
|
-
function
|
|
216
|
+
function pe(e, t) {
|
|
233
217
|
return e ? "<defs>" + e + "</defs>" + t : t;
|
|
234
218
|
}
|
|
235
|
-
function
|
|
236
|
-
let r =
|
|
237
|
-
return
|
|
219
|
+
function me(e, t, n) {
|
|
220
|
+
let r = fe(e);
|
|
221
|
+
return pe(r.defs, t + r.content + n);
|
|
238
222
|
}
|
|
239
|
-
var
|
|
240
|
-
function
|
|
223
|
+
var he = (e) => e === "unset" || e === "undefined" || e === "none";
|
|
224
|
+
function ge(e, t) {
|
|
241
225
|
let n = {
|
|
242
|
-
...
|
|
226
|
+
...D,
|
|
243
227
|
...e
|
|
244
228
|
}, r = {
|
|
245
|
-
...
|
|
229
|
+
...ce,
|
|
246
230
|
...t
|
|
247
231
|
}, i = {
|
|
248
232
|
left: n.left,
|
|
@@ -265,12 +249,12 @@ function ve(e, t) {
|
|
|
265
249
|
s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
|
|
266
250
|
break;
|
|
267
251
|
}
|
|
268
|
-
o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a =
|
|
252
|
+
o % 2 == 1 && (i.left !== i.top && (s = i.left, i.left = i.top, i.top = s), i.width !== i.height && (s = i.width, i.width = i.height, i.height = s)), t.length && (a = me(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
|
|
269
253
|
});
|
|
270
254
|
let o = r.width, s = r.height, c = i.width, l = i.height, u, d;
|
|
271
|
-
o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u =
|
|
255
|
+
o === null ? (d = s === null ? "1em" : s === "auto" ? l : s, u = de(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? de(u, l / c) : s === "auto" ? l : s);
|
|
272
256
|
let f = {}, p = (e, t) => {
|
|
273
|
-
|
|
257
|
+
he(t) || (f[e] = t.toString());
|
|
274
258
|
};
|
|
275
259
|
p("width", u), p("height", d);
|
|
276
260
|
let m = [
|
|
@@ -285,30 +269,30 @@ function ve(e, t) {
|
|
|
285
269
|
body: a
|
|
286
270
|
};
|
|
287
271
|
}
|
|
288
|
-
var
|
|
289
|
-
function
|
|
272
|
+
var _e = /\sid="(\S+)"/g, ve = /* @__PURE__ */ new Map();
|
|
273
|
+
function ye(e) {
|
|
290
274
|
e = e.replace(/[0-9]+$/, "") || "a";
|
|
291
|
-
let t =
|
|
292
|
-
return
|
|
275
|
+
let t = ve.get(e) || 0;
|
|
276
|
+
return ve.set(e, t + 1), t ? `${e}${t}` : e;
|
|
293
277
|
}
|
|
294
|
-
function
|
|
278
|
+
function be(e) {
|
|
295
279
|
let t = [], n;
|
|
296
|
-
for (; n =
|
|
280
|
+
for (; n = _e.exec(e);) t.push(n[1]);
|
|
297
281
|
if (!t.length) return e;
|
|
298
282
|
let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
|
|
299
283
|
return t.forEach((t) => {
|
|
300
|
-
let n =
|
|
284
|
+
let n = ye(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
301
285
|
e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
|
|
302
286
|
}), e = e.replace(new RegExp(r, "g"), ""), e;
|
|
303
287
|
}
|
|
304
|
-
var
|
|
305
|
-
function
|
|
306
|
-
|
|
307
|
-
}
|
|
308
|
-
function z(e) {
|
|
309
|
-
return R[e] || R[""];
|
|
288
|
+
var z = Object.create(null);
|
|
289
|
+
function xe(e, t) {
|
|
290
|
+
z[e] = t;
|
|
310
291
|
}
|
|
311
292
|
function B(e) {
|
|
293
|
+
return z[e] || z[""];
|
|
294
|
+
}
|
|
295
|
+
function V(e) {
|
|
312
296
|
let t;
|
|
313
297
|
if (typeof e.resources == "string") t = [e.resources];
|
|
314
298
|
else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
|
|
@@ -323,23 +307,23 @@ function B(e) {
|
|
|
323
307
|
dataAfterTimeout: e.dataAfterTimeout !== !1
|
|
324
308
|
};
|
|
325
309
|
}
|
|
326
|
-
for (var
|
|
327
|
-
|
|
328
|
-
function
|
|
329
|
-
let n =
|
|
330
|
-
return n === null ? !1 : (
|
|
310
|
+
for (var H = Object.create(null), U = ["https://api.simplesvg.com", "https://api.unisvg.com"], W = []; U.length > 0;) U.length === 1 || Math.random() > .5 ? W.push(U.shift()) : W.push(U.pop());
|
|
311
|
+
H[""] = V({ resources: ["https://api.iconify.design"].concat(W) });
|
|
312
|
+
function Se(e, t) {
|
|
313
|
+
let n = V(t);
|
|
314
|
+
return n === null ? !1 : (H[e] = n, !0);
|
|
331
315
|
}
|
|
332
|
-
function
|
|
333
|
-
return
|
|
316
|
+
function G(e) {
|
|
317
|
+
return H[e];
|
|
334
318
|
}
|
|
335
|
-
var
|
|
319
|
+
var Ce = (() => {
|
|
336
320
|
let e;
|
|
337
321
|
try {
|
|
338
322
|
if (e = fetch, typeof e == "function") return e;
|
|
339
323
|
} catch {}
|
|
340
324
|
})();
|
|
341
|
-
function
|
|
342
|
-
let n =
|
|
325
|
+
function we(e, t) {
|
|
326
|
+
let n = G(e);
|
|
343
327
|
if (!n) return 0;
|
|
344
328
|
let r;
|
|
345
329
|
if (!n.maxURL) r = 0;
|
|
@@ -353,11 +337,11 @@ function Ee(e, t) {
|
|
|
353
337
|
}
|
|
354
338
|
return r;
|
|
355
339
|
}
|
|
356
|
-
function
|
|
340
|
+
function Te(e) {
|
|
357
341
|
return e === 404;
|
|
358
342
|
}
|
|
359
|
-
var
|
|
360
|
-
let r = [], i =
|
|
343
|
+
var Ee = (e, t, n) => {
|
|
344
|
+
let r = [], i = we(e, t), a = "icons", o = {
|
|
361
345
|
type: a,
|
|
362
346
|
provider: e,
|
|
363
347
|
prefix: t,
|
|
@@ -372,21 +356,21 @@ var Oe = (e, t, n) => {
|
|
|
372
356
|
}, s = n.length), o.icons.push(n);
|
|
373
357
|
}), r.push(o), r;
|
|
374
358
|
};
|
|
375
|
-
function
|
|
359
|
+
function De(e) {
|
|
376
360
|
if (typeof e == "string") {
|
|
377
|
-
let t =
|
|
361
|
+
let t = G(e);
|
|
378
362
|
if (t) return t.path;
|
|
379
363
|
}
|
|
380
364
|
return "/";
|
|
381
365
|
}
|
|
382
|
-
var
|
|
383
|
-
prepare:
|
|
366
|
+
var Oe = {
|
|
367
|
+
prepare: Ee,
|
|
384
368
|
send: (e, t, n) => {
|
|
385
|
-
if (!
|
|
369
|
+
if (!Ce) {
|
|
386
370
|
n("abort", 424);
|
|
387
371
|
return;
|
|
388
372
|
}
|
|
389
|
-
let r =
|
|
373
|
+
let r = De(t.provider);
|
|
390
374
|
switch (t.type) {
|
|
391
375
|
case "icons": {
|
|
392
376
|
let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
|
|
@@ -403,11 +387,11 @@ var Ae = {
|
|
|
403
387
|
return;
|
|
404
388
|
}
|
|
405
389
|
let i = 503;
|
|
406
|
-
|
|
390
|
+
Ce(e + r).then((e) => {
|
|
407
391
|
let t = e.status;
|
|
408
392
|
if (t !== 200) {
|
|
409
393
|
setTimeout(() => {
|
|
410
|
-
n(
|
|
394
|
+
n(Te(t) ? "abort" : "next", t);
|
|
411
395
|
});
|
|
412
396
|
return;
|
|
413
397
|
}
|
|
@@ -427,13 +411,13 @@ var Ae = {
|
|
|
427
411
|
});
|
|
428
412
|
}
|
|
429
413
|
};
|
|
430
|
-
function
|
|
414
|
+
function ke(e, t) {
|
|
431
415
|
e.forEach((e) => {
|
|
432
416
|
let n = e.loaderCallbacks;
|
|
433
417
|
n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
|
|
434
418
|
});
|
|
435
419
|
}
|
|
436
|
-
function
|
|
420
|
+
function Ae(e) {
|
|
437
421
|
e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
|
|
438
422
|
e.pendingCallbacksFlag = !1;
|
|
439
423
|
let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
|
|
@@ -456,13 +440,13 @@ function Me(e) {
|
|
|
456
440
|
});
|
|
457
441
|
else return n = !0, !0;
|
|
458
442
|
return !1;
|
|
459
|
-
}), a.pending.length !== o && (n ||
|
|
443
|
+
}), a.pending.length !== o && (n || ke([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
|
|
460
444
|
});
|
|
461
445
|
}));
|
|
462
446
|
}
|
|
463
|
-
var
|
|
464
|
-
function
|
|
465
|
-
let r =
|
|
447
|
+
var je = 0;
|
|
448
|
+
function Me(e, t, n) {
|
|
449
|
+
let r = je++, i = ke.bind(null, n, r);
|
|
466
450
|
if (!t.pending.length) return i;
|
|
467
451
|
let a = {
|
|
468
452
|
id: r,
|
|
@@ -474,7 +458,7 @@ function Pe(e, t, n) {
|
|
|
474
458
|
(e.loaderCallbacks ||= []).push(a);
|
|
475
459
|
}), i;
|
|
476
460
|
}
|
|
477
|
-
function
|
|
461
|
+
function Ne(e) {
|
|
478
462
|
let t = {
|
|
479
463
|
loaded: [],
|
|
480
464
|
missing: [],
|
|
@@ -489,7 +473,7 @@ function Fe(e) {
|
|
|
489
473
|
return e.forEach((e) => {
|
|
490
474
|
if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
|
|
491
475
|
r = e;
|
|
492
|
-
let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] =
|
|
476
|
+
let i = e.provider, a = e.prefix, o = e.name, s = n[i] || (n[i] = Object.create(null)), c = s[a] || (s[a] = I(i, a)), l;
|
|
493
477
|
l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
|
|
494
478
|
let u = {
|
|
495
479
|
provider: i,
|
|
@@ -499,14 +483,14 @@ function Fe(e) {
|
|
|
499
483
|
l.push(u);
|
|
500
484
|
}), t;
|
|
501
485
|
}
|
|
502
|
-
function
|
|
486
|
+
function Pe(e, t = !0, n = !1) {
|
|
503
487
|
let r = [];
|
|
504
488
|
return e.forEach((e) => {
|
|
505
|
-
let i = typeof e == "string" ?
|
|
489
|
+
let i = typeof e == "string" ? S(e, t, n) : e;
|
|
506
490
|
i && r.push(i);
|
|
507
491
|
}), r;
|
|
508
492
|
}
|
|
509
|
-
var
|
|
493
|
+
var Fe = {
|
|
510
494
|
resources: [],
|
|
511
495
|
index: 0,
|
|
512
496
|
timeout: 2e3,
|
|
@@ -514,7 +498,7 @@ var Le = {
|
|
|
514
498
|
random: !1,
|
|
515
499
|
dataAfterTimeout: !1
|
|
516
500
|
};
|
|
517
|
-
function
|
|
501
|
+
function Ie(e, t, n, r) {
|
|
518
502
|
let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
|
|
519
503
|
if (e.random) {
|
|
520
504
|
let t = e.resources.slice(0);
|
|
@@ -608,16 +592,16 @@ function Re(e, t, n, r) {
|
|
|
608
592
|
}
|
|
609
593
|
return setTimeout(x), _;
|
|
610
594
|
}
|
|
611
|
-
function
|
|
595
|
+
function Le(e) {
|
|
612
596
|
let t = {
|
|
613
|
-
...
|
|
597
|
+
...Fe,
|
|
614
598
|
...e
|
|
615
599
|
}, n = [];
|
|
616
600
|
function r() {
|
|
617
601
|
n = n.filter((e) => e().status === "pending");
|
|
618
602
|
}
|
|
619
603
|
function i(e, i, a) {
|
|
620
|
-
let o =
|
|
604
|
+
let o = Ie(t, e, i, (e, t) => {
|
|
621
605
|
r(), a && a(e, t);
|
|
622
606
|
});
|
|
623
607
|
return n.push(o), o;
|
|
@@ -635,53 +619,53 @@ function ze(e) {
|
|
|
635
619
|
cleanup: r
|
|
636
620
|
};
|
|
637
621
|
}
|
|
638
|
-
function
|
|
639
|
-
var
|
|
640
|
-
function
|
|
641
|
-
if (!
|
|
642
|
-
let t =
|
|
622
|
+
function Re() {}
|
|
623
|
+
var K = Object.create(null);
|
|
624
|
+
function ze(e) {
|
|
625
|
+
if (!K[e]) {
|
|
626
|
+
let t = G(e);
|
|
643
627
|
if (!t) return;
|
|
644
|
-
|
|
628
|
+
K[e] = {
|
|
645
629
|
config: t,
|
|
646
|
-
redundancy:
|
|
630
|
+
redundancy: Le(t)
|
|
647
631
|
};
|
|
648
632
|
}
|
|
649
|
-
return
|
|
633
|
+
return K[e];
|
|
650
634
|
}
|
|
651
|
-
function
|
|
635
|
+
function Be(e, t, n) {
|
|
652
636
|
let r, i;
|
|
653
637
|
if (typeof e == "string") {
|
|
654
|
-
let t =
|
|
655
|
-
if (!t) return n(void 0, 424),
|
|
638
|
+
let t = B(e);
|
|
639
|
+
if (!t) return n(void 0, 424), Re;
|
|
656
640
|
i = t.send;
|
|
657
|
-
let a =
|
|
641
|
+
let a = ze(e);
|
|
658
642
|
a && (r = a.redundancy);
|
|
659
643
|
} else {
|
|
660
|
-
let t =
|
|
644
|
+
let t = V(e);
|
|
661
645
|
if (t) {
|
|
662
|
-
r =
|
|
663
|
-
let n =
|
|
646
|
+
r = Le(t);
|
|
647
|
+
let n = B(e.resources ? e.resources[0] : "");
|
|
664
648
|
n && (i = n.send);
|
|
665
649
|
}
|
|
666
650
|
}
|
|
667
|
-
return !r || !i ? (n(void 0, 424),
|
|
651
|
+
return !r || !i ? (n(void 0, 424), Re) : r.query(t, i, n)().abort;
|
|
668
652
|
}
|
|
669
|
-
function
|
|
670
|
-
function
|
|
653
|
+
function Ve() {}
|
|
654
|
+
function He(e) {
|
|
671
655
|
e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
|
|
672
|
-
e.iconsLoaderFlag = !1,
|
|
656
|
+
e.iconsLoaderFlag = !1, Ae(e);
|
|
673
657
|
}));
|
|
674
658
|
}
|
|
675
|
-
function
|
|
659
|
+
function Ue(e) {
|
|
676
660
|
let t = [], n = [];
|
|
677
661
|
return e.forEach((e) => {
|
|
678
|
-
(e.match(
|
|
662
|
+
(e.match(x) ? t : n).push(e);
|
|
679
663
|
}), {
|
|
680
664
|
valid: t,
|
|
681
665
|
invalid: n
|
|
682
666
|
};
|
|
683
667
|
}
|
|
684
|
-
function
|
|
668
|
+
function q(e, t, n) {
|
|
685
669
|
function r() {
|
|
686
670
|
let n = e.pendingIcons;
|
|
687
671
|
t.forEach((t) => {
|
|
@@ -689,38 +673,38 @@ function K(e, t, n) {
|
|
|
689
673
|
});
|
|
690
674
|
}
|
|
691
675
|
if (n && typeof n == "object") try {
|
|
692
|
-
if (!
|
|
676
|
+
if (!ne(e, n).length) {
|
|
693
677
|
r();
|
|
694
678
|
return;
|
|
695
679
|
}
|
|
696
680
|
} catch (e) {
|
|
697
681
|
console.error(e);
|
|
698
682
|
}
|
|
699
|
-
r(),
|
|
683
|
+
r(), He(e);
|
|
700
684
|
}
|
|
701
|
-
function
|
|
685
|
+
function We(e, t) {
|
|
702
686
|
e instanceof Promise ? e.then((e) => {
|
|
703
687
|
t(e);
|
|
704
688
|
}).catch(() => {
|
|
705
689
|
t(null);
|
|
706
690
|
}) : t(e);
|
|
707
691
|
}
|
|
708
|
-
function
|
|
692
|
+
function Ge(e, t) {
|
|
709
693
|
e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
|
|
710
694
|
e.iconsQueueFlag = !1;
|
|
711
695
|
let { provider: t, prefix: n } = e, r = e.iconsToLoad;
|
|
712
696
|
if (delete e.iconsToLoad, !r || !r.length) return;
|
|
713
697
|
let i = e.loadIcon;
|
|
714
698
|
if (e.loadIcons && (r.length > 1 || !i)) {
|
|
715
|
-
|
|
716
|
-
|
|
699
|
+
We(e.loadIcons(r, n, t), (t) => {
|
|
700
|
+
q(e, r, t);
|
|
717
701
|
});
|
|
718
702
|
return;
|
|
719
703
|
}
|
|
720
704
|
if (i) {
|
|
721
705
|
r.forEach((r) => {
|
|
722
|
-
|
|
723
|
-
|
|
706
|
+
We(i(r, n, t), (t) => {
|
|
707
|
+
q(e, [r], t ? {
|
|
724
708
|
prefix: n,
|
|
725
709
|
icons: { [r]: t }
|
|
726
710
|
} : null);
|
|
@@ -728,26 +712,26 @@ function qe(e, t) {
|
|
|
728
712
|
});
|
|
729
713
|
return;
|
|
730
714
|
}
|
|
731
|
-
let { valid: a, invalid: o } =
|
|
732
|
-
if (o.length &&
|
|
733
|
-
let s = n.match(
|
|
715
|
+
let { valid: a, invalid: o } = Ue(r);
|
|
716
|
+
if (o.length && q(e, o, null), !a.length) return;
|
|
717
|
+
let s = n.match(x) ? B(t) : null;
|
|
734
718
|
if (!s) {
|
|
735
|
-
|
|
719
|
+
q(e, a, null);
|
|
736
720
|
return;
|
|
737
721
|
}
|
|
738
722
|
s.prepare(t, n, a).forEach((n) => {
|
|
739
|
-
|
|
740
|
-
|
|
723
|
+
Be(t, n, (t) => {
|
|
724
|
+
q(e, n.icons, t);
|
|
741
725
|
});
|
|
742
726
|
});
|
|
743
727
|
}));
|
|
744
728
|
}
|
|
745
|
-
var
|
|
746
|
-
let n =
|
|
729
|
+
var Ke = (e, t) => {
|
|
730
|
+
let n = Ne(Pe(e, !0, R()));
|
|
747
731
|
if (!n.pending.length) {
|
|
748
732
|
let e = !0;
|
|
749
733
|
return t && setTimeout(() => {
|
|
750
|
-
e && t(n.loaded, n.missing, n.pending,
|
|
734
|
+
e && t(n.loaded, n.missing, n.pending, Ve);
|
|
751
735
|
}), () => {
|
|
752
736
|
e = !1;
|
|
753
737
|
};
|
|
@@ -756,28 +740,28 @@ var Je = (e, t) => {
|
|
|
756
740
|
return n.pending.forEach((e) => {
|
|
757
741
|
let { provider: t, prefix: n } = e;
|
|
758
742
|
if (n === o && t === a) return;
|
|
759
|
-
a = t, o = n, i.push(
|
|
743
|
+
a = t, o = n, i.push(I(t, n));
|
|
760
744
|
let s = r[t] || (r[t] = Object.create(null));
|
|
761
745
|
s[n] || (s[n] = []);
|
|
762
746
|
}), n.pending.forEach((e) => {
|
|
763
|
-
let { provider: t, prefix: n, name: i } = e, a =
|
|
747
|
+
let { provider: t, prefix: n, name: i } = e, a = I(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
|
|
764
748
|
o.has(i) || (o.add(i), r[t][n].push(i));
|
|
765
749
|
}), i.forEach((e) => {
|
|
766
750
|
let t = r[e.provider][e.prefix];
|
|
767
|
-
t.length &&
|
|
768
|
-
}), t ?
|
|
751
|
+
t.length && Ge(e, t);
|
|
752
|
+
}), t ? Me(t, n, i) : Ve;
|
|
769
753
|
};
|
|
770
|
-
function
|
|
754
|
+
function qe(e, t) {
|
|
771
755
|
let n = { ...e };
|
|
772
756
|
for (let e in t) {
|
|
773
757
|
let r = t[e], i = typeof r;
|
|
774
|
-
e in
|
|
758
|
+
e in se ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
|
|
775
759
|
}
|
|
776
760
|
return n;
|
|
777
761
|
}
|
|
778
|
-
var
|
|
779
|
-
function
|
|
780
|
-
t.split(
|
|
762
|
+
var Je = /[\s,]+/;
|
|
763
|
+
function Ye(e, t) {
|
|
764
|
+
t.split(Je).forEach((t) => {
|
|
781
765
|
switch (t.trim()) {
|
|
782
766
|
case "horizontal":
|
|
783
767
|
e.hFlip = !0;
|
|
@@ -788,7 +772,7 @@ function Ze(e, t) {
|
|
|
788
772
|
}
|
|
789
773
|
});
|
|
790
774
|
}
|
|
791
|
-
function
|
|
775
|
+
function Xe(e, t = 0) {
|
|
792
776
|
let n = e.replace(/^-?[0-9.]*/, "");
|
|
793
777
|
function r(e) {
|
|
794
778
|
for (; e < 0;) e += 4;
|
|
@@ -812,51 +796,51 @@ function Qe(e, t = 0) {
|
|
|
812
796
|
}
|
|
813
797
|
return t;
|
|
814
798
|
}
|
|
815
|
-
function
|
|
799
|
+
function Ze(e, t) {
|
|
816
800
|
let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
|
|
817
801
|
for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
|
|
818
802
|
return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
|
|
819
803
|
}
|
|
820
|
-
function
|
|
804
|
+
function Qe(e) {
|
|
821
805
|
return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
|
|
822
806
|
}
|
|
823
|
-
function
|
|
824
|
-
return "data:image/svg+xml," +
|
|
807
|
+
function $e(e) {
|
|
808
|
+
return "data:image/svg+xml," + Qe(e);
|
|
825
809
|
}
|
|
826
|
-
function
|
|
827
|
-
return "url(\"" +
|
|
810
|
+
function et(e) {
|
|
811
|
+
return "url(\"" + $e(e) + "\")";
|
|
828
812
|
}
|
|
829
|
-
var
|
|
830
|
-
...
|
|
813
|
+
var tt = {
|
|
814
|
+
...ce,
|
|
831
815
|
inline: !1
|
|
832
|
-
},
|
|
816
|
+
}, nt = {
|
|
833
817
|
xmlns: "http://www.w3.org/2000/svg",
|
|
834
818
|
"xmlns:xlink": "http://www.w3.org/1999/xlink",
|
|
835
819
|
"aria-hidden": !0,
|
|
836
820
|
role: "img"
|
|
837
|
-
},
|
|
821
|
+
}, rt = { display: "inline-block" }, J = { backgroundColor: "currentColor" }, it = { backgroundColor: "transparent" }, at = {
|
|
838
822
|
Image: "var(--svg)",
|
|
839
823
|
Repeat: "no-repeat",
|
|
840
824
|
Size: "100% 100%"
|
|
841
|
-
},
|
|
842
|
-
webkitMask:
|
|
843
|
-
mask:
|
|
844
|
-
background:
|
|
825
|
+
}, ot = {
|
|
826
|
+
webkitMask: J,
|
|
827
|
+
mask: J,
|
|
828
|
+
background: it
|
|
845
829
|
};
|
|
846
|
-
for (let e in
|
|
847
|
-
let t =
|
|
848
|
-
for (let n in
|
|
830
|
+
for (let e in ot) {
|
|
831
|
+
let t = ot[e];
|
|
832
|
+
for (let n in at) t[e + n] = at[n];
|
|
849
833
|
}
|
|
850
|
-
var
|
|
834
|
+
var Y = {};
|
|
851
835
|
["horizontal", "vertical"].forEach((e) => {
|
|
852
836
|
let t = e.slice(0, 1) + "Flip";
|
|
853
|
-
|
|
837
|
+
Y[e + "-flip"] = t, Y[e.slice(0, 1) + "-flip"] = t, Y[e + "Flip"] = t;
|
|
854
838
|
});
|
|
855
|
-
function
|
|
839
|
+
function st(e) {
|
|
856
840
|
return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
|
|
857
841
|
}
|
|
858
|
-
var
|
|
859
|
-
let n =
|
|
842
|
+
var ct = (e, t) => {
|
|
843
|
+
let n = qe(tt, t), r = { ...nt }, i = t.mode || "svg", a = {}, o = t.style, s = typeof o == "object" && !(o instanceof Array) ? o : {};
|
|
860
844
|
for (let e in t) {
|
|
861
845
|
let i = t[e];
|
|
862
846
|
if (i !== void 0) switch (e) {
|
|
@@ -872,51 +856,51 @@ var ut = (e, t) => {
|
|
|
872
856
|
n[e] = i === !0 || i === "true" || i === 1;
|
|
873
857
|
break;
|
|
874
858
|
case "flip":
|
|
875
|
-
typeof i == "string" &&
|
|
859
|
+
typeof i == "string" && Ye(n, i);
|
|
876
860
|
break;
|
|
877
861
|
case "color":
|
|
878
862
|
a.color = i;
|
|
879
863
|
break;
|
|
880
864
|
case "rotate":
|
|
881
|
-
typeof i == "string" ? n[e] =
|
|
865
|
+
typeof i == "string" ? n[e] = Xe(i) : typeof i == "number" && (n[e] = i);
|
|
882
866
|
break;
|
|
883
867
|
case "ariaHidden":
|
|
884
868
|
case "aria-hidden":
|
|
885
869
|
i !== !0 && i !== "true" && delete r["aria-hidden"];
|
|
886
870
|
break;
|
|
887
871
|
default: {
|
|
888
|
-
let t =
|
|
889
|
-
t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) :
|
|
872
|
+
let t = Y[e];
|
|
873
|
+
t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) : tt[e] === void 0 && (r[e] = i);
|
|
890
874
|
}
|
|
891
875
|
}
|
|
892
876
|
}
|
|
893
|
-
let c =
|
|
877
|
+
let c = ge(e, n), u = c.attributes;
|
|
894
878
|
if (n.inline && (a.verticalAlign = "-0.125em"), i === "svg") return r.style = {
|
|
895
879
|
...a,
|
|
896
880
|
...s
|
|
897
|
-
}, Object.assign(r, u), r.innerHTML =
|
|
898
|
-
let { body: d, width: f, height: p } = e, m = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), h =
|
|
881
|
+
}, Object.assign(r, u), r.innerHTML = be(c.body), l("svg", r);
|
|
882
|
+
let { body: d, width: f, height: p } = e, m = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = Ze(d, {
|
|
899
883
|
...u,
|
|
900
884
|
width: f + "",
|
|
901
885
|
height: p + ""
|
|
902
886
|
});
|
|
903
887
|
return r.style = {
|
|
904
888
|
...a,
|
|
905
|
-
"--svg":
|
|
906
|
-
width:
|
|
907
|
-
height:
|
|
908
|
-
...
|
|
909
|
-
...m ?
|
|
889
|
+
"--svg": et(h),
|
|
890
|
+
width: st(u.width),
|
|
891
|
+
height: st(u.height),
|
|
892
|
+
...rt,
|
|
893
|
+
...m ? J : it,
|
|
910
894
|
...s
|
|
911
895
|
}, l("span", r);
|
|
912
896
|
};
|
|
913
|
-
if (
|
|
897
|
+
if (R(!0), xe("", Oe), typeof document < "u" && typeof window < "u") {
|
|
914
898
|
let e = window;
|
|
915
899
|
if (e.IconifyPreload !== void 0) {
|
|
916
900
|
let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
|
|
917
901
|
typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
|
|
918
902
|
try {
|
|
919
|
-
(typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !
|
|
903
|
+
(typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !oe(e)) && console.error(n);
|
|
920
904
|
} catch {
|
|
921
905
|
console.error(n);
|
|
922
906
|
}
|
|
@@ -929,17 +913,17 @@ if (ae(!0), Ce("", Ae), typeof document < "u" && typeof window < "u") {
|
|
|
929
913
|
try {
|
|
930
914
|
let r = t[e];
|
|
931
915
|
if (typeof r != "object" || !r || r.resources === void 0) continue;
|
|
932
|
-
|
|
916
|
+
Se(e, r) || console.error(n);
|
|
933
917
|
} catch {
|
|
934
918
|
console.error(n);
|
|
935
919
|
}
|
|
936
920
|
}
|
|
937
921
|
}
|
|
938
922
|
}
|
|
939
|
-
var
|
|
940
|
-
...
|
|
923
|
+
var lt = {
|
|
924
|
+
...D,
|
|
941
925
|
body: ""
|
|
942
|
-
},
|
|
926
|
+
}, ut = s((e, { emit: t }) => {
|
|
943
927
|
let n = _(null);
|
|
944
928
|
function r() {
|
|
945
929
|
n.value &&= (n.value.abort?.(), null);
|
|
@@ -949,13 +933,13 @@ var dt = {
|
|
|
949
933
|
let i = e.icon;
|
|
950
934
|
if (typeof i == "object" && i && typeof i.body == "string") return a.value = "", { data: i };
|
|
951
935
|
let o;
|
|
952
|
-
if (typeof i != "string" || (o =
|
|
953
|
-
let s =
|
|
936
|
+
if (typeof i != "string" || (o = S(i, !1, !0)) === null) return null;
|
|
937
|
+
let s = ie(o);
|
|
954
938
|
if (!s) {
|
|
955
939
|
let e = n.value;
|
|
956
940
|
return (!e || e.name !== i) && (s === null ? n.value = { name: i } : n.value = {
|
|
957
941
|
name: i,
|
|
958
|
-
abort:
|
|
942
|
+
abort: Ke([o], c)
|
|
959
943
|
}), null;
|
|
960
944
|
}
|
|
961
945
|
r(), a.value !== i && (a.value = i, f(() => {
|
|
@@ -981,13 +965,13 @@ var dt = {
|
|
|
981
965
|
i.value = !0, c();
|
|
982
966
|
}), y(() => e.icon, c), h(r), () => {
|
|
983
967
|
let t = o.value;
|
|
984
|
-
if (!t) return
|
|
968
|
+
if (!t) return ct(lt, e);
|
|
985
969
|
let n = e;
|
|
986
970
|
return t.classes && (n = {
|
|
987
971
|
...e,
|
|
988
972
|
class: t.classes.join(" ")
|
|
989
|
-
}),
|
|
990
|
-
...
|
|
973
|
+
}), ct({
|
|
974
|
+
...D,
|
|
991
975
|
...t.data
|
|
992
976
|
}, n);
|
|
993
977
|
};
|
|
@@ -1013,7 +997,409 @@ var dt = {
|
|
|
1013
997
|
"title"
|
|
1014
998
|
],
|
|
1015
999
|
emits: ["load"]
|
|
1016
|
-
}),
|
|
1000
|
+
}), dt = {
|
|
1001
|
+
prefix: "mdi",
|
|
1002
|
+
icons: {
|
|
1003
|
+
"alert-circle": {
|
|
1004
|
+
width: 24,
|
|
1005
|
+
height: 24,
|
|
1006
|
+
body: "<path fill=\"currentColor\" d=\"M13 13h-2V7h2m0 10h-2v-2h2M12 2A10 10 0 0 0 2 12a10 10 0 0 0 10 10a10 10 0 0 0 10-10A10 10 0 0 0 12 2Z\"/>"
|
|
1007
|
+
},
|
|
1008
|
+
"arrow-up": {
|
|
1009
|
+
width: 24,
|
|
1010
|
+
height: 24,
|
|
1011
|
+
body: "<path fill=\"currentColor\" d=\"M13 20h-2V8l-5.5 5.5l-1.42-1.42L12 4.16l7.92 7.92l-1.42 1.42L13 8v12Z\"/>"
|
|
1012
|
+
},
|
|
1013
|
+
"calendar-outline": {
|
|
1014
|
+
width: 24,
|
|
1015
|
+
height: 24,
|
|
1016
|
+
body: "<path fill=\"currentColor\" d=\"M12 12h5v5h-5v-5m7-9h-1V1h-2v2H8V1H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 2v2H5V5h14M5 19V9h14v10H5Z\"/>"
|
|
1017
|
+
},
|
|
1018
|
+
check: {
|
|
1019
|
+
width: 24,
|
|
1020
|
+
height: 24,
|
|
1021
|
+
body: "<path fill=\"currentColor\" d=\"M21 7L9 19l-5.5-5.5l1.41-1.41L9 16.17L19.59 5.59L21 7Z\"/>"
|
|
1022
|
+
},
|
|
1023
|
+
"check-circle": {
|
|
1024
|
+
width: 24,
|
|
1025
|
+
height: 24,
|
|
1026
|
+
body: "<path fill=\"currentColor\" d=\"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10s10-4.5 10-10S17.5 2 12 2m-2 15l-5-5l1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9Z\"/>"
|
|
1027
|
+
},
|
|
1028
|
+
"chevron-right": {
|
|
1029
|
+
width: 24,
|
|
1030
|
+
height: 24,
|
|
1031
|
+
body: "<path fill=\"currentColor\" d=\"M8.59 16.58L13.17 12L8.59 7.41L10 6l6 6l-6 6l-1.41-1.42Z\"/>"
|
|
1032
|
+
},
|
|
1033
|
+
"clock-outline": {
|
|
1034
|
+
width: 24,
|
|
1035
|
+
height: 24,
|
|
1036
|
+
body: "<path fill=\"currentColor\" d=\"M12 20a8 8 0 0 0 8-8a8 8 0 0 0-8-8a8 8 0 0 0-8 8a8 8 0 0 0 8 8m0-18a10 10 0 0 1 10 10a10 10 0 0 1-10 10C6.47 22 2 17.5 2 12A10 10 0 0 1 12 2m.5 5v5.25l4.5 2.67l-.75 1.23L11 13V7h1.5Z\"/>"
|
|
1037
|
+
},
|
|
1038
|
+
close: {
|
|
1039
|
+
width: 24,
|
|
1040
|
+
height: 24,
|
|
1041
|
+
body: "<path fill=\"currentColor\" d=\"M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41Z\"/>"
|
|
1042
|
+
},
|
|
1043
|
+
"close-circle": {
|
|
1044
|
+
width: 24,
|
|
1045
|
+
height: 24,
|
|
1046
|
+
body: "<path fill=\"currentColor\" d=\"M12 2c5.53 0 10 4.47 10 10s-4.47 10-10 10S2 17.53 2 12S6.47 2 12 2m3.59 5L12 10.59L8.41 7L7 8.41L10.59 12L7 15.59L8.41 17L12 13.41L15.59 17L17 15.59L13.41 12L17 8.41L15.59 7Z\"/>"
|
|
1047
|
+
},
|
|
1048
|
+
"content-copy": {
|
|
1049
|
+
width: 24,
|
|
1050
|
+
height: 24,
|
|
1051
|
+
body: "<path fill=\"currentColor\" d=\"M19 21H8V7h11m0-2H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2m-3-4H4a2 2 0 0 0-2 2v14h2V3h12V1Z\"/>"
|
|
1052
|
+
},
|
|
1053
|
+
loading: {
|
|
1054
|
+
width: 24,
|
|
1055
|
+
height: 24,
|
|
1056
|
+
body: "<path fill=\"currentColor\" d=\"M12 4V2A10 10 0 0 0 2 12h2a8 8 0 0 1 8-8Z\"/>"
|
|
1057
|
+
},
|
|
1058
|
+
magnify: {
|
|
1059
|
+
width: 24,
|
|
1060
|
+
height: 24,
|
|
1061
|
+
body: "<path fill=\"currentColor\" d=\"M9.5 3A6.5 6.5 0 0 1 16 9.5c0 1.61-.59 3.09-1.56 4.23l.27.27h.79l5 5l-1.5 1.5l-5-5v-.79l-.27-.27A6.516 6.516 0 0 1 9.5 16A6.5 6.5 0 0 1 3 9.5A6.5 6.5 0 0 1 9.5 3m0 2C7 5 5 7 5 9.5S7 14 9.5 14S14 12 14 9.5S12 5 9.5 5Z\"/>"
|
|
1062
|
+
},
|
|
1063
|
+
"menu-down": {
|
|
1064
|
+
width: 24,
|
|
1065
|
+
height: 24,
|
|
1066
|
+
body: "<path fill=\"currentColor\" d=\"m7 10l5 5l5-5H7Z\"/>"
|
|
1067
|
+
},
|
|
1068
|
+
"menu-right": {
|
|
1069
|
+
width: 24,
|
|
1070
|
+
height: 24,
|
|
1071
|
+
body: "<path fill=\"currentColor\" d=\"m10 17l5-5l-5-5v10Z\"/>"
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
}, ft = !1;
|
|
1075
|
+
function pt() {
|
|
1076
|
+
ft ||= (oe(dt), !0);
|
|
1077
|
+
}
|
|
1078
|
+
//#endregion
|
|
1079
|
+
//#region ../icons/dist/install.js
|
|
1080
|
+
pt();
|
|
1081
|
+
//#endregion
|
|
1082
|
+
//#region ../ccui/ui/shared/hooks/use-icon.ts
|
|
1083
|
+
function mt(e) {
|
|
1084
|
+
return e.includes(":");
|
|
1085
|
+
}
|
|
1086
|
+
function ht(e) {
|
|
1087
|
+
return e ? typeof e == "string" ? mt(e) ? l(ut, { icon: e }) : l("i", { class: e }) : e : null;
|
|
1088
|
+
}
|
|
1089
|
+
//#endregion
|
|
1090
|
+
//#region ../ccui/ui/shared/hooks/use-namespace.ts
|
|
1091
|
+
function X(e, t, n) {
|
|
1092
|
+
let r = e;
|
|
1093
|
+
return t && (r += `__${t}`), n && (r += `--${n}`), r;
|
|
1094
|
+
}
|
|
1095
|
+
function gt(e, t = !1) {
|
|
1096
|
+
let n = t ? `.ccui-${e}` : `ccui-${e}`;
|
|
1097
|
+
return {
|
|
1098
|
+
b: () => X(n),
|
|
1099
|
+
e: (e) => e ? X(n, e) : "",
|
|
1100
|
+
m: (e) => e ? X(n, "", e) : "",
|
|
1101
|
+
em: (e, t) => e && t ? X(n, e, t) : "",
|
|
1102
|
+
is: (e) => `is-${e}`
|
|
1103
|
+
};
|
|
1104
|
+
}
|
|
1105
|
+
(/* @__PURE__ */ b(((e, t) => {
|
|
1106
|
+
(function(n, r) {
|
|
1107
|
+
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
1108
|
+
})(e, (function() {
|
|
1109
|
+
var e = 1e3, t = 6e4, n = 36e5, r = "millisecond", i = "second", a = "minute", o = "hour", s = "day", c = "week", l = "month", u = "quarter", d = "year", f = "date", p = "Invalid Date", m = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, h = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, g = {
|
|
1110
|
+
name: "en",
|
|
1111
|
+
weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),
|
|
1112
|
+
months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"),
|
|
1113
|
+
ordinal: function(e) {
|
|
1114
|
+
var t = [
|
|
1115
|
+
"th",
|
|
1116
|
+
"st",
|
|
1117
|
+
"nd",
|
|
1118
|
+
"rd"
|
|
1119
|
+
], n = e % 100;
|
|
1120
|
+
return "[" + e + (t[(n - 20) % 10] || t[n] || t[0]) + "]";
|
|
1121
|
+
}
|
|
1122
|
+
}, _ = function(e, t, n) {
|
|
1123
|
+
var r = String(e);
|
|
1124
|
+
return !r || r.length >= t ? e : "" + Array(t + 1 - r.length).join(n) + e;
|
|
1125
|
+
}, v = {
|
|
1126
|
+
s: _,
|
|
1127
|
+
z: function(e) {
|
|
1128
|
+
var t = -e.utcOffset(), n = Math.abs(t), r = Math.floor(n / 60), i = n % 60;
|
|
1129
|
+
return (t <= 0 ? "+" : "-") + _(r, 2, "0") + ":" + _(i, 2, "0");
|
|
1130
|
+
},
|
|
1131
|
+
m: function e(t, n) {
|
|
1132
|
+
if (t.date() < n.date()) return -e(n, t);
|
|
1133
|
+
var r = 12 * (n.year() - t.year()) + (n.month() - t.month()), i = t.clone().add(r, l), a = n - i < 0, o = t.clone().add(r + (a ? -1 : 1), l);
|
|
1134
|
+
return +(-(r + (n - i) / (a ? i - o : o - i)) || 0);
|
|
1135
|
+
},
|
|
1136
|
+
a: function(e) {
|
|
1137
|
+
return e < 0 ? Math.ceil(e) || 0 : Math.floor(e);
|
|
1138
|
+
},
|
|
1139
|
+
p: function(e) {
|
|
1140
|
+
return {
|
|
1141
|
+
M: l,
|
|
1142
|
+
y: d,
|
|
1143
|
+
w: c,
|
|
1144
|
+
d: s,
|
|
1145
|
+
D: f,
|
|
1146
|
+
h: o,
|
|
1147
|
+
m: a,
|
|
1148
|
+
s: i,
|
|
1149
|
+
ms: r,
|
|
1150
|
+
Q: u
|
|
1151
|
+
}[e] || String(e || "").toLowerCase().replace(/s$/, "");
|
|
1152
|
+
},
|
|
1153
|
+
u: function(e) {
|
|
1154
|
+
return e === void 0;
|
|
1155
|
+
}
|
|
1156
|
+
}, y = "en", b = {};
|
|
1157
|
+
b[y] = g;
|
|
1158
|
+
var x = "$isDayjsObject", S = function(e) {
|
|
1159
|
+
return e instanceof E || !(!e || !e[x]);
|
|
1160
|
+
}, C = function e(t, n, r) {
|
|
1161
|
+
var i;
|
|
1162
|
+
if (!t) return y;
|
|
1163
|
+
if (typeof t == "string") {
|
|
1164
|
+
var a = t.toLowerCase();
|
|
1165
|
+
b[a] && (i = a), n && (b[a] = n, i = a);
|
|
1166
|
+
var o = t.split("-");
|
|
1167
|
+
if (!i && o.length > 1) return e(o[0]);
|
|
1168
|
+
} else {
|
|
1169
|
+
var s = t.name;
|
|
1170
|
+
b[s] = t, i = s;
|
|
1171
|
+
}
|
|
1172
|
+
return !r && i && (y = i), i || !r && y;
|
|
1173
|
+
}, w = function(e, t) {
|
|
1174
|
+
if (S(e)) return e.clone();
|
|
1175
|
+
var n = typeof t == "object" ? t : {};
|
|
1176
|
+
return n.date = e, n.args = arguments, new E(n);
|
|
1177
|
+
}, T = v;
|
|
1178
|
+
T.l = C, T.i = S, T.w = function(e, t) {
|
|
1179
|
+
return w(e, {
|
|
1180
|
+
locale: t.$L,
|
|
1181
|
+
utc: t.$u,
|
|
1182
|
+
x: t.$x,
|
|
1183
|
+
$offset: t.$offset
|
|
1184
|
+
});
|
|
1185
|
+
};
|
|
1186
|
+
var E = function() {
|
|
1187
|
+
function g(e) {
|
|
1188
|
+
this.$L = C(e.locale, null, !0), this.parse(e), this.$x = this.$x || e.x || {}, this[x] = !0;
|
|
1189
|
+
}
|
|
1190
|
+
var _ = g.prototype;
|
|
1191
|
+
return _.parse = function(e) {
|
|
1192
|
+
this.$d = function(e) {
|
|
1193
|
+
var t = e.date, n = e.utc;
|
|
1194
|
+
if (t === null) return /* @__PURE__ */ new Date(NaN);
|
|
1195
|
+
if (T.u(t)) return /* @__PURE__ */ new Date();
|
|
1196
|
+
if (t instanceof Date) return new Date(t);
|
|
1197
|
+
if (typeof t == "string" && !/Z$/i.test(t)) {
|
|
1198
|
+
var r = t.match(m);
|
|
1199
|
+
if (r) {
|
|
1200
|
+
var i = r[2] - 1 || 0, a = (r[7] || "0").substring(0, 3);
|
|
1201
|
+
return n ? new Date(Date.UTC(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a)) : new Date(r[1], i, r[3] || 1, r[4] || 0, r[5] || 0, r[6] || 0, a);
|
|
1202
|
+
}
|
|
1203
|
+
}
|
|
1204
|
+
return new Date(t);
|
|
1205
|
+
}(e), this.init();
|
|
1206
|
+
}, _.init = function() {
|
|
1207
|
+
var e = this.$d;
|
|
1208
|
+
this.$y = e.getFullYear(), this.$M = e.getMonth(), this.$D = e.getDate(), this.$W = e.getDay(), this.$H = e.getHours(), this.$m = e.getMinutes(), this.$s = e.getSeconds(), this.$ms = e.getMilliseconds();
|
|
1209
|
+
}, _.$utils = function() {
|
|
1210
|
+
return T;
|
|
1211
|
+
}, _.isValid = function() {
|
|
1212
|
+
return this.$d.toString() !== p;
|
|
1213
|
+
}, _.isSame = function(e, t) {
|
|
1214
|
+
var n = w(e);
|
|
1215
|
+
return this.startOf(t) <= n && n <= this.endOf(t);
|
|
1216
|
+
}, _.isAfter = function(e, t) {
|
|
1217
|
+
return w(e) < this.startOf(t);
|
|
1218
|
+
}, _.isBefore = function(e, t) {
|
|
1219
|
+
return this.endOf(t) < w(e);
|
|
1220
|
+
}, _.$g = function(e, t, n) {
|
|
1221
|
+
return T.u(e) ? this[t] : this.set(n, e);
|
|
1222
|
+
}, _.unix = function() {
|
|
1223
|
+
return Math.floor(this.valueOf() / 1e3);
|
|
1224
|
+
}, _.valueOf = function() {
|
|
1225
|
+
return this.$d.getTime();
|
|
1226
|
+
}, _.startOf = function(e, t) {
|
|
1227
|
+
var n = this, r = !!T.u(t) || t, u = T.p(e), p = function(e, t) {
|
|
1228
|
+
var i = T.w(n.$u ? Date.UTC(n.$y, t, e) : new Date(n.$y, t, e), n);
|
|
1229
|
+
return r ? i : i.endOf(s);
|
|
1230
|
+
}, m = function(e, t) {
|
|
1231
|
+
return T.w(n.toDate()[e].apply(n.toDate("s"), (r ? [
|
|
1232
|
+
0,
|
|
1233
|
+
0,
|
|
1234
|
+
0,
|
|
1235
|
+
0
|
|
1236
|
+
] : [
|
|
1237
|
+
23,
|
|
1238
|
+
59,
|
|
1239
|
+
59,
|
|
1240
|
+
999
|
|
1241
|
+
]).slice(t)), n);
|
|
1242
|
+
}, h = this.$W, g = this.$M, _ = this.$D, v = "set" + (this.$u ? "UTC" : "");
|
|
1243
|
+
switch (u) {
|
|
1244
|
+
case d: return r ? p(1, 0) : p(31, 11);
|
|
1245
|
+
case l: return r ? p(1, g) : p(0, g + 1);
|
|
1246
|
+
case c:
|
|
1247
|
+
var y = this.$locale().weekStart || 0, b = (h < y ? h + 7 : h) - y;
|
|
1248
|
+
return p(r ? _ - b : _ + (6 - b), g);
|
|
1249
|
+
case s:
|
|
1250
|
+
case f: return m(v + "Hours", 0);
|
|
1251
|
+
case o: return m(v + "Minutes", 1);
|
|
1252
|
+
case a: return m(v + "Seconds", 2);
|
|
1253
|
+
case i: return m(v + "Milliseconds", 3);
|
|
1254
|
+
default: return this.clone();
|
|
1255
|
+
}
|
|
1256
|
+
}, _.endOf = function(e) {
|
|
1257
|
+
return this.startOf(e, !1);
|
|
1258
|
+
}, _.$set = function(e, t) {
|
|
1259
|
+
var n, c = T.p(e), u = "set" + (this.$u ? "UTC" : ""), p = (n = {}, n[s] = u + "Date", n[f] = u + "Date", n[l] = u + "Month", n[d] = u + "FullYear", n[o] = u + "Hours", n[a] = u + "Minutes", n[i] = u + "Seconds", n[r] = u + "Milliseconds", n)[c], m = c === s ? this.$D + (t - this.$W) : t;
|
|
1260
|
+
if (c === l || c === d) {
|
|
1261
|
+
var h = this.clone().set(f, 1);
|
|
1262
|
+
h.$d[p](m), h.init(), this.$d = h.set(f, Math.min(this.$D, h.daysInMonth())).$d;
|
|
1263
|
+
} else p && this.$d[p](m);
|
|
1264
|
+
return this.init(), this;
|
|
1265
|
+
}, _.set = function(e, t) {
|
|
1266
|
+
return this.clone().$set(e, t);
|
|
1267
|
+
}, _.get = function(e) {
|
|
1268
|
+
return this[T.p(e)]();
|
|
1269
|
+
}, _.add = function(r, u) {
|
|
1270
|
+
var f, p = this;
|
|
1271
|
+
r = Number(r);
|
|
1272
|
+
var m = T.p(u), h = function(e) {
|
|
1273
|
+
var t = w(p);
|
|
1274
|
+
return T.w(t.date(t.date() + Math.round(e * r)), p);
|
|
1275
|
+
};
|
|
1276
|
+
if (m === l) return this.set(l, this.$M + r);
|
|
1277
|
+
if (m === d) return this.set(d, this.$y + r);
|
|
1278
|
+
if (m === s) return h(1);
|
|
1279
|
+
if (m === c) return h(7);
|
|
1280
|
+
var g = (f = {}, f[a] = t, f[o] = n, f[i] = e, f)[m] || 1, _ = this.$d.getTime() + r * g;
|
|
1281
|
+
return T.w(_, this);
|
|
1282
|
+
}, _.subtract = function(e, t) {
|
|
1283
|
+
return this.add(-1 * e, t);
|
|
1284
|
+
}, _.format = function(e) {
|
|
1285
|
+
var t = this, n = this.$locale();
|
|
1286
|
+
if (!this.isValid()) return n.invalidDate || p;
|
|
1287
|
+
var r = e || "YYYY-MM-DDTHH:mm:ssZ", i = T.z(this), a = this.$H, o = this.$m, s = this.$M, c = n.weekdays, l = n.months, u = n.meridiem, d = function(e, n, i, a) {
|
|
1288
|
+
return e && (e[n] || e(t, r)) || i[n].slice(0, a);
|
|
1289
|
+
}, f = function(e) {
|
|
1290
|
+
return T.s(a % 12 || 12, e, "0");
|
|
1291
|
+
}, m = u || function(e, t, n) {
|
|
1292
|
+
var r = e < 12 ? "AM" : "PM";
|
|
1293
|
+
return n ? r.toLowerCase() : r;
|
|
1294
|
+
};
|
|
1295
|
+
return r.replace(h, (function(e, r) {
|
|
1296
|
+
return r || function(e) {
|
|
1297
|
+
switch (e) {
|
|
1298
|
+
case "YY": return String(t.$y).slice(-2);
|
|
1299
|
+
case "YYYY": return T.s(t.$y, 4, "0");
|
|
1300
|
+
case "M": return s + 1;
|
|
1301
|
+
case "MM": return T.s(s + 1, 2, "0");
|
|
1302
|
+
case "MMM": return d(n.monthsShort, s, l, 3);
|
|
1303
|
+
case "MMMM": return d(l, s);
|
|
1304
|
+
case "D": return t.$D;
|
|
1305
|
+
case "DD": return T.s(t.$D, 2, "0");
|
|
1306
|
+
case "d": return String(t.$W);
|
|
1307
|
+
case "dd": return d(n.weekdaysMin, t.$W, c, 2);
|
|
1308
|
+
case "ddd": return d(n.weekdaysShort, t.$W, c, 3);
|
|
1309
|
+
case "dddd": return c[t.$W];
|
|
1310
|
+
case "H": return String(a);
|
|
1311
|
+
case "HH": return T.s(a, 2, "0");
|
|
1312
|
+
case "h": return f(1);
|
|
1313
|
+
case "hh": return f(2);
|
|
1314
|
+
case "a": return m(a, o, !0);
|
|
1315
|
+
case "A": return m(a, o, !1);
|
|
1316
|
+
case "m": return String(o);
|
|
1317
|
+
case "mm": return T.s(o, 2, "0");
|
|
1318
|
+
case "s": return String(t.$s);
|
|
1319
|
+
case "ss": return T.s(t.$s, 2, "0");
|
|
1320
|
+
case "SSS": return T.s(t.$ms, 3, "0");
|
|
1321
|
+
case "Z": return i;
|
|
1322
|
+
}
|
|
1323
|
+
return null;
|
|
1324
|
+
}(e) || i.replace(":", "");
|
|
1325
|
+
}));
|
|
1326
|
+
}, _.utcOffset = function() {
|
|
1327
|
+
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
1328
|
+
}, _.diff = function(r, f, p) {
|
|
1329
|
+
var m, h = this, g = T.p(f), _ = w(r), v = (_.utcOffset() - this.utcOffset()) * t, y = this - _, b = function() {
|
|
1330
|
+
return T.m(h, _);
|
|
1331
|
+
};
|
|
1332
|
+
switch (g) {
|
|
1333
|
+
case d:
|
|
1334
|
+
m = b() / 12;
|
|
1335
|
+
break;
|
|
1336
|
+
case l:
|
|
1337
|
+
m = b();
|
|
1338
|
+
break;
|
|
1339
|
+
case u:
|
|
1340
|
+
m = b() / 3;
|
|
1341
|
+
break;
|
|
1342
|
+
case c:
|
|
1343
|
+
m = (y - v) / 6048e5;
|
|
1344
|
+
break;
|
|
1345
|
+
case s:
|
|
1346
|
+
m = (y - v) / 864e5;
|
|
1347
|
+
break;
|
|
1348
|
+
case o:
|
|
1349
|
+
m = y / n;
|
|
1350
|
+
break;
|
|
1351
|
+
case a:
|
|
1352
|
+
m = y / t;
|
|
1353
|
+
break;
|
|
1354
|
+
case i:
|
|
1355
|
+
m = y / e;
|
|
1356
|
+
break;
|
|
1357
|
+
default: m = y;
|
|
1358
|
+
}
|
|
1359
|
+
return p ? m : T.a(m);
|
|
1360
|
+
}, _.daysInMonth = function() {
|
|
1361
|
+
return this.endOf(l).$D;
|
|
1362
|
+
}, _.$locale = function() {
|
|
1363
|
+
return b[this.$L];
|
|
1364
|
+
}, _.locale = function(e, t) {
|
|
1365
|
+
if (!e) return this.$L;
|
|
1366
|
+
var n = this.clone(), r = C(e, t, !0);
|
|
1367
|
+
return r && (n.$L = r), n;
|
|
1368
|
+
}, _.clone = function() {
|
|
1369
|
+
return T.w(this.$d, this);
|
|
1370
|
+
}, _.toDate = function() {
|
|
1371
|
+
return new Date(this.valueOf());
|
|
1372
|
+
}, _.toJSON = function() {
|
|
1373
|
+
return this.isValid() ? this.toISOString() : null;
|
|
1374
|
+
}, _.toISOString = function() {
|
|
1375
|
+
return this.$d.toISOString();
|
|
1376
|
+
}, _.toString = function() {
|
|
1377
|
+
return this.$d.toUTCString();
|
|
1378
|
+
}, g;
|
|
1379
|
+
}(), D = E.prototype;
|
|
1380
|
+
return w.prototype = D, [
|
|
1381
|
+
["$ms", r],
|
|
1382
|
+
["$s", i],
|
|
1383
|
+
["$m", a],
|
|
1384
|
+
["$H", o],
|
|
1385
|
+
["$W", s],
|
|
1386
|
+
["$M", l],
|
|
1387
|
+
["$y", d],
|
|
1388
|
+
["$D", f]
|
|
1389
|
+
].forEach((function(e) {
|
|
1390
|
+
D[e[1]] = function(t) {
|
|
1391
|
+
return this.$g(t, e[0], e[1]);
|
|
1392
|
+
};
|
|
1393
|
+
})), w.extend = function(e, t) {
|
|
1394
|
+
return e.$i ||= (e(t, E, w), !0), w;
|
|
1395
|
+
}, w.locale = C, w.isDayjs = S, w.unix = function(e) {
|
|
1396
|
+
return w(1e3 * e);
|
|
1397
|
+
}, w.en = b[y], w.Ls = b, w.p = {}, w;
|
|
1398
|
+
}));
|
|
1399
|
+
})))();
|
|
1400
|
+
//#endregion
|
|
1401
|
+
//#region ../ccui/ui/locale/zh-CN.ts
|
|
1402
|
+
var _t = {
|
|
1017
1403
|
locale: "zh-CN",
|
|
1018
1404
|
Modal: {
|
|
1019
1405
|
okText: "确 定",
|
|
@@ -1028,7 +1414,10 @@ var dt = {
|
|
|
1028
1414
|
AutoComplete: { notFoundContent: "暂无数据" },
|
|
1029
1415
|
Mentions: { notFoundContent: "暂无数据" },
|
|
1030
1416
|
Cascader: { notFoundContent: "暂无数据" },
|
|
1031
|
-
TreeSelect: {
|
|
1417
|
+
TreeSelect: {
|
|
1418
|
+
notFoundContent: "暂无数据",
|
|
1419
|
+
searchPlaceholder: "搜索"
|
|
1420
|
+
},
|
|
1032
1421
|
Select: { notFoundContent: "暂无数据" },
|
|
1033
1422
|
Pagination: {
|
|
1034
1423
|
itemsPerPage: "条/页",
|
|
@@ -1036,7 +1425,8 @@ var dt = {
|
|
|
1036
1425
|
page: "页",
|
|
1037
1426
|
prevPage: "上一页",
|
|
1038
1427
|
nextPage: "下一页",
|
|
1039
|
-
total: "共 {total} 条"
|
|
1428
|
+
total: "共 {total} 条",
|
|
1429
|
+
pagination: "分页"
|
|
1040
1430
|
},
|
|
1041
1431
|
Image: {
|
|
1042
1432
|
loading: "加载中",
|
|
@@ -1085,41 +1475,58 @@ var dt = {
|
|
|
1085
1475
|
nextYearLabel: "后一年",
|
|
1086
1476
|
nextMonthLabel: "下个月",
|
|
1087
1477
|
clearLabel: "清除"
|
|
1478
|
+
},
|
|
1479
|
+
Calendar: {
|
|
1480
|
+
weekdaysShort: [
|
|
1481
|
+
"日",
|
|
1482
|
+
"一",
|
|
1483
|
+
"二",
|
|
1484
|
+
"三",
|
|
1485
|
+
"四",
|
|
1486
|
+
"五",
|
|
1487
|
+
"六"
|
|
1488
|
+
],
|
|
1489
|
+
prevMonthLabel: "上个月",
|
|
1490
|
+
nextMonthLabel: "下个月",
|
|
1491
|
+
todayLabel: "今天",
|
|
1492
|
+
monthFormat: "YYYY 年 M 月"
|
|
1088
1493
|
}
|
|
1089
|
-
},
|
|
1494
|
+
}, vt = Symbol("ccui-config");
|
|
1090
1495
|
//#endregion
|
|
1091
1496
|
//#region ../ccui/ui/config-provider/src/config-provider.tsx
|
|
1092
|
-
function
|
|
1093
|
-
return u(
|
|
1497
|
+
function yt() {
|
|
1498
|
+
return u(vt, {
|
|
1094
1499
|
prefixCls: "ccui",
|
|
1095
1500
|
componentSize: "middle",
|
|
1096
|
-
locale:
|
|
1501
|
+
locale: _t,
|
|
1097
1502
|
direction: "ltr",
|
|
1098
1503
|
theme: void 0,
|
|
1099
1504
|
iconPrefixCls: "ccui-icon"
|
|
1100
1505
|
});
|
|
1101
1506
|
}
|
|
1102
1507
|
//#endregion
|
|
1103
|
-
//#region ../ccui/ui/shared/
|
|
1104
|
-
var
|
|
1105
|
-
function
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1508
|
+
//#region ../ccui/ui/shared/utils/deprecated.ts
|
|
1509
|
+
var bt = /* @__PURE__ */ new Set();
|
|
1510
|
+
function xt() {
|
|
1511
|
+
return globalThis.process?.env?.NODE_ENV !== "production";
|
|
1512
|
+
}
|
|
1513
|
+
function St(e, t, n) {
|
|
1514
|
+
if (!xt()) return;
|
|
1515
|
+
let r = n ? `${n}.${e}` : e;
|
|
1516
|
+
if (bt.has(r) || (bt.add(r), typeof console > "u")) return;
|
|
1517
|
+
let i = n ? `[ccui][${n}]` : "[ccui]", a = t ? `,请改用 ${t}` : "";
|
|
1518
|
+
console.warn(`${i} ${e} 已 deprecated${a}。`);
|
|
1519
|
+
}
|
|
1520
|
+
function Ct(e, t, n) {
|
|
1110
1521
|
return e ? Object.prototype.hasOwnProperty.call(e, t) || Object.prototype.hasOwnProperty.call(e, n) : !1;
|
|
1111
1522
|
}
|
|
1112
1523
|
//#endregion
|
|
1113
1524
|
//#region ../ccui/ui/modal/src/modal-types.ts
|
|
1114
|
-
var
|
|
1525
|
+
var wt = {
|
|
1115
1526
|
visible: {
|
|
1116
1527
|
type: Boolean,
|
|
1117
1528
|
default: !1
|
|
1118
1529
|
},
|
|
1119
|
-
open: {
|
|
1120
|
-
type: Boolean,
|
|
1121
|
-
default: void 0
|
|
1122
|
-
},
|
|
1123
1530
|
title: {
|
|
1124
1531
|
type: String,
|
|
1125
1532
|
default: ""
|
|
@@ -1140,10 +1547,6 @@ var _t = {
|
|
|
1140
1547
|
type: Boolean,
|
|
1141
1548
|
default: !0
|
|
1142
1549
|
},
|
|
1143
|
-
keyboard: {
|
|
1144
|
-
type: Boolean,
|
|
1145
|
-
default: void 0
|
|
1146
|
-
},
|
|
1147
1550
|
centered: {
|
|
1148
1551
|
type: Boolean,
|
|
1149
1552
|
default: !1
|
|
@@ -1200,10 +1603,6 @@ var _t = {
|
|
|
1200
1603
|
type: Boolean,
|
|
1201
1604
|
default: !0
|
|
1202
1605
|
},
|
|
1203
|
-
getContainer: {
|
|
1204
|
-
type: Function,
|
|
1205
|
-
default: void 0
|
|
1206
|
-
},
|
|
1207
1606
|
wrapClassName: {
|
|
1208
1607
|
type: String,
|
|
1209
1608
|
default: ""
|
|
@@ -1231,21 +1630,20 @@ var _t = {
|
|
|
1231
1630
|
};
|
|
1232
1631
|
//#endregion
|
|
1233
1632
|
//#region ../ccui/ui/modal/src/modal.tsx
|
|
1234
|
-
function
|
|
1633
|
+
function Tt(e) {
|
|
1235
1634
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !d(e);
|
|
1236
1635
|
}
|
|
1237
|
-
function
|
|
1636
|
+
function Et(e) {
|
|
1238
1637
|
return e.includes(":");
|
|
1239
1638
|
}
|
|
1240
|
-
function
|
|
1639
|
+
function Dt(e) {
|
|
1241
1640
|
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
1242
1641
|
}
|
|
1243
|
-
var Z = /* @__PURE__ */ s({
|
|
1642
|
+
var Ot = 0, Z = /* @__PURE__ */ s({
|
|
1244
1643
|
name: "CModal",
|
|
1245
|
-
props:
|
|
1644
|
+
props: wt,
|
|
1246
1645
|
emits: [
|
|
1247
1646
|
"update:visible",
|
|
1248
|
-
"update:open",
|
|
1249
1647
|
"ok",
|
|
1250
1648
|
"cancel",
|
|
1251
1649
|
"close",
|
|
@@ -1255,65 +1653,63 @@ var Z = /* @__PURE__ */ s({
|
|
|
1255
1653
|
"after-open-change"
|
|
1256
1654
|
],
|
|
1257
1655
|
setup(i, { emit: s, slots: l }) {
|
|
1258
|
-
let u =
|
|
1259
|
-
|
|
1260
|
-
let
|
|
1656
|
+
let u = gt("modal"), d = yt(), f = ++Ot, m = `${u.b()}-title-${f}`, h = `${u.b()}-body-${f}`, g = c()?.vnode.props;
|
|
1657
|
+
Ct(g, "okLoading", "ok-loading") && St("okLoading", "confirmLoading", "Modal"), Ct(g, "hideFooter", "hide-footer") && St("hideFooter", "footer={null}", "Modal");
|
|
1658
|
+
let v = r(() => i.visible), b = _(null), x = _(v.value || i.keepAlive), S = r(() => Dt(i.closable) ? i.closable : null), C = r(() => {
|
|
1261
1659
|
let e = i.closable;
|
|
1262
1660
|
return typeof e == "boolean" ? e : e != null;
|
|
1263
|
-
}),
|
|
1661
|
+
}), w = r(() => !!S.value?.disabled), T = r(() => S.value?.ariaLabel || "Close"), E = r(() => i.confirmLoading === void 0 ? i.okLoading : i.confirmLoading), D = r(() => l.footer ? !1 : i.footer === null ? !0 : i.hideFooter), O = r(() => i.okText || d.locale?.Modal?.okText || "确 定"), ee = r(() => i.cancelText || d.locale?.Modal?.cancelText || "取 消"), k = r(() => {
|
|
1264
1662
|
let e = i.width;
|
|
1265
1663
|
return typeof e == "number" ? `${e}px` : String(e);
|
|
1266
|
-
}),
|
|
1267
|
-
s("update:visible",
|
|
1268
|
-
},
|
|
1269
|
-
S.value || (ee(!1), s("close"));
|
|
1270
|
-
}, te = (e) => s("ok", e), j = (e) => {
|
|
1664
|
+
}), A = () => {
|
|
1665
|
+
w.value || (s("update:visible", !1), s("close"));
|
|
1666
|
+
}, j = (e) => s("ok", e), te = (e) => {
|
|
1271
1667
|
s("cancel", e), A();
|
|
1272
|
-
},
|
|
1668
|
+
}, M = () => {
|
|
1273
1669
|
i.maskClosable && A();
|
|
1274
|
-
},
|
|
1275
|
-
e.key === "Escape" &&
|
|
1276
|
-
},
|
|
1670
|
+
}, N = (e) => {
|
|
1671
|
+
e.key === "Escape" && i.closeOnEsc && v.value && A();
|
|
1672
|
+
}, P = () => {
|
|
1277
1673
|
let e = document.body;
|
|
1278
1674
|
if (e.dataset.ccuiModalCount) {
|
|
1279
1675
|
e.dataset.ccuiModalCount = String(Number(e.dataset.ccuiModalCount) + 1);
|
|
1280
1676
|
return;
|
|
1281
1677
|
}
|
|
1282
1678
|
e.dataset.ccuiModalCount = "1", e.dataset.ccuiOriginalOverflow = e.style.overflow, e.style.overflow = "hidden";
|
|
1283
|
-
},
|
|
1679
|
+
}, F = () => {
|
|
1284
1680
|
let e = document.body, t = Number(e.dataset.ccuiModalCount ?? 0) - 1;
|
|
1285
1681
|
t <= 0 ? (e.style.overflow = e.dataset.ccuiOriginalOverflow ?? "", delete e.dataset.ccuiModalCount, delete e.dataset.ccuiOriginalOverflow) : e.dataset.ccuiModalCount = String(t);
|
|
1286
1682
|
};
|
|
1287
|
-
y(
|
|
1683
|
+
y(v, (e) => {
|
|
1288
1684
|
if (e) {
|
|
1289
1685
|
if (typeof document < "u") {
|
|
1290
1686
|
let e = document.activeElement;
|
|
1291
|
-
e instanceof HTMLElement && (
|
|
1687
|
+
e instanceof HTMLElement && (b.value = e);
|
|
1292
1688
|
}
|
|
1293
|
-
|
|
1294
|
-
} else document.removeEventListener("keydown",
|
|
1689
|
+
x.value = !0, P(), document.addEventListener("keydown", N), s("open");
|
|
1690
|
+
} else document.removeEventListener("keydown", N), F();
|
|
1295
1691
|
s("after-open-change", e);
|
|
1296
1692
|
}, { immediate: !0 }), p(() => {
|
|
1297
|
-
document.removeEventListener("keydown",
|
|
1693
|
+
document.removeEventListener("keydown", N), v.value && F();
|
|
1298
1694
|
});
|
|
1299
|
-
let
|
|
1300
|
-
if (i.destroyOnClose && !i.keepAlive && (
|
|
1301
|
-
|
|
1695
|
+
let I = () => s("opened"), ne = () => {
|
|
1696
|
+
if (i.destroyOnClose && !i.keepAlive && (x.value = !1), i.focusTriggerAfterClose && b.value && document.body.contains(b.value)) try {
|
|
1697
|
+
b.value.focus({ preventScroll: !0 });
|
|
1302
1698
|
} catch {}
|
|
1303
1699
|
s("closed");
|
|
1304
|
-
},
|
|
1700
|
+
}, re = () => {
|
|
1305
1701
|
if (l["close-icon"]) return o(e, null, [l["close-icon"]()]);
|
|
1306
|
-
let t =
|
|
1307
|
-
return t ? typeof t == "string" ?
|
|
1308
|
-
},
|
|
1309
|
-
if (
|
|
1702
|
+
let t = S.value?.closeIcon;
|
|
1703
|
+
return t ? typeof t == "string" ? Et(t) ? o(ut, { icon: t }, null) : o("i", { class: t }, null) : t : o("span", null, [a("×")]);
|
|
1704
|
+
}, L = () => {
|
|
1705
|
+
if (D.value) return null;
|
|
1310
1706
|
let e = [u.e("footer"), i.classNames?.footer], t = i.styles?.footer;
|
|
1311
1707
|
return l.footer ? o("div", {
|
|
1312
1708
|
class: e,
|
|
1313
1709
|
style: t
|
|
1314
1710
|
}, [l.footer({
|
|
1315
|
-
ok:
|
|
1316
|
-
cancel:
|
|
1711
|
+
ok: j,
|
|
1712
|
+
cancel: te
|
|
1317
1713
|
})]) : typeof i.footer == "string" || i.footer && typeof i.footer == "object" ? o("div", {
|
|
1318
1714
|
class: e,
|
|
1319
1715
|
style: t
|
|
@@ -1322,25 +1718,19 @@ var Z = /* @__PURE__ */ s({
|
|
|
1322
1718
|
style: t
|
|
1323
1719
|
}, [o("button", {
|
|
1324
1720
|
class: [u.e("btn"), u.em("btn", "cancel")],
|
|
1325
|
-
onClick:
|
|
1326
|
-
}, [
|
|
1721
|
+
onClick: te
|
|
1722
|
+
}, [ee.value]), o("button", {
|
|
1327
1723
|
class: [
|
|
1328
1724
|
u.e("btn"),
|
|
1329
1725
|
u.em("btn", i.okType),
|
|
1330
|
-
|
|
1726
|
+
E.value && u.is("loading")
|
|
1331
1727
|
],
|
|
1332
|
-
disabled:
|
|
1333
|
-
onClick:
|
|
1334
|
-
}, [
|
|
1335
|
-
},
|
|
1336
|
-
if (i.getContainer) {
|
|
1337
|
-
let n = i.getContainer(null);
|
|
1338
|
-
return n ? o(t, { to: n }, vt(e) ? e : { default: () => [e] }) : e;
|
|
1339
|
-
}
|
|
1340
|
-
return i.appendToBody ? o(t, { to: "body" }, vt(e) ? e : { default: () => [e] }) : e;
|
|
1341
|
-
};
|
|
1728
|
+
disabled: E.value,
|
|
1729
|
+
onClick: j
|
|
1730
|
+
}, [E.value && o("span", { class: u.e("spinner") }, null), O.value])]);
|
|
1731
|
+
}, R = (e) => i.appendToBody ? o(t, { to: "body" }, Tt(e) ? e : { default: () => [e] }) : e;
|
|
1342
1732
|
return () => {
|
|
1343
|
-
let e = { zIndex: i.zIndex }, t = { width: k.value }, r = i.maskTransitionName || `${u.b()}-mask-fade`, a = i.transitionName || `${u.b()}-zoom`, s = o("div", {
|
|
1733
|
+
let e = { zIndex: i.zIndex }, t = { width: k.value }, r = i.maskTransitionName || `${u.b()}-mask-fade`, a = i.transitionName || `${u.b()}-zoom`, s = !!(i.title || l.title), c = o("div", {
|
|
1344
1734
|
class: [
|
|
1345
1735
|
u.b(),
|
|
1346
1736
|
i.centered && u.m("centered"),
|
|
@@ -1349,16 +1739,18 @@ var Z = /* @__PURE__ */ s({
|
|
|
1349
1739
|
],
|
|
1350
1740
|
style: [e, i.styles?.root],
|
|
1351
1741
|
"aria-modal": "true",
|
|
1352
|
-
role: "dialog"
|
|
1353
|
-
|
|
1742
|
+
role: "dialog",
|
|
1743
|
+
"aria-labelledby": s ? m : void 0,
|
|
1744
|
+
"aria-describedby": h
|
|
1745
|
+
}, [o(n, { name: r }, { default: () => [i.mask && v.value && o("div", {
|
|
1354
1746
|
class: [u.e("mask"), i.classNames?.mask],
|
|
1355
1747
|
style: i.styles?.mask,
|
|
1356
|
-
onClick:
|
|
1748
|
+
onClick: M
|
|
1357
1749
|
}, null)] }), o(n, {
|
|
1358
1750
|
name: a,
|
|
1359
|
-
onAfterEnter:
|
|
1360
|
-
onAfterLeave:
|
|
1361
|
-
}, { default: () => [
|
|
1751
|
+
onAfterEnter: I,
|
|
1752
|
+
onAfterLeave: ne
|
|
1753
|
+
}, { default: () => [v.value && o("div", {
|
|
1362
1754
|
class: [u.e("wrap"), i.classNames?.wrap],
|
|
1363
1755
|
style: i.styles?.wrap,
|
|
1364
1756
|
onClick: (e) => {
|
|
@@ -1368,43 +1760,52 @@ var Z = /* @__PURE__ */ s({
|
|
|
1368
1760
|
class: u.e("content"),
|
|
1369
1761
|
style: t
|
|
1370
1762
|
}, [
|
|
1371
|
-
|
|
1372
|
-
class: [u.e("close"),
|
|
1373
|
-
"aria-label":
|
|
1374
|
-
disabled:
|
|
1763
|
+
C.value && o("button", {
|
|
1764
|
+
class: [u.e("close"), w.value && u.is("disabled")],
|
|
1765
|
+
"aria-label": T.value,
|
|
1766
|
+
disabled: w.value,
|
|
1375
1767
|
onClick: A
|
|
1376
|
-
}, [
|
|
1768
|
+
}, [re()]),
|
|
1377
1769
|
(i.title || l.title) && o("div", {
|
|
1378
1770
|
class: [u.e("header"), i.classNames?.header],
|
|
1379
1771
|
style: i.styles?.header
|
|
1380
|
-
}, [o("div", {
|
|
1772
|
+
}, [o("div", {
|
|
1773
|
+
class: u.e("title"),
|
|
1774
|
+
id: m
|
|
1775
|
+
}, [l.title ? l.title() : i.title])]),
|
|
1381
1776
|
o("div", {
|
|
1382
1777
|
class: [u.e("body"), i.classNames?.body],
|
|
1778
|
+
id: h,
|
|
1383
1779
|
style: i.styles?.body
|
|
1384
1780
|
}, [l.default?.()]),
|
|
1385
|
-
|
|
1781
|
+
L()
|
|
1386
1782
|
])])] })]);
|
|
1387
|
-
return i.destroyOnClose && !i.keepAlive && !
|
|
1783
|
+
return i.destroyOnClose && !i.keepAlive && !x.value ? null : R(c);
|
|
1388
1784
|
};
|
|
1389
1785
|
}
|
|
1390
|
-
}),
|
|
1786
|
+
}), kt = {
|
|
1391
1787
|
confirm: "?",
|
|
1392
1788
|
info: "ⓘ",
|
|
1393
|
-
success: "
|
|
1394
|
-
error: "
|
|
1789
|
+
success: "mdi:check-circle",
|
|
1790
|
+
error: "mdi:close-circle",
|
|
1395
1791
|
warning: "!"
|
|
1396
|
-
}
|
|
1792
|
+
};
|
|
1793
|
+
function At(e) {
|
|
1794
|
+
let t = kt[e];
|
|
1795
|
+
return t.includes(":") ? ht(t) ?? t : t;
|
|
1796
|
+
}
|
|
1797
|
+
var jt = {
|
|
1397
1798
|
confirm: "primary",
|
|
1398
1799
|
info: "primary",
|
|
1399
1800
|
success: "primary",
|
|
1400
1801
|
error: "danger",
|
|
1401
1802
|
warning: "primary"
|
|
1402
|
-
},
|
|
1403
|
-
function
|
|
1803
|
+
}, Mt = /* @__PURE__ */ new Set();
|
|
1804
|
+
function Nt(t = {}, n) {
|
|
1404
1805
|
let r = g({
|
|
1405
1806
|
type: "confirm",
|
|
1406
1807
|
...t
|
|
1407
|
-
}), a = _(!0), c = _(!1), u = null, d = null, f =
|
|
1808
|
+
}), a = _(!0), c = _(!1), u = null, d = null, f = gt("modal-confirm"), p = {
|
|
1408
1809
|
destroy() {
|
|
1409
1810
|
a.value = !1;
|
|
1410
1811
|
},
|
|
@@ -1413,7 +1814,7 @@ function wt(t = {}, n) {
|
|
|
1413
1814
|
Object.assign(r, t);
|
|
1414
1815
|
}
|
|
1415
1816
|
};
|
|
1416
|
-
|
|
1817
|
+
Mt.add(p);
|
|
1417
1818
|
let m = /* @__PURE__ */ s({
|
|
1418
1819
|
name: "CModalConfirmInner",
|
|
1419
1820
|
setup() {
|
|
@@ -1421,7 +1822,7 @@ function wt(t = {}, n) {
|
|
|
1421
1822
|
try {
|
|
1422
1823
|
r.afterClose?.();
|
|
1423
1824
|
} catch {}
|
|
1424
|
-
u &&= (u.unmount(), null), d && d.parentNode && (d.parentNode.removeChild(d), d = null),
|
|
1825
|
+
u &&= (u.unmount(), null), d && d.parentNode && (d.parentNode.removeChild(d), d = null), Mt.delete(p);
|
|
1425
1826
|
}, n = () => {
|
|
1426
1827
|
a.value = !1;
|
|
1427
1828
|
}, i = async () => {
|
|
@@ -1448,7 +1849,7 @@ function wt(t = {}, n) {
|
|
|
1448
1849
|
n();
|
|
1449
1850
|
};
|
|
1450
1851
|
return () => {
|
|
1451
|
-
let n = r.type ?? "confirm", u = r.okType ??
|
|
1852
|
+
let n = r.type ?? "confirm", u = r.okType ?? jt[n], d = r.okText ?? "确 定", p = r.cancelText ?? "取 消", m = o("div", { class: f.b() }, [r.icon === void 0 ? o("span", { class: [f.e("icon"), f.em("icon", n)] }, [At(n)]) : typeof r.icon == "string" ? r.icon ? o("span", { class: [f.e("icon"), f.em("icon", n)] }, [o("i", { class: r.icon }, null)]) : o(e, null, null) : o("span", { class: [f.e("icon"), f.em("icon", n)] }, [r.icon]), o("div", { class: f.e("body") }, [r.title !== void 0 && o("div", { class: f.e("title") }, [r.title]), r.content !== void 0 && o("div", { class: f.e("content") }, [r.content])])]), h = o("div", { class: f.e("footer") }, [n === "confirm" && o("button", {
|
|
1452
1853
|
class: ["ccui-modal__btn", "ccui-modal__btn--cancel"],
|
|
1453
1854
|
onClick: s
|
|
1454
1855
|
}, [p]), o("button", {
|
|
@@ -1461,19 +1862,18 @@ function wt(t = {}, n) {
|
|
|
1461
1862
|
onClick: i
|
|
1462
1863
|
}, [c.value && o("span", { class: "ccui-modal__spinner" }, null), d])]);
|
|
1463
1864
|
return l(Z, {
|
|
1464
|
-
|
|
1465
|
-
"onUpdate:
|
|
1865
|
+
visible: a.value,
|
|
1866
|
+
"onUpdate:visible": (e) => {
|
|
1466
1867
|
a.value = e;
|
|
1467
1868
|
},
|
|
1468
1869
|
width: r.width ?? 416,
|
|
1469
1870
|
centered: r.centered ?? !1,
|
|
1470
1871
|
mask: r.mask ?? !0,
|
|
1471
1872
|
maskClosable: r.maskClosable ?? !1,
|
|
1472
|
-
|
|
1873
|
+
closeOnEsc: r.closeOnEsc ?? !0,
|
|
1473
1874
|
closable: r.closable ?? !1,
|
|
1474
1875
|
zIndex: r.zIndex,
|
|
1475
1876
|
wrapClassName: r.wrapClassName,
|
|
1476
|
-
getContainer: r.getContainer,
|
|
1477
1877
|
confirmLoading: c.value,
|
|
1478
1878
|
onClosed: t
|
|
1479
1879
|
}, {
|
|
@@ -1497,19 +1897,19 @@ function wt(t = {}, n) {
|
|
|
1497
1897
|
...u._context.provides
|
|
1498
1898
|
}), u.mount(d), p;
|
|
1499
1899
|
}
|
|
1500
|
-
function
|
|
1501
|
-
Array.from(
|
|
1900
|
+
function Pt() {
|
|
1901
|
+
Array.from(Mt).forEach((e) => e.destroy());
|
|
1502
1902
|
}
|
|
1503
1903
|
function Q(e) {
|
|
1504
|
-
return (t = {}, n) =>
|
|
1904
|
+
return (t = {}, n) => Nt({
|
|
1505
1905
|
...t,
|
|
1506
1906
|
type: e
|
|
1507
1907
|
}, n);
|
|
1508
1908
|
}
|
|
1509
1909
|
//#endregion
|
|
1510
1910
|
//#region ../ccui/ui/modal/src/use-modal.ts
|
|
1511
|
-
function
|
|
1512
|
-
let e = c(), t = (t, n) =>
|
|
1911
|
+
function Ft() {
|
|
1912
|
+
let e = c(), t = (t, n) => Nt({
|
|
1513
1913
|
...n ? { type: n } : {},
|
|
1514
1914
|
...t
|
|
1515
1915
|
}, {
|
|
@@ -1535,13 +1935,13 @@ function Et() {
|
|
|
1535
1935
|
//#endregion
|
|
1536
1936
|
//#region ../ccui/ui/modal/index.ts
|
|
1537
1937
|
var $ = Z;
|
|
1538
|
-
$.confirm = (e = {}) =>
|
|
1938
|
+
$.confirm = (e = {}) => Nt({
|
|
1539
1939
|
type: "confirm",
|
|
1540
1940
|
...e
|
|
1541
|
-
}), $.info = Q("info"), $.success = Q("success"), $.error = Q("error"), $.warning = Q("warning"), $.destroyAll =
|
|
1941
|
+
}), $.info = Q("info"), $.success = Q("success"), $.error = Q("error"), $.warning = Q("warning"), $.destroyAll = Pt, $.install = function(e) {
|
|
1542
1942
|
e.component(Z.name, Z);
|
|
1543
1943
|
};
|
|
1544
|
-
var
|
|
1944
|
+
var It = {
|
|
1545
1945
|
title: "Modal 对话框",
|
|
1546
1946
|
category: "反馈",
|
|
1547
1947
|
status: "100%",
|
|
@@ -1550,4 +1950,4 @@ var Dt = {
|
|
|
1550
1950
|
}
|
|
1551
1951
|
};
|
|
1552
1952
|
//#endregion
|
|
1553
|
-
export { $ as Modal,
|
|
1953
|
+
export { $ as Modal, It as default, Ft as useModal };
|