bm-admin-ui 1.0.3-alpha → 1.0.6-alpha

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 (54) hide show
  1. package/es/components/feedback/index.d.ts +1037 -0
  2. package/es/components/feedback/index.js +1559 -0
  3. package/es/components/feedback/src/bmAlert.vue.d.ts +193 -0
  4. package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
  5. package/es/components/index.d.ts +1 -0
  6. package/es/components/index.js +1 -0
  7. package/es/components/multi-cascader-compose/index.js +4 -4
  8. package/es/components/search-filter/index.d.ts +48 -5
  9. package/es/components/search-filter/index.js +73 -49
  10. package/es/components/search-filter/src/search-filter.vue.d.ts +48 -5
  11. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
  12. package/es/components/search-filter/src/serach-filter.d.ts +13 -1
  13. package/es/components/shops-filter/index.js +55 -49
  14. package/es/components/staffs-selector/index.js +4 -4
  15. package/es/components/upload/index.js +4 -4
  16. package/index.esm.js +32475 -27977
  17. package/index.js +32478 -27975
  18. package/lib/components/feedback/index.d.ts +1037 -0
  19. package/lib/components/feedback/index.js +1573 -0
  20. package/lib/components/feedback/src/bmAlert.vue.d.ts +193 -0
  21. package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
  22. package/lib/components/index.d.ts +1 -0
  23. package/lib/components/index.js +7 -0
  24. package/lib/components/multi-cascader-compose/index.js +4 -4
  25. package/lib/components/search-filter/index.d.ts +48 -5
  26. package/lib/components/search-filter/index.js +72 -48
  27. package/lib/components/search-filter/src/search-filter.vue.d.ts +48 -5
  28. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
  29. package/lib/components/search-filter/src/serach-filter.d.ts +13 -1
  30. package/lib/components/shops-filter/index.js +54 -48
  31. package/lib/components/staffs-selector/index.js +4 -4
  32. package/lib/components/upload/index.js +4 -4
  33. package/package.json +2 -2
  34. package/theme-chalk/alert.css +1 -0
  35. package/theme-chalk/button.css +1 -1
  36. package/theme-chalk/feedback.css +1 -0
  37. package/theme-chalk/float-table.css +1 -1
  38. package/theme-chalk/floating-vue.css +1 -1
  39. package/theme-chalk/flow-designer.css +1 -1
  40. package/theme-chalk/index.css +1 -1
  41. package/theme-chalk/modal.css +1 -0
  42. package/theme-chalk/multi-cascader-compose.css +1 -1
  43. package/theme-chalk/over-tooltips.css +1 -1
  44. package/theme-chalk/search-filter.css +1 -1
  45. package/theme-chalk/timeline.css +1 -1
  46. package/theme-chalk/upload.css +1 -1
  47. package/types/components/feedback/index.d.ts +1037 -0
  48. package/types/components/feedback/src/bmAlert.vue.d.ts +193 -0
  49. package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
  50. package/types/components/index.d.ts +1 -0
  51. package/types/components/search-filter/index.d.ts +48 -5
  52. package/types/components/search-filter/src/search-filter.vue.d.ts +48 -5
  53. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +2 -6
  54. package/types/components/search-filter/src/serach-filter.d.ts +13 -1
@@ -0,0 +1,1573 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ var antDesignVue = require('ant-design-vue');
6
+ var withInstall = require('bm-admin-ui/lib/utils/with-install');
7
+ var vue = require('vue');
8
+ var AAlert = require('ant-design-vue/lib/alert');
9
+ var AModal$1 = require('ant-design-vue/lib/modal');
10
+ var message = require('ant-design-vue/lib/message');
11
+
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
14
+ var AAlert__default = /*#__PURE__*/_interopDefaultLegacy(AAlert);
15
+ var AModal__default = /*#__PURE__*/_interopDefaultLegacy(AModal$1);
16
+ var message__default = /*#__PURE__*/_interopDefaultLegacy(message);
17
+
18
+ /*! *****************************************************************************
19
+ Copyright (c) Microsoft Corporation.
20
+
21
+ Permission to use, copy, modify, and/or distribute this software for any
22
+ purpose with or without fee is hereby granted.
23
+
24
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
25
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
26
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
27
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
28
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
29
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
30
+ PERFORMANCE OF THIS SOFTWARE.
31
+ ***************************************************************************** */
32
+
33
+ function __awaiter(thisArg, _arguments, P, generator) {
34
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
35
+ return new (P || (P = Promise))(function (resolve, reject) {
36
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
37
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
38
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
39
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
40
+ });
41
+ }
42
+
43
+ /**
44
+ * Take input from [0, n] and return it as [0, 1]
45
+ * @hidden
46
+ */
47
+ function bound01(n, max) {
48
+ if (isOnePointZero(n)) {
49
+ n = '100%';
50
+ }
51
+ var isPercent = isPercentage(n);
52
+ n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
53
+ // Automatically convert percentage into number
54
+ if (isPercent) {
55
+ n = parseInt(String(n * max), 10) / 100;
56
+ }
57
+ // Handle floating point rounding errors
58
+ if (Math.abs(n - max) < 0.000001) {
59
+ return 1;
60
+ }
61
+ // Convert into [0, 1] range if it isn't already
62
+ if (max === 360) {
63
+ // If n is a hue given in degrees,
64
+ // wrap around out-of-range values into [0, 360] range
65
+ // then convert into [0, 1].
66
+ n = (n < 0 ? (n % max) + max : n % max) / parseFloat(String(max));
67
+ }
68
+ else {
69
+ // If n not a hue given in degrees
70
+ // Convert into [0, 1] range if it isn't already.
71
+ n = (n % max) / parseFloat(String(max));
72
+ }
73
+ return n;
74
+ }
75
+ /**
76
+ * Need to handle 1.0 as 100%, since once it is a number, there is no difference between it and 1
77
+ * <http://stackoverflow.com/questions/7422072/javascript-how-to-detect-number-as-a-decimal-including-1-0>
78
+ * @hidden
79
+ */
80
+ function isOnePointZero(n) {
81
+ return typeof n === 'string' && n.indexOf('.') !== -1 && parseFloat(n) === 1;
82
+ }
83
+ /**
84
+ * Check to see if string passed in is a percentage
85
+ * @hidden
86
+ */
87
+ function isPercentage(n) {
88
+ return typeof n === 'string' && n.indexOf('%') !== -1;
89
+ }
90
+ /**
91
+ * Return a valid alpha value [0,1] with all invalid values being set to 1
92
+ * @hidden
93
+ */
94
+ function boundAlpha(a) {
95
+ a = parseFloat(a);
96
+ if (isNaN(a) || a < 0 || a > 1) {
97
+ a = 1;
98
+ }
99
+ return a;
100
+ }
101
+ /**
102
+ * Replace a decimal with it's percentage value
103
+ * @hidden
104
+ */
105
+ function convertToPercentage(n) {
106
+ if (n <= 1) {
107
+ return Number(n) * 100 + "%";
108
+ }
109
+ return n;
110
+ }
111
+ /**
112
+ * Force a hex value to have 2 characters
113
+ * @hidden
114
+ */
115
+ function pad2(c) {
116
+ return c.length === 1 ? '0' + c : String(c);
117
+ }
118
+
119
+ // `rgbToHsl`, `rgbToHsv`, `hslToRgb`, `hsvToRgb` modified from:
120
+ // <http://mjijackson.com/2008/02/rgb-to-hsl-and-rgb-to-hsv-color-model-conversion-algorithms-in-javascript>
121
+ /**
122
+ * Handle bounds / percentage checking to conform to CSS color spec
123
+ * <http://www.w3.org/TR/css3-color/>
124
+ * *Assumes:* r, g, b in [0, 255] or [0, 1]
125
+ * *Returns:* { r, g, b } in [0, 255]
126
+ */
127
+ function rgbToRgb(r, g, b) {
128
+ return {
129
+ r: bound01(r, 255) * 255,
130
+ g: bound01(g, 255) * 255,
131
+ b: bound01(b, 255) * 255,
132
+ };
133
+ }
134
+ function hue2rgb(p, q, t) {
135
+ if (t < 0) {
136
+ t += 1;
137
+ }
138
+ if (t > 1) {
139
+ t -= 1;
140
+ }
141
+ if (t < 1 / 6) {
142
+ return p + (q - p) * (6 * t);
143
+ }
144
+ if (t < 1 / 2) {
145
+ return q;
146
+ }
147
+ if (t < 2 / 3) {
148
+ return p + (q - p) * (2 / 3 - t) * 6;
149
+ }
150
+ return p;
151
+ }
152
+ /**
153
+ * Converts an HSL color value to RGB.
154
+ *
155
+ * *Assumes:* h is contained in [0, 1] or [0, 360] and s and l are contained [0, 1] or [0, 100]
156
+ * *Returns:* { r, g, b } in the set [0, 255]
157
+ */
158
+ function hslToRgb(h, s, l) {
159
+ var r;
160
+ var g;
161
+ var b;
162
+ h = bound01(h, 360);
163
+ s = bound01(s, 100);
164
+ l = bound01(l, 100);
165
+ if (s === 0) {
166
+ // achromatic
167
+ g = l;
168
+ b = l;
169
+ r = l;
170
+ }
171
+ else {
172
+ var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
173
+ var p = 2 * l - q;
174
+ r = hue2rgb(p, q, h + 1 / 3);
175
+ g = hue2rgb(p, q, h);
176
+ b = hue2rgb(p, q, h - 1 / 3);
177
+ }
178
+ return { r: r * 255, g: g * 255, b: b * 255 };
179
+ }
180
+ /**
181
+ * Converts an RGB color value to HSV
182
+ *
183
+ * *Assumes:* r, g, and b are contained in the set [0, 255] or [0, 1]
184
+ * *Returns:* { h, s, v } in [0,1]
185
+ */
186
+ function rgbToHsv(r, g, b) {
187
+ r = bound01(r, 255);
188
+ g = bound01(g, 255);
189
+ b = bound01(b, 255);
190
+ var max = Math.max(r, g, b);
191
+ var min = Math.min(r, g, b);
192
+ var h = 0;
193
+ var v = max;
194
+ var d = max - min;
195
+ var s = max === 0 ? 0 : d / max;
196
+ if (max === min) {
197
+ h = 0; // achromatic
198
+ }
199
+ else {
200
+ switch (max) {
201
+ case r:
202
+ h = (g - b) / d + (g < b ? 6 : 0);
203
+ break;
204
+ case g:
205
+ h = (b - r) / d + 2;
206
+ break;
207
+ case b:
208
+ h = (r - g) / d + 4;
209
+ break;
210
+ }
211
+ h /= 6;
212
+ }
213
+ return { h: h, s: s, v: v };
214
+ }
215
+ /**
216
+ * Converts an HSV color value to RGB.
217
+ *
218
+ * *Assumes:* h is contained in [0, 1] or [0, 360] and s and v are contained in [0, 1] or [0, 100]
219
+ * *Returns:* { r, g, b } in the set [0, 255]
220
+ */
221
+ function hsvToRgb(h, s, v) {
222
+ h = bound01(h, 360) * 6;
223
+ s = bound01(s, 100);
224
+ v = bound01(v, 100);
225
+ var i = Math.floor(h);
226
+ var f = h - i;
227
+ var p = v * (1 - s);
228
+ var q = v * (1 - f * s);
229
+ var t = v * (1 - (1 - f) * s);
230
+ var mod = i % 6;
231
+ var r = [v, q, p, p, t, v][mod];
232
+ var g = [t, v, v, q, p, p][mod];
233
+ var b = [p, p, t, v, v, q][mod];
234
+ return { r: r * 255, g: g * 255, b: b * 255 };
235
+ }
236
+ /**
237
+ * Converts an RGB color to hex
238
+ *
239
+ * Assumes r, g, and b are contained in the set [0, 255]
240
+ * Returns a 3 or 6 character hex
241
+ */
242
+ function rgbToHex(r, g, b, allow3Char) {
243
+ var hex = [
244
+ pad2(Math.round(r).toString(16)),
245
+ pad2(Math.round(g).toString(16)),
246
+ pad2(Math.round(b).toString(16)),
247
+ ];
248
+ // Return a 3 character hex if possible
249
+ if (allow3Char &&
250
+ hex[0].startsWith(hex[0].charAt(1)) &&
251
+ hex[1].startsWith(hex[1].charAt(1)) &&
252
+ hex[2].startsWith(hex[2].charAt(1))) {
253
+ return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
254
+ }
255
+ return hex.join('');
256
+ }
257
+ /** Converts a hex value to a decimal */
258
+ function convertHexToDecimal(h) {
259
+ return parseIntFromHex(h) / 255;
260
+ }
261
+ /** Parse a base-16 hex value into a base-10 integer */
262
+ function parseIntFromHex(val) {
263
+ return parseInt(val, 16);
264
+ }
265
+
266
+ // https://github.com/bahamas10/css-color-names/blob/master/css-color-names.json
267
+ /**
268
+ * @hidden
269
+ */
270
+ var names = {
271
+ aliceblue: '#f0f8ff',
272
+ antiquewhite: '#faebd7',
273
+ aqua: '#00ffff',
274
+ aquamarine: '#7fffd4',
275
+ azure: '#f0ffff',
276
+ beige: '#f5f5dc',
277
+ bisque: '#ffe4c4',
278
+ black: '#000000',
279
+ blanchedalmond: '#ffebcd',
280
+ blue: '#0000ff',
281
+ blueviolet: '#8a2be2',
282
+ brown: '#a52a2a',
283
+ burlywood: '#deb887',
284
+ cadetblue: '#5f9ea0',
285
+ chartreuse: '#7fff00',
286
+ chocolate: '#d2691e',
287
+ coral: '#ff7f50',
288
+ cornflowerblue: '#6495ed',
289
+ cornsilk: '#fff8dc',
290
+ crimson: '#dc143c',
291
+ cyan: '#00ffff',
292
+ darkblue: '#00008b',
293
+ darkcyan: '#008b8b',
294
+ darkgoldenrod: '#b8860b',
295
+ darkgray: '#a9a9a9',
296
+ darkgreen: '#006400',
297
+ darkgrey: '#a9a9a9',
298
+ darkkhaki: '#bdb76b',
299
+ darkmagenta: '#8b008b',
300
+ darkolivegreen: '#556b2f',
301
+ darkorange: '#ff8c00',
302
+ darkorchid: '#9932cc',
303
+ darkred: '#8b0000',
304
+ darksalmon: '#e9967a',
305
+ darkseagreen: '#8fbc8f',
306
+ darkslateblue: '#483d8b',
307
+ darkslategray: '#2f4f4f',
308
+ darkslategrey: '#2f4f4f',
309
+ darkturquoise: '#00ced1',
310
+ darkviolet: '#9400d3',
311
+ deeppink: '#ff1493',
312
+ deepskyblue: '#00bfff',
313
+ dimgray: '#696969',
314
+ dimgrey: '#696969',
315
+ dodgerblue: '#1e90ff',
316
+ firebrick: '#b22222',
317
+ floralwhite: '#fffaf0',
318
+ forestgreen: '#228b22',
319
+ fuchsia: '#ff00ff',
320
+ gainsboro: '#dcdcdc',
321
+ ghostwhite: '#f8f8ff',
322
+ goldenrod: '#daa520',
323
+ gold: '#ffd700',
324
+ gray: '#808080',
325
+ green: '#008000',
326
+ greenyellow: '#adff2f',
327
+ grey: '#808080',
328
+ honeydew: '#f0fff0',
329
+ hotpink: '#ff69b4',
330
+ indianred: '#cd5c5c',
331
+ indigo: '#4b0082',
332
+ ivory: '#fffff0',
333
+ khaki: '#f0e68c',
334
+ lavenderblush: '#fff0f5',
335
+ lavender: '#e6e6fa',
336
+ lawngreen: '#7cfc00',
337
+ lemonchiffon: '#fffacd',
338
+ lightblue: '#add8e6',
339
+ lightcoral: '#f08080',
340
+ lightcyan: '#e0ffff',
341
+ lightgoldenrodyellow: '#fafad2',
342
+ lightgray: '#d3d3d3',
343
+ lightgreen: '#90ee90',
344
+ lightgrey: '#d3d3d3',
345
+ lightpink: '#ffb6c1',
346
+ lightsalmon: '#ffa07a',
347
+ lightseagreen: '#20b2aa',
348
+ lightskyblue: '#87cefa',
349
+ lightslategray: '#778899',
350
+ lightslategrey: '#778899',
351
+ lightsteelblue: '#b0c4de',
352
+ lightyellow: '#ffffe0',
353
+ lime: '#00ff00',
354
+ limegreen: '#32cd32',
355
+ linen: '#faf0e6',
356
+ magenta: '#ff00ff',
357
+ maroon: '#800000',
358
+ mediumaquamarine: '#66cdaa',
359
+ mediumblue: '#0000cd',
360
+ mediumorchid: '#ba55d3',
361
+ mediumpurple: '#9370db',
362
+ mediumseagreen: '#3cb371',
363
+ mediumslateblue: '#7b68ee',
364
+ mediumspringgreen: '#00fa9a',
365
+ mediumturquoise: '#48d1cc',
366
+ mediumvioletred: '#c71585',
367
+ midnightblue: '#191970',
368
+ mintcream: '#f5fffa',
369
+ mistyrose: '#ffe4e1',
370
+ moccasin: '#ffe4b5',
371
+ navajowhite: '#ffdead',
372
+ navy: '#000080',
373
+ oldlace: '#fdf5e6',
374
+ olive: '#808000',
375
+ olivedrab: '#6b8e23',
376
+ orange: '#ffa500',
377
+ orangered: '#ff4500',
378
+ orchid: '#da70d6',
379
+ palegoldenrod: '#eee8aa',
380
+ palegreen: '#98fb98',
381
+ paleturquoise: '#afeeee',
382
+ palevioletred: '#db7093',
383
+ papayawhip: '#ffefd5',
384
+ peachpuff: '#ffdab9',
385
+ peru: '#cd853f',
386
+ pink: '#ffc0cb',
387
+ plum: '#dda0dd',
388
+ powderblue: '#b0e0e6',
389
+ purple: '#800080',
390
+ rebeccapurple: '#663399',
391
+ red: '#ff0000',
392
+ rosybrown: '#bc8f8f',
393
+ royalblue: '#4169e1',
394
+ saddlebrown: '#8b4513',
395
+ salmon: '#fa8072',
396
+ sandybrown: '#f4a460',
397
+ seagreen: '#2e8b57',
398
+ seashell: '#fff5ee',
399
+ sienna: '#a0522d',
400
+ silver: '#c0c0c0',
401
+ skyblue: '#87ceeb',
402
+ slateblue: '#6a5acd',
403
+ slategray: '#708090',
404
+ slategrey: '#708090',
405
+ snow: '#fffafa',
406
+ springgreen: '#00ff7f',
407
+ steelblue: '#4682b4',
408
+ tan: '#d2b48c',
409
+ teal: '#008080',
410
+ thistle: '#d8bfd8',
411
+ tomato: '#ff6347',
412
+ turquoise: '#40e0d0',
413
+ violet: '#ee82ee',
414
+ wheat: '#f5deb3',
415
+ white: '#ffffff',
416
+ whitesmoke: '#f5f5f5',
417
+ yellow: '#ffff00',
418
+ yellowgreen: '#9acd32',
419
+ };
420
+
421
+ /**
422
+ * Given a string or object, convert that input to RGB
423
+ *
424
+ * Possible string inputs:
425
+ * ```
426
+ * "red"
427
+ * "#f00" or "f00"
428
+ * "#ff0000" or "ff0000"
429
+ * "#ff000000" or "ff000000"
430
+ * "rgb 255 0 0" or "rgb (255, 0, 0)"
431
+ * "rgb 1.0 0 0" or "rgb (1, 0, 0)"
432
+ * "rgba (255, 0, 0, 1)" or "rgba 255, 0, 0, 1"
433
+ * "rgba (1.0, 0, 0, 1)" or "rgba 1.0, 0, 0, 1"
434
+ * "hsl(0, 100%, 50%)" or "hsl 0 100% 50%"
435
+ * "hsla(0, 100%, 50%, 1)" or "hsla 0 100% 50%, 1"
436
+ * "hsv(0, 100%, 100%)" or "hsv 0 100% 100%"
437
+ * ```
438
+ */
439
+ function inputToRGB(color) {
440
+ var rgb = { r: 0, g: 0, b: 0 };
441
+ var a = 1;
442
+ var s = null;
443
+ var v = null;
444
+ var l = null;
445
+ var ok = false;
446
+ var format = false;
447
+ if (typeof color === 'string') {
448
+ color = stringInputToObject(color);
449
+ }
450
+ if (typeof color === 'object') {
451
+ if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
452
+ rgb = rgbToRgb(color.r, color.g, color.b);
453
+ ok = true;
454
+ format = String(color.r).substr(-1) === '%' ? 'prgb' : 'rgb';
455
+ }
456
+ else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
457
+ s = convertToPercentage(color.s);
458
+ v = convertToPercentage(color.v);
459
+ rgb = hsvToRgb(color.h, s, v);
460
+ ok = true;
461
+ format = 'hsv';
462
+ }
463
+ else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
464
+ s = convertToPercentage(color.s);
465
+ l = convertToPercentage(color.l);
466
+ rgb = hslToRgb(color.h, s, l);
467
+ ok = true;
468
+ format = 'hsl';
469
+ }
470
+ if (Object.prototype.hasOwnProperty.call(color, 'a')) {
471
+ a = color.a;
472
+ }
473
+ }
474
+ a = boundAlpha(a);
475
+ return {
476
+ ok: ok,
477
+ format: color.format || format,
478
+ r: Math.min(255, Math.max(rgb.r, 0)),
479
+ g: Math.min(255, Math.max(rgb.g, 0)),
480
+ b: Math.min(255, Math.max(rgb.b, 0)),
481
+ a: a,
482
+ };
483
+ }
484
+ // <http://www.w3.org/TR/css3-values/#integers>
485
+ var CSS_INTEGER = '[-\\+]?\\d+%?';
486
+ // <http://www.w3.org/TR/css3-values/#number-value>
487
+ var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
488
+ // Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
489
+ var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
490
+ // Actual matching.
491
+ // Parentheses and commas are optional, but not required.
492
+ // Whitespace can take the place of commas or opening paren
493
+ var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
494
+ var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
495
+ var matchers = {
496
+ CSS_UNIT: new RegExp(CSS_UNIT),
497
+ rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
498
+ rgba: new RegExp('rgba' + PERMISSIVE_MATCH4),
499
+ hsl: new RegExp('hsl' + PERMISSIVE_MATCH3),
500
+ hsla: new RegExp('hsla' + PERMISSIVE_MATCH4),
501
+ hsv: new RegExp('hsv' + PERMISSIVE_MATCH3),
502
+ hsva: new RegExp('hsva' + PERMISSIVE_MATCH4),
503
+ hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
504
+ hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
505
+ hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
506
+ hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
507
+ };
508
+ /**
509
+ * Permissive string parsing. Take in a number of formats, and output an object
510
+ * based on detected format. Returns `{ r, g, b }` or `{ h, s, l }` or `{ h, s, v}`
511
+ */
512
+ function stringInputToObject(color) {
513
+ color = color.trim().toLowerCase();
514
+ if (color.length === 0) {
515
+ return false;
516
+ }
517
+ var named = false;
518
+ if (names[color]) {
519
+ color = names[color];
520
+ named = true;
521
+ }
522
+ else if (color === 'transparent') {
523
+ return { r: 0, g: 0, b: 0, a: 0, format: 'name' };
524
+ }
525
+ // Try to match string input using regular expressions.
526
+ // Keep most of the number bounding out of this function - don't worry about [0,1] or [0,100] or [0,360]
527
+ // Just return an object and let the conversion functions handle that.
528
+ // This way the result will be the same whether the tinycolor is initialized with string or object.
529
+ var match = matchers.rgb.exec(color);
530
+ if (match) {
531
+ return { r: match[1], g: match[2], b: match[3] };
532
+ }
533
+ match = matchers.rgba.exec(color);
534
+ if (match) {
535
+ return { r: match[1], g: match[2], b: match[3], a: match[4] };
536
+ }
537
+ match = matchers.hsl.exec(color);
538
+ if (match) {
539
+ return { h: match[1], s: match[2], l: match[3] };
540
+ }
541
+ match = matchers.hsla.exec(color);
542
+ if (match) {
543
+ return { h: match[1], s: match[2], l: match[3], a: match[4] };
544
+ }
545
+ match = matchers.hsv.exec(color);
546
+ if (match) {
547
+ return { h: match[1], s: match[2], v: match[3] };
548
+ }
549
+ match = matchers.hsva.exec(color);
550
+ if (match) {
551
+ return { h: match[1], s: match[2], v: match[3], a: match[4] };
552
+ }
553
+ match = matchers.hex8.exec(color);
554
+ if (match) {
555
+ return {
556
+ r: parseIntFromHex(match[1]),
557
+ g: parseIntFromHex(match[2]),
558
+ b: parseIntFromHex(match[3]),
559
+ a: convertHexToDecimal(match[4]),
560
+ format: named ? 'name' : 'hex8',
561
+ };
562
+ }
563
+ match = matchers.hex6.exec(color);
564
+ if (match) {
565
+ return {
566
+ r: parseIntFromHex(match[1]),
567
+ g: parseIntFromHex(match[2]),
568
+ b: parseIntFromHex(match[3]),
569
+ format: named ? 'name' : 'hex',
570
+ };
571
+ }
572
+ match = matchers.hex4.exec(color);
573
+ if (match) {
574
+ return {
575
+ r: parseIntFromHex(match[1] + match[1]),
576
+ g: parseIntFromHex(match[2] + match[2]),
577
+ b: parseIntFromHex(match[3] + match[3]),
578
+ a: convertHexToDecimal(match[4] + match[4]),
579
+ format: named ? 'name' : 'hex8',
580
+ };
581
+ }
582
+ match = matchers.hex3.exec(color);
583
+ if (match) {
584
+ return {
585
+ r: parseIntFromHex(match[1] + match[1]),
586
+ g: parseIntFromHex(match[2] + match[2]),
587
+ b: parseIntFromHex(match[3] + match[3]),
588
+ format: named ? 'name' : 'hex',
589
+ };
590
+ }
591
+ return false;
592
+ }
593
+ /**
594
+ * Check to see if it looks like a CSS unit
595
+ * (see `matchers` above for definition).
596
+ */
597
+ function isValidCSSUnit(color) {
598
+ return Boolean(matchers.CSS_UNIT.exec(String(color)));
599
+ }
600
+
601
+ var hueStep = 2; // 色相阶梯
602
+
603
+ var saturationStep = 0.16; // 饱和度阶梯,浅色部分
604
+
605
+ var saturationStep2 = 0.05; // 饱和度阶梯,深色部分
606
+
607
+ var brightnessStep1 = 0.05; // 亮度阶梯,浅色部分
608
+
609
+ var brightnessStep2 = 0.15; // 亮度阶梯,深色部分
610
+
611
+ var lightColorCount = 5; // 浅色数量,主色上
612
+
613
+ var darkColorCount = 4; // 深色数量,主色下
614
+ // 暗色主题颜色映射关系表
615
+
616
+ var darkColorMap = [{
617
+ index: 7,
618
+ opacity: 0.15
619
+ }, {
620
+ index: 6,
621
+ opacity: 0.25
622
+ }, {
623
+ index: 5,
624
+ opacity: 0.3
625
+ }, {
626
+ index: 5,
627
+ opacity: 0.45
628
+ }, {
629
+ index: 5,
630
+ opacity: 0.65
631
+ }, {
632
+ index: 5,
633
+ opacity: 0.85
634
+ }, {
635
+ index: 4,
636
+ opacity: 0.9
637
+ }, {
638
+ index: 3,
639
+ opacity: 0.95
640
+ }, {
641
+ index: 2,
642
+ opacity: 0.97
643
+ }, {
644
+ index: 1,
645
+ opacity: 0.98
646
+ }]; // Wrapper function ported from TinyColor.prototype.toHsv
647
+ // Keep it here because of `hsv.h * 360`
648
+
649
+ function toHsv(_ref) {
650
+ var r = _ref.r,
651
+ g = _ref.g,
652
+ b = _ref.b;
653
+ var hsv = rgbToHsv(r, g, b);
654
+ return {
655
+ h: hsv.h * 360,
656
+ s: hsv.s,
657
+ v: hsv.v
658
+ };
659
+ } // Wrapper function ported from TinyColor.prototype.toHexString
660
+ // Keep it here because of the prefix `#`
661
+
662
+
663
+ function toHex(_ref2) {
664
+ var r = _ref2.r,
665
+ g = _ref2.g,
666
+ b = _ref2.b;
667
+ return "#".concat(rgbToHex(r, g, b, false));
668
+ } // Wrapper function ported from TinyColor.prototype.mix, not treeshakable.
669
+ // Amount in range [0, 1]
670
+ // Assume color1 & color2 has no alpha, since the following src code did so.
671
+
672
+
673
+ function mix(rgb1, rgb2, amount) {
674
+ var p = amount / 100;
675
+ var rgb = {
676
+ r: (rgb2.r - rgb1.r) * p + rgb1.r,
677
+ g: (rgb2.g - rgb1.g) * p + rgb1.g,
678
+ b: (rgb2.b - rgb1.b) * p + rgb1.b
679
+ };
680
+ return rgb;
681
+ }
682
+
683
+ function getHue(hsv, i, light) {
684
+ var hue; // 根据色相不同,色相转向不同
685
+
686
+ if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
687
+ hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
688
+ } else {
689
+ hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
690
+ }
691
+
692
+ if (hue < 0) {
693
+ hue += 360;
694
+ } else if (hue >= 360) {
695
+ hue -= 360;
696
+ }
697
+
698
+ return hue;
699
+ }
700
+
701
+ function getSaturation(hsv, i, light) {
702
+ // grey color don't change saturation
703
+ if (hsv.h === 0 && hsv.s === 0) {
704
+ return hsv.s;
705
+ }
706
+
707
+ var saturation;
708
+
709
+ if (light) {
710
+ saturation = hsv.s - saturationStep * i;
711
+ } else if (i === darkColorCount) {
712
+ saturation = hsv.s + saturationStep;
713
+ } else {
714
+ saturation = hsv.s + saturationStep2 * i;
715
+ } // 边界值修正
716
+
717
+
718
+ if (saturation > 1) {
719
+ saturation = 1;
720
+ } // 第一格的 s 限制在 0.06-0.1 之间
721
+
722
+
723
+ if (light && i === lightColorCount && saturation > 0.1) {
724
+ saturation = 0.1;
725
+ }
726
+
727
+ if (saturation < 0.06) {
728
+ saturation = 0.06;
729
+ }
730
+
731
+ return Number(saturation.toFixed(2));
732
+ }
733
+
734
+ function getValue(hsv, i, light) {
735
+ var value;
736
+
737
+ if (light) {
738
+ value = hsv.v + brightnessStep1 * i;
739
+ } else {
740
+ value = hsv.v - brightnessStep2 * i;
741
+ }
742
+
743
+ if (value > 1) {
744
+ value = 1;
745
+ }
746
+
747
+ return Number(value.toFixed(2));
748
+ }
749
+
750
+ function generate$1(color) {
751
+ var opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
752
+ var patterns = [];
753
+ var pColor = inputToRGB(color);
754
+
755
+ for (var i = lightColorCount; i > 0; i -= 1) {
756
+ var hsv = toHsv(pColor);
757
+ var colorString = toHex(inputToRGB({
758
+ h: getHue(hsv, i, true),
759
+ s: getSaturation(hsv, i, true),
760
+ v: getValue(hsv, i, true)
761
+ }));
762
+ patterns.push(colorString);
763
+ }
764
+
765
+ patterns.push(toHex(pColor));
766
+
767
+ for (var _i = 1; _i <= darkColorCount; _i += 1) {
768
+ var _hsv = toHsv(pColor);
769
+
770
+ var _colorString = toHex(inputToRGB({
771
+ h: getHue(_hsv, _i),
772
+ s: getSaturation(_hsv, _i),
773
+ v: getValue(_hsv, _i)
774
+ }));
775
+
776
+ patterns.push(_colorString);
777
+ } // dark theme patterns
778
+
779
+
780
+ if (opts.theme === 'dark') {
781
+ return darkColorMap.map(function (_ref3) {
782
+ var index = _ref3.index,
783
+ opacity = _ref3.opacity;
784
+ var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || '#141414'), inputToRGB(patterns[index]), opacity * 100));
785
+ return darkColorString;
786
+ });
787
+ }
788
+
789
+ return patterns;
790
+ }
791
+
792
+ var presetPrimaryColors = {
793
+ red: '#F5222D',
794
+ volcano: '#FA541C',
795
+ orange: '#FA8C16',
796
+ gold: '#FAAD14',
797
+ yellow: '#FADB14',
798
+ lime: '#A0D911',
799
+ green: '#52C41A',
800
+ cyan: '#13C2C2',
801
+ blue: '#1890FF',
802
+ geekblue: '#2F54EB',
803
+ purple: '#722ED1',
804
+ magenta: '#EB2F96',
805
+ grey: '#666666'
806
+ };
807
+ var presetPalettes = {};
808
+ var presetDarkPalettes = {};
809
+ Object.keys(presetPrimaryColors).forEach(function (key) {
810
+ presetPalettes[key] = generate$1(presetPrimaryColors[key]);
811
+ presetPalettes[key].primary = presetPalettes[key][5]; // dark presetPalettes
812
+
813
+ presetDarkPalettes[key] = generate$1(presetPrimaryColors[key], {
814
+ theme: 'dark',
815
+ backgroundColor: '#141414'
816
+ });
817
+ presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
818
+ });
819
+ presetPalettes.red;
820
+ presetPalettes.volcano;
821
+ presetPalettes.gold;
822
+ presetPalettes.orange;
823
+ presetPalettes.yellow;
824
+ presetPalettes.lime;
825
+ presetPalettes.green;
826
+ presetPalettes.cyan;
827
+ presetPalettes.blue;
828
+ presetPalettes.geekblue;
829
+ presetPalettes.purple;
830
+ presetPalettes.magenta;
831
+ presetPalettes.grey;
832
+
833
+ // https://github.com/substack/insert-css
834
+ var containers = []; // will store container HTMLElement references
835
+
836
+ var styleElements = []; // will store {prepend: HTMLElement, append: HTMLElement}
837
+
838
+ var usage = 'insert-css: You need to provide a CSS string. Usage: insertCss(cssString[, options]).';
839
+
840
+ function createStyleElement() {
841
+ var styleElement = document.createElement('style');
842
+ styleElement.setAttribute('type', 'text/css');
843
+ return styleElement;
844
+ } // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
845
+
846
+
847
+ function insertCss(css, options) {
848
+ options = options || {};
849
+
850
+ if (css === undefined) {
851
+ throw new Error(usage);
852
+ }
853
+
854
+ var position = options.prepend === true ? 'prepend' : 'append';
855
+ var container = options.container !== undefined ? options.container : document.querySelector('head');
856
+ var containerId = containers.indexOf(container); // first time we see this container, create the necessary entries
857
+
858
+ if (containerId === -1) {
859
+ containerId = containers.push(container) - 1;
860
+ styleElements[containerId] = {};
861
+ } // try to get the correponding container + position styleElement, create it otherwise
862
+
863
+
864
+ var styleElement;
865
+
866
+ if (styleElements[containerId] !== undefined && styleElements[containerId][position] !== undefined) {
867
+ styleElement = styleElements[containerId][position];
868
+ } else {
869
+ styleElement = styleElements[containerId][position] = createStyleElement();
870
+
871
+ if (position === 'prepend') {
872
+ container.insertBefore(styleElement, container.childNodes[0]);
873
+ } else {
874
+ container.appendChild(styleElement);
875
+ }
876
+ } // strip potential UTF-8 BOM if css was read from a file
877
+
878
+
879
+ if (css.charCodeAt(0) === 0xfeff) {
880
+ css = css.substr(1, css.length);
881
+ } // actually add the stylesheet
882
+
883
+
884
+ if (styleElement.styleSheet) {
885
+ styleElement.styleSheet.cssText += css;
886
+ } else {
887
+ styleElement.textContent += css;
888
+ }
889
+
890
+ return styleElement;
891
+ }
892
+
893
+ function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$b(target, key, source[key]); }); } return target; }
894
+
895
+ function _defineProperty$b(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
896
+ function warn(valid, message) {
897
+ // Support uglify
898
+ if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
899
+ console.error("Warning: ".concat(message));
900
+ }
901
+ }
902
+ function warning(valid, message) {
903
+ warn(valid, "[@ant-design/icons-vue] ".concat(message));
904
+ } // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
905
+
906
+ function isIconDefinition(target) {
907
+ return typeof target === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (typeof target.icon === 'object' || typeof target.icon === 'function');
908
+ }
909
+ function generate(node, key, rootProps) {
910
+ if (!rootProps) {
911
+ return vue.h(node.tag, _objectSpread$b({
912
+ key: key
913
+ }, node.attrs), (node.children || []).map(function (child, index) {
914
+ return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
915
+ }));
916
+ }
917
+
918
+ return vue.h(node.tag, _objectSpread$b({
919
+ key: key
920
+ }, rootProps, node.attrs), (node.children || []).map(function (child, index) {
921
+ return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index));
922
+ }));
923
+ }
924
+ function getSecondaryColor(primaryColor) {
925
+ // choose the second color
926
+ return generate$1(primaryColor)[0];
927
+ }
928
+ function normalizeTwoToneColors(twoToneColor) {
929
+ if (!twoToneColor) {
930
+ return [];
931
+ }
932
+
933
+ return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
934
+ } // These props make sure that the SVG behaviours like general text.
935
+ var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
936
+ var cssInjectedFlag = false;
937
+ var useInsertStyles = function useInsertStyles() {
938
+ var styleStr = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : iconStyles;
939
+ vue.nextTick(function () {
940
+ if (!cssInjectedFlag) {
941
+ if (typeof window !== 'undefined' && window.document && window.document.documentElement) {
942
+ insertCss(styleStr, {
943
+ prepend: true
944
+ });
945
+ }
946
+
947
+ cssInjectedFlag = true;
948
+ }
949
+ });
950
+ };
951
+
952
+ var _excluded$1 = ["icon", "primaryColor", "secondaryColor"];
953
+
954
+ function _objectWithoutProperties$1(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
955
+
956
+ function _objectWithoutPropertiesLoose$1(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
957
+
958
+ function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$a(target, key, source[key]); }); } return target; }
959
+
960
+ function _defineProperty$a(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
961
+ var twoToneColorPalette = {
962
+ primaryColor: '#333',
963
+ secondaryColor: '#E6E6E6',
964
+ calculated: false
965
+ };
966
+
967
+ function setTwoToneColors(_ref) {
968
+ var primaryColor = _ref.primaryColor,
969
+ secondaryColor = _ref.secondaryColor;
970
+ twoToneColorPalette.primaryColor = primaryColor;
971
+ twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
972
+ twoToneColorPalette.calculated = !!secondaryColor;
973
+ }
974
+
975
+ function getTwoToneColors() {
976
+ return _objectSpread$a({}, twoToneColorPalette);
977
+ }
978
+
979
+ var IconBase = function IconBase(props, context) {
980
+ var _props$context$attrs = _objectSpread$a({}, props, context.attrs),
981
+ icon = _props$context$attrs.icon,
982
+ primaryColor = _props$context$attrs.primaryColor,
983
+ secondaryColor = _props$context$attrs.secondaryColor,
984
+ restProps = _objectWithoutProperties$1(_props$context$attrs, _excluded$1);
985
+
986
+ var colors = twoToneColorPalette;
987
+
988
+ if (primaryColor) {
989
+ colors = {
990
+ primaryColor: primaryColor,
991
+ secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
992
+ };
993
+ }
994
+
995
+ useInsertStyles();
996
+ warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
997
+
998
+ if (!isIconDefinition(icon)) {
999
+ return null;
1000
+ }
1001
+
1002
+ var target = icon;
1003
+
1004
+ if (target && typeof target.icon === 'function') {
1005
+ target = _objectSpread$a({}, target, {
1006
+ icon: target.icon(colors.primaryColor, colors.secondaryColor)
1007
+ });
1008
+ }
1009
+
1010
+ return generate(target.icon, "svg-".concat(target.name), _objectSpread$a({}, restProps, {
1011
+ 'data-icon': target.name,
1012
+ width: '1em',
1013
+ height: '1em',
1014
+ fill: 'currentColor',
1015
+ 'aria-hidden': 'true'
1016
+ })); // },
1017
+ };
1018
+
1019
+ IconBase.props = {
1020
+ icon: Object,
1021
+ primaryColor: String,
1022
+ secondaryColor: String,
1023
+ focusable: String
1024
+ };
1025
+ IconBase.inheritAttrs = false;
1026
+ IconBase.displayName = 'IconBase';
1027
+ IconBase.getTwoToneColors = getTwoToneColors;
1028
+ IconBase.setTwoToneColors = setTwoToneColors;
1029
+ var VueIcon = IconBase;
1030
+
1031
+ function _slicedToArray$1(arr, i) { return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest$1(); }
1032
+
1033
+ function _nonIterableRest$1() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1034
+
1035
+ function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
1036
+
1037
+ function _arrayLikeToArray$1(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1038
+
1039
+ function _iterableToArrayLimit$1(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1040
+
1041
+ function _arrayWithHoles$1(arr) { if (Array.isArray(arr)) return arr; }
1042
+ function setTwoToneColor(twoToneColor) {
1043
+ var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
1044
+ _normalizeTwoToneColo2 = _slicedToArray$1(_normalizeTwoToneColo, 2),
1045
+ primaryColor = _normalizeTwoToneColo2[0],
1046
+ secondaryColor = _normalizeTwoToneColo2[1];
1047
+
1048
+ return VueIcon.setTwoToneColors({
1049
+ primaryColor: primaryColor,
1050
+ secondaryColor: secondaryColor
1051
+ });
1052
+ }
1053
+ function getTwoToneColor() {
1054
+ var colors = VueIcon.getTwoToneColors();
1055
+
1056
+ if (!colors.calculated) {
1057
+ return colors.primaryColor;
1058
+ }
1059
+
1060
+ return [colors.primaryColor, colors.secondaryColor];
1061
+ }
1062
+
1063
+ var _excluded = ["class", "icon", "spin", "rotate", "tabindex", "twoToneColor", "onClick"];
1064
+
1065
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1066
+
1067
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
1068
+
1069
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
1070
+
1071
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
1072
+
1073
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
1074
+
1075
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
1076
+
1077
+ function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$9(target, key, source[key]); }); } return target; }
1078
+
1079
+ function _defineProperty$9(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1080
+
1081
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
1082
+
1083
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
1084
+
1085
+ setTwoToneColor('#1890ff');
1086
+
1087
+ var Icon = function Icon(props, context) {
1088
+ var _classObj;
1089
+
1090
+ var _props$context$attrs = _objectSpread$9({}, props, context.attrs),
1091
+ cls = _props$context$attrs["class"],
1092
+ icon = _props$context$attrs.icon,
1093
+ spin = _props$context$attrs.spin,
1094
+ rotate = _props$context$attrs.rotate,
1095
+ tabindex = _props$context$attrs.tabindex,
1096
+ twoToneColor = _props$context$attrs.twoToneColor,
1097
+ onClick = _props$context$attrs.onClick,
1098
+ restProps = _objectWithoutProperties(_props$context$attrs, _excluded);
1099
+
1100
+ var classObj = (_classObj = {
1101
+ anticon: true
1102
+ }, _defineProperty$9(_classObj, "anticon-".concat(icon.name), Boolean(icon.name)), _defineProperty$9(_classObj, cls, cls), _classObj);
1103
+ var svgClassString = spin === '' || !!spin || icon.name === 'loading' ? 'anticon-spin' : '';
1104
+ var iconTabIndex = tabindex;
1105
+
1106
+ if (iconTabIndex === undefined && onClick) {
1107
+ iconTabIndex = -1;
1108
+ restProps.tabindex = iconTabIndex;
1109
+ }
1110
+
1111
+ var svgStyle = rotate ? {
1112
+ msTransform: "rotate(".concat(rotate, "deg)"),
1113
+ transform: "rotate(".concat(rotate, "deg)")
1114
+ } : undefined;
1115
+
1116
+ var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor),
1117
+ _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2),
1118
+ primaryColor = _normalizeTwoToneColo2[0],
1119
+ secondaryColor = _normalizeTwoToneColo2[1];
1120
+
1121
+ return vue.createVNode("span", _objectSpread$9({
1122
+ "role": "img",
1123
+ "aria-label": icon.name
1124
+ }, restProps, {
1125
+ "onClick": onClick,
1126
+ "class": classObj
1127
+ }), [vue.createVNode(VueIcon, {
1128
+ "class": svgClassString,
1129
+ "icon": icon,
1130
+ "primaryColor": primaryColor,
1131
+ "secondaryColor": secondaryColor,
1132
+ "style": svgStyle
1133
+ }, null)]);
1134
+ };
1135
+
1136
+ Icon.props = {
1137
+ spin: Boolean,
1138
+ rotate: Number,
1139
+ icon: Object,
1140
+ twoToneColor: String
1141
+ };
1142
+ Icon.displayName = 'AntdIcon';
1143
+ Icon.inheritAttrs = false;
1144
+ Icon.getTwoToneColor = getTwoToneColor;
1145
+ Icon.setTwoToneColor = setTwoToneColor;
1146
+ var AntdIcon = Icon;
1147
+
1148
+ // This icon file is generated automatically.
1149
+ var CheckCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, "name": "check-circle", "theme": "filled" };
1150
+ var CheckCircleFilledSvg = CheckCircleFilled$2;
1151
+
1152
+ function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$8(target, key, source[key]); }); } return target; }
1153
+
1154
+ function _defineProperty$8(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1155
+
1156
+ var CheckCircleFilled = function CheckCircleFilled(props, context) {
1157
+ var p = _objectSpread$8({}, props, context.attrs);
1158
+
1159
+ return vue.createVNode(AntdIcon, _objectSpread$8({}, p, {
1160
+ "icon": CheckCircleFilledSvg
1161
+ }), null);
1162
+ };
1163
+
1164
+ CheckCircleFilled.displayName = 'CheckCircleFilled';
1165
+ CheckCircleFilled.inheritAttrs = false;
1166
+ var CheckCircleFilled$1 = CheckCircleFilled;
1167
+
1168
+ // This icon file is generated automatically.
1169
+ var CheckCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z" } }, { "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "check-circle", "theme": "outlined" };
1170
+ var CheckCircleOutlinedSvg = CheckCircleOutlined$2;
1171
+
1172
+ function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$7(target, key, source[key]); }); } return target; }
1173
+
1174
+ function _defineProperty$7(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1175
+
1176
+ var CheckCircleOutlined = function CheckCircleOutlined(props, context) {
1177
+ var p = _objectSpread$7({}, props, context.attrs);
1178
+
1179
+ return vue.createVNode(AntdIcon, _objectSpread$7({}, p, {
1180
+ "icon": CheckCircleOutlinedSvg
1181
+ }), null);
1182
+ };
1183
+
1184
+ CheckCircleOutlined.displayName = 'CheckCircleOutlined';
1185
+ CheckCircleOutlined.inheritAttrs = false;
1186
+ var CheckCircleOutlined$1 = CheckCircleOutlined;
1187
+
1188
+ // This icon file is generated automatically.
1189
+ var CloseCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z" } }] }, "name": "close-circle", "theme": "filled" };
1190
+ var CloseCircleFilledSvg = CloseCircleFilled$2;
1191
+
1192
+ function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$6(target, key, source[key]); }); } return target; }
1193
+
1194
+ function _defineProperty$6(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1195
+
1196
+ var CloseCircleFilled = function CloseCircleFilled(props, context) {
1197
+ var p = _objectSpread$6({}, props, context.attrs);
1198
+
1199
+ return vue.createVNode(AntdIcon, _objectSpread$6({}, p, {
1200
+ "icon": CloseCircleFilledSvg
1201
+ }), null);
1202
+ };
1203
+
1204
+ CloseCircleFilled.displayName = 'CloseCircleFilled';
1205
+ CloseCircleFilled.inheritAttrs = false;
1206
+ var CloseCircleFilled$1 = CloseCircleFilled;
1207
+
1208
+ // This icon file is generated automatically.
1209
+ var CloseCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z" } }, { "tag": "path", "attrs": { "d": "M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }] }, "name": "close-circle", "theme": "outlined" };
1210
+ var CloseCircleOutlinedSvg = CloseCircleOutlined$2;
1211
+
1212
+ function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$5(target, key, source[key]); }); } return target; }
1213
+
1214
+ function _defineProperty$5(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1215
+
1216
+ var CloseCircleOutlined = function CloseCircleOutlined(props, context) {
1217
+ var p = _objectSpread$5({}, props, context.attrs);
1218
+
1219
+ return vue.createVNode(AntdIcon, _objectSpread$5({}, p, {
1220
+ "icon": CloseCircleOutlinedSvg
1221
+ }), null);
1222
+ };
1223
+
1224
+ CloseCircleOutlined.displayName = 'CloseCircleOutlined';
1225
+ CloseCircleOutlined.inheritAttrs = false;
1226
+ var CloseCircleOutlined$1 = CloseCircleOutlined;
1227
+
1228
+ // This icon file is generated automatically.
1229
+ var CloseOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z" } }] }, "name": "close", "theme": "outlined" };
1230
+ var CloseOutlinedSvg = CloseOutlined$2;
1231
+
1232
+ function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$4(target, key, source[key]); }); } return target; }
1233
+
1234
+ function _defineProperty$4(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1235
+
1236
+ var CloseOutlined = function CloseOutlined(props, context) {
1237
+ var p = _objectSpread$4({}, props, context.attrs);
1238
+
1239
+ return vue.createVNode(AntdIcon, _objectSpread$4({}, p, {
1240
+ "icon": CloseOutlinedSvg
1241
+ }), null);
1242
+ };
1243
+
1244
+ CloseOutlined.displayName = 'CloseOutlined';
1245
+ CloseOutlined.inheritAttrs = false;
1246
+ var CloseOutlined$1 = CloseOutlined;
1247
+
1248
+ // This icon file is generated automatically.
1249
+ var ExclamationCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "exclamation-circle", "theme": "filled" };
1250
+ var ExclamationCircleFilledSvg = ExclamationCircleFilled$2;
1251
+
1252
+ function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$3(target, key, source[key]); }); } return target; }
1253
+
1254
+ function _defineProperty$3(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1255
+
1256
+ var ExclamationCircleFilled = function ExclamationCircleFilled(props, context) {
1257
+ var p = _objectSpread$3({}, props, context.attrs);
1258
+
1259
+ return vue.createVNode(AntdIcon, _objectSpread$3({}, p, {
1260
+ "icon": ExclamationCircleFilledSvg
1261
+ }), null);
1262
+ };
1263
+
1264
+ ExclamationCircleFilled.displayName = 'ExclamationCircleFilled';
1265
+ ExclamationCircleFilled.inheritAttrs = false;
1266
+ var ExclamationCircleFilled$1 = ExclamationCircleFilled;
1267
+
1268
+ // This icon file is generated automatically.
1269
+ var ExclamationCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z" } }] }, "name": "exclamation-circle", "theme": "outlined" };
1270
+ var ExclamationCircleOutlinedSvg = ExclamationCircleOutlined$2;
1271
+
1272
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$2(target, key, source[key]); }); } return target; }
1273
+
1274
+ function _defineProperty$2(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1275
+
1276
+ var ExclamationCircleOutlined = function ExclamationCircleOutlined(props, context) {
1277
+ var p = _objectSpread$2({}, props, context.attrs);
1278
+
1279
+ return vue.createVNode(AntdIcon, _objectSpread$2({}, p, {
1280
+ "icon": ExclamationCircleOutlinedSvg
1281
+ }), null);
1282
+ };
1283
+
1284
+ ExclamationCircleOutlined.displayName = 'ExclamationCircleOutlined';
1285
+ ExclamationCircleOutlined.inheritAttrs = false;
1286
+ var ExclamationCircleOutlined$1 = ExclamationCircleOutlined;
1287
+
1288
+ // This icon file is generated automatically.
1289
+ var InfoCircleFilled$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "info-circle", "theme": "filled" };
1290
+ var InfoCircleFilledSvg = InfoCircleFilled$2;
1291
+
1292
+ function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
1293
+
1294
+ function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1295
+
1296
+ var InfoCircleFilled = function InfoCircleFilled(props, context) {
1297
+ var p = _objectSpread$1({}, props, context.attrs);
1298
+
1299
+ return vue.createVNode(AntdIcon, _objectSpread$1({}, p, {
1300
+ "icon": InfoCircleFilledSvg
1301
+ }), null);
1302
+ };
1303
+
1304
+ InfoCircleFilled.displayName = 'InfoCircleFilled';
1305
+ InfoCircleFilled.inheritAttrs = false;
1306
+ var InfoCircleFilled$1 = InfoCircleFilled;
1307
+
1308
+ // This icon file is generated automatically.
1309
+ var InfoCircleOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" } }, { "tag": "path", "attrs": { "d": "M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z" } }] }, "name": "info-circle", "theme": "outlined" };
1310
+ var InfoCircleOutlinedSvg = InfoCircleOutlined$2;
1311
+
1312
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
1313
+
1314
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
1315
+
1316
+ var InfoCircleOutlined = function InfoCircleOutlined(props, context) {
1317
+ var p = _objectSpread({}, props, context.attrs);
1318
+
1319
+ return vue.createVNode(AntdIcon, _objectSpread({}, p, {
1320
+ "icon": InfoCircleOutlinedSvg
1321
+ }), null);
1322
+ };
1323
+
1324
+ InfoCircleOutlined.displayName = 'InfoCircleOutlined';
1325
+ InfoCircleOutlined.inheritAttrs = false;
1326
+ var InfoCircleOutlined$1 = InfoCircleOutlined;
1327
+
1328
+ var _export_sfc = (sfc, props) => {
1329
+ const target = sfc.__vccOpts || sfc;
1330
+ for (const [key, val] of props) {
1331
+ target[key] = val;
1332
+ }
1333
+ return target;
1334
+ };
1335
+
1336
+ const __default__$1 = {
1337
+ name: "BmAlert"
1338
+ };
1339
+ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
1340
+ ...__default__$1,
1341
+ props: {
1342
+ type: {
1343
+ type: String,
1344
+ default: "info"
1345
+ },
1346
+ message: {
1347
+ type: String,
1348
+ default: ""
1349
+ },
1350
+ description: {
1351
+ type: String,
1352
+ default: ""
1353
+ }
1354
+ },
1355
+ setup(__props) {
1356
+ const props = __props;
1357
+ const getIconCmp = vue.computed(() => {
1358
+ if (props.message !== "" && props.description !== "") {
1359
+ return {
1360
+ success: CheckCircleFilled$1,
1361
+ warning: ExclamationCircleFilled$1,
1362
+ error: CloseCircleFilled$1,
1363
+ info: InfoCircleFilled$1
1364
+ }[props.type || "info"];
1365
+ } else {
1366
+ return {
1367
+ success: CheckCircleOutlined$1,
1368
+ warning: ExclamationCircleOutlined$1,
1369
+ error: CloseCircleOutlined$1,
1370
+ info: InfoCircleOutlined$1
1371
+ }[props.type || "info"];
1372
+ }
1373
+ });
1374
+ return (_ctx, _cache) => {
1375
+ return vue.openBlock(), vue.createBlock(vue.unref(AAlert__default["default"]), {
1376
+ message: props.message,
1377
+ description: props.description,
1378
+ type: props.type,
1379
+ "show-icon": ""
1380
+ }, {
1381
+ icon: vue.withCtx(() => [
1382
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(getIconCmp))))
1383
+ ]),
1384
+ default: vue.withCtx(() => [
1385
+ vue.renderSlot(_ctx.$slots, "default")
1386
+ ]),
1387
+ _: 3
1388
+ }, 8, ["message", "description", "type"]);
1389
+ };
1390
+ }
1391
+ });
1392
+ var Alert = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__file", "bmAlert.vue"]]);
1393
+
1394
+ const _hoisted_1 = {
1395
+ ref: "modalBody",
1396
+ class: "bm-modal-body"
1397
+ };
1398
+ const __default__ = {
1399
+ name: "BmModal"
1400
+ };
1401
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
1402
+ ...__default__,
1403
+ props: {
1404
+ width: {
1405
+ type: String,
1406
+ default: ""
1407
+ },
1408
+ visible: {
1409
+ type: Boolean,
1410
+ default: false,
1411
+ require: true
1412
+ },
1413
+ size: {
1414
+ type: String,
1415
+ default: "small"
1416
+ }
1417
+ },
1418
+ emits: ["close", "ok"],
1419
+ setup(__props, { emit }) {
1420
+ const props = __props;
1421
+ const slots = vue.useSlots();
1422
+ const caculWidth = vue.computed(() => {
1423
+ if (props.width && props.width !== "")
1424
+ return props.width;
1425
+ if (props.size === "middle")
1426
+ return "640px";
1427
+ if (props.size === "large")
1428
+ return "900px";
1429
+ return "480px";
1430
+ });
1431
+ function onOkCallback(e) {
1432
+ emit("ok", e);
1433
+ emit("close", false);
1434
+ }
1435
+ return (_ctx, _cache) => {
1436
+ const _component_a_button = vue.resolveComponent("a-button");
1437
+ return vue.openBlock(), vue.createBlock(vue.unref(AModal__default["default"]), {
1438
+ "wrap-class-name": "bm-modal-dialog",
1439
+ width: vue.unref(caculWidth),
1440
+ visible: props.visible,
1441
+ onChange: _cache[1] || (_cache[1] = (v) => _ctx.$emit("close", v))
1442
+ }, vue.createSlots({
1443
+ default: vue.withCtx(() => [
1444
+ vue.createElementVNode("div", _hoisted_1, [
1445
+ vue.renderSlot(_ctx.$slots, "default")
1446
+ ], 512)
1447
+ ]),
1448
+ _: 2
1449
+ }, [
1450
+ vue.unref(slots) && vue.unref(slots).title ? {
1451
+ name: "title",
1452
+ fn: vue.withCtx(() => [
1453
+ vue.renderSlot(_ctx.$slots, "title")
1454
+ ])
1455
+ } : void 0,
1456
+ vue.unref(slots) && vue.unref(slots).footer ? {
1457
+ name: "footer",
1458
+ fn: vue.withCtx(() => [
1459
+ vue.renderSlot(_ctx.$slots, "footer")
1460
+ ])
1461
+ } : {
1462
+ name: "footer",
1463
+ fn: vue.withCtx(() => [
1464
+ vue.createVNode(_component_a_button, {
1465
+ type: "second",
1466
+ onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("close"))
1467
+ }, {
1468
+ default: vue.withCtx(() => [
1469
+ vue.createTextVNode("\u53D6\u6D88")
1470
+ ]),
1471
+ _: 1
1472
+ }),
1473
+ vue.createVNode(_component_a_button, {
1474
+ type: "primary",
1475
+ onClick: onOkCallback
1476
+ }, {
1477
+ default: vue.withCtx(() => [
1478
+ vue.createTextVNode("\u786E\u5B9A")
1479
+ ]),
1480
+ _: 1
1481
+ })
1482
+ ])
1483
+ }
1484
+ ]), 1032, ["width", "visible"]);
1485
+ };
1486
+ }
1487
+ });
1488
+ var AModal = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "bmModal.vue"]]);
1489
+
1490
+ const idGenerator = (function () {
1491
+ let id = 0;
1492
+ return function () {
1493
+ return (Math.random().toString(36) + Number(`${Date.now()}${++id}`).toString(36)).slice(2);
1494
+ };
1495
+ })();
1496
+ var feedbackType;
1497
+ (function (feedbackType) {
1498
+ feedbackType["SUCCESS"] = "success";
1499
+ feedbackType["ERROR"] = "error";
1500
+ feedbackType["INFO"] = "info";
1501
+ feedbackType["WARNING"] = "warning";
1502
+ feedbackType["CONFIRM"] = "confirm";
1503
+ feedbackType["WARN"] = "warn";
1504
+ })(feedbackType || (feedbackType = {}));
1505
+ function __createBtn(btnText = '确定', onClick = (() => '点击'), style = '', type = 'primary', size = 'small') {
1506
+ return vue.h(antDesignVue.Button, {
1507
+ type,
1508
+ size,
1509
+ onClick,
1510
+ style,
1511
+ }, { default: () => btnText });
1512
+ }
1513
+ const BmNotification = (config) => {
1514
+ const type = config['type'] || feedbackType.INFO;
1515
+ let btn = undefined;
1516
+ const key = config['key'] || `${type}${Date.now()}`;
1517
+ if (config['onConfirm']) {
1518
+ btn = __createBtn('确定', (e) => __awaiter(void 0, void 0, void 0, function* () {
1519
+ e.stopPropagation();
1520
+ e.preventDefault();
1521
+ yield config['onConfirm']();
1522
+ antDesignVue.notification.close(key);
1523
+ }), 'margin-left: 8px');
1524
+ }
1525
+ if (config['onCancel']) {
1526
+ const cancel = __createBtn('取消', (e) => __awaiter(void 0, void 0, void 0, function* () {
1527
+ e.stopPropagation();
1528
+ e.preventDefault();
1529
+ yield antDesignVue.notification.close(key);
1530
+ config['onCancel']();
1531
+ }), '', 'second');
1532
+ btn = (btn ? vue.h('div', {}, [cancel, btn]) : cancel);
1533
+ }
1534
+ if (btn)
1535
+ config['btn'] = btn;
1536
+ if ([feedbackType.WARNING, feedbackType.WARN].indexOf(type) !== -1) {
1537
+ antDesignVue.notification.warning(Object.assign({ key, icon: () => vue.h(InfoCircleFilled$1, { style: 'color: #FF9019' }) }, config));
1538
+ return;
1539
+ }
1540
+ antDesignVue.notification[type](Object.assign({ key }, config));
1541
+ };
1542
+ const StaticBmModal = (config) => {
1543
+ const type = config['type'] || feedbackType.INFO;
1544
+ return antDesignVue.Modal[type](Object.assign({ cancelButtonProps: { type: 'second' }, okType: 'primary', cancelText: '取消', okText: '确认', autoFocusButton: null }, config));
1545
+ };
1546
+ const BmMessage = (config) => {
1547
+ const type = config.type;
1548
+ if (!type || !message__default["default"][type]) {
1549
+ throw new Error('请输入正确的message类型type值');
1550
+ }
1551
+ const key = config.key || idGenerator();
1552
+ const content = config.closable
1553
+ ? vue.h('div', { class: 'bm-message-content-fade-div' }, [
1554
+ config.content,
1555
+ vue.h(CloseOutlined$1, {
1556
+ onClick(e) {
1557
+ e.stopPropagation();
1558
+ message__default["default"].destroy(key);
1559
+ },
1560
+ }),
1561
+ ])
1562
+ : config.content;
1563
+ message__default["default"][type](Object.assign(Object.assign({ class: `bm-message-${type}` }, config), { key,
1564
+ content }));
1565
+ };
1566
+ const BmModal = withInstall.withInstall(AModal);
1567
+ const BmAlert = withInstall.withInstall(Alert);
1568
+
1569
+ exports.BmAlert = BmAlert;
1570
+ exports.BmMessage = BmMessage;
1571
+ exports.BmModal = BmModal;
1572
+ exports.BmNotification = BmNotification;
1573
+ exports.StaticBmModal = StaticBmModal;