bm-admin-ui 1.0.28-alpha → 1.0.30-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 (184) hide show
  1. package/es/components/button/index.d.ts +307 -0
  2. package/es/components/button/src/button.d.ts +12 -0
  3. package/es/components/button/src/button.vue.d.ts +308 -0
  4. package/es/components/feedback/index.d.ts +1037 -0
  5. package/es/components/feedback/index.js +1306 -25
  6. package/es/components/feedback/src/bmAlert.vue.d.ts +193 -0
  7. package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
  8. package/es/components/float-table/index.d.ts +70 -0
  9. package/es/components/float-table/index.js +28 -37
  10. package/es/components/float-table/src/float-table.vue.d.ts +69 -0
  11. package/es/components/flow-designer/index.d.ts +7 -0
  12. package/es/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  13. package/es/components/form-designer/index.d.ts +9 -0
  14. package/es/components/form-designer/index.js +9 -4182
  15. package/es/components/form-designer/src/form-designer.vue.d.ts +8 -0
  16. package/es/components/index.d.ts +13 -0
  17. package/es/components/index.js +0 -1
  18. package/es/components/input-tags-display/index.d.ts +113 -0
  19. package/es/components/input-tags-display/index.js +1187 -27
  20. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +110 -0
  21. package/es/components/multi-cascader-compose/index.d.ts +164 -0
  22. package/es/components/multi-cascader-compose/index.js +1199 -31
  23. package/es/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +164 -0
  24. package/es/components/multi-cascader-compose/src/props.d.ts +40 -0
  25. package/es/components/multi-cascader-compose/types.d.ts +10 -0
  26. package/es/components/over-tooltips/index.d.ts +35 -0
  27. package/es/components/over-tooltips/index.js +20 -27
  28. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  29. package/es/components/search-filter/index.d.ts +223 -0
  30. package/es/components/search-filter/index.js +1290 -72
  31. package/es/components/search-filter/src/search-filter.d.ts +81 -0
  32. package/es/components/search-filter/src/search-filter.vue.d.ts +222 -0
  33. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +106 -0
  34. package/es/components/shops-filter/index.d.ts +99 -0
  35. package/es/components/shops-filter/index.js +1182 -24
  36. package/es/components/shops-filter/src/shops-filter.d.ts +25 -0
  37. package/es/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  38. package/es/components/staffs-selector/index.d.ts +109 -0
  39. package/es/components/staffs-selector/index.js +1241 -131
  40. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  41. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  42. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  43. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  44. package/es/components/timeline/index.d.ts +118 -0
  45. package/es/components/timeline/index.js +15 -12
  46. package/es/components/timeline/src/props.d.ts +27 -0
  47. package/es/components/timeline/src/timeline-item.vue.d.ts +66 -0
  48. package/es/components/timeline/src/timeline.vue.d.ts +52 -0
  49. package/es/components/upload/index.d.ts +137 -0
  50. package/es/components/upload/index.js +1365 -104
  51. package/es/components/upload/src/icons.d.ts +13 -0
  52. package/es/components/upload/src/upload.vue.d.ts +136 -0
  53. package/es/components/upload/utils/index.d.ts +7 -0
  54. package/es/index.d.ts +6 -0
  55. package/es/utils/bm-admin-ui-resolver.d.ts +9 -0
  56. package/es/utils/vxe-table.d.ts +6 -0
  57. package/es/utils/vxe-table.js +3 -4
  58. package/es/utils/with-install.d.ts +3 -0
  59. package/index.esm.js +47097 -0
  60. package/index.js +47127 -0
  61. package/lib/components/button/index.d.ts +307 -0
  62. package/lib/components/button/src/button.d.ts +12 -0
  63. package/lib/components/button/src/button.vue.d.ts +308 -0
  64. package/lib/components/feedback/index.d.ts +1037 -0
  65. package/lib/components/feedback/index.js +1304 -23
  66. package/lib/components/feedback/src/bmAlert.vue.d.ts +193 -0
  67. package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
  68. package/lib/components/float-table/index.d.ts +70 -0
  69. package/lib/components/float-table/index.js +28 -37
  70. package/lib/components/float-table/src/float-table.vue.d.ts +69 -0
  71. package/lib/components/flow-designer/index.d.ts +7 -0
  72. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  73. package/lib/components/form-designer/index.d.ts +9 -0
  74. package/lib/components/form-designer/index.js +8 -4187
  75. package/lib/components/form-designer/src/form-designer.vue.d.ts +8 -0
  76. package/lib/components/index.d.ts +13 -0
  77. package/lib/components/index.js +0 -7
  78. package/lib/components/input-tags-display/index.d.ts +113 -0
  79. package/lib/components/input-tags-display/index.js +1187 -27
  80. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +110 -0
  81. package/lib/components/multi-cascader-compose/index.d.ts +164 -0
  82. package/lib/components/multi-cascader-compose/index.js +1198 -30
  83. package/lib/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +164 -0
  84. package/lib/components/multi-cascader-compose/src/props.d.ts +40 -0
  85. package/lib/components/multi-cascader-compose/types.d.ts +10 -0
  86. package/lib/components/over-tooltips/index.d.ts +35 -0
  87. package/lib/components/over-tooltips/index.js +20 -27
  88. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  89. package/lib/components/search-filter/index.d.ts +223 -0
  90. package/lib/components/search-filter/index.js +1289 -71
  91. package/lib/components/search-filter/src/search-filter.d.ts +81 -0
  92. package/lib/components/search-filter/src/search-filter.vue.d.ts +222 -0
  93. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +106 -0
  94. package/lib/components/shops-filter/index.d.ts +99 -0
  95. package/lib/components/shops-filter/index.js +1181 -23
  96. package/lib/components/shops-filter/src/shops-filter.d.ts +25 -0
  97. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  98. package/lib/components/staffs-selector/index.d.ts +109 -0
  99. package/lib/components/staffs-selector/index.js +1240 -130
  100. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  101. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  102. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  103. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  104. package/lib/components/timeline/index.d.ts +118 -0
  105. package/lib/components/timeline/index.js +15 -12
  106. package/lib/components/timeline/src/props.d.ts +27 -0
  107. package/lib/components/timeline/src/timeline-item.vue.d.ts +66 -0
  108. package/lib/components/timeline/src/timeline.vue.d.ts +52 -0
  109. package/lib/components/upload/index.d.ts +137 -0
  110. package/lib/components/upload/index.js +1364 -103
  111. package/lib/components/upload/src/icons.d.ts +13 -0
  112. package/lib/components/upload/src/upload.vue.d.ts +136 -0
  113. package/lib/components/upload/utils/index.d.ts +7 -0
  114. package/lib/index.d.ts +6 -0
  115. package/lib/utils/bm-admin-ui-resolver.d.ts +9 -0
  116. package/lib/utils/vxe-table.d.ts +6 -0
  117. package/lib/utils/vxe-table.js +2 -3
  118. package/lib/utils/with-install.d.ts +3 -0
  119. package/package.json +4 -9
  120. package/theme-chalk/button.css +1 -1
  121. package/theme-chalk/feedback.css +1 -1
  122. package/theme-chalk/float-table.css +1 -1
  123. package/theme-chalk/floating-vue.css +1 -1
  124. package/theme-chalk/flow-designer.css +1 -1
  125. package/theme-chalk/index.css +1 -1
  126. package/theme-chalk/input-tags-display.css +1 -1
  127. package/theme-chalk/modal.css +1 -1
  128. package/theme-chalk/multi-cascader-compose.css +1 -1
  129. package/theme-chalk/over-tooltips.css +1 -1
  130. package/theme-chalk/search-filter.css +1 -1
  131. package/theme-chalk/staffs-selector.css +1 -1
  132. package/theme-chalk/timeline.css +1 -1
  133. package/theme-chalk/upload.css +1 -1
  134. package/types/components/button/index.d.ts +307 -0
  135. package/types/components/button/src/button.d.ts +12 -0
  136. package/types/components/button/src/button.vue.d.ts +308 -0
  137. package/types/components/feedback/index.d.ts +1037 -0
  138. package/types/components/feedback/src/bmAlert.vue.d.ts +193 -0
  139. package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
  140. package/types/components/float-table/index.d.ts +70 -0
  141. package/types/components/float-table/src/float-table.vue.d.ts +69 -0
  142. package/types/components/flow-designer/index.d.ts +7 -0
  143. package/types/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  144. package/types/components/form-designer/index.d.ts +9 -0
  145. package/types/components/form-designer/src/form-designer.vue.d.ts +8 -0
  146. package/types/components/index.d.ts +13 -0
  147. package/types/components/input-tags-display/index.d.ts +113 -0
  148. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +110 -0
  149. package/types/components/multi-cascader-compose/index.d.ts +164 -0
  150. package/types/components/multi-cascader-compose/src/multi-cascader-compose.vue.d.ts +164 -0
  151. package/types/components/multi-cascader-compose/src/props.d.ts +40 -0
  152. package/types/components/multi-cascader-compose/types.d.ts +10 -0
  153. package/types/components/over-tooltips/index.d.ts +35 -0
  154. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  155. package/types/components/search-filter/index.d.ts +223 -0
  156. package/types/components/search-filter/src/search-filter.d.ts +81 -0
  157. package/types/components/search-filter/src/search-filter.vue.d.ts +222 -0
  158. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +106 -0
  159. package/types/components/shops-filter/index.d.ts +99 -0
  160. package/types/components/shops-filter/src/shops-filter.d.ts +25 -0
  161. package/types/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  162. package/types/components/staffs-selector/index.d.ts +109 -0
  163. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  164. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  165. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  166. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  167. package/types/components/timeline/index.d.ts +118 -0
  168. package/types/components/timeline/src/props.d.ts +27 -0
  169. package/types/components/timeline/src/timeline-item.vue.d.ts +66 -0
  170. package/types/components/timeline/src/timeline.vue.d.ts +52 -0
  171. package/types/components/upload/index.d.ts +137 -0
  172. package/types/components/upload/src/icons.d.ts +13 -0
  173. package/types/components/upload/src/upload.vue.d.ts +136 -0
  174. package/types/components/upload/utils/index.d.ts +7 -0
  175. package/types/index.d.ts +6 -0
  176. package/types/utils/bm-admin-ui-resolver.d.ts +9 -0
  177. package/types/utils/vxe-table.d.ts +6 -0
  178. package/types/utils/with-install.d.ts +3 -0
  179. package/es/components/form-create/index.js +0 -2769
  180. package/es/utils/uniqueId.js +0 -5
  181. package/lib/components/form-create/index.js +0 -2781
  182. package/lib/utils/uniqueId.js +0 -8
  183. package/theme-chalk/form-create.css +0 -1
  184. package/theme-chalk/form-designer.css +0 -1
@@ -3,7 +3,6 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var antDesignVue = require('ant-design-vue');
6
- var iconsVue = require('@ant-design/icons-vue');
7
6
  var withInstall = require('bm-admin-ui/lib/utils/with-install');
8
7
  var vue = require('vue');
9
8
  var AAlert = require('ant-design-vue/lib/alert');
@@ -16,7 +15,7 @@ var AAlert__default = /*#__PURE__*/_interopDefaultLegacy(AAlert);
16
15
  var AModal__default = /*#__PURE__*/_interopDefaultLegacy(AModal$1);
17
16
  var message__default = /*#__PURE__*/_interopDefaultLegacy(message);
18
17
 
19
- /******************************************************************************
18
+ /*! *****************************************************************************
20
19
  Copyright (c) Microsoft Corporation.
21
20
 
22
21
  Permission to use, copy, modify, and/or distribute this software for any
@@ -41,6 +40,1291 @@ function __awaiter(thisArg, _arguments, P, generator) {
41
40
  });
42
41
  }
43
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
+
44
1328
  var _export_sfc = (sfc, props) => {
45
1329
  const target = sfc.__vccOpts || sfc;
46
1330
  for (const [key, val] of props) {
@@ -73,17 +1357,17 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
73
1357
  const getIconCmp = vue.computed(() => {
74
1358
  if (props.message !== "" && props.description !== "") {
75
1359
  return {
76
- success: iconsVue.CheckCircleFilled,
77
- warning: iconsVue.ExclamationCircleFilled,
78
- error: iconsVue.CloseCircleFilled,
79
- info: iconsVue.InfoCircleFilled
1360
+ success: CheckCircleFilled$1,
1361
+ warning: ExclamationCircleFilled$1,
1362
+ error: CloseCircleFilled$1,
1363
+ info: InfoCircleFilled$1
80
1364
  }[props.type || "info"];
81
1365
  } else {
82
1366
  return {
83
- success: iconsVue.CheckCircleOutlined,
84
- warning: iconsVue.ExclamationCircleOutlined,
85
- error: iconsVue.CloseCircleOutlined,
86
- info: iconsVue.InfoCircleOutlined
1367
+ success: CheckCircleOutlined$1,
1368
+ warning: ExclamationCircleOutlined$1,
1369
+ error: CloseCircleOutlined$1,
1370
+ info: InfoCircleOutlined$1
87
1371
  }[props.type || "info"];
88
1372
  }
89
1373
  });
@@ -167,15 +1451,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
167
1451
  name: "title",
168
1452
  fn: vue.withCtx(() => [
169
1453
  vue.renderSlot(_ctx.$slots, "title")
170
- ]),
171
- key: "0"
1454
+ ])
172
1455
  } : void 0,
173
1456
  vue.unref(slots) && vue.unref(slots).footer ? {
174
1457
  name: "footer",
175
1458
  fn: vue.withCtx(() => [
176
1459
  vue.renderSlot(_ctx.$slots, "footer")
177
- ]),
178
- key: "1"
1460
+ ])
179
1461
  } : {
180
1462
  name: "footer",
181
1463
  fn: vue.withCtx(() => [
@@ -197,8 +1479,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
197
1479
  ]),
198
1480
  _: 1
199
1481
  })
200
- ]),
201
- key: "2"
1482
+ ])
202
1483
  }
203
1484
  ]), 1032, ["width", "visible"]);
204
1485
  };
@@ -231,12 +1512,12 @@ var feedbackColor;
231
1512
  feedbackColor["WARN"] = "#FF9019";
232
1513
  })(feedbackColor || (feedbackColor = {}));
233
1514
  const feedbackIcon = {
234
- success: () => vue.h(iconsVue.CheckCircleFilled, { style: `color: ${feedbackColor.SUCCESS}` }),
235
- error: () => vue.h(iconsVue.CloseCircleFilled, { style: `color: ${feedbackColor.ERROR}` }),
236
- warning: () => vue.h(iconsVue.ExclamationCircleFilled, { style: `color: ${feedbackColor.WARNING}` }),
237
- info: () => vue.h(iconsVue.InfoCircleFilled, { style: `color: ${feedbackColor.INFO}` }),
238
- confirm: () => vue.h(iconsVue.InfoCircleFilled, { style: `color: ${feedbackColor.INFO}` }),
239
- warn: () => vue.h(iconsVue.ExclamationCircleFilled, { style: `color: ${feedbackColor.WARNING}` }),
1515
+ success: () => vue.h(CheckCircleFilled$1, { style: `color: ${feedbackColor.SUCCESS}` }),
1516
+ error: () => vue.h(CloseCircleFilled$1, { style: `color: ${feedbackColor.ERROR}` }),
1517
+ warning: () => vue.h(ExclamationCircleFilled$1, { style: `color: ${feedbackColor.WARNING}` }),
1518
+ info: () => vue.h(InfoCircleFilled$1, { style: `color: ${feedbackColor.INFO}` }),
1519
+ confirm: () => vue.h(InfoCircleFilled$1, { style: `color: ${feedbackColor.INFO}` }),
1520
+ warn: () => vue.h(ExclamationCircleFilled$1, { style: `color: ${feedbackColor.WARNING}` })
240
1521
  };
241
1522
  function __createBtn(btnText = '确定', onClick = (() => '点击'), style = '', type = 'primary', size = 'small') {
242
1523
  return vue.h(antDesignVue.Button, {
@@ -288,7 +1569,7 @@ const BmMessage = (config) => {
288
1569
  const content = config.closable
289
1570
  ? vue.h('div', { class: 'bm-message-content-fade-div' }, [
290
1571
  config.content,
291
- vue.h(iconsVue.CloseOutlined, {
1572
+ vue.h(CloseOutlined$1, {
292
1573
  onClick(e) {
293
1574
  e.stopPropagation();
294
1575
  message__default["default"].destroy(key);