1 | (function webpackUniversalModuleDefinition(root, factory) {
|
2 | if(typeof exports === 'object' && typeof module === 'object')
|
3 | module.exports = factory(require("react"), require("react-dom"));
|
4 | else if(typeof define === 'function' && define.amd)
|
5 | define(["react", "react-dom"], factory);
|
6 | else if(typeof exports === 'object')
|
7 | exports["UIW"] = factory(require("react"), require("react-dom"));
|
8 | else
|
9 | root["UIW"] = factory(root["React"], root["ReactDOM"]);
|
10 | })(window, function(__WEBPACK_EXTERNAL_MODULE__0__, __WEBPACK_EXTERNAL_MODULE__4__) {
|
11 | return (function(modules) {
|
12 |
|
13 | var installedModules = {};
|
14 |
|
15 |
|
16 | function __webpack_require__(moduleId) {
|
17 |
|
18 |
|
19 | if(installedModules[moduleId]) {
|
20 | return installedModules[moduleId].exports;
|
21 | }
|
22 |
|
23 | var module = installedModules[moduleId] = {
|
24 | i: moduleId,
|
25 | l: false,
|
26 | exports: {}
|
27 | };
|
28 |
|
29 |
|
30 | modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
31 |
|
32 |
|
33 | module.l = true;
|
34 |
|
35 |
|
36 | return module.exports;
|
37 | }
|
38 |
|
39 |
|
40 |
|
41 | __webpack_require__.m = modules;
|
42 |
|
43 |
|
44 | __webpack_require__.c = installedModules;
|
45 |
|
46 |
|
47 | __webpack_require__.d = function(exports, name, getter) {
|
48 | if(!__webpack_require__.o(exports, name)) {
|
49 | Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
50 | }
|
51 | };
|
52 |
|
53 |
|
54 | __webpack_require__.r = function(exports) {
|
55 | if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
56 | Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
57 | }
|
58 | Object.defineProperty(exports, '__esModule', { value: true });
|
59 | };
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |
|
65 |
|
66 | __webpack_require__.t = function(value, mode) {
|
67 | if(mode & 1) value = __webpack_require__(value);
|
68 | if(mode & 8) return value;
|
69 | if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
70 | var ns = Object.create(null);
|
71 | __webpack_require__.r(ns);
|
72 | Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
73 | if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
74 | return ns;
|
75 | };
|
76 |
|
77 |
|
78 | __webpack_require__.n = function(module) {
|
79 | var getter = module && module.__esModule ?
|
80 | function getDefault() { return module['default']; } :
|
81 | function getModuleExports() { return module; };
|
82 | __webpack_require__.d(getter, 'a', getter);
|
83 | return getter;
|
84 | };
|
85 |
|
86 |
|
87 | __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
88 |
|
89 |
|
90 | __webpack_require__.p = "";
|
91 |
|
92 |
|
93 |
|
94 | return __webpack_require__(__webpack_require__.s = 5);
|
95 | })
|
96 |
|
97 | ([
|
98 |
|
99 | (function(module, exports) {
|
100 |
|
101 | module.exports = __WEBPACK_EXTERNAL_MODULE__0__;
|
102 |
|
103 | }),
|
104 |
|
105 | (function(module, __webpack_exports__, __webpack_require__) {
|
106 |
|
107 | "use strict";
|
108 | __webpack_require__.r(__webpack_exports__);
|
109 | __webpack_require__.d(__webpack_exports__, "__extends", function() { return __extends; });
|
110 | __webpack_require__.d(__webpack_exports__, "__assign", function() { return __assign; });
|
111 | __webpack_require__.d(__webpack_exports__, "__rest", function() { return __rest; });
|
112 | __webpack_require__.d(__webpack_exports__, "__decorate", function() { return __decorate; });
|
113 | __webpack_require__.d(__webpack_exports__, "__param", function() { return __param; });
|
114 | __webpack_require__.d(__webpack_exports__, "__metadata", function() { return __metadata; });
|
115 | __webpack_require__.d(__webpack_exports__, "__awaiter", function() { return __awaiter; });
|
116 | __webpack_require__.d(__webpack_exports__, "__generator", function() { return __generator; });
|
117 | __webpack_require__.d(__webpack_exports__, "__exportStar", function() { return __exportStar; });
|
118 | __webpack_require__.d(__webpack_exports__, "__values", function() { return __values; });
|
119 | __webpack_require__.d(__webpack_exports__, "__read", function() { return __read; });
|
120 | __webpack_require__.d(__webpack_exports__, "__spread", function() { return __spread; });
|
121 | __webpack_require__.d(__webpack_exports__, "__await", function() { return __await; });
|
122 | __webpack_require__.d(__webpack_exports__, "__asyncGenerator", function() { return __asyncGenerator; });
|
123 | __webpack_require__.d(__webpack_exports__, "__asyncDelegator", function() { return __asyncDelegator; });
|
124 | __webpack_require__.d(__webpack_exports__, "__asyncValues", function() { return __asyncValues; });
|
125 | __webpack_require__.d(__webpack_exports__, "__makeTemplateObject", function() { return __makeTemplateObject; });
|
126 | __webpack_require__.d(__webpack_exports__, "__importStar", function() { return __importStar; });
|
127 | __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
|
128 |
|
129 |
|
130 |
|
131 |
|
132 |
|
133 |
|
134 |
|
135 |
|
136 |
|
137 |
|
138 |
|
139 |
|
140 |
|
141 |
|
142 |
|
143 |
|
144 | var extendStatics = function(d, b) {
|
145 | extendStatics = Object.setPrototypeOf ||
|
146 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
147 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
148 | return extendStatics(d, b);
|
149 | };
|
150 |
|
151 | function __extends(d, b) {
|
152 | extendStatics(d, b);
|
153 | function __() { this.constructor = d; }
|
154 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
155 | }
|
156 |
|
157 | var __assign = function() {
|
158 | __assign = Object.assign || function __assign(t) {
|
159 | for (var s, i = 1, n = arguments.length; i < n; i++) {
|
160 | s = arguments[i];
|
161 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
162 | }
|
163 | return t;
|
164 | }
|
165 | return __assign.apply(this, arguments);
|
166 | }
|
167 |
|
168 | function __rest(s, e) {
|
169 | var t = {};
|
170 | for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
171 | t[p] = s[p];
|
172 | if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
173 | for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0)
|
174 | t[p[i]] = s[p[i]];
|
175 | return t;
|
176 | }
|
177 |
|
178 | function __decorate(decorators, target, key, desc) {
|
179 | var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
180 | if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
181 | else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
182 | return c > 3 && r && Object.defineProperty(target, key, r), r;
|
183 | }
|
184 |
|
185 | function __param(paramIndex, decorator) {
|
186 | return function (target, key) { decorator(target, key, paramIndex); }
|
187 | }
|
188 |
|
189 | function __metadata(metadataKey, metadataValue) {
|
190 | if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
191 | }
|
192 |
|
193 | function __awaiter(thisArg, _arguments, P, generator) {
|
194 | return new (P || (P = Promise))(function (resolve, reject) {
|
195 | function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
196 | function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
197 | function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
|
198 | step((generator = generator.apply(thisArg, _arguments || [])).next());
|
199 | });
|
200 | }
|
201 |
|
202 | function __generator(thisArg, body) {
|
203 | var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
204 | return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
205 | function verb(n) { return function (v) { return step([n, v]); }; }
|
206 | function step(op) {
|
207 | if (f) throw new TypeError("Generator is already executing.");
|
208 | while (_) try {
|
209 | if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
210 | if (y = 0, t) op = [op[0] & 2, t.value];
|
211 | switch (op[0]) {
|
212 | case 0: case 1: t = op; break;
|
213 | case 4: _.label++; return { value: op[1], done: false };
|
214 | case 5: _.label++; y = op[1]; op = [0]; continue;
|
215 | case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
216 | default:
|
217 | if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
218 | if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
219 | if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
220 | if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
221 | if (t[2]) _.ops.pop();
|
222 | _.trys.pop(); continue;
|
223 | }
|
224 | op = body.call(thisArg, _);
|
225 | } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
226 | if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
227 | }
|
228 | }
|
229 |
|
230 | function __exportStar(m, exports) {
|
231 | for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
232 | }
|
233 |
|
234 | function __values(o) {
|
235 | var m = typeof Symbol === "function" && o[Symbol.iterator], i = 0;
|
236 | if (m) return m.call(o);
|
237 | return {
|
238 | next: function () {
|
239 | if (o && i >= o.length) o = void 0;
|
240 | return { value: o && o[i++], done: !o };
|
241 | }
|
242 | };
|
243 | }
|
244 |
|
245 | function __read(o, n) {
|
246 | var m = typeof Symbol === "function" && o[Symbol.iterator];
|
247 | if (!m) return o;
|
248 | var i = m.call(o), r, ar = [], e;
|
249 | try {
|
250 | while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
251 | }
|
252 | catch (error) { e = { error: error }; }
|
253 | finally {
|
254 | try {
|
255 | if (r && !r.done && (m = i["return"])) m.call(i);
|
256 | }
|
257 | finally { if (e) throw e.error; }
|
258 | }
|
259 | return ar;
|
260 | }
|
261 |
|
262 | function __spread() {
|
263 | for (var ar = [], i = 0; i < arguments.length; i++)
|
264 | ar = ar.concat(__read(arguments[i]));
|
265 | return ar;
|
266 | }
|
267 |
|
268 | function __await(v) {
|
269 | return this instanceof __await ? (this.v = v, this) : new __await(v);
|
270 | }
|
271 |
|
272 | function __asyncGenerator(thisArg, _arguments, generator) {
|
273 | if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
274 | var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
275 | return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
276 | function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
277 | function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
278 | function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
279 | function fulfill(value) { resume("next", value); }
|
280 | function reject(value) { resume("throw", value); }
|
281 | function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
282 | }
|
283 |
|
284 | function __asyncDelegator(o) {
|
285 | var i, p;
|
286 | return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
287 | function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
288 | }
|
289 |
|
290 | function __asyncValues(o) {
|
291 | if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
292 | var m = o[Symbol.asyncIterator], i;
|
293 | return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
294 | function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
295 | function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
296 | }
|
297 |
|
298 | function __makeTemplateObject(cooked, raw) {
|
299 | if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
300 | return cooked;
|
301 | };
|
302 |
|
303 | function __importStar(mod) {
|
304 | if (mod && mod.__esModule) return mod;
|
305 | var result = {};
|
306 | if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
|
307 | result.default = mod;
|
308 | return result;
|
309 | }
|
310 |
|
311 | function __importDefault(mod) {
|
312 | return (mod && mod.__esModule) ? mod : { default: mod };
|
313 | }
|
314 |
|
315 |
|
316 | }),
|
317 |
|
318 | (function(module, exports, __webpack_require__) {
|
319 |
|
320 | var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__; |
321 |
|
322 |
|
323 |
|
324 |
|
325 |
|
326 |
|
327 | (function () {
|
328 | 'use strict';
|
329 |
|
330 | var hasOwn = {}.hasOwnProperty;
|
331 |
|
332 | function classNames () {
|
333 | var classes = [];
|
334 |
|
335 | for (var i = 0; i < arguments.length; i++) {
|
336 | var arg = arguments[i];
|
337 | if (!arg) continue;
|
338 |
|
339 | var argType = typeof arg;
|
340 |
|
341 | if (argType === 'string' || argType === 'number') {
|
342 | classes.push(arg);
|
343 | } else if (Array.isArray(arg) && arg.length) {
|
344 | var inner = classNames.apply(null, arg);
|
345 | if (inner) {
|
346 | classes.push(inner);
|
347 | }
|
348 | } else if (argType === 'object') {
|
349 | for (var key in arg) {
|
350 | if (hasOwn.call(arg, key) && arg[key]) {
|
351 | classes.push(key);
|
352 | }
|
353 | }
|
354 | }
|
355 | }
|
356 |
|
357 | return classes.join(' ');
|
358 | }
|
359 |
|
360 | if ( true && module.exports) {
|
361 | classNames.default = classNames;
|
362 | module.exports = classNames;
|
363 | } else if (true) {
|
364 |
|
365 | !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_RESULT__ = (function () {
|
366 | return classNames;
|
367 | }).apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__),
|
368 | __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));
|
369 | } else {}
|
370 | }());
|
371 |
|
372 |
|
373 | }),
|
374 |
|
375 | (function(module, exports, __webpack_require__) {
|
376 |
|
377 | "use strict";
|
378 |
|
379 | Object.defineProperty(exports, "__esModule", { value: true });
|
380 | const tslib_1 = __webpack_require__(1);
|
381 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
382 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
383 | const w_icon_json_1 = tslib_1.__importDefault(__webpack_require__(43));
|
384 | __webpack_require__(44);
|
385 | class Icon extends react_1.default.PureComponent {
|
386 | constructor() {
|
387 | super(...arguments);
|
388 | this.renderSvgPaths = (type) => {
|
389 | const svgPathsData = w_icon_json_1.default;
|
390 | const pathStrings = svgPathsData[type];
|
391 | if (pathStrings == null) {
|
392 | return null;
|
393 | }
|
394 | return pathStrings.map((d, i) => react_1.default.createElement("path", { key: i, d: d, fillRule: "evenodd" }));
|
395 | };
|
396 | }
|
397 | render() {
|
398 | const { prefixCls, className, color, type, spin, verticalAlign, tagName: TagName, ...others } = this.props;
|
399 | let svg = null;
|
400 | if (type == null || typeof type === 'boolean') {
|
401 | return null;
|
402 | }
|
403 | else if (typeof type !== 'string') {
|
404 | svg = react_1.default.cloneElement(type, {
|
405 | fill: color,
|
406 | });
|
407 | }
|
408 | else {
|
409 | svg = (react_1.default.createElement("svg", { fill: color, viewBox: "0 0 20 20" }, this.renderSvgPaths(type)));
|
410 | }
|
411 | others.style = { fill: 'currentColor', ...others.style };
|
412 | const propps = { ...others,
|
413 | className: classnames_1.default(prefixCls, className, `${prefixCls}-${verticalAlign}`, { [`${prefixCls}-spin`]: spin }),
|
414 | };
|
415 | return (react_1.default.createElement(TagName, Object.assign({}, propps), svg));
|
416 | }
|
417 | }
|
418 | Icon.defaultProps = {
|
419 | prefixCls: 'w-icon',
|
420 | verticalAlign: 'middle',
|
421 | tagName: 'span',
|
422 | spin: false,
|
423 | };
|
424 | exports.default = Icon;
|
425 |
|
426 |
|
427 | }),
|
428 |
|
429 | (function(module, exports) {
|
430 |
|
431 | module.exports = __WEBPACK_EXTERNAL_MODULE__4__;
|
432 |
|
433 | }),
|
434 |
|
435 | (function(module, exports, __webpack_require__) {
|
436 |
|
437 | "use strict";
|
438 |
|
439 | Object.defineProperty(exports, "__esModule", { value: true });
|
440 | var affix_1 = __webpack_require__(41);
|
441 | exports.Affix = affix_1.default;
|
442 | var avatar_1 = __webpack_require__(42);
|
443 | exports.Avatar = avatar_1.default;
|
444 | var alert_1 = __webpack_require__(16);
|
445 | exports.Alert = alert_1.default;
|
446 | var back_top_1 = __webpack_require__(54);
|
447 | exports.BackTop = back_top_1.default;
|
448 | var badge_1 = __webpack_require__(57);
|
449 | exports.Badge = badge_1.default;
|
450 | var breadcrumb_1 = __webpack_require__(59);
|
451 | exports.Breadcrumb = breadcrumb_1.default;
|
452 | var button_1 = __webpack_require__(6);
|
453 | exports.Button = button_1.default;
|
454 | var button_group_1 = __webpack_require__(64);
|
455 | exports.ButtonGroup = button_group_1.default;
|
456 | var card_1 = __webpack_require__(66);
|
457 | exports.Card = card_1.default;
|
458 | var copy_to_clipboard_1 = __webpack_require__(68);
|
459 | exports.CopyToClipboard = copy_to_clipboard_1.default;
|
460 | var checkbox_1 = __webpack_require__(71);
|
461 | exports.Checkbox = checkbox_1.default;
|
462 | var Collapse_1 = __webpack_require__(75);
|
463 | exports.Collapse = Collapse_1.default;
|
464 | var calendar_1 = __webpack_require__(78);
|
465 | exports.Calendar = calendar_1.default;
|
466 | var Col_1 = __webpack_require__(21);
|
467 | exports.Col = Col_1.default;
|
468 | var divider_1 = __webpack_require__(84);
|
469 | exports.Divider = divider_1.default;
|
470 | var descriptions_1 = __webpack_require__(86);
|
471 | exports.Descriptions = descriptions_1.default;
|
472 | var drawer_1 = __webpack_require__(91);
|
473 | exports.Drawer = drawer_1.default;
|
474 | var dropdown_1 = __webpack_require__(93);
|
475 | exports.Dropdown = dropdown_1.default;
|
476 | var date_picker_1 = __webpack_require__(23);
|
477 | exports.DatePicker = date_picker_1.default;
|
478 | var date_input_1 = __webpack_require__(107);
|
479 | exports.DateInput = date_input_1.default;
|
480 | var formatter_1 = __webpack_require__(111);
|
481 | exports.formatter = formatter_1.default;
|
482 | var icon_1 = __webpack_require__(3);
|
483 | exports.Icon = icon_1.default;
|
484 | var input_1 = __webpack_require__(7);
|
485 | exports.Input = input_1.default;
|
486 | var list_1 = __webpack_require__(112);
|
487 | exports.List = list_1.default;
|
488 | var loader_1 = __webpack_require__(115);
|
489 | exports.Loader = loader_1.default;
|
490 | var menu_1 = __webpack_require__(117);
|
491 | exports.Menu = menu_1.default;
|
492 | var message_1 = __webpack_require__(121);
|
493 | exports.Message = message_1.default;
|
494 | var month_picker_1 = __webpack_require__(123);
|
495 | exports.MonthPicker = month_picker_1.default;
|
496 | var notify_1 = __webpack_require__(125);
|
497 | exports.Notify = notify_1.default;
|
498 | var modal_1 = __webpack_require__(17);
|
499 | exports.Modal = modal_1.default;
|
500 | var overlay_1 = __webpack_require__(10);
|
501 | exports.Overlay = overlay_1.default;
|
502 | var overlay_trigger_1 = __webpack_require__(9);
|
503 | exports.OverlayTrigger = overlay_trigger_1.default;
|
504 | var portal_1 = __webpack_require__(18);
|
505 | exports.Portal = portal_1.default;
|
506 | var pagination_1 = __webpack_require__(128);
|
507 | exports.Pagination = pagination_1.default;
|
508 | var popover_1 = __webpack_require__(11);
|
509 | exports.Popover = popover_1.default;
|
510 | var progress_1 = __webpack_require__(130);
|
511 | exports.Progress = progress_1.default;
|
512 | var Radio_1 = __webpack_require__(135);
|
513 | exports.Radio = Radio_1.default;
|
514 | var RadioGroup_1 = __webpack_require__(137);
|
515 | exports.RadioGroup = RadioGroup_1.default;
|
516 | var rate_1 = __webpack_require__(139);
|
517 | exports.Rate = rate_1.default;
|
518 | var Row_1 = __webpack_require__(35);
|
519 | exports.Row = Row_1.default;
|
520 | var Steps_1 = __webpack_require__(142);
|
521 | exports.Steps = Steps_1.default;
|
522 | var split_1 = __webpack_require__(145);
|
523 | exports.Split = split_1.default;
|
524 | var switch_1 = __webpack_require__(147);
|
525 | exports.Switch = switch_1.default;
|
526 | var slider_1 = __webpack_require__(149);
|
527 | exports.Slider = slider_1.default;
|
528 | var select_1 = __webpack_require__(151);
|
529 | exports.Select = select_1.default;
|
530 | var textarea_1 = __webpack_require__(155);
|
531 | exports.Textarea = textarea_1.default;
|
532 | var tooltip_1 = __webpack_require__(157);
|
533 | exports.Tooltip = tooltip_1.default;
|
534 | var tag_1 = __webpack_require__(159);
|
535 | exports.Tag = tag_1.default;
|
536 | var tree_1 = __webpack_require__(161);
|
537 | exports.Tree = tree_1.default;
|
538 | var tabs_1 = __webpack_require__(163);
|
539 | exports.Tabs = tabs_1.default;
|
540 | var table_1 = __webpack_require__(166);
|
541 | exports.Table = table_1.default;
|
542 | var time_picker_1 = __webpack_require__(169);
|
543 | exports.TimePicker = time_picker_1.default;
|
544 | var file_input_1 = __webpack_require__(171);
|
545 | exports.FileInput = file_input_1.default;
|
546 | var Form_1 = __webpack_require__(173);
|
547 | exports.Form = Form_1.default;
|
548 | var FormItem_1 = __webpack_require__(37);
|
549 | exports.FormItem = FormItem_1.default;
|
550 |
|
551 |
|
552 | }),
|
553 |
|
554 | (function(module, exports, __webpack_require__) {
|
555 |
|
556 | "use strict";
|
557 |
|
558 | Object.defineProperty(exports, "__esModule", { value: true });
|
559 | const tslib_1 = __webpack_require__(1);
|
560 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
561 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
562 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
563 | __webpack_require__(51);
|
564 | class Button extends react_1.default.Component {
|
565 | render() {
|
566 | const { prefixCls, type, size, icon, active, disabled, block, basic, className, loading, children, htmlType, ...others } = this.props;
|
567 | const cls = classnames_1.default(className, prefixCls, {
|
568 | [`${prefixCls}-size-${size}`]: size,
|
569 | [`${prefixCls}-${type}`]: type,
|
570 | [`${prefixCls}-basic`]: basic,
|
571 | [`${prefixCls}-loading`]: loading,
|
572 | disabled: disabled || loading,
|
573 | active,
|
574 | block,
|
575 | });
|
576 | return (react_1.default.createElement("button", Object.assign({}, others, { type: htmlType, disabled: disabled || loading, className: cls }),
|
577 | icon && react_1.default.createElement(icon_1.default, { type: icon }),
|
578 | children && react_1.default.Children.map(children, (child) => {
|
579 | if (!child)
|
580 | return child;
|
581 | if (react_1.default.isValidElement(child))
|
582 | return child;
|
583 | return react_1.default.createElement("span", null, child);
|
584 | })));
|
585 | }
|
586 | }
|
587 | Button.defaultProps = {
|
588 | prefixCls: 'w-btn',
|
589 | disabled: false,
|
590 | active: false,
|
591 | loading: false,
|
592 | block: false,
|
593 | basic: false,
|
594 | htmlType: 'button',
|
595 | type: 'light',
|
596 | size: 'default',
|
597 | };
|
598 | exports.default = Button;
|
599 |
|
600 |
|
601 | }),
|
602 |
|
603 | (function(module, exports, __webpack_require__) {
|
604 |
|
605 | "use strict";
|
606 |
|
607 | Object.defineProperty(exports, "__esModule", { value: true });
|
608 | const tslib_1 = __webpack_require__(1);
|
609 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
610 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
611 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
612 | __webpack_require__(108);
|
613 | class Input extends react_1.default.Component {
|
614 | constructor() {
|
615 | super(...arguments);
|
616 | this.addonRef = react_1.default.createRef();
|
617 | this.inputRef = react_1.default.createRef();
|
618 | }
|
619 | componentDidMount() {
|
620 | if (this.addonRef.current && this.inputRef.current) {
|
621 | const input = window.getComputedStyle(this.addonRef.current, null);
|
622 | this.inputRef.current.style.paddingRight = `${this.addonRef.current.clientWidth + parseInt(input.right, 10) * 2}px`;
|
623 | }
|
624 | }
|
625 | render() {
|
626 | const { prefixCls, className, style, size, type, preIcon, addonAfter, ...props } = this.props;
|
627 | const cls = classnames_1.default(prefixCls, className, {
|
628 | [`${prefixCls}-${size}`]: size,
|
629 | [`${prefixCls}-addon`]: addonAfter,
|
630 | disabled: this.props.disabled,
|
631 | });
|
632 | return (react_1.default.createElement("div", { className: cls, style: style },
|
633 | react_1.default.createElement(icon_1.default, { type: preIcon }),
|
634 | react_1.default.createElement("input", Object.assign({ ref: this.inputRef, type: type }, props, { className: classnames_1.default(`${prefixCls}-inner`) })),
|
635 | addonAfter && (react_1.default.createElement("span", { className: `${prefixCls}-addon-after`, ref: this.addonRef }, addonAfter))));
|
636 | }
|
637 | }
|
638 | Input.defaultProps = {
|
639 | prefixCls: 'w-input',
|
640 | preIcon: null,
|
641 | type: 'text',
|
642 | size: 'default',
|
643 | };
|
644 | exports.default = Input;
|
645 |
|
646 |
|
647 | }),
|
648 |
|
649 | (function(module, exports, __webpack_require__) {
|
650 |
|
651 |
|
652 |
|
653 |
|
654 |
|
655 |
|
656 |
|
657 |
|
658 | if (false) { var throwOnDirectAccess, ReactIs; } else {
|
659 |
|
660 |
|
661 | module.exports = __webpack_require__(46)();
|
662 | }
|
663 |
|
664 |
|
665 | }),
|
666 |
|
667 | (function(module, exports, __webpack_require__) {
|
668 |
|
669 | "use strict";
|
670 |
|
671 | Object.defineProperty(exports, "__esModule", { value: true });
|
672 | const tslib_1 = __webpack_require__(1);
|
673 | const react_1 = tslib_1.__importStar(__webpack_require__(0));
|
674 | const react_dom_1 = tslib_1.__importDefault(__webpack_require__(4));
|
675 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
676 | const overlay_1 = tslib_1.__importDefault(__webpack_require__(10));
|
677 | const utils_1 = tslib_1.__importDefault(__webpack_require__(94));
|
678 | const getBoundingClientRect_1 = tslib_1.__importDefault(__webpack_require__(95));
|
679 | const getScroll_1 = tslib_1.__importDefault(__webpack_require__(13));
|
680 | const getOuterSizes_1 = tslib_1.__importDefault(__webpack_require__(101));
|
681 | const RefHolder_1 = tslib_1.__importDefault(__webpack_require__(102));
|
682 | __webpack_require__(103);
|
683 | const normalizeDelay = (delay) => ((delay && typeof delay === 'object') ? delay : { show: delay, hide: delay });
|
684 | let zIndex = 999;
|
685 | class OverlayTrigger extends react_1.default.Component {
|
686 | constructor(props) {
|
687 | super(props);
|
688 |
|
689 |
|
690 | this.trigger = react_1.default.createRef();
|
691 |
|
692 | this.popup = react_1.default.createRef();
|
693 | this._timeout = [];
|
694 | this.getTarget = () => react_dom_1.default.findDOMNode(this.trigger.current);
|
695 | this.getPopupTarget = () => react_dom_1.default.findDOMNode(this.popup.current);
|
696 | this.handleClickOutside = (e) => {
|
697 | const popNode = this.getPopupTarget();
|
698 | const child = this.getTarget();
|
699 | if (popNode && e.target && !popNode.contains(e.target) && child && !child.contains(e.target)) {
|
700 | this.hide();
|
701 | }
|
702 | };
|
703 | this.handleClick = (e) => {
|
704 | const { onClick } = this.getChildProps();
|
705 | if (this.state.show)
|
706 | this.hide();
|
707 | else
|
708 | this.show();
|
709 | if (onClick)
|
710 | onClick(e, !this.state.show);
|
711 | };
|
712 | this.handleoFocus = () => {
|
713 | this.handleShow();
|
714 | };
|
715 | this.clearTimeouts = () => {
|
716 | if (this._timeout.length > 0) {
|
717 | for (const timeoutId of this._timeout) {
|
718 | window.clearTimeout(timeoutId);
|
719 | }
|
720 | this._timeout = [];
|
721 | }
|
722 | };
|
723 | this.handleShow = () => {
|
724 | this.clearTimeouts();
|
725 | this._hoverState = 'show';
|
726 | const delay = normalizeDelay(this.props.delay);
|
727 | if (!delay.show) {
|
728 | this.show();
|
729 | return;
|
730 | }
|
731 | const handle = window.setTimeout(() => {
|
732 | if (this._hoverState === 'show')
|
733 | this.show();
|
734 | }, delay.show);
|
735 | this._timeout.push(handle);
|
736 | };
|
737 | this.handleHide = (isOutside) => {
|
738 | this.clearTimeouts();
|
739 | if (!isOutside && this.props.isOutside)
|
740 | return;
|
741 | this._hoverState = 'hide';
|
742 | const delay = normalizeDelay(this.props.delay);
|
743 | if (!delay.hide) {
|
744 | this.hide();
|
745 | return;
|
746 | }
|
747 | const handle = window.setTimeout(() => {
|
748 | if (this._hoverState === 'hide')
|
749 | this.hide();
|
750 | }, delay.hide);
|
751 | this._timeout.push(handle);
|
752 | };
|
753 | this.handleMouseOver = (e) => {
|
754 | this.handleMouseOverOut(this.handleShow, e, 'fromElement');
|
755 | };
|
756 | this.handleMouseOut = (e) => {
|
757 | this.handleMouseOverOut(this.handleHide, e, 'toElement');
|
758 | };
|
759 | this.onEnter = (node, isAppearing) => {
|
760 | const { onEnter } = this.props;
|
761 | if (onEnter) {
|
762 | onEnter(node, isAppearing);
|
763 | }
|
764 | this.setState({ overlayStyl: { ...this.styles() } });
|
765 | };
|
766 |
|
767 |
|
768 | this.state = {
|
769 | show: !!props.isOpen,
|
770 | overlayStyl: {
|
771 | placement: props.placement
|
772 | },
|
773 | };
|
774 | }
|
775 | componentDidUpdate(prevProps) {
|
776 | if (prevProps.isOpen !== this.props.isOpen) {
|
777 | const isOpen = !!this.props.isOpen;
|
778 | isOpen ? this.show() : this.hide();
|
779 | }
|
780 | }
|
781 | componentDidMount() {
|
782 | if (this.props.isClickOutside) {
|
783 | document && document.addEventListener('mousedown', this.handleClickOutside, true);
|
784 | }
|
785 | !!this.props.isOpen && this.setState({ overlayStyl: { ...this.styles() } });
|
786 | }
|
787 | componentWillUnmount() {
|
788 | document && document.removeEventListener('mousedown', this.handleClickOutside, true);
|
789 | }
|
790 | getChildProps() {
|
791 | return react_1.default.Children.only(this.props.children).props;
|
792 | }
|
793 |
|
794 |
|
795 |
|
796 |
|
797 | handleMouseOverOut(handler, e, relatedNative) {
|
798 | const target = e.currentTarget;
|
799 | const related = (e.relatedTarget || e.nativeEvent[relatedNative]);
|
800 | const popupTarget = this.getPopupTarget();
|
801 | const currentTarget = this.getTarget();
|
802 | let isOutside = true;
|
803 | if ((popupTarget && utils_1.default(popupTarget, related)) || (currentTarget && utils_1.default(currentTarget, related))) {
|
804 | isOutside = false;
|
805 | }
|
806 | if ((!related || related !== target) && !utils_1.default(target, related)) {
|
807 | handler(isOutside, e);
|
808 | }
|
809 | }
|
810 | hide() {
|
811 | if (!this.state.show)
|
812 | return;
|
813 | const { onVisibleChange } = this.props;
|
814 | zIndex -= 1;
|
815 | this.setState({ show: false }, () => onVisibleChange && onVisibleChange(false));
|
816 | }
|
817 | show() {
|
818 | if (this.state.show)
|
819 | return;
|
820 | const { onVisibleChange } = this.props;
|
821 | zIndex += 1;
|
822 | this.setState({
|
823 | show: true,
|
824 | }, () => {
|
825 | onVisibleChange && onVisibleChange(true);
|
826 | });
|
827 | }
|
828 | styles() {
|
829 | const { usePortal, autoAdjustOverflow } = this.props;
|
830 | const { placement } = this.props;
|
831 | const sty = {};
|
832 | let trigger = this.getTarget();
|
833 | let popup = this.getPopupTarget();
|
834 | if (!trigger || !popup || !document) {
|
835 | return sty;
|
836 | }
|
837 | const winSizeHeight = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);
|
838 | const winSizeWidth = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
|
839 | sty.placement = placement;
|
840 | const scrollTop = getScroll_1.default(trigger.ownerDocument.documentElement, true);
|
841 | const scrollLeft = getScroll_1.default(trigger.ownerDocument.documentElement);
|
842 | trigger = { ...getBoundingClientRect_1.default(trigger), ...getOuterSizes_1.default(trigger) };
|
843 | popup = { ...getBoundingClientRect_1.default(popup), ...getOuterSizes_1.default(popup) };
|
844 | const bottom = winSizeHeight - trigger.bottom;
|
845 | const right = winSizeWidth - trigger.left - trigger.width;
|
846 | sty.top = trigger.top + scrollTop;
|
847 | sty.left = trigger.left;
|
848 | if (!usePortal) {
|
849 | sty.top = trigger.offsetTop;
|
850 | sty.left = trigger.offsetLeft;
|
851 | }
|
852 | if (placement && /^(top)/.test(placement)) {
|
853 | sty.top -= popup.height;
|
854 | }
|
855 | if (placement && /^(right)/.test(placement)) {
|
856 | sty.left += trigger.width;
|
857 | }
|
858 | if (placement && /^(bottom)/.test(placement)) {
|
859 | sty.top += trigger.height;
|
860 | }
|
861 | if (placement && /^(left)/.test(placement)) {
|
862 | sty.left -= popup.width;
|
863 | }
|
864 | switch (sty.placement) {
|
865 | case 'bottomLeft':
|
866 | case 'topLeft': break;
|
867 | case 'bottom':
|
868 |
|
869 | case 'top':
|
870 | sty.left = sty.left - (popup.width - trigger.width) / 2;
|
871 | break;
|
872 | case 'bottomRight':
|
873 | case 'topRight':
|
874 | sty.left = sty.left + scrollLeft + trigger.width - popup.width;
|
875 | break;
|
876 | case 'rightTop':
|
877 | case 'leftTop': break;
|
878 | case 'right':
|
879 |
|
880 | case 'left':
|
881 | sty.top = sty.top - (popup.height - trigger.height) / 2;
|
882 | break;
|
883 | case 'rightBottom':
|
884 | case 'leftBottom':
|
885 | sty.top = sty.top - popup.height + trigger.height;
|
886 | break;
|
887 | default: break;
|
888 | }
|
889 | if (autoAdjustOverflow) {
|
890 | if (placement && /^(top)/.test(placement) && trigger.top < popup.height && bottom > popup.height) {
|
891 | sty.placement = placement.replace(/^top/, 'bottom');
|
892 | sty.top = sty.top + popup.height + trigger.height;
|
893 | }
|
894 | if (placement && /^(bottom)/.test(placement) && bottom < popup.height && trigger.top > popup.height) {
|
895 | sty.placement = placement.replace(/^bottom/, 'top');
|
896 | sty.top = sty.top - popup.height - trigger.height;
|
897 | }
|
898 | if (placement && /^(right)/.test(placement) && right < popup.width) {
|
899 | sty.placement = placement.replace(/^right/, 'left');
|
900 | sty.left = sty.left - trigger.width - popup.width;
|
901 | }
|
902 | if (placement && /^(left)/.test(placement) && trigger.left < popup.width) {
|
903 | sty.placement = placement.replace(/^left/, 'right');
|
904 | sty.left = sty.left + trigger.width + popup.width;
|
905 | }
|
906 | if (placement && /^(left|right)/.test(placement) && usePortal) {
|
907 |
|
908 | if ((/(Top)$/.test(placement) && trigger.top < 0) ||
|
909 | (/(right|left)$/.test(placement) && (trigger.top + trigger.height / 2) < popup.height / 2) ||
|
910 | (/(Bottom)$/.test(placement) && (trigger.top + trigger.height) < popup.height)) {
|
911 | sty.top = scrollTop;
|
912 | }
|
913 | }
|
914 | else {
|
915 |
|
916 | if (placement && /(Top)$/.test(placement) && trigger.top < 0) {
|
917 | sty.top -= trigger.top;
|
918 | }
|
919 | if (placement && /(Bottom)$/.test(placement) && trigger.bottom < popup.height) {
|
920 |
|
921 | sty.top = sty.top + (popup.height - trigger.bottom);
|
922 | }
|
923 | if (placement && /(right|left)$/.test(placement) && trigger.bottom - trigger.height / 2 < popup.height / 2) {
|
924 | sty.top = sty.top + popup.height / 2 - (trigger.bottom - trigger.height / 2);
|
925 | }
|
926 | }
|
927 |
|
928 | if (placement && /^(left|right)/.test(placement)) {
|
929 | if (/(Top)$/.test(placement) && bottom + trigger.height < popup.height) {
|
930 | sty.top = sty.top - (popup.height - bottom - trigger.height);
|
931 | }
|
932 | if (/(right|left)$/.test(placement) && bottom + trigger.height / 2 < popup.height / 2) {
|
933 | sty.top = sty.top - (popup.height / 2 - bottom - trigger.height / 2);
|
934 | }
|
935 | if (/(Bottom)$/.test(placement) && bottom < 0) {
|
936 | sty.top = sty.top + bottom;
|
937 | }
|
938 | }
|
939 | if (placement && /^(top|bottom)/.test(placement) && usePortal) {
|
940 |
|
941 | if ((/(Left)$/.test(placement) && trigger.left < 0) ||
|
942 | (/(top|bottom)$/.test(placement) && trigger.left + trigger.width / 2 < popup.width / 2) ||
|
943 | (/(Right)$/.test(placement) && trigger.left + trigger.width < popup.width)) {
|
944 | sty.left = scrollLeft;
|
945 | }
|
946 |
|
947 | if (/(top|bottom)$/.test(placement) && right + trigger.width / 2 < popup.width / 2) {
|
948 | sty.left = trigger.left + trigger.width + right - popup.width;
|
949 | }
|
950 | }
|
951 | else if (placement && /(top|bottom)$/.test(placement) && right + trigger.width / 2 < popup.width / 2) {
|
952 | sty.left = sty.left + (right + trigger.width / 2 - popup.width / 2);
|
953 | }
|
954 | if (placement && /^(top|bottom)/.test(placement)) {
|
955 | if (/(Left)$/.test(placement) && trigger.width + right < popup.width) {
|
956 | sty.left = sty.left - (popup.width - trigger.width - right);
|
957 | }
|
958 | if (/(Right)$/.test(placement) && right < 0) {
|
959 | sty.left = sty.left + right;
|
960 | }
|
961 | }
|
962 | }
|
963 | sty.zIndex = zIndex;
|
964 | return sty;
|
965 | }
|
966 | render() {
|
967 | const { prefixCls, className, children, overlay, trigger, disabled, usePortal, ...other } = this.props;
|
968 | const { placement, ...overlayStyl } = this.state.overlayStyl;
|
969 | const child = react_1.default.Children.only(children);
|
970 | const props = { ...other, dialogProps: {} };
|
971 | const triggerProps = {};
|
972 | if (trigger === 'click' && !disabled) {
|
973 | triggerProps.onClick = this.handleClick;
|
974 | }
|
975 | if (trigger === 'focus' && !disabled) {
|
976 | triggerProps.onFocus = this.handleoFocus;
|
977 | }
|
978 | if (trigger === 'hover' && !disabled) {
|
979 | triggerProps.onMouseOver = this.handleMouseOver;
|
980 | triggerProps.onMouseOut = this.handleMouseOut;
|
981 | props.dialogProps.onMouseOut = this.handleMouseOut;
|
982 | }
|
983 | props.style = { ...props.style, ...overlayStyl };
|
984 | return (react_1.default.createElement(react_1.default.Fragment, null,
|
985 | react_1.default.createElement(RefHolder_1.default, { ref: this.trigger }, react_1.cloneElement(child, Object.assign({}, child.props, { ...triggerProps, className: classnames_1.default(child.props.className, { [`${prefixCls}-disabled`]: disabled }) }))),
|
986 | react_1.default.createElement(overlay_1.default, Object.assign({}, props, { onEnter: this.onEnter, className: classnames_1.default(prefixCls, className, { [placement]: placement }), usePortal: usePortal, isOpen: this.state.show, hasBackdrop: false }), react_1.cloneElement(overlay, Object.assign({ ref: this.popup }, overlay.props, {
|
987 | className: classnames_1.default(overlay.props && overlay.props.className, placement),
|
988 | })))));
|
989 | }
|
990 | }
|
991 | OverlayTrigger.defaultProps = {
|
992 | prefixCls: 'w-overlay-trigger',
|
993 |
|
994 | usePortal: true,
|
995 | isOutside: false,
|
996 | isClickOutside: true,
|
997 | disabled: false,
|
998 | isOpen: false,
|
999 | trigger: 'hover',
|
1000 | placement: 'top',
|
1001 | };
|
1002 | exports.default = OverlayTrigger;
|
1003 |
|
1004 |
|
1005 | }),
|
1006 |
|
1007 | (function(module, exports, __webpack_require__) {
|
1008 |
|
1009 | "use strict";
|
1010 |
|
1011 |
|
1012 |
|
1013 |
|
1014 |
|
1015 |
|
1016 |
|
1017 |
|
1018 |
|
1019 |
|
1020 |
|
1021 |
|
1022 | Object.defineProperty(exports, "__esModule", { value: true });
|
1023 | const tslib_1 = __webpack_require__(1);
|
1024 | const react_1 = tslib_1.__importStar(__webpack_require__(0));
|
1025 | const react_dom_1 = tslib_1.__importDefault(__webpack_require__(4));
|
1026 | const react_transition_group_1 = __webpack_require__(12);
|
1027 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
1028 | const portal_1 = tslib_1.__importDefault(__webpack_require__(18));
|
1029 | __webpack_require__(50);
|
1030 | const noop = () => undefined;
|
1031 | class Overlay extends react_1.default.Component {
|
1032 | constructor(props) {
|
1033 | super(props);
|
1034 | this.handleDocumentClick = (e) => {
|
1035 | const { maskClosable, onClose } = this.props;
|
1036 | const { isOpen } = this.state;
|
1037 | const domNode = react_dom_1.default.findDOMNode(this);
|
1038 | if (isOpen && maskClosable && domNode && (domNode.nextSibling === e.target || domNode.nextElementSibling === e.target)) {
|
1039 | this.setState({ isMount: false }, () => {
|
1040 | onClose && onClose(e);
|
1041 | });
|
1042 | }
|
1043 | };
|
1044 | this.handleBackdropMouseDown = (e) => {
|
1045 | const { backdropProps, maskClosable, hasBackdrop, usePortal, onClose } = this.props;
|
1046 | if (e.target !== this.container && usePortal) {
|
1047 | return;
|
1048 | }
|
1049 | if (maskClosable && hasBackdrop) {
|
1050 | this.setState({ isMount: false }, onClose.bind(this, e));
|
1051 | }
|
1052 | backdropProps && backdropProps.onMouseDown && backdropProps.onMouseDown(e);
|
1053 | };
|
1054 | this.onClosed = (node) => {
|
1055 | const { onClosed } = this.props;
|
1056 | if (this.state.isMount) {
|
1057 | this.setState({ isMount: false }, () => {
|
1058 | onClosed && onClosed(node);
|
1059 | });
|
1060 | }
|
1061 | else {
|
1062 | onClosed && onClosed(node);
|
1063 | }
|
1064 | this.overlayWillClose();
|
1065 | };
|
1066 | this.state = {
|
1067 | isMount: false,
|
1068 | isOpen: props.isOpen,
|
1069 | };
|
1070 | }
|
1071 | componentDidMount() {
|
1072 | if (this.props.isOpen) {
|
1073 | this.overlayWillOpen();
|
1074 | }
|
1075 | }
|
1076 | componentWillUnmount() {
|
1077 | document.removeEventListener('mousedown', this.handleDocumentClick, false);
|
1078 | }
|
1079 | overlayWillClose() {
|
1080 | const { prefixCls } = this.props;
|
1081 | document.removeEventListener('mousedown', this.handleDocumentClick, false);
|
1082 | document.body.classList.remove(`${prefixCls}-open`);
|
1083 | this.setState({ isOpen: false });
|
1084 | }
|
1085 | overlayWillOpen() {
|
1086 | const { prefixCls, maskClosable, hasBackdrop, usePortal } = this.props;
|
1087 | this.setState({ isMount: true, isOpen: true });
|
1088 | if (this.props.hasBackdrop && usePortal) {
|
1089 |
|
1090 | document.body.classList.add(`${prefixCls}-open`);
|
1091 | }
|
1092 | if (maskClosable && !hasBackdrop) {
|
1093 | document.addEventListener('mousedown', this.handleDocumentClick, false);
|
1094 | }
|
1095 | }
|
1096 | componentDidUpdate(prevProps) {
|
1097 | if (prevProps.isOpen && !this.props.isOpen) {
|
1098 | this.overlayWillClose();
|
1099 | }
|
1100 | else if (!prevProps.isOpen && this.props.isOpen) {
|
1101 | this.overlayWillOpen();
|
1102 | }
|
1103 | }
|
1104 | render() {
|
1105 | const { prefixCls, className, style, isOpen, maskClosable, usePortal, children, unmountOnExit, timeout, transitionName, hasBackdrop, portalProps, backdropProps = {}, dialogProps, onClose, ...otherProps } = this.props;
|
1106 | const { onOpening, onOpened, onClosing } = this.props;
|
1107 | const decoratedChild = typeof children === 'object' ? (react_1.cloneElement(children, {
|
1108 | ...dialogProps,
|
1109 | className: classnames_1.default(children.props.className, `${prefixCls}-content`),
|
1110 | tabIndex: 0,
|
1111 | })) : react_1.default.createElement("span", Object.assign({}, dialogProps, { className: `${prefixCls}-content` }), children);
|
1112 | const TransitionGroupComp = (react_1.default.createElement(react_transition_group_1.CSSTransition, Object.assign({ in: this.state.isOpen, unmountOnExit: unmountOnExit, onEntering: onOpening, onEntered: onOpened, onExiting: onClosing, onExited: this.onClosed, timeout: timeout }, otherProps, { classNames: transitionName }), status => (react_1.default.createElement("div", { className: classnames_1.default(prefixCls, className, { [`${prefixCls}-inline`]: !usePortal }), style: style },
|
1113 | hasBackdrop && react_1.cloneElement(react_1.default.createElement("div", null), {
|
1114 | ...backdropProps,
|
1115 | onMouseDown: this.handleBackdropMouseDown.bind(this),
|
1116 | className: classnames_1.default(`${prefixCls}-backdrop`, backdropProps.className),
|
1117 | tabIndex: this.props.maskClosable ? 0 : null,
|
1118 | }),
|
1119 | usePortal ? (react_1.default.createElement("div", { ref: node => this.container = node, onMouseDown: this.handleBackdropMouseDown.bind(this), className: classnames_1.default(`${prefixCls}-container`) }, react_1.cloneElement(decoratedChild, { 'data-status': status }))) : react_1.cloneElement(decoratedChild, { 'data-status': status })))));
|
1120 | if (usePortal) {
|
1121 | return react_1.default.createElement(portal_1.default, Object.assign({}, portalProps),
|
1122 | " ",
|
1123 | TransitionGroupComp,
|
1124 | " ");
|
1125 | }
|
1126 | else {
|
1127 | return TransitionGroupComp;
|
1128 | }
|
1129 | }
|
1130 | }
|
1131 | Overlay.defaultProps = {
|
1132 | isOpen: false,
|
1133 | prefixCls: 'w-overlay',
|
1134 | usePortal: true,
|
1135 | maskClosable: true,
|
1136 | backdropProps: {},
|
1137 | portalProps: {},
|
1138 | hasBackdrop: true,
|
1139 | unmountOnExit: true,
|
1140 | timeout: 300,
|
1141 | transitionName: 'w-overlay',
|
1142 | onEnter: noop,
|
1143 | onOpening: noop,
|
1144 | onOpened: noop,
|
1145 | onClosing: noop,
|
1146 | onClosed: noop,
|
1147 | onClose: noop,
|
1148 | };
|
1149 | exports.default = Overlay;
|
1150 |
|
1151 |
|
1152 | }),
|
1153 |
|
1154 | (function(module, exports, __webpack_require__) {
|
1155 |
|
1156 | "use strict";
|
1157 |
|
1158 | Object.defineProperty(exports, "__esModule", { value: true });
|
1159 | const tslib_1 = __webpack_require__(1);
|
1160 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
1161 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
1162 | const overlay_trigger_1 = tslib_1.__importDefault(__webpack_require__(9));
|
1163 | __webpack_require__(109);
|
1164 | class Popover extends react_1.default.Component {
|
1165 | constructor() {
|
1166 | super(...arguments);
|
1167 | this.renderArrow = () => {
|
1168 | const { prefixCls } = this.props;
|
1169 | return (react_1.default.createElement("div", { className: `${prefixCls}-arrow` },
|
1170 | react_1.default.createElement("svg", { viewBox: "0 0 30 30" },
|
1171 | react_1.default.createElement("path", { fillOpacity: "0.2", d: "M8.11 6.302c1.015-.936 1.887-2.922 1.887-4.297v26c0-1.378-.868-3.357-1.888-4.297L.925 17.09c-1.237-1.14-1.233-3.034 0-4.17L8.11 6.302z" }),
|
1172 | react_1.default.createElement("path", { fill: "#fff", d: "M8.787 7.036c1.22-1.125 2.21-3.376 2.21-5.03V0v30-2.005c0-1.654-.983-3.9-2.21-5.03l-7.183-6.616c-.81-.746-.802-1.96 0-2.7l7.183-6.614z" }))));
|
1173 | };
|
1174 | }
|
1175 | render() {
|
1176 | const { prefixCls, className, placement, content, isOpen, trigger, delay, usePortal, visibleArrow, onVisibleChange, ...other } = this.props;
|
1177 | const cls = classnames_1.default(prefixCls, className, { 'no-arrow': !visibleArrow });
|
1178 | return (react_1.default.createElement(overlay_trigger_1.default, Object.assign({ usePortal: usePortal, isOpen: isOpen, trigger: trigger, delay: delay, onVisibleChange: onVisibleChange, placement: placement }, other, { overlay: react_1.default.createElement("div", { className: cls },
|
1179 | visibleArrow && this.renderArrow(),
|
1180 | react_1.default.createElement("div", { className: `${prefixCls}-inner` }, this.props.content)) }), typeof this.props.children === 'object' ? this.props.children : react_1.default.createElement("span", null, this.props.children)));
|
1181 | }
|
1182 | }
|
1183 | Popover.defaultProps = {
|
1184 | prefixCls: 'w-popover',
|
1185 | placement: 'top',
|
1186 | usePortal: true,
|
1187 | isOpen: false,
|
1188 | visibleArrow: true,
|
1189 | };
|
1190 | exports.default = Popover;
|
1191 |
|
1192 |
|
1193 | }),
|
1194 |
|
1195 | (function(module, __webpack_exports__, __webpack_require__) {
|
1196 |
|
1197 | "use strict";
|
1198 | __webpack_require__.r(__webpack_exports__);
|
1199 |
|
1200 |
|
1201 | function _extends() {
|
1202 | _extends = Object.assign || function (target) {
|
1203 | for (var i = 1; i < arguments.length; i++) {
|
1204 | var source = arguments[i];
|
1205 |
|
1206 | for (var key in source) {
|
1207 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
1208 | target[key] = source[key];
|
1209 | }
|
1210 | }
|
1211 | }
|
1212 |
|
1213 | return target;
|
1214 | };
|
1215 |
|
1216 | return _extends.apply(this, arguments);
|
1217 | }
|
1218 |
|
1219 | function _objectWithoutPropertiesLoose(source, excluded) {
|
1220 | if (source == null) return {};
|
1221 | var target = {};
|
1222 | var sourceKeys = Object.keys(source);
|
1223 | var key, i;
|
1224 |
|
1225 | for (i = 0; i < sourceKeys.length; i++) {
|
1226 | key = sourceKeys[i];
|
1227 | if (excluded.indexOf(key) >= 0) continue;
|
1228 | target[key] = source[key];
|
1229 | }
|
1230 |
|
1231 | return target;
|
1232 | }
|
1233 |
|
1234 | function _inheritsLoose(subClass, superClass) {
|
1235 | subClass.prototype = Object.create(superClass.prototype);
|
1236 | subClass.prototype.constructor = subClass;
|
1237 | subClass.__proto__ = superClass;
|
1238 | }
|
1239 |
|
1240 | var prop_types = __webpack_require__(8);
|
1241 |
|
1242 |
|
1243 | var class_addClass = __webpack_require__(38);
|
1244 | var addClass_default = __webpack_require__.n(class_addClass);
|
1245 |
|
1246 |
|
1247 | var class_removeClass = __webpack_require__(39);
|
1248 | var removeClass_default = __webpack_require__.n(class_removeClass);
|
1249 |
|
1250 |
|
1251 | var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(0);
|
1252 | var external_root_React_commonjs2_react_commonjs_react_amd_react_default = __webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
|
1253 |
|
1254 |
|
1255 | var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_ = __webpack_require__(4);
|
1256 | var external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default = __webpack_require__.n(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_);
|
1257 |
|
1258 |
|
1259 | var config = ({
|
1260 | disabled: false
|
1261 | });
|
1262 |
|
1263 |
|
1264 | var TransitionGroupContext = (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createContext(null));
|
1265 |
|
1266 |
|
1267 |
|
1268 |
|
1269 |
|
1270 |
|
1271 |
|
1272 |
|
1273 |
|
1274 | var UNMOUNTED = 'unmounted';
|
1275 | var EXITED = 'exited';
|
1276 | var ENTERING = 'entering';
|
1277 | var ENTERED = 'entered';
|
1278 | var EXITING = 'exiting';
|
1279 |
|
1280 |
|
1281 |
|
1282 |
|
1283 |
|
1284 |
|
1285 |
|
1286 |
|
1287 |
|
1288 |
|
1289 |
|
1290 |
|
1291 |
|
1292 |
|
1293 |
|
1294 |
|
1295 |
|
1296 |
|
1297 |
|
1298 |
|
1299 |
|
1300 |
|
1301 |
|
1302 |
|
1303 |
|
1304 |
|
1305 |
|
1306 |
|
1307 |
|
1308 |
|
1309 |
|
1310 |
|
1311 |
|
1312 |
|
1313 |
|
1314 |
|
1315 |
|
1316 |
|
1317 |
|
1318 |
|
1319 |
|
1320 |
|
1321 |
|
1322 |
|
1323 |
|
1324 |
|
1325 |
|
1326 |
|
1327 |
|
1328 |
|
1329 |
|
1330 |
|
1331 |
|
1332 |
|
1333 |
|
1334 |
|
1335 |
|
1336 |
|
1337 |
|
1338 |
|
1339 |
|
1340 |
|
1341 |
|
1342 |
|
1343 |
|
1344 |
|
1345 |
|
1346 |
|
1347 |
|
1348 |
|
1349 |
|
1350 |
|
1351 |
|
1352 |
|
1353 |
|
1354 |
|
1355 |
|
1356 |
|
1357 |
|
1358 |
|
1359 |
|
1360 |
|
1361 |
|
1362 |
|
1363 |
|
1364 |
|
1365 |
|
1366 |
|
1367 |
|
1368 |
|
1369 |
|
1370 |
|
1371 | var Transition_Transition =
|
1372 |
|
1373 | function (_React$Component) {
|
1374 | _inheritsLoose(Transition, _React$Component);
|
1375 |
|
1376 | function Transition(props, context) {
|
1377 | var _this;
|
1378 |
|
1379 | _this = _React$Component.call(this, props, context) || this;
|
1380 | var parentGroup = context;
|
1381 |
|
1382 | var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;
|
1383 | var initialStatus;
|
1384 | _this.appearStatus = null;
|
1385 |
|
1386 | if (props.in) {
|
1387 | if (appear) {
|
1388 | initialStatus = EXITED;
|
1389 | _this.appearStatus = ENTERING;
|
1390 | } else {
|
1391 | initialStatus = ENTERED;
|
1392 | }
|
1393 | } else {
|
1394 | if (props.unmountOnExit || props.mountOnEnter) {
|
1395 | initialStatus = UNMOUNTED;
|
1396 | } else {
|
1397 | initialStatus = EXITED;
|
1398 | }
|
1399 | }
|
1400 |
|
1401 | _this.state = {
|
1402 | status: initialStatus
|
1403 | };
|
1404 | _this.nextCallback = null;
|
1405 | return _this;
|
1406 | }
|
1407 |
|
1408 | Transition.getDerivedStateFromProps = function getDerivedStateFromProps(_ref, prevState) {
|
1409 | var nextIn = _ref.in;
|
1410 |
|
1411 | if (nextIn && prevState.status === UNMOUNTED) {
|
1412 | return {
|
1413 | status: EXITED
|
1414 | };
|
1415 | }
|
1416 |
|
1417 | return null;
|
1418 | };
|
1419 |
|
1420 |
|
1421 |
|
1422 |
|
1423 |
|
1424 |
|
1425 |
|
1426 |
|
1427 |
|
1428 |
|
1429 |
|
1430 |
|
1431 |
|
1432 |
|
1433 |
|
1434 |
|
1435 |
|
1436 | var _proto = Transition.prototype;
|
1437 |
|
1438 | _proto.componentDidMount = function componentDidMount() {
|
1439 | this.updateStatus(true, this.appearStatus);
|
1440 | };
|
1441 |
|
1442 | _proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
1443 | var nextStatus = null;
|
1444 |
|
1445 | if (prevProps !== this.props) {
|
1446 | var status = this.state.status;
|
1447 |
|
1448 | if (this.props.in) {
|
1449 | if (status !== ENTERING && status !== ENTERED) {
|
1450 | nextStatus = ENTERING;
|
1451 | }
|
1452 | } else {
|
1453 | if (status === ENTERING || status === ENTERED) {
|
1454 | nextStatus = EXITING;
|
1455 | }
|
1456 | }
|
1457 | }
|
1458 |
|
1459 | this.updateStatus(false, nextStatus);
|
1460 | };
|
1461 |
|
1462 | _proto.componentWillUnmount = function componentWillUnmount() {
|
1463 | this.cancelNextCallback();
|
1464 | };
|
1465 |
|
1466 | _proto.getTimeouts = function getTimeouts() {
|
1467 | var timeout = this.props.timeout;
|
1468 | var exit, enter, appear;
|
1469 | exit = enter = appear = timeout;
|
1470 |
|
1471 | if (timeout != null && typeof timeout !== 'number') {
|
1472 | exit = timeout.exit;
|
1473 | enter = timeout.enter;
|
1474 |
|
1475 | appear = timeout.appear !== undefined ? timeout.appear : enter;
|
1476 | }
|
1477 |
|
1478 | return {
|
1479 | exit: exit,
|
1480 | enter: enter,
|
1481 | appear: appear
|
1482 | };
|
1483 | };
|
1484 |
|
1485 | _proto.updateStatus = function updateStatus(mounting, nextStatus) {
|
1486 | if (mounting === void 0) {
|
1487 | mounting = false;
|
1488 | }
|
1489 |
|
1490 | if (nextStatus !== null) {
|
1491 |
|
1492 | this.cancelNextCallback();
|
1493 | var node = external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_default.a.findDOMNode(this);
|
1494 |
|
1495 | if (nextStatus === ENTERING) {
|
1496 | this.performEnter(node, mounting);
|
1497 | } else {
|
1498 | this.performExit(node);
|
1499 | }
|
1500 | } else if (this.props.unmountOnExit && this.state.status === EXITED) {
|
1501 | this.setState({
|
1502 | status: UNMOUNTED
|
1503 | });
|
1504 | }
|
1505 | };
|
1506 |
|
1507 | _proto.performEnter = function performEnter(node, mounting) {
|
1508 | var _this2 = this;
|
1509 |
|
1510 | var enter = this.props.enter;
|
1511 | var appearing = this.context ? this.context.isMounting : mounting;
|
1512 | var timeouts = this.getTimeouts();
|
1513 | var enterTimeout = appearing ? timeouts.appear : timeouts.enter;
|
1514 |
|
1515 |
|
1516 | if (!mounting && !enter || config.disabled) {
|
1517 | this.safeSetState({
|
1518 | status: ENTERED
|
1519 | }, function () {
|
1520 | _this2.props.onEntered(node);
|
1521 | });
|
1522 | return;
|
1523 | }
|
1524 |
|
1525 | this.props.onEnter(node, appearing);
|
1526 | this.safeSetState({
|
1527 | status: ENTERING
|
1528 | }, function () {
|
1529 | _this2.props.onEntering(node, appearing);
|
1530 |
|
1531 | _this2.onTransitionEnd(node, enterTimeout, function () {
|
1532 | _this2.safeSetState({
|
1533 | status: ENTERED
|
1534 | }, function () {
|
1535 | _this2.props.onEntered(node, appearing);
|
1536 | });
|
1537 | });
|
1538 | });
|
1539 | };
|
1540 |
|
1541 | _proto.performExit = function performExit(node) {
|
1542 | var _this3 = this;
|
1543 |
|
1544 | var exit = this.props.exit;
|
1545 | var timeouts = this.getTimeouts();
|
1546 |
|
1547 | if (!exit || config.disabled) {
|
1548 | this.safeSetState({
|
1549 | status: EXITED
|
1550 | }, function () {
|
1551 | _this3.props.onExited(node);
|
1552 | });
|
1553 | return;
|
1554 | }
|
1555 |
|
1556 | this.props.onExit(node);
|
1557 | this.safeSetState({
|
1558 | status: EXITING
|
1559 | }, function () {
|
1560 | _this3.props.onExiting(node);
|
1561 |
|
1562 | _this3.onTransitionEnd(node, timeouts.exit, function () {
|
1563 | _this3.safeSetState({
|
1564 | status: EXITED
|
1565 | }, function () {
|
1566 | _this3.props.onExited(node);
|
1567 | });
|
1568 | });
|
1569 | });
|
1570 | };
|
1571 |
|
1572 | _proto.cancelNextCallback = function cancelNextCallback() {
|
1573 | if (this.nextCallback !== null) {
|
1574 | this.nextCallback.cancel();
|
1575 | this.nextCallback = null;
|
1576 | }
|
1577 | };
|
1578 |
|
1579 | _proto.safeSetState = function safeSetState(nextState, callback) {
|
1580 |
|
1581 |
|
1582 |
|
1583 | callback = this.setNextCallback(callback);
|
1584 | this.setState(nextState, callback);
|
1585 | };
|
1586 |
|
1587 | _proto.setNextCallback = function setNextCallback(callback) {
|
1588 | var _this4 = this;
|
1589 |
|
1590 | var active = true;
|
1591 |
|
1592 | this.nextCallback = function (event) {
|
1593 | if (active) {
|
1594 | active = false;
|
1595 | _this4.nextCallback = null;
|
1596 | callback(event);
|
1597 | }
|
1598 | };
|
1599 |
|
1600 | this.nextCallback.cancel = function () {
|
1601 | active = false;
|
1602 | };
|
1603 |
|
1604 | return this.nextCallback;
|
1605 | };
|
1606 |
|
1607 | _proto.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {
|
1608 | this.setNextCallback(handler);
|
1609 | var doesNotHaveTimeoutOrListener = timeout == null && !this.props.addEndListener;
|
1610 |
|
1611 | if (!node || doesNotHaveTimeoutOrListener) {
|
1612 | setTimeout(this.nextCallback, 0);
|
1613 | return;
|
1614 | }
|
1615 |
|
1616 | if (this.props.addEndListener) {
|
1617 | this.props.addEndListener(node, this.nextCallback);
|
1618 | }
|
1619 |
|
1620 | if (timeout != null) {
|
1621 | setTimeout(this.nextCallback, timeout);
|
1622 | }
|
1623 | };
|
1624 |
|
1625 | _proto.render = function render() {
|
1626 | var status = this.state.status;
|
1627 |
|
1628 | if (status === UNMOUNTED) {
|
1629 | return null;
|
1630 | }
|
1631 |
|
1632 | var _this$props = this.props,
|
1633 | children = _this$props.children,
|
1634 | childProps = _objectWithoutPropertiesLoose(_this$props, ["children"]);
|
1635 |
|
1636 |
|
1637 | delete childProps.in;
|
1638 | delete childProps.mountOnEnter;
|
1639 | delete childProps.unmountOnExit;
|
1640 | delete childProps.appear;
|
1641 | delete childProps.enter;
|
1642 | delete childProps.exit;
|
1643 | delete childProps.timeout;
|
1644 | delete childProps.addEndListener;
|
1645 | delete childProps.onEnter;
|
1646 | delete childProps.onEntering;
|
1647 | delete childProps.onEntered;
|
1648 | delete childProps.onExit;
|
1649 | delete childProps.onExiting;
|
1650 | delete childProps.onExited;
|
1651 |
|
1652 | if (typeof children === 'function') {
|
1653 |
|
1654 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(TransitionGroupContext.Provider, {
|
1655 | value: null
|
1656 | }, children(status, childProps));
|
1657 | }
|
1658 |
|
1659 | var child = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.only(children);
|
1660 | return (
|
1661 | external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(TransitionGroupContext.Provider, {
|
1662 | value: null
|
1663 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(child, childProps))
|
1664 | );
|
1665 | };
|
1666 |
|
1667 | return Transition;
|
1668 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
1669 |
|
1670 | Transition_Transition.contextType = TransitionGroupContext;
|
1671 | Transition_Transition.propTypes = false ? undefined : {};
|
1672 |
|
1673 | function noop() {}
|
1674 |
|
1675 | Transition_Transition.defaultProps = {
|
1676 | in: false,
|
1677 | mountOnEnter: false,
|
1678 | unmountOnExit: false,
|
1679 | appear: false,
|
1680 | enter: true,
|
1681 | exit: true,
|
1682 | onEnter: noop,
|
1683 | onEntering: noop,
|
1684 | onEntered: noop,
|
1685 | onExit: noop,
|
1686 | onExiting: noop,
|
1687 | onExited: noop
|
1688 | };
|
1689 | Transition_Transition.UNMOUNTED = 0;
|
1690 | Transition_Transition.EXITED = 1;
|
1691 | Transition_Transition.ENTERING = 2;
|
1692 | Transition_Transition.ENTERED = 3;
|
1693 | Transition_Transition.EXITING = 4;
|
1694 | var esm_Transition = (Transition_Transition);
|
1695 |
|
1696 |
|
1697 |
|
1698 |
|
1699 |
|
1700 |
|
1701 |
|
1702 |
|
1703 |
|
1704 |
|
1705 |
|
1706 | var _addClass = function addClass(node, classes) {
|
1707 | return node && classes && classes.split(' ').forEach(function (c) {
|
1708 | return addClass_default()(node, c);
|
1709 | });
|
1710 | };
|
1711 |
|
1712 | var CSSTransition_removeClass = function removeClass(node, classes) {
|
1713 | return node && classes && classes.split(' ').forEach(function (c) {
|
1714 | return removeClass_default()(node, c);
|
1715 | });
|
1716 | };
|
1717 |
|
1718 |
|
1719 |
|
1720 |
|
1721 |
|
1722 |
|
1723 |
|
1724 |
|
1725 |
|
1726 |
|
1727 |
|
1728 |
|
1729 |
|
1730 |
|
1731 |
|
1732 |
|
1733 |
|
1734 |
|
1735 |
|
1736 |
|
1737 |
|
1738 |
|
1739 |
|
1740 |
|
1741 |
|
1742 |
|
1743 |
|
1744 |
|
1745 |
|
1746 |
|
1747 |
|
1748 |
|
1749 |
|
1750 |
|
1751 |
|
1752 |
|
1753 |
|
1754 |
|
1755 |
|
1756 |
|
1757 |
|
1758 |
|
1759 |
|
1760 |
|
1761 |
|
1762 |
|
1763 |
|
1764 |
|
1765 |
|
1766 |
|
1767 |
|
1768 |
|
1769 |
|
1770 |
|
1771 |
|
1772 |
|
1773 |
|
1774 |
|
1775 |
|
1776 |
|
1777 |
|
1778 |
|
1779 | var CSSTransition_CSSTransition =
|
1780 |
|
1781 | function (_React$Component) {
|
1782 | _inheritsLoose(CSSTransition, _React$Component);
|
1783 |
|
1784 | function CSSTransition() {
|
1785 | var _this;
|
1786 |
|
1787 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
1788 | args[_key] = arguments[_key];
|
1789 | }
|
1790 |
|
1791 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
1792 | _this.appliedClasses = {
|
1793 | appear: {},
|
1794 | enter: {},
|
1795 | exit: {}
|
1796 | };
|
1797 |
|
1798 | _this.onEnter = function (node, appearing) {
|
1799 | _this.removeClasses(node, 'exit');
|
1800 |
|
1801 | _this.addClass(node, appearing ? 'appear' : 'enter', 'base');
|
1802 |
|
1803 | if (_this.props.onEnter) {
|
1804 | _this.props.onEnter(node, appearing);
|
1805 | }
|
1806 | };
|
1807 |
|
1808 | _this.onEntering = function (node, appearing) {
|
1809 | var type = appearing ? 'appear' : 'enter';
|
1810 |
|
1811 | _this.addClass(node, type, 'active');
|
1812 |
|
1813 | if (_this.props.onEntering) {
|
1814 | _this.props.onEntering(node, appearing);
|
1815 | }
|
1816 | };
|
1817 |
|
1818 | _this.onEntered = function (node, appearing) {
|
1819 | var type = appearing ? 'appear' : 'enter';
|
1820 |
|
1821 | _this.removeClasses(node, type);
|
1822 |
|
1823 | _this.addClass(node, type, 'done');
|
1824 |
|
1825 | if (_this.props.onEntered) {
|
1826 | _this.props.onEntered(node, appearing);
|
1827 | }
|
1828 | };
|
1829 |
|
1830 | _this.onExit = function (node) {
|
1831 | _this.removeClasses(node, 'appear');
|
1832 |
|
1833 | _this.removeClasses(node, 'enter');
|
1834 |
|
1835 | _this.addClass(node, 'exit', 'base');
|
1836 |
|
1837 | if (_this.props.onExit) {
|
1838 | _this.props.onExit(node);
|
1839 | }
|
1840 | };
|
1841 |
|
1842 | _this.onExiting = function (node) {
|
1843 | _this.addClass(node, 'exit', 'active');
|
1844 |
|
1845 | if (_this.props.onExiting) {
|
1846 | _this.props.onExiting(node);
|
1847 | }
|
1848 | };
|
1849 |
|
1850 | _this.onExited = function (node) {
|
1851 | _this.removeClasses(node, 'exit');
|
1852 |
|
1853 | _this.addClass(node, 'exit', 'done');
|
1854 |
|
1855 | if (_this.props.onExited) {
|
1856 | _this.props.onExited(node);
|
1857 | }
|
1858 | };
|
1859 |
|
1860 | _this.getClassNames = function (type) {
|
1861 | var classNames = _this.props.classNames;
|
1862 | var isStringClassNames = typeof classNames === 'string';
|
1863 | var prefix = isStringClassNames && classNames ? classNames + "-" : '';
|
1864 | var baseClassName = isStringClassNames ? "" + prefix + type : classNames[type];
|
1865 | var activeClassName = isStringClassNames ? baseClassName + "-active" : classNames[type + "Active"];
|
1866 | var doneClassName = isStringClassNames ? baseClassName + "-done" : classNames[type + "Done"];
|
1867 | return {
|
1868 | baseClassName: baseClassName,
|
1869 | activeClassName: activeClassName,
|
1870 | doneClassName: doneClassName
|
1871 | };
|
1872 | };
|
1873 |
|
1874 | return _this;
|
1875 | }
|
1876 |
|
1877 | var _proto = CSSTransition.prototype;
|
1878 |
|
1879 | _proto.addClass = function addClass(node, type, phase) {
|
1880 | var className = this.getClassNames(type)[phase + "ClassName"];
|
1881 |
|
1882 | if (type === 'appear' && phase === 'done') {
|
1883 | className += " " + this.getClassNames('enter').doneClassName;
|
1884 | }
|
1885 |
|
1886 |
|
1887 |
|
1888 | if (phase === 'active') {
|
1889 |
|
1890 | node && node.scrollTop;
|
1891 | }
|
1892 |
|
1893 | this.appliedClasses[type][phase] = className;
|
1894 |
|
1895 | _addClass(node, className);
|
1896 | };
|
1897 |
|
1898 | _proto.removeClasses = function removeClasses(node, type) {
|
1899 | var _this$appliedClasses$ = this.appliedClasses[type],
|
1900 | baseClassName = _this$appliedClasses$.base,
|
1901 | activeClassName = _this$appliedClasses$.active,
|
1902 | doneClassName = _this$appliedClasses$.done;
|
1903 | this.appliedClasses[type] = {};
|
1904 |
|
1905 | if (baseClassName) {
|
1906 | CSSTransition_removeClass(node, baseClassName);
|
1907 | }
|
1908 |
|
1909 | if (activeClassName) {
|
1910 | CSSTransition_removeClass(node, activeClassName);
|
1911 | }
|
1912 |
|
1913 | if (doneClassName) {
|
1914 | CSSTransition_removeClass(node, doneClassName);
|
1915 | }
|
1916 | };
|
1917 |
|
1918 | _proto.render = function render() {
|
1919 | var _this$props = this.props,
|
1920 | _ = _this$props.classNames,
|
1921 | props = _objectWithoutPropertiesLoose(_this$props, ["classNames"]);
|
1922 |
|
1923 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(esm_Transition, _extends({}, props, {
|
1924 | onEnter: this.onEnter,
|
1925 | onEntered: this.onEntered,
|
1926 | onEntering: this.onEntering,
|
1927 | onExit: this.onExit,
|
1928 | onExiting: this.onExiting,
|
1929 | onExited: this.onExited
|
1930 | }));
|
1931 | };
|
1932 |
|
1933 | return CSSTransition;
|
1934 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
1935 |
|
1936 | CSSTransition_CSSTransition.defaultProps = {
|
1937 | classNames: ''
|
1938 | };
|
1939 | CSSTransition_CSSTransition.propTypes = false ? undefined : {};
|
1940 | var esm_CSSTransition = (CSSTransition_CSSTransition);
|
1941 |
|
1942 | function _assertThisInitialized(self) {
|
1943 | if (self === void 0) {
|
1944 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
1945 | }
|
1946 |
|
1947 | return self;
|
1948 | }
|
1949 |
|
1950 |
|
1951 |
|
1952 |
|
1953 |
|
1954 |
|
1955 |
|
1956 |
|
1957 |
|
1958 | function getChildMapping(children, mapFn) {
|
1959 | var mapper = function mapper(child) {
|
1960 | return mapFn && Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(child) ? mapFn(child) : child;
|
1961 | };
|
1962 |
|
1963 | var result = Object.create(null);
|
1964 | if (children) external_root_React_commonjs2_react_commonjs_react_amd_react_["Children"].map(children, function (c) {
|
1965 | return c;
|
1966 | }).forEach(function (child) {
|
1967 |
|
1968 | result[child.key] = mapper(child);
|
1969 | });
|
1970 | return result;
|
1971 | }
|
1972 |
|
1973 |
|
1974 |
|
1975 |
|
1976 |
|
1977 |
|
1978 |
|
1979 |
|
1980 |
|
1981 |
|
1982 |
|
1983 |
|
1984 |
|
1985 |
|
1986 |
|
1987 |
|
1988 |
|
1989 |
|
1990 | function mergeChildMappings(prev, next) {
|
1991 | prev = prev || {};
|
1992 | next = next || {};
|
1993 |
|
1994 | function getValueForKey(key) {
|
1995 | return key in next ? next[key] : prev[key];
|
1996 | }
|
1997 |
|
1998 |
|
1999 |
|
2000 | var nextKeysPending = Object.create(null);
|
2001 | var pendingKeys = [];
|
2002 |
|
2003 | for (var prevKey in prev) {
|
2004 | if (prevKey in next) {
|
2005 | if (pendingKeys.length) {
|
2006 | nextKeysPending[prevKey] = pendingKeys;
|
2007 | pendingKeys = [];
|
2008 | }
|
2009 | } else {
|
2010 | pendingKeys.push(prevKey);
|
2011 | }
|
2012 | }
|
2013 |
|
2014 | var i;
|
2015 | var childMapping = {};
|
2016 |
|
2017 | for (var nextKey in next) {
|
2018 | if (nextKeysPending[nextKey]) {
|
2019 | for (i = 0; i < nextKeysPending[nextKey].length; i++) {
|
2020 | var pendingNextKey = nextKeysPending[nextKey][i];
|
2021 | childMapping[nextKeysPending[nextKey][i]] = getValueForKey(pendingNextKey);
|
2022 | }
|
2023 | }
|
2024 |
|
2025 | childMapping[nextKey] = getValueForKey(nextKey);
|
2026 | }
|
2027 |
|
2028 |
|
2029 | for (i = 0; i < pendingKeys.length; i++) {
|
2030 | childMapping[pendingKeys[i]] = getValueForKey(pendingKeys[i]);
|
2031 | }
|
2032 |
|
2033 | return childMapping;
|
2034 | }
|
2035 |
|
2036 | function getProp(child, prop, props) {
|
2037 | return props[prop] != null ? props[prop] : child.props[prop];
|
2038 | }
|
2039 |
|
2040 | function getInitialChildMapping(props, onExited) {
|
2041 | return getChildMapping(props.children, function (child) {
|
2042 | return Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
2043 | onExited: onExited.bind(null, child),
|
2044 | in: true,
|
2045 | appear: getProp(child, 'appear', props),
|
2046 | enter: getProp(child, 'enter', props),
|
2047 | exit: getProp(child, 'exit', props)
|
2048 | });
|
2049 | });
|
2050 | }
|
2051 | function getNextChildMapping(nextProps, prevChildMapping, onExited) {
|
2052 | var nextChildMapping = getChildMapping(nextProps.children);
|
2053 | var children = mergeChildMappings(prevChildMapping, nextChildMapping);
|
2054 | Object.keys(children).forEach(function (key) {
|
2055 | var child = children[key];
|
2056 | if (!Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(child)) return;
|
2057 | var hasPrev = key in prevChildMapping;
|
2058 | var hasNext = key in nextChildMapping;
|
2059 | var prevChild = prevChildMapping[key];
|
2060 | var isLeaving = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(prevChild) && !prevChild.props.in;
|
2061 |
|
2062 | if (hasNext && (!hasPrev || isLeaving)) {
|
2063 |
|
2064 | children[key] = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
2065 | onExited: onExited.bind(null, child),
|
2066 | in: true,
|
2067 | exit: getProp(child, 'exit', nextProps),
|
2068 | enter: getProp(child, 'enter', nextProps)
|
2069 | });
|
2070 | } else if (!hasNext && hasPrev && !isLeaving) {
|
2071 |
|
2072 |
|
2073 | children[key] = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
2074 | in: false
|
2075 | });
|
2076 | } else if (hasNext && hasPrev && Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["isValidElement"])(prevChild)) {
|
2077 |
|
2078 |
|
2079 |
|
2080 | children[key] = Object(external_root_React_commonjs2_react_commonjs_react_amd_react_["cloneElement"])(child, {
|
2081 | onExited: onExited.bind(null, child),
|
2082 | in: prevChild.props.in,
|
2083 | exit: getProp(child, 'exit', nextProps),
|
2084 | enter: getProp(child, 'enter', nextProps)
|
2085 | });
|
2086 | }
|
2087 | });
|
2088 | return children;
|
2089 | }
|
2090 |
|
2091 |
|
2092 |
|
2093 |
|
2094 |
|
2095 |
|
2096 |
|
2097 |
|
2098 |
|
2099 |
|
2100 | var values = Object.values || function (obj) {
|
2101 | return Object.keys(obj).map(function (k) {
|
2102 | return obj[k];
|
2103 | });
|
2104 | };
|
2105 |
|
2106 | var defaultProps = {
|
2107 | component: 'div',
|
2108 | childFactory: function childFactory(child) {
|
2109 | return child;
|
2110 | }
|
2111 | |
2112 |
|
2113 |
|
2114 |
|
2115 |
|
2116 |
|
2117 |
|
2118 |
|
2119 |
|
2120 |
|
2121 |
|
2122 |
|
2123 |
|
2124 |
|
2125 |
|
2126 | };
|
2127 |
|
2128 | var TransitionGroup_TransitionGroup =
|
2129 |
|
2130 | function (_React$Component) {
|
2131 | _inheritsLoose(TransitionGroup, _React$Component);
|
2132 |
|
2133 | function TransitionGroup(props, context) {
|
2134 | var _this;
|
2135 |
|
2136 | _this = _React$Component.call(this, props, context) || this;
|
2137 |
|
2138 | var handleExited = _this.handleExited.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
2139 |
|
2140 |
|
2141 | _this.state = {
|
2142 | contextValue: {
|
2143 | isMounting: true
|
2144 | },
|
2145 | handleExited: handleExited,
|
2146 | firstRender: true
|
2147 | };
|
2148 | return _this;
|
2149 | }
|
2150 |
|
2151 | var _proto = TransitionGroup.prototype;
|
2152 |
|
2153 | _proto.componentDidMount = function componentDidMount() {
|
2154 | this.mounted = true;
|
2155 | this.setState({
|
2156 | contextValue: {
|
2157 | isMounting: false
|
2158 | }
|
2159 | });
|
2160 | };
|
2161 |
|
2162 | _proto.componentWillUnmount = function componentWillUnmount() {
|
2163 | this.mounted = false;
|
2164 | };
|
2165 |
|
2166 | TransitionGroup.getDerivedStateFromProps = function getDerivedStateFromProps(nextProps, _ref) {
|
2167 | var prevChildMapping = _ref.children,
|
2168 | handleExited = _ref.handleExited,
|
2169 | firstRender = _ref.firstRender;
|
2170 | return {
|
2171 | children: firstRender ? getInitialChildMapping(nextProps, handleExited) : getNextChildMapping(nextProps, prevChildMapping, handleExited),
|
2172 | firstRender: false
|
2173 | };
|
2174 | };
|
2175 |
|
2176 | _proto.handleExited = function handleExited(child, node) {
|
2177 | var currentChildMapping = getChildMapping(this.props.children);
|
2178 | if (child.key in currentChildMapping) return;
|
2179 |
|
2180 | if (child.props.onExited) {
|
2181 | child.props.onExited(node);
|
2182 | }
|
2183 |
|
2184 | if (this.mounted) {
|
2185 | this.setState(function (state) {
|
2186 | var children = _extends({}, state.children);
|
2187 |
|
2188 | delete children[child.key];
|
2189 | return {
|
2190 | children: children
|
2191 | };
|
2192 | });
|
2193 | }
|
2194 | };
|
2195 |
|
2196 | _proto.render = function render() {
|
2197 | var _this$props = this.props,
|
2198 | Component = _this$props.component,
|
2199 | childFactory = _this$props.childFactory,
|
2200 | props = _objectWithoutPropertiesLoose(_this$props, ["component", "childFactory"]);
|
2201 |
|
2202 | var contextValue = this.state.contextValue;
|
2203 | var children = values(this.state.children).map(childFactory);
|
2204 | delete props.appear;
|
2205 | delete props.enter;
|
2206 | delete props.exit;
|
2207 |
|
2208 | if (Component === null) {
|
2209 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(TransitionGroupContext.Provider, {
|
2210 | value: contextValue
|
2211 | }, children);
|
2212 | }
|
2213 |
|
2214 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(TransitionGroupContext.Provider, {
|
2215 | value: contextValue
|
2216 | }, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(Component, props, children));
|
2217 | };
|
2218 |
|
2219 | return TransitionGroup;
|
2220 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
2221 |
|
2222 | TransitionGroup_TransitionGroup.propTypes = false ? undefined : {};
|
2223 | TransitionGroup_TransitionGroup.defaultProps = defaultProps;
|
2224 | var esm_TransitionGroup = (TransitionGroup_TransitionGroup);
|
2225 |
|
2226 |
|
2227 |
|
2228 |
|
2229 |
|
2230 |
|
2231 |
|
2232 |
|
2233 |
|
2234 |
|
2235 |
|
2236 |
|
2237 |
|
2238 |
|
2239 |
|
2240 |
|
2241 |
|
2242 |
|
2243 |
|
2244 | var ReplaceTransition_ReplaceTransition =
|
2245 |
|
2246 | function (_React$Component) {
|
2247 | _inheritsLoose(ReplaceTransition, _React$Component);
|
2248 |
|
2249 | function ReplaceTransition() {
|
2250 | var _this;
|
2251 |
|
2252 | for (var _len = arguments.length, _args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2253 | _args[_key] = arguments[_key];
|
2254 | }
|
2255 |
|
2256 | _this = _React$Component.call.apply(_React$Component, [this].concat(_args)) || this;
|
2257 |
|
2258 | _this.handleEnter = function () {
|
2259 | for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
2260 | args[_key2] = arguments[_key2];
|
2261 | }
|
2262 |
|
2263 | return _this.handleLifecycle('onEnter', 0, args);
|
2264 | };
|
2265 |
|
2266 | _this.handleEntering = function () {
|
2267 | for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
|
2268 | args[_key3] = arguments[_key3];
|
2269 | }
|
2270 |
|
2271 | return _this.handleLifecycle('onEntering', 0, args);
|
2272 | };
|
2273 |
|
2274 | _this.handleEntered = function () {
|
2275 | for (var _len4 = arguments.length, args = new Array(_len4), _key4 = 0; _key4 < _len4; _key4++) {
|
2276 | args[_key4] = arguments[_key4];
|
2277 | }
|
2278 |
|
2279 | return _this.handleLifecycle('onEntered', 0, args);
|
2280 | };
|
2281 |
|
2282 | _this.handleExit = function () {
|
2283 | for (var _len5 = arguments.length, args = new Array(_len5), _key5 = 0; _key5 < _len5; _key5++) {
|
2284 | args[_key5] = arguments[_key5];
|
2285 | }
|
2286 |
|
2287 | return _this.handleLifecycle('onExit', 1, args);
|
2288 | };
|
2289 |
|
2290 | _this.handleExiting = function () {
|
2291 | for (var _len6 = arguments.length, args = new Array(_len6), _key6 = 0; _key6 < _len6; _key6++) {
|
2292 | args[_key6] = arguments[_key6];
|
2293 | }
|
2294 |
|
2295 | return _this.handleLifecycle('onExiting', 1, args);
|
2296 | };
|
2297 |
|
2298 | _this.handleExited = function () {
|
2299 | for (var _len7 = arguments.length, args = new Array(_len7), _key7 = 0; _key7 < _len7; _key7++) {
|
2300 | args[_key7] = arguments[_key7];
|
2301 | }
|
2302 |
|
2303 | return _this.handleLifecycle('onExited', 1, args);
|
2304 | };
|
2305 |
|
2306 | return _this;
|
2307 | }
|
2308 |
|
2309 | var _proto = ReplaceTransition.prototype;
|
2310 |
|
2311 | _proto.handleLifecycle = function handleLifecycle(handler, idx, originalArgs) {
|
2312 | var _child$props;
|
2313 |
|
2314 | var children = this.props.children;
|
2315 | var child = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(children)[idx];
|
2316 | if (child.props[handler]) (_child$props = child.props)[handler].apply(_child$props, originalArgs);
|
2317 | if (this.props[handler]) this.props[handler](Object(external_root_ReactDOM_commonjs2_react_dom_commonjs_react_dom_amd_react_dom_["findDOMNode"])(this));
|
2318 | };
|
2319 |
|
2320 | _proto.render = function render() {
|
2321 | var _this$props = this.props,
|
2322 | children = _this$props.children,
|
2323 | inProp = _this$props.in,
|
2324 | props = _objectWithoutPropertiesLoose(_this$props, ["children", "in"]);
|
2325 |
|
2326 | var _React$Children$toArr = external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Children.toArray(children),
|
2327 | first = _React$Children$toArr[0],
|
2328 | second = _React$Children$toArr[1];
|
2329 |
|
2330 | delete props.onEnter;
|
2331 | delete props.onEntering;
|
2332 | delete props.onEntered;
|
2333 | delete props.onExit;
|
2334 | delete props.onExiting;
|
2335 | delete props.onExited;
|
2336 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(esm_TransitionGroup, props, inProp ? external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(first, {
|
2337 | key: 'first',
|
2338 | onEnter: this.handleEnter,
|
2339 | onEntering: this.handleEntering,
|
2340 | onEntered: this.handleEntered
|
2341 | }) : external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(second, {
|
2342 | key: 'second',
|
2343 | onEnter: this.handleExit,
|
2344 | onEntering: this.handleExiting,
|
2345 | onEntered: this.handleExited
|
2346 | }));
|
2347 | };
|
2348 |
|
2349 | return ReplaceTransition;
|
2350 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
2351 |
|
2352 | ReplaceTransition_ReplaceTransition.propTypes = false ? undefined : {};
|
2353 | var esm_ReplaceTransition = (ReplaceTransition_ReplaceTransition);
|
2354 |
|
2355 |
|
2356 |
|
2357 | var _leaveRenders, _enterRenders;
|
2358 |
|
2359 |
|
2360 |
|
2361 |
|
2362 |
|
2363 |
|
2364 | function areChildrenDifferent(oldChildren, newChildren) {
|
2365 | if (oldChildren === newChildren) return false;
|
2366 |
|
2367 | if (external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(oldChildren) && external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.isValidElement(newChildren) && oldChildren.key != null && oldChildren.key === newChildren.key) {
|
2368 | return false;
|
2369 | }
|
2370 |
|
2371 | return true;
|
2372 | }
|
2373 |
|
2374 |
|
2375 |
|
2376 |
|
2377 |
|
2378 |
|
2379 | var modes = {
|
2380 | out: 'out-in',
|
2381 | in: 'in-out'
|
2382 | };
|
2383 |
|
2384 | var callHook = function callHook(element, name, cb) {
|
2385 | return function () {
|
2386 | var _element$props;
|
2387 |
|
2388 | element.props[name] && (_element$props = element.props)[name].apply(_element$props, arguments);
|
2389 | cb();
|
2390 | };
|
2391 | };
|
2392 |
|
2393 | var leaveRenders = (_leaveRenders = {}, _leaveRenders[modes.out] = function (_ref) {
|
2394 | var current = _ref.current,
|
2395 | changeState = _ref.changeState;
|
2396 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(current, {
|
2397 | in: false,
|
2398 | onExited: callHook(current, 'onExited', function () {
|
2399 | changeState(ENTERING, null);
|
2400 | })
|
2401 | });
|
2402 | }, _leaveRenders[modes.in] = function (_ref2) {
|
2403 | var current = _ref2.current,
|
2404 | changeState = _ref2.changeState,
|
2405 | children = _ref2.children;
|
2406 | return [current, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, {
|
2407 | in: true,
|
2408 | onEntered: callHook(children, 'onEntered', function () {
|
2409 | changeState(ENTERING);
|
2410 | })
|
2411 | })];
|
2412 | }, _leaveRenders);
|
2413 | var enterRenders = (_enterRenders = {}, _enterRenders[modes.out] = function (_ref3) {
|
2414 | var children = _ref3.children,
|
2415 | changeState = _ref3.changeState;
|
2416 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, {
|
2417 | in: true,
|
2418 | onEntered: callHook(children, 'onEntered', function () {
|
2419 | changeState(ENTERED, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, {
|
2420 | in: true
|
2421 | }));
|
2422 | })
|
2423 | });
|
2424 | }, _enterRenders[modes.in] = function (_ref4) {
|
2425 | var current = _ref4.current,
|
2426 | children = _ref4.children,
|
2427 | changeState = _ref4.changeState;
|
2428 | return [external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(current, {
|
2429 | in: false,
|
2430 | onExited: callHook(current, 'onExited', function () {
|
2431 | changeState(ENTERED, external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, {
|
2432 | in: true
|
2433 | }));
|
2434 | })
|
2435 | }), external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(children, {
|
2436 | in: true
|
2437 | })];
|
2438 | }, _enterRenders);
|
2439 |
|
2440 |
|
2441 |
|
2442 |
|
2443 |
|
2444 |
|
2445 |
|
2446 |
|
2447 |
|
2448 |
|
2449 |
|
2450 |
|
2451 |
|
2452 |
|
2453 |
|
2454 |
|
2455 |
|
2456 |
|
2457 |
|
2458 |
|
2459 |
|
2460 |
|
2461 |
|
2462 |
|
2463 |
|
2464 |
|
2465 |
|
2466 | var SwitchTransition_SwitchTransition =
|
2467 |
|
2468 | function (_React$Component) {
|
2469 | _inheritsLoose(SwitchTransition, _React$Component);
|
2470 |
|
2471 | function SwitchTransition() {
|
2472 | var _this;
|
2473 |
|
2474 | for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
2475 | args[_key] = arguments[_key];
|
2476 | }
|
2477 |
|
2478 | _this = _React$Component.call.apply(_React$Component, [this].concat(args)) || this;
|
2479 | _this.state = {
|
2480 | status: ENTERED,
|
2481 | current: null
|
2482 | };
|
2483 | _this.appeared = false;
|
2484 |
|
2485 | _this.changeState = function (status, current) {
|
2486 | if (current === void 0) {
|
2487 | current = _this.state.current;
|
2488 | }
|
2489 |
|
2490 | _this.setState({
|
2491 | status: status,
|
2492 | current: current
|
2493 | });
|
2494 | };
|
2495 |
|
2496 | return _this;
|
2497 | }
|
2498 |
|
2499 | var _proto = SwitchTransition.prototype;
|
2500 |
|
2501 | _proto.componentDidMount = function componentDidMount() {
|
2502 | this.appeared = true;
|
2503 | };
|
2504 |
|
2505 | SwitchTransition.getDerivedStateFromProps = function getDerivedStateFromProps(props, state) {
|
2506 | if (props.children == null) {
|
2507 | return {
|
2508 | current: null
|
2509 | };
|
2510 | }
|
2511 |
|
2512 | if (state.status === ENTERING && props.mode === modes.in) {
|
2513 | return {
|
2514 | status: ENTERING
|
2515 | };
|
2516 | }
|
2517 |
|
2518 | if (state.current && areChildrenDifferent(state.current, props.children)) {
|
2519 | return {
|
2520 | status: EXITING
|
2521 | };
|
2522 | }
|
2523 |
|
2524 | return {
|
2525 | current: external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.cloneElement(props.children, {
|
2526 | in: true
|
2527 | })
|
2528 | };
|
2529 | };
|
2530 |
|
2531 | _proto.render = function render() {
|
2532 | var _this$props = this.props,
|
2533 | children = _this$props.children,
|
2534 | mode = _this$props.mode,
|
2535 | _this$state = this.state,
|
2536 | status = _this$state.status,
|
2537 | current = _this$state.current;
|
2538 | var data = {
|
2539 | children: children,
|
2540 | current: current,
|
2541 | changeState: this.changeState,
|
2542 | status: status
|
2543 | };
|
2544 | var component;
|
2545 |
|
2546 | switch (status) {
|
2547 | case ENTERING:
|
2548 | component = enterRenders[mode](data);
|
2549 | break;
|
2550 |
|
2551 | case EXITING:
|
2552 | component = leaveRenders[mode](data);
|
2553 | break;
|
2554 |
|
2555 | case ENTERED:
|
2556 | component = current;
|
2557 | }
|
2558 |
|
2559 | return external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.createElement(TransitionGroupContext.Provider, {
|
2560 | value: {
|
2561 | isMounting: !this.appeared
|
2562 | }
|
2563 | }, component);
|
2564 | };
|
2565 |
|
2566 | return SwitchTransition;
|
2567 | }(external_root_React_commonjs2_react_commonjs_react_amd_react_default.a.Component);
|
2568 |
|
2569 | SwitchTransition_SwitchTransition.propTypes = false ? undefined : {};
|
2570 | SwitchTransition_SwitchTransition.defaultProps = {
|
2571 | mode: modes.out
|
2572 | };
|
2573 | var esm_SwitchTransition = (SwitchTransition_SwitchTransition);
|
2574 |
|
2575 | __webpack_require__.d(__webpack_exports__, "CSSTransition", function() { return esm_CSSTransition; });
|
2576 | __webpack_require__.d(__webpack_exports__, "ReplaceTransition", function() { return esm_ReplaceTransition; });
|
2577 | __webpack_require__.d(__webpack_exports__, "SwitchTransition", function() { return esm_SwitchTransition; });
|
2578 | __webpack_require__.d(__webpack_exports__, "TransitionGroup", function() { return esm_TransitionGroup; });
|
2579 | __webpack_require__.d(__webpack_exports__, "Transition", function() { return esm_Transition; });
|
2580 | __webpack_require__.d(__webpack_exports__, "config", function() { return config; });
|
2581 |
|
2582 |
|
2583 |
|
2584 |
|
2585 |
|
2586 |
|
2587 |
|
2588 | }),
|
2589 |
|
2590 | (function(module, exports, __webpack_require__) {
|
2591 |
|
2592 | "use strict";
|
2593 |
|
2594 | Object.defineProperty(exports, "__esModule", { value: true });
|
2595 |
|
2596 |
|
2597 |
|
2598 |
|
2599 |
|
2600 |
|
2601 |
|
2602 |
|
2603 | function getScroll(target, top) {
|
2604 | if (typeof window === 'undefined') {
|
2605 | return 0;
|
2606 | }
|
2607 | const prop = top ? 'pageYOffset' : 'pageXOffset';
|
2608 | const method = top ? 'scrollTop' : 'scrollLeft';
|
2609 | const isWindow = target === window;
|
2610 | let ret = isWindow ? target[prop] : target[method];
|
2611 | if (isWindow && typeof ret !== 'number') {
|
2612 | ret = document.documentElement[method];
|
2613 | }
|
2614 | return ret;
|
2615 | }
|
2616 | exports.default = getScroll;
|
2617 |
|
2618 |
|
2619 | }),
|
2620 |
|
2621 | (function(module, exports, __webpack_require__) {
|
2622 |
|
2623 | "use strict";
|
2624 |
|
2625 | Object.defineProperty(exports, "__esModule", { value: true });
|
2626 | const tslib_1 = __webpack_require__(1);
|
2627 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
2628 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
2629 | class Abstract extends react_1.default.Component {
|
2630 | constructor(props) {
|
2631 | super(props);
|
2632 | this.state = {};
|
2633 | this.onChange = (e) => {
|
2634 | e.persist();
|
2635 | const { onChange } = this.props;
|
2636 | this.setState({ checked: e.target.checked }, onChange && onChange.bind(this, e));
|
2637 | };
|
2638 | this.state = {
|
2639 | checked: props.checked || false,
|
2640 | };
|
2641 | }
|
2642 | componentWillReceiveProps(nextPrrops) {
|
2643 | if (nextPrrops.checked !== this.props.checked) {
|
2644 | this.setState({ checked: nextPrrops.checked });
|
2645 | }
|
2646 | }
|
2647 | render() {
|
2648 | const { prefixCls, className, style, children, size, ...other } = this.props;
|
2649 | const cls = classnames_1.default(prefixCls, className, {
|
2650 | disabled: other.disabled, [`${prefixCls}-${size}`]: size,
|
2651 | });
|
2652 | other.checked = this.state.checked;
|
2653 | other.onChange = this.onChange;
|
2654 | const label = children || other.value;
|
2655 | return (react_1.default.createElement("label", Object.assign({}, { className: cls, style }),
|
2656 | react_1.default.createElement("input", Object.assign({}, other)),
|
2657 | label && react_1.default.createElement("div", { className: `${prefixCls}-text` }, label)));
|
2658 | }
|
2659 | }
|
2660 | Abstract.defaulProps = {
|
2661 | prefixCls: 'w-radio',
|
2662 | type: 'radio',
|
2663 | disabled: false,
|
2664 | checked: false,
|
2665 | value: '',
|
2666 | };
|
2667 | exports.default = Abstract;
|
2668 |
|
2669 |
|
2670 | }),
|
2671 |
|
2672 | (function(module, exports, __webpack_require__) {
|
2673 |
|
2674 | "use strict";
|
2675 |
|
2676 | Object.defineProperty(exports, "__esModule", { value: true });
|
2677 | const tslib_1 = __webpack_require__(1);
|
2678 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
2679 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
2680 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
2681 | __webpack_require__(118);
|
2682 | const disabledProps = {
|
2683 | href: undefined,
|
2684 | onClick: undefined,
|
2685 | onMouseDown: undefined,
|
2686 | onMouseEnter: undefined,
|
2687 | onMouseLeave: undefined,
|
2688 | tabIndex: -1,
|
2689 | };
|
2690 | class MenuItem extends react_1.default.Component {
|
2691 | render() {
|
2692 | const { prefixCls, className, tagName: TagName, children, disabled, multiline, icon, text, active, addonAfter, isSubMenuItem, ...htmlProps } = this.props;
|
2693 | const anchorCls = classnames_1.default(prefixCls, className, { active, 'w-disabled': disabled });
|
2694 | const tagComp = (react_1.default.createElement(TagName, Object.assign({}, htmlProps, (disabled ? disabledProps : {}), { className: anchorCls }),
|
2695 | react_1.default.createElement(icon_1.default, { className: `${prefixCls}-icon`, type: icon }),
|
2696 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-text`, { [`${prefixCls}-multiline`]: !multiline }) }, text),
|
2697 | addonAfter));
|
2698 | if (isSubMenuItem) {
|
2699 | return tagComp;
|
2700 | }
|
2701 | return react_1.default.createElement("li", null,
|
2702 | " ",
|
2703 | tagComp,
|
2704 | " ");
|
2705 | }
|
2706 | }
|
2707 | MenuItem.displayName = 'uiw.MenuItem';
|
2708 | MenuItem.defaultProps = {
|
2709 | prefixCls: 'w-menu-item',
|
2710 | tagName: 'a',
|
2711 | multiline: false,
|
2712 | disabled: false,
|
2713 | active: false,
|
2714 | };
|
2715 | exports.default = MenuItem;
|
2716 |
|
2717 |
|
2718 | }),
|
2719 |
|
2720 | (function(module, exports, __webpack_require__) {
|
2721 |
|
2722 | "use strict";
|
2723 |
|
2724 | Object.defineProperty(exports, "__esModule", { value: true });
|
2725 | const tslib_1 = __webpack_require__(1);
|
2726 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
2727 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
2728 | const modal_1 = tslib_1.__importDefault(__webpack_require__(17));
|
2729 | __webpack_require__(53);
|
2730 | class Alert extends react_1.default.Component {
|
2731 | render() {
|
2732 | const { prefixCls, className, ...other } = this.props;
|
2733 | return (react_1.default.createElement(modal_1.default, Object.assign({}, other, { className: classnames_1.default(prefixCls, className) }), this.props.children));
|
2734 | }
|
2735 | }
|
2736 | Alert.defaultProps = {
|
2737 | prefixCls: 'w-alert',
|
2738 | width: 400,
|
2739 | };
|
2740 | exports.default = Alert;
|
2741 |
|
2742 |
|
2743 | }),
|
2744 |
|
2745 | (function(module, exports, __webpack_require__) {
|
2746 |
|
2747 | "use strict";
|
2748 |
|
2749 | Object.defineProperty(exports, "__esModule", { value: true });
|
2750 | const tslib_1 = __webpack_require__(1);
|
2751 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
2752 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
2753 | const overlay_1 = tslib_1.__importDefault(__webpack_require__(10));
|
2754 | const button_1 = tslib_1.__importDefault(__webpack_require__(6));
|
2755 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
2756 | __webpack_require__(52);
|
2757 | function noop() { }
|
2758 | class Modal extends react_1.default.PureComponent {
|
2759 | constructor() {
|
2760 | super(...arguments);
|
2761 | this.state = {
|
2762 | loading: false,
|
2763 | };
|
2764 | this.handleConfirm = async (e) => {
|
2765 | const { onConfirm } = this.props;
|
2766 | this.setState({ loading: true });
|
2767 | try {
|
2768 | onConfirm && (await onConfirm(e));
|
2769 | this.overlay.onClosed(e);
|
2770 |
|
2771 | }
|
2772 | catch (e) { }
|
2773 | this.setState({ loading: false });
|
2774 | };
|
2775 | this.handleCancel = async (e) => {
|
2776 | const { onCancel } = this.props;
|
2777 | this.setState({ loading: true });
|
2778 | try {
|
2779 | onCancel && (await onCancel(e));
|
2780 | this.overlay.onClosed(e);
|
2781 |
|
2782 | }
|
2783 | catch (e) { }
|
2784 | this.setState({ loading: false });
|
2785 | };
|
2786 | this.onClose = (e) => this.overlay.onClosed(e);
|
2787 | }
|
2788 | render() {
|
2789 | const { prefixCls, className, useButton, autoFocus, title, cancelText, content, confirmText, type, icon, maxWidth, width, isCloseButtonShown, ...other } = this.props;
|
2790 | const cls = classnames_1.default(prefixCls, className, { [`${type}`]: type });
|
2791 | return (react_1.default.createElement(overlay_1.default, Object.assign({}, other, { onClose: this.onClose, ref: (node) => this.overlay = node, className: cls }),
|
2792 | react_1.default.createElement("div", { className: `${prefixCls}-container` },
|
2793 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-inner`, {
|
2794 | [`${prefixCls}-shown-title`]: title,
|
2795 | [`${prefixCls}-shown-icon`]: icon,
|
2796 | }), style: { maxWidth, width } },
|
2797 | (title || icon) && (react_1.default.createElement("div", { className: `${prefixCls}-header` },
|
2798 | icon && react_1.default.createElement(icon_1.default, { type: icon }),
|
2799 | title && react_1.default.createElement("h4", null, title),
|
2800 | isCloseButtonShown && react_1.default.createElement(button_1.default, { basic: true, onClick: this.handleCancel, icon: "close", type: "light" }))),
|
2801 | react_1.default.createElement("div", { className: `${prefixCls}-body` }, this.props.children || content),
|
2802 | useButton && (react_1.default.createElement("div", { className: `${prefixCls}-footer` },
|
2803 | react_1.default.createElement(button_1.default, { autoFocus: autoFocus, type: type, loading: this.state.loading, disabled: this.state.loading, onClick: this.handleConfirm }, confirmText),
|
2804 | cancelText && react_1.default.createElement(button_1.default, { onClick: this.handleCancel }, cancelText)))))));
|
2805 | }
|
2806 | }
|
2807 | Modal.defaultProps = {
|
2808 | prefixCls: 'w-modal',
|
2809 | confirmText: '确认',
|
2810 | useButton: true,
|
2811 | usePortal: true,
|
2812 | autoFocus: false,
|
2813 | isCloseButtonShown: true,
|
2814 | isOpen: false,
|
2815 | maxWidth: 500,
|
2816 | type: 'light',
|
2817 | onCancel: noop,
|
2818 | onConfirm: noop,
|
2819 | };
|
2820 | exports.default = Modal;
|
2821 |
|
2822 |
|
2823 | }),
|
2824 |
|
2825 | (function(module, exports, __webpack_require__) {
|
2826 |
|
2827 | "use strict";
|
2828 |
|
2829 | Object.defineProperty(exports, "__esModule", { value: true });
|
2830 | const tslib_1 = __webpack_require__(1);
|
2831 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
2832 | const react_dom_1 = tslib_1.__importDefault(__webpack_require__(4));
|
2833 |
|
2834 | const cannotCreatePortal = !(typeof react_dom_1.default.createPortal === 'function');
|
2835 | class Portal extends react_1.default.Component {
|
2836 | constructor() {
|
2837 | super(...arguments);
|
2838 | this.state = {
|
2839 | hasMounted: false,
|
2840 | };
|
2841 | }
|
2842 | componentDidMount() {
|
2843 | if (!this.props.container) {
|
2844 | return;
|
2845 | }
|
2846 | this.portalElement = this.createContainerElement();
|
2847 | this.props.container.appendChild(this.portalElement);
|
2848 | this.setState({ hasMounted: true }, this.props.onChildrenMount);
|
2849 | if (cannotCreatePortal) {
|
2850 | this.unstableRenderNoPortal();
|
2851 | }
|
2852 | }
|
2853 | componentDidUpdate() {
|
2854 | if (cannotCreatePortal) {
|
2855 | this.unstableRenderNoPortal();
|
2856 | }
|
2857 | }
|
2858 | componentWillUnmount() {
|
2859 | if (this.portalElement != null) {
|
2860 | if (cannotCreatePortal) {
|
2861 | react_dom_1.default.unmountComponentAtNode(this.portalElement);
|
2862 | }
|
2863 | this.portalElement.remove();
|
2864 | }
|
2865 | }
|
2866 | render() {
|
2867 |
|
2868 |
|
2869 |
|
2870 | if (cannotCreatePortal || typeof document === 'undefined' || !this.state.hasMounted) {
|
2871 | return null;
|
2872 | }
|
2873 | else {
|
2874 | return react_dom_1.default.createPortal(this.props.children, this.portalElement);
|
2875 | }
|
2876 | }
|
2877 | createContainerElement() {
|
2878 | const container = document.createElement("div");
|
2879 | return container;
|
2880 | }
|
2881 | unstableRenderNoPortal() {
|
2882 | react_dom_1.default.unstable_renderSubtreeIntoContainer( this, react_1.default.createElement("div", null, this.props.children), this.portalElement);
|
2883 | }
|
2884 | }
|
2885 | Portal.defaultProps = {
|
2886 | container: typeof document !== "undefined" ? document.body : undefined,
|
2887 | };
|
2888 | exports.default = Portal;
|
2889 |
|
2890 |
|
2891 | }),
|
2892 |
|
2893 | (function(module, exports, __webpack_require__) {
|
2894 |
|
2895 | "use strict";
|
2896 |
|
2897 | Object.defineProperty(exports, "__esModule", { value: true });
|
2898 | const tslib_1 = __webpack_require__(1);
|
2899 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
2900 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
2901 | __webpack_require__(73);
|
2902 | class CheckboxGroup extends react_1.default.Component {
|
2903 | constructor() {
|
2904 | super(...arguments);
|
2905 | this.values = [];
|
2906 | }
|
2907 | render() {
|
2908 | const { prefixCls, className, name, value, onChange, ...other } = this.props;
|
2909 | this.values = [];
|
2910 | return (react_1.default.createElement("div", Object.assign({}, other, { className: classnames_1.default(prefixCls, className) }), react_1.default.Children.map(this.props.children, (element) => {
|
2911 | if (value && value.includes(element.props.value)) {
|
2912 | this.values.push(element.props.value);
|
2913 | }
|
2914 | return react_1.default.cloneElement(element, Object.assign({}, element.props, {
|
2915 | name,
|
2916 | checked: value.includes(element.props.value),
|
2917 | onChange: (e) => {
|
2918 | const checked = e.target.checked;
|
2919 | const include = this.values.includes(element.props.value);
|
2920 | if (!include && checked) {
|
2921 | this.values.push(element.props.value);
|
2922 | }
|
2923 | else if (include && !checked) {
|
2924 | this.values = this.values.filter((val) => val !== element.props.value);
|
2925 | }
|
2926 | onChange && onChange(e, this.values);
|
2927 | },
|
2928 | }));
|
2929 | })));
|
2930 | }
|
2931 | }
|
2932 | CheckboxGroup.defaultProps = {
|
2933 | prefixCls: 'w-checkbox-group',
|
2934 | };
|
2935 | exports.default = CheckboxGroup;
|
2936 |
|
2937 |
|
2938 | }),
|
2939 |
|
2940 | (function(module, exports, __webpack_require__) {
|
2941 |
|
2942 | "use strict";
|
2943 |
|
2944 | Object.defineProperty(exports, "__esModule", { value: true });
|
2945 | const tslib_1 = __webpack_require__(1);
|
2946 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
2947 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
2948 | const utils_1 = __webpack_require__(79);
|
2949 | __webpack_require__(81);
|
2950 | function initSameDate(date) {
|
2951 | return new Date(date.getFullYear(), date.getMonth(), date.getDate());
|
2952 | }
|
2953 | function setTimeDate(selDate, curDate) {
|
2954 | if (!selDate) {
|
2955 | return curDate;
|
2956 | }
|
2957 | return new Date(curDate.getFullYear(), curDate.getMonth(), curDate.getDate(), selDate.getHours(), selDate.getMinutes(), selDate.getSeconds());
|
2958 | }
|
2959 | class PickerDay extends react_1.default.Component {
|
2960 | constructor(props) {
|
2961 | super(props);
|
2962 | this.state = {
|
2963 | selected: props.date,
|
2964 | panelDate: props.panelDate,
|
2965 | };
|
2966 | }
|
2967 | componentWillReceiveProps(nextProps) {
|
2968 | if (nextProps.panelDate !== this.props.panelDate) {
|
2969 | this.setState({ panelDate: nextProps.panelDate });
|
2970 | }
|
2971 | if (nextProps.date !== this.props.date) {
|
2972 | this.setState({ selected: nextProps.date });
|
2973 | }
|
2974 | }
|
2975 | handleClick(selectedDate, dateSource) {
|
2976 | const { date } = this.props;
|
2977 | if (date && utils_1.isSameDate(initSameDate(selectedDate), initSameDate(date))) {
|
2978 | this.setState({ selected: selectedDate });
|
2979 | selectedDate = undefined;
|
2980 | }
|
2981 | this.setState({ panelDate: selectedDate });
|
2982 | this.props.onSelectDay(selectedDate, dateSource);
|
2983 | }
|
2984 | renderDay(num, row) {
|
2985 | const { date: selectedDate, disabledDate, renderDay } = this.props;
|
2986 | const today = initSameDate(this.props.today);
|
2987 | const date = initSameDate(this.state.panelDate);
|
2988 | const year = date.getFullYear();
|
2989 | const month = date.getMonth();
|
2990 | const firstDayOfWeek = utils_1.getFirstDayOfWeek(year, month + 1);
|
2991 | let day = row * 7 + num - firstDayOfWeek + 1;
|
2992 | const cls = {
|
2993 | end: num === 0 || num === 6, prev: false, today: false, selected: false, next: false, disabled: false
|
2994 | };
|
2995 |
|
2996 | const preDate = new Date(new Date(date).setMonth(month - 1));
|
2997 |
|
2998 | const nextDate = new Date(new Date(date).setMonth(month + 1));
|
2999 | const prevDays = utils_1.solarMonthDays(preDate.getFullYear(), preDate.getMonth() + 1);
|
3000 | const days = utils_1.solarMonthDays(year, month + 1);
|
3001 | let cellDate = null;
|
3002 | if (day <= 0) {
|
3003 |
|
3004 | day = prevDays + day;
|
3005 | cls.prev = true;
|
3006 | cellDate = new Date(preDate).setDate(day);
|
3007 | }
|
3008 | else if (day > days) {
|
3009 |
|
3010 | day -= days;
|
3011 | cls.next = true;
|
3012 | cellDate = new Date(nextDate).setDate(day);
|
3013 | }
|
3014 | else {
|
3015 | cellDate = new Date(this.state.panelDate).setDate(day);
|
3016 | }
|
3017 | cellDate = setTimeDate(selectedDate, new Date(cellDate));
|
3018 | if (utils_1.isSameDate(initSameDate(new Date(cellDate)), today)) {
|
3019 | cls.today = true;
|
3020 | }
|
3021 | if (selectedDate && utils_1.isSameDate(initSameDate(cellDate), initSameDate(selectedDate))) {
|
3022 | cls.selected = true;
|
3023 | }
|
3024 | const props = {
|
3025 | key: num,
|
3026 | onClick: this.handleClick.bind(this, cellDate, { day, month, year }),
|
3027 | };
|
3028 | if (disabledDate && disabledDate(cellDate, { ...props, ...cls })) {
|
3029 | cls.disabled = true;
|
3030 | delete props.onClick;
|
3031 | }
|
3032 | return (react_1.default.createElement("div", Object.assign({}, props, { className: classnames_1.default(cls) }), renderDay ? renderDay(day, { ...props, ...cls, date: cellDate }) : react_1.default.createElement("div", null, day)));
|
3033 | }
|
3034 | renderWeek(num) {
|
3035 | const { prefixCls } = this.props;
|
3036 | return (react_1.default.createElement("div", { key: num, className: `${prefixCls}-week` }, [...Array(7)].map((_, idx) => this.renderDay(idx, num))));
|
3037 | }
|
3038 | render() {
|
3039 | const { prefixCls, className, weekday, weekTitle, date, today, panelDate, disabledDate, renderDay, onSelectDay, ...other } = this.props;
|
3040 | return (react_1.default.createElement("div", Object.assign({}, other, { className: classnames_1.default(`${prefixCls}-body`, className) }),
|
3041 | react_1.default.createElement("div", { className: `${prefixCls}-weekday` }, weekday && weekday.map((week, idx) => {
|
3042 | return (react_1.default.createElement("div", { key: idx, className: classnames_1.default({ end: idx === 0 || idx === 6 }), title: weekTitle && weekTitle[idx] }, week));
|
3043 | })),
|
3044 | react_1.default.createElement("div", { className: `${prefixCls}-day-body` }, [...Array(6)].map((_, idx) => this.renderWeek(idx)))));
|
3045 | }
|
3046 | }
|
3047 | PickerDay.defaultProps = {
|
3048 | prefixCls: 'w-datepicker',
|
3049 | weekday: ['日', '一', '二', '三', '四', '五', '六'],
|
3050 | weekTitle: ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
|
3051 | onSelectDay() { }
|
3052 | };
|
3053 | exports.default = PickerDay;
|
3054 |
|
3055 |
|
3056 | }),
|
3057 |
|
3058 | (function(module, exports, __webpack_require__) {
|
3059 |
|
3060 | "use strict";
|
3061 |
|
3062 | Object.defineProperty(exports, "__esModule", { value: true });
|
3063 | const tslib_1 = __webpack_require__(1);
|
3064 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3065 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3066 | __webpack_require__(83);
|
3067 | class Col extends react_1.default.Component {
|
3068 | render() {
|
3069 | const { prefixCls, className, fixed, span, grow, align, ...props } = this.props;
|
3070 | const cls = classnames_1.default(prefixCls, className, {
|
3071 | [`${prefixCls}-${span}`]: span,
|
3072 | [`${prefixCls}-fixed`]: fixed,
|
3073 | [`${prefixCls}-align-${align}`]: align,
|
3074 | [`${prefixCls}-grow-${grow}`]: grow,
|
3075 | });
|
3076 | return (react_1.default.createElement("div", Object.assign({ className: cls }, props), this.props.children));
|
3077 | }
|
3078 | }
|
3079 | Col.defaultProps = {
|
3080 | prefixCls: 'w-col',
|
3081 | };
|
3082 | exports.default = Col;
|
3083 |
|
3084 |
|
3085 | }),
|
3086 |
|
3087 | (function(module, exports, __webpack_require__) {
|
3088 |
|
3089 | "use strict";
|
3090 |
|
3091 | Object.defineProperty(exports, "__esModule", { value: true });
|
3092 | const tslib_1 = __webpack_require__(1);
|
3093 | const isBrowser_1 = tslib_1.__importDefault(__webpack_require__(99));
|
3094 | const isIE11 = isBrowser_1.default && !!(window.MSInputMethodContext && document.documentMode);
|
3095 | const isIE10 = isBrowser_1.default && /MSIE 10/.test(navigator.userAgent);
|
3096 |
|
3097 |
|
3098 |
|
3099 |
|
3100 |
|
3101 |
|
3102 |
|
3103 | function isIE(version) {
|
3104 | if (version === 11) {
|
3105 | return isIE11;
|
3106 | }
|
3107 | if (version === 10) {
|
3108 | return isIE10;
|
3109 | }
|
3110 | return isIE11 || isIE10;
|
3111 | }
|
3112 | exports.default = isIE;
|
3113 |
|
3114 |
|
3115 | }),
|
3116 |
|
3117 | (function(module, exports, __webpack_require__) {
|
3118 |
|
3119 | "use strict";
|
3120 |
|
3121 | Object.defineProperty(exports, "__esModule", { value: true });
|
3122 | const tslib_1 = __webpack_require__(1);
|
3123 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3124 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3125 | const PickerDay_1 = tslib_1.__importDefault(__webpack_require__(20));
|
3126 | const PickerMonth_1 = tslib_1.__importDefault(__webpack_require__(24));
|
3127 | const PickerYear_1 = tslib_1.__importDefault(__webpack_require__(26));
|
3128 | const PickerTime_1 = tslib_1.__importDefault(__webpack_require__(27));
|
3129 | const PickerCaption_1 = tslib_1.__importDefault(__webpack_require__(29));
|
3130 | const __1 = __webpack_require__(5);
|
3131 | __webpack_require__(106);
|
3132 | class DatePicker extends react_1.default.Component {
|
3133 | constructor(props) {
|
3134 | super(props);
|
3135 | this.onChange = (date, dateSource) => {
|
3136 | this.props.onChange(date, dateSource);
|
3137 | };
|
3138 | this.onSelected = (type) => {
|
3139 | const { today } = this.props;
|
3140 | const { date, panelDate } = this.state;
|
3141 | if (/^(year|month|time)$/.test(type)) {
|
3142 | if (this.state.type === 'time') {
|
3143 | type = 'day';
|
3144 | }
|
3145 | this.setState({ type });
|
3146 | }
|
3147 | else {
|
3148 | let currentDate = (date || panelDate);
|
3149 | let month = currentDate.getMonth();
|
3150 | const data = {};
|
3151 | if (type === 'prev') {
|
3152 | month -= 1;
|
3153 | }
|
3154 | if (type === 'next') {
|
3155 | month += 1;
|
3156 | }
|
3157 | currentDate.setMonth(month);
|
3158 | if (type === 'today') {
|
3159 | currentDate = new Date(today);
|
3160 | }
|
3161 | data.panelDate = currentDate;
|
3162 | if (date) {
|
3163 | data.date = currentDate;
|
3164 | }
|
3165 | this.setState({ ...data }, () => {
|
3166 | this.onChange(currentDate);
|
3167 | });
|
3168 | }
|
3169 | };
|
3170 | this.state = {
|
3171 | panelDate: props.panelDate || new Date(),
|
3172 | date: props.date,
|
3173 | type: 'day',
|
3174 | };
|
3175 | }
|
3176 | componentWillReceiveProps(nextProps) {
|
3177 | if (nextProps.date !== this.props.date) {
|
3178 | this.setState({ date: nextProps.date, panelDate: nextProps.date ? new Date(nextProps.date) : new Date() });
|
3179 | }
|
3180 | if (nextProps.panelDate !== this.props.panelDate) {
|
3181 | this.setState({ panelDate: nextProps.panelDate });
|
3182 | }
|
3183 | }
|
3184 | onSelectedTime(type, num) {
|
3185 | const { date, panelDate } = this.state;
|
3186 | const currentDate = (date || panelDate);
|
3187 | currentDate[(`set${type}`)](num);
|
3188 | this.setState({
|
3189 | date: currentDate,
|
3190 | }, () => {
|
3191 | this.onChange(currentDate);
|
3192 | });
|
3193 | }
|
3194 | onSelectedDate(type, month, paging) {
|
3195 | const { panelDate, date } = this.state;
|
3196 | panelDate[type](month);
|
3197 | if (date) {
|
3198 | date[type](month);
|
3199 | }
|
3200 | const props = { type: 'day', panelDate, date };
|
3201 | if (paging) {
|
3202 | delete props.type;
|
3203 | }
|
3204 | this.setState({ ...props }, () => {
|
3205 | if (date) {
|
3206 | this.onChange(date);
|
3207 | }
|
3208 | });
|
3209 | }
|
3210 | render() {
|
3211 | const { prefixCls, className, weekday, weekTitle, monthLabel, date, today, todayButton, panelDate, disabledDate, renderDay, onChange, showTime, ...other } = this.props;
|
3212 | const { type } = this.state;
|
3213 | const format = showTime && showTime.format ? showTime.format : 'HH:mm:ss';
|
3214 | return (react_1.default.createElement("div", Object.assign({ className: classnames_1.default(prefixCls, className) }, other),
|
3215 | react_1.default.createElement(PickerCaption_1.default, { todayButton: todayButton, panelDate: this.state.panelDate, monthLabel: monthLabel, onSelected: this.onSelected }),
|
3216 | type === 'day' && (react_1.default.createElement(PickerDay_1.default, { prefixCls: prefixCls, disabledDate: disabledDate, onSelectDay: this.onChange, renderDay: renderDay, date: this.state.date, today: today || new Date(), panelDate: this.state.panelDate, weekday: weekday, weekTitle: weekTitle })),
|
3217 | type === 'month' && (react_1.default.createElement(PickerMonth_1.default, { panelDate: this.state.panelDate, monthLabel: monthLabel, prefixCls: prefixCls, onSelected: this.onSelectedDate.bind(this, 'setMonth') })),
|
3218 | type === 'year' && (react_1.default.createElement(PickerYear_1.default, { prefixCls: prefixCls, panelDate: this.state.panelDate, onSelected: this.onSelectedDate.bind(this, 'setFullYear') })),
|
3219 | type === 'time' && (react_1.default.createElement(PickerTime_1.default, Object.assign({ date: date || this.state.panelDate }, showTime, { className: `${prefixCls}-timepicker`, onSelected: this.onSelectedTime.bind(this) }))),
|
3220 | showTime && react_1.default.createElement("div", { className: `${prefixCls}-time-btn`, onClick: this.onSelected.bind(this, 'time') }, __1.formatter(format, (date || panelDate)))));
|
3221 | }
|
3222 | }
|
3223 | DatePicker.defaultProps = {
|
3224 | prefixCls: 'w-datepicker',
|
3225 | onChange() { },
|
3226 | monthLabel: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
3227 | today: new Date(),
|
3228 | };
|
3229 | exports.default = DatePicker;
|
3230 |
|
3231 |
|
3232 | }),
|
3233 |
|
3234 | (function(module, exports, __webpack_require__) {
|
3235 |
|
3236 | "use strict";
|
3237 |
|
3238 | Object.defineProperty(exports, "__esModule", { value: true });
|
3239 | const tslib_1 = __webpack_require__(1);
|
3240 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3241 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3242 | __webpack_require__(25);
|
3243 | class PickerMonth extends react_1.default.Component {
|
3244 | render() {
|
3245 | const { prefixCls, className, panelDate, monthLabel, onSelected, ...other } = this.props;
|
3246 | return (react_1.default.createElement("div", Object.assign({ className: classnames_1.default(`${prefixCls}-month`, className) }, other), [...Array(12)].map((_, idx) => {
|
3247 | const selectedMonth = panelDate.getMonth();
|
3248 | return (react_1.default.createElement("div", { key: idx, className: classnames_1.default({ selected: selectedMonth === idx }) },
|
3249 | react_1.default.createElement("span", { onClick: onSelected.bind(this, idx, false) }, monthLabel && monthLabel[idx] || idx)));
|
3250 | })));
|
3251 | }
|
3252 | }
|
3253 | PickerMonth.defaultProps = {
|
3254 | prefixCls: 'w-datepicker',
|
3255 | panelDate: new Date(),
|
3256 | onSelected() { },
|
3257 | };
|
3258 | exports.default = PickerMonth;
|
3259 |
|
3260 |
|
3261 | }),
|
3262 |
|
3263 | (function(module, exports, __webpack_require__) {
|
3264 |
|
3265 |
|
3266 |
|
3267 | }),
|
3268 |
|
3269 | (function(module, exports, __webpack_require__) {
|
3270 |
|
3271 | "use strict";
|
3272 |
|
3273 | Object.defineProperty(exports, "__esModule", { value: true });
|
3274 | const tslib_1 = __webpack_require__(1);
|
3275 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3276 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3277 | __webpack_require__(25);
|
3278 | class PickerYear extends react_1.default.Component {
|
3279 | constructor(props) {
|
3280 | super(props);
|
3281 | this.state = {
|
3282 | activeYear: props.panelDate,
|
3283 | };
|
3284 | }
|
3285 | onSelected(year, idx) {
|
3286 | const { onSelected, panelNum } = this.props;
|
3287 | const { activeYear } = this.state;
|
3288 | if (idx === 0 || idx === panelNum.length - 1) {
|
3289 | activeYear.setFullYear(year);
|
3290 | this.setState({ activeYear });
|
3291 | onSelected(year, true);
|
3292 | }
|
3293 | else {
|
3294 | onSelected(year);
|
3295 | }
|
3296 | }
|
3297 | render() {
|
3298 | const { prefixCls, className, panelDate, onSelected, panelNum, ...other } = this.props;
|
3299 | return (react_1.default.createElement("div", Object.assign({ className: classnames_1.default(`${prefixCls}-year`, className) }, other), panelNum && panelNum.map((_, idx) => {
|
3300 | const selectedYear = this.state.activeYear.getFullYear();
|
3301 | const year = selectedYear + panelNum[idx];
|
3302 | return (react_1.default.createElement("div", { key: idx, className: classnames_1.default({
|
3303 | selected: selectedYear === year,
|
3304 | paging: idx === 0 || idx === panelNum.length - 1,
|
3305 | }) },
|
3306 | react_1.default.createElement("span", { onClick: this.onSelected.bind(this, year, idx) }, year)));
|
3307 | })));
|
3308 | }
|
3309 | }
|
3310 | PickerYear.defaultProps = {
|
3311 | prefixCls: 'w-datepicker',
|
3312 | panelNum: [-7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
3313 | onSelected() { },
|
3314 | };
|
3315 | exports.default = PickerYear;
|
3316 |
|
3317 |
|
3318 | }),
|
3319 |
|
3320 | (function(module, exports, __webpack_require__) {
|
3321 |
|
3322 | "use strict";
|
3323 |
|
3324 | Object.defineProperty(exports, "__esModule", { value: true });
|
3325 | const tslib_1 = __webpack_require__(1);
|
3326 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3327 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3328 | const TimePanel_1 = tslib_1.__importDefault(__webpack_require__(104));
|
3329 | __webpack_require__(28);
|
3330 | class TimePickerPanel extends react_1.default.Component {
|
3331 | render() {
|
3332 | const { prefixCls, className, precision, ...other } = this.props;
|
3333 | return (react_1.default.createElement("div", { className: classnames_1.default(prefixCls, className) },
|
3334 | /^(second|minute|hour)$/.test(precision) && react_1.default.createElement(TimePanel_1.default, Object.assign({ type: "Hours", count: 24 }, other)),
|
3335 | /^(second|minute)$/.test(precision) && react_1.default.createElement(TimePanel_1.default, Object.assign({ type: "Minutes", count: 60 }, other)),
|
3336 | /^(second)$/.test(precision) && react_1.default.createElement(TimePanel_1.default, Object.assign({ type: "Seconds", count: 60 }, other))));
|
3337 | }
|
3338 | }
|
3339 | TimePickerPanel.defaultProps = {
|
3340 | prefixCls: 'w-timepicker',
|
3341 | hideDisabled: false,
|
3342 | precision: 'second',
|
3343 | };
|
3344 | exports.default = TimePickerPanel;
|
3345 |
|
3346 |
|
3347 | }),
|
3348 |
|
3349 | (function(module, exports, __webpack_require__) {
|
3350 |
|
3351 |
|
3352 |
|
3353 | }),
|
3354 |
|
3355 | (function(module, exports, __webpack_require__) {
|
3356 |
|
3357 | "use strict";
|
3358 |
|
3359 | Object.defineProperty(exports, "__esModule", { value: true });
|
3360 | const tslib_1 = __webpack_require__(1);
|
3361 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3362 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3363 | __webpack_require__(105);
|
3364 | class PickerCaption extends react_1.default.Component {
|
3365 | renderMonth() {
|
3366 | const { panelDate, monthLabel } = this.props;
|
3367 | const month = panelDate.getMonth();
|
3368 | return (monthLabel && monthLabel[month]) || month + 1;
|
3369 | }
|
3370 | render() {
|
3371 | const { prefixCls, className, panelDate, monthLabel, onSelected, todayButton, ...other } = this.props;
|
3372 | return (react_1.default.createElement("div", Object.assign({ className: classnames_1.default(`${prefixCls}-caption`, className) }, other),
|
3373 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-caption-pane`, 'prev'), onClick: onSelected.bind(this, 'prev') }),
|
3374 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-caption-pane`, 'month'), onClick: onSelected.bind(this, 'month') }, this.renderMonth()),
|
3375 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-caption-pane`, 'year'), onClick: onSelected.bind(this, 'year') }, panelDate.getFullYear()),
|
3376 | todayButton && react_1.default.createElement("div", { className: `${prefixCls}-caption-today`, onClick: onSelected.bind(this, 'today'), title: todayButton }),
|
3377 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-caption-pane`, 'next'), onClick: onSelected.bind(this, 'next') })));
|
3378 | }
|
3379 | }
|
3380 | PickerCaption.defaultProps = {
|
3381 | prefixCls: 'w-datepicker',
|
3382 | panelDate: new Date(),
|
3383 | onSelected() { },
|
3384 | };
|
3385 | exports.default = PickerCaption;
|
3386 |
|
3387 |
|
3388 | }),
|
3389 |
|
3390 | (function(module, exports, __webpack_require__) {
|
3391 |
|
3392 | "use strict";
|
3393 |
|
3394 | Object.defineProperty(exports, "__esModule", { value: true });
|
3395 | const tslib_1 = __webpack_require__(1);
|
3396 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3397 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3398 | const MenuItem_1 = tslib_1.__importDefault(__webpack_require__(15));
|
3399 | const Divider_1 = tslib_1.__importDefault(__webpack_require__(31));
|
3400 | const SubMenu_1 = tslib_1.__importDefault(__webpack_require__(32));
|
3401 | __webpack_require__(120);
|
3402 | class Menu extends react_1.default.Component {
|
3403 | render() {
|
3404 | const { prefixCls, className, children, bordered, theme, inlineIndent, ...htmlProps } = this.props;
|
3405 | const cls = classnames_1.default(prefixCls, className, { 'w-bordered': bordered, [`${prefixCls}-${theme}`]: theme });
|
3406 | return (react_1.default.createElement("ul", Object.assign({}, htmlProps, { className: cls, "data-menu": "menu" }), react_1.default.Children.map(children, (child) => {
|
3407 | const props = {};
|
3408 | if (child.props.children) {
|
3409 | props.inlineIndent = inlineIndent;
|
3410 | }
|
3411 | return react_1.default.cloneElement(child, Object.assign({ ...props }, child.props, {}));
|
3412 | })));
|
3413 | }
|
3414 | }
|
3415 | Menu.Item = MenuItem_1.default;
|
3416 | Menu.SubMenu = SubMenu_1.default;
|
3417 | Menu.Divider = Divider_1.default;
|
3418 | Menu.defaultProps = {
|
3419 | prefixCls: 'w-menu',
|
3420 | theme: 'light',
|
3421 | inlineIndent: 10,
|
3422 | bordered: false,
|
3423 | };
|
3424 | Menu.displayName = 'uiw.Menu';
|
3425 | exports.default = Menu;
|
3426 |
|
3427 |
|
3428 | }),
|
3429 |
|
3430 | (function(module, exports, __webpack_require__) {
|
3431 |
|
3432 | "use strict";
|
3433 |
|
3434 | Object.defineProperty(exports, "__esModule", { value: true });
|
3435 | const tslib_1 = __webpack_require__(1);
|
3436 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3437 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3438 | class Divider extends react_1.default.Component {
|
3439 | render() {
|
3440 | const { prefixCls, className, title, ...htmlProps } = this.props;
|
3441 | const cls = classnames_1.default(prefixCls, className);
|
3442 | if (!title) {
|
3443 | return react_1.default.createElement("li", Object.assign({}, htmlProps, { className: cls }));
|
3444 | }
|
3445 | return (react_1.default.createElement("li", Object.assign({}, htmlProps, { className: cls, "data-menu": "divider" }),
|
3446 | react_1.default.createElement("strong", null, title)));
|
3447 | }
|
3448 | }
|
3449 | Divider.displayName = 'uiw.MenuDivider';
|
3450 | Divider.defaultProps = {
|
3451 | prefixCls: 'w-menu-divider',
|
3452 | };
|
3453 | exports.default = Divider;
|
3454 |
|
3455 |
|
3456 | }),
|
3457 |
|
3458 | (function(module, exports, __webpack_require__) {
|
3459 |
|
3460 | "use strict";
|
3461 |
|
3462 | Object.defineProperty(exports, "__esModule", { value: true });
|
3463 | const tslib_1 = __webpack_require__(1);
|
3464 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3465 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3466 | const MenuItem_1 = tslib_1.__importDefault(__webpack_require__(15));
|
3467 | const Menu_1 = tslib_1.__importDefault(__webpack_require__(30));
|
3468 | const overlay_trigger_1 = tslib_1.__importDefault(__webpack_require__(9));
|
3469 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
3470 | __webpack_require__(119);
|
3471 | function checkedMenuItem(node) {
|
3472 | let isCheck = false;
|
3473 | if (node) {
|
3474 |
|
3475 | do {
|
3476 | if (!node.dataset.menu) {
|
3477 | isCheck = true;
|
3478 | }
|
3479 | if (node.dataset.menu && /^(subitem|divider)$/.test(node.dataset.menu)) {
|
3480 | isCheck = false;
|
3481 | }
|
3482 | } while (!node.dataset.menu && (node = node.parentNode));
|
3483 | }
|
3484 | return isCheck;
|
3485 | }
|
3486 | class SubMenu extends react_1.default.Component {
|
3487 | constructor(props) {
|
3488 | super(props);
|
3489 | this.onClick = (e) => {
|
3490 | const target = e.currentTarget;
|
3491 | const related = (e.relatedTarget || e.nativeEvent.toElement);
|
3492 | if (!this.popup || target.children.length < 1)
|
3493 | return;
|
3494 | if (checkedMenuItem(related)) {
|
3495 | this.popup.hide();
|
3496 | }
|
3497 | };
|
3498 | this.onExit = (node) => {
|
3499 | this.setState({ isOpen: false });
|
3500 | node.style.height = `${node.scrollHeight}px`;
|
3501 | };
|
3502 | this.onExiting = (node) => {
|
3503 | node.style.height = '0px';
|
3504 | };
|
3505 | this.onEnter = (node) => {
|
3506 | node.style.height = '1px';
|
3507 | this.setState({ isOpen: true });
|
3508 | };
|
3509 | this.onEntering = (node) => {
|
3510 | node.style.height = `${node.scrollHeight}px`;
|
3511 | };
|
3512 | this.onEntered = (node) => {
|
3513 | node.style.height = 'initial';
|
3514 | };
|
3515 | this.state = {
|
3516 | isOpen: false,
|
3517 | };
|
3518 | }
|
3519 | render() {
|
3520 | const { prefixCls, className, disabled, overlayProps, children, collapse, inlineIndent, ...other } = this.props;
|
3521 | const overlayTriggerProps = { ...overlayProps };
|
3522 | const menuProps = { bordered: true, children, inlineIndent, className: classnames_1.default(`${prefixCls}-overlay`) };
|
3523 | if (collapse) {
|
3524 | delete menuProps.onClick;
|
3525 | menuProps.bordered = false;
|
3526 | overlayTriggerProps.className = `${prefixCls}-collapse`;
|
3527 | overlayTriggerProps.appear = true;
|
3528 | overlayTriggerProps.isOutside = true;
|
3529 | overlayTriggerProps.isClickOutside = false;
|
3530 | overlayTriggerProps.unmountOnExit = false;
|
3531 | overlayTriggerProps.trigger = 'click';
|
3532 | overlayTriggerProps.transitionName = `${prefixCls}`;
|
3533 | overlayTriggerProps.onExit = this.onExit;
|
3534 | overlayTriggerProps.onExiting = this.onExiting;
|
3535 | overlayTriggerProps.onEnter = this.onEnter;
|
3536 | overlayTriggerProps.onEntered = this.onEntered;
|
3537 | overlayTriggerProps.onEntering = this.onEntering;
|
3538 | }
|
3539 | else {
|
3540 | overlayTriggerProps.className = `${prefixCls}-popup`;
|
3541 | menuProps.onClick = this.onClick;
|
3542 | }
|
3543 | return (react_1.default.createElement("li", { "data-menu": "subitem" },
|
3544 | react_1.default.createElement(overlay_trigger_1.default, Object.assign({ placement: "rightTop", trigger: "hover", autoAdjustOverflow: true, disabled: disabled, ref: node => {
|
3545 | if (node) {
|
3546 | this.popup = node;
|
3547 | }
|
3548 | }, usePortal: false, isOutside: true }, overlayTriggerProps, { overlay: react_1.default.createElement(Menu_1.default, Object.assign({}, menuProps, { style: { paddingLeft: inlineIndent } })) }),
|
3549 | react_1.default.createElement(MenuItem_1.default, Object.assign({}, other, { disabled: disabled, isSubMenuItem: true, addonAfter: react_1.default.createElement(icon_1.default, { type: "caret-right", className: classnames_1.default(`${prefixCls}-collapse-icon`, {
|
3550 | 'w-open': collapse && this.state.isOpen,
|
3551 | 'w-close': collapse && !this.state.isOpen,
|
3552 | }) }), className: classnames_1.default(className, `${prefixCls}-title`, { [`${prefixCls}-collapse-title`]: collapse }) })))));
|
3553 | }
|
3554 | }
|
3555 | SubMenu.defaultProps = {
|
3556 | prefixCls: 'w-menu-subitem',
|
3557 | overlayProps: {},
|
3558 | collapse: false,
|
3559 | active: false,
|
3560 | };
|
3561 | SubMenu.displayName = 'uiw.SubMenu';
|
3562 | exports.default = SubMenu;
|
3563 |
|
3564 |
|
3565 | }),
|
3566 |
|
3567 | (function(module, exports, __webpack_require__) {
|
3568 |
|
3569 | "use strict";
|
3570 |
|
3571 | Object.defineProperty(exports, "__esModule", { value: true });
|
3572 | const tslib_1 = __webpack_require__(1);
|
3573 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3574 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
3575 | exports.IconProgress = (props) => react_1.default.createElement(icon_1.default, { type: props.type });
|
3576 |
|
3577 |
|
3578 | }),
|
3579 |
|
3580 | (function(module, exports, __webpack_require__) {
|
3581 |
|
3582 |
|
3583 |
|
3584 | }),
|
3585 |
|
3586 | (function(module, exports, __webpack_require__) {
|
3587 |
|
3588 | "use strict";
|
3589 |
|
3590 | Object.defineProperty(exports, "__esModule", { value: true });
|
3591 | const tslib_1 = __webpack_require__(1);
|
3592 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3593 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3594 | __webpack_require__(141);
|
3595 | class Row extends react_1.default.Component {
|
3596 | render() {
|
3597 | const { prefixCls, className, gutter, justify, align, ...props } = this.props;
|
3598 | const cls = classnames_1.default(prefixCls, className, {
|
3599 | [`${prefixCls}-align-${align}`]: align,
|
3600 | [`${prefixCls}-justify-${justify}`]: justify,
|
3601 | });
|
3602 | const gutterStyl = !gutter ? {} : { paddingLeft: gutter / 2, paddingRight: gutter / 2 };
|
3603 | return (react_1.default.createElement("div", Object.assign({}, props, { className: cls }), react_1.default.Children.map(this.props.children, (element) => {
|
3604 | return react_1.default.cloneElement(element, Object.assign({}, element.props, {
|
3605 | style: { ...element.props.style, ...gutterStyl },
|
3606 | }));
|
3607 | })));
|
3608 | }
|
3609 | }
|
3610 | Row.defaultProps = {
|
3611 | prefixCls: 'w-row',
|
3612 | gutter: 0,
|
3613 | justify: null,
|
3614 | };
|
3615 | exports.default = Row;
|
3616 |
|
3617 |
|
3618 | }),
|
3619 |
|
3620 | (function(module, exports, __webpack_require__) {
|
3621 |
|
3622 |
|
3623 |
|
3624 | }),
|
3625 |
|
3626 | (function(module, exports, __webpack_require__) {
|
3627 |
|
3628 | "use strict";
|
3629 |
|
3630 | Object.defineProperty(exports, "__esModule", { value: true });
|
3631 | const tslib_1 = __webpack_require__(1);
|
3632 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3633 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3634 | const Row_1 = tslib_1.__importDefault(__webpack_require__(35));
|
3635 | const Col_1 = tslib_1.__importDefault(__webpack_require__(21));
|
3636 | __webpack_require__(174);
|
3637 | class FormItem extends react_1.default.PureComponent {
|
3638 | render() {
|
3639 | const { prefixCls, className, style, label, labelFor, labelClassName, labelStyle, help, inline, initialValue, validator, hasError, ...otherProps } = this.props;
|
3640 | const cls = classnames_1.default(prefixCls, className, {
|
3641 | [`${prefixCls}-error`]: hasError,
|
3642 | });
|
3643 | const labelCls = classnames_1.default('w-form-label', labelClassName);
|
3644 | if (inline) {
|
3645 | return (react_1.default.createElement("div", Object.assign({ className: cls, style: style }, otherProps),
|
3646 | react_1.default.createElement(Row_1.default, null,
|
3647 | react_1.default.createElement(Col_1.default, { fixed: true, className: labelCls },
|
3648 | react_1.default.createElement("label", { style: labelStyle, htmlFor: labelFor }, label)),
|
3649 | react_1.default.createElement(Col_1.default, { className: "w-form-row" }, this.props.children)),
|
3650 | help && (react_1.default.createElement(Row_1.default, null,
|
3651 | react_1.default.createElement(Col_1.default, { className: "w-form-help" }, help)))));
|
3652 | }
|
3653 | return (react_1.default.createElement("div", Object.assign({ className: cls, style: style }, otherProps),
|
3654 | label && react_1.default.createElement("label", { className: labelCls, style: labelStyle, htmlFor: labelFor }, label),
|
3655 | react_1.default.createElement(Col_1.default, { className: "w-form-row" }, this.props.children),
|
3656 | help && react_1.default.createElement("div", { className: "w-form-help" }, help)));
|
3657 | }
|
3658 | }
|
3659 | FormItem.defaultProps = {
|
3660 | prefixCls: 'w-form-item',
|
3661 | };
|
3662 | exports.default = FormItem;
|
3663 |
|
3664 |
|
3665 | }),
|
3666 |
|
3667 | (function(module, exports, __webpack_require__) {
|
3668 |
|
3669 | "use strict";
|
3670 |
|
3671 |
|
3672 | var _interopRequireDefault = __webpack_require__(48);
|
3673 |
|
3674 | exports.__esModule = true;
|
3675 | exports.default = addClass;
|
3676 |
|
3677 | var _hasClass = _interopRequireDefault(__webpack_require__(49));
|
3678 |
|
3679 | function addClass(element, className) {
|
3680 | if (element.classList) element.classList.add(className);else if (!(0, _hasClass.default)(element, className)) if (typeof element.className === 'string') element.className = element.className + ' ' + className;else element.setAttribute('class', (element.className && element.className.baseVal || '') + ' ' + className);
|
3681 | }
|
3682 |
|
3683 | module.exports = exports["default"];
|
3684 |
|
3685 | }),
|
3686 |
|
3687 | (function(module, exports, __webpack_require__) {
|
3688 |
|
3689 | "use strict";
|
3690 |
|
3691 |
|
3692 | function replaceClassName(origClass, classToRemove) {
|
3693 | return origClass.replace(new RegExp('(^|\\s)' + classToRemove + '(?:\\s|$)', 'g'), '$1').replace(/\s+/g, ' ').replace(/^\s*|\s*$/g, '');
|
3694 | }
|
3695 |
|
3696 | module.exports = function removeClass(element, className) {
|
3697 | if (element.classList) element.classList.remove(className);else if (typeof element.className === 'string') element.className = replaceClassName(element.className, className);else element.setAttribute('class', replaceClassName(element.className && element.className.baseVal || '', className));
|
3698 | };
|
3699 |
|
3700 | }),
|
3701 | ,
|
3702 |
|
3703 | (function(module, exports, __webpack_require__) {
|
3704 |
|
3705 | "use strict";
|
3706 |
|
3707 | Object.defineProperty(exports, "__esModule", { value: true });
|
3708 | const tslib_1 = __webpack_require__(1);
|
3709 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3710 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3711 | const getScroll_1 = tslib_1.__importDefault(__webpack_require__(13));
|
3712 | function getTargetRect(target) {
|
3713 | return target !== window ? target.getBoundingClientRect() : ({ top: 0, left: 0, bottom: 0 });
|
3714 | }
|
3715 | function getOffset(element, target) {
|
3716 | const elemRect = element.getBoundingClientRect();
|
3717 | const targetRect = getTargetRect(target);
|
3718 | const scrollTop = getScroll_1.default(target, true);
|
3719 | const scrollLeft = getScroll_1.default(target);
|
3720 | const docElem = window.document.body;
|
3721 | const clientTop = docElem.clientTop || 0;
|
3722 | const clientLeft = docElem.clientLeft || 0;
|
3723 | return {
|
3724 | top: elemRect.top - targetRect.top + scrollTop - clientTop,
|
3725 | left: elemRect.left - targetRect.left + scrollLeft - clientLeft,
|
3726 | width: elemRect.width,
|
3727 | height: elemRect.height,
|
3728 | };
|
3729 | }
|
3730 | function noop() { }
|
3731 | function getDefaultTarget() {
|
3732 | return typeof window !== 'undefined' ? window : null;
|
3733 | }
|
3734 | class Affix extends react_1.default.Component {
|
3735 | constructor(props) {
|
3736 | super(props);
|
3737 | this.state = {
|
3738 | placeholderStyle: undefined,
|
3739 | affixStyle: undefined,
|
3740 | };
|
3741 | this.events = [
|
3742 | 'resize',
|
3743 | 'scroll',
|
3744 | 'touchstart',
|
3745 | 'touchmove',
|
3746 | 'touchend',
|
3747 | 'pageshow',
|
3748 | 'load',
|
3749 | ];
|
3750 | this.eventHandlers = {};
|
3751 | this.getInstance = (node) => {
|
3752 | if (node) {
|
3753 | this.box = node;
|
3754 | }
|
3755 | };
|
3756 | this.updatePosition = this.updatePosition.bind(this);
|
3757 | }
|
3758 | componentDidMount() {
|
3759 | const target = this.props.target || getDefaultTarget;
|
3760 |
|
3761 | this.timeout = setTimeout(() => {
|
3762 | this.target = target();
|
3763 | this.setTargetEventListeners();
|
3764 | });
|
3765 | }
|
3766 | componentWillUnmount() {
|
3767 | this.clearEventListeners();
|
3768 | clearTimeout(this.timeout);
|
3769 | }
|
3770 | updatePosition() {
|
3771 | let { offsetTop } = this.props;
|
3772 | const { offsetBottom } = this.props;
|
3773 | if (!this.box || !this.box.offsetParent) {
|
3774 | return;
|
3775 | }
|
3776 | const elemSize = {
|
3777 | width: this.box.clientWidth,
|
3778 | height: this.box.clientHeight,
|
3779 | };
|
3780 | const offsetMode = { top: false, bottom: false };
|
3781 | if (typeof offsetTop !== 'number' && typeof offsetBottom !== 'number') {
|
3782 | offsetMode.top = true;
|
3783 | offsetTop = 0;
|
3784 | }
|
3785 | else {
|
3786 | offsetMode.top = typeof offsetTop === 'number';
|
3787 | offsetMode.bottom = typeof offsetBottom === 'number';
|
3788 | }
|
3789 | const elemOffset = getOffset(this.box, this.target);
|
3790 | const box = this.box.getBoundingClientRect();
|
3791 | const bottom = document.documentElement.clientHeight - box.y - elemOffset.height;
|
3792 | if (offsetMode.top && box.y < 0) {
|
3793 | this.setPlaceholderStyle({ ...elemSize });
|
3794 | this.setAffixStyle({
|
3795 | position: 'fixed',
|
3796 | top: offsetTop || 0,
|
3797 | left: elemOffset.left,
|
3798 | width: elemOffset.width,
|
3799 | });
|
3800 | }
|
3801 | else if (bottom < 0) {
|
3802 | this.setPlaceholderStyle({ ...elemSize });
|
3803 | this.setAffixStyle({
|
3804 | position: 'fixed',
|
3805 | bottom: offsetBottom || 0,
|
3806 | left: elemOffset.left,
|
3807 | width: elemOffset.width,
|
3808 | });
|
3809 | }
|
3810 | else {
|
3811 | this.setPlaceholderStyle();
|
3812 | this.setAffixStyle();
|
3813 | }
|
3814 | }
|
3815 | setAffixStyle(affixStyle) {
|
3816 | const { onChange } = this.props;
|
3817 | const affixed = !!this.state.affixStyle;
|
3818 | this.setState({ affixStyle }, () => {
|
3819 | onChange && onChange(affixed);
|
3820 | });
|
3821 | }
|
3822 | setPlaceholderStyle(placeholderStyle) {
|
3823 | this.setState({ placeholderStyle });
|
3824 | }
|
3825 |
|
3826 | setTargetEventListeners() {
|
3827 | this.clearEventListeners();
|
3828 | this.events.forEach((eventName) => {
|
3829 | this.eventHandlers[eventName] = this.updatePosition;
|
3830 | this.target && this.target.addEventListener(eventName, this.updatePosition, false);
|
3831 | });
|
3832 | }
|
3833 | clearEventListeners() {
|
3834 | this.events.forEach((eventName) => {
|
3835 | const handler = this.eventHandlers[eventName];
|
3836 | this.target && this.target.removeEventListener(eventName, handler, false);
|
3837 | });
|
3838 | }
|
3839 | render() {
|
3840 | const { prefixCls, className, children, offsetTop, offsetBottom, target, onChange, ...resetProps } = this.props;
|
3841 | const cls = classnames_1.default(className, `${prefixCls}`);
|
3842 | return (react_1.default.createElement("div", Object.assign({}, resetProps, { ref: this.getInstance, style: { ...this.state.placeholderStyle, ...this.props.style } }),
|
3843 | react_1.default.createElement("div", { className: cls, style: this.state.affixStyle }, children)));
|
3844 | }
|
3845 | }
|
3846 | Affix.defaultProps = {
|
3847 | prefixCls: 'w-affix',
|
3848 | onChange: noop,
|
3849 | };
|
3850 | exports.default = Affix;
|
3851 |
|
3852 |
|
3853 | }),
|
3854 |
|
3855 | (function(module, exports, __webpack_require__) {
|
3856 |
|
3857 | "use strict";
|
3858 |
|
3859 | Object.defineProperty(exports, "__esModule", { value: true });
|
3860 | const tslib_1 = __webpack_require__(1);
|
3861 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
3862 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
3863 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
3864 | __webpack_require__(45);
|
3865 | class Avatar extends react_1.default.Component {
|
3866 | constructor() {
|
3867 | super(...arguments);
|
3868 | this.state = {
|
3869 | isImgExist: true,
|
3870 | };
|
3871 | }
|
3872 | onImgLoadError() {
|
3873 | this.setState({ isImgExist: false });
|
3874 | }
|
3875 | render() {
|
3876 | const { prefixCls, className, size, shape, src, alt, icon, ...resetProps } = this.props;
|
3877 | let children = this.props.children;
|
3878 | const cls = classnames_1.default(prefixCls, className, {
|
3879 | [`${prefixCls}-${size}`]: size,
|
3880 | [`${prefixCls}-${shape}`]: shape,
|
3881 | [`${prefixCls}-image`]: src,
|
3882 | });
|
3883 | if (this.state.isImgExist && src) {
|
3884 | children = (react_1.default.createElement("img", { src: src, alt: alt, onError: this.onImgLoadError.bind(this) }));
|
3885 | }
|
3886 | else if (icon && typeof icon === 'string') {
|
3887 | children = react_1.default.createElement(icon_1.default, { type: icon });
|
3888 | }
|
3889 | else if (icon && react_1.default.isValidElement(icon)) {
|
3890 | children = icon;
|
3891 | }
|
3892 | return (react_1.default.createElement("span", Object.assign({}, resetProps, { className: cls }), children));
|
3893 | }
|
3894 | }
|
3895 | Avatar.defaultProps = {
|
3896 | prefixCls: 'w-avatar',
|
3897 | shape: 'circle',
|
3898 | size: 'default',
|
3899 | };
|
3900 | exports.default = Avatar;
|
3901 |
|
3902 |
|
3903 | }),
|
3904 |
|
3905 | (function(module) {
|
3906 |
|
3907 | module.exports = JSON.parse("{\"adobe\":[\"M12.607 1H20v18.001L12.607 1zM0 1h7.399L0 19.001V1zm6.77 14.581l3.233-8.316L14.713 19h-3.086l-1.41-3.419H6.77z\"],\"ali-pay\":[\"M20 13.692V3.846A3.845 3.845 0 0 0 16.154 0H3.846A3.845 3.845 0 0 0 0 3.846v12.308A3.845 3.845 0 0 0 3.846 20h12.308a3.848 3.848 0 0 0 3.787-3.167c-1.02-.439-5.44-2.347-7.742-3.45-1.755 2.122-3.589 3.396-6.356 3.396s-4.613-1.703-4.388-3.79c.145-1.368 1.084-3.605 5.161-3.22 2.148.201 3.132.604 4.886 1.182.45-.83.83-1.745 1.114-2.72H4.847v-.77H8.69V6.077H4V5.23h4.69V3.236s.045-.315.389-.315H11V5.23h5.002v.847h-5.002v1.384h4.078a15.726 15.726 0 0 1-1.654 4.154c1.182.43 6.575 2.077 6.575 2.077zM5.538 15.46c-2.925 0-3.384-1.846-3.23-2.617.154-.77 1.002-1.768 2.625-1.768 1.87 0 3.541.477 5.547 1.454-1.407 1.837-3.144 2.93-4.942 2.93z\"],\"aliwangwang\":[\"M19.23 6.572a9.611 9.611 0 0 0-2.104-3.073 9.875 9.875 0 0 0-6.94-2.83c-1.108 0-2.191.177-3.226.533C4.191-.093.9-.002.756.003a.769.769 0 0 0-.7 1.052l1.727 4.277a9.513 9.513 0 0 0-1.415 5.002c0 1.305.259 2.571.771 3.763a9.611 9.611 0 0 0 2.103 3.073 9.875 9.875 0 0 0 6.94 2.83c1.326 0 2.611-.255 3.824-.76a9.776 9.776 0 0 0 5.223-5.143A9.472 9.472 0 0 0 20 10.334c0-1.304-.259-2.57-.77-3.762zm-8.584 1.855c0 .442-.363.8-.812.8a.806.806 0 0 1-.812-.8V6.973c0-.442.363-.8.812-.8.449 0 .812.358.812.8v1.454zm4.721 0c0 .442-.363.8-.812.8a.806.806 0 0 1-.813-.8V6.973c0-.442.364-.8.813-.8.449 0 .812.358.812.8v1.454z\"],\"android-o\":[\"M4.074 6.445a.29.29 0 0 0-.296.285v5.986a.29.29 0 0 0 .296.285.29.29 0 0 0 .296-.285V6.73a.29.29 0 0 0-.296-.285zm.089-1.318c.918 0 1.663.718 1.663 1.603v5.986c0 .885-.745 1.603-1.663 1.603S2.5 13.6 2.5 12.716V6.73c0-.885.745-1.603 1.663-1.603zm1.74 1.501v8.13h8.201v-8.13H5.902zM4.534 5.31h10.936v9.887c0 .485-.408.879-.911.879H5.446c-.503 0-.91-.394-.91-.879V5.31zm11.372 1.12a.29.29 0 0 0-.296.284V12.7a.29.29 0 0 0 .296.285c.164 0 .296-.189.296-.285V6.714a.29.29 0 0 0-.296-.285zm-4.062-5.075l.819-1.084a.7.7 0 0 1 .955-.145.644.644 0 0 1 .15.92l-.681.903A5.501 5.501 0 0 1 15.47 5.15c.118-.025.24-.039.366-.039.918 0 1.663.718 1.663 1.603V12.7c0 .885-.745 1.603-1.663 1.603s-1.663-.718-1.663-1.603V6.714c0-.318.096-.614.262-.864l-.202.03c-.33-2.012-2.138-3.516-4.276-3.516-2.211 0-4.061 1.607-4.302 3.709l-1.359-.145c.187-1.63 1.108-3.034 2.43-3.912l-.732-.97a.644.644 0 0 1 .15-.92.7.7 0 0 1 .955.145l.85 1.127a5.872 5.872 0 0 1 2.008-.352c.66 0 1.295.109 1.887.31zm-3.209 2.86a.448.448 0 0 1-.456-.438c0-.243.204-.44.456-.44s.456.197.456.44c0 .242-.204.439-.456.439zm2.734 0a.448.448 0 0 1-.455-.438c0-.243.204-.44.455-.44.252 0 .456.197.456.44 0 .242-.204.439-.456.439zM6.317 15.865c0-.364.306-.66.684-.66.377 0 .683.296.683.66v2.285c.024.446.102.533.358.533.238 0 .292-.064.292-.498v-2.32c0-.364.306-.66.684-.66.377 0 .683.296.683.66v2.32c0 1.109-.596 1.816-1.66 1.816-1.046 0-1.662-.684-1.724-1.816v-2.32zm4.541 0c0-.364.306-.66.684-.66.377 0 .683.296.683.66v2.285c.024.446.102.533.358.533.238 0 .292-.064.292-.498v-2.32c0-.364.306-.66.684-.66.377 0 .683.296.683.66v2.32c0 1.109-.597 1.816-1.66 1.816-1.046 0-1.662-.684-1.724-1.816v-2.32z\"],\"android\":[\"M12.735 1.828L13.6.254A.172.172 0 0 0 13.3.09l-.874 1.59a5.987 5.987 0 0 0-2.428-.508c-.869 0-1.69.181-2.424.506L6.698.09a.171.171 0 0 0-.232-.069.169.169 0 0 0-.069.232l.866 1.572c-1.7.874-2.85 2.537-2.849 4.447l11.166-.001c0-1.91-1.146-3.57-2.845-4.444zm-5.278 2.43a.467.467 0 1 1 .001-.934.467.467 0 0 1 0 .935zm5.084 0a.467.467 0 1 1-.002-.934.467.467 0 0 1 .002.934zM18.5 7.702l.001 5.169c0 .683-.555 1.235-1.239 1.235-.685 0-1.24-.552-1.24-1.235V7.702c0-.682.554-1.235 1.238-1.234.685 0 1.24.552 1.24 1.234zM15.542 6.7l.002 8.012c0 .481-.262.897-.648 1.127a1.31 1.31 0 0 1-.675.19l-.904.001v2.734a1.237 1.237 0 0 1-1.489 1.21 1.238 1.238 0 0 1-.99-1.209V16.03H9.163v2.735A1.237 1.237 0 0 1 7.925 20a1.239 1.239 0 0 1-1.238-1.235V16.03h-.901c-.521 0-.967-.3-1.182-.736a1.298 1.298 0 0 1-.141-.581l-.002-8.01L15.542 6.7zM2.74 6.47c.684 0 1.24.553 1.24 1.234v5.17a1.238 1.238 0 0 1-1.922 1.03 1.231 1.231 0 0 1-.557-1.03L1.5 7.703c0-.68.555-1.234 1.24-1.234z\"],\"apple\":[\"M17.922 6.71c-3.34 1.851-2.797 6.674.578 7.963-.465 1.04-.687 1.505-1.285 2.426-.835 1.284-2.01 2.884-3.469 2.898-1.295.012-1.628-.853-3.386-.843-1.758.01-2.125.858-3.42.846-1.458-.014-2.573-1.458-3.408-2.743C1.198 13.665.954 9.45 2.394 7.21 3.417 5.616 5.03 4.683 6.548 4.683c1.545 0 2.516.857 3.794.857 1.24 0 1.994-.858 3.78-.858 1.35 0 2.781.743 3.8 2.028zm-5.155-3.463c-.695.902-1.892 1.601-3.05 1.565-.21-1.163.332-2.36.99-3.167C11.43.755 12.67.074 13.73 0c.18 1.215-.314 2.405-.963 3.247z\"],\"appstore-o\":[\"M2.02 1.515a.505.505 0 0 0-.505.505v5.05c0 .28.226.506.505.506h5.05a.505.505 0 0 0 .506-.505V2.02a.505.505 0 0 0-.505-.506H2.02zM2.02 0h5.05a2.02 2.02 0 0 1 2.02 2.02v5.05a2.02 2.02 0 0 1-2.02 2.02H2.02A2.02 2.02 0 0 1 0 7.07V2.02A2.02 2.02 0 0 1 2.02 0zm10.91 0h5.05A2.02 2.02 0 0 1 20 2.02v5.05a2.02 2.02 0 0 1-2.02 2.02h-5.05a2.02 2.02 0 0 1-2.02-2.02V2.02A2.02 2.02 0 0 1 12.93 0zm0 1.515a.505.505 0 0 0-.506.505v5.05c0 .28.226.506.505.506h5.05a.505.505 0 0 0 .506-.505V2.02a.505.505 0 0 0-.505-.506h-5.05zM2.02 10.91h5.05a2.02 2.02 0 0 1 2.02 2.02v5.05A2.02 2.02 0 0 1 7.07 20H2.02A2.02 2.02 0 0 1 0 17.98v-5.05a2.02 2.02 0 0 1 2.02-2.02zm0 1.515a.505.505 0 0 0-.505.505v5.05c0 .28.226.506.505.506h5.05a.505.505 0 0 0 .506-.505v-5.05a.505.505 0 0 0-.505-.506H2.02zm10.91-1.515h5.05A2.02 2.02 0 0 1 20 12.93v5.05A2.02 2.02 0 0 1 17.98 20h-5.05a2.02 2.02 0 0 1-2.02-2.02v-5.05a2.02 2.02 0 0 1 2.02-2.02zm0 1.515a.505.505 0 0 0-.506.505v5.05c0 .28.226.506.505.506h5.05a.505.505 0 0 0 .506-.505v-5.05a.505.505 0 0 0-.505-.506h-5.05z\"],\"appstore\":[\"M2.02 0h5.05a2.02 2.02 0 0 1 2.02 2.02v5.05a2.02 2.02 0 0 1-2.02 2.02H2.02A2.02 2.02 0 0 1 0 7.07V2.02A2.02 2.02 0 0 1 2.02 0zm10.91 0h5.05A2.02 2.02 0 0 1 20 2.02v5.05a2.02 2.02 0 0 1-2.02 2.02h-5.05a2.02 2.02 0 0 1-2.02-2.02V2.02A2.02 2.02 0 0 1 12.93 0zM2.02 10.91h5.05a2.02 2.02 0 0 1 2.02 2.02v5.05A2.02 2.02 0 0 1 7.07 20H2.02A2.02 2.02 0 0 1 0 17.98v-5.05a2.02 2.02 0 0 1 2.02-2.02zm10.91 0h5.05A2.02 2.02 0 0 1 20 12.93v5.05A2.02 2.02 0 0 1 17.98 20h-5.05a2.02 2.02 0 0 1-2.02-2.02v-5.05a2.02 2.02 0 0 1 2.02-2.02z\"],\"area-chart\":[\"M1.37 18.615h17.945c.379 0 .685.31.685.693a.689.689 0 0 1-.685.692H.685A.689.689 0 0 1 0 19.308V.692C0 .31.306 0 .685 0c.378 0 .684.31.684.692v17.923zM2.836 17.4l2.753-5.57 2.754 1.392 3.442-4.179 2.754 2.09 4.131-6.268V17.4H2.837z\"],\"arrow-down\":[\"M10.103 12.778L16.81 6.08a.69.69 0 0 1 .99.012.726.726 0 0 1-.012 1.012l-7.203 7.193a.69.69 0 0 1-.985-.006L2.205 6.72a.727.727 0 0 1 0-1.01.69.69 0 0 1 .99 0l6.908 7.068z\"],\"arrow-left\":[\"M2.488 10.646l6.302 6.159a.69.69 0 0 1 0 .99.727.727 0 0 1-1.01 0L.21 10.4a.69.69 0 0 1-.006-.985l7.193-7.203a.726.726 0 0 1 1.012-.012.69.69 0 0 1 .012.99L2.373 9.245l16.931.104a.7.7 0 1 1-.008 1.4l-16.808-.103z\"],\"arrow-right\":[\"M17.512 10.646l-6.302 6.159a.69.69 0 0 0 0 .99.727.727 0 0 0 1.01 0l7.57-7.396a.69.69 0 0 0 .006-.985l-7.193-7.203a.726.726 0 0 0-1.012-.012.69.69 0 0 0-.012.99l6.048 6.056L.696 9.35a.7.7 0 1 0 .008 1.4l16.808-.103z\"],\"arrow-up\":[\"M10.103 7.222l6.708 6.699a.69.69 0 0 0 .99-.012.726.726 0 0 0-.012-1.012l-7.203-7.193a.69.69 0 0 0-.985.006l-7.396 7.57a.727.727 0 0 0 0 1.01.69.69 0 0 0 .99 0l6.908-7.068z\"],\"arrows-alt\":[\"M1.4 17.659l6.773-6.888a.7.7 0 1 1 .998.981l-6.738 6.853H6.7a.7.7 0 0 1 0 1.4h-6a.7.7 0 0 1-.7-.7v-6a.7.7 0 0 1 1.4 0v4.354zM18.602 2.346l-6.773 6.888a.7.7 0 0 1-.998-.981L17.569 1.4h-4.267a.7.7 0 0 1 0-1.4h6a.7.7 0 0 1 .7.7v6a.7.7 0 0 1-1.4 0V2.346z\"],\"asterisk\":[\"M10.746 8.493l6.07-4.54a.732.732 0 0 1 1.041.17.783.783 0 0 1-.165 1.072L11.27 10l6.423 4.805c.334.25.408.73.165 1.073a.732.732 0 0 1-1.042.17l-6.069-4.54v7.724A.757.757 0 0 1 10 20a.757.757 0 0 1-.746-.768v-7.725l-6.07 4.54a.732.732 0 0 1-1.041-.17.783.783 0 0 1 .165-1.072L8.73 10 2.308 5.195a.783.783 0 0 1-.165-1.073.732.732 0 0 1 1.042-.17l6.069 4.54V.769C9.254.344 9.588 0 10 0s.746.344.746.768v7.725z\"],\"backward\":[\"M10.903 8.04l6.614-5.594c.62-.526 1.58-.323 1.58.485v14.14c0 .805-.96 1.009-1.58.483l-6.614-5.592v5.109c0 .805-.96 1.009-1.58.483l-8.086-6.836a.936.936 0 0 1 0-1.434l8.086-6.838c.62-.526 1.58-.323 1.58.485v5.108z\"],\"baidu\":[\"M3.723 10.54C5.855 10.07 5.561 7.47 5.5 6.901c-.104-.875-1.115-2.406-2.486-2.283-1.723.155-1.974 2.7-1.974 2.7-.235 1.174.557 3.687 2.683 3.22M7.68 6.172c1.176 0 2.127-1.383 2.127-3.09C9.807 1.382 8.859 0 7.683 0 6.507 0 5.551 1.375 5.551 3.083c0 1.708.956 3.09 2.132 3.09m5.069.205c1.576.217 2.582-1.5 2.786-2.8.204-1.29-.817-2.798-1.927-3.056-1.12-.264-2.5 1.56-2.638 2.749-.147 1.458.204 2.907 1.772 3.113m6.24 2.184c0-.621-.5-2.493-2.376-2.493-1.875 0-2.132 1.766-2.132 3.015 0 1.192.097 2.85 2.438 2.8 2.332-.059 2.077-2.7 2.077-3.324m-2.375 5.447s-2.438-1.924-3.86-3.999c-1.927-3.063-4.667-1.816-5.58-.263-.915 1.569-2.336 2.551-2.537 2.813-.204.259-2.94 1.766-2.33 4.516.612 2.749 2.744 2.699 2.744 2.699s1.568.158 3.397-.258c1.83-.417 3.397.1 3.397.1s4.253 1.457 5.43-1.342c1.163-2.807-.662-4.257-.662-4.257\"],\"bar-chart\":[\"M1 6h2a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm5.365 6h2a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6a1 1 0 0 1 1-1zm5.332-12h2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zM17 0h2a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1z\"],\"barcode\":[\"M8.438 2.5h.889v12.73h-.889V2.5zm-2.22 0H7.55v12.73H6.218V2.5zm-.888 0h.444v12.73H5.33V2.5zm-3.11 0h.445v12.73H2.22V2.5zm.889 0H4.44v12.73H3.11V2.5zm12.45 0h1.332v12.73H15.56V2.5zm-2.665 0h1.332v12.73h-1.332V2.5zm1.776 0h.445v12.73h-.445V2.5zm-1.776 13.638h4.885V17.5h-4.885v-1.362zM0 2.5h1.332v15H0v-15zm10.673 13.638h1.333V17.5h-1.333v-1.362zM17.335 2.5h.444v12.73h-.444V2.5zm1.333 0H20v15h-1.332v-15zm-7.106 0h.888v12.73h-.888V2.5zM2.22 16.138h1.332V17.5H2.221v-1.362zm2.22 0h5.33V17.5H4.44v-1.362zM10.23 2.5h.444v12.73h-.444V2.5z\"],\"bell\":[\"M6.734 17.341H3.778l-.056-.002c-.627-.054-1.094-.357-1.199-.94-.071-.397.023-.823.268-1.331l1.225-2.18.003-5.473c.107-1.21.56-2.337 1.348-3.371.667-.875 1.62-1.519 2.653-1.89a2.06 2.06 0 0 1-.005-.148C8.015.898 8.897 0 9.985 0c1.089 0 1.971.898 1.971 2.006 0 .055-.002.11-.006.163.867.352 1.704.937 2.448 1.71.862.893 1.366 2.077 1.521 3.596v5.478l1.191 2.098c.4.666.528 1.224.216 1.707-.286.441-.797.595-1.49.583h-2.67C12.855 18.86 11.532 20 9.95 20c-1.584 0-2.906-1.14-3.216-2.659zm1.363 0c.274.771 1 1.322 1.853 1.322.852 0 1.578-.55 1.853-1.322H8.097zM9.35 1.834c.244-.031.489-.047.73-.047.178 0 .357.01.535.032a.659.659 0 0 0-.63-.482.66.66 0 0 0-.635.497zm6.495 14.17c.121.002.213-.003.276-.005a2.615 2.615 0 0 0-.141-.265l-1.287-2.267a.678.678 0 0 1-.088-.335l.003-5.586c-.121-1.162-.506-2.064-1.149-2.732-1.04-1.08-2.262-1.69-3.378-1.69-1.354 0-2.843.645-3.677 1.74-.638.836-.994 1.722-1.075 2.61v5.59c0 .117-.03.232-.087.333l-1.291 2.296c-.061.127-.1.231-.12.311h12.014z\"],\"camera-o\":[\"M1.818 5.174a.449.449 0 0 0-.454.443V16.23c0 .244.203.442.454.442h16.364a.449.449 0 0 0 .454-.442V5.617a.449.449 0 0 0-.454-.443H1.818zm0-1.326h16.364c1.004 0 1.818.792 1.818 1.769V16.23c0 .977-.814 1.769-1.818 1.769H1.818C.814 18 0 17.208 0 16.231V5.617c0-.977.814-1.77 1.818-1.77zm-.79 5.528a.673.673 0 0 1-.681-.664c0-.366.305-.663.682-.663h4.5c.376 0 .681.297.681.663a.673.673 0 0 1-.682.664h-4.5zm13.109 0a.673.673 0 0 1-.682-.664c0-.366.305-.663.682-.663h4.975c.376 0 .682.297.682.663a.673.673 0 0 1-.682.664h-4.975zm-4.3 6.52c-2.887 0-5.227-2.277-5.227-5.086 0-2.81 2.34-5.086 5.227-5.086 2.887 0 5.228 2.277 5.228 5.086s-2.34 5.086-5.228 5.086zm0-1.327c2.134 0 3.864-1.683 3.864-3.76 0-2.075-1.73-3.759-3.864-3.759-2.133 0-3.863 1.684-3.863 3.76 0 2.076 1.73 3.759 3.863 3.759zM6.852 4.673l-1.2-.63c.292-.526.623-.976.994-1.35A2.263 2.263 0 0 1 8.29 2l6.371.002a2.49 2.49 0 0 1 1.657.777c.355.374.668.79.94 1.246l-1.178.666a5.773 5.773 0 0 0-.765-1.014 1.089 1.089 0 0 0-.709-.35H8.29c-.255 0-.463.089-.663.29-.28.282-.54.633-.774 1.056zM2.5 3.181c0-.367.305-.664.682-.664.376 0 .682.297.682.664V4.29a.673.673 0 0 1-.682.663.673.673 0 0 1-.682-.663V3.18z\"],\"caret-down\":[\"M17.704 6.58l-6.972 8.086a.967.967 0 0 1-1.463 0L2.296 6.58C1.76 5.96 1.967 5 2.791 5h14.42c.821 0 1.029.96.493 1.58z\"],\"caret-left\":[\"M15.42 17.704l-8.086-6.972a.967.967 0 0 1 0-1.463l8.086-6.973c.62-.536 1.58-.329 1.58.495v14.42c0 .821-.96 1.029-1.58.493z\"],\"caret-right\":[\"M6.58 17.704l8.086-6.972a.967.967 0 0 0 0-1.463L6.58 2.296C5.96 1.76 5 1.967 5 2.791v14.42c0 .821.96 1.029 1.58.493z\"],\"caret-up\":[\"M17.704 13.42l-6.972-8.086a.967.967 0 0 0-1.463 0L2.296 13.42c-.536.62-.329 1.58.495 1.58h14.42c.821 0 1.029-.96.493-1.58z\"],\"check-square-o\":[\"M1.818 1.364a.455.455 0 0 0-.454.454v16.364c0 .25.203.454.454.454h16.364a.455.455 0 0 0 .454-.454V1.818a.455.455 0 0 0-.454-.454H1.818zm0-1.364h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zM13.96 6.617L9.547 11.55 6.715 8.52a.682.682 0 0 0-.996.931l3.34 3.575a.682.682 0 0 0 1.007-.01l4.91-5.489a.682.682 0 0 0-1.017-.909z\"],\"check-square\":[\"M1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zM13.96 6.617L9.547 11.55 6.715 8.52a.682.682 0 0 0-.996.931l3.34 3.575a.682.682 0 0 0 1.007-.01l4.91-5.489a.682.682 0 0 0-1.017-.909z\"],\"check\":[\"M18.635 4.243a.795.795 0 0 1 1.12-.023.788.788 0 0 1 .024 1.117L8.787 16.757a.795.795 0 0 1-1.137.008L.228 9.262a.788.788 0 0 1 .008-1.117.795.795 0 0 1 1.122.008l6.849 6.924L18.635 4.243z\"],\"chrome\":[\"M5.39 11.918c1.06 2.086 3.303 3.358 5.624 2.923l-2.566 5.033A9.985 9.985 0 0 1 0 9.998c0-2.02.603-3.905 1.63-5.479l3.76 7.399zm9.608-10.579a10.021 10.021 0 0 1 3.928 4.151l-8.28-.435C8.302 4.921 6.07 6.238 5.3 8.447L2.22 3.716A9.991 9.991 0 0 1 9.965 0a9.928 9.928 0 0 1 5.033 1.34zM13.368 10a3.367 3.367 0 0 1-3.37 3.37 3.367 3.367 0 0 1-3.37-3.37 3.367 3.367 0 0 1 3.37-3.37 3.367 3.367 0 0 1 3.37 3.37zm1.63 8.658a9.976 9.976 0 0 1-5.557 1.328l4.52-6.951c1.283-1.976 1.26-4.553-.269-6.339l5.636-.29a9.99 9.99 0 0 1-4.33 12.252z\"],\"circle-check-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm3.959-11.969a.682.682 0 1 1 1.016.91l-4.909 5.487a.682.682 0 0 1-1.006.011L5.72 9.47a.682.682 0 0 1 .995-.931l2.832 3.03 4.412-4.932z\"],\"circle-check\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm3.959-13.364l-4.412 4.932-2.832-3.03a.682.682 0 1 0-.996.931l3.34 3.575a.682.682 0 0 0 1.007-.01l4.91-5.489a.682.682 0 1 0-1.017-.909z\"],\"circle-close-o\":[\"M10.01 9.03l2.197-2.193a.682.682 0 0 1 .963.964l-2.195 2.193 2.195 2.193a.682.682 0 0 1-.963.965l-2.196-2.194-2.196 2.194a.682.682 0 1 1-.964-.965l2.195-2.193-2.195-2.193a.682.682 0 1 1 .964-.964l2.196 2.193zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21z\"],\"circle-close\":[\"M10.01 9.03L7.816 6.837a.682.682 0 1 0-.964.964l2.195 2.193-2.195 2.193a.682.682 0 1 0 .964.965l2.196-2.194 2.196 2.194a.682.682 0 1 0 .963-.965l-2.195-2.193 2.195-2.193a.682.682 0 0 0-.963-.964L10.01 9.03zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z\"],\"close-square-o\":[\"M1.818 1.364a.455.455 0 0 0-.454.454v16.364c0 .25.203.454.454.454h16.364a.455.455 0 0 0 .454-.454V1.818a.455.455 0 0 0-.454-.454H1.818zm8.193 7.647L7.815 6.818a.682.682 0 0 0-.964.964l2.195 2.193-2.195 2.193a.682.682 0 1 0 .964.965l2.196-2.194 2.196 2.194a.682.682 0 1 0 .963-.965l-2.195-2.193 2.195-2.193a.682.682 0 0 0-.963-.964L10.01 9.01zM1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0z\"],\"close-square\":[\"M10.01 9.011L7.816 6.818a.682.682 0 0 0-.964.964l2.195 2.193-2.195 2.193a.682.682 0 1 0 .964.965l2.196-2.194 2.196 2.194a.682.682 0 1 0 .963-.965l-2.195-2.193 2.195-2.193a.682.682 0 0 0-.963-.964L10.01 9.01zM1.819 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0z\"],\"close\":[\"M11.075 10l6.703 6.703a.76.76 0 0 1-1.075 1.075L10 11.075l-6.703 6.703a.76.76 0 0 1-1.075-1.075L8.925 10 2.222 3.297a.76.76 0 1 1 1.075-1.075L10 8.925l6.703-6.703a.76.76 0 0 1 1.075 1.075L11.075 10z\"],\"cloud-download-o\":[\"M5.668 8.668a.712.712 0 0 1-.611.737c-1.282.155-2.201.552-2.78 1.17-.576.612-.874 1.41-.899 2.35.09 1.007.422 1.762.997 2.302.572.537 1.431.822 2.603.83l10.67.001c.996-.067 1.73-.444 2.251-1.139.659-.876.797-1.665.682-2.547-.086-.662-.495-1.502-1.157-2.073-.505-.436-1.3-.701-2.401-.77-.374-.023-.661-.353-.65-.743a4.835 4.835 0 0 0-.912-3.034c-.872-1.23-2.223-1.857-3.551-1.806-1.299.05-2.502.663-3.371 1.822-.612.816-.9 1.772-.871 2.9zm5.178 3.232V7.742c0-.398-.309-.721-.69-.721-.382 0-.691.323-.691.721v4.145l-.788-.812a.68.68 0 0 0-.983-.007.733.733 0 0 0 .007 1.014l1.98 2.041a.68.68 0 0 0 .982.007l1.954-2.014a.733.733 0 0 0-.006-1.014.68.68 0 0 0-.984-.007l-.78.805zM4.3 8.063c.076-1.195.46-2.263 1.153-3.185 1.125-1.502 2.711-2.309 4.407-2.374 1.768-.068 3.559.763 4.712 2.389a6.288 6.288 0 0 1 1.17 3.257c1.069.146 1.925.486 2.563 1.036.944.815 1.516 1.987 1.646 2.991.161 1.237-.045 2.41-.964 3.633-.774 1.03-1.875 1.596-3.295 1.69H4.973c-1.489-.01-2.672-.402-3.522-1.2C.605 15.506.122 14.412 0 12.975c.03-1.376.46-2.525 1.29-3.41.717-.765 1.725-1.26 3.009-1.501z\"],\"cloud-download\":[\"M15.992 7.27H16v1.227a3.999 3.999 0 1 1 0 7.996v.007H4v-.007a3.999 3.999 0 0 1-.802-7.915A3 3 0 0 1 7.51 4.914 4.5 4.5 0 0 1 11.5 2.5a4.499 4.499 0 0 1 4.492 4.77zm-4.538 4.152V6.5h-2v4.921H7l3.454 4.075 3.464-4.073h-2.464z\"],\"cloud-upload-o\":[\"M5.668 8.668a.712.712 0 0 1-.611.737c-1.282.155-2.201.552-2.78 1.17-.576.612-.874 1.41-.899 2.35.09 1.007.422 1.762.997 2.302.572.537 1.431.822 2.603.83l10.67.001c.996-.067 1.73-.444 2.251-1.139.659-.876.797-1.665.682-2.547-.086-.662-.495-1.502-1.157-2.073-.505-.436-1.3-.701-2.401-.77-.374-.023-.661-.353-.65-.743a4.835 4.835 0 0 0-.912-3.034c-.872-1.23-2.223-1.857-3.551-1.806-1.299.05-2.502.663-3.371 1.822-.612.816-.9 1.772-.871 2.9zm3.797.704v4.24c0 .398.31.722.69.722.382 0 .691-.324.691-.722V9.359l.781.805a.68.68 0 0 0 .984-.007.733.733 0 0 0 .006-1.014L10.663 7.13a.68.68 0 0 0-.983.006L7.7 9.177a.733.733 0 0 0-.006 1.014.68.68 0 0 0 .983-.007l.788-.812zm-5.166-1.31c.076-1.194.46-2.262 1.153-3.184 1.125-1.502 2.711-2.309 4.407-2.374 1.768-.068 3.559.763 4.712 2.389a6.288 6.288 0 0 1 1.17 3.257c1.069.146 1.925.486 2.563 1.036.944.815 1.516 1.987 1.646 2.991.161 1.237-.045 2.41-.964 3.633-.774 1.03-1.875 1.596-3.295 1.69H4.973c-1.489-.01-2.672-.402-3.522-1.2C.605 15.506.122 14.412 0 12.975c.03-1.376.46-2.525 1.29-3.41.717-.765 1.725-1.26 3.009-1.501z\"],\"cloud-upload\":[\"M11 17v-3.923h2.463L10 9.003l-3.454 4.075H9V17H4v-.007a3.999 3.999 0 0 1-.802-7.915A3 3 0 0 1 7.51 5.414 4.5 4.5 0 0 1 11.5 3a4.499 4.499 0 0 1 4.492 4.77H16v1.227a3.999 3.999 0 1 1 0 7.996V17h-5z\"],\"coffee\":[\"M1.382 8.505v5.058a5.057 5.057 0 0 0 5.057 5.058h3.677a5.057 5.057 0 0 0 5.057-5.058V8.506L1.382 8.505zm10.043-1.379h3.881c.437.017.754.128.95.336.11.114.188.258.237.43h.06a3.448 3.448 0 1 1-.117 6.895A6.438 6.438 0 0 1 10.116 20H6.44a6.436 6.436 0 0 1-6.436-6.437V8.337c-.02-.433.062-.74.244-.92.183-.18.453-.277.809-.29h2.953a.689.689 0 0 1 .144-.17C4.762 6.44 5.16 5.9 5.36 5.337c.114-.32.101-.51-.022-.771-.078-.166-.569-.942-.667-1.116-.539-.952-.242-2.044.728-3.202a.69.69 0 1 1 1.057.886c-.642.765-.783 1.287-.585 1.637.061.109.593.948.715 1.207.275.585.312 1.152.073 1.822a4.622 4.622 0 0 1-.75 1.327h.859a.689.689 0 0 1 .143-.168c.609-.519 1.007-1.06 1.207-1.622.114-.32.102-.51-.022-.771-.078-.166-.569-.942-.667-1.116-.539-.952-.242-2.044.729-3.202a.69.69 0 1 1 1.056.886c-.641.765-.783 1.287-.585 1.637.062.109.593.948.715 1.207.276.585.312 1.152.073 1.822a4.622 4.622 0 0 1-.75 1.327h.859a.689.689 0 0 1 .143-.168c.61-.519 1.007-1.06 1.207-1.622.114-.32.102-.51-.022-.771-.078-.166-.568-.942-.667-1.116-.538-.952-.242-2.044.729-3.202a.69.69 0 1 1 1.057.886c-.642.765-.784 1.287-.586 1.637.062.109.593.948.715 1.207.276.585.312 1.152.074 1.822a4.622 4.622 0 0 1-.751 1.327zm5.127 2.145v4.138a2.069 2.069 0 0 0 0-4.138z\"],\"component\":[\"M18.62 3.448h-3.448a3.448 3.448 0 0 0-6.896 0H4.828a1.38 1.38 0 0 0-1.38 1.38v3.448a3.448 3.448 0 1 0 0 6.896v3.449c0 .761.618 1.379 1.38 1.379h4.827v-1.38a2.069 2.069 0 1 1 4.138 0V20h4.828A1.38 1.38 0 0 0 20 18.62v-4.827h-1.38a2.069 2.069 0 1 1 0-4.138H20V4.828a1.38 1.38 0 0 0-1.38-1.38zm-3.448 8.276a3.448 3.448 0 0 0 3.449 3.448v3.449h-3.449a3.448 3.448 0 1 0-6.896 0H4.828v-4.828h-1.38a2.069 2.069 0 1 1 0-4.138h1.38V4.828h4.827v-1.38a2.069 2.069 0 1 1 4.138 0v1.38h4.828v3.448a3.448 3.448 0 0 0-3.449 3.448z\"],\"copy\":[\"M6.644 2.983a.252.252 0 0 0-.253.252c0 .139.113.251.253.251h3.713c.14 0 .253-.112.253-.251a.252.252 0 0 0-.253-.252H6.644zm5.257-.181h2.175c.621.004 1.122.205 1.432.638.266.372.372.85.345 1.387L15.85 17.84c.042.552-.062 1.04-.328 1.445-.312.473-.821.71-1.452.716H3.14c-.76-.03-1.323-.209-1.675-.609-.327-.371-.47-.88-.464-1.5V4.84c-.013-.6.154-1.106.518-1.48.376-.384.932-.554 1.647-.559H5.1c.19-.67.81-1.16 1.544-1.16h3.713c.735 0 1.354.49 1.544 1.16zm-.227 1.342c-.29.414-.771.684-1.317.684H6.644c-.546 0-1.027-.27-1.317-.684H3.17c-.383.002-.602.07-.682.152-.091.093-.144.252-.138.531v13.07c-.003.325.052.522.13.61.054.061.286.135.685.151h10.9c.2-.002.28-.04.326-.109.091-.138.133-.334.11-.658l.001-13.096c.014-.293-.027-.482-.096-.578-.026-.035-.116-.072-.336-.073h-2.397zm3.568 13.517V16.32h1.957c.249 0 .45-.2.45-.447V1.789a.449.449 0 0 0-.45-.447H9.643c-.248 0-.45.2-.45.447v.157h-1.35v-.157C7.843.801 8.649 0 9.643 0H17.2C18.194 0 19 .801 19 1.79v14.082c0 .988-.806 1.79-1.8 1.79h-1.958zM4.145 7.725a.673.673 0 0 1-.676-.67c0-.371.303-.672.676-.672h8.103c.372 0 .675.3.675.671 0 .371-.303.671-.675.671H4.145zm0 2.684a.673.673 0 0 1-.676-.67c0-.371.303-.672.676-.672h8.103c.372 0 .675.3.675.671 0 .37-.303.671-.675.671H4.145zm0 2.684a.673.673 0 0 1-.676-.67c0-.371.303-.672.676-.672h4.051c.373 0 .675.3.675.671 0 .37-.302.671-.675.671H4.145z\"],\"copyright\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm3.163-13.09a.698.698 0 0 1-.745 1.179 4.211 4.211 0 0 0-2.257-.647c-2.278 0-4.114 1.775-4.114 3.953s1.836 3.953 4.114 3.953c.801 0 1.567-.22 2.224-.627a.698.698 0 0 1 .735 1.187 5.608 5.608 0 0 1-2.96.836c-3.037 0-5.509-2.39-5.509-5.349 0-2.96 2.472-5.349 5.51-5.349 1.08 0 2.116.303 3.002.864z\"],\"css3\":[\"M1.5 0l1.594 18.056L10 20l6.906-1.944L18.5 0h-17zm13.577 5.852L9.994 8.125l-.013.005h4.917l-.563 6.762-4.334 1.323-.007-.003v.003l-4.358-1.348-.28-3.405h2.162l.14 1.764 2.316.611.02-.006v.003l2.397-.706.164-2.842-2.561-.008-4.78-.016-.163-2.132 4.943-2.153.288-.125H4.864l-.259-2.18h10.683l-.211 2.18z\"],\"cut\":[\"M10.942 9.115l3.268 3.476a3.956 3.956 0 0 1 1.837-.448c2.183 0 3.953 1.759 3.953 3.928C20 18.241 18.23 20 16.047 20c-2.184 0-3.954-1.759-3.954-3.929a3.9 3.9 0 0 1 1.011-2.624l-3.116-3.316-3.105 3.303a3.9 3.9 0 0 1 1.024 2.637c0 2.17-1.77 3.929-3.954 3.929C1.77 20 0 18.241 0 16.071s1.77-3.928 3.953-3.928c.657 0 1.276.159 1.82.44l3.26-3.468L1.56 1.167a.69.69 0 0 1 .034-.98.7.7 0 0 1 .986.033L9.988 8.1 17.394.22a.7.7 0 0 1 .986-.033.69.69 0 0 1 .034.98l-7.472 7.948zm-6.989 9.498a2.55 2.55 0 0 0 2.559-2.542 2.55 2.55 0 0 0-2.559-2.542 2.55 2.55 0 0 0-2.558 2.542 2.55 2.55 0 0 0 2.558 2.542zm12.094 0a2.55 2.55 0 0 0 2.558-2.542 2.55 2.55 0 0 0-2.558-2.542 2.55 2.55 0 0 0-2.559 2.542 2.55 2.55 0 0 0 2.559 2.542z\"],\"d-arrow-left\":[\"M2.722 9.897l7.068 6.908a.69.69 0 0 1 0 .99.727.727 0 0 1-1.01 0L1.21 10.4a.69.69 0 0 1-.006-.985l7.193-7.203a.726.726 0 0 1 1.012-.012.69.69 0 0 1 .012.99l-6.7 6.708zm9 0l7.068 6.908a.69.69 0 0 1 0 .99.727.727 0 0 1-1.01 0L10.21 10.4a.69.69 0 0 1-.006-.985l7.193-7.203a.726.726 0 0 1 1.012-.012.69.69 0 0 1 .012.99l-6.7 6.708z\"],\"d-arrow-right\":[\"M17.278 9.897l-7.068 6.908a.69.69 0 0 0 0 .99.727.727 0 0 0 1.01 0l7.57-7.396a.69.69 0 0 0 .006-.985l-7.193-7.203a.726.726 0 0 0-1.012-.012.69.69 0 0 0-.012.99l6.7 6.708zm-9 0L1.21 16.805a.69.69 0 0 0 0 .99.727.727 0 0 0 1.01 0L9.79 10.4a.69.69 0 0 0 .006-.985L2.603 2.211a.726.726 0 0 0-1.012-.012.69.69 0 0 0-.012.99l6.7 6.708z\"],\"d-caret\":[\"M4.222 7.613l5.229-5.39a.786.786 0 0 1 1.097 0l5.23 5.39c.402.414.247 1.054-.371 1.054H4.592c-.616 0-.772-.64-.37-1.054zm0 4.774c-.402-.414-.246-1.054.37-1.054h10.815c.618 0 .773.64.37 1.054l-5.23 5.39a.786.786 0 0 1-1.096 0l-5.229-5.39z\"],\"dashboard\":[\"M11.003 8.295l1.975-1.58a.667.667 0 1 1 .833 1.041l-2.038 1.631a1.333 1.333 0 1 1-.77-1.092zm7.04 4.937a8.633 8.633 0 0 0 .62-3.002H17.58a.667.667 0 0 1 0-1.334h1.017a8.608 8.608 0 0 0-.57-2.168l-.95.492a.667.667 0 1 1-.612-1.184l.965-.5a8.71 8.71 0 0 0-1.84-2.158l-.601.789a.667.667 0 1 1-1.06-.81l.58-.76a8.615 8.615 0 0 0-3.842-1.238v1.035a.667.667 0 0 1-1.334 0V1.359A8.614 8.614 0 0 0 5.637 2.51l.522.584a.667.667 0 0 1-.995.888l-.631-.707a8.714 8.714 0 0 0-1.775 1.963l.843.505a.667.667 0 0 1-.686 1.143l-.803-.481a8.607 8.607 0 0 0-.709 2.491h.907a.667.667 0 1 1 0 1.334h-.974c.03 1.17.293 2.283.743 3.293l.836-.559a.667.667 0 0 1 .741 1.109l-.939.627A8.66 8.66 0 0 0 10 18.667a8.662 8.662 0 0 0 7.447-4.23l-1.132-.757a.667.667 0 0 1 .74-1.109l.989.661zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z\"],\"date\":[\"M5 10.642h1.667v1.666H5v-1.666zm4.167 0h1.666v1.666H9.167v-1.666zm4.166 0H15v1.666h-1.667v-1.666zM5 14.619h1.667v1.666H5v-1.666zm4.167 0h1.666v1.666H9.167v-1.666zm4.166 0H15v1.666h-1.667v-1.666zM1.4 6.344l17.2.013V4.008a.6.6 0 0 0-.6-.6h-2.71v.929a.7.7 0 0 1-1.4 0v-.929H6.373v.92a.7.7 0 0 1-1.4 0v-.92H2a.6.6 0 0 0-.6.6v2.336zm0 1.399V18a.6.6 0 0 0 .6.6h16a.6.6 0 0 0 .6-.6V7.756L1.4 7.743zm13.89-5.734H18a2 2 0 0 1 2 1.999v13.993A2 2 0 0 1 18 20H2a2 2 0 0 1-2-1.999V4.008a2 2 0 0 1 2-1.999h2.973V.699a.7.7 0 0 1 1.4 0v1.31h7.517v-1.3a.7.7 0 0 1 1.4 0v1.3z\"],\"delete\":[\"M2.393 4.196H.686A.689.689 0 0 1 0 3.504c0-.383.307-.692.686-.692h5.47c.014-.514.205-1.035.554-1.55C7.23.495 8.042.074 9.129 0l1.974.005c.778.094 1.46.46 2.022 1.078.459.504.7 1.09.714 1.729h5.475c.379 0 .686.31.686.692a.689.689 0 0 1-.686.692h-1.836v11.626c0 2.543-.949 4.178-3.041 4.178H5.419c-2.092 0-3.026-1.626-3.026-4.178V4.196zm1.372 0v11.626c0 1.888.52 2.794 1.654 2.794h9.018c1.139 0 1.67-.914 1.67-2.794V4.196H3.765zm3.764-1.384h4.938c-.014-.292-.129-.548-.352-.793-.346-.38-.73-.586-1.093-.635l-1.846-.002c-.642.045-1.065.264-1.334.662-.198.291-.297.543-.313.768zm-1.5 4.22c0-.382.308-.692.686-.692.379 0 .686.31.686.692v8.05a.689.689 0 0 1-.686.692.689.689 0 0 1-.685-.692v-8.05zm2.728 0c0-.382.307-.692.685-.692.38 0 .686.31.686.692v8.05a.689.689 0 0 1-.686.692.689.689 0 0 1-.685-.692v-8.05zm2.727 0c0-.382.307-.692.686-.692.378 0 .685.31.685.692v8.05a.689.689 0 0 1-.685.692.689.689 0 0 1-.686-.692v-8.05z\"],\"dingding\":[\"M17.466 7.475c-.034.147-.115.36-.228.618h.003l-.013.025c-.666 1.497-2.405 4.433-2.405 4.433s-.002-.007-.008-.018l-.509.929h2.45L12.075 20l1.062-4.447H11.21l.67-2.94c-.543.139-1.183.326-1.94.583 0 0-1.026.632-2.957-1.214 0 0-1.302-1.206-.547-1.505.322-.127 1.558-.29 2.533-.428 1.315-.188 2.124-.286 2.124-.286s-4.056.065-5.018-.096C5.113 9.508 3.89 7.82 3.632 6.339c0 0-.403-.815.864-.43 1.266.387 6.51 1.501 6.51 1.501S4.184 5.213 3.731 4.678C3.278 4.142 2.395 1.753 2.51.285c0 0 .05-.366.407-.268 0 0 5.041 2.42 8.488 3.745 3.45 1.324 6.449 1.998 6.061 3.713z\"],\"dislike-o\":[\"M1.86 10.505V3.348h3.03l.153-.018c2.813-.656 4.677-1.129 5.606-1.422 1.234-.389 1.694-.484 2.531-.54.626-.043 1.337.198 1.661.528.179.182.313.556.366 1.136a.681.681 0 0 0 .406.563c.249.108.456.284.629.54.16.234.264.67.283 1.301a.682.682 0 0 0 .339.57c.582.337.87.717.93 1.163.066.493-.094 1.048-.513 1.68a.683.683 0 0 0 .176.936c.401.282.621.674.676 1.23.088.886-.477 1.541-1.756 1.672a9.42 9.42 0 0 1-3.394-.283.68.68 0 0 0-.786.95c.5 1.058.778 1.931.843 2.607.085.897-.122 1.547-.606 2.083-.367.406-.954.638-1.174.59-.29-.062-.479-.23-.725-.818-.145-.348-.215-.644-.335-1.335-.115-.656-.178-.952-.309-1.34-.395-1.176-1.364-2.395-2.665-3.236a11.877 11.877 0 0 0-2.937-1.37.676.676 0 0 0-.2-.03H1.86zm-.042-8.52c-.323-.009-.613.063-.856.233-.31.217-.456.559-.459.953l.003 7.323c-.034.39.081.748.353 1.014.255.25.588.368.94.36h2.185c.899.289 1.734.683 2.506 1.182 1.048.678 1.82 1.65 2.115 2.526.101.302.155.552.257 1.14.138.789.224 1.156.422 1.628.41.982.948 1.462 1.69 1.623.73.158 1.793-.263 2.465-1.007.745-.824 1.074-1.855.952-3.129-.052-.548-.204-1.161-.454-1.844.865.125 1.725.144 2.578.056 2.007-.205 3.134-1.512 2.97-3.164-.072-.712-.33-1.317-.769-1.792.369-.711.516-1.414.424-2.1-.106-.79-.546-1.448-1.278-1.959-.057-.693-.216-1.246-.498-1.66a2.87 2.87 0 0 0-.851-.834c-.108-.684-.335-1.219-.706-1.595-.615-.626-1.714-.999-2.718-.931-.953.064-1.517.18-2.847.6-.877.277-2.693.737-5.43 1.377H1.817zm1.701 8.831a.68.68 0 0 0 .68.682.68.68 0 0 0 .678-.682V3.138a.68.68 0 0 0-.679-.681.68.68 0 0 0-.679.681v7.678z\"],\"document\":[\"M2.768 15.133v-2.419H1.665A.674.674 0 0 1 1 12.033c0-.377.298-.682.665-.682h1.103V8.92H1.665A.674.674 0 0 1 1 8.238c0-.377.298-.682.665-.682h1.103V5.122H1.665A.674.674 0 0 1 1 4.441c0-.377.298-.682.665-.682h1.103v-1.94C2.768.813 3.562 0 4.542 0h12.684C18.206 0 19 .814 19 1.818v16.364C19 19.186 18.206 20 17.226 20H4.542c-.98 0-1.774-.814-1.774-1.818v-1.685H1.665A.674.674 0 0 1 1 15.815c0-.377.298-.682.665-.682h1.103zm2.214.001c.35.02.627.317.627.68a.674.674 0 0 1-.665.683H4.1v1.763a.404.404 0 0 0 .12.248c.073.077.163.12.27.13h9.488V1.364H4.466a.344.344 0 0 0-.246.118.427.427 0 0 0-.12.268V3.76h.844a.668.668 0 0 1 .654.556.674.674 0 0 1-.654.807H4.1v2.431h.873l.047.007c.331.039.59.327.59.678a.674.674 0 0 1-.666.682H4.1v2.43h.844a.65.65 0 0 1 .312.08.688.688 0 0 1 .302.866.666.666 0 0 1-.614.418H4.1v2.419h.873l.01.001zM15.304 1.362v17.274h1.974c.091 0 .176-.042.256-.13a.473.473 0 0 0 .134-.267V1.794a.486.486 0 0 0-.134-.298.415.415 0 0 0-.292-.134h-1.938z\"],\"dot-chart\":[\"M12.032 3v2.002a1 1 0 0 1-1 1.001H1.001a1 1 0 0 1-1.002-1V3A1 1 0 0 1 1.001 2h10.03a1 1 0 0 1 1 1zm2.988 11.998v2.001a1 1 0 0 1-1 1.001H1a1 1 0 0 1-1-1v-2.002a1 1 0 0 1 1-1.001h13.02a1 1 0 0 1 1 1zM20 9.008v2.002a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V9.01a1 1 0 0 1 1-1.001h18a1 1 0 0 1 1 1z\"],\"down-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm.005-7.572l3.49-3.402a.682.682 0 0 1 .952.977l-3.971 3.87a.682.682 0 0 1-.957-.004l-3.895-3.87a.682.682 0 1 1 .962-.968l3.419 3.397z\"],\"down-circle\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm.005-8.967l-3.42-3.397a.682.682 0 1 0-.96.967l3.894 3.87c.265.263.69.265.957.005l3.971-3.87a.682.682 0 1 0-.951-.977l-3.491 3.402z\"],\"down-square-o\":[\"M1.818 1.364a.455.455 0 0 0-.454.454v16.364c0 .25.203.454.454.454h16.364a.455.455 0 0 0 .454-.454V1.818a.455.455 0 0 0-.454-.454H1.818zm0-1.364h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zm8.187 11.014l-3.42-3.397a.682.682 0 0 0-.96.967l3.894 3.87c.265.263.69.265.957.005l3.971-3.87a.682.682 0 1 0-.951-.977l-3.491 3.402z\"],\"down-square\":[\"M1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zm8.187 11.014l-3.42-3.397a.682.682 0 0 0-.96.967l3.894 3.87c.265.263.69.265.957.005l3.971-3.87a.682.682 0 1 0-.951-.977l-3.491 3.402z\"],\"download\":[\"M10.68 11.57l3.061-3.08a.682.682 0 0 1 .975.004.707.707 0 0 1-.004.99l-4.356 4.38a.682.682 0 0 1-.973-.003l-4.296-4.38a.707.707 0 0 1 .002-.99.682.682 0 0 1 .975.002L9.3 11.795V.699C9.3.313 9.609 0 9.99 0c.38 0 .69.313.69.7v10.87zM0 12.75c0-.385.309-.699.69-.699.38 0 .688.314.688.7v4.913c0 .333.065.572.182.736.081.114.224.184.44.201l15.817.001c.42-.023.627-.1.655-.14.084-.123.146-.393.15-.8v-4.911c0-.386.308-.7.689-.7.38 0 .689.314.689.7v4.918c-.006.67-.127 1.2-.399 1.594-.328.476-.908.692-1.747.737l-15.903-.002c-.646-.046-1.168-.302-1.507-.777-.302-.423-.446-.95-.444-1.558V12.75z\"],\"edit\":[\"M6.815 18.116L.5 20l1.792-6.64 4.523 4.756zM19.204 5.09l-1.521 1.6-4.524-4.757L14.68.334s.726-.76 1.463.014l2.976 3.129c.807.848.086 1.613.086 1.613zm-1.977 2.077L7.266 17.64l-4.523-4.754 9.962-10.474 4.522 4.755z\"],\"enter\":[\"M2.306 15.676l3.13 3.13a.7.7 0 0 1-.99.99l-4.24-4.242a.7.7 0 0 1 0-.99l4.241-4.241a.7.7 0 1 1 .99.99l-2.964 2.963H13.3a5.299 5.299 0 0 0 5.3-5.298V.7A.7.7 0 0 1 20 .7v8.278c0 3.699-3 6.698-6.699 6.698H2.306z\"],\"environment-o\":[\"M10.539 19.718a.645.645 0 0 1-1.067 0l-5.858-8.4a7.453 7.453 0 0 1-.972-2.314c-.387-1.726 0-4.106 1.368-5.974C5.346 1.206 7.21.315 9.094.069c1.438-.189 2.808-.004 4.277.736 1.139.574 2.171 1.551 3.125 2.954a7.134 7.134 0 0 1 .996 3.343c.061 1.225-.233 2.517-.873 3.874l-.057.1-6.023 8.642zm4.922-9.387c.531-1.142.767-2.194.718-3.159-.05-.99-.316-1.886-.78-2.667-.812-1.192-1.682-2.015-2.605-2.48-1.223-.617-2.338-.767-3.535-.61-1.564.204-3.109.943-4.2 2.433-1.12 1.529-1.44 3.497-1.137 4.85.14.628.406 1.256.778 1.856l5.305 7.606 5.456-7.829zm-5.43.68c-1.958 0-3.554-1.598-3.554-3.58s1.596-3.58 3.554-3.58c1.959 0 3.554 1.598 3.554 3.58s-1.595 3.58-3.554 3.58zm0-1.356c1.241 0 2.24-1 2.24-2.224a2.232 2.232 0 0 0-2.24-2.224c-1.24 0-2.24 1-2.24 2.224 0 1.223 1 2.224 2.24 2.224z\"],\"environment\":[\"M10.539 19.718a.645.645 0 0 1-1.067 0l-5.858-8.4a7.453 7.453 0 0 1-.972-2.314c-.387-1.726 0-4.106 1.368-5.974C5.346 1.206 7.21.315 9.094.069c1.438-.189 2.808-.004 4.277.736 1.139.574 2.171 1.551 3.125 2.954a7.134 7.134 0 0 1 .996 3.343c.061 1.225-.233 2.517-.873 3.874l-.057.1-6.023 8.642zM10.03 9.655c-1.24 0-2.24-1-2.24-2.224 0-1.224 1-2.224 2.24-2.224 1.241 0 2.24 1 2.24 2.224a2.232 2.232 0 0 1-2.24 2.224zm0 2.58c2.681 0 4.838-2.16 4.838-4.804 0-2.643-2.157-4.804-4.838-4.804S5.193 4.787 5.193 7.43c0 2.643 2.157 4.804 4.838 4.804z\"],\"eye-o\":[\"M5.09 14.781c1.749 1.368 3.219 1.806 4.91 1.806 1.471 0 3.391-.613 5.238-1.919 1.332-.942 2.433-2.315 3.3-4.13-.94-1.632-2.028-2.968-3.263-4.013-1.71-1.448-3.582-2.112-5.312-2.112-1.79 0-3.85.798-5.608 2.474-1.266 1.206-2.225 2.42-2.88 3.638 1.065 1.789 2.27 3.206 3.614 4.256zM10 18c-1.974 0-3.735-.525-5.741-2.094-1.577-1.232-2.964-2.901-4.164-5a.724.724 0 0 1-.021-.678c.734-1.493 1.851-2.95 3.347-4.377C5.438 3.928 7.833 3 9.963 3c2.043 0 4.223.775 6.184 2.434 1.449 1.226 2.703 2.802 3.763 4.722.11.198.12.439.027.645-.988 2.2-2.295 3.882-3.921 5.032C13.94 17.3 11.749 18 9.999 18zm.234-3.6a3.7 3.7 0 1 1 0-7.4 3.7 3.7 0 0 1 0 7.4zm0-1.4a2.3 2.3 0 1 0 0-4.6 2.3 2.3 0 0 0 0 4.6z\"],\"eye\":[\"M10 17.5c-1.974 0-3.735-.525-5.741-2.094-1.577-1.232-2.964-2.901-4.164-5a.724.724 0 0 1-.021-.678c.734-1.493 1.851-2.95 3.347-4.377C5.438 3.428 7.833 2.5 9.963 2.5c2.043 0 4.223.775 6.184 2.434 1.449 1.226 2.703 2.802 3.763 4.722.11.198.12.439.027.645-.988 2.2-2.295 3.882-3.921 5.032C13.94 16.8 11.749 17.5 9.999 17.5zm0-3.589c2.148 0 3.89-1.792 3.89-4.002S12.147 5.906 10 5.906c-2.15 0-3.891 1.792-3.891 4.003 0 2.21 1.742 4.002 3.89 4.002zm0-1.412c-1.391 0-2.518-1.16-2.518-2.59s1.127-2.59 2.517-2.59 2.517 1.16 2.517 2.59-1.127 2.59-2.517 2.59z\"],\"facebook\":[\"M18.896 0H1.104C.494 0 0 .494 0 1.104v17.792C0 19.506.494 20 1.104 20h9.578v-7.745H8.076V9.237h2.606V7.01c0-2.584 1.578-3.99 3.883-3.99 1.104 0 2.052.082 2.329.119v2.7h-1.598c-1.254 0-1.496.596-1.496 1.47v1.927h2.989l-.39 3.018h-2.6V20h5.097c.61 0 1.104-.494 1.104-1.104V1.104C20 .494 19.506 0 18.896 0z\"],\"file-add\":[\"M16.839 15h-2.865v-3.046a.7.7 0 0 0-.193-.498.619.619 0 0 0-.468-.205.619.619 0 0 0-.469.205.7.7 0 0 0-.193.498v3.047H9.933a.619.619 0 0 0-.468.205.7.7 0 0 0-.193.498.7.7 0 0 0 .193.498.619.619 0 0 0 .468.205h2.718v2.89a.7.7 0 0 0 .193.498.619.619 0 0 0 .469.205c.183 0 .34-.068.468-.205a.7.7 0 0 0 .193-.498v-2.89h2.865c.184 0 .34-.069.468-.205a.7.7 0 0 0 .193-.498.7.7 0 0 0-.193-.498.619.619 0 0 0-.468-.205zm.516-9.973L13.33.481l-.44-.479H3.78c-.17 0-.36-.01-.526.017A.827.827 0 0 0 2.742.3c-.281.318-.24.717-.24 1.108v17.185c0 .391-.045.814.24 1.11.285.296.476.296.843.296H8.61c.184 0 .34-.068.469-.205a.7.7 0 0 0 .193-.498.7.7 0 0 0-.193-.498.619.619 0 0 0-.469-.205H3.845L3.839 1.364h7.275v3.593c0 .391.152.743.391.996.24.253.57.41.937.41h3.735v4.185a.7.7 0 0 0 .193.498.619.619 0 0 0 .468.205c.184 0 .34-.069.469-.205a.7.7 0 0 0 .192-.498V5.475l.001-.279-.145-.169zm-4.837-.172c-.041-.053-.066-.146-.075-.28V1.52l3.059 3.437H12.76c-.12-.016-.2-.05-.242-.103z\"],\"file-excel\":[\"M15.534 1.36L14.309 0H4.662c-.696 0-.965.516-.965.919v3.63H5.05V1.653c0-.154.13-.284.28-.284h6.903c.152 0 .228.027.228.152v4.82h4.913c.193 0 .268.1.268.246v11.77c0 .246-.1.283-.25.283H5.33a.287.287 0 0 1-.28-.284V17.28H3.706v1.695c-.018.6.302 1.025.956 1.025H18.06c.7 0 .939-.507.939-.969V5.187l-.35-.38-3.116-3.446zm-1.698.16l.387.434 2.596 2.853.143.173h-2.653c-.2 0-.327-.033-.38-.1-.053-.065-.084-.17-.093-.313V1.52zm-1.09 9.147h4.577v1.334h-4.578v-1.334zm0-2.666h4.577v1.333h-4.578V8zm0 5.333h4.577v1.334h-4.578v-1.334zM1 5.626v10.667h10.465V5.626H1zm5.233 6.204l-.64.978h.64V14H3.016L5.35 10.49 3.282 7.334H5.01L6.234 9.17l1.223-1.836h1.727L7.112 10.49 9.449 14H7.656l-1.423-2.17z\"],\"file-jpg\":[\"M8.928 9.097a2.07 2.07 0 0 0-.526.053v1.728c.109.027.242.035.426.035.675 0 1.093-.356 1.093-.955 0-.54-.36-.86-.993-.86zm8.996-1.943h-.514l.027-1.89a.464.464 0 0 0-.12-.298L12.901.134A.393.393 0 0 0 12.618 0h-9.24a.8.8 0 0 0-.787.784v6.37h-.515c-.285 0-.56.118-.76.328-.203.21-.316.495-.316.793v5.83c0 .618.482 1.12 1.076 1.12h.515v3.99A.8.8 0 0 0 3.38 20h13.278c.415 0 .78-.352.78-.784v-3.99h.487c.594 0 1.076-.503 1.076-1.122v-5.83c0-.296-.113-.582-.315-.792a1.054 1.054 0 0 0-.76-.328zM3.95 1.378h6.956v4.577a.4.4 0 0 0 .11.277c.071.074.167.115.267.115h4.759v.807H3.95V1.378zm7.23 8.545c0 .573-.184 1.06-.517 1.39-.434.426-1.076.617-1.827.617-.167 0-.317-.009-.434-.026v2.094h-1.17V8.22c.393-.07.854-.122 1.63-.122.783 0 1.342.157 1.717.47.359.295.6.781.6 1.355zm-7.792 2.963c.175.06.4.104.65.104.534 0 .867-.252.867-1.164V8.142h1.268v3.7c0 1.67-.768 2.251-2.002 2.251a3.17 3.17 0 0 1-.925-.139l.142-1.068zm.562 5.736v-3.397h12.092v3.397H3.95zm12.734-4.894a6.061 6.061 0 0 1-1.877.33c-1.025 0-1.767-.269-2.284-.79-.517-.504-.801-1.268-.793-2.129.009-1.946 1.368-3.058 3.211-3.058.726 0 1.285.147 1.56.286l-.267 1.06c-.309-.139-.693-.252-1.31-.252-1.059 0-1.86.626-1.86 1.895 0 1.207.726 1.92 1.769 1.92.292 0 .525-.035.625-.087v-1.225h-.867v-1.034h2.093v3.084zM12.291 1.52l.385.434 2.58 2.853.143.173h-2.637c-.2 0-.325-.033-.378-.1-.053-.065-.084-.17-.093-.313V1.52z\"],\"file-pdf\":[\"M17.924 7.154h-.514l.027-1.89a.464.464 0 0 0-.12-.298L12.901.134A.393.393 0 0 0 12.618 0h-9.24a.8.8 0 0 0-.787.784v6.37h-.515c-.285 0-.56.118-.76.328-.203.21-.316.495-.316.793v5.83c0 .618.482 1.12 1.076 1.12h.515v3.99A.8.8 0 0 0 3.38 20h13.278c.415 0 .78-.352.78-.784v-3.99h.487c.594 0 1.076-.503 1.076-1.122v-5.83c0-.296-.113-.582-.315-.792a1.054 1.054 0 0 0-.76-.328zM3.95 1.378h6.956v4.577a.4.4 0 0 0 .11.277c.071.074.167.115.267.115h4.759v.807H3.95V1.378zm0 17.244v-3.397h12.092v3.397H3.95zM12.291 1.52l.385.434 2.58 2.853.143.173h-2.637c-.2 0-.325-.033-.378-.1-.053-.065-.084-.17-.093-.313V1.52zM3 14.232v-6h1.918c.726 0 1.2.03 1.42.09.34.09.624.286.853.588.228.301.343.69.343 1.168 0 .368-.066.678-.198.93-.132.25-.3.447-.503.59a1.72 1.72 0 0 1-.62.285c-.285.057-.698.086-1.239.086h-.779v2.263H3zm1.195-4.985v1.703h.654c.471 0 .786-.032.945-.094a.786.786 0 0 0 .508-.762.781.781 0 0 0-.19-.54.823.823 0 0 0-.48-.266c-.142-.027-.429-.04-.86-.04h-.577zm4.04-1.015h2.184c.493 0 .868.038 1.127.115.347.103.644.288.892.552.247.265.436.589.565.972.13.384.194.856.194 1.418 0 .494-.06.92-.182 1.277-.148.437-.36.79-.634 1.06-.207.205-.487.365-.84.48-.263.084-.616.126-1.057.126H8.235v-6zM9.43 9.247v3.974h.892c.334 0 .575-.019.723-.057.194-.05.355-.132.482-.25.128-.117.233-.31.313-.579.081-.269.121-.635.121-1.099 0-.464-.04-.82-.12-1.068a1.377 1.377 0 0 0-.34-.581 1.132 1.132 0 0 0-.553-.283c-.167-.038-.494-.057-.98-.057H9.43zm4.513 4.985v-6H18v1.015h-2.862v1.42h2.47v1.015h-2.47v2.55h-1.195z\"],\"file-text\":[\"M12.31 1.367l-.004-.003H3.824v17.272h12.352V6.342h-2.829c-.705.028-1.25-.086-1.64-.394-.454-.358-.62-.968-.598-1.781v-2.8h1.2zm.075.085l.047.057v2.676c-.012.439.047.656.08.68.095.076.358.131.81.114h2.193l.375.424.257.285-3.762-4.236zM3.382 0h9.507L17.5 5.192V19.09c0 .502-.395.909-.882.909H3.382a.896.896 0 0 1-.882-.91V.91c0-.503.395-.91.882-.91zM5.81 8.636a.672.672 0 0 1-.662-.681c0-.377.296-.682.662-.682h5.115c.365 0 .662.305.662.682a.672.672 0 0 1-.662.681H5.809zm0 7.273a.672.672 0 0 1-.662-.682c0-.376.296-.682.662-.682h5.115c.365 0 .662.306.662.682a.672.672 0 0 1-.662.682H5.809zm0-3.636a.672.672 0 0 1-.662-.682c0-.377.296-.682.662-.682h8.17c.365 0 .662.305.662.682a.672.672 0 0 1-.662.682h-8.17z\"],\"file-unknown\":[\"M12.31 1.367l-.004-.003H3.824v17.272h12.352V6.342h-2.829c-.705.028-1.25-.086-1.64-.394-.454-.358-.62-.968-.598-1.781v-2.8h1.2zm.075.085l.047.057v2.676c-.012.439.047.656.08.68.095.076.358.131.81.114h2.193l.375.424.257.285-3.762-4.236zM3.382 0h9.507L17.5 5.192V19.09c0 .502-.395.909-.882.909H3.382a.896.896 0 0 1-.882-.91V.91c0-.503.395-.91.882-.91zm5.633 16.378a.703.703 0 0 1-.706-.7c0-.386.316-.699.706-.699.39 0 .706.313.706.7 0 .386-.316.699-.706.699zm-1.618-5.872a.661.661 0 0 1-.795.508.683.683 0 0 1-.493-.82 3.47 3.47 0 0 1 .782-1.548c.554-.627 1.26-.957 2.074-1.02.81-.064 1.604.241 2.218.856.577.578.773 1.277.699 1.998-.055.54-.404 1.071-.887 1.57a19.59 19.59 0 0 1-.46.456c-.29.281-.402.391-.505.5-.204.22-.267.311-.301.412-.034.101-.08.321-.127.641a.665.665 0 0 1-.754.571.68.68 0 0 1-.554-.777c.059-.396.117-.683.184-.882.11-.326.274-.562.599-.91.124-.133.242-.249.547-.545.23-.223.334-.325.433-.428.283-.292.495-.615.509-.751a1.01 1.01 0 0 0-.306-.877c-.345-.346-.768-.508-1.195-.475-.49.038-.878.22-1.196.58a2.093 2.093 0 0 0-.472.941z\"],\"filter\":[\"M8.398 14.605l1.323 1.143c.29.251.323.691.075.984a.688.688 0 0 1-.976.075l-1.565-1.352a.7.7 0 0 1-.242-.53V7.938L1.171 1.155C.78.703 1.1 0 1.694 0h16.612c.594 0 .912.704.523 1.155l-5.85 6.784v11.363c0 .386-.31.698-.692.698a.695.695 0 0 1-.692-.698V7.678a.7.7 0 0 1 .17-.458l5.023-5.825H3.21L8.228 7.22a.7.7 0 0 1 .17.458v6.927z\"],\"firefox\":[\"M19.971 6.676l-.231 1.422s-.332-2.633-.737-3.617c-.622-1.508-.899-1.496-.9-1.494.416 1.013.34 1.558.34 1.558s-.737-1.925-2.689-2.538c-2.162-.678-3.331-.492-3.466-.458h-.06l.048.004-.002.001c.009.01 2.389.398 2.81.954 0 0-1.01 0-2.016.277-.046.013 3.701.448 4.467 4.031 0 0-.41-.82-.919-.959.334.973.249 2.818-.07 3.735-.04.118-.082-.51-.71-.78.202 1.376-.011 3.56-1.01 4.161-.077.047.626-2.155.143-1.304-2.788 4.09-6.082 1.887-7.564.918.76.158 2.2-.024 2.838-.479l.002-.001c.693-.453 1.103-.785 1.472-.706.368.079.614-.275.327-.59-.287-.314-.983-.747-1.924-.51-.664.166-1.487.869-2.743.157-.964-.547-1.055-1.001-1.064-1.316.024-.11.054-.215.09-.31.11-.297.447-.387.634-.457.318.052.591.147.878.288a4.641 4.641 0 0 0 0-.35c.028-.053.01-.21-.034-.404a2.827 2.827 0 0 0-.132-.574l.004-.002a.011.011 0 0 0 .004-.003v-.001a.023.023 0 0 0 .005-.009c.02-.086.235-.253.502-.432.24-.16.522-.33.744-.463.196-.116.346-.203.378-.226l.042-.03.009-.007.006-.004a.744.744 0 0 0 .296-.553v-.002l.003-.029.001-.02.001-.017.001-.038v-.003a1.349 1.349 0 0 0-.008-.149v-.002l-.001-.005-.003-.008-.003-.01c-.035-.077-.163-.105-.693-.114h-.001a49.458 49.458 0 0 0-.87-.003c-.649.003-1.008-.607-1.122-.843.157-.831.61-1.423 1.356-1.825.014-.008.011-.014-.005-.018.146-.085-1.763-.003-2.64 1.066-.78-.186-1.458-.173-2.043-.042a2.519 2.519 0 0 1-.42-.049c-.388-.338-.946-.96-.975-1.705l-.005.004-.002-.022s-1.186.873-1.008 3.25l-.002.11c-.321.417-.48.767-.492.844C.523 6.53.235 7.363 0 8.63c0 0 .164-.498.494-1.063-.242.711-.433 1.816-.321 3.474 0 0 .03-.367.134-.897.082 1.028.44 2.298 1.345 3.79 1.737 2.866 4.407 4.313 7.359 4.535a10.5 10.5 0 0 0 1.59.004l.148-.011c.605-.04 1.214-.128 1.821-.269 8.304-1.92 7.401-11.517 7.401-11.517z\"],\"folder-add\":[\"M17.008 14.674l2.313.025c.38.004.69.311.69.685a.673.673 0 0 1-.687.67l-2.3-.025.025 2.264a.673.673 0 0 1-.68.676.694.694 0 0 1-.697-.679l-.026-2.276-2.313-.026a.694.694 0 0 1-.69-.685c0-.374.308-.674.688-.67l2.3.025-.026-2.263a.673.673 0 0 1 .681-.677c.38 0 .692.305.696.679l.026 2.277zM9.596 4.982h8.265c.782.015 1.355.218 1.666.704.232.362.346.782.346 1.246v4.414c0 .37-.303.671-.677.671a.674.674 0 0 1-.678-.67V6.931a.95.95 0 0 0-.135-.528c-.01-.015-.175-.074-.536-.08h-8.25c-.346 0-.661-.088-.927-.27-.336-.232-.505-.616-.592-1.16L7.926 3.79a.642.642 0 0 0-.182-.355c-.057-.053-.168-.09-.365-.092L1.867 3.34c-.232.018-.337.065-.37.113-.083.116-.134.292-.142.519l-.002 12.964c.025.316.098.5.188.58.096.087.277.142.57.142h9.793c.374 0 .677.3.677.671 0 .37-.303.671-.677.671H2.111c-.605 0-1.108-.155-1.48-.49-.38-.341-.58-.841-.631-1.522V3.95c.017-.493.142-.92.387-1.267.295-.417.771-.634 1.426-.683h5.57c.525.004.969.152 1.299.466.296.281.487.64.58 1.099l.157 1.134c.032.198.067.28.025.253.027.017.072.03.152.03z\"],\"folder-open\":[\"M2.282 3.828c-.35.063-.566.189-.691.374-.165.245-.239.51-.225.841v11.718L.002 15.82V5.072A2.6 2.6 0 0 1 .45 3.474c.357-.53.929-.85 1.666-.966l.108-.008h3.56c.742.038 1.355.35 1.783.917.387.51.472.91.484 1.639.002.088.003.15.006.201.046 0 .109-.003.193-.01h5.636l.101.008a2.6 2.6 0 0 1 1.489.724c.435.431.632 1.028.614 1.734v1.799h-1.364V7.698c.01-.39-.073-.639-.224-.789a1.21 1.21 0 0 0-.671-.333l-5.516-.003c-.854.08-1.504-.252-1.601-1.018a3.953 3.953 0 0 1-.027-.478c-.008-.475-.043-.642-.218-.873a.908.908 0 0 0-.72-.376H2.281zM7.96 5.254a.174.174 0 0 0-.003-.002l.003.002zM.428 14.607l3.445-3.833c.538-.558 1.02-.94 1.465-1.147.461-.213 1.028-.307 1.687-.295h11.03c.83.014 1.458.304 1.769.908.294.574.21 1.226-.18 1.91l-.054.08-2.843 3.626c-.34.448-.73.818-1.172 1.106-.483.316-1.088.49-1.851.538H2.016c-.633 0-1.13-.141-1.472-.477-.42-.414-.589-.85-.531-1.394.035-.338.169-.668.415-1.022zm18.175-3.773c-.05-.098-.202-.168-.56-.174H7.012c-.476-.009-.839.051-1.088.166-.265.123-.624.409-1.013.807l-3.376 3.749a.858.858 0 0 0-.165.383c-.015.139.003.186.143.323.04.039.2.084.503.084l11.663.002c.494-.032.87-.14 1.136-.314.308-.201.585-.464.84-.801l2.82-3.594c.17-.311.191-.508.128-.631z\"],\"folder\":[\"M9.566 5.838a1.357 1.357 0 0 1-1.347-1.135L7.984 3.22a.452.452 0 0 0-.45-.378H1.818c-.25 0-.454.2-.454.447v13.422c0 .247.203.447.454.447h16.364c.25 0 .454-.2.454-.447V6.285a.451.451 0 0 0-.454-.447H9.566zm0-1.342h8.616c1.004 0 1.818.8 1.818 1.79V16.71c0 .988-.814 1.789-1.818 1.789H1.818C.814 18.5 0 17.699 0 16.71V3.29C0 2.3.814 1.5 1.818 1.5h5.716a1.81 1.81 0 0 1 1.797 1.514l.235 1.482z\"],\"forward\":[\"M9.097 8.04L2.483 2.445c-.62-.526-1.58-.323-1.58.485v14.14c0 .805.96 1.009 1.58.483l6.614-5.592v5.109c0 .805.96 1.009 1.58.483l8.086-6.836a.936.936 0 0 0 0-1.434l-8.086-6.838c-.62-.526-1.58-.323-1.58.485v5.108z\"],\"foursquare\":[\"M3.786 19.744c-.432.506-1.286.212-1.286-.443l.001-17.784c.031-.541.233-.976.652-1.232C3.487.081 3.93 0 4.51 0h11.586c.541-.002.99.188 1.23.615.188.333.217.713.119 1.086l-.648 2.913c-.163.554-.41.959-.789 1.197-.353.222-.824.304-1.413.29H9.21c-.194 0-.29.023-.288.02.046-.034.048-.038.046.028v1.24c.004.11.006.116-.067.065-.017-.012.16.018.468.018h4.75c.606-.016 1.111.155 1.449.548.32.373.426.85.337 1.422l-.605 2.823c-.124.498-.362.877-.752 1.094-.303.168-.676.255-1.157.277l-3.852-.001c-.217-.013-.367.002-.444.03a.986.986 0 0 0-.292.213l-5.017 5.866zm.165-2.39l3.765-4.4c.281-.284.565-.486.867-.595.294-.107.64-.14 1-.118h3.772c.232-.01.389-.047.467-.09-.008.004.027-.052.062-.19l.592-2.761c.026-.169.008-.25-.027-.291-.019-.022-.093-.047-.31-.041H9.37c-.595 0-1.013-.07-1.319-.283-.362-.252-.515-.65-.533-1.17V6.131c.011-.464.168-.852.512-1.11.3-.226.693-.316 1.181-.316h5.401c.34.008.548-.028.604-.063.03-.02.11-.15.174-.365l.64-2.883H4.51c-.302 0-.496.031-.563.06.017-.005.01.022.004.1v15.8z\"],\"frown-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zM5.814 9.07a1.395 1.395 0 1 1 0-2.79 1.395 1.395 0 0 1 0 2.79zm8.372 0a1.395 1.395 0 1 1 0-2.79 1.395 1.395 0 0 1 0 2.79zM6.39 14.598a3.637 3.637 0 0 1 7.217-.024.682.682 0 1 1-1.352.172 2.273 2.273 0 0 0-4.511.015.682.682 0 1 1-1.354-.163z\"],\"frown\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zM5.814 9.07a1.395 1.395 0 1 0 0-2.79 1.395 1.395 0 0 0 0 2.79zm8.372 0a1.395 1.395 0 1 0 0-2.79 1.395 1.395 0 0 0 0 2.79zM6.39 14.598a.682.682 0 0 0 1.354.163 2.273 2.273 0 0 1 4.51-.015.682.682 0 1 0 1.353-.172 3.637 3.637 0 0 0-7.217.024z\"],\"github-o\":[\"M3.773 16.16c-.82-1.06-1.063-1.406-1.25-1.745l-.039-.073a10.42 10.42 0 0 1-.122-.226 3.352 3.352 0 0 1-.14-.3c-.174-.432-.207-.813.07-1.165.485-.62 1.273-.445 1.937.123.428.365 1.066 1.02 1.455 1.486.255.305.72.621 1.06.734a.83.83 0 0 0 .1.027l.178-.56a7.352 7.352 0 0 1-1.869-.965c-1.3-.936-2.43-2.773-2.333-4.174.06-.885.36-1.753.89-2.596a12.72 12.72 0 0 1-.073-1.238c0-.489.16-1.02.467-1.603a.661.661 0 0 1 .566-.352 5.853 5.853 0 0 1 1.598.17c.455.115.936.317 1.445.605.762-.158 1.5-.238 2.216-.238.717 0 1.463.08 2.239.239.662-.371 1.244-.623 1.752-.755.66-.171 1.254-.12 1.743.182a.659.659 0 0 1 .175.158c.3.388.466.903.52 1.538.042.484.027.965-.045 1.442.433.651.715 1.483.854 2.49.226 1.644-.525 3.337-1.718 4.312-.556.454-1.32.81-2.294 1.08.062.216.106.431.132.646.044.354.075 1.304.096 2.89 1.102-.574 1.957-1.14 2.565-1.695 1.035-.943 1.815-2.281 2.323-3.835.425-1.3.507-2.397.297-3.606-.257-1.47-.627-2.669-1.184-3.631-.652-1.126-1.692-2.19-2.936-2.968-1.19-.746-3.12-1.245-4.64-1.245-1.596 0-3.382.517-4.737 1.473-1.318.93-2.41 2.33-3.043 3.703-.501 1.088-.707 2.247-.707 3.958 0 1.386.504 3.07 1.098 4.124.469.832 1.135 1.62 2.114 2.476.493.432 1.19.863 2.09 1.289v-.423c-1.205-.28-2.163-.864-2.85-1.752zm-.357-2.922a.197.197 0 0 0 0-.005v.005zm1.405 2.122c.57.739 1.411 1.192 2.56 1.36a.658.658 0 0 1 .563.65v1.973a.66.66 0 0 1-.913.606c-1.475-.606-2.597-1.24-3.371-1.917-1.086-.95-1.847-1.852-2.394-2.82C.568 13.971 0 12.072 0 10.445 0 8.56.238 7.22.827 5.942c.724-1.572 1.959-3.154 3.48-4.227C5.894.595 7.947 0 9.806 0c1.76 0 3.933.562 5.345 1.446 1.424.892 2.616 2.111 3.376 3.424.649 1.119 1.061 2.453 1.341 4.062.248 1.421.15 2.734-.341 4.235-.574 1.753-1.467 3.285-2.686 4.397-.882.804-2.156 1.591-3.827 2.373a.66.66 0 0 1-.942-.588c-.02-2.149-.053-3.434-.097-3.788a3.274 3.274 0 0 0-.297-.989.655.655 0 0 1 .46-.919c1.144-.243 1.968-.58 2.47-.99.855-.699 1.41-1.95 1.249-3.12-.128-.926-.387-1.626-.764-2.108a.653.653 0 0 1-.127-.53c.09-.45.115-.903.075-1.362-.028-.326-.092-.572-.183-.742-.145-.048-.341-.046-.606.023-.43.111-.98.36-1.64.745a.664.664 0 0 1-.482.075 10.036 10.036 0 0 0-2.202-.261c-.693 0-1.42.086-2.179.26a.664.664 0 0 1-.492-.079c-.49-.296-.93-.492-1.314-.588-.27-.068-.55-.11-.837-.126-.101.251-.15.464-.15.638 0 .342.03.786.09 1.328a.653.653 0 0 1-.108.437c-.488.724-.752 1.441-.801 2.159-.062.885.826 2.327 1.79 3.021.595.429 1.292.75 2.093.962a.656.656 0 0 1 .46.831l-.503 1.587a.658.658 0 0 1-.394.416c-.401.152-.83.152-1.26.01-.572-.19-1.244-.647-1.657-1.141a10.733 10.733 0 0 0-.354-.4c.136.18.302.396.508.662z\"],\"github\":[\"M20 10.25c0 2.234-.636 4.243-1.908 6.027-1.271 1.784-2.914 3.018-4.928 3.703-.234.045-.406.014-.514-.093a.539.539 0 0 1-.163-.4V16.67c0-.863-.226-1.495-.677-1.895a8.72 8.72 0 0 0 1.335-.24c.394-.107.802-.28 1.223-.52a3.66 3.66 0 0 0 1.055-.888c.282-.352.512-.819.69-1.402.178-.583.267-1.252.267-2.008 0-1.077-.343-1.994-1.028-2.75.32-.81.286-1.717-.105-2.723-.243-.08-.594-.03-1.054.147a6.94 6.94 0 0 0-1.198.587l-.495.32a9.03 9.03 0 0 0-2.5-.346 9.03 9.03 0 0 0-2.5.347 11.52 11.52 0 0 0-.553-.36c-.23-.143-.593-.314-1.088-.514-.494-.2-.868-.26-1.12-.18-.381 1.005-.412 1.912-.09 2.722-.686.756-1.03 1.673-1.03 2.75 0 .756.09 1.423.268 2.002.178.578.406 1.045.683 1.401a3.53 3.53 0 0 0 1.048.894c.421.24.83.414 1.224.52.395.108.84.188 1.335.241-.347.32-.56.779-.638 1.375a2.539 2.539 0 0 1-.586.2 3.597 3.597 0 0 1-.742.067c-.287 0-.57-.096-.853-.287-.282-.192-.523-.47-.723-.834a2.133 2.133 0 0 0-.631-.694c-.256-.178-.471-.285-.645-.32l-.26-.04c-.182 0-.308.02-.378.06-.07.04-.09.09-.065.153a.738.738 0 0 0 .117.187.961.961 0 0 0 .17.16l.09.066c.192.09.38.259.567.508.187.249.324.476.41.68l.13.307c.113.338.304.612.574.821.269.21.56.343.872.4.312.058.614.09.905.094.29.004.532-.011.723-.047l.299-.053c0 .338.002.734.007 1.188l.006.72c0 .16-.056.294-.17.4-.112.108-.286.139-.52.094-2.014-.685-3.657-1.92-4.928-3.703C.636 14.493 0 12.484 0 10.25c0-1.86.447-3.574 1.341-5.145a10.083 10.083 0 0 1 3.64-3.73A9.6 9.6 0 0 1 10 0a9.6 9.6 0 0 1 5.02 1.375 10.083 10.083 0 0 1 3.639 3.73C19.553 6.675 20 8.391 20 10.25z\"],\"global\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm6.48-9.198c.02.215.032.432.032.65a7.186 7.186 0 0 1-.117 1.27c-.014.073-.026.147-.04.217-.04.19-.086.376-.14.56-.509-.233-1.107-.576-1.263-.953-.284-.68-1.04-1.02-1.348-1.896-.507-1.45.166-1.412.26-2.312.044-.422-.26-.51-.661-.338-.936.393-1.253.242-1.442-.463-.189-.703 0-.899 0-.899-.638.07-.662-.707-.331-.903.23-.132.425-.537.618-.852a6.702 6.702 0 0 1 1.802 1.024c.125.096.245.198.363.307.022.019.041.039.062.06.328.303.626.644.89 1.01.037.051.076.098.11.147.064.094.124.192.184.29a6.024 6.024 0 0 1 .285.51c.053.1.1.209.149.315.033.073.07.148.1.226.073.182.138.365.197.552.019.062.034.128.052.19a6.726 6.726 0 0 1 .215 1.087c.007.066.017.136.022.201zm-7.106-1.61c.59-.27 1.135-.367 1.063-.831-.07-.459-.236-.801-1.158-.801-.922 0-.52 1.265-1.276.51-.756-.75.165-.556.543-.727.379-.172.757-.877.095-.927-.661-.047-.52.292-1.04.1-.52-.196-.756.679-1.088.557-.218-.082-.803-.532-1.191-.975a7 7 0 0 0-1.834 2.51c.113 1.307.804 1.993.804 1.993s.355.851 2.483 1.897c0 0 .4.024-.072-.461-.472-.487-.993-1.095-.402-1.41.59-.319.757-.292.899.293.141.584.615.24.661-.319.048-.557.922-1.14 1.513-1.41zm4.527 3.904c.271-.173.92.278.78.753-.143.475-.591.207-.816 0-.225-.206-.237-.583.036-.753zm-3.25.061c.803.704.378 1.409-.025 1.945-.401.534-.756 1.14-.945 2.238-.19 1.094-.686.314-.85.047-.166-.269-.426-.511-.354-1.63.07-1.118-.687-.46-.946-1.92-.26-1.458.378-1.704 1.394-1.704 1.017 0 .922.316 1.726 1.024z\"],\"heart-off\":[\"M13.682 1.682c2.007-.48 3.667.026 4.849 1.094 1.032.934 1.628 2.559 1.432 4.39-.147 1.374-.893 2.769-2.242 4.22l-7.274 6.923a.7.7 0 0 1-.963-.002L2.266 11.36C1.198 10.227.516 9.15.233 8.118-.18 6.62-.04 5.107.61 3.875c.77-1.461 2.306-2.329 4.532-2.329 1.522 0 3.12.753 4.805 2.221 1.148-1.066 2.394-1.765 3.735-2.085zM9.97 16.883l6.76-6.433c1.138-1.226 1.75-2.37 1.863-3.425.151-1.415-.29-2.619-.997-3.258-.859-.777-2.056-1.142-3.588-.776-1.257.3-2.434 1.02-3.538 2.174a.7.7 0 0 1-.981.025C7.852 3.644 6.397 2.895 5.142 2.895c-1.722 0-2.78.597-3.307 1.598-.489.926-.597 2.094-.272 3.275.218.795.786 1.692 1.692 2.655l6.715 6.46z\"],\"heart-on\":[\"M13.67 1.658c2.103-.494 4.165.222 5.135 1.434.896 1.119 1.303 2.282 1.17 3.998-.095 1.237-.5 2.154-1.298 3.163-.147.186-.308.377-.511.609l-.548.618c-.8.903-3.155 3.163-7.103 6.82a.764.764 0 0 1-1.036-.004C6.09 15.12 3.896 13.028 2.89 12.014 1.033 10.14.326 9.05.07 7.293-.2 5.453.315 3.944 1.468 2.772c1.082-1.1 3.017-1.508 4.928-1.12 1.119.228 2.31.96 3.6 2.181 1.101-1.129 2.327-1.86 3.675-2.175z\"],\"home\":[\"M6.965 18.594v-6.192a1 1 0 0 1 1-1h4.847a1 1 0 0 1 1 1v6.193h-1.4v-5.793H8.366v5.792h4.046v-5.792H8.366v5.792h-1.4v-6.192a1 1 0 0 1 1-1h4.846a1 1 0 0 1 1 1v6.193h3.206c.325.017.495-.014.476.003-.044.041-.002-.188-.016-.628v-5.897a.7.7 0 0 1 1.4 0v5.874c.027.812-.071 1.345-.434 1.68-.338.311-.828.4-1.463.366H3.144C2.5 19.961 2 19.7 1.768 19.173c-.154-.347-.226-.757-.226-1.228v-5.873a.7.7 0 0 1 1.4 0v5.873c0 .29.04.51.107.662-.012-.027 0-.021.128-.014h3.788zM10.402 1.51L1.158 9.474a.7.7 0 0 1-.915-1.06L9.689.277l.086-.064c.214-.134.428-.212.66-.212.263 0 .499.104.721.297l8.625 8.139a.7.7 0 1 1-.962 1.017l-8.417-7.944z\"],\"html5\":[\"M1.5 0l1.547 18 6.943 2 6.961-2.002L18.5 0h-17zm13.773 4.272l-.097 1.119-.043.496H6.99l.195 2.26H14.94l-.052.594-.5 5.812-.032.373L10 16.178l-.01.004-4.36-1.256-.297-3.467h2.136l.151 1.762 2.37.663h.002l2.374-.665.247-2.863H5.237l-.523-6.084-.05-.593h10.66l-.051.593z\"],\"ie\":[\"M20 10.466c0 .398-.022.796-.078 1.182H7.076c0 2.261 1.953 3.897 4.096 3.897 1.45 0 2.846-.727 3.594-2.011h4.72c-1.276 3.648-4.666 6.086-8.47 6.09a8.933 8.933 0 0 1-3.974-.943C5.792 19.33 4.04 20 2.645 20 .77 20 0 18.83 0 17.012c0-1.057.224-2.114.502-3.125.179-.66.893-2 1.217-2.603C3.09 8.751 4.899 6.32 7.02 4.398c-1.708.75-3.56 2.636-4.766 4.022.939-4.157 4.573-7.102 8.762-7.102.167 0 .335 0 .502.011C12.9.681 14.833 0 16.35 0c1.808 0 3.359.705 3.359 2.784 0 1.09-.413 2.273-.837 3.25A9.298 9.298 0 0 1 20 10.466zm-.781-7.273c0-1.272-.893-2.056-2.121-2.056-.938 0-1.998.386-2.835.795a9.105 9.105 0 0 1 4.386 3.716c.28-.75.57-1.659.57-2.455zM1.429 17.25c0 1.319.77 2.034 2.042 2.034.993 0 2.098-.454 2.968-.943a9.12 9.12 0 0 1-3.917-4.863c-.513 1.09-1.093 2.545-1.093 3.772zm5.625-8.102h8.125c-.078-2.194-1.976-3.773-4.063-3.773-2.099 0-3.985 1.58-4.063 3.773z\"],\"inbox\":[\"M1.52 7.438h6.505a2.5 2.5 0 1 0 4.95 0h5.505L15.913 1.4H4.087L1.52 7.438zm18.48 0V18a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V7.438L2.808.831C3 .372 3.465 0 3.843 0h12.314c.378 0 .842.372 1.035.83L20 7.439zm-13.259 1.4H1.4V18a.6.6 0 0 0 .6.6h16a.6.6 0 0 0 .6-.6V8.838h-4.341a3.902 3.902 0 0 1-7.518 0z\"],\"information-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zM9.883 6.279a.93.93 0 1 1 0-1.86.93.93 0 0 1 0 1.86zm-.726 1.628a.698.698 0 1 1 1.395 0v7.558a.698.698 0 0 1-1.395 0V7.907z\"],\"information\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zM9.883 6.28a.93.93 0 1 0 0-1.861.93.93 0 0 0 0 1.86zm-.726 1.627v7.558a.698.698 0 0 0 1.395 0V7.907a.698.698 0 0 0-1.395 0z\"],\"laptop\":[\"M1.364 2.35v10.794h17.272V2.35H1.364zm7.833 15.3v-3.156H.91a.904.904 0 0 1-.909-.9V1.9c0-.497.407-.9.91-.9h18.18c.503 0 .91.403.91.9v11.694c0 .497-.407.9-.91.9h-8.53v3.157h3.437c.377 0 .682.302.682.674a.678.678 0 0 1-.682.675H5.981a.678.678 0 0 1-.682-.675c0-.372.306-.674.682-.674h3.216z\"],\"left-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm-1.637-8.517l3.397 3.42a.682.682 0 0 1-.967.96l-3.87-3.894a.682.682 0 0 1-.005-.957l3.87-3.971a.682.682 0 0 1 .977.951l-3.402 3.491z\"],\"left-circle\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm-1.637-9.912l3.402-3.49a.682.682 0 1 0-.977-.952l-3.87 3.971a.682.682 0 0 0 .005.957l3.87 3.895a.682.682 0 1 0 .967-.961l-3.397-3.42z\"],\"left-square-o\":[\"M1.818 1.364a.455.455 0 0 0-.454.454v16.364c0 .25.203.454.454.454h16.364a.455.455 0 0 0 .454-.454V1.818a.455.455 0 0 0-.454-.454H1.818zm0-1.364h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zm6.545 10.07l3.402-3.492a.682.682 0 1 0-.977-.951l-3.87 3.971a.682.682 0 0 0 .005.957l3.87 3.895a.682.682 0 1 0 .967-.962L8.363 10.07z\"],\"left-square\":[\"M1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zm6.545 10.07l3.402-3.492a.682.682 0 1 0-.977-.951l-3.87 3.971a.682.682 0 0 0 .005.957l3.87 3.895a.682.682 0 1 0 .967-.962L8.363 10.07z\"],\"like-o\":[\"M1.36 9.495v7.157h3.03l.153.018c2.813.656 4.677 1.129 5.606 1.422 1.234.389 1.694.484 2.531.54.626.043 1.337-.198 1.661-.528.179-.182.313-.556.366-1.136a.681.681 0 0 1 .406-.563c.249-.108.456-.284.629-.54.16-.234.264-.67.283-1.301a.682.682 0 0 1 .339-.57c.582-.337.87-.717.93-1.163.066-.493-.094-1.048-.513-1.68a.683.683 0 0 1 .176-.936c.401-.282.621-.674.676-1.23.088-.886-.477-1.541-1.756-1.672a9.42 9.42 0 0 0-3.394.283.68.68 0 0 1-.786-.95c.5-1.058.778-1.931.843-2.607.085-.897-.122-1.547-.606-2.083-.367-.406-.954-.638-1.174-.59-.29.062-.479.23-.725.818-.145.348-.215.644-.335 1.335-.115.656-.178.952-.309 1.34-.395 1.176-1.364 2.395-2.665 3.236a11.877 11.877 0 0 1-2.937 1.37.676.676 0 0 1-.2.03H1.36zm-.042 8.52c-.323.009-.613-.063-.856-.233-.31-.217-.456-.559-.459-.953l.003-7.323c-.034-.39.081-.748.353-1.014.255-.25.588-.368.94-.36h2.185A10.505 10.505 0 0 0 5.99 6.95c1.048-.678 1.82-1.65 2.115-2.526.101-.302.155-.552.257-1.14.138-.789.224-1.156.422-1.628.41-.982.948-1.462 1.69-1.623.73-.158 1.793.263 2.465 1.007.745.824 1.074 1.855.952 3.129-.052.548-.204 1.161-.454 1.844a10.509 10.509 0 0 1 2.578-.056c2.007.205 3.134 1.512 2.97 3.164-.072.712-.33 1.317-.769 1.792.369.711.516 1.414.424 2.1-.106.79-.546 1.448-1.278 1.959-.057.693-.216 1.246-.498 1.66a2.87 2.87 0 0 1-.851.834c-.108.684-.335 1.219-.706 1.595-.615.626-1.714.999-2.718.931-.953-.064-1.517-.18-2.847-.6-.877-.277-2.693-.737-5.43-1.377H1.317zm1.701-8.831a.68.68 0 0 1 .68-.682.68.68 0 0 1 .678.682v7.678a.68.68 0 0 1-.679.681.68.68 0 0 1-.679-.681V9.184z\"],\"link\":[\"M11.099 13.378a.789.789 0 1 1 1.116 1.116L7.809 18.9l-.101.085c-1.056.75-2.14 1.092-3.234 1-1.379-.115-2.441-.697-3.208-1.567-.824-.936-1.239-1.83-1.265-3.244-.022-1.17.446-2.277 1.396-3.327L5.482 7.76a.789.789 0 0 1 1.116 1.116l-4.057 4.056c-.668.74-.977 1.469-.963 2.211.02 1 .277 1.555.872 2.23.51.578 1.204.96 2.156 1.039.682.057 1.388-.16 2.136-.678l4.357-4.357zm2.28-2.279l4.356-4.357c.518-.748.735-1.454.678-2.136-.08-.952-.46-1.647-1.038-2.156-.676-.595-1.231-.853-2.231-.872-.742-.014-1.471.295-2.21.963L8.876 6.598a.789.789 0 0 1-1.116-1.116l4.086-4.085c1.05-.95 2.157-1.418 3.327-1.396 1.414.026 2.308.441 3.244 1.265.87.767 1.452 1.83 1.567 3.208.092 1.093-.25 2.178-1 3.234l-.085.101-4.406 4.406a.789.789 0 1 1-1.116-1.116zm-2.543-3.401a.789.789 0 0 1 1.115 1.116l-2.924 2.924a.789.789 0 1 1-1.116-1.115l2.925-2.925z\"],\"linkedin\":[\"M17.04 17.043h-2.962v-4.64c0-1.107-.023-2.531-1.544-2.531-1.544 0-1.78 1.204-1.78 2.449v4.722H7.793V7.5h2.844v1.3h.039c.397-.75 1.364-1.54 2.808-1.54 3.001 0 3.556 1.974 3.556 4.545v5.238zM4.447 6.194c-.954 0-1.72-.771-1.72-1.72s.767-1.72 1.72-1.72a1.72 1.72 0 0 1 0 3.44zm1.484 10.85h-2.97V7.5h2.97v9.543zM18.521 0H1.476C.66 0 0 .645 0 1.44v17.12C0 19.355.66 20 1.476 20h17.042c.815 0 1.482-.644 1.482-1.44V1.44C20 .646 19.333 0 18.518 0h.003z\"],\"linux\":[\"M8.73 4.706c-.031.07-.061.106-.09.106-.034.007-.052-.012-.052-.056 0-.09.067-.145.2-.168h.105a.186.186 0 0 0-.163.118zm.957-.034a.167.167 0 0 0-.184-.05c.168-.082.28-.075.336.022.021.045.01.078-.031.1-.029.008-.069-.016-.121-.072zM6.054 9.543a.927.927 0 0 0-.047.14.676.676 0 0 1-.058.15 1.114 1.114 0 0 1-.105.146c-.049.074-.052.119-.01.134.028.007.072-.02.131-.079a.561.561 0 0 0 .153-.279.383.383 0 0 1 .021-.067.248.248 0 0 0 .021-.095v-.034l-.01-.027c-.007-.019-.018-.027-.032-.023-.028-.007-.05.005-.064.034zm8.474 3.504c.028-.111.054-.214.079-.307.024-.092.041-.189.052-.29.01-.1.021-.18.032-.24.01-.059.012-.143.005-.25a4.177 4.177 0 0 1-.01-.218c0-.037-.013-.119-.037-.245a6.692 6.692 0 0 1-.042-.23 8.873 8.873 0 0 0-.053-.278l-.057-.296c-.07-.357-.235-.74-.495-1.15-.26-.409-.511-.688-.757-.836.169.148.368.457.6.926.61 1.205.799 2.24.567 3.102-.077.298-.252.454-.525.469-.218.03-.353-.039-.405-.206-.053-.168-.08-.478-.084-.932a5.697 5.697 0 0 0-.121-1.194 7.686 7.686 0 0 0-.205-.77 3.218 3.218 0 0 0-.205-.508 3.396 3.396 0 0 0-.163-.274 1.111 1.111 0 0 0-.136-.167 5.309 5.309 0 0 1-.079-.078 7.534 7.534 0 0 0-.326-1.15c-.119-.305-.222-.513-.31-.625a3.082 3.082 0 0 1-.247-.368 1.347 1.347 0 0 1-.158-.446c-.028-.156-.007-.355.063-.597s.086-.426.048-.553c-.039-.126-.195-.22-.468-.279a1.997 1.997 0 0 1-.468-.2c-.207-.112-.331-.172-.373-.18-.056-.007-.095-.103-.116-.29a1.166 1.166 0 0 1 .084-.568c.077-.194.204-.294.379-.302.259-.022.438.09.536.335.098.246.112.462.042.648-.077.141-.084.24-.021.295.063.056.168.058.315.006.091-.03.137-.164.137-.402v-.413a2.596 2.596 0 0 0-.142-.557.897.897 0 0 0-.468-.508 1.428 1.428 0 0 0-.284-.084c-.75.06-1.061.558-.935 1.495 0 .112-.004.168-.01.168-.064-.067-.167-.106-.31-.117a1.463 1.463 0 0 0-.348.005c-.087.015-.141-.003-.162-.055.007-.424-.05-.76-.169-1.005-.119-.245-.276-.372-.473-.38-.189-.007-.334.095-.436.307-.102.212-.16.434-.174.664-.007.112.006.25.037.413.032.164.077.303.137.419.06.115.114.165.163.15a.292.292 0 0 0 .168-.156c.028-.067.003-.097-.074-.09-.05 0-.103-.053-.163-.161a.854.854 0 0 1-.1-.374.704.704 0 0 1 .095-.413c.07-.112.189-.164.357-.156.12 0 .214.078.284.234.07.156.104.301.1.435a1.8 1.8 0 0 1-.015.246c-.155.111-.263.22-.326.323a.892.892 0 0 1-.29.262 3.555 3.555 0 0 0-.215.14.647.647 0 0 0-.163.301c-.017.097.009.164.079.201.098.06.186.132.263.218.076.085.133.156.168.212.035.056.1.104.194.145.095.04.219.065.373.072.33.015.687-.04 1.073-.167a3.36 3.36 0 0 1 .242-.078c.147-.045.268-.084.362-.117.095-.034.198-.082.31-.145a.538.538 0 0 0 .221-.196c.063-.104.133-.134.21-.089a.154.154 0 0 1 .069.095c.01.04 0 .086-.032.134-.031.048-.09.084-.173.106-.14.045-.339.125-.595.24l-.478.217c-.308.142-.554.227-.736.257-.175.037-.452.03-.83-.022-.07-.015-.102-.008-.095.022.007.03.066.1.178.212.176.171.41.253.705.246a1.48 1.48 0 0 0 .378-.079 2.94 2.94 0 0 0 .379-.156c.119-.06.236-.125.352-.195.116-.071.221-.134.316-.19.094-.056.18-.1.257-.134.078-.033.139-.043.184-.028.046.015.076.056.09.123a.145.145 0 0 1-.01.05.145.145 0 0 1-.043.056.78.78 0 0 1-.152.106 1.34 1.34 0 0 1-.095.05c-.024.012-.06.03-.105.056a.811.811 0 0 1-.1.05 4.73 4.73 0 0 0-.71.492c-.276.223-.51.383-.698.48-.19.097-.361.1-.515.01-.148-.081-.368-.353-.663-.814-.154-.23-.242-.312-.263-.245a.417.417 0 0 0-.01.111c0 .186-.053.396-.158.63-.105.235-.208.442-.31.62a2.026 2.026 0 0 0-.22.648 1 1 0 0 0 .12.703c-.161.044-.38.38-.657 1.004-.277.625-.443 1.15-.5 1.574a8.2 8.2 0 0 0-.015.77c.004.379-.016.598-.058.658-.056.179-.158.19-.305.034-.224-.231-.35-.58-.378-1.05-.014-.208 0-.416.042-.624.028-.142.024-.209-.01-.201l-.043.056c-.252.483-.217 1.1.105 1.852.035.09.123.193.263.312.14.12.224.194.252.223.14.172.505.508 1.094 1.01.589.502.914.787.977.854a.631.631 0 0 1 .185.424.72.72 0 0 1-.148.48.644.644 0 0 1-.478.257c.056.111.157.277.305.497.147.22.245.42.294.602.049.182.074.444.074.787.322-.179.347-.521.073-1.027a.989.989 0 0 0-.11-.179 5.023 5.023 0 0 1-.1-.133c-.021-.03-.028-.053-.021-.068.02-.037.066-.072.136-.106.07-.033.14-.024.21.028.323.387.905.521 1.746.402.932-.112 1.552-.435 1.86-.971.162-.283.28-.394.358-.335.084.045.12.238.105.58-.007.186-.088.528-.242 1.027-.063.171-.084.31-.063.419.02.107.105.165.252.172.021-.141.072-.427.153-.859.08-.431.127-.766.142-1.004.014-.157-.01-.43-.069-.82a6.298 6.298 0 0 1-.078-1.083c.007-.33.087-.593.241-.787.106-.134.284-.2.537-.2.007-.276.128-.473.362-.592a1.24 1.24 0 0 1 .763-.117c.273.04.483.124.63.25 0-.133-.193-.29-.578-.468zm-6.05-9.095c-.039-.097-.08-.153-.121-.167-.063-.015-.095.01-.095.078.014.037.032.06.053.067.07 0 .094.056.073.167-.02.15.007.224.085.224.02 0 .031-.012.031-.034a.622.622 0 0 0-.026-.335zm4.363 2.405a.3.3 0 0 0-.137-.056.381.381 0 0 1-.152-.06.453.453 0 0 1-.1-.09 2.92 2.92 0 0 1-.132-.162.232.232 0 0 0-.042-.045c-.007-.003-.02.002-.042.017-.098.12-.074.281.074.485.147.205.284.322.41.352.063.007.114-.023.152-.09a.323.323 0 0 0 .037-.223.23.23 0 0 0-.068-.128zM11.038 4.11a.44.44 0 0 0-.053-.218.413.413 0 0 0-.115-.14c-.043-.03-.074-.04-.095-.033-.098.007-.123.033-.074.078l.042.023c.099.03.162.145.19.346 0 .022.028.014.084-.023l.02-.033zm.541-2.656a.416.416 0 0 0-.094-.079 4.735 4.735 0 0 1-.1-.067c-.106-.111-.19-.167-.253-.167-.063.007-.103.035-.12.083a.257.257 0 0 0-.01.145.267.267 0 0 1-.006.14.361.361 0 0 1-.064.117.547.547 0 0 0-.063.1c-.007.02.004.05.032.096.028.022.056.022.084 0 .028-.023.067-.056.116-.1a.524.524 0 0 1 .157-.101c.007-.008.039-.011.095-.011a.538.538 0 0 0 .158-.023c.049-.015.08-.04.094-.078 0-.015-.008-.033-.026-.055zm6.293 15.294c.077.093.119.182.126.268a.678.678 0 0 1-.027.25.585.585 0 0 1-.162.246 3.169 3.169 0 0 1-.247.218c-.08.063-.186.132-.316.206a13.611 13.611 0 0 1-.667.357c-.134.067-.228.115-.284.145a5.54 5.54 0 0 0-.9.625c-.332.275-.597.513-.793.714-.119.12-.357.192-.715.218-.357.026-.67-.028-.935-.162a.915.915 0 0 1-.31-.262 1.461 1.461 0 0 1-.174-.285c-.035-.082-.112-.154-.231-.217-.12-.063-.284-.099-.494-.106a62.12 62.12 0 0 0-1.367-.011c-.134 0-.333.005-.6.016-.266.012-.469.02-.61.028a2.286 2.286 0 0 0-.835.168 1.887 1.887 0 0 0-.563.335 2.029 2.029 0 0 1-.457.318 1.105 1.105 0 0 1-.562.128c-.203-.007-.592-.123-1.167-.346a10.323 10.323 0 0 0-2.072-.586c-.224-.041-.4-.074-.525-.1a5.04 5.04 0 0 1-.415-.106 1.123 1.123 0 0 1-.353-.162.538.538 0 0 1-.178-.218c-.07-.17-.046-.418.074-.742.119-.323.182-.526.189-.608a1.839 1.839 0 0 0-.042-.446 8.855 8.855 0 0 0-.105-.475 1.495 1.495 0 0 1-.048-.407c.004-.134.04-.234.11-.301.1-.09.299-.142.6-.157.301-.015.511-.06.63-.134.211-.134.358-.264.443-.39.084-.127.126-.317.126-.57.147.543.035.938-.337 1.183-.224.149-.515.205-.872.168-.239-.023-.39.014-.453.111-.09.112-.073.324.053.636.014.045.042.112.084.201.042.09.072.156.09.201a.99.99 0 0 1 .047.19.968.968 0 0 1 .01.245c0 .112-.06.294-.178.547-.12.253-.168.431-.148.536.021.126.151.223.39.29.14.044.436.113.888.206.452.093.8.169 1.046.229.168.045.427.126.778.245.35.119.64.205.867.257.228.052.422.067.583.045.302-.045.528-.15.679-.313a.847.847 0 0 0 .242-.536 2.146 2.146 0 0 0-.08-.652 3.257 3.257 0 0 0-.199-.58 8.313 8.313 0 0 0-.21-.408c-.848-1.414-1.44-2.314-1.777-2.701-.476-.55-.872-.7-1.188-.446-.077.067-.13.01-.158-.168a1.98 1.98 0 0 1-.02-.424c.006-.215.041-.409.104-.58.063-.171.147-.346.253-.525.105-.178.182-.334.23-.468.057-.157.15-.424.28-.804.129-.38.232-.67.31-.87.077-.2.182-.428.315-.68.133-.254.27-.455.41-.603.77-1.064 1.205-1.79 1.304-2.177-.084-.833-.14-1.986-.169-3.46-.014-.669.07-1.232.253-1.69.182-.457.554-.846 1.114-1.166C8.83.079 9.195.001 9.65.001c.372-.008.743.043 1.115.15.371.108.683.263.935.464.4.312.72.764.962 1.356.242.59.345 1.14.31 1.645-.035.707.07 1.503.316 2.389.238.84.704 1.651 1.398 2.432.385.44.734 1.046 1.046 1.82.312.773.52 1.484.625 2.131.056.365.074.679.053.943-.021.264-.063.47-.126.62-.063.148-.133.23-.21.245-.07.015-.153.085-.248.212-.094.126-.189.258-.284.396a1.315 1.315 0 0 1-.425.374c-.19.111-.403.164-.642.156a1.373 1.373 0 0 1-.33-.056.52.52 0 0 1-.237-.15 2.05 2.05 0 0 1-.142-.173 1.543 1.543 0 0 1-.12-.229c-.05-.108-.082-.18-.095-.217-.155-.276-.298-.387-.431-.335-.134.051-.232.234-.295.546-.063.313-.038.674.074 1.083.14.52.144 1.246.01 2.176-.07.483-.007.857.19 1.122.196.264.452.387.767.368.315-.02.613-.151.894-.396.413-.365.727-.612.94-.742.214-.13.577-.289 1.089-.475.371-.134.64-.27.809-.407.168-.138.233-.266.194-.385a.63.63 0 0 0-.262-.318 2.474 2.474 0 0 0-.542-.262c-.23-.082-.404-.26-.52-.536a1.88 1.88 0 0 1-.158-.81c.01-.263.065-.44.163-.53a2.862 2.862 0 0 0 .237 1.084c.052.111.124.217.215.318.091.1.165.171.22.212.057.04.132.09.227.145.095.056.153.091.174.106.14.09.248.18.326.274z\"],\"loading\":[\"M8 6a3 3 0 1 1 0-6 3 3 0 0 1 0 6zm-5.5 5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm2.241 7a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zM11 20a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm5.32-2.5a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm2.18-5.181a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm-.714-5.112a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM15.5 4a.5.5 0 1 1 0-1 .5.5 0 0 1 0 1z\"],\"lock\":[\"M16.6 10.245H3.4V18.6h13.2v-8.355zm0-1.4V8A6.6 6.6 0 0 0 3.4 8v.845h13.2zM10 0a8 8 0 0 1 8 8v11a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V8a8 8 0 0 1 8-8zm-.345 14.447a1.5 1.5 0 1 1 1.4.006v2.169a.7.7 0 0 1-1.4 0v-2.175z\"],\"login\":[\"M1.69 16.154a.644.644 0 0 1 .115-.918.68.68 0 0 1 .94.113c1.678 2.095 4.24 3.343 7.016 3.343 4.915 0 8.9-3.892 8.9-8.692 0-4.8-3.985-8.692-8.9-8.692a8.961 8.961 0 0 0-6.944 3.255.68.68 0 0 1-.942.101.644.644 0 0 1-.103-.92C3.703 1.394 6.615 0 9.761 0 15.416 0 20 4.477 20 10S15.416 20 9.76 20c-3.191 0-6.142-1.437-8.07-3.846zm9.248-6.808L9.38 7.788a.662.662 0 0 1-.01-.937.662.662 0 0 1 .935.011l2.707 2.707c.262.262.267.68.011.936L10.38 13.15a.662.662 0 0 1-.937-.011.662.662 0 0 1-.01-.937l1.546-1.547H.67A.662.662 0 0 1 0 10c0-.361.3-.654.67-.654h10.268z\"],\"logout\":[\"M18.31 16.154C16.382 18.564 13.431 20 10.24 20 4.583 20 0 15.523 0 10S4.584 0 10.24 0c3.145 0 6.057 1.395 7.988 3.744a.644.644 0 0 1-.103.92.68.68 0 0 1-.942-.1 8.961 8.961 0 0 0-6.944-3.256c-4.915 0-8.9 3.892-8.9 8.692 0 4.8 3.985 8.692 8.9 8.692 2.775 0 5.338-1.248 7.016-3.343a.68.68 0 0 1 .94-.113.644.644 0 0 1 .115.918zm-.58-6.51l-1.557-1.559a.662.662 0 0 1-.011-.936.662.662 0 0 1 .936.011l2.706 2.707c.262.261.267.68.012.936l-2.644 2.643a.662.662 0 0 1-.936-.01.662.662 0 0 1-.011-.937l1.547-1.547H7.462a.662.662 0 0 1-.67-.654c0-.362.3-.655.67-.655h10.269z\"],\"man\":[\"M17.64 1.389h-3.747A.693.693 0 0 1 13.2.695c0-.384.31-.695.692-.695h5.416c.381 0 .691.31.691.695v5.163c0 .383-.31.694-.691.694a.693.693 0 0 1-.692-.694V2.372L13.57 7.617a7.629 7.629 0 0 1 1.643 4.743c0 4.22-3.405 7.64-7.606 7.64C3.406 20 0 16.58 0 12.36s3.405-7.64 7.606-7.64c1.918 0 3.67.714 5.009 1.89L17.64 1.39zM7.606 18.611c3.437 0 6.223-2.799 6.223-6.25 0-3.453-2.786-6.251-6.223-6.251s-6.223 2.798-6.223 6.25 2.786 6.251 6.223 6.251z\"],\"map\":[\"M17.547 5.618c-.019.11-.043.216-.073.321A6.134 6.134 0 0 1 16.4 8.05l-2.477 3.093a.67.67 0 0 1-1.073-.037l-2.315-3.353c-.382-.534-.65-1.01-.801-1.436a3.744 3.744 0 0 1-.193-.823l-2.005.614v11.28l5.065-1.395v-3.295c0-.364.299-.659.667-.659.368 0 .666.295.666.66v3.177l4.733 1.335V6.136l-1.12-.518zm-.041-1.47a.678.678 0 0 1 .065.026l2.045.946a.659.659 0 0 1 .384.597v12.367a.665.665 0 0 1-.85.634l-5.669-1.6-6.74 1.858a.674.674 0 0 1-.371-.004L.474 17.217a.66.66 0 0 1-.474-.63V3.998c0-.44.428-.756.855-.632l5.702 1.661 2.898-.887c.04-.012.08-.02.12-.025.114-.656.427-1.287.952-1.9.623-.73 1.716-1.158 2.781-1.209 1.105-.053 1.949.183 2.91.936.654.512 1.104 1.338 1.288 2.204zM6.203 6.298l-4.87-1.418v11.215l4.87 1.45V6.299zm9.147.939a4.812 4.812 0 0 0 .841-1.657c.24-.84-.122-2.074-.8-2.604-.695-.545-1.22-.692-2.018-.653-.727.035-1.473.327-1.828.742-.427.5-.637.968-.679 1.442-.05.571-.016.974.126 1.373.105.295.314.669.637 1.12l1.811 2.622 1.91-2.385zm-1.84-.263c-1.104 0-2-.885-2-1.977s.896-1.977 2-1.977 2 .885 2 1.977a1.988 1.988 0 0 1-2 1.977zm0-1.318a.663.663 0 0 0 .666-.66.663.663 0 0 0-.666-.658.663.663 0 0 0-.667.659c0 .364.299.659.667.659z\"],\"meh-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zM5.814 9.07a1.395 1.395 0 1 1 0-2.79 1.395 1.395 0 0 1 0 2.79zm8.372 0a1.395 1.395 0 1 1 0-2.79 1.395 1.395 0 0 1 0 2.79zm-7.239 6a.698.698 0 0 1 0-1.396h5.582a.698.698 0 1 1 0 1.396H6.947z\"],\"meh\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zM5.814 9.07a1.395 1.395 0 1 0 0-2.79 1.395 1.395 0 0 0 0 2.79zm8.372 0a1.395 1.395 0 1 0 0-2.79 1.395 1.395 0 0 0 0 2.79zm-7.239 6h5.582a.698.698 0 1 0 0-1.396H6.947a.698.698 0 0 0 0 1.396z\"],\"menu-fold\":[\"M.7 3.392a.698.698 0 0 1-.7-.696C0 2.312.313 2 .7 2h18.596c.386 0 .7.312.7.696a.698.698 0 0 1-.7.696H.7zM.7 18a.698.698 0 0 1-.7-.696c0-.384.313-.696.7-.696h18.596c.386 0 .7.312.7.696a.698.698 0 0 1-.7.696H.7zm.997-8.056l2.32 2.32a.698.698 0 0 1-.003.987.698.698 0 0 1-.987.003L.216 10.442a.698.698 0 0 1 .002-.987l2.828-2.827a.698.698 0 0 1 .987-.003.698.698 0 0 1-.003.987L1.697 9.944zm3.486.579a.698.698 0 0 1-.7-.696c0-.384.313-.696.7-.696H19.3c.387 0 .7.312.7.696a.698.698 0 0 1-.7.696H5.183z\"],\"menu-unfold\":[\"M.703 3.392a.698.698 0 0 1-.7-.696c0-.384.314-.696.7-.696H19.3c.387 0 .7.312.7.696a.698.698 0 0 1-.7.696H.703zM.703 18a.698.698 0 0 1-.7-.696c0-.384.314-.696.7-.696H19.3c.387 0 .7.312.7.696a.698.698 0 0 1-.7.696H.703zm17.613-8.189L15.984 7.48a.698.698 0 0 1-.003-.987.698.698 0 0 1 .987.003l2.827 2.827a.698.698 0 0 1 .003.987l-2.812 2.812a.698.698 0 0 1-.987-.003.698.698 0 0 1-.003-.987l2.32-2.32zM.7 10.523a.698.698 0 0 1-.7-.696c0-.384.313-.696.7-.696h14.117c.387 0 .7.312.7.696a.698.698 0 0 1-.7.696H.7z\"],\"menu\":[\"M.7 17a.7.7 0 1 1 0-1.398h2.797a.7.7 0 1 1 0 1.398H.7zm4.829 0a.7.7 0 1 1 0-1.398H19.3a.7.7 0 1 1 0 1.398H5.529zM.7 10.733a.7.7 0 1 1 0-1.399h2.797a.7.7 0 1 1 0 1.399H.7zm4.828 0a.7.7 0 1 1 0-1.399H19.3a.7.7 0 1 1 0 1.399H5.528zM.7 4.398A.7.7 0 1 1 .7 3h2.797a.7.7 0 1 1 0 1.398H.7zm4.828 0a.7.7 0 1 1 0-1.398H19.3a.7.7 0 1 1 0 1.398H5.528z\"],\"message-o\":[\"M1.667 2.5h16.666c.92 0 1.667.746 1.667 1.667v11.666c0 .92-.746 1.667-1.667 1.667H1.667C.747 17.5 0 16.754 0 15.833V4.167C0 3.247.746 2.5 1.667 2.5zm-.304 3.249L10 11.656l8.644-5.965V4.199c.001-.134-.03-.231-.092-.292a.306.306 0 0 0-.234-.086H1.698a.358.358 0 0 0-.25.086.26.26 0 0 0-.085.222v1.62zm4.685 4.809L1.362 7.353v7.836l4.686-4.631zm7.797.05l4.796 4.736V7.292l-4.796 3.316zM2.259 16.18h15.324l-4.857-4.802L10 13.265l-2.832-1.937-4.91 4.852z\"],\"message\":[\"M4.054 18.388l2.17-2.106.414.156a9.589 9.589 0 0 0 3.362.605c4.716 0 8.6-3.36 8.6-7.543 0-4.299-4.014-8.1-8.6-8.1-4.586 0-8.6 3.8-8.6 8.1 0 2.045.912 3.928 2.52 5.33l.02.017.297.258-.067.39-.46 2.676c-.046.32-.025.432-.032.44.007-.01.143-.053.376-.223zm.908 1.06c-.71.537-1.378.719-1.975.381-.602-.34-.783-1.002-.66-1.874l.4-2.319C.99 14.002 0 11.842 0 9.5 0 4.41 4.657 0 10 0c5.342 0 10 4.41 10 9.5 0 5.004-4.553 8.942-10 8.942a11.01 11.01 0 0 1-3.43-.546c-.464.45-.623.603-1.608 1.553zm.265-8.636a1.5 1.5 0 1 1 0-2.998 1.5 1.5 0 0 1 0 2.998zm4.998 0a1.5 1.5 0 1 1 0-2.998 1.5 1.5 0 0 1 0 2.998zm4.997 0a1.5 1.5 0 1 1 0-2.998 1.5 1.5 0 0 1 0 2.998z\"],\"minus-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm-3.857-7.923a.682.682 0 0 1 0-1.364h8.445a.682.682 0 1 1 0 1.364H6.143z\"],\"minus-circle\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm-3.727-9.273h8.182a.818.818 0 0 0 0-1.636H6.273a.818.818 0 0 0 0 1.636z\"],\"minus-square-o\":[\"M1.818 1.364a.455.455 0 0 0-.454.454v16.364c0 .25.203.454.454.454h16.364a.455.455 0 0 0 .454-.454V1.818a.455.455 0 0 0-.454-.454H1.818zm0-1.364h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zM5.91 10.663h8.777a.682.682 0 1 0 0-1.364H5.91a.682.682 0 0 0 0 1.364z\"],\"minus-square\":[\"M1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zM5.91 10.663h8.777a.682.682 0 1 0 0-1.364H5.91a.682.682 0 0 0 0 1.364z\"],\"minus\":[\"M.7 10.4A.7.7 0 0 1 .7 9h18.606a.7.7 0 0 1 0 1.4H.7z\"],\"mobile\":[\"M4.4 13.989h11.2V2a.6.6 0 0 0-.6-.6H5a.6.6 0 0 0-.6.6v11.989zm0 1.4V18a.6.6 0 0 0 .6.6h10a.6.6 0 0 0 .6-.6v-2.611H4.4zM5 0h10a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm5 18a1 1 0 1 1 0-2 1 1 0 0 1 0 2z\"],\"more\":[\"M2.5 12.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm7.726 0a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm7.274 0a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z\"],\"notification\":[\"M10.026 18.64a.111.111 0 0 0 .011 0h-.01zm-.197-.124l.003-17.038-.07.07L4.94 6.316a.697.697 0 0 1-.49.2H1.968a.646.646 0 0 0-.365.242c-.13.156-.207.388-.22.69l-.001 5.411c.01.19.074.334.203.463.123.122.343.209.622.238h2.304c.183 0 .359.071.488.199l4.83 4.757zM4.164 5.154L8.77.6c.428-.444.913-.668 1.437-.58.583.097.953.522 1.005 1.165V18.84l-.005.085c-.078.603-.462 1.032-1.067 1.074-.451.03-.871-.137-1.252-.484L4.224 14.92l-2.082-.002c-.644-.06-1.166-.267-1.54-.64-.368-.367-.572-.825-.602-1.382V7.42C.027 6.814.2 6.3.532 5.898c.336-.407.767-.66 1.27-.736l.105-.008h2.258zm9.728 9.792a.698.698 0 0 1-.956-.198.675.675 0 0 1 .2-.943c1.068-.686 1.794-2.212 1.794-3.943 0-1.644-.654-3.108-1.645-3.841a.674.674 0 0 1-.137-.954c.23-.3.663-.36.968-.135 1.36 1.007 2.197 2.88 2.197 4.93 0 2.165-.935 4.128-2.42 5.084zm2.526 2.531a.698.698 0 0 1-.955-.208.675.675 0 0 1 .211-.94c1.754-1.102 2.943-3.618 2.943-6.467 0-2.85-1.189-5.366-2.943-6.468a.675.675 0 0 1-.211-.94.698.698 0 0 1 .954-.208C18.602 3.618 20 6.576 20 9.862c0 3.285-1.398 6.243-3.582 7.615z\"],\"opera\":[\"M6.71 4.365c-1.107 1.305-1.822 3.236-1.872 5.4v.47c.05 2.165.764 4.093 1.871 5.4 1.434 1.862 3.566 3.044 5.95 3.044a7.208 7.208 0 0 0 4.005-1.226 9.94 9.94 0 0 1-7.139 2.535A9.998 9.998 0 0 1 0 10C0 4.476 4.478 0 10 0h.037a9.97 9.97 0 0 1 6.628 2.546 7.239 7.239 0 0 0-4.008-1.226c-2.382 0-4.514 1.183-5.95 3.045h.002zM20 10a9.969 9.969 0 0 1-3.335 7.454c-2.565 1.25-4.955.376-5.747-.17 2.52-.554 4.423-3.6 4.423-7.284 0-3.685-1.903-6.73-4.423-7.283.791-.545 3.182-1.42 5.747-.171A9.967 9.967 0 0 1 20 10z\"],\"paper-clip\":[\"M3.264 8.579a.683.683 0 0 1-.975 0 .704.704 0 0 1 0-.987L8.32 1.5C9.68.444 11.048-.063 12.41.006c1.716.088 3.052.742 4.186 1.815C17.752 2.915 18.5 4.476 18.5 6.368c0 1.452-.422 2.73-1.313 3.864l-8.503 8.76c-.86.705-1.816 1.046-2.84 1.005-1.3-.054-2.267-.474-2.986-1.185-.842-.831-1.358-1.852-1.358-3.225 0-1.092.377-2.1 1.155-3.046L10.139 4.9c.6-.64 1.187-1.02 1.787-1.112a2.486 2.486 0 0 1 2.2.755c.532.563.76 1.265.68 2.064-.055.545-.278 1.047-.688 1.528l-6.88 7.048a.683.683 0 0 1-.974.006.704.704 0 0 1-.006-.987l6.847-7.012c.2-.235.305-.472.33-.724.04-.4-.056-.695-.305-.958a1.118 1.118 0 0 0-1-.34c-.243.037-.583.258-1.002.704l-7.453 7.607c-.537.655-.797 1.35-.797 2.109 0 .954.345 1.637.942 2.226.475.47 1.12.75 2.08.79.68.027 1.31-.198 1.858-.642l8.397-8.65c.645-.827.967-1.8.967-2.943 0-1.482-.577-2.684-1.468-3.528-.91-.862-1.95-1.37-3.313-1.44-1.008-.052-2.065.34-3.117 1.146L3.264 8.58z\"],\"pause-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zM7.374 6.136a.682.682 0 1 1 1.364 0v7.272a.682.682 0 0 1-1.364 0V6.136zm4.546 0a.682.682 0 0 1 1.363 0v7.272a.682.682 0 0 1-1.363 0V6.136z\"],\"pause-circle\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zM7.374 6.136v7.272a.682.682 0 0 0 1.364 0V6.136a.682.682 0 1 0-1.364 0zm4.546 0v7.272a.682.682 0 0 0 1.363 0V6.136a.682.682 0 1 0-1.363 0z\"],\"pause\":[\"M4.5 2.742c0-.41.322-.742.72-.742.398 0 .72.332.72.742v14.473c0 .41-.322.741-.72.741a.731.731 0 0 1-.72-.741V2.742zm9.56.043c0-.41.322-.741.72-.741.398 0 .72.332.72.741v14.473c0 .41-.322.742-.72.742a.731.731 0 0 1-.72-.742V2.785z\"],\"pay-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm1.973-13.497a.698.698 0 0 1 .981.992L10.49 8.534a.698.698 0 0 1-.986-.006L7.1 6.094a.698.698 0 0 1 .993-.98l1.913 1.937 1.967-1.943zm-5.77 4.829a.698.698 0 0 1 0-1.396h7.64a.698.698 0 0 1 0 1.396h-7.64zm.583 2.79a.698.698 0 0 1 0-1.395h6.382a.698.698 0 1 1 0 1.395H6.786zm2.548-4.72a.698.698 0 1 1 1.396 0v7.622a.698.698 0 0 1-1.396 0V8.008z\"],\"pay\":[\"M11.67 8.537a.3.3 0 0 0-.302.296v2.212a.3.3 0 0 0 .303.296h6.663a.3.3 0 0 0 .303-.296V8.833a.3.3 0 0 0-.303-.296h-6.663zm0-1.332h6.664c.92 0 1.666.729 1.666 1.628v2.212c0 .899-.746 1.628-1.666 1.628h-6.663c-.92 0-1.666-.73-1.666-1.628V8.833c0-.899.746-1.628 1.666-1.628zm1.667 3.546c.46 0 .833-.36.833-.803 0-.444-.373-.804-.833-.804-.46 0-.833.36-.833.804 0 .444.373.803.833.803zm3.731 3.082c0-.367.305-.666.682-.666.376 0 .681.299.681.666v2.045c0 .9-.184 1.573-.615 2.01-.444.45-1.15.63-2.093.61L2.54 18.495c-.897-.104-1.54-.35-1.923-.803-.347-.41-.54-.995-.617-1.813V4.044c.002-.876.212-1.535.694-1.947.442-.38 1.08-.565 1.927-.597h13.135c.922.045 1.585.227 2.005.613.415.382.628.935.67 1.667v2.097a.674.674 0 0 1-.681.666.674.674 0 0 1-.682-.666l.001-2.059c-.022-.38-.113-.616-.243-.736-.126-.116-.51-.22-1.103-.25H2.647c-.537.02-.886.122-1.055.267-.13.111-.228.417-.229.946l-.003 11.77c.05.514.163.857.308 1.028.11.13.451.26.953.324h13.116c.614.012.976-.08 1.098-.203.135-.137.233-.497.233-1.086v-2.045z\"],\"picasa\":[\"M14.123.898V7.58L6.507.653A9.91 9.91 0 0 1 10 0c1.433 0 2.82.304 4.124.898zm-9.27 17.681A10.045 10.045 0 0 1 .72 13.726l4.131-3.762v8.615zM0 10.021a9.973 9.973 0 0 1 5.443-8.91l3.784 3.443-8.864 8.07A10.036 10.036 0 0 1 0 10.021zm5.902 4.356h13.08c-1.532 3.166-4.616 5.3-8.07 5.623H9.076a9.967 9.967 0 0 1-3.174-.843v-4.78zm9.275-12.904C18.152 3.287 20 6.539 20 10.02c0 1.122-.195 2.232-.567 3.3h-4.256V1.473z\"],\"picture\":[\"M.91 2h18.18a.9.9 0 0 1 .91.889V17.11a.9.9 0 0 1-.91.889H.91a.9.9 0 0 1-.91-.889V2.89A.9.9 0 0 1 .91 2zm.452 8.56l3.606-3.59a.718.718 0 0 1 .44-.156c.155 0 .291.047.41.14l6.431 6.088 2.805-2.35a.704.704 0 0 1 .421-.146.69.69 0 0 1 .418.145l2.742 2.665V3.33H1.362v7.23zm-.007 1.9v4.216H18.64v-1.433l-3.2-3.12-2.777 2.333c-.166.117-.326.168-.48.155a.792.792 0 0 1-.439-.189L5.415 8.417l-4.06 4.042zm13.918-4.565c-.754 0-1.364-.597-1.364-1.333s.61-1.333 1.364-1.333c.753 0 1.363.597 1.363 1.333s-.61 1.333-1.363 1.333z\"],\"pie-chart\":[\"M11.129 0c4.877.05 8.82 3.996 8.871 8.876 0 .197-.16.357-.357.357-.018 0-.034-.008-.052-.01v.01H11.13a.357.357 0 0 1-.357-.357V.41h.01c-.002-.018-.01-.034-.01-.052 0-.197.16-.357.357-.357zm6.808 10.932l-.002.01.002.085c0 4.955-4.015 8.973-8.969 8.973C4.015 20 0 15.982 0 11.027 0 6.07 4.015 2.054 8.968 2.054l.096.002v.003c.008 0 .015-.005.023-.005.198 0 .357.16.357.357 0 .018-.007.034-.01.052h.01v7.755c0 .197.16.357.357.357h7.78c.196 0 .356.16.356.357z\"],\"pinterest\":[\"M10.015 0C4.484 0 0 4.473 0 9.99c0 4.232 2.638 7.847 6.364 9.3-.088-.79-.166-2.002.034-2.865.183-.78 1.175-4.964 1.175-4.964s-.3-.6-.3-1.484c0-1.386.808-2.426 1.811-2.426.855 0 1.268.64 1.268 1.406 0 .858-.545 2.14-.829 3.327-.238.994.502 1.804 1.483 1.804 1.778 0 3.148-1.87 3.148-4.572 0-2.384-1.723-4.058-4.184-4.058-2.848 0-4.518 2.135-4.518 4.333 0 .86.329 1.786.742 2.284.083.1.094.188.071.288-.075.312-.244.999-.279 1.135-.044.188-.143.226-.335.138-1.249-.575-2.032-2.398-2.032-3.872 0-3.146 2.296-6.043 6.616-6.043 3.474 0 6.175 2.472 6.175 5.769 0 3.446-2.178 6.218-5.207 6.218-1.014 0-1.966-.524-2.304-1.149l-.625 2.374c-.225.87-.84 1.96-1.252 2.621A10.07 10.07 0 0 0 9.988 20C15.508 20 20 15.53 20 10.01 20 4.493 15.507.023 9.988.023L10.015 0z\"],\"play-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm-1.1-4.228c-.282.305-.718.187-.718-.28V5.904c0-.468.436-.586.718-.281l3.675 3.962a.644.644 0 0 1 0 .831L8.9 14.377z\"],\"play-circle\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm-1.1-5.623l3.675-3.961a.644.644 0 0 0 0-.831L8.9 5.623c-.282-.305-.718-.187-.718.281v8.193c0 .467.436.585.718.28z\"],\"plus-circle-o\":[\"M10.682 9.28h3.123a.682.682 0 1 1 0 1.363h-3.123v3.123a.682.682 0 1 1-1.364 0v-3.123H6.195a.682.682 0 1 1 0-1.363h3.123V6.156a.682.682 0 1 1 1.364 0V9.28zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21z\"],\"plus-circle\":[\"M10.682 9.28V6.156a.682.682 0 0 0-1.364 0V9.28H6.195a.682.682 0 0 0 0 1.363h3.123v3.123a.682.682 0 1 0 1.364 0v-3.123h3.123a.682.682 0 1 0 0-1.363h-3.123zM10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10z\"],\"plus-square-o\":[\"M1.818 1.364a.455.455 0 0 0-.454.454v16.364c0 .25.203.454.454.454h16.364a.455.455 0 0 0 .454-.454V1.818a.455.455 0 0 0-.454-.454H1.818zm7.798 7.935H5.909a.682.682 0 0 0 0 1.364h3.707v3.706a.682.682 0 1 0 1.363 0v-3.706h3.707a.682.682 0 1 0 0-1.364H10.98V5.592a.682.682 0 0 0-1.363 0V9.3zM1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0z\"],\"plus-square\":[\"M9.616 9.3H5.909a.682.682 0 0 0 0 1.363h3.707v3.706a.682.682 0 1 0 1.363 0v-3.706h3.707a.682.682 0 1 0 0-1.364H10.98V5.592a.682.682 0 0 0-1.363 0V9.3zM1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0z\"],\"plus\":[\"M9.234 9.234V.766a.766.766 0 0 1 1.532 0v8.468h8.468a.766.766 0 1 1 0 1.532h-8.468v8.468a.766.766 0 1 1-1.532 0v-8.468H.766a.766.766 0 0 1 0-1.532h8.468z\"],\"poweroff\":[\"M4.146 2.186a.664.664 0 0 1 .785 1.07c-2.24 1.64-3.603 4.268-3.603 7.028 0 4.547 4.011 8.39 8.679 8.39 4.665 0 8.665-3.84 8.665-8.39 0-2.73-1.33-5.331-3.523-6.976a.663.663 0 1 1 .797-1.06C18.47 4.14 20 7.131 20 10.283 20 15.578 15.393 20 10.007 20 4.618 20 0 15.576 0 10.284c0-3.187 1.569-6.21 4.146-8.098zM9.299.7a.7.7 0 0 1 1.402 0v7.8a.7.7 0 0 1-1.402 0V.7z\"],\"printer\":[\"M17.016 16.119v1.948c0 .457-.082.859-.257 1.2-.246.478-.715.719-1.317.733H4.725c-.594 0-1.082-.217-1.386-.662-.243-.357-.37-.779-.385-1.271v-1.948h-1.02c-.737 0-1.3-.22-1.599-.733-.223-.382-.327-.871-.333-1.476V6.025C-.02 5.389.11 4.868.427 4.482c.383-.468 1.047-.594 1.956-.518h.634V2.08c-.022-.636.108-1.156.425-1.543C3.825.071 4.49-.055 5.398.02h9.831c.628.022 1.113.204 1.407.61.234.322.355.728.38 1.241v2.093h1.198c.627.022 1.112.203 1.406.609.234.322.355.729.38 1.242v8.097c-.002.626-.046 1.094-.219 1.418-.268.5-.764.723-1.59.789h-1.175zm0-1.34l1.12.002c.208-.017.327.005.435-.108.108-.114.089-.39.09-.763V5.848c-.011-.238-.033-.318-.107-.405-.074-.088-.13-.13-.363-.139L2.329 5.302c-.569.002-.7.002-.82.14-.12.14-.18.198-.168.56v7.902c.004.384.016.568.103.708s.18.167.49.167h1.02v-2.627H2.82a.67.67 0 0 1 0-1.34h14.404a.67.67 0 0 1 0 1.34h-.208v2.627zm-1.339-2.627H4.294v5.894c.006.227.058.4.151.536.033.048.1.078.28.078h10.701c.132-.003.144-.009.142-.006.07-.135.11-.33.11-.587v-5.915zm0-8.188v-2.06c-.012-.237-.059-.397-.125-.487-.005-.008-.112-.048-.346-.056l-9.862-.003c-.557-.045-.851.011-.866.03-.082.1-.134.309-.122.67v1.906h11.32zm.407 5.97a2.01 2.01 0 1 1 .001-4.018 2.01 2.01 0 0 1-.001 4.019zm0-1.34a.67.67 0 1 0 0-1.34.67.67 0 0 0 0 1.34zM5.72 14.232a.67.67 0 0 1 0-1.34h8.579a.67.67 0 0 1 0 1.34h-8.58zm0 1.896a.67.67 0 0 1 0-1.34h8.579a.67.67 0 0 1 0 1.34h-8.58zm0 1.897a.67.67 0 0 1 0-1.34h8.579a.67.67 0 0 1 0 1.34h-8.58z\"],\"qq\":[\"M18.496 13.607c-.134-1.931-1.372-3.55-2.088-4.387.1-.243.341-1.653-.593-2.615.002-.023.002-.046.002-.068C15.817 2.743 13.237.012 10 0 6.763.013 4.183 2.743 4.183 6.537c0 .023 0 .046.002.068-.934.962-.692 2.372-.593 2.615-.715.837-1.953 2.456-2.088 4.387-.024.508.051 1.248.288 1.577.289.4 1.081-.081 1.648-1.362.158.594.521 1.5 1.345 2.649-1.378.33-1.771 1.752-1.307 2.53.327.548 1.075.999 2.365.999 2.296 0 3.31-.645 3.763-1.095.091-.099.225-.146.394-.146.17 0 .303.047.394.146.453.45 1.467 1.095 3.762 1.095 1.29 0 2.039-.45 2.366-.999.464-.778.07-2.2-1.307-2.53.824-1.15 1.188-2.055 1.345-2.649.567 1.281 1.36 1.763 1.648 1.362.237-.33.312-1.07.288-1.577z\"],\"qrcode\":[\"M1.363 1.364v6.363h6.363V1.364H1.363zM0 0h9.09v9.09H0V0zm3.267 3.237v2.727h2.727V3.237H3.267zM0 10.91h9.09V20H0v-9.09zm1.363 1.364v6.363h6.363v-6.363H1.363zm1.904 1.873h2.727v2.727H3.267v-2.727zM10.907 0h9.09v9.09h-9.09V0zm1.364 1.364v6.363h6.362V1.364h-6.362zm1.903 1.873h2.727v2.727h-2.727V3.237zm-3.27 7.666h1.364v5.999h-1.363v-5.999zm2.939 7.73v1.364h-2.937v-1.364h2.937zm4.786-1.701h1.364v3.067h-4.61v-1.364h3.246v-1.703zm1.361-5.988v1.364h-4.604v-1.364h4.604zm-1.353 2.907H20v1.529h-1.363v-1.53zm-3.099 1.657h1.366v1.363h-2.729v-2.725h1.363v1.362z\"],\"question-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm2.168-11.028c.066-.471-.048-.876-.455-1.285-.43-.432-1.106-.64-1.625-.572-.758.098-1.065.21-1.588.668-.382.336-.634.833-.75 1.519a.682.682 0 0 1-1.344-.227C6.57 6.7 6.967 5.92 7.6 5.364c.759-.667 1.31-.867 2.312-.997.925-.12 2.027.218 2.768.963.726.73.96 1.564.838 2.436-.096.691-.52 1.435-1.084 1.926-.968.84-.926.803-1.165 1.06a2.595 2.595 0 0 0-.538.916c-.073.204-.136.508-.183.905a.682.682 0 0 1-1.354-.158c.058-.493.14-.893.255-1.21a3.94 3.94 0 0 1 .82-1.379c.17-.184.365-.37.614-.593.115-.103.567-.494.678-.59.313-.282.558-.718.607-1.066zM10 15.455a.91.91 0 1 1 0-1.819.91.91 0 0 1 0 1.819z\"],\"question-circle\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm2.168-12.423c-.049.348-.294.784-.607 1.066-.111.096-.563.487-.678.59a8.904 8.904 0 0 0-.615.593 3.94 3.94 0 0 0-.82 1.38c-.113.316-.196.716-.254 1.209a.682.682 0 1 0 1.354.158c.047-.397.11-.701.183-.905.131-.364.3-.659.538-.915.239-.258.197-.221 1.165-1.061.565-.49.988-1.235 1.084-1.926.122-.872-.112-1.706-.838-2.436-.74-.745-1.843-1.083-2.768-.963-1.002.13-1.553.33-2.312.997C6.967 5.92 6.571 6.7 6.406 7.68a.682.682 0 1 0 1.345.227c.115-.686.367-1.183.75-1.519.522-.458.83-.57 1.587-.668.519-.068 1.196.14 1.625.572.407.409.52.814.455 1.285zM10 15.455a.91.91 0 1 0 0-1.819.91.91 0 0 0 0 1.819z\"],\"reddit\":[\"M20 9.787c0-1.205-1.034-2.184-2.304-2.184-.55 0-1.065.19-1.48.524l-.041.024c-1.499-.91-3.486-1.49-5.683-1.568l1.311-3.537 3.275.742c.002.982.844 1.78 1.88 1.78 1.038 0 1.882-.8 1.882-1.784S17.996 2 16.96 2c-.789 0-1.462.462-1.741 1.114l-3.88-.879-1.61 4.34c-2.293.04-4.37.628-5.924 1.568a2.35 2.35 0 0 0-1.5-.54C1.032 7.602 0 8.582 0 9.786c0 .745.405 1.433 1.063 1.834-.04.217-.066.437-.066.661C.997 15.435 5.028 18 9.982 18c4.955 0 8.987-2.565 8.987-5.718 0-.217-.023-.431-.061-.642.674-.398 1.092-1.096 1.092-1.853zm-6.962 2.828c-.782 0-1.415-.6-1.415-1.342 0-.741.633-1.342 1.415-1.342s1.416.6 1.416 1.342c0 .742-.635 1.342-1.416 1.342zm.281 2.289c-.042.04-1.057 1.02-3.353 1.02-2.308 0-3.23-.992-3.27-1.035a.331.331 0 0 1 .04-.484.378.378 0 0 1 .51.035c.02.022.79.8 2.72.8 1.963 0 2.824-.805 2.833-.813a.376.376 0 0 1 .51-.006.33.33 0 0 1 .01.483zm-7.607-3.631c0-.741.633-1.342 1.417-1.342.78 0 1.415.6 1.415 1.342 0 .742-.635 1.342-1.415 1.342-.783 0-1.417-.6-1.417-1.342z\"],\"reload\":[\"M2.256 6.572l1.472-.01a.704.704 0 0 1 .705.703.705.705 0 0 1-.695.714L.705 8A.704.704 0 0 1 0 7.291V4.087c0-.392.313-.709.7-.709.386 0 .7.317.7.709V5.21C3.222 2.156 6.602 0 10.244 0c4.41 0 8.106 2.721 9.709 6.915a.712.712 0 0 1-.4.917.697.697 0 0 1-.906-.405c-1.4-3.662-4.588-6.01-8.403-6.01-3.371 0-6.521 2.182-7.988 5.155zm15.488 6.856l-1.472.01a.704.704 0 0 1-.705-.703.705.705 0 0 1 .695-.714L19.295 12a.704.704 0 0 1 .705.709v3.204a.704.704 0 0 1-.7.709.704.704 0 0 1-.7-.709V14.79C16.778 17.844 13.398 20 9.756 20c-4.41 0-8.106-2.721-9.709-6.915a.712.712 0 0 1 .4-.917c.36-.141.766.04.906.405 1.4 3.662 4.588 6.01 8.403 6.01 3.371 0 6.521-2.182 7.988-5.155z\"],\"right-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm1.174-8.517l-3.402-3.49a.682.682 0 1 1 .977-.952l3.87 3.971a.682.682 0 0 1-.005.957l-3.87 3.895a.682.682 0 1 1-.967-.961l3.397-3.42z\"],\"right-circle\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm1.174-9.912l-3.397 3.42a.682.682 0 1 0 .967.96l3.87-3.894a.682.682 0 0 0 .005-.957l-3.87-3.971a.682.682 0 1 0-.977.951l3.402 3.491z\"],\"right-square-o\":[\"M1.818 1.364a.455.455 0 0 0-.454.454v16.364c0 .25.203.454.454.454h16.364a.455.455 0 0 0 .454-.454V1.818a.455.455 0 0 0-.454-.454H1.818zm0-1.364h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zm9.356 10.07l-3.397 3.418a.682.682 0 0 0 .967.962l3.87-3.895a.682.682 0 0 0 .005-.957l-3.87-3.971a.682.682 0 1 0-.977.951l3.402 3.491z\"],\"right-square\":[\"M1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zm9.356 10.07l-3.397 3.418a.682.682 0 0 0 .967.962l3.87-3.895a.682.682 0 0 0 .005-.957l-3.87-3.971a.682.682 0 1 0-.977.951l3.402 3.491z\"],\"rollback\":[\"M2.306 4.324l3.13-3.13a.7.7 0 0 0-.99-.99L.207 4.447a.7.7 0 0 0 0 .99l4.241 4.241a.7.7 0 1 0 .99-.99L2.473 5.725H13.3a5.299 5.299 0 0 1 5.3 5.298V19.3a.7.7 0 0 0 1.399 0v-8.278c0-3.699-3-6.698-6.699-6.698H2.306z\"],\"safari\":[\"M10.591 9.966c0 .194-.061.361-.184.503a.586.586 0 0 1-.463.212.742.742 0 0 1-.503-.185.586.586 0 0 1-.212-.463.73.73 0 0 1 .19-.502.602.602 0 0 1 .47-.212c.185 0 .349.062.49.184a.584.584 0 0 1 .212.463zm.168.648l3.906-6.485c-.067.06-.318.292-.753.698-.435.405-.902.839-1.4 1.3-.5.461-1.007.934-1.524 1.417-.518.484-.953.895-1.306 1.233-.353.339-.541.53-.564.575l-3.895 6.474c.052-.052.301-.283.748-.692.446-.41.915-.843 1.406-1.3l1.518-1.418c.52-.487.956-.9 1.306-1.239.35-.338.535-.526.558-.563zM17.98 10a7.787 7.787 0 0 1-1.16 4.14 18.429 18.429 0 0 0-.486-.306c-.093-.056-.155-.084-.185-.084-.096 0-.145.048-.145.145 0 .075.22.238.66.491a7.989 7.989 0 0 1-2.06 2.127 7.817 7.817 0 0 1-2.696 1.233l-.179-.748c-.007-.074-.063-.112-.167-.112-.037 0-.067.02-.09.062-.022.04-.03.076-.022.106l.179.759a7.965 7.965 0 0 1-1.63.167c-1.48 0-2.864-.39-4.152-1.172.008-.015.056-.091.145-.229.09-.137.17-.262.24-.373.071-.112.107-.183.107-.212 0-.097-.049-.145-.145-.145-.045 0-.108.054-.19.162a3.6 3.6 0 0 0-.252.385 8.227 8.227 0 0 1-.15.256 8.015 8.015 0 0 1-2.143-2.092 7.813 7.813 0 0 1-1.228-2.729l.77-.167c.075-.023.112-.079.112-.168 0-.037-.02-.067-.061-.09-.041-.022-.08-.03-.118-.022l-.758.168A8.127 8.127 0 0 1 2.019 10a7.78 7.78 0 0 1 1.217-4.23c.015.007.083.052.206.133.122.082.234.153.335.212.1.06.166.09.195.09.097 0 .145-.045.145-.134 0-.045-.046-.102-.139-.173a4.02 4.02 0 0 0-.362-.24l-.224-.134a8.123 8.123 0 0 1 2.11-2.11 7.83 7.83 0 0 1 2.723-1.194l.167.748c.015.074.071.112.168.112.037 0 .067-.02.09-.062.022-.04.03-.08.022-.117l-.168-.737A8.327 8.327 0 0 1 10 2.02c1.518 0 2.928.405 4.23 1.216-.29.417-.435.659-.435.726 0 .097.045.145.134.145.081 0 .26-.238.535-.714a7.875 7.875 0 0 1 2.093 2.075c.569.826.969 1.723 1.2 2.69l-.625.134c-.075.015-.112.074-.112.179 0 .037.02.067.061.089.041.023.076.03.107.023l.636-.145c.104.535.156 1.056.156 1.562zm.949 0c0-1.213-.236-2.37-.709-3.471a8.988 8.988 0 0 0-1.903-2.846 8.988 8.988 0 0 0-2.846-1.904 8.713 8.713 0 0 0-3.472-.708c-1.213 0-2.37.236-3.47.708a8.988 8.988 0 0 0-2.847 1.904 8.988 8.988 0 0 0-1.903 2.846A8.713 8.713 0 0 0 1.07 10c0 1.213.236 2.37.709 3.471a8.988 8.988 0 0 0 1.903 2.846 8.988 8.988 0 0 0 2.846 1.904 8.713 8.713 0 0 0 3.471.708c1.213 0 2.37-.236 3.472-.708a8.988 8.988 0 0 0 2.846-1.904 8.988 8.988 0 0 0 1.903-2.846A8.713 8.713 0 0 0 18.929 10zM20 10a9.773 9.773 0 0 1-.793 3.884c-.528 1.235-1.238 2.299-2.131 3.192-.893.893-1.957 1.603-3.192 2.131A9.773 9.773 0 0 1 10 20a9.773 9.773 0 0 1-3.884-.793c-1.235-.528-2.299-1.238-3.192-2.131-.893-.893-1.603-1.957-2.132-3.192A9.773 9.773 0 0 1 0 10c0-1.354.264-2.649.792-3.884.529-1.235 1.24-2.299 2.132-3.192.893-.893 1.957-1.603 3.192-2.132A9.773 9.773 0 0 1 10 0c1.354 0 2.649.264 3.884.792 1.235.529 2.299 1.24 3.192 2.132.893.893 1.603 1.957 2.131 3.192A9.773 9.773 0 0 1 20 10z\"],\"safety\":[\"M2.842 3.865v7.434c0 4.047 3.205 7.327 7.158 7.327 3.953 0 7.158-3.28 7.158-7.327v-7.43L9.957 1.446 2.842 3.865zM1.5 2.874L9.955 0 18.5 2.874v8.425C18.5 16.104 14.694 20 10 20s-8.5-3.896-8.5-8.701V2.874zm11.926 3.668L9.11 11.511 6.322 8.426a.66.66 0 0 0-.948-.038.698.698 0 0 0-.037.971l3.29 3.64a.66.66 0 0 0 .995-.01l4.807-5.534a.698.698 0 0 0-.055-.97.66.66 0 0 0-.948.057z\"],\"save\":[\"M2.727 1.364c-.753 0-1.363.61-1.363 1.363v14.546c0 .753.61 1.363 1.363 1.363h14.546c.753 0 1.363-.61 1.363-1.363V2.727c0-.753-.61-1.363-1.363-1.363H2.727zm0-1.364h14.546A2.727 2.727 0 0 1 20 2.727v14.546A2.727 2.727 0 0 1 17.273 20H2.727A2.727 2.727 0 0 1 0 17.273V2.727A2.727 2.727 0 0 1 2.727 0zm10.546 3.117V5a.682.682 0 0 0 1.364 0V3.117a.682.682 0 0 0-1.364 0zM2.743.94l1.364.006-.021 4.446c-.03.406.1.734.415 1.037.313.301.744.438 1.384.4l8.625.004c.482-.055.821-.213 1.05-.469.228-.257.346-.603.345-1.073V.942h1.364v4.347c.001.789-.227 1.46-.692 1.982-.465.522-1.114.825-1.99.92h-8.66c-.959.059-1.765-.197-2.371-.78-.604-.58-.89-1.304-.832-2.072l.02-4.4z\"],\"search\":[\"M14.414 13.35l5.388 5.474a.686.686 0 0 1-.015.98.71.71 0 0 1-.993-.014l-5.383-5.47a8.23 8.23 0 0 1-5.216 1.849C3.67 16.169 0 12.549 0 8.084 0 3.62 3.67 0 8.195 0c4.527 0 8.196 3.62 8.196 8.084a7.989 7.989 0 0 1-1.977 5.267zm-6.219 1.433c3.75 0 6.791-3 6.791-6.699 0-3.7-3.04-6.698-6.79-6.698S1.404 4.385 1.404 8.084c0 3.7 3.04 6.699 6.79 6.699z\"],\"setting-o\":[\"M11.65 19.5a.696.696 0 0 1-.64.457L9.11 20a.696.696 0 0 1-.669-.447l-.766-2.027a14.625 14.625 0 0 1-.776-.29 9.987 9.987 0 0 1-.618-.293l-1.9.812a.702.702 0 0 1-.755-.133L2.22 16.303a.683.683 0 0 1-.155-.783l.817-1.78a9.517 9.517 0 0 1-.302-.644 14.395 14.395 0 0 1-.3-.811L.49 11.74a.69.69 0 0 1-.49-.683l.07-1.921a.688.688 0 0 1 .392-.594l1.878-.902c.087-.319.163-.567.23-.748a8.99 8.99 0 0 1 .314-.712L2.07 4.46a.683.683 0 0 1 .15-.79l1.404-1.326a.702.702 0 0 1 .75-.138l1.898.784c.21-.14.4-.253.572-.344.205-.109.479-.223.824-.346l.66-1.841A.696.696 0 0 1 8.984 0h2.094c.294 0 .557.183.656.457l.706 1.957c.253.063.47.126.654.192.201.072.46.181.78.33l1.644-.87a.702.702 0 0 1 .832.131l1.446 1.495c.192.199.246.49.138.744l-.771 1.807c.128.235.23.436.308.604.084.183.188.435.312.76l1.797.77c.27.115.437.385.419.674l-.132 2.075a.69.69 0 0 1-.46.605l-1.702.605c-.049.235-.1.436-.154.606a8.79 8.79 0 0 1-.298.774l.855 1.89a.683.683 0 0 1-.168.793l-1.626 1.452a.703.703 0 0 1-.796.096l-1.676-.888a7.23 7.23 0 0 1-.81.367l-.732.274-.65 1.8zm-1.15-.909l.596-1.653a.692.692 0 0 1 .409-.413l1.037-.388c.262-.097.58-.25.951-.46a.703.703 0 0 1 .674-.008l1.577.835.887-.791L15.856 14a.681.681 0 0 1-.001-.56c.182-.407.305-.714.367-.91.061-.192.124-.469.185-.825a.69.69 0 0 1 .451-.533l1.648-.585.072-1.14-1.62-.694a.692.692 0 0 1-.377-.394 15.337 15.337 0 0 0-.378-.944 11.01 11.01 0 0 0-.42-.794.682.682 0 0 1-.035-.606l.725-1.7-.764-.79-1.488.788a.703.703 0 0 1-.633.013 11.296 11.296 0 0 0-.968-.426 7.185 7.185 0 0 0-.857-.23.694.694 0 0 1-.508-.441l-.668-1.853h-1.11l-.608 1.694a.693.693 0 0 1-.434.423c-.436.145-.751.27-.935.367-.195.103-.444.26-.74.47a.703.703 0 0 1-.673.074l-1.83-.755-.713.674.743 1.57c.09.19.088.41-.006.597-.2.401-.335.697-.403.879-.068.181-.159.492-.27.922a.69.69 0 0 1-.37.45l-1.79.859-.036.98 1.62.492c.215.065.385.23.456.442.16.48.288.834.38 1.056a10 10 0 0 0 .404.827c.101.188.108.412.019.606l-.751 1.638.711.668 1.782-.762a.703.703 0 0 1 .603.024c.365.192.637.325.809.398.175.073.51.195.996.361a.693.693 0 0 1 .424.41l.708 1.871.926-.02zm-.476-4.228c-2.436 0-4.41-1.953-4.41-4.36 0-2.41 1.974-4.362 4.41-4.362 2.435 0 4.41 1.953 4.41 4.361 0 2.408-1.975 4.36-4.41 4.36zm0-1.377c1.666 0 3.017-1.336 3.017-2.984s-1.35-2.983-3.017-2.983c-1.667 0-3.018 1.335-3.018 2.983 0 1.648 1.351 2.984 3.018 2.984z\"],\"setting\":[\"M11.65 19.5a.696.696 0 0 1-.64.457L9.11 20a.696.696 0 0 1-.669-.447l-.766-2.027a14.625 14.625 0 0 1-.776-.29 9.987 9.987 0 0 1-.618-.293l-1.9.812a.702.702 0 0 1-.755-.133L2.22 16.303a.683.683 0 0 1-.155-.783l.817-1.78a9.517 9.517 0 0 1-.302-.644 14.395 14.395 0 0 1-.3-.811L.49 11.74a.69.69 0 0 1-.49-.683l.07-1.921a.688.688 0 0 1 .392-.594l1.878-.902c.087-.319.163-.567.23-.748a8.99 8.99 0 0 1 .314-.712L2.07 4.46a.683.683 0 0 1 .15-.79l1.404-1.326a.702.702 0 0 1 .75-.138l1.898.784c.21-.14.4-.253.572-.344.205-.109.479-.223.824-.346l.66-1.841A.696.696 0 0 1 8.984 0h2.094c.294 0 .557.183.656.457l.706 1.957c.253.063.47.126.654.192.201.072.46.181.78.33l1.644-.87a.702.702 0 0 1 .832.131l1.446 1.495c.192.199.246.49.138.744l-.771 1.807c.128.235.23.436.308.604.084.183.188.435.312.76l1.797.77c.27.115.437.385.419.674l-.132 2.075a.69.69 0 0 1-.46.605l-1.702.605c-.049.235-.1.436-.154.606a8.79 8.79 0 0 1-.298.774l.855 1.89a.683.683 0 0 1-.168.793l-1.626 1.452a.703.703 0 0 1-.796.096l-1.676-.888a7.23 7.23 0 0 1-.81.367l-.732.274-.65 1.8zm-1.626-6.514c1.666 0 3.017-1.336 3.017-2.984s-1.35-2.983-3.017-2.983c-1.667 0-3.018 1.335-3.018 2.983 0 1.648 1.351 2.984 3.018 2.984z\"],\"share\":[\"M7.153 8.825c.14.364.216.76.216 1.175 0 .541-.13 1.052-.363 1.5l6.008 3.726a3.177 3.177 0 0 1 2.801-1.695c1.76 0 3.185 1.45 3.185 3.234C19 18.55 17.576 20 15.815 20c-1.76 0-3.184-1.45-3.184-3.235 0-.046 0-.092.003-.137L6.105 12.58c-.533.41-1.199.655-1.92.655C2.425 13.235 1 11.785 1 10s1.424-3.235 3.185-3.235c.852 0 1.626.34 2.197.894l6.382-3.494a3.282 3.282 0 0 1-.133-.93C12.63 1.45 14.055 0 15.815 0 17.575 0 19 1.45 19 3.235s-1.424 3.234-3.185 3.234c-.946 0-1.796-.419-2.379-1.084l-6.283 3.44zM4.185 11.84c.992 0 1.8-.822 1.8-1.839s-.808-1.84-1.8-1.84c-.993 0-1.8.823-1.8 1.84 0 1.017.807 1.84 1.8 1.84zm11.63-6.765c.993 0 1.8-.822 1.8-1.84 0-1.017-.807-1.839-1.8-1.839-.992 0-1.8.822-1.8 1.84 0 1.017.808 1.839 1.8 1.839zm0 13.53c.993 0 1.8-.821 1.8-1.839 0-1.017-.807-1.839-1.8-1.839-.992 0-1.8.822-1.8 1.84 0 1.017.808 1.839 1.8 1.839z\"],\"shopping-cart\":[\"M2.033 14.744c.345.298.842.455 1.517.455l10.875.003c.701-.07 1.166-.284 1.434-.622.29-.364.464-.96.494-1.773v-9.57c.038-.747.264-1.403.68-1.948.429-.56 1.131-.97 2.094-1.26a.679.679 0 0 1 .845.468.695.695 0 0 1-.46.86c-.714.215-1.178.486-1.405.783-.239.313-.37.696-.393 1.131v9.561c-.04 1.114-.297 1.992-.798 2.62-.521.656-1.321 1.025-2.424 1.132H3.55c-.977 0-1.784-.255-2.396-.782-.612-.527-.99-1.29-1.145-2.26L0 13.432V7.492c.046-1.03.369-1.88.977-2.516.619-.645 1.483-.975 2.573-1.005h9.518c.376 0 .68.31.68.692a.687.687 0 0 1-.68.693h-9.5c-.74.02-1.266.221-1.617.588-.36.376-.56.901-.59 1.579v5.85c.11.634.336 1.081.672 1.37zm2.726-5.517a.687.687 0 0 1-.68-.693c0-.382.305-.693.68-.693h8.309c.376 0 .68.31.68.693a.687.687 0 0 1-.68.693H4.759zm0 3.695a.687.687 0 0 1-.68-.693c0-.383.305-.693.68-.693h8.309c.376 0 .68.31.68.693a.687.687 0 0 1-.68.693H4.759zm-3.398 7.08c-.752 0-1.361-.62-1.361-1.386 0-.765.61-1.385 1.36-1.385.752 0 1.362.62 1.362 1.385s-.61 1.386-1.361 1.386zm15.422 0c-.751 0-1.36-.62-1.36-1.386 0-.765.609-1.385 1.36-1.385.752 0 1.36.62 1.36 1.385s-.608 1.386-1.36 1.386z\"],\"shrink\":[\"M7.972 12.907l-6.773 6.889a.7.7 0 1 1-.998-.982l6.738-6.853H2.672a.7.7 0 1 1 0-1.4h6a.7.7 0 0 1 .7.7v6a.7.7 0 1 1-1.4 0v-4.354zm4.058-5.81L18.803.21a.7.7 0 0 1 .998.982l-6.738 6.853h4.267a.7.7 0 0 1 0 1.4h-6a.7.7 0 0 1-.7-.7v-6a.7.7 0 1 1 1.4 0v4.354z\"],\"smile-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zM5.814 9.07a1.395 1.395 0 1 1 0-2.79 1.395 1.395 0 0 1 0 2.79zm8.372 0a1.395 1.395 0 1 1 0-2.79 1.395 1.395 0 0 1 0 2.79zM6.39 12.162a.682.682 0 1 1 1.354-.163 2.273 2.273 0 0 0 4.51.015.682.682 0 1 1 1.353.172 3.637 3.637 0 0 1-7.217-.024z\"],\"smile\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zM5.814 9.07a1.395 1.395 0 1 0 0-2.79 1.395 1.395 0 0 0 0 2.79zm8.372 0a1.395 1.395 0 1 0 0-2.79 1.395 1.395 0 0 0 0 2.79zM6.39 12.162a3.637 3.637 0 0 0 7.217.024.682.682 0 0 0-1.352-.172A2.273 2.273 0 0 1 7.744 12a.682.682 0 0 0-1.354.163z\"],\"star-off\":[\"M3.902 12.937L.429 9.127l-.058-.074C0 8.513-.107 7.943.116 7.406c.226-.545.737-.87 1.472-1.014l4.543-.715L8.675.752C8.965.279 9.39 0 9.908 0c.51 0 .936.27 1.242.73l.05.088 2.285 4.863 5.168.827c.705.127 1.198.508 1.32 1.138.11.563-.118 1.113-.622 1.667l-3.593 3.637.86 5.277c.086.638-.084 1.181-.549 1.523-.477.35-1.087.318-1.863-.008l-4.38-2.355-4.318 2.315c-.607.333-1.22.354-1.74.004s-.73-.925-.644-1.627l.778-5.142zm1.454-.441l-.049.323-.824 5.446c-.025.206-.002.268.051.304.055.036.126.034.32-.072l4.973-2.667.325.174 4.643 2.5c.317.133.462.14.462.14.013-.009.026-.052.004-.215l-.969-5.946.245-.248 3.818-3.864c.22-.244.284-.397.271-.464 0 0-.018-.014-.203-.047l-5.872-.94-2.57-5.47c-.049-.069-.065-.079-.073-.079 0 0-.007.004-.039.053l-2.838 5.5-.344.054-4.86.764c-.302.06-.421.136-.444.19-.025.06-.011.146.095.31l3.878 4.254z\"],\"star-on\":[\"M9.89 17.514l-4.21 2.257-.099.044c-.715.27-1.39.216-1.903-.242-.482-.43-.657-1.046-.557-1.755l.704-4.86-3.18-3.342c-.55-.56-.765-1.248-.58-1.968.205-.799.88-1.258 1.851-1.412l4.227-.638 2.213-4.585C8.7.366 9.236-.017 9.911.001c.66.017 1.183.422 1.593 1.143l2.14 4.486 4.74.658c.753.13 1.308.522 1.53 1.176.22.653.01 1.313-.557 1.987l-3.44 3.51.772 4.856c.122.84-.025 1.505-.586 1.9-.506.357-1.139.357-1.867.107l-.12-.053-4.226-2.257z\"],\"swap-left\":[\"M2.64 11.917h16.591a.78.78 0 0 1 .769.792.78.78 0 0 1-.769.791H.771c-.688 0-1.03-.857-.541-1.354L5.549 6.73a.754.754 0 0 1 1.087.006.808.808 0 0 1-.005 1.119l-3.99 4.063z\"],\"swap-right\":[\"M.7 12.08c-.387 0-.7.318-.7.71 0 .392.313.71.7.71h18.599c.621 0 .934-.76.498-1.209l-5.428-5.58a.693.693 0 0 0-.99-.006.717.717 0 0 0-.007 1.004l4.253 4.371H.7z\"],\"swap\":[\"M19.297 5.502a.7.7 0 0 1 0 1.4H.7a.7.7 0 0 1-.498-1.191L5.63.208a.7.7 0 1 1 .996.984l-4.252 4.31h16.923zM.703 14.498a.7.7 0 0 1 0-1.4H19.3a.7.7 0 0 1 .498 1.191l-5.427 5.503a.7.7 0 1 1-.996-.984l4.252-4.31H.703z\"],\"table\":[\"M1.364 5.138v12.02h17.272V5.138H1.364zM.909 1.5h18.182c.502 0 .909.4.909.895v15.21a.902.902 0 0 1-.91.895H.91c-.503 0-.91-.4-.91-.895V2.395C0 1.9.407 1.5.91 1.5zm5.227 1.759c0-.37.306-.671.682-.671.377 0 .682.3.682.671v13.899c0 .37-.305.67-.682.67a.676.676 0 0 1-.682-.67V3.259zm7.642 6.368v3.061h5.002c.377 0 .682.3.682.671 0 .37-.305.671-.682.671h-5.002v3.158c0 .371-.305.671-.682.671a.676.676 0 0 1-.681-.67V14.03H1a.676.676 0 0 1-.682-.67c0-.371.305-.672.682-.672h11.414V9.627H.909a.676.676 0 0 1-.682-.671c0-.37.306-.671.682-.671h11.506V3.289c0-.37.305-.67.681-.67.377 0 .682.3.682.67v4.996h4.91c.377 0 .683.3.683.67 0 .372-.306.672-.682.672h-4.91z\"],\"tag-o\":[\"M.312 10.755a.68.68 0 0 1-.198-.47L0 1.472C.007 1.044.126.681.392.413.666.138 1.055.023 1.588 0h8.78c.182 0 .356.072.484.201l8.35 8.39c.558.586.836 1.249.794 1.958-.04.664-.304 1.274-.807 1.846l-7.074 7.037-.115.092c-.638.406-1.26.564-1.85.428-.515-.118-1.054-.436-1.677-.978l-8.16-8.219zm1.164-.764l7.929 7.988c.431.374.789.585 1.052.645.178.041.424-.017.75-.213l6.986-6.948c.278-.316.419-.642.44-.995.018-.307-.109-.61-.41-.927l-8.14-8.178H1.619c-.194.008-.28.033-.256.01.015-.015.005.015.003.102l.111 8.516zm4.997-.873a2.956 2.956 0 0 1-2.958-2.954 2.956 2.956 0 0 1 2.958-2.953 2.956 2.956 0 0 1 2.959 2.953 2.956 2.956 0 0 1-2.959 2.954zm0-1.363c.88 0 1.593-.712 1.593-1.59 0-.879-.713-1.59-1.593-1.59s-1.592.711-1.592 1.59c0 .878.713 1.59 1.592 1.59z\"],\"tag\":[\"M.312 10.755a.68.68 0 0 1-.198-.47L0 1.472C.007 1.044.126.681.392.413.666.138 1.055.023 1.588 0h8.78c.182 0 .356.072.484.201l8.35 8.39c.558.586.836 1.249.794 1.958-.04.664-.304 1.274-.807 1.846l-7.074 7.037-.115.092c-.638.406-1.26.564-1.85.428-.515-.118-1.054-.436-1.677-.978l-8.16-8.219zm6.161-3c.88 0 1.593-.712 1.593-1.59 0-.879-.713-1.59-1.593-1.59s-1.592.711-1.592 1.59c0 .878.713 1.59 1.592 1.59z\"],\"tags-o\":[\"M.205 9.166A.648.648 0 0 1 0 8.696V3.358c-.01-.334.076-.639.27-.89C.5 2.172.848 2.024 1.299 2h5.518c.18 0 .353.07.48.194l9.015 8.798c.186.22.273.491.24.774-.027.234-.124.45-.322.673l-5.443 5.236a1.123 1.123 0 0 1-.782.319c-.275 0-.532-.098-.818-.318L.205 9.166zm1.15-.747l8.628 8.18 5.122-4.925-8.57-8.36h-5.18v5.105zM9.976 3.32h-2.99a.667.667 0 0 1-.677-.657c0-.363.304-.658.678-.658h3.271c.18 0 .353.07.48.194l9.015 8.798c.187.22.273.492.24.775-.027.234-.124.449-.322.673l-5.442 5.236a1.123 1.123 0 0 1-.782.318c-.276 0-.532-.097-.819-.318l-1.341-1.271a.643.643 0 0 1-.012-.93.692.692 0 0 1 .958-.01l1.191 1.134 5.123-4.924-8.57-8.36zm-5.48 4.845c-1.122 0-2.032-.882-2.032-1.97 0-1.09.91-1.972 2.032-1.972 1.122 0 2.031.882 2.031 1.971s-.91 1.971-2.031 1.971zm0-1.314a.667.667 0 0 0 .677-.657.667.667 0 0 0-.677-.657.667.667 0 0 0-.678.657c0 .363.304.657.678.657z\"],\"tags\":[\"M.205 9.166A.648.648 0 0 1 0 8.696V3.358c-.01-.334.076-.639.27-.89C.5 2.172.848 2.024 1.299 2h5.518c.18 0 .353.07.48.194l9.015 8.798c.186.22.273.491.24.774-.027.234-.124.45-.322.673l-5.443 5.236a1.123 1.123 0 0 1-.782.319c-.275 0-.532-.098-.818-.318L.205 9.166zm9.422-6.151c-.396-.37-.805-.631-1.226-.783-.632-.227-1.125-.226-.751-.226h2.608c.18 0 .353.07.48.194l9.015 8.798c.187.22.273.492.24.775-.027.234-.124.449-.322.673l-5.442 5.236a1.123 1.123 0 0 1-.782.318c-.276 0-.507-.098-.794-.318l-.17-.135.941-.942 4.437-4.265c.168-.194.251-.426.251-.697a.834.834 0 0 0-.275-.652l-8.21-7.976zM4.49 7.757c.88 0 1.593-.696 1.593-1.554 0-.859-.713-1.555-1.593-1.555s-1.593.696-1.593 1.555c0 .858.713 1.554 1.593 1.554z\"],\"taobao\":[\"M1.977 6.56L.841 8.262 2.937 9.53s1.394.696.726 2.004C3.045 12.77 0 15.478 0 15.478l2.726 1.66c1.89-3.996 1.762-3.463 2.235-4.901.487-1.46.595-2.581-.23-3.397C3.67 7.8 3.55 7.704 1.976 6.56zm1.49-.64c-.998 0-1.793-.705-1.797-1.565 0-.868.799-1.572 1.797-1.572.99 0 1.793.7 1.793 1.572 0 .864-.802 1.564-1.793 1.564zm16.195.193s.66 3.114.135 7.994c-.53 4.88-7.023 3.062-7.023 3.062l.35-1.397 1.505.316c2.78.168 2.51-2.201 2.51-2.201V6.981c.02-2.622-2.526-2.898-7.095-1.296l1.068.283c-.093.302-.434.782-.876 1.307h6.105v1.207h-3.433v1.512h3.421v1.211h-3.42v2.53c.51-.168.99-.392 1.397-.697l-.3-1.1 1.613-.495 1.348 3.219-1.989.816-.353-1.29c-.891.667-2.742 1.636-5.967 1.55-3.452.086-2.56-3.8-2.56-3.8l.087-.048h2.423c-.011.503-.222 1.312.062 1.759.238.365.837.428 1.224.447l.135.003v-2.894h-3.51V9.998h3.51V8.486H9.13c-.787.816-1.512 1.497-1.512 1.497l-1.06-.909C7.31 8.3 8.059 7.07 8.528 6.251c-.392.155-.781.316-1.168.484-.384.484-.837.984-1.34 1.475.02.03-1.739-.96-1.739-.96 1.812-1.51 2.83-4.75 2.83-4.75l2.515.693s-.204.473-.638 1.207c10.08-2.787 10.674 1.713 10.674 1.713z\"],\"time-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm-.233-7.442h4.884a.698.698 0 0 1 0 1.395H9.07a.698.698 0 0 1-.698-.698V6.28a.698.698 0 0 1 1.395 0v4.883z\"],\"time\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm-.233-8.837V6.279a.698.698 0 0 0-1.395 0v5.581c0 .386.312.698.698.698h5.581a.698.698 0 1 0 0-1.395H9.767z\"],\"twitter\":[\"M20 3.894a8.299 8.299 0 0 1-2.357.636 4.062 4.062 0 0 0 1.804-2.234c-.792.462-1.67.799-2.605.98A4.13 4.13 0 0 0 13.847 2c-2.266 0-4.103 1.808-4.103 4.04 0 .316.036.624.106.92a11.71 11.71 0 0 1-8.457-4.22 3.974 3.974 0 0 0-.556 2.03c0 1.402.725 2.638 1.826 3.362a4.143 4.143 0 0 1-1.859-.505v.05c0 1.957 1.414 3.59 3.29 3.961a4.189 4.189 0 0 1-1.852.07c.522 1.604 2.037 2.772 3.833 2.805a8.317 8.317 0 0 1-5.096 1.73A8.42 8.42 0 0 1 0 16.185 11.747 11.747 0 0 0 6.29 18c7.547 0 11.674-6.155 11.674-11.492 0-.175-.004-.35-.012-.523A8.249 8.249 0 0 0 20 3.895z\"],\"uiw\":[\"M5.976 0l4.475 3.418-1.71 5.531H3.21L1.5 3.42 5.976 0zm0 20L1.5 16.582l1.71-5.531h5.532l1.709 5.53L5.976 20zM18.5 12.968l-5.261 1.797-3.252-4.705 3.252-4.705 5.26 1.797.001 5.816z\"],\"unlock\":[\"M3.4 9.005h14.607v10a1 1 0 0 1-1 1h-14a1 1 0 0 1-1-1V9.758A.706.706 0 0 1 2 9.66V7.763c-.011-1.926.686-3.636 2.073-5.096C5.865.781 7.631.118 10.186.007c2.024-.088 3.86.623 5.43 2.039a9.878 9.878 0 0 1 2.321 3.076.7.7 0 1 1-1.262.606 8.479 8.479 0 0 0-1.998-2.643c-1.304-1.177-2.786-1.75-4.43-1.679-2.22.097-3.644.63-5.159 2.225C3.947 4.833 3.391 6.196 3.4 7.76v1.246zm.007 1.4v8.2h13.2v-8.2h-13.2zm6.255 4.098v-2.175a.7.7 0 0 1 1.4 0v2.168a1.5 1.5 0 1 1-1.4.007z\"],\"up-circle-o\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm0-1.395a8.605 8.605 0 1 0 0-17.21 8.605 8.605 0 0 0 0 17.21zm.005-9.529l-3.42 3.398a.682.682 0 1 1-.96-.968l3.894-3.87a.682.682 0 0 1 .957-.005l3.971 3.87a.682.682 0 1 1-.951.977l-3.491-3.402z\"],\"up-circle\":[\"M10 20C4.477 20 0 15.523 0 10S4.477 0 10 0s10 4.477 10 10-4.477 10-10 10zm.005-10.924l3.49 3.402a.682.682 0 0 0 .952-.976l-3.971-3.87a.682.682 0 0 0-.957.004l-3.895 3.87a.682.682 0 0 0 .962.968l3.419-3.398z\"],\"up-square-o\":[\"M1.818 1.364a.455.455 0 0 0-.454.454v16.364c0 .25.203.454.454.454h16.364a.455.455 0 0 0 .454-.454V1.818a.455.455 0 0 0-.454-.454H1.818zm0-1.364h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zm8.187 9.057l3.49 3.402a.682.682 0 1 0 .952-.976l-3.971-3.87a.682.682 0 0 0-.957.004l-3.895 3.87a.682.682 0 0 0 .962.968l3.419-3.398z\"],\"up-square\":[\"M1.818 0h16.364C19.186 0 20 .814 20 1.818v16.364A1.818 1.818 0 0 1 18.182 20H1.818A1.818 1.818 0 0 1 0 18.182V1.818C0 .814.814 0 1.818 0zm8.187 9.057l3.49 3.402a.682.682 0 1 0 .952-.976l-3.971-3.87a.682.682 0 0 0-.957.004l-3.895 3.87a.682.682 0 0 0 .962.968l3.419-3.398z\"],\"upload\":[\"M9.985 0h.005c.226 0 .426.11.552.28l4.278 4.304c.27.272.272.715.004.99a.682.682 0 0 1-.974.003l-3.17-3.189v9.643c0 .387-.31.7-.69.7a.694.694 0 0 1-.69-.7V2.383L6.173 5.574a.682.682 0 0 1-.975.002.707.707 0 0 1-.002-.989L9.49.207A.682.682 0 0 1 9.985 0zM0 12.75c0-.385.309-.699.69-.699.38 0 .688.314.688.7v4.913c0 .333.065.572.182.736.081.114.224.184.44.201l15.817.001c.42-.023.627-.1.655-.14.084-.123.146-.393.15-.8v-4.911c0-.386.308-.7.689-.7.38 0 .689.314.689.7v4.918c-.006.67-.127 1.2-.399 1.594-.328.476-.908.692-1.747.737l-15.903-.002c-.646-.046-1.168-.302-1.507-.777-.302-.423-.446-.95-.444-1.558V12.75z\"],\"user-add\":[\"M11.825 10.965c-.72.32-1.518.5-2.358.5a5.767 5.767 0 0 1-2.579-.605.704.704 0 0 1-.043.019c-1.95.756-3.373 1.874-4.292 3.358-.922 1.489-1.299 3.153-1.13 5.014a.689.689 0 0 1-.628.746.69.69 0 0 1-.75-.623c-.195-2.152.249-4.113 1.33-5.858.95-1.535 2.346-2.73 4.172-3.58a5.702 5.702 0 0 1-1.844-4.204C3.703 2.566 6.283 0 9.467 0s5.765 2.566 5.765 5.732a5.706 5.706 0 0 1-2.019 4.357c.269.135.514.27.737.404.478.29.974.65 1.49 1.079a.685.685 0 0 1 .086.969.694.694 0 0 1-.975.086 11.05 11.05 0 0 0-1.322-.96 11.4 11.4 0 0 0-1.404-.702zm4.355 4.172v-1.753a.69.69 0 0 1 .688-.691c.38 0 .688.31.688.691v1.753h1.752a.69.69 0 0 1 .692.688.69.69 0 0 1-.692.687h-1.752v1.753a.69.69 0 0 1-.688.691.69.69 0 0 1-.688-.691v-1.753h-1.752a.69.69 0 0 1-.692-.687c0-.38.31-.688.692-.688h1.752zm-6.713-5.048c2.42 0 4.381-1.95 4.381-4.357 0-2.406-1.961-4.356-4.38-4.356-2.42 0-4.382 1.95-4.382 4.356 0 2.406 1.962 4.357 4.381 4.357z\"],\"user-delete\":[\"M16.632 15.415l1.187-1.176a.698.698 0 0 1 .978-.002c.27.266.27.698.002.965l-1.191 1.18 1.19 1.18a.675.675 0 0 1-.001.963.698.698 0 0 1-.978-.001l-1.187-1.176-1.187 1.176a.698.698 0 0 1-.977.001.675.675 0 0 1-.002-.964l1.19-1.18-1.19-1.18a.675.675 0 0 1 .002-.964.698.698 0 0 1 .977.002l1.187 1.176zm-3.647-4.45c-.73.32-1.538.5-2.39.5a5.91 5.91 0 0 1-2.613-.605.719.719 0 0 1-.044.019c-1.977.756-3.42 1.874-4.35 3.358-.935 1.489-1.317 3.153-1.146 5.014a.692.692 0 0 1-.636.746.697.697 0 0 1-.761-.623c-.197-2.152.253-4.113 1.348-5.858.964-1.535 2.379-2.73 4.23-3.58a5.668 5.668 0 0 1-1.87-4.204C4.753 2.566 7.37 0 10.596 0c3.226 0 5.842 2.566 5.842 5.732a5.676 5.676 0 0 1-2.046 4.357c.273.135.522.27.747.404.485.29.988.65 1.51 1.079a.679.679 0 0 1 .088.969.71.71 0 0 1-.988.086 11.197 11.197 0 0 0-1.34-.96 11.618 11.618 0 0 0-1.424-.702zm-2.39-.876c2.453 0 4.441-1.95 4.441-4.357 0-2.406-1.988-4.356-4.44-4.356-2.453 0-4.44 1.95-4.44 4.356 0 2.406 1.987 4.357 4.44 4.357z\"],\"user\":[\"M9.993 10.573a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9zm-3.015.611a6 6 0 1 1 6.063-.011c3.687 1.111 6.457 4.22 6.954 8.08.047.366-.226.699-.61.744-.383.045-.733-.215-.78-.582-.54-4.19-4.169-7.345-8.57-7.345-4.425 0-8.101 3.161-8.64 7.345-.047.367-.397.627-.78.582-.384-.045-.657-.378-.61-.745.496-3.844 3.28-6.947 6.973-8.068z\"],\"usergroup-add\":[\"M17.193 15.423l2.113-.005c.382.006.692.32.694.7a.675.675 0 0 1-.688.682l-2.12.005v2.37c.006.38-.299.689-.68.687a.707.707 0 0 1-.7-.694v-2.36l-2.51.006a.707.707 0 0 1-.694-.7.675.675 0 0 1 .687-.682l2.516-.006v-2.269a.675.675 0 0 1 .681-.687.707.707 0 0 1 .7.694v2.26zm-4.584-4.7c-2.182 0-3.951-1.737-3.951-3.879 0-2.141 1.769-3.878 3.951-3.878 2.183 0 3.952 1.737 3.952 3.878 0 2.142-1.77 3.878-3.952 3.878zm0-1.37c1.412 0 2.557-1.123 2.557-2.509s-1.145-2.509-2.557-2.509-2.557 1.123-2.557 2.51c0 1.385 1.145 2.508 2.557 2.508zm-1.446-7.832c.234.3.176.73-.13.959a.706.706 0 0 1-.977-.127 2.568 2.568 0 0 0-2.031-.984c-1.412 0-2.557 1.123-2.557 2.509 0 1.212.882 2.245 2.081 2.466.378.07.628.427.557.799a.697.697 0 0 1-.815.546c-1.855-.342-3.218-1.938-3.218-3.811C4.073 1.736 5.843 0 8.025 0c1.245 0 2.395.57 3.138 1.52zM14.9 11.529a.681.681 0 0 1 .426.873.7.7 0 0 1-.89.418 6.372 6.372 0 0 0-2.09-.35c-3.467 0-6.276 2.757-6.276 6.159 0 .208.01.414.03.619a.688.688 0 0 1-.624.749.694.694 0 0 1-.763-.614 7.469 7.469 0 0 1-.038-.754c0-4.157 3.434-7.528 7.67-7.528.88 0 1.741.146 2.555.428zm-7.23-3.31a.69.69 0 0 1 .697.685.69.69 0 0 1-.697.685c-3.467 0-6.276 2.757-6.276 6.159 0 .207.01.414.03.618a.688.688 0 0 1-.624.75.694.694 0 0 1-.763-.614A7.469 7.469 0 0 1 0 15.748C0 11.59 3.434 8.22 7.67 8.22z\"],\"usergroup-delete\":[\"M17.183 15.404l1.643-1.618a.69.69 0 0 1 .973.005.682.682 0 0 1-.005.968l-1.633 1.608 1.633 1.609c.27.266.272.7.005.968a.69.69 0 0 1-.973.004l-1.643-1.618-1.642 1.618a.69.69 0 0 1-.973-.004.682.682 0 0 1 .004-.968l1.633-1.609-1.633-1.608a.682.682 0 0 1-.004-.968.69.69 0 0 1 .973-.005l1.642 1.618zm-4.482-4.682c-2.153 0-3.899-1.736-3.899-3.878 0-2.141 1.746-3.878 3.9-3.878 2.153 0 3.898 1.737 3.898 3.878 0 2.142-1.745 3.878-3.899 3.878zm0-1.369a2.516 2.516 0 0 0 2.523-2.509c0-1.386-1.13-2.509-2.523-2.509a2.516 2.516 0 0 0-2.522 2.51c0 1.385 1.13 2.508 2.522 2.508zm-1.686-7.832c.23.3.174.73-.128.959a.69.69 0 0 1-.965-.127 2.522 2.522 0 0 0-2.004-.984 2.516 2.516 0 0 0-2.523 2.509c0 1.212.871 2.245 2.054 2.466a.685.685 0 1 1-.254 1.345 3.884 3.884 0 0 1-3.176-3.811C4.02 1.736 5.765 0 7.92 0a3.9 3.9 0 0 1 3.096 1.52zm3.948 10.008a.683.683 0 0 1 .42.873.689.689 0 0 1-.878.418 6.212 6.212 0 0 0-2.063-.35c-3.42 0-6.193 2.757-6.193 6.159 0 .208.01.414.031.619.038.376-.198.71-.604.75a.682.682 0 0 1-.765-.615 7.568 7.568 0 0 1-.038-.754c0-4.157 3.389-7.528 7.569-7.528.869 0 1.718.146 2.521.428zM7.569 8.22c.38 0 .688.307.688.685a.686.686 0 0 1-.688.685c-3.42 0-6.193 2.757-6.193 6.159 0 .207.01.414.031.618a.685.685 0 0 1-.617.75.687.687 0 0 1-.752-.614A7.568 7.568 0 0 1 0 15.748C0 11.59 3.389 8.22 7.569 8.22z\"],\"verification\":[\"M2.727 3.333c-.753 0-1.363.597-1.363 1.334v10.666c0 .737.61 1.334 1.363 1.334h14.546c.753 0 1.363-.597 1.363-1.334V4.667c0-.737-.61-1.334-1.363-1.334H2.727zm9.141 6.62c-1.03.61-1.716 1.705-1.716 2.956 0 .357.056.708.165 1.043.115.35.499.544.857.432a.664.664 0 0 0 .442-.838 2.043 2.043 0 0 1-.1-.637c0-1.175.997-2.133 2.234-2.133s2.235.958 2.235 2.133c0 .173-.021.342-.063.506a.666.666 0 0 0 .497.808.683.683 0 0 0 .826-.486c.069-.27.103-.547.103-.828 0-1.251-.687-2.346-1.716-2.955A2.616 2.616 0 0 0 16.515 8c0-1.476-1.24-2.667-2.765-2.667-1.524 0-2.765 1.191-2.765 2.667 0 .773.34 1.467.883 1.954zM2.728 2h14.545C18.779 2 20 3.194 20 4.667v10.666C20 16.806 18.779 18 17.273 18H2.727C1.221 18 0 16.806 0 15.333V4.667C0 3.194 1.221 2 2.727 2zM4 7.467h4.167a.674.674 0 0 0 .681-.667.674.674 0 0 0-.681-.667H4a.674.674 0 0 0-.682.667c0 .368.305.667.682.667zm0 3.5h4.167a.674.674 0 0 0 .681-.667.674.674 0 0 0-.681-.667H4a.674.674 0 0 0-.682.667c0 .368.305.667.682.667zm0 3.5h4.167a.674.674 0 0 0 .681-.667.674.674 0 0 0-.681-.667H4a.674.674 0 0 0-.682.667c0 .368.305.667.682.667zm9.75-5.134c-.777 0-1.402-.6-1.402-1.333 0-.734.625-1.333 1.402-1.333.777 0 1.402.6 1.402 1.333 0 .734-.625 1.333-1.402 1.333z\"],\"verticle-left\":[\"M13.606 10.469v6.839c0 .382.312.692.697.692.385 0 .697-.31.697-.692V2.692A.695.695 0 0 0 14.303 2a.695.695 0 0 0-.697.692V9.25L6.614 2.203a.715.715 0 0 0-1-.012.69.69 0 0 0-.012.986l6.626 6.678-6.992 6.876a.69.69 0 0 0 0 .986.715.715 0 0 0 1 0l7.37-7.248z\"],\"verticle-right\":[\"M6.894 10.469v6.839a.695.695 0 0 1-.697.692.695.695 0 0 1-.697-.692V2.692c0-.382.312-.692.697-.692.385 0 .697.31.697.692V9.25l6.992-7.047a.715.715 0 0 1 1-.012.69.69 0 0 1 .012.986L8.272 9.855l6.992 6.876a.69.69 0 0 1 0 .986.715.715 0 0 1-1 0l-7.37-7.248z\"],\"video-camera\":[\"M1.823 10.146a.457.457 0 0 0-.456.458v7.566c0 .253.204.458.456.458H14.99a.457.457 0 0 0 .455-.458v-7.566a.457.457 0 0 0-.455-.458H1.823zm15.924 2.18l1.427-.306a.684.684 0 0 1 .826.67v3.483c0 .435-.397.76-.821.672l-1.432-.296v-1.401l.886.183v-1.792l-.886.19v-1.404zM1.823 8.773H14.99c1.006 0 1.822.819 1.822 1.83v7.566c0 1.01-.816 1.83-1.822 1.83H1.823A1.826 1.826 0 0 1 0 18.17v-7.566c0-1.011.816-1.83 1.823-1.83zm3.19 8.024c1.007 0 1.823-.82 1.823-1.83 0-1.01-.816-1.83-1.823-1.83-1.007 0-1.823.82-1.823 1.83 0 1.01.816 1.83 1.823 1.83zm0-.915a.913.913 0 0 1-.912-.915c0-.506.408-.915.912-.915.503 0 .911.41.911.915a.913.913 0 0 1-.911.915zM4.1 7.777A3.881 3.881 0 0 1 .228 3.89 3.881 3.881 0 0 1 4.1 0a3.881 3.881 0 0 1 3.874 3.889A3.881 3.881 0 0 1 4.1 7.777zm0-1.372a2.511 2.511 0 0 0 2.507-2.516A2.511 2.511 0 0 0 4.1 1.372 2.511 2.511 0 0 0 1.595 3.89a2.511 2.511 0 0 0 2.506 2.516zM12.7 7.877a3.881 3.881 0 0 1-3.873-3.889A3.881 3.881 0 0 1 12.699.1a3.881 3.881 0 0 1 3.874 3.888 3.881 3.881 0 0 1-3.874 3.889zm0-1.373a2.511 2.511 0 0 0 2.507-2.516 2.511 2.511 0 0 0-2.507-2.516 2.511 2.511 0 0 0-2.506 2.516 2.511 2.511 0 0 0 2.506 2.516z\"],\"warning-o\":[\"M17.51 19.5H2.49c-1.007 0-1.816-.405-2.22-1.111-.404-.707-.355-1.63.136-2.53l7.577-13.93C8.477 1.02 9.211.5 9.995.5c.785 0 1.518.52 2.012 1.427l7.586 13.933c.49.901.54 1.823.136 2.53-.404.706-1.213 1.11-2.22 1.11zM9.995 1.962c-.25 0-.535.254-.767.679L1.652 16.57c-.238.438-.293.83-.151 1.078.142.248.503.39.99.39H17.51c.488 0 .85-.142.991-.39.141-.247.086-.64-.152-1.076L10.763 2.64c-.23-.425-.518-.679-.767-.679zM10 12.904a.722.722 0 0 1-.712-.731v-6.58c0-.404.319-.732.712-.732.394 0 .713.328.713.731v6.58c0 .405-.32.732-.713.732zm-.005 3.574c.614 0 1.11-.511 1.11-1.142 0-.63-.496-1.14-1.11-1.14-.613 0-1.11.51-1.11 1.14 0 .63.497 1.142 1.11 1.142z\"],\"warning\":[\"M19.59 15.86L12.007 1.924C11.515 1.011 10.779.5 9.989.5c-.79 0-1.515.521-2.016 1.434L.409 15.861c-.49.901-.544 1.825-.138 2.53.405.707 1.216 1.109 2.219 1.109h15.02c1.003 0 1.814-.402 2.22-1.108.405-.706.351-1.619-.14-2.531zM10 4.857c.395 0 .715.326.715.728v6.583c0 .402-.32.728-.715.728a.721.721 0 0 1-.715-.728V5.584c0-.391.32-.728.715-.728zm0 11.624c-.619 0-1.11-.51-1.11-1.14 0-.63.502-1.141 1.11-1.141.619 0 1.11.51 1.11 1.14 0 .63-.502 1.141-1.11 1.141z\"],\"weibo\":[\"M14.812 9.801c-.778-.141-.4-.534-.4-.534s.761-1.178-.15-2.034c-1.13-1.061-3.877.135-3.877.135-1.05.306-.77-.14-.622-.897 0-.892-.326-2.402-3.12-1.51C3.853 5.858 1.455 9 1.455 9-.212 11.087.01 12.7.01 12.7c.416 3.562 4.448 4.54 7.584 4.771 3.299.243 7.752-1.067 9.102-3.76 1.35-2.696-1.104-3.763-1.884-3.91zm-6.974 6.666c-3.276.144-5.923-1.398-5.923-3.45 0-2.054 2.647-3.7 5.923-3.842 3.277-.142 5.93 1.126 5.93 3.175 0 2.051-2.653 3.977-5.93 4.117zm8.578-7.92c-.3 0-.543-.224-.543-.506 0 0 .534-2.269-1.885-1.768-.299 0-.538-.227-.538-.505 0-.283.24-.51.538-.51 0 0 3.367-.585 2.964 2.81a.21.21 0 0 1-.007.054c-.037.241-.264.426-.529.426zm-.392-5.926c2.083.456 4.941 2.346 3.655 6.368h-.005c-.089.575-.393.62-.755.62-.432 0-.781-.255-.781-.662 0-.352.155-.71.155-.71.046-.148.411-1.07-.241-2.448-1.198-1.887-3.609-1.915-3.893-1.807-.288.105-.711.159-.711.159-.437 0-.786-.333-.786-.737a.75.75 0 0 1 .573-.715s.007-.011.018-.014c.024-.004.049-.027.075-.029.335-.06 1.532-.281 2.696-.025zm-8.84 7.906c-3.293.362-2.913 3.259-2.913 3.259s-.034.917.883 1.384c1.927.98 3.912.387 4.915-.829 1.003-1.216.415-4.173-2.885-3.814zm-.831 4.066c-.614.067-1.11-.266-1.11-.748s.44-.985 1.055-1.045c.707-.064 1.167.318 1.167.802 0 .48-.498.925-1.112.99zm1.942-1.553c-.208.146-.464.126-.574-.05-.115-.17-.072-.445.139-.588.244-.171.498-.122.608.05.11.174.031.437-.173.588z\"],\"weixin\":[\"M20 12.307c0 1.472-1.1 2.846-2.5 3.926L18 18l-1.9-1.08c-.7.196-1.4.393-2.1.393-3.4 0-6-2.258-6-5.006C8 9.558 10.7 7.3 14 7.3c3.2 0 6 2.257 6 5.006zm-7.9-.884c.5 0 .9-.392.9-.687 0-.393-.4-.687-.9-.687-.3 0-.7.393-.7.687 0 .392.3.687.7.687zm3.8 0c.6 0 .9-.392.9-.687 0-.393-.4-.687-.9-.687-.3 0-.7.393-.7.687 0 .392.4.687.7.687zM7 2c3.5 0 6.5 2.061 7.3 4.81h-.7c-3.4 0-5.999 2.454-5.999 5.497 0 .49.1.981.2 1.472h-.7c-.9 0-1.6-.196-2.5-.393l-2.5 1.178.699-2.06C1.1 11.324 0 9.753 0 7.89 0 4.552 3.1 2 7 2zM4.8 6.614c.5 0 .8-.295.9-.884 0-.59-.4-.884-.9-.884-.6 0-1.1.393-1.1.884 0 .589.6.884 1.1.884zm4.9 0c.5 0 .9-.295.9-.884 0-.59-.4-.884-.9-.884-.6 0-1.1.393-1.1.884 0 .589.6.884 1.1.884z\"],\"wifi\":[\"M10.001 18a2 2 0 1 1 0-4 2 2 0 0 1 0 4zm4.8-5.227a.7.7 0 0 1-1.178.756 4.295 4.295 0 0 0-3.622-1.982 4.295 4.295 0 0 0-3.624 1.985.7.7 0 0 1-1.179-.755 5.695 5.695 0 0 1 4.803-2.63 5.695 5.695 0 0 1 4.8 2.626zm2.876-2.846a.7.7 0 0 1-1.107.857C15.02 8.783 12.626 7.603 10 7.603a8.283 8.283 0 0 0-6.537 3.184.7.7 0 1 1-1.102-.863 9.682 9.682 0 0 1 7.64-3.721c3.059 0 5.862 1.381 7.675 3.724zm2.143-3.606a.7.7 0 1 1-1.034.944C16.473 4.732 13.51 3.4 10.001 3.4c-3.422 0-6.453 1.372-8.79 3.87A.7.7 0 1 1 .19 6.316C2.785 3.538 6.184 2 10 2c3.905 0 7.243 1.5 9.819 4.32z\"],\"windows\":[\"M6.88 1.666v7.607H0V2.54l6.88-.873zm1.6-.203L20 0v9.273H8.48v-7.81zM20 10.873V20L8.48 18.537v-7.664H20zM6.88 18.334L0 17.461v-6.588h6.88v7.461z\"],\"woman\":[\"M11.043 13.934V19.3a.7.7 0 0 1-1.4 0v-5.366H2.7a.7.7 0 1 1 0-1.4h14.6a.7.7 0 1 1 0 1.4h-6.257zm-.7-2.541a5.698 5.698 0 0 1 0-11.393c3.148 0 5.7 2.55 5.7 5.696a5.698 5.698 0 0 1-5.7 5.697zm0-1.4a4.298 4.298 0 1 0-4.3-4.297 4.298 4.298 0 0 0 4.3 4.298z\"],\"zoom-in\":[\"M7.612 7.254V4.278c0-.388.31-.703.693-.703.383 0 .693.315.693.703v2.976h2.976c.388 0 .703.31.703.693a.698.698 0 0 1-.703.693H8.998v2.976c0 .388-.31.703-.693.703a.698.698 0 0 1-.693-.703V8.64H4.636a.698.698 0 0 1-.702-.693c0-.383.314-.693.702-.693h2.976zm6.802 6.097l5.388 5.473a.686.686 0 0 1-.015.98.71.71 0 0 1-.993-.014l-5.383-5.47a8.23 8.23 0 0 1-5.216 1.849C3.67 16.169 0 12.549 0 8.084 0 3.62 3.67 0 8.195 0c4.527 0 8.196 3.62 8.196 8.084a7.989 7.989 0 0 1-1.977 5.267zm-6.219 1.432c3.75 0 6.791-3 6.791-6.699 0-3.7-3.04-6.698-6.79-6.698S1.404 4.385 1.404 8.084c0 3.7 3.04 6.699 6.79 6.699z\"],\"zoom-out\":[\"M14.414 13.35l5.388 5.474a.686.686 0 0 1-.015.98.71.71 0 0 1-.993-.014l-5.383-5.47a8.23 8.23 0 0 1-5.216 1.849C3.67 16.169 0 12.549 0 8.084 0 3.62 3.67 0 8.195 0c4.527 0 8.196 3.62 8.196 8.084a7.989 7.989 0 0 1-1.977 5.267zm-6.219 1.433c3.75 0 6.791-3 6.791-6.699 0-3.7-3.04-6.698-6.79-6.698S1.404 4.385 1.404 8.084c0 3.7 3.04 6.699 6.79 6.699zM4.636 8.64a.698.698 0 0 1-.702-.693c0-.383.314-.693.702-.693h7.338c.388 0 .703.31.703.693a.698.698 0 0 1-.703.693H4.636z\"]}");
|
3908 |
|
3909 | }),
|
3910 |
|
3911 | (function(module, exports, __webpack_require__) {
|
3912 |
|
3913 |
|
3914 |
|
3915 | }),
|
3916 |
|
3917 | (function(module, exports, __webpack_require__) {
|
3918 |
|
3919 |
|
3920 |
|
3921 | }),
|
3922 |
|
3923 | (function(module, exports, __webpack_require__) {
|
3924 |
|
3925 | "use strict";
|
3926 |
|
3927 |
|
3928 |
|
3929 |
|
3930 |
|
3931 |
|
3932 |
|
3933 |
|
3934 |
|
3935 | var ReactPropTypesSecret = __webpack_require__(47);
|
3936 |
|
3937 | function emptyFunction() {}
|
3938 | function emptyFunctionWithReset() {}
|
3939 | emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
3940 |
|
3941 | module.exports = function() {
|
3942 | function shim(props, propName, componentName, location, propFullName, secret) {
|
3943 | if (secret === ReactPropTypesSecret) {
|
3944 |
|
3945 | return;
|
3946 | }
|
3947 | var err = new Error(
|
3948 | 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +
|
3949 | 'Use PropTypes.checkPropTypes() to call them. ' +
|
3950 | 'Read more at http://fb.me/use-check-prop-types'
|
3951 | );
|
3952 | err.name = 'Invariant Violation';
|
3953 | throw err;
|
3954 | };
|
3955 | shim.isRequired = shim;
|
3956 | function getShim() {
|
3957 | return shim;
|
3958 | };
|
3959 |
|
3960 |
|
3961 | var ReactPropTypes = {
|
3962 | array: shim,
|
3963 | bool: shim,
|
3964 | func: shim,
|
3965 | number: shim,
|
3966 | object: shim,
|
3967 | string: shim,
|
3968 | symbol: shim,
|
3969 |
|
3970 | any: shim,
|
3971 | arrayOf: getShim,
|
3972 | element: shim,
|
3973 | elementType: shim,
|
3974 | instanceOf: getShim,
|
3975 | node: shim,
|
3976 | objectOf: getShim,
|
3977 | oneOf: getShim,
|
3978 | oneOfType: getShim,
|
3979 | shape: getShim,
|
3980 | exact: getShim,
|
3981 |
|
3982 | checkPropTypes: emptyFunctionWithReset,
|
3983 | resetWarningCache: emptyFunction
|
3984 | };
|
3985 |
|
3986 | ReactPropTypes.PropTypes = ReactPropTypes;
|
3987 |
|
3988 | return ReactPropTypes;
|
3989 | };
|
3990 |
|
3991 |
|
3992 | }),
|
3993 |
|
3994 | (function(module, exports, __webpack_require__) {
|
3995 |
|
3996 | "use strict";
|
3997 |
|
3998 |
|
3999 |
|
4000 |
|
4001 |
|
4002 |
|
4003 |
|
4004 |
|
4005 |
|
4006 | var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
4007 |
|
4008 | module.exports = ReactPropTypesSecret;
|
4009 |
|
4010 |
|
4011 | }),
|
4012 |
|
4013 | (function(module, exports) {
|
4014 |
|
4015 | function _interopRequireDefault(obj) {
|
4016 | return obj && obj.__esModule ? obj : {
|
4017 | "default": obj
|
4018 | };
|
4019 | }
|
4020 |
|
4021 | module.exports = _interopRequireDefault;
|
4022 |
|
4023 | }),
|
4024 |
|
4025 | (function(module, exports, __webpack_require__) {
|
4026 |
|
4027 | "use strict";
|
4028 |
|
4029 |
|
4030 | exports.__esModule = true;
|
4031 | exports.default = hasClass;
|
4032 |
|
4033 | function hasClass(element, className) {
|
4034 | if (element.classList) return !!className && element.classList.contains(className);else return (" " + (element.className.baseVal || element.className) + " ").indexOf(" " + className + " ") !== -1;
|
4035 | }
|
4036 |
|
4037 | module.exports = exports["default"];
|
4038 |
|
4039 | }),
|
4040 |
|
4041 | (function(module, exports, __webpack_require__) {
|
4042 |
|
4043 |
|
4044 |
|
4045 | }),
|
4046 |
|
4047 | (function(module, exports, __webpack_require__) {
|
4048 |
|
4049 |
|
4050 |
|
4051 | }),
|
4052 |
|
4053 | (function(module, exports, __webpack_require__) {
|
4054 |
|
4055 |
|
4056 |
|
4057 | }),
|
4058 |
|
4059 | (function(module, exports, __webpack_require__) {
|
4060 |
|
4061 |
|
4062 |
|
4063 | }),
|
4064 |
|
4065 | (function(module, exports, __webpack_require__) {
|
4066 |
|
4067 | "use strict";
|
4068 |
|
4069 | Object.defineProperty(exports, "__esModule", { value: true });
|
4070 | const tslib_1 = __webpack_require__(1);
|
4071 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4072 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4073 | const utils_1 = __webpack_require__(55);
|
4074 | __webpack_require__(56);
|
4075 | class BackTop extends react_1.default.Component {
|
4076 | constructor() {
|
4077 | super(...arguments);
|
4078 | this.state = {
|
4079 | percent: 0,
|
4080 | current: 0,
|
4081 | };
|
4082 | this.onScroll = () => {
|
4083 | this.setState({ percent: utils_1.getScrollPercent(this.props.offsetTop), current: utils_1.getScrollTop() });
|
4084 | };
|
4085 | }
|
4086 | componentDidMount() {
|
4087 | window && window.addEventListener('scroll', this.onScroll);
|
4088 | }
|
4089 | componentWillUnmount() {
|
4090 | window && window.removeEventListener('scroll', this.onScroll);
|
4091 | }
|
4092 | scrollToTop() {
|
4093 | utils_1.ScrollToAnimate(this.props.offsetTop, this.props.speed, this.state.current);
|
4094 | }
|
4095 | render() {
|
4096 | const { prefixCls, className, content, children, offsetTop, fixed, speed, showBelow, clickable, ...other } = this.props;
|
4097 | const topShowBelow = !fixed ? 0 : (showBelow || 0);
|
4098 | const visible = this.state.percent >= topShowBelow;
|
4099 | const cls = classnames_1.default(prefixCls, className, {
|
4100 | 'no-fixed': !fixed,
|
4101 | [`${prefixCls}-show`]: visible,
|
4102 | [`${prefixCls}-hide`]: !visible,
|
4103 | });
|
4104 | return (react_1.default.createElement("div", Object.assign({ onClick: () => clickable && this.scrollToTop(), className: cls }, other),
|
4105 | content,
|
4106 | typeof children !== 'function' ? children : children({ ...this.state, scrollToTop: this.scrollToTop.bind(this) })));
|
4107 | }
|
4108 | }
|
4109 | BackTop.defaultProps = {
|
4110 | prefixCls: 'w-back-top',
|
4111 | offsetTop: 0,
|
4112 | clickable: true,
|
4113 | fixed: true,
|
4114 | showBelow: 1,
|
4115 | speed: 100,
|
4116 | };
|
4117 | exports.default = BackTop;
|
4118 |
|
4119 |
|
4120 | }),
|
4121 |
|
4122 | (function(module, exports, __webpack_require__) {
|
4123 |
|
4124 | "use strict";
|
4125 |
|
4126 | Object.defineProperty(exports, "__esModule", { value: true });
|
4127 |
|
4128 |
|
4129 |
|
4130 | function getScrollTop() {
|
4131 | let scrollTop = 0;
|
4132 | if (document.documentElement && document.documentElement.scrollTop) {
|
4133 | scrollTop = document.documentElement.scrollTop;
|
4134 | }
|
4135 | else if (document.body) {
|
4136 | scrollTop = document.body.scrollTop;
|
4137 | }
|
4138 | return scrollTop;
|
4139 | }
|
4140 | exports.getScrollTop = getScrollTop;
|
4141 |
|
4142 |
|
4143 |
|
4144 |
|
4145 |
|
4146 |
|
4147 | function ScrollToAnimate(position = 0, step = 100, current = 0) {
|
4148 | let start = 0;
|
4149 | const timer = setInterval(() => {
|
4150 | if ((current - start) >= position) {
|
4151 | start += step;
|
4152 | if (current - start >= position) {
|
4153 | window.scrollTo(0, current - start);
|
4154 | }
|
4155 | else {
|
4156 | window.scrollTo(0, position);
|
4157 | }
|
4158 | }
|
4159 | else {
|
4160 | clearInterval(timer);
|
4161 | }
|
4162 | }, 0);
|
4163 | }
|
4164 | exports.ScrollToAnimate = ScrollToAnimate;
|
4165 |
|
4166 |
|
4167 |
|
4168 | function getScrollPercent(offsetTop = 0) {
|
4169 | let percent = 0;
|
4170 | if (offsetTop < getScrollTop()) {
|
4171 | percent = Math.round((getScrollTop() - offsetTop) / (document.body.scrollHeight - offsetTop - window.innerHeight) * 100);
|
4172 | }
|
4173 | return percent > 100 ? 100 : percent;
|
4174 | }
|
4175 | exports.getScrollPercent = getScrollPercent;
|
4176 |
|
4177 |
|
4178 | }),
|
4179 |
|
4180 | (function(module, exports, __webpack_require__) {
|
4181 |
|
4182 |
|
4183 |
|
4184 | }),
|
4185 |
|
4186 | (function(module, exports, __webpack_require__) {
|
4187 |
|
4188 | "use strict";
|
4189 |
|
4190 | Object.defineProperty(exports, "__esModule", { value: true });
|
4191 | const tslib_1 = __webpack_require__(1);
|
4192 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4193 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4194 | __webpack_require__(58);
|
4195 | class Badge extends react_1.default.Component {
|
4196 | render() {
|
4197 | const { prefixCls, className, style, color, max, dot, processing, count, children, ...other } = this.props;
|
4198 | const supProps = {
|
4199 | className: classnames_1.default({ [`${prefixCls}-count`]: !dot, dot }),
|
4200 | style: {},
|
4201 | };
|
4202 | const warpperProps = {
|
4203 | ...other,
|
4204 | className: classnames_1.default(className, `${prefixCls}`, {
|
4205 | nowrap: !children,
|
4206 | [`${prefixCls}-status`]: !children,
|
4207 | [`${prefixCls}-processing`]: processing,
|
4208 | }),
|
4209 | style: {},
|
4210 | };
|
4211 | if (count || count === 0) {
|
4212 | supProps.style = { backgroundColor: color, ...style };
|
4213 | }
|
4214 | else {
|
4215 | warpperProps.style = style || {};
|
4216 | }
|
4217 | return (react_1.default.createElement("span", Object.assign({}, warpperProps),
|
4218 | color && (react_1.default.createElement("span", { className: `${prefixCls}-dot`, style: { backgroundColor: color } })),
|
4219 | children,
|
4220 | count !== 0 && !color &&
|
4221 | react_1.default.createElement("sup", Object.assign({}, supProps), !dot && count && max && count > max ? `${max}+` : count)));
|
4222 | }
|
4223 | }
|
4224 | Badge.defaultProps = {
|
4225 | prefixCls: 'w-badge',
|
4226 | dot: false,
|
4227 | processing: false,
|
4228 | max: 99,
|
4229 | };
|
4230 | exports.default = Badge;
|
4231 |
|
4232 |
|
4233 | }),
|
4234 |
|
4235 | (function(module, exports, __webpack_require__) {
|
4236 |
|
4237 |
|
4238 |
|
4239 | }),
|
4240 |
|
4241 | (function(module, exports, __webpack_require__) {
|
4242 |
|
4243 | "use strict";
|
4244 |
|
4245 | Object.defineProperty(exports, "__esModule", { value: true });
|
4246 | const tslib_1 = __webpack_require__(1);
|
4247 | const Breadcrumb_1 = tslib_1.__importDefault(__webpack_require__(60));
|
4248 | const Item_1 = tslib_1.__importDefault(__webpack_require__(62));
|
4249 | Breadcrumb_1.default.Item = Item_1.default;
|
4250 | exports.default = Breadcrumb_1.default;
|
4251 |
|
4252 |
|
4253 | }),
|
4254 |
|
4255 | (function(module, exports, __webpack_require__) {
|
4256 |
|
4257 | "use strict";
|
4258 |
|
4259 | Object.defineProperty(exports, "__esModule", { value: true });
|
4260 | const tslib_1 = __webpack_require__(1);
|
4261 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4262 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4263 | __webpack_require__(61);
|
4264 | class Breadcrumb extends react_1.default.Component {
|
4265 | render() {
|
4266 | const { prefixCls, className, separator, ...other } = this.props;
|
4267 | const cls = classnames_1.default(prefixCls, className);
|
4268 | return (react_1.default.createElement("div", Object.assign({}, { className: cls, ...other }), react_1.default.Children.map(this.props.children, (element) => {
|
4269 | return react_1.default.cloneElement(element, Object.assign({ separator }, element.props, {}));
|
4270 | })));
|
4271 | }
|
4272 | }
|
4273 | Breadcrumb.defaultProps = {
|
4274 | prefixCls: 'w-breadcrumb',
|
4275 | };
|
4276 | exports.default = Breadcrumb;
|
4277 |
|
4278 |
|
4279 | }),
|
4280 |
|
4281 | (function(module, exports, __webpack_require__) {
|
4282 |
|
4283 |
|
4284 |
|
4285 | }),
|
4286 |
|
4287 | (function(module, exports, __webpack_require__) {
|
4288 |
|
4289 | "use strict";
|
4290 |
|
4291 | Object.defineProperty(exports, "__esModule", { value: true });
|
4292 | const tslib_1 = __webpack_require__(1);
|
4293 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4294 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4295 | __webpack_require__(63);
|
4296 | class BreadcrumbItem extends react_1.default.Component {
|
4297 | render() {
|
4298 | const { prefixCls, className, active, separator, ...other } = this.props;
|
4299 | const isElm = react_1.default.isValidElement(separator);
|
4300 | const cls = classnames_1.default(`${prefixCls}-item`, className, { active, 'no-separator': !separator, 'no-before': isElm });
|
4301 | const props = { className: cls, ...other };
|
4302 | if (!isElm) {
|
4303 | props['data-separator'] = separator;
|
4304 | }
|
4305 | return (react_1.default.createElement("span", Object.assign({}, props),
|
4306 | isElm && react_1.default.createElement("span", { className: `${prefixCls}-separator` }, separator),
|
4307 | this.props.children));
|
4308 | }
|
4309 | }
|
4310 | BreadcrumbItem.defaultProps = {
|
4311 | prefixCls: 'w-breadcrumb',
|
4312 | };
|
4313 | exports.default = BreadcrumbItem;
|
4314 |
|
4315 |
|
4316 | }),
|
4317 |
|
4318 | (function(module, exports, __webpack_require__) {
|
4319 |
|
4320 |
|
4321 |
|
4322 | }),
|
4323 |
|
4324 | (function(module, exports, __webpack_require__) {
|
4325 |
|
4326 | "use strict";
|
4327 |
|
4328 | Object.defineProperty(exports, "__esModule", { value: true });
|
4329 | const tslib_1 = __webpack_require__(1);
|
4330 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4331 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4332 | __webpack_require__(65);
|
4333 | class ButtonGroup extends react_1.default.Component {
|
4334 | render() {
|
4335 | const { prefixCls, vertical, children, className, ...resetProps } = this.props;
|
4336 | const cls = classnames_1.default(prefixCls, className, {
|
4337 | [`${prefixCls}-vertical`]: vertical,
|
4338 | });
|
4339 | return (react_1.default.createElement("div", Object.assign({ className: cls }, resetProps), children));
|
4340 | }
|
4341 | }
|
4342 | ButtonGroup.defaultProps = {
|
4343 | prefixCls: 'w-btn-group',
|
4344 | vertical: false,
|
4345 | };
|
4346 | exports.default = ButtonGroup;
|
4347 |
|
4348 |
|
4349 | }),
|
4350 |
|
4351 | (function(module, exports, __webpack_require__) {
|
4352 |
|
4353 |
|
4354 |
|
4355 | }),
|
4356 |
|
4357 | (function(module, exports, __webpack_require__) {
|
4358 |
|
4359 | "use strict";
|
4360 |
|
4361 | Object.defineProperty(exports, "__esModule", { value: true });
|
4362 | const tslib_1 = __webpack_require__(1);
|
4363 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4364 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4365 | __webpack_require__(67);
|
4366 | class Card extends react_1.default.Component {
|
4367 | render() {
|
4368 | const { prefixCls, className, title, extra, footer, bordered, noHover, active, bodyStyle, bodyClassName, children, ...resetProps } = this.props;
|
4369 | const cls = classnames_1.default(prefixCls, className, {
|
4370 | [`${prefixCls}-bordered`]: bordered,
|
4371 | [`${prefixCls}-no-hover`]: noHover,
|
4372 | active,
|
4373 | });
|
4374 | return (react_1.default.createElement("div", Object.assign({}, resetProps, { className: cls }),
|
4375 | (title || extra) && (react_1.default.createElement("div", { className: `${prefixCls}-head` },
|
4376 | title && react_1.default.createElement("div", { className: `${prefixCls}-head-title` }, title),
|
4377 | extra && react_1.default.createElement("div", { className: `${prefixCls}-extra` }, extra))),
|
4378 | children && react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-body`, bodyClassName), style: bodyStyle }, children),
|
4379 | footer && react_1.default.createElement("div", { className: `${prefixCls}-footer` }, footer)));
|
4380 | }
|
4381 | }
|
4382 | Card.defaultProps = {
|
4383 | prefixCls: 'w-card',
|
4384 | bordered: true,
|
4385 | noHover: false,
|
4386 | active: false,
|
4387 | };
|
4388 | exports.default = Card;
|
4389 |
|
4390 |
|
4391 | }),
|
4392 |
|
4393 | (function(module, exports, __webpack_require__) {
|
4394 |
|
4395 |
|
4396 |
|
4397 | }),
|
4398 |
|
4399 | (function(module, exports, __webpack_require__) {
|
4400 |
|
4401 | "use strict";
|
4402 |
|
4403 | Object.defineProperty(exports, "__esModule", { value: true });
|
4404 | const tslib_1 = __webpack_require__(1);
|
4405 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4406 | const copy_to_clipboard_1 = tslib_1.__importDefault(__webpack_require__(69));
|
4407 | __webpack_require__(70);
|
4408 | class CopyToClipboard extends react_1.default.Component {
|
4409 | onClick(e) {
|
4410 | const { onClick, text } = this.props;
|
4411 | if (!text) {
|
4412 | return onClick('', false, e);
|
4413 | }
|
4414 | copy_to_clipboard_1.default(text, (isCopy) => {
|
4415 | onClick(text, isCopy, e);
|
4416 | });
|
4417 | }
|
4418 | render() {
|
4419 | const { prefixCls, text, children, ...resetProps } = this.props;
|
4420 | const concatProps = {
|
4421 | ...resetProps,
|
4422 | ...{
|
4423 | onClick: this.onClick.bind(this),
|
4424 | className: prefixCls,
|
4425 | },
|
4426 | };
|
4427 | return (react_1.default.createElement("a", Object.assign({}, concatProps),
|
4428 | react_1.default.createElement("span", { className: `${prefixCls}-select` }, text),
|
4429 | children));
|
4430 | }
|
4431 | }
|
4432 | CopyToClipboard.defaultProps = {
|
4433 | text: '',
|
4434 | prefixCls: 'w-copy-to-clipboard',
|
4435 | onClick: () => null,
|
4436 | };
|
4437 | exports.default = CopyToClipboard;
|
4438 |
|
4439 |
|
4440 | }),
|
4441 |
|
4442 | (function(module, exports, __webpack_require__) {
|
4443 |
|
4444 |
|
4445 |
|
4446 |
|
4447 |
|
4448 |
|
4449 |
|
4450 |
|
4451 |
|
4452 |
|
4453 |
|
4454 | (function (global, factory) {
|
4455 | true ? module.exports = factory() :
|
4456 | undefined;
|
4457 | }(this, function () { 'use strict';
|
4458 |
|
4459 | function copyTextToClipboard(text, cb) {
|
4460 |
|
4461 |
|
4462 |
|
4463 |
|
4464 |
|
4465 |
|
4466 |
|
4467 |
|
4468 |
|
4469 |
|
4470 |
|
4471 |
|
4472 |
|
4473 |
|
4474 |
|
4475 |
|
4476 |
|
4477 | const el = document.createElement('textarea');
|
4478 | el.value = text;
|
4479 | el.setAttribute('readonly', '');
|
4480 | el.style = {
|
4481 | position: 'absolute',
|
4482 | left: '-9999px',
|
4483 | };
|
4484 | document.body.appendChild(el);
|
4485 | const selected = document.getSelection().rangeCount > 0 ? document.getSelection().getRangeAt(0) : false;
|
4486 | el.select();
|
4487 | try {
|
4488 | const successful = document.execCommand('copy');
|
4489 | const isCopy = !!successful;
|
4490 | cb && cb(isCopy);
|
4491 | } catch (err) {
|
4492 | cb && cb(false);
|
4493 |
|
4494 | }
|
4495 | document.body.removeChild(el);
|
4496 | if (selected) {
|
4497 | document.getSelection().removeAllRanges();
|
4498 | document.getSelection().addRange(selected);
|
4499 | }
|
4500 | }
|
4501 |
|
4502 | return copyTextToClipboard;
|
4503 |
|
4504 | }));
|
4505 |
|
4506 |
|
4507 | }),
|
4508 |
|
4509 | (function(module, exports, __webpack_require__) {
|
4510 |
|
4511 |
|
4512 |
|
4513 | }),
|
4514 |
|
4515 | (function(module, exports, __webpack_require__) {
|
4516 |
|
4517 | "use strict";
|
4518 |
|
4519 | Object.defineProperty(exports, "__esModule", { value: true });
|
4520 | const tslib_1 = __webpack_require__(1);
|
4521 | const Checkbox_1 = tslib_1.__importDefault(__webpack_require__(72));
|
4522 | const Group_1 = tslib_1.__importDefault(__webpack_require__(19));
|
4523 | Checkbox_1.default.Group = Group_1.default;
|
4524 | exports.default = Checkbox_1.default;
|
4525 |
|
4526 |
|
4527 | }),
|
4528 |
|
4529 | (function(module, exports, __webpack_require__) {
|
4530 |
|
4531 | "use strict";
|
4532 |
|
4533 | Object.defineProperty(exports, "__esModule", { value: true });
|
4534 | const tslib_1 = __webpack_require__(1);
|
4535 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4536 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4537 | const Abstract_1 = tslib_1.__importDefault(__webpack_require__(14));
|
4538 | const Group_1 = tslib_1.__importDefault(__webpack_require__(19));
|
4539 | __webpack_require__(74);
|
4540 | class Checkbox extends react_1.default.Component {
|
4541 | render() {
|
4542 | const { className, indeterminate, ...other } = this.props;
|
4543 | const cls = classnames_1.default(className, { indeterminate });
|
4544 | return react_1.default.createElement(Abstract_1.default, Object.assign({}, other, { className: cls }));
|
4545 | }
|
4546 | }
|
4547 | Checkbox.Group = Group_1.default;
|
4548 | Checkbox.defaultProps = {
|
4549 | prefixCls: 'w-checkbox',
|
4550 | type: 'checkbox',
|
4551 | indeterminate: false,
|
4552 | disabled: false,
|
4553 | checked: undefined,
|
4554 | value: '',
|
4555 | };
|
4556 | exports.default = Checkbox;
|
4557 |
|
4558 |
|
4559 | }),
|
4560 |
|
4561 | (function(module, exports, __webpack_require__) {
|
4562 |
|
4563 |
|
4564 |
|
4565 | }),
|
4566 |
|
4567 | (function(module, exports, __webpack_require__) {
|
4568 |
|
4569 |
|
4570 |
|
4571 | }),
|
4572 |
|
4573 | (function(module, exports, __webpack_require__) {
|
4574 |
|
4575 | "use strict";
|
4576 |
|
4577 | Object.defineProperty(exports, "__esModule", { value: true });
|
4578 | const tslib_1 = __webpack_require__(1);
|
4579 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4580 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4581 | const Panel_1 = tslib_1.__importDefault(__webpack_require__(76));
|
4582 | __webpack_require__(77);
|
4583 | function toArray(activeKey) {
|
4584 | let currentActiveKey = activeKey;
|
4585 | if (!Array.isArray(currentActiveKey)) {
|
4586 | currentActiveKey = currentActiveKey ? [currentActiveKey] : [];
|
4587 | }
|
4588 | return currentActiveKey;
|
4589 | }
|
4590 | class Collapse extends react_1.default.Component {
|
4591 | constructor(props) {
|
4592 | super(props);
|
4593 | this.state = {
|
4594 | activeKey: toArray(props.activeKey),
|
4595 | };
|
4596 | }
|
4597 | componentWillReceiveProps(nextProps) {
|
4598 | if (nextProps.activeKey !== this.props.activeKey) {
|
4599 | this.setState({ activeKey: toArray(nextProps.activeKey) });
|
4600 | }
|
4601 | }
|
4602 | onItemClick(key) {
|
4603 | const { onChange } = this.props;
|
4604 | let activeKey = this.state.activeKey;
|
4605 | if (this.props.accordion) {
|
4606 | activeKey = activeKey[0] === key ? [] : [key];
|
4607 | }
|
4608 | else {
|
4609 | activeKey = [...activeKey];
|
4610 | const index = activeKey.indexOf(key);
|
4611 | const isActive = index > -1;
|
4612 | if (isActive) {
|
4613 | activeKey.splice(index, 1);
|
4614 | }
|
4615 | else {
|
4616 | activeKey.push(key);
|
4617 | }
|
4618 | }
|
4619 | this.setState({ activeKey }, () => {
|
4620 | onChange && onChange(activeKey);
|
4621 | });
|
4622 | }
|
4623 | render() {
|
4624 | const { prefixCls, className, children, accordion, bordered, showArrow, activeKey, onChange, ...resetProps } = this.props;
|
4625 | const cls = classnames_1.default(prefixCls, className, {
|
4626 | 'w-noborder': bordered,
|
4627 | });
|
4628 | return (react_1.default.createElement("div", Object.assign({ className: cls }, resetProps), react_1.default.Children.map(children, (child, index) => {
|
4629 |
|
4630 | const key = child.key || String(index);
|
4631 | const { disabled } = child.props;
|
4632 | let isActive = false;
|
4633 | if (accordion) {
|
4634 | isActive = this.state.activeKey[0] === key;
|
4635 | }
|
4636 | else {
|
4637 | isActive = this.state.activeKey.indexOf(key) > -1;
|
4638 | }
|
4639 | const childProps = {
|
4640 | prefixCls,
|
4641 | isActive,
|
4642 | disabled,
|
4643 | showArrow,
|
4644 | onItemClick: disabled ? () => { } : () => this.onItemClick(key),
|
4645 | ...child.props,
|
4646 | };
|
4647 | return react_1.default.cloneElement(child, childProps);
|
4648 | })));
|
4649 | }
|
4650 | }
|
4651 | Collapse.defaultProps = {
|
4652 | prefixCls: 'w-collapse',
|
4653 | accordion: false,
|
4654 | showArrow: true,
|
4655 | };
|
4656 | Collapse.Panel = Panel_1.default;
|
4657 | exports.default = Collapse;
|
4658 |
|
4659 |
|
4660 | }),
|
4661 |
|
4662 | (function(module, exports, __webpack_require__) {
|
4663 |
|
4664 | "use strict";
|
4665 |
|
4666 | Object.defineProperty(exports, "__esModule", { value: true });
|
4667 | const tslib_1 = __webpack_require__(1);
|
4668 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4669 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4670 | const react_transition_group_1 = __webpack_require__(12);
|
4671 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
4672 | class Panel extends react_1.default.Component {
|
4673 | constructor() {
|
4674 | super(...arguments);
|
4675 | this.getInstance = (status, instance) => {
|
4676 | if (!instance) {
|
4677 | return;
|
4678 | }
|
4679 | if (status === 'exited' || status === 'exiting') {
|
4680 | instance.style.height = '1px';
|
4681 | }
|
4682 | if (status === 'entered' || status === 'entering') {
|
4683 | instance.style.height = `${instance.scrollHeight}px`;
|
4684 | }
|
4685 | };
|
4686 | }
|
4687 | render() {
|
4688 | const { prefixCls, className, icon, children, isActive, onItemClick, disabled, showArrow, header, ...resetProps } = this.props;
|
4689 | const cls = classnames_1.default([`${prefixCls}-item`], className, {
|
4690 | [`${prefixCls}-active`]: isActive,
|
4691 | [`${prefixCls}-disabled`]: disabled,
|
4692 | });
|
4693 | const iconRender = typeof (icon) === 'string' ? react_1.default.createElement(icon_1.default, { type: icon }) : icon;
|
4694 | const childStyle = (child) => {
|
4695 | return Object.assign({}, child && child.props ? child.props.style : {}, {
|
4696 | transitionDuration: '300ms',
|
4697 | });
|
4698 | };
|
4699 | return (react_1.default.createElement("div", Object.assign({ className: cls }, resetProps),
|
4700 | react_1.default.createElement("div", { className: `${prefixCls}-header`, onClick: onItemClick.bind(this) },
|
4701 | showArrow && iconRender,
|
4702 | react_1.default.createElement("span", null, header)),
|
4703 | react_1.default.createElement(react_transition_group_1.CSSTransition, { in: isActive, unmountOnExit: false, timeout: 300, classNames: `${prefixCls}-panel` }, (status) => react_1.default.cloneElement(react_1.default.createElement("div", null, children), {
|
4704 | className: `${prefixCls}-panel`,
|
4705 | style: childStyle(children),
|
4706 | ref: this.getInstance.bind(this, status),
|
4707 | }))));
|
4708 | }
|
4709 | }
|
4710 | Panel.defaultProps = {
|
4711 | disabled: false,
|
4712 | icon: 'arrow-down',
|
4713 | prefixCls: 'w-collapse',
|
4714 | };
|
4715 | exports.default = Panel;
|
4716 |
|
4717 |
|
4718 | }),
|
4719 |
|
4720 | (function(module, exports, __webpack_require__) {
|
4721 |
|
4722 |
|
4723 |
|
4724 | }),
|
4725 |
|
4726 | (function(module, exports, __webpack_require__) {
|
4727 |
|
4728 | "use strict";
|
4729 |
|
4730 | Object.defineProperty(exports, "__esModule", { value: true });
|
4731 | const tslib_1 = __webpack_require__(1);
|
4732 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4733 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4734 | const PickerDay_1 = tslib_1.__importDefault(__webpack_require__(20));
|
4735 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
4736 | const __1 = __webpack_require__(5);
|
4737 | __webpack_require__(82);
|
4738 | class Calendar extends react_1.default.Component {
|
4739 | constructor(props) {
|
4740 | super(props);
|
4741 | this.onSelectDay = (date, dateSource) => {
|
4742 | const { onSelectDay } = this.props;
|
4743 | this.setState({ panelDate: date });
|
4744 | onSelectDay && onSelectDay(date, dateSource);
|
4745 | };
|
4746 | this.renderDay = (day, props) => {
|
4747 | const { prefixCls, data } = this.props;
|
4748 | const dayData = (data || []).filter((item) => {
|
4749 | let arr = (item.date && item.date.split('/') || []).map(num => Number(num));
|
4750 | if (arr.length === 1) {
|
4751 | return day === arr[0];
|
4752 | }
|
4753 | if (props.date && arr.length === 2) {
|
4754 | return props.date.getMonth() + 1 === arr[0] && day === arr[1];
|
4755 | }
|
4756 | if (props.date && arr.length === 3) {
|
4757 | return props.date.getFullYear() === arr[0] && props.date.getMonth() + 1 === arr[1] && day === arr[2];
|
4758 | }
|
4759 | return false;
|
4760 | });
|
4761 | return (react_1.default.createElement("div", { className: `${prefixCls}-inner` },
|
4762 | react_1.default.createElement("div", { className: `${prefixCls}-day` }, day),
|
4763 | react_1.default.createElement("div", { className: `${prefixCls}-panel` }, dayData && dayData.length > 0 && dayData.map((item, idx) => {
|
4764 | const { date, label, ...other } = item;
|
4765 | return (react_1.default.createElement("div", Object.assign({ key: idx }, other), label));
|
4766 | }))));
|
4767 | };
|
4768 | this.state = {
|
4769 | panelDate: props.panelDate || new Date(),
|
4770 | date: props.date,
|
4771 | };
|
4772 | }
|
4773 | componentWillReceiveProps(nextProps) {
|
4774 | if (nextProps.panelDate !== this.props.panelDate) {
|
4775 | this.setState({ panelDate: nextProps.panelDate });
|
4776 | }
|
4777 | }
|
4778 | onPaging(type) {
|
4779 | const { panelDate } = this.state;
|
4780 | const { today } = this.props;
|
4781 | if (type === 'today') {
|
4782 | this.setState({ panelDate: today || new Date() });
|
4783 | return;
|
4784 | }
|
4785 | const month = panelDate.getMonth();
|
4786 | if (panelDate && type === 'prev') {
|
4787 | panelDate.setMonth(month - 1);
|
4788 | }
|
4789 | if (panelDate && type === 'next') {
|
4790 | panelDate.setMonth(month + 1);
|
4791 | }
|
4792 | this.setState({ panelDate });
|
4793 | }
|
4794 | render() {
|
4795 | const { prefixCls, className, style, today, todayLabel, panelDate, titleFormat, monthLabel, onSelectDay, ...otherProps } = this.props;
|
4796 | return (react_1.default.createElement("div", { className: classnames_1.default(prefixCls, className), style: style },
|
4797 | react_1.default.createElement("div", { className: `${prefixCls}-caption` },
|
4798 | react_1.default.createElement("div", { className: `${prefixCls}-title` }, __1.formatter(titleFormat, this.state.panelDate)),
|
4799 | react_1.default.createElement("div", { className: `${prefixCls}-btn-group` },
|
4800 | react_1.default.createElement(icon_1.default, { type: "arrow-down", onClick: this.onPaging.bind(this, 'prev') }),
|
4801 | react_1.default.createElement("span", { className: `${prefixCls}-btn`, onClick: this.onPaging.bind(this, 'today') }, todayLabel),
|
4802 | react_1.default.createElement(icon_1.default, { type: "arrow-down", onClick: this.onPaging.bind(this, 'next') }))),
|
4803 | react_1.default.createElement(PickerDay_1.default, Object.assign({ onSelectDay: this.onSelectDay, renderDay: this.renderDay, date: this.state.date, today: today || new Date(), panelDate: this.state.panelDate || new Date() }, otherProps))));
|
4804 | }
|
4805 | }
|
4806 | Calendar.defaultProps = {
|
4807 | prefixCls: 'w-calendar',
|
4808 | titleFormat: 'YYYY/MM',
|
4809 | todayLabel: '今天',
|
4810 | monthLabel: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
4811 | };
|
4812 | exports.default = Calendar;
|
4813 |
|
4814 |
|
4815 | }),
|
4816 |
|
4817 | (function(module, exports, __webpack_require__) {
|
4818 |
|
4819 | "use strict";
|
4820 |
|
4821 | Object.defineProperty(exports, "__esModule", { value: true });
|
4822 | const tslib_1 = __webpack_require__(1);
|
4823 | tslib_1.__exportStar(__webpack_require__(80), exports);
|
4824 |
|
4825 |
|
4826 | }),
|
4827 |
|
4828 | (function(module, exports, __webpack_require__) {
|
4829 |
|
4830 | "use strict";
|
4831 |
|
4832 | Object.defineProperty(exports, "__esModule", { value: true });
|
4833 |
|
4834 |
|
4835 |
|
4836 |
|
4837 | exports.isLeapYear = (year) => {
|
4838 | if (year % 4 === 0 && year % 100 !== 0)
|
4839 | return true;
|
4840 | else if (year % 400 === 0)
|
4841 | return true;
|
4842 | return false;
|
4843 | };
|
4844 |
|
4845 |
|
4846 |
|
4847 |
|
4848 |
|
4849 |
|
4850 | exports.solarMonthDays = (year, month) => {
|
4851 | const day = year && exports.isLeapYear(year) ? 29 : 28;
|
4852 | return [31, day, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31][month - 1];
|
4853 | };
|
4854 |
|
4855 |
|
4856 |
|
4857 |
|
4858 | exports.getFirstDayOfWeek = (year, month) => {
|
4859 | return new Date(`${year}/${month}/${1}`).getDay();
|
4860 | };
|
4861 |
|
4862 |
|
4863 |
|
4864 |
|
4865 |
|
4866 |
|
4867 |
|
4868 | exports.isSameDate = (a, b) => a.toISOString() === b.toISOString();
|
4869 |
|
4870 |
|
4871 | }),
|
4872 |
|
4873 | (function(module, exports, __webpack_require__) {
|
4874 |
|
4875 |
|
4876 |
|
4877 | }),
|
4878 |
|
4879 | (function(module, exports, __webpack_require__) {
|
4880 |
|
4881 |
|
4882 |
|
4883 | }),
|
4884 |
|
4885 | (function(module, exports, __webpack_require__) {
|
4886 |
|
4887 |
|
4888 |
|
4889 | }),
|
4890 |
|
4891 | (function(module, exports, __webpack_require__) {
|
4892 |
|
4893 | "use strict";
|
4894 |
|
4895 | Object.defineProperty(exports, "__esModule", { value: true });
|
4896 | const tslib_1 = __webpack_require__(1);
|
4897 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4898 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4899 | __webpack_require__(85);
|
4900 | class Divider extends react_1.default.PureComponent {
|
4901 | render() {
|
4902 | const { prefixCls, className, children, dashed, type, align, ...restProps } = this.props;
|
4903 | const cls = classnames_1.default(className, prefixCls, `${prefixCls}-${type}`, `${prefixCls}-${align}`, {
|
4904 | [`${prefixCls}-with-text`]: children,
|
4905 | [`${prefixCls}-dashed`]: !!dashed,
|
4906 | });
|
4907 | return (react_1.default.createElement("div", Object.assign({ className: cls }, restProps), children && react_1.default.createElement("span", { className: `${prefixCls}-inner-text` }, children)));
|
4908 | }
|
4909 | }
|
4910 | Divider.defaultProps = {
|
4911 | prefixCls: 'w-divider',
|
4912 | type: 'horizontal',
|
4913 | align: 'center',
|
4914 | dashed: false,
|
4915 | };
|
4916 | exports.default = Divider;
|
4917 |
|
4918 |
|
4919 | }),
|
4920 |
|
4921 | (function(module, exports, __webpack_require__) {
|
4922 |
|
4923 |
|
4924 |
|
4925 | }),
|
4926 |
|
4927 | (function(module, exports, __webpack_require__) {
|
4928 |
|
4929 | "use strict";
|
4930 |
|
4931 | Object.defineProperty(exports, "__esModule", { value: true });
|
4932 | const tslib_1 = __webpack_require__(1);
|
4933 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
4934 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
4935 | const DescriptionsItem_1 = tslib_1.__importDefault(__webpack_require__(87));
|
4936 | const Tr_1 = tslib_1.__importDefault(__webpack_require__(88));
|
4937 | __webpack_require__(90);
|
4938 | const generateChildrenRows = (children, column) => {
|
4939 | const rows = [];
|
4940 | let columns = null;
|
4941 | let leftSpans;
|
4942 | const itemNodes = children;
|
4943 | itemNodes.forEach((node, index) => {
|
4944 | let itemNode = node;
|
4945 | if (!columns) {
|
4946 | leftSpans = column;
|
4947 | columns = [];
|
4948 | rows.push(columns);
|
4949 | }
|
4950 |
|
4951 | const lastItem = index === itemNodes.length - 1;
|
4952 |
|
4953 | if (lastItem) {
|
4954 |
|
4955 | itemNode = react_1.default.cloneElement(itemNode, {
|
4956 | span: leftSpans,
|
4957 | });
|
4958 | }
|
4959 |
|
4960 | const { span = 1 } = itemNode.props;
|
4961 | columns.push(itemNode);
|
4962 | leftSpans -= span;
|
4963 | if (leftSpans <= 0) {
|
4964 | columns = null;
|
4965 | }
|
4966 | });
|
4967 | return rows;
|
4968 | };
|
4969 | class Descriptions extends react_1.default.Component {
|
4970 | render() {
|
4971 | const { prefixCls, className, title, bordered, column, size, colon, children, layout, ...other } = this.props;
|
4972 | const cls = classnames_1.default(prefixCls, className, {
|
4973 | [`${prefixCls}-bordered`]: bordered,
|
4974 | [`${prefixCls}-${size}`]: size
|
4975 | });
|
4976 | console.log('size~~~:', size);
|
4977 | const cloneChildren = react_1.default.Children.map(children, (child) => {
|
4978 | return child;
|
4979 | });
|
4980 | const childrenArray = generateChildrenRows(cloneChildren, column);
|
4981 | return (react_1.default.createElement("table", { className: cls },
|
4982 | title && react_1.default.createElement("caption", { className: `${prefixCls}-title` }, title),
|
4983 | react_1.default.createElement("tbody", null, childrenArray.map((child, index) => (react_1.default.createElement(Tr_1.default, { key: index, prefixCls: prefixCls, bordered: bordered, colon: colon, layout: layout, index: index }, child))))));
|
4984 | }
|
4985 | }
|
4986 | Descriptions.Item = DescriptionsItem_1.default;
|
4987 | Descriptions.defaultProps = {
|
4988 | prefixCls: 'w-descriptions',
|
4989 | layout: 'horizontal',
|
4990 | size: 'default',
|
4991 | column: 3,
|
4992 | colon: true,
|
4993 | };
|
4994 | exports.default = Descriptions;
|
4995 |
|
4996 |
|
4997 | }),
|
4998 |
|
4999 | (function(module, exports, __webpack_require__) {
|
5000 |
|
5001 | "use strict";
|
5002 |
|
5003 | Object.defineProperty(exports, "__esModule", { value: true });
|
5004 | const DescriptionsItem = ({ children }) => children;
|
5005 | exports.default = DescriptionsItem;
|
5006 |
|
5007 |
|
5008 | }),
|
5009 |
|
5010 | (function(module, exports, __webpack_require__) {
|
5011 |
|
5012 | "use strict";
|
5013 |
|
5014 | Object.defineProperty(exports, "__esModule", { value: true });
|
5015 | const tslib_1 = __webpack_require__(1);
|
5016 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5017 | const Td_1 = tslib_1.__importDefault(__webpack_require__(89));
|
5018 | class Tr extends react_1.default.Component {
|
5019 | render() {
|
5020 | const { prefixCls, layout, bordered, colon, index, children } = this.props;
|
5021 | const renderCol = (colItem, type, idx) => {
|
5022 | return (react_1.default.createElement(Td_1.default, { prefixCls: prefixCls, child: colItem, bordered: bordered, colon: colon, type: type, layout: layout, key: `${type}-${colItem.key || idx}` }));
|
5023 | };
|
5024 | const cloneChildren = [];
|
5025 | const cloneContentChildren = [];
|
5026 | react_1.default.Children.map(children, (childrenItem, idx) => {
|
5027 | cloneChildren.push(renderCol(childrenItem, 'label', idx));
|
5028 | if (layout === 'vertical') {
|
5029 | cloneContentChildren.push(renderCol(childrenItem, 'content', idx));
|
5030 | }
|
5031 | else if (bordered) {
|
5032 | cloneChildren.push(renderCol(childrenItem, 'content', idx));
|
5033 | }
|
5034 | });
|
5035 | if (layout === 'vertical') {
|
5036 | return [
|
5037 | react_1.default.createElement("tr", { className: `${prefixCls}-row`, key: `label-${index}` }, cloneChildren),
|
5038 | react_1.default.createElement("tr", { className: `${prefixCls}-row`, key: `content-${index}` }, cloneContentChildren),
|
5039 | ];
|
5040 | }
|
5041 | return (react_1.default.createElement("tr", { className: `${prefixCls}-row`, key: index }, cloneChildren));
|
5042 | }
|
5043 | }
|
5044 | exports.default = Tr;
|
5045 | ;
|
5046 |
|
5047 |
|
5048 | }),
|
5049 |
|
5050 | (function(module, exports, __webpack_require__) {
|
5051 |
|
5052 | "use strict";
|
5053 |
|
5054 | Object.defineProperty(exports, "__esModule", { value: true });
|
5055 | const tslib_1 = __webpack_require__(1);
|
5056 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5057 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5058 | const Td = (props) => {
|
5059 | const { child, bordered, colon, type, layout, prefixCls } = props;
|
5060 | const { label, className, children, span = 1 } = child.props;
|
5061 | const labelProps = {
|
5062 | className: classnames_1.default(`${prefixCls}-item-label`, className, {
|
5063 | [`${prefixCls}-item-colon`]: colon,
|
5064 | [`${prefixCls}-item-no-label`]: !label,
|
5065 | }),
|
5066 | key: 'label',
|
5067 | };
|
5068 | if (layout === 'vertical') {
|
5069 | labelProps.colSpan = span * 2 - 1;
|
5070 | }
|
5071 | if (bordered) {
|
5072 | if (type === 'label') {
|
5073 | return react_1.default.createElement("th", Object.assign({}, labelProps), label);
|
5074 | }
|
5075 | return (react_1.default.createElement("td", { className: classnames_1.default(`${prefixCls}-item-content`, className), key: "content", colSpan: span * 2 - 1 }, children));
|
5076 | }
|
5077 | if (layout === 'vertical') {
|
5078 | if (type === 'content') {
|
5079 | return (react_1.default.createElement("td", { colSpan: span, className: classnames_1.default(`${prefixCls}-item`, className) },
|
5080 | react_1.default.createElement("span", { className: `${prefixCls}-item-content`, key: "content" }, children)));
|
5081 | }
|
5082 | return (react_1.default.createElement("td", { colSpan: span, className: classnames_1.default(`${prefixCls}-item`, className) },
|
5083 | react_1.default.createElement("span", { className: classnames_1.default(`${prefixCls}-item-label`, { [`${prefixCls}-item-colon`]: colon }), key: "label" }, label)));
|
5084 | }
|
5085 | return (react_1.default.createElement("td", { colSpan: span, className: classnames_1.default(`${prefixCls}-item`, className) },
|
5086 | react_1.default.createElement("span", Object.assign({}, labelProps), label),
|
5087 | react_1.default.createElement("span", { className: `${prefixCls}-item-content`, key: "content" }, children)));
|
5088 | };
|
5089 | exports.default = Td;
|
5090 |
|
5091 |
|
5092 | }),
|
5093 |
|
5094 | (function(module, exports, __webpack_require__) {
|
5095 |
|
5096 |
|
5097 |
|
5098 | }),
|
5099 |
|
5100 | (function(module, exports, __webpack_require__) {
|
5101 |
|
5102 | "use strict";
|
5103 |
|
5104 | Object.defineProperty(exports, "__esModule", { value: true });
|
5105 | const tslib_1 = __webpack_require__(1);
|
5106 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5107 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5108 | const overlay_1 = tslib_1.__importDefault(__webpack_require__(10));
|
5109 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
5110 | const button_1 = tslib_1.__importDefault(__webpack_require__(6));
|
5111 | __webpack_require__(92);
|
5112 | class Drawer extends react_1.default.PureComponent {
|
5113 | render() {
|
5114 | const { prefixCls, className, style, placement, size, title, footer, icon, isCloseButtonShown, ...overlayProps } = this.props;
|
5115 | const cls = classnames_1.default(className, prefixCls, `${placement}`);
|
5116 | const styl = { ...style, [/^(top|bottom)$/.test(placement) ? 'height' : 'width']: size };
|
5117 | return (react_1.default.createElement(overlay_1.default, Object.assign({ className: cls }, overlayProps),
|
5118 | react_1.default.createElement("div", { className: `${prefixCls}-wrapper`, style: styl },
|
5119 | (title || icon) && (react_1.default.createElement("div", { className: `${prefixCls}-header` },
|
5120 | icon && react_1.default.createElement(icon_1.default, { type: icon }),
|
5121 | title && react_1.default.createElement("h4", null, title),
|
5122 | title && isCloseButtonShown && react_1.default.createElement(button_1.default, { basic: true, onClick: this.props.onClose, icon: "close", type: "light" }))),
|
5123 | react_1.default.createElement("div", { className: `${prefixCls}-body` },
|
5124 | react_1.default.createElement("div", { className: `${prefixCls}-body-inner` }, this.props.children)),
|
5125 | footer && react_1.default.createElement("div", { className: `${prefixCls}-footer` }, footer))));
|
5126 | }
|
5127 | }
|
5128 | Drawer.defaultProps = {
|
5129 | prefixCls: 'w-drawer',
|
5130 | placement: 'right',
|
5131 | isCloseButtonShown: true,
|
5132 | size: 260,
|
5133 | timeout: 300,
|
5134 | isOpen: false,
|
5135 | maskClosable: true,
|
5136 | };
|
5137 | exports.default = Drawer;
|
5138 |
|
5139 |
|
5140 | }),
|
5141 |
|
5142 | (function(module, exports, __webpack_require__) {
|
5143 |
|
5144 |
|
5145 |
|
5146 | }),
|
5147 |
|
5148 | (function(module, exports, __webpack_require__) {
|
5149 |
|
5150 | "use strict";
|
5151 |
|
5152 | Object.defineProperty(exports, "__esModule", { value: true });
|
5153 | const tslib_1 = __webpack_require__(1);
|
5154 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5155 | const overlay_trigger_1 = tslib_1.__importDefault(__webpack_require__(9));
|
5156 | class Dropdown extends react_1.default.PureComponent {
|
5157 | render() {
|
5158 | const { prefixCls, className, menu, children, disabled, ...other } = this.props;
|
5159 | return (react_1.default.createElement(overlay_trigger_1.default, Object.assign({ isOutside: true, autoAdjustOverflow: true, disabled: disabled }, other, { overlay: menu }), react_1.default.cloneElement(children, Object.assign({}, children.props))));
|
5160 | }
|
5161 | }
|
5162 | Dropdown.defaultProps = {
|
5163 | prefixCls: 'w-dropdown',
|
5164 | placement: 'bottomLeft',
|
5165 | };
|
5166 | exports.default = Dropdown;
|
5167 |
|
5168 |
|
5169 | }),
|
5170 |
|
5171 | (function(module, exports, __webpack_require__) {
|
5172 |
|
5173 | "use strict";
|
5174 |
|
5175 | Object.defineProperty(exports, "__esModule", { value: true });
|
5176 | const canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
|
5177 | function fallback(context, node) {
|
5178 | if (node) {
|
5179 |
|
5180 | do {
|
5181 | if (node === context)
|
5182 | return true;
|
5183 | } while (node = node.parentNode);
|
5184 | }
|
5185 | return false;
|
5186 | }
|
5187 | exports.default = (() => {
|
5188 |
|
5189 |
|
5190 | return canUseDOM
|
5191 | ? function (context, node) {
|
5192 | if (context.contains) {
|
5193 | return context.contains(node);
|
5194 | }
|
5195 | if (context.compareDocumentPosition) {
|
5196 | return context === node || !!(context.compareDocumentPosition(node) && 16);
|
5197 | }
|
5198 | return fallback(context, node);
|
5199 | }
|
5200 | : fallback;
|
5201 | })();
|
5202 |
|
5203 |
|
5204 | }),
|
5205 |
|
5206 | (function(module, exports, __webpack_require__) {
|
5207 |
|
5208 | "use strict";
|
5209 |
|
5210 | Object.defineProperty(exports, "__esModule", { value: true });
|
5211 | const tslib_1 = __webpack_require__(1);
|
5212 | const getStyleComputedProperty_1 = tslib_1.__importDefault(__webpack_require__(96));
|
5213 | const getBordersSize_1 = tslib_1.__importDefault(__webpack_require__(97));
|
5214 | const getWindowSizes_1 = tslib_1.__importDefault(__webpack_require__(98));
|
5215 | const getScroll_1 = tslib_1.__importDefault(__webpack_require__(13));
|
5216 | const getClientRect_1 = tslib_1.__importDefault(__webpack_require__(100));
|
5217 | const isIE_1 = tslib_1.__importDefault(__webpack_require__(22));
|
5218 |
|
5219 |
|
5220 |
|
5221 |
|
5222 |
|
5223 |
|
5224 |
|
5225 | function getBoundingClientRect(element) {
|
5226 | let rect = {};
|
5227 |
|
5228 |
|
5229 |
|
5230 | try {
|
5231 | if (isIE_1.default(10)) {
|
5232 | rect = element.getBoundingClientRect();
|
5233 | const scrollTop = getScroll_1.default(element, true);
|
5234 | const scrollLeft = getScroll_1.default(element);
|
5235 | rect.top += scrollTop;
|
5236 | rect.left += scrollLeft;
|
5237 | rect.bottom += scrollTop;
|
5238 | rect.right += scrollLeft;
|
5239 | }
|
5240 | else {
|
5241 | rect = element.getBoundingClientRect();
|
5242 | }
|
5243 |
|
5244 | }
|
5245 | catch (e) { }
|
5246 | const result = {
|
5247 | left: rect.left,
|
5248 | top: rect.top,
|
5249 | width: rect.right - rect.left,
|
5250 | height: rect.bottom - rect.top,
|
5251 | };
|
5252 |
|
5253 | const sizes = element.nodeName === 'HTML' ? getWindowSizes_1.default(element.ownerDocument) : {};
|
5254 | const width = sizes.width || element.clientWidth || result.right - result.left;
|
5255 | const height = sizes.height || element.clientHeight || result.bottom - result.top;
|
5256 | let horizScrollbar = element.offsetWidth - width;
|
5257 | let vertScrollbar = element.offsetHeight - height;
|
5258 | result.offsetLeft = element.offsetLeft || element.scrollLeft || 0;
|
5259 | result.offsetTop = element.offsetTop || element.offsetTop || 0;
|
5260 |
|
5261 |
|
5262 | if (horizScrollbar || vertScrollbar) {
|
5263 | const styles = getStyleComputedProperty_1.default(element);
|
5264 | horizScrollbar -= getBordersSize_1.default(styles, 'x');
|
5265 | vertScrollbar -= getBordersSize_1.default(styles, 'y');
|
5266 | result.width -= horizScrollbar;
|
5267 | result.height -= vertScrollbar;
|
5268 | }
|
5269 | return getClientRect_1.default(result);
|
5270 | }
|
5271 | exports.default = getBoundingClientRect;
|
5272 |
|
5273 |
|
5274 | }),
|
5275 |
|
5276 | (function(module, exports, __webpack_require__) {
|
5277 |
|
5278 | "use strict";
|
5279 |
|
5280 | Object.defineProperty(exports, "__esModule", { value: true });
|
5281 |
|
5282 |
|
5283 |
|
5284 |
|
5285 |
|
5286 |
|
5287 |
|
5288 | function getStyleComputedProperty(element, property) {
|
5289 | if (element.nodeType !== 1) {
|
5290 | return [];
|
5291 | }
|
5292 |
|
5293 | const window = element.ownerDocument.defaultView;
|
5294 | const css = window.getComputedStyle(element, null);
|
5295 | return property ? css[property] : css;
|
5296 | }
|
5297 | exports.default = getStyleComputedProperty;
|
5298 |
|
5299 |
|
5300 | }),
|
5301 |
|
5302 | (function(module, exports, __webpack_require__) {
|
5303 |
|
5304 | "use strict";
|
5305 |
|
5306 | Object.defineProperty(exports, "__esModule", { value: true });
|
5307 |
|
5308 |
|
5309 |
|
5310 |
|
5311 |
|
5312 |
|
5313 |
|
5314 |
|
5315 |
|
5316 | function getBordersSize(styles, axis) {
|
5317 | const sideA = axis === 'x' ? 'Left' : 'Top';
|
5318 | const sideB = sideA === 'Left' ? 'Right' : 'Bottom';
|
5319 | return (parseFloat(styles[`border${sideA}Width`]) +
|
5320 | parseFloat(styles[`border${sideB}Width`]));
|
5321 | }
|
5322 | exports.default = getBordersSize;
|
5323 |
|
5324 |
|
5325 | }),
|
5326 |
|
5327 | (function(module, exports, __webpack_require__) {
|
5328 |
|
5329 | "use strict";
|
5330 |
|
5331 | Object.defineProperty(exports, "__esModule", { value: true });
|
5332 | const tslib_1 = __webpack_require__(1);
|
5333 | const isIE_1 = tslib_1.__importDefault(__webpack_require__(22));
|
5334 | function getSize(axis, body, html, computedStyle) {
|
5335 | return Math.max(body[`offset${axis}`], body[`scroll${axis}`], html[`client${axis}`], html[`offset${axis}`], html[`scroll${axis}`], isIE_1.default(10)
|
5336 | ? (parseInt(html[`offset${axis}`], 10) +
|
5337 | parseInt(computedStyle[`margin${axis === 'Height' ? 'Top' : 'Left'}`], 10) +
|
5338 | parseInt(computedStyle[`margin${axis === 'Height' ? 'Bottom' : 'Right'}`], 10))
|
5339 | : 0);
|
5340 | }
|
5341 | function getWindowSizes(document) {
|
5342 | const body = document.body;
|
5343 | const html = document.documentElement;
|
5344 | const computedStyle = getComputedStyle(html);
|
5345 | return {
|
5346 | height: getSize('Height', body, html, computedStyle),
|
5347 | width: getSize('Width', body, html, computedStyle),
|
5348 | };
|
5349 | }
|
5350 | exports.default = getWindowSizes;
|
5351 |
|
5352 |
|
5353 | }),
|
5354 |
|
5355 | (function(module, exports, __webpack_require__) {
|
5356 |
|
5357 | "use strict";
|
5358 |
|
5359 | Object.defineProperty(exports, "__esModule", { value: true });
|
5360 | exports.default = typeof window !== 'undefined' && typeof document !== 'undefined';
|
5361 |
|
5362 |
|
5363 | }),
|
5364 |
|
5365 | (function(module, exports, __webpack_require__) {
|
5366 |
|
5367 | "use strict";
|
5368 |
|
5369 | Object.defineProperty(exports, "__esModule", { value: true });
|
5370 |
|
5371 |
|
5372 |
|
5373 |
|
5374 |
|
5375 |
|
5376 |
|
5377 | function getClientRect(offsets) {
|
5378 | return {
|
5379 | ...offsets,
|
5380 | right: offsets.left + offsets.width,
|
5381 | bottom: offsets.top + offsets.height,
|
5382 | };
|
5383 | }
|
5384 | exports.default = getClientRect;
|
5385 |
|
5386 |
|
5387 | }),
|
5388 |
|
5389 | (function(module, exports, __webpack_require__) {
|
5390 |
|
5391 | "use strict";
|
5392 |
|
5393 | Object.defineProperty(exports, "__esModule", { value: true });
|
5394 |
|
5395 |
|
5396 |
|
5397 |
|
5398 |
|
5399 |
|
5400 |
|
5401 | function getOuterSizes(element) {
|
5402 |
|
5403 |
|
5404 |
|
5405 |
|
5406 | const result = {
|
5407 | width: element.offsetWidth || element.scrollWidth || 0,
|
5408 | height: element.offsetHeight || element.scrollHeight || 0,
|
5409 | };
|
5410 | return result;
|
5411 | }
|
5412 | exports.default = getOuterSizes;
|
5413 |
|
5414 |
|
5415 | }),
|
5416 |
|
5417 | (function(module, exports, __webpack_require__) {
|
5418 |
|
5419 | "use strict";
|
5420 |
|
5421 | Object.defineProperty(exports, "__esModule", { value: true });
|
5422 | const tslib_1 = __webpack_require__(1);
|
5423 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5424 | class RefHolder extends react_1.default.PureComponent {
|
5425 | constructor() {
|
5426 | super(...arguments);
|
5427 | this.render = () => this.props.children;
|
5428 | }
|
5429 | }
|
5430 | exports.default = RefHolder;
|
5431 |
|
5432 |
|
5433 | }),
|
5434 |
|
5435 | (function(module, exports, __webpack_require__) {
|
5436 |
|
5437 |
|
5438 |
|
5439 | }),
|
5440 |
|
5441 | (function(module, exports, __webpack_require__) {
|
5442 |
|
5443 | "use strict";
|
5444 |
|
5445 | Object.defineProperty(exports, "__esModule", { value: true });
|
5446 | const tslib_1 = __webpack_require__(1);
|
5447 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5448 | const react_dom_1 = tslib_1.__importDefault(__webpack_require__(4));
|
5449 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5450 | __webpack_require__(28);
|
5451 |
|
5452 |
|
5453 |
|
5454 |
|
5455 |
|
5456 |
|
5457 |
|
5458 |
|
5459 | const easeInQuad = (t, b, c, d) => {
|
5460 |
|
5461 | return (c * (t /= d) * t) + b;
|
5462 | };
|
5463 | class TimePanel extends react_1.default.Component {
|
5464 | constructor() {
|
5465 | super(...arguments);
|
5466 | this.disableds = [];
|
5467 | this.getItemInstance = (idx, tag) => {
|
5468 | if (tag && this.getMaybeNumber() === idx) {
|
5469 | const currentDom = react_dom_1.default.findDOMNode(tag);
|
5470 | if (currentDom && currentDom.parentNode) {
|
5471 | const offsetTop = idx * currentDom.clientHeight;
|
5472 | if (currentDom.parentNode.parentNode) {
|
5473 | currentDom.parentNode.parentNode.scrollTop = offsetTop;
|
5474 | }
|
5475 | }
|
5476 | }
|
5477 | };
|
5478 | }
|
5479 | scrollTopNow(elm, idx) {
|
5480 | const currentDom = react_dom_1.default.findDOMNode(elm);
|
5481 | if (currentDom && currentDom.parentNode && currentDom.parentNode.parentNode) {
|
5482 | const rootTop = currentDom.parentNode.parentNode.scrollTop;
|
5483 | const offsetTop = idx === 0 ? currentDom.clientHeight : idx * currentDom.clientHeight;
|
5484 | const startTime = Date.now();
|
5485 | const frameFunc = () => {
|
5486 | const scrollDom = (currentDom.parentNode.parentNode);
|
5487 | const timestamp = Date.now();
|
5488 | const time = timestamp - startTime;
|
5489 | const offsetTopMove = easeInQuad(time, rootTop, offsetTop, offsetTop);
|
5490 | if (scrollDom) {
|
5491 | scrollDom.scrollTop = offsetTopMove > offsetTop ? offsetTop : offsetTopMove;
|
5492 | }
|
5493 | if (scrollDom && scrollDom.scrollTop < offsetTop) {
|
5494 | window.requestAnimationFrame(frameFunc);
|
5495 | }
|
5496 | };
|
5497 | window.requestAnimationFrame(frameFunc);
|
5498 | }
|
5499 | }
|
5500 | onClick(num, e) {
|
5501 | const { onSelected, type, date } = this.props;
|
5502 | date[(`set${type}`)](num);
|
5503 | onSelected && onSelected(type, num, this.disableds, date);
|
5504 | this.scrollTopNow(e.target, num);
|
5505 | }
|
5506 | getMaybeNumber() {
|
5507 | const { date, type } = this.props;
|
5508 | if (date && type) {
|
5509 | return date[(`get${type}`)]();
|
5510 | }
|
5511 | return 0;
|
5512 | }
|
5513 | getDisabledItem(num) {
|
5514 | const { type, date } = this.props;
|
5515 | const disabled = this.props[(`disabled${type}`)];
|
5516 | if (disabled) {
|
5517 | return disabled(num, type, date);
|
5518 | }
|
5519 | return false;
|
5520 | }
|
5521 | render() {
|
5522 | const { prefixCls, className, count, date, disabledHours, disabledMinutes, disabledSeconds, hideDisabled, onSelected, ...other } = this.props;
|
5523 | this.disableds = [];
|
5524 | return (react_1.default.createElement("div", Object.assign({ className: classnames_1.default(`${prefixCls}-spinner`) }, other),
|
5525 | react_1.default.createElement("ul", null, [...Array(count)].map((_, idx) => {
|
5526 | const disabled = this.getDisabledItem(idx);
|
5527 | const props = {};
|
5528 | if (!disabled) {
|
5529 | props.onClick = this.onClick.bind(this, idx);
|
5530 | }
|
5531 | else {
|
5532 | this.disableds.push(idx);
|
5533 | }
|
5534 | return (react_1.default.createElement("li", Object.assign({ key: idx, ref: this.getItemInstance.bind(this, idx) }, props, { className: classnames_1.default({
|
5535 | disabled,
|
5536 | selected: this.getMaybeNumber() === idx,
|
5537 | hide: hideDisabled && disabled,
|
5538 | }) }), idx < 10 ? `0${idx}` : idx));
|
5539 | }))));
|
5540 | }
|
5541 | }
|
5542 | TimePanel.defaultProps = {
|
5543 | prefixCls: 'w-timepicker',
|
5544 | count: 24,
|
5545 | type: 'Hours',
|
5546 | };
|
5547 | exports.default = TimePanel;
|
5548 |
|
5549 |
|
5550 | }),
|
5551 |
|
5552 | (function(module, exports, __webpack_require__) {
|
5553 |
|
5554 |
|
5555 |
|
5556 | }),
|
5557 |
|
5558 | (function(module, exports, __webpack_require__) {
|
5559 |
|
5560 |
|
5561 |
|
5562 | }),
|
5563 |
|
5564 | (function(module, exports, __webpack_require__) {
|
5565 |
|
5566 | "use strict";
|
5567 |
|
5568 | Object.defineProperty(exports, "__esModule", { value: true });
|
5569 | const tslib_1 = __webpack_require__(1);
|
5570 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5571 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5572 | const input_1 = tslib_1.__importDefault(__webpack_require__(7));
|
5573 | const popover_1 = tslib_1.__importDefault(__webpack_require__(11));
|
5574 | const date_picker_1 = tslib_1.__importDefault(__webpack_require__(23));
|
5575 | const __1 = __webpack_require__(5);
|
5576 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
5577 | __webpack_require__(110);
|
5578 | class DateInput extends react_1.default.Component {
|
5579 | constructor(props) {
|
5580 | super(props);
|
5581 | this.state = {
|
5582 | date: props.value,
|
5583 | };
|
5584 | }
|
5585 | componentWillReceiveProps(nextProps) {
|
5586 | if (nextProps.value !== this.props.value) {
|
5587 | this.setState({ date: nextProps.value });
|
5588 | }
|
5589 | }
|
5590 | onChange(date) {
|
5591 | const { format, onChange } = this.props;
|
5592 | this.setState({ date });
|
5593 | if (date) {
|
5594 | date = __1.formatter(format, new Date(date));
|
5595 | }
|
5596 | onChange && onChange(date);
|
5597 | }
|
5598 | render() {
|
5599 | const { prefixCls, className, popoverProps, datePickerProps, allowClear, format, onChange, ...inputProps } = this.props;
|
5600 | const { date } = this.state;
|
5601 | const value = date || '';
|
5602 | inputProps.value = typeof value === 'string' ? value : __1.formatter(format, value);
|
5603 | if (allowClear && inputProps.value) {
|
5604 | inputProps.addonAfter = react_1.default.createElement(icon_1.default, { className: `${prefixCls}-close-btn`, onClick: this.onChange.bind(this, undefined), type: "close" });
|
5605 | }
|
5606 | return (react_1.default.createElement(popover_1.default, Object.assign({ trigger: "focus", placement: "bottomLeft", autoAdjustOverflow: true }, popoverProps, { content: react_1.default.createElement(date_picker_1.default, Object.assign({ date: (value && new Date(value)) || undefined, className: `${prefixCls}-popover` }, datePickerProps, { onChange: this.onChange.bind(this) })) }),
|
5607 | react_1.default.createElement(input_1.default, Object.assign({ placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F", readOnly: true }, inputProps, { className: classnames_1.default(`${prefixCls}`, className) }))));
|
5608 | }
|
5609 | }
|
5610 | DateInput.defaultProps = {
|
5611 | prefixCls: 'w-dateinput',
|
5612 | format: 'YYYY/MM/DD',
|
5613 | allowClear: true,
|
5614 | };
|
5615 | exports.default = DateInput;
|
5616 |
|
5617 |
|
5618 | }),
|
5619 |
|
5620 | (function(module, exports, __webpack_require__) {
|
5621 |
|
5622 |
|
5623 |
|
5624 | }),
|
5625 |
|
5626 | (function(module, exports, __webpack_require__) {
|
5627 |
|
5628 |
|
5629 |
|
5630 | }),
|
5631 |
|
5632 | (function(module, exports, __webpack_require__) {
|
5633 |
|
5634 |
|
5635 |
|
5636 | }),
|
5637 |
|
5638 | (function(module, __webpack_exports__, __webpack_require__) {
|
5639 |
|
5640 | "use strict";
|
5641 | __webpack_require__.r(__webpack_exports__);
|
5642 |
|
5643 |
|
5644 |
|
5645 |
|
5646 |
|
5647 |
|
5648 |
|
5649 |
|
5650 |
|
5651 |
|
5652 | var dateRegex = /(?=(YYYY|YY|MM|DD|HH|mm|ss|ms))\1([:/]*)/g;
|
5653 | var timespan = {
|
5654 | YYYY: ['getFullYear', 4],
|
5655 | YY: ['getFullYear', 2],
|
5656 | MM: ['getMonth', 2, 1],
|
5657 | DD: ['getDate', 2],
|
5658 | HH: ['getHours', 2],
|
5659 | mm: ['getMinutes', 2],
|
5660 | ss: ['getSeconds', 2],
|
5661 | ms: ['getMilliseconds', 3],
|
5662 | };
|
5663 | function formatter(str, date, utc) {
|
5664 | if (typeof str !== 'string') {
|
5665 | date = str;
|
5666 | str = 'YYYY-MM-DD';
|
5667 | }
|
5668 | if (!date) {
|
5669 | date = new Date();
|
5670 | }
|
5671 | return str.replace(dateRegex, function (match, key, rest) {
|
5672 | var args = timespan[key];
|
5673 | var chars = args[1];
|
5674 | var name = args[0];
|
5675 | if (utc === true) {
|
5676 | name = "getUTC" + name.slice(3);
|
5677 | }
|
5678 | var val = "00" + String(date[name]() + (args[2] || 0));
|
5679 | return val.slice(-chars) + (rest || '');
|
5680 | });
|
5681 | }
|
5682 | formatter.utc = function (str, date) {
|
5683 | return formatter(str, date, true);
|
5684 | };
|
5685 |
|
5686 | __webpack_exports__["default"] = (formatter);
|
5687 |
|
5688 |
|
5689 |
|
5690 | }),
|
5691 |
|
5692 | (function(module, exports, __webpack_require__) {
|
5693 |
|
5694 | "use strict";
|
5695 |
|
5696 | Object.defineProperty(exports, "__esModule", { value: true });
|
5697 | const tslib_1 = __webpack_require__(1);
|
5698 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5699 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5700 | const Item_1 = tslib_1.__importDefault(__webpack_require__(113));
|
5701 | __webpack_require__(114);
|
5702 | class List extends react_1.default.Component {
|
5703 | render() {
|
5704 | const { prefixCls, className, children, bordered, striped, header, footer, size, dataSource, renderItem, ...resetProps } = this.props;
|
5705 | let items;
|
5706 | if (dataSource && dataSource.length > 0) {
|
5707 | items = dataSource.map((item, index) => renderItem(item, index));
|
5708 | }
|
5709 | else {
|
5710 | items = children;
|
5711 | }
|
5712 | const childrenList = react_1.default.Children.map(items, (child, index) => (react_1.default.isValidElement(child) && react_1.default.cloneElement(child, {
|
5713 | key: index,
|
5714 | }))).filter(Boolean);
|
5715 | const classString = classnames_1.default(`${prefixCls}`, className, {
|
5716 | [`${prefixCls}-striped`]: striped,
|
5717 | [`${prefixCls}-bordered`]: bordered,
|
5718 | [`${prefixCls}-size-${size}`]: size && size !== 'default',
|
5719 | });
|
5720 | return (react_1.default.createElement("div", Object.assign({ className: classString }, resetProps),
|
5721 | header && react_1.default.createElement("div", { className: `${prefixCls}-header` }, header),
|
5722 | childrenList,
|
5723 | footer && react_1.default.createElement("div", { className: `${prefixCls}-footer` }, footer)));
|
5724 | }
|
5725 | }
|
5726 | List.defaultProps = {
|
5727 | prefixCls: 'w-list',
|
5728 | bordered: true,
|
5729 | striped: false,
|
5730 | size: 'default',
|
5731 | renderItem: () => null,
|
5732 | dataSource: [],
|
5733 | };
|
5734 | List.Item = Item_1.default;
|
5735 | exports.default = List;
|
5736 |
|
5737 |
|
5738 | }),
|
5739 |
|
5740 | (function(module, exports, __webpack_require__) {
|
5741 |
|
5742 | "use strict";
|
5743 |
|
5744 | Object.defineProperty(exports, "__esModule", { value: true });
|
5745 | const tslib_1 = __webpack_require__(1);
|
5746 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5747 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5748 | class Item extends react_1.default.Component {
|
5749 | render() {
|
5750 | const { prefixCls, className, children, active, ...resetProps } = this.props;
|
5751 | const cls = classnames_1.default(`${prefixCls}`, className, {
|
5752 | 'w-disabled': this.props.disabled,
|
5753 | 'w-active': active,
|
5754 | });
|
5755 | const tagName = this.props.href ? 'a' : 'div';
|
5756 | return react_1.default.createElement(tagName, {
|
5757 | className: cls,
|
5758 | ...resetProps,
|
5759 | }, children);
|
5760 | }
|
5761 | }
|
5762 | Item.defaultProps = {
|
5763 | prefixCls: 'w-list-item',
|
5764 | disabled: false,
|
5765 | active: false,
|
5766 | };
|
5767 | exports.default = Item;
|
5768 |
|
5769 |
|
5770 | }),
|
5771 |
|
5772 | (function(module, exports, __webpack_require__) {
|
5773 |
|
5774 |
|
5775 |
|
5776 | }),
|
5777 |
|
5778 | (function(module, exports, __webpack_require__) {
|
5779 |
|
5780 | "use strict";
|
5781 |
|
5782 | Object.defineProperty(exports, "__esModule", { value: true });
|
5783 | const tslib_1 = __webpack_require__(1);
|
5784 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5785 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5786 | __webpack_require__(116);
|
5787 | class Loader extends react_1.default.Component {
|
5788 | render() {
|
5789 | const { prefixCls, className, size, loading, tip, vertical, color, bgColor, children, indicator, fullscreen, ...otherProps } = this.props;
|
5790 | const cls = classnames_1.default(prefixCls, className, {
|
5791 | [`${prefixCls}-${size}`]: size,
|
5792 | });
|
5793 | return (react_1.default.createElement("div", Object.assign({ className: cls }, otherProps),
|
5794 | (loading || fullscreen) && (react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-tips`, {
|
5795 | [`${prefixCls}-fullscreen`]: fullscreen,
|
5796 | }), style: { color, backgroundColor: bgColor } },
|
5797 | react_1.default.createElement("div", { className: `${prefixCls}-tips-nested` },
|
5798 | indicator,
|
5799 | !indicator && (react_1.default.createElement("svg", { viewBox: "25 25 50 50" },
|
5800 | react_1.default.createElement("circle", { cx: "50", cy: "50", r: "20", fill: "none", strokeWidth: "5", strokeMiterlimit: "10" }))),
|
5801 | tip && react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-text`, { [`${prefixCls}-vertical`]: vertical }) }, tip)))),
|
5802 | children && (react_1.default.cloneElement(children, Object.assign({}, children.props, {
|
5803 | className: classnames_1.default(`${prefixCls}-warp`, { [`${prefixCls}-blur`]: loading }),
|
5804 | })))));
|
5805 | }
|
5806 | }
|
5807 | Loader.defaultProps = {
|
5808 | prefixCls: 'w-loader',
|
5809 | size: 'default',
|
5810 | loading: true,
|
5811 | fullscreen: false,
|
5812 | };
|
5813 | exports.default = Loader;
|
5814 |
|
5815 |
|
5816 | }),
|
5817 |
|
5818 | (function(module, exports, __webpack_require__) {
|
5819 |
|
5820 |
|
5821 |
|
5822 | }),
|
5823 |
|
5824 | (function(module, exports, __webpack_require__) {
|
5825 |
|
5826 | "use strict";
|
5827 |
|
5828 | Object.defineProperty(exports, "__esModule", { value: true });
|
5829 | const tslib_1 = __webpack_require__(1);
|
5830 | const Menu_1 = tslib_1.__importDefault(__webpack_require__(30));
|
5831 | const MenuItem_1 = tslib_1.__importDefault(__webpack_require__(15));
|
5832 | const SubMenu_1 = tslib_1.__importDefault(__webpack_require__(32));
|
5833 | const Divider_1 = tslib_1.__importDefault(__webpack_require__(31));
|
5834 | Menu_1.default.Item = MenuItem_1.default;
|
5835 | Menu_1.default.SubMenu = SubMenu_1.default;
|
5836 | Menu_1.default.Divider = Divider_1.default;
|
5837 | exports.default = Menu_1.default;
|
5838 |
|
5839 |
|
5840 | }),
|
5841 |
|
5842 | (function(module, exports, __webpack_require__) {
|
5843 |
|
5844 |
|
5845 |
|
5846 | }),
|
5847 |
|
5848 | (function(module, exports, __webpack_require__) {
|
5849 |
|
5850 |
|
5851 |
|
5852 | }),
|
5853 |
|
5854 | (function(module, exports, __webpack_require__) {
|
5855 |
|
5856 |
|
5857 |
|
5858 | }),
|
5859 |
|
5860 | (function(module, exports, __webpack_require__) {
|
5861 |
|
5862 | "use strict";
|
5863 |
|
5864 | Object.defineProperty(exports, "__esModule", { value: true });
|
5865 | const tslib_1 = __webpack_require__(1);
|
5866 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5867 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5868 | const react_transition_group_1 = __webpack_require__(12);
|
5869 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
5870 | const button_1 = tslib_1.__importDefault(__webpack_require__(6));
|
5871 | __webpack_require__(122);
|
5872 | class Message extends react_1.default.Component {
|
5873 | constructor(props) {
|
5874 | super(props);
|
5875 | this.handleClosed = (e) => {
|
5876 | const { onClose } = this.props;
|
5877 | this.setState({ isOpen: false });
|
5878 | onClose && onClose(e);
|
5879 | };
|
5880 | this.renderIcon = () => {
|
5881 | const { type, showIcon } = this.props;
|
5882 | let icon = this.props.icon;
|
5883 | if (!icon && showIcon) {
|
5884 | switch (type) {
|
5885 | case 'success':
|
5886 | icon = 'circle-check';
|
5887 | break;
|
5888 | case 'warning':
|
5889 | icon = 'warning';
|
5890 | break;
|
5891 | case 'info':
|
5892 | icon = 'information';
|
5893 | break;
|
5894 | case 'error':
|
5895 | icon = 'circle-close';
|
5896 | break;
|
5897 | default: break;
|
5898 | }
|
5899 | }
|
5900 | return icon;
|
5901 | };
|
5902 | this.state = {
|
5903 | isOpen: true,
|
5904 | };
|
5905 | }
|
5906 | render() {
|
5907 | const { prefixCls, className, type, title, description, showIcon, icon, rounded, isCloseButtonShown, ...elementProps } = this.props;
|
5908 | const children = description || this.props.children;
|
5909 | const cls = classnames_1.default(prefixCls, className, `${prefixCls}-${type}`, {
|
5910 | [`${prefixCls}-rounded`]: rounded,
|
5911 | [`${prefixCls}-icon`]: showIcon,
|
5912 | [`${prefixCls}${title ? '-title' : ''}${children ? '-description' : ''}`]: showIcon,
|
5913 | });
|
5914 | const Child = (react_1.default.createElement("div", Object.assign({ className: cls }, elementProps),
|
5915 | isCloseButtonShown && react_1.default.createElement(button_1.default, { basic: true, onClick: this.handleClosed, icon: "close", type: "light" }),
|
5916 | showIcon && react_1.default.createElement(icon_1.default, { type: this.renderIcon() }),
|
5917 | react_1.default.createElement("span", { className: classnames_1.default(`${prefixCls}-title`) }, title),
|
5918 | react_1.default.createElement("span", { className: classnames_1.default(`${prefixCls}-description`) }, children)));
|
5919 | if (!isCloseButtonShown) {
|
5920 | return Child;
|
5921 | }
|
5922 | return (react_1.default.createElement(react_transition_group_1.CSSTransition, { in: this.state.isOpen, unmountOnExit: true, timeout: 300, classNames: prefixCls }, Child));
|
5923 | }
|
5924 | }
|
5925 | Message.defaultProps = {
|
5926 | prefixCls: 'w-message',
|
5927 | rounded: true,
|
5928 | isCloseButtonShown: false,
|
5929 | };
|
5930 | exports.default = Message;
|
5931 |
|
5932 |
|
5933 | }),
|
5934 |
|
5935 | (function(module, exports, __webpack_require__) {
|
5936 |
|
5937 |
|
5938 |
|
5939 | }),
|
5940 |
|
5941 | (function(module, exports, __webpack_require__) {
|
5942 |
|
5943 | "use strict";
|
5944 |
|
5945 | Object.defineProperty(exports, "__esModule", { value: true });
|
5946 | const tslib_1 = __webpack_require__(1);
|
5947 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
5948 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
5949 | const input_1 = tslib_1.__importDefault(__webpack_require__(7));
|
5950 | const popover_1 = tslib_1.__importDefault(__webpack_require__(11));
|
5951 | const __1 = __webpack_require__(5);
|
5952 | const button_1 = tslib_1.__importDefault(__webpack_require__(6));
|
5953 | const PickerMonth_1 = tslib_1.__importDefault(__webpack_require__(24));
|
5954 | const PickerYear_1 = tslib_1.__importDefault(__webpack_require__(26));
|
5955 | const PickerCaption_1 = tslib_1.__importDefault(__webpack_require__(29));
|
5956 | __webpack_require__(124);
|
5957 | class MonthPicker extends react_1.default.Component {
|
5958 | constructor(props) {
|
5959 | super(props);
|
5960 | this.onSelected = (type) => {
|
5961 | if (/^(month|year)$/.test(type)) {
|
5962 | this.setState({ type });
|
5963 | }
|
5964 | else {
|
5965 | const year = this.state.panelDate.getFullYear();
|
5966 | const panelDate = this.state.panelDate.setFullYear(type === 'next' ? year + 1 : year - 1);
|
5967 | this.setState({
|
5968 | panelDate: new Date(panelDate),
|
5969 | });
|
5970 | }
|
5971 | };
|
5972 | this.state = {
|
5973 | date: props.value,
|
5974 | panelDate: new Date(),
|
5975 | type: 'month',
|
5976 | isOpen: false,
|
5977 | };
|
5978 | }
|
5979 | componentWillReceiveProps(nextProps) {
|
5980 | if (nextProps.value !== this.props.value) {
|
5981 | this.setState({ date: nextProps.value });
|
5982 | }
|
5983 | }
|
5984 | onSelectedDate(type, num, paging) {
|
5985 | const { format, onChange } = this.props;
|
5986 | let { panelDate, date } = this.state;
|
5987 | date = panelDate;
|
5988 | panelDate = new Date(date[type](num));
|
5989 | date = __1.formatter(format, new Date(date));
|
5990 | const state = { panelDate, date, isOpen: false };
|
5991 | if (type === 'setFullYear') {
|
5992 | delete state.isOpen;
|
5993 | state.type = 'month';
|
5994 | }
|
5995 | if (paging) {
|
5996 | delete state.type;
|
5997 | }
|
5998 | this.setState({ ...state }, () => {
|
5999 | if (this.state.date && onChange) {
|
6000 | onChange(panelDate, date);
|
6001 | }
|
6002 | });
|
6003 | }
|
6004 | handleVisibleChange(isOpen) {
|
6005 | this.setState({ isOpen });
|
6006 | }
|
6007 | onAllowClear() {
|
6008 | const { onChange } = this.props;
|
6009 | this.setState({ date: undefined }, () => {
|
6010 | onChange && onChange();
|
6011 | });
|
6012 | }
|
6013 | render() {
|
6014 | const { prefixCls, className, popoverProps, allowClear, format, monthLabel, ...inputProps } = this.props;
|
6015 | const { date, type } = this.state;
|
6016 | const value = date || '';
|
6017 | inputProps.value = typeof value === 'string' ? value : __1.formatter(format, value);
|
6018 | if (allowClear && inputProps.value) {
|
6019 | inputProps.addonAfter = react_1.default.createElement(button_1.default, { className: `${prefixCls}-close-btn`, icon: "close", onClick: this.onAllowClear.bind(this), size: inputProps.size, basic: true, type: "light" });
|
6020 |
|
6021 | }
|
6022 | return (react_1.default.createElement(popover_1.default, Object.assign({ trigger: "focus", placement: "bottomLeft", autoAdjustOverflow: true, isOpen: this.state.isOpen }, popoverProps, { onVisibleChange: this.handleVisibleChange.bind(this), content: react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-popover`) },
|
6023 | react_1.default.createElement(PickerCaption_1.default, { panelDate: this.state.panelDate, monthLabel: monthLabel, onSelected: this.onSelected }),
|
6024 | type === 'month' && (react_1.default.createElement(PickerMonth_1.default, { panelDate: this.state.panelDate, monthLabel: monthLabel, onSelected: this.onSelectedDate.bind(this, 'setMonth') })),
|
6025 | type === 'year' && (react_1.default.createElement(PickerYear_1.default, { panelDate: this.state.panelDate, onSelected: this.onSelectedDate.bind(this, 'setFullYear') }))) }),
|
6026 | react_1.default.createElement(input_1.default, Object.assign({ placeholder: "\u8BF7\u8F93\u5165\u65E5\u671F", readOnly: true }, inputProps, { className: classnames_1.default(`${prefixCls}`, className) }))));
|
6027 | }
|
6028 | }
|
6029 | MonthPicker.defaultProps = {
|
6030 | prefixCls: 'w-monthpicker',
|
6031 | format: 'YYYY/MM',
|
6032 | monthLabel: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
|
6033 | allowClear: true,
|
6034 | onChange() { },
|
6035 | };
|
6036 | exports.default = MonthPicker;
|
6037 |
|
6038 |
|
6039 | }),
|
6040 |
|
6041 | (function(module, exports, __webpack_require__) {
|
6042 |
|
6043 |
|
6044 |
|
6045 | }),
|
6046 |
|
6047 | (function(module, exports, __webpack_require__) {
|
6048 |
|
6049 | "use strict";
|
6050 |
|
6051 | Object.defineProperty(exports, "__esModule", { value: true });
|
6052 | const tslib_1 = __webpack_require__(1);
|
6053 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6054 | const react_dom_1 = tslib_1.__importDefault(__webpack_require__(4));
|
6055 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6056 | const Container_1 = tslib_1.__importDefault(__webpack_require__(126));
|
6057 | __webpack_require__(127);
|
6058 | function randomid() {
|
6059 | return parseInt(String(Math.random() * 1e15), 10).toString(36);
|
6060 | }
|
6061 | const notifys = {};
|
6062 | const notifysDom = {};
|
6063 | function NotificationCreate(props, type = 'open') {
|
6064 | if (!props.placement) {
|
6065 | props.placement = 'topRight';
|
6066 | }
|
6067 | props.type = (type);
|
6068 | if (!props.icon && props.icon !== null) {
|
6069 | switch (props.type) {
|
6070 | case 'success':
|
6071 | props.icon = 'circle-check';
|
6072 | break;
|
6073 | case 'warning':
|
6074 | props.icon = 'warning';
|
6075 | break;
|
6076 | case 'info':
|
6077 | props.icon = 'information';
|
6078 | break;
|
6079 | case 'error':
|
6080 | props.icon = 'circle-close';
|
6081 | break;
|
6082 | default: break;
|
6083 | }
|
6084 | }
|
6085 | switch (props.type) {
|
6086 | case 'info':
|
6087 | props.type = 'primary';
|
6088 | break;
|
6089 | case 'error':
|
6090 | props.type = 'danger';
|
6091 | break;
|
6092 | default: break;
|
6093 | }
|
6094 | if (props.placement && !notifys[props.placement]) {
|
6095 | const div = document.createElement('div');
|
6096 | document.body.appendChild(div);
|
6097 | div.className = classnames_1.default('w-notify-warpper', props.placement);
|
6098 | notifysDom[props.placement] = div;
|
6099 | notifys[props.placement] = react_dom_1.default.render(react_1.default.createElement(Container_1.default, null), div);
|
6100 | }
|
6101 | if (props.duration !== null) {
|
6102 | props.duration = (props.duration || 4.5) * 1000;
|
6103 | }
|
6104 | if (notifys[props.placement]) {
|
6105 | notifys[props.placement].create({
|
6106 | ...props,
|
6107 | duration: props.duration,
|
6108 | key: randomid(),
|
6109 | willUnmount(nprops, notifysChild) {
|
6110 | if (!nprops)
|
6111 | return;
|
6112 | nprops.onClose && nprops.onClose();
|
6113 | const keys = Object.keys(notifysChild[props.placement]);
|
6114 | if (keys.length === 0 && notifys[props.placement]) {
|
6115 | delete notifys[props.placement];
|
6116 | if (notifysDom[props.placement]) {
|
6117 | document.body.removeChild(notifysDom[props.placement]);
|
6118 | }
|
6119 | }
|
6120 | },
|
6121 | });
|
6122 | }
|
6123 | }
|
6124 | exports.default = NotificationCreate;
|
6125 | ['open', 'success', 'warning', 'info', 'error'].forEach((type) => {
|
6126 | NotificationCreate[type] = (options = {}) => {
|
6127 | return NotificationCreate(options, type);
|
6128 | };
|
6129 | });
|
6130 |
|
6131 |
|
6132 | }),
|
6133 |
|
6134 | (function(module, exports, __webpack_require__) {
|
6135 |
|
6136 | "use strict";
|
6137 |
|
6138 | Object.defineProperty(exports, "__esModule", { value: true });
|
6139 | const tslib_1 = __webpack_require__(1);
|
6140 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6141 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6142 | const alert_1 = tslib_1.__importDefault(__webpack_require__(16));
|
6143 | const notifys = {};
|
6144 | const timer = {};
|
6145 | class Container extends react_1.default.Component {
|
6146 | constructor() {
|
6147 | super(...arguments);
|
6148 | this.state = {
|
6149 | notifys: {},
|
6150 | };
|
6151 | }
|
6152 | create(props) {
|
6153 | const { placement, key } = props;
|
6154 | if (!notifys[placement]) {
|
6155 | notifys[placement] = {};
|
6156 | }
|
6157 | props.isOpen = false;
|
6158 | notifys[placement][key] = props;
|
6159 | if (props.duration) {
|
6160 | timer[key] = setTimeout(() => {
|
6161 | this.closed(key, placement);
|
6162 | }, props.duration);
|
6163 | }
|
6164 | this.setState({
|
6165 | notifys,
|
6166 | placement,
|
6167 | }, () => {
|
6168 | notifys[placement][key].isOpen = true;
|
6169 | this.setState({ notifys });
|
6170 | });
|
6171 | }
|
6172 | closed(key, placement) {
|
6173 | if (!key || !placement || !notifys[placement][key]) {
|
6174 | return;
|
6175 | }
|
6176 | notifys[placement][key].isOpen = false;
|
6177 | const props = notifys[placement][key];
|
6178 | this.setState({ notifys }, () => {
|
6179 | clearTimeout(timer[key]);
|
6180 | delete timer[key];
|
6181 | delete notifys[placement][key];
|
6182 | if (props && props.willUnmount) {
|
6183 | props.willUnmount(props, notifys);
|
6184 | }
|
6185 | });
|
6186 | }
|
6187 | render() {
|
6188 | const { prefixCls } = this.props;
|
6189 | const { placement } = this.state;
|
6190 | return (react_1.default.createElement(react_1.default.Fragment, null, placement && Object.keys(this.state.notifys[placement]).map((key) => {
|
6191 | const { description, isOpen, ...alertProps } = this.state.notifys[placement][key];
|
6192 | if (alertProps.type === 'open') {
|
6193 | delete alertProps.type;
|
6194 | }
|
6195 | return (react_1.default.createElement(alert_1.default, Object.assign({ className: classnames_1.default(prefixCls), key: key, useButton: false, width: 320 }, alertProps, { usePortal: false, hasBackdrop: false, isOpen: isOpen, content: description })));
|
6196 | })));
|
6197 | }
|
6198 | }
|
6199 | Container.defaultProps = {
|
6200 | prefixCls: 'w-notify',
|
6201 | placement: 'topRight',
|
6202 | };
|
6203 | exports.default = Container;
|
6204 |
|
6205 |
|
6206 | }),
|
6207 |
|
6208 | (function(module, exports, __webpack_require__) {
|
6209 |
|
6210 |
|
6211 |
|
6212 | }),
|
6213 |
|
6214 | (function(module, exports, __webpack_require__) {
|
6215 |
|
6216 | "use strict";
|
6217 |
|
6218 | Object.defineProperty(exports, "__esModule", { value: true });
|
6219 | const tslib_1 = __webpack_require__(1);
|
6220 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6221 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6222 | __webpack_require__(129);
|
6223 | class Pagination extends react_1.default.Component {
|
6224 | constructor(props) {
|
6225 | super(props);
|
6226 | this.state = {
|
6227 | current: props.current,
|
6228 | };
|
6229 | }
|
6230 | componentWillReceiveProps(nextProps) {
|
6231 | if (nextProps.current !== this.props.current) {
|
6232 | this.setState({
|
6233 | current: nextProps.current,
|
6234 | });
|
6235 | }
|
6236 | }
|
6237 | onClick(item) {
|
6238 | if (item.active || item.disabled) {
|
6239 | return;
|
6240 | }
|
6241 | const { total, pageSize, onChange } = this.props;
|
6242 | const { current } = this.state;
|
6243 | const count = Math.ceil(total / pageSize);
|
6244 | const state = {};
|
6245 | if (item.label) {
|
6246 | state.current = item.label;
|
6247 | }
|
6248 | if (item.type === 'prev') {
|
6249 | state.current = current - 1 > 0 ? current - 1 : 1;
|
6250 | }
|
6251 | if (item.type === 'next') {
|
6252 | state.current = current + 1 <= count ? current + 1 : count;
|
6253 | }
|
6254 | if (/^(jumpPrev|jumpNext)/.test(item.type) && item.goto) {
|
6255 | state.current = item.type === 'jumpPrev' ? current - item.goto : current + item.goto;
|
6256 | if (state.current > count) {
|
6257 | state.current = count;
|
6258 | }
|
6259 | if (state.current < 1) {
|
6260 | state.current = 1;
|
6261 | }
|
6262 | }
|
6263 | this.setState({ ...state }, () => {
|
6264 | onChange && onChange(this.state.current, total, pageSize);
|
6265 | });
|
6266 | }
|
6267 | initPageSoure() {
|
6268 | const { total, pageSize } = this.props;
|
6269 | const { current } = this.state;
|
6270 | const data = [{ type: 'prev', disabled: current === 1 }];
|
6271 | const count = Math.ceil(total / pageSize);
|
6272 | const itemCount = count <= 5 ? count : 5;
|
6273 | let num = 0;
|
6274 | let basic = 0;
|
6275 | if (current > 3 && count > 5) {
|
6276 | data.push({ label: 1 });
|
6277 | }
|
6278 | if (current > 4 && count > 6) {
|
6279 | data.push({ type: 'jumpPrev', label: '•••', goto: 5 });
|
6280 | }
|
6281 | while (num < itemCount) {
|
6282 | num += 1;
|
6283 | if (current > 3 && count > 5) {
|
6284 | basic = current - 3;
|
6285 | }
|
6286 | let label = num + basic;
|
6287 | if (count - current === 0 && count > 5) {
|
6288 | label -= 2;
|
6289 | }
|
6290 | if (count - current === 1 && count > 5) {
|
6291 | label -= 1;
|
6292 | }
|
6293 | if (label <= count) {
|
6294 | data.push({ label, active: current === label });
|
6295 | }
|
6296 | }
|
6297 | if (current + 3 < count && count > 6) {
|
6298 | data.push({ type: 'jumpNext', label: '•••', goto: 5 });
|
6299 | }
|
6300 | if (current + 2 < count && count > 5) {
|
6301 | data.push({ label: count });
|
6302 | }
|
6303 | data.push({ type: 'next', disabled: current === count });
|
6304 | return data;
|
6305 |
|
6306 |
|
6307 |
|
6308 |
|
6309 |
|
6310 |
|
6311 |
|
6312 |
|
6313 |
|
6314 |
|
6315 | }
|
6316 | render() {
|
6317 | const { prefixCls, className, total, current, pageSize, size, alignment, divider, onChange, ...other } = this.props;
|
6318 | const cls = classnames_1.default(prefixCls, className, {
|
6319 | [`${prefixCls}-${alignment}`]: alignment,
|
6320 | [size]: size,
|
6321 | divider,
|
6322 | });
|
6323 | return (react_1.default.createElement("ul", Object.assign({ className: cls }, other), this.initPageSoure().map((item, idx) => {
|
6324 | let label = react_1.default.createElement("a", null, item.label);
|
6325 | if (/^(prev|next)$/.test(item.type)) {
|
6326 | label = react_1.default.createElement("a", { className: `arrow ${item.type}` });
|
6327 | }
|
6328 | return (react_1.default.createElement("li", { className: classnames_1.default({
|
6329 | active: item.active,
|
6330 | disabled: item.disabled,
|
6331 | }), onClick: this.onClick.bind(this, item), key: idx }, label));
|
6332 | })));
|
6333 | }
|
6334 | }
|
6335 | Pagination.defaultProps = {
|
6336 | prefixCls: 'w-pagination',
|
6337 | alignment: 'left',
|
6338 | size: 'default',
|
6339 | total: 0,
|
6340 | pageSize: 10,
|
6341 | current: 1,
|
6342 | onChange: () => null,
|
6343 | };
|
6344 | exports.default = Pagination;
|
6345 |
|
6346 |
|
6347 | }),
|
6348 |
|
6349 | (function(module, exports, __webpack_require__) {
|
6350 |
|
6351 |
|
6352 |
|
6353 | }),
|
6354 |
|
6355 | (function(module, exports, __webpack_require__) {
|
6356 |
|
6357 | "use strict";
|
6358 |
|
6359 | Object.defineProperty(exports, "__esModule", { value: true });
|
6360 | const tslib_1 = __webpack_require__(1);
|
6361 | const Circle_1 = tslib_1.__importDefault(__webpack_require__(131));
|
6362 | const Line_1 = tslib_1.__importDefault(__webpack_require__(133));
|
6363 | exports.default = {
|
6364 | Line: Line_1.default,
|
6365 | Circle: Circle_1.default,
|
6366 | };
|
6367 |
|
6368 |
|
6369 | }),
|
6370 |
|
6371 | (function(module, exports, __webpack_require__) {
|
6372 |
|
6373 | "use strict";
|
6374 |
|
6375 | Object.defineProperty(exports, "__esModule", { value: true });
|
6376 | const tslib_1 = __webpack_require__(1);
|
6377 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6378 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6379 | const utils_1 = __webpack_require__(33);
|
6380 | __webpack_require__(34);
|
6381 | __webpack_require__(132);
|
6382 | class Circle extends react_1.default.Component {
|
6383 | relativeStrokeWidth(type, elm) {
|
6384 | const { strokeWidth, percent } = this.props;
|
6385 | if (elm && elm.parentNode) {
|
6386 | const { width } = elm.parentNode.getBoundingClientRect();
|
6387 | const _strokeWidth = ((strokeWidth / width) * 100).toFixed(1);
|
6388 | const radius = parseInt((50 - (parseFloat(_strokeWidth) / 2)).toString(), 10);
|
6389 | elm.setAttribute('stroke-width', _strokeWidth);
|
6390 | elm.setAttribute('d', `M 50 50 m 0 -${radius} a ${radius} ${radius} 0 1 1 0 ${radius * 2} a ${radius} ${radius} 0 1 1 0 -${radius * 2}`);
|
6391 | if (type === 'track') {
|
6392 |
|
6393 | const perimeter = 2 * Math.PI * radius;
|
6394 | elm.setAttribute('style', `stroke-dasharray:${perimeter}px,${perimeter}px;stroke-dashoffset:${(1 - (percent / 100)) * perimeter}px;transition: stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease;`);
|
6395 | }
|
6396 | }
|
6397 | }
|
6398 | render() {
|
6399 | const { prefixCls, style, type, className, showText, percent, format, strokeWidth, width, status, ...resetProps } = this.props;
|
6400 | const cls = classnames_1.default(prefixCls, className, `${prefixCls}-circle`, {
|
6401 | [`${prefixCls}-show-text`]: showText,
|
6402 | [`${prefixCls}-status-${status}`]: status,
|
6403 | [`${prefixCls}-status-success`]: parseInt(percent.toString(), 10) >= 100,
|
6404 | });
|
6405 | let progressInfo;
|
6406 | const progressStatus = parseInt(percent.toString(), 10) >= 100 && !('status' in this.props) ? 'success' : status;
|
6407 | if (showText) {
|
6408 | let percentView = `${percent}%`;
|
6409 | if (progressStatus === 'exception') {
|
6410 | percentView = react_1.default.createElement(utils_1.IconProgress, { type: "close" });
|
6411 | }
|
6412 | else if (progressStatus === 'success') {
|
6413 | percentView = react_1.default.createElement(utils_1.IconProgress, { type: "check" });
|
6414 | }
|
6415 | progressInfo = react_1.default.createElement("span", { className: `${prefixCls}-text`, style: { fontSize: (width * 0.16) + 6 } }, format ? format(percent) : percentView);
|
6416 | }
|
6417 | return (react_1.default.createElement("div", Object.assign({ className: cls, style: style }, resetProps),
|
6418 | react_1.default.createElement("svg", { viewBox: "0 0 100 100", width: `${width}` },
|
6419 | react_1.default.createElement("path", { ref: this.relativeStrokeWidth.bind(this, 'bg'), className: `${prefixCls}-trail`, fill: "none" }),
|
6420 | react_1.default.createElement("path", { ref: this.relativeStrokeWidth.bind(this, 'track'), strokeLinecap: "round", className: `${prefixCls}-stroke`, fill: "none" })),
|
6421 | progressInfo));
|
6422 | }
|
6423 | }
|
6424 | Circle.defaultProps = {
|
6425 | prefixCls: 'w-progress',
|
6426 | showText: true,
|
6427 | percent: 0,
|
6428 | width: 126,
|
6429 | strokeWidth: 6,
|
6430 | };
|
6431 | exports.default = Circle;
|
6432 |
|
6433 |
|
6434 | }),
|
6435 |
|
6436 | (function(module, exports, __webpack_require__) {
|
6437 |
|
6438 |
|
6439 |
|
6440 | }),
|
6441 |
|
6442 | (function(module, exports, __webpack_require__) {
|
6443 |
|
6444 | "use strict";
|
6445 |
|
6446 | Object.defineProperty(exports, "__esModule", { value: true });
|
6447 | const tslib_1 = __webpack_require__(1);
|
6448 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6449 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6450 | const utils_1 = __webpack_require__(33);
|
6451 | __webpack_require__(34);
|
6452 | __webpack_require__(134);
|
6453 | class Line extends react_1.default.Component {
|
6454 | render() {
|
6455 | const { prefixCls, style, className, showText, percent, format, strokeWidth, width, status, ...resetProps } = this.props;
|
6456 | const cls = classnames_1.default(prefixCls, className, `${prefixCls}-line`, {
|
6457 | [`${prefixCls}-show-text`]: showText,
|
6458 | [`${prefixCls}-status-${status}`]: status,
|
6459 | [`${prefixCls}-status-success`]: parseInt(percent.toString(), 10) >= 100,
|
6460 | });
|
6461 | let progressInfo;
|
6462 | if (showText) {
|
6463 | const progressStatus = parseInt(percent.toString(), 10) >= 100 && !('status' in this.props) ? 'success' : status;
|
6464 | let percentView = `${percent}%`;
|
6465 | if (progressStatus === 'exception') {
|
6466 | percentView = react_1.default.createElement(utils_1.IconProgress, { type: "circle-close" });
|
6467 | }
|
6468 | else if (progressStatus === 'success') {
|
6469 | percentView = react_1.default.createElement(utils_1.IconProgress, { type: "circle-check" });
|
6470 | }
|
6471 | progressInfo = react_1.default.createElement("span", { className: `${prefixCls}-text` }, format ? format(percent) : percentView);
|
6472 | }
|
6473 | const percentStyle = {
|
6474 | width: `${percent}%`,
|
6475 | height: strokeWidth,
|
6476 | };
|
6477 | return (react_1.default.createElement("div", Object.assign({ className: cls, style: style }, resetProps),
|
6478 | react_1.default.createElement("div", { className: `${prefixCls}-bar` },
|
6479 | react_1.default.createElement("div", { className: `${prefixCls}-inner` },
|
6480 | react_1.default.createElement("div", { className: `${prefixCls}-bg`, style: percentStyle }))),
|
6481 | progressInfo));
|
6482 | }
|
6483 | }
|
6484 | Line.defaultProps = {
|
6485 | prefixCls: 'w-progress',
|
6486 | showText: true,
|
6487 | percent: 0,
|
6488 | width: 126,
|
6489 | strokeWidth: 6,
|
6490 | };
|
6491 | exports.default = Line;
|
6492 |
|
6493 |
|
6494 | }),
|
6495 |
|
6496 | (function(module, exports, __webpack_require__) {
|
6497 |
|
6498 |
|
6499 |
|
6500 | }),
|
6501 |
|
6502 | (function(module, exports, __webpack_require__) {
|
6503 |
|
6504 | "use strict";
|
6505 |
|
6506 | Object.defineProperty(exports, "__esModule", { value: true });
|
6507 | const tslib_1 = __webpack_require__(1);
|
6508 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6509 | const Abstract_1 = tslib_1.__importDefault(__webpack_require__(14));
|
6510 | __webpack_require__(136);
|
6511 | class Radio extends react_1.default.Component {
|
6512 | render() {
|
6513 | return react_1.default.createElement(Abstract_1.default, Object.assign({}, this.props));
|
6514 | }
|
6515 | }
|
6516 | Radio.defaultProps = {
|
6517 | prefixCls: 'w-radio',
|
6518 | type: 'radio',
|
6519 | disabled: false,
|
6520 | checked: false,
|
6521 | value: '',
|
6522 | };
|
6523 | exports.default = Radio;
|
6524 |
|
6525 |
|
6526 | }),
|
6527 |
|
6528 | (function(module, exports, __webpack_require__) {
|
6529 |
|
6530 |
|
6531 |
|
6532 | }),
|
6533 |
|
6534 | (function(module, exports, __webpack_require__) {
|
6535 |
|
6536 | "use strict";
|
6537 |
|
6538 | Object.defineProperty(exports, "__esModule", { value: true });
|
6539 | const tslib_1 = __webpack_require__(1);
|
6540 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6541 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6542 | __webpack_require__(138);
|
6543 | class RadioGroup extends react_1.default.Component {
|
6544 | render() {
|
6545 | const { prefixCls, className, name, value, onChange, ...other } = this.props;
|
6546 | return (react_1.default.createElement("div", Object.assign({}, other, { className: classnames_1.default(prefixCls, className) }), react_1.default.Children.map(this.props.children, (element) => {
|
6547 | return react_1.default.cloneElement(element, Object.assign({}, element.props, {
|
6548 | checked: element.props.value === value,
|
6549 | name,
|
6550 | onChange,
|
6551 | }));
|
6552 | })));
|
6553 | }
|
6554 | }
|
6555 | RadioGroup.defaultProps = {
|
6556 | prefixCls: 'w-radio-group',
|
6557 | };
|
6558 | exports.default = RadioGroup;
|
6559 |
|
6560 |
|
6561 | }),
|
6562 |
|
6563 | (function(module, exports, __webpack_require__) {
|
6564 |
|
6565 |
|
6566 |
|
6567 | }),
|
6568 |
|
6569 | (function(module, exports, __webpack_require__) {
|
6570 |
|
6571 | "use strict";
|
6572 |
|
6573 | Object.defineProperty(exports, "__esModule", { value: true });
|
6574 | const tslib_1 = __webpack_require__(1);
|
6575 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6576 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6577 | __webpack_require__(140);
|
6578 | class Rate extends react_1.default.Component {
|
6579 | constructor(props) {
|
6580 | super(props);
|
6581 | this.state = {
|
6582 | value: props.value,
|
6583 | hoverCount: -1,
|
6584 | };
|
6585 | }
|
6586 | onClick(e, key) {
|
6587 | const { readOnly, onChange } = this.props;
|
6588 | if (readOnly)
|
6589 | return;
|
6590 | this.setState({ value: key + 1 }, () => {
|
6591 | onChange && onChange(e, key);
|
6592 | });
|
6593 | }
|
6594 | onMouseLeave() {
|
6595 | this.setState({ hoverCount: -1 });
|
6596 | }
|
6597 | onMouseMove(e, key) {
|
6598 | const { onHoverChange } = this.props;
|
6599 | const { hoverCount } = this.state;
|
6600 | if (hoverCount !== key) {
|
6601 | this.setState({ hoverCount: key }, () => {
|
6602 | onHoverChange && onHoverChange(e, key);
|
6603 | });
|
6604 | }
|
6605 | }
|
6606 | render() {
|
6607 | const { prefixCls, count, value, className, character, readOnly, disabled, onChange, onHoverChange, color, ...other } = this.props;
|
6608 | const cls = classnames_1.default(prefixCls, className, { disabled });
|
6609 | return (react_1.default.createElement("div", Object.assign({}, other, { className: cls, onMouseLeave: this.onMouseLeave.bind(this) }), Array(count).fill(null).map((_, idx) => {
|
6610 | const props = {
|
6611 | key: idx,
|
6612 | className: classnames_1.default({
|
6613 | 'star-on': idx < this.state.value && this.state.hoverCount === -1,
|
6614 | 'hover-on': idx <= this.state.hoverCount,
|
6615 | 'half-on': parseInt(this.state.value.toString(), 10) === idx && Math.ceil(this.state.value) - 1 === idx,
|
6616 | }),
|
6617 | };
|
6618 | if (!readOnly) {
|
6619 | props.onClick = e => this.onClick(e, idx);
|
6620 | props.onMouseMove = e => this.onMouseMove(e, idx);
|
6621 | }
|
6622 | if (color && (idx <= this.state.hoverCount || (idx < this.state.value && this.state.hoverCount === -1))) {
|
6623 | props.style = { ...props.style, color };
|
6624 | }
|
6625 | return (react_1.default.createElement("span", Object.assign({}, props),
|
6626 | react_1.default.createElement("span", { className: classnames_1.default(`${prefixCls}-hight`) }, character),
|
6627 | react_1.default.createElement("span", { className: `${prefixCls}-bg` }, character)));
|
6628 | })));
|
6629 | }
|
6630 | }
|
6631 | Rate.defaultProps = {
|
6632 | prefixCls: 'w-rate',
|
6633 | value: 0,
|
6634 | count: 5,
|
6635 | character: '★',
|
6636 | readOnly: false,
|
6637 | };
|
6638 | exports.default = Rate;
|
6639 |
|
6640 |
|
6641 | }),
|
6642 |
|
6643 | (function(module, exports, __webpack_require__) {
|
6644 |
|
6645 |
|
6646 |
|
6647 | }),
|
6648 |
|
6649 | (function(module, exports, __webpack_require__) {
|
6650 |
|
6651 |
|
6652 |
|
6653 | }),
|
6654 |
|
6655 | (function(module, exports, __webpack_require__) {
|
6656 |
|
6657 | "use strict";
|
6658 |
|
6659 | Object.defineProperty(exports, "__esModule", { value: true });
|
6660 | const tslib_1 = __webpack_require__(1);
|
6661 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6662 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6663 | const react_dom_1 = __webpack_require__(4);
|
6664 | const Step_1 = tslib_1.__importDefault(__webpack_require__(143));
|
6665 | class Steps extends react_1.default.Component {
|
6666 | constructor(props) {
|
6667 | super(props);
|
6668 | this.state = {
|
6669 | lastStepOffsetWidth: 0,
|
6670 | };
|
6671 | }
|
6672 | componentDidMount() {
|
6673 | this.calcStepOffsetWidth();
|
6674 | }
|
6675 | componentDidUpdate() {
|
6676 | this.calcStepOffsetWidth();
|
6677 | }
|
6678 |
|
6679 | calcStepOffsetWidth() {
|
6680 | const domNode = react_dom_1.findDOMNode(this);
|
6681 | if (domNode && domNode.lastChild) {
|
6682 | const lastStepOffsetWidth = (domNode.lastChild.offsetWidth || 0) + 1;
|
6683 | if (this.state.lastStepOffsetWidth === lastStepOffsetWidth ||
|
6684 | Math.abs(this.state.lastStepOffsetWidth - lastStepOffsetWidth) <= 3) {
|
6685 | return;
|
6686 | }
|
6687 | this.setState({ lastStepOffsetWidth });
|
6688 | }
|
6689 | }
|
6690 | render() {
|
6691 | const { prefixCls, style = {}, className, children, current, status, progressDot, direction, ...resetProps } = this.props;
|
6692 | const { lastStepOffsetWidth } = this.state;
|
6693 | const filteredChildren = react_1.default.Children.toArray(children).filter(c => !!c);
|
6694 | const lastIndex = filteredChildren.length - 1;
|
6695 | const classString = classnames_1.default(prefixCls, `${prefixCls}-${direction}`, {
|
6696 | [`${prefixCls}-dot`]: !!progressDot,
|
6697 | });
|
6698 | return (react_1.default.createElement("div", Object.assign({ className: classString, style: style }, resetProps), react_1.default.Children.map(children, (child, index) => {
|
6699 | const childProps = {
|
6700 | stepNumber: `${index + 1}`,
|
6701 | prefixCls,
|
6702 | progressDot,
|
6703 | ...child.props,
|
6704 | };
|
6705 | if (index !== lastIndex && direction !== 'vertical') {
|
6706 | childProps.itemWidth = `${100 / lastIndex}%`;
|
6707 | childProps.adjustMarginRight = -Math.round((lastStepOffsetWidth / lastIndex) + 1);
|
6708 | }
|
6709 | if (progressDot && direction !== 'vertical') {
|
6710 | childProps.itemWidth = `${100 / filteredChildren.length}%`;
|
6711 | childProps.adjustMarginRight = 0;
|
6712 | }
|
6713 |
|
6714 | if (status === 'error' && index === current - 1) {
|
6715 | childProps.className = `${prefixCls}-next-error`;
|
6716 | }
|
6717 | if (!child.props.status) {
|
6718 | if (index === current) {
|
6719 | childProps.status = status;
|
6720 | }
|
6721 | else if (index < current) {
|
6722 | childProps.status = 'finish';
|
6723 | }
|
6724 | else {
|
6725 | childProps.status = 'wait';
|
6726 | }
|
6727 | }
|
6728 | return react_1.default.cloneElement(child, childProps);
|
6729 | })));
|
6730 | }
|
6731 | }
|
6732 | Steps.Step = Step_1.default;
|
6733 | Steps.defaultProps = {
|
6734 | prefixCls: 'w-steps',
|
6735 | status: 'process',
|
6736 | progressDot: false,
|
6737 | direction: 'horizontal',
|
6738 | current: 0,
|
6739 | };
|
6740 | exports.default = Steps;
|
6741 |
|
6742 |
|
6743 | }),
|
6744 |
|
6745 | (function(module, exports, __webpack_require__) {
|
6746 |
|
6747 | "use strict";
|
6748 |
|
6749 | Object.defineProperty(exports, "__esModule", { value: true });
|
6750 | const tslib_1 = __webpack_require__(1);
|
6751 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6752 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6753 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
6754 | __webpack_require__(144);
|
6755 | class Step extends react_1.default.Component {
|
6756 | render() {
|
6757 | const { prefixCls, className, style, status, itemWidth, icon, adjustMarginRight, stepNumber, title, description, progressDot, ...restProps } = this.props;
|
6758 | const classString = classnames_1.default(`${prefixCls}-item`, `${prefixCls}-item-${status}`, className, {
|
6759 | [`${prefixCls}-custom`]: icon,
|
6760 | });
|
6761 | const stepItemStyle = { ...style };
|
6762 | const stepItemDotStyle = {};
|
6763 | if (itemWidth) {
|
6764 | stepItemStyle.width = itemWidth;
|
6765 | }
|
6766 | if (adjustMarginRight) {
|
6767 | stepItemStyle.marginRight = adjustMarginRight;
|
6768 | if (progressDot) {
|
6769 | stepItemDotStyle.paddingRight = Math.abs(adjustMarginRight);
|
6770 | }
|
6771 | }
|
6772 | let iconNode = null;
|
6773 | if (progressDot) {
|
6774 | iconNode = react_1.default.createElement("span", { className: `${prefixCls}-dot` });
|
6775 | }
|
6776 | else if (icon && typeof icon !== 'string') {
|
6777 | iconNode = react_1.default.createElement("span", { className: `${prefixCls}-icon` }, icon);
|
6778 | }
|
6779 | else if ((icon && typeof icon === 'string') || status === 'finish' || status === 'error') {
|
6780 | iconNode = (react_1.default.createElement(icon_1.default, { type: classnames_1.default({
|
6781 | [`${icon}`]: icon && typeof icon === 'string',
|
6782 | check: !icon && status === 'finish',
|
6783 | close: !icon && status === 'error',
|
6784 | }) }));
|
6785 | }
|
6786 | else {
|
6787 | iconNode = react_1.default.createElement("span", { className: `${prefixCls}-icon` }, stepNumber);
|
6788 | }
|
6789 | return (react_1.default.createElement("div", Object.assign({}, restProps, { className: classString, style: stepItemStyle }),
|
6790 | react_1.default.createElement("div", { className: `${prefixCls}-item-tail`, style: stepItemDotStyle },
|
6791 | react_1.default.createElement("i", null)),
|
6792 | react_1.default.createElement("div", { className: `${prefixCls}-item-head` },
|
6793 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-item-inner`, {
|
6794 | 'is-icon': icon,
|
6795 | }) }, iconNode)),
|
6796 | react_1.default.createElement("div", { className: `${prefixCls}-item-main` },
|
6797 | react_1.default.createElement("div", { className: `${prefixCls}-item-title` }, title),
|
6798 | description && react_1.default.createElement("div", { className: `${prefixCls}-item-description` }, description))));
|
6799 | }
|
6800 | }
|
6801 | exports.default = Step;
|
6802 |
|
6803 |
|
6804 | }),
|
6805 |
|
6806 | (function(module, exports, __webpack_require__) {
|
6807 |
|
6808 |
|
6809 |
|
6810 | }),
|
6811 |
|
6812 | (function(module, exports, __webpack_require__) {
|
6813 |
|
6814 | "use strict";
|
6815 |
|
6816 | Object.defineProperty(exports, "__esModule", { value: true });
|
6817 | const tslib_1 = __webpack_require__(1);
|
6818 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6819 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6820 | __webpack_require__(146);
|
6821 | class Split extends react_1.default.Component {
|
6822 | constructor(props) {
|
6823 | super(props);
|
6824 | this.state = {
|
6825 | dragging: false,
|
6826 | };
|
6827 | this.onDragEnd = this.onDragEnd.bind(this);
|
6828 | this.onDragging = this.onDragging.bind(this);
|
6829 | }
|
6830 | componentWillUnmount() {
|
6831 | this.removeEvent();
|
6832 | }
|
6833 | removeEvent() {
|
6834 | window.removeEventListener('mousemove', this.onDragging, false);
|
6835 | window.removeEventListener('mouseup', this.onDragEnd, false);
|
6836 | }
|
6837 | onMouseDown(paneNumber, env) {
|
6838 | if (!env.target || !this.warpper) {
|
6839 | return;
|
6840 | }
|
6841 | this.paneNumber = paneNumber;
|
6842 | this.startX = env.clientX;
|
6843 | this.startY = env.clientY;
|
6844 | this.move = true;
|
6845 | this.target = env.target;
|
6846 | const prevTarget = this.target.previousElementSibling;
|
6847 | const nextTarget = this.target.nextElementSibling;
|
6848 | this.boxWidth = this.warpper.clientWidth;
|
6849 | this.boxHeight = this.warpper.clientHeight;
|
6850 | if (prevTarget) {
|
6851 | this.preWidth = prevTarget.clientWidth;
|
6852 | this.preHeight = prevTarget.clientHeight;
|
6853 | }
|
6854 | if (nextTarget) {
|
6855 | this.nextWidth = nextTarget.clientWidth;
|
6856 | this.nextHeight = nextTarget.clientHeight;
|
6857 | }
|
6858 | window.addEventListener('mousemove', this.onDragging);
|
6859 | window.addEventListener('mouseup', this.onDragEnd, false);
|
6860 | this.setState({ dragging: true });
|
6861 | }
|
6862 | onDragging(env) {
|
6863 | if (!this.move) {
|
6864 | return;
|
6865 | }
|
6866 | if (!this.state.dragging) {
|
6867 | this.setState({ dragging: true });
|
6868 | }
|
6869 | const { mode, onDragging } = this.props;
|
6870 | const nextTarget = this.target.nextElementSibling;
|
6871 | const prevTarget = this.target.previousElementSibling;
|
6872 | const x = env.clientX - this.startX;
|
6873 | const y = env.clientY - this.startY;
|
6874 | this.preSize = 0;
|
6875 | this.nextSize = 0;
|
6876 | if (mode === 'horizontal') {
|
6877 | this.preSize = this.preWidth + x > -1 ? this.preWidth + x : 0;
|
6878 | this.nextSize = this.nextWidth - x > -1 ? this.nextWidth - x : 0;
|
6879 | if (this.preSize === 0 || this.nextSize === 0) {
|
6880 | return;
|
6881 | }
|
6882 | this.preSize = (this.preSize / this.boxWidth >= 1 ? 1 : this.preSize / this.boxWidth) * 100;
|
6883 | this.nextSize = (this.nextSize / this.boxWidth >= 1 ? 1 : this.nextSize / this.boxWidth) * 100;
|
6884 | if (prevTarget && nextTarget) {
|
6885 | prevTarget.style.width = `${this.preSize}%`;
|
6886 | nextTarget.style.width = `${this.nextSize}%`;
|
6887 | }
|
6888 | }
|
6889 | if (mode === 'vertical' && this.preHeight + y > -1 && this.nextHeight - y > -1) {
|
6890 | this.preSize = this.preHeight + y > -1 ? this.preHeight + y : 0;
|
6891 | this.nextSize = this.nextHeight - y > -1 ? this.nextHeight - y : 0;
|
6892 | this.preSize = (this.preSize / this.boxHeight >= 1 ? 1 : this.preSize / this.boxHeight) * 100;
|
6893 | this.nextSize = (this.nextSize / this.boxHeight >= 1 ? 1 : this.nextSize / this.boxHeight) * 100;
|
6894 | if (this.preSize === 0 || this.nextSize === 0) {
|
6895 | return;
|
6896 | }
|
6897 | if (prevTarget && nextTarget) {
|
6898 | prevTarget.style.height = `${this.preSize}%`;
|
6899 | nextTarget.style.height = `${this.nextSize}%`;
|
6900 | }
|
6901 | }
|
6902 | onDragging && onDragging(this.preSize, this.nextSize, this.paneNumber);
|
6903 | }
|
6904 | onDragEnd() {
|
6905 | const { onDragEnd } = this.props;
|
6906 | this.move = false;
|
6907 | onDragEnd && onDragEnd(this.preSize, this.nextSize, this.paneNumber);
|
6908 | this.removeEvent();
|
6909 | this.setState({ dragging: false });
|
6910 | }
|
6911 | render() {
|
6912 | const { prefixCls, className, children, mode, visiable, lineBar, disable, onDragEnd, onDragging, ...other } = this.props;
|
6913 | const { dragging } = this.state;
|
6914 | const cls = classnames_1.default(prefixCls, className, `${prefixCls}-${mode}`, { dragging });
|
6915 | const child = react_1.default.Children.toArray(children);
|
6916 | return (react_1.default.createElement("div", Object.assign({ className: cls }, other, { ref: node => this.warpper = node }), react_1.default.Children.map(child, (element, idx) => {
|
6917 | const props = Object.assign({}, element.props, {
|
6918 | className: classnames_1.default(`${prefixCls}-pane`, element.props.className),
|
6919 | style: { ...element.props.style },
|
6920 | });
|
6921 | const visiableBar = (visiable === true || (visiable && visiable.includes((idx + 1)))) || false;
|
6922 | const barProps = {
|
6923 | className: classnames_1.default(`${prefixCls}-bar`, {
|
6924 | [`${prefixCls}-line-bar`]: lineBar,
|
6925 | }),
|
6926 | onMouseDown: this.onMouseDown.bind(this, idx + 1),
|
6927 | };
|
6928 | if (disable === true || (disable && disable.includes((idx + 1)))) {
|
6929 | barProps.className = classnames_1.default(barProps.className, { disable });
|
6930 | delete barProps.onMouseDown;
|
6931 | }
|
6932 | return (react_1.default.createElement(react_1.default.Fragment, null,
|
6933 | idx !== 0 && visiableBar && react_1.default.createElement('div', { ...barProps }),
|
6934 | react_1.default.cloneElement(element, { ...props })));
|
6935 | })));
|
6936 | }
|
6937 | }
|
6938 | Split.defaultProps = {
|
6939 | prefixCls: 'w-split',
|
6940 | visiable: true,
|
6941 | mode: 'horizontal',
|
6942 | };
|
6943 | exports.default = Split;
|
6944 |
|
6945 |
|
6946 | }),
|
6947 |
|
6948 | (function(module, exports, __webpack_require__) {
|
6949 |
|
6950 |
|
6951 |
|
6952 | }),
|
6953 |
|
6954 | (function(module, exports, __webpack_require__) {
|
6955 |
|
6956 | "use strict";
|
6957 |
|
6958 | Object.defineProperty(exports, "__esModule", { value: true });
|
6959 | const tslib_1 = __webpack_require__(1);
|
6960 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6961 | const Abstract_1 = tslib_1.__importDefault(__webpack_require__(14));
|
6962 | __webpack_require__(148);
|
6963 | class Switch extends react_1.default.Component {
|
6964 | render() {
|
6965 | const props = this.props;
|
6966 | return react_1.default.createElement(Abstract_1.default, Object.assign({}, { ...props, type: 'checkbox' }));
|
6967 | }
|
6968 | }
|
6969 | Switch.defaultProps = {
|
6970 | prefixCls: 'w-switch',
|
6971 | type: 'switch',
|
6972 | };
|
6973 | exports.default = Switch;
|
6974 |
|
6975 |
|
6976 | }),
|
6977 |
|
6978 | (function(module, exports, __webpack_require__) {
|
6979 |
|
6980 |
|
6981 |
|
6982 | }),
|
6983 |
|
6984 | (function(module, exports, __webpack_require__) {
|
6985 |
|
6986 | "use strict";
|
6987 |
|
6988 | Object.defineProperty(exports, "__esModule", { value: true });
|
6989 | const tslib_1 = __webpack_require__(1);
|
6990 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
6991 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
6992 | __webpack_require__(150);
|
6993 | class Slider extends react_1.default.Component {
|
6994 | constructor(props) {
|
6995 | super(props);
|
6996 | this.bar = react_1.default.createRef();
|
6997 | this.slider = react_1.default.createRef();
|
6998 | this.onDragging = (env) => {
|
6999 | if (!this.move) {
|
7000 | return;
|
7001 | }
|
7002 | const { vertical } = this.props;
|
7003 | const val = this.state.value;
|
7004 | const value = this.getWidthToValue(env[vertical ? 'clientY' : 'clientX'] - this.startX + this.barWidth);
|
7005 | if (value !== this.value) {
|
7006 | val[this.indexBar] = value;
|
7007 | const barStyl = this.getStyle(val);
|
7008 | if (this.bar.current) {
|
7009 | this.bar.current.style[vertical ? 'top' : 'left'] = barStyl.left;
|
7010 | this.bar.current.style[vertical ? 'bottom' : 'right'] = barStyl.right;
|
7011 | }
|
7012 | this.onChange(val);
|
7013 | this.value = value;
|
7014 | }
|
7015 | };
|
7016 | this.onDragEnd = () => {
|
7017 | this.move = undefined;
|
7018 | this.removeEvent();
|
7019 | };
|
7020 | this.state = {
|
7021 | value: (Array.isArray(this.props.value) ? props.value : [props.value]),
|
7022 | };
|
7023 | }
|
7024 | componentDidMount() {
|
7025 | const { value } = this.props;
|
7026 | this.setState({ value: (Array.isArray(value) ? value : [value]) });
|
7027 | }
|
7028 | componentWillReceiveProps(nextPros) {
|
7029 | if (nextPros.value !== this.props.value) {
|
7030 | this.setState({
|
7031 | value: (Array.isArray(nextPros.value) ? nextPros.value : [nextPros.value]),
|
7032 | });
|
7033 | }
|
7034 | }
|
7035 | removeEvent() {
|
7036 | window.removeEventListener('mousemove', this.onDragging, false);
|
7037 | window.removeEventListener('mouseup', this.onDragEnd, false);
|
7038 | }
|
7039 | onHandleBtnDown(idx, env) {
|
7040 | const oEvent = env || event;
|
7041 | const { disabled, vertical } = this.props;
|
7042 | if (disabled) {
|
7043 | return;
|
7044 | }
|
7045 | this.indexBar = idx;
|
7046 | this.move = true;
|
7047 | this.startX = oEvent[vertical ? 'clientY' : 'clientX'];
|
7048 | if (this.bar.current) {
|
7049 | this.barWidth = this.bar.current[vertical ? 'clientHeight' : 'clientWidth'];
|
7050 | this.barOffsetLeft = this.bar.current[vertical ? 'offsetTop' : 'offsetLeft'];
|
7051 | }
|
7052 | const val = this.state.value;
|
7053 | if (Array.isArray(this.props.value)) {
|
7054 | this.barWidth = (this.indexBar === 1 && val[1] > val[0]) || (this.indexBar !== 1 && val[0] > val[1])
|
7055 | ? this.barWidth + this.barOffsetLeft
|
7056 | : this.barOffsetLeft;
|
7057 | }
|
7058 | window.addEventListener('mousemove', this.onDragging, true);
|
7059 | window.addEventListener('mouseup', this.onDragEnd, true);
|
7060 | }
|
7061 | getWidthToValue(width) {
|
7062 | const { step, max, min, vertical } = this.props;
|
7063 | const equal = (max - min) / step;
|
7064 | let percent = 0;
|
7065 | if (this.slider.current) {
|
7066 | percent = width / this.slider.current[vertical ? 'clientHeight' : 'clientWidth'] * 100;
|
7067 | }
|
7068 | if (percent <= 0) {
|
7069 | percent = 0;
|
7070 | }
|
7071 | if (percent >= 100) {
|
7072 | percent = 100;
|
7073 | }
|
7074 | const num = equal * (percent / 100) + 0.5;
|
7075 | const numFloor = Math.floor(num);
|
7076 | const value = numFloor * step + min;
|
7077 | return value;
|
7078 | }
|
7079 | getValueToPercent(value) {
|
7080 | const { min, max } = this.props;
|
7081 | return ((value - min) * 100) / (max - min);
|
7082 | }
|
7083 | getLabelValue(value) {
|
7084 | const { marks, renderMarks } = this.props;
|
7085 | if (marks && marks !== true && marks[value] && marks[value].label) {
|
7086 | return marks[value].label;
|
7087 | }
|
7088 | else if (marks && marks !== true && marks[value] && typeof marks[value] === 'string') {
|
7089 | return marks[value];
|
7090 | }
|
7091 | else if (renderMarks && typeof renderMarks === 'function' && renderMarks(value)) {
|
7092 | return renderMarks(value);
|
7093 | }
|
7094 | return value;
|
7095 | }
|
7096 | onChange(value) {
|
7097 | value = this.getRangeValue(value);
|
7098 | this.setState({ value }, this.handleChange.bind(this));
|
7099 | }
|
7100 | handleChange() {
|
7101 | const { onChange } = this.props;
|
7102 | const { value } = this.state;
|
7103 | onChange && onChange(value.length === 1 ? value[0] : value);
|
7104 | }
|
7105 | onClickMark(evn) {
|
7106 | const { vertical } = this.props;
|
7107 | const oEvent = evn || event;
|
7108 | if (this.move !== undefined) {
|
7109 | return;
|
7110 | }
|
7111 | const markOffset = this.slider.current.getBoundingClientRect();
|
7112 | const value = this.getWidthToValue(oEvent[vertical ? 'clientY' : 'clientX'] - markOffset[vertical ? 'y' : 'x']);
|
7113 | this.onChange(this.getRangeValue(value));
|
7114 | }
|
7115 | getRangeValue(val) {
|
7116 | if (!Array.isArray(this.props.value)) {
|
7117 | return Array.isArray(val) ? val : [val];
|
7118 | }
|
7119 | const { value } = this.state;
|
7120 | const val1 = value[0];
|
7121 | const val2 = value[1];
|
7122 | if ((val1 < val2 && val1 > val) || (val1 > val2 && val1 < val)) {
|
7123 | value[0] = val;
|
7124 | }
|
7125 | if ((val1 < val2 && val2 < val) || (val1 > val2 && val2 > val)) {
|
7126 | value[1] = val;
|
7127 | }
|
7128 | if (val1 > val && val2 < val) {
|
7129 | const half = val2 + (val1 - val2) / 2;
|
7130 | if (half >= val) {
|
7131 | value[1] = val;
|
7132 | }
|
7133 | if (half < val) {
|
7134 | value[0] = val;
|
7135 | }
|
7136 | }
|
7137 | if (val2 > val && val1 < val) {
|
7138 | const half = val1 + (val2 - val1) / 2;
|
7139 | if (half >= val) {
|
7140 | value[0] = val;
|
7141 | }
|
7142 | if (half < val) {
|
7143 | value[1] = val;
|
7144 | }
|
7145 | }
|
7146 | return value;
|
7147 | }
|
7148 | stepArray() {
|
7149 | const { min, max, step } = this.props;
|
7150 | const equal = (max - min) / step;
|
7151 | const stepWidth = (100 * step) / (max - min);
|
7152 | const result = [0];
|
7153 | for (let i = 1; i < equal; i += 1) {
|
7154 | result.push(i * stepWidth);
|
7155 | }
|
7156 | result.push(100);
|
7157 | return result;
|
7158 | }
|
7159 | getStyle(value) {
|
7160 | value = value || this.state.value;
|
7161 | const barStyl = { left: '0%', right: '100%' };
|
7162 | if (!Array.isArray(this.props.value)) {
|
7163 | barStyl.right = `${100 - this.getValueToPercent(value[0])}%`;
|
7164 | }
|
7165 | else {
|
7166 | const leftValue = value[0] > value[1] ? value[1] : value[0];
|
7167 | const rightValue = value[0] > value[1] ? value[0] : value[1];
|
7168 | barStyl.left = `${this.getValueToPercent(leftValue)}%`;
|
7169 | barStyl.right = `${100 - this.getValueToPercent(rightValue)}%`;
|
7170 | }
|
7171 | return barStyl;
|
7172 | }
|
7173 | render() {
|
7174 | const { prefixCls, className, value, disabled, max, min, dots, step, marks, renderMarks, tooltip, vertical, progress, onChange, ...other } = this.props;
|
7175 | const barStyl = this.getStyle();
|
7176 | other.onClick = this.onClickMark.bind(this);
|
7177 | if (disabled) {
|
7178 | delete other.onClick;
|
7179 | }
|
7180 | return (react_1.default.createElement("div", Object.assign({ ref: this.slider, className: classnames_1.default(prefixCls, className, {
|
7181 | disabled,
|
7182 | [`${prefixCls}-with-marks`]: marks,
|
7183 | [`${prefixCls}-vertical`]: vertical,
|
7184 | }) }, other),
|
7185 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-bar`), style: {
|
7186 | [vertical ? 'top' : 'left']: barStyl.left,
|
7187 | [vertical ? 'bottom' : 'right']: barStyl.right,
|
7188 | ...(progress !== true ? ({ backgroundColor: progress || 'initial' }) : {}),
|
7189 | }, ref: this.bar }),
|
7190 | this.state.value.map((item, idx) => {
|
7191 | const lleftPostion = this.getValueToPercent(item);
|
7192 | return (react_1.default.createElement("div", { key: idx, className: classnames_1.default(`${prefixCls}-handle`), onMouseDown: this.onHandleBtnDown.bind(this, idx), style: { [vertical ? 'top' : 'left']: `${lleftPostion}%` } }, (tooltip || tooltip === false) && react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-tooltip`, { open: tooltip }) }, this.getLabelValue(item))));
|
7193 | }),
|
7194 | dots && (react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-dots`) }, this.stepArray().map((val, idx) => {
|
7195 | const stepValue = idx * step + min;
|
7196 | return (react_1.default.createElement("div", { key: idx, style: {
|
7197 | [vertical ? 'top' : 'left']: `${val}%`,
|
7198 | }, className: classnames_1.default(`${prefixCls}-mark`, {
|
7199 | 'no-marks': marks && marks !== true && !marks[stepValue],
|
7200 | }) },
|
7201 | marks === true && react_1.default.createElement("div", null,
|
7202 | " ",
|
7203 | this.getLabelValue(stepValue),
|
7204 | " "),
|
7205 | marks !== true && marks && marks[stepValue] && (react_1.default.createElement("div", { style: marks[stepValue].style }, this.getLabelValue(stepValue)))));
|
7206 | })))));
|
7207 | }
|
7208 | }
|
7209 | Slider.defaultProps = {
|
7210 | prefixCls: 'w-slider',
|
7211 | value: 0,
|
7212 | min: 0,
|
7213 | max: 100,
|
7214 | dots: false,
|
7215 | step: 1,
|
7216 | disabled: false,
|
7217 | progress: true,
|
7218 | tooltip: false,
|
7219 | };
|
7220 | exports.default = Slider;
|
7221 |
|
7222 |
|
7223 | }),
|
7224 |
|
7225 | (function(module, exports, __webpack_require__) {
|
7226 |
|
7227 |
|
7228 |
|
7229 | }),
|
7230 |
|
7231 | (function(module, exports, __webpack_require__) {
|
7232 |
|
7233 | "use strict";
|
7234 |
|
7235 | Object.defineProperty(exports, "__esModule", { value: true });
|
7236 | const tslib_1 = __webpack_require__(1);
|
7237 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7238 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7239 | const Option_1 = tslib_1.__importDefault(__webpack_require__(152));
|
7240 | const Group_1 = tslib_1.__importDefault(__webpack_require__(153));
|
7241 | __webpack_require__(154);
|
7242 | class Select extends react_1.default.Component {
|
7243 | render() {
|
7244 | const { prefixCls, className, size, ...resetProps } = this.props;
|
7245 | const cls = classnames_1.default(prefixCls, className, { [`${prefixCls}-${size}`]: size });
|
7246 | return (react_1.default.createElement("select", Object.assign({}, resetProps, { className: cls }), react_1.default.Children.map(this.props.children, (element) => {
|
7247 | return react_1.default.cloneElement(element, Object.assign({}, element.props, {}));
|
7248 | })));
|
7249 | }
|
7250 | }
|
7251 | Select.defaultProps = {
|
7252 | prefixCls: 'w-select',
|
7253 | size: 'default',
|
7254 | };
|
7255 | Select.Option = Option_1.default;
|
7256 | Select.Group = Group_1.default;
|
7257 | exports.default = Select;
|
7258 |
|
7259 |
|
7260 | }),
|
7261 |
|
7262 | (function(module, exports, __webpack_require__) {
|
7263 |
|
7264 | "use strict";
|
7265 |
|
7266 | Object.defineProperty(exports, "__esModule", { value: true });
|
7267 | const tslib_1 = __webpack_require__(1);
|
7268 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7269 | const Option = ({ children, ...other }) => react_1.default.createElement("option", Object.assign({}, other), children);
|
7270 | exports.default = Option;
|
7271 |
|
7272 |
|
7273 | }),
|
7274 |
|
7275 | (function(module, exports, __webpack_require__) {
|
7276 |
|
7277 | "use strict";
|
7278 |
|
7279 | Object.defineProperty(exports, "__esModule", { value: true });
|
7280 | const tslib_1 = __webpack_require__(1);
|
7281 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7282 | const Group = ({ children, ...other }) => react_1.default.createElement("optgroup", Object.assign({}, other), children);
|
7283 | exports.default = Group;
|
7284 |
|
7285 |
|
7286 | }),
|
7287 |
|
7288 | (function(module, exports, __webpack_require__) {
|
7289 |
|
7290 |
|
7291 |
|
7292 | }),
|
7293 |
|
7294 | (function(module, exports, __webpack_require__) {
|
7295 |
|
7296 | "use strict";
|
7297 |
|
7298 | Object.defineProperty(exports, "__esModule", { value: true });
|
7299 | const tslib_1 = __webpack_require__(1);
|
7300 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7301 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7302 | __webpack_require__(156);
|
7303 | class Textarea extends react_1.default.PureComponent {
|
7304 | render() {
|
7305 | const { prefixCls, className, ...restProps } = this.props;
|
7306 | const cls = classnames_1.default(prefixCls, className);
|
7307 | return (react_1.default.createElement("textarea", Object.assign({ className: cls }, restProps), this.props.children));
|
7308 | }
|
7309 | }
|
7310 | Textarea.defaultProps = {
|
7311 | prefixCls: 'w-textarea',
|
7312 | };
|
7313 | exports.default = Textarea;
|
7314 |
|
7315 |
|
7316 | }),
|
7317 |
|
7318 | (function(module, exports, __webpack_require__) {
|
7319 |
|
7320 |
|
7321 |
|
7322 | }),
|
7323 |
|
7324 | (function(module, exports, __webpack_require__) {
|
7325 |
|
7326 | "use strict";
|
7327 |
|
7328 | Object.defineProperty(exports, "__esModule", { value: true });
|
7329 | const tslib_1 = __webpack_require__(1);
|
7330 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7331 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7332 | const overlay_trigger_1 = tslib_1.__importDefault(__webpack_require__(9));
|
7333 | __webpack_require__(158);
|
7334 | class Tooltip extends react_1.default.Component {
|
7335 | render() {
|
7336 | const { prefixCls, className, placement, isOpen, trigger, delay, usePortal, visibleArrow, onVisibleChange, ...other } = this.props;
|
7337 | const cls = classnames_1.default(prefixCls, className, { 'no-arrow': !visibleArrow });
|
7338 | return (react_1.default.createElement(overlay_trigger_1.default, Object.assign({ usePortal: usePortal, isOpen: isOpen, trigger: trigger, delay: delay, onVisibleChange: onVisibleChange, placement: placement }, other, { overlay: react_1.default.createElement("div", { className: cls },
|
7339 | visibleArrow && react_1.default.createElement("div", { className: `${prefixCls}-arrow` }),
|
7340 | react_1.default.createElement("div", { className: `${prefixCls}-inner` }, this.props.content)) }), typeof this.props.children === 'object' ? this.props.children : react_1.default.createElement("span", null, this.props.children)));
|
7341 | }
|
7342 | }
|
7343 | Tooltip.defaultProps = {
|
7344 | prefixCls: 'w-tooltip',
|
7345 | placement: 'top',
|
7346 | usePortal: true,
|
7347 | isOpen: false,
|
7348 | visibleArrow: true,
|
7349 | };
|
7350 | exports.default = Tooltip;
|
7351 |
|
7352 |
|
7353 | }),
|
7354 |
|
7355 | (function(module, exports, __webpack_require__) {
|
7356 |
|
7357 |
|
7358 |
|
7359 | }),
|
7360 |
|
7361 | (function(module, exports, __webpack_require__) {
|
7362 |
|
7363 | "use strict";
|
7364 |
|
7365 | Object.defineProperty(exports, "__esModule", { value: true });
|
7366 | const tslib_1 = __webpack_require__(1);
|
7367 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7368 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7369 | __webpack_require__(160);
|
7370 | class Tag extends react_1.default.Component {
|
7371 | render() {
|
7372 | const { prefixCls, className, style, title, children, visible, color, disabled, bordered, closable, light, onClose, ...other } = this.props;
|
7373 | const cls = classnames_1.default(`${prefixCls}`, className, { [`${prefixCls}-light`]: light, disabled });
|
7374 | const styl = { ...style };
|
7375 | if (!light) {
|
7376 | styl.color = '#fff';
|
7377 | styl.backgroundColor = color;
|
7378 | }
|
7379 | else {
|
7380 | styl.color = color;
|
7381 | styl.borderColor = color;
|
7382 | if (bordered && light) {
|
7383 | styl.boxShadow = `inset 0 0 0 1px ${color}`;
|
7384 | }
|
7385 | }
|
7386 | if (!visible) {
|
7387 | return null;
|
7388 | }
|
7389 | return (react_1.default.createElement("span", Object.assign({ className: cls, style: styl }, other),
|
7390 | title || children,
|
7391 | closable && (react_1.default.createElement("svg", { onClick: onClose, className: `${prefixCls}-close`, width: "16", height: "16", viewBox: "0 0 16 16" },
|
7392 | react_1.default.createElement("path", { d: "M9.41 8l2.29-2.29c.19-.18.3-.43.3-.71a1.003 1.003 0 0 0-1.71-.71L8 6.59l-2.29-2.3a1.003 1.003 0 0 0-1.42 1.42L6.59 8 4.3 10.29c-.19.18-.3.43-.3.71a1.003 1.003 0 0 0 1.71.71L8 9.41l2.29 2.29c.18.19.43.3.71.3a1.003 1.003 0 0 0 .71-1.71L9.41 8z" })))));
|
7393 | }
|
7394 | }
|
7395 | Tag.defaultProps = {
|
7396 | prefixCls: 'w-tag',
|
7397 | disabled: false,
|
7398 | visible: true,
|
7399 | bordered: true,
|
7400 | color: '#6E6E6E',
|
7401 | light: false,
|
7402 | title: '',
|
7403 | };
|
7404 | exports.default = Tag;
|
7405 |
|
7406 |
|
7407 | }),
|
7408 |
|
7409 | (function(module, exports, __webpack_require__) {
|
7410 |
|
7411 |
|
7412 |
|
7413 | }),
|
7414 |
|
7415 | (function(module, exports, __webpack_require__) {
|
7416 |
|
7417 | "use strict";
|
7418 |
|
7419 | Object.defineProperty(exports, "__esModule", { value: true });
|
7420 | const tslib_1 = __webpack_require__(1);
|
7421 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7422 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7423 | const react_transition_group_1 = __webpack_require__(12);
|
7424 | const icon_1 = tslib_1.__importDefault(__webpack_require__(3));
|
7425 | __webpack_require__(162);
|
7426 | const noop = () => undefined;
|
7427 |
|
7428 |
|
7429 |
|
7430 |
|
7431 |
|
7432 | const isContained = (a, b) => {
|
7433 | if (!(a instanceof Array) || !(b instanceof Array))
|
7434 | return false;
|
7435 | if (a.length < b.length)
|
7436 | return false;
|
7437 | const aStr = a.toString();
|
7438 | for (let i = 0, len = b.length; i < len; i += 1) {
|
7439 | if (aStr.indexOf(b[i]) === -1)
|
7440 | return false;
|
7441 | }
|
7442 | return true;
|
7443 | };
|
7444 | const getChildKeys = (childs = [], result = []) => {
|
7445 | childs.forEach((item) => {
|
7446 | result.push(item.key);
|
7447 | if (item.children && item.children.length > 0) {
|
7448 | result = result.concat(getChildKeys(item.children));
|
7449 | }
|
7450 | });
|
7451 | return result;
|
7452 | };
|
7453 | const getParentKeys = (childs = {}, result = []) => {
|
7454 | if (childs.key) {
|
7455 | result.push(childs.key);
|
7456 | }
|
7457 | if (childs.parent) {
|
7458 | result = getParentKeys(childs.parent, result);
|
7459 | }
|
7460 | return result;
|
7461 | };
|
7462 | const getParentSelectKeys = (childs = {}, selectedKeys = [], result = []) => {
|
7463 | if (childs.key && childs.children && isContained(selectedKeys, getChildKeys(childs.children))) {
|
7464 | result.push(childs.key);
|
7465 | if (childs.parent && !childs.parent.parent) {
|
7466 | if (isContained(selectedKeys, getChildKeys(childs.children))) {
|
7467 | selectedKeys = selectedKeys.concat(result);
|
7468 | }
|
7469 | if (isContained(selectedKeys, getChildKeys(childs.parent.children))) {
|
7470 | result.push(childs.parent.key);
|
7471 | }
|
7472 | }
|
7473 | }
|
7474 | if (childs.parent) {
|
7475 | result = getParentSelectKeys(childs.parent, selectedKeys, result);
|
7476 | }
|
7477 | return result;
|
7478 | };
|
7479 | class Tree extends react_1.default.Component {
|
7480 | constructor(props) {
|
7481 | super(props);
|
7482 | this.onExit = (node) => {
|
7483 | node.style.height = `${node.scrollHeight}px`;
|
7484 | };
|
7485 | this.onExiting = (node) => {
|
7486 | node.style.height = '1px';
|
7487 | };
|
7488 | this.onEnter = (node, isAppearing) => {
|
7489 | node.style.height = '1px';
|
7490 | };
|
7491 | this.onEntering = (node, isAppearing) => {
|
7492 | node.style.height = `${node.scrollHeight}px`;
|
7493 | };
|
7494 | this.onEntered = (node, isAppearing) => {
|
7495 | node.style.height = 'initial';
|
7496 | };
|
7497 | this.state = {
|
7498 | openKeys: props.openKeys || [],
|
7499 | selectedKeys: props.selectedKeys || [],
|
7500 | halfCheckedKeys: props.selectedKeys || [],
|
7501 | };
|
7502 | }
|
7503 | componentDidMount() {
|
7504 | const { defaultExpandAll, selectedKeys, data } = this.props;
|
7505 | const openKeys = getChildKeys(data);
|
7506 | if (defaultExpandAll) {
|
7507 | this.setState({ openKeys });
|
7508 | }
|
7509 | }
|
7510 | UNSAFE_componentWillReceiveProps(nextProps) {
|
7511 | if (nextProps.openKeys !== this.props.openKeys) {
|
7512 | this.setState({ openKeys: nextProps.openKeys });
|
7513 | }
|
7514 | if (nextProps.selectedKeys !== this.props.selectedKeys) {
|
7515 | this.setState({ selectedKeys: nextProps.selectedKeys });
|
7516 | }
|
7517 | }
|
7518 | onItemSelected(item, evn) {
|
7519 | const { onSelected, multiple, checkStrictly } = this.props;
|
7520 | let selKeys = [...this.state.selectedKeys];
|
7521 | const findKey = selKeys.find(v => v === item.key);
|
7522 | let selected = false;
|
7523 | if (!findKey) {
|
7524 | selected = true;
|
7525 | selKeys.push(item.key);
|
7526 | }
|
7527 | else {
|
7528 | selKeys = selKeys.filter(v => v !== item.key);
|
7529 | }
|
7530 | if (checkStrictly) {
|
7531 | if (!findKey) {
|
7532 | selKeys = selKeys.concat(getChildKeys(item.children).filter(val => selKeys.indexOf(val) === -1));
|
7533 | selKeys = selKeys.concat(getParentSelectKeys(item, selKeys));
|
7534 | selKeys = Array.from(new Set(selKeys));
|
7535 | }
|
7536 | else {
|
7537 | selKeys = selKeys.filter(val => getChildKeys(item.children).indexOf(val) === -1);
|
7538 | selKeys = selKeys.filter(val => getParentKeys(item.parent).indexOf(val) === -1);
|
7539 | }
|
7540 | }
|
7541 | if (!multiple) {
|
7542 | selKeys = !findKey ? [item.key] : [];
|
7543 | }
|
7544 | this.setState({ selectedKeys: selKeys }, () => {
|
7545 | onSelected && onSelected(selKeys, item.key, selected, item, evn);
|
7546 | });
|
7547 | }
|
7548 | onItemClick(item, evn) {
|
7549 | if (!item.children) {
|
7550 | return;
|
7551 | }
|
7552 | const { onExpand } = this.props;
|
7553 | const { openKeys } = this.state;
|
7554 | let currentKeys = [...openKeys];
|
7555 | const key = currentKeys.find(v => v === item.key);
|
7556 | const cls = evn.currentTarget.className.replace(/(\s)open/g, '');
|
7557 | let expanded = false;
|
7558 | if (!key && item.key) {
|
7559 | currentKeys.push(item.key);
|
7560 | evn.currentTarget.className = classnames_1.default(cls, 'open');
|
7561 | expanded = true;
|
7562 | }
|
7563 | else {
|
7564 | currentKeys = currentKeys.filter(v => v !== item.key);
|
7565 | evn.currentTarget.className = cls;
|
7566 | }
|
7567 | this.setState({ openKeys: currentKeys }, () => {
|
7568 | onExpand && onExpand(item.key, expanded, item, evn);
|
7569 | });
|
7570 | }
|
7571 | renderTreeNode(data, level, parent) {
|
7572 | const { prefixCls, renderTitle, icon, iconAnimation, isSelected } = this.props;
|
7573 | const { openKeys, selectedKeys } = this.state;
|
7574 | let isOpen = false;
|
7575 | if (parent && parent.key) {
|
7576 | isOpen = !!(openKeys && openKeys.indexOf(parent.key) > -1);
|
7577 | }
|
7578 | return (react_1.default.createElement(react_transition_group_1.CSSTransition, { classNames: prefixCls, in: isOpen, timeout: 200, onExit: this.onExit, onExiting: this.onExiting, onEnter: this.onEnter, onEntered: this.onEntered, onEntering: this.onEntering },
|
7579 | react_1.default.createElement("ul", { className: classnames_1.default({
|
7580 | [`${prefixCls}-open`]: level !== 1 && isOpen,
|
7581 | [`${prefixCls}-close`]: level !== 1 && !isOpen,
|
7582 | }) }, data.map((item, idx) => {
|
7583 | item.parent = parent;
|
7584 | const selected = !!(selectedKeys && selectedKeys.indexOf(item.key) > -1);
|
7585 | const noChild = !item.children;
|
7586 | const itemIsOpen = openKeys && openKeys.indexOf(item.key) > -1 && !!item.children;
|
7587 | const iconItem = typeof icon === 'function' ? icon(item, { isOpen: !!itemIsOpen, noChild, openKeys, selectedKeys }) : icon;
|
7588 | const childKeys = noChild ? [] : getChildKeys(item.children);
|
7589 | const checkedKeys = selectedKeys ? selectedKeys.filter(key => childKeys.indexOf(key) > -1) : [];
|
7590 | const isHalfChecked = checkedKeys.length > 0 && childKeys.length !== checkedKeys.length;
|
7591 | return (react_1.default.createElement("li", { key: idx },
|
7592 | react_1.default.createElement("div", { className: classnames_1.default(`${prefixCls}-label`) },
|
7593 | react_1.default.createElement("span", { className: `${prefixCls}-switcher`, onClick: this.onItemClick.bind(this, item) },
|
7594 | react_1.default.createElement(icon_1.default, { type: iconItem || 'caret-right', className: classnames_1.default({
|
7595 | [`${prefixCls}-switcher-noop`]: typeof icon === 'function',
|
7596 | 'no-child': noChild,
|
7597 | 'no-animation': !iconAnimation,
|
7598 | open: itemIsOpen,
|
7599 | }) })),
|
7600 | react_1.default.createElement("div", { onClick: this.onItemSelected.bind(this, item), className: classnames_1.default(`${prefixCls}-title`, {
|
7601 | selected: selected && isSelected,
|
7602 | disabled: item.disabled,
|
7603 | }) }, renderTitle ? renderTitle(item, { selected, noChild, openKeys, isHalfChecked, selectedKeys }) : react_1.default.createElement("span", null, item.label))),
|
7604 | item.children && this.renderTreeNode(item.children, level + 1, item)));
|
7605 | }))));
|
7606 | }
|
7607 | render() {
|
7608 | const { prefixCls, className, icon, data, openKeys, selectedKeys, isSelected, autoExpandParent, defaultExpandAll, checkStrictly, showLine, iconAnimation, renderTitle, onExpand, onSelected, ...elementProps } = this.props;
|
7609 | const cls = classnames_1.default(className, prefixCls, { [`${prefixCls}-line`]: showLine });
|
7610 | return (react_1.default.createElement("div", Object.assign({ className: cls }, elementProps), this.renderTreeNode(data, 1)));
|
7611 | }
|
7612 | }
|
7613 | Tree.defaultProps = {
|
7614 | prefixCls: 'w-tree',
|
7615 | icon: 'caret-right',
|
7616 | data: [],
|
7617 | openKeys: [],
|
7618 | selectedKeys: [],
|
7619 | defaultExpandAll: false,
|
7620 | showLine: false,
|
7621 | iconAnimation: true,
|
7622 | isSelected: true,
|
7623 | checkStrictly: false,
|
7624 | multiple: false,
|
7625 | onExpand: noop,
|
7626 | onSelected: noop,
|
7627 | };
|
7628 | exports.default = Tree;
|
7629 |
|
7630 |
|
7631 | }),
|
7632 |
|
7633 | (function(module, exports, __webpack_require__) {
|
7634 |
|
7635 |
|
7636 |
|
7637 | }),
|
7638 |
|
7639 | (function(module, exports, __webpack_require__) {
|
7640 |
|
7641 | "use strict";
|
7642 |
|
7643 | Object.defineProperty(exports, "__esModule", { value: true });
|
7644 | const tslib_1 = __webpack_require__(1);
|
7645 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7646 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7647 | const Pane_1 = tslib_1.__importDefault(__webpack_require__(164));
|
7648 | __webpack_require__(165);
|
7649 | class Tabs extends react_1.default.Component {
|
7650 | constructor(props) {
|
7651 | super(props);
|
7652 | this.state = {
|
7653 | activeKey: props.activeKey,
|
7654 | slideStyle: { width: 0, left: 0 },
|
7655 | };
|
7656 | }
|
7657 | componentWillReceiveProps(nextProps) {
|
7658 | if (nextProps.children !== this.props.children) {
|
7659 | this.calcSlideStyle();
|
7660 | }
|
7661 | if (nextProps.activeKey !== this.props.activeKey) {
|
7662 | this.setState({
|
7663 | activeKey: nextProps.activeKey,
|
7664 | }, () => {
|
7665 | this.calcSlideStyle();
|
7666 | });
|
7667 | }
|
7668 | }
|
7669 | componentDidMount() {
|
7670 | this.calcSlideStyle();
|
7671 | }
|
7672 | calcSlideStyle() {
|
7673 | const { slideStyle } = this.state;
|
7674 | if (this.activeItem && this.props.type === 'line') {
|
7675 | const styl = {
|
7676 | width: this.activeItem.clientWidth,
|
7677 | left: this.activeItem.offsetLeft,
|
7678 | };
|
7679 | this.setState({
|
7680 | slideStyle: { ...slideStyle, ...styl },
|
7681 | });
|
7682 | }
|
7683 | }
|
7684 | onTabClick(item, key, e) {
|
7685 | const { onTabClick } = this.props;
|
7686 | this.setState({
|
7687 | activeKey: key,
|
7688 | }, () => {
|
7689 | this.calcSlideStyle();
|
7690 | onTabClick && onTabClick(key, item, e);
|
7691 | });
|
7692 | }
|
7693 | render() {
|
7694 | const { prefixCls, className, children, type, activeKey, onTabClick, ...elementProps } = this.props;
|
7695 | const cls = classnames_1.default(prefixCls, className, {
|
7696 | [`${prefixCls}-${type}`]: type,
|
7697 | });
|
7698 | return (react_1.default.createElement("div", Object.assign({ className: cls }, elementProps),
|
7699 | react_1.default.createElement("div", { className: `${prefixCls}-bar` },
|
7700 | react_1.default.createElement("div", { className: `${prefixCls}-nav` }, react_1.default.Children.map(children, (item, key) => {
|
7701 | if (!item) {
|
7702 | return null;
|
7703 | }
|
7704 | const props = {
|
7705 | key,
|
7706 | className: classnames_1.default(`${prefixCls}-item`, {
|
7707 | active: item.key === this.state.activeKey,
|
7708 | disabled: item.props.disabled,
|
7709 | }),
|
7710 | children: item.props.label,
|
7711 | };
|
7712 | if (!item.props.disabled) {
|
7713 | props.onClick = this.onTabClick.bind(this, item, item.key);
|
7714 | }
|
7715 | return (react_1.default.createElement("div", Object.assign({ ref: (node) => {
|
7716 | if (node && item.key === this.state.activeKey) {
|
7717 | this.activeItem = node;
|
7718 | }
|
7719 | } }, props)));
|
7720 | })),
|
7721 | react_1.default.createElement("div", { style: this.state.slideStyle, className: `${prefixCls}-slide` })),
|
7722 | react_1.default.Children.map(children, (item) => {
|
7723 | if (!item || this.state.activeKey !== item.key) {
|
7724 | return null;
|
7725 | }
|
7726 | return react_1.default.cloneElement(item, Object.assign({}, item.props, {}));
|
7727 | })));
|
7728 | }
|
7729 | }
|
7730 | Tabs.defaultProps = {
|
7731 | prefixCls: 'w-tabs',
|
7732 | type: 'default',
|
7733 | };
|
7734 | Tabs.Pane = Pane_1.default;
|
7735 | exports.default = Tabs;
|
7736 |
|
7737 |
|
7738 | }),
|
7739 |
|
7740 | (function(module, exports, __webpack_require__) {
|
7741 |
|
7742 | "use strict";
|
7743 |
|
7744 | Object.defineProperty(exports, "__esModule", { value: true });
|
7745 | const tslib_1 = __webpack_require__(1);
|
7746 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7747 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7748 | class Pane extends react_1.default.Component {
|
7749 | render() {
|
7750 | const { prefixCls, className, ...resetProps } = this.props;
|
7751 | return (react_1.default.createElement("div", Object.assign({ className: classnames_1.default(`${prefixCls}`, className) }, resetProps)));
|
7752 | }
|
7753 | }
|
7754 | Pane.defaultProps = {
|
7755 | prefixCls: 'w-tabs-pane',
|
7756 | };
|
7757 | exports.default = Pane;
|
7758 |
|
7759 |
|
7760 | }),
|
7761 |
|
7762 | (function(module, exports, __webpack_require__) {
|
7763 |
|
7764 |
|
7765 |
|
7766 | }),
|
7767 |
|
7768 | (function(module, exports, __webpack_require__) {
|
7769 |
|
7770 | "use strict";
|
7771 |
|
7772 | Object.defineProperty(exports, "__esModule", { value: true });
|
7773 | const tslib_1 = __webpack_require__(1);
|
7774 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7775 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7776 | const Thead_1 = tslib_1.__importDefault(__webpack_require__(167));
|
7777 | const util_1 = __webpack_require__(168);
|
7778 | __webpack_require__(36);
|
7779 | function noop() { }
|
7780 | ;
|
7781 | class Table extends react_1.default.Component {
|
7782 | render() {
|
7783 | const { prefixCls, className, columns, data, title, footer, bordered, onCell, onCellHead, ...other } = this.props;
|
7784 | const cls = classnames_1.default(prefixCls, className, {
|
7785 | [`${prefixCls}-bordered`]: bordered,
|
7786 | });
|
7787 | const { header, render } = util_1.getLevelItems(columns);
|
7788 | const keys = util_1.getAllColumnsKeys(columns);
|
7789 | return (react_1.default.createElement("div", Object.assign({ className: cls }, other),
|
7790 | react_1.default.createElement("table", null,
|
7791 | title && react_1.default.createElement("caption", null, title),
|
7792 | columns && columns.length > 0 && (react_1.default.createElement(Thead_1.default, { onCellHead: onCellHead, data: header })),
|
7793 | data && data.length > 0 && (react_1.default.createElement("tbody", null, data.map((trData, rowNum) => (react_1.default.createElement("tr", { key: rowNum }, keys.map((keyName, colNum) => {
|
7794 | const objs = { children: trData[keyName], props: {} };
|
7795 | if (render[keyName]) {
|
7796 | const child = render[keyName](trData[keyName], keyName, trData, rowNum, colNum);
|
7797 | if (react_1.default.isValidElement(child)) {
|
7798 | objs.children = child;
|
7799 | }
|
7800 | else {
|
7801 | if (child.props) {
|
7802 | objs.props = { ...child.props };
|
7803 | if (child.props.rowSpan === 0 || child.props.colSpan === 0)
|
7804 | return null;
|
7805 | }
|
7806 | if (child.children) {
|
7807 | objs.children = child.children;
|
7808 | }
|
7809 | }
|
7810 | }
|
7811 | return (react_1.default.createElement("td", Object.assign({}, objs.props, { onClick: onCell.bind(this, trData, { rowNum, colNum, keyName }), key: colNum }), objs.children));
|
7812 | })))))),
|
7813 | this.props.children),
|
7814 | footer && react_1.default.createElement("div", { className: `${prefixCls}-footer` }, footer)));
|
7815 | }
|
7816 | }
|
7817 | Table.defaultProps = {
|
7818 | prefixCls: 'w-table',
|
7819 | columns: [],
|
7820 | data: [],
|
7821 | onCell: noop,
|
7822 | onCellHead: noop,
|
7823 | };
|
7824 | exports.default = Table;
|
7825 |
|
7826 |
|
7827 | }),
|
7828 |
|
7829 | (function(module, exports, __webpack_require__) {
|
7830 |
|
7831 | "use strict";
|
7832 |
|
7833 | Object.defineProperty(exports, "__esModule", { value: true });
|
7834 | const tslib_1 = __webpack_require__(1);
|
7835 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7836 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7837 | __webpack_require__(36);
|
7838 | function noop() { }
|
7839 | class Thead extends react_1.default.Component {
|
7840 | render() {
|
7841 | const { prefixCls, className, data, onCellHead, ...other } = this.props;
|
7842 | return (react_1.default.createElement("thead", Object.assign({ className: classnames_1.default(prefixCls, className) }, other), data && data.map((tds, rowNum) => (react_1.default.createElement("tr", { key: rowNum }, tds.map((item, colNum) => {
|
7843 | const { title, key, render, children, ...thProps } = item;
|
7844 | const titleNode = (typeof title === 'function' ? title(item, colNum, rowNum) : title);
|
7845 | if (thProps.colSpan === 0) {
|
7846 | return null;
|
7847 | }
|
7848 | return (react_1.default.createElement("th", Object.assign({ key: colNum, onClick: onCellHead.bind(this, item, colNum, rowNum) }, thProps), titleNode));
|
7849 | }))))));
|
7850 | }
|
7851 | }
|
7852 | Thead.defaultProps = {
|
7853 | prefixCls: 'w-table-thead',
|
7854 | onCellHead: noop,
|
7855 | data: [],
|
7856 | };
|
7857 | exports.default = Thead;
|
7858 |
|
7859 |
|
7860 | }),
|
7861 |
|
7862 | (function(module, exports, __webpack_require__) {
|
7863 |
|
7864 | "use strict";
|
7865 |
|
7866 | Object.defineProperty(exports, "__esModule", { value: true });
|
7867 |
|
7868 |
|
7869 |
|
7870 |
|
7871 | function getColspanNum(data = [], num = 1) {
|
7872 | let childs = [];
|
7873 | for (let i = 0; i < data.length; i += 1) {
|
7874 | if (data[i].children) {
|
7875 | childs = childs.concat(data[i].children || []);
|
7876 | }
|
7877 | }
|
7878 | if (childs && childs.length > 0) {
|
7879 | num = getColspanNum(childs, num + 1);
|
7880 | }
|
7881 | return num;
|
7882 | }
|
7883 |
|
7884 |
|
7885 |
|
7886 |
|
7887 | function getRowspanNum(data = [], child = []) {
|
7888 | let childs = [];
|
7889 | for (let i = 0; i < data.length; i += 1) {
|
7890 | if (!data[i].children) {
|
7891 | childs.push(data[i]);
|
7892 | }
|
7893 | else if (data[i].children && data[i].children.length > 0) {
|
7894 | childs = childs.concat(getRowspanNum(data[i].children, child));
|
7895 | }
|
7896 | }
|
7897 | return childs;
|
7898 | }
|
7899 |
|
7900 |
|
7901 |
|
7902 |
|
7903 | exports.getLevelItems = (data, result) => {
|
7904 | if (!result) {
|
7905 | result = { header: [], render: {} };
|
7906 | }
|
7907 | if (result && !result.header) {
|
7908 | result.header = [];
|
7909 | }
|
7910 | if (result && !result.render) {
|
7911 | result.render = {};
|
7912 | }
|
7913 | let child = [];
|
7914 | const levelTop = [];
|
7915 | for (let i = 0; i < data.length; i += 1) {
|
7916 | if (data[i].render && data[i].key) {
|
7917 | result.render[data[i].key] = data[i].render;
|
7918 | }
|
7919 | if (result.header.length === 0) {
|
7920 |
|
7921 | if (data[i].children && data[i].children && data[i].children.length > 0) {
|
7922 | data[i].colSpan = getRowspanNum(data[i].children).length;
|
7923 | }
|
7924 | levelTop.push(data[i]);
|
7925 | }
|
7926 | if (data[i] && data[i].children) {
|
7927 | child = child.concat(data[i].children.map((item) => {
|
7928 |
|
7929 | if (item.children && item.children.length > 0) {
|
7930 | item.colSpan = getRowspanNum(item.children).length;
|
7931 | }
|
7932 | return item;
|
7933 | }));
|
7934 | }
|
7935 | }
|
7936 |
|
7937 | if (result.header.length === 0) {
|
7938 | const num = getColspanNum(levelTop);
|
7939 | result.header.push(levelTop.map((item) => {
|
7940 | if (num === 1)
|
7941 | return item;
|
7942 | if (!item.children || (item.children && item.children.length === 0)) {
|
7943 | item.rowSpan = num;
|
7944 | }
|
7945 | return item;
|
7946 | }));
|
7947 | }
|
7948 | if (child && child.length > 0) {
|
7949 | const num = getColspanNum(child);
|
7950 | result.header.push(child.map((item) => {
|
7951 | if (num === 1)
|
7952 | return item;
|
7953 | if (!item.children || (item.children && item.children.length === 0)) {
|
7954 | item.rowSpan = num;
|
7955 | }
|
7956 | return item;
|
7957 | }));
|
7958 | result = exports.getLevelItems(child, result);
|
7959 | }
|
7960 | return result;
|
7961 | };
|
7962 |
|
7963 |
|
7964 |
|
7965 |
|
7966 | exports.getAllColumnsKeys = (data, keys = []) => {
|
7967 | for (let i = 0; i < data.length; i += 1) {
|
7968 | if (data[i].children) {
|
7969 | keys = keys.concat(exports.getAllColumnsKeys(data[i].children || []));
|
7970 | }
|
7971 | else if (data[i].key) {
|
7972 | keys.push(data[i].key);
|
7973 | }
|
7974 | }
|
7975 | return keys;
|
7976 | };
|
7977 |
|
7978 |
|
7979 | }),
|
7980 |
|
7981 | (function(module, exports, __webpack_require__) {
|
7982 |
|
7983 | "use strict";
|
7984 |
|
7985 | Object.defineProperty(exports, "__esModule", { value: true });
|
7986 | const tslib_1 = __webpack_require__(1);
|
7987 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
7988 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
7989 | const popover_1 = tslib_1.__importDefault(__webpack_require__(11));
|
7990 | const PickerTime_1 = tslib_1.__importDefault(__webpack_require__(27));
|
7991 | const input_1 = tslib_1.__importDefault(__webpack_require__(7));
|
7992 | const button_1 = tslib_1.__importDefault(__webpack_require__(6));
|
7993 | const __1 = __webpack_require__(5);
|
7994 | __webpack_require__(170);
|
7995 | class TimePicker extends react_1.default.Component {
|
7996 | constructor(props) {
|
7997 | super(props);
|
7998 | this.onClear = () => {
|
7999 | const { onChange } = this.props;
|
8000 | this.setState({ date: '' }, () => onChange && onChange());
|
8001 | };
|
8002 | this.state = {
|
8003 | date: (props.value || ''),
|
8004 | };
|
8005 | }
|
8006 | componentWillReceiveProps(nextProps) {
|
8007 | if (nextProps.value !== this.props.value) {
|
8008 | this.setState({ date: (nextProps.value) });
|
8009 | }
|
8010 | }
|
8011 | onSelected(type, num, disableds, date) {
|
8012 | const { onChange, format } = this.props;
|
8013 | this.setState({ date: date || '' });
|
8014 | const dataStr = date ? __1.formatter(format, date) : '';
|
8015 | onChange && onChange(dataStr, date, type, num, disableds);
|
8016 | }
|
8017 | render() {
|
8018 | const { prefixCls, className, disabled, value, format, popoverProps, allowClear, onChange, disabledHours, disabledMinutes, disabledSeconds, hideDisabled, precision, ...inputProps } = this.props;
|
8019 | const { date } = this.state;
|
8020 | const timeProps = { disabledHours, disabledMinutes, disabledSeconds, hideDisabled, precision };
|
8021 | const inputValue = date ? __1.formatter(format, date) : '';
|
8022 | const props = { ...inputProps, value: inputValue };
|
8023 | const datePickerTime = date || new Date();
|
8024 | if (allowClear && inputValue !== '' && !!inputValue) {
|
8025 | props.addonAfter = react_1.default.createElement(button_1.default, { className: `${prefixCls}-close-btn`, icon: "close", disabled: props.disabled, onClick: this.onClear, size: props.size, basic: true, type: "light" });
|
8026 | }
|
8027 | return (react_1.default.createElement(popover_1.default, Object.assign({ trigger: "focus", placement: "bottomLeft", autoAdjustOverflow: true, visibleArrow: false }, popoverProps, { content: react_1.default.createElement(PickerTime_1.default, Object.assign({ className: `${prefixCls}-popover` }, timeProps, { date: datePickerTime, onSelected: this.onSelected.bind(this) })) }),
|
8028 | react_1.default.createElement(input_1.default, Object.assign({ placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4", readOnly: true, disabled: disabled }, props, { className: classnames_1.default(`${prefixCls}-input`, className) }))));
|
8029 | }
|
8030 | }
|
8031 | TimePicker.defaultProps = {
|
8032 | prefixCls: 'w-timepicker',
|
8033 | format: 'HH:mm:ss',
|
8034 | allowClear: true,
|
8035 | };
|
8036 | exports.default = TimePicker;
|
8037 |
|
8038 |
|
8039 | }),
|
8040 |
|
8041 | (function(module, exports, __webpack_require__) {
|
8042 |
|
8043 |
|
8044 |
|
8045 | }),
|
8046 |
|
8047 | (function(module, exports, __webpack_require__) {
|
8048 |
|
8049 | "use strict";
|
8050 |
|
8051 | Object.defineProperty(exports, "__esModule", { value: true });
|
8052 | const tslib_1 = __webpack_require__(1);
|
8053 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
8054 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
8055 | const input_1 = tslib_1.__importDefault(__webpack_require__(7));
|
8056 | __webpack_require__(172);
|
8057 | function default_1({ ...props }) {
|
8058 | props.className = classnames_1.default(props.className, 'w-fileinput');
|
8059 | return (react_1.default.createElement(input_1.default, Object.assign({}, props, { type: "file" })));
|
8060 | }
|
8061 | exports.default = default_1;
|
8062 |
|
8063 |
|
8064 | }),
|
8065 |
|
8066 | (function(module, exports, __webpack_require__) {
|
8067 |
|
8068 |
|
8069 |
|
8070 | }),
|
8071 |
|
8072 | (function(module, exports, __webpack_require__) {
|
8073 |
|
8074 | "use strict";
|
8075 |
|
8076 | Object.defineProperty(exports, "__esModule", { value: true });
|
8077 | const tslib_1 = __webpack_require__(1);
|
8078 | const react_1 = tslib_1.__importDefault(__webpack_require__(0));
|
8079 | const classnames_1 = tslib_1.__importDefault(__webpack_require__(2));
|
8080 | const FormItem_1 = tslib_1.__importDefault(__webpack_require__(37));
|
8081 | const input_1 = tslib_1.__importDefault(__webpack_require__(7));
|
8082 | __webpack_require__(175);
|
8083 | const isPromise = (promise) => promise && typeof promise.then === 'function';
|
8084 | const newInitialValue = (value) => ((value === null || value === undefined) ? '' : value);
|
8085 | const noop = () => undefined;
|
8086 | const newFormState = (fields, cb) => {
|
8087 | const state = { initial: {}, current: {}, submitting: false, errors: {} };
|
8088 | for (const name in fields) {
|
8089 | const props = fields[name];
|
8090 | if (!props)
|
8091 | continue;
|
8092 | const { initialValue, currentValue } = cb({ ...props, name });
|
8093 | state.initial[name] = initialValue;
|
8094 | state.current[name] = currentValue;
|
8095 | }
|
8096 | return state;
|
8097 | };
|
8098 | class Form extends react_1.default.Component {
|
8099 | constructor(props) {
|
8100 | super(props);
|
8101 | this.onSubmit = (e) => {
|
8102 | e && e.preventDefault();
|
8103 | const { onSubmit, resetOnSubmit, afterSubmit, onSubmitError } = this.props;
|
8104 | const { initial, current } = this.state;
|
8105 | this.setState({ submitting: true });
|
8106 | const nextState = { submitting: false };
|
8107 | const onError = (evn) => {
|
8108 | this.setState({ ...nextState, errors: (onSubmitError && onSubmitError(evn)) || {} });
|
8109 | };
|
8110 | const onSuccess = (response) => {
|
8111 | this.setState({
|
8112 | ...nextState,
|
8113 | current: resetOnSubmit ? initial : current,
|
8114 | initial: resetOnSubmit ? initial : current,
|
8115 | errors: {},
|
8116 | });
|
8117 | const after = () => afterSubmit({ state: this.state, response, reset: this.reset });
|
8118 | return after();
|
8119 | };
|
8120 | try {
|
8121 | const afterSubmitPromise = onSubmit({ initial, current });
|
8122 | if (isPromise(afterSubmitPromise)) {
|
8123 | return afterSubmitPromise.then(onSuccess).catch(onError);
|
8124 | }
|
8125 | else {
|
8126 | return onSuccess(afterSubmitPromise);
|
8127 | }
|
8128 | }
|
8129 | catch (evn) {
|
8130 | onError(evn);
|
8131 |
|
8132 | }
|
8133 | };
|
8134 | this.reset = () => {
|
8135 | const { initial } = this.state;
|
8136 | this.setState({ current: initial, errors: {} });
|
8137 | };
|
8138 | this.canSubmit = () => {
|
8139 | const { fields } = this.props;
|
8140 | const { submitting, current } = this.state;
|
8141 | let passesValidators = true;
|
8142 | for (const name in fields) {
|
8143 | if (Object.prototype.hasOwnProperty.call(fields, name)) {
|
8144 | const props = fields[name];
|
8145 | if (!props)
|
8146 | continue;
|
8147 | if (props.validator && props.validator(current[name])) {
|
8148 | passesValidators = false;
|
8149 | break;
|
8150 | }
|
8151 | }
|
8152 | }
|
8153 | return !submitting && passesValidators;
|
8154 | };
|
8155 | this.onChange = (name, validator, element, cb) => (env, list) => {
|
8156 | const { onChange } = this.props;
|
8157 | let value = env && env.target && 'value' in env.target ? env.target.value : env;
|
8158 |
|
8159 | value = list || value;
|
8160 |
|
8161 | if (element && element.props.type === 'checkbox') {
|
8162 | value = env.target.checked ? element.props.value : '';
|
8163 | }
|
8164 |
|
8165 | if (element && element.props.type === 'switch') {
|
8166 | value = env.target.checked;
|
8167 | }
|
8168 | const nextState = { current: { ...this.state.current, [name]: value } };
|
8169 | const error = validator && validator(value);
|
8170 | if (!error) {
|
8171 | nextState.errors = { ...this.state.errors };
|
8172 | delete nextState.errors[name];
|
8173 | }
|
8174 | if (env && env.persist && typeof env.persist === 'function')
|
8175 | env.persist();
|
8176 | if (cb)
|
8177 | this.setState(nextState, () => cb(env));
|
8178 | else
|
8179 | this.setState(nextState);
|
8180 | onChange && onChange({ ...this.state, ...nextState });
|
8181 | };
|
8182 | this.controlField = ({ children = react_1.default.createElement(input_1.default, { type: "text" }), validator, name }) => {
|
8183 | const element = typeof children !== 'function'
|
8184 | ? children
|
8185 | : children({
|
8186 | onChange: this.onChange(name, validator),
|
8187 | onSubmit: this.onSubmit,
|
8188 | canSubmit: this.canSubmit,
|
8189 | });
|
8190 | if (!element || react_1.default.Children.count(element) !== 1 || !name)
|
8191 | return element;
|
8192 | const props = { name: element.props.name || name };
|
8193 | const hasCurrentValue = Object.prototype.hasOwnProperty.call(this.state.current, name);
|
8194 | props.id = element.props.id;
|
8195 | props.value = hasCurrentValue ? (this.state.current && this.state.current[name]) : element.props.value;
|
8196 | const type = element.props.type;
|
8197 | if (type === 'checkbox' || type === 'switch') {
|
8198 | props.checked = !!props.value;
|
8199 | }
|
8200 | if (type === 'switch') {
|
8201 | delete props.value;
|
8202 | }
|
8203 | props.onChange = (this.onChange(name, validator, element, element.props.onChange));
|
8204 | return react_1.default.cloneElement(element, props);
|
8205 | };
|
8206 | this.state = newFormState(props.fields, ({ initialValue }) => {
|
8207 | initialValue = newInitialValue(initialValue);
|
8208 | return { initialValue, currentValue: initialValue };
|
8209 | });
|
8210 | }
|
8211 | shouldComponentUpdate(nextProps, nextState) {
|
8212 | const isStateChange = nextState !== this.state;
|
8213 | const { current, initial } = nextState;
|
8214 | const { initial: newInitial, current: newCurrent } = newFormState(nextProps.fields, ({ name, initialValue }) => {
|
8215 | initialValue = newInitialValue(initialValue);
|
8216 | return {
|
8217 | initialValue: initialValue,
|
8218 | currentValue: current.hasOwnProperty(name)
|
8219 | ? (current[name] === this.state.initial[name] ? initialValue : current[name])
|
8220 | : initialValue
|
8221 | };
|
8222 | });
|
8223 | nextState.initial = isStateChange ? initial : newInitial;
|
8224 | nextState.current = newCurrent;
|
8225 | return true;
|
8226 | }
|
8227 | render() {
|
8228 | const { prefixCls, className, fields, children, resetOnSubmit, onSubmitError, onChange, onSubmit, afterSubmit, ...others } = this.props;
|
8229 | const { submitting } = this.state;
|
8230 | const formUnits = {};
|
8231 | for (const name in fields) {
|
8232 | const props = fields[name];
|
8233 | if (!props)
|
8234 | continue;
|
8235 | const error = this.state.errors[name];
|
8236 | const childrenField = this.controlField({ ...props, name });
|
8237 | const help = error || props.help;
|
8238 | const labelFor = props.labelFor;
|
8239 | formUnits[name] = (react_1.default.createElement(FormItem_1.default, Object.assign({}, { ...props, key: name, children: childrenField, help, labelFor, state: this.state, name, hasError: !!error })));
|
8240 | }
|
8241 | return (react_1.default.createElement("form", Object.assign({}, { ...others, className: classnames_1.default(prefixCls, className), onSubmit: this.onSubmit }),
|
8242 | react_1.default.createElement("fieldset", Object.assign({}, { disabled: submitting }), typeof children === 'function' ? children({
|
8243 | fields: formUnits,
|
8244 | state: this.state,
|
8245 | resetForm: this.reset,
|
8246 | canSubmit: this.canSubmit,
|
8247 | }) : children)));
|
8248 | }
|
8249 | }
|
8250 | Form.defaultProps = {
|
8251 | prefixCls: 'w-form',
|
8252 | onSubmitError: () => ({}),
|
8253 | onSubmit: noop,
|
8254 | afterSubmit: noop,
|
8255 | onChange: noop,
|
8256 | resetOnSubmit: true,
|
8257 | children: noop,
|
8258 | };
|
8259 | exports.default = Form;
|
8260 |
|
8261 |
|
8262 | }),
|
8263 |
|
8264 | (function(module, exports, __webpack_require__) {
|
8265 |
|
8266 |
|
8267 |
|
8268 | }),
|
8269 |
|
8270 | (function(module, exports, __webpack_require__) {
|
8271 |
|
8272 |
|
8273 |
|
8274 | })
|
8275 | ]);
|
8276 | }); |
\ | No newline at end of file |