@nutui/nutui-react 3.0.20-beta.0 → 3.0.20
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 +13 -0
- package/dist/cjs/hooks/taro/use-custom-event.js +5 -5
- package/dist/cjs/hooks/use-ref-state.js +3 -3
- package/dist/cjs/hooks/use-touch.js +1 -2
- package/dist/cjs/packages/address/address.js +3 -3
- package/dist/cjs/packages/address/utils.js +3 -3
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +4 -7
- package/dist/cjs/packages/calendar/utils.js +8 -8
- package/dist/cjs/packages/calendarcard/icon.js +5 -5
- package/dist/cjs/packages/calendarcard/utils.js +6 -6
- package/dist/cjs/packages/cascader/cascader.js +12 -21
- package/dist/cjs/packages/cascader/utils.js +3 -3
- package/dist/cjs/packages/collapseitem/collapseitem.js +4 -7
- package/dist/cjs/packages/configprovider/configprovider.js +7 -7
- package/dist/cjs/packages/configprovider/index.js +6 -6
- package/dist/cjs/packages/countdown/countdown.js +1 -2
- package/dist/cjs/packages/datepicker/utils.js +9 -9
- package/dist/cjs/packages/dialog/content.js +3 -3
- package/dist/cjs/packages/dialog/dialog.js +4 -7
- package/dist/cjs/packages/elevator/elevator.js +3 -3
- package/dist/cjs/packages/form/index.js +0 -2
- package/dist/cjs/packages/form/useform.js +50 -57
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/cjs/packages/inputnumber/inputnumber.js +16 -28
- package/dist/cjs/packages/lottie/types.js +0 -2
- package/dist/cjs/packages/nutui.react.build.js +105 -105
- package/dist/cjs/packages/nutui.react.js +105 -105
- package/dist/cjs/packages/overlay/overlay.js +3 -3
- package/dist/cjs/packages/pickerview/pickerview.js +1 -2
- package/dist/cjs/packages/pickerview/utils.js +3 -3
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +41 -51
- package/dist/cjs/packages/radio/index.js +0 -2
- package/dist/cjs/packages/range/utils.js +3 -3
- package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
- package/dist/cjs/packages/skeleton/skeleton.js +2 -4
- package/dist/cjs/packages/swiper/effects/focus.js +4 -4
- package/dist/cjs/packages/swiper/index.js +0 -1
- package/dist/cjs/packages/switch/switch.js +4 -7
- package/dist/cjs/packages/uploader/uploader.js +30 -37
- package/dist/cjs/packages/virtuallist/utils.js +6 -6
- package/dist/cjs/packages/watermark/watermark.js +4 -8
- package/dist/cjs/types/spec/address/base.js +0 -2
- package/dist/cjs/utils/date.js +5 -5
- package/dist/cjs/utils/event-mocker.js +10 -18
- package/dist/cjs/utils/get-rect.js +4 -4
- package/dist/cjs/utils/get-scroll-parent.js +3 -3
- package/dist/cjs/utils/merge-props.js +3 -3
- package/dist/cjs/utils/merge.js +6 -6
- package/dist/cjs/utils/raf.js +3 -3
- package/dist/cjs/utils/render.js +5 -9
- package/dist/cjs/utils/rubberband.js +3 -3
- package/dist/cjs/utils/taro/ConfigurableCSSTransition copy.d.ts +15 -0
- package/dist/cjs/utils/taro/ConfigurableCSSTransition copy.js +130 -0
- package/dist/cjs/utils/taro/get-rect.js +14 -24
- package/dist/cjs/utils/taro/get-system-info.js +4 -4
- package/dist/cjs/utils/taro/platform.js +5 -5
- package/dist/es/hooks/use-touch.js +1 -1
- package/dist/es/packages/avatarcropper/avatarcropper.js +4 -7
- package/dist/es/packages/cascader/cascader.js +12 -21
- package/dist/es/packages/collapseitem/collapseitem.js +4 -7
- package/dist/es/packages/countdown/countdown.js +1 -2
- package/dist/es/packages/dialog/dialog.js +4 -7
- package/dist/es/packages/form/index.js +0 -1
- package/dist/es/packages/form/useform.js +46 -53
- package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/es/packages/inputnumber/inputnumber.js +16 -28
- package/dist/es/packages/lottie/types.js +1 -1
- package/dist/es/packages/pickerview/pickerview.js +1 -2
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +41 -51
- package/dist/es/packages/radio/index.js +0 -1
- package/dist/es/packages/skeleton/skeleton.js +2 -4
- package/dist/es/packages/swiper/index.js +0 -1
- package/dist/es/packages/switch/switch.js +4 -7
- package/dist/es/packages/uploader/uploader.js +30 -37
- package/dist/es/packages/watermark/watermark.js +4 -8
- package/dist/es/types/spec/address/base.js +1 -1
- package/dist/es/utils/event-mocker.js +4 -12
- package/dist/es/utils/render.js +2 -6
- package/dist/es/utils/taro/ConfigurableCSSTransition copy.d.ts +15 -0
- package/dist/es/utils/taro/ConfigurableCSSTransition copy.js +119 -0
- package/dist/es/utils/taro/get-rect.js +10 -20
- package/dist/nutui.react.umd.js +396 -592
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +33 -33
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +36 -36
- package/dist/style.css +1 -1
- package/dist/style.scss +36 -36
- package/package.json +1 -1
package/dist/nutui.react.umd.js
CHANGED
|
@@ -152,9 +152,7 @@
|
|
|
152
152
|
var classnamesExports = classnames.exports;
|
|
153
153
|
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
154
154
|
const n$b = {
|
|
155
|
-
classPrefix: "nut-icon"
|
|
156
|
-
tag: "i",
|
|
157
|
-
fontClassName: "nutui-iconfont"
|
|
155
|
+
classPrefix: "nut-icon"
|
|
158
156
|
};
|
|
159
157
|
var re = { exports: {} }, Y = {};
|
|
160
158
|
/**
|
|
@@ -417,18 +415,18 @@
|
|
|
417
415
|
if (p2 && n2 && typeof p2.stack == "string") {
|
|
418
416
|
for (var a = p2.stack.split(`
|
|
419
417
|
`), v = n2.stack.split(`
|
|
420
|
-
`), l2 = a.length - 1,
|
|
421
|
-
|
|
422
|
-
for (; l2 >= 1 &&
|
|
423
|
-
if (a[l2] !== v[
|
|
424
|
-
if (l2 !== 1 ||
|
|
418
|
+
`), l2 = a.length - 1, c2 = v.length - 1; l2 >= 1 && c2 >= 0 && a[l2] !== v[c2]; )
|
|
419
|
+
c2--;
|
|
420
|
+
for (; l2 >= 1 && c2 >= 0; l2--, c2--)
|
|
421
|
+
if (a[l2] !== v[c2]) {
|
|
422
|
+
if (l2 !== 1 || c2 !== 1)
|
|
425
423
|
do
|
|
426
|
-
if (l2--,
|
|
424
|
+
if (l2--, c2--, c2 < 0 || a[l2] !== v[c2]) {
|
|
427
425
|
var g = `
|
|
428
426
|
` + a[l2].replace(" at new ", " at ");
|
|
429
427
|
return e.displayName && g.includes("<anonymous>") && (g = g.replace("<anonymous>", e.displayName)), typeof e == "function" && U.set(e, g), g;
|
|
430
428
|
}
|
|
431
|
-
while (l2 >= 1 &&
|
|
429
|
+
while (l2 >= 1 && c2 >= 0);
|
|
432
430
|
break;
|
|
433
431
|
}
|
|
434
432
|
}
|
|
@@ -613,8 +611,8 @@
|
|
|
613
611
|
i2[s2] === void 0 && (i2[s2] = l2[s2]);
|
|
614
612
|
}
|
|
615
613
|
if (a || v) {
|
|
616
|
-
var
|
|
617
|
-
a && Ze(i2,
|
|
614
|
+
var c2 = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
615
|
+
a && Ze(i2, c2), v && Qe(i2, c2);
|
|
618
616
|
}
|
|
619
617
|
return er(e, a, v, o, n2, W.current, i2);
|
|
620
618
|
}
|
|
@@ -743,9 +741,9 @@ Check the top-level render call using <` + t + ">.");
|
|
|
743
741
|
var l2;
|
|
744
742
|
e === null ? l2 = "null" : z(e) ? l2 = "array" : e !== void 0 && e.$$typeof === E ? (l2 = "<" + (b(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : l2 = typeof e, u("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", l2, a);
|
|
745
743
|
}
|
|
746
|
-
var
|
|
747
|
-
if (
|
|
748
|
-
return
|
|
744
|
+
var c2 = rr(e, r, t, o, s2);
|
|
745
|
+
if (c2 == null)
|
|
746
|
+
return c2;
|
|
749
747
|
if (i2) {
|
|
750
748
|
var g = r.children;
|
|
751
749
|
if (g !== void 0)
|
|
@@ -773,7 +771,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
773
771
|
<%s key={someKey} {...props} />`, ee, O, cr, O), Ce[O + ee] = true;
|
|
774
772
|
}
|
|
775
773
|
}
|
|
776
|
-
return e === R ? ir(
|
|
774
|
+
return e === R ? ir(c2) : ar(c2), c2;
|
|
777
775
|
}
|
|
778
776
|
}
|
|
779
777
|
function or(e, r, t) {
|
|
@@ -863,8 +861,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
863
861
|
) });
|
|
864
862
|
};
|
|
865
863
|
const d$e = (s2) => {
|
|
866
|
-
const
|
|
867
|
-
return /* @__PURE__ */ Er(Rr, { ...
|
|
864
|
+
const c2 = { ...hr, ...s2 };
|
|
865
|
+
return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Ask", viewBox: "0 0 1024 1024", children: [
|
|
868
866
|
/* @__PURE__ */ xe(
|
|
869
867
|
"path",
|
|
870
868
|
{
|
|
@@ -932,8 +930,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
932
930
|
}
|
|
933
931
|
) });
|
|
934
932
|
};
|
|
935
|
-
const n$5 = (
|
|
936
|
-
const o = { ...hr, ...
|
|
933
|
+
const n$5 = (c2) => {
|
|
934
|
+
const o = { ...hr, ...c2 };
|
|
937
935
|
return /* @__PURE__ */ xe(Rr, { ...o, name: o.name || "Close", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ xe(
|
|
938
936
|
"path",
|
|
939
937
|
{
|
|
@@ -943,8 +941,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
943
941
|
) });
|
|
944
942
|
};
|
|
945
943
|
const d$d = (a) => {
|
|
946
|
-
const
|
|
947
|
-
return /* @__PURE__ */ Er(Rr, { ...
|
|
944
|
+
const c2 = { ...hr, ...a };
|
|
945
|
+
return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Del", viewBox: "0 0 1024 1024", children: [
|
|
948
946
|
/* @__PURE__ */ xe(
|
|
949
947
|
"path",
|
|
950
948
|
{
|
|
@@ -1063,8 +1061,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1063
1061
|
) });
|
|
1064
1062
|
};
|
|
1065
1063
|
const m$1 = (o) => {
|
|
1066
|
-
const
|
|
1067
|
-
return /* @__PURE__ */ Er(Rr, { ...
|
|
1064
|
+
const c2 = { ...hr, ...o };
|
|
1065
|
+
return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Location", viewBox: "0 0 1024 1024", children: [
|
|
1068
1066
|
/* @__PURE__ */ xe(
|
|
1069
1067
|
"path",
|
|
1070
1068
|
{
|
|
@@ -1113,8 +1111,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1113
1111
|
) });
|
|
1114
1112
|
};
|
|
1115
1113
|
const n$3 = (r) => {
|
|
1116
|
-
const
|
|
1117
|
-
return /* @__PURE__ */ xe(Rr, { ...
|
|
1114
|
+
const c2 = { ...hr, ...r };
|
|
1115
|
+
return /* @__PURE__ */ xe(Rr, { ...c2, name: c2.name || "Notice", viewBox: "0 0 1024 1024", children: /* @__PURE__ */ xe(
|
|
1118
1116
|
"path",
|
|
1119
1117
|
{
|
|
1120
1118
|
d: "M544 21.33C544 9.6 534.4 0 522.67 0h-21.34C489.6 0 480 9.6 480 21.33v65.5c-179.41 16.21-320 167.04-320 350.5v226.35c0 26.45-6.19 52.69-17.92 76.37l-36.48 72.96c-14.29 28.37 6.4 61.65 38.19 61.66h736.42c31.79 0 52.27-33.28 38.19-61.66l-36.48-72.96A172.4 172.4 0 0 1 864 663.68V437.33c0-183.68-140.59-334.51-320-350.5zm-32 128c159.15 0 288 128.85 288 288v226.35c0 36.48 8.53 72.32 24.75 104.96l21.12 42.03H178.13l21.12-42.03C215.46 736 224 700.16 224 663.68V437.33c0-159.15 128.85-288 288-288M405.33 1024c-11.73 0-21.33-9.6-21.33-21.33v-21.34c0-11.73 9.6-21.33 21.33-21.33h213.34c11.73 0 21.33 9.6 21.33 21.33v21.34c0 11.73-9.6 21.33-21.33 21.33z",
|
|
@@ -1123,8 +1121,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1123
1121
|
) });
|
|
1124
1122
|
};
|
|
1125
1123
|
const m = (o) => {
|
|
1126
|
-
const
|
|
1127
|
-
return /* @__PURE__ */ Er(Rr, { ...
|
|
1124
|
+
const c2 = { ...hr, ...o };
|
|
1125
|
+
return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Photograph", viewBox: "0 0 1024 1024", children: [
|
|
1128
1126
|
/* @__PURE__ */ xe(
|
|
1129
1127
|
"path",
|
|
1130
1128
|
{
|
|
@@ -1162,8 +1160,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1162
1160
|
}
|
|
1163
1161
|
) });
|
|
1164
1162
|
};
|
|
1165
|
-
const n$1 = (
|
|
1166
|
-
const a = { ...hr, ...
|
|
1163
|
+
const n$1 = (c2) => {
|
|
1164
|
+
const a = { ...hr, ...c2 };
|
|
1167
1165
|
return /* @__PURE__ */ Er(Rr, { ...a, name: a.name || "Service", viewBox: "0 0 1024 1024", children: [
|
|
1168
1166
|
/* @__PURE__ */ xe(
|
|
1169
1167
|
"path",
|
|
@@ -1213,8 +1211,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1213
1211
|
] });
|
|
1214
1212
|
};
|
|
1215
1213
|
const p$1 = (o) => {
|
|
1216
|
-
const
|
|
1217
|
-
return /* @__PURE__ */ Er(Rr, { ...
|
|
1214
|
+
const c2 = { ...hr, ...o };
|
|
1215
|
+
return /* @__PURE__ */ Er(Rr, { ...c2, name: c2.name || "Tips", viewBox: "0 0 1024 1024", children: [
|
|
1218
1216
|
/* @__PURE__ */ xe(
|
|
1219
1217
|
"path",
|
|
1220
1218
|
{
|
|
@@ -1952,7 +1950,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
1952
1950
|
return ret;
|
|
1953
1951
|
}
|
|
1954
1952
|
var canUseDom = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
1955
|
-
var clamp$
|
|
1953
|
+
var clamp$1 = function(num, min, max) {
|
|
1956
1954
|
return Math.min(Math.max(num, min), max);
|
|
1957
1955
|
};
|
|
1958
1956
|
function _array_like_to_array(arr, len) {
|
|
@@ -2659,10 +2657,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2659
2657
|
return unmountComponentAtNode(container);
|
|
2660
2658
|
}
|
|
2661
2659
|
function concurrentUnmount(container) {
|
|
2662
|
-
return
|
|
2663
|
-
}
|
|
2664
|
-
function _concurrentUnmount() {
|
|
2665
|
-
_concurrentUnmount = _async_to_generator(function(container) {
|
|
2660
|
+
return _async_to_generator(function() {
|
|
2666
2661
|
return __generator(this, function(_state) {
|
|
2667
2662
|
return [
|
|
2668
2663
|
2,
|
|
@@ -2673,8 +2668,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
2673
2668
|
})
|
|
2674
2669
|
];
|
|
2675
2670
|
});
|
|
2676
|
-
});
|
|
2677
|
-
return _concurrentUnmount.apply(this, arguments);
|
|
2671
|
+
})();
|
|
2678
2672
|
}
|
|
2679
2673
|
function unmount(container) {
|
|
2680
2674
|
if (createRoot) {
|
|
@@ -3061,7 +3055,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3061
3055
|
if (null == r) return {};
|
|
3062
3056
|
var t = {};
|
|
3063
3057
|
for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
|
|
3064
|
-
if (e.
|
|
3058
|
+
if (-1 !== e.indexOf(n2)) continue;
|
|
3065
3059
|
t[n2] = r[n2];
|
|
3066
3060
|
}
|
|
3067
3061
|
return t;
|
|
@@ -3089,12 +3083,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3089
3083
|
function requireReactIs_production_min() {
|
|
3090
3084
|
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
3091
3085
|
hasRequiredReactIs_production_min = 1;
|
|
3092
|
-
var b = "function" === typeof Symbol && Symbol.for,
|
|
3086
|
+
var b = "function" === typeof Symbol && Symbol.for, c2 = b ? Symbol.for("react.element") : 60103, d2 = b ? Symbol.for("react.portal") : 60106, e = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m2 = b ? Symbol.for("react.concurrent_mode") : 60111, n2 = b ? Symbol.for("react.forward_ref") : 60112, p2 = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r = b ? Symbol.for("react.memo") : 60115, t = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
|
|
3093
3087
|
function z(a) {
|
|
3094
3088
|
if ("object" === typeof a && null !== a) {
|
|
3095
3089
|
var u = a.$$typeof;
|
|
3096
3090
|
switch (u) {
|
|
3097
|
-
case
|
|
3091
|
+
case c2:
|
|
3098
3092
|
switch (a = a.type, a) {
|
|
3099
3093
|
case l2:
|
|
3100
3094
|
case m2:
|
|
@@ -3127,7 +3121,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3127
3121
|
reactIs_production_min.ConcurrentMode = m2;
|
|
3128
3122
|
reactIs_production_min.ContextConsumer = k;
|
|
3129
3123
|
reactIs_production_min.ContextProvider = h;
|
|
3130
|
-
reactIs_production_min.Element =
|
|
3124
|
+
reactIs_production_min.Element = c2;
|
|
3131
3125
|
reactIs_production_min.ForwardRef = n2;
|
|
3132
3126
|
reactIs_production_min.Fragment = e;
|
|
3133
3127
|
reactIs_production_min.Lazy = t;
|
|
@@ -3147,7 +3141,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
3147
3141
|
return z(a) === h;
|
|
3148
3142
|
};
|
|
3149
3143
|
reactIs_production_min.isElement = function(a) {
|
|
3150
|
-
return "object" === typeof a && null !== a && a.$$typeof ===
|
|
3144
|
+
return "object" === typeof a && null !== a && a.$$typeof === c2;
|
|
3151
3145
|
};
|
|
3152
3146
|
reactIs_production_min.isForwardRef = function(a) {
|
|
3153
3147
|
return z(a) === n2;
|
|
@@ -4481,13 +4475,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
4481
4475
|
Transition.ENTERED = ENTERED;
|
|
4482
4476
|
Transition.EXITING = EXITING;
|
|
4483
4477
|
var _addClass = function addClass$1(node, classes) {
|
|
4484
|
-
return node && classes && classes.split(" ").forEach(function(
|
|
4485
|
-
return addClass(node,
|
|
4478
|
+
return node && classes && classes.split(" ").forEach(function(c2) {
|
|
4479
|
+
return addClass(node, c2);
|
|
4486
4480
|
});
|
|
4487
4481
|
};
|
|
4488
4482
|
var removeClass = function removeClass2(node, classes) {
|
|
4489
|
-
return node && classes && classes.split(" ").forEach(function(
|
|
4490
|
-
return removeClass$1(node,
|
|
4483
|
+
return node && classes && classes.split(" ").forEach(function(c2) {
|
|
4484
|
+
return removeClass$1(node, c2);
|
|
4491
4485
|
});
|
|
4492
4486
|
};
|
|
4493
4487
|
var CSSTransition = /* @__PURE__ */ function(_React$Component) {
|
|
@@ -5625,7 +5619,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
5625
5619
|
}, children));
|
|
5626
5620
|
};
|
|
5627
5621
|
BackTop.displayName = "NutBackTop";
|
|
5628
|
-
function clamp
|
|
5622
|
+
function clamp(v, min, max) {
|
|
5629
5623
|
return Math.max(min, Math.min(v, max));
|
|
5630
5624
|
}
|
|
5631
5625
|
const V = {
|
|
@@ -5653,7 +5647,7 @@ React keys must be passed directly to JSX without using spread:
|
|
|
5653
5647
|
return distance * dimension * constant / (dimension + constant * distance);
|
|
5654
5648
|
}
|
|
5655
5649
|
function rubberbandIfOutOfBounds(position2, min, max, constant = 0.15) {
|
|
5656
|
-
if (constant === 0) return clamp
|
|
5650
|
+
if (constant === 0) return clamp(position2, min, max);
|
|
5657
5651
|
if (position2 < min) return -rubberband(min - position2, max - min, constant) + min;
|
|
5658
5652
|
if (position2 > max) return +rubberband(position2 - max, max - min, constant) + max;
|
|
5659
5653
|
return position2;
|
|
@@ -6214,8 +6208,8 @@ React keys must be passed directly to JSX without using spread:
|
|
|
6214
6208
|
const DISPLACEMENT = 10;
|
|
6215
6209
|
const KEYS_DELTA_MAP = {
|
|
6216
6210
|
ArrowRight: (factor = 1) => [DISPLACEMENT * factor, 0],
|
|
6217
|
-
ArrowLeft: (factor = 1) => [-
|
|
6218
|
-
ArrowUp: (factor = 1) => [0, -
|
|
6211
|
+
ArrowLeft: (factor = 1) => [-DISPLACEMENT * factor, 0],
|
|
6212
|
+
ArrowUp: (factor = 1) => [0, -DISPLACEMENT * factor],
|
|
6219
6213
|
ArrowDown: (factor = 1) => [0, DISPLACEMENT * factor]
|
|
6220
6214
|
};
|
|
6221
6215
|
class DragEngine extends CoordinatesEngine {
|
|
@@ -7747,7 +7741,6 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
7747
7741
|
const index2 = arr.findIndex(test);
|
|
7748
7742
|
return index2 < 0 ? arr.length : index2;
|
|
7749
7743
|
}
|
|
7750
|
-
const clamp = (min, max, v) => Math.min(Math.max(v, min), max);
|
|
7751
7744
|
const colors = {
|
|
7752
7745
|
transparent: 0,
|
|
7753
7746
|
aliceblue: 4042850303,
|
|
@@ -8041,63 +8034,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
8041
8034
|
for (var i2 = 1; i2 < inputRange.length - 1; ++i2) if (inputRange[i2] >= input) break;
|
|
8042
8035
|
return i2 - 1;
|
|
8043
8036
|
}
|
|
8044
|
-
const steps = (steps2, direction = "end") => (progress) => {
|
|
8045
|
-
progress = direction === "end" ? Math.min(progress, 0.999) : Math.max(progress, 1e-3);
|
|
8046
|
-
const expanded = progress * steps2;
|
|
8047
|
-
const rounded = direction === "end" ? Math.floor(expanded) : Math.ceil(expanded);
|
|
8048
|
-
return clamp(0, 1, rounded / steps2);
|
|
8049
|
-
};
|
|
8050
|
-
const c1 = 1.70158;
|
|
8051
|
-
const c2 = c1 * 1.525;
|
|
8052
|
-
const c3 = c1 + 1;
|
|
8053
|
-
const c4 = 2 * Math.PI / 3;
|
|
8054
|
-
const c5 = 2 * Math.PI / 4.5;
|
|
8055
|
-
const bounceOut = (x) => {
|
|
8056
|
-
const n1 = 7.5625;
|
|
8057
|
-
const d1 = 2.75;
|
|
8058
|
-
if (x < 1 / d1) {
|
|
8059
|
-
return n1 * x * x;
|
|
8060
|
-
} else if (x < 2 / d1) {
|
|
8061
|
-
return n1 * (x -= 1.5 / d1) * x + 0.75;
|
|
8062
|
-
} else if (x < 2.5 / d1) {
|
|
8063
|
-
return n1 * (x -= 2.25 / d1) * x + 0.9375;
|
|
8064
|
-
} else {
|
|
8065
|
-
return n1 * (x -= 2.625 / d1) * x + 0.984375;
|
|
8066
|
-
}
|
|
8067
|
-
};
|
|
8068
8037
|
const easings = {
|
|
8069
|
-
linear: (x) => x
|
|
8070
|
-
easeInQuad: (x) => x * x,
|
|
8071
|
-
easeOutQuad: (x) => 1 - (1 - x) * (1 - x),
|
|
8072
|
-
easeInOutQuad: (x) => x < 0.5 ? 2 * x * x : 1 - Math.pow(-2 * x + 2, 2) / 2,
|
|
8073
|
-
easeInCubic: (x) => x * x * x,
|
|
8074
|
-
easeOutCubic: (x) => 1 - Math.pow(1 - x, 3),
|
|
8075
|
-
easeInOutCubic: (x) => x < 0.5 ? 4 * x * x * x : 1 - Math.pow(-2 * x + 2, 3) / 2,
|
|
8076
|
-
easeInQuart: (x) => x * x * x * x,
|
|
8077
|
-
easeOutQuart: (x) => 1 - Math.pow(1 - x, 4),
|
|
8078
|
-
easeInOutQuart: (x) => x < 0.5 ? 8 * x * x * x * x : 1 - Math.pow(-2 * x + 2, 4) / 2,
|
|
8079
|
-
easeInQuint: (x) => x * x * x * x * x,
|
|
8080
|
-
easeOutQuint: (x) => 1 - Math.pow(1 - x, 5),
|
|
8081
|
-
easeInOutQuint: (x) => x < 0.5 ? 16 * x * x * x * x * x : 1 - Math.pow(-2 * x + 2, 5) / 2,
|
|
8082
|
-
easeInSine: (x) => 1 - Math.cos(x * Math.PI / 2),
|
|
8083
|
-
easeOutSine: (x) => Math.sin(x * Math.PI / 2),
|
|
8084
|
-
easeInOutSine: (x) => -(Math.cos(Math.PI * x) - 1) / 2,
|
|
8085
|
-
easeInExpo: (x) => x === 0 ? 0 : Math.pow(2, 10 * x - 10),
|
|
8086
|
-
easeOutExpo: (x) => x === 1 ? 1 : 1 - Math.pow(2, -10 * x),
|
|
8087
|
-
easeInOutExpo: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? Math.pow(2, 20 * x - 10) / 2 : (2 - Math.pow(2, -20 * x + 10)) / 2,
|
|
8088
|
-
easeInCirc: (x) => 1 - Math.sqrt(1 - Math.pow(x, 2)),
|
|
8089
|
-
easeOutCirc: (x) => Math.sqrt(1 - Math.pow(x - 1, 2)),
|
|
8090
|
-
easeInOutCirc: (x) => x < 0.5 ? (1 - Math.sqrt(1 - Math.pow(2 * x, 2))) / 2 : (Math.sqrt(1 - Math.pow(-2 * x + 2, 2)) + 1) / 2,
|
|
8091
|
-
easeInBack: (x) => c3 * x * x * x - c1 * x * x,
|
|
8092
|
-
easeOutBack: (x) => 1 + c3 * Math.pow(x - 1, 3) + c1 * Math.pow(x - 1, 2),
|
|
8093
|
-
easeInOutBack: (x) => x < 0.5 ? Math.pow(2 * x, 2) * ((c2 + 1) * 2 * x - c2) / 2 : (Math.pow(2 * x - 2, 2) * ((c2 + 1) * (x * 2 - 2) + c2) + 2) / 2,
|
|
8094
|
-
easeInElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : -Math.pow(2, 10 * x - 10) * Math.sin((x * 10 - 10.75) * c4),
|
|
8095
|
-
easeOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : Math.pow(2, -10 * x) * Math.sin((x * 10 - 0.75) * c4) + 1,
|
|
8096
|
-
easeInOutElastic: (x) => x === 0 ? 0 : x === 1 ? 1 : x < 0.5 ? -(Math.pow(2, 20 * x - 10) * Math.sin((20 * x - 11.125) * c5)) / 2 : Math.pow(2, -20 * x + 10) * Math.sin((20 * x - 11.125) * c5) / 2 + 1,
|
|
8097
|
-
easeInBounce: (x) => 1 - bounceOut(1 - x),
|
|
8098
|
-
easeOutBounce: bounceOut,
|
|
8099
|
-
easeInOutBounce: (x) => x < 0.5 ? (1 - bounceOut(1 - 2 * x)) / 2 : (1 + bounceOut(2 * x - 1)) / 2,
|
|
8100
|
-
steps
|
|
8038
|
+
linear: (x) => x
|
|
8101
8039
|
};
|
|
8102
8040
|
function _extends$3() {
|
|
8103
8041
|
_extends$3 = Object.assign ? Object.assign.bind() : function(target) {
|
|
@@ -8289,7 +8227,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
8289
8227
|
const prevCache = committed.current;
|
|
8290
8228
|
let cache = prevCache;
|
|
8291
8229
|
if (cache) {
|
|
8292
|
-
const useCache = Boolean(cache.inputs && areInputsEqual(inputs, cache.inputs));
|
|
8230
|
+
const useCache = Boolean(inputs && cache.inputs && areInputsEqual(inputs, cache.inputs));
|
|
8293
8231
|
if (!useCache) {
|
|
8294
8232
|
cache = {
|
|
8295
8233
|
inputs,
|
|
@@ -8751,26 +8689,6 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
8751
8689
|
default: {
|
|
8752
8690
|
tension: 170,
|
|
8753
8691
|
friction: 26
|
|
8754
|
-
},
|
|
8755
|
-
gentle: {
|
|
8756
|
-
tension: 120,
|
|
8757
|
-
friction: 14
|
|
8758
|
-
},
|
|
8759
|
-
wobbly: {
|
|
8760
|
-
tension: 180,
|
|
8761
|
-
friction: 12
|
|
8762
|
-
},
|
|
8763
|
-
stiff: {
|
|
8764
|
-
tension: 210,
|
|
8765
|
-
friction: 20
|
|
8766
|
-
},
|
|
8767
|
-
slow: {
|
|
8768
|
-
tension: 280,
|
|
8769
|
-
friction: 60
|
|
8770
|
-
},
|
|
8771
|
-
molasses: {
|
|
8772
|
-
tension: 280,
|
|
8773
|
-
friction: 120
|
|
8774
8692
|
}
|
|
8775
8693
|
};
|
|
8776
8694
|
const defaults = _extends$1({}, config$1.default, {
|
|
@@ -9122,8 +9040,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
9122
9040
|
const hasAnimated = (target) => (target[$P] & HAS_ANIMATED) > 0;
|
|
9123
9041
|
const isAnimating = (target) => (target[$P] & IS_ANIMATING) > 0;
|
|
9124
9042
|
const isPaused = (target) => (target[$P] & IS_PAUSED) > 0;
|
|
9125
|
-
const setActiveBit = (target, active2) => active2 ? target[$P] |= IS_ANIMATING | HAS_ANIMATED : target[$P] &=
|
|
9126
|
-
const setPausedBit = (target, paused) => paused ? target[$P] |= IS_PAUSED : target[$P] &=
|
|
9043
|
+
const setActiveBit = (target, active2) => active2 ? target[$P] |= IS_ANIMATING | HAS_ANIMATED : target[$P] &= ~IS_ANIMATING;
|
|
9044
|
+
const setPausedBit = (target, paused) => paused ? target[$P] |= IS_PAUSED : target[$P] &= ~IS_PAUSED;
|
|
9127
9045
|
class SpringValue extends FrameValue {
|
|
9128
9046
|
constructor(arg1, arg2) {
|
|
9129
9047
|
super();
|
|
@@ -12092,8 +12010,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
12092
12010
|
outerOptions
|
|
12093
12011
|
]);
|
|
12094
12012
|
React.useEffect(function() {
|
|
12095
|
-
var load =
|
|
12096
|
-
|
|
12013
|
+
var load = function() {
|
|
12014
|
+
return _async_to_generator(function() {
|
|
12097
12015
|
var parent2, error;
|
|
12098
12016
|
return __generator(this, function(_state) {
|
|
12099
12017
|
switch (_state.label) {
|
|
@@ -12111,8 +12029,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
12111
12029
|
]);
|
|
12112
12030
|
return [
|
|
12113
12031
|
4,
|
|
12114
|
-
innerValue.reduce(
|
|
12115
|
-
|
|
12032
|
+
innerValue.reduce(function(promise, val2, key2) {
|
|
12033
|
+
return _async_to_generator(function() {
|
|
12116
12034
|
var pane, parent3, node;
|
|
12117
12035
|
return __generator(this, function(_state2) {
|
|
12118
12036
|
switch (_state2.label) {
|
|
@@ -12152,11 +12070,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
12152
12070
|
];
|
|
12153
12071
|
}
|
|
12154
12072
|
});
|
|
12155
|
-
});
|
|
12156
|
-
|
|
12157
|
-
return _ref2.apply(this, arguments);
|
|
12158
|
-
};
|
|
12159
|
-
}(), Promise.resolve(parent2))
|
|
12073
|
+
})();
|
|
12074
|
+
}, Promise.resolve(parent2))
|
|
12160
12075
|
];
|
|
12161
12076
|
case 2:
|
|
12162
12077
|
_state.sent();
|
|
@@ -12178,17 +12093,14 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
12178
12093
|
];
|
|
12179
12094
|
}
|
|
12180
12095
|
});
|
|
12181
|
-
});
|
|
12182
|
-
|
|
12183
|
-
return _ref.apply(this, arguments);
|
|
12184
|
-
};
|
|
12185
|
-
}();
|
|
12096
|
+
})();
|
|
12097
|
+
};
|
|
12186
12098
|
if (lazy) load();
|
|
12187
12099
|
}, [
|
|
12188
12100
|
lazy
|
|
12189
12101
|
]);
|
|
12190
|
-
var chooseItem =
|
|
12191
|
-
|
|
12102
|
+
var chooseItem = function(pane, levelIndex) {
|
|
12103
|
+
return _async_to_generator(function() {
|
|
12192
12104
|
var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
|
|
12193
12105
|
return __generator(this, function(_state) {
|
|
12194
12106
|
switch (_state.label) {
|
|
@@ -12240,11 +12152,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
12240
12152
|
];
|
|
12241
12153
|
}
|
|
12242
12154
|
});
|
|
12243
|
-
});
|
|
12244
|
-
|
|
12245
|
-
return _ref.apply(this, arguments);
|
|
12246
|
-
};
|
|
12247
|
-
}();
|
|
12155
|
+
})();
|
|
12156
|
+
};
|
|
12248
12157
|
var renderCascaderItem = function(item, levelIndex) {
|
|
12249
12158
|
var _item_pane;
|
|
12250
12159
|
return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index2) {
|
|
@@ -13871,9 +13780,9 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
13871
13780
|
var isMid = function(day) {
|
|
13872
13781
|
if (type2 === "range" || type2 === "week") {
|
|
13873
13782
|
if (innerValue.length === 2) {
|
|
13874
|
-
var
|
|
13875
|
-
var
|
|
13876
|
-
if (
|
|
13783
|
+
var c1 = compareDay(innerValue[0], day);
|
|
13784
|
+
var c2 = compareDay(day, innerValue[1]);
|
|
13785
|
+
if (c1 && c1 < 0 && c2 && c2 < 0) {
|
|
13877
13786
|
return true;
|
|
13878
13787
|
}
|
|
13879
13788
|
}
|
|
@@ -13912,22 +13821,22 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
13912
13821
|
};
|
|
13913
13822
|
var jumpTo = function(year, month2) {
|
|
13914
13823
|
if (startDate) {
|
|
13915
|
-
var
|
|
13824
|
+
var c2 = compareDay({
|
|
13916
13825
|
year,
|
|
13917
13826
|
month: month2,
|
|
13918
13827
|
date: 31
|
|
13919
13828
|
}, convertDateToDay(startDate));
|
|
13920
|
-
if (
|
|
13829
|
+
if (c2 && c2 < 0) {
|
|
13921
13830
|
return;
|
|
13922
13831
|
}
|
|
13923
13832
|
}
|
|
13924
13833
|
if (endDate) {
|
|
13925
|
-
var
|
|
13834
|
+
var c1 = compareDay({
|
|
13926
13835
|
year,
|
|
13927
13836
|
month: month2,
|
|
13928
13837
|
date: 1
|
|
13929
13838
|
}, convertDateToDay(endDate));
|
|
13930
|
-
if (
|
|
13839
|
+
if (c1 && c1 > 0) {
|
|
13931
13840
|
return;
|
|
13932
13841
|
}
|
|
13933
13842
|
}
|
|
@@ -14303,9 +14212,9 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
14303
14212
|
var childProps = child.props;
|
|
14304
14213
|
childrenLabel.push(childProps.value);
|
|
14305
14214
|
});
|
|
14306
|
-
var reverse2 = childrenLabel.filter(function(
|
|
14215
|
+
var reverse2 = childrenLabel.filter(function(c2) {
|
|
14307
14216
|
return (_value === null || _value === void 0 ? void 0 : _value.findIndex(function(v) {
|
|
14308
|
-
return v ===
|
|
14217
|
+
return v === c2;
|
|
14309
14218
|
})) === -1;
|
|
14310
14219
|
});
|
|
14311
14220
|
setValue(reverse2);
|
|
@@ -14618,8 +14527,6 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
14618
14527
|
if (!options3.length) return [];
|
|
14619
14528
|
var formatted = [];
|
|
14620
14529
|
var columnOptions = {
|
|
14621
|
-
label: "",
|
|
14622
|
-
value: "",
|
|
14623
14530
|
children: options3
|
|
14624
14531
|
};
|
|
14625
14532
|
var columnIndex = 0;
|
|
@@ -16379,7 +16286,6 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16379
16286
|
var _this = this;
|
|
16380
16287
|
var _this1 = this;
|
|
16381
16288
|
_class_call_check(this, FormStore2);
|
|
16382
|
-
var _this2 = this;
|
|
16383
16289
|
_define_property(this, "initialValues", {});
|
|
16384
16290
|
_define_property(this, "updateList", []);
|
|
16385
16291
|
_define_property(this, "store", {});
|
|
@@ -16448,8 +16354,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16448
16354
|
_define_property(this, "setCallback", function(callback) {
|
|
16449
16355
|
_this.callbacks = _object_spread({}, _this.callbacks, callback);
|
|
16450
16356
|
});
|
|
16451
|
-
_define_property(this, "validateEntities",
|
|
16452
|
-
|
|
16357
|
+
_define_property(this, "validateEntities", function(entity, errs) {
|
|
16358
|
+
return _async_to_generator(function() {
|
|
16453
16359
|
var _entity_props, name2, _entity_props_rules, rules2, descriptor, validator, _this_store, param, errors, _errs;
|
|
16454
16360
|
return __generator(this, function(_state) {
|
|
16455
16361
|
switch (_state.label) {
|
|
@@ -16483,7 +16389,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16483
16389
|
]);
|
|
16484
16390
|
return [
|
|
16485
16391
|
4,
|
|
16486
|
-
validator.validate(_define_property({}, name2, (_this_store =
|
|
16392
|
+
validator.validate(_define_property({}, name2, (_this_store = this.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
|
|
16487
16393
|
];
|
|
16488
16394
|
case 2:
|
|
16489
16395
|
_state.sent();
|
|
@@ -16496,7 +16402,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16496
16402
|
errors = param.errors;
|
|
16497
16403
|
if (errors) {
|
|
16498
16404
|
(_errs = errs).push.apply(_errs, _to_consumable_array(errors));
|
|
16499
|
-
|
|
16405
|
+
this.errors[name2] = errors;
|
|
16500
16406
|
}
|
|
16501
16407
|
return [
|
|
16502
16408
|
3,
|
|
@@ -16504,7 +16410,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16504
16410
|
];
|
|
16505
16411
|
case 4:
|
|
16506
16412
|
if (!errs || errs.length === 0) {
|
|
16507
|
-
|
|
16413
|
+
this.errors[name2] = [];
|
|
16508
16414
|
}
|
|
16509
16415
|
return [
|
|
16510
16416
|
7
|
|
@@ -16516,22 +16422,20 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16516
16422
|
];
|
|
16517
16423
|
}
|
|
16518
16424
|
});
|
|
16519
|
-
});
|
|
16520
|
-
|
|
16521
|
-
|
|
16522
|
-
|
|
16523
|
-
|
|
16524
|
-
_define_property(this, "validateFields", /* @__PURE__ */ function() {
|
|
16525
|
-
var _ref = _async_to_generator(function(nameList) {
|
|
16526
|
-
var filterEntities, errs;
|
|
16425
|
+
}).call(_this);
|
|
16426
|
+
});
|
|
16427
|
+
_define_property(this, "validateFields", function(nameList) {
|
|
16428
|
+
return _async_to_generator(function() {
|
|
16429
|
+
var _this2, filterEntities, errs;
|
|
16527
16430
|
return __generator(this, function(_state) {
|
|
16528
16431
|
switch (_state.label) {
|
|
16529
16432
|
case 0:
|
|
16433
|
+
_this2 = this;
|
|
16530
16434
|
filterEntities = [];
|
|
16531
16435
|
if (!nameList || nameList.length === 0) {
|
|
16532
|
-
filterEntities =
|
|
16436
|
+
filterEntities = this.fieldEntities;
|
|
16533
16437
|
} else {
|
|
16534
|
-
filterEntities =
|
|
16438
|
+
filterEntities = this.fieldEntities.filter(function(param) {
|
|
16535
16439
|
var name2 = param.props.name;
|
|
16536
16440
|
return nameList.includes(name2);
|
|
16537
16441
|
});
|
|
@@ -16539,14 +16443,14 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16539
16443
|
errs = [];
|
|
16540
16444
|
return [
|
|
16541
16445
|
4,
|
|
16542
|
-
Promise.all(filterEntities.map(
|
|
16543
|
-
|
|
16446
|
+
Promise.all(filterEntities.map(function(entity) {
|
|
16447
|
+
return _async_to_generator(function() {
|
|
16544
16448
|
return __generator(this, function(_state2) {
|
|
16545
16449
|
switch (_state2.label) {
|
|
16546
16450
|
case 0:
|
|
16547
16451
|
return [
|
|
16548
16452
|
4,
|
|
16549
|
-
|
|
16453
|
+
this.validateEntities(entity, errs)
|
|
16550
16454
|
];
|
|
16551
16455
|
case 1:
|
|
16552
16456
|
_state2.sent();
|
|
@@ -16555,11 +16459,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16555
16459
|
];
|
|
16556
16460
|
}
|
|
16557
16461
|
});
|
|
16558
|
-
});
|
|
16559
|
-
|
|
16560
|
-
return _ref2.apply(this, arguments);
|
|
16561
|
-
};
|
|
16562
|
-
}()))
|
|
16462
|
+
}).call(_this2);
|
|
16463
|
+
}))
|
|
16563
16464
|
];
|
|
16564
16465
|
case 1:
|
|
16565
16466
|
_state.sent();
|
|
@@ -16569,33 +16470,32 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
16569
16470
|
];
|
|
16570
16471
|
}
|
|
16571
16472
|
});
|
|
16572
|
-
});
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
|
|
16579
|
-
|
|
16580
|
-
|
|
16581
|
-
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
|
|
16585
|
-
|
|
16586
|
-
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
|
|
16595
|
-
|
|
16596
|
-
|
|
16597
|
-
|
|
16598
|
-
}));
|
|
16473
|
+
}).call(_this);
|
|
16474
|
+
});
|
|
16475
|
+
_define_property(this, "submit", function() {
|
|
16476
|
+
return _async_to_generator(function() {
|
|
16477
|
+
var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
|
|
16478
|
+
return __generator(this, function(_state) {
|
|
16479
|
+
switch (_state.label) {
|
|
16480
|
+
case 0:
|
|
16481
|
+
return [
|
|
16482
|
+
4,
|
|
16483
|
+
this.validateFields()
|
|
16484
|
+
];
|
|
16485
|
+
case 1:
|
|
16486
|
+
errors = _state.sent();
|
|
16487
|
+
if (errors.length === 0) {
|
|
16488
|
+
(_this_callbacks_onFinish = (_this_callbacks = this.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, this.store);
|
|
16489
|
+
} else if (errors.length > 0) {
|
|
16490
|
+
(_this_callbacks_onFinishFailed = (_this_callbacks1 = this.callbacks).onFinishFailed) === null || _this_callbacks_onFinishFailed === void 0 ? void 0 : _this_callbacks_onFinishFailed.call(_this_callbacks1, this.store, errors);
|
|
16491
|
+
}
|
|
16492
|
+
return [
|
|
16493
|
+
2
|
|
16494
|
+
];
|
|
16495
|
+
}
|
|
16496
|
+
});
|
|
16497
|
+
}).call(_this);
|
|
16498
|
+
});
|
|
16599
16499
|
_define_property(this, "resetFields", function(namePaths) {
|
|
16600
16500
|
if (namePaths && namePaths.length) {
|
|
16601
16501
|
namePaths.forEach(function(path) {
|
|
@@ -17332,8 +17232,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
17332
17232
|
var stepAmount = parseFloat(stepValue) * symbol;
|
|
17333
17233
|
return (currentValue * dig + stepAmount * dig) / dig;
|
|
17334
17234
|
};
|
|
17335
|
-
var update2 =
|
|
17336
|
-
|
|
17235
|
+
var update2 = function(negative, e) {
|
|
17236
|
+
return _async_to_generator(function() {
|
|
17337
17237
|
var shouldOverBoundary, maybeResume, nextValue;
|
|
17338
17238
|
return __generator(this, function(_state) {
|
|
17339
17239
|
switch (_state.label) {
|
|
@@ -17364,13 +17264,10 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
17364
17264
|
];
|
|
17365
17265
|
}
|
|
17366
17266
|
});
|
|
17367
|
-
});
|
|
17368
|
-
|
|
17369
|
-
|
|
17370
|
-
|
|
17371
|
-
}();
|
|
17372
|
-
var handleReduce = /* @__PURE__ */ function() {
|
|
17373
|
-
var _ref2 = _async_to_generator(function(e) {
|
|
17267
|
+
})();
|
|
17268
|
+
};
|
|
17269
|
+
var handleReduce = function(e) {
|
|
17270
|
+
return _async_to_generator(function() {
|
|
17374
17271
|
return __generator(this, function(_state) {
|
|
17375
17272
|
switch (_state.label) {
|
|
17376
17273
|
case 0:
|
|
@@ -17388,13 +17285,10 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
17388
17285
|
];
|
|
17389
17286
|
}
|
|
17390
17287
|
});
|
|
17391
|
-
});
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17395
|
-
}();
|
|
17396
|
-
var handlePlus = /* @__PURE__ */ function() {
|
|
17397
|
-
var _ref2 = _async_to_generator(function(e) {
|
|
17288
|
+
})();
|
|
17289
|
+
};
|
|
17290
|
+
var handlePlus = function(e) {
|
|
17291
|
+
return _async_to_generator(function() {
|
|
17398
17292
|
return __generator(this, function(_state) {
|
|
17399
17293
|
switch (_state.label) {
|
|
17400
17294
|
case 0:
|
|
@@ -17412,18 +17306,15 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
17412
17306
|
];
|
|
17413
17307
|
}
|
|
17414
17308
|
});
|
|
17415
|
-
});
|
|
17416
|
-
|
|
17417
|
-
return _ref2.apply(this, arguments);
|
|
17418
|
-
};
|
|
17419
|
-
}();
|
|
17309
|
+
})();
|
|
17310
|
+
};
|
|
17420
17311
|
var parseValue = function(text2) {
|
|
17421
17312
|
if (text2 === "") return null;
|
|
17422
17313
|
if (text2 === "-") return null;
|
|
17423
17314
|
return text2;
|
|
17424
17315
|
};
|
|
17425
|
-
var handleInputChange =
|
|
17426
|
-
|
|
17316
|
+
var handleInputChange = function(e) {
|
|
17317
|
+
return _async_to_generator(function() {
|
|
17427
17318
|
var valueStr, maybeResume;
|
|
17428
17319
|
return __generator(this, function(_state) {
|
|
17429
17320
|
switch (_state.label) {
|
|
@@ -17453,11 +17344,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
17453
17344
|
];
|
|
17454
17345
|
}
|
|
17455
17346
|
});
|
|
17456
|
-
});
|
|
17457
|
-
|
|
17458
|
-
return _ref2.apply(this, arguments);
|
|
17459
|
-
};
|
|
17460
|
-
}();
|
|
17347
|
+
})();
|
|
17348
|
+
};
|
|
17461
17349
|
var handleFocus = function(e) {
|
|
17462
17350
|
setFocused(true);
|
|
17463
17351
|
setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
|
|
@@ -19404,8 +19292,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
19404
19292
|
(_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-close"), !value2), _define_property(_obj2, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj2, "".concat(classPrefix2, "-disabled-close"), disabled && !value2), _obj2)
|
|
19405
19293
|
]);
|
|
19406
19294
|
};
|
|
19407
|
-
var onClick =
|
|
19408
|
-
|
|
19295
|
+
var onClick = function() {
|
|
19296
|
+
return _async_to_generator(function() {
|
|
19409
19297
|
return __generator(this, function(_state) {
|
|
19410
19298
|
switch (_state.label) {
|
|
19411
19299
|
case 0:
|
|
@@ -19449,11 +19337,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
19449
19337
|
];
|
|
19450
19338
|
}
|
|
19451
19339
|
});
|
|
19452
|
-
});
|
|
19453
|
-
|
|
19454
|
-
return _ref2.apply(this, arguments);
|
|
19455
|
-
};
|
|
19456
|
-
}();
|
|
19340
|
+
})();
|
|
19341
|
+
};
|
|
19457
19342
|
var _obj, _obj1;
|
|
19458
19343
|
return /* @__PURE__ */ React.createElement("div", _object_spread_props(_object_spread({
|
|
19459
19344
|
className: classes(),
|
|
@@ -19908,22 +19793,24 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
19908
19793
|
]);
|
|
19909
19794
|
React.useImperativeHandle(ref, function() {
|
|
19910
19795
|
return {
|
|
19911
|
-
submit:
|
|
19912
|
-
return
|
|
19913
|
-
|
|
19914
|
-
|
|
19915
|
-
|
|
19916
|
-
|
|
19917
|
-
|
|
19918
|
-
|
|
19919
|
-
|
|
19920
|
-
|
|
19921
|
-
|
|
19922
|
-
|
|
19923
|
-
|
|
19924
|
-
|
|
19925
|
-
|
|
19926
|
-
|
|
19796
|
+
submit: function() {
|
|
19797
|
+
return _async_to_generator(function() {
|
|
19798
|
+
return __generator(this, function(_state) {
|
|
19799
|
+
switch (_state.label) {
|
|
19800
|
+
case 0:
|
|
19801
|
+
return [
|
|
19802
|
+
4,
|
|
19803
|
+
uploadAction(uploadQueue)
|
|
19804
|
+
];
|
|
19805
|
+
case 1:
|
|
19806
|
+
_state.sent();
|
|
19807
|
+
return [
|
|
19808
|
+
2
|
|
19809
|
+
];
|
|
19810
|
+
}
|
|
19811
|
+
});
|
|
19812
|
+
})();
|
|
19813
|
+
},
|
|
19927
19814
|
clear: function() {
|
|
19928
19815
|
clearUploadQueue();
|
|
19929
19816
|
}
|
|
@@ -19980,8 +19867,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
19980
19867
|
}
|
|
19981
19868
|
});
|
|
19982
19869
|
};
|
|
19983
|
-
var fileChange =
|
|
19984
|
-
|
|
19870
|
+
var fileChange = function(event) {
|
|
19871
|
+
return _async_to_generator(function() {
|
|
19985
19872
|
var $el, files, _files, filesArr, tasks;
|
|
19986
19873
|
return __generator(this, function(_state) {
|
|
19987
19874
|
switch (_state.label) {
|
|
@@ -20067,13 +19954,10 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20067
19954
|
];
|
|
20068
19955
|
}
|
|
20069
19956
|
});
|
|
20070
|
-
});
|
|
20071
|
-
|
|
20072
|
-
|
|
20073
|
-
|
|
20074
|
-
}();
|
|
20075
|
-
var uploadAction = /* @__PURE__ */ function() {
|
|
20076
|
-
var _ref = _async_to_generator(function(tasks) {
|
|
19957
|
+
})();
|
|
19958
|
+
};
|
|
19959
|
+
var uploadAction = function(tasks) {
|
|
19960
|
+
return _async_to_generator(function() {
|
|
20077
19961
|
var taskIds;
|
|
20078
19962
|
return __generator(this, function(_state) {
|
|
20079
19963
|
switch (_state.label) {
|
|
@@ -20092,8 +19976,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20092
19976
|
}));
|
|
20093
19977
|
return [
|
|
20094
19978
|
4,
|
|
20095
|
-
Promise.all(tasks.map(
|
|
20096
|
-
|
|
19979
|
+
Promise.all(tasks.map(function(currentTask, index2) {
|
|
19980
|
+
return _async_to_generator(function() {
|
|
20097
19981
|
var result, list, e, list1;
|
|
20098
19982
|
return __generator(this, function(_state2) {
|
|
20099
19983
|
switch (_state2.label) {
|
|
@@ -20140,11 +20024,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20140
20024
|
];
|
|
20141
20025
|
}
|
|
20142
20026
|
});
|
|
20143
|
-
});
|
|
20144
|
-
|
|
20145
|
-
return _ref2.apply(this, arguments);
|
|
20146
|
-
};
|
|
20147
|
-
}())).catch(function(errs) {
|
|
20027
|
+
})();
|
|
20028
|
+
})).catch(function(errs) {
|
|
20148
20029
|
return console.error(errs);
|
|
20149
20030
|
})
|
|
20150
20031
|
];
|
|
@@ -20155,11 +20036,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20155
20036
|
];
|
|
20156
20037
|
}
|
|
20157
20038
|
});
|
|
20158
|
-
});
|
|
20159
|
-
|
|
20160
|
-
return _ref.apply(this, arguments);
|
|
20161
|
-
};
|
|
20162
|
-
}();
|
|
20039
|
+
})();
|
|
20040
|
+
};
|
|
20163
20041
|
var handleItemClick = function(file, index2) {
|
|
20164
20042
|
onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index2);
|
|
20165
20043
|
};
|
|
@@ -20464,8 +20342,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20464
20342
|
if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
|
|
20465
20343
|
onCancel();
|
|
20466
20344
|
};
|
|
20467
|
-
var handleOk =
|
|
20468
|
-
|
|
20345
|
+
var handleOk = function(e) {
|
|
20346
|
+
return _async_to_generator(function() {
|
|
20469
20347
|
return __generator(this, function(_state) {
|
|
20470
20348
|
switch (_state.label) {
|
|
20471
20349
|
case 0:
|
|
@@ -20504,11 +20382,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20504
20382
|
];
|
|
20505
20383
|
}
|
|
20506
20384
|
});
|
|
20507
|
-
});
|
|
20508
|
-
|
|
20509
|
-
return _ref.apply(this, arguments);
|
|
20510
|
-
};
|
|
20511
|
-
}();
|
|
20385
|
+
})();
|
|
20386
|
+
};
|
|
20512
20387
|
var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix2, "-footer-block") : "";
|
|
20513
20388
|
var renderCancelOfVertical = function() {
|
|
20514
20389
|
return !hideCancelButton && /* @__PURE__ */ React.createElement("div", {
|
|
@@ -20913,8 +20788,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20913
20788
|
transition: isTouching.current ? "height 0s cubic-bezier(0.25,0.1,0.25,1)" : "height 0.2s cubic-bezier(0.25,0.1,0.25,1)"
|
|
20914
20789
|
};
|
|
20915
20790
|
};
|
|
20916
|
-
var handleScroll =
|
|
20917
|
-
|
|
20791
|
+
var handleScroll = function() {
|
|
20792
|
+
return _async_to_generator(function() {
|
|
20918
20793
|
return __generator(this, function(_state) {
|
|
20919
20794
|
switch (_state.label) {
|
|
20920
20795
|
case 0:
|
|
@@ -20936,11 +20811,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20936
20811
|
];
|
|
20937
20812
|
}
|
|
20938
20813
|
});
|
|
20939
|
-
});
|
|
20940
|
-
|
|
20941
|
-
return _ref2.apply(this, arguments);
|
|
20942
|
-
};
|
|
20943
|
-
}();
|
|
20814
|
+
})();
|
|
20815
|
+
};
|
|
20944
20816
|
var infiniteDone = function() {
|
|
20945
20817
|
setIsInfiniting(false);
|
|
20946
20818
|
};
|
|
@@ -20976,8 +20848,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
20976
20848
|
isTouching.current = false;
|
|
20977
20849
|
}
|
|
20978
20850
|
};
|
|
20979
|
-
var touchEnd =
|
|
20980
|
-
|
|
20851
|
+
var touchEnd = function() {
|
|
20852
|
+
return _async_to_generator(function() {
|
|
20981
20853
|
return __generator(this, function(_state) {
|
|
20982
20854
|
switch (_state.label) {
|
|
20983
20855
|
case 0:
|
|
@@ -21007,11 +20879,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
21007
20879
|
];
|
|
21008
20880
|
}
|
|
21009
20881
|
});
|
|
21010
|
-
});
|
|
21011
|
-
|
|
21012
|
-
return _ref2.apply(this, arguments);
|
|
21013
|
-
};
|
|
21014
|
-
}();
|
|
20882
|
+
})();
|
|
20883
|
+
};
|
|
21015
20884
|
var getWindowScrollTop = function() {
|
|
21016
20885
|
return window.scrollY !== void 0 ? window.scrollY : (document.documentElement || document.body.parentNode || document.body).scrollTop;
|
|
21017
20886
|
};
|
|
@@ -21682,7 +21551,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
21682
21551
|
messageInstance$1 = null;
|
|
21683
21552
|
}
|
|
21684
21553
|
Notification$1.newInstance(props, function(notification) {
|
|
21685
|
-
return callback(notification);
|
|
21554
|
+
return callback && callback(notification);
|
|
21686
21555
|
});
|
|
21687
21556
|
}
|
|
21688
21557
|
function notice$1(opts2) {
|
|
@@ -22010,41 +21879,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
22010
21879
|
});
|
|
22011
21880
|
var PullToRefresh = function(p2) {
|
|
22012
21881
|
var doRefresh = function doRefresh2() {
|
|
22013
|
-
return
|
|
22014
|
-
};
|
|
22015
|
-
var classPrefix2 = "nut-pulltorefresh";
|
|
22016
|
-
var locale = useConfig().locale;
|
|
22017
|
-
var props = _object_spread({}, defaultProps$A, p2, {
|
|
22018
|
-
pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
|
|
22019
|
-
canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
|
|
22020
|
-
refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
|
|
22021
|
-
completeText: p2.completeText || locale.pullToRefresh.completeText
|
|
22022
|
-
});
|
|
22023
|
-
var classes = classNames(classPrefix2, props.className, "".concat(classPrefix2, "-").concat(props.type));
|
|
22024
|
-
var headHeight = props.headHeight;
|
|
22025
|
-
var threshold = props.threshold;
|
|
22026
|
-
var _useState = _sliced_to_array(React.useState("pulling"), 2), status = _useState[0], setStatus = _useState[1];
|
|
22027
|
-
var _useSpring = _sliced_to_array(useSpring(function() {
|
|
22028
|
-
return {
|
|
22029
|
-
from: {
|
|
22030
|
-
height: 0
|
|
22031
|
-
},
|
|
22032
|
-
config: {
|
|
22033
|
-
tension: 300,
|
|
22034
|
-
friction: 30,
|
|
22035
|
-
clamp: true
|
|
22036
|
-
}
|
|
22037
|
-
};
|
|
22038
|
-
}), 2), springStyles = _useSpring[0], api = _useSpring[1];
|
|
22039
|
-
var elementRef = React.useRef(null);
|
|
22040
|
-
var pullingRef = React.useRef(false);
|
|
22041
|
-
React.useEffect(function() {
|
|
22042
|
-
var _elementRef_current;
|
|
22043
|
-
(_elementRef_current = elementRef.current) === null || _elementRef_current === void 0 ? void 0 : _elementRef_current.addEventListener("touchmove", function() {
|
|
22044
|
-
});
|
|
22045
|
-
}, []);
|
|
22046
|
-
function _doRefresh() {
|
|
22047
|
-
_doRefresh = _async_to_generator(function() {
|
|
21882
|
+
return _async_to_generator(function() {
|
|
22048
21883
|
var e;
|
|
22049
21884
|
return __generator(this, function(_state) {
|
|
22050
21885
|
switch (_state.label) {
|
|
@@ -22075,8 +21910,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
22075
21910
|
case 3:
|
|
22076
21911
|
e = _state.sent();
|
|
22077
21912
|
api.start({
|
|
22078
|
-
to:
|
|
22079
|
-
|
|
21913
|
+
to: function(next) {
|
|
21914
|
+
return _async_to_generator(function() {
|
|
22080
21915
|
return __generator(this, function(_state2) {
|
|
22081
21916
|
switch (_state2.label) {
|
|
22082
21917
|
case 0:
|
|
@@ -22094,11 +21929,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
22094
21929
|
];
|
|
22095
21930
|
}
|
|
22096
21931
|
});
|
|
22097
|
-
});
|
|
22098
|
-
|
|
22099
|
-
return _ref.apply(this, arguments);
|
|
22100
|
-
};
|
|
22101
|
-
}()
|
|
21932
|
+
})();
|
|
21933
|
+
}
|
|
22102
21934
|
});
|
|
22103
21935
|
throw e;
|
|
22104
21936
|
case 4:
|
|
@@ -22115,8 +21947,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
22115
21947
|
_state.label = 6;
|
|
22116
21948
|
case 6:
|
|
22117
21949
|
api.start({
|
|
22118
|
-
to:
|
|
22119
|
-
|
|
21950
|
+
to: function(next) {
|
|
21951
|
+
return _async_to_generator(function() {
|
|
22120
21952
|
return __generator(this, function(_state2) {
|
|
22121
21953
|
switch (_state2.label) {
|
|
22122
21954
|
case 0:
|
|
@@ -22134,20 +21966,47 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
22134
21966
|
];
|
|
22135
21967
|
}
|
|
22136
21968
|
});
|
|
22137
|
-
});
|
|
22138
|
-
|
|
22139
|
-
return _ref.apply(this, arguments);
|
|
22140
|
-
};
|
|
22141
|
-
}()
|
|
21969
|
+
})();
|
|
21970
|
+
}
|
|
22142
21971
|
});
|
|
22143
21972
|
return [
|
|
22144
21973
|
2
|
|
22145
21974
|
];
|
|
22146
21975
|
}
|
|
22147
21976
|
});
|
|
21977
|
+
})();
|
|
21978
|
+
};
|
|
21979
|
+
var classPrefix2 = "nut-pulltorefresh";
|
|
21980
|
+
var locale = useConfig().locale;
|
|
21981
|
+
var props = _object_spread({}, defaultProps$A, p2, {
|
|
21982
|
+
pullingText: p2.pullingText || locale.pullToRefresh.pullingText,
|
|
21983
|
+
canReleaseText: p2.canReleaseText || locale.pullToRefresh.canReleaseText,
|
|
21984
|
+
refreshingText: p2.refreshingText || locale.pullToRefresh.refreshingText,
|
|
21985
|
+
completeText: p2.completeText || locale.pullToRefresh.completeText
|
|
21986
|
+
});
|
|
21987
|
+
var classes = classNames(classPrefix2, props.className, "".concat(classPrefix2, "-").concat(props.type));
|
|
21988
|
+
var headHeight = props.headHeight;
|
|
21989
|
+
var threshold = props.threshold;
|
|
21990
|
+
var _useState = _sliced_to_array(React.useState("pulling"), 2), status = _useState[0], setStatus = _useState[1];
|
|
21991
|
+
var _useSpring = _sliced_to_array(useSpring(function() {
|
|
21992
|
+
return {
|
|
21993
|
+
from: {
|
|
21994
|
+
height: 0
|
|
21995
|
+
},
|
|
21996
|
+
config: {
|
|
21997
|
+
tension: 300,
|
|
21998
|
+
friction: 30,
|
|
21999
|
+
clamp: true
|
|
22000
|
+
}
|
|
22001
|
+
};
|
|
22002
|
+
}), 2), springStyles = _useSpring[0], api = _useSpring[1];
|
|
22003
|
+
var elementRef = React.useRef(null);
|
|
22004
|
+
var pullingRef = React.useRef(false);
|
|
22005
|
+
React.useEffect(function() {
|
|
22006
|
+
var _elementRef_current;
|
|
22007
|
+
(_elementRef_current = elementRef.current) === null || _elementRef_current === void 0 ? void 0 : _elementRef_current.addEventListener("touchmove", function() {
|
|
22148
22008
|
});
|
|
22149
|
-
|
|
22150
|
-
}
|
|
22009
|
+
}, []);
|
|
22151
22010
|
useDrag(function(state) {
|
|
22152
22011
|
var getScrollTop = function getScrollTop2(element) {
|
|
22153
22012
|
return "scrollTop" in element ? element.scrollTop : element.scrollY;
|
|
@@ -22775,7 +22634,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
22775
22634
|
messageInstance = null;
|
|
22776
22635
|
}
|
|
22777
22636
|
Notification.newInstance(props, function(notification) {
|
|
22778
|
-
return callback(notification);
|
|
22637
|
+
return callback && callback(notification);
|
|
22779
22638
|
});
|
|
22780
22639
|
}
|
|
22781
22640
|
function notice(opts2) {
|
|
@@ -23514,8 +23373,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
23514
23373
|
var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
|
|
23515
23374
|
var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
|
|
23516
23375
|
var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
|
|
23517
|
-
var updateRectHeight =
|
|
23518
|
-
|
|
23376
|
+
var updateRectHeight = function() {
|
|
23377
|
+
return _async_to_generator(function() {
|
|
23519
23378
|
var height2;
|
|
23520
23379
|
return __generator(this, function(_state) {
|
|
23521
23380
|
height2 = contentRef.current.offsetHeight;
|
|
@@ -23528,11 +23387,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
23528
23387
|
2
|
|
23529
23388
|
];
|
|
23530
23389
|
});
|
|
23531
|
-
});
|
|
23532
|
-
|
|
23533
|
-
return _ref2.apply(this, arguments);
|
|
23534
|
-
};
|
|
23535
|
-
}();
|
|
23390
|
+
})();
|
|
23391
|
+
};
|
|
23536
23392
|
React.useEffect(function() {
|
|
23537
23393
|
updateRectHeight();
|
|
23538
23394
|
}, [
|
|
@@ -24327,11 +24183,11 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
24327
24183
|
var _$_object_spread = _object_spread({}, defaultProps$i, props), children = _$_object_spread.children, direction = _$_object_spread.direction, indicator = _$_object_spread.indicator, loop2 = _$_object_spread.loop, effect2 = _$_object_spread.effect, autoplay = _$_object_spread.autoplay, touchable = _$_object_spread.touchable, defaultValue = _$_object_spread.defaultValue, duration = _$_object_spread.duration, style = _$_object_spread.style, className = _$_object_spread.className;
|
|
24328
24184
|
var isVertical = direction === "vertical";
|
|
24329
24185
|
var count = React.useMemo(function() {
|
|
24330
|
-
var
|
|
24186
|
+
var c2 = 0;
|
|
24331
24187
|
React.Children.map(children, function() {
|
|
24332
|
-
|
|
24188
|
+
c2 += 1;
|
|
24333
24189
|
});
|
|
24334
|
-
return
|
|
24190
|
+
return c2;
|
|
24335
24191
|
}, [
|
|
24336
24192
|
children
|
|
24337
24193
|
]);
|
|
@@ -24779,7 +24635,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
24779
24635
|
ImagePreview.displayName = "NutImagePreview";
|
|
24780
24636
|
var lottie$1 = { exports: {} };
|
|
24781
24637
|
(function(module, exports) {
|
|
24782
|
-
typeof navigator !== "undefined" && function(global2, factory) {
|
|
24638
|
+
typeof document !== "undefined" && typeof navigator !== "undefined" && function(global2, factory) {
|
|
24783
24639
|
module.exports = factory();
|
|
24784
24640
|
}(commonjsGlobal, function() {
|
|
24785
24641
|
var svgNS = "http://www.w3.org/2000/svg";
|
|
@@ -24949,18 +24805,13 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
24949
24805
|
length: len
|
|
24950
24806
|
});
|
|
24951
24807
|
}
|
|
24952
|
-
function _typeof$6(
|
|
24808
|
+
function _typeof$6(o) {
|
|
24953
24809
|
"@babel/helpers - typeof";
|
|
24954
|
-
|
|
24955
|
-
|
|
24956
|
-
|
|
24957
|
-
|
|
24958
|
-
}
|
|
24959
|
-
_typeof$6 = function _typeof2(obj2) {
|
|
24960
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
24961
|
-
};
|
|
24962
|
-
}
|
|
24963
|
-
return _typeof$6(obj);
|
|
24810
|
+
return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
24811
|
+
return typeof o2;
|
|
24812
|
+
} : function(o2) {
|
|
24813
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
24814
|
+
}, _typeof$6(o);
|
|
24964
24815
|
}
|
|
24965
24816
|
var subframeEnabled = true;
|
|
24966
24817
|
var expressionsPlugin = null;
|
|
@@ -25207,18 +25058,13 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
25207
25058
|
function createNS(type2) {
|
|
25208
25059
|
return document.createElementNS(svgNS, type2);
|
|
25209
25060
|
}
|
|
25210
|
-
function _typeof$5(
|
|
25061
|
+
function _typeof$5(o) {
|
|
25211
25062
|
"@babel/helpers - typeof";
|
|
25212
|
-
|
|
25213
|
-
|
|
25214
|
-
|
|
25215
|
-
|
|
25216
|
-
}
|
|
25217
|
-
_typeof$5 = function _typeof2(obj2) {
|
|
25218
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
25219
|
-
};
|
|
25220
|
-
}
|
|
25221
|
-
return _typeof$5(obj);
|
|
25063
|
+
return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
25064
|
+
return typeof o2;
|
|
25065
|
+
} : function(o2) {
|
|
25066
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
25067
|
+
}, _typeof$5(o);
|
|
25222
25068
|
}
|
|
25223
25069
|
var dataManager = /* @__PURE__ */ function() {
|
|
25224
25070
|
var _counterId = 1;
|
|
@@ -26174,18 +26020,13 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
26174
26020
|
}
|
|
26175
26021
|
return "";
|
|
26176
26022
|
}
|
|
26177
|
-
function _typeof$4(
|
|
26023
|
+
function _typeof$4(o) {
|
|
26178
26024
|
"@babel/helpers - typeof";
|
|
26179
|
-
|
|
26180
|
-
|
|
26181
|
-
|
|
26182
|
-
|
|
26183
|
-
}
|
|
26184
|
-
_typeof$4 = function _typeof2(obj2) {
|
|
26185
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
26186
|
-
};
|
|
26187
|
-
}
|
|
26188
|
-
return _typeof$4(obj);
|
|
26025
|
+
return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
26026
|
+
return typeof o2;
|
|
26027
|
+
} : function(o2) {
|
|
26028
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
26029
|
+
}, _typeof$4(o);
|
|
26189
26030
|
}
|
|
26190
26031
|
var AnimationItem = function AnimationItem2() {
|
|
26191
26032
|
this._cbs = [];
|
|
@@ -27074,12 +26915,12 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
27074
26915
|
var ob2 = {};
|
|
27075
26916
|
ob2.getBezierEasing = getBezierEasing;
|
|
27076
26917
|
var beziers = {};
|
|
27077
|
-
function getBezierEasing(a, b,
|
|
27078
|
-
var str = nm || ("bez_" + a + "_" + b + "_" +
|
|
26918
|
+
function getBezierEasing(a, b, c2, d2, nm) {
|
|
26919
|
+
var str = nm || ("bez_" + a + "_" + b + "_" + c2 + "_" + d2).replace(/\./g, "p");
|
|
27079
26920
|
if (beziers[str]) {
|
|
27080
26921
|
return beziers[str];
|
|
27081
26922
|
}
|
|
27082
|
-
var bezEasing = new BezierEasing([a, b,
|
|
26923
|
+
var bezEasing = new BezierEasing([a, b, c2, d2]);
|
|
27083
26924
|
beziers[str] = bezEasing;
|
|
27084
26925
|
return bezEasing;
|
|
27085
26926
|
}
|
|
@@ -27689,16 +27530,16 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
27689
27530
|
var heading = values[0] * degToRads;
|
|
27690
27531
|
var attitude = values[1] * degToRads;
|
|
27691
27532
|
var bank = values[2] * degToRads;
|
|
27692
|
-
var
|
|
27693
|
-
var
|
|
27694
|
-
var
|
|
27533
|
+
var c1 = Math.cos(heading / 2);
|
|
27534
|
+
var c2 = Math.cos(attitude / 2);
|
|
27535
|
+
var c3 = Math.cos(bank / 2);
|
|
27695
27536
|
var s1 = Math.sin(heading / 2);
|
|
27696
27537
|
var s2 = Math.sin(attitude / 2);
|
|
27697
27538
|
var s3 = Math.sin(bank / 2);
|
|
27698
|
-
var w =
|
|
27699
|
-
var x = s1 * s2 *
|
|
27700
|
-
var y = s1 *
|
|
27701
|
-
var z =
|
|
27539
|
+
var w = c1 * c2 * c3 - s1 * s2 * s3;
|
|
27540
|
+
var x = s1 * s2 * c3 + c1 * c2 * s3;
|
|
27541
|
+
var y = s1 * c2 * c3 + c1 * s2 * s3;
|
|
27542
|
+
var z = c1 * s2 * c3 - s1 * c2 * s3;
|
|
27702
27543
|
return [x, y, z, w];
|
|
27703
27544
|
}
|
|
27704
27545
|
function getValueAtCurrentTime() {
|
|
@@ -28696,10 +28537,10 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
28696
28537
|
}
|
|
28697
28538
|
return this._t(sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, sz, 0, 0, 0, 0, 1);
|
|
28698
28539
|
}
|
|
28699
|
-
function setTransform(a, b,
|
|
28540
|
+
function setTransform(a, b, c2, d2, e, f, g, h, i2, j, k, l2, m2, n2, o, p2) {
|
|
28700
28541
|
this.props[0] = a;
|
|
28701
28542
|
this.props[1] = b;
|
|
28702
|
-
this.props[2] =
|
|
28543
|
+
this.props[2] = c2;
|
|
28703
28544
|
this.props[3] = d2;
|
|
28704
28545
|
this.props[4] = e;
|
|
28705
28546
|
this.props[5] = f;
|
|
@@ -28722,9 +28563,9 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
28722
28563
|
}
|
|
28723
28564
|
return this;
|
|
28724
28565
|
}
|
|
28725
|
-
function transform2(a2, b2,
|
|
28566
|
+
function transform2(a2, b2, c2, d2, e2, f2, g2, h2, i2, j2, k2, l2, m2, n2, o2, p2) {
|
|
28726
28567
|
var _p = this.props;
|
|
28727
|
-
if (a2 === 1 && b2 === 0 &&
|
|
28568
|
+
if (a2 === 1 && b2 === 0 && c2 === 0 && d2 === 0 && e2 === 0 && f2 === 1 && g2 === 0 && h2 === 0 && i2 === 0 && j2 === 0 && k2 === 1 && l2 === 0) {
|
|
28728
28569
|
_p[12] = _p[12] * a2 + _p[15] * m2;
|
|
28729
28570
|
_p[13] = _p[13] * f2 + _p[15] * n2;
|
|
28730
28571
|
_p[14] = _p[14] * k2 + _p[15] * o2;
|
|
@@ -28734,7 +28575,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
28734
28575
|
}
|
|
28735
28576
|
var a1 = _p[0];
|
|
28736
28577
|
var b1 = _p[1];
|
|
28737
|
-
var
|
|
28578
|
+
var c1 = _p[2];
|
|
28738
28579
|
var d1 = _p[3];
|
|
28739
28580
|
var e1 = _p[4];
|
|
28740
28581
|
var f1 = _p[5];
|
|
@@ -28748,21 +28589,21 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
28748
28589
|
var n1 = _p[13];
|
|
28749
28590
|
var o1 = _p[14];
|
|
28750
28591
|
var p1 = _p[15];
|
|
28751
|
-
_p[0] = a1 * a2 + b1 * e2 +
|
|
28752
|
-
_p[1] = a1 * b2 + b1 * f2 +
|
|
28753
|
-
_p[2] = a1 *
|
|
28754
|
-
_p[3] = a1 * d2 + b1 * h2 +
|
|
28592
|
+
_p[0] = a1 * a2 + b1 * e2 + c1 * i2 + d1 * m2;
|
|
28593
|
+
_p[1] = a1 * b2 + b1 * f2 + c1 * j2 + d1 * n2;
|
|
28594
|
+
_p[2] = a1 * c2 + b1 * g2 + c1 * k2 + d1 * o2;
|
|
28595
|
+
_p[3] = a1 * d2 + b1 * h2 + c1 * l2 + d1 * p2;
|
|
28755
28596
|
_p[4] = e1 * a2 + f1 * e2 + g1 * i2 + h1 * m2;
|
|
28756
28597
|
_p[5] = e1 * b2 + f1 * f2 + g1 * j2 + h1 * n2;
|
|
28757
|
-
_p[6] = e1 *
|
|
28598
|
+
_p[6] = e1 * c2 + f1 * g2 + g1 * k2 + h1 * o2;
|
|
28758
28599
|
_p[7] = e1 * d2 + f1 * h2 + g1 * l2 + h1 * p2;
|
|
28759
28600
|
_p[8] = i1 * a2 + j1 * e2 + k1 * i2 + l1 * m2;
|
|
28760
28601
|
_p[9] = i1 * b2 + j1 * f2 + k1 * j2 + l1 * n2;
|
|
28761
|
-
_p[10] = i1 *
|
|
28602
|
+
_p[10] = i1 * c2 + j1 * g2 + k1 * k2 + l1 * o2;
|
|
28762
28603
|
_p[11] = i1 * d2 + j1 * h2 + k1 * l2 + l1 * p2;
|
|
28763
28604
|
_p[12] = m1 * a2 + n1 * e2 + o1 * i2 + p1 * m2;
|
|
28764
28605
|
_p[13] = m1 * b2 + n1 * f2 + o1 * j2 + p1 * n2;
|
|
28765
|
-
_p[14] = m1 *
|
|
28606
|
+
_p[14] = m1 * c2 + n1 * g2 + o1 * k2 + p1 * o2;
|
|
28766
28607
|
_p[15] = m1 * d2 + n1 * h2 + o1 * l2 + p1 * p2;
|
|
28767
28608
|
this._identityCalculated = false;
|
|
28768
28609
|
return this;
|
|
@@ -28821,14 +28662,14 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
28821
28662
|
var determinant = this.props[0] * this.props[5] - this.props[1] * this.props[4];
|
|
28822
28663
|
var a = this.props[5] / determinant;
|
|
28823
28664
|
var b = -this.props[1] / determinant;
|
|
28824
|
-
var
|
|
28665
|
+
var c2 = -this.props[4] / determinant;
|
|
28825
28666
|
var d2 = this.props[0] / determinant;
|
|
28826
28667
|
var e = (this.props[4] * this.props[13] - this.props[5] * this.props[12]) / determinant;
|
|
28827
28668
|
var f = -(this.props[0] * this.props[13] - this.props[1] * this.props[12]) / determinant;
|
|
28828
28669
|
var inverseMatrix = new Matrix();
|
|
28829
28670
|
inverseMatrix.props[0] = a;
|
|
28830
28671
|
inverseMatrix.props[1] = b;
|
|
28831
|
-
inverseMatrix.props[4] =
|
|
28672
|
+
inverseMatrix.props[4] = c2;
|
|
28832
28673
|
inverseMatrix.props[5] = d2;
|
|
28833
28674
|
inverseMatrix.props[12] = e;
|
|
28834
28675
|
inverseMatrix.props[13] = f;
|
|
@@ -28954,18 +28795,13 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
28954
28795
|
this.reset();
|
|
28955
28796
|
};
|
|
28956
28797
|
}();
|
|
28957
|
-
function _typeof$3(
|
|
28798
|
+
function _typeof$3(o) {
|
|
28958
28799
|
"@babel/helpers - typeof";
|
|
28959
|
-
|
|
28960
|
-
|
|
28961
|
-
|
|
28962
|
-
|
|
28963
|
-
}
|
|
28964
|
-
_typeof$3 = function _typeof2(obj2) {
|
|
28965
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
28966
|
-
};
|
|
28967
|
-
}
|
|
28968
|
-
return _typeof$3(obj);
|
|
28800
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
28801
|
+
return typeof o2;
|
|
28802
|
+
} : function(o2) {
|
|
28803
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
28804
|
+
}, _typeof$3(o);
|
|
28969
28805
|
}
|
|
28970
28806
|
var lottie = {};
|
|
28971
28807
|
function setLocation(href) {
|
|
@@ -29049,7 +28885,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
29049
28885
|
lottie.useWebWorker = setWebWorker;
|
|
29050
28886
|
lottie.setIDPrefix = setPrefix;
|
|
29051
28887
|
lottie.__getFactory = getFactory;
|
|
29052
|
-
lottie.version = "5.
|
|
28888
|
+
lottie.version = "5.13.0";
|
|
29053
28889
|
function checkReady() {
|
|
29054
28890
|
if (document.readyState === "complete") {
|
|
29055
28891
|
clearInterval(readyStateCheckInterval);
|
|
@@ -30126,9 +29962,9 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
30126
29962
|
function lerpPoint(p0, p1, amount) {
|
|
30127
29963
|
return [lerp(p0[0], p1[0], amount), lerp(p0[1], p1[1], amount)];
|
|
30128
29964
|
}
|
|
30129
|
-
function quadRoots(a, b,
|
|
29965
|
+
function quadRoots(a, b, c2) {
|
|
30130
29966
|
if (a === 0) return [];
|
|
30131
|
-
var s2 = b * b - 4 * a *
|
|
29967
|
+
var s2 = b * b - 4 * a * c2;
|
|
30132
29968
|
if (s2 < 0) return [];
|
|
30133
29969
|
var singleRoot = -b / (2 * a);
|
|
30134
29970
|
if (s2 === 0) return [singleRoot];
|
|
@@ -31643,7 +31479,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
31643
31479
|
}
|
|
31644
31480
|
}
|
|
31645
31481
|
}
|
|
31646
|
-
if (this.finalTransform._matMdf) {
|
|
31482
|
+
if (!this.localTransforms || this.finalTransform._matMdf) {
|
|
31647
31483
|
this.finalTransform._localMatMdf = this.finalTransform._matMdf;
|
|
31648
31484
|
}
|
|
31649
31485
|
if (this.finalTransform._opMdf) {
|
|
@@ -32881,7 +32717,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
32881
32717
|
itemData.of.setAttribute("r", rad);
|
|
32882
32718
|
}
|
|
32883
32719
|
}
|
|
32884
|
-
if (itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
|
|
32720
|
+
if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
|
|
32885
32721
|
if (!rad) {
|
|
32886
32722
|
rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
|
|
32887
32723
|
}
|
|
@@ -33078,7 +32914,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
33078
32914
|
var j;
|
|
33079
32915
|
var jLen = this.stylesList.length;
|
|
33080
32916
|
for (j = 0; j < jLen; j += 1) {
|
|
33081
|
-
if (!this.stylesList[j].closed) {
|
|
32917
|
+
if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) {
|
|
33082
32918
|
arr.push(this.stylesList[j]);
|
|
33083
32919
|
}
|
|
33084
32920
|
}
|
|
@@ -33120,7 +32956,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
33120
32956
|
if (!processedPos) {
|
|
33121
32957
|
itemsData[i2] = this.createStyleElement(arr[i2], level);
|
|
33122
32958
|
} else {
|
|
33123
|
-
itemsData[i2].style.closed =
|
|
32959
|
+
itemsData[i2].style.closed = arr[i2].hd;
|
|
33124
32960
|
}
|
|
33125
32961
|
if (arr[i2]._render) {
|
|
33126
32962
|
if (itemsData[i2].style.pElem.parentNode !== container) {
|
|
@@ -37032,21 +36868,21 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
37032
36868
|
};
|
|
37033
36869
|
HShapeElement.prototype.getBoundsOfCurve = function(p0, p1, p2, p3) {
|
|
37034
36870
|
var bounds = [[p0[0], p3[0]], [p0[1], p3[1]]];
|
|
37035
|
-
for (var a, b,
|
|
36871
|
+
for (var a, b, c2, t, b2ac, t1, t2, i2 = 0; i2 < 2; ++i2) {
|
|
37036
36872
|
b = 6 * p0[i2] - 12 * p1[i2] + 6 * p2[i2];
|
|
37037
36873
|
a = -3 * p0[i2] + 9 * p1[i2] - 9 * p2[i2] + 3 * p3[i2];
|
|
37038
|
-
|
|
36874
|
+
c2 = 3 * p1[i2] - 3 * p0[i2];
|
|
37039
36875
|
b |= 0;
|
|
37040
36876
|
a |= 0;
|
|
37041
|
-
|
|
36877
|
+
c2 |= 0;
|
|
37042
36878
|
if (a === 0 && b === 0) ;
|
|
37043
36879
|
else if (a === 0) {
|
|
37044
|
-
t = -
|
|
36880
|
+
t = -c2 / b;
|
|
37045
36881
|
if (t > 0 && t < 1) {
|
|
37046
36882
|
bounds[i2].push(this.calculateF(t, p0, p1, p2, p3, i2));
|
|
37047
36883
|
}
|
|
37048
36884
|
} else {
|
|
37049
|
-
b2ac = b * b - 4 *
|
|
36885
|
+
b2ac = b * b - 4 * c2 * a;
|
|
37050
36886
|
if (b2ac >= 0) {
|
|
37051
36887
|
t1 = (-b + bmSqrt(b2ac)) / (2 * a);
|
|
37052
36888
|
if (t1 > 0 && t1 < 1) bounds[i2].push(this.calculateF(t1, p0, p1, p2, p3, i2));
|
|
@@ -37957,18 +37793,13 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
37957
37793
|
return _thisLayerFunction;
|
|
37958
37794
|
};
|
|
37959
37795
|
}();
|
|
37960
|
-
function _typeof$2(
|
|
37796
|
+
function _typeof$2(o) {
|
|
37961
37797
|
"@babel/helpers - typeof";
|
|
37962
|
-
|
|
37963
|
-
|
|
37964
|
-
|
|
37965
|
-
|
|
37966
|
-
}
|
|
37967
|
-
_typeof$2 = function _typeof2(obj2) {
|
|
37968
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
37969
|
-
};
|
|
37970
|
-
}
|
|
37971
|
-
return _typeof$2(obj);
|
|
37798
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
37799
|
+
return typeof o2;
|
|
37800
|
+
} : function(o2) {
|
|
37801
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
37802
|
+
}, _typeof$2(o);
|
|
37972
37803
|
}
|
|
37973
37804
|
function seedRandom(pool, math) {
|
|
37974
37805
|
var global2 = this, width2 = 256, chunks = 6, digits = 52, rngname = "random", startdenom = math.pow(width2, chunks), significance = math.pow(2, digits), overflow = significance * 2, mask2 = width2 - 1, nodecrypto;
|
|
@@ -38087,18 +37918,13 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
38087
37918
|
var propTypes = {
|
|
38088
37919
|
SHAPE: "shape"
|
|
38089
37920
|
};
|
|
38090
|
-
function _typeof$1(
|
|
37921
|
+
function _typeof$1(o) {
|
|
38091
37922
|
"@babel/helpers - typeof";
|
|
38092
|
-
|
|
38093
|
-
|
|
38094
|
-
|
|
38095
|
-
|
|
38096
|
-
}
|
|
38097
|
-
_typeof$1 = function _typeof2(obj2) {
|
|
38098
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
38099
|
-
};
|
|
38100
|
-
}
|
|
38101
|
-
return _typeof$1(obj);
|
|
37923
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
37924
|
+
return typeof o2;
|
|
37925
|
+
} : function(o2) {
|
|
37926
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
37927
|
+
}, _typeof$1(o);
|
|
38102
37928
|
}
|
|
38103
37929
|
var ExpressionManager = function() {
|
|
38104
37930
|
var ob = {};
|
|
@@ -38466,6 +38292,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
38466
38292
|
var content;
|
|
38467
38293
|
var effect;
|
|
38468
38294
|
var thisProperty = property;
|
|
38295
|
+
thisProperty._name = elem.data.nm;
|
|
38469
38296
|
thisProperty.valueAtTime = thisProperty.getValueAtTime;
|
|
38470
38297
|
Object.defineProperty(thisProperty, "value", {
|
|
38471
38298
|
get: function get() {
|
|
@@ -38902,6 +38729,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
38902
38729
|
if (expressionValue.value !== val2) {
|
|
38903
38730
|
expressionValue = new Number(val2);
|
|
38904
38731
|
expressionValue.value = val2;
|
|
38732
|
+
expressionValue[0] = val2;
|
|
38905
38733
|
completeProperty(expressionValue, property2, "unidimensional");
|
|
38906
38734
|
}
|
|
38907
38735
|
return expressionValue;
|
|
@@ -39941,18 +39769,13 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
39941
39769
|
return _thisLayerFunction;
|
|
39942
39770
|
};
|
|
39943
39771
|
}();
|
|
39944
|
-
function _typeof(
|
|
39772
|
+
function _typeof(o) {
|
|
39945
39773
|
"@babel/helpers - typeof";
|
|
39946
|
-
|
|
39947
|
-
|
|
39948
|
-
|
|
39949
|
-
|
|
39950
|
-
}
|
|
39951
|
-
_typeof = function _typeof2(obj2) {
|
|
39952
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
39953
|
-
};
|
|
39954
|
-
}
|
|
39955
|
-
return _typeof(obj);
|
|
39774
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
39775
|
+
return typeof o2;
|
|
39776
|
+
} : function(o2) {
|
|
39777
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
39778
|
+
}, _typeof(o);
|
|
39956
39779
|
}
|
|
39957
39780
|
var FootageInterface = /* @__PURE__ */ function() {
|
|
39958
39781
|
var outlineInterfaceFactory = function outlineInterfaceFactory2(elem2) {
|
|
@@ -41064,122 +40887,106 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
41064
40887
|
})(lottie$1, lottie$1.exports);
|
|
41065
40888
|
var lottieExports = lottie$1.exports;
|
|
41066
40889
|
const lottie = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports);
|
|
41067
|
-
function
|
|
41068
|
-
|
|
41069
|
-
|
|
41070
|
-
|
|
40890
|
+
function _arrayLikeToArray(r, a) {
|
|
40891
|
+
(null == a || a > r.length) && (a = r.length);
|
|
40892
|
+
for (var e = 0, n2 = Array(a); e < a; e++) n2[e] = r[e];
|
|
40893
|
+
return n2;
|
|
40894
|
+
}
|
|
40895
|
+
function _arrayWithHoles(r) {
|
|
40896
|
+
if (Array.isArray(r)) return r;
|
|
40897
|
+
}
|
|
40898
|
+
function _defineProperty(e, r, t) {
|
|
40899
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
40900
|
+
value: t,
|
|
40901
|
+
enumerable: true,
|
|
40902
|
+
configurable: true,
|
|
40903
|
+
writable: true
|
|
40904
|
+
}) : e[r] = t, e;
|
|
40905
|
+
}
|
|
40906
|
+
function _iterableToArrayLimit(r, l2) {
|
|
40907
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
40908
|
+
if (null != t) {
|
|
40909
|
+
var e, n2, i2, u, a = [], f = true, o = false;
|
|
41071
40910
|
try {
|
|
41072
|
-
if (
|
|
41073
|
-
else for (; !(
|
|
41074
|
-
} catch (
|
|
41075
|
-
|
|
40911
|
+
if (i2 = (t = t.call(r)).next, 0 === l2) ;
|
|
40912
|
+
else for (; !(f = (e = i2.call(t)).done) && (a.push(e.value), a.length !== l2); f = true) ;
|
|
40913
|
+
} catch (r2) {
|
|
40914
|
+
o = true, n2 = r2;
|
|
41076
40915
|
} finally {
|
|
41077
40916
|
try {
|
|
41078
|
-
if (!
|
|
40917
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
41079
40918
|
} finally {
|
|
41080
|
-
if (
|
|
40919
|
+
if (o) throw n2;
|
|
41081
40920
|
}
|
|
41082
40921
|
}
|
|
41083
|
-
return
|
|
40922
|
+
return a;
|
|
41084
40923
|
}
|
|
41085
40924
|
}
|
|
41086
|
-
function
|
|
41087
|
-
|
|
41088
|
-
if (Object.getOwnPropertySymbols) {
|
|
41089
|
-
var symbols = Object.getOwnPropertySymbols(object2);
|
|
41090
|
-
enumerableOnly && (symbols = symbols.filter(function(sym) {
|
|
41091
|
-
return Object.getOwnPropertyDescriptor(object2, sym).enumerable;
|
|
41092
|
-
})), keys.push.apply(keys, symbols);
|
|
41093
|
-
}
|
|
41094
|
-
return keys;
|
|
40925
|
+
function _nonIterableRest() {
|
|
40926
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
41095
40927
|
}
|
|
41096
|
-
function
|
|
41097
|
-
|
|
41098
|
-
|
|
41099
|
-
|
|
41100
|
-
|
|
41101
|
-
|
|
41102
|
-
|
|
41103
|
-
});
|
|
40928
|
+
function ownKeys(e, r) {
|
|
40929
|
+
var t = Object.keys(e);
|
|
40930
|
+
if (Object.getOwnPropertySymbols) {
|
|
40931
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
40932
|
+
r && (o = o.filter(function(r2) {
|
|
40933
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
40934
|
+
})), t.push.apply(t, o);
|
|
41104
40935
|
}
|
|
41105
|
-
return
|
|
40936
|
+
return t;
|
|
41106
40937
|
}
|
|
41107
|
-
function
|
|
41108
|
-
|
|
41109
|
-
|
|
41110
|
-
Object
|
|
41111
|
-
|
|
41112
|
-
|
|
41113
|
-
|
|
41114
|
-
writable: true
|
|
40938
|
+
function _objectSpread2(e) {
|
|
40939
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
40940
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
40941
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
40942
|
+
_defineProperty(e, r2, t[r2]);
|
|
40943
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
40944
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
41115
40945
|
});
|
|
41116
|
-
} else {
|
|
41117
|
-
obj[key2] = value2;
|
|
41118
40946
|
}
|
|
41119
|
-
return
|
|
40947
|
+
return e;
|
|
41120
40948
|
}
|
|
41121
|
-
function
|
|
41122
|
-
if (
|
|
41123
|
-
var
|
|
41124
|
-
var sourceKeys = Object.keys(source);
|
|
41125
|
-
var key2, i2;
|
|
41126
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
41127
|
-
key2 = sourceKeys[i2];
|
|
41128
|
-
if (excluded.indexOf(key2) >= 0) continue;
|
|
41129
|
-
target[key2] = source[key2];
|
|
41130
|
-
}
|
|
41131
|
-
return target;
|
|
41132
|
-
}
|
|
41133
|
-
function _objectWithoutProperties(source, excluded) {
|
|
41134
|
-
if (source == null) return {};
|
|
41135
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
41136
|
-
var key2, i2;
|
|
40949
|
+
function _objectWithoutProperties(e, t) {
|
|
40950
|
+
if (null == e) return {};
|
|
40951
|
+
var o, r, i2 = _objectWithoutPropertiesLoose(e, t);
|
|
41137
40952
|
if (Object.getOwnPropertySymbols) {
|
|
41138
|
-
var
|
|
41139
|
-
for (
|
|
41140
|
-
key2 = sourceSymbolKeys[i2];
|
|
41141
|
-
if (excluded.indexOf(key2) >= 0) continue;
|
|
41142
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key2)) continue;
|
|
41143
|
-
target[key2] = source[key2];
|
|
41144
|
-
}
|
|
40953
|
+
var s2 = Object.getOwnPropertySymbols(e);
|
|
40954
|
+
for (r = 0; r < s2.length; r++) o = s2[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i2[o] = e[o]);
|
|
41145
40955
|
}
|
|
41146
|
-
return
|
|
41147
|
-
}
|
|
41148
|
-
function _slicedToArray(arr, i2) {
|
|
41149
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i2) || _unsupportedIterableToArray(arr, i2) || _nonIterableRest();
|
|
41150
|
-
}
|
|
41151
|
-
function _arrayWithHoles(arr) {
|
|
41152
|
-
if (Array.isArray(arr)) return arr;
|
|
41153
|
-
}
|
|
41154
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
41155
|
-
if (!o) return;
|
|
41156
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
41157
|
-
var n2 = Object.prototype.toString.call(o).slice(8, -1);
|
|
41158
|
-
if (n2 === "Object" && o.constructor) n2 = o.constructor.name;
|
|
41159
|
-
if (n2 === "Map" || n2 === "Set") return Array.from(o);
|
|
41160
|
-
if (n2 === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n2)) return _arrayLikeToArray(o, minLen);
|
|
40956
|
+
return i2;
|
|
41161
40957
|
}
|
|
41162
|
-
function
|
|
41163
|
-
if (
|
|
41164
|
-
|
|
41165
|
-
|
|
40958
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
40959
|
+
if (null == r) return {};
|
|
40960
|
+
var t = {};
|
|
40961
|
+
for (var n2 in r) if ({}.hasOwnProperty.call(r, n2)) {
|
|
40962
|
+
if (e.includes(n2)) continue;
|
|
40963
|
+
t[n2] = r[n2];
|
|
40964
|
+
}
|
|
40965
|
+
return t;
|
|
41166
40966
|
}
|
|
41167
|
-
function
|
|
41168
|
-
|
|
40967
|
+
function _slicedToArray(r, e) {
|
|
40968
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
41169
40969
|
}
|
|
41170
|
-
function _toPrimitive(
|
|
41171
|
-
if (
|
|
41172
|
-
var
|
|
41173
|
-
if (
|
|
41174
|
-
var
|
|
41175
|
-
if (
|
|
40970
|
+
function _toPrimitive(t, r) {
|
|
40971
|
+
if ("object" != typeof t || !t) return t;
|
|
40972
|
+
var e = t[Symbol.toPrimitive];
|
|
40973
|
+
if (void 0 !== e) {
|
|
40974
|
+
var i2 = e.call(t, r);
|
|
40975
|
+
if ("object" != typeof i2) return i2;
|
|
41176
40976
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
41177
40977
|
}
|
|
41178
|
-
return (
|
|
40978
|
+
return ("string" === r ? String : Number)(t);
|
|
41179
40979
|
}
|
|
41180
|
-
function _toPropertyKey(
|
|
41181
|
-
var
|
|
41182
|
-
return
|
|
40980
|
+
function _toPropertyKey(t) {
|
|
40981
|
+
var i2 = _toPrimitive(t, "string");
|
|
40982
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
40983
|
+
}
|
|
40984
|
+
function _unsupportedIterableToArray(r, a) {
|
|
40985
|
+
if (r) {
|
|
40986
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
40987
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
40988
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
40989
|
+
}
|
|
41183
40990
|
}
|
|
41184
40991
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"];
|
|
41185
40992
|
var useLottie = function useLottie2(props, style) {
|
|
@@ -42952,8 +42759,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
42952
42759
|
}));
|
|
42953
42760
|
resetScale(scale2);
|
|
42954
42761
|
};
|
|
42955
|
-
var inputImageChange =
|
|
42956
|
-
|
|
42762
|
+
var inputImageChange = function(event) {
|
|
42763
|
+
return _async_to_generator(function() {
|
|
42957
42764
|
var $el, files, base64, image;
|
|
42958
42765
|
return __generator(this, function(_state) {
|
|
42959
42766
|
switch (_state.label) {
|
|
@@ -42982,11 +42789,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
42982
42789
|
];
|
|
42983
42790
|
}
|
|
42984
42791
|
});
|
|
42985
|
-
});
|
|
42986
|
-
|
|
42987
|
-
return _ref2.apply(this, arguments);
|
|
42988
|
-
};
|
|
42989
|
-
}();
|
|
42792
|
+
})();
|
|
42793
|
+
};
|
|
42990
42794
|
var resetScale = function(scale2) {
|
|
42991
42795
|
setState(_object_spread_props(_object_spread({}, state), {
|
|
42992
42796
|
moveX: 0,
|
|
@@ -42997,7 +42801,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
42997
42801
|
}));
|
|
42998
42802
|
};
|
|
42999
42803
|
var setScale = function(scale2) {
|
|
43000
|
-
scale2 = clamp$
|
|
42804
|
+
scale2 = clamp$1(scale2, 0.3, +maxZoom + 1);
|
|
43001
42805
|
if (scale2 !== state.scale) {
|
|
43002
42806
|
setState(_object_spread_props(_object_spread({}, state), {
|
|
43003
42807
|
scale: scale2
|
|
@@ -43043,8 +42847,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
43043
42847
|
var moveX = deltaX.current * state.scale + startMoveX;
|
|
43044
42848
|
var moveY = deltaY.current * state.scale + startMoveY;
|
|
43045
42849
|
setState(_object_spread_props(_object_spread({}, state), {
|
|
43046
|
-
moveX: clamp$
|
|
43047
|
-
moveY: clamp$
|
|
42850
|
+
moveX: clamp$1(moveX, -maxMoveX, maxMoveX),
|
|
42851
|
+
moveY: clamp$1(moveY, -maxMoveY, maxMoveY)
|
|
43048
42852
|
}));
|
|
43049
42853
|
}
|
|
43050
42854
|
if (zooming && touches.length === 2) {
|
|
@@ -43060,8 +42864,8 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
43060
42864
|
if (!event.touches.length) {
|
|
43061
42865
|
if (zooming) {
|
|
43062
42866
|
setState(_object_spread_props(_object_spread({}, state), {
|
|
43063
|
-
moveX: clamp$
|
|
43064
|
-
moveY: clamp$
|
|
42867
|
+
moveX: clamp$1(state.moveX, -maxMoveX, maxMoveX),
|
|
42868
|
+
moveY: clamp$1(state.moveY, -maxMoveY, maxMoveY)
|
|
43065
42869
|
}));
|
|
43066
42870
|
setZooming(false);
|
|
43067
42871
|
}
|
|
@@ -43803,7 +43607,7 @@ Please add \`${key2}Action\` when creating your handler.`);
|
|
|
43803
43607
|
exports.bound = bound;
|
|
43804
43608
|
exports.canUseDom = canUseDom;
|
|
43805
43609
|
exports.cancelRaf = cancelRaf;
|
|
43806
|
-
exports.clamp = clamp$
|
|
43610
|
+
exports.clamp = clamp$1;
|
|
43807
43611
|
exports.clone = clone;
|
|
43808
43612
|
exports.destroyList = destroyList;
|
|
43809
43613
|
exports.funcInterceptor = funcInterceptor;
|