sooyie-task 0.0.10 → 0.0.11

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 (28) hide show
  1. package/dist/{add-B4q1sdG4.mjs → add-DuZI-0rw.mjs} +10 -8
  2. package/dist/add-iEZo5s5C.mjs +4 -0
  3. package/dist/{add-sH-BWgn0.mjs → add.vue_vue_type_script_setup_true_lang-D46pjk8M.mjs} +145 -154
  4. package/dist/assets/7f3e996112b4923f.png +0 -0
  5. package/dist/{edit-CspvN839.mjs → edit-DvKXuCgK.mjs} +125 -135
  6. package/dist/{edit-CaWiv3Bu.mjs → edit-ww2K--dY.mjs} +33 -31
  7. package/dist/el-message-CajLrSgM.mjs +1370 -0
  8. package/dist/{index-BlznoarT.mjs → index-1LxoELHM.mjs} +94 -110
  9. package/dist/{index-DqgxALkk.mjs → index-CoroLg2B.mjs} +81 -81
  10. package/dist/{index-B_hFZVhb-C3Oi__-I.mjs → index-CsfOvnt4-CYkGp1YO.mjs} +736 -687
  11. package/dist/index-DVezr2bg.mjs +9358 -0
  12. package/dist/{index-BRMLJ2ar.mjs → index-DrhTfMmI.mjs} +20 -28
  13. package/dist/{index-BcYrJI8I.mjs → index-rQPWP-HJ.mjs} +1 -1
  14. package/dist/{index-WEwgqoRH.mjs → index-vh8fHlqF.mjs} +106 -118
  15. package/dist/index.mjs +2 -2
  16. package/dist/{index.vue_vue_type_script_setup_true_lang-BbHYN6H_.mjs → index.vue_vue_type_script_setup_true_lang-DVInku0F.mjs} +3 -3
  17. package/dist/info-BqqsNfP6.mjs +2029 -0
  18. package/dist/{report-DgEr-aXp.mjs → report-7UPImd_G.mjs} +26 -24
  19. package/dist/{report-info-CEYtaesO.mjs → report-info-CWhm1nL2.mjs} +4 -2
  20. package/dist/style.css +1 -1
  21. package/dts/src/api/index.d.ts +1 -0
  22. package/dts/src/api/task/task-define/index.d.ts +1 -2
  23. package/dts/src/api/task/task-define/types.d.ts +0 -11
  24. package/dts/src/constant.d.ts +1 -0
  25. package/package.json +10 -9
  26. package/dist/el-message-Bod6C9wB.mjs +0 -1252
  27. package/dist/index-DyMQey8N.mjs +0 -10483
  28. package/dist/info-DQHUz-Xv.mjs +0 -1992
@@ -0,0 +1,1370 @@
1
+ import { getCurrentInstance as z, inject as D, ref as w, computed as u, unref as c, readonly as ht, getCurrentScope as vt, onScopeDispose as bt, watch as te, onMounted as ke, isRef as _t, warn as Ct, provide as wt, defineComponent as ne, createElementBlock as X, openBlock as O, mergeProps as St, renderSlot as G, normalizeClass as E, createVNode as fe, Transition as Le, withCtx as Y, withDirectives as Fe, createElementVNode as le, normalizeStyle as Be, createTextVNode as Tt, toDisplayString as Ve, vShow as Re, shallowReactive as Ke, createBlock as R, createCommentVNode as W, resolveDynamicComponent as Ot, Fragment as Et, withModifiers as xt, nextTick as Nt, isVNode as Ge, render as Oe } from "vue";
2
+ import { i as Ee, c as $t, w as Pt, s as It, a as jt } from "./index-DaJ5KrbS.mjs";
3
+ var Dt = {
4
+ name: "en",
5
+ el: {
6
+ breadcrumb: {
7
+ label: "Breadcrumb"
8
+ },
9
+ colorpicker: {
10
+ confirm: "OK",
11
+ clear: "Clear",
12
+ defaultLabel: "color picker",
13
+ description: "current color is {color}. press enter to select a new color.",
14
+ alphaLabel: "pick alpha value",
15
+ alphaDescription: "alpha {alpha}, current color is {color}",
16
+ hueLabel: "pick hue value",
17
+ hueDescription: "hue {hue}, current color is {color}",
18
+ svLabel: "pick saturation and brightness value",
19
+ svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
20
+ predefineDescription: "select {value} as the color"
21
+ },
22
+ datepicker: {
23
+ now: "Now",
24
+ today: "Today",
25
+ cancel: "Cancel",
26
+ clear: "Clear",
27
+ confirm: "OK",
28
+ dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
29
+ monthTablePrompt: "Use the arrow keys and enter to select the month",
30
+ yearTablePrompt: "Use the arrow keys and enter to select the year",
31
+ selectedDate: "Selected date",
32
+ selectDate: "Select date",
33
+ selectTime: "Select time",
34
+ startDate: "Start Date",
35
+ startTime: "Start Time",
36
+ endDate: "End Date",
37
+ endTime: "End Time",
38
+ prevYear: "Previous Year",
39
+ nextYear: "Next Year",
40
+ prevMonth: "Previous Month",
41
+ nextMonth: "Next Month",
42
+ year: "",
43
+ month1: "January",
44
+ month2: "February",
45
+ month3: "March",
46
+ month4: "April",
47
+ month5: "May",
48
+ month6: "June",
49
+ month7: "July",
50
+ month8: "August",
51
+ month9: "September",
52
+ month10: "October",
53
+ month11: "November",
54
+ month12: "December",
55
+ weeks: {
56
+ sun: "Sun",
57
+ mon: "Mon",
58
+ tue: "Tue",
59
+ wed: "Wed",
60
+ thu: "Thu",
61
+ fri: "Fri",
62
+ sat: "Sat"
63
+ },
64
+ weeksFull: {
65
+ sun: "Sunday",
66
+ mon: "Monday",
67
+ tue: "Tuesday",
68
+ wed: "Wednesday",
69
+ thu: "Thursday",
70
+ fri: "Friday",
71
+ sat: "Saturday"
72
+ },
73
+ months: {
74
+ jan: "Jan",
75
+ feb: "Feb",
76
+ mar: "Mar",
77
+ apr: "Apr",
78
+ may: "May",
79
+ jun: "Jun",
80
+ jul: "Jul",
81
+ aug: "Aug",
82
+ sep: "Sep",
83
+ oct: "Oct",
84
+ nov: "Nov",
85
+ dec: "Dec"
86
+ }
87
+ },
88
+ inputNumber: {
89
+ decrease: "decrease number",
90
+ increase: "increase number"
91
+ },
92
+ select: {
93
+ loading: "Loading",
94
+ noMatch: "No matching data",
95
+ noData: "No data",
96
+ placeholder: "Select"
97
+ },
98
+ mention: {
99
+ loading: "Loading"
100
+ },
101
+ dropdown: {
102
+ toggleDropdown: "Toggle Dropdown"
103
+ },
104
+ cascader: {
105
+ noMatch: "No matching data",
106
+ loading: "Loading",
107
+ placeholder: "Select",
108
+ noData: "No data"
109
+ },
110
+ pagination: {
111
+ goto: "Go to",
112
+ pagesize: "/page",
113
+ total: "Total {total}",
114
+ pageClassifier: "",
115
+ page: "Page",
116
+ prev: "Go to previous page",
117
+ next: "Go to next page",
118
+ currentPage: "page {pager}",
119
+ prevPages: "Previous {pager} pages",
120
+ nextPages: "Next {pager} pages",
121
+ deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
122
+ },
123
+ dialog: {
124
+ close: "Close this dialog"
125
+ },
126
+ drawer: {
127
+ close: "Close this dialog"
128
+ },
129
+ messagebox: {
130
+ title: "Message",
131
+ confirm: "OK",
132
+ cancel: "Cancel",
133
+ error: "Illegal input",
134
+ close: "Close this dialog"
135
+ },
136
+ upload: {
137
+ deleteTip: "press delete to remove",
138
+ delete: "Delete",
139
+ preview: "Preview",
140
+ continue: "Continue"
141
+ },
142
+ slider: {
143
+ defaultLabel: "slider between {min} and {max}",
144
+ defaultRangeStartLabel: "pick start value",
145
+ defaultRangeEndLabel: "pick end value"
146
+ },
147
+ table: {
148
+ emptyText: "No Data",
149
+ confirmFilter: "Confirm",
150
+ resetFilter: "Reset",
151
+ clearFilter: "All",
152
+ sumText: "Sum",
153
+ selectAllLabel: "Select all rows",
154
+ selectRowLabel: "Select this row",
155
+ expandRowLabel: "Expand this row",
156
+ collapseRowLabel: "Collapse this row",
157
+ sortLabel: "Sort by {column}",
158
+ filterLabel: "Filter by {column}"
159
+ },
160
+ tag: {
161
+ close: "Close this tag"
162
+ },
163
+ tour: {
164
+ next: "Next",
165
+ previous: "Previous",
166
+ finish: "Finish",
167
+ close: "Close this dialog"
168
+ },
169
+ tree: {
170
+ emptyText: "No Data"
171
+ },
172
+ transfer: {
173
+ noMatch: "No matching data",
174
+ noData: "No data",
175
+ titles: ["List 1", "List 2"],
176
+ filterPlaceholder: "Enter keyword",
177
+ noCheckedFormat: "{total} items",
178
+ hasCheckedFormat: "{checked}/{total} checked"
179
+ },
180
+ image: {
181
+ error: "FAILED"
182
+ },
183
+ pageHeader: {
184
+ title: "Back"
185
+ },
186
+ popconfirm: {
187
+ confirmButtonText: "Yes",
188
+ cancelButtonText: "No"
189
+ },
190
+ carousel: {
191
+ leftArrow: "Carousel arrow left",
192
+ rightArrow: "Carousel arrow right",
193
+ indicator: "Carousel switch to index {index}"
194
+ }
195
+ }
196
+ };
197
+ const He = Symbol(), q = "el", At = "is-", x = (e, t, n, o, r) => {
198
+ let s = `${e}-${t}`;
199
+ return n && (s += `-${n}`), o && (s += `__${o}`), r && (s += `--${r}`), s;
200
+ }, Ue = Symbol("namespaceContextKey"), zt = (e) => {
201
+ const t = e || (z() ? D(Ue, w(q)) : w(q));
202
+ return u(() => c(t) || q);
203
+ }, me = (e, t) => {
204
+ const n = zt(t);
205
+ return {
206
+ namespace: n,
207
+ b: (l = "") => x(n.value, e, l, "", ""),
208
+ e: (l) => l ? x(n.value, e, "", l, "") : "",
209
+ m: (l) => l ? x(n.value, e, "", "", l) : "",
210
+ be: (l, f) => l && f ? x(n.value, e, l, f, "") : "",
211
+ em: (l, f) => l && f ? x(n.value, e, "", l, f) : "",
212
+ bm: (l, f) => l && f ? x(n.value, e, l, "", f) : "",
213
+ bem: (l, f, b) => l && f && b ? x(n.value, e, l, f, b) : "",
214
+ is: (l, ...f) => {
215
+ const b = f.length >= 1 ? f[0] : !0;
216
+ return l && b ? `${At}${l}` : "";
217
+ },
218
+ cssVar: (l) => {
219
+ const f = {};
220
+ for (const b in l)
221
+ l[b] && (f[`--${n.value}-${b}`] = l[b]);
222
+ return f;
223
+ },
224
+ cssVarName: (l) => `--${n.value}-${l}`,
225
+ cssVarBlock: (l) => {
226
+ const f = {};
227
+ for (const b in l)
228
+ l[b] && (f[`--${n.value}-${e}-${b}`] = l[b]);
229
+ return f;
230
+ },
231
+ cssVarBlockName: (l) => `--${n.value}-${e}-${l}`
232
+ };
233
+ };
234
+ /**
235
+ * @vue/shared v3.5.27
236
+ * (c) 2018-present Yuxi (Evan) You and Vue contributors
237
+ * @license MIT
238
+ **/
239
+ process.env.NODE_ENV !== "production" && Object.freeze({});
240
+ process.env.NODE_ENV !== "production" && Object.freeze([]);
241
+ const Mt = Object.prototype.hasOwnProperty, ce = (e, t) => Mt.call(e, t), kt = Array.isArray, Q = (e) => typeof e == "function", k = (e) => typeof e == "string", Ze = (e) => e !== null && typeof e == "object";
242
+ var Lt = typeof global == "object" && global && global.Object === Object && global, Ft = typeof self == "object" && self && self.Object === Object && self, ge = Lt || Ft || Function("return this")(), M = ge.Symbol, Je = Object.prototype, Bt = Je.hasOwnProperty, Vt = Je.toString, K = M ? M.toStringTag : void 0;
243
+ function Rt(e) {
244
+ var t = Bt.call(e, K), n = e[K];
245
+ try {
246
+ e[K] = void 0;
247
+ var o = !0;
248
+ } catch {
249
+ }
250
+ var r = Vt.call(e);
251
+ return o && (t ? e[K] = n : delete e[K]), r;
252
+ }
253
+ var Kt = Object.prototype, Gt = Kt.toString;
254
+ function Ht(e) {
255
+ return Gt.call(e);
256
+ }
257
+ var Ut = "[object Null]", Zt = "[object Undefined]", xe = M ? M.toStringTag : void 0;
258
+ function We(e) {
259
+ return e == null ? e === void 0 ? Zt : Ut : xe && xe in Object(e) ? Rt(e) : Ht(e);
260
+ }
261
+ function Jt(e) {
262
+ return e != null && typeof e == "object";
263
+ }
264
+ var Wt = "[object Symbol]";
265
+ function ye(e) {
266
+ return typeof e == "symbol" || Jt(e) && We(e) == Wt;
267
+ }
268
+ function Yt(e, t) {
269
+ for (var n = -1, o = e == null ? 0 : e.length, r = Array(o); ++n < o; )
270
+ r[n] = t(e[n], n, e);
271
+ return r;
272
+ }
273
+ var he = Array.isArray, Ne = M ? M.prototype : void 0, $e = Ne ? Ne.toString : void 0;
274
+ function Ye(e) {
275
+ if (typeof e == "string")
276
+ return e;
277
+ if (he(e))
278
+ return Yt(e, Ye) + "";
279
+ if (ye(e))
280
+ return $e ? $e.call(e) : "";
281
+ var t = e + "";
282
+ return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
283
+ }
284
+ function qe(e) {
285
+ var t = typeof e;
286
+ return e != null && (t == "object" || t == "function");
287
+ }
288
+ var qt = "[object AsyncFunction]", Xt = "[object Function]", Qt = "[object GeneratorFunction]", en = "[object Proxy]";
289
+ function tn(e) {
290
+ if (!qe(e))
291
+ return !1;
292
+ var t = We(e);
293
+ return t == Xt || t == Qt || t == qt || t == en;
294
+ }
295
+ var ae = ge["__core-js_shared__"], Pe = function() {
296
+ var e = /[^.]+$/.exec(ae && ae.keys && ae.keys.IE_PROTO || "");
297
+ return e ? "Symbol(src)_1." + e : "";
298
+ }();
299
+ function nn(e) {
300
+ return !!Pe && Pe in e;
301
+ }
302
+ var on = Function.prototype, rn = on.toString;
303
+ function sn(e) {
304
+ if (e != null) {
305
+ try {
306
+ return rn.call(e);
307
+ } catch {
308
+ }
309
+ try {
310
+ return e + "";
311
+ } catch {
312
+ }
313
+ }
314
+ return "";
315
+ }
316
+ var an = /[\\^$.*+?()[\]{}|]/g, ln = /^\[object .+?Constructor\]$/, cn = Function.prototype, un = Object.prototype, pn = cn.toString, dn = un.hasOwnProperty, fn = RegExp(
317
+ "^" + pn.call(dn).replace(an, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
318
+ );
319
+ function mn(e) {
320
+ if (!qe(e) || nn(e))
321
+ return !1;
322
+ var t = tn(e) ? fn : ln;
323
+ return t.test(sn(e));
324
+ }
325
+ function gn(e, t) {
326
+ return e == null ? void 0 : e[t];
327
+ }
328
+ function Xe(e, t) {
329
+ var n = gn(e, t);
330
+ return mn(n) ? n : void 0;
331
+ }
332
+ function yn(e, t) {
333
+ return e === t || e !== e && t !== t;
334
+ }
335
+ var hn = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, vn = /^\w*$/;
336
+ function bn(e, t) {
337
+ if (he(e))
338
+ return !1;
339
+ var n = typeof e;
340
+ return n == "number" || n == "symbol" || n == "boolean" || e == null || ye(e) ? !0 : vn.test(e) || !hn.test(e) || t != null && e in Object(t);
341
+ }
342
+ var H = Xe(Object, "create");
343
+ function _n() {
344
+ this.__data__ = H ? H(null) : {}, this.size = 0;
345
+ }
346
+ function Cn(e) {
347
+ var t = this.has(e) && delete this.__data__[e];
348
+ return this.size -= t ? 1 : 0, t;
349
+ }
350
+ var wn = "__lodash_hash_undefined__", Sn = Object.prototype, Tn = Sn.hasOwnProperty;
351
+ function On(e) {
352
+ var t = this.__data__;
353
+ if (H) {
354
+ var n = t[e];
355
+ return n === wn ? void 0 : n;
356
+ }
357
+ return Tn.call(t, e) ? t[e] : void 0;
358
+ }
359
+ var En = Object.prototype, xn = En.hasOwnProperty;
360
+ function Nn(e) {
361
+ var t = this.__data__;
362
+ return H ? t[e] !== void 0 : xn.call(t, e);
363
+ }
364
+ var $n = "__lodash_hash_undefined__";
365
+ function Pn(e, t) {
366
+ var n = this.__data__;
367
+ return this.size += this.has(e) ? 0 : 1, n[e] = H && t === void 0 ? $n : t, this;
368
+ }
369
+ function N(e) {
370
+ var t = -1, n = e == null ? 0 : e.length;
371
+ for (this.clear(); ++t < n; ) {
372
+ var o = e[t];
373
+ this.set(o[0], o[1]);
374
+ }
375
+ }
376
+ N.prototype.clear = _n;
377
+ N.prototype.delete = Cn;
378
+ N.prototype.get = On;
379
+ N.prototype.has = Nn;
380
+ N.prototype.set = Pn;
381
+ function In() {
382
+ this.__data__ = [], this.size = 0;
383
+ }
384
+ function oe(e, t) {
385
+ for (var n = e.length; n--; )
386
+ if (yn(e[n][0], t))
387
+ return n;
388
+ return -1;
389
+ }
390
+ var jn = Array.prototype, Dn = jn.splice;
391
+ function An(e) {
392
+ var t = this.__data__, n = oe(t, e);
393
+ if (n < 0)
394
+ return !1;
395
+ var o = t.length - 1;
396
+ return n == o ? t.pop() : Dn.call(t, n, 1), --this.size, !0;
397
+ }
398
+ function zn(e) {
399
+ var t = this.__data__, n = oe(t, e);
400
+ return n < 0 ? void 0 : t[n][1];
401
+ }
402
+ function Mn(e) {
403
+ return oe(this.__data__, e) > -1;
404
+ }
405
+ function kn(e, t) {
406
+ var n = this.__data__, o = oe(n, e);
407
+ return o < 0 ? (++this.size, n.push([e, t])) : n[o][1] = t, this;
408
+ }
409
+ function L(e) {
410
+ var t = -1, n = e == null ? 0 : e.length;
411
+ for (this.clear(); ++t < n; ) {
412
+ var o = e[t];
413
+ this.set(o[0], o[1]);
414
+ }
415
+ }
416
+ L.prototype.clear = In;
417
+ L.prototype.delete = An;
418
+ L.prototype.get = zn;
419
+ L.prototype.has = Mn;
420
+ L.prototype.set = kn;
421
+ var Ln = Xe(ge, "Map");
422
+ function Fn() {
423
+ this.size = 0, this.__data__ = {
424
+ hash: new N(),
425
+ map: new (Ln || L)(),
426
+ string: new N()
427
+ };
428
+ }
429
+ function Bn(e) {
430
+ var t = typeof e;
431
+ return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
432
+ }
433
+ function re(e, t) {
434
+ var n = e.__data__;
435
+ return Bn(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
436
+ }
437
+ function Vn(e) {
438
+ var t = re(this, e).delete(e);
439
+ return this.size -= t ? 1 : 0, t;
440
+ }
441
+ function Rn(e) {
442
+ return re(this, e).get(e);
443
+ }
444
+ function Kn(e) {
445
+ return re(this, e).has(e);
446
+ }
447
+ function Gn(e, t) {
448
+ var n = re(this, e), o = n.size;
449
+ return n.set(e, t), this.size += n.size == o ? 0 : 1, this;
450
+ }
451
+ function I(e) {
452
+ var t = -1, n = e == null ? 0 : e.length;
453
+ for (this.clear(); ++t < n; ) {
454
+ var o = e[t];
455
+ this.set(o[0], o[1]);
456
+ }
457
+ }
458
+ I.prototype.clear = Fn;
459
+ I.prototype.delete = Vn;
460
+ I.prototype.get = Rn;
461
+ I.prototype.has = Kn;
462
+ I.prototype.set = Gn;
463
+ var Hn = "Expected a function";
464
+ function ve(e, t) {
465
+ if (typeof e != "function" || t != null && typeof t != "function")
466
+ throw new TypeError(Hn);
467
+ var n = function() {
468
+ var o = arguments, r = t ? t.apply(this, o) : o[0], s = n.cache;
469
+ if (s.has(r))
470
+ return s.get(r);
471
+ var a = e.apply(this, o);
472
+ return n.cache = s.set(r, a) || s, a;
473
+ };
474
+ return n.cache = new (ve.Cache || I)(), n;
475
+ }
476
+ ve.Cache = I;
477
+ var Un = 500;
478
+ function Zn(e) {
479
+ var t = ve(e, function(o) {
480
+ return n.size === Un && n.clear(), o;
481
+ }), n = t.cache;
482
+ return t;
483
+ }
484
+ var Jn = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Wn = /\\(\\)?/g, Yn = Zn(function(e) {
485
+ var t = [];
486
+ return e.charCodeAt(0) === 46 && t.push(""), e.replace(Jn, function(n, o, r, s) {
487
+ t.push(r ? s.replace(Wn, "$1") : o || n);
488
+ }), t;
489
+ });
490
+ function qn(e) {
491
+ return e == null ? "" : Ye(e);
492
+ }
493
+ function Xn(e, t) {
494
+ return he(e) ? e : bn(e, t) ? [e] : Yn(qn(e));
495
+ }
496
+ function Qn(e) {
497
+ if (typeof e == "string" || ye(e))
498
+ return e;
499
+ var t = e + "";
500
+ return t == "0" && 1 / e == -1 / 0 ? "-0" : t;
501
+ }
502
+ function eo(e, t) {
503
+ t = Xn(t, e);
504
+ for (var n = 0, o = t.length; e != null && n < o; )
505
+ e = e[Qn(t[n++])];
506
+ return n && n == o ? e : void 0;
507
+ }
508
+ function to(e, t, n) {
509
+ var o = e == null ? void 0 : eo(e, t);
510
+ return o === void 0 ? n : o;
511
+ }
512
+ function no(e) {
513
+ for (var t = -1, n = e == null ? 0 : e.length, o = {}; ++t < n; ) {
514
+ var r = e[t];
515
+ o[r[0]] = r[1];
516
+ }
517
+ return o;
518
+ }
519
+ const ie = (e) => typeof e == "boolean", $ = (e) => typeof e == "number", oo = (e) => typeof Element > "u" ? !1 : e instanceof Element, ro = (e) => k(e) ? !Number.isNaN(Number(e)) : !1;
520
+ function be(e) {
521
+ return vt() ? (bt(e), !0) : !1;
522
+ }
523
+ function _e(e) {
524
+ return typeof e == "function" ? e() : c(e);
525
+ }
526
+ const F = typeof window < "u" && typeof document < "u";
527
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
528
+ const so = Object.prototype.toString, ao = (e) => so.call(e) === "[object Object]", io = () => {
529
+ };
530
+ function lo(e, t, n = {}) {
531
+ const {
532
+ immediate: o = !0
533
+ } = n, r = w(!1);
534
+ let s = null;
535
+ function a() {
536
+ s && (clearTimeout(s), s = null);
537
+ }
538
+ function i() {
539
+ r.value = !1, a();
540
+ }
541
+ function g(..._) {
542
+ a(), r.value = !0, s = setTimeout(() => {
543
+ r.value = !1, s = null, e(..._);
544
+ }, _e(t));
545
+ }
546
+ return o && (r.value = !0, F && g()), be(i), {
547
+ isPending: ht(r),
548
+ start: g,
549
+ stop: i
550
+ };
551
+ }
552
+ function ue(e) {
553
+ var t;
554
+ const n = _e(e);
555
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
556
+ }
557
+ const Qe = F ? window : void 0;
558
+ function co(...e) {
559
+ let t, n, o, r;
560
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, o, r] = e, t = Qe) : [t, n, o, r] = e, !t)
561
+ return io;
562
+ Array.isArray(n) || (n = [n]), Array.isArray(o) || (o = [o]);
563
+ const s = [], a = () => {
564
+ s.forEach((d) => d()), s.length = 0;
565
+ }, i = (d, m, v, T) => (d.addEventListener(m, v, T), () => d.removeEventListener(m, v, T)), g = te(
566
+ () => [ue(t), _e(r)],
567
+ ([d, m]) => {
568
+ if (a(), !d)
569
+ return;
570
+ const v = ao(m) ? { ...m } : m;
571
+ s.push(
572
+ ...n.flatMap((T) => o.map((j) => i(d, T, j, v)))
573
+ );
574
+ },
575
+ { immediate: !0, flush: "post" }
576
+ ), _ = () => {
577
+ g(), a();
578
+ };
579
+ return be(_), _;
580
+ }
581
+ function uo() {
582
+ const e = w(!1), t = z();
583
+ return t && ke(() => {
584
+ e.value = !0;
585
+ }, t), e;
586
+ }
587
+ function po(e) {
588
+ const t = uo();
589
+ return u(() => (t.value, !!e()));
590
+ }
591
+ function fo(e, t, n = {}) {
592
+ const { window: o = Qe, ...r } = n;
593
+ let s;
594
+ const a = po(() => o && "ResizeObserver" in o), i = () => {
595
+ s && (s.disconnect(), s = void 0);
596
+ }, g = u(() => Array.isArray(e) ? e.map((m) => ue(m)) : [ue(e)]), _ = te(
597
+ g,
598
+ (m) => {
599
+ if (i(), a.value && o) {
600
+ s = new ResizeObserver(t);
601
+ for (const v of m)
602
+ v && s.observe(v, r);
603
+ }
604
+ },
605
+ { immediate: !0, flush: "post" }
606
+ ), d = () => {
607
+ i(), _();
608
+ };
609
+ return be(d), {
610
+ isSupported: a,
611
+ stop: d
612
+ };
613
+ }
614
+ class mo extends Error {
615
+ constructor(t) {
616
+ super(t), this.name = "ElementPlusError";
617
+ }
618
+ }
619
+ function U(e, t) {
620
+ if (process.env.NODE_ENV !== "production") {
621
+ const n = k(e) ? new mo(`[${e}] ${t}`) : e;
622
+ console.warn(n);
623
+ }
624
+ }
625
+ const Ie = {
626
+ current: 0
627
+ }, je = w(0), et = 2e3, De = Symbol("elZIndexContextKey"), tt = Symbol("zIndexContextKey"), go = (e) => {
628
+ const t = z() ? D(De, Ie) : Ie, n = e || (z() ? D(tt, void 0) : void 0), o = u(() => {
629
+ const a = c(n);
630
+ return $(a) ? a : et;
631
+ }), r = u(() => o.value + je.value), s = () => (t.current++, je.value = t.current, r.value);
632
+ return !F && !D(De) && U(
633
+ "ZIndexInjection",
634
+ `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
635
+ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`
636
+ ), {
637
+ initialZIndex: o,
638
+ currentZIndex: r,
639
+ nextZIndex: s
640
+ };
641
+ }, yo = (e) => (t, n) => ho(t, n, c(e)), ho = (e, t, n) => to(n, e, e).replace(
642
+ /\{(\w+)\}/g,
643
+ (o, r) => {
644
+ var s;
645
+ return `${(s = t == null ? void 0 : t[r]) != null ? s : `{${r}}`}`;
646
+ }
647
+ ), vo = (e) => {
648
+ const t = u(() => c(e).name), n = _t(e) ? e : w(e);
649
+ return {
650
+ lang: t,
651
+ locale: n,
652
+ t: yo(e)
653
+ };
654
+ }, nt = Symbol("localeContextKey"), bo = (e) => {
655
+ const t = e || D(nt, w());
656
+ return vo(u(() => t.value || Dt));
657
+ }, ot = "__epPropKey", C = (e) => e, _o = (e) => Ze(e) && !!e[ot], rt = (e, t) => {
658
+ if (!Ze(e) || _o(e))
659
+ return e;
660
+ const { values: n, required: o, default: r, type: s, validator: a } = e, g = {
661
+ type: s,
662
+ required: !!o,
663
+ validator: n || a ? (_) => {
664
+ let d = !1, m = [];
665
+ if (n && (m = Array.from(n), ce(e, "default") && m.push(r), d || (d = m.includes(_))), a && (d || (d = a(_))), !d && m.length > 0) {
666
+ const v = [...new Set(m)].map((T) => JSON.stringify(T)).join(", ");
667
+ Ct(
668
+ `Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${v}], got value ${JSON.stringify(
669
+ _
670
+ )}.`
671
+ );
672
+ }
673
+ return d;
674
+ } : void 0,
675
+ [ot]: !0
676
+ };
677
+ return ce(e, "default") && (g.default = r), g;
678
+ }, Z = (e) => no(
679
+ Object.entries(e).map(([t, n]) => [
680
+ t,
681
+ rt(n, t)
682
+ ])
683
+ ), Co = ["", "default", "small", "large"], wo = rt({
684
+ type: String,
685
+ values: Co,
686
+ required: !1
687
+ }), So = Symbol("size"), To = Symbol("emptyValuesContextKey"), Oo = Z({
688
+ emptyValues: Array,
689
+ valueOnClear: {
690
+ type: C([
691
+ String,
692
+ Number,
693
+ Boolean,
694
+ Function
695
+ ]),
696
+ default: void 0,
697
+ validator: (e) => (e = Q(e) ? e() : e, kt(e) ? e.every((t) => !t) : !e)
698
+ }
699
+ }), Ae = (e) => Object.keys(e), ee = w();
700
+ function st(e, t = void 0) {
701
+ return z() ? D(He, ee) : ee;
702
+ }
703
+ function Eo(e, t) {
704
+ const n = st(), o = me(
705
+ e,
706
+ u(() => {
707
+ var i;
708
+ return ((i = n.value) == null ? void 0 : i.namespace) || q;
709
+ })
710
+ ), r = bo(u(() => {
711
+ var i;
712
+ return (i = n.value) == null ? void 0 : i.locale;
713
+ })), s = go(
714
+ u(() => {
715
+ var i;
716
+ return ((i = n.value) == null ? void 0 : i.zIndex) || et;
717
+ })
718
+ ), a = u(() => {
719
+ var i;
720
+ return c(t) || ((i = n.value) == null ? void 0 : i.size) || "";
721
+ });
722
+ return at(u(() => c(n) || {})), {
723
+ ns: o,
724
+ locale: r,
725
+ zIndex: s,
726
+ size: a
727
+ };
728
+ }
729
+ const at = (e, t, n = !1) => {
730
+ var o;
731
+ const r = !!z(), s = r ? st() : void 0, a = (o = void 0) != null ? o : r ? wt : void 0;
732
+ if (!a) {
733
+ U(
734
+ "provideGlobalConfig",
735
+ "provideGlobalConfig() can only be used inside setup()."
736
+ );
737
+ return;
738
+ }
739
+ const i = u(() => {
740
+ const g = c(e);
741
+ return s != null && s.value ? xo(s.value, g) : g;
742
+ });
743
+ return a(He, i), a(
744
+ nt,
745
+ u(() => i.value.locale)
746
+ ), a(
747
+ Ue,
748
+ u(() => i.value.namespace)
749
+ ), a(
750
+ tt,
751
+ u(() => i.value.zIndex)
752
+ ), a(So, {
753
+ size: u(() => i.value.size || "")
754
+ }), a(
755
+ To,
756
+ u(() => ({
757
+ emptyValues: i.value.emptyValues,
758
+ valueOnClear: i.value.valueOnClear
759
+ }))
760
+ ), (n || !ee.value) && (ee.value = i.value), i;
761
+ }, xo = (e, t) => {
762
+ const n = [.../* @__PURE__ */ new Set([...Ae(e), ...Ae(t)])], o = {};
763
+ for (const r of n)
764
+ o[r] = t[r] !== void 0 ? t[r] : e[r];
765
+ return o;
766
+ };
767
+ var Ce = (e, t) => {
768
+ const n = e.__vccOpts || e;
769
+ for (const [o, r] of t)
770
+ n[o] = r;
771
+ return n;
772
+ };
773
+ const it = (e, t) => (e.install = (n) => {
774
+ for (const o of [e, ...Object.values({})])
775
+ n.component(o.name, o);
776
+ }, e), No = (e, t) => (e.install = (n) => {
777
+ e._context = n._context, n.config.globalProperties[t] = e;
778
+ }, e), $o = "utils/dom/style";
779
+ function pe(e, t = "px") {
780
+ if (!e && e !== 0)
781
+ return "";
782
+ if ($(e) || ro(e))
783
+ return `${e}${t}`;
784
+ if (k(e))
785
+ return e;
786
+ U($o, "binding value must be a string or number");
787
+ }
788
+ const Po = Z({
789
+ size: {
790
+ type: C([Number, String])
791
+ },
792
+ color: {
793
+ type: String
794
+ }
795
+ }), Io = ne({
796
+ name: "ElIcon",
797
+ inheritAttrs: !1,
798
+ __name: "icon",
799
+ props: Po,
800
+ setup(e) {
801
+ const t = e, n = me("icon"), o = u(() => {
802
+ const { size: r, color: s } = t, a = pe(r);
803
+ return !a && !s ? {} : {
804
+ fontSize: a,
805
+ "--color": s
806
+ };
807
+ });
808
+ return (r, s) => (O(), X(
809
+ "i",
810
+ St({
811
+ class: c(n).b(),
812
+ style: o.value
813
+ }, r.$attrs),
814
+ [
815
+ G(r.$slots, "default")
816
+ ],
817
+ 16
818
+ ));
819
+ }
820
+ });
821
+ var jo = /* @__PURE__ */ Ce(Io, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/icon/src/icon.vue"]]);
822
+ const ze = it(jo), Do = C([
823
+ String,
824
+ Object,
825
+ Function
826
+ ]), Ao = {
827
+ Close: jt
828
+ }, Me = {
829
+ primary: Ee,
830
+ success: It,
831
+ warning: Pt,
832
+ error: $t,
833
+ info: Ee
834
+ }, zo = () => F && /android/i.test(window.navigator.userAgent), Mo = (e) => e, de = {
835
+ tab: "Tab",
836
+ enter: "Enter",
837
+ space: "Space",
838
+ left: "ArrowLeft",
839
+ up: "ArrowUp",
840
+ right: "ArrowRight",
841
+ down: "ArrowDown",
842
+ esc: "Escape",
843
+ delete: "Delete",
844
+ backspace: "Backspace",
845
+ numpadEnter: "NumpadEnter",
846
+ pageUp: "PageUp",
847
+ pageDown: "PageDown",
848
+ home: "Home",
849
+ end: "End"
850
+ }, ko = (e) => {
851
+ if (e.code && e.code !== "Unidentified")
852
+ return e.code;
853
+ const t = Lo(e);
854
+ if (t) {
855
+ if (Object.values(de).includes(t))
856
+ return t;
857
+ switch (t) {
858
+ case " ":
859
+ return de.space;
860
+ default:
861
+ return "";
862
+ }
863
+ }
864
+ return "";
865
+ }, Lo = (e) => {
866
+ let t = e.key && e.key !== "Unidentified" ? e.key : "";
867
+ if (!t && e.type === "keyup" && zo()) {
868
+ const n = e.target;
869
+ t = n.value.charAt(n.selectionStart - 1);
870
+ }
871
+ return t;
872
+ }, Fo = Z({
873
+ value: {
874
+ type: [String, Number],
875
+ default: ""
876
+ },
877
+ max: {
878
+ type: Number,
879
+ default: 99
880
+ },
881
+ isDot: Boolean,
882
+ hidden: Boolean,
883
+ type: {
884
+ type: String,
885
+ values: ["primary", "success", "warning", "info", "danger"],
886
+ default: "danger"
887
+ },
888
+ showZero: {
889
+ type: Boolean,
890
+ default: !0
891
+ },
892
+ color: String,
893
+ badgeStyle: {
894
+ type: C([String, Object, Array])
895
+ },
896
+ offset: {
897
+ type: C(Array),
898
+ default: [0, 0]
899
+ },
900
+ badgeClass: {
901
+ type: String
902
+ }
903
+ }), Bo = ne({
904
+ name: "ElBadge",
905
+ __name: "badge",
906
+ props: Fo,
907
+ setup(e, { expose: t }) {
908
+ const n = e, o = me("badge"), r = u(() => n.isDot ? "" : $(n.value) && $(n.max) ? n.max < n.value ? `${n.max}+` : `${n.value}` : `${n.value}`), s = u(() => {
909
+ var a;
910
+ return [
911
+ {
912
+ backgroundColor: n.color,
913
+ marginRight: pe(-n.offset[0]),
914
+ marginTop: pe(n.offset[1])
915
+ },
916
+ (a = n.badgeStyle) != null ? a : {}
917
+ ];
918
+ });
919
+ return t({
920
+ content: r
921
+ }), (a, i) => (O(), X(
922
+ "div",
923
+ {
924
+ class: E(c(o).b())
925
+ },
926
+ [
927
+ G(a.$slots, "default"),
928
+ fe(Le, {
929
+ name: `${c(o).namespace.value}-zoom-in-center`,
930
+ persisted: ""
931
+ }, {
932
+ default: Y(() => [
933
+ Fe(le(
934
+ "sup",
935
+ {
936
+ class: E([
937
+ c(o).e("content"),
938
+ c(o).em("content", a.type),
939
+ c(o).is("fixed", !!a.$slots.default),
940
+ c(o).is("dot", a.isDot),
941
+ c(o).is("hide-zero", !a.showZero && a.value === 0),
942
+ a.badgeClass
943
+ ]),
944
+ style: Be(s.value)
945
+ },
946
+ [
947
+ G(a.$slots, "content", { value: r.value }, () => [
948
+ Tt(
949
+ Ve(r.value),
950
+ 1
951
+ )
952
+ ])
953
+ ],
954
+ 6
955
+ ), [
956
+ [Re, !a.hidden && (r.value || a.isDot || a.$slots.content)]
957
+ ])
958
+ ]),
959
+ _: 3
960
+ }, 8, ["name"])
961
+ ],
962
+ 2
963
+ ));
964
+ }
965
+ });
966
+ var Vo = /* @__PURE__ */ Ce(Bo, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/badge/src/badge.vue"]]);
967
+ const Ro = it(Vo), Ko = Z({
968
+ a11y: {
969
+ type: Boolean,
970
+ default: !0
971
+ },
972
+ locale: {
973
+ type: C(Object)
974
+ },
975
+ size: wo,
976
+ button: {
977
+ type: C(Object)
978
+ },
979
+ card: {
980
+ type: C(Object)
981
+ },
982
+ dialog: {
983
+ type: C(Object)
984
+ },
985
+ link: {
986
+ type: C(Object)
987
+ },
988
+ experimentalFeatures: {
989
+ type: C(Object)
990
+ },
991
+ keyboardNavigation: {
992
+ type: Boolean,
993
+ default: !0
994
+ },
995
+ message: {
996
+ type: C(Object)
997
+ },
998
+ zIndex: Number,
999
+ namespace: {
1000
+ type: String,
1001
+ default: "el"
1002
+ },
1003
+ ...Oo
1004
+ }), h = {
1005
+ placement: "top"
1006
+ };
1007
+ ne({
1008
+ name: "ElConfigProvider",
1009
+ props: Ko,
1010
+ setup(e, { slots: t }) {
1011
+ const n = at(e);
1012
+ return te(
1013
+ () => e.message,
1014
+ (o) => {
1015
+ var r, s;
1016
+ Object.assign(h, (s = (r = n == null ? void 0 : n.value) == null ? void 0 : r.message) != null ? s : {}, o ?? {});
1017
+ },
1018
+ { immediate: !0, deep: !0 }
1019
+ ), () => G(t, "default", { config: n == null ? void 0 : n.value });
1020
+ }
1021
+ });
1022
+ const lt = [
1023
+ "primary",
1024
+ "success",
1025
+ "info",
1026
+ "warning",
1027
+ "error"
1028
+ ], ct = [
1029
+ "top",
1030
+ "top-left",
1031
+ "top-right",
1032
+ "bottom",
1033
+ "bottom-left",
1034
+ "bottom-right"
1035
+ ], A = "top", y = Mo({
1036
+ customClass: "",
1037
+ dangerouslyUseHTMLString: !1,
1038
+ duration: 3e3,
1039
+ icon: void 0,
1040
+ id: "",
1041
+ message: "",
1042
+ onClose: void 0,
1043
+ showClose: !1,
1044
+ type: "info",
1045
+ plain: !1,
1046
+ offset: 16,
1047
+ placement: void 0,
1048
+ zIndex: 0,
1049
+ grouping: !1,
1050
+ repeatNum: 1,
1051
+ appendTo: F ? document.body : void 0
1052
+ }), Go = Z({
1053
+ customClass: {
1054
+ type: String,
1055
+ default: y.customClass
1056
+ },
1057
+ dangerouslyUseHTMLString: {
1058
+ type: Boolean,
1059
+ default: y.dangerouslyUseHTMLString
1060
+ },
1061
+ duration: {
1062
+ type: Number,
1063
+ default: y.duration
1064
+ },
1065
+ icon: {
1066
+ type: Do,
1067
+ default: y.icon
1068
+ },
1069
+ id: {
1070
+ type: String,
1071
+ default: y.id
1072
+ },
1073
+ message: {
1074
+ type: C([
1075
+ String,
1076
+ Object,
1077
+ Function
1078
+ ]),
1079
+ default: y.message
1080
+ },
1081
+ onClose: {
1082
+ type: C(Function),
1083
+ default: y.onClose
1084
+ },
1085
+ showClose: {
1086
+ type: Boolean,
1087
+ default: y.showClose
1088
+ },
1089
+ type: {
1090
+ type: String,
1091
+ values: lt,
1092
+ default: y.type
1093
+ },
1094
+ plain: {
1095
+ type: Boolean,
1096
+ default: y.plain
1097
+ },
1098
+ offset: {
1099
+ type: Number,
1100
+ default: y.offset
1101
+ },
1102
+ placement: {
1103
+ type: String,
1104
+ values: ct,
1105
+ default: y.placement
1106
+ },
1107
+ zIndex: {
1108
+ type: Number,
1109
+ default: y.zIndex
1110
+ },
1111
+ grouping: {
1112
+ type: Boolean,
1113
+ default: y.grouping
1114
+ },
1115
+ repeatNum: {
1116
+ type: Number,
1117
+ default: y.repeatNum
1118
+ }
1119
+ }), Ho = {
1120
+ destroy: () => !0
1121
+ }, S = Ke(
1122
+ {}
1123
+ ), Uo = (e) => (S[e] || (S[e] = Ke([])), S[e]), Zo = (e, t) => {
1124
+ const n = S[t] || [], o = n.findIndex((a) => a.id === e), r = n[o];
1125
+ let s;
1126
+ return o > 0 && (s = n[o - 1]), { current: r, prev: s };
1127
+ }, Jo = (e, t) => {
1128
+ const { prev: n } = Zo(e, t);
1129
+ return n ? n.vm.exposed.bottom.value : 0;
1130
+ }, Wo = (e, t, n) => (S[n] || []).findIndex((s) => s.id === e) > 0 ? 16 : t, Yo = ["id"], qo = ["innerHTML"], Xo = ne({
1131
+ name: "ElMessage",
1132
+ __name: "message",
1133
+ props: Go,
1134
+ emits: Ho,
1135
+ setup(e, { expose: t, emit: n }) {
1136
+ const { Close: o } = Ao, r = e, s = n, a = w(!1), { ns: i, zIndex: g } = Eo("message"), { currentZIndex: _, nextZIndex: d } = g, m = w(), v = w(!1), T = w(0);
1137
+ let j;
1138
+ const l = u(
1139
+ () => r.type ? r.type === "error" ? "danger" : r.type : "info"
1140
+ ), f = u(() => {
1141
+ const p = r.type;
1142
+ return { [i.bm("icon", p)]: p && Me[p] };
1143
+ }), b = u(
1144
+ () => r.icon || Me[r.type] || ""
1145
+ ), B = u(() => r.placement || A), pt = u(() => Jo(r.id, B.value)), we = u(() => Wo(r.id, r.offset, B.value) + pt.value), dt = u(() => T.value + we.value), ft = u(() => B.value.includes("left") ? i.is("left") : B.value.includes("right") ? i.is("right") : i.is("center")), Se = u(
1146
+ () => B.value.startsWith("top") ? "top" : "bottom"
1147
+ ), mt = u(() => ({
1148
+ [Se.value]: `${we.value}px`,
1149
+ zIndex: _.value
1150
+ }));
1151
+ function se() {
1152
+ r.duration !== 0 && ({ stop: j } = lo(() => {
1153
+ J();
1154
+ }, r.duration));
1155
+ }
1156
+ function Te() {
1157
+ j == null || j();
1158
+ }
1159
+ function J() {
1160
+ v.value = !1, Nt(() => {
1161
+ var p;
1162
+ a.value || ((p = r.onClose) == null || p.call(r), s("destroy"));
1163
+ });
1164
+ }
1165
+ function gt(p) {
1166
+ ko(p) === de.esc && J();
1167
+ }
1168
+ return ke(() => {
1169
+ se(), d(), v.value = !0;
1170
+ }), te(
1171
+ () => r.repeatNum,
1172
+ () => {
1173
+ Te(), se();
1174
+ }
1175
+ ), co(document, "keydown", gt), fo(m, () => {
1176
+ T.value = m.value.getBoundingClientRect().height;
1177
+ }), t({
1178
+ visible: v,
1179
+ bottom: dt,
1180
+ close: J
1181
+ }), (p, V) => (O(), R(Le, {
1182
+ name: c(i).b("fade"),
1183
+ onBeforeEnter: V[0] || (V[0] = (yt) => a.value = !0),
1184
+ onBeforeLeave: p.onClose,
1185
+ onAfterLeave: V[1] || (V[1] = (yt) => p.$emit("destroy")),
1186
+ persisted: ""
1187
+ }, {
1188
+ default: Y(() => [
1189
+ Fe(le("div", {
1190
+ id: p.id,
1191
+ ref_key: "messageRef",
1192
+ ref: m,
1193
+ class: E([
1194
+ c(i).b(),
1195
+ { [c(i).m(p.type)]: p.type },
1196
+ c(i).is("closable", p.showClose),
1197
+ c(i).is("plain", p.plain),
1198
+ c(i).is("bottom", Se.value === "bottom"),
1199
+ ft.value,
1200
+ p.customClass
1201
+ ]),
1202
+ style: Be(mt.value),
1203
+ role: "alert",
1204
+ onMouseenter: Te,
1205
+ onMouseleave: se
1206
+ }, [
1207
+ p.repeatNum > 1 ? (O(), R(c(Ro), {
1208
+ key: 0,
1209
+ value: p.repeatNum,
1210
+ type: l.value,
1211
+ class: E(c(i).e("badge"))
1212
+ }, null, 8, ["value", "type", "class"])) : W("v-if", !0),
1213
+ b.value ? (O(), R(c(ze), {
1214
+ key: 1,
1215
+ class: E([c(i).e("icon"), f.value])
1216
+ }, {
1217
+ default: Y(() => [
1218
+ (O(), R(Ot(b.value)))
1219
+ ]),
1220
+ _: 1
1221
+ }, 8, ["class"])) : W("v-if", !0),
1222
+ G(p.$slots, "default", {}, () => [
1223
+ p.dangerouslyUseHTMLString ? (O(), X(
1224
+ Et,
1225
+ { key: 1 },
1226
+ [
1227
+ W(" Caution here, message could've been compromised, never use user's input as message "),
1228
+ le("p", {
1229
+ class: E(c(i).e("content")),
1230
+ innerHTML: p.message
1231
+ }, null, 10, qo)
1232
+ ],
1233
+ 2112
1234
+ )) : (O(), X(
1235
+ "p",
1236
+ {
1237
+ key: 0,
1238
+ class: E(c(i).e("content"))
1239
+ },
1240
+ Ve(p.message),
1241
+ 3
1242
+ ))
1243
+ ]),
1244
+ p.showClose ? (O(), R(c(ze), {
1245
+ key: 2,
1246
+ class: E(c(i).e("closeBtn")),
1247
+ onClick: xt(J, ["stop"])
1248
+ }, {
1249
+ default: Y(() => [
1250
+ fe(c(o))
1251
+ ]),
1252
+ _: 1
1253
+ }, 8, ["class"])) : W("v-if", !0)
1254
+ ], 46, Yo), [
1255
+ [Re, v.value]
1256
+ ])
1257
+ ]),
1258
+ _: 3
1259
+ }, 8, ["name", "onBeforeLeave"]));
1260
+ }
1261
+ });
1262
+ var Qo = /* @__PURE__ */ Ce(Xo, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/message/src/message.vue"]]);
1263
+ let er = 1;
1264
+ const tr = (e) => {
1265
+ if (!e.appendTo)
1266
+ e.appendTo = document.body;
1267
+ else if (k(e.appendTo)) {
1268
+ let n = document.querySelector(e.appendTo);
1269
+ oo(n) || (U(
1270
+ "ElMessage",
1271
+ "the appendTo option is not an HTMLElement. Falling back to document.body."
1272
+ ), n = document.body), e.appendTo = n;
1273
+ }
1274
+ }, nr = (e) => {
1275
+ !e.placement && k(h.placement) && h.placement && (e.placement = h.placement), e.placement || (e.placement = A), ct.includes(e.placement) || (U(
1276
+ "ElMessage",
1277
+ `Invalid placement: ${e.placement}. Falling back to '${A}'.`
1278
+ ), e.placement = A);
1279
+ }, ut = (e) => {
1280
+ const t = !e || k(e) || Ge(e) || Q(e) ? { message: e } : e, n = {
1281
+ ...y,
1282
+ ...t
1283
+ };
1284
+ return tr(n), nr(n), ie(h.grouping) && !n.grouping && (n.grouping = h.grouping), $(h.duration) && n.duration === 3e3 && (n.duration = h.duration), $(h.offset) && n.offset === 16 && (n.offset = h.offset), ie(h.showClose) && !n.showClose && (n.showClose = h.showClose), ie(h.plain) && !n.plain && (n.plain = h.plain), n;
1285
+ }, or = (e) => {
1286
+ const t = e.props.placement || A, n = S[t], o = n.indexOf(e);
1287
+ if (o === -1)
1288
+ return;
1289
+ n.splice(o, 1);
1290
+ const { handler: r } = e;
1291
+ r.close();
1292
+ }, rr = ({ appendTo: e, ...t }, n) => {
1293
+ const o = `message_${er++}`, r = t.onClose, s = document.createElement("div"), a = {
1294
+ ...t,
1295
+ id: o,
1296
+ onClose: () => {
1297
+ r == null || r(), or(d);
1298
+ },
1299
+ onDestroy: () => {
1300
+ Oe(null, s);
1301
+ }
1302
+ }, i = fe(
1303
+ Qo,
1304
+ a,
1305
+ Q(a.message) || Ge(a.message) ? {
1306
+ default: Q(a.message) ? a.message : () => a.message
1307
+ } : null
1308
+ );
1309
+ i.appContext = n || P._context, Oe(i, s), e.appendChild(s.firstElementChild);
1310
+ const g = i.component, d = {
1311
+ id: o,
1312
+ vnode: i,
1313
+ vm: g,
1314
+ handler: {
1315
+ close: () => {
1316
+ g.exposed.close();
1317
+ }
1318
+ },
1319
+ props: i.component.props
1320
+ };
1321
+ return d;
1322
+ }, P = (e = {}, t) => {
1323
+ if (!F)
1324
+ return { close: () => {
1325
+ } };
1326
+ const n = ut(e), o = Uo(
1327
+ n.placement || A
1328
+ );
1329
+ if (n.grouping && o.length) {
1330
+ const s = o.find(
1331
+ ({ vnode: a }) => {
1332
+ var i;
1333
+ return ((i = a.props) == null ? void 0 : i.message) === n.message;
1334
+ }
1335
+ );
1336
+ if (s)
1337
+ return s.props.repeatNum += 1, s.props.type = n.type, s.handler;
1338
+ }
1339
+ if ($(h.max) && o.length >= h.max)
1340
+ return { close: () => {
1341
+ } };
1342
+ const r = rr(n, t);
1343
+ return o.push(r), r.handler;
1344
+ };
1345
+ lt.forEach((e) => {
1346
+ P[e] = (t = {}, n) => {
1347
+ const o = ut(t);
1348
+ return P({ ...o, type: e }, n);
1349
+ };
1350
+ });
1351
+ function sr(e) {
1352
+ for (const t in S)
1353
+ if (ce(S, t)) {
1354
+ const n = [...S[t]];
1355
+ for (const o of n)
1356
+ (!e || e === o.props.type) && o.handler.close();
1357
+ }
1358
+ }
1359
+ function ar(e) {
1360
+ if (!S[e])
1361
+ return;
1362
+ [...S[e]].forEach((n) => n.handler.close());
1363
+ }
1364
+ P.closeAll = sr;
1365
+ P.closeAllByPlacement = ar;
1366
+ P._context = null;
1367
+ const cr = No(P, "$message");
1368
+ export {
1369
+ cr as E
1370
+ };