oga-ui 0.1.38

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 (47) hide show
  1. package/README.md +251 -0
  2. package/avatar/index.css +2 -0
  3. package/avatar/index.es.ts +1318 -0
  4. package/avatar/index.umd.ts +2 -0
  5. package/editor/index.css +2 -0
  6. package/editor/index.es.ts +31668 -0
  7. package/editor/index.umd.ts +81 -0
  8. package/form/index.css +2 -0
  9. package/form/index.es.ts +28 -0
  10. package/form/index.umd.ts +1 -0
  11. package/form-item/index.css +2 -0
  12. package/form-item/index.es.ts +28 -0
  13. package/form-item/index.umd.ts +1 -0
  14. package/iconfont/index.css +2 -0
  15. package/iconfont/index.es.ts +86 -0
  16. package/iconfont/index.umd.ts +1 -0
  17. package/image-upload/index.css +2 -0
  18. package/image-upload/index.es.ts +8003 -0
  19. package/image-upload/index.umd.ts +12 -0
  20. package/index.css +2 -0
  21. package/index.es.ts +38553 -0
  22. package/index.umd.ts +88 -0
  23. package/input/index.css +2 -0
  24. package/input/index.es.ts +76 -0
  25. package/input/index.umd.ts +1 -0
  26. package/layout/index.css +2 -0
  27. package/layout/index.es.ts +104 -0
  28. package/layout/index.umd.ts +1 -0
  29. package/package.json +17 -0
  30. package/page/index.css +2 -0
  31. package/page/index.es.ts +3232 -0
  32. package/page/index.umd.ts +5 -0
  33. package/paging/index.css +2 -0
  34. package/paging/index.es.ts +55 -0
  35. package/paging/index.umd.ts +1 -0
  36. package/progress/index.css +2 -0
  37. package/progress/index.es.ts +36 -0
  38. package/progress/index.umd.ts +1 -0
  39. package/section/index.css +2 -0
  40. package/section/index.es.ts +41 -0
  41. package/section/index.umd.ts +1 -0
  42. package/table/index.css +2 -0
  43. package/table/index.es.ts +3517 -0
  44. package/table/index.umd.ts +5 -0
  45. package/unsaved/index.css +2 -0
  46. package/unsaved/index.es.ts +3161 -0
  47. package/unsaved/index.umd.ts +5 -0
@@ -0,0 +1,1318 @@
1
+ import * as Vue from "vue";
2
+ import { Fragment, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, getCurrentInstance, inject, isRef, isVNode, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, openBlock, provide, ref, render, renderSlot, resolveComponent, resolveDynamicComponent, shallowReactive, toDisplayString, unref, useModel, vShow, warn, watch, withCtx, withDirectives, withModifiers } from "vue";
3
+ var __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __hasOwnProp = Object.prototype.hasOwnProperty, __export = (e, v) => {
4
+ let y = {};
5
+ for (var b in e) __defProp(y, b, {
6
+ get: e[b],
7
+ enumerable: !0
8
+ });
9
+ return v && __defProp(y, Symbol.toStringTag, { value: "Module" }), y;
10
+ }, __copyProps = (e, v, y, b) => {
11
+ if (v && typeof v == "object" || typeof v == "function") for (var x = __getOwnPropNames(v), S = 0, C = x.length, w; S < C; S++) w = x[S], !__hasOwnProp.call(e, w) && w !== y && __defProp(e, w, {
12
+ get: ((e) => v[e]).bind(null, w),
13
+ enumerable: !(b = __getOwnPropDesc(v, w)) || b.enumerable
14
+ });
15
+ return e;
16
+ }, __reExport = (e, v, y, b) => {
17
+ b && (__defProp(e, Symbol.toStringTag, { value: "Module" }), y && __defProp(y, Symbol.toStringTag, { value: "Module" })), __copyProps(e, v, "default"), y && __copyProps(y, v, "default");
18
+ }, configProviderContextKey = /* @__PURE__ */ Symbol(), _freeGlobal_default = typeof global == "object" && global && global.Object === Object && global, freeSelf = typeof self == "object" && self && self.Object === Object && self, _root_default = _freeGlobal_default || freeSelf || Function("return this")(), _Symbol_default = _root_default.Symbol, objectProto$1 = Object.prototype, hasOwnProperty$4 = objectProto$1.hasOwnProperty, nativeObjectToString$1 = objectProto$1.toString, symToStringTag$1 = _Symbol_default ? _Symbol_default.toStringTag : void 0;
19
+ function getRawTag(e) {
20
+ var v = hasOwnProperty$4.call(e, symToStringTag$1), y = e[symToStringTag$1];
21
+ try {
22
+ e[symToStringTag$1] = void 0;
23
+ var b = !0;
24
+ } catch {}
25
+ var x = nativeObjectToString$1.call(e);
26
+ return b && (v ? e[symToStringTag$1] = y : delete e[symToStringTag$1]), x;
27
+ }
28
+ var _getRawTag_default = getRawTag, nativeObjectToString = Object.prototype.toString;
29
+ function objectToString(e) {
30
+ return nativeObjectToString.call(e);
31
+ }
32
+ var _objectToString_default = objectToString, nullTag = "[object Null]", undefinedTag = "[object Undefined]", symToStringTag = _Symbol_default ? _Symbol_default.toStringTag : void 0;
33
+ function baseGetTag(e) {
34
+ return e == null ? e === void 0 ? undefinedTag : nullTag : symToStringTag && symToStringTag in Object(e) ? _getRawTag_default(e) : _objectToString_default(e);
35
+ }
36
+ var _baseGetTag_default = baseGetTag;
37
+ function isObjectLike(e) {
38
+ return typeof e == "object" && !!e;
39
+ }
40
+ var isObjectLike_default = isObjectLike, symbolTag = "[object Symbol]";
41
+ function isSymbol(e) {
42
+ return typeof e == "symbol" || isObjectLike_default(e) && _baseGetTag_default(e) == symbolTag;
43
+ }
44
+ var isSymbol_default = isSymbol;
45
+ function arrayMap(e, v) {
46
+ for (var y = -1, b = e == null ? 0 : e.length, x = Array(b); ++y < b;) x[y] = v(e[y], y, e);
47
+ return x;
48
+ }
49
+ var _arrayMap_default = arrayMap, isArray_default = Array.isArray, INFINITY$1 = Infinity, symbolProto = _Symbol_default ? _Symbol_default.prototype : void 0, symbolToString = symbolProto ? symbolProto.toString : void 0;
50
+ function baseToString(e) {
51
+ if (typeof e == "string") return e;
52
+ if (isArray_default(e)) return _arrayMap_default(e, baseToString) + "";
53
+ if (isSymbol_default(e)) return symbolToString ? symbolToString.call(e) : "";
54
+ var v = e + "";
55
+ return v == "0" && 1 / e == -INFINITY$1 ? "-0" : v;
56
+ }
57
+ var _baseToString_default = baseToString;
58
+ function isObject$2(e) {
59
+ var v = typeof e;
60
+ return e != null && (v == "object" || v == "function");
61
+ }
62
+ var isObject_default = isObject$2, asyncTag = "[object AsyncFunction]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
63
+ function isFunction$1(e) {
64
+ if (!isObject_default(e)) return !1;
65
+ var v = _baseGetTag_default(e);
66
+ return v == funcTag || v == genTag || v == asyncTag || v == proxyTag;
67
+ }
68
+ var isFunction_default = isFunction$1, _coreJsData_default = _root_default["__core-js_shared__"], maskSrcKey = function() {
69
+ var e = /[^.]+$/.exec(_coreJsData_default && _coreJsData_default.keys && _coreJsData_default.keys.IE_PROTO || "");
70
+ return e ? "Symbol(src)_1." + e : "";
71
+ }();
72
+ function isMasked(e) {
73
+ return !!maskSrcKey && maskSrcKey in e;
74
+ }
75
+ var _isMasked_default = isMasked, funcToString$1 = Function.prototype.toString;
76
+ function toSource(e) {
77
+ if (e != null) {
78
+ try {
79
+ return funcToString$1.call(e);
80
+ } catch {}
81
+ try {
82
+ return e + "";
83
+ } catch {}
84
+ }
85
+ return "";
86
+ }
87
+ var _toSource_default = toSource, reRegExpChar = /[\\^$.*+?()[\]{}|]/g, reIsHostCtor = /^\[object .+?Constructor\]$/, funcProto = Function.prototype, objectProto = Object.prototype, funcToString = funcProto.toString, hasOwnProperty$3 = objectProto.hasOwnProperty, reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$3).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
88
+ function baseIsNative(e) {
89
+ return !isObject_default(e) || _isMasked_default(e) ? !1 : (isFunction_default(e) ? reIsNative : reIsHostCtor).test(_toSource_default(e));
90
+ }
91
+ var _baseIsNative_default = baseIsNative;
92
+ function getValue(e, v) {
93
+ return e?.[v];
94
+ }
95
+ var _getValue_default = getValue;
96
+ function getNative(e, v) {
97
+ var y = _getValue_default(e, v);
98
+ return _baseIsNative_default(y) ? y : void 0;
99
+ }
100
+ var _getNative_default = getNative;
101
+ function eq(e, v) {
102
+ return e === v || e !== e && v !== v;
103
+ }
104
+ var eq_default = eq, reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
105
+ function isKey(e, v) {
106
+ if (isArray_default(e)) return !1;
107
+ var y = typeof e;
108
+ return y == "number" || y == "symbol" || y == "boolean" || e == null || isSymbol_default(e) ? !0 : reIsPlainProp.test(e) || !reIsDeepProp.test(e) || v != null && e in Object(v);
109
+ }
110
+ var _isKey_default = isKey, _nativeCreate_default = _getNative_default(Object, "create");
111
+ function hashClear() {
112
+ this.__data__ = _nativeCreate_default ? _nativeCreate_default(null) : {}, this.size = 0;
113
+ }
114
+ var _hashClear_default = hashClear;
115
+ function hashDelete(e) {
116
+ var v = this.has(e) && delete this.__data__[e];
117
+ return this.size -= v ? 1 : 0, v;
118
+ }
119
+ var _hashDelete_default = hashDelete, HASH_UNDEFINED$1 = "__lodash_hash_undefined__", hasOwnProperty$2 = Object.prototype.hasOwnProperty;
120
+ function hashGet(e) {
121
+ var v = this.__data__;
122
+ if (_nativeCreate_default) {
123
+ var y = v[e];
124
+ return y === HASH_UNDEFINED$1 ? void 0 : y;
125
+ }
126
+ return hasOwnProperty$2.call(v, e) ? v[e] : void 0;
127
+ }
128
+ var _hashGet_default = hashGet, hasOwnProperty$1 = Object.prototype.hasOwnProperty;
129
+ function hashHas(e) {
130
+ var v = this.__data__;
131
+ return _nativeCreate_default ? v[e] !== void 0 : hasOwnProperty$1.call(v, e);
132
+ }
133
+ var _hashHas_default = hashHas, HASH_UNDEFINED = "__lodash_hash_undefined__";
134
+ function hashSet(e, v) {
135
+ var y = this.__data__;
136
+ return this.size += this.has(e) ? 0 : 1, y[e] = _nativeCreate_default && v === void 0 ? HASH_UNDEFINED : v, this;
137
+ }
138
+ var _hashSet_default = hashSet;
139
+ function Hash(e) {
140
+ var v = -1, y = e == null ? 0 : e.length;
141
+ for (this.clear(); ++v < y;) {
142
+ var b = e[v];
143
+ this.set(b[0], b[1]);
144
+ }
145
+ }
146
+ Hash.prototype.clear = _hashClear_default, Hash.prototype.delete = _hashDelete_default, Hash.prototype.get = _hashGet_default, Hash.prototype.has = _hashHas_default, Hash.prototype.set = _hashSet_default;
147
+ var _Hash_default = Hash;
148
+ function listCacheClear() {
149
+ this.__data__ = [], this.size = 0;
150
+ }
151
+ var _listCacheClear_default = listCacheClear;
152
+ function assocIndexOf(e, v) {
153
+ for (var y = e.length; y--;) if (eq_default(e[y][0], v)) return y;
154
+ return -1;
155
+ }
156
+ var _assocIndexOf_default = assocIndexOf, splice = Array.prototype.splice;
157
+ function listCacheDelete(e) {
158
+ var v = this.__data__, y = _assocIndexOf_default(v, e);
159
+ return y < 0 ? !1 : (y == v.length - 1 ? v.pop() : splice.call(v, y, 1), --this.size, !0);
160
+ }
161
+ var _listCacheDelete_default = listCacheDelete;
162
+ function listCacheGet(e) {
163
+ var v = this.__data__, y = _assocIndexOf_default(v, e);
164
+ return y < 0 ? void 0 : v[y][1];
165
+ }
166
+ var _listCacheGet_default = listCacheGet;
167
+ function listCacheHas(e) {
168
+ return _assocIndexOf_default(this.__data__, e) > -1;
169
+ }
170
+ var _listCacheHas_default = listCacheHas;
171
+ function listCacheSet(e, v) {
172
+ var y = this.__data__, b = _assocIndexOf_default(y, e);
173
+ return b < 0 ? (++this.size, y.push([e, v])) : y[b][1] = v, this;
174
+ }
175
+ var _listCacheSet_default = listCacheSet;
176
+ function ListCache(e) {
177
+ var v = -1, y = e == null ? 0 : e.length;
178
+ for (this.clear(); ++v < y;) {
179
+ var b = e[v];
180
+ this.set(b[0], b[1]);
181
+ }
182
+ }
183
+ ListCache.prototype.clear = _listCacheClear_default, ListCache.prototype.delete = _listCacheDelete_default, ListCache.prototype.get = _listCacheGet_default, ListCache.prototype.has = _listCacheHas_default, ListCache.prototype.set = _listCacheSet_default;
184
+ var _ListCache_default = ListCache, _Map_default = _getNative_default(_root_default, "Map");
185
+ function mapCacheClear() {
186
+ this.size = 0, this.__data__ = {
187
+ hash: new _Hash_default(),
188
+ map: new (_Map_default || _ListCache_default)(),
189
+ string: new _Hash_default()
190
+ };
191
+ }
192
+ var _mapCacheClear_default = mapCacheClear;
193
+ function isKeyable(e) {
194
+ var v = typeof e;
195
+ return v == "string" || v == "number" || v == "symbol" || v == "boolean" ? e !== "__proto__" : e === null;
196
+ }
197
+ var _isKeyable_default = isKeyable;
198
+ function getMapData(e, v) {
199
+ var y = e.__data__;
200
+ return _isKeyable_default(v) ? y[typeof v == "string" ? "string" : "hash"] : y.map;
201
+ }
202
+ var _getMapData_default = getMapData;
203
+ function mapCacheDelete(e) {
204
+ var v = _getMapData_default(this, e).delete(e);
205
+ return this.size -= v ? 1 : 0, v;
206
+ }
207
+ var _mapCacheDelete_default = mapCacheDelete;
208
+ function mapCacheGet(e) {
209
+ return _getMapData_default(this, e).get(e);
210
+ }
211
+ var _mapCacheGet_default = mapCacheGet;
212
+ function mapCacheHas(e) {
213
+ return _getMapData_default(this, e).has(e);
214
+ }
215
+ var _mapCacheHas_default = mapCacheHas;
216
+ function mapCacheSet(e, v) {
217
+ var y = _getMapData_default(this, e), b = y.size;
218
+ return y.set(e, v), this.size += y.size == b ? 0 : 1, this;
219
+ }
220
+ var _mapCacheSet_default = mapCacheSet;
221
+ function MapCache(e) {
222
+ var v = -1, y = e == null ? 0 : e.length;
223
+ for (this.clear(); ++v < y;) {
224
+ var b = e[v];
225
+ this.set(b[0], b[1]);
226
+ }
227
+ }
228
+ MapCache.prototype.clear = _mapCacheClear_default, MapCache.prototype.delete = _mapCacheDelete_default, MapCache.prototype.get = _mapCacheGet_default, MapCache.prototype.has = _mapCacheHas_default, MapCache.prototype.set = _mapCacheSet_default;
229
+ var _MapCache_default = MapCache, FUNC_ERROR_TEXT = "Expected a function";
230
+ function memoize(e, v) {
231
+ if (typeof e != "function" || v != null && typeof v != "function") throw TypeError(FUNC_ERROR_TEXT);
232
+ var y = function() {
233
+ var b = arguments, x = v ? v.apply(this, b) : b[0], S = y.cache;
234
+ if (S.has(x)) return S.get(x);
235
+ var C = e.apply(this, b);
236
+ return y.cache = S.set(x, C) || S, C;
237
+ };
238
+ return y.cache = new (memoize.Cache || _MapCache_default)(), y;
239
+ }
240
+ memoize.Cache = _MapCache_default;
241
+ var memoize_default = memoize, MAX_MEMOIZE_SIZE = 500;
242
+ function memoizeCapped(e) {
243
+ var v = memoize_default(e, function(e) {
244
+ return y.size === MAX_MEMOIZE_SIZE && y.clear(), e;
245
+ }), y = v.cache;
246
+ return v;
247
+ }
248
+ var _memoizeCapped_default = memoizeCapped, rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, reEscapeChar = /\\(\\)?/g, _stringToPath_default = _memoizeCapped_default(function(e) {
249
+ var v = [];
250
+ return e.charCodeAt(0) === 46 && v.push(""), e.replace(rePropName, function(e, y, b, x) {
251
+ v.push(b ? x.replace(reEscapeChar, "$1") : y || e);
252
+ }), v;
253
+ });
254
+ function toString$1(e) {
255
+ return e == null ? "" : _baseToString_default(e);
256
+ }
257
+ var toString_default = toString$1;
258
+ function castPath(e, v) {
259
+ return isArray_default(e) ? e : _isKey_default(e, v) ? [e] : _stringToPath_default(toString_default(e));
260
+ }
261
+ var _castPath_default = castPath, INFINITY = Infinity;
262
+ function toKey(e) {
263
+ if (typeof e == "string" || isSymbol_default(e)) return e;
264
+ var v = e + "";
265
+ return v == "0" && 1 / e == -INFINITY ? "-0" : v;
266
+ }
267
+ var _toKey_default = toKey;
268
+ function baseGet(e, v) {
269
+ v = _castPath_default(v, e);
270
+ for (var y = 0, b = v.length; e != null && y < b;) e = e[_toKey_default(v[y++])];
271
+ return y && y == b ? e : void 0;
272
+ }
273
+ var _baseGet_default = baseGet;
274
+ function get(e, v, y) {
275
+ var b = e == null ? void 0 : _baseGet_default(e, v);
276
+ return b === void 0 ? y : b;
277
+ }
278
+ var get_default = get;
279
+ function fromPairs(e) {
280
+ for (var v = -1, y = e == null ? 0 : e.length, b = {}; ++v < y;) {
281
+ var x = e[v];
282
+ b[x[0]] = x[1];
283
+ }
284
+ return b;
285
+ }
286
+ var fromPairs_default = fromPairs, English = {
287
+ name: "en",
288
+ el: {
289
+ breadcrumb: { label: "Breadcrumb" },
290
+ colorpicker: {
291
+ confirm: "OK",
292
+ clear: "Clear",
293
+ defaultLabel: "color picker",
294
+ description: "current color is {color}. press enter to select a new color.",
295
+ alphaLabel: "pick alpha value",
296
+ alphaDescription: "alpha {alpha}, current color is {color}",
297
+ hueLabel: "pick hue value",
298
+ hueDescription: "hue {hue}, current color is {color}",
299
+ svLabel: "pick saturation and brightness value",
300
+ svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
301
+ predefineDescription: "select {value} as the color"
302
+ },
303
+ datepicker: {
304
+ now: "Now",
305
+ today: "Today",
306
+ cancel: "Cancel",
307
+ clear: "Clear",
308
+ confirm: "OK",
309
+ dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
310
+ monthTablePrompt: "Use the arrow keys and enter to select the month",
311
+ yearTablePrompt: "Use the arrow keys and enter to select the year",
312
+ selectedDate: "Selected date",
313
+ selectDate: "Select date",
314
+ selectTime: "Select time",
315
+ startDate: "Start Date",
316
+ startTime: "Start Time",
317
+ endDate: "End Date",
318
+ endTime: "End Time",
319
+ prevYear: "Previous Year",
320
+ nextYear: "Next Year",
321
+ prevMonth: "Previous Month",
322
+ nextMonth: "Next Month",
323
+ year: "",
324
+ month1: "January",
325
+ month2: "February",
326
+ month3: "March",
327
+ month4: "April",
328
+ month5: "May",
329
+ month6: "June",
330
+ month7: "July",
331
+ month8: "August",
332
+ month9: "September",
333
+ month10: "October",
334
+ month11: "November",
335
+ month12: "December",
336
+ weeks: {
337
+ sun: "Sun",
338
+ mon: "Mon",
339
+ tue: "Tue",
340
+ wed: "Wed",
341
+ thu: "Thu",
342
+ fri: "Fri",
343
+ sat: "Sat"
344
+ },
345
+ weeksFull: {
346
+ sun: "Sunday",
347
+ mon: "Monday",
348
+ tue: "Tuesday",
349
+ wed: "Wednesday",
350
+ thu: "Thursday",
351
+ fri: "Friday",
352
+ sat: "Saturday"
353
+ },
354
+ months: {
355
+ jan: "Jan",
356
+ feb: "Feb",
357
+ mar: "Mar",
358
+ apr: "Apr",
359
+ may: "May",
360
+ jun: "Jun",
361
+ jul: "Jul",
362
+ aug: "Aug",
363
+ sep: "Sep",
364
+ oct: "Oct",
365
+ nov: "Nov",
366
+ dec: "Dec"
367
+ }
368
+ },
369
+ inputNumber: {
370
+ decrease: "decrease number",
371
+ increase: "increase number"
372
+ },
373
+ select: {
374
+ loading: "Loading",
375
+ noMatch: "No matching data",
376
+ noData: "No data",
377
+ placeholder: "Select"
378
+ },
379
+ mention: { loading: "Loading" },
380
+ dropdown: { toggleDropdown: "Toggle Dropdown" },
381
+ cascader: {
382
+ noMatch: "No matching data",
383
+ loading: "Loading",
384
+ placeholder: "Select",
385
+ noData: "No data"
386
+ },
387
+ pagination: {
388
+ goto: "Go to",
389
+ pagesize: "/page",
390
+ total: "Total {total}",
391
+ pageClassifier: "",
392
+ page: "Page",
393
+ prev: "Go to previous page",
394
+ next: "Go to next page",
395
+ currentPage: "page {pager}",
396
+ prevPages: "Previous {pager} pages",
397
+ nextPages: "Next {pager} pages",
398
+ deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
399
+ },
400
+ dialog: { close: "Close this dialog" },
401
+ drawer: { close: "Close this dialog" },
402
+ messagebox: {
403
+ title: "Message",
404
+ confirm: "OK",
405
+ cancel: "Cancel",
406
+ error: "Illegal input",
407
+ close: "Close this dialog"
408
+ },
409
+ upload: {
410
+ deleteTip: "press delete to remove",
411
+ delete: "Delete",
412
+ preview: "Preview",
413
+ continue: "Continue"
414
+ },
415
+ slider: {
416
+ defaultLabel: "slider between {min} and {max}",
417
+ defaultRangeStartLabel: "pick start value",
418
+ defaultRangeEndLabel: "pick end value"
419
+ },
420
+ table: {
421
+ emptyText: "No Data",
422
+ confirmFilter: "Confirm",
423
+ resetFilter: "Reset",
424
+ clearFilter: "All",
425
+ sumText: "Sum",
426
+ selectAllLabel: "Select all rows",
427
+ selectRowLabel: "Select this row",
428
+ expandRowLabel: "Expand this row",
429
+ collapseRowLabel: "Collapse this row",
430
+ sortLabel: "Sort by {column}",
431
+ filterLabel: "Filter by {column}"
432
+ },
433
+ tag: { close: "Close this tag" },
434
+ tour: {
435
+ next: "Next",
436
+ previous: "Previous",
437
+ finish: "Finish",
438
+ close: "Close this dialog"
439
+ },
440
+ tree: { emptyText: "No Data" },
441
+ transfer: {
442
+ noMatch: "No matching data",
443
+ noData: "No data",
444
+ titles: ["List 1", "List 2"],
445
+ filterPlaceholder: "Enter keyword",
446
+ noCheckedFormat: "{total} items",
447
+ hasCheckedFormat: "{checked}/{total} checked"
448
+ },
449
+ image: { error: "FAILED" },
450
+ pageHeader: { title: "Back" },
451
+ popconfirm: {
452
+ confirmButtonText: "Yes",
453
+ cancelButtonText: "No"
454
+ },
455
+ carousel: {
456
+ leftArrow: "Carousel arrow left",
457
+ rightArrow: "Carousel arrow right",
458
+ indicator: "Carousel switch to index {index}"
459
+ }
460
+ }
461
+ }, buildTranslator = (e) => (v, y) => translate(v, y, unref(e)), translate = (e, v, y) => get_default(y, e, e).replace(/\{(\w+)\}/g, (e, y) => `${v?.[y] ?? `{${y}}`}`), buildLocaleContext = (e) => ({
462
+ lang: computed(() => unref(e).name),
463
+ locale: isRef(e) ? e : ref(e),
464
+ t: buildTranslator(e)
465
+ }), localeContextKey = /* @__PURE__ */ Symbol("localeContextKey"), useLocale = (e) => {
466
+ let v = e || inject(localeContextKey, ref());
467
+ return buildLocaleContext(computed(() => v.value || English));
468
+ }, statePrefix = "is-", _bem = (e, v, y, b, x) => {
469
+ let S = `${e}-${v}`;
470
+ return y && (S += `-${y}`), b && (S += `__${b}`), x && (S += `--${x}`), S;
471
+ }, namespaceContextKey = /* @__PURE__ */ Symbol("namespaceContextKey"), useGetDerivedNamespace = (e) => {
472
+ let v = e || (getCurrentInstance() ? inject(namespaceContextKey, ref("el")) : ref("el"));
473
+ return computed(() => unref(v) || "el");
474
+ }, useNamespace = (e, v) => {
475
+ let y = useGetDerivedNamespace(v);
476
+ return {
477
+ namespace: y,
478
+ b: (v = "") => _bem(y.value, e, v, "", ""),
479
+ e: (v) => v ? _bem(y.value, e, "", v, "") : "",
480
+ m: (v) => v ? _bem(y.value, e, "", "", v) : "",
481
+ be: (v, b) => v && b ? _bem(y.value, e, v, b, "") : "",
482
+ em: (v, b) => v && b ? _bem(y.value, e, "", v, b) : "",
483
+ bm: (v, b) => v && b ? _bem(y.value, e, v, "", b) : "",
484
+ bem: (v, b, x) => v && b && x ? _bem(y.value, e, v, b, x) : "",
485
+ is: (e, ...v) => {
486
+ let y = v.length >= 1 ? v[0] : !0;
487
+ return e && y ? `${statePrefix}${e}` : "";
488
+ },
489
+ cssVar: (e) => {
490
+ let v = {};
491
+ for (let b in e) e[b] && (v[`--${y.value}-${b}`] = e[b]);
492
+ return v;
493
+ },
494
+ cssVarName: (e) => `--${y.value}-${e}`,
495
+ cssVarBlock: (v) => {
496
+ let b = {};
497
+ for (let x in v) v[x] && (b[`--${y.value}-${e}-${x}`] = v[x]);
498
+ return b;
499
+ },
500
+ cssVarBlockName: (v) => `--${y.value}-${e}-${v}`
501
+ };
502
+ };
503
+ process.env.NODE_ENV === "production" || Object.freeze({}), process.env.NODE_ENV === "production" || Object.freeze([]);
504
+ var hasOwnProperty = Object.prototype.hasOwnProperty, hasOwn = (e, v) => hasOwnProperty.call(e, v), isArray = Array.isArray, isFunction = (e) => typeof e == "function", isString = (e) => typeof e == "string", isObject = (e) => typeof e == "object" && !!e, isBoolean = (e) => typeof e == "boolean", isNumber = (e) => typeof e == "number", isElement = (e) => typeof Element > "u" ? !1 : e instanceof Element, isStringNumber = (e) => isString(e) ? !Number.isNaN(Number(e)) : !1, lib_exports$1 = /* @__PURE__ */ __export({
505
+ Vue: () => Vue,
506
+ Vue2: () => void 0,
507
+ del: () => del$1,
508
+ install: () => install$1,
509
+ isVue2: () => !1,
510
+ isVue3: () => !0,
511
+ set: () => set$1
512
+ }, 1);
513
+ import * as import_vue$1 from "vue";
514
+ __reExport(lib_exports$1, import_vue$1, void 0, 1);
515
+ function install$1() {}
516
+ function set$1(e, v, y) {
517
+ return Array.isArray(e) ? (e.length = Math.max(e.length, v), e.splice(v, 1, y), y) : (e[v] = y, y);
518
+ }
519
+ function del$1(e, v) {
520
+ if (Array.isArray(e)) {
521
+ e.splice(v, 1);
522
+ return;
523
+ }
524
+ delete e[v];
525
+ }
526
+ function tryOnScopeDispose(e) {
527
+ return (0, lib_exports$1.getCurrentScope)() ? ((0, lib_exports$1.onScopeDispose)(e), !0) : !1;
528
+ }
529
+ function toValue(e) {
530
+ return typeof e == "function" ? e() : (0, lib_exports$1.unref)(e);
531
+ }
532
+ var isClient = typeof window < "u" && typeof document < "u";
533
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
534
+ var toString = Object.prototype.toString, isObject$1 = (e) => toString.call(e) === "[object Object]", noop = () => {};
535
+ function useTimeoutFn(e, v, y = {}) {
536
+ let { immediate: b = !0 } = y, x = (0, lib_exports$1.ref)(!1), S = null;
537
+ function C() {
538
+ S &&= (clearTimeout(S), null);
539
+ }
540
+ function w() {
541
+ x.value = !1, C();
542
+ }
543
+ function T(...y) {
544
+ C(), x.value = !0, S = setTimeout(() => {
545
+ x.value = !1, S = null, e(...y);
546
+ }, toValue(v));
547
+ }
548
+ return b && (x.value = !0, isClient && T()), tryOnScopeDispose(w), {
549
+ isPending: (0, lib_exports$1.readonly)(x),
550
+ start: T,
551
+ stop: w
552
+ };
553
+ }
554
+ var lib_exports = /* @__PURE__ */ __export({
555
+ Vue: () => Vue,
556
+ Vue2: () => void 0,
557
+ del: () => del,
558
+ install: () => install,
559
+ isVue2: () => !1,
560
+ isVue3: () => !0,
561
+ set: () => set
562
+ }, 1);
563
+ import * as import_vue from "vue";
564
+ __reExport(lib_exports, import_vue, void 0, 1);
565
+ function install() {}
566
+ function set(e, v, y) {
567
+ return Array.isArray(e) ? (e.length = Math.max(e.length, v), e.splice(v, 1, y), y) : (e[v] = y, y);
568
+ }
569
+ function del(e, v) {
570
+ if (Array.isArray(e)) {
571
+ e.splice(v, 1);
572
+ return;
573
+ }
574
+ delete e[v];
575
+ }
576
+ function unrefElement(e) {
577
+ let v = toValue(e);
578
+ return v?.$el ?? v;
579
+ }
580
+ var defaultWindow = isClient ? window : void 0;
581
+ isClient && window.document, isClient && window.navigator, isClient && window.location;
582
+ function useEventListener(...e) {
583
+ let v, y, b, x;
584
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([y, b, x] = e, v = defaultWindow) : [v, y, b, x] = e, !v) return noop;
585
+ Array.isArray(y) || (y = [y]), Array.isArray(b) || (b = [b]);
586
+ let S = [], C = () => {
587
+ S.forEach((e) => e()), S.length = 0;
588
+ }, w = (e, v, y, b) => (e.addEventListener(v, y, b), () => e.removeEventListener(v, y, b)), T = (0, lib_exports.watch)(() => [unrefElement(v), toValue(x)], ([e, v]) => {
589
+ if (C(), !e) return;
590
+ let x = isObject$1(v) ? { ...v } : v;
591
+ S.push(...y.flatMap((v) => b.map((y) => w(e, v, y, x))));
592
+ }, {
593
+ immediate: !0,
594
+ flush: "post"
595
+ }), E = () => {
596
+ T(), C();
597
+ };
598
+ return tryOnScopeDispose(E), E;
599
+ }
600
+ function useMounted() {
601
+ let e = (0, lib_exports.ref)(!1), v = (0, lib_exports.getCurrentInstance)();
602
+ return v && (0, lib_exports.onMounted)(() => {
603
+ e.value = !0;
604
+ }, v), e;
605
+ }
606
+ function useSupported(e) {
607
+ let v = useMounted();
608
+ return (0, lib_exports.computed)(() => (v.value, !!e()));
609
+ }
610
+ function useResizeObserver(e, v, y = {}) {
611
+ let { window: b = defaultWindow, ...x } = y, S, C = useSupported(() => b && "ResizeObserver" in b), w = () => {
612
+ S &&= (S.disconnect(), void 0);
613
+ }, T = (0, lib_exports.watch)((0, lib_exports.computed)(() => Array.isArray(e) ? e.map((e) => unrefElement(e)) : [unrefElement(e)]), (e) => {
614
+ if (w(), C.value && b) {
615
+ S = new ResizeObserver(v);
616
+ for (let v of e) v && S.observe(v, x);
617
+ }
618
+ }, {
619
+ immediate: !0,
620
+ flush: "post"
621
+ }), E = () => {
622
+ w(), T();
623
+ };
624
+ return tryOnScopeDispose(E), {
625
+ isSupported: C,
626
+ stop: E
627
+ };
628
+ }
629
+ var ElementPlusError = class extends Error {
630
+ constructor(e) {
631
+ super(e), this.name = "ElementPlusError";
632
+ }
633
+ };
634
+ function debugWarn(e, v) {
635
+ if (process.env.NODE_ENV !== "production") {
636
+ let y = isString(e) ? new ElementPlusError(`[${e}] ${v}`) : e;
637
+ console.warn(y);
638
+ }
639
+ }
640
+ var initial = { current: 0 }, zIndex = ref(0), defaultInitialZIndex = 2e3, ZINDEX_INJECTION_KEY = /* @__PURE__ */ Symbol("elZIndexContextKey"), zIndexContextKey = /* @__PURE__ */ Symbol("zIndexContextKey"), useZIndex = (e) => {
641
+ let v = getCurrentInstance() ? inject(ZINDEX_INJECTION_KEY, initial) : initial, y = e || (getCurrentInstance() ? inject(zIndexContextKey, void 0) : void 0), x = computed(() => {
642
+ let e = unref(y);
643
+ return isNumber(e) ? e : defaultInitialZIndex;
644
+ }), S = computed(() => x.value + zIndex.value);
645
+ return !isClient && !inject(ZINDEX_INJECTION_KEY) && debugWarn("ZIndexInjection", "Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed\nusage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })"), {
646
+ initialZIndex: x,
647
+ currentZIndex: S,
648
+ nextZIndex: () => (v.current++, zIndex.value = v.current, S.value)
649
+ };
650
+ }, epPropKey = "__epPropKey", definePropType = (e) => e, isEpProp = (e) => isObject(e) && !!e.__epPropKey, buildProp = (e, v) => {
651
+ if (!isObject(e) || isEpProp(e)) return e;
652
+ let { values: y, required: b, default: x, type: S, validator: C } = e, w = {
653
+ type: S,
654
+ required: !!b,
655
+ validator: y || C ? (b) => {
656
+ let S = !1, w = [];
657
+ if (y && (w = Array.from(y), hasOwn(e, "default") && w.push(x), S ||= w.includes(b)), C && (S ||= C(b)), !S && w.length > 0) {
658
+ let e = [...new Set(w)].map((e) => JSON.stringify(e)).join(", ");
659
+ warn(`Invalid prop: validation failed${v ? ` for prop "${v}"` : ""}. Expected one of [${e}], got value ${JSON.stringify(b)}.`);
660
+ }
661
+ return S;
662
+ } : void 0,
663
+ [epPropKey]: !0
664
+ };
665
+ return hasOwn(e, "default") && (w.default = x), w;
666
+ }, buildProps = (e) => fromPairs_default(Object.entries(e).map(([e, v]) => [e, buildProp(v, e)])), useSizeProp = buildProp({
667
+ type: String,
668
+ values: [
669
+ "",
670
+ "default",
671
+ "small",
672
+ "large"
673
+ ],
674
+ required: !1
675
+ }), SIZE_INJECTION_KEY = /* @__PURE__ */ Symbol("size"), emptyValuesContextKey = /* @__PURE__ */ Symbol("emptyValuesContextKey"), useEmptyValuesProps = buildProps({
676
+ emptyValues: Array,
677
+ valueOnClear: {
678
+ type: definePropType([
679
+ String,
680
+ Number,
681
+ Boolean,
682
+ Function
683
+ ]),
684
+ default: void 0,
685
+ validator: (e) => (e = isFunction(e) ? e() : e, isArray(e) ? e.every((e) => !e) : !e)
686
+ }
687
+ }), keysOf = (e) => Object.keys(e), globalConfig = ref();
688
+ function useGlobalConfig(e, v = void 0) {
689
+ let y = getCurrentInstance() ? inject(configProviderContextKey, globalConfig) : globalConfig;
690
+ return e ? computed(() => y.value?.[e] ?? v) : y;
691
+ }
692
+ function useGlobalComponentSettings(e, v) {
693
+ let y = useGlobalConfig(), x = useNamespace(e, computed(() => y.value?.namespace || "el")), S = useLocale(computed(() => y.value?.locale)), C = useZIndex(computed(() => y.value?.zIndex || 2e3)), w = computed(() => unref(v) || y.value?.size || "");
694
+ return provideGlobalConfig(computed(() => unref(y) || {})), {
695
+ ns: x,
696
+ locale: S,
697
+ zIndex: C,
698
+ size: w
699
+ };
700
+ }
701
+ var provideGlobalConfig = (e, v, y = !1) => {
702
+ let x = !!getCurrentInstance(), S = x ? useGlobalConfig() : void 0, C = v?.provide ?? (x ? provide : void 0);
703
+ if (!C) {
704
+ debugWarn("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
705
+ return;
706
+ }
707
+ let w = computed(() => {
708
+ let v = unref(e);
709
+ return S?.value ? mergeConfig(S.value, v) : v;
710
+ });
711
+ return C(configProviderContextKey, w), C(localeContextKey, computed(() => w.value.locale)), C(namespaceContextKey, computed(() => w.value.namespace)), C(zIndexContextKey, computed(() => w.value.zIndex)), C(SIZE_INJECTION_KEY, { size: computed(() => w.value.size || "") }), C(emptyValuesContextKey, computed(() => ({
712
+ emptyValues: w.value.emptyValues,
713
+ valueOnClear: w.value.valueOnClear
714
+ }))), (y || !globalConfig.value) && (globalConfig.value = w.value), w;
715
+ }, mergeConfig = (e, v) => {
716
+ let y = [.../* @__PURE__ */ new Set([...keysOf(e), ...keysOf(v)])], b = {};
717
+ for (let x of y) b[x] = v[x] === void 0 ? e[x] : v[x];
718
+ return b;
719
+ }, withInstall = (e, v) => {
720
+ if (e.install = (y) => {
721
+ for (let b of [e, ...Object.values(v ?? {})]) y.component(b.name, b);
722
+ }, v) for (let [y, b] of Object.entries(v)) e[y] = b;
723
+ return e;
724
+ }, withInstallFunction = (e, v) => (e.install = (y) => {
725
+ e._context = y._context, y.config.globalProperties[v] = e;
726
+ }, e), SCOPE = "utils/dom/style";
727
+ function addUnit(e, v = "px") {
728
+ if (!e && e !== 0) return "";
729
+ if (isNumber(e) || isStringNumber(e)) return `${e}${v}`;
730
+ if (isString(e)) return e;
731
+ debugWarn(SCOPE, "binding value must be a string or number");
732
+ }
733
+ var circle_close_filled_default = /* @__PURE__ */ defineComponent({
734
+ name: "CircleCloseFilled",
735
+ __name: "circle-close-filled",
736
+ setup(e) {
737
+ return (e, v) => (openBlock(), createElementBlock("svg", {
738
+ xmlns: "http://www.w3.org/2000/svg",
739
+ viewBox: "0 0 1024 1024"
740
+ }, [createElementVNode("path", {
741
+ fill: "currentColor",
742
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"
743
+ })]));
744
+ }
745
+ }), close_default = /* @__PURE__ */ defineComponent({
746
+ name: "Close",
747
+ __name: "close",
748
+ setup(e) {
749
+ return (e, v) => (openBlock(), createElementBlock("svg", {
750
+ xmlns: "http://www.w3.org/2000/svg",
751
+ viewBox: "0 0 1024 1024"
752
+ }, [createElementVNode("path", {
753
+ fill: "currentColor",
754
+ d: "M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"
755
+ })]));
756
+ }
757
+ }), info_filled_default = /* @__PURE__ */ defineComponent({
758
+ name: "InfoFilled",
759
+ __name: "info-filled",
760
+ setup(e) {
761
+ return (e, v) => (openBlock(), createElementBlock("svg", {
762
+ xmlns: "http://www.w3.org/2000/svg",
763
+ viewBox: "0 0 1024 1024"
764
+ }, [createElementVNode("path", {
765
+ fill: "currentColor",
766
+ d: "M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
767
+ })]));
768
+ }
769
+ }), plus_default = /* @__PURE__ */ defineComponent({
770
+ name: "Plus",
771
+ __name: "plus",
772
+ setup(e) {
773
+ return (e, v) => (openBlock(), createElementBlock("svg", {
774
+ xmlns: "http://www.w3.org/2000/svg",
775
+ viewBox: "0 0 1024 1024"
776
+ }, [createElementVNode("path", {
777
+ fill: "currentColor",
778
+ d: "M480 480V128a32 32 0 0 1 64 0v352h352a32 32 0 1 1 0 64H544v352a32 32 0 1 1-64 0V544H128a32 32 0 0 1 0-64z"
779
+ })]));
780
+ }
781
+ }), success_filled_default = /* @__PURE__ */ defineComponent({
782
+ name: "SuccessFilled",
783
+ __name: "success-filled",
784
+ setup(e) {
785
+ return (e, v) => (openBlock(), createElementBlock("svg", {
786
+ xmlns: "http://www.w3.org/2000/svg",
787
+ viewBox: "0 0 1024 1024"
788
+ }, [createElementVNode("path", {
789
+ fill: "currentColor",
790
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"
791
+ })]));
792
+ }
793
+ }), warning_filled_default = /* @__PURE__ */ defineComponent({
794
+ name: "WarningFilled",
795
+ __name: "warning-filled",
796
+ setup(e) {
797
+ return (e, v) => (openBlock(), createElementBlock("svg", {
798
+ xmlns: "http://www.w3.org/2000/svg",
799
+ viewBox: "0 0 1024 1024"
800
+ }, [createElementVNode("path", {
801
+ fill: "currentColor",
802
+ d: "M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"
803
+ })]));
804
+ }
805
+ }), iconPropType = definePropType([
806
+ String,
807
+ Object,
808
+ Function
809
+ ]), TypeComponents = {
810
+ Close: close_default,
811
+ SuccessFilled: success_filled_default,
812
+ InfoFilled: info_filled_default,
813
+ WarningFilled: warning_filled_default,
814
+ CircleCloseFilled: circle_close_filled_default
815
+ }, TypeComponentsMap = {
816
+ primary: info_filled_default,
817
+ success: success_filled_default,
818
+ warning: warning_filled_default,
819
+ error: circle_close_filled_default,
820
+ info: info_filled_default
821
+ }, ElIcon = withInstall(/* @__PURE__ */ defineComponent({
822
+ name: "ElIcon",
823
+ inheritAttrs: !1,
824
+ __name: "icon",
825
+ props: buildProps({
826
+ size: { type: definePropType([Number, String]) },
827
+ color: { type: String }
828
+ }),
829
+ setup(e) {
830
+ let v = e, y = useNamespace("icon"), x = computed(() => {
831
+ let { size: e, color: y } = v, b = addUnit(e);
832
+ return !b && !y ? {} : {
833
+ fontSize: b,
834
+ "--color": y
835
+ };
836
+ });
837
+ return (e, v) => (openBlock(), createElementBlock("i", mergeProps({
838
+ class: unref(y).b(),
839
+ style: x.value
840
+ }, e.$attrs), [renderSlot(e.$slots, "default")], 16));
841
+ }
842
+ })), mutable = (e) => e, isAndroid = () => isClient && /android/i.test(window.navigator.userAgent), EVENT_CODE = {
843
+ tab: "Tab",
844
+ enter: "Enter",
845
+ space: "Space",
846
+ left: "ArrowLeft",
847
+ up: "ArrowUp",
848
+ right: "ArrowRight",
849
+ down: "ArrowDown",
850
+ esc: "Escape",
851
+ delete: "Delete",
852
+ backspace: "Backspace",
853
+ numpadEnter: "NumpadEnter",
854
+ pageUp: "PageUp",
855
+ pageDown: "PageDown",
856
+ home: "Home",
857
+ end: "End"
858
+ }, getEventCode = (e) => {
859
+ if (e.code && e.code !== "Unidentified") return e.code;
860
+ let v = getEventKey(e);
861
+ if (v) {
862
+ if (Object.values(EVENT_CODE).includes(v)) return v;
863
+ switch (v) {
864
+ case " ": return EVENT_CODE.space;
865
+ default: return "";
866
+ }
867
+ }
868
+ return "";
869
+ }, getEventKey = (e) => {
870
+ let v = e.key && e.key !== "Unidentified" ? e.key : "";
871
+ if (!v && e.type === "keyup" && isAndroid()) {
872
+ let y = e.target;
873
+ v = y.value.charAt(y.selectionStart - 1);
874
+ }
875
+ return v;
876
+ }, ElBadge = withInstall(/* @__PURE__ */ defineComponent({
877
+ name: "ElBadge",
878
+ __name: "badge",
879
+ props: buildProps({
880
+ value: {
881
+ type: [String, Number],
882
+ default: ""
883
+ },
884
+ max: {
885
+ type: Number,
886
+ default: 99
887
+ },
888
+ isDot: Boolean,
889
+ hidden: Boolean,
890
+ type: {
891
+ type: String,
892
+ values: [
893
+ "primary",
894
+ "success",
895
+ "warning",
896
+ "info",
897
+ "danger"
898
+ ],
899
+ default: "danger"
900
+ },
901
+ showZero: {
902
+ type: Boolean,
903
+ default: !0
904
+ },
905
+ color: String,
906
+ badgeStyle: { type: definePropType([
907
+ String,
908
+ Object,
909
+ Array
910
+ ]) },
911
+ offset: {
912
+ type: definePropType(Array),
913
+ default: () => [0, 0]
914
+ },
915
+ badgeClass: { type: String }
916
+ }),
917
+ setup(e, { expose: v }) {
918
+ let x = e, S = useNamespace("badge"), D = computed(() => x.isDot ? "" : isNumber(x.value) && isNumber(x.max) && x.max < x.value ? `${x.max}+` : `${x.value}`), O = computed(() => [{
919
+ backgroundColor: x.color,
920
+ marginRight: addUnit(-x.offset[0]),
921
+ marginTop: addUnit(x.offset[1])
922
+ }, x.badgeStyle ?? {}]);
923
+ return v({ content: D }), (v, b) => (openBlock(), createElementBlock("div", { class: normalizeClass(unref(S).b()) }, [renderSlot(v.$slots, "default"), createVNode(Transition, {
924
+ name: `${unref(S).namespace.value}-zoom-in-center`,
925
+ persisted: ""
926
+ }, {
927
+ default: withCtx(() => [withDirectives(createElementVNode("sup", {
928
+ class: normalizeClass([
929
+ unref(S).e("content"),
930
+ unref(S).em("content", e.type),
931
+ unref(S).is("fixed", !!v.$slots.default),
932
+ unref(S).is("dot", e.isDot),
933
+ unref(S).is("hide-zero", !e.showZero && e.value === 0),
934
+ e.badgeClass
935
+ ]),
936
+ style: normalizeStyle(O.value)
937
+ }, [renderSlot(v.$slots, "content", { value: D.value }, () => [createTextVNode(toDisplayString(D.value), 1)])], 6), [[vShow, !e.hidden && (D.value || e.isDot || v.$slots.content)]])]),
938
+ _: 3
939
+ }, 8, ["name"])], 2));
940
+ }
941
+ })), configProviderProps = buildProps({
942
+ a11y: {
943
+ type: Boolean,
944
+ default: !0
945
+ },
946
+ locale: { type: definePropType(Object) },
947
+ size: useSizeProp,
948
+ button: { type: definePropType(Object) },
949
+ card: { type: definePropType(Object) },
950
+ dialog: { type: definePropType(Object) },
951
+ link: { type: definePropType(Object) },
952
+ experimentalFeatures: { type: definePropType(Object) },
953
+ keyboardNavigation: {
954
+ type: Boolean,
955
+ default: !0
956
+ },
957
+ message: { type: definePropType(Object) },
958
+ zIndex: Number,
959
+ namespace: {
960
+ type: String,
961
+ default: "el"
962
+ },
963
+ ...useEmptyValuesProps
964
+ }), messageConfig = { placement: "top" };
965
+ defineComponent({
966
+ name: "ElConfigProvider",
967
+ props: configProviderProps,
968
+ setup(e, { slots: v }) {
969
+ let y = provideGlobalConfig(e);
970
+ return watch(() => e.message, (e) => {
971
+ Object.assign(messageConfig, y?.value?.message ?? {}, e ?? {});
972
+ }, {
973
+ immediate: !0,
974
+ deep: !0
975
+ }), () => renderSlot(v, "default", { config: y?.value });
976
+ }
977
+ });
978
+ var messageTypes = [
979
+ "primary",
980
+ "success",
981
+ "info",
982
+ "warning",
983
+ "error"
984
+ ], messagePlacement = [
985
+ "top",
986
+ "top-left",
987
+ "top-right",
988
+ "bottom",
989
+ "bottom-left",
990
+ "bottom-right"
991
+ ], messageDefaults = mutable({
992
+ customClass: "",
993
+ dangerouslyUseHTMLString: !1,
994
+ duration: 3e3,
995
+ icon: void 0,
996
+ id: "",
997
+ message: "",
998
+ onClose: void 0,
999
+ showClose: !1,
1000
+ type: "info",
1001
+ plain: !1,
1002
+ offset: 16,
1003
+ placement: void 0,
1004
+ zIndex: 0,
1005
+ grouping: !1,
1006
+ repeatNum: 1,
1007
+ appendTo: isClient ? document.body : void 0
1008
+ }), messageProps = buildProps({
1009
+ customClass: {
1010
+ type: String,
1011
+ default: messageDefaults.customClass
1012
+ },
1013
+ dangerouslyUseHTMLString: {
1014
+ type: Boolean,
1015
+ default: messageDefaults.dangerouslyUseHTMLString
1016
+ },
1017
+ duration: {
1018
+ type: Number,
1019
+ default: messageDefaults.duration
1020
+ },
1021
+ icon: {
1022
+ type: iconPropType,
1023
+ default: messageDefaults.icon
1024
+ },
1025
+ id: {
1026
+ type: String,
1027
+ default: messageDefaults.id
1028
+ },
1029
+ message: {
1030
+ type: definePropType([
1031
+ String,
1032
+ Object,
1033
+ Function
1034
+ ]),
1035
+ default: messageDefaults.message
1036
+ },
1037
+ onClose: {
1038
+ type: definePropType(Function),
1039
+ default: messageDefaults.onClose
1040
+ },
1041
+ showClose: {
1042
+ type: Boolean,
1043
+ default: messageDefaults.showClose
1044
+ },
1045
+ type: {
1046
+ type: String,
1047
+ values: messageTypes,
1048
+ default: messageDefaults.type
1049
+ },
1050
+ plain: {
1051
+ type: Boolean,
1052
+ default: messageDefaults.plain
1053
+ },
1054
+ offset: {
1055
+ type: Number,
1056
+ default: messageDefaults.offset
1057
+ },
1058
+ placement: {
1059
+ type: String,
1060
+ values: messagePlacement,
1061
+ default: messageDefaults.placement
1062
+ },
1063
+ zIndex: {
1064
+ type: Number,
1065
+ default: messageDefaults.zIndex
1066
+ },
1067
+ grouping: {
1068
+ type: Boolean,
1069
+ default: messageDefaults.grouping
1070
+ },
1071
+ repeatNum: {
1072
+ type: Number,
1073
+ default: messageDefaults.repeatNum
1074
+ }
1075
+ }), messageEmits = { destroy: () => !0 }, placementInstances = shallowReactive({}), getOrCreatePlacementInstances = (e) => (placementInstances[e] || (placementInstances[e] = shallowReactive([])), placementInstances[e]), getInstance = (e, v) => {
1076
+ let y = placementInstances[v] || [], b = y.findIndex((v) => v.id === e), x = y[b], S;
1077
+ return b > 0 && (S = y[b - 1]), {
1078
+ current: x,
1079
+ prev: S
1080
+ };
1081
+ }, getLastOffset = (e, v) => {
1082
+ let { prev: y } = getInstance(e, v);
1083
+ return y ? y.vm.exposed.bottom.value : 0;
1084
+ }, getOffsetOrSpace = (e, v, y) => (placementInstances[y] || []).findIndex((v) => v.id === e) > 0 ? 16 : v, _hoisted_1$1 = ["id"], _hoisted_2 = ["innerHTML"], _sfc_main = /* @__PURE__ */ defineComponent({
1085
+ name: "ElMessage",
1086
+ __name: "message",
1087
+ props: messageProps,
1088
+ emits: messageEmits,
1089
+ setup(e, { expose: T, emit: D }) {
1090
+ let { Close: O } = TypeComponents, k = e, A = D, j = ref(!1), { ns: M, zIndex: N } = useGlobalComponentSettings("message"), { currentZIndex: P, nextZIndex: F } = N, I = ref(), L = ref(!1), R = ref(0), z, B = computed(() => k.type ? k.type === "error" ? "danger" : k.type : "info"), V = computed(() => {
1091
+ let e = k.type;
1092
+ return { [M.bm("icon", e)]: e && TypeComponentsMap[e] };
1093
+ }), H = computed(() => k.icon || TypeComponentsMap[k.type] || ""), U = computed(() => k.placement || "top"), W = computed(() => getLastOffset(k.id, U.value)), G = computed(() => getOffsetOrSpace(k.id, k.offset, U.value) + W.value), K = computed(() => R.value + G.value), q = computed(() => U.value.includes("left") ? M.is("left") : U.value.includes("right") ? M.is("right") : M.is("center")), J = computed(() => U.value.startsWith("top") ? "top" : "bottom"), Y = computed(() => ({
1094
+ [J.value]: `${G.value}px`,
1095
+ zIndex: P.value
1096
+ }));
1097
+ function X() {
1098
+ k.duration !== 0 && ({stop: z} = useTimeoutFn(() => {
1099
+ Q();
1100
+ }, k.duration));
1101
+ }
1102
+ function Z() {
1103
+ z?.();
1104
+ }
1105
+ function Q() {
1106
+ L.value = !1, nextTick(() => {
1107
+ var e;
1108
+ j.value || ((e = k.onClose) == null || e.call(k), A("destroy"));
1109
+ });
1110
+ }
1111
+ function $(e) {
1112
+ getEventCode(e) === EVENT_CODE.esc && Q();
1113
+ }
1114
+ return onMounted(() => {
1115
+ X(), F(), L.value = !0;
1116
+ }), watch(() => k.repeatNum, () => {
1117
+ Z(), X();
1118
+ }), useEventListener(document, "keydown", $), useResizeObserver(I, () => {
1119
+ R.value = I.value.getBoundingClientRect().height;
1120
+ }), T({
1121
+ visible: L,
1122
+ bottom: K,
1123
+ close: Q
1124
+ }), (b, T) => (openBlock(), createBlock(Transition, {
1125
+ name: unref(M).b("fade"),
1126
+ onBeforeEnter: T[0] ||= (e) => j.value = !0,
1127
+ onBeforeLeave: e.onClose,
1128
+ onAfterLeave: T[1] ||= (e) => b.$emit("destroy"),
1129
+ persisted: ""
1130
+ }, {
1131
+ default: withCtx(() => [withDirectives(createElementVNode("div", {
1132
+ id: e.id,
1133
+ ref_key: "messageRef",
1134
+ ref: I,
1135
+ class: normalizeClass([
1136
+ unref(M).b(),
1137
+ { [unref(M).m(e.type)]: e.type },
1138
+ unref(M).is("closable", e.showClose),
1139
+ unref(M).is("plain", e.plain),
1140
+ unref(M).is("bottom", J.value === "bottom"),
1141
+ q.value,
1142
+ e.customClass
1143
+ ]),
1144
+ style: normalizeStyle(Y.value),
1145
+ role: "alert",
1146
+ onMouseenter: Z,
1147
+ onMouseleave: X
1148
+ }, [
1149
+ e.repeatNum > 1 ? (openBlock(), createBlock(unref(ElBadge), {
1150
+ key: 0,
1151
+ value: e.repeatNum,
1152
+ type: B.value,
1153
+ class: normalizeClass(unref(M).e("badge"))
1154
+ }, null, 8, [
1155
+ "value",
1156
+ "type",
1157
+ "class"
1158
+ ])) : createCommentVNode("v-if", !0),
1159
+ H.value ? (openBlock(), createBlock(unref(ElIcon), {
1160
+ key: 1,
1161
+ class: normalizeClass([unref(M).e("icon"), V.value])
1162
+ }, {
1163
+ default: withCtx(() => [(openBlock(), createBlock(resolveDynamicComponent(H.value)))]),
1164
+ _: 1
1165
+ }, 8, ["class"])) : createCommentVNode("v-if", !0),
1166
+ renderSlot(b.$slots, "default", {}, () => [e.dangerouslyUseHTMLString ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "), createElementVNode("p", {
1167
+ class: normalizeClass(unref(M).e("content")),
1168
+ innerHTML: e.message
1169
+ }, null, 10, _hoisted_2)], 2112)) : (openBlock(), createElementBlock("p", {
1170
+ key: 0,
1171
+ class: normalizeClass(unref(M).e("content"))
1172
+ }, toDisplayString(e.message), 3))]),
1173
+ e.showClose ? (openBlock(), createBlock(unref(ElIcon), {
1174
+ key: 2,
1175
+ class: normalizeClass(unref(M).e("closeBtn")),
1176
+ onClick: withModifiers(Q, ["stop"])
1177
+ }, {
1178
+ default: withCtx(() => [createVNode(unref(O))]),
1179
+ _: 1
1180
+ }, 8, ["class"])) : createCommentVNode("v-if", !0)
1181
+ ], 46, _hoisted_1$1), [[vShow, L.value]])]),
1182
+ _: 3
1183
+ }, 8, ["name", "onBeforeLeave"]));
1184
+ }
1185
+ }), seed = 1, normalizeAppendTo = (e) => {
1186
+ if (!e.appendTo) e.appendTo = document.body;
1187
+ else if (isString(e.appendTo)) {
1188
+ let v = document.querySelector(e.appendTo);
1189
+ isElement(v) || (debugWarn("ElMessage", "the appendTo option is not an HTMLElement. Falling back to document.body."), v = document.body), e.appendTo = v;
1190
+ }
1191
+ }, normalizePlacement = (e) => {
1192
+ !e.placement && isString(messageConfig.placement) && messageConfig.placement && (e.placement = messageConfig.placement), e.placement ||= "top", messagePlacement.includes(e.placement) || (debugWarn("ElMessage", `Invalid placement: ${e.placement}. Falling back to 'top'.`), e.placement = "top");
1193
+ }, normalizeOptions = (e) => {
1194
+ let v = !e || isString(e) || isVNode(e) || isFunction(e) ? { message: e } : e, y = {
1195
+ ...messageDefaults,
1196
+ ...v
1197
+ };
1198
+ return normalizeAppendTo(y), normalizePlacement(y), isBoolean(messageConfig.grouping) && !y.grouping && (y.grouping = messageConfig.grouping), isNumber(messageConfig.duration) && y.duration === 3e3 && (y.duration = messageConfig.duration), isNumber(messageConfig.offset) && y.offset === 16 && (y.offset = messageConfig.offset), isBoolean(messageConfig.showClose) && !y.showClose && (y.showClose = messageConfig.showClose), isBoolean(messageConfig.plain) && !y.plain && (y.plain = messageConfig.plain), y;
1199
+ }, closeMessage = (e) => {
1200
+ let v = placementInstances[e.props.placement || "top"], y = v.indexOf(e);
1201
+ if (y === -1) return;
1202
+ v.splice(y, 1);
1203
+ let { handler: b } = e;
1204
+ b.close();
1205
+ }, createMessage = ({ appendTo: e, ...v }, y) => {
1206
+ let b = `message_${seed++}`, x = v.onClose, S = document.createElement("div"), C = {
1207
+ ...v,
1208
+ id: b,
1209
+ onClose: () => {
1210
+ x?.(), closeMessage(D);
1211
+ },
1212
+ onDestroy: () => {
1213
+ render(null, S);
1214
+ }
1215
+ }, w = createVNode(_sfc_main, C, isFunction(C.message) || isVNode(C.message) ? { default: isFunction(C.message) ? C.message : () => C.message } : null);
1216
+ w.appContext = y || message._context, render(w, S), e.appendChild(S.firstElementChild);
1217
+ let T = w.component, D = {
1218
+ id: b,
1219
+ vnode: w,
1220
+ vm: T,
1221
+ handler: { close: () => {
1222
+ T.exposed.close();
1223
+ } },
1224
+ props: w.component.props
1225
+ };
1226
+ return D;
1227
+ }, message = (e = {}, v) => {
1228
+ if (!isClient) return { close: () => void 0 };
1229
+ let y = normalizeOptions(e), b = getOrCreatePlacementInstances(y.placement || "top");
1230
+ if (y.grouping && b.length) {
1231
+ let e = b.find(({ vnode: e }) => e.props?.message === y.message);
1232
+ if (e) return e.props.repeatNum += 1, e.props.type = y.type, e.handler;
1233
+ }
1234
+ if (isNumber(messageConfig.max) && b.length >= messageConfig.max) return { close: () => void 0 };
1235
+ let x = createMessage(y, v);
1236
+ return b.push(x), x.handler;
1237
+ };
1238
+ messageTypes.forEach((e) => {
1239
+ message[e] = (v = {}, y) => message({
1240
+ ...normalizeOptions(v),
1241
+ type: e
1242
+ }, y);
1243
+ });
1244
+ function closeAll(e) {
1245
+ for (let v in placementInstances) if (hasOwn(placementInstances, v)) {
1246
+ let y = [...placementInstances[v]];
1247
+ for (let v of y) (!e || e === v.props.type) && v.handler.close();
1248
+ }
1249
+ }
1250
+ function closeAllByPlacement(e) {
1251
+ placementInstances[e] && [...placementInstances[e]].forEach((e) => e.handler.close());
1252
+ }
1253
+ message.closeAll = closeAll, message.closeAllByPlacement = closeAllByPlacement, message._context = null;
1254
+ var ElMessage = withInstallFunction(message, "$message");
1255
+ const isEmpty = (e) => e == null || e.trim().length === 0;
1256
+ var _hoisted_1 = ["src"], src_default = /* @__PURE__ */ defineComponent({
1257
+ __name: "index",
1258
+ props: /* @__PURE__ */ mergeModels({
1259
+ action: {
1260
+ type: String,
1261
+ default: ""
1262
+ },
1263
+ folder: {
1264
+ type: String,
1265
+ default: ""
1266
+ },
1267
+ size: {
1268
+ type: Number,
1269
+ default: 178
1270
+ },
1271
+ radius: {
1272
+ type: Number,
1273
+ default: 6
1274
+ },
1275
+ headers: {
1276
+ type: String,
1277
+ token: ""
1278
+ }
1279
+ }, {
1280
+ modelValue: {},
1281
+ modelModifiers: {}
1282
+ }),
1283
+ emits: ["update:modelValue"],
1284
+ setup(e) {
1285
+ let v = useModel(e, "modelValue"), y = (e) => {
1286
+ v.value = e.data.url;
1287
+ }, b = (e) => e.size / 1024 / 1024 > 2 ? (ElMessage.error("Avatar picture size can not exceed 2MB!"), !1) : !0;
1288
+ return (w, T) => {
1289
+ let D = resolveComponent("el-icon"), O = resolveComponent("el-upload");
1290
+ return openBlock(), createBlock(O, {
1291
+ class: "oga-avatar",
1292
+ action: e.action,
1293
+ style: normalizeStyle({
1294
+ "--size": e.size,
1295
+ "--radius": e.radius
1296
+ }),
1297
+ "show-file-list": !1,
1298
+ accept: "image/*",
1299
+ "on-success": y,
1300
+ "before-upload": b
1301
+ }, {
1302
+ default: withCtx(() => [v.value ? (openBlock(), createElementBlock("img", {
1303
+ key: 0,
1304
+ src: v.value,
1305
+ class: "oga-avatar-img",
1306
+ alt: ""
1307
+ }, null, 8, _hoisted_1)) : createCommentVNode("v-if", !0), createVNode(D, { class: normalizeClass(["oga-avatar-icon", unref(isEmpty)(v.value) ? "is-empty" : ""]) }, {
1308
+ default: withCtx(() => [createVNode(unref(plus_default))]),
1309
+ _: 1
1310
+ }, 8, ["class"])]),
1311
+ _: 1
1312
+ }, 8, ["action", "style"]);
1313
+ };
1314
+ }
1315
+ }), avatar_default = { install(e) {
1316
+ e.component("OgaAvatar", src_default);
1317
+ } };
1318
+ export { avatar_default as default };