1 | var __defProp = Object.defineProperty;
|
2 | var __defProps = Object.defineProperties;
|
3 | var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
4 | var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
5 | var __hasOwnProp = Object.prototype.hasOwnProperty;
|
6 | var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
7 | var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
8 | var __spreadValues = (a, b) => {
|
9 | for (var prop in b || (b = {}))
|
10 | if (__hasOwnProp.call(b, prop))
|
11 | __defNormalProp(a, prop, b[prop]);
|
12 | if (__getOwnPropSymbols)
|
13 | for (var prop of __getOwnPropSymbols(b)) {
|
14 | if (__propIsEnum.call(b, prop))
|
15 | __defNormalProp(a, prop, b[prop]);
|
16 | }
|
17 | return a;
|
18 | };
|
19 | var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
20 | import * as React from "react";
|
21 | import React__default, { memo, useRef, useEffect, createContext, useReducer, createElement, useContext, useCallback, useState, forwardRef, useImperativeHandle, useMemo, isValidElement, PureComponent, Component } from "react";
|
22 | import * as _antd from "antd";
|
23 | import { Modal, message, Button as Button$1, Typography as Typography$1, Divider as Divider$1, Row as Row$1, Col as Col$1, Layout, Space as Space$1, Form, AutoComplete as AutoComplete$1, Cascader as Cascader$1, Checkbox as Checkbox$1, DatePicker as DatePicker$1, Input as Input$1, InputNumber as InputNumber$1, Mentions as Mentions$1, Radio, Rate as Rate$1, Select as Select$1, Slider as Slider$2, Switch as Switch$1, TimePicker as TimePicker$1, TreeSelect as TreeSelect$1, Upload as Upload$1, Calendar as Calendar$1, Image as Image$1, Table as Table$1, Tree as Tree$1, Alert as Alert$1, ConfigProvider, Tabs } from "antd";
|
24 | import moment$1 from "moment";
|
25 |
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 | function ownKeys$1(object, enumerableOnly) {
|
32 | var keys2 = Object.keys(object);
|
33 | if (Object.getOwnPropertySymbols) {
|
34 | var symbols = Object.getOwnPropertySymbols(object);
|
35 | if (enumerableOnly) {
|
36 | symbols = symbols.filter(function(sym) {
|
37 | return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
38 | });
|
39 | }
|
40 | keys2.push.apply(keys2, symbols);
|
41 | }
|
42 | return keys2;
|
43 | }
|
44 | function _objectSpread2$1(target) {
|
45 | for (var i = 1; i < arguments.length; i++) {
|
46 | var source = arguments[i] != null ? arguments[i] : {};
|
47 | if (i % 2) {
|
48 | ownKeys$1(Object(source), true).forEach(function(key) {
|
49 | _defineProperty$3(target, key, source[key]);
|
50 | });
|
51 | } else if (Object.getOwnPropertyDescriptors) {
|
52 | Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
53 | } else {
|
54 | ownKeys$1(Object(source)).forEach(function(key) {
|
55 | Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
56 | });
|
57 | }
|
58 | }
|
59 | return target;
|
60 | }
|
61 | function _typeof$1(obj) {
|
62 | "@babel/helpers - typeof";
|
63 | if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
|
64 | _typeof$1 = function(obj2) {
|
65 | return typeof obj2;
|
66 | };
|
67 | } else {
|
68 | _typeof$1 = function(obj2) {
|
69 | return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
70 | };
|
71 | }
|
72 | return _typeof$1(obj);
|
73 | }
|
74 | function _defineProperty$3(obj, key, value) {
|
75 | if (key in obj) {
|
76 | Object.defineProperty(obj, key, {
|
77 | value,
|
78 | enumerable: true,
|
79 | configurable: true,
|
80 | writable: true
|
81 | });
|
82 | } else {
|
83 | obj[key] = value;
|
84 | }
|
85 | return obj;
|
86 | }
|
87 | function _extends$g() {
|
88 | _extends$g = Object.assign || function(target) {
|
89 | for (var i = 1; i < arguments.length; i++) {
|
90 | var source = arguments[i];
|
91 | for (var key in source) {
|
92 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
93 | target[key] = source[key];
|
94 | }
|
95 | }
|
96 | }
|
97 | return target;
|
98 | };
|
99 | return _extends$g.apply(this, arguments);
|
100 | }
|
101 | function _objectWithoutPropertiesLoose$1(source, excluded) {
|
102 | if (source == null)
|
103 | return {};
|
104 | var target = {};
|
105 | var sourceKeys = Object.keys(source);
|
106 | var key, i;
|
107 | for (i = 0; i < sourceKeys.length; i++) {
|
108 | key = sourceKeys[i];
|
109 | if (excluded.indexOf(key) >= 0)
|
110 | continue;
|
111 | target[key] = source[key];
|
112 | }
|
113 | return target;
|
114 | }
|
115 | function _objectWithoutProperties$3(source, excluded) {
|
116 | if (source == null)
|
117 | return {};
|
118 | var target = _objectWithoutPropertiesLoose$1(source, excluded);
|
119 | var key, i;
|
120 | if (Object.getOwnPropertySymbols) {
|
121 | var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
122 | for (i = 0; i < sourceSymbolKeys.length; i++) {
|
123 | key = sourceSymbolKeys[i];
|
124 | if (excluded.indexOf(key) >= 0)
|
125 | continue;
|
126 | if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
127 | continue;
|
128 | target[key] = source[key];
|
129 | }
|
130 | }
|
131 | return target;
|
132 | }
|
133 | var version = "1.14.0";
|
134 | function userAgent(pattern) {
|
135 | if (typeof window !== "undefined" && window.navigator) {
|
136 | return !! navigator.userAgent.match(pattern);
|
137 | }
|
138 | }
|
139 | var IE11OrLess = userAgent(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i);
|
140 | var Edge = userAgent(/Edge/i);
|
141 | var FireFox = userAgent(/firefox/i);
|
142 | var Safari = userAgent(/safari/i) && !userAgent(/chrome/i) && !userAgent(/android/i);
|
143 | var IOS = userAgent(/iP(ad|od|hone)/i);
|
144 | var ChromeForAndroid = userAgent(/chrome/i) && userAgent(/android/i);
|
145 | var captureMode = {
|
146 | capture: false,
|
147 | passive: false
|
148 | };
|
149 | function on(el, event, fn) {
|
150 | el.addEventListener(event, fn, !IE11OrLess && captureMode);
|
151 | }
|
152 | function off(el, event, fn) {
|
153 | el.removeEventListener(event, fn, !IE11OrLess && captureMode);
|
154 | }
|
155 | function matches(el, selector) {
|
156 | if (!selector)
|
157 | return;
|
158 | selector[0] === ">" && (selector = selector.substring(1));
|
159 | if (el) {
|
160 | try {
|
161 | if (el.matches) {
|
162 | return el.matches(selector);
|
163 | } else if (el.msMatchesSelector) {
|
164 | return el.msMatchesSelector(selector);
|
165 | } else if (el.webkitMatchesSelector) {
|
166 | return el.webkitMatchesSelector(selector);
|
167 | }
|
168 | } catch (_) {
|
169 | return false;
|
170 | }
|
171 | }
|
172 | return false;
|
173 | }
|
174 | function getParentOrHost(el) {
|
175 | return el.host && el !== document && el.host.nodeType ? el.host : el.parentNode;
|
176 | }
|
177 | function closest(el, selector, ctx, includeCTX) {
|
178 | if (el) {
|
179 | ctx = ctx || document;
|
180 | do {
|
181 | if (selector != null && (selector[0] === ">" ? el.parentNode === ctx && matches(el, selector) : matches(el, selector)) || includeCTX && el === ctx) {
|
182 | return el;
|
183 | }
|
184 | if (el === ctx)
|
185 | break;
|
186 | } while (el = getParentOrHost(el));
|
187 | }
|
188 | return null;
|
189 | }
|
190 | var R_SPACE = /\s+/g;
|
191 | function toggleClass(el, name, state) {
|
192 | if (el && name) {
|
193 | if (el.classList) {
|
194 | el.classList[state ? "add" : "remove"](name);
|
195 | } else {
|
196 | var className = (" " + el.className + " ").replace(R_SPACE, " ").replace(" " + name + " ", " ");
|
197 | el.className = (className + (state ? " " + name : "")).replace(R_SPACE, " ");
|
198 | }
|
199 | }
|
200 | }
|
201 | function css(el, prop, val) {
|
202 | var style = el && el.style;
|
203 | if (style) {
|
204 | if (val === void 0) {
|
205 | if (document.defaultView && document.defaultView.getComputedStyle) {
|
206 | val = document.defaultView.getComputedStyle(el, "");
|
207 | } else if (el.currentStyle) {
|
208 | val = el.currentStyle;
|
209 | }
|
210 | return prop === void 0 ? val : val[prop];
|
211 | } else {
|
212 | if (!(prop in style) && prop.indexOf("webkit") === -1) {
|
213 | prop = "-webkit-" + prop;
|
214 | }
|
215 | style[prop] = val + (typeof val === "string" ? "" : "px");
|
216 | }
|
217 | }
|
218 | }
|
219 | function matrix(el, selfOnly) {
|
220 | var appliedTransforms = "";
|
221 | if (typeof el === "string") {
|
222 | appliedTransforms = el;
|
223 | } else {
|
224 | do {
|
225 | var transform2 = css(el, "transform");
|
226 | if (transform2 && transform2 !== "none") {
|
227 | appliedTransforms = transform2 + " " + appliedTransforms;
|
228 | }
|
229 | } while (!selfOnly && (el = el.parentNode));
|
230 | }
|
231 | var matrixFn = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
232 | return matrixFn && new matrixFn(appliedTransforms);
|
233 | }
|
234 | function find(ctx, tagName, iterator) {
|
235 | if (ctx) {
|
236 | var list = ctx.getElementsByTagName(tagName), i = 0, n = list.length;
|
237 | if (iterator) {
|
238 | for (; i < n; i++) {
|
239 | iterator(list[i], i);
|
240 | }
|
241 | }
|
242 | return list;
|
243 | }
|
244 | return [];
|
245 | }
|
246 | function getWindowScrollingElement() {
|
247 | var scrollingElement = document.scrollingElement;
|
248 | if (scrollingElement) {
|
249 | return scrollingElement;
|
250 | } else {
|
251 | return document.documentElement;
|
252 | }
|
253 | }
|
254 | function getRect(el, relativeToContainingBlock, relativeToNonStaticParent, undoScale, container) {
|
255 | if (!el.getBoundingClientRect && el !== window)
|
256 | return;
|
257 | var elRect, top, left, bottom, right, height, width;
|
258 | if (el !== window && el.parentNode && el !== getWindowScrollingElement()) {
|
259 | elRect = el.getBoundingClientRect();
|
260 | top = elRect.top;
|
261 | left = elRect.left;
|
262 | bottom = elRect.bottom;
|
263 | right = elRect.right;
|
264 | height = elRect.height;
|
265 | width = elRect.width;
|
266 | } else {
|
267 | top = 0;
|
268 | left = 0;
|
269 | bottom = window.innerHeight;
|
270 | right = window.innerWidth;
|
271 | height = window.innerHeight;
|
272 | width = window.innerWidth;
|
273 | }
|
274 | if ((relativeToContainingBlock || relativeToNonStaticParent) && el !== window) {
|
275 | container = container || el.parentNode;
|
276 | if (!IE11OrLess) {
|
277 | do {
|
278 | if (container && container.getBoundingClientRect && (css(container, "transform") !== "none" || relativeToNonStaticParent && css(container, "position") !== "static")) {
|
279 | var containerRect = container.getBoundingClientRect();
|
280 | top -= containerRect.top + parseInt(css(container, "border-top-width"));
|
281 | left -= containerRect.left + parseInt(css(container, "border-left-width"));
|
282 | bottom = top + elRect.height;
|
283 | right = left + elRect.width;
|
284 | break;
|
285 | }
|
286 | } while (container = container.parentNode);
|
287 | }
|
288 | }
|
289 | if (undoScale && el !== window) {
|
290 | var elMatrix = matrix(container || el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d;
|
291 | if (elMatrix) {
|
292 | top /= scaleY;
|
293 | left /= scaleX;
|
294 | width /= scaleX;
|
295 | height /= scaleY;
|
296 | bottom = top + height;
|
297 | right = left + width;
|
298 | }
|
299 | }
|
300 | return {
|
301 | top,
|
302 | left,
|
303 | bottom,
|
304 | right,
|
305 | width,
|
306 | height
|
307 | };
|
308 | }
|
309 | function isScrolledPast(el, elSide, parentSide) {
|
310 | var parent = getParentAutoScrollElement(el, true), elSideVal = getRect(el)[elSide];
|
311 | while (parent) {
|
312 | var parentSideVal = getRect(parent)[parentSide], visible = void 0;
|
313 | if (parentSide === "top" || parentSide === "left") {
|
314 | visible = elSideVal >= parentSideVal;
|
315 | } else {
|
316 | visible = elSideVal <= parentSideVal;
|
317 | }
|
318 | if (!visible)
|
319 | return parent;
|
320 | if (parent === getWindowScrollingElement())
|
321 | break;
|
322 | parent = getParentAutoScrollElement(parent, false);
|
323 | }
|
324 | return false;
|
325 | }
|
326 | function getChild(el, childNum, options, includeDragEl) {
|
327 | var currentChild = 0, i = 0, children = el.children;
|
328 | while (i < children.length) {
|
329 | if (children[i].style.display !== "none" && children[i] !== Sortable.ghost && (includeDragEl || children[i] !== Sortable.dragged) && closest(children[i], options.draggable, el, false)) {
|
330 | if (currentChild === childNum) {
|
331 | return children[i];
|
332 | }
|
333 | currentChild++;
|
334 | }
|
335 | i++;
|
336 | }
|
337 | return null;
|
338 | }
|
339 | function lastChild(el, selector) {
|
340 | var last = el.lastElementChild;
|
341 | while (last && (last === Sortable.ghost || css(last, "display") === "none" || selector && !matches(last, selector))) {
|
342 | last = last.previousElementSibling;
|
343 | }
|
344 | return last || null;
|
345 | }
|
346 | function index$1(el, selector) {
|
347 | var index2 = 0;
|
348 | if (!el || !el.parentNode) {
|
349 | return -1;
|
350 | }
|
351 | while (el = el.previousElementSibling) {
|
352 | if (el.nodeName.toUpperCase() !== "TEMPLATE" && el !== Sortable.clone && (!selector || matches(el, selector))) {
|
353 | index2++;
|
354 | }
|
355 | }
|
356 | return index2;
|
357 | }
|
358 | function getRelativeScrollOffset(el) {
|
359 | var offsetLeft = 0, offsetTop = 0, winScroller = getWindowScrollingElement();
|
360 | if (el) {
|
361 | do {
|
362 | var elMatrix = matrix(el), scaleX = elMatrix.a, scaleY = elMatrix.d;
|
363 | offsetLeft += el.scrollLeft * scaleX;
|
364 | offsetTop += el.scrollTop * scaleY;
|
365 | } while (el !== winScroller && (el = el.parentNode));
|
366 | }
|
367 | return [offsetLeft, offsetTop];
|
368 | }
|
369 | function indexOfObject(arr, obj) {
|
370 | for (var i in arr) {
|
371 | if (!arr.hasOwnProperty(i))
|
372 | continue;
|
373 | for (var key in obj) {
|
374 | if (obj.hasOwnProperty(key) && obj[key] === arr[i][key])
|
375 | return Number(i);
|
376 | }
|
377 | }
|
378 | return -1;
|
379 | }
|
380 | function getParentAutoScrollElement(el, includeSelf) {
|
381 | if (!el || !el.getBoundingClientRect)
|
382 | return getWindowScrollingElement();
|
383 | var elem = el;
|
384 | var gotSelf = false;
|
385 | do {
|
386 | if (elem.clientWidth < elem.scrollWidth || elem.clientHeight < elem.scrollHeight) {
|
387 | var elemCSS = css(elem);
|
388 | if (elem.clientWidth < elem.scrollWidth && (elemCSS.overflowX == "auto" || elemCSS.overflowX == "scroll") || elem.clientHeight < elem.scrollHeight && (elemCSS.overflowY == "auto" || elemCSS.overflowY == "scroll")) {
|
389 | if (!elem.getBoundingClientRect || elem === document.body)
|
390 | return getWindowScrollingElement();
|
391 | if (gotSelf || includeSelf)
|
392 | return elem;
|
393 | gotSelf = true;
|
394 | }
|
395 | }
|
396 | } while (elem = elem.parentNode);
|
397 | return getWindowScrollingElement();
|
398 | }
|
399 | function extend(dst, src) {
|
400 | if (dst && src) {
|
401 | for (var key in src) {
|
402 | if (src.hasOwnProperty(key)) {
|
403 | dst[key] = src[key];
|
404 | }
|
405 | }
|
406 | }
|
407 | return dst;
|
408 | }
|
409 | function isRectEqual(rect1, rect2) {
|
410 | return Math.round(rect1.top) === Math.round(rect2.top) && Math.round(rect1.left) === Math.round(rect2.left) && Math.round(rect1.height) === Math.round(rect2.height) && Math.round(rect1.width) === Math.round(rect2.width);
|
411 | }
|
412 | var _throttleTimeout;
|
413 | function throttle$1(callback, ms) {
|
414 | return function() {
|
415 | if (!_throttleTimeout) {
|
416 | var args = arguments, _this = this;
|
417 | if (args.length === 1) {
|
418 | callback.call(_this, args[0]);
|
419 | } else {
|
420 | callback.apply(_this, args);
|
421 | }
|
422 | _throttleTimeout = setTimeout(function() {
|
423 | _throttleTimeout = void 0;
|
424 | }, ms);
|
425 | }
|
426 | };
|
427 | }
|
428 | function cancelThrottle() {
|
429 | clearTimeout(_throttleTimeout);
|
430 | _throttleTimeout = void 0;
|
431 | }
|
432 | function scrollBy(el, x, y) {
|
433 | el.scrollLeft += x;
|
434 | el.scrollTop += y;
|
435 | }
|
436 | function clone$1(el) {
|
437 | var Polymer = window.Polymer;
|
438 | var $ = window.jQuery || window.Zepto;
|
439 | if (Polymer && Polymer.dom) {
|
440 | return Polymer.dom(el).cloneNode(true);
|
441 | } else if ($) {
|
442 | return $(el).clone(true)[0];
|
443 | } else {
|
444 | return el.cloneNode(true);
|
445 | }
|
446 | }
|
447 | var expando = "Sortable" + new Date().getTime();
|
448 | function AnimationStateManager() {
|
449 | var animationStates = [], animationCallbackId;
|
450 | return {
|
451 | captureAnimationState: function captureAnimationState() {
|
452 | animationStates = [];
|
453 | if (!this.options.animation)
|
454 | return;
|
455 | var children = [].slice.call(this.el.children);
|
456 | children.forEach(function(child) {
|
457 | if (css(child, "display") === "none" || child === Sortable.ghost)
|
458 | return;
|
459 | animationStates.push({
|
460 | target: child,
|
461 | rect: getRect(child)
|
462 | });
|
463 | var fromRect = _objectSpread2$1({}, animationStates[animationStates.length - 1].rect);
|
464 | if (child.thisAnimationDuration) {
|
465 | var childMatrix = matrix(child, true);
|
466 | if (childMatrix) {
|
467 | fromRect.top -= childMatrix.f;
|
468 | fromRect.left -= childMatrix.e;
|
469 | }
|
470 | }
|
471 | child.fromRect = fromRect;
|
472 | });
|
473 | },
|
474 | addAnimationState: function addAnimationState(state) {
|
475 | animationStates.push(state);
|
476 | },
|
477 | removeAnimationState: function removeAnimationState(target) {
|
478 | animationStates.splice(indexOfObject(animationStates, {
|
479 | target
|
480 | }), 1);
|
481 | },
|
482 | animateAll: function animateAll(callback) {
|
483 | var _this = this;
|
484 | if (!this.options.animation) {
|
485 | clearTimeout(animationCallbackId);
|
486 | if (typeof callback === "function")
|
487 | callback();
|
488 | return;
|
489 | }
|
490 | var animating = false, animationTime = 0;
|
491 | animationStates.forEach(function(state) {
|
492 | var time = 0, target = state.target, fromRect = target.fromRect, toRect = getRect(target), prevFromRect = target.prevFromRect, prevToRect = target.prevToRect, animatingRect = state.rect, targetMatrix = matrix(target, true);
|
493 | if (targetMatrix) {
|
494 | toRect.top -= targetMatrix.f;
|
495 | toRect.left -= targetMatrix.e;
|
496 | }
|
497 | target.toRect = toRect;
|
498 | if (target.thisAnimationDuration) {
|
499 | if (isRectEqual(prevFromRect, toRect) && !isRectEqual(fromRect, toRect) && (animatingRect.top - toRect.top) / (animatingRect.left - toRect.left) === (fromRect.top - toRect.top) / (fromRect.left - toRect.left)) {
|
500 | time = calculateRealTime(animatingRect, prevFromRect, prevToRect, _this.options);
|
501 | }
|
502 | }
|
503 | if (!isRectEqual(toRect, fromRect)) {
|
504 | target.prevFromRect = fromRect;
|
505 | target.prevToRect = toRect;
|
506 | if (!time) {
|
507 | time = _this.options.animation;
|
508 | }
|
509 | _this.animate(target, animatingRect, toRect, time);
|
510 | }
|
511 | if (time) {
|
512 | animating = true;
|
513 | animationTime = Math.max(animationTime, time);
|
514 | clearTimeout(target.animationResetTimer);
|
515 | target.animationResetTimer = setTimeout(function() {
|
516 | target.animationTime = 0;
|
517 | target.prevFromRect = null;
|
518 | target.fromRect = null;
|
519 | target.prevToRect = null;
|
520 | target.thisAnimationDuration = null;
|
521 | }, time);
|
522 | target.thisAnimationDuration = time;
|
523 | }
|
524 | });
|
525 | clearTimeout(animationCallbackId);
|
526 | if (!animating) {
|
527 | if (typeof callback === "function")
|
528 | callback();
|
529 | } else {
|
530 | animationCallbackId = setTimeout(function() {
|
531 | if (typeof callback === "function")
|
532 | callback();
|
533 | }, animationTime);
|
534 | }
|
535 | animationStates = [];
|
536 | },
|
537 | animate: function animate(target, currentRect, toRect, duration) {
|
538 | if (duration) {
|
539 | css(target, "transition", "");
|
540 | css(target, "transform", "");
|
541 | var elMatrix = matrix(this.el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d, translateX = (currentRect.left - toRect.left) / (scaleX || 1), translateY = (currentRect.top - toRect.top) / (scaleY || 1);
|
542 | target.animatingX = !!translateX;
|
543 | target.animatingY = !!translateY;
|
544 | css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
|
545 | this.forRepaintDummy = repaint(target);
|
546 | css(target, "transition", "transform " + duration + "ms" + (this.options.easing ? " " + this.options.easing : ""));
|
547 | css(target, "transform", "translate3d(0,0,0)");
|
548 | typeof target.animated === "number" && clearTimeout(target.animated);
|
549 | target.animated = setTimeout(function() {
|
550 | css(target, "transition", "");
|
551 | css(target, "transform", "");
|
552 | target.animated = false;
|
553 | target.animatingX = false;
|
554 | target.animatingY = false;
|
555 | }, duration);
|
556 | }
|
557 | }
|
558 | };
|
559 | }
|
560 | function repaint(target) {
|
561 | return target.offsetWidth;
|
562 | }
|
563 | function calculateRealTime(animatingRect, fromRect, toRect, options) {
|
564 | return Math.sqrt(Math.pow(fromRect.top - animatingRect.top, 2) + Math.pow(fromRect.left - animatingRect.left, 2)) / Math.sqrt(Math.pow(fromRect.top - toRect.top, 2) + Math.pow(fromRect.left - toRect.left, 2)) * options.animation;
|
565 | }
|
566 | var plugins = [];
|
567 | var defaults = {
|
568 | initializeByDefault: true
|
569 | };
|
570 | var PluginManager = {
|
571 | mount: function mount(plugin) {
|
572 | for (var option2 in defaults) {
|
573 | if (defaults.hasOwnProperty(option2) && !(option2 in plugin)) {
|
574 | plugin[option2] = defaults[option2];
|
575 | }
|
576 | }
|
577 | plugins.forEach(function(p) {
|
578 | if (p.pluginName === plugin.pluginName) {
|
579 | throw "Sortable: Cannot mount plugin ".concat(plugin.pluginName, " more than once");
|
580 | }
|
581 | });
|
582 | plugins.push(plugin);
|
583 | },
|
584 | pluginEvent: function pluginEvent(eventName, sortable, evt) {
|
585 | var _this = this;
|
586 | this.eventCanceled = false;
|
587 | evt.cancel = function() {
|
588 | _this.eventCanceled = true;
|
589 | };
|
590 | var eventNameGlobal = eventName + "Global";
|
591 | plugins.forEach(function(plugin) {
|
592 | if (!sortable[plugin.pluginName])
|
593 | return;
|
594 | if (sortable[plugin.pluginName][eventNameGlobal]) {
|
595 | sortable[plugin.pluginName][eventNameGlobal](_objectSpread2$1({
|
596 | sortable
|
597 | }, evt));
|
598 | }
|
599 | if (sortable.options[plugin.pluginName] && sortable[plugin.pluginName][eventName]) {
|
600 | sortable[plugin.pluginName][eventName](_objectSpread2$1({
|
601 | sortable
|
602 | }, evt));
|
603 | }
|
604 | });
|
605 | },
|
606 | initializePlugins: function initializePlugins(sortable, el, defaults2, options) {
|
607 | plugins.forEach(function(plugin) {
|
608 | var pluginName = plugin.pluginName;
|
609 | if (!sortable.options[pluginName] && !plugin.initializeByDefault)
|
610 | return;
|
611 | var initialized = new plugin(sortable, el, sortable.options);
|
612 | initialized.sortable = sortable;
|
613 | initialized.options = sortable.options;
|
614 | sortable[pluginName] = initialized;
|
615 | _extends$g(defaults2, initialized.defaults);
|
616 | });
|
617 | for (var option2 in sortable.options) {
|
618 | if (!sortable.options.hasOwnProperty(option2))
|
619 | continue;
|
620 | var modified = this.modifyOption(sortable, option2, sortable.options[option2]);
|
621 | if (typeof modified !== "undefined") {
|
622 | sortable.options[option2] = modified;
|
623 | }
|
624 | }
|
625 | },
|
626 | getEventProperties: function getEventProperties(name, sortable) {
|
627 | var eventProperties = {};
|
628 | plugins.forEach(function(plugin) {
|
629 | if (typeof plugin.eventProperties !== "function")
|
630 | return;
|
631 | _extends$g(eventProperties, plugin.eventProperties.call(sortable[plugin.pluginName], name));
|
632 | });
|
633 | return eventProperties;
|
634 | },
|
635 | modifyOption: function modifyOption(sortable, name, value) {
|
636 | var modifiedValue;
|
637 | plugins.forEach(function(plugin) {
|
638 | if (!sortable[plugin.pluginName])
|
639 | return;
|
640 | if (plugin.optionListeners && typeof plugin.optionListeners[name] === "function") {
|
641 | modifiedValue = plugin.optionListeners[name].call(sortable[plugin.pluginName], value);
|
642 | }
|
643 | });
|
644 | return modifiedValue;
|
645 | }
|
646 | };
|
647 | function dispatchEvent(_ref) {
|
648 | var sortable = _ref.sortable, rootEl2 = _ref.rootEl, name = _ref.name, targetEl = _ref.targetEl, cloneEl2 = _ref.cloneEl, toEl = _ref.toEl, fromEl = _ref.fromEl, oldIndex2 = _ref.oldIndex, newIndex2 = _ref.newIndex, oldDraggableIndex2 = _ref.oldDraggableIndex, newDraggableIndex2 = _ref.newDraggableIndex, originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, extraEventProperties = _ref.extraEventProperties;
|
649 | sortable = sortable || rootEl2 && rootEl2[expando];
|
650 | if (!sortable)
|
651 | return;
|
652 | var evt, options = sortable.options, onName = "on" + name.charAt(0).toUpperCase() + name.substr(1);
|
653 | if (window.CustomEvent && !IE11OrLess && !Edge) {
|
654 | evt = new CustomEvent(name, {
|
655 | bubbles: true,
|
656 | cancelable: true
|
657 | });
|
658 | } else {
|
659 | evt = document.createEvent("Event");
|
660 | evt.initEvent(name, true, true);
|
661 | }
|
662 | evt.to = toEl || rootEl2;
|
663 | evt.from = fromEl || rootEl2;
|
664 | evt.item = targetEl || rootEl2;
|
665 | evt.clone = cloneEl2;
|
666 | evt.oldIndex = oldIndex2;
|
667 | evt.newIndex = newIndex2;
|
668 | evt.oldDraggableIndex = oldDraggableIndex2;
|
669 | evt.newDraggableIndex = newDraggableIndex2;
|
670 | evt.originalEvent = originalEvent;
|
671 | evt.pullMode = putSortable2 ? putSortable2.lastPutMode : void 0;
|
672 | var allEventProperties = _objectSpread2$1(_objectSpread2$1({}, extraEventProperties), PluginManager.getEventProperties(name, sortable));
|
673 | for (var option2 in allEventProperties) {
|
674 | evt[option2] = allEventProperties[option2];
|
675 | }
|
676 | if (rootEl2) {
|
677 | rootEl2.dispatchEvent(evt);
|
678 | }
|
679 | if (options[onName]) {
|
680 | options[onName].call(sortable, evt);
|
681 | }
|
682 | }
|
683 | var _excluded$2 = ["evt"];
|
684 | var pluginEvent2 = function pluginEvent3(eventName, sortable) {
|
685 | var _ref = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, originalEvent = _ref.evt, data = _objectWithoutProperties$3(_ref, _excluded$2);
|
686 | PluginManager.pluginEvent.bind(Sortable)(eventName, sortable, _objectSpread2$1({
|
687 | dragEl,
|
688 | parentEl,
|
689 | ghostEl,
|
690 | rootEl,
|
691 | nextEl,
|
692 | lastDownEl,
|
693 | cloneEl,
|
694 | cloneHidden,
|
695 | dragStarted: moved,
|
696 | putSortable,
|
697 | activeSortable: Sortable.active,
|
698 | originalEvent,
|
699 | oldIndex,
|
700 | oldDraggableIndex,
|
701 | newIndex,
|
702 | newDraggableIndex,
|
703 | hideGhostForTarget: _hideGhostForTarget,
|
704 | unhideGhostForTarget: _unhideGhostForTarget,
|
705 | cloneNowHidden: function cloneNowHidden() {
|
706 | cloneHidden = true;
|
707 | },
|
708 | cloneNowShown: function cloneNowShown() {
|
709 | cloneHidden = false;
|
710 | },
|
711 | dispatchSortableEvent: function dispatchSortableEvent(name) {
|
712 | _dispatchEvent({
|
713 | sortable,
|
714 | name,
|
715 | originalEvent
|
716 | });
|
717 | }
|
718 | }, data));
|
719 | };
|
720 | function _dispatchEvent(info) {
|
721 | dispatchEvent(_objectSpread2$1({
|
722 | putSortable,
|
723 | cloneEl,
|
724 | targetEl: dragEl,
|
725 | rootEl,
|
726 | oldIndex,
|
727 | oldDraggableIndex,
|
728 | newIndex,
|
729 | newDraggableIndex
|
730 | }, info));
|
731 | }
|
732 | var dragEl, parentEl, ghostEl, rootEl, nextEl, lastDownEl, cloneEl, cloneHidden, oldIndex, newIndex, oldDraggableIndex, newDraggableIndex, activeGroup, putSortable, awaitingDragStarted = false, ignoreNextClick = false, sortables = [], tapEvt, touchEvt, lastDx, lastDy, tapDistanceLeft, tapDistanceTop, moved, lastTarget, lastDirection, pastFirstInvertThresh = false, isCircumstantialInvert = false, targetMoveDistance, ghostRelativeParent, ghostRelativeParentInitialScroll = [], _silent = false, savedInputChecked = [];
|
733 | var documentExists = typeof document !== "undefined", PositionGhostAbsolutely = IOS, CSSFloatProperty = Edge || IE11OrLess ? "cssFloat" : "float", supportDraggable = documentExists && !ChromeForAndroid && !IOS && "draggable" in document.createElement("div"), supportCssPointerEvents = function() {
|
734 | if (!documentExists)
|
735 | return;
|
736 | if (IE11OrLess) {
|
737 | return false;
|
738 | }
|
739 | var el = document.createElement("x");
|
740 | el.style.cssText = "pointer-events:auto";
|
741 | return el.style.pointerEvents === "auto";
|
742 | }(), _detectDirection = function _detectDirection2(el, options) {
|
743 | var elCSS = css(el), elWidth = parseInt(elCSS.width) - parseInt(elCSS.paddingLeft) - parseInt(elCSS.paddingRight) - parseInt(elCSS.borderLeftWidth) - parseInt(elCSS.borderRightWidth), child1 = getChild(el, 0, options), child2 = getChild(el, 1, options), firstChildCSS = child1 && css(child1), secondChildCSS = child2 && css(child2), firstChildWidth = firstChildCSS && parseInt(firstChildCSS.marginLeft) + parseInt(firstChildCSS.marginRight) + getRect(child1).width, secondChildWidth = secondChildCSS && parseInt(secondChildCSS.marginLeft) + parseInt(secondChildCSS.marginRight) + getRect(child2).width;
|
744 | if (elCSS.display === "flex") {
|
745 | return elCSS.flexDirection === "column" || elCSS.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
746 | }
|
747 | if (elCSS.display === "grid") {
|
748 | return elCSS.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
749 | }
|
750 | if (child1 && firstChildCSS["float"] && firstChildCSS["float"] !== "none") {
|
751 | var touchingSideChild2 = firstChildCSS["float"] === "left" ? "left" : "right";
|
752 | return child2 && (secondChildCSS.clear === "both" || secondChildCSS.clear === touchingSideChild2) ? "vertical" : "horizontal";
|
753 | }
|
754 | return child1 && (firstChildCSS.display === "block" || firstChildCSS.display === "flex" || firstChildCSS.display === "table" || firstChildCSS.display === "grid" || firstChildWidth >= elWidth && elCSS[CSSFloatProperty] === "none" || child2 && elCSS[CSSFloatProperty] === "none" && firstChildWidth + secondChildWidth > elWidth) ? "vertical" : "horizontal";
|
755 | }, _dragElInRowColumn = function _dragElInRowColumn2(dragRect, targetRect, vertical) {
|
756 | var dragElS1Opp = vertical ? dragRect.left : dragRect.top, dragElS2Opp = vertical ? dragRect.right : dragRect.bottom, dragElOppLength = vertical ? dragRect.width : dragRect.height, targetS1Opp = vertical ? targetRect.left : targetRect.top, targetS2Opp = vertical ? targetRect.right : targetRect.bottom, targetOppLength = vertical ? targetRect.width : targetRect.height;
|
757 | return dragElS1Opp === targetS1Opp || dragElS2Opp === targetS2Opp || dragElS1Opp + dragElOppLength / 2 === targetS1Opp + targetOppLength / 2;
|
758 | }, _detectNearestEmptySortable = function _detectNearestEmptySortable2(x, y) {
|
759 | var ret;
|
760 | sortables.some(function(sortable) {
|
761 | var threshold = sortable[expando].options.emptyInsertThreshold;
|
762 | if (!threshold || lastChild(sortable))
|
763 | return;
|
764 | var rect = getRect(sortable), insideHorizontally = x >= rect.left - threshold && x <= rect.right + threshold, insideVertically = y >= rect.top - threshold && y <= rect.bottom + threshold;
|
765 | if (insideHorizontally && insideVertically) {
|
766 | return ret = sortable;
|
767 | }
|
768 | });
|
769 | return ret;
|
770 | }, _prepareGroup = function _prepareGroup2(options) {
|
771 | function toFn(value, pull) {
|
772 | return function(to, from, dragEl2, evt) {
|
773 | var sameGroup = to.options.group.name && from.options.group.name && to.options.group.name === from.options.group.name;
|
774 | if (value == null && (pull || sameGroup)) {
|
775 | return true;
|
776 | } else if (value == null || value === false) {
|
777 | return false;
|
778 | } else if (pull && value === "clone") {
|
779 | return value;
|
780 | } else if (typeof value === "function") {
|
781 | return toFn(value(to, from, dragEl2, evt), pull)(to, from, dragEl2, evt);
|
782 | } else {
|
783 | var otherGroup = (pull ? to : from).options.group.name;
|
784 | return value === true || typeof value === "string" && value === otherGroup || value.join && value.indexOf(otherGroup) > -1;
|
785 | }
|
786 | };
|
787 | }
|
788 | var group = {};
|
789 | var originalGroup = options.group;
|
790 | if (!originalGroup || _typeof$1(originalGroup) != "object") {
|
791 | originalGroup = {
|
792 | name: originalGroup
|
793 | };
|
794 | }
|
795 | group.name = originalGroup.name;
|
796 | group.checkPull = toFn(originalGroup.pull, true);
|
797 | group.checkPut = toFn(originalGroup.put);
|
798 | group.revertClone = originalGroup.revertClone;
|
799 | options.group = group;
|
800 | }, _hideGhostForTarget = function _hideGhostForTarget2() {
|
801 | if (!supportCssPointerEvents && ghostEl) {
|
802 | css(ghostEl, "display", "none");
|
803 | }
|
804 | }, _unhideGhostForTarget = function _unhideGhostForTarget2() {
|
805 | if (!supportCssPointerEvents && ghostEl) {
|
806 | css(ghostEl, "display", "");
|
807 | }
|
808 | };
|
809 | if (documentExists) {
|
810 | document.addEventListener("click", function(evt) {
|
811 | if (ignoreNextClick) {
|
812 | evt.preventDefault();
|
813 | evt.stopPropagation && evt.stopPropagation();
|
814 | evt.stopImmediatePropagation && evt.stopImmediatePropagation();
|
815 | ignoreNextClick = false;
|
816 | return false;
|
817 | }
|
818 | }, true);
|
819 | }
|
820 | var nearestEmptyInsertDetectEvent = function nearestEmptyInsertDetectEvent2(evt) {
|
821 | if (dragEl) {
|
822 | evt = evt.touches ? evt.touches[0] : evt;
|
823 | var nearest = _detectNearestEmptySortable(evt.clientX, evt.clientY);
|
824 | if (nearest) {
|
825 | var event = {};
|
826 | for (var i in evt) {
|
827 | if (evt.hasOwnProperty(i)) {
|
828 | event[i] = evt[i];
|
829 | }
|
830 | }
|
831 | event.target = event.rootEl = nearest;
|
832 | event.preventDefault = void 0;
|
833 | event.stopPropagation = void 0;
|
834 | nearest[expando]._onDragOver(event);
|
835 | }
|
836 | }
|
837 | };
|
838 | var _checkOutsideTargetEl = function _checkOutsideTargetEl2(evt) {
|
839 | if (dragEl) {
|
840 | dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
841 | }
|
842 | };
|
843 | function Sortable(el, options) {
|
844 | if (!(el && el.nodeType && el.nodeType === 1)) {
|
845 | throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(el));
|
846 | }
|
847 | this.el = el;
|
848 | this.options = options = _extends$g({}, options);
|
849 | el[expando] = this;
|
850 | var defaults2 = {
|
851 | group: null,
|
852 | sort: true,
|
853 | disabled: false,
|
854 | store: null,
|
855 | handle: null,
|
856 | draggable: /^[uo]l$/i.test(el.nodeName) ? ">li" : ">*",
|
857 | swapThreshold: 1,
|
858 | invertSwap: false,
|
859 | invertedSwapThreshold: null,
|
860 | removeCloneOnHide: true,
|
861 | direction: function direction() {
|
862 | return _detectDirection(el, this.options);
|
863 | },
|
864 | ghostClass: "sortable-ghost",
|
865 | chosenClass: "sortable-chosen",
|
866 | dragClass: "sortable-drag",
|
867 | ignore: "a, img",
|
868 | filter: null,
|
869 | preventOnFilter: true,
|
870 | animation: 0,
|
871 | easing: null,
|
872 | setData: function setData(dataTransfer, dragEl2) {
|
873 | dataTransfer.setData("Text", dragEl2.textContent);
|
874 | },
|
875 | dropBubble: false,
|
876 | dragoverBubble: false,
|
877 | dataIdAttr: "data-id",
|
878 | delay: 0,
|
879 | delayOnTouchOnly: false,
|
880 | touchStartThreshold: (Number.parseInt ? Number : window).parseInt(window.devicePixelRatio, 10) || 1,
|
881 | forceFallback: false,
|
882 | fallbackClass: "sortable-fallback",
|
883 | fallbackOnBody: false,
|
884 | fallbackTolerance: 0,
|
885 | fallbackOffset: {
|
886 | x: 0,
|
887 | y: 0
|
888 | },
|
889 | supportPointer: Sortable.supportPointer !== false && "PointerEvent" in window && !Safari,
|
890 | emptyInsertThreshold: 5
|
891 | };
|
892 | PluginManager.initializePlugins(this, el, defaults2);
|
893 | for (var name in defaults2) {
|
894 | !(name in options) && (options[name] = defaults2[name]);
|
895 | }
|
896 | _prepareGroup(options);
|
897 | for (var fn in this) {
|
898 | if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
|
899 | this[fn] = this[fn].bind(this);
|
900 | }
|
901 | }
|
902 | this.nativeDraggable = options.forceFallback ? false : supportDraggable;
|
903 | if (this.nativeDraggable) {
|
904 | this.options.touchStartThreshold = 1;
|
905 | }
|
906 | if (options.supportPointer) {
|
907 | on(el, "pointerdown", this._onTapStart);
|
908 | } else {
|
909 | on(el, "mousedown", this._onTapStart);
|
910 | on(el, "touchstart", this._onTapStart);
|
911 | }
|
912 | if (this.nativeDraggable) {
|
913 | on(el, "dragover", this);
|
914 | on(el, "dragenter", this);
|
915 | }
|
916 | sortables.push(this.el);
|
917 | options.store && options.store.get && this.sort(options.store.get(this) || []);
|
918 | _extends$g(this, AnimationStateManager());
|
919 | }
|
920 | Sortable.prototype = {
|
921 | constructor: Sortable,
|
922 | _isOutsideThisEl: function _isOutsideThisEl(target) {
|
923 | if (!this.el.contains(target) && target !== this.el) {
|
924 | lastTarget = null;
|
925 | }
|
926 | },
|
927 | _getDirection: function _getDirection(evt, target) {
|
928 | return typeof this.options.direction === "function" ? this.options.direction.call(this, evt, target, dragEl) : this.options.direction;
|
929 | },
|
930 | _onTapStart: function _onTapStart(evt) {
|
931 | if (!evt.cancelable)
|
932 | return;
|
933 | var _this = this, el = this.el, options = this.options, preventOnFilter = options.preventOnFilter, type = evt.type, touch = evt.touches && evt.touches[0] || evt.pointerType && evt.pointerType === "touch" && evt, target = (touch || evt).target, originalTarget = evt.target.shadowRoot && (evt.path && evt.path[0] || evt.composedPath && evt.composedPath()[0]) || target, filter = options.filter;
|
934 | _saveInputCheckedState(el);
|
935 | if (dragEl) {
|
936 | return;
|
937 | }
|
938 | if (/mousedown|pointerdown/.test(type) && evt.button !== 0 || options.disabled) {
|
939 | return;
|
940 | }
|
941 | if (originalTarget.isContentEditable) {
|
942 | return;
|
943 | }
|
944 | if (!this.nativeDraggable && Safari && target && target.tagName.toUpperCase() === "SELECT") {
|
945 | return;
|
946 | }
|
947 | target = closest(target, options.draggable, el, false);
|
948 | if (target && target.animated) {
|
949 | return;
|
950 | }
|
951 | if (lastDownEl === target) {
|
952 | return;
|
953 | }
|
954 | oldIndex = index$1(target);
|
955 | oldDraggableIndex = index$1(target, options.draggable);
|
956 | if (typeof filter === "function") {
|
957 | if (filter.call(this, evt, target, this)) {
|
958 | _dispatchEvent({
|
959 | sortable: _this,
|
960 | rootEl: originalTarget,
|
961 | name: "filter",
|
962 | targetEl: target,
|
963 | toEl: el,
|
964 | fromEl: el
|
965 | });
|
966 | pluginEvent2("filter", _this, {
|
967 | evt
|
968 | });
|
969 | preventOnFilter && evt.cancelable && evt.preventDefault();
|
970 | return;
|
971 | }
|
972 | } else if (filter) {
|
973 | filter = filter.split(",").some(function(criteria) {
|
974 | criteria = closest(originalTarget, criteria.trim(), el, false);
|
975 | if (criteria) {
|
976 | _dispatchEvent({
|
977 | sortable: _this,
|
978 | rootEl: criteria,
|
979 | name: "filter",
|
980 | targetEl: target,
|
981 | fromEl: el,
|
982 | toEl: el
|
983 | });
|
984 | pluginEvent2("filter", _this, {
|
985 | evt
|
986 | });
|
987 | return true;
|
988 | }
|
989 | });
|
990 | if (filter) {
|
991 | preventOnFilter && evt.cancelable && evt.preventDefault();
|
992 | return;
|
993 | }
|
994 | }
|
995 | if (options.handle && !closest(originalTarget, options.handle, el, false)) {
|
996 | return;
|
997 | }
|
998 | this._prepareDragStart(evt, touch, target);
|
999 | },
|
1000 | _prepareDragStart: function _prepareDragStart(evt, touch, target) {
|
1001 | var _this = this, el = _this.el, options = _this.options, ownerDocument = el.ownerDocument, dragStartFn;
|
1002 | if (target && !dragEl && target.parentNode === el) {
|
1003 | var dragRect = getRect(target);
|
1004 | rootEl = el;
|
1005 | dragEl = target;
|
1006 | parentEl = dragEl.parentNode;
|
1007 | nextEl = dragEl.nextSibling;
|
1008 | lastDownEl = target;
|
1009 | activeGroup = options.group;
|
1010 | Sortable.dragged = dragEl;
|
1011 | tapEvt = {
|
1012 | target: dragEl,
|
1013 | clientX: (touch || evt).clientX,
|
1014 | clientY: (touch || evt).clientY
|
1015 | };
|
1016 | tapDistanceLeft = tapEvt.clientX - dragRect.left;
|
1017 | tapDistanceTop = tapEvt.clientY - dragRect.top;
|
1018 | this._lastX = (touch || evt).clientX;
|
1019 | this._lastY = (touch || evt).clientY;
|
1020 | dragEl.style["will-change"] = "all";
|
1021 | dragStartFn = function dragStartFn2() {
|
1022 | pluginEvent2("delayEnded", _this, {
|
1023 | evt
|
1024 | });
|
1025 | if (Sortable.eventCanceled) {
|
1026 | _this._onDrop();
|
1027 | return;
|
1028 | }
|
1029 | _this._disableDelayedDragEvents();
|
1030 | if (!FireFox && _this.nativeDraggable) {
|
1031 | dragEl.draggable = true;
|
1032 | }
|
1033 | _this._triggerDragStart(evt, touch);
|
1034 | _dispatchEvent({
|
1035 | sortable: _this,
|
1036 | name: "choose",
|
1037 | originalEvent: evt
|
1038 | });
|
1039 | toggleClass(dragEl, options.chosenClass, true);
|
1040 | };
|
1041 | options.ignore.split(",").forEach(function(criteria) {
|
1042 | find(dragEl, criteria.trim(), _disableDraggable);
|
1043 | });
|
1044 | on(ownerDocument, "dragover", nearestEmptyInsertDetectEvent);
|
1045 | on(ownerDocument, "mousemove", nearestEmptyInsertDetectEvent);
|
1046 | on(ownerDocument, "touchmove", nearestEmptyInsertDetectEvent);
|
1047 | on(ownerDocument, "mouseup", _this._onDrop);
|
1048 | on(ownerDocument, "touchend", _this._onDrop);
|
1049 | on(ownerDocument, "touchcancel", _this._onDrop);
|
1050 | if (FireFox && this.nativeDraggable) {
|
1051 | this.options.touchStartThreshold = 4;
|
1052 | dragEl.draggable = true;
|
1053 | }
|
1054 | pluginEvent2("delayStart", this, {
|
1055 | evt
|
1056 | });
|
1057 | if (options.delay && (!options.delayOnTouchOnly || touch) && (!this.nativeDraggable || !(Edge || IE11OrLess))) {
|
1058 | if (Sortable.eventCanceled) {
|
1059 | this._onDrop();
|
1060 | return;
|
1061 | }
|
1062 | on(ownerDocument, "mouseup", _this._disableDelayedDrag);
|
1063 | on(ownerDocument, "touchend", _this._disableDelayedDrag);
|
1064 | on(ownerDocument, "touchcancel", _this._disableDelayedDrag);
|
1065 | on(ownerDocument, "mousemove", _this._delayedDragTouchMoveHandler);
|
1066 | on(ownerDocument, "touchmove", _this._delayedDragTouchMoveHandler);
|
1067 | options.supportPointer && on(ownerDocument, "pointermove", _this._delayedDragTouchMoveHandler);
|
1068 | _this._dragStartTimer = setTimeout(dragStartFn, options.delay);
|
1069 | } else {
|
1070 | dragStartFn();
|
1071 | }
|
1072 | }
|
1073 | },
|
1074 | _delayedDragTouchMoveHandler: function _delayedDragTouchMoveHandler(e) {
|
1075 | var touch = e.touches ? e.touches[0] : e;
|
1076 | if (Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1))) {
|
1077 | this._disableDelayedDrag();
|
1078 | }
|
1079 | },
|
1080 | _disableDelayedDrag: function _disableDelayedDrag() {
|
1081 | dragEl && _disableDraggable(dragEl);
|
1082 | clearTimeout(this._dragStartTimer);
|
1083 | this._disableDelayedDragEvents();
|
1084 | },
|
1085 | _disableDelayedDragEvents: function _disableDelayedDragEvents() {
|
1086 | var ownerDocument = this.el.ownerDocument;
|
1087 | off(ownerDocument, "mouseup", this._disableDelayedDrag);
|
1088 | off(ownerDocument, "touchend", this._disableDelayedDrag);
|
1089 | off(ownerDocument, "touchcancel", this._disableDelayedDrag);
|
1090 | off(ownerDocument, "mousemove", this._delayedDragTouchMoveHandler);
|
1091 | off(ownerDocument, "touchmove", this._delayedDragTouchMoveHandler);
|
1092 | off(ownerDocument, "pointermove", this._delayedDragTouchMoveHandler);
|
1093 | },
|
1094 | _triggerDragStart: function _triggerDragStart(evt, touch) {
|
1095 | touch = touch || evt.pointerType == "touch" && evt;
|
1096 | if (!this.nativeDraggable || touch) {
|
1097 | if (this.options.supportPointer) {
|
1098 | on(document, "pointermove", this._onTouchMove);
|
1099 | } else if (touch) {
|
1100 | on(document, "touchmove", this._onTouchMove);
|
1101 | } else {
|
1102 | on(document, "mousemove", this._onTouchMove);
|
1103 | }
|
1104 | } else {
|
1105 | on(dragEl, "dragend", this);
|
1106 | on(rootEl, "dragstart", this._onDragStart);
|
1107 | }
|
1108 | try {
|
1109 | if (document.selection) {
|
1110 | _nextTick(function() {
|
1111 | document.selection.empty();
|
1112 | });
|
1113 | } else {
|
1114 | window.getSelection().removeAllRanges();
|
1115 | }
|
1116 | } catch (err) {
|
1117 | }
|
1118 | },
|
1119 | _dragStarted: function _dragStarted(fallback, evt) {
|
1120 | awaitingDragStarted = false;
|
1121 | if (rootEl && dragEl) {
|
1122 | pluginEvent2("dragStarted", this, {
|
1123 | evt
|
1124 | });
|
1125 | if (this.nativeDraggable) {
|
1126 | on(document, "dragover", _checkOutsideTargetEl);
|
1127 | }
|
1128 | var options = this.options;
|
1129 | !fallback && toggleClass(dragEl, options.dragClass, false);
|
1130 | toggleClass(dragEl, options.ghostClass, true);
|
1131 | Sortable.active = this;
|
1132 | fallback && this._appendGhost();
|
1133 | _dispatchEvent({
|
1134 | sortable: this,
|
1135 | name: "start",
|
1136 | originalEvent: evt
|
1137 | });
|
1138 | } else {
|
1139 | this._nulling();
|
1140 | }
|
1141 | },
|
1142 | _emulateDragOver: function _emulateDragOver() {
|
1143 | if (touchEvt) {
|
1144 | this._lastX = touchEvt.clientX;
|
1145 | this._lastY = touchEvt.clientY;
|
1146 | _hideGhostForTarget();
|
1147 | var target = document.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
1148 | var parent = target;
|
1149 | while (target && target.shadowRoot) {
|
1150 | target = target.shadowRoot.elementFromPoint(touchEvt.clientX, touchEvt.clientY);
|
1151 | if (target === parent)
|
1152 | break;
|
1153 | parent = target;
|
1154 | }
|
1155 | dragEl.parentNode[expando]._isOutsideThisEl(target);
|
1156 | if (parent) {
|
1157 | do {
|
1158 | if (parent[expando]) {
|
1159 | var inserted = void 0;
|
1160 | inserted = parent[expando]._onDragOver({
|
1161 | clientX: touchEvt.clientX,
|
1162 | clientY: touchEvt.clientY,
|
1163 | target,
|
1164 | rootEl: parent
|
1165 | });
|
1166 | if (inserted && !this.options.dragoverBubble) {
|
1167 | break;
|
1168 | }
|
1169 | }
|
1170 | target = parent;
|
1171 | } while (parent = parent.parentNode);
|
1172 | }
|
1173 | _unhideGhostForTarget();
|
1174 | }
|
1175 | },
|
1176 | _onTouchMove: function _onTouchMove(evt) {
|
1177 | if (tapEvt) {
|
1178 | var options = this.options, fallbackTolerance = options.fallbackTolerance, fallbackOffset = options.fallbackOffset, touch = evt.touches ? evt.touches[0] : evt, ghostMatrix = ghostEl && matrix(ghostEl, true), scaleX = ghostEl && ghostMatrix && ghostMatrix.a, scaleY = ghostEl && ghostMatrix && ghostMatrix.d, relativeScrollOffset = PositionGhostAbsolutely && ghostRelativeParent && getRelativeScrollOffset(ghostRelativeParent), dx = (touch.clientX - tapEvt.clientX + fallbackOffset.x) / (scaleX || 1) + (relativeScrollOffset ? relativeScrollOffset[0] - ghostRelativeParentInitialScroll[0] : 0) / (scaleX || 1), dy = (touch.clientY - tapEvt.clientY + fallbackOffset.y) / (scaleY || 1) + (relativeScrollOffset ? relativeScrollOffset[1] - ghostRelativeParentInitialScroll[1] : 0) / (scaleY || 1);
|
1179 | if (!Sortable.active && !awaitingDragStarted) {
|
1180 | if (fallbackTolerance && Math.max(Math.abs(touch.clientX - this._lastX), Math.abs(touch.clientY - this._lastY)) < fallbackTolerance) {
|
1181 | return;
|
1182 | }
|
1183 | this._onDragStart(evt, true);
|
1184 | }
|
1185 | if (ghostEl) {
|
1186 | if (ghostMatrix) {
|
1187 | ghostMatrix.e += dx - (lastDx || 0);
|
1188 | ghostMatrix.f += dy - (lastDy || 0);
|
1189 | } else {
|
1190 | ghostMatrix = {
|
1191 | a: 1,
|
1192 | b: 0,
|
1193 | c: 0,
|
1194 | d: 1,
|
1195 | e: dx,
|
1196 | f: dy
|
1197 | };
|
1198 | }
|
1199 | var cssMatrix = "matrix(".concat(ghostMatrix.a, ",").concat(ghostMatrix.b, ",").concat(ghostMatrix.c, ",").concat(ghostMatrix.d, ",").concat(ghostMatrix.e, ",").concat(ghostMatrix.f, ")");
|
1200 | css(ghostEl, "webkitTransform", cssMatrix);
|
1201 | css(ghostEl, "mozTransform", cssMatrix);
|
1202 | css(ghostEl, "msTransform", cssMatrix);
|
1203 | css(ghostEl, "transform", cssMatrix);
|
1204 | lastDx = dx;
|
1205 | lastDy = dy;
|
1206 | touchEvt = touch;
|
1207 | }
|
1208 | evt.cancelable && evt.preventDefault();
|
1209 | }
|
1210 | },
|
1211 | _appendGhost: function _appendGhost() {
|
1212 | if (!ghostEl) {
|
1213 | var container = this.options.fallbackOnBody ? document.body : rootEl, rect = getRect(dragEl, true, PositionGhostAbsolutely, true, container), options = this.options;
|
1214 | if (PositionGhostAbsolutely) {
|
1215 | ghostRelativeParent = container;
|
1216 | while (css(ghostRelativeParent, "position") === "static" && css(ghostRelativeParent, "transform") === "none" && ghostRelativeParent !== document) {
|
1217 | ghostRelativeParent = ghostRelativeParent.parentNode;
|
1218 | }
|
1219 | if (ghostRelativeParent !== document.body && ghostRelativeParent !== document.documentElement) {
|
1220 | if (ghostRelativeParent === document)
|
1221 | ghostRelativeParent = getWindowScrollingElement();
|
1222 | rect.top += ghostRelativeParent.scrollTop;
|
1223 | rect.left += ghostRelativeParent.scrollLeft;
|
1224 | } else {
|
1225 | ghostRelativeParent = getWindowScrollingElement();
|
1226 | }
|
1227 | ghostRelativeParentInitialScroll = getRelativeScrollOffset(ghostRelativeParent);
|
1228 | }
|
1229 | ghostEl = dragEl.cloneNode(true);
|
1230 | toggleClass(ghostEl, options.ghostClass, false);
|
1231 | toggleClass(ghostEl, options.fallbackClass, true);
|
1232 | toggleClass(ghostEl, options.dragClass, true);
|
1233 | css(ghostEl, "transition", "");
|
1234 | css(ghostEl, "transform", "");
|
1235 | css(ghostEl, "box-sizing", "border-box");
|
1236 | css(ghostEl, "margin", 0);
|
1237 | css(ghostEl, "top", rect.top);
|
1238 | css(ghostEl, "left", rect.left);
|
1239 | css(ghostEl, "width", rect.width);
|
1240 | css(ghostEl, "height", rect.height);
|
1241 | css(ghostEl, "opacity", "0.8");
|
1242 | css(ghostEl, "position", PositionGhostAbsolutely ? "absolute" : "fixed");
|
1243 | css(ghostEl, "zIndex", "100000");
|
1244 | css(ghostEl, "pointerEvents", "none");
|
1245 | Sortable.ghost = ghostEl;
|
1246 | container.appendChild(ghostEl);
|
1247 | css(ghostEl, "transform-origin", tapDistanceLeft / parseInt(ghostEl.style.width) * 100 + "% " + tapDistanceTop / parseInt(ghostEl.style.height) * 100 + "%");
|
1248 | }
|
1249 | },
|
1250 | _onDragStart: function _onDragStart(evt, fallback) {
|
1251 | var _this = this;
|
1252 | var dataTransfer = evt.dataTransfer;
|
1253 | var options = _this.options;
|
1254 | pluginEvent2("dragStart", this, {
|
1255 | evt
|
1256 | });
|
1257 | if (Sortable.eventCanceled) {
|
1258 | this._onDrop();
|
1259 | return;
|
1260 | }
|
1261 | pluginEvent2("setupClone", this);
|
1262 | if (!Sortable.eventCanceled) {
|
1263 | cloneEl = clone$1(dragEl);
|
1264 | cloneEl.draggable = false;
|
1265 | cloneEl.style["will-change"] = "";
|
1266 | this._hideClone();
|
1267 | toggleClass(cloneEl, this.options.chosenClass, false);
|
1268 | Sortable.clone = cloneEl;
|
1269 | }
|
1270 | _this.cloneId = _nextTick(function() {
|
1271 | pluginEvent2("clone", _this);
|
1272 | if (Sortable.eventCanceled)
|
1273 | return;
|
1274 | if (!_this.options.removeCloneOnHide) {
|
1275 | rootEl.insertBefore(cloneEl, dragEl);
|
1276 | }
|
1277 | _this._hideClone();
|
1278 | _dispatchEvent({
|
1279 | sortable: _this,
|
1280 | name: "clone"
|
1281 | });
|
1282 | });
|
1283 | !fallback && toggleClass(dragEl, options.dragClass, true);
|
1284 | if (fallback) {
|
1285 | ignoreNextClick = true;
|
1286 | _this._loopId = setInterval(_this._emulateDragOver, 50);
|
1287 | } else {
|
1288 | off(document, "mouseup", _this._onDrop);
|
1289 | off(document, "touchend", _this._onDrop);
|
1290 | off(document, "touchcancel", _this._onDrop);
|
1291 | if (dataTransfer) {
|
1292 | dataTransfer.effectAllowed = "move";
|
1293 | options.setData && options.setData.call(_this, dataTransfer, dragEl);
|
1294 | }
|
1295 | on(document, "drop", _this);
|
1296 | css(dragEl, "transform", "translateZ(0)");
|
1297 | }
|
1298 | awaitingDragStarted = true;
|
1299 | _this._dragStartId = _nextTick(_this._dragStarted.bind(_this, fallback, evt));
|
1300 | on(document, "selectstart", _this);
|
1301 | moved = true;
|
1302 | if (Safari) {
|
1303 | css(document.body, "user-select", "none");
|
1304 | }
|
1305 | },
|
1306 | _onDragOver: function _onDragOver(evt) {
|
1307 | var el = this.el, target = evt.target, dragRect, targetRect, revert, options = this.options, group = options.group, activeSortable = Sortable.active, isOwner = activeGroup === group, canSort = options.sort, fromSortable = putSortable || activeSortable, vertical, _this = this, completedFired = false;
|
1308 | if (_silent)
|
1309 | return;
|
1310 | function dragOverEvent(name, extra) {
|
1311 | pluginEvent2(name, _this, _objectSpread2$1({
|
1312 | evt,
|
1313 | isOwner,
|
1314 | axis: vertical ? "vertical" : "horizontal",
|
1315 | revert,
|
1316 | dragRect,
|
1317 | targetRect,
|
1318 | canSort,
|
1319 | fromSortable,
|
1320 | target,
|
1321 | completed,
|
1322 | onMove: function onMove(target2, after2) {
|
1323 | return _onMove(rootEl, el, dragEl, dragRect, target2, getRect(target2), evt, after2);
|
1324 | },
|
1325 | changed
|
1326 | }, extra));
|
1327 | }
|
1328 | function capture() {
|
1329 | dragOverEvent("dragOverAnimationCapture");
|
1330 | _this.captureAnimationState();
|
1331 | if (_this !== fromSortable) {
|
1332 | fromSortable.captureAnimationState();
|
1333 | }
|
1334 | }
|
1335 | function completed(insertion) {
|
1336 | dragOverEvent("dragOverCompleted", {
|
1337 | insertion
|
1338 | });
|
1339 | if (insertion) {
|
1340 | if (isOwner) {
|
1341 | activeSortable._hideClone();
|
1342 | } else {
|
1343 | activeSortable._showClone(_this);
|
1344 | }
|
1345 | if (_this !== fromSortable) {
|
1346 | toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : activeSortable.options.ghostClass, false);
|
1347 | toggleClass(dragEl, options.ghostClass, true);
|
1348 | }
|
1349 | if (putSortable !== _this && _this !== Sortable.active) {
|
1350 | putSortable = _this;
|
1351 | } else if (_this === Sortable.active && putSortable) {
|
1352 | putSortable = null;
|
1353 | }
|
1354 | if (fromSortable === _this) {
|
1355 | _this._ignoreWhileAnimating = target;
|
1356 | }
|
1357 | _this.animateAll(function() {
|
1358 | dragOverEvent("dragOverAnimationComplete");
|
1359 | _this._ignoreWhileAnimating = null;
|
1360 | });
|
1361 | if (_this !== fromSortable) {
|
1362 | fromSortable.animateAll();
|
1363 | fromSortable._ignoreWhileAnimating = null;
|
1364 | }
|
1365 | }
|
1366 | if (target === dragEl && !dragEl.animated || target === el && !target.animated) {
|
1367 | lastTarget = null;
|
1368 | }
|
1369 | if (!options.dragoverBubble && !evt.rootEl && target !== document) {
|
1370 | dragEl.parentNode[expando]._isOutsideThisEl(evt.target);
|
1371 | !insertion && nearestEmptyInsertDetectEvent(evt);
|
1372 | }
|
1373 | !options.dragoverBubble && evt.stopPropagation && evt.stopPropagation();
|
1374 | return completedFired = true;
|
1375 | }
|
1376 | function changed() {
|
1377 | newIndex = index$1(dragEl);
|
1378 | newDraggableIndex = index$1(dragEl, options.draggable);
|
1379 | _dispatchEvent({
|
1380 | sortable: _this,
|
1381 | name: "change",
|
1382 | toEl: el,
|
1383 | newIndex,
|
1384 | newDraggableIndex,
|
1385 | originalEvent: evt
|
1386 | });
|
1387 | }
|
1388 | if (evt.preventDefault !== void 0) {
|
1389 | evt.cancelable && evt.preventDefault();
|
1390 | }
|
1391 | target = closest(target, options.draggable, el, true);
|
1392 | dragOverEvent("dragOver");
|
1393 | if (Sortable.eventCanceled)
|
1394 | return completedFired;
|
1395 | if (dragEl.contains(evt.target) || target.animated && target.animatingX && target.animatingY || _this._ignoreWhileAnimating === target) {
|
1396 | return completed(false);
|
1397 | }
|
1398 | ignoreNextClick = false;
|
1399 | if (activeSortable && !options.disabled && (isOwner ? canSort || (revert = parentEl !== rootEl) : putSortable === this || (this.lastPutMode = activeGroup.checkPull(this, activeSortable, dragEl, evt)) && group.checkPut(this, activeSortable, dragEl, evt))) {
|
1400 | vertical = this._getDirection(evt, target) === "vertical";
|
1401 | dragRect = getRect(dragEl);
|
1402 | dragOverEvent("dragOverValid");
|
1403 | if (Sortable.eventCanceled)
|
1404 | return completedFired;
|
1405 | if (revert) {
|
1406 | parentEl = rootEl;
|
1407 | capture();
|
1408 | this._hideClone();
|
1409 | dragOverEvent("revert");
|
1410 | if (!Sortable.eventCanceled) {
|
1411 | if (nextEl) {
|
1412 | rootEl.insertBefore(dragEl, nextEl);
|
1413 | } else {
|
1414 | rootEl.appendChild(dragEl);
|
1415 | }
|
1416 | }
|
1417 | return completed(true);
|
1418 | }
|
1419 | var elLastChild = lastChild(el, options.draggable);
|
1420 | if (!elLastChild || _ghostIsLast(evt, vertical, this) && !elLastChild.animated) {
|
1421 | if (elLastChild === dragEl) {
|
1422 | return completed(false);
|
1423 | }
|
1424 | if (elLastChild && el === evt.target) {
|
1425 | target = elLastChild;
|
1426 | }
|
1427 | if (target) {
|
1428 | targetRect = getRect(target);
|
1429 | }
|
1430 | if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, !!target) !== false) {
|
1431 | capture();
|
1432 | el.appendChild(dragEl);
|
1433 | parentEl = el;
|
1434 | changed();
|
1435 | return completed(true);
|
1436 | }
|
1437 | } else if (elLastChild && _ghostIsFirst(evt, vertical, this)) {
|
1438 | var firstChild = getChild(el, 0, options, true);
|
1439 | if (firstChild === dragEl) {
|
1440 | return completed(false);
|
1441 | }
|
1442 | target = firstChild;
|
1443 | targetRect = getRect(target);
|
1444 | if (_onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, false) !== false) {
|
1445 | capture();
|
1446 | el.insertBefore(dragEl, firstChild);
|
1447 | parentEl = el;
|
1448 | changed();
|
1449 | return completed(true);
|
1450 | }
|
1451 | } else if (target.parentNode === el) {
|
1452 | targetRect = getRect(target);
|
1453 | var direction = 0, targetBeforeFirstSwap, differentLevel = dragEl.parentNode !== el, differentRowCol = !_dragElInRowColumn(dragEl.animated && dragEl.toRect || dragRect, target.animated && target.toRect || targetRect, vertical), side1 = vertical ? "top" : "left", scrolledPastTop = isScrolledPast(target, "top", "top") || isScrolledPast(dragEl, "top", "top"), scrollBefore = scrolledPastTop ? scrolledPastTop.scrollTop : void 0;
|
1454 | if (lastTarget !== target) {
|
1455 | targetBeforeFirstSwap = targetRect[side1];
|
1456 | pastFirstInvertThresh = false;
|
1457 | isCircumstantialInvert = !differentRowCol && options.invertSwap || differentLevel;
|
1458 | }
|
1459 | direction = _getSwapDirection(evt, target, targetRect, vertical, differentRowCol ? 1 : options.swapThreshold, options.invertedSwapThreshold == null ? options.swapThreshold : options.invertedSwapThreshold, isCircumstantialInvert, lastTarget === target);
|
1460 | var sibling;
|
1461 | if (direction !== 0) {
|
1462 | var dragIndex = index$1(dragEl);
|
1463 | do {
|
1464 | dragIndex -= direction;
|
1465 | sibling = parentEl.children[dragIndex];
|
1466 | } while (sibling && (css(sibling, "display") === "none" || sibling === ghostEl));
|
1467 | }
|
1468 | if (direction === 0 || sibling === target) {
|
1469 | return completed(false);
|
1470 | }
|
1471 | lastTarget = target;
|
1472 | lastDirection = direction;
|
1473 | var nextSibling = target.nextElementSibling, after = false;
|
1474 | after = direction === 1;
|
1475 | var moveVector = _onMove(rootEl, el, dragEl, dragRect, target, targetRect, evt, after);
|
1476 | if (moveVector !== false) {
|
1477 | if (moveVector === 1 || moveVector === -1) {
|
1478 | after = moveVector === 1;
|
1479 | }
|
1480 | _silent = true;
|
1481 | setTimeout(_unsilent, 30);
|
1482 | capture();
|
1483 | if (after && !nextSibling) {
|
1484 | el.appendChild(dragEl);
|
1485 | } else {
|
1486 | target.parentNode.insertBefore(dragEl, after ? nextSibling : target);
|
1487 | }
|
1488 | if (scrolledPastTop) {
|
1489 | scrollBy(scrolledPastTop, 0, scrollBefore - scrolledPastTop.scrollTop);
|
1490 | }
|
1491 | parentEl = dragEl.parentNode;
|
1492 | if (targetBeforeFirstSwap !== void 0 && !isCircumstantialInvert) {
|
1493 | targetMoveDistance = Math.abs(targetBeforeFirstSwap - getRect(target)[side1]);
|
1494 | }
|
1495 | changed();
|
1496 | return completed(true);
|
1497 | }
|
1498 | }
|
1499 | if (el.contains(dragEl)) {
|
1500 | return completed(false);
|
1501 | }
|
1502 | }
|
1503 | return false;
|
1504 | },
|
1505 | _ignoreWhileAnimating: null,
|
1506 | _offMoveEvents: function _offMoveEvents() {
|
1507 | off(document, "mousemove", this._onTouchMove);
|
1508 | off(document, "touchmove", this._onTouchMove);
|
1509 | off(document, "pointermove", this._onTouchMove);
|
1510 | off(document, "dragover", nearestEmptyInsertDetectEvent);
|
1511 | off(document, "mousemove", nearestEmptyInsertDetectEvent);
|
1512 | off(document, "touchmove", nearestEmptyInsertDetectEvent);
|
1513 | },
|
1514 | _offUpEvents: function _offUpEvents() {
|
1515 | var ownerDocument = this.el.ownerDocument;
|
1516 | off(ownerDocument, "mouseup", this._onDrop);
|
1517 | off(ownerDocument, "touchend", this._onDrop);
|
1518 | off(ownerDocument, "pointerup", this._onDrop);
|
1519 | off(ownerDocument, "touchcancel", this._onDrop);
|
1520 | off(document, "selectstart", this);
|
1521 | },
|
1522 | _onDrop: function _onDrop(evt) {
|
1523 | var el = this.el, options = this.options;
|
1524 | newIndex = index$1(dragEl);
|
1525 | newDraggableIndex = index$1(dragEl, options.draggable);
|
1526 | pluginEvent2("drop", this, {
|
1527 | evt
|
1528 | });
|
1529 | parentEl = dragEl && dragEl.parentNode;
|
1530 | newIndex = index$1(dragEl);
|
1531 | newDraggableIndex = index$1(dragEl, options.draggable);
|
1532 | if (Sortable.eventCanceled) {
|
1533 | this._nulling();
|
1534 | return;
|
1535 | }
|
1536 | awaitingDragStarted = false;
|
1537 | isCircumstantialInvert = false;
|
1538 | pastFirstInvertThresh = false;
|
1539 | clearInterval(this._loopId);
|
1540 | clearTimeout(this._dragStartTimer);
|
1541 | _cancelNextTick(this.cloneId);
|
1542 | _cancelNextTick(this._dragStartId);
|
1543 | if (this.nativeDraggable) {
|
1544 | off(document, "drop", this);
|
1545 | off(el, "dragstart", this._onDragStart);
|
1546 | }
|
1547 | this._offMoveEvents();
|
1548 | this._offUpEvents();
|
1549 | if (Safari) {
|
1550 | css(document.body, "user-select", "");
|
1551 | }
|
1552 | css(dragEl, "transform", "");
|
1553 | if (evt) {
|
1554 | if (moved) {
|
1555 | evt.cancelable && evt.preventDefault();
|
1556 | !options.dropBubble && evt.stopPropagation();
|
1557 | }
|
1558 | ghostEl && ghostEl.parentNode && ghostEl.parentNode.removeChild(ghostEl);
|
1559 | if (rootEl === parentEl || putSortable && putSortable.lastPutMode !== "clone") {
|
1560 | cloneEl && cloneEl.parentNode && cloneEl.parentNode.removeChild(cloneEl);
|
1561 | }
|
1562 | if (dragEl) {
|
1563 | if (this.nativeDraggable) {
|
1564 | off(dragEl, "dragend", this);
|
1565 | }
|
1566 | _disableDraggable(dragEl);
|
1567 | dragEl.style["will-change"] = "";
|
1568 | if (moved && !awaitingDragStarted) {
|
1569 | toggleClass(dragEl, putSortable ? putSortable.options.ghostClass : this.options.ghostClass, false);
|
1570 | }
|
1571 | toggleClass(dragEl, this.options.chosenClass, false);
|
1572 | _dispatchEvent({
|
1573 | sortable: this,
|
1574 | name: "unchoose",
|
1575 | toEl: parentEl,
|
1576 | newIndex: null,
|
1577 | newDraggableIndex: null,
|
1578 | originalEvent: evt
|
1579 | });
|
1580 | if (rootEl !== parentEl) {
|
1581 | if (newIndex >= 0) {
|
1582 | _dispatchEvent({
|
1583 | rootEl: parentEl,
|
1584 | name: "add",
|
1585 | toEl: parentEl,
|
1586 | fromEl: rootEl,
|
1587 | originalEvent: evt
|
1588 | });
|
1589 | _dispatchEvent({
|
1590 | sortable: this,
|
1591 | name: "remove",
|
1592 | toEl: parentEl,
|
1593 | originalEvent: evt
|
1594 | });
|
1595 | _dispatchEvent({
|
1596 | rootEl: parentEl,
|
1597 | name: "sort",
|
1598 | toEl: parentEl,
|
1599 | fromEl: rootEl,
|
1600 | originalEvent: evt
|
1601 | });
|
1602 | _dispatchEvent({
|
1603 | sortable: this,
|
1604 | name: "sort",
|
1605 | toEl: parentEl,
|
1606 | originalEvent: evt
|
1607 | });
|
1608 | }
|
1609 | putSortable && putSortable.save();
|
1610 | } else {
|
1611 | if (newIndex !== oldIndex) {
|
1612 | if (newIndex >= 0) {
|
1613 | _dispatchEvent({
|
1614 | sortable: this,
|
1615 | name: "update",
|
1616 | toEl: parentEl,
|
1617 | originalEvent: evt
|
1618 | });
|
1619 | _dispatchEvent({
|
1620 | sortable: this,
|
1621 | name: "sort",
|
1622 | toEl: parentEl,
|
1623 | originalEvent: evt
|
1624 | });
|
1625 | }
|
1626 | }
|
1627 | }
|
1628 | if (Sortable.active) {
|
1629 | if (newIndex == null || newIndex === -1) {
|
1630 | newIndex = oldIndex;
|
1631 | newDraggableIndex = oldDraggableIndex;
|
1632 | }
|
1633 | _dispatchEvent({
|
1634 | sortable: this,
|
1635 | name: "end",
|
1636 | toEl: parentEl,
|
1637 | originalEvent: evt
|
1638 | });
|
1639 | this.save();
|
1640 | }
|
1641 | }
|
1642 | }
|
1643 | this._nulling();
|
1644 | },
|
1645 | _nulling: function _nulling() {
|
1646 | pluginEvent2("nulling", this);
|
1647 | rootEl = dragEl = parentEl = ghostEl = nextEl = cloneEl = lastDownEl = cloneHidden = tapEvt = touchEvt = moved = newIndex = newDraggableIndex = oldIndex = oldDraggableIndex = lastTarget = lastDirection = putSortable = activeGroup = Sortable.dragged = Sortable.ghost = Sortable.clone = Sortable.active = null;
|
1648 | savedInputChecked.forEach(function(el) {
|
1649 | el.checked = true;
|
1650 | });
|
1651 | savedInputChecked.length = lastDx = lastDy = 0;
|
1652 | },
|
1653 | handleEvent: function handleEvent(evt) {
|
1654 | switch (evt.type) {
|
1655 | case "drop":
|
1656 | case "dragend":
|
1657 | this._onDrop(evt);
|
1658 | break;
|
1659 | case "dragenter":
|
1660 | case "dragover":
|
1661 | if (dragEl) {
|
1662 | this._onDragOver(evt);
|
1663 | _globalDragOver(evt);
|
1664 | }
|
1665 | break;
|
1666 | case "selectstart":
|
1667 | evt.preventDefault();
|
1668 | break;
|
1669 | }
|
1670 | },
|
1671 | toArray: function toArray() {
|
1672 | var order = [], el, children = this.el.children, i = 0, n = children.length, options = this.options;
|
1673 | for (; i < n; i++) {
|
1674 | el = children[i];
|
1675 | if (closest(el, options.draggable, this.el, false)) {
|
1676 | order.push(el.getAttribute(options.dataIdAttr) || _generateId(el));
|
1677 | }
|
1678 | }
|
1679 | return order;
|
1680 | },
|
1681 | sort: function sort(order, useAnimation) {
|
1682 | var items = {}, rootEl2 = this.el;
|
1683 | this.toArray().forEach(function(id, i) {
|
1684 | var el = rootEl2.children[i];
|
1685 | if (closest(el, this.options.draggable, rootEl2, false)) {
|
1686 | items[id] = el;
|
1687 | }
|
1688 | }, this);
|
1689 | useAnimation && this.captureAnimationState();
|
1690 | order.forEach(function(id) {
|
1691 | if (items[id]) {
|
1692 | rootEl2.removeChild(items[id]);
|
1693 | rootEl2.appendChild(items[id]);
|
1694 | }
|
1695 | });
|
1696 | useAnimation && this.animateAll();
|
1697 | },
|
1698 | save: function save() {
|
1699 | var store = this.options.store;
|
1700 | store && store.set && store.set(this);
|
1701 | },
|
1702 | closest: function closest$1(el, selector) {
|
1703 | return closest(el, selector || this.options.draggable, this.el, false);
|
1704 | },
|
1705 | option: function option(name, value) {
|
1706 | var options = this.options;
|
1707 | if (value === void 0) {
|
1708 | return options[name];
|
1709 | } else {
|
1710 | var modifiedValue = PluginManager.modifyOption(this, name, value);
|
1711 | if (typeof modifiedValue !== "undefined") {
|
1712 | options[name] = modifiedValue;
|
1713 | } else {
|
1714 | options[name] = value;
|
1715 | }
|
1716 | if (name === "group") {
|
1717 | _prepareGroup(options);
|
1718 | }
|
1719 | }
|
1720 | },
|
1721 | destroy: function destroy() {
|
1722 | pluginEvent2("destroy", this);
|
1723 | var el = this.el;
|
1724 | el[expando] = null;
|
1725 | off(el, "mousedown", this._onTapStart);
|
1726 | off(el, "touchstart", this._onTapStart);
|
1727 | off(el, "pointerdown", this._onTapStart);
|
1728 | if (this.nativeDraggable) {
|
1729 | off(el, "dragover", this);
|
1730 | off(el, "dragenter", this);
|
1731 | }
|
1732 | Array.prototype.forEach.call(el.querySelectorAll("[draggable]"), function(el2) {
|
1733 | el2.removeAttribute("draggable");
|
1734 | });
|
1735 | this._onDrop();
|
1736 | this._disableDelayedDragEvents();
|
1737 | sortables.splice(sortables.indexOf(this.el), 1);
|
1738 | this.el = el = null;
|
1739 | },
|
1740 | _hideClone: function _hideClone() {
|
1741 | if (!cloneHidden) {
|
1742 | pluginEvent2("hideClone", this);
|
1743 | if (Sortable.eventCanceled)
|
1744 | return;
|
1745 | css(cloneEl, "display", "none");
|
1746 | if (this.options.removeCloneOnHide && cloneEl.parentNode) {
|
1747 | cloneEl.parentNode.removeChild(cloneEl);
|
1748 | }
|
1749 | cloneHidden = true;
|
1750 | }
|
1751 | },
|
1752 | _showClone: function _showClone(putSortable2) {
|
1753 | if (putSortable2.lastPutMode !== "clone") {
|
1754 | this._hideClone();
|
1755 | return;
|
1756 | }
|
1757 | if (cloneHidden) {
|
1758 | pluginEvent2("showClone", this);
|
1759 | if (Sortable.eventCanceled)
|
1760 | return;
|
1761 | if (dragEl.parentNode == rootEl && !this.options.group.revertClone) {
|
1762 | rootEl.insertBefore(cloneEl, dragEl);
|
1763 | } else if (nextEl) {
|
1764 | rootEl.insertBefore(cloneEl, nextEl);
|
1765 | } else {
|
1766 | rootEl.appendChild(cloneEl);
|
1767 | }
|
1768 | if (this.options.group.revertClone) {
|
1769 | this.animate(dragEl, cloneEl);
|
1770 | }
|
1771 | css(cloneEl, "display", "");
|
1772 | cloneHidden = false;
|
1773 | }
|
1774 | }
|
1775 | };
|
1776 | function _globalDragOver(evt) {
|
1777 | if (evt.dataTransfer) {
|
1778 | evt.dataTransfer.dropEffect = "move";
|
1779 | }
|
1780 | evt.cancelable && evt.preventDefault();
|
1781 | }
|
1782 | function _onMove(fromEl, toEl, dragEl2, dragRect, targetEl, targetRect, originalEvent, willInsertAfter) {
|
1783 | var evt, sortable = fromEl[expando], onMoveFn = sortable.options.onMove, retVal;
|
1784 | if (window.CustomEvent && !IE11OrLess && !Edge) {
|
1785 | evt = new CustomEvent("move", {
|
1786 | bubbles: true,
|
1787 | cancelable: true
|
1788 | });
|
1789 | } else {
|
1790 | evt = document.createEvent("Event");
|
1791 | evt.initEvent("move", true, true);
|
1792 | }
|
1793 | evt.to = toEl;
|
1794 | evt.from = fromEl;
|
1795 | evt.dragged = dragEl2;
|
1796 | evt.draggedRect = dragRect;
|
1797 | evt.related = targetEl || toEl;
|
1798 | evt.relatedRect = targetRect || getRect(toEl);
|
1799 | evt.willInsertAfter = willInsertAfter;
|
1800 | evt.originalEvent = originalEvent;
|
1801 | fromEl.dispatchEvent(evt);
|
1802 | if (onMoveFn) {
|
1803 | retVal = onMoveFn.call(sortable, evt, originalEvent);
|
1804 | }
|
1805 | return retVal;
|
1806 | }
|
1807 | function _disableDraggable(el) {
|
1808 | el.draggable = false;
|
1809 | }
|
1810 | function _unsilent() {
|
1811 | _silent = false;
|
1812 | }
|
1813 | function _ghostIsFirst(evt, vertical, sortable) {
|
1814 | var rect = getRect(getChild(sortable.el, 0, sortable.options, true));
|
1815 | var spacer = 10;
|
1816 | return vertical ? evt.clientX < rect.left - spacer || evt.clientY < rect.top && evt.clientX < rect.right : evt.clientY < rect.top - spacer || evt.clientY < rect.bottom && evt.clientX < rect.left;
|
1817 | }
|
1818 | function _ghostIsLast(evt, vertical, sortable) {
|
1819 | var rect = getRect(lastChild(sortable.el, sortable.options.draggable));
|
1820 | var spacer = 10;
|
1821 | return vertical ? evt.clientX > rect.right + spacer || evt.clientX <= rect.right && evt.clientY > rect.bottom && evt.clientX >= rect.left : evt.clientX > rect.right && evt.clientY > rect.top || evt.clientX <= rect.right && evt.clientY > rect.bottom + spacer;
|
1822 | }
|
1823 | function _getSwapDirection(evt, target, targetRect, vertical, swapThreshold, invertedSwapThreshold, invertSwap, isLastTarget) {
|
1824 | var mouseOnAxis = vertical ? evt.clientY : evt.clientX, targetLength = vertical ? targetRect.height : targetRect.width, targetS1 = vertical ? targetRect.top : targetRect.left, targetS2 = vertical ? targetRect.bottom : targetRect.right, invert = false;
|
1825 | if (!invertSwap) {
|
1826 | if (isLastTarget && targetMoveDistance < targetLength * swapThreshold) {
|
1827 | if (!pastFirstInvertThresh && (lastDirection === 1 ? mouseOnAxis > targetS1 + targetLength * invertedSwapThreshold / 2 : mouseOnAxis < targetS2 - targetLength * invertedSwapThreshold / 2)) {
|
1828 | pastFirstInvertThresh = true;
|
1829 | }
|
1830 | if (!pastFirstInvertThresh) {
|
1831 | if (lastDirection === 1 ? mouseOnAxis < targetS1 + targetMoveDistance : mouseOnAxis > targetS2 - targetMoveDistance) {
|
1832 | return -lastDirection;
|
1833 | }
|
1834 | } else {
|
1835 | invert = true;
|
1836 | }
|
1837 | } else {
|
1838 | if (mouseOnAxis > targetS1 + targetLength * (1 - swapThreshold) / 2 && mouseOnAxis < targetS2 - targetLength * (1 - swapThreshold) / 2) {
|
1839 | return _getInsertDirection(target);
|
1840 | }
|
1841 | }
|
1842 | }
|
1843 | invert = invert || invertSwap;
|
1844 | if (invert) {
|
1845 | if (mouseOnAxis < targetS1 + targetLength * invertedSwapThreshold / 2 || mouseOnAxis > targetS2 - targetLength * invertedSwapThreshold / 2) {
|
1846 | return mouseOnAxis > targetS1 + targetLength / 2 ? 1 : -1;
|
1847 | }
|
1848 | }
|
1849 | return 0;
|
1850 | }
|
1851 | function _getInsertDirection(target) {
|
1852 | if (index$1(dragEl) < index$1(target)) {
|
1853 | return 1;
|
1854 | } else {
|
1855 | return -1;
|
1856 | }
|
1857 | }
|
1858 | function _generateId(el) {
|
1859 | var str = el.tagName + el.className + el.src + el.href + el.textContent, i = str.length, sum = 0;
|
1860 | while (i--) {
|
1861 | sum += str.charCodeAt(i);
|
1862 | }
|
1863 | return sum.toString(36);
|
1864 | }
|
1865 | function _saveInputCheckedState(root2) {
|
1866 | savedInputChecked.length = 0;
|
1867 | var inputs = root2.getElementsByTagName("input");
|
1868 | var idx = inputs.length;
|
1869 | while (idx--) {
|
1870 | var el = inputs[idx];
|
1871 | el.checked && savedInputChecked.push(el);
|
1872 | }
|
1873 | }
|
1874 | function _nextTick(fn) {
|
1875 | return setTimeout(fn, 0);
|
1876 | }
|
1877 | function _cancelNextTick(id) {
|
1878 | return clearTimeout(id);
|
1879 | }
|
1880 | if (documentExists) {
|
1881 | on(document, "touchmove", function(evt) {
|
1882 | if ((Sortable.active || awaitingDragStarted) && evt.cancelable) {
|
1883 | evt.preventDefault();
|
1884 | }
|
1885 | });
|
1886 | }
|
1887 | Sortable.utils = {
|
1888 | on,
|
1889 | off,
|
1890 | css,
|
1891 | find,
|
1892 | is: function is(el, selector) {
|
1893 | return !!closest(el, selector, el, false);
|
1894 | },
|
1895 | extend,
|
1896 | throttle: throttle$1,
|
1897 | closest,
|
1898 | toggleClass,
|
1899 | clone: clone$1,
|
1900 | index: index$1,
|
1901 | nextTick: _nextTick,
|
1902 | cancelNextTick: _cancelNextTick,
|
1903 | detectDirection: _detectDirection,
|
1904 | getChild
|
1905 | };
|
1906 | Sortable.get = function(element) {
|
1907 | return element[expando];
|
1908 | };
|
1909 | Sortable.mount = function() {
|
1910 | for (var _len = arguments.length, plugins2 = new Array(_len), _key = 0; _key < _len; _key++) {
|
1911 | plugins2[_key] = arguments[_key];
|
1912 | }
|
1913 | if (plugins2[0].constructor === Array)
|
1914 | plugins2 = plugins2[0];
|
1915 | plugins2.forEach(function(plugin) {
|
1916 | if (!plugin.prototype || !plugin.prototype.constructor) {
|
1917 | throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(plugin));
|
1918 | }
|
1919 | if (plugin.utils)
|
1920 | Sortable.utils = _objectSpread2$1(_objectSpread2$1({}, Sortable.utils), plugin.utils);
|
1921 | PluginManager.mount(plugin);
|
1922 | });
|
1923 | };
|
1924 | Sortable.create = function(el, options) {
|
1925 | return new Sortable(el, options);
|
1926 | };
|
1927 | Sortable.version = version;
|
1928 | var autoScrolls = [], scrollEl, scrollRootEl, scrolling = false, lastAutoScrollX, lastAutoScrollY, touchEvt$1, pointerElemChangedInterval;
|
1929 | function AutoScrollPlugin() {
|
1930 | function AutoScroll() {
|
1931 | this.defaults = {
|
1932 | scroll: true,
|
1933 | forceAutoScrollFallback: false,
|
1934 | scrollSensitivity: 30,
|
1935 | scrollSpeed: 10,
|
1936 | bubbleScroll: true
|
1937 | };
|
1938 | for (var fn in this) {
|
1939 | if (fn.charAt(0) === "_" && typeof this[fn] === "function") {
|
1940 | this[fn] = this[fn].bind(this);
|
1941 | }
|
1942 | }
|
1943 | }
|
1944 | AutoScroll.prototype = {
|
1945 | dragStarted: function dragStarted(_ref) {
|
1946 | var originalEvent = _ref.originalEvent;
|
1947 | if (this.sortable.nativeDraggable) {
|
1948 | on(document, "dragover", this._handleAutoScroll);
|
1949 | } else {
|
1950 | if (this.options.supportPointer) {
|
1951 | on(document, "pointermove", this._handleFallbackAutoScroll);
|
1952 | } else if (originalEvent.touches) {
|
1953 | on(document, "touchmove", this._handleFallbackAutoScroll);
|
1954 | } else {
|
1955 | on(document, "mousemove", this._handleFallbackAutoScroll);
|
1956 | }
|
1957 | }
|
1958 | },
|
1959 | dragOverCompleted: function dragOverCompleted(_ref2) {
|
1960 | var originalEvent = _ref2.originalEvent;
|
1961 | if (!this.options.dragOverBubble && !originalEvent.rootEl) {
|
1962 | this._handleAutoScroll(originalEvent);
|
1963 | }
|
1964 | },
|
1965 | drop: function drop3() {
|
1966 | if (this.sortable.nativeDraggable) {
|
1967 | off(document, "dragover", this._handleAutoScroll);
|
1968 | } else {
|
1969 | off(document, "pointermove", this._handleFallbackAutoScroll);
|
1970 | off(document, "touchmove", this._handleFallbackAutoScroll);
|
1971 | off(document, "mousemove", this._handleFallbackAutoScroll);
|
1972 | }
|
1973 | clearPointerElemChangedInterval();
|
1974 | clearAutoScrolls();
|
1975 | cancelThrottle();
|
1976 | },
|
1977 | nulling: function nulling() {
|
1978 | touchEvt$1 = scrollRootEl = scrollEl = scrolling = pointerElemChangedInterval = lastAutoScrollX = lastAutoScrollY = null;
|
1979 | autoScrolls.length = 0;
|
1980 | },
|
1981 | _handleFallbackAutoScroll: function _handleFallbackAutoScroll(evt) {
|
1982 | this._handleAutoScroll(evt, true);
|
1983 | },
|
1984 | _handleAutoScroll: function _handleAutoScroll(evt, fallback) {
|
1985 | var _this = this;
|
1986 | var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, elem = document.elementFromPoint(x, y);
|
1987 | touchEvt$1 = evt;
|
1988 | if (fallback || this.options.forceAutoScrollFallback || Edge || IE11OrLess || Safari) {
|
1989 | autoScroll(evt, this.options, elem, fallback);
|
1990 | var ogElemScroller = getParentAutoScrollElement(elem, true);
|
1991 | if (scrolling && (!pointerElemChangedInterval || x !== lastAutoScrollX || y !== lastAutoScrollY)) {
|
1992 | pointerElemChangedInterval && clearPointerElemChangedInterval();
|
1993 | pointerElemChangedInterval = setInterval(function() {
|
1994 | var newElem = getParentAutoScrollElement(document.elementFromPoint(x, y), true);
|
1995 | if (newElem !== ogElemScroller) {
|
1996 | ogElemScroller = newElem;
|
1997 | clearAutoScrolls();
|
1998 | }
|
1999 | autoScroll(evt, _this.options, newElem, fallback);
|
2000 | }, 10);
|
2001 | lastAutoScrollX = x;
|
2002 | lastAutoScrollY = y;
|
2003 | }
|
2004 | } else {
|
2005 | if (!this.options.bubbleScroll || getParentAutoScrollElement(elem, true) === getWindowScrollingElement()) {
|
2006 | clearAutoScrolls();
|
2007 | return;
|
2008 | }
|
2009 | autoScroll(evt, this.options, getParentAutoScrollElement(elem, false), false);
|
2010 | }
|
2011 | }
|
2012 | };
|
2013 | return _extends$g(AutoScroll, {
|
2014 | pluginName: "scroll",
|
2015 | initializeByDefault: true
|
2016 | });
|
2017 | }
|
2018 | function clearAutoScrolls() {
|
2019 | autoScrolls.forEach(function(autoScroll2) {
|
2020 | clearInterval(autoScroll2.pid);
|
2021 | });
|
2022 | autoScrolls = [];
|
2023 | }
|
2024 | function clearPointerElemChangedInterval() {
|
2025 | clearInterval(pointerElemChangedInterval);
|
2026 | }
|
2027 | var autoScroll = throttle$1(function(evt, options, rootEl2, isFallback) {
|
2028 | if (!options.scroll)
|
2029 | return;
|
2030 | var x = (evt.touches ? evt.touches[0] : evt).clientX, y = (evt.touches ? evt.touches[0] : evt).clientY, sens = options.scrollSensitivity, speed = options.scrollSpeed, winScroller = getWindowScrollingElement();
|
2031 | var scrollThisInstance = false, scrollCustomFn;
|
2032 | if (scrollRootEl !== rootEl2) {
|
2033 | scrollRootEl = rootEl2;
|
2034 | clearAutoScrolls();
|
2035 | scrollEl = options.scroll;
|
2036 | scrollCustomFn = options.scrollFn;
|
2037 | if (scrollEl === true) {
|
2038 | scrollEl = getParentAutoScrollElement(rootEl2, true);
|
2039 | }
|
2040 | }
|
2041 | var layersOut = 0;
|
2042 | var currentParent = scrollEl;
|
2043 | do {
|
2044 | var el = currentParent, rect = getRect(el), top = rect.top, bottom = rect.bottom, left = rect.left, right = rect.right, width = rect.width, height = rect.height, canScrollX = void 0, canScrollY = void 0, scrollWidth = el.scrollWidth, scrollHeight = el.scrollHeight, elCSS = css(el), scrollPosX = el.scrollLeft, scrollPosY = el.scrollTop;
|
2045 | if (el === winScroller) {
|
2046 | canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll" || elCSS.overflowX === "visible");
|
2047 | canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll" || elCSS.overflowY === "visible");
|
2048 | } else {
|
2049 | canScrollX = width < scrollWidth && (elCSS.overflowX === "auto" || elCSS.overflowX === "scroll");
|
2050 | canScrollY = height < scrollHeight && (elCSS.overflowY === "auto" || elCSS.overflowY === "scroll");
|
2051 | }
|
2052 | var vx = canScrollX && (Math.abs(right - x) <= sens && scrollPosX + width < scrollWidth) - (Math.abs(left - x) <= sens && !!scrollPosX);
|
2053 | var vy = canScrollY && (Math.abs(bottom - y) <= sens && scrollPosY + height < scrollHeight) - (Math.abs(top - y) <= sens && !!scrollPosY);
|
2054 | if (!autoScrolls[layersOut]) {
|
2055 | for (var i = 0; i <= layersOut; i++) {
|
2056 | if (!autoScrolls[i]) {
|
2057 | autoScrolls[i] = {};
|
2058 | }
|
2059 | }
|
2060 | }
|
2061 | if (autoScrolls[layersOut].vx != vx || autoScrolls[layersOut].vy != vy || autoScrolls[layersOut].el !== el) {
|
2062 | autoScrolls[layersOut].el = el;
|
2063 | autoScrolls[layersOut].vx = vx;
|
2064 | autoScrolls[layersOut].vy = vy;
|
2065 | clearInterval(autoScrolls[layersOut].pid);
|
2066 | if (vx != 0 || vy != 0) {
|
2067 | scrollThisInstance = true;
|
2068 | autoScrolls[layersOut].pid = setInterval(function() {
|
2069 | if (isFallback && this.layer === 0) {
|
2070 | Sortable.active._onTouchMove(touchEvt$1);
|
2071 | }
|
2072 | var scrollOffsetY = autoScrolls[this.layer].vy ? autoScrolls[this.layer].vy * speed : 0;
|
2073 | var scrollOffsetX = autoScrolls[this.layer].vx ? autoScrolls[this.layer].vx * speed : 0;
|
2074 | if (typeof scrollCustomFn === "function") {
|
2075 | if (scrollCustomFn.call(Sortable.dragged.parentNode[expando], scrollOffsetX, scrollOffsetY, evt, touchEvt$1, autoScrolls[this.layer].el) !== "continue") {
|
2076 | return;
|
2077 | }
|
2078 | }
|
2079 | scrollBy(autoScrolls[this.layer].el, scrollOffsetX, scrollOffsetY);
|
2080 | }.bind({
|
2081 | layer: layersOut
|
2082 | }), 24);
|
2083 | }
|
2084 | }
|
2085 | layersOut++;
|
2086 | } while (options.bubbleScroll && currentParent !== winScroller && (currentParent = getParentAutoScrollElement(currentParent, false)));
|
2087 | scrolling = scrollThisInstance;
|
2088 | }, 30);
|
2089 | var drop = function drop2(_ref) {
|
2090 | var originalEvent = _ref.originalEvent, putSortable2 = _ref.putSortable, dragEl2 = _ref.dragEl, activeSortable = _ref.activeSortable, dispatchSortableEvent = _ref.dispatchSortableEvent, hideGhostForTarget = _ref.hideGhostForTarget, unhideGhostForTarget = _ref.unhideGhostForTarget;
|
2091 | if (!originalEvent)
|
2092 | return;
|
2093 | var toSortable = putSortable2 || activeSortable;
|
2094 | hideGhostForTarget();
|
2095 | var touch = originalEvent.changedTouches && originalEvent.changedTouches.length ? originalEvent.changedTouches[0] : originalEvent;
|
2096 | var target = document.elementFromPoint(touch.clientX, touch.clientY);
|
2097 | unhideGhostForTarget();
|
2098 | if (toSortable && !toSortable.el.contains(target)) {
|
2099 | dispatchSortableEvent("spill");
|
2100 | this.onSpill({
|
2101 | dragEl: dragEl2,
|
2102 | putSortable: putSortable2
|
2103 | });
|
2104 | }
|
2105 | };
|
2106 | function Revert() {
|
2107 | }
|
2108 | Revert.prototype = {
|
2109 | startIndex: null,
|
2110 | dragStart: function dragStart(_ref2) {
|
2111 | var oldDraggableIndex2 = _ref2.oldDraggableIndex;
|
2112 | this.startIndex = oldDraggableIndex2;
|
2113 | },
|
2114 | onSpill: function onSpill(_ref3) {
|
2115 | var dragEl2 = _ref3.dragEl, putSortable2 = _ref3.putSortable;
|
2116 | this.sortable.captureAnimationState();
|
2117 | if (putSortable2) {
|
2118 | putSortable2.captureAnimationState();
|
2119 | }
|
2120 | var nextSibling = getChild(this.sortable.el, this.startIndex, this.options);
|
2121 | if (nextSibling) {
|
2122 | this.sortable.el.insertBefore(dragEl2, nextSibling);
|
2123 | } else {
|
2124 | this.sortable.el.appendChild(dragEl2);
|
2125 | }
|
2126 | this.sortable.animateAll();
|
2127 | if (putSortable2) {
|
2128 | putSortable2.animateAll();
|
2129 | }
|
2130 | },
|
2131 | drop
|
2132 | };
|
2133 | _extends$g(Revert, {
|
2134 | pluginName: "revertOnSpill"
|
2135 | });
|
2136 | function Remove() {
|
2137 | }
|
2138 | Remove.prototype = {
|
2139 | onSpill: function onSpill2(_ref4) {
|
2140 | var dragEl2 = _ref4.dragEl, putSortable2 = _ref4.putSortable;
|
2141 | var parentSortable = putSortable2 || this.sortable;
|
2142 | parentSortable.captureAnimationState();
|
2143 | dragEl2.parentNode && dragEl2.parentNode.removeChild(dragEl2);
|
2144 | parentSortable.animateAll();
|
2145 | },
|
2146 | drop
|
2147 | };
|
2148 | _extends$g(Remove, {
|
2149 | pluginName: "removeOnSpill"
|
2150 | });
|
2151 | Sortable.mount(new AutoScrollPlugin());
|
2152 | Sortable.mount(Remove, Revert);
|
2153 | const SvgIcon = (props) => {
|
2154 | const { name, prefix, color, className, style, onClick } = props;
|
2155 | const symbolId = `#${prefix}-${name}`;
|
2156 | return React__default.createElement("span", {
|
2157 | style: { display: "inline-flex", alignItems: "center" }
|
2158 | }, React__default.createElement("svg", {
|
2159 | "aria-hidden": "true",
|
2160 | className: `svg-icon ${className}`,
|
2161 | style,
|
2162 | onClick
|
2163 | }, React__default.createElement("use", {
|
2164 | xlinkHref: symbolId,
|
2165 | fill: color
|
2166 | })));
|
2167 | };
|
2168 | SvgIcon.defaultProps = {
|
2169 | prefix: "svg-icon",
|
2170 | color: "currentColor",
|
2171 | className: "",
|
2172 | style: {},
|
2173 | onClick: () => {
|
2174 | }
|
2175 | };
|
2176 | const ComponentsGroup = (props) => {
|
2177 | const {
|
2178 | componentGroup: { title, components }
|
2179 | } = props;
|
2180 | const sortableGroupDecorator = (instance) => {
|
2181 | if (instance) {
|
2182 | const options = {
|
2183 | sort: false,
|
2184 | ghostClass: "ghost",
|
2185 | group: {
|
2186 | name: "people",
|
2187 | pull: "clone",
|
2188 | put: false
|
2189 | },
|
2190 | setData: (dataTransfer, dragEl2) => {
|
2191 | dataTransfer.setData("SortableDataClone", JSON.stringify(components[parseInt(dragEl2.dataset.index, 10)]));
|
2192 | }
|
2193 | };
|
2194 | Sortable.create(instance, options);
|
2195 | }
|
2196 | };
|
2197 | return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
2198 | className: "widget-cate"
|
2199 | }, title), React__default.createElement("ul", {
|
2200 | ref: sortableGroupDecorator
|
2201 | }, components.map((component, index2) => React__default.createElement("li", {
|
2202 | key: component.type,
|
2203 | className: "form-edit-widget-label",
|
2204 | "data-index": index2
|
2205 | }, React__default.createElement("a", {
|
2206 | href: "/#"
|
2207 | }, React__default.createElement(SvgIcon, {
|
2208 | name: component.icon
|
2209 | }), React__default.createElement("span", null, component.label))))));
|
2210 | };
|
2211 | const MonacoEditor = (props) => {
|
2212 | const { value, language, onChange, height, theme, readonly } = props;
|
2213 | const editorRef = useRef(null);
|
2214 | const monacoEditorDecorator = () => {
|
2215 | var _a, _b;
|
2216 | const model = (_a = window.monaco) == null ? void 0 : _a.editor.createModel(value, language);
|
2217 | const editorInstance = (_b = window.monaco) == null ? void 0 : _b.editor.create(editorRef.current, {
|
2218 | model,
|
2219 | theme,
|
2220 | tabSize: 2,
|
2221 | fontSize: 14,
|
2222 | formatOnType: true,
|
2223 | formatOnPaste: true,
|
2224 | automaticLayout: true,
|
2225 | emptySelectionClipboard: true,
|
2226 | scrollBeyondLastLine: true,
|
2227 | readOnly: readonly,
|
2228 | minimap: {
|
2229 | enabled: false
|
2230 | },
|
2231 | scrollbar: {
|
2232 | vertical: "hidden",
|
2233 | horizontal: "hidden",
|
2234 | verticalScrollbarSize: 0,
|
2235 | horizontalScrollbarSize: 0,
|
2236 | alwaysConsumeMouseWheel: false
|
2237 | }
|
2238 | });
|
2239 | editorInstance == null ? void 0 : editorInstance.onDidChangeModelContent(() => onChange == null ? void 0 : onChange(editorInstance.getValue()));
|
2240 | };
|
2241 | useEffect(monacoEditorDecorator, []);
|
2242 | return React__default.createElement("div", {
|
2243 | ref: editorRef,
|
2244 | style: { height, border: "1px solid lightgrey" }
|
2245 | });
|
2246 | };
|
2247 | MonacoEditor.defaultProps = {
|
2248 | height: "100%",
|
2249 | theme: "vs",
|
2250 | language: void 0,
|
2251 | onChange: void 0,
|
2252 | readonly: false
|
2253 | };
|
2254 | var MonacoEditor$1 = memo(MonacoEditor);
|
2255 | var freeGlobal$2 = typeof global == "object" && global && global.Object === Object && global;
|
2256 | var freeGlobal$3 = freeGlobal$2;
|
2257 | var freeSelf$1 = typeof self == "object" && self && self.Object === Object && self;
|
2258 | var root$9 = freeGlobal$3 || freeSelf$1 || Function("return this")();
|
2259 | var root$a = root$9;
|
2260 | var Symbol$7 = root$a.Symbol;
|
2261 | var Symbol$8 = Symbol$7;
|
2262 | var objectProto$v = Object.prototype;
|
2263 | var hasOwnProperty$p = objectProto$v.hasOwnProperty;
|
2264 | var nativeObjectToString$3 = objectProto$v.toString;
|
2265 | var symToStringTag$3 = Symbol$8 ? Symbol$8.toStringTag : void 0;
|
2266 | function getRawTag$2(value) {
|
2267 | var isOwn = hasOwnProperty$p.call(value, symToStringTag$3), tag = value[symToStringTag$3];
|
2268 | try {
|
2269 | value[symToStringTag$3] = void 0;
|
2270 | var unmasked = true;
|
2271 | } catch (e) {
|
2272 | }
|
2273 | var result = nativeObjectToString$3.call(value);
|
2274 | if (unmasked) {
|
2275 | if (isOwn) {
|
2276 | value[symToStringTag$3] = tag;
|
2277 | } else {
|
2278 | delete value[symToStringTag$3];
|
2279 | }
|
2280 | }
|
2281 | return result;
|
2282 | }
|
2283 | var objectProto$u = Object.prototype;
|
2284 | var nativeObjectToString$2 = objectProto$u.toString;
|
2285 | function objectToString$2(value) {
|
2286 | return nativeObjectToString$2.call(value);
|
2287 | }
|
2288 | var nullTag$1 = "[object Null]", undefinedTag$1 = "[object Undefined]";
|
2289 | var symToStringTag$2 = Symbol$8 ? Symbol$8.toStringTag : void 0;
|
2290 | function baseGetTag$8(value) {
|
2291 | if (value == null) {
|
2292 | return value === void 0 ? undefinedTag$1 : nullTag$1;
|
2293 | }
|
2294 | return symToStringTag$2 && symToStringTag$2 in Object(value) ? getRawTag$2(value) : objectToString$2(value);
|
2295 | }
|
2296 | function isObjectLike$a(value) {
|
2297 | return value != null && typeof value == "object";
|
2298 | }
|
2299 | var symbolTag$7 = "[object Symbol]";
|
2300 | function isSymbol$4(value) {
|
2301 | return typeof value == "symbol" || isObjectLike$a(value) && baseGetTag$8(value) == symbolTag$7;
|
2302 | }
|
2303 | function arrayMap$3(array, iteratee) {
|
2304 | var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
2305 | while (++index2 < length) {
|
2306 | result[index2] = iteratee(array[index2], index2, array);
|
2307 | }
|
2308 | return result;
|
2309 | }
|
2310 | var isArray$c = Array.isArray;
|
2311 | var isArray$d = isArray$c;
|
2312 | var INFINITY$3 = 1 / 0;
|
2313 | var symbolProto$5 = Symbol$8 ? Symbol$8.prototype : void 0, symbolToString$1 = symbolProto$5 ? symbolProto$5.toString : void 0;
|
2314 | function baseToString$2(value) {
|
2315 | if (typeof value == "string") {
|
2316 | return value;
|
2317 | }
|
2318 | if (isArray$d(value)) {
|
2319 | return arrayMap$3(value, baseToString$2) + "";
|
2320 | }
|
2321 | if (isSymbol$4(value)) {
|
2322 | return symbolToString$1 ? symbolToString$1.call(value) : "";
|
2323 | }
|
2324 | var result = value + "";
|
2325 | return result == "0" && 1 / value == -INFINITY$3 ? "-0" : result;
|
2326 | }
|
2327 | var reWhitespace = /\s/;
|
2328 | function trimmedEndIndex(string) {
|
2329 | var index2 = string.length;
|
2330 | while (index2-- && reWhitespace.test(string.charAt(index2))) {
|
2331 | }
|
2332 | return index2;
|
2333 | }
|
2334 | var reTrimStart = /^\s+/;
|
2335 | function baseTrim(string) {
|
2336 | return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
|
2337 | }
|
2338 | function isObject$7(value) {
|
2339 | var type = typeof value;
|
2340 | return value != null && (type == "object" || type == "function");
|
2341 | }
|
2342 | var NAN = 0 / 0;
|
2343 | var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
|
2344 | var reIsBinary = /^0b[01]+$/i;
|
2345 | var reIsOctal = /^0o[0-7]+$/i;
|
2346 | var freeParseInt = parseInt;
|
2347 | function toNumber(value) {
|
2348 | if (typeof value == "number") {
|
2349 | return value;
|
2350 | }
|
2351 | if (isSymbol$4(value)) {
|
2352 | return NAN;
|
2353 | }
|
2354 | if (isObject$7(value)) {
|
2355 | var other = typeof value.valueOf == "function" ? value.valueOf() : value;
|
2356 | value = isObject$7(other) ? other + "" : other;
|
2357 | }
|
2358 | if (typeof value != "string") {
|
2359 | return value === 0 ? value : +value;
|
2360 | }
|
2361 | value = baseTrim(value);
|
2362 | var isBinary = reIsBinary.test(value);
|
2363 | return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
2364 | }
|
2365 | function identity$3(value) {
|
2366 | return value;
|
2367 | }
|
2368 | var asyncTag$1 = "[object AsyncFunction]", funcTag$5 = "[object Function]", genTag$3 = "[object GeneratorFunction]", proxyTag$1 = "[object Proxy]";
|
2369 | function isFunction$3(value) {
|
2370 | if (!isObject$7(value)) {
|
2371 | return false;
|
2372 | }
|
2373 | var tag = baseGetTag$8(value);
|
2374 | return tag == funcTag$5 || tag == genTag$3 || tag == asyncTag$1 || tag == proxyTag$1;
|
2375 | }
|
2376 | var coreJsData$2 = root$a["__core-js_shared__"];
|
2377 | var coreJsData$3 = coreJsData$2;
|
2378 | var maskSrcKey$1 = function() {
|
2379 | var uid = /[^.]+$/.exec(coreJsData$3 && coreJsData$3.keys && coreJsData$3.keys.IE_PROTO || "");
|
2380 | return uid ? "Symbol(src)_1." + uid : "";
|
2381 | }();
|
2382 | function isMasked$2(func) {
|
2383 | return !!maskSrcKey$1 && maskSrcKey$1 in func;
|
2384 | }
|
2385 | var funcProto$5 = Function.prototype;
|
2386 | var funcToString$5 = funcProto$5.toString;
|
2387 | function toSource$3(func) {
|
2388 | if (func != null) {
|
2389 | try {
|
2390 | return funcToString$5.call(func);
|
2391 | } catch (e) {
|
2392 | }
|
2393 | try {
|
2394 | return func + "";
|
2395 | } catch (e) {
|
2396 | }
|
2397 | }
|
2398 | return "";
|
2399 | }
|
2400 | var reRegExpChar$1 = /[\\^$.*+?()[\]{}|]/g;
|
2401 | var reIsHostCtor$1 = /^\[object .+?Constructor\]$/;
|
2402 | var funcProto$4 = Function.prototype, objectProto$t = Object.prototype;
|
2403 | var funcToString$4 = funcProto$4.toString;
|
2404 | var hasOwnProperty$o = objectProto$t.hasOwnProperty;
|
2405 | var reIsNative$1 = RegExp("^" + funcToString$4.call(hasOwnProperty$o).replace(reRegExpChar$1, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
2406 | function baseIsNative$2(value) {
|
2407 | if (!isObject$7(value) || isMasked$2(value)) {
|
2408 | return false;
|
2409 | }
|
2410 | var pattern = isFunction$3(value) ? reIsNative$1 : reIsHostCtor$1;
|
2411 | return pattern.test(toSource$3(value));
|
2412 | }
|
2413 | function getValue$3(object, key) {
|
2414 | return object == null ? void 0 : object[key];
|
2415 | }
|
2416 | function getNative$8(object, key) {
|
2417 | var value = getValue$3(object, key);
|
2418 | return baseIsNative$2(value) ? value : void 0;
|
2419 | }
|
2420 | var WeakMap$2 = getNative$8(root$a, "WeakMap");
|
2421 | var WeakMap$3 = WeakMap$2;
|
2422 | var objectCreate$1 = Object.create;
|
2423 | var baseCreate$2 = function() {
|
2424 | function object() {
|
2425 | }
|
2426 | return function(proto) {
|
2427 | if (!isObject$7(proto)) {
|
2428 | return {};
|
2429 | }
|
2430 | if (objectCreate$1) {
|
2431 | return objectCreate$1(proto);
|
2432 | }
|
2433 | object.prototype = proto;
|
2434 | var result = new object();
|
2435 | object.prototype = void 0;
|
2436 | return result;
|
2437 | };
|
2438 | }();
|
2439 | var baseCreate$3 = baseCreate$2;
|
2440 | function apply(func, thisArg, args) {
|
2441 | switch (args.length) {
|
2442 | case 0:
|
2443 | return func.call(thisArg);
|
2444 | case 1:
|
2445 | return func.call(thisArg, args[0]);
|
2446 | case 2:
|
2447 | return func.call(thisArg, args[0], args[1]);
|
2448 | case 3:
|
2449 | return func.call(thisArg, args[0], args[1], args[2]);
|
2450 | }
|
2451 | return func.apply(thisArg, args);
|
2452 | }
|
2453 | function copyArray$2(source, array) {
|
2454 | var index2 = -1, length = source.length;
|
2455 | array || (array = Array(length));
|
2456 | while (++index2 < length) {
|
2457 | array[index2] = source[index2];
|
2458 | }
|
2459 | return array;
|
2460 | }
|
2461 | var HOT_COUNT = 800, HOT_SPAN = 16;
|
2462 | var nativeNow = Date.now;
|
2463 | function shortOut(func) {
|
2464 | var count = 0, lastCalled = 0;
|
2465 | return function() {
|
2466 | var stamp = nativeNow(), remaining = HOT_SPAN - (stamp - lastCalled);
|
2467 | lastCalled = stamp;
|
2468 | if (remaining > 0) {
|
2469 | if (++count >= HOT_COUNT) {
|
2470 | return arguments[0];
|
2471 | }
|
2472 | } else {
|
2473 | count = 0;
|
2474 | }
|
2475 | return func.apply(void 0, arguments);
|
2476 | };
|
2477 | }
|
2478 | function constant(value) {
|
2479 | return function() {
|
2480 | return value;
|
2481 | };
|
2482 | }
|
2483 | var defineProperty$2 = function() {
|
2484 | try {
|
2485 | var func = getNative$8(Object, "defineProperty");
|
2486 | func({}, "", {});
|
2487 | return func;
|
2488 | } catch (e) {
|
2489 | }
|
2490 | }();
|
2491 | var defineProperty$3 = defineProperty$2;
|
2492 | var baseSetToString = !defineProperty$3 ? identity$3 : function(func, string) {
|
2493 | return defineProperty$3(func, "toString", {
|
2494 | "configurable": true,
|
2495 | "enumerable": false,
|
2496 | "value": constant(string),
|
2497 | "writable": true
|
2498 | });
|
2499 | };
|
2500 | var baseSetToString$1 = baseSetToString;
|
2501 | var setToString = shortOut(baseSetToString$1);
|
2502 | var setToString$1 = setToString;
|
2503 | function arrayEach$2(array, iteratee) {
|
2504 | var index2 = -1, length = array == null ? 0 : array.length;
|
2505 | while (++index2 < length) {
|
2506 | if (iteratee(array[index2], index2, array) === false) {
|
2507 | break;
|
2508 | }
|
2509 | }
|
2510 | return array;
|
2511 | }
|
2512 | var MAX_SAFE_INTEGER$3 = 9007199254740991;
|
2513 | var reIsUint$1 = /^(?:0|[1-9]\d*)$/;
|
2514 | function isIndex$3(value, length) {
|
2515 | var type = typeof value;
|
2516 | length = length == null ? MAX_SAFE_INTEGER$3 : length;
|
2517 | return !!length && (type == "number" || type != "symbol" && reIsUint$1.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
2518 | }
|
2519 | function baseAssignValue$3(object, key, value) {
|
2520 | if (key == "__proto__" && defineProperty$3) {
|
2521 | defineProperty$3(object, key, {
|
2522 | "configurable": true,
|
2523 | "enumerable": true,
|
2524 | "value": value,
|
2525 | "writable": true
|
2526 | });
|
2527 | } else {
|
2528 | object[key] = value;
|
2529 | }
|
2530 | }
|
2531 | function eq$4(value, other) {
|
2532 | return value === other || value !== value && other !== other;
|
2533 | }
|
2534 | var objectProto$s = Object.prototype;
|
2535 | var hasOwnProperty$n = objectProto$s.hasOwnProperty;
|
2536 | function assignValue$3(object, key, value) {
|
2537 | var objValue = object[key];
|
2538 | if (!(hasOwnProperty$n.call(object, key) && eq$4(objValue, value)) || value === void 0 && !(key in object)) {
|
2539 | baseAssignValue$3(object, key, value);
|
2540 | }
|
2541 | }
|
2542 | function copyObject$5(source, props, object, customizer) {
|
2543 | var isNew = !object;
|
2544 | object || (object = {});
|
2545 | var index2 = -1, length = props.length;
|
2546 | while (++index2 < length) {
|
2547 | var key = props[index2];
|
2548 | var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
2549 | if (newValue === void 0) {
|
2550 | newValue = source[key];
|
2551 | }
|
2552 | if (isNew) {
|
2553 | baseAssignValue$3(object, key, newValue);
|
2554 | } else {
|
2555 | assignValue$3(object, key, newValue);
|
2556 | }
|
2557 | }
|
2558 | return object;
|
2559 | }
|
2560 | var nativeMax$1 = Math.max;
|
2561 | function overRest(func, start, transform2) {
|
2562 | start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
|
2563 | return function() {
|
2564 | var args = arguments, index2 = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
|
2565 | while (++index2 < length) {
|
2566 | array[index2] = args[start + index2];
|
2567 | }
|
2568 | index2 = -1;
|
2569 | var otherArgs = Array(start + 1);
|
2570 | while (++index2 < start) {
|
2571 | otherArgs[index2] = args[index2];
|
2572 | }
|
2573 | otherArgs[start] = transform2(array);
|
2574 | return apply(func, this, otherArgs);
|
2575 | };
|
2576 | }
|
2577 | function baseRest(func, start) {
|
2578 | return setToString$1(overRest(func, start, identity$3), func + "");
|
2579 | }
|
2580 | var MAX_SAFE_INTEGER$2 = 9007199254740991;
|
2581 | function isLength$4(value) {
|
2582 | return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER$2;
|
2583 | }
|
2584 | function isArrayLike$5(value) {
|
2585 | return value != null && isLength$4(value.length) && !isFunction$3(value);
|
2586 | }
|
2587 | function isIterateeCall(value, index2, object) {
|
2588 | if (!isObject$7(object)) {
|
2589 | return false;
|
2590 | }
|
2591 | var type = typeof index2;
|
2592 | if (type == "number" ? isArrayLike$5(object) && isIndex$3(index2, object.length) : type == "string" && index2 in object) {
|
2593 | return eq$4(object[index2], value);
|
2594 | }
|
2595 | return false;
|
2596 | }
|
2597 | function createAssigner(assigner) {
|
2598 | return baseRest(function(object, sources) {
|
2599 | var index2 = -1, length = sources.length, customizer = length > 1 ? sources[length - 1] : void 0, guard = length > 2 ? sources[2] : void 0;
|
2600 | customizer = assigner.length > 3 && typeof customizer == "function" ? (length--, customizer) : void 0;
|
2601 | if (guard && isIterateeCall(sources[0], sources[1], guard)) {
|
2602 | customizer = length < 3 ? void 0 : customizer;
|
2603 | length = 1;
|
2604 | }
|
2605 | object = Object(object);
|
2606 | while (++index2 < length) {
|
2607 | var source = sources[index2];
|
2608 | if (source) {
|
2609 | assigner(object, source, index2, customizer);
|
2610 | }
|
2611 | }
|
2612 | return object;
|
2613 | });
|
2614 | }
|
2615 | var objectProto$r = Object.prototype;
|
2616 | function isPrototype$4(value) {
|
2617 | var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$r;
|
2618 | return value === proto;
|
2619 | }
|
2620 | function baseTimes$2(n, iteratee) {
|
2621 | var index2 = -1, result = Array(n);
|
2622 | while (++index2 < n) {
|
2623 | result[index2] = iteratee(index2);
|
2624 | }
|
2625 | return result;
|
2626 | }
|
2627 | var argsTag$7 = "[object Arguments]";
|
2628 | function baseIsArguments$2(value) {
|
2629 | return isObjectLike$a(value) && baseGetTag$8(value) == argsTag$7;
|
2630 | }
|
2631 | var objectProto$q = Object.prototype;
|
2632 | var hasOwnProperty$m = objectProto$q.hasOwnProperty;
|
2633 | var propertyIsEnumerable$3 = objectProto$q.propertyIsEnumerable;
|
2634 | var isArguments$3 = baseIsArguments$2(function() {
|
2635 | return arguments;
|
2636 | }()) ? baseIsArguments$2 : function(value) {
|
2637 | return isObjectLike$a(value) && hasOwnProperty$m.call(value, "callee") && !propertyIsEnumerable$3.call(value, "callee");
|
2638 | };
|
2639 | var isArguments$4 = isArguments$3;
|
2640 | function stubFalse$1() {
|
2641 | return false;
|
2642 | }
|
2643 | var freeExports$2 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
2644 | var freeModule$2 = freeExports$2 && typeof module == "object" && module && !module.nodeType && module;
|
2645 | var moduleExports$2 = freeModule$2 && freeModule$2.exports === freeExports$2;
|
2646 | var Buffer$1 = moduleExports$2 ? root$a.Buffer : void 0;
|
2647 | var nativeIsBuffer = Buffer$1 ? Buffer$1.isBuffer : void 0;
|
2648 | var isBuffer$4 = nativeIsBuffer || stubFalse$1;
|
2649 | var isBuffer$5 = isBuffer$4;
|
2650 | var argsTag$6 = "[object Arguments]", arrayTag$5 = "[object Array]", boolTag$7 = "[object Boolean]", dateTag$7 = "[object Date]", errorTag$5 = "[object Error]", funcTag$4 = "[object Function]", mapTag$b = "[object Map]", numberTag$7 = "[object Number]", objectTag$9 = "[object Object]", regexpTag$7 = "[object RegExp]", setTag$b = "[object Set]", stringTag$9 = "[object String]", weakMapTag$5 = "[object WeakMap]";
|
2651 | var arrayBufferTag$7 = "[object ArrayBuffer]", dataViewTag$9 = "[object DataView]", float32Tag$5 = "[object Float32Array]", float64Tag$5 = "[object Float64Array]", int8Tag$5 = "[object Int8Array]", int16Tag$5 = "[object Int16Array]", int32Tag$5 = "[object Int32Array]", uint8Tag$5 = "[object Uint8Array]", uint8ClampedTag$5 = "[object Uint8ClampedArray]", uint16Tag$5 = "[object Uint16Array]", uint32Tag$5 = "[object Uint32Array]";
|
2652 | var typedArrayTags$1 = {};
|
2653 | typedArrayTags$1[float32Tag$5] = typedArrayTags$1[float64Tag$5] = typedArrayTags$1[int8Tag$5] = typedArrayTags$1[int16Tag$5] = typedArrayTags$1[int32Tag$5] = typedArrayTags$1[uint8Tag$5] = typedArrayTags$1[uint8ClampedTag$5] = typedArrayTags$1[uint16Tag$5] = typedArrayTags$1[uint32Tag$5] = true;
|
2654 | typedArrayTags$1[argsTag$6] = typedArrayTags$1[arrayTag$5] = typedArrayTags$1[arrayBufferTag$7] = typedArrayTags$1[boolTag$7] = typedArrayTags$1[dataViewTag$9] = typedArrayTags$1[dateTag$7] = typedArrayTags$1[errorTag$5] = typedArrayTags$1[funcTag$4] = typedArrayTags$1[mapTag$b] = typedArrayTags$1[numberTag$7] = typedArrayTags$1[objectTag$9] = typedArrayTags$1[regexpTag$7] = typedArrayTags$1[setTag$b] = typedArrayTags$1[stringTag$9] = typedArrayTags$1[weakMapTag$5] = false;
|
2655 | function baseIsTypedArray$2(value) {
|
2656 | return isObjectLike$a(value) && isLength$4(value.length) && !!typedArrayTags$1[baseGetTag$8(value)];
|
2657 | }
|
2658 | function baseUnary$4(func) {
|
2659 | return function(value) {
|
2660 | return func(value);
|
2661 | };
|
2662 | }
|
2663 | var freeExports$1 = typeof exports == "object" && exports && !exports.nodeType && exports;
|
2664 | var freeModule$1 = freeExports$1 && typeof module == "object" && module && !module.nodeType && module;
|
2665 | var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1;
|
2666 | var freeProcess = moduleExports$1 && freeGlobal$3.process;
|
2667 | var nodeUtil$3 = function() {
|
2668 | try {
|
2669 | var types = freeModule$1 && freeModule$1.require && freeModule$1.require("util").types;
|
2670 | if (types) {
|
2671 | return types;
|
2672 | }
|
2673 | return freeProcess && freeProcess.binding && freeProcess.binding("util");
|
2674 | } catch (e) {
|
2675 | }
|
2676 | }();
|
2677 | var nodeUtil$4 = nodeUtil$3;
|
2678 | var nodeIsTypedArray$1 = nodeUtil$4 && nodeUtil$4.isTypedArray;
|
2679 | var isTypedArray$3 = nodeIsTypedArray$1 ? baseUnary$4(nodeIsTypedArray$1) : baseIsTypedArray$2;
|
2680 | var isTypedArray$4 = isTypedArray$3;
|
2681 | var objectProto$p = Object.prototype;
|
2682 | var hasOwnProperty$l = objectProto$p.hasOwnProperty;
|
2683 | function arrayLikeKeys$3(value, inherited) {
|
2684 | var isArr = isArray$d(value), isArg = !isArr && isArguments$4(value), isBuff = !isArr && !isArg && isBuffer$5(value), isType = !isArr && !isArg && !isBuff && isTypedArray$4(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes$2(value.length, String) : [], length = result.length;
|
2685 | for (var key in value) {
|
2686 | if ((inherited || hasOwnProperty$l.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$3(key, length)))) {
|
2687 | result.push(key);
|
2688 | }
|
2689 | }
|
2690 | return result;
|
2691 | }
|
2692 | function overArg$3(func, transform2) {
|
2693 | return function(arg) {
|
2694 | return func(transform2(arg));
|
2695 | };
|
2696 | }
|
2697 | var nativeKeys$2 = overArg$3(Object.keys, Object);
|
2698 | var nativeKeys$3 = nativeKeys$2;
|
2699 | var objectProto$o = Object.prototype;
|
2700 | var hasOwnProperty$k = objectProto$o.hasOwnProperty;
|
2701 | function baseKeys$2(object) {
|
2702 | if (!isPrototype$4(object)) {
|
2703 | return nativeKeys$3(object);
|
2704 | }
|
2705 | var result = [];
|
2706 | for (var key in Object(object)) {
|
2707 | if (hasOwnProperty$k.call(object, key) && key != "constructor") {
|
2708 | result.push(key);
|
2709 | }
|
2710 | }
|
2711 | return result;
|
2712 | }
|
2713 | function keys$6(object) {
|
2714 | return isArrayLike$5(object) ? arrayLikeKeys$3(object) : baseKeys$2(object);
|
2715 | }
|
2716 | function nativeKeysIn$2(object) {
|
2717 | var result = [];
|
2718 | if (object != null) {
|
2719 | for (var key in Object(object)) {
|
2720 | result.push(key);
|
2721 | }
|
2722 | }
|
2723 | return result;
|
2724 | }
|
2725 | var objectProto$n = Object.prototype;
|
2726 | var hasOwnProperty$j = objectProto$n.hasOwnProperty;
|
2727 | function baseKeysIn$2(object) {
|
2728 | if (!isObject$7(object)) {
|
2729 | return nativeKeysIn$2(object);
|
2730 | }
|
2731 | var isProto = isPrototype$4(object), result = [];
|
2732 | for (var key in object) {
|
2733 | if (!(key == "constructor" && (isProto || !hasOwnProperty$j.call(object, key)))) {
|
2734 | result.push(key);
|
2735 | }
|
2736 | }
|
2737 | return result;
|
2738 | }
|
2739 | function keysIn$4(object) {
|
2740 | return isArrayLike$5(object) ? arrayLikeKeys$3(object, true) : baseKeysIn$2(object);
|
2741 | }
|
2742 | var reIsDeepProp$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp$1 = /^\w*$/;
|
2743 | function isKey$4(value, object) {
|
2744 | if (isArray$d(value)) {
|
2745 | return false;
|
2746 | }
|
2747 | var type = typeof value;
|
2748 | if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$4(value)) {
|
2749 | return true;
|
2750 | }
|
2751 | return reIsPlainProp$1.test(value) || !reIsDeepProp$1.test(value) || object != null && value in Object(object);
|
2752 | }
|
2753 | var nativeCreate$5 = getNative$8(Object, "create");
|
2754 | var nativeCreate$6 = nativeCreate$5;
|
2755 | function hashClear$2() {
|
2756 | this.__data__ = nativeCreate$6 ? nativeCreate$6(null) : {};
|
2757 | this.size = 0;
|
2758 | }
|
2759 | function hashDelete$2(key) {
|
2760 | var result = this.has(key) && delete this.__data__[key];
|
2761 | this.size -= result ? 1 : 0;
|
2762 | return result;
|
2763 | }
|
2764 | var HASH_UNDEFINED$5 = "__lodash_hash_undefined__";
|
2765 | var objectProto$m = Object.prototype;
|
2766 | var hasOwnProperty$i = objectProto$m.hasOwnProperty;
|
2767 | function hashGet$2(key) {
|
2768 | var data = this.__data__;
|
2769 | if (nativeCreate$6) {
|
2770 | var result = data[key];
|
2771 | return result === HASH_UNDEFINED$5 ? void 0 : result;
|
2772 | }
|
2773 | return hasOwnProperty$i.call(data, key) ? data[key] : void 0;
|
2774 | }
|
2775 | var objectProto$l = Object.prototype;
|
2776 | var hasOwnProperty$h = objectProto$l.hasOwnProperty;
|
2777 | function hashHas$2(key) {
|
2778 | var data = this.__data__;
|
2779 | return nativeCreate$6 ? data[key] !== void 0 : hasOwnProperty$h.call(data, key);
|
2780 | }
|
2781 | var HASH_UNDEFINED$4 = "__lodash_hash_undefined__";
|
2782 | function hashSet$2(key, value) {
|
2783 | var data = this.__data__;
|
2784 | this.size += this.has(key) ? 0 : 1;
|
2785 | data[key] = nativeCreate$6 && value === void 0 ? HASH_UNDEFINED$4 : value;
|
2786 | return this;
|
2787 | }
|
2788 | function Hash$2(entries) {
|
2789 | var index2 = -1, length = entries == null ? 0 : entries.length;
|
2790 | this.clear();
|
2791 | while (++index2 < length) {
|
2792 | var entry = entries[index2];
|
2793 | this.set(entry[0], entry[1]);
|
2794 | }
|
2795 | }
|
2796 | Hash$2.prototype.clear = hashClear$2;
|
2797 | Hash$2.prototype["delete"] = hashDelete$2;
|
2798 | Hash$2.prototype.get = hashGet$2;
|
2799 | Hash$2.prototype.has = hashHas$2;
|
2800 | Hash$2.prototype.set = hashSet$2;
|
2801 | function listCacheClear$2() {
|
2802 | this.__data__ = [];
|
2803 | this.size = 0;
|
2804 | }
|
2805 | function assocIndexOf$5(array, key) {
|
2806 | var length = array.length;
|
2807 | while (length--) {
|
2808 | if (eq$4(array[length][0], key)) {
|
2809 | return length;
|
2810 | }
|
2811 | }
|
2812 | return -1;
|
2813 | }
|
2814 | var arrayProto$1 = Array.prototype;
|
2815 | var splice$1 = arrayProto$1.splice;
|
2816 | function listCacheDelete$2(key) {
|
2817 | var data = this.__data__, index2 = assocIndexOf$5(data, key);
|
2818 | if (index2 < 0) {
|
2819 | return false;
|
2820 | }
|
2821 | var lastIndex = data.length - 1;
|
2822 | if (index2 == lastIndex) {
|
2823 | data.pop();
|
2824 | } else {
|
2825 | splice$1.call(data, index2, 1);
|
2826 | }
|
2827 | --this.size;
|
2828 | return true;
|
2829 | }
|
2830 | function listCacheGet$2(key) {
|
2831 | var data = this.__data__, index2 = assocIndexOf$5(data, key);
|
2832 | return index2 < 0 ? void 0 : data[index2][1];
|
2833 | }
|
2834 | function listCacheHas$2(key) {
|
2835 | return assocIndexOf$5(this.__data__, key) > -1;
|
2836 | }
|
2837 | function listCacheSet$2(key, value) {
|
2838 | var data = this.__data__, index2 = assocIndexOf$5(data, key);
|
2839 | if (index2 < 0) {
|
2840 | ++this.size;
|
2841 | data.push([key, value]);
|
2842 | } else {
|
2843 | data[index2][1] = value;
|
2844 | }
|
2845 | return this;
|
2846 | }
|
2847 | function ListCache$5(entries) {
|
2848 | var index2 = -1, length = entries == null ? 0 : entries.length;
|
2849 | this.clear();
|
2850 | while (++index2 < length) {
|
2851 | var entry = entries[index2];
|
2852 | this.set(entry[0], entry[1]);
|
2853 | }
|
2854 | }
|
2855 | ListCache$5.prototype.clear = listCacheClear$2;
|
2856 | ListCache$5.prototype["delete"] = listCacheDelete$2;
|
2857 | ListCache$5.prototype.get = listCacheGet$2;
|
2858 | ListCache$5.prototype.has = listCacheHas$2;
|
2859 | ListCache$5.prototype.set = listCacheSet$2;
|
2860 | var Map$5 = getNative$8(root$a, "Map");
|
2861 | var Map$6 = Map$5;
|
2862 | function mapCacheClear$2() {
|
2863 | this.size = 0;
|
2864 | this.__data__ = {
|
2865 | "hash": new Hash$2(),
|
2866 | "map": new (Map$6 || ListCache$5)(),
|
2867 | "string": new Hash$2()
|
2868 | };
|
2869 | }
|
2870 | function isKeyable$2(value) {
|
2871 | var type = typeof value;
|
2872 | return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
2873 | }
|
2874 | function getMapData$5(map2, key) {
|
2875 | var data = map2.__data__;
|
2876 | return isKeyable$2(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
2877 | }
|
2878 | function mapCacheDelete$2(key) {
|
2879 | var result = getMapData$5(this, key)["delete"](key);
|
2880 | this.size -= result ? 1 : 0;
|
2881 | return result;
|
2882 | }
|
2883 | function mapCacheGet$2(key) {
|
2884 | return getMapData$5(this, key).get(key);
|
2885 | }
|
2886 | function mapCacheHas$2(key) {
|
2887 | return getMapData$5(this, key).has(key);
|
2888 | }
|
2889 | function mapCacheSet$2(key, value) {
|
2890 | var data = getMapData$5(this, key), size = data.size;
|
2891 | data.set(key, value);
|
2892 | this.size += data.size == size ? 0 : 1;
|
2893 | return this;
|
2894 | }
|
2895 | function MapCache$4(entries) {
|
2896 | var index2 = -1, length = entries == null ? 0 : entries.length;
|
2897 | this.clear();
|
2898 | while (++index2 < length) {
|
2899 | var entry = entries[index2];
|
2900 | this.set(entry[0], entry[1]);
|
2901 | }
|
2902 | }
|
2903 | MapCache$4.prototype.clear = mapCacheClear$2;
|
2904 | MapCache$4.prototype["delete"] = mapCacheDelete$2;
|
2905 | MapCache$4.prototype.get = mapCacheGet$2;
|
2906 | MapCache$4.prototype.has = mapCacheHas$2;
|
2907 | MapCache$4.prototype.set = mapCacheSet$2;
|
2908 | var FUNC_ERROR_TEXT$3 = "Expected a function";
|
2909 | function memoize$2(func, resolver) {
|
2910 | if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
2911 | throw new TypeError(FUNC_ERROR_TEXT$3);
|
2912 | }
|
2913 | var memoized = function() {
|
2914 | var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
2915 | if (cache.has(key)) {
|
2916 | return cache.get(key);
|
2917 | }
|
2918 | var result = func.apply(this, args);
|
2919 | memoized.cache = cache.set(key, result) || cache;
|
2920 | return result;
|
2921 | };
|
2922 | memoized.cache = new (memoize$2.Cache || MapCache$4)();
|
2923 | return memoized;
|
2924 | }
|
2925 | memoize$2.Cache = MapCache$4;
|
2926 | var MAX_MEMOIZE_SIZE$1 = 500;
|
2927 | function memoizeCapped$2(func) {
|
2928 | var result = memoize$2(func, function(key) {
|
2929 | if (cache.size === MAX_MEMOIZE_SIZE$1) {
|
2930 | cache.clear();
|
2931 | }
|
2932 | return key;
|
2933 | });
|
2934 | var cache = result.cache;
|
2935 | return result;
|
2936 | }
|
2937 | var rePropName$1 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
2938 | var reEscapeChar$1 = /\\(\\)?/g;
|
2939 | var stringToPath$2 = memoizeCapped$2(function(string) {
|
2940 | var result = [];
|
2941 | if (string.charCodeAt(0) === 46) {
|
2942 | result.push("");
|
2943 | }
|
2944 | string.replace(rePropName$1, function(match, number, quote, subString) {
|
2945 | result.push(quote ? subString.replace(reEscapeChar$1, "$1") : number || match);
|
2946 | });
|
2947 | return result;
|
2948 | });
|
2949 | var stringToPath$3 = stringToPath$2;
|
2950 | function toString$2(value) {
|
2951 | return value == null ? "" : baseToString$2(value);
|
2952 | }
|
2953 | function castPath$3(value, object) {
|
2954 | if (isArray$d(value)) {
|
2955 | return value;
|
2956 | }
|
2957 | return isKey$4(value, object) ? [value] : stringToPath$3(toString$2(value));
|
2958 | }
|
2959 | var INFINITY$2 = 1 / 0;
|
2960 | function toKey$5(value) {
|
2961 | if (typeof value == "string" || isSymbol$4(value)) {
|
2962 | return value;
|
2963 | }
|
2964 | var result = value + "";
|
2965 | return result == "0" && 1 / value == -INFINITY$2 ? "-0" : result;
|
2966 | }
|
2967 | function baseGet$3(object, path) {
|
2968 | path = castPath$3(path, object);
|
2969 | var index2 = 0, length = path.length;
|
2970 | while (object != null && index2 < length) {
|
2971 | object = object[toKey$5(path[index2++])];
|
2972 | }
|
2973 | return index2 && index2 == length ? object : void 0;
|
2974 | }
|
2975 | function get$3(object, path, defaultValue) {
|
2976 | var result = object == null ? void 0 : baseGet$3(object, path);
|
2977 | return result === void 0 ? defaultValue : result;
|
2978 | }
|
2979 | function arrayPush$3(array, values) {
|
2980 | var index2 = -1, length = values.length, offset = array.length;
|
2981 | while (++index2 < length) {
|
2982 | array[offset + index2] = values[index2];
|
2983 | }
|
2984 | return array;
|
2985 | }
|
2986 | var getPrototype$4 = overArg$3(Object.getPrototypeOf, Object);
|
2987 | var getPrototype$5 = getPrototype$4;
|
2988 | var objectTag$8 = "[object Object]";
|
2989 | var funcProto$3 = Function.prototype, objectProto$k = Object.prototype;
|
2990 | var funcToString$3 = funcProto$3.toString;
|
2991 | var hasOwnProperty$g = objectProto$k.hasOwnProperty;
|
2992 | var objectCtorString$1 = funcToString$3.call(Object);
|
2993 | function isPlainObject$1(value) {
|
2994 | if (!isObjectLike$a(value) || baseGetTag$8(value) != objectTag$8) {
|
2995 | return false;
|
2996 | }
|
2997 | var proto = getPrototype$5(value);
|
2998 | if (proto === null) {
|
2999 | return true;
|
3000 | }
|
3001 | var Ctor = hasOwnProperty$g.call(proto, "constructor") && proto.constructor;
|
3002 | return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString$3.call(Ctor) == objectCtorString$1;
|
3003 | }
|
3004 | function stackClear$2() {
|
3005 | this.__data__ = new ListCache$5();
|
3006 | this.size = 0;
|
3007 | }
|
3008 | function stackDelete$2(key) {
|
3009 | var data = this.__data__, result = data["delete"](key);
|
3010 | this.size = data.size;
|
3011 | return result;
|
3012 | }
|
3013 | function stackGet$2(key) {
|
3014 | return this.__data__.get(key);
|
3015 | }
|
3016 | function stackHas$2(key) {
|
3017 | return this.__data__.has(key);
|
3018 | }
|
3019 | var LARGE_ARRAY_SIZE$1 = 200;
|
3020 | function stackSet$2(key, value) {
|
3021 | var data = this.__data__;
|
3022 | if (data instanceof ListCache$5) {
|
3023 | var pairs = data.__data__;
|
3024 | if (!Map$6 || pairs.length < LARGE_ARRAY_SIZE$1 - 1) {
|
3025 | pairs.push([key, value]);
|
3026 | this.size = ++data.size;
|
3027 | return this;
|
3028 | }
|
3029 | data = this.__data__ = new MapCache$4(pairs);
|
3030 | }
|
3031 | data.set(key, value);
|
3032 | this.size = data.size;
|
3033 | return this;
|
3034 | }
|
3035 | function Stack$4(entries) {
|
3036 | var data = this.__data__ = new ListCache$5(entries);
|
3037 | this.size = data.size;
|
3038 | }
|
3039 | Stack$4.prototype.clear = stackClear$2;
|
3040 | Stack$4.prototype["delete"] = stackDelete$2;
|
3041 | Stack$4.prototype.get = stackGet$2;
|
3042 | Stack$4.prototype.has = stackHas$2;
|
3043 | Stack$4.prototype.set = stackSet$2;
|
3044 | function baseAssign$2(object, source) {
|
3045 | return object && copyObject$5(source, keys$6(source), object);
|
3046 | }
|
3047 | function baseAssignIn$2(object, source) {
|
3048 | return object && copyObject$5(source, keysIn$4(source), object);
|
3049 | }
|
3050 | var freeExports = typeof exports == "object" && exports && !exports.nodeType && exports;
|
3051 | var freeModule = freeExports && typeof module == "object" && module && !module.nodeType && module;
|
3052 | var moduleExports = freeModule && freeModule.exports === freeExports;
|
3053 | var Buffer2 = moduleExports ? root$a.Buffer : void 0, allocUnsafe = Buffer2 ? Buffer2.allocUnsafe : void 0;
|
3054 | function cloneBuffer$1(buffer, isDeep) {
|
3055 | if (isDeep) {
|
3056 | return buffer.slice();
|
3057 | }
|
3058 | var length = buffer.length, result = allocUnsafe ? allocUnsafe(length) : new buffer.constructor(length);
|
3059 | buffer.copy(result);
|
3060 | return result;
|
3061 | }
|
3062 | function arrayFilter$2(array, predicate) {
|
3063 | var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
3064 | while (++index2 < length) {
|
3065 | var value = array[index2];
|
3066 | if (predicate(value, index2, array)) {
|
3067 | result[resIndex++] = value;
|
3068 | }
|
3069 | }
|
3070 | return result;
|
3071 | }
|
3072 | function stubArray$3() {
|
3073 | return [];
|
3074 | }
|
3075 | var objectProto$j = Object.prototype;
|
3076 | var propertyIsEnumerable$2 = objectProto$j.propertyIsEnumerable;
|
3077 | var nativeGetSymbols$3 = Object.getOwnPropertySymbols;
|
3078 | var getSymbols$4 = !nativeGetSymbols$3 ? stubArray$3 : function(object) {
|
3079 | if (object == null) {
|
3080 | return [];
|
3081 | }
|
3082 | object = Object(object);
|
3083 | return arrayFilter$2(nativeGetSymbols$3(object), function(symbol) {
|
3084 | return propertyIsEnumerable$2.call(object, symbol);
|
3085 | });
|
3086 | };
|
3087 | var getSymbols$5 = getSymbols$4;
|
3088 | function copySymbols$2(source, object) {
|
3089 | return copyObject$5(source, getSymbols$5(source), object);
|
3090 | }
|
3091 | var nativeGetSymbols$2 = Object.getOwnPropertySymbols;
|
3092 | var getSymbolsIn$3 = !nativeGetSymbols$2 ? stubArray$3 : function(object) {
|
3093 | var result = [];
|
3094 | while (object) {
|
3095 | arrayPush$3(result, getSymbols$5(object));
|
3096 | object = getPrototype$5(object);
|
3097 | }
|
3098 | return result;
|
3099 | };
|
3100 | var getSymbolsIn$4 = getSymbolsIn$3;
|
3101 | function copySymbolsIn$2(source, object) {
|
3102 | return copyObject$5(source, getSymbolsIn$4(source), object);
|
3103 | }
|
3104 | function baseGetAllKeys$3(object, keysFunc, symbolsFunc) {
|
3105 | var result = keysFunc(object);
|
3106 | return isArray$d(object) ? result : arrayPush$3(result, symbolsFunc(object));
|
3107 | }
|
3108 | function getAllKeys$3(object) {
|
3109 | return baseGetAllKeys$3(object, keys$6, getSymbols$5);
|
3110 | }
|
3111 | function getAllKeysIn$2(object) {
|
3112 | return baseGetAllKeys$3(object, keysIn$4, getSymbolsIn$4);
|
3113 | }
|
3114 | var DataView$2 = getNative$8(root$a, "DataView");
|
3115 | var DataView$3 = DataView$2;
|
3116 | var Promise$3 = getNative$8(root$a, "Promise");
|
3117 | var Promise$4 = Promise$3;
|
3118 | var Set$2 = getNative$8(root$a, "Set");
|
3119 | var Set$3 = Set$2;
|
3120 | var mapTag$a = "[object Map]", objectTag$7 = "[object Object]", promiseTag$1 = "[object Promise]", setTag$a = "[object Set]", weakMapTag$4 = "[object WeakMap]";
|
3121 | var dataViewTag$8 = "[object DataView]";
|
3122 | var dataViewCtorString$1 = toSource$3(DataView$3), mapCtorString$1 = toSource$3(Map$6), promiseCtorString$1 = toSource$3(Promise$4), setCtorString$1 = toSource$3(Set$3), weakMapCtorString$1 = toSource$3(WeakMap$3);
|
3123 | var getTag$5 = baseGetTag$8;
|
3124 | if (DataView$3 && getTag$5(new DataView$3(new ArrayBuffer(1))) != dataViewTag$8 || Map$6 && getTag$5(new Map$6()) != mapTag$a || Promise$4 && getTag$5(Promise$4.resolve()) != promiseTag$1 || Set$3 && getTag$5(new Set$3()) != setTag$a || WeakMap$3 && getTag$5(new WeakMap$3()) != weakMapTag$4) {
|
3125 | getTag$5 = function(value) {
|
3126 | var result = baseGetTag$8(value), Ctor = result == objectTag$7 ? value.constructor : void 0, ctorString = Ctor ? toSource$3(Ctor) : "";
|
3127 | if (ctorString) {
|
3128 | switch (ctorString) {
|
3129 | case dataViewCtorString$1:
|
3130 | return dataViewTag$8;
|
3131 | case mapCtorString$1:
|
3132 | return mapTag$a;
|
3133 | case promiseCtorString$1:
|
3134 | return promiseTag$1;
|
3135 | case setCtorString$1:
|
3136 | return setTag$a;
|
3137 | case weakMapCtorString$1:
|
3138 | return weakMapTag$4;
|
3139 | }
|
3140 | }
|
3141 | return result;
|
3142 | };
|
3143 | }
|
3144 | var getTag$6 = getTag$5;
|
3145 | var objectProto$i = Object.prototype;
|
3146 | var hasOwnProperty$f = objectProto$i.hasOwnProperty;
|
3147 | function initCloneArray$2(array) {
|
3148 | var length = array.length, result = new array.constructor(length);
|
3149 | if (length && typeof array[0] == "string" && hasOwnProperty$f.call(array, "index")) {
|
3150 | result.index = array.index;
|
3151 | result.input = array.input;
|
3152 | }
|
3153 | return result;
|
3154 | }
|
3155 | var Uint8Array$4 = root$a.Uint8Array;
|
3156 | var Uint8Array$5 = Uint8Array$4;
|
3157 | function cloneArrayBuffer$4(arrayBuffer) {
|
3158 | var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
3159 | new Uint8Array$5(result).set(new Uint8Array$5(arrayBuffer));
|
3160 | return result;
|
3161 | }
|
3162 | function cloneDataView$2(dataView, isDeep) {
|
3163 | var buffer = isDeep ? cloneArrayBuffer$4(dataView.buffer) : dataView.buffer;
|
3164 | return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
3165 | }
|
3166 | var reFlags$1 = /\w*$/;
|
3167 | function cloneRegExp$2(regexp) {
|
3168 | var result = new regexp.constructor(regexp.source, reFlags$1.exec(regexp));
|
3169 | result.lastIndex = regexp.lastIndex;
|
3170 | return result;
|
3171 | }
|
3172 | var symbolProto$4 = Symbol$8 ? Symbol$8.prototype : void 0, symbolValueOf$3 = symbolProto$4 ? symbolProto$4.valueOf : void 0;
|
3173 | function cloneSymbol$2(symbol) {
|
3174 | return symbolValueOf$3 ? Object(symbolValueOf$3.call(symbol)) : {};
|
3175 | }
|
3176 | function cloneTypedArray$2(typedArray, isDeep) {
|
3177 | var buffer = isDeep ? cloneArrayBuffer$4(typedArray.buffer) : typedArray.buffer;
|
3178 | return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
3179 | }
|
3180 | var boolTag$6 = "[object Boolean]", dateTag$6 = "[object Date]", mapTag$9 = "[object Map]", numberTag$6 = "[object Number]", regexpTag$6 = "[object RegExp]", setTag$9 = "[object Set]", stringTag$8 = "[object String]", symbolTag$6 = "[object Symbol]";
|
3181 | var arrayBufferTag$6 = "[object ArrayBuffer]", dataViewTag$7 = "[object DataView]", float32Tag$4 = "[object Float32Array]", float64Tag$4 = "[object Float64Array]", int8Tag$4 = "[object Int8Array]", int16Tag$4 = "[object Int16Array]", int32Tag$4 = "[object Int32Array]", uint8Tag$4 = "[object Uint8Array]", uint8ClampedTag$4 = "[object Uint8ClampedArray]", uint16Tag$4 = "[object Uint16Array]", uint32Tag$4 = "[object Uint32Array]";
|
3182 | function initCloneByTag$2(object, tag, isDeep) {
|
3183 | var Ctor = object.constructor;
|
3184 | switch (tag) {
|
3185 | case arrayBufferTag$6:
|
3186 | return cloneArrayBuffer$4(object);
|
3187 | case boolTag$6:
|
3188 | case dateTag$6:
|
3189 | return new Ctor(+object);
|
3190 | case dataViewTag$7:
|
3191 | return cloneDataView$2(object, isDeep);
|
3192 | case float32Tag$4:
|
3193 | case float64Tag$4:
|
3194 | case int8Tag$4:
|
3195 | case int16Tag$4:
|
3196 | case int32Tag$4:
|
3197 | case uint8Tag$4:
|
3198 | case uint8ClampedTag$4:
|
3199 | case uint16Tag$4:
|
3200 | case uint32Tag$4:
|
3201 | return cloneTypedArray$2(object, isDeep);
|
3202 | case mapTag$9:
|
3203 | return new Ctor();
|
3204 | case numberTag$6:
|
3205 | case stringTag$8:
|
3206 | return new Ctor(object);
|
3207 | case regexpTag$6:
|
3208 | return cloneRegExp$2(object);
|
3209 | case setTag$9:
|
3210 | return new Ctor();
|
3211 | case symbolTag$6:
|
3212 | return cloneSymbol$2(object);
|
3213 | }
|
3214 | }
|
3215 | function initCloneObject$2(object) {
|
3216 | return typeof object.constructor == "function" && !isPrototype$4(object) ? baseCreate$3(getPrototype$5(object)) : {};
|
3217 | }
|
3218 | var mapTag$8 = "[object Map]";
|
3219 | function baseIsMap$2(value) {
|
3220 | return isObjectLike$a(value) && getTag$6(value) == mapTag$8;
|
3221 | }
|
3222 | var nodeIsMap$1 = nodeUtil$4 && nodeUtil$4.isMap;
|
3223 | var isMap$2 = nodeIsMap$1 ? baseUnary$4(nodeIsMap$1) : baseIsMap$2;
|
3224 | var isMap$3 = isMap$2;
|
3225 | var setTag$8 = "[object Set]";
|
3226 | function baseIsSet$2(value) {
|
3227 | return isObjectLike$a(value) && getTag$6(value) == setTag$8;
|
3228 | }
|
3229 | var nodeIsSet$1 = nodeUtil$4 && nodeUtil$4.isSet;
|
3230 | var isSet$2 = nodeIsSet$1 ? baseUnary$4(nodeIsSet$1) : baseIsSet$2;
|
3231 | var isSet$3 = isSet$2;
|
3232 | var CLONE_DEEP_FLAG$3 = 1, CLONE_FLAT_FLAG$1 = 2, CLONE_SYMBOLS_FLAG$4 = 4;
|
3233 | var argsTag$5 = "[object Arguments]", arrayTag$4 = "[object Array]", boolTag$5 = "[object Boolean]", dateTag$5 = "[object Date]", errorTag$4 = "[object Error]", funcTag$3 = "[object Function]", genTag$2 = "[object GeneratorFunction]", mapTag$7 = "[object Map]", numberTag$5 = "[object Number]", objectTag$6 = "[object Object]", regexpTag$5 = "[object RegExp]", setTag$7 = "[object Set]", stringTag$7 = "[object String]", symbolTag$5 = "[object Symbol]", weakMapTag$3 = "[object WeakMap]";
|
3234 | var arrayBufferTag$5 = "[object ArrayBuffer]", dataViewTag$6 = "[object DataView]", float32Tag$3 = "[object Float32Array]", float64Tag$3 = "[object Float64Array]", int8Tag$3 = "[object Int8Array]", int16Tag$3 = "[object Int16Array]", int32Tag$3 = "[object Int32Array]", uint8Tag$3 = "[object Uint8Array]", uint8ClampedTag$3 = "[object Uint8ClampedArray]", uint16Tag$3 = "[object Uint16Array]", uint32Tag$3 = "[object Uint32Array]";
|
3235 | var cloneableTags$1 = {};
|
3236 | cloneableTags$1[argsTag$5] = cloneableTags$1[arrayTag$4] = cloneableTags$1[arrayBufferTag$5] = cloneableTags$1[dataViewTag$6] = cloneableTags$1[boolTag$5] = cloneableTags$1[dateTag$5] = cloneableTags$1[float32Tag$3] = cloneableTags$1[float64Tag$3] = cloneableTags$1[int8Tag$3] = cloneableTags$1[int16Tag$3] = cloneableTags$1[int32Tag$3] = cloneableTags$1[mapTag$7] = cloneableTags$1[numberTag$5] = cloneableTags$1[objectTag$6] = cloneableTags$1[regexpTag$5] = cloneableTags$1[setTag$7] = cloneableTags$1[stringTag$7] = cloneableTags$1[symbolTag$5] = cloneableTags$1[uint8Tag$3] = cloneableTags$1[uint8ClampedTag$3] = cloneableTags$1[uint16Tag$3] = cloneableTags$1[uint32Tag$3] = true;
|
3237 | cloneableTags$1[errorTag$4] = cloneableTags$1[funcTag$3] = cloneableTags$1[weakMapTag$3] = false;
|
3238 | function baseClone$2(value, bitmask, customizer, key, object, stack) {
|
3239 | var result, isDeep = bitmask & CLONE_DEEP_FLAG$3, isFlat = bitmask & CLONE_FLAT_FLAG$1, isFull = bitmask & CLONE_SYMBOLS_FLAG$4;
|
3240 | if (customizer) {
|
3241 | result = object ? customizer(value, key, object, stack) : customizer(value);
|
3242 | }
|
3243 | if (result !== void 0) {
|
3244 | return result;
|
3245 | }
|
3246 | if (!isObject$7(value)) {
|
3247 | return value;
|
3248 | }
|
3249 | var isArr = isArray$d(value);
|
3250 | if (isArr) {
|
3251 | result = initCloneArray$2(value);
|
3252 | if (!isDeep) {
|
3253 | return copyArray$2(value, result);
|
3254 | }
|
3255 | } else {
|
3256 | var tag = getTag$6(value), isFunc = tag == funcTag$3 || tag == genTag$2;
|
3257 | if (isBuffer$5(value)) {
|
3258 | return cloneBuffer$1(value, isDeep);
|
3259 | }
|
3260 | if (tag == objectTag$6 || tag == argsTag$5 || isFunc && !object) {
|
3261 | result = isFlat || isFunc ? {} : initCloneObject$2(value);
|
3262 | if (!isDeep) {
|
3263 | return isFlat ? copySymbolsIn$2(value, baseAssignIn$2(result, value)) : copySymbols$2(value, baseAssign$2(result, value));
|
3264 | }
|
3265 | } else {
|
3266 | if (!cloneableTags$1[tag]) {
|
3267 | return object ? value : {};
|
3268 | }
|
3269 | result = initCloneByTag$2(value, tag, isDeep);
|
3270 | }
|
3271 | }
|
3272 | stack || (stack = new Stack$4());
|
3273 | var stacked = stack.get(value);
|
3274 | if (stacked) {
|
3275 | return stacked;
|
3276 | }
|
3277 | stack.set(value, result);
|
3278 | if (isSet$3(value)) {
|
3279 | value.forEach(function(subValue) {
|
3280 | result.add(baseClone$2(subValue, bitmask, customizer, subValue, value, stack));
|
3281 | });
|
3282 | } else if (isMap$3(value)) {
|
3283 | value.forEach(function(subValue, key2) {
|
3284 | result.set(key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
|
3285 | });
|
3286 | }
|
3287 | var keysFunc = isFull ? isFlat ? getAllKeysIn$2 : getAllKeys$3 : isFlat ? keysIn$4 : keys$6;
|
3288 | var props = isArr ? void 0 : keysFunc(value);
|
3289 | arrayEach$2(props || value, function(subValue, key2) {
|
3290 | if (props) {
|
3291 | key2 = subValue;
|
3292 | subValue = value[key2];
|
3293 | }
|
3294 | assignValue$3(result, key2, baseClone$2(subValue, bitmask, customizer, key2, value, stack));
|
3295 | });
|
3296 | return result;
|
3297 | }
|
3298 | var CLONE_SYMBOLS_FLAG$3 = 4;
|
3299 | function clone(value) {
|
3300 | return baseClone$2(value, CLONE_SYMBOLS_FLAG$3);
|
3301 | }
|
3302 | var CLONE_DEEP_FLAG$2 = 1, CLONE_SYMBOLS_FLAG$2 = 4;
|
3303 | function cloneDeep$1(value) {
|
3304 | return baseClone$2(value, CLONE_DEEP_FLAG$2 | CLONE_SYMBOLS_FLAG$2);
|
3305 | }
|
3306 | var HASH_UNDEFINED$3 = "__lodash_hash_undefined__";
|
3307 | function setCacheAdd$2(value) {
|
3308 | this.__data__.set(value, HASH_UNDEFINED$3);
|
3309 | return this;
|
3310 | }
|
3311 | function setCacheHas$2(value) {
|
3312 | return this.__data__.has(value);
|
3313 | }
|
3314 | function SetCache$2(values) {
|
3315 | var index2 = -1, length = values == null ? 0 : values.length;
|
3316 | this.__data__ = new MapCache$4();
|
3317 | while (++index2 < length) {
|
3318 | this.add(values[index2]);
|
3319 | }
|
3320 | }
|
3321 | SetCache$2.prototype.add = SetCache$2.prototype.push = setCacheAdd$2;
|
3322 | SetCache$2.prototype.has = setCacheHas$2;
|
3323 | function arraySome$2(array, predicate) {
|
3324 | var index2 = -1, length = array == null ? 0 : array.length;
|
3325 | while (++index2 < length) {
|
3326 | if (predicate(array[index2], index2, array)) {
|
3327 | return true;
|
3328 | }
|
3329 | }
|
3330 | return false;
|
3331 | }
|
3332 | function cacheHas$2(cache, key) {
|
3333 | return cache.has(key);
|
3334 | }
|
3335 | var COMPARE_PARTIAL_FLAG$b = 1, COMPARE_UNORDERED_FLAG$7 = 2;
|
3336 | function equalArrays$3(array, other, bitmask, customizer, equalFunc, stack) {
|
3337 | var isPartial = bitmask & COMPARE_PARTIAL_FLAG$b, arrLength = array.length, othLength = other.length;
|
3338 | if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
3339 | return false;
|
3340 | }
|
3341 | var arrStacked = stack.get(array);
|
3342 | var othStacked = stack.get(other);
|
3343 | if (arrStacked && othStacked) {
|
3344 | return arrStacked == other && othStacked == array;
|
3345 | }
|
3346 | var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$7 ? new SetCache$2() : void 0;
|
3347 | stack.set(array, other);
|
3348 | stack.set(other, array);
|
3349 | while (++index2 < arrLength) {
|
3350 | var arrValue = array[index2], othValue = other[index2];
|
3351 | if (customizer) {
|
3352 | var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
|
3353 | }
|
3354 | if (compared !== void 0) {
|
3355 | if (compared) {
|
3356 | continue;
|
3357 | }
|
3358 | result = false;
|
3359 | break;
|
3360 | }
|
3361 | if (seen) {
|
3362 | if (!arraySome$2(other, function(othValue2, othIndex) {
|
3363 | if (!cacheHas$2(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
3364 | return seen.push(othIndex);
|
3365 | }
|
3366 | })) {
|
3367 | result = false;
|
3368 | break;
|
3369 | }
|
3370 | } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
3371 | result = false;
|
3372 | break;
|
3373 | }
|
3374 | }
|
3375 | stack["delete"](array);
|
3376 | stack["delete"](other);
|
3377 | return result;
|
3378 | }
|
3379 | function mapToArray$2(map2) {
|
3380 | var index2 = -1, result = Array(map2.size);
|
3381 | map2.forEach(function(value, key) {
|
3382 | result[++index2] = [key, value];
|
3383 | });
|
3384 | return result;
|
3385 | }
|
3386 | function setToArray$2(set) {
|
3387 | var index2 = -1, result = Array(set.size);
|
3388 | set.forEach(function(value) {
|
3389 | result[++index2] = value;
|
3390 | });
|
3391 | return result;
|
3392 | }
|
3393 | var COMPARE_PARTIAL_FLAG$a = 1, COMPARE_UNORDERED_FLAG$6 = 2;
|
3394 | var boolTag$4 = "[object Boolean]", dateTag$4 = "[object Date]", errorTag$3 = "[object Error]", mapTag$6 = "[object Map]", numberTag$4 = "[object Number]", regexpTag$4 = "[object RegExp]", setTag$6 = "[object Set]", stringTag$6 = "[object String]", symbolTag$4 = "[object Symbol]";
|
3395 | var arrayBufferTag$4 = "[object ArrayBuffer]", dataViewTag$5 = "[object DataView]";
|
3396 | var symbolProto$3 = Symbol$8 ? Symbol$8.prototype : void 0, symbolValueOf$2 = symbolProto$3 ? symbolProto$3.valueOf : void 0;
|
3397 | function equalByTag$2(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
3398 | switch (tag) {
|
3399 | case dataViewTag$5:
|
3400 | if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
3401 | return false;
|
3402 | }
|
3403 | object = object.buffer;
|
3404 | other = other.buffer;
|
3405 | case arrayBufferTag$4:
|
3406 | if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$5(object), new Uint8Array$5(other))) {
|
3407 | return false;
|
3408 | }
|
3409 | return true;
|
3410 | case boolTag$4:
|
3411 | case dateTag$4:
|
3412 | case numberTag$4:
|
3413 | return eq$4(+object, +other);
|
3414 | case errorTag$3:
|
3415 | return object.name == other.name && object.message == other.message;
|
3416 | case regexpTag$4:
|
3417 | case stringTag$6:
|
3418 | return object == other + "";
|
3419 | case mapTag$6:
|
3420 | var convert = mapToArray$2;
|
3421 | case setTag$6:
|
3422 | var isPartial = bitmask & COMPARE_PARTIAL_FLAG$a;
|
3423 | convert || (convert = setToArray$2);
|
3424 | if (object.size != other.size && !isPartial) {
|
3425 | return false;
|
3426 | }
|
3427 | var stacked = stack.get(object);
|
3428 | if (stacked) {
|
3429 | return stacked == other;
|
3430 | }
|
3431 | bitmask |= COMPARE_UNORDERED_FLAG$6;
|
3432 | stack.set(object, other);
|
3433 | var result = equalArrays$3(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
3434 | stack["delete"](object);
|
3435 | return result;
|
3436 | case symbolTag$4:
|
3437 | if (symbolValueOf$2) {
|
3438 | return symbolValueOf$2.call(object) == symbolValueOf$2.call(other);
|
3439 | }
|
3440 | }
|
3441 | return false;
|
3442 | }
|
3443 | var COMPARE_PARTIAL_FLAG$9 = 1;
|
3444 | var objectProto$h = Object.prototype;
|
3445 | var hasOwnProperty$e = objectProto$h.hasOwnProperty;
|
3446 | function equalObjects$2(object, other, bitmask, customizer, equalFunc, stack) {
|
3447 | var isPartial = bitmask & COMPARE_PARTIAL_FLAG$9, objProps = getAllKeys$3(object), objLength = objProps.length, othProps = getAllKeys$3(other), othLength = othProps.length;
|
3448 | if (objLength != othLength && !isPartial) {
|
3449 | return false;
|
3450 | }
|
3451 | var index2 = objLength;
|
3452 | while (index2--) {
|
3453 | var key = objProps[index2];
|
3454 | if (!(isPartial ? key in other : hasOwnProperty$e.call(other, key))) {
|
3455 | return false;
|
3456 | }
|
3457 | }
|
3458 | var objStacked = stack.get(object);
|
3459 | var othStacked = stack.get(other);
|
3460 | if (objStacked && othStacked) {
|
3461 | return objStacked == other && othStacked == object;
|
3462 | }
|
3463 | var result = true;
|
3464 | stack.set(object, other);
|
3465 | stack.set(other, object);
|
3466 | var skipCtor = isPartial;
|
3467 | while (++index2 < objLength) {
|
3468 | key = objProps[index2];
|
3469 | var objValue = object[key], othValue = other[key];
|
3470 | if (customizer) {
|
3471 | var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
3472 | }
|
3473 | if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
3474 | result = false;
|
3475 | break;
|
3476 | }
|
3477 | skipCtor || (skipCtor = key == "constructor");
|
3478 | }
|
3479 | if (result && !skipCtor) {
|
3480 | var objCtor = object.constructor, othCtor = other.constructor;
|
3481 | if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
3482 | result = false;
|
3483 | }
|
3484 | }
|
3485 | stack["delete"](object);
|
3486 | stack["delete"](other);
|
3487 | return result;
|
3488 | }
|
3489 | var COMPARE_PARTIAL_FLAG$8 = 1;
|
3490 | var argsTag$4 = "[object Arguments]", arrayTag$3 = "[object Array]", objectTag$5 = "[object Object]";
|
3491 | var objectProto$g = Object.prototype;
|
3492 | var hasOwnProperty$d = objectProto$g.hasOwnProperty;
|
3493 | function baseIsEqualDeep$2(object, other, bitmask, customizer, equalFunc, stack) {
|
3494 | var objIsArr = isArray$d(object), othIsArr = isArray$d(other), objTag = objIsArr ? arrayTag$3 : getTag$6(object), othTag = othIsArr ? arrayTag$3 : getTag$6(other);
|
3495 | objTag = objTag == argsTag$4 ? objectTag$5 : objTag;
|
3496 | othTag = othTag == argsTag$4 ? objectTag$5 : othTag;
|
3497 | var objIsObj = objTag == objectTag$5, othIsObj = othTag == objectTag$5, isSameTag = objTag == othTag;
|
3498 | if (isSameTag && isBuffer$5(object)) {
|
3499 | if (!isBuffer$5(other)) {
|
3500 | return false;
|
3501 | }
|
3502 | objIsArr = true;
|
3503 | objIsObj = false;
|
3504 | }
|
3505 | if (isSameTag && !objIsObj) {
|
3506 | stack || (stack = new Stack$4());
|
3507 | return objIsArr || isTypedArray$4(object) ? equalArrays$3(object, other, bitmask, customizer, equalFunc, stack) : equalByTag$2(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
3508 | }
|
3509 | if (!(bitmask & COMPARE_PARTIAL_FLAG$8)) {
|
3510 | var objIsWrapped = objIsObj && hasOwnProperty$d.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$d.call(other, "__wrapped__");
|
3511 | if (objIsWrapped || othIsWrapped) {
|
3512 | var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
3513 | stack || (stack = new Stack$4());
|
3514 | return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
3515 | }
|
3516 | }
|
3517 | if (!isSameTag) {
|
3518 | return false;
|
3519 | }
|
3520 | stack || (stack = new Stack$4());
|
3521 | return equalObjects$2(object, other, bitmask, customizer, equalFunc, stack);
|
3522 | }
|
3523 | function baseIsEqual$3(value, other, bitmask, customizer, stack) {
|
3524 | if (value === other) {
|
3525 | return true;
|
3526 | }
|
3527 | if (value == null || other == null || !isObjectLike$a(value) && !isObjectLike$a(other)) {
|
3528 | return value !== value && other !== other;
|
3529 | }
|
3530 | return baseIsEqualDeep$2(value, other, bitmask, customizer, baseIsEqual$3, stack);
|
3531 | }
|
3532 | var COMPARE_PARTIAL_FLAG$7 = 1, COMPARE_UNORDERED_FLAG$5 = 2;
|
3533 | function baseIsMatch$2(object, source, matchData, customizer) {
|
3534 | var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
3535 | if (object == null) {
|
3536 | return !length;
|
3537 | }
|
3538 | object = Object(object);
|
3539 | while (index2--) {
|
3540 | var data = matchData[index2];
|
3541 | if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
3542 | return false;
|
3543 | }
|
3544 | }
|
3545 | while (++index2 < length) {
|
3546 | data = matchData[index2];
|
3547 | var key = data[0], objValue = object[key], srcValue = data[1];
|
3548 | if (noCustomizer && data[2]) {
|
3549 | if (objValue === void 0 && !(key in object)) {
|
3550 | return false;
|
3551 | }
|
3552 | } else {
|
3553 | var stack = new Stack$4();
|
3554 | if (customizer) {
|
3555 | var result = customizer(objValue, srcValue, key, object, source, stack);
|
3556 | }
|
3557 | if (!(result === void 0 ? baseIsEqual$3(srcValue, objValue, COMPARE_PARTIAL_FLAG$7 | COMPARE_UNORDERED_FLAG$5, customizer, stack) : result)) {
|
3558 | return false;
|
3559 | }
|
3560 | }
|
3561 | }
|
3562 | return true;
|
3563 | }
|
3564 | function isStrictComparable$3(value) {
|
3565 | return value === value && !isObject$7(value);
|
3566 | }
|
3567 | function getMatchData$2(object) {
|
3568 | var result = keys$6(object), length = result.length;
|
3569 | while (length--) {
|
3570 | var key = result[length], value = object[key];
|
3571 | result[length] = [key, value, isStrictComparable$3(value)];
|
3572 | }
|
3573 | return result;
|
3574 | }
|
3575 | function matchesStrictComparable$3(key, srcValue) {
|
3576 | return function(object) {
|
3577 | if (object == null) {
|
3578 | return false;
|
3579 | }
|
3580 | return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
3581 | };
|
3582 | }
|
3583 | function baseMatches$2(source) {
|
3584 | var matchData = getMatchData$2(source);
|
3585 | if (matchData.length == 1 && matchData[0][2]) {
|
3586 | return matchesStrictComparable$3(matchData[0][0], matchData[0][1]);
|
3587 | }
|
3588 | return function(object) {
|
3589 | return object === source || baseIsMatch$2(object, source, matchData);
|
3590 | };
|
3591 | }
|
3592 | function baseHasIn$2(object, key) {
|
3593 | return object != null && key in Object(object);
|
3594 | }
|
3595 | function hasPath$2(object, path, hasFunc) {
|
3596 | path = castPath$3(path, object);
|
3597 | var index2 = -1, length = path.length, result = false;
|
3598 | while (++index2 < length) {
|
3599 | var key = toKey$5(path[index2]);
|
3600 | if (!(result = object != null && hasFunc(object, key))) {
|
3601 | break;
|
3602 | }
|
3603 | object = object[key];
|
3604 | }
|
3605 | if (result || ++index2 != length) {
|
3606 | return result;
|
3607 | }
|
3608 | length = object == null ? 0 : object.length;
|
3609 | return !!length && isLength$4(length) && isIndex$3(key, length) && (isArray$d(object) || isArguments$4(object));
|
3610 | }
|
3611 | function hasIn$2(object, path) {
|
3612 | return object != null && hasPath$2(object, path, baseHasIn$2);
|
3613 | }
|
3614 | var COMPARE_PARTIAL_FLAG$6 = 1, COMPARE_UNORDERED_FLAG$4 = 2;
|
3615 | function baseMatchesProperty$2(path, srcValue) {
|
3616 | if (isKey$4(path) && isStrictComparable$3(srcValue)) {
|
3617 | return matchesStrictComparable$3(toKey$5(path), srcValue);
|
3618 | }
|
3619 | return function(object) {
|
3620 | var objValue = get$3(object, path);
|
3621 | return objValue === void 0 && objValue === srcValue ? hasIn$2(object, path) : baseIsEqual$3(srcValue, objValue, COMPARE_PARTIAL_FLAG$6 | COMPARE_UNORDERED_FLAG$4);
|
3622 | };
|
3623 | }
|
3624 | function baseProperty$2(key) {
|
3625 | return function(object) {
|
3626 | return object == null ? void 0 : object[key];
|
3627 | };
|
3628 | }
|
3629 | function basePropertyDeep$2(path) {
|
3630 | return function(object) {
|
3631 | return baseGet$3(object, path);
|
3632 | };
|
3633 | }
|
3634 | function property$2(path) {
|
3635 | return isKey$4(path) ? baseProperty$2(toKey$5(path)) : basePropertyDeep$2(path);
|
3636 | }
|
3637 | function baseIteratee$2(value) {
|
3638 | if (typeof value == "function") {
|
3639 | return value;
|
3640 | }
|
3641 | if (value == null) {
|
3642 | return identity$3;
|
3643 | }
|
3644 | if (typeof value == "object") {
|
3645 | return isArray$d(value) ? baseMatchesProperty$2(value[0], value[1]) : baseMatches$2(value);
|
3646 | }
|
3647 | return property$2(value);
|
3648 | }
|
3649 | function createBaseFor$2(fromRight) {
|
3650 | return function(object, iteratee, keysFunc) {
|
3651 | var index2 = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
3652 | while (length--) {
|
3653 | var key = props[fromRight ? length : ++index2];
|
3654 | if (iteratee(iterable[key], key, iterable) === false) {
|
3655 | break;
|
3656 | }
|
3657 | }
|
3658 | return object;
|
3659 | };
|
3660 | }
|
3661 | var baseFor$2 = createBaseFor$2();
|
3662 | var baseFor$3 = baseFor$2;
|
3663 | function baseForOwn$3(object, iteratee) {
|
3664 | return object && baseFor$3(object, iteratee, keys$6);
|
3665 | }
|
3666 | function createBaseEach$2(eachFunc, fromRight) {
|
3667 | return function(collection, iteratee) {
|
3668 | if (collection == null) {
|
3669 | return collection;
|
3670 | }
|
3671 | if (!isArrayLike$5(collection)) {
|
3672 | return eachFunc(collection, iteratee);
|
3673 | }
|
3674 | var length = collection.length, index2 = fromRight ? length : -1, iterable = Object(collection);
|
3675 | while (fromRight ? index2-- : ++index2 < length) {
|
3676 | if (iteratee(iterable[index2], index2, iterable) === false) {
|
3677 | break;
|
3678 | }
|
3679 | }
|
3680 | return collection;
|
3681 | };
|
3682 | }
|
3683 | var baseEach$2 = createBaseEach$2(baseForOwn$3);
|
3684 | var baseEach$3 = baseEach$2;
|
3685 | var now = function() {
|
3686 | return root$a.Date.now();
|
3687 | };
|
3688 | var now$1 = now;
|
3689 | var FUNC_ERROR_TEXT$2 = "Expected a function";
|
3690 | var nativeMax = Math.max, nativeMin = Math.min;
|
3691 | function debounce(func, wait, options) {
|
3692 | var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
|
3693 | if (typeof func != "function") {
|
3694 | throw new TypeError(FUNC_ERROR_TEXT$2);
|
3695 | }
|
3696 | wait = toNumber(wait) || 0;
|
3697 | if (isObject$7(options)) {
|
3698 | leading = !!options.leading;
|
3699 | maxing = "maxWait" in options;
|
3700 | maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
|
3701 | trailing = "trailing" in options ? !!options.trailing : trailing;
|
3702 | }
|
3703 | function invokeFunc(time) {
|
3704 | var args = lastArgs, thisArg = lastThis;
|
3705 | lastArgs = lastThis = void 0;
|
3706 | lastInvokeTime = time;
|
3707 | result = func.apply(thisArg, args);
|
3708 | return result;
|
3709 | }
|
3710 | function leadingEdge(time) {
|
3711 | lastInvokeTime = time;
|
3712 | timerId = setTimeout(timerExpired, wait);
|
3713 | return leading ? invokeFunc(time) : result;
|
3714 | }
|
3715 | function remainingWait(time) {
|
3716 | var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
|
3717 | return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
|
3718 | }
|
3719 | function shouldInvoke(time) {
|
3720 | var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
|
3721 | return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
|
3722 | }
|
3723 | function timerExpired() {
|
3724 | var time = now$1();
|
3725 | if (shouldInvoke(time)) {
|
3726 | return trailingEdge(time);
|
3727 | }
|
3728 | timerId = setTimeout(timerExpired, remainingWait(time));
|
3729 | }
|
3730 | function trailingEdge(time) {
|
3731 | timerId = void 0;
|
3732 | if (trailing && lastArgs) {
|
3733 | return invokeFunc(time);
|
3734 | }
|
3735 | lastArgs = lastThis = void 0;
|
3736 | return result;
|
3737 | }
|
3738 | function cancel() {
|
3739 | if (timerId !== void 0) {
|
3740 | clearTimeout(timerId);
|
3741 | }
|
3742 | lastInvokeTime = 0;
|
3743 | lastArgs = lastCallTime = lastThis = timerId = void 0;
|
3744 | }
|
3745 | function flush() {
|
3746 | return timerId === void 0 ? result : trailingEdge(now$1());
|
3747 | }
|
3748 | function debounced() {
|
3749 | var time = now$1(), isInvoking = shouldInvoke(time);
|
3750 | lastArgs = arguments;
|
3751 | lastThis = this;
|
3752 | lastCallTime = time;
|
3753 | if (isInvoking) {
|
3754 | if (timerId === void 0) {
|
3755 | return leadingEdge(lastCallTime);
|
3756 | }
|
3757 | if (maxing) {
|
3758 | clearTimeout(timerId);
|
3759 | timerId = setTimeout(timerExpired, wait);
|
3760 | return invokeFunc(lastCallTime);
|
3761 | }
|
3762 | }
|
3763 | if (timerId === void 0) {
|
3764 | timerId = setTimeout(timerExpired, wait);
|
3765 | }
|
3766 | return result;
|
3767 | }
|
3768 | debounced.cancel = cancel;
|
3769 | debounced.flush = flush;
|
3770 | return debounced;
|
3771 | }
|
3772 | function assignMergeValue(object, key, value) {
|
3773 | if (value !== void 0 && !eq$4(object[key], value) || value === void 0 && !(key in object)) {
|
3774 | baseAssignValue$3(object, key, value);
|
3775 | }
|
3776 | }
|
3777 | function isArrayLikeObject(value) {
|
3778 | return isObjectLike$a(value) && isArrayLike$5(value);
|
3779 | }
|
3780 | function safeGet(object, key) {
|
3781 | if (key === "constructor" && typeof object[key] === "function") {
|
3782 | return;
|
3783 | }
|
3784 | if (key == "__proto__") {
|
3785 | return;
|
3786 | }
|
3787 | return object[key];
|
3788 | }
|
3789 | function toPlainObject(value) {
|
3790 | return copyObject$5(value, keysIn$4(value));
|
3791 | }
|
3792 | function baseMergeDeep(object, source, key, srcIndex, mergeFunc, customizer, stack) {
|
3793 | var objValue = safeGet(object, key), srcValue = safeGet(source, key), stacked = stack.get(srcValue);
|
3794 | if (stacked) {
|
3795 | assignMergeValue(object, key, stacked);
|
3796 | return;
|
3797 | }
|
3798 | var newValue = customizer ? customizer(objValue, srcValue, key + "", object, source, stack) : void 0;
|
3799 | var isCommon = newValue === void 0;
|
3800 | if (isCommon) {
|
3801 | var isArr = isArray$d(srcValue), isBuff = !isArr && isBuffer$5(srcValue), isTyped = !isArr && !isBuff && isTypedArray$4(srcValue);
|
3802 | newValue = srcValue;
|
3803 | if (isArr || isBuff || isTyped) {
|
3804 | if (isArray$d(objValue)) {
|
3805 | newValue = objValue;
|
3806 | } else if (isArrayLikeObject(objValue)) {
|
3807 | newValue = copyArray$2(objValue);
|
3808 | } else if (isBuff) {
|
3809 | isCommon = false;
|
3810 | newValue = cloneBuffer$1(srcValue, true);
|
3811 | } else if (isTyped) {
|
3812 | isCommon = false;
|
3813 | newValue = cloneTypedArray$2(srcValue, true);
|
3814 | } else {
|
3815 | newValue = [];
|
3816 | }
|
3817 | } else if (isPlainObject$1(srcValue) || isArguments$4(srcValue)) {
|
3818 | newValue = objValue;
|
3819 | if (isArguments$4(objValue)) {
|
3820 | newValue = toPlainObject(objValue);
|
3821 | } else if (!isObject$7(objValue) || isFunction$3(objValue)) {
|
3822 | newValue = initCloneObject$2(srcValue);
|
3823 | }
|
3824 | } else {
|
3825 | isCommon = false;
|
3826 | }
|
3827 | }
|
3828 | if (isCommon) {
|
3829 | stack.set(srcValue, newValue);
|
3830 | mergeFunc(newValue, srcValue, srcIndex, customizer, stack);
|
3831 | stack["delete"](srcValue);
|
3832 | }
|
3833 | assignMergeValue(object, key, newValue);
|
3834 | }
|
3835 | function baseMerge(object, source, srcIndex, customizer, stack) {
|
3836 | if (object === source) {
|
3837 | return;
|
3838 | }
|
3839 | baseFor$3(source, function(srcValue, key) {
|
3840 | stack || (stack = new Stack$4());
|
3841 | if (isObject$7(srcValue)) {
|
3842 | baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);
|
3843 | } else {
|
3844 | var newValue = customizer ? customizer(safeGet(object, key), srcValue, key + "", object, source, stack) : void 0;
|
3845 | if (newValue === void 0) {
|
3846 | newValue = srcValue;
|
3847 | }
|
3848 | assignMergeValue(object, key, newValue);
|
3849 | }
|
3850 | }, keysIn$4);
|
3851 | }
|
3852 | function castFunction$2(value) {
|
3853 | return typeof value == "function" ? value : identity$3;
|
3854 | }
|
3855 | function forEach(collection, iteratee) {
|
3856 | var func = isArray$d(collection) ? arrayEach$2 : baseEach$3;
|
3857 | return func(collection, castFunction$2(iteratee));
|
3858 | }
|
3859 | function baseMap$2(collection, iteratee) {
|
3860 | var index2 = -1, result = isArrayLike$5(collection) ? Array(collection.length) : [];
|
3861 | baseEach$3(collection, function(value, key, collection2) {
|
3862 | result[++index2] = iteratee(value, key, collection2);
|
3863 | });
|
3864 | return result;
|
3865 | }
|
3866 | function map$1(collection, iteratee) {
|
3867 | var func = isArray$d(collection) ? arrayMap$3 : baseMap$2;
|
3868 | return func(collection, baseIteratee$2(iteratee));
|
3869 | }
|
3870 | var stringTag$5 = "[object String]";
|
3871 | function isString$1(value) {
|
3872 | return typeof value == "string" || !isArray$d(value) && isObjectLike$a(value) && baseGetTag$8(value) == stringTag$5;
|
3873 | }
|
3874 | function isUndefined(value) {
|
3875 | return value === void 0;
|
3876 | }
|
3877 | var merge = createAssigner(function(object, source, srcIndex) {
|
3878 | baseMerge(object, source, srcIndex);
|
3879 | });
|
3880 | var merge$1 = merge;
|
3881 | function baseSet(object, path, value, customizer) {
|
3882 | if (!isObject$7(object)) {
|
3883 | return object;
|
3884 | }
|
3885 | path = castPath$3(path, object);
|
3886 | var index2 = -1, length = path.length, lastIndex = length - 1, nested = object;
|
3887 | while (nested != null && ++index2 < length) {
|
3888 | var key = toKey$5(path[index2]), newValue = value;
|
3889 | if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
3890 | return object;
|
3891 | }
|
3892 | if (index2 != lastIndex) {
|
3893 | var objValue = nested[key];
|
3894 | newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
3895 | if (newValue === void 0) {
|
3896 | newValue = isObject$7(objValue) ? objValue : isIndex$3(path[index2 + 1]) ? [] : {};
|
3897 | }
|
3898 | }
|
3899 | assignValue$3(nested, key, newValue);
|
3900 | nested = nested[key];
|
3901 | }
|
3902 | return object;
|
3903 | }
|
3904 | var FUNC_ERROR_TEXT$1 = "Expected a function";
|
3905 | function throttle(func, wait, options) {
|
3906 | var leading = true, trailing = true;
|
3907 | if (typeof func != "function") {
|
3908 | throw new TypeError(FUNC_ERROR_TEXT$1);
|
3909 | }
|
3910 | if (isObject$7(options)) {
|
3911 | leading = "leading" in options ? !!options.leading : leading;
|
3912 | trailing = "trailing" in options ? !!options.trailing : trailing;
|
3913 | }
|
3914 | return debounce(func, wait, {
|
3915 | "leading": leading,
|
3916 | "maxWait": wait,
|
3917 | "trailing": trailing
|
3918 | });
|
3919 | }
|
3920 | function baseUpdate(object, path, updater, customizer) {
|
3921 | return baseSet(object, path, updater(baseGet$3(object, path)), customizer);
|
3922 | }
|
3923 | function update(object, path, updater) {
|
3924 | return object == null ? object : baseUpdate(object, path, castFunction$2(updater));
|
3925 | }
|
3926 | var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
3927 | function getDefaultExportFromCjs(x) {
|
3928 | return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
3929 | }
|
3930 | function commonjsRequire(path) {
|
3931 | throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
3932 | }
|
3933 | var zh_CN$5 = {};
|
3934 | var interopRequireDefault = { exports: {} };
|
3935 | (function(module2) {
|
3936 | function _interopRequireDefault2(obj) {
|
3937 | return obj && obj.__esModule ? obj : {
|
3938 | "default": obj
|
3939 | };
|
3940 | }
|
3941 | module2.exports = _interopRequireDefault2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
3942 | })(interopRequireDefault);
|
3943 | var zh_CN$4 = {};
|
3944 | Object.defineProperty(zh_CN$4, "__esModule", {
|
3945 | value: true
|
3946 | });
|
3947 | zh_CN$4.default = void 0;
|
3948 | var _default$t = {
|
3949 | items_per_page: "\u6761/\u9875",
|
3950 | jump_to: "\u8DF3\u81F3",
|
3951 | jump_to_confirm: "\u786E\u5B9A",
|
3952 | page: "\u9875",
|
3953 | prev_page: "\u4E0A\u4E00\u9875",
|
3954 | next_page: "\u4E0B\u4E00\u9875",
|
3955 | prev_5: "\u5411\u524D 5 \u9875",
|
3956 | next_5: "\u5411\u540E 5 \u9875",
|
3957 | prev_3: "\u5411\u524D 3 \u9875",
|
3958 | next_3: "\u5411\u540E 3 \u9875",
|
3959 | page_size: "\u9875\u7801"
|
3960 | };
|
3961 | zh_CN$4.default = _default$t;
|
3962 | var zh_CN$3 = {};
|
3963 | var _extends$f = { exports: {} };
|
3964 | (function(module2) {
|
3965 | function _extends2() {
|
3966 | module2.exports = _extends2 = Object.assign || function(target) {
|
3967 | for (var i = 1; i < arguments.length; i++) {
|
3968 | var source = arguments[i];
|
3969 | for (var key in source) {
|
3970 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
3971 | target[key] = source[key];
|
3972 | }
|
3973 | }
|
3974 | }
|
3975 | return target;
|
3976 | }, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
3977 | return _extends2.apply(this, arguments);
|
3978 | }
|
3979 | module2.exports = _extends2, module2.exports.__esModule = true, module2.exports["default"] = module2.exports;
|
3980 | })(_extends$f);
|
3981 | var zh_CN$2 = {};
|
3982 | Object.defineProperty(zh_CN$2, "__esModule", {
|
3983 | value: true
|
3984 | });
|
3985 | zh_CN$2.default = void 0;
|
3986 | var locale$c = {
|
3987 | locale: "zh_CN",
|
3988 | today: "\u4ECA\u5929",
|
3989 | now: "\u6B64\u523B",
|
3990 | backToToday: "\u8FD4\u56DE\u4ECA\u5929",
|
3991 | ok: "\u786E\u5B9A",
|
3992 | timeSelect: "\u9009\u62E9\u65F6\u95F4",
|
3993 | dateSelect: "\u9009\u62E9\u65E5\u671F",
|
3994 | weekSelect: "\u9009\u62E9\u5468",
|
3995 | clear: "\u6E05\u9664",
|
3996 | month: "\u6708",
|
3997 | year: "\u5E74",
|
3998 | previousMonth: "\u4E0A\u4E2A\u6708 (\u7FFB\u9875\u4E0A\u952E)",
|
3999 | nextMonth: "\u4E0B\u4E2A\u6708 (\u7FFB\u9875\u4E0B\u952E)",
|
4000 | monthSelect: "\u9009\u62E9\u6708\u4EFD",
|
4001 | yearSelect: "\u9009\u62E9\u5E74\u4EFD",
|
4002 | decadeSelect: "\u9009\u62E9\u5E74\u4EE3",
|
4003 | yearFormat: "YYYY\u5E74",
|
4004 | dayFormat: "D\u65E5",
|
4005 | dateFormat: "YYYY\u5E74M\u6708D\u65E5",
|
4006 | dateTimeFormat: "YYYY\u5E74M\u6708D\u65E5 HH\u65F6mm\u5206ss\u79D2",
|
4007 | previousYear: "\u4E0A\u4E00\u5E74 (Control\u952E\u52A0\u5DE6\u65B9\u5411\u952E)",
|
4008 | nextYear: "\u4E0B\u4E00\u5E74 (Control\u952E\u52A0\u53F3\u65B9\u5411\u952E)",
|
4009 | previousDecade: "\u4E0A\u4E00\u5E74\u4EE3",
|
4010 | nextDecade: "\u4E0B\u4E00\u5E74\u4EE3",
|
4011 | previousCentury: "\u4E0A\u4E00\u4E16\u7EAA",
|
4012 | nextCentury: "\u4E0B\u4E00\u4E16\u7EAA"
|
4013 | };
|
4014 | var _default$s = locale$c;
|
4015 | zh_CN$2.default = _default$s;
|
4016 | var zh_CN$1 = {};
|
4017 | (function(exports2) {
|
4018 | Object.defineProperty(exports2, "__esModule", {
|
4019 | value: true
|
4020 | });
|
4021 | exports2["default"] = void 0;
|
4022 | var locale2 = {
|
4023 | placeholder: "\u8BF7\u9009\u62E9\u65F6\u95F4",
|
4024 | rangePlaceholder: ["\u5F00\u59CB\u65F6\u95F4", "\u7ED3\u675F\u65F6\u95F4"]
|
4025 | };
|
4026 | var _default2 = locale2;
|
4027 | exports2["default"] = _default2;
|
4028 | })(zh_CN$1);
|
4029 | (function(exports2) {
|
4030 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
4031 | Object.defineProperty(exports2, "__esModule", {
|
4032 | value: true
|
4033 | });
|
4034 | exports2["default"] = void 0;
|
4035 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
4036 | var _zh_CN = _interopRequireDefault2(zh_CN$2);
|
4037 | var _zh_CN2 = _interopRequireDefault2(zh_CN$1);
|
4038 | var locale2 = {
|
4039 | lang: (0, _extends2["default"])({
|
4040 | placeholder: "\u8BF7\u9009\u62E9\u65E5\u671F",
|
4041 | yearPlaceholder: "\u8BF7\u9009\u62E9\u5E74\u4EFD",
|
4042 | quarterPlaceholder: "\u8BF7\u9009\u62E9\u5B63\u5EA6",
|
4043 | monthPlaceholder: "\u8BF7\u9009\u62E9\u6708\u4EFD",
|
4044 | weekPlaceholder: "\u8BF7\u9009\u62E9\u5468",
|
4045 | rangePlaceholder: ["\u5F00\u59CB\u65E5\u671F", "\u7ED3\u675F\u65E5\u671F"],
|
4046 | rangeYearPlaceholder: ["\u5F00\u59CB\u5E74\u4EFD", "\u7ED3\u675F\u5E74\u4EFD"],
|
4047 | rangeMonthPlaceholder: ["\u5F00\u59CB\u6708\u4EFD", "\u7ED3\u675F\u6708\u4EFD"],
|
4048 | rangeWeekPlaceholder: ["\u5F00\u59CB\u5468", "\u7ED3\u675F\u5468"]
|
4049 | }, _zh_CN["default"]),
|
4050 | timePickerLocale: (0, _extends2["default"])({}, _zh_CN2["default"])
|
4051 | };
|
4052 | locale2.lang.ok = "\u786E\u5B9A";
|
4053 | var _default2 = locale2;
|
4054 | exports2["default"] = _default2;
|
4055 | })(zh_CN$3);
|
4056 | var zh_CN = {};
|
4057 | (function(exports2) {
|
4058 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
4059 | Object.defineProperty(exports2, "__esModule", {
|
4060 | value: true
|
4061 | });
|
4062 | exports2["default"] = void 0;
|
4063 | var _zh_CN = _interopRequireDefault2(zh_CN$3);
|
4064 | var _default2 = _zh_CN["default"];
|
4065 | exports2["default"] = _default2;
|
4066 | })(zh_CN);
|
4067 | (function(exports2) {
|
4068 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
4069 | Object.defineProperty(exports2, "__esModule", {
|
4070 | value: true
|
4071 | });
|
4072 | exports2["default"] = void 0;
|
4073 | var _zh_CN = _interopRequireDefault2(zh_CN$4);
|
4074 | var _zh_CN2 = _interopRequireDefault2(zh_CN$3);
|
4075 | var _zh_CN3 = _interopRequireDefault2(zh_CN$1);
|
4076 | var _zh_CN4 = _interopRequireDefault2(zh_CN);
|
4077 | var typeTemplate = "${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}";
|
4078 | var localeValues = {
|
4079 | locale: "zh-cn",
|
4080 | Pagination: _zh_CN["default"],
|
4081 | DatePicker: _zh_CN2["default"],
|
4082 | TimePicker: _zh_CN3["default"],
|
4083 | Calendar: _zh_CN4["default"],
|
4084 | global: {
|
4085 | placeholder: "\u8BF7\u9009\u62E9"
|
4086 | },
|
4087 | Table: {
|
4088 | filterTitle: "\u7B5B\u9009",
|
4089 | filterConfirm: "\u786E\u5B9A",
|
4090 | filterReset: "\u91CD\u7F6E",
|
4091 | filterEmptyText: "\u65E0\u7B5B\u9009\u9879",
|
4092 | filterCheckall: "\u5168\u9009",
|
4093 | filterSearchPlaceholder: "\u5728\u7B5B\u9009\u9879\u4E2D\u641C\u7D22",
|
4094 | selectAll: "\u5168\u9009\u5F53\u9875",
|
4095 | selectInvert: "\u53CD\u9009\u5F53\u9875",
|
4096 | selectNone: "\u6E05\u7A7A\u6240\u6709",
|
4097 | selectionAll: "\u5168\u9009\u6240\u6709",
|
4098 | sortTitle: "\u6392\u5E8F",
|
4099 | expand: "\u5C55\u5F00\u884C",
|
4100 | collapse: "\u5173\u95ED\u884C",
|
4101 | triggerDesc: "\u70B9\u51FB\u964D\u5E8F",
|
4102 | triggerAsc: "\u70B9\u51FB\u5347\u5E8F",
|
4103 | cancelSort: "\u53D6\u6D88\u6392\u5E8F"
|
4104 | },
|
4105 | Modal: {
|
4106 | okText: "\u786E\u5B9A",
|
4107 | cancelText: "\u53D6\u6D88",
|
4108 | justOkText: "\u77E5\u9053\u4E86"
|
4109 | },
|
4110 | Popconfirm: {
|
4111 | cancelText: "\u53D6\u6D88",
|
4112 | okText: "\u786E\u5B9A"
|
4113 | },
|
4114 | Transfer: {
|
4115 | searchPlaceholder: "\u8BF7\u8F93\u5165\u641C\u7D22\u5185\u5BB9",
|
4116 | itemUnit: "\u9879",
|
4117 | itemsUnit: "\u9879",
|
4118 | remove: "\u5220\u9664",
|
4119 | selectCurrent: "\u5168\u9009\u5F53\u9875",
|
4120 | removeCurrent: "\u5220\u9664\u5F53\u9875",
|
4121 | selectAll: "\u5168\u9009\u6240\u6709",
|
4122 | removeAll: "\u5220\u9664\u5168\u90E8",
|
4123 | selectInvert: "\u53CD\u9009\u5F53\u9875"
|
4124 | },
|
4125 | Upload: {
|
4126 | uploading: "\u6587\u4EF6\u4E0A\u4F20\u4E2D",
|
4127 | removeFile: "\u5220\u9664\u6587\u4EF6",
|
4128 | uploadError: "\u4E0A\u4F20\u9519\u8BEF",
|
4129 | previewFile: "\u9884\u89C8\u6587\u4EF6",
|
4130 | downloadFile: "\u4E0B\u8F7D\u6587\u4EF6"
|
4131 | },
|
4132 | Empty: {
|
4133 | description: "\u6682\u65E0\u6570\u636E"
|
4134 | },
|
4135 | Icon: {
|
4136 | icon: "\u56FE\u6807"
|
4137 | },
|
4138 | Text: {
|
4139 | edit: "\u7F16\u8F91",
|
4140 | copy: "\u590D\u5236",
|
4141 | copied: "\u590D\u5236\u6210\u529F",
|
4142 | expand: "\u5C55\u5F00"
|
4143 | },
|
4144 | PageHeader: {
|
4145 | back: "\u8FD4\u56DE"
|
4146 | },
|
4147 | Form: {
|
4148 | optional: "\uFF08\u53EF\u9009\uFF09",
|
4149 | defaultValidateMessages: {
|
4150 | "default": "\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",
|
4151 | required: "\u8BF7\u8F93\u5165${label}",
|
4152 | "enum": "${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",
|
4153 | whitespace: "${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",
|
4154 | date: {
|
4155 | format: "${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",
|
4156 | parse: "${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",
|
4157 | invalid: "${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"
|
4158 | },
|
4159 | types: {
|
4160 | string: typeTemplate,
|
4161 | method: typeTemplate,
|
4162 | array: typeTemplate,
|
4163 | object: typeTemplate,
|
4164 | number: typeTemplate,
|
4165 | date: typeTemplate,
|
4166 | "boolean": typeTemplate,
|
4167 | integer: typeTemplate,
|
4168 | "float": typeTemplate,
|
4169 | regexp: typeTemplate,
|
4170 | email: typeTemplate,
|
4171 | url: typeTemplate,
|
4172 | hex: typeTemplate
|
4173 | },
|
4174 | string: {
|
4175 | len: "${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",
|
4176 | min: "${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",
|
4177 | max: "${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",
|
4178 | range: "${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"
|
4179 | },
|
4180 | number: {
|
4181 | len: "${label}\u5FC5\u987B\u7B49\u4E8E${len}",
|
4182 | min: "${label}\u6700\u5C0F\u503C\u4E3A${min}",
|
4183 | max: "${label}\u6700\u5927\u503C\u4E3A${max}",
|
4184 | range: "${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"
|
4185 | },
|
4186 | array: {
|
4187 | len: "\u987B\u4E3A${len}\u4E2A${label}",
|
4188 | min: "\u6700\u5C11${min}\u4E2A${label}",
|
4189 | max: "\u6700\u591A${max}\u4E2A${label}",
|
4190 | range: "${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"
|
4191 | },
|
4192 | pattern: {
|
4193 | mismatch: "${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"
|
4194 | }
|
4195 | }
|
4196 | },
|
4197 | Image: {
|
4198 | preview: "\u9884\u89C8"
|
4199 | }
|
4200 | };
|
4201 | var _default2 = localeValues;
|
4202 | exports2["default"] = _default2;
|
4203 | })(zh_CN$5);
|
4204 | var zhCN = getDefaultExportFromCjs(zh_CN$5);
|
4205 | const initState = {
|
4206 | selectWidgetItem: void 0,
|
4207 | widgetFormList: [],
|
4208 | iconSrc: void 0,
|
4209 | globalConfig: {
|
4210 | componentSize: "middle",
|
4211 | direction: "ltr",
|
4212 | locale: zhCN
|
4213 | },
|
4214 | formConfig: {
|
4215 | colon: true,
|
4216 | labelAlign: "right",
|
4217 | layout: "horizontal",
|
4218 | labelWrap: false,
|
4219 | labelCol: {},
|
4220 | wrapperCol: {}
|
4221 | }
|
4222 | };
|
4223 | var ActionType;
|
4224 | (function(ActionType2) {
|
4225 | ActionType2["SET_GLOBAL"] = "SET_GLOBAL";
|
4226 | ActionType2["SET_SELECT_WIDGET_ITEM"] = "SET_SELECT_WIDGET_ITEM";
|
4227 | ActionType2["SET_WIDGET_FORM_LIST"] = "SET_WIDGET_FORM_LIST";
|
4228 | ActionType2["SET_ICON_SRC"] = "SET_ICON_SRC";
|
4229 | ActionType2["SET_GLOBAL_CONFIG"] = "SET_GLOBAL_CONFIG";
|
4230 | ActionType2["SET_FORM_CONFIG"] = "SET_FORM_CONFIG";
|
4231 | })(ActionType || (ActionType = {}));
|
4232 | const designReducer = (prevState, action) => {
|
4233 | const handleSetSelectWidgetItem = () => {
|
4234 | const createNewWidgetFormList2 = (list) => {
|
4235 | var _a;
|
4236 | const newList = cloneDeep$1(list);
|
4237 | for (let index2 = 0; index2 < newList.length; index2++) {
|
4238 | if (newList[index2].key === ((_a = action.payload) == null ? void 0 : _a.key)) {
|
4239 | newList[index2] = action.payload;
|
4240 | break;
|
4241 | }
|
4242 | if (newList[index2].childNodes) {
|
4243 | newList[index2].childNodes = createNewWidgetFormList2(newList[index2].childNodes);
|
4244 | }
|
4245 | }
|
4246 | return newList;
|
4247 | };
|
4248 | return __spreadProps(__spreadValues({}, prevState), {
|
4249 | widgetFormList: createNewWidgetFormList2(prevState.widgetFormList),
|
4250 | selectWidgetItem: action.payload
|
4251 | });
|
4252 | };
|
4253 | switch (action.type) {
|
4254 | case ActionType.SET_SELECT_WIDGET_ITEM:
|
4255 | return handleSetSelectWidgetItem();
|
4256 | case ActionType.SET_WIDGET_FORM_LIST:
|
4257 | return __spreadProps(__spreadValues({}, prevState), {
|
4258 | widgetFormList: action.payload
|
4259 | });
|
4260 | case ActionType.SET_ICON_SRC:
|
4261 | return __spreadProps(__spreadValues({}, prevState), {
|
4262 | iconSrc: action.payload
|
4263 | });
|
4264 | case ActionType.SET_GLOBAL_CONFIG:
|
4265 | return __spreadProps(__spreadValues({}, prevState), {
|
4266 | globalConfig: action.payload
|
4267 | });
|
4268 | case ActionType.SET_FORM_CONFIG:
|
4269 | return __spreadProps(__spreadValues({}, prevState), {
|
4270 | formConfig: action.payload
|
4271 | });
|
4272 | case ActionType.SET_GLOBAL:
|
4273 | return __spreadValues(__spreadValues({}, prevState), action.payload);
|
4274 | default:
|
4275 | return initState;
|
4276 | }
|
4277 | };
|
4278 | const generateReducer = (_prevState, action) => {
|
4279 | switch (action.type) {
|
4280 | default:
|
4281 | return initState.globalState;
|
4282 | }
|
4283 | };
|
4284 | const DesignContext = createContext({
|
4285 | state: initState,
|
4286 | dispatch: () => {
|
4287 | }
|
4288 | });
|
4289 | const GenerateContext = createContext({
|
4290 | state: {},
|
4291 | dispatch: () => {
|
4292 | }
|
4293 | });
|
4294 | const DesignProvider = ({ children }) => {
|
4295 | const [state, dispatch] = useReducer(designReducer, initState);
|
4296 | return createElement(DesignContext.Provider, {
|
4297 | value: {
|
4298 | state,
|
4299 | dispatch
|
4300 | }
|
4301 | }, children);
|
4302 | };
|
4303 | const GenerateProvider = ({ children }) => {
|
4304 | const [state, dispatch] = useReducer(generateReducer, initState.globalState);
|
4305 | return createElement(GenerateContext.Provider, {
|
4306 | value: {
|
4307 | state,
|
4308 | dispatch
|
4309 | }
|
4310 | }, children);
|
4311 | };
|
4312 | const useConfig = () => {
|
4313 | const {
|
4314 | state: { selectWidgetItem },
|
4315 | dispatch
|
4316 | } = useContext(DesignContext);
|
4317 | const handlerSetVisible = useCallback((callback, value) => (event) => {
|
4318 | event == null ? void 0 : event.preventDefault();
|
4319 | callback(value);
|
4320 | }, []);
|
4321 | const [eventName, setEventName] = useState("");
|
4322 | const [sourceType, setSourceType] = useState("\u9759\u6001\u6570\u636E");
|
4323 | const [classEditorVisible, setClassEditorVisible] = useState(false);
|
4324 | const [propsEditorVisible, setPropsEditorVisible] = useState(false);
|
4325 | const [formItemPropsEditorVisible, setFormItemPropsEditorVisible] = useState(false);
|
4326 | const [functionEditorVisible, setFunctionEditorVisible] = useState(false);
|
4327 | const handleChange = (value, fieldName) => {
|
4328 | update(selectWidgetItem, fieldName, () => value);
|
4329 | const action = {
|
4330 | type: ActionType.SET_SELECT_WIDGET_ITEM,
|
4331 | payload: selectWidgetItem
|
4332 | };
|
4333 | dispatch(action);
|
4334 | };
|
4335 | return {
|
4336 | selectWidgetItem,
|
4337 | dispatch,
|
4338 | handleChange,
|
4339 | handlerSetVisible,
|
4340 | eventName,
|
4341 | setEventName,
|
4342 | sourceType,
|
4343 | setSourceType,
|
4344 | classEditorVisible,
|
4345 | setClassEditorVisible,
|
4346 | propsEditorVisible,
|
4347 | setPropsEditorVisible,
|
4348 | formItemPropsEditorVisible,
|
4349 | setFormItemPropsEditorVisible,
|
4350 | functionEditorVisible,
|
4351 | setFunctionEditorVisible
|
4352 | };
|
4353 | };
|
4354 | const useForceUpdate = () => {
|
4355 | const [flag, setFlag] = useState(false);
|
4356 | const forceUpdate = () => setFlag(!flag);
|
4357 | return forceUpdate;
|
4358 | };
|
4359 | const UploadModal = (props) => {
|
4360 | const { close } = props;
|
4361 | const monacoValue = useRef("");
|
4362 | const { dispatch } = useConfig();
|
4363 | const handleChange = (value) => {
|
4364 | monacoValue.current = value;
|
4365 | };
|
4366 | const handleUpload = () => {
|
4367 | try {
|
4368 | dispatch({
|
4369 | type: ActionType.SET_GLOBAL,
|
4370 | payload: JSON.parse(monacoValue.current)
|
4371 | });
|
4372 | message.success("\u5BFC\u5165\u6210\u529F");
|
4373 | close();
|
4374 | } catch (error) {
|
4375 | message.error("\u5BFC\u5165\u5931\u8D25");
|
4376 | }
|
4377 | };
|
4378 | return React__default.createElement(Modal, __spreadProps(__spreadValues({}, props), {
|
4379 | destroyOnClose: true,
|
4380 | onOk: handleUpload
|
4381 | }), React__default.createElement(MonacoEditor$1, {
|
4382 | language: "json",
|
4383 | height: document.body.clientHeight / 1.5,
|
4384 | value: "",
|
4385 | onChange: handleChange
|
4386 | }));
|
4387 | };
|
4388 | const loadJsLink = (src) => {
|
4389 | if (!src)
|
4390 | return;
|
4391 | const id = "customScript";
|
4392 | removeDomNode(`#${id}`);
|
4393 | const script = document.createElement("script");
|
4394 | script.id = id;
|
4395 | script.src = src;
|
4396 | document.getElementsByTagName("head")[0].appendChild(script);
|
4397 | };
|
4398 | const copy = (text) => {
|
4399 | const input = document.createElement("textarea");
|
4400 | input.value = text;
|
4401 | document.body.appendChild(input);
|
4402 | input.select();
|
4403 | document.execCommand("copy");
|
4404 | document.body.removeChild(input);
|
4405 | };
|
4406 | const createNewWidgetFormList = (list, childNodes, key) => {
|
4407 | const newList = cloneDeep$1(list);
|
4408 | for (let index2 = 0; index2 < newList.length; index2++) {
|
4409 | if (newList[index2].key === key) {
|
4410 | newList[index2].childNodes = childNodes;
|
4411 | break;
|
4412 | }
|
4413 | if (newList[index2].childNodes) {
|
4414 | newList[index2].childNodes = createNewWidgetFormList(newList[index2].childNodes, childNodes, key);
|
4415 | }
|
4416 | }
|
4417 | return newList;
|
4418 | };
|
4419 | const createMentionsOptions = (item) => {
|
4420 | const { remoteConfig, config } = item;
|
4421 | const options = (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options;
|
4422 | return options.map((option2) => createElement(_antd.Mentions.Option, { key: option2.value, value: option2.value }, option2.label));
|
4423 | };
|
4424 | const handleResponseData = (remoteData, remoteConfig) => {
|
4425 | return remoteData == null ? void 0 : remoteData.map((data) => ({
|
4426 | label: data[remoteConfig.remoteProps.label],
|
4427 | value: data[remoteConfig.remoteProps.value],
|
4428 | children: handleResponseData(data[remoteConfig.remoteProps.children], remoteConfig)
|
4429 | }));
|
4430 | };
|
4431 | const removeDomNode = (selectors) => document.querySelectorAll(selectors).forEach((node) => node.remove());
|
4432 | var IconContext = createContext({});
|
4433 | var Context = IconContext;
|
4434 | function _defineProperty$2(obj, key, value) {
|
4435 | if (key in obj) {
|
4436 | Object.defineProperty(obj, key, {
|
4437 | value,
|
4438 | enumerable: true,
|
4439 | configurable: true,
|
4440 | writable: true
|
4441 | });
|
4442 | } else {
|
4443 | obj[key] = value;
|
4444 | }
|
4445 | return obj;
|
4446 | }
|
4447 | function ownKeys(object, enumerableOnly) {
|
4448 | var keys2 = Object.keys(object);
|
4449 | if (Object.getOwnPropertySymbols) {
|
4450 | var symbols = Object.getOwnPropertySymbols(object);
|
4451 | enumerableOnly && (symbols = symbols.filter(function(sym) {
|
4452 | return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
4453 | })), keys2.push.apply(keys2, symbols);
|
4454 | }
|
4455 | return keys2;
|
4456 | }
|
4457 | function _objectSpread2(target) {
|
4458 | for (var i = 1; i < arguments.length; i++) {
|
4459 | var source = arguments[i] != null ? arguments[i] : {};
|
4460 | i % 2 ? ownKeys(Object(source), true).forEach(function(key) {
|
4461 | _defineProperty$2(target, key, source[key]);
|
4462 | }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function(key) {
|
4463 | Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
4464 | });
|
4465 | }
|
4466 | return target;
|
4467 | }
|
4468 | function _arrayWithHoles(arr) {
|
4469 | if (Array.isArray(arr))
|
4470 | return arr;
|
4471 | }
|
4472 | function _iterableToArrayLimit(arr, i) {
|
4473 | var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
4474 | if (_i == null)
|
4475 | return;
|
4476 | var _arr = [];
|
4477 | var _n = true;
|
4478 | var _d = false;
|
4479 | var _s, _e;
|
4480 | try {
|
4481 | for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
4482 | _arr.push(_s.value);
|
4483 | if (i && _arr.length === i)
|
4484 | break;
|
4485 | }
|
4486 | } catch (err) {
|
4487 | _d = true;
|
4488 | _e = err;
|
4489 | } finally {
|
4490 | try {
|
4491 | if (!_n && _i["return"] != null)
|
4492 | _i["return"]();
|
4493 | } finally {
|
4494 | if (_d)
|
4495 | throw _e;
|
4496 | }
|
4497 | }
|
4498 | return _arr;
|
4499 | }
|
4500 | function _arrayLikeToArray(arr, len) {
|
4501 | if (len == null || len > arr.length)
|
4502 | len = arr.length;
|
4503 | for (var i = 0, arr2 = new Array(len); i < len; i++) {
|
4504 | arr2[i] = arr[i];
|
4505 | }
|
4506 | return arr2;
|
4507 | }
|
4508 | function _unsupportedIterableToArray(o, minLen) {
|
4509 | if (!o)
|
4510 | return;
|
4511 | if (typeof o === "string")
|
4512 | return _arrayLikeToArray(o, minLen);
|
4513 | var n = Object.prototype.toString.call(o).slice(8, -1);
|
4514 | if (n === "Object" && o.constructor)
|
4515 | n = o.constructor.name;
|
4516 | if (n === "Map" || n === "Set")
|
4517 | return Array.from(o);
|
4518 | if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))
|
4519 | return _arrayLikeToArray(o, minLen);
|
4520 | }
|
4521 | function _nonIterableRest() {
|
4522 | throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
4523 | }
|
4524 | function _slicedToArray(arr, i) {
|
4525 | return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
4526 | }
|
4527 | function _objectWithoutPropertiesLoose(source, excluded) {
|
4528 | if (source == null)
|
4529 | return {};
|
4530 | var target = {};
|
4531 | var sourceKeys = Object.keys(source);
|
4532 | var key, i;
|
4533 | for (i = 0; i < sourceKeys.length; i++) {
|
4534 | key = sourceKeys[i];
|
4535 | if (excluded.indexOf(key) >= 0)
|
4536 | continue;
|
4537 | target[key] = source[key];
|
4538 | }
|
4539 | return target;
|
4540 | }
|
4541 | function _objectWithoutProperties$2(source, excluded) {
|
4542 | if (source == null)
|
4543 | return {};
|
4544 | var target = _objectWithoutPropertiesLoose(source, excluded);
|
4545 | var key, i;
|
4546 | if (Object.getOwnPropertySymbols) {
|
4547 | var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
4548 | for (i = 0; i < sourceSymbolKeys.length; i++) {
|
4549 | key = sourceSymbolKeys[i];
|
4550 | if (excluded.indexOf(key) >= 0)
|
4551 | continue;
|
4552 | if (!Object.prototype.propertyIsEnumerable.call(source, key))
|
4553 | continue;
|
4554 | target[key] = source[key];
|
4555 | }
|
4556 | }
|
4557 | return target;
|
4558 | }
|
4559 | var classnames = { exports: {} };
|
4560 |
|
4561 |
|
4562 |
|
4563 |
|
4564 |
|
4565 | (function(module2) {
|
4566 | (function() {
|
4567 | var hasOwn = {}.hasOwnProperty;
|
4568 | function classNames2() {
|
4569 | var classes = [];
|
4570 | for (var i = 0; i < arguments.length; i++) {
|
4571 | var arg = arguments[i];
|
4572 | if (!arg)
|
4573 | continue;
|
4574 | var argType = typeof arg;
|
4575 | if (argType === "string" || argType === "number") {
|
4576 | classes.push(arg);
|
4577 | } else if (Array.isArray(arg)) {
|
4578 | if (arg.length) {
|
4579 | var inner = classNames2.apply(null, arg);
|
4580 | if (inner) {
|
4581 | classes.push(inner);
|
4582 | }
|
4583 | }
|
4584 | } else if (argType === "object") {
|
4585 | if (arg.toString === Object.prototype.toString) {
|
4586 | for (var key in arg) {
|
4587 | if (hasOwn.call(arg, key) && arg[key]) {
|
4588 | classes.push(key);
|
4589 | }
|
4590 | }
|
4591 | } else {
|
4592 | classes.push(arg.toString());
|
4593 | }
|
4594 | }
|
4595 | }
|
4596 | return classes.join(" ");
|
4597 | }
|
4598 | if (module2.exports) {
|
4599 | classNames2.default = classNames2;
|
4600 | module2.exports = classNames2;
|
4601 | } else {
|
4602 | window.classNames = classNames2;
|
4603 | }
|
4604 | })();
|
4605 | })(classnames);
|
4606 | var classNames = classnames.exports;
|
4607 | function _typeof(obj) {
|
4608 | "@babel/helpers - typeof";
|
4609 | return _typeof = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(obj2) {
|
4610 | return typeof obj2;
|
4611 | } : function(obj2) {
|
4612 | return obj2 && typeof Symbol == "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
4613 | }, _typeof(obj);
|
4614 | }
|
4615 | function bound01(n, max) {
|
4616 | if (isOnePointZero(n)) {
|
4617 | n = "100%";
|
4618 | }
|
4619 | var isPercent = isPercentage(n);
|
4620 | n = max === 360 ? n : Math.min(max, Math.max(0, parseFloat(n)));
|
4621 | if (isPercent) {
|
4622 | n = parseInt(String(n * max), 10) / 100;
|
4623 | }
|
4624 | if (Math.abs(n - max) < 1e-6) {
|
4625 | return 1;
|
4626 | }
|
4627 | if (max === 360) {
|
4628 | n = (n < 0 ? n % max + max : n % max) / parseFloat(String(max));
|
4629 | } else {
|
4630 | n = n % max / parseFloat(String(max));
|
4631 | }
|
4632 | return n;
|
4633 | }
|
4634 | function isOnePointZero(n) {
|
4635 | return typeof n === "string" && n.indexOf(".") !== -1 && parseFloat(n) === 1;
|
4636 | }
|
4637 | function isPercentage(n) {
|
4638 | return typeof n === "string" && n.indexOf("%") !== -1;
|
4639 | }
|
4640 | function boundAlpha(a) {
|
4641 | a = parseFloat(a);
|
4642 | if (isNaN(a) || a < 0 || a > 1) {
|
4643 | a = 1;
|
4644 | }
|
4645 | return a;
|
4646 | }
|
4647 | function convertToPercentage(n) {
|
4648 | if (n <= 1) {
|
4649 | return Number(n) * 100 + "%";
|
4650 | }
|
4651 | return n;
|
4652 | }
|
4653 | function pad2(c) {
|
4654 | return c.length === 1 ? "0" + c : String(c);
|
4655 | }
|
4656 | function rgbToRgb(r, g, b) {
|
4657 | return {
|
4658 | r: bound01(r, 255) * 255,
|
4659 | g: bound01(g, 255) * 255,
|
4660 | b: bound01(b, 255) * 255
|
4661 | };
|
4662 | }
|
4663 | function hue2rgb(p, q, t) {
|
4664 | if (t < 0) {
|
4665 | t += 1;
|
4666 | }
|
4667 | if (t > 1) {
|
4668 | t -= 1;
|
4669 | }
|
4670 | if (t < 1 / 6) {
|
4671 | return p + (q - p) * (6 * t);
|
4672 | }
|
4673 | if (t < 1 / 2) {
|
4674 | return q;
|
4675 | }
|
4676 | if (t < 2 / 3) {
|
4677 | return p + (q - p) * (2 / 3 - t) * 6;
|
4678 | }
|
4679 | return p;
|
4680 | }
|
4681 | function hslToRgb(h, s, l) {
|
4682 | var r;
|
4683 | var g;
|
4684 | var b;
|
4685 | h = bound01(h, 360);
|
4686 | s = bound01(s, 100);
|
4687 | l = bound01(l, 100);
|
4688 | if (s === 0) {
|
4689 | g = l;
|
4690 | b = l;
|
4691 | r = l;
|
4692 | } else {
|
4693 | var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
4694 | var p = 2 * l - q;
|
4695 | r = hue2rgb(p, q, h + 1 / 3);
|
4696 | g = hue2rgb(p, q, h);
|
4697 | b = hue2rgb(p, q, h - 1 / 3);
|
4698 | }
|
4699 | return { r: r * 255, g: g * 255, b: b * 255 };
|
4700 | }
|
4701 | function rgbToHsv(r, g, b) {
|
4702 | r = bound01(r, 255);
|
4703 | g = bound01(g, 255);
|
4704 | b = bound01(b, 255);
|
4705 | var max = Math.max(r, g, b);
|
4706 | var min = Math.min(r, g, b);
|
4707 | var h = 0;
|
4708 | var v = max;
|
4709 | var d = max - min;
|
4710 | var s = max === 0 ? 0 : d / max;
|
4711 | if (max === min) {
|
4712 | h = 0;
|
4713 | } else {
|
4714 | switch (max) {
|
4715 | case r:
|
4716 | h = (g - b) / d + (g < b ? 6 : 0);
|
4717 | break;
|
4718 | case g:
|
4719 | h = (b - r) / d + 2;
|
4720 | break;
|
4721 | case b:
|
4722 | h = (r - g) / d + 4;
|
4723 | break;
|
4724 | }
|
4725 | h /= 6;
|
4726 | }
|
4727 | return { h, s, v };
|
4728 | }
|
4729 | function hsvToRgb(h, s, v) {
|
4730 | h = bound01(h, 360) * 6;
|
4731 | s = bound01(s, 100);
|
4732 | v = bound01(v, 100);
|
4733 | var i = Math.floor(h);
|
4734 | var f = h - i;
|
4735 | var p = v * (1 - s);
|
4736 | var q = v * (1 - f * s);
|
4737 | var t = v * (1 - (1 - f) * s);
|
4738 | var mod = i % 6;
|
4739 | var r = [v, q, p, p, t, v][mod];
|
4740 | var g = [t, v, v, q, p, p][mod];
|
4741 | var b = [p, p, t, v, v, q][mod];
|
4742 | return { r: r * 255, g: g * 255, b: b * 255 };
|
4743 | }
|
4744 | function rgbToHex(r, g, b, allow3Char) {
|
4745 | var hex = [
|
4746 | pad2(Math.round(r).toString(16)),
|
4747 | pad2(Math.round(g).toString(16)),
|
4748 | pad2(Math.round(b).toString(16))
|
4749 | ];
|
4750 | if (allow3Char && hex[0].startsWith(hex[0].charAt(1)) && hex[1].startsWith(hex[1].charAt(1)) && hex[2].startsWith(hex[2].charAt(1))) {
|
4751 | return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
|
4752 | }
|
4753 | return hex.join("");
|
4754 | }
|
4755 | function convertHexToDecimal(h) {
|
4756 | return parseIntFromHex(h) / 255;
|
4757 | }
|
4758 | function parseIntFromHex(val) {
|
4759 | return parseInt(val, 16);
|
4760 | }
|
4761 | var names = {
|
4762 | aliceblue: "#f0f8ff",
|
4763 | antiquewhite: "#faebd7",
|
4764 | aqua: "#00ffff",
|
4765 | aquamarine: "#7fffd4",
|
4766 | azure: "#f0ffff",
|
4767 | beige: "#f5f5dc",
|
4768 | bisque: "#ffe4c4",
|
4769 | black: "#000000",
|
4770 | blanchedalmond: "#ffebcd",
|
4771 | blue: "#0000ff",
|
4772 | blueviolet: "#8a2be2",
|
4773 | brown: "#a52a2a",
|
4774 | burlywood: "#deb887",
|
4775 | cadetblue: "#5f9ea0",
|
4776 | chartreuse: "#7fff00",
|
4777 | chocolate: "#d2691e",
|
4778 | coral: "#ff7f50",
|
4779 | cornflowerblue: "#6495ed",
|
4780 | cornsilk: "#fff8dc",
|
4781 | crimson: "#dc143c",
|
4782 | cyan: "#00ffff",
|
4783 | darkblue: "#00008b",
|
4784 | darkcyan: "#008b8b",
|
4785 | darkgoldenrod: "#b8860b",
|
4786 | darkgray: "#a9a9a9",
|
4787 | darkgreen: "#006400",
|
4788 | darkgrey: "#a9a9a9",
|
4789 | darkkhaki: "#bdb76b",
|
4790 | darkmagenta: "#8b008b",
|
4791 | darkolivegreen: "#556b2f",
|
4792 | darkorange: "#ff8c00",
|
4793 | darkorchid: "#9932cc",
|
4794 | darkred: "#8b0000",
|
4795 | darksalmon: "#e9967a",
|
4796 | darkseagreen: "#8fbc8f",
|
4797 | darkslateblue: "#483d8b",
|
4798 | darkslategray: "#2f4f4f",
|
4799 | darkslategrey: "#2f4f4f",
|
4800 | darkturquoise: "#00ced1",
|
4801 | darkviolet: "#9400d3",
|
4802 | deeppink: "#ff1493",
|
4803 | deepskyblue: "#00bfff",
|
4804 | dimgray: "#696969",
|
4805 | dimgrey: "#696969",
|
4806 | dodgerblue: "#1e90ff",
|
4807 | firebrick: "#b22222",
|
4808 | floralwhite: "#fffaf0",
|
4809 | forestgreen: "#228b22",
|
4810 | fuchsia: "#ff00ff",
|
4811 | gainsboro: "#dcdcdc",
|
4812 | ghostwhite: "#f8f8ff",
|
4813 | goldenrod: "#daa520",
|
4814 | gold: "#ffd700",
|
4815 | gray: "#808080",
|
4816 | green: "#008000",
|
4817 | greenyellow: "#adff2f",
|
4818 | grey: "#808080",
|
4819 | honeydew: "#f0fff0",
|
4820 | hotpink: "#ff69b4",
|
4821 | indianred: "#cd5c5c",
|
4822 | indigo: "#4b0082",
|
4823 | ivory: "#fffff0",
|
4824 | khaki: "#f0e68c",
|
4825 | lavenderblush: "#fff0f5",
|
4826 | lavender: "#e6e6fa",
|
4827 | lawngreen: "#7cfc00",
|
4828 | lemonchiffon: "#fffacd",
|
4829 | lightblue: "#add8e6",
|
4830 | lightcoral: "#f08080",
|
4831 | lightcyan: "#e0ffff",
|
4832 | lightgoldenrodyellow: "#fafad2",
|
4833 | lightgray: "#d3d3d3",
|
4834 | lightgreen: "#90ee90",
|
4835 | lightgrey: "#d3d3d3",
|
4836 | lightpink: "#ffb6c1",
|
4837 | lightsalmon: "#ffa07a",
|
4838 | lightseagreen: "#20b2aa",
|
4839 | lightskyblue: "#87cefa",
|
4840 | lightslategray: "#778899",
|
4841 | lightslategrey: "#778899",
|
4842 | lightsteelblue: "#b0c4de",
|
4843 | lightyellow: "#ffffe0",
|
4844 | lime: "#00ff00",
|
4845 | limegreen: "#32cd32",
|
4846 | linen: "#faf0e6",
|
4847 | magenta: "#ff00ff",
|
4848 | maroon: "#800000",
|
4849 | mediumaquamarine: "#66cdaa",
|
4850 | mediumblue: "#0000cd",
|
4851 | mediumorchid: "#ba55d3",
|
4852 | mediumpurple: "#9370db",
|
4853 | mediumseagreen: "#3cb371",
|
4854 | mediumslateblue: "#7b68ee",
|
4855 | mediumspringgreen: "#00fa9a",
|
4856 | mediumturquoise: "#48d1cc",
|
4857 | mediumvioletred: "#c71585",
|
4858 | midnightblue: "#191970",
|
4859 | mintcream: "#f5fffa",
|
4860 | mistyrose: "#ffe4e1",
|
4861 | moccasin: "#ffe4b5",
|
4862 | navajowhite: "#ffdead",
|
4863 | navy: "#000080",
|
4864 | oldlace: "#fdf5e6",
|
4865 | olive: "#808000",
|
4866 | olivedrab: "#6b8e23",
|
4867 | orange: "#ffa500",
|
4868 | orangered: "#ff4500",
|
4869 | orchid: "#da70d6",
|
4870 | palegoldenrod: "#eee8aa",
|
4871 | palegreen: "#98fb98",
|
4872 | paleturquoise: "#afeeee",
|
4873 | palevioletred: "#db7093",
|
4874 | papayawhip: "#ffefd5",
|
4875 | peachpuff: "#ffdab9",
|
4876 | peru: "#cd853f",
|
4877 | pink: "#ffc0cb",
|
4878 | plum: "#dda0dd",
|
4879 | powderblue: "#b0e0e6",
|
4880 | purple: "#800080",
|
4881 | rebeccapurple: "#663399",
|
4882 | red: "#ff0000",
|
4883 | rosybrown: "#bc8f8f",
|
4884 | royalblue: "#4169e1",
|
4885 | saddlebrown: "#8b4513",
|
4886 | salmon: "#fa8072",
|
4887 | sandybrown: "#f4a460",
|
4888 | seagreen: "#2e8b57",
|
4889 | seashell: "#fff5ee",
|
4890 | sienna: "#a0522d",
|
4891 | silver: "#c0c0c0",
|
4892 | skyblue: "#87ceeb",
|
4893 | slateblue: "#6a5acd",
|
4894 | slategray: "#708090",
|
4895 | slategrey: "#708090",
|
4896 | snow: "#fffafa",
|
4897 | springgreen: "#00ff7f",
|
4898 | steelblue: "#4682b4",
|
4899 | tan: "#d2b48c",
|
4900 | teal: "#008080",
|
4901 | thistle: "#d8bfd8",
|
4902 | tomato: "#ff6347",
|
4903 | turquoise: "#40e0d0",
|
4904 | violet: "#ee82ee",
|
4905 | wheat: "#f5deb3",
|
4906 | white: "#ffffff",
|
4907 | whitesmoke: "#f5f5f5",
|
4908 | yellow: "#ffff00",
|
4909 | yellowgreen: "#9acd32"
|
4910 | };
|
4911 | function inputToRGB(color) {
|
4912 | var rgb = { r: 0, g: 0, b: 0 };
|
4913 | var a = 1;
|
4914 | var s = null;
|
4915 | var v = null;
|
4916 | var l = null;
|
4917 | var ok = false;
|
4918 | var format = false;
|
4919 | if (typeof color === "string") {
|
4920 | color = stringInputToObject(color);
|
4921 | }
|
4922 | if (typeof color === "object") {
|
4923 | if (isValidCSSUnit(color.r) && isValidCSSUnit(color.g) && isValidCSSUnit(color.b)) {
|
4924 | rgb = rgbToRgb(color.r, color.g, color.b);
|
4925 | ok = true;
|
4926 | format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
|
4927 | } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.v)) {
|
4928 | s = convertToPercentage(color.s);
|
4929 | v = convertToPercentage(color.v);
|
4930 | rgb = hsvToRgb(color.h, s, v);
|
4931 | ok = true;
|
4932 | format = "hsv";
|
4933 | } else if (isValidCSSUnit(color.h) && isValidCSSUnit(color.s) && isValidCSSUnit(color.l)) {
|
4934 | s = convertToPercentage(color.s);
|
4935 | l = convertToPercentage(color.l);
|
4936 | rgb = hslToRgb(color.h, s, l);
|
4937 | ok = true;
|
4938 | format = "hsl";
|
4939 | }
|
4940 | if (Object.prototype.hasOwnProperty.call(color, "a")) {
|
4941 | a = color.a;
|
4942 | }
|
4943 | }
|
4944 | a = boundAlpha(a);
|
4945 | return {
|
4946 | ok,
|
4947 | format: color.format || format,
|
4948 | r: Math.min(255, Math.max(rgb.r, 0)),
|
4949 | g: Math.min(255, Math.max(rgb.g, 0)),
|
4950 | b: Math.min(255, Math.max(rgb.b, 0)),
|
4951 | a
|
4952 | };
|
4953 | }
|
4954 | var CSS_INTEGER = "[-\\+]?\\d+%?";
|
4955 | var CSS_NUMBER = "[-\\+]?\\d*\\.\\d+%?";
|
4956 | var CSS_UNIT = "(?:" + CSS_NUMBER + ")|(?:" + CSS_INTEGER + ")";
|
4957 | var PERMISSIVE_MATCH3 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
|
4958 | var PERMISSIVE_MATCH4 = "[\\s|\\(]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")[,|\\s]+(" + CSS_UNIT + ")\\s*\\)?";
|
4959 | var matchers = {
|
4960 | CSS_UNIT: new RegExp(CSS_UNIT),
|
4961 | rgb: new RegExp("rgb" + PERMISSIVE_MATCH3),
|
4962 | rgba: new RegExp("rgba" + PERMISSIVE_MATCH4),
|
4963 | hsl: new RegExp("hsl" + PERMISSIVE_MATCH3),
|
4964 | hsla: new RegExp("hsla" + PERMISSIVE_MATCH4),
|
4965 | hsv: new RegExp("hsv" + PERMISSIVE_MATCH3),
|
4966 | hsva: new RegExp("hsva" + PERMISSIVE_MATCH4),
|
4967 | hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
4968 | hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
4969 | hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
4970 | hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
4971 | };
|
4972 | function stringInputToObject(color) {
|
4973 | color = color.trim().toLowerCase();
|
4974 | if (color.length === 0) {
|
4975 | return false;
|
4976 | }
|
4977 | var named = false;
|
4978 | if (names[color]) {
|
4979 | color = names[color];
|
4980 | named = true;
|
4981 | } else if (color === "transparent") {
|
4982 | return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
4983 | }
|
4984 | var match = matchers.rgb.exec(color);
|
4985 | if (match) {
|
4986 | return { r: match[1], g: match[2], b: match[3] };
|
4987 | }
|
4988 | match = matchers.rgba.exec(color);
|
4989 | if (match) {
|
4990 | return { r: match[1], g: match[2], b: match[3], a: match[4] };
|
4991 | }
|
4992 | match = matchers.hsl.exec(color);
|
4993 | if (match) {
|
4994 | return { h: match[1], s: match[2], l: match[3] };
|
4995 | }
|
4996 | match = matchers.hsla.exec(color);
|
4997 | if (match) {
|
4998 | return { h: match[1], s: match[2], l: match[3], a: match[4] };
|
4999 | }
|
5000 | match = matchers.hsv.exec(color);
|
5001 | if (match) {
|
5002 | return { h: match[1], s: match[2], v: match[3] };
|
5003 | }
|
5004 | match = matchers.hsva.exec(color);
|
5005 | if (match) {
|
5006 | return { h: match[1], s: match[2], v: match[3], a: match[4] };
|
5007 | }
|
5008 | match = matchers.hex8.exec(color);
|
5009 | if (match) {
|
5010 | return {
|
5011 | r: parseIntFromHex(match[1]),
|
5012 | g: parseIntFromHex(match[2]),
|
5013 | b: parseIntFromHex(match[3]),
|
5014 | a: convertHexToDecimal(match[4]),
|
5015 | format: named ? "name" : "hex8"
|
5016 | };
|
5017 | }
|
5018 | match = matchers.hex6.exec(color);
|
5019 | if (match) {
|
5020 | return {
|
5021 | r: parseIntFromHex(match[1]),
|
5022 | g: parseIntFromHex(match[2]),
|
5023 | b: parseIntFromHex(match[3]),
|
5024 | format: named ? "name" : "hex"
|
5025 | };
|
5026 | }
|
5027 | match = matchers.hex4.exec(color);
|
5028 | if (match) {
|
5029 | return {
|
5030 | r: parseIntFromHex(match[1] + match[1]),
|
5031 | g: parseIntFromHex(match[2] + match[2]),
|
5032 | b: parseIntFromHex(match[3] + match[3]),
|
5033 | a: convertHexToDecimal(match[4] + match[4]),
|
5034 | format: named ? "name" : "hex8"
|
5035 | };
|
5036 | }
|
5037 | match = matchers.hex3.exec(color);
|
5038 | if (match) {
|
5039 | return {
|
5040 | r: parseIntFromHex(match[1] + match[1]),
|
5041 | g: parseIntFromHex(match[2] + match[2]),
|
5042 | b: parseIntFromHex(match[3] + match[3]),
|
5043 | format: named ? "name" : "hex"
|
5044 | };
|
5045 | }
|
5046 | return false;
|
5047 | }
|
5048 | function isValidCSSUnit(color) {
|
5049 | return Boolean(matchers.CSS_UNIT.exec(String(color)));
|
5050 | }
|
5051 | var hueStep = 2;
|
5052 | var saturationStep = 0.16;
|
5053 | var saturationStep2 = 0.05;
|
5054 | var brightnessStep1 = 0.05;
|
5055 | var brightnessStep2 = 0.15;
|
5056 | var lightColorCount = 5;
|
5057 | var darkColorCount = 4;
|
5058 | var darkColorMap = [{
|
5059 | index: 7,
|
5060 | opacity: 0.15
|
5061 | }, {
|
5062 | index: 6,
|
5063 | opacity: 0.25
|
5064 | }, {
|
5065 | index: 5,
|
5066 | opacity: 0.3
|
5067 | }, {
|
5068 | index: 5,
|
5069 | opacity: 0.45
|
5070 | }, {
|
5071 | index: 5,
|
5072 | opacity: 0.65
|
5073 | }, {
|
5074 | index: 5,
|
5075 | opacity: 0.85
|
5076 | }, {
|
5077 | index: 4,
|
5078 | opacity: 0.9
|
5079 | }, {
|
5080 | index: 3,
|
5081 | opacity: 0.95
|
5082 | }, {
|
5083 | index: 2,
|
5084 | opacity: 0.97
|
5085 | }, {
|
5086 | index: 1,
|
5087 | opacity: 0.98
|
5088 | }];
|
5089 | function toHsv(_ref) {
|
5090 | var r = _ref.r, g = _ref.g, b = _ref.b;
|
5091 | var hsv = rgbToHsv(r, g, b);
|
5092 | return {
|
5093 | h: hsv.h * 360,
|
5094 | s: hsv.s,
|
5095 | v: hsv.v
|
5096 | };
|
5097 | }
|
5098 | function toHex(_ref2) {
|
5099 | var r = _ref2.r, g = _ref2.g, b = _ref2.b;
|
5100 | return "#".concat(rgbToHex(r, g, b, false));
|
5101 | }
|
5102 | function mix(rgb1, rgb2, amount) {
|
5103 | var p = amount / 100;
|
5104 | var rgb = {
|
5105 | r: (rgb2.r - rgb1.r) * p + rgb1.r,
|
5106 | g: (rgb2.g - rgb1.g) * p + rgb1.g,
|
5107 | b: (rgb2.b - rgb1.b) * p + rgb1.b
|
5108 | };
|
5109 | return rgb;
|
5110 | }
|
5111 | function getHue(hsv, i, light) {
|
5112 | var hue;
|
5113 | if (Math.round(hsv.h) >= 60 && Math.round(hsv.h) <= 240) {
|
5114 | hue = light ? Math.round(hsv.h) - hueStep * i : Math.round(hsv.h) + hueStep * i;
|
5115 | } else {
|
5116 | hue = light ? Math.round(hsv.h) + hueStep * i : Math.round(hsv.h) - hueStep * i;
|
5117 | }
|
5118 | if (hue < 0) {
|
5119 | hue += 360;
|
5120 | } else if (hue >= 360) {
|
5121 | hue -= 360;
|
5122 | }
|
5123 | return hue;
|
5124 | }
|
5125 | function getSaturation(hsv, i, light) {
|
5126 | if (hsv.h === 0 && hsv.s === 0) {
|
5127 | return hsv.s;
|
5128 | }
|
5129 | var saturation;
|
5130 | if (light) {
|
5131 | saturation = hsv.s - saturationStep * i;
|
5132 | } else if (i === darkColorCount) {
|
5133 | saturation = hsv.s + saturationStep;
|
5134 | } else {
|
5135 | saturation = hsv.s + saturationStep2 * i;
|
5136 | }
|
5137 | if (saturation > 1) {
|
5138 | saturation = 1;
|
5139 | }
|
5140 | if (light && i === lightColorCount && saturation > 0.1) {
|
5141 | saturation = 0.1;
|
5142 | }
|
5143 | if (saturation < 0.06) {
|
5144 | saturation = 0.06;
|
5145 | }
|
5146 | return Number(saturation.toFixed(2));
|
5147 | }
|
5148 | function getValue$2(hsv, i, light) {
|
5149 | var value;
|
5150 | if (light) {
|
5151 | value = hsv.v + brightnessStep1 * i;
|
5152 | } else {
|
5153 | value = hsv.v - brightnessStep2 * i;
|
5154 | }
|
5155 | if (value > 1) {
|
5156 | value = 1;
|
5157 | }
|
5158 | return Number(value.toFixed(2));
|
5159 | }
|
5160 | function generate$1(color) {
|
5161 | var opts = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
5162 | var patterns = [];
|
5163 | var pColor = inputToRGB(color);
|
5164 | for (var i = lightColorCount; i > 0; i -= 1) {
|
5165 | var hsv = toHsv(pColor);
|
5166 | var colorString = toHex(inputToRGB({
|
5167 | h: getHue(hsv, i, true),
|
5168 | s: getSaturation(hsv, i, true),
|
5169 | v: getValue$2(hsv, i, true)
|
5170 | }));
|
5171 | patterns.push(colorString);
|
5172 | }
|
5173 | patterns.push(toHex(pColor));
|
5174 | for (var _i = 1; _i <= darkColorCount; _i += 1) {
|
5175 | var _hsv = toHsv(pColor);
|
5176 | var _colorString = toHex(inputToRGB({
|
5177 | h: getHue(_hsv, _i),
|
5178 | s: getSaturation(_hsv, _i),
|
5179 | v: getValue$2(_hsv, _i)
|
5180 | }));
|
5181 | patterns.push(_colorString);
|
5182 | }
|
5183 | if (opts.theme === "dark") {
|
5184 | return darkColorMap.map(function(_ref3) {
|
5185 | var index2 = _ref3.index, opacity = _ref3.opacity;
|
5186 | var darkColorString = toHex(mix(inputToRGB(opts.backgroundColor || "#141414"), inputToRGB(patterns[index2]), opacity * 100));
|
5187 | return darkColorString;
|
5188 | });
|
5189 | }
|
5190 | return patterns;
|
5191 | }
|
5192 | var presetPrimaryColors = {
|
5193 | red: "#F5222D",
|
5194 | volcano: "#FA541C",
|
5195 | orange: "#FA8C16",
|
5196 | gold: "#FAAD14",
|
5197 | yellow: "#FADB14",
|
5198 | lime: "#A0D911",
|
5199 | green: "#52C41A",
|
5200 | cyan: "#13C2C2",
|
5201 | blue: "#1890FF",
|
5202 | geekblue: "#2F54EB",
|
5203 | purple: "#722ED1",
|
5204 | magenta: "#EB2F96",
|
5205 | grey: "#666666"
|
5206 | };
|
5207 | var presetPalettes = {};
|
5208 | var presetDarkPalettes = {};
|
5209 | Object.keys(presetPrimaryColors).forEach(function(key) {
|
5210 | presetPalettes[key] = generate$1(presetPrimaryColors[key]);
|
5211 | presetPalettes[key].primary = presetPalettes[key][5];
|
5212 | presetDarkPalettes[key] = generate$1(presetPrimaryColors[key], {
|
5213 | theme: "dark",
|
5214 | backgroundColor: "#141414"
|
5215 | });
|
5216 | presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
5217 | });
|
5218 | presetPalettes.red;
|
5219 | presetPalettes.volcano;
|
5220 | presetPalettes.gold;
|
5221 | presetPalettes.orange;
|
5222 | presetPalettes.yellow;
|
5223 | presetPalettes.lime;
|
5224 | presetPalettes.green;
|
5225 | presetPalettes.cyan;
|
5226 | presetPalettes.blue;
|
5227 | presetPalettes.geekblue;
|
5228 | presetPalettes.purple;
|
5229 | presetPalettes.magenta;
|
5230 | presetPalettes.grey;
|
5231 | var warned = {};
|
5232 | function warning$1(valid, message2) {
|
5233 | }
|
5234 | function call(method, valid, message2) {
|
5235 | if (!valid && !warned[message2]) {
|
5236 | method(false, message2);
|
5237 | warned[message2] = true;
|
5238 | }
|
5239 | }
|
5240 | function warningOnce(valid, message2) {
|
5241 | call(warning$1, valid, message2);
|
5242 | }
|
5243 | function canUseDom() {
|
5244 | return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
5245 | }
|
5246 | var MARK_KEY = "rc-util-key";
|
5247 | function getContainer(option2) {
|
5248 | if (option2.attachTo) {
|
5249 | return option2.attachTo;
|
5250 | }
|
5251 | var head = document.querySelector("head");
|
5252 | return head || document.body;
|
5253 | }
|
5254 | function injectCSS(css2) {
|
5255 | var _option$csp;
|
5256 | var option2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
5257 | if (!canUseDom()) {
|
5258 | return null;
|
5259 | }
|
5260 | var styleNode = document.createElement("style");
|
5261 | if ((_option$csp = option2.csp) === null || _option$csp === void 0 ? void 0 : _option$csp.nonce) {
|
5262 | var _option$csp2;
|
5263 | styleNode.nonce = (_option$csp2 = option2.csp) === null || _option$csp2 === void 0 ? void 0 : _option$csp2.nonce;
|
5264 | }
|
5265 | styleNode.innerHTML = css2;
|
5266 | var container = getContainer(option2);
|
5267 | var firstChild = container.firstChild;
|
5268 | if (option2.prepend && container.prepend) {
|
5269 | container.prepend(styleNode);
|
5270 | } else if (option2.prepend && firstChild) {
|
5271 | container.insertBefore(styleNode, firstChild);
|
5272 | } else {
|
5273 | container.appendChild(styleNode);
|
5274 | }
|
5275 | return styleNode;
|
5276 | }
|
5277 | var containerCache = new Map();
|
5278 | function updateCSS(css2, key) {
|
5279 | var option2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
5280 | var container = getContainer(option2);
|
5281 | if (!containerCache.has(container)) {
|
5282 | var placeholderStyle = injectCSS("", option2);
|
5283 | var parentNode = placeholderStyle.parentNode;
|
5284 | containerCache.set(container, parentNode);
|
5285 | parentNode.removeChild(placeholderStyle);
|
5286 | }
|
5287 | var existNode = Array.from(containerCache.get(container).children).find(function(node) {
|
5288 | return node.tagName === "STYLE" && node[MARK_KEY] === key;
|
5289 | });
|
5290 | if (existNode) {
|
5291 | var _option$csp3, _option$csp4;
|
5292 | if (((_option$csp3 = option2.csp) === null || _option$csp3 === void 0 ? void 0 : _option$csp3.nonce) && existNode.nonce !== ((_option$csp4 = option2.csp) === null || _option$csp4 === void 0 ? void 0 : _option$csp4.nonce)) {
|
5293 | var _option$csp5;
|
5294 | existNode.nonce = (_option$csp5 = option2.csp) === null || _option$csp5 === void 0 ? void 0 : _option$csp5.nonce;
|
5295 | }
|
5296 | if (existNode.innerHTML !== css2) {
|
5297 | existNode.innerHTML = css2;
|
5298 | }
|
5299 | return existNode;
|
5300 | }
|
5301 | var newNode = injectCSS(css2, option2);
|
5302 | newNode[MARK_KEY] = key;
|
5303 | return newNode;
|
5304 | }
|
5305 | function warning(valid, message2) {
|
5306 | warningOnce(valid, "[@ant-design/icons] ".concat(message2));
|
5307 | }
|
5308 | function isIconDefinition(target) {
|
5309 | return _typeof(target) === "object" && typeof target.name === "string" && typeof target.theme === "string" && (_typeof(target.icon) === "object" || typeof target.icon === "function");
|
5310 | }
|
5311 | function normalizeAttrs() {
|
5312 | var attrs = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
5313 | return Object.keys(attrs).reduce(function(acc, key) {
|
5314 | var val = attrs[key];
|
5315 | switch (key) {
|
5316 | case "class":
|
5317 | acc.className = val;
|
5318 | delete acc.class;
|
5319 | break;
|
5320 | default:
|
5321 | acc[key] = val;
|
5322 | }
|
5323 | return acc;
|
5324 | }, {});
|
5325 | }
|
5326 | function generate(node, key, rootProps) {
|
5327 | if (!rootProps) {
|
5328 | return React__default.createElement(node.tag, _objectSpread2({
|
5329 | key
|
5330 | }, normalizeAttrs(node.attrs)), (node.children || []).map(function(child, index2) {
|
5331 | return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
|
5332 | }));
|
5333 | }
|
5334 | return React__default.createElement(node.tag, _objectSpread2(_objectSpread2({
|
5335 | key
|
5336 | }, normalizeAttrs(node.attrs)), rootProps), (node.children || []).map(function(child, index2) {
|
5337 | return generate(child, "".concat(key, "-").concat(node.tag, "-").concat(index2));
|
5338 | }));
|
5339 | }
|
5340 | function getSecondaryColor(primaryColor) {
|
5341 | return generate$1(primaryColor)[0];
|
5342 | }
|
5343 | function normalizeTwoToneColors(twoToneColor) {
|
5344 | if (!twoToneColor) {
|
5345 | return [];
|
5346 | }
|
5347 | return Array.isArray(twoToneColor) ? twoToneColor : [twoToneColor];
|
5348 | }
|
5349 | var iconStyles = "\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";
|
5350 | var useInsertStyles = function useInsertStyles2() {
|
5351 | var styleStr = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : iconStyles;
|
5352 | var _useContext = useContext(Context), csp = _useContext.csp;
|
5353 | useEffect(function() {
|
5354 | updateCSS(styleStr, "@ant-design-icons", {
|
5355 | prepend: true,
|
5356 | csp
|
5357 | });
|
5358 | }, []);
|
5359 | };
|
5360 | var _excluded$1 = ["icon", "className", "onClick", "style", "primaryColor", "secondaryColor"];
|
5361 | var twoToneColorPalette = {
|
5362 | primaryColor: "#333",
|
5363 | secondaryColor: "#E6E6E6",
|
5364 | calculated: false
|
5365 | };
|
5366 | function setTwoToneColors(_ref) {
|
5367 | var primaryColor = _ref.primaryColor, secondaryColor = _ref.secondaryColor;
|
5368 | twoToneColorPalette.primaryColor = primaryColor;
|
5369 | twoToneColorPalette.secondaryColor = secondaryColor || getSecondaryColor(primaryColor);
|
5370 | twoToneColorPalette.calculated = !!secondaryColor;
|
5371 | }
|
5372 | function getTwoToneColors() {
|
5373 | return _objectSpread2({}, twoToneColorPalette);
|
5374 | }
|
5375 | var IconBase = function IconBase2(props) {
|
5376 | var icon = props.icon, className = props.className, onClick = props.onClick, style = props.style, primaryColor = props.primaryColor, secondaryColor = props.secondaryColor, restProps = _objectWithoutProperties$2(props, _excluded$1);
|
5377 | var colors = twoToneColorPalette;
|
5378 | if (primaryColor) {
|
5379 | colors = {
|
5380 | primaryColor,
|
5381 | secondaryColor: secondaryColor || getSecondaryColor(primaryColor)
|
5382 | };
|
5383 | }
|
5384 | useInsertStyles();
|
5385 | warning(isIconDefinition(icon), "icon should be icon definiton, but got ".concat(icon));
|
5386 | if (!isIconDefinition(icon)) {
|
5387 | return null;
|
5388 | }
|
5389 | var target = icon;
|
5390 | if (target && typeof target.icon === "function") {
|
5391 | target = _objectSpread2(_objectSpread2({}, target), {}, {
|
5392 | icon: target.icon(colors.primaryColor, colors.secondaryColor)
|
5393 | });
|
5394 | }
|
5395 | return generate(target.icon, "svg-".concat(target.name), _objectSpread2({
|
5396 | className,
|
5397 | onClick,
|
5398 | style,
|
5399 | "data-icon": target.name,
|
5400 | width: "1em",
|
5401 | height: "1em",
|
5402 | fill: "currentColor",
|
5403 | "aria-hidden": "true"
|
5404 | }, restProps));
|
5405 | };
|
5406 | IconBase.displayName = "IconReact";
|
5407 | IconBase.getTwoToneColors = getTwoToneColors;
|
5408 | IconBase.setTwoToneColors = setTwoToneColors;
|
5409 | var ReactIcon = IconBase;
|
5410 | function setTwoToneColor(twoToneColor) {
|
5411 | var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
5412 | return ReactIcon.setTwoToneColors({
|
5413 | primaryColor,
|
5414 | secondaryColor
|
5415 | });
|
5416 | }
|
5417 | function getTwoToneColor() {
|
5418 | var colors = ReactIcon.getTwoToneColors();
|
5419 | if (!colors.calculated) {
|
5420 | return colors.primaryColor;
|
5421 | }
|
5422 | return [colors.primaryColor, colors.secondaryColor];
|
5423 | }
|
5424 | var _excluded = ["className", "icon", "spin", "rotate", "tabIndex", "onClick", "twoToneColor"];
|
5425 | setTwoToneColor("#1890ff");
|
5426 | var Icon$2 = React.forwardRef(function(props, ref) {
|
5427 | var _classNames;
|
5428 | var className = props.className, icon = props.icon, spin = props.spin, rotate = props.rotate, tabIndex = props.tabIndex, onClick = props.onClick, twoToneColor = props.twoToneColor, restProps = _objectWithoutProperties$2(props, _excluded);
|
5429 | var _React$useContext = React.useContext(Context), _React$useContext$pre = _React$useContext.prefixCls, prefixCls = _React$useContext$pre === void 0 ? "anticon" : _React$useContext$pre;
|
5430 | var classString = classNames(prefixCls, (_classNames = {}, _defineProperty$2(_classNames, "".concat(prefixCls, "-").concat(icon.name), !!icon.name), _defineProperty$2(_classNames, "".concat(prefixCls, "-spin"), !!spin || icon.name === "loading"), _classNames), className);
|
5431 | var iconTabIndex = tabIndex;
|
5432 | if (iconTabIndex === void 0 && onClick) {
|
5433 | iconTabIndex = -1;
|
5434 | }
|
5435 | var svgStyle = rotate ? {
|
5436 | msTransform: "rotate(".concat(rotate, "deg)"),
|
5437 | transform: "rotate(".concat(rotate, "deg)")
|
5438 | } : void 0;
|
5439 | var _normalizeTwoToneColo = normalizeTwoToneColors(twoToneColor), _normalizeTwoToneColo2 = _slicedToArray(_normalizeTwoToneColo, 2), primaryColor = _normalizeTwoToneColo2[0], secondaryColor = _normalizeTwoToneColo2[1];
|
5440 | return React.createElement("span", _objectSpread2(_objectSpread2({
|
5441 | role: "img",
|
5442 | "aria-label": icon.name
|
5443 | }, restProps), {}, {
|
5444 | ref,
|
5445 | tabIndex: iconTabIndex,
|
5446 | onClick,
|
5447 | className: classString
|
5448 | }), React.createElement(ReactIcon, {
|
5449 | icon,
|
5450 | primaryColor,
|
5451 | secondaryColor,
|
5452 | style: svgStyle
|
5453 | }));
|
5454 | });
|
5455 | Icon$2.displayName = "AntdIcon";
|
5456 | Icon$2.getTwoToneColor = getTwoToneColor;
|
5457 | Icon$2.setTwoToneColor = setTwoToneColor;
|
5458 | var AntdIcon = Icon$2;
|
5459 | var InboxOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "0 0 1024 1024", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z" } }] }, "name": "inbox", "theme": "outlined" };
|
5460 | var InboxOutlinedSvg = InboxOutlined$2;
|
5461 | var InboxOutlined = function InboxOutlined2(props, ref) {
|
5462 | return React.createElement(AntdIcon, _objectSpread2(_objectSpread2({}, props), {}, {
|
5463 | ref,
|
5464 | icon: InboxOutlinedSvg
|
5465 | }));
|
5466 | };
|
5467 | InboxOutlined.displayName = "InboxOutlined";
|
5468 | var InboxOutlined$1 = React.forwardRef(InboxOutlined);
|
5469 | var UploadOutlined$2 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z" } }] }, "name": "upload", "theme": "outlined" };
|
5470 | var UploadOutlinedSvg = UploadOutlined$2;
|
5471 | var UploadOutlined = function UploadOutlined2(props, ref) {
|
5472 | return React.createElement(AntdIcon, _objectSpread2(_objectSpread2({}, props), {}, {
|
5473 | ref,
|
5474 | icon: UploadOutlinedSvg
|
5475 | }));
|
5476 | };
|
5477 | UploadOutlined.displayName = "UploadOutlined";
|
5478 | var UploadOutlined$1 = React.forwardRef(UploadOutlined);
|
5479 | const Icon$1 = (props) => {
|
5480 | const { iconName, fontSize, color, className, onClick } = props;
|
5481 | return React__default.createElement("svg", {
|
5482 | className: `icon ${className}`,
|
5483 | "aria-hidden": "true",
|
5484 | style: { fontSize: `${fontSize}px`, color },
|
5485 | onClick
|
5486 | }, React__default.createElement("use", {
|
5487 | xlinkHref: `#${iconName}`
|
5488 | }));
|
5489 | };
|
5490 | Icon$1.defaultProps = {
|
5491 | iconName: void 0,
|
5492 | fontSize: 40,
|
5493 | color: "",
|
5494 | className: "",
|
5495 | onClick: () => {
|
5496 | }
|
5497 | };
|
5498 | const GenerateFormItem = (props) => {
|
5499 | const {
|
5500 | item,
|
5501 | item: { type, config, remoteConfig, customClass, dynamicProps, dynamicFormItemProps, events, childNodes, label, key, formItemConfig },
|
5502 | formInstance
|
5503 | } = props;
|
5504 | useContext(GenerateContext);
|
5505 | const forceUpdate = useForceUpdate();
|
5506 | const commonProps = __spreadValues({}, config);
|
5507 | const commonFormItemProps = __spreadProps(__spreadValues({}, formItemConfig), {
|
5508 | name: key,
|
5509 | label,
|
5510 | hidden: commonProps.hidden
|
5511 | });
|
5512 | if (["DatePicker", "RangePicker", "TimePicker"].includes(type) && (formItemConfig == null ? void 0 : formItemConfig.initialValue)) {
|
5513 | if (isString$1(formItemConfig == null ? void 0 : formItemConfig.initialValue)) {
|
5514 | commonFormItemProps.initialValue = moment$1(formItemConfig.initialValue, config == null ? void 0 : config.format);
|
5515 | }
|
5516 | if (isArray$d(formItemConfig == null ? void 0 : formItemConfig.initialValue) && formItemConfig.initialValue.length === 2) {
|
5517 | commonFormItemProps.initialValue = [moment$1(formItemConfig.initialValue[0], config == null ? void 0 : config.format), moment$1(formItemConfig.initialValue[1], config == null ? void 0 : config.format)];
|
5518 | }
|
5519 | }
|
5520 | if (["Calendar"].includes(type) && (config == null ? void 0 : config.defaultValue)) {
|
5521 | commonProps.defaultValue = moment$1(commonProps.defaultValue);
|
5522 | }
|
5523 | useEffect(() => {
|
5524 | if (remoteConfig == null ? void 0 : remoteConfig.remote) {
|
5525 | if (remoteConfig.remote && remoteConfig.remoteFunc) {
|
5526 | fetch(remoteConfig.remoteFunc).then((resp) => resp.json()).then((json) => {
|
5527 | if (json instanceof Array) {
|
5528 | remoteConfig.remoteOptions = handleResponseData(json, remoteConfig);
|
5529 | forceUpdate();
|
5530 | }
|
5531 | });
|
5532 | }
|
5533 | }
|
5534 | }, []);
|
5535 | const render3 = () => {
|
5536 | return React__default.createElement(React__default.Fragment, null, type === "Button" && React__default.createElement(Button$1, __spreadValues({}, commonProps)), type === "Icon" && React__default.createElement(Icon$1, __spreadValues({}, commonProps)), type === "Text" && React__default.createElement(Typography$1.Text, __spreadValues({}, commonProps)), type === "Title" && React__default.createElement(Typography$1.Title, __spreadValues({}, commonProps)), type === "Paragraph" && React__default.createElement(Typography$1.Paragraph, __spreadValues({}, commonProps)), type === "Divider" && React__default.createElement(Divider$1, __spreadValues({}, commonProps)), type === "Row" && React__default.createElement(Row$1, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5537 | key: widgetFormItem.key,
|
5538 | item: widgetFormItem,
|
5539 | formInstance
|
5540 | }))), type === "Col" && React__default.createElement(Col$1, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5541 | key: widgetFormItem.key,
|
5542 | item: widgetFormItem,
|
5543 | formInstance
|
5544 | }))), type === "Layout" && React__default.createElement(Layout, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5545 | key: widgetFormItem.key,
|
5546 | item: widgetFormItem,
|
5547 | formInstance
|
5548 | }))), type === "Header" && React__default.createElement(Layout.Header, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5549 | key: widgetFormItem.key,
|
5550 | item: widgetFormItem,
|
5551 | formInstance
|
5552 | }))), type === "Content" && React__default.createElement(Layout.Content, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5553 | key: widgetFormItem.key,
|
5554 | item: widgetFormItem,
|
5555 | formInstance
|
5556 | }))), type === "Footer" && React__default.createElement(Layout.Footer, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5557 | key: widgetFormItem.key,
|
5558 | item: widgetFormItem,
|
5559 | formInstance
|
5560 | }))), type === "Sider" && React__default.createElement(Layout.Sider, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5561 | key: widgetFormItem.key,
|
5562 | item: widgetFormItem,
|
5563 | formInstance
|
5564 | }))), type === "Space" && React__default.createElement(Space$1, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5565 | key: widgetFormItem.key,
|
5566 | item: widgetFormItem,
|
5567 | formInstance
|
5568 | }))), type === "AutoComplete" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(AutoComplete$1, __spreadProps(__spreadValues({}, commonProps), {
|
5569 | options: (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options
|
5570 | }))), type === "Cascader" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Cascader$1, __spreadProps(__spreadValues({}, commonProps), {
|
5571 | options: remoteConfig == null ? void 0 : remoteConfig.remoteOptions
|
5572 | }))), type === "Checkbox" && React__default.createElement(Form.Item, __spreadProps(__spreadValues({}, commonFormItemProps), {
|
5573 | valuePropName: "checked"
|
5574 | }), React__default.createElement(Checkbox$1, __spreadValues({}, commonProps))), type === "CheckboxGroup" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Checkbox$1.Group, __spreadProps(__spreadValues({}, commonProps), {
|
5575 | options: (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options
|
5576 | }))), type === "DatePicker" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(DatePicker$1, __spreadValues({}, commonProps))), type === "RangePicker" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(DatePicker$1.RangePicker, __spreadValues({}, commonProps))), type === "Input" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Input$1, __spreadValues({}, commonProps))), type === "TextArea" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Input$1.TextArea, __spreadValues({}, commonProps))), type === "Search" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Input$1.Search, __spreadValues({}, commonProps))), type === "Password" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Input$1.Password, __spreadValues({}, commonProps))), type === "InputNumber" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(InputNumber$1, __spreadValues({}, commonProps))), type === "Mentions" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Mentions$1, __spreadValues({}, commonProps), createMentionsOptions(item))), type === "RadioGroup" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Radio.Group, __spreadProps(__spreadValues({}, commonProps), {
|
5577 | options: (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options
|
5578 | }))), type === "Rate" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Rate$1, __spreadValues({}, commonProps))), type === "Select" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Select$1, __spreadProps(__spreadValues({}, commonProps), {
|
5579 | options: (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options
|
5580 | }))), type === "Slider" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Slider$2, __spreadValues({}, commonProps))), type === "Switch" && React__default.createElement(Form.Item, __spreadProps(__spreadValues({}, commonFormItemProps), {
|
5581 | valuePropName: "checked"
|
5582 | }), React__default.createElement(Switch$1, __spreadValues({}, commonProps))), type === "TimePicker" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(TimePicker$1, __spreadValues({}, commonProps))), type === "TreeSelect" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(TreeSelect$1, __spreadProps(__spreadValues({}, commonProps), {
|
5583 | treeData: remoteConfig == null ? void 0 : remoteConfig.remoteOptions
|
5584 | }))), type === "Upload" && React__default.createElement(Form.Item, __spreadProps(__spreadValues({}, commonFormItemProps), {
|
5585 | valuePropName: "fileList",
|
5586 | getValueFromEvent: (args) => {
|
5587 | if (Array.isArray(args)) {
|
5588 | return args;
|
5589 | }
|
5590 | return args && args.fileList;
|
5591 | }
|
5592 | }), (config == null ? void 0 : config.drop) ? React__default.createElement(Upload$1.Dragger, __spreadValues({}, commonProps), React__default.createElement("p", {
|
5593 | className: "ant-upload-drag-icon"
|
5594 | }, React__default.createElement(InboxOutlined$1, null)), React__default.createElement("p", {
|
5595 | className: "ant-upload-text"
|
5596 | }, "\u5355\u51FB\u6216\u62D6\u52A8\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), React__default.createElement("p", {
|
5597 | className: "ant-upload-hint"
|
5598 | }, "\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0A\u4F20")) : React__default.createElement(Upload$1, __spreadValues({}, commonProps), commonProps.listType === "picture-card" ? "\u70B9\u51FB\u4E0A\u4F20" : React__default.createElement(Button$1, {
|
5599 | icon: React__default.createElement(UploadOutlined$1, null)
|
5600 | }, "\u70B9\u51FB\u4E0A\u4F20"))), ["Calendar", "Image", "Table", "Tree", "Alert"].includes(type) && React__default.createElement("span", {
|
5601 | hidden: commonProps.hidden
|
5602 | }, type === "Calendar" && React__default.createElement(Calendar$1, __spreadValues({}, commonProps)), type === "Image" && React__default.createElement(Image$1, __spreadValues({}, commonProps)), type === "Table" && React__default.createElement(Table$1, __spreadValues({}, commonProps)), type === "Tree" && React__default.createElement(Tree$1, __spreadValues({}, commonProps)), type === "Alert" && React__default.createElement(Alert$1, __spreadValues({}, commonProps))));
|
5603 | };
|
5604 | return ["Button", "Icon", "Text", "Title", "Paragraph"].includes(type) ? React__default.createElement("div", null, render3()) : render3();
|
5605 | };
|
5606 | const GenerateForm$1 = forwardRef((props, ref) => {
|
5607 | const { widgetInfoJson, formValue } = props;
|
5608 | const [formInstance] = Form.useForm();
|
5609 | useImperativeHandle(ref, () => ({
|
5610 | getData: async () => {
|
5611 | const validateResult = await formInstance.validateFields();
|
5612 | return validateResult;
|
5613 | },
|
5614 | reset: () => formInstance.resetFields()
|
5615 | }));
|
5616 | const widgetInfo = JSON.parse(widgetInfoJson);
|
5617 | useEffect(() => {
|
5618 | formInstance.setFieldsValue(cloneDeep$1(formValue));
|
5619 | loadJsLink(widgetInfo.iconSrc);
|
5620 | }, []);
|
5621 | return React__default.createElement("div", {
|
5622 | className: "fc-style"
|
5623 | }, React__default.createElement(ConfigProvider, __spreadValues({}, widgetInfo.globalConfig), React__default.createElement(Form, __spreadProps(__spreadValues({}, widgetInfo.formConfig), {
|
5624 | form: formInstance
|
5625 | }), widgetInfo.widgetFormList.map((widgetFormItem) => React__default.createElement(GenerateFormItem, {
|
5626 | key: widgetFormItem.key,
|
5627 | item: widgetFormItem,
|
5628 | formInstance
|
5629 | })))));
|
5630 | });
|
5631 | GenerateForm$1.defaultProps = {
|
5632 | formValue: {}
|
5633 | };
|
5634 | var _GenerateForm = forwardRef((props, ref) => {
|
5635 | return React__default.createElement(GenerateProvider, null, React__default.createElement(GenerateForm$1, __spreadProps(__spreadValues({}, props), {
|
5636 | ref
|
5637 | })));
|
5638 | });
|
5639 | const PreviewModal = (props) => {
|
5640 | const [dataModal, setDataModal] = useState(false);
|
5641 | const [monacoValue, setMonacoValue] = useState("");
|
5642 | const ref = useRef(null);
|
5643 | const { state } = useContext(DesignContext);
|
5644 | const handleGetData = async () => {
|
5645 | var _a;
|
5646 | const formValue = await ((_a = ref.current) == null ? void 0 : _a.getData());
|
5647 | setMonacoValue(JSON.stringify(formValue, null, 2));
|
5648 | setDataModal(true);
|
5649 | };
|
5650 | const handleCopy = () => {
|
5651 | copy(monacoValue);
|
5652 | message.success("Copy\u6210\u529F");
|
5653 | };
|
5654 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Modal, __spreadProps(__spreadValues({}, props), {
|
5655 | destroyOnClose: true,
|
5656 | okText: "\u83B7\u53D6\u6570\u636E",
|
5657 | onOk: handleGetData
|
5658 | }), React__default.createElement(_GenerateForm, {
|
5659 | widgetInfoJson: JSON.stringify(state),
|
5660 | ref
|
5661 | })), React__default.createElement(Modal, {
|
5662 | title: "\u83B7\u53D6\u6570\u636E",
|
5663 | width: "50%",
|
5664 | destroyOnClose: true,
|
5665 | visible: dataModal,
|
5666 | onCancel: () => setDataModal(false),
|
5667 | okText: "Copy",
|
5668 | onOk: handleCopy
|
5669 | }, React__default.createElement(MonacoEditor$1, {
|
5670 | readonly: true,
|
5671 | language: "json",
|
5672 | height: document.body.clientHeight / 1.5,
|
5673 | value: monacoValue
|
5674 | })));
|
5675 | };
|
5676 | const GenerateJsonModal = (props) => {
|
5677 | const { state } = useContext(DesignContext);
|
5678 | const monacoValue = JSON.stringify(state, null, 2);
|
5679 | const handleCopy = () => {
|
5680 | copy(monacoValue);
|
5681 | message.success("Copy\u6210\u529F");
|
5682 | };
|
5683 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Modal, __spreadProps(__spreadValues({}, props), {
|
5684 | destroyOnClose: true,
|
5685 | okText: "Copy",
|
5686 | onOk: handleCopy
|
5687 | }), React__default.createElement(MonacoEditor$1, {
|
5688 | readonly: true,
|
5689 | language: "json",
|
5690 | height: document.body.clientHeight / 1.5,
|
5691 | value: JSON.stringify(state, null, 2)
|
5692 | })));
|
5693 | };
|
5694 | var generateCode = (type, state) => {
|
5695 | let str;
|
5696 | if (type === "component") {
|
5697 | str = `
|
5698 | import React from 'react'
|
5699 | import { GenerateForm } from 'react-form-create'
|
5700 |
|
5701 | const widgetInfoJson = '${JSON.stringify(state, null, 2)}'
|
5702 |
|
5703 | export default () => {
|
5704 | return <GenerateForm widgetInfoJson={widgetInfoJson} />
|
5705 | }
|
5706 | `;
|
5707 | } else {
|
5708 | str = `
|
5709 | <!DOCTYPE html>
|
5710 | <html>
|
5711 | <head>
|
5712 | <meta charset="UTF-8">
|
5713 | <link rel="stylesheet" href="https://unpkg.com/antd/dist/antd.min.css" />
|
5714 | <script src="https://unpkg.com/react/umd/react.production.min.js"><\/script>
|
5715 | <script src="https://unpkg.com/react-dom/umd/react-dom.production.min.js"><\/script>
|
5716 | <script src="https://unpkg.com/moment/moment.js"><\/script>
|
5717 | <script src="https://unpkg.com/antd/dist/antd.min.js"><\/script>
|
5718 | <script src="https://unpkg.com/babel-standalone"><\/script>
|
5719 | <script src="https://unpkg.com/react-form-create/dist/react-form-create.umd.js"><\/script>
|
5720 | <script src="https://unpkg.com/monaco-editor/min/vs/loader.js"><\/script>
|
5721 | <script>
|
5722 | require.config({
|
5723 | paths: { vs: 'https://unpkg.com/monaco-editor/min/vs' }
|
5724 | })
|
5725 | window.MonacoEnvironment = {
|
5726 | getWorkerUrl: function (workerId, label) {
|
5727 | return \`data:text/javascript;charset=utf-8,\${encodeURIComponent(\`
|
5728 | self.MonacoEnvironment = {
|
5729 | baseUrl: 'https://unpkg.com/monaco-editor/min/'
|
5730 | };
|
5731 | importScripts('https://unpkg.com/monaco-editor/min/vs/base/worker/workerMain.js');\`)}\`
|
5732 | }
|
5733 | }
|
5734 | require(['vs/editor/editor.main'], function () {})
|
5735 | <\/script>
|
5736 | </head>
|
5737 | <body>
|
5738 | <div id="root"></div>
|
5739 | <script type="text/babel">
|
5740 | const widgetInfoJson = '${JSON.stringify(state)}'
|
5741 |
|
5742 | ReactDOM.render(
|
5743 | <GenerateForm widgetInfoJson={widgetInfoJson} />,
|
5744 | document.getElementById('root')
|
5745 | )
|
5746 | <\/script>
|
5747 | </body>
|
5748 | </html>
|
5749 | `;
|
5750 | }
|
5751 | return str.trim();
|
5752 | };
|
5753 | const GenerateCodeModal = (props) => {
|
5754 | const [activeKey, setActiveKey] = useState("Component");
|
5755 | const { state } = useContext(DesignContext);
|
5756 | const handleCopy = () => {
|
5757 | copy(generateCode(activeKey === "Component" ? "component" : "html", state));
|
5758 | message.success("Copy\u6210\u529F");
|
5759 | };
|
5760 | return React__default.createElement(Modal, __spreadProps(__spreadValues({}, props), {
|
5761 | destroyOnClose: true,
|
5762 | okText: "Copy",
|
5763 | onOk: handleCopy
|
5764 | }), React__default.createElement(Tabs, {
|
5765 | type: "card",
|
5766 | tabBarStyle: { margin: "0" },
|
5767 | activeKey,
|
5768 | onChange: setActiveKey
|
5769 | }, React__default.createElement(Tabs.TabPane, {
|
5770 | tab: "React Component",
|
5771 | key: "Component"
|
5772 | }, React__default.createElement(MonacoEditor$1, {
|
5773 | readonly: true,
|
5774 | language: "javascript",
|
5775 | height: document.body.clientHeight / 1.5,
|
5776 | value: generateCode("component", state)
|
5777 | })), React__default.createElement(Tabs.TabPane, {
|
5778 | tab: "HTML",
|
5779 | key: "HTML"
|
5780 | }, React__default.createElement(MonacoEditor$1, {
|
5781 | readonly: true,
|
5782 | language: "html",
|
5783 | height: document.body.clientHeight / 1.5,
|
5784 | value: generateCode("html", state)
|
5785 | }))));
|
5786 | };
|
5787 | const Header = (props) => {
|
5788 | const { uploadJson, clearable, preview, generateJson, generateCode: generateCode2 } = props;
|
5789 | const { handlerSetVisible, dispatch } = useConfig();
|
5790 | const [uploadVisible, setUploadVisible] = useState(false);
|
5791 | const [previewVisible, setPreviewVisible] = useState(false);
|
5792 | const [generateJsonVisible, setGenerateJsonVisible] = useState(false);
|
5793 | const [generateCodeVisible, setGenerateCodeVisible] = useState(false);
|
5794 | const handleClear = (event) => {
|
5795 | event.preventDefault();
|
5796 | dispatch({
|
5797 | type: ActionType.SET_WIDGET_FORM_LIST,
|
5798 | payload: []
|
5799 | });
|
5800 | };
|
5801 | return React__default.createElement(React__default.Fragment, null, useMemo(() => React__default.createElement(Layout.Header, {
|
5802 | className: "btn-bar"
|
5803 | }, React__default.createElement(Space$1, null, uploadJson && React__default.createElement("a", {
|
5804 | href: "/#",
|
5805 | onClick: handlerSetVisible(setUploadVisible, true)
|
5806 | }, React__default.createElement(SvgIcon, {
|
5807 | name: "Upload"
|
5808 | }), "\u5BFC\u5165Json"), clearable && React__default.createElement("a", {
|
5809 | href: "/#",
|
5810 | onClick: handleClear
|
5811 | }, React__default.createElement(SvgIcon, {
|
5812 | name: "Delete"
|
5813 | }), "\u6E05\u7A7A"), preview && React__default.createElement("a", {
|
5814 | href: "/#",
|
5815 | onClick: handlerSetVisible(setPreviewVisible, true)
|
5816 | }, React__default.createElement(SvgIcon, {
|
5817 | name: "Preview"
|
5818 | }), "\u9884\u89C8"), generateJson && React__default.createElement("a", {
|
5819 | href: "/#",
|
5820 | onClick: handlerSetVisible(setGenerateJsonVisible, true)
|
5821 | }, React__default.createElement(SvgIcon, {
|
5822 | name: "GenerateJson"
|
5823 | }), "\u751F\u6210JSON"), generateCode2 && React__default.createElement("a", {
|
5824 | href: "/#",
|
5825 | onClick: handlerSetVisible(setGenerateCodeVisible, true)
|
5826 | }, React__default.createElement(SvgIcon, {
|
5827 | name: "GenerateCode"
|
5828 | }), "\u751F\u6210\u4EE3\u7801"))), [uploadJson, clearable, preview, generateJson, generateCode2]), React__default.createElement(UploadModal, {
|
5829 | title: "\u5BFC\u5165Json",
|
5830 | width: "50%",
|
5831 | visible: uploadVisible,
|
5832 | close: handlerSetVisible(setUploadVisible, false),
|
5833 | onCancel: handlerSetVisible(setUploadVisible, false)
|
5834 | }), React__default.createElement(PreviewModal, {
|
5835 | title: "\u9884\u89C8",
|
5836 | width: "100%",
|
5837 | style: {
|
5838 | height: "100%",
|
5839 | maxWidth: "100%",
|
5840 | top: 0,
|
5841 | padding: 0
|
5842 | },
|
5843 | bodyStyle: {
|
5844 | minHeight: "calc(100vh - 108px)"
|
5845 | },
|
5846 | visible: previewVisible,
|
5847 | onCancel: handlerSetVisible(setPreviewVisible, false)
|
5848 | }), React__default.createElement(GenerateJsonModal, {
|
5849 | title: "\u751F\u6210Json",
|
5850 | width: "50%",
|
5851 | visible: generateJsonVisible,
|
5852 | onCancel: handlerSetVisible(setGenerateJsonVisible, false)
|
5853 | }), React__default.createElement(GenerateCodeModal, {
|
5854 | title: "\u751F\u6210\u4EE3\u7801",
|
5855 | width: "50%",
|
5856 | visible: generateCodeVisible,
|
5857 | onCancel: handlerSetVisible(setGenerateCodeVisible, false)
|
5858 | }));
|
5859 | };
|
5860 | var getRandomValues;
|
5861 | var rnds8 = new Uint8Array(16);
|
5862 | function rng() {
|
5863 | if (!getRandomValues) {
|
5864 | getRandomValues = typeof crypto !== "undefined" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto !== "undefined" && typeof msCrypto.getRandomValues === "function" && msCrypto.getRandomValues.bind(msCrypto);
|
5865 | if (!getRandomValues) {
|
5866 | throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
5867 | }
|
5868 | }
|
5869 | return getRandomValues(rnds8);
|
5870 | }
|
5871 | var REGEX = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
|
5872 | function validate(uuid) {
|
5873 | return typeof uuid === "string" && REGEX.test(uuid);
|
5874 | }
|
5875 | var byteToHex = [];
|
5876 | for (var i = 0; i < 256; ++i) {
|
5877 | byteToHex.push((i + 256).toString(16).substr(1));
|
5878 | }
|
5879 | function stringify(arr) {
|
5880 | var offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
5881 | var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
|
5882 | if (!validate(uuid)) {
|
5883 | throw TypeError("Stringified UUID is invalid");
|
5884 | }
|
5885 | return uuid;
|
5886 | }
|
5887 | function v4(options, buf, offset) {
|
5888 | options = options || {};
|
5889 | var rnds = options.random || (options.rng || rng)();
|
5890 | rnds[6] = rnds[6] & 15 | 64;
|
5891 | rnds[8] = rnds[8] & 63 | 128;
|
5892 | if (buf) {
|
5893 | offset = offset || 0;
|
5894 | for (var i = 0; i < 16; ++i) {
|
5895 | buf[offset + i] = rnds[i];
|
5896 | }
|
5897 | return buf;
|
5898 | }
|
5899 | return stringify(rnds);
|
5900 | }
|
5901 | const WidgetFormItem = (props) => {
|
5902 | var _a;
|
5903 | const {
|
5904 | item,
|
5905 | item: { key, type, label, config, remoteConfig, customClass, dynamicProps, dynamicFormItemProps, childNodes, formItemConfig },
|
5906 | formInstance
|
5907 | } = props;
|
5908 | const {
|
5909 | state: { widgetFormList, selectWidgetItem, globalState },
|
5910 | dispatch
|
5911 | } = useContext(DesignContext);
|
5912 | const selectWidgetItemRef = useRef(selectWidgetItem);
|
5913 | useEffect(() => {
|
5914 | selectWidgetItemRef.current = selectWidgetItem;
|
5915 | }, [selectWidgetItem]);
|
5916 | const forceUpdate = useForceUpdate();
|
5917 | const className = useMemo(() => `widget-item-container ${(selectWidgetItem == null ? void 0 : selectWidgetItem.key) === key ? "active" : ""} ${["Row", "Col", "Space"].includes(type) ? "child-nodes" : ""}`, [selectWidgetItem]);
|
5918 | const commonProps = __spreadProps(__spreadValues({}, config), {
|
5919 | className: `${["Row", "Col"].includes(type) ? className : ""}`
|
5920 | });
|
5921 | const commonFormItemProps = __spreadProps(__spreadValues({}, formItemConfig), {
|
5922 | name: key,
|
5923 | label
|
5924 | });
|
5925 | const { hidden } = commonProps;
|
5926 | delete commonProps.hidden;
|
5927 | if (["DatePicker", "RangePicker", "TimePicker"].includes(type) && (formItemConfig == null ? void 0 : formItemConfig.initialValue)) {
|
5928 | if (isString$1(formItemConfig == null ? void 0 : formItemConfig.initialValue)) {
|
5929 | commonFormItemProps.initialValue = moment$1(formItemConfig.initialValue, config == null ? void 0 : config.format);
|
5930 | }
|
5931 | if (isArray$d(formItemConfig == null ? void 0 : formItemConfig.initialValue) && formItemConfig.initialValue.length === 2) {
|
5932 | commonFormItemProps.initialValue = [moment$1(formItemConfig.initialValue[0], config == null ? void 0 : config.format), moment$1(formItemConfig.initialValue[1], config == null ? void 0 : config.format)];
|
5933 | }
|
5934 | }
|
5935 | if (["Calendar"].includes(type) && (config == null ? void 0 : config.defaultValue)) {
|
5936 | commonProps.defaultValue = moment$1(commonProps.defaultValue);
|
5937 | }
|
5938 | const sortableGroupDecorator = (instance) => {
|
5939 | if (instance) {
|
5940 | const options = {
|
5941 | ghostClass: "ghost",
|
5942 | handle: ".drag-widget",
|
5943 | animation: 200,
|
5944 | group: {
|
5945 | name: "people"
|
5946 | },
|
5947 | setData: (dataTransfer) => {
|
5948 | var _a2;
|
5949 | dataTransfer.setData("SortableDataMove", (_a2 = selectWidgetItemRef.current) == null ? void 0 : _a2.key);
|
5950 | },
|
5951 | onAdd: (event) => {
|
5952 | const { newIndex: newIndex2 } = event;
|
5953 | const uuid = v4().replaceAll("-", "");
|
5954 | const newChildNodes = cloneDeep$1(childNodes != null ? childNodes : []);
|
5955 | const SortableDataClone = event.originalEvent.dataTransfer.getData("SortableDataClone");
|
5956 | const SortableDataMove = event.originalEvent.dataTransfer.getData("SortableDataMove");
|
5957 | removeDomNode(".widget-form-list .form-edit-widget-label");
|
5958 | if (SortableDataMove) {
|
5959 | const itemEl = event.item;
|
5960 | const origParent = event.from;
|
5961 | origParent.appendChild(itemEl);
|
5962 | let newSelectWidgetItem;
|
5963 | const generateNewWidgetFormList = (list, key2) => {
|
5964 | const newList = cloneDeep$1(list);
|
5965 | for (let index2 = 0; index2 < newList.length; index2++) {
|
5966 | if (newList[index2].key === key2) {
|
5967 | newSelectWidgetItem = newList.splice(index2, 1).at(0);
|
5968 | break;
|
5969 | }
|
5970 | if (newList[index2].childNodes) {
|
5971 | newList[index2].childNodes = generateNewWidgetFormList(newList[index2].childNodes, key2);
|
5972 | }
|
5973 | }
|
5974 | return newList;
|
5975 | };
|
5976 | const selectWidgetItemKey = SortableDataMove;
|
5977 | const newWidgetFormList = generateNewWidgetFormList(widgetFormList, selectWidgetItemKey);
|
5978 | newChildNodes.splice(newIndex2, 0, newSelectWidgetItem);
|
5979 | dispatch({
|
5980 | type: ActionType.SET_WIDGET_FORM_LIST,
|
5981 | payload: createNewWidgetFormList(newWidgetFormList, newChildNodes, key)
|
5982 | });
|
5983 | }
|
5984 | if (SortableDataClone) {
|
5985 | const widgetFormItem = JSON.parse(SortableDataClone);
|
5986 | const newItem = __spreadProps(__spreadValues({}, widgetFormItem), {
|
5987 | key: `${widgetFormItem.type}_${uuid}`
|
5988 | });
|
5989 | newChildNodes.splice(newIndex2, 0, newItem);
|
5990 | dispatch({
|
5991 | type: ActionType.SET_WIDGET_FORM_LIST,
|
5992 | payload: createNewWidgetFormList(widgetFormList, newChildNodes, key)
|
5993 | });
|
5994 | dispatch({
|
5995 | type: ActionType.SET_SELECT_WIDGET_ITEM,
|
5996 | payload: newItem
|
5997 | });
|
5998 | }
|
5999 | }
|
6000 | };
|
6001 | Sortable.create(instance, options);
|
6002 | }
|
6003 | };
|
6004 | const handleItemClick = (event) => {
|
6005 | event.stopPropagation();
|
6006 | const action = {
|
6007 | type: ActionType.SET_SELECT_WIDGET_ITEM,
|
6008 | payload: item
|
6009 | };
|
6010 | dispatch(action);
|
6011 | };
|
6012 | const handleCopyClick = (event) => {
|
6013 | event.stopPropagation();
|
6014 | let newItem;
|
6015 | const handleWidgetFormItem = (list) => {
|
6016 | const newList = cloneDeep$1(list);
|
6017 | for (let index2 = 0; index2 < newList.length; index2++) {
|
6018 | newList[index2].key = `${newList[index2].type}_${v4().replaceAll("-", "")}`;
|
6019 | if (newList[index2].childNodes) {
|
6020 | newList[index2].childNodes = handleWidgetFormItem(newList[index2].childNodes);
|
6021 | }
|
6022 | }
|
6023 | return newList;
|
6024 | };
|
6025 | const generateNewWidgetFormList = (list, key2) => {
|
6026 | const newList = cloneDeep$1(list);
|
6027 | for (let index2 = 0; index2 < newList.length; index2++) {
|
6028 | if (newList[index2].key === key2) {
|
6029 | newItem = cloneDeep$1(newList[index2]);
|
6030 | newItem.key = `${item.type}_${v4().replaceAll("-", "")}`;
|
6031 | newList.push(newItem);
|
6032 | if (newList[index2].childNodes) {
|
6033 | newList[index2].childNodes = handleWidgetFormItem(newList[index2].childNodes);
|
6034 | }
|
6035 | break;
|
6036 | }
|
6037 | if (newList[index2].childNodes) {
|
6038 | newList[index2].childNodes = generateNewWidgetFormList(newList[index2].childNodes, key2);
|
6039 | }
|
6040 | }
|
6041 | return newList;
|
6042 | };
|
6043 | dispatch({
|
6044 | type: ActionType.SET_WIDGET_FORM_LIST,
|
6045 | payload: generateNewWidgetFormList(widgetFormList, key)
|
6046 | });
|
6047 | dispatch({
|
6048 | type: ActionType.SET_SELECT_WIDGET_ITEM,
|
6049 | payload: newItem
|
6050 | });
|
6051 | };
|
6052 | const handleDeleteClick = (event) => {
|
6053 | event.stopPropagation();
|
6054 | const generateNewWidgetFormList = (list, key2) => {
|
6055 | const newList = cloneDeep$1(list);
|
6056 | for (let index2 = 0; index2 < newList.length; index2++) {
|
6057 | if (newList[index2].key === key2) {
|
6058 | newList.splice(index2, 1);
|
6059 | break;
|
6060 | }
|
6061 | if (newList[index2].childNodes) {
|
6062 | newList[index2].childNodes = generateNewWidgetFormList(newList[index2].childNodes, key2);
|
6063 | }
|
6064 | }
|
6065 | return newList;
|
6066 | };
|
6067 | dispatch({
|
6068 | type: ActionType.SET_WIDGET_FORM_LIST,
|
6069 | payload: generateNewWidgetFormList(widgetFormList, key)
|
6070 | });
|
6071 | dispatch({
|
6072 | type: ActionType.SET_SELECT_WIDGET_ITEM,
|
6073 | payload: void 0
|
6074 | });
|
6075 | };
|
6076 | useEffect(() => {
|
6077 | if (remoteConfig == null ? void 0 : remoteConfig.remote) {
|
6078 | if (remoteConfig.remote && remoteConfig.remoteFunc) {
|
6079 | fetch(remoteConfig.remoteFunc).then((resp) => resp.json()).then((json) => {
|
6080 | if (json instanceof Array) {
|
6081 | remoteConfig.remoteOptions = handleResponseData(json, remoteConfig);
|
6082 | forceUpdate();
|
6083 | }
|
6084 | });
|
6085 | }
|
6086 | }
|
6087 | }, [remoteConfig == null ? void 0 : remoteConfig.remote, remoteConfig == null ? void 0 : remoteConfig.remoteFunc, remoteConfig == null ? void 0 : remoteConfig.remoteProps.label, remoteConfig == null ? void 0 : remoteConfig.remoteProps.value]);
|
6088 | useEffect(() => formInstance.resetFields([key]), [(_a = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _a.initialValue]);
|
6089 | const render3 = () => {
|
6090 | if (["Row", "Col", "Space"].includes(type)) {
|
6091 | return React__default.createElement("span", {
|
6092 | className: `${hidden ? "hidden" : ""}`,
|
6093 | style: { display: "contents" },
|
6094 | onClick: (event) => handleItemClick(event)
|
6095 | }, type === "Row" && React__default.createElement(Row$1, __spreadProps(__spreadValues({}, commonProps), {
|
6096 | ref: sortableGroupDecorator
|
6097 | }), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(WidgetFormItem, {
|
6098 | key: widgetFormItem.key,
|
6099 | item: widgetFormItem,
|
6100 | formInstance
|
6101 | })), renderActionIcon()), type === "Col" && React__default.createElement(Col$1, __spreadProps(__spreadValues({}, commonProps), {
|
6102 | ref: sortableGroupDecorator
|
6103 | }), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(WidgetFormItem, {
|
6104 | key: widgetFormItem.key,
|
6105 | item: widgetFormItem,
|
6106 | formInstance
|
6107 | })), renderActionIcon()), type === "Space" && React__default.createElement("div", {
|
6108 | className,
|
6109 | ref: sortableGroupDecorator
|
6110 | }, React__default.createElement(Space$1, __spreadValues({}, commonProps), childNodes == null ? void 0 : childNodes.map((widgetFormItem) => React__default.createElement(WidgetFormItem, {
|
6111 | key: widgetFormItem.key,
|
6112 | item: widgetFormItem,
|
6113 | formInstance
|
6114 | }))), renderActionIcon()));
|
6115 | }
|
6116 | return React__default.createElement("div", {
|
6117 | className: `${className} ${hidden ? "hidden" : ""}`,
|
6118 | onClick: (event) => handleItemClick(event)
|
6119 | }, type === "Button" && React__default.createElement(Button$1, __spreadValues({}, commonProps)), type === "Icon" && React__default.createElement(Icon$1, __spreadValues({}, commonProps)), type === "Text" && React__default.createElement(Typography$1.Text, __spreadValues({}, commonProps)), type === "Title" && React__default.createElement(Typography$1.Title, __spreadValues({}, commonProps)), type === "Paragraph" && React__default.createElement(Typography$1.Paragraph, __spreadValues({}, commonProps)), type === "Divider" && React__default.createElement(Divider$1, __spreadValues({}, commonProps)), type === "AutoComplete" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(AutoComplete$1, __spreadProps(__spreadValues({}, commonProps), {
|
6120 | options: (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options
|
6121 | }))), type === "Cascader" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Cascader$1, __spreadProps(__spreadValues({}, commonProps), {
|
6122 | options: remoteConfig == null ? void 0 : remoteConfig.remoteOptions
|
6123 | }))), type === "Checkbox" && React__default.createElement(Form.Item, __spreadProps(__spreadValues({}, commonFormItemProps), {
|
6124 | valuePropName: "checked"
|
6125 | }), React__default.createElement(Checkbox$1, __spreadValues({}, commonProps))), type === "CheckboxGroup" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Checkbox$1.Group, __spreadProps(__spreadValues({}, commonProps), {
|
6126 | options: (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options
|
6127 | }))), type === "DatePicker" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(DatePicker$1, __spreadValues({}, commonProps))), type === "RangePicker" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(DatePicker$1.RangePicker, __spreadValues({}, commonProps))), type === "Input" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Input$1, __spreadValues({}, commonProps))), type === "TextArea" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Input$1.TextArea, __spreadValues({}, commonProps))), type === "Search" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Input$1.Search, __spreadValues({}, commonProps))), type === "Password" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Input$1.Password, __spreadValues({}, commonProps))), type === "InputNumber" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(InputNumber$1, __spreadValues({}, commonProps))), type === "Mentions" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Mentions$1, __spreadValues({}, commonProps), createMentionsOptions(item))), type === "RadioGroup" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Radio.Group, __spreadProps(__spreadValues({}, commonProps), {
|
6128 | options: (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options
|
6129 | }))), type === "Rate" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Rate$1, __spreadValues({}, commonProps))), type === "Select" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Select$1, __spreadProps(__spreadValues({}, commonProps), {
|
6130 | options: (remoteConfig == null ? void 0 : remoteConfig.remote) ? remoteConfig.remoteOptions : config == null ? void 0 : config.options
|
6131 | }))), type === "Slider" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(Slider$2, __spreadValues({}, commonProps))), type === "Switch" && React__default.createElement(Form.Item, __spreadProps(__spreadValues({}, commonFormItemProps), {
|
6132 | valuePropName: "checked"
|
6133 | }), React__default.createElement(Switch$1, __spreadValues({}, commonProps))), type === "TimePicker" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(TimePicker$1, __spreadValues({}, commonProps))), type === "TreeSelect" && React__default.createElement(Form.Item, __spreadValues({}, commonFormItemProps), React__default.createElement(TreeSelect$1, __spreadProps(__spreadValues({}, commonProps), {
|
6134 | treeData: remoteConfig == null ? void 0 : remoteConfig.remoteOptions
|
6135 | }))), type === "Upload" && React__default.createElement(Form.Item, __spreadProps(__spreadValues({}, commonFormItemProps), {
|
6136 | valuePropName: "fileList",
|
6137 | getValueFromEvent: (args) => {
|
6138 | if (Array.isArray(args)) {
|
6139 | return args;
|
6140 | }
|
6141 | return args && args.fileList;
|
6142 | }
|
6143 | }), (config == null ? void 0 : config.drop) ? React__default.createElement(Upload$1.Dragger, __spreadValues({}, commonProps), React__default.createElement("p", {
|
6144 | className: "ant-upload-drag-icon"
|
6145 | }, React__default.createElement(InboxOutlined$1, null)), React__default.createElement("p", {
|
6146 | className: "ant-upload-text"
|
6147 | }, "\u5355\u51FB\u6216\u62D6\u52A8\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), React__default.createElement("p", {
|
6148 | className: "ant-upload-hint"
|
6149 | }, "\u652F\u6301\u5355\u4E2A\u6216\u6279\u91CF\u4E0A\u4F20")) : React__default.createElement(Upload$1, __spreadValues({}, commonProps), commonProps.listType === "picture-card" ? "\u70B9\u51FB\u4E0A\u4F20" : React__default.createElement(Button$1, {
|
6150 | icon: React__default.createElement(UploadOutlined$1, null)
|
6151 | }, "\u70B9\u51FB\u4E0A\u4F20"))), type === "Calendar" && React__default.createElement(Calendar$1, __spreadProps(__spreadValues({}, commonProps), {
|
6152 | value: commonProps.defaultValue
|
6153 | })), type === "Image" && React__default.createElement(Image$1, __spreadValues({}, commonProps)), type === "Table" && React__default.createElement(Table$1, __spreadValues({}, commonProps)), type === "Tree" && React__default.createElement(Tree$1, __spreadValues({}, commonProps)), type === "Alert" && React__default.createElement(Alert$1, __spreadValues({}, commonProps)), renderActionIcon());
|
6154 | };
|
6155 | const renderActionIcon = () => {
|
6156 | return React__default.createElement(React__default.Fragment, null, (selectWidgetItem == null ? void 0 : selectWidgetItem.key) === key && React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
6157 | className: "widget-view-drag"
|
6158 | }, React__default.createElement(SvgIcon, {
|
6159 | name: "Move",
|
6160 | className: "drag-widget"
|
6161 | })), React__default.createElement("div", {
|
6162 | className: "widget-view-action"
|
6163 | }, React__default.createElement(SvgIcon, {
|
6164 | name: "Copy",
|
6165 | onClick: handleCopyClick
|
6166 | }), React__default.createElement(SvgIcon, {
|
6167 | name: "Delete",
|
6168 | onClick: handleDeleteClick
|
6169 | }))));
|
6170 | };
|
6171 | return render3();
|
6172 | };
|
6173 | var WidgetFormItem$1 = memo(WidgetFormItem);
|
6174 | const WidgetForm = (props) => {
|
6175 | const { formInstance } = props;
|
6176 | const { state, dispatch } = useContext(DesignContext);
|
6177 | const widgetFormListRef = useRef(state.widgetFormList);
|
6178 | const selectWidgetItemRef = useRef(state.selectWidgetItem);
|
6179 | useEffect(() => {
|
6180 | widgetFormListRef.current = state.widgetFormList;
|
6181 | }, [state.widgetFormList]);
|
6182 | useEffect(() => {
|
6183 | selectWidgetItemRef.current = state.selectWidgetItem;
|
6184 | }, [state.selectWidgetItem]);
|
6185 | const sortableGroupDecorator = (instance) => {
|
6186 | if (instance) {
|
6187 | const options = {
|
6188 | ghostClass: "ghost",
|
6189 | handle: ".drag-widget",
|
6190 | animation: 500,
|
6191 | group: {
|
6192 | name: "people"
|
6193 | },
|
6194 | setData: (dataTransfer) => {
|
6195 | var _a;
|
6196 | dataTransfer.setData("SortableDataMove", (_a = selectWidgetItemRef.current) == null ? void 0 : _a.key);
|
6197 | },
|
6198 | onAdd: (event) => {
|
6199 | const { newIndex: newIndex2 } = event;
|
6200 | const key = v4().replaceAll("-", "");
|
6201 | const widgetFormList = cloneDeep$1(state.widgetFormList);
|
6202 | const SortableDataClone = event.originalEvent.dataTransfer.getData("SortableDataClone");
|
6203 | const SortableDataMove = event.originalEvent.dataTransfer.getData("SortableDataMove");
|
6204 | removeDomNode(".widget-form-list>.form-edit-widget-label");
|
6205 | if (SortableDataMove) {
|
6206 | const itemEl = event.item;
|
6207 | const origParent = event.from;
|
6208 | origParent.appendChild(itemEl);
|
6209 | let newSelectWidgetItem;
|
6210 | const generateNewWidgetFormList = (list, key2) => {
|
6211 | const newList = cloneDeep$1(list);
|
6212 | for (let index2 = 0; index2 < newList.length; index2++) {
|
6213 | if (newList[index2].key === key2) {
|
6214 | newSelectWidgetItem = newList.splice(index2, 1).at(0);
|
6215 | break;
|
6216 | }
|
6217 | if (newList[index2].childNodes) {
|
6218 | newList[index2].childNodes = generateNewWidgetFormList(newList[index2].childNodes, key2);
|
6219 | }
|
6220 | }
|
6221 | return newList;
|
6222 | };
|
6223 | const selectWidgetItemKey = SortableDataMove;
|
6224 | const newWidgetFormList = generateNewWidgetFormList(widgetFormList, selectWidgetItemKey);
|
6225 | newWidgetFormList.splice(newIndex2, 0, newSelectWidgetItem);
|
6226 | dispatch({
|
6227 | type: ActionType.SET_WIDGET_FORM_LIST,
|
6228 | payload: newWidgetFormList
|
6229 | });
|
6230 | }
|
6231 | if (SortableDataClone) {
|
6232 | const widgetFormItem = JSON.parse(SortableDataClone);
|
6233 | const newItem = __spreadProps(__spreadValues({}, widgetFormItem), {
|
6234 | key: `${widgetFormItem.type}_${key}`
|
6235 | });
|
6236 | widgetFormList.splice(newIndex2, 0, newItem);
|
6237 | dispatch({
|
6238 | type: ActionType.SET_WIDGET_FORM_LIST,
|
6239 | payload: widgetFormList
|
6240 | });
|
6241 | dispatch({
|
6242 | type: ActionType.SET_SELECT_WIDGET_ITEM,
|
6243 | payload: newItem
|
6244 | });
|
6245 | }
|
6246 | },
|
6247 | onUpdate: (event) => {
|
6248 | const { newIndex: newIndex2, oldIndex: oldIndex2 } = event;
|
6249 | const widgetFormList = cloneDeep$1(widgetFormListRef.current);
|
6250 | widgetFormList.splice(newIndex2, 1, ...widgetFormList.splice(oldIndex2, 1, widgetFormList[newIndex2]));
|
6251 | dispatch({
|
6252 | type: ActionType.SET_WIDGET_FORM_LIST,
|
6253 | payload: widgetFormList
|
6254 | });
|
6255 | }
|
6256 | };
|
6257 | Sortable.create(instance, options);
|
6258 | }
|
6259 | };
|
6260 | return React__default.createElement("div", {
|
6261 | className: "widget-form-container"
|
6262 | }, !state.widgetFormList.length && React__default.createElement("div", {
|
6263 | className: "form-empty"
|
6264 | }, "\u4ECE\u5DE6\u4FA7\u62D6\u62FD\u6765\u6DFB\u52A0\u5B57\u6BB5"), React__default.createElement(ConfigProvider, __spreadValues({}, state.globalConfig), useMemo(() => React__default.createElement(Form, __spreadProps(__spreadValues({}, state.formConfig), {
|
6265 | form: formInstance
|
6266 | }), React__default.createElement("div", {
|
6267 | ref: sortableGroupDecorator,
|
6268 | className: "widget-form-list"
|
6269 | }, state.widgetFormList.map((widgetFormItem) => React__default.createElement(WidgetFormItem$1, {
|
6270 | key: widgetFormItem.key,
|
6271 | item: widgetFormItem,
|
6272 | formInstance
|
6273 | })))), [state.formConfig, state.widgetFormList, state.globalClass, state.globalState])));
|
6274 | };
|
6275 | var moment = { exports: {} };
|
6276 | (function(module2, exports2) {
|
6277 | (function(global2, factory) {
|
6278 | module2.exports = factory();
|
6279 | })(commonjsGlobal, function() {
|
6280 | var hookCallback;
|
6281 | function hooks() {
|
6282 | return hookCallback.apply(null, arguments);
|
6283 | }
|
6284 | function setHookCallback(callback) {
|
6285 | hookCallback = callback;
|
6286 | }
|
6287 | function isArray2(input) {
|
6288 | return input instanceof Array || Object.prototype.toString.call(input) === "[object Array]";
|
6289 | }
|
6290 | function isObject2(input) {
|
6291 | return input != null && Object.prototype.toString.call(input) === "[object Object]";
|
6292 | }
|
6293 | function hasOwnProp(a, b) {
|
6294 | return Object.prototype.hasOwnProperty.call(a, b);
|
6295 | }
|
6296 | function isObjectEmpty(obj) {
|
6297 | if (Object.getOwnPropertyNames) {
|
6298 | return Object.getOwnPropertyNames(obj).length === 0;
|
6299 | } else {
|
6300 | var k;
|
6301 | for (k in obj) {
|
6302 | if (hasOwnProp(obj, k)) {
|
6303 | return false;
|
6304 | }
|
6305 | }
|
6306 | return true;
|
6307 | }
|
6308 | }
|
6309 | function isUndefined2(input) {
|
6310 | return input === void 0;
|
6311 | }
|
6312 | function isNumber(input) {
|
6313 | return typeof input === "number" || Object.prototype.toString.call(input) === "[object Number]";
|
6314 | }
|
6315 | function isDate(input) {
|
6316 | return input instanceof Date || Object.prototype.toString.call(input) === "[object Date]";
|
6317 | }
|
6318 | function map2(arr, fn) {
|
6319 | var res = [], i;
|
6320 | for (i = 0; i < arr.length; ++i) {
|
6321 | res.push(fn(arr[i], i));
|
6322 | }
|
6323 | return res;
|
6324 | }
|
6325 | function extend3(a, b) {
|
6326 | for (var i in b) {
|
6327 | if (hasOwnProp(b, i)) {
|
6328 | a[i] = b[i];
|
6329 | }
|
6330 | }
|
6331 | if (hasOwnProp(b, "toString")) {
|
6332 | a.toString = b.toString;
|
6333 | }
|
6334 | if (hasOwnProp(b, "valueOf")) {
|
6335 | a.valueOf = b.valueOf;
|
6336 | }
|
6337 | return a;
|
6338 | }
|
6339 | function createUTC(input, format2, locale3, strict) {
|
6340 | return createLocalOrUTC(input, format2, locale3, strict, true).utc();
|
6341 | }
|
6342 | function defaultParsingFlags() {
|
6343 | return {
|
6344 | empty: false,
|
6345 | unusedTokens: [],
|
6346 | unusedInput: [],
|
6347 | overflow: -2,
|
6348 | charsLeftOver: 0,
|
6349 | nullInput: false,
|
6350 | invalidEra: null,
|
6351 | invalidMonth: null,
|
6352 | invalidFormat: false,
|
6353 | userInvalidated: false,
|
6354 | iso: false,
|
6355 | parsedDateParts: [],
|
6356 | era: null,
|
6357 | meridiem: null,
|
6358 | rfc2822: false,
|
6359 | weekdayMismatch: false
|
6360 | };
|
6361 | }
|
6362 | function getParsingFlags(m) {
|
6363 | if (m._pf == null) {
|
6364 | m._pf = defaultParsingFlags();
|
6365 | }
|
6366 | return m._pf;
|
6367 | }
|
6368 | var some;
|
6369 | if (Array.prototype.some) {
|
6370 | some = Array.prototype.some;
|
6371 | } else {
|
6372 | some = function(fun) {
|
6373 | var t = Object(this), len = t.length >>> 0, i;
|
6374 | for (i = 0; i < len; i++) {
|
6375 | if (i in t && fun.call(this, t[i], i, t)) {
|
6376 | return true;
|
6377 | }
|
6378 | }
|
6379 | return false;
|
6380 | };
|
6381 | }
|
6382 | function isValid(m) {
|
6383 | if (m._isValid == null) {
|
6384 | var flags = getParsingFlags(m), parsedParts = some.call(flags.parsedDateParts, function(i) {
|
6385 | return i != null;
|
6386 | }), isNowValid = !isNaN(m._d.getTime()) && flags.overflow < 0 && !flags.empty && !flags.invalidEra && !flags.invalidMonth && !flags.invalidWeekday && !flags.weekdayMismatch && !flags.nullInput && !flags.invalidFormat && !flags.userInvalidated && (!flags.meridiem || flags.meridiem && parsedParts);
|
6387 | if (m._strict) {
|
6388 | isNowValid = isNowValid && flags.charsLeftOver === 0 && flags.unusedTokens.length === 0 && flags.bigHour === void 0;
|
6389 | }
|
6390 | if (Object.isFrozen == null || !Object.isFrozen(m)) {
|
6391 | m._isValid = isNowValid;
|
6392 | } else {
|
6393 | return isNowValid;
|
6394 | }
|
6395 | }
|
6396 | return m._isValid;
|
6397 | }
|
6398 | function createInvalid(flags) {
|
6399 | var m = createUTC(NaN);
|
6400 | if (flags != null) {
|
6401 | extend3(getParsingFlags(m), flags);
|
6402 | } else {
|
6403 | getParsingFlags(m).userInvalidated = true;
|
6404 | }
|
6405 | return m;
|
6406 | }
|
6407 | var momentProperties = hooks.momentProperties = [], updateInProgress = false;
|
6408 | function copyConfig(to2, from2) {
|
6409 | var i, prop, val;
|
6410 | if (!isUndefined2(from2._isAMomentObject)) {
|
6411 | to2._isAMomentObject = from2._isAMomentObject;
|
6412 | }
|
6413 | if (!isUndefined2(from2._i)) {
|
6414 | to2._i = from2._i;
|
6415 | }
|
6416 | if (!isUndefined2(from2._f)) {
|
6417 | to2._f = from2._f;
|
6418 | }
|
6419 | if (!isUndefined2(from2._l)) {
|
6420 | to2._l = from2._l;
|
6421 | }
|
6422 | if (!isUndefined2(from2._strict)) {
|
6423 | to2._strict = from2._strict;
|
6424 | }
|
6425 | if (!isUndefined2(from2._tzm)) {
|
6426 | to2._tzm = from2._tzm;
|
6427 | }
|
6428 | if (!isUndefined2(from2._isUTC)) {
|
6429 | to2._isUTC = from2._isUTC;
|
6430 | }
|
6431 | if (!isUndefined2(from2._offset)) {
|
6432 | to2._offset = from2._offset;
|
6433 | }
|
6434 | if (!isUndefined2(from2._pf)) {
|
6435 | to2._pf = getParsingFlags(from2);
|
6436 | }
|
6437 | if (!isUndefined2(from2._locale)) {
|
6438 | to2._locale = from2._locale;
|
6439 | }
|
6440 | if (momentProperties.length > 0) {
|
6441 | for (i = 0; i < momentProperties.length; i++) {
|
6442 | prop = momentProperties[i];
|
6443 | val = from2[prop];
|
6444 | if (!isUndefined2(val)) {
|
6445 | to2[prop] = val;
|
6446 | }
|
6447 | }
|
6448 | }
|
6449 | return to2;
|
6450 | }
|
6451 | function Moment(config) {
|
6452 | copyConfig(this, config);
|
6453 | this._d = new Date(config._d != null ? config._d.getTime() : NaN);
|
6454 | if (!this.isValid()) {
|
6455 | this._d = new Date(NaN);
|
6456 | }
|
6457 | if (updateInProgress === false) {
|
6458 | updateInProgress = true;
|
6459 | hooks.updateOffset(this);
|
6460 | updateInProgress = false;
|
6461 | }
|
6462 | }
|
6463 | function isMoment(obj) {
|
6464 | return obj instanceof Moment || obj != null && obj._isAMomentObject != null;
|
6465 | }
|
6466 | function warn(msg) {
|
6467 | if (hooks.suppressDeprecationWarnings === false && typeof console !== "undefined" && console.warn) {
|
6468 | console.warn("Deprecation warning: " + msg);
|
6469 | }
|
6470 | }
|
6471 | function deprecate(msg, fn) {
|
6472 | var firstTime = true;
|
6473 | return extend3(function() {
|
6474 | if (hooks.deprecationHandler != null) {
|
6475 | hooks.deprecationHandler(null, msg);
|
6476 | }
|
6477 | if (firstTime) {
|
6478 | var args = [], arg, i, key;
|
6479 | for (i = 0; i < arguments.length; i++) {
|
6480 | arg = "";
|
6481 | if (typeof arguments[i] === "object") {
|
6482 | arg += "\n[" + i + "] ";
|
6483 | for (key in arguments[0]) {
|
6484 | if (hasOwnProp(arguments[0], key)) {
|
6485 | arg += key + ": " + arguments[0][key] + ", ";
|
6486 | }
|
6487 | }
|
6488 | arg = arg.slice(0, -2);
|
6489 | } else {
|
6490 | arg = arguments[i];
|
6491 | }
|
6492 | args.push(arg);
|
6493 | }
|
6494 | warn(msg + "\nArguments: " + Array.prototype.slice.call(args).join("") + "\n" + new Error().stack);
|
6495 | firstTime = false;
|
6496 | }
|
6497 | return fn.apply(this, arguments);
|
6498 | }, fn);
|
6499 | }
|
6500 | var deprecations = {};
|
6501 | function deprecateSimple(name, msg) {
|
6502 | if (hooks.deprecationHandler != null) {
|
6503 | hooks.deprecationHandler(name, msg);
|
6504 | }
|
6505 | if (!deprecations[name]) {
|
6506 | warn(msg);
|
6507 | deprecations[name] = true;
|
6508 | }
|
6509 | }
|
6510 | hooks.suppressDeprecationWarnings = false;
|
6511 | hooks.deprecationHandler = null;
|
6512 | function isFunction2(input) {
|
6513 | return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
|
6514 | }
|
6515 | function set(config) {
|
6516 | var prop, i;
|
6517 | for (i in config) {
|
6518 | if (hasOwnProp(config, i)) {
|
6519 | prop = config[i];
|
6520 | if (isFunction2(prop)) {
|
6521 | this[i] = prop;
|
6522 | } else {
|
6523 | this["_" + i] = prop;
|
6524 | }
|
6525 | }
|
6526 | }
|
6527 | this._config = config;
|
6528 | this._dayOfMonthOrdinalParseLenient = new RegExp((this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) + "|" + /\d{1,2}/.source);
|
6529 | }
|
6530 | function mergeConfigs(parentConfig, childConfig) {
|
6531 | var res = extend3({}, parentConfig), prop;
|
6532 | for (prop in childConfig) {
|
6533 | if (hasOwnProp(childConfig, prop)) {
|
6534 | if (isObject2(parentConfig[prop]) && isObject2(childConfig[prop])) {
|
6535 | res[prop] = {};
|
6536 | extend3(res[prop], parentConfig[prop]);
|
6537 | extend3(res[prop], childConfig[prop]);
|
6538 | } else if (childConfig[prop] != null) {
|
6539 | res[prop] = childConfig[prop];
|
6540 | } else {
|
6541 | delete res[prop];
|
6542 | }
|
6543 | }
|
6544 | }
|
6545 | for (prop in parentConfig) {
|
6546 | if (hasOwnProp(parentConfig, prop) && !hasOwnProp(childConfig, prop) && isObject2(parentConfig[prop])) {
|
6547 | res[prop] = extend3({}, res[prop]);
|
6548 | }
|
6549 | }
|
6550 | return res;
|
6551 | }
|
6552 | function Locale(config) {
|
6553 | if (config != null) {
|
6554 | this.set(config);
|
6555 | }
|
6556 | }
|
6557 | var keys2;
|
6558 | if (Object.keys) {
|
6559 | keys2 = Object.keys;
|
6560 | } else {
|
6561 | keys2 = function(obj) {
|
6562 | var i, res = [];
|
6563 | for (i in obj) {
|
6564 | if (hasOwnProp(obj, i)) {
|
6565 | res.push(i);
|
6566 | }
|
6567 | }
|
6568 | return res;
|
6569 | };
|
6570 | }
|
6571 | var defaultCalendar = {
|
6572 | sameDay: "[Today at] LT",
|
6573 | nextDay: "[Tomorrow at] LT",
|
6574 | nextWeek: "dddd [at] LT",
|
6575 | lastDay: "[Yesterday at] LT",
|
6576 | lastWeek: "[Last] dddd [at] LT",
|
6577 | sameElse: "L"
|
6578 | };
|
6579 | function calendar(key, mom, now3) {
|
6580 | var output = this._calendar[key] || this._calendar["sameElse"];
|
6581 | return isFunction2(output) ? output.call(mom, now3) : output;
|
6582 | }
|
6583 | function zeroFill(number, targetLength, forceSign) {
|
6584 | var absNumber = "" + Math.abs(number), zerosToFill = targetLength - absNumber.length, sign2 = number >= 0;
|
6585 | return (sign2 ? forceSign ? "+" : "" : "-") + Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) + absNumber;
|
6586 | }
|
6587 | var formattingTokens = /(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g, localFormattingTokens = /(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g, formatFunctions = {}, formatTokenFunctions = {};
|
6588 | function addFormatToken(token2, padded, ordinal2, callback) {
|
6589 | var func = callback;
|
6590 | if (typeof callback === "string") {
|
6591 | func = function() {
|
6592 | return this[callback]();
|
6593 | };
|
6594 | }
|
6595 | if (token2) {
|
6596 | formatTokenFunctions[token2] = func;
|
6597 | }
|
6598 | if (padded) {
|
6599 | formatTokenFunctions[padded[0]] = function() {
|
6600 | return zeroFill(func.apply(this, arguments), padded[1], padded[2]);
|
6601 | };
|
6602 | }
|
6603 | if (ordinal2) {
|
6604 | formatTokenFunctions[ordinal2] = function() {
|
6605 | return this.localeData().ordinal(func.apply(this, arguments), token2);
|
6606 | };
|
6607 | }
|
6608 | }
|
6609 | function removeFormattingTokens(input) {
|
6610 | if (input.match(/\[[\s\S]/)) {
|
6611 | return input.replace(/^\[|\]$/g, "");
|
6612 | }
|
6613 | return input.replace(/\\/g, "");
|
6614 | }
|
6615 | function makeFormatFunction(format2) {
|
6616 | var array = format2.match(formattingTokens), i, length;
|
6617 | for (i = 0, length = array.length; i < length; i++) {
|
6618 | if (formatTokenFunctions[array[i]]) {
|
6619 | array[i] = formatTokenFunctions[array[i]];
|
6620 | } else {
|
6621 | array[i] = removeFormattingTokens(array[i]);
|
6622 | }
|
6623 | }
|
6624 | return function(mom) {
|
6625 | var output = "", i2;
|
6626 | for (i2 = 0; i2 < length; i2++) {
|
6627 | output += isFunction2(array[i2]) ? array[i2].call(mom, format2) : array[i2];
|
6628 | }
|
6629 | return output;
|
6630 | };
|
6631 | }
|
6632 | function formatMoment(m, format2) {
|
6633 | if (!m.isValid()) {
|
6634 | return m.localeData().invalidDate();
|
6635 | }
|
6636 | format2 = expandFormat(format2, m.localeData());
|
6637 | formatFunctions[format2] = formatFunctions[format2] || makeFormatFunction(format2);
|
6638 | return formatFunctions[format2](m);
|
6639 | }
|
6640 | function expandFormat(format2, locale3) {
|
6641 | var i = 5;
|
6642 | function replaceLongDateFormatTokens(input) {
|
6643 | return locale3.longDateFormat(input) || input;
|
6644 | }
|
6645 | localFormattingTokens.lastIndex = 0;
|
6646 | while (i >= 0 && localFormattingTokens.test(format2)) {
|
6647 | format2 = format2.replace(localFormattingTokens, replaceLongDateFormatTokens);
|
6648 | localFormattingTokens.lastIndex = 0;
|
6649 | i -= 1;
|
6650 | }
|
6651 | return format2;
|
6652 | }
|
6653 | var defaultLongDateFormat = {
|
6654 | LTS: "h:mm:ss A",
|
6655 | LT: "h:mm A",
|
6656 | L: "MM/DD/YYYY",
|
6657 | LL: "MMMM D, YYYY",
|
6658 | LLL: "MMMM D, YYYY h:mm A",
|
6659 | LLLL: "dddd, MMMM D, YYYY h:mm A"
|
6660 | };
|
6661 | function longDateFormat(key) {
|
6662 | var format2 = this._longDateFormat[key], formatUpper = this._longDateFormat[key.toUpperCase()];
|
6663 | if (format2 || !formatUpper) {
|
6664 | return format2;
|
6665 | }
|
6666 | this._longDateFormat[key] = formatUpper.match(formattingTokens).map(function(tok) {
|
6667 | if (tok === "MMMM" || tok === "MM" || tok === "DD" || tok === "dddd") {
|
6668 | return tok.slice(1);
|
6669 | }
|
6670 | return tok;
|
6671 | }).join("");
|
6672 | return this._longDateFormat[key];
|
6673 | }
|
6674 | var defaultInvalidDate = "Invalid date";
|
6675 | function invalidDate() {
|
6676 | return this._invalidDate;
|
6677 | }
|
6678 | var defaultOrdinal = "%d", defaultDayOfMonthOrdinalParse = /\d{1,2}/;
|
6679 | function ordinal(number) {
|
6680 | return this._ordinal.replace("%d", number);
|
6681 | }
|
6682 | var defaultRelativeTime = {
|
6683 | future: "in %s",
|
6684 | past: "%s ago",
|
6685 | s: "a few seconds",
|
6686 | ss: "%d seconds",
|
6687 | m: "a minute",
|
6688 | mm: "%d minutes",
|
6689 | h: "an hour",
|
6690 | hh: "%d hours",
|
6691 | d: "a day",
|
6692 | dd: "%d days",
|
6693 | w: "a week",
|
6694 | ww: "%d weeks",
|
6695 | M: "a month",
|
6696 | MM: "%d months",
|
6697 | y: "a year",
|
6698 | yy: "%d years"
|
6699 | };
|
6700 | function relativeTime(number, withoutSuffix, string, isFuture) {
|
6701 | var output = this._relativeTime[string];
|
6702 | return isFunction2(output) ? output(number, withoutSuffix, string, isFuture) : output.replace(/%d/i, number);
|
6703 | }
|
6704 | function pastFuture(diff2, output) {
|
6705 | var format2 = this._relativeTime[diff2 > 0 ? "future" : "past"];
|
6706 | return isFunction2(format2) ? format2(output) : format2.replace(/%s/i, output);
|
6707 | }
|
6708 | var aliases = {};
|
6709 | function addUnitAlias(unit, shorthand) {
|
6710 | var lowerCase = unit.toLowerCase();
|
6711 | aliases[lowerCase] = aliases[lowerCase + "s"] = aliases[shorthand] = unit;
|
6712 | }
|
6713 | function normalizeUnits(units) {
|
6714 | return typeof units === "string" ? aliases[units] || aliases[units.toLowerCase()] : void 0;
|
6715 | }
|
6716 | function normalizeObjectUnits(inputObject) {
|
6717 | var normalizedInput = {}, normalizedProp, prop;
|
6718 | for (prop in inputObject) {
|
6719 | if (hasOwnProp(inputObject, prop)) {
|
6720 | normalizedProp = normalizeUnits(prop);
|
6721 | if (normalizedProp) {
|
6722 | normalizedInput[normalizedProp] = inputObject[prop];
|
6723 | }
|
6724 | }
|
6725 | }
|
6726 | return normalizedInput;
|
6727 | }
|
6728 | var priorities = {};
|
6729 | function addUnitPriority(unit, priority) {
|
6730 | priorities[unit] = priority;
|
6731 | }
|
6732 | function getPrioritizedUnits(unitsObj) {
|
6733 | var units = [], u;
|
6734 | for (u in unitsObj) {
|
6735 | if (hasOwnProp(unitsObj, u)) {
|
6736 | units.push({ unit: u, priority: priorities[u] });
|
6737 | }
|
6738 | }
|
6739 | units.sort(function(a, b) {
|
6740 | return a.priority - b.priority;
|
6741 | });
|
6742 | return units;
|
6743 | }
|
6744 | function isLeapYear(year) {
|
6745 | return year % 4 === 0 && year % 100 !== 0 || year % 400 === 0;
|
6746 | }
|
6747 | function absFloor(number) {
|
6748 | if (number < 0) {
|
6749 | return Math.ceil(number) || 0;
|
6750 | } else {
|
6751 | return Math.floor(number);
|
6752 | }
|
6753 | }
|
6754 | function toInt(argumentForCoercion) {
|
6755 | var coercedNumber = +argumentForCoercion, value = 0;
|
6756 | if (coercedNumber !== 0 && isFinite(coercedNumber)) {
|
6757 | value = absFloor(coercedNumber);
|
6758 | }
|
6759 | return value;
|
6760 | }
|
6761 | function makeGetSet(unit, keepTime) {
|
6762 | return function(value) {
|
6763 | if (value != null) {
|
6764 | set$1(this, unit, value);
|
6765 | hooks.updateOffset(this, keepTime);
|
6766 | return this;
|
6767 | } else {
|
6768 | return get3(this, unit);
|
6769 | }
|
6770 | };
|
6771 | }
|
6772 | function get3(mom, unit) {
|
6773 | return mom.isValid() ? mom._d["get" + (mom._isUTC ? "UTC" : "") + unit]() : NaN;
|
6774 | }
|
6775 | function set$1(mom, unit, value) {
|
6776 | if (mom.isValid() && !isNaN(value)) {
|
6777 | if (unit === "FullYear" && isLeapYear(mom.year()) && mom.month() === 1 && mom.date() === 29) {
|
6778 | value = toInt(value);
|
6779 | mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](value, mom.month(), daysInMonth(value, mom.month()));
|
6780 | } else {
|
6781 | mom._d["set" + (mom._isUTC ? "UTC" : "") + unit](value);
|
6782 | }
|
6783 | }
|
6784 | }
|
6785 | function stringGet(units) {
|
6786 | units = normalizeUnits(units);
|
6787 | if (isFunction2(this[units])) {
|
6788 | return this[units]();
|
6789 | }
|
6790 | return this;
|
6791 | }
|
6792 | function stringSet(units, value) {
|
6793 | if (typeof units === "object") {
|
6794 | units = normalizeObjectUnits(units);
|
6795 | var prioritized = getPrioritizedUnits(units), i;
|
6796 | for (i = 0; i < prioritized.length; i++) {
|
6797 | this[prioritized[i].unit](units[prioritized[i].unit]);
|
6798 | }
|
6799 | } else {
|
6800 | units = normalizeUnits(units);
|
6801 | if (isFunction2(this[units])) {
|
6802 | return this[units](value);
|
6803 | }
|
6804 | }
|
6805 | return this;
|
6806 | }
|
6807 | var match1 = /\d/, match2 = /\d\d/, match3 = /\d{3}/, match4 = /\d{4}/, match6 = /[+-]?\d{6}/, match1to2 = /\d\d?/, match3to4 = /\d\d\d\d?/, match5to6 = /\d\d\d\d\d\d?/, match1to3 = /\d{1,3}/, match1to4 = /\d{1,4}/, match1to6 = /[+-]?\d{1,6}/, matchUnsigned = /\d+/, matchSigned = /[+-]?\d+/, matchOffset = /Z|[+-]\d\d:?\d\d/gi, matchShortOffset = /Z|[+-]\d\d(?::?\d\d)?/gi, matchTimestamp = /[+-]?\d+(\.\d{1,3})?/, matchWord = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, regexes;
|
6808 | regexes = {};
|
6809 | function addRegexToken(token2, regex, strictRegex) {
|
6810 | regexes[token2] = isFunction2(regex) ? regex : function(isStrict, localeData2) {
|
6811 | return isStrict && strictRegex ? strictRegex : regex;
|
6812 | };
|
6813 | }
|
6814 | function getParseRegexForToken(token2, config) {
|
6815 | if (!hasOwnProp(regexes, token2)) {
|
6816 | return new RegExp(unescapeFormat(token2));
|
6817 | }
|
6818 | return regexes[token2](config._strict, config._locale);
|
6819 | }
|
6820 | function unescapeFormat(s) {
|
6821 | return regexEscape(s.replace("\\", "").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g, function(matched, p1, p2, p3, p4) {
|
6822 | return p1 || p2 || p3 || p4;
|
6823 | }));
|
6824 | }
|
6825 | function regexEscape(s) {
|
6826 | return s.replace(/[-\/\\^$*+?.()|[\]{}]/g, "\\$&");
|
6827 | }
|
6828 | var tokens = {};
|
6829 | function addParseToken(token2, callback) {
|
6830 | var i, func = callback;
|
6831 | if (typeof token2 === "string") {
|
6832 | token2 = [token2];
|
6833 | }
|
6834 | if (isNumber(callback)) {
|
6835 | func = function(input, array) {
|
6836 | array[callback] = toInt(input);
|
6837 | };
|
6838 | }
|
6839 | for (i = 0; i < token2.length; i++) {
|
6840 | tokens[token2[i]] = func;
|
6841 | }
|
6842 | }
|
6843 | function addWeekParseToken(token2, callback) {
|
6844 | addParseToken(token2, function(input, array, config, token3) {
|
6845 | config._w = config._w || {};
|
6846 | callback(input, config._w, config, token3);
|
6847 | });
|
6848 | }
|
6849 | function addTimeToArrayFromToken(token2, input, config) {
|
6850 | if (input != null && hasOwnProp(tokens, token2)) {
|
6851 | tokens[token2](input, config._a, config, token2);
|
6852 | }
|
6853 | }
|
6854 | var YEAR = 0, MONTH = 1, DATE = 2, HOUR = 3, MINUTE = 4, SECOND = 5, MILLISECOND = 6, WEEK = 7, WEEKDAY = 8;
|
6855 | function mod(n, x) {
|
6856 | return (n % x + x) % x;
|
6857 | }
|
6858 | var indexOf;
|
6859 | if (Array.prototype.indexOf) {
|
6860 | indexOf = Array.prototype.indexOf;
|
6861 | } else {
|
6862 | indexOf = function(o) {
|
6863 | var i;
|
6864 | for (i = 0; i < this.length; ++i) {
|
6865 | if (this[i] === o) {
|
6866 | return i;
|
6867 | }
|
6868 | }
|
6869 | return -1;
|
6870 | };
|
6871 | }
|
6872 | function daysInMonth(year, month) {
|
6873 | if (isNaN(year) || isNaN(month)) {
|
6874 | return NaN;
|
6875 | }
|
6876 | var modMonth = mod(month, 12);
|
6877 | year += (month - modMonth) / 12;
|
6878 | return modMonth === 1 ? isLeapYear(year) ? 29 : 28 : 31 - modMonth % 7 % 2;
|
6879 | }
|
6880 | addFormatToken("M", ["MM", 2], "Mo", function() {
|
6881 | return this.month() + 1;
|
6882 | });
|
6883 | addFormatToken("MMM", 0, 0, function(format2) {
|
6884 | return this.localeData().monthsShort(this, format2);
|
6885 | });
|
6886 | addFormatToken("MMMM", 0, 0, function(format2) {
|
6887 | return this.localeData().months(this, format2);
|
6888 | });
|
6889 | addUnitAlias("month", "M");
|
6890 | addUnitPriority("month", 8);
|
6891 | addRegexToken("M", match1to2);
|
6892 | addRegexToken("MM", match1to2, match2);
|
6893 | addRegexToken("MMM", function(isStrict, locale3) {
|
6894 | return locale3.monthsShortRegex(isStrict);
|
6895 | });
|
6896 | addRegexToken("MMMM", function(isStrict, locale3) {
|
6897 | return locale3.monthsRegex(isStrict);
|
6898 | });
|
6899 | addParseToken(["M", "MM"], function(input, array) {
|
6900 | array[MONTH] = toInt(input) - 1;
|
6901 | });
|
6902 | addParseToken(["MMM", "MMMM"], function(input, array, config, token2) {
|
6903 | var month = config._locale.monthsParse(input, token2, config._strict);
|
6904 | if (month != null) {
|
6905 | array[MONTH] = month;
|
6906 | } else {
|
6907 | getParsingFlags(config).invalidMonth = input;
|
6908 | }
|
6909 | });
|
6910 | var defaultLocaleMonths = "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), defaultLocaleMonthsShort = "Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"), MONTHS_IN_FORMAT = /D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/, defaultMonthsShortRegex = matchWord, defaultMonthsRegex = matchWord;
|
6911 | function localeMonths(m, format2) {
|
6912 | if (!m) {
|
6913 | return isArray2(this._months) ? this._months : this._months["standalone"];
|
6914 | }
|
6915 | return isArray2(this._months) ? this._months[m.month()] : this._months[(this._months.isFormat || MONTHS_IN_FORMAT).test(format2) ? "format" : "standalone"][m.month()];
|
6916 | }
|
6917 | function localeMonthsShort(m, format2) {
|
6918 | if (!m) {
|
6919 | return isArray2(this._monthsShort) ? this._monthsShort : this._monthsShort["standalone"];
|
6920 | }
|
6921 | return isArray2(this._monthsShort) ? this._monthsShort[m.month()] : this._monthsShort[MONTHS_IN_FORMAT.test(format2) ? "format" : "standalone"][m.month()];
|
6922 | }
|
6923 | function handleStrictParse(monthName, format2, strict) {
|
6924 | var i, ii, mom, llc = monthName.toLocaleLowerCase();
|
6925 | if (!this._monthsParse) {
|
6926 | this._monthsParse = [];
|
6927 | this._longMonthsParse = [];
|
6928 | this._shortMonthsParse = [];
|
6929 | for (i = 0; i < 12; ++i) {
|
6930 | mom = createUTC([2e3, i]);
|
6931 | this._shortMonthsParse[i] = this.monthsShort(mom, "").toLocaleLowerCase();
|
6932 | this._longMonthsParse[i] = this.months(mom, "").toLocaleLowerCase();
|
6933 | }
|
6934 | }
|
6935 | if (strict) {
|
6936 | if (format2 === "MMM") {
|
6937 | ii = indexOf.call(this._shortMonthsParse, llc);
|
6938 | return ii !== -1 ? ii : null;
|
6939 | } else {
|
6940 | ii = indexOf.call(this._longMonthsParse, llc);
|
6941 | return ii !== -1 ? ii : null;
|
6942 | }
|
6943 | } else {
|
6944 | if (format2 === "MMM") {
|
6945 | ii = indexOf.call(this._shortMonthsParse, llc);
|
6946 | if (ii !== -1) {
|
6947 | return ii;
|
6948 | }
|
6949 | ii = indexOf.call(this._longMonthsParse, llc);
|
6950 | return ii !== -1 ? ii : null;
|
6951 | } else {
|
6952 | ii = indexOf.call(this._longMonthsParse, llc);
|
6953 | if (ii !== -1) {
|
6954 | return ii;
|
6955 | }
|
6956 | ii = indexOf.call(this._shortMonthsParse, llc);
|
6957 | return ii !== -1 ? ii : null;
|
6958 | }
|
6959 | }
|
6960 | }
|
6961 | function localeMonthsParse(monthName, format2, strict) {
|
6962 | var i, mom, regex;
|
6963 | if (this._monthsParseExact) {
|
6964 | return handleStrictParse.call(this, monthName, format2, strict);
|
6965 | }
|
6966 | if (!this._monthsParse) {
|
6967 | this._monthsParse = [];
|
6968 | this._longMonthsParse = [];
|
6969 | this._shortMonthsParse = [];
|
6970 | }
|
6971 | for (i = 0; i < 12; i++) {
|
6972 | mom = createUTC([2e3, i]);
|
6973 | if (strict && !this._longMonthsParse[i]) {
|
6974 | this._longMonthsParse[i] = new RegExp("^" + this.months(mom, "").replace(".", "") + "$", "i");
|
6975 | this._shortMonthsParse[i] = new RegExp("^" + this.monthsShort(mom, "").replace(".", "") + "$", "i");
|
6976 | }
|
6977 | if (!strict && !this._monthsParse[i]) {
|
6978 | regex = "^" + this.months(mom, "") + "|^" + this.monthsShort(mom, "");
|
6979 | this._monthsParse[i] = new RegExp(regex.replace(".", ""), "i");
|
6980 | }
|
6981 | if (strict && format2 === "MMMM" && this._longMonthsParse[i].test(monthName)) {
|
6982 | return i;
|
6983 | } else if (strict && format2 === "MMM" && this._shortMonthsParse[i].test(monthName)) {
|
6984 | return i;
|
6985 | } else if (!strict && this._monthsParse[i].test(monthName)) {
|
6986 | return i;
|
6987 | }
|
6988 | }
|
6989 | }
|
6990 | function setMonth(mom, value) {
|
6991 | var dayOfMonth;
|
6992 | if (!mom.isValid()) {
|
6993 | return mom;
|
6994 | }
|
6995 | if (typeof value === "string") {
|
6996 | if (/^\d+$/.test(value)) {
|
6997 | value = toInt(value);
|
6998 | } else {
|
6999 | value = mom.localeData().monthsParse(value);
|
7000 | if (!isNumber(value)) {
|
7001 | return mom;
|
7002 | }
|
7003 | }
|
7004 | }
|
7005 | dayOfMonth = Math.min(mom.date(), daysInMonth(mom.year(), value));
|
7006 | mom._d["set" + (mom._isUTC ? "UTC" : "") + "Month"](value, dayOfMonth);
|
7007 | return mom;
|
7008 | }
|
7009 | function getSetMonth(value) {
|
7010 | if (value != null) {
|
7011 | setMonth(this, value);
|
7012 | hooks.updateOffset(this, true);
|
7013 | return this;
|
7014 | } else {
|
7015 | return get3(this, "Month");
|
7016 | }
|
7017 | }
|
7018 | function getDaysInMonth() {
|
7019 | return daysInMonth(this.year(), this.month());
|
7020 | }
|
7021 | function monthsShortRegex(isStrict) {
|
7022 | if (this._monthsParseExact) {
|
7023 | if (!hasOwnProp(this, "_monthsRegex")) {
|
7024 | computeMonthsParse.call(this);
|
7025 | }
|
7026 | if (isStrict) {
|
7027 | return this._monthsShortStrictRegex;
|
7028 | } else {
|
7029 | return this._monthsShortRegex;
|
7030 | }
|
7031 | } else {
|
7032 | if (!hasOwnProp(this, "_monthsShortRegex")) {
|
7033 | this._monthsShortRegex = defaultMonthsShortRegex;
|
7034 | }
|
7035 | return this._monthsShortStrictRegex && isStrict ? this._monthsShortStrictRegex : this._monthsShortRegex;
|
7036 | }
|
7037 | }
|
7038 | function monthsRegex(isStrict) {
|
7039 | if (this._monthsParseExact) {
|
7040 | if (!hasOwnProp(this, "_monthsRegex")) {
|
7041 | computeMonthsParse.call(this);
|
7042 | }
|
7043 | if (isStrict) {
|
7044 | return this._monthsStrictRegex;
|
7045 | } else {
|
7046 | return this._monthsRegex;
|
7047 | }
|
7048 | } else {
|
7049 | if (!hasOwnProp(this, "_monthsRegex")) {
|
7050 | this._monthsRegex = defaultMonthsRegex;
|
7051 | }
|
7052 | return this._monthsStrictRegex && isStrict ? this._monthsStrictRegex : this._monthsRegex;
|
7053 | }
|
7054 | }
|
7055 | function computeMonthsParse() {
|
7056 | function cmpLenRev(a, b) {
|
7057 | return b.length - a.length;
|
7058 | }
|
7059 | var shortPieces = [], longPieces = [], mixedPieces = [], i, mom;
|
7060 | for (i = 0; i < 12; i++) {
|
7061 | mom = createUTC([2e3, i]);
|
7062 | shortPieces.push(this.monthsShort(mom, ""));
|
7063 | longPieces.push(this.months(mom, ""));
|
7064 | mixedPieces.push(this.months(mom, ""));
|
7065 | mixedPieces.push(this.monthsShort(mom, ""));
|
7066 | }
|
7067 | shortPieces.sort(cmpLenRev);
|
7068 | longPieces.sort(cmpLenRev);
|
7069 | mixedPieces.sort(cmpLenRev);
|
7070 | for (i = 0; i < 12; i++) {
|
7071 | shortPieces[i] = regexEscape(shortPieces[i]);
|
7072 | longPieces[i] = regexEscape(longPieces[i]);
|
7073 | }
|
7074 | for (i = 0; i < 24; i++) {
|
7075 | mixedPieces[i] = regexEscape(mixedPieces[i]);
|
7076 | }
|
7077 | this._monthsRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
7078 | this._monthsShortRegex = this._monthsRegex;
|
7079 | this._monthsStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i");
|
7080 | this._monthsShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i");
|
7081 | }
|
7082 | addFormatToken("Y", 0, 0, function() {
|
7083 | var y = this.year();
|
7084 | return y <= 9999 ? zeroFill(y, 4) : "+" + y;
|
7085 | });
|
7086 | addFormatToken(0, ["YY", 2], 0, function() {
|
7087 | return this.year() % 100;
|
7088 | });
|
7089 | addFormatToken(0, ["YYYY", 4], 0, "year");
|
7090 | addFormatToken(0, ["YYYYY", 5], 0, "year");
|
7091 | addFormatToken(0, ["YYYYYY", 6, true], 0, "year");
|
7092 | addUnitAlias("year", "y");
|
7093 | addUnitPriority("year", 1);
|
7094 | addRegexToken("Y", matchSigned);
|
7095 | addRegexToken("YY", match1to2, match2);
|
7096 | addRegexToken("YYYY", match1to4, match4);
|
7097 | addRegexToken("YYYYY", match1to6, match6);
|
7098 | addRegexToken("YYYYYY", match1to6, match6);
|
7099 | addParseToken(["YYYYY", "YYYYYY"], YEAR);
|
7100 | addParseToken("YYYY", function(input, array) {
|
7101 | array[YEAR] = input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);
|
7102 | });
|
7103 | addParseToken("YY", function(input, array) {
|
7104 | array[YEAR] = hooks.parseTwoDigitYear(input);
|
7105 | });
|
7106 | addParseToken("Y", function(input, array) {
|
7107 | array[YEAR] = parseInt(input, 10);
|
7108 | });
|
7109 | function daysInYear(year) {
|
7110 | return isLeapYear(year) ? 366 : 365;
|
7111 | }
|
7112 | hooks.parseTwoDigitYear = function(input) {
|
7113 | return toInt(input) + (toInt(input) > 68 ? 1900 : 2e3);
|
7114 | };
|
7115 | var getSetYear = makeGetSet("FullYear", true);
|
7116 | function getIsLeapYear() {
|
7117 | return isLeapYear(this.year());
|
7118 | }
|
7119 | function createDate(y, m, d, h, M, s, ms) {
|
7120 | var date;
|
7121 | if (y < 100 && y >= 0) {
|
7122 | date = new Date(y + 400, m, d, h, M, s, ms);
|
7123 | if (isFinite(date.getFullYear())) {
|
7124 | date.setFullYear(y);
|
7125 | }
|
7126 | } else {
|
7127 | date = new Date(y, m, d, h, M, s, ms);
|
7128 | }
|
7129 | return date;
|
7130 | }
|
7131 | function createUTCDate(y) {
|
7132 | var date, args;
|
7133 | if (y < 100 && y >= 0) {
|
7134 | args = Array.prototype.slice.call(arguments);
|
7135 | args[0] = y + 400;
|
7136 | date = new Date(Date.UTC.apply(null, args));
|
7137 | if (isFinite(date.getUTCFullYear())) {
|
7138 | date.setUTCFullYear(y);
|
7139 | }
|
7140 | } else {
|
7141 | date = new Date(Date.UTC.apply(null, arguments));
|
7142 | }
|
7143 | return date;
|
7144 | }
|
7145 | function firstWeekOffset(year, dow, doy) {
|
7146 | var fwd = 7 + dow - doy, fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;
|
7147 | return -fwdlw + fwd - 1;
|
7148 | }
|
7149 | function dayOfYearFromWeeks(year, week, weekday, dow, doy) {
|
7150 | var localWeekday = (7 + weekday - dow) % 7, weekOffset = firstWeekOffset(year, dow, doy), dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset, resYear, resDayOfYear;
|
7151 | if (dayOfYear <= 0) {
|
7152 | resYear = year - 1;
|
7153 | resDayOfYear = daysInYear(resYear) + dayOfYear;
|
7154 | } else if (dayOfYear > daysInYear(year)) {
|
7155 | resYear = year + 1;
|
7156 | resDayOfYear = dayOfYear - daysInYear(year);
|
7157 | } else {
|
7158 | resYear = year;
|
7159 | resDayOfYear = dayOfYear;
|
7160 | }
|
7161 | return {
|
7162 | year: resYear,
|
7163 | dayOfYear: resDayOfYear
|
7164 | };
|
7165 | }
|
7166 | function weekOfYear(mom, dow, doy) {
|
7167 | var weekOffset = firstWeekOffset(mom.year(), dow, doy), week = Math.floor((mom.dayOfYear() - weekOffset - 1) / 7) + 1, resWeek, resYear;
|
7168 | if (week < 1) {
|
7169 | resYear = mom.year() - 1;
|
7170 | resWeek = week + weeksInYear(resYear, dow, doy);
|
7171 | } else if (week > weeksInYear(mom.year(), dow, doy)) {
|
7172 | resWeek = week - weeksInYear(mom.year(), dow, doy);
|
7173 | resYear = mom.year() + 1;
|
7174 | } else {
|
7175 | resYear = mom.year();
|
7176 | resWeek = week;
|
7177 | }
|
7178 | return {
|
7179 | week: resWeek,
|
7180 | year: resYear
|
7181 | };
|
7182 | }
|
7183 | function weeksInYear(year, dow, doy) {
|
7184 | var weekOffset = firstWeekOffset(year, dow, doy), weekOffsetNext = firstWeekOffset(year + 1, dow, doy);
|
7185 | return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;
|
7186 | }
|
7187 | addFormatToken("w", ["ww", 2], "wo", "week");
|
7188 | addFormatToken("W", ["WW", 2], "Wo", "isoWeek");
|
7189 | addUnitAlias("week", "w");
|
7190 | addUnitAlias("isoWeek", "W");
|
7191 | addUnitPriority("week", 5);
|
7192 | addUnitPriority("isoWeek", 5);
|
7193 | addRegexToken("w", match1to2);
|
7194 | addRegexToken("ww", match1to2, match2);
|
7195 | addRegexToken("W", match1to2);
|
7196 | addRegexToken("WW", match1to2, match2);
|
7197 | addWeekParseToken(["w", "ww", "W", "WW"], function(input, week, config, token2) {
|
7198 | week[token2.substr(0, 1)] = toInt(input);
|
7199 | });
|
7200 | function localeWeek(mom) {
|
7201 | return weekOfYear(mom, this._week.dow, this._week.doy).week;
|
7202 | }
|
7203 | var defaultLocaleWeek = {
|
7204 | dow: 0,
|
7205 | doy: 6
|
7206 | };
|
7207 | function localeFirstDayOfWeek() {
|
7208 | return this._week.dow;
|
7209 | }
|
7210 | function localeFirstDayOfYear() {
|
7211 | return this._week.doy;
|
7212 | }
|
7213 | function getSetWeek(input) {
|
7214 | var week = this.localeData().week(this);
|
7215 | return input == null ? week : this.add((input - week) * 7, "d");
|
7216 | }
|
7217 | function getSetISOWeek(input) {
|
7218 | var week = weekOfYear(this, 1, 4).week;
|
7219 | return input == null ? week : this.add((input - week) * 7, "d");
|
7220 | }
|
7221 | addFormatToken("d", 0, "do", "day");
|
7222 | addFormatToken("dd", 0, 0, function(format2) {
|
7223 | return this.localeData().weekdaysMin(this, format2);
|
7224 | });
|
7225 | addFormatToken("ddd", 0, 0, function(format2) {
|
7226 | return this.localeData().weekdaysShort(this, format2);
|
7227 | });
|
7228 | addFormatToken("dddd", 0, 0, function(format2) {
|
7229 | return this.localeData().weekdays(this, format2);
|
7230 | });
|
7231 | addFormatToken("e", 0, 0, "weekday");
|
7232 | addFormatToken("E", 0, 0, "isoWeekday");
|
7233 | addUnitAlias("day", "d");
|
7234 | addUnitAlias("weekday", "e");
|
7235 | addUnitAlias("isoWeekday", "E");
|
7236 | addUnitPriority("day", 11);
|
7237 | addUnitPriority("weekday", 11);
|
7238 | addUnitPriority("isoWeekday", 11);
|
7239 | addRegexToken("d", match1to2);
|
7240 | addRegexToken("e", match1to2);
|
7241 | addRegexToken("E", match1to2);
|
7242 | addRegexToken("dd", function(isStrict, locale3) {
|
7243 | return locale3.weekdaysMinRegex(isStrict);
|
7244 | });
|
7245 | addRegexToken("ddd", function(isStrict, locale3) {
|
7246 | return locale3.weekdaysShortRegex(isStrict);
|
7247 | });
|
7248 | addRegexToken("dddd", function(isStrict, locale3) {
|
7249 | return locale3.weekdaysRegex(isStrict);
|
7250 | });
|
7251 | addWeekParseToken(["dd", "ddd", "dddd"], function(input, week, config, token2) {
|
7252 | var weekday = config._locale.weekdaysParse(input, token2, config._strict);
|
7253 | if (weekday != null) {
|
7254 | week.d = weekday;
|
7255 | } else {
|
7256 | getParsingFlags(config).invalidWeekday = input;
|
7257 | }
|
7258 | });
|
7259 | addWeekParseToken(["d", "e", "E"], function(input, week, config, token2) {
|
7260 | week[token2] = toInt(input);
|
7261 | });
|
7262 | function parseWeekday(input, locale3) {
|
7263 | if (typeof input !== "string") {
|
7264 | return input;
|
7265 | }
|
7266 | if (!isNaN(input)) {
|
7267 | return parseInt(input, 10);
|
7268 | }
|
7269 | input = locale3.weekdaysParse(input);
|
7270 | if (typeof input === "number") {
|
7271 | return input;
|
7272 | }
|
7273 | return null;
|
7274 | }
|
7275 | function parseIsoWeekday(input, locale3) {
|
7276 | if (typeof input === "string") {
|
7277 | return locale3.weekdaysParse(input) % 7 || 7;
|
7278 | }
|
7279 | return isNaN(input) ? null : input;
|
7280 | }
|
7281 | function shiftWeekdays(ws, n) {
|
7282 | return ws.slice(n, 7).concat(ws.slice(0, n));
|
7283 | }
|
7284 | var defaultLocaleWeekdays = "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), defaultLocaleWeekdaysShort = "Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"), defaultLocaleWeekdaysMin = "Su_Mo_Tu_We_Th_Fr_Sa".split("_"), defaultWeekdaysRegex = matchWord, defaultWeekdaysShortRegex = matchWord, defaultWeekdaysMinRegex = matchWord;
|
7285 | function localeWeekdays(m, format2) {
|
7286 | var weekdays = isArray2(this._weekdays) ? this._weekdays : this._weekdays[m && m !== true && this._weekdays.isFormat.test(format2) ? "format" : "standalone"];
|
7287 | return m === true ? shiftWeekdays(weekdays, this._week.dow) : m ? weekdays[m.day()] : weekdays;
|
7288 | }
|
7289 | function localeWeekdaysShort(m) {
|
7290 | return m === true ? shiftWeekdays(this._weekdaysShort, this._week.dow) : m ? this._weekdaysShort[m.day()] : this._weekdaysShort;
|
7291 | }
|
7292 | function localeWeekdaysMin(m) {
|
7293 | return m === true ? shiftWeekdays(this._weekdaysMin, this._week.dow) : m ? this._weekdaysMin[m.day()] : this._weekdaysMin;
|
7294 | }
|
7295 | function handleStrictParse$1(weekdayName, format2, strict) {
|
7296 | var i, ii, mom, llc = weekdayName.toLocaleLowerCase();
|
7297 | if (!this._weekdaysParse) {
|
7298 | this._weekdaysParse = [];
|
7299 | this._shortWeekdaysParse = [];
|
7300 | this._minWeekdaysParse = [];
|
7301 | for (i = 0; i < 7; ++i) {
|
7302 | mom = createUTC([2e3, 1]).day(i);
|
7303 | this._minWeekdaysParse[i] = this.weekdaysMin(mom, "").toLocaleLowerCase();
|
7304 | this._shortWeekdaysParse[i] = this.weekdaysShort(mom, "").toLocaleLowerCase();
|
7305 | this._weekdaysParse[i] = this.weekdays(mom, "").toLocaleLowerCase();
|
7306 | }
|
7307 | }
|
7308 | if (strict) {
|
7309 | if (format2 === "dddd") {
|
7310 | ii = indexOf.call(this._weekdaysParse, llc);
|
7311 | return ii !== -1 ? ii : null;
|
7312 | } else if (format2 === "ddd") {
|
7313 | ii = indexOf.call(this._shortWeekdaysParse, llc);
|
7314 | return ii !== -1 ? ii : null;
|
7315 | } else {
|
7316 | ii = indexOf.call(this._minWeekdaysParse, llc);
|
7317 | return ii !== -1 ? ii : null;
|
7318 | }
|
7319 | } else {
|
7320 | if (format2 === "dddd") {
|
7321 | ii = indexOf.call(this._weekdaysParse, llc);
|
7322 | if (ii !== -1) {
|
7323 | return ii;
|
7324 | }
|
7325 | ii = indexOf.call(this._shortWeekdaysParse, llc);
|
7326 | if (ii !== -1) {
|
7327 | return ii;
|
7328 | }
|
7329 | ii = indexOf.call(this._minWeekdaysParse, llc);
|
7330 | return ii !== -1 ? ii : null;
|
7331 | } else if (format2 === "ddd") {
|
7332 | ii = indexOf.call(this._shortWeekdaysParse, llc);
|
7333 | if (ii !== -1) {
|
7334 | return ii;
|
7335 | }
|
7336 | ii = indexOf.call(this._weekdaysParse, llc);
|
7337 | if (ii !== -1) {
|
7338 | return ii;
|
7339 | }
|
7340 | ii = indexOf.call(this._minWeekdaysParse, llc);
|
7341 | return ii !== -1 ? ii : null;
|
7342 | } else {
|
7343 | ii = indexOf.call(this._minWeekdaysParse, llc);
|
7344 | if (ii !== -1) {
|
7345 | return ii;
|
7346 | }
|
7347 | ii = indexOf.call(this._weekdaysParse, llc);
|
7348 | if (ii !== -1) {
|
7349 | return ii;
|
7350 | }
|
7351 | ii = indexOf.call(this._shortWeekdaysParse, llc);
|
7352 | return ii !== -1 ? ii : null;
|
7353 | }
|
7354 | }
|
7355 | }
|
7356 | function localeWeekdaysParse(weekdayName, format2, strict) {
|
7357 | var i, mom, regex;
|
7358 | if (this._weekdaysParseExact) {
|
7359 | return handleStrictParse$1.call(this, weekdayName, format2, strict);
|
7360 | }
|
7361 | if (!this._weekdaysParse) {
|
7362 | this._weekdaysParse = [];
|
7363 | this._minWeekdaysParse = [];
|
7364 | this._shortWeekdaysParse = [];
|
7365 | this._fullWeekdaysParse = [];
|
7366 | }
|
7367 | for (i = 0; i < 7; i++) {
|
7368 | mom = createUTC([2e3, 1]).day(i);
|
7369 | if (strict && !this._fullWeekdaysParse[i]) {
|
7370 | this._fullWeekdaysParse[i] = new RegExp("^" + this.weekdays(mom, "").replace(".", "\\.?") + "$", "i");
|
7371 | this._shortWeekdaysParse[i] = new RegExp("^" + this.weekdaysShort(mom, "").replace(".", "\\.?") + "$", "i");
|
7372 | this._minWeekdaysParse[i] = new RegExp("^" + this.weekdaysMin(mom, "").replace(".", "\\.?") + "$", "i");
|
7373 | }
|
7374 | if (!this._weekdaysParse[i]) {
|
7375 | regex = "^" + this.weekdays(mom, "") + "|^" + this.weekdaysShort(mom, "") + "|^" + this.weekdaysMin(mom, "");
|
7376 | this._weekdaysParse[i] = new RegExp(regex.replace(".", ""), "i");
|
7377 | }
|
7378 | if (strict && format2 === "dddd" && this._fullWeekdaysParse[i].test(weekdayName)) {
|
7379 | return i;
|
7380 | } else if (strict && format2 === "ddd" && this._shortWeekdaysParse[i].test(weekdayName)) {
|
7381 | return i;
|
7382 | } else if (strict && format2 === "dd" && this._minWeekdaysParse[i].test(weekdayName)) {
|
7383 | return i;
|
7384 | } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {
|
7385 | return i;
|
7386 | }
|
7387 | }
|
7388 | }
|
7389 | function getSetDayOfWeek(input) {
|
7390 | if (!this.isValid()) {
|
7391 | return input != null ? this : NaN;
|
7392 | }
|
7393 | var day = this._isUTC ? this._d.getUTCDay() : this._d.getDay();
|
7394 | if (input != null) {
|
7395 | input = parseWeekday(input, this.localeData());
|
7396 | return this.add(input - day, "d");
|
7397 | } else {
|
7398 | return day;
|
7399 | }
|
7400 | }
|
7401 | function getSetLocaleDayOfWeek(input) {
|
7402 | if (!this.isValid()) {
|
7403 | return input != null ? this : NaN;
|
7404 | }
|
7405 | var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;
|
7406 | return input == null ? weekday : this.add(input - weekday, "d");
|
7407 | }
|
7408 | function getSetISODayOfWeek(input) {
|
7409 | if (!this.isValid()) {
|
7410 | return input != null ? this : NaN;
|
7411 | }
|
7412 | if (input != null) {
|
7413 | var weekday = parseIsoWeekday(input, this.localeData());
|
7414 | return this.day(this.day() % 7 ? weekday : weekday - 7);
|
7415 | } else {
|
7416 | return this.day() || 7;
|
7417 | }
|
7418 | }
|
7419 | function weekdaysRegex(isStrict) {
|
7420 | if (this._weekdaysParseExact) {
|
7421 | if (!hasOwnProp(this, "_weekdaysRegex")) {
|
7422 | computeWeekdaysParse.call(this);
|
7423 | }
|
7424 | if (isStrict) {
|
7425 | return this._weekdaysStrictRegex;
|
7426 | } else {
|
7427 | return this._weekdaysRegex;
|
7428 | }
|
7429 | } else {
|
7430 | if (!hasOwnProp(this, "_weekdaysRegex")) {
|
7431 | this._weekdaysRegex = defaultWeekdaysRegex;
|
7432 | }
|
7433 | return this._weekdaysStrictRegex && isStrict ? this._weekdaysStrictRegex : this._weekdaysRegex;
|
7434 | }
|
7435 | }
|
7436 | function weekdaysShortRegex(isStrict) {
|
7437 | if (this._weekdaysParseExact) {
|
7438 | if (!hasOwnProp(this, "_weekdaysRegex")) {
|
7439 | computeWeekdaysParse.call(this);
|
7440 | }
|
7441 | if (isStrict) {
|
7442 | return this._weekdaysShortStrictRegex;
|
7443 | } else {
|
7444 | return this._weekdaysShortRegex;
|
7445 | }
|
7446 | } else {
|
7447 | if (!hasOwnProp(this, "_weekdaysShortRegex")) {
|
7448 | this._weekdaysShortRegex = defaultWeekdaysShortRegex;
|
7449 | }
|
7450 | return this._weekdaysShortStrictRegex && isStrict ? this._weekdaysShortStrictRegex : this._weekdaysShortRegex;
|
7451 | }
|
7452 | }
|
7453 | function weekdaysMinRegex(isStrict) {
|
7454 | if (this._weekdaysParseExact) {
|
7455 | if (!hasOwnProp(this, "_weekdaysRegex")) {
|
7456 | computeWeekdaysParse.call(this);
|
7457 | }
|
7458 | if (isStrict) {
|
7459 | return this._weekdaysMinStrictRegex;
|
7460 | } else {
|
7461 | return this._weekdaysMinRegex;
|
7462 | }
|
7463 | } else {
|
7464 | if (!hasOwnProp(this, "_weekdaysMinRegex")) {
|
7465 | this._weekdaysMinRegex = defaultWeekdaysMinRegex;
|
7466 | }
|
7467 | return this._weekdaysMinStrictRegex && isStrict ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex;
|
7468 | }
|
7469 | }
|
7470 | function computeWeekdaysParse() {
|
7471 | function cmpLenRev(a, b) {
|
7472 | return b.length - a.length;
|
7473 | }
|
7474 | var minPieces = [], shortPieces = [], longPieces = [], mixedPieces = [], i, mom, minp, shortp, longp;
|
7475 | for (i = 0; i < 7; i++) {
|
7476 | mom = createUTC([2e3, 1]).day(i);
|
7477 | minp = regexEscape(this.weekdaysMin(mom, ""));
|
7478 | shortp = regexEscape(this.weekdaysShort(mom, ""));
|
7479 | longp = regexEscape(this.weekdays(mom, ""));
|
7480 | minPieces.push(minp);
|
7481 | shortPieces.push(shortp);
|
7482 | longPieces.push(longp);
|
7483 | mixedPieces.push(minp);
|
7484 | mixedPieces.push(shortp);
|
7485 | mixedPieces.push(longp);
|
7486 | }
|
7487 | minPieces.sort(cmpLenRev);
|
7488 | shortPieces.sort(cmpLenRev);
|
7489 | longPieces.sort(cmpLenRev);
|
7490 | mixedPieces.sort(cmpLenRev);
|
7491 | this._weekdaysRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
7492 | this._weekdaysShortRegex = this._weekdaysRegex;
|
7493 | this._weekdaysMinRegex = this._weekdaysRegex;
|
7494 | this._weekdaysStrictRegex = new RegExp("^(" + longPieces.join("|") + ")", "i");
|
7495 | this._weekdaysShortStrictRegex = new RegExp("^(" + shortPieces.join("|") + ")", "i");
|
7496 | this._weekdaysMinStrictRegex = new RegExp("^(" + minPieces.join("|") + ")", "i");
|
7497 | }
|
7498 | function hFormat() {
|
7499 | return this.hours() % 12 || 12;
|
7500 | }
|
7501 | function kFormat() {
|
7502 | return this.hours() || 24;
|
7503 | }
|
7504 | addFormatToken("H", ["HH", 2], 0, "hour");
|
7505 | addFormatToken("h", ["hh", 2], 0, hFormat);
|
7506 | addFormatToken("k", ["kk", 2], 0, kFormat);
|
7507 | addFormatToken("hmm", 0, 0, function() {
|
7508 | return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2);
|
7509 | });
|
7510 | addFormatToken("hmmss", 0, 0, function() {
|
7511 | return "" + hFormat.apply(this) + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
|
7512 | });
|
7513 | addFormatToken("Hmm", 0, 0, function() {
|
7514 | return "" + this.hours() + zeroFill(this.minutes(), 2);
|
7515 | });
|
7516 | addFormatToken("Hmmss", 0, 0, function() {
|
7517 | return "" + this.hours() + zeroFill(this.minutes(), 2) + zeroFill(this.seconds(), 2);
|
7518 | });
|
7519 | function meridiem(token2, lowercase) {
|
7520 | addFormatToken(token2, 0, 0, function() {
|
7521 | return this.localeData().meridiem(this.hours(), this.minutes(), lowercase);
|
7522 | });
|
7523 | }
|
7524 | meridiem("a", true);
|
7525 | meridiem("A", false);
|
7526 | addUnitAlias("hour", "h");
|
7527 | addUnitPriority("hour", 13);
|
7528 | function matchMeridiem(isStrict, locale3) {
|
7529 | return locale3._meridiemParse;
|
7530 | }
|
7531 | addRegexToken("a", matchMeridiem);
|
7532 | addRegexToken("A", matchMeridiem);
|
7533 | addRegexToken("H", match1to2);
|
7534 | addRegexToken("h", match1to2);
|
7535 | addRegexToken("k", match1to2);
|
7536 | addRegexToken("HH", match1to2, match2);
|
7537 | addRegexToken("hh", match1to2, match2);
|
7538 | addRegexToken("kk", match1to2, match2);
|
7539 | addRegexToken("hmm", match3to4);
|
7540 | addRegexToken("hmmss", match5to6);
|
7541 | addRegexToken("Hmm", match3to4);
|
7542 | addRegexToken("Hmmss", match5to6);
|
7543 | addParseToken(["H", "HH"], HOUR);
|
7544 | addParseToken(["k", "kk"], function(input, array, config) {
|
7545 | var kInput = toInt(input);
|
7546 | array[HOUR] = kInput === 24 ? 0 : kInput;
|
7547 | });
|
7548 | addParseToken(["a", "A"], function(input, array, config) {
|
7549 | config._isPm = config._locale.isPM(input);
|
7550 | config._meridiem = input;
|
7551 | });
|
7552 | addParseToken(["h", "hh"], function(input, array, config) {
|
7553 | array[HOUR] = toInt(input);
|
7554 | getParsingFlags(config).bigHour = true;
|
7555 | });
|
7556 | addParseToken("hmm", function(input, array, config) {
|
7557 | var pos = input.length - 2;
|
7558 | array[HOUR] = toInt(input.substr(0, pos));
|
7559 | array[MINUTE] = toInt(input.substr(pos));
|
7560 | getParsingFlags(config).bigHour = true;
|
7561 | });
|
7562 | addParseToken("hmmss", function(input, array, config) {
|
7563 | var pos1 = input.length - 4, pos2 = input.length - 2;
|
7564 | array[HOUR] = toInt(input.substr(0, pos1));
|
7565 | array[MINUTE] = toInt(input.substr(pos1, 2));
|
7566 | array[SECOND] = toInt(input.substr(pos2));
|
7567 | getParsingFlags(config).bigHour = true;
|
7568 | });
|
7569 | addParseToken("Hmm", function(input, array, config) {
|
7570 | var pos = input.length - 2;
|
7571 | array[HOUR] = toInt(input.substr(0, pos));
|
7572 | array[MINUTE] = toInt(input.substr(pos));
|
7573 | });
|
7574 | addParseToken("Hmmss", function(input, array, config) {
|
7575 | var pos1 = input.length - 4, pos2 = input.length - 2;
|
7576 | array[HOUR] = toInt(input.substr(0, pos1));
|
7577 | array[MINUTE] = toInt(input.substr(pos1, 2));
|
7578 | array[SECOND] = toInt(input.substr(pos2));
|
7579 | });
|
7580 | function localeIsPM(input) {
|
7581 | return (input + "").toLowerCase().charAt(0) === "p";
|
7582 | }
|
7583 | var defaultLocaleMeridiemParse = /[ap]\.?m?\.?/i, getSetHour = makeGetSet("Hours", true);
|
7584 | function localeMeridiem(hours2, minutes2, isLower) {
|
7585 | if (hours2 > 11) {
|
7586 | return isLower ? "pm" : "PM";
|
7587 | } else {
|
7588 | return isLower ? "am" : "AM";
|
7589 | }
|
7590 | }
|
7591 | var baseConfig = {
|
7592 | calendar: defaultCalendar,
|
7593 | longDateFormat: defaultLongDateFormat,
|
7594 | invalidDate: defaultInvalidDate,
|
7595 | ordinal: defaultOrdinal,
|
7596 | dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,
|
7597 | relativeTime: defaultRelativeTime,
|
7598 | months: defaultLocaleMonths,
|
7599 | monthsShort: defaultLocaleMonthsShort,
|
7600 | week: defaultLocaleWeek,
|
7601 | weekdays: defaultLocaleWeekdays,
|
7602 | weekdaysMin: defaultLocaleWeekdaysMin,
|
7603 | weekdaysShort: defaultLocaleWeekdaysShort,
|
7604 | meridiemParse: defaultLocaleMeridiemParse
|
7605 | };
|
7606 | var locales2 = {}, localeFamilies = {}, globalLocale;
|
7607 | function commonPrefix(arr1, arr2) {
|
7608 | var i, minl = Math.min(arr1.length, arr2.length);
|
7609 | for (i = 0; i < minl; i += 1) {
|
7610 | if (arr1[i] !== arr2[i]) {
|
7611 | return i;
|
7612 | }
|
7613 | }
|
7614 | return minl;
|
7615 | }
|
7616 | function normalizeLocale(key) {
|
7617 | return key ? key.toLowerCase().replace("_", "-") : key;
|
7618 | }
|
7619 | function chooseLocale(names2) {
|
7620 | var i = 0, j, next, locale3, split;
|
7621 | while (i < names2.length) {
|
7622 | split = normalizeLocale(names2[i]).split("-");
|
7623 | j = split.length;
|
7624 | next = normalizeLocale(names2[i + 1]);
|
7625 | next = next ? next.split("-") : null;
|
7626 | while (j > 0) {
|
7627 | locale3 = loadLocale(split.slice(0, j).join("-"));
|
7628 | if (locale3) {
|
7629 | return locale3;
|
7630 | }
|
7631 | if (next && next.length >= j && commonPrefix(split, next) >= j - 1) {
|
7632 | break;
|
7633 | }
|
7634 | j--;
|
7635 | }
|
7636 | i++;
|
7637 | }
|
7638 | return globalLocale;
|
7639 | }
|
7640 | function loadLocale(name) {
|
7641 | var oldLocale = null, aliasedRequire;
|
7642 | if (locales2[name] === void 0 && true && module2 && module2.exports) {
|
7643 | try {
|
7644 | oldLocale = globalLocale._abbr;
|
7645 | aliasedRequire = commonjsRequire;
|
7646 | aliasedRequire("./locale/" + name);
|
7647 | getSetGlobalLocale(oldLocale);
|
7648 | } catch (e) {
|
7649 | locales2[name] = null;
|
7650 | }
|
7651 | }
|
7652 | return locales2[name];
|
7653 | }
|
7654 | function getSetGlobalLocale(key, values) {
|
7655 | var data;
|
7656 | if (key) {
|
7657 | if (isUndefined2(values)) {
|
7658 | data = getLocale(key);
|
7659 | } else {
|
7660 | data = defineLocale(key, values);
|
7661 | }
|
7662 | if (data) {
|
7663 | globalLocale = data;
|
7664 | } else {
|
7665 | if (typeof console !== "undefined" && console.warn) {
|
7666 | console.warn("Locale " + key + " not found. Did you forget to load it?");
|
7667 | }
|
7668 | }
|
7669 | }
|
7670 | return globalLocale._abbr;
|
7671 | }
|
7672 | function defineLocale(name, config) {
|
7673 | if (config !== null) {
|
7674 | var locale3, parentConfig = baseConfig;
|
7675 | config.abbr = name;
|
7676 | if (locales2[name] != null) {
|
7677 | deprecateSimple("defineLocaleOverride", "use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");
|
7678 | parentConfig = locales2[name]._config;
|
7679 | } else if (config.parentLocale != null) {
|
7680 | if (locales2[config.parentLocale] != null) {
|
7681 | parentConfig = locales2[config.parentLocale]._config;
|
7682 | } else {
|
7683 | locale3 = loadLocale(config.parentLocale);
|
7684 | if (locale3 != null) {
|
7685 | parentConfig = locale3._config;
|
7686 | } else {
|
7687 | if (!localeFamilies[config.parentLocale]) {
|
7688 | localeFamilies[config.parentLocale] = [];
|
7689 | }
|
7690 | localeFamilies[config.parentLocale].push({
|
7691 | name,
|
7692 | config
|
7693 | });
|
7694 | return null;
|
7695 | }
|
7696 | }
|
7697 | }
|
7698 | locales2[name] = new Locale(mergeConfigs(parentConfig, config));
|
7699 | if (localeFamilies[name]) {
|
7700 | localeFamilies[name].forEach(function(x) {
|
7701 | defineLocale(x.name, x.config);
|
7702 | });
|
7703 | }
|
7704 | getSetGlobalLocale(name);
|
7705 | return locales2[name];
|
7706 | } else {
|
7707 | delete locales2[name];
|
7708 | return null;
|
7709 | }
|
7710 | }
|
7711 | function updateLocale(name, config) {
|
7712 | if (config != null) {
|
7713 | var locale3, tmpLocale, parentConfig = baseConfig;
|
7714 | if (locales2[name] != null && locales2[name].parentLocale != null) {
|
7715 | locales2[name].set(mergeConfigs(locales2[name]._config, config));
|
7716 | } else {
|
7717 | tmpLocale = loadLocale(name);
|
7718 | if (tmpLocale != null) {
|
7719 | parentConfig = tmpLocale._config;
|
7720 | }
|
7721 | config = mergeConfigs(parentConfig, config);
|
7722 | if (tmpLocale == null) {
|
7723 | config.abbr = name;
|
7724 | }
|
7725 | locale3 = new Locale(config);
|
7726 | locale3.parentLocale = locales2[name];
|
7727 | locales2[name] = locale3;
|
7728 | }
|
7729 | getSetGlobalLocale(name);
|
7730 | } else {
|
7731 | if (locales2[name] != null) {
|
7732 | if (locales2[name].parentLocale != null) {
|
7733 | locales2[name] = locales2[name].parentLocale;
|
7734 | if (name === getSetGlobalLocale()) {
|
7735 | getSetGlobalLocale(name);
|
7736 | }
|
7737 | } else if (locales2[name] != null) {
|
7738 | delete locales2[name];
|
7739 | }
|
7740 | }
|
7741 | }
|
7742 | return locales2[name];
|
7743 | }
|
7744 | function getLocale(key) {
|
7745 | var locale3;
|
7746 | if (key && key._locale && key._locale._abbr) {
|
7747 | key = key._locale._abbr;
|
7748 | }
|
7749 | if (!key) {
|
7750 | return globalLocale;
|
7751 | }
|
7752 | if (!isArray2(key)) {
|
7753 | locale3 = loadLocale(key);
|
7754 | if (locale3) {
|
7755 | return locale3;
|
7756 | }
|
7757 | key = [key];
|
7758 | }
|
7759 | return chooseLocale(key);
|
7760 | }
|
7761 | function listLocales() {
|
7762 | return keys2(locales2);
|
7763 | }
|
7764 | function checkOverflow(m) {
|
7765 | var overflow, a = m._a;
|
7766 | if (a && getParsingFlags(m).overflow === -2) {
|
7767 | overflow = a[MONTH] < 0 || a[MONTH] > 11 ? MONTH : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH]) ? DATE : a[HOUR] < 0 || a[HOUR] > 24 || a[HOUR] === 24 && (a[MINUTE] !== 0 || a[SECOND] !== 0 || a[MILLISECOND] !== 0) ? HOUR : a[MINUTE] < 0 || a[MINUTE] > 59 ? MINUTE : a[SECOND] < 0 || a[SECOND] > 59 ? SECOND : a[MILLISECOND] < 0 || a[MILLISECOND] > 999 ? MILLISECOND : -1;
|
7768 | if (getParsingFlags(m)._overflowDayOfYear && (overflow < YEAR || overflow > DATE)) {
|
7769 | overflow = DATE;
|
7770 | }
|
7771 | if (getParsingFlags(m)._overflowWeeks && overflow === -1) {
|
7772 | overflow = WEEK;
|
7773 | }
|
7774 | if (getParsingFlags(m)._overflowWeekday && overflow === -1) {
|
7775 | overflow = WEEKDAY;
|
7776 | }
|
7777 | getParsingFlags(m).overflow = overflow;
|
7778 | }
|
7779 | return m;
|
7780 | }
|
7781 | var extendedIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, basicIsoRegex = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, tzRegex = /Z|[+-]\d\d(?::?\d\d)?/, isoDates = [
|
7782 | ["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
7783 | ["YYYY-MM-DD", /\d{4}-\d\d-\d\d/],
|
7784 | ["GGGG-[W]WW-E", /\d{4}-W\d\d-\d/],
|
7785 | ["GGGG-[W]WW", /\d{4}-W\d\d/, false],
|
7786 | ["YYYY-DDD", /\d{4}-\d{3}/],
|
7787 | ["YYYY-MM", /\d{4}-\d\d/, false],
|
7788 | ["YYYYYYMMDD", /[+-]\d{10}/],
|
7789 | ["YYYYMMDD", /\d{8}/],
|
7790 | ["GGGG[W]WWE", /\d{4}W\d{3}/],
|
7791 | ["GGGG[W]WW", /\d{4}W\d{2}/, false],
|
7792 | ["YYYYDDD", /\d{7}/],
|
7793 | ["YYYYMM", /\d{6}/, false],
|
7794 | ["YYYY", /\d{4}/, false]
|
7795 | ], isoTimes = [
|
7796 | ["HH:mm:ss.SSSS", /\d\d:\d\d:\d\d\.\d+/],
|
7797 | ["HH:mm:ss,SSSS", /\d\d:\d\d:\d\d,\d+/],
|
7798 | ["HH:mm:ss", /\d\d:\d\d:\d\d/],
|
7799 | ["HH:mm", /\d\d:\d\d/],
|
7800 | ["HHmmss.SSSS", /\d\d\d\d\d\d\.\d+/],
|
7801 | ["HHmmss,SSSS", /\d\d\d\d\d\d,\d+/],
|
7802 | ["HHmmss", /\d\d\d\d\d\d/],
|
7803 | ["HHmm", /\d\d\d\d/],
|
7804 | ["HH", /\d\d/]
|
7805 | ], aspNetJsonRegex = /^\/?Date\((-?\d+)/i, rfc2822 = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/, obsOffsets = {
|
7806 | UT: 0,
|
7807 | GMT: 0,
|
7808 | EDT: -4 * 60,
|
7809 | EST: -5 * 60,
|
7810 | CDT: -5 * 60,
|
7811 | CST: -6 * 60,
|
7812 | MDT: -6 * 60,
|
7813 | MST: -7 * 60,
|
7814 | PDT: -7 * 60,
|
7815 | PST: -8 * 60
|
7816 | };
|
7817 | function configFromISO(config) {
|
7818 | var i, l, string = config._i, match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string), allowTime, dateFormat, timeFormat, tzFormat;
|
7819 | if (match) {
|
7820 | getParsingFlags(config).iso = true;
|
7821 | for (i = 0, l = isoDates.length; i < l; i++) {
|
7822 | if (isoDates[i][1].exec(match[1])) {
|
7823 | dateFormat = isoDates[i][0];
|
7824 | allowTime = isoDates[i][2] !== false;
|
7825 | break;
|
7826 | }
|
7827 | }
|
7828 | if (dateFormat == null) {
|
7829 | config._isValid = false;
|
7830 | return;
|
7831 | }
|
7832 | if (match[3]) {
|
7833 | for (i = 0, l = isoTimes.length; i < l; i++) {
|
7834 | if (isoTimes[i][1].exec(match[3])) {
|
7835 | timeFormat = (match[2] || " ") + isoTimes[i][0];
|
7836 | break;
|
7837 | }
|
7838 | }
|
7839 | if (timeFormat == null) {
|
7840 | config._isValid = false;
|
7841 | return;
|
7842 | }
|
7843 | }
|
7844 | if (!allowTime && timeFormat != null) {
|
7845 | config._isValid = false;
|
7846 | return;
|
7847 | }
|
7848 | if (match[4]) {
|
7849 | if (tzRegex.exec(match[4])) {
|
7850 | tzFormat = "Z";
|
7851 | } else {
|
7852 | config._isValid = false;
|
7853 | return;
|
7854 | }
|
7855 | }
|
7856 | config._f = dateFormat + (timeFormat || "") + (tzFormat || "");
|
7857 | configFromStringAndFormat(config);
|
7858 | } else {
|
7859 | config._isValid = false;
|
7860 | }
|
7861 | }
|
7862 | function extractFromRFC2822Strings(yearStr, monthStr, dayStr, hourStr, minuteStr, secondStr) {
|
7863 | var result = [
|
7864 | untruncateYear(yearStr),
|
7865 | defaultLocaleMonthsShort.indexOf(monthStr),
|
7866 | parseInt(dayStr, 10),
|
7867 | parseInt(hourStr, 10),
|
7868 | parseInt(minuteStr, 10)
|
7869 | ];
|
7870 | if (secondStr) {
|
7871 | result.push(parseInt(secondStr, 10));
|
7872 | }
|
7873 | return result;
|
7874 | }
|
7875 | function untruncateYear(yearStr) {
|
7876 | var year = parseInt(yearStr, 10);
|
7877 | if (year <= 49) {
|
7878 | return 2e3 + year;
|
7879 | } else if (year <= 999) {
|
7880 | return 1900 + year;
|
7881 | }
|
7882 | return year;
|
7883 | }
|
7884 | function preprocessRFC2822(s) {
|
7885 | return s.replace(/\([^)]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").replace(/^\s\s*/, "").replace(/\s\s*$/, "");
|
7886 | }
|
7887 | function checkWeekday(weekdayStr, parsedInput, config) {
|
7888 | if (weekdayStr) {
|
7889 | var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr), weekdayActual = new Date(parsedInput[0], parsedInput[1], parsedInput[2]).getDay();
|
7890 | if (weekdayProvided !== weekdayActual) {
|
7891 | getParsingFlags(config).weekdayMismatch = true;
|
7892 | config._isValid = false;
|
7893 | return false;
|
7894 | }
|
7895 | }
|
7896 | return true;
|
7897 | }
|
7898 | function calculateOffset(obsOffset, militaryOffset, numOffset) {
|
7899 | if (obsOffset) {
|
7900 | return obsOffsets[obsOffset];
|
7901 | } else if (militaryOffset) {
|
7902 | return 0;
|
7903 | } else {
|
7904 | var hm = parseInt(numOffset, 10), m = hm % 100, h = (hm - m) / 100;
|
7905 | return h * 60 + m;
|
7906 | }
|
7907 | }
|
7908 | function configFromRFC2822(config) {
|
7909 | var match = rfc2822.exec(preprocessRFC2822(config._i)), parsedArray;
|
7910 | if (match) {
|
7911 | parsedArray = extractFromRFC2822Strings(match[4], match[3], match[2], match[5], match[6], match[7]);
|
7912 | if (!checkWeekday(match[1], parsedArray, config)) {
|
7913 | return;
|
7914 | }
|
7915 | config._a = parsedArray;
|
7916 | config._tzm = calculateOffset(match[8], match[9], match[10]);
|
7917 | config._d = createUTCDate.apply(null, config._a);
|
7918 | config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
|
7919 | getParsingFlags(config).rfc2822 = true;
|
7920 | } else {
|
7921 | config._isValid = false;
|
7922 | }
|
7923 | }
|
7924 | function configFromString(config) {
|
7925 | var matched = aspNetJsonRegex.exec(config._i);
|
7926 | if (matched !== null) {
|
7927 | config._d = new Date(+matched[1]);
|
7928 | return;
|
7929 | }
|
7930 | configFromISO(config);
|
7931 | if (config._isValid === false) {
|
7932 | delete config._isValid;
|
7933 | } else {
|
7934 | return;
|
7935 | }
|
7936 | configFromRFC2822(config);
|
7937 | if (config._isValid === false) {
|
7938 | delete config._isValid;
|
7939 | } else {
|
7940 | return;
|
7941 | }
|
7942 | if (config._strict) {
|
7943 | config._isValid = false;
|
7944 | } else {
|
7945 | hooks.createFromInputFallback(config);
|
7946 | }
|
7947 | }
|
7948 | hooks.createFromInputFallback = deprecate("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.", function(config) {
|
7949 | config._d = new Date(config._i + (config._useUTC ? " UTC" : ""));
|
7950 | });
|
7951 | function defaults2(a, b, c) {
|
7952 | if (a != null) {
|
7953 | return a;
|
7954 | }
|
7955 | if (b != null) {
|
7956 | return b;
|
7957 | }
|
7958 | return c;
|
7959 | }
|
7960 | function currentDateArray(config) {
|
7961 | var nowValue = new Date(hooks.now());
|
7962 | if (config._useUTC) {
|
7963 | return [
|
7964 | nowValue.getUTCFullYear(),
|
7965 | nowValue.getUTCMonth(),
|
7966 | nowValue.getUTCDate()
|
7967 | ];
|
7968 | }
|
7969 | return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];
|
7970 | }
|
7971 | function configFromArray(config) {
|
7972 | var i, date, input = [], currentDate, expectedWeekday, yearToUse;
|
7973 | if (config._d) {
|
7974 | return;
|
7975 | }
|
7976 | currentDate = currentDateArray(config);
|
7977 | if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {
|
7978 | dayOfYearFromWeekInfo(config);
|
7979 | }
|
7980 | if (config._dayOfYear != null) {
|
7981 | yearToUse = defaults2(config._a[YEAR], currentDate[YEAR]);
|
7982 | if (config._dayOfYear > daysInYear(yearToUse) || config._dayOfYear === 0) {
|
7983 | getParsingFlags(config)._overflowDayOfYear = true;
|
7984 | }
|
7985 | date = createUTCDate(yearToUse, 0, config._dayOfYear);
|
7986 | config._a[MONTH] = date.getUTCMonth();
|
7987 | config._a[DATE] = date.getUTCDate();
|
7988 | }
|
7989 | for (i = 0; i < 3 && config._a[i] == null; ++i) {
|
7990 | config._a[i] = input[i] = currentDate[i];
|
7991 | }
|
7992 | for (; i < 7; i++) {
|
7993 | config._a[i] = input[i] = config._a[i] == null ? i === 2 ? 1 : 0 : config._a[i];
|
7994 | }
|
7995 | if (config._a[HOUR] === 24 && config._a[MINUTE] === 0 && config._a[SECOND] === 0 && config._a[MILLISECOND] === 0) {
|
7996 | config._nextDay = true;
|
7997 | config._a[HOUR] = 0;
|
7998 | }
|
7999 | config._d = (config._useUTC ? createUTCDate : createDate).apply(null, input);
|
8000 | expectedWeekday = config._useUTC ? config._d.getUTCDay() : config._d.getDay();
|
8001 | if (config._tzm != null) {
|
8002 | config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);
|
8003 | }
|
8004 | if (config._nextDay) {
|
8005 | config._a[HOUR] = 24;
|
8006 | }
|
8007 | if (config._w && typeof config._w.d !== "undefined" && config._w.d !== expectedWeekday) {
|
8008 | getParsingFlags(config).weekdayMismatch = true;
|
8009 | }
|
8010 | }
|
8011 | function dayOfYearFromWeekInfo(config) {
|
8012 | var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;
|
8013 | w = config._w;
|
8014 | if (w.GG != null || w.W != null || w.E != null) {
|
8015 | dow = 1;
|
8016 | doy = 4;
|
8017 | weekYear = defaults2(w.GG, config._a[YEAR], weekOfYear(createLocal(), 1, 4).year);
|
8018 | week = defaults2(w.W, 1);
|
8019 | weekday = defaults2(w.E, 1);
|
8020 | if (weekday < 1 || weekday > 7) {
|
8021 | weekdayOverflow = true;
|
8022 | }
|
8023 | } else {
|
8024 | dow = config._locale._week.dow;
|
8025 | doy = config._locale._week.doy;
|
8026 | curWeek = weekOfYear(createLocal(), dow, doy);
|
8027 | weekYear = defaults2(w.gg, config._a[YEAR], curWeek.year);
|
8028 | week = defaults2(w.w, curWeek.week);
|
8029 | if (w.d != null) {
|
8030 | weekday = w.d;
|
8031 | if (weekday < 0 || weekday > 6) {
|
8032 | weekdayOverflow = true;
|
8033 | }
|
8034 | } else if (w.e != null) {
|
8035 | weekday = w.e + dow;
|
8036 | if (w.e < 0 || w.e > 6) {
|
8037 | weekdayOverflow = true;
|
8038 | }
|
8039 | } else {
|
8040 | weekday = dow;
|
8041 | }
|
8042 | }
|
8043 | if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {
|
8044 | getParsingFlags(config)._overflowWeeks = true;
|
8045 | } else if (weekdayOverflow != null) {
|
8046 | getParsingFlags(config)._overflowWeekday = true;
|
8047 | } else {
|
8048 | temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);
|
8049 | config._a[YEAR] = temp.year;
|
8050 | config._dayOfYear = temp.dayOfYear;
|
8051 | }
|
8052 | }
|
8053 | hooks.ISO_8601 = function() {
|
8054 | };
|
8055 | hooks.RFC_2822 = function() {
|
8056 | };
|
8057 | function configFromStringAndFormat(config) {
|
8058 | if (config._f === hooks.ISO_8601) {
|
8059 | configFromISO(config);
|
8060 | return;
|
8061 | }
|
8062 | if (config._f === hooks.RFC_2822) {
|
8063 | configFromRFC2822(config);
|
8064 | return;
|
8065 | }
|
8066 | config._a = [];
|
8067 | getParsingFlags(config).empty = true;
|
8068 | var string = "" + config._i, i, parsedInput, tokens2, token2, skipped, stringLength = string.length, totalParsedInputLength = 0, era;
|
8069 | tokens2 = expandFormat(config._f, config._locale).match(formattingTokens) || [];
|
8070 | for (i = 0; i < tokens2.length; i++) {
|
8071 | token2 = tokens2[i];
|
8072 | parsedInput = (string.match(getParseRegexForToken(token2, config)) || [])[0];
|
8073 | if (parsedInput) {
|
8074 | skipped = string.substr(0, string.indexOf(parsedInput));
|
8075 | if (skipped.length > 0) {
|
8076 | getParsingFlags(config).unusedInput.push(skipped);
|
8077 | }
|
8078 | string = string.slice(string.indexOf(parsedInput) + parsedInput.length);
|
8079 | totalParsedInputLength += parsedInput.length;
|
8080 | }
|
8081 | if (formatTokenFunctions[token2]) {
|
8082 | if (parsedInput) {
|
8083 | getParsingFlags(config).empty = false;
|
8084 | } else {
|
8085 | getParsingFlags(config).unusedTokens.push(token2);
|
8086 | }
|
8087 | addTimeToArrayFromToken(token2, parsedInput, config);
|
8088 | } else if (config._strict && !parsedInput) {
|
8089 | getParsingFlags(config).unusedTokens.push(token2);
|
8090 | }
|
8091 | }
|
8092 | getParsingFlags(config).charsLeftOver = stringLength - totalParsedInputLength;
|
8093 | if (string.length > 0) {
|
8094 | getParsingFlags(config).unusedInput.push(string);
|
8095 | }
|
8096 | if (config._a[HOUR] <= 12 && getParsingFlags(config).bigHour === true && config._a[HOUR] > 0) {
|
8097 | getParsingFlags(config).bigHour = void 0;
|
8098 | }
|
8099 | getParsingFlags(config).parsedDateParts = config._a.slice(0);
|
8100 | getParsingFlags(config).meridiem = config._meridiem;
|
8101 | config._a[HOUR] = meridiemFixWrap(config._locale, config._a[HOUR], config._meridiem);
|
8102 | era = getParsingFlags(config).era;
|
8103 | if (era !== null) {
|
8104 | config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);
|
8105 | }
|
8106 | configFromArray(config);
|
8107 | checkOverflow(config);
|
8108 | }
|
8109 | function meridiemFixWrap(locale3, hour, meridiem2) {
|
8110 | var isPm;
|
8111 | if (meridiem2 == null) {
|
8112 | return hour;
|
8113 | }
|
8114 | if (locale3.meridiemHour != null) {
|
8115 | return locale3.meridiemHour(hour, meridiem2);
|
8116 | } else if (locale3.isPM != null) {
|
8117 | isPm = locale3.isPM(meridiem2);
|
8118 | if (isPm && hour < 12) {
|
8119 | hour += 12;
|
8120 | }
|
8121 | if (!isPm && hour === 12) {
|
8122 | hour = 0;
|
8123 | }
|
8124 | return hour;
|
8125 | } else {
|
8126 | return hour;
|
8127 | }
|
8128 | }
|
8129 | function configFromStringAndArray(config) {
|
8130 | var tempConfig, bestMoment, scoreToBeat, i, currentScore, validFormatFound, bestFormatIsValid = false;
|
8131 | if (config._f.length === 0) {
|
8132 | getParsingFlags(config).invalidFormat = true;
|
8133 | config._d = new Date(NaN);
|
8134 | return;
|
8135 | }
|
8136 | for (i = 0; i < config._f.length; i++) {
|
8137 | currentScore = 0;
|
8138 | validFormatFound = false;
|
8139 | tempConfig = copyConfig({}, config);
|
8140 | if (config._useUTC != null) {
|
8141 | tempConfig._useUTC = config._useUTC;
|
8142 | }
|
8143 | tempConfig._f = config._f[i];
|
8144 | configFromStringAndFormat(tempConfig);
|
8145 | if (isValid(tempConfig)) {
|
8146 | validFormatFound = true;
|
8147 | }
|
8148 | currentScore += getParsingFlags(tempConfig).charsLeftOver;
|
8149 | currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;
|
8150 | getParsingFlags(tempConfig).score = currentScore;
|
8151 | if (!bestFormatIsValid) {
|
8152 | if (scoreToBeat == null || currentScore < scoreToBeat || validFormatFound) {
|
8153 | scoreToBeat = currentScore;
|
8154 | bestMoment = tempConfig;
|
8155 | if (validFormatFound) {
|
8156 | bestFormatIsValid = true;
|
8157 | }
|
8158 | }
|
8159 | } else {
|
8160 | if (currentScore < scoreToBeat) {
|
8161 | scoreToBeat = currentScore;
|
8162 | bestMoment = tempConfig;
|
8163 | }
|
8164 | }
|
8165 | }
|
8166 | extend3(config, bestMoment || tempConfig);
|
8167 | }
|
8168 | function configFromObject(config) {
|
8169 | if (config._d) {
|
8170 | return;
|
8171 | }
|
8172 | var i = normalizeObjectUnits(config._i), dayOrDate = i.day === void 0 ? i.date : i.day;
|
8173 | config._a = map2([i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond], function(obj) {
|
8174 | return obj && parseInt(obj, 10);
|
8175 | });
|
8176 | configFromArray(config);
|
8177 | }
|
8178 | function createFromConfig(config) {
|
8179 | var res = new Moment(checkOverflow(prepareConfig(config)));
|
8180 | if (res._nextDay) {
|
8181 | res.add(1, "d");
|
8182 | res._nextDay = void 0;
|
8183 | }
|
8184 | return res;
|
8185 | }
|
8186 | function prepareConfig(config) {
|
8187 | var input = config._i, format2 = config._f;
|
8188 | config._locale = config._locale || getLocale(config._l);
|
8189 | if (input === null || format2 === void 0 && input === "") {
|
8190 | return createInvalid({ nullInput: true });
|
8191 | }
|
8192 | if (typeof input === "string") {
|
8193 | config._i = input = config._locale.preparse(input);
|
8194 | }
|
8195 | if (isMoment(input)) {
|
8196 | return new Moment(checkOverflow(input));
|
8197 | } else if (isDate(input)) {
|
8198 | config._d = input;
|
8199 | } else if (isArray2(format2)) {
|
8200 | configFromStringAndArray(config);
|
8201 | } else if (format2) {
|
8202 | configFromStringAndFormat(config);
|
8203 | } else {
|
8204 | configFromInput(config);
|
8205 | }
|
8206 | if (!isValid(config)) {
|
8207 | config._d = null;
|
8208 | }
|
8209 | return config;
|
8210 | }
|
8211 | function configFromInput(config) {
|
8212 | var input = config._i;
|
8213 | if (isUndefined2(input)) {
|
8214 | config._d = new Date(hooks.now());
|
8215 | } else if (isDate(input)) {
|
8216 | config._d = new Date(input.valueOf());
|
8217 | } else if (typeof input === "string") {
|
8218 | configFromString(config);
|
8219 | } else if (isArray2(input)) {
|
8220 | config._a = map2(input.slice(0), function(obj) {
|
8221 | return parseInt(obj, 10);
|
8222 | });
|
8223 | configFromArray(config);
|
8224 | } else if (isObject2(input)) {
|
8225 | configFromObject(config);
|
8226 | } else if (isNumber(input)) {
|
8227 | config._d = new Date(input);
|
8228 | } else {
|
8229 | hooks.createFromInputFallback(config);
|
8230 | }
|
8231 | }
|
8232 | function createLocalOrUTC(input, format2, locale3, strict, isUTC) {
|
8233 | var c = {};
|
8234 | if (format2 === true || format2 === false) {
|
8235 | strict = format2;
|
8236 | format2 = void 0;
|
8237 | }
|
8238 | if (locale3 === true || locale3 === false) {
|
8239 | strict = locale3;
|
8240 | locale3 = void 0;
|
8241 | }
|
8242 | if (isObject2(input) && isObjectEmpty(input) || isArray2(input) && input.length === 0) {
|
8243 | input = void 0;
|
8244 | }
|
8245 | c._isAMomentObject = true;
|
8246 | c._useUTC = c._isUTC = isUTC;
|
8247 | c._l = locale3;
|
8248 | c._i = input;
|
8249 | c._f = format2;
|
8250 | c._strict = strict;
|
8251 | return createFromConfig(c);
|
8252 | }
|
8253 | function createLocal(input, format2, locale3, strict) {
|
8254 | return createLocalOrUTC(input, format2, locale3, strict, false);
|
8255 | }
|
8256 | var prototypeMin = deprecate("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
8257 | var other = createLocal.apply(null, arguments);
|
8258 | if (this.isValid() && other.isValid()) {
|
8259 | return other < this ? this : other;
|
8260 | } else {
|
8261 | return createInvalid();
|
8262 | }
|
8263 | }), prototypeMax = deprecate("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/", function() {
|
8264 | var other = createLocal.apply(null, arguments);
|
8265 | if (this.isValid() && other.isValid()) {
|
8266 | return other > this ? this : other;
|
8267 | } else {
|
8268 | return createInvalid();
|
8269 | }
|
8270 | });
|
8271 | function pickBy(fn, moments) {
|
8272 | var res, i;
|
8273 | if (moments.length === 1 && isArray2(moments[0])) {
|
8274 | moments = moments[0];
|
8275 | }
|
8276 | if (!moments.length) {
|
8277 | return createLocal();
|
8278 | }
|
8279 | res = moments[0];
|
8280 | for (i = 1; i < moments.length; ++i) {
|
8281 | if (!moments[i].isValid() || moments[i][fn](res)) {
|
8282 | res = moments[i];
|
8283 | }
|
8284 | }
|
8285 | return res;
|
8286 | }
|
8287 | function min() {
|
8288 | var args = [].slice.call(arguments, 0);
|
8289 | return pickBy("isBefore", args);
|
8290 | }
|
8291 | function max() {
|
8292 | var args = [].slice.call(arguments, 0);
|
8293 | return pickBy("isAfter", args);
|
8294 | }
|
8295 | var now2 = function() {
|
8296 | return Date.now ? Date.now() : +new Date();
|
8297 | };
|
8298 | var ordering = [
|
8299 | "year",
|
8300 | "quarter",
|
8301 | "month",
|
8302 | "week",
|
8303 | "day",
|
8304 | "hour",
|
8305 | "minute",
|
8306 | "second",
|
8307 | "millisecond"
|
8308 | ];
|
8309 | function isDurationValid(m) {
|
8310 | var key, unitHasDecimal = false, i;
|
8311 | for (key in m) {
|
8312 | if (hasOwnProp(m, key) && !(indexOf.call(ordering, key) !== -1 && (m[key] == null || !isNaN(m[key])))) {
|
8313 | return false;
|
8314 | }
|
8315 | }
|
8316 | for (i = 0; i < ordering.length; ++i) {
|
8317 | if (m[ordering[i]]) {
|
8318 | if (unitHasDecimal) {
|
8319 | return false;
|
8320 | }
|
8321 | if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {
|
8322 | unitHasDecimal = true;
|
8323 | }
|
8324 | }
|
8325 | }
|
8326 | return true;
|
8327 | }
|
8328 | function isValid$1() {
|
8329 | return this._isValid;
|
8330 | }
|
8331 | function createInvalid$1() {
|
8332 | return createDuration(NaN);
|
8333 | }
|
8334 | function Duration(duration) {
|
8335 | var normalizedInput = normalizeObjectUnits(duration), years2 = normalizedInput.year || 0, quarters = normalizedInput.quarter || 0, months2 = normalizedInput.month || 0, weeks2 = normalizedInput.week || normalizedInput.isoWeek || 0, days2 = normalizedInput.day || 0, hours2 = normalizedInput.hour || 0, minutes2 = normalizedInput.minute || 0, seconds2 = normalizedInput.second || 0, milliseconds2 = normalizedInput.millisecond || 0;
|
8336 | this._isValid = isDurationValid(normalizedInput);
|
8337 | this._milliseconds = +milliseconds2 + seconds2 * 1e3 + minutes2 * 6e4 + hours2 * 1e3 * 60 * 60;
|
8338 | this._days = +days2 + weeks2 * 7;
|
8339 | this._months = +months2 + quarters * 3 + years2 * 12;
|
8340 | this._data = {};
|
8341 | this._locale = getLocale();
|
8342 | this._bubble();
|
8343 | }
|
8344 | function isDuration(obj) {
|
8345 | return obj instanceof Duration;
|
8346 | }
|
8347 | function absRound(number) {
|
8348 | if (number < 0) {
|
8349 | return Math.round(-1 * number) * -1;
|
8350 | } else {
|
8351 | return Math.round(number);
|
8352 | }
|
8353 | }
|
8354 | function compareArrays(array1, array2, dontConvert) {
|
8355 | var len = Math.min(array1.length, array2.length), lengthDiff = Math.abs(array1.length - array2.length), diffs = 0, i;
|
8356 | for (i = 0; i < len; i++) {
|
8357 | if (dontConvert && array1[i] !== array2[i] || !dontConvert && toInt(array1[i]) !== toInt(array2[i])) {
|
8358 | diffs++;
|
8359 | }
|
8360 | }
|
8361 | return diffs + lengthDiff;
|
8362 | }
|
8363 | function offset(token2, separator) {
|
8364 | addFormatToken(token2, 0, 0, function() {
|
8365 | var offset2 = this.utcOffset(), sign2 = "+";
|
8366 | if (offset2 < 0) {
|
8367 | offset2 = -offset2;
|
8368 | sign2 = "-";
|
8369 | }
|
8370 | return sign2 + zeroFill(~~(offset2 / 60), 2) + separator + zeroFill(~~offset2 % 60, 2);
|
8371 | });
|
8372 | }
|
8373 | offset("Z", ":");
|
8374 | offset("ZZ", "");
|
8375 | addRegexToken("Z", matchShortOffset);
|
8376 | addRegexToken("ZZ", matchShortOffset);
|
8377 | addParseToken(["Z", "ZZ"], function(input, array, config) {
|
8378 | config._useUTC = true;
|
8379 | config._tzm = offsetFromString(matchShortOffset, input);
|
8380 | });
|
8381 | var chunkOffset = /([\+\-]|\d\d)/gi;
|
8382 | function offsetFromString(matcher, string) {
|
8383 | var matches2 = (string || "").match(matcher), chunk, parts, minutes2;
|
8384 | if (matches2 === null) {
|
8385 | return null;
|
8386 | }
|
8387 | chunk = matches2[matches2.length - 1] || [];
|
8388 | parts = (chunk + "").match(chunkOffset) || ["-", 0, 0];
|
8389 | minutes2 = +(parts[1] * 60) + toInt(parts[2]);
|
8390 | return minutes2 === 0 ? 0 : parts[0] === "+" ? minutes2 : -minutes2;
|
8391 | }
|
8392 | function cloneWithOffset(input, model) {
|
8393 | var res, diff2;
|
8394 | if (model._isUTC) {
|
8395 | res = model.clone();
|
8396 | diff2 = (isMoment(input) || isDate(input) ? input.valueOf() : createLocal(input).valueOf()) - res.valueOf();
|
8397 | res._d.setTime(res._d.valueOf() + diff2);
|
8398 | hooks.updateOffset(res, false);
|
8399 | return res;
|
8400 | } else {
|
8401 | return createLocal(input).local();
|
8402 | }
|
8403 | }
|
8404 | function getDateOffset(m) {
|
8405 | return -Math.round(m._d.getTimezoneOffset());
|
8406 | }
|
8407 | hooks.updateOffset = function() {
|
8408 | };
|
8409 | function getSetOffset(input, keepLocalTime, keepMinutes) {
|
8410 | var offset2 = this._offset || 0, localAdjust;
|
8411 | if (!this.isValid()) {
|
8412 | return input != null ? this : NaN;
|
8413 | }
|
8414 | if (input != null) {
|
8415 | if (typeof input === "string") {
|
8416 | input = offsetFromString(matchShortOffset, input);
|
8417 | if (input === null) {
|
8418 | return this;
|
8419 | }
|
8420 | } else if (Math.abs(input) < 16 && !keepMinutes) {
|
8421 | input = input * 60;
|
8422 | }
|
8423 | if (!this._isUTC && keepLocalTime) {
|
8424 | localAdjust = getDateOffset(this);
|
8425 | }
|
8426 | this._offset = input;
|
8427 | this._isUTC = true;
|
8428 | if (localAdjust != null) {
|
8429 | this.add(localAdjust, "m");
|
8430 | }
|
8431 | if (offset2 !== input) {
|
8432 | if (!keepLocalTime || this._changeInProgress) {
|
8433 | addSubtract(this, createDuration(input - offset2, "m"), 1, false);
|
8434 | } else if (!this._changeInProgress) {
|
8435 | this._changeInProgress = true;
|
8436 | hooks.updateOffset(this, true);
|
8437 | this._changeInProgress = null;
|
8438 | }
|
8439 | }
|
8440 | return this;
|
8441 | } else {
|
8442 | return this._isUTC ? offset2 : getDateOffset(this);
|
8443 | }
|
8444 | }
|
8445 | function getSetZone(input, keepLocalTime) {
|
8446 | if (input != null) {
|
8447 | if (typeof input !== "string") {
|
8448 | input = -input;
|
8449 | }
|
8450 | this.utcOffset(input, keepLocalTime);
|
8451 | return this;
|
8452 | } else {
|
8453 | return -this.utcOffset();
|
8454 | }
|
8455 | }
|
8456 | function setOffsetToUTC(keepLocalTime) {
|
8457 | return this.utcOffset(0, keepLocalTime);
|
8458 | }
|
8459 | function setOffsetToLocal(keepLocalTime) {
|
8460 | if (this._isUTC) {
|
8461 | this.utcOffset(0, keepLocalTime);
|
8462 | this._isUTC = false;
|
8463 | if (keepLocalTime) {
|
8464 | this.subtract(getDateOffset(this), "m");
|
8465 | }
|
8466 | }
|
8467 | return this;
|
8468 | }
|
8469 | function setOffsetToParsedOffset() {
|
8470 | if (this._tzm != null) {
|
8471 | this.utcOffset(this._tzm, false, true);
|
8472 | } else if (typeof this._i === "string") {
|
8473 | var tZone = offsetFromString(matchOffset, this._i);
|
8474 | if (tZone != null) {
|
8475 | this.utcOffset(tZone);
|
8476 | } else {
|
8477 | this.utcOffset(0, true);
|
8478 | }
|
8479 | }
|
8480 | return this;
|
8481 | }
|
8482 | function hasAlignedHourOffset(input) {
|
8483 | if (!this.isValid()) {
|
8484 | return false;
|
8485 | }
|
8486 | input = input ? createLocal(input).utcOffset() : 0;
|
8487 | return (this.utcOffset() - input) % 60 === 0;
|
8488 | }
|
8489 | function isDaylightSavingTime() {
|
8490 | return this.utcOffset() > this.clone().month(0).utcOffset() || this.utcOffset() > this.clone().month(5).utcOffset();
|
8491 | }
|
8492 | function isDaylightSavingTimeShifted() {
|
8493 | if (!isUndefined2(this._isDSTShifted)) {
|
8494 | return this._isDSTShifted;
|
8495 | }
|
8496 | var c = {}, other;
|
8497 | copyConfig(c, this);
|
8498 | c = prepareConfig(c);
|
8499 | if (c._a) {
|
8500 | other = c._isUTC ? createUTC(c._a) : createLocal(c._a);
|
8501 | this._isDSTShifted = this.isValid() && compareArrays(c._a, other.toArray()) > 0;
|
8502 | } else {
|
8503 | this._isDSTShifted = false;
|
8504 | }
|
8505 | return this._isDSTShifted;
|
8506 | }
|
8507 | function isLocal() {
|
8508 | return this.isValid() ? !this._isUTC : false;
|
8509 | }
|
8510 | function isUtcOffset() {
|
8511 | return this.isValid() ? this._isUTC : false;
|
8512 | }
|
8513 | function isUtc() {
|
8514 | return this.isValid() ? this._isUTC && this._offset === 0 : false;
|
8515 | }
|
8516 | var aspNetRegex = /^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/, isoRegex = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;
|
8517 | function createDuration(input, key) {
|
8518 | var duration = input, match = null, sign2, ret, diffRes;
|
8519 | if (isDuration(input)) {
|
8520 | duration = {
|
8521 | ms: input._milliseconds,
|
8522 | d: input._days,
|
8523 | M: input._months
|
8524 | };
|
8525 | } else if (isNumber(input) || !isNaN(+input)) {
|
8526 | duration = {};
|
8527 | if (key) {
|
8528 | duration[key] = +input;
|
8529 | } else {
|
8530 | duration.milliseconds = +input;
|
8531 | }
|
8532 | } else if (match = aspNetRegex.exec(input)) {
|
8533 | sign2 = match[1] === "-" ? -1 : 1;
|
8534 | duration = {
|
8535 | y: 0,
|
8536 | d: toInt(match[DATE]) * sign2,
|
8537 | h: toInt(match[HOUR]) * sign2,
|
8538 | m: toInt(match[MINUTE]) * sign2,
|
8539 | s: toInt(match[SECOND]) * sign2,
|
8540 | ms: toInt(absRound(match[MILLISECOND] * 1e3)) * sign2
|
8541 | };
|
8542 | } else if (match = isoRegex.exec(input)) {
|
8543 | sign2 = match[1] === "-" ? -1 : 1;
|
8544 | duration = {
|
8545 | y: parseIso(match[2], sign2),
|
8546 | M: parseIso(match[3], sign2),
|
8547 | w: parseIso(match[4], sign2),
|
8548 | d: parseIso(match[5], sign2),
|
8549 | h: parseIso(match[6], sign2),
|
8550 | m: parseIso(match[7], sign2),
|
8551 | s: parseIso(match[8], sign2)
|
8552 | };
|
8553 | } else if (duration == null) {
|
8554 | duration = {};
|
8555 | } else if (typeof duration === "object" && ("from" in duration || "to" in duration)) {
|
8556 | diffRes = momentsDifference(createLocal(duration.from), createLocal(duration.to));
|
8557 | duration = {};
|
8558 | duration.ms = diffRes.milliseconds;
|
8559 | duration.M = diffRes.months;
|
8560 | }
|
8561 | ret = new Duration(duration);
|
8562 | if (isDuration(input) && hasOwnProp(input, "_locale")) {
|
8563 | ret._locale = input._locale;
|
8564 | }
|
8565 | if (isDuration(input) && hasOwnProp(input, "_isValid")) {
|
8566 | ret._isValid = input._isValid;
|
8567 | }
|
8568 | return ret;
|
8569 | }
|
8570 | createDuration.fn = Duration.prototype;
|
8571 | createDuration.invalid = createInvalid$1;
|
8572 | function parseIso(inp, sign2) {
|
8573 | var res = inp && parseFloat(inp.replace(",", "."));
|
8574 | return (isNaN(res) ? 0 : res) * sign2;
|
8575 | }
|
8576 | function positiveMomentsDifference(base, other) {
|
8577 | var res = {};
|
8578 | res.months = other.month() - base.month() + (other.year() - base.year()) * 12;
|
8579 | if (base.clone().add(res.months, "M").isAfter(other)) {
|
8580 | --res.months;
|
8581 | }
|
8582 | res.milliseconds = +other - +base.clone().add(res.months, "M");
|
8583 | return res;
|
8584 | }
|
8585 | function momentsDifference(base, other) {
|
8586 | var res;
|
8587 | if (!(base.isValid() && other.isValid())) {
|
8588 | return { milliseconds: 0, months: 0 };
|
8589 | }
|
8590 | other = cloneWithOffset(other, base);
|
8591 | if (base.isBefore(other)) {
|
8592 | res = positiveMomentsDifference(base, other);
|
8593 | } else {
|
8594 | res = positiveMomentsDifference(other, base);
|
8595 | res.milliseconds = -res.milliseconds;
|
8596 | res.months = -res.months;
|
8597 | }
|
8598 | return res;
|
8599 | }
|
8600 | function createAdder(direction, name) {
|
8601 | return function(val, period) {
|
8602 | var dur, tmp;
|
8603 | if (period !== null && !isNaN(+period)) {
|
8604 | deprecateSimple(name, "moment()." + name + "(period, number) is deprecated. Please use moment()." + name + "(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");
|
8605 | tmp = val;
|
8606 | val = period;
|
8607 | period = tmp;
|
8608 | }
|
8609 | dur = createDuration(val, period);
|
8610 | addSubtract(this, dur, direction);
|
8611 | return this;
|
8612 | };
|
8613 | }
|
8614 | function addSubtract(mom, duration, isAdding, updateOffset) {
|
8615 | var milliseconds2 = duration._milliseconds, days2 = absRound(duration._days), months2 = absRound(duration._months);
|
8616 | if (!mom.isValid()) {
|
8617 | return;
|
8618 | }
|
8619 | updateOffset = updateOffset == null ? true : updateOffset;
|
8620 | if (months2) {
|
8621 | setMonth(mom, get3(mom, "Month") + months2 * isAdding);
|
8622 | }
|
8623 | if (days2) {
|
8624 | set$1(mom, "Date", get3(mom, "Date") + days2 * isAdding);
|
8625 | }
|
8626 | if (milliseconds2) {
|
8627 | mom._d.setTime(mom._d.valueOf() + milliseconds2 * isAdding);
|
8628 | }
|
8629 | if (updateOffset) {
|
8630 | hooks.updateOffset(mom, days2 || months2);
|
8631 | }
|
8632 | }
|
8633 | var add = createAdder(1, "add"), subtract = createAdder(-1, "subtract");
|
8634 | function isString2(input) {
|
8635 | return typeof input === "string" || input instanceof String;
|
8636 | }
|
8637 | function isMomentInput(input) {
|
8638 | return isMoment(input) || isDate(input) || isString2(input) || isNumber(input) || isNumberOrStringArray(input) || isMomentInputObject(input) || input === null || input === void 0;
|
8639 | }
|
8640 | function isMomentInputObject(input) {
|
8641 | var objectTest = isObject2(input) && !isObjectEmpty(input), propertyTest = false, properties = [
|
8642 | "years",
|
8643 | "year",
|
8644 | "y",
|
8645 | "months",
|
8646 | "month",
|
8647 | "M",
|
8648 | "days",
|
8649 | "day",
|
8650 | "d",
|
8651 | "dates",
|
8652 | "date",
|
8653 | "D",
|
8654 | "hours",
|
8655 | "hour",
|
8656 | "h",
|
8657 | "minutes",
|
8658 | "minute",
|
8659 | "m",
|
8660 | "seconds",
|
8661 | "second",
|
8662 | "s",
|
8663 | "milliseconds",
|
8664 | "millisecond",
|
8665 | "ms"
|
8666 | ], i, property2;
|
8667 | for (i = 0; i < properties.length; i += 1) {
|
8668 | property2 = properties[i];
|
8669 | propertyTest = propertyTest || hasOwnProp(input, property2);
|
8670 | }
|
8671 | return objectTest && propertyTest;
|
8672 | }
|
8673 | function isNumberOrStringArray(input) {
|
8674 | var arrayTest = isArray2(input), dataTypeTest = false;
|
8675 | if (arrayTest) {
|
8676 | dataTypeTest = input.filter(function(item) {
|
8677 | return !isNumber(item) && isString2(input);
|
8678 | }).length === 0;
|
8679 | }
|
8680 | return arrayTest && dataTypeTest;
|
8681 | }
|
8682 | function isCalendarSpec(input) {
|
8683 | var objectTest = isObject2(input) && !isObjectEmpty(input), propertyTest = false, properties = [
|
8684 | "sameDay",
|
8685 | "nextDay",
|
8686 | "lastDay",
|
8687 | "nextWeek",
|
8688 | "lastWeek",
|
8689 | "sameElse"
|
8690 | ], i, property2;
|
8691 | for (i = 0; i < properties.length; i += 1) {
|
8692 | property2 = properties[i];
|
8693 | propertyTest = propertyTest || hasOwnProp(input, property2);
|
8694 | }
|
8695 | return objectTest && propertyTest;
|
8696 | }
|
8697 | function getCalendarFormat(myMoment, now3) {
|
8698 | var diff2 = myMoment.diff(now3, "days", true);
|
8699 | return diff2 < -6 ? "sameElse" : diff2 < -1 ? "lastWeek" : diff2 < 0 ? "lastDay" : diff2 < 1 ? "sameDay" : diff2 < 2 ? "nextDay" : diff2 < 7 ? "nextWeek" : "sameElse";
|
8700 | }
|
8701 | function calendar$1(time, formats) {
|
8702 | if (arguments.length === 1) {
|
8703 | if (!arguments[0]) {
|
8704 | time = void 0;
|
8705 | formats = void 0;
|
8706 | } else if (isMomentInput(arguments[0])) {
|
8707 | time = arguments[0];
|
8708 | formats = void 0;
|
8709 | } else if (isCalendarSpec(arguments[0])) {
|
8710 | formats = arguments[0];
|
8711 | time = void 0;
|
8712 | }
|
8713 | }
|
8714 | var now3 = time || createLocal(), sod = cloneWithOffset(now3, this).startOf("day"), format2 = hooks.calendarFormat(this, sod) || "sameElse", output = formats && (isFunction2(formats[format2]) ? formats[format2].call(this, now3) : formats[format2]);
|
8715 | return this.format(output || this.localeData().calendar(format2, this, createLocal(now3)));
|
8716 | }
|
8717 | function clone2() {
|
8718 | return new Moment(this);
|
8719 | }
|
8720 | function isAfter(input, units) {
|
8721 | var localInput = isMoment(input) ? input : createLocal(input);
|
8722 | if (!(this.isValid() && localInput.isValid())) {
|
8723 | return false;
|
8724 | }
|
8725 | units = normalizeUnits(units) || "millisecond";
|
8726 | if (units === "millisecond") {
|
8727 | return this.valueOf() > localInput.valueOf();
|
8728 | } else {
|
8729 | return localInput.valueOf() < this.clone().startOf(units).valueOf();
|
8730 | }
|
8731 | }
|
8732 | function isBefore(input, units) {
|
8733 | var localInput = isMoment(input) ? input : createLocal(input);
|
8734 | if (!(this.isValid() && localInput.isValid())) {
|
8735 | return false;
|
8736 | }
|
8737 | units = normalizeUnits(units) || "millisecond";
|
8738 | if (units === "millisecond") {
|
8739 | return this.valueOf() < localInput.valueOf();
|
8740 | } else {
|
8741 | return this.clone().endOf(units).valueOf() < localInput.valueOf();
|
8742 | }
|
8743 | }
|
8744 | function isBetween(from2, to2, units, inclusivity) {
|
8745 | var localFrom = isMoment(from2) ? from2 : createLocal(from2), localTo = isMoment(to2) ? to2 : createLocal(to2);
|
8746 | if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {
|
8747 | return false;
|
8748 | }
|
8749 | inclusivity = inclusivity || "()";
|
8750 | return (inclusivity[0] === "(" ? this.isAfter(localFrom, units) : !this.isBefore(localFrom, units)) && (inclusivity[1] === ")" ? this.isBefore(localTo, units) : !this.isAfter(localTo, units));
|
8751 | }
|
8752 | function isSame(input, units) {
|
8753 | var localInput = isMoment(input) ? input : createLocal(input), inputMs;
|
8754 | if (!(this.isValid() && localInput.isValid())) {
|
8755 | return false;
|
8756 | }
|
8757 | units = normalizeUnits(units) || "millisecond";
|
8758 | if (units === "millisecond") {
|
8759 | return this.valueOf() === localInput.valueOf();
|
8760 | } else {
|
8761 | inputMs = localInput.valueOf();
|
8762 | return this.clone().startOf(units).valueOf() <= inputMs && inputMs <= this.clone().endOf(units).valueOf();
|
8763 | }
|
8764 | }
|
8765 | function isSameOrAfter(input, units) {
|
8766 | return this.isSame(input, units) || this.isAfter(input, units);
|
8767 | }
|
8768 | function isSameOrBefore(input, units) {
|
8769 | return this.isSame(input, units) || this.isBefore(input, units);
|
8770 | }
|
8771 | function diff(input, units, asFloat) {
|
8772 | var that, zoneDelta, output;
|
8773 | if (!this.isValid()) {
|
8774 | return NaN;
|
8775 | }
|
8776 | that = cloneWithOffset(input, this);
|
8777 | if (!that.isValid()) {
|
8778 | return NaN;
|
8779 | }
|
8780 | zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;
|
8781 | units = normalizeUnits(units);
|
8782 | switch (units) {
|
8783 | case "year":
|
8784 | output = monthDiff(this, that) / 12;
|
8785 | break;
|
8786 | case "month":
|
8787 | output = monthDiff(this, that);
|
8788 | break;
|
8789 | case "quarter":
|
8790 | output = monthDiff(this, that) / 3;
|
8791 | break;
|
8792 | case "second":
|
8793 | output = (this - that) / 1e3;
|
8794 | break;
|
8795 | case "minute":
|
8796 | output = (this - that) / 6e4;
|
8797 | break;
|
8798 | case "hour":
|
8799 | output = (this - that) / 36e5;
|
8800 | break;
|
8801 | case "day":
|
8802 | output = (this - that - zoneDelta) / 864e5;
|
8803 | break;
|
8804 | case "week":
|
8805 | output = (this - that - zoneDelta) / 6048e5;
|
8806 | break;
|
8807 | default:
|
8808 | output = this - that;
|
8809 | }
|
8810 | return asFloat ? output : absFloor(output);
|
8811 | }
|
8812 | function monthDiff(a, b) {
|
8813 | if (a.date() < b.date()) {
|
8814 | return -monthDiff(b, a);
|
8815 | }
|
8816 | var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()), anchor = a.clone().add(wholeMonthDiff, "months"), anchor2, adjust;
|
8817 | if (b - anchor < 0) {
|
8818 | anchor2 = a.clone().add(wholeMonthDiff - 1, "months");
|
8819 | adjust = (b - anchor) / (anchor - anchor2);
|
8820 | } else {
|
8821 | anchor2 = a.clone().add(wholeMonthDiff + 1, "months");
|
8822 | adjust = (b - anchor) / (anchor2 - anchor);
|
8823 | }
|
8824 | return -(wholeMonthDiff + adjust) || 0;
|
8825 | }
|
8826 | hooks.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
8827 | hooks.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
8828 | function toString2() {
|
8829 | return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
8830 | }
|
8831 | function toISOString(keepOffset) {
|
8832 | if (!this.isValid()) {
|
8833 | return null;
|
8834 | }
|
8835 | var utc = keepOffset !== true, m = utc ? this.clone().utc() : this;
|
8836 | if (m.year() < 0 || m.year() > 9999) {
|
8837 | return formatMoment(m, utc ? "YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");
|
8838 | }
|
8839 | if (isFunction2(Date.prototype.toISOString)) {
|
8840 | if (utc) {
|
8841 | return this.toDate().toISOString();
|
8842 | } else {
|
8843 | return new Date(this.valueOf() + this.utcOffset() * 60 * 1e3).toISOString().replace("Z", formatMoment(m, "Z"));
|
8844 | }
|
8845 | }
|
8846 | return formatMoment(m, utc ? "YYYY-MM-DD[T]HH:mm:ss.SSS[Z]" : "YYYY-MM-DD[T]HH:mm:ss.SSSZ");
|
8847 | }
|
8848 | function inspect() {
|
8849 | if (!this.isValid()) {
|
8850 | return "moment.invalid(/* " + this._i + " */)";
|
8851 | }
|
8852 | var func = "moment", zone = "", prefix, year, datetime, suffix;
|
8853 | if (!this.isLocal()) {
|
8854 | func = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone";
|
8855 | zone = "Z";
|
8856 | }
|
8857 | prefix = "[" + func + '("]';
|
8858 | year = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY";
|
8859 | datetime = "-MM-DD[T]HH:mm:ss.SSS";
|
8860 | suffix = zone + '[")]';
|
8861 | return this.format(prefix + year + datetime + suffix);
|
8862 | }
|
8863 | function format(inputString) {
|
8864 | if (!inputString) {
|
8865 | inputString = this.isUtc() ? hooks.defaultFormatUtc : hooks.defaultFormat;
|
8866 | }
|
8867 | var output = formatMoment(this, inputString);
|
8868 | return this.localeData().postformat(output);
|
8869 | }
|
8870 | function from(time, withoutSuffix) {
|
8871 | if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
|
8872 | return createDuration({ to: this, from: time }).locale(this.locale()).humanize(!withoutSuffix);
|
8873 | } else {
|
8874 | return this.localeData().invalidDate();
|
8875 | }
|
8876 | }
|
8877 | function fromNow(withoutSuffix) {
|
8878 | return this.from(createLocal(), withoutSuffix);
|
8879 | }
|
8880 | function to(time, withoutSuffix) {
|
8881 | if (this.isValid() && (isMoment(time) && time.isValid() || createLocal(time).isValid())) {
|
8882 | return createDuration({ from: this, to: time }).locale(this.locale()).humanize(!withoutSuffix);
|
8883 | } else {
|
8884 | return this.localeData().invalidDate();
|
8885 | }
|
8886 | }
|
8887 | function toNow(withoutSuffix) {
|
8888 | return this.to(createLocal(), withoutSuffix);
|
8889 | }
|
8890 | function locale2(key) {
|
8891 | var newLocaleData;
|
8892 | if (key === void 0) {
|
8893 | return this._locale._abbr;
|
8894 | } else {
|
8895 | newLocaleData = getLocale(key);
|
8896 | if (newLocaleData != null) {
|
8897 | this._locale = newLocaleData;
|
8898 | }
|
8899 | return this;
|
8900 | }
|
8901 | }
|
8902 | var lang = deprecate("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.", function(key) {
|
8903 | if (key === void 0) {
|
8904 | return this.localeData();
|
8905 | } else {
|
8906 | return this.locale(key);
|
8907 | }
|
8908 | });
|
8909 | function localeData() {
|
8910 | return this._locale;
|
8911 | }
|
8912 | var MS_PER_SECOND = 1e3, MS_PER_MINUTE = 60 * MS_PER_SECOND, MS_PER_HOUR = 60 * MS_PER_MINUTE, MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;
|
8913 | function mod$1(dividend, divisor) {
|
8914 | return (dividend % divisor + divisor) % divisor;
|
8915 | }
|
8916 | function localStartOfDate(y, m, d) {
|
8917 | if (y < 100 && y >= 0) {
|
8918 | return new Date(y + 400, m, d) - MS_PER_400_YEARS;
|
8919 | } else {
|
8920 | return new Date(y, m, d).valueOf();
|
8921 | }
|
8922 | }
|
8923 | function utcStartOfDate(y, m, d) {
|
8924 | if (y < 100 && y >= 0) {
|
8925 | return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;
|
8926 | } else {
|
8927 | return Date.UTC(y, m, d);
|
8928 | }
|
8929 | }
|
8930 | function startOf(units) {
|
8931 | var time, startOfDate;
|
8932 | units = normalizeUnits(units);
|
8933 | if (units === void 0 || units === "millisecond" || !this.isValid()) {
|
8934 | return this;
|
8935 | }
|
8936 | startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
8937 | switch (units) {
|
8938 | case "year":
|
8939 | time = startOfDate(this.year(), 0, 1);
|
8940 | break;
|
8941 | case "quarter":
|
8942 | time = startOfDate(this.year(), this.month() - this.month() % 3, 1);
|
8943 | break;
|
8944 | case "month":
|
8945 | time = startOfDate(this.year(), this.month(), 1);
|
8946 | break;
|
8947 | case "week":
|
8948 | time = startOfDate(this.year(), this.month(), this.date() - this.weekday());
|
8949 | break;
|
8950 | case "isoWeek":
|
8951 | time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1));
|
8952 | break;
|
8953 | case "day":
|
8954 | case "date":
|
8955 | time = startOfDate(this.year(), this.month(), this.date());
|
8956 | break;
|
8957 | case "hour":
|
8958 | time = this._d.valueOf();
|
8959 | time -= mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR);
|
8960 | break;
|
8961 | case "minute":
|
8962 | time = this._d.valueOf();
|
8963 | time -= mod$1(time, MS_PER_MINUTE);
|
8964 | break;
|
8965 | case "second":
|
8966 | time = this._d.valueOf();
|
8967 | time -= mod$1(time, MS_PER_SECOND);
|
8968 | break;
|
8969 | }
|
8970 | this._d.setTime(time);
|
8971 | hooks.updateOffset(this, true);
|
8972 | return this;
|
8973 | }
|
8974 | function endOf(units) {
|
8975 | var time, startOfDate;
|
8976 | units = normalizeUnits(units);
|
8977 | if (units === void 0 || units === "millisecond" || !this.isValid()) {
|
8978 | return this;
|
8979 | }
|
8980 | startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;
|
8981 | switch (units) {
|
8982 | case "year":
|
8983 | time = startOfDate(this.year() + 1, 0, 1) - 1;
|
8984 | break;
|
8985 | case "quarter":
|
8986 | time = startOfDate(this.year(), this.month() - this.month() % 3 + 3, 1) - 1;
|
8987 | break;
|
8988 | case "month":
|
8989 | time = startOfDate(this.year(), this.month() + 1, 1) - 1;
|
8990 | break;
|
8991 | case "week":
|
8992 | time = startOfDate(this.year(), this.month(), this.date() - this.weekday() + 7) - 1;
|
8993 | break;
|
8994 | case "isoWeek":
|
8995 | time = startOfDate(this.year(), this.month(), this.date() - (this.isoWeekday() - 1) + 7) - 1;
|
8996 | break;
|
8997 | case "day":
|
8998 | case "date":
|
8999 | time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;
|
9000 | break;
|
9001 | case "hour":
|
9002 | time = this._d.valueOf();
|
9003 | time += MS_PER_HOUR - mod$1(time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE), MS_PER_HOUR) - 1;
|
9004 | break;
|
9005 | case "minute":
|
9006 | time = this._d.valueOf();
|
9007 | time += MS_PER_MINUTE - mod$1(time, MS_PER_MINUTE) - 1;
|
9008 | break;
|
9009 | case "second":
|
9010 | time = this._d.valueOf();
|
9011 | time += MS_PER_SECOND - mod$1(time, MS_PER_SECOND) - 1;
|
9012 | break;
|
9013 | }
|
9014 | this._d.setTime(time);
|
9015 | hooks.updateOffset(this, true);
|
9016 | return this;
|
9017 | }
|
9018 | function valueOf() {
|
9019 | return this._d.valueOf() - (this._offset || 0) * 6e4;
|
9020 | }
|
9021 | function unix() {
|
9022 | return Math.floor(this.valueOf() / 1e3);
|
9023 | }
|
9024 | function toDate() {
|
9025 | return new Date(this.valueOf());
|
9026 | }
|
9027 | function toArray2() {
|
9028 | var m = this;
|
9029 | return [
|
9030 | m.year(),
|
9031 | m.month(),
|
9032 | m.date(),
|
9033 | m.hour(),
|
9034 | m.minute(),
|
9035 | m.second(),
|
9036 | m.millisecond()
|
9037 | ];
|
9038 | }
|
9039 | function toObject() {
|
9040 | var m = this;
|
9041 | return {
|
9042 | years: m.year(),
|
9043 | months: m.month(),
|
9044 | date: m.date(),
|
9045 | hours: m.hours(),
|
9046 | minutes: m.minutes(),
|
9047 | seconds: m.seconds(),
|
9048 | milliseconds: m.milliseconds()
|
9049 | };
|
9050 | }
|
9051 | function toJSON() {
|
9052 | return this.isValid() ? this.toISOString() : null;
|
9053 | }
|
9054 | function isValid$2() {
|
9055 | return isValid(this);
|
9056 | }
|
9057 | function parsingFlags() {
|
9058 | return extend3({}, getParsingFlags(this));
|
9059 | }
|
9060 | function invalidAt() {
|
9061 | return getParsingFlags(this).overflow;
|
9062 | }
|
9063 | function creationData() {
|
9064 | return {
|
9065 | input: this._i,
|
9066 | format: this._f,
|
9067 | locale: this._locale,
|
9068 | isUTC: this._isUTC,
|
9069 | strict: this._strict
|
9070 | };
|
9071 | }
|
9072 | addFormatToken("N", 0, 0, "eraAbbr");
|
9073 | addFormatToken("NN", 0, 0, "eraAbbr");
|
9074 | addFormatToken("NNN", 0, 0, "eraAbbr");
|
9075 | addFormatToken("NNNN", 0, 0, "eraName");
|
9076 | addFormatToken("NNNNN", 0, 0, "eraNarrow");
|
9077 | addFormatToken("y", ["y", 1], "yo", "eraYear");
|
9078 | addFormatToken("y", ["yy", 2], 0, "eraYear");
|
9079 | addFormatToken("y", ["yyy", 3], 0, "eraYear");
|
9080 | addFormatToken("y", ["yyyy", 4], 0, "eraYear");
|
9081 | addRegexToken("N", matchEraAbbr);
|
9082 | addRegexToken("NN", matchEraAbbr);
|
9083 | addRegexToken("NNN", matchEraAbbr);
|
9084 | addRegexToken("NNNN", matchEraName);
|
9085 | addRegexToken("NNNNN", matchEraNarrow);
|
9086 | addParseToken(["N", "NN", "NNN", "NNNN", "NNNNN"], function(input, array, config, token2) {
|
9087 | var era = config._locale.erasParse(input, token2, config._strict);
|
9088 | if (era) {
|
9089 | getParsingFlags(config).era = era;
|
9090 | } else {
|
9091 | getParsingFlags(config).invalidEra = input;
|
9092 | }
|
9093 | });
|
9094 | addRegexToken("y", matchUnsigned);
|
9095 | addRegexToken("yy", matchUnsigned);
|
9096 | addRegexToken("yyy", matchUnsigned);
|
9097 | addRegexToken("yyyy", matchUnsigned);
|
9098 | addRegexToken("yo", matchEraYearOrdinal);
|
9099 | addParseToken(["y", "yy", "yyy", "yyyy"], YEAR);
|
9100 | addParseToken(["yo"], function(input, array, config, token2) {
|
9101 | var match;
|
9102 | if (config._locale._eraYearOrdinalRegex) {
|
9103 | match = input.match(config._locale._eraYearOrdinalRegex);
|
9104 | }
|
9105 | if (config._locale.eraYearOrdinalParse) {
|
9106 | array[YEAR] = config._locale.eraYearOrdinalParse(input, match);
|
9107 | } else {
|
9108 | array[YEAR] = parseInt(input, 10);
|
9109 | }
|
9110 | });
|
9111 | function localeEras(m, format2) {
|
9112 | var i, l, date, eras = this._eras || getLocale("en")._eras;
|
9113 | for (i = 0, l = eras.length; i < l; ++i) {
|
9114 | switch (typeof eras[i].since) {
|
9115 | case "string":
|
9116 | date = hooks(eras[i].since).startOf("day");
|
9117 | eras[i].since = date.valueOf();
|
9118 | break;
|
9119 | }
|
9120 | switch (typeof eras[i].until) {
|
9121 | case "undefined":
|
9122 | eras[i].until = Infinity;
|
9123 | break;
|
9124 | case "string":
|
9125 | date = hooks(eras[i].until).startOf("day").valueOf();
|
9126 | eras[i].until = date.valueOf();
|
9127 | break;
|
9128 | }
|
9129 | }
|
9130 | return eras;
|
9131 | }
|
9132 | function localeErasParse(eraName, format2, strict) {
|
9133 | var i, l, eras = this.eras(), name, abbr, narrow;
|
9134 | eraName = eraName.toUpperCase();
|
9135 | for (i = 0, l = eras.length; i < l; ++i) {
|
9136 | name = eras[i].name.toUpperCase();
|
9137 | abbr = eras[i].abbr.toUpperCase();
|
9138 | narrow = eras[i].narrow.toUpperCase();
|
9139 | if (strict) {
|
9140 | switch (format2) {
|
9141 | case "N":
|
9142 | case "NN":
|
9143 | case "NNN":
|
9144 | if (abbr === eraName) {
|
9145 | return eras[i];
|
9146 | }
|
9147 | break;
|
9148 | case "NNNN":
|
9149 | if (name === eraName) {
|
9150 | return eras[i];
|
9151 | }
|
9152 | break;
|
9153 | case "NNNNN":
|
9154 | if (narrow === eraName) {
|
9155 | return eras[i];
|
9156 | }
|
9157 | break;
|
9158 | }
|
9159 | } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {
|
9160 | return eras[i];
|
9161 | }
|
9162 | }
|
9163 | }
|
9164 | function localeErasConvertYear(era, year) {
|
9165 | var dir = era.since <= era.until ? 1 : -1;
|
9166 | if (year === void 0) {
|
9167 | return hooks(era.since).year();
|
9168 | } else {
|
9169 | return hooks(era.since).year() + (year - era.offset) * dir;
|
9170 | }
|
9171 | }
|
9172 | function getEraName() {
|
9173 | var i, l, val, eras = this.localeData().eras();
|
9174 | for (i = 0, l = eras.length; i < l; ++i) {
|
9175 | val = this.clone().startOf("day").valueOf();
|
9176 | if (eras[i].since <= val && val <= eras[i].until) {
|
9177 | return eras[i].name;
|
9178 | }
|
9179 | if (eras[i].until <= val && val <= eras[i].since) {
|
9180 | return eras[i].name;
|
9181 | }
|
9182 | }
|
9183 | return "";
|
9184 | }
|
9185 | function getEraNarrow() {
|
9186 | var i, l, val, eras = this.localeData().eras();
|
9187 | for (i = 0, l = eras.length; i < l; ++i) {
|
9188 | val = this.clone().startOf("day").valueOf();
|
9189 | if (eras[i].since <= val && val <= eras[i].until) {
|
9190 | return eras[i].narrow;
|
9191 | }
|
9192 | if (eras[i].until <= val && val <= eras[i].since) {
|
9193 | return eras[i].narrow;
|
9194 | }
|
9195 | }
|
9196 | return "";
|
9197 | }
|
9198 | function getEraAbbr() {
|
9199 | var i, l, val, eras = this.localeData().eras();
|
9200 | for (i = 0, l = eras.length; i < l; ++i) {
|
9201 | val = this.clone().startOf("day").valueOf();
|
9202 | if (eras[i].since <= val && val <= eras[i].until) {
|
9203 | return eras[i].abbr;
|
9204 | }
|
9205 | if (eras[i].until <= val && val <= eras[i].since) {
|
9206 | return eras[i].abbr;
|
9207 | }
|
9208 | }
|
9209 | return "";
|
9210 | }
|
9211 | function getEraYear() {
|
9212 | var i, l, dir, val, eras = this.localeData().eras();
|
9213 | for (i = 0, l = eras.length; i < l; ++i) {
|
9214 | dir = eras[i].since <= eras[i].until ? 1 : -1;
|
9215 | val = this.clone().startOf("day").valueOf();
|
9216 | if (eras[i].since <= val && val <= eras[i].until || eras[i].until <= val && val <= eras[i].since) {
|
9217 | return (this.year() - hooks(eras[i].since).year()) * dir + eras[i].offset;
|
9218 | }
|
9219 | }
|
9220 | return this.year();
|
9221 | }
|
9222 | function erasNameRegex(isStrict) {
|
9223 | if (!hasOwnProp(this, "_erasNameRegex")) {
|
9224 | computeErasParse.call(this);
|
9225 | }
|
9226 | return isStrict ? this._erasNameRegex : this._erasRegex;
|
9227 | }
|
9228 | function erasAbbrRegex(isStrict) {
|
9229 | if (!hasOwnProp(this, "_erasAbbrRegex")) {
|
9230 | computeErasParse.call(this);
|
9231 | }
|
9232 | return isStrict ? this._erasAbbrRegex : this._erasRegex;
|
9233 | }
|
9234 | function erasNarrowRegex(isStrict) {
|
9235 | if (!hasOwnProp(this, "_erasNarrowRegex")) {
|
9236 | computeErasParse.call(this);
|
9237 | }
|
9238 | return isStrict ? this._erasNarrowRegex : this._erasRegex;
|
9239 | }
|
9240 | function matchEraAbbr(isStrict, locale3) {
|
9241 | return locale3.erasAbbrRegex(isStrict);
|
9242 | }
|
9243 | function matchEraName(isStrict, locale3) {
|
9244 | return locale3.erasNameRegex(isStrict);
|
9245 | }
|
9246 | function matchEraNarrow(isStrict, locale3) {
|
9247 | return locale3.erasNarrowRegex(isStrict);
|
9248 | }
|
9249 | function matchEraYearOrdinal(isStrict, locale3) {
|
9250 | return locale3._eraYearOrdinalRegex || matchUnsigned;
|
9251 | }
|
9252 | function computeErasParse() {
|
9253 | var abbrPieces = [], namePieces = [], narrowPieces = [], mixedPieces = [], i, l, eras = this.eras();
|
9254 | for (i = 0, l = eras.length; i < l; ++i) {
|
9255 | namePieces.push(regexEscape(eras[i].name));
|
9256 | abbrPieces.push(regexEscape(eras[i].abbr));
|
9257 | narrowPieces.push(regexEscape(eras[i].narrow));
|
9258 | mixedPieces.push(regexEscape(eras[i].name));
|
9259 | mixedPieces.push(regexEscape(eras[i].abbr));
|
9260 | mixedPieces.push(regexEscape(eras[i].narrow));
|
9261 | }
|
9262 | this._erasRegex = new RegExp("^(" + mixedPieces.join("|") + ")", "i");
|
9263 | this._erasNameRegex = new RegExp("^(" + namePieces.join("|") + ")", "i");
|
9264 | this._erasAbbrRegex = new RegExp("^(" + abbrPieces.join("|") + ")", "i");
|
9265 | this._erasNarrowRegex = new RegExp("^(" + narrowPieces.join("|") + ")", "i");
|
9266 | }
|
9267 | addFormatToken(0, ["gg", 2], 0, function() {
|
9268 | return this.weekYear() % 100;
|
9269 | });
|
9270 | addFormatToken(0, ["GG", 2], 0, function() {
|
9271 | return this.isoWeekYear() % 100;
|
9272 | });
|
9273 | function addWeekYearFormatToken(token2, getter) {
|
9274 | addFormatToken(0, [token2, token2.length], 0, getter);
|
9275 | }
|
9276 | addWeekYearFormatToken("gggg", "weekYear");
|
9277 | addWeekYearFormatToken("ggggg", "weekYear");
|
9278 | addWeekYearFormatToken("GGGG", "isoWeekYear");
|
9279 | addWeekYearFormatToken("GGGGG", "isoWeekYear");
|
9280 | addUnitAlias("weekYear", "gg");
|
9281 | addUnitAlias("isoWeekYear", "GG");
|
9282 | addUnitPriority("weekYear", 1);
|
9283 | addUnitPriority("isoWeekYear", 1);
|
9284 | addRegexToken("G", matchSigned);
|
9285 | addRegexToken("g", matchSigned);
|
9286 | addRegexToken("GG", match1to2, match2);
|
9287 | addRegexToken("gg", match1to2, match2);
|
9288 | addRegexToken("GGGG", match1to4, match4);
|
9289 | addRegexToken("gggg", match1to4, match4);
|
9290 | addRegexToken("GGGGG", match1to6, match6);
|
9291 | addRegexToken("ggggg", match1to6, match6);
|
9292 | addWeekParseToken(["gggg", "ggggg", "GGGG", "GGGGG"], function(input, week, config, token2) {
|
9293 | week[token2.substr(0, 2)] = toInt(input);
|
9294 | });
|
9295 | addWeekParseToken(["gg", "GG"], function(input, week, config, token2) {
|
9296 | week[token2] = hooks.parseTwoDigitYear(input);
|
9297 | });
|
9298 | function getSetWeekYear(input) {
|
9299 | return getSetWeekYearHelper.call(this, input, this.week(), this.weekday(), this.localeData()._week.dow, this.localeData()._week.doy);
|
9300 | }
|
9301 | function getSetISOWeekYear(input) {
|
9302 | return getSetWeekYearHelper.call(this, input, this.isoWeek(), this.isoWeekday(), 1, 4);
|
9303 | }
|
9304 | function getISOWeeksInYear() {
|
9305 | return weeksInYear(this.year(), 1, 4);
|
9306 | }
|
9307 | function getISOWeeksInISOWeekYear() {
|
9308 | return weeksInYear(this.isoWeekYear(), 1, 4);
|
9309 | }
|
9310 | function getWeeksInYear() {
|
9311 | var weekInfo = this.localeData()._week;
|
9312 | return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);
|
9313 | }
|
9314 | function getWeeksInWeekYear() {
|
9315 | var weekInfo = this.localeData()._week;
|
9316 | return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);
|
9317 | }
|
9318 | function getSetWeekYearHelper(input, week, weekday, dow, doy) {
|
9319 | var weeksTarget;
|
9320 | if (input == null) {
|
9321 | return weekOfYear(this, dow, doy).year;
|
9322 | } else {
|
9323 | weeksTarget = weeksInYear(input, dow, doy);
|
9324 | if (week > weeksTarget) {
|
9325 | week = weeksTarget;
|
9326 | }
|
9327 | return setWeekAll.call(this, input, week, weekday, dow, doy);
|
9328 | }
|
9329 | }
|
9330 | function setWeekAll(weekYear, week, weekday, dow, doy) {
|
9331 | var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy), date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);
|
9332 | this.year(date.getUTCFullYear());
|
9333 | this.month(date.getUTCMonth());
|
9334 | this.date(date.getUTCDate());
|
9335 | return this;
|
9336 | }
|
9337 | addFormatToken("Q", 0, "Qo", "quarter");
|
9338 | addUnitAlias("quarter", "Q");
|
9339 | addUnitPriority("quarter", 7);
|
9340 | addRegexToken("Q", match1);
|
9341 | addParseToken("Q", function(input, array) {
|
9342 | array[MONTH] = (toInt(input) - 1) * 3;
|
9343 | });
|
9344 | function getSetQuarter(input) {
|
9345 | return input == null ? Math.ceil((this.month() + 1) / 3) : this.month((input - 1) * 3 + this.month() % 3);
|
9346 | }
|
9347 | addFormatToken("D", ["DD", 2], "Do", "date");
|
9348 | addUnitAlias("date", "D");
|
9349 | addUnitPriority("date", 9);
|
9350 | addRegexToken("D", match1to2);
|
9351 | addRegexToken("DD", match1to2, match2);
|
9352 | addRegexToken("Do", function(isStrict, locale3) {
|
9353 | return isStrict ? locale3._dayOfMonthOrdinalParse || locale3._ordinalParse : locale3._dayOfMonthOrdinalParseLenient;
|
9354 | });
|
9355 | addParseToken(["D", "DD"], DATE);
|
9356 | addParseToken("Do", function(input, array) {
|
9357 | array[DATE] = toInt(input.match(match1to2)[0]);
|
9358 | });
|
9359 | var getSetDayOfMonth = makeGetSet("Date", true);
|
9360 | addFormatToken("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
9361 | addUnitAlias("dayOfYear", "DDD");
|
9362 | addUnitPriority("dayOfYear", 4);
|
9363 | addRegexToken("DDD", match1to3);
|
9364 | addRegexToken("DDDD", match3);
|
9365 | addParseToken(["DDD", "DDDD"], function(input, array, config) {
|
9366 | config._dayOfYear = toInt(input);
|
9367 | });
|
9368 | function getSetDayOfYear(input) {
|
9369 | var dayOfYear = Math.round((this.clone().startOf("day") - this.clone().startOf("year")) / 864e5) + 1;
|
9370 | return input == null ? dayOfYear : this.add(input - dayOfYear, "d");
|
9371 | }
|
9372 | addFormatToken("m", ["mm", 2], 0, "minute");
|
9373 | addUnitAlias("minute", "m");
|
9374 | addUnitPriority("minute", 14);
|
9375 | addRegexToken("m", match1to2);
|
9376 | addRegexToken("mm", match1to2, match2);
|
9377 | addParseToken(["m", "mm"], MINUTE);
|
9378 | var getSetMinute = makeGetSet("Minutes", false);
|
9379 | addFormatToken("s", ["ss", 2], 0, "second");
|
9380 | addUnitAlias("second", "s");
|
9381 | addUnitPriority("second", 15);
|
9382 | addRegexToken("s", match1to2);
|
9383 | addRegexToken("ss", match1to2, match2);
|
9384 | addParseToken(["s", "ss"], SECOND);
|
9385 | var getSetSecond = makeGetSet("Seconds", false);
|
9386 | addFormatToken("S", 0, 0, function() {
|
9387 | return ~~(this.millisecond() / 100);
|
9388 | });
|
9389 | addFormatToken(0, ["SS", 2], 0, function() {
|
9390 | return ~~(this.millisecond() / 10);
|
9391 | });
|
9392 | addFormatToken(0, ["SSS", 3], 0, "millisecond");
|
9393 | addFormatToken(0, ["SSSS", 4], 0, function() {
|
9394 | return this.millisecond() * 10;
|
9395 | });
|
9396 | addFormatToken(0, ["SSSSS", 5], 0, function() {
|
9397 | return this.millisecond() * 100;
|
9398 | });
|
9399 | addFormatToken(0, ["SSSSSS", 6], 0, function() {
|
9400 | return this.millisecond() * 1e3;
|
9401 | });
|
9402 | addFormatToken(0, ["SSSSSSS", 7], 0, function() {
|
9403 | return this.millisecond() * 1e4;
|
9404 | });
|
9405 | addFormatToken(0, ["SSSSSSSS", 8], 0, function() {
|
9406 | return this.millisecond() * 1e5;
|
9407 | });
|
9408 | addFormatToken(0, ["SSSSSSSSS", 9], 0, function() {
|
9409 | return this.millisecond() * 1e6;
|
9410 | });
|
9411 | addUnitAlias("millisecond", "ms");
|
9412 | addUnitPriority("millisecond", 16);
|
9413 | addRegexToken("S", match1to3, match1);
|
9414 | addRegexToken("SS", match1to3, match2);
|
9415 | addRegexToken("SSS", match1to3, match3);
|
9416 | var token, getSetMillisecond;
|
9417 | for (token = "SSSS"; token.length <= 9; token += "S") {
|
9418 | addRegexToken(token, matchUnsigned);
|
9419 | }
|
9420 | function parseMs(input, array) {
|
9421 | array[MILLISECOND] = toInt(("0." + input) * 1e3);
|
9422 | }
|
9423 | for (token = "S"; token.length <= 9; token += "S") {
|
9424 | addParseToken(token, parseMs);
|
9425 | }
|
9426 | getSetMillisecond = makeGetSet("Milliseconds", false);
|
9427 | addFormatToken("z", 0, 0, "zoneAbbr");
|
9428 | addFormatToken("zz", 0, 0, "zoneName");
|
9429 | function getZoneAbbr() {
|
9430 | return this._isUTC ? "UTC" : "";
|
9431 | }
|
9432 | function getZoneName() {
|
9433 | return this._isUTC ? "Coordinated Universal Time" : "";
|
9434 | }
|
9435 | var proto = Moment.prototype;
|
9436 | proto.add = add;
|
9437 | proto.calendar = calendar$1;
|
9438 | proto.clone = clone2;
|
9439 | proto.diff = diff;
|
9440 | proto.endOf = endOf;
|
9441 | proto.format = format;
|
9442 | proto.from = from;
|
9443 | proto.fromNow = fromNow;
|
9444 | proto.to = to;
|
9445 | proto.toNow = toNow;
|
9446 | proto.get = stringGet;
|
9447 | proto.invalidAt = invalidAt;
|
9448 | proto.isAfter = isAfter;
|
9449 | proto.isBefore = isBefore;
|
9450 | proto.isBetween = isBetween;
|
9451 | proto.isSame = isSame;
|
9452 | proto.isSameOrAfter = isSameOrAfter;
|
9453 | proto.isSameOrBefore = isSameOrBefore;
|
9454 | proto.isValid = isValid$2;
|
9455 | proto.lang = lang;
|
9456 | proto.locale = locale2;
|
9457 | proto.localeData = localeData;
|
9458 | proto.max = prototypeMax;
|
9459 | proto.min = prototypeMin;
|
9460 | proto.parsingFlags = parsingFlags;
|
9461 | proto.set = stringSet;
|
9462 | proto.startOf = startOf;
|
9463 | proto.subtract = subtract;
|
9464 | proto.toArray = toArray2;
|
9465 | proto.toObject = toObject;
|
9466 | proto.toDate = toDate;
|
9467 | proto.toISOString = toISOString;
|
9468 | proto.inspect = inspect;
|
9469 | if (typeof Symbol !== "undefined" && Symbol.for != null) {
|
9470 | proto[Symbol.for("nodejs.util.inspect.custom")] = function() {
|
9471 | return "Moment<" + this.format() + ">";
|
9472 | };
|
9473 | }
|
9474 | proto.toJSON = toJSON;
|
9475 | proto.toString = toString2;
|
9476 | proto.unix = unix;
|
9477 | proto.valueOf = valueOf;
|
9478 | proto.creationData = creationData;
|
9479 | proto.eraName = getEraName;
|
9480 | proto.eraNarrow = getEraNarrow;
|
9481 | proto.eraAbbr = getEraAbbr;
|
9482 | proto.eraYear = getEraYear;
|
9483 | proto.year = getSetYear;
|
9484 | proto.isLeapYear = getIsLeapYear;
|
9485 | proto.weekYear = getSetWeekYear;
|
9486 | proto.isoWeekYear = getSetISOWeekYear;
|
9487 | proto.quarter = proto.quarters = getSetQuarter;
|
9488 | proto.month = getSetMonth;
|
9489 | proto.daysInMonth = getDaysInMonth;
|
9490 | proto.week = proto.weeks = getSetWeek;
|
9491 | proto.isoWeek = proto.isoWeeks = getSetISOWeek;
|
9492 | proto.weeksInYear = getWeeksInYear;
|
9493 | proto.weeksInWeekYear = getWeeksInWeekYear;
|
9494 | proto.isoWeeksInYear = getISOWeeksInYear;
|
9495 | proto.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;
|
9496 | proto.date = getSetDayOfMonth;
|
9497 | proto.day = proto.days = getSetDayOfWeek;
|
9498 | proto.weekday = getSetLocaleDayOfWeek;
|
9499 | proto.isoWeekday = getSetISODayOfWeek;
|
9500 | proto.dayOfYear = getSetDayOfYear;
|
9501 | proto.hour = proto.hours = getSetHour;
|
9502 | proto.minute = proto.minutes = getSetMinute;
|
9503 | proto.second = proto.seconds = getSetSecond;
|
9504 | proto.millisecond = proto.milliseconds = getSetMillisecond;
|
9505 | proto.utcOffset = getSetOffset;
|
9506 | proto.utc = setOffsetToUTC;
|
9507 | proto.local = setOffsetToLocal;
|
9508 | proto.parseZone = setOffsetToParsedOffset;
|
9509 | proto.hasAlignedHourOffset = hasAlignedHourOffset;
|
9510 | proto.isDST = isDaylightSavingTime;
|
9511 | proto.isLocal = isLocal;
|
9512 | proto.isUtcOffset = isUtcOffset;
|
9513 | proto.isUtc = isUtc;
|
9514 | proto.isUTC = isUtc;
|
9515 | proto.zoneAbbr = getZoneAbbr;
|
9516 | proto.zoneName = getZoneName;
|
9517 | proto.dates = deprecate("dates accessor is deprecated. Use date instead.", getSetDayOfMonth);
|
9518 | proto.months = deprecate("months accessor is deprecated. Use month instead", getSetMonth);
|
9519 | proto.years = deprecate("years accessor is deprecated. Use year instead", getSetYear);
|
9520 | proto.zone = deprecate("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/", getSetZone);
|
9521 | proto.isDSTShifted = deprecate("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information", isDaylightSavingTimeShifted);
|
9522 | function createUnix(input) {
|
9523 | return createLocal(input * 1e3);
|
9524 | }
|
9525 | function createInZone() {
|
9526 | return createLocal.apply(null, arguments).parseZone();
|
9527 | }
|
9528 | function preParsePostFormat(string) {
|
9529 | return string;
|
9530 | }
|
9531 | var proto$1 = Locale.prototype;
|
9532 | proto$1.calendar = calendar;
|
9533 | proto$1.longDateFormat = longDateFormat;
|
9534 | proto$1.invalidDate = invalidDate;
|
9535 | proto$1.ordinal = ordinal;
|
9536 | proto$1.preparse = preParsePostFormat;
|
9537 | proto$1.postformat = preParsePostFormat;
|
9538 | proto$1.relativeTime = relativeTime;
|
9539 | proto$1.pastFuture = pastFuture;
|
9540 | proto$1.set = set;
|
9541 | proto$1.eras = localeEras;
|
9542 | proto$1.erasParse = localeErasParse;
|
9543 | proto$1.erasConvertYear = localeErasConvertYear;
|
9544 | proto$1.erasAbbrRegex = erasAbbrRegex;
|
9545 | proto$1.erasNameRegex = erasNameRegex;
|
9546 | proto$1.erasNarrowRegex = erasNarrowRegex;
|
9547 | proto$1.months = localeMonths;
|
9548 | proto$1.monthsShort = localeMonthsShort;
|
9549 | proto$1.monthsParse = localeMonthsParse;
|
9550 | proto$1.monthsRegex = monthsRegex;
|
9551 | proto$1.monthsShortRegex = monthsShortRegex;
|
9552 | proto$1.week = localeWeek;
|
9553 | proto$1.firstDayOfYear = localeFirstDayOfYear;
|
9554 | proto$1.firstDayOfWeek = localeFirstDayOfWeek;
|
9555 | proto$1.weekdays = localeWeekdays;
|
9556 | proto$1.weekdaysMin = localeWeekdaysMin;
|
9557 | proto$1.weekdaysShort = localeWeekdaysShort;
|
9558 | proto$1.weekdaysParse = localeWeekdaysParse;
|
9559 | proto$1.weekdaysRegex = weekdaysRegex;
|
9560 | proto$1.weekdaysShortRegex = weekdaysShortRegex;
|
9561 | proto$1.weekdaysMinRegex = weekdaysMinRegex;
|
9562 | proto$1.isPM = localeIsPM;
|
9563 | proto$1.meridiem = localeMeridiem;
|
9564 | function get$12(format2, index2, field, setter) {
|
9565 | var locale3 = getLocale(), utc = createUTC().set(setter, index2);
|
9566 | return locale3[field](utc, format2);
|
9567 | }
|
9568 | function listMonthsImpl(format2, index2, field) {
|
9569 | if (isNumber(format2)) {
|
9570 | index2 = format2;
|
9571 | format2 = void 0;
|
9572 | }
|
9573 | format2 = format2 || "";
|
9574 | if (index2 != null) {
|
9575 | return get$12(format2, index2, field, "month");
|
9576 | }
|
9577 | var i, out = [];
|
9578 | for (i = 0; i < 12; i++) {
|
9579 | out[i] = get$12(format2, i, field, "month");
|
9580 | }
|
9581 | return out;
|
9582 | }
|
9583 | function listWeekdaysImpl(localeSorted, format2, index2, field) {
|
9584 | if (typeof localeSorted === "boolean") {
|
9585 | if (isNumber(format2)) {
|
9586 | index2 = format2;
|
9587 | format2 = void 0;
|
9588 | }
|
9589 | format2 = format2 || "";
|
9590 | } else {
|
9591 | format2 = localeSorted;
|
9592 | index2 = format2;
|
9593 | localeSorted = false;
|
9594 | if (isNumber(format2)) {
|
9595 | index2 = format2;
|
9596 | format2 = void 0;
|
9597 | }
|
9598 | format2 = format2 || "";
|
9599 | }
|
9600 | var locale3 = getLocale(), shift = localeSorted ? locale3._week.dow : 0, i, out = [];
|
9601 | if (index2 != null) {
|
9602 | return get$12(format2, (index2 + shift) % 7, field, "day");
|
9603 | }
|
9604 | for (i = 0; i < 7; i++) {
|
9605 | out[i] = get$12(format2, (i + shift) % 7, field, "day");
|
9606 | }
|
9607 | return out;
|
9608 | }
|
9609 | function listMonths(format2, index2) {
|
9610 | return listMonthsImpl(format2, index2, "months");
|
9611 | }
|
9612 | function listMonthsShort(format2, index2) {
|
9613 | return listMonthsImpl(format2, index2, "monthsShort");
|
9614 | }
|
9615 | function listWeekdays(localeSorted, format2, index2) {
|
9616 | return listWeekdaysImpl(localeSorted, format2, index2, "weekdays");
|
9617 | }
|
9618 | function listWeekdaysShort(localeSorted, format2, index2) {
|
9619 | return listWeekdaysImpl(localeSorted, format2, index2, "weekdaysShort");
|
9620 | }
|
9621 | function listWeekdaysMin(localeSorted, format2, index2) {
|
9622 | return listWeekdaysImpl(localeSorted, format2, index2, "weekdaysMin");
|
9623 | }
|
9624 | getSetGlobalLocale("en", {
|
9625 | eras: [
|
9626 | {
|
9627 | since: "0001-01-01",
|
9628 | until: Infinity,
|
9629 | offset: 1,
|
9630 | name: "Anno Domini",
|
9631 | narrow: "AD",
|
9632 | abbr: "AD"
|
9633 | },
|
9634 | {
|
9635 | since: "0000-12-31",
|
9636 | until: -Infinity,
|
9637 | offset: 1,
|
9638 | name: "Before Christ",
|
9639 | narrow: "BC",
|
9640 | abbr: "BC"
|
9641 | }
|
9642 | ],
|
9643 | dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
|
9644 | ordinal: function(number) {
|
9645 | var b = number % 10, output = toInt(number % 100 / 10) === 1 ? "th" : b === 1 ? "st" : b === 2 ? "nd" : b === 3 ? "rd" : "th";
|
9646 | return number + output;
|
9647 | }
|
9648 | });
|
9649 | hooks.lang = deprecate("moment.lang is deprecated. Use moment.locale instead.", getSetGlobalLocale);
|
9650 | hooks.langData = deprecate("moment.langData is deprecated. Use moment.localeData instead.", getLocale);
|
9651 | var mathAbs = Math.abs;
|
9652 | function abs() {
|
9653 | var data = this._data;
|
9654 | this._milliseconds = mathAbs(this._milliseconds);
|
9655 | this._days = mathAbs(this._days);
|
9656 | this._months = mathAbs(this._months);
|
9657 | data.milliseconds = mathAbs(data.milliseconds);
|
9658 | data.seconds = mathAbs(data.seconds);
|
9659 | data.minutes = mathAbs(data.minutes);
|
9660 | data.hours = mathAbs(data.hours);
|
9661 | data.months = mathAbs(data.months);
|
9662 | data.years = mathAbs(data.years);
|
9663 | return this;
|
9664 | }
|
9665 | function addSubtract$1(duration, input, value, direction) {
|
9666 | var other = createDuration(input, value);
|
9667 | duration._milliseconds += direction * other._milliseconds;
|
9668 | duration._days += direction * other._days;
|
9669 | duration._months += direction * other._months;
|
9670 | return duration._bubble();
|
9671 | }
|
9672 | function add$1(input, value) {
|
9673 | return addSubtract$1(this, input, value, 1);
|
9674 | }
|
9675 | function subtract$1(input, value) {
|
9676 | return addSubtract$1(this, input, value, -1);
|
9677 | }
|
9678 | function absCeil(number) {
|
9679 | if (number < 0) {
|
9680 | return Math.floor(number);
|
9681 | } else {
|
9682 | return Math.ceil(number);
|
9683 | }
|
9684 | }
|
9685 | function bubble() {
|
9686 | var milliseconds2 = this._milliseconds, days2 = this._days, months2 = this._months, data = this._data, seconds2, minutes2, hours2, years2, monthsFromDays;
|
9687 | if (!(milliseconds2 >= 0 && days2 >= 0 && months2 >= 0 || milliseconds2 <= 0 && days2 <= 0 && months2 <= 0)) {
|
9688 | milliseconds2 += absCeil(monthsToDays(months2) + days2) * 864e5;
|
9689 | days2 = 0;
|
9690 | months2 = 0;
|
9691 | }
|
9692 | data.milliseconds = milliseconds2 % 1e3;
|
9693 | seconds2 = absFloor(milliseconds2 / 1e3);
|
9694 | data.seconds = seconds2 % 60;
|
9695 | minutes2 = absFloor(seconds2 / 60);
|
9696 | data.minutes = minutes2 % 60;
|
9697 | hours2 = absFloor(minutes2 / 60);
|
9698 | data.hours = hours2 % 24;
|
9699 | days2 += absFloor(hours2 / 24);
|
9700 | monthsFromDays = absFloor(daysToMonths(days2));
|
9701 | months2 += monthsFromDays;
|
9702 | days2 -= absCeil(monthsToDays(monthsFromDays));
|
9703 | years2 = absFloor(months2 / 12);
|
9704 | months2 %= 12;
|
9705 | data.days = days2;
|
9706 | data.months = months2;
|
9707 | data.years = years2;
|
9708 | return this;
|
9709 | }
|
9710 | function daysToMonths(days2) {
|
9711 | return days2 * 4800 / 146097;
|
9712 | }
|
9713 | function monthsToDays(months2) {
|
9714 | return months2 * 146097 / 4800;
|
9715 | }
|
9716 | function as(units) {
|
9717 | if (!this.isValid()) {
|
9718 | return NaN;
|
9719 | }
|
9720 | var days2, months2, milliseconds2 = this._milliseconds;
|
9721 | units = normalizeUnits(units);
|
9722 | if (units === "month" || units === "quarter" || units === "year") {
|
9723 | days2 = this._days + milliseconds2 / 864e5;
|
9724 | months2 = this._months + daysToMonths(days2);
|
9725 | switch (units) {
|
9726 | case "month":
|
9727 | return months2;
|
9728 | case "quarter":
|
9729 | return months2 / 3;
|
9730 | case "year":
|
9731 | return months2 / 12;
|
9732 | }
|
9733 | } else {
|
9734 | days2 = this._days + Math.round(monthsToDays(this._months));
|
9735 | switch (units) {
|
9736 | case "week":
|
9737 | return days2 / 7 + milliseconds2 / 6048e5;
|
9738 | case "day":
|
9739 | return days2 + milliseconds2 / 864e5;
|
9740 | case "hour":
|
9741 | return days2 * 24 + milliseconds2 / 36e5;
|
9742 | case "minute":
|
9743 | return days2 * 1440 + milliseconds2 / 6e4;
|
9744 | case "second":
|
9745 | return days2 * 86400 + milliseconds2 / 1e3;
|
9746 | case "millisecond":
|
9747 | return Math.floor(days2 * 864e5) + milliseconds2;
|
9748 | default:
|
9749 | throw new Error("Unknown unit " + units);
|
9750 | }
|
9751 | }
|
9752 | }
|
9753 | function valueOf$1() {
|
9754 | if (!this.isValid()) {
|
9755 | return NaN;
|
9756 | }
|
9757 | return this._milliseconds + this._days * 864e5 + this._months % 12 * 2592e6 + toInt(this._months / 12) * 31536e6;
|
9758 | }
|
9759 | function makeAs(alias) {
|
9760 | return function() {
|
9761 | return this.as(alias);
|
9762 | };
|
9763 | }
|
9764 | var asMilliseconds = makeAs("ms"), asSeconds = makeAs("s"), asMinutes = makeAs("m"), asHours = makeAs("h"), asDays = makeAs("d"), asWeeks = makeAs("w"), asMonths = makeAs("M"), asQuarters = makeAs("Q"), asYears = makeAs("y");
|
9765 | function clone$12() {
|
9766 | return createDuration(this);
|
9767 | }
|
9768 | function get$22(units) {
|
9769 | units = normalizeUnits(units);
|
9770 | return this.isValid() ? this[units + "s"]() : NaN;
|
9771 | }
|
9772 | function makeGetter(name) {
|
9773 | return function() {
|
9774 | return this.isValid() ? this._data[name] : NaN;
|
9775 | };
|
9776 | }
|
9777 | var milliseconds = makeGetter("milliseconds"), seconds = makeGetter("seconds"), minutes = makeGetter("minutes"), hours = makeGetter("hours"), days = makeGetter("days"), months = makeGetter("months"), years = makeGetter("years");
|
9778 | function weeks() {
|
9779 | return absFloor(this.days() / 7);
|
9780 | }
|
9781 | var round = Math.round, thresholds = {
|
9782 | ss: 44,
|
9783 | s: 45,
|
9784 | m: 45,
|
9785 | h: 22,
|
9786 | d: 26,
|
9787 | w: null,
|
9788 | M: 11
|
9789 | };
|
9790 | function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale3) {
|
9791 | return locale3.relativeTime(number || 1, !!withoutSuffix, string, isFuture);
|
9792 | }
|
9793 | function relativeTime$1(posNegDuration, withoutSuffix, thresholds2, locale3) {
|
9794 | var duration = createDuration(posNegDuration).abs(), seconds2 = round(duration.as("s")), minutes2 = round(duration.as("m")), hours2 = round(duration.as("h")), days2 = round(duration.as("d")), months2 = round(duration.as("M")), weeks2 = round(duration.as("w")), years2 = round(duration.as("y")), a = seconds2 <= thresholds2.ss && ["s", seconds2] || seconds2 < thresholds2.s && ["ss", seconds2] || minutes2 <= 1 && ["m"] || minutes2 < thresholds2.m && ["mm", minutes2] || hours2 <= 1 && ["h"] || hours2 < thresholds2.h && ["hh", hours2] || days2 <= 1 && ["d"] || days2 < thresholds2.d && ["dd", days2];
|
9795 | if (thresholds2.w != null) {
|
9796 | a = a || weeks2 <= 1 && ["w"] || weeks2 < thresholds2.w && ["ww", weeks2];
|
9797 | }
|
9798 | a = a || months2 <= 1 && ["M"] || months2 < thresholds2.M && ["MM", months2] || years2 <= 1 && ["y"] || ["yy", years2];
|
9799 | a[2] = withoutSuffix;
|
9800 | a[3] = +posNegDuration > 0;
|
9801 | a[4] = locale3;
|
9802 | return substituteTimeAgo.apply(null, a);
|
9803 | }
|
9804 | function getSetRelativeTimeRounding(roundingFunction) {
|
9805 | if (roundingFunction === void 0) {
|
9806 | return round;
|
9807 | }
|
9808 | if (typeof roundingFunction === "function") {
|
9809 | round = roundingFunction;
|
9810 | return true;
|
9811 | }
|
9812 | return false;
|
9813 | }
|
9814 | function getSetRelativeTimeThreshold(threshold, limit) {
|
9815 | if (thresholds[threshold] === void 0) {
|
9816 | return false;
|
9817 | }
|
9818 | if (limit === void 0) {
|
9819 | return thresholds[threshold];
|
9820 | }
|
9821 | thresholds[threshold] = limit;
|
9822 | if (threshold === "s") {
|
9823 | thresholds.ss = limit - 1;
|
9824 | }
|
9825 | return true;
|
9826 | }
|
9827 | function humanize(argWithSuffix, argThresholds) {
|
9828 | if (!this.isValid()) {
|
9829 | return this.localeData().invalidDate();
|
9830 | }
|
9831 | var withSuffix = false, th = thresholds, locale3, output;
|
9832 | if (typeof argWithSuffix === "object") {
|
9833 | argThresholds = argWithSuffix;
|
9834 | argWithSuffix = false;
|
9835 | }
|
9836 | if (typeof argWithSuffix === "boolean") {
|
9837 | withSuffix = argWithSuffix;
|
9838 | }
|
9839 | if (typeof argThresholds === "object") {
|
9840 | th = Object.assign({}, thresholds, argThresholds);
|
9841 | if (argThresholds.s != null && argThresholds.ss == null) {
|
9842 | th.ss = argThresholds.s - 1;
|
9843 | }
|
9844 | }
|
9845 | locale3 = this.localeData();
|
9846 | output = relativeTime$1(this, !withSuffix, th, locale3);
|
9847 | if (withSuffix) {
|
9848 | output = locale3.pastFuture(+this, output);
|
9849 | }
|
9850 | return locale3.postformat(output);
|
9851 | }
|
9852 | var abs$1 = Math.abs;
|
9853 | function sign(x) {
|
9854 | return (x > 0) - (x < 0) || +x;
|
9855 | }
|
9856 | function toISOString$1() {
|
9857 | if (!this.isValid()) {
|
9858 | return this.localeData().invalidDate();
|
9859 | }
|
9860 | var seconds2 = abs$1(this._milliseconds) / 1e3, days2 = abs$1(this._days), months2 = abs$1(this._months), minutes2, hours2, years2, s, total = this.asSeconds(), totalSign, ymSign, daysSign, hmsSign;
|
9861 | if (!total) {
|
9862 | return "P0D";
|
9863 | }
|
9864 | minutes2 = absFloor(seconds2 / 60);
|
9865 | hours2 = absFloor(minutes2 / 60);
|
9866 | seconds2 %= 60;
|
9867 | minutes2 %= 60;
|
9868 | years2 = absFloor(months2 / 12);
|
9869 | months2 %= 12;
|
9870 | s = seconds2 ? seconds2.toFixed(3).replace(/\.?0+$/, "") : "";
|
9871 | totalSign = total < 0 ? "-" : "";
|
9872 | ymSign = sign(this._months) !== sign(total) ? "-" : "";
|
9873 | daysSign = sign(this._days) !== sign(total) ? "-" : "";
|
9874 | hmsSign = sign(this._milliseconds) !== sign(total) ? "-" : "";
|
9875 | return totalSign + "P" + (years2 ? ymSign + years2 + "Y" : "") + (months2 ? ymSign + months2 + "M" : "") + (days2 ? daysSign + days2 + "D" : "") + (hours2 || minutes2 || seconds2 ? "T" : "") + (hours2 ? hmsSign + hours2 + "H" : "") + (minutes2 ? hmsSign + minutes2 + "M" : "") + (seconds2 ? hmsSign + s + "S" : "");
|
9876 | }
|
9877 | var proto$2 = Duration.prototype;
|
9878 | proto$2.isValid = isValid$1;
|
9879 | proto$2.abs = abs;
|
9880 | proto$2.add = add$1;
|
9881 | proto$2.subtract = subtract$1;
|
9882 | proto$2.as = as;
|
9883 | proto$2.asMilliseconds = asMilliseconds;
|
9884 | proto$2.asSeconds = asSeconds;
|
9885 | proto$2.asMinutes = asMinutes;
|
9886 | proto$2.asHours = asHours;
|
9887 | proto$2.asDays = asDays;
|
9888 | proto$2.asWeeks = asWeeks;
|
9889 | proto$2.asMonths = asMonths;
|
9890 | proto$2.asQuarters = asQuarters;
|
9891 | proto$2.asYears = asYears;
|
9892 | proto$2.valueOf = valueOf$1;
|
9893 | proto$2._bubble = bubble;
|
9894 | proto$2.clone = clone$12;
|
9895 | proto$2.get = get$22;
|
9896 | proto$2.milliseconds = milliseconds;
|
9897 | proto$2.seconds = seconds;
|
9898 | proto$2.minutes = minutes;
|
9899 | proto$2.hours = hours;
|
9900 | proto$2.days = days;
|
9901 | proto$2.weeks = weeks;
|
9902 | proto$2.months = months;
|
9903 | proto$2.years = years;
|
9904 | proto$2.humanize = humanize;
|
9905 | proto$2.toISOString = toISOString$1;
|
9906 | proto$2.toString = toISOString$1;
|
9907 | proto$2.toJSON = toISOString$1;
|
9908 | proto$2.locale = locale2;
|
9909 | proto$2.localeData = localeData;
|
9910 | proto$2.toIsoString = deprecate("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)", toISOString$1);
|
9911 | proto$2.lang = lang;
|
9912 | addFormatToken("X", 0, 0, "unix");
|
9913 | addFormatToken("x", 0, 0, "valueOf");
|
9914 | addRegexToken("x", matchSigned);
|
9915 | addRegexToken("X", matchTimestamp);
|
9916 | addParseToken("X", function(input, array, config) {
|
9917 | config._d = new Date(parseFloat(input) * 1e3);
|
9918 | });
|
9919 | addParseToken("x", function(input, array, config) {
|
9920 | config._d = new Date(toInt(input));
|
9921 | });
|
9922 |
|
9923 | hooks.version = "2.29.1";
|
9924 | setHookCallback(createLocal);
|
9925 | hooks.fn = proto;
|
9926 | hooks.min = min;
|
9927 | hooks.max = max;
|
9928 | hooks.now = now2;
|
9929 | hooks.utc = createUTC;
|
9930 | hooks.unix = createUnix;
|
9931 | hooks.months = listMonths;
|
9932 | hooks.isDate = isDate;
|
9933 | hooks.locale = getSetGlobalLocale;
|
9934 | hooks.invalid = createInvalid;
|
9935 | hooks.duration = createDuration;
|
9936 | hooks.isMoment = isMoment;
|
9937 | hooks.weekdays = listWeekdays;
|
9938 | hooks.parseZone = createInZone;
|
9939 | hooks.localeData = getLocale;
|
9940 | hooks.isDuration = isDuration;
|
9941 | hooks.monthsShort = listMonthsShort;
|
9942 | hooks.weekdaysMin = listWeekdaysMin;
|
9943 | hooks.defineLocale = defineLocale;
|
9944 | hooks.updateLocale = updateLocale;
|
9945 | hooks.locales = listLocales;
|
9946 | hooks.weekdaysShort = listWeekdaysShort;
|
9947 | hooks.normalizeUnits = normalizeUnits;
|
9948 | hooks.relativeTimeRounding = getSetRelativeTimeRounding;
|
9949 | hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;
|
9950 | hooks.calendarFormat = getCalendarFormat;
|
9951 | hooks.prototype = proto;
|
9952 | hooks.HTML5_FMT = {
|
9953 | DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
9954 | DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
9955 | DATETIME_LOCAL_MS: "YYYY-MM-DDTHH:mm:ss.SSS",
|
9956 | DATE: "YYYY-MM-DD",
|
9957 | TIME: "HH:mm",
|
9958 | TIME_SECONDS: "HH:mm:ss",
|
9959 | TIME_MS: "HH:mm:ss.SSS",
|
9960 | WEEK: "GGGG-[W]WW",
|
9961 | MONTH: "YYYY-MM"
|
9962 | };
|
9963 | return hooks;
|
9964 | });
|
9965 | })(moment);
|
9966 | (function(module2, exports2) {
|
9967 | (function(global2, factory) {
|
9968 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
9969 | })(commonjsGlobal, function(moment2) {
|
9970 |
|
9971 | var zhCn = moment2.defineLocale("zh-cn", {
|
9972 | months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),
|
9973 | monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),
|
9974 | weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),
|
9975 | weekdaysShort: "\u5468\u65E5_\u5468\u4E00_\u5468\u4E8C_\u5468\u4E09_\u5468\u56DB_\u5468\u4E94_\u5468\u516D".split("_"),
|
9976 | weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),
|
9977 | longDateFormat: {
|
9978 | LT: "HH:mm",
|
9979 | LTS: "HH:mm:ss",
|
9980 | L: "YYYY/MM/DD",
|
9981 | LL: "YYYY\u5E74M\u6708D\u65E5",
|
9982 | LLL: "YYYY\u5E74M\u6708D\u65E5Ah\u70B9mm\u5206",
|
9983 | LLLL: "YYYY\u5E74M\u6708D\u65E5ddddAh\u70B9mm\u5206",
|
9984 | l: "YYYY/M/D",
|
9985 | ll: "YYYY\u5E74M\u6708D\u65E5",
|
9986 | lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
|
9987 | llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm"
|
9988 | },
|
9989 | meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
|
9990 | meridiemHour: function(hour, meridiem) {
|
9991 | if (hour === 12) {
|
9992 | hour = 0;
|
9993 | }
|
9994 | if (meridiem === "\u51CC\u6668" || meridiem === "\u65E9\u4E0A" || meridiem === "\u4E0A\u5348") {
|
9995 | return hour;
|
9996 | } else if (meridiem === "\u4E0B\u5348" || meridiem === "\u665A\u4E0A") {
|
9997 | return hour + 12;
|
9998 | } else {
|
9999 | return hour >= 11 ? hour : hour + 12;
|
10000 | }
|
10001 | },
|
10002 | meridiem: function(hour, minute, isLower) {
|
10003 | var hm = hour * 100 + minute;
|
10004 | if (hm < 600) {
|
10005 | return "\u51CC\u6668";
|
10006 | } else if (hm < 900) {
|
10007 | return "\u65E9\u4E0A";
|
10008 | } else if (hm < 1130) {
|
10009 | return "\u4E0A\u5348";
|
10010 | } else if (hm < 1230) {
|
10011 | return "\u4E2D\u5348";
|
10012 | } else if (hm < 1800) {
|
10013 | return "\u4E0B\u5348";
|
10014 | } else {
|
10015 | return "\u665A\u4E0A";
|
10016 | }
|
10017 | },
|
10018 | calendar: {
|
10019 | sameDay: "[\u4ECA\u5929]LT",
|
10020 | nextDay: "[\u660E\u5929]LT",
|
10021 | nextWeek: function(now2) {
|
10022 | if (now2.week() !== this.week()) {
|
10023 | return "[\u4E0B]dddLT";
|
10024 | } else {
|
10025 | return "[\u672C]dddLT";
|
10026 | }
|
10027 | },
|
10028 | lastDay: "[\u6628\u5929]LT",
|
10029 | lastWeek: function(now2) {
|
10030 | if (this.week() !== now2.week()) {
|
10031 | return "[\u4E0A]dddLT";
|
10032 | } else {
|
10033 | return "[\u672C]dddLT";
|
10034 | }
|
10035 | },
|
10036 | sameElse: "L"
|
10037 | },
|
10038 | dayOfMonthOrdinalParse: /\d{1,2}(日|月|周)/,
|
10039 | ordinal: function(number, period) {
|
10040 | switch (period) {
|
10041 | case "d":
|
10042 | case "D":
|
10043 | case "DDD":
|
10044 | return number + "\u65E5";
|
10045 | case "M":
|
10046 | return number + "\u6708";
|
10047 | case "w":
|
10048 | case "W":
|
10049 | return number + "\u5468";
|
10050 | default:
|
10051 | return number;
|
10052 | }
|
10053 | },
|
10054 | relativeTime: {
|
10055 | future: "%s\u540E",
|
10056 | past: "%s\u524D",
|
10057 | s: "\u51E0\u79D2",
|
10058 | ss: "%d \u79D2",
|
10059 | m: "1 \u5206\u949F",
|
10060 | mm: "%d \u5206\u949F",
|
10061 | h: "1 \u5C0F\u65F6",
|
10062 | hh: "%d \u5C0F\u65F6",
|
10063 | d: "1 \u5929",
|
10064 | dd: "%d \u5929",
|
10065 | w: "1 \u5468",
|
10066 | ww: "%d \u5468",
|
10067 | M: "1 \u4E2A\u6708",
|
10068 | MM: "%d \u4E2A\u6708",
|
10069 | y: "1 \u5E74",
|
10070 | yy: "%d \u5E74"
|
10071 | },
|
10072 | week: {
|
10073 | dow: 1,
|
10074 | doy: 4
|
10075 | }
|
10076 | });
|
10077 | return zhCn;
|
10078 | });
|
10079 | })();
|
10080 | (function(module2, exports2) {
|
10081 | (function(global2, factory) {
|
10082 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10083 | })(commonjsGlobal, function(moment2) {
|
10084 |
|
10085 | var zhTw = moment2.defineLocale("zh-tw", {
|
10086 | months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),
|
10087 | monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),
|
10088 | weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),
|
10089 | weekdaysShort: "\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),
|
10090 | weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),
|
10091 | longDateFormat: {
|
10092 | LT: "HH:mm",
|
10093 | LTS: "HH:mm:ss",
|
10094 | L: "YYYY/MM/DD",
|
10095 | LL: "YYYY\u5E74M\u6708D\u65E5",
|
10096 | LLL: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
|
10097 | LLLL: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm",
|
10098 | l: "YYYY/M/D",
|
10099 | ll: "YYYY\u5E74M\u6708D\u65E5",
|
10100 | lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
|
10101 | llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm"
|
10102 | },
|
10103 | meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
|
10104 | meridiemHour: function(hour, meridiem) {
|
10105 | if (hour === 12) {
|
10106 | hour = 0;
|
10107 | }
|
10108 | if (meridiem === "\u51CC\u6668" || meridiem === "\u65E9\u4E0A" || meridiem === "\u4E0A\u5348") {
|
10109 | return hour;
|
10110 | } else if (meridiem === "\u4E2D\u5348") {
|
10111 | return hour >= 11 ? hour : hour + 12;
|
10112 | } else if (meridiem === "\u4E0B\u5348" || meridiem === "\u665A\u4E0A") {
|
10113 | return hour + 12;
|
10114 | }
|
10115 | },
|
10116 | meridiem: function(hour, minute, isLower) {
|
10117 | var hm = hour * 100 + minute;
|
10118 | if (hm < 600) {
|
10119 | return "\u51CC\u6668";
|
10120 | } else if (hm < 900) {
|
10121 | return "\u65E9\u4E0A";
|
10122 | } else if (hm < 1130) {
|
10123 | return "\u4E0A\u5348";
|
10124 | } else if (hm < 1230) {
|
10125 | return "\u4E2D\u5348";
|
10126 | } else if (hm < 1800) {
|
10127 | return "\u4E0B\u5348";
|
10128 | } else {
|
10129 | return "\u665A\u4E0A";
|
10130 | }
|
10131 | },
|
10132 | calendar: {
|
10133 | sameDay: "[\u4ECA\u5929] LT",
|
10134 | nextDay: "[\u660E\u5929] LT",
|
10135 | nextWeek: "[\u4E0B]dddd LT",
|
10136 | lastDay: "[\u6628\u5929] LT",
|
10137 | lastWeek: "[\u4E0A]dddd LT",
|
10138 | sameElse: "L"
|
10139 | },
|
10140 | dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
|
10141 | ordinal: function(number, period) {
|
10142 | switch (period) {
|
10143 | case "d":
|
10144 | case "D":
|
10145 | case "DDD":
|
10146 | return number + "\u65E5";
|
10147 | case "M":
|
10148 | return number + "\u6708";
|
10149 | case "w":
|
10150 | case "W":
|
10151 | return number + "\u9031";
|
10152 | default:
|
10153 | return number;
|
10154 | }
|
10155 | },
|
10156 | relativeTime: {
|
10157 | future: "%s\u5F8C",
|
10158 | past: "%s\u524D",
|
10159 | s: "\u5E7E\u79D2",
|
10160 | ss: "%d \u79D2",
|
10161 | m: "1 \u5206\u9418",
|
10162 | mm: "%d \u5206\u9418",
|
10163 | h: "1 \u5C0F\u6642",
|
10164 | hh: "%d \u5C0F\u6642",
|
10165 | d: "1 \u5929",
|
10166 | dd: "%d \u5929",
|
10167 | M: "1 \u500B\u6708",
|
10168 | MM: "%d \u500B\u6708",
|
10169 | y: "1 \u5E74",
|
10170 | yy: "%d \u5E74"
|
10171 | }
|
10172 | });
|
10173 | return zhTw;
|
10174 | });
|
10175 | })();
|
10176 | (function(module2, exports2) {
|
10177 | (function(global2, factory) {
|
10178 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10179 | })(commonjsGlobal, function(moment2) {
|
10180 |
|
10181 | var zhHk = moment2.defineLocale("zh-hk", {
|
10182 | months: "\u4E00\u6708_\u4E8C\u6708_\u4E09\u6708_\u56DB\u6708_\u4E94\u6708_\u516D\u6708_\u4E03\u6708_\u516B\u6708_\u4E5D\u6708_\u5341\u6708_\u5341\u4E00\u6708_\u5341\u4E8C\u6708".split("_"),
|
10183 | monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),
|
10184 | weekdays: "\u661F\u671F\u65E5_\u661F\u671F\u4E00_\u661F\u671F\u4E8C_\u661F\u671F\u4E09_\u661F\u671F\u56DB_\u661F\u671F\u4E94_\u661F\u671F\u516D".split("_"),
|
10185 | weekdaysShort: "\u9031\u65E5_\u9031\u4E00_\u9031\u4E8C_\u9031\u4E09_\u9031\u56DB_\u9031\u4E94_\u9031\u516D".split("_"),
|
10186 | weekdaysMin: "\u65E5_\u4E00_\u4E8C_\u4E09_\u56DB_\u4E94_\u516D".split("_"),
|
10187 | longDateFormat: {
|
10188 | LT: "HH:mm",
|
10189 | LTS: "HH:mm:ss",
|
10190 | L: "YYYY/MM/DD",
|
10191 | LL: "YYYY\u5E74M\u6708D\u65E5",
|
10192 | LLL: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
|
10193 | LLLL: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm",
|
10194 | l: "YYYY/M/D",
|
10195 | ll: "YYYY\u5E74M\u6708D\u65E5",
|
10196 | lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
|
10197 | llll: "YYYY\u5E74M\u6708D\u65E5dddd HH:mm"
|
10198 | },
|
10199 | meridiemParse: /凌晨|早上|上午|中午|下午|晚上/,
|
10200 | meridiemHour: function(hour, meridiem) {
|
10201 | if (hour === 12) {
|
10202 | hour = 0;
|
10203 | }
|
10204 | if (meridiem === "\u51CC\u6668" || meridiem === "\u65E9\u4E0A" || meridiem === "\u4E0A\u5348") {
|
10205 | return hour;
|
10206 | } else if (meridiem === "\u4E2D\u5348") {
|
10207 | return hour >= 11 ? hour : hour + 12;
|
10208 | } else if (meridiem === "\u4E0B\u5348" || meridiem === "\u665A\u4E0A") {
|
10209 | return hour + 12;
|
10210 | }
|
10211 | },
|
10212 | meridiem: function(hour, minute, isLower) {
|
10213 | var hm = hour * 100 + minute;
|
10214 | if (hm < 600) {
|
10215 | return "\u51CC\u6668";
|
10216 | } else if (hm < 900) {
|
10217 | return "\u65E9\u4E0A";
|
10218 | } else if (hm < 1200) {
|
10219 | return "\u4E0A\u5348";
|
10220 | } else if (hm === 1200) {
|
10221 | return "\u4E2D\u5348";
|
10222 | } else if (hm < 1800) {
|
10223 | return "\u4E0B\u5348";
|
10224 | } else {
|
10225 | return "\u665A\u4E0A";
|
10226 | }
|
10227 | },
|
10228 | calendar: {
|
10229 | sameDay: "[\u4ECA\u5929]LT",
|
10230 | nextDay: "[\u660E\u5929]LT",
|
10231 | nextWeek: "[\u4E0B]ddddLT",
|
10232 | lastDay: "[\u6628\u5929]LT",
|
10233 | lastWeek: "[\u4E0A]ddddLT",
|
10234 | sameElse: "L"
|
10235 | },
|
10236 | dayOfMonthOrdinalParse: /\d{1,2}(日|月|週)/,
|
10237 | ordinal: function(number, period) {
|
10238 | switch (period) {
|
10239 | case "d":
|
10240 | case "D":
|
10241 | case "DDD":
|
10242 | return number + "\u65E5";
|
10243 | case "M":
|
10244 | return number + "\u6708";
|
10245 | case "w":
|
10246 | case "W":
|
10247 | return number + "\u9031";
|
10248 | default:
|
10249 | return number;
|
10250 | }
|
10251 | },
|
10252 | relativeTime: {
|
10253 | future: "%s\u5F8C",
|
10254 | past: "%s\u524D",
|
10255 | s: "\u5E7E\u79D2",
|
10256 | ss: "%d \u79D2",
|
10257 | m: "1 \u5206\u9418",
|
10258 | mm: "%d \u5206\u9418",
|
10259 | h: "1 \u5C0F\u6642",
|
10260 | hh: "%d \u5C0F\u6642",
|
10261 | d: "1 \u5929",
|
10262 | dd: "%d \u5929",
|
10263 | M: "1 \u500B\u6708",
|
10264 | MM: "%d \u500B\u6708",
|
10265 | y: "1 \u5E74",
|
10266 | yy: "%d \u5E74"
|
10267 | }
|
10268 | });
|
10269 | return zhHk;
|
10270 | });
|
10271 | })();
|
10272 | (function(module2, exports2) {
|
10273 | (function(global2, factory) {
|
10274 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10275 | })(commonjsGlobal, function(moment2) {
|
10276 |
|
10277 | var eu = moment2.defineLocale("eu", {
|
10278 | months: "urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),
|
10279 | monthsShort: "urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),
|
10280 | monthsParseExact: true,
|
10281 | weekdays: "igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),
|
10282 | weekdaysShort: "ig._al._ar._az._og._ol._lr.".split("_"),
|
10283 | weekdaysMin: "ig_al_ar_az_og_ol_lr".split("_"),
|
10284 | weekdaysParseExact: true,
|
10285 | longDateFormat: {
|
10286 | LT: "HH:mm",
|
10287 | LTS: "HH:mm:ss",
|
10288 | L: "YYYY-MM-DD",
|
10289 | LL: "YYYY[ko] MMMM[ren] D[a]",
|
10290 | LLL: "YYYY[ko] MMMM[ren] D[a] HH:mm",
|
10291 | LLLL: "dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",
|
10292 | l: "YYYY-M-D",
|
10293 | ll: "YYYY[ko] MMM D[a]",
|
10294 | lll: "YYYY[ko] MMM D[a] HH:mm",
|
10295 | llll: "ddd, YYYY[ko] MMM D[a] HH:mm"
|
10296 | },
|
10297 | calendar: {
|
10298 | sameDay: "[gaur] LT[etan]",
|
10299 | nextDay: "[bihar] LT[etan]",
|
10300 | nextWeek: "dddd LT[etan]",
|
10301 | lastDay: "[atzo] LT[etan]",
|
10302 | lastWeek: "[aurreko] dddd LT[etan]",
|
10303 | sameElse: "L"
|
10304 | },
|
10305 | relativeTime: {
|
10306 | future: "%s barru",
|
10307 | past: "duela %s",
|
10308 | s: "segundo batzuk",
|
10309 | ss: "%d segundo",
|
10310 | m: "minutu bat",
|
10311 | mm: "%d minutu",
|
10312 | h: "ordu bat",
|
10313 | hh: "%d ordu",
|
10314 | d: "egun bat",
|
10315 | dd: "%d egun",
|
10316 | M: "hilabete bat",
|
10317 | MM: "%d hilabete",
|
10318 | y: "urte bat",
|
10319 | yy: "%d urte"
|
10320 | },
|
10321 | dayOfMonthOrdinalParse: /\d{1,2}\./,
|
10322 | ordinal: "%d.",
|
10323 | week: {
|
10324 | dow: 1,
|
10325 | doy: 7
|
10326 | }
|
10327 | });
|
10328 | return eu;
|
10329 | });
|
10330 | })();
|
10331 | (function(module2, exports2) {
|
10332 | (function(global2, factory) {
|
10333 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10334 | })(commonjsGlobal, function(moment2) {
|
10335 |
|
10336 | var af = moment2.defineLocale("af", {
|
10337 | months: "Januarie_Februarie_Maart_April_Mei_Junie_Julie_Augustus_September_Oktober_November_Desember".split("_"),
|
10338 | monthsShort: "Jan_Feb_Mrt_Apr_Mei_Jun_Jul_Aug_Sep_Okt_Nov_Des".split("_"),
|
10339 | weekdays: "Sondag_Maandag_Dinsdag_Woensdag_Donderdag_Vrydag_Saterdag".split("_"),
|
10340 | weekdaysShort: "Son_Maa_Din_Woe_Don_Vry_Sat".split("_"),
|
10341 | weekdaysMin: "So_Ma_Di_Wo_Do_Vr_Sa".split("_"),
|
10342 | meridiemParse: /vm|nm/i,
|
10343 | isPM: function(input) {
|
10344 | return /^nm$/i.test(input);
|
10345 | },
|
10346 | meridiem: function(hours, minutes, isLower) {
|
10347 | if (hours < 12) {
|
10348 | return isLower ? "vm" : "VM";
|
10349 | } else {
|
10350 | return isLower ? "nm" : "NM";
|
10351 | }
|
10352 | },
|
10353 | longDateFormat: {
|
10354 | LT: "HH:mm",
|
10355 | LTS: "HH:mm:ss",
|
10356 | L: "DD/MM/YYYY",
|
10357 | LL: "D MMMM YYYY",
|
10358 | LLL: "D MMMM YYYY HH:mm",
|
10359 | LLLL: "dddd, D MMMM YYYY HH:mm"
|
10360 | },
|
10361 | calendar: {
|
10362 | sameDay: "[Vandag om] LT",
|
10363 | nextDay: "[M\xF4re om] LT",
|
10364 | nextWeek: "dddd [om] LT",
|
10365 | lastDay: "[Gister om] LT",
|
10366 | lastWeek: "[Laas] dddd [om] LT",
|
10367 | sameElse: "L"
|
10368 | },
|
10369 | relativeTime: {
|
10370 | future: "oor %s",
|
10371 | past: "%s gelede",
|
10372 | s: "'n paar sekondes",
|
10373 | ss: "%d sekondes",
|
10374 | m: "'n minuut",
|
10375 | mm: "%d minute",
|
10376 | h: "'n uur",
|
10377 | hh: "%d ure",
|
10378 | d: "'n dag",
|
10379 | dd: "%d dae",
|
10380 | M: "'n maand",
|
10381 | MM: "%d maande",
|
10382 | y: "'n jaar",
|
10383 | yy: "%d jaar"
|
10384 | },
|
10385 | dayOfMonthOrdinalParse: /\d{1,2}(ste|de)/,
|
10386 | ordinal: function(number) {
|
10387 | return number + (number === 1 || number === 8 || number >= 20 ? "ste" : "de");
|
10388 | },
|
10389 | week: {
|
10390 | dow: 1,
|
10391 | doy: 4
|
10392 | }
|
10393 | });
|
10394 | return af;
|
10395 | });
|
10396 | })();
|
10397 | (function(module2, exports2) {
|
10398 | (function(global2, factory) {
|
10399 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10400 | })(commonjsGlobal, function(moment2) {
|
10401 |
|
10402 | var monthsStrictRegex = /^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, monthsShortStrictRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i, monthsRegex = /(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i, monthsParse = [
|
10403 | /^janv/i,
|
10404 | /^févr/i,
|
10405 | /^mars/i,
|
10406 | /^avr/i,
|
10407 | /^mai/i,
|
10408 | /^juin/i,
|
10409 | /^juil/i,
|
10410 | /^août/i,
|
10411 | /^sept/i,
|
10412 | /^oct/i,
|
10413 | /^nov/i,
|
10414 | /^déc/i
|
10415 | ];
|
10416 | var fr = moment2.defineLocale("fr", {
|
10417 | months: "janvier_f\xE9vrier_mars_avril_mai_juin_juillet_ao\xFBt_septembre_octobre_novembre_d\xE9cembre".split("_"),
|
10418 | monthsShort: "janv._f\xE9vr._mars_avr._mai_juin_juil._ao\xFBt_sept._oct._nov._d\xE9c.".split("_"),
|
10419 | monthsRegex,
|
10420 | monthsShortRegex: monthsRegex,
|
10421 | monthsStrictRegex,
|
10422 | monthsShortStrictRegex,
|
10423 | monthsParse,
|
10424 | longMonthsParse: monthsParse,
|
10425 | shortMonthsParse: monthsParse,
|
10426 | weekdays: "dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),
|
10427 | weekdaysShort: "dim._lun._mar._mer._jeu._ven._sam.".split("_"),
|
10428 | weekdaysMin: "di_lu_ma_me_je_ve_sa".split("_"),
|
10429 | weekdaysParseExact: true,
|
10430 | longDateFormat: {
|
10431 | LT: "HH:mm",
|
10432 | LTS: "HH:mm:ss",
|
10433 | L: "DD/MM/YYYY",
|
10434 | LL: "D MMMM YYYY",
|
10435 | LLL: "D MMMM YYYY HH:mm",
|
10436 | LLLL: "dddd D MMMM YYYY HH:mm"
|
10437 | },
|
10438 | calendar: {
|
10439 | sameDay: "[Aujourd\u2019hui \xE0] LT",
|
10440 | nextDay: "[Demain \xE0] LT",
|
10441 | nextWeek: "dddd [\xE0] LT",
|
10442 | lastDay: "[Hier \xE0] LT",
|
10443 | lastWeek: "dddd [dernier \xE0] LT",
|
10444 | sameElse: "L"
|
10445 | },
|
10446 | relativeTime: {
|
10447 | future: "dans %s",
|
10448 | past: "il y a %s",
|
10449 | s: "quelques secondes",
|
10450 | ss: "%d secondes",
|
10451 | m: "une minute",
|
10452 | mm: "%d minutes",
|
10453 | h: "une heure",
|
10454 | hh: "%d heures",
|
10455 | d: "un jour",
|
10456 | dd: "%d jours",
|
10457 | w: "une semaine",
|
10458 | ww: "%d semaines",
|
10459 | M: "un mois",
|
10460 | MM: "%d mois",
|
10461 | y: "un an",
|
10462 | yy: "%d ans"
|
10463 | },
|
10464 | dayOfMonthOrdinalParse: /\d{1,2}(er|)/,
|
10465 | ordinal: function(number, period) {
|
10466 | switch (period) {
|
10467 | case "D":
|
10468 | return number + (number === 1 ? "er" : "");
|
10469 | default:
|
10470 | case "M":
|
10471 | case "Q":
|
10472 | case "DDD":
|
10473 | case "d":
|
10474 | return number + (number === 1 ? "er" : "e");
|
10475 | case "w":
|
10476 | case "W":
|
10477 | return number + (number === 1 ? "re" : "e");
|
10478 | }
|
10479 | },
|
10480 | week: {
|
10481 | dow: 1,
|
10482 | doy: 4
|
10483 | }
|
10484 | });
|
10485 | return fr;
|
10486 | });
|
10487 | })();
|
10488 | (function(module2, exports2) {
|
10489 | (function(global2, factory) {
|
10490 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10491 | })(commonjsGlobal, function(moment2) {
|
10492 |
|
10493 | function processRelativeTime(number, withoutSuffix, key, isFuture) {
|
10494 | var format = {
|
10495 | m: ["eine Minute", "einer Minute"],
|
10496 | h: ["eine Stunde", "einer Stunde"],
|
10497 | d: ["ein Tag", "einem Tag"],
|
10498 | dd: [number + " Tage", number + " Tagen"],
|
10499 | w: ["eine Woche", "einer Woche"],
|
10500 | M: ["ein Monat", "einem Monat"],
|
10501 | MM: [number + " Monate", number + " Monaten"],
|
10502 | y: ["ein Jahr", "einem Jahr"],
|
10503 | yy: [number + " Jahre", number + " Jahren"]
|
10504 | };
|
10505 | return withoutSuffix ? format[key][0] : format[key][1];
|
10506 | }
|
10507 | var de = moment2.defineLocale("de", {
|
10508 | months: "Januar_Februar_M\xE4rz_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
|
10509 | monthsShort: "Jan._Feb._M\xE4rz_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),
|
10510 | monthsParseExact: true,
|
10511 | weekdays: "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
|
10512 | weekdaysShort: "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
|
10513 | weekdaysMin: "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
|
10514 | weekdaysParseExact: true,
|
10515 | longDateFormat: {
|
10516 | LT: "HH:mm",
|
10517 | LTS: "HH:mm:ss",
|
10518 | L: "DD.MM.YYYY",
|
10519 | LL: "D. MMMM YYYY",
|
10520 | LLL: "D. MMMM YYYY HH:mm",
|
10521 | LLLL: "dddd, D. MMMM YYYY HH:mm"
|
10522 | },
|
10523 | calendar: {
|
10524 | sameDay: "[heute um] LT [Uhr]",
|
10525 | sameElse: "L",
|
10526 | nextDay: "[morgen um] LT [Uhr]",
|
10527 | nextWeek: "dddd [um] LT [Uhr]",
|
10528 | lastDay: "[gestern um] LT [Uhr]",
|
10529 | lastWeek: "[letzten] dddd [um] LT [Uhr]"
|
10530 | },
|
10531 | relativeTime: {
|
10532 | future: "in %s",
|
10533 | past: "vor %s",
|
10534 | s: "ein paar Sekunden",
|
10535 | ss: "%d Sekunden",
|
10536 | m: processRelativeTime,
|
10537 | mm: "%d Minuten",
|
10538 | h: processRelativeTime,
|
10539 | hh: "%d Stunden",
|
10540 | d: processRelativeTime,
|
10541 | dd: processRelativeTime,
|
10542 | w: processRelativeTime,
|
10543 | ww: "%d Wochen",
|
10544 | M: processRelativeTime,
|
10545 | MM: processRelativeTime,
|
10546 | y: processRelativeTime,
|
10547 | yy: processRelativeTime
|
10548 | },
|
10549 | dayOfMonthOrdinalParse: /\d{1,2}\./,
|
10550 | ordinal: "%d.",
|
10551 | week: {
|
10552 | dow: 1,
|
10553 | doy: 4
|
10554 | }
|
10555 | });
|
10556 | return de;
|
10557 | });
|
10558 | })();
|
10559 | (function(module2, exports2) {
|
10560 | (function(global2, factory) {
|
10561 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10562 | })(commonjsGlobal, function(moment2) {
|
10563 |
|
10564 | function isFunction2(input) {
|
10565 | return typeof Function !== "undefined" && input instanceof Function || Object.prototype.toString.call(input) === "[object Function]";
|
10566 | }
|
10567 | var el = moment2.defineLocale("el", {
|
10568 | monthsNominativeEl: "\u0399\u03B1\u03BD\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2_\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03AC\u03C1\u03B9\u03BF\u03C2_\u039C\u03AC\u03C1\u03C4\u03B9\u03BF\u03C2_\u0391\u03C0\u03C1\u03AF\u03BB\u03B9\u03BF\u03C2_\u039C\u03AC\u03B9\u03BF\u03C2_\u0399\u03BF\u03CD\u03BD\u03B9\u03BF\u03C2_\u0399\u03BF\u03CD\u03BB\u03B9\u03BF\u03C2_\u0391\u03CD\u03B3\u03BF\u03C5\u03C3\u03C4\u03BF\u03C2_\u03A3\u03B5\u03C0\u03C4\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2_\u039F\u03BA\u03C4\u03CE\u03B2\u03C1\u03B9\u03BF\u03C2_\u039D\u03BF\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2_\u0394\u03B5\u03BA\u03AD\u03BC\u03B2\u03C1\u03B9\u03BF\u03C2".split("_"),
|
10569 | monthsGenitiveEl: "\u0399\u03B1\u03BD\u03BF\u03C5\u03B1\u03C1\u03AF\u03BF\u03C5_\u03A6\u03B5\u03B2\u03C1\u03BF\u03C5\u03B1\u03C1\u03AF\u03BF\u03C5_\u039C\u03B1\u03C1\u03C4\u03AF\u03BF\u03C5_\u0391\u03C0\u03C1\u03B9\u03BB\u03AF\u03BF\u03C5_\u039C\u03B1\u0390\u03BF\u03C5_\u0399\u03BF\u03C5\u03BD\u03AF\u03BF\u03C5_\u0399\u03BF\u03C5\u03BB\u03AF\u03BF\u03C5_\u0391\u03C5\u03B3\u03BF\u03CD\u03C3\u03C4\u03BF\u03C5_\u03A3\u03B5\u03C0\u03C4\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5_\u039F\u03BA\u03C4\u03C9\u03B2\u03C1\u03AF\u03BF\u03C5_\u039D\u03BF\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5_\u0394\u03B5\u03BA\u03B5\u03BC\u03B2\u03C1\u03AF\u03BF\u03C5".split("_"),
|
10570 | months: function(momentToFormat, format) {
|
10571 | if (!momentToFormat) {
|
10572 | return this._monthsNominativeEl;
|
10573 | } else if (typeof format === "string" && /D/.test(format.substring(0, format.indexOf("MMMM")))) {
|
10574 | return this._monthsGenitiveEl[momentToFormat.month()];
|
10575 | } else {
|
10576 | return this._monthsNominativeEl[momentToFormat.month()];
|
10577 | }
|
10578 | },
|
10579 | monthsShort: "\u0399\u03B1\u03BD_\u03A6\u03B5\u03B2_\u039C\u03B1\u03C1_\u0391\u03C0\u03C1_\u039C\u03B1\u03CA_\u0399\u03BF\u03C5\u03BD_\u0399\u03BF\u03C5\u03BB_\u0391\u03C5\u03B3_\u03A3\u03B5\u03C0_\u039F\u03BA\u03C4_\u039D\u03BF\u03B5_\u0394\u03B5\u03BA".split("_"),
|
10580 | weekdays: "\u039A\u03C5\u03C1\u03B9\u03B1\u03BA\u03AE_\u0394\u03B5\u03C5\u03C4\u03AD\u03C1\u03B1_\u03A4\u03C1\u03AF\u03C4\u03B7_\u03A4\u03B5\u03C4\u03AC\u03C1\u03C4\u03B7_\u03A0\u03AD\u03BC\u03C0\u03C4\u03B7_\u03A0\u03B1\u03C1\u03B1\u03C3\u03BA\u03B5\u03C5\u03AE_\u03A3\u03AC\u03B2\u03B2\u03B1\u03C4\u03BF".split("_"),
|
10581 | weekdaysShort: "\u039A\u03C5\u03C1_\u0394\u03B5\u03C5_\u03A4\u03C1\u03B9_\u03A4\u03B5\u03C4_\u03A0\u03B5\u03BC_\u03A0\u03B1\u03C1_\u03A3\u03B1\u03B2".split("_"),
|
10582 | weekdaysMin: "\u039A\u03C5_\u0394\u03B5_\u03A4\u03C1_\u03A4\u03B5_\u03A0\u03B5_\u03A0\u03B1_\u03A3\u03B1".split("_"),
|
10583 | meridiem: function(hours, minutes, isLower) {
|
10584 | if (hours > 11) {
|
10585 | return isLower ? "\u03BC\u03BC" : "\u039C\u039C";
|
10586 | } else {
|
10587 | return isLower ? "\u03C0\u03BC" : "\u03A0\u039C";
|
10588 | }
|
10589 | },
|
10590 | isPM: function(input) {
|
10591 | return (input + "").toLowerCase()[0] === "\u03BC";
|
10592 | },
|
10593 | meridiemParse: /[ΠΜ]\.?Μ?\.?/i,
|
10594 | longDateFormat: {
|
10595 | LT: "h:mm A",
|
10596 | LTS: "h:mm:ss A",
|
10597 | L: "DD/MM/YYYY",
|
10598 | LL: "D MMMM YYYY",
|
10599 | LLL: "D MMMM YYYY h:mm A",
|
10600 | LLLL: "dddd, D MMMM YYYY h:mm A"
|
10601 | },
|
10602 | calendarEl: {
|
10603 | sameDay: "[\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1 {}] LT",
|
10604 | nextDay: "[\u0391\u03CD\u03C1\u03B9\u03BF {}] LT",
|
10605 | nextWeek: "dddd [{}] LT",
|
10606 | lastDay: "[\u03A7\u03B8\u03B5\u03C2 {}] LT",
|
10607 | lastWeek: function() {
|
10608 | switch (this.day()) {
|
10609 | case 6:
|
10610 | return "[\u03C4\u03BF \u03C0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF] dddd [{}] LT";
|
10611 | default:
|
10612 | return "[\u03C4\u03B7\u03BD \u03C0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7] dddd [{}] LT";
|
10613 | }
|
10614 | },
|
10615 | sameElse: "L"
|
10616 | },
|
10617 | calendar: function(key, mom) {
|
10618 | var output = this._calendarEl[key], hours = mom && mom.hours();
|
10619 | if (isFunction2(output)) {
|
10620 | output = output.apply(mom);
|
10621 | }
|
10622 | return output.replace("{}", hours % 12 === 1 ? "\u03C3\u03C4\u03B7" : "\u03C3\u03C4\u03B9\u03C2");
|
10623 | },
|
10624 | relativeTime: {
|
10625 | future: "\u03C3\u03B5 %s",
|
10626 | past: "%s \u03C0\u03C1\u03B9\u03BD",
|
10627 | s: "\u03BB\u03AF\u03B3\u03B1 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1",
|
10628 | ss: "%d \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1",
|
10629 | m: "\u03AD\u03BD\u03B1 \u03BB\u03B5\u03C0\u03C4\u03CC",
|
10630 | mm: "%d \u03BB\u03B5\u03C0\u03C4\u03AC",
|
10631 | h: "\u03BC\u03AF\u03B1 \u03CE\u03C1\u03B1",
|
10632 | hh: "%d \u03CE\u03C1\u03B5\u03C2",
|
10633 | d: "\u03BC\u03AF\u03B1 \u03BC\u03AD\u03C1\u03B1",
|
10634 | dd: "%d \u03BC\u03AD\u03C1\u03B5\u03C2",
|
10635 | M: "\u03AD\u03BD\u03B1\u03C2 \u03BC\u03AE\u03BD\u03B1\u03C2",
|
10636 | MM: "%d \u03BC\u03AE\u03BD\u03B5\u03C2",
|
10637 | y: "\u03AD\u03BD\u03B1\u03C2 \u03C7\u03C1\u03CC\u03BD\u03BF\u03C2",
|
10638 | yy: "%d \u03C7\u03C1\u03CC\u03BD\u03B9\u03B1"
|
10639 | },
|
10640 | dayOfMonthOrdinalParse: /\d{1,2}η/,
|
10641 | ordinal: "%d\u03B7",
|
10642 | week: {
|
10643 | dow: 1,
|
10644 | doy: 4
|
10645 | }
|
10646 | });
|
10647 | return el;
|
10648 | });
|
10649 | })();
|
10650 | (function(module2, exports2) {
|
10651 | (function(global2, factory) {
|
10652 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10653 | })(commonjsGlobal, function(moment2) {
|
10654 |
|
10655 | var id = moment2.defineLocale("id", {
|
10656 | months: "Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),
|
10657 | monthsShort: "Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),
|
10658 | weekdays: "Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),
|
10659 | weekdaysShort: "Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),
|
10660 | weekdaysMin: "Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),
|
10661 | longDateFormat: {
|
10662 | LT: "HH.mm",
|
10663 | LTS: "HH.mm.ss",
|
10664 | L: "DD/MM/YYYY",
|
10665 | LL: "D MMMM YYYY",
|
10666 | LLL: "D MMMM YYYY [pukul] HH.mm",
|
10667 | LLLL: "dddd, D MMMM YYYY [pukul] HH.mm"
|
10668 | },
|
10669 | meridiemParse: /pagi|siang|sore|malam/,
|
10670 | meridiemHour: function(hour, meridiem) {
|
10671 | if (hour === 12) {
|
10672 | hour = 0;
|
10673 | }
|
10674 | if (meridiem === "pagi") {
|
10675 | return hour;
|
10676 | } else if (meridiem === "siang") {
|
10677 | return hour >= 11 ? hour : hour + 12;
|
10678 | } else if (meridiem === "sore" || meridiem === "malam") {
|
10679 | return hour + 12;
|
10680 | }
|
10681 | },
|
10682 | meridiem: function(hours, minutes, isLower) {
|
10683 | if (hours < 11) {
|
10684 | return "pagi";
|
10685 | } else if (hours < 15) {
|
10686 | return "siang";
|
10687 | } else if (hours < 19) {
|
10688 | return "sore";
|
10689 | } else {
|
10690 | return "malam";
|
10691 | }
|
10692 | },
|
10693 | calendar: {
|
10694 | sameDay: "[Hari ini pukul] LT",
|
10695 | nextDay: "[Besok pukul] LT",
|
10696 | nextWeek: "dddd [pukul] LT",
|
10697 | lastDay: "[Kemarin pukul] LT",
|
10698 | lastWeek: "dddd [lalu pukul] LT",
|
10699 | sameElse: "L"
|
10700 | },
|
10701 | relativeTime: {
|
10702 | future: "dalam %s",
|
10703 | past: "%s yang lalu",
|
10704 | s: "beberapa detik",
|
10705 | ss: "%d detik",
|
10706 | m: "semenit",
|
10707 | mm: "%d menit",
|
10708 | h: "sejam",
|
10709 | hh: "%d jam",
|
10710 | d: "sehari",
|
10711 | dd: "%d hari",
|
10712 | M: "sebulan",
|
10713 | MM: "%d bulan",
|
10714 | y: "setahun",
|
10715 | yy: "%d tahun"
|
10716 | },
|
10717 | week: {
|
10718 | dow: 0,
|
10719 | doy: 6
|
10720 | }
|
10721 | });
|
10722 | return id;
|
10723 | });
|
10724 | })();
|
10725 | (function(module2, exports2) {
|
10726 | (function(global2, factory) {
|
10727 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10728 | })(commonjsGlobal, function(moment2) {
|
10729 |
|
10730 | var ja = moment2.defineLocale("ja", {
|
10731 | eras: [
|
10732 | {
|
10733 | since: "2019-05-01",
|
10734 | offset: 1,
|
10735 | name: "\u4EE4\u548C",
|
10736 | narrow: "\u32FF",
|
10737 | abbr: "R"
|
10738 | },
|
10739 | {
|
10740 | since: "1989-01-08",
|
10741 | until: "2019-04-30",
|
10742 | offset: 1,
|
10743 | name: "\u5E73\u6210",
|
10744 | narrow: "\u337B",
|
10745 | abbr: "H"
|
10746 | },
|
10747 | {
|
10748 | since: "1926-12-25",
|
10749 | until: "1989-01-07",
|
10750 | offset: 1,
|
10751 | name: "\u662D\u548C",
|
10752 | narrow: "\u337C",
|
10753 | abbr: "S"
|
10754 | },
|
10755 | {
|
10756 | since: "1912-07-30",
|
10757 | until: "1926-12-24",
|
10758 | offset: 1,
|
10759 | name: "\u5927\u6B63",
|
10760 | narrow: "\u337D",
|
10761 | abbr: "T"
|
10762 | },
|
10763 | {
|
10764 | since: "1873-01-01",
|
10765 | until: "1912-07-29",
|
10766 | offset: 6,
|
10767 | name: "\u660E\u6CBB",
|
10768 | narrow: "\u337E",
|
10769 | abbr: "M"
|
10770 | },
|
10771 | {
|
10772 | since: "0001-01-01",
|
10773 | until: "1873-12-31",
|
10774 | offset: 1,
|
10775 | name: "\u897F\u66A6",
|
10776 | narrow: "AD",
|
10777 | abbr: "AD"
|
10778 | },
|
10779 | {
|
10780 | since: "0000-12-31",
|
10781 | until: -Infinity,
|
10782 | offset: 1,
|
10783 | name: "\u7D00\u5143\u524D",
|
10784 | narrow: "BC",
|
10785 | abbr: "BC"
|
10786 | }
|
10787 | ],
|
10788 | eraYearOrdinalRegex: /(元|\d+)年/,
|
10789 | eraYearOrdinalParse: function(input, match) {
|
10790 | return match[1] === "\u5143" ? 1 : parseInt(match[1] || input, 10);
|
10791 | },
|
10792 | months: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),
|
10793 | monthsShort: "1\u6708_2\u6708_3\u6708_4\u6708_5\u6708_6\u6708_7\u6708_8\u6708_9\u6708_10\u6708_11\u6708_12\u6708".split("_"),
|
10794 | weekdays: "\u65E5\u66DC\u65E5_\u6708\u66DC\u65E5_\u706B\u66DC\u65E5_\u6C34\u66DC\u65E5_\u6728\u66DC\u65E5_\u91D1\u66DC\u65E5_\u571F\u66DC\u65E5".split("_"),
|
10795 | weekdaysShort: "\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),
|
10796 | weekdaysMin: "\u65E5_\u6708_\u706B_\u6C34_\u6728_\u91D1_\u571F".split("_"),
|
10797 | longDateFormat: {
|
10798 | LT: "HH:mm",
|
10799 | LTS: "HH:mm:ss",
|
10800 | L: "YYYY/MM/DD",
|
10801 | LL: "YYYY\u5E74M\u6708D\u65E5",
|
10802 | LLL: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
|
10803 | LLLL: "YYYY\u5E74M\u6708D\u65E5 dddd HH:mm",
|
10804 | l: "YYYY/MM/DD",
|
10805 | ll: "YYYY\u5E74M\u6708D\u65E5",
|
10806 | lll: "YYYY\u5E74M\u6708D\u65E5 HH:mm",
|
10807 | llll: "YYYY\u5E74M\u6708D\u65E5(ddd) HH:mm"
|
10808 | },
|
10809 | meridiemParse: /午前|午後/i,
|
10810 | isPM: function(input) {
|
10811 | return input === "\u5348\u5F8C";
|
10812 | },
|
10813 | meridiem: function(hour, minute, isLower) {
|
10814 | if (hour < 12) {
|
10815 | return "\u5348\u524D";
|
10816 | } else {
|
10817 | return "\u5348\u5F8C";
|
10818 | }
|
10819 | },
|
10820 | calendar: {
|
10821 | sameDay: "[\u4ECA\u65E5] LT",
|
10822 | nextDay: "[\u660E\u65E5] LT",
|
10823 | nextWeek: function(now2) {
|
10824 | if (now2.week() !== this.week()) {
|
10825 | return "[\u6765\u9031]dddd LT";
|
10826 | } else {
|
10827 | return "dddd LT";
|
10828 | }
|
10829 | },
|
10830 | lastDay: "[\u6628\u65E5] LT",
|
10831 | lastWeek: function(now2) {
|
10832 | if (this.week() !== now2.week()) {
|
10833 | return "[\u5148\u9031]dddd LT";
|
10834 | } else {
|
10835 | return "dddd LT";
|
10836 | }
|
10837 | },
|
10838 | sameElse: "L"
|
10839 | },
|
10840 | dayOfMonthOrdinalParse: /\d{1,2}日/,
|
10841 | ordinal: function(number, period) {
|
10842 | switch (period) {
|
10843 | case "y":
|
10844 | return number === 1 ? "\u5143\u5E74" : number + "\u5E74";
|
10845 | case "d":
|
10846 | case "D":
|
10847 | case "DDD":
|
10848 | return number + "\u65E5";
|
10849 | default:
|
10850 | return number;
|
10851 | }
|
10852 | },
|
10853 | relativeTime: {
|
10854 | future: "%s\u5F8C",
|
10855 | past: "%s\u524D",
|
10856 | s: "\u6570\u79D2",
|
10857 | ss: "%d\u79D2",
|
10858 | m: "1\u5206",
|
10859 | mm: "%d\u5206",
|
10860 | h: "1\u6642\u9593",
|
10861 | hh: "%d\u6642\u9593",
|
10862 | d: "1\u65E5",
|
10863 | dd: "%d\u65E5",
|
10864 | M: "1\u30F6\u6708",
|
10865 | MM: "%d\u30F6\u6708",
|
10866 | y: "1\u5E74",
|
10867 | yy: "%d\u5E74"
|
10868 | }
|
10869 | });
|
10870 | return ja;
|
10871 | });
|
10872 | })();
|
10873 | (function(module2, exports2) {
|
10874 | (function(global2, factory) {
|
10875 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10876 | })(commonjsGlobal, function(moment2) {
|
10877 |
|
10878 | var ko = moment2.defineLocale("ko", {
|
10879 | months: "1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),
|
10880 | monthsShort: "1\uC6D4_2\uC6D4_3\uC6D4_4\uC6D4_5\uC6D4_6\uC6D4_7\uC6D4_8\uC6D4_9\uC6D4_10\uC6D4_11\uC6D4_12\uC6D4".split("_"),
|
10881 | weekdays: "\uC77C\uC694\uC77C_\uC6D4\uC694\uC77C_\uD654\uC694\uC77C_\uC218\uC694\uC77C_\uBAA9\uC694\uC77C_\uAE08\uC694\uC77C_\uD1A0\uC694\uC77C".split("_"),
|
10882 | weekdaysShort: "\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),
|
10883 | weekdaysMin: "\uC77C_\uC6D4_\uD654_\uC218_\uBAA9_\uAE08_\uD1A0".split("_"),
|
10884 | longDateFormat: {
|
10885 | LT: "A h:mm",
|
10886 | LTS: "A h:mm:ss",
|
10887 | L: "YYYY.MM.DD.",
|
10888 | LL: "YYYY\uB144 MMMM D\uC77C",
|
10889 | LLL: "YYYY\uB144 MMMM D\uC77C A h:mm",
|
10890 | LLLL: "YYYY\uB144 MMMM D\uC77C dddd A h:mm",
|
10891 | l: "YYYY.MM.DD.",
|
10892 | ll: "YYYY\uB144 MMMM D\uC77C",
|
10893 | lll: "YYYY\uB144 MMMM D\uC77C A h:mm",
|
10894 | llll: "YYYY\uB144 MMMM D\uC77C dddd A h:mm"
|
10895 | },
|
10896 | calendar: {
|
10897 | sameDay: "\uC624\uB298 LT",
|
10898 | nextDay: "\uB0B4\uC77C LT",
|
10899 | nextWeek: "dddd LT",
|
10900 | lastDay: "\uC5B4\uC81C LT",
|
10901 | lastWeek: "\uC9C0\uB09C\uC8FC dddd LT",
|
10902 | sameElse: "L"
|
10903 | },
|
10904 | relativeTime: {
|
10905 | future: "%s \uD6C4",
|
10906 | past: "%s \uC804",
|
10907 | s: "\uBA87 \uCD08",
|
10908 | ss: "%d\uCD08",
|
10909 | m: "1\uBD84",
|
10910 | mm: "%d\uBD84",
|
10911 | h: "\uD55C \uC2DC\uAC04",
|
10912 | hh: "%d\uC2DC\uAC04",
|
10913 | d: "\uD558\uB8E8",
|
10914 | dd: "%d\uC77C",
|
10915 | M: "\uD55C \uB2EC",
|
10916 | MM: "%d\uB2EC",
|
10917 | y: "\uC77C \uB144",
|
10918 | yy: "%d\uB144"
|
10919 | },
|
10920 | dayOfMonthOrdinalParse: /\d{1,2}(일|월|주)/,
|
10921 | ordinal: function(number, period) {
|
10922 | switch (period) {
|
10923 | case "d":
|
10924 | case "D":
|
10925 | case "DDD":
|
10926 | return number + "\uC77C";
|
10927 | case "M":
|
10928 | return number + "\uC6D4";
|
10929 | case "w":
|
10930 | case "W":
|
10931 | return number + "\uC8FC";
|
10932 | default:
|
10933 | return number;
|
10934 | }
|
10935 | },
|
10936 | meridiemParse: /오전|오후/,
|
10937 | isPM: function(token) {
|
10938 | return token === "\uC624\uD6C4";
|
10939 | },
|
10940 | meridiem: function(hour, minute, isUpper) {
|
10941 | return hour < 12 ? "\uC624\uC804" : "\uC624\uD6C4";
|
10942 | }
|
10943 | });
|
10944 | return ko;
|
10945 | });
|
10946 | })();
|
10947 | (function(module2, exports2) {
|
10948 | (function(global2, factory) {
|
10949 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
10950 | })(commonjsGlobal, function(moment2) {
|
10951 |
|
10952 | var pt = moment2.defineLocale("pt", {
|
10953 | months: "janeiro_fevereiro_mar\xE7o_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),
|
10954 | monthsShort: "jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),
|
10955 | weekdays: "Domingo_Segunda-feira_Ter\xE7a-feira_Quarta-feira_Quinta-feira_Sexta-feira_S\xE1bado".split("_"),
|
10956 | weekdaysShort: "Dom_Seg_Ter_Qua_Qui_Sex_S\xE1b".split("_"),
|
10957 | weekdaysMin: "Do_2\xAA_3\xAA_4\xAA_5\xAA_6\xAA_S\xE1".split("_"),
|
10958 | weekdaysParseExact: true,
|
10959 | longDateFormat: {
|
10960 | LT: "HH:mm",
|
10961 | LTS: "HH:mm:ss",
|
10962 | L: "DD/MM/YYYY",
|
10963 | LL: "D [de] MMMM [de] YYYY",
|
10964 | LLL: "D [de] MMMM [de] YYYY HH:mm",
|
10965 | LLLL: "dddd, D [de] MMMM [de] YYYY HH:mm"
|
10966 | },
|
10967 | calendar: {
|
10968 | sameDay: "[Hoje \xE0s] LT",
|
10969 | nextDay: "[Amanh\xE3 \xE0s] LT",
|
10970 | nextWeek: "dddd [\xE0s] LT",
|
10971 | lastDay: "[Ontem \xE0s] LT",
|
10972 | lastWeek: function() {
|
10973 | return this.day() === 0 || this.day() === 6 ? "[\xDAltimo] dddd [\xE0s] LT" : "[\xDAltima] dddd [\xE0s] LT";
|
10974 | },
|
10975 | sameElse: "L"
|
10976 | },
|
10977 | relativeTime: {
|
10978 | future: "em %s",
|
10979 | past: "h\xE1 %s",
|
10980 | s: "segundos",
|
10981 | ss: "%d segundos",
|
10982 | m: "um minuto",
|
10983 | mm: "%d minutos",
|
10984 | h: "uma hora",
|
10985 | hh: "%d horas",
|
10986 | d: "um dia",
|
10987 | dd: "%d dias",
|
10988 | w: "uma semana",
|
10989 | ww: "%d semanas",
|
10990 | M: "um m\xEAs",
|
10991 | MM: "%d meses",
|
10992 | y: "um ano",
|
10993 | yy: "%d anos"
|
10994 | },
|
10995 | dayOfMonthOrdinalParse: /\d{1,2}º/,
|
10996 | ordinal: "%d\xBA",
|
10997 | week: {
|
10998 | dow: 1,
|
10999 | doy: 4
|
11000 | }
|
11001 | });
|
11002 | return pt;
|
11003 | });
|
11004 | })();
|
11005 | (function(module2, exports2) {
|
11006 | (function(global2, factory) {
|
11007 | typeof commonjsRequire === "function" ? factory(moment.exports) : factory(global2.moment);
|
11008 | })(commonjsGlobal, function(moment2) {
|
11009 |
|
11010 | var th = moment2.defineLocale("th", {
|
11011 | months: "\u0E21\u0E01\u0E23\u0E32\u0E04\u0E21_\u0E01\u0E38\u0E21\u0E20\u0E32\u0E1E\u0E31\u0E19\u0E18\u0E4C_\u0E21\u0E35\u0E19\u0E32\u0E04\u0E21_\u0E40\u0E21\u0E29\u0E32\u0E22\u0E19_\u0E1E\u0E24\u0E29\u0E20\u0E32\u0E04\u0E21_\u0E21\u0E34\u0E16\u0E38\u0E19\u0E32\u0E22\u0E19_\u0E01\u0E23\u0E01\u0E0E\u0E32\u0E04\u0E21_\u0E2A\u0E34\u0E07\u0E2B\u0E32\u0E04\u0E21_\u0E01\u0E31\u0E19\u0E22\u0E32\u0E22\u0E19_\u0E15\u0E38\u0E25\u0E32\u0E04\u0E21_\u0E1E\u0E24\u0E28\u0E08\u0E34\u0E01\u0E32\u0E22\u0E19_\u0E18\u0E31\u0E19\u0E27\u0E32\u0E04\u0E21".split("_"),
|
11012 | monthsShort: "\u0E21.\u0E04._\u0E01.\u0E1E._\u0E21\u0E35.\u0E04._\u0E40\u0E21.\u0E22._\u0E1E.\u0E04._\u0E21\u0E34.\u0E22._\u0E01.\u0E04._\u0E2A.\u0E04._\u0E01.\u0E22._\u0E15.\u0E04._\u0E1E.\u0E22._\u0E18.\u0E04.".split("_"),
|
11013 | monthsParseExact: true,
|
11014 | weekdays: "\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C_\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C_\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23_\u0E1E\u0E38\u0E18_\u0E1E\u0E24\u0E2B\u0E31\u0E2A\u0E1A\u0E14\u0E35_\u0E28\u0E38\u0E01\u0E23\u0E4C_\u0E40\u0E2A\u0E32\u0E23\u0E4C".split("_"),
|
11015 | weekdaysShort: "\u0E2D\u0E32\u0E17\u0E34\u0E15\u0E22\u0E4C_\u0E08\u0E31\u0E19\u0E17\u0E23\u0E4C_\u0E2D\u0E31\u0E07\u0E04\u0E32\u0E23_\u0E1E\u0E38\u0E18_\u0E1E\u0E24\u0E2B\u0E31\u0E2A_\u0E28\u0E38\u0E01\u0E23\u0E4C_\u0E40\u0E2A\u0E32\u0E23\u0E4C".split("_"),
|
11016 | weekdaysMin: "\u0E2D\u0E32._\u0E08._\u0E2D._\u0E1E._\u0E1E\u0E24._\u0E28._\u0E2A.".split("_"),
|
11017 | weekdaysParseExact: true,
|
11018 | longDateFormat: {
|
11019 | LT: "H:mm",
|
11020 | LTS: "H:mm:ss",
|
11021 | L: "DD/MM/YYYY",
|
11022 | LL: "D MMMM YYYY",
|
11023 | LLL: "D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm",
|
11024 | LLLL: "\u0E27\u0E31\u0E19dddd\u0E17\u0E35\u0E48 D MMMM YYYY \u0E40\u0E27\u0E25\u0E32 H:mm"
|
11025 | },
|
11026 | meridiemParse: /ก่อนเที่ยง|หลังเที่ยง/,
|
11027 | isPM: function(input) {
|
11028 | return input === "\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07";
|
11029 | },
|
11030 | meridiem: function(hour, minute, isLower) {
|
11031 | if (hour < 12) {
|
11032 | return "\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07";
|
11033 | } else {
|
11034 | return "\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07";
|
11035 | }
|
11036 | },
|
11037 | calendar: {
|
11038 | sameDay: "[\u0E27\u0E31\u0E19\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",
|
11039 | nextDay: "[\u0E1E\u0E23\u0E38\u0E48\u0E07\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",
|
11040 | nextWeek: "dddd[\u0E2B\u0E19\u0E49\u0E32 \u0E40\u0E27\u0E25\u0E32] LT",
|
11041 | lastDay: "[\u0E40\u0E21\u0E37\u0E48\u0E2D\u0E27\u0E32\u0E19\u0E19\u0E35\u0E49 \u0E40\u0E27\u0E25\u0E32] LT",
|
11042 | lastWeek: "[\u0E27\u0E31\u0E19]dddd[\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27 \u0E40\u0E27\u0E25\u0E32] LT",
|
11043 | sameElse: "L"
|
11044 | },
|
11045 | relativeTime: {
|
11046 | future: "\u0E2D\u0E35\u0E01 %s",
|
11047 | past: "%s\u0E17\u0E35\u0E48\u0E41\u0E25\u0E49\u0E27",
|
11048 | s: "\u0E44\u0E21\u0E48\u0E01\u0E35\u0E48\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35",
|
11049 | ss: "%d \u0E27\u0E34\u0E19\u0E32\u0E17\u0E35",
|
11050 | m: "1 \u0E19\u0E32\u0E17\u0E35",
|
11051 | mm: "%d \u0E19\u0E32\u0E17\u0E35",
|
11052 | h: "1 \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07",
|
11053 | hh: "%d \u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07",
|
11054 | d: "1 \u0E27\u0E31\u0E19",
|
11055 | dd: "%d \u0E27\u0E31\u0E19",
|
11056 | w: "1 \u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C",
|
11057 | ww: "%d \u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C",
|
11058 | M: "1 \u0E40\u0E14\u0E37\u0E2D\u0E19",
|
11059 | MM: "%d \u0E40\u0E14\u0E37\u0E2D\u0E19",
|
11060 | y: "1 \u0E1B\u0E35",
|
11061 | yy: "%d \u0E1B\u0E35"
|
11062 | }
|
11063 | });
|
11064 | return th;
|
11065 | });
|
11066 | })();
|
11067 | var zh_TW$5 = {};
|
11068 | var zh_TW$4 = {};
|
11069 | Object.defineProperty(zh_TW$4, "__esModule", {
|
11070 | value: true
|
11071 | });
|
11072 | zh_TW$4.default = void 0;
|
11073 | var _default$r = {
|
11074 | items_per_page: "\u689D/\u9801",
|
11075 | jump_to: "\u8DF3\u81F3",
|
11076 | jump_to_confirm: "\u78BA\u5B9A",
|
11077 | page: "\u9801",
|
11078 | prev_page: "\u4E0A\u4E00\u9801",
|
11079 | next_page: "\u4E0B\u4E00\u9801",
|
11080 | prev_5: "\u5411\u524D 5 \u9801",
|
11081 | next_5: "\u5411\u5F8C 5 \u9801",
|
11082 | prev_3: "\u5411\u524D 3 \u9801",
|
11083 | next_3: "\u5411\u5F8C 3 \u9801",
|
11084 | page_size: "\u9801\u78BC"
|
11085 | };
|
11086 | zh_TW$4.default = _default$r;
|
11087 | var zh_TW$3 = {};
|
11088 | var zh_TW$2 = {};
|
11089 | Object.defineProperty(zh_TW$2, "__esModule", {
|
11090 | value: true
|
11091 | });
|
11092 | zh_TW$2.default = void 0;
|
11093 | var locale$b = {
|
11094 | locale: "zh_TW",
|
11095 | today: "\u4ECA\u5929",
|
11096 | now: "\u6B64\u523B",
|
11097 | backToToday: "\u8FD4\u56DE\u4ECA\u5929",
|
11098 | ok: "\u78BA\u5B9A",
|
11099 | timeSelect: "\u9078\u64C7\u6642\u9593",
|
11100 | dateSelect: "\u9078\u64C7\u65E5\u671F",
|
11101 | weekSelect: "\u9078\u64C7\u5468",
|
11102 | clear: "\u6E05\u9664",
|
11103 | month: "\u6708",
|
11104 | year: "\u5E74",
|
11105 | previousMonth: "\u4E0A\u500B\u6708 (\u7FFB\u9801\u4E0A\u9375)",
|
11106 | nextMonth: "\u4E0B\u500B\u6708 (\u7FFB\u9801\u4E0B\u9375)",
|
11107 | monthSelect: "\u9078\u64C7\u6708\u4EFD",
|
11108 | yearSelect: "\u9078\u64C7\u5E74\u4EFD",
|
11109 | decadeSelect: "\u9078\u64C7\u5E74\u4EE3",
|
11110 | yearFormat: "YYYY\u5E74",
|
11111 | dayFormat: "D\u65E5",
|
11112 | dateFormat: "YYYY\u5E74M\u6708D\u65E5",
|
11113 | dateTimeFormat: "YYYY\u5E74M\u6708D\u65E5 HH\u6642mm\u5206ss\u79D2",
|
11114 | previousYear: "\u4E0A\u4E00\u5E74 (Control\u9375\u52A0\u5DE6\u65B9\u5411\u9375)",
|
11115 | nextYear: "\u4E0B\u4E00\u5E74 (Control\u9375\u52A0\u53F3\u65B9\u5411\u9375)",
|
11116 | previousDecade: "\u4E0A\u4E00\u5E74\u4EE3",
|
11117 | nextDecade: "\u4E0B\u4E00\u5E74\u4EE3",
|
11118 | previousCentury: "\u4E0A\u4E00\u4E16\u7D00",
|
11119 | nextCentury: "\u4E0B\u4E00\u4E16\u7D00"
|
11120 | };
|
11121 | var _default$q = locale$b;
|
11122 | zh_TW$2.default = _default$q;
|
11123 | var zh_TW$1 = {};
|
11124 | (function(exports2) {
|
11125 | Object.defineProperty(exports2, "__esModule", {
|
11126 | value: true
|
11127 | });
|
11128 | exports2["default"] = void 0;
|
11129 | var locale2 = {
|
11130 | placeholder: "\u8ACB\u9078\u64C7\u6642\u9593"
|
11131 | };
|
11132 | var _default2 = locale2;
|
11133 | exports2["default"] = _default2;
|
11134 | })(zh_TW$1);
|
11135 | (function(exports2) {
|
11136 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11137 | Object.defineProperty(exports2, "__esModule", {
|
11138 | value: true
|
11139 | });
|
11140 | exports2["default"] = void 0;
|
11141 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
11142 | var _zh_TW = _interopRequireDefault2(zh_TW$2);
|
11143 | var _zh_TW2 = _interopRequireDefault2(zh_TW$1);
|
11144 | var locale2 = {
|
11145 | lang: (0, _extends2["default"])({
|
11146 | placeholder: "\u8ACB\u9078\u64C7\u65E5\u671F",
|
11147 | yearPlaceholder: "\u8ACB\u9078\u64C7\u5E74\u4EFD",
|
11148 | quarterPlaceholder: "\u8ACB\u9078\u64C7\u5B63\u5EA6",
|
11149 | monthPlaceholder: "\u8ACB\u9078\u64C7\u6708\u4EFD",
|
11150 | weekPlaceholder: "\u8ACB\u9078\u64C7\u5468",
|
11151 | rangePlaceholder: ["\u958B\u59CB\u65E5\u671F", "\u7D50\u675F\u65E5\u671F"],
|
11152 | rangeYearPlaceholder: ["\u958B\u59CB\u5E74\u4EFD", "\u7D50\u675F\u5E74\u4EFD"],
|
11153 | rangeMonthPlaceholder: ["\u958B\u59CB\u6708\u4EFD", "\u7D50\u675F\u6708\u4EFD"],
|
11154 | rangeWeekPlaceholder: ["\u958B\u59CB\u5468", "\u7D50\u675F\u5468"]
|
11155 | }, _zh_TW["default"]),
|
11156 | timePickerLocale: (0, _extends2["default"])({}, _zh_TW2["default"])
|
11157 | };
|
11158 | locale2.lang.ok = "\u78BA \u5B9A";
|
11159 | var _default2 = locale2;
|
11160 | exports2["default"] = _default2;
|
11161 | })(zh_TW$3);
|
11162 | var zh_TW = {};
|
11163 | (function(exports2) {
|
11164 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11165 | Object.defineProperty(exports2, "__esModule", {
|
11166 | value: true
|
11167 | });
|
11168 | exports2["default"] = void 0;
|
11169 | var _zh_TW = _interopRequireDefault2(zh_TW$3);
|
11170 | var _default2 = _zh_TW["default"];
|
11171 | exports2["default"] = _default2;
|
11172 | })(zh_TW);
|
11173 | (function(exports2) {
|
11174 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11175 | Object.defineProperty(exports2, "__esModule", {
|
11176 | value: true
|
11177 | });
|
11178 | exports2["default"] = void 0;
|
11179 | var _zh_TW = _interopRequireDefault2(zh_TW$4);
|
11180 | var _zh_TW2 = _interopRequireDefault2(zh_TW$3);
|
11181 | var _zh_TW3 = _interopRequireDefault2(zh_TW$1);
|
11182 | var _zh_TW4 = _interopRequireDefault2(zh_TW);
|
11183 | var typeTemplate = "${label}\u4E0D\u662F\u4E00\u500B\u6709\u6548\u7684${type}";
|
11184 | var localeValues = {
|
11185 | locale: "zh-tw",
|
11186 | Pagination: _zh_TW["default"],
|
11187 | DatePicker: _zh_TW2["default"],
|
11188 | TimePicker: _zh_TW3["default"],
|
11189 | Calendar: _zh_TW4["default"],
|
11190 | global: {
|
11191 | placeholder: "\u8ACB\u9078\u64C7"
|
11192 | },
|
11193 | Table: {
|
11194 | filterTitle: "\u7BE9\u9078\u5668",
|
11195 | filterConfirm: "\u78BA\u5B9A",
|
11196 | filterReset: "\u91CD\u7F6E",
|
11197 | filterEmptyText: "\u7121\u7BE9\u9078\u9805",
|
11198 | selectAll: "\u5168\u90E8\u9078\u53D6",
|
11199 | selectInvert: "\u53CD\u5411\u9078\u53D6",
|
11200 | selectNone: "\u6E05\u7A7A\u6240\u6709",
|
11201 | selectionAll: "\u5168\u9078\u6240\u6709",
|
11202 | sortTitle: "\u6392\u5E8F",
|
11203 | expand: "\u5C55\u958B\u884C",
|
11204 | collapse: "\u95DC\u9589\u884C",
|
11205 | triggerDesc: "\u9EDE\u64CA\u964D\u5E8F",
|
11206 | triggerAsc: "\u9EDE\u64CA\u5347\u5E8F",
|
11207 | cancelSort: "\u53D6\u6D88\u6392\u5E8F"
|
11208 | },
|
11209 | Modal: {
|
11210 | okText: "\u78BA\u5B9A",
|
11211 | cancelText: "\u53D6\u6D88",
|
11212 | justOkText: "\u77E5\u9053\u4E86"
|
11213 | },
|
11214 | Popconfirm: {
|
11215 | okText: "\u78BA\u5B9A",
|
11216 | cancelText: "\u53D6\u6D88"
|
11217 | },
|
11218 | Transfer: {
|
11219 | searchPlaceholder: "\u641C\u5C0B\u8CC7\u6599",
|
11220 | itemUnit: "\u9805\u76EE",
|
11221 | itemsUnit: "\u9805\u76EE",
|
11222 | remove: "\u5220\u9664",
|
11223 | selectCurrent: "\u5168\u9078\u7576\u9801",
|
11224 | removeCurrent: "\u5220\u9664\u7576\u9801",
|
11225 | selectAll: "\u5168\u9078\u6240\u6709",
|
11226 | removeAll: "\u5220\u9664\u5168\u90E8",
|
11227 | selectInvert: "\u53CD\u9078\u7576\u9801"
|
11228 | },
|
11229 | Upload: {
|
11230 | uploading: "\u6B63\u5728\u4E0A\u50B3...",
|
11231 | removeFile: "\u522A\u9664\u6A94\u6848",
|
11232 | uploadError: "\u4E0A\u50B3\u5931\u6557",
|
11233 | previewFile: "\u6A94\u6848\u9810\u89BD",
|
11234 | downloadFile: "\u4E0B\u8F7D\u6587\u4EF6"
|
11235 | },
|
11236 | Empty: {
|
11237 | description: "\u7121\u6B64\u8CC7\u6599"
|
11238 | },
|
11239 | Icon: {
|
11240 | icon: "\u5716\u6A19"
|
11241 | },
|
11242 | Text: {
|
11243 | edit: "\u7DE8\u8F2F",
|
11244 | copy: "\u8907\u88FD",
|
11245 | copied: "\u8907\u88FD\u6210\u529F",
|
11246 | expand: "\u5C55\u958B"
|
11247 | },
|
11248 | PageHeader: {
|
11249 | back: "\u8FD4\u56DE"
|
11250 | },
|
11251 | Form: {
|
11252 | optional: "\uFF08\u53EF\u9078\uFF09",
|
11253 | defaultValidateMessages: {
|
11254 | "default": "\u5B57\u6BB5\u9A57\u8B49\u932F\u8AA4${label}",
|
11255 | required: "\u8ACB\u8F38\u5165${label}",
|
11256 | "enum": "${label}\u5FC5\u9808\u662F\u5176\u4E2D\u4E00\u500B[${enum}]",
|
11257 | whitespace: "${label}\u4E0D\u80FD\u70BA\u7A7A\u5B57\u7B26",
|
11258 | date: {
|
11259 | format: "${label}\u65E5\u671F\u683C\u5F0F\u7121\u6548",
|
11260 | parse: "${label}\u4E0D\u80FD\u8F49\u63DB\u70BA\u65E5\u671F",
|
11261 | invalid: "${label}\u662F\u4E00\u500B\u7121\u6548\u65E5\u671F"
|
11262 | },
|
11263 | types: {
|
11264 | string: typeTemplate,
|
11265 | method: typeTemplate,
|
11266 | array: typeTemplate,
|
11267 | object: typeTemplate,
|
11268 | number: typeTemplate,
|
11269 | date: typeTemplate,
|
11270 | "boolean": typeTemplate,
|
11271 | integer: typeTemplate,
|
11272 | "float": typeTemplate,
|
11273 | regexp: typeTemplate,
|
11274 | email: typeTemplate,
|
11275 | url: typeTemplate,
|
11276 | hex: typeTemplate
|
11277 | },
|
11278 | string: {
|
11279 | len: "${label}\u9808\u70BA${len}\u500B\u5B57\u7B26",
|
11280 | min: "${label}\u6700\u5C11${min}\u500B\u5B57\u7B26",
|
11281 | max: "${label}\u6700\u591A${max}\u500B\u5B57\u7B26",
|
11282 | range: "${label}\u9808\u5728${min}-${max}\u5B57\u7B26\u4E4B\u9593"
|
11283 | },
|
11284 | number: {
|
11285 | len: "${label}\u5FC5\u9808\u7B49\u65BC${len}",
|
11286 | min: "${label}\u6700\u5C0F\u503C\u70BA${min}",
|
11287 | max: "${label}\u6700\u5927\u503C\u70BA${max}",
|
11288 | range: "${label}\u9808\u5728${min}-${max}\u4E4B\u9593"
|
11289 | },
|
11290 | array: {
|
11291 | len: "\u9808\u70BA${len}\u500B${label}",
|
11292 | min: "\u6700\u5C11${min}\u500B${label}",
|
11293 | max: "\u6700\u591A${max}\u500B${label}",
|
11294 | range: "${label}\u6578\u91CF\u9808\u5728${min}-${max}\u4E4B\u9593"
|
11295 | },
|
11296 | pattern: {
|
11297 | mismatch: "${label}\u8207\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"
|
11298 | }
|
11299 | }
|
11300 | },
|
11301 | Image: {
|
11302 | preview: "\u9810\u89BD"
|
11303 | }
|
11304 | };
|
11305 | var _default2 = localeValues;
|
11306 | exports2["default"] = _default2;
|
11307 | })(zh_TW$5);
|
11308 | var zhTW = getDefaultExportFromCjs(zh_TW$5);
|
11309 | var zh_HK = {};
|
11310 | (function(exports2) {
|
11311 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11312 | Object.defineProperty(exports2, "__esModule", {
|
11313 | value: true
|
11314 | });
|
11315 | exports2["default"] = void 0;
|
11316 | var _zh_TW = _interopRequireDefault2(zh_TW$4);
|
11317 | var _zh_TW2 = _interopRequireDefault2(zh_TW$3);
|
11318 | var _zh_TW3 = _interopRequireDefault2(zh_TW$1);
|
11319 | var _zh_TW4 = _interopRequireDefault2(zh_TW);
|
11320 | var typeTemplate = "${label}\u4E0D\u662F\u4E00\u500B\u6709\u6548\u7684${type}";
|
11321 | var localeValues = {
|
11322 | locale: "zh-hk",
|
11323 | Pagination: _zh_TW["default"],
|
11324 | DatePicker: _zh_TW2["default"],
|
11325 | TimePicker: _zh_TW3["default"],
|
11326 | Calendar: _zh_TW4["default"],
|
11327 | global: {
|
11328 | placeholder: "\u8ACB\u9078\u64C7"
|
11329 | },
|
11330 | Table: {
|
11331 | filterTitle: "\u7BE9\u9078\u5668",
|
11332 | filterConfirm: "\u78BA\u5B9A",
|
11333 | filterReset: "\u91CD\u7F6E",
|
11334 | filterEmptyText: "\u7121\u7BE9\u9078\u9805",
|
11335 | selectAll: "\u5168\u90E8\u9078\u53D6",
|
11336 | selectInvert: "\u53CD\u5411\u9078\u53D6",
|
11337 | selectNone: "\u6E05\u7A7A\u6240\u6709",
|
11338 | selectionAll: "\u5168\u9078\u6240\u6709",
|
11339 | sortTitle: "\u6392\u5E8F",
|
11340 | expand: "\u5C55\u958B\u884C",
|
11341 | collapse: "\u95DC\u9589\u884C",
|
11342 | triggerDesc: "\u9EDE\u64CA\u964D\u5E8F",
|
11343 | triggerAsc: "\u9EDE\u64CA\u5347\u5E8F",
|
11344 | cancelSort: "\u53D6\u6D88\u6392\u5E8F"
|
11345 | },
|
11346 | Modal: {
|
11347 | okText: "\u78BA\u5B9A",
|
11348 | cancelText: "\u53D6\u6D88",
|
11349 | justOkText: "\u77E5\u9053\u4E86"
|
11350 | },
|
11351 | Popconfirm: {
|
11352 | okText: "\u78BA\u5B9A",
|
11353 | cancelText: "\u53D6\u6D88"
|
11354 | },
|
11355 | Transfer: {
|
11356 | searchPlaceholder: "\u641C\u5C0B\u8CC7\u6599",
|
11357 | itemUnit: "\u9805\u76EE",
|
11358 | itemsUnit: "\u9805\u76EE",
|
11359 | remove: "\u522A\u9664",
|
11360 | selectCurrent: "\u5168\u9078\u7576\u9801",
|
11361 | removeCurrent: "\u522A\u9664\u7576\u9801",
|
11362 | selectAll: "\u5168\u9078\u6240\u6709",
|
11363 | removeAll: "\u522A\u9664\u5168\u90E8",
|
11364 | selectInvert: "\u53CD\u9078\u7576\u9801"
|
11365 | },
|
11366 | Upload: {
|
11367 | uploading: "\u6B63\u5728\u4E0A\u50B3...",
|
11368 | removeFile: "\u522A\u9664\u6A94\u6848",
|
11369 | uploadError: "\u4E0A\u50B3\u5931\u6557",
|
11370 | previewFile: "\u6A94\u6848\u9810\u89BD",
|
11371 | downloadFile: "\u4E0B\u8F7D\u6587\u4EF6"
|
11372 | },
|
11373 | Empty: {
|
11374 | description: "\u7121\u6B64\u8CC7\u6599"
|
11375 | },
|
11376 | Icon: {
|
11377 | icon: "\u5716\u6A19"
|
11378 | },
|
11379 | Text: {
|
11380 | edit: "\u7DE8\u8F2F",
|
11381 | copy: "\u8907\u88FD",
|
11382 | copied: "\u8907\u88FD\u6210\u529F",
|
11383 | expand: "\u5C55\u958B"
|
11384 | },
|
11385 | PageHeader: {
|
11386 | back: "\u8FD4\u56DE"
|
11387 | },
|
11388 | Form: {
|
11389 | defaultValidateMessages: {
|
11390 | "default": "\u5B57\u6BB5\u9A57\u8B49\u932F\u8AA4${label}",
|
11391 | required: "\u8ACB\u8F38\u5165${label}",
|
11392 | "enum": "${label}\u5FC5\u9808\u662F\u5176\u4E2D\u4E00\u500B[${enum}]",
|
11393 | whitespace: "${label}\u4E0D\u80FD\u70BA\u7A7A\u5B57\u7B26",
|
11394 | date: {
|
11395 | format: "${label}\u65E5\u671F\u683C\u5F0F\u7121\u6548",
|
11396 | parse: "${label}\u4E0D\u80FD\u8F49\u63DB\u70BA\u65E5\u671F",
|
11397 | invalid: "${label}\u662F\u4E00\u500B\u7121\u6548\u65E5\u671F"
|
11398 | },
|
11399 | types: {
|
11400 | string: typeTemplate,
|
11401 | method: typeTemplate,
|
11402 | array: typeTemplate,
|
11403 | object: typeTemplate,
|
11404 | number: typeTemplate,
|
11405 | date: typeTemplate,
|
11406 | "boolean": typeTemplate,
|
11407 | integer: typeTemplate,
|
11408 | "float": typeTemplate,
|
11409 | regexp: typeTemplate,
|
11410 | email: typeTemplate,
|
11411 | url: typeTemplate,
|
11412 | hex: typeTemplate
|
11413 | },
|
11414 | string: {
|
11415 | len: "${label}\u9808\u70BA${len}\u500B\u5B57\u7B26",
|
11416 | min: "${label}\u6700\u5C11${min}\u500B\u5B57\u7B26",
|
11417 | max: "${label}\u6700\u591A${max}\u500B\u5B57\u7B26",
|
11418 | range: "${label}\u9808\u5728${min}-${max}\u5B57\u7B26\u4E4B\u9593"
|
11419 | },
|
11420 | number: {
|
11421 | len: "${label}\u5FC5\u9808\u7B49\u65BC${len}",
|
11422 | min: "${label}\u6700\u5C0F\u503C\u70BA${min}",
|
11423 | max: "${label}\u6700\u5927\u503C\u70BA${max}",
|
11424 | range: "${label}\u9808\u5728${min}-${max}\u4E4B\u9593"
|
11425 | },
|
11426 | array: {
|
11427 | len: "\u9808\u70BA${len}\u500B${label}",
|
11428 | min: "\u6700\u5C11${min}\u500B${label}",
|
11429 | max: "\u6700\u591A${max}\u500B${label}",
|
11430 | range: "${label}\u6578\u91CF\u9808\u5728${min}-${max}\u4E4B\u9593"
|
11431 | },
|
11432 | pattern: {
|
11433 | mismatch: "${label}\u8207\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"
|
11434 | }
|
11435 | }
|
11436 | },
|
11437 | Image: {
|
11438 | preview: "\u9810\u89BD"
|
11439 | }
|
11440 | };
|
11441 | var _default2 = localeValues;
|
11442 | exports2["default"] = _default2;
|
11443 | })(zh_HK);
|
11444 | var zhHK = getDefaultExportFromCjs(zh_HK);
|
11445 | var en_US$5 = {};
|
11446 | var _default$p = {};
|
11447 | var en_US$4 = {};
|
11448 | Object.defineProperty(en_US$4, "__esModule", {
|
11449 | value: true
|
11450 | });
|
11451 | en_US$4.default = void 0;
|
11452 | var _default$o = {
|
11453 | items_per_page: "/ page",
|
11454 | jump_to: "Go to",
|
11455 | jump_to_confirm: "confirm",
|
11456 | page: "Page",
|
11457 | prev_page: "Previous Page",
|
11458 | next_page: "Next Page",
|
11459 | prev_5: "Previous 5 Pages",
|
11460 | next_5: "Next 5 Pages",
|
11461 | prev_3: "Previous 3 Pages",
|
11462 | next_3: "Next 3 Pages",
|
11463 | page_size: "Page Size"
|
11464 | };
|
11465 | en_US$4.default = _default$o;
|
11466 | var en_US$3 = {};
|
11467 | var en_US$2 = {};
|
11468 | Object.defineProperty(en_US$2, "__esModule", {
|
11469 | value: true
|
11470 | });
|
11471 | en_US$2.default = void 0;
|
11472 | var locale$a = {
|
11473 | locale: "en_US",
|
11474 | today: "Today",
|
11475 | now: "Now",
|
11476 | backToToday: "Back to today",
|
11477 | ok: "Ok",
|
11478 | clear: "Clear",
|
11479 | month: "Month",
|
11480 | year: "Year",
|
11481 | timeSelect: "select time",
|
11482 | dateSelect: "select date",
|
11483 | weekSelect: "Choose a week",
|
11484 | monthSelect: "Choose a month",
|
11485 | yearSelect: "Choose a year",
|
11486 | decadeSelect: "Choose a decade",
|
11487 | yearFormat: "YYYY",
|
11488 | dateFormat: "M/D/YYYY",
|
11489 | dayFormat: "D",
|
11490 | dateTimeFormat: "M/D/YYYY HH:mm:ss",
|
11491 | monthBeforeYear: true,
|
11492 | previousMonth: "Previous month (PageUp)",
|
11493 | nextMonth: "Next month (PageDown)",
|
11494 | previousYear: "Last year (Control + left)",
|
11495 | nextYear: "Next year (Control + right)",
|
11496 | previousDecade: "Last decade",
|
11497 | nextDecade: "Next decade",
|
11498 | previousCentury: "Last century",
|
11499 | nextCentury: "Next century"
|
11500 | };
|
11501 | var _default$n = locale$a;
|
11502 | en_US$2.default = _default$n;
|
11503 | var en_US$1 = {};
|
11504 | (function(exports2) {
|
11505 | Object.defineProperty(exports2, "__esModule", {
|
11506 | value: true
|
11507 | });
|
11508 | exports2["default"] = void 0;
|
11509 | var locale2 = {
|
11510 | placeholder: "Select time",
|
11511 | rangePlaceholder: ["Start time", "End time"]
|
11512 | };
|
11513 | var _default2 = locale2;
|
11514 | exports2["default"] = _default2;
|
11515 | })(en_US$1);
|
11516 | (function(exports2) {
|
11517 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11518 | Object.defineProperty(exports2, "__esModule", {
|
11519 | value: true
|
11520 | });
|
11521 | exports2["default"] = void 0;
|
11522 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
11523 | var _en_US = _interopRequireDefault2(en_US$2);
|
11524 | var _en_US2 = _interopRequireDefault2(en_US$1);
|
11525 | var locale2 = {
|
11526 | lang: (0, _extends2["default"])({
|
11527 | placeholder: "Select date",
|
11528 | yearPlaceholder: "Select year",
|
11529 | quarterPlaceholder: "Select quarter",
|
11530 | monthPlaceholder: "Select month",
|
11531 | weekPlaceholder: "Select week",
|
11532 | rangePlaceholder: ["Start date", "End date"],
|
11533 | rangeYearPlaceholder: ["Start year", "End year"],
|
11534 | rangeMonthPlaceholder: ["Start month", "End month"],
|
11535 | rangeWeekPlaceholder: ["Start week", "End week"]
|
11536 | }, _en_US["default"]),
|
11537 | timePickerLocale: (0, _extends2["default"])({}, _en_US2["default"])
|
11538 | };
|
11539 | var _default2 = locale2;
|
11540 | exports2["default"] = _default2;
|
11541 | })(en_US$3);
|
11542 | var en_US = {};
|
11543 | (function(exports2) {
|
11544 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11545 | Object.defineProperty(exports2, "__esModule", {
|
11546 | value: true
|
11547 | });
|
11548 | exports2["default"] = void 0;
|
11549 | var _en_US = _interopRequireDefault2(en_US$3);
|
11550 | var _default2 = _en_US["default"];
|
11551 | exports2["default"] = _default2;
|
11552 | })(en_US);
|
11553 | (function(exports2) {
|
11554 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11555 | Object.defineProperty(exports2, "__esModule", {
|
11556 | value: true
|
11557 | });
|
11558 | exports2["default"] = void 0;
|
11559 | var _en_US = _interopRequireDefault2(en_US$4);
|
11560 | var _en_US2 = _interopRequireDefault2(en_US$3);
|
11561 | var _en_US3 = _interopRequireDefault2(en_US$1);
|
11562 | var _en_US4 = _interopRequireDefault2(en_US);
|
11563 | var typeTemplate = "${label} is not a valid ${type}";
|
11564 | var localeValues = {
|
11565 | locale: "en",
|
11566 | Pagination: _en_US["default"],
|
11567 | DatePicker: _en_US2["default"],
|
11568 | TimePicker: _en_US3["default"],
|
11569 | Calendar: _en_US4["default"],
|
11570 | global: {
|
11571 | placeholder: "Please select"
|
11572 | },
|
11573 | Table: {
|
11574 | filterTitle: "Filter menu",
|
11575 | filterConfirm: "OK",
|
11576 | filterReset: "Reset",
|
11577 | filterEmptyText: "No filters",
|
11578 | filterCheckall: "Select all items",
|
11579 | filterSearchPlaceholder: "Search in filters",
|
11580 | emptyText: "No data",
|
11581 | selectAll: "Select current page",
|
11582 | selectInvert: "Invert current page",
|
11583 | selectNone: "Clear all data",
|
11584 | selectionAll: "Select all data",
|
11585 | sortTitle: "Sort",
|
11586 | expand: "Expand row",
|
11587 | collapse: "Collapse row",
|
11588 | triggerDesc: "Click to sort descending",
|
11589 | triggerAsc: "Click to sort ascending",
|
11590 | cancelSort: "Click to cancel sorting"
|
11591 | },
|
11592 | Modal: {
|
11593 | okText: "OK",
|
11594 | cancelText: "Cancel",
|
11595 | justOkText: "OK"
|
11596 | },
|
11597 | Popconfirm: {
|
11598 | okText: "OK",
|
11599 | cancelText: "Cancel"
|
11600 | },
|
11601 | Transfer: {
|
11602 | titles: ["", ""],
|
11603 | searchPlaceholder: "Search here",
|
11604 | itemUnit: "item",
|
11605 | itemsUnit: "items",
|
11606 | remove: "Remove",
|
11607 | selectCurrent: "Select current page",
|
11608 | removeCurrent: "Remove current page",
|
11609 | selectAll: "Select all data",
|
11610 | removeAll: "Remove all data",
|
11611 | selectInvert: "Invert current page"
|
11612 | },
|
11613 | Upload: {
|
11614 | uploading: "Uploading...",
|
11615 | removeFile: "Remove file",
|
11616 | uploadError: "Upload error",
|
11617 | previewFile: "Preview file",
|
11618 | downloadFile: "Download file"
|
11619 | },
|
11620 | Empty: {
|
11621 | description: "No Data"
|
11622 | },
|
11623 | Icon: {
|
11624 | icon: "icon"
|
11625 | },
|
11626 | Text: {
|
11627 | edit: "Edit",
|
11628 | copy: "Copy",
|
11629 | copied: "Copied",
|
11630 | expand: "Expand"
|
11631 | },
|
11632 | PageHeader: {
|
11633 | back: "Back"
|
11634 | },
|
11635 | Form: {
|
11636 | optional: "(optional)",
|
11637 | defaultValidateMessages: {
|
11638 | "default": "Field validation error for ${label}",
|
11639 | required: "Please enter ${label}",
|
11640 | "enum": "${label} must be one of [${enum}]",
|
11641 | whitespace: "${label} cannot be a blank character",
|
11642 | date: {
|
11643 | format: "${label} date format is invalid",
|
11644 | parse: "${label} cannot be converted to a date",
|
11645 | invalid: "${label} is an invalid date"
|
11646 | },
|
11647 | types: {
|
11648 | string: typeTemplate,
|
11649 | method: typeTemplate,
|
11650 | array: typeTemplate,
|
11651 | object: typeTemplate,
|
11652 | number: typeTemplate,
|
11653 | date: typeTemplate,
|
11654 | "boolean": typeTemplate,
|
11655 | integer: typeTemplate,
|
11656 | "float": typeTemplate,
|
11657 | regexp: typeTemplate,
|
11658 | email: typeTemplate,
|
11659 | url: typeTemplate,
|
11660 | hex: typeTemplate
|
11661 | },
|
11662 | string: {
|
11663 | len: "${label} must be ${len} characters",
|
11664 | min: "${label} must be at least ${min} characters",
|
11665 | max: "${label} must be up to ${max} characters",
|
11666 | range: "${label} must be between ${min}-${max} characters"
|
11667 | },
|
11668 | number: {
|
11669 | len: "${label} must be equal to ${len}",
|
11670 | min: "${label} must be minimum ${min}",
|
11671 | max: "${label} must be maximum ${max}",
|
11672 | range: "${label} must be between ${min}-${max}"
|
11673 | },
|
11674 | array: {
|
11675 | len: "Must be ${len} ${label}",
|
11676 | min: "At least ${min} ${label}",
|
11677 | max: "At most ${max} ${label}",
|
11678 | range: "The amount of ${label} must be between ${min}-${max}"
|
11679 | },
|
11680 | pattern: {
|
11681 | mismatch: "${label} does not match the pattern ${pattern}"
|
11682 | }
|
11683 | }
|
11684 | },
|
11685 | Image: {
|
11686 | preview: "Preview"
|
11687 | }
|
11688 | };
|
11689 | var _default2 = localeValues;
|
11690 | exports2["default"] = _default2;
|
11691 | })(_default$p);
|
11692 | (function(exports2) {
|
11693 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11694 | Object.defineProperty(exports2, "__esModule", {
|
11695 | value: true
|
11696 | });
|
11697 | exports2["default"] = void 0;
|
11698 | var _default2 = _interopRequireDefault2(_default$p);
|
11699 | var _default3 = _default2["default"];
|
11700 | exports2["default"] = _default3;
|
11701 | })(en_US$5);
|
11702 | var enUS = getDefaultExportFromCjs(en_US$5);
|
11703 | var ar_EG$5 = {};
|
11704 | var ar_EG$4 = {};
|
11705 | Object.defineProperty(ar_EG$4, "__esModule", {
|
11706 | value: true
|
11707 | });
|
11708 | ar_EG$4.default = void 0;
|
11709 | var _default$m = {
|
11710 | items_per_page: "/ \u0627\u0644\u0635\u0641\u062D\u0629",
|
11711 | jump_to: "\u0627\u0644\u0630\u0647\u0627\u0628 \u0625\u0644\u0649",
|
11712 | jump_to_confirm: "\u062A\u0623\u0643\u064A\u062F",
|
11713 | page: "\u0627\u0644\u0635\u0641\u062D\u0629",
|
11714 | prev_page: "\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",
|
11715 | next_page: "\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",
|
11716 | prev_5: "\u062E\u0645\u0633 \u0635\u0641\u062D\u0627\u062A \u0633\u0627\u0628\u0642\u0629",
|
11717 | next_5: "\u062E\u0645\u0633 \u0635\u0641\u062D\u0627\u062A \u062A\u0627\u0644\u064A\u0629",
|
11718 | prev_3: "\u062B\u0644\u0627\u062B \u0635\u0641\u062D\u0627\u062A \u0633\u0627\u0628\u0642\u0629",
|
11719 | next_3: "\u062B\u0644\u0627\u062B \u0635\u0641\u062D\u0627\u062A \u062A\u0627\u0644\u064A\u0629",
|
11720 | page_size: "\u0645\u0642\u0627\u0633 \u0627\u0644\u0635\u0641\u062D\u0647"
|
11721 | };
|
11722 | ar_EG$4.default = _default$m;
|
11723 | var ar_EG$3 = {};
|
11724 | var ar_EG$2 = {};
|
11725 | Object.defineProperty(ar_EG$2, "__esModule", {
|
11726 | value: true
|
11727 | });
|
11728 | ar_EG$2.default = void 0;
|
11729 | var locale$9 = {
|
11730 | locale: "ar_EG",
|
11731 | today: "\u0627\u0644\u064A\u0648\u0645",
|
11732 | now: "\u0627\u0644\u0623\u0646",
|
11733 | backToToday: "\u0627\u0644\u0639\u0648\u062F\u0629 \u0625\u0644\u0649 \u0627\u0644\u064A\u0648\u0645",
|
11734 | ok: "\u062A\u0623\u0643\u064A\u062F",
|
11735 | clear: "\u0645\u0633\u062D",
|
11736 | month: "\u0627\u0644\u0634\u0647\u0631",
|
11737 | year: "\u0627\u0644\u0633\u0646\u0629",
|
11738 | timeSelect: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0648\u0642\u062A",
|
11739 | dateSelect: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",
|
11740 | monthSelect: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0634\u0647\u0631",
|
11741 | yearSelect: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0633\u0646\u0629",
|
11742 | decadeSelect: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0639\u0642\u062F",
|
11743 | yearFormat: "YYYY",
|
11744 | dateFormat: "M/D/YYYY",
|
11745 | dayFormat: "D",
|
11746 | dateTimeFormat: "M/D/YYYY HH:mm:ss",
|
11747 | monthBeforeYear: true,
|
11748 | previousMonth: "\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u0633\u0627\u0628\u0642 (PageUp)",
|
11749 | nextMonth: "\u0627\u0644\u0634\u0647\u0631 \u0627\u0644\u062A\u0627\u0644\u0649(PageDown)",
|
11750 | previousYear: "\u0627\u0644\u0639\u0627\u0645 \u0627\u0644\u0633\u0627\u0628\u0642 (Control + left)",
|
11751 | nextYear: "\u0627\u0644\u0639\u0627\u0645 \u0627\u0644\u062A\u0627\u0644\u0649 (Control + right)",
|
11752 | previousDecade: "\u0627\u0644\u0639\u0642\u062F \u0627\u0644\u0633\u0627\u0628\u0642",
|
11753 | nextDecade: "\u0627\u0644\u0639\u0642\u062F \u0627\u0644\u062A\u0627\u0644\u0649",
|
11754 | previousCentury: "\u0627\u0644\u0642\u0631\u0646 \u0627\u0644\u0633\u0627\u0628\u0642",
|
11755 | nextCentury: "\u0627\u0644\u0642\u0631\u0646 \u0627\u0644\u062A\u0627\u0644\u0649"
|
11756 | };
|
11757 | var _default$l = locale$9;
|
11758 | ar_EG$2.default = _default$l;
|
11759 | var ar_EG$1 = {};
|
11760 | (function(exports2) {
|
11761 | Object.defineProperty(exports2, "__esModule", {
|
11762 | value: true
|
11763 | });
|
11764 | exports2["default"] = void 0;
|
11765 | var locale2 = {
|
11766 | placeholder: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0648\u0642\u062A"
|
11767 | };
|
11768 | var _default2 = locale2;
|
11769 | exports2["default"] = _default2;
|
11770 | })(ar_EG$1);
|
11771 | (function(exports2) {
|
11772 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11773 | Object.defineProperty(exports2, "__esModule", {
|
11774 | value: true
|
11775 | });
|
11776 | exports2["default"] = void 0;
|
11777 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
11778 | var _ar_EG = _interopRequireDefault2(ar_EG$2);
|
11779 | var _ar_EG2 = _interopRequireDefault2(ar_EG$1);
|
11780 | var locale2 = {
|
11781 | lang: (0, _extends2["default"])({
|
11782 | placeholder: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u062A\u0627\u0631\u064A\u062E",
|
11783 | rangePlaceholder: ["\u0627\u0644\u0628\u062F\u0627\u064A\u0629", "\u0627\u0644\u0646\u0647\u0627\u064A\u0629"]
|
11784 | }, _ar_EG["default"]),
|
11785 | timePickerLocale: (0, _extends2["default"])({}, _ar_EG2["default"]),
|
11786 | dateFormat: "DD-MM-YYYY",
|
11787 | monthFormat: "MM-YYYY",
|
11788 | dateTimeFormat: "DD-MM-YYYY HH:mm:ss",
|
11789 | weekFormat: "wo-YYYY"
|
11790 | };
|
11791 | var _default2 = locale2;
|
11792 | exports2["default"] = _default2;
|
11793 | })(ar_EG$3);
|
11794 | var ar_EG = {};
|
11795 | (function(exports2) {
|
11796 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11797 | Object.defineProperty(exports2, "__esModule", {
|
11798 | value: true
|
11799 | });
|
11800 | exports2["default"] = void 0;
|
11801 | var _ar_EG = _interopRequireDefault2(ar_EG$3);
|
11802 | var _default2 = _ar_EG["default"];
|
11803 | exports2["default"] = _default2;
|
11804 | })(ar_EG);
|
11805 | (function(exports2) {
|
11806 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
11807 | Object.defineProperty(exports2, "__esModule", {
|
11808 | value: true
|
11809 | });
|
11810 | exports2["default"] = void 0;
|
11811 | var _ar_EG = _interopRequireDefault2(ar_EG$4);
|
11812 | var _ar_EG2 = _interopRequireDefault2(ar_EG$3);
|
11813 | var _ar_EG3 = _interopRequireDefault2(ar_EG$1);
|
11814 | var _ar_EG4 = _interopRequireDefault2(ar_EG);
|
11815 | var typeTemplate = "\u0644\u064A\u0633 ${label} \u0645\u0646 \u0646\u0648\u0639 ${type} \u0635\u0627\u0644\u062D\u064B\u0627";
|
11816 | var localeValues = {
|
11817 | locale: "ar",
|
11818 | Pagination: _ar_EG["default"],
|
11819 | DatePicker: _ar_EG2["default"],
|
11820 | TimePicker: _ar_EG3["default"],
|
11821 | Calendar: _ar_EG4["default"],
|
11822 | global: {
|
11823 | placeholder: "\u064A\u0631\u062C\u0649 \u0627\u0644\u062A\u062D\u062F\u064A\u062F"
|
11824 | },
|
11825 | Table: {
|
11826 | filterTitle: "\u0627\u0644\u0641\u0644\u0627\u062A\u0631",
|
11827 | filterConfirm: "\u062A\u0623\u0643\u064A\u062F",
|
11828 | filterReset: "\u0625\u0639\u0627\u062F\u0629 \u0636\u0628\u0637",
|
11829 | selectAll: "\u0627\u062E\u062A\u064A\u0627\u0631 \u0627\u0644\u0643\u0644",
|
11830 | selectInvert: "\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u0627\u062E\u062A\u064A\u0627\u0631",
|
11831 | selectionAll: "\u062D\u062F\u062F \u062C\u0645\u064A\u0639 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",
|
11832 | sortTitle: "\u0631\u062A\u0628",
|
11833 | expand: "\u062A\u0648\u0633\u064A\u0639 \u0627\u0644\u0635\u0641",
|
11834 | collapse: "\u0637\u064A \u0627\u0644\u0635\u0641",
|
11835 | triggerDesc: "\u062A\u0631\u062A\u064A\u0628 \u062A\u0646\u0627\u0632\u0644\u064A",
|
11836 | triggerAsc: "\u062A\u0631\u062A\u064A\u0628 \u062A\u0635\u0627\u0639\u062F\u064A",
|
11837 | cancelSort: "\u0625\u0644\u063A\u0627\u0621 \u0627\u0644\u062A\u0631\u062A\u064A\u0628"
|
11838 | },
|
11839 | Modal: {
|
11840 | okText: "\u062A\u0623\u0643\u064A\u062F",
|
11841 | cancelText: "\u0625\u0644\u063A\u0627\u0621",
|
11842 | justOkText: "\u062A\u0623\u0643\u064A\u062F"
|
11843 | },
|
11844 | Popconfirm: {
|
11845 | okText: "\u062A\u0623\u0643\u064A\u062F",
|
11846 | cancelText: "\u0625\u0644\u063A\u0627\u0621"
|
11847 | },
|
11848 | Transfer: {
|
11849 | searchPlaceholder: "\u0627\u0628\u062D\u062B \u0647\u0646\u0627",
|
11850 | itemUnit: "\u0639\u0646\u0635\u0631",
|
11851 | itemsUnit: "\u0639\u0646\u0627\u0635\u0631"
|
11852 | },
|
11853 | Upload: {
|
11854 | uploading: "\u062C\u0627\u0631\u064A \u0627\u0644\u0631\u0641\u0639...",
|
11855 | removeFile: "\u0627\u062D\u0630\u0641 \u0627\u0644\u0645\u0644\u0641",
|
11856 | uploadError: "\u0645\u0634\u0643\u0644\u0629 \u0641\u0649 \u0627\u0644\u0631\u0641\u0639",
|
11857 | previewFile: "\u0627\u0633\u062A\u0639\u0631\u0636 \u0627\u0644\u0645\u0644\u0641",
|
11858 | downloadFile: "\u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0645\u0644\u0641"
|
11859 | },
|
11860 | Empty: {
|
11861 | description: "\u0644\u0627 \u062A\u0648\u062C\u062F \u0628\u064A\u0627\u0646\u0627\u062A"
|
11862 | },
|
11863 | Icon: {
|
11864 | icon: "\u0623\u064A\u0642\u0648\u0646\u0629"
|
11865 | },
|
11866 | Text: {
|
11867 | edit: "\u062A\u0639\u062F\u064A\u0644",
|
11868 | copy: "\u0646\u0633\u062E",
|
11869 | copied: "\u0646\u0642\u0644",
|
11870 | expand: "\u0648\u0633\u0639"
|
11871 | },
|
11872 | PageHeader: {
|
11873 | back: "\u0639\u0648\u062F\u0629"
|
11874 | },
|
11875 | Form: {
|
11876 | defaultValidateMessages: {
|
11877 | "default": "\u062E\u0637\u0623 \u0641\u064A \u062D\u0642\u0644 \u0627\u0644\u0625\u062F\u062E\u0627\u0644 ${label}",
|
11878 | required: "\u064A\u0631\u062C\u0649 \u0625\u062F\u062E\u0627\u0644 ${label}",
|
11879 | "enum": "${label} \u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 \u0648\u0627\u062D\u062F\u0627 \u0645\u0646 [${enum}]",
|
11880 | whitespace: "${label} \u0644\u0627 \u064A\u0645\u0643\u0646 \u0623\u0646 \u064A\u0643\u0648\u0646 \u062D\u0631\u0641\u064B\u0627 \u0641\u0627\u0631\u063A\u064B\u0627",
|
11881 | date: {
|
11882 | format: "${label} \u062A\u0646\u0633\u064A\u0642 \u0627\u0644\u062A\u0627\u0631\u064A\u062E \u063A\u064A\u0631 \u0635\u062D\u064A\u062D",
|
11883 | parse: "${label} \u0644\u0627 \u064A\u0645\u0643\u0646 \u062A\u062D\u0648\u064A\u0644\u0647\u0627 \u0625\u0644\u0649 \u062A\u0627\u0631\u064A\u062E",
|
11884 | invalid: "\u062A\u0627\u0631\u064A\u062E ${label} \u063A\u064A\u0631 \u0635\u062D\u064A\u062D"
|
11885 | },
|
11886 | types: {
|
11887 | string: typeTemplate,
|
11888 | method: typeTemplate,
|
11889 | array: typeTemplate,
|
11890 | object: typeTemplate,
|
11891 | number: typeTemplate,
|
11892 | date: typeTemplate,
|
11893 | "boolean": typeTemplate,
|
11894 | integer: typeTemplate,
|
11895 | "float": typeTemplate,
|
11896 | regexp: typeTemplate,
|
11897 | email: typeTemplate,
|
11898 | url: typeTemplate,
|
11899 | hex: typeTemplate
|
11900 | },
|
11901 | string: {
|
11902 | len: "\u064A\u062C\u0628 ${label} \u0627\u0646 \u064A\u0643\u0648\u0646 ${len} \u0623\u062D\u0631\u0641",
|
11903 | min: "${label} \u0639\u0644\u0649 \u0627\u0644\u0623\u0642\u0644 ${min} \u0623\u062D\u0631\u0641",
|
11904 | max: "${label} \u064A\u0635\u0644 \u0625\u0644\u0649 ${max} \u0623\u062D\u0631\u0641",
|
11905 | range: "\u064A\u062C\u0628 ${label} \u0627\u0646 \u064A\u0643\u0648\u0646 \u0645\u0627\u0628\u064A\u0646 ${min}-${max} \u0623\u062D\u0631\u0641"
|
11906 | },
|
11907 | number: {
|
11908 | len: "${len} \u0627\u0646 \u064A\u0633\u0627\u0648\u064A ${label} \u064A\u062C\u0628",
|
11909 | min: "${min} \u0627\u0644\u0623\u062F\u0646\u0649 \u0647\u0648 ${label} \u062D\u062F",
|
11910 | max: "${max} \u0627\u0644\u0623\u0642\u0635\u0649 \u0647\u0648 ${label} \u062D\u062F",
|
11911 | range: "${max}-${min} \u0627\u0646 \u064A\u0643\u0648\u0646 \u0645\u0627\u0628\u064A\u0646 ${label} \u064A\u062C\u0628"
|
11912 | },
|
11913 | array: {
|
11914 | len: "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 ${label} \u0637\u0648\u0644\u0647 ${len}",
|
11915 | min: "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 ${label} \u0637\u0648\u0644\u0647 \u0627\u0644\u0623\u062F\u0646\u0649 ${min}",
|
11916 | max: "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 ${label} \u0637\u0648\u0644\u0647 \u0627\u0644\u0623\u0642\u0635\u0649 ${max}",
|
11917 | range: "\u064A\u062C\u0628 \u0623\u0646 \u064A\u0643\u0648\u0646 ${label} \u0637\u0648\u0644\u0647 \u0645\u0627\u0628\u064A\u0646 ${min}-${max}"
|
11918 | },
|
11919 | pattern: {
|
11920 | mismatch: "\u0644\u0627 \u064A\u062A\u0637\u0627\u0628\u0642 ${label} \u0645\u0639 ${pattern}"
|
11921 | }
|
11922 | }
|
11923 | }
|
11924 | };
|
11925 | var _default2 = localeValues;
|
11926 | exports2["default"] = _default2;
|
11927 | })(ar_EG$5);
|
11928 | var arEG = getDefaultExportFromCjs(ar_EG$5);
|
11929 | var fr_FR$5 = {};
|
11930 | var fr_FR$4 = {};
|
11931 | Object.defineProperty(fr_FR$4, "__esModule", {
|
11932 | value: true
|
11933 | });
|
11934 | fr_FR$4.default = void 0;
|
11935 | var _default$k = {
|
11936 | items_per_page: "/ page",
|
11937 | jump_to: "Aller \xE0",
|
11938 | jump_to_confirm: "confirmer",
|
11939 | page: "Page",
|
11940 | prev_page: "Page pr\xE9c\xE9dente",
|
11941 | next_page: "Page suivante",
|
11942 | prev_5: "5 Pages pr\xE9c\xE9dentes",
|
11943 | next_5: "5 Pages suivantes",
|
11944 | prev_3: "3 Pages pr\xE9c\xE9dentes",
|
11945 | next_3: "3 Pages suivantes",
|
11946 | page_size: "taille de la page"
|
11947 | };
|
11948 | fr_FR$4.default = _default$k;
|
11949 | var fr_FR$3 = {};
|
11950 | var fr_FR$2 = {};
|
11951 | Object.defineProperty(fr_FR$2, "__esModule", {
|
11952 | value: true
|
11953 | });
|
11954 | fr_FR$2.default = void 0;
|
11955 | var locale$8 = {
|
11956 | locale: "fr_FR",
|
11957 | today: "Aujourd'hui",
|
11958 | now: "Maintenant",
|
11959 | backToToday: "Aujourd'hui",
|
11960 | ok: "Ok",
|
11961 | clear: "R\xE9tablir",
|
11962 | month: "Mois",
|
11963 | year: "Ann\xE9e",
|
11964 | timeSelect: "S\xE9lectionner l'heure",
|
11965 | dateSelect: "S\xE9lectionner la date",
|
11966 | monthSelect: "Choisissez un mois",
|
11967 | yearSelect: "Choisissez une ann\xE9e",
|
11968 | decadeSelect: "Choisissez une d\xE9cennie",
|
11969 | yearFormat: "YYYY",
|
11970 | dateFormat: "DD/MM/YYYY",
|
11971 | dayFormat: "DD",
|
11972 | dateTimeFormat: "DD/MM/YYYY HH:mm:ss",
|
11973 | monthBeforeYear: true,
|
11974 | previousMonth: "Mois pr\xE9c\xE9dent (PageUp)",
|
11975 | nextMonth: "Mois suivant (PageDown)",
|
11976 | previousYear: "Ann\xE9e pr\xE9c\xE9dente (Ctrl + gauche)",
|
11977 | nextYear: "Ann\xE9e prochaine (Ctrl + droite)",
|
11978 | previousDecade: "D\xE9cennie pr\xE9c\xE9dente",
|
11979 | nextDecade: "D\xE9cennie suivante",
|
11980 | previousCentury: "Si\xE8cle pr\xE9c\xE9dent",
|
11981 | nextCentury: "Si\xE8cle suivant"
|
11982 | };
|
11983 | var _default$j = locale$8;
|
11984 | fr_FR$2.default = _default$j;
|
11985 | var fr_FR$1 = {};
|
11986 | (function(exports2) {
|
11987 | Object.defineProperty(exports2, "__esModule", {
|
11988 | value: true
|
11989 | });
|
11990 | exports2["default"] = void 0;
|
11991 | var locale2 = {
|
11992 | placeholder: "S\xE9lectionner l'heure",
|
11993 | rangePlaceholder: ["Heure de d\xE9but", "Heure de fin"]
|
11994 | };
|
11995 | var _default2 = locale2;
|
11996 | exports2["default"] = _default2;
|
11997 | })(fr_FR$1);
|
11998 | (function(exports2) {
|
11999 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12000 | Object.defineProperty(exports2, "__esModule", {
|
12001 | value: true
|
12002 | });
|
12003 | exports2["default"] = void 0;
|
12004 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
12005 | var _fr_FR = _interopRequireDefault2(fr_FR$2);
|
12006 | var _fr_FR2 = _interopRequireDefault2(fr_FR$1);
|
12007 | var locale2 = {
|
12008 | lang: (0, _extends2["default"])({
|
12009 | placeholder: "S\xE9lectionner une date",
|
12010 | yearPlaceholder: "S\xE9lectionner une ann\xE9e",
|
12011 | quarterPlaceholder: "S\xE9lectionner un trimestre",
|
12012 | monthPlaceholder: "S\xE9lectionner un mois",
|
12013 | weekPlaceholder: "S\xE9lectionner une semaine",
|
12014 | rangePlaceholder: ["Date de d\xE9but", "Date de fin"],
|
12015 | rangeYearPlaceholder: ["Ann\xE9e de d\xE9but", "Ann\xE9e de fin"],
|
12016 | rangeMonthPlaceholder: ["Mois de d\xE9but", "Mois de fin"],
|
12017 | rangeWeekPlaceholder: ["Semaine de d\xE9but", "Semaine de fin"]
|
12018 | }, _fr_FR["default"]),
|
12019 | timePickerLocale: (0, _extends2["default"])({}, _fr_FR2["default"])
|
12020 | };
|
12021 | var _default2 = locale2;
|
12022 | exports2["default"] = _default2;
|
12023 | })(fr_FR$3);
|
12024 | var fr_FR = {};
|
12025 | (function(exports2) {
|
12026 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12027 | Object.defineProperty(exports2, "__esModule", {
|
12028 | value: true
|
12029 | });
|
12030 | exports2["default"] = void 0;
|
12031 | var _fr_FR = _interopRequireDefault2(fr_FR$3);
|
12032 | var _default2 = _fr_FR["default"];
|
12033 | exports2["default"] = _default2;
|
12034 | })(fr_FR);
|
12035 | (function(exports2) {
|
12036 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12037 | Object.defineProperty(exports2, "__esModule", {
|
12038 | value: true
|
12039 | });
|
12040 | exports2["default"] = void 0;
|
12041 | var _fr_FR = _interopRequireDefault2(fr_FR$4);
|
12042 | var _fr_FR2 = _interopRequireDefault2(fr_FR$3);
|
12043 | var _fr_FR3 = _interopRequireDefault2(fr_FR$1);
|
12044 | var _fr_FR4 = _interopRequireDefault2(fr_FR);
|
12045 | var typeTemplate = "La valeur du champ ${label} n'est pas valide pour le type ${type}";
|
12046 | var localeValues = {
|
12047 | locale: "fr",
|
12048 | Pagination: _fr_FR["default"],
|
12049 | DatePicker: _fr_FR2["default"],
|
12050 | TimePicker: _fr_FR3["default"],
|
12051 | Calendar: _fr_FR4["default"],
|
12052 | Table: {
|
12053 | filterTitle: "Filtrer",
|
12054 | filterConfirm: "OK",
|
12055 | filterReset: "R\xE9initialiser",
|
12056 | filterEmptyText: "Aucun filtre",
|
12057 | emptyText: "Aucune donn\xE9e",
|
12058 | selectAll: "S\xE9lectionner la page actuelle",
|
12059 | selectInvert: "Inverser la s\xE9lection de la page actuelle",
|
12060 | selectNone: "D\xE9s\xE9lectionner toutes les donn\xE9es",
|
12061 | selectionAll: "S\xE9lectionner toutes les donn\xE9es",
|
12062 | sortTitle: "Trier",
|
12063 | expand: "D\xE9velopper la ligne",
|
12064 | collapse: "R\xE9duire la ligne",
|
12065 | triggerDesc: "Trier par ordre d\xE9croissant",
|
12066 | triggerAsc: "Trier par ordre croissant",
|
12067 | cancelSort: "Annuler le tri"
|
12068 | },
|
12069 | Modal: {
|
12070 | okText: "OK",
|
12071 | cancelText: "Annuler",
|
12072 | justOkText: "OK"
|
12073 | },
|
12074 | Popconfirm: {
|
12075 | okText: "OK",
|
12076 | cancelText: "Annuler"
|
12077 | },
|
12078 | Transfer: {
|
12079 | titles: ["", ""],
|
12080 | searchPlaceholder: "Rechercher",
|
12081 | itemUnit: "\xE9l\xE9ment",
|
12082 | itemsUnit: "\xE9l\xE9ments",
|
12083 | remove: "D\xE9s\xE9lectionner",
|
12084 | selectCurrent: "S\xE9lectionner la page actuelle",
|
12085 | removeCurrent: "D\xE9s\xE9lectionner la page actuelle",
|
12086 | selectAll: "S\xE9lectionner toutes les donn\xE9es",
|
12087 | removeAll: "D\xE9s\xE9lectionner toutes les donn\xE9es",
|
12088 | selectInvert: "Inverser la s\xE9lection de la page actuelle"
|
12089 | },
|
12090 | Upload: {
|
12091 | uploading: "T\xE9l\xE9chargement...",
|
12092 | removeFile: "Effacer le fichier",
|
12093 | uploadError: "Erreur de t\xE9l\xE9chargement",
|
12094 | previewFile: "Fichier de pr\xE9visualisation",
|
12095 | downloadFile: "T\xE9l\xE9charger un fichier"
|
12096 | },
|
12097 | Empty: {
|
12098 | description: "Aucune donn\xE9e"
|
12099 | },
|
12100 | Icon: {
|
12101 | icon: "ic\xF4ne"
|
12102 | },
|
12103 | Text: {
|
12104 | edit: "\xC9diter",
|
12105 | copy: "Copier",
|
12106 | copied: "Copie effectu\xE9e",
|
12107 | expand: "D\xE9velopper"
|
12108 | },
|
12109 | PageHeader: {
|
12110 | back: "Retour"
|
12111 | },
|
12112 | Form: {
|
12113 | optional: "(optionnel)",
|
12114 | defaultValidateMessages: {
|
12115 | "default": "Erreur de validation pour le champ ${label}",
|
12116 | required: "Le champ ${label} est obligatoire",
|
12117 | "enum": "La valeur du champ ${label} doit \xEAtre parmi [${enum}]",
|
12118 | whitespace: "La valeur du champ ${label} ne peut pas \xEAtre vide",
|
12119 | date: {
|
12120 | format: "La valeur du champ ${label} n'est pas au format date",
|
12121 | parse: "La valeur du champ ${label} ne peut pas \xEAtre convertie vers une date",
|
12122 | invalid: "La valeur du champ ${label} n'est pas une date valide"
|
12123 | },
|
12124 | types: {
|
12125 | string: typeTemplate,
|
12126 | method: typeTemplate,
|
12127 | array: typeTemplate,
|
12128 | object: typeTemplate,
|
12129 | number: typeTemplate,
|
12130 | date: typeTemplate,
|
12131 | "boolean": typeTemplate,
|
12132 | integer: typeTemplate,
|
12133 | "float": typeTemplate,
|
12134 | regexp: typeTemplate,
|
12135 | email: typeTemplate,
|
12136 | url: typeTemplate,
|
12137 | hex: typeTemplate
|
12138 | },
|
12139 | string: {
|
12140 | len: "La taille du champ ${label} doit \xEAtre de ${len} caract\xE8res",
|
12141 | min: "La taille du champ ${label} doit \xEAtre au minimum de ${min} caract\xE8res",
|
12142 | max: "La taille du champ ${label} doit \xEAtre au maximum de ${max} caract\xE8res",
|
12143 | range: "La taille du champ ${label} doit \xEAtre entre ${min} et ${max} caract\xE8res"
|
12144 | },
|
12145 | number: {
|
12146 | len: "La valeur du champ ${label} doit \xEAtre \xE9gale \xE0 ${len}",
|
12147 | min: "La valeur du champ ${label} doit \xEAtre plus grande que ${min}",
|
12148 | max: "La valeur du champ ${label} doit \xEAtre plus petit que ${max}",
|
12149 | range: "La valeur du champ ${label} doit \xEAtre entre ${min} et ${max}"
|
12150 | },
|
12151 | array: {
|
12152 | len: "La taille du tableau ${label} doit \xEAtre de ${len}",
|
12153 | min: "La taille du tableau ${label} doit \xEAtre au minimum de ${min}",
|
12154 | max: "La taille du tableau ${label} doit \xEAtre au maximum de ${max}",
|
12155 | range: "La taille du tableau ${label} doit \xEAtre entre ${min}-${max}"
|
12156 | },
|
12157 | pattern: {
|
12158 | mismatch: "La valeur du champ ${label} ne correspond pas au mod\xE8le ${pattern}"
|
12159 | }
|
12160 | }
|
12161 | },
|
12162 | Image: {
|
12163 | preview: "Aper\xE7u"
|
12164 | }
|
12165 | };
|
12166 | var _default2 = localeValues;
|
12167 | exports2["default"] = _default2;
|
12168 | })(fr_FR$5);
|
12169 | var frFR = getDefaultExportFromCjs(fr_FR$5);
|
12170 | var de_DE$5 = {};
|
12171 | var de_DE$4 = {};
|
12172 | Object.defineProperty(de_DE$4, "__esModule", {
|
12173 | value: true
|
12174 | });
|
12175 | de_DE$4.default = void 0;
|
12176 | var _default$i = {
|
12177 | items_per_page: "/ Seite",
|
12178 | jump_to: "Gehe zu",
|
12179 | jump_to_confirm: "best\xE4tigen",
|
12180 | page: "Seite",
|
12181 | prev_page: "Vorherige Seite",
|
12182 | next_page: "N\xE4chste Seite",
|
12183 | prev_5: "5 Seiten zur\xFCck",
|
12184 | next_5: "5 Seiten vor",
|
12185 | prev_3: "3 Seiten zur\xFCck",
|
12186 | next_3: "3 Seiten vor",
|
12187 | page_size: "Page Size"
|
12188 | };
|
12189 | de_DE$4.default = _default$i;
|
12190 | var de_DE$3 = {};
|
12191 | var de_DE$2 = {};
|
12192 | Object.defineProperty(de_DE$2, "__esModule", {
|
12193 | value: true
|
12194 | });
|
12195 | de_DE$2.default = void 0;
|
12196 | var locale$7 = {
|
12197 | locale: "de_DE",
|
12198 | today: "Heute",
|
12199 | now: "Jetzt",
|
12200 | backToToday: "Zur\xFCck zu Heute",
|
12201 | ok: "OK",
|
12202 | clear: "Zur\xFCcksetzen",
|
12203 | month: "Monat",
|
12204 | year: "Jahr",
|
12205 | timeSelect: "Zeit w\xE4hlen",
|
12206 | dateSelect: "Datum w\xE4hlen",
|
12207 | monthSelect: "W\xE4hle einen Monat",
|
12208 | yearSelect: "W\xE4hle ein Jahr",
|
12209 | decadeSelect: "W\xE4hle ein Jahrzehnt",
|
12210 | yearFormat: "YYYY",
|
12211 | dateFormat: "D.M.YYYY",
|
12212 | dayFormat: "D",
|
12213 | dateTimeFormat: "D.M.YYYY HH:mm:ss",
|
12214 | monthBeforeYear: true,
|
12215 | previousMonth: "Vorheriger Monat (PageUp)",
|
12216 | nextMonth: "N\xE4chster Monat (PageDown)",
|
12217 | previousYear: "Vorheriges Jahr (Ctrl + left)",
|
12218 | nextYear: "N\xE4chstes Jahr (Ctrl + right)",
|
12219 | previousDecade: "Vorheriges Jahrzehnt",
|
12220 | nextDecade: "N\xE4chstes Jahrzehnt",
|
12221 | previousCentury: "Vorheriges Jahrhundert",
|
12222 | nextCentury: "N\xE4chstes Jahrhundert"
|
12223 | };
|
12224 | var _default$h = locale$7;
|
12225 | de_DE$2.default = _default$h;
|
12226 | var de_DE$1 = {};
|
12227 | (function(exports2) {
|
12228 | Object.defineProperty(exports2, "__esModule", {
|
12229 | value: true
|
12230 | });
|
12231 | exports2["default"] = void 0;
|
12232 | var locale2 = {
|
12233 | placeholder: "Zeit ausw\xE4hlen"
|
12234 | };
|
12235 | var _default2 = locale2;
|
12236 | exports2["default"] = _default2;
|
12237 | })(de_DE$1);
|
12238 | (function(exports2) {
|
12239 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12240 | Object.defineProperty(exports2, "__esModule", {
|
12241 | value: true
|
12242 | });
|
12243 | exports2["default"] = void 0;
|
12244 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
12245 | var _de_DE = _interopRequireDefault2(de_DE$2);
|
12246 | var _de_DE2 = _interopRequireDefault2(de_DE$1);
|
12247 | var locale2 = {
|
12248 | lang: (0, _extends2["default"])({
|
12249 | placeholder: "Datum ausw\xE4hlen",
|
12250 | rangePlaceholder: ["Startdatum", "Enddatum"]
|
12251 | }, _de_DE["default"]),
|
12252 | timePickerLocale: (0, _extends2["default"])({}, _de_DE2["default"])
|
12253 | };
|
12254 | var _default2 = locale2;
|
12255 | exports2["default"] = _default2;
|
12256 | })(de_DE$3);
|
12257 | var de_DE = {};
|
12258 | (function(exports2) {
|
12259 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12260 | Object.defineProperty(exports2, "__esModule", {
|
12261 | value: true
|
12262 | });
|
12263 | exports2["default"] = void 0;
|
12264 | var _de_DE = _interopRequireDefault2(de_DE$3);
|
12265 | var _default2 = _de_DE["default"];
|
12266 | exports2["default"] = _default2;
|
12267 | })(de_DE);
|
12268 | (function(exports2) {
|
12269 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12270 | Object.defineProperty(exports2, "__esModule", {
|
12271 | value: true
|
12272 | });
|
12273 | exports2["default"] = void 0;
|
12274 | var _de_DE = _interopRequireDefault2(de_DE$4);
|
12275 | var _de_DE2 = _interopRequireDefault2(de_DE$3);
|
12276 | var _de_DE3 = _interopRequireDefault2(de_DE$1);
|
12277 | var _de_DE4 = _interopRequireDefault2(de_DE);
|
12278 | var typeTemplate = "${label} ist nicht g\xFCltig. ${type} erwartet";
|
12279 | var localeValues = {
|
12280 | locale: "de",
|
12281 | Pagination: _de_DE["default"],
|
12282 | DatePicker: _de_DE2["default"],
|
12283 | TimePicker: _de_DE3["default"],
|
12284 | Calendar: _de_DE4["default"],
|
12285 | global: {
|
12286 | placeholder: "Bitte ausw\xE4hlen"
|
12287 | },
|
12288 | Table: {
|
12289 | filterTitle: "Filter-Men\xFC",
|
12290 | filterConfirm: "OK",
|
12291 | filterReset: "Zur\xFCcksetzen",
|
12292 | selectAll: "Selektiere Alle",
|
12293 | selectInvert: "Selektion Invertieren",
|
12294 | selectionAll: "W\xE4hlen Sie alle Daten aus",
|
12295 | sortTitle: "Sortieren",
|
12296 | expand: "Zeile erweitern",
|
12297 | collapse: "Zeile reduzieren",
|
12298 | triggerDesc: "Klicken zur absteigenden Sortierung",
|
12299 | triggerAsc: "Klicken zur aufsteigenden Sortierung",
|
12300 | cancelSort: "Klicken zum Abbrechen der Sortierung"
|
12301 | },
|
12302 | Modal: {
|
12303 | okText: "OK",
|
12304 | cancelText: "Abbrechen",
|
12305 | justOkText: "OK"
|
12306 | },
|
12307 | Popconfirm: {
|
12308 | okText: "OK",
|
12309 | cancelText: "Abbrechen"
|
12310 | },
|
12311 | Transfer: {
|
12312 | titles: ["", ""],
|
12313 | searchPlaceholder: "Suchen",
|
12314 | itemUnit: "Eintrag",
|
12315 | itemsUnit: "Eintr\xE4ge",
|
12316 | remove: "Entfernen",
|
12317 | selectCurrent: "Alle auf aktueller Seite ausw\xE4hlen",
|
12318 | removeCurrent: "Auswahl auf aktueller Seite aufheben",
|
12319 | selectAll: "Alle ausw\xE4hlen",
|
12320 | removeAll: "Auswahl aufheben",
|
12321 | selectInvert: "Auswahl umkehren"
|
12322 | },
|
12323 | Upload: {
|
12324 | uploading: "Hochladen...",
|
12325 | removeFile: "Datei entfernen",
|
12326 | uploadError: "Fehler beim Hochladen",
|
12327 | previewFile: "Dateivorschau",
|
12328 | downloadFile: "Download-Datei"
|
12329 | },
|
12330 | Empty: {
|
12331 | description: "Keine Daten"
|
12332 | },
|
12333 | Text: {
|
12334 | edit: "Bearbeiten",
|
12335 | copy: "Kopieren",
|
12336 | copied: "Kopiert",
|
12337 | expand: "Erweitern"
|
12338 | },
|
12339 | PageHeader: {
|
12340 | back: "Zur\xFCck"
|
12341 | },
|
12342 | Form: {
|
12343 | defaultValidateMessages: {
|
12344 | "default": "Feld-Validierungsfehler: ${label}",
|
12345 | required: "Bitte geben Sie ${label} an",
|
12346 | "enum": "${label} muss eines der folgenden sein [${enum}]",
|
12347 | whitespace: "${label} darf kein Leerzeichen sein",
|
12348 | date: {
|
12349 | format: "${label} ist ein ung\xFCltiges Datumsformat",
|
12350 | parse: "${label} kann nicht in ein Datum umgewandelt werden",
|
12351 | invalid: "${label} ist ein ung\xFCltiges Datum"
|
12352 | },
|
12353 | types: {
|
12354 | string: typeTemplate,
|
12355 | method: typeTemplate,
|
12356 | array: typeTemplate,
|
12357 | object: typeTemplate,
|
12358 | number: typeTemplate,
|
12359 | date: typeTemplate,
|
12360 | "boolean": typeTemplate,
|
12361 | integer: typeTemplate,
|
12362 | "float": typeTemplate,
|
12363 | regexp: typeTemplate,
|
12364 | email: typeTemplate,
|
12365 | url: typeTemplate,
|
12366 | hex: typeTemplate
|
12367 | },
|
12368 | string: {
|
12369 | len: "${label} muss genau ${len} Zeichen lang sein",
|
12370 | min: "${label} muss mindestens ${min} Zeichen lang sein",
|
12371 | max: "${label} darf h\xF6chstens ${max} Zeichen lang sein",
|
12372 | range: "${label} muss zwischen ${min} und ${max} Zeichen lang sein"
|
12373 | },
|
12374 | number: {
|
12375 | len: "${label} muss gleich ${len} sein",
|
12376 | min: "${label} muss mindestens ${min} sein",
|
12377 | max: "${label} darf maximal ${max} sein",
|
12378 | range: "${label} muss zwischen ${min} und ${max} liegen"
|
12379 | },
|
12380 | array: {
|
12381 | len: "Es m\xFCssen ${len} ${label} sein",
|
12382 | min: "Es m\xFCssen mindestens ${min} ${label} sein",
|
12383 | max: "Es d\xFCrfen maximal ${max} ${label} sein",
|
12384 | range: "Die Anzahl an ${label} muss zwischen ${min} und ${max} liegen"
|
12385 | },
|
12386 | pattern: {
|
12387 | mismatch: "${label} enspricht nicht dem ${pattern} Muster"
|
12388 | }
|
12389 | }
|
12390 | },
|
12391 | Image: {
|
12392 | preview: "Vorschau"
|
12393 | }
|
12394 | };
|
12395 | var _default2 = localeValues;
|
12396 | exports2["default"] = _default2;
|
12397 | })(de_DE$5);
|
12398 | var deDE = getDefaultExportFromCjs(de_DE$5);
|
12399 | var el_GR$5 = {};
|
12400 | var el_GR$4 = {};
|
12401 | Object.defineProperty(el_GR$4, "__esModule", {
|
12402 | value: true
|
12403 | });
|
12404 | el_GR$4.default = void 0;
|
12405 | var _default$g = {
|
12406 | items_per_page: "/ \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1",
|
12407 | jump_to: "\u039C\u03B5\u03C4\u03AC\u03B2\u03B1\u03C3\u03B7",
|
12408 | jump_to_confirm: "\u03B5\u03C0\u03B9\u03B2\u03B5\u03B2\u03B1\u03B9\u03CE\u03BD\u03C9",
|
12409 | page: "",
|
12410 | prev_page: "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03A3\u03B5\u03BB\u03AF\u03B4\u03B1",
|
12411 | next_page: "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03A3\u03B5\u03BB\u03AF\u03B4\u03B1",
|
12412 | prev_5: "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B5\u03C2 5 \u03A3\u03B5\u03BB\u03AF\u03B4\u03B5\u03C2",
|
12413 | next_5: "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B5\u03C2 5 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B5\u03C2",
|
12414 | prev_3: "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B5\u03C2 3 \u03A3\u03B5\u03BB\u03AF\u03B4\u03B5\u03C2",
|
12415 | next_3: "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B5\u03C2 3 \u03A3\u03B5\u03BB\u03AF\u03B4\u03B5\u03C2",
|
12416 | page_size: "\u039C\u03AD\u03B3\u03B5\u03B8\u03BF\u03C2 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1\u03C2"
|
12417 | };
|
12418 | el_GR$4.default = _default$g;
|
12419 | var el_GR$3 = {};
|
12420 | var el_GR$2 = {};
|
12421 | Object.defineProperty(el_GR$2, "__esModule", {
|
12422 | value: true
|
12423 | });
|
12424 | el_GR$2.default = void 0;
|
12425 | var locale$6 = {
|
12426 | locale: "el_GR",
|
12427 | today: "\u03A3\u03AE\u03BC\u03B5\u03C1\u03B1",
|
12428 | now: "\u03A4\u03CE\u03C1\u03B1",
|
12429 | backToToday: "\u03A0\u03AF\u03C3\u03C9 \u03C3\u03C4\u03B7 \u03C3\u03B7\u03BC\u03B5\u03C1\u03B9\u03BD\u03AE \u03BC\u03AD\u03C1\u03B1",
|
12430 | ok: "Ok",
|
12431 | clear: "\u039A\u03B1\u03B8\u03B1\u03C1\u03B9\u03C3\u03BC\u03CC\u03C2",
|
12432 | month: "\u039C\u03AE\u03BD\u03B1\u03C2",
|
12433 | year: "\u0388\u03C4\u03BF\u03C2",
|
12434 | timeSelect: "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03CE\u03C1\u03B1\u03C2",
|
12435 | dateSelect: "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1\u03C2",
|
12436 | monthSelect: "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03BC\u03AE\u03BD\u03B1",
|
12437 | yearSelect: "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03AD\u03C4\u03BF\u03C5\u03C2",
|
12438 | decadeSelect: "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03B4\u03B5\u03BA\u03B1\u03B5\u03C4\u03AF\u03B1\u03C2",
|
12439 | yearFormat: "YYYY",
|
12440 | dateFormat: "D/M/YYYY",
|
12441 | dayFormat: "D",
|
12442 | dateTimeFormat: "D/M/YYYY HH:mm:ss",
|
12443 | monthBeforeYear: true,
|
12444 | previousMonth: "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF\u03C2 \u03BC\u03AE\u03BD\u03B1\u03C2 (PageUp)",
|
12445 | nextMonth: "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF\u03C2 \u03BC\u03AE\u03BD\u03B1\u03C2 (PageDown)",
|
12446 | previousYear: "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF \u03AD\u03C4\u03BF\u03C2 (Control + \u03B1\u03C1\u03B9\u03C3\u03C4\u03B5\u03C1\u03AC)",
|
12447 | nextYear: "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF \u03AD\u03C4\u03BF\u03C2 (Control + \u03B4\u03B5\u03BE\u03B9\u03AC)",
|
12448 | previousDecade: "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03B7 \u03B4\u03B5\u03BA\u03B1\u03B5\u03C4\u03AF\u03B1",
|
12449 | nextDecade: "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03B7 \u03B4\u03B5\u03BA\u03B1\u03B5\u03C4\u03AF\u03B1",
|
12450 | previousCentury: "\u03A0\u03C1\u03BF\u03B7\u03B3\u03BF\u03CD\u03BC\u03B5\u03BD\u03BF\u03C2 \u03B1\u03B9\u03CE\u03BD\u03B1\u03C2",
|
12451 | nextCentury: "\u0395\u03C0\u03CC\u03BC\u03B5\u03BD\u03BF\u03C2 \u03B1\u03B9\u03CE\u03BD\u03B1\u03C2"
|
12452 | };
|
12453 | var _default$f = locale$6;
|
12454 | el_GR$2.default = _default$f;
|
12455 | var el_GR$1 = {};
|
12456 | (function(exports2) {
|
12457 | Object.defineProperty(exports2, "__esModule", {
|
12458 | value: true
|
12459 | });
|
12460 | exports2["default"] = void 0;
|
12461 | var locale2 = {
|
12462 | placeholder: "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03CE\u03C1\u03B1"
|
12463 | };
|
12464 | var _default2 = locale2;
|
12465 | exports2["default"] = _default2;
|
12466 | })(el_GR$1);
|
12467 | (function(exports2) {
|
12468 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12469 | Object.defineProperty(exports2, "__esModule", {
|
12470 | value: true
|
12471 | });
|
12472 | exports2["default"] = void 0;
|
12473 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
12474 | var _el_GR = _interopRequireDefault2(el_GR$2);
|
12475 | var _el_GR2 = _interopRequireDefault2(el_GR$1);
|
12476 | var locale2 = {
|
12477 | lang: (0, _extends2["default"])({
|
12478 | placeholder: "\u0395\u03C0\u03B9\u03BB\u03AD\u03BE\u03C4\u03B5 \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1",
|
12479 | rangePlaceholder: ["\u0391\u03C1\u03C7\u03B9\u03BA\u03AE \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1", "\u03A4\u03B5\u03BB\u03B9\u03BA\u03AE \u03B7\u03BC\u03B5\u03C1\u03BF\u03BC\u03B7\u03BD\u03AF\u03B1"]
|
12480 | }, _el_GR["default"]),
|
12481 | timePickerLocale: (0, _extends2["default"])({}, _el_GR2["default"])
|
12482 | };
|
12483 | var _default2 = locale2;
|
12484 | exports2["default"] = _default2;
|
12485 | })(el_GR$3);
|
12486 | var el_GR = {};
|
12487 | (function(exports2) {
|
12488 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12489 | Object.defineProperty(exports2, "__esModule", {
|
12490 | value: true
|
12491 | });
|
12492 | exports2["default"] = void 0;
|
12493 | var _el_GR = _interopRequireDefault2(el_GR$3);
|
12494 | var _default2 = _el_GR["default"];
|
12495 | exports2["default"] = _default2;
|
12496 | })(el_GR);
|
12497 | (function(exports2) {
|
12498 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12499 | Object.defineProperty(exports2, "__esModule", {
|
12500 | value: true
|
12501 | });
|
12502 | exports2["default"] = void 0;
|
12503 | var _el_GR = _interopRequireDefault2(el_GR$4);
|
12504 | var _el_GR2 = _interopRequireDefault2(el_GR$3);
|
12505 | var _el_GR3 = _interopRequireDefault2(el_GR$1);
|
12506 | var _el_GR4 = _interopRequireDefault2(el_GR);
|
12507 | var localeValues = {
|
12508 | locale: "el",
|
12509 | Pagination: _el_GR["default"],
|
12510 | DatePicker: _el_GR2["default"],
|
12511 | TimePicker: _el_GR3["default"],
|
12512 | Calendar: _el_GR4["default"],
|
12513 | Table: {
|
12514 | filterTitle: "\u039C\u03B5\u03BD\u03BF\u03CD \u03C6\u03AF\u03BB\u03C4\u03C1\u03C9\u03BD",
|
12515 | filterConfirm: "\u039F\u039A",
|
12516 | filterReset: "\u0395\u03C0\u03B1\u03BD\u03B1\u03C6\u03BF\u03C1\u03AC",
|
12517 | selectAll: "\u0395\u03C0\u03B9\u03BB\u03BF\u03B3\u03AE \u03C4\u03C1\u03AD\u03C7\u03BF\u03C5\u03C3\u03B1\u03C2 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1\u03C2",
|
12518 | selectInvert: "\u0391\u03BD\u03C4\u03B9\u03C3\u03C4\u03C1\u03BF\u03C6\u03AE \u03C4\u03C1\u03AD\u03C7\u03BF\u03C5\u03C3\u03B1\u03C2 \u03C3\u03B5\u03BB\u03AF\u03B4\u03B1\u03C2"
|
12519 | },
|
12520 | Modal: {
|
12521 | okText: "\u039F\u039A",
|
12522 | cancelText: "\u0386\u03BA\u03C5\u03C1\u03BF",
|
12523 | justOkText: "\u039F\u039A"
|
12524 | },
|
12525 | Popconfirm: {
|
12526 | okText: "\u039F\u039A",
|
12527 | cancelText: "\u0386\u03BA\u03C5\u03C1\u03BF"
|
12528 | },
|
12529 | Transfer: {
|
12530 | searchPlaceholder: "\u0391\u03BD\u03B1\u03B6\u03AE\u03C4\u03B7\u03C3\u03B7",
|
12531 | itemUnit: "\u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03BF",
|
12532 | itemsUnit: "\u03B1\u03BD\u03C4\u03B9\u03BA\u03B5\u03AF\u03BC\u03B5\u03BD\u03B1"
|
12533 | },
|
12534 | Upload: {
|
12535 | uploading: "\u039C\u03B5\u03C4\u03B1\u03C6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7...",
|
12536 | removeFile: "\u0391\u03C6\u03B1\u03AF\u03C1\u03B5\u03C3\u03B7 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5",
|
12537 | uploadError: "\u03A3\u03C6\u03AC\u03BB\u03BC\u03B1 \u03BC\u03B5\u03C4\u03B1\u03C6\u03CC\u03C1\u03C4\u03C9\u03C3\u03B7\u03C2",
|
12538 | previewFile: "\u03A0\u03C1\u03BF\u03B5\u03C0\u03B9\u03C3\u03BA\u03CC\u03C0\u03B7\u03C3\u03B7 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5",
|
12539 | downloadFile: "\u039B\u03AE\u03C8\u03B7 \u03B1\u03C1\u03C7\u03B5\u03AF\u03BF\u03C5"
|
12540 | },
|
12541 | Empty: {
|
12542 | description: "\u0394\u03B5\u03BD \u03C5\u03C0\u03AC\u03C1\u03C7\u03BF\u03C5\u03BD \u03B4\u03B5\u03B4\u03BF\u03BC\u03AD\u03BD\u03B1"
|
12543 | }
|
12544 | };
|
12545 | var _default2 = localeValues;
|
12546 | exports2["default"] = _default2;
|
12547 | })(el_GR$5);
|
12548 | var elGR = getDefaultExportFromCjs(el_GR$5);
|
12549 | var id_ID$5 = {};
|
12550 | var id_ID$4 = {};
|
12551 | Object.defineProperty(id_ID$4, "__esModule", {
|
12552 | value: true
|
12553 | });
|
12554 | id_ID$4.default = void 0;
|
12555 | var _default$e = {
|
12556 | items_per_page: "/ halaman",
|
12557 | jump_to: "Menuju",
|
12558 | jump_to_confirm: "konfirmasi",
|
12559 | page: "Halaman",
|
12560 | prev_page: "Halaman Sebelumnya",
|
12561 | next_page: "Halaman Berikutnya",
|
12562 | prev_5: "5 Halaman Sebelumnya",
|
12563 | next_5: "5 Halaman Berikutnya",
|
12564 | prev_3: "3 Halaman Sebelumnya",
|
12565 | next_3: "3 Halaman Berikutnya",
|
12566 | page_size: "ukuran halaman"
|
12567 | };
|
12568 | id_ID$4.default = _default$e;
|
12569 | var id_ID$3 = {};
|
12570 | var id_ID$2 = {};
|
12571 | Object.defineProperty(id_ID$2, "__esModule", {
|
12572 | value: true
|
12573 | });
|
12574 | id_ID$2.default = void 0;
|
12575 | var locale$5 = {
|
12576 | locale: "id_ID",
|
12577 | today: "Hari ini",
|
12578 | now: "Sekarang",
|
12579 | backToToday: "Kembali ke hari ini",
|
12580 | ok: "Baik",
|
12581 | clear: "Bersih",
|
12582 | month: "Bulan",
|
12583 | year: "Tahun",
|
12584 | timeSelect: "pilih waktu",
|
12585 | dateSelect: "pilih tanggal",
|
12586 | weekSelect: "Pilih satu minggu",
|
12587 | monthSelect: "Pilih satu bulan",
|
12588 | yearSelect: "Pilih satu tahun",
|
12589 | decadeSelect: "Pilih satu dekade",
|
12590 | yearFormat: "YYYY",
|
12591 | dateFormat: "D/M/YYYY",
|
12592 | dayFormat: "D",
|
12593 | dateTimeFormat: "D/M/YYYY HH:mm:ss",
|
12594 | monthBeforeYear: true,
|
12595 | previousMonth: "Bulan sebelumnya (PageUp)",
|
12596 | nextMonth: "Bulan selanjutnya (PageDown)",
|
12597 | previousYear: "Tahun lalu (Control + kiri)",
|
12598 | nextYear: "Tahun selanjutnya (Kontrol + kanan)",
|
12599 | previousDecade: "Dekade terakhir",
|
12600 | nextDecade: "Dekade berikutnya",
|
12601 | previousCentury: "Abad terakhir",
|
12602 | nextCentury: "Abad berikutnya"
|
12603 | };
|
12604 | var _default$d = locale$5;
|
12605 | id_ID$2.default = _default$d;
|
12606 | var id_ID$1 = {};
|
12607 | (function(exports2) {
|
12608 | Object.defineProperty(exports2, "__esModule", {
|
12609 | value: true
|
12610 | });
|
12611 | exports2["default"] = void 0;
|
12612 | var locale2 = {
|
12613 | placeholder: "Pilih waktu"
|
12614 | };
|
12615 | var _default2 = locale2;
|
12616 | exports2["default"] = _default2;
|
12617 | })(id_ID$1);
|
12618 | (function(exports2) {
|
12619 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12620 | Object.defineProperty(exports2, "__esModule", {
|
12621 | value: true
|
12622 | });
|
12623 | exports2["default"] = void 0;
|
12624 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
12625 | var _id_ID = _interopRequireDefault2(id_ID$2);
|
12626 | var _id_ID2 = _interopRequireDefault2(id_ID$1);
|
12627 | var locale2 = {
|
12628 | lang: (0, _extends2["default"])({
|
12629 | placeholder: "Pilih tanggal",
|
12630 | rangePlaceholder: ["Mulai tanggal", "Tanggal akhir"]
|
12631 | }, _id_ID["default"]),
|
12632 | timePickerLocale: (0, _extends2["default"])({}, _id_ID2["default"])
|
12633 | };
|
12634 | var _default2 = locale2;
|
12635 | exports2["default"] = _default2;
|
12636 | })(id_ID$3);
|
12637 | var id_ID = {};
|
12638 | (function(exports2) {
|
12639 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12640 | Object.defineProperty(exports2, "__esModule", {
|
12641 | value: true
|
12642 | });
|
12643 | exports2["default"] = void 0;
|
12644 | var _id_ID = _interopRequireDefault2(id_ID$3);
|
12645 | var _default2 = _id_ID["default"];
|
12646 | exports2["default"] = _default2;
|
12647 | })(id_ID);
|
12648 | (function(exports2) {
|
12649 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12650 | Object.defineProperty(exports2, "__esModule", {
|
12651 | value: true
|
12652 | });
|
12653 | exports2["default"] = void 0;
|
12654 | var _id_ID = _interopRequireDefault2(id_ID$4);
|
12655 | var _id_ID2 = _interopRequireDefault2(id_ID$3);
|
12656 | var _id_ID3 = _interopRequireDefault2(id_ID$1);
|
12657 | var _id_ID4 = _interopRequireDefault2(id_ID);
|
12658 | var localeValues = {
|
12659 | locale: "id",
|
12660 | Pagination: _id_ID["default"],
|
12661 | DatePicker: _id_ID2["default"],
|
12662 | TimePicker: _id_ID3["default"],
|
12663 | Calendar: _id_ID4["default"],
|
12664 | Table: {
|
12665 | filterTitle: "Saring",
|
12666 | filterConfirm: "OK",
|
12667 | filterReset: "Hapus",
|
12668 | selectAll: "Pilih semua di halaman ini",
|
12669 | selectInvert: "Balikkan pilihan di halaman ini",
|
12670 | sortTitle: "Urutkan"
|
12671 | },
|
12672 | Modal: {
|
12673 | okText: "OK",
|
12674 | cancelText: "Batal",
|
12675 | justOkText: "OK"
|
12676 | },
|
12677 | Popconfirm: {
|
12678 | okText: "OK",
|
12679 | cancelText: "Batal"
|
12680 | },
|
12681 | Transfer: {
|
12682 | titles: ["", ""],
|
12683 | searchPlaceholder: "Cari",
|
12684 | itemUnit: "item",
|
12685 | itemsUnit: "item"
|
12686 | },
|
12687 | Upload: {
|
12688 | uploading: "Mengunggah...",
|
12689 | removeFile: "Hapus file",
|
12690 | uploadError: "Kesalahan pengunggahan",
|
12691 | previewFile: "File pratinjau",
|
12692 | downloadFile: "Unduh berkas"
|
12693 | },
|
12694 | Empty: {
|
12695 | description: "Tidak ada data"
|
12696 | }
|
12697 | };
|
12698 | var _default2 = localeValues;
|
12699 | exports2["default"] = _default2;
|
12700 | })(id_ID$5);
|
12701 | var idID = getDefaultExportFromCjs(id_ID$5);
|
12702 | var it_IT$5 = {};
|
12703 | var it_IT$4 = {};
|
12704 | Object.defineProperty(it_IT$4, "__esModule", {
|
12705 | value: true
|
12706 | });
|
12707 | it_IT$4.default = void 0;
|
12708 | var _default$c = {
|
12709 | items_per_page: "/ pagina",
|
12710 | jump_to: "vai a",
|
12711 | jump_to_confirm: "Conferma",
|
12712 | page: "Pagina",
|
12713 | prev_page: "Pagina precedente",
|
12714 | next_page: "Pagina successiva",
|
12715 | prev_5: "Precedente 5 pagine",
|
12716 | next_5: "Prossime 5 pagine",
|
12717 | prev_3: "Precedente 3 pagine",
|
12718 | next_3: "Prossime 3 pagine",
|
12719 | page_size: "dimensioni della pagina"
|
12720 | };
|
12721 | it_IT$4.default = _default$c;
|
12722 | var it_IT$3 = {};
|
12723 | var it_IT$2 = {};
|
12724 | Object.defineProperty(it_IT$2, "__esModule", {
|
12725 | value: true
|
12726 | });
|
12727 | it_IT$2.default = void 0;
|
12728 | var locale$4 = {
|
12729 | locale: "it_IT",
|
12730 | today: "Oggi",
|
12731 | now: "Adesso",
|
12732 | backToToday: "Torna ad oggi",
|
12733 | ok: "Ok",
|
12734 | clear: "Cancella",
|
12735 | month: "Mese",
|
12736 | year: "Anno",
|
12737 | timeSelect: "Seleziona l'ora",
|
12738 | dateSelect: "Seleziona la data",
|
12739 | monthSelect: "Seleziona il mese",
|
12740 | yearSelect: "Seleziona l'anno",
|
12741 | decadeSelect: "Seleziona il decennio",
|
12742 | yearFormat: "YYYY",
|
12743 | dateFormat: "D/M/YYYY",
|
12744 | dayFormat: "D",
|
12745 | dateTimeFormat: "D/M/YYYY HH:mm:ss",
|
12746 | monthBeforeYear: true,
|
12747 | previousMonth: "Il mese scorso (PageUp)",
|
12748 | nextMonth: "Il prossimo mese (PageDown)",
|
12749 | previousYear: "L'anno scorso (Control + sinistra)",
|
12750 | nextYear: "L'anno prossimo (Control + destra)",
|
12751 | previousDecade: "Ultimo decennio",
|
12752 | nextDecade: "Prossimo decennio",
|
12753 | previousCentury: "Secolo precedente",
|
12754 | nextCentury: "Prossimo secolo"
|
12755 | };
|
12756 | var _default$b = locale$4;
|
12757 | it_IT$2.default = _default$b;
|
12758 | var it_IT$1 = {};
|
12759 | (function(exports2) {
|
12760 | Object.defineProperty(exports2, "__esModule", {
|
12761 | value: true
|
12762 | });
|
12763 | exports2["default"] = void 0;
|
12764 | var locale2 = {
|
12765 | placeholder: "Selezionare l'orario"
|
12766 | };
|
12767 | var _default2 = locale2;
|
12768 | exports2["default"] = _default2;
|
12769 | })(it_IT$1);
|
12770 | (function(exports2) {
|
12771 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12772 | Object.defineProperty(exports2, "__esModule", {
|
12773 | value: true
|
12774 | });
|
12775 | exports2["default"] = void 0;
|
12776 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
12777 | var _it_IT = _interopRequireDefault2(it_IT$2);
|
12778 | var _it_IT2 = _interopRequireDefault2(it_IT$1);
|
12779 | var locale2 = {
|
12780 | lang: (0, _extends2["default"])({
|
12781 | placeholder: "Selezionare la data",
|
12782 | rangePlaceholder: ["Data d'inizio", "Data di fine"]
|
12783 | }, _it_IT["default"]),
|
12784 | timePickerLocale: (0, _extends2["default"])({}, _it_IT2["default"])
|
12785 | };
|
12786 | var _default2 = locale2;
|
12787 | exports2["default"] = _default2;
|
12788 | })(it_IT$3);
|
12789 | var it_IT = {};
|
12790 | (function(exports2) {
|
12791 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12792 | Object.defineProperty(exports2, "__esModule", {
|
12793 | value: true
|
12794 | });
|
12795 | exports2["default"] = void 0;
|
12796 | var _it_IT = _interopRequireDefault2(it_IT$3);
|
12797 | var _default2 = _it_IT["default"];
|
12798 | exports2["default"] = _default2;
|
12799 | })(it_IT);
|
12800 | (function(exports2) {
|
12801 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12802 | Object.defineProperty(exports2, "__esModule", {
|
12803 | value: true
|
12804 | });
|
12805 | exports2["default"] = void 0;
|
12806 | var _it_IT = _interopRequireDefault2(it_IT$4);
|
12807 | var _it_IT2 = _interopRequireDefault2(it_IT$3);
|
12808 | var _it_IT3 = _interopRequireDefault2(it_IT$1);
|
12809 | var _it_IT4 = _interopRequireDefault2(it_IT);
|
12810 | var localeValues = {
|
12811 | locale: "it",
|
12812 | Pagination: _it_IT["default"],
|
12813 | DatePicker: _it_IT2["default"],
|
12814 | TimePicker: _it_IT3["default"],
|
12815 | Calendar: _it_IT4["default"],
|
12816 | global: {
|
12817 | placeholder: "Selezionare"
|
12818 | },
|
12819 | Table: {
|
12820 | filterTitle: "Men\xF9 Filtro",
|
12821 | filterConfirm: "OK",
|
12822 | filterReset: "Reset",
|
12823 | selectAll: "Seleziona pagina corrente",
|
12824 | selectInvert: "Inverti selezione nella pagina corrente",
|
12825 | sortTitle: "Ordina",
|
12826 | triggerDesc: "Clicca per ordinare in modo discendente",
|
12827 | triggerAsc: "\uFEFFClicca per ordinare in modo ascendente",
|
12828 | cancelSort: "Clicca per eliminare i filtri"
|
12829 | },
|
12830 | Modal: {
|
12831 | okText: "OK",
|
12832 | cancelText: "Annulla",
|
12833 | justOkText: "OK"
|
12834 | },
|
12835 | Popconfirm: {
|
12836 | okText: "OK",
|
12837 | cancelText: "Annulla"
|
12838 | },
|
12839 | Transfer: {
|
12840 | searchPlaceholder: "Cerca qui",
|
12841 | itemUnit: "elemento",
|
12842 | itemsUnit: "elementi"
|
12843 | },
|
12844 | Upload: {
|
12845 | uploading: "Caricamento...",
|
12846 | removeFile: "Rimuovi il file",
|
12847 | uploadError: "Errore di caricamento",
|
12848 | previewFile: "Anteprima file",
|
12849 | downloadFile: "Download file"
|
12850 | },
|
12851 | Empty: {
|
12852 | description: "Nessun dato"
|
12853 | },
|
12854 | Icon: {
|
12855 | icon: "icona"
|
12856 | },
|
12857 | Text: {
|
12858 | edit: "modifica",
|
12859 | copy: "copia",
|
12860 | copied: "copia effettuata",
|
12861 | expand: "espandi"
|
12862 | }
|
12863 | };
|
12864 | var _default2 = localeValues;
|
12865 | exports2["default"] = _default2;
|
12866 | })(it_IT$5);
|
12867 | var itIT = getDefaultExportFromCjs(it_IT$5);
|
12868 | var ja_JP$5 = {};
|
12869 | var ja_JP$4 = {};
|
12870 | Object.defineProperty(ja_JP$4, "__esModule", {
|
12871 | value: true
|
12872 | });
|
12873 | ja_JP$4.default = void 0;
|
12874 | var _default$a = {
|
12875 | items_per_page: "\u4EF6 / \u30DA\u30FC\u30B8",
|
12876 | jump_to: "\u79FB\u52D5",
|
12877 | jump_to_confirm: "\u78BA\u8A8D\u3059\u308B",
|
12878 | page: "\u30DA\u30FC\u30B8",
|
12879 | prev_page: "\u524D\u306E\u30DA\u30FC\u30B8",
|
12880 | next_page: "\u6B21\u306E\u30DA\u30FC\u30B8",
|
12881 | prev_5: "\u524D 5\u30DA\u30FC\u30B8",
|
12882 | next_5: "\u6B21 5\u30DA\u30FC\u30B8",
|
12883 | prev_3: "\u524D 3\u30DA\u30FC\u30B8",
|
12884 | next_3: "\u6B21 3\u30DA\u30FC\u30B8",
|
12885 | page_size: "\u30DA\u30FC\u30B8\u30B5\u30A4\u30BA"
|
12886 | };
|
12887 | ja_JP$4.default = _default$a;
|
12888 | var ja_JP$3 = {};
|
12889 | var ja_JP$2 = {};
|
12890 | Object.defineProperty(ja_JP$2, "__esModule", {
|
12891 | value: true
|
12892 | });
|
12893 | ja_JP$2.default = void 0;
|
12894 | var locale$3 = {
|
12895 | locale: "ja_JP",
|
12896 | today: "\u4ECA\u65E5",
|
12897 | now: "\u73FE\u5728\u6642\u523B",
|
12898 | backToToday: "\u4ECA\u65E5\u306B\u623B\u308B",
|
12899 | ok: "\u6C7A\u5B9A",
|
12900 | timeSelect: "\u6642\u9593\u3092\u9078\u629E",
|
12901 | dateSelect: "\u65E5\u6642\u3092\u9078\u629E",
|
12902 | weekSelect: "\u9031\u3092\u9078\u629E",
|
12903 | clear: "\u30AF\u30EA\u30A2",
|
12904 | month: "\u6708",
|
12905 | year: "\u5E74",
|
12906 | previousMonth: "\u524D\u6708 (\u30DA\u30FC\u30B8\u30A2\u30C3\u30D7\u30AD\u30FC)",
|
12907 | nextMonth: "\u7FCC\u6708 (\u30DA\u30FC\u30B8\u30C0\u30A6\u30F3\u30AD\u30FC)",
|
12908 | monthSelect: "\u6708\u3092\u9078\u629E",
|
12909 | yearSelect: "\u5E74\u3092\u9078\u629E",
|
12910 | decadeSelect: "\u5E74\u4EE3\u3092\u9078\u629E",
|
12911 | yearFormat: "YYYY\u5E74",
|
12912 | dayFormat: "D\u65E5",
|
12913 | dateFormat: "YYYY\u5E74M\u6708D\u65E5",
|
12914 | dateTimeFormat: "YYYY\u5E74M\u6708D\u65E5 HH\u6642mm\u5206ss\u79D2",
|
12915 | previousYear: "\u524D\u5E74 (Control\u3092\u62BC\u3057\u306A\u304C\u3089\u5DE6\u30AD\u30FC)",
|
12916 | nextYear: "\u7FCC\u5E74 (Control\u3092\u62BC\u3057\u306A\u304C\u3089\u53F3\u30AD\u30FC)",
|
12917 | previousDecade: "\u524D\u306E\u5E74\u4EE3",
|
12918 | nextDecade: "\u6B21\u306E\u5E74\u4EE3",
|
12919 | previousCentury: "\u524D\u306E\u4E16\u7D00",
|
12920 | nextCentury: "\u6B21\u306E\u4E16\u7D00"
|
12921 | };
|
12922 | var _default$9 = locale$3;
|
12923 | ja_JP$2.default = _default$9;
|
12924 | var ja_JP$1 = {};
|
12925 | (function(exports2) {
|
12926 | Object.defineProperty(exports2, "__esModule", {
|
12927 | value: true
|
12928 | });
|
12929 | exports2["default"] = void 0;
|
12930 | var locale2 = {
|
12931 | placeholder: "\u6642\u9593\u3092\u9078\u629E",
|
12932 | rangePlaceholder: ["\u958B\u59CB\u6642\u9593", "\u7D42\u4E86\u6642\u9593"]
|
12933 | };
|
12934 | var _default2 = locale2;
|
12935 | exports2["default"] = _default2;
|
12936 | })(ja_JP$1);
|
12937 | (function(exports2) {
|
12938 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12939 | Object.defineProperty(exports2, "__esModule", {
|
12940 | value: true
|
12941 | });
|
12942 | exports2["default"] = void 0;
|
12943 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
12944 | var _ja_JP = _interopRequireDefault2(ja_JP$2);
|
12945 | var _ja_JP2 = _interopRequireDefault2(ja_JP$1);
|
12946 | var locale2 = {
|
12947 | lang: (0, _extends2["default"])({
|
12948 | placeholder: "\u65E5\u4ED8\u3092\u9078\u629E",
|
12949 | rangePlaceholder: ["\u958B\u59CB\u65E5\u4ED8", "\u7D42\u4E86\u65E5\u4ED8"]
|
12950 | }, _ja_JP["default"]),
|
12951 | timePickerLocale: (0, _extends2["default"])({}, _ja_JP2["default"])
|
12952 | };
|
12953 | var _default2 = locale2;
|
12954 | exports2["default"] = _default2;
|
12955 | })(ja_JP$3);
|
12956 | var ja_JP = {};
|
12957 | (function(exports2) {
|
12958 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12959 | Object.defineProperty(exports2, "__esModule", {
|
12960 | value: true
|
12961 | });
|
12962 | exports2["default"] = void 0;
|
12963 | var _ja_JP = _interopRequireDefault2(ja_JP$3);
|
12964 | var _default2 = _ja_JP["default"];
|
12965 | exports2["default"] = _default2;
|
12966 | })(ja_JP);
|
12967 | (function(exports2) {
|
12968 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
12969 | Object.defineProperty(exports2, "__esModule", {
|
12970 | value: true
|
12971 | });
|
12972 | exports2["default"] = void 0;
|
12973 | var _ja_JP = _interopRequireDefault2(ja_JP$4);
|
12974 | var _ja_JP2 = _interopRequireDefault2(ja_JP$3);
|
12975 | var _ja_JP3 = _interopRequireDefault2(ja_JP$1);
|
12976 | var _ja_JP4 = _interopRequireDefault2(ja_JP);
|
12977 | var typeTemplate = "${label}\u306F\u6709\u52B9\u306A${type}\u3067\u306F\u3042\u308A\u307E\u305B\u3093";
|
12978 | var localeValues = {
|
12979 | locale: "ja",
|
12980 | Pagination: _ja_JP["default"],
|
12981 | DatePicker: _ja_JP2["default"],
|
12982 | TimePicker: _ja_JP3["default"],
|
12983 | Calendar: _ja_JP4["default"],
|
12984 | Table: {
|
12985 | filterTitle: "\u30D5\u30A3\u30EB\u30BF\u30FC",
|
12986 | filterConfirm: "OK",
|
12987 | filterReset: "\u30EA\u30BB\u30C3\u30C8",
|
12988 | filterEmptyText: "\u30D5\u30A3\u30EB\u30BF\u30FC\u306A\u3057",
|
12989 | selectAll: "\u30DA\u30FC\u30B8\u5358\u4F4D\u3067\u9078\u629E",
|
12990 | selectInvert: "\u30DA\u30FC\u30B8\u5358\u4F4D\u3067\u53CD\u8EE2",
|
12991 | selectionAll: "\u3059\u3079\u3066\u3092\u9078\u629E",
|
12992 | sortTitle: "\u30BD\u30FC\u30C8",
|
12993 | expand: "\u5C55\u958B\u3059\u308B",
|
12994 | collapse: "\u6298\u308A\u7573\u3080",
|
12995 | triggerDesc: "\u30AF\u30EA\u30C3\u30AF\u3067\u964D\u9806\u306B\u30BD\u30FC\u30C8",
|
12996 | triggerAsc: "\u30AF\u30EA\u30C3\u30AF\u3067\u6607\u9806\u306B\u30BD\u30FC\u30C8",
|
12997 | cancelSort: "\u30BD\u30FC\u30C8\u3092\u30AD\u30E3\u30F3\u30BB\u30EB"
|
12998 | },
|
12999 | Modal: {
|
13000 | okText: "OK",
|
13001 | cancelText: "\u30AD\u30E3\u30F3\u30BB\u30EB",
|
13002 | justOkText: "OK"
|
13003 | },
|
13004 | Popconfirm: {
|
13005 | okText: "OK",
|
13006 | cancelText: "\u30AD\u30E3\u30F3\u30BB\u30EB"
|
13007 | },
|
13008 | Transfer: {
|
13009 | searchPlaceholder: "\u3053\u3053\u3092\u691C\u7D22",
|
13010 | itemUnit: "\u30A2\u30A4\u30C6\u30E0",
|
13011 | itemsUnit: "\u30A2\u30A4\u30C6\u30E0"
|
13012 | },
|
13013 | Upload: {
|
13014 | uploading: "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u4E2D...",
|
13015 | removeFile: "\u30D5\u30A1\u30A4\u30EB\u3092\u524A\u9664",
|
13016 | uploadError: "\u30A2\u30C3\u30D7\u30ED\u30FC\u30C9\u30A8\u30E9\u30FC",
|
13017 | previewFile: "\u30D5\u30A1\u30A4\u30EB\u3092\u30D7\u30EC\u30D3\u30E5\u30FC",
|
13018 | downloadFile: "\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u30D5\u30A1\u30A4\u30EB"
|
13019 | },
|
13020 | Empty: {
|
13021 | description: "\u30C7\u30FC\u30BF\u304C\u3042\u308A\u307E\u305B\u3093"
|
13022 | },
|
13023 | Form: {
|
13024 | defaultValidateMessages: {
|
13025 | "default": "${label}\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u691C\u8A3C\u30A8\u30E9\u30FC",
|
13026 | required: "${label}\u3092\u5165\u529B\u3057\u3066\u304F\u3060\u3055\u3044",
|
13027 | "enum": "${label}\u306F[${enum}]\u306E\u3044\u305A\u308C\u304B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
|
13028 | whitespace: "${label}\u306F\u7A7A\u767D\u6587\u5B57\u306B\u3059\u308B\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093",
|
13029 | date: {
|
13030 | format: "${label}\u306E\u65E5\u4ED8\u5F62\u5F0F\u306F\u4E0D\u6B63\u3067\u3059",
|
13031 | parse: "${label}\u306F\u65E5\u4ED8\u306B\u5909\u63DB\u3067\u304D\u307E\u305B\u3093",
|
13032 | invalid: "${label}\u306F\u4E0D\u6B63\u306A\u65E5\u4ED8\u3067\u3059"
|
13033 | },
|
13034 | types: {
|
13035 | string: typeTemplate,
|
13036 | method: typeTemplate,
|
13037 | array: typeTemplate,
|
13038 | object: typeTemplate,
|
13039 | number: typeTemplate,
|
13040 | date: typeTemplate,
|
13041 | "boolean": typeTemplate,
|
13042 | integer: typeTemplate,
|
13043 | "float": typeTemplate,
|
13044 | regexp: typeTemplate,
|
13045 | email: typeTemplate,
|
13046 | url: typeTemplate,
|
13047 | hex: typeTemplate
|
13048 | },
|
13049 | string: {
|
13050 | len: "${label}\u306F${len}\u6587\u5B57\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
|
13051 | min: "${label}\u306F${min}\u6587\u5B57\u4EE5\u4E0A\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
|
13052 | max: "${label}\u306F${max}\u6587\u5B57\u4EE5\u4E0B\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
|
13053 | range: "${label}\u306F${min}-${max}\u6587\u5B57\u306E\u7BC4\u56F2\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"
|
13054 | },
|
13055 | number: {
|
13056 | len: "${label}\u306F${len}\u3068\u7B49\u3057\u3044\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
|
13057 | min: "${label}\u306E\u6700\u5C0F\u5024\u306F${min}\u3067\u3059",
|
13058 | max: "${label}\u306E\u6700\u5927\u5024\u306F${max}\u3067\u3059",
|
13059 | range: "${label}\u306F${min}-${max}\u306E\u7BC4\u56F2\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"
|
13060 | },
|
13061 | array: {
|
13062 | len: "${label}\u306F${len}\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059",
|
13063 | min: "${label}\u306E\u6700\u5C0F\u306F${min}\u3067\u3059",
|
13064 | max: "${label}\u306E\u6700\u5927\u306F${max}\u3067\u3059",
|
13065 | range: "${label}\u306E\u5408\u8A08\u306F${min}-${max}\u306E\u7BC4\u56F2\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059"
|
13066 | },
|
13067 | pattern: {
|
13068 | mismatch: "${label}\u306F\u30D1\u30BF\u30FC\u30F3${pattern}\u3068\u4E00\u81F4\u3057\u307E\u305B\u3093"
|
13069 | }
|
13070 | }
|
13071 | }
|
13072 | };
|
13073 | var _default2 = localeValues;
|
13074 | exports2["default"] = _default2;
|
13075 | })(ja_JP$5);
|
13076 | var jaJP = getDefaultExportFromCjs(ja_JP$5);
|
13077 | var ko_KR$5 = {};
|
13078 | var ko_KR$4 = {};
|
13079 | Object.defineProperty(ko_KR$4, "__esModule", {
|
13080 | value: true
|
13081 | });
|
13082 | ko_KR$4.default = void 0;
|
13083 | var _default$8 = {
|
13084 | items_per_page: "/ \uCABD",
|
13085 | jump_to: "\uC774\uB3D9\uD558\uAE30",
|
13086 | jump_to_confirm: "\uD655\uC778\uD558\uB2E4",
|
13087 | page: "\uD398\uC774\uC9C0",
|
13088 | prev_page: "\uC774\uC804 \uD398\uC774\uC9C0",
|
13089 | next_page: "\uB2E4\uC74C \uD398\uC774\uC9C0",
|
13090 | prev_5: "\uC774\uC804 5 \uD398\uC774\uC9C0",
|
13091 | next_5: "\uB2E4\uC74C 5 \uD398\uC774\uC9C0",
|
13092 | prev_3: "\uC774\uC804 3 \uD398\uC774\uC9C0",
|
13093 | next_3: "\uB2E4\uC74C 3 \uD398\uC774\uC9C0",
|
13094 | page_size: "\uD398\uC774\uC9C0 \uD06C\uAE30"
|
13095 | };
|
13096 | ko_KR$4.default = _default$8;
|
13097 | var ko_KR$3 = {};
|
13098 | var ko_KR$2 = {};
|
13099 | Object.defineProperty(ko_KR$2, "__esModule", {
|
13100 | value: true
|
13101 | });
|
13102 | ko_KR$2.default = void 0;
|
13103 | var locale$2 = {
|
13104 | locale: "ko_KR",
|
13105 | today: "\uC624\uB298",
|
13106 | now: "\uD604\uC7AC \uC2DC\uAC01",
|
13107 | backToToday: "\uC624\uB298\uB85C \uB3CC\uC544\uAC00\uAE30",
|
13108 | ok: "\uD655\uC778",
|
13109 | clear: "\uC9C0\uC6B0\uAE30",
|
13110 | month: "\uC6D4",
|
13111 | year: "\uB144",
|
13112 | timeSelect: "\uC2DC\uAC04 \uC120\uD0DD",
|
13113 | dateSelect: "\uB0A0\uC9DC \uC120\uD0DD",
|
13114 | monthSelect: "\uB2EC \uC120\uD0DD",
|
13115 | yearSelect: "\uC5F0 \uC120\uD0DD",
|
13116 | decadeSelect: "\uC5F0\uB300 \uC120\uD0DD",
|
13117 | yearFormat: "YYYY\uB144",
|
13118 | dateFormat: "YYYY-MM-DD",
|
13119 | dayFormat: "Do",
|
13120 | dateTimeFormat: "YYYY-MM-DD HH:mm:ss",
|
13121 | monthBeforeYear: false,
|
13122 | previousMonth: "\uC774\uC804 \uB2EC (PageUp)",
|
13123 | nextMonth: "\uB2E4\uC74C \uB2EC (PageDown)",
|
13124 | previousYear: "\uC774\uC804 \uD574 (Control + left)",
|
13125 | nextYear: "\uB2E4\uC74C \uD574 (Control + right)",
|
13126 | previousDecade: "\uC774\uC804 \uC5F0\uB300",
|
13127 | nextDecade: "\uB2E4\uC74C \uC5F0\uB300",
|
13128 | previousCentury: "\uC774\uC804 \uC138\uAE30",
|
13129 | nextCentury: "\uB2E4\uC74C \uC138\uAE30"
|
13130 | };
|
13131 | var _default$7 = locale$2;
|
13132 | ko_KR$2.default = _default$7;
|
13133 | var ko_KR$1 = {};
|
13134 | (function(exports2) {
|
13135 | Object.defineProperty(exports2, "__esModule", {
|
13136 | value: true
|
13137 | });
|
13138 | exports2["default"] = void 0;
|
13139 | var locale2 = {
|
13140 | placeholder: "\uC2DC\uAC04 \uC120\uD0DD",
|
13141 | rangePlaceholder: ["\uC2DC\uC791 \uC2DC\uAC04", "\uC885\uB8CC \uC2DC\uAC04"]
|
13142 | };
|
13143 | var _default2 = locale2;
|
13144 | exports2["default"] = _default2;
|
13145 | })(ko_KR$1);
|
13146 | (function(exports2) {
|
13147 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13148 | Object.defineProperty(exports2, "__esModule", {
|
13149 | value: true
|
13150 | });
|
13151 | exports2["default"] = void 0;
|
13152 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
13153 | var _ko_KR = _interopRequireDefault2(ko_KR$2);
|
13154 | var _ko_KR2 = _interopRequireDefault2(ko_KR$1);
|
13155 | var locale2 = {
|
13156 | lang: (0, _extends2["default"])({
|
13157 | placeholder: "\uB0A0\uC9DC \uC120\uD0DD",
|
13158 | rangePlaceholder: ["\uC2DC\uC791\uC77C", "\uC885\uB8CC\uC77C"]
|
13159 | }, _ko_KR["default"]),
|
13160 | timePickerLocale: (0, _extends2["default"])({}, _ko_KR2["default"])
|
13161 | };
|
13162 | var _default2 = locale2;
|
13163 | exports2["default"] = _default2;
|
13164 | })(ko_KR$3);
|
13165 | var ko_KR = {};
|
13166 | (function(exports2) {
|
13167 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13168 | Object.defineProperty(exports2, "__esModule", {
|
13169 | value: true
|
13170 | });
|
13171 | exports2["default"] = void 0;
|
13172 | var _ko_KR = _interopRequireDefault2(ko_KR$3);
|
13173 | var _default2 = _ko_KR["default"];
|
13174 | exports2["default"] = _default2;
|
13175 | })(ko_KR);
|
13176 | (function(exports2) {
|
13177 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13178 | Object.defineProperty(exports2, "__esModule", {
|
13179 | value: true
|
13180 | });
|
13181 | exports2["default"] = void 0;
|
13182 | var _ko_KR = _interopRequireDefault2(ko_KR$4);
|
13183 | var _ko_KR2 = _interopRequireDefault2(ko_KR$3);
|
13184 | var _ko_KR3 = _interopRequireDefault2(ko_KR$1);
|
13185 | var _ko_KR4 = _interopRequireDefault2(ko_KR);
|
13186 | var typeTemplate = "${label} \uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 ${type}";
|
13187 | var localeValues = {
|
13188 | locale: "ko",
|
13189 | Pagination: _ko_KR["default"],
|
13190 | DatePicker: _ko_KR2["default"],
|
13191 | TimePicker: _ko_KR3["default"],
|
13192 | Calendar: _ko_KR4["default"],
|
13193 | Table: {
|
13194 | filterTitle: "\uD544\uD130 \uBA54\uB274",
|
13195 | filterConfirm: "\uD655\uC778",
|
13196 | filterReset: "\uCD08\uAE30\uD654",
|
13197 | filterEmptyText: "\uD544\uD130 \uC5C6\uC74C",
|
13198 | emptyText: "\uB370\uC774\uD130 \uC5C6\uC74C",
|
13199 | selectAll: "\uBAA8\uB450 \uC120\uD0DD",
|
13200 | selectInvert: "\uC120\uD0DD \uBC18\uC804"
|
13201 | },
|
13202 | Modal: {
|
13203 | okText: "\uD655\uC778",
|
13204 | cancelText: "\uCDE8\uC18C",
|
13205 | justOkText: "\uD655\uC778"
|
13206 | },
|
13207 | Popconfirm: {
|
13208 | okText: "\uD655\uC778",
|
13209 | cancelText: "\uCDE8\uC18C"
|
13210 | },
|
13211 | Transfer: {
|
13212 | searchPlaceholder: "\uC5EC\uAE30\uC5D0 \uAC80\uC0C9\uD558\uC138\uC694",
|
13213 | itemUnit: "\uAC1C",
|
13214 | itemsUnit: "\uAC1C"
|
13215 | },
|
13216 | Upload: {
|
13217 | uploading: "\uC5C5\uB85C\uB4DC \uC911...",
|
13218 | removeFile: "\uD30C\uC77C \uC0AD\uC81C",
|
13219 | uploadError: "\uC5C5\uB85C\uB4DC \uC2E4\uD328",
|
13220 | previewFile: "\uD30C\uC77C \uBBF8\uB9AC\uBCF4\uAE30",
|
13221 | downloadFile: "\uD30C\uC77C \uB2E4\uC6B4\uB85C\uB4DC"
|
13222 | },
|
13223 | Empty: {
|
13224 | description: "\uB370\uC774\uD130 \uC5C6\uC74C"
|
13225 | },
|
13226 | Form: {
|
13227 | defaultValidateMessages: {
|
13228 | "default": "\uD544\uB4DC \uC720\uD6A8\uC131 \uAC80\uC0AC \uC624\uB958 ${label}",
|
13229 | required: "${label} \uC785\uB825\uD574 \uC8FC\uC138\uC694",
|
13230 | "enum": "${label} [${enum}] \uC911\uC5D0 \uD558\uB098\uC5EC\uC57C \uD569\uB2C8\uB2E4",
|
13231 | whitespace: "${label} \uBE44\uC6CC\uB458 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
|
13232 | date: {
|
13233 | format: "${label} \uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uB0A0\uC9DC \uD615\uC2DD\uC785\uB2C8\uB2E4",
|
13234 | parse: "${label} \uB0A0\uC9DC \uD615\uC2DD\uC73C\uB85C \uBCC0\uD658\uB420 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4",
|
13235 | invalid: "${label} \uC720\uD6A8\uD558\uC9C0 \uC54A\uC740 \uB0A0\uC9DC\uC785\uB2C8\uB2E4"
|
13236 | },
|
13237 | types: {
|
13238 | string: typeTemplate,
|
13239 | method: typeTemplate,
|
13240 | array: typeTemplate,
|
13241 | object: typeTemplate,
|
13242 | number: typeTemplate,
|
13243 | date: typeTemplate,
|
13244 | "boolean": typeTemplate,
|
13245 | integer: typeTemplate,
|
13246 | "float": typeTemplate,
|
13247 | regexp: typeTemplate,
|
13248 | email: typeTemplate,
|
13249 | url: typeTemplate,
|
13250 | hex: typeTemplate
|
13251 | },
|
13252 | string: {
|
13253 | len: "${label} ${len}\uAE00\uC790\uC5EC\uC57C \uD569\uB2C8\uB2E4",
|
13254 | min: "${label} \uC801\uC5B4\uB3C4 ${min}\uAE00\uC790 \uC774\uC0C1\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4",
|
13255 | max: "${label} ${max}\uAE00\uC790 \uC774\uD558\uC5EC\uC57C \uD569\uB2C8\uB2E4",
|
13256 | range: "${label} ${min}-${max}\uAE00\uC790 \uC0AC\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4"
|
13257 | },
|
13258 | number: {
|
13259 | len: "${label} \uAC12\uC740 ${len}\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4",
|
13260 | min: "${label} \uCD5C\uC19F\uAC12\uC740 ${min}\uC785\uB2C8\uB2E4",
|
13261 | max: "${label} \uCD5C\uB313\uAC12\uC740 ${max}\uC785\uB2C8\uB2E4",
|
13262 | range: "${label} \uAC12\uC740 ${min}-${max} \uC0AC\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4"
|
13263 | },
|
13264 | array: {
|
13265 | len: "${len}\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4 ${label} ",
|
13266 | min: "\uCD5C\uC18C ${min}\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4 ${label}",
|
13267 | max: "\uCD5C\uB300 ${max}\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4 ${label}",
|
13268 | range: "${label} ${min}-${max} \uC0AC\uC774\uC5B4\uC57C \uD569\uB2C8\uB2E4"
|
13269 | },
|
13270 | pattern: {
|
13271 | mismatch: "${label} ${pattern} \uD328\uD134\uACFC \uC77C\uCE58\uD558\uC9C0 \uC54A\uC2B5\uB2C8\uB2E4"
|
13272 | }
|
13273 | }
|
13274 | }
|
13275 | };
|
13276 | var _default2 = localeValues;
|
13277 | exports2["default"] = _default2;
|
13278 | })(ko_KR$5);
|
13279 | var koKR = getDefaultExportFromCjs(ko_KR$5);
|
13280 | var pt_PT$5 = {};
|
13281 | var pt_PT$4 = {};
|
13282 | Object.defineProperty(pt_PT$4, "__esModule", {
|
13283 | value: true
|
13284 | });
|
13285 | pt_PT$4.default = void 0;
|
13286 | var _default$6 = {
|
13287 | items_per_page: "/ p\xE1gina",
|
13288 | jump_to: "Saltar",
|
13289 | jump_to_confirm: "confirmar",
|
13290 | page: "P\xE1gina",
|
13291 | prev_page: "P\xE1gina Anterior",
|
13292 | next_page: "P\xE1gina Seguinte",
|
13293 | prev_5: "Recuar 5 P\xE1ginas",
|
13294 | next_5: "Avan\xE7ar 5 P\xE1ginas",
|
13295 | prev_3: "Recuar 3 P\xE1ginas",
|
13296 | next_3: "Avan\xE7ar 3 P\xE1ginas",
|
13297 | page_size: "m\u0103rimea paginii"
|
13298 | };
|
13299 | pt_PT$4.default = _default$6;
|
13300 | var pt_PT$3 = {};
|
13301 | var pt_PT$2 = {};
|
13302 | Object.defineProperty(pt_PT$2, "__esModule", {
|
13303 | value: true
|
13304 | });
|
13305 | pt_PT$2.default = void 0;
|
13306 | var locale$1 = {
|
13307 | locale: "pt_PT",
|
13308 | today: "Hoje",
|
13309 | now: "Agora",
|
13310 | backToToday: "Hoje",
|
13311 | ok: "Ok",
|
13312 | clear: "Limpar",
|
13313 | month: "M\xEAs",
|
13314 | year: "Ano",
|
13315 | timeSelect: "Selecionar hora",
|
13316 | dateSelect: "Selecionar data",
|
13317 | monthSelect: "Selecionar m\xEAs",
|
13318 | yearSelect: "Selecionar ano",
|
13319 | decadeSelect: "Selecionar d\xE9cada",
|
13320 | yearFormat: "YYYY",
|
13321 | dateFormat: "D/M/YYYY",
|
13322 | dayFormat: "D",
|
13323 | dateTimeFormat: "D/M/YYYY HH:mm:ss",
|
13324 | monthBeforeYear: true,
|
13325 | previousMonth: "M\xEAs anterior (PageUp)",
|
13326 | nextMonth: "M\xEAs seguinte (PageDown)",
|
13327 | previousYear: "Ano anterior (Control + left)",
|
13328 | nextYear: "Ano seguinte (Control + right)",
|
13329 | previousDecade: "D\xE9cada anterior",
|
13330 | nextDecade: "D\xE9cada seguinte",
|
13331 | previousCentury: "S\xE9culo anterior",
|
13332 | nextCentury: "S\xE9culo seguinte"
|
13333 | };
|
13334 | var _default$5 = locale$1;
|
13335 | pt_PT$2.default = _default$5;
|
13336 | var pt_PT$1 = {};
|
13337 | (function(exports2) {
|
13338 | Object.defineProperty(exports2, "__esModule", {
|
13339 | value: true
|
13340 | });
|
13341 | exports2["default"] = void 0;
|
13342 | var locale2 = {
|
13343 | placeholder: "Hora"
|
13344 | };
|
13345 | var _default2 = locale2;
|
13346 | exports2["default"] = _default2;
|
13347 | })(pt_PT$1);
|
13348 | (function(exports2) {
|
13349 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13350 | Object.defineProperty(exports2, "__esModule", {
|
13351 | value: true
|
13352 | });
|
13353 | exports2["default"] = void 0;
|
13354 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
13355 | var _pt_PT = _interopRequireDefault2(pt_PT$2);
|
13356 | var _pt_PT2 = _interopRequireDefault2(pt_PT$1);
|
13357 | var locale2 = {
|
13358 | lang: (0, _extends2["default"])((0, _extends2["default"])({}, _pt_PT["default"]), {
|
13359 | placeholder: "Data",
|
13360 | rangePlaceholder: ["Data inicial", "Data final"],
|
13361 | today: "Hoje",
|
13362 | now: "Agora",
|
13363 | backToToday: "Hoje",
|
13364 | ok: "OK",
|
13365 | clear: "Limpar",
|
13366 | month: "M\xEAs",
|
13367 | year: "Ano",
|
13368 | timeSelect: "Hora",
|
13369 | dateSelect: "Selecionar data",
|
13370 | monthSelect: "Selecionar m\xEAs",
|
13371 | yearSelect: "Selecionar ano",
|
13372 | decadeSelect: "Selecionar d\xE9cada",
|
13373 | yearFormat: "YYYY",
|
13374 | dateFormat: "D/M/YYYY",
|
13375 | dayFormat: "D",
|
13376 | dateTimeFormat: "D/M/YYYY HH:mm:ss",
|
13377 | monthFormat: "MMMM",
|
13378 | monthBeforeYear: false,
|
13379 | previousMonth: "M\xEAs anterior (PageUp)",
|
13380 | nextMonth: "M\xEAs seguinte (PageDown)",
|
13381 | previousYear: "Ano anterior (Control + left)",
|
13382 | nextYear: "Ano seguinte (Control + right)",
|
13383 | previousDecade: "\xDAltima d\xE9cada",
|
13384 | nextDecade: "Pr\xF3xima d\xE9cada",
|
13385 | previousCentury: "\xDAltimo s\xE9culo",
|
13386 | nextCentury: "Pr\xF3ximo s\xE9culo"
|
13387 | }),
|
13388 | timePickerLocale: (0, _extends2["default"])((0, _extends2["default"])({}, _pt_PT2["default"]), {
|
13389 | placeholder: "Hora"
|
13390 | })
|
13391 | };
|
13392 | var _default2 = locale2;
|
13393 | exports2["default"] = _default2;
|
13394 | })(pt_PT$3);
|
13395 | var pt_PT = {};
|
13396 | (function(exports2) {
|
13397 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13398 | Object.defineProperty(exports2, "__esModule", {
|
13399 | value: true
|
13400 | });
|
13401 | exports2["default"] = void 0;
|
13402 | var _pt_PT = _interopRequireDefault2(pt_PT$3);
|
13403 | var _default2 = _pt_PT["default"];
|
13404 | exports2["default"] = _default2;
|
13405 | })(pt_PT);
|
13406 | (function(exports2) {
|
13407 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13408 | Object.defineProperty(exports2, "__esModule", {
|
13409 | value: true
|
13410 | });
|
13411 | exports2["default"] = void 0;
|
13412 | var _pt_PT = _interopRequireDefault2(pt_PT$4);
|
13413 | var _pt_PT2 = _interopRequireDefault2(pt_PT$3);
|
13414 | var _pt_PT3 = _interopRequireDefault2(pt_PT$1);
|
13415 | var _pt_PT4 = _interopRequireDefault2(pt_PT);
|
13416 | var localeValues = {
|
13417 | locale: "pt",
|
13418 | Pagination: _pt_PT["default"],
|
13419 | DatePicker: _pt_PT2["default"],
|
13420 | TimePicker: _pt_PT3["default"],
|
13421 | Calendar: _pt_PT4["default"],
|
13422 | Table: {
|
13423 | filterTitle: "Filtro",
|
13424 | filterConfirm: "Aplicar",
|
13425 | filterReset: "Reiniciar",
|
13426 | selectAll: "Selecionar p\xE1gina atual",
|
13427 | selectInvert: "Inverter sele\xE7\xE3o",
|
13428 | sortTitle: "Ordena\xE7\xE3o"
|
13429 | },
|
13430 | Modal: {
|
13431 | okText: "OK",
|
13432 | cancelText: "Cancelar",
|
13433 | justOkText: "OK"
|
13434 | },
|
13435 | Popconfirm: {
|
13436 | okText: "OK",
|
13437 | cancelText: "Cancelar"
|
13438 | },
|
13439 | Transfer: {
|
13440 | searchPlaceholder: "Procurar...",
|
13441 | itemUnit: "item",
|
13442 | itemsUnit: "itens"
|
13443 | },
|
13444 | Upload: {
|
13445 | uploading: "A carregar...",
|
13446 | removeFile: "Remover",
|
13447 | uploadError: "Erro ao carregar",
|
13448 | previewFile: "Pr\xE9-visualizar",
|
13449 | downloadFile: "Baixar"
|
13450 | },
|
13451 | Empty: {
|
13452 | description: "Sem resultados"
|
13453 | }
|
13454 | };
|
13455 | var _default2 = localeValues;
|
13456 | exports2["default"] = _default2;
|
13457 | })(pt_PT$5);
|
13458 | var ptPT = getDefaultExportFromCjs(pt_PT$5);
|
13459 | var th_TH$5 = {};
|
13460 | var th_TH$4 = {};
|
13461 | Object.defineProperty(th_TH$4, "__esModule", {
|
13462 | value: true
|
13463 | });
|
13464 | th_TH$4.default = void 0;
|
13465 | var _default$4 = {
|
13466 | items_per_page: "/ \u0E2B\u0E19\u0E49\u0E32",
|
13467 | jump_to: "\u0E44\u0E1B\u0E22\u0E31\u0E07",
|
13468 | jump_to_confirm: "\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",
|
13469 | page: "\u0E2B\u0E19\u0E49\u0E32",
|
13470 | prev_page: "\u0E2B\u0E19\u0E49\u0E32\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
|
13471 | next_page: "\u0E2B\u0E19\u0E49\u0E32\u0E16\u0E31\u0E14\u0E44\u0E1B",
|
13472 | prev_5: "\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A 5 \u0E2B\u0E19\u0E49\u0E32",
|
13473 | next_5: "\u0E16\u0E31\u0E14\u0E44\u0E1B 5 \u0E2B\u0E19\u0E49\u0E32",
|
13474 | prev_3: "\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A 3 \u0E2B\u0E19\u0E49\u0E32",
|
13475 | next_3: "\u0E16\u0E31\u0E14\u0E44\u0E1B 3 \u0E2B\u0E19\u0E49\u0E32",
|
13476 | page_size: "\u0E02\u0E19\u0E32\u0E14\u0E2B\u0E19\u0E49\u0E32"
|
13477 | };
|
13478 | th_TH$4.default = _default$4;
|
13479 | var th_TH$3 = {};
|
13480 | var th_TH$2 = {};
|
13481 | Object.defineProperty(th_TH$2, "__esModule", {
|
13482 | value: true
|
13483 | });
|
13484 | th_TH$2.default = void 0;
|
13485 | var locale = {
|
13486 | locale: "th_TH",
|
13487 | today: "\u0E27\u0E31\u0E19\u0E19\u0E35\u0E49",
|
13488 | now: "\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49",
|
13489 | backToToday: "\u0E01\u0E25\u0E31\u0E1A\u0E44\u0E1B\u0E22\u0E31\u0E07\u0E27\u0E31\u0E19\u0E19\u0E35\u0E49",
|
13490 | ok: "\u0E15\u0E01\u0E25\u0E07",
|
13491 | clear: "\u0E25\u0E1A\u0E25\u0E49\u0E32\u0E07",
|
13492 | month: "\u0E40\u0E14\u0E37\u0E2D\u0E19",
|
13493 | year: "\u0E1B\u0E35",
|
13494 | timeSelect: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32",
|
13495 | dateSelect: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E27\u0E31\u0E19",
|
13496 | monthSelect: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",
|
13497 | yearSelect: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E1B\u0E35",
|
13498 | decadeSelect: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E28\u0E27\u0E23\u0E23\u0E29",
|
13499 | yearFormat: "YYYY",
|
13500 | dateFormat: "D/M/YYYY",
|
13501 | dayFormat: "D",
|
13502 | dateTimeFormat: "D/M/YYYY HH:mm:ss",
|
13503 | monthBeforeYear: true,
|
13504 | previousMonth: "\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32 (PageUp)",
|
13505 | nextMonth: "\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E16\u0E31\u0E14\u0E44\u0E1B (PageDown)",
|
13506 | previousYear: "\u0E1B\u0E35\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32 (Control + left)",
|
13507 | nextYear: "\u0E1B\u0E35\u0E16\u0E31\u0E14\u0E44\u0E1B (Control + right)",
|
13508 | previousDecade: "\u0E17\u0E28\u0E27\u0E23\u0E23\u0E29\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
|
13509 | nextDecade: "\u0E17\u0E28\u0E27\u0E23\u0E23\u0E29\u0E16\u0E31\u0E14\u0E44\u0E1B",
|
13510 | previousCentury: "\u0E28\u0E15\u0E27\u0E23\u0E23\u0E29\u0E01\u0E48\u0E2D\u0E19\u0E2B\u0E19\u0E49\u0E32",
|
13511 | nextCentury: "\u0E28\u0E15\u0E27\u0E23\u0E23\u0E29\u0E16\u0E31\u0E14\u0E44\u0E1B"
|
13512 | };
|
13513 | var _default$3 = locale;
|
13514 | th_TH$2.default = _default$3;
|
13515 | var th_TH$1 = {};
|
13516 | (function(exports2) {
|
13517 | Object.defineProperty(exports2, "__esModule", {
|
13518 | value: true
|
13519 | });
|
13520 | exports2["default"] = void 0;
|
13521 | var locale2 = {
|
13522 | placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E27\u0E25\u0E32"
|
13523 | };
|
13524 | var _default2 = locale2;
|
13525 | exports2["default"] = _default2;
|
13526 | })(th_TH$1);
|
13527 | (function(exports2) {
|
13528 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13529 | Object.defineProperty(exports2, "__esModule", {
|
13530 | value: true
|
13531 | });
|
13532 | exports2["default"] = void 0;
|
13533 | var _extends2 = _interopRequireDefault2(_extends$f.exports);
|
13534 | var _th_TH = _interopRequireDefault2(th_TH$2);
|
13535 | var _th_TH2 = _interopRequireDefault2(th_TH$1);
|
13536 | var locale2 = {
|
13537 | lang: (0, _extends2["default"])({
|
13538 | placeholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48",
|
13539 | yearPlaceholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E1B\u0E35",
|
13540 | quarterPlaceholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E44\u0E15\u0E23\u0E21\u0E32\u0E2A",
|
13541 | monthPlaceholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19",
|
13542 | weekPlaceholder: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C",
|
13543 | rangePlaceholder: ["\u0E27\u0E31\u0E19\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E27\u0E31\u0E19\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"],
|
13544 | rangeYearPlaceholder: ["\u0E1B\u0E35\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E1B\u0E35\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"],
|
13545 | rangeMonthPlaceholder: ["\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E40\u0E14\u0E37\u0E2D\u0E19\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"],
|
13546 | rangeWeekPlaceholder: ["\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"]
|
13547 | }, _th_TH["default"]),
|
13548 | timePickerLocale: (0, _extends2["default"])({}, _th_TH2["default"])
|
13549 | };
|
13550 | var _default2 = locale2;
|
13551 | exports2["default"] = _default2;
|
13552 | })(th_TH$3);
|
13553 | var th_TH = {};
|
13554 | (function(exports2) {
|
13555 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13556 | Object.defineProperty(exports2, "__esModule", {
|
13557 | value: true
|
13558 | });
|
13559 | exports2["default"] = void 0;
|
13560 | var _th_TH = _interopRequireDefault2(th_TH$3);
|
13561 | var _default2 = _th_TH["default"];
|
13562 | exports2["default"] = _default2;
|
13563 | })(th_TH);
|
13564 | (function(exports2) {
|
13565 | var _interopRequireDefault2 = interopRequireDefault.exports;
|
13566 | Object.defineProperty(exports2, "__esModule", {
|
13567 | value: true
|
13568 | });
|
13569 | exports2["default"] = void 0;
|
13570 | var _th_TH = _interopRequireDefault2(th_TH$4);
|
13571 | var _th_TH2 = _interopRequireDefault2(th_TH$3);
|
13572 | var _th_TH3 = _interopRequireDefault2(th_TH$1);
|
13573 | var _th_TH4 = _interopRequireDefault2(th_TH);
|
13574 | var typeTemplate = "${label} \u0E44\u0E21\u0E48\u0E43\u0E0A\u0E48 ${type} \u0E17\u0E35\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07";
|
13575 | var localeValues = {
|
13576 | locale: "th",
|
13577 | Pagination: _th_TH["default"],
|
13578 | DatePicker: _th_TH2["default"],
|
13579 | TimePicker: _th_TH3["default"],
|
13580 | Calendar: _th_TH4["default"],
|
13581 | global: {
|
13582 | placeholder: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01"
|
13583 | },
|
13584 | Table: {
|
13585 | filterTitle: "\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
13586 | filterConfirm: "\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19",
|
13587 | filterReset: "\u0E23\u0E35\u0E40\u0E0B\u0E47\u0E15",
|
13588 | filterEmptyText: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E15\u0E31\u0E27\u0E01\u0E23\u0E2D\u0E07",
|
13589 | emptyText: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
13590 | selectAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14\u0E43\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49",
|
13591 | selectInvert: "\u0E01\u0E25\u0E31\u0E1A\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E01\u0E32\u0E23\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E43\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49",
|
13592 | selectionAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
13593 | sortTitle: "\u0E40\u0E23\u0E35\u0E22\u0E07",
|
13594 | expand: "\u0E41\u0E2A\u0E14\u0E07\u0E41\u0E16\u0E27\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
13595 | collapse: "\u0E22\u0E48\u0E2D\u0E41\u0E16\u0E27\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25",
|
13596 | triggerDesc: "\u0E04\u0E25\u0E34\u0E01\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E21\u0E32\u0E01\u0E44\u0E1B\u0E19\u0E49\u0E2D\u0E22",
|
13597 | triggerAsc: "\u0E04\u0E25\u0E34\u0E01\u0E40\u0E23\u0E35\u0E22\u0E07\u0E08\u0E32\u0E01\u0E19\u0E49\u0E2D\u0E22\u0E44\u0E1B\u0E21\u0E32\u0E01",
|
13598 | cancelSort: "\u0E04\u0E25\u0E34\u0E01\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01\u0E01\u0E32\u0E23\u0E40\u0E23\u0E35\u0E22\u0E07"
|
13599 | },
|
13600 | Modal: {
|
13601 | okText: "\u0E15\u0E01\u0E25\u0E07",
|
13602 | cancelText: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
|
13603 | justOkText: "\u0E15\u0E01\u0E25\u0E07"
|
13604 | },
|
13605 | Popconfirm: {
|
13606 | okText: "\u0E15\u0E01\u0E25\u0E07",
|
13607 | cancelText: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01"
|
13608 | },
|
13609 | Transfer: {
|
13610 | titles: ["", ""],
|
13611 | searchPlaceholder: "\u0E04\u0E49\u0E19\u0E2B\u0E32",
|
13612 | itemUnit: "\u0E0A\u0E34\u0E49\u0E19",
|
13613 | itemsUnit: "\u0E0A\u0E34\u0E49\u0E19",
|
13614 | remove: "\u0E19\u0E33\u0E2D\u0E2D\u0E01",
|
13615 | selectCurrent: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14\u0E43\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49",
|
13616 | removeCurrent: "\u0E19\u0E33\u0E2D\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14\u0E43\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49",
|
13617 | selectAll: "\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
13618 | removeAll: "\u0E19\u0E33\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2D\u0E2D\u0E01\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14",
|
13619 | selectInvert: "\u0E01\u0E25\u0E31\u0E1A\u0E2A\u0E16\u0E32\u0E19\u0E30\u0E01\u0E32\u0E23\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E43\u0E19\u0E2B\u0E19\u0E49\u0E32\u0E19\u0E35\u0E49"
|
13620 | },
|
13621 | Upload: {
|
13622 | uploading: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14...",
|
13623 | removeFile: "\u0E25\u0E1A\u0E44\u0E1F\u0E25\u0E4C",
|
13624 | uploadError: "\u0E40\u0E01\u0E34\u0E14\u0E02\u0E49\u0E2D\u0E1C\u0E34\u0E14\u0E1E\u0E25\u0E32\u0E14\u0E43\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14",
|
13625 | previewFile: "\u0E14\u0E39\u0E15\u0E31\u0E27\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E44\u0E1F\u0E25\u0E4C",
|
13626 | downloadFile: "\u0E14\u0E32\u0E27\u0E19\u0E4C\u0E42\u0E2B\u0E25\u0E14\u0E44\u0E1F\u0E25\u0E4C"
|
13627 | },
|
13628 | Empty: {
|
13629 | description: "\u0E44\u0E21\u0E48\u0E21\u0E35\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25"
|
13630 | },
|
13631 | Icon: {
|
13632 | icon: "\u0E44\u0E2D\u0E04\u0E2D\u0E19"
|
13633 | },
|
13634 | Text: {
|
13635 | edit: "\u0E41\u0E01\u0E49\u0E44\u0E02",
|
13636 | copy: "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01",
|
13637 | copied: "\u0E04\u0E31\u0E14\u0E25\u0E2D\u0E01\u0E41\u0E25\u0E49\u0E27",
|
13638 | expand: "\u0E02\u0E22\u0E32\u0E22"
|
13639 | },
|
13640 | PageHeader: {
|
13641 | back: "\u0E22\u0E49\u0E2D\u0E19\u0E01\u0E25\u0E31\u0E1A"
|
13642 | },
|
13643 | Form: {
|
13644 | optional: "(\u0E44\u0E21\u0E48\u0E08\u0E33\u0E40\u0E1B\u0E47\u0E19)",
|
13645 | defaultValidateMessages: {
|
13646 | "default": "\u0E1F\u0E34\u0E25\u0E14\u0E4C ${label} \u0E44\u0E21\u0E48\u0E1C\u0E48\u0E32\u0E19\u0E40\u0E07\u0E37\u0E48\u0E2D\u0E19\u0E44\u0E02\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A",
|
13647 | required: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E01\u0E23\u0E2D\u0E01 ${label}",
|
13648 | "enum": "${label} \u0E15\u0E49\u0E2D\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E04\u0E48\u0E32\u0E43\u0E14\u0E04\u0E48\u0E32\u0E2B\u0E19\u0E36\u0E48\u0E07\u0E43\u0E19 [${enum}]",
|
13649 | whitespace: "${label} \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E1B\u0E47\u0E19\u0E0A\u0E48\u0E2D\u0E07\u0E27\u0E48\u0E32\u0E07\u0E44\u0E14\u0E49",
|
13650 | date: {
|
13651 | format: "\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48 ${label} \u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07",
|
13652 | parse: "${label} \u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E41\u0E1B\u0E25\u0E07\u0E40\u0E1B\u0E47\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E44\u0E14\u0E49",
|
13653 | invalid: "${label} \u0E40\u0E1B\u0E47\u0E19\u0E27\u0E31\u0E19\u0E17\u0E35\u0E48\u0E17\u0E35\u0E48\u0E44\u0E21\u0E48\u0E16\u0E39\u0E01\u0E15\u0E49\u0E2D\u0E07"
|
13654 | },
|
13655 | types: {
|
13656 | string: typeTemplate,
|
13657 | method: typeTemplate,
|
13658 | array: typeTemplate,
|
13659 | object: typeTemplate,
|
13660 | number: typeTemplate,
|
13661 | date: typeTemplate,
|
13662 | "boolean": typeTemplate,
|
13663 | integer: typeTemplate,
|
13664 | "float": typeTemplate,
|
13665 | regexp: typeTemplate,
|
13666 | email: typeTemplate,
|
13667 | url: typeTemplate,
|
13668 | hex: typeTemplate
|
13669 | },
|
13670 | string: {
|
13671 | len: "${label} \u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 ${len} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",
|
13672 | min: "${label} \u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 ${min} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",
|
13673 | max: "${label} \u0E21\u0E35\u0E44\u0E14\u0E49\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14 ${max} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23",
|
13674 | range: "${label} \u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 ${min}-${max} \u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23"
|
13675 | },
|
13676 | number: {
|
13677 | len: "${label} \u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 ${len} \u0E15\u0E31\u0E27",
|
13678 | min: "\u0E04\u0E48\u0E32\u0E15\u0E48\u0E33\u0E2A\u0E38\u0E14 ${label} \u0E04\u0E37\u0E2D ${min}",
|
13679 | max: "\u0E04\u0E48\u0E32\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14 ${label} \u0E04\u0E37\u0E2D ${max}",
|
13680 | range: "${label} \u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E04\u0E48\u0E32 ${min}-${max}"
|
13681 | },
|
13682 | array: {
|
13683 | len: "\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35 ${len} ${label}",
|
13684 | min: "\u0E15\u0E49\u0E2D\u0E07\u0E21\u0E35\u0E2D\u0E22\u0E48\u0E32\u0E07\u0E19\u0E49\u0E2D\u0E22 ${min} ${label}",
|
13685 | max: "\u0E21\u0E35\u0E44\u0E14\u0E49\u0E2A\u0E39\u0E07\u0E2A\u0E38\u0E14 ${max} ${label}",
|
13686 | range: "\u0E08\u0E33\u0E19\u0E27\u0E19 ${label} \u0E15\u0E49\u0E2D\u0E07\u0E2D\u0E22\u0E39\u0E48\u0E43\u0E19\u0E0A\u0E48\u0E27\u0E07 ${min}-${max}"
|
13687 | },
|
13688 | pattern: {
|
13689 | mismatch: "${label} \u0E44\u0E21\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A ${pattern}"
|
13690 | }
|
13691 | }
|
13692 | }
|
13693 | };
|
13694 | var _default2 = localeValues;
|
13695 | exports2["default"] = _default2;
|
13696 | })(th_TH$5);
|
13697 | var thTH = getDefaultExportFromCjs(th_TH$5);
|
13698 | moment$1.locale("zh-cn");
|
13699 | const changeMomentLocale = (locale2) => moment$1.locale(locale2);
|
13700 | const locales = [
|
13701 | {
|
13702 | label: "\u4E2D\u56FD",
|
13703 | locale: zhCN
|
13704 | },
|
13705 | {
|
13706 | label: "\u4E2D\u56FD-\u53F0\u6E7E",
|
13707 | locale: zhTW
|
13708 | },
|
13709 | {
|
13710 | label: "\u4E2D\u56FD-\u9999\u6E2F",
|
13711 | locale: zhHK
|
13712 | },
|
13713 | {
|
13714 | label: "\u82F1\u56FD",
|
13715 | locale: enUS
|
13716 | },
|
13717 | {
|
13718 | label: "\u963F\u62C9\u4F2F",
|
13719 | locale: arEG
|
13720 | },
|
13721 | {
|
13722 | label: "\u6CD5\u56FD",
|
13723 | locale: frFR
|
13724 | },
|
13725 | {
|
13726 | label: "\u5FB7\u56FD",
|
13727 | locale: deDE
|
13728 | },
|
13729 | {
|
13730 | label: "\u5E0C\u814A",
|
13731 | locale: elGR
|
13732 | },
|
13733 | {
|
13734 | label: "\u5370\u5C3C",
|
13735 | locale: idID
|
13736 | },
|
13737 | {
|
13738 | label: "\u610F\u5927\u5229",
|
13739 | locale: itIT
|
13740 | },
|
13741 | {
|
13742 | label: "\u65E5\u672C",
|
13743 | locale: jaJP
|
13744 | },
|
13745 | {
|
13746 | label: "\u97E9\u56FD",
|
13747 | locale: koKR
|
13748 | },
|
13749 | {
|
13750 | label: "\u8461\u8404\u7259",
|
13751 | locale: ptPT
|
13752 | },
|
13753 | {
|
13754 | label: "\u6CF0\u56FD",
|
13755 | locale: thTH
|
13756 | }
|
13757 | ];
|
13758 | const createOptions = (option2) => ({ label: option2, value: option2 });
|
13759 | const buttonShapeOptions = ["default", "circle", "round"].map(createOptions);
|
13760 | const buttonTypeOptions = ["default", "primary", "ghost", "dashed", "link", "text"].map(createOptions);
|
13761 | const htmlButtonTypeOptions = ["button", "submit", "reset"].map(createOptions);
|
13762 | const sizeOptions = ["small", "middle", "large"].map(createOptions);
|
13763 | const switchSizeOptions = ["default", "small"].map(createOptions);
|
13764 | const tableSizeOptions = ["default", "middle", "small"].map(createOptions);
|
13765 | const textDirectionOptions = ["ltr", "rtl"].map(createOptions);
|
13766 | const orientationOptions = ["left", "center", "right"].map(createOptions);
|
13767 | const directionTypeOptions = ["horizontal", "vertical"].map(createOptions);
|
13768 | const textTypeOptions = ["secondary", "success", "warning", "danger"].map(createOptions);
|
13769 | const alertTypeOptions = ["success", "info", "warning", "error"].map(createOptions);
|
13770 | const alignOptions = ["top", "middle", "bottom"].map(createOptions);
|
13771 | const justifyOptions = ["start", "end", "center", "space-around", "space-between"].map(createOptions);
|
13772 | const spaceAlignOptions = ["start", "end", "center", "baseline"].map(createOptions);
|
13773 | const labelAlignOptions = ["left", "right"].map(createOptions);
|
13774 | const layoutOptions = [
|
13775 | {
|
13776 | label: "\u6C34\u5E73\u6392\u5217",
|
13777 | value: "horizontal"
|
13778 | },
|
13779 | {
|
13780 | label: "\u5782\u76F4\u6392\u5217",
|
13781 | value: "vertical"
|
13782 | }
|
13783 | ];
|
13784 | const levelOptions = [1, 2, 3, 4, 5].map((option2) => ({
|
13785 | label: `H${option2}`,
|
13786 | value: option2
|
13787 | }));
|
13788 | const uploadListTypeOptions = ["text", "picture", "picture-card"].map(createOptions);
|
13789 | const uploadRequestMethodOptions = ["POST", "PUT", "GET", "DELETE"].map(createOptions);
|
13790 | const sourceOptions = ["\u9759\u6001\u6570\u636E", "\u8FDC\u7AEF\u6570\u636E"].map(createOptions);
|
13791 | const validateTriggerOptions = ["onBlur", "onChange"].map(createOptions);
|
13792 | const validateTypeOptions = [
|
13793 | { label: "\u5B57\u7B26\u4E32", value: "string" },
|
13794 | { label: "\u6570\u5B57", value: "number" },
|
13795 | { label: "\u5E03\u5C14\u503C", value: "boolean" },
|
13796 | { label: "\u65B9\u6CD5", value: "method" },
|
13797 | { label: "\u6B63\u5219\u8868\u8FBE\u5F0F", value: "regexp" },
|
13798 | { label: "\u6574\u6570", value: "integer" },
|
13799 | { label: "\u6D6E\u70B9\u6570", value: "float" },
|
13800 | { label: "\u6570\u7EC4", value: "array" },
|
13801 | { label: "\u5BF9\u8C61", value: "object" },
|
13802 | { label: "\u679A\u4E3E", value: "enum" },
|
13803 | { label: "\u65E5\u671F", value: "date" },
|
13804 | { label: "URL\u5730\u5740", value: "url" },
|
13805 | { label: "\u5341\u516D\u8FDB\u5236", value: "hex" },
|
13806 | { label: "\u90AE\u7BB1\u5730\u5740", value: "email" },
|
13807 | { label: "\u4EFB\u610F\u7C7B\u578B", value: "any" }
|
13808 | ];
|
13809 | const expandTriggerOptions = ["click", "hover"].map(createOptions);
|
13810 | const placementOptions = [
|
13811 | { label: "\u5DE6\u4E0A", value: "topLeft" },
|
13812 | { label: "\u53F3\u4E0A", value: "topRight" },
|
13813 | { label: "\u5DE6\u4E0B", value: "bottomLeft" },
|
13814 | { label: "\u53F3\u4E0B", value: "bottomRight" }
|
13815 | ];
|
13816 | const mentionsPlacementOptions = [
|
13817 | { label: "\u4E0A\u65B9", value: "top" },
|
13818 | { label: "\u4E0B\u65B9", value: "bottom" }
|
13819 | ];
|
13820 | const datePickerTypeOptions = [
|
13821 | { label: "\u65E5\u671F", value: "date" },
|
13822 | { label: "\u5468", value: "week" },
|
13823 | { label: "\u6708", value: "month" },
|
13824 | { label: "\u5B63\u5EA6", value: "quarter" },
|
13825 | { label: "\u5E74", value: "year" }
|
13826 | ];
|
13827 | const radioGroupButtonStyleOptions = [
|
13828 | { label: "\u63CF\u8FB9", value: "outline" },
|
13829 | { label: "\u586B\u8272", value: "solid" }
|
13830 | ];
|
13831 | const radioGroupOptionTypeOptions = [
|
13832 | { label: "\u9ED8\u8BA4", value: "default" },
|
13833 | { label: "\u6309\u94AE", value: "button" }
|
13834 | ];
|
13835 | const selectModeOptions = [
|
13836 | { label: "\u591A\u9009", value: "multiple" },
|
13837 | { label: "\u6807\u7B7E", value: "tags" }
|
13838 | ];
|
13839 | const treeSelectShowCheckedStrategyOptions = [
|
13840 | { label: "\u53EA\u663E\u793A\u5B50\u8282\u70B9", value: "SHOW_CHILD" },
|
13841 | { label: "\u53EA\u663E\u793A\u7236\u8282\u70B9", value: "SHOW_PARENT" },
|
13842 | { label: "\u663E\u793A\u6240\u6709\u9009\u4E2D\u8282\u70B9", value: "SHOW_ALL" }
|
13843 | ];
|
13844 | const breakpointOptions = ["xs", "sm", "md", "lg", "xl", "xxl"].map(createOptions);
|
13845 | const themeOptions = ["light", "dark"].map(createOptions);
|
13846 | const localeOptions = locales.map((option2) => ({
|
13847 | label: option2.label,
|
13848 | value: option2.locale.locale,
|
13849 | locale: option2.locale
|
13850 | }));
|
13851 | const FormItemLayoutConfig = () => {
|
13852 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
13853 | const { selectWidgetItem, handleChange } = useConfig();
|
13854 | return React__default.createElement(React__default.Fragment, null, React__default.createElement("h4", null, "\u5E03\u5C40\u914D\u7F6E"), React__default.createElement(Form.Item, {
|
13855 | label: React__default.createElement(Space$1, null, "\u6807\u7B7E\u5BF9\u9F50\u65B9\u5F0F", ((_a = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _a.labelAlign) && React__default.createElement("a", {
|
13856 | href: "/#",
|
13857 | onClick: (event) => {
|
13858 | event.preventDefault();
|
13859 | handleChange(void 0, "formItemConfig.labelAlign");
|
13860 | }
|
13861 | }, "\u8FD8\u539F"))
|
13862 | }, React__default.createElement(Radio.Group, {
|
13863 | optionType: "button",
|
13864 | buttonStyle: "solid",
|
13865 | options: labelAlignOptions,
|
13866 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.labelAlign,
|
13867 | onChange: (event) => handleChange(event.target.value, "formItemConfig.labelAlign")
|
13868 | })), React__default.createElement(Form.Item, {
|
13869 | label: React__default.createElement(Space$1, null, "\u662F\u5426\u663E\u793Alabel\u540E\u9762\u7684\u5192\u53F7", ((_c = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _c.colon) !== void 0 && React__default.createElement("a", {
|
13870 | href: "/#",
|
13871 | onClick: (event) => {
|
13872 | event.preventDefault();
|
13873 | handleChange(void 0, "formItemConfig.colon");
|
13874 | }
|
13875 | }, "\u8FD8\u539F"))
|
13876 | }, React__default.createElement(Switch$1, {
|
13877 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _d.colon,
|
13878 | onChange: (checked) => handleChange(checked, "formItemConfig.colon")
|
13879 | })), React__default.createElement(Form.Item, {
|
13880 | label: React__default.createElement(Space$1, null, "\u6807\u7B7E\u6587\u672C\u6362\u884C\u65B9\u5F0F", ((_e = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _e.labelWrap) !== void 0 && React__default.createElement("a", {
|
13881 | href: "/#",
|
13882 | onClick: (event) => {
|
13883 | event.preventDefault();
|
13884 | handleChange(void 0, "formItemConfig.labelWrap");
|
13885 | }
|
13886 | }, "\u8FD8\u539F"))
|
13887 | }, React__default.createElement(Switch$1, {
|
13888 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _f.labelWrap,
|
13889 | onChange: (checked) => handleChange(checked, "formItemConfig.labelWrap")
|
13890 | })), React__default.createElement(Form.Item, {
|
13891 | label: React__default.createElement(Space$1, null, "\u6807\u7B7E\u5E03\u5C40", ((_g = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _g.labelCol) && React__default.createElement("a", {
|
13892 | href: "/#",
|
13893 | onClick: (event) => {
|
13894 | event.preventDefault();
|
13895 | handleChange(void 0, "formItemConfig.labelCol");
|
13896 | }
|
13897 | }, "\u8FD8\u539F"))
|
13898 | }, React__default.createElement("span", {
|
13899 | className: "label"
|
13900 | }, "span"), React__default.createElement(InputNumber$1, {
|
13901 | min: 0,
|
13902 | value: (_i = (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _h.labelCol) == null ? void 0 : _i.span,
|
13903 | onChange: (value) => handleChange(value, "formItemConfig.labelCol.span")
|
13904 | }), React__default.createElement("span", {
|
13905 | className: "label"
|
13906 | }, "offset"), React__default.createElement(InputNumber$1, {
|
13907 | min: 0,
|
13908 | value: (_k = (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _j.labelCol) == null ? void 0 : _k.offset,
|
13909 | onChange: (value) => handleChange(value, "formItemConfig.labelCol.offset")
|
13910 | })), React__default.createElement(Form.Item, {
|
13911 | label: React__default.createElement(Space$1, null, "\u8F93\u5165\u63A7\u4EF6\u5E03\u5C40", ((_l = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _l.wrapperCol) && React__default.createElement("a", {
|
13912 | href: "/#",
|
13913 | onClick: (event) => {
|
13914 | event.preventDefault();
|
13915 | handleChange(void 0, "formItemConfig.wrapperCol");
|
13916 | }
|
13917 | }, "\u8FD8\u539F"))
|
13918 | }, React__default.createElement("span", {
|
13919 | className: "label"
|
13920 | }, "span"), React__default.createElement(InputNumber$1, {
|
13921 | min: 0,
|
13922 | value: (_n = (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _m.wrapperCol) == null ? void 0 : _n.span,
|
13923 | onChange: (value) => handleChange(value, "formItemConfig.wrapperCol.span")
|
13924 | }), React__default.createElement("span", {
|
13925 | className: "label"
|
13926 | }, "offset"), React__default.createElement(InputNumber$1, {
|
13927 | min: 0,
|
13928 | value: (_p = (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _o.wrapperCol) == null ? void 0 : _p.offset,
|
13929 | onChange: (value) => handleChange(value, "formItemConfig.wrapperCol.offset")
|
13930 | })));
|
13931 | };
|
13932 | const ValidateRuleConfig = () => {
|
13933 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
13934 | const { selectWidgetItem, handleChange } = useConfig();
|
13935 | return React__default.createElement(React__default.Fragment, null, React__default.createElement("h4", null, "\u9A8C\u8BC1\u89C4\u5219"), React__default.createElement(Form.Item, {
|
13936 | label: "\u89E6\u53D1\u65F6\u673A"
|
13937 | }, React__default.createElement(Radio.Group, {
|
13938 | optionType: "button",
|
13939 | buttonStyle: "solid",
|
13940 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _a.rules[0].validateTrigger,
|
13941 | options: validateTriggerOptions,
|
13942 | onChange: (event) => handleChange(event.target.value, "formItemConfig.rules[0].validateTrigger")
|
13943 | })), React__default.createElement(Form.Item, {
|
13944 | label: "\u662F\u5426\u4E3A\u5FC5\u9009\u5B57\u6BB5"
|
13945 | }, React__default.createElement(Switch$1, {
|
13946 | defaultChecked: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.rules[0].required,
|
13947 | onChange: (checked) => handleChange(checked, "formItemConfig.rules[0].required")
|
13948 | })), React__default.createElement(Form.Item, {
|
13949 | label: "\u4EC5\u8B66\u544A\uFF0C\u4E0D\u963B\u585E\u8868\u5355\u63D0\u4EA4"
|
13950 | }, React__default.createElement(Switch$1, {
|
13951 | defaultChecked: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _c.rules[0].warningOnly,
|
13952 | onChange: (checked) => handleChange(checked, "formItemConfig.rules[0].warningOnly")
|
13953 | })), React__default.createElement(Form.Item, {
|
13954 | label: "\u662F\u5426\u6821\u9A8C\u7A7A\u683C\uFF08\u53EA\u5728\u7C7B\u578B\u4E3A string \u65F6\u751F\u6548\uFF09"
|
13955 | }, React__default.createElement(Switch$1, {
|
13956 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _d.rules[0].whitespace,
|
13957 | onChange: (checked) => handleChange(checked, "formItemConfig.rules[0].whitespace")
|
13958 | })), React__default.createElement(Form.Item, {
|
13959 | label: "\u6821\u9A8C\u7C7B\u578B"
|
13960 | }, React__default.createElement(Select$1, {
|
13961 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _e.rules[0].type,
|
13962 | options: validateTypeOptions,
|
13963 | onChange: (value) => handleChange(value, "formItemConfig.rules[0].type")
|
13964 | })), React__default.createElement(Form.Item, {
|
13965 | label: "\u6821\u9A8C\u6587\u6848"
|
13966 | }, React__default.createElement(Input$1, {
|
13967 | placeholder: "\u9519\u8BEF\u4FE1\u606F\uFF0C\u4E0D\u8BBE\u7F6E\u65F6\u4F1A\u901A\u8FC7\u6A21\u677F\u81EA\u52A8\u751F\u6210",
|
13968 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _f.rules[0].message,
|
13969 | onChange: (event) => handleChange(event.target.value, "formItemConfig.rules[0].message")
|
13970 | })), React__default.createElement(Form.Item, {
|
13971 | label: React__default.createElement(Space$1, null, "\u5B57\u6BB5\u957F\u5EA6", ((_g = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _g.rules[0].len) !== void 0 && React__default.createElement("a", {
|
13972 | href: "/#",
|
13973 | onClick: (event) => {
|
13974 | event.preventDefault();
|
13975 | handleChange(void 0, "formItemConfig.rules[0].len");
|
13976 | }
|
13977 | }, "\u8FD8\u539F"))
|
13978 | }, React__default.createElement(InputNumber$1, {
|
13979 | style: { width: "100%" },
|
13980 | min: 0,
|
13981 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _h.rules[0].len,
|
13982 | onChange: (value) => handleChange(value, "formItemConfig.rules[0].len")
|
13983 | })), React__default.createElement(Form.Item, {
|
13984 | label: React__default.createElement(Space$1, null, "\u6700\u5927\u957F\u5EA6", ((_i = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _i.rules[0].max) !== void 0 && React__default.createElement("a", {
|
13985 | href: "/#",
|
13986 | onClick: (event) => {
|
13987 | event.preventDefault();
|
13988 | handleChange(void 0, "formItemConfig.rules[0].max");
|
13989 | }
|
13990 | }, "\u8FD8\u539F"))
|
13991 | }, React__default.createElement(InputNumber$1, {
|
13992 | style: { width: "100%" },
|
13993 | min: 0,
|
13994 | value: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _j.rules[0].max,
|
13995 | onChange: (value) => handleChange(value, "formItemConfig.rules[0].max")
|
13996 | })), React__default.createElement(Form.Item, {
|
13997 | label: React__default.createElement(Space$1, null, "\u6700\u5C0F\u957F\u5EA6", ((_k = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _k.rules[0].min) !== void 0 && React__default.createElement("a", {
|
13998 | href: "/#",
|
13999 | onClick: (event) => {
|
14000 | event.preventDefault();
|
14001 | handleChange(void 0, "formItemConfig.rules[0].min");
|
14002 | }
|
14003 | }, "\u8FD8\u539F"))
|
14004 | }, React__default.createElement(InputNumber$1, {
|
14005 | style: { width: "100%" },
|
14006 | min: 0,
|
14007 | value: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _l.rules[0].min,
|
14008 | onChange: (value) => handleChange(value, "formItemConfig.rules[0].min")
|
14009 | })), React__default.createElement(Form.Item, {
|
14010 | label: "\u6B63\u5219\u8868\u8FBE\u5F0F"
|
14011 | }, React__default.createElement(Input$1, {
|
14012 | value: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _m.rules[0].pattern,
|
14013 | onChange: (event) => handleChange(event.target.value, "formItemConfig.rules[0].pattern")
|
14014 | })));
|
14015 | };
|
14016 | const ButtonConfig = () => {
|
14017 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
14018 | const { selectWidgetItem, handleChange } = useConfig();
|
14019 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
14020 | label: "\u5185\u5BB9"
|
14021 | }, React__default.createElement(Input$1, {
|
14022 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.children,
|
14023 | onChange: (event) => handleChange(event.target.value, "config.children")
|
14024 | })), React__default.createElement(Form.Item, {
|
14025 | label: "\u8DF3\u8F6C\u5730\u5740"
|
14026 | }, React__default.createElement(Input$1, {
|
14027 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.href,
|
14028 | placeholder: "\u70B9\u51FB\u8DF3\u8F6C\u7684\u5730\u5740\uFF0C\u6307\u5B9A\u6B64\u5C5E\u6027 button \u7684\u884C\u4E3A\u548C a \u94FE\u63A5\u4E00\u81F4",
|
14029 | onChange: (event) => handleChange(event.target.value, "config.href")
|
14030 | })), ((_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.href) && React__default.createElement(Form.Item, {
|
14031 | label: "Target"
|
14032 | }, React__default.createElement(Input$1, {
|
14033 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.target,
|
14034 | placeholder: "\u76F8\u5F53\u4E8E a \u94FE\u63A5\u7684 target \u5C5E\u6027\uFF0Chref \u5B58\u5728\u65F6\u751F\u6548",
|
14035 | onChange: (event) => handleChange(event.target.value, "config.target")
|
14036 | })), React__default.createElement(Form.Item, {
|
14037 | label: "\u6309\u94AE\u7C7B\u578B"
|
14038 | }, React__default.createElement(Select$1, {
|
14039 | options: buttonTypeOptions,
|
14040 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.type,
|
14041 | onChange: (value) => handleChange(value, "config.type")
|
14042 | })), React__default.createElement(Form.Item, {
|
14043 | label: React__default.createElement(Space$1, null, "\u6309\u94AE\u5927\u5C0F", ((_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.size) && React__default.createElement("a", {
|
14044 | href: "/#",
|
14045 | onClick: (event) => {
|
14046 | event.preventDefault();
|
14047 | handleChange(void 0, "config.size");
|
14048 | }
|
14049 | }, "\u8FD8\u539F"))
|
14050 | }, React__default.createElement(Radio.Group, {
|
14051 | optionType: "button",
|
14052 | buttonStyle: "solid",
|
14053 | options: sizeOptions,
|
14054 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.size,
|
14055 | onChange: (event) => handleChange(event.target.value, "config.size")
|
14056 | })), React__default.createElement(Form.Item, {
|
14057 | label: "\u6309\u94AE\u5F62\u72B6"
|
14058 | }, React__default.createElement(Radio.Group, {
|
14059 | optionType: "button",
|
14060 | buttonStyle: "solid",
|
14061 | options: buttonShapeOptions,
|
14062 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.shape,
|
14063 | onChange: (event) => handleChange(event.target.value, "config.shape")
|
14064 | })), React__default.createElement(Form.Item, {
|
14065 | label: "\u662F\u5426\u9690\u85CF"
|
14066 | }, React__default.createElement(Switch$1, {
|
14067 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.hidden,
|
14068 | onChange: (checked) => handleChange(checked, "config.hidden")
|
14069 | })), React__default.createElement(Form.Item, {
|
14070 | label: "Block\u6309\u94AE"
|
14071 | }, React__default.createElement(Switch$1, {
|
14072 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.block,
|
14073 | onChange: (checked) => handleChange(checked, "config.block")
|
14074 | })), React__default.createElement(Form.Item, {
|
14075 | label: "\u5371\u9669\u6309\u94AE"
|
14076 | }, React__default.createElement(Switch$1, {
|
14077 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.danger,
|
14078 | onChange: (checked) => handleChange(checked, "config.danger")
|
14079 | })), React__default.createElement(Form.Item, {
|
14080 | label: "\u7981\u7528\u6309\u94AE"
|
14081 | }, React__default.createElement(Switch$1, {
|
14082 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.disabled,
|
14083 | onChange: (checked) => handleChange(checked, "config.disabled")
|
14084 | })), React__default.createElement(Form.Item, {
|
14085 | label: "\u5E7D\u7075\u6309\u94AE"
|
14086 | }, React__default.createElement(Switch$1, {
|
14087 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.ghost,
|
14088 | onChange: (checked) => handleChange(checked, "config.ghost")
|
14089 | })), React__default.createElement(Form.Item, {
|
14090 | label: "\u52A0\u8F7D\u72B6\u6001"
|
14091 | }, React__default.createElement(Switch$1, {
|
14092 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.loading,
|
14093 | onChange: (checked) => handleChange(checked, "config.loading")
|
14094 | })), React__default.createElement(Form.Item, {
|
14095 | label: "HtmlType"
|
14096 | }, React__default.createElement(Radio.Group, {
|
14097 | optionType: "button",
|
14098 | buttonStyle: "solid",
|
14099 | options: htmlButtonTypeOptions,
|
14100 | value: (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _o.htmlType,
|
14101 | onChange: (event) => handleChange(event.target.value, "config.htmlType")
|
14102 | })));
|
14103 | };
|
14104 | var lib = {};
|
14105 | var flattenNames$1 = {};
|
14106 | var freeGlobal$1 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
|
14107 | var _freeGlobal = freeGlobal$1;
|
14108 | var freeGlobal = _freeGlobal;
|
14109 | var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
14110 | var root$8 = freeGlobal || freeSelf || Function("return this")();
|
14111 | var _root = root$8;
|
14112 | var root$7 = _root;
|
14113 | var Symbol$6 = root$7.Symbol;
|
14114 | var _Symbol = Symbol$6;
|
14115 | var Symbol$5 = _Symbol;
|
14116 | var objectProto$f = Object.prototype;
|
14117 | var hasOwnProperty$c = objectProto$f.hasOwnProperty;
|
14118 | var nativeObjectToString$1 = objectProto$f.toString;
|
14119 | var symToStringTag$1 = Symbol$5 ? Symbol$5.toStringTag : void 0;
|
14120 | function getRawTag$1(value) {
|
14121 | var isOwn = hasOwnProperty$c.call(value, symToStringTag$1), tag = value[symToStringTag$1];
|
14122 | try {
|
14123 | value[symToStringTag$1] = void 0;
|
14124 | var unmasked = true;
|
14125 | } catch (e) {
|
14126 | }
|
14127 | var result = nativeObjectToString$1.call(value);
|
14128 | if (unmasked) {
|
14129 | if (isOwn) {
|
14130 | value[symToStringTag$1] = tag;
|
14131 | } else {
|
14132 | delete value[symToStringTag$1];
|
14133 | }
|
14134 | }
|
14135 | return result;
|
14136 | }
|
14137 | var _getRawTag = getRawTag$1;
|
14138 | var objectProto$e = Object.prototype;
|
14139 | var nativeObjectToString = objectProto$e.toString;
|
14140 | function objectToString$1(value) {
|
14141 | return nativeObjectToString.call(value);
|
14142 | }
|
14143 | var _objectToString = objectToString$1;
|
14144 | var Symbol$4 = _Symbol, getRawTag = _getRawTag, objectToString = _objectToString;
|
14145 | var nullTag = "[object Null]", undefinedTag = "[object Undefined]";
|
14146 | var symToStringTag = Symbol$4 ? Symbol$4.toStringTag : void 0;
|
14147 | function baseGetTag$7(value) {
|
14148 | if (value == null) {
|
14149 | return value === void 0 ? undefinedTag : nullTag;
|
14150 | }
|
14151 | return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value);
|
14152 | }
|
14153 | var _baseGetTag = baseGetTag$7;
|
14154 | var isArray$b = Array.isArray;
|
14155 | var isArray_1 = isArray$b;
|
14156 | function isObjectLike$9(value) {
|
14157 | return value != null && typeof value == "object";
|
14158 | }
|
14159 | var isObjectLike_1 = isObjectLike$9;
|
14160 | var baseGetTag$6 = _baseGetTag, isArray$a = isArray_1, isObjectLike$8 = isObjectLike_1;
|
14161 | var stringTag$4 = "[object String]";
|
14162 | function isString(value) {
|
14163 | return typeof value == "string" || !isArray$a(value) && isObjectLike$8(value) && baseGetTag$6(value) == stringTag$4;
|
14164 | }
|
14165 | var isString_1 = isString;
|
14166 | function createBaseFor$1(fromRight) {
|
14167 | return function(object, iteratee, keysFunc) {
|
14168 | var index2 = -1, iterable = Object(object), props = keysFunc(object), length = props.length;
|
14169 | while (length--) {
|
14170 | var key = props[fromRight ? length : ++index2];
|
14171 | if (iteratee(iterable[key], key, iterable) === false) {
|
14172 | break;
|
14173 | }
|
14174 | }
|
14175 | return object;
|
14176 | };
|
14177 | }
|
14178 | var _createBaseFor = createBaseFor$1;
|
14179 | var createBaseFor = _createBaseFor;
|
14180 | var baseFor$1 = createBaseFor();
|
14181 | var _baseFor = baseFor$1;
|
14182 | function baseTimes$1(n, iteratee) {
|
14183 | var index2 = -1, result = Array(n);
|
14184 | while (++index2 < n) {
|
14185 | result[index2] = iteratee(index2);
|
14186 | }
|
14187 | return result;
|
14188 | }
|
14189 | var _baseTimes = baseTimes$1;
|
14190 | var baseGetTag$5 = _baseGetTag, isObjectLike$7 = isObjectLike_1;
|
14191 | var argsTag$3 = "[object Arguments]";
|
14192 | function baseIsArguments$1(value) {
|
14193 | return isObjectLike$7(value) && baseGetTag$5(value) == argsTag$3;
|
14194 | }
|
14195 | var _baseIsArguments = baseIsArguments$1;
|
14196 | var baseIsArguments = _baseIsArguments, isObjectLike$6 = isObjectLike_1;
|
14197 | var objectProto$d = Object.prototype;
|
14198 | var hasOwnProperty$b = objectProto$d.hasOwnProperty;
|
14199 | var propertyIsEnumerable$1 = objectProto$d.propertyIsEnumerable;
|
14200 | var isArguments$2 = baseIsArguments(function() {
|
14201 | return arguments;
|
14202 | }()) ? baseIsArguments : function(value) {
|
14203 | return isObjectLike$6(value) && hasOwnProperty$b.call(value, "callee") && !propertyIsEnumerable$1.call(value, "callee");
|
14204 | };
|
14205 | var isArguments_1 = isArguments$2;
|
14206 | var isBuffer$3 = { exports: {} };
|
14207 | function stubFalse() {
|
14208 | return false;
|
14209 | }
|
14210 | var stubFalse_1 = stubFalse;
|
14211 | (function(module2, exports2) {
|
14212 | var root2 = _root, stubFalse2 = stubFalse_1;
|
14213 | var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
14214 | var freeModule2 = freeExports2 && true && module2 && !module2.nodeType && module2;
|
14215 | var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
14216 | var Buffer3 = moduleExports2 ? root2.Buffer : void 0;
|
14217 | var nativeIsBuffer2 = Buffer3 ? Buffer3.isBuffer : void 0;
|
14218 | var isBuffer2 = nativeIsBuffer2 || stubFalse2;
|
14219 | module2.exports = isBuffer2;
|
14220 | })(isBuffer$3, isBuffer$3.exports);
|
14221 | var MAX_SAFE_INTEGER$1 = 9007199254740991;
|
14222 | var reIsUint = /^(?:0|[1-9]\d*)$/;
|
14223 | function isIndex$2(value, length) {
|
14224 | var type = typeof value;
|
14225 | length = length == null ? MAX_SAFE_INTEGER$1 : length;
|
14226 | return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
|
14227 | }
|
14228 | var _isIndex = isIndex$2;
|
14229 | var MAX_SAFE_INTEGER = 9007199254740991;
|
14230 | function isLength$3(value) {
|
14231 | return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
|
14232 | }
|
14233 | var isLength_1 = isLength$3;
|
14234 | var baseGetTag$4 = _baseGetTag, isLength$2 = isLength_1, isObjectLike$5 = isObjectLike_1;
|
14235 | var argsTag$2 = "[object Arguments]", arrayTag$2 = "[object Array]", boolTag$3 = "[object Boolean]", dateTag$3 = "[object Date]", errorTag$2 = "[object Error]", funcTag$2 = "[object Function]", mapTag$5 = "[object Map]", numberTag$3 = "[object Number]", objectTag$4 = "[object Object]", regexpTag$3 = "[object RegExp]", setTag$5 = "[object Set]", stringTag$3 = "[object String]", weakMapTag$2 = "[object WeakMap]";
|
14236 | var arrayBufferTag$3 = "[object ArrayBuffer]", dataViewTag$4 = "[object DataView]", float32Tag$2 = "[object Float32Array]", float64Tag$2 = "[object Float64Array]", int8Tag$2 = "[object Int8Array]", int16Tag$2 = "[object Int16Array]", int32Tag$2 = "[object Int32Array]", uint8Tag$2 = "[object Uint8Array]", uint8ClampedTag$2 = "[object Uint8ClampedArray]", uint16Tag$2 = "[object Uint16Array]", uint32Tag$2 = "[object Uint32Array]";
|
14237 | var typedArrayTags = {};
|
14238 | typedArrayTags[float32Tag$2] = typedArrayTags[float64Tag$2] = typedArrayTags[int8Tag$2] = typedArrayTags[int16Tag$2] = typedArrayTags[int32Tag$2] = typedArrayTags[uint8Tag$2] = typedArrayTags[uint8ClampedTag$2] = typedArrayTags[uint16Tag$2] = typedArrayTags[uint32Tag$2] = true;
|
14239 | typedArrayTags[argsTag$2] = typedArrayTags[arrayTag$2] = typedArrayTags[arrayBufferTag$3] = typedArrayTags[boolTag$3] = typedArrayTags[dataViewTag$4] = typedArrayTags[dateTag$3] = typedArrayTags[errorTag$2] = typedArrayTags[funcTag$2] = typedArrayTags[mapTag$5] = typedArrayTags[numberTag$3] = typedArrayTags[objectTag$4] = typedArrayTags[regexpTag$3] = typedArrayTags[setTag$5] = typedArrayTags[stringTag$3] = typedArrayTags[weakMapTag$2] = false;
|
14240 | function baseIsTypedArray$1(value) {
|
14241 | return isObjectLike$5(value) && isLength$2(value.length) && !!typedArrayTags[baseGetTag$4(value)];
|
14242 | }
|
14243 | var _baseIsTypedArray = baseIsTypedArray$1;
|
14244 | function baseUnary$3(func) {
|
14245 | return function(value) {
|
14246 | return func(value);
|
14247 | };
|
14248 | }
|
14249 | var _baseUnary = baseUnary$3;
|
14250 | var _nodeUtil = { exports: {} };
|
14251 | (function(module2, exports2) {
|
14252 | var freeGlobal2 = _freeGlobal;
|
14253 | var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
14254 | var freeModule2 = freeExports2 && true && module2 && !module2.nodeType && module2;
|
14255 | var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
14256 | var freeProcess2 = moduleExports2 && freeGlobal2.process;
|
14257 | var nodeUtil2 = function() {
|
14258 | try {
|
14259 | var types = freeModule2 && freeModule2.require && freeModule2.require("util").types;
|
14260 | if (types) {
|
14261 | return types;
|
14262 | }
|
14263 | return freeProcess2 && freeProcess2.binding && freeProcess2.binding("util");
|
14264 | } catch (e) {
|
14265 | }
|
14266 | }();
|
14267 | module2.exports = nodeUtil2;
|
14268 | })(_nodeUtil, _nodeUtil.exports);
|
14269 | var baseIsTypedArray = _baseIsTypedArray, baseUnary$2 = _baseUnary, nodeUtil$2 = _nodeUtil.exports;
|
14270 | var nodeIsTypedArray = nodeUtil$2 && nodeUtil$2.isTypedArray;
|
14271 | var isTypedArray$2 = nodeIsTypedArray ? baseUnary$2(nodeIsTypedArray) : baseIsTypedArray;
|
14272 | var isTypedArray_1 = isTypedArray$2;
|
14273 | var baseTimes = _baseTimes, isArguments$1 = isArguments_1, isArray$9 = isArray_1, isBuffer$2 = isBuffer$3.exports, isIndex$1 = _isIndex, isTypedArray$1 = isTypedArray_1;
|
14274 | var objectProto$c = Object.prototype;
|
14275 | var hasOwnProperty$a = objectProto$c.hasOwnProperty;
|
14276 | function arrayLikeKeys$2(value, inherited) {
|
14277 | var isArr = isArray$9(value), isArg = !isArr && isArguments$1(value), isBuff = !isArr && !isArg && isBuffer$2(value), isType = !isArr && !isArg && !isBuff && isTypedArray$1(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
|
14278 | for (var key in value) {
|
14279 | if ((inherited || hasOwnProperty$a.call(value, key)) && !(skipIndexes && (key == "length" || isBuff && (key == "offset" || key == "parent") || isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || isIndex$1(key, length)))) {
|
14280 | result.push(key);
|
14281 | }
|
14282 | }
|
14283 | return result;
|
14284 | }
|
14285 | var _arrayLikeKeys = arrayLikeKeys$2;
|
14286 | var objectProto$b = Object.prototype;
|
14287 | function isPrototype$3(value) {
|
14288 | var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto$b;
|
14289 | return value === proto;
|
14290 | }
|
14291 | var _isPrototype = isPrototype$3;
|
14292 | function overArg$2(func, transform2) {
|
14293 | return function(arg) {
|
14294 | return func(transform2(arg));
|
14295 | };
|
14296 | }
|
14297 | var _overArg = overArg$2;
|
14298 | var overArg$1 = _overArg;
|
14299 | var nativeKeys$1 = overArg$1(Object.keys, Object);
|
14300 | var _nativeKeys = nativeKeys$1;
|
14301 | var isPrototype$2 = _isPrototype, nativeKeys = _nativeKeys;
|
14302 | var objectProto$a = Object.prototype;
|
14303 | var hasOwnProperty$9 = objectProto$a.hasOwnProperty;
|
14304 | function baseKeys$1(object) {
|
14305 | if (!isPrototype$2(object)) {
|
14306 | return nativeKeys(object);
|
14307 | }
|
14308 | var result = [];
|
14309 | for (var key in Object(object)) {
|
14310 | if (hasOwnProperty$9.call(object, key) && key != "constructor") {
|
14311 | result.push(key);
|
14312 | }
|
14313 | }
|
14314 | return result;
|
14315 | }
|
14316 | var _baseKeys = baseKeys$1;
|
14317 | function isObject$6(value) {
|
14318 | var type = typeof value;
|
14319 | return value != null && (type == "object" || type == "function");
|
14320 | }
|
14321 | var isObject_1 = isObject$6;
|
14322 | var baseGetTag$3 = _baseGetTag, isObject$5 = isObject_1;
|
14323 | var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag$1 = "[object GeneratorFunction]", proxyTag = "[object Proxy]";
|
14324 | function isFunction$2(value) {
|
14325 | if (!isObject$5(value)) {
|
14326 | return false;
|
14327 | }
|
14328 | var tag = baseGetTag$3(value);
|
14329 | return tag == funcTag$1 || tag == genTag$1 || tag == asyncTag || tag == proxyTag;
|
14330 | }
|
14331 | var isFunction_1 = isFunction$2;
|
14332 | var isFunction$1 = isFunction_1, isLength$1 = isLength_1;
|
14333 | function isArrayLike$4(value) {
|
14334 | return value != null && isLength$1(value.length) && !isFunction$1(value);
|
14335 | }
|
14336 | var isArrayLike_1 = isArrayLike$4;
|
14337 | var arrayLikeKeys$1 = _arrayLikeKeys, baseKeys = _baseKeys, isArrayLike$3 = isArrayLike_1;
|
14338 | function keys$5(object) {
|
14339 | return isArrayLike$3(object) ? arrayLikeKeys$1(object) : baseKeys(object);
|
14340 | }
|
14341 | var keys_1 = keys$5;
|
14342 | var baseFor = _baseFor, keys$4 = keys_1;
|
14343 | function baseForOwn$2(object, iteratee) {
|
14344 | return object && baseFor(object, iteratee, keys$4);
|
14345 | }
|
14346 | var _baseForOwn = baseForOwn$2;
|
14347 | function identity$2(value) {
|
14348 | return value;
|
14349 | }
|
14350 | var identity_1 = identity$2;
|
14351 | var identity$1 = identity_1;
|
14352 | function castFunction$1(value) {
|
14353 | return typeof value == "function" ? value : identity$1;
|
14354 | }
|
14355 | var _castFunction = castFunction$1;
|
14356 | var baseForOwn$1 = _baseForOwn, castFunction = _castFunction;
|
14357 | function forOwn(object, iteratee) {
|
14358 | return object && baseForOwn$1(object, castFunction(iteratee));
|
14359 | }
|
14360 | var forOwn_1 = forOwn;
|
14361 | var overArg = _overArg;
|
14362 | var getPrototype$3 = overArg(Object.getPrototypeOf, Object);
|
14363 | var _getPrototype = getPrototype$3;
|
14364 | var baseGetTag$2 = _baseGetTag, getPrototype$2 = _getPrototype, isObjectLike$4 = isObjectLike_1;
|
14365 | var objectTag$3 = "[object Object]";
|
14366 | var funcProto$2 = Function.prototype, objectProto$9 = Object.prototype;
|
14367 | var funcToString$2 = funcProto$2.toString;
|
14368 | var hasOwnProperty$8 = objectProto$9.hasOwnProperty;
|
14369 | var objectCtorString = funcToString$2.call(Object);
|
14370 | function isPlainObject(value) {
|
14371 | if (!isObjectLike$4(value) || baseGetTag$2(value) != objectTag$3) {
|
14372 | return false;
|
14373 | }
|
14374 | var proto = getPrototype$2(value);
|
14375 | if (proto === null) {
|
14376 | return true;
|
14377 | }
|
14378 | var Ctor = hasOwnProperty$8.call(proto, "constructor") && proto.constructor;
|
14379 | return typeof Ctor == "function" && Ctor instanceof Ctor && funcToString$2.call(Ctor) == objectCtorString;
|
14380 | }
|
14381 | var isPlainObject_1 = isPlainObject;
|
14382 | function arrayMap$2(array, iteratee) {
|
14383 | var index2 = -1, length = array == null ? 0 : array.length, result = Array(length);
|
14384 | while (++index2 < length) {
|
14385 | result[index2] = iteratee(array[index2], index2, array);
|
14386 | }
|
14387 | return result;
|
14388 | }
|
14389 | var _arrayMap = arrayMap$2;
|
14390 | function listCacheClear$1() {
|
14391 | this.__data__ = [];
|
14392 | this.size = 0;
|
14393 | }
|
14394 | var _listCacheClear = listCacheClear$1;
|
14395 | function eq$3(value, other) {
|
14396 | return value === other || value !== value && other !== other;
|
14397 | }
|
14398 | var eq_1 = eq$3;
|
14399 | var eq$2 = eq_1;
|
14400 | function assocIndexOf$4(array, key) {
|
14401 | var length = array.length;
|
14402 | while (length--) {
|
14403 | if (eq$2(array[length][0], key)) {
|
14404 | return length;
|
14405 | }
|
14406 | }
|
14407 | return -1;
|
14408 | }
|
14409 | var _assocIndexOf = assocIndexOf$4;
|
14410 | var assocIndexOf$3 = _assocIndexOf;
|
14411 | var arrayProto = Array.prototype;
|
14412 | var splice = arrayProto.splice;
|
14413 | function listCacheDelete$1(key) {
|
14414 | var data = this.__data__, index2 = assocIndexOf$3(data, key);
|
14415 | if (index2 < 0) {
|
14416 | return false;
|
14417 | }
|
14418 | var lastIndex = data.length - 1;
|
14419 | if (index2 == lastIndex) {
|
14420 | data.pop();
|
14421 | } else {
|
14422 | splice.call(data, index2, 1);
|
14423 | }
|
14424 | --this.size;
|
14425 | return true;
|
14426 | }
|
14427 | var _listCacheDelete = listCacheDelete$1;
|
14428 | var assocIndexOf$2 = _assocIndexOf;
|
14429 | function listCacheGet$1(key) {
|
14430 | var data = this.__data__, index2 = assocIndexOf$2(data, key);
|
14431 | return index2 < 0 ? void 0 : data[index2][1];
|
14432 | }
|
14433 | var _listCacheGet = listCacheGet$1;
|
14434 | var assocIndexOf$1 = _assocIndexOf;
|
14435 | function listCacheHas$1(key) {
|
14436 | return assocIndexOf$1(this.__data__, key) > -1;
|
14437 | }
|
14438 | var _listCacheHas = listCacheHas$1;
|
14439 | var assocIndexOf = _assocIndexOf;
|
14440 | function listCacheSet$1(key, value) {
|
14441 | var data = this.__data__, index2 = assocIndexOf(data, key);
|
14442 | if (index2 < 0) {
|
14443 | ++this.size;
|
14444 | data.push([key, value]);
|
14445 | } else {
|
14446 | data[index2][1] = value;
|
14447 | }
|
14448 | return this;
|
14449 | }
|
14450 | var _listCacheSet = listCacheSet$1;
|
14451 | var listCacheClear = _listCacheClear, listCacheDelete = _listCacheDelete, listCacheGet = _listCacheGet, listCacheHas = _listCacheHas, listCacheSet = _listCacheSet;
|
14452 | function ListCache$4(entries) {
|
14453 | var index2 = -1, length = entries == null ? 0 : entries.length;
|
14454 | this.clear();
|
14455 | while (++index2 < length) {
|
14456 | var entry = entries[index2];
|
14457 | this.set(entry[0], entry[1]);
|
14458 | }
|
14459 | }
|
14460 | ListCache$4.prototype.clear = listCacheClear;
|
14461 | ListCache$4.prototype["delete"] = listCacheDelete;
|
14462 | ListCache$4.prototype.get = listCacheGet;
|
14463 | ListCache$4.prototype.has = listCacheHas;
|
14464 | ListCache$4.prototype.set = listCacheSet;
|
14465 | var _ListCache = ListCache$4;
|
14466 | var ListCache$3 = _ListCache;
|
14467 | function stackClear$1() {
|
14468 | this.__data__ = new ListCache$3();
|
14469 | this.size = 0;
|
14470 | }
|
14471 | var _stackClear = stackClear$1;
|
14472 | function stackDelete$1(key) {
|
14473 | var data = this.__data__, result = data["delete"](key);
|
14474 | this.size = data.size;
|
14475 | return result;
|
14476 | }
|
14477 | var _stackDelete = stackDelete$1;
|
14478 | function stackGet$1(key) {
|
14479 | return this.__data__.get(key);
|
14480 | }
|
14481 | var _stackGet = stackGet$1;
|
14482 | function stackHas$1(key) {
|
14483 | return this.__data__.has(key);
|
14484 | }
|
14485 | var _stackHas = stackHas$1;
|
14486 | var root$6 = _root;
|
14487 | var coreJsData$1 = root$6["__core-js_shared__"];
|
14488 | var _coreJsData = coreJsData$1;
|
14489 | var coreJsData = _coreJsData;
|
14490 | var maskSrcKey = function() {
|
14491 | var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
|
14492 | return uid ? "Symbol(src)_1." + uid : "";
|
14493 | }();
|
14494 | function isMasked$1(func) {
|
14495 | return !!maskSrcKey && maskSrcKey in func;
|
14496 | }
|
14497 | var _isMasked = isMasked$1;
|
14498 | var funcProto$1 = Function.prototype;
|
14499 | var funcToString$1 = funcProto$1.toString;
|
14500 | function toSource$2(func) {
|
14501 | if (func != null) {
|
14502 | try {
|
14503 | return funcToString$1.call(func);
|
14504 | } catch (e) {
|
14505 | }
|
14506 | try {
|
14507 | return func + "";
|
14508 | } catch (e) {
|
14509 | }
|
14510 | }
|
14511 | return "";
|
14512 | }
|
14513 | var _toSource = toSource$2;
|
14514 | var isFunction = isFunction_1, isMasked = _isMasked, isObject$4 = isObject_1, toSource$1 = _toSource;
|
14515 | var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
|
14516 | var reIsHostCtor = /^\[object .+?Constructor\]$/;
|
14517 | var funcProto = Function.prototype, objectProto$8 = Object.prototype;
|
14518 | var funcToString = funcProto.toString;
|
14519 | var hasOwnProperty$7 = objectProto$8.hasOwnProperty;
|
14520 | var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$");
|
14521 | function baseIsNative$1(value) {
|
14522 | if (!isObject$4(value) || isMasked(value)) {
|
14523 | return false;
|
14524 | }
|
14525 | var pattern = isFunction(value) ? reIsNative : reIsHostCtor;
|
14526 | return pattern.test(toSource$1(value));
|
14527 | }
|
14528 | var _baseIsNative = baseIsNative$1;
|
14529 | function getValue$1(object, key) {
|
14530 | return object == null ? void 0 : object[key];
|
14531 | }
|
14532 | var _getValue = getValue$1;
|
14533 | var baseIsNative = _baseIsNative, getValue = _getValue;
|
14534 | function getNative$7(object, key) {
|
14535 | var value = getValue(object, key);
|
14536 | return baseIsNative(value) ? value : void 0;
|
14537 | }
|
14538 | var _getNative = getNative$7;
|
14539 | var getNative$6 = _getNative, root$5 = _root;
|
14540 | var Map$4 = getNative$6(root$5, "Map");
|
14541 | var _Map = Map$4;
|
14542 | var getNative$5 = _getNative;
|
14543 | var nativeCreate$4 = getNative$5(Object, "create");
|
14544 | var _nativeCreate = nativeCreate$4;
|
14545 | var nativeCreate$3 = _nativeCreate;
|
14546 | function hashClear$1() {
|
14547 | this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {};
|
14548 | this.size = 0;
|
14549 | }
|
14550 | var _hashClear = hashClear$1;
|
14551 | function hashDelete$1(key) {
|
14552 | var result = this.has(key) && delete this.__data__[key];
|
14553 | this.size -= result ? 1 : 0;
|
14554 | return result;
|
14555 | }
|
14556 | var _hashDelete = hashDelete$1;
|
14557 | var nativeCreate$2 = _nativeCreate;
|
14558 | var HASH_UNDEFINED$2 = "__lodash_hash_undefined__";
|
14559 | var objectProto$7 = Object.prototype;
|
14560 | var hasOwnProperty$6 = objectProto$7.hasOwnProperty;
|
14561 | function hashGet$1(key) {
|
14562 | var data = this.__data__;
|
14563 | if (nativeCreate$2) {
|
14564 | var result = data[key];
|
14565 | return result === HASH_UNDEFINED$2 ? void 0 : result;
|
14566 | }
|
14567 | return hasOwnProperty$6.call(data, key) ? data[key] : void 0;
|
14568 | }
|
14569 | var _hashGet = hashGet$1;
|
14570 | var nativeCreate$1 = _nativeCreate;
|
14571 | var objectProto$6 = Object.prototype;
|
14572 | var hasOwnProperty$5 = objectProto$6.hasOwnProperty;
|
14573 | function hashHas$1(key) {
|
14574 | var data = this.__data__;
|
14575 | return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$5.call(data, key);
|
14576 | }
|
14577 | var _hashHas = hashHas$1;
|
14578 | var nativeCreate = _nativeCreate;
|
14579 | var HASH_UNDEFINED$1 = "__lodash_hash_undefined__";
|
14580 | function hashSet$1(key, value) {
|
14581 | var data = this.__data__;
|
14582 | this.size += this.has(key) ? 0 : 1;
|
14583 | data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value;
|
14584 | return this;
|
14585 | }
|
14586 | var _hashSet = hashSet$1;
|
14587 | var hashClear = _hashClear, hashDelete = _hashDelete, hashGet = _hashGet, hashHas = _hashHas, hashSet = _hashSet;
|
14588 | function Hash$1(entries) {
|
14589 | var index2 = -1, length = entries == null ? 0 : entries.length;
|
14590 | this.clear();
|
14591 | while (++index2 < length) {
|
14592 | var entry = entries[index2];
|
14593 | this.set(entry[0], entry[1]);
|
14594 | }
|
14595 | }
|
14596 | Hash$1.prototype.clear = hashClear;
|
14597 | Hash$1.prototype["delete"] = hashDelete;
|
14598 | Hash$1.prototype.get = hashGet;
|
14599 | Hash$1.prototype.has = hashHas;
|
14600 | Hash$1.prototype.set = hashSet;
|
14601 | var _Hash = Hash$1;
|
14602 | var Hash = _Hash, ListCache$2 = _ListCache, Map$3 = _Map;
|
14603 | function mapCacheClear$1() {
|
14604 | this.size = 0;
|
14605 | this.__data__ = {
|
14606 | "hash": new Hash(),
|
14607 | "map": new (Map$3 || ListCache$2)(),
|
14608 | "string": new Hash()
|
14609 | };
|
14610 | }
|
14611 | var _mapCacheClear = mapCacheClear$1;
|
14612 | function isKeyable$1(value) {
|
14613 | var type = typeof value;
|
14614 | return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null;
|
14615 | }
|
14616 | var _isKeyable = isKeyable$1;
|
14617 | var isKeyable = _isKeyable;
|
14618 | function getMapData$4(map2, key) {
|
14619 | var data = map2.__data__;
|
14620 | return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
|
14621 | }
|
14622 | var _getMapData = getMapData$4;
|
14623 | var getMapData$3 = _getMapData;
|
14624 | function mapCacheDelete$1(key) {
|
14625 | var result = getMapData$3(this, key)["delete"](key);
|
14626 | this.size -= result ? 1 : 0;
|
14627 | return result;
|
14628 | }
|
14629 | var _mapCacheDelete = mapCacheDelete$1;
|
14630 | var getMapData$2 = _getMapData;
|
14631 | function mapCacheGet$1(key) {
|
14632 | return getMapData$2(this, key).get(key);
|
14633 | }
|
14634 | var _mapCacheGet = mapCacheGet$1;
|
14635 | var getMapData$1 = _getMapData;
|
14636 | function mapCacheHas$1(key) {
|
14637 | return getMapData$1(this, key).has(key);
|
14638 | }
|
14639 | var _mapCacheHas = mapCacheHas$1;
|
14640 | var getMapData = _getMapData;
|
14641 | function mapCacheSet$1(key, value) {
|
14642 | var data = getMapData(this, key), size = data.size;
|
14643 | data.set(key, value);
|
14644 | this.size += data.size == size ? 0 : 1;
|
14645 | return this;
|
14646 | }
|
14647 | var _mapCacheSet = mapCacheSet$1;
|
14648 | var mapCacheClear = _mapCacheClear, mapCacheDelete = _mapCacheDelete, mapCacheGet = _mapCacheGet, mapCacheHas = _mapCacheHas, mapCacheSet = _mapCacheSet;
|
14649 | function MapCache$3(entries) {
|
14650 | var index2 = -1, length = entries == null ? 0 : entries.length;
|
14651 | this.clear();
|
14652 | while (++index2 < length) {
|
14653 | var entry = entries[index2];
|
14654 | this.set(entry[0], entry[1]);
|
14655 | }
|
14656 | }
|
14657 | MapCache$3.prototype.clear = mapCacheClear;
|
14658 | MapCache$3.prototype["delete"] = mapCacheDelete;
|
14659 | MapCache$3.prototype.get = mapCacheGet;
|
14660 | MapCache$3.prototype.has = mapCacheHas;
|
14661 | MapCache$3.prototype.set = mapCacheSet;
|
14662 | var _MapCache = MapCache$3;
|
14663 | var ListCache$1 = _ListCache, Map$2 = _Map, MapCache$2 = _MapCache;
|
14664 | var LARGE_ARRAY_SIZE = 200;
|
14665 | function stackSet$1(key, value) {
|
14666 | var data = this.__data__;
|
14667 | if (data instanceof ListCache$1) {
|
14668 | var pairs = data.__data__;
|
14669 | if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
|
14670 | pairs.push([key, value]);
|
14671 | this.size = ++data.size;
|
14672 | return this;
|
14673 | }
|
14674 | data = this.__data__ = new MapCache$2(pairs);
|
14675 | }
|
14676 | data.set(key, value);
|
14677 | this.size = data.size;
|
14678 | return this;
|
14679 | }
|
14680 | var _stackSet = stackSet$1;
|
14681 | var ListCache = _ListCache, stackClear = _stackClear, stackDelete = _stackDelete, stackGet = _stackGet, stackHas = _stackHas, stackSet = _stackSet;
|
14682 | function Stack$3(entries) {
|
14683 | var data = this.__data__ = new ListCache(entries);
|
14684 | this.size = data.size;
|
14685 | }
|
14686 | Stack$3.prototype.clear = stackClear;
|
14687 | Stack$3.prototype["delete"] = stackDelete;
|
14688 | Stack$3.prototype.get = stackGet;
|
14689 | Stack$3.prototype.has = stackHas;
|
14690 | Stack$3.prototype.set = stackSet;
|
14691 | var _Stack = Stack$3;
|
14692 | var HASH_UNDEFINED = "__lodash_hash_undefined__";
|
14693 | function setCacheAdd$1(value) {
|
14694 | this.__data__.set(value, HASH_UNDEFINED);
|
14695 | return this;
|
14696 | }
|
14697 | var _setCacheAdd = setCacheAdd$1;
|
14698 | function setCacheHas$1(value) {
|
14699 | return this.__data__.has(value);
|
14700 | }
|
14701 | var _setCacheHas = setCacheHas$1;
|
14702 | var MapCache$1 = _MapCache, setCacheAdd = _setCacheAdd, setCacheHas = _setCacheHas;
|
14703 | function SetCache$1(values) {
|
14704 | var index2 = -1, length = values == null ? 0 : values.length;
|
14705 | this.__data__ = new MapCache$1();
|
14706 | while (++index2 < length) {
|
14707 | this.add(values[index2]);
|
14708 | }
|
14709 | }
|
14710 | SetCache$1.prototype.add = SetCache$1.prototype.push = setCacheAdd;
|
14711 | SetCache$1.prototype.has = setCacheHas;
|
14712 | var _SetCache = SetCache$1;
|
14713 | function arraySome$1(array, predicate) {
|
14714 | var index2 = -1, length = array == null ? 0 : array.length;
|
14715 | while (++index2 < length) {
|
14716 | if (predicate(array[index2], index2, array)) {
|
14717 | return true;
|
14718 | }
|
14719 | }
|
14720 | return false;
|
14721 | }
|
14722 | var _arraySome = arraySome$1;
|
14723 | function cacheHas$1(cache, key) {
|
14724 | return cache.has(key);
|
14725 | }
|
14726 | var _cacheHas = cacheHas$1;
|
14727 | var SetCache = _SetCache, arraySome = _arraySome, cacheHas = _cacheHas;
|
14728 | var COMPARE_PARTIAL_FLAG$5 = 1, COMPARE_UNORDERED_FLAG$3 = 2;
|
14729 | function equalArrays$2(array, other, bitmask, customizer, equalFunc, stack) {
|
14730 | var isPartial = bitmask & COMPARE_PARTIAL_FLAG$5, arrLength = array.length, othLength = other.length;
|
14731 | if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
|
14732 | return false;
|
14733 | }
|
14734 | var arrStacked = stack.get(array);
|
14735 | var othStacked = stack.get(other);
|
14736 | if (arrStacked && othStacked) {
|
14737 | return arrStacked == other && othStacked == array;
|
14738 | }
|
14739 | var index2 = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG$3 ? new SetCache() : void 0;
|
14740 | stack.set(array, other);
|
14741 | stack.set(other, array);
|
14742 | while (++index2 < arrLength) {
|
14743 | var arrValue = array[index2], othValue = other[index2];
|
14744 | if (customizer) {
|
14745 | var compared = isPartial ? customizer(othValue, arrValue, index2, other, array, stack) : customizer(arrValue, othValue, index2, array, other, stack);
|
14746 | }
|
14747 | if (compared !== void 0) {
|
14748 | if (compared) {
|
14749 | continue;
|
14750 | }
|
14751 | result = false;
|
14752 | break;
|
14753 | }
|
14754 | if (seen) {
|
14755 | if (!arraySome(other, function(othValue2, othIndex) {
|
14756 | if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
|
14757 | return seen.push(othIndex);
|
14758 | }
|
14759 | })) {
|
14760 | result = false;
|
14761 | break;
|
14762 | }
|
14763 | } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
|
14764 | result = false;
|
14765 | break;
|
14766 | }
|
14767 | }
|
14768 | stack["delete"](array);
|
14769 | stack["delete"](other);
|
14770 | return result;
|
14771 | }
|
14772 | var _equalArrays = equalArrays$2;
|
14773 | var root$4 = _root;
|
14774 | var Uint8Array$3 = root$4.Uint8Array;
|
14775 | var _Uint8Array = Uint8Array$3;
|
14776 | function mapToArray$1(map2) {
|
14777 | var index2 = -1, result = Array(map2.size);
|
14778 | map2.forEach(function(value, key) {
|
14779 | result[++index2] = [key, value];
|
14780 | });
|
14781 | return result;
|
14782 | }
|
14783 | var _mapToArray = mapToArray$1;
|
14784 | function setToArray$1(set) {
|
14785 | var index2 = -1, result = Array(set.size);
|
14786 | set.forEach(function(value) {
|
14787 | result[++index2] = value;
|
14788 | });
|
14789 | return result;
|
14790 | }
|
14791 | var _setToArray = setToArray$1;
|
14792 | var Symbol$3 = _Symbol, Uint8Array$2 = _Uint8Array, eq$1 = eq_1, equalArrays$1 = _equalArrays, mapToArray = _mapToArray, setToArray = _setToArray;
|
14793 | var COMPARE_PARTIAL_FLAG$4 = 1, COMPARE_UNORDERED_FLAG$2 = 2;
|
14794 | var boolTag$2 = "[object Boolean]", dateTag$2 = "[object Date]", errorTag$1 = "[object Error]", mapTag$4 = "[object Map]", numberTag$2 = "[object Number]", regexpTag$2 = "[object RegExp]", setTag$4 = "[object Set]", stringTag$2 = "[object String]", symbolTag$3 = "[object Symbol]";
|
14795 | var arrayBufferTag$2 = "[object ArrayBuffer]", dataViewTag$3 = "[object DataView]";
|
14796 | var symbolProto$2 = Symbol$3 ? Symbol$3.prototype : void 0, symbolValueOf$1 = symbolProto$2 ? symbolProto$2.valueOf : void 0;
|
14797 | function equalByTag$1(object, other, tag, bitmask, customizer, equalFunc, stack) {
|
14798 | switch (tag) {
|
14799 | case dataViewTag$3:
|
14800 | if (object.byteLength != other.byteLength || object.byteOffset != other.byteOffset) {
|
14801 | return false;
|
14802 | }
|
14803 | object = object.buffer;
|
14804 | other = other.buffer;
|
14805 | case arrayBufferTag$2:
|
14806 | if (object.byteLength != other.byteLength || !equalFunc(new Uint8Array$2(object), new Uint8Array$2(other))) {
|
14807 | return false;
|
14808 | }
|
14809 | return true;
|
14810 | case boolTag$2:
|
14811 | case dateTag$2:
|
14812 | case numberTag$2:
|
14813 | return eq$1(+object, +other);
|
14814 | case errorTag$1:
|
14815 | return object.name == other.name && object.message == other.message;
|
14816 | case regexpTag$2:
|
14817 | case stringTag$2:
|
14818 | return object == other + "";
|
14819 | case mapTag$4:
|
14820 | var convert = mapToArray;
|
14821 | case setTag$4:
|
14822 | var isPartial = bitmask & COMPARE_PARTIAL_FLAG$4;
|
14823 | convert || (convert = setToArray);
|
14824 | if (object.size != other.size && !isPartial) {
|
14825 | return false;
|
14826 | }
|
14827 | var stacked = stack.get(object);
|
14828 | if (stacked) {
|
14829 | return stacked == other;
|
14830 | }
|
14831 | bitmask |= COMPARE_UNORDERED_FLAG$2;
|
14832 | stack.set(object, other);
|
14833 | var result = equalArrays$1(convert(object), convert(other), bitmask, customizer, equalFunc, stack);
|
14834 | stack["delete"](object);
|
14835 | return result;
|
14836 | case symbolTag$3:
|
14837 | if (symbolValueOf$1) {
|
14838 | return symbolValueOf$1.call(object) == symbolValueOf$1.call(other);
|
14839 | }
|
14840 | }
|
14841 | return false;
|
14842 | }
|
14843 | var _equalByTag = equalByTag$1;
|
14844 | function arrayPush$2(array, values) {
|
14845 | var index2 = -1, length = values.length, offset = array.length;
|
14846 | while (++index2 < length) {
|
14847 | array[offset + index2] = values[index2];
|
14848 | }
|
14849 | return array;
|
14850 | }
|
14851 | var _arrayPush = arrayPush$2;
|
14852 | var arrayPush$1 = _arrayPush, isArray$8 = isArray_1;
|
14853 | function baseGetAllKeys$2(object, keysFunc, symbolsFunc) {
|
14854 | var result = keysFunc(object);
|
14855 | return isArray$8(object) ? result : arrayPush$1(result, symbolsFunc(object));
|
14856 | }
|
14857 | var _baseGetAllKeys = baseGetAllKeys$2;
|
14858 | function arrayFilter$1(array, predicate) {
|
14859 | var index2 = -1, length = array == null ? 0 : array.length, resIndex = 0, result = [];
|
14860 | while (++index2 < length) {
|
14861 | var value = array[index2];
|
14862 | if (predicate(value, index2, array)) {
|
14863 | result[resIndex++] = value;
|
14864 | }
|
14865 | }
|
14866 | return result;
|
14867 | }
|
14868 | var _arrayFilter = arrayFilter$1;
|
14869 | function stubArray$2() {
|
14870 | return [];
|
14871 | }
|
14872 | var stubArray_1 = stubArray$2;
|
14873 | var arrayFilter = _arrayFilter, stubArray$1 = stubArray_1;
|
14874 | var objectProto$5 = Object.prototype;
|
14875 | var propertyIsEnumerable = objectProto$5.propertyIsEnumerable;
|
14876 | var nativeGetSymbols$1 = Object.getOwnPropertySymbols;
|
14877 | var getSymbols$3 = !nativeGetSymbols$1 ? stubArray$1 : function(object) {
|
14878 | if (object == null) {
|
14879 | return [];
|
14880 | }
|
14881 | object = Object(object);
|
14882 | return arrayFilter(nativeGetSymbols$1(object), function(symbol) {
|
14883 | return propertyIsEnumerable.call(object, symbol);
|
14884 | });
|
14885 | };
|
14886 | var _getSymbols = getSymbols$3;
|
14887 | var baseGetAllKeys$1 = _baseGetAllKeys, getSymbols$2 = _getSymbols, keys$3 = keys_1;
|
14888 | function getAllKeys$2(object) {
|
14889 | return baseGetAllKeys$1(object, keys$3, getSymbols$2);
|
14890 | }
|
14891 | var _getAllKeys = getAllKeys$2;
|
14892 | var getAllKeys$1 = _getAllKeys;
|
14893 | var COMPARE_PARTIAL_FLAG$3 = 1;
|
14894 | var objectProto$4 = Object.prototype;
|
14895 | var hasOwnProperty$4 = objectProto$4.hasOwnProperty;
|
14896 | function equalObjects$1(object, other, bitmask, customizer, equalFunc, stack) {
|
14897 | var isPartial = bitmask & COMPARE_PARTIAL_FLAG$3, objProps = getAllKeys$1(object), objLength = objProps.length, othProps = getAllKeys$1(other), othLength = othProps.length;
|
14898 | if (objLength != othLength && !isPartial) {
|
14899 | return false;
|
14900 | }
|
14901 | var index2 = objLength;
|
14902 | while (index2--) {
|
14903 | var key = objProps[index2];
|
14904 | if (!(isPartial ? key in other : hasOwnProperty$4.call(other, key))) {
|
14905 | return false;
|
14906 | }
|
14907 | }
|
14908 | var objStacked = stack.get(object);
|
14909 | var othStacked = stack.get(other);
|
14910 | if (objStacked && othStacked) {
|
14911 | return objStacked == other && othStacked == object;
|
14912 | }
|
14913 | var result = true;
|
14914 | stack.set(object, other);
|
14915 | stack.set(other, object);
|
14916 | var skipCtor = isPartial;
|
14917 | while (++index2 < objLength) {
|
14918 | key = objProps[index2];
|
14919 | var objValue = object[key], othValue = other[key];
|
14920 | if (customizer) {
|
14921 | var compared = isPartial ? customizer(othValue, objValue, key, other, object, stack) : customizer(objValue, othValue, key, object, other, stack);
|
14922 | }
|
14923 | if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
|
14924 | result = false;
|
14925 | break;
|
14926 | }
|
14927 | skipCtor || (skipCtor = key == "constructor");
|
14928 | }
|
14929 | if (result && !skipCtor) {
|
14930 | var objCtor = object.constructor, othCtor = other.constructor;
|
14931 | if (objCtor != othCtor && ("constructor" in object && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
|
14932 | result = false;
|
14933 | }
|
14934 | }
|
14935 | stack["delete"](object);
|
14936 | stack["delete"](other);
|
14937 | return result;
|
14938 | }
|
14939 | var _equalObjects = equalObjects$1;
|
14940 | var getNative$4 = _getNative, root$3 = _root;
|
14941 | var DataView$1 = getNative$4(root$3, "DataView");
|
14942 | var _DataView = DataView$1;
|
14943 | var getNative$3 = _getNative, root$2 = _root;
|
14944 | var Promise$2 = getNative$3(root$2, "Promise");
|
14945 | var _Promise = Promise$2;
|
14946 | var getNative$2 = _getNative, root$1 = _root;
|
14947 | var Set$1 = getNative$2(root$1, "Set");
|
14948 | var _Set = Set$1;
|
14949 | var getNative$1 = _getNative, root = _root;
|
14950 | var WeakMap$1 = getNative$1(root, "WeakMap");
|
14951 | var _WeakMap = WeakMap$1;
|
14952 | var DataView = _DataView, Map$1 = _Map, Promise$1 = _Promise, Set = _Set, WeakMap = _WeakMap, baseGetTag$1 = _baseGetTag, toSource = _toSource;
|
14953 | var mapTag$3 = "[object Map]", objectTag$2 = "[object Object]", promiseTag = "[object Promise]", setTag$3 = "[object Set]", weakMapTag$1 = "[object WeakMap]";
|
14954 | var dataViewTag$2 = "[object DataView]";
|
14955 | var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map$1), promiseCtorString = toSource(Promise$1), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
|
14956 | var getTag$4 = baseGetTag$1;
|
14957 | if (DataView && getTag$4(new DataView(new ArrayBuffer(1))) != dataViewTag$2 || Map$1 && getTag$4(new Map$1()) != mapTag$3 || Promise$1 && getTag$4(Promise$1.resolve()) != promiseTag || Set && getTag$4(new Set()) != setTag$3 || WeakMap && getTag$4(new WeakMap()) != weakMapTag$1) {
|
14958 | getTag$4 = function(value) {
|
14959 | var result = baseGetTag$1(value), Ctor = result == objectTag$2 ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
|
14960 | if (ctorString) {
|
14961 | switch (ctorString) {
|
14962 | case dataViewCtorString:
|
14963 | return dataViewTag$2;
|
14964 | case mapCtorString:
|
14965 | return mapTag$3;
|
14966 | case promiseCtorString:
|
14967 | return promiseTag;
|
14968 | case setCtorString:
|
14969 | return setTag$3;
|
14970 | case weakMapCtorString:
|
14971 | return weakMapTag$1;
|
14972 | }
|
14973 | }
|
14974 | return result;
|
14975 | };
|
14976 | }
|
14977 | var _getTag = getTag$4;
|
14978 | var Stack$2 = _Stack, equalArrays = _equalArrays, equalByTag = _equalByTag, equalObjects = _equalObjects, getTag$3 = _getTag, isArray$7 = isArray_1, isBuffer$1 = isBuffer$3.exports, isTypedArray = isTypedArray_1;
|
14979 | var COMPARE_PARTIAL_FLAG$2 = 1;
|
14980 | var argsTag$1 = "[object Arguments]", arrayTag$1 = "[object Array]", objectTag$1 = "[object Object]";
|
14981 | var objectProto$3 = Object.prototype;
|
14982 | var hasOwnProperty$3 = objectProto$3.hasOwnProperty;
|
14983 | function baseIsEqualDeep$1(object, other, bitmask, customizer, equalFunc, stack) {
|
14984 | var objIsArr = isArray$7(object), othIsArr = isArray$7(other), objTag = objIsArr ? arrayTag$1 : getTag$3(object), othTag = othIsArr ? arrayTag$1 : getTag$3(other);
|
14985 | objTag = objTag == argsTag$1 ? objectTag$1 : objTag;
|
14986 | othTag = othTag == argsTag$1 ? objectTag$1 : othTag;
|
14987 | var objIsObj = objTag == objectTag$1, othIsObj = othTag == objectTag$1, isSameTag = objTag == othTag;
|
14988 | if (isSameTag && isBuffer$1(object)) {
|
14989 | if (!isBuffer$1(other)) {
|
14990 | return false;
|
14991 | }
|
14992 | objIsArr = true;
|
14993 | objIsObj = false;
|
14994 | }
|
14995 | if (isSameTag && !objIsObj) {
|
14996 | stack || (stack = new Stack$2());
|
14997 | return objIsArr || isTypedArray(object) ? equalArrays(object, other, bitmask, customizer, equalFunc, stack) : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);
|
14998 | }
|
14999 | if (!(bitmask & COMPARE_PARTIAL_FLAG$2)) {
|
15000 | var objIsWrapped = objIsObj && hasOwnProperty$3.call(object, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty$3.call(other, "__wrapped__");
|
15001 | if (objIsWrapped || othIsWrapped) {
|
15002 | var objUnwrapped = objIsWrapped ? object.value() : object, othUnwrapped = othIsWrapped ? other.value() : other;
|
15003 | stack || (stack = new Stack$2());
|
15004 | return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
|
15005 | }
|
15006 | }
|
15007 | if (!isSameTag) {
|
15008 | return false;
|
15009 | }
|
15010 | stack || (stack = new Stack$2());
|
15011 | return equalObjects(object, other, bitmask, customizer, equalFunc, stack);
|
15012 | }
|
15013 | var _baseIsEqualDeep = baseIsEqualDeep$1;
|
15014 | var baseIsEqualDeep = _baseIsEqualDeep, isObjectLike$3 = isObjectLike_1;
|
15015 | function baseIsEqual$2(value, other, bitmask, customizer, stack) {
|
15016 | if (value === other) {
|
15017 | return true;
|
15018 | }
|
15019 | if (value == null || other == null || !isObjectLike$3(value) && !isObjectLike$3(other)) {
|
15020 | return value !== value && other !== other;
|
15021 | }
|
15022 | return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual$2, stack);
|
15023 | }
|
15024 | var _baseIsEqual = baseIsEqual$2;
|
15025 | var Stack$1 = _Stack, baseIsEqual$1 = _baseIsEqual;
|
15026 | var COMPARE_PARTIAL_FLAG$1 = 1, COMPARE_UNORDERED_FLAG$1 = 2;
|
15027 | function baseIsMatch$1(object, source, matchData, customizer) {
|
15028 | var index2 = matchData.length, length = index2, noCustomizer = !customizer;
|
15029 | if (object == null) {
|
15030 | return !length;
|
15031 | }
|
15032 | object = Object(object);
|
15033 | while (index2--) {
|
15034 | var data = matchData[index2];
|
15035 | if (noCustomizer && data[2] ? data[1] !== object[data[0]] : !(data[0] in object)) {
|
15036 | return false;
|
15037 | }
|
15038 | }
|
15039 | while (++index2 < length) {
|
15040 | data = matchData[index2];
|
15041 | var key = data[0], objValue = object[key], srcValue = data[1];
|
15042 | if (noCustomizer && data[2]) {
|
15043 | if (objValue === void 0 && !(key in object)) {
|
15044 | return false;
|
15045 | }
|
15046 | } else {
|
15047 | var stack = new Stack$1();
|
15048 | if (customizer) {
|
15049 | var result = customizer(objValue, srcValue, key, object, source, stack);
|
15050 | }
|
15051 | if (!(result === void 0 ? baseIsEqual$1(srcValue, objValue, COMPARE_PARTIAL_FLAG$1 | COMPARE_UNORDERED_FLAG$1, customizer, stack) : result)) {
|
15052 | return false;
|
15053 | }
|
15054 | }
|
15055 | }
|
15056 | return true;
|
15057 | }
|
15058 | var _baseIsMatch = baseIsMatch$1;
|
15059 | var isObject$3 = isObject_1;
|
15060 | function isStrictComparable$2(value) {
|
15061 | return value === value && !isObject$3(value);
|
15062 | }
|
15063 | var _isStrictComparable = isStrictComparable$2;
|
15064 | var isStrictComparable$1 = _isStrictComparable, keys$2 = keys_1;
|
15065 | function getMatchData$1(object) {
|
15066 | var result = keys$2(object), length = result.length;
|
15067 | while (length--) {
|
15068 | var key = result[length], value = object[key];
|
15069 | result[length] = [key, value, isStrictComparable$1(value)];
|
15070 | }
|
15071 | return result;
|
15072 | }
|
15073 | var _getMatchData = getMatchData$1;
|
15074 | function matchesStrictComparable$2(key, srcValue) {
|
15075 | return function(object) {
|
15076 | if (object == null) {
|
15077 | return false;
|
15078 | }
|
15079 | return object[key] === srcValue && (srcValue !== void 0 || key in Object(object));
|
15080 | };
|
15081 | }
|
15082 | var _matchesStrictComparable = matchesStrictComparable$2;
|
15083 | var baseIsMatch = _baseIsMatch, getMatchData = _getMatchData, matchesStrictComparable$1 = _matchesStrictComparable;
|
15084 | function baseMatches$1(source) {
|
15085 | var matchData = getMatchData(source);
|
15086 | if (matchData.length == 1 && matchData[0][2]) {
|
15087 | return matchesStrictComparable$1(matchData[0][0], matchData[0][1]);
|
15088 | }
|
15089 | return function(object) {
|
15090 | return object === source || baseIsMatch(object, source, matchData);
|
15091 | };
|
15092 | }
|
15093 | var _baseMatches = baseMatches$1;
|
15094 | var baseGetTag = _baseGetTag, isObjectLike$2 = isObjectLike_1;
|
15095 | var symbolTag$2 = "[object Symbol]";
|
15096 | function isSymbol$3(value) {
|
15097 | return typeof value == "symbol" || isObjectLike$2(value) && baseGetTag(value) == symbolTag$2;
|
15098 | }
|
15099 | var isSymbol_1 = isSymbol$3;
|
15100 | var isArray$6 = isArray_1, isSymbol$2 = isSymbol_1;
|
15101 | var reIsDeepProp = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp = /^\w*$/;
|
15102 | function isKey$3(value, object) {
|
15103 | if (isArray$6(value)) {
|
15104 | return false;
|
15105 | }
|
15106 | var type = typeof value;
|
15107 | if (type == "number" || type == "symbol" || type == "boolean" || value == null || isSymbol$2(value)) {
|
15108 | return true;
|
15109 | }
|
15110 | return reIsPlainProp.test(value) || !reIsDeepProp.test(value) || object != null && value in Object(object);
|
15111 | }
|
15112 | var _isKey = isKey$3;
|
15113 | var MapCache = _MapCache;
|
15114 | var FUNC_ERROR_TEXT = "Expected a function";
|
15115 | function memoize$1(func, resolver) {
|
15116 | if (typeof func != "function" || resolver != null && typeof resolver != "function") {
|
15117 | throw new TypeError(FUNC_ERROR_TEXT);
|
15118 | }
|
15119 | var memoized = function() {
|
15120 | var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
|
15121 | if (cache.has(key)) {
|
15122 | return cache.get(key);
|
15123 | }
|
15124 | var result = func.apply(this, args);
|
15125 | memoized.cache = cache.set(key, result) || cache;
|
15126 | return result;
|
15127 | };
|
15128 | memoized.cache = new (memoize$1.Cache || MapCache)();
|
15129 | return memoized;
|
15130 | }
|
15131 | memoize$1.Cache = MapCache;
|
15132 | var memoize_1 = memoize$1;
|
15133 | var memoize = memoize_1;
|
15134 | var MAX_MEMOIZE_SIZE = 500;
|
15135 | function memoizeCapped$1(func) {
|
15136 | var result = memoize(func, function(key) {
|
15137 | if (cache.size === MAX_MEMOIZE_SIZE) {
|
15138 | cache.clear();
|
15139 | }
|
15140 | return key;
|
15141 | });
|
15142 | var cache = result.cache;
|
15143 | return result;
|
15144 | }
|
15145 | var _memoizeCapped = memoizeCapped$1;
|
15146 | var memoizeCapped = _memoizeCapped;
|
15147 | var rePropName = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;
|
15148 | var reEscapeChar = /\\(\\)?/g;
|
15149 | var stringToPath$1 = memoizeCapped(function(string) {
|
15150 | var result = [];
|
15151 | if (string.charCodeAt(0) === 46) {
|
15152 | result.push("");
|
15153 | }
|
15154 | string.replace(rePropName, function(match, number, quote, subString) {
|
15155 | result.push(quote ? subString.replace(reEscapeChar, "$1") : number || match);
|
15156 | });
|
15157 | return result;
|
15158 | });
|
15159 | var _stringToPath = stringToPath$1;
|
15160 | var Symbol$2 = _Symbol, arrayMap$1 = _arrayMap, isArray$5 = isArray_1, isSymbol$1 = isSymbol_1;
|
15161 | var INFINITY$1 = 1 / 0;
|
15162 | var symbolProto$1 = Symbol$2 ? Symbol$2.prototype : void 0, symbolToString = symbolProto$1 ? symbolProto$1.toString : void 0;
|
15163 | function baseToString$1(value) {
|
15164 | if (typeof value == "string") {
|
15165 | return value;
|
15166 | }
|
15167 | if (isArray$5(value)) {
|
15168 | return arrayMap$1(value, baseToString$1) + "";
|
15169 | }
|
15170 | if (isSymbol$1(value)) {
|
15171 | return symbolToString ? symbolToString.call(value) : "";
|
15172 | }
|
15173 | var result = value + "";
|
15174 | return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
|
15175 | }
|
15176 | var _baseToString = baseToString$1;
|
15177 | var baseToString = _baseToString;
|
15178 | function toString$1(value) {
|
15179 | return value == null ? "" : baseToString(value);
|
15180 | }
|
15181 | var toString_1 = toString$1;
|
15182 | var isArray$4 = isArray_1, isKey$2 = _isKey, stringToPath = _stringToPath, toString = toString_1;
|
15183 | function castPath$2(value, object) {
|
15184 | if (isArray$4(value)) {
|
15185 | return value;
|
15186 | }
|
15187 | return isKey$2(value, object) ? [value] : stringToPath(toString(value));
|
15188 | }
|
15189 | var _castPath = castPath$2;
|
15190 | var isSymbol = isSymbol_1;
|
15191 | var INFINITY = 1 / 0;
|
15192 | function toKey$4(value) {
|
15193 | if (typeof value == "string" || isSymbol(value)) {
|
15194 | return value;
|
15195 | }
|
15196 | var result = value + "";
|
15197 | return result == "0" && 1 / value == -INFINITY ? "-0" : result;
|
15198 | }
|
15199 | var _toKey = toKey$4;
|
15200 | var castPath$1 = _castPath, toKey$3 = _toKey;
|
15201 | function baseGet$2(object, path) {
|
15202 | path = castPath$1(path, object);
|
15203 | var index2 = 0, length = path.length;
|
15204 | while (object != null && index2 < length) {
|
15205 | object = object[toKey$3(path[index2++])];
|
15206 | }
|
15207 | return index2 && index2 == length ? object : void 0;
|
15208 | }
|
15209 | var _baseGet = baseGet$2;
|
15210 | var baseGet$1 = _baseGet;
|
15211 | function get$2(object, path, defaultValue) {
|
15212 | var result = object == null ? void 0 : baseGet$1(object, path);
|
15213 | return result === void 0 ? defaultValue : result;
|
15214 | }
|
15215 | var get_1 = get$2;
|
15216 | function baseHasIn$1(object, key) {
|
15217 | return object != null && key in Object(object);
|
15218 | }
|
15219 | var _baseHasIn = baseHasIn$1;
|
15220 | var castPath = _castPath, isArguments = isArguments_1, isArray$3 = isArray_1, isIndex = _isIndex, isLength = isLength_1, toKey$2 = _toKey;
|
15221 | function hasPath$1(object, path, hasFunc) {
|
15222 | path = castPath(path, object);
|
15223 | var index2 = -1, length = path.length, result = false;
|
15224 | while (++index2 < length) {
|
15225 | var key = toKey$2(path[index2]);
|
15226 | if (!(result = object != null && hasFunc(object, key))) {
|
15227 | break;
|
15228 | }
|
15229 | object = object[key];
|
15230 | }
|
15231 | if (result || ++index2 != length) {
|
15232 | return result;
|
15233 | }
|
15234 | length = object == null ? 0 : object.length;
|
15235 | return !!length && isLength(length) && isIndex(key, length) && (isArray$3(object) || isArguments(object));
|
15236 | }
|
15237 | var _hasPath = hasPath$1;
|
15238 | var baseHasIn = _baseHasIn, hasPath = _hasPath;
|
15239 | function hasIn$1(object, path) {
|
15240 | return object != null && hasPath(object, path, baseHasIn);
|
15241 | }
|
15242 | var hasIn_1 = hasIn$1;
|
15243 | var baseIsEqual = _baseIsEqual, get$1 = get_1, hasIn = hasIn_1, isKey$1 = _isKey, isStrictComparable = _isStrictComparable, matchesStrictComparable = _matchesStrictComparable, toKey$1 = _toKey;
|
15244 | var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
|
15245 | function baseMatchesProperty$1(path, srcValue) {
|
15246 | if (isKey$1(path) && isStrictComparable(srcValue)) {
|
15247 | return matchesStrictComparable(toKey$1(path), srcValue);
|
15248 | }
|
15249 | return function(object) {
|
15250 | var objValue = get$1(object, path);
|
15251 | return objValue === void 0 && objValue === srcValue ? hasIn(object, path) : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);
|
15252 | };
|
15253 | }
|
15254 | var _baseMatchesProperty = baseMatchesProperty$1;
|
15255 | function baseProperty$1(key) {
|
15256 | return function(object) {
|
15257 | return object == null ? void 0 : object[key];
|
15258 | };
|
15259 | }
|
15260 | var _baseProperty = baseProperty$1;
|
15261 | var baseGet = _baseGet;
|
15262 | function basePropertyDeep$1(path) {
|
15263 | return function(object) {
|
15264 | return baseGet(object, path);
|
15265 | };
|
15266 | }
|
15267 | var _basePropertyDeep = basePropertyDeep$1;
|
15268 | var baseProperty = _baseProperty, basePropertyDeep = _basePropertyDeep, isKey = _isKey, toKey = _toKey;
|
15269 | function property$1(path) {
|
15270 | return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);
|
15271 | }
|
15272 | var property_1 = property$1;
|
15273 | var baseMatches = _baseMatches, baseMatchesProperty = _baseMatchesProperty, identity = identity_1, isArray$2 = isArray_1, property = property_1;
|
15274 | function baseIteratee$1(value) {
|
15275 | if (typeof value == "function") {
|
15276 | return value;
|
15277 | }
|
15278 | if (value == null) {
|
15279 | return identity;
|
15280 | }
|
15281 | if (typeof value == "object") {
|
15282 | return isArray$2(value) ? baseMatchesProperty(value[0], value[1]) : baseMatches(value);
|
15283 | }
|
15284 | return property(value);
|
15285 | }
|
15286 | var _baseIteratee = baseIteratee$1;
|
15287 | var isArrayLike$2 = isArrayLike_1;
|
15288 | function createBaseEach$1(eachFunc, fromRight) {
|
15289 | return function(collection, iteratee) {
|
15290 | if (collection == null) {
|
15291 | return collection;
|
15292 | }
|
15293 | if (!isArrayLike$2(collection)) {
|
15294 | return eachFunc(collection, iteratee);
|
15295 | }
|
15296 | var length = collection.length, index2 = fromRight ? length : -1, iterable = Object(collection);
|
15297 | while (fromRight ? index2-- : ++index2 < length) {
|
15298 | if (iteratee(iterable[index2], index2, iterable) === false) {
|
15299 | break;
|
15300 | }
|
15301 | }
|
15302 | return collection;
|
15303 | };
|
15304 | }
|
15305 | var _createBaseEach = createBaseEach$1;
|
15306 | var baseForOwn = _baseForOwn, createBaseEach = _createBaseEach;
|
15307 | var baseEach$1 = createBaseEach(baseForOwn);
|
15308 | var _baseEach = baseEach$1;
|
15309 | var baseEach = _baseEach, isArrayLike$1 = isArrayLike_1;
|
15310 | function baseMap$1(collection, iteratee) {
|
15311 | var index2 = -1, result = isArrayLike$1(collection) ? Array(collection.length) : [];
|
15312 | baseEach(collection, function(value, key, collection2) {
|
15313 | result[++index2] = iteratee(value, key, collection2);
|
15314 | });
|
15315 | return result;
|
15316 | }
|
15317 | var _baseMap = baseMap$1;
|
15318 | var arrayMap = _arrayMap, baseIteratee = _baseIteratee, baseMap = _baseMap, isArray$1 = isArray_1;
|
15319 | function map(collection, iteratee) {
|
15320 | var func = isArray$1(collection) ? arrayMap : baseMap;
|
15321 | return func(collection, baseIteratee(iteratee));
|
15322 | }
|
15323 | var map_1 = map;
|
15324 | Object.defineProperty(flattenNames$1, "__esModule", {
|
15325 | value: true
|
15326 | });
|
15327 | flattenNames$1.flattenNames = void 0;
|
15328 | var _isString2 = isString_1;
|
15329 | var _isString3 = _interopRequireDefault$7(_isString2);
|
15330 | var _forOwn2$2 = forOwn_1;
|
15331 | var _forOwn3$2 = _interopRequireDefault$7(_forOwn2$2);
|
15332 | var _isPlainObject2 = isPlainObject_1;
|
15333 | var _isPlainObject3 = _interopRequireDefault$7(_isPlainObject2);
|
15334 | var _map2 = map_1;
|
15335 | var _map3 = _interopRequireDefault$7(_map2);
|
15336 | function _interopRequireDefault$7(obj) {
|
15337 | return obj && obj.__esModule ? obj : { default: obj };
|
15338 | }
|
15339 | var flattenNames = flattenNames$1.flattenNames = function flattenNames2() {
|
15340 | var things = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
|
15341 | var names2 = [];
|
15342 | (0, _map3.default)(things, function(thing) {
|
15343 | if (Array.isArray(thing)) {
|
15344 | flattenNames2(thing).map(function(name) {
|
15345 | return names2.push(name);
|
15346 | });
|
15347 | } else if ((0, _isPlainObject3.default)(thing)) {
|
15348 | (0, _forOwn3$2.default)(thing, function(value, key) {
|
15349 | value === true && names2.push(key);
|
15350 | names2.push(key + "-" + value);
|
15351 | });
|
15352 | } else if ((0, _isString3.default)(thing)) {
|
15353 | names2.push(thing);
|
15354 | }
|
15355 | });
|
15356 | return names2;
|
15357 | };
|
15358 | flattenNames$1.default = flattenNames;
|
15359 | var mergeClasses$1 = {};
|
15360 | function arrayEach$1(array, iteratee) {
|
15361 | var index2 = -1, length = array == null ? 0 : array.length;
|
15362 | while (++index2 < length) {
|
15363 | if (iteratee(array[index2], index2, array) === false) {
|
15364 | break;
|
15365 | }
|
15366 | }
|
15367 | return array;
|
15368 | }
|
15369 | var _arrayEach = arrayEach$1;
|
15370 | var getNative = _getNative;
|
15371 | var defineProperty$1 = function() {
|
15372 | try {
|
15373 | var func = getNative(Object, "defineProperty");
|
15374 | func({}, "", {});
|
15375 | return func;
|
15376 | } catch (e) {
|
15377 | }
|
15378 | }();
|
15379 | var _defineProperty$1 = defineProperty$1;
|
15380 | var defineProperty = _defineProperty$1;
|
15381 | function baseAssignValue$2(object, key, value) {
|
15382 | if (key == "__proto__" && defineProperty) {
|
15383 | defineProperty(object, key, {
|
15384 | "configurable": true,
|
15385 | "enumerable": true,
|
15386 | "value": value,
|
15387 | "writable": true
|
15388 | });
|
15389 | } else {
|
15390 | object[key] = value;
|
15391 | }
|
15392 | }
|
15393 | var _baseAssignValue = baseAssignValue$2;
|
15394 | var baseAssignValue$1 = _baseAssignValue, eq = eq_1;
|
15395 | var objectProto$2 = Object.prototype;
|
15396 | var hasOwnProperty$2 = objectProto$2.hasOwnProperty;
|
15397 | function assignValue$2(object, key, value) {
|
15398 | var objValue = object[key];
|
15399 | if (!(hasOwnProperty$2.call(object, key) && eq(objValue, value)) || value === void 0 && !(key in object)) {
|
15400 | baseAssignValue$1(object, key, value);
|
15401 | }
|
15402 | }
|
15403 | var _assignValue = assignValue$2;
|
15404 | var assignValue$1 = _assignValue, baseAssignValue = _baseAssignValue;
|
15405 | function copyObject$4(source, props, object, customizer) {
|
15406 | var isNew = !object;
|
15407 | object || (object = {});
|
15408 | var index2 = -1, length = props.length;
|
15409 | while (++index2 < length) {
|
15410 | var key = props[index2];
|
15411 | var newValue = customizer ? customizer(object[key], source[key], key, object, source) : void 0;
|
15412 | if (newValue === void 0) {
|
15413 | newValue = source[key];
|
15414 | }
|
15415 | if (isNew) {
|
15416 | baseAssignValue(object, key, newValue);
|
15417 | } else {
|
15418 | assignValue$1(object, key, newValue);
|
15419 | }
|
15420 | }
|
15421 | return object;
|
15422 | }
|
15423 | var _copyObject = copyObject$4;
|
15424 | var copyObject$3 = _copyObject, keys$1 = keys_1;
|
15425 | function baseAssign$1(object, source) {
|
15426 | return object && copyObject$3(source, keys$1(source), object);
|
15427 | }
|
15428 | var _baseAssign = baseAssign$1;
|
15429 | function nativeKeysIn$1(object) {
|
15430 | var result = [];
|
15431 | if (object != null) {
|
15432 | for (var key in Object(object)) {
|
15433 | result.push(key);
|
15434 | }
|
15435 | }
|
15436 | return result;
|
15437 | }
|
15438 | var _nativeKeysIn = nativeKeysIn$1;
|
15439 | var isObject$2 = isObject_1, isPrototype$1 = _isPrototype, nativeKeysIn = _nativeKeysIn;
|
15440 | var objectProto$1 = Object.prototype;
|
15441 | var hasOwnProperty$1 = objectProto$1.hasOwnProperty;
|
15442 | function baseKeysIn$1(object) {
|
15443 | if (!isObject$2(object)) {
|
15444 | return nativeKeysIn(object);
|
15445 | }
|
15446 | var isProto = isPrototype$1(object), result = [];
|
15447 | for (var key in object) {
|
15448 | if (!(key == "constructor" && (isProto || !hasOwnProperty$1.call(object, key)))) {
|
15449 | result.push(key);
|
15450 | }
|
15451 | }
|
15452 | return result;
|
15453 | }
|
15454 | var _baseKeysIn = baseKeysIn$1;
|
15455 | var arrayLikeKeys = _arrayLikeKeys, baseKeysIn = _baseKeysIn, isArrayLike = isArrayLike_1;
|
15456 | function keysIn$3(object) {
|
15457 | return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object);
|
15458 | }
|
15459 | var keysIn_1 = keysIn$3;
|
15460 | var copyObject$2 = _copyObject, keysIn$2 = keysIn_1;
|
15461 | function baseAssignIn$1(object, source) {
|
15462 | return object && copyObject$2(source, keysIn$2(source), object);
|
15463 | }
|
15464 | var _baseAssignIn = baseAssignIn$1;
|
15465 | var _cloneBuffer = { exports: {} };
|
15466 | (function(module2, exports2) {
|
15467 | var root2 = _root;
|
15468 | var freeExports2 = exports2 && !exports2.nodeType && exports2;
|
15469 | var freeModule2 = freeExports2 && true && module2 && !module2.nodeType && module2;
|
15470 | var moduleExports2 = freeModule2 && freeModule2.exports === freeExports2;
|
15471 | var Buffer3 = moduleExports2 ? root2.Buffer : void 0, allocUnsafe2 = Buffer3 ? Buffer3.allocUnsafe : void 0;
|
15472 | function cloneBuffer2(buffer, isDeep) {
|
15473 | if (isDeep) {
|
15474 | return buffer.slice();
|
15475 | }
|
15476 | var length = buffer.length, result = allocUnsafe2 ? allocUnsafe2(length) : new buffer.constructor(length);
|
15477 | buffer.copy(result);
|
15478 | return result;
|
15479 | }
|
15480 | module2.exports = cloneBuffer2;
|
15481 | })(_cloneBuffer, _cloneBuffer.exports);
|
15482 | function copyArray$1(source, array) {
|
15483 | var index2 = -1, length = source.length;
|
15484 | array || (array = Array(length));
|
15485 | while (++index2 < length) {
|
15486 | array[index2] = source[index2];
|
15487 | }
|
15488 | return array;
|
15489 | }
|
15490 | var _copyArray = copyArray$1;
|
15491 | var copyObject$1 = _copyObject, getSymbols$1 = _getSymbols;
|
15492 | function copySymbols$1(source, object) {
|
15493 | return copyObject$1(source, getSymbols$1(source), object);
|
15494 | }
|
15495 | var _copySymbols = copySymbols$1;
|
15496 | var arrayPush = _arrayPush, getPrototype$1 = _getPrototype, getSymbols = _getSymbols, stubArray = stubArray_1;
|
15497 | var nativeGetSymbols = Object.getOwnPropertySymbols;
|
15498 | var getSymbolsIn$2 = !nativeGetSymbols ? stubArray : function(object) {
|
15499 | var result = [];
|
15500 | while (object) {
|
15501 | arrayPush(result, getSymbols(object));
|
15502 | object = getPrototype$1(object);
|
15503 | }
|
15504 | return result;
|
15505 | };
|
15506 | var _getSymbolsIn = getSymbolsIn$2;
|
15507 | var copyObject = _copyObject, getSymbolsIn$1 = _getSymbolsIn;
|
15508 | function copySymbolsIn$1(source, object) {
|
15509 | return copyObject(source, getSymbolsIn$1(source), object);
|
15510 | }
|
15511 | var _copySymbolsIn = copySymbolsIn$1;
|
15512 | var baseGetAllKeys = _baseGetAllKeys, getSymbolsIn = _getSymbolsIn, keysIn$1 = keysIn_1;
|
15513 | function getAllKeysIn$1(object) {
|
15514 | return baseGetAllKeys(object, keysIn$1, getSymbolsIn);
|
15515 | }
|
15516 | var _getAllKeysIn = getAllKeysIn$1;
|
15517 | var objectProto = Object.prototype;
|
15518 | var hasOwnProperty = objectProto.hasOwnProperty;
|
15519 | function initCloneArray$1(array) {
|
15520 | var length = array.length, result = new array.constructor(length);
|
15521 | if (length && typeof array[0] == "string" && hasOwnProperty.call(array, "index")) {
|
15522 | result.index = array.index;
|
15523 | result.input = array.input;
|
15524 | }
|
15525 | return result;
|
15526 | }
|
15527 | var _initCloneArray = initCloneArray$1;
|
15528 | var Uint8Array$1 = _Uint8Array;
|
15529 | function cloneArrayBuffer$3(arrayBuffer) {
|
15530 | var result = new arrayBuffer.constructor(arrayBuffer.byteLength);
|
15531 | new Uint8Array$1(result).set(new Uint8Array$1(arrayBuffer));
|
15532 | return result;
|
15533 | }
|
15534 | var _cloneArrayBuffer = cloneArrayBuffer$3;
|
15535 | var cloneArrayBuffer$2 = _cloneArrayBuffer;
|
15536 | function cloneDataView$1(dataView, isDeep) {
|
15537 | var buffer = isDeep ? cloneArrayBuffer$2(dataView.buffer) : dataView.buffer;
|
15538 | return new dataView.constructor(buffer, dataView.byteOffset, dataView.byteLength);
|
15539 | }
|
15540 | var _cloneDataView = cloneDataView$1;
|
15541 | var reFlags = /\w*$/;
|
15542 | function cloneRegExp$1(regexp) {
|
15543 | var result = new regexp.constructor(regexp.source, reFlags.exec(regexp));
|
15544 | result.lastIndex = regexp.lastIndex;
|
15545 | return result;
|
15546 | }
|
15547 | var _cloneRegExp = cloneRegExp$1;
|
15548 | var Symbol$1 = _Symbol;
|
15549 | var symbolProto = Symbol$1 ? Symbol$1.prototype : void 0, symbolValueOf = symbolProto ? symbolProto.valueOf : void 0;
|
15550 | function cloneSymbol$1(symbol) {
|
15551 | return symbolValueOf ? Object(symbolValueOf.call(symbol)) : {};
|
15552 | }
|
15553 | var _cloneSymbol = cloneSymbol$1;
|
15554 | var cloneArrayBuffer$1 = _cloneArrayBuffer;
|
15555 | function cloneTypedArray$1(typedArray, isDeep) {
|
15556 | var buffer = isDeep ? cloneArrayBuffer$1(typedArray.buffer) : typedArray.buffer;
|
15557 | return new typedArray.constructor(buffer, typedArray.byteOffset, typedArray.length);
|
15558 | }
|
15559 | var _cloneTypedArray = cloneTypedArray$1;
|
15560 | var cloneArrayBuffer = _cloneArrayBuffer, cloneDataView = _cloneDataView, cloneRegExp = _cloneRegExp, cloneSymbol = _cloneSymbol, cloneTypedArray = _cloneTypedArray;
|
15561 | var boolTag$1 = "[object Boolean]", dateTag$1 = "[object Date]", mapTag$2 = "[object Map]", numberTag$1 = "[object Number]", regexpTag$1 = "[object RegExp]", setTag$2 = "[object Set]", stringTag$1 = "[object String]", symbolTag$1 = "[object Symbol]";
|
15562 | var arrayBufferTag$1 = "[object ArrayBuffer]", dataViewTag$1 = "[object DataView]", float32Tag$1 = "[object Float32Array]", float64Tag$1 = "[object Float64Array]", int8Tag$1 = "[object Int8Array]", int16Tag$1 = "[object Int16Array]", int32Tag$1 = "[object Int32Array]", uint8Tag$1 = "[object Uint8Array]", uint8ClampedTag$1 = "[object Uint8ClampedArray]", uint16Tag$1 = "[object Uint16Array]", uint32Tag$1 = "[object Uint32Array]";
|
15563 | function initCloneByTag$1(object, tag, isDeep) {
|
15564 | var Ctor = object.constructor;
|
15565 | switch (tag) {
|
15566 | case arrayBufferTag$1:
|
15567 | return cloneArrayBuffer(object);
|
15568 | case boolTag$1:
|
15569 | case dateTag$1:
|
15570 | return new Ctor(+object);
|
15571 | case dataViewTag$1:
|
15572 | return cloneDataView(object, isDeep);
|
15573 | case float32Tag$1:
|
15574 | case float64Tag$1:
|
15575 | case int8Tag$1:
|
15576 | case int16Tag$1:
|
15577 | case int32Tag$1:
|
15578 | case uint8Tag$1:
|
15579 | case uint8ClampedTag$1:
|
15580 | case uint16Tag$1:
|
15581 | case uint32Tag$1:
|
15582 | return cloneTypedArray(object, isDeep);
|
15583 | case mapTag$2:
|
15584 | return new Ctor();
|
15585 | case numberTag$1:
|
15586 | case stringTag$1:
|
15587 | return new Ctor(object);
|
15588 | case regexpTag$1:
|
15589 | return cloneRegExp(object);
|
15590 | case setTag$2:
|
15591 | return new Ctor();
|
15592 | case symbolTag$1:
|
15593 | return cloneSymbol(object);
|
15594 | }
|
15595 | }
|
15596 | var _initCloneByTag = initCloneByTag$1;
|
15597 | var isObject$1 = isObject_1;
|
15598 | var objectCreate = Object.create;
|
15599 | var baseCreate$1 = function() {
|
15600 | function object() {
|
15601 | }
|
15602 | return function(proto) {
|
15603 | if (!isObject$1(proto)) {
|
15604 | return {};
|
15605 | }
|
15606 | if (objectCreate) {
|
15607 | return objectCreate(proto);
|
15608 | }
|
15609 | object.prototype = proto;
|
15610 | var result = new object();
|
15611 | object.prototype = void 0;
|
15612 | return result;
|
15613 | };
|
15614 | }();
|
15615 | var _baseCreate = baseCreate$1;
|
15616 | var baseCreate = _baseCreate, getPrototype = _getPrototype, isPrototype = _isPrototype;
|
15617 | function initCloneObject$1(object) {
|
15618 | return typeof object.constructor == "function" && !isPrototype(object) ? baseCreate(getPrototype(object)) : {};
|
15619 | }
|
15620 | var _initCloneObject = initCloneObject$1;
|
15621 | var getTag$2 = _getTag, isObjectLike$1 = isObjectLike_1;
|
15622 | var mapTag$1 = "[object Map]";
|
15623 | function baseIsMap$1(value) {
|
15624 | return isObjectLike$1(value) && getTag$2(value) == mapTag$1;
|
15625 | }
|
15626 | var _baseIsMap = baseIsMap$1;
|
15627 | var baseIsMap = _baseIsMap, baseUnary$1 = _baseUnary, nodeUtil$1 = _nodeUtil.exports;
|
15628 | var nodeIsMap = nodeUtil$1 && nodeUtil$1.isMap;
|
15629 | var isMap$1 = nodeIsMap ? baseUnary$1(nodeIsMap) : baseIsMap;
|
15630 | var isMap_1 = isMap$1;
|
15631 | var getTag$1 = _getTag, isObjectLike = isObjectLike_1;
|
15632 | var setTag$1 = "[object Set]";
|
15633 | function baseIsSet$1(value) {
|
15634 | return isObjectLike(value) && getTag$1(value) == setTag$1;
|
15635 | }
|
15636 | var _baseIsSet = baseIsSet$1;
|
15637 | var baseIsSet = _baseIsSet, baseUnary = _baseUnary, nodeUtil = _nodeUtil.exports;
|
15638 | var nodeIsSet = nodeUtil && nodeUtil.isSet;
|
15639 | var isSet$1 = nodeIsSet ? baseUnary(nodeIsSet) : baseIsSet;
|
15640 | var isSet_1 = isSet$1;
|
15641 | var Stack = _Stack, arrayEach = _arrayEach, assignValue = _assignValue, baseAssign = _baseAssign, baseAssignIn = _baseAssignIn, cloneBuffer = _cloneBuffer.exports, copyArray = _copyArray, copySymbols = _copySymbols, copySymbolsIn = _copySymbolsIn, getAllKeys = _getAllKeys, getAllKeysIn = _getAllKeysIn, getTag = _getTag, initCloneArray = _initCloneArray, initCloneByTag = _initCloneByTag, initCloneObject = _initCloneObject, isArray = isArray_1, isBuffer = isBuffer$3.exports, isMap = isMap_1, isObject = isObject_1, isSet = isSet_1, keys = keys_1, keysIn = keysIn_1;
|
15642 | var CLONE_DEEP_FLAG$1 = 1, CLONE_FLAT_FLAG = 2, CLONE_SYMBOLS_FLAG$1 = 4;
|
15643 | var argsTag = "[object Arguments]", arrayTag = "[object Array]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", objectTag = "[object Object]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag = "[object Symbol]", weakMapTag = "[object WeakMap]";
|
15644 | var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
|
15645 | var cloneableTags = {};
|
15646 | cloneableTags[argsTag] = cloneableTags[arrayTag] = cloneableTags[arrayBufferTag] = cloneableTags[dataViewTag] = cloneableTags[boolTag] = cloneableTags[dateTag] = cloneableTags[float32Tag] = cloneableTags[float64Tag] = cloneableTags[int8Tag] = cloneableTags[int16Tag] = cloneableTags[int32Tag] = cloneableTags[mapTag] = cloneableTags[numberTag] = cloneableTags[objectTag] = cloneableTags[regexpTag] = cloneableTags[setTag] = cloneableTags[stringTag] = cloneableTags[symbolTag] = cloneableTags[uint8Tag] = cloneableTags[uint8ClampedTag] = cloneableTags[uint16Tag] = cloneableTags[uint32Tag] = true;
|
15647 | cloneableTags[errorTag] = cloneableTags[funcTag] = cloneableTags[weakMapTag] = false;
|
15648 | function baseClone$1(value, bitmask, customizer, key, object, stack) {
|
15649 | var result, isDeep = bitmask & CLONE_DEEP_FLAG$1, isFlat = bitmask & CLONE_FLAT_FLAG, isFull = bitmask & CLONE_SYMBOLS_FLAG$1;
|
15650 | if (customizer) {
|
15651 | result = object ? customizer(value, key, object, stack) : customizer(value);
|
15652 | }
|
15653 | if (result !== void 0) {
|
15654 | return result;
|
15655 | }
|
15656 | if (!isObject(value)) {
|
15657 | return value;
|
15658 | }
|
15659 | var isArr = isArray(value);
|
15660 | if (isArr) {
|
15661 | result = initCloneArray(value);
|
15662 | if (!isDeep) {
|
15663 | return copyArray(value, result);
|
15664 | }
|
15665 | } else {
|
15666 | var tag = getTag(value), isFunc = tag == funcTag || tag == genTag;
|
15667 | if (isBuffer(value)) {
|
15668 | return cloneBuffer(value, isDeep);
|
15669 | }
|
15670 | if (tag == objectTag || tag == argsTag || isFunc && !object) {
|
15671 | result = isFlat || isFunc ? {} : initCloneObject(value);
|
15672 | if (!isDeep) {
|
15673 | return isFlat ? copySymbolsIn(value, baseAssignIn(result, value)) : copySymbols(value, baseAssign(result, value));
|
15674 | }
|
15675 | } else {
|
15676 | if (!cloneableTags[tag]) {
|
15677 | return object ? value : {};
|
15678 | }
|
15679 | result = initCloneByTag(value, tag, isDeep);
|
15680 | }
|
15681 | }
|
15682 | stack || (stack = new Stack());
|
15683 | var stacked = stack.get(value);
|
15684 | if (stacked) {
|
15685 | return stacked;
|
15686 | }
|
15687 | stack.set(value, result);
|
15688 | if (isSet(value)) {
|
15689 | value.forEach(function(subValue) {
|
15690 | result.add(baseClone$1(subValue, bitmask, customizer, subValue, value, stack));
|
15691 | });
|
15692 | } else if (isMap(value)) {
|
15693 | value.forEach(function(subValue, key2) {
|
15694 | result.set(key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
15695 | });
|
15696 | }
|
15697 | var keysFunc = isFull ? isFlat ? getAllKeysIn : getAllKeys : isFlat ? keysIn : keys;
|
15698 | var props = isArr ? void 0 : keysFunc(value);
|
15699 | arrayEach(props || value, function(subValue, key2) {
|
15700 | if (props) {
|
15701 | key2 = subValue;
|
15702 | subValue = value[key2];
|
15703 | }
|
15704 | assignValue(result, key2, baseClone$1(subValue, bitmask, customizer, key2, value, stack));
|
15705 | });
|
15706 | return result;
|
15707 | }
|
15708 | var _baseClone = baseClone$1;
|
15709 | var baseClone = _baseClone;
|
15710 | var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
|
15711 | function cloneDeep(value) {
|
15712 | return baseClone(value, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
|
15713 | }
|
15714 | var cloneDeep_1 = cloneDeep;
|
15715 | Object.defineProperty(mergeClasses$1, "__esModule", {
|
15716 | value: true
|
15717 | });
|
15718 | mergeClasses$1.mergeClasses = void 0;
|
15719 | var _forOwn2$1 = forOwn_1;
|
15720 | var _forOwn3$1 = _interopRequireDefault$6(_forOwn2$1);
|
15721 | var _cloneDeep2 = cloneDeep_1;
|
15722 | var _cloneDeep3 = _interopRequireDefault$6(_cloneDeep2);
|
15723 | var _extends$e = Object.assign || function(target) {
|
15724 | for (var i = 1; i < arguments.length; i++) {
|
15725 | var source = arguments[i];
|
15726 | for (var key in source) {
|
15727 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
15728 | target[key] = source[key];
|
15729 | }
|
15730 | }
|
15731 | }
|
15732 | return target;
|
15733 | };
|
15734 | function _interopRequireDefault$6(obj) {
|
15735 | return obj && obj.__esModule ? obj : { default: obj };
|
15736 | }
|
15737 | var mergeClasses = mergeClasses$1.mergeClasses = function mergeClasses2(classes) {
|
15738 | var activeNames = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
|
15739 | var styles = classes.default && (0, _cloneDeep3.default)(classes.default) || {};
|
15740 | activeNames.map(function(name) {
|
15741 | var toMerge = classes[name];
|
15742 | if (toMerge) {
|
15743 | (0, _forOwn3$1.default)(toMerge, function(value, key) {
|
15744 | if (!styles[key]) {
|
15745 | styles[key] = {};
|
15746 | }
|
15747 | styles[key] = _extends$e({}, styles[key], toMerge[key]);
|
15748 | });
|
15749 | }
|
15750 | return name;
|
15751 | });
|
15752 | return styles;
|
15753 | };
|
15754 | mergeClasses$1.default = mergeClasses;
|
15755 | var autoprefix$1 = {};
|
15756 | Object.defineProperty(autoprefix$1, "__esModule", {
|
15757 | value: true
|
15758 | });
|
15759 | autoprefix$1.autoprefix = void 0;
|
15760 | var _forOwn2 = forOwn_1;
|
15761 | var _forOwn3 = _interopRequireDefault$5(_forOwn2);
|
15762 | var _extends$d = Object.assign || function(target) {
|
15763 | for (var i = 1; i < arguments.length; i++) {
|
15764 | var source = arguments[i];
|
15765 | for (var key in source) {
|
15766 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
15767 | target[key] = source[key];
|
15768 | }
|
15769 | }
|
15770 | }
|
15771 | return target;
|
15772 | };
|
15773 | function _interopRequireDefault$5(obj) {
|
15774 | return obj && obj.__esModule ? obj : { default: obj };
|
15775 | }
|
15776 | var transforms = {
|
15777 | borderRadius: function borderRadius(value) {
|
15778 | return {
|
15779 | msBorderRadius: value,
|
15780 | MozBorderRadius: value,
|
15781 | OBorderRadius: value,
|
15782 | WebkitBorderRadius: value,
|
15783 | borderRadius: value
|
15784 | };
|
15785 | },
|
15786 | boxShadow: function boxShadow(value) {
|
15787 | return {
|
15788 | msBoxShadow: value,
|
15789 | MozBoxShadow: value,
|
15790 | OBoxShadow: value,
|
15791 | WebkitBoxShadow: value,
|
15792 | boxShadow: value
|
15793 | };
|
15794 | },
|
15795 | userSelect: function userSelect(value) {
|
15796 | return {
|
15797 | WebkitTouchCallout: value,
|
15798 | KhtmlUserSelect: value,
|
15799 | MozUserSelect: value,
|
15800 | msUserSelect: value,
|
15801 | WebkitUserSelect: value,
|
15802 | userSelect: value
|
15803 | };
|
15804 | },
|
15805 | flex: function flex(value) {
|
15806 | return {
|
15807 | WebkitBoxFlex: value,
|
15808 | MozBoxFlex: value,
|
15809 | WebkitFlex: value,
|
15810 | msFlex: value,
|
15811 | flex: value
|
15812 | };
|
15813 | },
|
15814 | flexBasis: function flexBasis(value) {
|
15815 | return {
|
15816 | WebkitFlexBasis: value,
|
15817 | flexBasis: value
|
15818 | };
|
15819 | },
|
15820 | justifyContent: function justifyContent(value) {
|
15821 | return {
|
15822 | WebkitJustifyContent: value,
|
15823 | justifyContent: value
|
15824 | };
|
15825 | },
|
15826 | transition: function transition(value) {
|
15827 | return {
|
15828 | msTransition: value,
|
15829 | MozTransition: value,
|
15830 | OTransition: value,
|
15831 | WebkitTransition: value,
|
15832 | transition: value
|
15833 | };
|
15834 | },
|
15835 | transform: function transform(value) {
|
15836 | return {
|
15837 | msTransform: value,
|
15838 | MozTransform: value,
|
15839 | OTransform: value,
|
15840 | WebkitTransform: value,
|
15841 | transform: value
|
15842 | };
|
15843 | },
|
15844 | absolute: function absolute(value) {
|
15845 | var direction = value && value.split(" ");
|
15846 | return {
|
15847 | position: "absolute",
|
15848 | top: direction && direction[0],
|
15849 | right: direction && direction[1],
|
15850 | bottom: direction && direction[2],
|
15851 | left: direction && direction[3]
|
15852 | };
|
15853 | },
|
15854 | extend: function extend2(name, otherElementStyles) {
|
15855 | var otherStyle = otherElementStyles[name];
|
15856 | if (otherStyle) {
|
15857 | return otherStyle;
|
15858 | }
|
15859 | return {
|
15860 | "extend": name
|
15861 | };
|
15862 | }
|
15863 | };
|
15864 | var autoprefix = autoprefix$1.autoprefix = function autoprefix2(elements) {
|
15865 | var prefixed = {};
|
15866 | (0, _forOwn3.default)(elements, function(styles, element) {
|
15867 | var expanded = {};
|
15868 | (0, _forOwn3.default)(styles, function(value, key) {
|
15869 | var transform2 = transforms[key];
|
15870 | if (transform2) {
|
15871 | expanded = _extends$d({}, expanded, transform2(value));
|
15872 | } else {
|
15873 | expanded[key] = value;
|
15874 | }
|
15875 | });
|
15876 | prefixed[element] = expanded;
|
15877 | });
|
15878 | return prefixed;
|
15879 | };
|
15880 | autoprefix$1.default = autoprefix;
|
15881 | var hover$1 = {};
|
15882 | Object.defineProperty(hover$1, "__esModule", {
|
15883 | value: true
|
15884 | });
|
15885 | hover$1.hover = void 0;
|
15886 | var _extends$c = Object.assign || function(target) {
|
15887 | for (var i = 1; i < arguments.length; i++) {
|
15888 | var source = arguments[i];
|
15889 | for (var key in source) {
|
15890 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
15891 | target[key] = source[key];
|
15892 | }
|
15893 | }
|
15894 | }
|
15895 | return target;
|
15896 | };
|
15897 | var _react$3 = React__default;
|
15898 | var _react2$3 = _interopRequireDefault$4(_react$3);
|
15899 | function _interopRequireDefault$4(obj) {
|
15900 | return obj && obj.__esModule ? obj : { default: obj };
|
15901 | }
|
15902 | function _classCallCheck$9(instance, Constructor) {
|
15903 | if (!(instance instanceof Constructor)) {
|
15904 | throw new TypeError("Cannot call a class as a function");
|
15905 | }
|
15906 | }
|
15907 | function _possibleConstructorReturn$9(self2, call2) {
|
15908 | if (!self2) {
|
15909 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
15910 | }
|
15911 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
15912 | }
|
15913 | function _inherits$9(subClass, superClass) {
|
15914 | if (typeof superClass !== "function" && superClass !== null) {
|
15915 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
15916 | }
|
15917 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
15918 | if (superClass)
|
15919 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
15920 | }
|
15921 | var hover = hover$1.hover = function hover2(Component2) {
|
15922 | var Span = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "span";
|
15923 | return function(_React$Component) {
|
15924 | _inherits$9(Hover, _React$Component);
|
15925 | function Hover() {
|
15926 | var _ref;
|
15927 | var _temp, _this, _ret;
|
15928 | _classCallCheck$9(this, Hover);
|
15929 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
15930 | args[_key] = arguments[_key];
|
15931 | }
|
15932 | return _ret = (_temp = (_this = _possibleConstructorReturn$9(this, (_ref = Hover.__proto__ || Object.getPrototypeOf(Hover)).call.apply(_ref, [this].concat(args))), _this), _this.state = { hover: false }, _this.handleMouseOver = function() {
|
15933 | return _this.setState({ hover: true });
|
15934 | }, _this.handleMouseOut = function() {
|
15935 | return _this.setState({ hover: false });
|
15936 | }, _this.render = function() {
|
15937 | return _react2$3.default.createElement(Span, { onMouseOver: _this.handleMouseOver, onMouseOut: _this.handleMouseOut }, _react2$3.default.createElement(Component2, _extends$c({}, _this.props, _this.state)));
|
15938 | }, _temp), _possibleConstructorReturn$9(_this, _ret);
|
15939 | }
|
15940 | return Hover;
|
15941 | }(_react2$3.default.Component);
|
15942 | };
|
15943 | hover$1.default = hover;
|
15944 | var active$1 = {};
|
15945 | Object.defineProperty(active$1, "__esModule", {
|
15946 | value: true
|
15947 | });
|
15948 | active$1.active = void 0;
|
15949 | var _extends$b = Object.assign || function(target) {
|
15950 | for (var i = 1; i < arguments.length; i++) {
|
15951 | var source = arguments[i];
|
15952 | for (var key in source) {
|
15953 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
15954 | target[key] = source[key];
|
15955 | }
|
15956 | }
|
15957 | }
|
15958 | return target;
|
15959 | };
|
15960 | var _react$2 = React__default;
|
15961 | var _react2$2 = _interopRequireDefault$3(_react$2);
|
15962 | function _interopRequireDefault$3(obj) {
|
15963 | return obj && obj.__esModule ? obj : { default: obj };
|
15964 | }
|
15965 | function _classCallCheck$8(instance, Constructor) {
|
15966 | if (!(instance instanceof Constructor)) {
|
15967 | throw new TypeError("Cannot call a class as a function");
|
15968 | }
|
15969 | }
|
15970 | function _possibleConstructorReturn$8(self2, call2) {
|
15971 | if (!self2) {
|
15972 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
15973 | }
|
15974 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
15975 | }
|
15976 | function _inherits$8(subClass, superClass) {
|
15977 | if (typeof superClass !== "function" && superClass !== null) {
|
15978 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
15979 | }
|
15980 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
15981 | if (superClass)
|
15982 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
15983 | }
|
15984 | var active = active$1.active = function active2(Component2) {
|
15985 | var Span = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "span";
|
15986 | return function(_React$Component) {
|
15987 | _inherits$8(Active, _React$Component);
|
15988 | function Active() {
|
15989 | var _ref;
|
15990 | var _temp, _this, _ret;
|
15991 | _classCallCheck$8(this, Active);
|
15992 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
15993 | args[_key] = arguments[_key];
|
15994 | }
|
15995 | return _ret = (_temp = (_this = _possibleConstructorReturn$8(this, (_ref = Active.__proto__ || Object.getPrototypeOf(Active)).call.apply(_ref, [this].concat(args))), _this), _this.state = { active: false }, _this.handleMouseDown = function() {
|
15996 | return _this.setState({ active: true });
|
15997 | }, _this.handleMouseUp = function() {
|
15998 | return _this.setState({ active: false });
|
15999 | }, _this.render = function() {
|
16000 | return _react2$2.default.createElement(Span, { onMouseDown: _this.handleMouseDown, onMouseUp: _this.handleMouseUp }, _react2$2.default.createElement(Component2, _extends$b({}, _this.props, _this.state)));
|
16001 | }, _temp), _possibleConstructorReturn$8(_this, _ret);
|
16002 | }
|
16003 | return Active;
|
16004 | }(_react2$2.default.Component);
|
16005 | };
|
16006 | active$1.default = active;
|
16007 | var loop = {};
|
16008 | Object.defineProperty(loop, "__esModule", {
|
16009 | value: true
|
16010 | });
|
16011 | var loopable = function loopable2(i, length) {
|
16012 | var props = {};
|
16013 | var setProp = function setProp2(name) {
|
16014 | var value = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
16015 | props[name] = value;
|
16016 | };
|
16017 | i === 0 && setProp("first-child");
|
16018 | i === length - 1 && setProp("last-child");
|
16019 | (i === 0 || i % 2 === 0) && setProp("even");
|
16020 | Math.abs(i % 2) === 1 && setProp("odd");
|
16021 | setProp("nth-child", i);
|
16022 | return props;
|
16023 | };
|
16024 | loop.default = loopable;
|
16025 | Object.defineProperty(lib, "__esModule", {
|
16026 | value: true
|
16027 | });
|
16028 | lib.ReactCSS = lib.loop = lib.handleActive = handleHover = lib.handleHover = lib.hover = void 0;
|
16029 | var _flattenNames = flattenNames$1;
|
16030 | var _flattenNames2 = _interopRequireDefault$2(_flattenNames);
|
16031 | var _mergeClasses = mergeClasses$1;
|
16032 | var _mergeClasses2 = _interopRequireDefault$2(_mergeClasses);
|
16033 | var _autoprefix = autoprefix$1;
|
16034 | var _autoprefix2 = _interopRequireDefault$2(_autoprefix);
|
16035 | var _hover2 = hover$1;
|
16036 | var _hover3 = _interopRequireDefault$2(_hover2);
|
16037 | var _active = active$1;
|
16038 | var _active2 = _interopRequireDefault$2(_active);
|
16039 | var _loop2 = loop;
|
16040 | var _loop3 = _interopRequireDefault$2(_loop2);
|
16041 | function _interopRequireDefault$2(obj) {
|
16042 | return obj && obj.__esModule ? obj : { default: obj };
|
16043 | }
|
16044 | lib.hover = _hover3.default;
|
16045 | var handleHover = lib.handleHover = _hover3.default;
|
16046 | lib.handleActive = _active2.default;
|
16047 | lib.loop = _loop3.default;
|
16048 | var ReactCSS = lib.ReactCSS = function ReactCSS2(classes) {
|
16049 | for (var _len = arguments.length, activations = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
16050 | activations[_key - 1] = arguments[_key];
|
16051 | }
|
16052 | var activeNames = (0, _flattenNames2.default)(activations);
|
16053 | var merged = (0, _mergeClasses2.default)(classes, activeNames);
|
16054 | return (0, _autoprefix2.default)(merged);
|
16055 | };
|
16056 | var _default$2 = lib.default = ReactCSS;
|
16057 | var calculateChange$2 = function calculateChange(e, hsl, direction, initialA, container) {
|
16058 | var containerWidth = container.clientWidth;
|
16059 | var containerHeight = container.clientHeight;
|
16060 | var x = typeof e.pageX === "number" ? e.pageX : e.touches[0].pageX;
|
16061 | var y = typeof e.pageY === "number" ? e.pageY : e.touches[0].pageY;
|
16062 | var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
|
16063 | var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
|
16064 | if (direction === "vertical") {
|
16065 | var a = void 0;
|
16066 | if (top < 0) {
|
16067 | a = 0;
|
16068 | } else if (top > containerHeight) {
|
16069 | a = 1;
|
16070 | } else {
|
16071 | a = Math.round(top * 100 / containerHeight) / 100;
|
16072 | }
|
16073 | if (hsl.a !== a) {
|
16074 | return {
|
16075 | h: hsl.h,
|
16076 | s: hsl.s,
|
16077 | l: hsl.l,
|
16078 | a,
|
16079 | source: "rgb"
|
16080 | };
|
16081 | }
|
16082 | } else {
|
16083 | var _a = void 0;
|
16084 | if (left < 0) {
|
16085 | _a = 0;
|
16086 | } else if (left > containerWidth) {
|
16087 | _a = 1;
|
16088 | } else {
|
16089 | _a = Math.round(left * 100 / containerWidth) / 100;
|
16090 | }
|
16091 | if (initialA !== _a) {
|
16092 | return {
|
16093 | h: hsl.h,
|
16094 | s: hsl.s,
|
16095 | l: hsl.l,
|
16096 | a: _a,
|
16097 | source: "rgb"
|
16098 | };
|
16099 | }
|
16100 | }
|
16101 | return null;
|
16102 | };
|
16103 | var checkboardCache = {};
|
16104 | var render = function render2(c1, c2, size, serverCanvas) {
|
16105 | if (typeof document === "undefined" && !serverCanvas) {
|
16106 | return null;
|
16107 | }
|
16108 | var canvas = serverCanvas ? new serverCanvas() : document.createElement("canvas");
|
16109 | canvas.width = size * 2;
|
16110 | canvas.height = size * 2;
|
16111 | var ctx = canvas.getContext("2d");
|
16112 | if (!ctx) {
|
16113 | return null;
|
16114 | }
|
16115 | ctx.fillStyle = c1;
|
16116 | ctx.fillRect(0, 0, canvas.width, canvas.height);
|
16117 | ctx.fillStyle = c2;
|
16118 | ctx.fillRect(0, 0, size, size);
|
16119 | ctx.translate(size, size);
|
16120 | ctx.fillRect(0, 0, size, size);
|
16121 | return canvas.toDataURL();
|
16122 | };
|
16123 | var get = function get2(c1, c2, size, serverCanvas) {
|
16124 | var key = c1 + "-" + c2 + "-" + size + (serverCanvas ? "-server" : "");
|
16125 | if (checkboardCache[key]) {
|
16126 | return checkboardCache[key];
|
16127 | }
|
16128 | var checkboard = render(c1, c2, size, serverCanvas);
|
16129 | checkboardCache[key] = checkboard;
|
16130 | return checkboard;
|
16131 | };
|
16132 | var _extends$a = Object.assign || function(target) {
|
16133 | for (var i = 1; i < arguments.length; i++) {
|
16134 | var source = arguments[i];
|
16135 | for (var key in source) {
|
16136 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
16137 | target[key] = source[key];
|
16138 | }
|
16139 | }
|
16140 | }
|
16141 | return target;
|
16142 | };
|
16143 | var Checkboard = function Checkboard2(_ref) {
|
16144 | var white = _ref.white, grey = _ref.grey, size = _ref.size, renderers = _ref.renderers, borderRadius2 = _ref.borderRadius, boxShadow2 = _ref.boxShadow, children = _ref.children;
|
16145 | var styles = _default$2({
|
16146 | "default": {
|
16147 | grid: {
|
16148 | borderRadius: borderRadius2,
|
16149 | boxShadow: boxShadow2,
|
16150 | absolute: "0px 0px 0px 0px",
|
16151 | background: "url(" + get(white, grey, size, renderers.canvas) + ") center left"
|
16152 | }
|
16153 | }
|
16154 | });
|
16155 | return isValidElement(children) ? React__default.cloneElement(children, _extends$a({}, children.props, { style: _extends$a({}, children.props.style, styles.grid) })) : React__default.createElement("div", { style: styles.grid });
|
16156 | };
|
16157 | Checkboard.defaultProps = {
|
16158 | size: 8,
|
16159 | white: "transparent",
|
16160 | grey: "rgba(0,0,0,.08)",
|
16161 | renderers: {}
|
16162 | };
|
16163 | var _extends$9 = Object.assign || function(target) {
|
16164 | for (var i = 1; i < arguments.length; i++) {
|
16165 | var source = arguments[i];
|
16166 | for (var key in source) {
|
16167 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
16168 | target[key] = source[key];
|
16169 | }
|
16170 | }
|
16171 | }
|
16172 | return target;
|
16173 | };
|
16174 | var _createClass$7 = function() {
|
16175 | function defineProperties(target, props) {
|
16176 | for (var i = 0; i < props.length; i++) {
|
16177 | var descriptor = props[i];
|
16178 | descriptor.enumerable = descriptor.enumerable || false;
|
16179 | descriptor.configurable = true;
|
16180 | if ("value" in descriptor)
|
16181 | descriptor.writable = true;
|
16182 | Object.defineProperty(target, descriptor.key, descriptor);
|
16183 | }
|
16184 | }
|
16185 | return function(Constructor, protoProps, staticProps) {
|
16186 | if (protoProps)
|
16187 | defineProperties(Constructor.prototype, protoProps);
|
16188 | if (staticProps)
|
16189 | defineProperties(Constructor, staticProps);
|
16190 | return Constructor;
|
16191 | };
|
16192 | }();
|
16193 | function _classCallCheck$7(instance, Constructor) {
|
16194 | if (!(instance instanceof Constructor)) {
|
16195 | throw new TypeError("Cannot call a class as a function");
|
16196 | }
|
16197 | }
|
16198 | function _possibleConstructorReturn$7(self2, call2) {
|
16199 | if (!self2) {
|
16200 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
16201 | }
|
16202 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
16203 | }
|
16204 | function _inherits$7(subClass, superClass) {
|
16205 | if (typeof superClass !== "function" && superClass !== null) {
|
16206 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
16207 | }
|
16208 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
16209 | if (superClass)
|
16210 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
16211 | }
|
16212 | var Alpha = function(_ref) {
|
16213 | _inherits$7(Alpha2, _ref);
|
16214 | function Alpha2() {
|
16215 | var _ref2;
|
16216 | var _temp, _this, _ret;
|
16217 | _classCallCheck$7(this, Alpha2);
|
16218 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
16219 | args[_key] = arguments[_key];
|
16220 | }
|
16221 | return _ret = (_temp = (_this = _possibleConstructorReturn$7(this, (_ref2 = Alpha2.__proto__ || Object.getPrototypeOf(Alpha2)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function(e) {
|
16222 | var change = calculateChange$2(e, _this.props.hsl, _this.props.direction, _this.props.a, _this.container);
|
16223 | change && typeof _this.props.onChange === "function" && _this.props.onChange(change, e);
|
16224 | }, _this.handleMouseDown = function(e) {
|
16225 | _this.handleChange(e);
|
16226 | window.addEventListener("mousemove", _this.handleChange);
|
16227 | window.addEventListener("mouseup", _this.handleMouseUp);
|
16228 | }, _this.handleMouseUp = function() {
|
16229 | _this.unbindEventListeners();
|
16230 | }, _this.unbindEventListeners = function() {
|
16231 | window.removeEventListener("mousemove", _this.handleChange);
|
16232 | window.removeEventListener("mouseup", _this.handleMouseUp);
|
16233 | }, _temp), _possibleConstructorReturn$7(_this, _ret);
|
16234 | }
|
16235 | _createClass$7(Alpha2, [{
|
16236 | key: "componentWillUnmount",
|
16237 | value: function componentWillUnmount() {
|
16238 | this.unbindEventListeners();
|
16239 | }
|
16240 | }, {
|
16241 | key: "render",
|
16242 | value: function render3() {
|
16243 | var _this2 = this;
|
16244 | var rgb = this.props.rgb;
|
16245 | var styles = _default$2({
|
16246 | "default": {
|
16247 | alpha: {
|
16248 | absolute: "0px 0px 0px 0px",
|
16249 | borderRadius: this.props.radius
|
16250 | },
|
16251 | checkboard: {
|
16252 | absolute: "0px 0px 0px 0px",
|
16253 | overflow: "hidden",
|
16254 | borderRadius: this.props.radius
|
16255 | },
|
16256 | gradient: {
|
16257 | absolute: "0px 0px 0px 0px",
|
16258 | background: "linear-gradient(to right, rgba(" + rgb.r + "," + rgb.g + "," + rgb.b + ", 0) 0%,\n rgba(" + rgb.r + "," + rgb.g + "," + rgb.b + ", 1) 100%)",
|
16259 | boxShadow: this.props.shadow,
|
16260 | borderRadius: this.props.radius
|
16261 | },
|
16262 | container: {
|
16263 | position: "relative",
|
16264 | height: "100%",
|
16265 | margin: "0 3px"
|
16266 | },
|
16267 | pointer: {
|
16268 | position: "absolute",
|
16269 | left: rgb.a * 100 + "%"
|
16270 | },
|
16271 | slider: {
|
16272 | width: "4px",
|
16273 | borderRadius: "1px",
|
16274 | height: "8px",
|
16275 | boxShadow: "0 0 2px rgba(0, 0, 0, .6)",
|
16276 | background: "#fff",
|
16277 | marginTop: "1px",
|
16278 | transform: "translateX(-2px)"
|
16279 | }
|
16280 | },
|
16281 | "vertical": {
|
16282 | gradient: {
|
16283 | background: "linear-gradient(to bottom, rgba(" + rgb.r + "," + rgb.g + "," + rgb.b + ", 0) 0%,\n rgba(" + rgb.r + "," + rgb.g + "," + rgb.b + ", 1) 100%)"
|
16284 | },
|
16285 | pointer: {
|
16286 | left: 0,
|
16287 | top: rgb.a * 100 + "%"
|
16288 | }
|
16289 | },
|
16290 | "overwrite": _extends$9({}, this.props.style)
|
16291 | }, {
|
16292 | vertical: this.props.direction === "vertical",
|
16293 | overwrite: true
|
16294 | });
|
16295 | return React__default.createElement("div", { style: styles.alpha }, React__default.createElement("div", { style: styles.checkboard }, React__default.createElement(Checkboard, { renderers: this.props.renderers })), React__default.createElement("div", { style: styles.gradient }), React__default.createElement("div", {
|
16296 | style: styles.container,
|
16297 | ref: function ref(container) {
|
16298 | return _this2.container = container;
|
16299 | },
|
16300 | onMouseDown: this.handleMouseDown,
|
16301 | onTouchMove: this.handleChange,
|
16302 | onTouchStart: this.handleChange
|
16303 | }, React__default.createElement("div", { style: styles.pointer }, this.props.pointer ? React__default.createElement(this.props.pointer, this.props) : React__default.createElement("div", { style: styles.slider }))));
|
16304 | }
|
16305 | }]);
|
16306 | return Alpha2;
|
16307 | }(PureComponent || Component);
|
16308 | var _createClass$6 = function() {
|
16309 | function defineProperties(target, props) {
|
16310 | for (var i = 0; i < props.length; i++) {
|
16311 | var descriptor = props[i];
|
16312 | descriptor.enumerable = descriptor.enumerable || false;
|
16313 | descriptor.configurable = true;
|
16314 | if ("value" in descriptor)
|
16315 | descriptor.writable = true;
|
16316 | Object.defineProperty(target, descriptor.key, descriptor);
|
16317 | }
|
16318 | }
|
16319 | return function(Constructor, protoProps, staticProps) {
|
16320 | if (protoProps)
|
16321 | defineProperties(Constructor.prototype, protoProps);
|
16322 | if (staticProps)
|
16323 | defineProperties(Constructor, staticProps);
|
16324 | return Constructor;
|
16325 | };
|
16326 | }();
|
16327 | function _defineProperty(obj, key, value) {
|
16328 | if (key in obj) {
|
16329 | Object.defineProperty(obj, key, { value, enumerable: true, configurable: true, writable: true });
|
16330 | } else {
|
16331 | obj[key] = value;
|
16332 | }
|
16333 | return obj;
|
16334 | }
|
16335 | function _classCallCheck$6(instance, Constructor) {
|
16336 | if (!(instance instanceof Constructor)) {
|
16337 | throw new TypeError("Cannot call a class as a function");
|
16338 | }
|
16339 | }
|
16340 | function _possibleConstructorReturn$6(self2, call2) {
|
16341 | if (!self2) {
|
16342 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
16343 | }
|
16344 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
16345 | }
|
16346 | function _inherits$6(subClass, superClass) {
|
16347 | if (typeof superClass !== "function" && superClass !== null) {
|
16348 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
16349 | }
|
16350 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
16351 | if (superClass)
|
16352 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
16353 | }
|
16354 | var DEFAULT_ARROW_OFFSET = 1;
|
16355 | var UP_KEY_CODE = 38;
|
16356 | var DOWN_KEY_CODE = 40;
|
16357 | var VALID_KEY_CODES = [UP_KEY_CODE, DOWN_KEY_CODE];
|
16358 | var isValidKeyCode = function isValidKeyCode2(keyCode) {
|
16359 | return VALID_KEY_CODES.indexOf(keyCode) > -1;
|
16360 | };
|
16361 | var getNumberValue = function getNumberValue2(value) {
|
16362 | return Number(String(value).replace(/%/g, ""));
|
16363 | };
|
16364 | var idCounter = 1;
|
16365 | var EditableInput = function(_ref) {
|
16366 | _inherits$6(EditableInput2, _ref);
|
16367 | function EditableInput2(props) {
|
16368 | _classCallCheck$6(this, EditableInput2);
|
16369 | var _this = _possibleConstructorReturn$6(this, (EditableInput2.__proto__ || Object.getPrototypeOf(EditableInput2)).call(this));
|
16370 | _this.handleBlur = function() {
|
16371 | if (_this.state.blurValue) {
|
16372 | _this.setState({ value: _this.state.blurValue, blurValue: null });
|
16373 | }
|
16374 | };
|
16375 | _this.handleChange = function(e) {
|
16376 | _this.setUpdatedValue(e.target.value, e);
|
16377 | };
|
16378 | _this.handleKeyDown = function(e) {
|
16379 | var value = getNumberValue(e.target.value);
|
16380 | if (!isNaN(value) && isValidKeyCode(e.keyCode)) {
|
16381 | var offset = _this.getArrowOffset();
|
16382 | var updatedValue = e.keyCode === UP_KEY_CODE ? value + offset : value - offset;
|
16383 | _this.setUpdatedValue(updatedValue, e);
|
16384 | }
|
16385 | };
|
16386 | _this.handleDrag = function(e) {
|
16387 | if (_this.props.dragLabel) {
|
16388 | var newValue = Math.round(_this.props.value + e.movementX);
|
16389 | if (newValue >= 0 && newValue <= _this.props.dragMax) {
|
16390 | _this.props.onChange && _this.props.onChange(_this.getValueObjectWithLabel(newValue), e);
|
16391 | }
|
16392 | }
|
16393 | };
|
16394 | _this.handleMouseDown = function(e) {
|
16395 | if (_this.props.dragLabel) {
|
16396 | e.preventDefault();
|
16397 | _this.handleDrag(e);
|
16398 | window.addEventListener("mousemove", _this.handleDrag);
|
16399 | window.addEventListener("mouseup", _this.handleMouseUp);
|
16400 | }
|
16401 | };
|
16402 | _this.handleMouseUp = function() {
|
16403 | _this.unbindEventListeners();
|
16404 | };
|
16405 | _this.unbindEventListeners = function() {
|
16406 | window.removeEventListener("mousemove", _this.handleDrag);
|
16407 | window.removeEventListener("mouseup", _this.handleMouseUp);
|
16408 | };
|
16409 | _this.state = {
|
16410 | value: String(props.value).toUpperCase(),
|
16411 | blurValue: String(props.value).toUpperCase()
|
16412 | };
|
16413 | _this.inputId = "rc-editable-input-" + idCounter++;
|
16414 | return _this;
|
16415 | }
|
16416 | _createClass$6(EditableInput2, [{
|
16417 | key: "componentDidUpdate",
|
16418 | value: function componentDidUpdate(prevProps, prevState) {
|
16419 | if (this.props.value !== this.state.value && (prevProps.value !== this.props.value || prevState.value !== this.state.value)) {
|
16420 | if (this.input === document.activeElement) {
|
16421 | this.setState({ blurValue: String(this.props.value).toUpperCase() });
|
16422 | } else {
|
16423 | this.setState({ value: String(this.props.value).toUpperCase(), blurValue: !this.state.blurValue && String(this.props.value).toUpperCase() });
|
16424 | }
|
16425 | }
|
16426 | }
|
16427 | }, {
|
16428 | key: "componentWillUnmount",
|
16429 | value: function componentWillUnmount() {
|
16430 | this.unbindEventListeners();
|
16431 | }
|
16432 | }, {
|
16433 | key: "getValueObjectWithLabel",
|
16434 | value: function getValueObjectWithLabel(value) {
|
16435 | return _defineProperty({}, this.props.label, value);
|
16436 | }
|
16437 | }, {
|
16438 | key: "getArrowOffset",
|
16439 | value: function getArrowOffset() {
|
16440 | return this.props.arrowOffset || DEFAULT_ARROW_OFFSET;
|
16441 | }
|
16442 | }, {
|
16443 | key: "setUpdatedValue",
|
16444 | value: function setUpdatedValue(value, e) {
|
16445 | var onChangeValue = this.props.label ? this.getValueObjectWithLabel(value) : value;
|
16446 | this.props.onChange && this.props.onChange(onChangeValue, e);
|
16447 | this.setState({ value });
|
16448 | }
|
16449 | }, {
|
16450 | key: "render",
|
16451 | value: function render3() {
|
16452 | var _this2 = this;
|
16453 | var styles = _default$2({
|
16454 | "default": {
|
16455 | wrap: {
|
16456 | position: "relative"
|
16457 | }
|
16458 | },
|
16459 | "user-override": {
|
16460 | wrap: this.props.style && this.props.style.wrap ? this.props.style.wrap : {},
|
16461 | input: this.props.style && this.props.style.input ? this.props.style.input : {},
|
16462 | label: this.props.style && this.props.style.label ? this.props.style.label : {}
|
16463 | },
|
16464 | "dragLabel-true": {
|
16465 | label: {
|
16466 | cursor: "ew-resize"
|
16467 | }
|
16468 | }
|
16469 | }, {
|
16470 | "user-override": true
|
16471 | }, this.props);
|
16472 | return React__default.createElement("div", { style: styles.wrap }, React__default.createElement("input", {
|
16473 | id: this.inputId,
|
16474 | style: styles.input,
|
16475 | ref: function ref(input) {
|
16476 | return _this2.input = input;
|
16477 | },
|
16478 | value: this.state.value,
|
16479 | onKeyDown: this.handleKeyDown,
|
16480 | onChange: this.handleChange,
|
16481 | onBlur: this.handleBlur,
|
16482 | placeholder: this.props.placeholder,
|
16483 | spellCheck: "false"
|
16484 | }), this.props.label && !this.props.hideLabel ? React__default.createElement("label", {
|
16485 | htmlFor: this.inputId,
|
16486 | style: styles.label,
|
16487 | onMouseDown: this.handleMouseDown
|
16488 | }, this.props.label) : null);
|
16489 | }
|
16490 | }]);
|
16491 | return EditableInput2;
|
16492 | }(PureComponent || Component);
|
16493 | var calculateChange$1 = function calculateChange2(e, direction, hsl, container) {
|
16494 | var containerWidth = container.clientWidth;
|
16495 | var containerHeight = container.clientHeight;
|
16496 | var x = typeof e.pageX === "number" ? e.pageX : e.touches[0].pageX;
|
16497 | var y = typeof e.pageY === "number" ? e.pageY : e.touches[0].pageY;
|
16498 | var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
|
16499 | var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
|
16500 | if (direction === "vertical") {
|
16501 | var h = void 0;
|
16502 | if (top < 0) {
|
16503 | h = 359;
|
16504 | } else if (top > containerHeight) {
|
16505 | h = 0;
|
16506 | } else {
|
16507 | var percent = -(top * 100 / containerHeight) + 100;
|
16508 | h = 360 * percent / 100;
|
16509 | }
|
16510 | if (hsl.h !== h) {
|
16511 | return {
|
16512 | h,
|
16513 | s: hsl.s,
|
16514 | l: hsl.l,
|
16515 | a: hsl.a,
|
16516 | source: "hsl"
|
16517 | };
|
16518 | }
|
16519 | } else {
|
16520 | var _h = void 0;
|
16521 | if (left < 0) {
|
16522 | _h = 0;
|
16523 | } else if (left > containerWidth) {
|
16524 | _h = 359;
|
16525 | } else {
|
16526 | var _percent = left * 100 / containerWidth;
|
16527 | _h = 360 * _percent / 100;
|
16528 | }
|
16529 | if (hsl.h !== _h) {
|
16530 | return {
|
16531 | h: _h,
|
16532 | s: hsl.s,
|
16533 | l: hsl.l,
|
16534 | a: hsl.a,
|
16535 | source: "hsl"
|
16536 | };
|
16537 | }
|
16538 | }
|
16539 | return null;
|
16540 | };
|
16541 | var _createClass$5 = function() {
|
16542 | function defineProperties(target, props) {
|
16543 | for (var i = 0; i < props.length; i++) {
|
16544 | var descriptor = props[i];
|
16545 | descriptor.enumerable = descriptor.enumerable || false;
|
16546 | descriptor.configurable = true;
|
16547 | if ("value" in descriptor)
|
16548 | descriptor.writable = true;
|
16549 | Object.defineProperty(target, descriptor.key, descriptor);
|
16550 | }
|
16551 | }
|
16552 | return function(Constructor, protoProps, staticProps) {
|
16553 | if (protoProps)
|
16554 | defineProperties(Constructor.prototype, protoProps);
|
16555 | if (staticProps)
|
16556 | defineProperties(Constructor, staticProps);
|
16557 | return Constructor;
|
16558 | };
|
16559 | }();
|
16560 | function _classCallCheck$5(instance, Constructor) {
|
16561 | if (!(instance instanceof Constructor)) {
|
16562 | throw new TypeError("Cannot call a class as a function");
|
16563 | }
|
16564 | }
|
16565 | function _possibleConstructorReturn$5(self2, call2) {
|
16566 | if (!self2) {
|
16567 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
16568 | }
|
16569 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
16570 | }
|
16571 | function _inherits$5(subClass, superClass) {
|
16572 | if (typeof superClass !== "function" && superClass !== null) {
|
16573 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
16574 | }
|
16575 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
16576 | if (superClass)
|
16577 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
16578 | }
|
16579 | var Hue = function(_ref) {
|
16580 | _inherits$5(Hue2, _ref);
|
16581 | function Hue2() {
|
16582 | var _ref2;
|
16583 | var _temp, _this, _ret;
|
16584 | _classCallCheck$5(this, Hue2);
|
16585 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
16586 | args[_key] = arguments[_key];
|
16587 | }
|
16588 | return _ret = (_temp = (_this = _possibleConstructorReturn$5(this, (_ref2 = Hue2.__proto__ || Object.getPrototypeOf(Hue2)).call.apply(_ref2, [this].concat(args))), _this), _this.handleChange = function(e) {
|
16589 | var change = calculateChange$1(e, _this.props.direction, _this.props.hsl, _this.container);
|
16590 | change && typeof _this.props.onChange === "function" && _this.props.onChange(change, e);
|
16591 | }, _this.handleMouseDown = function(e) {
|
16592 | _this.handleChange(e);
|
16593 | window.addEventListener("mousemove", _this.handleChange);
|
16594 | window.addEventListener("mouseup", _this.handleMouseUp);
|
16595 | }, _this.handleMouseUp = function() {
|
16596 | _this.unbindEventListeners();
|
16597 | }, _temp), _possibleConstructorReturn$5(_this, _ret);
|
16598 | }
|
16599 | _createClass$5(Hue2, [{
|
16600 | key: "componentWillUnmount",
|
16601 | value: function componentWillUnmount() {
|
16602 | this.unbindEventListeners();
|
16603 | }
|
16604 | }, {
|
16605 | key: "unbindEventListeners",
|
16606 | value: function unbindEventListeners() {
|
16607 | window.removeEventListener("mousemove", this.handleChange);
|
16608 | window.removeEventListener("mouseup", this.handleMouseUp);
|
16609 | }
|
16610 | }, {
|
16611 | key: "render",
|
16612 | value: function render3() {
|
16613 | var _this2 = this;
|
16614 | var _props$direction = this.props.direction, direction = _props$direction === void 0 ? "horizontal" : _props$direction;
|
16615 | var styles = _default$2({
|
16616 | "default": {
|
16617 | hue: {
|
16618 | absolute: "0px 0px 0px 0px",
|
16619 | borderRadius: this.props.radius,
|
16620 | boxShadow: this.props.shadow
|
16621 | },
|
16622 | container: {
|
16623 | padding: "0 2px",
|
16624 | position: "relative",
|
16625 | height: "100%",
|
16626 | borderRadius: this.props.radius
|
16627 | },
|
16628 | pointer: {
|
16629 | position: "absolute",
|
16630 | left: this.props.hsl.h * 100 / 360 + "%"
|
16631 | },
|
16632 | slider: {
|
16633 | marginTop: "1px",
|
16634 | width: "4px",
|
16635 | borderRadius: "1px",
|
16636 | height: "8px",
|
16637 | boxShadow: "0 0 2px rgba(0, 0, 0, .6)",
|
16638 | background: "#fff",
|
16639 | transform: "translateX(-2px)"
|
16640 | }
|
16641 | },
|
16642 | "vertical": {
|
16643 | pointer: {
|
16644 | left: "0px",
|
16645 | top: -(this.props.hsl.h * 100 / 360) + 100 + "%"
|
16646 | }
|
16647 | }
|
16648 | }, { vertical: direction === "vertical" });
|
16649 | return React__default.createElement("div", { style: styles.hue }, React__default.createElement("div", {
|
16650 | className: "hue-" + direction,
|
16651 | style: styles.container,
|
16652 | ref: function ref(container) {
|
16653 | return _this2.container = container;
|
16654 | },
|
16655 | onMouseDown: this.handleMouseDown,
|
16656 | onTouchMove: this.handleChange,
|
16657 | onTouchStart: this.handleChange
|
16658 | }, React__default.createElement("style", null, "\n .hue-horizontal {\n background: linear-gradient(to right, #f00 0%, #ff0 17%, #0f0\n 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to right, #f00 0%, #ff0\n 17%, #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n\n .hue-vertical {\n background: linear-gradient(to top, #f00 0%, #ff0 17%, #0f0 33%,\n #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n background: -webkit-linear-gradient(to top, #f00 0%, #ff0 17%,\n #0f0 33%, #0ff 50%, #00f 67%, #f0f 83%, #f00 100%);\n }\n "), React__default.createElement("div", { style: styles.pointer }, this.props.pointer ? React__default.createElement(this.props.pointer, this.props) : React__default.createElement("div", { style: styles.slider }))));
|
16659 | }
|
16660 | }]);
|
16661 | return Hue2;
|
16662 | }(PureComponent || Component);
|
16663 | var propTypes = { exports: {} };
|
16664 | var ReactPropTypesSecret$1 = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
16665 | var ReactPropTypesSecret_1 = ReactPropTypesSecret$1;
|
16666 | var ReactPropTypesSecret = ReactPropTypesSecret_1;
|
16667 | function emptyFunction() {
|
16668 | }
|
16669 | function emptyFunctionWithReset() {
|
16670 | }
|
16671 | emptyFunctionWithReset.resetWarningCache = emptyFunction;
|
16672 | var factoryWithThrowingShims = function() {
|
16673 | function shim(props, propName, componentName, location, propFullName, secret) {
|
16674 | if (secret === ReactPropTypesSecret) {
|
16675 | return;
|
16676 | }
|
16677 | var err = new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");
|
16678 | err.name = "Invariant Violation";
|
16679 | throw err;
|
16680 | }
|
16681 | shim.isRequired = shim;
|
16682 | function getShim() {
|
16683 | return shim;
|
16684 | }
|
16685 | var ReactPropTypes = {
|
16686 | array: shim,
|
16687 | bigint: shim,
|
16688 | bool: shim,
|
16689 | func: shim,
|
16690 | number: shim,
|
16691 | object: shim,
|
16692 | string: shim,
|
16693 | symbol: shim,
|
16694 | any: shim,
|
16695 | arrayOf: getShim,
|
16696 | element: shim,
|
16697 | elementType: shim,
|
16698 | instanceOf: getShim,
|
16699 | node: shim,
|
16700 | objectOf: getShim,
|
16701 | oneOf: getShim,
|
16702 | oneOfType: getShim,
|
16703 | shape: getShim,
|
16704 | exact: getShim,
|
16705 | checkPropTypes: emptyFunctionWithReset,
|
16706 | resetWarningCache: emptyFunction
|
16707 | };
|
16708 | ReactPropTypes.PropTypes = ReactPropTypes;
|
16709 | return ReactPropTypes;
|
16710 | };
|
16711 | {
|
16712 | propTypes.exports = factoryWithThrowingShims();
|
16713 | }
|
16714 | var PropTypes = propTypes.exports;
|
16715 | var Raised = function Raised2(_ref) {
|
16716 | var zDepth = _ref.zDepth, radius = _ref.radius, background = _ref.background, children = _ref.children, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles;
|
16717 | var styles = _default$2(merge$1({
|
16718 | "default": {
|
16719 | wrap: {
|
16720 | position: "relative",
|
16721 | display: "inline-block"
|
16722 | },
|
16723 | content: {
|
16724 | position: "relative"
|
16725 | },
|
16726 | bg: {
|
16727 | absolute: "0px 0px 0px 0px",
|
16728 | boxShadow: "0 " + zDepth + "px " + zDepth * 4 + "px rgba(0,0,0,.24)",
|
16729 | borderRadius: radius,
|
16730 | background
|
16731 | }
|
16732 | },
|
16733 | "zDepth-0": {
|
16734 | bg: {
|
16735 | boxShadow: "none"
|
16736 | }
|
16737 | },
|
16738 | "zDepth-1": {
|
16739 | bg: {
|
16740 | boxShadow: "0 2px 10px rgba(0,0,0,.12), 0 2px 5px rgba(0,0,0,.16)"
|
16741 | }
|
16742 | },
|
16743 | "zDepth-2": {
|
16744 | bg: {
|
16745 | boxShadow: "0 6px 20px rgba(0,0,0,.19), 0 8px 17px rgba(0,0,0,.2)"
|
16746 | }
|
16747 | },
|
16748 | "zDepth-3": {
|
16749 | bg: {
|
16750 | boxShadow: "0 17px 50px rgba(0,0,0,.19), 0 12px 15px rgba(0,0,0,.24)"
|
16751 | }
|
16752 | },
|
16753 | "zDepth-4": {
|
16754 | bg: {
|
16755 | boxShadow: "0 25px 55px rgba(0,0,0,.21), 0 16px 28px rgba(0,0,0,.22)"
|
16756 | }
|
16757 | },
|
16758 | "zDepth-5": {
|
16759 | bg: {
|
16760 | boxShadow: "0 40px 77px rgba(0,0,0,.22), 0 27px 24px rgba(0,0,0,.2)"
|
16761 | }
|
16762 | },
|
16763 | "square": {
|
16764 | bg: {
|
16765 | borderRadius: "0"
|
16766 | }
|
16767 | },
|
16768 | "circle": {
|
16769 | bg: {
|
16770 | borderRadius: "50%"
|
16771 | }
|
16772 | }
|
16773 | }, passedStyles), { "zDepth-1": zDepth === 1 });
|
16774 | return React__default.createElement("div", { style: styles.wrap }, React__default.createElement("div", { style: styles.bg }), React__default.createElement("div", { style: styles.content }, children));
|
16775 | };
|
16776 | Raised.propTypes = {
|
16777 | background: PropTypes.string,
|
16778 | zDepth: PropTypes.oneOf([0, 1, 2, 3, 4, 5]),
|
16779 | radius: PropTypes.number,
|
16780 | styles: PropTypes.object
|
16781 | };
|
16782 | Raised.defaultProps = {
|
16783 | background: "#fff",
|
16784 | zDepth: 1,
|
16785 | radius: 2,
|
16786 | styles: {}
|
16787 | };
|
16788 | var calculateChange3 = function calculateChange4(e, hsl, container) {
|
16789 | var _container$getBoundin = container.getBoundingClientRect(), containerWidth = _container$getBoundin.width, containerHeight = _container$getBoundin.height;
|
16790 | var x = typeof e.pageX === "number" ? e.pageX : e.touches[0].pageX;
|
16791 | var y = typeof e.pageY === "number" ? e.pageY : e.touches[0].pageY;
|
16792 | var left = x - (container.getBoundingClientRect().left + window.pageXOffset);
|
16793 | var top = y - (container.getBoundingClientRect().top + window.pageYOffset);
|
16794 | if (left < 0) {
|
16795 | left = 0;
|
16796 | } else if (left > containerWidth) {
|
16797 | left = containerWidth;
|
16798 | }
|
16799 | if (top < 0) {
|
16800 | top = 0;
|
16801 | } else if (top > containerHeight) {
|
16802 | top = containerHeight;
|
16803 | }
|
16804 | var saturation = left / containerWidth;
|
16805 | var bright = 1 - top / containerHeight;
|
16806 | return {
|
16807 | h: hsl.h,
|
16808 | s: saturation,
|
16809 | v: bright,
|
16810 | a: hsl.a,
|
16811 | source: "hsv"
|
16812 | };
|
16813 | };
|
16814 | var _createClass$4 = function() {
|
16815 | function defineProperties(target, props) {
|
16816 | for (var i = 0; i < props.length; i++) {
|
16817 | var descriptor = props[i];
|
16818 | descriptor.enumerable = descriptor.enumerable || false;
|
16819 | descriptor.configurable = true;
|
16820 | if ("value" in descriptor)
|
16821 | descriptor.writable = true;
|
16822 | Object.defineProperty(target, descriptor.key, descriptor);
|
16823 | }
|
16824 | }
|
16825 | return function(Constructor, protoProps, staticProps) {
|
16826 | if (protoProps)
|
16827 | defineProperties(Constructor.prototype, protoProps);
|
16828 | if (staticProps)
|
16829 | defineProperties(Constructor, staticProps);
|
16830 | return Constructor;
|
16831 | };
|
16832 | }();
|
16833 | function _classCallCheck$4(instance, Constructor) {
|
16834 | if (!(instance instanceof Constructor)) {
|
16835 | throw new TypeError("Cannot call a class as a function");
|
16836 | }
|
16837 | }
|
16838 | function _possibleConstructorReturn$4(self2, call2) {
|
16839 | if (!self2) {
|
16840 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
16841 | }
|
16842 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
16843 | }
|
16844 | function _inherits$4(subClass, superClass) {
|
16845 | if (typeof superClass !== "function" && superClass !== null) {
|
16846 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
16847 | }
|
16848 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
16849 | if (superClass)
|
16850 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
16851 | }
|
16852 | var Saturation = function(_ref) {
|
16853 | _inherits$4(Saturation2, _ref);
|
16854 | function Saturation2(props) {
|
16855 | _classCallCheck$4(this, Saturation2);
|
16856 | var _this = _possibleConstructorReturn$4(this, (Saturation2.__proto__ || Object.getPrototypeOf(Saturation2)).call(this, props));
|
16857 | _this.handleChange = function(e) {
|
16858 | typeof _this.props.onChange === "function" && _this.throttle(_this.props.onChange, calculateChange3(e, _this.props.hsl, _this.container), e);
|
16859 | };
|
16860 | _this.handleMouseDown = function(e) {
|
16861 | _this.handleChange(e);
|
16862 | var renderWindow = _this.getContainerRenderWindow();
|
16863 | renderWindow.addEventListener("mousemove", _this.handleChange);
|
16864 | renderWindow.addEventListener("mouseup", _this.handleMouseUp);
|
16865 | };
|
16866 | _this.handleMouseUp = function() {
|
16867 | _this.unbindEventListeners();
|
16868 | };
|
16869 | _this.throttle = throttle(function(fn, data, e) {
|
16870 | fn(data, e);
|
16871 | }, 50);
|
16872 | return _this;
|
16873 | }
|
16874 | _createClass$4(Saturation2, [{
|
16875 | key: "componentWillUnmount",
|
16876 | value: function componentWillUnmount() {
|
16877 | this.throttle.cancel();
|
16878 | this.unbindEventListeners();
|
16879 | }
|
16880 | }, {
|
16881 | key: "getContainerRenderWindow",
|
16882 | value: function getContainerRenderWindow() {
|
16883 | var container = this.container;
|
16884 | var renderWindow = window;
|
16885 | while (!renderWindow.document.contains(container) && renderWindow.parent !== renderWindow) {
|
16886 | renderWindow = renderWindow.parent;
|
16887 | }
|
16888 | return renderWindow;
|
16889 | }
|
16890 | }, {
|
16891 | key: "unbindEventListeners",
|
16892 | value: function unbindEventListeners() {
|
16893 | var renderWindow = this.getContainerRenderWindow();
|
16894 | renderWindow.removeEventListener("mousemove", this.handleChange);
|
16895 | renderWindow.removeEventListener("mouseup", this.handleMouseUp);
|
16896 | }
|
16897 | }, {
|
16898 | key: "render",
|
16899 | value: function render3() {
|
16900 | var _this2 = this;
|
16901 | var _ref2 = this.props.style || {}, color = _ref2.color, white = _ref2.white, black = _ref2.black, pointer = _ref2.pointer, circle = _ref2.circle;
|
16902 | var styles = _default$2({
|
16903 | "default": {
|
16904 | color: {
|
16905 | absolute: "0px 0px 0px 0px",
|
16906 | background: "hsl(" + this.props.hsl.h + ",100%, 50%)",
|
16907 | borderRadius: this.props.radius
|
16908 | },
|
16909 | white: {
|
16910 | absolute: "0px 0px 0px 0px",
|
16911 | borderRadius: this.props.radius
|
16912 | },
|
16913 | black: {
|
16914 | absolute: "0px 0px 0px 0px",
|
16915 | boxShadow: this.props.shadow,
|
16916 | borderRadius: this.props.radius
|
16917 | },
|
16918 | pointer: {
|
16919 | position: "absolute",
|
16920 | top: -(this.props.hsv.v * 100) + 100 + "%",
|
16921 | left: this.props.hsv.s * 100 + "%",
|
16922 | cursor: "default"
|
16923 | },
|
16924 | circle: {
|
16925 | width: "4px",
|
16926 | height: "4px",
|
16927 | boxShadow: "0 0 0 1.5px #fff, inset 0 0 1px 1px rgba(0,0,0,.3),\n 0 0 1px 2px rgba(0,0,0,.4)",
|
16928 | borderRadius: "50%",
|
16929 | cursor: "hand",
|
16930 | transform: "translate(-2px, -2px)"
|
16931 | }
|
16932 | },
|
16933 | "custom": {
|
16934 | color,
|
16935 | white,
|
16936 | black,
|
16937 | pointer,
|
16938 | circle
|
16939 | }
|
16940 | }, { "custom": !!this.props.style });
|
16941 | return React__default.createElement("div", {
|
16942 | style: styles.color,
|
16943 | ref: function ref(container) {
|
16944 | return _this2.container = container;
|
16945 | },
|
16946 | onMouseDown: this.handleMouseDown,
|
16947 | onTouchMove: this.handleChange,
|
16948 | onTouchStart: this.handleChange
|
16949 | }, React__default.createElement("style", null, "\n .saturation-white {\n background: -webkit-linear-gradient(to right, #fff, rgba(255,255,255,0));\n background: linear-gradient(to right, #fff, rgba(255,255,255,0));\n }\n .saturation-black {\n background: -webkit-linear-gradient(to top, #000, rgba(0,0,0,0));\n background: linear-gradient(to top, #000, rgba(0,0,0,0));\n }\n "), React__default.createElement("div", { style: styles.white, className: "saturation-white" }, React__default.createElement("div", { style: styles.black, className: "saturation-black" }), React__default.createElement("div", { style: styles.pointer }, this.props.pointer ? React__default.createElement(this.props.pointer, this.props) : React__default.createElement("div", { style: styles.circle }))));
|
16950 | }
|
16951 | }]);
|
16952 | return Saturation2;
|
16953 | }(PureComponent || Component);
|
16954 | var tinycolor$1 = { exports: {} };
|
16955 | (function(module2) {
|
16956 | (function(Math2) {
|
16957 | var trimLeft = /^\s+/, trimRight = /\s+$/, tinyCounter = 0, mathRound = Math2.round, mathMin = Math2.min, mathMax = Math2.max, mathRandom = Math2.random;
|
16958 | function tinycolor2(color, opts) {
|
16959 | color = color ? color : "";
|
16960 | opts = opts || {};
|
16961 | if (color instanceof tinycolor2) {
|
16962 | return color;
|
16963 | }
|
16964 | if (!(this instanceof tinycolor2)) {
|
16965 | return new tinycolor2(color, opts);
|
16966 | }
|
16967 | var rgb = inputToRGB2(color);
|
16968 | this._originalInput = color, this._r = rgb.r, this._g = rgb.g, this._b = rgb.b, this._a = rgb.a, this._roundA = mathRound(100 * this._a) / 100, this._format = opts.format || rgb.format;
|
16969 | this._gradientType = opts.gradientType;
|
16970 | if (this._r < 1) {
|
16971 | this._r = mathRound(this._r);
|
16972 | }
|
16973 | if (this._g < 1) {
|
16974 | this._g = mathRound(this._g);
|
16975 | }
|
16976 | if (this._b < 1) {
|
16977 | this._b = mathRound(this._b);
|
16978 | }
|
16979 | this._ok = rgb.ok;
|
16980 | this._tc_id = tinyCounter++;
|
16981 | }
|
16982 | tinycolor2.prototype = {
|
16983 | isDark: function() {
|
16984 | return this.getBrightness() < 128;
|
16985 | },
|
16986 | isLight: function() {
|
16987 | return !this.isDark();
|
16988 | },
|
16989 | isValid: function() {
|
16990 | return this._ok;
|
16991 | },
|
16992 | getOriginalInput: function() {
|
16993 | return this._originalInput;
|
16994 | },
|
16995 | getFormat: function() {
|
16996 | return this._format;
|
16997 | },
|
16998 | getAlpha: function() {
|
16999 | return this._a;
|
17000 | },
|
17001 | getBrightness: function() {
|
17002 | var rgb = this.toRgb();
|
17003 | return (rgb.r * 299 + rgb.g * 587 + rgb.b * 114) / 1e3;
|
17004 | },
|
17005 | getLuminance: function() {
|
17006 | var rgb = this.toRgb();
|
17007 | var RsRGB, GsRGB, BsRGB, R, G, B;
|
17008 | RsRGB = rgb.r / 255;
|
17009 | GsRGB = rgb.g / 255;
|
17010 | BsRGB = rgb.b / 255;
|
17011 | if (RsRGB <= 0.03928) {
|
17012 | R = RsRGB / 12.92;
|
17013 | } else {
|
17014 | R = Math2.pow((RsRGB + 0.055) / 1.055, 2.4);
|
17015 | }
|
17016 | if (GsRGB <= 0.03928) {
|
17017 | G = GsRGB / 12.92;
|
17018 | } else {
|
17019 | G = Math2.pow((GsRGB + 0.055) / 1.055, 2.4);
|
17020 | }
|
17021 | if (BsRGB <= 0.03928) {
|
17022 | B = BsRGB / 12.92;
|
17023 | } else {
|
17024 | B = Math2.pow((BsRGB + 0.055) / 1.055, 2.4);
|
17025 | }
|
17026 | return 0.2126 * R + 0.7152 * G + 0.0722 * B;
|
17027 | },
|
17028 | setAlpha: function(value) {
|
17029 | this._a = boundAlpha2(value);
|
17030 | this._roundA = mathRound(100 * this._a) / 100;
|
17031 | return this;
|
17032 | },
|
17033 | toHsv: function() {
|
17034 | var hsv = rgbToHsv2(this._r, this._g, this._b);
|
17035 | return { h: hsv.h * 360, s: hsv.s, v: hsv.v, a: this._a };
|
17036 | },
|
17037 | toHsvString: function() {
|
17038 | var hsv = rgbToHsv2(this._r, this._g, this._b);
|
17039 | var h = mathRound(hsv.h * 360), s = mathRound(hsv.s * 100), v = mathRound(hsv.v * 100);
|
17040 | return this._a == 1 ? "hsv(" + h + ", " + s + "%, " + v + "%)" : "hsva(" + h + ", " + s + "%, " + v + "%, " + this._roundA + ")";
|
17041 | },
|
17042 | toHsl: function() {
|
17043 | var hsl = rgbToHsl(this._r, this._g, this._b);
|
17044 | return { h: hsl.h * 360, s: hsl.s, l: hsl.l, a: this._a };
|
17045 | },
|
17046 | toHslString: function() {
|
17047 | var hsl = rgbToHsl(this._r, this._g, this._b);
|
17048 | var h = mathRound(hsl.h * 360), s = mathRound(hsl.s * 100), l = mathRound(hsl.l * 100);
|
17049 | return this._a == 1 ? "hsl(" + h + ", " + s + "%, " + l + "%)" : "hsla(" + h + ", " + s + "%, " + l + "%, " + this._roundA + ")";
|
17050 | },
|
17051 | toHex: function(allow3Char) {
|
17052 | return rgbToHex2(this._r, this._g, this._b, allow3Char);
|
17053 | },
|
17054 | toHexString: function(allow3Char) {
|
17055 | return "#" + this.toHex(allow3Char);
|
17056 | },
|
17057 | toHex8: function(allow4Char) {
|
17058 | return rgbaToHex(this._r, this._g, this._b, this._a, allow4Char);
|
17059 | },
|
17060 | toHex8String: function(allow4Char) {
|
17061 | return "#" + this.toHex8(allow4Char);
|
17062 | },
|
17063 | toRgb: function() {
|
17064 | return { r: mathRound(this._r), g: mathRound(this._g), b: mathRound(this._b), a: this._a };
|
17065 | },
|
17066 | toRgbString: function() {
|
17067 | return this._a == 1 ? "rgb(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ")" : "rgba(" + mathRound(this._r) + ", " + mathRound(this._g) + ", " + mathRound(this._b) + ", " + this._roundA + ")";
|
17068 | },
|
17069 | toPercentageRgb: function() {
|
17070 | return { r: mathRound(bound012(this._r, 255) * 100) + "%", g: mathRound(bound012(this._g, 255) * 100) + "%", b: mathRound(bound012(this._b, 255) * 100) + "%", a: this._a };
|
17071 | },
|
17072 | toPercentageRgbString: function() {
|
17073 | return this._a == 1 ? "rgb(" + mathRound(bound012(this._r, 255) * 100) + "%, " + mathRound(bound012(this._g, 255) * 100) + "%, " + mathRound(bound012(this._b, 255) * 100) + "%)" : "rgba(" + mathRound(bound012(this._r, 255) * 100) + "%, " + mathRound(bound012(this._g, 255) * 100) + "%, " + mathRound(bound012(this._b, 255) * 100) + "%, " + this._roundA + ")";
|
17074 | },
|
17075 | toName: function() {
|
17076 | if (this._a === 0) {
|
17077 | return "transparent";
|
17078 | }
|
17079 | if (this._a < 1) {
|
17080 | return false;
|
17081 | }
|
17082 | return hexNames[rgbToHex2(this._r, this._g, this._b, true)] || false;
|
17083 | },
|
17084 | toFilter: function(secondColor) {
|
17085 | var hex8String = "#" + rgbaToArgbHex(this._r, this._g, this._b, this._a);
|
17086 | var secondHex8String = hex8String;
|
17087 | var gradientType = this._gradientType ? "GradientType = 1, " : "";
|
17088 | if (secondColor) {
|
17089 | var s = tinycolor2(secondColor);
|
17090 | secondHex8String = "#" + rgbaToArgbHex(s._r, s._g, s._b, s._a);
|
17091 | }
|
17092 | return "progid:DXImageTransform.Microsoft.gradient(" + gradientType + "startColorstr=" + hex8String + ",endColorstr=" + secondHex8String + ")";
|
17093 | },
|
17094 | toString: function(format) {
|
17095 | var formatSet = !!format;
|
17096 | format = format || this._format;
|
17097 | var formattedString = false;
|
17098 | var hasAlpha = this._a < 1 && this._a >= 0;
|
17099 | var needsAlphaFormat = !formatSet && hasAlpha && (format === "hex" || format === "hex6" || format === "hex3" || format === "hex4" || format === "hex8" || format === "name");
|
17100 | if (needsAlphaFormat) {
|
17101 | if (format === "name" && this._a === 0) {
|
17102 | return this.toName();
|
17103 | }
|
17104 | return this.toRgbString();
|
17105 | }
|
17106 | if (format === "rgb") {
|
17107 | formattedString = this.toRgbString();
|
17108 | }
|
17109 | if (format === "prgb") {
|
17110 | formattedString = this.toPercentageRgbString();
|
17111 | }
|
17112 | if (format === "hex" || format === "hex6") {
|
17113 | formattedString = this.toHexString();
|
17114 | }
|
17115 | if (format === "hex3") {
|
17116 | formattedString = this.toHexString(true);
|
17117 | }
|
17118 | if (format === "hex4") {
|
17119 | formattedString = this.toHex8String(true);
|
17120 | }
|
17121 | if (format === "hex8") {
|
17122 | formattedString = this.toHex8String();
|
17123 | }
|
17124 | if (format === "name") {
|
17125 | formattedString = this.toName();
|
17126 | }
|
17127 | if (format === "hsl") {
|
17128 | formattedString = this.toHslString();
|
17129 | }
|
17130 | if (format === "hsv") {
|
17131 | formattedString = this.toHsvString();
|
17132 | }
|
17133 | return formattedString || this.toHexString();
|
17134 | },
|
17135 | clone: function() {
|
17136 | return tinycolor2(this.toString());
|
17137 | },
|
17138 | _applyModification: function(fn, args) {
|
17139 | var color = fn.apply(null, [this].concat([].slice.call(args)));
|
17140 | this._r = color._r;
|
17141 | this._g = color._g;
|
17142 | this._b = color._b;
|
17143 | this.setAlpha(color._a);
|
17144 | return this;
|
17145 | },
|
17146 | lighten: function() {
|
17147 | return this._applyModification(lighten, arguments);
|
17148 | },
|
17149 | brighten: function() {
|
17150 | return this._applyModification(brighten, arguments);
|
17151 | },
|
17152 | darken: function() {
|
17153 | return this._applyModification(darken, arguments);
|
17154 | },
|
17155 | desaturate: function() {
|
17156 | return this._applyModification(desaturate, arguments);
|
17157 | },
|
17158 | saturate: function() {
|
17159 | return this._applyModification(saturate, arguments);
|
17160 | },
|
17161 | greyscale: function() {
|
17162 | return this._applyModification(greyscale, arguments);
|
17163 | },
|
17164 | spin: function() {
|
17165 | return this._applyModification(spin, arguments);
|
17166 | },
|
17167 | _applyCombination: function(fn, args) {
|
17168 | return fn.apply(null, [this].concat([].slice.call(args)));
|
17169 | },
|
17170 | analogous: function() {
|
17171 | return this._applyCombination(analogous, arguments);
|
17172 | },
|
17173 | complement: function() {
|
17174 | return this._applyCombination(complement, arguments);
|
17175 | },
|
17176 | monochromatic: function() {
|
17177 | return this._applyCombination(monochromatic, arguments);
|
17178 | },
|
17179 | splitcomplement: function() {
|
17180 | return this._applyCombination(splitcomplement, arguments);
|
17181 | },
|
17182 | triad: function() {
|
17183 | return this._applyCombination(triad, arguments);
|
17184 | },
|
17185 | tetrad: function() {
|
17186 | return this._applyCombination(tetrad, arguments);
|
17187 | }
|
17188 | };
|
17189 | tinycolor2.fromRatio = function(color, opts) {
|
17190 | if (typeof color == "object") {
|
17191 | var newColor = {};
|
17192 | for (var i in color) {
|
17193 | if (color.hasOwnProperty(i)) {
|
17194 | if (i === "a") {
|
17195 | newColor[i] = color[i];
|
17196 | } else {
|
17197 | newColor[i] = convertToPercentage2(color[i]);
|
17198 | }
|
17199 | }
|
17200 | }
|
17201 | color = newColor;
|
17202 | }
|
17203 | return tinycolor2(color, opts);
|
17204 | };
|
17205 | function inputToRGB2(color) {
|
17206 | var rgb = { r: 0, g: 0, b: 0 };
|
17207 | var a = 1;
|
17208 | var s = null;
|
17209 | var v = null;
|
17210 | var l = null;
|
17211 | var ok = false;
|
17212 | var format = false;
|
17213 | if (typeof color == "string") {
|
17214 | color = stringInputToObject2(color);
|
17215 | }
|
17216 | if (typeof color == "object") {
|
17217 | if (isValidCSSUnit2(color.r) && isValidCSSUnit2(color.g) && isValidCSSUnit2(color.b)) {
|
17218 | rgb = rgbToRgb2(color.r, color.g, color.b);
|
17219 | ok = true;
|
17220 | format = String(color.r).substr(-1) === "%" ? "prgb" : "rgb";
|
17221 | } else if (isValidCSSUnit2(color.h) && isValidCSSUnit2(color.s) && isValidCSSUnit2(color.v)) {
|
17222 | s = convertToPercentage2(color.s);
|
17223 | v = convertToPercentage2(color.v);
|
17224 | rgb = hsvToRgb2(color.h, s, v);
|
17225 | ok = true;
|
17226 | format = "hsv";
|
17227 | } else if (isValidCSSUnit2(color.h) && isValidCSSUnit2(color.s) && isValidCSSUnit2(color.l)) {
|
17228 | s = convertToPercentage2(color.s);
|
17229 | l = convertToPercentage2(color.l);
|
17230 | rgb = hslToRgb2(color.h, s, l);
|
17231 | ok = true;
|
17232 | format = "hsl";
|
17233 | }
|
17234 | if (color.hasOwnProperty("a")) {
|
17235 | a = color.a;
|
17236 | }
|
17237 | }
|
17238 | a = boundAlpha2(a);
|
17239 | return {
|
17240 | ok,
|
17241 | format: color.format || format,
|
17242 | r: mathMin(255, mathMax(rgb.r, 0)),
|
17243 | g: mathMin(255, mathMax(rgb.g, 0)),
|
17244 | b: mathMin(255, mathMax(rgb.b, 0)),
|
17245 | a
|
17246 | };
|
17247 | }
|
17248 | function rgbToRgb2(r, g, b) {
|
17249 | return {
|
17250 | r: bound012(r, 255) * 255,
|
17251 | g: bound012(g, 255) * 255,
|
17252 | b: bound012(b, 255) * 255
|
17253 | };
|
17254 | }
|
17255 | function rgbToHsl(r, g, b) {
|
17256 | r = bound012(r, 255);
|
17257 | g = bound012(g, 255);
|
17258 | b = bound012(b, 255);
|
17259 | var max = mathMax(r, g, b), min = mathMin(r, g, b);
|
17260 | var h, s, l = (max + min) / 2;
|
17261 | if (max == min) {
|
17262 | h = s = 0;
|
17263 | } else {
|
17264 | var d = max - min;
|
17265 | s = l > 0.5 ? d / (2 - max - min) : d / (max + min);
|
17266 | switch (max) {
|
17267 | case r:
|
17268 | h = (g - b) / d + (g < b ? 6 : 0);
|
17269 | break;
|
17270 | case g:
|
17271 | h = (b - r) / d + 2;
|
17272 | break;
|
17273 | case b:
|
17274 | h = (r - g) / d + 4;
|
17275 | break;
|
17276 | }
|
17277 | h /= 6;
|
17278 | }
|
17279 | return { h, s, l };
|
17280 | }
|
17281 | function hslToRgb2(h, s, l) {
|
17282 | var r, g, b;
|
17283 | h = bound012(h, 360);
|
17284 | s = bound012(s, 100);
|
17285 | l = bound012(l, 100);
|
17286 | function hue2rgb2(p2, q2, t) {
|
17287 | if (t < 0)
|
17288 | t += 1;
|
17289 | if (t > 1)
|
17290 | t -= 1;
|
17291 | if (t < 1 / 6)
|
17292 | return p2 + (q2 - p2) * 6 * t;
|
17293 | if (t < 1 / 2)
|
17294 | return q2;
|
17295 | if (t < 2 / 3)
|
17296 | return p2 + (q2 - p2) * (2 / 3 - t) * 6;
|
17297 | return p2;
|
17298 | }
|
17299 | if (s === 0) {
|
17300 | r = g = b = l;
|
17301 | } else {
|
17302 | var q = l < 0.5 ? l * (1 + s) : l + s - l * s;
|
17303 | var p = 2 * l - q;
|
17304 | r = hue2rgb2(p, q, h + 1 / 3);
|
17305 | g = hue2rgb2(p, q, h);
|
17306 | b = hue2rgb2(p, q, h - 1 / 3);
|
17307 | }
|
17308 | return { r: r * 255, g: g * 255, b: b * 255 };
|
17309 | }
|
17310 | function rgbToHsv2(r, g, b) {
|
17311 | r = bound012(r, 255);
|
17312 | g = bound012(g, 255);
|
17313 | b = bound012(b, 255);
|
17314 | var max = mathMax(r, g, b), min = mathMin(r, g, b);
|
17315 | var h, s, v = max;
|
17316 | var d = max - min;
|
17317 | s = max === 0 ? 0 : d / max;
|
17318 | if (max == min) {
|
17319 | h = 0;
|
17320 | } else {
|
17321 | switch (max) {
|
17322 | case r:
|
17323 | h = (g - b) / d + (g < b ? 6 : 0);
|
17324 | break;
|
17325 | case g:
|
17326 | h = (b - r) / d + 2;
|
17327 | break;
|
17328 | case b:
|
17329 | h = (r - g) / d + 4;
|
17330 | break;
|
17331 | }
|
17332 | h /= 6;
|
17333 | }
|
17334 | return { h, s, v };
|
17335 | }
|
17336 | function hsvToRgb2(h, s, v) {
|
17337 | h = bound012(h, 360) * 6;
|
17338 | s = bound012(s, 100);
|
17339 | v = bound012(v, 100);
|
17340 | var i = Math2.floor(h), f = h - i, p = v * (1 - s), q = v * (1 - f * s), t = v * (1 - (1 - f) * s), mod = i % 6, r = [v, q, p, p, t, v][mod], g = [t, v, v, q, p, p][mod], b = [p, p, t, v, v, q][mod];
|
17341 | return { r: r * 255, g: g * 255, b: b * 255 };
|
17342 | }
|
17343 | function rgbToHex2(r, g, b, allow3Char) {
|
17344 | var hex = [
|
17345 | pad22(mathRound(r).toString(16)),
|
17346 | pad22(mathRound(g).toString(16)),
|
17347 | pad22(mathRound(b).toString(16))
|
17348 | ];
|
17349 | if (allow3Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1)) {
|
17350 | return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0);
|
17351 | }
|
17352 | return hex.join("");
|
17353 | }
|
17354 | function rgbaToHex(r, g, b, a, allow4Char) {
|
17355 | var hex = [
|
17356 | pad22(mathRound(r).toString(16)),
|
17357 | pad22(mathRound(g).toString(16)),
|
17358 | pad22(mathRound(b).toString(16)),
|
17359 | pad22(convertDecimalToHex(a))
|
17360 | ];
|
17361 | if (allow4Char && hex[0].charAt(0) == hex[0].charAt(1) && hex[1].charAt(0) == hex[1].charAt(1) && hex[2].charAt(0) == hex[2].charAt(1) && hex[3].charAt(0) == hex[3].charAt(1)) {
|
17362 | return hex[0].charAt(0) + hex[1].charAt(0) + hex[2].charAt(0) + hex[3].charAt(0);
|
17363 | }
|
17364 | return hex.join("");
|
17365 | }
|
17366 | function rgbaToArgbHex(r, g, b, a) {
|
17367 | var hex = [
|
17368 | pad22(convertDecimalToHex(a)),
|
17369 | pad22(mathRound(r).toString(16)),
|
17370 | pad22(mathRound(g).toString(16)),
|
17371 | pad22(mathRound(b).toString(16))
|
17372 | ];
|
17373 | return hex.join("");
|
17374 | }
|
17375 | tinycolor2.equals = function(color1, color2) {
|
17376 | if (!color1 || !color2) {
|
17377 | return false;
|
17378 | }
|
17379 | return tinycolor2(color1).toRgbString() == tinycolor2(color2).toRgbString();
|
17380 | };
|
17381 | tinycolor2.random = function() {
|
17382 | return tinycolor2.fromRatio({
|
17383 | r: mathRandom(),
|
17384 | g: mathRandom(),
|
17385 | b: mathRandom()
|
17386 | });
|
17387 | };
|
17388 | function desaturate(color, amount) {
|
17389 | amount = amount === 0 ? 0 : amount || 10;
|
17390 | var hsl = tinycolor2(color).toHsl();
|
17391 | hsl.s -= amount / 100;
|
17392 | hsl.s = clamp01(hsl.s);
|
17393 | return tinycolor2(hsl);
|
17394 | }
|
17395 | function saturate(color, amount) {
|
17396 | amount = amount === 0 ? 0 : amount || 10;
|
17397 | var hsl = tinycolor2(color).toHsl();
|
17398 | hsl.s += amount / 100;
|
17399 | hsl.s = clamp01(hsl.s);
|
17400 | return tinycolor2(hsl);
|
17401 | }
|
17402 | function greyscale(color) {
|
17403 | return tinycolor2(color).desaturate(100);
|
17404 | }
|
17405 | function lighten(color, amount) {
|
17406 | amount = amount === 0 ? 0 : amount || 10;
|
17407 | var hsl = tinycolor2(color).toHsl();
|
17408 | hsl.l += amount / 100;
|
17409 | hsl.l = clamp01(hsl.l);
|
17410 | return tinycolor2(hsl);
|
17411 | }
|
17412 | function brighten(color, amount) {
|
17413 | amount = amount === 0 ? 0 : amount || 10;
|
17414 | var rgb = tinycolor2(color).toRgb();
|
17415 | rgb.r = mathMax(0, mathMin(255, rgb.r - mathRound(255 * -(amount / 100))));
|
17416 | rgb.g = mathMax(0, mathMin(255, rgb.g - mathRound(255 * -(amount / 100))));
|
17417 | rgb.b = mathMax(0, mathMin(255, rgb.b - mathRound(255 * -(amount / 100))));
|
17418 | return tinycolor2(rgb);
|
17419 | }
|
17420 | function darken(color, amount) {
|
17421 | amount = amount === 0 ? 0 : amount || 10;
|
17422 | var hsl = tinycolor2(color).toHsl();
|
17423 | hsl.l -= amount / 100;
|
17424 | hsl.l = clamp01(hsl.l);
|
17425 | return tinycolor2(hsl);
|
17426 | }
|
17427 | function spin(color, amount) {
|
17428 | var hsl = tinycolor2(color).toHsl();
|
17429 | var hue = (hsl.h + amount) % 360;
|
17430 | hsl.h = hue < 0 ? 360 + hue : hue;
|
17431 | return tinycolor2(hsl);
|
17432 | }
|
17433 | function complement(color) {
|
17434 | var hsl = tinycolor2(color).toHsl();
|
17435 | hsl.h = (hsl.h + 180) % 360;
|
17436 | return tinycolor2(hsl);
|
17437 | }
|
17438 | function triad(color) {
|
17439 | var hsl = tinycolor2(color).toHsl();
|
17440 | var h = hsl.h;
|
17441 | return [
|
17442 | tinycolor2(color),
|
17443 | tinycolor2({ h: (h + 120) % 360, s: hsl.s, l: hsl.l }),
|
17444 | tinycolor2({ h: (h + 240) % 360, s: hsl.s, l: hsl.l })
|
17445 | ];
|
17446 | }
|
17447 | function tetrad(color) {
|
17448 | var hsl = tinycolor2(color).toHsl();
|
17449 | var h = hsl.h;
|
17450 | return [
|
17451 | tinycolor2(color),
|
17452 | tinycolor2({ h: (h + 90) % 360, s: hsl.s, l: hsl.l }),
|
17453 | tinycolor2({ h: (h + 180) % 360, s: hsl.s, l: hsl.l }),
|
17454 | tinycolor2({ h: (h + 270) % 360, s: hsl.s, l: hsl.l })
|
17455 | ];
|
17456 | }
|
17457 | function splitcomplement(color) {
|
17458 | var hsl = tinycolor2(color).toHsl();
|
17459 | var h = hsl.h;
|
17460 | return [
|
17461 | tinycolor2(color),
|
17462 | tinycolor2({ h: (h + 72) % 360, s: hsl.s, l: hsl.l }),
|
17463 | tinycolor2({ h: (h + 216) % 360, s: hsl.s, l: hsl.l })
|
17464 | ];
|
17465 | }
|
17466 | function analogous(color, results, slices) {
|
17467 | results = results || 6;
|
17468 | slices = slices || 30;
|
17469 | var hsl = tinycolor2(color).toHsl();
|
17470 | var part = 360 / slices;
|
17471 | var ret = [tinycolor2(color)];
|
17472 | for (hsl.h = (hsl.h - (part * results >> 1) + 720) % 360; --results; ) {
|
17473 | hsl.h = (hsl.h + part) % 360;
|
17474 | ret.push(tinycolor2(hsl));
|
17475 | }
|
17476 | return ret;
|
17477 | }
|
17478 | function monochromatic(color, results) {
|
17479 | results = results || 6;
|
17480 | var hsv = tinycolor2(color).toHsv();
|
17481 | var h = hsv.h, s = hsv.s, v = hsv.v;
|
17482 | var ret = [];
|
17483 | var modification = 1 / results;
|
17484 | while (results--) {
|
17485 | ret.push(tinycolor2({ h, s, v }));
|
17486 | v = (v + modification) % 1;
|
17487 | }
|
17488 | return ret;
|
17489 | }
|
17490 | tinycolor2.mix = function(color1, color2, amount) {
|
17491 | amount = amount === 0 ? 0 : amount || 50;
|
17492 | var rgb1 = tinycolor2(color1).toRgb();
|
17493 | var rgb2 = tinycolor2(color2).toRgb();
|
17494 | var p = amount / 100;
|
17495 | var rgba = {
|
17496 | r: (rgb2.r - rgb1.r) * p + rgb1.r,
|
17497 | g: (rgb2.g - rgb1.g) * p + rgb1.g,
|
17498 | b: (rgb2.b - rgb1.b) * p + rgb1.b,
|
17499 | a: (rgb2.a - rgb1.a) * p + rgb1.a
|
17500 | };
|
17501 | return tinycolor2(rgba);
|
17502 | };
|
17503 | tinycolor2.readability = function(color1, color2) {
|
17504 | var c1 = tinycolor2(color1);
|
17505 | var c2 = tinycolor2(color2);
|
17506 | return (Math2.max(c1.getLuminance(), c2.getLuminance()) + 0.05) / (Math2.min(c1.getLuminance(), c2.getLuminance()) + 0.05);
|
17507 | };
|
17508 | tinycolor2.isReadable = function(color1, color2, wcag2) {
|
17509 | var readability = tinycolor2.readability(color1, color2);
|
17510 | var wcag2Parms, out;
|
17511 | out = false;
|
17512 | wcag2Parms = validateWCAG2Parms(wcag2);
|
17513 | switch (wcag2Parms.level + wcag2Parms.size) {
|
17514 | case "AAsmall":
|
17515 | case "AAAlarge":
|
17516 | out = readability >= 4.5;
|
17517 | break;
|
17518 | case "AAlarge":
|
17519 | out = readability >= 3;
|
17520 | break;
|
17521 | case "AAAsmall":
|
17522 | out = readability >= 7;
|
17523 | break;
|
17524 | }
|
17525 | return out;
|
17526 | };
|
17527 | tinycolor2.mostReadable = function(baseColor, colorList, args) {
|
17528 | var bestColor = null;
|
17529 | var bestScore = 0;
|
17530 | var readability;
|
17531 | var includeFallbackColors, level, size;
|
17532 | args = args || {};
|
17533 | includeFallbackColors = args.includeFallbackColors;
|
17534 | level = args.level;
|
17535 | size = args.size;
|
17536 | for (var i = 0; i < colorList.length; i++) {
|
17537 | readability = tinycolor2.readability(baseColor, colorList[i]);
|
17538 | if (readability > bestScore) {
|
17539 | bestScore = readability;
|
17540 | bestColor = tinycolor2(colorList[i]);
|
17541 | }
|
17542 | }
|
17543 | if (tinycolor2.isReadable(baseColor, bestColor, { "level": level, "size": size }) || !includeFallbackColors) {
|
17544 | return bestColor;
|
17545 | } else {
|
17546 | args.includeFallbackColors = false;
|
17547 | return tinycolor2.mostReadable(baseColor, ["#fff", "#000"], args);
|
17548 | }
|
17549 | };
|
17550 | var names2 = tinycolor2.names = {
|
17551 | aliceblue: "f0f8ff",
|
17552 | antiquewhite: "faebd7",
|
17553 | aqua: "0ff",
|
17554 | aquamarine: "7fffd4",
|
17555 | azure: "f0ffff",
|
17556 | beige: "f5f5dc",
|
17557 | bisque: "ffe4c4",
|
17558 | black: "000",
|
17559 | blanchedalmond: "ffebcd",
|
17560 | blue: "00f",
|
17561 | blueviolet: "8a2be2",
|
17562 | brown: "a52a2a",
|
17563 | burlywood: "deb887",
|
17564 | burntsienna: "ea7e5d",
|
17565 | cadetblue: "5f9ea0",
|
17566 | chartreuse: "7fff00",
|
17567 | chocolate: "d2691e",
|
17568 | coral: "ff7f50",
|
17569 | cornflowerblue: "6495ed",
|
17570 | cornsilk: "fff8dc",
|
17571 | crimson: "dc143c",
|
17572 | cyan: "0ff",
|
17573 | darkblue: "00008b",
|
17574 | darkcyan: "008b8b",
|
17575 | darkgoldenrod: "b8860b",
|
17576 | darkgray: "a9a9a9",
|
17577 | darkgreen: "006400",
|
17578 | darkgrey: "a9a9a9",
|
17579 | darkkhaki: "bdb76b",
|
17580 | darkmagenta: "8b008b",
|
17581 | darkolivegreen: "556b2f",
|
17582 | darkorange: "ff8c00",
|
17583 | darkorchid: "9932cc",
|
17584 | darkred: "8b0000",
|
17585 | darksalmon: "e9967a",
|
17586 | darkseagreen: "8fbc8f",
|
17587 | darkslateblue: "483d8b",
|
17588 | darkslategray: "2f4f4f",
|
17589 | darkslategrey: "2f4f4f",
|
17590 | darkturquoise: "00ced1",
|
17591 | darkviolet: "9400d3",
|
17592 | deeppink: "ff1493",
|
17593 | deepskyblue: "00bfff",
|
17594 | dimgray: "696969",
|
17595 | dimgrey: "696969",
|
17596 | dodgerblue: "1e90ff",
|
17597 | firebrick: "b22222",
|
17598 | floralwhite: "fffaf0",
|
17599 | forestgreen: "228b22",
|
17600 | fuchsia: "f0f",
|
17601 | gainsboro: "dcdcdc",
|
17602 | ghostwhite: "f8f8ff",
|
17603 | gold: "ffd700",
|
17604 | goldenrod: "daa520",
|
17605 | gray: "808080",
|
17606 | green: "008000",
|
17607 | greenyellow: "adff2f",
|
17608 | grey: "808080",
|
17609 | honeydew: "f0fff0",
|
17610 | hotpink: "ff69b4",
|
17611 | indianred: "cd5c5c",
|
17612 | indigo: "4b0082",
|
17613 | ivory: "fffff0",
|
17614 | khaki: "f0e68c",
|
17615 | lavender: "e6e6fa",
|
17616 | lavenderblush: "fff0f5",
|
17617 | lawngreen: "7cfc00",
|
17618 | lemonchiffon: "fffacd",
|
17619 | lightblue: "add8e6",
|
17620 | lightcoral: "f08080",
|
17621 | lightcyan: "e0ffff",
|
17622 | lightgoldenrodyellow: "fafad2",
|
17623 | lightgray: "d3d3d3",
|
17624 | lightgreen: "90ee90",
|
17625 | lightgrey: "d3d3d3",
|
17626 | lightpink: "ffb6c1",
|
17627 | lightsalmon: "ffa07a",
|
17628 | lightseagreen: "20b2aa",
|
17629 | lightskyblue: "87cefa",
|
17630 | lightslategray: "789",
|
17631 | lightslategrey: "789",
|
17632 | lightsteelblue: "b0c4de",
|
17633 | lightyellow: "ffffe0",
|
17634 | lime: "0f0",
|
17635 | limegreen: "32cd32",
|
17636 | linen: "faf0e6",
|
17637 | magenta: "f0f",
|
17638 | maroon: "800000",
|
17639 | mediumaquamarine: "66cdaa",
|
17640 | mediumblue: "0000cd",
|
17641 | mediumorchid: "ba55d3",
|
17642 | mediumpurple: "9370db",
|
17643 | mediumseagreen: "3cb371",
|
17644 | mediumslateblue: "7b68ee",
|
17645 | mediumspringgreen: "00fa9a",
|
17646 | mediumturquoise: "48d1cc",
|
17647 | mediumvioletred: "c71585",
|
17648 | midnightblue: "191970",
|
17649 | mintcream: "f5fffa",
|
17650 | mistyrose: "ffe4e1",
|
17651 | moccasin: "ffe4b5",
|
17652 | navajowhite: "ffdead",
|
17653 | navy: "000080",
|
17654 | oldlace: "fdf5e6",
|
17655 | olive: "808000",
|
17656 | olivedrab: "6b8e23",
|
17657 | orange: "ffa500",
|
17658 | orangered: "ff4500",
|
17659 | orchid: "da70d6",
|
17660 | palegoldenrod: "eee8aa",
|
17661 | palegreen: "98fb98",
|
17662 | paleturquoise: "afeeee",
|
17663 | palevioletred: "db7093",
|
17664 | papayawhip: "ffefd5",
|
17665 | peachpuff: "ffdab9",
|
17666 | peru: "cd853f",
|
17667 | pink: "ffc0cb",
|
17668 | plum: "dda0dd",
|
17669 | powderblue: "b0e0e6",
|
17670 | purple: "800080",
|
17671 | rebeccapurple: "663399",
|
17672 | red: "f00",
|
17673 | rosybrown: "bc8f8f",
|
17674 | royalblue: "4169e1",
|
17675 | saddlebrown: "8b4513",
|
17676 | salmon: "fa8072",
|
17677 | sandybrown: "f4a460",
|
17678 | seagreen: "2e8b57",
|
17679 | seashell: "fff5ee",
|
17680 | sienna: "a0522d",
|
17681 | silver: "c0c0c0",
|
17682 | skyblue: "87ceeb",
|
17683 | slateblue: "6a5acd",
|
17684 | slategray: "708090",
|
17685 | slategrey: "708090",
|
17686 | snow: "fffafa",
|
17687 | springgreen: "00ff7f",
|
17688 | steelblue: "4682b4",
|
17689 | tan: "d2b48c",
|
17690 | teal: "008080",
|
17691 | thistle: "d8bfd8",
|
17692 | tomato: "ff6347",
|
17693 | turquoise: "40e0d0",
|
17694 | violet: "ee82ee",
|
17695 | wheat: "f5deb3",
|
17696 | white: "fff",
|
17697 | whitesmoke: "f5f5f5",
|
17698 | yellow: "ff0",
|
17699 | yellowgreen: "9acd32"
|
17700 | };
|
17701 | var hexNames = tinycolor2.hexNames = flip(names2);
|
17702 | function flip(o) {
|
17703 | var flipped = {};
|
17704 | for (var i in o) {
|
17705 | if (o.hasOwnProperty(i)) {
|
17706 | flipped[o[i]] = i;
|
17707 | }
|
17708 | }
|
17709 | return flipped;
|
17710 | }
|
17711 | function boundAlpha2(a) {
|
17712 | a = parseFloat(a);
|
17713 | if (isNaN(a) || a < 0 || a > 1) {
|
17714 | a = 1;
|
17715 | }
|
17716 | return a;
|
17717 | }
|
17718 | function bound012(n, max) {
|
17719 | if (isOnePointZero2(n)) {
|
17720 | n = "100%";
|
17721 | }
|
17722 | var processPercent = isPercentage2(n);
|
17723 | n = mathMin(max, mathMax(0, parseFloat(n)));
|
17724 | if (processPercent) {
|
17725 | n = parseInt(n * max, 10) / 100;
|
17726 | }
|
17727 | if (Math2.abs(n - max) < 1e-6) {
|
17728 | return 1;
|
17729 | }
|
17730 | return n % max / parseFloat(max);
|
17731 | }
|
17732 | function clamp01(val) {
|
17733 | return mathMin(1, mathMax(0, val));
|
17734 | }
|
17735 | function parseIntFromHex2(val) {
|
17736 | return parseInt(val, 16);
|
17737 | }
|
17738 | function isOnePointZero2(n) {
|
17739 | return typeof n == "string" && n.indexOf(".") != -1 && parseFloat(n) === 1;
|
17740 | }
|
17741 | function isPercentage2(n) {
|
17742 | return typeof n === "string" && n.indexOf("%") != -1;
|
17743 | }
|
17744 | function pad22(c) {
|
17745 | return c.length == 1 ? "0" + c : "" + c;
|
17746 | }
|
17747 | function convertToPercentage2(n) {
|
17748 | if (n <= 1) {
|
17749 | n = n * 100 + "%";
|
17750 | }
|
17751 | return n;
|
17752 | }
|
17753 | function convertDecimalToHex(d) {
|
17754 | return Math2.round(parseFloat(d) * 255).toString(16);
|
17755 | }
|
17756 | function convertHexToDecimal2(h) {
|
17757 | return parseIntFromHex2(h) / 255;
|
17758 | }
|
17759 | var matchers2 = function() {
|
17760 | var CSS_INTEGER2 = "[-\\+]?\\d+%?";
|
17761 | var CSS_NUMBER2 = "[-\\+]?\\d*\\.\\d+%?";
|
17762 | var CSS_UNIT2 = "(?:" + CSS_NUMBER2 + ")|(?:" + CSS_INTEGER2 + ")";
|
17763 | var PERMISSIVE_MATCH32 = "[\\s|\\(]+(" + CSS_UNIT2 + ")[,|\\s]+(" + CSS_UNIT2 + ")[,|\\s]+(" + CSS_UNIT2 + ")\\s*\\)?";
|
17764 | var PERMISSIVE_MATCH42 = "[\\s|\\(]+(" + CSS_UNIT2 + ")[,|\\s]+(" + CSS_UNIT2 + ")[,|\\s]+(" + CSS_UNIT2 + ")[,|\\s]+(" + CSS_UNIT2 + ")\\s*\\)?";
|
17765 | return {
|
17766 | CSS_UNIT: new RegExp(CSS_UNIT2),
|
17767 | rgb: new RegExp("rgb" + PERMISSIVE_MATCH32),
|
17768 | rgba: new RegExp("rgba" + PERMISSIVE_MATCH42),
|
17769 | hsl: new RegExp("hsl" + PERMISSIVE_MATCH32),
|
17770 | hsla: new RegExp("hsla" + PERMISSIVE_MATCH42),
|
17771 | hsv: new RegExp("hsv" + PERMISSIVE_MATCH32),
|
17772 | hsva: new RegExp("hsva" + PERMISSIVE_MATCH42),
|
17773 | hex3: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
17774 | hex6: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,
|
17775 | hex4: /^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,
|
17776 | hex8: /^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/
|
17777 | };
|
17778 | }();
|
17779 | function isValidCSSUnit2(color) {
|
17780 | return !!matchers2.CSS_UNIT.exec(color);
|
17781 | }
|
17782 | function stringInputToObject2(color) {
|
17783 | color = color.replace(trimLeft, "").replace(trimRight, "").toLowerCase();
|
17784 | var named = false;
|
17785 | if (names2[color]) {
|
17786 | color = names2[color];
|
17787 | named = true;
|
17788 | } else if (color == "transparent") {
|
17789 | return { r: 0, g: 0, b: 0, a: 0, format: "name" };
|
17790 | }
|
17791 | var match;
|
17792 | if (match = matchers2.rgb.exec(color)) {
|
17793 | return { r: match[1], g: match[2], b: match[3] };
|
17794 | }
|
17795 | if (match = matchers2.rgba.exec(color)) {
|
17796 | return { r: match[1], g: match[2], b: match[3], a: match[4] };
|
17797 | }
|
17798 | if (match = matchers2.hsl.exec(color)) {
|
17799 | return { h: match[1], s: match[2], l: match[3] };
|
17800 | }
|
17801 | if (match = matchers2.hsla.exec(color)) {
|
17802 | return { h: match[1], s: match[2], l: match[3], a: match[4] };
|
17803 | }
|
17804 | if (match = matchers2.hsv.exec(color)) {
|
17805 | return { h: match[1], s: match[2], v: match[3] };
|
17806 | }
|
17807 | if (match = matchers2.hsva.exec(color)) {
|
17808 | return { h: match[1], s: match[2], v: match[3], a: match[4] };
|
17809 | }
|
17810 | if (match = matchers2.hex8.exec(color)) {
|
17811 | return {
|
17812 | r: parseIntFromHex2(match[1]),
|
17813 | g: parseIntFromHex2(match[2]),
|
17814 | b: parseIntFromHex2(match[3]),
|
17815 | a: convertHexToDecimal2(match[4]),
|
17816 | format: named ? "name" : "hex8"
|
17817 | };
|
17818 | }
|
17819 | if (match = matchers2.hex6.exec(color)) {
|
17820 | return {
|
17821 | r: parseIntFromHex2(match[1]),
|
17822 | g: parseIntFromHex2(match[2]),
|
17823 | b: parseIntFromHex2(match[3]),
|
17824 | format: named ? "name" : "hex"
|
17825 | };
|
17826 | }
|
17827 | if (match = matchers2.hex4.exec(color)) {
|
17828 | return {
|
17829 | r: parseIntFromHex2(match[1] + "" + match[1]),
|
17830 | g: parseIntFromHex2(match[2] + "" + match[2]),
|
17831 | b: parseIntFromHex2(match[3] + "" + match[3]),
|
17832 | a: convertHexToDecimal2(match[4] + "" + match[4]),
|
17833 | format: named ? "name" : "hex8"
|
17834 | };
|
17835 | }
|
17836 | if (match = matchers2.hex3.exec(color)) {
|
17837 | return {
|
17838 | r: parseIntFromHex2(match[1] + "" + match[1]),
|
17839 | g: parseIntFromHex2(match[2] + "" + match[2]),
|
17840 | b: parseIntFromHex2(match[3] + "" + match[3]),
|
17841 | format: named ? "name" : "hex"
|
17842 | };
|
17843 | }
|
17844 | return false;
|
17845 | }
|
17846 | function validateWCAG2Parms(parms) {
|
17847 | var level, size;
|
17848 | parms = parms || { "level": "AA", "size": "small" };
|
17849 | level = (parms.level || "AA").toUpperCase();
|
17850 | size = (parms.size || "small").toLowerCase();
|
17851 | if (level !== "AA" && level !== "AAA") {
|
17852 | level = "AA";
|
17853 | }
|
17854 | if (size !== "small" && size !== "large") {
|
17855 | size = "small";
|
17856 | }
|
17857 | return { "level": level, "size": size };
|
17858 | }
|
17859 | if (module2.exports) {
|
17860 | module2.exports = tinycolor2;
|
17861 | } else {
|
17862 | window.tinycolor = tinycolor2;
|
17863 | }
|
17864 | })(Math);
|
17865 | })(tinycolor$1);
|
17866 | var tinycolor = tinycolor$1.exports;
|
17867 | var simpleCheckForValidColor = function simpleCheckForValidColor2(data) {
|
17868 | var keysToCheck = ["r", "g", "b", "a", "h", "s", "l", "v"];
|
17869 | var checked = 0;
|
17870 | var passed = 0;
|
17871 | forEach(keysToCheck, function(letter) {
|
17872 | if (data[letter]) {
|
17873 | checked += 1;
|
17874 | if (!isNaN(data[letter])) {
|
17875 | passed += 1;
|
17876 | }
|
17877 | if (letter === "s" || letter === "l") {
|
17878 | var percentPatt = /^\d+%$/;
|
17879 | if (percentPatt.test(data[letter])) {
|
17880 | passed += 1;
|
17881 | }
|
17882 | }
|
17883 | }
|
17884 | });
|
17885 | return checked === passed ? data : false;
|
17886 | };
|
17887 | var toState = function toState2(data, oldHue) {
|
17888 | var color = data.hex ? tinycolor(data.hex) : tinycolor(data);
|
17889 | var hsl = color.toHsl();
|
17890 | var hsv = color.toHsv();
|
17891 | var rgb = color.toRgb();
|
17892 | var hex = color.toHex();
|
17893 | if (hsl.s === 0) {
|
17894 | hsl.h = oldHue || 0;
|
17895 | hsv.h = oldHue || 0;
|
17896 | }
|
17897 | var transparent = hex === "000000" && rgb.a === 0;
|
17898 | return {
|
17899 | hsl,
|
17900 | hex: transparent ? "transparent" : "#" + hex,
|
17901 | rgb,
|
17902 | hsv,
|
17903 | oldHue: data.h || oldHue || hsl.h,
|
17904 | source: data.source
|
17905 | };
|
17906 | };
|
17907 | var isValidHex = function isValidHex2(hex) {
|
17908 | if (hex === "transparent") {
|
17909 | return true;
|
17910 | }
|
17911 | var lh = String(hex).charAt(0) === "#" ? 1 : 0;
|
17912 | return hex.length !== 4 + lh && hex.length < 7 + lh && tinycolor(hex).isValid();
|
17913 | };
|
17914 | var getContrastingColor = function getContrastingColor2(data) {
|
17915 | if (!data) {
|
17916 | return "#fff";
|
17917 | }
|
17918 | var col = toState(data);
|
17919 | if (col.hex === "transparent") {
|
17920 | return "rgba(0,0,0,0.4)";
|
17921 | }
|
17922 | var yiq = (col.rgb.r * 299 + col.rgb.g * 587 + col.rgb.b * 114) / 1e3;
|
17923 | return yiq >= 128 ? "#000" : "#fff";
|
17924 | };
|
17925 | var isvalidColorString = function isvalidColorString2(string, type) {
|
17926 | var stringWithoutDegree = string.replace("\xB0", "");
|
17927 | return tinycolor(type + " (" + stringWithoutDegree + ")")._ok;
|
17928 | };
|
17929 | var _extends$8 = Object.assign || function(target) {
|
17930 | for (var i = 1; i < arguments.length; i++) {
|
17931 | var source = arguments[i];
|
17932 | for (var key in source) {
|
17933 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
17934 | target[key] = source[key];
|
17935 | }
|
17936 | }
|
17937 | }
|
17938 | return target;
|
17939 | };
|
17940 | var _createClass$3 = function() {
|
17941 | function defineProperties(target, props) {
|
17942 | for (var i = 0; i < props.length; i++) {
|
17943 | var descriptor = props[i];
|
17944 | descriptor.enumerable = descriptor.enumerable || false;
|
17945 | descriptor.configurable = true;
|
17946 | if ("value" in descriptor)
|
17947 | descriptor.writable = true;
|
17948 | Object.defineProperty(target, descriptor.key, descriptor);
|
17949 | }
|
17950 | }
|
17951 | return function(Constructor, protoProps, staticProps) {
|
17952 | if (protoProps)
|
17953 | defineProperties(Constructor.prototype, protoProps);
|
17954 | if (staticProps)
|
17955 | defineProperties(Constructor, staticProps);
|
17956 | return Constructor;
|
17957 | };
|
17958 | }();
|
17959 | function _classCallCheck$3(instance, Constructor) {
|
17960 | if (!(instance instanceof Constructor)) {
|
17961 | throw new TypeError("Cannot call a class as a function");
|
17962 | }
|
17963 | }
|
17964 | function _possibleConstructorReturn$3(self2, call2) {
|
17965 | if (!self2) {
|
17966 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
17967 | }
|
17968 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
17969 | }
|
17970 | function _inherits$3(subClass, superClass) {
|
17971 | if (typeof superClass !== "function" && superClass !== null) {
|
17972 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
17973 | }
|
17974 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
17975 | if (superClass)
|
17976 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
17977 | }
|
17978 | var ColorWrap = function ColorWrap2(Picker) {
|
17979 | var ColorPicker = function(_ref) {
|
17980 | _inherits$3(ColorPicker2, _ref);
|
17981 | function ColorPicker2(props) {
|
17982 | _classCallCheck$3(this, ColorPicker2);
|
17983 | var _this = _possibleConstructorReturn$3(this, (ColorPicker2.__proto__ || Object.getPrototypeOf(ColorPicker2)).call(this));
|
17984 | _this.handleChange = function(data, event) {
|
17985 | var isValidColor = simpleCheckForValidColor(data);
|
17986 | if (isValidColor) {
|
17987 | var colors = toState(data, data.h || _this.state.oldHue);
|
17988 | _this.setState(colors);
|
17989 | _this.props.onChangeComplete && _this.debounce(_this.props.onChangeComplete, colors, event);
|
17990 | _this.props.onChange && _this.props.onChange(colors, event);
|
17991 | }
|
17992 | };
|
17993 | _this.handleSwatchHover = function(data, event) {
|
17994 | var isValidColor = simpleCheckForValidColor(data);
|
17995 | if (isValidColor) {
|
17996 | var colors = toState(data, data.h || _this.state.oldHue);
|
17997 | _this.props.onSwatchHover && _this.props.onSwatchHover(colors, event);
|
17998 | }
|
17999 | };
|
18000 | _this.state = _extends$8({}, toState(props.color, 0));
|
18001 | _this.debounce = debounce(function(fn, data, event) {
|
18002 | fn(data, event);
|
18003 | }, 100);
|
18004 | return _this;
|
18005 | }
|
18006 | _createClass$3(ColorPicker2, [{
|
18007 | key: "render",
|
18008 | value: function render3() {
|
18009 | var optionalEvents = {};
|
18010 | if (this.props.onSwatchHover) {
|
18011 | optionalEvents.onSwatchHover = this.handleSwatchHover;
|
18012 | }
|
18013 | return React__default.createElement(Picker, _extends$8({}, this.props, this.state, {
|
18014 | onChange: this.handleChange
|
18015 | }, optionalEvents));
|
18016 | }
|
18017 | }], [{
|
18018 | key: "getDerivedStateFromProps",
|
18019 | value: function getDerivedStateFromProps(nextProps, state) {
|
18020 | return _extends$8({}, toState(nextProps.color, state.oldHue));
|
18021 | }
|
18022 | }]);
|
18023 | return ColorPicker2;
|
18024 | }(PureComponent || Component);
|
18025 | ColorPicker.propTypes = _extends$8({}, Picker.propTypes);
|
18026 | ColorPicker.defaultProps = _extends$8({}, Picker.defaultProps, {
|
18027 | color: {
|
18028 | h: 250,
|
18029 | s: 0.5,
|
18030 | l: 0.2,
|
18031 | a: 1
|
18032 | }
|
18033 | });
|
18034 | return ColorPicker;
|
18035 | };
|
18036 | var _extends$7 = Object.assign || function(target) {
|
18037 | for (var i = 1; i < arguments.length; i++) {
|
18038 | var source = arguments[i];
|
18039 | for (var key in source) {
|
18040 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
18041 | target[key] = source[key];
|
18042 | }
|
18043 | }
|
18044 | }
|
18045 | return target;
|
18046 | };
|
18047 | var _createClass$2 = function() {
|
18048 | function defineProperties(target, props) {
|
18049 | for (var i = 0; i < props.length; i++) {
|
18050 | var descriptor = props[i];
|
18051 | descriptor.enumerable = descriptor.enumerable || false;
|
18052 | descriptor.configurable = true;
|
18053 | if ("value" in descriptor)
|
18054 | descriptor.writable = true;
|
18055 | Object.defineProperty(target, descriptor.key, descriptor);
|
18056 | }
|
18057 | }
|
18058 | return function(Constructor, protoProps, staticProps) {
|
18059 | if (protoProps)
|
18060 | defineProperties(Constructor.prototype, protoProps);
|
18061 | if (staticProps)
|
18062 | defineProperties(Constructor, staticProps);
|
18063 | return Constructor;
|
18064 | };
|
18065 | }();
|
18066 | function _classCallCheck$2(instance, Constructor) {
|
18067 | if (!(instance instanceof Constructor)) {
|
18068 | throw new TypeError("Cannot call a class as a function");
|
18069 | }
|
18070 | }
|
18071 | function _possibleConstructorReturn$2(self2, call2) {
|
18072 | if (!self2) {
|
18073 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
18074 | }
|
18075 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
18076 | }
|
18077 | function _inherits$2(subClass, superClass) {
|
18078 | if (typeof superClass !== "function" && superClass !== null) {
|
18079 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
18080 | }
|
18081 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
18082 | if (superClass)
|
18083 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
18084 | }
|
18085 | var handleFocus = function handleFocus2(Component2) {
|
18086 | var Span = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "span";
|
18087 | return function(_React$Component) {
|
18088 | _inherits$2(Focus, _React$Component);
|
18089 | function Focus() {
|
18090 | var _ref;
|
18091 | var _temp, _this, _ret;
|
18092 | _classCallCheck$2(this, Focus);
|
18093 | for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
18094 | args[_key] = arguments[_key];
|
18095 | }
|
18096 | return _ret = (_temp = (_this = _possibleConstructorReturn$2(this, (_ref = Focus.__proto__ || Object.getPrototypeOf(Focus)).call.apply(_ref, [this].concat(args))), _this), _this.state = { focus: false }, _this.handleFocus = function() {
|
18097 | return _this.setState({ focus: true });
|
18098 | }, _this.handleBlur = function() {
|
18099 | return _this.setState({ focus: false });
|
18100 | }, _temp), _possibleConstructorReturn$2(_this, _ret);
|
18101 | }
|
18102 | _createClass$2(Focus, [{
|
18103 | key: "render",
|
18104 | value: function render3() {
|
18105 | return React__default.createElement(Span, { onFocus: this.handleFocus, onBlur: this.handleBlur }, React__default.createElement(Component2, _extends$7({}, this.props, this.state)));
|
18106 | }
|
18107 | }]);
|
18108 | return Focus;
|
18109 | }(React__default.Component);
|
18110 | };
|
18111 | var _extends$6 = Object.assign || function(target) {
|
18112 | for (var i = 1; i < arguments.length; i++) {
|
18113 | var source = arguments[i];
|
18114 | for (var key in source) {
|
18115 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
18116 | target[key] = source[key];
|
18117 | }
|
18118 | }
|
18119 | }
|
18120 | return target;
|
18121 | };
|
18122 | var ENTER = 13;
|
18123 | var Swatch = function Swatch2(_ref) {
|
18124 | var color = _ref.color, style = _ref.style, _ref$onClick = _ref.onClick, onClick = _ref$onClick === void 0 ? function() {
|
18125 | } : _ref$onClick, onHover = _ref.onHover, _ref$title = _ref.title, title = _ref$title === void 0 ? color : _ref$title, children = _ref.children, focus = _ref.focus, _ref$focusStyle = _ref.focusStyle, focusStyle = _ref$focusStyle === void 0 ? {} : _ref$focusStyle;
|
18126 | var transparent = color === "transparent";
|
18127 | var styles = _default$2({
|
18128 | default: {
|
18129 | swatch: _extends$6({
|
18130 | background: color,
|
18131 | height: "100%",
|
18132 | width: "100%",
|
18133 | cursor: "pointer",
|
18134 | position: "relative",
|
18135 | outline: "none"
|
18136 | }, style, focus ? focusStyle : {})
|
18137 | }
|
18138 | });
|
18139 | var handleClick = function handleClick2(e) {
|
18140 | return onClick(color, e);
|
18141 | };
|
18142 | var handleKeyDown = function handleKeyDown2(e) {
|
18143 | return e.keyCode === ENTER && onClick(color, e);
|
18144 | };
|
18145 | var handleHover2 = function handleHover3(e) {
|
18146 | return onHover(color, e);
|
18147 | };
|
18148 | var optionalEvents = {};
|
18149 | if (onHover) {
|
18150 | optionalEvents.onMouseOver = handleHover2;
|
18151 | }
|
18152 | return React__default.createElement("div", _extends$6({
|
18153 | style: styles.swatch,
|
18154 | onClick: handleClick,
|
18155 | title,
|
18156 | tabIndex: 0,
|
18157 | onKeyDown: handleKeyDown
|
18158 | }, optionalEvents), children, transparent && React__default.createElement(Checkboard, {
|
18159 | borderRadius: styles.swatch.borderRadius,
|
18160 | boxShadow: "inset 0 0 0 1px rgba(0,0,0,0.1)"
|
18161 | }));
|
18162 | };
|
18163 | var Swatch$1 = handleFocus(Swatch);
|
18164 | var AlphaPointer = function AlphaPointer2(_ref) {
|
18165 | var direction = _ref.direction;
|
18166 | var styles = _default$2({
|
18167 | "default": {
|
18168 | picker: {
|
18169 | width: "18px",
|
18170 | height: "18px",
|
18171 | borderRadius: "50%",
|
18172 | transform: "translate(-9px, -1px)",
|
18173 | backgroundColor: "rgb(248, 248, 248)",
|
18174 | boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.37)"
|
18175 | }
|
18176 | },
|
18177 | "vertical": {
|
18178 | picker: {
|
18179 | transform: "translate(-3px, -9px)"
|
18180 | }
|
18181 | }
|
18182 | }, { vertical: direction === "vertical" });
|
18183 | return React__default.createElement("div", { style: styles.picker });
|
18184 | };
|
18185 | var _extends$5 = Object.assign || function(target) {
|
18186 | for (var i = 1; i < arguments.length; i++) {
|
18187 | var source = arguments[i];
|
18188 | for (var key in source) {
|
18189 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
18190 | target[key] = source[key];
|
18191 | }
|
18192 | }
|
18193 | }
|
18194 | return target;
|
18195 | };
|
18196 | var AlphaPicker = function AlphaPicker2(_ref) {
|
18197 | var rgb = _ref.rgb, hsl = _ref.hsl, width = _ref.width, height = _ref.height, onChange = _ref.onChange, direction = _ref.direction, style = _ref.style, renderers = _ref.renderers, pointer = _ref.pointer, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
18198 | var styles = _default$2({
|
18199 | "default": {
|
18200 | picker: {
|
18201 | position: "relative",
|
18202 | width,
|
18203 | height
|
18204 | },
|
18205 | alpha: {
|
18206 | radius: "2px",
|
18207 | style
|
18208 | }
|
18209 | }
|
18210 | });
|
18211 | return React__default.createElement("div", { style: styles.picker, className: "alpha-picker " + className }, React__default.createElement(Alpha, _extends$5({}, styles.alpha, {
|
18212 | rgb,
|
18213 | hsl,
|
18214 | pointer,
|
18215 | renderers,
|
18216 | onChange,
|
18217 | direction
|
18218 | })));
|
18219 | };
|
18220 | AlphaPicker.defaultProps = {
|
18221 | width: "316px",
|
18222 | height: "16px",
|
18223 | direction: "horizontal",
|
18224 | pointer: AlphaPointer
|
18225 | };
|
18226 | ColorWrap(AlphaPicker);
|
18227 | var BlockSwatches = function BlockSwatches2(_ref) {
|
18228 | var colors = _ref.colors, onClick = _ref.onClick, onSwatchHover = _ref.onSwatchHover;
|
18229 | var styles = _default$2({
|
18230 | "default": {
|
18231 | swatches: {
|
18232 | marginRight: "-10px"
|
18233 | },
|
18234 | swatch: {
|
18235 | width: "22px",
|
18236 | height: "22px",
|
18237 | float: "left",
|
18238 | marginRight: "10px",
|
18239 | marginBottom: "10px",
|
18240 | borderRadius: "4px"
|
18241 | },
|
18242 | clear: {
|
18243 | clear: "both"
|
18244 | }
|
18245 | }
|
18246 | });
|
18247 | return React__default.createElement("div", { style: styles.swatches }, map$1(colors, function(c) {
|
18248 | return React__default.createElement(Swatch$1, {
|
18249 | key: c,
|
18250 | color: c,
|
18251 | style: styles.swatch,
|
18252 | onClick,
|
18253 | onHover: onSwatchHover,
|
18254 | focusStyle: {
|
18255 | boxShadow: "0 0 4px " + c
|
18256 | }
|
18257 | });
|
18258 | }), React__default.createElement("div", { style: styles.clear }));
|
18259 | };
|
18260 | var Block = function Block2(_ref) {
|
18261 | var onChange = _ref.onChange, onSwatchHover = _ref.onSwatchHover, hex = _ref.hex, colors = _ref.colors, width = _ref.width, triangle = _ref.triangle, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
18262 | var transparent = hex === "transparent";
|
18263 | var handleChange = function handleChange2(hexCode, e) {
|
18264 | isValidHex(hexCode) && onChange({
|
18265 | hex: hexCode,
|
18266 | source: "hex"
|
18267 | }, e);
|
18268 | };
|
18269 | var styles = _default$2(merge$1({
|
18270 | "default": {
|
18271 | card: {
|
18272 | width,
|
18273 | background: "#fff",
|
18274 | boxShadow: "0 1px rgba(0,0,0,.1)",
|
18275 | borderRadius: "6px",
|
18276 | position: "relative"
|
18277 | },
|
18278 | head: {
|
18279 | height: "110px",
|
18280 | background: hex,
|
18281 | borderRadius: "6px 6px 0 0",
|
18282 | display: "flex",
|
18283 | alignItems: "center",
|
18284 | justifyContent: "center",
|
18285 | position: "relative"
|
18286 | },
|
18287 | body: {
|
18288 | padding: "10px"
|
18289 | },
|
18290 | label: {
|
18291 | fontSize: "18px",
|
18292 | color: getContrastingColor(hex),
|
18293 | position: "relative"
|
18294 | },
|
18295 | triangle: {
|
18296 | width: "0px",
|
18297 | height: "0px",
|
18298 | borderStyle: "solid",
|
18299 | borderWidth: "0 10px 10px 10px",
|
18300 | borderColor: "transparent transparent " + hex + " transparent",
|
18301 | position: "absolute",
|
18302 | top: "-10px",
|
18303 | left: "50%",
|
18304 | marginLeft: "-10px"
|
18305 | },
|
18306 | input: {
|
18307 | width: "100%",
|
18308 | fontSize: "12px",
|
18309 | color: "#666",
|
18310 | border: "0px",
|
18311 | outline: "none",
|
18312 | height: "22px",
|
18313 | boxShadow: "inset 0 0 0 1px #ddd",
|
18314 | borderRadius: "4px",
|
18315 | padding: "0 7px",
|
18316 | boxSizing: "border-box"
|
18317 | }
|
18318 | },
|
18319 | "hide-triangle": {
|
18320 | triangle: {
|
18321 | display: "none"
|
18322 | }
|
18323 | }
|
18324 | }, passedStyles), { "hide-triangle": triangle === "hide" });
|
18325 | return React__default.createElement("div", { style: styles.card, className: "block-picker " + className }, React__default.createElement("div", { style: styles.triangle }), React__default.createElement("div", { style: styles.head }, transparent && React__default.createElement(Checkboard, { borderRadius: "6px 6px 0 0" }), React__default.createElement("div", { style: styles.label }, hex)), React__default.createElement("div", { style: styles.body }, React__default.createElement(BlockSwatches, { colors, onClick: handleChange, onSwatchHover }), React__default.createElement(EditableInput, {
|
18326 | style: { input: styles.input },
|
18327 | value: hex,
|
18328 | onChange: handleChange
|
18329 | })));
|
18330 | };
|
18331 | Block.propTypes = {
|
18332 | width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
18333 | colors: PropTypes.arrayOf(PropTypes.string),
|
18334 | triangle: PropTypes.oneOf(["top", "hide"]),
|
18335 | styles: PropTypes.object
|
18336 | };
|
18337 | Block.defaultProps = {
|
18338 | width: 170,
|
18339 | colors: ["#D9E3F0", "#F47373", "#697689", "#37D67A", "#2CCCE4", "#555555", "#dce775", "#ff8a65", "#ba68c8"],
|
18340 | triangle: "top",
|
18341 | styles: {}
|
18342 | };
|
18343 | ColorWrap(Block);
|
18344 | var red = { "50": "#ffebee", "100": "#ffcdd2", "200": "#ef9a9a", "300": "#e57373", "400": "#ef5350", "500": "#f44336", "600": "#e53935", "700": "#d32f2f", "800": "#c62828", "900": "#b71c1c", "a100": "#ff8a80", "a200": "#ff5252", "a400": "#ff1744", "a700": "#d50000" };
|
18345 | var pink = { "50": "#fce4ec", "100": "#f8bbd0", "200": "#f48fb1", "300": "#f06292", "400": "#ec407a", "500": "#e91e63", "600": "#d81b60", "700": "#c2185b", "800": "#ad1457", "900": "#880e4f", "a100": "#ff80ab", "a200": "#ff4081", "a400": "#f50057", "a700": "#c51162" };
|
18346 | var purple = { "50": "#f3e5f5", "100": "#e1bee7", "200": "#ce93d8", "300": "#ba68c8", "400": "#ab47bc", "500": "#9c27b0", "600": "#8e24aa", "700": "#7b1fa2", "800": "#6a1b9a", "900": "#4a148c", "a100": "#ea80fc", "a200": "#e040fb", "a400": "#d500f9", "a700": "#aa00ff" };
|
18347 | var deepPurple = { "50": "#ede7f6", "100": "#d1c4e9", "200": "#b39ddb", "300": "#9575cd", "400": "#7e57c2", "500": "#673ab7", "600": "#5e35b1", "700": "#512da8", "800": "#4527a0", "900": "#311b92", "a100": "#b388ff", "a200": "#7c4dff", "a400": "#651fff", "a700": "#6200ea" };
|
18348 | var indigo = { "50": "#e8eaf6", "100": "#c5cae9", "200": "#9fa8da", "300": "#7986cb", "400": "#5c6bc0", "500": "#3f51b5", "600": "#3949ab", "700": "#303f9f", "800": "#283593", "900": "#1a237e", "a100": "#8c9eff", "a200": "#536dfe", "a400": "#3d5afe", "a700": "#304ffe" };
|
18349 | var blue = { "50": "#e3f2fd", "100": "#bbdefb", "200": "#90caf9", "300": "#64b5f6", "400": "#42a5f5", "500": "#2196f3", "600": "#1e88e5", "700": "#1976d2", "800": "#1565c0", "900": "#0d47a1", "a100": "#82b1ff", "a200": "#448aff", "a400": "#2979ff", "a700": "#2962ff" };
|
18350 | var lightBlue = { "50": "#e1f5fe", "100": "#b3e5fc", "200": "#81d4fa", "300": "#4fc3f7", "400": "#29b6f6", "500": "#03a9f4", "600": "#039be5", "700": "#0288d1", "800": "#0277bd", "900": "#01579b", "a100": "#80d8ff", "a200": "#40c4ff", "a400": "#00b0ff", "a700": "#0091ea" };
|
18351 | var cyan = { "50": "#e0f7fa", "100": "#b2ebf2", "200": "#80deea", "300": "#4dd0e1", "400": "#26c6da", "500": "#00bcd4", "600": "#00acc1", "700": "#0097a7", "800": "#00838f", "900": "#006064", "a100": "#84ffff", "a200": "#18ffff", "a400": "#00e5ff", "a700": "#00b8d4" };
|
18352 | var teal = { "50": "#e0f2f1", "100": "#b2dfdb", "200": "#80cbc4", "300": "#4db6ac", "400": "#26a69a", "500": "#009688", "600": "#00897b", "700": "#00796b", "800": "#00695c", "900": "#004d40", "a100": "#a7ffeb", "a200": "#64ffda", "a400": "#1de9b6", "a700": "#00bfa5" };
|
18353 | var green = { "50": "#e8f5e9", "100": "#c8e6c9", "200": "#a5d6a7", "300": "#81c784", "400": "#66bb6a", "500": "#4caf50", "600": "#43a047", "700": "#388e3c", "800": "#2e7d32", "900": "#1b5e20", "a100": "#b9f6ca", "a200": "#69f0ae", "a400": "#00e676", "a700": "#00c853" };
|
18354 | var lightGreen = { "50": "#f1f8e9", "100": "#dcedc8", "200": "#c5e1a5", "300": "#aed581", "400": "#9ccc65", "500": "#8bc34a", "600": "#7cb342", "700": "#689f38", "800": "#558b2f", "900": "#33691e", "a100": "#ccff90", "a200": "#b2ff59", "a400": "#76ff03", "a700": "#64dd17" };
|
18355 | var lime = { "50": "#f9fbe7", "100": "#f0f4c3", "200": "#e6ee9c", "300": "#dce775", "400": "#d4e157", "500": "#cddc39", "600": "#c0ca33", "700": "#afb42b", "800": "#9e9d24", "900": "#827717", "a100": "#f4ff81", "a200": "#eeff41", "a400": "#c6ff00", "a700": "#aeea00" };
|
18356 | var yellow = { "50": "#fffde7", "100": "#fff9c4", "200": "#fff59d", "300": "#fff176", "400": "#ffee58", "500": "#ffeb3b", "600": "#fdd835", "700": "#fbc02d", "800": "#f9a825", "900": "#f57f17", "a100": "#ffff8d", "a200": "#ffff00", "a400": "#ffea00", "a700": "#ffd600" };
|
18357 | var amber = { "50": "#fff8e1", "100": "#ffecb3", "200": "#ffe082", "300": "#ffd54f", "400": "#ffca28", "500": "#ffc107", "600": "#ffb300", "700": "#ffa000", "800": "#ff8f00", "900": "#ff6f00", "a100": "#ffe57f", "a200": "#ffd740", "a400": "#ffc400", "a700": "#ffab00" };
|
18358 | var orange = { "50": "#fff3e0", "100": "#ffe0b2", "200": "#ffcc80", "300": "#ffb74d", "400": "#ffa726", "500": "#ff9800", "600": "#fb8c00", "700": "#f57c00", "800": "#ef6c00", "900": "#e65100", "a100": "#ffd180", "a200": "#ffab40", "a400": "#ff9100", "a700": "#ff6d00" };
|
18359 | var deepOrange = { "50": "#fbe9e7", "100": "#ffccbc", "200": "#ffab91", "300": "#ff8a65", "400": "#ff7043", "500": "#ff5722", "600": "#f4511e", "700": "#e64a19", "800": "#d84315", "900": "#bf360c", "a100": "#ff9e80", "a200": "#ff6e40", "a400": "#ff3d00", "a700": "#dd2c00" };
|
18360 | var brown = { "50": "#efebe9", "100": "#d7ccc8", "200": "#bcaaa4", "300": "#a1887f", "400": "#8d6e63", "500": "#795548", "600": "#6d4c41", "700": "#5d4037", "800": "#4e342e", "900": "#3e2723" };
|
18361 | var blueGrey = { "50": "#eceff1", "100": "#cfd8dc", "200": "#b0bec5", "300": "#90a4ae", "400": "#78909c", "500": "#607d8b", "600": "#546e7a", "700": "#455a64", "800": "#37474f", "900": "#263238" };
|
18362 | var CircleSwatch = function CircleSwatch2(_ref) {
|
18363 | var color = _ref.color, onClick = _ref.onClick, onSwatchHover = _ref.onSwatchHover, hover3 = _ref.hover, active3 = _ref.active, circleSize = _ref.circleSize, circleSpacing = _ref.circleSpacing;
|
18364 | var styles = _default$2({
|
18365 | "default": {
|
18366 | swatch: {
|
18367 | width: circleSize,
|
18368 | height: circleSize,
|
18369 | marginRight: circleSpacing,
|
18370 | marginBottom: circleSpacing,
|
18371 | transform: "scale(1)",
|
18372 | transition: "100ms transform ease"
|
18373 | },
|
18374 | Swatch: {
|
18375 | borderRadius: "50%",
|
18376 | background: "transparent",
|
18377 | boxShadow: "inset 0 0 0 " + (circleSize / 2 + 1) + "px " + color,
|
18378 | transition: "100ms box-shadow ease"
|
18379 | }
|
18380 | },
|
18381 | "hover": {
|
18382 | swatch: {
|
18383 | transform: "scale(1.2)"
|
18384 | }
|
18385 | },
|
18386 | "active": {
|
18387 | Swatch: {
|
18388 | boxShadow: "inset 0 0 0 3px " + color
|
18389 | }
|
18390 | }
|
18391 | }, { hover: hover3, active: active3 });
|
18392 | return React__default.createElement("div", { style: styles.swatch }, React__default.createElement(Swatch$1, {
|
18393 | style: styles.Swatch,
|
18394 | color,
|
18395 | onClick,
|
18396 | onHover: onSwatchHover,
|
18397 | focusStyle: { boxShadow: styles.Swatch.boxShadow + ", 0 0 5px " + color }
|
18398 | }));
|
18399 | };
|
18400 | CircleSwatch.defaultProps = {
|
18401 | circleSize: 28,
|
18402 | circleSpacing: 14
|
18403 | };
|
18404 | var CircleSwatch$1 = handleHover(CircleSwatch);
|
18405 | var Circle = function Circle2(_ref) {
|
18406 | var width = _ref.width, onChange = _ref.onChange, onSwatchHover = _ref.onSwatchHover, colors = _ref.colors, hex = _ref.hex, circleSize = _ref.circleSize, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, circleSpacing = _ref.circleSpacing, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
18407 | var styles = _default$2(merge$1({
|
18408 | "default": {
|
18409 | card: {
|
18410 | width,
|
18411 | display: "flex",
|
18412 | flexWrap: "wrap",
|
18413 | marginRight: -circleSpacing,
|
18414 | marginBottom: -circleSpacing
|
18415 | }
|
18416 | }
|
18417 | }, passedStyles));
|
18418 | var handleChange = function handleChange2(hexCode, e) {
|
18419 | return onChange({ hex: hexCode, source: "hex" }, e);
|
18420 | };
|
18421 | return React__default.createElement("div", { style: styles.card, className: "circle-picker " + className }, map$1(colors, function(c) {
|
18422 | return React__default.createElement(CircleSwatch$1, {
|
18423 | key: c,
|
18424 | color: c,
|
18425 | onClick: handleChange,
|
18426 | onSwatchHover,
|
18427 | active: hex === c.toLowerCase(),
|
18428 | circleSize,
|
18429 | circleSpacing
|
18430 | });
|
18431 | }));
|
18432 | };
|
18433 | Circle.propTypes = {
|
18434 | width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
18435 | circleSize: PropTypes.number,
|
18436 | circleSpacing: PropTypes.number,
|
18437 | styles: PropTypes.object
|
18438 | };
|
18439 | Circle.defaultProps = {
|
18440 | width: 252,
|
18441 | circleSize: 28,
|
18442 | circleSpacing: 14,
|
18443 | colors: [red["500"], pink["500"], purple["500"], deepPurple["500"], indigo["500"], blue["500"], lightBlue["500"], cyan["500"], teal["500"], green["500"], lightGreen["500"], lime["500"], yellow["500"], amber["500"], orange["500"], deepOrange["500"], brown["500"], blueGrey["500"]],
|
18444 | styles: {}
|
18445 | };
|
18446 | ColorWrap(Circle);
|
18447 | var UnfoldMoreHorizontalIcon = {};
|
18448 | Object.defineProperty(UnfoldMoreHorizontalIcon, "__esModule", {
|
18449 | value: true
|
18450 | });
|
18451 | var _extends$4 = Object.assign || function(target) {
|
18452 | for (var i = 1; i < arguments.length; i++) {
|
18453 | var source = arguments[i];
|
18454 | for (var key in source) {
|
18455 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
18456 | target[key] = source[key];
|
18457 | }
|
18458 | }
|
18459 | }
|
18460 | return target;
|
18461 | };
|
18462 | var _react$1 = React__default;
|
18463 | var _react2$1 = _interopRequireDefault$1(_react$1);
|
18464 | function _interopRequireDefault$1(obj) {
|
18465 | return obj && obj.__esModule ? obj : { default: obj };
|
18466 | }
|
18467 | function _objectWithoutProperties$1(obj, keys2) {
|
18468 | var target = {};
|
18469 | for (var i in obj) {
|
18470 | if (keys2.indexOf(i) >= 0)
|
18471 | continue;
|
18472 | if (!Object.prototype.hasOwnProperty.call(obj, i))
|
18473 | continue;
|
18474 | target[i] = obj[i];
|
18475 | }
|
18476 | return target;
|
18477 | }
|
18478 | var DEFAULT_SIZE$1 = 24;
|
18479 | var _default$1 = UnfoldMoreHorizontalIcon.default = function(_ref) {
|
18480 | var _ref$fill = _ref.fill, fill = _ref$fill === void 0 ? "currentColor" : _ref$fill, _ref$width = _ref.width, width = _ref$width === void 0 ? DEFAULT_SIZE$1 : _ref$width, _ref$height = _ref.height, height = _ref$height === void 0 ? DEFAULT_SIZE$1 : _ref$height, _ref$style = _ref.style, style = _ref$style === void 0 ? {} : _ref$style, props = _objectWithoutProperties$1(_ref, ["fill", "width", "height", "style"]);
|
18481 | return _react2$1.default.createElement("svg", _extends$4({
|
18482 | viewBox: "0 0 " + DEFAULT_SIZE$1 + " " + DEFAULT_SIZE$1,
|
18483 | style: _extends$4({ fill, width, height }, style)
|
18484 | }, props), _react2$1.default.createElement("path", { d: "M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z" }));
|
18485 | };
|
18486 | var _createClass$1 = function() {
|
18487 | function defineProperties(target, props) {
|
18488 | for (var i = 0; i < props.length; i++) {
|
18489 | var descriptor = props[i];
|
18490 | descriptor.enumerable = descriptor.enumerable || false;
|
18491 | descriptor.configurable = true;
|
18492 | if ("value" in descriptor)
|
18493 | descriptor.writable = true;
|
18494 | Object.defineProperty(target, descriptor.key, descriptor);
|
18495 | }
|
18496 | }
|
18497 | return function(Constructor, protoProps, staticProps) {
|
18498 | if (protoProps)
|
18499 | defineProperties(Constructor.prototype, protoProps);
|
18500 | if (staticProps)
|
18501 | defineProperties(Constructor, staticProps);
|
18502 | return Constructor;
|
18503 | };
|
18504 | }();
|
18505 | function _classCallCheck$1(instance, Constructor) {
|
18506 | if (!(instance instanceof Constructor)) {
|
18507 | throw new TypeError("Cannot call a class as a function");
|
18508 | }
|
18509 | }
|
18510 | function _possibleConstructorReturn$1(self2, call2) {
|
18511 | if (!self2) {
|
18512 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
18513 | }
|
18514 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
18515 | }
|
18516 | function _inherits$1(subClass, superClass) {
|
18517 | if (typeof superClass !== "function" && superClass !== null) {
|
18518 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
18519 | }
|
18520 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
18521 | if (superClass)
|
18522 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
18523 | }
|
18524 | var ChromeFields = function(_React$Component) {
|
18525 | _inherits$1(ChromeFields2, _React$Component);
|
18526 | function ChromeFields2(props) {
|
18527 | _classCallCheck$1(this, ChromeFields2);
|
18528 | var _this = _possibleConstructorReturn$1(this, (ChromeFields2.__proto__ || Object.getPrototypeOf(ChromeFields2)).call(this));
|
18529 | _this.toggleViews = function() {
|
18530 | if (_this.state.view === "hex") {
|
18531 | _this.setState({ view: "rgb" });
|
18532 | } else if (_this.state.view === "rgb") {
|
18533 | _this.setState({ view: "hsl" });
|
18534 | } else if (_this.state.view === "hsl") {
|
18535 | if (_this.props.hsl.a === 1) {
|
18536 | _this.setState({ view: "hex" });
|
18537 | } else {
|
18538 | _this.setState({ view: "rgb" });
|
18539 | }
|
18540 | }
|
18541 | };
|
18542 | _this.handleChange = function(data, e) {
|
18543 | if (data.hex) {
|
18544 | isValidHex(data.hex) && _this.props.onChange({
|
18545 | hex: data.hex,
|
18546 | source: "hex"
|
18547 | }, e);
|
18548 | } else if (data.r || data.g || data.b) {
|
18549 | _this.props.onChange({
|
18550 | r: data.r || _this.props.rgb.r,
|
18551 | g: data.g || _this.props.rgb.g,
|
18552 | b: data.b || _this.props.rgb.b,
|
18553 | source: "rgb"
|
18554 | }, e);
|
18555 | } else if (data.a) {
|
18556 | if (data.a < 0) {
|
18557 | data.a = 0;
|
18558 | } else if (data.a > 1) {
|
18559 | data.a = 1;
|
18560 | }
|
18561 | _this.props.onChange({
|
18562 | h: _this.props.hsl.h,
|
18563 | s: _this.props.hsl.s,
|
18564 | l: _this.props.hsl.l,
|
18565 | a: Math.round(data.a * 100) / 100,
|
18566 | source: "rgb"
|
18567 | }, e);
|
18568 | } else if (data.h || data.s || data.l) {
|
18569 | if (typeof data.s === "string" && data.s.includes("%")) {
|
18570 | data.s = data.s.replace("%", "");
|
18571 | }
|
18572 | if (typeof data.l === "string" && data.l.includes("%")) {
|
18573 | data.l = data.l.replace("%", "");
|
18574 | }
|
18575 | if (data.s == 1) {
|
18576 | data.s = 0.01;
|
18577 | } else if (data.l == 1) {
|
18578 | data.l = 0.01;
|
18579 | }
|
18580 | _this.props.onChange({
|
18581 | h: data.h || _this.props.hsl.h,
|
18582 | s: Number(!isUndefined(data.s) ? data.s : _this.props.hsl.s),
|
18583 | l: Number(!isUndefined(data.l) ? data.l : _this.props.hsl.l),
|
18584 | source: "hsl"
|
18585 | }, e);
|
18586 | }
|
18587 | };
|
18588 | _this.showHighlight = function(e) {
|
18589 | e.currentTarget.style.background = "#eee";
|
18590 | };
|
18591 | _this.hideHighlight = function(e) {
|
18592 | e.currentTarget.style.background = "transparent";
|
18593 | };
|
18594 | if (props.hsl.a !== 1 && props.view === "hex") {
|
18595 | _this.state = {
|
18596 | view: "rgb"
|
18597 | };
|
18598 | } else {
|
18599 | _this.state = {
|
18600 | view: props.view
|
18601 | };
|
18602 | }
|
18603 | return _this;
|
18604 | }
|
18605 | _createClass$1(ChromeFields2, [{
|
18606 | key: "render",
|
18607 | value: function render3() {
|
18608 | var _this2 = this;
|
18609 | var styles = _default$2({
|
18610 | "default": {
|
18611 | wrap: {
|
18612 | paddingTop: "16px",
|
18613 | display: "flex"
|
18614 | },
|
18615 | fields: {
|
18616 | flex: "1",
|
18617 | display: "flex",
|
18618 | marginLeft: "-6px"
|
18619 | },
|
18620 | field: {
|
18621 | paddingLeft: "6px",
|
18622 | width: "100%"
|
18623 | },
|
18624 | alpha: {
|
18625 | paddingLeft: "6px",
|
18626 | width: "100%"
|
18627 | },
|
18628 | toggle: {
|
18629 | width: "32px",
|
18630 | textAlign: "right",
|
18631 | position: "relative"
|
18632 | },
|
18633 | icon: {
|
18634 | marginRight: "-4px",
|
18635 | marginTop: "12px",
|
18636 | cursor: "pointer",
|
18637 | position: "relative"
|
18638 | },
|
18639 | iconHighlight: {
|
18640 | position: "absolute",
|
18641 | width: "24px",
|
18642 | height: "28px",
|
18643 | background: "#eee",
|
18644 | borderRadius: "4px",
|
18645 | top: "10px",
|
18646 | left: "12px",
|
18647 | display: "none"
|
18648 | },
|
18649 | input: {
|
18650 | fontSize: "11px",
|
18651 | color: "#333",
|
18652 | width: "100%",
|
18653 | borderRadius: "2px",
|
18654 | border: "none",
|
18655 | boxShadow: "inset 0 0 0 1px #dadada",
|
18656 | height: "21px",
|
18657 | textAlign: "center"
|
18658 | },
|
18659 | label: {
|
18660 | textTransform: "uppercase",
|
18661 | fontSize: "11px",
|
18662 | lineHeight: "11px",
|
18663 | color: "#969696",
|
18664 | textAlign: "center",
|
18665 | display: "block",
|
18666 | marginTop: "12px"
|
18667 | },
|
18668 | svg: {
|
18669 | fill: "#333",
|
18670 | width: "24px",
|
18671 | height: "24px",
|
18672 | border: "1px transparent solid",
|
18673 | borderRadius: "5px"
|
18674 | }
|
18675 | },
|
18676 | "disableAlpha": {
|
18677 | alpha: {
|
18678 | display: "none"
|
18679 | }
|
18680 | }
|
18681 | }, this.props, this.state);
|
18682 | var fields = void 0;
|
18683 | if (this.state.view === "hex") {
|
18684 | fields = React__default.createElement("div", { style: styles.fields, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.field }, React__default.createElement(EditableInput, {
|
18685 | style: { input: styles.input, label: styles.label },
|
18686 | label: "hex",
|
18687 | value: this.props.hex,
|
18688 | onChange: this.handleChange
|
18689 | })));
|
18690 | } else if (this.state.view === "rgb") {
|
18691 | fields = React__default.createElement("div", { style: styles.fields, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.field }, React__default.createElement(EditableInput, {
|
18692 | style: { input: styles.input, label: styles.label },
|
18693 | label: "r",
|
18694 | value: this.props.rgb.r,
|
18695 | onChange: this.handleChange
|
18696 | })), React__default.createElement("div", { style: styles.field }, React__default.createElement(EditableInput, {
|
18697 | style: { input: styles.input, label: styles.label },
|
18698 | label: "g",
|
18699 | value: this.props.rgb.g,
|
18700 | onChange: this.handleChange
|
18701 | })), React__default.createElement("div", { style: styles.field }, React__default.createElement(EditableInput, {
|
18702 | style: { input: styles.input, label: styles.label },
|
18703 | label: "b",
|
18704 | value: this.props.rgb.b,
|
18705 | onChange: this.handleChange
|
18706 | })), React__default.createElement("div", { style: styles.alpha }, React__default.createElement(EditableInput, {
|
18707 | style: { input: styles.input, label: styles.label },
|
18708 | label: "a",
|
18709 | value: this.props.rgb.a,
|
18710 | arrowOffset: 0.01,
|
18711 | onChange: this.handleChange
|
18712 | })));
|
18713 | } else if (this.state.view === "hsl") {
|
18714 | fields = React__default.createElement("div", { style: styles.fields, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.field }, React__default.createElement(EditableInput, {
|
18715 | style: { input: styles.input, label: styles.label },
|
18716 | label: "h",
|
18717 | value: Math.round(this.props.hsl.h),
|
18718 | onChange: this.handleChange
|
18719 | })), React__default.createElement("div", { style: styles.field }, React__default.createElement(EditableInput, {
|
18720 | style: { input: styles.input, label: styles.label },
|
18721 | label: "s",
|
18722 | value: Math.round(this.props.hsl.s * 100) + "%",
|
18723 | onChange: this.handleChange
|
18724 | })), React__default.createElement("div", { style: styles.field }, React__default.createElement(EditableInput, {
|
18725 | style: { input: styles.input, label: styles.label },
|
18726 | label: "l",
|
18727 | value: Math.round(this.props.hsl.l * 100) + "%",
|
18728 | onChange: this.handleChange
|
18729 | })), React__default.createElement("div", { style: styles.alpha }, React__default.createElement(EditableInput, {
|
18730 | style: { input: styles.input, label: styles.label },
|
18731 | label: "a",
|
18732 | value: this.props.hsl.a,
|
18733 | arrowOffset: 0.01,
|
18734 | onChange: this.handleChange
|
18735 | })));
|
18736 | }
|
18737 | return React__default.createElement("div", { style: styles.wrap, className: "flexbox-fix" }, fields, React__default.createElement("div", { style: styles.toggle }, React__default.createElement("div", { style: styles.icon, onClick: this.toggleViews, ref: function ref(icon) {
|
18738 | return _this2.icon = icon;
|
18739 | } }, React__default.createElement(_default$1, {
|
18740 | style: styles.svg,
|
18741 | onMouseOver: this.showHighlight,
|
18742 | onMouseEnter: this.showHighlight,
|
18743 | onMouseOut: this.hideHighlight
|
18744 | }))));
|
18745 | }
|
18746 | }], [{
|
18747 | key: "getDerivedStateFromProps",
|
18748 | value: function getDerivedStateFromProps(nextProps, state) {
|
18749 | if (nextProps.hsl.a !== 1 && state.view === "hex") {
|
18750 | return { view: "rgb" };
|
18751 | }
|
18752 | return null;
|
18753 | }
|
18754 | }]);
|
18755 | return ChromeFields2;
|
18756 | }(React__default.Component);
|
18757 | ChromeFields.defaultProps = {
|
18758 | view: "hex"
|
18759 | };
|
18760 | var ChromePointer = function ChromePointer2() {
|
18761 | var styles = _default$2({
|
18762 | "default": {
|
18763 | picker: {
|
18764 | width: "12px",
|
18765 | height: "12px",
|
18766 | borderRadius: "6px",
|
18767 | transform: "translate(-6px, -1px)",
|
18768 | backgroundColor: "rgb(248, 248, 248)",
|
18769 | boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.37)"
|
18770 | }
|
18771 | }
|
18772 | });
|
18773 | return React__default.createElement("div", { style: styles.picker });
|
18774 | };
|
18775 | var ChromePointerCircle = function ChromePointerCircle2() {
|
18776 | var styles = _default$2({
|
18777 | "default": {
|
18778 | picker: {
|
18779 | width: "12px",
|
18780 | height: "12px",
|
18781 | borderRadius: "6px",
|
18782 | boxShadow: "inset 0 0 0 1px #fff",
|
18783 | transform: "translate(-6px, -6px)"
|
18784 | }
|
18785 | }
|
18786 | });
|
18787 | return React__default.createElement("div", { style: styles.picker });
|
18788 | };
|
18789 | var Chrome = function Chrome2(_ref) {
|
18790 | var width = _ref.width, onChange = _ref.onChange, disableAlpha = _ref.disableAlpha, rgb = _ref.rgb, hsl = _ref.hsl, hsv = _ref.hsv, hex = _ref.hex, renderers = _ref.renderers, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className, defaultView = _ref.defaultView;
|
18791 | var styles = _default$2(merge$1({
|
18792 | "default": {
|
18793 | picker: {
|
18794 | width,
|
18795 | background: "#fff",
|
18796 | borderRadius: "2px",
|
18797 | boxShadow: "0 0 2px rgba(0,0,0,.3), 0 4px 8px rgba(0,0,0,.3)",
|
18798 | boxSizing: "initial",
|
18799 | fontFamily: "Menlo"
|
18800 | },
|
18801 | saturation: {
|
18802 | width: "100%",
|
18803 | paddingBottom: "55%",
|
18804 | position: "relative",
|
18805 | borderRadius: "2px 2px 0 0",
|
18806 | overflow: "hidden"
|
18807 | },
|
18808 | Saturation: {
|
18809 | radius: "2px 2px 0 0"
|
18810 | },
|
18811 | body: {
|
18812 | padding: "16px 16px 12px"
|
18813 | },
|
18814 | controls: {
|
18815 | display: "flex"
|
18816 | },
|
18817 | color: {
|
18818 | width: "32px"
|
18819 | },
|
18820 | swatch: {
|
18821 | marginTop: "6px",
|
18822 | width: "16px",
|
18823 | height: "16px",
|
18824 | borderRadius: "8px",
|
18825 | position: "relative",
|
18826 | overflow: "hidden"
|
18827 | },
|
18828 | active: {
|
18829 | absolute: "0px 0px 0px 0px",
|
18830 | borderRadius: "8px",
|
18831 | boxShadow: "inset 0 0 0 1px rgba(0,0,0,.1)",
|
18832 | background: "rgba(" + rgb.r + ", " + rgb.g + ", " + rgb.b + ", " + rgb.a + ")",
|
18833 | zIndex: "2"
|
18834 | },
|
18835 | toggles: {
|
18836 | flex: "1"
|
18837 | },
|
18838 | hue: {
|
18839 | height: "10px",
|
18840 | position: "relative",
|
18841 | marginBottom: "8px"
|
18842 | },
|
18843 | Hue: {
|
18844 | radius: "2px"
|
18845 | },
|
18846 | alpha: {
|
18847 | height: "10px",
|
18848 | position: "relative"
|
18849 | },
|
18850 | Alpha: {
|
18851 | radius: "2px"
|
18852 | }
|
18853 | },
|
18854 | "disableAlpha": {
|
18855 | color: {
|
18856 | width: "22px"
|
18857 | },
|
18858 | alpha: {
|
18859 | display: "none"
|
18860 | },
|
18861 | hue: {
|
18862 | marginBottom: "0px"
|
18863 | },
|
18864 | swatch: {
|
18865 | width: "10px",
|
18866 | height: "10px",
|
18867 | marginTop: "0px"
|
18868 | }
|
18869 | }
|
18870 | }, passedStyles), { disableAlpha });
|
18871 | return React__default.createElement("div", { style: styles.picker, className: "chrome-picker " + className }, React__default.createElement("div", { style: styles.saturation }, React__default.createElement(Saturation, {
|
18872 | style: styles.Saturation,
|
18873 | hsl,
|
18874 | hsv,
|
18875 | pointer: ChromePointerCircle,
|
18876 | onChange
|
18877 | })), React__default.createElement("div", { style: styles.body }, React__default.createElement("div", { style: styles.controls, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.color }, React__default.createElement("div", { style: styles.swatch }, React__default.createElement("div", { style: styles.active }), React__default.createElement(Checkboard, { renderers }))), React__default.createElement("div", { style: styles.toggles }, React__default.createElement("div", { style: styles.hue }, React__default.createElement(Hue, {
|
18878 | style: styles.Hue,
|
18879 | hsl,
|
18880 | pointer: ChromePointer,
|
18881 | onChange
|
18882 | })), React__default.createElement("div", { style: styles.alpha }, React__default.createElement(Alpha, {
|
18883 | style: styles.Alpha,
|
18884 | rgb,
|
18885 | hsl,
|
18886 | pointer: ChromePointer,
|
18887 | renderers,
|
18888 | onChange
|
18889 | })))), React__default.createElement(ChromeFields, {
|
18890 | rgb,
|
18891 | hsl,
|
18892 | hex,
|
18893 | view: defaultView,
|
18894 | onChange,
|
18895 | disableAlpha
|
18896 | })));
|
18897 | };
|
18898 | Chrome.propTypes = {
|
18899 | width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
18900 | disableAlpha: PropTypes.bool,
|
18901 | styles: PropTypes.object,
|
18902 | defaultView: PropTypes.oneOf(["hex", "rgb", "hsl"])
|
18903 | };
|
18904 | Chrome.defaultProps = {
|
18905 | width: 225,
|
18906 | disableAlpha: false,
|
18907 | styles: {}
|
18908 | };
|
18909 | ColorWrap(Chrome);
|
18910 | var CompactColor = function CompactColor2(_ref) {
|
18911 | var color = _ref.color, _ref$onClick = _ref.onClick, onClick = _ref$onClick === void 0 ? function() {
|
18912 | } : _ref$onClick, onSwatchHover = _ref.onSwatchHover, active3 = _ref.active;
|
18913 | var styles = _default$2({
|
18914 | "default": {
|
18915 | color: {
|
18916 | background: color,
|
18917 | width: "15px",
|
18918 | height: "15px",
|
18919 | float: "left",
|
18920 | marginRight: "5px",
|
18921 | marginBottom: "5px",
|
18922 | position: "relative",
|
18923 | cursor: "pointer"
|
18924 | },
|
18925 | dot: {
|
18926 | absolute: "5px 5px 5px 5px",
|
18927 | background: getContrastingColor(color),
|
18928 | borderRadius: "50%",
|
18929 | opacity: "0"
|
18930 | }
|
18931 | },
|
18932 | "active": {
|
18933 | dot: {
|
18934 | opacity: "1"
|
18935 | }
|
18936 | },
|
18937 | "color-#FFFFFF": {
|
18938 | color: {
|
18939 | boxShadow: "inset 0 0 0 1px #ddd"
|
18940 | },
|
18941 | dot: {
|
18942 | background: "#000"
|
18943 | }
|
18944 | },
|
18945 | "transparent": {
|
18946 | dot: {
|
18947 | background: "#000"
|
18948 | }
|
18949 | }
|
18950 | }, { active: active3, "color-#FFFFFF": color === "#FFFFFF", "transparent": color === "transparent" });
|
18951 | return React__default.createElement(Swatch$1, {
|
18952 | style: styles.color,
|
18953 | color,
|
18954 | onClick,
|
18955 | onHover: onSwatchHover,
|
18956 | focusStyle: { boxShadow: "0 0 4px " + color }
|
18957 | }, React__default.createElement("div", { style: styles.dot }));
|
18958 | };
|
18959 | var CompactFields = function CompactFields2(_ref) {
|
18960 | var hex = _ref.hex, rgb = _ref.rgb, onChange = _ref.onChange;
|
18961 | var styles = _default$2({
|
18962 | "default": {
|
18963 | fields: {
|
18964 | display: "flex",
|
18965 | paddingBottom: "6px",
|
18966 | paddingRight: "5px",
|
18967 | position: "relative"
|
18968 | },
|
18969 | active: {
|
18970 | position: "absolute",
|
18971 | top: "6px",
|
18972 | left: "5px",
|
18973 | height: "9px",
|
18974 | width: "9px",
|
18975 | background: hex
|
18976 | },
|
18977 | HEXwrap: {
|
18978 | flex: "6",
|
18979 | position: "relative"
|
18980 | },
|
18981 | HEXinput: {
|
18982 | width: "80%",
|
18983 | padding: "0px",
|
18984 | paddingLeft: "20%",
|
18985 | border: "none",
|
18986 | outline: "none",
|
18987 | background: "none",
|
18988 | fontSize: "12px",
|
18989 | color: "#333",
|
18990 | height: "16px"
|
18991 | },
|
18992 | HEXlabel: {
|
18993 | display: "none"
|
18994 | },
|
18995 | RGBwrap: {
|
18996 | flex: "3",
|
18997 | position: "relative"
|
18998 | },
|
18999 | RGBinput: {
|
19000 | width: "70%",
|
19001 | padding: "0px",
|
19002 | paddingLeft: "30%",
|
19003 | border: "none",
|
19004 | outline: "none",
|
19005 | background: "none",
|
19006 | fontSize: "12px",
|
19007 | color: "#333",
|
19008 | height: "16px"
|
19009 | },
|
19010 | RGBlabel: {
|
19011 | position: "absolute",
|
19012 | top: "3px",
|
19013 | left: "0px",
|
19014 | lineHeight: "16px",
|
19015 | textTransform: "uppercase",
|
19016 | fontSize: "12px",
|
19017 | color: "#999"
|
19018 | }
|
19019 | }
|
19020 | });
|
19021 | var handleChange = function handleChange2(data, e) {
|
19022 | if (data.r || data.g || data.b) {
|
19023 | onChange({
|
19024 | r: data.r || rgb.r,
|
19025 | g: data.g || rgb.g,
|
19026 | b: data.b || rgb.b,
|
19027 | source: "rgb"
|
19028 | }, e);
|
19029 | } else {
|
19030 | onChange({
|
19031 | hex: data.hex,
|
19032 | source: "hex"
|
19033 | }, e);
|
19034 | }
|
19035 | };
|
19036 | return React__default.createElement("div", { style: styles.fields, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.active }), React__default.createElement(EditableInput, {
|
19037 | style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
|
19038 | label: "hex",
|
19039 | value: hex,
|
19040 | onChange: handleChange
|
19041 | }), React__default.createElement(EditableInput, {
|
19042 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19043 | label: "r",
|
19044 | value: rgb.r,
|
19045 | onChange: handleChange
|
19046 | }), React__default.createElement(EditableInput, {
|
19047 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19048 | label: "g",
|
19049 | value: rgb.g,
|
19050 | onChange: handleChange
|
19051 | }), React__default.createElement(EditableInput, {
|
19052 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19053 | label: "b",
|
19054 | value: rgb.b,
|
19055 | onChange: handleChange
|
19056 | }));
|
19057 | };
|
19058 | var Compact = function Compact2(_ref) {
|
19059 | var onChange = _ref.onChange, onSwatchHover = _ref.onSwatchHover, colors = _ref.colors, hex = _ref.hex, rgb = _ref.rgb, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
19060 | var styles = _default$2(merge$1({
|
19061 | "default": {
|
19062 | Compact: {
|
19063 | background: "#f6f6f6",
|
19064 | radius: "4px"
|
19065 | },
|
19066 | compact: {
|
19067 | paddingTop: "5px",
|
19068 | paddingLeft: "5px",
|
19069 | boxSizing: "initial",
|
19070 | width: "240px"
|
19071 | },
|
19072 | clear: {
|
19073 | clear: "both"
|
19074 | }
|
19075 | }
|
19076 | }, passedStyles));
|
19077 | var handleChange = function handleChange2(data, e) {
|
19078 | if (data.hex) {
|
19079 | isValidHex(data.hex) && onChange({
|
19080 | hex: data.hex,
|
19081 | source: "hex"
|
19082 | }, e);
|
19083 | } else {
|
19084 | onChange(data, e);
|
19085 | }
|
19086 | };
|
19087 | return React__default.createElement(Raised, { style: styles.Compact, styles: passedStyles }, React__default.createElement("div", { style: styles.compact, className: "compact-picker " + className }, React__default.createElement("div", null, map$1(colors, function(c) {
|
19088 | return React__default.createElement(CompactColor, {
|
19089 | key: c,
|
19090 | color: c,
|
19091 | active: c.toLowerCase() === hex,
|
19092 | onClick: handleChange,
|
19093 | onSwatchHover
|
19094 | });
|
19095 | }), React__default.createElement("div", { style: styles.clear })), React__default.createElement(CompactFields, { hex, rgb, onChange: handleChange })));
|
19096 | };
|
19097 | Compact.propTypes = {
|
19098 | colors: PropTypes.arrayOf(PropTypes.string),
|
19099 | styles: PropTypes.object
|
19100 | };
|
19101 | Compact.defaultProps = {
|
19102 | colors: ["#4D4D4D", "#999999", "#FFFFFF", "#F44E3B", "#FE9200", "#FCDC00", "#DBDF00", "#A4DD00", "#68CCCA", "#73D8FF", "#AEA1FF", "#FDA1FF", "#333333", "#808080", "#cccccc", "#D33115", "#E27300", "#FCC400", "#B0BC00", "#68BC00", "#16A5A5", "#009CE0", "#7B64FF", "#FA28FF", "#000000", "#666666", "#B3B3B3", "#9F0500", "#C45100", "#FB9E00", "#808900", "#194D33", "#0C797D", "#0062B1", "#653294", "#AB149E"],
|
19103 | styles: {}
|
19104 | };
|
19105 | ColorWrap(Compact);
|
19106 | var GithubSwatch = function GithubSwatch2(_ref) {
|
19107 | var hover3 = _ref.hover, color = _ref.color, onClick = _ref.onClick, onSwatchHover = _ref.onSwatchHover;
|
19108 | var hoverSwatch = {
|
19109 | position: "relative",
|
19110 | zIndex: "2",
|
19111 | outline: "2px solid #fff",
|
19112 | boxShadow: "0 0 5px 2px rgba(0,0,0,0.25)"
|
19113 | };
|
19114 | var styles = _default$2({
|
19115 | "default": {
|
19116 | swatch: {
|
19117 | width: "25px",
|
19118 | height: "25px",
|
19119 | fontSize: "0"
|
19120 | }
|
19121 | },
|
19122 | "hover": {
|
19123 | swatch: hoverSwatch
|
19124 | }
|
19125 | }, { hover: hover3 });
|
19126 | return React__default.createElement("div", { style: styles.swatch }, React__default.createElement(Swatch$1, {
|
19127 | color,
|
19128 | onClick,
|
19129 | onHover: onSwatchHover,
|
19130 | focusStyle: hoverSwatch
|
19131 | }));
|
19132 | };
|
19133 | var GithubSwatch$1 = handleHover(GithubSwatch);
|
19134 | var Github = function Github2(_ref) {
|
19135 | var width = _ref.width, colors = _ref.colors, onChange = _ref.onChange, onSwatchHover = _ref.onSwatchHover, triangle = _ref.triangle, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
19136 | var styles = _default$2(merge$1({
|
19137 | "default": {
|
19138 | card: {
|
19139 | width,
|
19140 | background: "#fff",
|
19141 | border: "1px solid rgba(0,0,0,0.2)",
|
19142 | boxShadow: "0 3px 12px rgba(0,0,0,0.15)",
|
19143 | borderRadius: "4px",
|
19144 | position: "relative",
|
19145 | padding: "5px",
|
19146 | display: "flex",
|
19147 | flexWrap: "wrap"
|
19148 | },
|
19149 | triangle: {
|
19150 | position: "absolute",
|
19151 | border: "7px solid transparent",
|
19152 | borderBottomColor: "#fff"
|
19153 | },
|
19154 | triangleShadow: {
|
19155 | position: "absolute",
|
19156 | border: "8px solid transparent",
|
19157 | borderBottomColor: "rgba(0,0,0,0.15)"
|
19158 | }
|
19159 | },
|
19160 | "hide-triangle": {
|
19161 | triangle: {
|
19162 | display: "none"
|
19163 | },
|
19164 | triangleShadow: {
|
19165 | display: "none"
|
19166 | }
|
19167 | },
|
19168 | "top-left-triangle": {
|
19169 | triangle: {
|
19170 | top: "-14px",
|
19171 | left: "10px"
|
19172 | },
|
19173 | triangleShadow: {
|
19174 | top: "-16px",
|
19175 | left: "9px"
|
19176 | }
|
19177 | },
|
19178 | "top-right-triangle": {
|
19179 | triangle: {
|
19180 | top: "-14px",
|
19181 | right: "10px"
|
19182 | },
|
19183 | triangleShadow: {
|
19184 | top: "-16px",
|
19185 | right: "9px"
|
19186 | }
|
19187 | },
|
19188 | "bottom-left-triangle": {
|
19189 | triangle: {
|
19190 | top: "35px",
|
19191 | left: "10px",
|
19192 | transform: "rotate(180deg)"
|
19193 | },
|
19194 | triangleShadow: {
|
19195 | top: "37px",
|
19196 | left: "9px",
|
19197 | transform: "rotate(180deg)"
|
19198 | }
|
19199 | },
|
19200 | "bottom-right-triangle": {
|
19201 | triangle: {
|
19202 | top: "35px",
|
19203 | right: "10px",
|
19204 | transform: "rotate(180deg)"
|
19205 | },
|
19206 | triangleShadow: {
|
19207 | top: "37px",
|
19208 | right: "9px",
|
19209 | transform: "rotate(180deg)"
|
19210 | }
|
19211 | }
|
19212 | }, passedStyles), {
|
19213 | "hide-triangle": triangle === "hide",
|
19214 | "top-left-triangle": triangle === "top-left",
|
19215 | "top-right-triangle": triangle === "top-right",
|
19216 | "bottom-left-triangle": triangle === "bottom-left",
|
19217 | "bottom-right-triangle": triangle === "bottom-right"
|
19218 | });
|
19219 | var handleChange = function handleChange2(hex, e) {
|
19220 | return onChange({ hex, source: "hex" }, e);
|
19221 | };
|
19222 | return React__default.createElement("div", { style: styles.card, className: "github-picker " + className }, React__default.createElement("div", { style: styles.triangleShadow }), React__default.createElement("div", { style: styles.triangle }), map$1(colors, function(c) {
|
19223 | return React__default.createElement(GithubSwatch$1, {
|
19224 | color: c,
|
19225 | key: c,
|
19226 | onClick: handleChange,
|
19227 | onSwatchHover
|
19228 | });
|
19229 | }));
|
19230 | };
|
19231 | Github.propTypes = {
|
19232 | width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
19233 | colors: PropTypes.arrayOf(PropTypes.string),
|
19234 | triangle: PropTypes.oneOf(["hide", "top-left", "top-right", "bottom-left", "bottom-right"]),
|
19235 | styles: PropTypes.object
|
19236 | };
|
19237 | Github.defaultProps = {
|
19238 | width: 200,
|
19239 | colors: ["#B80000", "#DB3E00", "#FCCB00", "#008B02", "#006B76", "#1273DE", "#004DCF", "#5300EB", "#EB9694", "#FAD0C3", "#FEF3BD", "#C1E1C5", "#BEDADC", "#C4DEF6", "#BED3F3", "#D4C4FB"],
|
19240 | triangle: "top-left",
|
19241 | styles: {}
|
19242 | };
|
19243 | ColorWrap(Github);
|
19244 | var SliderPointer$1 = function SliderPointer(_ref) {
|
19245 | var direction = _ref.direction;
|
19246 | var styles = _default$2({
|
19247 | "default": {
|
19248 | picker: {
|
19249 | width: "18px",
|
19250 | height: "18px",
|
19251 | borderRadius: "50%",
|
19252 | transform: "translate(-9px, -1px)",
|
19253 | backgroundColor: "rgb(248, 248, 248)",
|
19254 | boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.37)"
|
19255 | }
|
19256 | },
|
19257 | "vertical": {
|
19258 | picker: {
|
19259 | transform: "translate(-3px, -9px)"
|
19260 | }
|
19261 | }
|
19262 | }, { vertical: direction === "vertical" });
|
19263 | return React__default.createElement("div", { style: styles.picker });
|
19264 | };
|
19265 | var _extends$3 = Object.assign || function(target) {
|
19266 | for (var i = 1; i < arguments.length; i++) {
|
19267 | var source = arguments[i];
|
19268 | for (var key in source) {
|
19269 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
19270 | target[key] = source[key];
|
19271 | }
|
19272 | }
|
19273 | }
|
19274 | return target;
|
19275 | };
|
19276 | var HuePicker = function HuePicker2(_ref) {
|
19277 | var width = _ref.width, height = _ref.height, onChange = _ref.onChange, hsl = _ref.hsl, direction = _ref.direction, pointer = _ref.pointer, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
19278 | var styles = _default$2(merge$1({
|
19279 | "default": {
|
19280 | picker: {
|
19281 | position: "relative",
|
19282 | width,
|
19283 | height
|
19284 | },
|
19285 | hue: {
|
19286 | radius: "2px"
|
19287 | }
|
19288 | }
|
19289 | }, passedStyles));
|
19290 | var handleChange = function handleChange2(data) {
|
19291 | return onChange({ a: 1, h: data.h, l: 0.5, s: 1 });
|
19292 | };
|
19293 | return React__default.createElement("div", { style: styles.picker, className: "hue-picker " + className }, React__default.createElement(Hue, _extends$3({}, styles.hue, {
|
19294 | hsl,
|
19295 | pointer,
|
19296 | onChange: handleChange,
|
19297 | direction
|
19298 | })));
|
19299 | };
|
19300 | HuePicker.propTypes = {
|
19301 | styles: PropTypes.object
|
19302 | };
|
19303 | HuePicker.defaultProps = {
|
19304 | width: "316px",
|
19305 | height: "16px",
|
19306 | direction: "horizontal",
|
19307 | pointer: SliderPointer$1,
|
19308 | styles: {}
|
19309 | };
|
19310 | ColorWrap(HuePicker);
|
19311 | var Material = function Material2(_ref) {
|
19312 | var onChange = _ref.onChange, hex = _ref.hex, rgb = _ref.rgb, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
19313 | var styles = _default$2(merge$1({
|
19314 | "default": {
|
19315 | material: {
|
19316 | width: "98px",
|
19317 | height: "98px",
|
19318 | padding: "16px",
|
19319 | fontFamily: "Roboto"
|
19320 | },
|
19321 | HEXwrap: {
|
19322 | position: "relative"
|
19323 | },
|
19324 | HEXinput: {
|
19325 | width: "100%",
|
19326 | marginTop: "12px",
|
19327 | fontSize: "15px",
|
19328 | color: "#333",
|
19329 | padding: "0px",
|
19330 | border: "0px",
|
19331 | borderBottom: "2px solid " + hex,
|
19332 | outline: "none",
|
19333 | height: "30px"
|
19334 | },
|
19335 | HEXlabel: {
|
19336 | position: "absolute",
|
19337 | top: "0px",
|
19338 | left: "0px",
|
19339 | fontSize: "11px",
|
19340 | color: "#999999",
|
19341 | textTransform: "capitalize"
|
19342 | },
|
19343 | Hex: {
|
19344 | style: {}
|
19345 | },
|
19346 | RGBwrap: {
|
19347 | position: "relative"
|
19348 | },
|
19349 | RGBinput: {
|
19350 | width: "100%",
|
19351 | marginTop: "12px",
|
19352 | fontSize: "15px",
|
19353 | color: "#333",
|
19354 | padding: "0px",
|
19355 | border: "0px",
|
19356 | borderBottom: "1px solid #eee",
|
19357 | outline: "none",
|
19358 | height: "30px"
|
19359 | },
|
19360 | RGBlabel: {
|
19361 | position: "absolute",
|
19362 | top: "0px",
|
19363 | left: "0px",
|
19364 | fontSize: "11px",
|
19365 | color: "#999999",
|
19366 | textTransform: "capitalize"
|
19367 | },
|
19368 | split: {
|
19369 | display: "flex",
|
19370 | marginRight: "-10px",
|
19371 | paddingTop: "11px"
|
19372 | },
|
19373 | third: {
|
19374 | flex: "1",
|
19375 | paddingRight: "10px"
|
19376 | }
|
19377 | }
|
19378 | }, passedStyles));
|
19379 | var handleChange = function handleChange2(data, e) {
|
19380 | if (data.hex) {
|
19381 | isValidHex(data.hex) && onChange({
|
19382 | hex: data.hex,
|
19383 | source: "hex"
|
19384 | }, e);
|
19385 | } else if (data.r || data.g || data.b) {
|
19386 | onChange({
|
19387 | r: data.r || rgb.r,
|
19388 | g: data.g || rgb.g,
|
19389 | b: data.b || rgb.b,
|
19390 | source: "rgb"
|
19391 | }, e);
|
19392 | }
|
19393 | };
|
19394 | return React__default.createElement(Raised, { styles: passedStyles }, React__default.createElement("div", { style: styles.material, className: "material-picker " + className }, React__default.createElement(EditableInput, {
|
19395 | style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
|
19396 | label: "hex",
|
19397 | value: hex,
|
19398 | onChange: handleChange
|
19399 | }), React__default.createElement("div", { style: styles.split, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.third }, React__default.createElement(EditableInput, {
|
19400 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19401 | label: "r",
|
19402 | value: rgb.r,
|
19403 | onChange: handleChange
|
19404 | })), React__default.createElement("div", { style: styles.third }, React__default.createElement(EditableInput, {
|
19405 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19406 | label: "g",
|
19407 | value: rgb.g,
|
19408 | onChange: handleChange
|
19409 | })), React__default.createElement("div", { style: styles.third }, React__default.createElement(EditableInput, {
|
19410 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19411 | label: "b",
|
19412 | value: rgb.b,
|
19413 | onChange: handleChange
|
19414 | })))));
|
19415 | };
|
19416 | ColorWrap(Material);
|
19417 | var PhotoshopPicker = function PhotoshopPicker2(_ref) {
|
19418 | var onChange = _ref.onChange, rgb = _ref.rgb, hsv = _ref.hsv, hex = _ref.hex;
|
19419 | var styles = _default$2({
|
19420 | "default": {
|
19421 | fields: {
|
19422 | paddingTop: "5px",
|
19423 | paddingBottom: "9px",
|
19424 | width: "80px",
|
19425 | position: "relative"
|
19426 | },
|
19427 | divider: {
|
19428 | height: "5px"
|
19429 | },
|
19430 | RGBwrap: {
|
19431 | position: "relative"
|
19432 | },
|
19433 | RGBinput: {
|
19434 | marginLeft: "40%",
|
19435 | width: "40%",
|
19436 | height: "18px",
|
19437 | border: "1px solid #888888",
|
19438 | boxShadow: "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
|
19439 | marginBottom: "5px",
|
19440 | fontSize: "13px",
|
19441 | paddingLeft: "3px",
|
19442 | marginRight: "10px"
|
19443 | },
|
19444 | RGBlabel: {
|
19445 | left: "0px",
|
19446 | top: "0px",
|
19447 | width: "34px",
|
19448 | textTransform: "uppercase",
|
19449 | fontSize: "13px",
|
19450 | height: "18px",
|
19451 | lineHeight: "22px",
|
19452 | position: "absolute"
|
19453 | },
|
19454 | HEXwrap: {
|
19455 | position: "relative"
|
19456 | },
|
19457 | HEXinput: {
|
19458 | marginLeft: "20%",
|
19459 | width: "80%",
|
19460 | height: "18px",
|
19461 | border: "1px solid #888888",
|
19462 | boxShadow: "inset 0 1px 1px rgba(0,0,0,.1), 0 1px 0 0 #ECECEC",
|
19463 | marginBottom: "6px",
|
19464 | fontSize: "13px",
|
19465 | paddingLeft: "3px"
|
19466 | },
|
19467 | HEXlabel: {
|
19468 | position: "absolute",
|
19469 | top: "0px",
|
19470 | left: "0px",
|
19471 | width: "14px",
|
19472 | textTransform: "uppercase",
|
19473 | fontSize: "13px",
|
19474 | height: "18px",
|
19475 | lineHeight: "22px"
|
19476 | },
|
19477 | fieldSymbols: {
|
19478 | position: "absolute",
|
19479 | top: "5px",
|
19480 | right: "-7px",
|
19481 | fontSize: "13px"
|
19482 | },
|
19483 | symbol: {
|
19484 | height: "20px",
|
19485 | lineHeight: "22px",
|
19486 | paddingBottom: "7px"
|
19487 | }
|
19488 | }
|
19489 | });
|
19490 | var handleChange = function handleChange2(data, e) {
|
19491 | if (data["#"]) {
|
19492 | isValidHex(data["#"]) && onChange({
|
19493 | hex: data["#"],
|
19494 | source: "hex"
|
19495 | }, e);
|
19496 | } else if (data.r || data.g || data.b) {
|
19497 | onChange({
|
19498 | r: data.r || rgb.r,
|
19499 | g: data.g || rgb.g,
|
19500 | b: data.b || rgb.b,
|
19501 | source: "rgb"
|
19502 | }, e);
|
19503 | } else if (data.h || data.s || data.v) {
|
19504 | onChange({
|
19505 | h: data.h || hsv.h,
|
19506 | s: data.s || hsv.s,
|
19507 | v: data.v || hsv.v,
|
19508 | source: "hsv"
|
19509 | }, e);
|
19510 | }
|
19511 | };
|
19512 | return React__default.createElement("div", { style: styles.fields }, React__default.createElement(EditableInput, {
|
19513 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19514 | label: "h",
|
19515 | value: Math.round(hsv.h),
|
19516 | onChange: handleChange
|
19517 | }), React__default.createElement(EditableInput, {
|
19518 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19519 | label: "s",
|
19520 | value: Math.round(hsv.s * 100),
|
19521 | onChange: handleChange
|
19522 | }), React__default.createElement(EditableInput, {
|
19523 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19524 | label: "v",
|
19525 | value: Math.round(hsv.v * 100),
|
19526 | onChange: handleChange
|
19527 | }), React__default.createElement("div", { style: styles.divider }), React__default.createElement(EditableInput, {
|
19528 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19529 | label: "r",
|
19530 | value: rgb.r,
|
19531 | onChange: handleChange
|
19532 | }), React__default.createElement(EditableInput, {
|
19533 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19534 | label: "g",
|
19535 | value: rgb.g,
|
19536 | onChange: handleChange
|
19537 | }), React__default.createElement(EditableInput, {
|
19538 | style: { wrap: styles.RGBwrap, input: styles.RGBinput, label: styles.RGBlabel },
|
19539 | label: "b",
|
19540 | value: rgb.b,
|
19541 | onChange: handleChange
|
19542 | }), React__default.createElement("div", { style: styles.divider }), React__default.createElement(EditableInput, {
|
19543 | style: { wrap: styles.HEXwrap, input: styles.HEXinput, label: styles.HEXlabel },
|
19544 | label: "#",
|
19545 | value: hex.replace("#", ""),
|
19546 | onChange: handleChange
|
19547 | }), React__default.createElement("div", { style: styles.fieldSymbols }, React__default.createElement("div", { style: styles.symbol }, "\xB0"), React__default.createElement("div", { style: styles.symbol }, "%"), React__default.createElement("div", { style: styles.symbol }, "%")));
|
19548 | };
|
19549 | var PhotoshopPointerCircle$1 = function PhotoshopPointerCircle(_ref) {
|
19550 | var hsl = _ref.hsl;
|
19551 | var styles = _default$2({
|
19552 | "default": {
|
19553 | picker: {
|
19554 | width: "12px",
|
19555 | height: "12px",
|
19556 | borderRadius: "6px",
|
19557 | boxShadow: "inset 0 0 0 1px #fff",
|
19558 | transform: "translate(-6px, -6px)"
|
19559 | }
|
19560 | },
|
19561 | "black-outline": {
|
19562 | picker: {
|
19563 | boxShadow: "inset 0 0 0 1px #000"
|
19564 | }
|
19565 | }
|
19566 | }, { "black-outline": hsl.l > 0.5 });
|
19567 | return React__default.createElement("div", { style: styles.picker });
|
19568 | };
|
19569 | var PhotoshopPointerCircle2 = function PhotoshopPointerCircle3() {
|
19570 | var styles = _default$2({
|
19571 | "default": {
|
19572 | triangle: {
|
19573 | width: 0,
|
19574 | height: 0,
|
19575 | borderStyle: "solid",
|
19576 | borderWidth: "4px 0 4px 6px",
|
19577 | borderColor: "transparent transparent transparent #fff",
|
19578 | position: "absolute",
|
19579 | top: "1px",
|
19580 | left: "1px"
|
19581 | },
|
19582 | triangleBorder: {
|
19583 | width: 0,
|
19584 | height: 0,
|
19585 | borderStyle: "solid",
|
19586 | borderWidth: "5px 0 5px 8px",
|
19587 | borderColor: "transparent transparent transparent #555"
|
19588 | },
|
19589 | left: {
|
19590 | Extend: "triangleBorder",
|
19591 | transform: "translate(-13px, -4px)"
|
19592 | },
|
19593 | leftInside: {
|
19594 | Extend: "triangle",
|
19595 | transform: "translate(-8px, -5px)"
|
19596 | },
|
19597 | right: {
|
19598 | Extend: "triangleBorder",
|
19599 | transform: "translate(20px, -14px) rotate(180deg)"
|
19600 | },
|
19601 | rightInside: {
|
19602 | Extend: "triangle",
|
19603 | transform: "translate(-8px, -5px)"
|
19604 | }
|
19605 | }
|
19606 | });
|
19607 | return React__default.createElement("div", { style: styles.pointer }, React__default.createElement("div", { style: styles.left }, React__default.createElement("div", { style: styles.leftInside })), React__default.createElement("div", { style: styles.right }, React__default.createElement("div", { style: styles.rightInside })));
|
19608 | };
|
19609 | var PhotoshopButton = function PhotoshopButton2(_ref) {
|
19610 | var onClick = _ref.onClick, label = _ref.label, children = _ref.children, active3 = _ref.active;
|
19611 | var styles = _default$2({
|
19612 | "default": {
|
19613 | button: {
|
19614 | backgroundImage: "linear-gradient(-180deg, #FFFFFF 0%, #E6E6E6 100%)",
|
19615 | border: "1px solid #878787",
|
19616 | borderRadius: "2px",
|
19617 | height: "20px",
|
19618 | boxShadow: "0 1px 0 0 #EAEAEA",
|
19619 | fontSize: "14px",
|
19620 | color: "#000",
|
19621 | lineHeight: "20px",
|
19622 | textAlign: "center",
|
19623 | marginBottom: "10px",
|
19624 | cursor: "pointer"
|
19625 | }
|
19626 | },
|
19627 | "active": {
|
19628 | button: {
|
19629 | boxShadow: "0 0 0 1px #878787"
|
19630 | }
|
19631 | }
|
19632 | }, { active: active3 });
|
19633 | return React__default.createElement("div", { style: styles.button, onClick }, label || children);
|
19634 | };
|
19635 | var PhotoshopPreviews = function PhotoshopPreviews2(_ref) {
|
19636 | var rgb = _ref.rgb, currentColor = _ref.currentColor;
|
19637 | var styles = _default$2({
|
19638 | "default": {
|
19639 | swatches: {
|
19640 | border: "1px solid #B3B3B3",
|
19641 | borderBottom: "1px solid #F0F0F0",
|
19642 | marginBottom: "2px",
|
19643 | marginTop: "1px"
|
19644 | },
|
19645 | new: {
|
19646 | height: "34px",
|
19647 | background: "rgb(" + rgb.r + "," + rgb.g + ", " + rgb.b + ")",
|
19648 | boxShadow: "inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 1px 0 #000"
|
19649 | },
|
19650 | current: {
|
19651 | height: "34px",
|
19652 | background: currentColor,
|
19653 | boxShadow: "inset 1px 0 0 #000, inset -1px 0 0 #000, inset 0 -1px 0 #000"
|
19654 | },
|
19655 | label: {
|
19656 | fontSize: "14px",
|
19657 | color: "#000",
|
19658 | textAlign: "center"
|
19659 | }
|
19660 | }
|
19661 | });
|
19662 | return React__default.createElement("div", null, React__default.createElement("div", { style: styles.label }, "new"), React__default.createElement("div", { style: styles.swatches }, React__default.createElement("div", { style: styles.new }), React__default.createElement("div", { style: styles.current })), React__default.createElement("div", { style: styles.label }, "current"));
|
19663 | };
|
19664 | var _createClass = function() {
|
19665 | function defineProperties(target, props) {
|
19666 | for (var i = 0; i < props.length; i++) {
|
19667 | var descriptor = props[i];
|
19668 | descriptor.enumerable = descriptor.enumerable || false;
|
19669 | descriptor.configurable = true;
|
19670 | if ("value" in descriptor)
|
19671 | descriptor.writable = true;
|
19672 | Object.defineProperty(target, descriptor.key, descriptor);
|
19673 | }
|
19674 | }
|
19675 | return function(Constructor, protoProps, staticProps) {
|
19676 | if (protoProps)
|
19677 | defineProperties(Constructor.prototype, protoProps);
|
19678 | if (staticProps)
|
19679 | defineProperties(Constructor, staticProps);
|
19680 | return Constructor;
|
19681 | };
|
19682 | }();
|
19683 | function _classCallCheck(instance, Constructor) {
|
19684 | if (!(instance instanceof Constructor)) {
|
19685 | throw new TypeError("Cannot call a class as a function");
|
19686 | }
|
19687 | }
|
19688 | function _possibleConstructorReturn(self2, call2) {
|
19689 | if (!self2) {
|
19690 | throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
19691 | }
|
19692 | return call2 && (typeof call2 === "object" || typeof call2 === "function") ? call2 : self2;
|
19693 | }
|
19694 | function _inherits(subClass, superClass) {
|
19695 | if (typeof superClass !== "function" && superClass !== null) {
|
19696 | throw new TypeError("Super expression must either be null or a function, not " + typeof superClass);
|
19697 | }
|
19698 | subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });
|
19699 | if (superClass)
|
19700 | Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
|
19701 | }
|
19702 | var Photoshop = function(_React$Component) {
|
19703 | _inherits(Photoshop2, _React$Component);
|
19704 | function Photoshop2(props) {
|
19705 | _classCallCheck(this, Photoshop2);
|
19706 | var _this = _possibleConstructorReturn(this, (Photoshop2.__proto__ || Object.getPrototypeOf(Photoshop2)).call(this));
|
19707 | _this.state = {
|
19708 | currentColor: props.hex
|
19709 | };
|
19710 | return _this;
|
19711 | }
|
19712 | _createClass(Photoshop2, [{
|
19713 | key: "render",
|
19714 | value: function render3() {
|
19715 | var _props = this.props, _props$styles = _props.styles, passedStyles = _props$styles === void 0 ? {} : _props$styles, _props$className = _props.className, className = _props$className === void 0 ? "" : _props$className;
|
19716 | var styles = _default$2(merge$1({
|
19717 | "default": {
|
19718 | picker: {
|
19719 | background: "#DCDCDC",
|
19720 | borderRadius: "4px",
|
19721 | boxShadow: "0 0 0 1px rgba(0,0,0,.25), 0 8px 16px rgba(0,0,0,.15)",
|
19722 | boxSizing: "initial",
|
19723 | width: "513px"
|
19724 | },
|
19725 | head: {
|
19726 | backgroundImage: "linear-gradient(-180deg, #F0F0F0 0%, #D4D4D4 100%)",
|
19727 | borderBottom: "1px solid #B1B1B1",
|
19728 | boxShadow: "inset 0 1px 0 0 rgba(255,255,255,.2), inset 0 -1px 0 0 rgba(0,0,0,.02)",
|
19729 | height: "23px",
|
19730 | lineHeight: "24px",
|
19731 | borderRadius: "4px 4px 0 0",
|
19732 | fontSize: "13px",
|
19733 | color: "#4D4D4D",
|
19734 | textAlign: "center"
|
19735 | },
|
19736 | body: {
|
19737 | padding: "15px 15px 0",
|
19738 | display: "flex"
|
19739 | },
|
19740 | saturation: {
|
19741 | width: "256px",
|
19742 | height: "256px",
|
19743 | position: "relative",
|
19744 | border: "2px solid #B3B3B3",
|
19745 | borderBottom: "2px solid #F0F0F0",
|
19746 | overflow: "hidden"
|
19747 | },
|
19748 | hue: {
|
19749 | position: "relative",
|
19750 | height: "256px",
|
19751 | width: "19px",
|
19752 | marginLeft: "10px",
|
19753 | border: "2px solid #B3B3B3",
|
19754 | borderBottom: "2px solid #F0F0F0"
|
19755 | },
|
19756 | controls: {
|
19757 | width: "180px",
|
19758 | marginLeft: "10px"
|
19759 | },
|
19760 | top: {
|
19761 | display: "flex"
|
19762 | },
|
19763 | previews: {
|
19764 | width: "60px"
|
19765 | },
|
19766 | actions: {
|
19767 | flex: "1",
|
19768 | marginLeft: "20px"
|
19769 | }
|
19770 | }
|
19771 | }, passedStyles));
|
19772 | return React__default.createElement("div", { style: styles.picker, className: "photoshop-picker " + className }, React__default.createElement("div", { style: styles.head }, this.props.header), React__default.createElement("div", { style: styles.body, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.saturation }, React__default.createElement(Saturation, {
|
19773 | hsl: this.props.hsl,
|
19774 | hsv: this.props.hsv,
|
19775 | pointer: PhotoshopPointerCircle$1,
|
19776 | onChange: this.props.onChange
|
19777 | })), React__default.createElement("div", { style: styles.hue }, React__default.createElement(Hue, {
|
19778 | direction: "vertical",
|
19779 | hsl: this.props.hsl,
|
19780 | pointer: PhotoshopPointerCircle2,
|
19781 | onChange: this.props.onChange
|
19782 | })), React__default.createElement("div", { style: styles.controls }, React__default.createElement("div", { style: styles.top, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.previews }, React__default.createElement(PhotoshopPreviews, {
|
19783 | rgb: this.props.rgb,
|
19784 | currentColor: this.state.currentColor
|
19785 | })), React__default.createElement("div", { style: styles.actions }, React__default.createElement(PhotoshopButton, { label: "OK", onClick: this.props.onAccept, active: true }), React__default.createElement(PhotoshopButton, { label: "Cancel", onClick: this.props.onCancel }), React__default.createElement(PhotoshopPicker, {
|
19786 | onChange: this.props.onChange,
|
19787 | rgb: this.props.rgb,
|
19788 | hsv: this.props.hsv,
|
19789 | hex: this.props.hex
|
19790 | }))))));
|
19791 | }
|
19792 | }]);
|
19793 | return Photoshop2;
|
19794 | }(React__default.Component);
|
19795 | Photoshop.propTypes = {
|
19796 | header: PropTypes.string,
|
19797 | styles: PropTypes.object
|
19798 | };
|
19799 | Photoshop.defaultProps = {
|
19800 | header: "Color Picker",
|
19801 | styles: {}
|
19802 | };
|
19803 | ColorWrap(Photoshop);
|
19804 | var SketchFields = function SketchFields2(_ref) {
|
19805 | var onChange = _ref.onChange, rgb = _ref.rgb, hsl = _ref.hsl, hex = _ref.hex, disableAlpha = _ref.disableAlpha;
|
19806 | var styles = _default$2({
|
19807 | "default": {
|
19808 | fields: {
|
19809 | display: "flex",
|
19810 | paddingTop: "4px"
|
19811 | },
|
19812 | single: {
|
19813 | flex: "1",
|
19814 | paddingLeft: "6px"
|
19815 | },
|
19816 | alpha: {
|
19817 | flex: "1",
|
19818 | paddingLeft: "6px"
|
19819 | },
|
19820 | double: {
|
19821 | flex: "2"
|
19822 | },
|
19823 | input: {
|
19824 | width: "80%",
|
19825 | padding: "4px 10% 3px",
|
19826 | border: "none",
|
19827 | boxShadow: "inset 0 0 0 1px #ccc",
|
19828 | fontSize: "11px"
|
19829 | },
|
19830 | label: {
|
19831 | display: "block",
|
19832 | textAlign: "center",
|
19833 | fontSize: "11px",
|
19834 | color: "#222",
|
19835 | paddingTop: "3px",
|
19836 | paddingBottom: "4px",
|
19837 | textTransform: "capitalize"
|
19838 | }
|
19839 | },
|
19840 | "disableAlpha": {
|
19841 | alpha: {
|
19842 | display: "none"
|
19843 | }
|
19844 | }
|
19845 | }, { disableAlpha });
|
19846 | var handleChange = function handleChange2(data, e) {
|
19847 | if (data.hex) {
|
19848 | isValidHex(data.hex) && onChange({
|
19849 | hex: data.hex,
|
19850 | source: "hex"
|
19851 | }, e);
|
19852 | } else if (data.r || data.g || data.b) {
|
19853 | onChange({
|
19854 | r: data.r || rgb.r,
|
19855 | g: data.g || rgb.g,
|
19856 | b: data.b || rgb.b,
|
19857 | a: rgb.a,
|
19858 | source: "rgb"
|
19859 | }, e);
|
19860 | } else if (data.a) {
|
19861 | if (data.a < 0) {
|
19862 | data.a = 0;
|
19863 | } else if (data.a > 100) {
|
19864 | data.a = 100;
|
19865 | }
|
19866 | data.a /= 100;
|
19867 | onChange({
|
19868 | h: hsl.h,
|
19869 | s: hsl.s,
|
19870 | l: hsl.l,
|
19871 | a: data.a,
|
19872 | source: "rgb"
|
19873 | }, e);
|
19874 | }
|
19875 | };
|
19876 | return React__default.createElement("div", { style: styles.fields, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.double }, React__default.createElement(EditableInput, {
|
19877 | style: { input: styles.input, label: styles.label },
|
19878 | label: "hex",
|
19879 | value: hex.replace("#", ""),
|
19880 | onChange: handleChange
|
19881 | })), React__default.createElement("div", { style: styles.single }, React__default.createElement(EditableInput, {
|
19882 | style: { input: styles.input, label: styles.label },
|
19883 | label: "r",
|
19884 | value: rgb.r,
|
19885 | onChange: handleChange,
|
19886 | dragLabel: "true",
|
19887 | dragMax: "255"
|
19888 | })), React__default.createElement("div", { style: styles.single }, React__default.createElement(EditableInput, {
|
19889 | style: { input: styles.input, label: styles.label },
|
19890 | label: "g",
|
19891 | value: rgb.g,
|
19892 | onChange: handleChange,
|
19893 | dragLabel: "true",
|
19894 | dragMax: "255"
|
19895 | })), React__default.createElement("div", { style: styles.single }, React__default.createElement(EditableInput, {
|
19896 | style: { input: styles.input, label: styles.label },
|
19897 | label: "b",
|
19898 | value: rgb.b,
|
19899 | onChange: handleChange,
|
19900 | dragLabel: "true",
|
19901 | dragMax: "255"
|
19902 | })), React__default.createElement("div", { style: styles.alpha }, React__default.createElement(EditableInput, {
|
19903 | style: { input: styles.input, label: styles.label },
|
19904 | label: "a",
|
19905 | value: Math.round(rgb.a * 100),
|
19906 | onChange: handleChange,
|
19907 | dragLabel: "true",
|
19908 | dragMax: "100"
|
19909 | })));
|
19910 | };
|
19911 | var _extends$2 = Object.assign || function(target) {
|
19912 | for (var i = 1; i < arguments.length; i++) {
|
19913 | var source = arguments[i];
|
19914 | for (var key in source) {
|
19915 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
19916 | target[key] = source[key];
|
19917 | }
|
19918 | }
|
19919 | }
|
19920 | return target;
|
19921 | };
|
19922 | var SketchPresetColors = function SketchPresetColors2(_ref) {
|
19923 | var colors = _ref.colors, _ref$onClick = _ref.onClick, onClick = _ref$onClick === void 0 ? function() {
|
19924 | } : _ref$onClick, onSwatchHover = _ref.onSwatchHover;
|
19925 | var styles = _default$2({
|
19926 | "default": {
|
19927 | colors: {
|
19928 | margin: "0 -10px",
|
19929 | padding: "10px 0 0 10px",
|
19930 | borderTop: "1px solid #eee",
|
19931 | display: "flex",
|
19932 | flexWrap: "wrap",
|
19933 | position: "relative"
|
19934 | },
|
19935 | swatchWrap: {
|
19936 | width: "16px",
|
19937 | height: "16px",
|
19938 | margin: "0 10px 10px 0"
|
19939 | },
|
19940 | swatch: {
|
19941 | borderRadius: "3px",
|
19942 | boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15)"
|
19943 | }
|
19944 | },
|
19945 | "no-presets": {
|
19946 | colors: {
|
19947 | display: "none"
|
19948 | }
|
19949 | }
|
19950 | }, {
|
19951 | "no-presets": !colors || !colors.length
|
19952 | });
|
19953 | var handleClick = function handleClick2(hex, e) {
|
19954 | onClick({
|
19955 | hex,
|
19956 | source: "hex"
|
19957 | }, e);
|
19958 | };
|
19959 | return React__default.createElement("div", { style: styles.colors, className: "flexbox-fix" }, colors.map(function(colorObjOrString) {
|
19960 | var c = typeof colorObjOrString === "string" ? { color: colorObjOrString } : colorObjOrString;
|
19961 | var key = "" + c.color + (c.title || "");
|
19962 | return React__default.createElement("div", { key, style: styles.swatchWrap }, React__default.createElement(Swatch$1, _extends$2({}, c, {
|
19963 | style: styles.swatch,
|
19964 | onClick: handleClick,
|
19965 | onHover: onSwatchHover,
|
19966 | focusStyle: {
|
19967 | boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15), 0 0 4px " + c.color
|
19968 | }
|
19969 | })));
|
19970 | }));
|
19971 | };
|
19972 | SketchPresetColors.propTypes = {
|
19973 | colors: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.shape({
|
19974 | color: PropTypes.string,
|
19975 | title: PropTypes.string
|
19976 | })])).isRequired
|
19977 | };
|
19978 | var _extends$1 = Object.assign || function(target) {
|
19979 | for (var i = 1; i < arguments.length; i++) {
|
19980 | var source = arguments[i];
|
19981 | for (var key in source) {
|
19982 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
19983 | target[key] = source[key];
|
19984 | }
|
19985 | }
|
19986 | }
|
19987 | return target;
|
19988 | };
|
19989 | var Sketch = function Sketch2(_ref) {
|
19990 | var width = _ref.width, rgb = _ref.rgb, hex = _ref.hex, hsv = _ref.hsv, hsl = _ref.hsl, onChange = _ref.onChange, onSwatchHover = _ref.onSwatchHover, disableAlpha = _ref.disableAlpha, presetColors = _ref.presetColors, renderers = _ref.renderers, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
19991 | var styles = _default$2(merge$1({
|
19992 | "default": _extends$1({
|
19993 | picker: {
|
19994 | width,
|
19995 | padding: "10px 10px 0",
|
19996 | boxSizing: "initial",
|
19997 | background: "#fff",
|
19998 | borderRadius: "4px",
|
19999 | boxShadow: "0 0 0 1px rgba(0,0,0,.15), 0 8px 16px rgba(0,0,0,.15)"
|
20000 | },
|
20001 | saturation: {
|
20002 | width: "100%",
|
20003 | paddingBottom: "75%",
|
20004 | position: "relative",
|
20005 | overflow: "hidden"
|
20006 | },
|
20007 | Saturation: {
|
20008 | radius: "3px",
|
20009 | shadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"
|
20010 | },
|
20011 | controls: {
|
20012 | display: "flex"
|
20013 | },
|
20014 | sliders: {
|
20015 | padding: "4px 0",
|
20016 | flex: "1"
|
20017 | },
|
20018 | color: {
|
20019 | width: "24px",
|
20020 | height: "24px",
|
20021 | position: "relative",
|
20022 | marginTop: "4px",
|
20023 | marginLeft: "4px",
|
20024 | borderRadius: "3px"
|
20025 | },
|
20026 | activeColor: {
|
20027 | absolute: "0px 0px 0px 0px",
|
20028 | borderRadius: "2px",
|
20029 | background: "rgba(" + rgb.r + "," + rgb.g + "," + rgb.b + "," + rgb.a + ")",
|
20030 | boxShadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"
|
20031 | },
|
20032 | hue: {
|
20033 | position: "relative",
|
20034 | height: "10px",
|
20035 | overflow: "hidden"
|
20036 | },
|
20037 | Hue: {
|
20038 | radius: "2px",
|
20039 | shadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"
|
20040 | },
|
20041 | alpha: {
|
20042 | position: "relative",
|
20043 | height: "10px",
|
20044 | marginTop: "4px",
|
20045 | overflow: "hidden"
|
20046 | },
|
20047 | Alpha: {
|
20048 | radius: "2px",
|
20049 | shadow: "inset 0 0 0 1px rgba(0,0,0,.15), inset 0 0 4px rgba(0,0,0,.25)"
|
20050 | }
|
20051 | }, passedStyles),
|
20052 | "disableAlpha": {
|
20053 | color: {
|
20054 | height: "10px"
|
20055 | },
|
20056 | hue: {
|
20057 | height: "10px"
|
20058 | },
|
20059 | alpha: {
|
20060 | display: "none"
|
20061 | }
|
20062 | }
|
20063 | }, passedStyles), { disableAlpha });
|
20064 | return React__default.createElement("div", { style: styles.picker, className: "sketch-picker " + className }, React__default.createElement("div", { style: styles.saturation }, React__default.createElement(Saturation, {
|
20065 | style: styles.Saturation,
|
20066 | hsl,
|
20067 | hsv,
|
20068 | onChange
|
20069 | })), React__default.createElement("div", { style: styles.controls, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.sliders }, React__default.createElement("div", { style: styles.hue }, React__default.createElement(Hue, {
|
20070 | style: styles.Hue,
|
20071 | hsl,
|
20072 | onChange
|
20073 | })), React__default.createElement("div", { style: styles.alpha }, React__default.createElement(Alpha, {
|
20074 | style: styles.Alpha,
|
20075 | rgb,
|
20076 | hsl,
|
20077 | renderers,
|
20078 | onChange
|
20079 | }))), React__default.createElement("div", { style: styles.color }, React__default.createElement(Checkboard, null), React__default.createElement("div", { style: styles.activeColor }))), React__default.createElement(SketchFields, {
|
20080 | rgb,
|
20081 | hsl,
|
20082 | hex,
|
20083 | onChange,
|
20084 | disableAlpha
|
20085 | }), React__default.createElement(SketchPresetColors, {
|
20086 | colors: presetColors,
|
20087 | onClick: onChange,
|
20088 | onSwatchHover
|
20089 | }));
|
20090 | };
|
20091 | Sketch.propTypes = {
|
20092 | disableAlpha: PropTypes.bool,
|
20093 | width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
20094 | styles: PropTypes.object
|
20095 | };
|
20096 | Sketch.defaultProps = {
|
20097 | disableAlpha: false,
|
20098 | width: 200,
|
20099 | styles: {},
|
20100 | presetColors: ["#D0021B", "#F5A623", "#F8E71C", "#8B572A", "#7ED321", "#417505", "#BD10E0", "#9013FE", "#4A90E2", "#50E3C2", "#B8E986", "#000000", "#4A4A4A", "#9B9B9B", "#FFFFFF"]
|
20101 | };
|
20102 | var SketchPicker = ColorWrap(Sketch);
|
20103 | var SliderSwatch = function SliderSwatch2(_ref) {
|
20104 | var hsl = _ref.hsl, offset = _ref.offset, _ref$onClick = _ref.onClick, onClick = _ref$onClick === void 0 ? function() {
|
20105 | } : _ref$onClick, active3 = _ref.active, first = _ref.first, last = _ref.last;
|
20106 | var styles = _default$2({
|
20107 | "default": {
|
20108 | swatch: {
|
20109 | height: "12px",
|
20110 | background: "hsl(" + hsl.h + ", 50%, " + offset * 100 + "%)",
|
20111 | cursor: "pointer"
|
20112 | }
|
20113 | },
|
20114 | "first": {
|
20115 | swatch: {
|
20116 | borderRadius: "2px 0 0 2px"
|
20117 | }
|
20118 | },
|
20119 | "last": {
|
20120 | swatch: {
|
20121 | borderRadius: "0 2px 2px 0"
|
20122 | }
|
20123 | },
|
20124 | "active": {
|
20125 | swatch: {
|
20126 | transform: "scaleY(1.8)",
|
20127 | borderRadius: "3.6px/2px"
|
20128 | }
|
20129 | }
|
20130 | }, { active: active3, first, last });
|
20131 | var handleClick = function handleClick2(e) {
|
20132 | return onClick({
|
20133 | h: hsl.h,
|
20134 | s: 0.5,
|
20135 | l: offset,
|
20136 | source: "hsl"
|
20137 | }, e);
|
20138 | };
|
20139 | return React__default.createElement("div", { style: styles.swatch, onClick: handleClick });
|
20140 | };
|
20141 | var SliderSwatches = function SliderSwatches2(_ref) {
|
20142 | var onClick = _ref.onClick, hsl = _ref.hsl;
|
20143 | var styles = _default$2({
|
20144 | "default": {
|
20145 | swatches: {
|
20146 | marginTop: "20px"
|
20147 | },
|
20148 | swatch: {
|
20149 | boxSizing: "border-box",
|
20150 | width: "20%",
|
20151 | paddingRight: "1px",
|
20152 | float: "left"
|
20153 | },
|
20154 | clear: {
|
20155 | clear: "both"
|
20156 | }
|
20157 | }
|
20158 | });
|
20159 | var epsilon = 0.1;
|
20160 | return React__default.createElement("div", { style: styles.swatches }, React__default.createElement("div", { style: styles.swatch }, React__default.createElement(SliderSwatch, {
|
20161 | hsl,
|
20162 | offset: ".80",
|
20163 | active: Math.abs(hsl.l - 0.8) < epsilon && Math.abs(hsl.s - 0.5) < epsilon,
|
20164 | onClick,
|
20165 | first: true
|
20166 | })), React__default.createElement("div", { style: styles.swatch }, React__default.createElement(SliderSwatch, {
|
20167 | hsl,
|
20168 | offset: ".65",
|
20169 | active: Math.abs(hsl.l - 0.65) < epsilon && Math.abs(hsl.s - 0.5) < epsilon,
|
20170 | onClick
|
20171 | })), React__default.createElement("div", { style: styles.swatch }, React__default.createElement(SliderSwatch, {
|
20172 | hsl,
|
20173 | offset: ".50",
|
20174 | active: Math.abs(hsl.l - 0.5) < epsilon && Math.abs(hsl.s - 0.5) < epsilon,
|
20175 | onClick
|
20176 | })), React__default.createElement("div", { style: styles.swatch }, React__default.createElement(SliderSwatch, {
|
20177 | hsl,
|
20178 | offset: ".35",
|
20179 | active: Math.abs(hsl.l - 0.35) < epsilon && Math.abs(hsl.s - 0.5) < epsilon,
|
20180 | onClick
|
20181 | })), React__default.createElement("div", { style: styles.swatch }, React__default.createElement(SliderSwatch, {
|
20182 | hsl,
|
20183 | offset: ".20",
|
20184 | active: Math.abs(hsl.l - 0.2) < epsilon && Math.abs(hsl.s - 0.5) < epsilon,
|
20185 | onClick,
|
20186 | last: true
|
20187 | })), React__default.createElement("div", { style: styles.clear }));
|
20188 | };
|
20189 | var SliderPointer2 = function SliderPointer3() {
|
20190 | var styles = _default$2({
|
20191 | "default": {
|
20192 | picker: {
|
20193 | width: "14px",
|
20194 | height: "14px",
|
20195 | borderRadius: "6px",
|
20196 | transform: "translate(-7px, -1px)",
|
20197 | backgroundColor: "rgb(248, 248, 248)",
|
20198 | boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.37)"
|
20199 | }
|
20200 | }
|
20201 | });
|
20202 | return React__default.createElement("div", { style: styles.picker });
|
20203 | };
|
20204 | var Slider$1 = function Slider(_ref) {
|
20205 | var hsl = _ref.hsl, onChange = _ref.onChange, pointer = _ref.pointer, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
20206 | var styles = _default$2(merge$1({
|
20207 | "default": {
|
20208 | hue: {
|
20209 | height: "12px",
|
20210 | position: "relative"
|
20211 | },
|
20212 | Hue: {
|
20213 | radius: "2px"
|
20214 | }
|
20215 | }
|
20216 | }, passedStyles));
|
20217 | return React__default.createElement("div", { style: styles.wrap || {}, className: "slider-picker " + className }, React__default.createElement("div", { style: styles.hue }, React__default.createElement(Hue, {
|
20218 | style: styles.Hue,
|
20219 | hsl,
|
20220 | pointer,
|
20221 | onChange
|
20222 | })), React__default.createElement("div", { style: styles.swatches }, React__default.createElement(SliderSwatches, { hsl, onClick: onChange })));
|
20223 | };
|
20224 | Slider$1.propTypes = {
|
20225 | styles: PropTypes.object
|
20226 | };
|
20227 | Slider$1.defaultProps = {
|
20228 | pointer: SliderPointer2,
|
20229 | styles: {}
|
20230 | };
|
20231 | ColorWrap(Slider$1);
|
20232 | var CheckIcon = {};
|
20233 | Object.defineProperty(CheckIcon, "__esModule", {
|
20234 | value: true
|
20235 | });
|
20236 | var _extends = Object.assign || function(target) {
|
20237 | for (var i = 1; i < arguments.length; i++) {
|
20238 | var source = arguments[i];
|
20239 | for (var key in source) {
|
20240 | if (Object.prototype.hasOwnProperty.call(source, key)) {
|
20241 | target[key] = source[key];
|
20242 | }
|
20243 | }
|
20244 | }
|
20245 | return target;
|
20246 | };
|
20247 | var _react = React__default;
|
20248 | var _react2 = _interopRequireDefault(_react);
|
20249 | function _interopRequireDefault(obj) {
|
20250 | return obj && obj.__esModule ? obj : { default: obj };
|
20251 | }
|
20252 | function _objectWithoutProperties(obj, keys2) {
|
20253 | var target = {};
|
20254 | for (var i in obj) {
|
20255 | if (keys2.indexOf(i) >= 0)
|
20256 | continue;
|
20257 | if (!Object.prototype.hasOwnProperty.call(obj, i))
|
20258 | continue;
|
20259 | target[i] = obj[i];
|
20260 | }
|
20261 | return target;
|
20262 | }
|
20263 | var DEFAULT_SIZE = 24;
|
20264 | var _default = CheckIcon.default = function(_ref) {
|
20265 | var _ref$fill = _ref.fill, fill = _ref$fill === void 0 ? "currentColor" : _ref$fill, _ref$width = _ref.width, width = _ref$width === void 0 ? DEFAULT_SIZE : _ref$width, _ref$height = _ref.height, height = _ref$height === void 0 ? DEFAULT_SIZE : _ref$height, _ref$style = _ref.style, style = _ref$style === void 0 ? {} : _ref$style, props = _objectWithoutProperties(_ref, ["fill", "width", "height", "style"]);
|
20266 | return _react2.default.createElement("svg", _extends({
|
20267 | viewBox: "0 0 " + DEFAULT_SIZE + " " + DEFAULT_SIZE,
|
20268 | style: _extends({ fill, width, height }, style)
|
20269 | }, props), _react2.default.createElement("path", { d: "M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z" }));
|
20270 | };
|
20271 | var SwatchesColor = function SwatchesColor2(_ref) {
|
20272 | var color = _ref.color, _ref$onClick = _ref.onClick, onClick = _ref$onClick === void 0 ? function() {
|
20273 | } : _ref$onClick, onSwatchHover = _ref.onSwatchHover, first = _ref.first, last = _ref.last, active3 = _ref.active;
|
20274 | var styles = _default$2({
|
20275 | "default": {
|
20276 | color: {
|
20277 | width: "40px",
|
20278 | height: "24px",
|
20279 | cursor: "pointer",
|
20280 | background: color,
|
20281 | marginBottom: "1px"
|
20282 | },
|
20283 | check: {
|
20284 | color: getContrastingColor(color),
|
20285 | marginLeft: "8px",
|
20286 | display: "none"
|
20287 | }
|
20288 | },
|
20289 | "first": {
|
20290 | color: {
|
20291 | overflow: "hidden",
|
20292 | borderRadius: "2px 2px 0 0"
|
20293 | }
|
20294 | },
|
20295 | "last": {
|
20296 | color: {
|
20297 | overflow: "hidden",
|
20298 | borderRadius: "0 0 2px 2px"
|
20299 | }
|
20300 | },
|
20301 | "active": {
|
20302 | check: {
|
20303 | display: "block"
|
20304 | }
|
20305 | },
|
20306 | "color-#FFFFFF": {
|
20307 | color: {
|
20308 | boxShadow: "inset 0 0 0 1px #ddd"
|
20309 | },
|
20310 | check: {
|
20311 | color: "#333"
|
20312 | }
|
20313 | },
|
20314 | "transparent": {
|
20315 | check: {
|
20316 | color: "#333"
|
20317 | }
|
20318 | }
|
20319 | }, {
|
20320 | first,
|
20321 | last,
|
20322 | active: active3,
|
20323 | "color-#FFFFFF": color === "#FFFFFF",
|
20324 | "transparent": color === "transparent"
|
20325 | });
|
20326 | return React__default.createElement(Swatch$1, {
|
20327 | color,
|
20328 | style: styles.color,
|
20329 | onClick,
|
20330 | onHover: onSwatchHover,
|
20331 | focusStyle: { boxShadow: "0 0 4px " + color }
|
20332 | }, React__default.createElement("div", { style: styles.check }, React__default.createElement(_default, null)));
|
20333 | };
|
20334 | var SwatchesGroup = function SwatchesGroup2(_ref) {
|
20335 | var onClick = _ref.onClick, onSwatchHover = _ref.onSwatchHover, group = _ref.group, active3 = _ref.active;
|
20336 | var styles = _default$2({
|
20337 | "default": {
|
20338 | group: {
|
20339 | paddingBottom: "10px",
|
20340 | width: "40px",
|
20341 | float: "left",
|
20342 | marginRight: "10px"
|
20343 | }
|
20344 | }
|
20345 | });
|
20346 | return React__default.createElement("div", { style: styles.group }, map$1(group, function(color, i) {
|
20347 | return React__default.createElement(SwatchesColor, {
|
20348 | key: color,
|
20349 | color,
|
20350 | active: color.toLowerCase() === active3,
|
20351 | first: i === 0,
|
20352 | last: i === group.length - 1,
|
20353 | onClick,
|
20354 | onSwatchHover
|
20355 | });
|
20356 | }));
|
20357 | };
|
20358 | var Swatches = function Swatches2(_ref) {
|
20359 | var width = _ref.width, height = _ref.height, onChange = _ref.onChange, onSwatchHover = _ref.onSwatchHover, colors = _ref.colors, hex = _ref.hex, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
20360 | var styles = _default$2(merge$1({
|
20361 | "default": {
|
20362 | picker: {
|
20363 | width,
|
20364 | height
|
20365 | },
|
20366 | overflow: {
|
20367 | height,
|
20368 | overflowY: "scroll"
|
20369 | },
|
20370 | body: {
|
20371 | padding: "16px 0 6px 16px"
|
20372 | },
|
20373 | clear: {
|
20374 | clear: "both"
|
20375 | }
|
20376 | }
|
20377 | }, passedStyles));
|
20378 | var handleChange = function handleChange2(data, e) {
|
20379 | return onChange({ hex: data, source: "hex" }, e);
|
20380 | };
|
20381 | return React__default.createElement("div", { style: styles.picker, className: "swatches-picker " + className }, React__default.createElement(Raised, null, React__default.createElement("div", { style: styles.overflow }, React__default.createElement("div", { style: styles.body }, map$1(colors, function(group) {
|
20382 | return React__default.createElement(SwatchesGroup, {
|
20383 | key: group.toString(),
|
20384 | group,
|
20385 | active: hex,
|
20386 | onClick: handleChange,
|
20387 | onSwatchHover
|
20388 | });
|
20389 | }), React__default.createElement("div", { style: styles.clear })))));
|
20390 | };
|
20391 | Swatches.propTypes = {
|
20392 | width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
20393 | height: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
20394 | colors: PropTypes.arrayOf(PropTypes.arrayOf(PropTypes.string)),
|
20395 | styles: PropTypes.object
|
20396 | };
|
20397 | Swatches.defaultProps = {
|
20398 | width: 320,
|
20399 | height: 240,
|
20400 | colors: [[red["900"], red["700"], red["500"], red["300"], red["100"]], [pink["900"], pink["700"], pink["500"], pink["300"], pink["100"]], [purple["900"], purple["700"], purple["500"], purple["300"], purple["100"]], [deepPurple["900"], deepPurple["700"], deepPurple["500"], deepPurple["300"], deepPurple["100"]], [indigo["900"], indigo["700"], indigo["500"], indigo["300"], indigo["100"]], [blue["900"], blue["700"], blue["500"], blue["300"], blue["100"]], [lightBlue["900"], lightBlue["700"], lightBlue["500"], lightBlue["300"], lightBlue["100"]], [cyan["900"], cyan["700"], cyan["500"], cyan["300"], cyan["100"]], [teal["900"], teal["700"], teal["500"], teal["300"], teal["100"]], ["#194D33", green["700"], green["500"], green["300"], green["100"]], [lightGreen["900"], lightGreen["700"], lightGreen["500"], lightGreen["300"], lightGreen["100"]], [lime["900"], lime["700"], lime["500"], lime["300"], lime["100"]], [yellow["900"], yellow["700"], yellow["500"], yellow["300"], yellow["100"]], [amber["900"], amber["700"], amber["500"], amber["300"], amber["100"]], [orange["900"], orange["700"], orange["500"], orange["300"], orange["100"]], [deepOrange["900"], deepOrange["700"], deepOrange["500"], deepOrange["300"], deepOrange["100"]], [brown["900"], brown["700"], brown["500"], brown["300"], brown["100"]], [blueGrey["900"], blueGrey["700"], blueGrey["500"], blueGrey["300"], blueGrey["100"]], ["#000000", "#525252", "#969696", "#D9D9D9", "#FFFFFF"]],
|
20401 | styles: {}
|
20402 | };
|
20403 | ColorWrap(Swatches);
|
20404 | var Twitter = function Twitter2(_ref) {
|
20405 | var onChange = _ref.onChange, onSwatchHover = _ref.onSwatchHover, hex = _ref.hex, colors = _ref.colors, width = _ref.width, triangle = _ref.triangle, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
20406 | var styles = _default$2(merge$1({
|
20407 | "default": {
|
20408 | card: {
|
20409 | width,
|
20410 | background: "#fff",
|
20411 | border: "0 solid rgba(0,0,0,0.25)",
|
20412 | boxShadow: "0 1px 4px rgba(0,0,0,0.25)",
|
20413 | borderRadius: "4px",
|
20414 | position: "relative"
|
20415 | },
|
20416 | body: {
|
20417 | padding: "15px 9px 9px 15px"
|
20418 | },
|
20419 | label: {
|
20420 | fontSize: "18px",
|
20421 | color: "#fff"
|
20422 | },
|
20423 | triangle: {
|
20424 | width: "0px",
|
20425 | height: "0px",
|
20426 | borderStyle: "solid",
|
20427 | borderWidth: "0 9px 10px 9px",
|
20428 | borderColor: "transparent transparent #fff transparent",
|
20429 | position: "absolute"
|
20430 | },
|
20431 | triangleShadow: {
|
20432 | width: "0px",
|
20433 | height: "0px",
|
20434 | borderStyle: "solid",
|
20435 | borderWidth: "0 9px 10px 9px",
|
20436 | borderColor: "transparent transparent rgba(0,0,0,.1) transparent",
|
20437 | position: "absolute"
|
20438 | },
|
20439 | hash: {
|
20440 | background: "#F0F0F0",
|
20441 | height: "30px",
|
20442 | width: "30px",
|
20443 | borderRadius: "4px 0 0 4px",
|
20444 | float: "left",
|
20445 | color: "#98A1A4",
|
20446 | display: "flex",
|
20447 | alignItems: "center",
|
20448 | justifyContent: "center"
|
20449 | },
|
20450 | input: {
|
20451 | width: "100px",
|
20452 | fontSize: "14px",
|
20453 | color: "#666",
|
20454 | border: "0px",
|
20455 | outline: "none",
|
20456 | height: "28px",
|
20457 | boxShadow: "inset 0 0 0 1px #F0F0F0",
|
20458 | boxSizing: "content-box",
|
20459 | borderRadius: "0 4px 4px 0",
|
20460 | float: "left",
|
20461 | paddingLeft: "8px"
|
20462 | },
|
20463 | swatch: {
|
20464 | width: "30px",
|
20465 | height: "30px",
|
20466 | float: "left",
|
20467 | borderRadius: "4px",
|
20468 | margin: "0 6px 6px 0"
|
20469 | },
|
20470 | clear: {
|
20471 | clear: "both"
|
20472 | }
|
20473 | },
|
20474 | "hide-triangle": {
|
20475 | triangle: {
|
20476 | display: "none"
|
20477 | },
|
20478 | triangleShadow: {
|
20479 | display: "none"
|
20480 | }
|
20481 | },
|
20482 | "top-left-triangle": {
|
20483 | triangle: {
|
20484 | top: "-10px",
|
20485 | left: "12px"
|
20486 | },
|
20487 | triangleShadow: {
|
20488 | top: "-11px",
|
20489 | left: "12px"
|
20490 | }
|
20491 | },
|
20492 | "top-right-triangle": {
|
20493 | triangle: {
|
20494 | top: "-10px",
|
20495 | right: "12px"
|
20496 | },
|
20497 | triangleShadow: {
|
20498 | top: "-11px",
|
20499 | right: "12px"
|
20500 | }
|
20501 | }
|
20502 | }, passedStyles), {
|
20503 | "hide-triangle": triangle === "hide",
|
20504 | "top-left-triangle": triangle === "top-left",
|
20505 | "top-right-triangle": triangle === "top-right"
|
20506 | });
|
20507 | var handleChange = function handleChange2(hexcode, e) {
|
20508 | isValidHex(hexcode) && onChange({
|
20509 | hex: hexcode,
|
20510 | source: "hex"
|
20511 | }, e);
|
20512 | };
|
20513 | return React__default.createElement("div", { style: styles.card, className: "twitter-picker " + className }, React__default.createElement("div", { style: styles.triangleShadow }), React__default.createElement("div", { style: styles.triangle }), React__default.createElement("div", { style: styles.body }, map$1(colors, function(c, i) {
|
20514 | return React__default.createElement(Swatch$1, {
|
20515 | key: i,
|
20516 | color: c,
|
20517 | hex: c,
|
20518 | style: styles.swatch,
|
20519 | onClick: handleChange,
|
20520 | onHover: onSwatchHover,
|
20521 | focusStyle: {
|
20522 | boxShadow: "0 0 4px " + c
|
20523 | }
|
20524 | });
|
20525 | }), React__default.createElement("div", { style: styles.hash }, "#"), React__default.createElement(EditableInput, {
|
20526 | label: null,
|
20527 | style: { input: styles.input },
|
20528 | value: hex.replace("#", ""),
|
20529 | onChange: handleChange
|
20530 | }), React__default.createElement("div", { style: styles.clear })));
|
20531 | };
|
20532 | Twitter.propTypes = {
|
20533 | width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
20534 | triangle: PropTypes.oneOf(["hide", "top-left", "top-right"]),
|
20535 | colors: PropTypes.arrayOf(PropTypes.string),
|
20536 | styles: PropTypes.object
|
20537 | };
|
20538 | Twitter.defaultProps = {
|
20539 | width: 276,
|
20540 | colors: ["#FF6900", "#FCB900", "#7BDCB5", "#00D084", "#8ED1FC", "#0693E3", "#ABB8C3", "#EB144C", "#F78DA7", "#9900EF"],
|
20541 | triangle: "top-left",
|
20542 | styles: {}
|
20543 | };
|
20544 | ColorWrap(Twitter);
|
20545 | var GooglePointerCircle = function GooglePointerCircle2(props) {
|
20546 | var styles = _default$2({
|
20547 | "default": {
|
20548 | picker: {
|
20549 | width: "20px",
|
20550 | height: "20px",
|
20551 | borderRadius: "22px",
|
20552 | border: "2px #fff solid",
|
20553 | transform: "translate(-12px, -13px)",
|
20554 | background: "hsl(" + Math.round(props.hsl.h) + ", " + Math.round(props.hsl.s * 100) + "%, " + Math.round(props.hsl.l * 100) + "%)"
|
20555 | }
|
20556 | }
|
20557 | });
|
20558 | return React__default.createElement("div", { style: styles.picker });
|
20559 | };
|
20560 | GooglePointerCircle.propTypes = {
|
20561 | hsl: PropTypes.shape({
|
20562 | h: PropTypes.number,
|
20563 | s: PropTypes.number,
|
20564 | l: PropTypes.number,
|
20565 | a: PropTypes.number
|
20566 | })
|
20567 | };
|
20568 | GooglePointerCircle.defaultProps = {
|
20569 | hsl: { a: 1, h: 249.94, l: 0.2, s: 0.5 }
|
20570 | };
|
20571 | var GooglePointer = function GooglePointer2(props) {
|
20572 | var styles = _default$2({
|
20573 | "default": {
|
20574 | picker: {
|
20575 | width: "20px",
|
20576 | height: "20px",
|
20577 | borderRadius: "22px",
|
20578 | transform: "translate(-10px, -7px)",
|
20579 | background: "hsl(" + Math.round(props.hsl.h) + ", 100%, 50%)",
|
20580 | border: "2px white solid"
|
20581 | }
|
20582 | }
|
20583 | });
|
20584 | return React__default.createElement("div", { style: styles.picker });
|
20585 | };
|
20586 | GooglePointer.propTypes = {
|
20587 | hsl: PropTypes.shape({
|
20588 | h: PropTypes.number,
|
20589 | s: PropTypes.number,
|
20590 | l: PropTypes.number,
|
20591 | a: PropTypes.number
|
20592 | })
|
20593 | };
|
20594 | GooglePointer.defaultProps = {
|
20595 | hsl: { a: 1, h: 249.94, l: 0.2, s: 0.5 }
|
20596 | };
|
20597 | var GoogleFields = function GoogleFields2(_ref) {
|
20598 | var onChange = _ref.onChange, rgb = _ref.rgb, hsl = _ref.hsl, hex = _ref.hex, hsv = _ref.hsv;
|
20599 | var handleChange = function handleChange2(data, e) {
|
20600 | if (data.hex) {
|
20601 | isValidHex(data.hex) && onChange({
|
20602 | hex: data.hex,
|
20603 | source: "hex"
|
20604 | }, e);
|
20605 | } else if (data.rgb) {
|
20606 | var values = data.rgb.split(",");
|
20607 | isvalidColorString(data.rgb, "rgb") && onChange({
|
20608 | r: values[0],
|
20609 | g: values[1],
|
20610 | b: values[2],
|
20611 | a: 1,
|
20612 | source: "rgb"
|
20613 | }, e);
|
20614 | } else if (data.hsv) {
|
20615 | var _values = data.hsv.split(",");
|
20616 | if (isvalidColorString(data.hsv, "hsv")) {
|
20617 | _values[2] = _values[2].replace("%", "");
|
20618 | _values[1] = _values[1].replace("%", "");
|
20619 | _values[0] = _values[0].replace("\xB0", "");
|
20620 | if (_values[1] == 1) {
|
20621 | _values[1] = 0.01;
|
20622 | } else if (_values[2] == 1) {
|
20623 | _values[2] = 0.01;
|
20624 | }
|
20625 | onChange({
|
20626 | h: Number(_values[0]),
|
20627 | s: Number(_values[1]),
|
20628 | v: Number(_values[2]),
|
20629 | source: "hsv"
|
20630 | }, e);
|
20631 | }
|
20632 | } else if (data.hsl) {
|
20633 | var _values2 = data.hsl.split(",");
|
20634 | if (isvalidColorString(data.hsl, "hsl")) {
|
20635 | _values2[2] = _values2[2].replace("%", "");
|
20636 | _values2[1] = _values2[1].replace("%", "");
|
20637 | _values2[0] = _values2[0].replace("\xB0", "");
|
20638 | if (hsvValue[1] == 1) {
|
20639 | hsvValue[1] = 0.01;
|
20640 | } else if (hsvValue[2] == 1) {
|
20641 | hsvValue[2] = 0.01;
|
20642 | }
|
20643 | onChange({
|
20644 | h: Number(_values2[0]),
|
20645 | s: Number(_values2[1]),
|
20646 | v: Number(_values2[2]),
|
20647 | source: "hsl"
|
20648 | }, e);
|
20649 | }
|
20650 | }
|
20651 | };
|
20652 | var styles = _default$2({
|
20653 | "default": {
|
20654 | wrap: {
|
20655 | display: "flex",
|
20656 | height: "100px",
|
20657 | marginTop: "4px"
|
20658 | },
|
20659 | fields: {
|
20660 | width: "100%"
|
20661 | },
|
20662 | column: {
|
20663 | paddingTop: "10px",
|
20664 | display: "flex",
|
20665 | justifyContent: "space-between"
|
20666 | },
|
20667 | double: {
|
20668 | padding: "0px 4.4px",
|
20669 | boxSizing: "border-box"
|
20670 | },
|
20671 | input: {
|
20672 | width: "100%",
|
20673 | height: "38px",
|
20674 | boxSizing: "border-box",
|
20675 | padding: "4px 10% 3px",
|
20676 | textAlign: "center",
|
20677 | border: "1px solid #dadce0",
|
20678 | fontSize: "11px",
|
20679 | textTransform: "lowercase",
|
20680 | borderRadius: "5px",
|
20681 | outline: "none",
|
20682 | fontFamily: "Roboto,Arial,sans-serif"
|
20683 | },
|
20684 | input2: {
|
20685 | height: "38px",
|
20686 | width: "100%",
|
20687 | border: "1px solid #dadce0",
|
20688 | boxSizing: "border-box",
|
20689 | fontSize: "11px",
|
20690 | textTransform: "lowercase",
|
20691 | borderRadius: "5px",
|
20692 | outline: "none",
|
20693 | paddingLeft: "10px",
|
20694 | fontFamily: "Roboto,Arial,sans-serif"
|
20695 | },
|
20696 | label: {
|
20697 | textAlign: "center",
|
20698 | fontSize: "12px",
|
20699 | background: "#fff",
|
20700 | position: "absolute",
|
20701 | textTransform: "uppercase",
|
20702 | color: "#3c4043",
|
20703 | width: "35px",
|
20704 | top: "-6px",
|
20705 | left: "0",
|
20706 | right: "0",
|
20707 | marginLeft: "auto",
|
20708 | marginRight: "auto",
|
20709 | fontFamily: "Roboto,Arial,sans-serif"
|
20710 | },
|
20711 | label2: {
|
20712 | left: "10px",
|
20713 | textAlign: "center",
|
20714 | fontSize: "12px",
|
20715 | background: "#fff",
|
20716 | position: "absolute",
|
20717 | textTransform: "uppercase",
|
20718 | color: "#3c4043",
|
20719 | width: "32px",
|
20720 | top: "-6px",
|
20721 | fontFamily: "Roboto,Arial,sans-serif"
|
20722 | },
|
20723 | single: {
|
20724 | flexGrow: "1",
|
20725 | margin: "0px 4.4px"
|
20726 | }
|
20727 | }
|
20728 | });
|
20729 | var rgbValue = rgb.r + ", " + rgb.g + ", " + rgb.b;
|
20730 | var hslValue = Math.round(hsl.h) + "\xB0, " + Math.round(hsl.s * 100) + "%, " + Math.round(hsl.l * 100) + "%";
|
20731 | var hsvValue = Math.round(hsv.h) + "\xB0, " + Math.round(hsv.s * 100) + "%, " + Math.round(hsv.v * 100) + "%";
|
20732 | return React__default.createElement("div", { style: styles.wrap, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.fields }, React__default.createElement("div", { style: styles.double }, React__default.createElement(EditableInput, {
|
20733 | style: { input: styles.input, label: styles.label },
|
20734 | label: "hex",
|
20735 | value: hex,
|
20736 | onChange: handleChange
|
20737 | })), React__default.createElement("div", { style: styles.column }, React__default.createElement("div", { style: styles.single }, React__default.createElement(EditableInput, {
|
20738 | style: { input: styles.input2, label: styles.label2 },
|
20739 | label: "rgb",
|
20740 | value: rgbValue,
|
20741 | onChange: handleChange
|
20742 | })), React__default.createElement("div", { style: styles.single }, React__default.createElement(EditableInput, {
|
20743 | style: { input: styles.input2, label: styles.label2 },
|
20744 | label: "hsv",
|
20745 | value: hsvValue,
|
20746 | onChange: handleChange
|
20747 | })), React__default.createElement("div", { style: styles.single }, React__default.createElement(EditableInput, {
|
20748 | style: { input: styles.input2, label: styles.label2 },
|
20749 | label: "hsl",
|
20750 | value: hslValue,
|
20751 | onChange: handleChange
|
20752 | })))));
|
20753 | };
|
20754 | var Google = function Google2(_ref) {
|
20755 | var width = _ref.width, onChange = _ref.onChange, rgb = _ref.rgb, hsl = _ref.hsl, hsv = _ref.hsv, hex = _ref.hex, header = _ref.header, _ref$styles = _ref.styles, passedStyles = _ref$styles === void 0 ? {} : _ref$styles, _ref$className = _ref.className, className = _ref$className === void 0 ? "" : _ref$className;
|
20756 | var styles = _default$2(merge$1({
|
20757 | "default": {
|
20758 | picker: {
|
20759 | width,
|
20760 | background: "#fff",
|
20761 | border: "1px solid #dfe1e5",
|
20762 | boxSizing: "initial",
|
20763 | display: "flex",
|
20764 | flexWrap: "wrap",
|
20765 | borderRadius: "8px 8px 0px 0px"
|
20766 | },
|
20767 | head: {
|
20768 | height: "57px",
|
20769 | width: "100%",
|
20770 | paddingTop: "16px",
|
20771 | paddingBottom: "16px",
|
20772 | paddingLeft: "16px",
|
20773 | fontSize: "20px",
|
20774 | boxSizing: "border-box",
|
20775 | fontFamily: "Roboto-Regular,HelveticaNeue,Arial,sans-serif"
|
20776 | },
|
20777 | saturation: {
|
20778 | width: "70%",
|
20779 | padding: "0px",
|
20780 | position: "relative",
|
20781 | overflow: "hidden"
|
20782 | },
|
20783 | swatch: {
|
20784 | width: "30%",
|
20785 | height: "228px",
|
20786 | padding: "0px",
|
20787 | background: "rgba(" + rgb.r + ", " + rgb.g + ", " + rgb.b + ", 1)",
|
20788 | position: "relative",
|
20789 | overflow: "hidden"
|
20790 | },
|
20791 | body: {
|
20792 | margin: "auto",
|
20793 | width: "95%"
|
20794 | },
|
20795 | controls: {
|
20796 | display: "flex",
|
20797 | boxSizing: "border-box",
|
20798 | height: "52px",
|
20799 | paddingTop: "22px"
|
20800 | },
|
20801 | color: {
|
20802 | width: "32px"
|
20803 | },
|
20804 | hue: {
|
20805 | height: "8px",
|
20806 | position: "relative",
|
20807 | margin: "0px 16px 0px 16px",
|
20808 | width: "100%"
|
20809 | },
|
20810 | Hue: {
|
20811 | radius: "2px"
|
20812 | }
|
20813 | }
|
20814 | }, passedStyles));
|
20815 | return React__default.createElement("div", { style: styles.picker, className: "google-picker " + className }, React__default.createElement("div", { style: styles.head }, header), React__default.createElement("div", { style: styles.swatch }), React__default.createElement("div", { style: styles.saturation }, React__default.createElement(Saturation, {
|
20816 | hsl,
|
20817 | hsv,
|
20818 | pointer: GooglePointerCircle,
|
20819 | onChange
|
20820 | })), React__default.createElement("div", { style: styles.body }, React__default.createElement("div", { style: styles.controls, className: "flexbox-fix" }, React__default.createElement("div", { style: styles.hue }, React__default.createElement(Hue, {
|
20821 | style: styles.Hue,
|
20822 | hsl,
|
20823 | radius: "4px",
|
20824 | pointer: GooglePointer,
|
20825 | onChange
|
20826 | }))), React__default.createElement(GoogleFields, {
|
20827 | rgb,
|
20828 | hsl,
|
20829 | hex,
|
20830 | hsv,
|
20831 | onChange
|
20832 | })));
|
20833 | };
|
20834 | Google.propTypes = {
|
20835 | width: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
20836 | styles: PropTypes.object,
|
20837 | header: PropTypes.string
|
20838 | };
|
20839 | Google.defaultProps = {
|
20840 | width: 652,
|
20841 | styles: {},
|
20842 | header: "Color picker"
|
20843 | };
|
20844 | ColorWrap(Google);
|
20845 | const IconConfig = () => {
|
20846 | var _a, _b, _c, _d;
|
20847 | const { selectWidgetItem, handleChange } = useConfig();
|
20848 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
20849 | label: "IconName"
|
20850 | }, React__default.createElement(Input$1, {
|
20851 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.iconName,
|
20852 | onChange: (event) => handleChange(event.target.value, "config.iconName")
|
20853 | })), React__default.createElement(Form.Item, {
|
20854 | label: "Size"
|
20855 | }, React__default.createElement(InputNumber$1, {
|
20856 | style: { width: "100%" },
|
20857 | formatter: (value) => `${value}px`,
|
20858 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.fontSize,
|
20859 | onChange: (value) => handleChange(value, "config.fontSize")
|
20860 | })), React__default.createElement(Form.Item, {
|
20861 | label: "Color"
|
20862 | }, React__default.createElement(SketchPicker, {
|
20863 | width: "93%",
|
20864 | color: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.color,
|
20865 | onChange: (color) => handleChange(color.hex, "config.color")
|
20866 | })), React__default.createElement(Form.Item, {
|
20867 | label: "\u662F\u5426\u9690\u85CF"
|
20868 | }, React__default.createElement(Switch$1, {
|
20869 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.hidden,
|
20870 | onChange: (checked) => handleChange(checked, "config.hidden")
|
20871 | })));
|
20872 | };
|
20873 | const TextConfig = () => {
|
20874 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
20875 | const { selectWidgetItem, handleChange } = useConfig();
|
20876 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
20877 | label: "\u5185\u5BB9"
|
20878 | }, React__default.createElement(Input$1, {
|
20879 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.children,
|
20880 | onChange: (event) => handleChange(event.target.value, "config.children")
|
20881 | })), React__default.createElement(Form.Item, {
|
20882 | label: "\u6587\u672C\u7C7B\u578B"
|
20883 | }, React__default.createElement(Select$1, {
|
20884 | options: textTypeOptions,
|
20885 | allowClear: true,
|
20886 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.type,
|
20887 | onChange: (value) => handleChange(value, "config.type")
|
20888 | })), React__default.createElement(Form.Item, {
|
20889 | label: "\u6DFB\u52A0Code\u6837\u5F0F"
|
20890 | }, React__default.createElement(Switch$1, {
|
20891 | defaultChecked: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.code,
|
20892 | onChange: (checked) => handleChange(checked, "config.code")
|
20893 | })), React__default.createElement(Form.Item, {
|
20894 | label: "\u662F\u5426\u53EF\u62F7\u8D1D"
|
20895 | }, React__default.createElement(Switch$1, {
|
20896 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.copyable,
|
20897 | onChange: (checked) => handleChange(checked, "config.copyable")
|
20898 | })), React__default.createElement(Form.Item, {
|
20899 | label: "\u6DFB\u52A0\u5220\u9664\u7EBF\u6837\u5F0F"
|
20900 | }, React__default.createElement(Switch$1, {
|
20901 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.delete,
|
20902 | onChange: (checked) => handleChange(checked, "config.delete")
|
20903 | })), React__default.createElement(Form.Item, {
|
20904 | label: "\u662F\u5426\u9690\u85CF"
|
20905 | }, React__default.createElement(Switch$1, {
|
20906 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.hidden,
|
20907 | onChange: (checked) => handleChange(checked, "config.hidden")
|
20908 | })), React__default.createElement(Form.Item, {
|
20909 | label: "\u662F\u5426\u7981\u7528"
|
20910 | }, React__default.createElement(Switch$1, {
|
20911 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.disabled,
|
20912 | onChange: (checked) => handleChange(checked, "config.disabled")
|
20913 | })), React__default.createElement(Form.Item, {
|
20914 | label: "\u662F\u5426\u53EF\u7F16\u8F91"
|
20915 | }, React__default.createElement(Switch$1, {
|
20916 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.editable,
|
20917 | onChange: (checked) => handleChange(checked, "config.editable")
|
20918 | })), React__default.createElement(Form.Item, {
|
20919 | label: "\u81EA\u52A8\u6EA2\u51FA\u7701\u7565"
|
20920 | }, React__default.createElement(Switch$1, {
|
20921 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.ellipsis,
|
20922 | onChange: (checked) => handleChange(checked, "config.ellipsis")
|
20923 | })), React__default.createElement(Form.Item, {
|
20924 | label: "\u6DFB\u52A0\u952E\u76D8\u6837\u5F0F"
|
20925 | }, React__default.createElement(Switch$1, {
|
20926 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.keyboard,
|
20927 | onChange: (checked) => handleChange(checked, "config.keyboard")
|
20928 | })), React__default.createElement(Form.Item, {
|
20929 | label: "\u6DFB\u52A0\u6807\u8BB0\u6837\u5F0F"
|
20930 | }, React__default.createElement(Switch$1, {
|
20931 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.mark,
|
20932 | onChange: (checked) => handleChange(checked, "config.mark")
|
20933 | })), React__default.createElement(Form.Item, {
|
20934 | label: "\u662F\u5426\u52A0\u7C97"
|
20935 | }, React__default.createElement(Switch$1, {
|
20936 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.strong,
|
20937 | onChange: (checked) => handleChange(checked, "config.strong")
|
20938 | })), React__default.createElement(Form.Item, {
|
20939 | label: "\u662F\u5426\u659C\u4F53"
|
20940 | }, React__default.createElement(Switch$1, {
|
20941 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.italic,
|
20942 | onChange: (checked) => handleChange(checked, "config.italic")
|
20943 | })), React__default.createElement(Form.Item, {
|
20944 | label: "\u6DFB\u52A0\u4E0B\u5212\u7EBF\u6837\u5F0F"
|
20945 | }, React__default.createElement(Switch$1, {
|
20946 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.underline,
|
20947 | onChange: (checked) => handleChange(checked, "config.underline")
|
20948 | })));
|
20949 | };
|
20950 | const TitleConfig = () => {
|
20951 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
20952 | const { selectWidgetItem, handleChange } = useConfig();
|
20953 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
20954 | label: "\u5185\u5BB9"
|
20955 | }, React__default.createElement(Input$1, {
|
20956 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.children,
|
20957 | onChange: (event) => handleChange(event.target.value, "config.children")
|
20958 | })), React__default.createElement(Form.Item, {
|
20959 | label: "\u6587\u672C\u7C7B\u578B"
|
20960 | }, React__default.createElement(Select$1, {
|
20961 | options: textTypeOptions,
|
20962 | allowClear: true,
|
20963 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.type,
|
20964 | onChange: (value) => handleChange(value, "config.type")
|
20965 | })), React__default.createElement(Form.Item, {
|
20966 | label: "\u91CD\u8981\u7A0B\u5EA6"
|
20967 | }, React__default.createElement(Select$1, {
|
20968 | options: levelOptions,
|
20969 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.level,
|
20970 | onChange: (value) => handleChange(value, "config.level")
|
20971 | })), React__default.createElement(Form.Item, {
|
20972 | label: "\u6DFB\u52A0Code\u6837\u5F0F"
|
20973 | }, React__default.createElement(Switch$1, {
|
20974 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.code,
|
20975 | onChange: (checked) => handleChange(checked, "config.code")
|
20976 | })), React__default.createElement(Form.Item, {
|
20977 | label: "\u662F\u5426\u53EF\u62F7\u8D1D"
|
20978 | }, React__default.createElement(Switch$1, {
|
20979 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.copyable,
|
20980 | onChange: (checked) => handleChange(checked, "config.copyable")
|
20981 | })), React__default.createElement(Form.Item, {
|
20982 | label: "\u6DFB\u52A0\u5220\u9664\u7EBF\u6837\u5F0F"
|
20983 | }, React__default.createElement(Switch$1, {
|
20984 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.delete,
|
20985 | onChange: (checked) => handleChange(checked, "config.delete")
|
20986 | })), React__default.createElement(Form.Item, {
|
20987 | label: "\u662F\u5426\u9690\u85CF"
|
20988 | }, React__default.createElement(Switch$1, {
|
20989 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.hidden,
|
20990 | onChange: (checked) => handleChange(checked, "config.hidden")
|
20991 | })), React__default.createElement(Form.Item, {
|
20992 | label: "\u662F\u5426\u7981\u7528"
|
20993 | }, React__default.createElement(Switch$1, {
|
20994 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.disabled,
|
20995 | onChange: (checked) => handleChange(checked, "config.disabled")
|
20996 | })), React__default.createElement(Form.Item, {
|
20997 | label: "\u662F\u5426\u53EF\u7F16\u8F91"
|
20998 | }, React__default.createElement(Switch$1, {
|
20999 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.editable,
|
21000 | onChange: (checked) => handleChange(checked, "config.editable")
|
21001 | })), React__default.createElement(Form.Item, {
|
21002 | label: "\u81EA\u52A8\u6EA2\u51FA\u7701\u7565"
|
21003 | }, React__default.createElement(Switch$1, {
|
21004 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.ellipsis,
|
21005 | onChange: (checked) => handleChange(checked, "config.ellipsis")
|
21006 | })), React__default.createElement(Form.Item, {
|
21007 | label: "\u6DFB\u52A0\u6807\u8BB0\u6837\u5F0F"
|
21008 | }, React__default.createElement(Switch$1, {
|
21009 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.mark,
|
21010 | onChange: (checked) => handleChange(checked, "config.mark")
|
21011 | })), React__default.createElement(Form.Item, {
|
21012 | label: "\u662F\u5426\u52A0\u7C97"
|
21013 | }, React__default.createElement(Switch$1, {
|
21014 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.strong,
|
21015 | onChange: (checked) => handleChange(checked, "config.strong")
|
21016 | })), React__default.createElement(Form.Item, {
|
21017 | label: "\u662F\u5426\u659C\u4F53"
|
21018 | }, React__default.createElement(Switch$1, {
|
21019 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.italic,
|
21020 | onChange: (checked) => handleChange(checked, "config.italic")
|
21021 | })), React__default.createElement(Form.Item, {
|
21022 | label: "\u6DFB\u52A0\u4E0B\u5212\u7EBF\u6837\u5F0F"
|
21023 | }, React__default.createElement(Switch$1, {
|
21024 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.underline,
|
21025 | onChange: (checked) => handleChange(checked, "config.underline")
|
21026 | })));
|
21027 | };
|
21028 | const ParagraphConfig = () => {
|
21029 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
21030 | const { selectWidgetItem, handleChange } = useConfig();
|
21031 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21032 | label: "\u5185\u5BB9"
|
21033 | }, React__default.createElement(Input$1, {
|
21034 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.children,
|
21035 | onChange: (event) => handleChange(event.target.value, "config.children")
|
21036 | })), React__default.createElement(Form.Item, {
|
21037 | label: "\u6587\u672C\u7C7B\u578B"
|
21038 | }, React__default.createElement(Select$1, {
|
21039 | options: textTypeOptions,
|
21040 | allowClear: true,
|
21041 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.type,
|
21042 | onChange: (value) => handleChange(value, "config.type")
|
21043 | })), React__default.createElement(Form.Item, {
|
21044 | label: "\u662F\u5426\u9690\u85CF"
|
21045 | }, React__default.createElement(Switch$1, {
|
21046 | defaultChecked: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.hidden,
|
21047 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21048 | })), React__default.createElement(Form.Item, {
|
21049 | label: "\u6DFB\u52A0Code\u6837\u5F0F"
|
21050 | }, React__default.createElement(Switch$1, {
|
21051 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.code,
|
21052 | onChange: (checked) => handleChange(checked, "config.code")
|
21053 | })), React__default.createElement(Form.Item, {
|
21054 | label: "\u662F\u5426\u53EF\u62F7\u8D1D"
|
21055 | }, React__default.createElement(Switch$1, {
|
21056 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.copyable,
|
21057 | onChange: (checked) => handleChange(checked, "config.copyable")
|
21058 | })), React__default.createElement(Form.Item, {
|
21059 | label: "\u6DFB\u52A0\u5220\u9664\u7EBF\u6837\u5F0F"
|
21060 | }, React__default.createElement(Switch$1, {
|
21061 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.delete,
|
21062 | onChange: (checked) => handleChange(checked, "config.delete")
|
21063 | })), React__default.createElement(Form.Item, {
|
21064 | label: "\u662F\u5426\u7981\u7528"
|
21065 | }, React__default.createElement(Switch$1, {
|
21066 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.disabled,
|
21067 | onChange: (checked) => handleChange(checked, "config.disabled")
|
21068 | })), React__default.createElement(Form.Item, {
|
21069 | label: "\u662F\u5426\u53EF\u7F16\u8F91"
|
21070 | }, React__default.createElement(Switch$1, {
|
21071 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.editable,
|
21072 | onChange: (checked) => handleChange(checked, "config.editable")
|
21073 | })), React__default.createElement(Form.Item, {
|
21074 | label: "\u81EA\u52A8\u6EA2\u51FA\u7701\u7565"
|
21075 | }, React__default.createElement(Switch$1, {
|
21076 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.ellipsis,
|
21077 | onChange: (checked) => handleChange(checked, "config.ellipsis")
|
21078 | })), React__default.createElement(Form.Item, {
|
21079 | label: "\u6DFB\u52A0\u6807\u8BB0\u6837\u5F0F"
|
21080 | }, React__default.createElement(Switch$1, {
|
21081 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.mark,
|
21082 | onChange: (checked) => handleChange(checked, "config.mark")
|
21083 | })), React__default.createElement(Form.Item, {
|
21084 | label: "\u662F\u5426\u52A0\u7C97"
|
21085 | }, React__default.createElement(Switch$1, {
|
21086 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.strong,
|
21087 | onChange: (checked) => handleChange(checked, "config.strong")
|
21088 | })), React__default.createElement(Form.Item, {
|
21089 | label: "\u662F\u5426\u659C\u4F53"
|
21090 | }, React__default.createElement(Switch$1, {
|
21091 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.italic,
|
21092 | onChange: (checked) => handleChange(checked, "config.italic")
|
21093 | })), React__default.createElement(Form.Item, {
|
21094 | label: "\u6DFB\u52A0\u4E0B\u5212\u7EBF\u6837\u5F0F"
|
21095 | }, React__default.createElement(Switch$1, {
|
21096 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.underline,
|
21097 | onChange: (checked) => handleChange(checked, "config.underline")
|
21098 | })));
|
21099 | };
|
21100 | const DividerConfig = () => {
|
21101 | var _a, _b, _c, _d, _e, _f;
|
21102 | const { selectWidgetItem, handleChange } = useConfig();
|
21103 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21104 | label: "\u5185\u5BB9"
|
21105 | }, React__default.createElement(Input$1, {
|
21106 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.children,
|
21107 | onChange: (event) => handleChange(event.target.value, "config.children")
|
21108 | })), React__default.createElement(Form.Item, {
|
21109 | label: "\u6807\u9898\u4F4D\u7F6E"
|
21110 | }, React__default.createElement(Radio.Group, {
|
21111 | optionType: "button",
|
21112 | buttonStyle: "solid",
|
21113 | options: orientationOptions,
|
21114 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.orientation,
|
21115 | onChange: (event) => handleChange(event.target.value, "config.orientation")
|
21116 | })), React__default.createElement(Form.Item, {
|
21117 | label: "\u5206\u5272\u7EBF\u7C7B\u578B"
|
21118 | }, React__default.createElement(Radio.Group, {
|
21119 | optionType: "button",
|
21120 | buttonStyle: "solid",
|
21121 | options: directionTypeOptions,
|
21122 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.type,
|
21123 | onChange: (event) => handleChange(event.target.value, "config.type")
|
21124 | })), React__default.createElement(Form.Item, {
|
21125 | label: "\u662F\u5426\u865A\u7EBF"
|
21126 | }, React__default.createElement(Switch$1, {
|
21127 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.dashed,
|
21128 | onChange: (checked) => handleChange(checked, "config.dashed")
|
21129 | })), React__default.createElement(Form.Item, {
|
21130 | label: "\u662F\u5426\u666E\u901A\u6B63\u6587\u6837\u5F0F"
|
21131 | }, React__default.createElement(Switch$1, {
|
21132 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.plain,
|
21133 | onChange: (checked) => handleChange(checked, "config.plain")
|
21134 | })), React__default.createElement(Form.Item, {
|
21135 | label: "\u662F\u5426\u9690\u85CF"
|
21136 | }, React__default.createElement(Switch$1, {
|
21137 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.hidden,
|
21138 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21139 | })));
|
21140 | };
|
21141 | const RowConfig = () => {
|
21142 | var _a, _b, _c, _d, _e;
|
21143 | const { selectWidgetItem, handleChange } = useConfig();
|
21144 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21145 | label: "\u5782\u76F4\u5BF9\u9F50\u65B9\u5F0F"
|
21146 | }, React__default.createElement(Radio.Group, {
|
21147 | optionType: "button",
|
21148 | buttonStyle: "solid",
|
21149 | options: alignOptions,
|
21150 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.align,
|
21151 | onChange: (event) => handleChange(event.target.value, "config.align")
|
21152 | })), React__default.createElement(Form.Item, {
|
21153 | label: "\u6C34\u5E73\u6392\u5217\u65B9\u5F0F"
|
21154 | }, React__default.createElement(Select$1, {
|
21155 | options: justifyOptions,
|
21156 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.justify,
|
21157 | onChange: (value) => handleChange(value, "config.justify")
|
21158 | })), React__default.createElement(Form.Item, {
|
21159 | label: "\u6805\u683C\u95F4\u9694"
|
21160 | }, React__default.createElement(InputNumber$1, {
|
21161 | style: { width: "100%" },
|
21162 | min: 0,
|
21163 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.gutter,
|
21164 | onChange: (value) => handleChange(value != null ? value : 0, "config.gutter")
|
21165 | })), React__default.createElement(Form.Item, {
|
21166 | label: "\u662F\u5426\u81EA\u52A8\u6362\u884C"
|
21167 | }, React__default.createElement(Switch$1, {
|
21168 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.wrap,
|
21169 | onChange: (checked) => handleChange(checked, "config.wrap")
|
21170 | })), React__default.createElement(Form.Item, {
|
21171 | label: "\u662F\u5426\u9690\u85CF"
|
21172 | }, React__default.createElement(Switch$1, {
|
21173 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.hidden,
|
21174 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21175 | })));
|
21176 | };
|
21177 | const ColConfig = () => {
|
21178 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
21179 | const { selectWidgetItem, handleChange } = useConfig();
|
21180 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21181 | label: "Flex\u5E03\u5C40\u5C5E\u6027"
|
21182 | }, React__default.createElement(InputNumber$1, {
|
21183 | style: { width: "100%" },
|
21184 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.flex,
|
21185 | onChange: (value) => handleChange(value, "config.flex")
|
21186 | })), React__default.createElement(Form.Item, {
|
21187 | label: "\u6805\u683C\u5DE6\u4FA7\u95F4\u9694\u6570"
|
21188 | }, React__default.createElement(InputNumber$1, {
|
21189 | style: { width: "100%" },
|
21190 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.offset,
|
21191 | onChange: (value) => handleChange(value, "config.offset")
|
21192 | })), React__default.createElement(Form.Item, {
|
21193 | label: "\u6805\u683C\u987A\u5E8F"
|
21194 | }, React__default.createElement(InputNumber$1, {
|
21195 | style: { width: "100%" },
|
21196 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.order,
|
21197 | onChange: (value) => handleChange(value, "config.order")
|
21198 | })), React__default.createElement(Form.Item, {
|
21199 | label: "\u6805\u683C\u5411\u5DE6\u79FB\u52A8\u683C\u6570"
|
21200 | }, React__default.createElement(InputNumber$1, {
|
21201 | style: { width: "100%" },
|
21202 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.pull,
|
21203 | onChange: (value) => handleChange(value, "config.pull")
|
21204 | })), React__default.createElement(Form.Item, {
|
21205 | label: "\u6805\u683C\u5411\u53F3\u79FB\u52A8\u683C\u6570"
|
21206 | }, React__default.createElement(InputNumber$1, {
|
21207 | style: { width: "100%" },
|
21208 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.push,
|
21209 | onChange: (value) => handleChange(value, "config.push")
|
21210 | })), React__default.createElement(Form.Item, {
|
21211 | label: "\u6805\u683C\u5360\u4F4D\u683C\u6570"
|
21212 | }, React__default.createElement(InputNumber$1, {
|
21213 | style: { width: "100%" },
|
21214 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.span,
|
21215 | onChange: (value) => handleChange(value, "config.span")
|
21216 | })), React__default.createElement(Form.Item, {
|
21217 | label: "\u5C4F\u5E55 < 576px \u54CD\u5E94\u5F0F\u6805\u683C"
|
21218 | }, React__default.createElement(InputNumber$1, {
|
21219 | style: { width: "100%" },
|
21220 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.xs,
|
21221 | onChange: (value) => handleChange(value, "config.xs")
|
21222 | })), React__default.createElement(Form.Item, {
|
21223 | label: "\u5C4F\u5E55 \u2265 576px \u54CD\u5E94\u5F0F\u6805\u683C"
|
21224 | }, React__default.createElement(InputNumber$1, {
|
21225 | style: { width: "100%" },
|
21226 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.sm,
|
21227 | onChange: (value) => handleChange(value, "config.sm")
|
21228 | })), React__default.createElement(Form.Item, {
|
21229 | label: "\u5C4F\u5E55 \u2265 768px \u54CD\u5E94\u5F0F\u6805\u683C"
|
21230 | }, React__default.createElement(InputNumber$1, {
|
21231 | style: { width: "100%" },
|
21232 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.md,
|
21233 | onChange: (value) => handleChange(value, "config.md")
|
21234 | })), React__default.createElement(Form.Item, {
|
21235 | label: "\u5C4F\u5E55 \u2265 992px \u54CD\u5E94\u5F0F\u6805\u683C"
|
21236 | }, React__default.createElement(InputNumber$1, {
|
21237 | style: { width: "100%" },
|
21238 | value: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.lg,
|
21239 | onChange: (value) => handleChange(value, "config.lg")
|
21240 | })), React__default.createElement(Form.Item, {
|
21241 | label: "\u5C4F\u5E55 \u2265 1200px \u54CD\u5E94\u5F0F\u6805\u683C"
|
21242 | }, React__default.createElement(InputNumber$1, {
|
21243 | style: { width: "100%" },
|
21244 | value: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.xl,
|
21245 | onChange: (value) => handleChange(value, "config.xl")
|
21246 | })), React__default.createElement(Form.Item, {
|
21247 | label: "\u5C4F\u5E55 \u2265 1600px \u54CD\u5E94\u5F0F\u6805\u683C"
|
21248 | }, React__default.createElement(InputNumber$1, {
|
21249 | style: { width: "100%" },
|
21250 | value: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.xxl,
|
21251 | onChange: (value) => handleChange(value, "config.xxl")
|
21252 | })), React__default.createElement(Form.Item, {
|
21253 | label: "\u662F\u5426\u9690\u85CF"
|
21254 | }, React__default.createElement(Switch$1, {
|
21255 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.hidden,
|
21256 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21257 | })));
|
21258 | };
|
21259 | const LayoutConfig = () => {
|
21260 | var _a;
|
21261 | const { selectWidgetItem, handleChange } = useConfig();
|
21262 | return React__default.createElement(Form.Item, {
|
21263 | label: "\u662F\u5426\u9690\u85CF"
|
21264 | }, React__default.createElement(Switch$1, {
|
21265 | defaultChecked: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.hidden,
|
21266 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21267 | }));
|
21268 | };
|
21269 | const SiderConfig = () => {
|
21270 | var _a, _b, _c, _d, _e, _f, _g, _h;
|
21271 | const { selectWidgetItem, handleChange } = useConfig();
|
21272 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21273 | label: "\u5BBD\u5EA6"
|
21274 | }, React__default.createElement(Input$1, {
|
21275 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.width,
|
21276 | onChange: (event) => handleChange(event.target.value, "config.width")
|
21277 | })), React__default.createElement(Form.Item, {
|
21278 | label: "\u6536\u7F29\u5BBD\u5EA6"
|
21279 | }, React__default.createElement(InputNumber$1, {
|
21280 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.collapsedWidth,
|
21281 | onChange: (event) => handleChange(event.target.value, "config.collapsedWidth")
|
21282 | })), React__default.createElement(Form.Item, {
|
21283 | label: "\u89E6\u53D1\u54CD\u5E94\u5F0F\u5E03\u5C40\u7684\u65AD\u70B9"
|
21284 | }, React__default.createElement(Select$1, {
|
21285 | options: breakpointOptions,
|
21286 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.breakpoint,
|
21287 | onChange: (value) => handleChange(value, "config.breakpoint")
|
21288 | })), React__default.createElement(Form.Item, {
|
21289 | label: "\u4E3B\u9898\u989C\u8272"
|
21290 | }, React__default.createElement(Radio.Group, {
|
21291 | optionType: "button",
|
21292 | buttonStyle: "solid",
|
21293 | options: themeOptions,
|
21294 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.theme,
|
21295 | onChange: (event) => handleChange(event.target.value, "config.theme")
|
21296 | })), React__default.createElement(Form.Item, {
|
21297 | label: "\u662F\u5426\u9690\u85CF"
|
21298 | }, React__default.createElement(Switch$1, {
|
21299 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.hidden,
|
21300 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21301 | })), React__default.createElement(Form.Item, {
|
21302 | label: "\u662F\u5426\u53EF\u6536\u8D77"
|
21303 | }, React__default.createElement(Switch$1, {
|
21304 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.collapsible,
|
21305 | onChange: (checked) => handleChange(checked, "config.collapsible")
|
21306 | })), React__default.createElement(Form.Item, {
|
21307 | label: "\u662F\u5426\u9ED8\u8BA4\u6536\u8D77"
|
21308 | }, React__default.createElement(Switch$1, {
|
21309 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.defaultCollapsed,
|
21310 | onChange: (checked) => handleChange(checked, "config.defaultCollapsed")
|
21311 | })), React__default.createElement(Form.Item, {
|
21312 | label: "\u7FFB\u8F6C\u6298\u53E0\u63D0\u793A\u7BAD\u5934\u7684\u65B9\u5411"
|
21313 | }, React__default.createElement(Switch$1, {
|
21314 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.reverseArrow,
|
21315 | onChange: (checked) => handleChange(checked, "config.reverseArrow")
|
21316 | })));
|
21317 | };
|
21318 | const SpaceConfig = () => {
|
21319 | var _a, _b, _c, _d, _e, _f;
|
21320 | const { selectWidgetItem, handleChange } = useConfig();
|
21321 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21322 | label: "\u95F4\u8DDD\u65B9\u5411"
|
21323 | }, React__default.createElement(Radio.Group, {
|
21324 | optionType: "button",
|
21325 | buttonStyle: "solid",
|
21326 | options: directionTypeOptions,
|
21327 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.direction,
|
21328 | onChange: (event) => handleChange(event.target.value, "config.direction")
|
21329 | })), React__default.createElement(Form.Item, {
|
21330 | label: React__default.createElement(Space$1, null, "\u95F4\u8DDD\u5927\u5C0F", ((_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.size) && React__default.createElement("a", {
|
21331 | href: "/#",
|
21332 | onClick: (event) => {
|
21333 | event.preventDefault();
|
21334 | handleChange(void 0, "config.size");
|
21335 | }
|
21336 | }, "\u8FD8\u539F"))
|
21337 | }, React__default.createElement(Radio.Group, {
|
21338 | optionType: "button",
|
21339 | buttonStyle: "solid",
|
21340 | options: sizeOptions,
|
21341 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.size,
|
21342 | onChange: (event) => handleChange(event.target.value, "config.size")
|
21343 | })), React__default.createElement(Form.Item, {
|
21344 | label: "\u5BF9\u9F50\u65B9\u5F0F"
|
21345 | }, React__default.createElement(Select$1, {
|
21346 | allowClear: true,
|
21347 | options: spaceAlignOptions,
|
21348 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.align,
|
21349 | onChange: (value) => handleChange(value, "config.align")
|
21350 | })), React__default.createElement(Form.Item, {
|
21351 | label: "\u662F\u5426\u9690\u85CF"
|
21352 | }, React__default.createElement(Switch$1, {
|
21353 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.hidden,
|
21354 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21355 | })), React__default.createElement(Form.Item, {
|
21356 | label: "\u662F\u5426\u81EA\u52A8\u6362\u884C"
|
21357 | }, React__default.createElement(Switch$1, {
|
21358 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.wrap,
|
21359 | onChange: (checked) => handleChange(checked, "config.wrap")
|
21360 | })));
|
21361 | };
|
21362 | const OptionSourceTypeConfig = (props) => {
|
21363 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
21364 | const { multiple } = props;
|
21365 | const { selectWidgetItem, handleChange, sourceType, setSourceType } = useConfig();
|
21366 | const sortableGroupDecorator = (instance) => {
|
21367 | if (instance) {
|
21368 | const options = {
|
21369 | ghostClass: "ghost",
|
21370 | handle: ".drag-item",
|
21371 | group: {
|
21372 | name: "options"
|
21373 | },
|
21374 | onEnd: (event) => {
|
21375 | const { newIndex: newIndex2, oldIndex: oldIndex2 } = event;
|
21376 | const configOptions = clone(selectWidgetItem.config.options);
|
21377 | const oldOption = configOptions.splice(oldIndex2, 1);
|
21378 | configOptions.splice(newIndex2, 0, ...oldOption);
|
21379 | handleChange(configOptions, "config.options");
|
21380 | }
|
21381 | };
|
21382 | Sortable.create(instance, options);
|
21383 | }
|
21384 | };
|
21385 | return React__default.createElement(Form.Item, {
|
21386 | label: "\u9009\u9879"
|
21387 | }, React__default.createElement(Radio.Group, {
|
21388 | optionType: "button",
|
21389 | buttonStyle: "solid",
|
21390 | options: sourceOptions,
|
21391 | value: sourceType,
|
21392 | onChange: (e) => {
|
21393 | setSourceType(e.target.value);
|
21394 | handleChange(e.target.value === "\u8FDC\u7AEF\u6570\u636E", "remoteConfig.remote");
|
21395 | }
|
21396 | }), sourceType === "\u9759\u6001\u6570\u636E" ? React__default.createElement(React__default.Fragment, null, multiple ? React__default.createElement(Checkbox$1.Group, {
|
21397 | defaultValue: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _a.initialValue,
|
21398 | onChange: (checkedValue) => handleChange(checkedValue, "formItemConfig.initialValue")
|
21399 | }, React__default.createElement("ul", {
|
21400 | ref: sortableGroupDecorator
|
21401 | }, (_c = (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.options) == null ? void 0 : _c.map((option2, index2) => React__default.createElement("li", {
|
21402 | key: option2.value
|
21403 | }, React__default.createElement(Checkbox$1, {
|
21404 | value: option2.value
|
21405 | }, React__default.createElement("div", {
|
21406 | className: "option-item"
|
21407 | }, React__default.createElement(Input$1, {
|
21408 | value: option2.label,
|
21409 | size: "small",
|
21410 | onChange: (event) => {
|
21411 | const configOptions = clone(selectWidgetItem.config.options);
|
21412 | configOptions[index2].label = event.target.value;
|
21413 | handleChange(configOptions, "config.options");
|
21414 | }
|
21415 | }), React__default.createElement(Input$1, {
|
21416 | value: option2.value,
|
21417 | size: "small",
|
21418 | onChange: (event) => {
|
21419 | const configOptions = clone(selectWidgetItem.config.options);
|
21420 | configOptions[index2].value = event.target.value;
|
21421 | handleChange(configOptions, "config.options");
|
21422 | }
|
21423 | }), React__default.createElement(SvgIcon, {
|
21424 | name: "Item",
|
21425 | className: "drag-item"
|
21426 | }), React__default.createElement(Button$1, {
|
21427 | type: "primary",
|
21428 | shape: "circle",
|
21429 | size: "small",
|
21430 | onClick: () => {
|
21431 | const configOptions = clone(selectWidgetItem.config.options);
|
21432 | configOptions.splice(index2, 1);
|
21433 | handleChange(configOptions, "config.options");
|
21434 | }
|
21435 | }, React__default.createElement(SvgIcon, {
|
21436 | name: "Delete"
|
21437 | })))))))) : React__default.createElement(Radio.Group, {
|
21438 | defaultValue: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _d.initialValue
|
21439 | }, React__default.createElement("ul", {
|
21440 | ref: sortableGroupDecorator
|
21441 | }, (_f = (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.options) == null ? void 0 : _f.map((option2, index2) => React__default.createElement("li", {
|
21442 | key: option2.value
|
21443 | }, React__default.createElement(Radio, {
|
21444 | value: option2.value,
|
21445 | onChange: (e) => handleChange(e.target.value, "formItemConfig.initialValue")
|
21446 | }, React__default.createElement("div", {
|
21447 | className: "option-item"
|
21448 | }, React__default.createElement(Input$1, {
|
21449 | value: option2.label,
|
21450 | size: "small",
|
21451 | onChange: (event) => {
|
21452 | const configOptions = clone(selectWidgetItem.config.options);
|
21453 | configOptions[index2].label = event.target.value;
|
21454 | handleChange(configOptions, "config.options");
|
21455 | }
|
21456 | }), React__default.createElement(Input$1, {
|
21457 | value: option2.value,
|
21458 | size: "small",
|
21459 | onChange: (event) => {
|
21460 | const configOptions = clone(selectWidgetItem.config.options);
|
21461 | configOptions[index2].value = event.target.value;
|
21462 | handleChange(configOptions, "config.options");
|
21463 | }
|
21464 | }), React__default.createElement(SvgIcon, {
|
21465 | name: "Item",
|
21466 | className: "drag-item"
|
21467 | }), React__default.createElement(Button$1, {
|
21468 | type: "primary",
|
21469 | shape: "circle",
|
21470 | size: "small",
|
21471 | onClick: () => {
|
21472 | const configOptions = clone(selectWidgetItem.config.options);
|
21473 | configOptions.splice(index2, 1);
|
21474 | handleChange(configOptions, "config.options");
|
21475 | }
|
21476 | }, React__default.createElement(SvgIcon, {
|
21477 | name: "Delete"
|
21478 | })))))))), React__default.createElement(Button$1, {
|
21479 | className: "insert-btn",
|
21480 | type: "link",
|
21481 | size: "small",
|
21482 | onClick: () => {
|
21483 | const configOptions = clone(selectWidgetItem.config.options);
|
21484 | const value = `Option${configOptions.length + 1}`;
|
21485 | configOptions.push({ label: value, value });
|
21486 | handleChange(configOptions, "config.options");
|
21487 | }
|
21488 | }, "\u6DFB\u52A0\u9009\u9879")) : React__default.createElement(Space$1, {
|
21489 | direction: "vertical",
|
21490 | style: { marginTop: "10px" }
|
21491 | }, React__default.createElement(Input$1, {
|
21492 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _g.remoteFunc,
|
21493 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteFunc"),
|
21494 | size: "small",
|
21495 | addonBefore: "\u8FDC\u7AEF\u65B9\u6CD5"
|
21496 | }), React__default.createElement(Input$1, {
|
21497 | value: (_i = (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _h.remoteProps) == null ? void 0 : _i.label,
|
21498 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteProps.label"),
|
21499 | size: "small",
|
21500 | addonBefore: "\u6807\u7B7E"
|
21501 | }), React__default.createElement(Input$1, {
|
21502 | value: (_k = (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _j.remoteProps) == null ? void 0 : _k.value,
|
21503 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteProps.value"),
|
21504 | size: "small",
|
21505 | addonBefore: "\u503C"
|
21506 | })));
|
21507 | };
|
21508 | OptionSourceTypeConfig.defaultProps = {
|
21509 | multiple: false
|
21510 | };
|
21511 | const AutoCompleteConfig = () => {
|
21512 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
21513 | const { selectWidgetItem, handleChange } = useConfig();
|
21514 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21515 | label: "\u6807\u9898"
|
21516 | }, React__default.createElement(Input$1, {
|
21517 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
21518 | onChange: (event) => handleChange(event.target.value, "label")
|
21519 | })), React__default.createElement(Form.Item, {
|
21520 | label: "Placeholder"
|
21521 | }, React__default.createElement(Input$1, {
|
21522 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
21523 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
21524 | })), React__default.createElement(Form.Item, {
|
21525 | label: "ClassName"
|
21526 | }, React__default.createElement(Input$1, {
|
21527 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.dropdownClassName,
|
21528 | placeholder: "\u4E0B\u62C9\u83DC\u5355\u7684 className \u5C5E\u6027",
|
21529 | onChange: (event) => handleChange(event.target.value, "config.dropdownClassName")
|
21530 | })), React__default.createElement(Form.Item, {
|
21531 | label: "\u4E0B\u62C9\u5217\u8868\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u5185\u5BB9"
|
21532 | }, React__default.createElement(Input$1, {
|
21533 | placeholder: "\u5F53\u4E0B\u62C9\u5217\u8868\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u5185\u5BB9",
|
21534 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.notFoundContent,
|
21535 | onChange: (event) => handleChange(event.target.value, "config.notFoundContent")
|
21536 | })), React__default.createElement(OptionSourceTypeConfig, null), React__default.createElement(Form.Item, {
|
21537 | label: "\u662F\u5426\u9690\u85CF"
|
21538 | }, React__default.createElement(Switch$1, {
|
21539 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.hidden,
|
21540 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21541 | })), React__default.createElement(Form.Item, {
|
21542 | label: "\u652F\u6301\u6E05\u9664"
|
21543 | }, React__default.createElement(Switch$1, {
|
21544 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.allowClear,
|
21545 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
21546 | })), React__default.createElement(Form.Item, {
|
21547 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
21548 | }, React__default.createElement(Switch$1, {
|
21549 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.autoFocus,
|
21550 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
21551 | })), React__default.createElement(Form.Item, {
|
21552 | label: "\u4F7F\u7528\u952E\u76D8\u9009\u62E9\u9009\u9879\u7684\u65F6\u5019\u628A\u9009\u4E2D\u9879\u56DE\u586B\u5230\u8F93\u5165\u6846\u4E2D"
|
21553 | }, React__default.createElement(Switch$1, {
|
21554 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.backfill,
|
21555 | onChange: (checked) => handleChange(checked, "config.backfill")
|
21556 | })), React__default.createElement(Form.Item, {
|
21557 | label: "\u662F\u5426\u9ED8\u8BA4\u9AD8\u4EAE\u7B2C\u4E00\u4E2A\u9009\u9879"
|
21558 | }, React__default.createElement(Switch$1, {
|
21559 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.defaultActiveFirstOption,
|
21560 | onChange: (checked) => handleChange(checked, "config.defaultActiveFirstOption")
|
21561 | })), React__default.createElement(Form.Item, {
|
21562 | label: "\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
|
21563 | }, React__default.createElement(Switch$1, {
|
21564 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.defaultOpen,
|
21565 | onChange: (checked) => handleChange(checked, "config.defaultOpen")
|
21566 | })), React__default.createElement(Form.Item, {
|
21567 | label: "\u662F\u5426\u7981\u7528"
|
21568 | }, React__default.createElement(Switch$1, {
|
21569 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.disabled,
|
21570 | onChange: (checked) => handleChange(checked, "config.disabled")
|
21571 | })));
|
21572 | };
|
21573 | const CascaderConfig = () => {
|
21574 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
|
21575 | const { selectWidgetItem, handleChange } = useConfig();
|
21576 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21577 | label: "\u6807\u9898"
|
21578 | }, React__default.createElement(Input$1, {
|
21579 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
21580 | onChange: (event) => handleChange(event.target.value, "label")
|
21581 | })), React__default.createElement(Form.Item, {
|
21582 | label: "Placeholder"
|
21583 | }, React__default.createElement(Input$1, {
|
21584 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
21585 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
21586 | })), React__default.createElement(Form.Item, {
|
21587 | label: "\u81EA\u5B9A\u4E49\u7C7B\u540D"
|
21588 | }, React__default.createElement(Input$1, {
|
21589 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.className,
|
21590 | placeholder: "\u4E0B\u62C9\u83DC\u5355\u7684 className \u5C5E\u6027",
|
21591 | onChange: (event) => handleChange(event.target.value, "config.className")
|
21592 | })), React__default.createElement(Form.Item, {
|
21593 | label: "\u81EA\u5B9A\u4E49\u6D6E\u5C42\u7C7B\u540D"
|
21594 | }, React__default.createElement(Input$1, {
|
21595 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.dropdownClassName,
|
21596 | placeholder: "\u81EA\u5B9A\u4E49\u6D6E\u5C42\u7C7B\u540D",
|
21597 | onChange: (event) => handleChange(event.target.value, "config.dropdownClassName")
|
21598 | })), React__default.createElement(Form.Item, {
|
21599 | label: "NotFoundContent"
|
21600 | }, React__default.createElement(Input$1, {
|
21601 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.notFoundContent,
|
21602 | placeholder: "\u5F53\u4E0B\u62C9\u5217\u8868\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u5185\u5BB9",
|
21603 | onChange: (event) => handleChange(event.target.value, "config.notFoundContent")
|
21604 | })), React__default.createElement(Form.Item, {
|
21605 | label: React__default.createElement(Space$1, null, "\u8F93\u5165\u6846\u5927\u5C0F", ((_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.size) && React__default.createElement("a", {
|
21606 | href: "/#",
|
21607 | onClick: (event) => {
|
21608 | event.preventDefault();
|
21609 | handleChange(void 0, "config.size");
|
21610 | }
|
21611 | }, "\u8FD8\u539F"))
|
21612 | }, React__default.createElement(Radio.Group, {
|
21613 | optionType: "button",
|
21614 | buttonStyle: "solid",
|
21615 | options: sizeOptions,
|
21616 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.size,
|
21617 | onChange: (event) => handleChange(event.target.value, "config.size")
|
21618 | })), React__default.createElement(Form.Item, {
|
21619 | label: "\u6B21\u7EA7\u83DC\u5355\u7684\u5C55\u5F00\u65B9\u5F0F"
|
21620 | }, React__default.createElement(Radio.Group, {
|
21621 | optionType: "button",
|
21622 | buttonStyle: "solid",
|
21623 | options: expandTriggerOptions,
|
21624 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.expandTrigger,
|
21625 | onChange: (event) => handleChange(event.target.value, "config.expandTrigger")
|
21626 | })), React__default.createElement(Form.Item, {
|
21627 | label: "\u6D6E\u5C42\u4F4D\u7F6E"
|
21628 | }, React__default.createElement(Radio.Group, {
|
21629 | optionType: "button",
|
21630 | buttonStyle: "solid",
|
21631 | options: placementOptions,
|
21632 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.placement,
|
21633 | onChange: (event) => handleChange(event.target.value, "config.placement")
|
21634 | })), React__default.createElement(Form.Item, {
|
21635 | label: "\u8FDC\u7AEF\u6570\u636E"
|
21636 | }, React__default.createElement(Space$1, {
|
21637 | direction: "vertical",
|
21638 | style: { marginTop: "10px" }
|
21639 | }, React__default.createElement(Input$1, {
|
21640 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _i.remoteFunc,
|
21641 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteFunc"),
|
21642 | size: "small",
|
21643 | addonBefore: "\u8FDC\u7AEF\u65B9\u6CD5"
|
21644 | }), React__default.createElement(Input$1, {
|
21645 | value: (_k = (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _j.remoteProps) == null ? void 0 : _k.label,
|
21646 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteProps.label"),
|
21647 | size: "small",
|
21648 | addonBefore: "\u6807\u7B7E"
|
21649 | }), React__default.createElement(Input$1, {
|
21650 | value: (_m = (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _l.remoteProps) == null ? void 0 : _m.value,
|
21651 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteProps.value"),
|
21652 | size: "small",
|
21653 | addonBefore: "\u503C"
|
21654 | }), React__default.createElement(Input$1, {
|
21655 | value: (_o = (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _n.remoteProps) == null ? void 0 : _o.children,
|
21656 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteProps.children"),
|
21657 | size: "small",
|
21658 | addonBefore: "\u5B50\u9009\u9879"
|
21659 | }))), React__default.createElement(Form.Item, {
|
21660 | label: "\u662F\u5426\u9690\u85CF"
|
21661 | }, React__default.createElement(Switch$1, {
|
21662 | defaultChecked: (_p = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _p.hidden,
|
21663 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21664 | })), React__default.createElement(Form.Item, {
|
21665 | label: "\u652F\u6301\u6E05\u9664"
|
21666 | }, React__default.createElement(Switch$1, {
|
21667 | defaultChecked: (_q = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _q.allowClear,
|
21668 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
21669 | })), React__default.createElement(Form.Item, {
|
21670 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
21671 | }, React__default.createElement(Switch$1, {
|
21672 | defaultChecked: (_r = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _r.autoFocus,
|
21673 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
21674 | })), React__default.createElement(Form.Item, {
|
21675 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
21676 | }, React__default.createElement(Switch$1, {
|
21677 | defaultChecked: (_s = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _s.bordered,
|
21678 | onChange: (checked) => handleChange(checked, "config.bordered")
|
21679 | })), React__default.createElement(Form.Item, {
|
21680 | label: "\u662F\u5426\u70B9\u9009\u6BCF\u7EA7\u83DC\u5355\u9009\u9879\u503C\u90FD\u4F1A\u53D1\u751F\u53D8\u5316"
|
21681 | }, React__default.createElement(Switch$1, {
|
21682 | defaultChecked: (_t = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _t.changeOnSelect,
|
21683 | onChange: (checked) => handleChange(checked, "config.changeOnSelect")
|
21684 | })), React__default.createElement(Form.Item, {
|
21685 | label: "\u662F\u5426\u5728\u9009\u62E9\u6846\u4E2D\u663E\u793A\u641C\u7D22\u6846"
|
21686 | }, React__default.createElement(Switch$1, {
|
21687 | defaultChecked: (_u = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _u.showSearch,
|
21688 | onChange: (checked) => handleChange(checked, "config.showSearch")
|
21689 | })), React__default.createElement(Form.Item, {
|
21690 | label: "\u662F\u5426\u652F\u6301\u591A\u9009\u8282\u70B9"
|
21691 | }, React__default.createElement(Switch$1, {
|
21692 | defaultChecked: (_v = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _v.multiple,
|
21693 | onChange: (checked) => handleChange(checked, "config.multiple")
|
21694 | })), React__default.createElement(Form.Item, {
|
21695 | label: "\u662F\u5426\u7981\u7528"
|
21696 | }, React__default.createElement(Switch$1, {
|
21697 | defaultChecked: (_w = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _w.disabled,
|
21698 | onChange: (checked) => handleChange(checked, "config.disabled")
|
21699 | })));
|
21700 | };
|
21701 | const CheckboxConfig = () => {
|
21702 | var _a, _b, _c, _d, _e, _f;
|
21703 | const { selectWidgetItem, handleChange } = useConfig();
|
21704 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21705 | label: "\u6807\u9898"
|
21706 | }, React__default.createElement(Input$1, {
|
21707 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
21708 | onChange: (event) => handleChange(event.target.value, "label")
|
21709 | })), React__default.createElement(Form.Item, {
|
21710 | label: "\u5185\u5BB9"
|
21711 | }, React__default.createElement(Input$1, {
|
21712 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.children,
|
21713 | onChange: (event) => handleChange(event.target.value, "config.children")
|
21714 | })), React__default.createElement(Form.Item, {
|
21715 | label: "\u521D\u59CB\u662F\u5426\u9009\u4E2D"
|
21716 | }, React__default.createElement(Switch$1, {
|
21717 | defaultChecked: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.initialValue,
|
21718 | onChange: (checked) => handleChange(checked, "formItemConfig.initialValue")
|
21719 | })), React__default.createElement(Form.Item, {
|
21720 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
21721 | }, React__default.createElement(Switch$1, {
|
21722 | defaultChecked: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.autoFocus,
|
21723 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
21724 | })), React__default.createElement(Form.Item, {
|
21725 | label: "Indeterminate \u72B6\u6001"
|
21726 | }, React__default.createElement(Switch$1, {
|
21727 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.indeterminate,
|
21728 | onChange: (checked) => handleChange(checked, "config.indeterminate")
|
21729 | })), React__default.createElement(Form.Item, {
|
21730 | label: "\u662F\u5426\u9690\u85CF"
|
21731 | }, React__default.createElement(Switch$1, {
|
21732 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.hidden,
|
21733 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21734 | })), React__default.createElement(Form.Item, {
|
21735 | label: "\u662F\u5426\u7981\u7528"
|
21736 | }, React__default.createElement(Switch$1, {
|
21737 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.disabled,
|
21738 | onChange: (checked) => handleChange(checked, "config.disabled")
|
21739 | })));
|
21740 | };
|
21741 | const CheckboxGroupConfig = () => {
|
21742 | var _a, _b;
|
21743 | const { selectWidgetItem, handleChange } = useConfig();
|
21744 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21745 | label: "\u6807\u9898"
|
21746 | }, React__default.createElement(Input$1, {
|
21747 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
21748 | onChange: (event) => handleChange(event.target.value, "label")
|
21749 | })), React__default.createElement(OptionSourceTypeConfig, {
|
21750 | multiple: true
|
21751 | }), React__default.createElement(Form.Item, {
|
21752 | label: "\u662F\u5426\u9690\u85CF"
|
21753 | }, React__default.createElement(Switch$1, {
|
21754 | defaultChecked: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.hidden,
|
21755 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21756 | })), React__default.createElement(Form.Item, {
|
21757 | label: "\u662F\u5426\u7981\u7528"
|
21758 | }, React__default.createElement(Switch$1, {
|
21759 | defaultChecked: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.disabled,
|
21760 | onChange: (checked) => handleChange(checked, "config.disabled")
|
21761 | })));
|
21762 | };
|
21763 | const DatePickerConfig = () => {
|
21764 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
21765 | const { selectWidgetItem, handleChange } = useConfig();
|
21766 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21767 | label: "\u6807\u9898"
|
21768 | }, React__default.createElement(Input$1, {
|
21769 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
21770 | onChange: (event) => handleChange(event.target.value, "label")
|
21771 | })), React__default.createElement(Form.Item, {
|
21772 | label: "Placeholder"
|
21773 | }, React__default.createElement(Input$1, {
|
21774 | placeholder: "\u8F93\u5165\u6846\u63D0\u793A\u6587\u5B57",
|
21775 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
21776 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
21777 | })), React__default.createElement(Form.Item, {
|
21778 | label: "\u9ED8\u8BA4\u65E5\u671F"
|
21779 | }, React__default.createElement(DatePicker$1, {
|
21780 | placeholder: "\u8BF7\u9009\u62E9\u9ED8\u8BA4\u65E5\u671F",
|
21781 | value: ((_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.initialValue) && moment$1(selectWidgetItem.formItemConfig.initialValue),
|
21782 | onChange: (_, dateString) => handleChange(dateString, "formItemConfig.initialValue")
|
21783 | })), React__default.createElement(Form.Item, {
|
21784 | label: "\u65E5\u671F\u683C\u5F0F"
|
21785 | }, React__default.createElement(Input$1, {
|
21786 | placeholder: "\u8BBE\u7F6E\u65E5\u671F\u683C\u5F0F",
|
21787 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.format,
|
21788 | onChange: (event) => handleChange(event.target.value, "config.format")
|
21789 | })), React__default.createElement(Form.Item, {
|
21790 | label: React__default.createElement(Space$1, null, "\u8F93\u5165\u6846\u5927\u5C0F", ((_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.size) && React__default.createElement("a", {
|
21791 | href: "/#",
|
21792 | onClick: (event) => {
|
21793 | event.preventDefault();
|
21794 | handleChange(void 0, "config.size");
|
21795 | }
|
21796 | }, "\u8FD8\u539F"))
|
21797 | }, React__default.createElement(Radio.Group, {
|
21798 | optionType: "button",
|
21799 | buttonStyle: "solid",
|
21800 | options: sizeOptions,
|
21801 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.size,
|
21802 | onChange: (event) => handleChange(event.target.value, "config.size")
|
21803 | })), React__default.createElement(Form.Item, {
|
21804 | label: "\u9009\u62E9\u5668\u7C7B\u578B"
|
21805 | }, React__default.createElement(Radio.Group, {
|
21806 | optionType: "button",
|
21807 | buttonStyle: "solid",
|
21808 | options: datePickerTypeOptions,
|
21809 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.picker,
|
21810 | onChange: (event) => {
|
21811 | let format;
|
21812 | switch (event.target.value) {
|
21813 | case "date":
|
21814 | format = "YYYY-MM-DD";
|
21815 | break;
|
21816 | case "week":
|
21817 | format = "YYYY-ww";
|
21818 | break;
|
21819 | case "month":
|
21820 | format = "YYYY-MM";
|
21821 | break;
|
21822 | case "quarter":
|
21823 | format = "YYYY-Qo";
|
21824 | break;
|
21825 | case "year":
|
21826 | format = "YYYY";
|
21827 | break;
|
21828 | default:
|
21829 | format = "";
|
21830 | }
|
21831 | handleChange(format, "config.format");
|
21832 | handleChange(event.target.value, "config.picker");
|
21833 | }
|
21834 | })), React__default.createElement(Form.Item, {
|
21835 | label: "\u9009\u62E9\u5668 className"
|
21836 | }, React__default.createElement(Input$1, {
|
21837 | placeholder: "className",
|
21838 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.className,
|
21839 | onChange: (event) => handleChange(event.target.value, "config.className")
|
21840 | })), React__default.createElement(Form.Item, {
|
21841 | label: "\u989D\u5916\u7684\u5F39\u51FA\u65E5\u5386 className"
|
21842 | }, React__default.createElement(Input$1, {
|
21843 | placeholder: "className",
|
21844 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.dropdownClassName,
|
21845 | onChange: (event) => handleChange(event.target.value, "config.dropdownClassName")
|
21846 | })), React__default.createElement(Form.Item, {
|
21847 | label: "\u662F\u5426\u9690\u85CF"
|
21848 | }, React__default.createElement(Switch$1, {
|
21849 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.hidden,
|
21850 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21851 | })), React__default.createElement(Form.Item, {
|
21852 | label: "\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"
|
21853 | }, React__default.createElement(Switch$1, {
|
21854 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.allowClear,
|
21855 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
21856 | })), React__default.createElement(Form.Item, {
|
21857 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
21858 | }, React__default.createElement(Switch$1, {
|
21859 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.autoFocus,
|
21860 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
21861 | })), React__default.createElement(Form.Item, {
|
21862 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
21863 | }, React__default.createElement(Switch$1, {
|
21864 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.bordered,
|
21865 | onChange: (checked) => handleChange(checked, "config.bordered")
|
21866 | })), React__default.createElement(Form.Item, {
|
21867 | label: "\u662F\u5426\u7981\u7528"
|
21868 | }, React__default.createElement(Switch$1, {
|
21869 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.disabled,
|
21870 | onChange: (checked) => handleChange(checked, "config.disabled")
|
21871 | })), React__default.createElement(Form.Item, {
|
21872 | label: "\u8BBE\u7F6E\u8F93\u5165\u6846\u4E3A\u53EA\u8BFB"
|
21873 | }, React__default.createElement(Switch$1, {
|
21874 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.inputReadOnly,
|
21875 | onChange: (checked) => handleChange(checked, "config.inputReadOnly")
|
21876 | })), React__default.createElement(Form.Item, {
|
21877 | label: "\u662F\u5426\u589E\u52A0\u65F6\u95F4\u9009\u62E9\u529F\u80FD"
|
21878 | }, React__default.createElement(Switch$1, {
|
21879 | defaultChecked: (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _o.showTime,
|
21880 | onChange: (checked) => handleChange(checked, "config.showTime")
|
21881 | })), React__default.createElement(Form.Item, {
|
21882 | label: "\u5F53\u8BBE\u5B9A\u4E86\u589E\u52A0\u65F6\u95F4\u9009\u62E9\u7684\u65F6\u5019\u662F\u5426\u663E\u793A\u201C\u6B64\u523B\u201D\u6309\u94AE"
|
21883 | }, React__default.createElement(Switch$1, {
|
21884 | defaultChecked: (_p = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _p.showNow,
|
21885 | onChange: (checked) => handleChange(checked, "config.showNow")
|
21886 | })), React__default.createElement(Form.Item, {
|
21887 | label: "\u662F\u5426\u663E\u793A\u201C\u4ECA\u5929\u201D\u6309\u94AE"
|
21888 | }, React__default.createElement(Switch$1, {
|
21889 | defaultChecked: (_q = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _q.showToday,
|
21890 | onChange: (checked) => handleChange(checked, "config.showToday")
|
21891 | })));
|
21892 | };
|
21893 | const RangePickerConfig = () => {
|
21894 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
21895 | const { selectWidgetItem, handleChange } = useConfig();
|
21896 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
21897 | label: "\u6807\u9898"
|
21898 | }, React__default.createElement(Input$1, {
|
21899 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
21900 | onChange: (event) => handleChange(event.target.value, "label")
|
21901 | })), React__default.createElement(Form.Item, {
|
21902 | label: "Placeholder (\u4F7F\u7528\u201C-\u201D\u5206\u5272)"
|
21903 | }, React__default.createElement(Input$1, {
|
21904 | placeholder: "\u8F93\u5165\u6846\u63D0\u793A\u6587\u5B57",
|
21905 | value: ((_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder) && ((_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.placeholder.join("-")),
|
21906 | onChange: (event) => handleChange(event.target.value ? event.target.value.split("-") : void 0, "config.placeholder")
|
21907 | })), React__default.createElement(Form.Item, {
|
21908 | label: "\u9ED8\u8BA4\u65E5\u671F"
|
21909 | }, React__default.createElement(DatePicker$1.RangePicker, {
|
21910 | value: ((_d = (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _c.initialValue) == null ? void 0 : _d.length) === 2 ? [moment$1(selectWidgetItem.formItemConfig.initialValue[0]), moment$1(selectWidgetItem.formItemConfig.initialValue[1])] : void 0,
|
21911 | onChange: (_, dateStrings) => handleChange(dateStrings.filter((dateString) => dateString), "formItemConfig.initialValue")
|
21912 | })), React__default.createElement(Form.Item, {
|
21913 | label: "\u65E5\u671F\u683C\u5F0F"
|
21914 | }, React__default.createElement(Input$1, {
|
21915 | placeholder: "\u8BBE\u7F6E\u65E5\u671F\u683C\u5F0F",
|
21916 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.format,
|
21917 | onChange: (event) => handleChange(event.target.value, "config.format")
|
21918 | })), React__default.createElement(Form.Item, {
|
21919 | label: React__default.createElement(Space$1, null, "\u8F93\u5165\u6846\u5927\u5C0F", ((_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.size) && React__default.createElement("a", {
|
21920 | href: "/#",
|
21921 | onClick: (event) => {
|
21922 | event.preventDefault();
|
21923 | handleChange(void 0, "config.size");
|
21924 | }
|
21925 | }, "\u8FD8\u539F"))
|
21926 | }, React__default.createElement(Radio.Group, {
|
21927 | optionType: "button",
|
21928 | buttonStyle: "solid",
|
21929 | options: sizeOptions,
|
21930 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.size,
|
21931 | onChange: (event) => handleChange(event.target.value, "config.size")
|
21932 | })), React__default.createElement(Form.Item, {
|
21933 | label: "\u9009\u62E9\u5668\u7C7B\u578B"
|
21934 | }, React__default.createElement(Radio.Group, {
|
21935 | optionType: "button",
|
21936 | buttonStyle: "solid",
|
21937 | options: datePickerTypeOptions,
|
21938 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.picker,
|
21939 | onChange: (event) => {
|
21940 | let format;
|
21941 | switch (event.target.value) {
|
21942 | case "date":
|
21943 | format = "YYYY-MM-DD HH:mm:ss";
|
21944 | break;
|
21945 | case "week":
|
21946 | format = "YYYY-ww";
|
21947 | break;
|
21948 | case "month":
|
21949 | format = "YYYY-MM";
|
21950 | break;
|
21951 | case "quarter":
|
21952 | format = "YYYY-Qo";
|
21953 | break;
|
21954 | case "year":
|
21955 | format = "YYYY";
|
21956 | break;
|
21957 | default:
|
21958 | format = "";
|
21959 | }
|
21960 | handleChange(format, "config.format");
|
21961 | handleChange(event.target.value, "config.picker");
|
21962 | }
|
21963 | })), React__default.createElement(Form.Item, {
|
21964 | label: "\u9009\u62E9\u5668 className"
|
21965 | }, React__default.createElement(Input$1, {
|
21966 | placeholder: "className",
|
21967 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.className,
|
21968 | onChange: (event) => handleChange(event.target.value, "config.className")
|
21969 | })), React__default.createElement(Form.Item, {
|
21970 | label: "\u989D\u5916\u7684\u5F39\u51FA\u65E5\u5386 className"
|
21971 | }, React__default.createElement(Input$1, {
|
21972 | placeholder: "className",
|
21973 | value: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.dropdownClassName,
|
21974 | onChange: (event) => handleChange(event.target.value, "config.dropdownClassName")
|
21975 | })), React__default.createElement(Form.Item, {
|
21976 | label: "\u662F\u5426\u9690\u85CF"
|
21977 | }, React__default.createElement(Switch$1, {
|
21978 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.hidden,
|
21979 | onChange: (checked) => handleChange(checked, "config.hidden")
|
21980 | })), React__default.createElement(Form.Item, {
|
21981 | label: "\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"
|
21982 | }, React__default.createElement(Switch$1, {
|
21983 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.allowClear,
|
21984 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
21985 | })), React__default.createElement(Form.Item, {
|
21986 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
21987 | }, React__default.createElement(Switch$1, {
|
21988 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.autoFocus,
|
21989 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
21990 | })), React__default.createElement(Form.Item, {
|
21991 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
21992 | }, React__default.createElement(Switch$1, {
|
21993 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.bordered,
|
21994 | onChange: (checked) => handleChange(checked, "config.bordered")
|
21995 | })), React__default.createElement(Form.Item, {
|
21996 | label: "\u662F\u5426\u7981\u7528"
|
21997 | }, React__default.createElement(Switch$1, {
|
21998 | defaultChecked: (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _o.disabled,
|
21999 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22000 | })), React__default.createElement(Form.Item, {
|
22001 | label: "\u8BBE\u7F6E\u8F93\u5165\u6846\u4E3A\u53EA\u8BFB"
|
22002 | }, React__default.createElement(Switch$1, {
|
22003 | defaultChecked: (_p = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _p.inputReadOnly,
|
22004 | onChange: (checked) => handleChange(checked, "config.inputReadOnly")
|
22005 | })), React__default.createElement(Form.Item, {
|
22006 | label: "\u662F\u5426\u589E\u52A0\u65F6\u95F4\u9009\u62E9\u529F\u80FD"
|
22007 | }, React__default.createElement(Switch$1, {
|
22008 | defaultChecked: (_q = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _q.showTime,
|
22009 | onChange: (checked) => handleChange(checked, "config.showTime")
|
22010 | })), React__default.createElement(Form.Item, {
|
22011 | label: "\u5F53\u8BBE\u5B9A\u4E86\u589E\u52A0\u65F6\u95F4\u9009\u62E9\u7684\u65F6\u5019\u662F\u5426\u663E\u793A\u201C\u6B64\u523B\u201D\u6309\u94AE"
|
22012 | }, React__default.createElement(Switch$1, {
|
22013 | defaultChecked: (_r = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _r.showNow,
|
22014 | onChange: (checked) => handleChange(checked, "config.showNow")
|
22015 | })), React__default.createElement(Form.Item, {
|
22016 | label: "\u662F\u5426\u663E\u793A\u201C\u4ECA\u5929\u201D\u6309\u94AE"
|
22017 | }, React__default.createElement(Switch$1, {
|
22018 | defaultChecked: (_s = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _s.showToday,
|
22019 | onChange: (checked) => handleChange(checked, "config.showToday")
|
22020 | })));
|
22021 | };
|
22022 | const InputConfig = () => {
|
22023 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
22024 | const { selectWidgetItem, handleChange } = useConfig();
|
22025 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22026 | label: "\u6807\u9898"
|
22027 | }, React__default.createElement(Input$1, {
|
22028 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22029 | onChange: (event) => handleChange(event.target.value, "label")
|
22030 | })), React__default.createElement(Form.Item, {
|
22031 | label: "Placeholder"
|
22032 | }, React__default.createElement(Input$1, {
|
22033 | placeholder: "\u8F93\u5165\u6846\u63D0\u793A\u6587\u5B57",
|
22034 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
22035 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
22036 | })), React__default.createElement(Form.Item, {
|
22037 | label: "\u9ED8\u8BA4\u503C"
|
22038 | }, React__default.createElement(Input$1, {
|
22039 | placeholder: "\u8F93\u5165\u6846\u9ED8\u8BA4\u503C",
|
22040 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.initialValue,
|
22041 | onChange: (event) => handleChange(event.target.value, "formItemConfig.initialValue")
|
22042 | })), React__default.createElement(Form.Item, {
|
22043 | label: "\u524D\u7F6E\u6807\u7B7E"
|
22044 | }, React__default.createElement(Input$1, {
|
22045 | placeholder: "\u8F93\u5165\u6846\u524D\u7F6E\u6807\u7B7E",
|
22046 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.addonBefore,
|
22047 | onChange: (event) => handleChange(event.target.value, "config.addonBefore")
|
22048 | })), React__default.createElement(Form.Item, {
|
22049 | label: "\u540E\u7F6E\u6807\u7B7E"
|
22050 | }, React__default.createElement(Input$1, {
|
22051 | placeholder: "\u8F93\u5165\u6846\u540E\u7F6E\u6807\u7B7E",
|
22052 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.addonAfter,
|
22053 | onChange: (event) => handleChange(event.target.value, "config.addonAfter")
|
22054 | })), React__default.createElement(Form.Item, {
|
22055 | label: "\u524D\u7F00\u56FE\u6807"
|
22056 | }, React__default.createElement(Input$1, {
|
22057 | placeholder: "\u8F93\u5165\u6846\u524D\u7F00\u56FE\u6807",
|
22058 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.prefix,
|
22059 | onChange: (event) => handleChange(event.target.value, "config.prefix")
|
22060 | })), React__default.createElement(Form.Item, {
|
22061 | label: "\u540E\u7F00\u56FE\u6807"
|
22062 | }, React__default.createElement(Input$1, {
|
22063 | placeholder: "\u8F93\u5165\u6846\u540E\u7F00\u56FE\u6807",
|
22064 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.suffix,
|
22065 | onChange: (event) => handleChange(event.target.value, "config.suffix")
|
22066 | })), React__default.createElement(Form.Item, {
|
22067 | label: React__default.createElement(Space$1, null, "\u63A7\u4EF6\u5927\u5C0F", ((_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.size) && React__default.createElement("a", {
|
22068 | href: "/#",
|
22069 | onClick: (event) => {
|
22070 | event.preventDefault();
|
22071 | handleChange(void 0, "config.size");
|
22072 | }
|
22073 | }, "\u8FD8\u539F"))
|
22074 | }, React__default.createElement(Radio.Group, {
|
22075 | optionType: "button",
|
22076 | buttonStyle: "solid",
|
22077 | options: sizeOptions,
|
22078 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.size,
|
22079 | onChange: (event) => handleChange(event.target.value, "config.size")
|
22080 | })), React__default.createElement(Form.Item, {
|
22081 | label: "\u6700\u5927\u957F\u5EA6"
|
22082 | }, React__default.createElement(InputNumber$1, {
|
22083 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.maxLength,
|
22084 | onChange: (value) => handleChange(value, "config.maxLength")
|
22085 | })), React__default.createElement(Form.Item, {
|
22086 | label: "\u662F\u5426\u9690\u85CF"
|
22087 | }, React__default.createElement(Switch$1, {
|
22088 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.hidden,
|
22089 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22090 | })), React__default.createElement(Form.Item, {
|
22091 | label: "\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"
|
22092 | }, React__default.createElement(Switch$1, {
|
22093 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.allowClear,
|
22094 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
22095 | })), React__default.createElement(Form.Item, {
|
22096 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
22097 | }, React__default.createElement(Switch$1, {
|
22098 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.bordered,
|
22099 | onChange: (checked) => handleChange(checked, "config.bordered")
|
22100 | })), React__default.createElement(Form.Item, {
|
22101 | label: "\u662F\u5426\u7981\u7528"
|
22102 | }, React__default.createElement(Switch$1, {
|
22103 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.disabled,
|
22104 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22105 | })), React__default.createElement(Form.Item, {
|
22106 | label: "\u662F\u5426\u5C55\u793A\u6570\u5B57"
|
22107 | }, React__default.createElement(Switch$1, {
|
22108 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.showCount,
|
22109 | onChange: (checked) => handleChange(checked, "config.showCount")
|
22110 | })));
|
22111 | };
|
22112 | const TextAreaConfig = () => {
|
22113 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
22114 | const { selectWidgetItem, handleChange } = useConfig();
|
22115 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22116 | label: "\u6807\u9898"
|
22117 | }, React__default.createElement(Input$1, {
|
22118 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22119 | onChange: (event) => handleChange(event.target.value, "label")
|
22120 | })), React__default.createElement(Form.Item, {
|
22121 | label: "Placeholder"
|
22122 | }, React__default.createElement(Input$1, {
|
22123 | placeholder: "\u8F93\u5165\u6846\u63D0\u793A\u6587\u5B57",
|
22124 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
22125 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
22126 | })), React__default.createElement(Form.Item, {
|
22127 | label: "\u9ED8\u8BA4\u503C"
|
22128 | }, React__default.createElement(Input$1, {
|
22129 | placeholder: "\u8F93\u5165\u6846\u9ED8\u8BA4\u503C",
|
22130 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.initialValue,
|
22131 | onChange: (event) => handleChange(event.target.value, "formItemConfig.initialValue")
|
22132 | })), React__default.createElement(Form.Item, {
|
22133 | label: React__default.createElement(Space$1, null, "\u63A7\u4EF6\u5927\u5C0F", ((_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.size) && React__default.createElement("a", {
|
22134 | href: "/#",
|
22135 | onClick: (event) => {
|
22136 | event.preventDefault();
|
22137 | handleChange(void 0, "config.size");
|
22138 | }
|
22139 | }, "\u8FD8\u539F"))
|
22140 | }, React__default.createElement(Radio.Group, {
|
22141 | optionType: "button",
|
22142 | buttonStyle: "solid",
|
22143 | options: sizeOptions,
|
22144 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.size,
|
22145 | onChange: (event) => handleChange(event.target.value, "config.size")
|
22146 | })), React__default.createElement(Form.Item, {
|
22147 | label: "\u6700\u5927\u957F\u5EA6"
|
22148 | }, React__default.createElement(InputNumber$1, {
|
22149 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.maxLength,
|
22150 | onChange: (value) => handleChange(value, "config.maxLength")
|
22151 | })), React__default.createElement(Form.Item, {
|
22152 | label: "\u81EA\u9002\u5E94\u9AD8\u5EA6"
|
22153 | }, React__default.createElement(Switch$1, {
|
22154 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.autoSize,
|
22155 | onChange: (checked) => handleChange(checked, "config.autoSize")
|
22156 | })), React__default.createElement(Form.Item, {
|
22157 | label: "\u662F\u5426\u9690\u85CF"
|
22158 | }, React__default.createElement(Switch$1, {
|
22159 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.hidden,
|
22160 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22161 | })), React__default.createElement(Form.Item, {
|
22162 | label: "\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"
|
22163 | }, React__default.createElement(Switch$1, {
|
22164 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.allowClear,
|
22165 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
22166 | })), React__default.createElement(Form.Item, {
|
22167 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
22168 | }, React__default.createElement(Switch$1, {
|
22169 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.bordered,
|
22170 | onChange: (checked) => handleChange(checked, "config.bordered")
|
22171 | })), React__default.createElement(Form.Item, {
|
22172 | label: "\u662F\u5426\u7981\u7528"
|
22173 | }, React__default.createElement(Switch$1, {
|
22174 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.disabled,
|
22175 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22176 | })), React__default.createElement(Form.Item, {
|
22177 | label: "\u662F\u5426\u5C55\u793A\u6570\u5B57"
|
22178 | }, React__default.createElement(Switch$1, {
|
22179 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.showCount,
|
22180 | onChange: (checked) => handleChange(checked, "config.showCount")
|
22181 | })));
|
22182 | };
|
22183 | const SearchConfig = () => {
|
22184 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o;
|
22185 | const { selectWidgetItem, handleChange } = useConfig();
|
22186 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22187 | label: "\u6807\u9898"
|
22188 | }, React__default.createElement(Input$1, {
|
22189 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22190 | onChange: (event) => handleChange(event.target.value, "label")
|
22191 | })), React__default.createElement(Form.Item, {
|
22192 | label: "Placeholder"
|
22193 | }, React__default.createElement(Input$1, {
|
22194 | placeholder: "\u8F93\u5165\u6846\u63D0\u793A\u6587\u5B57",
|
22195 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
22196 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
22197 | })), React__default.createElement(Form.Item, {
|
22198 | label: "\u9ED8\u8BA4\u503C"
|
22199 | }, React__default.createElement(Input$1, {
|
22200 | placeholder: "\u8F93\u5165\u6846\u9ED8\u8BA4\u503C",
|
22201 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.initialValue,
|
22202 | onChange: (event) => handleChange(event.target.value, "formItemConfig.initialValue")
|
22203 | })), React__default.createElement(Form.Item, {
|
22204 | label: "\u524D\u7F6E\u6807\u7B7E"
|
22205 | }, React__default.createElement(Input$1, {
|
22206 | placeholder: "\u8F93\u5165\u6846\u524D\u7F6E\u6807\u7B7E",
|
22207 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.addonBefore,
|
22208 | onChange: (event) => handleChange(event.target.value, "config.addonBefore")
|
22209 | })), React__default.createElement(Form.Item, {
|
22210 | label: "\u540E\u7F6E\u6807\u7B7E"
|
22211 | }, React__default.createElement(Input$1, {
|
22212 | placeholder: "\u8F93\u5165\u6846\u540E\u7F6E\u6807\u7B7E",
|
22213 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.addonAfter,
|
22214 | onChange: (event) => handleChange(event.target.value, "config.addonAfter")
|
22215 | })), React__default.createElement(Form.Item, {
|
22216 | label: "\u524D\u7F00\u56FE\u6807"
|
22217 | }, React__default.createElement(Input$1, {
|
22218 | placeholder: "\u8F93\u5165\u6846\u524D\u7F00\u56FE\u6807",
|
22219 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.prefix,
|
22220 | onChange: (event) => handleChange(event.target.value, "config.prefix")
|
22221 | })), React__default.createElement(Form.Item, {
|
22222 | label: "\u540E\u7F00\u56FE\u6807"
|
22223 | }, React__default.createElement(Input$1, {
|
22224 | placeholder: "\u8F93\u5165\u6846\u540E\u7F00\u56FE\u6807",
|
22225 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.suffix,
|
22226 | onChange: (event) => handleChange(event.target.value, "config.suffix")
|
22227 | })), React__default.createElement(Form.Item, {
|
22228 | label: React__default.createElement(Space$1, null, "\u63A7\u4EF6\u5927\u5C0F", ((_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.size) && React__default.createElement("a", {
|
22229 | href: "/#",
|
22230 | onClick: (event) => {
|
22231 | event.preventDefault();
|
22232 | handleChange(void 0, "config.size");
|
22233 | }
|
22234 | }, "\u8FD8\u539F"))
|
22235 | }, React__default.createElement(Radio.Group, {
|
22236 | optionType: "button",
|
22237 | buttonStyle: "solid",
|
22238 | options: sizeOptions,
|
22239 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.size,
|
22240 | onChange: (event) => handleChange(event.target.value, "config.size")
|
22241 | })), React__default.createElement(Form.Item, {
|
22242 | label: "\u6700\u5927\u957F\u5EA6"
|
22243 | }, React__default.createElement(InputNumber$1, {
|
22244 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.maxLength,
|
22245 | onChange: (value) => handleChange(value, "config.maxLength")
|
22246 | })), React__default.createElement(Form.Item, {
|
22247 | label: "\u662F\u5426\u9690\u85CF"
|
22248 | }, React__default.createElement(Switch$1, {
|
22249 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.hidden,
|
22250 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22251 | })), React__default.createElement(Form.Item, {
|
22252 | label: "\u662F\u5426\u6709\u786E\u8BA4\u6309\u94AE"
|
22253 | }, React__default.createElement(Switch$1, {
|
22254 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.enterButton,
|
22255 | onChange: (checked) => handleChange(checked, "config.enterButton")
|
22256 | })), React__default.createElement(Form.Item, {
|
22257 | label: "\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"
|
22258 | }, React__default.createElement(Switch$1, {
|
22259 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.allowClear,
|
22260 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
22261 | })), React__default.createElement(Form.Item, {
|
22262 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
22263 | }, React__default.createElement(Switch$1, {
|
22264 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.bordered,
|
22265 | onChange: (checked) => handleChange(checked, "config.bordered")
|
22266 | })), React__default.createElement(Form.Item, {
|
22267 | label: "\u662F\u5426\u7981\u7528"
|
22268 | }, React__default.createElement(Switch$1, {
|
22269 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.disabled,
|
22270 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22271 | })), React__default.createElement(Form.Item, {
|
22272 | label: "\u662F\u5426\u5C55\u793A\u6570\u5B57"
|
22273 | }, React__default.createElement(Switch$1, {
|
22274 | defaultChecked: (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _o.showCount,
|
22275 | onChange: (checked) => handleChange(checked, "config.showCount")
|
22276 | })));
|
22277 | };
|
22278 | const PasswordConfig = () => {
|
22279 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
22280 | const { selectWidgetItem, handleChange } = useConfig();
|
22281 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22282 | label: "\u6807\u9898"
|
22283 | }, React__default.createElement(Input$1, {
|
22284 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22285 | onChange: (event) => handleChange(event.target.value, "label")
|
22286 | })), React__default.createElement(Form.Item, {
|
22287 | label: "Placeholder"
|
22288 | }, React__default.createElement(Input$1, {
|
22289 | placeholder: "\u8F93\u5165\u6846\u63D0\u793A\u6587\u5B57",
|
22290 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
22291 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
22292 | })), React__default.createElement(Form.Item, {
|
22293 | label: "\u9ED8\u8BA4\u503C"
|
22294 | }, React__default.createElement(Input$1, {
|
22295 | placeholder: "\u8F93\u5165\u6846\u9ED8\u8BA4\u503C",
|
22296 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.initialValue,
|
22297 | onChange: (event) => handleChange(event.target.value, "formItemConfig.initialValue")
|
22298 | })), React__default.createElement(Form.Item, {
|
22299 | label: "\u524D\u7F6E\u6807\u7B7E"
|
22300 | }, React__default.createElement(Input$1, {
|
22301 | placeholder: "\u8F93\u5165\u6846\u524D\u7F6E\u6807\u7B7E",
|
22302 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.addonBefore,
|
22303 | onChange: (event) => handleChange(event.target.value, "config.addonBefore")
|
22304 | })), React__default.createElement(Form.Item, {
|
22305 | label: "\u540E\u7F6E\u6807\u7B7E"
|
22306 | }, React__default.createElement(Input$1, {
|
22307 | placeholder: "\u8F93\u5165\u6846\u540E\u7F6E\u6807\u7B7E",
|
22308 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.addonAfter,
|
22309 | onChange: (event) => handleChange(event.target.value, "config.addonAfter")
|
22310 | })), React__default.createElement(Form.Item, {
|
22311 | label: "\u524D\u7F00\u56FE\u6807"
|
22312 | }, React__default.createElement(Input$1, {
|
22313 | placeholder: "\u8F93\u5165\u6846\u524D\u7F00\u56FE\u6807",
|
22314 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.prefix,
|
22315 | onChange: (event) => handleChange(event.target.value, "config.prefix")
|
22316 | })), React__default.createElement(Form.Item, {
|
22317 | label: React__default.createElement(Space$1, null, "\u63A7\u4EF6\u5927\u5C0F", ((_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.size) && React__default.createElement("a", {
|
22318 | href: "/#",
|
22319 | onClick: (event) => {
|
22320 | event.preventDefault();
|
22321 | handleChange(void 0, "config.size");
|
22322 | }
|
22323 | }, "\u8FD8\u539F"))
|
22324 | }, React__default.createElement(Radio.Group, {
|
22325 | optionType: "button",
|
22326 | buttonStyle: "solid",
|
22327 | options: sizeOptions,
|
22328 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.size,
|
22329 | onChange: (event) => handleChange(event.target.value, "config.size")
|
22330 | })), React__default.createElement(Form.Item, {
|
22331 | label: "\u6700\u5927\u957F\u5EA6"
|
22332 | }, React__default.createElement(InputNumber$1, {
|
22333 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.maxLength,
|
22334 | onChange: (value) => handleChange(value, "config.maxLength")
|
22335 | })), React__default.createElement(Form.Item, {
|
22336 | label: "\u662F\u5426\u9690\u85CF"
|
22337 | }, React__default.createElement(Switch$1, {
|
22338 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.hidden,
|
22339 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22340 | })), React__default.createElement(Form.Item, {
|
22341 | label: "\u662F\u5426\u663E\u793A\u5207\u6362\u6309\u94AE"
|
22342 | }, React__default.createElement(Switch$1, {
|
22343 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.visibilityToggle,
|
22344 | onChange: (checked) => handleChange(checked, "config.visibilityToggle")
|
22345 | })), React__default.createElement(Form.Item, {
|
22346 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
22347 | }, React__default.createElement(Switch$1, {
|
22348 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.bordered,
|
22349 | onChange: (checked) => handleChange(checked, "config.bordered")
|
22350 | })), React__default.createElement(Form.Item, {
|
22351 | label: "\u662F\u5426\u7981\u7528"
|
22352 | }, React__default.createElement(Switch$1, {
|
22353 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.disabled,
|
22354 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22355 | })), React__default.createElement(Form.Item, {
|
22356 | label: "\u662F\u5426\u5C55\u793A\u6570\u5B57"
|
22357 | }, React__default.createElement(Switch$1, {
|
22358 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.showCount,
|
22359 | onChange: (checked) => handleChange(checked, "config.showCount")
|
22360 | })));
|
22361 | };
|
22362 | const InputNumberConfig = () => {
|
22363 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s;
|
22364 | const { selectWidgetItem, handleChange } = useConfig();
|
22365 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22366 | label: "\u6807\u9898"
|
22367 | }, React__default.createElement(Input$1, {
|
22368 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22369 | onChange: (event) => handleChange(event.target.value, "label")
|
22370 | })), React__default.createElement(Form.Item, {
|
22371 | label: "\u9ED8\u8BA4\u503C"
|
22372 | }, React__default.createElement(InputNumber$1, {
|
22373 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _a.initialValue,
|
22374 | onChange: (value) => handleChange(value, "formItemConfig.initialValue")
|
22375 | })), React__default.createElement(Form.Item, {
|
22376 | label: "\u524D\u7F6E\u6807\u7B7E"
|
22377 | }, React__default.createElement(Input$1, {
|
22378 | placeholder: "\u8F93\u5165\u6846\u524D\u7F6E\u6807\u7B7E",
|
22379 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.addonBefore,
|
22380 | onChange: (event) => handleChange(event.target.value, "config.addonBefore")
|
22381 | })), React__default.createElement(Form.Item, {
|
22382 | label: "\u540E\u7F6E\u6807\u7B7E"
|
22383 | }, React__default.createElement(Input$1, {
|
22384 | placeholder: "\u8F93\u5165\u6846\u540E\u7F6E\u6807\u7B7E",
|
22385 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.addonAfter,
|
22386 | onChange: (event) => handleChange(event.target.value, "config.addonAfter")
|
22387 | })), React__default.createElement(Form.Item, {
|
22388 | label: "\u524D\u7F00\u56FE\u6807"
|
22389 | }, React__default.createElement(Input$1, {
|
22390 | placeholder: "\u8F93\u5165\u6846\u524D\u7F00\u56FE\u6807",
|
22391 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.prefix,
|
22392 | onChange: (event) => handleChange(event.target.value, "config.prefix")
|
22393 | })), React__default.createElement(Form.Item, {
|
22394 | label: "\u6B65\u957F"
|
22395 | }, React__default.createElement(InputNumber$1, {
|
22396 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.step,
|
22397 | onChange: (value) => handleChange(value, "config.step")
|
22398 | })), React__default.createElement(Form.Item, {
|
22399 | label: "\u6570\u503C\u7CBE\u5EA6"
|
22400 | }, React__default.createElement(InputNumber$1, {
|
22401 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.precision,
|
22402 | onChange: (value) => handleChange(value, "config.precision")
|
22403 | })), React__default.createElement(Form.Item, {
|
22404 | label: "\u5C0F\u6570\u70B9\u5206\u5272\u7B26\u53F7"
|
22405 | }, React__default.createElement(Input$1, {
|
22406 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.decimalSeparator,
|
22407 | onChange: (event) => handleChange(event.target.value, "config.decimalSeparator")
|
22408 | })), React__default.createElement(Form.Item, {
|
22409 | label: React__default.createElement(Space$1, null, "\u63A7\u4EF6\u5927\u5C0F", ((_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.size) && React__default.createElement("a", {
|
22410 | href: "/#",
|
22411 | onClick: (event) => {
|
22412 | event.preventDefault();
|
22413 | handleChange(void 0, "config.size");
|
22414 | }
|
22415 | }, "\u8FD8\u539F"))
|
22416 | }, React__default.createElement(Radio.Group, {
|
22417 | optionType: "button",
|
22418 | buttonStyle: "solid",
|
22419 | options: sizeOptions,
|
22420 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.size,
|
22421 | onChange: (event) => handleChange(event.target.value, "config.size")
|
22422 | })), React__default.createElement(Form.Item, {
|
22423 | label: "\u6700\u5927\u503C"
|
22424 | }, React__default.createElement(InputNumber$1, {
|
22425 | value: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.max,
|
22426 | onChange: (value) => handleChange(value, "config.max")
|
22427 | })), React__default.createElement(Form.Item, {
|
22428 | label: "\u6700\u5C0F\u503C"
|
22429 | }, React__default.createElement(InputNumber$1, {
|
22430 | value: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.min,
|
22431 | onChange: (value) => handleChange(value, "config.min")
|
22432 | })), React__default.createElement(Form.Item, {
|
22433 | label: "\u662F\u5426\u9690\u85CF"
|
22434 | }, React__default.createElement(Switch$1, {
|
22435 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.hidden,
|
22436 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22437 | })), React__default.createElement(Form.Item, {
|
22438 | label: "\u662F\u5426\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
22439 | }, React__default.createElement(Switch$1, {
|
22440 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.autoFocus,
|
22441 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
22442 | })), React__default.createElement(Form.Item, {
|
22443 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
22444 | }, React__default.createElement(Switch$1, {
|
22445 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.bordered,
|
22446 | onChange: (checked) => handleChange(checked, "config.bordered")
|
22447 | })), React__default.createElement(Form.Item, {
|
22448 | label: "\u662F\u5426\u663E\u793A\u589E\u51CF\u6309\u94AE"
|
22449 | }, React__default.createElement(Switch$1, {
|
22450 | defaultChecked: (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _o.controls,
|
22451 | onChange: (checked) => handleChange(checked, "config.controls")
|
22452 | })), React__default.createElement(Form.Item, {
|
22453 | label: "\u662F\u5426\u7981\u7528"
|
22454 | }, React__default.createElement(Switch$1, {
|
22455 | defaultChecked: (_p = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _p.disabled,
|
22456 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22457 | })), React__default.createElement(Form.Item, {
|
22458 | label: "\u662F\u5426\u542F\u7528\u952E\u76D8\u5FEB\u6377\u884C\u4E3A"
|
22459 | }, React__default.createElement(Switch$1, {
|
22460 | defaultChecked: (_q = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _q.keyboard,
|
22461 | onChange: (checked) => handleChange(checked, "config.keyboard")
|
22462 | })), React__default.createElement(Form.Item, {
|
22463 | label: "\u662F\u5426\u53EA\u8BFB"
|
22464 | }, React__default.createElement(Switch$1, {
|
22465 | defaultChecked: (_r = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _r.readOnly,
|
22466 | onChange: (checked) => handleChange(checked, "config.readOnly")
|
22467 | })), React__default.createElement(Form.Item, {
|
22468 | label: "\u662F\u5426\u5F00\u542F\u5B57\u7B26\u503C\u6A21\u5F0F\uFF08\u652F\u6301\u9AD8\u7CBE\u5EA6\u5C0F\u6570\uFF09"
|
22469 | }, React__default.createElement(Switch$1, {
|
22470 | defaultChecked: (_s = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _s.stringMode,
|
22471 | onChange: (checked) => handleChange(checked, "config.stringMode")
|
22472 | })));
|
22473 | };
|
22474 | const MentionsConfig = () => {
|
22475 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j;
|
22476 | const { selectWidgetItem, handleChange } = useConfig();
|
22477 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22478 | label: "\u6807\u9898"
|
22479 | }, React__default.createElement(Input$1, {
|
22480 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22481 | onChange: (event) => handleChange(event.target.value, "label")
|
22482 | })), React__default.createElement(Form.Item, {
|
22483 | label: "Placeholder"
|
22484 | }, React__default.createElement(Input$1, {
|
22485 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
22486 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
22487 | })), React__default.createElement(Form.Item, {
|
22488 | label: "\u4E0B\u62C9\u5217\u8868\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u5185\u5BB9"
|
22489 | }, React__default.createElement(Input$1, {
|
22490 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.notFoundContent,
|
22491 | onChange: (event) => handleChange(event.target.value, "config.notFoundContent")
|
22492 | })), React__default.createElement(Form.Item, {
|
22493 | label: "\u8BBE\u7F6E\u89E6\u53D1\u5173\u952E\u8BCD"
|
22494 | }, React__default.createElement(Input$1, {
|
22495 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.prefix,
|
22496 | onChange: (event) => handleChange(event.target.value, "config.prefix")
|
22497 | })), React__default.createElement(Form.Item, {
|
22498 | label: "\u8BBE\u7F6E\u9009\u4E2D\u9879\u524D\u540E\u5206\u9694\u7B26"
|
22499 | }, React__default.createElement(Input$1, {
|
22500 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.split,
|
22501 | onChange: (event) => handleChange(event.target.value, "config.split")
|
22502 | })), React__default.createElement(Form.Item, {
|
22503 | label: "\u5F39\u51FA\u5C42\u5C55\u793A\u4F4D\u7F6E"
|
22504 | }, React__default.createElement(Radio.Group, {
|
22505 | optionType: "button",
|
22506 | buttonStyle: "solid",
|
22507 | options: mentionsPlacementOptions,
|
22508 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.placement,
|
22509 | onChange: (event) => handleChange(event.target.value, "config.placement")
|
22510 | })), React__default.createElement(OptionSourceTypeConfig, null), React__default.createElement(Form.Item, {
|
22511 | label: "\u662F\u5426\u9690\u85CF"
|
22512 | }, React__default.createElement(Switch$1, {
|
22513 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.hidden,
|
22514 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22515 | })), React__default.createElement(Form.Item, {
|
22516 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
22517 | }, React__default.createElement(Switch$1, {
|
22518 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.autoFocus,
|
22519 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
22520 | })), React__default.createElement(Form.Item, {
|
22521 | label: "\u81EA\u9002\u5E94\u5185\u5BB9\u9AD8\u5EA6"
|
22522 | }, React__default.createElement(Switch$1, {
|
22523 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.autoSize,
|
22524 | onChange: (checked) => handleChange(checked, "config.autoSize")
|
22525 | })), React__default.createElement(Form.Item, {
|
22526 | label: "\u662F\u5426\u7981\u7528"
|
22527 | }, React__default.createElement(Switch$1, {
|
22528 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.disabled,
|
22529 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22530 | })), React__default.createElement(Form.Item, {
|
22531 | label: "\u662F\u5426\u53EA\u8BFB"
|
22532 | }, React__default.createElement(Switch$1, {
|
22533 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.readOnly,
|
22534 | onChange: (checked) => handleChange(checked, "config.readOnly")
|
22535 | })));
|
22536 | };
|
22537 | const RadioGroupConfig = () => {
|
22538 | var _a, _b, _c, _d, _e, _f;
|
22539 | const { selectWidgetItem, handleChange } = useConfig();
|
22540 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22541 | label: "\u6807\u9898"
|
22542 | }, React__default.createElement(Input$1, {
|
22543 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22544 | onChange: (event) => handleChange(event.target.value, "label")
|
22545 | })), React__default.createElement(Form.Item, {
|
22546 | label: "RadioOptions\u7C7B\u578B"
|
22547 | }, React__default.createElement(Radio.Group, {
|
22548 | buttonStyle: "solid",
|
22549 | optionType: "button",
|
22550 | options: radioGroupOptionTypeOptions,
|
22551 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.optionType,
|
22552 | onChange: (event) => handleChange(event.target.value, "config.optionType")
|
22553 | })), React__default.createElement(Form.Item, {
|
22554 | label: "RadioButton\u6837\u5F0F"
|
22555 | }, React__default.createElement(Radio.Group, {
|
22556 | buttonStyle: "solid",
|
22557 | optionType: "button",
|
22558 | options: radioGroupButtonStyleOptions,
|
22559 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.buttonStyle,
|
22560 | onChange: (event) => handleChange(event.target.value, "config.buttonStyle")
|
22561 | })), React__default.createElement(Form.Item, {
|
22562 | label: React__default.createElement(Space$1, null, "\u5927\u5C0F", ((_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.size) && React__default.createElement("a", {
|
22563 | href: "/#",
|
22564 | onClick: (event) => {
|
22565 | event.preventDefault();
|
22566 | handleChange(void 0, "config.size");
|
22567 | }
|
22568 | }, "\u8FD8\u539F"))
|
22569 | }, React__default.createElement(Radio.Group, {
|
22570 | optionType: "button",
|
22571 | buttonStyle: "solid",
|
22572 | options: sizeOptions,
|
22573 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.size,
|
22574 | onChange: (event) => handleChange(event.target.value, "config.size")
|
22575 | })), React__default.createElement(OptionSourceTypeConfig, null), React__default.createElement(Form.Item, {
|
22576 | label: "\u662F\u5426\u9690\u85CF"
|
22577 | }, React__default.createElement(Switch$1, {
|
22578 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.hidden,
|
22579 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22580 | })), React__default.createElement(Form.Item, {
|
22581 | label: "\u662F\u5426\u7981\u7528"
|
22582 | }, React__default.createElement(Switch$1, {
|
22583 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.disabled,
|
22584 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22585 | })));
|
22586 | };
|
22587 | const RateConfig = () => {
|
22588 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k;
|
22589 | const { selectWidgetItem, handleChange } = useConfig();
|
22590 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22591 | label: "\u6807\u9898"
|
22592 | }, React__default.createElement(Input$1, {
|
22593 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22594 | onChange: (event) => handleChange(event.target.value, "label")
|
22595 | })), React__default.createElement(Form.Item, {
|
22596 | label: "\u9ED8\u8BA4\u503C"
|
22597 | }, React__default.createElement(InputNumber$1, {
|
22598 | min: 0,
|
22599 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _a.initialValue,
|
22600 | onChange: (value) => handleChange(value, "formItemConfig.initialValue")
|
22601 | })), React__default.createElement(Form.Item, {
|
22602 | label: "Star\u603B\u6570"
|
22603 | }, React__default.createElement(InputNumber$1, {
|
22604 | min: 0,
|
22605 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.count,
|
22606 | onChange: (value) => handleChange(value, "config.count")
|
22607 | })), React__default.createElement(Form.Item, {
|
22608 | label: "\u81EA\u5B9A\u4E49\u5B57\u7B26"
|
22609 | }, React__default.createElement(Input$1, {
|
22610 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.character,
|
22611 | onChange: (event) => handleChange(event.target.value || void 0, "config.character")
|
22612 | })), React__default.createElement(Form.Item, {
|
22613 | label: "\u81EA\u5B9A\u4E49\u6837\u5F0F\u7C7B\u540D"
|
22614 | }, React__default.createElement(Input$1, {
|
22615 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.className,
|
22616 | onChange: (event) => handleChange(event.target.value, "config.className")
|
22617 | })), React__default.createElement(Form.Item, {
|
22618 | label: "\u81EA\u5B9A\u4E49\u6BCF\u9879\u63D0\u793A\u4FE1\u606F\uFF08\u7528\u201C,\u201D\u5206\u5272\uFF09"
|
22619 | }, React__default.createElement(Input$1, {
|
22620 | value: (_f = (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.tooltips) == null ? void 0 : _f.join(","),
|
22621 | onChange: (event) => handleChange(event.target.value.split(","), "config.tooltips")
|
22622 | })), React__default.createElement(Form.Item, {
|
22623 | label: "\u662F\u5426\u5141\u8BB8\u518D\u6B21\u70B9\u51FB\u540E\u6E05\u9664"
|
22624 | }, React__default.createElement(Switch$1, {
|
22625 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.allowClear,
|
22626 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
22627 | })), React__default.createElement(Form.Item, {
|
22628 | label: "\u662F\u5426\u5141\u8BB8\u534A\u9009"
|
22629 | }, React__default.createElement(Switch$1, {
|
22630 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.allowHalf,
|
22631 | onChange: (checked) => handleChange(checked, "config.allowHalf")
|
22632 | })), React__default.createElement(Form.Item, {
|
22633 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
22634 | }, React__default.createElement(Switch$1, {
|
22635 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.autoFocus,
|
22636 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
22637 | })), React__default.createElement(Form.Item, {
|
22638 | label: "\u662F\u5426\u9690\u85CF"
|
22639 | }, React__default.createElement(Switch$1, {
|
22640 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.hidden,
|
22641 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22642 | })), React__default.createElement(Form.Item, {
|
22643 | label: "\u662F\u5426\u7981\u7528"
|
22644 | }, React__default.createElement(Switch$1, {
|
22645 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.disabled,
|
22646 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22647 | })));
|
22648 | };
|
22649 | const SelectConfig = () => {
|
22650 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
22651 | const { selectWidgetItem, handleChange } = useConfig();
|
22652 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22653 | label: "\u6807\u9898"
|
22654 | }, React__default.createElement(Input$1, {
|
22655 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22656 | onChange: (event) => handleChange(event.target.value, "label")
|
22657 | })), React__default.createElement(Form.Item, {
|
22658 | label: "Placeholder"
|
22659 | }, React__default.createElement(Input$1, {
|
22660 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
22661 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
22662 | })), React__default.createElement(Form.Item, {
|
22663 | label: "ClassName"
|
22664 | }, React__default.createElement(Input$1, {
|
22665 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.dropdownClassName,
|
22666 | placeholder: "\u4E0B\u62C9\u83DC\u5355\u7684 className \u5C5E\u6027",
|
22667 | onChange: (event) => handleChange(event.target.value, "config.dropdownClassName")
|
22668 | })), React__default.createElement(Form.Item, {
|
22669 | label: "\u81EA\u5B9A\u4E49\u7684\u9009\u62E9\u6846\u540E\u7F00\u56FE\u6807"
|
22670 | }, React__default.createElement(Input$1, {
|
22671 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.suffixIcon,
|
22672 | onChange: (event) => handleChange(event.target.value || void 0, "config.suffixIcon")
|
22673 | })), React__default.createElement(Form.Item, {
|
22674 | label: "MaxTagPlaceholder"
|
22675 | }, React__default.createElement(Input$1, {
|
22676 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.maxTagPlaceholder,
|
22677 | placeholder: "\u9690\u85CF tag \u65F6\u663E\u793A\u7684\u5185\u5BB9",
|
22678 | onChange: (event) => handleChange(event.target.value || void 0, "config.maxTagPlaceholder")
|
22679 | })), React__default.createElement(Form.Item, {
|
22680 | label: "\u4E0B\u62C9\u5217\u8868\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u5185\u5BB9"
|
22681 | }, React__default.createElement(Input$1, {
|
22682 | placeholder: "\u5F53\u4E0B\u62C9\u5217\u8868\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u5185\u5BB9",
|
22683 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.notFoundContent,
|
22684 | onChange: (event) => handleChange(event.target.value, "config.notFoundContent")
|
22685 | })), React__default.createElement(Form.Item, {
|
22686 | label: React__default.createElement(Space$1, null, "\u9009\u62E9\u6846\u5927\u5C0F", ((_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.size) && React__default.createElement("a", {
|
22687 | href: "/#",
|
22688 | onClick: (event) => {
|
22689 | event.preventDefault();
|
22690 | handleChange(void 0, "config.size");
|
22691 | }
|
22692 | }, "\u8FD8\u539F"))
|
22693 | }, React__default.createElement(Radio.Group, {
|
22694 | optionType: "button",
|
22695 | buttonStyle: "solid",
|
22696 | options: sizeOptions,
|
22697 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.size,
|
22698 | onChange: (event) => handleChange(event.target.value, "config.size")
|
22699 | })), React__default.createElement(Form.Item, {
|
22700 | label: React__default.createElement(Space$1, null, "SelectMode", ((_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.mode) && React__default.createElement("a", {
|
22701 | href: "/#",
|
22702 | onClick: (event) => {
|
22703 | event.preventDefault();
|
22704 | handleChange("", "formItemConfig.initialValue");
|
22705 | handleChange("string", "formItemConfig.rules[0].type");
|
22706 | handleChange(void 0, "config.mode");
|
22707 | }
|
22708 | }, "\u8FD8\u539F"))
|
22709 | }, React__default.createElement(Radio.Group, {
|
22710 | optionType: "button",
|
22711 | buttonStyle: "solid",
|
22712 | options: selectModeOptions,
|
22713 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.mode,
|
22714 | onChange: (event) => {
|
22715 | handleChange([], "formItemConfig.initialValue");
|
22716 | handleChange("array", "formItemConfig.rules[0].type");
|
22717 | handleChange(event.target.value, "config.mode");
|
22718 | }
|
22719 | })), React__default.createElement(OptionSourceTypeConfig, {
|
22720 | multiple: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.mode
|
22721 | }), React__default.createElement(Form.Item, {
|
22722 | label: "\u8BBE\u7F6E\u5F39\u7A97\u6EDA\u52A8\u9AD8\u5EA6"
|
22723 | }, React__default.createElement(InputNumber$1, {
|
22724 | value: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.listHeight,
|
22725 | onChange: (value) => handleChange(value, "config.listHeight")
|
22726 | })), React__default.createElement(Form.Item, {
|
22727 | label: "\u6700\u591A\u663E\u793A\u591A\u5C11\u4E2Atag"
|
22728 | }, React__default.createElement(InputNumber$1, {
|
22729 | min: 0,
|
22730 | value: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.maxTagCount,
|
22731 | onChange: (value) => handleChange(value, "config.maxTagCount")
|
22732 | })), React__default.createElement(Form.Item, {
|
22733 | label: "\u6700\u5927\u663E\u793A\u7684tag\u6587\u672C\u957F\u5EA6"
|
22734 | }, React__default.createElement(InputNumber$1, {
|
22735 | min: 0,
|
22736 | value: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.maxTagTextLength,
|
22737 | onChange: (value) => handleChange(value, "config.maxTagTextLength")
|
22738 | })), React__default.createElement(Form.Item, {
|
22739 | label: "OptionFilterProp"
|
22740 | }, React__default.createElement(Input$1, {
|
22741 | value: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.optionFilterProp,
|
22742 | placeholder: "\u641C\u7D22\u65F6\u8FC7\u6EE4\u5BF9\u5E94\u7684 Option \u5C5E\u6027",
|
22743 | onChange: (event) => handleChange(event.target.value, "config.optionFilterProp")
|
22744 | })), React__default.createElement(Form.Item, {
|
22745 | label: "OptionLabelProp"
|
22746 | }, React__default.createElement(Input$1, {
|
22747 | value: (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _o.optionLabelProp,
|
22748 | placeholder: "\u56DE\u586B\u5230\u9009\u62E9\u6846\u7684 Option \u7684\u5C5E\u6027",
|
22749 | onChange: (event) => handleChange(event.target.value, "config.optionLabelProp")
|
22750 | })), React__default.createElement(Form.Item, {
|
22751 | label: "\u662F\u5426\u9690\u85CF"
|
22752 | }, React__default.createElement(Switch$1, {
|
22753 | defaultChecked: (_p = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _p.hidden,
|
22754 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22755 | })), React__default.createElement(Form.Item, {
|
22756 | label: "\u652F\u6301\u6E05\u9664"
|
22757 | }, React__default.createElement(Switch$1, {
|
22758 | defaultChecked: (_q = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _q.allowClear,
|
22759 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
22760 | })), React__default.createElement(Form.Item, {
|
22761 | label: "\u662F\u5426\u5728\u9009\u4E2D\u9879\u540E\u6E05\u7A7A\u641C\u7D22\u6846\uFF08\u53EA\u5728 mode \u4E3A multiple \u6216 tags \u65F6\u6709\u6548\uFF09"
|
22762 | }, React__default.createElement(Switch$1, {
|
22763 | defaultChecked: (_r = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _r.autoClearSearchValue,
|
22764 | onChange: (checked) => handleChange(checked, "config.autoClearSearchValue")
|
22765 | })), React__default.createElement(Form.Item, {
|
22766 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
22767 | }, React__default.createElement(Switch$1, {
|
22768 | defaultChecked: (_s = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _s.autoFocus,
|
22769 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
22770 | })), React__default.createElement(Form.Item, {
|
22771 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
22772 | }, React__default.createElement(Switch$1, {
|
22773 | defaultChecked: (_t = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _t.bordered,
|
22774 | onChange: (checked) => handleChange(checked, "config.bordered")
|
22775 | })), React__default.createElement(Form.Item, {
|
22776 | label: "\u662F\u5426\u9ED8\u8BA4\u9AD8\u4EAE\u7B2C\u4E00\u4E2A\u9009\u9879"
|
22777 | }, React__default.createElement(Switch$1, {
|
22778 | defaultChecked: (_u = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _u.defaultActiveFirstOption,
|
22779 | onChange: (checked) => handleChange(checked, "config.defaultActiveFirstOption")
|
22780 | })), React__default.createElement(Form.Item, {
|
22781 | label: "\u662F\u5426\u9ED8\u8BA4\u5C55\u5F00\u4E0B\u62C9\u83DC\u5355"
|
22782 | }, React__default.createElement(Switch$1, {
|
22783 | defaultChecked: (_v = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _v.defaultOpen,
|
22784 | onChange: (checked) => handleChange(checked, "config.defaultOpen")
|
22785 | })), React__default.createElement(Form.Item, {
|
22786 | label: "\u662F\u5426\u7981\u7528"
|
22787 | }, React__default.createElement(Switch$1, {
|
22788 | defaultChecked: (_w = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _w.disabled,
|
22789 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22790 | })), React__default.createElement(Form.Item, {
|
22791 | label: "\u4E0B\u62C9\u83DC\u5355\u548C\u9009\u62E9\u5668\u540C\u5BBD"
|
22792 | }, React__default.createElement(Switch$1, {
|
22793 | defaultChecked: (_x = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _x.dropdownMatchSelectWidth,
|
22794 | onChange: (checked) => handleChange(checked, "config.dropdownMatchSelectWidth")
|
22795 | })), React__default.createElement(Form.Item, {
|
22796 | label: "\u662F\u5426\u6839\u636E\u8F93\u5165\u9879\u8FDB\u884C\u7B5B\u9009"
|
22797 | }, React__default.createElement(Switch$1, {
|
22798 | defaultChecked: (_y = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _y.filterOption,
|
22799 | onChange: (checked) => handleChange(checked, "config.filterOption")
|
22800 | })), React__default.createElement(Form.Item, {
|
22801 | label: "\u662F\u5426\u628A\u6BCF\u4E2A\u9009\u9879\u7684 label \u5305\u88C5\u5230 value \u4E2D"
|
22802 | }, React__default.createElement(Switch$1, {
|
22803 | defaultChecked: (_z = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _z.labelInValue,
|
22804 | onChange: (checked) => handleChange(checked, "config.labelInValue")
|
22805 | })), React__default.createElement(Form.Item, {
|
22806 | label: "\u4F7F\u5355\u9009\u6A21\u5F0F\u53EF\u641C\u7D22"
|
22807 | }, React__default.createElement(Switch$1, {
|
22808 | defaultChecked: (_A = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _A.showSearch,
|
22809 | onChange: (checked) => handleChange(checked, "config.showSearch")
|
22810 | })), React__default.createElement(Form.Item, {
|
22811 | label: "\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8"
|
22812 | }, React__default.createElement(Switch$1, {
|
22813 | defaultChecked: (_B = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _B.virtual,
|
22814 | onChange: (checked) => handleChange(checked, "config.virtual")
|
22815 | })), React__default.createElement(Form.Item, {
|
22816 | label: React__default.createElement(Space$1, null, "\u662F\u5426\u663E\u793A\u4E0B\u62C9\u5C0F\u7BAD\u5934", ((_C = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _C.showArrow) !== void 0 && React__default.createElement("a", {
|
22817 | href: "/#",
|
22818 | onClick: (event) => {
|
22819 | event.preventDefault();
|
22820 | handleChange(void 0, "config.showArrow");
|
22821 | }
|
22822 | }, "\u8FD8\u539F"))
|
22823 | }, React__default.createElement(Switch$1, {
|
22824 | defaultChecked: (_D = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _D.showArrow,
|
22825 | onChange: (checked) => handleChange(checked, "config.showArrow")
|
22826 | })));
|
22827 | };
|
22828 | const SliderConfig = () => {
|
22829 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q;
|
22830 | const { selectWidgetItem, handleChange } = useConfig();
|
22831 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22832 | label: "\u6807\u9898"
|
22833 | }, React__default.createElement(Input$1, {
|
22834 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22835 | onChange: (event) => handleChange(event.target.value, "label")
|
22836 | })), React__default.createElement(Form.Item, {
|
22837 | label: "\u9ED8\u8BA4\u503C"
|
22838 | }, ((_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.range) ? React__default.createElement(React__default.Fragment, null, React__default.createElement(InputNumber$1, {
|
22839 | min: 0,
|
22840 | value: (_c = (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.initialValue) == null ? void 0 : _c[0],
|
22841 | onChange: (value) => handleChange(value || 0, "formItemConfig.initialValue[0]")
|
22842 | }), React__default.createElement(InputNumber$1, {
|
22843 | min: 0,
|
22844 | value: (_e = (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _d.initialValue) == null ? void 0 : _e[1],
|
22845 | onChange: (value) => handleChange(value || 0, "formItemConfig.initialValue[1]")
|
22846 | })) : React__default.createElement(InputNumber$1, {
|
22847 | min: 0,
|
22848 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _f.initialValue,
|
22849 | onChange: (value) => handleChange(value || 0, "formItemConfig.initialValue")
|
22850 | })), React__default.createElement(Form.Item, {
|
22851 | label: "\u6700\u5927\u503C"
|
22852 | }, React__default.createElement(InputNumber$1, {
|
22853 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.max,
|
22854 | onChange: (value) => handleChange(value, "config.max")
|
22855 | })), React__default.createElement(Form.Item, {
|
22856 | label: "\u6700\u5C0F\u503C"
|
22857 | }, React__default.createElement(InputNumber$1, {
|
22858 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.min,
|
22859 | onChange: (value) => handleChange(value, "config.min")
|
22860 | })), React__default.createElement(Form.Item, {
|
22861 | label: "\u6B65\u957F"
|
22862 | }, React__default.createElement(InputNumber$1, {
|
22863 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.step,
|
22864 | onChange: (value) => handleChange(value, "config.step")
|
22865 | })), React__default.createElement(Form.Item, {
|
22866 | label: "\u662F\u5426\u652F\u6301\u6E05\u9664(\u5355\u9009\u6A21\u5F0F\u6709\u6548)"
|
22867 | }, React__default.createElement(Switch$1, {
|
22868 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.allowClear,
|
22869 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
22870 | })), React__default.createElement(Form.Item, {
|
22871 | label: "\u662F\u5426\u53EA\u80FD\u62D6\u62FD\u5230\u523B\u5EA6\u4E0A"
|
22872 | }, React__default.createElement(Switch$1, {
|
22873 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.dots,
|
22874 | onChange: (checked) => handleChange(checked, "config.dots")
|
22875 | })), React__default.createElement(Form.Item, {
|
22876 | label: "\u53CC\u6ED1\u5757\u6A21\u5F0F"
|
22877 | }, React__default.createElement(Switch$1, {
|
22878 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.range,
|
22879 | onChange: (checked) => {
|
22880 | handleChange(checked ? [0, 0] : 0, "formItemConfig.initialValue");
|
22881 | handleChange(checked ? "array" : "number", "formItemConfig.rules[0].type");
|
22882 | setTimeout(() => handleChange(checked, "config.range"), 100);
|
22883 | }
|
22884 | })), React__default.createElement(Form.Item, {
|
22885 | label: "\u53CD\u5411\u5750\u6807\u8F74"
|
22886 | }, React__default.createElement(Switch$1, {
|
22887 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.reverse,
|
22888 | onChange: (checked) => handleChange(checked, "config.reverse")
|
22889 | })), React__default.createElement(Form.Item, {
|
22890 | label: React__default.createElement(Space$1, null, "\u662F\u5426\u59CB\u7EC8\u663E\u793ATooltip", ((_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.tooltipVisible) !== void 0 && React__default.createElement("a", {
|
22891 | href: "/#",
|
22892 | onClick: (event) => {
|
22893 | event.preventDefault();
|
22894 | handleChange(void 0, "config.tooltipVisible");
|
22895 | }
|
22896 | }, "\u8FD8\u539F"))
|
22897 | }, React__default.createElement(Switch$1, {
|
22898 | defaultChecked: (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _o.tooltipVisible,
|
22899 | onChange: (checked) => handleChange(checked, "config.tooltipVisible")
|
22900 | })), React__default.createElement(Form.Item, {
|
22901 | label: "\u662F\u5426\u9690\u85CF"
|
22902 | }, React__default.createElement(Switch$1, {
|
22903 | defaultChecked: (_p = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _p.hidden,
|
22904 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22905 | })), React__default.createElement(Form.Item, {
|
22906 | label: "\u662F\u5426\u7981\u7528"
|
22907 | }, React__default.createElement(Switch$1, {
|
22908 | defaultChecked: (_q = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _q.disabled,
|
22909 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22910 | })));
|
22911 | };
|
22912 | const SwitchConfig = () => {
|
22913 | var _a, _b, _c, _d, _e, _f, _g, _h;
|
22914 | const { selectWidgetItem, handleChange } = useConfig();
|
22915 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22916 | label: "\u6807\u9898"
|
22917 | }, React__default.createElement(Input$1, {
|
22918 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22919 | onChange: (event) => handleChange(event.target.value, "label")
|
22920 | })), React__default.createElement(Form.Item, {
|
22921 | label: "\u9ED8\u8BA4\u503C"
|
22922 | }, React__default.createElement(Switch$1, {
|
22923 | defaultChecked: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _a.initialValue,
|
22924 | onChange: (checked) => handleChange(checked, "formItemConfig.initialValue")
|
22925 | })), React__default.createElement(Form.Item, {
|
22926 | label: "ClassName"
|
22927 | }, React__default.createElement(Input$1, {
|
22928 | placeholder: "Switch \u5668\u7C7B\u540D",
|
22929 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.className,
|
22930 | onChange: (event) => handleChange(event.target.value, "config.className")
|
22931 | })), React__default.createElement(Form.Item, {
|
22932 | label: "\u9009\u4E2D\u65F6\u7684\u5185\u5BB9"
|
22933 | }, React__default.createElement(Input$1, {
|
22934 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.checkedChildren,
|
22935 | onChange: (event) => handleChange(event.target.value, "config.checkedChildren")
|
22936 | })), React__default.createElement(Form.Item, {
|
22937 | label: "\u975E\u9009\u4E2D\u65F6\u7684\u5185\u5BB9"
|
22938 | }, React__default.createElement(Input$1, {
|
22939 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.unCheckedChildren,
|
22940 | onChange: (event) => handleChange(event.target.value, "config.unCheckedChildren")
|
22941 | })), React__default.createElement(Form.Item, {
|
22942 | label: "\u6309\u94AE\u5927\u5C0F"
|
22943 | }, React__default.createElement(Radio.Group, {
|
22944 | optionType: "button",
|
22945 | buttonStyle: "solid",
|
22946 | options: switchSizeOptions,
|
22947 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.size,
|
22948 | onChange: (event) => handleChange(event.target.value, "config.size")
|
22949 | })), React__default.createElement(Form.Item, {
|
22950 | label: "\u7EC4\u4EF6\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
22951 | }, React__default.createElement(Switch$1, {
|
22952 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.autoFocus,
|
22953 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
22954 | })), React__default.createElement(Form.Item, {
|
22955 | label: "\u662F\u5426\u9690\u85CF"
|
22956 | }, React__default.createElement(Switch$1, {
|
22957 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.hidden,
|
22958 | onChange: (checked) => handleChange(checked, "config.hidden")
|
22959 | })), React__default.createElement(Form.Item, {
|
22960 | label: "\u662F\u5426\u7981\u7528"
|
22961 | }, React__default.createElement(Switch$1, {
|
22962 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.disabled,
|
22963 | onChange: (checked) => handleChange(checked, "config.disabled")
|
22964 | })));
|
22965 | };
|
22966 | const TimePickerConfig = () => {
|
22967 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
22968 | const { selectWidgetItem, handleChange } = useConfig();
|
22969 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
22970 | label: "\u6807\u9898"
|
22971 | }, React__default.createElement(Input$1, {
|
22972 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
22973 | onChange: (event) => handleChange(event.target.value, "label")
|
22974 | })), React__default.createElement(Form.Item, {
|
22975 | label: "Placeholder"
|
22976 | }, React__default.createElement(Input$1, {
|
22977 | placeholder: "\u8F93\u5165\u6846\u63D0\u793A\u6587\u5B57",
|
22978 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
22979 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
22980 | })), React__default.createElement(Form.Item, {
|
22981 | label: "\u9ED8\u8BA4\u65F6\u95F4"
|
22982 | }, React__default.createElement(TimePicker$1, {
|
22983 | placeholder: "\u8BF7\u9009\u62E9\u9ED8\u8BA4\u65F6\u95F4",
|
22984 | value: ((_b = selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) == null ? void 0 : _b.initialValue) && moment$1(selectWidgetItem.formItemConfig.initialValue, (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.format),
|
22985 | onChange: (_, timeString) => handleChange(timeString, "formItemConfig.initialValue")
|
22986 | })), React__default.createElement(Form.Item, {
|
22987 | label: "\u65E5\u671F\u683C\u5F0F"
|
22988 | }, React__default.createElement(Input$1, {
|
22989 | placeholder: "\u8BBE\u7F6E\u65E5\u671F\u683C\u5F0F",
|
22990 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.format,
|
22991 | onChange: (event) => handleChange(event.target.value || void 0, "config.format")
|
22992 | })), React__default.createElement(Form.Item, {
|
22993 | label: React__default.createElement(Space$1, null, "\u8F93\u5165\u6846\u5927\u5C0F", ((_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.size) && React__default.createElement("a", {
|
22994 | href: "/#",
|
22995 | onClick: (event) => {
|
22996 | event.preventDefault();
|
22997 | handleChange(void 0, "config.size");
|
22998 | }
|
22999 | }, "\u8FD8\u539F"))
|
23000 | }, React__default.createElement(Radio.Group, {
|
23001 | optionType: "button",
|
23002 | buttonStyle: "solid",
|
23003 | options: sizeOptions,
|
23004 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.size,
|
23005 | onChange: (event) => handleChange(event.target.value, "config.size")
|
23006 | })), React__default.createElement(Form.Item, {
|
23007 | label: "\u9009\u62E9\u5668 className"
|
23008 | }, React__default.createElement(Input$1, {
|
23009 | placeholder: "\u9009\u62E9\u5668\u7C7B\u540D",
|
23010 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.className,
|
23011 | onChange: (event) => handleChange(event.target.value, "config.className")
|
23012 | })), React__default.createElement(Form.Item, {
|
23013 | label: "\u5F39\u51FA\u5C42 className"
|
23014 | }, React__default.createElement(Input$1, {
|
23015 | placeholder: "\u5F39\u51FA\u5C42\u7C7B\u540D",
|
23016 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.popupClassName,
|
23017 | onChange: (event) => handleChange(event.target.value, "config.popupClassName")
|
23018 | })), React__default.createElement(Form.Item, {
|
23019 | label: "\u6E05\u9664\u6309\u94AE\u7684\u63D0\u793A\u6587\u6848"
|
23020 | }, React__default.createElement(Input$1, {
|
23021 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.clearText,
|
23022 | onChange: (event) => handleChange(event.target.value, "config.clearText")
|
23023 | })), React__default.createElement(Form.Item, {
|
23024 | label: "\u81EA\u5B9A\u4E49\u7684\u9009\u62E9\u6846\u540E\u7F00\u56FE\u6807"
|
23025 | }, React__default.createElement(Input$1, {
|
23026 | value: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.suffixIcon,
|
23027 | onChange: (event) => handleChange(event.target.value, "config.suffixIcon")
|
23028 | })), React__default.createElement(Form.Item, {
|
23029 | label: "\u5C0F\u65F6\u9009\u9879\u95F4\u9694"
|
23030 | }, React__default.createElement(InputNumber$1, {
|
23031 | min: 0,
|
23032 | value: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.hourStep,
|
23033 | onChange: (value) => handleChange(value, "config.hourStep")
|
23034 | })), React__default.createElement(Form.Item, {
|
23035 | label: "\u5206\u949F\u9009\u9879\u95F4\u9694"
|
23036 | }, React__default.createElement(InputNumber$1, {
|
23037 | min: 0,
|
23038 | value: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.minuteStep,
|
23039 | onChange: (value) => handleChange(value, "config.minuteStep")
|
23040 | })), React__default.createElement(Form.Item, {
|
23041 | label: "\u79D2\u9009\u9879\u95F4\u9694"
|
23042 | }, React__default.createElement(InputNumber$1, {
|
23043 | min: 0,
|
23044 | value: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.secondStep,
|
23045 | onChange: (value) => handleChange(value, "config.secondStep")
|
23046 | })), React__default.createElement(Form.Item, {
|
23047 | label: "\u662F\u5426\u9690\u85CF"
|
23048 | }, React__default.createElement(Switch$1, {
|
23049 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.hidden,
|
23050 | onChange: (checked) => handleChange(checked, "config.hidden")
|
23051 | })), React__default.createElement(Form.Item, {
|
23052 | label: "\u662F\u5426\u663E\u793A\u6E05\u9664\u6309\u94AE"
|
23053 | }, React__default.createElement(Switch$1, {
|
23054 | defaultChecked: (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _o.allowClear,
|
23055 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
23056 | })), React__default.createElement(Form.Item, {
|
23057 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
23058 | }, React__default.createElement(Switch$1, {
|
23059 | defaultChecked: (_p = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _p.autoFocus,
|
23060 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
23061 | })), React__default.createElement(Form.Item, {
|
23062 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
23063 | }, React__default.createElement(Switch$1, {
|
23064 | defaultChecked: (_q = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _q.bordered,
|
23065 | onChange: (checked) => handleChange(checked, "config.bordered")
|
23066 | })), React__default.createElement(Form.Item, {
|
23067 | label: "\u662F\u5426\u7981\u7528"
|
23068 | }, React__default.createElement(Switch$1, {
|
23069 | defaultChecked: (_r = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _r.disabled,
|
23070 | onChange: (checked) => handleChange(checked, "config.disabled")
|
23071 | })), React__default.createElement(Form.Item, {
|
23072 | label: "\u8BBE\u7F6E\u8F93\u5165\u6846\u4E3A\u53EA\u8BFB"
|
23073 | }, React__default.createElement(Switch$1, {
|
23074 | defaultChecked: (_s = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _s.inputReadOnly,
|
23075 | onChange: (checked) => handleChange(checked, "config.inputReadOnly")
|
23076 | })), React__default.createElement(Form.Item, {
|
23077 | label: "\u9690\u85CF\u7981\u6B62\u9009\u62E9\u7684\u9009\u9879"
|
23078 | }, React__default.createElement(Switch$1, {
|
23079 | defaultChecked: (_t = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _t.hideDisabledOptions,
|
23080 | onChange: (checked) => handleChange(checked, "config.hideDisabledOptions")
|
23081 | })), React__default.createElement(Form.Item, {
|
23082 | label: "\u662F\u5426\u663E\u793A\u201C\u6B64\u523B\u201D\u6309\u94AE"
|
23083 | }, React__default.createElement(Switch$1, {
|
23084 | defaultChecked: (_u = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _u.showNow,
|
23085 | onChange: (checked) => handleChange(checked, "config.showNow")
|
23086 | })), React__default.createElement(Form.Item, {
|
23087 | label: "\u4F7F\u7528 12 \u5C0F\u65F6\u5236"
|
23088 | }, React__default.createElement(Switch$1, {
|
23089 | defaultChecked: (_v = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _v.use12Hours,
|
23090 | onChange: (checked) => {
|
23091 | handleChange(checked ? "h:mm:ss a" : "HH:mm:ss", "config.format");
|
23092 | handleChange(checked, "config.use12Hours");
|
23093 | }
|
23094 | })));
|
23095 | };
|
23096 | const TreeSelectConfig = () => {
|
23097 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D, _E, _F, _G, _H, _I;
|
23098 | const { selectWidgetItem, handleChange } = useConfig();
|
23099 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
23100 | label: "\u6807\u9898"
|
23101 | }, React__default.createElement(Input$1, {
|
23102 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
23103 | onChange: (event) => handleChange(event.target.value, "label")
|
23104 | })), React__default.createElement(Form.Item, {
|
23105 | label: "Placeholder"
|
23106 | }, React__default.createElement(Input$1, {
|
23107 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.placeholder,
|
23108 | onChange: (event) => handleChange(event.target.value, "config.placeholder")
|
23109 | })), React__default.createElement(Form.Item, {
|
23110 | label: "DropdownClassName"
|
23111 | }, React__default.createElement(Input$1, {
|
23112 | placeholder: "\u4E0B\u62C9\u83DC\u5355\u7684 className \u5C5E\u6027",
|
23113 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.dropdownClassName,
|
23114 | onChange: (event) => handleChange(event.target.value, "config.dropdownClassName")
|
23115 | })), React__default.createElement(Form.Item, {
|
23116 | label: "\u81EA\u5B9A\u4E49\u7684\u9009\u62E9\u6846\u540E\u7F00\u56FE\u6807"
|
23117 | }, React__default.createElement(Input$1, {
|
23118 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.suffixIcon,
|
23119 | onChange: (event) => handleChange(event.target.value || void 0, "config.suffixIcon")
|
23120 | })), React__default.createElement(Form.Item, {
|
23121 | label: "MaxTagPlaceholder"
|
23122 | }, React__default.createElement(Input$1, {
|
23123 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.maxTagPlaceholder,
|
23124 | placeholder: "\u9690\u85CF tag \u65F6\u663E\u793A\u7684\u5185\u5BB9",
|
23125 | onChange: (event) => handleChange(event.target.value || void 0, "config.maxTagPlaceholder")
|
23126 | })), React__default.createElement(Form.Item, {
|
23127 | label: "NotFoundContent"
|
23128 | }, React__default.createElement(Input$1, {
|
23129 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.notFoundContent,
|
23130 | placeholder: "\u5F53\u4E0B\u62C9\u5217\u8868\u4E3A\u7A7A\u65F6\u663E\u793A\u7684\u5185\u5BB9",
|
23131 | onChange: (event) => handleChange(event.target.value, "config.notFoundContent")
|
23132 | })), React__default.createElement(Form.Item, {
|
23133 | label: React__default.createElement(Space$1, null, "\u8F93\u5165\u6846\u5927\u5C0F", ((_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.size) && React__default.createElement("a", {
|
23134 | href: "/#",
|
23135 | onClick: (event) => {
|
23136 | event.preventDefault();
|
23137 | handleChange(void 0, "config.size");
|
23138 | }
|
23139 | }, "\u8FD8\u539F"))
|
23140 | }, React__default.createElement(Radio.Group, {
|
23141 | optionType: "button",
|
23142 | buttonStyle: "solid",
|
23143 | options: sizeOptions,
|
23144 | value: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.size,
|
23145 | onChange: (event) => handleChange(event.target.value, "config.size")
|
23146 | })), React__default.createElement(Form.Item, {
|
23147 | label: "\u8BBE\u7F6E\u5F39\u7A97\u6EDA\u52A8\u9AD8\u5EA6"
|
23148 | }, React__default.createElement(InputNumber$1, {
|
23149 | value: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.listHeight,
|
23150 | onChange: (value) => handleChange(value, "config.listHeight")
|
23151 | })), React__default.createElement(Form.Item, {
|
23152 | label: "\u6700\u591A\u663E\u793A\u591A\u5C11\u4E2Atag"
|
23153 | }, React__default.createElement(InputNumber$1, {
|
23154 | min: 0,
|
23155 | value: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.maxTagCount,
|
23156 | onChange: (value) => handleChange(value || void 0, "config.maxTagCount")
|
23157 | })), React__default.createElement(Form.Item, {
|
23158 | label: "TreeNodeFilterProp"
|
23159 | }, React__default.createElement(Input$1, {
|
23160 | value: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.treeNodeFilterProp,
|
23161 | placeholder: "\u8F93\u5165\u9879\u8FC7\u6EE4\u5BF9\u5E94\u7684 treeNode \u5C5E\u6027",
|
23162 | onChange: (event) => handleChange(event.target.value, "config.treeNodeFilterProp")
|
23163 | })), React__default.createElement(Form.Item, {
|
23164 | label: "TreeNodeLabelProp"
|
23165 | }, React__default.createElement(Input$1, {
|
23166 | value: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.treeNodeLabelProp,
|
23167 | placeholder: "\u4F5C\u4E3A\u663E\u793A\u7684 prop \u8BBE\u7F6E",
|
23168 | onChange: (event) => handleChange(event.target.value, "config.treeNodeLabelProp")
|
23169 | })), React__default.createElement(Form.Item, {
|
23170 | label: "\u8FDC\u7AEF\u6570\u636E"
|
23171 | }, React__default.createElement(Space$1, {
|
23172 | direction: "vertical",
|
23173 | style: { marginTop: "10px" }
|
23174 | }, React__default.createElement(Input$1, {
|
23175 | value: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _l.remoteFunc,
|
23176 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteFunc"),
|
23177 | size: "small",
|
23178 | addonBefore: "\u8FDC\u7AEF\u65B9\u6CD5"
|
23179 | }), React__default.createElement(Input$1, {
|
23180 | value: (_n = (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _m.remoteProps) == null ? void 0 : _n.label,
|
23181 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteProps.label"),
|
23182 | size: "small",
|
23183 | addonBefore: "\u6807\u7B7E"
|
23184 | }), React__default.createElement(Input$1, {
|
23185 | value: (_p = (_o = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _o.remoteProps) == null ? void 0 : _p.value,
|
23186 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteProps.value"),
|
23187 | size: "small",
|
23188 | addonBefore: "\u503C"
|
23189 | }), React__default.createElement(Input$1, {
|
23190 | value: (_r = (_q = selectWidgetItem == null ? void 0 : selectWidgetItem.remoteConfig) == null ? void 0 : _q.remoteProps) == null ? void 0 : _r.children,
|
23191 | onChange: (event) => handleChange(event.target.value, "remoteConfig.remoteProps.children"),
|
23192 | size: "small",
|
23193 | addonBefore: "\u5B50\u9009\u9879"
|
23194 | }))), React__default.createElement(Form.Item, {
|
23195 | label: "ShowCheckedStrategy"
|
23196 | }, React__default.createElement(Select$1, {
|
23197 | options: treeSelectShowCheckedStrategyOptions,
|
23198 | value: (_s = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _s.showCheckedStrategy,
|
23199 | onChange: (value) => handleChange(value, "config.showCheckedStrategy")
|
23200 | })), React__default.createElement(Form.Item, {
|
23201 | label: "\u662F\u5426\u9690\u85CF"
|
23202 | }, React__default.createElement(Switch$1, {
|
23203 | defaultChecked: (_t = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _t.hidden,
|
23204 | onChange: (checked) => handleChange(checked, "config.hidden")
|
23205 | })), React__default.createElement(Form.Item, {
|
23206 | label: "\u652F\u6301\u6E05\u9664"
|
23207 | }, React__default.createElement(Switch$1, {
|
23208 | defaultChecked: (_u = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _u.allowClear,
|
23209 | onChange: (checked) => handleChange(checked, "config.allowClear")
|
23210 | })), React__default.createElement(Form.Item, {
|
23211 | label: "\u81EA\u52A8\u83B7\u53D6\u7126\u70B9"
|
23212 | }, React__default.createElement(Switch$1, {
|
23213 | defaultChecked: (_v = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _v.autoFocus,
|
23214 | onChange: (checked) => handleChange(checked, "config.autoFocus")
|
23215 | })), React__default.createElement(Form.Item, {
|
23216 | label: "\u662F\u5426\u6709\u8FB9\u6846"
|
23217 | }, React__default.createElement(Switch$1, {
|
23218 | defaultChecked: (_w = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _w.bordered,
|
23219 | onChange: (checked) => handleChange(checked, "config.bordered")
|
23220 | })), React__default.createElement(Form.Item, {
|
23221 | label: "\u663E\u793A Checkbox"
|
23222 | }, React__default.createElement(Switch$1, {
|
23223 | defaultChecked: (_x = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _x.treeCheckable,
|
23224 | onChange: (checked) => {
|
23225 | if (checked) {
|
23226 | handleChange("array", "formItemConfig.rules[0].type");
|
23227 | }
|
23228 | handleChange(void 0, "formItemConfig.initialValue");
|
23229 | handleChange(checked, "config.multiple");
|
23230 | handleChange(checked, "config.treeCheckable");
|
23231 | }
|
23232 | })), React__default.createElement(Form.Item, {
|
23233 | label: "TreeCheckStrictly"
|
23234 | }, React__default.createElement(Switch$1, {
|
23235 | defaultChecked: (_y = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _y.treeCheckStrictly,
|
23236 | onChange: (checked) => {
|
23237 | handleChange(checked, "config.treeCheckStrictly");
|
23238 | handleChange(checked, "config.labelInValue");
|
23239 | }
|
23240 | })), React__default.createElement(Form.Item, {
|
23241 | label: "\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u6811\u8282\u70B9"
|
23242 | }, React__default.createElement(Switch$1, {
|
23243 | defaultChecked: (_z = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _z.treeDefaultExpandAll,
|
23244 | onChange: (checked) => handleChange(checked, "config.treeDefaultExpandAll")
|
23245 | })), React__default.createElement(Form.Item, {
|
23246 | label: "\u662F\u5426\u5C55\u793A\u7EBF\u6761\u6837\u5F0F"
|
23247 | }, React__default.createElement(Switch$1, {
|
23248 | defaultChecked: (_A = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _A.treeLine,
|
23249 | onChange: (checked) => handleChange(checked, "config.treeLine")
|
23250 | })), React__default.createElement(Form.Item, {
|
23251 | label: "\u662F\u5426\u5F00\u542F\u865A\u62DF\u6EDA\u52A8"
|
23252 | }, React__default.createElement(Switch$1, {
|
23253 | defaultChecked: (_B = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _B.virtual,
|
23254 | onChange: (checked) => handleChange(checked, "config.virtual")
|
23255 | })), React__default.createElement(Form.Item, {
|
23256 | label: "\u662F\u5426\u628A\u6BCF\u4E2A\u9009\u9879\u7684 label \u5305\u88C5\u5230 value \u4E2D"
|
23257 | }, React__default.createElement(Switch$1, {
|
23258 | defaultChecked: (_C = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _C.labelInValue,
|
23259 | onChange: (checked) => handleChange(checked, "config.labelInValue")
|
23260 | })), React__default.createElement(Form.Item, {
|
23261 | label: "\u662F\u5426\u652F\u6301\u591A\u9009\u8282\u70B9"
|
23262 | }, React__default.createElement(Switch$1, {
|
23263 | defaultChecked: (_D = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _D.multiple,
|
23264 | onChange: (checked) => handleChange(checked, "config.multiple")
|
23265 | })), React__default.createElement(Form.Item, {
|
23266 | label: React__default.createElement(Space$1, null, "\u662F\u5426\u663E\u793A suffixIcon", ((_E = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _E.showArrow) !== void 0 && React__default.createElement("a", {
|
23267 | href: "/#",
|
23268 | onClick: (event) => {
|
23269 | event.preventDefault();
|
23270 | handleChange(void 0, "config.showArrow");
|
23271 | }
|
23272 | }, "\u8FD8\u539F"))
|
23273 | }, React__default.createElement(Switch$1, {
|
23274 | defaultChecked: (_F = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _F.showArrow,
|
23275 | onChange: (checked) => handleChange(checked, "config.showArrow")
|
23276 | })), React__default.createElement(Form.Item, {
|
23277 | label: React__default.createElement(Space$1, null, "\u662F\u5426\u652F\u6301\u641C\u7D22\u6846", ((_G = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _G.showSearch) !== void 0 && React__default.createElement("a", {
|
23278 | href: "/#",
|
23279 | onClick: (event) => {
|
23280 | event.preventDefault();
|
23281 | handleChange(void 0, "config.showSearch");
|
23282 | }
|
23283 | }, "\u8FD8\u539F"))
|
23284 | }, React__default.createElement(Switch$1, {
|
23285 | defaultChecked: (_H = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _H.showSearch,
|
23286 | onChange: (checked) => handleChange(checked, "config.showSearch")
|
23287 | })), React__default.createElement(Form.Item, {
|
23288 | label: "\u662F\u5426\u7981\u7528"
|
23289 | }, React__default.createElement(Switch$1, {
|
23290 | defaultChecked: (_I = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _I.disabled,
|
23291 | onChange: (checked) => handleChange(checked, "config.disabled")
|
23292 | })));
|
23293 | };
|
23294 | const UploadConfig = () => {
|
23295 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
|
23296 | const { selectWidgetItem, handleChange } = useConfig();
|
23297 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
23298 | label: "\u6807\u9898"
|
23299 | }, React__default.createElement(Input$1, {
|
23300 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.label,
|
23301 | onChange: (event) => handleChange(event.target.value, "label")
|
23302 | })), React__default.createElement(Form.Item, {
|
23303 | label: "\u63A5\u53D7\u4E0A\u4F20\u7684\u6587\u4EF6\u7C7B\u578B\uFF08accept\uFF09"
|
23304 | }, React__default.createElement(Input$1, {
|
23305 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.accept,
|
23306 | onChange: (event) => handleChange(event.target.value || void 0, "config.accept")
|
23307 | })), React__default.createElement(Form.Item, {
|
23308 | label: "\u4E0A\u4F20\u7684\u5730\u5740"
|
23309 | }, React__default.createElement(Input$1, {
|
23310 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.action,
|
23311 | onChange: (event) => handleChange(event.target.value, "config.action")
|
23312 | })), React__default.createElement(Form.Item, {
|
23313 | label: "\u53D1\u5230\u540E\u53F0\u7684\u6587\u4EF6\u53C2\u6570\u540D"
|
23314 | }, React__default.createElement(Input$1, {
|
23315 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.name,
|
23316 | onChange: (event) => handleChange(event.target.value, "config.name")
|
23317 | })), React__default.createElement(Form.Item, {
|
23318 | label: "\u9650\u5236\u4E0A\u4F20\u6570\u91CF"
|
23319 | }, React__default.createElement(InputNumber$1, {
|
23320 | min: 0,
|
23321 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.maxCount,
|
23322 | onChange: (value) => handleChange(value || void 0, "config.maxCount")
|
23323 | })), React__default.createElement(Form.Item, {
|
23324 | label: "\u4E0A\u4F20\u8BF7\u6C42\u7684 http method"
|
23325 | }, React__default.createElement(Radio.Group, {
|
23326 | optionType: "button",
|
23327 | buttonStyle: "solid",
|
23328 | options: uploadRequestMethodOptions,
|
23329 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.method,
|
23330 | onChange: (event) => handleChange(event.target.value, "config.method")
|
23331 | })), React__default.createElement(Form.Item, {
|
23332 | label: "\u4E0A\u4F20\u5217\u8868\u6837\u5F0F"
|
23333 | }, React__default.createElement(Radio.Group, {
|
23334 | optionType: "button",
|
23335 | buttonStyle: "solid",
|
23336 | options: uploadListTypeOptions,
|
23337 | value: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.listType,
|
23338 | onChange: (event) => handleChange(event.target.value, "config.listType")
|
23339 | })), React__default.createElement(Form.Item, {
|
23340 | label: "\u662F\u5426\u9690\u85CF"
|
23341 | }, React__default.createElement(Switch$1, {
|
23342 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.hidden,
|
23343 | onChange: (checked) => handleChange(checked, "config.hidden")
|
23344 | })), React__default.createElement(Form.Item, {
|
23345 | label: "\u662F\u5426\u652F\u6301\u62D6\u62FD"
|
23346 | }, React__default.createElement(Switch$1, {
|
23347 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.drop,
|
23348 | onChange: (checked) => handleChange(checked, "config.drop")
|
23349 | })), React__default.createElement(Form.Item, {
|
23350 | label: "\u662F\u5426\u652F\u6301\u4E0A\u4F20\u6587\u4EF6\u5939"
|
23351 | }, React__default.createElement(Switch$1, {
|
23352 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.directory,
|
23353 | onChange: (checked) => handleChange(checked, "config.directory")
|
23354 | })), React__default.createElement(Form.Item, {
|
23355 | label: "\u662F\u5426\u652F\u6301\u591A\u9009\u6587\u4EF6"
|
23356 | }, React__default.createElement(Switch$1, {
|
23357 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.multiple,
|
23358 | onChange: (checked) => handleChange(checked, "config.multiple")
|
23359 | })), React__default.createElement(Form.Item, {
|
23360 | label: "\u70B9\u51FB\u6253\u5F00\u6587\u4EF6\u5BF9\u8BDD\u6846"
|
23361 | }, React__default.createElement(Switch$1, {
|
23362 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.openFileDialogOnClick,
|
23363 | onChange: (checked) => handleChange(checked, "config.openFileDialogOnClick")
|
23364 | })), React__default.createElement(Form.Item, {
|
23365 | label: "\u662F\u5426\u5C55\u793A\u6587\u4EF6\u5217\u8868"
|
23366 | }, React__default.createElement(Switch$1, {
|
23367 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.showUploadList,
|
23368 | onChange: (checked) => handleChange(checked, "config.showUploadList")
|
23369 | })), React__default.createElement(Form.Item, {
|
23370 | label: "\u4E0A\u4F20\u8BF7\u6C42\u65F6\u662F\u5426\u643A\u5E26 cookie"
|
23371 | }, React__default.createElement(Switch$1, {
|
23372 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.withCredentials,
|
23373 | onChange: (checked) => handleChange(checked, "config.withCredentials")
|
23374 | })), React__default.createElement(Form.Item, {
|
23375 | label: "\u662F\u5426\u7981\u7528"
|
23376 | }, React__default.createElement(Switch$1, {
|
23377 | defaultChecked: (_n = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _n.disabled,
|
23378 | onChange: (checked) => handleChange(checked, "config.disabled")
|
23379 | })));
|
23380 | };
|
23381 | const CalendarConfig = () => {
|
23382 | var _a, _b, _c;
|
23383 | const { selectWidgetItem, handleChange } = useConfig();
|
23384 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
23385 | label: "\u9ED8\u8BA4\u65E5\u671F"
|
23386 | }, React__default.createElement(DatePicker$1, {
|
23387 | value: ((_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.defaultValue) && moment$1(selectWidgetItem.config.defaultValue),
|
23388 | onChange: (_, dateString) => handleChange(dateString, "config.defaultValue")
|
23389 | })), React__default.createElement(Form.Item, {
|
23390 | label: "\u662F\u5426\u9690\u85CF"
|
23391 | }, React__default.createElement(Switch$1, {
|
23392 | defaultChecked: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.hidden,
|
23393 | onChange: (checked) => handleChange(checked, "config.hidden")
|
23394 | })), React__default.createElement(Form.Item, {
|
23395 | label: "\u662F\u5426\u5168\u5C4F\u663E\u793A"
|
23396 | }, React__default.createElement(Switch$1, {
|
23397 | defaultChecked: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.fullscreen,
|
23398 | onChange: (checked) => handleChange(checked, "config.fullscreen")
|
23399 | })));
|
23400 | };
|
23401 | const ImageConfig = () => {
|
23402 | var _a, _b, _c, _d, _e, _f;
|
23403 | const { selectWidgetItem, handleChange } = useConfig();
|
23404 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
23405 | label: "\u56FE\u7247\u5730\u5740"
|
23406 | }, React__default.createElement(Input$1, {
|
23407 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.src,
|
23408 | onChange: (event) => handleChange(event.target.value, "config.src")
|
23409 | })), React__default.createElement(Form.Item, {
|
23410 | label: "\u52A0\u8F7D\u5931\u8D25\u5BB9\u9519\u5730\u5740"
|
23411 | }, React__default.createElement(Input$1, {
|
23412 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.fallback,
|
23413 | onChange: (event) => handleChange(event.target.value, "config.fallback")
|
23414 | })), React__default.createElement(Form.Item, {
|
23415 | label: "\u56FE\u50CF\u63CF\u8FF0"
|
23416 | }, React__default.createElement(Input$1, {
|
23417 | value: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.alt,
|
23418 | onChange: (event) => handleChange(event.target.value, "config.alt")
|
23419 | })), React__default.createElement(Form.Item, {
|
23420 | label: "\u56FE\u50CF\u5BBD\u5EA6"
|
23421 | }, React__default.createElement(InputNumber$1, {
|
23422 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.width,
|
23423 | onChange: (value) => handleChange(value, "config.width")
|
23424 | })), React__default.createElement(Form.Item, {
|
23425 | label: "\u56FE\u50CF\u9AD8\u5EA6"
|
23426 | }, React__default.createElement(InputNumber$1, {
|
23427 | value: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.height,
|
23428 | onChange: (value) => handleChange(value, "config.height")
|
23429 | })), React__default.createElement(Form.Item, {
|
23430 | label: "\u662F\u5426\u9690\u85CF"
|
23431 | }, React__default.createElement(Switch$1, {
|
23432 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.hidden,
|
23433 | onChange: (checked) => handleChange(checked, "config.hidden")
|
23434 | })));
|
23435 | };
|
23436 | const TableConfig = () => {
|
23437 | var _a, _b, _c, _d, _e, _f;
|
23438 | const { selectWidgetItem, handleChange } = useConfig();
|
23439 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
23440 | label: "\u8868\u683CKey\u503C"
|
23441 | }, React__default.createElement(Input$1, {
|
23442 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.rowKey,
|
23443 | onChange: (event) => handleChange(event.target.value, "config.rowKey")
|
23444 | })), React__default.createElement(Form.Item, {
|
23445 | label: "\u8868\u683C\u5927\u5C0F"
|
23446 | }, React__default.createElement(Radio.Group, {
|
23447 | optionType: "button",
|
23448 | buttonStyle: "solid",
|
23449 | options: tableSizeOptions,
|
23450 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.size,
|
23451 | onChange: (event) => handleChange(event.target.value, "config.size")
|
23452 | })), React__default.createElement(Form.Item, {
|
23453 | label: "\u662F\u5426\u9690\u85CF"
|
23454 | }, React__default.createElement(Switch$1, {
|
23455 | defaultChecked: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.hidden,
|
23456 | onChange: (checked) => handleChange(checked, "config.hidden")
|
23457 | })), React__default.createElement(Form.Item, {
|
23458 | label: "\u662F\u5426\u5C55\u793A\u5916\u8FB9\u6846\u548C\u5217\u8FB9\u6846"
|
23459 | }, React__default.createElement(Switch$1, {
|
23460 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.bordered,
|
23461 | onChange: (checked) => handleChange(checked, "config.bordered")
|
23462 | })), React__default.createElement(Form.Item, {
|
23463 | label: "\u662F\u5426\u663E\u793A\u8868\u5934"
|
23464 | }, React__default.createElement(Switch$1, {
|
23465 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.showHeader,
|
23466 | onChange: (checked) => handleChange(checked, "config.showHeader")
|
23467 | })), React__default.createElement(Form.Item, {
|
23468 | label: "\u8868\u5934\u662F\u5426\u663E\u793A\u4E0B\u4E00\u6B21\u6392\u5E8F\u7684 tooltip \u63D0\u793A"
|
23469 | }, React__default.createElement(Switch$1, {
|
23470 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.showSorterTooltip,
|
23471 | onChange: (checked) => handleChange(checked, "config.showSorterTooltip")
|
23472 | })));
|
23473 | };
|
23474 | const TreeConfig = () => {
|
23475 | var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m;
|
23476 | const { selectWidgetItem, handleChange } = useConfig();
|
23477 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
23478 | label: "\u662F\u5426\u9690\u85CF"
|
23479 | }, React__default.createElement(Switch$1, {
|
23480 | defaultChecked: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.hidden,
|
23481 | onChange: (checked) => handleChange(checked, "config.hidden")
|
23482 | })), React__default.createElement(Form.Item, {
|
23483 | label: "\u662F\u5426\u81EA\u52A8\u5C55\u5F00\u7236\u8282\u70B9"
|
23484 | }, React__default.createElement(Switch$1, {
|
23485 | defaultChecked: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.autoExpandParent,
|
23486 | onChange: (checked) => handleChange(checked, "config.autoExpandParent")
|
23487 | })), React__default.createElement(Form.Item, {
|
23488 | label: "\u662F\u5426\u8282\u70B9\u5360\u636E\u4E00\u884C"
|
23489 | }, React__default.createElement(Switch$1, {
|
23490 | defaultChecked: (_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.blockNode,
|
23491 | onChange: (checked) => handleChange(checked, "config.blockNode")
|
23492 | })), React__default.createElement(Form.Item, {
|
23493 | label: "\u8282\u70B9\u524D\u6DFB\u52A0 Checkbox \u590D\u9009\u6846"
|
23494 | }, React__default.createElement(Switch$1, {
|
23495 | defaultChecked: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.checkable,
|
23496 | onChange: (checked) => handleChange(checked, "config.checkable")
|
23497 | })), React__default.createElement(Form.Item, {
|
23498 | label: "checkable \u72B6\u6001\u4E0B\u8282\u70B9\u9009\u62E9\u5B8C\u5168\u53D7\u63A7"
|
23499 | }, React__default.createElement(Switch$1, {
|
23500 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.checkStrictly,
|
23501 | onChange: (checked) => handleChange(checked, "config.checkStrictly")
|
23502 | })), React__default.createElement(Form.Item, {
|
23503 | label: "\u9ED8\u8BA4\u5C55\u5F00\u6240\u6709\u6811\u8282\u70B9"
|
23504 | }, React__default.createElement(Switch$1, {
|
23505 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.defaultExpandAll,
|
23506 | onChange: (checked) => handleChange(checked, "config.defaultExpandAll")
|
23507 | })), React__default.createElement(Form.Item, {
|
23508 | label: "\u9ED8\u8BA4\u5C55\u5F00\u7236\u8282\u70B9"
|
23509 | }, React__default.createElement(Switch$1, {
|
23510 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.defaultExpandParent,
|
23511 | onChange: (checked) => handleChange(checked, "config.defaultExpandParent")
|
23512 | })), React__default.createElement(Form.Item, {
|
23513 | label: "\u662F\u5426\u7981\u7528"
|
23514 | }, React__default.createElement(Switch$1, {
|
23515 | defaultChecked: (_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.disabled,
|
23516 | onChange: (checked) => handleChange(checked, "config.disabled")
|
23517 | })), React__default.createElement(Form.Item, {
|
23518 | label: "\u662F\u5426\u53EF\u62D6\u62FD"
|
23519 | }, React__default.createElement(Switch$1, {
|
23520 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.draggable,
|
23521 | onChange: (checked) => handleChange(checked, "config.draggable")
|
23522 | })), React__default.createElement(Form.Item, {
|
23523 | label: "\u662F\u5426\u591A\u9009"
|
23524 | }, React__default.createElement(Switch$1, {
|
23525 | defaultChecked: (_j = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _j.multiple,
|
23526 | onChange: (checked) => handleChange(checked, "config.multiple")
|
23527 | })), React__default.createElement(Form.Item, {
|
23528 | label: "\u662F\u5426\u53EF\u9009\u4E2D"
|
23529 | }, React__default.createElement(Switch$1, {
|
23530 | defaultChecked: (_k = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _k.selectable,
|
23531 | onChange: (checked) => handleChange(checked, "config.selectable")
|
23532 | })), React__default.createElement(Form.Item, {
|
23533 | label: "\u662F\u5426\u5C55\u793A\u8FDE\u63A5\u7EBF"
|
23534 | }, React__default.createElement(Switch$1, {
|
23535 | defaultChecked: (_l = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _l.showLine,
|
23536 | onChange: (checked) => handleChange(checked, "config.showLine")
|
23537 | })), React__default.createElement(Form.Item, {
|
23538 | label: "\u662F\u5426\u542F\u7528\u865A\u62DF\u6EDA\u52A8"
|
23539 | }, React__default.createElement(Switch$1, {
|
23540 | defaultChecked: (_m = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _m.virtual,
|
23541 | onChange: (checked) => handleChange(checked, "config.virtual")
|
23542 | })));
|
23543 | };
|
23544 | const AlertConfig = () => {
|
23545 | var _a, _b, _c, _d, _e, _f, _g, _h, _i;
|
23546 | const { selectWidgetItem, handleChange } = useConfig();
|
23547 | return React__default.createElement(React__default.Fragment, null, React__default.createElement(Form.Item, {
|
23548 | label: "\u8B66\u544A\u63D0\u793A\u5185\u5BB9"
|
23549 | }, React__default.createElement(Input$1, {
|
23550 | value: (_a = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _a.message,
|
23551 | onChange: (event) => handleChange(event.target.value, "config.message")
|
23552 | })), React__default.createElement(Form.Item, {
|
23553 | label: "\u8B66\u544A\u63D0\u793A\u7684\u8F85\u52A9\u6027\u6587\u5B57\u4ECB\u7ECD"
|
23554 | }, React__default.createElement(Input$1, {
|
23555 | value: (_b = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _b.description,
|
23556 | onChange: (event) => handleChange(event.target.value, "config.description")
|
23557 | })), React__default.createElement(Form.Item, {
|
23558 | label: React__default.createElement(Space$1, null, "\u8B66\u544A\u63D0\u793A\u6837\u5F0F", ((_c = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _c.type) && React__default.createElement("a", {
|
23559 | href: "/#",
|
23560 | onClick: (event) => {
|
23561 | event.preventDefault();
|
23562 | handleChange(void 0, "config.type");
|
23563 | }
|
23564 | }, "\u8FD8\u539F"))
|
23565 | }, React__default.createElement(Select$1, {
|
23566 | options: alertTypeOptions,
|
23567 | value: (_d = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _d.type,
|
23568 | onChange: (value) => handleChange(value, "config.type")
|
23569 | })), React__default.createElement(Form.Item, {
|
23570 | label: "\u662F\u5426\u9690\u85CF"
|
23571 | }, React__default.createElement(Switch$1, {
|
23572 | defaultChecked: (_e = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _e.hidden,
|
23573 | onChange: (checked) => handleChange(checked, "config.hidden")
|
23574 | })), React__default.createElement(Form.Item, {
|
23575 | label: "\u662F\u5426\u7528\u4F5C\u9876\u90E8\u516C\u544A"
|
23576 | }, React__default.createElement(Switch$1, {
|
23577 | defaultChecked: (_f = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _f.banner,
|
23578 | onChange: (checked) => handleChange(checked, "config.banner")
|
23579 | })), React__default.createElement(Form.Item, {
|
23580 | label: "\u9ED8\u8BA4\u4E0D\u663E\u793A\u5173\u95ED\u6309\u94AE"
|
23581 | }, React__default.createElement(Switch$1, {
|
23582 | defaultChecked: (_g = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _g.closable,
|
23583 | onChange: (checked) => handleChange(checked, "config.closable")
|
23584 | })), React__default.createElement(Form.Item, {
|
23585 | label: React__default.createElement(Space$1, null, "\u662F\u5426\u663E\u793A\u8F85\u52A9\u56FE\u6807", ((_h = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _h.type) && React__default.createElement("a", {
|
23586 | href: "/#",
|
23587 | onClick: (event) => {
|
23588 | event.preventDefault();
|
23589 | handleChange(void 0, "config.showIcon");
|
23590 | }
|
23591 | }, "\u8FD8\u539F"))
|
23592 | }, React__default.createElement(Switch$1, {
|
23593 | defaultChecked: (_i = selectWidgetItem == null ? void 0 : selectWidgetItem.config) == null ? void 0 : _i.showIcon,
|
23594 | onChange: (checked) => handleChange(checked, "config.showIcon")
|
23595 | })));
|
23596 | };
|
23597 | const WidgetConfig = () => {
|
23598 | const { selectWidgetItem, handleChange } = useConfig();
|
23599 | return React__default.createElement(React__default.Fragment, null, useMemo(() => React__default.createElement(Form, {
|
23600 | layout: "vertical"
|
23601 | }, (selectWidgetItem == null ? void 0 : selectWidgetItem.key) && React__default.createElement(Form.Item, {
|
23602 | label: "Key"
|
23603 | }, React__default.createElement(Input$1, {
|
23604 | value: selectWidgetItem == null ? void 0 : selectWidgetItem.key,
|
23605 | onChange: (event) => handleChange(event.target.value, "key")
|
23606 | })), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Button" && React__default.createElement(ButtonConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Icon" && React__default.createElement(IconConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Text" && React__default.createElement(TextConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Title" && React__default.createElement(TitleConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Paragraph" && React__default.createElement(ParagraphConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Divider" && React__default.createElement(DividerConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Row" && React__default.createElement(RowConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Col" && React__default.createElement(ColConfig, null), ((selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Layout" || (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Header" || (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Content" || (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Footer") && React__default.createElement(LayoutConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Sider" && React__default.createElement(SiderConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Space" && React__default.createElement(SpaceConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "AutoComplete" && React__default.createElement(AutoCompleteConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Cascader" && React__default.createElement(CascaderConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Checkbox" && React__default.createElement(CheckboxConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "CheckboxGroup" && React__default.createElement(CheckboxGroupConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "DatePicker" && React__default.createElement(DatePickerConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "RangePicker" && React__default.createElement(RangePickerConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Input" && React__default.createElement(InputConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "TextArea" && React__default.createElement(TextAreaConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Search" && React__default.createElement(SearchConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Password" && React__default.createElement(PasswordConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "InputNumber" && React__default.createElement(InputNumberConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Mentions" && React__default.createElement(MentionsConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "RadioGroup" && React__default.createElement(RadioGroupConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Rate" && React__default.createElement(RateConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Select" && React__default.createElement(SelectConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Slider" && React__default.createElement(SliderConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Switch" && React__default.createElement(SwitchConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "TimePicker" && React__default.createElement(TimePickerConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "TreeSelect" && React__default.createElement(TreeSelectConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Upload" && React__default.createElement(UploadConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Calendar" && React__default.createElement(CalendarConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Image" && React__default.createElement(ImageConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Table" && React__default.createElement(TableConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Tree" && React__default.createElement(TreeConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.type) === "Alert" && React__default.createElement(AlertConfig, null), (selectWidgetItem == null ? void 0 : selectWidgetItem.formItemConfig) && React__default.createElement(React__default.Fragment, null, React__default.createElement(FormItemLayoutConfig, null), React__default.createElement(ValidateRuleConfig, null))), [selectWidgetItem]));
|
23607 | };
|
23608 | const loadJsLinkDebouncedFunc = debounce(loadJsLink, 1e3);
|
23609 | const GlobalConfig = () => {
|
23610 | const {
|
23611 | state: { iconSrc, globalConfig, formConfig },
|
23612 | dispatch
|
23613 | } = useContext(DesignContext);
|
23614 | const handleGlobalConfigChange = (fieldName, value) => {
|
23615 | const action = {
|
23616 | type: ActionType.SET_GLOBAL_CONFIG,
|
23617 | payload: __spreadProps(__spreadValues({}, globalConfig), {
|
23618 | [fieldName]: value
|
23619 | })
|
23620 | };
|
23621 | dispatch(action);
|
23622 | };
|
23623 | const handleFormConfigChange = (fieldName, value) => {
|
23624 | const action = {
|
23625 | type: ActionType.SET_FORM_CONFIG,
|
23626 | payload: __spreadProps(__spreadValues({}, formConfig), {
|
23627 | [fieldName]: value
|
23628 | })
|
23629 | };
|
23630 | dispatch(action);
|
23631 | };
|
23632 | const handleLocaleChange = (value, option2) => {
|
23633 | handleGlobalConfigChange("locale", option2.locale);
|
23634 | const locale2 = value.startsWith("zh") ? value : value.split("-")[0];
|
23635 | changeMomentLocale(locale2);
|
23636 | };
|
23637 | const handleIconSrcChange = (value) => {
|
23638 | loadJsLinkDebouncedFunc(value);
|
23639 | const action = {
|
23640 | type: ActionType.SET_ICON_SRC,
|
23641 | payload: value
|
23642 | };
|
23643 | dispatch(action);
|
23644 | };
|
23645 | return React__default.createElement(React__default.Fragment, null, useMemo(() => {
|
23646 | var _a, _b, _c, _d, _e;
|
23647 | return React__default.createElement(Form, {
|
23648 | layout: "vertical"
|
23649 | }, React__default.createElement(Form.Item, {
|
23650 | label: "\u7EC4\u4EF6\u5C3A\u5BF8"
|
23651 | }, React__default.createElement(Radio.Group, {
|
23652 | optionType: "button",
|
23653 | buttonStyle: "solid",
|
23654 | options: sizeOptions,
|
23655 | value: globalConfig.componentSize,
|
23656 | onChange: (event) => handleGlobalConfigChange("componentSize", event.target.value)
|
23657 | })), React__default.createElement(Form.Item, {
|
23658 | label: "\u6587\u672C\u65B9\u5411"
|
23659 | }, React__default.createElement(Radio.Group, {
|
23660 | optionType: "button",
|
23661 | buttonStyle: "solid",
|
23662 | options: textDirectionOptions,
|
23663 | value: globalConfig.direction,
|
23664 | onChange: (event) => handleGlobalConfigChange("direction", event.target.value)
|
23665 | })), React__default.createElement(Form.Item, {
|
23666 | label: "\u56FD\u9645\u5316"
|
23667 | }, React__default.createElement(Select$1, {
|
23668 | options: localeOptions,
|
23669 | value: (_a = globalConfig.locale) == null ? void 0 : _a.locale,
|
23670 | onChange: handleLocaleChange
|
23671 | })), React__default.createElement(Form.Item, {
|
23672 | label: "Icon\u5730\u5740"
|
23673 | }, React__default.createElement(Input$1, {
|
23674 | placeholder: "Iconfont Symbol",
|
23675 | value: iconSrc,
|
23676 | onChange: (event) => handleIconSrcChange(event.target.value)
|
23677 | })), React__default.createElement("h4", null, "\u8868\u5355\u914D\u7F6E"), React__default.createElement(Form.Item, {
|
23678 | label: "\u8868\u5355\u5E03\u5C40"
|
23679 | }, React__default.createElement(Radio.Group, {
|
23680 | optionType: "button",
|
23681 | buttonStyle: "solid",
|
23682 | options: layoutOptions,
|
23683 | value: formConfig.layout,
|
23684 | onChange: (event) => handleFormConfigChange("layout", event.target.value)
|
23685 | })), React__default.createElement(Form.Item, {
|
23686 | label: "\u6807\u7B7E\u5BF9\u9F50\u65B9\u5F0F"
|
23687 | }, React__default.createElement(Radio.Group, {
|
23688 | optionType: "button",
|
23689 | buttonStyle: "solid",
|
23690 | options: labelAlignOptions,
|
23691 | value: formConfig.labelAlign,
|
23692 | onChange: (event) => handleFormConfigChange("labelAlign", event.target.value)
|
23693 | })), React__default.createElement(Form.Item, {
|
23694 | label: "\u662F\u5426\u663E\u793Alabel\u540E\u9762\u7684\u5192\u53F7"
|
23695 | }, React__default.createElement(Switch$1, {
|
23696 | defaultChecked: formConfig.colon,
|
23697 | onChange: (checked) => handleFormConfigChange("colon", checked)
|
23698 | })), React__default.createElement(Form.Item, {
|
23699 | label: "\u6807\u7B7E\u6587\u672C\u6362\u884C\u65B9\u5F0F"
|
23700 | }, React__default.createElement(Switch$1, {
|
23701 | defaultChecked: formConfig.labelWrap,
|
23702 | onChange: (checked) => handleFormConfigChange("labelWrap", checked)
|
23703 | })), React__default.createElement(Form.Item, {
|
23704 | label: "\u6807\u7B7E\u5E03\u5C40"
|
23705 | }, React__default.createElement("span", {
|
23706 | className: "label"
|
23707 | }, "span"), React__default.createElement(InputNumber$1, {
|
23708 | min: 0,
|
23709 | value: (_b = formConfig.labelCol) == null ? void 0 : _b.span,
|
23710 | onChange: (value) => {
|
23711 | formConfig.labelCol.span = value;
|
23712 | handleFormConfigChange("labelCol", formConfig.labelCol);
|
23713 | }
|
23714 | }), React__default.createElement("span", {
|
23715 | className: "label"
|
23716 | }, "offset"), React__default.createElement(InputNumber$1, {
|
23717 | min: 0,
|
23718 | value: (_c = formConfig.labelCol) == null ? void 0 : _c.offset,
|
23719 | onChange: (value) => {
|
23720 | formConfig.labelCol.offset = value;
|
23721 | handleFormConfigChange("labelCol", formConfig.labelCol);
|
23722 | }
|
23723 | })), React__default.createElement(Form.Item, {
|
23724 | label: "\u8F93\u5165\u63A7\u4EF6\u5E03\u5C40"
|
23725 | }, React__default.createElement("span", {
|
23726 | className: "label"
|
23727 | }, "span"), React__default.createElement(InputNumber$1, {
|
23728 | min: 0,
|
23729 | value: (_d = formConfig.wrapperCol) == null ? void 0 : _d.span,
|
23730 | onChange: (value) => {
|
23731 | formConfig.wrapperCol.span = value;
|
23732 | handleFormConfigChange("wrapperCol", formConfig.wrapperCol);
|
23733 | }
|
23734 | }), React__default.createElement("span", {
|
23735 | className: "label"
|
23736 | }, "offset"), React__default.createElement(InputNumber$1, {
|
23737 | min: 0,
|
23738 | value: (_e = formConfig.wrapperCol) == null ? void 0 : _e.offset,
|
23739 | onChange: (value) => {
|
23740 | formConfig.wrapperCol.offset = value;
|
23741 | handleFormConfigChange("wrapperCol", formConfig.wrapperCol);
|
23742 | }
|
23743 | })));
|
23744 | }, [globalConfig, formConfig]));
|
23745 | };
|
23746 | var Alert = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQ0ODA2OTA4MTcwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU4OTQiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMTkzIDc5NmMwIDE3LjcgMTQuMyAzMiAzMiAzMmg1NzRjMTcuNyAwIDMyLTE0LjMgMzItMzJWNTYzYzAtMTc2LjItMTQyLjgtMzE5LTMxOS0zMTlTMTkzIDM4Ni44IDE5MyA1NjN2MjMzeiBtNzItMjMzYzAtMTM2LjQgMTEwLjYtMjQ3IDI0Ny0yNDdzMjQ3IDExMC42IDI0NyAyNDd2MTkzSDQwNFY1ODVjMC01LjUtNC41LTEwLTEwLTEwaC00NGMtNS41IDAtMTAgNC41LTEwIDEwdjE3MWgtNzVWNTYzek0yMTYuOSAzMTAuNWwzOS42LTM5LjZjMy4xLTMuMSAzLjEtOC4yIDAtMTEuM2wtNjcuOS02Ny45Yy0zLjEtMy4xLTguMi0zLjEtMTEuMyAwbC0zOS42IDM5LjZjLTMuMSAzLjEtMy4xIDguMiAwIDExLjNsNjcuOSA2Ny45YzMuMSAzLjEgOC4xIDMuMSAxMS4zIDB6TTg4Ni41IDIzMS4zbC0zOS42LTM5LjZjLTMuMS0zLjEtOC4yLTMuMS0xMS4zIDBsLTY3LjkgNjcuOWMtMy4xIDMuMS0zLjEgOC4yIDAgMTEuM2wzOS42IDM5LjZjMy4xIDMuMSA4LjIgMy4xIDExLjMgMGw2Ny45LTY3LjljMy4xLTMuMiAzLjEtOC4yIDAtMTEuM3pNODMyIDg5MkgxOTJjLTE3LjcgMC0zMiAxNC4zLTMyIDMydjI0YzAgNC40IDMuNiA4IDggOGg2ODhjNC40IDAgOC0zLjYgOC04di0yNGMwLTE3LjctMTQuMy0zMi0zMi0zMnpNNDg0IDE4MGg1NmM0LjQgMCA4LTMuNiA4LThWNzZjMC00LjQtMy42LTgtOC04aC01NmMtNC40IDAtOCAzLjYtOCA4djk2YzAgNC40IDMuNiA4IDggOHoiIHAtaWQ9IjU4OTUiPjwvcGF0aD48L3N2Zz4=";
|
23747 | var __glob_0_0 = Object.freeze({
|
23748 | __proto__: null,
|
23749 | [Symbol.toStringTag]: "Module",
|
23750 | "default": Alert
|
23751 | });
|
23752 | var AutoComplete = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQxNTM3Mzg3NDIyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjM4MDgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMTU4LjE0NCAwQTE1OC4zMDQgMTU4LjMwNCAwIDAgMCAwIDE1OC4xNDRhMTU4LjMwNCAxNTguMzA0IDAgMCAwIDE1OC4xNDQgMTU4LjExMiAxNTguMzA0IDE1OC4zMDQgMCAwIDAgMTU4LjExMi0xNTguMTEyQTE1OC4zMDQgMTU4LjMwNCAwIDAgMCAxNTguMTQ0IDB6IG0wIDI4My4xMDRhMTI1LjEyIDEyNS4xMiAwIDAgMS0xMjQuOTYtMTI0Ljk2IDEyNS4xMiAxMjUuMTIgMCAwIDEgMTI0Ljk2LTEyNC45NiAxMjUuMTIgMTI1LjEyIDAgMCAxIDEyNC45NiAxMjQuOTYgMTI1LjEyIDEyNS4xMiAwIDAgMS0xMjQuOTYgMTI0Ljk2ek0xNTguMTQ0IDM1My44NTZBMTU4LjMwNCAxNTguMzA0IDAgMCAwIDAgNTEyYTE1OC4zMDQgMTU4LjMwNCAwIDAgMCAxNTguMTQ0IDE1OC4xNDRBMTU4LjMwNCAxNTguMzA0IDAgMCAwIDMxNi4yNTYgNTEyYTE1OC4zMDQgMTU4LjMwNCAwIDAgMC0xNTguMTEyLTE1OC4xNDR6IG0wIDI4My4xMDRBMTI1LjEyIDEyNS4xMiAwIDAgMSAzMy4xODQgNTEyYTEyNS4xMiAxMjUuMTIgMCAwIDEgMTI0Ljk2LTEyNC45NkExMjUuMTIgMTI1LjEyIDAgMCAxIDI4My4xMDQgNTEyYTEyNS4xMiAxMjUuMTIgMCAwIDEtMTI0Ljk2IDEyNC45NnpNMTU4LjE0NCA3MDcuNzQ0QTE1OC4zMDQgMTU4LjMwNCAwIDAgMCAwIDg2NS44NTYgMTU4LjMwNCAxNTguMzA0IDAgMCAwIDE1OC4xNDQgMTAyNGExNTguMzA0IDE1OC4zMDQgMCAwIDAgMTU4LjExMi0xNTguMTQ0IDE1OC4zMDQgMTU4LjMwNCAwIDAgMC0xNTguMTEyLTE1OC4xMTJ6IG0wIDI4My4wNzJhMTI1LjEyIDEyNS4xMiAwIDAgMS0xMjQuOTYtMTI0Ljk2IDEyNS4xMiAxMjUuMTIgMCAwIDEgMTI0Ljk2LTEyNC45NiAxMjUuMTIgMTI1LjEyIDAgMCAxIDEyNC45NiAxMjQuOTYgMTI1LjEyIDEyNS4xMiAwIDAgMS0xMjQuOTYgMTI0Ljk2eiIgcC1pZD0iMzgwOSI+PC9wYXRoPjxwYXRoIGQ9Ik0xOTkuNDg4IDExMS4wNEwxNDAuNDQ4IDE3MC4wMTZsLTIzLjY4LTIzLjY0OGExNi41NzYgMTYuNTc2IDAgMCAwLTIzLjQ1NiAyMy40NTZsMzUuMzkyIDM1LjM5MmExNi41NDQgMTYuNTQ0IDAgMCAwIDIzLjQ1NiAwbDcwLjc4NC03MC43ODRhMTYuNTc2IDE2LjU3NiAwIDEgMC0yMy40NTYtMjMuNDU2ek0xOTkuNDg4IDQ2NC44OTZsLTU5LjA0IDU5LjA0LTIzLjY4LTIzLjY4YTE2LjU3NiAxNi41NzYgMCAwIDAtMjMuNDU2IDIzLjQ4OGwzNS4zOTIgMzUuMzZhMTYuNTQ0IDE2LjU0NCAwIDAgMCAyMy40NTYgMGw3MC43ODQtNzAuNzUyYTE2LjU3NiAxNi41NzYgMCAxIDAtMjMuNDU2LTIzLjQ1NnpNMzg4LjE2IDEyMS42MzJoMzE4LjQ2NGExNi41NzYgMTYuNTc2IDAgMSAwIDAtMzMuMTUySDM4OC4xNmExNi41NzYgMTYuNTc2IDAgMSAwIDAgMzMuMTUyek0zODguMTYgMjI3LjgwOGg2MTkuMjY0YTE2LjU3NiAxNi41NzYgMCAxIDAgMC0zMy4xODRIMzg4LjE2YTE2LjU3NiAxNi41NzYgMCAxIDAgMCAzMy4xODR6TTM4OC4xNiA0NzUuNTJoMzE4LjQ2NGExNi41NzYgMTYuNTc2IDAgMSAwIDAtMzMuMTg0SDM4OC4xNmExNi41NzYgMTYuNTc2IDAgMSAwIDAgMzMuMTg0ek0xMDA3LjQyNCA1NDguNDhIMzg4LjE2YTE2LjU3NiAxNi41NzYgMCAxIDAgMCAzMy4xODRoNjE5LjI2NGExNi41NzYgMTYuNTc2IDAgMSAwIDAtMzMuMTg0ek0zODguMTYgODI5LjM3NmgzMTguNDY0YTE2LjU3NiAxNi41NzYgMCAxIDAgMC0zMy4xODRIMzg4LjE2YTE2LjU3NiAxNi41NzYgMCAxIDAgMCAzMy4xODR6TTEwMDcuNDI0IDkwMi4zNjhIMzg4LjE2YTE2LjU3NiAxNi41NzYgMCAxIDAgMCAzMy4xNTJoNjE5LjI2NGExNi41NzYgMTYuNTc2IDAgMSAwIDAtMzMuMTUyeiIgcC1pZD0iMzgxMCI+PC9wYXRoPjwvc3ZnPg==";
|
23753 | var __glob_0_1 = Object.freeze({
|
23754 | __proto__: null,
|
23755 | [Symbol.toStringTag]: "Module",
|
23756 | "default": AutoComplete
|
23757 | });
|
23758 | var Button = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMwNTcxMzI4NjAzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI3OTAzIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTgxOS4yIDc4NS4wNjY2NjdIMjA0LjhhMTM2LjUzMzMzMyAxMzYuNTMzMzMzIDAgMCAxLTEzNi41MzMzMzMtMTM2LjUzMzMzNHYtMjczLjA2NjY2NmExMzYuNTMzMzMzIDEzNi41MzMzMzMgMCAwIDEgMTM2LjUzMzMzMy0xMzYuNTMzMzM0aDYxNC40YTEzNi41MzMzMzMgMTM2LjUzMzMzMyAwIDAgMSAxMzYuNTMzMzMzIDEzNi41MzMzMzR2MjczLjA2NjY2NmExMzYuNTMzMzMzIDEzNi41MzMzMzMgMCAwIDEtMTM2LjUzMzMzMyAxMzYuNTMzMzM0ek0yMDQuOCAzMDcuMmE2OC4yNjY2NjcgNjguMjY2NjY3IDAgMCAwLTY4LjI2NjY2NyA2OC4yNjY2Njd2MjczLjA2NjY2NmE2OC4yNjY2NjcgNjguMjY2NjY3IDAgMCAwIDY4LjI2NjY2NyA2OC4yNjY2NjdoNjE0LjRhNjguMjY2NjY3IDY4LjI2NjY2NyAwIDAgMCA2OC4yNjY2NjctNjguMjY2NjY3di0yNzMuMDY2NjY2YTY4LjI2NjY2NyA2OC4yNjY2NjcgMCAwIDAtNjguMjY2NjY3LTY4LjI2NjY2N3oiIHAtaWQ9IjI3OTA0Ij48L3BhdGg+PHBhdGggZD0iTTY4Mi42NjY2NjcgNTQ2LjEzMzMzM0gzNDEuMzMzMzMzYTM0LjEzMzMzMyAzNC4xMzMzMzMgMCAwIDEgMC02OC4yNjY2NjZoMzQxLjMzMzMzNGEzNC4xMzMzMzMgMzQuMTMzMzMzIDAgMCAxIDAgNjguMjY2NjY2eiIgcC1pZD0iMjc5MDUiPjwvcGF0aD48L3N2Zz4=";
|
23759 | var __glob_0_2 = Object.freeze({
|
23760 | __proto__: null,
|
23761 | [Symbol.toStringTag]: "Module",
|
23762 | "default": Button
|
23763 | });
|
23764 | var Calendar = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQ0MjE5ODA2OTM1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjMzMDkiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMTI4LjE5NDc2NCA5MjkuNDQxNDQyQzg1Ljc0MjI4OCA5MjkuNDQxNDQyIDUxLjIgODk0LjQwODkzNCA1MS4yIDg1MS40NzE5NTFMNTEuMiAxNTEuMDYzMDYzIDI1LjYgMTc3LjAwOTAwOSA4OTYuMTMxOTk4IDE3Ny4wMDkwMDlDOTM4LjM1OTYyIDE3Ny4wMDkwMDkgOTcyLjggMjExLjk5NDY2NSA5NzIuOCAyNTQuNzQzMzI0TDk3Mi44IDgzOC42MzA2M0M5NzIuOCA4NTIuOTYwMTgxIDk4NC4yNjE1MSA4NjQuNTc2NTc2IDk5OC40IDg2NC41NzY1NzYgMTAxMi41Mzg0OSA4NjQuNTc2NTc2IDEwMjQgODUyLjk2MDE4MSAxMDI0IDgzOC42MzA2M0wxMDI0IDI1NC43NDMzMjRDMTAyNCAxODMuMzYyMDc4IDk2Ni42NjI4MjUgMTI1LjExNzExNyA4OTYuMTMxOTk4IDEyNS4xMTcxMTdMMjUuNiAxMjUuMTE3MTE3QzExLjQ2MTUxIDEyNS4xMTcxMTcgMCAxMzYuNzMzNTEzIDAgMTUxLjA2MzA2M0wwIDg1MS40NzE5NTFDMCA5MjMuMDYwMjY3IDU3LjQ1NzYzNyA5ODEuMzMzMzMzIDEyOC4xOTQ3NjQgOTgxLjMzMzMzM0w4ODMuMiA5ODEuMzMzMzMzQzg5Ny4zMzg0OSA5ODEuMzMzMzMzIDkwOC44IDk2OS43MTY5MzkgOTA4LjggOTU1LjM4NzM4OCA5MDguOCA5NDEuMDU3ODM3IDg5Ny4zMzg0OSA5MjkuNDQxNDQyIDg4My4yIDkyOS40NDE0NDJMMTI4LjE5NDc2NCA5MjkuNDQxNDQyWiIgcC1pZD0iMzMxMCI+PC9wYXRoPjxwYXRoIGQ9Ik0yODEuNiAyNTQuODQ2ODQ2QzI4MS42IDI2OS4xNzYzOTcgMjkzLjA2MTUxIDI4MC43OTI3OTQgMzA3LjIgMjgwLjc5Mjc5NCAzMjEuMzM4NDkgMjgwLjc5Mjc5NCAzMzIuOCAyNjkuMTc2Mzk3IDMzMi44IDI1NC44NDY4NDZMMzMyLjggNjAuMjUyMjUyQzMzMi44IDQ1LjkyMjcwMiAzMjEuMzM4NDkgMzQuMzA2MzA2IDMwNy4yIDM0LjMwNjMwNiAyOTMuMDYxNTEgMzQuMzA2MzA2IDI4MS42IDQ1LjkyMjcwMiAyODEuNiA2MC4yNTIyNTJMMjgxLjYgMjU0Ljg0Njg0NloiIHAtaWQ9IjMzMTEiPjwvcGF0aD48cGF0aCBkPSJNNzE2LjggMjQxLjg3Mzg3M0M3MTYuOCAyNTYuMjAzNDI0IDcyOC4yNjE1MSAyNjcuODE5ODIxIDc0Mi40IDI2Ny44MTk4MjEgNzU2LjUzODQ5IDI2Ny44MTk4MjEgNzY4IDI1Ni4yMDM0MjQgNzY4IDI0MS44NzM4NzNMNzY4IDQ3LjI3OTI3OUM3NjggMzIuOTQ5NzI5IDc1Ni41Mzg0OSAyMS4zMzMzMzMgNzQyLjQgMjEuMzMzMzMzIDcyOC4yNjE1MSAyMS4zMzMzMzMgNzE2LjggMzIuOTQ5NzI5IDcxNi44IDQ3LjI3OTI3OUw3MTYuOCAyNDEuODczODczWiIgcC1pZD0iMzMxMiI+PC9wYXRoPjxwYXRoIGQ9Ik0zMzIuOCA0MTAuNTIyNTIyQzM0Ni45Mzg0OSA0MTAuNTIyNTIyIDM1OC40IDM5OC45MDYxMjcgMzU4LjQgMzg0LjU3NjU3NiAzNTguNCAzNzAuMjQ3MDI3IDM0Ni45Mzg0OSAzNTguNjMwNjMgMzMyLjggMzU4LjYzMDYzTDE5MiAzNTguNjMwNjNDMTc3Ljg2MTUxIDM1OC42MzA2MyAxNjYuNCAzNzAuMjQ3MDI3IDE2Ni40IDM4NC41NzY1NzYgMTY2LjQgMzk4LjkwNjEyNyAxNzcuODYxNTEgNDEwLjUyMjUyMiAxOTIgNDEwLjUyMjUyMkwzMzIuOCA0MTAuNTIyNTIyWiIgcC1pZD0iMzMxMyI+PC9wYXRoPjxwYXRoIGQ9Ik02MTQuNCA0MTAuNTIyNTIyQzYyOC41Mzg0OSA0MTAuNTIyNTIyIDY0MCAzOTguOTA2MTI3IDY0MCAzODQuNTc2NTc2IDY0MCAzNzAuMjQ3MDI3IDYyOC41Mzg0OSAzNTguNjMwNjMgNjE0LjQgMzU4LjYzMDYzTDQ3My42IDM1OC42MzA2M0M0NTkuNDYxNTEgMzU4LjYzMDYzIDQ0OCAzNzAuMjQ3MDI3IDQ0OCAzODQuNTc2NTc2IDQ0OCAzOTguOTA2MTI3IDQ1OS40NjE1MSA0MTAuNTIyNTIyIDQ3My42IDQxMC41MjI1MjJMNjE0LjQgNDEwLjUyMjUyMloiIHAtaWQ9IjMzMTQiPjwvcGF0aD48cGF0aCBkPSJNODcwLjQgNDEwLjUyMjUyMkM4ODQuNTM4NDkgNDEwLjUyMjUyMiA4OTYgMzk4LjkwNjEyNyA4OTYgMzg0LjU3NjU3NiA4OTYgMzcwLjI0NzAyNyA4ODQuNTM4NDkgMzU4LjYzMDYzIDg3MC40IDM1OC42MzA2M0w3MjkuNiAzNTguNjMwNjNDNzE1LjQ2MTUxIDM1OC42MzA2MyA3MDQgMzcwLjI0NzAyNyA3MDQgMzg0LjU3NjU3NiA3MDQgMzk4LjkwNjEyNyA3MTUuNDYxNTEgNDEwLjUyMjUyMiA3MjkuNiA0MTAuNTIyNTIyTDg3MC40IDQxMC41MjI1MjJaIiBwLWlkPSIzMzE1Ij48L3BhdGg+PHBhdGggZD0iTTMzMi44IDU2Ni4xOTgxOTdDMzQ2LjkzODQ5IDU2Ni4xOTgxOTcgMzU4LjQgNTU0LjU4MTgwMyAzNTguNCA1NDAuMjUyMjUyIDM1OC40IDUyNS45MjI3MDMgMzQ2LjkzODQ5IDUxNC4zMDYzMDYgMzMyLjggNTE0LjMwNjMwNkwxOTIgNTE0LjMwNjMwNkMxNzcuODYxNTEgNTE0LjMwNjMwNiAxNjYuNCA1MjUuOTIyNzAzIDE2Ni40IDU0MC4yNTIyNTIgMTY2LjQgNTU0LjU4MTgwMyAxNzcuODYxNTEgNTY2LjE5ODE5NyAxOTIgNTY2LjE5ODE5N0wzMzIuOCA1NjYuMTk4MTk3WiIgcC1pZD0iMzMxNiI+PC9wYXRoPjxwYXRoIGQ9Ik02MTQuNCA1NjYuMTk4MTk3QzYyOC41Mzg0OSA1NjYuMTk4MTk3IDY0MCA1NTQuNTgxODAzIDY0MCA1NDAuMjUyMjUyIDY0MCA1MjUuOTIyNzAzIDYyOC41Mzg0OSA1MTQuMzA2MzA2IDYxNC40IDUxNC4zMDYzMDZMNDczLjYgNTE0LjMwNjMwNkM0NTkuNDYxNTEgNTE0LjMwNjMwNiA0NDggNTI1LjkyMjcwMyA0NDggNTQwLjI1MjI1MiA0NDggNTU0LjU4MTgwMyA0NTkuNDYxNTEgNTY2LjE5ODE5NyA0NzMuNiA1NjYuMTk4MTk3TDYxNC40IDU2Ni4xOTgxOTdaIiBwLWlkPSIzMzE3Ij48L3BhdGg+PHBhdGggZD0iTTg3MC40IDU2Ni4xOTgxOTdDODg0LjUzODQ5IDU2Ni4xOTgxOTcgODk2IDU1NC41ODE4MDMgODk2IDU0MC4yNTIyNTIgODk2IDUyNS45MjI3MDMgODg0LjUzODQ5IDUxNC4zMDYzMDYgODcwLjQgNTE0LjMwNjMwNkw3MjkuNiA1MTQuMzA2MzA2QzcxNS40NjE1MSA1MTQuMzA2MzA2IDcwNCA1MjUuOTIyNzAzIDcwNCA1NDAuMjUyMjUyIDcwNCA1NTQuNTgxODAzIDcxNS40NjE1MSA1NjYuMTk4MTk3IDcyOS42IDU2Ni4xOTgxOTdMODcwLjQgNTY2LjE5ODE5N1oiIHAtaWQ9IjMzMTgiPjwvcGF0aD48cGF0aCBkPSJNMzMyLjggNzIxLjg3Mzg3M0MzNDYuOTM4NDkgNzIxLjg3Mzg3MyAzNTguNCA3MTAuMjU3NDc4IDM1OC40IDY5NS45Mjc5MjcgMzU4LjQgNjgxLjU5ODM3OSAzNDYuOTM4NDkgNjY5Ljk4MTk4MiAzMzIuOCA2NjkuOTgxOTgyTDE5MiA2NjkuOTgxOTgyQzE3Ny44NjE1MSA2NjkuOTgxOTgyIDE2Ni40IDY4MS41OTgzNzkgMTY2LjQgNjk1LjkyNzkyNyAxNjYuNCA3MTAuMjU3NDc4IDE3Ny44NjE1MSA3MjEuODczODczIDE5MiA3MjEuODczODczTDMzMi44IDcyMS44NzM4NzNaIiBwLWlkPSIzMzE5Ij48L3BhdGg+PHBhdGggZD0iTTYxNC40IDcyMS44NzM4NzNDNjI4LjUzODQ5IDcyMS44NzM4NzMgNjQwIDcxMC4yNTc0NzggNjQwIDY5NS45Mjc5MjcgNjQwIDY4MS41OTgzNzkgNjI4LjUzODQ5IDY2OS45ODE5ODIgNjE0LjQgNjY5Ljk4MTk4Mkw0NzMuNiA2NjkuOTgxOTgyQzQ1OS40NjE1MSA2NjkuOTgxOTgyIDQ0OCA2ODEuNTk4Mzc5IDQ0OCA2OTUuOTI3OTI3IDQ0OCA3MTAuMjU3NDc4IDQ1OS40NjE1MSA3MjEuODczODczIDQ3My42IDcyMS44NzM4NzNMNjE0LjQgNzIxLjg3Mzg3M1oiIHAtaWQ9IjMzMjAiPjwvcGF0aD48cGF0aCBkPSJNODcwLjQgNzIxLjg3Mzg3M0M4ODQuNTM4NDkgNzIxLjg3Mzg3MyA4OTYgNzEwLjI1NzQ3OCA4OTYgNjk1LjkyNzkyNyA4OTYgNjgxLjU5ODM3OSA4ODQuNTM4NDkgNjY5Ljk4MTk4MiA4NzAuNCA2NjkuOTgxOTgyTDcyOS42IDY2OS45ODE5ODJDNzE1LjQ2MTUxIDY2OS45ODE5ODIgNzA0IDY4MS41OTgzNzkgNzA0IDY5NS45Mjc5MjcgNzA0IDcxMC4yNTc0NzggNzE1LjQ2MTUxIDcyMS44NzM4NzMgNzI5LjYgNzIxLjg3Mzg3M0w4NzAuNCA3MjEuODczODczWiIgcC1pZD0iMzMyMSI+PC9wYXRoPjwvc3ZnPg==";
|
23765 | var __glob_0_3 = Object.freeze({
|
23766 | __proto__: null,
|
23767 | [Symbol.toStringTag]: "Module",
|
23768 | "default": Calendar
|
23769 | });
|
23770 | var Cascader = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyMDYwMjk3MTU5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI5MzAiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMjA0LjggNTEyVjI4MS42YzAtMTIuOCAxMC4yNC0yNS42IDI1LjYtMjUuNmgzMDcuMmMxNS4zNiAwIDI1LjYgMTAuMjQgMjUuNiAyNS42VjUxMmMwIDEyLjgtMTAuMjQgMjUuNi0yNS42IDI1LjZINTEydjUxLjJoNTEuMmMyOC4xNiAwIDUxLjItMjMuMDQgNTEuMi01MS4yVjI1NmMwLTI4LjE2LTIzLjA0LTUxLjItNTEuMi01MS4ySDIwNC44Yy0yOC4xNiAwLTUxLjIgMjMuMDQtNTEuMiA1MS4ydjI4MS42YzAgMjguMTYgMjMuMDQgNTEuMiA1MS4yIDUxLjJoMTUzLjZ2LTUxLjJoLTEyOGMtMTIuOCAwLTI1LjYtMTAuMjQtMjUuNi0yNS42eiBtMCAwIiBwLWlkPSIyOTMxIj48L3BhdGg+PHBhdGggZD0iTTgxOS4yIDQzNS4ySDY2NS42djUxLjJoMTI4YzE1LjM2IDAgMjUuNiAxMC4yNCAyNS42IDI1LjZ2MjMwLjRjMCAxMi44LTEwLjI0IDI1LjYtMjUuNiAyNS42SDQ4Ni40Yy0xNS4zNiAwLTI1LjYtMTAuMjQtMjUuNi0yNS42VjUxMmMwLTEyLjggMTAuMjQtMjUuNiAyNS42LTI1LjZINTEydi01MS4yaC01MS4yYy0yOC4xNiAwLTUxLjIgMjMuMDQtNTEuMiA1MS4yVjc2OGMwIDI4LjE2IDIzLjA0IDUxLjIgNTEuMiA1MS4yaDM1OC40YzI4LjE2IDAgNTEuMi0yMy4wNCA1MS4yLTUxLjJWNDg2LjRjMC0yOC4xNi0yMy4wNC01MS4yLTUxLjItNTEuMnogbTAgMCIgcC1pZD0iMjkzMiI+PC9wYXRoPjwvc3ZnPg==";
|
23771 | var __glob_0_4 = Object.freeze({
|
23772 | __proto__: null,
|
23773 | [Symbol.toStringTag]: "Module",
|
23774 | "default": Cascader
|
23775 | });
|
23776 | var Checkbox = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyMTI2NjU2MTAxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE1ODMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNOTM4LjY2NjY2NyAxMDI0IDg1LjMzMzMzMyAxMDI0Yy00Ni45MzMzMzMgMC04NS4zMzMzMzMtMzguNC04NS4zMzMzMzMtODUuMzMzMzMzTDAgODUuMzMzMzMzYzAtNDYuOTMzMzMzIDM4LjQtODUuMzMzMzMzIDg1LjMzMzMzMy04NS4zMzMzMzNsODUzLjMzMzMzMyAwYzQ2LjkzMzMzMyAwIDg1LjMzMzMzMyAzOC40IDg1LjMzMzMzMyA4NS4zMzMzMzNsMCA4NTMuMzMzMzMzQzEwMjQgOTg1LjYgOTg1LjYgMTAyNCA5MzguNjY2NjY3IDEwMjR6TTkzOC42NjY2NjcgMTA2LjY2NjY2N2MwLTEyLjgtOC41MzMzMzMtMjEuMzMzMzMzLTIxLjMzMzMzMy0yMS4zMzMzMzNMMTA2LjY2NjY2NyA4NS4zMzMzMzNDOTMuODY2NjY3IDg1LjMzMzMzMyA4NS4zMzMzMzMgOTMuODY2NjY3IDg1LjMzMzMzMyAxMDYuNjY2NjY3bDAgODEwLjY2NjY2N2MwIDEyLjggOC41MzMzMzMgMjEuMzMzMzMzIDIxLjMzMzMzMyAyMS4zMzMzMzNsODEwLjY2NjY2NyAwYzEyLjggMCAyMS4zMzMzMzMtOC41MzMzMzMgMjEuMzMzMzMzLTIxLjMzMzMzM0w5MzguNjY2NjY3IDEwNi42NjY2Njd6TTQ1Ni41MzMzMzMgNzEyLjUzMzMzM0M0NTAuMTMzMzMzIDcyMS4wNjY2NjcgNDM5LjQ2NjY2NyA3MjUuMzMzMzMzIDQyNi42NjY2NjcgNzI1LjMzMzMzM3MtMjMuNDY2NjY3LTQuMjY2NjY3LTI5Ljg2NjY2Ny0xMi44bC0xNzAuNjY2NjY3LTE3MC42NjY2NjdDMjE3LjYgNTM1LjQ2NjY2NyAyMTMuMzMzMzMzIDUyNC44IDIxMy4zMzMzMzMgNTEyYzAtMjMuNDY2NjY3IDE5LjItNDIuNjY2NjY3IDQyLjY2NjY2Ny00Mi42NjY2NjcgMTIuOCAwIDIzLjQ2NjY2NyA0LjI2NjY2NyAyOS44NjY2NjcgMTIuOGwxNDAuOCAxNDAuOCAzMTEuNDY2NjY3LTMxMS40NjY2NjdjOC41MzMzMzMtOC41MzMzMzMgMTkuMi0xMi44IDI5Ljg2NjY2Ny0xMi44IDIzLjQ2NjY2NyAwIDQyLjY2NjY2NyAxOS4yIDQyLjY2NjY2NyA0Mi42NjY2NjcgMCAxMi44LTQuMjY2NjY3IDIzLjQ2NjY2Ny0xMi44IDI5Ljg2NjY2N0w0NTYuNTMzMzMzIDcxMi41MzMzMzN6IiBwLWlkPSIxNTg0Ij48L3BhdGg+PC9zdmc+";
|
23777 | var __glob_0_5 = Object.freeze({
|
23778 | __proto__: null,
|
23779 | [Symbol.toStringTag]: "Module",
|
23780 | "default": Checkbox
|
23781 | });
|
23782 | var CheckboxGroup = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyMTI2NjUwMjUyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE0NTMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMTA2LjY2NjY2NyA0MzIuMTI4YTQyLjY2NjY2NyA0Mi42NjY2NjcgMCAwIDEtNDIuNjY2NjY3LTQyLjY2NjY2N1YxMDYuNjY2NjY3YTQyLjY2NjY2NyA0Mi42NjY2NjcgMCAwIDEgNDIuNjY2NjY3LTQyLjY2NjY2N2gzMTIuMzYyNjY2YTQyLjY2NjY2NyA0Mi42NjY2NjcgMCAxIDEgMCA4NS4zMzMzMzNIMTQ5LjMzMzMzM3YyNDAuMTI4YTQyLjY2NjY2NyA0Mi42NjY2NjcgMCAwIDEtNDIuNjY2NjY2IDQyLjY2NjY2NyIgcC1pZD0iMTQ1NCI+PC9wYXRoPjxwYXRoIGQ9Ik05MjAuNzQ2NjY3IDk2MC4yOTg2NjdINjA4LjQyNjY2N2E0Mi42NjY2NjcgNDIuNjY2NjY3IDAgMSAxIDAtODUuMzMzMzM0aDI2OS42NTMzMzNWNjM0LjgzNzMzM2E0Mi42NjY2NjcgNDIuNjY2NjY3IDAgMSAxIDg1LjMzMzMzMyAwVjkxNy42MzJhNDIuNjY2NjY3IDQyLjY2NjY2NyAwIDAgMS00Mi42NjY2NjYgNDIuNjY2NjY3IiBwLWlkPSIxNDU1Ij48L3BhdGg+PHBhdGggZD0iTTM0Ni4wMjY2NjcgMjk2LjI3NzMzM2MtMjYuNzk0NjY3IDAtNDguNTU0NjY3IDIxLjc2LTQ4LjU1NDY2NyA0OC41MTJ2MzQ1LjY0MjY2N2MwIDI2Ljc1MiAyMS43NiA0OC41MTIgNDguNTEyIDQ4LjUxMmgzNDUuNjg1MzMzYzI2Ljc1MiAwIDQ4LjQ2OTMzMy0yMS43NiA0OC40NjkzMzQtNDguNTEydi0zNDUuNmMwLTI2Ljc5NDY2Ny0yMS43MTczMzMtNDguNTU0NjY3LTQ4LjQ2OTMzNC00OC41NTQ2NjdIMzQ2LjAyNjY2N3pNNjkxLjYyNjY2NyA4MjQuMzJIMzQ2LjAyNjY2N2ExMzMuOTczMzMzIDEzMy45NzMzMzMgMCAwIDEtMTMzLjg0NTMzNC0xMzMuODQ1MzMzdi0zNDUuNkExMzMuOTczMzMzIDEzMy45NzMzMzMgMCAwIDEgMzQ2LjAyNjY2NyAyMTAuOTAxMzMzaDM0NS42ODUzMzNhMTMzLjk3MzMzMyAxMzMuOTczMzMzIDAgMCAxIDEzMy44MDI2NjcgMTMzLjg0NTMzNHYzNDUuNjQyNjY2YTEzMy45NzMzMzMgMTMzLjk3MzMzMyAwIDAgMS0xMzMuODAyNjY3IDEzMy44NDUzMzR6IiBwLWlkPSIxNDU2Ij48L3BhdGg+PHBhdGggZD0iTTQ0Ni4wOCA2NTkuNTQxMzMzYTQyLjgzNzMzMyA0Mi44MzczMzMgMCAwIDEtMzcuODQ1MzMzLTIyLjkxMmwtNjEuMjI2NjY3LTExNy4yMDUzMzNhNDIuNjY2NjY3IDQyLjY2NjY2NyAwIDEgMSA3NS42NDgtMzkuNTA5MzMzbDM2LjU2NTMzMyA2OS45MzA2NjYgMTYwLjQyNjY2Ny0xMzUuODkzMzMzYTQyLjY2NjY2NyA0Mi42NjY2NjcgMCAxIDEgNTUuMTI1MzMzIDY1LjEwOTMzM2wtMjAxLjEzMDY2NiAxNzAuMzY4YTQyLjc1MiA0Mi43NTIgMCAwIDEtMjcuNTYyNjY3IDEwLjExMiIgcC1pZD0iMTQ1NyI+PC9wYXRoPjwvc3ZnPg==";
|
23783 | var __glob_0_6 = Object.freeze({
|
23784 | __proto__: null,
|
23785 | [Symbol.toStringTag]: "Module",
|
23786 | "default": CheckboxGroup
|
23787 | });
|
23788 | var Col = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMxOTM0NjM1OTQ2IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEwNzgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODUzLjMzMzMzMyA5NTUuNzMzMzMzSDE3MC42NjY2NjdjLTY2LjAzMDkzMyAwLTEwMi40LTM2LjM2OTA2Ny0xMDIuNC0xMDIuNFYxNzAuNjY2NjY3YzAtNjYuMDMwOTMzIDM2LjM2OTA2Ny0xMDIuNCAxMDIuNC0xMDIuNGg2ODIuNjY2NjY2YzY2LjAzMDkzMyAwIDEwMi40IDM2LjM2OTA2NyAxMDIuNCAxMDIuNHY2ODIuNjY2NjY2YzAgNjYuMDMwOTMzLTM2LjM2OTA2NyAxMDIuNC0xMDIuNCAxMDIuNHogbS0zMjQuMjY2NjY2LTM0LjEzMzMzM2gzMjQuMjY2NjY2YzQ3LjIyMzQ2NyAwIDY4LjI2NjY2Ny0yMS4wNDMyIDY4LjI2NjY2Ny02OC4yNjY2NjdWMTcwLjY2NjY2N2MwLTQ3LjIyMzQ2Ny0yMS4wNDMyLTY4LjI2NjY2Ny02OC4yNjY2NjctNjguMjY2NjY3SDUyOS4wNjY2Njd2ODE5LjJ6TTE3MC42NjY2NjcgMTAyLjRjLTQ3LjIyMzQ2NyAwLTY4LjI2NjY2NyAyMS4wNDMyLTY4LjI2NjY2NyA2OC4yNjY2Njd2NjgyLjY2NjY2NmMwIDQ3LjIyMzQ2NyAyMS4wNDMyIDY4LjI2NjY2NyA2OC4yNjY2NjcgNjguMjY2NjY3aDMyNC4yNjY2NjZWMTAyLjRIMTcwLjY2NjY2N3oiIHAtaWQ9IjEwNzkiPjwvcGF0aD48L3N2Zz4=";
|
23789 | var __glob_0_7 = Object.freeze({
|
23790 | __proto__: null,
|
23791 | [Symbol.toStringTag]: "Module",
|
23792 | "default": Col
|
23793 | });
|
23794 | var Copy = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQ0NDA1Nzk5MzUxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEwMTg0IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTYyOS4zOTE2NCA0MTUuMDMyNTI4bC0xNjMuNjE2NDI4LTE2My42MTY0MjhjLTcuOTkyMDIxLTcuOTkyMDIxLTIwLjk0NzA3OC03Ljk5MjAyMS0yOC45MzkwOTkgMC03Ljk5MjAyMSA4LjAwMjI1NC03Ljk5MjAyMSAyMC45NTczMTEgMCAyOC45NDkzMzJsMTI4LjY4MDc1NCAxMjguNjgwNzU0LTE3NS41NDgxNzggMEwzODkuOTY4Njg5IDE4NC4wODI1NTJjMC0xMS4yOTczLTkuMTY4ODI0LTIwLjQ2NjEyNC0yMC40NjYxMjQtMjAuNDY2MTI0TDIxLjgxMzgxOCAxNjMuNjE2NDI4Yy0xMS4zMDc1MzMgMC0yMC40NjYxMjQgOS4xNjg4MjQtMjAuNDY2MTI0IDIwLjQ2NjEyNGwwIDgxOC4wODIxNGMwIDExLjMwNzUzMyA5LjE1ODU5IDIwLjQ2NjEyNCAyMC40NjYxMjQgMjAuNDY2MTI0bDU5My4xMDgyNzMgMGMxMS4zMDc1MzMgMCAyMC40NjYxMjQtOS4xNTg1OSAyMC40NjYxMjQtMjAuNDY2MTI0TDYzNS4zODgyMTUgNDI5LjUxMjMxMUM2MzUuMzg4MjE1IDQyNC4wNzg1NTUgNjMzLjIyOTAzOSA0MTguODgwMTU5IDYyOS4zOTE2NCA0MTUuMDMyNTI4ek01OTQuNDU1OTY3IDk4MS42OTg1NjhsLTU1Mi4xNzYwMjUgMEw0Mi4yNzk5NDIgMjA0LjU0ODY3NmwzMDYuNzU2NDk5IDAgMCAyMjQuOTYzNjM1YzAgMTEuMjk3MyA5LjE1ODU5IDIwLjQ2NjEyNCAyMC40NjYxMjQgMjAuNDY2MTI0bDIyNC45NTM0MDIgMEw1OTQuNDU1OTY3IDk4MS42OTg1Njh6IiBwLWlkPSIxMDE4NSI+PC9wYXRoPjxwYXRoIGQ9Ik0xMDIzLjk3ODUxMSAyNjUuODk1ODgzbDAgNTcyLjY1MjM4MmMwIDExLjMwNzUzMy05LjE1ODU5IDIwLjQ2NjEyNC0yMC40NjYxMjQgMjAuNDY2MTI0bC0zMDcuODYxNjcgMGMtMTEuMjk3MyAwLTIwLjQ2NjEyNC05LjE1ODU5LTIwLjQ2NjEyNC0yMC40NjYxMjQgMC0xMS4yOTczIDkuMTY4ODI0LTIwLjQ2NjEyNCAyMC40NjYxMjQtMjAuNDY2MTI0bDI4Ny4zOTU1NDYgMEw5ODMuMDQ2MjYzIDI4Ni4zNjIwMDdsLTIyNC45NTM0MDIgMGMtMTEuMzA3NTMzIDAtMjAuNDY2MTI0LTkuMTY4ODI0LTIwLjQ2NjEyNC0yMC40NjYxMjRMNzM3LjYyNjczNyA0MC45MzIyNDhsLTMwNi43NTY0OTkgMCAwIDc1LjY5Mzk1OWMwIDExLjMwNzUzMy05LjE2ODgyNCAyMC40NjYxMjQtMjAuNDY2MTI0IDIwLjQ2NjEyNC0xMS4zMDc1MzMgMC0yMC40NjYxMjQtOS4xNTg1OS0yMC40NjYxMjQtMjAuNDY2MTI0TDM4OS45Mzc5OSAyMC40NjYxMjRjMC0xMS4yOTczIDkuMTU4NTktMjAuNDY2MTI0IDIwLjQ2NjEyNC0yMC40NjYxMjRsMzQ3LjY4ODc0NyAwYzExLjI5NzMgMCAyMC40NjYxMjQgOS4xNjg4MjQgMjAuNDY2MTI0IDIwLjQ2NjEyNGwwIDIyNC45NjM2MzUgMTc1LjU0ODE3OCAwLTEyOC42ODA3NTQtMTI4LjY4MDc1NGMtNy45OTIwMjEtNy45OTIwMjEtNy45OTIwMjEtMjAuOTQ3MDc4IDAtMjguOTQ5MzMyIDcuOTkyMDIxLTcuOTkyMDIxIDIwLjk0NzA3OC03Ljk5MjAyMSAyOC45MzkwOTkgMGwxNjMuNjE2NDI4IDE2My42MjY2NjFDMTAyMS44MTkzMzQgMjU1LjI2MzczMSAxMDIzLjk3ODUxMSAyNjAuNDYyMTI3IDEwMjMuOTc4NTExIDI2NS44OTU4ODN6IiBwLWlkPSIxMDE4NiI+PC9wYXRoPjwvc3ZnPg==";
|
23795 | var __glob_0_8 = Object.freeze({
|
23796 | __proto__: null,
|
23797 | [Symbol.toStringTag]: "Module",
|
23798 | "default": Copy
|
23799 | });
|
23800 | var DatePicker = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyMzg1NjQ0MjA5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQxODkiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODQ4LjkgMTE4aC05My41Yy04LjcgMC0xNS44LTcuMS0xNS44LTE1LjhWNjAuNmMwLTE2LjMtMTIuOC0zMC4yLTI5LjItMzAuNi0xNy0wLjUtMzAuOCAxMy4xLTMwLjggMzB2NDIuM2MwIDguNy03LjEgMTUuOC0xNS44IDE1LjhIMzYzLjNjLTguNyAwLTE1LjgtNy4xLTE1LjgtMTUuOFY2MC42YzAtMTYuMy0xMi44LTMwLjItMjkuMi0zMC42LTE3LTAuNS0zMC44IDEzLjEtMzAuOCAzMHY0Mi4zYzAgOC43LTcuMSAxNS44LTE1LjggMTUuOGgtOTYuNkM5OC44IDExOCAzNyAxNzkuOCAzNyAyNTYuMXY1OTkuOEMzNyA5MzIuMiA5OC44IDk5NCAxNzUuMSA5OTRoNjczLjdjNzYuMyAwIDEzOC4xLTYxLjggMTM4LjEtMTM4LjFWMjU2LjFjMC4xLTc2LjMtNjEuNy0xMzguMS0xMzgtMTM4LjF6TTk3IDI1Ni4xYzAtNDMuMiAzNS03OC4xIDc4LjEtNzguMWg5Ni42YzguNyAwIDE1LjggNy4xIDE1LjggMTUuOHY0MS43YzAgMTYuMyAxMi44IDMwLjIgMjkuMiAzMC42IDE3IDAuNSAzMC44LTEzLjEgMzAuOC0zMHYtNDIuM2MwLTguNyA3LjEtMTUuOCAxNS44LTE1LjhoMzAwLjVjOC43IDAgMTUuOCA3LjEgMTUuOCAxNS44djQxLjdjMCAxNi4zIDEyLjggMzAuMiAyOS4yIDMwLjYgMTcgMC41IDMwLjgtMTMuMSAzMC44LTMwdi00Mi4zYzAtOC43IDcuMS0xNS44IDE1LjgtMTUuOGg5My41YzQzLjIgMCA3OC4xIDM1IDc4LjEgNzguMXY0NS40YzAgMTEuNC05LjIgMjAuNi0yMC42IDIwLjZIMTE3LjZjLTExLjQgMC0yMC42LTkuMi0yMC42LTIwLjZ2LTQ1LjR6TTkyNyA4NTZjMCA0My4yLTM1IDc4LjEtNzguMSA3OC4xSDE3NS4xYy00My4xIDAtNzguMS0zNS03OC4xLTc4LjFWNDAyLjdjMC0xMS40IDkuMi0yMC42IDIwLjYtMjAuNmg3ODguOWMxMS40IDAgMjAuNiA5LjIgMjAuNiAyMC42TDkyNyA4NTZ6IiBwLWlkPSI0MTkwIj48L3BhdGg+PHBhdGggZD0iTTI0MC4zIDU4Ni4xSDMwNmMxNi41IDAgMzAtMTMuNCAzMC0zMCAwLTE2LjUtMTMuNC0zMC0zMC0zMGgtNjUuN2MtMTYuNSAwLTMwIDEzLjQtMzAgMzBzMTMuNCAzMCAzMCAzMHpNNDc5LjIgNTg2LjFoNjUuN2MxNi41IDAgMzAtMTMuNCAzMC0zMCAwLTE2LjUtMTMuNC0zMC0zMC0zMGgtNjUuN2MtMTYuNSAwLTMwIDEzLjQtMzAgMzAgMC4xIDE2LjYgMTMuNSAzMCAzMCAzMHpNNzE4LjIgNTg2LjFoNjUuN2MxNi41IDAgMzAtMTMuNCAzMC0zMCAwLTE2LjUtMTMuNC0zMC0zMC0zMGgtNjUuN2MtMTYuNSAwLTMwIDEzLjQtMzAgMzBzMTMuNCAzMCAzMCAzMHpNMzEyIDczMC4xaC02NS43Yy0xNi41IDAtMzAgMTMuNC0zMCAzMCAwIDE2LjUgMTMuNCAzMCAzMCAzMEgzMTJjMTYuNSAwIDMwLTEzLjQgMzAtMzBzLTEzLjQtMzAtMzAtMzB6TTU1MSA3MzAuMWgtNjUuN2MtMTYuNSAwLTMwIDEzLjQtMzAgMzAgMCAxNi41IDEzLjQgMzAgMzAgMzBINTUxYzE2LjUgMCAzMC0xMy40IDMwLTMwLTAuMS0xNi42LTEzLjUtMzAtMzAtMzB6TTc4OS45IDczMC4xaC02NS43Yy0xNi41IDAtMzAgMTMuNC0zMCAzMCAwIDE2LjUgMTMuNCAzMCAzMCAzMGg2NS43YzE2LjUgMCAzMC0xMy40IDMwLTMwcy0xMy40LTMwLTMwLTMweiIgcC1pZD0iNDE5MSI+PC9wYXRoPjwvc3ZnPg==";
|
23801 | var __glob_0_9 = Object.freeze({
|
23802 | __proto__: null,
|
23803 | [Symbol.toStringTag]: "Module",
|
23804 | "default": DatePicker
|
23805 | });
|
23806 | var Delete = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjE2NzQ2MDMzNzgyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI4MTQiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTE3LjU5IDIxLjYwOWMtMTAwLjI5OSAwLTE4MS43MDMgNzkuNTE0LTE4NS4xNjcgMTc5LjM0SDk4LjYwM2MtMjUuOTc5IDAtNDcuMjM1IDIxLjA5OS00Ny4yMzUgNDcuMjM2IDAgMjUuOTggMjEuMDk5IDQ3LjIzNyA0Ny4yMzYgNDcuMjM3aDUyLjExN3Y1MjguNDE2YzAgOTkuMTk2IDY3LjIzMyAxODAuMjg1IDE1MC4zNyAxODAuMjg1aDQyMy41NWM4Mi45OCAwIDE1MC4zNy04MC42MTYgMTUwLjM3LTE4MC4yODVWMjk1LjczN2g0Ny4yMzZjMjUuOTggMCA0Ny4yMzYtMjEuMSA0Ny4yMzYtNDcuMjM3IDAtMjUuOTgtMjEuMDk5LTQ3LjIzNi00Ny4yMzYtNDcuMjM2SDcwMi40NDFDNjk5LjQ0OSAxMDEuMTI0IDYxNy44ODggMjEuNjEgNTE3LjU5IDIxLjYxeiBtLTk2LjY3NyAxNzkuMzRjMy40NjQtNTEuMTcyIDQ1LjE5LTkwLjg1IDk2LjgzNC05MC44NXM5My4zNyAzOS44MzUgOTYuMzYyIDkwLjg1SDQyMC45MTN6IG0tMTE5Ljk4IDcxNC44NDJjLTI5LjQ0NCAwLTYxLjg4LTM3Ljc4OS02MS44OC05MS45NTNWMjk1LjczN2g1NDcuMzExVjgyNC4zMWMwIDU0LjAwNy0zMi40MzYgOTEuOTU0LTYxLjg4IDkxLjk1NEgzMDAuOTMzdi0wLjQ3M3ogbTAgMCIgcC1pZD0iMjgxNSI+PC9wYXRoPjxwYXRoIGQ9Ik0zNjQuMzg3IDgwMi4yNjdjMjEuNTcgMCAzOS4zNjMtMjEuNTcxIDM5LjM2My00OC42NTNWNDc2LjAyMmMwLTI3LjA4Mi0xNy42MzUtNDguNjU0LTM5LjM2My00OC42NTQtMjEuNTcyIDAtMzkuMzY0IDIxLjU3Mi0zOS4zNjQgNDguNjU0djI3Ny41OTJjMCAyNi45MjQgMTcuMzIgNDguNjUzIDM5LjM2NCA0OC42NTN6IG0xNDIuNDk2IDBjMjEuNTcxIDAgMzkuMzYzLTIxLjU3MSAzOS4zNjMtNDguNjUzVjQ3Ni4wMjJjMC0yNy4wODItMTcuNjM1LTQ4LjY1NC0zOS4zNjMtNDguNjU0LTIxLjU3MSAwLTM5LjM2NCAyMS41NzItMzkuMzY0IDQ4LjY1NHYyNzcuNTkyYzAgMjYuOTI0IDE3Ljc5MyA0OC42NTMgMzkuMzY0IDQ4LjY1M3ogbTE0OS44OTYgMGMyMS41NzEgMCAzOS4zNjQtMjEuNTcxIDM5LjM2NC00OC42NTNWNDc2LjAyMmMwLTI3LjA4Mi0xNy42MzUtNDguNjU0LTM5LjM2NC00OC42NTQtMjEuNTcxIDAtMzkuMzYzIDIxLjU3Mi0zOS4zNjMgNDguNjU0djI3Ny41OTJjMCAyNi45MjQgMTcuMTYyIDQ4LjY1MyAzOS4zNjMgNDguNjUzeiBtMCAwIiBwLWlkPSIyODE2Ij48L3BhdGg+PC9zdmc+";
|
23807 | var __glob_0_10 = Object.freeze({
|
23808 | __proto__: null,
|
23809 | [Symbol.toStringTag]: "Module",
|
23810 | "default": Delete
|
23811 | });
|
23812 | var Divider = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMwNTcxMzI0OTQwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI3Nzc1IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTE2OC4wNyAxOTcuNDJoNjgzLjUydjQzLjc1SDE2OC4wN3pNMTY4LjA3IDQ5Mi43aDEzMS4yNHY0My43NUgxNjguMDd6TTQzOS42NiA0OTIuN2gxNDAuMzZ2NDMuNzVINDM5LjY2ek03MjAuMzUgNDkyLjdoMTMxLjI0djQzLjc1SDcyMC4zNXoiIHAtaWQ9IjI3Nzc2Ij48L3BhdGg+PHBhdGggZD0iTTE2OC4wNyA3ODcuOThoNjgzLjUydjQzLjc1SDE2OC4wN3oiIHAtaWQ9IjI3Nzc3Ij48L3BhdGg+PC9zdmc+";
|
23813 | var __glob_0_11 = Object.freeze({
|
23814 | __proto__: null,
|
23815 | [Symbol.toStringTag]: "Module",
|
23816 | "default": Divider
|
23817 | });
|
23818 | var GenerateCode = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjE2NDA4MDEwNjYwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE2MDAiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTE4LjQgODE5LjJoMjgxLjZjNi40IDAgMTkuMi02LjQgMjUuNi02LjQgNi40LTYuNCA2LjQtMTIuOCA2LjQtMjUuNlYyNjguOGMwLTE5LjItMTIuOC0zMi0zMi0zMmgtNTc2Yy02LjQgMC0xOS4yIDYuNC0yNS42IDYuNCAwIDYuNC02LjQgMTkuMi02LjQgMjUuNnY1MTguNGMwIDE5LjIgMTIuOCAzMiAzMiAzMmgyOTQuNHogbTEyLjggNjRIMjI0Yy01MS4yIDAtOTYtNDQuOC05Ni05NlYyNjguOGMwLTI1LjYgMTIuOC01MS4yIDI1LjYtNzAuNHM0NC44LTI1LjYgNzAuNC0yNS42aDU3NmM1MS4yIDAgOTYgNDQuOCA5NiA5NnY1MTguNGMwIDI1LjYtMTIuOCA1MS4yLTI1LjYgNzAuNC0xOS4yIDE5LjItNDQuOCAyNS42LTcwLjQgMjUuNkg1MzEuMnogbTE1My42LTM1OC40IiBwLWlkPSIxNjAxIj48L3BhdGg+PHBhdGggZD0iTTQ0MS42IDY3MmMtMTkuMiAxOS4yLTM4LjQgMC0zOC40IDBMMjg4IDUzNy42Yy02LjQtNi40LTYuNC0xMi44IDAtMTkuMkw0MDMuMiAzODRzMjUuNi0xOS4yIDM4LjQgMGMxOS4yIDE5LjIgMCAzOC40IDAgMzguNEwzNTIgNTMxLjIgNDQxLjYgNjQwYzAtNi40IDEyLjggMTkuMiAwIDMyeiBtNTEuMiAxOS4yYy0yNS42LTYuNC0xOS4yLTMyLTE5LjItMzJsMjUuNi0yODEuNmMwLTYuNCA2LjQtMzIgMzItMjUuNiAyNS42IDYuNCAyNS42IDMyIDI1LjYgMzJsLTMyIDI4MS42Yy02LjQgNi40LTEyLjggMzItMzIgMjUuNnogbTEyOC0xOS4ycy0xOS4yIDE5LjItMzguNCAwIDAtMzguNCAwLTM4LjRsODkuNi0xMDguOC04OS42LTEwMi40cy0xMi44LTE5LjIgMC0zOC40YzE5LjItMTkuMiAzOC40IDAgMzguNCAwbDExNS4yIDEzNC40YzYuNCA2LjQgNi40IDEyLjggMCAxOS4ybC0xMTUuMiAxMzQuNHoiIHAtaWQ9IjE2MDIiPjwvcGF0aD48L3N2Zz4=";
|
23819 | var __glob_0_12 = Object.freeze({
|
23820 | __proto__: null,
|
23821 | [Symbol.toStringTag]: "Module",
|
23822 | "default": GenerateCode
|
23823 | });
|
23824 | var GenerateJson = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjE2NDA4MzYwMzM5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjcxNDMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNOTAyLjQgMzk3Ljg2NjY2N2MtOS42LTkuNi0yMi45MzMzMzMtMTQuOTMzMzMzLTM2LjI2NjY2Ny0xNC45MzMzMzRoLTIxLjg2NjY2NlYyNzcuMzMzMzMzdi0yLjEzMzMzM2MwLTQuMjY2NjY3LTEuNi04LjUzMzMzMy00LjI2NjY2Ny0xMS43MzMzMzNsLTE3Ni41MzMzMzMtMTQ3LjczMzMzNGMtMS42LTEuNi0zLjItMi42NjY2NjctNC44LTMuNzMzMzMzLTEuMDY2NjY3LTAuNTMzMzMzLTIuMTMzMzMzLTEuMDY2NjY3LTMuNzMzMzM0LTEuNi0wLjUzMzMzMyAwLTAuNTMzMzMzIDAtMS4wNjY2NjYtMC41MzMzMzMtMS42LTAuNTMzMzMzLTIuNjY2NjY3LTAuNTMzMzMzLTQuMjY2NjY3LTAuNTMzMzM0SDIxNmMtMTkuNzMzMzMzIDAtMzUuNzMzMzMzIDE2LTM1LjczMzMzMyAzNS43MzMzMzR2MjM3LjMzMzMzM2gtMjEuODY2NjY3Yy0xMy44NjY2NjcgMC0yNi42NjY2NjcgNS4zMzMzMzMtMzYuMjY2NjY3IDE0LjkzMzMzMy0xMC4xMzMzMzMgMTAuMTMzMzMzLTE1LjQ2NjY2NyAyMi45MzMzMzMtMTUuNDY2NjY2IDM2Ljh2MjY1LjZjMCAyOC4yNjY2NjcgMjIuOTMzMzMzIDUxLjIgNTEuMiA1MS4yaDIxLjg2NjY2NnYxMzMuODY2NjY3YzAgMTkuNzMzMzMzIDE2IDM1LjczMzMzMyAzNS43MzMzMzQgMzUuNzMzMzMzaDU5Mi41MzMzMzNjMTkuNzMzMzMzIDAgMzUuNzMzMzMzLTE2IDM1LjczMzMzMy0zNS43MzMzMzN2LTEzMy44NjY2NjdoMjEuODY2NjY3YzI4LjI2NjY2NyAwIDUxLjItMjIuOTMzMzMzIDUxLjItNTEuMlY0MzQuMTMzMzMzYzAuNTMzMzMzLTEzLjg2NjY2Ny00LjgtMjYuNjY2NjY3LTE0LjQtMzYuMjY2NjY2eiBtLTY2Ni42NjY2NjctMjM2LjI2NjY2N2gzOTQuNjY2NjY3djExNC4xMzMzMzNjMCA0LjggMi4xMzMzMzMgOS4wNjY2NjcgNS4zMzMzMzMgMTIuOCAzLjIgMy4yIDggNS4zMzMzMzMgMTIuOCA1LjMzMzMzNGgxNDIuNFYzNzMuMzMzMzMzSDIzNS43MzMzMzNWMTYxLjZ6IG00MzcuMzMzMzM0IDM5Ny4zMzMzMzNjMCAzNi44LTguNTMzMzMzIDY1LjA2NjY2Ny0yNS4wNjY2NjcgODUuODY2NjY3LTE2LjUzMzMzMyAyMC44LTM4LjkzMzMzMyAzMC45MzMzMzMtNjYuNjY2NjY3IDMwLjkzMzMzMy0yOC4yNjY2NjcgMC01MC42NjY2NjctMTAuMTMzMzMzLTY3LjItMzAuOTMzMzMzLTE2LjUzMzMzMy0yMC44LTI1LjA2NjY2Ny00OS4wNjY2NjctMjUuMDY2NjY2LTg0LjggMC0yMi45MzMzMzMgMi42NjY2NjctNDIuNjY2NjY3IDguNTMzMzMzLTU4LjEzMzMzMyA0LjI2NjY2Ny0xMS43MzMzMzMgMTAuMTMzMzMzLTIxLjg2NjY2NyAxNy42LTMwLjkzMzMzNCA3LjQ2NjY2Ny05LjA2NjY2NyAxNS40NjY2NjctMTYgMjQuNTMzMzMzLTIwLjI2NjY2NiAxMS43MzMzMzMtNS44NjY2NjcgMjUuNi05LjA2NjY2NyA0MC41MzMzMzQtOS4wNjY2NjcgMjcuNzMzMzMzIDAgNTAuMTMzMzMzIDEwLjEzMzMzMyA2Ni42NjY2NjYgMzAuOTMzMzMzczI2LjEzMzMzMyA0OS4wNjY2NjcgMjYuMTMzMzM0IDg2LjR6TTQyMy40NjY2NjcgNTkyYy0yLjY2NjY2Ny0zLjczMzMzMy03LjQ2NjY2Ny02LjkzMzMzMy0xMy44NjY2NjctOS42LTQuMjY2NjY3LTEuNi0xNC40LTUuMzMzMzMzLTMwLjQtMTAuMTMzMzMzLTIwLjI2NjY2Ny01Ljg2NjY2Ny0zNC42NjY2NjctMTMuMzMzMzMzLTQzLjItMjIuNC0xMS43MzMzMzMtMTIuMjY2NjY3LTE3LjYtMjcuNzMzMzMzLTE3LjYtNDUuODY2NjY3IDAtMTEuNzMzMzMzIDIuNjY2NjY3LTIyLjQgOC0zMi41MzMzMzMgNS4zMzMzMzMtMTAuMTMzMzMzIDEzLjMzMzMzMy0xNy42IDIzLjQ2NjY2Ny0yMi45MzMzMzRzMjIuOTMzMzMzLTggMzcuMzMzMzMzLThjMjMuNDY2NjY3IDAgNDEuNiA2LjQgNTMuMzMzMzMzIDE4LjY2NjY2N3MxOC4xMzMzMzMgMjkuMzMzMzMzIDE4LjY2NjY2NyA1MC4xMzMzMzNsLTM3LjMzMzMzMyAyLjY2NjY2N2MtMS42LTExLjczMzMzMy01LjMzMzMzMy0yMC4yNjY2NjctMTAuNjY2NjY3LTI1LjA2NjY2Ny01LjMzMzMzMy01LjMzMzMzMy0xMy4zMzMzMzMtNy40NjY2NjctMjQtNy40NjY2NjYtMTEuMiAwLTE5LjczMzMzMyAyLjY2NjY2Ny0yNi4xMzMzMzMgOC00LjI2NjY2NyAzLjczMzMzMy01Ljg2NjY2NyA4LTUuODY2NjY3IDEzLjg2NjY2NiAwIDUuMzMzMzMzIDIuMTMzMzMzIDEwLjEzMzMzMyA1Ljg2NjY2NyAxMy44NjY2NjcgNC44IDQuOCAxNi41MzMzMzMgMTAuMTMzMzMzIDM1LjIgMTQuOTMzMzMzIDE4LjY2NjY2NyA1LjMzMzMzMyAzMi41MzMzMzMgMTAuNjY2NjY3IDQxLjA2NjY2NiAxNi41MzMzMzRzMTYgMTMuMzMzMzMzIDIwLjggMjIuOTMzMzMzYzQuOCA5LjYgNy40NjY2NjcgMjEuODY2NjY3IDcuNDY2NjY3IDM2LjI2NjY2NyAwIDEyLjgtMy4yIDI1LjA2NjY2Ny05LjA2NjY2NyAzNi4yNjY2NjYtNS44NjY2NjcgMTEuMi0xNC40IDE5LjczMzMzMy0yNS42IDI1LjA2NjY2N3MtMjQuNTMzMzMzIDguNTMzMzMzLTQxLjA2NjY2NiA4LjUzMzMzM2MtMjQgMC00Mi4xMzMzMzMtNi40LTU0LjkzMzMzNC0xOS43MzMzMzMtMTIuOC0xMy4zMzMzMzMtMjAuMjY2NjY3LTMyLjUzMzMzMy0yMi45MzMzMzMtNTguMTMzMzMzbDM3LjMzMzMzMy00LjI2NjY2N2MyLjEzMzMzMyAxNC45MzMzMzMgNi45MzMzMzMgMjYuMTMzMzMzIDEzLjMzMzMzNCAzMy4wNjY2NjcgNi45MzMzMzMgNi45MzMzMzMgMTYgMTAuNjY2NjY3IDI3LjczMzMzMyAxMC42NjY2NjYgMTIuMjY2NjY3IDAgMjEuMzMzMzMzLTMuMiAyNy43MzMzMzMtOS42IDYuNC02LjQgOS42LTEzLjMzMzMzMyA5LjYtMjEuODY2NjY2LTAuNTMzMzMzLTUuMzMzMzMzLTEuNi0xMC4xMzMzMzMtNC4yNjY2NjYtMTMuODY2NjY3eiBtLTI0OC41MzMzMzQgNjUuMDY2NjY3Yy0xMC4xMzMzMzMtMTIuMjY2NjY3LTE0LjkzMzMzMy0zMC45MzMzMzMtMTUuNDY2NjY2LTU0LjkzMzMzNGwzNS43MzMzMzMtNC44YzAuNTMzMzMzIDEyLjggMi4xMzMzMzMgMjIuNCA0LjggMjcuNzMzMzM0IDQuMjY2NjY3IDggMTAuMTMzMzMzIDEyLjI2NjY2NyAxOC42NjY2NjcgMTIuMjY2NjY2czE0LjQtMi42NjY2NjcgMTguMTMzMzMzLTguNTMzMzMzYzMuNzMzMzMzLTUuODY2NjY3IDUuMzMzMzMzLTE4LjEzMzMzMyA1LjMzMzMzMy0zNi4yNjY2NjdWNDQ0LjhoMzcuODY2NjY3djE0My40NjY2NjdjMCAxOC42NjY2NjctMS42IDMzLjA2NjY2Ny00LjI2NjY2NyA0My4yLTMuNzMzMzMzIDEzLjMzMzMzMy0xMC42NjY2NjcgMjQtMjAuMjY2NjY2IDMyLTkuNiA4LTIyLjQgMTEuNzMzMzMzLTM4LjQgMTEuNzMzMzMzLTE3LjYgMC41MzMzMzMtMzItNS44NjY2NjctNDIuMTMzMzM0LTE4LjEzMzMzM3ogbTYxNiAyMDIuMTMzMzMzSDIzNS43MzMzMzN2LTk4LjEzMzMzM2g1NTUuNzMzMzM0djk4LjEzMzMzM3pNODUzLjMzMzMzMyA2NzJoLTM4LjRsLTc2LjI2NjY2Ni0xNDcuNzMzMzMzVjY3MmgtMzUuMlY0NDQuOGgzNy4zMzMzMzNsNzcuMzMzMzMzIDE1MS40NjY2NjdWNDQ0LjhoMzUuMlY2NzJ6IiBwLWlkPSI3MTQ0Ij48L3BhdGg+PHBhdGggZD0iTTU4MS4zMzMzMzMgNDgwLjUzMzMzM2MtMTUuNDY2NjY3IDAtMjguMjY2NjY3IDYuNC0zNy44NjY2NjYgMTkuMi05LjYgMTIuOC0xNC40IDMyLjUzMzMzMy0xNC40IDU4LjY2NjY2NyAwIDI1LjYgNC44IDQ1LjMzMzMzMyAxNC45MzMzMzMgNTguMTMzMzMzIDEwLjEzMzMzMyAxMy4zMzMzMzMgMjIuNCAxOS43MzMzMzMgMzcuODY2NjY3IDE5LjczMzMzNCAxNS40NjY2NjcgMCAyNy43MzMzMzMtNi40IDM3LjMzMzMzMy0xOS43MzMzMzQgOS42LTEzLjMzMzMzMyAxNC40LTMzLjA2NjY2NyAxNC40LTU5LjIgMC0yNi4xMzMzMzMtNC44LTQ1LjMzMzMzMy0xNC40LTU4LjEzMzMzMy05LjYtMTIuMjY2NjY3LTIxLjg2NjY2Ny0xOC42NjY2NjctMzcuODY2NjY3LTE4LjY2NjY2N3oiIHAtaWQ9IjcxNDUiPjwvcGF0aD48L3N2Zz4=";
|
23825 | var __glob_0_13 = Object.freeze({
|
23826 | __proto__: null,
|
23827 | [Symbol.toStringTag]: "Module",
|
23828 | "default": GenerateJson
|
23829 | });
|
23830 | var Grid = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMwNTcxMzM5NDg0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI4MTY2IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTc5NC4xNyAxNDcuOTFjNDUuMTYgMC4yIDgxLjcxIDM2Ljc2IDgxLjkyIDgxLjkydjU2NC4zNGMtMC4yIDQ1LjE2LTM2Ljc2IDgxLjcxLTgxLjkyIDgxLjkySDIyOS44M2MtNDUuMTYtMC4yLTgxLjcxLTM2Ljc2LTgxLjkyLTgxLjkyVjIyOS44M2MwLjItNDUuMTYgMzYuNzYtODEuNzEgODEuOTItODEuOTJoNTY0LjM0bTAtNDUuNTFIMjI5LjgzYy03MC4wOSAwLTEyNy40MyA1Ny4zNC0xMjcuNDMgMTI3LjQzdjU2NC4zNGMwIDcwLjA4IDU3LjM0IDEyNy40MyAxMjcuNDMgMTI3LjQzaDU2NC4zNGM3MC4wOCAwIDEyNy40My01Ny4zNCAxMjcuNDMtMTI3LjQzVjIyOS44M2MwLTcwLjA5LTU3LjM0LTEyNy40My0xMjcuNDMtMTI3LjQzeiBtMCAwIiBwLWlkPSIyODE2NyI+PC9wYXRoPjxwYXRoIGQ9Ik00ODkuNzQgMTA1LjU1aDQ0LjUydjgxMy44OWgtNDQuNTJ6IiBwLWlkPSIyODE2OCI+PC9wYXRoPjwvc3ZnPg==";
|
23831 | var __glob_0_14 = Object.freeze({
|
23832 | __proto__: null,
|
23833 | [Symbol.toStringTag]: "Module",
|
23834 | "default": Grid
|
23835 | });
|
23836 | var Icon = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMwNTcxMzMzMzI4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI4MDM1IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTc1OS40NjY2NjcgNzU1LjQ1Nkg1ODEuODM2OGMtMTQuNDIxMzMzIDAtMjYuMTEyIDEyLjQ3NTczMy0yNi4xMTIgMjcuODY5ODY3djE2OC42MTg2NjZoMjguNDMzMDY3TDc1OS40NjY2NjcgNzYwLjQzOTQ2N3YtNC45ODM0Njd6TTc1OS40NjY2NjcgNjk5LjczMzMzM3YtODguMTgzNDY2YzAtMTUuMTg5MzMzIDExLjQ2ODgtMjcuNDc3MzMzIDI1LjYtMjcuNDc3MzM0czI1LjYgMTIuMjg4IDI1LjYgMjcuNDc3MzM0djE2MC4xMzY1MzNjMCA3LjIxOTItMi42NDUzMzMgMTQuMTMxMi03LjMzODY2NyAxOS4yODUzMzNMNjEzLjE1NDEzMyA5OTguNzA3MmEyNC43NDY2NjcgMjQuNzQ2NjY3IDAgMCAxLTE4LjI2MTMzMyA4LjIyNjEzM0gyMTEuNjI2NjY3QzE0Ni42MDI2NjcgMTAwNi45MzMzMzMgOTMuODY2NjY3IDk1MC4zMDYxMzMgOTMuODY2NjY3IDg4MC40NTIyNjdWMTQzLjUzMDY2N0M5My44NjY2NjcgNzMuNjkzODY3IDE0Ni42MDI2NjcgMTcuMDY2NjY3IDIxMS42MjY2NjcgMTcuMDY2NjY3aDQ4MS4yOEM3NTcuOTMwNjY3IDE3LjA2NjY2NyA4MTAuNjY2NjY3IDczLjY5Mzg2NyA4MTAuNjY2NjY3IDE0My41NDc3MzN2NDguOTMwMTM0YzAgMTUuMTg5MzMzLTExLjQ2ODggMjcuNDc3MzMzLTI1LjYgMjcuNDc3MzMzcy0yNS42LTEyLjI4OC0yNS42LTI3LjQ3NzMzM1YxNDMuNTMwNjY3YzAtMzkuNDc1Mi0yOS43OTg0LTcxLjQ5MjI2Ny02Ni41Ni03MS40OTIyNjdIMjExLjYyNjY2N2MtMzYuNzYxNiAwLTY2LjU2IDMyLjAxNzA2Ny02Ni41NiA3MS41MDkzMzN2NzM2Ljg4NzQ2N2MwIDM5LjQ3NTIgMjkuNzk4NCA3MS40OTIyNjcgNjYuNTYgNzEuNDkyMjY3SDUwMy40NjY2Njd2LTE2OC42MTg2NjdDNTAzLjQ2NjY2NyA3MzcuMTYwNTMzIDUzOC41NTU3MzMgNjk5LjczMzMzMyA1ODEuODM2OCA2OTkuNzMzMzMzSDc1OS40NjY2Njd6TTM0OC45OTYyNjcgMjczLjA2NjY2N2MyOC43NzQ0IDAgNTAuMjEwMTMzIDUuODE5NzMzIDYzLjg4MDUzMyAxNy44MTc2IDE0LjU1Nzg2NyAxMi42ODA1MzMgMjAuNDYyOTMzIDMyLjU0NjEzMyAxNy40NDIxMzMgNTkuMjcyNTMzaC0zOS43NjUzMzNjLTAuMzQxMzMzLTE1LjA2OTg2Ny00LjY0MjEzMy0yNi4wNDM3MzMtMTIuMjE5NzMzLTMyLjU0NjEzMy03LjUwOTMzMy02Ljg2MDgtMjAuNTk5NDY3LTkuOTMyOC0zOC40MTcwNjctOS45MzI4LTE1LjQyODI2NyAwLTI3LjQ3NzMzMyAyLjA0OC0zNi42MDggNi41MDI0LTExLjMzMjI2NyA1LjEzNzA2Ny0xNy44Njg4IDEzLjcwNDUzMy0yMC4yMjQgMjUuMzYxMDY2LTIuMDgyMTMzIDEwLjI3NDEzMyAxLjY1NTQ2NyAxOC44NDE2IDEyLjA0OTA2NyAyNS4wMDI2NjcgNC41OTA5MzMgMi43MzA2NjcgMTcuNTc4NjY3IDcuODg0OCAzOC43NDEzMzMgMTUuMDg2OTMzIDMxLjE2MzczMyAxMC4yNzQxMzMgNTAuNzM5MiAxOC41MDAyNjcgNTkuMjIxMzMzIDIzLjk3ODY2NyAxOC42NTM4NjcgMTIuNjgwNTMzIDI1LjczNjUzMyAzMC4xMzk3MzMgMjEuMTYyNjY3IDUyLjc1MzA2Ny00LjQ1NDQgMjEuOTMwNjY3LTE2LjU3MTczMyAzOS40MjQtMzYuMjY2NjY3IDUyLjA4NzQ2Ni0xOS42MjY2NjcgMTIuMzM5Mi00NS4yOTQ5MzMgMTguODQxNi03Ni40NTg2NjYgMTguODQxNi0zMC4xNTY4IDAtNTIuNjE2NTMzLTUuODE5NzMzLTY3LjAzNzg2Ny0xNy40NzYyNjYtMTcuNjQ2OTMzLTE0LjM4NzItMjQuMzcxMi0zNy4wMDA1MzMtMTkuNzQ2MTMzLTY4LjE4MTMzNGgzOS43MzEyYy0xLjAwNjkzMyAxOC41MDAyNjcgMi43OTg5MzMgMzEuODYzNDY3IDExLjgxMDEzMyAzOS43NDgyNjcgOC4yMDkwNjcgNi44NjA4IDIyLjE4NjY2NyAxMC42MTU0NjcgNDIuMzkzNiAxMC42MTU0NjcgMTcuODE3NiAwIDMyLjgzNjI2Ny0zLjA3MiA0NC4yODgtOC45MDg4IDExLjUzNzA2Ny02LjE2MTA2NyAxOC42MDI2NjctMTQuMDQ1ODY3IDIwLjcwMTg2Ny0yNC4zMiAyLjY0NTMzMy0xMy4wMjE4NjctMy4xNTczMzMtMjMuMjk2LTE2LjcwODI2Ny0zMC44Mzk0NjctNC4zMDA4LTIuMzg5MzMzLTE4Ljk0NC03Ljg4NDgtNDQuMzU2MjY3LTE2LjA5Mzg2Ny0yOC4xOTQxMzMtOS41OTE0NjctNDUuNjUzMzMzLTE2LjQ1MjI2Ny01Mi4wMTkyLTIwLjU2NTMzMy0xNi41NTQ2NjctMTEuMjk4MTMzLTIyLjQ1OTczMy0yNy43NTA0LTE4LjA5MDY2Ni00OS4zMjI2NjcgNC4zODYxMzMtMjEuNjA2NCAxNi43NzY1MzMtMzguNzQxMzMzIDM3Ljc2ODUzMy01MS4wNjM0NjZDMjk5Ljg2MTMzMyAyNzguODY5MzMzIDMyMi41OTQxMzMgMjczLjA2NjY2NyAzNDkuMDEzMzMzIDI3My4wNjY2Njd6IG0xMjIuNTA0NTMzIDQuNzk1NzMzaDQzLjUybDI2LjY5MjI2NyAxOTkuNDA2OTMzaDEuMDI0bDEwNy42MjI0LTE5OS40MDY5MzNoNDMuNTJsLTEzNi42Njk4NjcgMjQ0LjYzMzZoLTQ4LjI5ODY2N2wtMzcuNDEwMTMzLTI0NC42MzM2ek04MjcuOTM4MTMzIDI3My4wNjY2NjdjMzEuNTIyMTMzIDAgNTQuODAxMDY3IDYuODYwOCA3MC4xMDk4NjcgMjAuOTA2NjY2IDE0LjY5NDQgMTMuNzA0NTMzIDIxLjU1NTIgMzMuOTExNDY3IDIwLjQ0NTg2NyA2MS4zMjA1MzRIODc4LjA4Yy0wLjIzODkzMy0xNS43NTI1MzMtNS40MTAxMzMtMjcuNDA5MDY3LTE0Ljc3OTczMy0zNS4yOTM4NjctOS43MTA5MzMtNy44Njc3MzMtMjQuMDEyOC0xMS42Mzk0NjctNDIuNTEzMDY3LTExLjYzOTQ2Ny0yMi45NTQ2NjcgMC00Mi42NDk2IDcuNTI2NC01OS4yMjEzMzMgMjMuMjk2LTE4LjA1NjUzMyAxNi40NTIyNjctMjkuOTAwOCAzOS40MDY5MzMtMzYuMDEwNjY3IDY5LjU0NjY2Ny01Ljg1Mzg2NyAyOC43OTE0NjctMy44NTcwNjcgNTEuMDYzNDY3IDYuMDI0NTMzIDY2LjQ3NDY2NyAxMC43MTc4NjcgMTYuNDUyMjY3IDMwLjk3NiAyNC42NjEzMzMgNjAuNzkxNDY3IDI0LjY2MTMzMyAxMS42Mzk0NjcgMCAyMi44NjkzMzMtMS4zNjUzMzMgMzMuNzIzNzMzLTQuMDk2YTE0MC40MjQ1MzMgMTQwLjQyNDUzMyAwIDAgMCAyOC42NzItMTEuMzE1MmwxMC4yMjI5MzQtNTAuMzYzNzMzaC02NC43NjhsNi45NjMyLTM0LjI2OTg2N2gxMDQuODQwNTMzbC0yMC45OTIgMTAzLjQ3NTJhMTgwLjAxOTIgMTgwLjAxOTIgMCAwIDEtNDkuMjcxNDY3IDIzLjI5NmMtMTguOTI2OTMzIDUuNDk1NDY3LTM5LjAxNDQgOC4yMjYxMzMtNjAuOTI4IDguMjI2MTMzLTM5LjA4MjY2NyAwLTY2LjczMDY2Ny0xMi4zMzkyLTgzLjMwMjQtMzcuMDAwNTMzLTE1LjU2NDgtMjIuOTU0NjY3LTE5LjQ1Ni01Mi43NzAxMzMtMTIuMDgzMi04OS4wODggNy40NDEwNjctMzYuNjU5MiAyMy41MDA4LTY2Ljc5ODkzMyA0OC41MDM0NjctOTAuNDUzMzMzQzc2MC4zMzcwNjcgMjg1LjQwNTg2NyA3OTEuNjM3MzMzIDI3My4wNjY2NjcgODI3LjkzODEzMyAyNzMuMDY2NjY3eiIgcC1pZD0iMjgwMzYiPjwvcGF0aD48L3N2Zz4=";
|
23837 | var __glob_0_15 = Object.freeze({
|
23838 | __proto__: null,
|
23839 | [Symbol.toStringTag]: "Module",
|
23840 | "default": Icon
|
23841 | });
|
23842 | var Image = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQ0MjI1MDI3MTA5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijc4MTEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNOTI4IDE2MEg5NmMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2NjQwYzAgMTcuNyAxNC4zIDMyIDMyIDMyaDgzMmMxNy43IDAgMzItMTQuMyAzMi0zMlYxOTJjMC0xNy43LTE0LjMtMzItMzItMzJ6IG0tNDAgNjMySDEzNnYtMzkuOWwxMzguNS0xNjQuMyAxNTAuMSAxNzhMNjU4LjEgNDg5IDg4OCA3NjEuNlY3OTJ6IG0wLTEyOS44TDY2NC4yIDM5Ni44Yy0zLjItMy44LTktMy44LTEyLjIgMEw0MjQuNiA2NjYuNGwtMTQ0LTE3MC43Yy0zLjItMy44LTktMy44LTEyLjIgMEwxMzYgNjUyLjdWMjMyaDc1MnY0MzAuMnoiIHAtaWQ9Ijc4MTIiPjwvcGF0aD48cGF0aCBkPSJNMzA0IDQ1NmM0OC42IDAgODgtMzkuNCA4OC04OHMtMzkuNC04OC04OC04OC04OCAzOS40LTg4IDg4IDM5LjQgODggODggODh6IG0wLTExNmMxNS41IDAgMjggMTIuNSAyOCAyOHMtMTIuNSAyOC0yOCAyOC0yOC0xMi41LTI4LTI4IDEyLjUtMjggMjgtMjh6IiBwLWlkPSI3ODEzIj48L3BhdGg+PC9zdmc+";
|
23843 | var __glob_0_16 = Object.freeze({
|
23844 | __proto__: null,
|
23845 | [Symbol.toStringTag]: "Module",
|
23846 | "default": Image
|
23847 | });
|
23848 | var Input = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyNDcyMjU4OTU5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijk3NTMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODk2IDIyNEgxMjhjLTM1LjIgMC02NCAyOC44LTY0IDY0djQ0OGMwIDM1LjIgMjguOCA2NCA2NCA2NGg3NjhjMzUuMiAwIDY0LTI4LjggNjQtNjRWMjg4YzAtMzUuMi0yOC44LTY0LTY0LTY0eiBtMCA0ODBjMCAxOS4yLTEyLjggMzItMzIgMzJIMTYwYy0xOS4yIDAtMzItMTIuOC0zMi0zMlYzMjBjMC0xOS4yIDEyLjgtMzIgMzItMzJoNzA0YzE5LjIgMCAzMiAxMi44IDMyIDMydjM4NHoiIHAtaWQ9Ijk3NTQiPjwvcGF0aD48cGF0aCBkPSJNMjI0IDM1MmMtMTkuMiAwLTMyIDEyLjgtMzIgMzJ2MjU2YzAgMTYgMTIuOCAzMiAzMiAzMnMzMi0xMi44IDMyLTMyVjM4NGMwLTE2LTEyLjgtMzItMzItMzJ6IiBwLWlkPSI5NzU1Ij48L3BhdGg+PC9zdmc+";
|
23849 | var __glob_0_17 = Object.freeze({
|
23850 | __proto__: null,
|
23851 | [Symbol.toStringTag]: "Module",
|
23852 | "default": Input
|
23853 | });
|
23854 | var InputNumber = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyNTc0NDAxNTE0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjYzMjciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODk2IDIyNEgxMjhjLTM1LjIgMC02NCAyOC44LTY0IDY0djQ0OGMwIDM1LjIgMjguOCA2NCA2NCA2NGg3NjhjMzUuMiAwIDY0LTI4LjggNjQtNjRWMjg4YzAtMzUuMi0yOC44LTY0LTY0LTY0eiBtMCA0ODBjMCAxOS4yLTEyLjggMzItMzIgMzJIMTYwYy0xOS4yIDAtMzItMTIuOC0zMi0zMlYzMjBjMC0xOS4yIDEyLjgtMzIgMzItMzJoNzA0YzE5LjIgMCAzMiAxMi44IDMyIDMydjM4NHoiIHAtaWQ9IjYzMjgiPjwvcGF0aD48cGF0aCBkPSJNMjkxLjIgNDEyLjhjLTEyLjggNi40LTIyLjQgMTIuOC0zNS4yIDE2djQxLjZjMjIuNC02LjQgNDEuNi0xNiA1NC40LTI4LjhWNjQwaDM4LjRWMzkzLjZIMzIwYy02LjQgMy4yLTE5LjIgMTIuOC0yOC44IDE5LjJ6TTQ4OS42IDU2MGMyMi40LTE2IDQxLjYtMjguOCA0OC0zOC40IDE2LTE2IDIyLjQtMzguNCAyMi40LTU3LjYgMC0yMi40LTYuNC0zOC40LTIyLjQtNTQuNC0xNi0xMi44LTM1LjItMTkuMi01Ny42LTE5LjItMjUuNiAwLTQ4IDkuNi02MC44IDI1LjYtMTYgMTYtMjIuNCAzOC40LTIyLjQgNjcuMmgzOC40YzAtMTkuMiAzLjItMzUuMiAxMi44LTQ0LjggNi40LTkuNiAxOS4yLTE2IDMyLTE2czI1LjYgMy4yIDMyIDkuNmM2LjQgNi40IDkuNiAxNiA5LjYgMjguOHMtNi40IDI1LjYtMTYgMzguNGMtNi40IDYuNC0xNiAxNi0zMiAyOC44LTI4LjggMTkuMi00NC44IDM1LjItNTQuNCA0NC44LTE2IDE5LjItMjIuNCA0MS42LTIyLjQgNjRoMTY2LjR2LTM1LjJINDQ0LjhjNi40LTEyLjggMjIuNC0yNS42IDQ0LjgtNDEuNnogbTIzMy42LTU0LjRjMjUuNi05LjYgMzguNC0yNS42IDM4LjQtNTQuNCAwLTIyLjQtNi40LTM4LjQtMjIuNC01MS4yLTE2LTEyLjgtMzUuMi0xOS4yLTU3LjYtMTkuMlM2NDAgMzg3LjIgNjI0IDQwMGMtMTYgMTIuOC0yNS42IDMyLTI1LjYgNTcuNmgzOC40YzAtMTYgNi40LTI1LjYgMTIuOC0zMiA2LjQtNi40IDE5LjItOS42IDMyLTkuNnMyNS42IDMuMiAzMiA5LjZjNi40IDYuNCA5LjYgMTYgOS42IDI4LjhzLTMuMiAyMi40LTkuNiAyOC44Yy02LjQgNi40LTE5LjIgOS42LTMyIDkuNmgtMTZ2MjguOGgxNmMxNiAwIDI1LjYgMy4yIDM1LjIgOS42IDkuNiA2LjQgMTIuOCAxNiAxMi44IDMyIDAgMTIuOC0zLjIgMjIuNC0xMi44IDI4LjgtOS42IDkuNi0xOS4yIDEyLjgtMzUuMiAxMi44LTEyLjggMC0yNS42LTMuMi0zMi0xMi44LTkuNi05LjYtMTIuOC0yMi40LTE2LTM4LjRoLTM4LjRjMy4yIDI4LjggMTIuOCA0OCAyOC44IDY0IDE2IDEyLjggMzUuMiAxOS4yIDYwLjggMTkuMiAyNS42IDAgNDgtNi40IDY0LTIyLjQgMTYtMTYgMjIuNC0zMiAyMi40LTU0LjQgMC0xNi0zLjItMjUuNi0xMi44LTM1LjItOS42LTYuNC0yMi40LTE2LTM1LjItMTkuMnoiIHAtaWQ9IjYzMjkiPjwvcGF0aD48L3N2Zz4=";
|
23855 | var __glob_0_18 = Object.freeze({
|
23856 | __proto__: null,
|
23857 | [Symbol.toStringTag]: "Module",
|
23858 | "default": InputNumber
|
23859 | });
|
23860 | var Item = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQxNTYwNDA0NDcyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjY5OTAiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNOTAyLjQgMjUzLjg2N0gyODMuNzMzYy0xMi44IDAtMjEuMzMzLTguNTM0LTIxLjMzMy0yMS4zMzRzOC41MzMtMjEuMzMzIDIxLjMzMy0yMS4zMzNIOTAyLjRjMTIuOCAwIDIxLjMzMyA4LjUzMyAyMS4zMzMgMjEuMzMzIDAgMTAuNjY3LTguNTMzIDIxLjMzNC0yMS4zMzMgMjEuMzM0eiBtLTc5NS43MzMtMjEuMzM0YTM2LjI2NyAzNi4yNjcgMCAxIDAgNzIuNTMzIDAgMzYuMjY3IDM2LjI2NyAwIDEgMC03Mi41MzMgMHpNOTAyLjQgNTM1LjQ2N0gyODMuNzMzYy0xMi44IDAtMjEuMzMzLTguNTM0LTIxLjMzMy0yMS4zMzRzOC41MzMtMjEuMzMzIDIxLjMzMy0yMS4zMzNIOTAyLjRjMTIuOCAwIDIxLjMzMyA4LjUzMyAyMS4zMzMgMjEuMzMzcy04LjUzMyAyMS4zMzQtMjEuMzMzIDIxLjMzNHogbS03OTUuNzMzLTIxLjMzNGEzNi4yNjcgMzYuMjY3IDAgMSAwIDcyLjUzMyAwIDM2LjI2NyAzNi4yNjcgMCAxIDAtNzIuNTMzIDB6TTkwMi40IDgxNy4wNjdIMjgzLjczM2MtMTIuOCAwLTIxLjMzMy04LjUzNC0yMS4zMzMtMjEuMzM0czguNTMzLTIxLjMzMyAyMS4zMzMtMjEuMzMzSDkwMi40YzEyLjggMCAyMS4zMzMgOC41MzMgMjEuMzMzIDIxLjMzMyAwIDEwLjY2Ny04LjUzMyAyMS4zMzQtMjEuMzMzIDIxLjMzNHogbS03OTUuNzMzLTIxLjMzNGEzNi4yNjcgMzYuMjY3IDAgMSAwIDcyLjUzMyAwIDM2LjI2NyAzNi4yNjcgMCAxIDAtNzIuNTMzIDB6IiBwLWlkPSI2OTkxIj48L3BhdGg+PC9zdmc+";
|
23861 | var __glob_0_19 = Object.freeze({
|
23862 | __proto__: null,
|
23863 | [Symbol.toStringTag]: "Module",
|
23864 | "default": Item
|
23865 | });
|
23866 | var Mentions = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyNTc0NDUyMzQwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjkyNjMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMzQxLjMzMzMzMyA1MTJhMTcwLjY2NjY2NyAxNTYuNDQ0NDQ0IDkwIDEgMCAzMTIuODg4ODg5IDAgMTcwLjY2NjY2NyAxNTYuNDQ0NDQ0IDkwIDEgMC0zMTIuODg4ODg5IDBaIiBwLWlkPSI5MjY0Ij48L3BhdGg+PHBhdGggZD0iTTUxMiAyNTZhMjU2IDI1NiAwIDAgMC03LjUzNzc3OCA1MTEuODg2MjIyTDUxMiA3NjhoMTQyLjIyMjIyMnY1Ni44ODg4ODloLTE0Mi4yMjIyMjJjLTE3Mi44IDAtMzEyLjg4ODg4OS0xNDAuMDg4ODg5LTMxMi44ODg4ODktMzEyLjg4ODg4OVMzMzkuMiAxOTkuMTExMTExIDUxMiAxOTkuMTExMTExYzE3MC4wNjkzMzMgMCAzMDguNDIzMTExIDEzNS42OCAzMTIuNzc1MTExIDMwNC42OTY4ODlMODI0Ljg4ODg4OSA1MTJ2NTYuODg4ODg5YTExMy43Nzc3NzggMTEzLjc3Nzc3OCAwIDAgMS0yMTEuNTk4MjIyIDU4LjE0MDQ0NEM1ODQuNzMyNDQ0IDY2MS4yMTk1NTYgNTQzLjU0NDg4OSA2ODIuNjY2NjY3IDQ5Ny43Nzc3NzggNjgyLjY2NjY2N2MtODYuNDE0MjIyIDAtMTU2LjQ0NDQ0NC03Ni40MDE3NzgtMTU2LjQ0NDQ0NS0xNzAuNjY2NjY3czcwLjAzMDIyMi0xNzAuNjY2NjY3IDE1Ni40NDQ0NDUtMTcwLjY2NjY2N2MzNy44MzExMTEgMCA3Mi41MzMzMzMgMTQuNjQ4ODg5IDk5LjU4NCAzOS4wNTQyMjNMNTk3LjMzMzMzMyAzNDEuMzMzMzMzaDU2Ljg4ODg4OXYyMjcuNTU1NTU2YTU2Ljg4ODg4OSA1Ni44ODg4ODkgMCAwIDAgMTEzLjYzNTU1NiA0LjI2NjY2N0w3NjggNTY4Ljg4ODg4OXYtNTYuODg4ODg5YTI1NiAyNTYgMCAwIDAtMjU2LTI1NnogbS0xNC4yMjIyMjIgMTQyLjIyMjIyMmMtNTMuODE2ODg5IDAtOTkuNTU1NTU2IDQ5Ljg5MTU1Ni05OS41NTU1NTYgMTEzLjc3Nzc3OHM0NS43Mzg2NjcgMTEzLjc3Nzc3OCA5OS41NTU1NTYgMTEzLjc3Nzc3OCA5OS41NTU1NTYtNDkuODkxNTU2IDk5LjU1NTU1NS0xMTMuNzc3Nzc4LTQ1LjczODY2Ny0xMTMuNzc3Nzc4LTk5LjU1NTU1NS0xMTMuNzc3Nzc4eiIgcC1pZD0iOTI2NSI+PC9wYXRoPjwvc3ZnPg==";
|
23867 | var __glob_0_20 = Object.freeze({
|
23868 | __proto__: null,
|
23869 | [Symbol.toStringTag]: "Module",
|
23870 | "default": Mentions
|
23871 | });
|
23872 | var Move = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQ0NDAyNzM2MDkzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU2NDIiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTAxLjA5NDQgMTAyMS44MjRjNi45Mzc2IDIuODkyOCAxNC44MjI0IDIuODkyOCAyMS44MTEyIDAgMy40MzA0LTEuNDMzNiA2LjUyOC0zLjQ4MTYgOS4xMTM2LTYuMDY3MiAwLjAyNTYgMCAwLjA3NjgtMC4wMjU2IDAuMDc2OC0wLjAyNTZsMTU4LjkyNDgtMTU4LjkyNDhjMTEuMTEwNC0xMS4xMTA0IDExLjExMDQtMjkuMTMyOCAwLTQwLjIxNzYtMTEuMDg0OC0xMS4wODQ4LTI5LjA4MTYtMTEuMDg0OC00MC4xNjY0IDAuMDI1NmwtMTEwLjQzODQgMTEwLjQxMjggMC4wMjU2LTMzNS4zNmMwLTE1LjY5MjgtMTIuNzIzMi0yOC40MTYtMjguNDE2LTI4LjQxNnMtMjguNDE2IDEyLjY5NzYtMjguNDE2IDI4LjM5MDRsMCAzMzUuMzg1Ni0xMTAuNDEyOC0xMTAuNDEyOGMtMTEuMTEwNC0xMS4wODQ4LTI5LjEwNzItMTEuMDg0OC00MC4xNDA4IDAtMTEuMTEwNCAxMS4xMTA0LTExLjEzNiAyOS4xMDcyLTAuMDUxMiA0MC4xOTJsMTU4Ljk1MDQgMTU4LjkyNDhjMC44MTkyIDAuODE5MiAxLjg5NDQgMS4xNzc2IDIuODE2IDEuODY4OEM0OTYuNzE2OCAxMDE5LjE4NzIgNDk4LjY4OCAxMDIwLjgyNTYgNTAxLjA5NDQgMTAyMS44MjR6IiBwLWlkPSI1NjQzIj48L3BhdGg+PHBhdGggZD0iTTUyMi45MDU2IDIuMTc2Yy02LjkzNzYtMi44OTI4LTE0LjgyMjQtMi44OTI4LTIxLjc4NTYgMEM0OTcuNjg5NiAzLjU4NCA0OTQuNTkyIDUuNjMyIDQ5MS45ODA4IDguMjE3NmMtMC4wMjU2IDAtMC4wNzY4IDAuMDUxMi0wLjA3NjggMC4wNTEyTDMzMi45NzkyIDE2Ny4xNjhjLTExLjExMDQgMTEuMTEwNC0xMS4xMTA0IDI5LjEzMjggMCA0MC4yMTc2IDExLjA4NDggMTEuMDg0OCAyOS4wODE2IDExLjA4NDggNDAuMTY2NC0wLjAyNTZsMTEwLjQzODQtMTEwLjQxMjgtMC4wMjU2IDMzNS4zNmMwIDE1LjY5MjggMTIuNzIzMiAyOC40MTYgMjguNDE2IDI4LjQxNiAxNS42OTI4IDAgMjguNDQxNi0xMi42OTc2IDI4LjQ0MTYtMjguMzkwNEw1NDAuNDE2IDk2Ljk0NzJsMTEwLjQxMjggMTEwLjQxMjhjMTEuMTEwNCAxMS4wODQ4IDI5LjEwNzIgMTEuMDg0OCA0MC4xNDA4IDAgMTEuMTEwNC0xMS4xMTA0IDExLjE2MTYtMjkuMTA3MiAwLjA1MTItNDAuMTkybC0xNTguOTUwNC0xNTguODk5MmMtMC44MTkyLTAuODQ0OC0xLjg5NDQtMS4yMDMyLTIuODE2LTEuODk0NEM1MjcuMjgzMiA0LjgxMjggNTI1LjMxMiAzLjE3NDQgNTIyLjkwNTYgMi4xNzZ6IiBwLWlkPSI1NjQ0Ij48L3BhdGg+PHBhdGggZD0iTTEwMjEuODI0IDUyMi45MDU2YzIuODkyOC02LjkzNzYgMi44OTI4LTE0LjgyMjQgMC0yMS44MTEyLTEuNDA4LTMuNDMwNC0zLjQ1Ni02LjUyOC02LjA0MTYtOS4xMTM2IDAtMC4wMjU2LTAuMDUxMi0wLjA3NjgtMC4wNTEyLTAuMDc2OGwtMTU4Ljg5OTItMTU4LjkyNDhjLTExLjExMDQtMTEuMTEwNC0yOS4xNTg0LTExLjExMDQtNDAuMjQzMiAwLTExLjA1OTIgMTEuMDg0OC0xMS4wNTkyIDI5LjA4MTYgMC4wNTEyIDQwLjE2NjRsMTEwLjM4NzIgMTEwLjQzODQtMzM1LjM2LTAuMDI1NmMtMTUuNjkyOCAwLTI4LjM5MDQgMTIuNzIzMi0yOC4zOTA0IDI4LjQxNnMxMi42OTc2IDI4LjQxNiAyOC4zOTA0IDI4LjQxNmwzMzUuMzYgMC0xMTAuMzg3MiAxMTAuNDEyOGMtMTEuMTEwNCAxMS4xMTA0LTExLjExMDQgMjkuMTA3MiAwIDQwLjE0MDggMTEuMTEwNCAxMS4xMTA0IDI5LjEwNzIgMTEuMTM2IDQwLjE5MiAwLjA1MTJsMTU4Ljg5OTItMTU4Ljk1MDRjMC44NDQ4LTAuODE5MiAxLjIwMzItMS44OTQ0IDEuODk0NC0yLjgxNkMxMDE5LjE4NzIgNTI3LjI4MzIgMTAyMC44MjU2IDUyNS4zMTIgMTAyMS44MjQgNTIyLjkwNTZ6IiBwLWlkPSI1NjQ1Ij48L3BhdGg+PHBhdGggZD0iTTIuMTc2IDUwMS4wOTQ0Yy0yLjg5MjggNi45Mzc2LTIuODkyOCAxNC44MjI0IDAgMjEuNzg1NiAxLjQwOCAzLjQ1NiAzLjQ1NiA2LjU1MzYgNi4wNDE2IDkuMTM5MmwwLjA1MTIgMC4wNTEyIDE1OC44OTkyIDE1OC45NTA0YzExLjExMDQgMTEuMTEwNCAyOS4xNTg0IDExLjExMDQgNDAuMjQzMiAwIDExLjA1OTItMTEuMTEwNCAxMS4wNTkyLTI5LjEwNzItMC4wNTEyLTQwLjE5MmwtMTEwLjM4NzItMTEwLjQzODQgMzM1LjM2IDAuMDUxMmMxNS42OTI4IDAgMjguMzkwNC0xMi43NDg4IDI4LjM5MDQtMjguNDE2IDAtMTUuNjkyOC0xMi42OTc2LTI4LjQ0MTYtMjguMzkwNC0yOC40NDE2bC0zMzUuMzYgMC4wMjU2IDExMC4zODcyLTExMC40MTI4YzExLjExMDQtMTEuMTEwNCAxMS4xMTA0LTI5LjEwNzIgMC00MC4xNDA4LTExLjExMDQtMTEuMTEwNC0yOS4xMDcyLTExLjE2MTYtNDAuMTkyLTAuMDUxMmwtMTU4Ljg5OTIgMTU4Ljk1MDRjLTAuODQ0OCAwLjgxOTItMS4yMDMyIDEuODk0NC0xLjg5NDQgMi44MTZDNC44MTI4IDQ5Ni43MTY4IDMuMTc0NCA0OTguNjg4IDIuMTc2IDUwMS4wOTQ0eiIgcC1pZD0iNTY0NiI+PC9wYXRoPjwvc3ZnPg==";
|
23873 | var __glob_0_21 = Object.freeze({
|
23874 | __proto__: null,
|
23875 | [Symbol.toStringTag]: "Module",
|
23876 | "default": Move
|
23877 | });
|
23878 | var Paragraph = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMxODQzNzQyNDA4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEwOTgyIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTUxMiAyNTZ2NjQwaC04NS4zMzMzMzN2LTIxMy4zMzMzMzNhMjU2IDI1NiAwIDEgMSAwLTUxMmg0MjYuNjY2NjY2djg1LjMzMzMzM2gtMTI4djY0MGgtODUuMzMzMzMzVjI1NmgtMTI4eiBtLTg1LjMzMzMzMyAwYTE3MC42NjY2NjcgMTcwLjY2NjY2NyAwIDEgMCAwIDM0MS4zMzMzMzNWMjU2eiIgcC1pZD0iMTA5ODMiPjwvcGF0aD48L3N2Zz4=";
|
23879 | var __glob_0_22 = Object.freeze({
|
23880 | __proto__: null,
|
23881 | [Symbol.toStringTag]: "Module",
|
23882 | "default": Paragraph
|
23883 | });
|
23884 | var Password = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyNDcyMjQ1ODQ5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjkzNTgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODY4LjU5MzA0NiA0MDMuODMyNDQyYy0zMC4wODExMDktMjguODQ0OTU1LTcwLjAzNzEyMy00NC43NTMyNzMtMTEyLjYyNDA1Ny00NC43NTMyNzNMMjY1Ljk0OTYwNiAzNTkuMDc5MTY4Yy00Mi41NTQxODggMC04Mi41MTAyMDIgMTUuOTA4MzE4LTExMi40Njk1MzggNDQuNjkwODUyLTMwLjIzNjY1MiAyOC43ODI1MzMtNDYuODU3MTkxIDY3LjIyMjAwNy00Ni44NTcxOTEgMTA4LjE5ODI1OGwwIDI5NC4wNzk3ODJjMCA0MC45NzcyNzMgMTYuNjE5NTE2IDc5LjQxNDcwMSA0Ni43MDI2NzIgMTA4LjEzNjg1OSAyOS45NTkzMzYgMjguODQ0OTU1IDcwLjA2OTg2OSA0NC44MTQ2NzIgMTEyLjYyNDA1NyA0NC44MTQ2NzJsNDkwLjAxOTM4MyAwYzQyLjU4NTkxMSAwIDgyLjY5NjQ0NC0xNS45Njk3MTcgMTEyLjYyNDA1Ny00NC44MTQ2NzIgMzAuMDgyMTMyLTI4Ljg0NDk1NSA0Ni41Nzk4NzUtNjcuMjIyMDA3IDQ2LjU3OTg3NS0xMDguMTM2ODU5TDkxNS4xNzI5MjEgNTExLjk2ODI3OEM5MTUuMTcxODk3IDQ3MS4wNTM0MjYgODk4LjY3NTE3OCA0MzIuNjc3Mzk3IDg2OC41OTMwNDYgNDAzLjgzMjQ0MnpNODQxLjgyMTMwOSA4MDYuMDQ5MDgzYzAgMjIuMDk4Mjk3LTguODgyMjk4IDQyLjc3MjE1Mi0yNS4wOTk2NTQgNTguMzA2OTY0LTE2LjE1NDkzNSAxNS42NjE3MDEtMzcuODE5MzUgMjQuMjAzMjM4LTYwLjc1MjY2NiAyNC4yMDMyMzhMMjY1Ljk0OTYwNiA4ODguNTU5Mjg1Yy0yMi45MzQzMzkgMC00NC41NjcwMzItOC41NDI1Ni02MC44Nzc1MDktMjQuMjY0NjM3LTE2LjE4NjY1Ny0xNS40NzQ0MzYtMjUuMDY3OTMyLTM2LjE0ODI5MS0yNS4wNjc5MzItNTguMjQ2NTg5TDE4MC4wMDQxNjUgNTExLjk2ODI3OGMwLTIyLjAzNTg3NiA4Ljg4MTI3NC00Mi43NzIxNTIgMjUuMTkyNzc1LTU4LjMwNzk4NyAxNi4xODY2NTctMTUuNTM2ODU4IDM3LjgxOTM1LTI0LjEzOTc5MyA2MC43NTM2ODktMjQuMTM5NzkzbDQ5MC4wMTkzODMgMGMyMi45MzMzMTUgMCA0NC41OTc3MzEgOC42MDI5MzUgNjAuNzUyNjY2IDI0LjEzOTc5MyAxNi4yMTgzOCAxNS41MzU4MzUgMjUuMDk5NjU0IDM2LjI3MjExMiAyNS4wOTk2NTQgNTguMzA3OTg3TDg0MS44MjIzMzIgODA2LjA0OTA4M3pNNTEwLjk3NDEzNiAxMzUuNDQwNzE1YzExNC45MTQyMTYgMCAyMDguMzE4NTM2IDg5Ljc1MjE0IDIwOC4zMTg1MzYgMjAwLjA1NTMzOGw3My4zNTA1ODggMGMwLTE0OS4xMTMxMDktMTI2LjM2NjAzNi0yNzAuNDk2NjY3LTI4MS42NjkxMjQtMjcwLjQ5NjY2Ny0xNTUuMzMzNzg4IDAtMjgxLjY5OTgyNCAxMjEuMzgzNTU4LTI4MS42OTk4MjQgMjcwLjQ5NjY2N2w3My4zNTA1ODggMEMzMDIuNjIzODc3IDIyNS4xOTM4NzkgMzk2LjA1OTkxOSAxMzUuNDQwNzE1IDUxMC45NzQxMzYgMTM1LjQ0MDcxNXpNNDc0LjI5OTg2NSA3NDcuMjQ0NzkybDczLjM1MDU4OCAwTDU0Ny42NTA0NTMgNjI5LjU3Njg1OWwtNzMuMzUwNTg4IDBMNDc0LjI5OTg2NSA3NDcuMjQ0NzkyeiIgcC1pZD0iOTM1OSI+PC9wYXRoPjwvc3ZnPg==";
|
23885 | var __glob_0_23 = Object.freeze({
|
23886 | __proto__: null,
|
23887 | [Symbol.toStringTag]: "Module",
|
23888 | "default": Password
|
23889 | });
|
23890 | var Preview = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjE2NDA3MTg3MDU0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjM1OTUiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTEyIDczNmEyMjQgMjI0IDAgMSAxIDAtNDQ4IDIyNCAyMjQgMCAwIDEgMCA0NDh6IG0wLTY0YTE2MCAxNjAgMCAxIDAgMC0zMjAgMTYwIDE2MCAwIDAgMCAwIDMyMHoiIHAtaWQ9IjM1OTYiPjwvcGF0aD48cGF0aCBkPSJNNTEyIDg2NEMzMjMuMjMyIDg2NCAxNTQuMTQ0IDc1MS4yNjQgNS40NCA1MjkuODU2YTMyIDMyIDAgMCAxIDAtMzUuNzEyQzE1NC4xNDQgMjcyLjcwNCAzMjMuMiAxNjAgNTEyIDE2MGMxODguNzY4IDAgMzU3Ljg1NiAxMTIuNzM2IDUwNi41NiAzMzQuMTQ0YTMyIDMyIDAgMCAxIDAgMzUuNzEyQzg2OS44NTYgNzUxLjI5NiA3MDAuOCA4NjQgNTEyIDg2NHogbTAtNjRjMTU5Ljg0IDAgMzA2LjcyLTk0Ljc4NCA0NDEuMjQ4LTI4OEM4MTguNzIgMzE4Ljc4NCA2NzEuODQgMjI0IDUxMiAyMjRjLTE1OS44NCAwLTMwNi43MiA5NC43ODQtNDQxLjI0OCAyODhDMjA1LjI4IDcwNS4yMTYgMzUyLjE2IDgwMCA1MTIgODAweiIgcC1pZD0iMzU5NyI+PC9wYXRoPjwvc3ZnPg==";
|
23891 | var __glob_0_24 = Object.freeze({
|
23892 | __proto__: null,
|
23893 | [Symbol.toStringTag]: "Module",
|
23894 | "default": Preview
|
23895 | });
|
23896 | var RadioGroup = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyOTkzNzQ5NzIzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjczMzUiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODQwIDQ4IDE4NCA0OEMxMTcuNzI4IDQ4IDY0IDEwMS43MjggNjQgMTY4bDAgNjU2YzAgNjYuMjcyIDUzLjcyOCAxMjAgMTIwIDEyMGw2NTYgMGM2Ni4yNzIgMCAxMjAtNTMuNzI4IDEyMC0xMjBMOTYwIDE2OEM5NjAgMTAxLjcyOCA5MDYuMjcyIDQ4IDg0MCA0OHpNODg4IDc3NmMwIDY2LjI3Mi0yOS43MjggOTYtOTYgOTZMMjMyIDg3MmMtNjYuMjcyIDAtOTYtMjkuNzI4LTk2LTk2TDEzNiAyMTZjMC02Ni4yNzIgMjkuNzI4LTk2IDk2LTk2bDU2MCAwYzY2LjI3MiAwIDk2IDI5LjcyOCA5NiA5Nkw4ODggNzc2ek03NTIgMzg0Yy02MS44NTYgMC0xMTIgNTAuMTQ0LTExMiAxMTJzNTAuMTQ0IDExMiAxMTIgMTEyIDExMi01MC4xNDQgMTEyLTExMlM4MTMuODU2IDM4NCA3NTIgMzg0ek03NTIgNTY4Yy0zOS43NjggMC03Mi0zMi4yMzItNzItNzJzMzIuMjMyLTcyIDcyLTcyIDcyIDMyLjIzMiA3MiA3MlM3OTEuNzY4IDU2OCA3NTIgNTY4ek0yNzIgMzg0Yy02MS44NTYgMC0xMTIgNTAuMTQ0LTExMiAxMTJzNTAuMTQ0IDExMiAxMTIgMTEyIDExMi01MC4xNDQgMTEyLTExMlMzMzMuODU2IDM4NCAyNzIgMzg0ek0yNzIgNTY4Yy0zOS43NjggMC03Mi0zMi4yMzItNzItNzJzMzIuMjMyLTcyIDcyLTcyIDcyIDMyLjIzMiA3MiA3MlMzMTEuNzY4IDU2OCAyNzIgNTY4ek0yNzIgNDcyYy0xMy4yNTYgMC0yNCAxMC43NDQtMjQgMjRzMTAuNzQ0IDI0IDI0IDI0IDI0LTEwLjc0NCAyNC0yNFMyODUuMjU2IDQ3MiAyNzIgNDcyek01MTIgNDcyYy0xMy4yNTYgMC0yNCAxMC43NDQtMjQgMjRzMTAuNzQ0IDI0IDI0IDI0IDI0LTEwLjc0NCAyNC0yNFM1MjUuMjU2IDQ3MiA1MTIgNDcyek01MTIgMzg0Yy02MS44NTYgMC0xMTIgNTAuMTQ0LTExMiAxMTJzNTAuMTQ0IDExMiAxMTIgMTEyIDExMi01MC4xNDQgMTEyLTExMlM1NzMuODU2IDM4NCA1MTIgMzg0ek01MTIgNTY4Yy0zOS43NjggMC03Mi0zMi4yMzItNzItNzJzMzIuMjMyLTcyIDcyLTcyIDcyIDMyLjIzMiA3MiA3MlM1NTEuNzY4IDU2OCA1MTIgNTY4ek03NTIgNDcyYy0xMy4yNTYgMC0yNCAxMC43NDQtMjQgMjRzMTAuNzQ0IDI0IDI0IDI0IDI0LTEwLjc0NCAyNC0yNFM3NjUuMjU2IDQ3MiA3NTIgNDcyeiIgcC1pZD0iNzMzNiI+PC9wYXRoPjwvc3ZnPg==";
|
23897 | var __glob_0_25 = Object.freeze({
|
23898 | __proto__: null,
|
23899 | [Symbol.toStringTag]: "Module",
|
23900 | "default": RadioGroup
|
23901 | });
|
23902 | var RangePicker = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyMzg1NjQ5MTYyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQzMjEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODYzLjggMzQxLjhIMTYwLjNjLTEyLjIgMC0yMi4yIDkuOS0yMi4yIDIyLjJ2NTI5LjRjMCAzLjQgMi44IDYuMiA2LjIgNi4yaDczNS41YzMuNCAwIDYuMi0yLjggNi4yLTYuMlYzNjRjMC0xMi4yLTkuOS0yMi4yLTIyLjItMjIuMnogbS0zNy43IDQ5MS42YzAgMy40LTIuOCA2LjItNi4yIDYuMkgyMDQuMmMtMy40IDAtNi4yLTIuOC02LjItNi4yVjQyNGMwLTEyLjMgOS45LTIyLjIgMjIuMi0yMi4yaDU4My42YzEyLjIgMCAyMi4yIDkuOSAyMi4yIDIyLjJ2NDA5LjR6TTMzMC4xIDYuMmgtMjEuNmMtMTAuNiAwLTE5LjIgOC42LTE5LjIgMTkuMlYxNjdjMCAxMC42IDguNiAxOS4yIDE5LjIgMTkuMmgyMS42YzEwLjYgMCAxOS4yLTguNiAxOS4yLTE5LjJWMjUuNGMwLTEwLjYtOC42LTE5LjItMTkuMi0xOS4yek03MTUuNiA2LjJINjk0Yy0xMC42IDAtMTkuMiA4LjYtMTkuMiAxOS4yVjE2N2MwIDEwLjYgOC42IDE5LjIgMTkuMiAxOS4yaDIxLjZjMTAuNiAwIDE5LjItOC42IDE5LjItMTkuMlYyNS40YzAtMTAuNi04LjYtMTkuMi0xOS4yLTE5LjJ6IiBwLWlkPSI0MzIyIj48L3BhdGg+PHBhdGggZD0iTTc5MC4zIDY2LjJjLTEwLjYgMC0xOS4yIDguNi0xOS4yIDE5LjJ2MTE5LjFjMCAxMC42LTguNiAxOS4yLTE5LjIgMTkuMmgtOTQuMWMtMTAuNiAwLTE5LjItOC42LTE5LjItMTkuMnYtMTE5YzAtMTAuNi04LjYtMTkuMi0xOS4yLTE5LjJINDA0LjhjLTEwLjYgMC0xOS4yIDguNi0xOS4yIDE5LjJ2MTE5YzAgMTAuNi04LjYgMTkuMi0xOS4yIDE5LjJoLTk0LjFjLTEwLjYgMC0xOS4yLTguNi0xOS4yLTE5LjJ2LTExOWMwLTEwLjYtOC42LTE5LjItMTkuMi0xOS4ySDAuMVY5OTMuNWMwIDEzLjQgMTAuOSAyNC4zIDI0LjMgMjQuM2g5NzUuM2MxMy40IDAgMjQuMy0xMC45IDI0LjMtMjQuM1Y2Ni4ySDc5MC4zeiBtMTQ5LjUgODkxLjZIODQuNGMtMTMuNCAwLTI0LjMtMTAuOS0yNC4zLTI0LjNWMjgzLjdoMC4yVjE0NWMwLTEwLjYgOC42LTE5LjIgMTkuMi0xOS4yaDk0LjFjMTAuNiAwIDE5LjIgOC42IDE5LjIgMTkuMlYyNjQuNGMwIDEwLjYgOC42IDE5LjIgMTkuMiAxOS4yaDIxNC42YzEwLjYgMCAxOS4yLTguNiAxOS4yLTE5LjJWMTQ1YzAtMTAuNiA4LjYtMTkuMiAxOS4yLTE5LjJoOTQuMWMxMC42IDAgMTkuMiA4LjYgMTkuMiAxOS4yVjI2NC40YzAgMTAuNiA4LjYgMTkuMiAxOS4yIDE5LjJoMjE0LjZjMTAuNiAwIDE5LjItOC42IDE5LjItMTkuMlYxNDVjMC0xMC42IDguNi0xOS4yIDE5LjItMTkuMmg5NC4xYzEwLjYgMCAxOS4yIDguNiAxOS4yIDE5LjJ2MTM4LjZoMC4ydjY0OS44YzAuMSAxMy41LTEwLjggMjQuNC0yNC4yIDI0LjR6IiBwLWlkPSI0MzIzIj48L3BhdGg+PHBhdGggZD0iTTI4OS43IDUzNS4zbC0wLjMtMC4yYy00LjctMi44LTkuOS00LjctMTUuNS01LjdsLTMuMy0wLjUtMS43IDEuNmgtMy4ybC0xLjUgNC40Yy0xIDMuMS0xLjUgNi42LTEuNSAxMC41djMuMWMtMC40IDAuMy0wLjggMC41LTEuMiAwLjdsLTEgMC41LTQgNGMtNi45IDQuOC0xMy44IDcuNS0yMC41IDguMmwtMS4yIDAuMS0xLjEgMC41Yy0wLjUgMC4yLTEuNCAwLjUtMy4xIDAuNS05LjYgMC0xMi44IDMuNC0xMy41IDctMS4yIDIuNi0xLjQgNS4zLTAuNiA4IDEuMyA0LjUgNS4xIDguMiAxMiAxMS43IDUuMyAzLjYgMTIgMyAyMC4yLTEuOCAxLjItMC4zIDIuNi0xIDQtMi4yIDQuNy0yLjggOC4zLTUuMSAxMS4zLTdWNjcyYzAgMC45LTAuMyAzLTEuOSA3LjItMS4zIDMuMy0yLjggNy45LTEuNyAxMiAwLjUgMTguOSAxMy4xIDIxIDE4LjYgMjFoMC45bDAuOS0wLjJjNS44LTEuNyAxMy02LjUgMTQuMy0yMC4xdi0wLjdjMC0xLjMtMC4xLTQuMS0xLjItMTUuMWwtMC4xLTAuOGMtMS45LTguNi0xLjQtMTAuOS0xLjQtMTFsMC4zLTF2LTg5LjhjLTAuOC04LjEgMC40LTExLjEgMS0xMi4xIDIuNi0yLjkgMy45LTcgMy45LTEyLjZ2LTAuN2wtMC4xLTAuNmMtMS40LTUuMy00LTkuNi03LjgtMTIuMnpNMzk4LjIgNTM1LjNsLTAuMy0wLjJjLTQuNy0yLjgtOS45LTQuNy0xNS41LTUuN2wtMy40LTAuNC0xLjcgMS42aC0zLjJsLTEuNSA0LjRjLTEgMy4xLTEuNSA2LjYtMS41IDEwLjV2My4xYy0wLjQgMC4zLTAuOCAwLjUtMS4yIDAuN2wtMSAwLjUtNCA0Yy02LjkgNC44LTEzLjggNy41LTIwLjUgOC4ybC0xLjIgMC4xLTEuMSAwLjVjLTAuNSAwLjItMS40IDAuNS0zLjEgMC41LTkuNiAwLTEyLjggMy40LTEzLjUgNy0xLjIgMi42LTEuNCA1LjMtMC42IDggMS4zIDQuNSA1LjEgOC4yIDEyIDExLjcgNS4zIDMuNiAxMiAzIDIwLjItMS44IDEuMi0wLjMgMi42LTEgNC0yLjIgNC43LTIuOCA4LjMtNS4xIDExLjMtN3Y5My4zYzAgMC45LTAuMyAzLTEuOSA3LjItMS4zIDMuMy0yLjggNy45LTEuNyAxMiAwLjUgMTguOSAxMy4xIDIxIDE4LjYgMjFoMC45bDAuOS0wLjJjNS44LTEuNyAxMy02LjUgMTQuMy0yMC4xdi0wLjdjMC0xLjMtMC4xLTQtMS4yLTE1LjFsLTAuMS0wLjhjLTEuOS04LjYtMS40LTEwLjktMS40LTExbDAuMy0xdi04OS44Yy0wLjgtOC4xIDAuNC0xMS4xIDEtMTIuMSAyLjYtMi45IDMuOS03IDMuOS0xMi42di0wLjdsLTAuMS0wLjZjLTEuMy01LjQtMy45LTkuNy03LjctMTIuM3pNNTMwIDYyNS44bC0xLjgtMS42aC04Mi44bC0xLjYgMS4xYy01LjUgMy43LTguMyA3LjktOC4zIDEyLjcgMCA0LjcgMi44IDkgOC4zIDEyLjdsMS42IDEuMWg4Mi44bDEuOC0xLjZjNC4zLTMuNyA2LjUtNy44IDYuNS0xMi4yIDAtNC40LTIuMi04LjUtNi41LTEyLjJ6TTYyNS41IDUzNS4zbC0wLjMtMC4yYy00LjctMi44LTkuOS00LjctMTUuNS01LjdsLTMuMy0wLjUtMS43IDEuNmgtMy4ybC0xLjUgNC40Yy0xIDMuMS0xLjUgNi42LTEuNSAxMC41djMuMWMtMC40IDAuMy0wLjggMC41LTEuMiAwLjdsLTEgMC41LTQgNGMtNi45IDQuOC0xMy44IDcuNS0yMC41IDguMmwtMS4yIDAuMS0xLjEgMC41Yy0wLjUgMC4yLTEuNCAwLjUtMy4xIDAuNS05LjYgMC0xMi44IDMuNC0xMy41IDctMS4yIDIuNi0xLjQgNS4zLTAuNiA4IDEuMyA0LjUgNS4xIDguMiAxMiAxMS43IDUuMyAzLjYgMTIgMyAyMC4yLTEuOCAxLjItMC4zIDIuNi0xIDQtMi4yIDQuNy0yLjggOC4zLTUuMSAxMS4zLTdWNjcyYzAgMC45LTAuMyAzLTEuOSA3LjItMS4zIDMuMy0yLjggNy45LTEuNyAxMiAwLjUgMTguOSAxMy4xIDIxIDE4LjYgMjFoMC45bDAuOS0wLjJjNS44LTEuNyAxMy02LjUgMTQuMy0yMC4xdi0wLjdjMC0xLjMtMC4xLTQuMS0xLjItMTUuMWwtMC4xLTAuOGMtMS45LTguNi0xLjQtMTAuOS0xLjQtMTFsMC4zLTF2LTg5LjhjLTAuOC04LjEgMC40LTExLjEgMS0xMi4xIDIuNi0yLjkgMy45LTcgMy45LTEyLjZ2LTAuN2wtMC4xLTAuNmMtMS40LTUuMy0zLjktOS42LTcuOC0xMi4yek04MDcuNiA1NTUuNGMtMy43LTEwLTguMi0xNy4yLTE0LTIyLjFsLTQuNi0zLjgtMy41IDMuNWgtMC42bC0wLjkgMC4zYy01IDEuNC05LjIgMi4yLTEyLjcgMi4yaC01OS4xYy0yMC4xIDAtMjctMS4zLTI5LjMtMi4xbC0wLjQtMC4xYy0yLjQtMi4xLTQuOC0yLjYtNi41LTIuNmgtMmwtMS43IDEuM2MtOCA2LTEyLjUgMTUuNy0xMy40IDI4Ljl2MC41YzAgNS4zIDMuNyA4LjkgOC45IDguOWgwLjdsMC43LTAuMmMxNy4zLTMuOSAzNi41LTcuMSA1Ni45LTkuNSAxOC4xLTAuNiAzMi41LTAuMyA0MyAxLTM4IDU4LjMtNjEuNiAxMDMuOS03MC4zIDEzNS40bC0wLjEgMC42Yy0wLjggNC42IDAgOC4zIDIuMyAxMSAxLjUgMS43IDQuMiAzLjggOSAzLjggNy42IDAgMTQuNC0yLjMgMjAuMi02LjkgMi45LTEuNCA2LjUtNC42IDYuOC0xMi4yIDguNi00MS41IDI4LjgtODMuMiA2MC4xLTEyNC4xbDMuNi0xLjJjMC45IDAgMS44LTAuMiAyLjctMC41IDQuNy0xLjkgNC43LTcuMyA0LjctOS45di0xLjJsLTAuNS0xeiIgcC1pZD0iNDMyNCI+PC9wYXRoPjwvc3ZnPg==";
|
23903 | var __glob_0_26 = Object.freeze({
|
23904 | __proto__: null,
|
23905 | [Symbol.toStringTag]: "Module",
|
23906 | "default": RangePicker
|
23907 | });
|
23908 | var Rate = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQzMDA1ODYyNTM1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwNjkgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU0NDEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjA4Ljc4OTA2MjUiIGhlaWdodD0iMjAwIj48ZGVmcz48c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik02MzMuNzMgMzc4LjAybDkuNDk4IDE4LjY4OCAyMC43OCAyLjc5OCAyMDYuNjE2IDI3LjMzMmExMS40NjUgMTEuNDY1IDAgMCAxIDYuNjEgMTkuNDczTDcyOS45NjYgNTkzLjY2NWwtMTQuODkzIDE0Ljg5MyAzLjggMjAuNjgzIDM3Ljg0NyAyMDQuODlhMTEuNDY1IDExLjQ2NSAwIDAgMS0xNi40ODEgMTIuMjk2bC0xODUuNTUtOTQuNTgtMTguNjg3LTkuNDkzLTE4LjQ4NyA5Ljk5Mi0xODMuMjQgOTkuMzVhMTEuNDY1IDExLjQ2NSAwIDAgMS0xNi43ODQtMTEuODY3bDMyLjU0My0yMDUuNzk2IDMuMjk3LTIwLjc4Ni0xNS4xOTItMTQuNDkyLTE1MS4wMzMtMTQzLjQ4NGExMS40NjUgMTEuNDY1IDAgMCAxIDYuMS0xOS42NEwzOTkgNDAyLjk5OGwyMC43ODYtMy4yOTYgOS4wOTItMTguOTggODkuNzEzLTE4OC4wNzhhMTEuNDY1IDExLjQ2NSAwIDAgMSAyMC41NjktMC4yNjNsOTQuNTY4IDE4NS42MzV6TTQ5Ni42NDcgODUuNTJMMzc0Ljg5IDM0MC41MDFsLTI3OS4xMjYgNDQuMjZhMzQuMzk1IDM0LjM5NSAwIDAgMC0xOC4zMDMgNTguOTA4bDIwNC44NzMgMTk0LjY2My00NC4xNjkgMjc5LjExNWEzNC4zOTUgMzQuMzk1IDAgMCAwIDUwLjM2NiAzNS42MTZsMjQ4LjQtMTM0LjY3OUw3ODguNzc2IDk0Ni42NmEzNC4zOTUgMzQuMzk1IDAgMCAwIDQ5LjQzNy0zNi44OTRsLTUxLjMwNi0yNzcuODU0IDE5OS43MzEtMTk5LjkwOWEzNC4zOTUgMzQuMzk1IDAgMCAwLTE5LjgyOC01OC40MDhsLTI4MC4xMTgtMzcuMDMyTDU1OC4zMyA4NC43MTNhMzQuMzk1IDM0LjM5NSAwIDAgMC02MS42ODIgMC44MDJ6IiBwLWlkPSI1NDQyIj48L3BhdGg+PC9zdmc+";
|
23909 | var __glob_0_27 = Object.freeze({
|
23910 | __proto__: null,
|
23911 | [Symbol.toStringTag]: "Module",
|
23912 | "default": Rate
|
23913 | });
|
23914 | var Row = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMxOTM0NjM5NzI5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEyMDkiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODUzLjMzMzMzMyA5NTUuNzMzMzMzSDE3MC42NjY2NjdjLTY2LjAzMDkzMyAwLTEwMi40LTM2LjM2OTA2Ny0xMDIuNC0xMDIuNFYxNzAuNjY2NjY3YzAtNjYuMDMwOTMzIDM2LjM2OTA2Ny0xMDIuNCAxMDIuNC0xMDIuNGg2ODIuNjY2NjY2YzY2LjAzMDkzMyAwIDEwMi40IDM2LjM2OTA2NyAxMDIuNCAxMDIuNHY2ODIuNjY2NjY2YzAgNjYuMDMwOTMzLTM2LjM2OTA2NyAxMDIuNC0xMDIuNCAxMDIuNHpNMTAyLjQgNTI5LjA2NjY2N3YzMjQuMjY2NjY2YzAgNDcuMjIzNDY3IDIxLjA0MzIgNjguMjY2NjY3IDY4LjI2NjY2NyA2OC4yNjY2NjdoNjgyLjY2NjY2NmM0Ny4yMjM0NjcgMCA2OC4yNjY2NjctMjEuMDQzMiA2OC4yNjY2NjctNjguMjY2NjY3VjUyOS4wNjY2NjdIMTAyLjR6IG0wLTM0LjEzMzMzNGg4MTkuMlYxNzAuNjY2NjY3YzAtNDcuMjIzNDY3LTIxLjA0MzItNjguMjY2NjY3LTY4LjI2NjY2Ny02OC4yNjY2NjdIMTcwLjY2NjY2N2MtNDcuMjIzNDY3IDAtNjguMjY2NjY3IDIxLjA0MzItNjguMjY2NjY3IDY4LjI2NjY2N3YzMjQuMjY2NjY2eiIgcC1pZD0iMTIxMCI+PC9wYXRoPjwvc3ZnPg==";
|
23915 | var __glob_0_28 = Object.freeze({
|
23916 | __proto__: null,
|
23917 | [Symbol.toStringTag]: "Module",
|
23918 | "default": Row
|
23919 | });
|
23920 | var Search = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyNDcyMjUwNjE0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjcgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijk0ODkiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwLjU4NTkzNzUiIGhlaWdodD0iMjAwIj48ZGVmcz48c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik0wIDYyLjUwNjY2N2gzMjkuMTczMzMzdjg1LjMzMzMzM0gwek05ODQuMzIgNjYxLjU0NjY2N2MtMTAuODggMC0yMS43Ni00LjI2NjY2Ny0zMC4wOC0xMi41ODY2NjdsLTE1My44MTMzMzMtMTUzLjgxMzMzM2MtMTYuNjQtMTYuNjQtMTYuNjQtNDMuNzMzMzMzIDAtNjAuMzczMzM0czQzLjczMzMzMy0xNi42NCA2MC4zNzMzMzMgMGwxNTMuODEzMzMzIDE1My44MTMzMzRjMTYuNjQgMTYuNjQgMTYuNjQgNDMuNzMzMzMzIDAgNjAuMzczMzMzLTguMzIgOC41MzMzMzMtMTkuNDEzMzMzIDEyLjU4NjY2Ny0zMC4yOTMzMzMgMTIuNTg2NjY3ek0wIDM1My40OTMzMzNoMjg4LjIxMzMzM3Y4NS4zMzMzMzRIMHpNMCA2NDQuOTA2NjY3aDU4OS40NHY4NS4zMzMzMzNIMHpNMCA5MzYuMTA2NjY3SDEwMjMuMzZ2ODUuMzMzMzMzSDB6IiBwLWlkPSI5NDkwIj48L3BhdGg+PHBhdGggZD0iTTY1Ny45MiA1NTUuOTQ2NjY3Yy0xNTIuNTMzMzMzIDAtMjc2LjY5MzMzMy0xMjQuMTYtMjc2LjY5MzMzMy0yNzYuNjkzMzM0UzUwNS4zODY2NjcgMi41NiA2NTcuOTIgMi41NnMyNzYuNjkzMzMzIDEyNC4xNiAyNzYuNjkzMzMzIDI3Ni42OTMzMzMtMTIzLjk0NjY2NyAyNzYuNjkzMzMzLTI3Ni42OTMzMzMgMjc2LjY5MzMzNHogbTAtNDY4LjA1MzMzNGMtMTA1LjYgMC0xOTEuMzYgODUuNzYtMTkxLjM2IDE5MS4zNnM4NS43NiAxOTEuMzYgMTkxLjM2IDE5MS4zNiAxOTEuMzYtODUuNzYgMTkxLjM2LTE5MS4zNi04NS43Ni0xOTEuMzYtMTkxLjM2LTE5MS4zNnoiIHAtaWQ9Ijk0OTEiPjwvcGF0aD48L3N2Zz4=";
|
23921 | var __glob_0_29 = Object.freeze({
|
23922 | __proto__: null,
|
23923 | [Symbol.toStringTag]: "Module",
|
23924 | "default": Search
|
23925 | });
|
23926 | var Select = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQzMDA4NTg1MTE4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjYzNzciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNzk0LjE3IDE0Ny45MWM0NS4xNiAwLjIgODEuNzEgMzYuNzYgODEuOTIgODEuOTJ2NTY0LjM0Yy0wLjIgNDUuMTYtMzYuNzYgODEuNzEtODEuOTIgODEuOTJIMjI5LjgzYy00NS4xNi0wLjItODEuNzEtMzYuNzYtODEuOTItODEuOTJWMjI5LjgzYzAuMi00NS4xNiAzNi43Ni04MS43MSA4MS45Mi04MS45Mmg1NjQuMzRtMC00NS41MUgyMjkuODNjLTcwLjA5IDAtMTI3LjQzIDU3LjM0LTEyNy40MyAxMjcuNDN2NTY0LjM0YzAgNzAuMDggNTcuMzQgMTI3LjQzIDEyNy40MyAxMjcuNDNoNTY0LjM0YzcwLjA4IDAgMTI3LjQzLTU3LjM0IDEyNy40My0xMjcuNDNWMjI5LjgzYzAtNzAuMDktNTcuMzQtMTI3LjQzLTEyNy40My0xMjcuNDN6IG0wIDAiIHAtaWQ9IjYzNzgiPjwvcGF0aD48cGF0aCBkPSJNNTE0LjggNzA0LjQ2Yy02LjAyIDAuMDEtMTEuODEtMi4zOC0xNi4wNy02LjY0bC0yNTYtMjU1LjA5YTIyLjczIDIyLjczIDAgMCAxLTYtMjIgMjIuNzUyIDIyLjc1MiAwIDAgMSAxNi4xLTE2LjE2YzcuODctMi4xMSAxNi4yNyAwLjE0IDIyLjAyIDUuOTJsMjM5Ljg4IDIzOS4wNSAyMzkuMjItMjM5LjM5YzguODktOC44MiAyMy4yNS04LjggMzIuMTEgMC4wNiA4Ljg2IDguODYgOC45IDIzLjIxIDAuMDggMzIuMTFMNTMwLjg5IDY5Ny43OWEyMi43NDQgMjIuNzQ0IDAgMCAxLTE2LjA5IDYuNjd6IG0wIDAiIHAtaWQ9IjYzNzkiPjwvcGF0aD48L3N2Zz4=";
|
23927 | var __glob_0_30 = Object.freeze({
|
23928 | __proto__: null,
|
23929 | [Symbol.toStringTag]: "Module",
|
23930 | "default": Select
|
23931 | });
|
23932 | var Slider2 = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQzMTg2NTUwNDQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjUyMjIiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNOTUxLjQ1MyA0NzYuODQ0SDUyMy42NzJhMTMxLjgzNiAxMzEuODM2IDAgMCAwLTI1NC4xOCAwSDcyLjU0N3Y3MC4zMTJoMTk2Ljk0NWExMzEuODM2IDEzMS44MzYgMCAwIDAgMjU0LjE4IDBoNDI3Ljc4MXoiIHAtaWQ9IjUyMjMiPjwvcGF0aD48L3N2Zz4=";
|
23933 | var __glob_0_31 = Object.freeze({
|
23934 | __proto__: null,
|
23935 | [Symbol.toStringTag]: "Module",
|
23936 | "default": Slider2
|
23937 | });
|
23938 | var Space = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMwNTcxMzU1NTY3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI4NTUyIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTgxMi41NDQgMTI2LjE3NzI4YTcuOTQ2MjQgNy45NDYyNCAwIDAgMSAxMi44ODE5MiAwbDExNC44OTI4IDE1MS42NTQ0YzQuMjE4ODggNS41OTEwNCAwLjM0ODE2IDEzLjkwNTkyLTYuNDkyMTYgMTMuOTA1OTJIODU5Ljk1NTJWNzUyLjg0NDhoNzMuODcxMzZjNi44NDAzMiAwIDEwLjcxMTA0IDguMzE0ODggNi4zODk3NiAxMy45MDU5MmwtMTE0Ljg5MjggMTUxLjUzMTUyYTcuOTQ2MjQgNy45NDYyNCAwIDAgMS0xMi45MDI0IDBsLTExNC44OTI4LTE1MS41MzE1MmMtNC4yMTg4OC01LjU5MTA0LTAuMzQ4MTYtMTMuOTA1OTIgNi40OTIxNi0xMy45MDU5Mmg3My44NzEzNlYyOTEuNzM3NmgtNzMuNzQ4NDhjLTYuOTYzMiAwLTEwLjcxMTA0LTguMzE0ODgtNi41MTI2NC0xMy45MjY0ek01OTUuMDA1NDQgNzUwLjQ0ODY0djczLjAzMTY4SDEwMi40di03My4wMzE2OGg0OTIuNjA1NDR6IG0wLTI2Mi40MzA3MnY3My4wMTEySDEwMi40VjQ4OC4wMzg0aDQ5Mi42MDU0NHogbTAtMjYyLjQ1MTJ2NzMuMDMxNjhIMTAyLjR2LTczLjAzMTY4aDQ5Mi42MDU0NHoiIHAtaWQ9IjI4NTUzIj48L3BhdGg+PC9zdmc+";
|
23939 | var __glob_0_32 = Object.freeze({
|
23940 | __proto__: null,
|
23941 | [Symbol.toStringTag]: "Module",
|
23942 | "default": Space
|
23943 | });
|
23944 | var Switch = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQzMjQ5NTcyNDYzIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU1OTEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNzIzLjE1NzgyNiAyNDcuNDYxNzE5SDMwMS4xNDA5NDZjLTE1Ni4xNzA1MTggMC0yODYuMDQ2NjE2IDExOS4zMTQ0MDgtMjg2LjA0NjYxNiAyNjQuNTUyOTY0IDAgMTQ0Ljk3NDI1OCAxMjkuODc2MDk4IDI2NC41NTI5NjQgMjg2LjA0NjYxNiAyNjQuNTUyOTY0aDQyMi4wMTY4OGMxNTYuNDI5NzA4IDAgMjg1LjczNjM1My0xMTkuNTc3NDI5IDI4NS43MzYzNTMtMjY0LjU1Mjk2NCAwLTE0NS4yMzg1NTYtMTI5LjAyMzE5Ni0yNjQuNTUyOTY0LTI4NS43MzYzNTMtMjY0LjU1Mjk2NHogbTAgNDg1LjA5NzE4NUgzMDEuMTQwOTQ2Yy0xMzAuNDE3NDYxIDAtMjM4LjcyNDU3Ny05OS45MTU5ODYtMjM4LjcyNDU3Ny0yMjAuNTQ0MjIxIDAtMTIxLjEzMTI5NSAxMDcuNzM4OTM5LTIyMC41NDQyMjEgMjM4LjcyNDU3Ny0yMjAuNTQ0MjIxaDQyMi4wMTY4OGMxMzAuNzAyMTg4IDAgMjM4LjQ2NjY2MyA5OS40MTI5MjYgMjM4LjQ2NjY2MyAyMjAuNTQ0MjIxIDAgMTIwLjYyODIzNS0xMDguMzMyNjUxIDIyMC41NDQyMjEtMjM4LjQ2NjY2MyAyMjAuNTQ0MjIxeiBtMC00MDUuMzcxMjM4Yy0xMDkuOTg0ODMxIDAtMTk5Ljc5NzQ5OCA4My4zNTg0NDMtMTk5Ljc5NzQ5OCAxODQuODI3MDE3czg5LjgxNzc3NCAxODQuMjk5Njk5IDE5OS43OTc0OTggMTg0LjI5OTY5OWMxMDkuNDQzNDY3IDAgMTk5LjgxOTIwMy04Mi44MzI0MDEgMTk5LjgxOTIwMy0xODQuMjk5Njk5IDAtMTAxLjczMTU5NS05MC4zODA4NDMtMTg0LjgyNzAxNy0xOTkuODE5MjAzLTE4NC44MjcwMTd6IG0wIDI5Ni40MDAxODdjLTY2LjYxNTc2NCAwLTEyMC44ODYxNDktNDkuOTU3MzU0LTEyMC44ODYxNDktMTExLjU3MzE3IDAtNjEuODU1ODU0IDU0LjI3MDM4NS0xMTEuODM3NDY3IDEyMC44ODYxNDktMTExLjgzNzQ2N3MxMjAuMzcwMzIyIDQ5Ljk4MTYxNCAxMjAuMzcwMzIyIDExMS44Mzc0NjdjMCA2MS42MTU4MTUtNTMuNzUzMjgxIDExMS41NzMxNy0xMjAuMzcwMzIyIDExMS41NzMxN3oiIHAtaWQ9IjU1OTIiPjwvcGF0aD48L3N2Zz4=";
|
23945 | var __glob_0_33 = Object.freeze({
|
23946 | __proto__: null,
|
23947 | [Symbol.toStringTag]: "Module",
|
23948 | "default": Switch
|
23949 | });
|
23950 | var Table = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQ0NTY3MTAxMDQ0IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjQ0OTMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNOTI4IDE2MEg5NmMtMTcuNyAwLTMyIDE0LjMtMzIgMzJ2NjQwYzAgMTcuNyAxNC4zIDMyIDMyIDMyaDgzMmMxNy43IDAgMzItMTQuMyAzMi0zMlYxOTJjMC0xNy43LTE0LjMtMzItMzItMzJ6IG0tNDAgMjA4SDY3NlYyMzJoMjEydjEzNnogbTAgMjI0SDY3NlY0MzJoMjEydjE2MHpNNDEyIDQzMmgyMDB2MTYwSDQxMlY0MzJ6IG0yMDAtNjRINDEyVjIzMmgyMDB2MTM2eiBtLTQ3NiA2NGgyMTJ2MTYwSDEzNlY0MzJ6IG0wLTIwMGgyMTJ2MTM2SDEzNlYyMzJ6IG0wIDQyNGgyMTJ2MTM2SDEzNlY2NTZ6IG0yNzYgMGgyMDB2MTM2SDQxMlY2NTZ6IG00NzYgMTM2SDY3NlY2NTZoMjEydjEzNnoiIHAtaWQ9IjQ0OTQiPjwvcGF0aD48L3N2Zz4=";
|
23951 | var __glob_0_34 = Object.freeze({
|
23952 | __proto__: null,
|
23953 | [Symbol.toStringTag]: "Module",
|
23954 | "default": Table
|
23955 | });
|
23956 | var Text = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMxODQzNzM4NzY5IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEwODUxIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTcyNS4zMzMzMzMgMjI0VjM0MS4zMzMzMzNoLTY0di01My4zMzMzMzNoLTE4MS4zMzMzMzNWNzY4SDU1NC42NjY2Njd2NjRIMzQxLjMzMzMzM3YtNjRoNzQuNjY2NjY3VjI4OGgtMTkyVjM0MS4zMzMzMzNoLTY0di0xMTcuMzMzMzMzSDcyNS4zMzMzMzN6TTg1My4zMzMzMzMgNzY4djY0SDU5Ny4zMzMzMzN2LTY0aDI1NnogbTAtMTI4djY0SDU5Ny4zMzMzMzN2LTY0aDI1NnogbTAtMTI4djY0SDU5Ny4zMzMzMzN2LTY0aDI1NnoiIHAtaWQ9IjEwODUyIj48L3BhdGg+PC9zdmc+";
|
23957 | var __glob_0_35 = Object.freeze({
|
23958 | __proto__: null,
|
23959 | [Symbol.toStringTag]: "Module",
|
23960 | "default": Text
|
23961 | });
|
23962 | var TextArea = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQyNDcyMjU0NjUwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9Ijk2MjEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODk2IDE2MEgxMjhjLTM1LjIgMC02NCAyOC44LTY0IDY0djU3NmMwIDM1LjIgMjguOCA2NCA2NCA2NGg3NjhjMzUuMiAwIDY0LTI4LjggNjQtNjRWMjI0YzAtMzUuMi0yOC44LTY0LTY0LTY0eiBtMCA2MDhjMCAxNi0xMi44IDMyLTMyIDMySDE2MGMtMTkuMiAwLTMyLTEyLjgtMzItMzJWMjU2YzAtMTYgMTIuOC0zMiAzMi0zMmg3MDRjMTkuMiAwIDMyIDEyLjggMzIgMzJ2NTEyeiIgcC1pZD0iOTYyMiI+PC9wYXRoPjxwYXRoIGQ9Ik0yMjQgMjg4Yy0xOS4yIDAtMzIgMTIuOC0zMiAzMnYyNTZjMCAxNiAxMi44IDMyIDMyIDMyczMyLTEyLjggMzItMzJWMzIwYzAtMTYtMTIuOC0zMi0zMi0zMnogbTYwOCA0ODBjMTkuMiAwIDMyLTEyLjggMzItMzJWNjA4TDcwNCA3NjhoMTI4eiIgcC1pZD0iOTYyMyI+PC9wYXRoPjwvc3ZnPg==";
|
23963 | var __glob_0_36 = Object.freeze({
|
23964 | __proto__: null,
|
23965 | [Symbol.toStringTag]: "Module",
|
23966 | "default": TextArea
|
23967 | });
|
23968 | var TimePicker = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQzMjc0NjgzMDg4IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjU0NjMiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNNTExLjQ4OCAzMkMyNDYuNTkyIDMyIDMyIDI0Ny4wNCAzMiA1MTJjMCAyNjQuOTYgMjE0LjU5MiA0ODAgNDc5LjQ4OCA0ODAgMjY1LjQ3MiAwIDQ4MC41MTItMjE1LjA0IDQ4MC41MTItNDgwIDAtMjY0Ljk2LTIxNS4wNC00ODAtNDgwLjUxMi00ODB6TTUxMiA4OTZjLTIxMi4xNiAwLTM4NC0xNzEuODQtMzg0LTM4NHMxNzEuODQtMzg0IDM4NC0zODQgMzg0IDE3MS44NCAzODQgMzg0LTE3MS44NCAzODQtMzg0IDM4NHogbTI0LTYyNEg0NjR2Mjg4bDI1Mi4wMzIgMTUxLjIzMiAzNS45NjgtNTkuMDcyLTIxNi0xMjguMTI4VjI3MnoiIHAtaWQ9IjU0NjQiPjwvcGF0aD48L3N2Zz4=";
|
23969 | var __glob_0_37 = Object.freeze({
|
23970 | __proto__: null,
|
23971 | [Symbol.toStringTag]: "Module",
|
23972 | "default": TimePicker
|
23973 | });
|
23974 | var Title = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMxODQzNzI3ODgyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEwNzI0IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTM0MS4zMzMzMzMgNDY5LjMzMzMzM2gyMTMuMzMzMzM0VjI1Nmg4NS4zMzMzMzN2NTEyaC04NS4zMzMzMzN2LTIxMy4zMzMzMzNIMzQxLjMzMzMzM3YyMTMuMzMzMzMzSDI1NlYyNTZoODUuMzMzMzMzdjIxMy4zMzMzMzN6IG00MjYuNjY2NjY3IDI5OC42NjY2NjdoLTE3LjA2NjY2N3YtMTE5LjQ2NjY2N2MtNC4yNjY2NjcgNC4yNjY2NjctOC41MzMzMzMgOC41MzMzMzMtMTcuMDY2NjY2IDEyLjhzLTEyLjggOC41MzMzMzMtMjEuMzMzMzM0IDguNTMzMzM0di0xNy4wNjY2NjdjOC41MzMzMzMtNC4yNjY2NjcgMjEuMzMzMzMzLTEyLjggMjUuNi0xNy4wNjY2NjdzMTIuOC0xMi44IDE3LjA2NjY2Ny0yMS4zMzMzMzNoMTIuOFY3Njh6IiBwLWlkPSIxMDcyNSI+PC9wYXRoPjwvc3ZnPg==";
|
23975 | var __glob_0_38 = Object.freeze({
|
23976 | __proto__: null,
|
23977 | [Symbol.toStringTag]: "Module",
|
23978 | "default": Title
|
23979 | });
|
23980 | var Tree = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQ0ODAyNzk3ODQ1IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjYwMzEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMzEyLjc4OTMzMyAxMDA2LjIyOTMzM0gzOS4wODI2Njd2LTMyMGgyNzMuNzA2NjY2djMyMHogbS01My4zMzMzMzMtNTMuMzMzMzMzdi0yMTMuMzMzMzMzSDkyLjQ4djIxMy4zMzMzMzNoMTY3LjAxODY2N3pNNjU0LjEyMjY2NyAxMDA2LjIyOTMzM2gtMjczLjcwNjY2N3YtMzIwaDI3My43MDY2Njd2MzIweiBtLTUzLjMzMzMzNC01My4zMzMzMzN2LTIxMy4zMzMzMzNoLTE2Ni45OTczMzN2MjEzLjMzMzMzM2gxNjcuMDE4NjY3ek0xMDE2Ljc4OTMzMyAxMDA2LjIyOTMzM2gtMjczLjcwNjY2NnYtMzIwaDI3My43MDY2NjZ2MzIweiBtLTUzLjMzMzMzMy01My4zMzMzMzN2LTIxMy4zMzMzMzNoLTE2Ni45OTczMzN2MjEzLjMzMzMzM2gxNjcuMDE4NjY2ek02OTMuMjI2NjY3IDIxLjMzMzMzM3YyNzMuNzA2NjY3SDM0MS4zMzMzMzNWMjEuMzMzMzMzaDM1MS44OTMzMzR6IG0tNTMuMzU0NjY3IDUzLjMxMkgzOTQuNjY2NjY3djE2Ny4wNGgyNDUuMjA1MzMzdi0xNjcuMDR6IiBwLWlkPSI2MDMyIj48L3BhdGg+PHBhdGggZD0iTTkwMS4zMzMzMzMgNDAwdjI5Ni4zNjI2NjdoLTUzLjMzMzMzM1Y0NTMuMzMzMzMzSDE5Ny4zMzMzMzNWNzA0aC01My4zMzMzMzNWNDAweiIgcC1pZD0iNjAzMyI+PC9wYXRoPjxwYXRoIGQ9Ik01NDkuMzMzMzMzIDI2MS4zMzMzMzN2NDU4LjY2NjY2N2gtNTMuMzMzMzMzdi00NTguNjY2NjY3eiIgcC1pZD0iNjAzNCI+PC9wYXRoPjwvc3ZnPg==";
|
23981 | var __glob_0_39 = Object.freeze({
|
23982 | __proto__: null,
|
23983 | [Symbol.toStringTag]: "Module",
|
23984 | "default": Tree
|
23985 | });
|
23986 | var TreeSelect = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjQzMzM3OTkxMTkwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjYwNzEiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNMjU2IDUxLjJhNTEuMiA1MS4yIDAgMCAxIDUxLjIgNTEuMnYyMDQuOGE1MS4yIDUxLjIgMCAwIDEtNTEuMiA1MS4ySDUxLjJhNTEuMiA1MS4yIDAgMCAxLTUxLjItNTEuMlYxMDIuNGE1MS4yIDUxLjIgMCAwIDEgNTEuMi01MS4yaDIwNC44eiBtLTEwLjI0IDYxLjQ0SDYxLjQ0djE4NC4zMmgxODQuMzJWMTEyLjY0ek05MjEuNiAxMDIuNGE1MS4yIDUxLjIgMCAwIDEgNTEuMiA1MS4ydjEwMi40YTUxLjIgNTEuMiAwIDAgMS01MS4yIDUxLjJINDYwLjhhNTEuMiA1MS4yIDAgMCAxLTUxLjItNTEuMlYxNTMuNmE1MS4yIDUxLjIgMCAwIDEgNTEuMi01MS4yaDQ2MC44eiBtLTEwLjI0IDYxLjQ0SDQ3MS4wNHY4MS45Mmg0NDAuMzJWMTYzLjg0ek05MjEuNiA0NjAuOGE1MS4yIDUxLjIgMCAwIDEgNTEuMiA1MS4ydjEwMi40YTUxLjIgNTEuMiAwIDAgMS01MS4yIDUxLjJoLTQwOS42YTUxLjIgNTEuMiAwIDAgMS01MS4yLTUxLjJ2LTEwMi40YTUxLjIgNTEuMiAwIDAgMSA1MS4yLTUxLjJoNDA5LjZ6IG0tMTAuMjQgNjEuNDRoLTM4OS4xMnY4MS45MmgzODkuMTJ2LTgxLjkyek05MjEuNiA3NjhhNTEuMiA1MS4yIDAgMCAxIDUxLjIgNTEuMnYxMDIuNGE1MS4yIDUxLjIgMCAwIDEtNTEuMiA1MS4yaC00MDkuNmE1MS4yIDUxLjIgMCAwIDEtNTEuMi01MS4ydi0xMDIuNGE1MS4yIDUxLjIgMCAwIDEgNTEuMi01MS4yaDQwOS42eiBtLTEwLjI0IDYxLjQ0aC0zODkuMTJ2ODEuOTJoMzg5LjEydi04MS45MnoiIHAtaWQ9IjYwNzIiPjwvcGF0aD48cGF0aCBkPSJNMTg0LjMyIDM1OC40djQ2MC44YTIwLjQ4IDIwLjQ4IDAgMCAwIDE2LjM4NCAyMC4wNzA0TDIwNC44IDgzOS42OGgzMDcuMnY2MS40NEgyMDQuOGE4MS45MiA4MS45MiAwIDAgMS04MS41NjE2LTc0LjQ0NDhMMTIyLjg4IDgxOS4yVjM1OC40aDYxLjQ0eiIgcC1pZD0iNjA3MyI+PC9wYXRoPjxwYXRoIGQ9Ik00NzEuNzA1NiA1MzIuNDh2NjEuNDRIMTUzLjZ2LTYxLjQ0eiIgcC1pZD0iNjA3NCI+PC9wYXRoPjwvc3ZnPg==";
|
23987 | var __glob_0_40 = Object.freeze({
|
23988 | __proto__: null,
|
23989 | [Symbol.toStringTag]: "Module",
|
23990 | "default": TreeSelect
|
23991 | });
|
23992 | var Typography = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjMwNTcxMzEzMjc2IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjI3NjQ3IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjIwMCIgaGVpZ2h0PSIyMDAiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTY0LjI1OCA3Ny4wNjFWOTQ2Ljk0aDg5NS40ODNWNzcuMDZINjQuMjU4eiBtODY0LjczNCA4MzkuMTMzSDk1LjAwM1YxMDcuODA2aDgzMy45ODl2ODA4LjM4OHogbTAgMCIgcC1pZD0iMjc2NDgiPjwvcGF0aD48cGF0aCBkPSJNMTg5LjE3MyAzNDQuOTE3YzE2LjIzLTU2LjgyIDIxLjU0LTY3LjUxOCA5Mi42NjQtNjcuNTE4aDI5LjY1NHYyNjkuNzEzYzAgMjEuMTc0LTEuMTIgMzIuMzgzLTcuNDkgMzguODA5LTYuNDk2IDYuNTUyLTE5Ljg2IDkuNjQ4LTQ3LjY1NSAxMS4wMzdsLTQuODcxIDAuMjQzdjE3Ljg1NWgxNjEuNjg4di0xNy44NjRsLTQuODc1LTAuMjM0Yy01NS42MjYtMi42NzUtNTcuMzgxLTEwLjIyLTU3LjM4MS00OS44NTF2LTI2OS43MUgzOTUuN2M0NC44ODYgMCA2NC40NjMgNi4wOCA3Ny40MzUgNjcuMTc3bDEuMDkxIDUuMTIgMTguOTM0LTQuNDU1LTAuMzY2LTQuNDAyLTAuODY1LTEwLjI0Yy0yLjUzNy0zMC4wMzctNS4xNjQtNjEuMDkzLTQuMTctODQuNDY4bDAuMjE0LTUuMDM4LTE3LjM0Ni0xLjAyMi0xLjY1MSAyLjIzOWMtNy4wMDggOS41MTctOS40OTMgMTEuMzgtMjIuMjM3IDExLjM4SDIyMC43MDVjLTcuMjc3IDAtMTIuNTMzIDAtMTYuMTUzLTEuMzYtMi40NjMtMC45MTgtNS43OTQtMi44NC05LjcxLTkuNTZsLTEuNDgzLTIuNTQzSDE3Ni41bC0wLjE3NyA0Ljk0NGMtMC45NiAyNi44MTgtMi41MjQgNjIuMTctNi4xNDggOTcuODE5bC0wLjU3NiA1LjY0NGgxOC41MWwxLjA2NS0zLjcxNXogbTAgME0xNjkuMTEzIDc3NS4xNjZoNjg5LjkzdjI4LjQ0N2gtNjg5Ljkzdi0yOC40NDd6IG0wIDBNNTc4LjgxOCAzNDMuMjQ0aDI4MC4yMnYyOC40NDJoLTI4MC4yMnYtMjguNDQyeiBtMCAwTTU3OC44MTggNDY1Ljk4M2gyODAuMjJ2MjguNDQ3aC0yODAuMjJ2LTI4LjQ0N3ogbTAgME01NzguODE4IDU4Ni43NTFoMjgwLjIydjI4LjQ0MmgtMjgwLjIydi0yOC40NDJ6IG0wIDAiIHAtaWQ9IjI3NjQ5Ij48L3BhdGg+PC9zdmc+";
|
23993 | var __glob_0_41 = Object.freeze({
|
23994 | __proto__: null,
|
23995 | [Symbol.toStringTag]: "Module",
|
23996 | "default": Typography
|
23997 | });
|
23998 | var Upload = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNjE2NDA2MTA0NjgyIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjIwMzYiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCI+PGRlZnM+PHN0eWxlIHR5cGU9InRleHQvY3NzIj48L3N0eWxlPjwvZGVmcz48cGF0aCBkPSJNODY0IDU1NC42NjY2NjdhMzIgMzIgMCAwIDEgMzIgMzJ2MjM0LjY2NjY2NmEzMiAzMiAwIDAgMS0yNy42NDggMzEuNzAxMzM0TDg2NCA4NTMuMzMzMzMzSDE2MGEzMiAzMiAwIDAgMS0zMi0zMnYtMjM0LjY2NjY2NmEzMiAzMiAwIDEgMSA2NCAwdjIwMi42MjRsNjQwIDAuMDQyNjY2di0yMDIuNjY2NjY2YTMyIDMyIDAgMCAxIDMyLTMyeiBtLTM0MC41MjI2NjctMzgwLjA3NDY2N2wyLjc3MzMzNCAyLjU2IDE5My4xOTQ2NjYgMjExLjc5NzMzM2EyMy4yMTA2NjcgMjMuMjEwNjY3IDAgMCAxIDUuODg4IDE1LjYxNmMwIDEwLjgzNzMzMy03LjEyNTMzMyAxOS44ODI2NjctMTYuNTEyIDIxLjc2bC0zLjYyNjY2NiAwLjM0MTMzNEg1NzZ2MTcwLjY2NjY2NmEyMS4zMzMzMzMgMjEuMzMzMzMzIDAgMCAxLTIxLjMzMzMzMyAyMS4zMzMzMzRoLTg1LjMzMzMzNGEyMS4zMzMzMzMgMjEuMzMzMzMzIDAgMCAxLTIxLjMzMzMzMy0yMS4zMzMzMzR2LTE3MC42NjY2NjZIMzE4LjgwNTMzM2ExOC45ODY2NjcgMTguOTg2NjY3IDAgMCAxLTExLjgxODY2Ni00LjIyNGwtMi40MzItMi4yNjEzMzRhMjMuNzIyNjY3IDIzLjcyMjY2NyAwIDAgMS0yLjU2LTI3LjczMzMzM2wyLjU2LTMuNDk4NjY3IDE5My4xOTQ2NjYtMjExLjc5NzMzM2M2Ljk5NzMzMy03LjY4IDE3LjgzNDY2Ny04LjUzMzMzMyAyNS43MjgtMi41NnoiIHAtaWQ9IjIwMzciPjwvcGF0aD48L3N2Zz4=";
|
23999 | var __glob_0_42 = Object.freeze({
|
24000 | __proto__: null,
|
24001 | [Symbol.toStringTag]: "Module",
|
24002 | "default": Upload
|
24003 | });
|
24004 | const modules = { "./Alert.svg": __glob_0_0, "./AutoComplete.svg": __glob_0_1, "./Button.svg": __glob_0_2, "./Calendar.svg": __glob_0_3, "./Cascader.svg": __glob_0_4, "./Checkbox.svg": __glob_0_5, "./CheckboxGroup.svg": __glob_0_6, "./Col.svg": __glob_0_7, "./Copy.svg": __glob_0_8, "./DatePicker.svg": __glob_0_9, "./Delete.svg": __glob_0_10, "./Divider.svg": __glob_0_11, "./GenerateCode.svg": __glob_0_12, "./GenerateJson.svg": __glob_0_13, "./Grid.svg": __glob_0_14, "./Icon.svg": __glob_0_15, "./Image.svg": __glob_0_16, "./Input.svg": __glob_0_17, "./InputNumber.svg": __glob_0_18, "./Item.svg": __glob_0_19, "./Mentions.svg": __glob_0_20, "./Move.svg": __glob_0_21, "./Paragraph.svg": __glob_0_22, "./Password.svg": __glob_0_23, "./Preview.svg": __glob_0_24, "./RadioGroup.svg": __glob_0_25, "./RangePicker.svg": __glob_0_26, "./Rate.svg": __glob_0_27, "./Row.svg": __glob_0_28, "./Search.svg": __glob_0_29, "./Select.svg": __glob_0_30, "./Slider.svg": __glob_0_31, "./Space.svg": __glob_0_32, "./Switch.svg": __glob_0_33, "./Table.svg": __glob_0_34, "./Text.svg": __glob_0_35, "./TextArea.svg": __glob_0_36, "./TimePicker.svg": __glob_0_37, "./Title.svg": __glob_0_38, "./Tree.svg": __glob_0_39, "./TreeSelect.svg": __glob_0_40, "./Typography.svg": __glob_0_41, "./Upload.svg": __glob_0_42 };
|
24005 | const Icons = {};
|
24006 | Object.keys(modules).forEach((key) => {
|
24007 | Icons[key.replace("./", "").replace(".svg", "")] = key.replace("./", "").replace(".svg", "");
|
24008 | });
|
24009 | const commonComponents = [
|
24010 | {
|
24011 | label: "\u6309\u94AE",
|
24012 | type: "Button",
|
24013 | icon: Icons.Button,
|
24014 | config: {
|
24015 | children: "\u6309\u94AE",
|
24016 | hidden: false,
|
24017 | block: false,
|
24018 | danger: false,
|
24019 | disabled: false,
|
24020 | ghost: false,
|
24021 | href: void 0,
|
24022 | htmlType: "button",
|
24023 | shape: "default",
|
24024 | size: void 0,
|
24025 | target: void 0,
|
24026 | type: "default"
|
24027 | }
|
24028 | },
|
24029 | {
|
24030 | label: "\u56FE\u6807",
|
24031 | type: "Icon",
|
24032 | icon: Icons.Icon,
|
24033 | config: {
|
24034 | iconName: "",
|
24035 | fontSize: 40,
|
24036 | color: "",
|
24037 | hidden: false
|
24038 | }
|
24039 | },
|
24040 | {
|
24041 | label: "\u6587\u672C",
|
24042 | type: "Text",
|
24043 | icon: Icons.Text,
|
24044 | config: {
|
24045 | children: "Text",
|
24046 | hidden: false,
|
24047 | code: false,
|
24048 | copyable: false,
|
24049 | delete: false,
|
24050 | disabled: false,
|
24051 | editable: false,
|
24052 | ellipsis: false,
|
24053 | keyboard: false,
|
24054 | mark: false,
|
24055 | strong: false,
|
24056 | italic: false,
|
24057 | type: void 0,
|
24058 | underline: false
|
24059 | }
|
24060 | },
|
24061 | {
|
24062 | label: "\u6807\u9898",
|
24063 | type: "Title",
|
24064 | icon: Icons.Title,
|
24065 | config: {
|
24066 | children: "Title",
|
24067 | hidden: false,
|
24068 | code: false,
|
24069 | copyable: false,
|
24070 | delete: false,
|
24071 | disabled: false,
|
24072 | editable: false,
|
24073 | ellipsis: false,
|
24074 | level: 1,
|
24075 | mark: false,
|
24076 | strong: false,
|
24077 | italic: false,
|
24078 | type: void 0,
|
24079 | underline: false
|
24080 | }
|
24081 | },
|
24082 | {
|
24083 | label: "\u6BB5\u843D",
|
24084 | type: "Paragraph",
|
24085 | icon: Icons.Paragraph,
|
24086 | config: {
|
24087 | children: "Paragraph",
|
24088 | hidden: false,
|
24089 | code: false,
|
24090 | copyable: false,
|
24091 | delete: false,
|
24092 | disabled: false,
|
24093 | editable: false,
|
24094 | ellipsis: false,
|
24095 | mark: false,
|
24096 | strong: false,
|
24097 | italic: false,
|
24098 | type: void 0,
|
24099 | underline: false
|
24100 | }
|
24101 | }
|
24102 | ];
|
24103 | const layoutComponents = [
|
24104 | {
|
24105 | label: "\u5206\u5272\u7EBF",
|
24106 | type: "Divider",
|
24107 | icon: Icons.Divider,
|
24108 | config: {
|
24109 | children: "",
|
24110 | hidden: false,
|
24111 | dashed: false,
|
24112 | orientation: "center",
|
24113 | plain: false,
|
24114 | type: "horizontal"
|
24115 | }
|
24116 | },
|
24117 | {
|
24118 | label: "\u6805\u683C-\u884C",
|
24119 | type: "Row",
|
24120 | icon: Icons.Row,
|
24121 | childNodes: [],
|
24122 | config: {
|
24123 | align: "top",
|
24124 | hidden: false,
|
24125 | gutter: 0,
|
24126 | justify: "start",
|
24127 | wrap: true
|
24128 | }
|
24129 | },
|
24130 | {
|
24131 | label: "\u6805\u683C-\u5217",
|
24132 | type: "Col",
|
24133 | icon: Icons.Col,
|
24134 | childNodes: [],
|
24135 | config: {
|
24136 | flex: void 0,
|
24137 | hidden: false,
|
24138 | offset: 0,
|
24139 | order: 0,
|
24140 | pull: 0,
|
24141 | push: 0,
|
24142 | span: 2,
|
24143 | xs: void 0,
|
24144 | sm: void 0,
|
24145 | md: void 0,
|
24146 | lg: void 0,
|
24147 | xl: void 0,
|
24148 | xxl: void 0
|
24149 | }
|
24150 | },
|
24151 | {
|
24152 | label: "\u95F4\u8DDD",
|
24153 | type: "Space",
|
24154 | icon: Icons.Space,
|
24155 | childNodes: [],
|
24156 | config: {
|
24157 | align: void 0,
|
24158 | hidden: false,
|
24159 | direction: "horizontal",
|
24160 | size: void 0,
|
24161 | wrap: false
|
24162 | }
|
24163 | }
|
24164 | ];
|
24165 | const dataEntryComponents = [
|
24166 | {
|
24167 | label: "\u81EA\u52A8\u5B8C\u6210",
|
24168 | type: "AutoComplete",
|
24169 | icon: Icons.AutoComplete,
|
24170 | config: {
|
24171 | hidden: false,
|
24172 | allowClear: false,
|
24173 | autoFocus: false,
|
24174 | backfill: false,
|
24175 | defaultActiveFirstOption: true,
|
24176 | defaultOpen: false,
|
24177 | disabled: false,
|
24178 | dropdownClassName: "",
|
24179 | placeholder: "",
|
24180 | notFoundContent: void 0,
|
24181 | options: [
|
24182 | { label: "Option1", value: "Option1" },
|
24183 | { label: "Option2", value: "Option2" }
|
24184 | ]
|
24185 | },
|
24186 | remoteConfig: {
|
24187 | remote: false,
|
24188 | remoteFunc: "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
|
24189 | remoteProps: {
|
24190 | label: "label",
|
24191 | value: "value"
|
24192 | },
|
24193 | remoteOptions: []
|
24194 | },
|
24195 | formItemConfig: {
|
24196 | initialValue: "",
|
24197 | colon: void 0,
|
24198 | labelAlign: void 0,
|
24199 | labelWrap: void 0,
|
24200 | labelCol: void 0,
|
24201 | wrapperCol: void 0,
|
24202 | rules: [
|
24203 | {
|
24204 | validateTrigger: "onBlur",
|
24205 | required: false,
|
24206 | len: void 0,
|
24207 | max: void 0,
|
24208 | min: void 0,
|
24209 | message: void 0,
|
24210 | pattern: void 0,
|
24211 | type: "string",
|
24212 | warningOnly: false,
|
24213 | whitespace: false
|
24214 | }
|
24215 | ]
|
24216 | }
|
24217 | },
|
24218 | {
|
24219 | label: "\u7EA7\u8054\u9009\u62E9",
|
24220 | type: "Cascader",
|
24221 | icon: Icons.Cascader,
|
24222 | config: {
|
24223 | hidden: false,
|
24224 | allowClear: true,
|
24225 | autoFocus: false,
|
24226 | bordered: true,
|
24227 | changeOnSelect: false,
|
24228 | disabled: false,
|
24229 | className: "",
|
24230 | dropdownClassName: "",
|
24231 | expandTrigger: "click",
|
24232 | notFoundContent: "Not Found",
|
24233 | placeholder: "\u8BF7\u9009\u62E9",
|
24234 | placement: "bottomLeft",
|
24235 | showSearch: false,
|
24236 | size: void 0,
|
24237 | multiple: false
|
24238 | },
|
24239 | remoteConfig: {
|
24240 | remote: true,
|
24241 | remoteFunc: "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
|
24242 | remoteProps: {
|
24243 | label: "label",
|
24244 | value: "value",
|
24245 | children: "children"
|
24246 | },
|
24247 | remoteOptions: []
|
24248 | },
|
24249 | formItemConfig: {
|
24250 | initialValue: [],
|
24251 | colon: void 0,
|
24252 | labelAlign: void 0,
|
24253 | labelWrap: void 0,
|
24254 | labelCol: void 0,
|
24255 | wrapperCol: void 0,
|
24256 | rules: [
|
24257 | {
|
24258 | validateTrigger: "onBlur",
|
24259 | required: false,
|
24260 | len: void 0,
|
24261 | max: void 0,
|
24262 | min: void 0,
|
24263 | message: void 0,
|
24264 | pattern: void 0,
|
24265 | type: "array",
|
24266 | warningOnly: false,
|
24267 | whitespace: false
|
24268 | }
|
24269 | ]
|
24270 | }
|
24271 | },
|
24272 | {
|
24273 | label: "\u591A\u9009\u6846",
|
24274 | type: "Checkbox",
|
24275 | icon: Icons.Checkbox,
|
24276 | config: {
|
24277 | hidden: false,
|
24278 | children: "Checkbox",
|
24279 | autoFocus: false,
|
24280 | disabled: false,
|
24281 | indeterminate: false
|
24282 | },
|
24283 | formItemConfig: {
|
24284 | initialValue: false,
|
24285 | colon: void 0,
|
24286 | labelAlign: void 0,
|
24287 | labelWrap: void 0,
|
24288 | labelCol: void 0,
|
24289 | wrapperCol: void 0,
|
24290 | rules: [
|
24291 | {
|
24292 | validateTrigger: "onBlur",
|
24293 | required: false,
|
24294 | len: void 0,
|
24295 | max: void 0,
|
24296 | min: void 0,
|
24297 | message: void 0,
|
24298 | pattern: void 0,
|
24299 | type: "boolean",
|
24300 | warningOnly: false,
|
24301 | whitespace: false
|
24302 | }
|
24303 | ]
|
24304 | }
|
24305 | },
|
24306 | {
|
24307 | label: "\u591A\u9009\u6846\u7EC4",
|
24308 | type: "CheckboxGroup",
|
24309 | icon: Icons.CheckboxGroup,
|
24310 | config: {
|
24311 | hidden: false,
|
24312 | disabled: false,
|
24313 | options: [
|
24314 | { label: "Option1", value: "Option1" },
|
24315 | { label: "Option2", value: "Option2" }
|
24316 | ]
|
24317 | },
|
24318 | remoteConfig: {
|
24319 | remote: false,
|
24320 | remoteFunc: "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
|
24321 | remoteProps: {
|
24322 | label: "label",
|
24323 | value: "value"
|
24324 | },
|
24325 | remoteOptions: []
|
24326 | },
|
24327 | formItemConfig: {
|
24328 | initialValue: [],
|
24329 | colon: void 0,
|
24330 | labelAlign: void 0,
|
24331 | labelWrap: void 0,
|
24332 | labelCol: void 0,
|
24333 | wrapperCol: void 0,
|
24334 | rules: [
|
24335 | {
|
24336 | validateTrigger: "onBlur",
|
24337 | required: false,
|
24338 | len: void 0,
|
24339 | max: void 0,
|
24340 | min: void 0,
|
24341 | message: void 0,
|
24342 | pattern: void 0,
|
24343 | type: "array",
|
24344 | warningOnly: false,
|
24345 | whitespace: false
|
24346 | }
|
24347 | ]
|
24348 | }
|
24349 | },
|
24350 | {
|
24351 | label: "\u65E5\u671F\u9009\u62E9\u6846",
|
24352 | type: "DatePicker",
|
24353 | icon: Icons.DatePicker,
|
24354 | config: {
|
24355 | hidden: false,
|
24356 | allowClear: true,
|
24357 | autoFocus: false,
|
24358 | bordered: true,
|
24359 | className: "",
|
24360 | disabled: false,
|
24361 | dropdownClassName: "",
|
24362 | inputReadOnly: false,
|
24363 | picker: "date",
|
24364 | placeholder: void 0,
|
24365 | size: void 0,
|
24366 | format: "YYYY-MM-DD",
|
24367 | showNow: void 0,
|
24368 | showTime: false,
|
24369 | showToday: true
|
24370 | },
|
24371 | formItemConfig: {
|
24372 | initialValue: "",
|
24373 | colon: void 0,
|
24374 | labelAlign: void 0,
|
24375 | labelWrap: void 0,
|
24376 | labelCol: void 0,
|
24377 | wrapperCol: void 0,
|
24378 | rules: [
|
24379 | {
|
24380 | validateTrigger: "onBlur",
|
24381 | required: false,
|
24382 | len: void 0,
|
24383 | max: void 0,
|
24384 | min: void 0,
|
24385 | message: void 0,
|
24386 | pattern: void 0,
|
24387 | type: "date",
|
24388 | warningOnly: false,
|
24389 | whitespace: false
|
24390 | }
|
24391 | ]
|
24392 | }
|
24393 | },
|
24394 | {
|
24395 | label: "\u8303\u56F4\u9009\u62E9\u6846",
|
24396 | type: "RangePicker",
|
24397 | icon: Icons.RangePicker,
|
24398 | config: {
|
24399 | hidden: false,
|
24400 | allowClear: true,
|
24401 | autoFocus: false,
|
24402 | bordered: true,
|
24403 | className: "",
|
24404 | disabled: false,
|
24405 | dropdownClassName: "",
|
24406 | inputReadOnly: false,
|
24407 | picker: "date",
|
24408 | placeholder: void 0,
|
24409 | size: void 0,
|
24410 | format: "YYYY-MM-DD HH:mm:ss",
|
24411 | showNow: void 0,
|
24412 | showTime: false,
|
24413 | showToday: true
|
24414 | },
|
24415 | formItemConfig: {
|
24416 | initialValue: [],
|
24417 | colon: void 0,
|
24418 | labelAlign: void 0,
|
24419 | labelWrap: void 0,
|
24420 | labelCol: void 0,
|
24421 | wrapperCol: void 0,
|
24422 | rules: [
|
24423 | {
|
24424 | validateTrigger: "onBlur",
|
24425 | required: false,
|
24426 | len: void 0,
|
24427 | max: void 0,
|
24428 | min: void 0,
|
24429 | message: void 0,
|
24430 | pattern: void 0,
|
24431 | type: "array",
|
24432 | warningOnly: false,
|
24433 | whitespace: false
|
24434 | }
|
24435 | ]
|
24436 | }
|
24437 | },
|
24438 | {
|
24439 | label: "\u8F93\u5165\u6846",
|
24440 | type: "Input",
|
24441 | icon: Icons.Input,
|
24442 | config: {
|
24443 | hidden: false,
|
24444 | addonAfter: "",
|
24445 | addonBefore: "",
|
24446 | allowClear: void 0,
|
24447 | bordered: true,
|
24448 | disabled: false,
|
24449 | maxLength: void 0,
|
24450 | showCount: false,
|
24451 | size: void 0,
|
24452 | prefix: "",
|
24453 | suffix: "",
|
24454 | placeholder: void 0
|
24455 | },
|
24456 | formItemConfig: {
|
24457 | initialValue: "",
|
24458 | colon: void 0,
|
24459 | labelAlign: void 0,
|
24460 | labelWrap: void 0,
|
24461 | labelCol: void 0,
|
24462 | wrapperCol: void 0,
|
24463 | rules: [
|
24464 | {
|
24465 | validateTrigger: "onBlur",
|
24466 | required: false,
|
24467 | len: void 0,
|
24468 | max: void 0,
|
24469 | min: void 0,
|
24470 | message: void 0,
|
24471 | pattern: void 0,
|
24472 | type: "string",
|
24473 | warningOnly: false,
|
24474 | whitespace: false
|
24475 | }
|
24476 | ]
|
24477 | }
|
24478 | },
|
24479 | {
|
24480 | label: "\u6587\u672C\u57DF",
|
24481 | type: "TextArea",
|
24482 | icon: Icons.TextArea,
|
24483 | config: {
|
24484 | hidden: false,
|
24485 | autoSize: false,
|
24486 | allowClear: void 0,
|
24487 | bordered: true,
|
24488 | disabled: false,
|
24489 | maxLength: void 0,
|
24490 | showCount: false,
|
24491 | size: void 0,
|
24492 | placeholder: void 0
|
24493 | },
|
24494 | formItemConfig: {
|
24495 | initialValue: "",
|
24496 | colon: void 0,
|
24497 | labelAlign: void 0,
|
24498 | labelWrap: void 0,
|
24499 | labelCol: void 0,
|
24500 | wrapperCol: void 0,
|
24501 | rules: [
|
24502 | {
|
24503 | validateTrigger: "onBlur",
|
24504 | required: false,
|
24505 | len: void 0,
|
24506 | max: void 0,
|
24507 | min: void 0,
|
24508 | message: void 0,
|
24509 | pattern: void 0,
|
24510 | type: "string",
|
24511 | warningOnly: false,
|
24512 | whitespace: false
|
24513 | }
|
24514 | ]
|
24515 | }
|
24516 | },
|
24517 | {
|
24518 | label: "\u641C\u7D22\u6846",
|
24519 | type: "Search",
|
24520 | icon: Icons.Search,
|
24521 | config: {
|
24522 | hidden: false,
|
24523 | addonAfter: "",
|
24524 | addonBefore: "",
|
24525 | enterButton: false,
|
24526 | allowClear: void 0,
|
24527 | bordered: true,
|
24528 | disabled: false,
|
24529 | maxLength: void 0,
|
24530 | showCount: false,
|
24531 | size: void 0,
|
24532 | prefix: "",
|
24533 | suffix: "",
|
24534 | placeholder: void 0
|
24535 | },
|
24536 | formItemConfig: {
|
24537 | initialValue: "",
|
24538 | colon: void 0,
|
24539 | labelAlign: void 0,
|
24540 | labelWrap: void 0,
|
24541 | labelCol: void 0,
|
24542 | wrapperCol: void 0,
|
24543 | rules: [
|
24544 | {
|
24545 | validateTrigger: "onBlur",
|
24546 | required: false,
|
24547 | len: void 0,
|
24548 | max: void 0,
|
24549 | min: void 0,
|
24550 | message: void 0,
|
24551 | pattern: void 0,
|
24552 | type: "string",
|
24553 | warningOnly: false,
|
24554 | whitespace: false
|
24555 | }
|
24556 | ]
|
24557 | }
|
24558 | },
|
24559 | {
|
24560 | label: "\u5BC6\u7801\u6846",
|
24561 | type: "Password",
|
24562 | icon: Icons.Password,
|
24563 | config: {
|
24564 | hidden: false,
|
24565 | addonAfter: "",
|
24566 | addonBefore: "",
|
24567 | visibilityToggle: true,
|
24568 | bordered: true,
|
24569 | disabled: false,
|
24570 | maxLength: void 0,
|
24571 | showCount: false,
|
24572 | size: void 0,
|
24573 | prefix: "",
|
24574 | placeholder: void 0
|
24575 | },
|
24576 | formItemConfig: {
|
24577 | initialValue: "",
|
24578 | colon: void 0,
|
24579 | labelAlign: void 0,
|
24580 | labelWrap: void 0,
|
24581 | labelCol: void 0,
|
24582 | wrapperCol: void 0,
|
24583 | rules: [
|
24584 | {
|
24585 | validateTrigger: "onBlur",
|
24586 | required: false,
|
24587 | len: void 0,
|
24588 | max: void 0,
|
24589 | min: void 0,
|
24590 | message: void 0,
|
24591 | pattern: void 0,
|
24592 | type: "string",
|
24593 | warningOnly: false,
|
24594 | whitespace: false
|
24595 | }
|
24596 | ]
|
24597 | }
|
24598 | },
|
24599 | {
|
24600 | label: "\u6570\u5B57\u8F93\u5165\u6846",
|
24601 | type: "InputNumber",
|
24602 | icon: Icons.InputNumber,
|
24603 | config: {
|
24604 | hidden: false,
|
24605 | addonAfter: "",
|
24606 | addonBefore: "",
|
24607 | autoFocus: false,
|
24608 | bordered: true,
|
24609 | controls: true,
|
24610 | decimalSeparator: "",
|
24611 | disabled: false,
|
24612 | keyboard: true,
|
24613 | max: Number.MAX_SAFE_INTEGER,
|
24614 | min: Number.MIN_SAFE_INTEGER,
|
24615 | precision: void 0,
|
24616 | readOnly: false,
|
24617 | size: void 0,
|
24618 | prefix: "",
|
24619 | step: 1,
|
24620 | stringMode: false
|
24621 | },
|
24622 | formItemConfig: {
|
24623 | initialValue: "",
|
24624 | colon: void 0,
|
24625 | labelAlign: void 0,
|
24626 | labelWrap: void 0,
|
24627 | labelCol: void 0,
|
24628 | wrapperCol: void 0,
|
24629 | rules: [
|
24630 | {
|
24631 | validateTrigger: "onBlur",
|
24632 | required: false,
|
24633 | len: void 0,
|
24634 | max: void 0,
|
24635 | min: void 0,
|
24636 | message: void 0,
|
24637 | pattern: void 0,
|
24638 | type: "number",
|
24639 | warningOnly: false,
|
24640 | whitespace: false
|
24641 | }
|
24642 | ]
|
24643 | }
|
24644 | },
|
24645 | {
|
24646 | label: "\u63D0\u53CA",
|
24647 | type: "Mentions",
|
24648 | icon: Icons.Mentions,
|
24649 | config: {
|
24650 | hidden: false,
|
24651 | autoFocus: false,
|
24652 | autoSize: false,
|
24653 | disabled: false,
|
24654 | readOnly: false,
|
24655 | placeholder: "",
|
24656 | notFoundContent: "Not Found",
|
24657 | placement: "bottom",
|
24658 | prefix: "@",
|
24659 | split: "",
|
24660 | options: [
|
24661 | { label: "Option1", value: "Option1" },
|
24662 | { label: "Option2", value: "Option2" }
|
24663 | ]
|
24664 | },
|
24665 | remoteConfig: {
|
24666 | remote: false,
|
24667 | remoteFunc: "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
|
24668 | remoteProps: {
|
24669 | label: "label",
|
24670 | value: "value"
|
24671 | },
|
24672 | remoteOptions: []
|
24673 | },
|
24674 | formItemConfig: {
|
24675 | initialValue: "",
|
24676 | colon: void 0,
|
24677 | labelAlign: void 0,
|
24678 | labelWrap: void 0,
|
24679 | labelCol: void 0,
|
24680 | wrapperCol: void 0,
|
24681 | rules: [
|
24682 | {
|
24683 | validateTrigger: "onBlur",
|
24684 | required: false,
|
24685 | len: void 0,
|
24686 | max: void 0,
|
24687 | min: void 0,
|
24688 | message: void 0,
|
24689 | pattern: void 0,
|
24690 | type: "string",
|
24691 | warningOnly: false,
|
24692 | whitespace: false
|
24693 | }
|
24694 | ]
|
24695 | }
|
24696 | },
|
24697 | {
|
24698 | label: "\u5355\u9009\u6846\u7EC4",
|
24699 | type: "RadioGroup",
|
24700 | icon: Icons.RadioGroup,
|
24701 | config: {
|
24702 | hidden: false,
|
24703 | buttonStyle: "outline",
|
24704 | disabled: false,
|
24705 | options: [
|
24706 | { label: "Option1", value: "Option1" },
|
24707 | { label: "Option2", value: "Option2" }
|
24708 | ],
|
24709 | optionType: "default",
|
24710 | size: void 0
|
24711 | },
|
24712 | remoteConfig: {
|
24713 | remote: false,
|
24714 | remoteFunc: "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
|
24715 | remoteProps: {
|
24716 | label: "label",
|
24717 | value: "value"
|
24718 | },
|
24719 | remoteOptions: []
|
24720 | },
|
24721 | formItemConfig: {
|
24722 | initialValue: "",
|
24723 | colon: void 0,
|
24724 | labelAlign: void 0,
|
24725 | labelWrap: void 0,
|
24726 | labelCol: void 0,
|
24727 | wrapperCol: void 0,
|
24728 | rules: [
|
24729 | {
|
24730 | validateTrigger: "onBlur",
|
24731 | required: false,
|
24732 | len: void 0,
|
24733 | max: void 0,
|
24734 | min: void 0,
|
24735 | message: void 0,
|
24736 | pattern: void 0,
|
24737 | type: "string",
|
24738 | warningOnly: false,
|
24739 | whitespace: false
|
24740 | }
|
24741 | ]
|
24742 | }
|
24743 | },
|
24744 | {
|
24745 | label: "\u8BC4\u5206",
|
24746 | type: "Rate",
|
24747 | icon: Icons.Rate,
|
24748 | config: {
|
24749 | hidden: false,
|
24750 | allowClear: true,
|
24751 | allowHalf: false,
|
24752 | autoFocus: false,
|
24753 | character: void 0,
|
24754 | className: "",
|
24755 | count: 5,
|
24756 | disabled: false,
|
24757 | tooltips: []
|
24758 | },
|
24759 | formItemConfig: {
|
24760 | initialValue: 0,
|
24761 | colon: void 0,
|
24762 | labelAlign: void 0,
|
24763 | labelWrap: void 0,
|
24764 | labelCol: void 0,
|
24765 | wrapperCol: void 0,
|
24766 | rules: [
|
24767 | {
|
24768 | validateTrigger: "onBlur",
|
24769 | required: false,
|
24770 | len: void 0,
|
24771 | max: void 0,
|
24772 | min: void 0,
|
24773 | message: void 0,
|
24774 | pattern: void 0,
|
24775 | type: "number",
|
24776 | warningOnly: false,
|
24777 | whitespace: false
|
24778 | }
|
24779 | ]
|
24780 | }
|
24781 | },
|
24782 | {
|
24783 | label: "\u9009\u62E9\u5668",
|
24784 | type: "Select",
|
24785 | icon: Icons.Select,
|
24786 | config: {
|
24787 | hidden: false,
|
24788 | allowClear: false,
|
24789 | autoClearSearchValue: true,
|
24790 | autoFocus: false,
|
24791 | bordered: true,
|
24792 | defaultActiveFirstOption: true,
|
24793 | defaultOpen: false,
|
24794 | disabled: false,
|
24795 | dropdownClassName: "",
|
24796 | dropdownMatchSelectWidth: true,
|
24797 | filterOption: true,
|
24798 | labelInValue: false,
|
24799 | listHeight: 256,
|
24800 | maxTagCount: void 0,
|
24801 | maxTagPlaceholder: void 0,
|
24802 | maxTagTextLength: void 0,
|
24803 | mode: void 0,
|
24804 | notFoundContent: "Not Found",
|
24805 | optionFilterProp: "value",
|
24806 | optionLabelProp: "children",
|
24807 | placeholder: "",
|
24808 | showArrow: void 0,
|
24809 | showSearch: false,
|
24810 | size: void 0,
|
24811 | suffixIcon: void 0,
|
24812 | virtual: true,
|
24813 | options: [
|
24814 | { label: "Option1", value: "Option1" },
|
24815 | { label: "Option2", value: "Option2" }
|
24816 | ]
|
24817 | },
|
24818 | remoteConfig: {
|
24819 | remote: false,
|
24820 | remoteFunc: "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
|
24821 | remoteProps: {
|
24822 | label: "label",
|
24823 | value: "value"
|
24824 | },
|
24825 | remoteOptions: []
|
24826 | },
|
24827 | formItemConfig: {
|
24828 | initialValue: "",
|
24829 | colon: void 0,
|
24830 | labelAlign: void 0,
|
24831 | labelWrap: void 0,
|
24832 | labelCol: void 0,
|
24833 | wrapperCol: void 0,
|
24834 | rules: [
|
24835 | {
|
24836 | validateTrigger: "onBlur",
|
24837 | required: false,
|
24838 | len: void 0,
|
24839 | max: void 0,
|
24840 | min: void 0,
|
24841 | message: void 0,
|
24842 | pattern: void 0,
|
24843 | type: "string",
|
24844 | warningOnly: false,
|
24845 | whitespace: false
|
24846 | }
|
24847 | ]
|
24848 | }
|
24849 | },
|
24850 | {
|
24851 | label: "\u6ED1\u52A8\u8F93\u5165\u6761",
|
24852 | type: "Slider",
|
24853 | icon: Icons.Slider,
|
24854 | config: {
|
24855 | hidden: false,
|
24856 | allowClear: false,
|
24857 | disabled: false,
|
24858 | dots: false,
|
24859 | max: 100,
|
24860 | min: 0,
|
24861 | range: false,
|
24862 | reverse: false,
|
24863 | step: 1,
|
24864 | tooltipVisible: void 0
|
24865 | },
|
24866 | formItemConfig: {
|
24867 | initialValue: 0,
|
24868 | colon: void 0,
|
24869 | labelAlign: void 0,
|
24870 | labelWrap: void 0,
|
24871 | labelCol: void 0,
|
24872 | wrapperCol: void 0,
|
24873 | rules: [
|
24874 | {
|
24875 | validateTrigger: "onBlur",
|
24876 | required: false,
|
24877 | len: void 0,
|
24878 | max: void 0,
|
24879 | min: void 0,
|
24880 | message: void 0,
|
24881 | pattern: void 0,
|
24882 | type: "number",
|
24883 | warningOnly: false,
|
24884 | whitespace: false
|
24885 | }
|
24886 | ]
|
24887 | }
|
24888 | },
|
24889 | {
|
24890 | label: "\u5F00\u5173",
|
24891 | type: "Switch",
|
24892 | icon: Icons.Switch,
|
24893 | config: {
|
24894 | hidden: false,
|
24895 | autoFocus: false,
|
24896 | className: "",
|
24897 | checkedChildren: "",
|
24898 | unCheckedChildren: "",
|
24899 | disabled: false,
|
24900 | size: "default"
|
24901 | },
|
24902 | formItemConfig: {
|
24903 | initialValue: false,
|
24904 | colon: void 0,
|
24905 | labelAlign: void 0,
|
24906 | labelWrap: void 0,
|
24907 | labelCol: void 0,
|
24908 | wrapperCol: void 0,
|
24909 | rules: [
|
24910 | {
|
24911 | validateTrigger: "onBlur",
|
24912 | required: false,
|
24913 | len: void 0,
|
24914 | max: void 0,
|
24915 | min: void 0,
|
24916 | message: void 0,
|
24917 | pattern: void 0,
|
24918 | type: "boolean",
|
24919 | warningOnly: false,
|
24920 | whitespace: false
|
24921 | }
|
24922 | ]
|
24923 | }
|
24924 | },
|
24925 | {
|
24926 | label: "\u65F6\u95F4\u9009\u62E9\u6846",
|
24927 | type: "TimePicker",
|
24928 | icon: Icons.TimePicker,
|
24929 | config: {
|
24930 | hidden: false,
|
24931 | allowClear: true,
|
24932 | autoFocus: false,
|
24933 | bordered: true,
|
24934 | className: "",
|
24935 | clearText: "clear",
|
24936 | disabled: false,
|
24937 | hideDisabledOptions: false,
|
24938 | hourStep: 1,
|
24939 | minuteStep: 1,
|
24940 | secondStep: 1,
|
24941 | inputReadOnly: false,
|
24942 | placeholder: void 0,
|
24943 | popupClassName: void 0,
|
24944 | size: void 0,
|
24945 | format: "HH:mm:ss",
|
24946 | suffixIcon: void 0,
|
24947 | showNow: true,
|
24948 | use12Hours: false
|
24949 | },
|
24950 | formItemConfig: {
|
24951 | initialValue: "",
|
24952 | colon: void 0,
|
24953 | labelAlign: void 0,
|
24954 | labelWrap: void 0,
|
24955 | labelCol: void 0,
|
24956 | wrapperCol: void 0,
|
24957 | rules: [
|
24958 | {
|
24959 | validateTrigger: "onBlur",
|
24960 | required: false,
|
24961 | len: void 0,
|
24962 | max: void 0,
|
24963 | min: void 0,
|
24964 | message: void 0,
|
24965 | pattern: void 0,
|
24966 | type: "date",
|
24967 | warningOnly: false,
|
24968 | whitespace: false
|
24969 | }
|
24970 | ]
|
24971 | }
|
24972 | },
|
24973 | {
|
24974 | label: "\u6811\u9009\u62E9",
|
24975 | type: "TreeSelect",
|
24976 | icon: Icons.TreeSelect,
|
24977 | config: {
|
24978 | hidden: false,
|
24979 | allowClear: true,
|
24980 | autoClearSearchValue: true,
|
24981 | bordered: true,
|
24982 | disabled: false,
|
24983 | dropdownClassName: "",
|
24984 | dropdownMatchSelectWidth: true,
|
24985 | labelInValue: false,
|
24986 | listHeight: 256,
|
24987 | maxTagCount: void 0,
|
24988 | maxTagPlaceholder: void 0,
|
24989 | multiple: false,
|
24990 | notFoundContent: "Not Found",
|
24991 | placeholder: "",
|
24992 | showArrow: void 0,
|
24993 | showCheckedStrategy: "SHOW_CHILD",
|
24994 | showSearch: void 0,
|
24995 | size: void 0,
|
24996 | treeCheckable: false,
|
24997 | treeCheckStrictly: false,
|
24998 | treeDefaultExpandAll: false,
|
24999 | treeLine: false,
|
25000 | treeNodeFilterProp: "value",
|
25001 | treeNodeLabelProp: "label",
|
25002 | virtual: true
|
25003 | },
|
25004 | remoteConfig: {
|
25005 | remote: true,
|
25006 | remoteFunc: "https://raw.githubusercontent.com/fuchengwei/vue-form-create/master/mock/mock.json",
|
25007 | remoteProps: {
|
25008 | label: "label",
|
25009 | value: "value",
|
25010 | children: "children"
|
25011 | },
|
25012 | remoteOptions: []
|
25013 | },
|
25014 | formItemConfig: {
|
25015 | initialValue: void 0,
|
25016 | colon: void 0,
|
25017 | labelAlign: void 0,
|
25018 | labelWrap: void 0,
|
25019 | labelCol: void 0,
|
25020 | wrapperCol: void 0,
|
25021 | rules: [
|
25022 | {
|
25023 | validateTrigger: "onBlur",
|
25024 | required: false,
|
25025 | len: void 0,
|
25026 | max: void 0,
|
25027 | min: void 0,
|
25028 | message: void 0,
|
25029 | pattern: void 0,
|
25030 | type: "string",
|
25031 | warningOnly: false,
|
25032 | whitespace: false
|
25033 | }
|
25034 | ]
|
25035 | }
|
25036 | },
|
25037 | {
|
25038 | label: "\u4E0A\u4F20",
|
25039 | type: "Upload",
|
25040 | icon: Icons.Upload,
|
25041 | config: {
|
25042 | hidden: false,
|
25043 | accept: "image/*",
|
25044 | action: "http://example.com/upload",
|
25045 | drop: false,
|
25046 | directory: false,
|
25047 | disabled: false,
|
25048 | listType: "text",
|
25049 | maxCount: void 0,
|
25050 | method: "POST",
|
25051 | multiple: false,
|
25052 | name: "file",
|
25053 | openFileDialogOnClick: true,
|
25054 | showUploadList: true,
|
25055 | withCredentials: false
|
25056 | },
|
25057 | formItemConfig: {
|
25058 | initialValue: void 0,
|
25059 | colon: void 0,
|
25060 | labelAlign: void 0,
|
25061 | labelWrap: void 0,
|
25062 | labelCol: void 0,
|
25063 | wrapperCol: void 0,
|
25064 | rules: [
|
25065 | {
|
25066 | validateTrigger: "onBlur",
|
25067 | required: false,
|
25068 | len: void 0,
|
25069 | max: void 0,
|
25070 | min: void 0,
|
25071 | message: void 0,
|
25072 | pattern: void 0,
|
25073 | type: "array",
|
25074 | warningOnly: false,
|
25075 | whitespace: false
|
25076 | }
|
25077 | ]
|
25078 | }
|
25079 | }
|
25080 | ];
|
25081 | const dataDisplayComponents = [
|
25082 | {
|
25083 | label: "\u65E5\u5386",
|
25084 | type: "Calendar",
|
25085 | icon: Icons.Calendar,
|
25086 | config: {
|
25087 | hidden: false,
|
25088 | fullscreen: true,
|
25089 | defaultValue: ""
|
25090 | }
|
25091 | },
|
25092 | {
|
25093 | label: "\u56FE\u7247",
|
25094 | type: "Image",
|
25095 | icon: Icons.Image,
|
25096 | config: {
|
25097 | hidden: false,
|
25098 | alt: "",
|
25099 | fallback: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==",
|
25100 | height: 200,
|
25101 | width: 200,
|
25102 | src: "https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"
|
25103 | }
|
25104 | }
|
25105 | ];
|
25106 | const feedbackComponents = [
|
25107 | {
|
25108 | label: "\u8B66\u544A\u63D0\u793A",
|
25109 | type: "Alert",
|
25110 | icon: Icons.Alert,
|
25111 | config: {
|
25112 | hidden: false,
|
25113 | banner: false,
|
25114 | closable: false,
|
25115 | description: "Detailed description and advice about successful copywriting.",
|
25116 | message: "Success Tips",
|
25117 | showIcon: void 0,
|
25118 | type: void 0
|
25119 | }
|
25120 | }
|
25121 | ];
|
25122 | const componentsGroup = [
|
25123 | {
|
25124 | title: "\u901A\u7528\u7EC4\u4EF6",
|
25125 | components: commonComponents
|
25126 | },
|
25127 | {
|
25128 | title: "\u5E03\u5C40\u7EC4\u4EF6",
|
25129 | components: layoutComponents
|
25130 | },
|
25131 | {
|
25132 | title: "\u6570\u636E\u5F55\u5165",
|
25133 | components: dataEntryComponents
|
25134 | },
|
25135 | {
|
25136 | title: "\u6570\u636E\u5C55\u793A",
|
25137 | components: dataDisplayComponents
|
25138 | },
|
25139 | {
|
25140 | title: "\u53CD\u9988",
|
25141 | components: feedbackComponents
|
25142 | }
|
25143 | ];
|
25144 | const { Content, Sider } = Layout;
|
25145 | const DesignForm$1 = forwardRef((props, ref) => {
|
25146 | const { state, dispatch } = useContext(DesignContext);
|
25147 | const [formInstance] = Form.useForm();
|
25148 | const [currentTab, setCurrentTab] = useState("Global");
|
25149 | useImperativeHandle(ref, () => ({
|
25150 | getJson: () => JSON.stringify(state),
|
25151 | setJson: (value) => {
|
25152 | try {
|
25153 | dispatch({
|
25154 | type: ActionType.SET_GLOBAL,
|
25155 | payload: JSON.parse(value)
|
25156 | });
|
25157 | } catch (error) {
|
25158 | message.error("\u8BBE\u7F6E JSON \u51FA\u9519");
|
25159 | }
|
25160 | },
|
25161 | clear: () => {
|
25162 | dispatch({
|
25163 | type: ActionType.SET_GLOBAL,
|
25164 | payload: {
|
25165 | widgetFormList: [],
|
25166 | selectWidgetItem: void 0
|
25167 | }
|
25168 | });
|
25169 | },
|
25170 | getTemplate: (type) => generateCode(type, state)
|
25171 | }));
|
25172 | return React__default.createElement("div", {
|
25173 | className: "fc-style"
|
25174 | }, React__default.createElement(Layout, {
|
25175 | className: "fc-container"
|
25176 | }, React__default.createElement(Sider, {
|
25177 | theme: "light",
|
25178 | width: 250,
|
25179 | style: { overflow: "auto" }
|
25180 | }, useMemo(() => React__default.createElement("div", {
|
25181 | className: "components"
|
25182 | }, componentsGroup.map((componentGroup) => React__default.createElement(ComponentsGroup, {
|
25183 | key: componentGroup.title,
|
25184 | componentGroup
|
25185 | }))), [])), React__default.createElement(Layout, {
|
25186 | className: "center-container"
|
25187 | }, React__default.createElement(Header, __spreadValues({}, props)), React__default.createElement(Content, {
|
25188 | className: "widget-empty"
|
25189 | }, React__default.createElement(Layout, null, React__default.createElement(WidgetForm, {
|
25190 | formInstance
|
25191 | })))), React__default.createElement(Sider, {
|
25192 | className: "widget-config-container",
|
25193 | theme: "light",
|
25194 | width: 300
|
25195 | }, React__default.createElement(Layout, null, useMemo(() => React__default.createElement(React__default.Fragment, null, React__default.createElement(Layout.Header, null, React__default.createElement("div", {
|
25196 | className: `config-tab ${currentTab === "Local" && "active"}`,
|
25197 | onClick: () => setCurrentTab("Local")
|
25198 | }, "\u5B57\u6BB5\u8BBE\u7F6E"), React__default.createElement("div", {
|
25199 | className: `config-tab ${currentTab === "Global" && "active"}`,
|
25200 | onClick: () => setCurrentTab("Global")
|
25201 | }, "\u5168\u5C40\u8BBE\u7F6E")), React__default.createElement(Content, {
|
25202 | className: "config-content"
|
25203 | }, currentTab === "Local" ? React__default.createElement(WidgetConfig, null) : React__default.createElement(GlobalConfig, null))), [currentTab])))));
|
25204 | });
|
25205 | DesignForm$1.defaultProps = {
|
25206 | uploadJson: true,
|
25207 | clearable: true,
|
25208 | preview: true,
|
25209 | generateJson: true,
|
25210 | generateCode: true
|
25211 | };
|
25212 | var _DesignForm = forwardRef((props, ref) => React__default.createElement(DesignProvider, null, React__default.createElement(DesignForm$1, __spreadProps(__spreadValues({}, props), {
|
25213 | ref
|
25214 | }))));
|
25215 | var index = "";
|
25216 | if (typeof window !== "undefined") {
|
25217 | let loadSvg = function() {
|
25218 | var body = document.body;
|
25219 | var svgDom = document.getElementById("__svg__icons__dom__1644906148797__");
|
25220 | if (!svgDom) {
|
25221 | svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
25222 | svgDom.style.position = "absolute";
|
25223 | svgDom.style.width = "0";
|
25224 | svgDom.style.height = "0";
|
25225 | svgDom.id = "__svg__icons__dom__1644906148797__";
|
25226 | svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
25227 | svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
25228 | }
|
25229 | svgDom.innerHTML = '<symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Alert"><path d="M193 796c0 17.7 14.3 32 32 32h574c17.7 0 32-14.3 32-32V563c0-176.2-142.8-319-319-319S193 386.8 193 563v233zm72-233c0-136.4 110.6-247 247-247s247 110.6 247 247v193H404V585c0-5.5-4.5-10-10-10h-44c-5.5 0-10 4.5-10 10v171h-75V563zm-48.1-252.5 39.6-39.6c3.1-3.1 3.1-8.2 0-11.3l-67.9-67.9c-3.1-3.1-8.2-3.1-11.3 0l-39.6 39.6c-3.1 3.1-3.1 8.2 0 11.3l67.9 67.9c3.1 3.1 8.1 3.1 11.3 0zm669.6-79.2-39.6-39.6c-3.1-3.1-8.2-3.1-11.3 0l-67.9 67.9c-3.1 3.1-3.1 8.2 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l67.9-67.9c3.1-3.2 3.1-8.2 0-11.3zM832 892H192c-17.7 0-32 14.3-32 32v24c0 4.4 3.6 8 8 8h688c4.4 0 8-3.6 8-8v-24c0-17.7-14.3-32-32-32zM484 180h56c4.4 0 8-3.6 8-8V76c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v96c0 4.4 3.6 8 8 8z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-AutoComplete"><path d="M158.144 0A158.304 158.304 0 0 0 0 158.144a158.304 158.304 0 0 0 158.144 158.112 158.304 158.304 0 0 0 158.112-158.112A158.304 158.304 0 0 0 158.144 0zm0 283.104a125.12 125.12 0 0 1-124.96-124.96 125.12 125.12 0 0 1 124.96-124.96 125.12 125.12 0 0 1 124.96 124.96 125.12 125.12 0 0 1-124.96 124.96zm0 70.752A158.304 158.304 0 0 0 0 512a158.304 158.304 0 0 0 158.144 158.144A158.304 158.304 0 0 0 316.256 512a158.304 158.304 0 0 0-158.112-158.144zm0 283.104A125.12 125.12 0 0 1 33.184 512a125.12 125.12 0 0 1 124.96-124.96A125.12 125.12 0 0 1 283.104 512a125.12 125.12 0 0 1-124.96 124.96zm0 70.784A158.304 158.304 0 0 0 0 865.856 158.304 158.304 0 0 0 158.144 1024a158.304 158.304 0 0 0 158.112-158.144 158.304 158.304 0 0 0-158.112-158.112zm0 283.072a125.12 125.12 0 0 1-124.96-124.96 125.12 125.12 0 0 1 124.96-124.96 125.12 125.12 0 0 1 124.96 124.96 125.12 125.12 0 0 1-124.96 124.96z" /><path d="m199.488 111.04-59.04 58.976-23.68-23.648a16.576 16.576 0 0 0-23.456 23.456l35.392 35.392a16.544 16.544 0 0 0 23.456 0l70.784-70.784a16.576 16.576 0 1 0-23.456-23.456zm0 353.856-59.04 59.04-23.68-23.68a16.576 16.576 0 0 0-23.456 23.488l35.392 35.36a16.544 16.544 0 0 0 23.456 0l70.784-70.752a16.576 16.576 0 1 0-23.456-23.456zM388.16 121.632h318.464a16.576 16.576 0 1 0 0-33.152H388.16a16.576 16.576 0 1 0 0 33.152zm0 106.176h619.264a16.576 16.576 0 1 0 0-33.184H388.16a16.576 16.576 0 1 0 0 33.184zm0 247.712h318.464a16.576 16.576 0 1 0 0-33.184H388.16a16.576 16.576 0 1 0 0 33.184zm619.264 72.96H388.16a16.576 16.576 0 1 0 0 33.184h619.264a16.576 16.576 0 1 0 0-33.184zM388.16 829.376h318.464a16.576 16.576 0 1 0 0-33.184H388.16a16.576 16.576 0 1 0 0 33.184zm619.264 72.992H388.16a16.576 16.576 0 1 0 0 33.152h619.264a16.576 16.576 0 1 0 0-33.152z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Button"><path d="M819.2 785.067H204.8A136.533 136.533 0 0 1 68.267 648.533V375.467A136.533 136.533 0 0 1 204.8 238.933h614.4a136.533 136.533 0 0 1 136.533 136.534v273.066A136.533 136.533 0 0 1 819.2 785.067zM204.8 307.2a68.267 68.267 0 0 0-68.267 68.267v273.066A68.267 68.267 0 0 0 204.8 716.8h614.4a68.267 68.267 0 0 0 68.267-68.267V375.467A68.267 68.267 0 0 0 819.2 307.2z" /><path d="M682.667 546.133H341.333a34.133 34.133 0 0 1 0-68.266h341.334a34.133 34.133 0 0 1 0 68.266z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Calendar"><path d="M128.195 929.441c-42.453 0-76.995-35.032-76.995-77.969V151.063L25.6 177.01h870.532c42.228 0 76.668 34.986 76.668 77.734v583.888c0 14.33 11.462 25.946 25.6 25.946 14.138 0 25.6-11.617 25.6-25.946V254.743c0-71.38-57.337-129.626-127.868-129.626H25.6c-14.138 0-25.6 11.617-25.6 25.946v700.409c0 71.588 57.458 129.861 128.195 129.861H883.2c14.138 0 25.6-11.616 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H128.195Z" /><path d="M281.6 254.847c0 14.33 11.462 25.946 25.6 25.946 14.138 0 25.6-11.617 25.6-25.946V60.252c0-14.33-11.462-25.946-25.6-25.946-14.138 0-25.6 11.617-25.6 25.946v194.595ZM716.8 241.874c0 14.33 11.462 25.946 25.6 25.946 14.138 0 25.6-11.617 25.6-25.946V47.279c0-14.33-11.462-25.946-25.6-25.946-14.138 0-25.6 11.617-25.6 25.946v194.595ZM332.8 410.523c14.138 0 25.6-11.617 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H192c-14.138 0-25.6 11.616-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8ZM614.4 410.523c14.138 0 25.6-11.617 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H473.6c-14.138 0-25.6 11.616-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8ZM870.4 410.523c14.138 0 25.6-11.617 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H729.6c-14.138 0-25.6 11.616-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8ZM332.8 566.198c14.138 0 25.6-11.616 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H192c-14.138 0-25.6 11.617-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8ZM614.4 566.198c14.138 0 25.6-11.616 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H473.6c-14.138 0-25.6 11.617-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8ZM870.4 566.198c14.138 0 25.6-11.616 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H729.6c-14.138 0-25.6 11.617-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8ZM332.8 721.874c14.138 0 25.6-11.617 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H192c-14.138 0-25.6 11.616-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8ZM614.4 721.874c14.138 0 25.6-11.617 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H473.6c-14.138 0-25.6 11.616-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8ZM870.4 721.874c14.138 0 25.6-11.617 25.6-25.946 0-14.33-11.462-25.946-25.6-25.946H729.6c-14.138 0-25.6 11.616-25.6 25.946 0 14.33 11.462 25.946 25.6 25.946h140.8Z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Cascader"><path d="M204.8 512V281.6c0-12.8 10.24-25.6 25.6-25.6h307.2c15.36 0 25.6 10.24 25.6 25.6V512c0 12.8-10.24 25.6-25.6 25.6H512v51.2h51.2c28.16 0 51.2-23.04 51.2-51.2V256c0-28.16-23.04-51.2-51.2-51.2H204.8c-28.16 0-51.2 23.04-51.2 51.2v281.6c0 28.16 23.04 51.2 51.2 51.2h153.6v-51.2h-128c-12.8 0-25.6-10.24-25.6-25.6zm0 0" /><path d="M819.2 435.2H665.6v51.2h128c15.36 0 25.6 10.24 25.6 25.6v230.4c0 12.8-10.24 25.6-25.6 25.6H486.4c-15.36 0-25.6-10.24-25.6-25.6V512c0-12.8 10.24-25.6 25.6-25.6H512v-51.2h-51.2c-28.16 0-51.2 23.04-51.2 51.2V768c0 28.16 23.04 51.2 51.2 51.2h358.4c28.16 0 51.2-23.04 51.2-51.2V486.4c0-28.16-23.04-51.2-51.2-51.2zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Checkbox"><path d="M938.667 1024H85.333C38.4 1024 0 985.6 0 938.667V85.333C0 38.4 38.4 0 85.333 0h853.334C985.6 0 1024 38.4 1024 85.333v853.334c0 46.933-38.4 85.333-85.333 85.333zm0-917.333c0-12.8-8.534-21.334-21.334-21.334H106.667c-12.8 0-21.334 8.534-21.334 21.334v810.666c0 12.8 8.534 21.334 21.334 21.334h810.666c12.8 0 21.334-8.534 21.334-21.334V106.667zM456.533 712.533c-6.4 8.534-17.066 12.8-29.866 12.8s-23.467-4.266-29.867-12.8L226.133 541.867c-8.533-6.4-12.8-17.067-12.8-29.867 0-23.467 19.2-42.667 42.667-42.667 12.8 0 23.467 4.267 29.867 12.8l140.8 140.8 311.466-311.466c8.534-8.534 19.2-12.8 29.867-12.8 23.467 0 42.667 19.2 42.667 42.666 0 12.8-4.267 23.467-12.8 29.867L456.533 712.533z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-CheckboxGroup"><path d="M106.667 432.128A42.667 42.667 0 0 1 64 389.461V106.667A42.667 42.667 0 0 1 106.667 64h312.362a42.667 42.667 0 1 1 0 85.333H149.333v240.128a42.667 42.667 0 0 1-42.666 42.667M920.747 960.299h-312.32a42.667 42.667 0 1 1 0-85.334H878.08V634.837a42.667 42.667 0 1 1 85.333 0v282.795a42.667 42.667 0 0 1-42.666 42.667" /><path d="M346.027 296.277c-26.795 0-48.555 21.76-48.555 48.512v345.643c0 26.752 21.76 48.512 48.512 48.512h345.685c26.752 0 48.47-21.76 48.47-48.512v-345.6c0-26.795-21.718-48.555-48.47-48.555H346.027zm345.6 528.043h-345.6A133.973 133.973 0 0 1 212.18 690.475v-345.6A133.973 133.973 0 0 1 346.027 210.9h345.685a133.973 133.973 0 0 1 133.803 133.846v345.642a133.973 133.973 0 0 1-133.803 133.846z" /><path d="M446.08 659.541a42.837 42.837 0 0 1-37.845-22.912l-61.227-117.205a42.667 42.667 0 1 1 75.648-39.51l36.565 69.931 160.427-135.893a42.667 42.667 0 1 1 55.125 65.11l-201.13 170.367a42.752 42.752 0 0 1-27.563 10.112" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Col"><path d="M853.333 955.733H170.667c-66.031 0-102.4-36.369-102.4-102.4V170.667c0-66.031 36.369-102.4 102.4-102.4h682.666c66.031 0 102.4 36.369 102.4 102.4v682.666c0 66.031-36.369 102.4-102.4 102.4zM529.067 921.6h324.266c47.224 0 68.267-21.043 68.267-68.267V170.667c0-47.224-21.043-68.267-68.267-68.267H529.067v819.2zm-358.4-819.2c-47.224 0-68.267 21.043-68.267 68.267v682.666c0 47.224 21.043 68.267 68.267 68.267h324.266V102.4H170.667z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Copy"><path d="M629.392 415.033 465.775 251.416c-7.992-7.992-20.947-7.992-28.939 0-7.992 8.002-7.992 20.957 0 28.95l128.68 128.68H389.97V184.083c0-11.298-9.17-20.467-20.466-20.467H21.813c-11.307 0-20.465 9.17-20.465 20.467v818.082c0 11.307 9.158 20.466 20.466 20.466h593.108c11.308 0 20.466-9.159 20.466-20.466V429.512c0-5.433-2.159-10.632-5.996-14.48zm-34.936 566.666H42.28v-777.15h306.756v224.963c0 11.298 9.159 20.466 20.467 20.466h224.953v531.72z" /><path d="M1023.979 265.896v572.652c0 11.308-9.16 20.466-20.467 20.466H695.651c-11.298 0-20.466-9.158-20.466-20.466 0-11.297 9.168-20.466 20.466-20.466h287.395v-531.72H758.093c-11.308 0-20.466-9.169-20.466-20.466V40.932H430.87v75.694c0 11.308-9.169 20.466-20.466 20.466-11.307 0-20.466-9.158-20.466-20.466v-96.16C389.938 9.17 399.097 0 410.404 0h347.689c11.297 0 20.466 9.169 20.466 20.466V245.43h175.548l-128.68-128.681c-7.993-7.992-7.993-20.947 0-28.95 7.991-7.991 20.946-7.991 28.939 0l163.616 163.627a20.455 20.455 0 0 1 5.997 14.47z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-DatePicker"><path d="M848.9 118h-93.5c-8.7 0-15.8-7.1-15.8-15.8V60.6c0-16.3-12.8-30.2-29.2-30.6-17-.5-30.8 13.1-30.8 30v42.3c0 8.7-7.1 15.8-15.8 15.8H363.3c-8.7 0-15.8-7.1-15.8-15.8V60.6c0-16.3-12.8-30.2-29.2-30.6-17-.5-30.8 13.1-30.8 30v42.3c0 8.7-7.1 15.8-15.8 15.8h-96.6C98.8 118 37 179.8 37 256.1v599.8C37 932.2 98.8 994 175.1 994h673.7c76.3 0 138.1-61.8 138.1-138.1V256.1c.1-76.3-61.7-138.1-138-138.1zM97 256.1c0-43.2 35-78.1 78.1-78.1h96.6c8.7 0 15.8 7.1 15.8 15.8v41.7c0 16.3 12.8 30.2 29.2 30.6 17 .5 30.8-13.1 30.8-30v-42.3c0-8.7 7.1-15.8 15.8-15.8h300.5c8.7 0 15.8 7.1 15.8 15.8v41.7c0 16.3 12.8 30.2 29.2 30.6 17 .5 30.8-13.1 30.8-30v-42.3c0-8.7 7.1-15.8 15.8-15.8h93.5c43.2 0 78.1 35 78.1 78.1v45.4c0 11.4-9.2 20.6-20.6 20.6H117.6c-11.4 0-20.6-9.2-20.6-20.6v-45.4zM927 856c0 43.2-35 78.1-78.1 78.1H175.1c-43.1 0-78.1-35-78.1-78.1V402.7c0-11.4 9.2-20.6 20.6-20.6h788.9c11.4 0 20.6 9.2 20.6 20.6L927 856z" /><path d="M240.3 586.1H306c16.5 0 30-13.4 30-30 0-16.5-13.4-30-30-30h-65.7c-16.5 0-30 13.4-30 30s13.4 30 30 30zm238.9 0h65.7c16.5 0 30-13.4 30-30 0-16.5-13.4-30-30-30h-65.7c-16.5 0-30 13.4-30 30 .1 16.6 13.5 30 30 30zm239 0h65.7c16.5 0 30-13.4 30-30 0-16.5-13.4-30-30-30h-65.7c-16.5 0-30 13.4-30 30s13.4 30 30 30zM312 730.1h-65.7c-16.5 0-30 13.4-30 30 0 16.5 13.4 30 30 30H312c16.5 0 30-13.4 30-30s-13.4-30-30-30zm239 0h-65.7c-16.5 0-30 13.4-30 30 0 16.5 13.4 30 30 30H551c16.5 0 30-13.4 30-30-.1-16.6-13.5-30-30-30zm238.9 0h-65.7c-16.5 0-30 13.4-30 30 0 16.5 13.4 30 30 30h65.7c16.5 0 30-13.4 30-30s-13.4-30-30-30z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Delete"><path d="M517.59 21.609c-100.299 0-181.703 79.514-185.167 179.34H98.603c-25.979 0-47.235 21.099-47.235 47.236 0 25.98 21.099 47.237 47.236 47.237h52.117v528.416c0 99.196 67.233 180.285 150.37 180.285h423.55c82.98 0 150.37-80.616 150.37-180.285V295.737h47.236c25.98 0 47.236-21.1 47.236-47.237 0-25.98-21.099-47.236-47.236-47.236H702.441C699.449 101.124 617.888 21.61 517.59 21.61zm-96.677 179.34c3.464-51.172 45.19-90.85 96.834-90.85s93.37 39.835 96.362 90.85H420.913zm-119.98 714.842c-29.444 0-61.88-37.789-61.88-91.953V295.737h547.311V824.31c0 54.007-32.436 91.954-61.88 91.954H300.933v-.473zm0 0" /><path d="M364.387 802.267c21.57 0 39.363-21.571 39.363-48.653V476.022c0-27.082-17.635-48.654-39.363-48.654-21.572 0-39.364 21.572-39.364 48.654v277.592c0 26.924 17.32 48.653 39.364 48.653zm142.496 0c21.571 0 39.363-21.571 39.363-48.653V476.022c0-27.082-17.635-48.654-39.363-48.654-21.571 0-39.364 21.572-39.364 48.654v277.592c0 26.924 17.793 48.653 39.364 48.653zm149.896 0c21.571 0 39.364-21.571 39.364-48.653V476.022c0-27.082-17.635-48.654-39.364-48.654-21.571 0-39.363 21.572-39.363 48.654v277.592c0 26.924 17.162 48.653 39.363 48.653zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Divider"><path d="M168.07 197.42h683.52v43.75H168.07zm0 295.28h131.24v43.75H168.07zm271.59 0h140.36v43.75H439.66zm280.69 0h131.24v43.75H720.35zM168.07 787.98h683.52v43.75H168.07z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-GenerateCode"><path d="M518.4 819.2H800c6.4 0 19.2-6.4 25.6-6.4 6.4-6.4 6.4-12.8 6.4-25.6V268.8c0-19.2-12.8-32-32-32H224c-6.4 0-19.2 6.4-25.6 6.4 0 6.4-6.4 19.2-6.4 25.6v518.4c0 19.2 12.8 32 32 32h294.4zm12.8 64H224c-51.2 0-96-44.8-96-96V268.8c0-25.6 12.8-51.2 25.6-70.4s44.8-25.6 70.4-25.6h576c51.2 0 96 44.8 96 96v518.4c0 25.6-12.8 51.2-25.6 70.4-19.2 19.2-44.8 25.6-70.4 25.6H531.2zm153.6-358.4" /><path d="M441.6 672c-19.2 19.2-38.4 0-38.4 0L288 537.6c-6.4-6.4-6.4-12.8 0-19.2L403.2 384s25.6-19.2 38.4 0c19.2 19.2 0 38.4 0 38.4L352 531.2 441.6 640c0-6.4 12.8 19.2 0 32zm51.2 19.2c-25.6-6.4-19.2-32-19.2-32l25.6-281.6c0-6.4 6.4-32 32-25.6 25.6 6.4 25.6 32 25.6 32l-32 281.6c-6.4 6.4-12.8 32-32 25.6zm128-19.2s-19.2 19.2-38.4 0 0-38.4 0-38.4L672 524.8l-89.6-102.4s-12.8-19.2 0-38.4c19.2-19.2 38.4 0 38.4 0L736 518.4c6.4 6.4 6.4 12.8 0 19.2L620.8 672z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-GenerateJson"><path d="M902.4 397.867c-9.6-9.6-22.933-14.934-36.267-14.934h-21.866V275.2c0-4.267-1.6-8.533-4.267-11.733L663.467 115.733c-1.6-1.6-3.2-2.666-4.8-3.733-1.067-.533-2.134-1.067-3.734-1.6-.533 0-.533 0-1.066-.533-1.6-.534-2.667-.534-4.267-.534H216c-19.733 0-35.733 16-35.733 35.734V382.4H158.4c-13.867 0-26.667 5.333-36.267 14.933-10.133 10.134-15.466 22.934-15.466 36.8v265.6c0 28.267 22.933 51.2 51.2 51.2h21.866V884.8c0 19.733 16 35.733 35.734 35.733H808c19.733 0 35.733-16 35.733-35.733V750.933H865.6c28.267 0 51.2-22.933 51.2-51.2v-265.6c.533-13.866-4.8-26.666-14.4-36.266zM235.733 161.6H630.4v114.133c0 4.8 2.133 9.067 5.333 12.8 3.2 3.2 8 5.334 12.8 5.334h142.4v79.466h-555.2V161.6zm437.334 397.333c0 36.8-8.534 65.067-25.067 85.867-16.533 20.8-38.933 30.933-66.667 30.933-28.266 0-50.666-10.133-67.2-30.933-16.533-20.8-25.066-49.067-25.066-84.8 0-22.933 2.666-42.667 8.533-58.133 4.267-11.734 10.133-21.867 17.6-30.934 7.467-9.066 15.467-16 24.533-20.266 11.734-5.867 25.6-9.067 40.534-9.067 27.733 0 50.133 10.133 66.666 30.933s26.134 49.067 26.134 86.4zM423.467 592c-2.667-3.733-7.467-6.933-13.867-9.6-4.267-1.6-14.4-5.333-30.4-10.133-20.267-5.867-34.667-13.334-43.2-22.4-11.733-12.267-17.6-27.734-17.6-45.867 0-11.733 2.667-22.4 8-32.533 5.333-10.134 13.333-17.6 23.467-22.934s22.933-8 37.333-8c23.467 0 41.6 6.4 53.333 18.667s18.134 29.333 18.667 50.133L421.867 512c-1.6-11.733-5.334-20.267-10.667-25.067-5.333-5.333-13.333-7.466-24-7.466-11.2 0-19.733 2.666-26.133 8-4.267 3.733-5.867 8-5.867 13.866 0 5.334 2.133 10.134 5.867 13.867 4.8 4.8 16.533 10.133 35.2 14.933 18.666 5.334 32.533 10.667 41.066 16.534s16 13.333 20.8 22.933c4.8 9.6 7.467 21.867 7.467 36.267 0 12.8-3.2 25.066-9.067 36.266-5.866 11.2-14.4 19.734-25.6 25.067s-24.533 8.533-41.066 8.533c-24 0-42.134-6.4-54.934-19.733-12.8-13.333-20.266-32.533-22.933-58.133l37.333-4.267c2.134 14.933 6.934 26.133 13.334 33.067 6.933 6.933 16 10.666 27.733 10.666 12.267 0 21.333-3.2 27.733-9.6 6.4-6.4 9.6-13.333 9.6-21.866-.533-5.334-1.6-10.134-4.266-13.867zm-248.534 65.067C164.8 644.8 160 626.133 159.467 602.133l35.733-4.8c.533 12.8 2.133 22.4 4.8 27.734 4.267 8 10.133 12.266 18.667 12.266s14.4-2.666 18.133-8.533c3.733-5.867 5.333-18.133 5.333-36.267V444.8H280v143.467c0 18.666-1.6 33.066-4.267 43.2-3.733 13.333-10.666 24-20.266 32-9.6 8-22.4 11.733-38.4 11.733-17.6.533-32-5.867-42.134-18.133zm616 202.133h-555.2v-98.133h555.734V859.2zm62.4-187.2h-38.4l-76.266-147.733V672h-35.2V444.8H740.8l77.333 151.467V444.8h35.2V672z" /><path d="M581.333 480.533c-15.466 0-28.266 6.4-37.866 19.2-9.6 12.8-14.4 32.534-14.4 58.667 0 25.6 4.8 45.333 14.933 58.133 10.133 13.334 22.4 19.734 37.867 19.734 15.466 0 27.733-6.4 37.333-19.734 9.6-13.333 14.4-33.066 14.4-59.2 0-26.133-4.8-45.333-14.4-58.133-9.6-12.267-21.867-18.667-37.867-18.667z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Grid"><path d="M794.17 147.91c45.16.2 81.71 36.76 81.92 81.92v564.34c-.2 45.16-36.76 81.71-81.92 81.92H229.83c-45.16-.2-81.71-36.76-81.92-81.92V229.83c.2-45.16 36.76-81.71 81.92-81.92h564.34m0-45.51H229.83c-70.09 0-127.43 57.34-127.43 127.43v564.34c0 70.08 57.34 127.43 127.43 127.43h564.34c70.08 0 127.43-57.34 127.43-127.43V229.83c0-70.09-57.34-127.43-127.43-127.43zm0 0" /><path d="M489.74 105.55h44.52v813.89h-44.52z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Icon"><path d="M759.467 755.456h-177.63c-14.422 0-26.112 12.476-26.112 27.87v168.619h28.433l175.309-191.506v-4.983zm0-55.723V611.55c0-15.19 11.468-27.477 25.6-27.477s25.6 12.288 25.6 27.477v160.136c0 7.22-2.646 14.132-7.339 19.286L613.154 998.707a24.747 24.747 0 0 1-18.261 8.226H211.627c-65.024 0-117.76-56.627-117.76-126.48V143.53c0-69.837 52.736-126.464 117.76-126.464h481.28c65.024 0 117.76 56.627 117.76 126.48v48.93c0 15.19-11.47 27.478-25.6 27.478s-25.6-12.288-25.6-27.477V143.53c0-39.476-29.799-71.493-66.56-71.493h-481.28c-36.762 0-66.56 32.017-66.56 71.51v736.887c0 39.475 29.798 71.492 66.56 71.492h291.84V783.31c0-46.148 35.089-83.576 78.37-83.576h177.63zm-410.47-426.666c28.774 0 50.21 5.82 63.88 17.817 14.558 12.68 20.463 32.546 17.442 59.273h-39.765c-.342-15.07-4.643-26.044-12.22-32.546-7.51-6.861-20.6-9.933-38.417-9.933-15.428 0-27.478 2.048-36.608 6.502-11.332 5.137-17.869 13.705-20.224 25.361-2.082 10.274 1.655 18.842 12.049 25.003 4.59 2.73 17.579 7.885 38.741 15.087 31.164 10.274 50.74 18.5 59.222 23.979 18.653 12.68 25.736 30.14 21.162 52.753-4.454 21.93-16.572 39.424-36.266 52.087-19.627 12.34-45.295 18.842-76.46 18.842-30.156 0-52.616-5.82-67.037-17.477-17.647-14.387-24.371-37-19.746-68.18h39.731c-1.007 18.5 2.799 31.863 11.81 39.747 8.21 6.861 22.187 10.616 42.394 10.616 17.817 0 32.836-3.072 44.288-8.909 11.537-6.161 18.602-14.046 20.702-24.32 2.645-13.022-3.158-23.296-16.709-30.84-4.3-2.389-18.944-7.884-44.356-16.093-28.194-9.592-45.653-16.453-52.02-20.566-16.554-11.298-22.459-27.75-18.09-49.322 4.386-21.607 16.777-38.742 37.769-51.064 19.592-12.015 42.325-17.817 68.744-17.817zm122.504 4.795h43.52l26.692 199.407h1.024L650.36 277.862h43.52L557.21 522.496h-48.298L471.5 277.862zm356.437-4.795c31.522 0 54.801 6.86 70.11 20.906 14.694 13.705 21.555 33.912 20.446 61.32H878.08c-.239-15.752-5.41-27.408-14.78-35.293-9.71-7.868-24.013-11.64-42.513-11.64-22.954 0-42.65 7.527-59.221 23.297-18.057 16.452-29.9 39.406-36.01 69.546-5.855 28.792-3.858 51.064 6.024 66.475 10.718 16.452 30.976 24.661 60.791 24.661 11.64 0 22.87-1.365 33.724-4.096a140.425 140.425 0 0 0 28.672-11.315l10.223-50.364h-64.768l6.963-34.27h104.84L891.035 495.77a180.02 180.02 0 0 1-49.272 23.296c-18.927 5.495-39.014 8.226-60.928 8.226-39.083 0-66.73-12.34-83.302-37-15.565-22.955-19.456-52.77-12.083-89.089 7.44-36.659 23.5-66.799 48.503-90.453 26.385-25.344 57.685-37.683 93.986-37.683z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Image"><path d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z" /><path d="M304 456c48.6 0 88-39.4 88-88s-39.4-88-88-88-88 39.4-88 88 39.4 88 88 88zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Input"><path d="M896 224H128c-35.2 0-64 28.8-64 64v448c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V288c0-35.2-28.8-64-64-64zm0 480c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V320c0-19.2 12.8-32 32-32h704c19.2 0 32 12.8 32 32v384z" /><path d="M224 352c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V384c0-16-12.8-32-32-32z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-InputNumber"><path d="M896 224H128c-35.2 0-64 28.8-64 64v448c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V288c0-35.2-28.8-64-64-64zm0 480c0 19.2-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V320c0-19.2 12.8-32 32-32h704c19.2 0 32 12.8 32 32v384z" /><path d="M291.2 412.8c-12.8 6.4-22.4 12.8-35.2 16v41.6c22.4-6.4 41.6-16 54.4-28.8V640h38.4V393.6H320c-6.4 3.2-19.2 12.8-28.8 19.2zM489.6 560c22.4-16 41.6-28.8 48-38.4 16-16 22.4-38.4 22.4-57.6 0-22.4-6.4-38.4-22.4-54.4-16-12.8-35.2-19.2-57.6-19.2-25.6 0-48 9.6-60.8 25.6-16 16-22.4 38.4-22.4 67.2h38.4c0-19.2 3.2-35.2 12.8-44.8 6.4-9.6 19.2-16 32-16s25.6 3.2 32 9.6c6.4 6.4 9.6 16 9.6 28.8s-6.4 25.6-16 38.4c-6.4 6.4-16 16-32 28.8-28.8 19.2-44.8 35.2-54.4 44.8-16 19.2-22.4 41.6-22.4 64h166.4v-35.2H444.8c6.4-12.8 22.4-25.6 44.8-41.6zm233.6-54.4c25.6-9.6 38.4-25.6 38.4-54.4 0-22.4-6.4-38.4-22.4-51.2-16-12.8-35.2-19.2-57.6-19.2S640 387.2 624 400c-16 12.8-25.6 32-25.6 57.6h38.4c0-16 6.4-25.6 12.8-32 6.4-6.4 19.2-9.6 32-9.6s25.6 3.2 32 9.6c6.4 6.4 9.6 16 9.6 28.8s-3.2 22.4-9.6 28.8c-6.4 6.4-19.2 9.6-32 9.6h-16v28.8h16c16 0 25.6 3.2 35.2 9.6 9.6 6.4 12.8 16 12.8 32 0 12.8-3.2 22.4-12.8 28.8-9.6 9.6-19.2 12.8-35.2 12.8-12.8 0-25.6-3.2-32-12.8-9.6-9.6-12.8-22.4-16-38.4h-38.4c3.2 28.8 12.8 48 28.8 64 16 12.8 35.2 19.2 60.8 19.2 25.6 0 48-6.4 64-22.4 16-16 22.4-32 22.4-54.4 0-16-3.2-25.6-12.8-35.2-9.6-6.4-22.4-16-35.2-19.2z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Item"><path d="M902.4 253.867H283.733c-12.8 0-21.333-8.534-21.333-21.334s8.533-21.333 21.333-21.333H902.4c12.8 0 21.333 8.533 21.333 21.333 0 10.667-8.533 21.334-21.333 21.334zm-795.733-21.334a36.267 36.267 0 1 0 72.533 0 36.267 36.267 0 1 0-72.533 0zM902.4 535.467H283.733c-12.8 0-21.333-8.534-21.333-21.334s8.533-21.333 21.333-21.333H902.4c12.8 0 21.333 8.533 21.333 21.333s-8.533 21.334-21.333 21.334zm-795.733-21.334a36.267 36.267 0 1 0 72.533 0 36.267 36.267 0 1 0-72.533 0zM902.4 817.067H283.733c-12.8 0-21.333-8.534-21.333-21.334s8.533-21.333 21.333-21.333H902.4c12.8 0 21.333 8.533 21.333 21.333 0 10.667-8.533 21.334-21.333 21.334zm-795.733-21.334a36.267 36.267 0 1 0 72.533 0 36.267 36.267 0 1 0-72.533 0z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Mentions"><path d="M341.333 512a170.667 156.444 90 1 0 312.89 0 170.667 156.444 90 1 0-312.89 0Z" /><path d="M512 256a256 256 0 0 0-7.538 511.886L512 768h142.222v56.889H512C339.2 824.889 199.111 684.8 199.111 512S339.2 199.111 512 199.111c170.07 0 308.423 135.68 312.775 304.697l.114 8.192v56.889a113.778 113.778 0 0 1-211.598 58.14c-28.559 34.19-69.746 55.638-115.513 55.638-86.414 0-156.445-76.402-156.445-170.667s70.03-170.667 156.445-170.667c37.83 0 72.533 14.65 99.584 39.055l-.029-39.055h56.89V568.89a56.889 56.889 0 0 0 113.635 4.267l.142-4.267V512a256 256 0 0 0-256-256zm-14.222 142.222c-53.817 0-99.556 49.892-99.556 113.778s45.739 113.778 99.556 113.778S597.333 575.886 597.333 512s-45.738-113.778-99.555-113.778z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Move"><path d="M501.094 1021.824c6.938 2.893 14.823 2.893 21.812 0 3.43-1.434 6.528-3.482 9.113-6.067.026 0 .077-.026.077-.026l158.925-158.925c11.11-11.11 11.11-29.132 0-40.217-11.085-11.085-29.082-11.085-40.167.025L540.416 927.027l.026-335.36c0-15.693-12.724-28.416-28.416-28.416s-28.416 12.698-28.416 28.39v335.386L373.197 816.614c-11.11-11.084-29.107-11.084-40.141 0-11.11 11.11-11.136 29.108-.051 40.192l158.95 158.925c.82.82 1.895 1.178 2.816 1.869 1.946 1.587 3.917 3.226 6.323 4.224zM522.906 2.176c-6.938-2.893-14.823-2.893-21.786 0a28.167 28.167 0 0 0-9.14 6.042c-.025 0-.076.05-.076.05l-158.925 158.9c-11.11 11.11-11.11 29.133 0 40.218 11.085 11.084 29.082 11.084 40.167-.026L483.584 96.947l-.026 335.36c0 15.693 12.724 28.416 28.416 28.416 15.693 0 28.442-12.697 28.442-28.39V96.947L650.829 207.36c11.11 11.085 29.107 11.085 40.14 0 11.111-11.11 11.162-29.107.052-40.192L532.07 8.268c-.82-.844-1.895-1.202-2.817-1.894-1.97-1.561-3.942-3.2-6.348-4.198zM1021.824 522.906c2.893-6.938 2.893-14.823 0-21.812a27.788 27.788 0 0 0-6.042-9.113c0-.026-.05-.077-.05-.077l-158.9-158.925c-11.11-11.11-29.158-11.11-40.243 0-11.06 11.085-11.06 29.082.051 40.167l110.387 110.438-335.36-.026c-15.693 0-28.39 12.724-28.39 28.416s12.697 28.416 28.39 28.416h335.36L816.64 650.803c-11.11 11.11-11.11 29.107 0 40.141 11.11 11.11 29.107 11.136 40.192.051l158.9-158.95c.844-.82 1.202-1.895 1.894-2.816 1.561-1.946 3.2-3.917 4.198-6.323zM2.176 501.094c-2.893 6.938-2.893 14.823 0 21.786a27.633 27.633 0 0 0 6.042 9.14l.05.05 158.9 158.95c11.11 11.111 29.158 11.111 40.243 0 11.06-11.11 11.06-29.106-.051-40.191L96.973 540.39l335.36.052c15.693 0 28.39-12.75 28.39-28.416 0-15.693-12.697-28.442-28.39-28.442l-335.36.026L207.36 373.197c11.11-11.11 11.11-29.107 0-40.141-11.11-11.11-29.107-11.162-40.192-.051l-158.9 158.95c-.844.82-1.202 1.895-1.894 2.816-1.561 1.946-3.2 3.917-4.198 6.323z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Paragraph"><path d="M512 256v640h-85.333V682.667a256 256 0 1 1 0-512h426.666V256h-128v640H640V256H512zm-85.333 0a170.667 170.667 0 1 0 0 341.333V256z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Password"><path d="M868.593 403.832c-30.081-28.845-70.037-44.753-112.624-44.753h-490.02c-42.554 0-82.51 15.908-112.469 44.691-30.237 28.783-46.857 67.222-46.857 108.198v294.08c0 40.977 16.62 79.415 46.703 108.137C183.285 943.03 223.396 959 265.95 959h490.019c42.586 0 82.696-15.97 112.624-44.815 30.082-28.845 46.58-67.222 46.58-108.137v-294.08c-.001-40.915-16.498-79.29-46.58-108.136zM841.821 806.05c0 22.098-8.882 42.772-25.1 58.307-16.154 15.662-37.819 24.203-60.752 24.203h-490.02c-22.934 0-44.566-8.542-60.877-24.264-16.187-15.475-25.068-36.149-25.068-58.247v-294.08c0-22.036 8.881-42.772 25.193-58.308 16.187-15.537 37.82-24.14 60.754-24.14H755.97c22.933 0 44.598 8.603 60.753 24.14 16.218 15.536 25.1 36.272 25.1 58.308V806.05zM510.974 135.441c114.914 0 208.319 89.752 208.319 200.055h73.35C792.643 186.383 666.277 65 510.974 65c-155.334 0-281.7 121.384-281.7 270.497h73.35c0-110.302 93.436-200.055 208.35-200.055zM474.3 747.245h73.35V629.577H474.3v117.668z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Preview"><path d="M512 736a224 224 0 1 1 0-448 224 224 0 0 1 0 448zm0-64a160 160 0 1 0 0-320 160 160 0 0 0 0 320z" /><path d="M512 864C323.232 864 154.144 751.264 5.44 529.856a32 32 0 0 1 0-35.712C154.144 272.704 323.2 160 512 160c188.768 0 357.856 112.736 506.56 334.144a32 32 0 0 1 0 35.712C869.856 751.296 700.8 864 512 864zm0-64c159.84 0 306.72-94.784 441.248-288C818.72 318.784 671.84 224 512 224c-159.84 0-306.72 94.784-441.248 288C205.28 705.216 352.16 800 512 800z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-RadioGroup"><path d="M840 48H184c-66.272 0-120 53.728-120 120v656c0 66.272 53.728 120 120 120h656c66.272 0 120-53.728 120-120V168c0-66.272-53.728-120-120-120zm48 728c0 66.272-29.728 96-96 96H232c-66.272 0-96-29.728-96-96V216c0-66.272 29.728-96 96-96h560c66.272 0 96 29.728 96 96v560zM752 384c-61.856 0-112 50.144-112 112s50.144 112 112 112 112-50.144 112-112-50.144-112-112-112zm0 184c-39.768 0-72-32.232-72-72s32.232-72 72-72 72 32.232 72 72-32.232 72-72 72zM272 384c-61.856 0-112 50.144-112 112s50.144 112 112 112 112-50.144 112-112-50.144-112-112-112zm0 184c-39.768 0-72-32.232-72-72s32.232-72 72-72 72 32.232 72 72-32.232 72-72 72zm0-96c-13.256 0-24 10.744-24 24s10.744 24 24 24 24-10.744 24-24-10.744-24-24-24zm240 0c-13.256 0-24 10.744-24 24s10.744 24 24 24 24-10.744 24-24-10.744-24-24-24zm0-88c-61.856 0-112 50.144-112 112s50.144 112 112 112 112-50.144 112-112-50.144-112-112-112zm0 184c-39.768 0-72-32.232-72-72s32.232-72 72-72 72 32.232 72 72-32.232 72-72 72zm240-96c-13.256 0-24 10.744-24 24s10.744 24 24 24 24-10.744 24-24-10.744-24-24-24z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-RangePicker"><path d="M863.8 341.8H160.3c-12.2 0-22.2 9.9-22.2 22.2v529.4c0 3.4 2.8 6.2 6.2 6.2h735.5c3.4 0 6.2-2.8 6.2-6.2V364c0-12.2-9.9-22.2-22.2-22.2zm-37.7 491.6c0 3.4-2.8 6.2-6.2 6.2H204.2c-3.4 0-6.2-2.8-6.2-6.2V424c0-12.3 9.9-22.2 22.2-22.2h583.6c12.2 0 22.2 9.9 22.2 22.2v409.4zM330.1 6.2h-21.6c-10.6 0-19.2 8.6-19.2 19.2V167c0 10.6 8.6 19.2 19.2 19.2h21.6c10.6 0 19.2-8.6 19.2-19.2V25.4c0-10.6-8.6-19.2-19.2-19.2zm385.5 0H694c-10.6 0-19.2 8.6-19.2 19.2V167c0 10.6 8.6 19.2 19.2 19.2h21.6c10.6 0 19.2-8.6 19.2-19.2V25.4c0-10.6-8.6-19.2-19.2-19.2z" /><path d="M790.3 66.2c-10.6 0-19.2 8.6-19.2 19.2v119.1c0 10.6-8.6 19.2-19.2 19.2h-94.1c-10.6 0-19.2-8.6-19.2-19.2v-119c0-10.6-8.6-19.2-19.2-19.2H404.8c-10.6 0-19.2 8.6-19.2 19.2v119c0 10.6-8.6 19.2-19.2 19.2h-94.1c-10.6 0-19.2-8.6-19.2-19.2v-119c0-10.6-8.6-19.2-19.2-19.2H.1v927.2c0 13.4 10.9 24.3 24.3 24.3h975.3c13.4 0 24.3-10.9 24.3-24.3V66.2H790.3zm149.5 891.6H84.4c-13.4 0-24.3-10.9-24.3-24.3V283.7h.2V145c0-10.6 8.6-19.2 19.2-19.2h94.1c10.6 0 19.2 8.6 19.2 19.2v119.4c0 10.6 8.6 19.2 19.2 19.2h214.6c10.6 0 19.2-8.6 19.2-19.2V145c0-10.6 8.6-19.2 19.2-19.2h94.1c10.6 0 19.2 8.6 19.2 19.2v119.4c0 10.6 8.6 19.2 19.2 19.2h214.6c10.6 0 19.2-8.6 19.2-19.2V145c0-10.6 8.6-19.2 19.2-19.2h94.1c10.6 0 19.2 8.6 19.2 19.2v138.6h.2v649.8c.1 13.5-10.8 24.4-24.2 24.4z" /><path d="m289.7 535.3-.3-.2c-4.7-2.8-9.9-4.7-15.5-5.7l-3.3-.5-1.7 1.6h-3.2l-1.5 4.4c-1 3.1-1.5 6.6-1.5 10.5v3.1c-.4.3-.8.5-1.2.7l-1 .5-4 4c-6.9 4.8-13.8 7.5-20.5 8.2l-1.2.1-1.1.5c-.5.2-1.4.5-3.1.5-9.6 0-12.8 3.4-13.5 7-1.2 2.6-1.4 5.3-.6 8 1.3 4.5 5.1 8.2 12 11.7 5.3 3.6 12 3 20.2-1.8 1.2-.3 2.6-1 4-2.2 4.7-2.8 8.3-5.1 11.3-7V672c0 .9-.3 3-1.9 7.2-1.3 3.3-2.8 7.9-1.7 12 .5 18.9 13.1 21 18.6 21h.9l.9-.2c5.8-1.7 13-6.5 14.3-20.1v-.7c0-1.3-.1-4.1-1.2-15.1l-.1-.8c-1.9-8.6-1.4-10.9-1.4-11l.3-1v-89.8c-.8-8.1.4-11.1 1-12.1 2.6-2.9 3.9-7 3.9-12.6v-.7l-.1-.6c-1.4-5.3-4-9.6-7.8-12.2zm108.5 0-.3-.2c-4.7-2.8-9.9-4.7-15.5-5.7l-3.4-.4-1.7 1.6h-3.2l-1.5 4.4c-1 3.1-1.5 6.6-1.5 10.5v3.1c-.4.3-.8.5-1.2.7l-1 .5-4 4c-6.9 4.8-13.8 7.5-20.5 8.2l-1.2.1-1.1.5c-.5.2-1.4.5-3.1.5-9.6 0-12.8 3.4-13.5 7-1.2 2.6-1.4 5.3-.6 8 1.3 4.5 5.1 8.2 12 11.7 5.3 3.6 12 3 20.2-1.8 1.2-.3 2.6-1 4-2.2 4.7-2.8 8.3-5.1 11.3-7v93.3c0 .9-.3 3-1.9 7.2-1.3 3.3-2.8 7.9-1.7 12 .5 18.9 13.1 21 18.6 21h.9l.9-.2c5.8-1.7 13-6.5 14.3-20.1v-.7c0-1.3-.1-4-1.2-15.1l-.1-.8c-1.9-8.6-1.4-10.9-1.4-11l.3-1v-89.8c-.8-8.1.4-11.1 1-12.1 2.6-2.9 3.9-7 3.9-12.6v-.7l-.1-.6c-1.3-5.4-3.9-9.7-7.7-12.3zM530 625.8l-1.8-1.6h-82.8l-1.6 1.1c-5.5 3.7-8.3 7.9-8.3 12.7 0 4.7 2.8 9 8.3 12.7l1.6 1.1h82.8l1.8-1.6c4.3-3.7 6.5-7.8 6.5-12.2 0-4.4-2.2-8.5-6.5-12.2zm95.5-90.5-.3-.2c-4.7-2.8-9.9-4.7-15.5-5.7l-3.3-.5-1.7 1.6h-3.2l-1.5 4.4c-1 3.1-1.5 6.6-1.5 10.5v3.1c-.4.3-.8.5-1.2.7l-1 .5-4 4c-6.9 4.8-13.8 7.5-20.5 8.2l-1.2.1-1.1.5c-.5.2-1.4.5-3.1.5-9.6 0-12.8 3.4-13.5 7-1.2 2.6-1.4 5.3-.6 8 1.3 4.5 5.1 8.2 12 11.7 5.3 3.6 12 3 20.2-1.8 1.2-.3 2.6-1 4-2.2 4.7-2.8 8.3-5.1 11.3-7V672c0 .9-.3 3-1.9 7.2-1.3 3.3-2.8 7.9-1.7 12 .5 18.9 13.1 21 18.6 21h.9l.9-.2c5.8-1.7 13-6.5 14.3-20.1v-.7c0-1.3-.1-4.1-1.2-15.1l-.1-.8c-1.9-8.6-1.4-10.9-1.4-11l.3-1v-89.8c-.8-8.1.4-11.1 1-12.1 2.6-2.9 3.9-7 3.9-12.6v-.7l-.1-.6c-1.4-5.3-3.9-9.6-7.8-12.2zm182.1 20.1c-3.7-10-8.2-17.2-14-22.1l-4.6-3.8-3.5 3.5h-.6l-.9.3c-5 1.4-9.2 2.2-12.7 2.2h-59.1c-20.1 0-27-1.3-29.3-2.1l-.4-.1c-2.4-2.1-4.8-2.6-6.5-2.6h-2l-1.7 1.3c-8 6-12.5 15.7-13.4 28.9v.5c0 5.3 3.7 8.9 8.9 8.9h.7l.7-.2c17.3-3.9 36.5-7.1 56.9-9.5 18.1-.6 32.5-.3 43 1-38 58.3-61.6 103.9-70.3 135.4l-.1.6c-.8 4.6 0 8.3 2.3 11 1.5 1.7 4.2 3.8 9 3.8 7.6 0 14.4-2.3 20.2-6.9 2.9-1.4 6.5-4.6 6.8-12.2 8.6-41.5 28.8-83.2 60.1-124.1l3.6-1.2c.9 0 1.8-.2 2.7-.5 4.7-1.9 4.7-7.3 4.7-9.9v-1.2l-.5-1z" /></symbol><symbol class="icon" viewBox="0 0 1069 1024" id="svg-icon-Rate"><path d="m633.73 378.02 9.498 18.688 20.78 2.798 206.616 27.332a11.465 11.465 0 0 1 6.61 19.473L729.966 593.665l-14.893 14.893 3.8 20.683 37.847 204.89a11.465 11.465 0 0 1-16.481 12.296l-185.55-94.58-18.687-9.493-18.487 9.992-183.24 99.35a11.465 11.465 0 0 1-16.784-11.867l32.543-205.796 3.297-20.786-15.192-14.492-151.033-143.484a11.465 11.465 0 0 1 6.1-19.64L399 402.998l20.786-3.296 9.092-18.98 89.713-188.078a11.465 11.465 0 0 1 20.569-.263l94.568 185.635zM496.647 85.52 374.89 340.501l-279.126 44.26a34.395 34.395 0 0 0-18.303 58.908l204.873 194.663-44.169 279.115a34.395 34.395 0 0 0 50.366 35.616l248.4-134.679L788.776 946.66a34.395 34.395 0 0 0 49.437-36.894l-51.306-277.854 199.731-199.909a34.395 34.395 0 0 0-19.828-58.408l-280.118-37.032L558.33 84.713a34.395 34.395 0 0 0-61.682.802z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Row"><path d="M853.333 955.733H170.667c-66.031 0-102.4-36.369-102.4-102.4V170.667c0-66.031 36.369-102.4 102.4-102.4h682.666c66.031 0 102.4 36.369 102.4 102.4v682.666c0 66.031-36.369 102.4-102.4 102.4zM102.4 529.067v324.266c0 47.224 21.043 68.267 68.267 68.267h682.666c47.224 0 68.267-21.043 68.267-68.267V529.067H102.4zm0-34.134h819.2V170.667c0-47.224-21.043-68.267-68.267-68.267H170.667c-47.224 0-68.267 21.043-68.267 68.267v324.266z" /></symbol><symbol class="icon" viewBox="0 0 1027 1024" id="svg-icon-Search"><path d="M0 62.507h329.173v85.333H0zm984.32 599.04c-10.88 0-21.76-4.267-30.08-12.587L800.427 495.147c-16.64-16.64-16.64-43.734 0-60.374s43.733-16.64 60.373 0l153.813 153.814c16.64 16.64 16.64 43.733 0 60.373-8.32 8.533-19.413 12.587-30.293 12.587zM0 353.493h288.213v85.334H0zm0 291.414h589.44v85.333H0zm0 291.2h1023.36v85.333H0z" /><path d="M657.92 555.947c-152.533 0-276.693-124.16-276.693-276.694S505.387 2.56 657.92 2.56s276.693 124.16 276.693 276.693S810.667 555.947 657.92 555.947zm0-468.054c-105.6 0-191.36 85.76-191.36 191.36s85.76 191.36 191.36 191.36 191.36-85.76 191.36-191.36-85.76-191.36-191.36-191.36z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Select"><path d="M794.17 147.91c45.16.2 81.71 36.76 81.92 81.92v564.34c-.2 45.16-36.76 81.71-81.92 81.92H229.83c-45.16-.2-81.71-36.76-81.92-81.92V229.83c.2-45.16 36.76-81.71 81.92-81.92h564.34m0-45.51H229.83c-70.09 0-127.43 57.34-127.43 127.43v564.34c0 70.08 57.34 127.43 127.43 127.43h564.34c70.08 0 127.43-57.34 127.43-127.43V229.83c0-70.09-57.34-127.43-127.43-127.43zm0 0" /><path d="M514.8 704.46c-6.02.01-11.81-2.38-16.07-6.64l-256-255.09a22.73 22.73 0 0 1-6-22 22.752 22.752 0 0 1 16.1-16.16c7.87-2.11 16.27.14 22.02 5.92l239.88 239.05 239.22-239.39c8.89-8.82 23.25-8.8 32.11.06 8.86 8.86 8.9 23.21.08 32.11L530.89 697.79a22.744 22.744 0 0 1-16.09 6.67zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Slider"><path d="M951.453 476.844H523.672a131.836 131.836 0 0 0-254.18 0H72.547v70.312h196.945a131.836 131.836 0 0 0 254.18 0h427.781z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Space"><path d="M812.544 126.177a7.946 7.946 0 0 1 12.882 0l114.893 151.655c4.219 5.59.348 13.906-6.492 13.906h-73.872v461.107h73.872c6.84 0 10.71 8.315 6.39 13.906L825.323 918.282a7.946 7.946 0 0 1-12.903 0L697.528 766.751c-4.219-5.591-.348-13.906 6.492-13.906h73.872V291.738h-73.749c-6.963 0-10.71-8.315-6.512-13.927zM595.005 750.45v73.031H102.4V750.45h492.605zm0-262.431v73.011H102.4v-72.99h492.605zm0-262.451v73.031H102.4v-73.031h492.605z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Switch"><path d="M723.158 247.462H301.14c-156.17 0-286.047 119.314-286.047 264.553 0 144.974 129.876 264.553 286.047 264.553h422.017c156.43 0 285.736-119.578 285.736-264.553 0-145.239-129.023-264.553-285.736-264.553zm0 485.097H301.14c-130.418 0-238.725-99.916-238.725-220.544 0-121.132 107.74-220.545 238.725-220.545h422.017c130.702 0 238.466 99.413 238.466 220.545 0 120.628-108.332 220.544-238.466 220.544zm0-405.371c-109.985 0-199.798 83.358-199.798 184.827s89.818 184.3 199.798 184.3c109.443 0 199.819-82.833 199.819-184.3 0-101.732-90.38-184.827-199.82-184.827zm0 296.4c-66.616 0-120.886-49.958-120.886-111.573 0-61.856 54.27-111.838 120.886-111.838s120.37 49.982 120.37 111.838c0 61.615-53.753 111.573-120.37 111.573z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Table"><path d="M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 208H676V232h212v136zm0 224H676V432h212v160zM412 432h200v160H412V432zm200-64H412V232h200v136zm-476 64h212v160H136V432zm0-200h212v136H136V232zm0 424h212v136H136V656zm276 0h200v136H412V656zm476 136H676V656h212v136z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Text"><path d="M725.333 224v117.333h-64V288H480v480h74.667v64H341.333v-64H416V288H224v53.333h-64V224h565.333zm128 544v64h-256v-64h256zm0-128v64h-256v-64h256zm0-128v64h-256v-64h256z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-TextArea"><path d="M896 160H128c-35.2 0-64 28.8-64 64v576c0 35.2 28.8 64 64 64h768c35.2 0 64-28.8 64-64V224c0-35.2-28.8-64-64-64zm0 608c0 16-12.8 32-32 32H160c-19.2 0-32-12.8-32-32V256c0-16 12.8-32 32-32h704c19.2 0 32 12.8 32 32v512z" /><path d="M224 288c-19.2 0-32 12.8-32 32v256c0 16 12.8 32 32 32s32-12.8 32-32V320c0-16-12.8-32-32-32zm608 480c19.2 0 32-12.8 32-32V608L704 768h128z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-TimePicker"><path d="M511.488 32C246.592 32 32 247.04 32 512c0 264.96 214.592 480 479.488 480C776.96 992 992 776.96 992 512c0-264.96-215.04-480-480.512-480zM512 896c-212.16 0-384-171.84-384-384s171.84-384 384-384 384 171.84 384 384-171.84 384-384 384zm24-624h-72v288l252.032 151.232L752 652.16 536 524.032V272z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Title"><path d="M341.333 469.333h213.334V256H640v512h-85.333V554.667H341.333V768H256V256h85.333v213.333zM768 768h-17.067V648.533c-4.266 4.267-8.533 8.534-17.066 12.8s-12.8 8.534-21.334 8.534V652.8c8.534-4.267 21.334-12.8 25.6-17.067s12.8-12.8 17.067-21.333H768V768z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Tree"><path d="M312.79 1006.23H39.082v-320h273.706v320zm-53.334-53.334V739.563H92.48v213.333h167.019zm394.667 53.333H380.416v-320h273.707v320zm-53.334-53.333V739.563H433.792v213.333h167.019zm416 53.333H743.083v-320h273.706v320zm-53.333-53.333V739.563H796.459v213.333h167.018zM693.226 21.333V295.04H341.334V21.333h351.894zm-53.354 53.312H394.667v167.04h245.205V74.645z" /><path d="M901.333 400v296.363H848v-243.03H197.333V704H144V400z" /><path d="M549.333 261.333V720H496V261.333z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-TreeSelect"><path d="M256 51.2a51.2 51.2 0 0 1 51.2 51.2v204.8a51.2 51.2 0 0 1-51.2 51.2H51.2A51.2 51.2 0 0 1 0 307.2V102.4a51.2 51.2 0 0 1 51.2-51.2H256zm-10.24 61.44H61.44v184.32h184.32V112.64zM921.6 102.4a51.2 51.2 0 0 1 51.2 51.2V256a51.2 51.2 0 0 1-51.2 51.2H460.8a51.2 51.2 0 0 1-51.2-51.2V153.6a51.2 51.2 0 0 1 51.2-51.2h460.8zm-10.24 61.44H471.04v81.92h440.32v-81.92zM921.6 460.8a51.2 51.2 0 0 1 51.2 51.2v102.4a51.2 51.2 0 0 1-51.2 51.2H512a51.2 51.2 0 0 1-51.2-51.2V512a51.2 51.2 0 0 1 51.2-51.2h409.6zm-10.24 61.44H522.24v81.92h389.12v-81.92zM921.6 768a51.2 51.2 0 0 1 51.2 51.2v102.4a51.2 51.2 0 0 1-51.2 51.2H512a51.2 51.2 0 0 1-51.2-51.2V819.2A51.2 51.2 0 0 1 512 768h409.6zm-10.24 61.44H522.24v81.92h389.12v-81.92z" /><path d="M184.32 358.4v460.8a20.48 20.48 0 0 0 16.384 20.07l4.096.41H512v61.44H204.8a81.92 81.92 0 0 1-81.562-74.445l-.358-7.475V358.4h61.44z" /><path d="M471.706 532.48v61.44H153.6v-61.44z" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Typography"><path d="M64.258 77.061V946.94h895.483V77.06H64.258zm864.734 839.133H95.003V107.806h833.989v808.388zm0 0" /><path d="M189.173 344.917c16.23-56.82 21.54-67.518 92.664-67.518h29.654v269.713c0 21.174-1.12 32.383-7.49 38.809-6.496 6.552-19.86 9.648-47.655 11.037l-4.871.243v17.855h161.688v-17.864l-4.875-.234c-55.626-2.675-57.381-10.22-57.381-49.851v-269.71H395.7c44.886 0 64.463 6.08 77.435 67.177l1.091 5.12 18.934-4.455-.366-4.402-.865-10.24c-2.537-30.037-5.164-61.093-4.17-84.468l.214-5.038-17.346-1.022-1.651 2.239c-7.008 9.517-9.493 11.38-22.237 11.38H220.705c-7.277 0-12.533 0-16.153-1.36-2.463-.918-5.794-2.84-9.71-9.56l-1.483-2.543H176.5l-.177 4.944c-.96 26.818-2.524 62.17-6.148 97.819l-.576 5.644h18.51l1.065-3.715zm-20.06 430.249h689.93v28.447h-689.93v-28.447zm409.705-431.922h280.22v28.442h-280.22v-28.442zm0 122.739h280.22v28.447h-280.22v-28.447zm0 120.768h280.22v28.442h-280.22v-28.442zm0 0" /></symbol><symbol class="icon" viewBox="0 0 1024 1024" id="svg-icon-Upload"><path d="M864 554.667a32 32 0 0 1 32 32v234.666a32 32 0 0 1-27.648 31.702l-4.352.298H160a32 32 0 0 1-32-32V586.667a32 32 0 1 1 64 0V789.29l640 .042V586.667a32 32 0 0 1 32-32zM523.477 174.592l2.774 2.56 193.194 211.797a23.21 23.21 0 0 1 5.888 15.616c0 10.838-7.125 19.883-16.512 21.76l-3.626.342H576v170.666a21.333 21.333 0 0 1-21.333 21.334h-85.334A21.333 21.333 0 0 1 448 597.333V426.667H318.805a18.987 18.987 0 0 1-11.818-4.224l-2.432-2.262a23.723 23.723 0 0 1-2.56-27.733l2.56-3.499 193.194-211.797c6.998-7.68 17.835-8.533 25.728-2.56z" /></symbol>';
|
25230 | body.insertBefore(svgDom, body.firstChild);
|
25231 | };
|
25232 | if (document.readyState === "loading") {
|
25233 | document.addEventListener("DOMContentLoaded", loadSvg);
|
25234 | } else {
|
25235 | loadSvg();
|
25236 | }
|
25237 | }
|
25238 | const DesignForm = _DesignForm;
|
25239 | const GenerateForm = _GenerateForm;
|
25240 | export { DesignForm, GenerateForm };
|