@vaebe/ccui 2.0.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +31 -0
  3. package/affix/ccui-cli.css +2 -0
  4. package/affix/index.es.js +132 -0
  5. package/affix/index.umd.js +1 -0
  6. package/alert/ccui-cli.css +2 -0
  7. package/alert/index.es.js +127 -0
  8. package/alert/index.umd.js +1 -0
  9. package/anchor/ccui-cli.css +2 -0
  10. package/anchor/index.es.js +160 -0
  11. package/anchor/index.umd.js +1 -0
  12. package/avatar/ccui-cli.css +2 -0
  13. package/avatar/index.es.js +235 -0
  14. package/avatar/index.umd.js +1 -0
  15. package/badge/ccui-cli.css +2 -0
  16. package/badge/index.es.js +146 -0
  17. package/badge/index.umd.js +1 -0
  18. package/breadcrumb/ccui-cli.css +2 -0
  19. package/breadcrumb/index.es.js +89 -0
  20. package/breadcrumb/index.umd.js +1 -0
  21. package/button/ccui-cli.css +2 -0
  22. package/button/index.es.js +1236 -0
  23. package/button/index.umd.js +1 -0
  24. package/button-3d/ccui-cli.css +2 -0
  25. package/button-3d/index.es.js +80 -0
  26. package/button-3d/index.umd.js +1 -0
  27. package/calendar/ccui-cli.css +2 -0
  28. package/calendar/index.es.js +450 -0
  29. package/calendar/index.umd.js +1 -0
  30. package/card/ccui-cli.css +2 -0
  31. package/card/index.es.js +78 -0
  32. package/card/index.umd.js +1 -0
  33. package/ccui-cli.css +2 -0
  34. package/check-box/ccui-cli.css +2 -0
  35. package/check-box/index.es.js +173 -0
  36. package/check-box/index.umd.js +1 -0
  37. package/collapse/ccui-cli.css +2 -0
  38. package/collapse/index.es.js +176 -0
  39. package/collapse/index.umd.js +1 -0
  40. package/config-provider/index.es.js +204 -0
  41. package/config-provider/index.umd.js +1 -0
  42. package/date-picker/ccui-cli.css +2 -0
  43. package/date-picker/index.es.js +2447 -0
  44. package/date-picker/index.umd.js +1 -0
  45. package/descriptions/ccui-cli.css +2 -0
  46. package/descriptions/index.es.js +175 -0
  47. package/descriptions/index.umd.js +1 -0
  48. package/divider/ccui-cli.css +2 -0
  49. package/divider/index.es.js +78 -0
  50. package/divider/index.umd.js +1 -0
  51. package/drawer/ccui-cli.css +2 -0
  52. package/drawer/index.es.js +1320 -0
  53. package/drawer/index.umd.js +1 -0
  54. package/dropdown/ccui-cli.css +2 -0
  55. package/dropdown/index.es.js +606 -0
  56. package/dropdown/index.umd.js +1 -0
  57. package/empty/ccui-cli.css +2 -0
  58. package/empty/index.es.js +173 -0
  59. package/empty/index.umd.js +1 -0
  60. package/flex/ccui-cli.css +2 -0
  61. package/flex/index.es.js +87 -0
  62. package/flex/index.umd.js +1 -0
  63. package/float-button/ccui-cli.css +2 -0
  64. package/float-button/index.es.js +169 -0
  65. package/float-button/index.umd.js +1 -0
  66. package/form/ccui-cli.css +2 -0
  67. package/form/index.es.js +752 -0
  68. package/form/index.umd.js +1 -0
  69. package/grid/ccui-cli.css +2 -0
  70. package/grid/index.es.js +207 -0
  71. package/grid/index.umd.js +1 -0
  72. package/icon/ccui-cli.css +2 -0
  73. package/icon/index.es.js +1228 -0
  74. package/icon/index.umd.js +1 -0
  75. package/image/ccui-cli.css +2 -0
  76. package/image/index.es.js +276 -0
  77. package/image/index.umd.js +1 -0
  78. package/index.d.ts +7 -0
  79. package/input/ccui-cli.css +2 -0
  80. package/input/index.es.js +1293 -0
  81. package/input/index.umd.js +1 -0
  82. package/input-number/ccui-cli.css +2 -0
  83. package/input-number/index.es.js +263 -0
  84. package/input-number/index.umd.js +1 -0
  85. package/layout/ccui-cli.css +2 -0
  86. package/layout/index.es.js +184 -0
  87. package/layout/index.umd.js +1 -0
  88. package/masonry/ccui-cli.css +2 -0
  89. package/masonry/index.es.js +119 -0
  90. package/masonry/index.umd.js +1 -0
  91. package/menu/ccui-cli.css +2 -0
  92. package/menu/index.es.js +385 -0
  93. package/menu/index.umd.js +1 -0
  94. package/message/ccui-cli.css +2 -0
  95. package/message/index.es.js +351 -0
  96. package/message/index.umd.js +1 -0
  97. package/modal/ccui-cli.css +2 -0
  98. package/modal/index.es.js +1553 -0
  99. package/modal/index.umd.js +1 -0
  100. package/notification/ccui-cli.css +2 -0
  101. package/notification/index.es.js +347 -0
  102. package/notification/index.umd.js +1 -0
  103. package/nuxt/components/category.js +2 -0
  104. package/nuxt/components/install.js +2 -0
  105. package/nuxt/components/status.js +2 -0
  106. package/nuxt/components/title.js +2 -0
  107. package/nuxt/index.js +13 -0
  108. package/package.json +53 -0
  109. package/pagination/ccui-cli.css +2 -0
  110. package/pagination/index.es.js +296 -0
  111. package/pagination/index.umd.js +1 -0
  112. package/popconfirm/ccui-cli.css +2 -0
  113. package/popconfirm/index.es.js +735 -0
  114. package/popconfirm/index.umd.js +1 -0
  115. package/popover/ccui-cli.css +2 -0
  116. package/popover/index.es.js +530 -0
  117. package/popover/index.umd.js +1 -0
  118. package/progress/ccui-cli.css +2 -0
  119. package/progress/index.es.js +167 -0
  120. package/progress/index.umd.js +1 -0
  121. package/radio/ccui-cli.css +2 -0
  122. package/radio/index.es.js +157 -0
  123. package/radio/index.umd.js +1 -0
  124. package/rate/ccui-cli.css +2 -0
  125. package/rate/index.es.js +115 -0
  126. package/rate/index.umd.js +1 -0
  127. package/result/ccui-cli.css +2 -0
  128. package/result/index.es.js +90 -0
  129. package/result/index.umd.js +1 -0
  130. package/segmented/ccui-cli.css +2 -0
  131. package/segmented/index.es.js +99 -0
  132. package/segmented/index.umd.js +1 -0
  133. package/select/ccui-cli.css +2 -0
  134. package/select/index.es.js +1885 -0
  135. package/select/index.umd.js +1 -0
  136. package/skeleton/ccui-cli.css +2 -0
  137. package/skeleton/index.es.js +117 -0
  138. package/skeleton/index.umd.js +1 -0
  139. package/slider/ccui-cli.css +2 -0
  140. package/slider/index.es.js +1071 -0
  141. package/slider/index.umd.js +1 -0
  142. package/space/ccui-cli.css +2 -0
  143. package/space/index.es.js +108 -0
  144. package/space/index.umd.js +1 -0
  145. package/spin/ccui-cli.css +2 -0
  146. package/spin/index.es.js +86 -0
  147. package/spin/index.umd.js +1 -0
  148. package/splitter/ccui-cli.css +2 -0
  149. package/splitter/index.es.js +198 -0
  150. package/splitter/index.umd.js +1 -0
  151. package/status/ccui-cli.css +2 -0
  152. package/status/index.es.js +44 -0
  153. package/status/index.umd.js +1 -0
  154. package/steps/ccui-cli.css +2 -0
  155. package/steps/index.es.js +118 -0
  156. package/steps/index.umd.js +1 -0
  157. package/switch/ccui-cli.css +2 -0
  158. package/switch/index.es.js +118 -0
  159. package/switch/index.umd.js +1 -0
  160. package/table/ccui-cli.css +2 -0
  161. package/table/index.es.js +553 -0
  162. package/table/index.umd.js +1 -0
  163. package/tabs/ccui-cli.css +2 -0
  164. package/tabs/index.es.js +128 -0
  165. package/tabs/index.umd.js +1 -0
  166. package/tag/ccui-cli.css +2 -0
  167. package/tag/index.es.js +116 -0
  168. package/tag/index.umd.js +1 -0
  169. package/theme/darkTheme.css +352 -0
  170. package/theme/theme.scss +703 -0
  171. package/timeline/ccui-cli.css +2 -0
  172. package/timeline/index.es.js +113 -0
  173. package/timeline/index.umd.js +1 -0
  174. package/tooltip/ccui-cli.css +2 -0
  175. package/tooltip/index.es.js +423 -0
  176. package/tooltip/index.umd.js +1 -0
  177. package/tree/ccui-cli.css +2 -0
  178. package/tree/index.es.js +810 -0
  179. package/tree/index.umd.js +1 -0
  180. package/typography/ccui-cli.css +2 -0
  181. package/typography/index.es.js +270 -0
  182. package/typography/index.umd.js +1 -0
  183. package/util/index.es.js +78 -0
  184. package/util/index.umd.js +1 -0
  185. package/vue-ccui.es.js +18989 -0
  186. package/vue-ccui.umd.js +1 -0
  187. package/watermark/ccui-cli.css +2 -0
  188. package/watermark/index.es.js +179 -0
  189. package/watermark/index.umd.js +1 -0
@@ -0,0 +1,1553 @@
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 ../ccui/ui/shared/hooks/use-namespace.ts
3
+ function b(e, t, n) {
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 = "") => {
20
+ let i = e.split(":");
21
+ if (e.slice(0, 1) === "@") {
22
+ if (i.length < 2 || i.length > 3) return null;
23
+ r = i.shift().slice(1);
24
+ }
25
+ if (i.length > 3 || !i.length) return null;
26
+ if (i.length > 1) {
27
+ let e = i.pop(), n = i.pop(), a = {
28
+ provider: i.length > 0 ? i[0] : r,
29
+ prefix: n,
30
+ name: e
31
+ };
32
+ return t && !w(a) ? null : a;
33
+ }
34
+ let a = i[0], o = a.split("-");
35
+ if (o.length > 1) {
36
+ let e = {
37
+ provider: r,
38
+ prefix: o.shift(),
39
+ name: o.join("-")
40
+ };
41
+ return t && !w(e) ? null : e;
42
+ }
43
+ if (n && r === "") {
44
+ let e = {
45
+ provider: r,
46
+ prefix: "",
47
+ name: a
48
+ };
49
+ return t && !w(e, n) ? null : e;
50
+ }
51
+ return null;
52
+ }, w = (e, t) => e ? !!((t && e.prefix === "" || e.prefix) && e.name) : !1;
53
+ function T(e, t) {
54
+ let n = e.icons, r = e.aliases || Object.create(null), i = Object.create(null);
55
+ function a(e) {
56
+ if (n[e]) return i[e] = [];
57
+ if (!(e in i)) {
58
+ i[e] = null;
59
+ let t = r[e] && r[e].parent, n = t && a(t);
60
+ n && (i[e] = [t].concat(n));
61
+ }
62
+ return i[e];
63
+ }
64
+ return Object.keys(n).concat(Object.keys(r)).forEach(a), i;
65
+ }
66
+ var E = Object.freeze({
67
+ left: 0,
68
+ top: 0,
69
+ width: 16,
70
+ height: 16
71
+ }), D = Object.freeze({
72
+ rotate: 0,
73
+ vFlip: !1,
74
+ hFlip: !1
75
+ }), O = Object.freeze({
76
+ ...E,
77
+ ...D
78
+ }), k = Object.freeze({
79
+ ...O,
80
+ body: "",
81
+ hidden: !1
82
+ });
83
+ function ee(e, t) {
84
+ let n = {};
85
+ !e.hFlip != !t.hFlip && (n.hFlip = !0), !e.vFlip != !t.vFlip && (n.vFlip = !0);
86
+ let r = ((e.rotate || 0) + (t.rotate || 0)) % 4;
87
+ return r && (n.rotate = r), n;
88
+ }
89
+ function A(e, t) {
90
+ let n = ee(e, t);
91
+ for (let r in k) r in D ? r in e && !(r in n) && (n[r] = D[r]) : r in t ? n[r] = t[r] : r in e && (n[r] = e[r]);
92
+ return n;
93
+ }
94
+ function te(e, t, n) {
95
+ let r = e.icons, i = e.aliases || Object.create(null), a = {};
96
+ function o(e) {
97
+ a = A(r[e] || i[e], a);
98
+ }
99
+ return o(t), n.forEach(o), A(e, a);
100
+ }
101
+ function j(e, t) {
102
+ let n = [];
103
+ if (typeof e != "object" || typeof e.icons != "object") return n;
104
+ e.not_found instanceof Array && e.not_found.forEach((e) => {
105
+ t(e, null), n.push(e);
106
+ });
107
+ let r = T(e);
108
+ for (let i in r) {
109
+ let a = r[i];
110
+ a && (t(i, te(e, i, a)), n.push(i));
111
+ }
112
+ return n;
113
+ }
114
+ var ne = {
115
+ provider: "",
116
+ aliases: {},
117
+ not_found: {},
118
+ ...E
119
+ };
120
+ function M(e, t) {
121
+ for (let n in t) if (n in e && typeof e[n] != typeof t[n]) return !1;
122
+ return !0;
123
+ }
124
+ function N(e) {
125
+ if (typeof e != "object" || !e) return null;
126
+ let t = e;
127
+ if (typeof t.prefix != "string" || !e.icons || typeof e.icons != "object" || !M(e, ne)) return null;
128
+ let n = t.icons;
129
+ for (let e in n) {
130
+ let t = n[e];
131
+ if (!e || typeof t.body != "string" || !M(t, k)) return null;
132
+ }
133
+ let r = t.aliases || Object.create(null);
134
+ for (let e in r) {
135
+ let t = r[e], i = t.parent;
136
+ if (!e || typeof i != "string" || !n[i] && !r[i] || !M(t, k)) return null;
137
+ }
138
+ return t;
139
+ }
140
+ var P = Object.create(null);
141
+ function re(e, t) {
142
+ return {
143
+ provider: e,
144
+ prefix: t,
145
+ icons: Object.create(null),
146
+ missing: /* @__PURE__ */ new Set()
147
+ };
148
+ }
149
+ function F(e, t) {
150
+ let n = P[e] || (P[e] = Object.create(null));
151
+ return n[t] || (n[t] = re(e, t));
152
+ }
153
+ function I(e, t) {
154
+ return N(t) ? j(t, (t, n) => {
155
+ n ? e.icons[t] = n : e.missing.add(t);
156
+ }) : [];
157
+ }
158
+ function ie(e, t, n) {
159
+ try {
160
+ if (typeof n.body == "string") return e.icons[t] = { ...n }, !0;
161
+ } catch {}
162
+ return !1;
163
+ }
164
+ var L = !1;
165
+ function ae(e) {
166
+ return typeof e == "boolean" && (L = e), L;
167
+ }
168
+ function oe(e) {
169
+ let t = typeof e == "string" ? C(e, !0, L) : e;
170
+ if (t) {
171
+ let e = F(t.provider, t.prefix), n = t.name;
172
+ return e.icons[n] || (e.missing.has(n) ? null : void 0);
173
+ }
174
+ }
175
+ function se(e, t) {
176
+ let n = C(e, !0, L);
177
+ if (!n) return !1;
178
+ let r = F(n.provider, n.prefix);
179
+ return t ? ie(r, n.name, t) : (r.missing.add(n.name), !0);
180
+ }
181
+ function ce(e, t) {
182
+ if (typeof e != "object") return !1;
183
+ if (typeof t != "string" && (t = e.provider || ""), L && !t && !e.prefix) {
184
+ let t = !1;
185
+ return N(e) && (e.prefix = "", j(e, (e, n) => {
186
+ se(e, n) && (t = !0);
187
+ })), t;
188
+ }
189
+ let n = e.prefix;
190
+ return w({
191
+ prefix: n,
192
+ name: "a"
193
+ }) ? !!I(F(t, n), e) : !1;
194
+ }
195
+ var le = Object.freeze({
196
+ width: null,
197
+ height: null
198
+ }), ue = Object.freeze({
199
+ ...le,
200
+ ...D
201
+ }), de = /(-?[0-9.]*[0-9]+[0-9.]*)/g, fe = /^-?[0-9.]*[0-9]+[0-9.]*$/g;
202
+ function pe(e, t, n) {
203
+ if (t === 1) return e;
204
+ if (n ||= 100, typeof e == "number") return Math.ceil(e * t * n) / n;
205
+ if (typeof e != "string") return e;
206
+ let r = e.split(de);
207
+ if (r === null || !r.length) return e;
208
+ let i = [], a = r.shift(), o = fe.test(a);
209
+ for (;;) {
210
+ if (o) {
211
+ let e = parseFloat(a);
212
+ isNaN(e) ? i.push(a) : i.push(Math.ceil(e * t * n) / n);
213
+ } else i.push(a);
214
+ if (a = r.shift(), a === void 0) return i.join("");
215
+ o = !o;
216
+ }
217
+ }
218
+ function me(e, t = "defs") {
219
+ let n = "", r = e.indexOf("<" + t);
220
+ for (; r >= 0;) {
221
+ let i = e.indexOf(">", r), a = e.indexOf("</" + t);
222
+ if (i === -1 || a === -1) break;
223
+ let o = e.indexOf(">", a);
224
+ if (o === -1) break;
225
+ n += e.slice(i + 1, a).trim(), e = e.slice(0, r).trim() + e.slice(o + 1);
226
+ }
227
+ return {
228
+ defs: n,
229
+ content: e
230
+ };
231
+ }
232
+ function he(e, t) {
233
+ return e ? "<defs>" + e + "</defs>" + t : t;
234
+ }
235
+ function ge(e, t, n) {
236
+ let r = me(e);
237
+ return he(r.defs, t + r.content + n);
238
+ }
239
+ var _e = (e) => e === "unset" || e === "undefined" || e === "none";
240
+ function ve(e, t) {
241
+ let n = {
242
+ ...O,
243
+ ...e
244
+ }, r = {
245
+ ...ue,
246
+ ...t
247
+ }, i = {
248
+ left: n.left,
249
+ top: n.top,
250
+ width: n.width,
251
+ height: n.height
252
+ }, a = n.body;
253
+ [n, r].forEach((e) => {
254
+ let t = [], n = e.hFlip, r = e.vFlip, o = e.rotate;
255
+ n ? r ? o += 2 : (t.push("translate(" + (i.width + i.left).toString() + " " + (0 - i.top).toString() + ")"), t.push("scale(-1 1)"), i.top = i.left = 0) : r && (t.push("translate(" + (0 - i.left).toString() + " " + (i.height + i.top).toString() + ")"), t.push("scale(1 -1)"), i.top = i.left = 0);
256
+ let s;
257
+ switch (o < 0 && (o -= Math.floor(o / 4) * 4), o %= 4, o) {
258
+ case 1:
259
+ s = i.height / 2 + i.top, t.unshift("rotate(90 " + s.toString() + " " + s.toString() + ")");
260
+ break;
261
+ case 2:
262
+ t.unshift("rotate(180 " + (i.width / 2 + i.left).toString() + " " + (i.height / 2 + i.top).toString() + ")");
263
+ break;
264
+ case 3:
265
+ s = i.width / 2 + i.left, t.unshift("rotate(-90 " + s.toString() + " " + s.toString() + ")");
266
+ break;
267
+ }
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 = ge(a, "<g transform=\"" + t.join(" ") + "\">", "</g>"));
269
+ });
270
+ 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 = pe(d, c / l)) : (u = o === "auto" ? c : o, d = s === null ? pe(u, l / c) : s === "auto" ? l : s);
272
+ let f = {}, p = (e, t) => {
273
+ _e(t) || (f[e] = t.toString());
274
+ };
275
+ p("width", u), p("height", d);
276
+ let m = [
277
+ i.left,
278
+ i.top,
279
+ c,
280
+ l
281
+ ];
282
+ return f.viewBox = m.join(" "), {
283
+ attributes: f,
284
+ viewBox: m,
285
+ body: a
286
+ };
287
+ }
288
+ var ye = /\sid="(\S+)"/g, be = /* @__PURE__ */ new Map();
289
+ function xe(e) {
290
+ e = e.replace(/[0-9]+$/, "") || "a";
291
+ let t = be.get(e) || 0;
292
+ return be.set(e, t + 1), t ? `${e}${t}` : e;
293
+ }
294
+ function Se(e) {
295
+ let t = [], n;
296
+ for (; n = ye.exec(e);) t.push(n[1]);
297
+ if (!t.length) return e;
298
+ let r = "suffix" + (Math.random() * 16777216 | Date.now()).toString(16);
299
+ return t.forEach((t) => {
300
+ let n = xe(t), i = t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
301
+ e = e.replace(RegExp("([#;\"])(" + i + ")([\")]|\\.[a-z])", "g"), "$1" + n + r + "$3");
302
+ }), e = e.replace(new RegExp(r, "g"), ""), e;
303
+ }
304
+ var R = Object.create(null);
305
+ function Ce(e, t) {
306
+ R[e] = t;
307
+ }
308
+ function z(e) {
309
+ return R[e] || R[""];
310
+ }
311
+ function B(e) {
312
+ let t;
313
+ if (typeof e.resources == "string") t = [e.resources];
314
+ else if (t = e.resources, !(t instanceof Array) || !t.length) return null;
315
+ return {
316
+ resources: t,
317
+ path: e.path || "/",
318
+ maxURL: e.maxURL || 500,
319
+ rotate: e.rotate || 750,
320
+ timeout: e.timeout || 5e3,
321
+ random: e.random === !0,
322
+ index: e.index || 0,
323
+ dataAfterTimeout: e.dataAfterTimeout !== !1
324
+ };
325
+ }
326
+ for (var V = Object.create(null), H = ["https://api.simplesvg.com", "https://api.unisvg.com"], U = []; H.length > 0;) H.length === 1 || Math.random() > .5 ? U.push(H.shift()) : U.push(H.pop());
327
+ V[""] = B({ resources: ["https://api.iconify.design"].concat(U) });
328
+ function we(e, t) {
329
+ let n = B(t);
330
+ return n === null ? !1 : (V[e] = n, !0);
331
+ }
332
+ function W(e) {
333
+ return V[e];
334
+ }
335
+ var Te = (() => {
336
+ let e;
337
+ try {
338
+ if (e = fetch, typeof e == "function") return e;
339
+ } catch {}
340
+ })();
341
+ function Ee(e, t) {
342
+ let n = W(e);
343
+ if (!n) return 0;
344
+ let r;
345
+ if (!n.maxURL) r = 0;
346
+ else {
347
+ let e = 0;
348
+ n.resources.forEach((t) => {
349
+ e = Math.max(e, t.length);
350
+ });
351
+ let i = t + ".json?icons=";
352
+ r = n.maxURL - e - n.path.length - i.length;
353
+ }
354
+ return r;
355
+ }
356
+ function De(e) {
357
+ return e === 404;
358
+ }
359
+ var Oe = (e, t, n) => {
360
+ let r = [], i = Ee(e, t), a = "icons", o = {
361
+ type: a,
362
+ provider: e,
363
+ prefix: t,
364
+ icons: []
365
+ }, s = 0;
366
+ return n.forEach((n, c) => {
367
+ s += n.length + 1, s >= i && c > 0 && (r.push(o), o = {
368
+ type: a,
369
+ provider: e,
370
+ prefix: t,
371
+ icons: []
372
+ }, s = n.length), o.icons.push(n);
373
+ }), r.push(o), r;
374
+ };
375
+ function ke(e) {
376
+ if (typeof e == "string") {
377
+ let t = W(e);
378
+ if (t) return t.path;
379
+ }
380
+ return "/";
381
+ }
382
+ var Ae = {
383
+ prepare: Oe,
384
+ send: (e, t, n) => {
385
+ if (!Te) {
386
+ n("abort", 424);
387
+ return;
388
+ }
389
+ let r = ke(t.provider);
390
+ switch (t.type) {
391
+ case "icons": {
392
+ let e = t.prefix, n = t.icons.join(","), i = new URLSearchParams({ icons: n });
393
+ r += e + ".json?" + i.toString();
394
+ break;
395
+ }
396
+ case "custom": {
397
+ let e = t.uri;
398
+ r += e.slice(0, 1) === "/" ? e.slice(1) : e;
399
+ break;
400
+ }
401
+ default:
402
+ n("abort", 400);
403
+ return;
404
+ }
405
+ let i = 503;
406
+ Te(e + r).then((e) => {
407
+ let t = e.status;
408
+ if (t !== 200) {
409
+ setTimeout(() => {
410
+ n(De(t) ? "abort" : "next", t);
411
+ });
412
+ return;
413
+ }
414
+ return i = 501, e.json();
415
+ }).then((e) => {
416
+ if (typeof e != "object" || !e) {
417
+ setTimeout(() => {
418
+ e === 404 ? n("abort", e) : n("next", i);
419
+ });
420
+ return;
421
+ }
422
+ setTimeout(() => {
423
+ n("success", e);
424
+ });
425
+ }).catch(() => {
426
+ n("next", i);
427
+ });
428
+ }
429
+ };
430
+ function je(e, t) {
431
+ e.forEach((e) => {
432
+ let n = e.loaderCallbacks;
433
+ n && (e.loaderCallbacks = n.filter((e) => e.id !== t));
434
+ });
435
+ }
436
+ function Me(e) {
437
+ e.pendingCallbacksFlag || (e.pendingCallbacksFlag = !0, setTimeout(() => {
438
+ e.pendingCallbacksFlag = !1;
439
+ let t = e.loaderCallbacks ? e.loaderCallbacks.slice(0) : [];
440
+ if (!t.length) return;
441
+ let n = !1, r = e.provider, i = e.prefix;
442
+ t.forEach((t) => {
443
+ let a = t.icons, o = a.pending.length;
444
+ a.pending = a.pending.filter((t) => {
445
+ if (t.prefix !== i) return !0;
446
+ let o = t.name;
447
+ if (e.icons[o]) a.loaded.push({
448
+ provider: r,
449
+ prefix: i,
450
+ name: o
451
+ });
452
+ else if (e.missing.has(o)) a.missing.push({
453
+ provider: r,
454
+ prefix: i,
455
+ name: o
456
+ });
457
+ else return n = !0, !0;
458
+ return !1;
459
+ }), a.pending.length !== o && (n || je([e], t.id), t.callback(a.loaded.slice(0), a.missing.slice(0), a.pending.slice(0), t.abort));
460
+ });
461
+ }));
462
+ }
463
+ var Ne = 0;
464
+ function Pe(e, t, n) {
465
+ let r = Ne++, i = je.bind(null, n, r);
466
+ if (!t.pending.length) return i;
467
+ let a = {
468
+ id: r,
469
+ icons: t,
470
+ callback: e,
471
+ abort: i
472
+ };
473
+ return n.forEach((e) => {
474
+ (e.loaderCallbacks ||= []).push(a);
475
+ }), i;
476
+ }
477
+ function Fe(e) {
478
+ let t = {
479
+ loaded: [],
480
+ missing: [],
481
+ pending: []
482
+ }, n = Object.create(null);
483
+ e.sort((e, t) => e.provider === t.provider ? e.prefix === t.prefix ? e.name.localeCompare(t.name) : e.prefix.localeCompare(t.prefix) : e.provider.localeCompare(t.provider));
484
+ let r = {
485
+ provider: "",
486
+ prefix: "",
487
+ name: ""
488
+ };
489
+ return e.forEach((e) => {
490
+ if (r.name === e.name && r.prefix === e.prefix && r.provider === e.provider) return;
491
+ 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] = F(i, a)), l;
493
+ l = o in c.icons ? t.loaded : a === "" || c.missing.has(o) ? t.missing : t.pending;
494
+ let u = {
495
+ provider: i,
496
+ prefix: a,
497
+ name: o
498
+ };
499
+ l.push(u);
500
+ }), t;
501
+ }
502
+ function Ie(e, t = !0, n = !1) {
503
+ let r = [];
504
+ return e.forEach((e) => {
505
+ let i = typeof e == "string" ? C(e, t, n) : e;
506
+ i && r.push(i);
507
+ }), r;
508
+ }
509
+ var Le = {
510
+ resources: [],
511
+ index: 0,
512
+ timeout: 2e3,
513
+ rotate: 750,
514
+ random: !1,
515
+ dataAfterTimeout: !1
516
+ };
517
+ function Re(e, t, n, r) {
518
+ let i = e.resources.length, a = e.random ? Math.floor(Math.random() * i) : e.index, o;
519
+ if (e.random) {
520
+ let t = e.resources.slice(0);
521
+ for (o = []; t.length > 1;) {
522
+ let e = Math.floor(Math.random() * t.length);
523
+ o.push(t[e]), t = t.slice(0, e).concat(t.slice(e + 1));
524
+ }
525
+ o = o.concat(t);
526
+ } else o = e.resources.slice(a).concat(e.resources.slice(0, a));
527
+ let s = Date.now(), c = "pending", l = 0, u, d = null, f = [], p = [];
528
+ typeof r == "function" && p.push(r);
529
+ function m() {
530
+ d &&= (clearTimeout(d), null);
531
+ }
532
+ function h() {
533
+ c === "pending" && (c = "aborted"), m(), f.forEach((e) => {
534
+ e.status === "pending" && (e.status = "aborted");
535
+ }), f = [];
536
+ }
537
+ function g(e, t) {
538
+ t && (p = []), typeof e == "function" && p.push(e);
539
+ }
540
+ function _() {
541
+ return {
542
+ startTime: s,
543
+ payload: t,
544
+ status: c,
545
+ queriesSent: l,
546
+ queriesPending: f.length,
547
+ subscribe: g,
548
+ abort: h
549
+ };
550
+ }
551
+ function v() {
552
+ c = "failed", p.forEach((e) => {
553
+ e(void 0, u);
554
+ });
555
+ }
556
+ function y() {
557
+ f.forEach((e) => {
558
+ e.status === "pending" && (e.status = "aborted");
559
+ }), f = [];
560
+ }
561
+ function b(t, n, r) {
562
+ let i = n !== "success";
563
+ switch (f = f.filter((e) => e !== t), c) {
564
+ case "pending": break;
565
+ case "failed":
566
+ if (i || !e.dataAfterTimeout) return;
567
+ break;
568
+ default: return;
569
+ }
570
+ if (n === "abort") {
571
+ u = r, v();
572
+ return;
573
+ }
574
+ if (i) {
575
+ u = r, f.length || (o.length ? x() : v());
576
+ return;
577
+ }
578
+ if (m(), y(), !e.random) {
579
+ let n = e.resources.indexOf(t.resource);
580
+ n !== -1 && n !== e.index && (e.index = n);
581
+ }
582
+ c = "completed", p.forEach((e) => {
583
+ e(r);
584
+ });
585
+ }
586
+ function x() {
587
+ if (c !== "pending") return;
588
+ m();
589
+ let r = o.shift();
590
+ if (r === void 0) {
591
+ if (f.length) {
592
+ d = setTimeout(() => {
593
+ m(), c === "pending" && (y(), v());
594
+ }, e.timeout);
595
+ return;
596
+ }
597
+ v();
598
+ return;
599
+ }
600
+ let i = {
601
+ status: "pending",
602
+ resource: r,
603
+ callback: (e, t) => {
604
+ b(i, e, t);
605
+ }
606
+ };
607
+ f.push(i), l++, d = setTimeout(x, e.rotate), n(r, t, i.callback);
608
+ }
609
+ return setTimeout(x), _;
610
+ }
611
+ function ze(e) {
612
+ let t = {
613
+ ...Le,
614
+ ...e
615
+ }, n = [];
616
+ function r() {
617
+ n = n.filter((e) => e().status === "pending");
618
+ }
619
+ function i(e, i, a) {
620
+ let o = Re(t, e, i, (e, t) => {
621
+ r(), a && a(e, t);
622
+ });
623
+ return n.push(o), o;
624
+ }
625
+ function a(e) {
626
+ return n.find((t) => e(t)) || null;
627
+ }
628
+ return {
629
+ query: i,
630
+ find: a,
631
+ setIndex: (e) => {
632
+ t.index = e;
633
+ },
634
+ getIndex: () => t.index,
635
+ cleanup: r
636
+ };
637
+ }
638
+ function Be() {}
639
+ var G = Object.create(null);
640
+ function Ve(e) {
641
+ if (!G[e]) {
642
+ let t = W(e);
643
+ if (!t) return;
644
+ G[e] = {
645
+ config: t,
646
+ redundancy: ze(t)
647
+ };
648
+ }
649
+ return G[e];
650
+ }
651
+ function He(e, t, n) {
652
+ let r, i;
653
+ if (typeof e == "string") {
654
+ let t = z(e);
655
+ if (!t) return n(void 0, 424), Be;
656
+ i = t.send;
657
+ let a = Ve(e);
658
+ a && (r = a.redundancy);
659
+ } else {
660
+ let t = B(e);
661
+ if (t) {
662
+ r = ze(t);
663
+ let n = z(e.resources ? e.resources[0] : "");
664
+ n && (i = n.send);
665
+ }
666
+ }
667
+ return !r || !i ? (n(void 0, 424), Be) : r.query(t, i, n)().abort;
668
+ }
669
+ function Ue() {}
670
+ function We(e) {
671
+ e.iconsLoaderFlag || (e.iconsLoaderFlag = !0, setTimeout(() => {
672
+ e.iconsLoaderFlag = !1, Me(e);
673
+ }));
674
+ }
675
+ function Ge(e) {
676
+ let t = [], n = [];
677
+ return e.forEach((e) => {
678
+ (e.match(S) ? t : n).push(e);
679
+ }), {
680
+ valid: t,
681
+ invalid: n
682
+ };
683
+ }
684
+ function K(e, t, n) {
685
+ function r() {
686
+ let n = e.pendingIcons;
687
+ t.forEach((t) => {
688
+ n && n.delete(t), e.icons[t] || e.missing.add(t);
689
+ });
690
+ }
691
+ if (n && typeof n == "object") try {
692
+ if (!I(e, n).length) {
693
+ r();
694
+ return;
695
+ }
696
+ } catch (e) {
697
+ console.error(e);
698
+ }
699
+ r(), We(e);
700
+ }
701
+ function Ke(e, t) {
702
+ e instanceof Promise ? e.then((e) => {
703
+ t(e);
704
+ }).catch(() => {
705
+ t(null);
706
+ }) : t(e);
707
+ }
708
+ function qe(e, t) {
709
+ e.iconsToLoad ? e.iconsToLoad = e.iconsToLoad.concat(t).sort() : e.iconsToLoad = t, e.iconsQueueFlag || (e.iconsQueueFlag = !0, setTimeout(() => {
710
+ e.iconsQueueFlag = !1;
711
+ let { provider: t, prefix: n } = e, r = e.iconsToLoad;
712
+ if (delete e.iconsToLoad, !r || !r.length) return;
713
+ let i = e.loadIcon;
714
+ if (e.loadIcons && (r.length > 1 || !i)) {
715
+ Ke(e.loadIcons(r, n, t), (t) => {
716
+ K(e, r, t);
717
+ });
718
+ return;
719
+ }
720
+ if (i) {
721
+ r.forEach((r) => {
722
+ Ke(i(r, n, t), (t) => {
723
+ K(e, [r], t ? {
724
+ prefix: n,
725
+ icons: { [r]: t }
726
+ } : null);
727
+ });
728
+ });
729
+ return;
730
+ }
731
+ let { valid: a, invalid: o } = Ge(r);
732
+ if (o.length && K(e, o, null), !a.length) return;
733
+ let s = n.match(S) ? z(t) : null;
734
+ if (!s) {
735
+ K(e, a, null);
736
+ return;
737
+ }
738
+ s.prepare(t, n, a).forEach((n) => {
739
+ He(t, n, (t) => {
740
+ K(e, n.icons, t);
741
+ });
742
+ });
743
+ }));
744
+ }
745
+ var Je = (e, t) => {
746
+ let n = Fe(Ie(e, !0, ae()));
747
+ if (!n.pending.length) {
748
+ let e = !0;
749
+ return t && setTimeout(() => {
750
+ e && t(n.loaded, n.missing, n.pending, Ue);
751
+ }), () => {
752
+ e = !1;
753
+ };
754
+ }
755
+ let r = Object.create(null), i = [], a, o;
756
+ return n.pending.forEach((e) => {
757
+ let { provider: t, prefix: n } = e;
758
+ if (n === o && t === a) return;
759
+ a = t, o = n, i.push(F(t, n));
760
+ let s = r[t] || (r[t] = Object.create(null));
761
+ s[n] || (s[n] = []);
762
+ }), n.pending.forEach((e) => {
763
+ let { provider: t, prefix: n, name: i } = e, a = F(t, n), o = a.pendingIcons ||= /* @__PURE__ */ new Set();
764
+ o.has(i) || (o.add(i), r[t][n].push(i));
765
+ }), i.forEach((e) => {
766
+ let t = r[e.provider][e.prefix];
767
+ t.length && qe(e, t);
768
+ }), t ? Pe(t, n, i) : Ue;
769
+ };
770
+ function Ye(e, t) {
771
+ let n = { ...e };
772
+ for (let e in t) {
773
+ let r = t[e], i = typeof r;
774
+ e in le ? (r === null || r && (i === "string" || i === "number")) && (n[e] = r) : i === typeof n[e] && (n[e] = e === "rotate" ? r % 4 : r);
775
+ }
776
+ return n;
777
+ }
778
+ var Xe = /[\s,]+/;
779
+ function Ze(e, t) {
780
+ t.split(Xe).forEach((t) => {
781
+ switch (t.trim()) {
782
+ case "horizontal":
783
+ e.hFlip = !0;
784
+ break;
785
+ case "vertical":
786
+ e.vFlip = !0;
787
+ break;
788
+ }
789
+ });
790
+ }
791
+ function Qe(e, t = 0) {
792
+ let n = e.replace(/^-?[0-9.]*/, "");
793
+ function r(e) {
794
+ for (; e < 0;) e += 4;
795
+ return e % 4;
796
+ }
797
+ if (n === "") {
798
+ let t = parseInt(e);
799
+ return isNaN(t) ? 0 : r(t);
800
+ } else if (n !== e) {
801
+ let t = 0;
802
+ switch (n) {
803
+ case "%":
804
+ t = 25;
805
+ break;
806
+ case "deg": t = 90;
807
+ }
808
+ if (t) {
809
+ let i = parseFloat(e.slice(0, e.length - n.length));
810
+ return isNaN(i) ? 0 : (i /= t, i % 1 == 0 ? r(i) : 0);
811
+ }
812
+ }
813
+ return t;
814
+ }
815
+ function $e(e, t) {
816
+ let n = e.indexOf("xlink:") === -1 ? "" : " xmlns:xlink=\"http://www.w3.org/1999/xlink\"";
817
+ for (let e in t) n += " " + e + "=\"" + t[e] + "\"";
818
+ return "<svg xmlns=\"http://www.w3.org/2000/svg\"" + n + ">" + e + "</svg>";
819
+ }
820
+ function et(e) {
821
+ return e.replace(/"/g, "'").replace(/%/g, "%25").replace(/#/g, "%23").replace(/</g, "%3C").replace(/>/g, "%3E").replace(/\s+/g, " ");
822
+ }
823
+ function tt(e) {
824
+ return "data:image/svg+xml," + et(e);
825
+ }
826
+ function nt(e) {
827
+ return "url(\"" + tt(e) + "\")";
828
+ }
829
+ var rt = {
830
+ ...ue,
831
+ inline: !1
832
+ }, it = {
833
+ xmlns: "http://www.w3.org/2000/svg",
834
+ "xmlns:xlink": "http://www.w3.org/1999/xlink",
835
+ "aria-hidden": !0,
836
+ role: "img"
837
+ }, at = { display: "inline-block" }, q = { backgroundColor: "currentColor" }, ot = { backgroundColor: "transparent" }, st = {
838
+ Image: "var(--svg)",
839
+ Repeat: "no-repeat",
840
+ Size: "100% 100%"
841
+ }, ct = {
842
+ webkitMask: q,
843
+ mask: q,
844
+ background: ot
845
+ };
846
+ for (let e in ct) {
847
+ let t = ct[e];
848
+ for (let n in st) t[e + n] = st[n];
849
+ }
850
+ var J = {};
851
+ ["horizontal", "vertical"].forEach((e) => {
852
+ let t = e.slice(0, 1) + "Flip";
853
+ J[e + "-flip"] = t, J[e.slice(0, 1) + "-flip"] = t, J[e + "Flip"] = t;
854
+ });
855
+ function lt(e) {
856
+ return e + (e.match(/^[-0-9.]+$/) ? "px" : "");
857
+ }
858
+ var ut = (e, t) => {
859
+ let n = Ye(rt, t), r = { ...it }, i = t.mode || "svg", a = {}, o = t.style, s = typeof o == "object" && !(o instanceof Array) ? o : {};
860
+ for (let e in t) {
861
+ let i = t[e];
862
+ if (i !== void 0) switch (e) {
863
+ case "icon":
864
+ case "style":
865
+ case "onLoad":
866
+ case "mode":
867
+ case "ssr":
868
+ case "customise": break;
869
+ case "inline":
870
+ case "hFlip":
871
+ case "vFlip":
872
+ n[e] = i === !0 || i === "true" || i === 1;
873
+ break;
874
+ case "flip":
875
+ typeof i == "string" && Ze(n, i);
876
+ break;
877
+ case "color":
878
+ a.color = i;
879
+ break;
880
+ case "rotate":
881
+ typeof i == "string" ? n[e] = Qe(i) : typeof i == "number" && (n[e] = i);
882
+ break;
883
+ case "ariaHidden":
884
+ case "aria-hidden":
885
+ i !== !0 && i !== "true" && delete r["aria-hidden"];
886
+ break;
887
+ default: {
888
+ let t = J[e];
889
+ t ? (i === !0 || i === "true" || i === 1) && (n[t] = !0) : rt[e] === void 0 && (r[e] = i);
890
+ }
891
+ }
892
+ }
893
+ let c = ve(e, n), u = c.attributes;
894
+ if (n.inline && (a.verticalAlign = "-0.125em"), i === "svg") return r.style = {
895
+ ...a,
896
+ ...s
897
+ }, Object.assign(r, u), r.innerHTML = Se(c.body), l("svg", r);
898
+ let { body: d, width: f, height: p } = e, m = i === "mask" || (i === "bg" ? !1 : d.indexOf("currentColor") !== -1), h = $e(d, {
899
+ ...u,
900
+ width: f + "",
901
+ height: p + ""
902
+ });
903
+ return r.style = {
904
+ ...a,
905
+ "--svg": nt(h),
906
+ width: lt(u.width),
907
+ height: lt(u.height),
908
+ ...at,
909
+ ...m ? q : ot,
910
+ ...s
911
+ }, l("span", r);
912
+ };
913
+ if (ae(!0), Ce("", Ae), typeof document < "u" && typeof window < "u") {
914
+ let e = window;
915
+ if (e.IconifyPreload !== void 0) {
916
+ let t = e.IconifyPreload, n = "Invalid IconifyPreload syntax.";
917
+ typeof t == "object" && t && (t instanceof Array ? t : [t]).forEach((e) => {
918
+ try {
919
+ (typeof e != "object" || !e || e instanceof Array || typeof e.icons != "object" || typeof e.prefix != "string" || !ce(e)) && console.error(n);
920
+ } catch {
921
+ console.error(n);
922
+ }
923
+ });
924
+ }
925
+ if (e.IconifyProviders !== void 0) {
926
+ let t = e.IconifyProviders;
927
+ if (typeof t == "object" && t) for (let e in t) {
928
+ let n = "IconifyProviders[" + e + "] is invalid.";
929
+ try {
930
+ let r = t[e];
931
+ if (typeof r != "object" || !r || r.resources === void 0) continue;
932
+ we(e, r) || console.error(n);
933
+ } catch {
934
+ console.error(n);
935
+ }
936
+ }
937
+ }
938
+ }
939
+ var dt = {
940
+ ...O,
941
+ body: ""
942
+ }, ft = s((e, { emit: t }) => {
943
+ let n = _(null);
944
+ function r() {
945
+ n.value &&= (n.value.abort?.(), null);
946
+ }
947
+ let i = _(!!e.ssr), a = _(""), o = v(null);
948
+ function s() {
949
+ let i = e.icon;
950
+ if (typeof i == "object" && i && typeof i.body == "string") return a.value = "", { data: i };
951
+ let o;
952
+ if (typeof i != "string" || (o = C(i, !1, !0)) === null) return null;
953
+ let s = oe(o);
954
+ if (!s) {
955
+ let e = n.value;
956
+ return (!e || e.name !== i) && (s === null ? n.value = { name: i } : n.value = {
957
+ name: i,
958
+ abort: Je([o], c)
959
+ }), null;
960
+ }
961
+ r(), a.value !== i && (a.value = i, f(() => {
962
+ t("load", i);
963
+ }));
964
+ let l = e.customise;
965
+ if (l) {
966
+ s = Object.assign({}, s);
967
+ let e = l(s.body, o.name, o.prefix, o.provider);
968
+ typeof e == "string" && (s.body = e);
969
+ }
970
+ let u = ["iconify"];
971
+ return o.prefix !== "" && u.push("iconify--" + o.prefix), o.provider !== "" && u.push("iconify--" + o.provider), {
972
+ data: s,
973
+ classes: u
974
+ };
975
+ }
976
+ function c() {
977
+ let e = s();
978
+ e ? e.data !== o.value?.data && (o.value = e) : o.value = null;
979
+ }
980
+ return i.value ? c() : m(() => {
981
+ i.value = !0, c();
982
+ }), y(() => e.icon, c), h(r), () => {
983
+ let t = o.value;
984
+ if (!t) return ut(dt, e);
985
+ let n = e;
986
+ return t.classes && (n = {
987
+ ...e,
988
+ class: t.classes.join(" ")
989
+ }), ut({
990
+ ...O,
991
+ ...t.data
992
+ }, n);
993
+ };
994
+ }, {
995
+ props: [
996
+ "icon",
997
+ "mode",
998
+ "ssr",
999
+ "width",
1000
+ "height",
1001
+ "style",
1002
+ "color",
1003
+ "inline",
1004
+ "rotate",
1005
+ "hFlip",
1006
+ "horizontalFlip",
1007
+ "vFlip",
1008
+ "verticalFlip",
1009
+ "flip",
1010
+ "id",
1011
+ "ariaHidden",
1012
+ "customise",
1013
+ "title"
1014
+ ],
1015
+ emits: ["load"]
1016
+ }), pt = {
1017
+ locale: "zh-CN",
1018
+ Modal: {
1019
+ okText: "确 定",
1020
+ cancelText: "取 消",
1021
+ justOkText: "知道了"
1022
+ },
1023
+ Popconfirm: {
1024
+ okText: "确 定",
1025
+ cancelText: "取 消"
1026
+ },
1027
+ Empty: { description: "暂无数据" },
1028
+ AutoComplete: { notFoundContent: "暂无数据" },
1029
+ Mentions: { notFoundContent: "暂无数据" },
1030
+ Cascader: { notFoundContent: "暂无数据" },
1031
+ TreeSelect: { notFoundContent: "暂无数据" },
1032
+ Select: { notFoundContent: "暂无数据" },
1033
+ Pagination: {
1034
+ itemsPerPage: "条/页",
1035
+ jumpTo: "跳至",
1036
+ page: "页",
1037
+ prevPage: "上一页",
1038
+ nextPage: "下一页",
1039
+ total: "共 {total} 条"
1040
+ },
1041
+ Image: {
1042
+ loading: "加载中",
1043
+ error: "加载失败"
1044
+ },
1045
+ DatePicker: {
1046
+ placeholder: "请选择日期",
1047
+ rangePlaceholder: ["开始日期", "结束日期"],
1048
+ timePlaceholder: "请选择时间",
1049
+ weekdaysShort: [
1050
+ "日",
1051
+ "一",
1052
+ "二",
1053
+ "三",
1054
+ "四",
1055
+ "五",
1056
+ "六"
1057
+ ],
1058
+ panelLabelFormat: "YYYY 年 M 月",
1059
+ monthNamesShort: [
1060
+ "1 月",
1061
+ "2 月",
1062
+ "3 月",
1063
+ "4 月",
1064
+ "5 月",
1065
+ "6 月",
1066
+ "7 月",
1067
+ "8 月",
1068
+ "9 月",
1069
+ "10 月",
1070
+ "11 月",
1071
+ "12 月"
1072
+ ],
1073
+ quarterNames: [
1074
+ "一季度",
1075
+ "二季度",
1076
+ "三季度",
1077
+ "四季度"
1078
+ ],
1079
+ weekFormat: "{weekYear} 年第 {weekNumber} 周",
1080
+ weekHeader: "周",
1081
+ now: "此刻",
1082
+ ok: "确定",
1083
+ prevYearLabel: "前一年",
1084
+ prevMonthLabel: "上个月",
1085
+ nextYearLabel: "后一年",
1086
+ nextMonthLabel: "下个月",
1087
+ clearLabel: "清除"
1088
+ }
1089
+ }, mt = Symbol("ccui-config");
1090
+ //#endregion
1091
+ //#region ../ccui/ui/config-provider/src/config-provider.tsx
1092
+ function ht() {
1093
+ return u(mt, {
1094
+ prefixCls: "ccui",
1095
+ componentSize: "middle",
1096
+ locale: pt,
1097
+ direction: "ltr",
1098
+ theme: void 0,
1099
+ iconPrefixCls: "ccui-icon"
1100
+ });
1101
+ }
1102
+ //#endregion
1103
+ //#region ../ccui/ui/shared/hooks/use-deprecation-warning.ts
1104
+ var gt = /* @__PURE__ */ new Set();
1105
+ function Y(e, t, n) {
1106
+ let r = `${e}.${t}`;
1107
+ gt.has(r) || (gt.add(r), typeof console < "u" && console.warn(`[ccui][${e}] ${t} 已 deprecated,请改用 ${n}。`));
1108
+ }
1109
+ function X(e, t, n) {
1110
+ return e ? Object.prototype.hasOwnProperty.call(e, t) || Object.prototype.hasOwnProperty.call(e, n) : !1;
1111
+ }
1112
+ //#endregion
1113
+ //#region ../ccui/ui/modal/src/modal-types.ts
1114
+ var _t = {
1115
+ visible: {
1116
+ type: Boolean,
1117
+ default: !1
1118
+ },
1119
+ open: {
1120
+ type: Boolean,
1121
+ default: void 0
1122
+ },
1123
+ title: {
1124
+ type: String,
1125
+ default: ""
1126
+ },
1127
+ width: {
1128
+ type: [Number, String],
1129
+ default: 520
1130
+ },
1131
+ closable: {
1132
+ type: [Boolean, Object],
1133
+ default: !0
1134
+ },
1135
+ maskClosable: {
1136
+ type: Boolean,
1137
+ default: !0
1138
+ },
1139
+ closeOnEsc: {
1140
+ type: Boolean,
1141
+ default: !0
1142
+ },
1143
+ keyboard: {
1144
+ type: Boolean,
1145
+ default: void 0
1146
+ },
1147
+ centered: {
1148
+ type: Boolean,
1149
+ default: !1
1150
+ },
1151
+ mask: {
1152
+ type: Boolean,
1153
+ default: !0
1154
+ },
1155
+ okText: {
1156
+ type: String,
1157
+ default: ""
1158
+ },
1159
+ cancelText: {
1160
+ type: String,
1161
+ default: ""
1162
+ },
1163
+ okType: {
1164
+ type: String,
1165
+ default: "primary"
1166
+ },
1167
+ okLoading: {
1168
+ type: Boolean,
1169
+ default: !1
1170
+ },
1171
+ confirmLoading: {
1172
+ type: Boolean,
1173
+ default: void 0
1174
+ },
1175
+ hideFooter: {
1176
+ type: Boolean,
1177
+ default: !1
1178
+ },
1179
+ footer: {
1180
+ type: [
1181
+ String,
1182
+ Object,
1183
+ null
1184
+ ],
1185
+ default: void 0
1186
+ },
1187
+ destroyOnClose: {
1188
+ type: Boolean,
1189
+ default: !1
1190
+ },
1191
+ keepAlive: {
1192
+ type: Boolean,
1193
+ default: !1
1194
+ },
1195
+ zIndex: {
1196
+ type: Number,
1197
+ default: 1e3
1198
+ },
1199
+ appendToBody: {
1200
+ type: Boolean,
1201
+ default: !0
1202
+ },
1203
+ getContainer: {
1204
+ type: Function,
1205
+ default: void 0
1206
+ },
1207
+ wrapClassName: {
1208
+ type: String,
1209
+ default: ""
1210
+ },
1211
+ transitionName: {
1212
+ type: String,
1213
+ default: ""
1214
+ },
1215
+ maskTransitionName: {
1216
+ type: String,
1217
+ default: ""
1218
+ },
1219
+ focusTriggerAfterClose: {
1220
+ type: Boolean,
1221
+ default: !0
1222
+ },
1223
+ classNames: {
1224
+ type: Object,
1225
+ default: void 0
1226
+ },
1227
+ styles: {
1228
+ type: Object,
1229
+ default: void 0
1230
+ }
1231
+ };
1232
+ //#endregion
1233
+ //#region ../ccui/ui/modal/src/modal.tsx
1234
+ function vt(e) {
1235
+ return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !d(e);
1236
+ }
1237
+ function yt(e) {
1238
+ return e.includes(":");
1239
+ }
1240
+ function bt(e) {
1241
+ return typeof e == "object" && !!e && !Array.isArray(e);
1242
+ }
1243
+ var Z = /* @__PURE__ */ s({
1244
+ name: "CModal",
1245
+ props: _t,
1246
+ emits: [
1247
+ "update:visible",
1248
+ "update:open",
1249
+ "ok",
1250
+ "cancel",
1251
+ "close",
1252
+ "open",
1253
+ "opened",
1254
+ "closed",
1255
+ "after-open-change"
1256
+ ],
1257
+ setup(i, { emit: s, slots: l }) {
1258
+ let u = x("modal"), d = ht(), f = c()?.vnode.props;
1259
+ X(f, "visible", "visible") && Y("Modal", "visible", "open(v-model:open)"), X(f, "closeOnEsc", "close-on-esc") && Y("Modal", "closeOnEsc", "keyboard"), X(f, "okLoading", "ok-loading") && Y("Modal", "okLoading", "confirmLoading"), X(f, "hideFooter", "hide-footer") && Y("Modal", "hideFooter", "footer={null}"), X(f, "appendToBody", "append-to-body") && Y("Modal", "appendToBody", "getContainer");
1260
+ let m = r(() => i.open === void 0 ? i.visible : i.open), h = _(null), g = _(m.value || i.keepAlive), v = r(() => bt(i.closable) ? i.closable : null), b = r(() => {
1261
+ let e = i.closable;
1262
+ return typeof e == "boolean" ? e : e != null;
1263
+ }), S = r(() => !!v.value?.disabled), C = r(() => v.value?.ariaLabel || "Close"), w = r(() => i.keyboard === void 0 ? i.closeOnEsc : i.keyboard), T = r(() => i.confirmLoading === void 0 ? i.okLoading : i.confirmLoading), E = r(() => l.footer ? !1 : i.footer === null ? !0 : i.hideFooter), D = r(() => i.okText || d.locale?.Modal?.okText || "确 定"), O = r(() => i.cancelText || d.locale?.Modal?.cancelText || "取 消"), k = r(() => {
1264
+ let e = i.width;
1265
+ return typeof e == "number" ? `${e}px` : String(e);
1266
+ }), ee = (e) => {
1267
+ s("update:visible", e), s("update:open", e);
1268
+ }, A = () => {
1269
+ S.value || (ee(!1), s("close"));
1270
+ }, te = (e) => s("ok", e), j = (e) => {
1271
+ s("cancel", e), A();
1272
+ }, ne = () => {
1273
+ i.maskClosable && A();
1274
+ }, M = (e) => {
1275
+ e.key === "Escape" && w.value && m.value && A();
1276
+ }, N = () => {
1277
+ let e = document.body;
1278
+ if (e.dataset.ccuiModalCount) {
1279
+ e.dataset.ccuiModalCount = String(Number(e.dataset.ccuiModalCount) + 1);
1280
+ return;
1281
+ }
1282
+ e.dataset.ccuiModalCount = "1", e.dataset.ccuiOriginalOverflow = e.style.overflow, e.style.overflow = "hidden";
1283
+ }, P = () => {
1284
+ let e = document.body, t = Number(e.dataset.ccuiModalCount ?? 0) - 1;
1285
+ t <= 0 ? (e.style.overflow = e.dataset.ccuiOriginalOverflow ?? "", delete e.dataset.ccuiModalCount, delete e.dataset.ccuiOriginalOverflow) : e.dataset.ccuiModalCount = String(t);
1286
+ };
1287
+ y(m, (e) => {
1288
+ if (e) {
1289
+ if (typeof document < "u") {
1290
+ let e = document.activeElement;
1291
+ e instanceof HTMLElement && (h.value = e);
1292
+ }
1293
+ g.value = !0, N(), document.addEventListener("keydown", M), s("open");
1294
+ } else document.removeEventListener("keydown", M), P();
1295
+ s("after-open-change", e);
1296
+ }, { immediate: !0 }), p(() => {
1297
+ document.removeEventListener("keydown", M), m.value && P();
1298
+ });
1299
+ let re = () => s("opened"), F = () => {
1300
+ if (i.destroyOnClose && !i.keepAlive && (g.value = !1), i.focusTriggerAfterClose && h.value && document.body.contains(h.value)) try {
1301
+ h.value.focus({ preventScroll: !0 });
1302
+ } catch {}
1303
+ s("closed");
1304
+ }, I = () => {
1305
+ if (l["close-icon"]) return o(e, null, [l["close-icon"]()]);
1306
+ let t = v.value?.closeIcon;
1307
+ return t ? typeof t == "string" ? yt(t) ? o(ft, { icon: t }, null) : o("i", { class: t }, null) : t : o("span", null, [a("×")]);
1308
+ }, ie = () => {
1309
+ if (E.value) return null;
1310
+ let e = [u.e("footer"), i.classNames?.footer], t = i.styles?.footer;
1311
+ return l.footer ? o("div", {
1312
+ class: e,
1313
+ style: t
1314
+ }, [l.footer({
1315
+ ok: te,
1316
+ cancel: j
1317
+ })]) : typeof i.footer == "string" || i.footer && typeof i.footer == "object" ? o("div", {
1318
+ class: e,
1319
+ style: t
1320
+ }, [i.footer]) : o("div", {
1321
+ class: e,
1322
+ style: t
1323
+ }, [o("button", {
1324
+ class: [u.e("btn"), u.em("btn", "cancel")],
1325
+ onClick: j
1326
+ }, [O.value]), o("button", {
1327
+ class: [
1328
+ u.e("btn"),
1329
+ u.em("btn", i.okType),
1330
+ T.value && u.is("loading")
1331
+ ],
1332
+ disabled: T.value,
1333
+ onClick: te
1334
+ }, [T.value && o("span", { class: u.e("spinner") }, null), D.value])]);
1335
+ }, L = (e) => {
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
+ };
1342
+ 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", {
1344
+ class: [
1345
+ u.b(),
1346
+ i.centered && u.m("centered"),
1347
+ i.wrapClassName,
1348
+ i.classNames?.root
1349
+ ],
1350
+ style: [e, i.styles?.root],
1351
+ "aria-modal": "true",
1352
+ role: "dialog"
1353
+ }, [o(n, { name: r }, { default: () => [i.mask && m.value && o("div", {
1354
+ class: [u.e("mask"), i.classNames?.mask],
1355
+ style: i.styles?.mask,
1356
+ onClick: ne
1357
+ }, null)] }), o(n, {
1358
+ name: a,
1359
+ onAfterEnter: re,
1360
+ onAfterLeave: F
1361
+ }, { default: () => [m.value && o("div", {
1362
+ class: [u.e("wrap"), i.classNames?.wrap],
1363
+ style: i.styles?.wrap,
1364
+ onClick: (e) => {
1365
+ e.target === e.currentTarget && i.maskClosable && !i.mask && A();
1366
+ }
1367
+ }, [o("div", {
1368
+ class: u.e("content"),
1369
+ style: t
1370
+ }, [
1371
+ b.value && o("button", {
1372
+ class: [u.e("close"), S.value && u.is("disabled")],
1373
+ "aria-label": C.value,
1374
+ disabled: S.value,
1375
+ onClick: A
1376
+ }, [I()]),
1377
+ (i.title || l.title) && o("div", {
1378
+ class: [u.e("header"), i.classNames?.header],
1379
+ style: i.styles?.header
1380
+ }, [o("div", { class: u.e("title") }, [l.title ? l.title() : i.title])]),
1381
+ o("div", {
1382
+ class: [u.e("body"), i.classNames?.body],
1383
+ style: i.styles?.body
1384
+ }, [l.default?.()]),
1385
+ ie()
1386
+ ])])] })]);
1387
+ return i.destroyOnClose && !i.keepAlive && !g.value ? null : L(s);
1388
+ };
1389
+ }
1390
+ }), xt = {
1391
+ confirm: "?",
1392
+ info: "ⓘ",
1393
+ success: "✓",
1394
+ error: "✕",
1395
+ warning: "!"
1396
+ }, St = {
1397
+ confirm: "primary",
1398
+ info: "primary",
1399
+ success: "primary",
1400
+ error: "danger",
1401
+ warning: "primary"
1402
+ }, Ct = /* @__PURE__ */ new Set();
1403
+ function wt(t = {}, n) {
1404
+ let r = g({
1405
+ type: "confirm",
1406
+ ...t
1407
+ }), a = _(!0), c = _(!1), u = null, d = null, f = x("modal-confirm"), p = {
1408
+ destroy() {
1409
+ a.value = !1;
1410
+ },
1411
+ update(e) {
1412
+ let t = typeof e == "function" ? e({ ...r }) : e;
1413
+ Object.assign(r, t);
1414
+ }
1415
+ };
1416
+ Ct.add(p);
1417
+ let m = /* @__PURE__ */ s({
1418
+ name: "CModalConfirmInner",
1419
+ setup() {
1420
+ let t = () => {
1421
+ try {
1422
+ r.afterClose?.();
1423
+ } catch {}
1424
+ u &&= (u.unmount(), null), d && d.parentNode && (d.parentNode.removeChild(d), d = null), Ct.delete(p);
1425
+ }, n = () => {
1426
+ a.value = !1;
1427
+ }, i = async () => {
1428
+ if (c.value) return;
1429
+ let e = r.onOk?.();
1430
+ if (e && typeof e.then == "function") {
1431
+ c.value = !0;
1432
+ try {
1433
+ await e, n();
1434
+ } catch {} finally {
1435
+ c.value = !1;
1436
+ }
1437
+ return;
1438
+ }
1439
+ n();
1440
+ }, s = async () => {
1441
+ let e = r.onCancel?.();
1442
+ if (e && typeof e.then == "function") {
1443
+ try {
1444
+ await e, n();
1445
+ } catch {}
1446
+ return;
1447
+ }
1448
+ n();
1449
+ };
1450
+ return () => {
1451
+ let n = r.type ?? "confirm", u = r.okType ?? St[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)] }, [xt[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
+ class: ["ccui-modal__btn", "ccui-modal__btn--cancel"],
1453
+ onClick: s
1454
+ }, [p]), o("button", {
1455
+ class: [
1456
+ "ccui-modal__btn",
1457
+ `ccui-modal__btn--${u}`,
1458
+ c.value && "is-loading"
1459
+ ],
1460
+ disabled: c.value,
1461
+ onClick: i
1462
+ }, [c.value && o("span", { class: "ccui-modal__spinner" }, null), d])]);
1463
+ return l(Z, {
1464
+ open: a.value,
1465
+ "onUpdate:open": (e) => {
1466
+ a.value = e;
1467
+ },
1468
+ width: r.width ?? 416,
1469
+ centered: r.centered ?? !1,
1470
+ mask: r.mask ?? !0,
1471
+ maskClosable: r.maskClosable ?? !1,
1472
+ keyboard: r.keyboard ?? !0,
1473
+ closable: r.closable ?? !1,
1474
+ zIndex: r.zIndex,
1475
+ wrapClassName: r.wrapClassName,
1476
+ getContainer: r.getContainer,
1477
+ confirmLoading: c.value,
1478
+ onClosed: t
1479
+ }, {
1480
+ default: () => m,
1481
+ footer: () => h
1482
+ });
1483
+ };
1484
+ }
1485
+ });
1486
+ return d = document.createElement("div"), d.className = "ccui-modal-confirm-host", document.body.appendChild(d), u = i(m), n?.provides && (u._context.provides = {
1487
+ ...n.provides,
1488
+ ...u._context.provides
1489
+ }), n?.appContext && (u._context.components = {
1490
+ ...n.appContext.components,
1491
+ ...u._context.components
1492
+ }, u._context.directives = {
1493
+ ...n.appContext.directives,
1494
+ ...u._context.directives
1495
+ }, u._context.provides = {
1496
+ ...n.appContext.provides,
1497
+ ...u._context.provides
1498
+ }), u.mount(d), p;
1499
+ }
1500
+ function Tt() {
1501
+ Array.from(Ct).forEach((e) => e.destroy());
1502
+ }
1503
+ function Q(e) {
1504
+ return (t = {}, n) => wt({
1505
+ ...t,
1506
+ type: e
1507
+ }, n);
1508
+ }
1509
+ //#endregion
1510
+ //#region ../ccui/ui/modal/src/use-modal.ts
1511
+ function Et() {
1512
+ let e = c(), t = (t, n) => wt({
1513
+ ...n ? { type: n } : {},
1514
+ ...t
1515
+ }, {
1516
+ provides: e?.provides,
1517
+ appContext: e?.appContext
1518
+ });
1519
+ return {
1520
+ modal: {
1521
+ confirm: (e = {}) => t(e, "confirm"),
1522
+ info: (e = {}) => t(e, "info"),
1523
+ success: (e = {}) => t(e, "success"),
1524
+ error: (e = {}) => t(e, "error"),
1525
+ warning: (e = {}) => t(e, "warning")
1526
+ },
1527
+ holder: s({
1528
+ name: "CModalHolder",
1529
+ setup() {
1530
+ return () => null;
1531
+ }
1532
+ })
1533
+ };
1534
+ }
1535
+ //#endregion
1536
+ //#region ../ccui/ui/modal/index.ts
1537
+ var $ = Z;
1538
+ $.confirm = (e = {}) => wt({
1539
+ type: "confirm",
1540
+ ...e
1541
+ }), $.info = Q("info"), $.success = Q("success"), $.error = Q("error"), $.warning = Q("warning"), $.destroyAll = Tt, $.install = function(e) {
1542
+ e.component(Z.name, Z);
1543
+ };
1544
+ var Dt = {
1545
+ title: "Modal 对话框",
1546
+ category: "反馈",
1547
+ status: "100%",
1548
+ install(e) {
1549
+ e.component(Z.name, Z);
1550
+ }
1551
+ };
1552
+ //#endregion
1553
+ export { $ as Modal, Dt as default, Et as useModal };