@nutui/nutui-react 2.3.1 → 2.3.3
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/CHANGELOG.md +27 -0
- package/dist/esm/ActionSheet/style/style.css +1 -1
- package/dist/esm/Address/style/style.css +1 -1
- package/dist/esm/Audio/style/style.css +1 -1
- package/dist/esm/Button/style/style.css +1 -1
- package/dist/esm/Calendar/style/style.css +1 -1
- package/dist/esm/CalendarItem.js +9 -3
- package/dist/esm/Cascader/style/style.css +1 -1
- package/dist/esm/Checkbox/style/style.css +1 -1
- package/dist/esm/CountDown.js +1 -8
- package/dist/esm/DatePicker/style/style.css +1 -1
- package/dist/esm/DatePicker.js +60 -81
- package/dist/esm/Dialog/style/style.css +1 -1
- package/dist/esm/FixedNav.js +1 -1
- package/dist/esm/ImagePreview/style/style.css +1 -1
- package/dist/esm/InfiniteLoading.js +9 -6
- package/dist/esm/Menu/style/style.css +1 -1
- package/dist/esm/MenuItem/style/style.css +1 -1
- package/dist/esm/NumberKeyboard/style/style.css +1 -1
- package/dist/esm/Picker/style/style.css +1 -1
- package/dist/esm/Picker.js +1 -1
- package/dist/esm/Popover/style/style.css +1 -1
- package/dist/esm/Popup/style/style.css +1 -1
- package/dist/esm/PullToRefresh.js +11 -33
- package/dist/esm/Radio/style/style.css +1 -1
- package/dist/esm/ShortPassword/style/style.css +1 -1
- package/dist/esm/SideNavBar/style/style.css +1 -1
- package/dist/esm/Swiper.js +120 -167
- package/dist/esm/Tabbar.js +13 -12
- package/dist/esm/Table/style/style.css +1 -1
- package/dist/esm/Table.js +97 -12
- package/dist/esm/TimeSelect/style/style.css +1 -1
- package/dist/esm/Tour/style/style.css +1 -1
- package/dist/esm/cascader2.js +19 -3
- package/dist/esm/formitem2.js +1 -0
- package/dist/esm/pad-zero.js +11 -0
- package/dist/esm/tabbaritem2.js +11 -9
- package/dist/esm/types/src/packages/address/address.d.ts +1 -1
- package/dist/esm/types/src/packages/address/address.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/address/existRender.d.ts +1 -1
- package/dist/esm/types/src/packages/address/existRender.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/animate.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/animate.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/index.d.ts +1 -1
- package/dist/esm/types/src/packages/animate/index.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/calendar/calendar.d.ts +1 -1
- package/dist/esm/types/src/packages/calendar/calendar.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/calendar/utils.d.ts +1 -1
- package/dist/esm/types/src/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/esm/types/src/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/cascader/cascader.d.ts +4 -0
- package/dist/esm/types/src/packages/cascader/cascader.taro.d.ts +4 -0
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.d.ts +1 -1
- package/dist/esm/types/src/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/configprovider/types.d.ts +1 -1
- package/dist/esm/types/src/packages/fixednav/fixednav.d.ts +2 -6
- package/dist/esm/types/src/packages/fixednav/fixednav.taro.d.ts +2 -6
- package/dist/esm/types/src/packages/fixednav/index.d.ts +2 -1
- package/dist/esm/types/src/packages/fixednav/index.taro.d.ts +2 -1
- package/dist/esm/types/src/packages/fixednav/types.d.ts +12 -0
- package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.d.ts +1 -0
- package/dist/esm/types/src/packages/pulltorefresh/pulltorefresh.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/radiogroup/radiogroup.d.ts +1 -1
- package/dist/esm/types/src/packages/radiogroup/radiogroup.taro.d.ts +1 -1
- package/dist/esm/types/src/packages/tabbar/context.d.ts +9 -0
- package/dist/esm/types/src/packages/tabbar/index.d.ts +1 -0
- package/dist/esm/types/src/packages/tabbar/index.taro.d.ts +1 -0
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.d.ts +0 -5
- package/dist/esm/types/src/packages/tabbaritem/tabbaritem.taro.d.ts +0 -5
- package/dist/esm/types/src/packages/table/types.d.ts +2 -0
- package/dist/esm/types/src/packages/table/useTableSticky.d.ts +8 -0
- package/dist/esm/types/src/packages/virtuallist/utils.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/esm/types/src/packages/virtuallist/virtuallist.taro.d.ts +1 -1
- package/dist/esm/types/src/utils/is-date.d.ts +1 -0
- package/dist/esm/types/src/utils/pad-zero.d.ts +1 -0
- package/dist/esm/types/src/utils/use-touch.d.ts +2 -0
- package/dist/esm/use-touch.js +7 -0
- package/dist/locales/base.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/id-ID.js +1 -1
- package/dist/locales/tr-TR.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/locales/zh-TW.js +1 -1
- package/dist/locales/zh-UG.js +1 -1
- package/dist/nutui.react.es.js +713 -672
- package/dist/nutui.react.umd.js +712 -671
- package/dist/packages/cascader/cascader.scss +1 -6
- package/dist/packages/checkbox/checkbox.scss +3 -0
- package/dist/packages/menuitem/menuitem.scss +1 -1
- package/dist/packages/popup/popup.scss +2 -2
- package/dist/packages/table/table.scss +82 -9
- package/dist/style.css +1 -1
- package/dist/style.mjs +1 -1
- package/dist/styles/variables-jmapp.scss +9 -2
- package/dist/styles/variables.scss +10 -3
- package/dist/types/packages/address/address.d.ts +1 -1
- package/dist/types/packages/address/address.taro.d.ts +1 -1
- package/dist/types/packages/address/existRender.d.ts +1 -1
- package/dist/types/packages/address/existRender.taro.d.ts +1 -1
- package/dist/types/packages/animate/animate.d.ts +1 -1
- package/dist/types/packages/animate/animate.taro.d.ts +1 -1
- package/dist/types/packages/animate/index.d.ts +1 -1
- package/dist/types/packages/animate/index.taro.d.ts +1 -1
- package/dist/types/packages/calendar/calendar.d.ts +1 -1
- package/dist/types/packages/calendar/calendar.taro.d.ts +1 -1
- package/dist/types/packages/calendar/utils.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
- package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
- package/dist/types/packages/cascader/cascader.d.ts +4 -0
- package/dist/types/packages/cascader/cascader.taro.d.ts +4 -0
- package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +1 -1
- package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +1 -1
- package/dist/types/packages/configprovider/types.d.ts +1 -1
- package/dist/types/packages/fixednav/fixednav.d.ts +2 -6
- package/dist/types/packages/fixednav/fixednav.taro.d.ts +2 -6
- package/dist/types/packages/fixednav/index.d.ts +2 -1
- package/dist/types/packages/fixednav/index.taro.d.ts +2 -1
- package/dist/types/packages/fixednav/types.d.ts +12 -0
- package/dist/types/packages/pulltorefresh/pulltorefresh.d.ts +7 -2
- package/dist/types/packages/pulltorefresh/pulltorefresh.taro.d.ts +1 -0
- package/dist/types/packages/radiogroup/radiogroup.d.ts +1 -1
- package/dist/types/packages/radiogroup/radiogroup.taro.d.ts +1 -1
- package/dist/types/packages/tabbar/context.d.ts +9 -0
- package/dist/types/packages/tabbar/index.d.ts +1 -0
- package/dist/types/packages/tabbar/index.taro.d.ts +1 -0
- package/dist/types/packages/tabbaritem/tabbaritem.d.ts +0 -5
- package/dist/types/packages/tabbaritem/tabbaritem.taro.d.ts +0 -5
- package/dist/types/packages/table/types.d.ts +2 -0
- package/dist/types/packages/table/useTableSticky.d.ts +8 -0
- package/dist/types/packages/virtuallist/utils.d.ts +1 -1
- package/dist/types/packages/virtuallist/virtuallist.d.ts +1 -1
- package/dist/types/packages/virtuallist/virtuallist.taro.d.ts +1 -1
- package/dist/types/utils/is-date.d.ts +1 -0
- package/dist/types/utils/pad-zero.d.ts +1 -0
- package/dist/types/utils/use-touch.d.ts +2 -0
- package/package.json +2 -2
- /package/dist/esm/types/src/packages/address/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/animate/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/calendar/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/checkboxgroup/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/radiogroup/{type.d.ts → types.d.ts} +0 -0
- /package/dist/esm/types/src/packages/virtuallist/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/address/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/animate/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/calendar/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/checkboxgroup/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/radiogroup/{type.d.ts → types.d.ts} +0 -0
- /package/dist/types/packages/virtuallist/{type.d.ts → types.d.ts} +0 -0
package/dist/nutui.react.umd.js
CHANGED
|
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
|
|
|
8
8
|
return value;
|
|
9
9
|
};
|
|
10
10
|
/*!
|
|
11
|
-
* @nutui/nutui-react v2.3.
|
|
11
|
+
* @nutui/nutui-react v2.3.3 Fri Dec 22 2023 17:49:13 GMT+0800 (China Standard Time)
|
|
12
12
|
* (c) 2023 @jdf2e.
|
|
13
13
|
* Released under the MIT License.
|
|
14
14
|
*/
|
|
@@ -85,14 +85,7 @@ var __publicField = (obj, key, value) => {
|
|
|
85
85
|
})(classnames);
|
|
86
86
|
var classnamesExports = classnames.exports;
|
|
87
87
|
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
88
|
-
var
|
|
89
|
-
get exports() {
|
|
90
|
-
return Y;
|
|
91
|
-
},
|
|
92
|
-
set exports(h) {
|
|
93
|
-
Y = h;
|
|
94
|
-
}
|
|
95
|
-
}, W = {};
|
|
88
|
+
var Q = { exports: {} }, W = {};
|
|
96
89
|
/**
|
|
97
90
|
* @license React
|
|
98
91
|
* react-jsx-runtime.production.min.js
|
|
@@ -102,23 +95,23 @@ var __publicField = (obj, key, value) => {
|
|
|
102
95
|
* This source code is licensed under the MIT license found in the
|
|
103
96
|
* LICENSE file in the root directory of this source tree.
|
|
104
97
|
*/
|
|
105
|
-
var
|
|
98
|
+
var Ce;
|
|
106
99
|
function cr() {
|
|
107
|
-
if (
|
|
100
|
+
if (Ce)
|
|
108
101
|
return W;
|
|
109
|
-
|
|
110
|
-
var
|
|
111
|
-
function
|
|
112
|
-
var f,
|
|
113
|
-
|
|
102
|
+
Ce = 1;
|
|
103
|
+
var P = React, T = Symbol.for("react.element"), D = Symbol.for("react.fragment"), E = Object.prototype.hasOwnProperty, w = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, x = { key: true, ref: true, __self: true, __source: true };
|
|
104
|
+
function C(m, c6, _) {
|
|
105
|
+
var f, h = {}, g = null, O = null;
|
|
106
|
+
_ !== void 0 && (g = "" + _), c6.key !== void 0 && (g = "" + c6.key), c6.ref !== void 0 && (O = c6.ref);
|
|
114
107
|
for (f in c6)
|
|
115
|
-
|
|
116
|
-
if (
|
|
117
|
-
for (f in c6 =
|
|
118
|
-
|
|
119
|
-
return { $$typeof:
|
|
108
|
+
E.call(c6, f) && !x.hasOwnProperty(f) && (h[f] = c6[f]);
|
|
109
|
+
if (m && m.defaultProps)
|
|
110
|
+
for (f in c6 = m.defaultProps, c6)
|
|
111
|
+
h[f] === void 0 && (h[f] = c6[f]);
|
|
112
|
+
return { $$typeof: T, type: m, key: g, ref: O, props: h, _owner: w.current };
|
|
120
113
|
}
|
|
121
|
-
return W.Fragment = D, W.jsx =
|
|
114
|
+
return W.Fragment = D, W.jsx = C, W.jsxs = C, W;
|
|
122
115
|
}
|
|
123
116
|
var N = {};
|
|
124
117
|
/**
|
|
@@ -130,25 +123,25 @@ var __publicField = (obj, key, value) => {
|
|
|
130
123
|
* This source code is licensed under the MIT license found in the
|
|
131
124
|
* LICENSE file in the root directory of this source tree.
|
|
132
125
|
*/
|
|
133
|
-
var
|
|
126
|
+
var Oe;
|
|
134
127
|
function fr() {
|
|
135
|
-
return
|
|
136
|
-
var
|
|
137
|
-
function
|
|
128
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
129
|
+
var P = React, T = Symbol.for("react.element"), D = Symbol.for("react.portal"), E = Symbol.for("react.fragment"), w = Symbol.for("react.strict_mode"), x = Symbol.for("react.profiler"), C = Symbol.for("react.provider"), m = Symbol.for("react.context"), c6 = Symbol.for("react.forward_ref"), _ = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), g = Symbol.for("react.lazy"), O = Symbol.for("react.offscreen"), A = Symbol.iterator, B = "@@iterator";
|
|
130
|
+
function R(e2) {
|
|
138
131
|
if (e2 === null || typeof e2 != "object")
|
|
139
132
|
return null;
|
|
140
|
-
var r2 = A && e2[A] || e2[
|
|
133
|
+
var r2 = A && e2[A] || e2[B];
|
|
141
134
|
return typeof r2 == "function" ? r2 : null;
|
|
142
135
|
}
|
|
143
|
-
var j =
|
|
136
|
+
var j = P.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
144
137
|
function d(e2) {
|
|
145
138
|
{
|
|
146
139
|
for (var r2 = arguments.length, t2 = new Array(r2 > 1 ? r2 - 1 : 0), n = 1; n < r2; n++)
|
|
147
140
|
t2[n - 1] = arguments[n];
|
|
148
|
-
|
|
141
|
+
ke("error", e2, t2);
|
|
149
142
|
}
|
|
150
143
|
}
|
|
151
|
-
function
|
|
144
|
+
function ke(e2, r2, t2) {
|
|
152
145
|
{
|
|
153
146
|
var n = j.ReactDebugCurrentFrame, i = n.getStackAddendum();
|
|
154
147
|
i !== "" && (r2 += "%s", t2 = t2.concat([i]));
|
|
@@ -158,26 +151,26 @@ var __publicField = (obj, key, value) => {
|
|
|
158
151
|
u.unshift("Warning: " + r2), Function.prototype.apply.call(console[e2], console, u);
|
|
159
152
|
}
|
|
160
153
|
}
|
|
161
|
-
var
|
|
162
|
-
|
|
163
|
-
function
|
|
164
|
-
return !!(typeof e2 == "string" || typeof e2 == "function" || e2 ===
|
|
154
|
+
var Fe = false, De = false, Ae = false, Ie = false, $e = false, re;
|
|
155
|
+
re = Symbol.for("react.module.reference");
|
|
156
|
+
function We(e2) {
|
|
157
|
+
return !!(typeof e2 == "string" || typeof e2 == "function" || e2 === E || e2 === x || $e || e2 === w || e2 === _ || e2 === f || Ie || e2 === O || Fe || De || Ae || typeof e2 == "object" && e2 !== null && (e2.$$typeof === g || e2.$$typeof === h || e2.$$typeof === C || e2.$$typeof === m || e2.$$typeof === c6 || // This needs to include all possible module reference object
|
|
165
158
|
// types supported by any Flight configuration anywhere since
|
|
166
159
|
// we don't know which Flight build this will end up being used
|
|
167
160
|
// with.
|
|
168
|
-
e2.$$typeof ===
|
|
161
|
+
e2.$$typeof === re || e2.getModuleId !== void 0));
|
|
169
162
|
}
|
|
170
|
-
function
|
|
163
|
+
function Ne(e2, r2, t2) {
|
|
171
164
|
var n = e2.displayName;
|
|
172
165
|
if (n)
|
|
173
166
|
return n;
|
|
174
167
|
var i = r2.displayName || r2.name || "";
|
|
175
168
|
return i !== "" ? t2 + "(" + i + ")" : t2;
|
|
176
169
|
}
|
|
177
|
-
function
|
|
170
|
+
function te(e2) {
|
|
178
171
|
return e2.displayName || "Context";
|
|
179
172
|
}
|
|
180
|
-
function
|
|
173
|
+
function b(e2) {
|
|
181
174
|
if (e2 == null)
|
|
182
175
|
return null;
|
|
183
176
|
if (typeof e2.tag == "number" && d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e2 == "function")
|
|
@@ -185,36 +178,36 @@ var __publicField = (obj, key, value) => {
|
|
|
185
178
|
if (typeof e2 == "string")
|
|
186
179
|
return e2;
|
|
187
180
|
switch (e2) {
|
|
188
|
-
case
|
|
181
|
+
case E:
|
|
189
182
|
return "Fragment";
|
|
190
183
|
case D:
|
|
191
184
|
return "Portal";
|
|
192
185
|
case x:
|
|
193
186
|
return "Profiler";
|
|
194
|
-
case
|
|
187
|
+
case w:
|
|
195
188
|
return "StrictMode";
|
|
196
|
-
case
|
|
189
|
+
case _:
|
|
197
190
|
return "Suspense";
|
|
198
191
|
case f:
|
|
199
192
|
return "SuspenseList";
|
|
200
193
|
}
|
|
201
194
|
if (typeof e2 == "object")
|
|
202
195
|
switch (e2.$$typeof) {
|
|
203
|
-
case
|
|
196
|
+
case m:
|
|
204
197
|
var r2 = e2;
|
|
205
|
-
return
|
|
206
|
-
case
|
|
198
|
+
return te(r2) + ".Consumer";
|
|
199
|
+
case C:
|
|
207
200
|
var t2 = e2;
|
|
208
|
-
return
|
|
201
|
+
return te(t2._context) + ".Provider";
|
|
209
202
|
case c6:
|
|
210
|
-
return
|
|
211
|
-
case
|
|
203
|
+
return Ne(e2, e2.render, "ForwardRef");
|
|
204
|
+
case h:
|
|
212
205
|
var n = e2.displayName || null;
|
|
213
|
-
return n !== null ? n :
|
|
214
|
-
case
|
|
206
|
+
return n !== null ? n : b(e2.type) || "Memo";
|
|
207
|
+
case g: {
|
|
215
208
|
var i = e2, u = i._payload, o2 = i._init;
|
|
216
209
|
try {
|
|
217
|
-
return
|
|
210
|
+
return b(o2(u));
|
|
218
211
|
} catch {
|
|
219
212
|
return null;
|
|
220
213
|
}
|
|
@@ -222,18 +215,18 @@ var __publicField = (obj, key, value) => {
|
|
|
222
215
|
}
|
|
223
216
|
return null;
|
|
224
217
|
}
|
|
225
|
-
var
|
|
226
|
-
function
|
|
218
|
+
var S = Object.assign, I = 0, ne, ae, oe, ie, ue, se, le;
|
|
219
|
+
function ce() {
|
|
227
220
|
}
|
|
228
|
-
|
|
229
|
-
function
|
|
221
|
+
ce.__reactDisabledLog = true;
|
|
222
|
+
function Ye() {
|
|
230
223
|
{
|
|
231
224
|
if (I === 0) {
|
|
232
|
-
|
|
225
|
+
ne = console.log, ae = console.info, oe = console.warn, ie = console.error, ue = console.group, se = console.groupCollapsed, le = console.groupEnd;
|
|
233
226
|
var e2 = {
|
|
234
227
|
configurable: true,
|
|
235
228
|
enumerable: true,
|
|
236
|
-
value:
|
|
229
|
+
value: ce,
|
|
237
230
|
writable: true
|
|
238
231
|
};
|
|
239
232
|
Object.defineProperties(console, {
|
|
@@ -249,7 +242,7 @@ var __publicField = (obj, key, value) => {
|
|
|
249
242
|
I++;
|
|
250
243
|
}
|
|
251
244
|
}
|
|
252
|
-
function
|
|
245
|
+
function Le() {
|
|
253
246
|
{
|
|
254
247
|
if (I--, I === 0) {
|
|
255
248
|
var e2 = {
|
|
@@ -258,65 +251,65 @@ var __publicField = (obj, key, value) => {
|
|
|
258
251
|
writable: true
|
|
259
252
|
};
|
|
260
253
|
Object.defineProperties(console, {
|
|
261
|
-
log:
|
|
262
|
-
value: te
|
|
263
|
-
}),
|
|
264
|
-
info: P({}, e2, {
|
|
254
|
+
log: S({}, e2, {
|
|
265
255
|
value: ne
|
|
266
256
|
}),
|
|
267
|
-
|
|
257
|
+
info: S({}, e2, {
|
|
268
258
|
value: ae
|
|
269
259
|
}),
|
|
270
|
-
|
|
260
|
+
warn: S({}, e2, {
|
|
271
261
|
value: oe
|
|
272
262
|
}),
|
|
273
|
-
|
|
263
|
+
error: S({}, e2, {
|
|
274
264
|
value: ie
|
|
275
265
|
}),
|
|
276
|
-
|
|
266
|
+
group: S({}, e2, {
|
|
277
267
|
value: ue
|
|
278
268
|
}),
|
|
279
|
-
|
|
269
|
+
groupCollapsed: S({}, e2, {
|
|
280
270
|
value: se
|
|
271
|
+
}),
|
|
272
|
+
groupEnd: S({}, e2, {
|
|
273
|
+
value: le
|
|
281
274
|
})
|
|
282
275
|
});
|
|
283
276
|
}
|
|
284
277
|
I < 0 && d("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
285
278
|
}
|
|
286
279
|
}
|
|
287
|
-
var
|
|
288
|
-
function
|
|
280
|
+
var q = j.ReactCurrentDispatcher, J;
|
|
281
|
+
function Y(e2, r2, t2) {
|
|
289
282
|
{
|
|
290
|
-
if (
|
|
283
|
+
if (J === void 0)
|
|
291
284
|
try {
|
|
292
285
|
throw Error();
|
|
293
286
|
} catch (i) {
|
|
294
287
|
var n = i.stack.trim().match(/\n( *(at )?)/);
|
|
295
|
-
|
|
288
|
+
J = n && n[1] || "";
|
|
296
289
|
}
|
|
297
290
|
return `
|
|
298
|
-
` +
|
|
291
|
+
` + J + e2;
|
|
299
292
|
}
|
|
300
293
|
}
|
|
301
|
-
var
|
|
294
|
+
var G = false, L;
|
|
302
295
|
{
|
|
303
|
-
var
|
|
304
|
-
|
|
296
|
+
var Ve = typeof WeakMap == "function" ? WeakMap : Map;
|
|
297
|
+
L = new Ve();
|
|
305
298
|
}
|
|
306
|
-
function
|
|
307
|
-
if (!e2 ||
|
|
299
|
+
function fe(e2, r2) {
|
|
300
|
+
if (!e2 || G)
|
|
308
301
|
return "";
|
|
309
302
|
{
|
|
310
|
-
var t2 =
|
|
303
|
+
var t2 = L.get(e2);
|
|
311
304
|
if (t2 !== void 0)
|
|
312
305
|
return t2;
|
|
313
306
|
}
|
|
314
307
|
var n;
|
|
315
|
-
|
|
308
|
+
G = true;
|
|
316
309
|
var i = Error.prepareStackTrace;
|
|
317
310
|
Error.prepareStackTrace = void 0;
|
|
318
311
|
var u;
|
|
319
|
-
u =
|
|
312
|
+
u = q.current, q.current = null, Ye();
|
|
320
313
|
try {
|
|
321
314
|
if (r2) {
|
|
322
315
|
var o2 = function() {
|
|
@@ -329,29 +322,29 @@ var __publicField = (obj, key, value) => {
|
|
|
329
322
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
330
323
|
try {
|
|
331
324
|
Reflect.construct(o2, []);
|
|
332
|
-
} catch (
|
|
333
|
-
n =
|
|
325
|
+
} catch (y) {
|
|
326
|
+
n = y;
|
|
334
327
|
}
|
|
335
328
|
Reflect.construct(e2, [], o2);
|
|
336
329
|
} else {
|
|
337
330
|
try {
|
|
338
331
|
o2.call();
|
|
339
|
-
} catch (
|
|
340
|
-
n =
|
|
332
|
+
} catch (y) {
|
|
333
|
+
n = y;
|
|
341
334
|
}
|
|
342
335
|
e2.call(o2.prototype);
|
|
343
336
|
}
|
|
344
337
|
} else {
|
|
345
338
|
try {
|
|
346
339
|
throw Error();
|
|
347
|
-
} catch (
|
|
348
|
-
n =
|
|
340
|
+
} catch (y) {
|
|
341
|
+
n = y;
|
|
349
342
|
}
|
|
350
343
|
e2();
|
|
351
344
|
}
|
|
352
|
-
} catch (
|
|
353
|
-
if (
|
|
354
|
-
for (var a2 =
|
|
345
|
+
} catch (y) {
|
|
346
|
+
if (y && n && typeof y.stack == "string") {
|
|
347
|
+
for (var a2 = y.stack.split(`
|
|
355
348
|
`), v = n.stack.split(`
|
|
356
349
|
`), s2 = a2.length - 1, l2 = v.length - 1; s2 >= 1 && l2 >= 0 && a2[s2] !== v[l2]; )
|
|
357
350
|
l2--;
|
|
@@ -362,65 +355,65 @@ var __publicField = (obj, key, value) => {
|
|
|
362
355
|
if (s2--, l2--, l2 < 0 || a2[s2] !== v[l2]) {
|
|
363
356
|
var p = `
|
|
364
357
|
` + a2[s2].replace(" at new ", " at ");
|
|
365
|
-
return e2.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e2.displayName)), typeof e2 == "function" &&
|
|
358
|
+
return e2.displayName && p.includes("<anonymous>") && (p = p.replace("<anonymous>", e2.displayName)), typeof e2 == "function" && L.set(e2, p), p;
|
|
366
359
|
}
|
|
367
360
|
while (s2 >= 1 && l2 >= 0);
|
|
368
361
|
break;
|
|
369
362
|
}
|
|
370
363
|
}
|
|
371
364
|
} finally {
|
|
372
|
-
|
|
365
|
+
G = false, q.current = u, Le(), Error.prepareStackTrace = i;
|
|
373
366
|
}
|
|
374
|
-
var F = e2 ? e2.displayName || e2.name : "",
|
|
375
|
-
return typeof e2 == "function" &&
|
|
367
|
+
var F = e2 ? e2.displayName || e2.name : "", we = F ? Y(F) : "";
|
|
368
|
+
return typeof e2 == "function" && L.set(e2, we), we;
|
|
376
369
|
}
|
|
377
|
-
function
|
|
378
|
-
return
|
|
370
|
+
function Me(e2, r2, t2) {
|
|
371
|
+
return fe(e2, false);
|
|
379
372
|
}
|
|
380
|
-
function
|
|
373
|
+
function Ue(e2) {
|
|
381
374
|
var r2 = e2.prototype;
|
|
382
375
|
return !!(r2 && r2.isReactComponent);
|
|
383
376
|
}
|
|
384
|
-
function
|
|
377
|
+
function V2(e2, r2, t2) {
|
|
385
378
|
if (e2 == null)
|
|
386
379
|
return "";
|
|
387
380
|
if (typeof e2 == "function")
|
|
388
|
-
return
|
|
381
|
+
return fe(e2, Ue(e2));
|
|
389
382
|
if (typeof e2 == "string")
|
|
390
|
-
return
|
|
383
|
+
return Y(e2);
|
|
391
384
|
switch (e2) {
|
|
392
|
-
case
|
|
393
|
-
return
|
|
385
|
+
case _:
|
|
386
|
+
return Y("Suspense");
|
|
394
387
|
case f:
|
|
395
|
-
return
|
|
388
|
+
return Y("SuspenseList");
|
|
396
389
|
}
|
|
397
390
|
if (typeof e2 == "object")
|
|
398
391
|
switch (e2.$$typeof) {
|
|
399
392
|
case c6:
|
|
400
|
-
return
|
|
401
|
-
case
|
|
402
|
-
return
|
|
403
|
-
case
|
|
393
|
+
return Me(e2.render);
|
|
394
|
+
case h:
|
|
395
|
+
return V2(e2.type, r2, t2);
|
|
396
|
+
case g: {
|
|
404
397
|
var n = e2, i = n._payload, u = n._init;
|
|
405
398
|
try {
|
|
406
|
-
return
|
|
399
|
+
return V2(u(i), r2, t2);
|
|
407
400
|
} catch {
|
|
408
401
|
}
|
|
409
402
|
}
|
|
410
403
|
}
|
|
411
404
|
return "";
|
|
412
405
|
}
|
|
413
|
-
var
|
|
414
|
-
function
|
|
406
|
+
var M = Object.prototype.hasOwnProperty, de = {}, ve = j.ReactDebugCurrentFrame;
|
|
407
|
+
function U(e2) {
|
|
415
408
|
if (e2) {
|
|
416
|
-
var r2 = e2._owner, t2 =
|
|
417
|
-
|
|
409
|
+
var r2 = e2._owner, t2 = V2(e2.type, e2._source, r2 ? r2.type : null);
|
|
410
|
+
ve.setExtraStackFrame(t2);
|
|
418
411
|
} else
|
|
419
|
-
|
|
412
|
+
ve.setExtraStackFrame(null);
|
|
420
413
|
}
|
|
421
|
-
function
|
|
414
|
+
function Be(e2, r2, t2, n, i) {
|
|
422
415
|
{
|
|
423
|
-
var u = Function.call.bind(
|
|
416
|
+
var u = Function.call.bind(M);
|
|
424
417
|
for (var o2 in e2)
|
|
425
418
|
if (u(e2, o2)) {
|
|
426
419
|
var a2 = void 0;
|
|
@@ -433,67 +426,67 @@ var __publicField = (obj, key, value) => {
|
|
|
433
426
|
} catch (s2) {
|
|
434
427
|
a2 = s2;
|
|
435
428
|
}
|
|
436
|
-
a2 && !(a2 instanceof Error) && (
|
|
429
|
+
a2 && !(a2 instanceof Error) && (U(i), d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t2, o2, typeof a2), U(null)), a2 instanceof Error && !(a2.message in de) && (de[a2.message] = true, U(i), d("Failed %s type: %s", t2, a2.message), U(null));
|
|
437
430
|
}
|
|
438
431
|
}
|
|
439
432
|
}
|
|
440
|
-
var
|
|
441
|
-
function
|
|
442
|
-
return
|
|
433
|
+
var qe = Array.isArray;
|
|
434
|
+
function z(e2) {
|
|
435
|
+
return qe(e2);
|
|
443
436
|
}
|
|
444
|
-
function
|
|
437
|
+
function Je(e2) {
|
|
445
438
|
{
|
|
446
439
|
var r2 = typeof Symbol == "function" && Symbol.toStringTag, t2 = r2 && e2[Symbol.toStringTag] || e2.constructor.name || "Object";
|
|
447
440
|
return t2;
|
|
448
441
|
}
|
|
449
442
|
}
|
|
450
|
-
function
|
|
443
|
+
function Ge(e2) {
|
|
451
444
|
try {
|
|
452
|
-
return
|
|
445
|
+
return pe(e2), false;
|
|
453
446
|
} catch {
|
|
454
447
|
return true;
|
|
455
448
|
}
|
|
456
449
|
}
|
|
457
|
-
function
|
|
450
|
+
function pe(e2) {
|
|
458
451
|
return "" + e2;
|
|
459
452
|
}
|
|
460
|
-
function
|
|
461
|
-
if (
|
|
462
|
-
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",
|
|
453
|
+
function he(e2) {
|
|
454
|
+
if (Ge(e2))
|
|
455
|
+
return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Je(e2)), pe(e2);
|
|
463
456
|
}
|
|
464
|
-
var $ = j.ReactCurrentOwner,
|
|
457
|
+
var $ = j.ReactCurrentOwner, ze = {
|
|
465
458
|
key: true,
|
|
466
459
|
ref: true,
|
|
467
460
|
__self: true,
|
|
468
461
|
__source: true
|
|
469
|
-
},
|
|
470
|
-
|
|
471
|
-
function
|
|
472
|
-
if (
|
|
462
|
+
}, ge, me, H;
|
|
463
|
+
H = {};
|
|
464
|
+
function He(e2) {
|
|
465
|
+
if (M.call(e2, "ref")) {
|
|
473
466
|
var r2 = Object.getOwnPropertyDescriptor(e2, "ref").get;
|
|
474
467
|
if (r2 && r2.isReactWarning)
|
|
475
468
|
return false;
|
|
476
469
|
}
|
|
477
470
|
return e2.ref !== void 0;
|
|
478
471
|
}
|
|
479
|
-
function
|
|
480
|
-
if (
|
|
472
|
+
function Ke(e2) {
|
|
473
|
+
if (M.call(e2, "key")) {
|
|
481
474
|
var r2 = Object.getOwnPropertyDescriptor(e2, "key").get;
|
|
482
475
|
if (r2 && r2.isReactWarning)
|
|
483
476
|
return false;
|
|
484
477
|
}
|
|
485
478
|
return e2.key !== void 0;
|
|
486
479
|
}
|
|
487
|
-
function
|
|
480
|
+
function Xe(e2, r2) {
|
|
488
481
|
if (typeof e2.ref == "string" && $.current && r2 && $.current.stateNode !== r2) {
|
|
489
|
-
var t2 =
|
|
490
|
-
|
|
482
|
+
var t2 = b($.current.type);
|
|
483
|
+
H[t2] || (d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', b($.current.type), e2.ref), H[t2] = true);
|
|
491
484
|
}
|
|
492
485
|
}
|
|
493
|
-
function
|
|
486
|
+
function Ze(e2, r2) {
|
|
494
487
|
{
|
|
495
488
|
var t2 = function() {
|
|
496
|
-
|
|
489
|
+
ge || (ge = true, d("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r2));
|
|
497
490
|
};
|
|
498
491
|
t2.isReactWarning = true, Object.defineProperty(e2, "key", {
|
|
499
492
|
get: t2,
|
|
@@ -501,10 +494,10 @@ var __publicField = (obj, key, value) => {
|
|
|
501
494
|
});
|
|
502
495
|
}
|
|
503
496
|
}
|
|
504
|
-
function
|
|
497
|
+
function Qe(e2, r2) {
|
|
505
498
|
{
|
|
506
499
|
var t2 = function() {
|
|
507
|
-
|
|
500
|
+
me || (me = true, d("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r2));
|
|
508
501
|
};
|
|
509
502
|
t2.isReactWarning = true, Object.defineProperty(e2, "ref", {
|
|
510
503
|
get: t2,
|
|
@@ -512,10 +505,10 @@ var __publicField = (obj, key, value) => {
|
|
|
512
505
|
});
|
|
513
506
|
}
|
|
514
507
|
}
|
|
515
|
-
var
|
|
508
|
+
var er = function(e2, r2, t2, n, i, u, o2) {
|
|
516
509
|
var a2 = {
|
|
517
510
|
// This tag allows us to uniquely identify this as a React Element
|
|
518
|
-
$$typeof:
|
|
511
|
+
$$typeof: T,
|
|
519
512
|
// Built-in properties that belong on the element
|
|
520
513
|
type: e2,
|
|
521
514
|
key: r2,
|
|
@@ -541,12 +534,12 @@ var __publicField = (obj, key, value) => {
|
|
|
541
534
|
value: i
|
|
542
535
|
}), Object.freeze && (Object.freeze(a2.props), Object.freeze(a2)), a2;
|
|
543
536
|
};
|
|
544
|
-
function
|
|
537
|
+
function rr(e2, r2, t2, n, i) {
|
|
545
538
|
{
|
|
546
539
|
var u, o2 = {}, a2 = null, v = null;
|
|
547
|
-
t2 !== void 0 && (
|
|
540
|
+
t2 !== void 0 && (he(t2), a2 = "" + t2), Ke(r2) && (he(r2.key), a2 = "" + r2.key), He(r2) && (v = r2.ref, Xe(r2, i));
|
|
548
541
|
for (u in r2)
|
|
549
|
-
|
|
542
|
+
M.call(r2, u) && !ze.hasOwnProperty(u) && (o2[u] = r2[u]);
|
|
550
543
|
if (e2 && e2.defaultProps) {
|
|
551
544
|
var s2 = e2.defaultProps;
|
|
552
545
|
for (u in s2)
|
|
@@ -554,28 +547,28 @@ var __publicField = (obj, key, value) => {
|
|
|
554
547
|
}
|
|
555
548
|
if (a2 || v) {
|
|
556
549
|
var l2 = typeof e2 == "function" ? e2.displayName || e2.name || "Unknown" : e2;
|
|
557
|
-
a2 &&
|
|
550
|
+
a2 && Ze(o2, l2), v && Qe(o2, l2);
|
|
558
551
|
}
|
|
559
|
-
return
|
|
552
|
+
return er(e2, a2, v, i, n, $.current, o2);
|
|
560
553
|
}
|
|
561
554
|
}
|
|
562
|
-
var
|
|
555
|
+
var K = j.ReactCurrentOwner, be = j.ReactDebugCurrentFrame;
|
|
563
556
|
function k(e2) {
|
|
564
557
|
if (e2) {
|
|
565
|
-
var r2 = e2._owner, t2 =
|
|
566
|
-
|
|
558
|
+
var r2 = e2._owner, t2 = V2(e2.type, e2._source, r2 ? r2.type : null);
|
|
559
|
+
be.setExtraStackFrame(t2);
|
|
567
560
|
} else
|
|
568
|
-
|
|
561
|
+
be.setExtraStackFrame(null);
|
|
569
562
|
}
|
|
570
|
-
var
|
|
571
|
-
|
|
572
|
-
function
|
|
573
|
-
return typeof e2 == "object" && e2 !== null && e2.$$typeof ===
|
|
563
|
+
var X;
|
|
564
|
+
X = false;
|
|
565
|
+
function Z(e2) {
|
|
566
|
+
return typeof e2 == "object" && e2 !== null && e2.$$typeof === T;
|
|
574
567
|
}
|
|
575
|
-
function
|
|
568
|
+
function ye() {
|
|
576
569
|
{
|
|
577
|
-
if (
|
|
578
|
-
var e2 =
|
|
570
|
+
if (K.current) {
|
|
571
|
+
var e2 = b(K.current.type);
|
|
579
572
|
if (e2)
|
|
580
573
|
return `
|
|
581
574
|
|
|
@@ -584,7 +577,7 @@ Check the render method of \`` + e2 + "`.";
|
|
|
584
577
|
return "";
|
|
585
578
|
}
|
|
586
579
|
}
|
|
587
|
-
function
|
|
580
|
+
function tr(e2) {
|
|
588
581
|
{
|
|
589
582
|
if (e2 !== void 0) {
|
|
590
583
|
var r2 = e2.fileName.replace(/^.*[\\\/]/, ""), t2 = e2.lineNumber;
|
|
@@ -595,10 +588,10 @@ Check your code at ` + r2 + ":" + t2 + ".";
|
|
|
595
588
|
return "";
|
|
596
589
|
}
|
|
597
590
|
}
|
|
598
|
-
var
|
|
599
|
-
function
|
|
591
|
+
var Ee = {};
|
|
592
|
+
function nr(e2) {
|
|
600
593
|
{
|
|
601
|
-
var r2 =
|
|
594
|
+
var r2 = ye();
|
|
602
595
|
if (!r2) {
|
|
603
596
|
var t2 = typeof e2 == "string" ? e2 : e2.displayName || e2.name;
|
|
604
597
|
t2 && (r2 = `
|
|
@@ -608,39 +601,39 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
608
601
|
return r2;
|
|
609
602
|
}
|
|
610
603
|
}
|
|
611
|
-
function
|
|
604
|
+
function _e(e2, r2) {
|
|
612
605
|
{
|
|
613
606
|
if (!e2._store || e2._store.validated || e2.key != null)
|
|
614
607
|
return;
|
|
615
608
|
e2._store.validated = true;
|
|
616
|
-
var t2 =
|
|
617
|
-
if (
|
|
609
|
+
var t2 = nr(r2);
|
|
610
|
+
if (Ee[t2])
|
|
618
611
|
return;
|
|
619
|
-
|
|
612
|
+
Ee[t2] = true;
|
|
620
613
|
var n = "";
|
|
621
|
-
e2 && e2._owner && e2._owner !==
|
|
614
|
+
e2 && e2._owner && e2._owner !== K.current && (n = " It was passed a child from " + b(e2._owner.type) + "."), k(e2), d('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t2, n), k(null);
|
|
622
615
|
}
|
|
623
616
|
}
|
|
624
|
-
function
|
|
617
|
+
function Re(e2, r2) {
|
|
625
618
|
{
|
|
626
619
|
if (typeof e2 != "object")
|
|
627
620
|
return;
|
|
628
|
-
if (
|
|
621
|
+
if (z(e2))
|
|
629
622
|
for (var t2 = 0; t2 < e2.length; t2++) {
|
|
630
623
|
var n = e2[t2];
|
|
631
|
-
|
|
624
|
+
Z(n) && _e(n, r2);
|
|
632
625
|
}
|
|
633
|
-
else if (
|
|
626
|
+
else if (Z(e2))
|
|
634
627
|
e2._store && (e2._store.validated = true);
|
|
635
628
|
else if (e2) {
|
|
636
|
-
var i =
|
|
629
|
+
var i = R(e2);
|
|
637
630
|
if (typeof i == "function" && i !== e2.entries)
|
|
638
631
|
for (var u = i.call(e2), o2; !(o2 = u.next()).done; )
|
|
639
|
-
|
|
632
|
+
Z(o2.value) && _e(o2.value, r2);
|
|
640
633
|
}
|
|
641
634
|
}
|
|
642
635
|
}
|
|
643
|
-
function
|
|
636
|
+
function ar(e2) {
|
|
644
637
|
{
|
|
645
638
|
var r2 = e2.type;
|
|
646
639
|
if (r2 == null || typeof r2 == "string")
|
|
@@ -650,22 +643,22 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
650
643
|
t2 = r2.propTypes;
|
|
651
644
|
else if (typeof r2 == "object" && (r2.$$typeof === c6 || // Note: Memo only checks outer props here.
|
|
652
645
|
// Inner props are checked in the reconciler.
|
|
653
|
-
r2.$$typeof ===
|
|
646
|
+
r2.$$typeof === h))
|
|
654
647
|
t2 = r2.propTypes;
|
|
655
648
|
else
|
|
656
649
|
return;
|
|
657
650
|
if (t2) {
|
|
658
|
-
var n =
|
|
659
|
-
|
|
660
|
-
} else if (r2.PropTypes !== void 0 && !
|
|
661
|
-
|
|
662
|
-
var i =
|
|
651
|
+
var n = b(r2);
|
|
652
|
+
Be(t2, e2.props, "prop", n, e2);
|
|
653
|
+
} else if (r2.PropTypes !== void 0 && !X) {
|
|
654
|
+
X = true;
|
|
655
|
+
var i = b(r2);
|
|
663
656
|
d("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", i || "Unknown");
|
|
664
657
|
}
|
|
665
658
|
typeof r2.getDefaultProps == "function" && !r2.getDefaultProps.isReactClassApproved && d("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
666
659
|
}
|
|
667
660
|
}
|
|
668
|
-
function
|
|
661
|
+
function or(e2) {
|
|
669
662
|
{
|
|
670
663
|
for (var r2 = Object.keys(e2.props), t2 = 0; t2 < r2.length; t2++) {
|
|
671
664
|
var n = r2[t2];
|
|
@@ -677,50 +670,49 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
677
670
|
e2.ref !== null && (k(e2), d("Invalid attribute `ref` supplied to `React.Fragment`."), k(null));
|
|
678
671
|
}
|
|
679
672
|
}
|
|
680
|
-
function
|
|
673
|
+
function Te(e2, r2, t2, n, i, u) {
|
|
681
674
|
{
|
|
682
|
-
var o2 =
|
|
675
|
+
var o2 = We(e2);
|
|
683
676
|
if (!o2) {
|
|
684
677
|
var a2 = "";
|
|
685
678
|
(e2 === void 0 || typeof e2 == "object" && e2 !== null && Object.keys(e2).length === 0) && (a2 += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
686
|
-
var v =
|
|
687
|
-
v ? a2 += v : a2 +=
|
|
679
|
+
var v = tr(i);
|
|
680
|
+
v ? a2 += v : a2 += ye();
|
|
688
681
|
var s2;
|
|
689
|
-
e2 === null ? s2 = "null" :
|
|
682
|
+
e2 === null ? s2 = "null" : z(e2) ? s2 = "array" : e2 !== void 0 && e2.$$typeof === T ? (s2 = "<" + (b(e2.type) || "Unknown") + " />", a2 = " Did you accidentally export a JSX literal instead of a component?") : s2 = typeof e2, d("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s2, a2);
|
|
690
683
|
}
|
|
691
|
-
var l2 =
|
|
684
|
+
var l2 = rr(e2, r2, t2, i, u);
|
|
692
685
|
if (l2 == null)
|
|
693
686
|
return l2;
|
|
694
687
|
if (o2) {
|
|
695
688
|
var p = r2.children;
|
|
696
689
|
if (p !== void 0)
|
|
697
690
|
if (n)
|
|
698
|
-
if (
|
|
691
|
+
if (z(p)) {
|
|
699
692
|
for (var F = 0; F < p.length; F++)
|
|
700
|
-
|
|
693
|
+
Re(p[F], e2);
|
|
701
694
|
Object.freeze && Object.freeze(p);
|
|
702
695
|
} else
|
|
703
696
|
d("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
704
697
|
else
|
|
705
|
-
|
|
698
|
+
Re(p, e2);
|
|
706
699
|
}
|
|
707
|
-
return e2 ===
|
|
700
|
+
return e2 === E ? or(l2) : ar(l2), l2;
|
|
708
701
|
}
|
|
709
702
|
}
|
|
710
|
-
function or(e2, r2, t2) {
|
|
711
|
-
return Re(e2, r2, t2, true);
|
|
712
|
-
}
|
|
713
703
|
function ir(e2, r2, t2) {
|
|
714
|
-
return
|
|
704
|
+
return Te(e2, r2, t2, true);
|
|
705
|
+
}
|
|
706
|
+
function ur(e2, r2, t2) {
|
|
707
|
+
return Te(e2, r2, t2, false);
|
|
715
708
|
}
|
|
716
|
-
var
|
|
717
|
-
N.Fragment =
|
|
709
|
+
var sr = ur, lr = ir;
|
|
710
|
+
N.Fragment = E, N.jsx = sr, N.jsxs = lr;
|
|
718
711
|
}()), N;
|
|
719
712
|
}
|
|
720
|
-
(
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
const dr = Y.Fragment, Oe = Y.jsx, pr = Y.jsxs, Pe = {
|
|
713
|
+
process.env.NODE_ENV === "production" ? Q.exports = cr() : Q.exports = fr();
|
|
714
|
+
var ee = Q.exports;
|
|
715
|
+
const dr = ee.Fragment, Se = ee.jsx, pr = ee.jsxs, xe = {
|
|
724
716
|
className: "",
|
|
725
717
|
style: void 0,
|
|
726
718
|
viewBox: " 0 0 1024 1024",
|
|
@@ -729,98 +721,98 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
729
721
|
height: "",
|
|
730
722
|
onClick: () => {
|
|
731
723
|
}
|
|
732
|
-
},
|
|
733
|
-
const { viewBox:
|
|
734
|
-
c6 && c6(
|
|
735
|
-
}, f = (
|
|
736
|
-
|
|
737
|
-
const
|
|
738
|
-
...
|
|
739
|
-
...
|
|
724
|
+
}, je = (P) => {
|
|
725
|
+
const { viewBox: T, className: D, style: E, name: w, color: x, width: C, height: m, onClick: c6 } = { ...xe, ...P }, _ = (R) => {
|
|
726
|
+
c6 && c6(R);
|
|
727
|
+
}, f = (R) => R === "" ? "" : isNaN(Number(R)) ? String(R) : R + "px", h = () => `nut-icon nut-icon-${w} ${D}`, g = {}, O = f(C || ""), A = f(m || "");
|
|
728
|
+
O && (g.width = O), A && (g.height = A);
|
|
729
|
+
const B = () => ({
|
|
730
|
+
...E,
|
|
731
|
+
...g
|
|
740
732
|
});
|
|
741
|
-
return /* @__PURE__ */
|
|
733
|
+
return /* @__PURE__ */ Se(dr, { children: /* @__PURE__ */ Se(
|
|
742
734
|
"svg",
|
|
743
735
|
{
|
|
744
|
-
className:
|
|
745
|
-
style:
|
|
746
|
-
onClick:
|
|
736
|
+
className: h(),
|
|
737
|
+
style: B(),
|
|
738
|
+
onClick: _,
|
|
747
739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
748
740
|
color: x,
|
|
749
|
-
viewBox:
|
|
750
|
-
"aria-labelledby":
|
|
741
|
+
viewBox: T,
|
|
742
|
+
"aria-labelledby": w,
|
|
751
743
|
role: "presentation",
|
|
752
|
-
children:
|
|
744
|
+
children: P.children
|
|
753
745
|
}
|
|
754
746
|
) });
|
|
755
747
|
};
|
|
756
|
-
|
|
757
|
-
const hr =
|
|
758
|
-
const t$
|
|
748
|
+
je.defaultProps = xe;
|
|
749
|
+
const hr = je;
|
|
750
|
+
const t$5 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "ArrowDown", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
759
751
|
"path",
|
|
760
752
|
{
|
|
761
|
-
d: "M158.17 289.83a42.67 42.67 0 1 0-60.34 60.34l384 384a42.67 42.67 0 0 0 60.36 0l384-384a42.67 42.67 0 1 0-60.36-60.34L512 643.
|
|
753
|
+
d: "M158.17 289.83a42.67 42.67 0 1 0-60.34 60.34l384 384a42.67 42.67 0 0 0 60.36 0l384-384a42.67 42.67 0 1 0-60.36-60.34L512 643.67z",
|
|
762
754
|
fill: "currentColor",
|
|
763
755
|
fillOpacity: "0.9"
|
|
764
756
|
}
|
|
765
757
|
) });
|
|
766
|
-
t$
|
|
767
|
-
const
|
|
758
|
+
t$5.defaultProps = xe;
|
|
759
|
+
const l$4 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "ArrowLeft", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
768
760
|
"path",
|
|
769
761
|
{
|
|
770
|
-
d: "M712.83 158.17a42.67 42.67 0 1 0-60.33-60.34l-384 384a42.67 42.67 0 0 0 0 60.36l384 384a42.67 42.67 0 1 0 60.33-60.36L359
|
|
762
|
+
d: "M712.83 158.17a42.67 42.67 0 1 0-60.33-60.34l-384 384a42.67 42.67 0 0 0 0 60.36l384 384a42.67 42.67 0 1 0 60.33-60.36L359 512z",
|
|
771
763
|
fill: "currentColor",
|
|
772
764
|
fillOpacity: "0.9"
|
|
773
765
|
}
|
|
774
766
|
) });
|
|
775
|
-
|
|
776
|
-
const t$
|
|
767
|
+
l$4.defaultProps = xe;
|
|
768
|
+
const t$4 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "ArrowUp", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
777
769
|
"path",
|
|
778
770
|
{
|
|
779
|
-
d: "M158.17 734.17a42.67 42.67 0 1 1-60.34-60.34l384-384a42.67 42.67 0 0 1 60.36 0l384 384a42.67 42.67 0 1 1-60.36 60.34L512 380.
|
|
771
|
+
d: "M158.17 734.17a42.67 42.67 0 1 1-60.34-60.34l384-384a42.67 42.67 0 0 1 60.36 0l384 384a42.67 42.67 0 1 1-60.36 60.34L512 380.33z",
|
|
780
772
|
fill: "currentColor",
|
|
781
773
|
fillOpacity: "0.9"
|
|
782
774
|
}
|
|
783
775
|
) });
|
|
784
|
-
t$
|
|
776
|
+
t$4.defaultProps = xe;
|
|
785
777
|
const o$8 = (a2) => /* @__PURE__ */ pr(hr, { ...a2, name: a2.name || "CheckChecked", viewBox: "0 0 1024 1024", children: [
|
|
786
|
-
/* @__PURE__ */
|
|
778
|
+
/* @__PURE__ */ Se(
|
|
787
779
|
"path",
|
|
788
780
|
{
|
|
789
|
-
d: "M506.65 2.82C228.01 2.82.03 230.8.03 509.44s227.98 506.62 506.62 506.62 506.62-227.98 506.63-506.62S788.11 2.82 506.65 2.
|
|
781
|
+
d: "M506.65 2.82C228.01 2.82.03 230.8.03 509.44s227.98 506.62 506.62 506.62 506.62-227.98 506.63-506.62S788.11 2.82 506.65 2.82m0 788.08c-154.8 0-281.46-126.66-281.45-281.46s126.66-281.46 281.45-281.46 281.46 126.66 281.46 281.46S661.45 790.9 506.65 790.9",
|
|
790
782
|
fill: "currentColor",
|
|
791
783
|
fillOpacity: "0.9"
|
|
792
784
|
}
|
|
793
785
|
),
|
|
794
786
|
",",
|
|
795
|
-
/* @__PURE__ */
|
|
787
|
+
/* @__PURE__ */ Se(
|
|
796
788
|
"path",
|
|
797
789
|
{
|
|
798
|
-
d: "M380 509.44a126.66 126.66 0 1 0 253.31 0 126.66 126.66 0 1 0-253.31
|
|
790
|
+
d: "M380 509.44a126.66 126.66 0 1 0 253.31 0 126.66 126.66 0 1 0-253.31 0",
|
|
799
791
|
fill: "currentColor",
|
|
800
792
|
fillOpacity: "0.9"
|
|
801
793
|
}
|
|
802
794
|
)
|
|
803
795
|
] });
|
|
804
|
-
o$8.defaultProps =
|
|
805
|
-
const l$3 = (a2) => /* @__PURE__ */
|
|
796
|
+
o$8.defaultProps = xe;
|
|
797
|
+
const l$3 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "CheckDisabled", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
806
798
|
"path",
|
|
807
799
|
{
|
|
808
|
-
d: "M506.47 0C227.97 0 .1 227.87.09 506.37s227.87 506.37 506.38 506.38 506.37-227.87 506.37-506.38S787.78 0 506.47
|
|
800
|
+
d: "M506.47 0C227.97 0 .1 227.87.09 506.37s227.87 506.37 506.38 506.38 506.37-227.87 506.37-506.38S787.78 0 506.47 0m202.55 571.08H306.73c-45.01 0-67.52-22.51-67.52-67.52 0-45.01 22.5-67.52 67.52-67.52h402.29c45.01 0 67.52 22.5 67.51 67.52 0 45.01-22.5 67.52-67.51 67.52",
|
|
809
801
|
fill: "currentColor",
|
|
810
802
|
fillOpacity: "0.9"
|
|
811
803
|
}
|
|
812
804
|
) });
|
|
813
|
-
l$3.defaultProps =
|
|
814
|
-
const o$7 = (s2) => /* @__PURE__ */
|
|
805
|
+
l$3.defaultProps = xe;
|
|
806
|
+
const o$7 = (s2) => /* @__PURE__ */ Se(hr, { ...s2, name: s2.name || "CheckNormal", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
815
807
|
"path",
|
|
816
808
|
{
|
|
817
|
-
d: "M512 1024c-136.53 0-264.53-54.04-361.24-150.76C54.05 776.53 0 648.53 0 512s54.04-264.53 150.76-361.24C247.47 54.05 375.47 0 512 0s264.53 54.04 361.24 150.76C969.95 247.47 1024 375.47 1024 512s-54.04 264.53-150.76 361.24C776.53 969.95 648.53 1024 512
|
|
809
|
+
d: "M512 1024c-136.53 0-264.53-54.04-361.24-150.76C54.05 776.53 0 648.53 0 512s54.04-264.53 150.76-361.24C247.47 54.05 375.47 0 512 0s264.53 54.04 361.24 150.76C969.95 247.47 1024 375.47 1024 512s-54.04 264.53-150.76 361.24C776.53 969.95 648.53 1024 512 1024m0-938.67c-113.78 0-221.87 45.51-301.51 125.16S85.33 398.22 85.33 512s45.51 221.87 125.16 301.51S398.22 938.67 512 938.67s221.87-45.51 301.51-125.16S938.67 625.78 938.67 512s-45.51-221.87-125.16-301.51S625.78 85.33 512 85.33",
|
|
818
810
|
fill: "currentColor",
|
|
819
811
|
fillOpacity: "0.9"
|
|
820
812
|
}
|
|
821
813
|
) });
|
|
822
|
-
o$7.defaultProps =
|
|
823
|
-
const o$6 = (a2) => /* @__PURE__ */
|
|
814
|
+
o$7.defaultProps = xe;
|
|
815
|
+
const o$6 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Check", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
824
816
|
"path",
|
|
825
817
|
{
|
|
826
818
|
d: "M998.4 245.03c-219.43 153.6-398.63 332.8-552.23 552.23-40.23 58.51-128 54.86-164.57-3.66-69.49-106.06-149.94-186.51-256-256-51.2-32.91-18.29-113.37 40.23-98.74 117.03 21.94 208.46 69.49 292.57 146.28 157.26-190.17 358.4-340.11 588.8-435.2 62.17-25.6 106.06 58.51 51.2 95.09",
|
|
@@ -828,115 +820,115 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
828
820
|
fillOpacity: "0.9"
|
|
829
821
|
}
|
|
830
822
|
) });
|
|
831
|
-
o$6.defaultProps =
|
|
832
|
-
const o$5 = (e2) => /* @__PURE__ */
|
|
823
|
+
o$6.defaultProps = xe;
|
|
824
|
+
const o$5 = (e2) => /* @__PURE__ */ Se(hr, { ...e2, name: e2.name || "Checked", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
833
825
|
"path",
|
|
834
826
|
{
|
|
835
|
-
d: "M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512
|
|
827
|
+
d: "M512 0C230.4 0 0 230.4 0 512s230.4 512 512 512 512-230.4 512-512S793.6 0 512 0m281.6 369.78c-14.22 11.38-193.42 130.84-321.42 321.42 0 0 0 2.84-2.85 2.84-8.53 5.69-48.35 36.98-88.17-8.53-39.82-51.2-62.58-99.56-142.23-142.22-2.84 0-2.84-2.85-2.84-2.85-8.53-11.38-39.82-56.89 19.91-56.88 45.51 0 91.02 11.38 162.13 73.95 5.69 5.69 14.22 5.69 17.07 0 34.13-39.82 173.51-190.58 332.8-238.93 0 0 19.91-2.85 31.29 14.22 5.69 11.38 11.38 22.76-5.69 36.98",
|
|
836
828
|
fill: "currentColor",
|
|
837
829
|
fillOpacity: "0.9"
|
|
838
830
|
}
|
|
839
831
|
) });
|
|
840
|
-
o$5.defaultProps =
|
|
841
|
-
const r$3 = (t2) => /* @__PURE__ */
|
|
832
|
+
o$5.defaultProps = xe;
|
|
833
|
+
const r$3 = (t2) => /* @__PURE__ */ Se(hr, { ...t2, name: t2.name || "Checklist", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
842
834
|
"path",
|
|
843
835
|
{
|
|
844
|
-
d: "M159.29 500.62c62.58 0 125.16 17.07 221.87 102.4 8.53 5.69 19.91 5.69 25.6 0 48.35-54.04 238.93-261.69 455.11-329.95 0 0 28.45-5.69 42.66 19.91 8.53 17.07 19.91 34.13-5.69 54.04-22.75 17.07-264.53 179.2-440.88 440.89l-2.85 2.85c-11.38 8.53-68.27 51.2-119.47-14.23-56.89-71.11-85.33-139.38-196.26-196.26-2.85 0-2.85-2.85-5.69-5.69-11.38-11.38-54.04-73.95 25.6-73.
|
|
836
|
+
d: "M159.29 500.62c62.58 0 125.16 17.07 221.87 102.4 8.53 5.69 19.91 5.69 25.6 0 48.35-54.04 238.93-261.69 455.11-329.95 0 0 28.45-5.69 42.66 19.91 8.53 17.07 19.91 34.13-5.69 54.04-22.75 17.07-264.53 179.2-440.88 440.89l-2.85 2.85c-11.38 8.53-68.27 51.2-119.47-14.23-56.89-71.11-85.33-139.38-196.26-196.26-2.85 0-2.85-2.85-5.69-5.69-11.38-11.38-54.04-73.95 25.6-73.96",
|
|
845
837
|
fill: "currentColor",
|
|
846
838
|
fillOpacity: "0.9"
|
|
847
839
|
}
|
|
848
840
|
) });
|
|
849
|
-
r$3.defaultProps =
|
|
850
|
-
const r$2 = (a2) => /* @__PURE__ */
|
|
841
|
+
r$3.defaultProps = xe;
|
|
842
|
+
const r$2 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Close", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
851
843
|
"path",
|
|
852
844
|
{
|
|
853
|
-
d: "M865.83 926.17a42.67 42.67 0 1 0 60.36-60.34L572.35 512l353.84-353.83a42.67 42.67 0 0 0-60.36-60.34L512 451.67 158.19 97.83a42.67 42.67 0 0 0-60.36 60.34L451.67 512 97.83 865.83a42.67 42.67 0 1 0 60.34 60.34L512 572.
|
|
845
|
+
d: "M865.83 926.17a42.67 42.67 0 1 0 60.36-60.34L572.35 512l353.84-353.83a42.67 42.67 0 0 0-60.36-60.34L512 451.67 158.19 97.83a42.67 42.67 0 0 0-60.36 60.34L451.67 512 97.83 865.83a42.67 42.67 0 1 0 60.34 60.34L512 572.33z",
|
|
854
846
|
fill: "currentColor",
|
|
855
847
|
fillOpacity: "0.9"
|
|
856
848
|
}
|
|
857
849
|
) });
|
|
858
|
-
r$2.defaultProps =
|
|
850
|
+
r$2.defaultProps = xe;
|
|
859
851
|
const o$4 = (a2) => /* @__PURE__ */ pr(hr, { ...a2, name: a2.name || "Del", viewBox: "0 0 1024 1024", children: [
|
|
860
|
-
/* @__PURE__ */
|
|
852
|
+
/* @__PURE__ */ Se(
|
|
861
853
|
"path",
|
|
862
854
|
{
|
|
863
|
-
d: "M298.67 42.67a42.67 42.67 0 1 0 0 85.33h426.66a42.67 42.67 0 1 0 0-85.
|
|
855
|
+
d: "M298.67 42.67a42.67 42.67 0 1 0 0 85.33h426.66a42.67 42.67 0 1 0 0-85.33zM448 469.33h-85.33v256H448zm213.33 0H576v256h85.33z",
|
|
864
856
|
fill: "currentColor",
|
|
865
857
|
fillOpacity: "0.9"
|
|
866
858
|
}
|
|
867
859
|
),
|
|
868
860
|
",",
|
|
869
|
-
/* @__PURE__ */
|
|
861
|
+
/* @__PURE__ */ Se(
|
|
870
862
|
"path",
|
|
871
863
|
{
|
|
872
|
-
d: "M0 256a42.67 42.67 0 0 1 42.67-42.67h938.66a42.67 42.67 0 1 1 0 85.34h-47.4l-31.21 561.77a128 128 0 0 1-127.79 120.89H249.07a128 128 0 0 1-127.79-120.89L90.07 298.67h-47.4A42.67 42.67 0 0 1 0
|
|
864
|
+
d: "M0 256a42.67 42.67 0 0 1 42.67-42.67h938.66a42.67 42.67 0 1 1 0 85.34h-47.4l-31.21 561.77a128 128 0 0 1-127.79 120.89H249.07a128 128 0 0 1-127.79-120.89L90.07 298.67h-47.4A42.67 42.67 0 0 1 0 256m175.53 42.67 30.98 557.01A42.67 42.67 0 0 0 249.09 896h525.82a42.67 42.67 0 0 0 42.6-40.32l30.94-557.01h-672.9z",
|
|
873
865
|
fill: "currentColor",
|
|
874
866
|
fillOpacity: "0.9"
|
|
875
867
|
}
|
|
876
868
|
)
|
|
877
869
|
] });
|
|
878
|
-
o$4.defaultProps =
|
|
870
|
+
o$4.defaultProps = xe;
|
|
879
871
|
const o$3 = (l2) => /* @__PURE__ */ pr(hr, { ...l2, name: l2.name || "Failure", viewBox: "0 0 1024 1024", children: [
|
|
880
|
-
/* @__PURE__ */
|
|
872
|
+
/* @__PURE__ */ Se(
|
|
881
873
|
"path",
|
|
882
874
|
{
|
|
883
|
-
d: "M313.3 373.65 451.65 512 313.3 650.35l60.35 60.35L512 572.33 650.35 710.7l60.33-60.35L572.33 512 710.7 373.65l-60.35-60.35L512 451.67 373.65 313.
|
|
875
|
+
d: "M313.3 373.65 451.65 512 313.3 650.35l60.35 60.35L512 572.33 650.35 710.7l60.33-60.35L572.33 512 710.7 373.65l-60.35-60.35L512 451.67 373.65 313.3z",
|
|
884
876
|
fill: "currentColor",
|
|
885
877
|
fillOpacity: "0.9"
|
|
886
878
|
}
|
|
887
879
|
),
|
|
888
880
|
",",
|
|
889
|
-
/* @__PURE__ */
|
|
881
|
+
/* @__PURE__ */ Se(
|
|
890
882
|
"path",
|
|
891
883
|
{
|
|
892
|
-
d: "M1024 512c0 282.77-229.23 512-512 512S0 794.77 0 512 229.23 0 512 0s512 229.23 512
|
|
884
|
+
d: "M1024 512c0 282.77-229.23 512-512 512S0 794.77 0 512 229.23 0 512 0s512 229.23 512 512m-85.33 0c0-235.65-191.02-426.67-426.67-426.67S85.33 276.35 85.33 512 276.35 938.67 512 938.67 938.67 747.65 938.67 512",
|
|
893
885
|
fill: "currentColor",
|
|
894
886
|
fillOpacity: "0.9"
|
|
895
887
|
}
|
|
896
888
|
)
|
|
897
889
|
] });
|
|
898
|
-
o$3.defaultProps =
|
|
890
|
+
o$3.defaultProps = xe;
|
|
899
891
|
const e$4 = (l2) => /* @__PURE__ */ pr(hr, { ...l2, name: l2.name || "ImageError", viewBox: "0 0 1024 1024", children: [
|
|
900
|
-
/* @__PURE__ */
|
|
892
|
+
/* @__PURE__ */ Se(
|
|
901
893
|
"path",
|
|
902
894
|
{
|
|
903
|
-
d: "M696.43 465.25c40.61 0 73.53-32.72 73.53-73.09s-32.96-73.08-73.53-73.08-73.54 32.72-73.54 73.08 32.92 73.09 73.54 73.
|
|
895
|
+
d: "M696.43 465.25c40.61 0 73.53-32.72 73.53-73.09s-32.96-73.08-73.53-73.08-73.54 32.72-73.54 73.08 32.92 73.09 73.54 73.09M535.74 650.62l-273.61-259.4a56.19 56.19 0 0 0-15.36 11.58l-114 119.63-6-222.77c-.73-26.82 20.84-49.41 47.67-50.14l201.77-5.44 47.34-50-250.43 6.75C119 202.33 76.33 247.17 77.78 301l7.32 271.4 4.5 166.78C91.06 793 136.05 835.47 190.2 834l176-4.75 12-.32 47.34-50 116.18-122.64z",
|
|
904
896
|
fill: "currentColor",
|
|
905
897
|
fillOpacity: "0.9"
|
|
906
898
|
}
|
|
907
899
|
),
|
|
908
900
|
",",
|
|
909
|
-
/* @__PURE__ */
|
|
901
|
+
/* @__PURE__ */ Se(
|
|
910
902
|
"path",
|
|
911
903
|
{
|
|
912
|
-
d: "m861.71 214.8-242.83-33.86-55.09 41.46L855 263a49.05 49.05 0 0 1 41.79 55.13l-54.33 389.59-120.87-159.05A59.86 59.86 0 0 0 638.06 537l-44 33.08 65.07 86.15L603.84 698l-79.57 60.1-54.92 41.48 34.17 4.76 270.73 37.76a97.55 97.55 0 0 0 109.88-79.6 22.37 22.37 0 0 0 .65-3.44l60.53-434.16c7.44-53.32-29.95-102.62-83.6-110.
|
|
904
|
+
d: "m861.71 214.8-242.83-33.86-55.09 41.46L855 263a49.05 49.05 0 0 1 41.79 55.13l-54.33 389.59-120.87-159.05A59.86 59.86 0 0 0 638.06 537l-44 33.08 65.07 86.15L603.84 698l-79.57 60.1-54.92 41.48 34.17 4.76 270.73 37.76a97.55 97.55 0 0 0 109.88-79.6 22.37 22.37 0 0 0 .65-3.44l60.53-434.16c7.44-53.32-29.95-102.62-83.6-110.1",
|
|
913
905
|
fill: "currentColor",
|
|
914
906
|
fillOpacity: "0.9"
|
|
915
907
|
}
|
|
916
908
|
)
|
|
917
909
|
] });
|
|
918
|
-
e$4.defaultProps =
|
|
910
|
+
e$4.defaultProps = xe;
|
|
919
911
|
const o$2 = (a2) => /* @__PURE__ */ pr(hr, { ...a2, name: a2.name || "Image", viewBox: "0 0 1024 1024", children: [
|
|
920
|
-
/* @__PURE__ */
|
|
912
|
+
/* @__PURE__ */ Se(
|
|
921
913
|
"path",
|
|
922
914
|
{
|
|
923
|
-
d: "M384 341.33a85.33 85.33 0 1 1-170.67 0 85.33 85.33 0 0 1 170.67
|
|
915
|
+
d: "M384 341.33a85.33 85.33 0 1 1-170.67 0 85.33 85.33 0 0 1 170.67 0",
|
|
924
916
|
fill: "currentColor",
|
|
925
917
|
fillOpacity: "0.9"
|
|
926
918
|
}
|
|
927
919
|
),
|
|
928
920
|
",",
|
|
929
|
-
/* @__PURE__ */
|
|
921
|
+
/* @__PURE__ */ Se(
|
|
930
922
|
"path",
|
|
931
923
|
{
|
|
932
|
-
d: "M0 170.67a128 128 0 0 1 128-128h768a128 128 0 0 1 128 128v682.66a128 128 0 0 1-128 128H128a128 128 0 0 1-128-
|
|
924
|
+
d: "M0 170.67a128 128 0 0 1 128-128h768a128 128 0 0 1 128 128v682.66a128 128 0 0 1-128 128H128a128 128 0 0 1-128-128zM128 128a42.67 42.67 0 0 0-42.67 42.67v405.84a383.38 383.38 0 0 1 128-21.84c71.89 0 139.16 19.75 196.68 54.12C492.46 473.96 641.05 384 810.67 384c44.37 0 87.32 6.17 128 17.66V170.67A42.67 42.67 0 0 0 896 128zM85.33 668.74v184.59A42.67 42.67 0 0 0 128 896h380.97C488.28 751.25 363.8 640 213.33 640c-45.8 0-89.19 10.3-128 28.74M594.99 896H896a42.67 42.67 0 0 0 42.67-42.67V491.18a383.36 383.36 0 0 0-128-21.85c-141.91 0-265.81 76.97-332.31 191.45A382.98 382.98 0 0 1 594.99 896",
|
|
933
925
|
fill: "currentColor",
|
|
934
926
|
fillOpacity: "0.9"
|
|
935
927
|
}
|
|
936
928
|
)
|
|
937
929
|
] });
|
|
938
|
-
o$2.defaultProps =
|
|
939
|
-
const t$
|
|
930
|
+
o$2.defaultProps = xe;
|
|
931
|
+
const t$3 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "JoySmile", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
940
932
|
"path",
|
|
941
933
|
{
|
|
942
934
|
d: "M728.58 159.81a39.33 39.33 0 1 0-54.28-56.95c-94.92 90.4-244.1 90.4-339.03 0A39.35 39.35 0 0 0 281 159.81c125.33 119.35 322.24 119.35 447.58 0",
|
|
@@ -944,26 +936,26 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
944
936
|
fillOpacity: "0.9"
|
|
945
937
|
}
|
|
946
938
|
) });
|
|
947
|
-
t$
|
|
948
|
-
const e$3 = (a2) => /* @__PURE__ */
|
|
939
|
+
t$3.defaultProps = xe;
|
|
940
|
+
const e$3 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Link", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
949
941
|
"path",
|
|
950
942
|
{
|
|
951
|
-
d: "M777.87 246.13a166.03 166.03 0 0 0-234.78 0l-74.39 74.24a43.89 43.89 0 0 1-62.03-62.1l74.24-74.24A253.81 253.81 0 0 1 839.9 543.01l-74.17 74.32a43.89 43.89 0 1 1-62.1-62.03l74.24-74.24a166.03 166.03 0 0 0 0-234.86zM637.44 386.56a43.89 43.89 0 0 1 0 62.03L448.66 637.51a43.89 43.89 0 1 1-62.1-62.1l188.93-188.92a43.89 43.89 0 0 1 62.1 0zm-317.07 20.11a43.89 43.89 0 0 1 0 62.03l-74.24 74.31a166.03 166.03 0 0 0 234.78 234.86l74.39-74.24a43.89 43.89 0 0 1 62.03 62.1l-74.24 74.17A253.81 253.81 0 1 1 184.1 480.99l74.17-74.32a43.89 43.89 0 0 1 62.1
|
|
943
|
+
d: "M777.87 246.13a166.03 166.03 0 0 0-234.78 0l-74.39 74.24a43.89 43.89 0 0 1-62.03-62.1l74.24-74.24A253.81 253.81 0 0 1 839.9 543.01l-74.17 74.32a43.89 43.89 0 1 1-62.1-62.03l74.24-74.24a166.03 166.03 0 0 0 0-234.86zM637.44 386.56a43.89 43.89 0 0 1 0 62.03L448.66 637.51a43.89 43.89 0 1 1-62.1-62.1l188.93-188.92a43.89 43.89 0 0 1 62.1 0zm-317.07 20.11a43.89 43.89 0 0 1 0 62.03l-74.24 74.31a166.03 166.03 0 0 0 234.78 234.86l74.39-74.24a43.89 43.89 0 0 1 62.03 62.1l-74.24 74.17A253.81 253.81 0 1 1 184.1 480.99l74.17-74.32a43.89 43.89 0 0 1 62.1 0",
|
|
952
944
|
fill: "currentColor",
|
|
953
945
|
fillOpacity: "0.9"
|
|
954
946
|
}
|
|
955
947
|
) });
|
|
956
|
-
e$3.defaultProps =
|
|
957
|
-
const t$
|
|
948
|
+
e$3.defaultProps = xe;
|
|
949
|
+
const t$2 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Loading", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
958
950
|
"path",
|
|
959
951
|
{
|
|
960
|
-
d: "M512 73.14a43.89 43.89 0 0 1 43.89 43.89v118.49a43.89 43.89 0 0 1-87.78 0V117.03A43.89 43.89 0 0 1 512 73.
|
|
952
|
+
d: "M512 73.14a43.89 43.89 0 0 1 43.89 43.89v118.49a43.89 43.89 0 0 1-87.78 0V117.03A43.89 43.89 0 0 1 512 73.14M201.65 201.65a43.89 43.89 0 0 1 62.1 0l83.68 83.83a43.89 43.89 0 1 1-62.03 62.02l-83.75-83.75a43.89 43.89 0 0 1 0-62.1m620.7 0a43.89 43.89 0 0 1 0 62.1l-83.83 83.68a43.89 43.89 0 1 1-62.02-62.03l83.75-83.82a43.89 43.89 0 0 1 62.1 0zM73.14 512a43.89 43.89 0 0 1 43.89-43.89h118.49a43.89 43.89 0 0 1 0 87.78H117.03A43.89 43.89 0 0 1 73.14 512m671.45 0a43.89 43.89 0 0 1 43.89-43.89h118.49a43.89 43.89 0 1 1 0 87.78H788.48A43.89 43.89 0 0 1 744.59 512M347.5 676.5a43.89 43.89 0 0 1 0 62.02l-83.75 83.83a43.89 43.89 0 1 1-62.1-62.1l83.83-83.68a43.89 43.89 0 0 1 62.02 0zm329 0a43.89 43.89 0 0 1 62.02 0l83.83 83.75a43.89 43.89 0 1 1-62.1 62.1l-83.68-83.83a43.89 43.89 0 0 1 0-62.02zM512 744.59a43.89 43.89 0 0 1 43.89 43.89v118.49a43.89 43.89 0 1 1-87.78 0V788.48A43.89 43.89 0 0 1 512 744.59",
|
|
961
953
|
fill: "currentColor",
|
|
962
954
|
fillOpacity: "0.9"
|
|
963
955
|
}
|
|
964
956
|
) });
|
|
965
|
-
t$
|
|
966
|
-
const c$1 = (a2) => /* @__PURE__ */
|
|
957
|
+
t$2.defaultProps = xe;
|
|
958
|
+
const c$1 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Loading1", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
967
959
|
"path",
|
|
968
960
|
{
|
|
969
961
|
d: "M520.66 64.56a29.24 29.24 0 0 0-7.07-.89c-16.21 0-29.35 13.14-29.35 29.35 0 15.83 12.54 28.7 28.23 29.29v.08c.38 0 .75-.01 1.12-.02 216.49 0 389.63 173.94 389.63 390.44S730.08 901.64 513.59 901.63 123.96 729.3 123.96 512.8c0-.27.01-.54.01-.8h-.01c0-16.21-13.14-29.35-29.35-29.35S65.26 495.79 65.26 512c0 .06.01.11.01.16 0 .21-.01.42-.01.64 0 247.61 200.72 448.33 448.33 448.33 247.61 0 448.33-200.72 448.33-448.33 0-245.24-196.92-444.46-441.25-448.24z",
|
|
@@ -971,166 +963,175 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
971
963
|
fillOpacity: "0.9"
|
|
972
964
|
}
|
|
973
965
|
) });
|
|
974
|
-
c$1.defaultProps =
|
|
966
|
+
c$1.defaultProps = xe;
|
|
975
967
|
const r$1 = (a2) => /* @__PURE__ */ pr(hr, { ...a2, name: a2.name || "Location", viewBox: "0 0 1024 1024", children: [
|
|
976
|
-
/* @__PURE__ */
|
|
968
|
+
/* @__PURE__ */ Se(
|
|
977
969
|
"path",
|
|
978
970
|
{
|
|
979
|
-
d: "M682.67 470.04c0 94.4-76.42 170.94-170.67 170.94s-170.67-76.54-170.67-170.94S417.75 299.12 512 299.11s170.67 76.52 170.67 170.
|
|
971
|
+
d: "M682.67 470.04c0 94.4-76.42 170.94-170.67 170.94s-170.67-76.54-170.67-170.94S417.75 299.12 512 299.11s170.67 76.52 170.67 170.93m-85.34 0A85.4 85.4 0 0 0 512 384.58c-47.15 0-85.33 38.27-85.33 85.46A85.4 85.4 0 0 0 512 555.5c47.15 0 85.33-38.25 85.33-85.46",
|
|
980
972
|
fill: "currentColor",
|
|
981
973
|
fillOpacity: "0.9"
|
|
982
974
|
}
|
|
983
975
|
),
|
|
984
976
|
",",
|
|
985
|
-
/* @__PURE__ */
|
|
977
|
+
/* @__PURE__ */ Se(
|
|
986
978
|
"path",
|
|
987
979
|
{
|
|
988
|
-
d: "M981.33 470.04c0 277.76-312.75 465.73-464.15 552.53a10.22 10.22 0 0 1-10.36 0C355.42 935.79 42.67 747.82 42.67 470.06 42.67 210.45 252.8 0 512 0s469.33 210.45 469.33 470.
|
|
980
|
+
d: "M981.33 470.04c0 277.76-312.75 465.73-464.15 552.53a10.22 10.22 0 0 1-10.36 0C355.42 935.79 42.67 747.82 42.67 470.06 42.67 210.45 252.8 0 512 0s469.33 210.45 469.33 470.04m-85.33 0c0-212.39-171.93-384.58-384-384.58S128 257.64 128 470.04c0 106.24 60.52 202.73 151.85 288.85 74.6 70.4 161.98 126.46 232.15 167.89 70.19-41.43 157.55-97.49 232.15-167.89C835.46 672.77 896 576.28 896 470.04",
|
|
989
981
|
fill: "currentColor",
|
|
990
982
|
fillOpacity: "0.9"
|
|
991
983
|
}
|
|
992
984
|
)
|
|
993
985
|
] });
|
|
994
|
-
r$1.defaultProps =
|
|
995
|
-
const o$1 = (s2) => /* @__PURE__ */
|
|
986
|
+
r$1.defaultProps = xe;
|
|
987
|
+
const o$1 = (s2) => /* @__PURE__ */ Se(hr, { ...s2, name: s2.name || "MaskClose", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
988
|
+
"path",
|
|
989
|
+
{
|
|
990
|
+
d: "M512 14.9C238.59 14.9 14.9 238.6 14.9 512s223.7 497.1 497.1 497.1 497.1-223.7 497.1-497.1S785.4 14.9 512 14.9m207.13 646.23c16.57 16.57 16.57 41.42 0 58s-41.42 16.57-58 0L512 570 362.87 719.13c-16.57 16.57-41.43 16.57-58 0s-16.57-41.42 0-58L454 512 304.87 362.87c-16.57-16.57-16.57-41.43 0-58s41.42-16.57 58 0L512 454l149.13-149.13c16.57-16.57 41.43-16.57 58 0s16.57 41.42 0 58L570 512z",
|
|
991
|
+
fill: "currentColor",
|
|
992
|
+
fillOpacity: "0.9"
|
|
993
|
+
}
|
|
994
|
+
) });
|
|
995
|
+
o$1.defaultProps = xe;
|
|
996
|
+
const o = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Minus", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
996
997
|
"path",
|
|
997
998
|
{
|
|
998
|
-
d: "
|
|
999
|
+
d: "M299.52 460.8h409.6c28.16 0 51.2 23.04 51.2 51.2s-23.04 51.2-51.2 51.2h-409.6c-28.16 0-51.2-23.04-51.2-51.2s23.04-51.2 51.2-51.2",
|
|
999
1000
|
fill: "currentColor",
|
|
1000
1001
|
fillOpacity: "0.9"
|
|
1001
1002
|
}
|
|
1002
1003
|
) });
|
|
1003
|
-
o
|
|
1004
|
-
const
|
|
1004
|
+
o.defaultProps = xe;
|
|
1005
|
+
const t$1 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "More", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1005
1006
|
"path",
|
|
1006
1007
|
{
|
|
1007
|
-
d: "
|
|
1008
|
+
d: "M170.67 512A85.33 85.33 0 1 1 0 512a85.33 85.33 0 0 1 170.67 0m426.66 0a85.33 85.33 0 1 1-170.66 0 85.33 85.33 0 0 1 170.66 0m341.34 85.33a85.33 85.33 0 1 0 0-170.66 85.33 85.33 0 0 0 0 170.66",
|
|
1008
1009
|
fill: "currentColor",
|
|
1009
1010
|
fillOpacity: "0.9"
|
|
1010
1011
|
}
|
|
1011
1012
|
) });
|
|
1012
|
-
|
|
1013
|
-
const r = (a2) => /* @__PURE__ */
|
|
1013
|
+
t$1.defaultProps = xe;
|
|
1014
|
+
const r = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Notice", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1014
1015
|
"path",
|
|
1015
1016
|
{
|
|
1016
|
-
d: "M128 384v213.33a128 128 0 0 0 0 256h768a128 128 0 0 0 0-256V384C896 171.93 724.07 0 512 0S128 171.93 128
|
|
1017
|
+
d: "M128 384v213.33a128 128 0 0 0 0 256h768a128 128 0 0 0 0-256V384C896 171.93 724.07 0 512 0S128 171.93 128 384m0 298.67h42.67A42.67 42.67 0 0 0 213.33 640V384c0-164.95 133.72-298.67 298.67-298.67S810.67 219.05 810.67 384v256a42.67 42.67 0 0 0 42.66 42.67H896a42.67 42.67 0 1 1 0 85.33H128a42.67 42.67 0 1 1 0-85.33m256 256a42.67 42.67 0 1 0 0 85.33h256a42.67 42.67 0 1 0 0-85.33z",
|
|
1017
1018
|
fill: "currentColor",
|
|
1018
1019
|
fillOpacity: "0.9"
|
|
1019
1020
|
}
|
|
1020
1021
|
) });
|
|
1021
|
-
r.defaultProps =
|
|
1022
|
+
r.defaultProps = xe;
|
|
1022
1023
|
const e$2 = (a2) => /* @__PURE__ */ pr(hr, { ...a2, name: a2.name || "Photograph", viewBox: "0 0 1024 1024", children: [
|
|
1023
|
-
/* @__PURE__ */
|
|
1024
|
+
/* @__PURE__ */ Se(
|
|
1024
1025
|
"path",
|
|
1025
1026
|
{
|
|
1026
|
-
d: "M512 768c117.82 0 213.33-95.51 213.33-213.33S629.82 341.34 512 341.33s-213.33 95.51-213.33 213.34S394.18 768 512
|
|
1027
|
+
d: "M512 768c117.82 0 213.33-95.51 213.33-213.33S629.82 341.34 512 341.33s-213.33 95.51-213.33 213.34S394.18 768 512 768m0-85.33a128 128 0 1 1 0-256 128 128 0 0 1 0 256m298.67-256a42.67 42.67 0 1 0 0-85.34 42.67 42.67 0 0 0 0 85.34",
|
|
1027
1028
|
fill: "currentColor",
|
|
1028
1029
|
fillOpacity: "0.9"
|
|
1029
1030
|
}
|
|
1030
1031
|
),
|
|
1031
1032
|
",",
|
|
1032
|
-
/* @__PURE__ */
|
|
1033
|
+
/* @__PURE__ */ Se(
|
|
1033
1034
|
"path",
|
|
1034
1035
|
{
|
|
1035
|
-
d: "M256 170.67H128a128 128 0 0 0-128 128v554.66a128 128 0 0 0 128 128h768a128 128 0 0 0 128-128V298.67a128 128 0 0 0-128-128H768l-47.34-71a128 128 0 0 0-106.47-57H409.81a128 128 0 0 0-106.49
|
|
1036
|
+
d: "M256 170.67H128a128 128 0 0 0-128 128v554.66a128 128 0 0 0 128 128h768a128 128 0 0 0 128-128V298.67a128 128 0 0 0-128-128H768l-47.34-71a128 128 0 0 0-106.47-57H409.81a128 128 0 0 0-106.49 57zM301.65 256l72.69-109.01A42.67 42.67 0 0 1 409.83 128h204.34a42.67 42.67 0 0 1 35.49 18.99L722.33 256H896a42.67 42.67 0 0 1 42.67 42.67v554.66A42.67 42.67 0 0 1 896 896H128a42.67 42.67 0 0 1-42.67-42.67V298.67A42.67 42.67 0 0 1 128 256z",
|
|
1036
1037
|
fill: "currentColor",
|
|
1037
1038
|
fillOpacity: "0.9"
|
|
1038
1039
|
}
|
|
1039
1040
|
)
|
|
1040
1041
|
] });
|
|
1041
|
-
e$2.defaultProps =
|
|
1042
|
-
const l$2 = (t2) => /* @__PURE__ */
|
|
1042
|
+
e$2.defaultProps = xe;
|
|
1043
|
+
const l$2 = (t2) => /* @__PURE__ */ Se(hr, { ...t2, name: t2.name || "Plus", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1043
1044
|
"path",
|
|
1044
1045
|
{
|
|
1045
|
-
d: "M345.6 460.8h409.6q51.2 0 51.2 51.2t-51.2 51.2H345.6q-51.2 0-51.2-51.2t51.2-51.
|
|
1046
|
+
d: "M345.6 460.8h409.6q51.2 0 51.2 51.2t-51.2 51.2H345.6q-51.2 0-51.2-51.2t51.2-51.2M550.4 256q51.2 0 51.2 51.2v409.6q0 51.2-51.2 51.2t-51.2-51.2V307.2q0-51.2 51.2-51.2",
|
|
1046
1047
|
fill: "currentColor",
|
|
1047
1048
|
fillOpacity: "0.9"
|
|
1048
1049
|
}
|
|
1049
1050
|
) });
|
|
1050
|
-
l$2.defaultProps =
|
|
1051
|
-
const l$1 = (a2) => /* @__PURE__ */
|
|
1051
|
+
l$2.defaultProps = xe;
|
|
1052
|
+
const l$1 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Search", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1052
1053
|
"path",
|
|
1053
1054
|
{
|
|
1054
|
-
d: "M469.33 938.67c259.2 0 469.33-210.13 469.34-469.34S728.54 0 469.33 0 0 210.13 0 469.33s210.13 469.33 469.33 469.
|
|
1055
|
+
d: "M469.33 938.67c259.2 0 469.33-210.13 469.34-469.34S728.54 0 469.33 0 0 210.13 0 469.33s210.13 469.33 469.33 469.34m0-85.34c-212.07 0-384-171.93-384-384s171.93-384 384-384 384 171.93 384 384-171.93 384-384 384m435.5-8.83a42.67 42.67 0 1 0-60.33 60.33l106.67 106.67a42.67 42.67 0 1 0 60.33-60.33z",
|
|
1055
1056
|
fill: "currentColor",
|
|
1056
1057
|
fillOpacity: "0.9"
|
|
1057
1058
|
}
|
|
1058
1059
|
) });
|
|
1059
|
-
l$1.defaultProps =
|
|
1060
|
-
const a = (s2) => /* @__PURE__ */
|
|
1060
|
+
l$1.defaultProps = xe;
|
|
1061
|
+
const a = (s2) => /* @__PURE__ */ Se(hr, { ...s2, name: s2.name || "Service", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1061
1062
|
"path",
|
|
1062
1063
|
{
|
|
1063
|
-
d: "M1024 657.72H905.85V531.69c0-228.43-177.23-413.54-393.85-413.54S118.15 303.26 118.15 531.69v126.03H0V531.69C0 236.3 228.43 0 512 0s512 236.31 512 531.
|
|
1064
|
+
d: "M1024 657.72H905.85V531.69c0-228.43-177.23-413.54-393.85-413.54S118.15 303.26 118.15 531.69v126.03H0V531.69C0 236.3 228.43 0 512 0s512 236.31 512 531.69zM196.92 866.46C86.64 866.46 0 779.81 0 669.54s86.65-196.92 196.92-196.93 196.92 86.65 196.93 196.93-86.65 196.92-196.93 196.92m0-275.69c-43.32 0-78.77 35.45-78.77 78.77s35.45 78.77 78.77 78.77 78.77-35.45 78.77-78.77-35.45-78.77-78.77-78.77m630.16 275.69c-110.28 0-196.92-86.65-196.93-196.92s86.65-196.92 196.93-196.93S1024 559.26 1024 669.54s-86.65 196.92-196.92 196.92m0-275.69c-43.32 0-78.77 35.45-78.77 78.77s35.45 78.77 78.77 78.77 78.77-35.45 78.77-78.77-35.45-78.77-78.77-78.77m-149.66 429.29c-23.63 0-47.26-15.75-55.14-43.32-7.88-31.51 7.88-63.02 39.38-74.83 102.4-31.51 189.05-102.4 236.31-196.93 15.75-27.57 51.2-39.38 78.77-23.63s39.38 51.2 23.63 78.77c-63.02 122.09-177.23 216.61-307.2 256-3.94 3.94-11.81 3.94-15.75 3.94",
|
|
1064
1065
|
fill: "currentColor",
|
|
1065
1066
|
fillOpacity: "0.9"
|
|
1066
1067
|
}
|
|
1067
1068
|
) });
|
|
1068
|
-
a.defaultProps =
|
|
1069
|
-
const c = (l2) => /* @__PURE__ */
|
|
1069
|
+
a.defaultProps = xe;
|
|
1070
|
+
const c = (l2) => /* @__PURE__ */ Se(hr, { ...l2, name: l2.name || "StarFill", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1070
1071
|
"path",
|
|
1071
1072
|
{
|
|
1072
|
-
d: "m908.1 353.1-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3-12.3 12.7-12.1 32.9.6 45.3l183.7 179.1-43.4 252.9c-1.2 6.9-.1 14.1 3.2 20.3 8.2 15.6 27.6 21.7 43.2 13.4L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.
|
|
1073
|
+
d: "m908.1 353.1-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3-12.3 12.7-12.1 32.9.6 45.3l183.7 179.1-43.4 252.9c-1.2 6.9-.1 14.1 3.2 20.3 8.2 15.6 27.6 21.7 43.2 13.4L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3",
|
|
1073
1074
|
fill: "currentColor",
|
|
1074
1075
|
fillOpacity: "0.9"
|
|
1075
1076
|
}
|
|
1076
1077
|
) });
|
|
1077
|
-
c.defaultProps =
|
|
1078
|
+
c.defaultProps = xe;
|
|
1078
1079
|
const s = (a2) => /* @__PURE__ */ pr(hr, { ...a2, name: a2.name || "Tips", viewBox: "0 0 1024 1024", children: [
|
|
1079
|
-
/* @__PURE__ */
|
|
1080
|
+
/* @__PURE__ */ Se(
|
|
1080
1081
|
"path",
|
|
1081
1082
|
{
|
|
1082
|
-
d: "M530.65 456.17H425.54l-21.34 55.85h74.39l-38.18 210.13a34.97 34.97 0 0 0 34.38 41.22H579.9l21.34-55.85h-74.39l38.18-210.13a34.92 34.92 0 0 0-34.38-41.
|
|
1083
|
+
d: "M530.65 456.17H425.54l-21.34 55.85h74.39l-38.18 210.13a34.97 34.97 0 0 0 34.38 41.22H579.9l21.34-55.85h-74.39l38.18-210.13a34.92 34.92 0 0 0-34.38-41.22M512 384a64 64 0 1 0 0-128 64 64 0 0 0 0 128",
|
|
1083
1084
|
fill: "currentColor",
|
|
1084
1085
|
fillOpacity: "0.9"
|
|
1085
1086
|
}
|
|
1086
1087
|
),
|
|
1087
1088
|
",",
|
|
1088
|
-
/* @__PURE__ */
|
|
1089
|
+
/* @__PURE__ */ Se(
|
|
1089
1090
|
"path",
|
|
1090
1091
|
{
|
|
1091
|
-
d: "M512 1024c282.77 0 512-229.23 512-512S794.77 0 512 0 0 229.23 0 512s229.23 512 512
|
|
1092
|
+
d: "M512 1024c282.77 0 512-229.23 512-512S794.77 0 512 0 0 229.23 0 512s229.23 512 512 512m0-85.33C276.35 938.67 85.33 747.65 85.33 512S276.35 85.33 512 85.33 938.67 276.35 938.67 512 747.65 938.67 512 938.67",
|
|
1092
1093
|
fill: "currentColor",
|
|
1093
1094
|
fillOpacity: "0.9"
|
|
1094
1095
|
}
|
|
1095
1096
|
)
|
|
1096
1097
|
] });
|
|
1097
|
-
s.defaultProps =
|
|
1098
|
-
const e$1 = (a2) => /* @__PURE__ */
|
|
1098
|
+
s.defaultProps = xe;
|
|
1099
|
+
const e$1 = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "Top", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1099
1100
|
"path",
|
|
1100
1101
|
{
|
|
1101
|
-
d: "M128 0a42.67 42.67 0 1 0 0 85.33h768A42.67 42.67 0 1 0 896
|
|
1102
|
+
d: "M128 0a42.67 42.67 0 1 0 0 85.33h768A42.67 42.67 0 1 0 896 0zm391.21 173.42a10.88 10.88 0 0 0-14.42 0L3.61 619.67a10.71 10.71 0 0 0 7.21 18.67h241.34v257.11c0 71 58.05 128.55 129.64 128.55h260.4c71.59 0 129.64-57.56 129.64-128.55V638.34h241.34a10.71 10.71 0 0 0 7.21-18.67zM338.6 895.45V552.64H208.21L512 282.15l303.77 270.49H685.42v342.83c0 23.64-19.37 42.84-43.22 42.83H381.8c-23.85 0-43.2-19.2-43.2-42.85",
|
|
1102
1103
|
fill: "currentColor",
|
|
1103
1104
|
fillOpacity: "0.9"
|
|
1104
1105
|
}
|
|
1105
1106
|
) });
|
|
1106
|
-
e$1.defaultProps =
|
|
1107
|
-
const t = (a2) => /* @__PURE__ */
|
|
1107
|
+
e$1.defaultProps = xe;
|
|
1108
|
+
const t = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "TriangleDown", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1108
1109
|
"path",
|
|
1109
1110
|
{
|
|
1110
|
-
d: "m573.06 752 308.8-404.61A76.8 76.8 0 0 0 820.74 224H203.23a76.8 76.8 0 0 0-61.05 123.39L450.98 752a76.8 76.8 0 0 0 122.08
|
|
1111
|
+
d: "m573.06 752 308.8-404.61A76.8 76.8 0 0 0 820.74 224H203.23a76.8 76.8 0 0 0-61.05 123.39L450.98 752a76.8 76.8 0 0 0 122.08 0",
|
|
1111
1112
|
fill: "currentColor",
|
|
1112
1113
|
fillOpacity: "0.9"
|
|
1113
1114
|
}
|
|
1114
1115
|
) });
|
|
1115
|
-
t.defaultProps =
|
|
1116
|
-
const l = (a2) => /* @__PURE__ */
|
|
1116
|
+
t.defaultProps = xe;
|
|
1117
|
+
const l = (a2) => /* @__PURE__ */ Se(hr, { ...a2, name: a2.name || "TriangleUp", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1117
1118
|
"path",
|
|
1118
1119
|
{
|
|
1119
|
-
d: "m573.06 272 308.8 404.61A76.8 76.8 0 0 1 820.74 800H203.23a76.8 76.8 0 0 1-61.05-123.39L450.98 272a76.8 76.8 0 0 1 122.08
|
|
1120
|
+
d: "m573.06 272 308.8 404.61A76.8 76.8 0 0 1 820.74 800H203.23a76.8 76.8 0 0 1-61.05-123.39L450.98 272a76.8 76.8 0 0 1 122.08 0",
|
|
1120
1121
|
fill: "currentColor",
|
|
1121
1122
|
fillOpacity: "0.9"
|
|
1122
1123
|
}
|
|
1123
1124
|
) });
|
|
1124
|
-
l.defaultProps =
|
|
1125
|
-
const e = (s2) => /* @__PURE__ */
|
|
1125
|
+
l.defaultProps = xe;
|
|
1126
|
+
const e = (s2) => /* @__PURE__ */ Se(hr, { ...s2, name: s2.name || "User", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ Se(
|
|
1126
1127
|
"path",
|
|
1127
1128
|
{
|
|
1128
|
-
d: "M511.86 804.3c-223.01 0-402.15-179.14-402.15-402.15S288.85 0 511.86 0s402.15 179.14 402.15 402.15S734.87 804.3 511.86 804.
|
|
1129
|
+
d: "M511.86 804.3c-223.01 0-402.15-179.14-402.15-402.15S288.85 0 511.86 0s402.15 179.14 402.15 402.15S734.87 804.3 511.86 804.3m0-694.62c-160.86 0-292.47 131.61-292.47 292.47S351 694.62 511.86 694.62s292.47-131.61 292.48-292.47-131.61-292.47-292.48-292.47m237.64 913.97c-29.25 0-51.18-21.94-54.84-51.18-7.31-95.05-87.74-168.17-182.8-168.17s-175.48 73.12-182.79 168.17c-3.66 29.25-29.25 54.84-58.5 51.18-29.25 0-51.18-29.25-51.18-58.49 10.97-153.55 138.92-270.54 292.47-270.54s281.5 120.64 292.47 270.54c3.65 29.25-21.94 54.84-51.18 58.49zM511.86 548.38c-47.53 0-91.4-21.93-120.64-58.49-18.28-25.59-14.62-58.49 7.31-76.77 25.59-18.28 58.49-14.62 76.77 7.31s51.18 21.93 69.47 0 54.84-29.25 76.77-7.31c21.93 18.28 29.25 54.84 7.31 76.77-25.59 40.22-69.46 58.49-116.99 58.49",
|
|
1129
1130
|
fill: "currentColor",
|
|
1130
1131
|
fillOpacity: "0.9"
|
|
1131
1132
|
}
|
|
1132
1133
|
) });
|
|
1133
|
-
e.defaultProps =
|
|
1134
|
+
e.defaultProps = xe;
|
|
1134
1135
|
const ComponentDefaults = {
|
|
1135
1136
|
className: "",
|
|
1136
1137
|
style: {}
|
|
@@ -1219,7 +1220,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
1219
1220
|
style: { ...getStyle(), ...style },
|
|
1220
1221
|
onClick: (e2) => handleClick2(e2)
|
|
1221
1222
|
},
|
|
1222
|
-
/* @__PURE__ */ React.createElement("div", { className: "nut-button-wrap" }, loading && /* @__PURE__ */ React.createElement(t$
|
|
1223
|
+
/* @__PURE__ */ React.createElement("div", { className: "nut-button-wrap" }, loading && /* @__PURE__ */ React.createElement(t$2, { className: "nut-icon-loading" }), !loading && icon ? icon : null, children && /* @__PURE__ */ React.createElement(
|
|
1223
1224
|
"div",
|
|
1224
1225
|
{
|
|
1225
1226
|
className: `${icon || loading ? "nut-button-text" : ""}${rightIcon ? " nut-button-text right" : ""}`
|
|
@@ -4360,12 +4361,15 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4360
4361
|
const startY = React.useRef(0);
|
|
4361
4362
|
const deltaX = React.useRef(0);
|
|
4362
4363
|
const deltaY = React.useRef(0);
|
|
4364
|
+
const delta = React.useRef(0);
|
|
4363
4365
|
const offsetX = React.useRef(0);
|
|
4364
4366
|
const offsetY = React.useRef(0);
|
|
4365
4367
|
const direction = React.useRef("");
|
|
4368
|
+
const touchTime = React.useRef(null);
|
|
4366
4369
|
const isVertical = () => direction.current === "vertical";
|
|
4367
4370
|
const isHorizontal = () => direction.current === "horizontal";
|
|
4368
4371
|
const reset = () => {
|
|
4372
|
+
touchTime.current = null;
|
|
4369
4373
|
deltaX.current = 0;
|
|
4370
4374
|
deltaY.current = 0;
|
|
4371
4375
|
offsetX.current = 0;
|
|
@@ -4374,6 +4378,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4374
4378
|
};
|
|
4375
4379
|
const start2 = (event) => {
|
|
4376
4380
|
reset();
|
|
4381
|
+
touchTime.current = Date.now();
|
|
4377
4382
|
startX.current = event.touches[0].clientX;
|
|
4378
4383
|
startY.current = event.touches[0].clientY;
|
|
4379
4384
|
};
|
|
@@ -4383,6 +4388,7 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4383
4388
|
deltaY.current = touch.clientY - startY.current;
|
|
4384
4389
|
offsetX.current = Math.abs(deltaX.current);
|
|
4385
4390
|
offsetY.current = Math.abs(deltaY.current);
|
|
4391
|
+
delta.current = isVertical() ? deltaY.current : deltaX.current;
|
|
4386
4392
|
if (!direction.current) {
|
|
4387
4393
|
direction.current = getDirection(offsetX.current, offsetY.current);
|
|
4388
4394
|
}
|
|
@@ -4391,10 +4397,12 @@ Check the top-level render call using <` + t2 + ">.");
|
|
|
4391
4397
|
move,
|
|
4392
4398
|
start: start2,
|
|
4393
4399
|
reset,
|
|
4400
|
+
touchTime,
|
|
4394
4401
|
startX,
|
|
4395
4402
|
startY,
|
|
4396
4403
|
deltaX,
|
|
4397
4404
|
deltaY,
|
|
4405
|
+
delta,
|
|
4398
4406
|
offsetX,
|
|
4399
4407
|
offsetY,
|
|
4400
4408
|
direction,
|
|
@@ -10613,12 +10621,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
10613
10621
|
onClick: (event) => handleClick2(item, event),
|
|
10614
10622
|
key: item.id || index
|
|
10615
10623
|
},
|
|
10616
|
-
/* @__PURE__ */ React.createElement("img", { src: item.icon, alt: "" }),
|
|
10624
|
+
React.isValidElement(item.icon) ? item.icon : /* @__PURE__ */ React.createElement("img", { src: item.icon, alt: "" }),
|
|
10617
10625
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-list-text` }, item.text),
|
|
10618
10626
|
item.num && /* @__PURE__ */ React.createElement("div", { className: "b" }, item.num)
|
|
10619
10627
|
);
|
|
10620
10628
|
}))),
|
|
10621
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
10629
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-btn`, onClick: () => onUpdateValue() }, content || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(l$4, { color: "#fff" }), /* @__PURE__ */ React.createElement("div", { className: "text" }, visible ? activeText || locale.fixednav.activeText : inactiveText || locale.fixednav.inactiveText)))
|
|
10622
10630
|
);
|
|
10623
10631
|
};
|
|
10624
10632
|
FixedNav.defaultProps = defaultProps$1g;
|
|
@@ -11104,12 +11112,11 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11104
11112
|
};
|
|
11105
11113
|
Badge.defaultProps = defaultProps$1b;
|
|
11106
11114
|
Badge.displayName = "NutBadge";
|
|
11115
|
+
const TabbarContext = React.createContext(null);
|
|
11107
11116
|
const defaultProps$1a = {
|
|
11108
11117
|
...ComponentDefaults,
|
|
11109
11118
|
title: "",
|
|
11110
11119
|
icon: null,
|
|
11111
|
-
active: false,
|
|
11112
|
-
index: 0,
|
|
11113
11120
|
value: "",
|
|
11114
11121
|
dot: false,
|
|
11115
11122
|
max: 99,
|
|
@@ -11117,26 +11124,25 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11117
11124
|
right: "5"
|
|
11118
11125
|
};
|
|
11119
11126
|
const TabbarItem = (props) => {
|
|
11127
|
+
const ctx2 = React.useContext(TabbarContext);
|
|
11120
11128
|
const {
|
|
11121
11129
|
className,
|
|
11122
11130
|
style,
|
|
11123
11131
|
title,
|
|
11124
11132
|
icon,
|
|
11125
|
-
active,
|
|
11126
|
-
activeColor,
|
|
11127
|
-
inactiveColor,
|
|
11128
|
-
index,
|
|
11129
11133
|
value,
|
|
11130
11134
|
dot,
|
|
11131
11135
|
max,
|
|
11132
11136
|
top,
|
|
11133
11137
|
right,
|
|
11134
|
-
|
|
11138
|
+
// @ts-ignore
|
|
11139
|
+
index,
|
|
11135
11140
|
...rest
|
|
11136
11141
|
} = {
|
|
11137
11142
|
...defaultProps$1a,
|
|
11138
11143
|
...props
|
|
11139
11144
|
};
|
|
11145
|
+
const active = index === (ctx2 == null ? void 0 : ctx2.selectIndex);
|
|
11140
11146
|
const classPrefix2 = "nut-tabbar-item";
|
|
11141
11147
|
const tabbarItemClass = classNames(
|
|
11142
11148
|
classPrefix2,
|
|
@@ -11155,17 +11161,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11155
11161
|
max,
|
|
11156
11162
|
top,
|
|
11157
11163
|
right,
|
|
11158
|
-
color: activeColor
|
|
11164
|
+
color: ctx2 == null ? void 0 : ctx2.activeColor
|
|
11159
11165
|
};
|
|
11160
11166
|
return /* @__PURE__ */ React.createElement(
|
|
11161
11167
|
"div",
|
|
11162
11168
|
{
|
|
11163
11169
|
className: tabbarItemClass,
|
|
11164
11170
|
style: {
|
|
11165
|
-
color: active ? activeColor : inactiveColor,
|
|
11171
|
+
color: active ? ctx2 == null ? void 0 : ctx2.activeColor : ctx2 == null ? void 0 : ctx2.inactiveColor,
|
|
11166
11172
|
...style
|
|
11167
11173
|
},
|
|
11168
|
-
onClick: () =>
|
|
11174
|
+
onClick: () => ctx2 == null ? void 0 : ctx2.handleClick(index),
|
|
11169
11175
|
...rest
|
|
11170
11176
|
},
|
|
11171
11177
|
icon ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: boxPrefix }, icon)), /* @__PURE__ */ React.createElement("div", { className: titleClass }, title)) : /* @__PURE__ */ React.createElement(Badge, { ...badgeProps }, /* @__PURE__ */ React.createElement("div", { className: titleClass }, title))
|
|
@@ -11216,20 +11222,22 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11216
11222
|
),
|
|
11217
11223
|
style
|
|
11218
11224
|
},
|
|
11219
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-wrap` }, React.
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
|
|
11228
|
-
|
|
11229
|
-
|
|
11230
|
-
|
|
11231
|
-
|
|
11232
|
-
|
|
11225
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-wrap` }, /* @__PURE__ */ React.createElement(
|
|
11226
|
+
TabbarContext.Provider,
|
|
11227
|
+
{
|
|
11228
|
+
value: {
|
|
11229
|
+
selectIndex,
|
|
11230
|
+
activeColor,
|
|
11231
|
+
inactiveColor,
|
|
11232
|
+
handleClick: setSelectIndex
|
|
11233
|
+
}
|
|
11234
|
+
},
|
|
11235
|
+
React.Children.map(children, (child, index) => {
|
|
11236
|
+
if (!React.isValidElement(child))
|
|
11237
|
+
return null;
|
|
11238
|
+
return React.cloneElement(child, { ...child.props, index });
|
|
11239
|
+
})
|
|
11240
|
+
)),
|
|
11233
11241
|
(fixed || safeArea) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-safe-area` })
|
|
11234
11242
|
);
|
|
11235
11243
|
};
|
|
@@ -11418,7 +11426,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11418
11426
|
className: `${classPrefix$j}-titles-item-smile`,
|
|
11419
11427
|
style: tabsActiveStyle
|
|
11420
11428
|
},
|
|
11421
|
-
/* @__PURE__ */ React.createElement(t$
|
|
11429
|
+
/* @__PURE__ */ React.createElement(t$3, { color: activeColor, width: 40, height: 20 })
|
|
11422
11430
|
),
|
|
11423
11431
|
/* @__PURE__ */ React.createElement(
|
|
11424
11432
|
"div",
|
|
@@ -11595,7 +11603,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11595
11603
|
activeColor: "",
|
|
11596
11604
|
activeIcon: "checklist",
|
|
11597
11605
|
popup: true,
|
|
11598
|
-
visible: false,
|
|
11599
11606
|
options: [],
|
|
11600
11607
|
optionKey: { textKey: "text", valueKey: "value", childrenKey: "children" },
|
|
11601
11608
|
format: {},
|
|
@@ -11643,6 +11650,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11643
11650
|
defaultValue,
|
|
11644
11651
|
finalValue: defaultValue
|
|
11645
11652
|
});
|
|
11653
|
+
const [innerVisible, setInnerVisible] = usePropsValue({
|
|
11654
|
+
value: props.visible,
|
|
11655
|
+
defaultValue: void 0,
|
|
11656
|
+
finalValue: false
|
|
11657
|
+
});
|
|
11658
|
+
const actions = {
|
|
11659
|
+
open: () => {
|
|
11660
|
+
setInnerVisible(true);
|
|
11661
|
+
},
|
|
11662
|
+
close: () => {
|
|
11663
|
+
setInnerVisible(false);
|
|
11664
|
+
}
|
|
11665
|
+
};
|
|
11666
|
+
React.useImperativeHandle(ref, () => actions);
|
|
11646
11667
|
const [state] = React.useState({
|
|
11647
11668
|
optionsData: [],
|
|
11648
11669
|
panes: [
|
|
@@ -11778,6 +11799,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11778
11799
|
state.lazyLoadMap.delete(node);
|
|
11779
11800
|
};
|
|
11780
11801
|
const close = () => {
|
|
11802
|
+
setInnerVisible(false);
|
|
11781
11803
|
onClose && onClose();
|
|
11782
11804
|
};
|
|
11783
11805
|
const closePopup = () => {
|
|
@@ -11871,7 +11893,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11871
11893
|
}
|
|
11872
11894
|
},
|
|
11873
11895
|
/* @__PURE__ */ React.createElement("div", { className: classesTitle }, node.text),
|
|
11874
|
-
node.loading ? /* @__PURE__ */ React.createElement(t$
|
|
11896
|
+
node.loading ? /* @__PURE__ */ React.createElement(t$2, { color: "#969799", className: "nut-cascader-item-icon-loading" }) : renderIcon()
|
|
11875
11897
|
);
|
|
11876
11898
|
};
|
|
11877
11899
|
const renderTabs = () => {
|
|
@@ -11910,7 +11932,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
11910
11932
|
Popup,
|
|
11911
11933
|
{
|
|
11912
11934
|
...popupProps,
|
|
11913
|
-
visible,
|
|
11935
|
+
visible: innerVisible,
|
|
11914
11936
|
position: "bottom",
|
|
11915
11937
|
round: true,
|
|
11916
11938
|
closeIcon,
|
|
@@ -12094,7 +12116,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12094
12116
|
onClose && onClose();
|
|
12095
12117
|
};
|
|
12096
12118
|
const renderLeftOnCustomSwitch = () => {
|
|
12097
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, custom && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React.createElement(
|
|
12119
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, custom && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left-icon`, onClick: onSwitchModule }, React.isValidElement(backIcon) ? backIcon : /* @__PURE__ */ React.createElement(l$4, { color: "#cccccc" })));
|
|
12098
12120
|
};
|
|
12099
12121
|
const selectedExistItem = (data) => {
|
|
12100
12122
|
onExistSelect && onExistSelect(data);
|
|
@@ -12490,6 +12512,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12490
12512
|
const [state] = React.useState({
|
|
12491
12513
|
currDateArray: []
|
|
12492
12514
|
});
|
|
12515
|
+
const getMonthsPanel = () => {
|
|
12516
|
+
return monthsPanel.current;
|
|
12517
|
+
};
|
|
12518
|
+
const getMonthsRef = () => {
|
|
12519
|
+
return monthsRef.current;
|
|
12520
|
+
};
|
|
12493
12521
|
const resetDefaultValue = () => {
|
|
12494
12522
|
if (defaultValue || Array.isArray(defaultValue) && defaultValue.length > 0) {
|
|
12495
12523
|
return type2 !== "single" ? [...defaultValue] : defaultValue;
|
|
@@ -12739,9 +12767,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
12739
12767
|
const containerHeight = lastItem.cssHeight + lastItem.scrollTop;
|
|
12740
12768
|
requestAniFrame$1(() => {
|
|
12741
12769
|
if (monthsRef && monthsPanel && viewAreaRef) {
|
|
12742
|
-
viewHeight =
|
|
12743
|
-
|
|
12744
|
-
|
|
12770
|
+
viewHeight = getMonthsRef().clientHeight;
|
|
12771
|
+
getMonthsPanel().style.height = `${containerHeight}px`;
|
|
12772
|
+
getMonthsRef().scrollTop = monthsData[current].scrollTop;
|
|
12745
12773
|
}
|
|
12746
12774
|
});
|
|
12747
12775
|
setAvgHeight(Math.floor(containerHeight / (monthNum + 1)));
|
|
@@ -14215,7 +14243,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14215
14243
|
};
|
|
14216
14244
|
React.useEffect(() => {
|
|
14217
14245
|
setInnerValue(innerValue !== selectedValue ? selectedValue : innerValue);
|
|
14218
|
-
}, [innerVisible]);
|
|
14246
|
+
}, [innerVisible, selectedValue]);
|
|
14219
14247
|
React.useEffect(() => {
|
|
14220
14248
|
if (innerVisible) {
|
|
14221
14249
|
init();
|
|
@@ -14353,6 +14381,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14353
14381
|
};
|
|
14354
14382
|
const Picker = React.forwardRef(InternalPicker);
|
|
14355
14383
|
const Picker$1 = Picker;
|
|
14384
|
+
const isDate = (val) => {
|
|
14385
|
+
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
14386
|
+
};
|
|
14387
|
+
const padZero = (num, targetLength = 2) => {
|
|
14388
|
+
let str = `${num}`;
|
|
14389
|
+
while (str.length < targetLength) {
|
|
14390
|
+
str = `0${str}`;
|
|
14391
|
+
}
|
|
14392
|
+
return str;
|
|
14393
|
+
};
|
|
14356
14394
|
const currentYear = (/* @__PURE__ */ new Date()).getFullYear();
|
|
14357
14395
|
const defaultProps$Y = {
|
|
14358
14396
|
...ComponentDefaults,
|
|
@@ -14391,35 +14429,30 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14391
14429
|
...props
|
|
14392
14430
|
};
|
|
14393
14431
|
const { locale } = useConfig();
|
|
14394
|
-
const
|
|
14432
|
+
const lang = locale.datepicker;
|
|
14395
14433
|
const zhCNType = {
|
|
14396
|
-
day:
|
|
14397
|
-
year:
|
|
14398
|
-
month:
|
|
14399
|
-
hour:
|
|
14400
|
-
minute:
|
|
14401
|
-
seconds:
|
|
14402
|
-
};
|
|
14403
|
-
const [
|
|
14404
|
-
const [
|
|
14405
|
-
const isDate = (val) => {
|
|
14406
|
-
return Object.prototype.toString.call(val) === "[object Date]" && !Number.isNaN(val.getTime());
|
|
14407
|
-
};
|
|
14434
|
+
day: lang.day,
|
|
14435
|
+
year: lang.year,
|
|
14436
|
+
month: lang.month,
|
|
14437
|
+
hour: lang.hour,
|
|
14438
|
+
minute: lang.min,
|
|
14439
|
+
seconds: lang.seconds
|
|
14440
|
+
};
|
|
14441
|
+
const [pickerValue, setPickerValue] = React.useState([]);
|
|
14442
|
+
const [pickerOptions, setPickerOptions] = React.useState([]);
|
|
14408
14443
|
const formatValue = (value) => {
|
|
14409
|
-
|
|
14410
|
-
|
|
14411
|
-
cvalue = startDate;
|
|
14444
|
+
if (!value || value && !isDate(value)) {
|
|
14445
|
+
value = startDate;
|
|
14412
14446
|
}
|
|
14413
|
-
|
|
14414
|
-
|
|
14415
|
-
|
|
14447
|
+
return Math.min(
|
|
14448
|
+
Math.max(value.getTime(), startDate.getTime()),
|
|
14449
|
+
endDate.getTime()
|
|
14450
|
+
);
|
|
14416
14451
|
};
|
|
14417
|
-
const [
|
|
14452
|
+
const [selectedDate, setSelectedDate] = usePropsValue({
|
|
14418
14453
|
value: props.value && formatValue(props.value),
|
|
14419
|
-
defaultValue: formatValue(props.defaultValue
|
|
14420
|
-
finalValue: 0
|
|
14421
|
-
onChange: (val) => {
|
|
14422
|
-
}
|
|
14454
|
+
defaultValue: props.defaultValue && formatValue(props.defaultValue),
|
|
14455
|
+
finalValue: 0
|
|
14423
14456
|
});
|
|
14424
14457
|
function getMonthEndDay(year, month) {
|
|
14425
14458
|
return new Date(year, month, 0).getDate();
|
|
@@ -14460,12 +14493,12 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14460
14493
|
};
|
|
14461
14494
|
};
|
|
14462
14495
|
const ranges = () => {
|
|
14463
|
-
const
|
|
14464
|
-
if (!
|
|
14496
|
+
const selected = new Date(selectedDate);
|
|
14497
|
+
if (!selected)
|
|
14465
14498
|
return [];
|
|
14466
|
-
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max",
|
|
14467
|
-
const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min",
|
|
14468
|
-
|
|
14499
|
+
const { maxYear, maxDate, maxMonth, maxHour, maxMinute, maxSeconds } = getBoundary("max", selected);
|
|
14500
|
+
const { minYear, minDate, minMonth, minHour, minMinute, minSeconds } = getBoundary("min", selected);
|
|
14501
|
+
const result = [
|
|
14469
14502
|
{
|
|
14470
14503
|
type: "year",
|
|
14471
14504
|
range: [minYear, maxYear]
|
|
@@ -14493,30 +14526,24 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14493
14526
|
];
|
|
14494
14527
|
switch (type2.toLocaleLowerCase()) {
|
|
14495
14528
|
case "date":
|
|
14496
|
-
|
|
14497
|
-
break;
|
|
14529
|
+
return result.slice(0, 3);
|
|
14498
14530
|
case "datetime":
|
|
14499
|
-
|
|
14500
|
-
break;
|
|
14531
|
+
return result.slice(0, 5);
|
|
14501
14532
|
case "time":
|
|
14502
|
-
|
|
14503
|
-
break;
|
|
14533
|
+
return result.slice(3, 6);
|
|
14504
14534
|
case "year-month":
|
|
14505
|
-
|
|
14506
|
-
break;
|
|
14535
|
+
return result.slice(0, 2);
|
|
14507
14536
|
case "hour-minutes":
|
|
14508
|
-
|
|
14509
|
-
break;
|
|
14537
|
+
return result.slice(3, 5);
|
|
14510
14538
|
case "month-day":
|
|
14511
|
-
|
|
14512
|
-
break;
|
|
14539
|
+
return result.slice(1, 3);
|
|
14513
14540
|
case "datehour":
|
|
14514
|
-
|
|
14515
|
-
|
|
14541
|
+
return result.slice(0, 4);
|
|
14542
|
+
default:
|
|
14543
|
+
return result;
|
|
14516
14544
|
}
|
|
14517
|
-
return result;
|
|
14518
14545
|
};
|
|
14519
|
-
const
|
|
14546
|
+
const handlePickerChange = (selectedOptions, selectedValue, index) => {
|
|
14520
14547
|
var _a2;
|
|
14521
14548
|
const rangeType = type2.toLocaleLowerCase();
|
|
14522
14549
|
if (["date", "datetime", "datehour", "month-day", "year-month"].includes(
|
|
@@ -14556,39 +14583,29 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14556
14583
|
} else if (rangeType === "datehour") {
|
|
14557
14584
|
date2 = new Date(year, month, day, Number(formatDate[3]));
|
|
14558
14585
|
}
|
|
14559
|
-
const isEqual2 = ((_a2 = new Date(
|
|
14560
|
-
date2 && isDate(date2) && !isEqual2 &&
|
|
14586
|
+
const isEqual2 = ((_a2 = new Date(selectedDate)) == null ? void 0 : _a2.getTime()) === (date2 == null ? void 0 : date2.getTime());
|
|
14587
|
+
date2 && isDate(date2) && !isEqual2 && setSelectedDate(formatValue(date2));
|
|
14561
14588
|
}
|
|
14562
14589
|
props.onChange && props.onChange(selectedOptions, selectedValue, index);
|
|
14563
14590
|
};
|
|
14564
|
-
const
|
|
14565
|
-
let str = `${num}`;
|
|
14566
|
-
while (str.length < targetLength) {
|
|
14567
|
-
str = `0${str}`;
|
|
14568
|
-
}
|
|
14569
|
-
return str;
|
|
14570
|
-
};
|
|
14571
|
-
const formatterOption = (type22, value) => {
|
|
14572
|
-
let fOption = null;
|
|
14591
|
+
const formatOption = (type22, value) => {
|
|
14573
14592
|
if (formatter) {
|
|
14574
|
-
|
|
14593
|
+
return formatter(type22, {
|
|
14575
14594
|
text: padZero(value, 2),
|
|
14576
14595
|
value: padZero(value, 2)
|
|
14577
14596
|
});
|
|
14578
|
-
} else {
|
|
14579
|
-
const padMin = padZero(value, 2);
|
|
14580
|
-
const fatter = showChinese ? zhCNType[type22] : "";
|
|
14581
|
-
fOption = { text: padMin + fatter, value: padMin };
|
|
14582
14597
|
}
|
|
14583
|
-
|
|
14598
|
+
const padMin = padZero(value, 2);
|
|
14599
|
+
const fatter = showChinese ? zhCNType[type22] : "";
|
|
14600
|
+
return { text: padMin + fatter, value: padMin };
|
|
14584
14601
|
};
|
|
14585
|
-
const
|
|
14602
|
+
const generateColumn = (min, max, val, type22, columnIndex) => {
|
|
14586
14603
|
var _a2;
|
|
14587
14604
|
let cmin = min;
|
|
14588
14605
|
const arr = [];
|
|
14589
14606
|
let index = 0;
|
|
14590
14607
|
while (cmin <= max) {
|
|
14591
|
-
arr.push(
|
|
14608
|
+
arr.push(formatOption(type22, cmin));
|
|
14592
14609
|
if (type22 === "minute") {
|
|
14593
14610
|
cmin += minuteStep;
|
|
14594
14611
|
} else {
|
|
@@ -14598,16 +14615,16 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14598
14615
|
index++;
|
|
14599
14616
|
}
|
|
14600
14617
|
}
|
|
14601
|
-
|
|
14602
|
-
|
|
14618
|
+
pickerValue[columnIndex] = (_a2 = arr[index]) == null ? void 0 : _a2.value;
|
|
14619
|
+
setPickerValue([...pickerValue]);
|
|
14603
14620
|
if (props.filter && props.filter(type22, arr)) {
|
|
14604
14621
|
return props.filter(type22, arr);
|
|
14605
14622
|
}
|
|
14606
14623
|
return arr;
|
|
14607
14624
|
};
|
|
14608
14625
|
const getDateIndex = (type22) => {
|
|
14609
|
-
const date2 = new Date(
|
|
14610
|
-
if (!
|
|
14626
|
+
const date2 = new Date(selectedDate);
|
|
14627
|
+
if (!selectedDate)
|
|
14611
14628
|
return 0;
|
|
14612
14629
|
if (type22 === "year") {
|
|
14613
14630
|
return date2.getFullYear();
|
|
@@ -14631,7 +14648,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14631
14648
|
};
|
|
14632
14649
|
const columns = () => {
|
|
14633
14650
|
const val = ranges().map((res, columnIndex) => {
|
|
14634
|
-
return
|
|
14651
|
+
return generateColumn(
|
|
14635
14652
|
res.range[0],
|
|
14636
14653
|
res.range[1],
|
|
14637
14654
|
getDateIndex(res.type),
|
|
@@ -14642,22 +14659,22 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
14642
14659
|
return val || [];
|
|
14643
14660
|
};
|
|
14644
14661
|
React.useEffect(() => {
|
|
14645
|
-
if (
|
|
14646
|
-
|
|
14662
|
+
if (selectedDate) {
|
|
14663
|
+
setPickerOptions(columns());
|
|
14647
14664
|
}
|
|
14648
|
-
}, [
|
|
14649
|
-
return /* @__PURE__ */ React.createElement("div", { className: `nut-datepicker ${className}`, style, ...rest },
|
|
14665
|
+
}, [selectedDate, startDate, endDate]);
|
|
14666
|
+
return /* @__PURE__ */ React.createElement("div", { className: `nut-datepicker ${className}`, style, ...rest }, pickerOptions.length && /* @__PURE__ */ React.createElement(
|
|
14650
14667
|
Picker$1,
|
|
14651
14668
|
{
|
|
14652
14669
|
...pickerProps,
|
|
14653
14670
|
title,
|
|
14654
14671
|
visible,
|
|
14655
|
-
options:
|
|
14672
|
+
options: pickerOptions,
|
|
14656
14673
|
onClose,
|
|
14657
14674
|
onCancel,
|
|
14658
|
-
|
|
14659
|
-
onConfirm: (
|
|
14660
|
-
onChange: (
|
|
14675
|
+
value: pickerValue,
|
|
14676
|
+
onConfirm: (options2, value) => onConfirm && onConfirm(options2, value),
|
|
14677
|
+
onChange: (options2, value, index) => handlePickerChange(options2, value, index),
|
|
14661
14678
|
threeDimensional
|
|
14662
14679
|
}
|
|
14663
14680
|
));
|
|
@@ -15878,6 +15895,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
15878
15895
|
getFieldsValue: this.getFieldsValue,
|
|
15879
15896
|
setFieldsValue: this.setFieldsValue,
|
|
15880
15897
|
resetFields: this.resetFields,
|
|
15898
|
+
validateFields: this.validateFields,
|
|
15881
15899
|
submit: this.submit,
|
|
15882
15900
|
errors: this.errors,
|
|
15883
15901
|
getInternal: this.getInternal
|
|
@@ -16960,14 +16978,14 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
16960
16978
|
},
|
|
16961
16979
|
/* @__PURE__ */ React.createElement("div", { className: "nut-menu-title-text" }, finallyTitle()),
|
|
16962
16980
|
icon || (direction === "up" ? /* @__PURE__ */ React.createElement(
|
|
16963
|
-
t$
|
|
16981
|
+
t$4,
|
|
16964
16982
|
{
|
|
16965
16983
|
className: "nut-menu-title-icon",
|
|
16966
16984
|
width: "12px",
|
|
16967
16985
|
height: "12px"
|
|
16968
16986
|
}
|
|
16969
16987
|
) : /* @__PURE__ */ React.createElement(
|
|
16970
|
-
t$
|
|
16988
|
+
t$5,
|
|
16971
16989
|
{
|
|
16972
16990
|
className: "nut-menu-title-icon",
|
|
16973
16991
|
width: "12px",
|
|
@@ -17110,7 +17128,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17110
17128
|
},
|
|
17111
17129
|
(item.type === "num" || item.type === "custom") && /* @__PURE__ */ React.createElement("div", null, item.id),
|
|
17112
17130
|
item.type === "delete" && /* @__PURE__ */ React.createElement(DeleteIcon, null),
|
|
17113
|
-
item.type === "close" && /* @__PURE__ */ React.createElement(t$
|
|
17131
|
+
item.type === "close" && /* @__PURE__ */ React.createElement(t$5, { width: 18, height: 18 }),
|
|
17114
17132
|
item.type === "confirm" && /* @__PURE__ */ React.createElement(React.Fragment, null, confirmText || locale.done)
|
|
17115
17133
|
));
|
|
17116
17134
|
};
|
|
@@ -17879,7 +17897,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
17879
17897
|
const renderLeft = () => {
|
|
17880
17898
|
if (!backable && !left)
|
|
17881
17899
|
return null;
|
|
17882
|
-
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React.createElement(
|
|
17900
|
+
return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-left` }, backable ? /* @__PURE__ */ React.createElement(l$4, { width: "16", height: "16" }) : left);
|
|
17883
17901
|
};
|
|
17884
17902
|
const renderRightIn = () => {
|
|
17885
17903
|
if (!rightIn)
|
|
@@ -18543,7 +18561,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
18543
18561
|
if (item.status === ERROR) {
|
|
18544
18562
|
return item.failIcon || /* @__PURE__ */ React.createElement(o$3, { color: "#fff" });
|
|
18545
18563
|
}
|
|
18546
|
-
return item.loadingIcon || /* @__PURE__ */ React.createElement(t$
|
|
18564
|
+
return item.loadingIcon || /* @__PURE__ */ React.createElement(t$2, { className: "nut-icon-loading", color: "#fff" });
|
|
18547
18565
|
};
|
|
18548
18566
|
return /* @__PURE__ */ React.createElement(React.Fragment, null, fileList.length !== 0 && fileList.map((item, index) => {
|
|
18549
18567
|
var _a2;
|
|
@@ -19603,16 +19621,19 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19603
19621
|
const infiniteDone = () => {
|
|
19604
19622
|
setIsInfiniting(false);
|
|
19605
19623
|
};
|
|
19624
|
+
const getRefreshTop = () => {
|
|
19625
|
+
return refreshTop.current;
|
|
19626
|
+
};
|
|
19606
19627
|
const refreshDone = () => {
|
|
19607
19628
|
distance.current = 0;
|
|
19608
|
-
|
|
19629
|
+
getRefreshTop().style.height = `${distance.current}px`;
|
|
19609
19630
|
isTouching.current = false;
|
|
19610
19631
|
};
|
|
19611
19632
|
const touchStart = (event) => {
|
|
19612
19633
|
if (beforeScrollTop.current === 0 && !isTouching.current && pullRefresh) {
|
|
19613
19634
|
y.current = event.touches[0].pageY;
|
|
19614
19635
|
isTouching.current = true;
|
|
19615
|
-
const childHeight =
|
|
19636
|
+
const childHeight = getRefreshTop().firstElementChild.offsetHeight;
|
|
19616
19637
|
refreshMaxH.current = Math.floor(childHeight * 1 + 10);
|
|
19617
19638
|
}
|
|
19618
19639
|
};
|
|
@@ -19622,20 +19643,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19622
19643
|
event.preventDefault();
|
|
19623
19644
|
if (distance.current >= refreshMaxH.current) {
|
|
19624
19645
|
distance.current = refreshMaxH.current;
|
|
19625
|
-
|
|
19646
|
+
getRefreshTop().style.height = `${distance.current}px`;
|
|
19626
19647
|
} else {
|
|
19627
|
-
|
|
19648
|
+
getRefreshTop().style.height = `${distance.current}px`;
|
|
19628
19649
|
}
|
|
19629
19650
|
} else {
|
|
19630
19651
|
distance.current = 0;
|
|
19631
|
-
|
|
19652
|
+
getRefreshTop().style.height = `${distance.current}px`;
|
|
19632
19653
|
isTouching.current = false;
|
|
19633
19654
|
}
|
|
19634
19655
|
};
|
|
19635
19656
|
const touchEnd = () => {
|
|
19636
19657
|
if (distance.current < refreshMaxH.current) {
|
|
19637
19658
|
distance.current = 0;
|
|
19638
|
-
|
|
19659
|
+
getRefreshTop().style.height = `${distance.current}px`;
|
|
19639
19660
|
} else {
|
|
19640
19661
|
onRefresh && onRefresh(refreshDone);
|
|
19641
19662
|
}
|
|
@@ -19688,7 +19709,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
19688
19709
|
InfiniteLoading.displayName = "NutInfiniteLoading";
|
|
19689
19710
|
const loadingMap = {
|
|
19690
19711
|
circular: c$1,
|
|
19691
|
-
spinner: t$
|
|
19712
|
+
spinner: t$2
|
|
19692
19713
|
};
|
|
19693
19714
|
const defaultProps$A = {
|
|
19694
19715
|
...ComponentDefaults,
|
|
@@ -20697,36 +20718,15 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20697
20718
|
eventOptions: passiveSupported ? { passive: false } : false
|
|
20698
20719
|
}
|
|
20699
20720
|
);
|
|
20700
|
-
const renderIcons = () => {
|
|
20701
|
-
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("i", { className: `${classPrefix2}-head-content-icons` }, (
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
},
|
|
20710
|
-
/* @__PURE__ */ React.createElement(
|
|
20711
|
-
"path",
|
|
20712
|
-
{
|
|
20713
|
-
d: "M34.7243 10.965C32.842 8.94809 32.4297 5.92727 31.2018 4.90525C29.9738 3.88324 28.1722 5.51123 27.5089 6.46993C23.8429 3.88324 17.9809 4.00082 17.9809 4.00082C17.9809 4.00082 12.1458 3.88324 8.47083 6.46993C7.80754 5.51123 6.01488 3.88324 4.78691 4.90525C3.55894 5.92727 3.15559 8.94809 1.2733 10.965C-0.133943 12.4844 -0.250465 12.9276 0.323186 14.1305C0.887874 15.3334 4.40149 16.3283 6.88432 13.9496C7.21596 15.1887 10.0125 21.9991 17.9899 21.9991C25.9672 21.9991 28.7817 15.1887 29.1043 13.9496C31.5872 16.3283 35.1098 15.3334 35.6834 14.1305C36.2481 12.9276 36.1316 12.4844 34.7243 10.965Z",
|
|
20714
|
-
fill: "#8C8C8C"
|
|
20715
|
-
}
|
|
20716
|
-
)
|
|
20717
|
-
), (status === "canRelease" || status === "refreshing") && /* @__PURE__ */ React.createElement(
|
|
20718
|
-
"svg",
|
|
20719
|
-
{
|
|
20720
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
20721
|
-
width: "36",
|
|
20722
|
-
height: "26",
|
|
20723
|
-
viewBox: "0 0 36 26",
|
|
20724
|
-
fill: "none"
|
|
20725
|
-
},
|
|
20726
|
-
/* @__PURE__ */ React.createElement("circle", { cx: "33", cy: "13", r: "3", fill: "#8C8C8C" }),
|
|
20727
|
-
/* @__PURE__ */ React.createElement("circle", { cx: "18", cy: "13", r: "3", fill: "#8C8C8C" }),
|
|
20728
|
-
/* @__PURE__ */ React.createElement("circle", { cx: "3", cy: "13", r: "3", fill: "#8C8C8C" })
|
|
20729
|
-
)));
|
|
20721
|
+
const renderIcons = (status2) => {
|
|
20722
|
+
return /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement("i", { className: `${classPrefix2}-head-content-icons` }, (status2 === "pulling" || status2 === "complete") && /* @__PURE__ */ React.createElement(t$2, null), (status2 === "canRelease" || status2 === "refreshing") && /* @__PURE__ */ React.createElement(t$1, null)));
|
|
20723
|
+
};
|
|
20724
|
+
const renderStatusIcon = () => {
|
|
20725
|
+
var _a2;
|
|
20726
|
+
if (props.renderIcon) {
|
|
20727
|
+
return (_a2 = props.renderIcon) == null ? void 0 : _a2.call(props, status);
|
|
20728
|
+
}
|
|
20729
|
+
return renderIcons(status);
|
|
20730
20730
|
};
|
|
20731
20731
|
const renderStatusText = () => {
|
|
20732
20732
|
var _a2;
|
|
@@ -20756,7 +20756,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
20756
20756
|
className: `${classPrefix2}-head-content`,
|
|
20757
20757
|
style: { height: headHeight }
|
|
20758
20758
|
},
|
|
20759
|
-
|
|
20759
|
+
/* @__PURE__ */ React.createElement("div", null, renderStatusIcon()),
|
|
20760
20760
|
/* @__PURE__ */ React.createElement("div", null, renderStatusText())
|
|
20761
20761
|
)),
|
|
20762
20762
|
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, props.children)
|
|
@@ -21204,7 +21204,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
21204
21204
|
iconNode = /* @__PURE__ */ React__namespace.createElement(o$6, null);
|
|
21205
21205
|
break;
|
|
21206
21206
|
case "loading":
|
|
21207
|
-
iconNode = /* @__PURE__ */ React__namespace.createElement(t$
|
|
21207
|
+
iconNode = /* @__PURE__ */ React__namespace.createElement(t$2, { className: "nut-icon-loading" });
|
|
21208
21208
|
break;
|
|
21209
21209
|
case "fail":
|
|
21210
21210
|
iconNode = /* @__PURE__ */ React__namespace.createElement(o$3, null);
|
|
@@ -22176,13 +22176,6 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22176
22176
|
}
|
|
22177
22177
|
return formatCache;
|
|
22178
22178
|
};
|
|
22179
|
-
const padZero = (num, length = 2) => {
|
|
22180
|
-
num += "";
|
|
22181
|
-
while (num.length < length) {
|
|
22182
|
-
num = `0${num}`;
|
|
22183
|
-
}
|
|
22184
|
-
return num.toString();
|
|
22185
|
-
};
|
|
22186
22179
|
const pause = () => {
|
|
22187
22180
|
cancelAnimationFrame(stateRef.current.timer);
|
|
22188
22181
|
stateRef.current.counting = false;
|
|
@@ -22580,9 +22573,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22580
22573
|
center: false,
|
|
22581
22574
|
className: ""
|
|
22582
22575
|
};
|
|
22583
|
-
const DISTANCE = 5;
|
|
22584
22576
|
const Swiper = React.forwardRef((props, ref) => {
|
|
22585
|
-
const
|
|
22577
|
+
const mergedProps = { ...defaultProps$h, ...props };
|
|
22586
22578
|
const {
|
|
22587
22579
|
children,
|
|
22588
22580
|
direction,
|
|
@@ -22596,7 +22588,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22596
22588
|
autoPlay,
|
|
22597
22589
|
center,
|
|
22598
22590
|
...rest
|
|
22599
|
-
} =
|
|
22591
|
+
} = mergedProps;
|
|
22600
22592
|
const container = React.useRef(null);
|
|
22601
22593
|
const innerRef = React.useRef(null);
|
|
22602
22594
|
const swiperRef = React.useRef({
|
|
@@ -22607,6 +22599,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22607
22599
|
offset: 0,
|
|
22608
22600
|
size: 0
|
|
22609
22601
|
});
|
|
22602
|
+
const touch = useTouch();
|
|
22610
22603
|
const isVertical = direction === "vertical";
|
|
22611
22604
|
const [rect, setRect] = React.useState(null);
|
|
22612
22605
|
let [active, setActive] = React.useState(0);
|
|
@@ -22616,39 +22609,28 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22616
22609
|
const [childOffset, setChildOffset] = React.useState([]);
|
|
22617
22610
|
const [ready, setReady] = React.useState(false);
|
|
22618
22611
|
let size = isVertical ? height : width;
|
|
22619
|
-
const
|
|
22620
|
-
|
|
22621
|
-
|
|
22622
|
-
deltaX: 0,
|
|
22623
|
-
deltaY: 0,
|
|
22624
|
-
offsetX: 0,
|
|
22625
|
-
offsetY: 0,
|
|
22626
|
-
stateDirection: "",
|
|
22627
|
-
delta: 0,
|
|
22628
|
-
touchTime: 0
|
|
22629
|
-
});
|
|
22630
|
-
const { childs, childCount } = React.useMemo(() => {
|
|
22631
|
-
let childCount2 = 0;
|
|
22632
|
-
const childs2 = React.Children.map(props.children, (child) => {
|
|
22612
|
+
const { swiperItems, swiperItemCount } = React.useMemo(() => {
|
|
22613
|
+
let count = 0;
|
|
22614
|
+
const swiperItems2 = React.Children.map(props.children, (child) => {
|
|
22633
22615
|
if (!React.isValidElement(child))
|
|
22634
22616
|
return null;
|
|
22635
|
-
|
|
22617
|
+
count++;
|
|
22636
22618
|
return child;
|
|
22637
22619
|
});
|
|
22638
22620
|
return {
|
|
22639
|
-
|
|
22640
|
-
|
|
22621
|
+
swiperItems: swiperItems2,
|
|
22622
|
+
swiperItemCount: count
|
|
22641
22623
|
};
|
|
22642
22624
|
}, [props.children]);
|
|
22643
|
-
let trackSize =
|
|
22625
|
+
let trackSize = swiperItemCount * Number(size);
|
|
22644
22626
|
const parent = {
|
|
22645
|
-
propSwiper,
|
|
22627
|
+
propSwiper: mergedProps,
|
|
22646
22628
|
size
|
|
22647
22629
|
};
|
|
22648
22630
|
const minOffset = (() => {
|
|
22649
22631
|
if (rect) {
|
|
22650
22632
|
const base = isVertical ? rect.height : rect.width;
|
|
22651
|
-
return base - Number(size) *
|
|
22633
|
+
return base - Number(size) * swiperItemCount;
|
|
22652
22634
|
}
|
|
22653
22635
|
return 0;
|
|
22654
22636
|
})();
|
|
@@ -22657,65 +22639,59 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22657
22639
|
swiperRef.current.autoplayTimer = null;
|
|
22658
22640
|
};
|
|
22659
22641
|
const startPlay = () => {
|
|
22660
|
-
if (
|
|
22642
|
+
if (mergedProps.autoPlay <= 0 || swiperItemCount <= 1)
|
|
22661
22643
|
return;
|
|
22662
22644
|
stopAutoPlay();
|
|
22663
22645
|
swiperRef.current.autoplayTimer = setTimeout(() => {
|
|
22664
22646
|
next();
|
|
22665
22647
|
startPlay();
|
|
22666
|
-
}, Number(
|
|
22648
|
+
}, Number(mergedProps.autoPlay));
|
|
22667
22649
|
};
|
|
22668
22650
|
const resetPosition = () => {
|
|
22669
22651
|
swiperRef.current.moving = true;
|
|
22670
22652
|
if (active <= -1) {
|
|
22671
|
-
move({ pace:
|
|
22653
|
+
move({ pace: swiperItemCount });
|
|
22672
22654
|
}
|
|
22673
|
-
if (active >=
|
|
22674
|
-
move({ pace: -
|
|
22655
|
+
if (active >= swiperItemCount) {
|
|
22656
|
+
move({ pace: -swiperItemCount });
|
|
22675
22657
|
}
|
|
22676
22658
|
};
|
|
22677
22659
|
const prev = () => {
|
|
22678
22660
|
resetPosition();
|
|
22679
|
-
|
|
22680
|
-
|
|
22681
|
-
|
|
22682
|
-
|
|
22683
|
-
|
|
22684
|
-
|
|
22685
|
-
isEmit: true
|
|
22686
|
-
});
|
|
22661
|
+
touch.reset();
|
|
22662
|
+
requestAniFrame$1(() => {
|
|
22663
|
+
swiperRef.current.moving = false;
|
|
22664
|
+
move({
|
|
22665
|
+
pace: -1,
|
|
22666
|
+
isEmit: true
|
|
22687
22667
|
});
|
|
22688
22668
|
});
|
|
22689
22669
|
};
|
|
22690
22670
|
const next = () => {
|
|
22691
22671
|
resetPosition();
|
|
22692
|
-
|
|
22693
|
-
|
|
22694
|
-
|
|
22695
|
-
|
|
22696
|
-
|
|
22697
|
-
|
|
22698
|
-
isEmit: true
|
|
22699
|
-
});
|
|
22672
|
+
touch.reset();
|
|
22673
|
+
requestAniFrame$1(() => {
|
|
22674
|
+
swiperRef.current.moving = false;
|
|
22675
|
+
move({
|
|
22676
|
+
pace: 1,
|
|
22677
|
+
isEmit: true
|
|
22700
22678
|
});
|
|
22701
22679
|
});
|
|
22702
22680
|
};
|
|
22703
22681
|
const to2 = (index) => {
|
|
22704
22682
|
resetPosition();
|
|
22705
|
-
|
|
22706
|
-
|
|
22707
|
-
|
|
22708
|
-
|
|
22709
|
-
|
|
22710
|
-
|
|
22711
|
-
|
|
22712
|
-
|
|
22713
|
-
|
|
22714
|
-
|
|
22715
|
-
|
|
22716
|
-
|
|
22717
|
-
isEmit: true
|
|
22718
|
-
});
|
|
22683
|
+
touch.reset();
|
|
22684
|
+
requestAniFrame$1(() => {
|
|
22685
|
+
swiperRef.current.moving = false;
|
|
22686
|
+
let targetIndex;
|
|
22687
|
+
if (props.loop && swiperItemCount === index) {
|
|
22688
|
+
targetIndex = active === 0 ? 0 : index;
|
|
22689
|
+
} else {
|
|
22690
|
+
targetIndex = index % swiperItemCount;
|
|
22691
|
+
}
|
|
22692
|
+
move({
|
|
22693
|
+
pace: targetIndex - active,
|
|
22694
|
+
isEmit: true
|
|
22719
22695
|
});
|
|
22720
22696
|
});
|
|
22721
22697
|
};
|
|
@@ -22728,7 +22704,8 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22728
22704
|
isEmit = false,
|
|
22729
22705
|
movingStatus = false
|
|
22730
22706
|
}) => {
|
|
22731
|
-
|
|
22707
|
+
var _a2;
|
|
22708
|
+
if (swiperItemCount <= 1)
|
|
22732
22709
|
return;
|
|
22733
22710
|
const targetActive = getActive(pace);
|
|
22734
22711
|
const targetOffset = getOffset(targetActive, offset2);
|
|
@@ -22737,27 +22714,33 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22737
22714
|
const rightBound = targetOffset < minOffset;
|
|
22738
22715
|
childOffset[0] = rightBound ? trackSize : 0;
|
|
22739
22716
|
}
|
|
22740
|
-
if (Array.isArray(children) && children[
|
|
22717
|
+
if (Array.isArray(children) && children[swiperItemCount - 1] && targetOffset !== 0) {
|
|
22741
22718
|
const leftBound = targetOffset > 0;
|
|
22742
|
-
childOffset[
|
|
22719
|
+
childOffset[swiperItemCount - 1] = leftBound ? -trackSize : 0;
|
|
22743
22720
|
}
|
|
22744
22721
|
setChildOffset(childOffset);
|
|
22745
22722
|
}
|
|
22746
22723
|
if (isEmit && active !== targetActive) {
|
|
22747
|
-
props.onChange
|
|
22724
|
+
(_a2 = props.onChange) == null ? void 0 : _a2.call(props, (targetActive + swiperItemCount) % swiperItemCount);
|
|
22748
22725
|
}
|
|
22749
22726
|
active = targetActive;
|
|
22750
22727
|
setActive(targetActive);
|
|
22751
22728
|
setOffset(targetOffset);
|
|
22752
22729
|
getStyle(targetOffset);
|
|
22753
22730
|
};
|
|
22731
|
+
React.useImperativeHandle(ref, () => ({
|
|
22732
|
+
to: to2,
|
|
22733
|
+
next,
|
|
22734
|
+
prev,
|
|
22735
|
+
resize
|
|
22736
|
+
}));
|
|
22754
22737
|
const getActive = (pace) => {
|
|
22755
22738
|
if (pace) {
|
|
22756
22739
|
const _active = active + pace;
|
|
22757
22740
|
if (props.loop) {
|
|
22758
|
-
return range2(_active, -1,
|
|
22741
|
+
return range2(_active, -1, swiperItemCount);
|
|
22759
22742
|
}
|
|
22760
|
-
return range2(_active, 0,
|
|
22743
|
+
return range2(_active, 0, swiperItemCount - 1);
|
|
22761
22744
|
}
|
|
22762
22745
|
return active;
|
|
22763
22746
|
};
|
|
@@ -22772,45 +22755,9 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22772
22755
|
}
|
|
22773
22756
|
return targetOffset;
|
|
22774
22757
|
};
|
|
22775
|
-
const requestFrame = (fn) => {
|
|
22776
|
-
window.requestAnimationFrame.call(window, fn);
|
|
22777
|
-
};
|
|
22778
22758
|
const range2 = (num, min, max) => {
|
|
22779
22759
|
return Math.min(Math.max(num, min), max);
|
|
22780
22760
|
};
|
|
22781
|
-
const getDirection2 = (x, y) => {
|
|
22782
|
-
if (x > y && x > DISTANCE)
|
|
22783
|
-
return "horizontal";
|
|
22784
|
-
if (y > x && y > DISTANCE)
|
|
22785
|
-
return "vertical";
|
|
22786
|
-
return "";
|
|
22787
|
-
};
|
|
22788
|
-
const resetTouchDetails = () => {
|
|
22789
|
-
touch.startX = 0;
|
|
22790
|
-
touch.startY = 0;
|
|
22791
|
-
touch.deltaX = 0;
|
|
22792
|
-
touch.deltaY = 0;
|
|
22793
|
-
touch.offsetX = 0;
|
|
22794
|
-
touch.offsetY = 0;
|
|
22795
|
-
touch.delta = 0;
|
|
22796
|
-
touch.stateDirection = "";
|
|
22797
|
-
touch.touchTime = 0;
|
|
22798
|
-
};
|
|
22799
|
-
const touchStart = (e2) => {
|
|
22800
|
-
resetTouchDetails();
|
|
22801
|
-
touch.startX = e2.touches[0].clientX;
|
|
22802
|
-
touch.startY = e2.touches[0].clientY;
|
|
22803
|
-
};
|
|
22804
|
-
const handleTouchMove = (e2) => {
|
|
22805
|
-
touch.deltaX = e2.touches[0].clientX - touch.startX;
|
|
22806
|
-
touch.deltaY = e2.touches[0].clientY - touch.startY;
|
|
22807
|
-
touch.offsetX = Math.abs(touch.deltaX);
|
|
22808
|
-
touch.offsetY = Math.abs(touch.deltaY);
|
|
22809
|
-
touch.delta = isVertical ? touch.deltaY : touch.deltaX;
|
|
22810
|
-
if (!touch.stateDirection) {
|
|
22811
|
-
touch.stateDirection = getDirection2(touch.offsetX, touch.offsetY);
|
|
22812
|
-
}
|
|
22813
|
-
};
|
|
22814
22761
|
const classPrefix2 = "nut-swiper";
|
|
22815
22762
|
const contentClass = classNames({
|
|
22816
22763
|
[`${classPrefix2}-inner`]: true,
|
|
@@ -22824,18 +22771,17 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22824
22771
|
} else {
|
|
22825
22772
|
const _size = isVertical ? height : width;
|
|
22826
22773
|
const val = isVertical ? rect.height - _size : rect.width - _size;
|
|
22827
|
-
_offset = moveOffset + (active ===
|
|
22774
|
+
_offset = moveOffset + (active === swiperItemCount - 1 && !props.loop ? -val / 2 : val / 2);
|
|
22828
22775
|
}
|
|
22829
22776
|
target.style.transitionDuration = `${swiperRef.current.moving ? 0 : props.duration}ms`;
|
|
22830
|
-
target.style[isVertical ? "height" : "width"] = `${Number(size) *
|
|
22777
|
+
target.style[isVertical ? "height" : "width"] = `${Number(size) * swiperItemCount}px`;
|
|
22831
22778
|
target.style[isVertical ? "width" : "height"] = `${isVertical ? width : height}px`;
|
|
22832
22779
|
target.style.transform = `translate3D${!isVertical ? `(${_offset}px,0,0)` : `(0,${_offset}px,0)`}`;
|
|
22833
22780
|
};
|
|
22834
22781
|
const onTouchStart = (e2) => {
|
|
22835
22782
|
if (!props.touchable)
|
|
22836
22783
|
return;
|
|
22837
|
-
|
|
22838
|
-
touch.touchTime = Date.now();
|
|
22784
|
+
touch.start(e2);
|
|
22839
22785
|
stopAutoPlay();
|
|
22840
22786
|
resetPosition();
|
|
22841
22787
|
};
|
|
@@ -22845,10 +22791,10 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22845
22791
|
if (props.stopPropagation)
|
|
22846
22792
|
e2.stopPropagation();
|
|
22847
22793
|
if (props.touchable && swiperRef.current.moving) {
|
|
22848
|
-
|
|
22849
|
-
if (touch.
|
|
22794
|
+
touch.move(e2);
|
|
22795
|
+
if (touch.direction.current === props.direction) {
|
|
22850
22796
|
move({
|
|
22851
|
-
offset: touch.delta
|
|
22797
|
+
offset: touch.delta.current
|
|
22852
22798
|
});
|
|
22853
22799
|
}
|
|
22854
22800
|
}
|
|
@@ -22856,42 +22802,53 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22856
22802
|
const onTouchEnd = (e2) => {
|
|
22857
22803
|
if (!props.touchable || !swiperRef.current.moving)
|
|
22858
22804
|
return;
|
|
22859
|
-
const speed = touch.delta / (Date.now() - touch.touchTime);
|
|
22860
|
-
const isShouldMove = Math.abs(speed) > 0.3 || Math.abs(touch.delta) > Number((size / 2).toFixed(2));
|
|
22861
|
-
let pace = 0;
|
|
22805
|
+
const speed = touch.delta.current / (Date.now() - touch.touchTime.current);
|
|
22806
|
+
const isShouldMove = Math.abs(speed) > 0.3 || Math.abs(touch.delta.current) > Number((size / 2).toFixed(2));
|
|
22862
22807
|
swiperRef.current.moving = false;
|
|
22863
|
-
if (isShouldMove && touch.
|
|
22864
|
-
|
|
22808
|
+
if (isShouldMove && touch.direction.current === props.direction) {
|
|
22809
|
+
let pace = 0;
|
|
22810
|
+
const offset2 = touch.isVertical() ? touch.offsetY : touch.offsetX;
|
|
22865
22811
|
if (props.loop) {
|
|
22866
|
-
if (offset2 > 0) {
|
|
22867
|
-
pace = touch.delta > 0 ? -1 : 1;
|
|
22868
|
-
} else {
|
|
22869
|
-
pace = 0;
|
|
22812
|
+
if (offset2.current > 0) {
|
|
22813
|
+
pace = touch.delta.current > 0 ? -1 : 1;
|
|
22870
22814
|
}
|
|
22871
22815
|
} else {
|
|
22872
|
-
pace = -Math[touch.delta > 0 ? "ceil" : "floor"](
|
|
22816
|
+
pace = -Math[touch.delta.current > 0 ? "ceil" : "floor"](
|
|
22817
|
+
touch.delta.current / size
|
|
22818
|
+
);
|
|
22873
22819
|
}
|
|
22874
22820
|
move({
|
|
22875
22821
|
pace,
|
|
22876
22822
|
isEmit: true
|
|
22877
22823
|
});
|
|
22878
|
-
} else if (touch.delta) {
|
|
22824
|
+
} else if (touch.delta.current) {
|
|
22879
22825
|
move({ pace: 0 });
|
|
22880
22826
|
} else {
|
|
22881
22827
|
getStyle();
|
|
22882
22828
|
}
|
|
22883
22829
|
startPlay();
|
|
22884
22830
|
};
|
|
22885
|
-
|
|
22886
|
-
|
|
22887
|
-
|
|
22888
|
-
|
|
22831
|
+
const getItemStyle = (index) => {
|
|
22832
|
+
const style = {};
|
|
22833
|
+
if (size) {
|
|
22834
|
+
style[direction === "horizontal" ? "width" : "height"] = `${size}px`;
|
|
22835
|
+
}
|
|
22836
|
+
const offset2 = childOffset[index];
|
|
22837
|
+
if (offset2) {
|
|
22838
|
+
style.transform = `translate3D${direction === "horizontal" ? `(${offset2}px,0,0)` : `(0,${offset2}px,0)`}`;
|
|
22839
|
+
}
|
|
22840
|
+
return style;
|
|
22841
|
+
};
|
|
22842
|
+
const init = (index) => {
|
|
22889
22843
|
const rect2 = getRect(container == null ? void 0 : container.current);
|
|
22890
|
-
const currentIndex = Math.max(
|
|
22891
|
-
|
|
22892
|
-
|
|
22844
|
+
const currentIndex = Math.max(
|
|
22845
|
+
Math.min(swiperItemCount - 1, index || Number(mergedProps.defaultValue)),
|
|
22846
|
+
0
|
|
22847
|
+
);
|
|
22848
|
+
const width2 = Number(mergedProps.width) || rect2.width;
|
|
22849
|
+
const height2 = Number(mergedProps.height) || rect2.height;
|
|
22893
22850
|
size = isVertical ? height2 : width2;
|
|
22894
|
-
trackSize =
|
|
22851
|
+
trackSize = swiperItemCount * Number(size);
|
|
22895
22852
|
const targetOffset = getOffset(currentIndex);
|
|
22896
22853
|
swiperRef.current.moving = true;
|
|
22897
22854
|
if (ready) {
|
|
@@ -22920,61 +22877,49 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22920
22877
|
stopAutoPlay();
|
|
22921
22878
|
startPlay();
|
|
22922
22879
|
}, [children]);
|
|
22923
|
-
React.useEffect(() => init(), [propSwiper.defaultValue]);
|
|
22924
22880
|
React.useEffect(() => {
|
|
22925
|
-
const
|
|
22926
|
-
|
|
22927
|
-
|
|
22928
|
-
|
|
22881
|
+
const events = [
|
|
22882
|
+
{ name: "touchstart", e: onTouchStart },
|
|
22883
|
+
{ name: "touchmove", e: onTouchMove },
|
|
22884
|
+
{ name: "touchend", e: onTouchEnd }
|
|
22885
|
+
];
|
|
22886
|
+
events.forEach((item) => {
|
|
22887
|
+
var _a2;
|
|
22888
|
+
(_a2 = container.current) == null ? void 0 : _a2.addEventListener(item.name, item.e, false);
|
|
22889
|
+
});
|
|
22929
22890
|
return () => {
|
|
22930
|
-
|
|
22931
|
-
|
|
22932
|
-
|
|
22891
|
+
events.forEach((item) => {
|
|
22892
|
+
var _a2;
|
|
22893
|
+
(_a2 = container.current) == null ? void 0 : _a2.removeEventListener(item.name, item.e, false);
|
|
22894
|
+
});
|
|
22933
22895
|
};
|
|
22934
22896
|
});
|
|
22897
|
+
React.useEffect(() => init(), [props.defaultValue]);
|
|
22935
22898
|
React.useEffect(() => {
|
|
22936
22899
|
return () => stopAutoPlay();
|
|
22937
22900
|
}, []);
|
|
22938
|
-
const getItemStyle = (index) => {
|
|
22939
|
-
const style = {};
|
|
22940
|
-
if (size) {
|
|
22941
|
-
style[direction === "horizontal" ? "width" : "height"] = `${size}px`;
|
|
22942
|
-
}
|
|
22943
|
-
const offset2 = childOffset[index];
|
|
22944
|
-
if (offset2) {
|
|
22945
|
-
style.transform = `translate3D${direction === "horizontal" ? `(${offset2}px,0,0)` : `(0,${offset2}px,0)`}`;
|
|
22946
|
-
}
|
|
22947
|
-
return style;
|
|
22948
|
-
};
|
|
22949
|
-
React.useImperativeHandle(ref, () => ({
|
|
22950
|
-
to: to2,
|
|
22951
|
-
next,
|
|
22952
|
-
prev,
|
|
22953
|
-
resize
|
|
22954
|
-
}));
|
|
22955
22901
|
const renderIndicator = () => {
|
|
22956
22902
|
if (React.isValidElement(indicator))
|
|
22957
22903
|
return indicator;
|
|
22958
|
-
if (indicator
|
|
22959
|
-
return
|
|
22960
|
-
|
|
22904
|
+
if (!indicator)
|
|
22905
|
+
return null;
|
|
22906
|
+
return /* @__PURE__ */ React.createElement(
|
|
22907
|
+
"div",
|
|
22908
|
+
{
|
|
22909
|
+
className: classNames({
|
|
22910
|
+
[`${classPrefix2}-indicator`]: true,
|
|
22911
|
+
[`${classPrefix2}-indicator-vertical`]: isVertical
|
|
22912
|
+
})
|
|
22913
|
+
},
|
|
22914
|
+
/* @__PURE__ */ React.createElement(
|
|
22915
|
+
Indicator,
|
|
22961
22916
|
{
|
|
22962
|
-
|
|
22963
|
-
|
|
22964
|
-
|
|
22965
|
-
|
|
22966
|
-
|
|
22967
|
-
|
|
22968
|
-
Indicator,
|
|
22969
|
-
{
|
|
22970
|
-
current: (active + childCount) % childCount,
|
|
22971
|
-
total: childs == null ? void 0 : childs.length,
|
|
22972
|
-
direction
|
|
22973
|
-
}
|
|
22974
|
-
)
|
|
22975
|
-
);
|
|
22976
|
-
}
|
|
22977
|
-
return null;
|
|
22917
|
+
current: (active + swiperItemCount) % swiperItemCount,
|
|
22918
|
+
total: swiperItems == null ? void 0 : swiperItems.length,
|
|
22919
|
+
direction
|
|
22920
|
+
}
|
|
22921
|
+
)
|
|
22922
|
+
);
|
|
22978
22923
|
};
|
|
22979
22924
|
return /* @__PURE__ */ React.createElement(DataContext$1.Provider, { value: parent }, /* @__PURE__ */ React.createElement(
|
|
22980
22925
|
"div",
|
|
@@ -22983,7 +22928,7 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
22983
22928
|
ref: container,
|
|
22984
22929
|
...rest
|
|
22985
22930
|
},
|
|
22986
|
-
/* @__PURE__ */ React.createElement("div", { className: contentClass, ref: innerRef }, React.Children.map(
|
|
22931
|
+
/* @__PURE__ */ React.createElement("div", { className: contentClass, ref: innerRef }, React.Children.map(swiperItems, (child, index) => /* @__PURE__ */ React.createElement(
|
|
22987
22932
|
"div",
|
|
22988
22933
|
{
|
|
22989
22934
|
className: `${classPrefix2}-item-wrapper`,
|
|
@@ -23524,6 +23469,76 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23524
23469
|
};
|
|
23525
23470
|
Steps.defaultProps = defaultProps$b;
|
|
23526
23471
|
Steps.displayName = "NutSteps";
|
|
23472
|
+
function useTableSticky(columns) {
|
|
23473
|
+
const [isSticky, setIsSticky] = React.useState(false);
|
|
23474
|
+
const [stickyColumnStyleMap, setStickyColumnStyleMap] = React.useState({});
|
|
23475
|
+
const [stickyColumnClassMap, setStickyColumnClassMap] = React.useState({});
|
|
23476
|
+
const [stickyLeftWidth, setStickyLeftWidth] = React.useState(0);
|
|
23477
|
+
const [stickyRightWidth, setStickyRightWidth] = React.useState(0);
|
|
23478
|
+
React.useEffect(() => {
|
|
23479
|
+
const leftColumns = columns.filter((item) => item.fixed === "left") || [];
|
|
23480
|
+
const rightColumns = columns.filter((item) => item.fixed === "right") || [];
|
|
23481
|
+
const middleColumns = columns.filter((item) => !item.fixed) || [];
|
|
23482
|
+
const _columnStyleMap = {};
|
|
23483
|
+
const _columnClassMap = {};
|
|
23484
|
+
let _stickyLeftWidth = 0;
|
|
23485
|
+
let _stickyRightWidth = 0;
|
|
23486
|
+
leftColumns.forEach((curr, index) => {
|
|
23487
|
+
leftColumns[index - 1] || {};
|
|
23488
|
+
_columnStyleMap[curr.key] = {
|
|
23489
|
+
left: _stickyLeftWidth || 0,
|
|
23490
|
+
width: curr.width || "auto"
|
|
23491
|
+
};
|
|
23492
|
+
_columnClassMap[curr.key] = {
|
|
23493
|
+
"nut-table-fixed-left": true,
|
|
23494
|
+
"nut-table-fixed-left-last": index === leftColumns.length - 1
|
|
23495
|
+
};
|
|
23496
|
+
_stickyLeftWidth += curr.width || 0;
|
|
23497
|
+
});
|
|
23498
|
+
middleColumns.forEach((curr) => {
|
|
23499
|
+
_columnStyleMap[curr.key] = {
|
|
23500
|
+
width: curr.width || "auto"
|
|
23501
|
+
};
|
|
23502
|
+
});
|
|
23503
|
+
for (let i = rightColumns.length - 1; i >= 0; i--) {
|
|
23504
|
+
const curr = rightColumns[i];
|
|
23505
|
+
rightColumns[i + 1] || {};
|
|
23506
|
+
_columnStyleMap[curr.key] = {
|
|
23507
|
+
right: _stickyRightWidth || 0,
|
|
23508
|
+
width: curr.width || "auto"
|
|
23509
|
+
};
|
|
23510
|
+
_columnClassMap[curr.key] = {
|
|
23511
|
+
"nut-table-fixed-right": true,
|
|
23512
|
+
"nut-table-fixed-right-first": i === 0
|
|
23513
|
+
};
|
|
23514
|
+
_stickyRightWidth += curr.width || 0;
|
|
23515
|
+
}
|
|
23516
|
+
setIsSticky(leftColumns.length > 0 || rightColumns.length > 0);
|
|
23517
|
+
setStickyColumnStyleMap(_columnStyleMap);
|
|
23518
|
+
setStickyColumnClassMap(_columnClassMap);
|
|
23519
|
+
setStickyLeftWidth(_stickyLeftWidth);
|
|
23520
|
+
setStickyRightWidth(_stickyRightWidth);
|
|
23521
|
+
}, [columns]);
|
|
23522
|
+
const getStickyStyle = React.useCallback(
|
|
23523
|
+
(key) => {
|
|
23524
|
+
return stickyColumnStyleMap[key];
|
|
23525
|
+
},
|
|
23526
|
+
[stickyColumnStyleMap]
|
|
23527
|
+
);
|
|
23528
|
+
const getStickyClass = React.useCallback(
|
|
23529
|
+
(key) => {
|
|
23530
|
+
return stickyColumnClassMap[key];
|
|
23531
|
+
},
|
|
23532
|
+
[stickyColumnClassMap]
|
|
23533
|
+
);
|
|
23534
|
+
return {
|
|
23535
|
+
isSticky,
|
|
23536
|
+
stickyLeftWidth,
|
|
23537
|
+
stickyRightWidth,
|
|
23538
|
+
getStickyClass,
|
|
23539
|
+
getStickyStyle
|
|
23540
|
+
};
|
|
23541
|
+
}
|
|
23527
23542
|
const defaultProps$a = {
|
|
23528
23543
|
...ComponentDefaults,
|
|
23529
23544
|
columns: [],
|
|
@@ -23560,6 +23575,13 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23560
23575
|
defaultValue: data,
|
|
23561
23576
|
finalValue: []
|
|
23562
23577
|
});
|
|
23578
|
+
const {
|
|
23579
|
+
isSticky,
|
|
23580
|
+
stickyLeftWidth,
|
|
23581
|
+
stickyRightWidth,
|
|
23582
|
+
getStickyClass,
|
|
23583
|
+
getStickyStyle
|
|
23584
|
+
} = useTableSticky(columns);
|
|
23563
23585
|
React.useEffect(() => {
|
|
23564
23586
|
setValue(data);
|
|
23565
23587
|
}, [data]);
|
|
@@ -23595,15 +23617,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23595
23617
|
const renderHeadCells = () => {
|
|
23596
23618
|
return columns.map((item, index) => {
|
|
23597
23619
|
return /* @__PURE__ */ React.createElement(
|
|
23598
|
-
"
|
|
23620
|
+
"div",
|
|
23599
23621
|
{
|
|
23600
|
-
className: classNames(
|
|
23622
|
+
className: classNames(
|
|
23623
|
+
`${headerClassPrefix}-th`,
|
|
23624
|
+
cellClasses(item),
|
|
23625
|
+
getStickyClass(item.key)
|
|
23626
|
+
),
|
|
23601
23627
|
key: item.key,
|
|
23602
|
-
onClick: () => handleSorterClick(item)
|
|
23628
|
+
onClick: () => handleSorterClick(item),
|
|
23629
|
+
style: getStickyStyle(item.key)
|
|
23603
23630
|
},
|
|
23604
23631
|
item.title,
|
|
23605
23632
|
" ",
|
|
23606
|
-
item.sorter && (sorterIcon || /* @__PURE__ */ React.createElement(t$
|
|
23633
|
+
item.sorter && (sorterIcon || /* @__PURE__ */ React.createElement(t$5, { width: "12px", height: "12px" }))
|
|
23607
23634
|
);
|
|
23608
23635
|
});
|
|
23609
23636
|
};
|
|
@@ -23615,24 +23642,26 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23615
23642
|
const renderBodyTds = (item, rowIndex) => {
|
|
23616
23643
|
return sortDataItem().map(([value, render2]) => {
|
|
23617
23644
|
return /* @__PURE__ */ React.createElement(
|
|
23618
|
-
"
|
|
23645
|
+
"div",
|
|
23619
23646
|
{
|
|
23620
23647
|
className: classNames(
|
|
23621
23648
|
`${bodyClassPrefix}-td`,
|
|
23622
|
-
cellClasses(getColumnItem(value))
|
|
23649
|
+
cellClasses(getColumnItem(value)),
|
|
23650
|
+
getStickyClass(value)
|
|
23623
23651
|
),
|
|
23624
|
-
key: value
|
|
23652
|
+
key: value,
|
|
23653
|
+
style: getStickyStyle(value)
|
|
23625
23654
|
},
|
|
23626
23655
|
typeof item[value] === "function" || typeof render2 === "function" ? /* @__PURE__ */ React.createElement("div", null, render2 ? render2(item, rowIndex) : item[value](item)) : item[value]
|
|
23627
23656
|
);
|
|
23628
23657
|
});
|
|
23629
23658
|
};
|
|
23630
|
-
const
|
|
23659
|
+
const renderBodyTrs = () => {
|
|
23631
23660
|
return innerValue.map((item, index) => {
|
|
23632
23661
|
return /* @__PURE__ */ React.createElement("div", { className: bodyClassPrefix, key: index }, renderBodyTds(item, index));
|
|
23633
23662
|
});
|
|
23634
23663
|
};
|
|
23635
|
-
return /* @__PURE__ */ React.createElement("div", { className: cls,
|
|
23664
|
+
return /* @__PURE__ */ React.createElement("div", { className: cls, ...rest }, /* @__PURE__ */ React.createElement("div", { className: classNames(`${classPrefix2}-wrapper`), style }, /* @__PURE__ */ React.createElement(
|
|
23636
23665
|
"div",
|
|
23637
23666
|
{
|
|
23638
23667
|
className: classNames(`${classPrefix2}-main`, {
|
|
@@ -23640,8 +23669,20 @@ Please add \`${key}Action\` when creating your handler.`);
|
|
|
23640
23669
|
})
|
|
23641
23670
|
},
|
|
23642
23671
|
showHeader && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-main-head` }, /* @__PURE__ */ React.createElement("div", { className: headerClassPrefix }, renderHeadCells())),
|
|
23643
|
-
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-main-body` },
|
|
23644
|
-
),
|
|
23672
|
+
/* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-main-body` }, renderBodyTrs())
|
|
23673
|
+
)), isSticky ? /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
|
|
23674
|
+
"div",
|
|
23675
|
+
{
|
|
23676
|
+
className: `${classPrefix2}-sticky-left`,
|
|
23677
|
+
style: { width: stickyLeftWidth }
|
|
23678
|
+
}
|
|
23679
|
+
), /* @__PURE__ */ React.createElement(
|
|
23680
|
+
"div",
|
|
23681
|
+
{
|
|
23682
|
+
className: `${classPrefix2}-sticky-right`,
|
|
23683
|
+
style: { width: stickyRightWidth }
|
|
23684
|
+
}
|
|
23685
|
+
)) : null, (summary || innerValue.length === 0) && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-summary` }, summary || noData));
|
|
23645
23686
|
};
|
|
23646
23687
|
Table.defaultProps = defaultProps$a;
|
|
23647
23688
|
Table.displayName = "NutTable";
|