@cloudtower/eagle 0.22.7 → 0.22.10

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,13 +1,13 @@
1
- import { Button as Button$1, Checkbox as Checkbox$1, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Modal as Modal$1, Steps, Radio as Radio$1, Table as Table$1, Tooltip as Tooltip$1, Tag, Dropdown, Divider, List, Menu, AutoComplete, Space } from 'antd';
1
+ import { Alert as Alert$1, Button as Button$1, Checkbox as Checkbox$1, DatePicker, Select as Select$1, InputNumber as InputNumber$1, Input as Input$1, TimePicker as TimePicker$1, Modal as Modal$1, Steps, Dropdown, Menu, Radio as Radio$1, Table as Table$1, Tag, Tooltip as Tooltip$1, Row, Col, Divider, List, Layout, AutoComplete, Space } from 'antd';
2
+ export { Col, Row } from 'antd';
2
3
  import cs from 'classnames';
3
- import React, { useState, Fragment, useMemo, useRef, useEffect, useCallback, useLayoutEffect, createContext, useContext } from 'react';
4
- import moment from 'moment';
4
+ import React, { useState, useMemo, Fragment, useRef, useEffect, useCallback, useLayoutEffect, createContext, useContext } from 'react';
5
5
  import _, { sortBy, uniqBy } from 'lodash';
6
+ import moment from 'moment';
6
7
  import { findDOMNode } from 'react-dom';
7
8
  import { isElement } from 'react-is';
8
9
  import { styled } from '@linaria/react';
9
10
  import { CloseCircleFilled, CheckOutlined, SearchOutlined } from '@ant-design/icons';
10
- import { createHashHistory } from 'history';
11
11
  import { parrotI18n } from '@cloudtower/parrot';
12
12
  export * from '@cloudtower/parrot';
13
13
  import { combineReducers, createStore } from 'redux';
@@ -19,6 +19,304 @@ import { withTranslation } from 'react-i18next';
19
19
  import dayjs from 'dayjs';
20
20
  import 'recharts';
21
21
 
22
+ const SECOND = 1;
23
+ const MINUTE = 60 * SECOND;
24
+ const HOUR = 60 * MINUTE;
25
+ const DAY = 24 * HOUR;
26
+
27
+ const EMPTY_FUNCTION = () => {
28
+ };
29
+
30
+ function getSize(el) {
31
+ if (!el) {
32
+ return {
33
+ width: 0,
34
+ height: 0
35
+ };
36
+ }
37
+ return {
38
+ width: el.offsetWidth,
39
+ height: el.offsetHeight
40
+ };
41
+ }
42
+
43
+ var img$9 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%230080FF'/%3e%3c/svg%3e";
44
+
45
+ var img$8 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4.11092 7.0535C3.91566 6.85824 3.91566 6.54166 4.11092 6.3464C4.30619 6.15114 4.62277 6.15114 4.81803 6.3464L8.00001 9.52838L8.35226 9.17613L8.35356 9.17482L11.182 6.3464C11.3773 6.15114 11.6938 6.15114 11.8891 6.3464C12.0844 6.54166 12.0844 6.85824 11.8891 7.0535L10.4408 8.50184C10.4288 8.51384 10.4166 8.52604 10.4042 8.53843L9.13138 9.81122C9.11899 9.82361 9.1068 9.83581 9.09479 9.84781L9.06067 9.88193L9.057 9.88556C8.70964 10.2323 8.5226 10.41 8.30903 10.4794C8.10819 10.5447 7.89184 10.5447 7.691 10.4794C7.47748 10.4101 7.29048 10.2324 6.94327 9.88581L6.93935 9.88193L4.11092 7.0535Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
46
+
47
+ var img$7 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.06067 3.75725C9.45119 3.36672 10.0844 3.36672 10.4749 3.75725C10.8654 4.14777 10.8654 4.78094 10.4749 5.17146L7.64645 7.99989L10.4749 10.8283C10.8654 11.2188 10.8654 11.852 10.4749 12.2425C10.0844 12.6331 9.45119 12.6331 9.06067 12.2425L5.9494 9.13126C5.55338 8.73524 5.35537 8.53723 5.28118 8.30891C5.21592 8.10806 5.21592 7.89172 5.28118 7.69087C5.35537 7.46254 5.55338 7.26454 5.9494 6.86852L9.06067 3.75725Z' fill='%230080FF'/%3e%3c/svg%3e";
48
+
49
+ var img$6 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.05028 9.4142L6.86865 5.59582C6.87513 5.58934 6.88156 5.58292 6.88793 5.57655C7.27116 5.19336 7.46641 5.00058 7.69101 4.92761C7.89185 4.86235 8.1082 4.86235 8.30904 4.92761C8.53737 5.00179 8.73538 5.1998 9.1314 5.59582L12.9498 9.4142C13.3403 9.80472 13.3403 10.4379 12.9498 10.8284C12.5592 11.2189 11.9261 11.2189 11.5356 10.8284L8.00003 7.29288L4.46449 10.8284C4.07397 11.2189 3.4408 11.2189 3.05028 10.8284C2.65975 10.4379 2.65975 9.80472 3.05028 9.4142Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
50
+
51
+ var img$5 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM11.134 6.56615C11.3346 6.28527 11.2696 5.89493 10.9887 5.6943C10.7078 5.49367 10.3175 5.55872 10.1168 5.83961L7.26389 9.83372L5.81653 8.38635C5.57245 8.14227 5.17672 8.14227 4.93265 8.38635C4.68857 8.63043 4.68857 9.02616 4.93265 9.27023L6.90171 11.2393C7.03162 11.3692 7.2121 11.4354 7.3952 11.4202C7.57829 11.4051 7.74545 11.3101 7.85223 11.1606L11.134 6.56615Z' fill='%2300BA5D'/%3e%3c/svg%3e";
52
+
53
+ var img$4 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.81662 7.33209C10.1545 7.55506 10.3235 7.66655 10.3822 7.80742C10.4336 7.93055 10.4336 8.0691 10.3822 8.19224C10.3235 8.33311 10.1545 8.4446 9.81662 8.66757L6.81921 10.6454C6.4159 10.9115 6.21424 11.0445 6.04715 11.034C5.90158 11.0248 5.76727 10.9525 5.67943 10.8361C5.57861 10.7024 5.57861 10.4608 5.57861 9.97761L5.57861 6.02205C5.57861 5.53885 5.57861 5.29726 5.67943 5.16359C5.76727 5.04714 5.90158 4.97485 6.04715 4.96567C6.21424 4.95513 6.4159 5.08819 6.81921 5.35431L9.81662 7.33209Z' fill='%230080FF'/%3e%3c/svg%3e";
54
+
55
+ var img$3 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%230080FF'/%3e%3c/svg%3e";
56
+
57
+ var img$2 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5ZM8.75 11.5C8.75 11.9142 8.41421 12.25 8 12.25C7.58579 12.25 7.25 11.9142 7.25 11.5V7.99812C7.25 7.58391 7.58579 7.24812 8 7.24812C8.41421 7.24812 8.75 7.58391 8.75 7.99812V11.5ZM8.875 5.125C8.875 5.60825 8.48325 6 8 6C7.51675 6 7.125 5.60825 7.125 5.125C7.125 4.64175 7.51675 4.25 8 4.25C8.48325 4.25 8.875 4.64175 8.875 5.125Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
58
+
59
+ var img$1 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M7.60245 1.88247C7.31193 2.00834 7.08625 2.37752 6.63487 3.11589L1.69402 11.1983C1.20753 11.9941 0.964285 12.392 0.992929 12.7198C1.0179 13.0056 1.16444 13.267 1.39527 13.4373C1.66005 13.6328 2.12641 13.6328 3.05915 13.6328H12.9408C13.8736 13.6328 14.34 13.6328 14.6047 13.4373C14.8356 13.267 14.9821 13.0056 15.0071 12.7198C15.0357 12.392 14.7925 11.9941 14.306 11.1983L9.36513 3.11589C8.91375 2.37752 8.68807 2.00834 8.39755 1.88247C8.14391 1.77258 7.85609 1.77258 7.60245 1.88247ZM7.25 5.38278C7.25 4.96856 7.58579 4.63278 8 4.63278C8.41421 4.63278 8.75 4.96856 8.75 5.38278V9.38278C8.75 9.79699 8.41421 10.1328 8 10.1328C7.58579 10.1328 7.25 9.79699 7.25 9.38278V5.38278ZM7.125 11.7578C7.125 11.2745 7.51675 10.8828 8 10.8828C8.48325 10.8828 8.875 11.2745 8.875 11.7578C8.875 12.241 8.48325 12.6328 8 12.6328C7.51675 12.6328 7.125 12.241 7.125 11.7578Z' fill='%23FEA008'/%3e%3c/svg%3e";
60
+
61
+ var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M4.47964 2.70117L2.70108 4.47973C2.35518 4.82563 2.18223 4.99859 2.05854 5.20042C1.94889 5.37936 1.86808 5.57445 1.81908 5.77853C1.76382 6.0087 1.76382 6.25329 1.76382 6.74247V9.25773C1.76382 9.74691 1.76382 9.9915 1.81908 10.2217C1.86808 10.4258 1.94889 10.6208 2.05854 10.7998C2.18223 11.0016 2.35518 11.1746 2.70108 11.5205L4.47964 13.299C4.82554 13.6449 4.9985 13.8179 5.20033 13.9416C5.37927 14.0512 5.57436 14.132 5.77843 14.181C6.00861 14.2363 6.2532 14.2363 6.74238 14.2363H9.25764C9.74682 14.2363 9.99141 14.2363 10.2216 14.181C10.4257 14.132 10.6207 14.0512 10.7997 13.9416C11.0015 13.8179 11.1745 13.6449 11.5204 13.299L13.2989 11.5205C13.6448 11.1746 13.8178 11.0016 13.9415 10.7998C14.0511 10.6208 14.1319 10.4258 14.1809 10.2217C14.2362 9.9915 14.2362 9.74691 14.2362 9.25773V6.74247C14.2362 6.25329 14.2362 6.0087 14.1809 5.77853C14.1319 5.57445 14.0511 5.37936 13.9415 5.20042C13.8178 4.99859 13.6448 4.82563 13.2989 4.47973L11.5204 2.70117C11.1745 2.35527 11.0015 2.18232 10.7997 2.05864C10.6207 1.94898 10.4257 1.86817 10.2216 1.81918C9.99141 1.76392 9.74682 1.76392 9.25764 1.76392H6.74238C6.2532 1.76392 6.00861 1.76392 5.77843 1.81918C5.57436 1.86817 5.37927 1.94898 5.20033 2.05864C4.99849 2.18232 4.82554 2.35527 4.47964 2.70117ZM9.94454 5.17157C10.1886 4.92749 10.5843 4.92749 10.8284 5.17157C11.0725 5.41564 11.0725 5.81137 10.8284 6.05545L8.88389 7.99998L10.8285 9.94457C11.0726 10.1886 11.0726 10.5844 10.8285 10.8284C10.5844 11.0725 10.1887 11.0725 9.9446 10.8284L8.00001 8.88386L6.05545 10.8284C5.81138 11.0725 5.41565 11.0725 5.17157 10.8284C4.92749 10.5843 4.92749 10.1886 5.17157 9.94454L7.11613 7.99998L5.17162 6.05548C4.92755 5.8114 4.92755 5.41567 5.17162 5.17159C5.4157 4.92752 5.81143 4.92752 6.05551 5.17159L8.00001 7.1161L9.94454 5.17157Z' fill='%23F0483E'/%3e%3c/svg%3e";
62
+
63
+ function getAlertIcon(type) {
64
+ switch (type) {
65
+ case "success":
66
+ return img$5;
67
+ case "info":
68
+ return img$3;
69
+ case "warning":
70
+ return img$1;
71
+ case "error":
72
+ return img;
73
+ case "normal":
74
+ return img$2;
75
+ default:
76
+ return img$2;
77
+ }
78
+ }
79
+
80
+ var __defProp$s = Object.defineProperty;
81
+ var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
82
+ var __hasOwnProp$t = Object.prototype.hasOwnProperty;
83
+ var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
84
+ var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
85
+ var __spreadValues$s = (a, b) => {
86
+ for (var prop in b || (b = {}))
87
+ if (__hasOwnProp$t.call(b, prop))
88
+ __defNormalProp$s(a, prop, b[prop]);
89
+ if (__getOwnPropSymbols$t)
90
+ for (var prop of __getOwnPropSymbols$t(b)) {
91
+ if (__propIsEnum$t.call(b, prop))
92
+ __defNormalProp$s(a, prop, b[prop]);
93
+ }
94
+ return a;
95
+ };
96
+ var __objRest$o = (source, exclude) => {
97
+ var target = {};
98
+ for (var prop in source)
99
+ if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0)
100
+ target[prop] = source[prop];
101
+ if (source != null && __getOwnPropSymbols$t)
102
+ for (var prop of __getOwnPropSymbols$t(source)) {
103
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop))
104
+ target[prop] = source[prop];
105
+ }
106
+ return target;
107
+ };
108
+ const BaseIcon = React.forwardRef(
109
+ (props, ref) => {
110
+ const _a = props, {
111
+ alt,
112
+ className,
113
+ width,
114
+ height,
115
+ cursor,
116
+ style,
117
+ children,
118
+ prefixNode,
119
+ suffixIconSrc,
120
+ src
121
+ } = _a, HTMLSpanElementProps = __objRest$o(_a, [
122
+ "alt",
123
+ "className",
124
+ "width",
125
+ "height",
126
+ "cursor",
127
+ "style",
128
+ "children",
129
+ "prefixNode",
130
+ "suffixIconSrc",
131
+ "src"
132
+ ]);
133
+ return /* @__PURE__ */ React.createElement(
134
+ "span",
135
+ __spreadValues$s({
136
+ ref,
137
+ className,
138
+ style: _.pickBy(__spreadValues$s({ cursor }, style))
139
+ }, HTMLSpanElementProps),
140
+ prefixNode,
141
+ /* @__PURE__ */ React.createElement("span", { className: "icon-inner" }, /* @__PURE__ */ React.createElement("img", { alt, src, width, height })),
142
+ children && /* @__PURE__ */ React.createElement("span", { className: "icon-children" }, children),
143
+ suffixIconSrc && /* @__PURE__ */ React.createElement("span", { className: "icon-inner suffix" }, /* @__PURE__ */ React.createElement("img", { alt, src: suffixIconSrc, width, height }))
144
+ );
145
+ }
146
+ );
147
+
148
+ var __defProp$r = Object.defineProperty;
149
+ var __defProps$k = Object.defineProperties;
150
+ var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
151
+ var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
152
+ var __hasOwnProp$s = Object.prototype.hasOwnProperty;
153
+ var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
154
+ var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, {
155
+ enumerable: true,
156
+ configurable: true,
157
+ writable: true,
158
+ value
159
+ }) : obj[key] = value;
160
+ var __spreadValues$r = (a, b) => {
161
+ for (var prop in b || (b = {})) if (__hasOwnProp$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
162
+ if (__getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(b)) {
163
+ if (__propIsEnum$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
164
+ }
165
+ return a;
166
+ };
167
+ var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
168
+ var __objRest$n = (source, exclude) => {
169
+ var target = {};
170
+ for (var prop in source) if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
171
+ if (source != null && __getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(source)) {
172
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop)) target[prop] = source[prop];
173
+ }
174
+ return target;
175
+ };
176
+ const IconWrapper = "i1mrf09m";
177
+ const Icon = React.forwardRef((props, ref) => {
178
+ const _a = props,
179
+ {
180
+ src,
181
+ hoverSrc,
182
+ active,
183
+ activeSrc,
184
+ onMouseEnter,
185
+ onMouseLeave,
186
+ onMouseMove,
187
+ className,
188
+ iconWidth = 16,
189
+ iconHeight,
190
+ cursor,
191
+ style,
192
+ children,
193
+ isRotate,
194
+ prefix,
195
+ suffix
196
+ } = _a,
197
+ restProps = __objRest$n(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "children", "isRotate", "prefix", "suffix"]);
198
+ const [hover, setHover] = useState(false);
199
+ const _src = useMemo(() => {
200
+ if (active && activeSrc) {
201
+ return activeSrc;
202
+ }
203
+ if (hover && hoverSrc) {
204
+ return hoverSrc;
205
+ }
206
+ return src;
207
+ }, [active, activeSrc, hover, hoverSrc, src]);
208
+ const suffixIconSrc = useMemo(() => {
209
+ if (!suffix) {
210
+ return void 0;
211
+ }
212
+ const {
213
+ activeSrc: activeSrc2,
214
+ hoverSrc: hoverSrc2,
215
+ src: src2
216
+ } = suffix;
217
+ if (active && activeSrc2) {
218
+ return activeSrc2;
219
+ }
220
+ if (hover && hoverSrc2) {
221
+ return hoverSrc2;
222
+ }
223
+ return src2;
224
+ }, [active, hover, suffix]);
225
+ return /* @__PURE__ */React.createElement(BaseIcon, __spreadProps$k(__spreadValues$r({
226
+ src: _src,
227
+ className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
228
+ suffixIconSrc,
229
+ height: iconHeight,
230
+ width: iconWidth,
231
+ prefixNode: prefix,
232
+ style: _.pickBy(__spreadValues$r({
233
+ cursor
234
+ }, style))
235
+ }, restProps), {
236
+ onMouseEnter: e => {
237
+ onMouseEnter == null ? void 0 : onMouseEnter(e);
238
+ if (hover) {
239
+ setHover(true);
240
+ }
241
+ },
242
+ onMouseMove: e => {
243
+ onMouseMove == null ? void 0 : onMouseMove(e);
244
+ if (hoverSrc) {
245
+ setHover(true);
246
+ }
247
+ },
248
+ onMouseLeave: e => {
249
+ onMouseLeave == null ? void 0 : onMouseLeave(e);
250
+ if (hoverSrc) {
251
+ setHover(false);
252
+ }
253
+ }
254
+ }));
255
+ });
256
+
257
+ var __defProp$q = Object.defineProperty;
258
+ var __defProps$j = Object.defineProperties;
259
+ var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
260
+ var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
261
+ var __hasOwnProp$r = Object.prototype.hasOwnProperty;
262
+ var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
263
+ var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
264
+ var __spreadValues$q = (a, b) => {
265
+ for (var prop in b || (b = {}))
266
+ if (__hasOwnProp$r.call(b, prop))
267
+ __defNormalProp$q(a, prop, b[prop]);
268
+ if (__getOwnPropSymbols$r)
269
+ for (var prop of __getOwnPropSymbols$r(b)) {
270
+ if (__propIsEnum$r.call(b, prop))
271
+ __defNormalProp$q(a, prop, b[prop]);
272
+ }
273
+ return a;
274
+ };
275
+ var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
276
+ var __objRest$m = (source, exclude) => {
277
+ var target = {};
278
+ for (var prop in source)
279
+ if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
280
+ target[prop] = source[prop];
281
+ if (source != null && __getOwnPropSymbols$r)
282
+ for (var prop of __getOwnPropSymbols$r(source)) {
283
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
284
+ target[prop] = source[prop];
285
+ }
286
+ return target;
287
+ };
288
+ const Alert = (_a) => {
289
+ var _b = _a, {
290
+ type,
291
+ icon,
292
+ showIcon = true,
293
+ className,
294
+ onClose,
295
+ closeText
296
+ } = _b, props = __objRest$m(_b, [
297
+ "type",
298
+ "icon",
299
+ "showIcon",
300
+ "className",
301
+ "onClose",
302
+ "closeText"
303
+ ]);
304
+ const _icon = /* @__PURE__ */ React.createElement(Icon, { src: getAlertIcon(type) });
305
+ const _type = type === "normal" ? "info" : type;
306
+ return /* @__PURE__ */ React.createElement(
307
+ Alert$1,
308
+ __spreadProps$j(__spreadValues$q({}, props), {
309
+ className: cs(type ? `alert-${type}` : "", className),
310
+ type: _type,
311
+ icon: icon || _icon,
312
+ showIcon,
313
+ onClose,
314
+ closeText,
315
+ closable: !!onClose
316
+ })
317
+ );
318
+ };
319
+
22
320
  const d1_bold_title = "d6j0lbj";
23
321
  const d1s_bold_title = "d1xhvvxe";
24
322
  const d1_regular_title = "dk10mxq";
@@ -154,28 +452,28 @@ const HoverableElement = (props) => {
154
452
  return icon != null ? React.cloneElement(icon, { className }) : null;
155
453
  };
156
454
 
157
- var __defProp$s = Object.defineProperty;
158
- var __getOwnPropSymbols$t = Object.getOwnPropertySymbols;
159
- var __hasOwnProp$t = Object.prototype.hasOwnProperty;
160
- var __propIsEnum$t = Object.prototype.propertyIsEnumerable;
161
- var __defNormalProp$s = (obj, key, value) => key in obj ? __defProp$s(obj, key, {
455
+ var __defProp$p = Object.defineProperty;
456
+ var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
457
+ var __hasOwnProp$q = Object.prototype.hasOwnProperty;
458
+ var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
459
+ var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, {
162
460
  enumerable: true,
163
461
  configurable: true,
164
462
  writable: true,
165
463
  value
166
464
  }) : obj[key] = value;
167
- var __spreadValues$s = (a, b) => {
168
- for (var prop in b || (b = {})) if (__hasOwnProp$t.call(b, prop)) __defNormalProp$s(a, prop, b[prop]);
169
- if (__getOwnPropSymbols$t) for (var prop of __getOwnPropSymbols$t(b)) {
170
- if (__propIsEnum$t.call(b, prop)) __defNormalProp$s(a, prop, b[prop]);
465
+ var __spreadValues$p = (a, b) => {
466
+ for (var prop in b || (b = {})) if (__hasOwnProp$q.call(b, prop)) __defNormalProp$p(a, prop, b[prop]);
467
+ if (__getOwnPropSymbols$q) for (var prop of __getOwnPropSymbols$q(b)) {
468
+ if (__propIsEnum$q.call(b, prop)) __defNormalProp$p(a, prop, b[prop]);
171
469
  }
172
470
  return a;
173
471
  };
174
- var __objRest$n = (source, exclude) => {
472
+ var __objRest$l = (source, exclude) => {
175
473
  var target = {};
176
- for (var prop in source) if (__hasOwnProp$t.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
177
- if (source != null && __getOwnPropSymbols$t) for (var prop of __getOwnPropSymbols$t(source)) {
178
- if (exclude.indexOf(prop) < 0 && __propIsEnum$t.call(source, prop)) target[prop] = source[prop];
474
+ for (var prop in source) if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
475
+ if (source != null && __getOwnPropSymbols$q) for (var prop of __getOwnPropSymbols$q(source)) {
476
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop)) target[prop] = source[prop];
179
477
  }
180
478
  return target;
181
479
  };
@@ -198,11 +496,11 @@ const Button = React.forwardRef((props, ref) => {
198
496
  onMouseLeave,
199
497
  size = "middle"
200
498
  } = _a,
201
- restProps = __objRest$n(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
499
+ restProps = __objRest$l(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
202
500
  const [status, setStatus] = useState("normal");
203
501
  const hasIcon = prefixIcon || suffixIcon;
204
502
  const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
205
- return /* @__PURE__ */React.createElement(Button$1, __spreadValues$s({
503
+ return /* @__PURE__ */React.createElement(Button$1, __spreadValues$p({
206
504
  ref,
207
505
  className: cs(className, ButtonStyle$1, type === "link" && NoPadding, (prefixIcon || suffixIcon) && "has-icon", size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, !children && children !== 0 && restProps.icon && "ant-btn-icon-only"),
208
506
  type: isAntdButtonTypes(type) ? type : void 0,
@@ -232,31 +530,31 @@ const Button = React.forwardRef((props, ref) => {
232
530
  }));
233
531
  });
234
532
 
235
- var __defProp$r = Object.defineProperty;
236
- var __defProps$k = Object.defineProperties;
237
- var __getOwnPropDescs$k = Object.getOwnPropertyDescriptors;
238
- var __getOwnPropSymbols$s = Object.getOwnPropertySymbols;
239
- var __hasOwnProp$s = Object.prototype.hasOwnProperty;
240
- var __propIsEnum$s = Object.prototype.propertyIsEnumerable;
241
- var __defNormalProp$r = (obj, key, value) => key in obj ? __defProp$r(obj, key, {
533
+ var __defProp$o = Object.defineProperty;
534
+ var __defProps$i = Object.defineProperties;
535
+ var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
536
+ var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
537
+ var __hasOwnProp$p = Object.prototype.hasOwnProperty;
538
+ var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
539
+ var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
242
540
  enumerable: true,
243
541
  configurable: true,
244
542
  writable: true,
245
543
  value
246
544
  }) : obj[key] = value;
247
- var __spreadValues$r = (a, b) => {
248
- for (var prop in b || (b = {})) if (__hasOwnProp$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
249
- if (__getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(b)) {
250
- if (__propIsEnum$s.call(b, prop)) __defNormalProp$r(a, prop, b[prop]);
545
+ var __spreadValues$o = (a, b) => {
546
+ for (var prop in b || (b = {})) if (__hasOwnProp$p.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
547
+ if (__getOwnPropSymbols$p) for (var prop of __getOwnPropSymbols$p(b)) {
548
+ if (__propIsEnum$p.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
251
549
  }
252
550
  return a;
253
551
  };
254
- var __spreadProps$k = (a, b) => __defProps$k(a, __getOwnPropDescs$k(b));
255
- var __objRest$m = (source, exclude) => {
552
+ var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
553
+ var __objRest$k = (source, exclude) => {
256
554
  var target = {};
257
- for (var prop in source) if (__hasOwnProp$s.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
258
- if (source != null && __getOwnPropSymbols$s) for (var prop of __getOwnPropSymbols$s(source)) {
259
- if (exclude.indexOf(prop) < 0 && __propIsEnum$s.call(source, prop)) target[prop] = source[prop];
555
+ for (var prop in source) if (__hasOwnProp$p.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
556
+ if (source != null && __getOwnPropSymbols$p) for (var prop of __getOwnPropSymbols$p(source)) {
557
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$p.call(source, prop)) target[prop] = source[prop];
260
558
  }
261
559
  return target;
262
560
  };
@@ -269,8 +567,8 @@ const Checkbox = _a => {
269
567
  description,
270
568
  compact
271
569
  } = _b,
272
- props = __objRest$m(_b, ["className", "children", "description", "compact"]);
273
- return /* @__PURE__ */React.createElement(Checkbox$1, __spreadProps$k(__spreadValues$r({}, props), {
570
+ props = __objRest$k(_b, ["className", "children", "description", "compact"]);
571
+ return /* @__PURE__ */React.createElement(Checkbox$1, __spreadProps$i(__spreadValues$o({}, props), {
274
572
  "data-test": props["data-test"] || props.value,
275
573
  className: cs(className, CheckboxStyle, compact && "compact")
276
574
  }), children ? /* @__PURE__ */React.createElement(React.Fragment, null, /* @__PURE__ */React.createElement("div", {
@@ -280,39 +578,39 @@ const Checkbox = _a => {
280
578
  }, description) : null) : null);
281
579
  };
282
580
 
283
- var __defProp$q = Object.defineProperty;
284
- var __getOwnPropSymbols$r = Object.getOwnPropertySymbols;
285
- var __hasOwnProp$r = Object.prototype.hasOwnProperty;
286
- var __propIsEnum$r = Object.prototype.propertyIsEnumerable;
287
- var __defNormalProp$q = (obj, key, value) => key in obj ? __defProp$q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
288
- var __spreadValues$q = (a, b) => {
581
+ var __defProp$n = Object.defineProperty;
582
+ var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
583
+ var __hasOwnProp$o = Object.prototype.hasOwnProperty;
584
+ var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
585
+ var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
586
+ var __spreadValues$n = (a, b) => {
289
587
  for (var prop in b || (b = {}))
290
- if (__hasOwnProp$r.call(b, prop))
291
- __defNormalProp$q(a, prop, b[prop]);
292
- if (__getOwnPropSymbols$r)
293
- for (var prop of __getOwnPropSymbols$r(b)) {
294
- if (__propIsEnum$r.call(b, prop))
295
- __defNormalProp$q(a, prop, b[prop]);
588
+ if (__hasOwnProp$o.call(b, prop))
589
+ __defNormalProp$n(a, prop, b[prop]);
590
+ if (__getOwnPropSymbols$o)
591
+ for (var prop of __getOwnPropSymbols$o(b)) {
592
+ if (__propIsEnum$o.call(b, prop))
593
+ __defNormalProp$n(a, prop, b[prop]);
296
594
  }
297
595
  return a;
298
596
  };
299
- var __objRest$l = (source, exclude) => {
597
+ var __objRest$j = (source, exclude) => {
300
598
  var target = {};
301
599
  for (var prop in source)
302
- if (__hasOwnProp$r.call(source, prop) && exclude.indexOf(prop) < 0)
600
+ if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0)
303
601
  target[prop] = source[prop];
304
- if (source != null && __getOwnPropSymbols$r)
305
- for (var prop of __getOwnPropSymbols$r(source)) {
306
- if (exclude.indexOf(prop) < 0 && __propIsEnum$r.call(source, prop))
602
+ if (source != null && __getOwnPropSymbols$o)
603
+ for (var prop of __getOwnPropSymbols$o(source)) {
604
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop))
307
605
  target[prop] = source[prop];
308
606
  }
309
607
  return target;
310
608
  };
311
609
  const FieldsBoolean = (_a) => {
312
- var _b = _a, { input, children } = _b, props = __objRest$l(_b, ["input", "children"]);
610
+ var _b = _a, { input, children } = _b, props = __objRest$j(_b, ["input", "children"]);
313
611
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
314
612
  Checkbox,
315
- __spreadValues$q({
613
+ __spreadValues$n({
316
614
  checked: Boolean(input.value),
317
615
  onChange: (e) => input.onChange(e.target.checked)
318
616
  }, props),
@@ -337,17 +635,17 @@ const FieldsDateTime = ({ input }) => /* @__PURE__ */ React.createElement(React.
337
635
  }
338
636
  ));
339
637
 
340
- var __getOwnPropSymbols$q = Object.getOwnPropertySymbols;
341
- var __hasOwnProp$q = Object.prototype.hasOwnProperty;
342
- var __propIsEnum$q = Object.prototype.propertyIsEnumerable;
343
- var __objRest$k = (source, exclude) => {
638
+ var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
639
+ var __hasOwnProp$n = Object.prototype.hasOwnProperty;
640
+ var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
641
+ var __objRest$i = (source, exclude) => {
344
642
  var target = {};
345
643
  for (var prop in source)
346
- if (__hasOwnProp$q.call(source, prop) && exclude.indexOf(prop) < 0)
644
+ if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
347
645
  target[prop] = source[prop];
348
- if (source != null && __getOwnPropSymbols$q)
349
- for (var prop of __getOwnPropSymbols$q(source)) {
350
- if (exclude.indexOf(prop) < 0 && __propIsEnum$q.call(source, prop))
646
+ if (source != null && __getOwnPropSymbols$n)
647
+ for (var prop of __getOwnPropSymbols$n(source)) {
648
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
351
649
  target[prop] = source[prop];
352
650
  }
353
651
  return target;
@@ -355,7 +653,7 @@ var __objRest$k = (source, exclude) => {
355
653
  const FieldsDateTimeRange = (_a) => {
356
654
  var _b = _a, {
357
655
  input
358
- } = _b, props = __objRest$k(_b, [
656
+ } = _b, props = __objRest$i(_b, [
359
657
  "input"
360
658
  ]);
361
659
  var _a2, _b2;
@@ -397,53 +695,53 @@ const THEAD_SELECTOR = ".ant-table-thead";
397
695
  const TBODY_SELECTOR = ".ant-table-tbody";
398
696
  const MODAL_WHITELIST = [".ant-select-dropdown", ".ant-picker-dropdown", ".ant-dropdown", ".ant-dropdown-menu-submenu", ".ant-tooltip", ".ant-dropdown-menu-item-group-list"];
399
697
 
400
- var __defProp$p = Object.defineProperty;
401
- var __getOwnPropSymbols$p = Object.getOwnPropertySymbols;
402
- var __hasOwnProp$p = Object.prototype.hasOwnProperty;
403
- var __propIsEnum$p = Object.prototype.propertyIsEnumerable;
404
- var __defNormalProp$p = (obj, key, value) => key in obj ? __defProp$p(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
405
- var __spreadValues$p = (a, b) => {
698
+ var __defProp$m = Object.defineProperty;
699
+ var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
700
+ var __hasOwnProp$m = Object.prototype.hasOwnProperty;
701
+ var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
702
+ var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
703
+ var __spreadValues$m = (a, b) => {
406
704
  for (var prop in b || (b = {}))
407
- if (__hasOwnProp$p.call(b, prop))
408
- __defNormalProp$p(a, prop, b[prop]);
409
- if (__getOwnPropSymbols$p)
410
- for (var prop of __getOwnPropSymbols$p(b)) {
411
- if (__propIsEnum$p.call(b, prop))
412
- __defNormalProp$p(a, prop, b[prop]);
705
+ if (__hasOwnProp$m.call(b, prop))
706
+ __defNormalProp$m(a, prop, b[prop]);
707
+ if (__getOwnPropSymbols$m)
708
+ for (var prop of __getOwnPropSymbols$m(b)) {
709
+ if (__propIsEnum$m.call(b, prop))
710
+ __defNormalProp$m(a, prop, b[prop]);
413
711
  }
414
712
  return a;
415
713
  };
416
714
  const Loading = ({ fullView = true }) => {
417
715
  const Wrapper = fullView ? FullView : Fragment;
418
716
  const props = fullView ? { className: "loading-full-view" } : {};
419
- return /* @__PURE__ */ React.createElement(Wrapper, __spreadValues$p({}, props), /* @__PURE__ */ React.createElement("div", { className: "loading" }, /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" })));
717
+ return /* @__PURE__ */ React.createElement(Wrapper, __spreadValues$m({}, props), /* @__PURE__ */ React.createElement("div", { className: "loading" }, /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" }), /* @__PURE__ */ React.createElement("div", { className: "loading__sugar" })));
420
718
  };
421
719
 
422
- var __defProp$o = Object.defineProperty;
423
- var __defProps$j = Object.defineProperties;
424
- var __getOwnPropDescs$j = Object.getOwnPropertyDescriptors;
425
- var __getOwnPropSymbols$o = Object.getOwnPropertySymbols;
426
- var __hasOwnProp$o = Object.prototype.hasOwnProperty;
427
- var __propIsEnum$o = Object.prototype.propertyIsEnumerable;
428
- var __defNormalProp$o = (obj, key, value) => key in obj ? __defProp$o(obj, key, {
720
+ var __defProp$l = Object.defineProperty;
721
+ var __defProps$h = Object.defineProperties;
722
+ var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
723
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
724
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
725
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
726
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, {
429
727
  enumerable: true,
430
728
  configurable: true,
431
729
  writable: true,
432
730
  value
433
731
  }) : obj[key] = value;
434
- var __spreadValues$o = (a, b) => {
435
- for (var prop in b || (b = {})) if (__hasOwnProp$o.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
436
- if (__getOwnPropSymbols$o) for (var prop of __getOwnPropSymbols$o(b)) {
437
- if (__propIsEnum$o.call(b, prop)) __defNormalProp$o(a, prop, b[prop]);
732
+ var __spreadValues$l = (a, b) => {
733
+ for (var prop in b || (b = {})) if (__hasOwnProp$l.call(b, prop)) __defNormalProp$l(a, prop, b[prop]);
734
+ if (__getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(b)) {
735
+ if (__propIsEnum$l.call(b, prop)) __defNormalProp$l(a, prop, b[prop]);
438
736
  }
439
737
  return a;
440
738
  };
441
- var __spreadProps$j = (a, b) => __defProps$j(a, __getOwnPropDescs$j(b));
442
- var __objRest$j = (source, exclude) => {
739
+ var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
740
+ var __objRest$h = (source, exclude) => {
443
741
  var target = {};
444
- for (var prop in source) if (__hasOwnProp$o.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
445
- if (source != null && __getOwnPropSymbols$o) for (var prop of __getOwnPropSymbols$o(source)) {
446
- if (exclude.indexOf(prop) < 0 && __propIsEnum$o.call(source, prop)) target[prop] = source[prop];
742
+ for (var prop in source) if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
743
+ if (source != null && __getOwnPropSymbols$l) for (var prop of __getOwnPropSymbols$l(source)) {
744
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop)) target[prop] = source[prop];
447
745
  }
448
746
  return target;
449
747
  };
@@ -471,7 +769,7 @@ const Select = _a => {
471
769
  meta,
472
770
  placeholder
473
771
  } = _b,
474
- restProps = __objRest$j(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
772
+ restProps = __objRest$h(_b, ["input", "multiple", "className", "scrollBottomBuffer", "onScrollBottom", "onPopupScroll", "onSearch", "showSearch", "filterOption", "loading", "notFoundContent", "children", "error", "selectLimit", "dropdownClassName", "danger", "size", "meta", "placeholder"]);
475
773
  var _a2;
476
774
  const limitExceeded = multiple && selectLimit && selectLimit <= (((_a2 = input.value) == null ? void 0 : _a2.length) || 0);
477
775
  const typo = {
@@ -497,7 +795,7 @@ const Select = _a => {
497
795
  inputDom && (placeholder || item) && inputDom.setAttribute("data-test", String(placeholder || item.textContent));
498
796
  }
499
797
  }, [selectRef, placeholder]);
500
- return /* @__PURE__ */React.createElement(Select$1, __spreadValues$o(__spreadProps$j(__spreadValues$o({}, input), {
798
+ return /* @__PURE__ */React.createElement(Select$1, __spreadValues$l(__spreadProps$h(__spreadValues$l({}, input), {
501
799
  ref: selectRef,
502
800
  size,
503
801
  value: multiple ? input.value || [] : input.value || void 0,
@@ -537,38 +835,38 @@ const Select = _a => {
537
835
  loading,
538
836
  placeholder
539
837
  }), restProps), React.Children.map(children, child => {
540
- return isElement(child) ? __spreadProps$j(__spreadValues$o({}, child), {
541
- props: __spreadProps$j(__spreadValues$o({}, child.props), {
838
+ return isElement(child) ? __spreadProps$h(__spreadValues$l({}, child), {
839
+ props: __spreadProps$h(__spreadValues$l({}, child.props), {
542
840
  "data-test": child.props.value
543
841
  })
544
842
  }) : child;
545
843
  }));
546
844
  };
547
845
 
548
- var __defProp$n = Object.defineProperty;
549
- var __getOwnPropSymbols$n = Object.getOwnPropertySymbols;
550
- var __hasOwnProp$n = Object.prototype.hasOwnProperty;
551
- var __propIsEnum$n = Object.prototype.propertyIsEnumerable;
552
- var __defNormalProp$n = (obj, key, value) => key in obj ? __defProp$n(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
553
- var __spreadValues$n = (a, b) => {
846
+ var __defProp$k = Object.defineProperty;
847
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
848
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
849
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
850
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
851
+ var __spreadValues$k = (a, b) => {
554
852
  for (var prop in b || (b = {}))
555
- if (__hasOwnProp$n.call(b, prop))
556
- __defNormalProp$n(a, prop, b[prop]);
557
- if (__getOwnPropSymbols$n)
558
- for (var prop of __getOwnPropSymbols$n(b)) {
559
- if (__propIsEnum$n.call(b, prop))
560
- __defNormalProp$n(a, prop, b[prop]);
853
+ if (__hasOwnProp$k.call(b, prop))
854
+ __defNormalProp$k(a, prop, b[prop]);
855
+ if (__getOwnPropSymbols$k)
856
+ for (var prop of __getOwnPropSymbols$k(b)) {
857
+ if (__propIsEnum$k.call(b, prop))
858
+ __defNormalProp$k(a, prop, b[prop]);
561
859
  }
562
860
  return a;
563
861
  };
564
- var __objRest$i = (source, exclude) => {
862
+ var __objRest$g = (source, exclude) => {
565
863
  var target = {};
566
864
  for (var prop in source)
567
- if (__hasOwnProp$n.call(source, prop) && exclude.indexOf(prop) < 0)
865
+ if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
568
866
  target[prop] = source[prop];
569
- if (source != null && __getOwnPropSymbols$n)
570
- for (var prop of __getOwnPropSymbols$n(source)) {
571
- if (exclude.indexOf(prop) < 0 && __propIsEnum$n.call(source, prop))
867
+ if (source != null && __getOwnPropSymbols$k)
868
+ for (var prop of __getOwnPropSymbols$k(source)) {
869
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
572
870
  target[prop] = source[prop];
573
871
  }
574
872
  return target;
@@ -578,12 +876,12 @@ const FieldsEnum = (_a) => {
578
876
  meta: __,
579
877
  enumValues,
580
878
  emptyLabel
581
- } = _b, restProps = __objRest$i(_b, [
879
+ } = _b, restProps = __objRest$g(_b, [
582
880
  "meta",
583
881
  "enumValues",
584
882
  "emptyLabel"
585
883
  ]);
586
- return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Select, __spreadValues$n({}, restProps), emptyLabel && /* @__PURE__ */ React.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
884
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Select, __spreadValues$k({}, restProps), emptyLabel && /* @__PURE__ */ React.createElement(Select$1.Option, { value: "" }, emptyLabel), enumValues.map((v) => {
587
885
  const item = typeof v === "string" ? { value: v, text: v } : v;
588
886
  return /* @__PURE__ */ React.createElement(
589
887
  Select$1.Option,
@@ -597,31 +895,31 @@ const FieldsEnum = (_a) => {
597
895
  })));
598
896
  };
599
897
 
600
- var __defProp$m = Object.defineProperty;
601
- var __defProps$i = Object.defineProperties;
602
- var __getOwnPropDescs$i = Object.getOwnPropertyDescriptors;
603
- var __getOwnPropSymbols$m = Object.getOwnPropertySymbols;
604
- var __hasOwnProp$m = Object.prototype.hasOwnProperty;
605
- var __propIsEnum$m = Object.prototype.propertyIsEnumerable;
606
- var __defNormalProp$m = (obj, key, value) => key in obj ? __defProp$m(obj, key, {
898
+ var __defProp$j = Object.defineProperty;
899
+ var __defProps$g = Object.defineProperties;
900
+ var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
901
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
902
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
903
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
904
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, {
607
905
  enumerable: true,
608
906
  configurable: true,
609
907
  writable: true,
610
908
  value
611
909
  }) : obj[key] = value;
612
- var __spreadValues$m = (a, b) => {
613
- for (var prop in b || (b = {})) if (__hasOwnProp$m.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
614
- if (__getOwnPropSymbols$m) for (var prop of __getOwnPropSymbols$m(b)) {
615
- if (__propIsEnum$m.call(b, prop)) __defNormalProp$m(a, prop, b[prop]);
910
+ var __spreadValues$j = (a, b) => {
911
+ for (var prop in b || (b = {})) if (__hasOwnProp$j.call(b, prop)) __defNormalProp$j(a, prop, b[prop]);
912
+ if (__getOwnPropSymbols$j) for (var prop of __getOwnPropSymbols$j(b)) {
913
+ if (__propIsEnum$j.call(b, prop)) __defNormalProp$j(a, prop, b[prop]);
616
914
  }
617
915
  return a;
618
916
  };
619
- var __spreadProps$i = (a, b) => __defProps$i(a, __getOwnPropDescs$i(b));
620
- var __objRest$h = (source, exclude) => {
917
+ var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
918
+ var __objRest$f = (source, exclude) => {
621
919
  var target = {};
622
- for (var prop in source) if (__hasOwnProp$m.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
623
- if (source != null && __getOwnPropSymbols$m) for (var prop of __getOwnPropSymbols$m(source)) {
624
- if (exclude.indexOf(prop) < 0 && __propIsEnum$m.call(source, prop)) target[prop] = source[prop];
920
+ for (var prop in source) if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
921
+ if (source != null && __getOwnPropSymbols$j) for (var prop of __getOwnPropSymbols$j(source)) {
922
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop)) target[prop] = source[prop];
625
923
  }
626
924
  return target;
627
925
  };
@@ -657,13 +955,13 @@ const InputNumber = _a => {
657
955
  prefix,
658
956
  controls = true
659
957
  } = _b,
660
- props = __objRest$h(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
958
+ props = __objRest$f(_b, ["className", "error", "size", "suffix", "prefix", "controls"]);
661
959
  const typo = {
662
960
  large: Typo.Label.l2_regular,
663
961
  middle: Typo.Label.l3_regular,
664
962
  small: Typo.Label.l4_regular
665
963
  }[size];
666
- return /* @__PURE__ */React.createElement(AntdInputNumberStyled, __spreadProps$i(__spreadValues$m({}, props), {
964
+ return /* @__PURE__ */React.createElement(AntdInputNumberStyled, __spreadProps$g(__spreadValues$j({}, props), {
667
965
  size,
668
966
  controls,
669
967
  "data-test": props.name,
@@ -673,33 +971,33 @@ const InputNumber = _a => {
673
971
  }));
674
972
  };
675
973
 
676
- var __defProp$l = Object.defineProperty;
677
- var __defProps$h = Object.defineProperties;
678
- var __getOwnPropDescs$h = Object.getOwnPropertyDescriptors;
679
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
680
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
681
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
682
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
683
- var __spreadValues$l = (a, b) => {
974
+ var __defProp$i = Object.defineProperty;
975
+ var __defProps$f = Object.defineProperties;
976
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
977
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
978
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
979
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
980
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
981
+ var __spreadValues$i = (a, b) => {
684
982
  for (var prop in b || (b = {}))
685
- if (__hasOwnProp$l.call(b, prop))
686
- __defNormalProp$l(a, prop, b[prop]);
687
- if (__getOwnPropSymbols$l)
688
- for (var prop of __getOwnPropSymbols$l(b)) {
689
- if (__propIsEnum$l.call(b, prop))
690
- __defNormalProp$l(a, prop, b[prop]);
983
+ if (__hasOwnProp$i.call(b, prop))
984
+ __defNormalProp$i(a, prop, b[prop]);
985
+ if (__getOwnPropSymbols$i)
986
+ for (var prop of __getOwnPropSymbols$i(b)) {
987
+ if (__propIsEnum$i.call(b, prop))
988
+ __defNormalProp$i(a, prop, b[prop]);
691
989
  }
692
990
  return a;
693
991
  };
694
- var __spreadProps$h = (a, b) => __defProps$h(a, __getOwnPropDescs$h(b));
695
- var __objRest$g = (source, exclude) => {
992
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
993
+ var __objRest$e = (source, exclude) => {
696
994
  var target = {};
697
995
  for (var prop in source)
698
- if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
996
+ if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
699
997
  target[prop] = source[prop];
700
- if (source != null && __getOwnPropSymbols$l)
701
- for (var prop of __getOwnPropSymbols$l(source)) {
702
- if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
998
+ if (source != null && __getOwnPropSymbols$i)
999
+ for (var prop of __getOwnPropSymbols$i(source)) {
1000
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
703
1001
  target[prop] = source[prop];
704
1002
  }
705
1003
  return target;
@@ -710,7 +1008,7 @@ const FieldsFloat = (_a) => {
710
1008
  meta,
711
1009
  onBlur,
712
1010
  autoComplete = "off"
713
- } = _b, props = __objRest$g(_b, [
1011
+ } = _b, props = __objRest$e(_b, [
714
1012
  "input",
715
1013
  "meta",
716
1014
  "onBlur",
@@ -718,7 +1016,7 @@ const FieldsFloat = (_a) => {
718
1016
  ]);
719
1017
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
720
1018
  InputNumber,
721
- __spreadValues$l(__spreadProps$h(__spreadValues$l({}, input), {
1019
+ __spreadValues$i(__spreadProps$f(__spreadValues$i({}, input), {
722
1020
  onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
723
1021
  autoComplete,
724
1022
  error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
@@ -726,33 +1024,33 @@ const FieldsFloat = (_a) => {
726
1024
  ));
727
1025
  };
728
1026
 
729
- var __defProp$k = Object.defineProperty;
730
- var __defProps$g = Object.defineProperties;
731
- var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
732
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
733
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
734
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
735
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
736
- var __spreadValues$k = (a, b) => {
1027
+ var __defProp$h = Object.defineProperty;
1028
+ var __defProps$e = Object.defineProperties;
1029
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
1030
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
1031
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
1032
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
1033
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1034
+ var __spreadValues$h = (a, b) => {
737
1035
  for (var prop in b || (b = {}))
738
- if (__hasOwnProp$k.call(b, prop))
739
- __defNormalProp$k(a, prop, b[prop]);
740
- if (__getOwnPropSymbols$k)
741
- for (var prop of __getOwnPropSymbols$k(b)) {
742
- if (__propIsEnum$k.call(b, prop))
743
- __defNormalProp$k(a, prop, b[prop]);
1036
+ if (__hasOwnProp$h.call(b, prop))
1037
+ __defNormalProp$h(a, prop, b[prop]);
1038
+ if (__getOwnPropSymbols$h)
1039
+ for (var prop of __getOwnPropSymbols$h(b)) {
1040
+ if (__propIsEnum$h.call(b, prop))
1041
+ __defNormalProp$h(a, prop, b[prop]);
744
1042
  }
745
1043
  return a;
746
1044
  };
747
- var __spreadProps$g = (a, b) => __defProps$g(a, __getOwnPropDescs$g(b));
748
- var __objRest$f = (source, exclude) => {
1045
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
1046
+ var __objRest$d = (source, exclude) => {
749
1047
  var target = {};
750
1048
  for (var prop in source)
751
- if (__hasOwnProp$k.call(source, prop) && exclude.indexOf(prop) < 0)
1049
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
752
1050
  target[prop] = source[prop];
753
- if (source != null && __getOwnPropSymbols$k)
754
- for (var prop of __getOwnPropSymbols$k(source)) {
755
- if (exclude.indexOf(prop) < 0 && __propIsEnum$k.call(source, prop))
1051
+ if (source != null && __getOwnPropSymbols$h)
1052
+ for (var prop of __getOwnPropSymbols$h(source)) {
1053
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
756
1054
  target[prop] = source[prop];
757
1055
  }
758
1056
  return target;
@@ -762,7 +1060,7 @@ const Input = (_a) => {
762
1060
  className,
763
1061
  error,
764
1062
  size = "middle"
765
- } = _b, props = __objRest$f(_b, [
1063
+ } = _b, props = __objRest$d(_b, [
766
1064
  "className",
767
1065
  "error",
768
1066
  "size"
@@ -774,7 +1072,7 @@ const Input = (_a) => {
774
1072
  }[size];
775
1073
  return /* @__PURE__ */ React.createElement(
776
1074
  Input$1,
777
- __spreadProps$g(__spreadValues$k({}, props), {
1075
+ __spreadProps$e(__spreadValues$h({}, props), {
778
1076
  size,
779
1077
  "data-test": props.name,
780
1078
  className: cs(className, InputStyle, typo, error ? "error" : "")
@@ -782,33 +1080,33 @@ const Input = (_a) => {
782
1080
  );
783
1081
  };
784
1082
 
785
- var __defProp$j = Object.defineProperty;
786
- var __defProps$f = Object.defineProperties;
787
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
788
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
789
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
790
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
791
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
792
- var __spreadValues$j = (a, b) => {
1083
+ var __defProp$g = Object.defineProperty;
1084
+ var __defProps$d = Object.defineProperties;
1085
+ var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
1086
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1087
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1088
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1089
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1090
+ var __spreadValues$g = (a, b) => {
793
1091
  for (var prop in b || (b = {}))
794
- if (__hasOwnProp$j.call(b, prop))
795
- __defNormalProp$j(a, prop, b[prop]);
796
- if (__getOwnPropSymbols$j)
797
- for (var prop of __getOwnPropSymbols$j(b)) {
798
- if (__propIsEnum$j.call(b, prop))
799
- __defNormalProp$j(a, prop, b[prop]);
1092
+ if (__hasOwnProp$g.call(b, prop))
1093
+ __defNormalProp$g(a, prop, b[prop]);
1094
+ if (__getOwnPropSymbols$g)
1095
+ for (var prop of __getOwnPropSymbols$g(b)) {
1096
+ if (__propIsEnum$g.call(b, prop))
1097
+ __defNormalProp$g(a, prop, b[prop]);
800
1098
  }
801
1099
  return a;
802
1100
  };
803
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
804
- var __objRest$e = (source, exclude) => {
1101
+ var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
1102
+ var __objRest$c = (source, exclude) => {
805
1103
  var target = {};
806
1104
  for (var prop in source)
807
- if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0)
1105
+ if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
808
1106
  target[prop] = source[prop];
809
- if (source != null && __getOwnPropSymbols$j)
810
- for (var prop of __getOwnPropSymbols$j(source)) {
811
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop))
1107
+ if (source != null && __getOwnPropSymbols$g)
1108
+ for (var prop of __getOwnPropSymbols$g(source)) {
1109
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
812
1110
  target[prop] = source[prop];
813
1111
  }
814
1112
  return target;
@@ -820,7 +1118,7 @@ const FieldsInt = (_a) => {
820
1118
  onBlur,
821
1119
  autoComplete = "off",
822
1120
  supportNegativeValue = false
823
- } = _b, props = __objRest$e(_b, [
1121
+ } = _b, props = __objRest$c(_b, [
824
1122
  "input",
825
1123
  "meta",
826
1124
  "onBlur",
@@ -829,7 +1127,7 @@ const FieldsInt = (_a) => {
829
1127
  ]);
830
1128
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
831
1129
  Input,
832
- __spreadValues$j(__spreadProps$f(__spreadValues$j({}, input), {
1130
+ __spreadValues$g(__spreadProps$d(__spreadValues$g({}, input), {
833
1131
  onChange: (e) => {
834
1132
  const value = e.currentTarget.value;
835
1133
  if (supportNegativeValue) {
@@ -864,31 +1162,31 @@ const formatterInteger = (value) => {
864
1162
  }
865
1163
  };
866
1164
 
867
- var __defProp$i = Object.defineProperty;
868
- var __defProps$e = Object.defineProperties;
869
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
870
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
871
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
872
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
873
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, {
1165
+ var __defProp$f = Object.defineProperty;
1166
+ var __defProps$c = Object.defineProperties;
1167
+ var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1168
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1169
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1170
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1171
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
874
1172
  enumerable: true,
875
1173
  configurable: true,
876
1174
  writable: true,
877
1175
  value
878
1176
  }) : obj[key] = value;
879
- var __spreadValues$i = (a, b) => {
880
- for (var prop in b || (b = {})) if (__hasOwnProp$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
881
- if (__getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(b)) {
882
- if (__propIsEnum$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
1177
+ var __spreadValues$f = (a, b) => {
1178
+ for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
1179
+ if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
1180
+ if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
883
1181
  }
884
1182
  return a;
885
1183
  };
886
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
887
- var __objRest$d = (source, exclude) => {
1184
+ var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1185
+ var __objRest$b = (source, exclude) => {
888
1186
  var target = {};
889
- for (var prop in source) if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
890
- if (source != null && __getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(source)) {
891
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop)) target[prop] = source[prop];
1187
+ for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
1188
+ if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
1189
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
892
1190
  }
893
1191
  return target;
894
1192
  };
@@ -926,13 +1224,13 @@ const InputInteger = _a => {
926
1224
  min,
927
1225
  controls = false
928
1226
  } = _b,
929
- props = __objRest$d(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
1227
+ props = __objRest$b(_b, ["className", "error", "size", "suffix", "prefix", "max", "min", "controls"]);
930
1228
  const typo = {
931
1229
  large: Typo.Label.l2_regular,
932
1230
  middle: Typo.Label.l3_regular,
933
1231
  small: Typo.Label.l4_regular
934
1232
  }[size];
935
- return /* @__PURE__ */React.createElement(AntdIntStyled, __spreadProps$e(__spreadValues$i({}, props), {
1233
+ return /* @__PURE__ */React.createElement(AntdIntStyled, __spreadProps$c(__spreadValues$f({}, props), {
936
1234
  size,
937
1235
  formatter: formatterInteger,
938
1236
  parser: formatterInteger,
@@ -946,33 +1244,33 @@ const InputInteger = _a => {
946
1244
  }));
947
1245
  };
948
1246
 
949
- var __defProp$h = Object.defineProperty;
950
- var __defProps$d = Object.defineProperties;
951
- var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;
952
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
953
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
954
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
955
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
956
- var __spreadValues$h = (a, b) => {
1247
+ var __defProp$e = Object.defineProperty;
1248
+ var __defProps$b = Object.defineProperties;
1249
+ var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1250
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1251
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1252
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1253
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1254
+ var __spreadValues$e = (a, b) => {
957
1255
  for (var prop in b || (b = {}))
958
- if (__hasOwnProp$h.call(b, prop))
959
- __defNormalProp$h(a, prop, b[prop]);
960
- if (__getOwnPropSymbols$h)
961
- for (var prop of __getOwnPropSymbols$h(b)) {
962
- if (__propIsEnum$h.call(b, prop))
963
- __defNormalProp$h(a, prop, b[prop]);
1256
+ if (__hasOwnProp$e.call(b, prop))
1257
+ __defNormalProp$e(a, prop, b[prop]);
1258
+ if (__getOwnPropSymbols$e)
1259
+ for (var prop of __getOwnPropSymbols$e(b)) {
1260
+ if (__propIsEnum$e.call(b, prop))
1261
+ __defNormalProp$e(a, prop, b[prop]);
964
1262
  }
965
1263
  return a;
966
1264
  };
967
- var __spreadProps$d = (a, b) => __defProps$d(a, __getOwnPropDescs$d(b));
968
- var __objRest$c = (source, exclude) => {
1265
+ var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1266
+ var __objRest$a = (source, exclude) => {
969
1267
  var target = {};
970
1268
  for (var prop in source)
971
- if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
1269
+ if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
972
1270
  target[prop] = source[prop];
973
- if (source != null && __getOwnPropSymbols$h)
974
- for (var prop of __getOwnPropSymbols$h(source)) {
975
- if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
1271
+ if (source != null && __getOwnPropSymbols$e)
1272
+ for (var prop of __getOwnPropSymbols$e(source)) {
1273
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
976
1274
  target[prop] = source[prop];
977
1275
  }
978
1276
  return target;
@@ -982,203 +1280,20 @@ const FieldsInteger = (_a) => {
982
1280
  meta,
983
1281
  input,
984
1282
  onBlur
985
- } = _b, props = __objRest$c(_b, [
1283
+ } = _b, props = __objRest$a(_b, [
986
1284
  "meta",
987
1285
  "input",
988
1286
  "onBlur"
989
1287
  ]);
990
1288
  return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
991
1289
  InputInteger,
992
- __spreadProps$d(__spreadValues$h(__spreadValues$h({}, props), input), {
1290
+ __spreadProps$b(__spreadValues$e(__spreadValues$e({}, props), input), {
993
1291
  onBlur: (e) => onBlur ? onBlur(input, e) : input.onBlur(e),
994
1292
  error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
995
1293
  })
996
1294
  ));
997
1295
  };
998
1296
 
999
- var __defProp$g = Object.defineProperty;
1000
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
1001
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
1002
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
1003
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1004
- var __spreadValues$g = (a, b) => {
1005
- for (var prop in b || (b = {}))
1006
- if (__hasOwnProp$g.call(b, prop))
1007
- __defNormalProp$g(a, prop, b[prop]);
1008
- if (__getOwnPropSymbols$g)
1009
- for (var prop of __getOwnPropSymbols$g(b)) {
1010
- if (__propIsEnum$g.call(b, prop))
1011
- __defNormalProp$g(a, prop, b[prop]);
1012
- }
1013
- return a;
1014
- };
1015
- var __objRest$b = (source, exclude) => {
1016
- var target = {};
1017
- for (var prop in source)
1018
- if (__hasOwnProp$g.call(source, prop) && exclude.indexOf(prop) < 0)
1019
- target[prop] = source[prop];
1020
- if (source != null && __getOwnPropSymbols$g)
1021
- for (var prop of __getOwnPropSymbols$g(source)) {
1022
- if (exclude.indexOf(prop) < 0 && __propIsEnum$g.call(source, prop))
1023
- target[prop] = source[prop];
1024
- }
1025
- return target;
1026
- };
1027
- const BaseIcon = React.forwardRef(
1028
- (props, ref) => {
1029
- const _a = props, {
1030
- alt,
1031
- className,
1032
- width,
1033
- height,
1034
- cursor,
1035
- style,
1036
- children,
1037
- prefixNode,
1038
- suffixIconSrc,
1039
- src
1040
- } = _a, HTMLSpanElementProps = __objRest$b(_a, [
1041
- "alt",
1042
- "className",
1043
- "width",
1044
- "height",
1045
- "cursor",
1046
- "style",
1047
- "children",
1048
- "prefixNode",
1049
- "suffixIconSrc",
1050
- "src"
1051
- ]);
1052
- return /* @__PURE__ */ React.createElement(
1053
- "span",
1054
- __spreadValues$g({
1055
- ref,
1056
- className,
1057
- style: _.pickBy(__spreadValues$g({ cursor }, style))
1058
- }, HTMLSpanElementProps),
1059
- prefixNode,
1060
- /* @__PURE__ */ React.createElement("span", { className: "icon-inner" }, /* @__PURE__ */ React.createElement("img", { alt, src, width, height })),
1061
- children && /* @__PURE__ */ React.createElement("span", { className: "icon-children" }, children),
1062
- suffixIconSrc && /* @__PURE__ */ React.createElement("span", { className: "icon-inner suffix" }, /* @__PURE__ */ React.createElement("img", { alt, src: suffixIconSrc, width, height }))
1063
- );
1064
- }
1065
- );
1066
-
1067
- var __defProp$f = Object.defineProperty;
1068
- var __defProps$c = Object.defineProperties;
1069
- var __getOwnPropDescs$c = Object.getOwnPropertyDescriptors;
1070
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
1071
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
1072
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
1073
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
1074
- enumerable: true,
1075
- configurable: true,
1076
- writable: true,
1077
- value
1078
- }) : obj[key] = value;
1079
- var __spreadValues$f = (a, b) => {
1080
- for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
1081
- if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
1082
- if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
1083
- }
1084
- return a;
1085
- };
1086
- var __spreadProps$c = (a, b) => __defProps$c(a, __getOwnPropDescs$c(b));
1087
- var __objRest$a = (source, exclude) => {
1088
- var target = {};
1089
- for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
1090
- if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
1091
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
1092
- }
1093
- return target;
1094
- };
1095
- const IconWrapper = "i1mrf09m";
1096
- const Icon = React.forwardRef((props, ref) => {
1097
- const _a = props,
1098
- {
1099
- src,
1100
- hoverSrc,
1101
- active,
1102
- activeSrc,
1103
- onMouseEnter,
1104
- onMouseLeave,
1105
- onMouseMove,
1106
- className,
1107
- iconWidth = 16,
1108
- iconHeight,
1109
- cursor,
1110
- style,
1111
- children,
1112
- isRotate,
1113
- prefix,
1114
- suffix
1115
- } = _a,
1116
- restProps = __objRest$a(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "children", "isRotate", "prefix", "suffix"]);
1117
- const [hover, setHover] = useState(false);
1118
- const _src = useMemo(() => {
1119
- if (active && activeSrc) {
1120
- return activeSrc;
1121
- }
1122
- if (hover && hoverSrc) {
1123
- return hoverSrc;
1124
- }
1125
- return src;
1126
- }, [active, activeSrc, hover, hoverSrc, src]);
1127
- const suffixIconSrc = useMemo(() => {
1128
- if (!suffix) {
1129
- return void 0;
1130
- }
1131
- const {
1132
- activeSrc: activeSrc2,
1133
- hoverSrc: hoverSrc2,
1134
- src: src2
1135
- } = suffix;
1136
- if (active && activeSrc2) {
1137
- return activeSrc2;
1138
- }
1139
- if (hover && hoverSrc2) {
1140
- return hoverSrc2;
1141
- }
1142
- return src2;
1143
- }, [active, hover, suffix]);
1144
- return /* @__PURE__ */React.createElement(BaseIcon, __spreadProps$c(__spreadValues$f({
1145
- src: _src,
1146
- className: cs(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
1147
- suffixIconSrc,
1148
- height: iconHeight,
1149
- width: iconWidth,
1150
- prefixNode: prefix,
1151
- style: _.pickBy(__spreadValues$f({
1152
- cursor
1153
- }, style))
1154
- }, restProps), {
1155
- onMouseEnter: e => {
1156
- onMouseEnter == null ? void 0 : onMouseEnter(e);
1157
- if (hover) {
1158
- setHover(true);
1159
- }
1160
- },
1161
- onMouseMove: e => {
1162
- onMouseMove == null ? void 0 : onMouseMove(e);
1163
- if (hoverSrc) {
1164
- setHover(true);
1165
- }
1166
- },
1167
- onMouseLeave: e => {
1168
- onMouseLeave == null ? void 0 : onMouseLeave(e);
1169
- if (hoverSrc) {
1170
- setHover(false);
1171
- }
1172
- }
1173
- }));
1174
- });
1175
-
1176
- var img$2 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.06067 3.75725C9.45119 3.36672 10.0844 3.36672 10.4749 3.75725C10.8654 4.14777 10.8654 4.78094 10.4749 5.17146L7.64645 7.99989L10.4749 10.8283C10.8654 11.2188 10.8654 11.852 10.4749 12.2425C10.0844 12.6331 9.45119 12.6331 9.06067 12.2425L5.9494 9.13126C5.55338 8.73524 5.35537 8.53723 5.28118 8.30891C5.21592 8.10806 5.21592 7.89172 5.28118 7.69087C5.35537 7.46254 5.55338 7.26454 5.9494 6.86852L9.06067 3.75725Z' fill='%230080FF'/%3e%3c/svg%3e";
1177
-
1178
- var img$1 = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M3.05028 9.4142L6.86865 5.59582C6.87513 5.58934 6.88156 5.58292 6.88793 5.57655C7.27116 5.19336 7.46641 5.00058 7.69101 4.92761C7.89185 4.86235 8.1082 4.86235 8.30904 4.92761C8.53737 5.00179 8.73538 5.1998 9.1314 5.59582L12.9498 9.4142C13.3403 9.80472 13.3403 10.4379 12.9498 10.8284C12.5592 11.2189 11.9261 11.2189 11.5356 10.8284L8.00003 7.29288L4.46449 10.8284C4.07397 11.2189 3.4408 11.2189 3.05028 10.8284C2.65975 10.4379 2.65975 9.80472 3.05028 9.4142Z' fill='%232C3852' fill-opacity='0.6'/%3e%3c/svg%3e";
1179
-
1180
- var img = "data:image/svg+xml,%3csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M9.81662 7.33209C10.1545 7.55506 10.3235 7.66655 10.3822 7.80742C10.4336 7.93055 10.4336 8.0691 10.3822 8.19224C10.3235 8.33311 10.1545 8.4446 9.81662 8.66757L6.81921 10.6454C6.4159 10.9115 6.21424 11.0445 6.04715 11.034C5.90158 11.0248 5.76727 10.9525 5.67943 10.8361C5.57861 10.7024 5.57861 10.4608 5.57861 9.97761L5.57861 6.02205C5.57861 5.53885 5.57861 5.29726 5.67943 5.16359C5.76727 5.04714 5.90158 4.97485 6.04715 4.96567C6.21424 4.95513 6.4159 5.08819 6.81921 5.35431L9.81662 7.33209Z' fill='%230080FF'/%3e%3c/svg%3e";
1181
-
1182
1297
  const InputTagItem = /*#__PURE__*/styled('span')({
1183
1298
  name: "InputTagItem",
1184
1299
  class: "iap75of",
@@ -1209,411 +1324,43 @@ const onResizeElem = (element, callback) => {
1209
1324
  mutationObserver.observe(document.body, {
1210
1325
  attributes: true,
1211
1326
  subtree: true
1212
- });
1213
- window.addEventListener("resize", checkForChanges);
1214
- const disconnect = () => {
1215
- window.removeEventListener("resize", checkForChanges);
1216
- mutationObserver.disconnect();
1217
- };
1218
- return disconnect;
1219
- };
1220
- const useElementResize = (klass, cb, depend) => {
1221
- const klasses = transformToArray(klass);
1222
- useEffect(() => {
1223
- let els = [];
1224
- if (typeof klass === "object" && "current" in klass) {
1225
- els = klass.current ? [klass.current] : [];
1226
- } else {
1227
- klasses.forEach((klass2) => {
1228
- const arr = Array.from(
1229
- document.querySelectorAll(klass2)
1230
- );
1231
- if (arr.length > 0) {
1232
- els = [...els, ...arr];
1233
- }
1234
- });
1235
- }
1236
- if (!els.length)
1237
- return;
1238
- if (typeof ResizeObserver === "function") {
1239
- const resizeObserver = new ResizeObserver(cb);
1240
- els.forEach((el) => {
1241
- resizeObserver.observe(el);
1242
- });
1243
- return () => resizeObserver.disconnect();
1244
- } else {
1245
- return onResizeElem(Array.from(els), cb);
1246
- }
1247
- }, [cb, ...depend || []]);
1248
- };
1249
-
1250
- const SECOND = 1;
1251
- const MINUTE = 60 * SECOND;
1252
- const HOUR = 60 * MINUTE;
1253
- const DAY = 24 * HOUR;
1254
-
1255
- const EMPTY_FUNCTION = () => {
1256
- };
1257
-
1258
- function getSize(el) {
1259
- if (!el) {
1260
- return {
1261
- width: 0,
1262
- height: 0
1263
- };
1264
- }
1265
- return {
1266
- width: el.offsetWidth,
1267
- height: el.offsetHeight
1268
- };
1269
- }
1270
-
1271
- const hashHistory = createHashHistory();
1272
-
1273
- // Copyright Joyent, Inc. and other Node contributors.
1274
- //
1275
- // Permission is hereby granted, free of charge, to any person obtaining a
1276
- // copy of this software and associated documentation files (the
1277
- // "Software"), to deal in the Software without restriction, including
1278
- // without limitation the rights to use, copy, modify, merge, publish,
1279
- // distribute, sublicense, and/or sell copies of the Software, and to permit
1280
- // persons to whom the Software is furnished to do so, subject to the
1281
- // following conditions:
1282
- //
1283
- // The above copyright notice and this permission notice shall be included
1284
- // in all copies or substantial portions of the Software.
1285
- //
1286
- // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1287
- // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
1288
- // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
1289
- // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
1290
- // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
1291
- // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
1292
- // USE OR OTHER DEALINGS IN THE SOFTWARE.
1293
-
1294
-
1295
- // If obj.hasOwnProperty has been overridden, then calling
1296
- // obj.hasOwnProperty(prop) will break.
1297
- // See: https://github.com/joyent/node/issues/1707
1298
- function hasOwnProperty(obj, prop) {
1299
- return Object.prototype.hasOwnProperty.call(obj, prop);
1300
- }
1301
- var isArray = Array.isArray || function (xs) {
1302
- return Object.prototype.toString.call(xs) === '[object Array]';
1303
- };
1304
- function stringifyPrimitive(v) {
1305
- switch (typeof v) {
1306
- case 'string':
1307
- return v;
1308
-
1309
- case 'boolean':
1310
- return v ? 'true' : 'false';
1311
-
1312
- case 'number':
1313
- return isFinite(v) ? v : '';
1314
-
1315
- default:
1316
- return '';
1317
- }
1318
- }
1319
-
1320
- function stringify (obj, sep, eq, name) {
1321
- sep = sep || '&';
1322
- eq = eq || '=';
1323
- if (obj === null) {
1324
- obj = undefined;
1325
- }
1326
-
1327
- if (typeof obj === 'object') {
1328
- return map(objectKeys(obj), function(k) {
1329
- var ks = encodeURIComponent(stringifyPrimitive(k)) + eq;
1330
- if (isArray(obj[k])) {
1331
- return map(obj[k], function(v) {
1332
- return ks + encodeURIComponent(stringifyPrimitive(v));
1333
- }).join(sep);
1334
- } else {
1335
- return ks + encodeURIComponent(stringifyPrimitive(obj[k]));
1336
- }
1337
- }).join(sep);
1338
-
1339
- }
1340
-
1341
- if (!name) return '';
1342
- return encodeURIComponent(stringifyPrimitive(name)) + eq +
1343
- encodeURIComponent(stringifyPrimitive(obj));
1344
- }
1345
- function map (xs, f) {
1346
- if (xs.map) return xs.map(f);
1347
- var res = [];
1348
- for (var i = 0; i < xs.length; i++) {
1349
- res.push(f(xs[i], i));
1350
- }
1351
- return res;
1352
- }
1353
-
1354
- var objectKeys = Object.keys || function (obj) {
1355
- var res = [];
1356
- for (var key in obj) {
1357
- if (Object.prototype.hasOwnProperty.call(obj, key)) res.push(key);
1358
- }
1359
- return res;
1360
- };
1361
-
1362
- function parse(qs, sep, eq, options) {
1363
- sep = sep || '&';
1364
- eq = eq || '=';
1365
- var obj = {};
1366
-
1367
- if (typeof qs !== 'string' || qs.length === 0) {
1368
- return obj;
1369
- }
1370
-
1371
- var regexp = /\+/g;
1372
- qs = qs.split(sep);
1373
-
1374
- var maxKeys = 1000;
1375
- if (options && typeof options.maxKeys === 'number') {
1376
- maxKeys = options.maxKeys;
1377
- }
1378
-
1379
- var len = qs.length;
1380
- // maxKeys <= 0 means that we should not limit keys count
1381
- if (maxKeys > 0 && len > maxKeys) {
1382
- len = maxKeys;
1383
- }
1384
-
1385
- for (var i = 0; i < len; ++i) {
1386
- var x = qs[i].replace(regexp, '%20'),
1387
- idx = x.indexOf(eq),
1388
- kstr, vstr, k, v;
1389
-
1390
- if (idx >= 0) {
1391
- kstr = x.substr(0, idx);
1392
- vstr = x.substr(idx + 1);
1393
- } else {
1394
- kstr = x;
1395
- vstr = '';
1396
- }
1397
-
1398
- k = decodeURIComponent(kstr);
1399
- v = decodeURIComponent(vstr);
1400
-
1401
- if (!hasOwnProperty(obj, k)) {
1402
- obj[k] = v;
1403
- } else if (isArray(obj[k])) {
1404
- obj[k].push(v);
1405
- } else {
1406
- obj[k] = [obj[k], v];
1407
- }
1408
- }
1409
-
1410
- return obj;
1411
- }var qs = {
1412
- encode: stringify,
1413
- stringify: stringify,
1414
- decode: parse,
1415
- parse: parse
1416
- };
1417
-
1418
- var __defProp$e = Object.defineProperty;
1419
- var __defProps$b = Object.defineProperties;
1420
- var __getOwnPropDescs$b = Object.getOwnPropertyDescriptors;
1421
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
1422
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
1423
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
1424
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1425
- var __spreadValues$e = (a, b) => {
1426
- for (var prop in b || (b = {}))
1427
- if (__hasOwnProp$e.call(b, prop))
1428
- __defNormalProp$e(a, prop, b[prop]);
1429
- if (__getOwnPropSymbols$e)
1430
- for (var prop of __getOwnPropSymbols$e(b)) {
1431
- if (__propIsEnum$e.call(b, prop))
1432
- __defNormalProp$e(a, prop, b[prop]);
1433
- }
1434
- return a;
1435
- };
1436
- var __spreadProps$b = (a, b) => __defProps$b(a, __getOwnPropDescs$b(b));
1437
- const routes = {
1438
- overview: {
1439
- path: ""
1440
- },
1441
- datacenters: {
1442
- path: "datacenters",
1443
- views: [
1444
- "detail",
1445
- "clusters",
1446
- "hosts",
1447
- "vms",
1448
- "elfImages",
1449
- "vmTemplates",
1450
- "vmVolumes",
1451
- "disks",
1452
- "usbDevices",
1453
- "vmPlacementGroup",
1454
- "iscsiTargets",
1455
- "nvmfSubsystems",
1456
- "labels"
1457
- ]
1458
- },
1459
- clusters: {
1460
- path: "clusters",
1461
- views: [
1462
- "detail",
1463
- "hosts",
1464
- "disks",
1465
- "nics",
1466
- "usbDevices",
1467
- "vms",
1468
- "vmPlacementGroup",
1469
- "elfImages",
1470
- "vmTemplates",
1471
- "vmVolumes",
1472
- "nfsExports",
1473
- "iscsiTargets",
1474
- "nvmfSubsystems",
1475
- "connection",
1476
- "vds",
1477
- "vm_vlan",
1478
- "system_vlan",
1479
- "snapshot-plans",
1480
- "metro",
1481
- "monitor",
1482
- "alerts",
1483
- "logCollection",
1484
- "consistencyGroups",
1485
- "labels",
1486
- "hardware_topo",
1487
- "setting"
1488
- ]
1489
- },
1490
- hosts: {
1491
- path: "hosts",
1492
- views: [
1493
- "detail",
1494
- "disks",
1495
- "nics",
1496
- "vms",
1497
- "monitor",
1498
- "usbDevices",
1499
- "labels"
1500
- ]
1501
- },
1502
- vms: {
1503
- path: "vms"
1504
- },
1505
- vm_folders: {
1506
- path: "vm_folders"
1507
- },
1508
- login: {
1509
- path: "login"
1510
- },
1511
- tasks: {
1512
- path: "tasks"
1513
- },
1514
- "vm-recycle": {
1515
- path: "vm-recycle"
1516
- },
1517
- alerts: {
1518
- path: "alerts"
1519
- },
1520
- alert_rules: {
1521
- path: "alert_rules"
1522
- },
1523
- disks: { path: "disks" },
1524
- elfImages: { path: "elfImages" },
1525
- vmTemplates: { path: "vmTemplates" },
1526
- vmVolumes: { path: "vmVolumes" },
1527
- iscsiTargets: {
1528
- path: "iscsiTargets",
1529
- views: ["detail", "lun", "snapshot", "connection"]
1530
- },
1531
- nfsExports: {
1532
- path: "nfsExports",
1533
- views: ["detail", "inode"]
1534
- },
1535
- monitor: { path: "monitor" },
1536
- "report-tasks": { path: "report-tasks" },
1537
- "report-templates": { path: "report-templates" },
1538
- usbDevices: { path: "usbDevices" },
1539
- "snapshot-plans": { path: "snapshot-plans" },
1540
- vmPlacementGroup: {
1541
- path: "vmPlacementGroup"
1542
- },
1543
- settings: {
1544
- path: "settings"
1545
- },
1546
- zones: {
1547
- path: "zones",
1548
- views: ["detail", "vms", "hosts", "disks"]
1549
- },
1550
- nvmfSubsystems: {
1551
- path: "nvmfSubsystems",
1552
- views: ["detail", "namespaceGroup", "namespace", "snapshot", "connection"]
1553
- },
1554
- namespaceGroups: {
1555
- path: "namespaceGroups",
1556
- views: ["namespace"]
1557
- },
1558
- "content-library": { path: "content-library" }
1559
- };
1560
- const getAllSearch = () => {
1561
- return qs.parse(hashHistory.location.search.replace(/^\?/, ""));
1562
- };
1563
- const routeHasView = (route, view) => {
1564
- var _a;
1565
- if (!view)
1566
- return false;
1567
- return (_a = routes[route].views) == null ? void 0 : _a.includes(view);
1568
- };
1569
- const pushOrReplace = (action) => {
1570
- return (path, state) => {
1571
- if (typeof path === "object") {
1572
- const { resource, id = "", search, state: state2, keepView } = path;
1573
- let _search = {};
1574
- if (typeof search === "object") {
1575
- for (const key in search) {
1576
- if (key === "view") {
1577
- if (routeHasView(resource, search[key])) {
1578
- _search[key] = JSON.stringify(search[key]);
1579
- }
1580
- } else if (search[key] || typeof search[key] === "number") {
1581
- _search[key] = JSON.stringify(search[key]);
1582
- }
1583
- }
1584
- if (keepView && !search.view) {
1585
- const search2 = getAllSearch();
1586
- if ("view" in search2 && routeHasView(resource, search2["view"])) {
1587
- _search["view"] = JSON.stringify(search2["view"]);
1588
- }
1589
- }
1590
- _search = qs.stringify(_search);
1591
- } else {
1592
- if (!search && keepView) {
1593
- let view;
1594
- try {
1595
- view = JSON.parse(getAllSearch()["view"]);
1596
- } catch (e) {
1597
- }
1598
- _search = routeHasView(resource, view) ? `?view="${view}"` : search;
1599
- } else {
1600
- _search = search;
1327
+ });
1328
+ window.addEventListener("resize", checkForChanges);
1329
+ const disconnect = () => {
1330
+ window.removeEventListener("resize", checkForChanges);
1331
+ mutationObserver.disconnect();
1332
+ };
1333
+ return disconnect;
1334
+ };
1335
+ const useElementResize = (klass, cb, depend) => {
1336
+ const klasses = transformToArray(klass);
1337
+ useEffect(() => {
1338
+ let els = [];
1339
+ if (typeof klass === "object" && "current" in klass) {
1340
+ els = klass.current ? [klass.current] : [];
1341
+ } else {
1342
+ klasses.forEach((klass2) => {
1343
+ const arr = Array.from(
1344
+ document.querySelectorAll(klass2)
1345
+ );
1346
+ if (arr.length > 0) {
1347
+ els = [...els, ...arr];
1601
1348
  }
1602
- }
1603
- hashHistory[action]({
1604
- pathname: `/${resource}/${id}`,
1605
- state: state2,
1606
- search: _search
1607
1349
  });
1350
+ }
1351
+ if (!els.length)
1352
+ return;
1353
+ if (typeof ResizeObserver === "function") {
1354
+ const resizeObserver = new ResizeObserver(cb);
1355
+ els.forEach((el) => {
1356
+ resizeObserver.observe(el);
1357
+ });
1358
+ return () => resizeObserver.disconnect();
1608
1359
  } else {
1609
- hashHistory[action](path, state);
1360
+ return onResizeElem(Array.from(els), cb);
1610
1361
  }
1611
- };
1362
+ }, [cb, ...depend || []]);
1612
1363
  };
1613
- __spreadProps$b(__spreadValues$e({}, hashHistory), {
1614
- push: pushOrReplace("push"),
1615
- replace: pushOrReplace("replace")
1616
- });
1617
1364
 
1618
1365
  function getAllSize(classMap) {
1619
1366
  return Object.keys(classMap).reduce((prev, cur) => {
@@ -1792,7 +1539,7 @@ const FieldsString = (_a) => {
1792
1539
  size,
1793
1540
  allowClear,
1794
1541
  onClick,
1795
- prefix: focusIndicator ? /* @__PURE__ */ React.createElement(Icon, { src: img }) : void 0,
1542
+ prefix: focusIndicator ? /* @__PURE__ */ React.createElement(Icon, { src: img$4 }) : void 0,
1796
1543
  error: meta.touched && (meta.error || !meta.dirtySinceLastSubmit && meta.submitError)
1797
1544
  }), props), {
1798
1545
  onChange: (e) => {
@@ -2479,6 +2226,105 @@ const Modal = (props) => {
2479
2226
  );
2480
2227
  };
2481
2228
 
2229
+ const PaginationStyle = "p12gwtiw";
2230
+ const DropdownOverlayStyle = "d1bnu0in";
2231
+ const Pagination = props => {
2232
+ const {
2233
+ current,
2234
+ count,
2235
+ onChange,
2236
+ size,
2237
+ onSizeChange,
2238
+ showTotal = true,
2239
+ className,
2240
+ selectorVisible = true
2241
+ } = props;
2242
+ const sizeRef = useRef(size);
2243
+ useEffect(() => {
2244
+ if (sizeRef.current === size) return;
2245
+ sizeRef.current = size;
2246
+ onSizeChange == null ? void 0 : onSizeChange(size);
2247
+ }, [count, size, onSizeChange]);
2248
+ const selectOptions = useMemo(() => {
2249
+ if (!selectorVisible) return [];
2250
+ return Array.from({
2251
+ length: Math.ceil(count / size)
2252
+ }, (r, i) => {
2253
+ const value = i * size;
2254
+ const lastRange2 = value + size;
2255
+ return {
2256
+ value: i + 1,
2257
+ text: parrotI18n.t("components.pagination_range", {
2258
+ range1: value + 1,
2259
+ range2: lastRange2 > count ? count : lastRange2
2260
+ })
2261
+ };
2262
+ });
2263
+ }, [selectorVisible, count, size]);
2264
+ let lastRange = current * size;
2265
+ lastRange = lastRange > count ? count : lastRange;
2266
+ const renderLeft = () => {
2267
+ if (!showTotal) return null;
2268
+ const content = parrotI18n.t("components.pagination_total", {
2269
+ range1: (current - 1) * size + 1,
2270
+ range2: lastRange,
2271
+ total: count
2272
+ });
2273
+ if (selectorVisible) {
2274
+ return /* @__PURE__ */React.createElement(Dropdown, {
2275
+ placement: "topLeft",
2276
+ overlayClassName: DropdownOverlayStyle,
2277
+ overlay: /* @__PURE__ */React.createElement(Menu, null, /* @__PURE__ */React.createElement(Menu.ItemGroup, {
2278
+ title: parrotI18n.t("components.push_to")
2279
+ }, selectOptions.map(option => /* @__PURE__ */React.createElement(Menu.Item, {
2280
+ key: option.value,
2281
+ onClick: () => onChange(option.value)
2282
+ }, option.text))))
2283
+ }, /* @__PURE__ */React.createElement(Icon, {
2284
+ className: "pagination-left dropdown-trigger",
2285
+ src: img$8,
2286
+ hoverSrc: img$9,
2287
+ prefix: content
2288
+ }));
2289
+ }
2290
+ return /* @__PURE__ */React.createElement("span", {
2291
+ className: "pagination-left"
2292
+ }, content);
2293
+ };
2294
+ if (count === 0) {
2295
+ return null;
2296
+ }
2297
+ return /* @__PURE__ */React.createElement("div", {
2298
+ className: cs(PaginationStyle, "pagination-wrapper", className, selectorVisible && "has-selector")
2299
+ }, renderLeft(), /* @__PURE__ */React.createElement("span", {
2300
+ className: "pagination-right"
2301
+ }, current > 1 && /* @__PURE__ */React.createElement(Button, {
2302
+ className: "prev-btn",
2303
+ type: "quiet",
2304
+ size: "small",
2305
+ prefixIcon: /* @__PURE__ */React.createElement(Icon, {
2306
+ src: img$7
2307
+ }),
2308
+ onClick: () => {
2309
+ onChange == null ? void 0 : onChange(current - 1);
2310
+ }
2311
+ }, parrotI18n.t("components.previous_items", {
2312
+ size
2313
+ })), current * size < count && /* @__PURE__ */React.createElement(Button, {
2314
+ className: "next-btn",
2315
+ type: "quiet",
2316
+ size: "small",
2317
+ prefixIcon: /* @__PURE__ */React.createElement(Icon, {
2318
+ src: img$7
2319
+ }),
2320
+ onClick: () => {
2321
+ onChange == null ? void 0 : onChange(current + 1);
2322
+ }
2323
+ }, parrotI18n.t("components.next_items", {
2324
+ size
2325
+ }))));
2326
+ };
2327
+
2482
2328
  var __defProp$4 = Object.defineProperty;
2483
2329
  var __getOwnPropSymbols$4 = Object.getOwnPropertySymbols;
2484
2330
  var __hasOwnProp$4 = Object.prototype.hasOwnProperty;
@@ -2647,8 +2493,6 @@ const SearchInput = (props) => {
2647
2493
  );
2648
2494
  };
2649
2495
 
2650
- const PaginationStyle = "p12gwtiw";
2651
-
2652
2496
  const inputStyle = "igz4le8";
2653
2497
  const SimplePagination = props => {
2654
2498
  const {
@@ -2685,7 +2529,7 @@ const SimplePagination = props => {
2685
2529
  marginRight: "8px"
2686
2530
  },
2687
2531
  prefixIcon: /* @__PURE__ */React.createElement(Icon, {
2688
- src: img$2
2532
+ src: img$7
2689
2533
  }),
2690
2534
  onClick: () => {
2691
2535
  onPageChange == null ? void 0 : onPageChange(current - 1);
@@ -2712,7 +2556,7 @@ const SimplePagination = props => {
2712
2556
  marginLeft: "8px"
2713
2557
  },
2714
2558
  prefixIcon: /* @__PURE__ */React.createElement(Icon, {
2715
- src: img$2
2559
+ src: img$7
2716
2560
  }),
2717
2561
  onClick: () => {
2718
2562
  onPageChange == null ? void 0 : onPageChange(current + 1);
@@ -2761,7 +2605,7 @@ const useTableBodyHasScrollBar = (tableBodyEl, data) => {
2761
2605
  return hasScrollBar;
2762
2606
  };
2763
2607
 
2764
- const TableLoadingStyle = "t1xo8w88";
2608
+ const TableLoadingStyle = "t1gz6wqf";
2765
2609
  const TableLoading = () => {
2766
2610
  const sizes = useElementsSize({
2767
2611
  loading: ".ant-table-wrapper .ant-spin"
@@ -2793,7 +2637,7 @@ const ColumnTitle = props => {
2793
2637
  } = props;
2794
2638
  return /* @__PURE__ */React.createElement(React.Fragment, null, title, /* @__PURE__ */React.createElement(Icon, {
2795
2639
  className: cs("order-icon", sortOrder),
2796
- src: img$1
2640
+ src: img$6
2797
2641
  }));
2798
2642
  };
2799
2643
 
@@ -2883,97 +2727,6 @@ const Table = props => {
2883
2727
  }));
2884
2728
  };
2885
2729
 
2886
- var __defProp$1 = Object.defineProperty;
2887
- var __defProps = Object.defineProperties;
2888
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2889
- var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
2890
- var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
2891
- var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
2892
- var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2893
- var __spreadValues$1 = (a, b) => {
2894
- for (var prop in b || (b = {}))
2895
- if (__hasOwnProp$1.call(b, prop))
2896
- __defNormalProp$1(a, prop, b[prop]);
2897
- if (__getOwnPropSymbols$1)
2898
- for (var prop of __getOwnPropSymbols$1(b)) {
2899
- if (__propIsEnum$1.call(b, prop))
2900
- __defNormalProp$1(a, prop, b[prop]);
2901
- }
2902
- return a;
2903
- };
2904
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2905
- var __objRest$1 = (source, exclude) => {
2906
- var target = {};
2907
- for (var prop in source)
2908
- if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
2909
- target[prop] = source[prop];
2910
- if (source != null && __getOwnPropSymbols$1)
2911
- for (var prop of __getOwnPropSymbols$1(source)) {
2912
- if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
2913
- target[prop] = source[prop];
2914
- }
2915
- return target;
2916
- };
2917
- let componentId = 0;
2918
- const Tooltip = (props) => {
2919
- const _a = props, {
2920
- followMouse,
2921
- overlayClassName,
2922
- overlayStyle,
2923
- children
2924
- } = _a, restProps = __objRest$1(_a, [
2925
- "followMouse",
2926
- "overlayClassName",
2927
- "overlayStyle",
2928
- "children"
2929
- ]);
2930
- const id = useRef(++componentId);
2931
- const uniquePopupClass = `kit-popup-${id.current}`;
2932
- const uniqueContainerClass = `kit-tooltip-${id.current}`;
2933
- const _children = useMemo(() => {
2934
- if (followMouse) {
2935
- const child = React.isValidElement(children) ? children : /* @__PURE__ */ React.createElement("span", null, children);
2936
- return React.cloneElement(child, {
2937
- className: cs(child.props.className, uniqueContainerClass)
2938
- });
2939
- } else {
2940
- return children;
2941
- }
2942
- }, [children, followMouse, uniqueContainerClass]);
2943
- const onmousemove = useCallback(
2944
- (event) => {
2945
- const popup = document.querySelector(`.${uniquePopupClass}`);
2946
- if (!popup)
2947
- return;
2948
- popup.style.left = event.pageX + "px";
2949
- popup.style.top = event.pageY + "px";
2950
- },
2951
- [uniquePopupClass]
2952
- );
2953
- useEffect(() => {
2954
- if (followMouse) {
2955
- const container = document.querySelector(
2956
- `.${uniqueContainerClass}`
2957
- );
2958
- container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
2959
- return () => {
2960
- container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
2961
- };
2962
- }
2963
- }, [followMouse, onmousemove, uniqueContainerClass]);
2964
- return /* @__PURE__ */ React.createElement(
2965
- Tooltip$1,
2966
- __spreadProps(__spreadValues$1({}, restProps), {
2967
- overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
2968
- children: _children,
2969
- overlayStyle: followMouse ? __spreadValues$1({
2970
- transform: "translate(-50%, -100%)",
2971
- pointerEvents: "none"
2972
- }, overlayStyle) : overlayStyle
2973
- })
2974
- );
2975
- };
2976
-
2977
2730
  const flatTimeZones = sortBy(uniqBy(TimeZones.reduce((sum, zone) => {
2978
2731
  const utcZones = zone.utc.map(utc => {
2979
2732
  return {
@@ -3081,6 +2834,97 @@ const TimeZoneOption = ({
3081
2834
  }, /* @__PURE__ */React.createElement("span", null, timeZone.text, ", ", timeZone.abbr)));
3082
2835
  };
3083
2836
 
2837
+ var __defProp$1 = Object.defineProperty;
2838
+ var __defProps = Object.defineProperties;
2839
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
2840
+ var __getOwnPropSymbols$1 = Object.getOwnPropertySymbols;
2841
+ var __hasOwnProp$1 = Object.prototype.hasOwnProperty;
2842
+ var __propIsEnum$1 = Object.prototype.propertyIsEnumerable;
2843
+ var __defNormalProp$1 = (obj, key, value) => key in obj ? __defProp$1(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
2844
+ var __spreadValues$1 = (a, b) => {
2845
+ for (var prop in b || (b = {}))
2846
+ if (__hasOwnProp$1.call(b, prop))
2847
+ __defNormalProp$1(a, prop, b[prop]);
2848
+ if (__getOwnPropSymbols$1)
2849
+ for (var prop of __getOwnPropSymbols$1(b)) {
2850
+ if (__propIsEnum$1.call(b, prop))
2851
+ __defNormalProp$1(a, prop, b[prop]);
2852
+ }
2853
+ return a;
2854
+ };
2855
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
2856
+ var __objRest$1 = (source, exclude) => {
2857
+ var target = {};
2858
+ for (var prop in source)
2859
+ if (__hasOwnProp$1.call(source, prop) && exclude.indexOf(prop) < 0)
2860
+ target[prop] = source[prop];
2861
+ if (source != null && __getOwnPropSymbols$1)
2862
+ for (var prop of __getOwnPropSymbols$1(source)) {
2863
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$1.call(source, prop))
2864
+ target[prop] = source[prop];
2865
+ }
2866
+ return target;
2867
+ };
2868
+ let componentId = 0;
2869
+ const Tooltip = (props) => {
2870
+ const _a = props, {
2871
+ followMouse,
2872
+ overlayClassName,
2873
+ overlayStyle,
2874
+ children
2875
+ } = _a, restProps = __objRest$1(_a, [
2876
+ "followMouse",
2877
+ "overlayClassName",
2878
+ "overlayStyle",
2879
+ "children"
2880
+ ]);
2881
+ const id = useRef(++componentId);
2882
+ const uniquePopupClass = `kit-popup-${id.current}`;
2883
+ const uniqueContainerClass = `kit-tooltip-${id.current}`;
2884
+ const _children = useMemo(() => {
2885
+ if (followMouse) {
2886
+ const child = React.isValidElement(children) ? children : /* @__PURE__ */ React.createElement("span", null, children);
2887
+ return React.cloneElement(child, {
2888
+ className: cs(child.props.className, uniqueContainerClass)
2889
+ });
2890
+ } else {
2891
+ return children;
2892
+ }
2893
+ }, [children, followMouse, uniqueContainerClass]);
2894
+ const onmousemove = useCallback(
2895
+ (event) => {
2896
+ const popup = document.querySelector(`.${uniquePopupClass}`);
2897
+ if (!popup)
2898
+ return;
2899
+ popup.style.left = event.pageX + "px";
2900
+ popup.style.top = event.pageY + "px";
2901
+ },
2902
+ [uniquePopupClass]
2903
+ );
2904
+ useEffect(() => {
2905
+ if (followMouse) {
2906
+ const container = document.querySelector(
2907
+ `.${uniqueContainerClass}`
2908
+ );
2909
+ container == null ? void 0 : container.addEventListener("mousemove", onmousemove);
2910
+ return () => {
2911
+ container == null ? void 0 : container.removeEventListener("mousemove", onmousemove);
2912
+ };
2913
+ }
2914
+ }, [followMouse, onmousemove, uniqueContainerClass]);
2915
+ return /* @__PURE__ */ React.createElement(
2916
+ Tooltip$1,
2917
+ __spreadProps(__spreadValues$1({}, restProps), {
2918
+ overlayClassName: followMouse ? cs(overlayClassName, uniquePopupClass) : overlayClassName,
2919
+ children: _children,
2920
+ overlayStyle: followMouse ? __spreadValues$1({
2921
+ transform: "translate(-50%, -100%)",
2922
+ pointerEvents: "none"
2923
+ }, overlayStyle) : overlayStyle
2924
+ })
2925
+ );
2926
+ };
2927
+
3084
2928
  function getAntdKit() {
3085
2929
  const kit = {
3086
2930
  PAGINATION_SELECTOR,
@@ -3088,10 +2932,14 @@ function getAntdKit() {
3088
2932
  THEAD_SELECTOR,
3089
2933
  TBODY_SELECTOR,
3090
2934
  MODAL_WHITELIST,
2935
+ loading: Loading,
2936
+ pagination: Pagination,
3091
2937
  select: Select,
3092
2938
  option: Select$1.Option,
3093
2939
  table: Table,
3094
2940
  button: Button,
2941
+ row: Row,
2942
+ col: Col,
3095
2943
  modal: Modal,
3096
2944
  dropdown: Dropdown,
3097
2945
  tooltip: Tooltip,
@@ -3100,6 +2948,7 @@ function getAntdKit() {
3100
2948
  checkbox: Checkbox,
3101
2949
  fields,
3102
2950
  inputGroup: InputGroup,
2951
+ alert: Alert,
3103
2952
  searchInput: SearchInput,
3104
2953
  radio: Radio,
3105
2954
  radioGroup: RadioGroup,
@@ -3110,7 +2959,9 @@ function getAntdKit() {
3110
2959
  menu: Menu,
3111
2960
  menuItem: Menu.Item,
3112
2961
  menuItemGroup: Menu.ItemGroup,
2962
+ layout: Layout,
3113
2963
  autoComplete: AutoComplete,
2964
+ tag: Tag,
3114
2965
  simplePagination: SimplePagination,
3115
2966
  space: Space,
3116
2967
  timeZoneSelect: TimeZoneSelect