@cloudtower/eagle 0.25.15 → 0.25.16

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.
package/dist/umd/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@cloudtower/parrot'), require('antd'), require('react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('react-i18next'), require('@linaria/core'), require('@linaria/react'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('antd/lib/form/FormItem'), require('@ant-design/icons/CheckCircleFilled'), require('@ant-design/icons/CloseCircleFilled'), require('@ant-design/icons/ExclamationCircleFilled'), require('@ant-design/icons/InfoCircleFilled'), require('@ant-design/icons/LoadingOutlined'), require('@cloudtower/rc-notification'), require('redux'), require('react-redux'), require('@cloudtower/icons-react'), require('react-beautiful-dnd'), require('timezones.json'), require('dayjs'), require('recharts'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@cloudtower/parrot', 'antd', 'react', 'classnames', 'lodash', 'react-svg-unique-id', 'react-i18next', '@linaria/core', '@linaria/react', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'antd/lib/form/FormItem', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', 'redux', 'react-redux', '@cloudtower/icons-react', 'react-beautiful-dnd', 'timezones.json', 'dayjs', 'recharts', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.parrot, global.antd, global.React, global.cs, global._, global.reactSvgUniqueId, global.reactI18next, global.core, global.react, global.moment, global.reactDom, global.reactIs, global.icons, global.AntdFormItem, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.redux, global.reactRedux, global.iconsReact, global.reactBeautifulDnd, global.TimeZones, global.dayjs, null, global.enUS, global.zhCN));
5
- })(this, (function (exports, parrot, antd, React, cs, _, reactSvgUniqueId, reactI18next, core, react, moment, reactDom, reactIs, icons, AntdFormItem, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, redux, reactRedux, iconsReact, reactBeautifulDnd, TimeZones, dayjs, recharts, enUS, zhCN) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@cloudtower/parrot'), require('antd'), require('react'), require('classnames'), require('lodash'), require('react-svg-unique-id'), require('react-i18next'), require('@linaria/core'), require('@linaria/react'), require('moment'), require('react-dom'), require('react-is'), require('@ant-design/icons'), require('antd/lib/form/FormItem'), require('@ant-design/icons/CheckCircleFilled'), require('@ant-design/icons/CloseCircleFilled'), require('@ant-design/icons/ExclamationCircleFilled'), require('@ant-design/icons/InfoCircleFilled'), require('@ant-design/icons/LoadingOutlined'), require('@cloudtower/rc-notification'), require('@cloudtower/icons-react'), require('react-beautiful-dnd'), require('timezones.json'), require('react-redux'), require('redux'), require('dayjs'), require('recharts'), require('antd/lib/locale/en_US'), require('antd/lib/locale/zh_CN')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@cloudtower/parrot', 'antd', 'react', 'classnames', 'lodash', 'react-svg-unique-id', 'react-i18next', '@linaria/core', '@linaria/react', 'moment', 'react-dom', 'react-is', '@ant-design/icons', 'antd/lib/form/FormItem', '@ant-design/icons/CheckCircleFilled', '@ant-design/icons/CloseCircleFilled', '@ant-design/icons/ExclamationCircleFilled', '@ant-design/icons/InfoCircleFilled', '@ant-design/icons/LoadingOutlined', '@cloudtower/rc-notification', '@cloudtower/icons-react', 'react-beautiful-dnd', 'timezones.json', 'react-redux', 'redux', 'dayjs', 'recharts', 'antd/lib/locale/en_US', 'antd/lib/locale/zh_CN'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.index = {}, global.parrot, global.antd, global.React, global.cs, global._, global.reactSvgUniqueId, global.reactI18next, global.core, global.react, global.moment, global.reactDom, global.reactIs, global.icons, global.AntdFormItem, global.CheckCircleFilled, global.CloseCircleFilled, global.ExclamationCircleFilled, global.InfoCircleFilled, global.LoadingOutlined, global.RCNotification, global.iconsReact, global.reactBeautifulDnd, global.TimeZones, global.reactRedux, global.redux, global.dayjs, null, global.enUS, global.zhCN));
5
+ })(this, (function (exports, parrot, antd, React, cs, _, reactSvgUniqueId, reactI18next, core, react, moment, reactDom, reactIs, icons, AntdFormItem, CheckCircleFilled, CloseCircleFilled, ExclamationCircleFilled, InfoCircleFilled, LoadingOutlined, RCNotification, iconsReact, reactBeautifulDnd, TimeZones, reactRedux, redux, dayjs, recharts, enUS, zhCN) { 'use strict';
6
6
 
7
7
  function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
8
8
 
@@ -2600,186 +2600,19 @@
2600
2600
  return a;
2601
2601
  };
2602
2602
  var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2603
- const initialChartState = {
2604
- pointers: {},
2605
- resourceData: {},
2606
- averageData: {}
2607
- };
2608
- const chartReducer = (state = initialChartState, action) => {
2609
- switch (action.type) {
2610
- case "SET_POINTER" /* SET_POINTER */: {
2611
- const { uuid, left, text, visible, value } = action.payload;
2612
- return __spreadProps$e(__spreadValues$k({}, state), {
2613
- pointers: __spreadProps$e(__spreadValues$k({}, state.pointers), {
2614
- [uuid]: {
2615
- left,
2616
- text,
2617
- visible,
2618
- value
2619
- }
2620
- })
2621
- });
2622
- }
2623
- case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
2624
- const { uuid, data } = action.payload;
2625
- return __spreadProps$e(__spreadValues$k({}, state), {
2626
- resourceData: __spreadProps$e(__spreadValues$k({}, state.resourceData), {
2627
- [uuid]: data
2628
- })
2629
- });
2630
- }
2631
- case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
2632
- const { uuid, average } = action.payload;
2633
- return __spreadProps$e(__spreadValues$k({}, state), {
2634
- averageData: __spreadProps$e(__spreadValues$k({}, state.averageData), {
2635
- [uuid]: average
2636
- })
2637
- });
2638
- }
2639
- default: {
2640
- return state;
2641
- }
2642
- }
2643
- };
2644
-
2645
- var __defProp$j = Object.defineProperty;
2646
- var __defProps$d = Object.defineProperties;
2647
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
2648
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2649
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2650
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2651
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2652
- var __spreadValues$j = (a, b) => {
2653
- for (var prop in b || (b = {}))
2654
- if (__hasOwnProp$j.call(b, prop))
2655
- __defNormalProp$j(a, prop, b[prop]);
2656
- if (__getOwnPropSymbols$j)
2657
- for (var prop of __getOwnPropSymbols$j(b)) {
2658
- if (__propIsEnum$j.call(b, prop))
2659
- __defNormalProp$j(a, prop, b[prop]);
2660
- }
2661
- return a;
2662
- };
2663
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
2664
- var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
2665
- ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
2666
- ModalActions2["POP_MODAL"] = "POP_MODAL";
2667
- ModalActions2["REMOVE_MODAL"] = "REMOVE_MODAL";
2668
- ModalActions2["CLOSE_MODAL"] = "CLOSE_MODAL";
2669
- return ModalActions2;
2670
- })(ModalActions || {});
2671
- const initialModalState = {
2672
- stack: [],
2673
- closeId: 0
2674
- };
2675
- let MODAL_ID = 1;
2676
- const modalReducer = (state = initialModalState, action) => {
2677
- switch (action.type) {
2678
- case "PUSH_MODAL" /* PUSH_MODAL */:
2679
- if (state.stack.some(
2680
- (modal) => modal.component === action.payload.component
2681
- )) {
2682
- return state;
2683
- }
2684
- return __spreadProps$d(__spreadValues$j({}, state), {
2685
- stack: state.stack.concat(__spreadProps$d(__spreadValues$j({}, action.payload), {
2686
- id: MODAL_ID++
2687
- }))
2688
- });
2689
- case "POP_MODAL" /* POP_MODAL */:
2690
- return __spreadProps$d(__spreadValues$j({}, state), {
2691
- stack: state.stack.slice(0, -1)
2692
- });
2693
- case "REMOVE_MODAL" /* REMOVE_MODAL */:
2694
- return __spreadProps$d(__spreadValues$j({}, state), {
2695
- closeId: 0,
2696
- stack: state.stack.filter((m) => m.id !== action.id)
2697
- });
2698
- case "CLOSE_MODAL" /* CLOSE_MODAL */:
2699
- return __spreadProps$d(__spreadValues$j({}, state), {
2700
- closeId: action.id
2701
- });
2702
- default:
2703
- return state;
2704
- }
2705
- };
2706
-
2707
- const appReducer = redux.combineReducers({
2708
- chart: chartReducer,
2709
- modal: modalReducer
2710
- });
2711
- const rootReducer = (state, action) => {
2712
- if (action.type === "RESET_UI_KIT_STORE") {
2713
- state = {
2714
- modal: initialModalState,
2715
- chart: initialChartState
2716
- };
2717
- }
2718
- return appReducer(state, action);
2719
- };
2720
- const UIKitStore = redux.createStore(rootReducer);
2721
- function pushModal(modal) {
2722
- UIKitStore.dispatch({
2723
- type: ModalActions.PUSH_MODAL,
2724
- payload: modal
2725
- });
2726
- }
2727
- function popModal() {
2728
- UIKitStore.dispatch({
2729
- type: ModalActions.POP_MODAL
2730
- });
2731
- }
2732
- function closeModal(id) {
2733
- UIKitStore.dispatch({
2734
- type: ModalActions.CLOSE_MODAL,
2735
- id
2736
- });
2737
- }
2738
-
2739
- const ctx = React.createContext({
2740
- store: UIKitStore,
2741
- storeState: UIKitStore.getState()
2742
- });
2743
- const KitStoreProvider = (props) => {
2744
- const { children } = props;
2745
- return /* @__PURE__ */ React__namespace.default.createElement(reactRedux.Provider, { context: ctx, store: UIKitStore }, children);
2746
- };
2747
- const useKitDispatch = reactRedux.createDispatchHook(ctx);
2748
- const useKitSelector = reactRedux.createSelectorHook(ctx);
2749
-
2750
- var __defProp$i = Object.defineProperty;
2751
- var __defProps$c = Object.defineProperties;
2752
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2753
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2754
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2755
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2756
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2757
- var __spreadValues$i = (a, b) => {
2758
- for (var prop in b || (b = {}))
2759
- if (__hasOwnProp$i.call(b, prop))
2760
- __defNormalProp$i(a, prop, b[prop]);
2761
- if (__getOwnPropSymbols$i)
2762
- for (var prop of __getOwnPropSymbols$i(b)) {
2763
- if (__propIsEnum$i.call(b, prop))
2764
- __defNormalProp$i(a, prop, b[prop]);
2765
- }
2766
- return a;
2767
- };
2768
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2769
2603
  var __objRest$5 = (source, exclude) => {
2770
2604
  var target = {};
2771
2605
  for (var prop in source)
2772
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
2606
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
2773
2607
  target[prop] = source[prop];
2774
- if (source != null && __getOwnPropSymbols$i)
2775
- for (var prop of __getOwnPropSymbols$i(source)) {
2776
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
2608
+ if (source != null && __getOwnPropSymbols$k)
2609
+ for (var prop of __getOwnPropSymbols$k(source)) {
2610
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
2777
2611
  target[prop] = source[prop];
2778
2612
  }
2779
2613
  return target;
2780
2614
  };
2781
2615
  const Modal = (props) => {
2782
- var _b;
2783
2616
  const { t } = useParrotTranslation();
2784
2617
  const _a = props, {
2785
2618
  error,
@@ -2799,7 +2632,9 @@
2799
2632
  width,
2800
2633
  showCancel = true,
2801
2634
  showOk = true,
2802
- afterClose
2635
+ afterClose,
2636
+ removeModal,
2637
+ visible
2803
2638
  } = _a, restProps = __objRest$5(_a, [
2804
2639
  "error",
2805
2640
  "okText",
@@ -2818,16 +2653,10 @@
2818
2653
  "width",
2819
2654
  "showCancel",
2820
2655
  "showOk",
2821
- "afterClose"
2656
+ "afterClose",
2657
+ "removeModal",
2658
+ "visible"
2822
2659
  ]);
2823
- const stack = useKitSelector(
2824
- (state) => state.modal.stack
2825
- );
2826
- const id = useKitSelector(
2827
- (state) => state.modal.closeId
2828
- );
2829
- const dispatch = useKitDispatch();
2830
- const idRef = React.useRef((_b = stack[stack.length - 1]) == null ? void 0 : _b.id);
2831
2660
  const transitionClass = React.useRef(fullscreen ? "fullscreen-modal" : "modal-zoom");
2832
2661
  const confirmText = React.useMemo(() => {
2833
2662
  let text = (okButtonProps == null ? void 0 : okButtonProps.children) || okText;
@@ -2855,7 +2684,7 @@
2855
2684
  }
2856
2685
  return /* @__PURE__ */ React__namespace.default.createElement(
2857
2686
  antd.Modal,
2858
- __spreadProps$c(__spreadValues$i({
2687
+ __spreadProps$e(__spreadValues$k({
2859
2688
  maskClosable,
2860
2689
  className: cs__default.default(
2861
2690
  className,
@@ -2875,9 +2704,9 @@
2875
2704
  }, restProps), {
2876
2705
  afterClose: () => {
2877
2706
  afterClose == null ? void 0 : afterClose();
2878
- dispatch({ type: ModalActions.REMOVE_MODAL, id: idRef.current });
2707
+ removeModal();
2879
2708
  },
2880
- visible: idRef.current !== id,
2709
+ visible,
2881
2710
  footer: /* @__PURE__ */ React__namespace.default.createElement("div", { className: "footer-content" }, footer === void 0 ? /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-left" }, wizard && typeof wizard === "object" && !wizard.disablePrevStep && wizard.step !== 0 && /* @__PURE__ */ React__namespace.default.createElement(
2882
2711
  "span",
2883
2712
  {
@@ -2890,7 +2719,7 @@
2890
2719
  prevText
2891
2720
  ), error && /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__namespace.default.createElement(
2892
2721
  Button,
2893
- __spreadValues$i({
2722
+ __spreadValues$k({
2894
2723
  type: "quiet",
2895
2724
  onMouseDown: (e) => {
2896
2725
  e.preventDefault();
@@ -2904,12 +2733,12 @@
2904
2733
  cancelText
2905
2734
  ), showOk && /* @__PURE__ */ React__namespace.default.createElement(
2906
2735
  Button,
2907
- __spreadValues$i({
2736
+ __spreadValues$k({
2908
2737
  onClick: (e) => {
2909
- var _a2, _b2;
2738
+ var _a2, _b;
2910
2739
  onOk == null ? void 0 : onOk(e);
2911
2740
  if (typeof wizard === "object" && wizard.steps[wizard.step]) {
2912
- (_b2 = (_a2 = wizard.steps[wizard.step]).onOk) == null ? void 0 : _b2.call(_a2, e);
2741
+ (_b = (_a2 = wizard.steps[wizard.step]).onOk) == null ? void 0 : _b.call(_a2, e);
2913
2742
  }
2914
2743
  transitionClass.current = fullscreen ? "" : "modal-send";
2915
2744
  },
@@ -3056,19 +2885,19 @@
3056
2885
  }))));
3057
2886
  };
3058
2887
 
3059
- var __defProp$h = Object.defineProperty;
3060
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3061
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3062
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3063
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3064
- var __spreadValues$h = (a, b) => {
2888
+ var __defProp$j = Object.defineProperty;
2889
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2890
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2891
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2892
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2893
+ var __spreadValues$j = (a, b) => {
3065
2894
  for (var prop in b || (b = {}))
3066
- if (__hasOwnProp$h.call(b, prop))
3067
- __defNormalProp$h(a, prop, b[prop]);
3068
- if (__getOwnPropSymbols$h)
3069
- for (var prop of __getOwnPropSymbols$h(b)) {
3070
- if (__propIsEnum$h.call(b, prop))
3071
- __defNormalProp$h(a, prop, b[prop]);
2895
+ if (__hasOwnProp$j.call(b, prop))
2896
+ __defNormalProp$j(a, prop, b[prop]);
2897
+ if (__getOwnPropSymbols$j)
2898
+ for (var prop of __getOwnPropSymbols$j(b)) {
2899
+ if (__propIsEnum$j.call(b, prop))
2900
+ __defNormalProp$j(a, prop, b[prop]);
3072
2901
  }
3073
2902
  return a;
3074
2903
  };
@@ -3080,52 +2909,52 @@
3080
2909
  emptyProps
3081
2910
  }) => {
3082
2911
  if (isEmpty(rawValue)) {
3083
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$h({}, emptyProps));
2912
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$j({}, emptyProps));
3084
2913
  }
3085
2914
  const { value, unit } = formatPercent(rawValue, decimals);
3086
2915
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
3087
2916
  };
3088
2917
 
3089
- var __defProp$g = Object.defineProperty;
3090
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3091
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3092
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3093
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3094
- var __spreadValues$g = (a, b) => {
2918
+ var __defProp$i = Object.defineProperty;
2919
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2920
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2921
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2922
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2923
+ var __spreadValues$i = (a, b) => {
3095
2924
  for (var prop in b || (b = {}))
3096
- if (__hasOwnProp$g.call(b, prop))
3097
- __defNormalProp$g(a, prop, b[prop]);
3098
- if (__getOwnPropSymbols$g)
3099
- for (var prop of __getOwnPropSymbols$g(b)) {
3100
- if (__propIsEnum$g.call(b, prop))
3101
- __defNormalProp$g(a, prop, b[prop]);
2925
+ if (__hasOwnProp$i.call(b, prop))
2926
+ __defNormalProp$i(a, prop, b[prop]);
2927
+ if (__getOwnPropSymbols$i)
2928
+ for (var prop of __getOwnPropSymbols$i(b)) {
2929
+ if (__propIsEnum$i.call(b, prop))
2930
+ __defNormalProp$i(a, prop, b[prop]);
3102
2931
  }
3103
2932
  return a;
3104
2933
  };
3105
- const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$g({}, props));
2934
+ const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$i({}, props));
3106
2935
 
3107
- var __defProp$f = Object.defineProperty;
3108
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3109
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3110
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3111
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
2936
+ var __defProp$h = Object.defineProperty;
2937
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2938
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2939
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2940
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, {
3112
2941
  enumerable: true,
3113
2942
  configurable: true,
3114
2943
  writable: true,
3115
2944
  value
3116
2945
  }) : obj[key] = value;
3117
- var __spreadValues$f = (a, b) => {
3118
- for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
3119
- if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
3120
- if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
2946
+ var __spreadValues$h = (a, b) => {
2947
+ for (var prop in b || (b = {})) if (__hasOwnProp$h.call(b, prop)) __defNormalProp$h(a, prop, b[prop]);
2948
+ if (__getOwnPropSymbols$h) for (var prop of __getOwnPropSymbols$h(b)) {
2949
+ if (__propIsEnum$h.call(b, prop)) __defNormalProp$h(a, prop, b[prop]);
3121
2950
  }
3122
2951
  return a;
3123
2952
  };
3124
2953
  var __objRest$4 = (source, exclude) => {
3125
2954
  var target = {};
3126
- for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3127
- if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
3128
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
2955
+ for (var prop in source) if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
2956
+ if (source != null && __getOwnPropSymbols$h) for (var prop of __getOwnPropSymbols$h(source)) {
2957
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop)) target[prop] = source[prop];
3129
2958
  }
3130
2959
  return target;
3131
2960
  };
@@ -3151,7 +2980,7 @@
3151
2980
  className: core.cx("radio-description", Typo.Label.l4_regular)
3152
2981
  }, description));
3153
2982
  }
3154
- return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$f({
2983
+ return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$h({
3155
2984
  className: core.cx(className, RadioStyle, compact && "compact"),
3156
2985
  checked: checked || false,
3157
2986
  "data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
@@ -3169,7 +2998,7 @@
3169
2998
  disabled: props.disabled,
3170
2999
  name: props.name
3171
3000
  }
3172
- }, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$f({
3001
+ }, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$h({
3173
3002
  className: core.cx(className, RadioGroupStyle)
3174
3003
  }, props), children ? children : null));
3175
3004
  };
@@ -3225,36 +3054,36 @@
3225
3054
  className: "ant-radio-button-input-label"
3226
3055
  }, typeof children === "string" ? children : ""));
3227
3056
  };
3228
- return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$f({
3057
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$h({
3229
3058
  className: core.cx(className, RadioButtonStyle),
3230
3059
  value: radioButtonValue
3231
3060
  }, props), renderChildren());
3232
3061
  };
3233
3062
 
3234
- var __defProp$e = Object.defineProperty;
3235
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3236
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3237
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3238
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3239
- var __spreadValues$e = (a, b) => {
3063
+ var __defProp$g = Object.defineProperty;
3064
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3065
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3066
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3067
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3068
+ var __spreadValues$g = (a, b) => {
3240
3069
  for (var prop in b || (b = {}))
3241
- if (__hasOwnProp$e.call(b, prop))
3242
- __defNormalProp$e(a, prop, b[prop]);
3243
- if (__getOwnPropSymbols$e)
3244
- for (var prop of __getOwnPropSymbols$e(b)) {
3245
- if (__propIsEnum$e.call(b, prop))
3246
- __defNormalProp$e(a, prop, b[prop]);
3070
+ if (__hasOwnProp$g.call(b, prop))
3071
+ __defNormalProp$g(a, prop, b[prop]);
3072
+ if (__getOwnPropSymbols$g)
3073
+ for (var prop of __getOwnPropSymbols$g(b)) {
3074
+ if (__propIsEnum$g.call(b, prop))
3075
+ __defNormalProp$g(a, prop, b[prop]);
3247
3076
  }
3248
3077
  return a;
3249
3078
  };
3250
3079
  var __objRest$3 = (source, exclude) => {
3251
3080
  var target = {};
3252
3081
  for (var prop in source)
3253
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
3082
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
3254
3083
  target[prop] = source[prop];
3255
- if (source != null && __getOwnPropSymbols$e)
3256
- for (var prop of __getOwnPropSymbols$e(source)) {
3257
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
3084
+ if (source != null && __getOwnPropSymbols$g)
3085
+ for (var prop of __getOwnPropSymbols$g(source)) {
3086
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
3258
3087
  target[prop] = source[prop];
3259
3088
  }
3260
3089
  return target;
@@ -3264,7 +3093,7 @@
3264
3093
  const onSearch = ___default.default.debounce(onChange, debounceWait);
3265
3094
  return /* @__PURE__ */ React__namespace.default.createElement(
3266
3095
  Input,
3267
- __spreadValues$e({
3096
+ __spreadValues$g({
3268
3097
  style: { width: 276 },
3269
3098
  prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
3270
3099
  onChange: (e) => onSearch(e.target.value)
@@ -3272,19 +3101,19 @@
3272
3101
  );
3273
3102
  };
3274
3103
 
3275
- var __defProp$d = Object.defineProperty;
3276
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
3277
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
3278
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
3279
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3280
- var __spreadValues$d = (a, b) => {
3104
+ var __defProp$f = Object.defineProperty;
3105
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3106
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3107
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3108
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3109
+ var __spreadValues$f = (a, b) => {
3281
3110
  for (var prop in b || (b = {}))
3282
- if (__hasOwnProp$d.call(b, prop))
3283
- __defNormalProp$d(a, prop, b[prop]);
3284
- if (__getOwnPropSymbols$d)
3285
- for (var prop of __getOwnPropSymbols$d(b)) {
3286
- if (__propIsEnum$d.call(b, prop))
3287
- __defNormalProp$d(a, prop, b[prop]);
3111
+ if (__hasOwnProp$f.call(b, prop))
3112
+ __defNormalProp$f(a, prop, b[prop]);
3113
+ if (__getOwnPropSymbols$f)
3114
+ for (var prop of __getOwnPropSymbols$f(b)) {
3115
+ if (__propIsEnum$f.call(b, prop))
3116
+ __defNormalProp$f(a, prop, b[prop]);
3288
3117
  }
3289
3118
  return a;
3290
3119
  };
@@ -3298,7 +3127,7 @@
3298
3127
  }) => {
3299
3128
  const { t } = useParrotTranslation();
3300
3129
  if (isEmpty(rawValue)) {
3301
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$d({}, emptyProps));
3130
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$f({}, emptyProps));
3302
3131
  }
3303
3132
  const { value, unit } = formatSeconds(rawValue, decimals);
3304
3133
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
@@ -3380,19 +3209,19 @@
3380
3209
  })));
3381
3210
  };
3382
3211
 
3383
- var __defProp$c = Object.defineProperty;
3384
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
3385
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
3386
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
3387
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3388
- var __spreadValues$c = (a, b) => {
3212
+ var __defProp$e = Object.defineProperty;
3213
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3214
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3215
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3216
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3217
+ var __spreadValues$e = (a, b) => {
3389
3218
  for (var prop in b || (b = {}))
3390
- if (__hasOwnProp$c.call(b, prop))
3391
- __defNormalProp$c(a, prop, b[prop]);
3392
- if (__getOwnPropSymbols$c)
3393
- for (var prop of __getOwnPropSymbols$c(b)) {
3394
- if (__propIsEnum$c.call(b, prop))
3395
- __defNormalProp$c(a, prop, b[prop]);
3219
+ if (__hasOwnProp$e.call(b, prop))
3220
+ __defNormalProp$e(a, prop, b[prop]);
3221
+ if (__getOwnPropSymbols$e)
3222
+ for (var prop of __getOwnPropSymbols$e(b)) {
3223
+ if (__propIsEnum$e.call(b, prop))
3224
+ __defNormalProp$e(a, prop, b[prop]);
3396
3225
  }
3397
3226
  return a;
3398
3227
  };
@@ -3404,37 +3233,37 @@
3404
3233
  emptyProps
3405
3234
  }) => {
3406
3235
  if (isEmpty(rawValue)) {
3407
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$c({}, emptyProps));
3236
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$e({}, emptyProps));
3408
3237
  }
3409
3238
  const { value, unit } = formatSpeed(rawValue, decimals);
3410
3239
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
3411
3240
  };
3412
3241
 
3413
- var __defProp$b = Object.defineProperty;
3414
- var __defProps$b = Object.defineProperties;
3415
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
3416
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
3417
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
3418
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
3419
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
3242
+ var __defProp$d = Object.defineProperty;
3243
+ var __defProps$d = Object.defineProperties;
3244
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
3245
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
3246
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
3247
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
3248
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
3420
3249
  enumerable: true,
3421
3250
  configurable: true,
3422
3251
  writable: true,
3423
3252
  value
3424
3253
  }) : obj[key] = value;
3425
- var __spreadValues$b = (a, b) => {
3426
- for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
3427
- if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
3428
- if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
3254
+ var __spreadValues$d = (a, b) => {
3255
+ for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
3256
+ if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
3257
+ if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
3429
3258
  }
3430
3259
  return a;
3431
3260
  };
3432
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
3261
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
3433
3262
  var __objRest$2 = (source, exclude) => {
3434
3263
  var target = {};
3435
- for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3436
- if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
3437
- if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
3264
+ for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3265
+ if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
3266
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
3438
3267
  }
3439
3268
  return target;
3440
3269
  };
@@ -3456,40 +3285,40 @@
3456
3285
  }, count) : null, _step.title);
3457
3286
  return /* @__PURE__ */React__namespace.default.createElement(StepsContainer, {
3458
3287
  className: containerClassname
3459
- }, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$b(__spreadValues$b({}, stepsProps), {
3288
+ }, /* @__PURE__ */React__namespace.default.createElement(antd.Steps, __spreadProps$d(__spreadValues$d({}, stepsProps), {
3460
3289
  type: "default"
3461
- }), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$b(__spreadValues$b({
3290
+ }), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__namespace.default.createElement(antd.Steps.Step, __spreadProps$d(__spreadValues$d({
3462
3291
  key: index
3463
3292
  }, step), {
3464
3293
  title: titleWithCount(step, index + 1)
3465
3294
  }))) : props.children));
3466
3295
  };
3467
3296
 
3468
- var __defProp$a = Object.defineProperty;
3469
- var __defProps$a = Object.defineProperties;
3470
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
3471
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
3472
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
3473
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
3474
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
3297
+ var __defProp$c = Object.defineProperty;
3298
+ var __defProps$c = Object.defineProperties;
3299
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
3300
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
3301
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
3302
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
3303
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
3475
3304
  enumerable: true,
3476
3305
  configurable: true,
3477
3306
  writable: true,
3478
3307
  value
3479
3308
  }) : obj[key] = value;
3480
- var __spreadValues$a = (a, b) => {
3481
- for (var prop in b || (b = {})) if (__hasOwnProp$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
3482
- if (__getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(b)) {
3483
- if (__propIsEnum$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
3309
+ var __spreadValues$c = (a, b) => {
3310
+ for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
3311
+ if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
3312
+ if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
3484
3313
  }
3485
3314
  return a;
3486
3315
  };
3487
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
3316
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
3488
3317
  var __objRest$1 = (source, exclude) => {
3489
3318
  var target = {};
3490
- for (var prop in source) if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3491
- if (source != null && __getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(source)) {
3492
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop)) target[prop] = source[prop];
3319
+ for (var prop in source) if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3320
+ if (source != null && __getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(source)) {
3321
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop)) target[prop] = source[prop];
3493
3322
  }
3494
3323
  return target;
3495
3324
  };
@@ -3509,7 +3338,7 @@
3509
3338
  });
3510
3339
  const classNames = [className, SwitchStyle, "switch"];
3511
3340
  if (props.size === "large") classNames.push("ant-switch-large");
3512
- return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$a(__spreadValues$a({
3341
+ return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Switch, __spreadProps$c(__spreadValues$c({
3513
3342
  className: core.cx(...classNames),
3514
3343
  checked: checked || false
3515
3344
  }, props), {
@@ -3595,26 +3424,26 @@
3595
3424
  }));
3596
3425
  };
3597
3426
 
3598
- var __defProp$9 = Object.defineProperty;
3599
- var __defProps$9 = Object.defineProperties;
3600
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
3601
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
3602
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
3603
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
3604
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
3427
+ var __defProp$b = Object.defineProperty;
3428
+ var __defProps$b = Object.defineProperties;
3429
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
3430
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
3431
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
3432
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
3433
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
3605
3434
  enumerable: true,
3606
3435
  configurable: true,
3607
3436
  writable: true,
3608
3437
  value
3609
3438
  }) : obj[key] = value;
3610
- var __spreadValues$9 = (a, b) => {
3611
- for (var prop in b || (b = {})) if (__hasOwnProp$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
3612
- if (__getOwnPropSymbols$9) for (var prop of __getOwnPropSymbols$9(b)) {
3613
- if (__propIsEnum$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
3439
+ var __spreadValues$b = (a, b) => {
3440
+ for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
3441
+ if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
3442
+ if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
3614
3443
  }
3615
3444
  return a;
3616
3445
  };
3617
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
3446
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
3618
3447
  const TableContainerStyle = "t1upn1sz";
3619
3448
  const tableStyleCover = "tta5kd2";
3620
3449
  const Table = props => {
@@ -3640,7 +3469,7 @@
3640
3469
  const orderRef = React.useRef(null);
3641
3470
  const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
3642
3471
  const _columns = React.useMemo(() => columns.map(column => {
3643
- const _column = __spreadValues$9({}, column);
3472
+ const _column = __spreadValues$b({}, column);
3644
3473
  if (_column.sorter) {
3645
3474
  _column.title = /* @__PURE__ */React__namespace.default.createElement(ColumnTitle, {
3646
3475
  title: column.title,
@@ -3682,7 +3511,7 @@
3682
3511
  }),
3683
3512
  rowClassName,
3684
3513
  scroll,
3685
- rowSelection: rowSelection && __spreadProps$9(__spreadValues$9({}, rowSelection), {
3514
+ rowSelection: rowSelection && __spreadProps$b(__spreadValues$b({}, rowSelection), {
3686
3515
  columnWidth: 32
3687
3516
  }),
3688
3517
  showSorterTooltip: false
@@ -3744,33 +3573,33 @@
3744
3573
  return sortArr;
3745
3574
  };
3746
3575
 
3747
- var __defProp$8 = Object.defineProperty;
3748
- var __defProps$8 = Object.defineProperties;
3749
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
3750
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3751
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3752
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
3753
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3754
- var __spreadValues$8 = (a, b) => {
3576
+ var __defProp$a = Object.defineProperty;
3577
+ var __defProps$a = Object.defineProperties;
3578
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
3579
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
3580
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
3581
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
3582
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3583
+ var __spreadValues$a = (a, b) => {
3755
3584
  for (var prop in b || (b = {}))
3756
- if (__hasOwnProp$8.call(b, prop))
3757
- __defNormalProp$8(a, prop, b[prop]);
3758
- if (__getOwnPropSymbols$8)
3759
- for (var prop of __getOwnPropSymbols$8(b)) {
3760
- if (__propIsEnum$8.call(b, prop))
3761
- __defNormalProp$8(a, prop, b[prop]);
3585
+ if (__hasOwnProp$a.call(b, prop))
3586
+ __defNormalProp$a(a, prop, b[prop]);
3587
+ if (__getOwnPropSymbols$a)
3588
+ for (var prop of __getOwnPropSymbols$a(b)) {
3589
+ if (__propIsEnum$a.call(b, prop))
3590
+ __defNormalProp$a(a, prop, b[prop]);
3762
3591
  }
3763
3592
  return a;
3764
3593
  };
3765
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
3594
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
3766
3595
  var __objRest = (source, exclude) => {
3767
3596
  var target = {};
3768
3597
  for (var prop in source)
3769
- if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
3598
+ if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
3770
3599
  target[prop] = source[prop];
3771
- if (source != null && __getOwnPropSymbols$8)
3772
- for (var prop of __getOwnPropSymbols$8(source)) {
3773
- if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
3600
+ if (source != null && __getOwnPropSymbols$a)
3601
+ for (var prop of __getOwnPropSymbols$a(source)) {
3602
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
3774
3603
  target[prop] = source[prop];
3775
3604
  }
3776
3605
  return target;
@@ -3811,9 +3640,9 @@
3811
3640
  if (!columns.length) {
3812
3641
  return null;
3813
3642
  }
3814
- return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$8({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
3643
+ return CustomizedButton ? /* @__PURE__ */ React__namespace.default.createElement(CustomizedButton, __spreadValues$a({}, props)) : /* @__PURE__ */ React__namespace.default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__namespace.default.createElement(
3815
3644
  Button,
3816
- __spreadProps$8(__spreadValues$8({}, restButtonProps), {
3645
+ __spreadProps$a(__spreadValues$a({}, restButtonProps), {
3817
3646
  type: restButtonProps.type || "ordinary",
3818
3647
  size: restButtonProps.size || "small",
3819
3648
  icon: restButtonProps.icon || /* @__PURE__ */ React__namespace.default.createElement(icons.PlusOutlined, null),
@@ -3908,25 +3737,25 @@
3908
3737
  );
3909
3738
  };
3910
3739
 
3911
- var __defProp$7 = Object.defineProperty;
3912
- var __defProps$7 = Object.defineProperties;
3913
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
3914
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
3915
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
3916
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
3917
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3918
- var __spreadValues$7 = (a, b) => {
3740
+ var __defProp$9 = Object.defineProperty;
3741
+ var __defProps$9 = Object.defineProperties;
3742
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
3743
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
3744
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
3745
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
3746
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3747
+ var __spreadValues$9 = (a, b) => {
3919
3748
  for (var prop in b || (b = {}))
3920
- if (__hasOwnProp$7.call(b, prop))
3921
- __defNormalProp$7(a, prop, b[prop]);
3922
- if (__getOwnPropSymbols$7)
3923
- for (var prop of __getOwnPropSymbols$7(b)) {
3924
- if (__propIsEnum$7.call(b, prop))
3925
- __defNormalProp$7(a, prop, b[prop]);
3749
+ if (__hasOwnProp$9.call(b, prop))
3750
+ __defNormalProp$9(a, prop, b[prop]);
3751
+ if (__getOwnPropSymbols$9)
3752
+ for (var prop of __getOwnPropSymbols$9(b)) {
3753
+ if (__propIsEnum$9.call(b, prop))
3754
+ __defNormalProp$9(a, prop, b[prop]);
3926
3755
  }
3927
3756
  return a;
3928
3757
  };
3929
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
3758
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
3930
3759
  const InputPassword = (props) => {
3931
3760
  const [showPassword, setShowPassword] = React.useState(false);
3932
3761
  React.useEffect(() => {
@@ -3942,7 +3771,7 @@
3942
3771
  const inputType = showPassword ? "text" : "password";
3943
3772
  return /* @__PURE__ */ React__namespace.default.createElement(
3944
3773
  antd.Input,
3945
- __spreadProps$7(__spreadValues$7({}, props), {
3774
+ __spreadProps$9(__spreadValues$9({}, props), {
3946
3775
  type: inputType,
3947
3776
  suffix: showPassword ? /* @__PURE__ */ React__namespace.default.createElement(
3948
3777
  icons.EyeOutlined,
@@ -3962,9 +3791,9 @@
3962
3791
  };
3963
3792
  const CustomInput = (props) => {
3964
3793
  if (props.type === "password") {
3965
- return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$7({}, props));
3794
+ return /* @__PURE__ */ React__namespace.default.createElement(InputPassword, __spreadValues$9({}, props));
3966
3795
  }
3967
- return /* @__PURE__ */ React__namespace.default.createElement(antd.Input, __spreadValues$7({}, props));
3796
+ return /* @__PURE__ */ React__namespace.default.createElement(antd.Input, __spreadValues$9({}, props));
3968
3797
  };
3969
3798
  const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
3970
3799
  const _onChange = (e) => {
@@ -4086,25 +3915,25 @@
4086
3915
  return ValidateTriggerType2;
4087
3916
  })(ValidateTriggerType || {});
4088
3917
 
4089
- var __defProp$6 = Object.defineProperty;
4090
- var __defProps$6 = Object.defineProperties;
4091
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
4092
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
4093
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
4094
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
4095
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4096
- var __spreadValues$6 = (a, b) => {
3918
+ var __defProp$8 = Object.defineProperty;
3919
+ var __defProps$8 = Object.defineProperties;
3920
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
3921
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3922
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3923
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
3924
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3925
+ var __spreadValues$8 = (a, b) => {
4097
3926
  for (var prop in b || (b = {}))
4098
- if (__hasOwnProp$6.call(b, prop))
4099
- __defNormalProp$6(a, prop, b[prop]);
4100
- if (__getOwnPropSymbols$6)
4101
- for (var prop of __getOwnPropSymbols$6(b)) {
4102
- if (__propIsEnum$6.call(b, prop))
4103
- __defNormalProp$6(a, prop, b[prop]);
3927
+ if (__hasOwnProp$8.call(b, prop))
3928
+ __defNormalProp$8(a, prop, b[prop]);
3929
+ if (__getOwnPropSymbols$8)
3930
+ for (var prop of __getOwnPropSymbols$8(b)) {
3931
+ if (__propIsEnum$8.call(b, prop))
3932
+ __defNormalProp$8(a, prop, b[prop]);
4104
3933
  }
4105
3934
  return a;
4106
3935
  };
4107
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
3936
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
4108
3937
  const TableFormBodyCell = (props) => {
4109
3938
  const {
4110
3939
  column,
@@ -4126,7 +3955,7 @@
4126
3955
  (currentValue) => {
4127
3956
  var _a;
4128
3957
  const value = currentValue || data[rowIndex][column.key];
4129
- const rowData = __spreadProps$6(__spreadValues$6({}, data[rowIndex]), { [column.key]: value });
3958
+ const rowData = __spreadProps$8(__spreadValues$8({}, data[rowIndex]), { [column.key]: value });
4130
3959
  const rowValidateRes = getRowValidateResult(rowData);
4131
3960
  if (rowValidateRes) {
4132
3961
  return;
@@ -4149,7 +3978,7 @@
4149
3978
  }, [validateAll, triggerValidate]);
4150
3979
  const _onChange = (value, data2) => {
4151
3980
  const newData = data2.map(
4152
- (row, i) => i === rowIndex ? __spreadProps$6(__spreadValues$6({}, row), { [column.key]: value }) : row
3981
+ (row, i) => i === rowIndex ? __spreadProps$8(__spreadValues$8({}, row), { [column.key]: value }) : row
4153
3982
  );
4154
3983
  onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
4155
3984
  if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
@@ -4226,25 +4055,25 @@
4226
4055
  );
4227
4056
  };
4228
4057
 
4229
- var __defProp$5 = Object.defineProperty;
4230
- var __defProps$5 = Object.defineProperties;
4231
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
4232
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
4233
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
4234
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
4235
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4236
- var __spreadValues$5 = (a, b) => {
4058
+ var __defProp$7 = Object.defineProperty;
4059
+ var __defProps$7 = Object.defineProperties;
4060
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
4061
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
4062
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
4063
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
4064
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4065
+ var __spreadValues$7 = (a, b) => {
4237
4066
  for (var prop in b || (b = {}))
4238
- if (__hasOwnProp$5.call(b, prop))
4239
- __defNormalProp$5(a, prop, b[prop]);
4240
- if (__getOwnPropSymbols$5)
4241
- for (var prop of __getOwnPropSymbols$5(b)) {
4242
- if (__propIsEnum$5.call(b, prop))
4243
- __defNormalProp$5(a, prop, b[prop]);
4067
+ if (__hasOwnProp$7.call(b, prop))
4068
+ __defNormalProp$7(a, prop, b[prop]);
4069
+ if (__getOwnPropSymbols$7)
4070
+ for (var prop of __getOwnPropSymbols$7(b)) {
4071
+ if (__propIsEnum$7.call(b, prop))
4072
+ __defNormalProp$7(a, prop, b[prop]);
4244
4073
  }
4245
4074
  return a;
4246
4075
  };
4247
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
4076
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
4248
4077
  const TableFormRow = (props) => {
4249
4078
  const {
4250
4079
  data,
@@ -4327,7 +4156,7 @@
4327
4156
  );
4328
4157
  });
4329
4158
  const DraggableHandle = React.useMemo(
4330
- () => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$5({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
4159
+ () => draggable && provided ? /* @__PURE__ */ React__namespace.default.createElement(DraggableHandleWrapper, __spreadValues$7({}, provided.dragHandleProps), /* @__PURE__ */ React__namespace.default.createElement(
4331
4160
  Icon,
4332
4161
  {
4333
4162
  src: iconsReact.HandlePoint816SecondaryIcon,
@@ -4376,7 +4205,7 @@
4376
4205
  );
4377
4206
  return draggable ? /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.DragDropContext, { onDragEnd }, /* @__PURE__ */ React__namespace.default.createElement(reactBeautifulDnd.Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__namespace.default.createElement(
4378
4207
  "div",
4379
- __spreadValues$5({
4208
+ __spreadValues$7({
4380
4209
  className: "draggable-container",
4381
4210
  ref: provided.innerRef
4382
4211
  }, provided.droppableProps),
@@ -4387,9 +4216,9 @@
4387
4216
  key: `draggable-id-${i}`,
4388
4217
  index: i
4389
4218
  },
4390
- (provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$5({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
4219
+ (provided2, snapshot) => /* @__PURE__ */ React__namespace.default.createElement("div", __spreadValues$7({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__namespace.default.createElement(
4391
4220
  TableFormRow,
4392
- __spreadProps$5(__spreadValues$5({}, props), {
4221
+ __spreadProps$7(__spreadValues$7({}, props), {
4393
4222
  rowIndex: i,
4394
4223
  provided: provided2,
4395
4224
  snapshot
@@ -4397,28 +4226,28 @@
4397
4226
  ))
4398
4227
  )),
4399
4228
  provided.placeholder
4400
- ))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$5(__spreadValues$5({}, props), { rowIndex: i, key: `table-row-${i}` }))));
4229
+ ))) : /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__namespace.default.createElement(TableFormRow, __spreadProps$7(__spreadValues$7({}, props), { rowIndex: i, key: `table-row-${i}` }))));
4401
4230
  });
4402
4231
 
4403
- var __defProp$4 = Object.defineProperty;
4404
- var __defProps$4 = Object.defineProperties;
4405
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
4406
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
4407
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
4408
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
4409
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4410
- var __spreadValues$4 = (a, b) => {
4232
+ var __defProp$6 = Object.defineProperty;
4233
+ var __defProps$6 = Object.defineProperties;
4234
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
4235
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
4236
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
4237
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
4238
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4239
+ var __spreadValues$6 = (a, b) => {
4411
4240
  for (var prop in b || (b = {}))
4412
- if (__hasOwnProp$4.call(b, prop))
4413
- __defNormalProp$4(a, prop, b[prop]);
4414
- if (__getOwnPropSymbols$4)
4415
- for (var prop of __getOwnPropSymbols$4(b)) {
4416
- if (__propIsEnum$4.call(b, prop))
4417
- __defNormalProp$4(a, prop, b[prop]);
4241
+ if (__hasOwnProp$6.call(b, prop))
4242
+ __defNormalProp$6(a, prop, b[prop]);
4243
+ if (__getOwnPropSymbols$6)
4244
+ for (var prop of __getOwnPropSymbols$6(b)) {
4245
+ if (__propIsEnum$6.call(b, prop))
4246
+ __defNormalProp$6(a, prop, b[prop]);
4418
4247
  }
4419
4248
  return a;
4420
4249
  };
4421
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
4250
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
4422
4251
  const BatchInputListHeaderCell = (props) => {
4423
4252
  const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
4424
4253
  const [errMsg, setErrMsg] = React.useState();
@@ -4430,7 +4259,7 @@
4430
4259
  setErrMsg(err || void 0);
4431
4260
  const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
4432
4261
  const newData = data.map((cell, rowIndex) => {
4433
- return __spreadProps$4(__spreadValues$4({}, cell), {
4262
+ return __spreadProps$6(__spreadValues$6({}, cell), {
4434
4263
  [column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
4435
4264
  });
4436
4265
  });
@@ -4447,7 +4276,7 @@
4447
4276
  const CellComponent = ColumnHeaderImpls[column.type];
4448
4277
  return /* @__PURE__ */ React__namespace.default.createElement(
4449
4278
  CellComponent,
4450
- __spreadProps$4(__spreadValues$4({}, props), {
4279
+ __spreadProps$6(__spreadValues$6({}, props), {
4451
4280
  column,
4452
4281
  onChange: headerOnChange,
4453
4282
  onBlur: _onBlur
@@ -4482,25 +4311,25 @@
4482
4311
  );
4483
4312
  };
4484
4313
 
4485
- var __defProp$3 = Object.defineProperty;
4486
- var __defProps$3 = Object.defineProperties;
4487
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
4488
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4489
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4490
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4491
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4492
- var __spreadValues$3 = (a, b) => {
4314
+ var __defProp$5 = Object.defineProperty;
4315
+ var __defProps$5 = Object.defineProperties;
4316
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
4317
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
4318
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
4319
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
4320
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4321
+ var __spreadValues$5 = (a, b) => {
4493
4322
  for (var prop in b || (b = {}))
4494
- if (__hasOwnProp$3.call(b, prop))
4495
- __defNormalProp$3(a, prop, b[prop]);
4496
- if (__getOwnPropSymbols$3)
4497
- for (var prop of __getOwnPropSymbols$3(b)) {
4498
- if (__propIsEnum$3.call(b, prop))
4499
- __defNormalProp$3(a, prop, b[prop]);
4323
+ if (__hasOwnProp$5.call(b, prop))
4324
+ __defNormalProp$5(a, prop, b[prop]);
4325
+ if (__getOwnPropSymbols$5)
4326
+ for (var prop of __getOwnPropSymbols$5(b)) {
4327
+ if (__propIsEnum$5.call(b, prop))
4328
+ __defNormalProp$5(a, prop, b[prop]);
4500
4329
  }
4501
4330
  return a;
4502
4331
  };
4503
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
4332
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
4504
4333
  const DEFAULT_ROW_COUNT = 3;
4505
4334
  const TableForm = React__namespace.default.forwardRef(
4506
4335
  ({
@@ -4557,7 +4386,7 @@
4557
4386
  (key, error) => {
4558
4387
  if (error) {
4559
4388
  const newData = latestData.map((cell) => {
4560
- return __spreadProps$3(__spreadValues$3({}, cell), {
4389
+ return __spreadProps$5(__spreadValues$5({}, cell), {
4561
4390
  [key]: ""
4562
4391
  });
4563
4392
  });
@@ -4935,6 +4764,172 @@
4935
4764
  }, refetchText || t("common.retry")));
4936
4765
  };
4937
4766
 
4767
+ var __defProp$4 = Object.defineProperty;
4768
+ var __defProps$4 = Object.defineProperties;
4769
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
4770
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
4771
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
4772
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
4773
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4774
+ var __spreadValues$4 = (a, b) => {
4775
+ for (var prop in b || (b = {}))
4776
+ if (__hasOwnProp$4.call(b, prop))
4777
+ __defNormalProp$4(a, prop, b[prop]);
4778
+ if (__getOwnPropSymbols$4)
4779
+ for (var prop of __getOwnPropSymbols$4(b)) {
4780
+ if (__propIsEnum$4.call(b, prop))
4781
+ __defNormalProp$4(a, prop, b[prop]);
4782
+ }
4783
+ return a;
4784
+ };
4785
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
4786
+ const initialChartState = {
4787
+ pointers: {},
4788
+ resourceData: {},
4789
+ averageData: {}
4790
+ };
4791
+ const chartReducer = (state = initialChartState, action) => {
4792
+ switch (action.type) {
4793
+ case "SET_POINTER" /* SET_POINTER */: {
4794
+ const { uuid, left, text, visible, value } = action.payload;
4795
+ return __spreadProps$4(__spreadValues$4({}, state), {
4796
+ pointers: __spreadProps$4(__spreadValues$4({}, state.pointers), {
4797
+ [uuid]: {
4798
+ left,
4799
+ text,
4800
+ visible,
4801
+ value
4802
+ }
4803
+ })
4804
+ });
4805
+ }
4806
+ case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
4807
+ const { uuid, data } = action.payload;
4808
+ return __spreadProps$4(__spreadValues$4({}, state), {
4809
+ resourceData: __spreadProps$4(__spreadValues$4({}, state.resourceData), {
4810
+ [uuid]: data
4811
+ })
4812
+ });
4813
+ }
4814
+ case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
4815
+ const { uuid, average } = action.payload;
4816
+ return __spreadProps$4(__spreadValues$4({}, state), {
4817
+ averageData: __spreadProps$4(__spreadValues$4({}, state.averageData), {
4818
+ [uuid]: average
4819
+ })
4820
+ });
4821
+ }
4822
+ default: {
4823
+ return state;
4824
+ }
4825
+ }
4826
+ };
4827
+
4828
+ var __defProp$3 = Object.defineProperty;
4829
+ var __defProps$3 = Object.defineProperties;
4830
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
4831
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4832
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4833
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4834
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4835
+ var __spreadValues$3 = (a, b) => {
4836
+ for (var prop in b || (b = {}))
4837
+ if (__hasOwnProp$3.call(b, prop))
4838
+ __defNormalProp$3(a, prop, b[prop]);
4839
+ if (__getOwnPropSymbols$3)
4840
+ for (var prop of __getOwnPropSymbols$3(b)) {
4841
+ if (__propIsEnum$3.call(b, prop))
4842
+ __defNormalProp$3(a, prop, b[prop]);
4843
+ }
4844
+ return a;
4845
+ };
4846
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
4847
+ var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
4848
+ ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
4849
+ ModalActions2["POP_MODAL"] = "POP_MODAL";
4850
+ ModalActions2["REMOVE_MODAL"] = "REMOVE_MODAL";
4851
+ ModalActions2["CLOSE_MODAL"] = "CLOSE_MODAL";
4852
+ return ModalActions2;
4853
+ })(ModalActions || {});
4854
+ const initialModalState = {
4855
+ stack: [],
4856
+ closeId: 0
4857
+ };
4858
+ let MODAL_ID = 1;
4859
+ const modalReducer = (state = initialModalState, action) => {
4860
+ switch (action.type) {
4861
+ case "PUSH_MODAL" /* PUSH_MODAL */:
4862
+ if (state.stack.some(
4863
+ (modal) => modal.component === action.payload.component
4864
+ )) {
4865
+ return state;
4866
+ }
4867
+ return __spreadProps$3(__spreadValues$3({}, state), {
4868
+ stack: state.stack.concat(__spreadProps$3(__spreadValues$3({}, action.payload), {
4869
+ id: MODAL_ID++
4870
+ }))
4871
+ });
4872
+ case "POP_MODAL" /* POP_MODAL */:
4873
+ return __spreadProps$3(__spreadValues$3({}, state), {
4874
+ stack: state.stack.slice(0, -1)
4875
+ });
4876
+ case "REMOVE_MODAL" /* REMOVE_MODAL */:
4877
+ return __spreadProps$3(__spreadValues$3({}, state), {
4878
+ closeId: 0,
4879
+ stack: state.stack.filter((m) => m.id !== action.id)
4880
+ });
4881
+ case "CLOSE_MODAL" /* CLOSE_MODAL */:
4882
+ return __spreadProps$3(__spreadValues$3({}, state), {
4883
+ closeId: action.id
4884
+ });
4885
+ default:
4886
+ return state;
4887
+ }
4888
+ };
4889
+
4890
+ const appReducer = redux.combineReducers({
4891
+ chart: chartReducer,
4892
+ modal: modalReducer
4893
+ });
4894
+ const rootReducer = (state, action) => {
4895
+ if (action.type === "RESET_UI_KIT_STORE") {
4896
+ state = {
4897
+ modal: initialModalState,
4898
+ chart: initialChartState
4899
+ };
4900
+ }
4901
+ return appReducer(state, action);
4902
+ };
4903
+ const UIKitStore = redux.createStore(rootReducer);
4904
+ function pushModal(modal) {
4905
+ UIKitStore.dispatch({
4906
+ type: ModalActions.PUSH_MODAL,
4907
+ payload: modal
4908
+ });
4909
+ }
4910
+ function popModal() {
4911
+ UIKitStore.dispatch({
4912
+ type: ModalActions.POP_MODAL
4913
+ });
4914
+ }
4915
+ function closeModal(id) {
4916
+ UIKitStore.dispatch({
4917
+ type: ModalActions.CLOSE_MODAL,
4918
+ id
4919
+ });
4920
+ }
4921
+
4922
+ const ctx = React.createContext({
4923
+ store: UIKitStore,
4924
+ storeState: UIKitStore.getState()
4925
+ });
4926
+ const KitStoreProvider = (props) => {
4927
+ const { children } = props;
4928
+ return /* @__PURE__ */ React__namespace.default.createElement(reactRedux.Provider, { context: ctx, store: UIKitStore }, children);
4929
+ };
4930
+ const useKitDispatch = reactRedux.createDispatchHook(ctx);
4931
+ const useKitSelector = reactRedux.createSelectorHook(ctx);
4932
+
4938
4933
  var __defProp$2 = Object.defineProperty;
4939
4934
  var __defProps$2 = Object.defineProperties;
4940
4935
  var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
@@ -5107,6 +5102,10 @@
5107
5102
  const stack = useKitSelector(
5108
5103
  (state) => state.modal.stack
5109
5104
  );
5105
+ const dispatch = useKitDispatch();
5106
+ const closeId = useKitSelector(
5107
+ (state) => state.modal.closeId
5108
+ );
5110
5109
  return /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, stack.map((modal) => /* @__PURE__ */ React__namespace.default.createElement(
5111
5110
  modal.component,
5112
5111
  __spreadProps$1(__spreadValues$1({}, modal.props), {
@@ -5118,7 +5117,11 @@
5118
5117
  }
5119
5118
  closeModal(modal.id);
5120
5119
  },
5121
- key: modal.id
5120
+ key: modal.id,
5121
+ removeModal: () => {
5122
+ dispatch({ type: ModalActions.REMOVE_MODAL, id: modal.id });
5123
+ },
5124
+ visible: closeId !== modal.id
5122
5125
  })
5123
5126
  )));
5124
5127
  };