@cloud-app-dev/vidc 3.2.37 → 3.2.39

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 (127) hide show
  1. package/.dumirc.ts +7 -11
  2. package/.fatherrc.ts +0 -1
  3. package/es/CheckGroupFixed/demo.js +2 -3
  4. package/es/CheckGroupFixed/index.js +4 -7
  5. package/es/Config/index.js +10 -9
  6. package/es/Config/interface.d.ts +2 -3
  7. package/es/CustomRenderSelect/index.js +2 -3
  8. package/es/DynamicList/demo.js +3 -4
  9. package/es/DynamicList/index.js +2 -3
  10. package/es/ErrorFallback/index.js +3 -6
  11. package/es/FrontendPlayer/index.d.ts +4 -2
  12. package/es/List/index.d.ts +0 -13
  13. package/es/List/index.js +1 -19
  14. package/es/LoaderScript/utils.d.ts +0 -1
  15. package/es/LoaderScript/utils.js +1 -36
  16. package/es/Map/FindPio/index.js +2 -3
  17. package/es/Map/LevelCenter/demo.js +2 -4
  18. package/es/Map/ResetTools/index.js +4 -5
  19. package/es/Picture/component/Tools/index.d.ts +1 -2
  20. package/es/Picture/component/Tools/index.js +7 -14
  21. package/es/Picture/demo.js +14 -28
  22. package/es/Picture/index.d.ts +1 -1
  23. package/es/Picture/index.js +91 -141
  24. package/es/Picture/index.less +7 -2
  25. package/es/Picture/utils.d.ts +6 -0
  26. package/es/Picture/utils.js +57 -2
  27. package/es/Player/api/index.js +2 -1
  28. package/es/Player/contraller_bar/volume.js +3 -6
  29. package/es/Player/demo.js +28 -58
  30. package/es/Player/frontend_timeline.js +1 -1
  31. package/es/Player/segment_timeline.js +3 -5
  32. package/es/Player/single_player.js +1 -1
  33. package/es/Player/util.d.ts +0 -1
  34. package/es/Player/util.js +2 -40
  35. package/es/PlayerExt/demo.js +12 -20
  36. package/es/Progress/index.js +4 -6
  37. package/es/RefDrawer/Footer.d.ts +9 -0
  38. package/es/{Drawer → RefDrawer}/Footer.js +3 -5
  39. package/es/{Drawer/Demo.d.ts → RefDrawer/demo.d.ts} +0 -0
  40. package/es/RefDrawer/demo.js +35 -0
  41. package/es/RefDrawer/index.d.ts +26 -0
  42. package/es/{Input → RefDrawer}/index.js +54 -58
  43. package/es/{Input → RefModal}/demo.d.ts +0 -0
  44. package/es/RefModal/demo.js +35 -0
  45. package/es/RefModal/index.d.ts +17 -0
  46. package/es/RefModal/index.js +71 -0
  47. package/es/ScreenPlayer/PlayerWithExt.js +1 -1
  48. package/es/ScreenPlayer/RatePick.js +8 -9
  49. package/es/ScreenPlayer/ScreenSelect.js +2 -3
  50. package/es/ScreenPlayer/SegmentTimeLine.js +3 -11
  51. package/es/ScreenPlayer/TimeMode.js +3 -4
  52. package/es/ScreenPlayer/TimeSelect.js +14 -39
  53. package/es/ScreenPlayer/demo.js +2 -3
  54. package/es/ScreenPlayer/demo2.js +8 -28
  55. package/es/ScreenPlayer/useTimeSlider.js +1 -1
  56. package/es/Service/http.js +6 -8
  57. package/es/TableLayout/index.d.ts +0 -3
  58. package/es/TableLayout/index.js +8 -10
  59. package/es/ThemeAntd/demo.js +21 -40
  60. package/es/ThemeAntd/index.js +16 -2
  61. package/es/ThemeAntd/index.less +0 -12
  62. package/es/Timeout/index.js +2 -2
  63. package/es/core.d.ts +0 -149
  64. package/es/index.d.ts +2 -6
  65. package/es/index.js +2 -6
  66. package/es/useDrawROI/index.js +4 -4
  67. package/es/utils.d.ts +1 -12
  68. package/es/utils.js +0 -56
  69. package/package.json +24 -24
  70. package/theme-config.ts +3 -1
  71. package/typings/global.d.ts +4 -4
  72. package/es/Api/index.d.ts +0 -12
  73. package/es/Api/index.js +0 -267
  74. package/es/Box/BetweenBox/index.d.ts +0 -12
  75. package/es/Box/BetweenBox/index.js +0 -31
  76. package/es/Box/BetweenBox/index.less +0 -5
  77. package/es/Box/InfoBox/index.d.ts +0 -12
  78. package/es/Box/InfoBox/index.js +0 -30
  79. package/es/Box/InfoBox/index.less +0 -24
  80. package/es/Box/TwoColumnBox/index.d.ts +0 -10
  81. package/es/Box/TwoColumnBox/index.js +0 -54
  82. package/es/Box/TwoColumnBox/index.less +0 -80
  83. package/es/Box/deps/content-grid.d.ts +0 -9
  84. package/es/Box/deps/content-grid.js +0 -9
  85. package/es/Box/deps/grid-factory.d.ts +0 -10
  86. package/es/Box/deps/grid-factory.js +0 -72
  87. package/es/Box/deps/simple-grid.d.ts +0 -9
  88. package/es/Box/deps/simple-grid.js +0 -8
  89. package/es/Box/index.d.ts +0 -14
  90. package/es/Box/index.js +0 -39
  91. package/es/Box/index.less +0 -10
  92. package/es/Drawer/Demo.js +0 -109
  93. package/es/Drawer/Footer.d.ts +0 -5
  94. package/es/Drawer/index.d.ts +0 -38
  95. package/es/Drawer/index.js +0 -207
  96. package/es/Drawer/index.less +0 -42
  97. package/es/Drawer/interface.d.ts +0 -22
  98. package/es/Input/demo.js +0 -16
  99. package/es/Input/index.d.ts +0 -19
  100. package/es/Input/index.less +0 -12
  101. package/es/Modal/demo.d.ts +0 -3
  102. package/es/Modal/demo.js +0 -106
  103. package/es/Modal/index.d.ts +0 -44
  104. package/es/Modal/index.js +0 -197
  105. package/es/Modal/index.less +0 -44
  106. package/es/Modal/interface.d.ts +0 -23
  107. package/es/Picture/dragBound.d.ts +0 -5
  108. package/es/Picture/dragBound.js +0 -77
  109. package/es/Service/fetch-adapter.d.ts +0 -12
  110. package/es/Service/fetch-adapter.js +0 -203
  111. package/es/ThemeAntd/style/button.less +0 -67
  112. package/es/ThemeAntd/style/checkbox.less +0 -72
  113. package/es/ThemeAntd/style/form.less +0 -12
  114. package/es/ThemeAntd/style/input.less +0 -83
  115. package/es/ThemeAntd/style/pagination.less +0 -96
  116. package/es/ThemeAntd/style/picker.less +0 -106
  117. package/es/ThemeAntd/style/popover.less +0 -5
  118. package/es/ThemeAntd/style/radio.less +0 -87
  119. package/es/ThemeAntd/style/scrollbar.less +0 -23
  120. package/es/ThemeAntd/style/select.less +0 -81
  121. package/es/ThemeAntd/style/table.less +0 -57
  122. package/es/ThemeAntd/style/tree.less +0 -18
  123. package/es/Tree/demo.d.ts +0 -3
  124. package/es/Tree/demo.js +0 -32
  125. package/es/Tree/index.d.ts +0 -24
  126. package/es/Tree/index.js +0 -100
  127. package/es/Tree/index.less +0 -60
@@ -1,9 +1,3 @@
1
- import "antd/lib/input/style";
2
- import _Input from "antd/lib/input";
3
- import _useUpdateEffect from "ahooks/es/useUpdateEffect";
4
- import _useDebounce from "ahooks/es/useDebounce";
5
- var _excluded = ["prefix", "className", "suffix", "allowClear", "defaultValue", "value", "onChange", "onEnter"];
6
-
7
1
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
2
 
9
3
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -22,66 +16,68 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
22
16
 
23
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
24
18
 
25
- function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
26
-
27
- function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
28
-
29
- import React, { useState } from 'react';
30
- import IconFont from "../IconFont";
31
- import "./index.less";
19
+ import { Drawer } from 'antd';
20
+ import React, { useContext, useImperativeHandle, useMemo, useState } from 'react';
21
+ import ConfigContext from "../ConfigContext";
22
+ import Footer from "./Footer";
32
23
  import { jsx as _jsx } from "react/jsx-runtime";
33
-
34
- function Input(_ref) {
35
- var prefix = _ref.prefix,
36
- className = _ref.className,
37
- suffix = _ref.suffix,
38
- allowClear = _ref.allowClear,
39
- defaultValue = _ref.defaultValue,
40
- value = _ref.value,
41
- onChange = _ref.onChange,
42
- onEnter = _ref.onEnter,
43
- props = _objectWithoutProperties(_ref, _excluded);
24
+ var RefDrawer = /*#__PURE__*/React.forwardRef(function RefDrawer(_, ref) {
25
+ var context = useContext(ConfigContext.Context);
26
+ var root = useMemo(function () {
27
+ return (context === null || context === void 0 ? void 0 : context.root) || document.body;
28
+ }, [context === null || context === void 0 ? void 0 : context.root]);
44
29
 
45
30
  var _useState = useState({
46
- value: defaultValue || value,
47
- focus: false
31
+ content: null,
32
+ visible: false,
33
+ title: '',
34
+ onOk: undefined,
35
+ width: undefined,
36
+ className: undefined
48
37
  }),
49
38
  _useState2 = _slicedToArray(_useState, 2),
50
39
  state = _useState2[0],
51
40
  setState = _useState2[1];
52
41
 
53
- var debouncedValue = _useDebounce(state.value, {
54
- wait: 500
55
- });
56
-
57
- _useUpdateEffect(function () {
58
- return onChange === null || onChange === void 0 ? void 0 : onChange(debouncedValue);
59
- }, [debouncedValue]);
42
+ var open = function open(options) {
43
+ setState(function (old) {
44
+ return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
45
+ visible: true
46
+ });
47
+ });
48
+ };
60
49
 
61
- return /*#__PURE__*/_jsx(_Input, _objectSpread(_objectSpread({}, props), {}, {
62
- className: "bc-search-input ".concat(className),
63
- onChange: function onChange(e) {
64
- return setState(function (old) {
65
- return _objectSpread(_objectSpread({}, old), {}, {
66
- value: e.target.value
67
- });
50
+ var close = function close() {
51
+ setState(function (old) {
52
+ return _objectSpread(_objectSpread({}, old), {}, {
53
+ visible: false
68
54
  });
55
+ });
56
+ };
57
+
58
+ useImperativeHandle(ref, function () {
59
+ return {
60
+ open: open,
61
+ close: close
62
+ };
63
+ }, [state]);
64
+ return /*#__PURE__*/_jsx(Drawer, {
65
+ footer: /*#__PURE__*/_jsx(Footer, {
66
+ onClose: close,
67
+ onOk: state.onOk,
68
+ okText: "\u786E\u5B9A",
69
+ cancelText: "\u53D6\u6D88"
70
+ }),
71
+ visible: state.visible,
72
+ onClose: close,
73
+ destroyOnClose: true,
74
+ title: state.title,
75
+ width: state.width,
76
+ className: state.className,
77
+ getContainer: function getContainer() {
78
+ return root;
69
79
  },
70
- allowClear: allowClear,
71
- prefix: prefix,
72
- suffix: suffix,
73
- value: state.value,
74
- onPressEnter: function onPressEnter() {
75
- return onEnter === null || onEnter === void 0 ? void 0 : onEnter(state.value);
76
- }
77
- }));
78
- }
79
-
80
- Input.defaultProps = {
81
- className: '',
82
- prefix: /*#__PURE__*/_jsx(IconFont, {
83
- type: "lm-player_Edit_Search"
84
- }),
85
- allowClear: true
86
- };
87
- export default Input;
80
+ children: state.content
81
+ });
82
+ });
83
+ export default RefDrawer;
File without changes
@@ -0,0 +1,35 @@
1
+ import { Button } from 'antd';
2
+ import React, { useRef } from 'react';
3
+ import RefModal from "./index";
4
+ import { jsx as _jsx } from "react/jsx-runtime";
5
+ import { Fragment as _Fragment } from "react/jsx-runtime";
6
+ import { jsxs as _jsxs } from "react/jsx-runtime";
7
+
8
+ var App = function App() {
9
+ var ref = useRef(null);
10
+ return /*#__PURE__*/_jsxs("div", {
11
+ children: [/*#__PURE__*/_jsx(Button, {
12
+ type: "primary",
13
+ onClick: function onClick() {
14
+ var _ref$current;
15
+
16
+ return (_ref$current = ref.current) === null || _ref$current === void 0 ? void 0 : _ref$current.open({
17
+ content: /*#__PURE__*/_jsxs(_Fragment, {
18
+ children: [/*#__PURE__*/_jsx("p", {
19
+ children: "some contents..."
20
+ }), /*#__PURE__*/_jsx("p", {
21
+ children: "some contents..."
22
+ }), /*#__PURE__*/_jsx("p", {
23
+ children: "some contents..."
24
+ })]
25
+ })
26
+ });
27
+ },
28
+ children: "RefModal"
29
+ }), /*#__PURE__*/_jsx(RefModal, {
30
+ ref: ref
31
+ })]
32
+ });
33
+ };
34
+
35
+ export default App;
@@ -0,0 +1,17 @@
1
+ import { ModalProps } from 'antd';
2
+ import React from 'react';
3
+ export interface IUseModalHookState {
4
+ content?: React.ReactNode;
5
+ visible?: boolean;
6
+ title?: React.ReactNode;
7
+ onOk?: () => void;
8
+ width?: number | string;
9
+ className?: string;
10
+ }
11
+ export interface IRefModalMethodsProps {
12
+ open: (options: IUseModalHookState) => void;
13
+ close: () => void;
14
+ }
15
+ export declare type IModalProps = ModalProps;
16
+ declare const RefModal: React.ForwardRefExoticComponent<ModalProps & React.RefAttributes<IRefModalMethodsProps>>;
17
+ export default RefModal;
@@ -0,0 +1,71 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
+
3
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
+
5
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+
7
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
8
+
9
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
10
+
11
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
12
+
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
14
+
15
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
16
+
17
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
+
19
+ import { Modal } from 'antd';
20
+ import React, { useImperativeHandle, useState } from 'react';
21
+ import { jsx as _jsx } from "react/jsx-runtime";
22
+ var RefModal = /*#__PURE__*/React.forwardRef(function RefModal(props, ref) {
23
+ var _useState = useState({
24
+ content: null,
25
+ visible: false,
26
+ title: '',
27
+ onOk: undefined,
28
+ width: undefined,
29
+ className: undefined
30
+ }),
31
+ _useState2 = _slicedToArray(_useState, 2),
32
+ state = _useState2[0],
33
+ setState = _useState2[1];
34
+
35
+ var open = function open(options) {
36
+ setState(function (old) {
37
+ return _objectSpread(_objectSpread(_objectSpread({}, old), options), {}, {
38
+ visible: true
39
+ });
40
+ });
41
+ };
42
+
43
+ var close = function close() {
44
+ setState(function (old) {
45
+ return _objectSpread(_objectSpread({}, old), {}, {
46
+ visible: false
47
+ });
48
+ });
49
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
50
+
51
+
52
+ useImperativeHandle(ref, function () {
53
+ return {
54
+ open: open,
55
+ close: close
56
+ };
57
+ }, [state]);
58
+ return /*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread({}, props), {}, {
59
+ okText: "\u786E\u5B9A",
60
+ cancelText: "\u53D6\u6D88",
61
+ open: state.visible,
62
+ onOk: state.onOk,
63
+ onCancel: close,
64
+ destroyOnClose: true,
65
+ title: state.title,
66
+ width: state.width,
67
+ className: state.className,
68
+ children: state.content
69
+ }));
70
+ });
71
+ export default RefModal;
@@ -27,7 +27,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
27
27
 
28
28
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
29
29
 
30
- import moment from 'moment';
30
+ import moment from 'dayjs';
31
31
  import React, { useEffect, useRef, useState } from 'react';
32
32
  import FrontendPlayer from "../Player/frontend_player";
33
33
  import SegmentPlayer from "../Player/segment_player";
@@ -1,5 +1,4 @@
1
- import "antd/lib/select/style";
2
- import _Select from "antd/lib/select";
1
+ import { Select } from 'antd';
3
2
  import React from 'react';
4
3
  import CustomRenderSelect from "../CustomRenderSelect";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -19,25 +18,25 @@ function RatePick(_ref) {
19
18
  },
20
19
  onChange: onChange,
21
20
  placement: "topLeft",
22
- children: [/*#__PURE__*/_jsx(_Select.Option, {
21
+ children: [/*#__PURE__*/_jsx(Select.Option, {
23
22
  value: 8,
24
23
  children: "x8"
25
- }), /*#__PURE__*/_jsx(_Select.Option, {
24
+ }), /*#__PURE__*/_jsx(Select.Option, {
26
25
  value: 6,
27
26
  children: "x6"
28
- }), /*#__PURE__*/_jsx(_Select.Option, {
27
+ }), /*#__PURE__*/_jsx(Select.Option, {
29
28
  value: 4,
30
29
  children: "x4"
31
- }), /*#__PURE__*/_jsx(_Select.Option, {
30
+ }), /*#__PURE__*/_jsx(Select.Option, {
32
31
  value: 2,
33
32
  children: "x2"
34
- }), /*#__PURE__*/_jsx(_Select.Option, {
33
+ }), /*#__PURE__*/_jsx(Select.Option, {
35
34
  value: 1.5,
36
35
  children: "x1.5"
37
- }), /*#__PURE__*/_jsx(_Select.Option, {
36
+ }), /*#__PURE__*/_jsx(Select.Option, {
38
37
  value: 1,
39
38
  children: "x1"
40
- }), /*#__PURE__*/_jsx(_Select.Option, {
39
+ }), /*#__PURE__*/_jsx(Select.Option, {
41
40
  value: 0.5,
42
41
  children: "x0.5"
43
42
  })]
@@ -1,5 +1,4 @@
1
- import "antd/lib/select/style";
2
- import _Select from "antd/lib/select";
1
+ import { Select } from 'antd';
3
2
  import React, { useMemo } from 'react';
4
3
  import CustomRenderSelect from "../CustomRenderSelect";
5
4
  import IconFont from "../Player/iconfont";
@@ -35,7 +34,7 @@ function ScreenSelect(_ref) {
35
34
  },
36
35
  placement: "topLeft",
37
36
  children: ScreenType.map(function (item) {
38
- return /*#__PURE__*/_jsxs(_Select.Option, {
37
+ return /*#__PURE__*/_jsxs(Select.Option, {
39
38
  value: item.name,
40
39
  children: [/*#__PURE__*/_jsx("span", {
41
40
  style: {
@@ -1,5 +1,5 @@
1
1
  import _useThrottleFn2 from "ahooks/es/useThrottleFn";
2
- import moment from 'moment';
2
+ import moment from 'dayjs';
3
3
  import React, { useRef } from 'react';
4
4
  import useTimeSlider from "./useTimeSlider";
5
5
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -21,16 +21,8 @@ function SegmentTimeLine(_ref) {
21
21
  run = _useThrottleFn.run;
22
22
 
23
23
  useTimeSlider(ref, {
24
- begin: begin !== null && begin !== void 0 ? begin : moment().set({
25
- hours: 0,
26
- minutes: 0,
27
- seconds: 0
28
- }).valueOf() - timeMode / 2 * 3600 * 1000,
29
- currentTime: (_ref2 = currentTime !== null && currentTime !== void 0 ? currentTime : begin) !== null && _ref2 !== void 0 ? _ref2 : moment().set({
30
- hours: 0,
31
- minutes: 0,
32
- seconds: 0
33
- }).valueOf(),
24
+ begin: begin !== null && begin !== void 0 ? begin : moment().set('hours', 0).set('minutes', 0).set('seconds', 0).valueOf() - timeMode / 2 * 3600 * 1000,
25
+ currentTime: (_ref2 = currentTime !== null && currentTime !== void 0 ? currentTime : begin) !== null && _ref2 !== void 0 ? _ref2 : moment().set('hours', 0).set('minutes', 0).set('seconds', 0).valueOf(),
34
26
  onTimeChange: run,
35
27
  segments: segments,
36
28
  hoursPer: timeMode,
@@ -1,5 +1,4 @@
1
- import "antd/lib/select/style";
2
- import _Select from "antd/lib/select";
1
+ import { Select } from 'antd';
3
2
  import React from 'react';
4
3
  import { TimeModeLibs } from "./utils";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -8,14 +7,14 @@ import { jsxs as _jsxs } from "react/jsx-runtime";
8
7
  function TimeMode(_ref) {
9
8
  var timeMode = _ref.timeMode,
10
9
  onChange = _ref.onChange;
11
- return /*#__PURE__*/_jsx(_Select, {
10
+ return /*#__PURE__*/_jsx(Select, {
12
11
  value: timeMode,
13
12
  onChange: onChange,
14
13
  className: "time-mode-select",
15
14
  popupClassName: "custom-select-dropdown",
16
15
  placement: "topLeft",
17
16
  children: TimeModeLibs.map(function (item) {
18
- return /*#__PURE__*/_jsxs(_Select.Option, {
17
+ return /*#__PURE__*/_jsxs(Select.Option, {
19
18
  value: item.name,
20
19
  children: [/*#__PURE__*/_jsx("span", {
21
20
  style: {
@@ -1,9 +1,3 @@
1
- import "antd/lib/popover/style";
2
- import _Popover from "antd/lib/popover";
3
- import "antd/lib/button/style";
4
- import _Button from "antd/lib/button";
5
- import "antd/lib/input-number/style";
6
- import _InputNumber from "antd/lib/input-number";
7
1
  import _useUpdateEffect from "ahooks/es/useUpdateEffect";
8
2
 
9
3
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
@@ -18,7 +12,8 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
18
12
 
19
13
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
20
14
 
21
- import moment from 'moment';
15
+ import { Button, InputNumber, Popover } from 'antd';
16
+ import moment from 'dayjs';
22
17
  import React, { useMemo, useState } from 'react';
23
18
  import { jsx as _jsx } from "react/jsx-runtime";
24
19
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -28,57 +23,37 @@ function TimeSelect(_ref) {
28
23
  onChange = _ref.onChange;
29
24
 
30
25
  var _useState = useState(function () {
31
- var m = time ? moment(time) : moment().set({
32
- hours: 0,
33
- minutes: 0,
34
- seconds: 0
35
- });
36
- return [m.hours(), m.minutes(), m.seconds()];
26
+ var m = time ? moment(time) : moment().set('hours', 0).set('minutes', 0).set('seconds', 0);
27
+ return [m.hour(), m.minute(), m.second()];
37
28
  }),
38
29
  _useState2 = _slicedToArray(_useState, 2),
39
30
  values = _useState2[0],
40
31
  setValues = _useState2[1];
41
32
 
42
33
  var timeStr = useMemo(function () {
43
- var m = time ? moment(time) : moment().set({
44
- hours: 0,
45
- minutes: 0,
46
- seconds: 0
47
- });
34
+ var m = time ? moment(time) : moment().set('hours', 0).set('minutes', 0).set('seconds', 0);
48
35
  return m.format('HH:mm:ss');
49
36
  }, [time]);
50
37
 
51
38
  var onChangeTime = function onChangeTime() {
52
- var m = time ? moment(time) : moment().set({
53
- hours: 0,
54
- minutes: 0,
55
- seconds: 0
56
- });
57
- var newTime = m.set({
58
- hours: values[0],
59
- minutes: values[1],
60
- seconds: values[2]
61
- }).valueOf();
39
+ var m = time ? moment(time) : moment().set('hours', 0).set('minutes', 0).set('seconds', 0);
40
+ var newTime = m.set('hours', values[0]).set('minutes', values[1]).set('seconds', values[2]).valueOf();
62
41
  onChange === null || onChange === void 0 ? void 0 : onChange(newTime);
63
42
  };
64
43
 
65
44
  _useUpdateEffect(function () {
66
- var m = time ? moment(time) : moment().set({
67
- hours: 0,
68
- minutes: 0,
69
- seconds: 0
70
- });
71
- setValues([m.hours(), m.minutes(), m.seconds()]);
45
+ var m = time ? moment(time) : moment().set('hours', 0).set('minutes', 0).set('seconds', 0);
46
+ setValues([m.hour(), m.minute(), m.second()]);
72
47
  }, [time]);
73
48
 
74
49
  var formatter = function formatter(value) {
75
50
  return String(value).length === 1 ? "0".concat(value) : value + '';
76
51
  };
77
52
 
78
- return /*#__PURE__*/_jsx(_Popover, {
53
+ return /*#__PURE__*/_jsx(Popover, {
79
54
  content: /*#__PURE__*/_jsxs("div", {
80
55
  className: "player-time-select",
81
- children: [/*#__PURE__*/_jsx(_InputNumber, {
56
+ children: [/*#__PURE__*/_jsx(InputNumber, {
82
57
  size: "small",
83
58
  style: {
84
59
  width: 36
@@ -91,7 +66,7 @@ function TimeSelect(_ref) {
91
66
  return [v, old[1], old[2]];
92
67
  });
93
68
  }
94
- }), ":", /*#__PURE__*/_jsx(_InputNumber, {
69
+ }), ":", /*#__PURE__*/_jsx(InputNumber, {
95
70
  size: "small",
96
71
  style: {
97
72
  width: 36
@@ -104,7 +79,7 @@ function TimeSelect(_ref) {
104
79
  return [old[0], v, old[2]];
105
80
  });
106
81
  }
107
- }), ":", /*#__PURE__*/_jsx(_InputNumber, {
82
+ }), ":", /*#__PURE__*/_jsx(InputNumber, {
108
83
  size: "small",
109
84
  style: {
110
85
  width: 36
@@ -117,7 +92,7 @@ function TimeSelect(_ref) {
117
92
  return [old[0], old[1], v];
118
93
  });
119
94
  }
120
- }), /*#__PURE__*/_jsx(_Button, {
95
+ }), /*#__PURE__*/_jsx(Button, {
121
96
  size: "small",
122
97
  type: "primary",
123
98
  onClick: onChangeTime,
@@ -1,5 +1,4 @@
1
- import "antd/lib/config-provider/style";
2
- import _ConfigProvider from "antd/lib/config-provider";
1
+ import { ConfigProvider } from 'antd';
3
2
  import React from 'react';
4
3
  import LivePlayer from "./Live";
5
4
  import { jsx as _jsx } from "react/jsx-runtime";
@@ -8,7 +7,7 @@ var list = [{
8
7
  type: 'hls'
9
8
  }];
10
9
  export default function App() {
11
- return /*#__PURE__*/_jsx(_ConfigProvider, {
10
+ return /*#__PURE__*/_jsx(ConfigProvider, {
12
11
  prefixCls: "cloudapp",
13
12
  children: /*#__PURE__*/_jsx("div", {
14
13
  style: {
@@ -1,10 +1,5 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
2
 
3
- import "antd/lib/config-provider/style";
4
- import _ConfigProvider from "antd/lib/config-provider";
5
- import "antd/lib/date-picker/style";
6
- import _DatePicker from "antd/lib/date-picker";
7
-
8
3
  function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return generator._invoke = function (innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; }(innerFn, self, context), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; this._invoke = function (method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (object) { var keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, catch: function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
9
4
 
10
5
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
@@ -37,7 +32,8 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
37
32
 
38
33
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
39
34
 
40
- import moment from 'moment';
35
+ import { ConfigProvider, DatePicker } from 'antd';
36
+ import moment from 'dayjs';
41
37
  import React, { useMemo, useState } from 'react';
42
38
  import Service from "../Service";
43
39
  import RecordPlayer from "./Record";
@@ -51,16 +47,8 @@ var query = function query(_ref) {
51
47
  var cid = _ref.cid,
52
48
  date = _ref.date;
53
49
  var m = moment(date);
54
- var beginTime = m.set({
55
- hours: 0,
56
- minutes: 0,
57
- seconds: 0
58
- }).unix();
59
- var endTime = m.set({
60
- hours: 23,
61
- minutes: 59,
62
- seconds: 59
63
- }).unix();
50
+ var beginTime = m.set('hours', 0).set('minutes', 0).set('seconds', 0).unix();
51
+ var endTime = m.set('hours', 23).set('minutes', 59).set('seconds', 59).unix();
64
52
  var promise = Service.http({
65
53
  method: 'post',
66
54
  url: "https://jxsr-eye.antelopecloud.cn/api/staticResource/v2/video/queryHistoryAddress?Authorization=".concat(token),
@@ -97,19 +85,15 @@ export default function App() {
97
85
  var value = useMemo(function () {
98
86
  var _state$list$state$idx;
99
87
 
100
- return state.list[state.idx] ? moment((_state$list$state$idx = state.list[state.idx]) === null || _state$list$state$idx === void 0 ? void 0 : _state$list$state$idx.date).set({
101
- hour: 0,
102
- minute: 0,
103
- second: 0
104
- }) : undefined;
88
+ return state.list[state.idx] ? moment((_state$list$state$idx = state.list[state.idx]) === null || _state$list$state$idx === void 0 ? void 0 : _state$list$state$idx.date).set('hours', 0).set('minutes', 0).set('seconds', 0) : undefined;
105
89
  }, [state.list, state.idx]);
106
- return /*#__PURE__*/_jsx(_ConfigProvider, {
90
+ return /*#__PURE__*/_jsx(ConfigProvider, {
107
91
  prefixCls: "cloudapp",
108
92
  children: /*#__PURE__*/_jsxs("div", {
109
93
  style: {
110
94
  width: '100%'
111
95
  },
112
- children: [/*#__PURE__*/_jsx(_DatePicker, {
96
+ children: [/*#__PURE__*/_jsx(DatePicker, {
113
97
  value: value,
114
98
  onChange: /*#__PURE__*/function () {
115
99
  var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(v) {
@@ -121,11 +105,7 @@ export default function App() {
121
105
  list = _toConsumableArray(state.list);
122
106
  flag = state.idx % 2 === 0;
123
107
  cid = flag ? cids[0] : cids[1];
124
- date = v === null || v === void 0 ? void 0 : v.set({
125
- hours: 0,
126
- minutes: 0,
127
- seconds: 0
128
- }).valueOf();
108
+ date = v === null || v === void 0 ? void 0 : v.set('hours', 0).set('minutes', 0).set('seconds', 0).valueOf();
129
109
  item = {
130
110
  date: date,
131
111
  cid: cid,
@@ -21,7 +21,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
21
21
 
22
22
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
23
 
24
- import moment from 'moment';
24
+ import moment from 'dayjs';
25
25
  import { useEffect, useMemo, useRef, useState } from 'react';
26
26
  var hours = [1, 6, 12, 24];
27
27
  var currentColor = '#FF000A';