zmdms-webui 0.0.76 → 0.0.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/dist/es/_virtual/Draggable.js +3 -0
  2. package/dist/es/_virtual/DraggableCore.js +3 -0
  3. package/dist/es/_virtual/Resizable.js +3 -0
  4. package/dist/es/_virtual/ResizableBox.js +3 -0
  5. package/dist/es/_virtual/_commonjsHelpers.js +29 -1
  6. package/dist/es/_virtual/cjs.js +3 -0
  7. package/dist/es/_virtual/clsx.m.js +6 -0
  8. package/dist/es/_virtual/domFns.js +3 -0
  9. package/dist/es/_virtual/getPrefix.js +3 -0
  10. package/dist/es/_virtual/index3.js +3 -0
  11. package/dist/es/_virtual/index4.js +3 -0
  12. package/dist/es/_virtual/index5.js +3 -0
  13. package/dist/es/_virtual/log.js +3 -0
  14. package/dist/es/_virtual/positionFns.js +3 -0
  15. package/dist/es/_virtual/propTypes.js +3 -0
  16. package/dist/es/_virtual/react-is.development.js +3 -0
  17. package/dist/es/_virtual/react-is.production.min.js +3 -0
  18. package/dist/es/_virtual/shims.js +3 -0
  19. package/dist/es/_virtual/utils.js +3 -0
  20. package/dist/es/button/button.js +14 -9
  21. package/dist/es/button/interface.d.ts +2 -0
  22. package/dist/es/dynamicsetting/dynamicDrawer.js +88 -5
  23. package/dist/es/dynamicsetting/dynamicSetting.js +7 -2
  24. package/dist/es/dynamicsetting/interface.d.ts +4 -0
  25. package/dist/es/dynamicsetting/moreConfig.js +36 -0
  26. package/dist/es/dynamicsetting/useDynamic.js +65 -25
  27. package/dist/es/form/form.d.ts +1 -1
  28. package/dist/es/form/form.js +18 -6
  29. package/dist/es/form/hooks.js +37 -5
  30. package/dist/es/form/interface.d.ts +7 -0
  31. package/dist/es/form/toggle.js +16 -0
  32. package/dist/es/node_modules/@ant-design/icons/es/icons/MenuOutlined.js +15 -0
  33. package/dist/es/node_modules/@ant-design/icons/es/utils.js +3 -1
  34. package/dist/es/node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.js +5 -0
  35. package/dist/es/node_modules/@ant-design/icons-svg/es/asn/PlusOutlined.js +1 -1
  36. package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js +19 -19
  37. package/dist/es/node_modules/@babel/runtime/helpers/esm/objectSpread2.js +15 -15
  38. package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.js +6 -6
  39. package/dist/es/node_modules/antd-img-crop/dist/antd-img-crop.esm.js +7 -7
  40. package/dist/es/node_modules/clsx/dist/clsx.m.js +3 -0
  41. package/dist/es/node_modules/compare-versions/lib/esm/compareVersions.js +31 -0
  42. package/dist/es/node_modules/compare-versions/lib/esm/{index.js → utils.js} +1 -28
  43. package/dist/es/node_modules/object-assign/index.js +99 -0
  44. package/dist/es/node_modules/prop-types/checkPropTypes.js +115 -0
  45. package/dist/es/node_modules/prop-types/factoryWithThrowingShims.js +74 -0
  46. package/dist/es/node_modules/prop-types/factoryWithTypeCheckers.js +625 -0
  47. package/dist/es/node_modules/prop-types/index.js +28 -0
  48. package/dist/es/node_modules/prop-types/lib/ReactPropTypesSecret.js +21 -0
  49. package/dist/es/node_modules/prop-types/lib/has.js +11 -0
  50. package/dist/es/node_modules/react-draggable/build/cjs/Draggable.js +474 -0
  51. package/dist/es/node_modules/react-draggable/build/cjs/DraggableCore.js +580 -0
  52. package/dist/es/node_modules/react-draggable/build/cjs/cjs.js +18 -0
  53. package/dist/es/node_modules/react-draggable/build/cjs/utils/domFns.js +361 -0
  54. package/dist/es/node_modules/react-draggable/build/cjs/utils/getPrefix.js +85 -0
  55. package/dist/es/node_modules/react-draggable/build/cjs/utils/log.js +10 -0
  56. package/dist/es/node_modules/react-draggable/build/cjs/utils/positionFns.js +214 -0
  57. package/dist/es/node_modules/react-draggable/build/cjs/utils/shims.js +64 -0
  58. package/dist/es/node_modules/react-easy-crop/index.module.js +51 -18
  59. package/dist/es/node_modules/react-is/cjs/react-is.development.js +190 -0
  60. package/dist/es/node_modules/react-is/cjs/react-is.production.min.js +26 -0
  61. package/dist/es/node_modules/react-is/index.js +19 -0
  62. package/dist/es/node_modules/react-resizable/build/Resizable.js +262 -0
  63. package/dist/es/node_modules/react-resizable/build/ResizableBox.js +117 -0
  64. package/dist/es/node_modules/react-resizable/build/propTypes.js +120 -0
  65. package/dist/es/node_modules/react-resizable/build/utils.js +24 -0
  66. package/dist/es/node_modules/react-resizable/index.js +14 -0
  67. package/dist/es/node_modules/virtuallist-antd/dist/index.es.js +942 -0
  68. package/dist/es/table/components/EnhanceBodyRow.js +24 -0
  69. package/dist/es/table/components/EnhanceHeaderCell.js +41 -0
  70. package/dist/es/table/components/TitleOperation.js +1 -1
  71. package/dist/es/table/components/useDragRef.js +10 -11
  72. package/dist/es/table/interface.d.ts +14 -0
  73. package/dist/es/table/table.js +72 -25
  74. package/dist/es/table/useColumns.js +144 -66
  75. package/dist/es/table/useDynamicListByColumns.js +63 -20
  76. package/dist/es/table/utils.js +59 -21
  77. package/dist/index.dark.css +1 -1
  78. package/dist/index.default.css +1 -1
  79. package/package.json +5 -4
  80. package/dist/es/table/components/EnhanceRow.js +0 -21
  81. /package/dist/es/table/components/{EnhanceCell.js → EnhanceBodyCell.js} +0 -0
@@ -0,0 +1,64 @@
1
+ import { __exports as shims } from '../../../../../_virtual/shims.js';
2
+
3
+ Object.defineProperty(shims, "__esModule", {
4
+ value: true
5
+ });
6
+ shims.dontSetMe = dontSetMe;
7
+ shims.findInArray = findInArray;
8
+ shims.int = int;
9
+ shims.isFunction = isFunction;
10
+ shims.isNum = isNum;
11
+
12
+ // @credits https://gist.github.com/rogozhnikoff/a43cfed27c41e4e68cdc
13
+ function findInArray(array
14
+ /*: Array<any> | TouchList*/
15
+ , callback
16
+ /*: Function*/
17
+ )
18
+ /*: any*/
19
+ {
20
+ for (var i = 0, length = array.length; i < length; i++) {
21
+ if (callback.apply(callback, [array[i], i, array])) return array[i];
22
+ }
23
+ }
24
+
25
+ function isFunction(func
26
+ /*: any*/
27
+ )
28
+ /*: boolean %checks*/
29
+ {
30
+ // $FlowIgnore[method-unbinding]
31
+ return typeof func === 'function' || Object.prototype.toString.call(func) === '[object Function]';
32
+ }
33
+
34
+ function isNum(num
35
+ /*: any*/
36
+ )
37
+ /*: boolean %checks*/
38
+ {
39
+ return typeof num === 'number' && !isNaN(num);
40
+ }
41
+
42
+ function int(a
43
+ /*: string*/
44
+ )
45
+ /*: number*/
46
+ {
47
+ return parseInt(a, 10);
48
+ }
49
+
50
+ function dontSetMe(props
51
+ /*: Object*/
52
+ , propName
53
+ /*: string*/
54
+ , componentName
55
+ /*: string*/
56
+ )
57
+ /*: ?Error*/
58
+ {
59
+ if (props[propName]) {
60
+ return new Error("Invalid prop ".concat(propName, " passed to ").concat(componentName, " - do not set this, set it on the child."));
61
+ }
62
+ }
63
+
64
+ export { shims as default };
@@ -212,6 +212,10 @@ var Cropper = /** @class */function (_super) {
212
212
  var _this = _super !== null && _super.apply(this, arguments) || this;
213
213
  _this.imageRef = React__default.createRef();
214
214
  _this.videoRef = React__default.createRef();
215
+ _this.containerPosition = {
216
+ x: 0,
217
+ y: 0
218
+ };
215
219
  _this.containerRef = null;
216
220
  _this.styleRef = null;
217
221
  _this.containerRect = null;
@@ -270,6 +274,7 @@ var Cropper = /** @class */function (_super) {
270
274
  _this.currentDoc.removeEventListener('touchend', _this.onDragStopped);
271
275
  _this.currentDoc.removeEventListener('gesturemove', _this.onGestureMove);
272
276
  _this.currentDoc.removeEventListener('gestureend', _this.onGestureEnd);
277
+ _this.currentDoc.removeEventListener('scroll', _this.onScroll);
273
278
  };
274
279
  _this.clearScrollEvent = function () {
275
280
  if (_this.containerRef) _this.containerRef.removeEventListener('wheel', _this.onWheel);
@@ -307,6 +312,7 @@ var Cropper = /** @class */function (_super) {
307
312
  var mediaRef = _this.imageRef.current || _this.videoRef.current;
308
313
  if (mediaRef && _this.containerRef) {
309
314
  _this.containerRect = _this.containerRef.getBoundingClientRect();
315
+ _this.saveContainerPosition();
310
316
  var containerAspect = _this.containerRect.width / _this.containerRect.height;
311
317
  var naturalWidth = ((_a = _this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = _this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
312
318
  var naturalHeight = ((_c = _this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = _this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
@@ -320,7 +326,8 @@ var Cropper = /** @class */function (_super) {
320
326
  // However, for this to work, the container should not be rotated
321
327
  var renderedMediaSize = void 0;
322
328
  if (isMediaScaledDown) {
323
- switch (_this.props.objectFit) {
329
+ var objectFit = _this.getObjectFit();
330
+ switch (objectFit) {
324
331
  default:
325
332
  case 'contain':
326
333
  renderedMediaSize = containerAspect > mediaAspect ? {
@@ -343,15 +350,6 @@ var Cropper = /** @class */function (_super) {
343
350
  height: _this.containerRect.height
344
351
  };
345
352
  break;
346
- case 'auto-cover':
347
- renderedMediaSize = naturalWidth > naturalHeight ? {
348
- width: _this.containerRect.width,
349
- height: _this.containerRect.width / mediaAspect
350
- } : {
351
- width: _this.containerRect.height * mediaAspect,
352
- height: _this.containerRect.height
353
- };
354
- break;
355
353
  }
356
354
  } else {
357
355
  renderedMediaSize = {
@@ -381,16 +379,31 @@ var Cropper = /** @class */function (_super) {
381
379
  return cropSize;
382
380
  }
383
381
  };
382
+ _this.saveContainerPosition = function () {
383
+ if (_this.containerRef) {
384
+ var bounds = _this.containerRef.getBoundingClientRect();
385
+ _this.containerPosition = {
386
+ x: bounds.left,
387
+ y: bounds.top
388
+ };
389
+ }
390
+ };
384
391
  _this.onMouseDown = function (e) {
385
392
  if (!_this.currentDoc) return;
386
393
  e.preventDefault();
387
394
  _this.currentDoc.addEventListener('mousemove', _this.onMouseMove);
388
395
  _this.currentDoc.addEventListener('mouseup', _this.onDragStopped);
396
+ _this.saveContainerPosition();
389
397
  _this.onDragStart(Cropper.getMousePoint(e));
390
398
  };
391
399
  _this.onMouseMove = function (e) {
392
400
  return _this.onDrag(Cropper.getMousePoint(e));
393
401
  };
402
+ _this.onScroll = function (e) {
403
+ if (!_this.currentDoc) return;
404
+ e.preventDefault();
405
+ _this.saveContainerPosition();
406
+ };
394
407
  _this.onTouchStart = function (e) {
395
408
  if (!_this.currentDoc) return;
396
409
  _this.isTouching = true;
@@ -401,6 +414,7 @@ var Cropper = /** @class */function (_super) {
401
414
  passive: false
402
415
  }); // iOS 11 now defaults to passive: true
403
416
  _this.currentDoc.addEventListener('touchend', _this.onDragStopped);
417
+ _this.saveContainerPosition();
404
418
  if (e.touches.length === 2) {
405
419
  _this.onPinchStart(e);
406
420
  } else if (e.touches.length === 1) {
@@ -511,15 +525,15 @@ var Cropper = /** @class */function (_super) {
511
525
  });
512
526
  }, 250);
513
527
  };
514
- _this.getPointOnContainer = function (_a) {
528
+ _this.getPointOnContainer = function (_a, containerTopLeft) {
515
529
  var x = _a.x,
516
530
  y = _a.y;
517
531
  if (!_this.containerRect) {
518
532
  throw new Error('The Cropper is not mounted');
519
533
  }
520
534
  return {
521
- x: _this.containerRect.width / 2 - (x - _this.containerRect.left),
522
- y: _this.containerRect.height / 2 - (y - _this.containerRect.top)
535
+ x: _this.containerRect.width / 2 - (x - containerTopLeft.x),
536
+ y: _this.containerRect.height / 2 - (y - containerTopLeft.y)
523
537
  };
524
538
  };
525
539
  _this.getPointOnMedia = function (_a) {
@@ -540,7 +554,7 @@ var Cropper = /** @class */function (_super) {
540
554
  if (!_this.state.cropSize || !_this.props.onZoomChange) return;
541
555
  var newZoom = clamp(zoom, _this.props.minZoom, _this.props.maxZoom);
542
556
  if (shouldUpdatePosition) {
543
- var zoomPoint = _this.getPointOnContainer(point);
557
+ var zoomPoint = _this.getPointOnContainer(point, _this.containerPosition);
544
558
  var zoomTarget = _this.getPointOnMedia(zoomPoint);
545
559
  var requestedPosition = {
546
560
  x: zoomTarget.x * newZoom - zoomPoint.x,
@@ -607,6 +621,7 @@ var Cropper = /** @class */function (_super) {
607
621
  });
608
622
  this.containerRef.addEventListener('gesturestart', this.onGestureStart);
609
623
  }
624
+ this.currentDoc.addEventListener('scroll', this.onScroll);
610
625
  if (!this.props.disableAutomaticStylesInjection) {
611
626
  this.styleRef = this.currentDoc.createElement('style');
612
627
  this.styleRef.setAttribute('type', 'text/css');
@@ -651,6 +666,8 @@ var Cropper = /** @class */function (_super) {
651
666
  this.recomputeCropPosition();
652
667
  } else if (prevProps.aspect !== this.props.aspect) {
653
668
  this.computeSizes();
669
+ } else if (prevProps.objectFit !== this.props.objectFit) {
670
+ this.computeSizes();
654
671
  } else if (prevProps.zoom !== this.props.zoom) {
655
672
  this.recomputeCropPosition();
656
673
  } else if (((_a = prevProps.cropSize) === null || _a === void 0 ? void 0 : _a.height) !== ((_b = this.props.cropSize) === null || _b === void 0 ? void 0 : _b.height) || ((_c = prevProps.cropSize) === null || _c === void 0 ? void 0 : _c.width) !== ((_d = this.props.cropSize) === null || _d === void 0 ? void 0 : _d.width)) {
@@ -676,6 +693,22 @@ var Cropper = /** @class */function (_super) {
676
693
  }
677
694
  return aspect;
678
695
  };
696
+ Cropper.prototype.getObjectFit = function () {
697
+ var _a, _b, _c, _d;
698
+ if (this.props.objectFit === 'cover') {
699
+ var mediaRef = this.imageRef.current || this.videoRef.current;
700
+ if (mediaRef && this.containerRef) {
701
+ this.containerRect = this.containerRef.getBoundingClientRect();
702
+ var containerAspect = this.containerRect.width / this.containerRect.height;
703
+ var naturalWidth = ((_a = this.imageRef.current) === null || _a === void 0 ? void 0 : _a.naturalWidth) || ((_b = this.videoRef.current) === null || _b === void 0 ? void 0 : _b.videoWidth) || 0;
704
+ var naturalHeight = ((_c = this.imageRef.current) === null || _c === void 0 ? void 0 : _c.naturalHeight) || ((_d = this.videoRef.current) === null || _d === void 0 ? void 0 : _d.videoHeight) || 0;
705
+ var mediaAspect = naturalWidth / naturalHeight;
706
+ return mediaAspect < containerAspect ? 'horizontal-cover' : 'vertical-cover';
707
+ }
708
+ return 'horizontal-cover';
709
+ }
710
+ return this.props.objectFit;
711
+ };
679
712
  Cropper.prototype.onPinchStart = function (e) {
680
713
  var pointA = Cropper.getTouchPoint(e.touches[0]);
681
714
  var pointB = Cropper.getTouchPoint(e.touches[1]);
@@ -725,8 +758,8 @@ var Cropper = /** @class */function (_super) {
725
758
  _d = _a.classes,
726
759
  containerClassName = _d.containerClassName,
727
760
  cropAreaClassName = _d.cropAreaClassName,
728
- mediaClassName = _d.mediaClassName,
729
- objectFit = _a.objectFit;
761
+ mediaClassName = _d.mediaClassName;
762
+ var objectFit = this.getObjectFit();
730
763
  return React__default.createElement("div", {
731
764
  onMouseDown: this.onMouseDown,
732
765
  onTouchStart: this.onTouchStart,
@@ -738,7 +771,7 @@ var Cropper = /** @class */function (_super) {
738
771
  className: classNames('reactEasyCrop_Container', containerClassName)
739
772
  }, image ? React__default.createElement("img", __assign({
740
773
  alt: "",
741
- className: classNames('reactEasyCrop_Image', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', objectFit === 'auto-cover' && (this.mediaSize.naturalWidth > this.mediaSize.naturalHeight ? 'reactEasyCrop_Cover_Horizontal' : 'reactEasyCrop_Cover_Vertical'), mediaClassName)
774
+ className: classNames('reactEasyCrop_Image', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', mediaClassName)
742
775
  }, mediaProps, {
743
776
  src: image,
744
777
  ref: this.imageRef,
@@ -750,7 +783,7 @@ var Cropper = /** @class */function (_super) {
750
783
  autoPlay: true,
751
784
  loop: true,
752
785
  muted: true,
753
- className: classNames('reactEasyCrop_Video', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', objectFit === 'auto-cover' && (this.mediaSize.naturalWidth > this.mediaSize.naturalHeight ? 'reactEasyCrop_Cover_Horizontal' : 'reactEasyCrop_Cover_Vertical'), mediaClassName)
786
+ className: classNames('reactEasyCrop_Video', objectFit === 'contain' && 'reactEasyCrop_Contain', objectFit === 'horizontal-cover' && 'reactEasyCrop_Cover_Horizontal', objectFit === 'vertical-cover' && 'reactEasyCrop_Cover_Vertical', mediaClassName)
754
787
  }, mediaProps, {
755
788
  ref: this.videoRef,
756
789
  onLoadedMetadata: this.onMediaLoad,
@@ -0,0 +1,190 @@
1
+ import { __exports as reactIs_development } from '../../../_virtual/react-is.development.js';
2
+
3
+ /** @license React v16.13.1
4
+ * react-is.development.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+
12
+ var hasRequiredReactIs_development;
13
+
14
+ function requireReactIs_development () {
15
+ if (hasRequiredReactIs_development) return reactIs_development;
16
+ hasRequiredReactIs_development = 1;
17
+
18
+
19
+
20
+ if (process.env.NODE_ENV !== "production") {
21
+ (function() {
22
+
23
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
24
+ // nor polyfill, then a plain number is used for performance.
25
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
26
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
27
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
28
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
29
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
30
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
31
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
32
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
33
+ // (unstable) APIs that have been removed. Can we remove the symbols?
34
+
35
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
36
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
37
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
38
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
39
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
40
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
41
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
42
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
43
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
44
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
45
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
46
+
47
+ function isValidElementType(type) {
48
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
49
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
50
+ }
51
+
52
+ function typeOf(object) {
53
+ if (typeof object === 'object' && object !== null) {
54
+ var $$typeof = object.$$typeof;
55
+
56
+ switch ($$typeof) {
57
+ case REACT_ELEMENT_TYPE:
58
+ var type = object.type;
59
+
60
+ switch (type) {
61
+ case REACT_ASYNC_MODE_TYPE:
62
+ case REACT_CONCURRENT_MODE_TYPE:
63
+ case REACT_FRAGMENT_TYPE:
64
+ case REACT_PROFILER_TYPE:
65
+ case REACT_STRICT_MODE_TYPE:
66
+ case REACT_SUSPENSE_TYPE:
67
+ return type;
68
+
69
+ default:
70
+ var $$typeofType = type && type.$$typeof;
71
+
72
+ switch ($$typeofType) {
73
+ case REACT_CONTEXT_TYPE:
74
+ case REACT_FORWARD_REF_TYPE:
75
+ case REACT_LAZY_TYPE:
76
+ case REACT_MEMO_TYPE:
77
+ case REACT_PROVIDER_TYPE:
78
+ return $$typeofType;
79
+
80
+ default:
81
+ return $$typeof;
82
+ }
83
+
84
+ }
85
+
86
+ case REACT_PORTAL_TYPE:
87
+ return $$typeof;
88
+ }
89
+ }
90
+
91
+ return undefined;
92
+ } // AsyncMode is deprecated along with isAsyncMode
93
+
94
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
95
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
96
+ var ContextConsumer = REACT_CONTEXT_TYPE;
97
+ var ContextProvider = REACT_PROVIDER_TYPE;
98
+ var Element = REACT_ELEMENT_TYPE;
99
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
100
+ var Fragment = REACT_FRAGMENT_TYPE;
101
+ var Lazy = REACT_LAZY_TYPE;
102
+ var Memo = REACT_MEMO_TYPE;
103
+ var Portal = REACT_PORTAL_TYPE;
104
+ var Profiler = REACT_PROFILER_TYPE;
105
+ var StrictMode = REACT_STRICT_MODE_TYPE;
106
+ var Suspense = REACT_SUSPENSE_TYPE;
107
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
108
+
109
+ function isAsyncMode(object) {
110
+ {
111
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
112
+ hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
113
+
114
+ console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
115
+ }
116
+ }
117
+
118
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
119
+ }
120
+ function isConcurrentMode(object) {
121
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
122
+ }
123
+ function isContextConsumer(object) {
124
+ return typeOf(object) === REACT_CONTEXT_TYPE;
125
+ }
126
+ function isContextProvider(object) {
127
+ return typeOf(object) === REACT_PROVIDER_TYPE;
128
+ }
129
+ function isElement(object) {
130
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
131
+ }
132
+ function isForwardRef(object) {
133
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
134
+ }
135
+ function isFragment(object) {
136
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
137
+ }
138
+ function isLazy(object) {
139
+ return typeOf(object) === REACT_LAZY_TYPE;
140
+ }
141
+ function isMemo(object) {
142
+ return typeOf(object) === REACT_MEMO_TYPE;
143
+ }
144
+ function isPortal(object) {
145
+ return typeOf(object) === REACT_PORTAL_TYPE;
146
+ }
147
+ function isProfiler(object) {
148
+ return typeOf(object) === REACT_PROFILER_TYPE;
149
+ }
150
+ function isStrictMode(object) {
151
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
152
+ }
153
+ function isSuspense(object) {
154
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
155
+ }
156
+
157
+ reactIs_development.AsyncMode = AsyncMode;
158
+ reactIs_development.ConcurrentMode = ConcurrentMode;
159
+ reactIs_development.ContextConsumer = ContextConsumer;
160
+ reactIs_development.ContextProvider = ContextProvider;
161
+ reactIs_development.Element = Element;
162
+ reactIs_development.ForwardRef = ForwardRef;
163
+ reactIs_development.Fragment = Fragment;
164
+ reactIs_development.Lazy = Lazy;
165
+ reactIs_development.Memo = Memo;
166
+ reactIs_development.Portal = Portal;
167
+ reactIs_development.Profiler = Profiler;
168
+ reactIs_development.StrictMode = StrictMode;
169
+ reactIs_development.Suspense = Suspense;
170
+ reactIs_development.isAsyncMode = isAsyncMode;
171
+ reactIs_development.isConcurrentMode = isConcurrentMode;
172
+ reactIs_development.isContextConsumer = isContextConsumer;
173
+ reactIs_development.isContextProvider = isContextProvider;
174
+ reactIs_development.isElement = isElement;
175
+ reactIs_development.isForwardRef = isForwardRef;
176
+ reactIs_development.isFragment = isFragment;
177
+ reactIs_development.isLazy = isLazy;
178
+ reactIs_development.isMemo = isMemo;
179
+ reactIs_development.isPortal = isPortal;
180
+ reactIs_development.isProfiler = isProfiler;
181
+ reactIs_development.isStrictMode = isStrictMode;
182
+ reactIs_development.isSuspense = isSuspense;
183
+ reactIs_development.isValidElementType = isValidElementType;
184
+ reactIs_development.typeOf = typeOf;
185
+ })();
186
+ }
187
+ return reactIs_development;
188
+ }
189
+
190
+ export { requireReactIs_development as __require };
@@ -0,0 +1,26 @@
1
+ import { __exports as reactIs_production_min } from '../../../_virtual/react-is.production.min.js';
2
+
3
+ /** @license React v16.13.1
4
+ * react-is.production.min.js
5
+ *
6
+ * Copyright (c) Facebook, Inc. and its affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */
11
+
12
+ var hasRequiredReactIs_production_min;
13
+
14
+ function requireReactIs_production_min () {
15
+ if (hasRequiredReactIs_production_min) return reactIs_production_min;
16
+ hasRequiredReactIs_production_min = 1;
17
+ var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
18
+ Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
19
+ function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}reactIs_production_min.AsyncMode=l;reactIs_production_min.ConcurrentMode=m;reactIs_production_min.ContextConsumer=k;reactIs_production_min.ContextProvider=h;reactIs_production_min.Element=c;reactIs_production_min.ForwardRef=n;reactIs_production_min.Fragment=e;reactIs_production_min.Lazy=t;reactIs_production_min.Memo=r;reactIs_production_min.Portal=d;
20
+ reactIs_production_min.Profiler=g;reactIs_production_min.StrictMode=f;reactIs_production_min.Suspense=p;reactIs_production_min.isAsyncMode=function(a){return A(a)||z(a)===l};reactIs_production_min.isConcurrentMode=A;reactIs_production_min.isContextConsumer=function(a){return z(a)===k};reactIs_production_min.isContextProvider=function(a){return z(a)===h};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};reactIs_production_min.isForwardRef=function(a){return z(a)===n};reactIs_production_min.isFragment=function(a){return z(a)===e};reactIs_production_min.isLazy=function(a){return z(a)===t};
21
+ reactIs_production_min.isMemo=function(a){return z(a)===r};reactIs_production_min.isPortal=function(a){return z(a)===d};reactIs_production_min.isProfiler=function(a){return z(a)===g};reactIs_production_min.isStrictMode=function(a){return z(a)===f};reactIs_production_min.isSuspense=function(a){return z(a)===p};
22
+ reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};reactIs_production_min.typeOf=z;
23
+ return reactIs_production_min;
24
+ }
25
+
26
+ export { requireReactIs_production_min as __require };
@@ -0,0 +1,19 @@
1
+ import { __module as reactIs } from '../../_virtual/index5.js';
2
+ import { __require as requireReactIs_production_min } from './cjs/react-is.production.min.js';
3
+ import { __require as requireReactIs_development } from './cjs/react-is.development.js';
4
+
5
+ var hasRequiredReactIs;
6
+
7
+ function requireReactIs () {
8
+ if (hasRequiredReactIs) return reactIs.exports;
9
+ hasRequiredReactIs = 1;
10
+
11
+ if (process.env.NODE_ENV === 'production') {
12
+ reactIs.exports = requireReactIs_production_min();
13
+ } else {
14
+ reactIs.exports = requireReactIs_development();
15
+ }
16
+ return reactIs.exports;
17
+ }
18
+
19
+ export { requireReactIs as __require };