@cloudtower/eagle 0.26.0-alpha.0 → 0.26.1

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/esm/index.js CHANGED
@@ -1,5 +1,3 @@
1
- import { parrotI18n, initParrotI18n } from '@cloudtower/parrot';
2
- export * from '@cloudtower/parrot';
3
1
  import { Alert as Alert$1, Badge as Badge$1, Button as Button$1, Tooltip as Tooltip$1, Checkbox as Checkbox$1, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Form as Form$1, Modal as Modal$1, Steps as Steps$1, Dropdown, Menu, Progress as Progress$1, Radio as Radio$1, Switch as Switch$1, Table as Table$1, Space, List, Tag, Row, Col, Tree, Divider, Skeleton, Layout, AutoComplete, Popover, Timeline, Typography, Cascader, Upload, Calendar, Tabs, message, Empty as Empty$1, Collapse, TreeSelect, Drawer, ConfigProvider } from 'antd';
4
2
  export { Col, Row } from 'antd';
5
3
  import * as React from 'react';
@@ -7,6 +5,8 @@ import React__default, { useState, useMemo, useRef, useCallback, useEffect, Frag
7
5
  import cs from 'classnames';
8
6
  import _, { uniqBy, groupBy, sortBy, toPairs } from 'lodash';
9
7
  import { SVGUniqueID } from 'react-svg-unique-id';
8
+ import { parrotI18n } from '@cloudtower/parrot';
9
+ export * from '@cloudtower/parrot';
10
10
  import { useTranslation, withTranslation } from 'react-i18next';
11
11
  import { cx } from '@linaria/core';
12
12
  import { styled } from '@linaria/react';
@@ -21,11 +21,11 @@ import ExclamationCircleFilled from '@ant-design/icons/ExclamationCircleFilled';
21
21
  import InfoCircleFilled from '@ant-design/icons/InfoCircleFilled';
22
22
  import LoadingOutlined from '@ant-design/icons/LoadingOutlined';
23
23
  import RCNotification from '@cloudtower/rc-notification';
24
+ import { combineReducers, createStore } from 'redux';
25
+ import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
24
26
  import { XmarkRemove16SecondaryIcon, XmarkRemove16RegularRedIcon, HandlePoint816SecondaryIcon, HandlePoint816BlueIcon, CheckmarkDoneSuccessCorrect16BlueIcon } from '@cloudtower/icons-react';
25
27
  import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
26
28
  import TimeZones from 'timezones.json';
27
- import { createDispatchHook, createSelectorHook, Provider } from 'react-redux';
28
- import { combineReducers, createStore } from 'redux';
29
29
  import dayjs from 'dayjs';
30
30
  import 'recharts';
31
31
  import enUS from 'antd/lib/locale/en_US';
@@ -172,12 +172,17 @@ function formatBytes(bytes, decimals = 2) {
172
172
  unit: units[i]
173
173
  };
174
174
  }
175
- function formatPercent(input, decimals = 2) {
176
- if (input <= 0 || input === MAGIC_METRIC_NULL) {
175
+ function formatPercent(input, decimals = 2, saturated = true) {
176
+ if (input === MAGIC_METRIC_NULL) {
177
177
  input = 0;
178
178
  }
179
- if (input > 100) {
180
- input = 100;
179
+ if (saturated) {
180
+ if (input <= 0) {
181
+ input = 0;
182
+ }
183
+ if (input > 100) {
184
+ input = 100;
185
+ }
181
186
  }
182
187
  const value = input.toFixed(decimals);
183
188
  if (parseFloat(value) === 0 && input > 0) {
@@ -2436,6 +2441,19 @@ let transitionName = "move-up";
2436
2441
  let getContainer;
2437
2442
  let maxCount;
2438
2443
  let rtl = false;
2444
+ let fixMessage = [];
2445
+ let pageVisible = true;
2446
+ const visibilitychangeHandler = () => {
2447
+ if (document.hidden) {
2448
+ pageVisible = false;
2449
+ } else {
2450
+ pageVisible = true;
2451
+ fixMessage.forEach((message) => {
2452
+ notice(message);
2453
+ });
2454
+ fixMessage = [];
2455
+ }
2456
+ };
2439
2457
  function setMessageConfig(options) {
2440
2458
  if (options.top !== void 0) {
2441
2459
  defaultTop = options.top;
@@ -2462,6 +2480,7 @@ function setMessageConfig(options) {
2462
2480
  rtl = options.rtl;
2463
2481
  }
2464
2482
  }
2483
+ document.addEventListener("visibilitychange", visibilitychangeHandler);
2465
2484
  function getRCNotificationInstance(args, callback) {
2466
2485
  const prefixCls = args.prefixCls || localPrefixCls;
2467
2486
  if (messageInstance) {
@@ -2527,9 +2546,19 @@ function notice(args) {
2527
2546
  }
2528
2547
  return resolve(true);
2529
2548
  };
2549
+ if (!pageVisible) {
2550
+ fixMessage.push(args);
2551
+ if (fixMessage.length > 2) {
2552
+ fixMessage.shift();
2553
+ }
2554
+ return;
2555
+ }
2530
2556
  getRCNotificationInstance(args, ({ prefixCls, instance }) => {
2531
2557
  instance.notice(
2532
- getRCNoticeProps(__spreadProps$f(__spreadValues$l({}, args), { key: target, onClose: callback }), prefixCls)
2558
+ getRCNoticeProps(
2559
+ __spreadProps$f(__spreadValues$l({}, args), { key: target, onClose: callback }),
2560
+ prefixCls
2561
+ )
2533
2562
  );
2534
2563
  });
2535
2564
  });
@@ -2591,19 +2620,186 @@ var __spreadValues$k = (a, b) => {
2591
2620
  return a;
2592
2621
  };
2593
2622
  var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
2623
+ const initialChartState = {
2624
+ pointers: {},
2625
+ resourceData: {},
2626
+ averageData: {}
2627
+ };
2628
+ const chartReducer = (state = initialChartState, action) => {
2629
+ switch (action.type) {
2630
+ case "SET_POINTER" /* SET_POINTER */: {
2631
+ const { uuid, left, text, visible, value } = action.payload;
2632
+ return __spreadProps$e(__spreadValues$k({}, state), {
2633
+ pointers: __spreadProps$e(__spreadValues$k({}, state.pointers), {
2634
+ [uuid]: {
2635
+ left,
2636
+ text,
2637
+ visible,
2638
+ value
2639
+ }
2640
+ })
2641
+ });
2642
+ }
2643
+ case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
2644
+ const { uuid, data } = action.payload;
2645
+ return __spreadProps$e(__spreadValues$k({}, state), {
2646
+ resourceData: __spreadProps$e(__spreadValues$k({}, state.resourceData), {
2647
+ [uuid]: data
2648
+ })
2649
+ });
2650
+ }
2651
+ case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
2652
+ const { uuid, average } = action.payload;
2653
+ return __spreadProps$e(__spreadValues$k({}, state), {
2654
+ averageData: __spreadProps$e(__spreadValues$k({}, state.averageData), {
2655
+ [uuid]: average
2656
+ })
2657
+ });
2658
+ }
2659
+ default: {
2660
+ return state;
2661
+ }
2662
+ }
2663
+ };
2664
+
2665
+ var __defProp$j = Object.defineProperty;
2666
+ var __defProps$d = Object.defineProperties;
2667
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
2668
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2669
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2670
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2671
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2672
+ var __spreadValues$j = (a, b) => {
2673
+ for (var prop in b || (b = {}))
2674
+ if (__hasOwnProp$j.call(b, prop))
2675
+ __defNormalProp$j(a, prop, b[prop]);
2676
+ if (__getOwnPropSymbols$j)
2677
+ for (var prop of __getOwnPropSymbols$j(b)) {
2678
+ if (__propIsEnum$j.call(b, prop))
2679
+ __defNormalProp$j(a, prop, b[prop]);
2680
+ }
2681
+ return a;
2682
+ };
2683
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
2684
+ var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
2685
+ ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
2686
+ ModalActions2["POP_MODAL"] = "POP_MODAL";
2687
+ ModalActions2["REMOVE_MODAL"] = "REMOVE_MODAL";
2688
+ ModalActions2["CLOSE_MODAL"] = "CLOSE_MODAL";
2689
+ return ModalActions2;
2690
+ })(ModalActions || {});
2691
+ const initialModalState = {
2692
+ stack: [],
2693
+ closeId: 0
2694
+ };
2695
+ let MODAL_ID = 1;
2696
+ const modalReducer = (state = initialModalState, action) => {
2697
+ switch (action.type) {
2698
+ case "PUSH_MODAL" /* PUSH_MODAL */:
2699
+ if (state.stack.some(
2700
+ (modal) => modal.component === action.payload.component
2701
+ )) {
2702
+ return state;
2703
+ }
2704
+ return __spreadProps$d(__spreadValues$j({}, state), {
2705
+ stack: state.stack.concat(__spreadProps$d(__spreadValues$j({}, action.payload), {
2706
+ id: MODAL_ID++
2707
+ }))
2708
+ });
2709
+ case "POP_MODAL" /* POP_MODAL */:
2710
+ return __spreadProps$d(__spreadValues$j({}, state), {
2711
+ stack: state.stack.slice(0, -1)
2712
+ });
2713
+ case "REMOVE_MODAL" /* REMOVE_MODAL */:
2714
+ return __spreadProps$d(__spreadValues$j({}, state), {
2715
+ closeId: 0,
2716
+ stack: state.stack.filter((m) => m.id !== action.id)
2717
+ });
2718
+ case "CLOSE_MODAL" /* CLOSE_MODAL */:
2719
+ return __spreadProps$d(__spreadValues$j({}, state), {
2720
+ closeId: action.id
2721
+ });
2722
+ default:
2723
+ return state;
2724
+ }
2725
+ };
2726
+
2727
+ const appReducer = combineReducers({
2728
+ chart: chartReducer,
2729
+ modal: modalReducer
2730
+ });
2731
+ const rootReducer = (state, action) => {
2732
+ if (action.type === "RESET_UI_KIT_STORE") {
2733
+ state = {
2734
+ modal: initialModalState,
2735
+ chart: initialChartState
2736
+ };
2737
+ }
2738
+ return appReducer(state, action);
2739
+ };
2740
+ const UIKitStore = createStore(rootReducer);
2741
+ function pushModal(modal) {
2742
+ UIKitStore.dispatch({
2743
+ type: ModalActions.PUSH_MODAL,
2744
+ payload: modal
2745
+ });
2746
+ }
2747
+ function popModal() {
2748
+ UIKitStore.dispatch({
2749
+ type: ModalActions.POP_MODAL
2750
+ });
2751
+ }
2752
+ function closeModal(id) {
2753
+ UIKitStore.dispatch({
2754
+ type: ModalActions.CLOSE_MODAL,
2755
+ id
2756
+ });
2757
+ }
2758
+
2759
+ const ctx = createContext({
2760
+ store: UIKitStore,
2761
+ storeState: UIKitStore.getState()
2762
+ });
2763
+ const KitStoreProvider = (props) => {
2764
+ const { children } = props;
2765
+ return /* @__PURE__ */ React__default.createElement(Provider, { context: ctx, store: UIKitStore }, children);
2766
+ };
2767
+ const useKitDispatch = createDispatchHook(ctx);
2768
+ const useKitSelector = createSelectorHook(ctx);
2769
+
2770
+ var __defProp$i = Object.defineProperty;
2771
+ var __defProps$c = Object.defineProperties;
2772
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
2773
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2774
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2775
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2776
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2777
+ var __spreadValues$i = (a, b) => {
2778
+ for (var prop in b || (b = {}))
2779
+ if (__hasOwnProp$i.call(b, prop))
2780
+ __defNormalProp$i(a, prop, b[prop]);
2781
+ if (__getOwnPropSymbols$i)
2782
+ for (var prop of __getOwnPropSymbols$i(b)) {
2783
+ if (__propIsEnum$i.call(b, prop))
2784
+ __defNormalProp$i(a, prop, b[prop]);
2785
+ }
2786
+ return a;
2787
+ };
2788
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
2594
2789
  var __objRest$5 = (source, exclude) => {
2595
2790
  var target = {};
2596
2791
  for (var prop in source)
2597
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
2792
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
2598
2793
  target[prop] = source[prop];
2599
- if (source != null && __getOwnPropSymbols$k)
2600
- for (var prop of __getOwnPropSymbols$k(source)) {
2601
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
2794
+ if (source != null && __getOwnPropSymbols$i)
2795
+ for (var prop of __getOwnPropSymbols$i(source)) {
2796
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
2602
2797
  target[prop] = source[prop];
2603
2798
  }
2604
2799
  return target;
2605
2800
  };
2606
2801
  const Modal = (props) => {
2802
+ var _b;
2607
2803
  const { t } = useParrotTranslation();
2608
2804
  const _a = props, {
2609
2805
  error,
@@ -2623,9 +2819,7 @@ const Modal = (props) => {
2623
2819
  width,
2624
2820
  showCancel = true,
2625
2821
  showOk = true,
2626
- afterClose,
2627
- removeModal,
2628
- visible
2822
+ afterClose
2629
2823
  } = _a, restProps = __objRest$5(_a, [
2630
2824
  "error",
2631
2825
  "okText",
@@ -2644,10 +2838,16 @@ const Modal = (props) => {
2644
2838
  "width",
2645
2839
  "showCancel",
2646
2840
  "showOk",
2647
- "afterClose",
2648
- "removeModal",
2649
- "visible"
2841
+ "afterClose"
2650
2842
  ]);
2843
+ const stack = useKitSelector(
2844
+ (state) => state.modal.stack
2845
+ );
2846
+ const id = useKitSelector(
2847
+ (state) => state.modal.closeId
2848
+ );
2849
+ const dispatch = useKitDispatch();
2850
+ const idRef = useRef((_b = stack[stack.length - 1]) == null ? void 0 : _b.id);
2651
2851
  const transitionClass = useRef(fullscreen ? "fullscreen-modal" : "modal-zoom");
2652
2852
  const confirmText = useMemo(() => {
2653
2853
  let text = (okButtonProps == null ? void 0 : okButtonProps.children) || okText;
@@ -2675,7 +2875,7 @@ const Modal = (props) => {
2675
2875
  }
2676
2876
  return /* @__PURE__ */ React__default.createElement(
2677
2877
  Modal$1,
2678
- __spreadProps$e(__spreadValues$k({
2878
+ __spreadProps$c(__spreadValues$i({
2679
2879
  maskClosable,
2680
2880
  className: cs(
2681
2881
  className,
@@ -2695,9 +2895,9 @@ const Modal = (props) => {
2695
2895
  }, restProps), {
2696
2896
  afterClose: () => {
2697
2897
  afterClose == null ? void 0 : afterClose();
2698
- removeModal();
2898
+ dispatch({ type: ModalActions.REMOVE_MODAL, id: idRef.current });
2699
2899
  },
2700
- visible,
2900
+ visible: idRef.current !== id,
2701
2901
  footer: /* @__PURE__ */ React__default.createElement("div", { className: "footer-content" }, footer === void 0 ? /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-left" }, wizard && typeof wizard === "object" && !wizard.disablePrevStep && wizard.step !== 0 && /* @__PURE__ */ React__default.createElement(
2702
2902
  "span",
2703
2903
  {
@@ -2710,7 +2910,7 @@ const Modal = (props) => {
2710
2910
  prevText
2711
2911
  ), error && /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, /* @__PURE__ */ React__default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__default.createElement(
2712
2912
  Button,
2713
- __spreadValues$k({
2913
+ __spreadValues$i({
2714
2914
  type: "quiet",
2715
2915
  onMouseDown: (e) => {
2716
2916
  e.preventDefault();
@@ -2724,12 +2924,12 @@ const Modal = (props) => {
2724
2924
  cancelText
2725
2925
  ), showOk && /* @__PURE__ */ React__default.createElement(
2726
2926
  Button,
2727
- __spreadValues$k({
2927
+ __spreadValues$i({
2728
2928
  onClick: (e) => {
2729
- var _a2, _b;
2929
+ var _a2, _b2;
2730
2930
  onOk == null ? void 0 : onOk(e);
2731
2931
  if (typeof wizard === "object" && wizard.steps[wizard.step]) {
2732
- (_b = (_a2 = wizard.steps[wizard.step]).onOk) == null ? void 0 : _b.call(_a2, e);
2932
+ (_b2 = (_a2 = wizard.steps[wizard.step]).onOk) == null ? void 0 : _b2.call(_a2, e);
2733
2933
  }
2734
2934
  transitionClass.current = fullscreen ? "" : "modal-send";
2735
2935
  },
@@ -2876,76 +3076,77 @@ const Pagination = props => {
2876
3076
  }))));
2877
3077
  };
2878
3078
 
2879
- var __defProp$j = Object.defineProperty;
2880
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
2881
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
2882
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
2883
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2884
- var __spreadValues$j = (a, b) => {
3079
+ var __defProp$h = Object.defineProperty;
3080
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3081
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3082
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3083
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3084
+ var __spreadValues$h = (a, b) => {
2885
3085
  for (var prop in b || (b = {}))
2886
- if (__hasOwnProp$j.call(b, prop))
2887
- __defNormalProp$j(a, prop, b[prop]);
2888
- if (__getOwnPropSymbols$j)
2889
- for (var prop of __getOwnPropSymbols$j(b)) {
2890
- if (__propIsEnum$j.call(b, prop))
2891
- __defNormalProp$j(a, prop, b[prop]);
3086
+ if (__hasOwnProp$h.call(b, prop))
3087
+ __defNormalProp$h(a, prop, b[prop]);
3088
+ if (__getOwnPropSymbols$h)
3089
+ for (var prop of __getOwnPropSymbols$h(b)) {
3090
+ if (__propIsEnum$h.call(b, prop))
3091
+ __defNormalProp$h(a, prop, b[prop]);
2892
3092
  }
2893
3093
  return a;
2894
3094
  };
2895
3095
  const Percent = ({
2896
3096
  rawValue,
2897
3097
  decimals,
3098
+ saturated,
2898
3099
  valueClassName,
2899
3100
  unitClassName,
2900
3101
  emptyProps
2901
3102
  }) => {
2902
3103
  if (isEmpty(rawValue)) {
2903
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$j({}, emptyProps));
3104
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$h({}, emptyProps));
2904
3105
  }
2905
- const { value, unit } = formatPercent(rawValue, decimals);
3106
+ const { value, unit } = formatPercent(rawValue, decimals, saturated);
2906
3107
  return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, unit));
2907
3108
  };
2908
3109
 
2909
- var __defProp$i = Object.defineProperty;
2910
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
2911
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
2912
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
2913
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2914
- var __spreadValues$i = (a, b) => {
3110
+ var __defProp$g = Object.defineProperty;
3111
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3112
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3113
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3114
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3115
+ var __spreadValues$g = (a, b) => {
2915
3116
  for (var prop in b || (b = {}))
2916
- if (__hasOwnProp$i.call(b, prop))
2917
- __defNormalProp$i(a, prop, b[prop]);
2918
- if (__getOwnPropSymbols$i)
2919
- for (var prop of __getOwnPropSymbols$i(b)) {
2920
- if (__propIsEnum$i.call(b, prop))
2921
- __defNormalProp$i(a, prop, b[prop]);
3117
+ if (__hasOwnProp$g.call(b, prop))
3118
+ __defNormalProp$g(a, prop, b[prop]);
3119
+ if (__getOwnPropSymbols$g)
3120
+ for (var prop of __getOwnPropSymbols$g(b)) {
3121
+ if (__propIsEnum$g.call(b, prop))
3122
+ __defNormalProp$g(a, prop, b[prop]);
2922
3123
  }
2923
3124
  return a;
2924
3125
  };
2925
- const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$i({}, props));
3126
+ const Progress = (props) => /* @__PURE__ */ React__default.createElement(Progress$1, __spreadValues$g({}, props));
2926
3127
 
2927
- var __defProp$h = Object.defineProperty;
2928
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
2929
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
2930
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
2931
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, {
3128
+ var __defProp$f = Object.defineProperty;
3129
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3130
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3131
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3132
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
2932
3133
  enumerable: true,
2933
3134
  configurable: true,
2934
3135
  writable: true,
2935
3136
  value
2936
3137
  }) : obj[key] = value;
2937
- var __spreadValues$h = (a, b) => {
2938
- for (var prop in b || (b = {})) if (__hasOwnProp$h.call(b, prop)) __defNormalProp$h(a, prop, b[prop]);
2939
- if (__getOwnPropSymbols$h) for (var prop of __getOwnPropSymbols$h(b)) {
2940
- if (__propIsEnum$h.call(b, prop)) __defNormalProp$h(a, prop, b[prop]);
3138
+ var __spreadValues$f = (a, b) => {
3139
+ for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
3140
+ if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
3141
+ if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
2941
3142
  }
2942
3143
  return a;
2943
3144
  };
2944
3145
  var __objRest$4 = (source, exclude) => {
2945
3146
  var target = {};
2946
- for (var prop in source) if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
2947
- if (source != null && __getOwnPropSymbols$h) for (var prop of __getOwnPropSymbols$h(source)) {
2948
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop)) target[prop] = source[prop];
3147
+ for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3148
+ if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
3149
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
2949
3150
  }
2950
3151
  return target;
2951
3152
  };
@@ -2971,7 +3172,7 @@ const Radio = _a => {
2971
3172
  className: cx("radio-description", Typo.Label.l4_regular)
2972
3173
  }, description));
2973
3174
  }
2974
- return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$h({
3175
+ return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Radio$1, __spreadValues$f({
2975
3176
  className: cx(className, RadioStyle, compact && "compact"),
2976
3177
  checked: checked || false,
2977
3178
  "data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
@@ -2989,7 +3190,7 @@ const RadioGroup = _c => {
2989
3190
  disabled: props.disabled,
2990
3191
  name: props.name
2991
3192
  }
2992
- }, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$h({
3193
+ }, /* @__PURE__ */React__default.createElement(Radio$1.Group, __spreadValues$f({
2993
3194
  className: cx(className, RadioGroupStyle)
2994
3195
  }, props), children ? children : null));
2995
3196
  };
@@ -3045,36 +3246,36 @@ const RadioButton = _e => {
3045
3246
  className: "ant-radio-button-input-label"
3046
3247
  }, typeof children === "string" ? children : ""));
3047
3248
  };
3048
- return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$h({
3249
+ return /* @__PURE__ */React__default.createElement(Radio$1.Button, __spreadValues$f({
3049
3250
  className: cx(className, RadioButtonStyle),
3050
3251
  value: radioButtonValue
3051
3252
  }, props), renderChildren());
3052
3253
  };
3053
3254
 
3054
- var __defProp$g = Object.defineProperty;
3055
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3056
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3057
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3058
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3059
- var __spreadValues$g = (a, b) => {
3255
+ var __defProp$e = Object.defineProperty;
3256
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3257
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3258
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3259
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3260
+ var __spreadValues$e = (a, b) => {
3060
3261
  for (var prop in b || (b = {}))
3061
- if (__hasOwnProp$g.call(b, prop))
3062
- __defNormalProp$g(a, prop, b[prop]);
3063
- if (__getOwnPropSymbols$g)
3064
- for (var prop of __getOwnPropSymbols$g(b)) {
3065
- if (__propIsEnum$g.call(b, prop))
3066
- __defNormalProp$g(a, prop, b[prop]);
3262
+ if (__hasOwnProp$e.call(b, prop))
3263
+ __defNormalProp$e(a, prop, b[prop]);
3264
+ if (__getOwnPropSymbols$e)
3265
+ for (var prop of __getOwnPropSymbols$e(b)) {
3266
+ if (__propIsEnum$e.call(b, prop))
3267
+ __defNormalProp$e(a, prop, b[prop]);
3067
3268
  }
3068
3269
  return a;
3069
3270
  };
3070
3271
  var __objRest$3 = (source, exclude) => {
3071
3272
  var target = {};
3072
3273
  for (var prop in source)
3073
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
3274
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
3074
3275
  target[prop] = source[prop];
3075
- if (source != null && __getOwnPropSymbols$g)
3076
- for (var prop of __getOwnPropSymbols$g(source)) {
3077
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
3276
+ if (source != null && __getOwnPropSymbols$e)
3277
+ for (var prop of __getOwnPropSymbols$e(source)) {
3278
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
3078
3279
  target[prop] = source[prop];
3079
3280
  }
3080
3281
  return target;
@@ -3084,7 +3285,7 @@ const SearchInput = (props) => {
3084
3285
  const onSearch = _.debounce(onChange, debounceWait);
3085
3286
  return /* @__PURE__ */ React__default.createElement(
3086
3287
  Input,
3087
- __spreadValues$g({
3288
+ __spreadValues$e({
3088
3289
  style: { width: 276 },
3089
3290
  prefix: /* @__PURE__ */ React__default.createElement(SearchOutlined, null),
3090
3291
  onChange: (e) => onSearch(e.target.value)
@@ -3092,19 +3293,19 @@ const SearchInput = (props) => {
3092
3293
  );
3093
3294
  };
3094
3295
 
3095
- var __defProp$f = Object.defineProperty;
3096
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3097
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3098
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3099
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3100
- var __spreadValues$f = (a, b) => {
3296
+ var __defProp$d = Object.defineProperty;
3297
+ var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
3298
+ var __hasOwnProp$d = Object.prototype.hasOwnProperty;
3299
+ var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
3300
+ var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3301
+ var __spreadValues$d = (a, b) => {
3101
3302
  for (var prop in b || (b = {}))
3102
- if (__hasOwnProp$f.call(b, prop))
3103
- __defNormalProp$f(a, prop, b[prop]);
3104
- if (__getOwnPropSymbols$f)
3105
- for (var prop of __getOwnPropSymbols$f(b)) {
3106
- if (__propIsEnum$f.call(b, prop))
3107
- __defNormalProp$f(a, prop, b[prop]);
3303
+ if (__hasOwnProp$d.call(b, prop))
3304
+ __defNormalProp$d(a, prop, b[prop]);
3305
+ if (__getOwnPropSymbols$d)
3306
+ for (var prop of __getOwnPropSymbols$d(b)) {
3307
+ if (__propIsEnum$d.call(b, prop))
3308
+ __defNormalProp$d(a, prop, b[prop]);
3108
3309
  }
3109
3310
  return a;
3110
3311
  };
@@ -3118,7 +3319,7 @@ const Second = ({
3118
3319
  }) => {
3119
3320
  const { t } = useParrotTranslation();
3120
3321
  if (isEmpty(rawValue)) {
3121
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$f({}, emptyProps));
3322
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$d({}, emptyProps));
3122
3323
  }
3123
3324
  const { value, unit } = formatSeconds(rawValue, decimals);
3124
3325
  return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
@@ -3200,19 +3401,19 @@ const SimplePagination = props => {
3200
3401
  })));
3201
3402
  };
3202
3403
 
3203
- var __defProp$e = Object.defineProperty;
3204
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3205
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3206
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3207
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3208
- var __spreadValues$e = (a, b) => {
3404
+ var __defProp$c = Object.defineProperty;
3405
+ var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
3406
+ var __hasOwnProp$c = Object.prototype.hasOwnProperty;
3407
+ var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
3408
+ var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3409
+ var __spreadValues$c = (a, b) => {
3209
3410
  for (var prop in b || (b = {}))
3210
- if (__hasOwnProp$e.call(b, prop))
3211
- __defNormalProp$e(a, prop, b[prop]);
3212
- if (__getOwnPropSymbols$e)
3213
- for (var prop of __getOwnPropSymbols$e(b)) {
3214
- if (__propIsEnum$e.call(b, prop))
3215
- __defNormalProp$e(a, prop, b[prop]);
3411
+ if (__hasOwnProp$c.call(b, prop))
3412
+ __defNormalProp$c(a, prop, b[prop]);
3413
+ if (__getOwnPropSymbols$c)
3414
+ for (var prop of __getOwnPropSymbols$c(b)) {
3415
+ if (__propIsEnum$c.call(b, prop))
3416
+ __defNormalProp$c(a, prop, b[prop]);
3216
3417
  }
3217
3418
  return a;
3218
3419
  };
@@ -3224,37 +3425,37 @@ const Speed = ({
3224
3425
  emptyProps
3225
3426
  }) => {
3226
3427
  if (isEmpty(rawValue)) {
3227
- return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$e({}, emptyProps));
3428
+ return /* @__PURE__ */ React__default.createElement(Empty, __spreadValues$c({}, emptyProps));
3228
3429
  }
3229
3430
  const { value, unit } = formatSpeed(rawValue, decimals);
3230
3431
  return /* @__PURE__ */ React__default.createElement("span", null, /* @__PURE__ */ React__default.createElement("span", { className: cx("value", valueClassName) }, value), /* @__PURE__ */ React__default.createElement("span", { className: cx("unit", unitClassName) }, ` ${unit}`));
3231
3432
  };
3232
3433
 
3233
- var __defProp$d = Object.defineProperty;
3234
- var __defProps$d = Object.defineProperties;
3235
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
3236
- var __getOwnPropSymbols$d = Object.getOwnPropertySymbols;
3237
- var __hasOwnProp$d = Object.prototype.hasOwnProperty;
3238
- var __propIsEnum$d = Object.prototype.propertyIsEnumerable;
3239
- var __defNormalProp$d = (obj, key, value) => key in obj ? __defProp$d(obj, key, {
3434
+ var __defProp$b = Object.defineProperty;
3435
+ var __defProps$b = Object.defineProperties;
3436
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
3437
+ var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
3438
+ var __hasOwnProp$b = Object.prototype.hasOwnProperty;
3439
+ var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
3440
+ var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
3240
3441
  enumerable: true,
3241
3442
  configurable: true,
3242
3443
  writable: true,
3243
3444
  value
3244
3445
  }) : obj[key] = value;
3245
- var __spreadValues$d = (a, b) => {
3246
- for (var prop in b || (b = {})) if (__hasOwnProp$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
3247
- if (__getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(b)) {
3248
- if (__propIsEnum$d.call(b, prop)) __defNormalProp$d(a, prop, b[prop]);
3446
+ var __spreadValues$b = (a, b) => {
3447
+ for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
3448
+ if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
3449
+ if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
3249
3450
  }
3250
3451
  return a;
3251
3452
  };
3252
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
3453
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
3253
3454
  var __objRest$2 = (source, exclude) => {
3254
3455
  var target = {};
3255
- for (var prop in source) if (__hasOwnProp$d.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3256
- if (source != null && __getOwnPropSymbols$d) for (var prop of __getOwnPropSymbols$d(source)) {
3257
- if (exclude.indexOf(prop) < 0 && __propIsEnum$d.call(source, prop)) target[prop] = source[prop];
3456
+ for (var prop in source) if (__hasOwnProp$b.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3457
+ if (source != null && __getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(source)) {
3458
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$b.call(source, prop)) target[prop] = source[prop];
3258
3459
  }
3259
3460
  return target;
3260
3461
  };
@@ -3276,40 +3477,40 @@ const Steps = props => {
3276
3477
  }, count) : null, _step.title);
3277
3478
  return /* @__PURE__ */React__default.createElement(StepsContainer, {
3278
3479
  className: containerClassname
3279
- }, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$d(__spreadValues$d({}, stepsProps), {
3480
+ }, /* @__PURE__ */React__default.createElement(Steps$1, __spreadProps$b(__spreadValues$b({}, stepsProps), {
3280
3481
  type: "default"
3281
- }), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$d(__spreadValues$d({
3482
+ }), (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */React__default.createElement(Steps$1.Step, __spreadProps$b(__spreadValues$b({
3282
3483
  key: index
3283
3484
  }, step), {
3284
3485
  title: titleWithCount(step, index + 1)
3285
3486
  }))) : props.children));
3286
3487
  };
3287
3488
 
3288
- var __defProp$c = Object.defineProperty;
3289
- var __defProps$c = Object.defineProperties;
3290
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
3291
- var __getOwnPropSymbols$c = Object.getOwnPropertySymbols;
3292
- var __hasOwnProp$c = Object.prototype.hasOwnProperty;
3293
- var __propIsEnum$c = Object.prototype.propertyIsEnumerable;
3294
- var __defNormalProp$c = (obj, key, value) => key in obj ? __defProp$c(obj, key, {
3489
+ var __defProp$a = Object.defineProperty;
3490
+ var __defProps$a = Object.defineProperties;
3491
+ var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
3492
+ var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
3493
+ var __hasOwnProp$a = Object.prototype.hasOwnProperty;
3494
+ var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
3495
+ var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, {
3295
3496
  enumerable: true,
3296
3497
  configurable: true,
3297
3498
  writable: true,
3298
3499
  value
3299
3500
  }) : obj[key] = value;
3300
- var __spreadValues$c = (a, b) => {
3301
- for (var prop in b || (b = {})) if (__hasOwnProp$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
3302
- if (__getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(b)) {
3303
- if (__propIsEnum$c.call(b, prop)) __defNormalProp$c(a, prop, b[prop]);
3501
+ var __spreadValues$a = (a, b) => {
3502
+ for (var prop in b || (b = {})) if (__hasOwnProp$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
3503
+ if (__getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(b)) {
3504
+ if (__propIsEnum$a.call(b, prop)) __defNormalProp$a(a, prop, b[prop]);
3304
3505
  }
3305
3506
  return a;
3306
3507
  };
3307
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
3508
+ var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
3308
3509
  var __objRest$1 = (source, exclude) => {
3309
3510
  var target = {};
3310
- for (var prop in source) if (__hasOwnProp$c.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3311
- if (source != null && __getOwnPropSymbols$c) for (var prop of __getOwnPropSymbols$c(source)) {
3312
- if (exclude.indexOf(prop) < 0 && __propIsEnum$c.call(source, prop)) target[prop] = source[prop];
3511
+ for (var prop in source) if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3512
+ if (source != null && __getOwnPropSymbols$a) for (var prop of __getOwnPropSymbols$a(source)) {
3513
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop)) target[prop] = source[prop];
3313
3514
  }
3314
3515
  return target;
3315
3516
  };
@@ -3329,7 +3530,7 @@ const Switch = _a => {
3329
3530
  });
3330
3531
  const classNames = [className, SwitchStyle, "switch"];
3331
3532
  if (props.size === "large") classNames.push("ant-switch-large");
3332
- return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$c(__spreadValues$c({
3533
+ return /* @__PURE__ */React__default.createElement(React__default.Fragment, null, /* @__PURE__ */React__default.createElement(Switch$1, __spreadProps$a(__spreadValues$a({
3333
3534
  className: cx(...classNames),
3334
3535
  checked: checked || false
3335
3536
  }, props), {
@@ -3415,26 +3616,26 @@ const ColumnTitle = props => {
3415
3616
  }));
3416
3617
  };
3417
3618
 
3418
- var __defProp$b = Object.defineProperty;
3419
- var __defProps$b = Object.defineProperties;
3420
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
3421
- var __getOwnPropSymbols$b = Object.getOwnPropertySymbols;
3422
- var __hasOwnProp$b = Object.prototype.hasOwnProperty;
3423
- var __propIsEnum$b = Object.prototype.propertyIsEnumerable;
3424
- var __defNormalProp$b = (obj, key, value) => key in obj ? __defProp$b(obj, key, {
3619
+ var __defProp$9 = Object.defineProperty;
3620
+ var __defProps$9 = Object.defineProperties;
3621
+ var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
3622
+ var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
3623
+ var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
3624
+ var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
3625
+ var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, {
3425
3626
  enumerable: true,
3426
3627
  configurable: true,
3427
3628
  writable: true,
3428
3629
  value
3429
3630
  }) : obj[key] = value;
3430
- var __spreadValues$b = (a, b) => {
3431
- for (var prop in b || (b = {})) if (__hasOwnProp$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
3432
- if (__getOwnPropSymbols$b) for (var prop of __getOwnPropSymbols$b(b)) {
3433
- if (__propIsEnum$b.call(b, prop)) __defNormalProp$b(a, prop, b[prop]);
3631
+ var __spreadValues$9 = (a, b) => {
3632
+ for (var prop in b || (b = {})) if (__hasOwnProp$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
3633
+ if (__getOwnPropSymbols$9) for (var prop of __getOwnPropSymbols$9(b)) {
3634
+ if (__propIsEnum$9.call(b, prop)) __defNormalProp$9(a, prop, b[prop]);
3434
3635
  }
3435
3636
  return a;
3436
3637
  };
3437
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
3638
+ var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
3438
3639
  const TableContainerStyle = "t1upn1sz";
3439
3640
  const tableStyleCover = "tta5kd2";
3440
3641
  const Table = props => {
@@ -3455,13 +3656,14 @@ const Table = props => {
3455
3656
  initLoading,
3456
3657
  rowKey,
3457
3658
  wrapper,
3458
- pagination
3659
+ pagination,
3660
+ onRow
3459
3661
  } = props;
3460
3662
  const orderRef = useRef(null);
3461
3663
  const hasScrollBard = useTableBodyHasScrollBar(wrapper, dataSource);
3462
3664
  const _columns = useMemo(() => columns.map(column => {
3463
- const _column = __spreadValues$b({}, column);
3464
- if (_column.sorter) {
3665
+ const _column = __spreadValues$9({}, column);
3666
+ if (_column.sorter && typeof _column.title !== "function") {
3465
3667
  _column.title = /* @__PURE__ */React__default.createElement(ColumnTitle, {
3466
3668
  title: column.title,
3467
3669
  sortOrder: column.sortOrder
@@ -3497,12 +3699,12 @@ const Table = props => {
3497
3699
  onSorterChange == null ? void 0 : onSorterChange(orderRef.current, sorter.columnKey);
3498
3700
  }
3499
3701
  },
3500
- onRow: (record, index) => ({
3702
+ onRow: (record, index) => __spreadValues$9({
3501
3703
  onClick: evt => onRowClick == null ? void 0 : onRowClick(record, index, evt)
3502
- }),
3704
+ }, onRow == null ? void 0 : onRow(record, index)),
3503
3705
  rowClassName,
3504
3706
  scroll,
3505
- rowSelection: rowSelection && __spreadProps$b(__spreadValues$b({}, rowSelection), {
3707
+ rowSelection: rowSelection && __spreadProps$9(__spreadValues$9({}, rowSelection), {
3506
3708
  columnWidth: 32
3507
3709
  }),
3508
3710
  showSorterTooltip: false
@@ -3564,33 +3766,33 @@ const moveItemInArray = (array, fromIndex, toIndex) => {
3564
3766
  return sortArr;
3565
3767
  };
3566
3768
 
3567
- var __defProp$a = Object.defineProperty;
3568
- var __defProps$a = Object.defineProperties;
3569
- var __getOwnPropDescs$a = Object.getOwnPropertyDescriptors;
3570
- var __getOwnPropSymbols$a = Object.getOwnPropertySymbols;
3571
- var __hasOwnProp$a = Object.prototype.hasOwnProperty;
3572
- var __propIsEnum$a = Object.prototype.propertyIsEnumerable;
3573
- var __defNormalProp$a = (obj, key, value) => key in obj ? __defProp$a(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3574
- var __spreadValues$a = (a, b) => {
3769
+ var __defProp$8 = Object.defineProperty;
3770
+ var __defProps$8 = Object.defineProperties;
3771
+ var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
3772
+ var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3773
+ var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3774
+ var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
3775
+ var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3776
+ var __spreadValues$8 = (a, b) => {
3575
3777
  for (var prop in b || (b = {}))
3576
- if (__hasOwnProp$a.call(b, prop))
3577
- __defNormalProp$a(a, prop, b[prop]);
3578
- if (__getOwnPropSymbols$a)
3579
- for (var prop of __getOwnPropSymbols$a(b)) {
3580
- if (__propIsEnum$a.call(b, prop))
3581
- __defNormalProp$a(a, prop, b[prop]);
3778
+ if (__hasOwnProp$8.call(b, prop))
3779
+ __defNormalProp$8(a, prop, b[prop]);
3780
+ if (__getOwnPropSymbols$8)
3781
+ for (var prop of __getOwnPropSymbols$8(b)) {
3782
+ if (__propIsEnum$8.call(b, prop))
3783
+ __defNormalProp$8(a, prop, b[prop]);
3582
3784
  }
3583
3785
  return a;
3584
3786
  };
3585
- var __spreadProps$a = (a, b) => __defProps$a(a, __getOwnPropDescs$a(b));
3787
+ var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
3586
3788
  var __objRest = (source, exclude) => {
3587
3789
  var target = {};
3588
3790
  for (var prop in source)
3589
- if (__hasOwnProp$a.call(source, prop) && exclude.indexOf(prop) < 0)
3791
+ if (__hasOwnProp$8.call(source, prop) && exclude.indexOf(prop) < 0)
3590
3792
  target[prop] = source[prop];
3591
- if (source != null && __getOwnPropSymbols$a)
3592
- for (var prop of __getOwnPropSymbols$a(source)) {
3593
- if (exclude.indexOf(prop) < 0 && __propIsEnum$a.call(source, prop))
3793
+ if (source != null && __getOwnPropSymbols$8)
3794
+ for (var prop of __getOwnPropSymbols$8(source)) {
3795
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$8.call(source, prop))
3594
3796
  target[prop] = source[prop];
3595
3797
  }
3596
3798
  return target;
@@ -3631,9 +3833,9 @@ const AddRowButton = (props) => {
3631
3833
  if (!columns.length) {
3632
3834
  return null;
3633
3835
  }
3634
- return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$a({}, props)) : /* @__PURE__ */ React__default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__default.createElement(
3836
+ return CustomizedButton ? /* @__PURE__ */ React__default.createElement(CustomizedButton, __spreadValues$8({}, props)) : /* @__PURE__ */ React__default.createElement(AddRowButtonWrapper, { className }, /* @__PURE__ */ React__default.createElement(
3635
3837
  Button,
3636
- __spreadProps$a(__spreadValues$a({}, restButtonProps), {
3838
+ __spreadProps$8(__spreadValues$8({}, restButtonProps), {
3637
3839
  type: restButtonProps.type || "ordinary",
3638
3840
  size: restButtonProps.size || "small",
3639
3841
  icon: restButtonProps.icon || /* @__PURE__ */ React__default.createElement(PlusOutlined, null),
@@ -3728,25 +3930,25 @@ const CheckboxColumnBodyCell = ({ data, column, index, onChange }) => {
3728
3930
  );
3729
3931
  };
3730
3932
 
3731
- var __defProp$9 = Object.defineProperty;
3732
- var __defProps$9 = Object.defineProperties;
3733
- var __getOwnPropDescs$9 = Object.getOwnPropertyDescriptors;
3734
- var __getOwnPropSymbols$9 = Object.getOwnPropertySymbols;
3735
- var __hasOwnProp$9 = Object.prototype.hasOwnProperty;
3736
- var __propIsEnum$9 = Object.prototype.propertyIsEnumerable;
3737
- var __defNormalProp$9 = (obj, key, value) => key in obj ? __defProp$9(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3738
- var __spreadValues$9 = (a, b) => {
3933
+ var __defProp$7 = Object.defineProperty;
3934
+ var __defProps$7 = Object.defineProperties;
3935
+ var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
3936
+ var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
3937
+ var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
3938
+ var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
3939
+ var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3940
+ var __spreadValues$7 = (a, b) => {
3739
3941
  for (var prop in b || (b = {}))
3740
- if (__hasOwnProp$9.call(b, prop))
3741
- __defNormalProp$9(a, prop, b[prop]);
3742
- if (__getOwnPropSymbols$9)
3743
- for (var prop of __getOwnPropSymbols$9(b)) {
3744
- if (__propIsEnum$9.call(b, prop))
3745
- __defNormalProp$9(a, prop, b[prop]);
3942
+ if (__hasOwnProp$7.call(b, prop))
3943
+ __defNormalProp$7(a, prop, b[prop]);
3944
+ if (__getOwnPropSymbols$7)
3945
+ for (var prop of __getOwnPropSymbols$7(b)) {
3946
+ if (__propIsEnum$7.call(b, prop))
3947
+ __defNormalProp$7(a, prop, b[prop]);
3746
3948
  }
3747
3949
  return a;
3748
3950
  };
3749
- var __spreadProps$9 = (a, b) => __defProps$9(a, __getOwnPropDescs$9(b));
3951
+ var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
3750
3952
  const InputPassword = (props) => {
3751
3953
  const [showPassword, setShowPassword] = useState(false);
3752
3954
  useEffect(() => {
@@ -3762,7 +3964,7 @@ const InputPassword = (props) => {
3762
3964
  const inputType = showPassword ? "text" : "password";
3763
3965
  return /* @__PURE__ */ React__default.createElement(
3764
3966
  Input$1,
3765
- __spreadProps$9(__spreadValues$9({}, props), {
3967
+ __spreadProps$7(__spreadValues$7({}, props), {
3766
3968
  type: inputType,
3767
3969
  suffix: showPassword ? /* @__PURE__ */ React__default.createElement(
3768
3970
  EyeOutlined,
@@ -3782,9 +3984,9 @@ const InputPassword = (props) => {
3782
3984
  };
3783
3985
  const CustomInput = (props) => {
3784
3986
  if (props.type === "password") {
3785
- return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$9({}, props));
3987
+ return /* @__PURE__ */ React__default.createElement(InputPassword, __spreadValues$7({}, props));
3786
3988
  }
3787
- return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$9({}, props));
3989
+ return /* @__PURE__ */ React__default.createElement(Input$1, __spreadValues$7({}, props));
3788
3990
  };
3789
3991
  const InputColumnHeaderCell = ({ disabled, column, onChange, onBlur, onVisibleChange }) => {
3790
3992
  const _onChange = (e) => {
@@ -3906,25 +4108,25 @@ var ValidateTriggerType = /* @__PURE__ */ ((ValidateTriggerType2) => {
3906
4108
  return ValidateTriggerType2;
3907
4109
  })(ValidateTriggerType || {});
3908
4110
 
3909
- var __defProp$8 = Object.defineProperty;
3910
- var __defProps$8 = Object.defineProperties;
3911
- var __getOwnPropDescs$8 = Object.getOwnPropertyDescriptors;
3912
- var __getOwnPropSymbols$8 = Object.getOwnPropertySymbols;
3913
- var __hasOwnProp$8 = Object.prototype.hasOwnProperty;
3914
- var __propIsEnum$8 = Object.prototype.propertyIsEnumerable;
3915
- var __defNormalProp$8 = (obj, key, value) => key in obj ? __defProp$8(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3916
- var __spreadValues$8 = (a, b) => {
4111
+ var __defProp$6 = Object.defineProperty;
4112
+ var __defProps$6 = Object.defineProperties;
4113
+ var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
4114
+ var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
4115
+ var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
4116
+ var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
4117
+ var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4118
+ var __spreadValues$6 = (a, b) => {
3917
4119
  for (var prop in b || (b = {}))
3918
- if (__hasOwnProp$8.call(b, prop))
3919
- __defNormalProp$8(a, prop, b[prop]);
3920
- if (__getOwnPropSymbols$8)
3921
- for (var prop of __getOwnPropSymbols$8(b)) {
3922
- if (__propIsEnum$8.call(b, prop))
3923
- __defNormalProp$8(a, prop, b[prop]);
4120
+ if (__hasOwnProp$6.call(b, prop))
4121
+ __defNormalProp$6(a, prop, b[prop]);
4122
+ if (__getOwnPropSymbols$6)
4123
+ for (var prop of __getOwnPropSymbols$6(b)) {
4124
+ if (__propIsEnum$6.call(b, prop))
4125
+ __defNormalProp$6(a, prop, b[prop]);
3924
4126
  }
3925
4127
  return a;
3926
4128
  };
3927
- var __spreadProps$8 = (a, b) => __defProps$8(a, __getOwnPropDescs$8(b));
4129
+ var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
3928
4130
  const TableFormBodyCell = (props) => {
3929
4131
  const {
3930
4132
  column,
@@ -3946,7 +4148,7 @@ const TableFormBodyCell = (props) => {
3946
4148
  (currentValue) => {
3947
4149
  var _a;
3948
4150
  const value = currentValue || data[rowIndex][column.key];
3949
- const rowData = __spreadProps$8(__spreadValues$8({}, data[rowIndex]), { [column.key]: value });
4151
+ const rowData = __spreadProps$6(__spreadValues$6({}, data[rowIndex]), { [column.key]: value });
3950
4152
  const rowValidateRes = getRowValidateResult(rowData);
3951
4153
  if (rowValidateRes) {
3952
4154
  return;
@@ -3969,7 +4171,7 @@ const TableFormBodyCell = (props) => {
3969
4171
  }, [validateAll, triggerValidate]);
3970
4172
  const _onChange = (value, data2) => {
3971
4173
  const newData = data2.map(
3972
- (row, i) => i === rowIndex ? __spreadProps$8(__spreadValues$8({}, row), { [column.key]: value }) : row
4174
+ (row, i) => i === rowIndex ? __spreadProps$6(__spreadValues$6({}, row), { [column.key]: value }) : row
3973
4175
  );
3974
4176
  onChange == null ? void 0 : onChange(newData, rowIndex, column.key);
3975
4177
  if (validateTriggerType === ValidateTriggerType.Normal && isTouched.current || validateTriggerType === ValidateTriggerType.Aggressive) {
@@ -4046,25 +4248,25 @@ const TableFormBodyCell = (props) => {
4046
4248
  );
4047
4249
  };
4048
4250
 
4049
- var __defProp$7 = Object.defineProperty;
4050
- var __defProps$7 = Object.defineProperties;
4051
- var __getOwnPropDescs$7 = Object.getOwnPropertyDescriptors;
4052
- var __getOwnPropSymbols$7 = Object.getOwnPropertySymbols;
4053
- var __hasOwnProp$7 = Object.prototype.hasOwnProperty;
4054
- var __propIsEnum$7 = Object.prototype.propertyIsEnumerable;
4055
- var __defNormalProp$7 = (obj, key, value) => key in obj ? __defProp$7(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4056
- var __spreadValues$7 = (a, b) => {
4251
+ var __defProp$5 = Object.defineProperty;
4252
+ var __defProps$5 = Object.defineProperties;
4253
+ var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
4254
+ var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
4255
+ var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
4256
+ var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
4257
+ var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4258
+ var __spreadValues$5 = (a, b) => {
4057
4259
  for (var prop in b || (b = {}))
4058
- if (__hasOwnProp$7.call(b, prop))
4059
- __defNormalProp$7(a, prop, b[prop]);
4060
- if (__getOwnPropSymbols$7)
4061
- for (var prop of __getOwnPropSymbols$7(b)) {
4062
- if (__propIsEnum$7.call(b, prop))
4063
- __defNormalProp$7(a, prop, b[prop]);
4260
+ if (__hasOwnProp$5.call(b, prop))
4261
+ __defNormalProp$5(a, prop, b[prop]);
4262
+ if (__getOwnPropSymbols$5)
4263
+ for (var prop of __getOwnPropSymbols$5(b)) {
4264
+ if (__propIsEnum$5.call(b, prop))
4265
+ __defNormalProp$5(a, prop, b[prop]);
4064
4266
  }
4065
4267
  return a;
4066
4268
  };
4067
- var __spreadProps$7 = (a, b) => __defProps$7(a, __getOwnPropDescs$7(b));
4269
+ var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
4068
4270
  const TableFormRow = (props) => {
4069
4271
  const {
4070
4272
  data,
@@ -4147,7 +4349,7 @@ const TableFormRow = (props) => {
4147
4349
  );
4148
4350
  });
4149
4351
  const DraggableHandle = useMemo(
4150
- () => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$7({}, provided.dragHandleProps), /* @__PURE__ */ React__default.createElement(
4352
+ () => draggable && provided ? /* @__PURE__ */ React__default.createElement(DraggableHandleWrapper, __spreadValues$5({}, provided.dragHandleProps), /* @__PURE__ */ React__default.createElement(
4151
4353
  Icon,
4152
4354
  {
4153
4355
  src: HandlePoint816SecondaryIcon,
@@ -4196,7 +4398,7 @@ const TableFormBodyRows = memo((props) => {
4196
4398
  );
4197
4399
  return draggable ? /* @__PURE__ */ React__default.createElement(DragDropContext, { onDragEnd }, /* @__PURE__ */ React__default.createElement(Droppable, { droppableId: "droppable" }, (provided) => /* @__PURE__ */ React__default.createElement(
4198
4400
  "div",
4199
- __spreadValues$7({
4401
+ __spreadValues$5({
4200
4402
  className: "draggable-container",
4201
4403
  ref: provided.innerRef
4202
4404
  }, provided.droppableProps),
@@ -4207,9 +4409,9 @@ const TableFormBodyRows = memo((props) => {
4207
4409
  key: `draggable-id-${i}`,
4208
4410
  index: i
4209
4411
  },
4210
- (provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$7({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__default.createElement(
4412
+ (provided2, snapshot) => /* @__PURE__ */ React__default.createElement("div", __spreadValues$5({ ref: provided2.innerRef }, provided2.draggableProps), /* @__PURE__ */ React__default.createElement(
4211
4413
  TableFormRow,
4212
- __spreadProps$7(__spreadValues$7({}, props), {
4414
+ __spreadProps$5(__spreadValues$5({}, props), {
4213
4415
  rowIndex: i,
4214
4416
  provided: provided2,
4215
4417
  snapshot
@@ -4217,28 +4419,28 @@ const TableFormBodyRows = memo((props) => {
4217
4419
  ))
4218
4420
  )),
4219
4421
  provided.placeholder
4220
- ))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$7(__spreadValues$7({}, props), { rowIndex: i, key: `table-row-${i}` }))));
4422
+ ))) : /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, data.map((_d, i) => /* @__PURE__ */ React__default.createElement(TableFormRow, __spreadProps$5(__spreadValues$5({}, props), { rowIndex: i, key: `table-row-${i}` }))));
4221
4423
  });
4222
4424
 
4223
- var __defProp$6 = Object.defineProperty;
4224
- var __defProps$6 = Object.defineProperties;
4225
- var __getOwnPropDescs$6 = Object.getOwnPropertyDescriptors;
4226
- var __getOwnPropSymbols$6 = Object.getOwnPropertySymbols;
4227
- var __hasOwnProp$6 = Object.prototype.hasOwnProperty;
4228
- var __propIsEnum$6 = Object.prototype.propertyIsEnumerable;
4229
- var __defNormalProp$6 = (obj, key, value) => key in obj ? __defProp$6(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4230
- var __spreadValues$6 = (a, b) => {
4425
+ var __defProp$4 = Object.defineProperty;
4426
+ var __defProps$4 = Object.defineProperties;
4427
+ var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
4428
+ var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
4429
+ var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
4430
+ var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
4431
+ var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4432
+ var __spreadValues$4 = (a, b) => {
4231
4433
  for (var prop in b || (b = {}))
4232
- if (__hasOwnProp$6.call(b, prop))
4233
- __defNormalProp$6(a, prop, b[prop]);
4234
- if (__getOwnPropSymbols$6)
4235
- for (var prop of __getOwnPropSymbols$6(b)) {
4236
- if (__propIsEnum$6.call(b, prop))
4237
- __defNormalProp$6(a, prop, b[prop]);
4434
+ if (__hasOwnProp$4.call(b, prop))
4435
+ __defNormalProp$4(a, prop, b[prop]);
4436
+ if (__getOwnPropSymbols$4)
4437
+ for (var prop of __getOwnPropSymbols$4(b)) {
4438
+ if (__propIsEnum$4.call(b, prop))
4439
+ __defNormalProp$4(a, prop, b[prop]);
4238
4440
  }
4239
4441
  return a;
4240
4442
  };
4241
- var __spreadProps$6 = (a, b) => __defProps$6(a, __getOwnPropDescs$6(b));
4443
+ var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
4242
4444
  const BatchInputListHeaderCell = (props) => {
4243
4445
  const { column, disabled, data, disableBatchFilling, onBlur, onChange } = props;
4244
4446
  const [errMsg, setErrMsg] = useState();
@@ -4250,7 +4452,7 @@ const BatchInputListHeaderCell = (props) => {
4250
4452
  setErrMsg(err || void 0);
4251
4453
  const shouldAutoIncrease = column.type !== "password" && column.autoIncrease;
4252
4454
  const newData = data.map((cell, rowIndex) => {
4253
- return __spreadProps$6(__spreadValues$6({}, cell), {
4455
+ return __spreadProps$4(__spreadValues$4({}, cell), {
4254
4456
  [column.key]: shouldAutoIncrease && typeof value === "string" ? increaseLastNumber(value, rowIndex) : value
4255
4457
  });
4256
4458
  });
@@ -4267,7 +4469,7 @@ const BatchInputListHeaderCell = (props) => {
4267
4469
  const CellComponent = ColumnHeaderImpls[column.type];
4268
4470
  return /* @__PURE__ */ React__default.createElement(
4269
4471
  CellComponent,
4270
- __spreadProps$6(__spreadValues$6({}, props), {
4472
+ __spreadProps$4(__spreadValues$4({}, props), {
4271
4473
  column,
4272
4474
  onChange: headerOnChange,
4273
4475
  onBlur: _onBlur
@@ -4302,25 +4504,25 @@ const BatchInputListHeaderCell = (props) => {
4302
4504
  );
4303
4505
  };
4304
4506
 
4305
- var __defProp$5 = Object.defineProperty;
4306
- var __defProps$5 = Object.defineProperties;
4307
- var __getOwnPropDescs$5 = Object.getOwnPropertyDescriptors;
4308
- var __getOwnPropSymbols$5 = Object.getOwnPropertySymbols;
4309
- var __hasOwnProp$5 = Object.prototype.hasOwnProperty;
4310
- var __propIsEnum$5 = Object.prototype.propertyIsEnumerable;
4311
- var __defNormalProp$5 = (obj, key, value) => key in obj ? __defProp$5(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4312
- var __spreadValues$5 = (a, b) => {
4507
+ var __defProp$3 = Object.defineProperty;
4508
+ var __defProps$3 = Object.defineProperties;
4509
+ var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
4510
+ var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4511
+ var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4512
+ var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4513
+ var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4514
+ var __spreadValues$3 = (a, b) => {
4313
4515
  for (var prop in b || (b = {}))
4314
- if (__hasOwnProp$5.call(b, prop))
4315
- __defNormalProp$5(a, prop, b[prop]);
4316
- if (__getOwnPropSymbols$5)
4317
- for (var prop of __getOwnPropSymbols$5(b)) {
4318
- if (__propIsEnum$5.call(b, prop))
4319
- __defNormalProp$5(a, prop, b[prop]);
4516
+ if (__hasOwnProp$3.call(b, prop))
4517
+ __defNormalProp$3(a, prop, b[prop]);
4518
+ if (__getOwnPropSymbols$3)
4519
+ for (var prop of __getOwnPropSymbols$3(b)) {
4520
+ if (__propIsEnum$3.call(b, prop))
4521
+ __defNormalProp$3(a, prop, b[prop]);
4320
4522
  }
4321
4523
  return a;
4322
4524
  };
4323
- var __spreadProps$5 = (a, b) => __defProps$5(a, __getOwnPropDescs$5(b));
4525
+ var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
4324
4526
  const DEFAULT_ROW_COUNT = 3;
4325
4527
  const TableForm = React__default.forwardRef(
4326
4528
  ({
@@ -4377,7 +4579,7 @@ const TableForm = React__default.forwardRef(
4377
4579
  (key, error) => {
4378
4580
  if (error) {
4379
4581
  const newData = latestData.map((cell) => {
4380
- return __spreadProps$5(__spreadValues$5({}, cell), {
4582
+ return __spreadProps$3(__spreadValues$3({}, cell), {
4381
4583
  [key]: ""
4382
4584
  });
4383
4585
  });
@@ -4755,172 +4957,6 @@ const FailedLoad = props => {
4755
4957
  }, refetchText || t("common.retry")));
4756
4958
  };
4757
4959
 
4758
- var __defProp$4 = Object.defineProperty;
4759
- var __defProps$4 = Object.defineProperties;
4760
- var __getOwnPropDescs$4 = Object.getOwnPropertyDescriptors;
4761
- var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
4762
- var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
4763
- var __propIsEnum$4 = Object.prototype.propertyIsEnumerable;
4764
- var __defNormalProp$4 = (obj, key, value) => key in obj ? __defProp$4(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4765
- var __spreadValues$4 = (a, b) => {
4766
- for (var prop in b || (b = {}))
4767
- if (__hasOwnProp$4.call(b, prop))
4768
- __defNormalProp$4(a, prop, b[prop]);
4769
- if (__getOwnPropSymbols$4)
4770
- for (var prop of __getOwnPropSymbols$4(b)) {
4771
- if (__propIsEnum$4.call(b, prop))
4772
- __defNormalProp$4(a, prop, b[prop]);
4773
- }
4774
- return a;
4775
- };
4776
- var __spreadProps$4 = (a, b) => __defProps$4(a, __getOwnPropDescs$4(b));
4777
- const initialChartState = {
4778
- pointers: {},
4779
- resourceData: {},
4780
- averageData: {}
4781
- };
4782
- const chartReducer = (state = initialChartState, action) => {
4783
- switch (action.type) {
4784
- case "SET_POINTER" /* SET_POINTER */: {
4785
- const { uuid, left, text, visible, value } = action.payload;
4786
- return __spreadProps$4(__spreadValues$4({}, state), {
4787
- pointers: __spreadProps$4(__spreadValues$4({}, state.pointers), {
4788
- [uuid]: {
4789
- left,
4790
- text,
4791
- visible,
4792
- value
4793
- }
4794
- })
4795
- });
4796
- }
4797
- case "SET_RESOURCE_DATA" /* SET_RESOURCE_DATA */: {
4798
- const { uuid, data } = action.payload;
4799
- return __spreadProps$4(__spreadValues$4({}, state), {
4800
- resourceData: __spreadProps$4(__spreadValues$4({}, state.resourceData), {
4801
- [uuid]: data
4802
- })
4803
- });
4804
- }
4805
- case "SET_AVERAGE_DATA" /* SET_AVERAGE_DATA */: {
4806
- const { uuid, average } = action.payload;
4807
- return __spreadProps$4(__spreadValues$4({}, state), {
4808
- averageData: __spreadProps$4(__spreadValues$4({}, state.averageData), {
4809
- [uuid]: average
4810
- })
4811
- });
4812
- }
4813
- default: {
4814
- return state;
4815
- }
4816
- }
4817
- };
4818
-
4819
- var __defProp$3 = Object.defineProperty;
4820
- var __defProps$3 = Object.defineProperties;
4821
- var __getOwnPropDescs$3 = Object.getOwnPropertyDescriptors;
4822
- var __getOwnPropSymbols$3 = Object.getOwnPropertySymbols;
4823
- var __hasOwnProp$3 = Object.prototype.hasOwnProperty;
4824
- var __propIsEnum$3 = Object.prototype.propertyIsEnumerable;
4825
- var __defNormalProp$3 = (obj, key, value) => key in obj ? __defProp$3(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
4826
- var __spreadValues$3 = (a, b) => {
4827
- for (var prop in b || (b = {}))
4828
- if (__hasOwnProp$3.call(b, prop))
4829
- __defNormalProp$3(a, prop, b[prop]);
4830
- if (__getOwnPropSymbols$3)
4831
- for (var prop of __getOwnPropSymbols$3(b)) {
4832
- if (__propIsEnum$3.call(b, prop))
4833
- __defNormalProp$3(a, prop, b[prop]);
4834
- }
4835
- return a;
4836
- };
4837
- var __spreadProps$3 = (a, b) => __defProps$3(a, __getOwnPropDescs$3(b));
4838
- var ModalActions = /* @__PURE__ */ ((ModalActions2) => {
4839
- ModalActions2["PUSH_MODAL"] = "PUSH_MODAL";
4840
- ModalActions2["POP_MODAL"] = "POP_MODAL";
4841
- ModalActions2["REMOVE_MODAL"] = "REMOVE_MODAL";
4842
- ModalActions2["CLOSE_MODAL"] = "CLOSE_MODAL";
4843
- return ModalActions2;
4844
- })(ModalActions || {});
4845
- const initialModalState = {
4846
- stack: [],
4847
- closeId: 0
4848
- };
4849
- let MODAL_ID = 1;
4850
- const modalReducer = (state = initialModalState, action) => {
4851
- switch (action.type) {
4852
- case "PUSH_MODAL" /* PUSH_MODAL */:
4853
- if (state.stack.some(
4854
- (modal) => modal.component === action.payload.component
4855
- )) {
4856
- return state;
4857
- }
4858
- return __spreadProps$3(__spreadValues$3({}, state), {
4859
- stack: state.stack.concat(__spreadProps$3(__spreadValues$3({}, action.payload), {
4860
- id: MODAL_ID++
4861
- }))
4862
- });
4863
- case "POP_MODAL" /* POP_MODAL */:
4864
- return __spreadProps$3(__spreadValues$3({}, state), {
4865
- stack: state.stack.slice(0, -1)
4866
- });
4867
- case "REMOVE_MODAL" /* REMOVE_MODAL */:
4868
- return __spreadProps$3(__spreadValues$3({}, state), {
4869
- closeId: 0,
4870
- stack: state.stack.filter((m) => m.id !== action.id)
4871
- });
4872
- case "CLOSE_MODAL" /* CLOSE_MODAL */:
4873
- return __spreadProps$3(__spreadValues$3({}, state), {
4874
- closeId: action.id
4875
- });
4876
- default:
4877
- return state;
4878
- }
4879
- };
4880
-
4881
- const appReducer = combineReducers({
4882
- chart: chartReducer,
4883
- modal: modalReducer
4884
- });
4885
- const rootReducer = (state, action) => {
4886
- if (action.type === "RESET_UI_KIT_STORE") {
4887
- state = {
4888
- modal: initialModalState,
4889
- chart: initialChartState
4890
- };
4891
- }
4892
- return appReducer(state, action);
4893
- };
4894
- const UIKitStore = createStore(rootReducer);
4895
- function pushModal(modal) {
4896
- UIKitStore.dispatch({
4897
- type: ModalActions.PUSH_MODAL,
4898
- payload: modal
4899
- });
4900
- }
4901
- function popModal() {
4902
- UIKitStore.dispatch({
4903
- type: ModalActions.POP_MODAL
4904
- });
4905
- }
4906
- function closeModal(id) {
4907
- UIKitStore.dispatch({
4908
- type: ModalActions.CLOSE_MODAL,
4909
- id
4910
- });
4911
- }
4912
-
4913
- const ctx = createContext({
4914
- store: UIKitStore,
4915
- storeState: UIKitStore.getState()
4916
- });
4917
- const KitStoreProvider = (props) => {
4918
- const { children } = props;
4919
- return /* @__PURE__ */ React__default.createElement(Provider, { context: ctx, store: UIKitStore }, children);
4920
- };
4921
- const useKitDispatch = createDispatchHook(ctx);
4922
- const useKitSelector = createSelectorHook(ctx);
4923
-
4924
4960
  var __defProp$2 = Object.defineProperty;
4925
4961
  var __defProps$2 = Object.defineProperties;
4926
4962
  var __getOwnPropDescs$2 = Object.getOwnPropertyDescriptors;
@@ -5093,10 +5129,6 @@ const ModalStack = () => {
5093
5129
  const stack = useKitSelector(
5094
5130
  (state) => state.modal.stack
5095
5131
  );
5096
- const dispatch = useKitDispatch();
5097
- const closeId = useKitSelector(
5098
- (state) => state.modal.closeId
5099
- );
5100
5132
  return /* @__PURE__ */ React__default.createElement(React__default.Fragment, null, stack.map((modal) => /* @__PURE__ */ React__default.createElement(
5101
5133
  modal.component,
5102
5134
  __spreadProps$1(__spreadValues$1({}, modal.props), {
@@ -5108,11 +5140,7 @@ const ModalStack = () => {
5108
5140
  }
5109
5141
  closeModal(modal.id);
5110
5142
  },
5111
- key: modal.id,
5112
- removeModal: () => {
5113
- dispatch({ type: ModalActions.REMOVE_MODAL, id: modal.id });
5114
- },
5115
- visible: closeId !== modal.id
5143
+ key: modal.id
5116
5144
  })
5117
5145
  )));
5118
5146
  };
@@ -5183,6 +5211,4 @@ const useUIKit = () => {
5183
5211
  return useContext(kitContext);
5184
5212
  };
5185
5213
 
5186
- initParrotI18n();
5187
-
5188
5214
  export { Architecture, BaseIcon, Button, ButtonStyle, FailedLoad, FullView, Icon, InputTagItem, KitStoreProvider, ModalActions, ModalStack, Typo, UIKitProvider, UIKitStore, ValidateTriggerType, WizardBody, antdKit, closeModal, createBatchMessageMethods, kitContext, popModal, pushModal, tableStyleCover, tickFormatter, useElementsSize, useKitDispatch, useKitSelector, useUIKit };