@nutui/nutui-react-taro 3.0.19-cpp-beta.5 → 3.0.19-cpp.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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/actionsheet/style/style.harmony.css +2 -2
- package/dist/cjs/packages/address/style/style.harmony.css +3 -3
- package/dist/cjs/packages/address/utils.js +3 -3
- package/dist/cjs/packages/audio/style/style.harmony.css +5 -5
- package/dist/cjs/packages/avatarcropper/avatarcropper.js +16 -28
- package/dist/cjs/packages/badge/badge.js +4 -7
- package/dist/cjs/packages/badge/style/badge.scss +1 -1
- package/dist/cjs/packages/badge/style/style.css +1 -1
- package/dist/cjs/packages/badge/style/style.harmony.css +1 -1
- package/dist/cjs/packages/badge/style-jmapp/badge.scss +1 -1
- package/dist/cjs/packages/badge/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/badge/style-jrkf/badge.scss +1 -1
- package/dist/cjs/packages/badge/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/barrage/barrage.js +14 -24
- package/dist/cjs/packages/button/style/style.css +5 -5
- package/dist/cjs/packages/button/style/style.harmony.css +5 -5
- package/dist/cjs/packages/calendar/style/style.css +2 -2
- package/dist/cjs/packages/calendar/style/style.harmony.css +4 -4
- package/dist/cjs/packages/calendar/utils.js +8 -8
- package/dist/cjs/packages/calendarcard/icon.js +5 -5
- package/dist/cjs/packages/calendarcard/style/style.css +1 -1
- package/dist/cjs/packages/calendarcard/style/style.harmony.css +1 -1
- package/dist/cjs/packages/calendarcard/utils.js +6 -6
- package/dist/cjs/packages/card/style/style.harmony.css +4 -4
- package/dist/cjs/packages/cascader/cascader.js +12 -21
- package/dist/cjs/packages/cascader/style/style.harmony.css +3 -3
- package/dist/cjs/packages/cascader/utils.js +3 -3
- package/dist/cjs/packages/checkbox/style/style.css +1 -1
- package/dist/cjs/packages/checkbox/style/style.harmony.css +1 -1
- package/dist/cjs/packages/circleprogress/style/style.css +1 -1
- package/dist/cjs/packages/circleprogress/style/style.harmony.css +1 -1
- package/dist/cjs/packages/col/col.js +16 -11
- 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/configprovider/types.d.ts +1 -1
- package/dist/cjs/packages/countdown/countdown.js +1 -2
- package/dist/cjs/packages/countdown/style/countdown.scss +1 -1
- package/dist/cjs/packages/countdown/style/style.css +1 -1
- package/dist/cjs/packages/countdown/style/style.harmony.css +1 -1
- package/dist/cjs/packages/countdown/style-jmapp/countdown.scss +1 -1
- package/dist/cjs/packages/countdown/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/countdown/style-jrkf/countdown.scss +1 -1
- package/dist/cjs/packages/countdown/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/datepicker/style/style.harmony.css +4 -4
- 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 +8 -11
- package/dist/cjs/packages/dialog/style/dialog.scss +4 -2
- package/dist/cjs/packages/dialog/style/style.css +6 -4
- package/dist/cjs/packages/dialog/style/style.harmony.css +11 -9
- package/dist/cjs/packages/dialog/style-jmapp/dialog.scss +4 -2
- package/dist/cjs/packages/dialog/style-jmapp/style.css +4 -2
- package/dist/cjs/packages/dialog/style-jrkf/dialog.scss +4 -2
- package/dist/cjs/packages/dialog/style-jrkf/style.css +4 -2
- package/dist/cjs/packages/drag/drag.js +4 -7
- package/dist/cjs/packages/elevator/elevator.js +7 -10
- package/dist/cjs/packages/ellipsis/ellipsis.js +17 -30
- package/dist/cjs/packages/empty/style/style.css +2 -2
- package/dist/cjs/packages/empty/style/style.harmony.css +7 -7
- package/dist/cjs/packages/fixednav/style/style.harmony.css +1 -1
- package/dist/cjs/packages/form/index.js +0 -2
- package/dist/cjs/packages/form/useform.js +50 -57
- package/dist/cjs/packages/imagepreview/style/style.harmony.css +2 -2
- package/dist/cjs/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/cjs/packages/input/style/style.css +1 -1
- package/dist/cjs/packages/input/style/style.harmony.css +1 -1
- package/dist/cjs/packages/inputnumber/inputnumber.js +16 -28
- package/dist/cjs/packages/lottie/types.js +0 -2
- package/dist/cjs/packages/menuitem/menuitem.js +24 -22
- package/dist/cjs/packages/noticebar/noticebar.js +71 -67
- package/dist/cjs/packages/notify/notify.js +4 -4
- package/dist/cjs/packages/numberkeyboard/style/style.css +3 -3
- package/dist/cjs/packages/numberkeyboard/style/style.harmony.css +5 -5
- 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/picker/style/style.css +2 -2
- package/dist/cjs/packages/picker/style/style.harmony.css +4 -4
- package/dist/cjs/packages/pickerview/pickerroller.js +4 -7
- package/dist/cjs/packages/pickerview/pickerview.js +1 -2
- package/dist/cjs/packages/pickerview/utils.js +3 -3
- package/dist/cjs/packages/popover/popover.js +75 -77
- package/dist/cjs/packages/popover/style/style.harmony.css +2 -2
- package/dist/cjs/packages/popup/popup.js +8 -14
- package/dist/cjs/packages/popup/style/style.css +2 -2
- package/dist/cjs/packages/popup/style/style.harmony.css +2 -2
- package/dist/cjs/packages/price/style/price.scss +3 -3
- package/dist/cjs/packages/price/style/style.css +4 -4
- package/dist/cjs/packages/price/style/style.harmony.css +4 -4
- package/dist/cjs/packages/price/style-jmapp/price.scss +3 -3
- package/dist/cjs/packages/price/style-jmapp/style.css +3 -3
- package/dist/cjs/packages/price/style-jrkf/price.scss +3 -3
- package/dist/cjs/packages/price/style-jrkf/style.css +3 -3
- package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +52 -56
- package/dist/cjs/packages/radio/index.js +0 -2
- package/dist/cjs/packages/radio/style/style.css +1 -1
- package/dist/cjs/packages/radio/style/style.harmony.css +1 -1
- package/dist/cjs/packages/range/range.js +16 -28
- package/dist/cjs/packages/rate/style/rate.scss +1 -1
- package/dist/cjs/packages/rate/style/style.css +1 -1
- package/dist/cjs/packages/rate/style/style.harmony.css +1 -1
- package/dist/cjs/packages/rate/style-jmapp/rate.scss +1 -1
- package/dist/cjs/packages/rate/style-jmapp/style.css +1 -1
- package/dist/cjs/packages/rate/style-jrkf/rate.scss +1 -1
- package/dist/cjs/packages/rate/style-jrkf/style.css +1 -1
- package/dist/cjs/packages/resultpage/style/style.harmony.css +5 -5
- package/dist/cjs/packages/shortpassword/shortpassword.js +3 -3
- package/dist/cjs/packages/shortpassword/style/style.css +1 -1
- package/dist/cjs/packages/shortpassword/style/style.harmony.css +3 -3
- package/dist/cjs/packages/sidebar/style/style.css +1 -1
- package/dist/cjs/packages/sidebar/style/style.harmony.css +1 -1
- package/dist/cjs/packages/steps/style/style.css +1 -1
- package/dist/cjs/packages/steps/style/style.harmony.css +1 -1
- package/dist/cjs/packages/sticky/sticky.js +4 -7
- package/dist/cjs/packages/swipe/swipe.js +8 -15
- package/dist/cjs/packages/swiper/index.js +0 -1
- package/dist/cjs/packages/switch/switch.js +4 -7
- package/dist/cjs/packages/tabbar/style/style.harmony.css +3 -3
- package/dist/cjs/packages/tabbaritem/style/style.css +2 -2
- package/dist/cjs/packages/tabbaritem/style/style.harmony.css +3 -3
- package/dist/cjs/packages/tabs/style/style.css +1 -1
- package/dist/cjs/packages/tabs/style/style.harmony.css +1 -1
- package/dist/cjs/packages/timeselect/style/style.harmony.css +2 -2
- package/dist/cjs/packages/toast/style/style.css +1 -1
- package/dist/cjs/packages/toast/style/style.harmony.css +1 -1
- package/dist/cjs/packages/toast/toast.js +4 -4
- package/dist/cjs/packages/tour/style/style.harmony.css +2 -2
- package/dist/cjs/packages/uploader/uploader.js +38 -51
- 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/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/actionsheet/style/style.harmony.css +2 -2
- package/dist/es/packages/address/style/style.harmony.css +3 -3
- package/dist/es/packages/audio/style/style.harmony.css +5 -5
- package/dist/es/packages/avatarcropper/avatarcropper.js +16 -28
- package/dist/es/packages/badge/badge.js +4 -7
- package/dist/es/packages/badge/style/badge.scss +1 -1
- package/dist/es/packages/badge/style/style.css +1 -1
- package/dist/es/packages/badge/style/style.harmony.css +1 -1
- package/dist/es/packages/badge/style-jmapp/badge.scss +1 -1
- package/dist/es/packages/badge/style-jmapp/style.css +1 -1
- package/dist/es/packages/badge/style-jrkf/badge.scss +1 -1
- package/dist/es/packages/badge/style-jrkf/style.css +1 -1
- package/dist/es/packages/barrage/barrage.js +14 -24
- package/dist/es/packages/button/style/style.css +5 -5
- package/dist/es/packages/button/style/style.harmony.css +5 -5
- package/dist/es/packages/calendar/style/style.css +2 -2
- package/dist/es/packages/calendar/style/style.harmony.css +4 -4
- package/dist/es/packages/calendarcard/style/style.css +1 -1
- package/dist/es/packages/calendarcard/style/style.harmony.css +1 -1
- package/dist/es/packages/card/style/style.harmony.css +4 -4
- package/dist/es/packages/cascader/cascader.js +12 -21
- package/dist/es/packages/cascader/style/style.harmony.css +3 -3
- package/dist/es/packages/checkbox/style/style.css +1 -1
- package/dist/es/packages/checkbox/style/style.harmony.css +1 -1
- package/dist/es/packages/circleprogress/style/style.css +1 -1
- package/dist/es/packages/circleprogress/style/style.harmony.css +1 -1
- package/dist/es/packages/col/col.js +17 -12
- package/dist/es/packages/collapseitem/collapseitem.js +4 -7
- package/dist/es/packages/configprovider/types.d.ts +1 -1
- package/dist/es/packages/countdown/countdown.js +1 -2
- package/dist/es/packages/countdown/style/countdown.scss +1 -1
- package/dist/es/packages/countdown/style/style.css +1 -1
- package/dist/es/packages/countdown/style/style.harmony.css +1 -1
- package/dist/es/packages/countdown/style-jmapp/countdown.scss +1 -1
- package/dist/es/packages/countdown/style-jmapp/style.css +1 -1
- package/dist/es/packages/countdown/style-jrkf/countdown.scss +1 -1
- package/dist/es/packages/countdown/style-jrkf/style.css +1 -1
- package/dist/es/packages/datepicker/style/style.harmony.css +4 -4
- package/dist/es/packages/dialog/dialog.js +4 -7
- package/dist/es/packages/dialog/style/dialog.scss +4 -2
- package/dist/es/packages/dialog/style/style.css +6 -4
- package/dist/es/packages/dialog/style/style.harmony.css +11 -9
- package/dist/es/packages/dialog/style-jmapp/dialog.scss +4 -2
- package/dist/es/packages/dialog/style-jmapp/style.css +4 -2
- package/dist/es/packages/dialog/style-jrkf/dialog.scss +4 -2
- package/dist/es/packages/dialog/style-jrkf/style.css +4 -2
- package/dist/es/packages/drag/drag.js +4 -7
- package/dist/es/packages/elevator/elevator.js +4 -7
- package/dist/es/packages/ellipsis/ellipsis.js +17 -30
- package/dist/es/packages/empty/style/style.css +2 -2
- package/dist/es/packages/empty/style/style.harmony.css +7 -7
- package/dist/es/packages/fixednav/style/style.harmony.css +1 -1
- package/dist/es/packages/form/index.js +0 -1
- package/dist/es/packages/form/useform.js +46 -53
- package/dist/es/packages/imagepreview/style/style.harmony.css +2 -2
- package/dist/es/packages/infiniteloading/infiniteloading.js +8 -14
- package/dist/es/packages/input/style/style.css +1 -1
- package/dist/es/packages/input/style/style.harmony.css +1 -1
- package/dist/es/packages/inputnumber/inputnumber.js +16 -28
- package/dist/es/packages/lottie/types.js +1 -1
- package/dist/es/packages/menuitem/menuitem.js +24 -22
- package/dist/es/packages/noticebar/noticebar.js +71 -67
- package/dist/es/packages/numberkeyboard/style/style.css +3 -3
- package/dist/es/packages/numberkeyboard/style/style.harmony.css +5 -5
- package/dist/es/packages/picker/style/style.css +2 -2
- package/dist/es/packages/picker/style/style.harmony.css +4 -4
- package/dist/es/packages/pickerview/pickerroller.js +4 -7
- package/dist/es/packages/pickerview/pickerview.js +1 -2
- package/dist/es/packages/popover/popover.js +75 -77
- package/dist/es/packages/popover/style/style.harmony.css +2 -2
- package/dist/es/packages/popup/popup.js +8 -14
- package/dist/es/packages/popup/style/style.css +2 -2
- package/dist/es/packages/popup/style/style.harmony.css +2 -2
- package/dist/es/packages/price/style/price.scss +3 -3
- package/dist/es/packages/price/style/style.css +4 -4
- package/dist/es/packages/price/style/style.harmony.css +4 -4
- package/dist/es/packages/price/style-jmapp/price.scss +3 -3
- package/dist/es/packages/price/style-jmapp/style.css +3 -3
- package/dist/es/packages/price/style-jrkf/price.scss +3 -3
- package/dist/es/packages/price/style-jrkf/style.css +3 -3
- package/dist/es/packages/pulltorefresh/pulltorefresh.js +52 -56
- package/dist/es/packages/radio/index.js +0 -1
- package/dist/es/packages/radio/style/style.css +1 -1
- package/dist/es/packages/radio/style/style.harmony.css +1 -1
- package/dist/es/packages/range/range.js +16 -28
- package/dist/es/packages/rate/style/rate.scss +1 -1
- package/dist/es/packages/rate/style/style.css +1 -1
- package/dist/es/packages/rate/style/style.harmony.css +1 -1
- package/dist/es/packages/rate/style-jmapp/rate.scss +1 -1
- package/dist/es/packages/rate/style-jmapp/style.css +1 -1
- package/dist/es/packages/rate/style-jrkf/rate.scss +1 -1
- package/dist/es/packages/rate/style-jrkf/style.css +1 -1
- package/dist/es/packages/resultpage/style/style.harmony.css +5 -5
- package/dist/es/packages/shortpassword/style/style.css +1 -1
- package/dist/es/packages/shortpassword/style/style.harmony.css +3 -3
- package/dist/es/packages/sidebar/style/style.css +1 -1
- package/dist/es/packages/sidebar/style/style.harmony.css +1 -1
- package/dist/es/packages/steps/style/style.css +1 -1
- package/dist/es/packages/steps/style/style.harmony.css +1 -1
- package/dist/es/packages/sticky/sticky.js +4 -7
- package/dist/es/packages/swipe/swipe.js +8 -15
- package/dist/es/packages/swiper/index.js +0 -1
- package/dist/es/packages/switch/switch.js +4 -7
- package/dist/es/packages/tabbar/style/style.harmony.css +3 -3
- package/dist/es/packages/tabbaritem/style/style.css +2 -2
- package/dist/es/packages/tabbaritem/style/style.harmony.css +3 -3
- package/dist/es/packages/tabs/style/style.css +1 -1
- package/dist/es/packages/tabs/style/style.harmony.css +1 -1
- package/dist/es/packages/timeselect/style/style.harmony.css +2 -2
- package/dist/es/packages/toast/style/style.css +1 -1
- package/dist/es/packages/toast/style/style.harmony.css +1 -1
- package/dist/es/packages/tour/style/style.harmony.css +2 -2
- package/dist/es/packages/uploader/uploader.js +38 -51
- 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/get-rect.js +10 -20
- package/dist/nutui.react.umd.js +612 -820
- package/dist/style-jmapp.css +1 -1
- package/dist/style-jmapp.scss +31 -31
- package/dist/style-jrkf.css +1 -1
- package/dist/style-jrkf.scss +28 -28
- package/dist/style.css +1 -1
- package/dist/style.scss +28 -28
- package/dist/styles/jd-font.scss +4 -4
- package/dist/styles/theme-default.scss +4 -1
- package/dist/styles/themes/dark.css +1 -1
- package/dist/styles/themes/default.css +1 -1
- package/dist/styles/variables-jmapp.scss +5 -0
- package/dist/styles/variables-jrkf.scss +5 -0
- package/dist/styles/variables.scss +16 -7
- package/package.json +1 -1
package/dist/nutui.react.umd.js
CHANGED
|
@@ -152,7 +152,6 @@
|
|
|
152
152
|
var classnamesExports = classnames.exports;
|
|
153
153
|
const classNames = /* @__PURE__ */ getDefaultExportFromCjs(classnamesExports);
|
|
154
154
|
const globalConfig = {
|
|
155
|
-
useSvg: true,
|
|
156
155
|
classPrefix: "nut-icon",
|
|
157
156
|
tag: "i",
|
|
158
157
|
fontClassName: "nutui-iconfont"
|
|
@@ -179,7 +178,6 @@
|
|
|
179
178
|
height: height2,
|
|
180
179
|
size,
|
|
181
180
|
svg64,
|
|
182
|
-
svgSrc,
|
|
183
181
|
children,
|
|
184
182
|
onClick,
|
|
185
183
|
fallback = false
|
|
@@ -1881,14 +1879,16 @@
|
|
|
1881
1879
|
});
|
|
1882
1880
|
var Col = function(props) {
|
|
1883
1881
|
var _$_object_spread = _object_spread({}, defaultProps$1u, props), className = _$_object_spread.className, style = _$_object_spread.style, span = _$_object_spread.span, offset = _$_object_spread.offset, children = _$_object_spread.children, isFirst = _$_object_spread.isFirst, isLast = _$_object_spread.isLast, onClick = _$_object_spread.onClick;
|
|
1884
|
-
var _useState = _sliced_to_array(React.useState(""), 2), colName = _useState[0], setColName = _useState[1];
|
|
1885
|
-
var _useState1 = _sliced_to_array(React.useState({}), 2), colStyle = _useState1[0], setColStyle = _useState1[1];
|
|
1886
1882
|
var gutter = React.useContext(DataContext$1).gutter;
|
|
1887
|
-
var classs = function() {
|
|
1883
|
+
var classs = React.useMemo(function() {
|
|
1888
1884
|
var prefixCls2 = "nut-col";
|
|
1889
1885
|
return "".concat(prefixCls2, " ").concat(prefixCls2, "-").concat(span, " ").concat(gutter ? "".concat(prefixCls2, "-gutter") : "", " ").concat(prefixCls2, "-offset-").concat(offset);
|
|
1890
|
-
}
|
|
1891
|
-
|
|
1886
|
+
}, [
|
|
1887
|
+
offset,
|
|
1888
|
+
span,
|
|
1889
|
+
gutter
|
|
1890
|
+
]);
|
|
1891
|
+
var getStyle = React.useMemo(function() {
|
|
1892
1892
|
var style2 = {};
|
|
1893
1893
|
if (!isFirst) {
|
|
1894
1894
|
style2.paddingLeft = pxTransform(gutter / 2);
|
|
@@ -1897,14 +1897,19 @@
|
|
|
1897
1897
|
style2.paddingRight = pxTransform(gutter / 2);
|
|
1898
1898
|
}
|
|
1899
1899
|
return style2;
|
|
1900
|
-
}
|
|
1900
|
+
}, [
|
|
1901
|
+
isFirst,
|
|
1902
|
+
isLast,
|
|
1903
|
+
gutter
|
|
1904
|
+
]);
|
|
1905
|
+
var _useState = _sliced_to_array(React.useState(classs), 2), colName = _useState[0], setColName = _useState[1];
|
|
1906
|
+
var _useState1 = _sliced_to_array(React.useState(getStyle), 2), colStyle = _useState1[0], setColStyle = _useState1[1];
|
|
1901
1907
|
React.useEffect(function() {
|
|
1902
1908
|
setColName(classs);
|
|
1903
1909
|
setColStyle(getStyle);
|
|
1904
1910
|
}, [
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
gutter
|
|
1911
|
+
classs,
|
|
1912
|
+
getStyle
|
|
1908
1913
|
]);
|
|
1909
1914
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
1910
1915
|
className: classNames(colName, className),
|
|
@@ -2224,12 +2229,10 @@
|
|
|
2224
2229
|
height: height2
|
|
2225
2230
|
};
|
|
2226
2231
|
}
|
|
2227
|
-
var getRectInMultiPlatform =
|
|
2228
|
-
var
|
|
2229
|
-
|
|
2230
|
-
var _arguments = arguments;
|
|
2232
|
+
var getRectInMultiPlatform = function(element) {
|
|
2233
|
+
var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
2234
|
+
return _async_to_generator(function() {
|
|
2231
2235
|
return __generator(this, function(_state) {
|
|
2232
|
-
harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
|
|
2233
2236
|
if (element) {
|
|
2234
2237
|
if (inBrowser) {
|
|
2235
2238
|
return [
|
|
@@ -2259,17 +2262,12 @@
|
|
|
2259
2262
|
Promise.resolve(makeRect(0, 0))
|
|
2260
2263
|
];
|
|
2261
2264
|
});
|
|
2262
|
-
});
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
var getRectInMultiPlatformWithoutCache = /* @__PURE__ */ function() {
|
|
2268
|
-
var _ref = _async_to_generator(function(element) {
|
|
2269
|
-
var harmonyId;
|
|
2270
|
-
var _arguments = arguments;
|
|
2265
|
+
})();
|
|
2266
|
+
};
|
|
2267
|
+
var getRectInMultiPlatformWithoutCache = function(element) {
|
|
2268
|
+
var harmonyId = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "";
|
|
2269
|
+
return _async_to_generator(function() {
|
|
2271
2270
|
return __generator(this, function(_state) {
|
|
2272
|
-
harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
|
|
2273
2271
|
if (element) {
|
|
2274
2272
|
if (inBrowser) {
|
|
2275
2273
|
return [
|
|
@@ -2292,11 +2290,8 @@
|
|
|
2292
2290
|
Promise.resolve(makeRect(0, 0))
|
|
2293
2291
|
];
|
|
2294
2292
|
});
|
|
2295
|
-
});
|
|
2296
|
-
|
|
2297
|
-
return _ref.apply(this, arguments);
|
|
2298
|
-
};
|
|
2299
|
-
}();
|
|
2293
|
+
})();
|
|
2294
|
+
};
|
|
2300
2295
|
var defaultProps$1r = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
2301
2296
|
position: "top",
|
|
2302
2297
|
zIndex: 900
|
|
@@ -2365,8 +2360,8 @@
|
|
|
2365
2360
|
threshold,
|
|
2366
2361
|
zIndex
|
|
2367
2362
|
]);
|
|
2368
|
-
var handleScroll =
|
|
2369
|
-
|
|
2363
|
+
var handleScroll = function(scrollTop) {
|
|
2364
|
+
return _async_to_generator(function() {
|
|
2370
2365
|
var curRootRect, stickyRect, containerRect, difference, curTransform, curFixed, windowHeight;
|
|
2371
2366
|
return __generator(this, function(_state) {
|
|
2372
2367
|
switch (_state.label) {
|
|
@@ -2434,11 +2429,8 @@
|
|
|
2434
2429
|
];
|
|
2435
2430
|
}
|
|
2436
2431
|
});
|
|
2437
|
-
});
|
|
2438
|
-
|
|
2439
|
-
return _ref2.apply(this, arguments);
|
|
2440
|
-
};
|
|
2441
|
-
}();
|
|
2432
|
+
})();
|
|
2433
|
+
};
|
|
2442
2434
|
var getElement = React.useCallback(function() {
|
|
2443
2435
|
return getScrollParent(rootRef.current);
|
|
2444
2436
|
}, []);
|
|
@@ -2915,16 +2907,7 @@
|
|
|
2915
2907
|
return months.slice(preDates - days);
|
|
2916
2908
|
};
|
|
2917
2909
|
var ENV_TYPE$1 = {
|
|
2918
|
-
|
|
2919
|
-
SWAN: "SWAN",
|
|
2920
|
-
ALIPAY: "ALIPAY",
|
|
2921
|
-
TT: "TT",
|
|
2922
|
-
QQ: "QQ",
|
|
2923
|
-
JD: "JD",
|
|
2924
|
-
WEB: "WEB",
|
|
2925
|
-
RN: "RN",
|
|
2926
|
-
HARMONY: "HARMONY",
|
|
2927
|
-
QUICKAPP: "QUICKAPP"
|
|
2910
|
+
WEB: "WEB"
|
|
2928
2911
|
};
|
|
2929
2912
|
var getRectById = function(id) {
|
|
2930
2913
|
return new Promise(function(resolve, reject) {
|
|
@@ -3146,10 +3129,7 @@
|
|
|
3146
3129
|
return unmountComponentAtNode(container);
|
|
3147
3130
|
}
|
|
3148
3131
|
function concurrentUnmount(container) {
|
|
3149
|
-
return
|
|
3150
|
-
}
|
|
3151
|
-
function _concurrentUnmount() {
|
|
3152
|
-
_concurrentUnmount = _async_to_generator(function(container) {
|
|
3132
|
+
return _async_to_generator(function() {
|
|
3153
3133
|
return __generator(this, function(_state) {
|
|
3154
3134
|
return [
|
|
3155
3135
|
2,
|
|
@@ -3160,8 +3140,7 @@
|
|
|
3160
3140
|
})
|
|
3161
3141
|
];
|
|
3162
3142
|
});
|
|
3163
|
-
});
|
|
3164
|
-
return _concurrentUnmount.apply(this, arguments);
|
|
3143
|
+
})();
|
|
3165
3144
|
}
|
|
3166
3145
|
function unmount(container) {
|
|
3167
3146
|
if (createRoot) {
|
|
@@ -3463,8 +3442,8 @@
|
|
|
3463
3442
|
}
|
|
3464
3443
|
});
|
|
3465
3444
|
};
|
|
3466
|
-
var scrollTo =
|
|
3467
|
-
|
|
3445
|
+
var scrollTo = function(index2) {
|
|
3446
|
+
return _async_to_generator(function() {
|
|
3468
3447
|
var cacheIndex, scrollTop2;
|
|
3469
3448
|
return __generator(this, function(_state) {
|
|
3470
3449
|
switch (_state.label) {
|
|
@@ -3504,11 +3483,8 @@
|
|
|
3504
3483
|
];
|
|
3505
3484
|
}
|
|
3506
3485
|
});
|
|
3507
|
-
});
|
|
3508
|
-
|
|
3509
|
-
return _ref2.apply(this, arguments);
|
|
3510
|
-
};
|
|
3511
|
-
}();
|
|
3486
|
+
})();
|
|
3487
|
+
};
|
|
3512
3488
|
var touchMove = function(e) {
|
|
3513
3489
|
var firstTouch = e.touches[0];
|
|
3514
3490
|
touchState.current.y2 = firstTouch.pageY;
|
|
@@ -3687,8 +3663,8 @@
|
|
|
3687
3663
|
getPositionStyle();
|
|
3688
3664
|
}
|
|
3689
3665
|
}, []);
|
|
3690
|
-
var getPositionStyle =
|
|
3691
|
-
|
|
3666
|
+
var getPositionStyle = function() {
|
|
3667
|
+
return _async_to_generator(function() {
|
|
3692
3668
|
var style2;
|
|
3693
3669
|
return __generator(this, function(_state) {
|
|
3694
3670
|
style2 = _define_property({
|
|
@@ -3699,11 +3675,8 @@
|
|
|
3699
3675
|
2
|
|
3700
3676
|
];
|
|
3701
3677
|
});
|
|
3702
|
-
});
|
|
3703
|
-
|
|
3704
|
-
return _ref.apply(this, arguments);
|
|
3705
|
-
};
|
|
3706
|
-
}();
|
|
3678
|
+
})();
|
|
3679
|
+
};
|
|
3707
3680
|
var _obj1;
|
|
3708
3681
|
return /* @__PURE__ */ React.createElement(components.View, {
|
|
3709
3682
|
className: classes,
|
|
@@ -4491,8 +4464,8 @@
|
|
|
4491
4464
|
}
|
|
4492
4465
|
onOpen && onOpen();
|
|
4493
4466
|
};
|
|
4494
|
-
var getPopupHeight =
|
|
4495
|
-
|
|
4467
|
+
var getPopupHeight = function() {
|
|
4468
|
+
return _async_to_generator(function() {
|
|
4496
4469
|
var _nodeRef_current, rect, height2;
|
|
4497
4470
|
return __generator(this, function(_state) {
|
|
4498
4471
|
switch (_state.label) {
|
|
@@ -4510,11 +4483,8 @@
|
|
|
4510
4483
|
];
|
|
4511
4484
|
}
|
|
4512
4485
|
});
|
|
4513
|
-
});
|
|
4514
|
-
|
|
4515
|
-
return _ref.apply(this, arguments);
|
|
4516
|
-
};
|
|
4517
|
-
}();
|
|
4486
|
+
})();
|
|
4487
|
+
};
|
|
4518
4488
|
React.useEffect(function() {
|
|
4519
4489
|
if (innerVisible && topNodeRef.current && nodeRef.current) {
|
|
4520
4490
|
Taro.nextTick(function() {
|
|
@@ -4581,8 +4551,8 @@
|
|
|
4581
4551
|
return renderCloseIcon();
|
|
4582
4552
|
}
|
|
4583
4553
|
};
|
|
4584
|
-
var handleTouchStart =
|
|
4585
|
-
|
|
4554
|
+
var handleTouchStart = function(event) {
|
|
4555
|
+
return _async_to_generator(function() {
|
|
4586
4556
|
var _nodeRef_current, _rootRect_current, e, rect;
|
|
4587
4557
|
return __generator(this, function(_state) {
|
|
4588
4558
|
switch (_state.label) {
|
|
@@ -4608,11 +4578,8 @@
|
|
|
4608
4578
|
];
|
|
4609
4579
|
}
|
|
4610
4580
|
});
|
|
4611
|
-
});
|
|
4612
|
-
|
|
4613
|
-
return _ref.apply(this, arguments);
|
|
4614
|
-
};
|
|
4615
|
-
}();
|
|
4581
|
+
})();
|
|
4582
|
+
};
|
|
4616
4583
|
var handleTouchMove = function(event) {
|
|
4617
4584
|
if (position2 !== "bottom" || !resizable || !nodeRef.current || !rootRect.current) return;
|
|
4618
4585
|
var e = event;
|
|
@@ -5292,8 +5259,8 @@
|
|
|
5292
5259
|
outerOptions
|
|
5293
5260
|
]);
|
|
5294
5261
|
React.useEffect(function() {
|
|
5295
|
-
var load =
|
|
5296
|
-
|
|
5262
|
+
var load = function() {
|
|
5263
|
+
return _async_to_generator(function() {
|
|
5297
5264
|
var parent2, error;
|
|
5298
5265
|
return __generator(this, function(_state) {
|
|
5299
5266
|
switch (_state.label) {
|
|
@@ -5311,8 +5278,8 @@
|
|
|
5311
5278
|
]);
|
|
5312
5279
|
return [
|
|
5313
5280
|
4,
|
|
5314
|
-
innerValue.reduce(
|
|
5315
|
-
|
|
5281
|
+
innerValue.reduce(function(promise, val2, key2) {
|
|
5282
|
+
return _async_to_generator(function() {
|
|
5316
5283
|
var pane, parent3, node;
|
|
5317
5284
|
return __generator(this, function(_state2) {
|
|
5318
5285
|
switch (_state2.label) {
|
|
@@ -5352,11 +5319,8 @@
|
|
|
5352
5319
|
];
|
|
5353
5320
|
}
|
|
5354
5321
|
});
|
|
5355
|
-
});
|
|
5356
|
-
|
|
5357
|
-
return _ref2.apply(this, arguments);
|
|
5358
|
-
};
|
|
5359
|
-
}(), Promise.resolve(parent2))
|
|
5322
|
+
})();
|
|
5323
|
+
}, Promise.resolve(parent2))
|
|
5360
5324
|
];
|
|
5361
5325
|
case 2:
|
|
5362
5326
|
_state.sent();
|
|
@@ -5378,17 +5342,14 @@
|
|
|
5378
5342
|
];
|
|
5379
5343
|
}
|
|
5380
5344
|
});
|
|
5381
|
-
});
|
|
5382
|
-
|
|
5383
|
-
return _ref.apply(this, arguments);
|
|
5384
|
-
};
|
|
5385
|
-
}();
|
|
5345
|
+
})();
|
|
5346
|
+
};
|
|
5386
5347
|
if (lazy) load();
|
|
5387
5348
|
}, [
|
|
5388
5349
|
lazy
|
|
5389
5350
|
]);
|
|
5390
|
-
var chooseItem =
|
|
5391
|
-
|
|
5351
|
+
var chooseItem = function(pane, levelIndex) {
|
|
5352
|
+
return _async_to_generator(function() {
|
|
5392
5353
|
var nextValue, nextPathNodes, _props_onPathChange, asyncOptions;
|
|
5393
5354
|
return __generator(this, function(_state) {
|
|
5394
5355
|
switch (_state.label) {
|
|
@@ -5440,11 +5401,8 @@
|
|
|
5440
5401
|
];
|
|
5441
5402
|
}
|
|
5442
5403
|
});
|
|
5443
|
-
});
|
|
5444
|
-
|
|
5445
|
-
return _ref.apply(this, arguments);
|
|
5446
|
-
};
|
|
5447
|
-
}();
|
|
5404
|
+
})();
|
|
5405
|
+
};
|
|
5448
5406
|
var renderCascaderItem = function(item, levelIndex) {
|
|
5449
5407
|
var _item_pane;
|
|
5450
5408
|
return (_item_pane = item.pane) === null || _item_pane === void 0 ? void 0 : _item_pane.map(function(pane, index2) {
|
|
@@ -7343,8 +7301,8 @@
|
|
|
7343
7301
|
setTouchTime(0);
|
|
7344
7302
|
selectValue(scrollDistance);
|
|
7345
7303
|
};
|
|
7346
|
-
var getReactHeight =
|
|
7347
|
-
|
|
7304
|
+
var getReactHeight = function() {
|
|
7305
|
+
return _async_to_generator(function() {
|
|
7348
7306
|
var placeholder, placeholderHeight, error;
|
|
7349
7307
|
return __generator(this, function(_state) {
|
|
7350
7308
|
switch (_state.label) {
|
|
@@ -7379,11 +7337,8 @@
|
|
|
7379
7337
|
];
|
|
7380
7338
|
}
|
|
7381
7339
|
});
|
|
7382
|
-
});
|
|
7383
|
-
|
|
7384
|
-
return _ref.apply(this, arguments);
|
|
7385
|
-
};
|
|
7386
|
-
}();
|
|
7340
|
+
})();
|
|
7341
|
+
};
|
|
7387
7342
|
React.useEffect(function() {
|
|
7388
7343
|
var element = pickerRollerRef.current;
|
|
7389
7344
|
var currentLineSpacing;
|
|
@@ -7527,8 +7482,6 @@
|
|
|
7527
7482
|
if (!options2.length) return [];
|
|
7528
7483
|
var formatted = [];
|
|
7529
7484
|
var columnOptions = {
|
|
7530
|
-
label: "",
|
|
7531
|
-
value: "",
|
|
7532
7485
|
children: options2
|
|
7533
7486
|
};
|
|
7534
7487
|
var columnIndex = 0;
|
|
@@ -9288,7 +9241,6 @@
|
|
|
9288
9241
|
var _this = this;
|
|
9289
9242
|
var _this1 = this;
|
|
9290
9243
|
_class_call_check(this, FormStore2);
|
|
9291
|
-
var _this2 = this;
|
|
9292
9244
|
_define_property(this, "initialValues", {});
|
|
9293
9245
|
_define_property(this, "updateList", []);
|
|
9294
9246
|
_define_property(this, "store", {});
|
|
@@ -9357,8 +9309,8 @@
|
|
|
9357
9309
|
_define_property(this, "setCallback", function(callback) {
|
|
9358
9310
|
_this.callbacks = _object_spread({}, _this.callbacks, callback);
|
|
9359
9311
|
});
|
|
9360
|
-
_define_property(this, "validateEntities",
|
|
9361
|
-
|
|
9312
|
+
_define_property(this, "validateEntities", function(entity, errs) {
|
|
9313
|
+
return _async_to_generator(function() {
|
|
9362
9314
|
var _entity_props, name2, _entity_props_rules, rules2, descriptor, validator, _this_store, param, errors, _errs;
|
|
9363
9315
|
return __generator(this, function(_state) {
|
|
9364
9316
|
switch (_state.label) {
|
|
@@ -9392,7 +9344,7 @@
|
|
|
9392
9344
|
]);
|
|
9393
9345
|
return [
|
|
9394
9346
|
4,
|
|
9395
|
-
validator.validate(_define_property({}, name2, (_this_store =
|
|
9347
|
+
validator.validate(_define_property({}, name2, (_this_store = this.store) === null || _this_store === void 0 ? void 0 : _this_store[name2]))
|
|
9396
9348
|
];
|
|
9397
9349
|
case 2:
|
|
9398
9350
|
_state.sent();
|
|
@@ -9405,7 +9357,7 @@
|
|
|
9405
9357
|
errors = param.errors;
|
|
9406
9358
|
if (errors) {
|
|
9407
9359
|
(_errs = errs).push.apply(_errs, _to_consumable_array(errors));
|
|
9408
|
-
|
|
9360
|
+
this.errors[name2] = errors;
|
|
9409
9361
|
}
|
|
9410
9362
|
return [
|
|
9411
9363
|
3,
|
|
@@ -9413,7 +9365,7 @@
|
|
|
9413
9365
|
];
|
|
9414
9366
|
case 4:
|
|
9415
9367
|
if (!errs || errs.length === 0) {
|
|
9416
|
-
|
|
9368
|
+
this.errors[name2] = [];
|
|
9417
9369
|
}
|
|
9418
9370
|
return [
|
|
9419
9371
|
7
|
|
@@ -9425,22 +9377,20 @@
|
|
|
9425
9377
|
];
|
|
9426
9378
|
}
|
|
9427
9379
|
});
|
|
9428
|
-
});
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
_define_property(this, "validateFields", /* @__PURE__ */ function() {
|
|
9434
|
-
var _ref = _async_to_generator(function(nameList) {
|
|
9435
|
-
var filterEntities, errs;
|
|
9380
|
+
}).call(_this);
|
|
9381
|
+
});
|
|
9382
|
+
_define_property(this, "validateFields", function(nameList) {
|
|
9383
|
+
return _async_to_generator(function() {
|
|
9384
|
+
var _this2, filterEntities, errs;
|
|
9436
9385
|
return __generator(this, function(_state) {
|
|
9437
9386
|
switch (_state.label) {
|
|
9438
9387
|
case 0:
|
|
9388
|
+
_this2 = this;
|
|
9439
9389
|
filterEntities = [];
|
|
9440
9390
|
if (!nameList || nameList.length === 0) {
|
|
9441
|
-
filterEntities =
|
|
9391
|
+
filterEntities = this.fieldEntities;
|
|
9442
9392
|
} else {
|
|
9443
|
-
filterEntities =
|
|
9393
|
+
filterEntities = this.fieldEntities.filter(function(param) {
|
|
9444
9394
|
var name2 = param.props.name;
|
|
9445
9395
|
return nameList.includes(name2);
|
|
9446
9396
|
});
|
|
@@ -9448,14 +9398,14 @@
|
|
|
9448
9398
|
errs = [];
|
|
9449
9399
|
return [
|
|
9450
9400
|
4,
|
|
9451
|
-
Promise.all(filterEntities.map(
|
|
9452
|
-
|
|
9401
|
+
Promise.all(filterEntities.map(function(entity) {
|
|
9402
|
+
return _async_to_generator(function() {
|
|
9453
9403
|
return __generator(this, function(_state2) {
|
|
9454
9404
|
switch (_state2.label) {
|
|
9455
9405
|
case 0:
|
|
9456
9406
|
return [
|
|
9457
9407
|
4,
|
|
9458
|
-
|
|
9408
|
+
this.validateEntities(entity, errs)
|
|
9459
9409
|
];
|
|
9460
9410
|
case 1:
|
|
9461
9411
|
_state2.sent();
|
|
@@ -9464,11 +9414,8 @@
|
|
|
9464
9414
|
];
|
|
9465
9415
|
}
|
|
9466
9416
|
});
|
|
9467
|
-
});
|
|
9468
|
-
|
|
9469
|
-
return _ref2.apply(this, arguments);
|
|
9470
|
-
};
|
|
9471
|
-
}()))
|
|
9417
|
+
}).call(_this2);
|
|
9418
|
+
}))
|
|
9472
9419
|
];
|
|
9473
9420
|
case 1:
|
|
9474
9421
|
_state.sent();
|
|
@@ -9478,33 +9425,32 @@
|
|
|
9478
9425
|
];
|
|
9479
9426
|
}
|
|
9480
9427
|
});
|
|
9481
|
-
});
|
|
9482
|
-
|
|
9483
|
-
|
|
9484
|
-
|
|
9485
|
-
|
|
9486
|
-
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9490
|
-
|
|
9491
|
-
|
|
9492
|
-
|
|
9493
|
-
|
|
9494
|
-
|
|
9495
|
-
|
|
9496
|
-
|
|
9497
|
-
|
|
9498
|
-
|
|
9499
|
-
|
|
9500
|
-
|
|
9501
|
-
|
|
9502
|
-
|
|
9503
|
-
|
|
9504
|
-
|
|
9505
|
-
|
|
9506
|
-
|
|
9507
|
-
}));
|
|
9428
|
+
}).call(_this);
|
|
9429
|
+
});
|
|
9430
|
+
_define_property(this, "submit", function() {
|
|
9431
|
+
return _async_to_generator(function() {
|
|
9432
|
+
var errors, _this_callbacks_onFinish, _this_callbacks, _this_callbacks_onFinishFailed, _this_callbacks1;
|
|
9433
|
+
return __generator(this, function(_state) {
|
|
9434
|
+
switch (_state.label) {
|
|
9435
|
+
case 0:
|
|
9436
|
+
return [
|
|
9437
|
+
4,
|
|
9438
|
+
this.validateFields()
|
|
9439
|
+
];
|
|
9440
|
+
case 1:
|
|
9441
|
+
errors = _state.sent();
|
|
9442
|
+
if (errors.length === 0) {
|
|
9443
|
+
(_this_callbacks_onFinish = (_this_callbacks = this.callbacks).onFinish) === null || _this_callbacks_onFinish === void 0 ? void 0 : _this_callbacks_onFinish.call(_this_callbacks, this.store);
|
|
9444
|
+
} else if (errors.length > 0) {
|
|
9445
|
+
(_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);
|
|
9446
|
+
}
|
|
9447
|
+
return [
|
|
9448
|
+
2
|
|
9449
|
+
];
|
|
9450
|
+
}
|
|
9451
|
+
});
|
|
9452
|
+
}).call(_this);
|
|
9453
|
+
});
|
|
9508
9454
|
_define_property(this, "resetFields", function(namePaths) {
|
|
9509
9455
|
if (namePaths && namePaths.length) {
|
|
9510
9456
|
namePaths.forEach(function(path) {
|
|
@@ -10009,16 +9955,7 @@
|
|
|
10009
9955
|
return value2.replace(regExp, "");
|
|
10010
9956
|
}
|
|
10011
9957
|
var ENV_TYPE = {
|
|
10012
|
-
|
|
10013
|
-
SWAN: "SWAN",
|
|
10014
|
-
ALIPAY: "ALIPAY",
|
|
10015
|
-
TT: "TT",
|
|
10016
|
-
QQ: "QQ",
|
|
10017
|
-
JD: "JD",
|
|
10018
|
-
WEB: "WEB",
|
|
10019
|
-
RN: "RN",
|
|
10020
|
-
HARMONY: "HARMONY",
|
|
10021
|
-
QUICKAPP: "QUICKAPP"
|
|
9958
|
+
WEB: "WEB"
|
|
10022
9959
|
};
|
|
10023
9960
|
var defaultProps$Y = _object_spread_props(_object_spread({}, ComponentDefaults), {
|
|
10024
9961
|
type: "text",
|
|
@@ -10293,8 +10230,8 @@
|
|
|
10293
10230
|
var stepAmount = parseFloat(stepValue) * symbol;
|
|
10294
10231
|
return (currentValue * dig + stepAmount * dig) / dig;
|
|
10295
10232
|
};
|
|
10296
|
-
var update =
|
|
10297
|
-
|
|
10233
|
+
var update = function(negative, e) {
|
|
10234
|
+
return _async_to_generator(function() {
|
|
10298
10235
|
var shouldOverBoundary, maybeResume, nextValue;
|
|
10299
10236
|
return __generator(this, function(_state) {
|
|
10300
10237
|
switch (_state.label) {
|
|
@@ -10325,13 +10262,10 @@
|
|
|
10325
10262
|
];
|
|
10326
10263
|
}
|
|
10327
10264
|
});
|
|
10328
|
-
});
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
}();
|
|
10333
|
-
var handleReduce = /* @__PURE__ */ function() {
|
|
10334
|
-
var _ref2 = _async_to_generator(function(e) {
|
|
10265
|
+
})();
|
|
10266
|
+
};
|
|
10267
|
+
var handleReduce = function(e) {
|
|
10268
|
+
return _async_to_generator(function() {
|
|
10335
10269
|
return __generator(this, function(_state) {
|
|
10336
10270
|
switch (_state.label) {
|
|
10337
10271
|
case 0:
|
|
@@ -10349,13 +10283,10 @@
|
|
|
10349
10283
|
];
|
|
10350
10284
|
}
|
|
10351
10285
|
});
|
|
10352
|
-
});
|
|
10353
|
-
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
}();
|
|
10357
|
-
var handlePlus = /* @__PURE__ */ function() {
|
|
10358
|
-
var _ref2 = _async_to_generator(function(e) {
|
|
10286
|
+
})();
|
|
10287
|
+
};
|
|
10288
|
+
var handlePlus = function(e) {
|
|
10289
|
+
return _async_to_generator(function() {
|
|
10359
10290
|
return __generator(this, function(_state) {
|
|
10360
10291
|
switch (_state.label) {
|
|
10361
10292
|
case 0:
|
|
@@ -10373,18 +10304,15 @@
|
|
|
10373
10304
|
];
|
|
10374
10305
|
}
|
|
10375
10306
|
});
|
|
10376
|
-
});
|
|
10377
|
-
|
|
10378
|
-
return _ref2.apply(this, arguments);
|
|
10379
|
-
};
|
|
10380
|
-
}();
|
|
10307
|
+
})();
|
|
10308
|
+
};
|
|
10381
10309
|
var parseValue = function(text2) {
|
|
10382
10310
|
if (text2 === "") return null;
|
|
10383
10311
|
if (text2 === "-") return null;
|
|
10384
10312
|
return text2;
|
|
10385
10313
|
};
|
|
10386
|
-
var handleInputChange =
|
|
10387
|
-
|
|
10314
|
+
var handleInputChange = function(e) {
|
|
10315
|
+
return _async_to_generator(function() {
|
|
10388
10316
|
var valueStr, maybeResume;
|
|
10389
10317
|
return __generator(this, function(_state) {
|
|
10390
10318
|
switch (_state.label) {
|
|
@@ -10414,11 +10342,8 @@
|
|
|
10414
10342
|
];
|
|
10415
10343
|
}
|
|
10416
10344
|
});
|
|
10417
|
-
});
|
|
10418
|
-
|
|
10419
|
-
return _ref2.apply(this, arguments);
|
|
10420
|
-
};
|
|
10421
|
-
}();
|
|
10345
|
+
})();
|
|
10346
|
+
};
|
|
10422
10347
|
var handleFocus = function(e) {
|
|
10423
10348
|
setFocused(true);
|
|
10424
10349
|
setInputValue(shadowValue !== void 0 && shadowValue !== null ? bound(Number(shadowValue), Number(min), Number(max)).toString() : "");
|
|
@@ -10472,7 +10397,7 @@
|
|
|
10472
10397
|
if (null == r) return {};
|
|
10473
10398
|
var t = {};
|
|
10474
10399
|
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
10475
|
-
if (e.
|
|
10400
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
10476
10401
|
t[n] = r[n];
|
|
10477
10402
|
}
|
|
10478
10403
|
return t;
|
|
@@ -12184,28 +12109,30 @@
|
|
|
12184
12109
|
show2
|
|
12185
12110
|
]);
|
|
12186
12111
|
var getParentOffset = React.useCallback(function() {
|
|
12187
|
-
setTimeout(
|
|
12188
|
-
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12207
|
-
|
|
12208
|
-
|
|
12112
|
+
setTimeout(function() {
|
|
12113
|
+
return _async_to_generator(function() {
|
|
12114
|
+
var p, rect;
|
|
12115
|
+
return __generator(this, function(_state) {
|
|
12116
|
+
switch (_state.label) {
|
|
12117
|
+
case 0:
|
|
12118
|
+
p = parent2.menuRef.current;
|
|
12119
|
+
return [
|
|
12120
|
+
4,
|
|
12121
|
+
getRectInMultiPlatform(p)
|
|
12122
|
+
];
|
|
12123
|
+
case 1:
|
|
12124
|
+
rect = _state.sent();
|
|
12125
|
+
setPosition({
|
|
12126
|
+
height: rect.height,
|
|
12127
|
+
top: rect.top
|
|
12128
|
+
});
|
|
12129
|
+
return [
|
|
12130
|
+
2
|
|
12131
|
+
];
|
|
12132
|
+
}
|
|
12133
|
+
});
|
|
12134
|
+
})();
|
|
12135
|
+
}, 100);
|
|
12209
12136
|
}, [
|
|
12210
12137
|
parent2.menuRef
|
|
12211
12138
|
]);
|
|
@@ -13087,8 +13014,8 @@
|
|
|
13087
13014
|
onEnd,
|
|
13088
13015
|
setInnerValue
|
|
13089
13016
|
]);
|
|
13090
|
-
var handleClick = React.useCallback(
|
|
13091
|
-
|
|
13017
|
+
var handleClick = React.useCallback(function(event) {
|
|
13018
|
+
return _async_to_generator(function() {
|
|
13092
13019
|
var _event_detail, rect, _event_detail_x, x, delta, total, _event_detail1, _event_detail_y, y, value3, _innerValue, left2, right2, middle;
|
|
13093
13020
|
return __generator(this, function(_state) {
|
|
13094
13021
|
switch (_state.label) {
|
|
@@ -13140,11 +13067,8 @@
|
|
|
13140
13067
|
];
|
|
13141
13068
|
}
|
|
13142
13069
|
});
|
|
13143
|
-
});
|
|
13144
|
-
|
|
13145
|
-
return _ref.apply(this, arguments);
|
|
13146
|
-
};
|
|
13147
|
-
}(), [
|
|
13070
|
+
})();
|
|
13071
|
+
}, [
|
|
13148
13072
|
innerValue,
|
|
13149
13073
|
disabled,
|
|
13150
13074
|
isRange,
|
|
@@ -13154,8 +13078,8 @@
|
|
|
13154
13078
|
vertical
|
|
13155
13079
|
]);
|
|
13156
13080
|
Taro.useReady(function() {
|
|
13157
|
-
var getRootRect =
|
|
13158
|
-
|
|
13081
|
+
var getRootRect = function() {
|
|
13082
|
+
return _async_to_generator(function() {
|
|
13159
13083
|
var rect;
|
|
13160
13084
|
return __generator(this, function(_state) {
|
|
13161
13085
|
switch (_state.label) {
|
|
@@ -13178,11 +13102,8 @@
|
|
|
13178
13102
|
];
|
|
13179
13103
|
}
|
|
13180
13104
|
});
|
|
13181
|
-
});
|
|
13182
|
-
|
|
13183
|
-
return _ref.apply(this, arguments);
|
|
13184
|
-
};
|
|
13185
|
-
}();
|
|
13105
|
+
})();
|
|
13106
|
+
};
|
|
13186
13107
|
Taro.nextTick(function() {
|
|
13187
13108
|
getRootRect();
|
|
13188
13109
|
});
|
|
@@ -13204,8 +13125,8 @@
|
|
|
13204
13125
|
isRange,
|
|
13205
13126
|
touch
|
|
13206
13127
|
]);
|
|
13207
|
-
var onTouchMove = React.useCallback(
|
|
13208
|
-
|
|
13128
|
+
var onTouchMove = React.useCallback(function(event) {
|
|
13129
|
+
return _async_to_generator(function() {
|
|
13209
13130
|
var handleMove;
|
|
13210
13131
|
return __generator(this, function(_state) {
|
|
13211
13132
|
if (disabled || !root2.current) return [
|
|
@@ -13216,8 +13137,8 @@
|
|
|
13216
13137
|
dragStatusRef.current = "draging";
|
|
13217
13138
|
}
|
|
13218
13139
|
touch.move(event);
|
|
13219
|
-
handleMove =
|
|
13220
|
-
|
|
13140
|
+
handleMove = function() {
|
|
13141
|
+
return _async_to_generator(function() {
|
|
13221
13142
|
var delta, total, diff, newValue;
|
|
13222
13143
|
return __generator(this, function(_state2) {
|
|
13223
13144
|
if (!rootRect.current) return [
|
|
@@ -13243,21 +13164,15 @@
|
|
|
13243
13164
|
2
|
|
13244
13165
|
];
|
|
13245
13166
|
});
|
|
13246
|
-
});
|
|
13247
|
-
|
|
13248
|
-
return _ref2.apply(this, arguments);
|
|
13249
|
-
};
|
|
13250
|
-
}();
|
|
13167
|
+
})();
|
|
13168
|
+
};
|
|
13251
13169
|
requestAnimationFrame(handleMove);
|
|
13252
13170
|
return [
|
|
13253
13171
|
2
|
|
13254
13172
|
];
|
|
13255
13173
|
});
|
|
13256
|
-
});
|
|
13257
|
-
|
|
13258
|
-
return _ref.apply(this, arguments);
|
|
13259
|
-
};
|
|
13260
|
-
}(), [
|
|
13174
|
+
})();
|
|
13175
|
+
}, [
|
|
13261
13176
|
disabled,
|
|
13262
13177
|
isRange,
|
|
13263
13178
|
onStart,
|
|
@@ -14167,8 +14082,8 @@
|
|
|
14167
14082
|
(_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)
|
|
14168
14083
|
]);
|
|
14169
14084
|
};
|
|
14170
|
-
var onClick =
|
|
14171
|
-
|
|
14085
|
+
var onClick = function() {
|
|
14086
|
+
return _async_to_generator(function() {
|
|
14172
14087
|
return __generator(this, function(_state) {
|
|
14173
14088
|
switch (_state.label) {
|
|
14174
14089
|
case 0:
|
|
@@ -14212,11 +14127,8 @@
|
|
|
14212
14127
|
];
|
|
14213
14128
|
}
|
|
14214
14129
|
});
|
|
14215
|
-
});
|
|
14216
|
-
|
|
14217
|
-
return _ref2.apply(this, arguments);
|
|
14218
|
-
};
|
|
14219
|
-
}();
|
|
14130
|
+
})();
|
|
14131
|
+
};
|
|
14220
14132
|
var _obj, _obj1;
|
|
14221
14133
|
return /* @__PURE__ */ React.createElement(components.View, _object_spread({
|
|
14222
14134
|
className: classes(),
|
|
@@ -14724,22 +14636,24 @@
|
|
|
14724
14636
|
var classes = classNames(className, "nut-uploader");
|
|
14725
14637
|
React.useImperativeHandle(ref, function() {
|
|
14726
14638
|
return {
|
|
14727
|
-
submit:
|
|
14728
|
-
return
|
|
14729
|
-
|
|
14730
|
-
|
|
14731
|
-
|
|
14732
|
-
|
|
14733
|
-
|
|
14734
|
-
|
|
14735
|
-
|
|
14736
|
-
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14639
|
+
submit: function() {
|
|
14640
|
+
return _async_to_generator(function() {
|
|
14641
|
+
return __generator(this, function(_state) {
|
|
14642
|
+
switch (_state.label) {
|
|
14643
|
+
case 0:
|
|
14644
|
+
return [
|
|
14645
|
+
4,
|
|
14646
|
+
uploadAction(uploadQueue)
|
|
14647
|
+
];
|
|
14648
|
+
case 1:
|
|
14649
|
+
_state.sent();
|
|
14650
|
+
return [
|
|
14651
|
+
2
|
|
14652
|
+
];
|
|
14653
|
+
}
|
|
14654
|
+
});
|
|
14655
|
+
})();
|
|
14656
|
+
},
|
|
14743
14657
|
clear: function() {
|
|
14744
14658
|
clearUploadQueue();
|
|
14745
14659
|
}
|
|
@@ -14812,8 +14726,8 @@
|
|
|
14812
14726
|
});
|
|
14813
14727
|
}
|
|
14814
14728
|
};
|
|
14815
|
-
var uploadAction =
|
|
14816
|
-
|
|
14729
|
+
var uploadAction = function(tasks) {
|
|
14730
|
+
return _async_to_generator(function() {
|
|
14817
14731
|
var taskIds, list;
|
|
14818
14732
|
return __generator(this, function(_state) {
|
|
14819
14733
|
switch (_state.label) {
|
|
@@ -14833,8 +14747,8 @@
|
|
|
14833
14747
|
setFileList(list);
|
|
14834
14748
|
return [
|
|
14835
14749
|
4,
|
|
14836
|
-
Promise.all(tasks.map(
|
|
14837
|
-
|
|
14750
|
+
Promise.all(tasks.map(function(currentTask, index2) {
|
|
14751
|
+
return _async_to_generator(function() {
|
|
14838
14752
|
var result, list2, e, list1;
|
|
14839
14753
|
return __generator(this, function(_state2) {
|
|
14840
14754
|
switch (_state2.label) {
|
|
@@ -14881,11 +14795,8 @@
|
|
|
14881
14795
|
];
|
|
14882
14796
|
}
|
|
14883
14797
|
});
|
|
14884
|
-
});
|
|
14885
|
-
|
|
14886
|
-
return _ref3.apply(this, arguments);
|
|
14887
|
-
};
|
|
14888
|
-
}())).catch(function(errs) {
|
|
14798
|
+
})();
|
|
14799
|
+
})).catch(function(errs) {
|
|
14889
14800
|
return console.error(errs);
|
|
14890
14801
|
})
|
|
14891
14802
|
];
|
|
@@ -14896,14 +14807,11 @@
|
|
|
14896
14807
|
];
|
|
14897
14808
|
}
|
|
14898
14809
|
});
|
|
14899
|
-
});
|
|
14900
|
-
|
|
14901
|
-
return _ref2.apply(this, arguments);
|
|
14902
|
-
};
|
|
14903
|
-
}();
|
|
14810
|
+
})();
|
|
14811
|
+
};
|
|
14904
14812
|
var idCountRef = React.useRef(0);
|
|
14905
|
-
var readFile =
|
|
14906
|
-
|
|
14813
|
+
var readFile = function(files) {
|
|
14814
|
+
return _async_to_generator(function() {
|
|
14907
14815
|
var tasks;
|
|
14908
14816
|
return __generator(this, function(_state) {
|
|
14909
14817
|
switch (_state.label) {
|
|
@@ -14961,11 +14869,8 @@
|
|
|
14961
14869
|
];
|
|
14962
14870
|
}
|
|
14963
14871
|
});
|
|
14964
|
-
});
|
|
14965
|
-
|
|
14966
|
-
return _ref2.apply(this, arguments);
|
|
14967
|
-
};
|
|
14968
|
-
}();
|
|
14872
|
+
})();
|
|
14873
|
+
};
|
|
14969
14874
|
var filterFiles = function(files) {
|
|
14970
14875
|
var maximum = maxCount * 1;
|
|
14971
14876
|
var maximize = maxFileSize * 1;
|
|
@@ -15004,8 +14909,8 @@
|
|
|
15004
14909
|
}
|
|
15005
14910
|
});
|
|
15006
14911
|
};
|
|
15007
|
-
var onChangeMedia =
|
|
15008
|
-
|
|
14912
|
+
var onChangeMedia = function(res) {
|
|
14913
|
+
return _async_to_generator(function() {
|
|
15009
14914
|
var tempFiles, _files;
|
|
15010
14915
|
return __generator(this, function(_state) {
|
|
15011
14916
|
tempFiles = res.tempFiles;
|
|
@@ -15023,13 +14928,10 @@
|
|
|
15023
14928
|
2
|
|
15024
14929
|
];
|
|
15025
14930
|
});
|
|
15026
|
-
});
|
|
15027
|
-
|
|
15028
|
-
|
|
15029
|
-
|
|
15030
|
-
}();
|
|
15031
|
-
var onChangeImage = /* @__PURE__ */ function() {
|
|
15032
|
-
var _ref2 = _async_to_generator(function(res) {
|
|
14931
|
+
})();
|
|
14932
|
+
};
|
|
14933
|
+
var onChangeImage = function(res) {
|
|
14934
|
+
return _async_to_generator(function() {
|
|
15033
14935
|
var tempFiles, _files;
|
|
15034
14936
|
return __generator(this, function(_state) {
|
|
15035
14937
|
tempFiles = res.tempFiles;
|
|
@@ -15047,11 +14949,8 @@
|
|
|
15047
14949
|
2
|
|
15048
14950
|
];
|
|
15049
14951
|
});
|
|
15050
|
-
});
|
|
15051
|
-
|
|
15052
|
-
return _ref2.apply(this, arguments);
|
|
15053
|
-
};
|
|
15054
|
-
}();
|
|
14952
|
+
})();
|
|
14953
|
+
};
|
|
15055
14954
|
var handleItemClick = function(file, index2) {
|
|
15056
14955
|
onFileItemClick === null || onFileItemClick === void 0 ? void 0 : onFileItemClick(file, index2);
|
|
15057
14956
|
};
|
|
@@ -15264,8 +15163,8 @@
|
|
|
15264
15163
|
if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
|
|
15265
15164
|
onCancel();
|
|
15266
15165
|
};
|
|
15267
|
-
var handleOk =
|
|
15268
|
-
|
|
15166
|
+
var handleOk = function(e) {
|
|
15167
|
+
return _async_to_generator(function() {
|
|
15269
15168
|
return __generator(this, function(_state) {
|
|
15270
15169
|
switch (_state.label) {
|
|
15271
15170
|
case 0:
|
|
@@ -15304,11 +15203,8 @@
|
|
|
15304
15203
|
];
|
|
15305
15204
|
}
|
|
15306
15205
|
});
|
|
15307
|
-
});
|
|
15308
|
-
|
|
15309
|
-
return _ref.apply(this, arguments);
|
|
15310
|
-
};
|
|
15311
|
-
}();
|
|
15206
|
+
})();
|
|
15207
|
+
};
|
|
15312
15208
|
var btnClass = hideCancelButton || hideConfirmButton ? "".concat(classPrefix2, "-footer-block") : "";
|
|
15313
15209
|
var renderCancelOfVertical = function() {
|
|
15314
15210
|
return !hideCancelButton && /* @__PURE__ */ React.createElement(components.View, {
|
|
@@ -15452,9 +15348,9 @@
|
|
|
15452
15348
|
var translateX = React.useRef(0);
|
|
15453
15349
|
var translateY = React.useRef(0);
|
|
15454
15350
|
var middleLine = React.useRef(0);
|
|
15455
|
-
var getInfo =
|
|
15456
|
-
|
|
15457
|
-
var el, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight,
|
|
15351
|
+
var getInfo = function() {
|
|
15352
|
+
return _async_to_generator(function() {
|
|
15353
|
+
var el, top, left2, bottom, right2, _getWindowInfo, screenWidth, windowHeight, _ref, width2, height2, dragTop, dragLeft;
|
|
15458
15354
|
return __generator(this, function(_state) {
|
|
15459
15355
|
switch (_state.label) {
|
|
15460
15356
|
case 0:
|
|
@@ -15470,7 +15366,7 @@
|
|
|
15470
15366
|
getRectInMultiPlatform(dragRef.current)
|
|
15471
15367
|
];
|
|
15472
15368
|
case 1:
|
|
15473
|
-
|
|
15369
|
+
_ref = _state.sent(), width2 = _ref.width, height2 = _ref.height, dragTop = _ref.top, dragLeft = _ref.left;
|
|
15474
15370
|
setBoundaryState({
|
|
15475
15371
|
top: -dragTop + top,
|
|
15476
15372
|
left: -dragLeft + left2,
|
|
@@ -15485,11 +15381,8 @@
|
|
|
15485
15381
|
];
|
|
15486
15382
|
}
|
|
15487
15383
|
});
|
|
15488
|
-
});
|
|
15489
|
-
|
|
15490
|
-
return _ref.apply(this, arguments);
|
|
15491
|
-
};
|
|
15492
|
-
}();
|
|
15384
|
+
})();
|
|
15385
|
+
};
|
|
15493
15386
|
var touchStart = function(e) {
|
|
15494
15387
|
onDragStart === null || onDragStart === void 0 ? void 0 : onDragStart();
|
|
15495
15388
|
var touches = e.touches[0];
|
|
@@ -15741,8 +15634,8 @@
|
|
|
15741
15634
|
}
|
|
15742
15635
|
onScroll && onScroll(e.target.scrollTop);
|
|
15743
15636
|
};
|
|
15744
|
-
var lower =
|
|
15745
|
-
|
|
15637
|
+
var lower = function() {
|
|
15638
|
+
return _async_to_generator(function() {
|
|
15746
15639
|
return __generator(this, function(_state) {
|
|
15747
15640
|
switch (_state.label) {
|
|
15748
15641
|
case 0:
|
|
@@ -15765,11 +15658,8 @@
|
|
|
15765
15658
|
];
|
|
15766
15659
|
}
|
|
15767
15660
|
});
|
|
15768
|
-
});
|
|
15769
|
-
|
|
15770
|
-
return _ref2.apply(this, arguments);
|
|
15771
|
-
};
|
|
15772
|
-
}();
|
|
15661
|
+
})();
|
|
15662
|
+
};
|
|
15773
15663
|
var touchStart = function(event) {
|
|
15774
15664
|
if (scrollTop.current === 0 && !isTouching.current && pullRefresh) {
|
|
15775
15665
|
y.current = event.touches[0].pageY;
|
|
@@ -15791,8 +15681,8 @@
|
|
|
15791
15681
|
isTouching.current = false;
|
|
15792
15682
|
}
|
|
15793
15683
|
};
|
|
15794
|
-
var touchEnd =
|
|
15795
|
-
|
|
15684
|
+
var touchEnd = function() {
|
|
15685
|
+
return _async_to_generator(function() {
|
|
15796
15686
|
return __generator(this, function(_state) {
|
|
15797
15687
|
switch (_state.label) {
|
|
15798
15688
|
case 0:
|
|
@@ -15822,11 +15712,8 @@
|
|
|
15822
15712
|
];
|
|
15823
15713
|
}
|
|
15824
15714
|
});
|
|
15825
|
-
});
|
|
15826
|
-
|
|
15827
|
-
return _ref2.apply(this, arguments);
|
|
15828
|
-
};
|
|
15829
|
-
}();
|
|
15715
|
+
})();
|
|
15716
|
+
};
|
|
15830
15717
|
return /* @__PURE__ */ React.createElement(components.ScrollView, _object_spread_props(_object_spread({}, rest), {
|
|
15831
15718
|
className: classes,
|
|
15832
15719
|
scrollY: true,
|
|
@@ -15998,46 +15885,48 @@
|
|
|
15998
15885
|
if (showNoticeBar === false) {
|
|
15999
15886
|
return;
|
|
16000
15887
|
}
|
|
16001
|
-
setTimeout(
|
|
16002
|
-
|
|
16003
|
-
|
|
16004
|
-
|
|
16005
|
-
|
|
16006
|
-
|
|
15888
|
+
setTimeout(function() {
|
|
15889
|
+
return _async_to_generator(function() {
|
|
15890
|
+
var warpRes, contentRes, wrapW, offsetW, canScroll;
|
|
15891
|
+
return __generator(this, function(_state) {
|
|
15892
|
+
switch (_state.label) {
|
|
15893
|
+
case 0:
|
|
15894
|
+
if (!wrapRef.current || !contentRef.current) {
|
|
15895
|
+
return [
|
|
15896
|
+
2
|
|
15897
|
+
];
|
|
15898
|
+
}
|
|
15899
|
+
return [
|
|
15900
|
+
4,
|
|
15901
|
+
getRectInMultiPlatform(wrapRef.current)
|
|
15902
|
+
];
|
|
15903
|
+
case 1:
|
|
15904
|
+
warpRes = _state.sent();
|
|
15905
|
+
return [
|
|
15906
|
+
4,
|
|
15907
|
+
getRectInMultiPlatform(contentRef.current)
|
|
15908
|
+
];
|
|
15909
|
+
case 2:
|
|
15910
|
+
contentRes = _state.sent();
|
|
15911
|
+
wrapW = warpRes.width;
|
|
15912
|
+
offsetW = contentRes.width;
|
|
15913
|
+
canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
|
|
15914
|
+
SetIsCanScroll(canScroll);
|
|
15915
|
+
if (canScroll) {
|
|
15916
|
+
SetWrapWidth(wrapW);
|
|
15917
|
+
SetOffsetW(offsetW);
|
|
15918
|
+
SetAnimationDuration(offsetW / speed);
|
|
15919
|
+
SetAnimationClass("play");
|
|
15920
|
+
} else {
|
|
15921
|
+
SetAnimationClass("");
|
|
15922
|
+
}
|
|
16007
15923
|
return [
|
|
16008
15924
|
2
|
|
16009
15925
|
];
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
|
|
16013
|
-
|
|
16014
|
-
];
|
|
16015
|
-
case 1:
|
|
16016
|
-
warpRes = _state.sent();
|
|
16017
|
-
return [
|
|
16018
|
-
4,
|
|
16019
|
-
getRectInMultiPlatform(contentRef.current)
|
|
16020
|
-
];
|
|
16021
|
-
case 2:
|
|
16022
|
-
contentRes = _state.sent();
|
|
16023
|
-
wrapW = warpRes.width;
|
|
16024
|
-
offsetW = contentRes.width;
|
|
16025
|
-
canScroll = align === "left" && scrollable == null ? offsetW > wrapW : scrollable;
|
|
16026
|
-
SetIsCanScroll(canScroll);
|
|
16027
|
-
if (canScroll) {
|
|
16028
|
-
SetWrapWidth(wrapW);
|
|
16029
|
-
SetOffsetW(offsetW);
|
|
16030
|
-
SetAnimationDuration(offsetW / speed);
|
|
16031
|
-
SetAnimationClass("play");
|
|
16032
|
-
} else {
|
|
16033
|
-
SetAnimationClass("");
|
|
16034
|
-
}
|
|
16035
|
-
return [
|
|
16036
|
-
2
|
|
16037
|
-
];
|
|
16038
|
-
}
|
|
16039
|
-
});
|
|
16040
|
-
}), 0);
|
|
15926
|
+
}
|
|
15927
|
+
});
|
|
15928
|
+
})();
|
|
15929
|
+
}, 0);
|
|
16041
15930
|
};
|
|
16042
15931
|
var handleClick = function(event) {
|
|
16043
15932
|
click && click(event);
|
|
@@ -16100,35 +15989,37 @@
|
|
|
16100
15989
|
var init = function() {
|
|
16101
15990
|
var activeIndex = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
16102
15991
|
if (!(container === null || container === void 0 ? void 0 : container.current)) return;
|
|
16103
|
-
setTimeout(
|
|
16104
|
-
|
|
16105
|
-
|
|
16106
|
-
|
|
16107
|
-
|
|
16108
|
-
|
|
16109
|
-
|
|
16110
|
-
|
|
16111
|
-
|
|
16112
|
-
|
|
16113
|
-
|
|
16114
|
-
|
|
16115
|
-
|
|
16116
|
-
|
|
16117
|
-
|
|
16118
|
-
|
|
16119
|
-
|
|
16120
|
-
|
|
16121
|
-
|
|
16122
|
-
|
|
16123
|
-
|
|
16124
|
-
|
|
16125
|
-
|
|
16126
|
-
|
|
16127
|
-
|
|
16128
|
-
|
|
16129
|
-
|
|
16130
|
-
|
|
16131
|
-
|
|
15992
|
+
setTimeout(function() {
|
|
15993
|
+
return _async_to_generator(function() {
|
|
15994
|
+
var rects, _active, _height, targetOffset;
|
|
15995
|
+
return __generator(this, function(_state) {
|
|
15996
|
+
switch (_state.label) {
|
|
15997
|
+
case 0:
|
|
15998
|
+
return [
|
|
15999
|
+
4,
|
|
16000
|
+
getRectInMultiPlatform(container === null || container === void 0 ? void 0 : container.current)
|
|
16001
|
+
];
|
|
16002
|
+
case 1:
|
|
16003
|
+
rects = _state.sent();
|
|
16004
|
+
_active = Math.max(Math.min(childCount - 1, activeIndex), 0);
|
|
16005
|
+
_height = rects === null || rects === void 0 ? void 0 : rects.height;
|
|
16006
|
+
trackSize = childCount * Number(_height);
|
|
16007
|
+
targetOffset = getOffset(_active);
|
|
16008
|
+
activeRef.current = _active;
|
|
16009
|
+
setRect(rects);
|
|
16010
|
+
setOffset(targetOffset);
|
|
16011
|
+
setChildOffset(new Array(childCount).fill(0));
|
|
16012
|
+
swiperRef.current.moving = true;
|
|
16013
|
+
setStyle(targetOffset, rects);
|
|
16014
|
+
swiperRef.current.moving = false;
|
|
16015
|
+
setReady(true);
|
|
16016
|
+
return [
|
|
16017
|
+
2
|
|
16018
|
+
];
|
|
16019
|
+
}
|
|
16020
|
+
});
|
|
16021
|
+
})();
|
|
16022
|
+
}, 0);
|
|
16132
16023
|
};
|
|
16133
16024
|
React.useEffect(function() {
|
|
16134
16025
|
if (ready) {
|
|
@@ -16517,93 +16408,91 @@
|
|
|
16517
16408
|
]);
|
|
16518
16409
|
var uid = useUuid();
|
|
16519
16410
|
var popoverId = "popover-".concat(uid);
|
|
16520
|
-
var getWrapperPosition =
|
|
16521
|
-
|
|
16411
|
+
var getWrapperPosition = function() {
|
|
16412
|
+
return _async_to_generator(function() {
|
|
16522
16413
|
return __generator(this, function(_state) {
|
|
16523
|
-
Taro.nextTick(
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
|
|
16560
|
-
|
|
16561
|
-
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16414
|
+
Taro.nextTick(function() {
|
|
16415
|
+
return _async_to_generator(function() {
|
|
16416
|
+
var rect, _tmp, width2, height2, right2, left2, top;
|
|
16417
|
+
return __generator(this, function(_state2) {
|
|
16418
|
+
switch (_state2.label) {
|
|
16419
|
+
case 0:
|
|
16420
|
+
if (!targetId) return [
|
|
16421
|
+
3,
|
|
16422
|
+
2
|
|
16423
|
+
];
|
|
16424
|
+
return [
|
|
16425
|
+
4,
|
|
16426
|
+
getRectInMultiPlatform(document.querySelector("#".concat(targetId)), targetId)
|
|
16427
|
+
];
|
|
16428
|
+
case 1:
|
|
16429
|
+
_tmp = _state2.sent();
|
|
16430
|
+
return [
|
|
16431
|
+
3,
|
|
16432
|
+
4
|
|
16433
|
+
];
|
|
16434
|
+
case 2:
|
|
16435
|
+
return [
|
|
16436
|
+
4,
|
|
16437
|
+
getRectInMultiPlatform(popoverRef.current, popoverId)
|
|
16438
|
+
];
|
|
16439
|
+
case 3:
|
|
16440
|
+
_tmp = _state2.sent();
|
|
16441
|
+
_state2.label = 4;
|
|
16442
|
+
case 4:
|
|
16443
|
+
rect = _tmp;
|
|
16444
|
+
width2 = rect.width, height2 = rect.height, right2 = rect.right, left2 = rect.left, top = rect.top;
|
|
16445
|
+
setWrapperPosition({
|
|
16446
|
+
width: width2,
|
|
16447
|
+
height: height2,
|
|
16448
|
+
left: rtl ? right2 : left2,
|
|
16449
|
+
top,
|
|
16450
|
+
right: rtl ? left2 : right2
|
|
16451
|
+
});
|
|
16452
|
+
getPopoverContentW();
|
|
16453
|
+
return [
|
|
16454
|
+
2
|
|
16455
|
+
];
|
|
16456
|
+
}
|
|
16457
|
+
});
|
|
16458
|
+
})();
|
|
16459
|
+
});
|
|
16567
16460
|
return [
|
|
16568
16461
|
2
|
|
16569
16462
|
];
|
|
16570
16463
|
});
|
|
16571
|
-
});
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
}();
|
|
16576
|
-
var getPopoverContentW = /* @__PURE__ */ function() {
|
|
16577
|
-
var _ref2 = _async_to_generator(function() {
|
|
16464
|
+
})();
|
|
16465
|
+
};
|
|
16466
|
+
var getPopoverContentW = function() {
|
|
16467
|
+
return _async_to_generator(function() {
|
|
16578
16468
|
return __generator(this, function(_state) {
|
|
16579
|
-
Taro.nextTick(
|
|
16580
|
-
|
|
16581
|
-
|
|
16582
|
-
|
|
16583
|
-
|
|
16584
|
-
|
|
16585
|
-
|
|
16586
|
-
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16590
|
-
|
|
16591
|
-
|
|
16592
|
-
|
|
16593
|
-
|
|
16594
|
-
|
|
16595
|
-
|
|
16596
|
-
|
|
16597
|
-
|
|
16469
|
+
Taro.nextTick(function() {
|
|
16470
|
+
return _async_to_generator(function() {
|
|
16471
|
+
var rectContent;
|
|
16472
|
+
return __generator(this, function(_state2) {
|
|
16473
|
+
switch (_state2.label) {
|
|
16474
|
+
case 0:
|
|
16475
|
+
return [
|
|
16476
|
+
4,
|
|
16477
|
+
getRectInMultiPlatform(popoverContentRef.current)
|
|
16478
|
+
];
|
|
16479
|
+
case 1:
|
|
16480
|
+
rectContent = _state2.sent();
|
|
16481
|
+
setPopWidth(rectContent.width);
|
|
16482
|
+
setPopHeight(rectContent.height);
|
|
16483
|
+
return [
|
|
16484
|
+
2
|
|
16485
|
+
];
|
|
16486
|
+
}
|
|
16487
|
+
});
|
|
16488
|
+
})();
|
|
16489
|
+
});
|
|
16598
16490
|
return [
|
|
16599
16491
|
2
|
|
16600
16492
|
];
|
|
16601
16493
|
});
|
|
16602
|
-
});
|
|
16603
|
-
|
|
16604
|
-
return _ref2.apply(this, arguments);
|
|
16605
|
-
};
|
|
16606
|
-
}();
|
|
16494
|
+
})();
|
|
16495
|
+
};
|
|
16607
16496
|
var clickAway = function() {
|
|
16608
16497
|
if (closeOnOutsideClick) {
|
|
16609
16498
|
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
@@ -16794,7 +16683,58 @@
|
|
|
16794
16683
|
});
|
|
16795
16684
|
var PullToRefresh = function(p) {
|
|
16796
16685
|
var doRefresh = function doRefresh2() {
|
|
16797
|
-
return
|
|
16686
|
+
return _async_to_generator(function() {
|
|
16687
|
+
var e;
|
|
16688
|
+
return __generator(this, function(_state) {
|
|
16689
|
+
switch (_state.label) {
|
|
16690
|
+
case 0:
|
|
16691
|
+
setHeight(headHeight);
|
|
16692
|
+
setStatus("refreshing");
|
|
16693
|
+
_state.label = 1;
|
|
16694
|
+
case 1:
|
|
16695
|
+
_state.trys.push([
|
|
16696
|
+
1,
|
|
16697
|
+
3,
|
|
16698
|
+
,
|
|
16699
|
+
4
|
|
16700
|
+
]);
|
|
16701
|
+
return [
|
|
16702
|
+
4,
|
|
16703
|
+
props.onRefresh()
|
|
16704
|
+
];
|
|
16705
|
+
case 2:
|
|
16706
|
+
_state.sent();
|
|
16707
|
+
setStatus("complete");
|
|
16708
|
+
return [
|
|
16709
|
+
3,
|
|
16710
|
+
4
|
|
16711
|
+
];
|
|
16712
|
+
case 3:
|
|
16713
|
+
e = _state.sent();
|
|
16714
|
+
setHeight(0);
|
|
16715
|
+
setStatus("pulling");
|
|
16716
|
+
throw e;
|
|
16717
|
+
case 4:
|
|
16718
|
+
if (!(props.completeDelay > 0)) return [
|
|
16719
|
+
3,
|
|
16720
|
+
6
|
|
16721
|
+
];
|
|
16722
|
+
return [
|
|
16723
|
+
4,
|
|
16724
|
+
sleep(props.completeDelay)
|
|
16725
|
+
];
|
|
16726
|
+
case 5:
|
|
16727
|
+
_state.sent();
|
|
16728
|
+
_state.label = 6;
|
|
16729
|
+
case 6:
|
|
16730
|
+
setHeight(0);
|
|
16731
|
+
setStatus("pulling");
|
|
16732
|
+
return [
|
|
16733
|
+
2
|
|
16734
|
+
];
|
|
16735
|
+
}
|
|
16736
|
+
});
|
|
16737
|
+
})();
|
|
16798
16738
|
};
|
|
16799
16739
|
var classPrefix2 = "nut-pulltorefresh";
|
|
16800
16740
|
var locale = useConfig().locale;
|
|
@@ -16850,61 +16790,6 @@
|
|
|
16850
16790
|
}
|
|
16851
16791
|
clearTimeout(timer.current);
|
|
16852
16792
|
};
|
|
16853
|
-
function _doRefresh() {
|
|
16854
|
-
_doRefresh = _async_to_generator(function() {
|
|
16855
|
-
var e;
|
|
16856
|
-
return __generator(this, function(_state) {
|
|
16857
|
-
switch (_state.label) {
|
|
16858
|
-
case 0:
|
|
16859
|
-
setHeight(headHeight);
|
|
16860
|
-
setStatus("refreshing");
|
|
16861
|
-
_state.label = 1;
|
|
16862
|
-
case 1:
|
|
16863
|
-
_state.trys.push([
|
|
16864
|
-
1,
|
|
16865
|
-
3,
|
|
16866
|
-
,
|
|
16867
|
-
4
|
|
16868
|
-
]);
|
|
16869
|
-
return [
|
|
16870
|
-
4,
|
|
16871
|
-
props.onRefresh()
|
|
16872
|
-
];
|
|
16873
|
-
case 2:
|
|
16874
|
-
_state.sent();
|
|
16875
|
-
setStatus("complete");
|
|
16876
|
-
return [
|
|
16877
|
-
3,
|
|
16878
|
-
4
|
|
16879
|
-
];
|
|
16880
|
-
case 3:
|
|
16881
|
-
e = _state.sent();
|
|
16882
|
-
setHeight(0);
|
|
16883
|
-
setStatus("pulling");
|
|
16884
|
-
throw e;
|
|
16885
|
-
case 4:
|
|
16886
|
-
if (!(props.completeDelay > 0)) return [
|
|
16887
|
-
3,
|
|
16888
|
-
6
|
|
16889
|
-
];
|
|
16890
|
-
return [
|
|
16891
|
-
4,
|
|
16892
|
-
sleep(props.completeDelay)
|
|
16893
|
-
];
|
|
16894
|
-
case 5:
|
|
16895
|
-
_state.sent();
|
|
16896
|
-
_state.label = 6;
|
|
16897
|
-
case 6:
|
|
16898
|
-
setHeight(0);
|
|
16899
|
-
setStatus("pulling");
|
|
16900
|
-
return [
|
|
16901
|
-
2
|
|
16902
|
-
];
|
|
16903
|
-
}
|
|
16904
|
-
});
|
|
16905
|
-
});
|
|
16906
|
-
return _doRefresh.apply(this, arguments);
|
|
16907
|
-
}
|
|
16908
16793
|
var handleTouchEnd = function() {
|
|
16909
16794
|
if (props.disabled) return;
|
|
16910
16795
|
pullingRef.current = false;
|
|
@@ -17095,8 +16980,8 @@
|
|
|
17095
16980
|
var uid = useUuid();
|
|
17096
16981
|
var leftId = "swipe-left-".concat(uid);
|
|
17097
16982
|
var rightId = "swipe-right-".concat(uid);
|
|
17098
|
-
var getWidth =
|
|
17099
|
-
|
|
16983
|
+
var getWidth = function() {
|
|
16984
|
+
return _async_to_generator(function() {
|
|
17100
16985
|
var leftRect, rightRect;
|
|
17101
16986
|
return __generator(this, function(_state) {
|
|
17102
16987
|
switch (_state.label) {
|
|
@@ -17140,11 +17025,8 @@
|
|
|
17140
17025
|
];
|
|
17141
17026
|
}
|
|
17142
17027
|
});
|
|
17143
|
-
});
|
|
17144
|
-
|
|
17145
|
-
return _ref.apply(this, arguments);
|
|
17146
|
-
};
|
|
17147
|
-
}();
|
|
17028
|
+
})();
|
|
17029
|
+
};
|
|
17148
17030
|
Taro.useReady(function() {
|
|
17149
17031
|
Taro.nextTick(function() {
|
|
17150
17032
|
return getWidth();
|
|
@@ -17185,8 +17067,8 @@
|
|
|
17185
17067
|
state.offset,
|
|
17186
17068
|
state.dragging
|
|
17187
17069
|
]);
|
|
17188
|
-
var onTouchStart =
|
|
17189
|
-
|
|
17070
|
+
var onTouchStart = function(event) {
|
|
17071
|
+
return _async_to_generator(function() {
|
|
17190
17072
|
var _props_onTouchStart;
|
|
17191
17073
|
return __generator(this, function(_state) {
|
|
17192
17074
|
if (!props.disabled) {
|
|
@@ -17199,11 +17081,8 @@
|
|
|
17199
17081
|
2
|
|
17200
17082
|
];
|
|
17201
17083
|
});
|
|
17202
|
-
});
|
|
17203
|
-
|
|
17204
|
-
return _ref.apply(this, arguments);
|
|
17205
|
-
};
|
|
17206
|
-
}();
|
|
17084
|
+
})();
|
|
17085
|
+
};
|
|
17207
17086
|
var onTouchMove = function(event) {
|
|
17208
17087
|
var _props_onTouchMove;
|
|
17209
17088
|
if (props.disabled) return;
|
|
@@ -17319,7 +17198,6 @@
|
|
|
17319
17198
|
});
|
|
17320
17199
|
React.useEffect(function() {
|
|
17321
17200
|
var handler = function(event) {
|
|
17322
|
-
console.log("~~hanyu handler---- window", event);
|
|
17323
17201
|
var targets = [
|
|
17324
17202
|
root2
|
|
17325
17203
|
];
|
|
@@ -18175,8 +18053,8 @@
|
|
|
18175
18053
|
var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
|
|
18176
18054
|
var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
|
|
18177
18055
|
var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
|
|
18178
|
-
var updateRectHeight =
|
|
18179
|
-
|
|
18056
|
+
var updateRectHeight = function() {
|
|
18057
|
+
return _async_to_generator(function() {
|
|
18180
18058
|
var res;
|
|
18181
18059
|
return __generator(this, function(_state) {
|
|
18182
18060
|
switch (_state.label) {
|
|
@@ -18199,11 +18077,8 @@
|
|
|
18199
18077
|
];
|
|
18200
18078
|
}
|
|
18201
18079
|
});
|
|
18202
|
-
});
|
|
18203
|
-
|
|
18204
|
-
return _ref2.apply(this, arguments);
|
|
18205
|
-
};
|
|
18206
|
-
}();
|
|
18080
|
+
})();
|
|
18081
|
+
};
|
|
18207
18082
|
React.useEffect(function() {
|
|
18208
18083
|
Taro.nextTick(function() {
|
|
18209
18084
|
updateRectHeight();
|
|
@@ -18606,8 +18481,8 @@
|
|
|
18606
18481
|
}, [
|
|
18607
18482
|
content2
|
|
18608
18483
|
]);
|
|
18609
|
-
var getSymbolInfo =
|
|
18610
|
-
|
|
18484
|
+
var getSymbolInfo = function() {
|
|
18485
|
+
return _async_to_generator(function() {
|
|
18611
18486
|
var refe;
|
|
18612
18487
|
return __generator(this, function(_state) {
|
|
18613
18488
|
switch (_state.label) {
|
|
@@ -18624,19 +18499,16 @@
|
|
|
18624
18499
|
];
|
|
18625
18500
|
}
|
|
18626
18501
|
});
|
|
18627
|
-
});
|
|
18628
|
-
|
|
18629
|
-
return _ref2.apply(this, arguments);
|
|
18630
|
-
};
|
|
18631
|
-
}();
|
|
18502
|
+
})();
|
|
18503
|
+
};
|
|
18632
18504
|
var symbolText = function() {
|
|
18633
18505
|
if (direction === "end" || direction === "middle") {
|
|
18634
18506
|
return "".concat(symbol).concat(expandText);
|
|
18635
18507
|
}
|
|
18636
18508
|
return "".concat(symbol).concat(expandText).concat(symbol);
|
|
18637
18509
|
};
|
|
18638
|
-
var getReference =
|
|
18639
|
-
|
|
18510
|
+
var getReference = function() {
|
|
18511
|
+
return _async_to_generator(function() {
|
|
18640
18512
|
var query;
|
|
18641
18513
|
return __generator(this, function(_state) {
|
|
18642
18514
|
query = Taro.createSelectorQuery();
|
|
@@ -18672,13 +18544,10 @@
|
|
|
18672
18544
|
2
|
|
18673
18545
|
];
|
|
18674
18546
|
});
|
|
18675
|
-
});
|
|
18676
|
-
|
|
18677
|
-
|
|
18678
|
-
|
|
18679
|
-
}();
|
|
18680
|
-
var calcEllipse = /* @__PURE__ */ function() {
|
|
18681
|
-
var _ref2 = _async_to_generator(function() {
|
|
18547
|
+
})();
|
|
18548
|
+
};
|
|
18549
|
+
var calcEllipse = function() {
|
|
18550
|
+
return _async_to_generator(function() {
|
|
18682
18551
|
var refe, rowNum, end, end1, start;
|
|
18683
18552
|
return __generator(this, function(_state) {
|
|
18684
18553
|
switch (_state.label) {
|
|
@@ -18715,13 +18584,10 @@
|
|
|
18715
18584
|
];
|
|
18716
18585
|
}
|
|
18717
18586
|
});
|
|
18718
|
-
});
|
|
18719
|
-
|
|
18720
|
-
|
|
18721
|
-
|
|
18722
|
-
}();
|
|
18723
|
-
var verifyEllipsis = /* @__PURE__ */ function() {
|
|
18724
|
-
var _ref2 = _async_to_generator(function() {
|
|
18587
|
+
})();
|
|
18588
|
+
};
|
|
18589
|
+
var verifyEllipsis = function() {
|
|
18590
|
+
return _async_to_generator(function() {
|
|
18725
18591
|
var refe, _ellipsis_current_leading, _ellipsis_current4, _ellipsis_current_leading1, _ellipsis_current12, _ellipsis_current22, _ellipsis_current_tailing, _ellipsis_current32;
|
|
18726
18592
|
return __generator(this, function(_state) {
|
|
18727
18593
|
switch (_state.label) {
|
|
@@ -18748,11 +18614,8 @@
|
|
|
18748
18614
|
];
|
|
18749
18615
|
}
|
|
18750
18616
|
});
|
|
18751
|
-
});
|
|
18752
|
-
|
|
18753
|
-
return _ref2.apply(this, arguments);
|
|
18754
|
-
};
|
|
18755
|
-
}();
|
|
18617
|
+
})();
|
|
18618
|
+
};
|
|
18756
18619
|
var assignContent = function() {
|
|
18757
18620
|
var _ellipsis_current4, _ellipsis_current12, _ellipsis_current22, _ellipsis_current32;
|
|
18758
18621
|
var newContent = "".concat(((_ellipsis_current4 = ellipsis.current) === null || _ellipsis_current4 === void 0 ? void 0 : _ellipsis_current4.leading) || "").concat(((_ellipsis_current12 = ellipsis.current) === null || _ellipsis_current12 === void 0 ? void 0 : _ellipsis_current12.leading) ? symbol : "").concat(expandText || "").concat(((_ellipsis_current22 = ellipsis.current) === null || _ellipsis_current22 === void 0 ? void 0 : _ellipsis_current22.tailing) ? symbol : "").concat(((_ellipsis_current32 = ellipsis.current) === null || _ellipsis_current32 === void 0 ? void 0 : _ellipsis_current32.tailing) || "");
|
|
@@ -19298,7 +19161,7 @@
|
|
|
19298
19161
|
ImagePreview.displayName = "NutImagePreview";
|
|
19299
19162
|
var lottie$2 = { exports: {} };
|
|
19300
19163
|
(function(module, exports) {
|
|
19301
|
-
typeof navigator !== "undefined" && function(global2, factory2) {
|
|
19164
|
+
typeof document !== "undefined" && typeof navigator !== "undefined" && function(global2, factory2) {
|
|
19302
19165
|
module.exports = factory2();
|
|
19303
19166
|
}(commonjsGlobal, function() {
|
|
19304
19167
|
var svgNS = "http://www.w3.org/2000/svg";
|
|
@@ -19468,18 +19331,13 @@
|
|
|
19468
19331
|
length: len2
|
|
19469
19332
|
});
|
|
19470
19333
|
}
|
|
19471
|
-
function _typeof$6(
|
|
19334
|
+
function _typeof$6(o) {
|
|
19472
19335
|
"@babel/helpers - typeof";
|
|
19473
|
-
|
|
19474
|
-
|
|
19475
|
-
|
|
19476
|
-
|
|
19477
|
-
}
|
|
19478
|
-
_typeof$6 = function _typeof2(obj2) {
|
|
19479
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
19480
|
-
};
|
|
19481
|
-
}
|
|
19482
|
-
return _typeof$6(obj);
|
|
19336
|
+
return _typeof$6 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
19337
|
+
return typeof o2;
|
|
19338
|
+
} : function(o2) {
|
|
19339
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
19340
|
+
}, _typeof$6(o);
|
|
19483
19341
|
}
|
|
19484
19342
|
var subframeEnabled = true;
|
|
19485
19343
|
var expressionsPlugin = null;
|
|
@@ -19726,18 +19584,13 @@
|
|
|
19726
19584
|
function createNS(type2) {
|
|
19727
19585
|
return document.createElementNS(svgNS, type2);
|
|
19728
19586
|
}
|
|
19729
|
-
function _typeof$5(
|
|
19587
|
+
function _typeof$5(o) {
|
|
19730
19588
|
"@babel/helpers - typeof";
|
|
19731
|
-
|
|
19732
|
-
|
|
19733
|
-
|
|
19734
|
-
|
|
19735
|
-
}
|
|
19736
|
-
_typeof$5 = function _typeof2(obj2) {
|
|
19737
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
19738
|
-
};
|
|
19739
|
-
}
|
|
19740
|
-
return _typeof$5(obj);
|
|
19589
|
+
return _typeof$5 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
19590
|
+
return typeof o2;
|
|
19591
|
+
} : function(o2) {
|
|
19592
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
19593
|
+
}, _typeof$5(o);
|
|
19741
19594
|
}
|
|
19742
19595
|
var dataManager = /* @__PURE__ */ function() {
|
|
19743
19596
|
var _counterId = 1;
|
|
@@ -20693,18 +20546,13 @@
|
|
|
20693
20546
|
}
|
|
20694
20547
|
return "";
|
|
20695
20548
|
}
|
|
20696
|
-
function _typeof$4(
|
|
20549
|
+
function _typeof$4(o) {
|
|
20697
20550
|
"@babel/helpers - typeof";
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
}
|
|
20703
|
-
_typeof$4 = function _typeof2(obj2) {
|
|
20704
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
20705
|
-
};
|
|
20706
|
-
}
|
|
20707
|
-
return _typeof$4(obj);
|
|
20551
|
+
return _typeof$4 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
20552
|
+
return typeof o2;
|
|
20553
|
+
} : function(o2) {
|
|
20554
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
20555
|
+
}, _typeof$4(o);
|
|
20708
20556
|
}
|
|
20709
20557
|
var AnimationItem = function AnimationItem2() {
|
|
20710
20558
|
this._cbs = [];
|
|
@@ -23473,18 +23321,13 @@
|
|
|
23473
23321
|
this.reset();
|
|
23474
23322
|
};
|
|
23475
23323
|
}();
|
|
23476
|
-
function _typeof$3(
|
|
23324
|
+
function _typeof$3(o) {
|
|
23477
23325
|
"@babel/helpers - typeof";
|
|
23478
|
-
|
|
23479
|
-
|
|
23480
|
-
|
|
23481
|
-
|
|
23482
|
-
}
|
|
23483
|
-
_typeof$3 = function _typeof2(obj2) {
|
|
23484
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
23485
|
-
};
|
|
23486
|
-
}
|
|
23487
|
-
return _typeof$3(obj);
|
|
23326
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
23327
|
+
return typeof o2;
|
|
23328
|
+
} : function(o2) {
|
|
23329
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
23330
|
+
}, _typeof$3(o);
|
|
23488
23331
|
}
|
|
23489
23332
|
var lottie = {};
|
|
23490
23333
|
function setLocation(href) {
|
|
@@ -23568,7 +23411,7 @@
|
|
|
23568
23411
|
lottie.useWebWorker = setWebWorker;
|
|
23569
23412
|
lottie.setIDPrefix = setPrefix;
|
|
23570
23413
|
lottie.__getFactory = getFactory;
|
|
23571
|
-
lottie.version = "5.
|
|
23414
|
+
lottie.version = "5.13.0";
|
|
23572
23415
|
function checkReady() {
|
|
23573
23416
|
if (document.readyState === "complete") {
|
|
23574
23417
|
clearInterval(readyStateCheckInterval);
|
|
@@ -26162,7 +26005,7 @@
|
|
|
26162
26005
|
}
|
|
26163
26006
|
}
|
|
26164
26007
|
}
|
|
26165
|
-
if (this.finalTransform._matMdf) {
|
|
26008
|
+
if (!this.localTransforms || this.finalTransform._matMdf) {
|
|
26166
26009
|
this.finalTransform._localMatMdf = this.finalTransform._matMdf;
|
|
26167
26010
|
}
|
|
26168
26011
|
if (this.finalTransform._opMdf) {
|
|
@@ -27400,7 +27243,7 @@
|
|
|
27400
27243
|
itemData.of.setAttribute("r", rad);
|
|
27401
27244
|
}
|
|
27402
27245
|
}
|
|
27403
|
-
if (itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
|
|
27246
|
+
if (itemData.s._mdf || itemData.e._mdf || itemData.h._mdf || itemData.a._mdf || isFirstFrame) {
|
|
27404
27247
|
if (!rad) {
|
|
27405
27248
|
rad = Math.sqrt(Math.pow(pt1[0] - pt2[0], 2) + Math.pow(pt1[1] - pt2[1], 2));
|
|
27406
27249
|
}
|
|
@@ -27597,7 +27440,7 @@
|
|
|
27597
27440
|
var j;
|
|
27598
27441
|
var jLen = this.stylesList.length;
|
|
27599
27442
|
for (j = 0; j < jLen; j += 1) {
|
|
27600
|
-
if (!this.stylesList[j].closed) {
|
|
27443
|
+
if (arr.indexOf(this.stylesList[j]) === -1 && !this.stylesList[j].closed) {
|
|
27601
27444
|
arr.push(this.stylesList[j]);
|
|
27602
27445
|
}
|
|
27603
27446
|
}
|
|
@@ -27639,7 +27482,7 @@
|
|
|
27639
27482
|
if (!processedPos) {
|
|
27640
27483
|
itemsData[i2] = this.createStyleElement(arr[i2], level);
|
|
27641
27484
|
} else {
|
|
27642
|
-
itemsData[i2].style.closed =
|
|
27485
|
+
itemsData[i2].style.closed = arr[i2].hd;
|
|
27643
27486
|
}
|
|
27644
27487
|
if (arr[i2]._render) {
|
|
27645
27488
|
if (itemsData[i2].style.pElem.parentNode !== container) {
|
|
@@ -32476,18 +32319,13 @@
|
|
|
32476
32319
|
return _thisLayerFunction;
|
|
32477
32320
|
};
|
|
32478
32321
|
}();
|
|
32479
|
-
function _typeof$2(
|
|
32322
|
+
function _typeof$2(o) {
|
|
32480
32323
|
"@babel/helpers - typeof";
|
|
32481
|
-
|
|
32482
|
-
|
|
32483
|
-
|
|
32484
|
-
|
|
32485
|
-
}
|
|
32486
|
-
_typeof$2 = function _typeof2(obj2) {
|
|
32487
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
32488
|
-
};
|
|
32489
|
-
}
|
|
32490
|
-
return _typeof$2(obj);
|
|
32324
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
32325
|
+
return typeof o2;
|
|
32326
|
+
} : function(o2) {
|
|
32327
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
32328
|
+
}, _typeof$2(o);
|
|
32491
32329
|
}
|
|
32492
32330
|
function seedRandom(pool, math) {
|
|
32493
32331
|
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;
|
|
@@ -32606,18 +32444,13 @@
|
|
|
32606
32444
|
var propTypes = {
|
|
32607
32445
|
SHAPE: "shape"
|
|
32608
32446
|
};
|
|
32609
|
-
function _typeof$1(
|
|
32447
|
+
function _typeof$1(o) {
|
|
32610
32448
|
"@babel/helpers - typeof";
|
|
32611
|
-
|
|
32612
|
-
|
|
32613
|
-
|
|
32614
|
-
|
|
32615
|
-
}
|
|
32616
|
-
_typeof$1 = function _typeof2(obj2) {
|
|
32617
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
32618
|
-
};
|
|
32619
|
-
}
|
|
32620
|
-
return _typeof$1(obj);
|
|
32449
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
32450
|
+
return typeof o2;
|
|
32451
|
+
} : function(o2) {
|
|
32452
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
32453
|
+
}, _typeof$1(o);
|
|
32621
32454
|
}
|
|
32622
32455
|
var ExpressionManager = function() {
|
|
32623
32456
|
var ob = {};
|
|
@@ -32985,6 +32818,7 @@
|
|
|
32985
32818
|
var content;
|
|
32986
32819
|
var effect;
|
|
32987
32820
|
var thisProperty = property;
|
|
32821
|
+
thisProperty._name = elem.data.nm;
|
|
32988
32822
|
thisProperty.valueAtTime = thisProperty.getValueAtTime;
|
|
32989
32823
|
Object.defineProperty(thisProperty, "value", {
|
|
32990
32824
|
get: function get() {
|
|
@@ -33421,6 +33255,7 @@
|
|
|
33421
33255
|
if (expressionValue.value !== val2) {
|
|
33422
33256
|
expressionValue = new Number(val2);
|
|
33423
33257
|
expressionValue.value = val2;
|
|
33258
|
+
expressionValue[0] = val2;
|
|
33424
33259
|
completeProperty(expressionValue, property2, "unidimensional");
|
|
33425
33260
|
}
|
|
33426
33261
|
return expressionValue;
|
|
@@ -34460,18 +34295,13 @@
|
|
|
34460
34295
|
return _thisLayerFunction;
|
|
34461
34296
|
};
|
|
34462
34297
|
}();
|
|
34463
|
-
function _typeof(
|
|
34298
|
+
function _typeof(o) {
|
|
34464
34299
|
"@babel/helpers - typeof";
|
|
34465
|
-
|
|
34466
|
-
|
|
34467
|
-
|
|
34468
|
-
|
|
34469
|
-
}
|
|
34470
|
-
_typeof = function _typeof2(obj2) {
|
|
34471
|
-
return obj2 && typeof Symbol === "function" && obj2.constructor === Symbol && obj2 !== Symbol.prototype ? "symbol" : typeof obj2;
|
|
34472
|
-
};
|
|
34473
|
-
}
|
|
34474
|
-
return _typeof(obj);
|
|
34300
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
34301
|
+
return typeof o2;
|
|
34302
|
+
} : function(o2) {
|
|
34303
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
34304
|
+
}, _typeof(o);
|
|
34475
34305
|
}
|
|
34476
34306
|
var FootageInterface = /* @__PURE__ */ function() {
|
|
34477
34307
|
var outlineInterfaceFactory = function outlineInterfaceFactory2(elem2) {
|
|
@@ -35583,122 +35413,106 @@
|
|
|
35583
35413
|
})(lottie$2, lottie$2.exports);
|
|
35584
35414
|
var lottieExports = lottie$2.exports;
|
|
35585
35415
|
const lottie$1 = /* @__PURE__ */ getDefaultExportFromCjs(lottieExports);
|
|
35586
|
-
function
|
|
35587
|
-
|
|
35588
|
-
|
|
35589
|
-
|
|
35416
|
+
function _arrayLikeToArray(r, a) {
|
|
35417
|
+
(null == a || a > r.length) && (a = r.length);
|
|
35418
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
35419
|
+
return n;
|
|
35420
|
+
}
|
|
35421
|
+
function _arrayWithHoles(r) {
|
|
35422
|
+
if (Array.isArray(r)) return r;
|
|
35423
|
+
}
|
|
35424
|
+
function _defineProperty(e, r, t) {
|
|
35425
|
+
return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
35426
|
+
value: t,
|
|
35427
|
+
enumerable: true,
|
|
35428
|
+
configurable: true,
|
|
35429
|
+
writable: true
|
|
35430
|
+
}) : e[r] = t, e;
|
|
35431
|
+
}
|
|
35432
|
+
function _iterableToArrayLimit(r, l) {
|
|
35433
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
35434
|
+
if (null != t) {
|
|
35435
|
+
var e, n, i2, u, a = [], f = true, o = false;
|
|
35590
35436
|
try {
|
|
35591
|
-
if (
|
|
35592
|
-
else for (; !(
|
|
35593
|
-
} catch (
|
|
35594
|
-
|
|
35437
|
+
if (i2 = (t = t.call(r)).next, 0 === l) ;
|
|
35438
|
+
else for (; !(f = (e = i2.call(t)).done) && (a.push(e.value), a.length !== l); f = true) ;
|
|
35439
|
+
} catch (r2) {
|
|
35440
|
+
o = true, n = r2;
|
|
35595
35441
|
} finally {
|
|
35596
35442
|
try {
|
|
35597
|
-
if (!
|
|
35443
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
35598
35444
|
} finally {
|
|
35599
|
-
if (
|
|
35445
|
+
if (o) throw n;
|
|
35600
35446
|
}
|
|
35601
35447
|
}
|
|
35602
|
-
return
|
|
35448
|
+
return a;
|
|
35603
35449
|
}
|
|
35604
35450
|
}
|
|
35605
|
-
function
|
|
35606
|
-
|
|
35451
|
+
function _nonIterableRest() {
|
|
35452
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35453
|
+
}
|
|
35454
|
+
function ownKeys(e, r) {
|
|
35455
|
+
var t = Object.keys(e);
|
|
35607
35456
|
if (Object.getOwnPropertySymbols) {
|
|
35608
|
-
var
|
|
35609
|
-
|
|
35610
|
-
return Object.getOwnPropertyDescriptor(
|
|
35611
|
-
})),
|
|
35457
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
35458
|
+
r && (o = o.filter(function(r2) {
|
|
35459
|
+
return Object.getOwnPropertyDescriptor(e, r2).enumerable;
|
|
35460
|
+
})), t.push.apply(t, o);
|
|
35612
35461
|
}
|
|
35613
|
-
return
|
|
35462
|
+
return t;
|
|
35614
35463
|
}
|
|
35615
|
-
function _objectSpread2(
|
|
35616
|
-
for (var
|
|
35617
|
-
var
|
|
35618
|
-
|
|
35619
|
-
_defineProperty(
|
|
35620
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(
|
|
35621
|
-
Object.defineProperty(
|
|
35464
|
+
function _objectSpread2(e) {
|
|
35465
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
35466
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
35467
|
+
r % 2 ? ownKeys(Object(t), true).forEach(function(r2) {
|
|
35468
|
+
_defineProperty(e, r2, t[r2]);
|
|
35469
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r2) {
|
|
35470
|
+
Object.defineProperty(e, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
35622
35471
|
});
|
|
35623
35472
|
}
|
|
35624
|
-
return
|
|
35473
|
+
return e;
|
|
35625
35474
|
}
|
|
35626
|
-
function
|
|
35627
|
-
|
|
35628
|
-
|
|
35629
|
-
Object.defineProperty(obj, key2, {
|
|
35630
|
-
value: value2,
|
|
35631
|
-
enumerable: true,
|
|
35632
|
-
configurable: true,
|
|
35633
|
-
writable: true
|
|
35634
|
-
});
|
|
35635
|
-
} else {
|
|
35636
|
-
obj[key2] = value2;
|
|
35637
|
-
}
|
|
35638
|
-
return obj;
|
|
35639
|
-
}
|
|
35640
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
35641
|
-
if (source == null) return {};
|
|
35642
|
-
var target = {};
|
|
35643
|
-
var sourceKeys = Object.keys(source);
|
|
35644
|
-
var key2, i2;
|
|
35645
|
-
for (i2 = 0; i2 < sourceKeys.length; i2++) {
|
|
35646
|
-
key2 = sourceKeys[i2];
|
|
35647
|
-
if (excluded.indexOf(key2) >= 0) continue;
|
|
35648
|
-
target[key2] = source[key2];
|
|
35649
|
-
}
|
|
35650
|
-
return target;
|
|
35651
|
-
}
|
|
35652
|
-
function _objectWithoutProperties(source, excluded) {
|
|
35653
|
-
if (source == null) return {};
|
|
35654
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
35655
|
-
var key2, i2;
|
|
35475
|
+
function _objectWithoutProperties(e, t) {
|
|
35476
|
+
if (null == e) return {};
|
|
35477
|
+
var o, r, i2 = _objectWithoutPropertiesLoose(e, t);
|
|
35656
35478
|
if (Object.getOwnPropertySymbols) {
|
|
35657
|
-
var
|
|
35658
|
-
for (
|
|
35659
|
-
key2 = sourceSymbolKeys[i2];
|
|
35660
|
-
if (excluded.indexOf(key2) >= 0) continue;
|
|
35661
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key2)) continue;
|
|
35662
|
-
target[key2] = source[key2];
|
|
35663
|
-
}
|
|
35479
|
+
var s = Object.getOwnPropertySymbols(e);
|
|
35480
|
+
for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i2[o] = e[o]);
|
|
35664
35481
|
}
|
|
35665
|
-
return
|
|
35482
|
+
return i2;
|
|
35666
35483
|
}
|
|
35667
|
-
function
|
|
35668
|
-
|
|
35669
|
-
|
|
35670
|
-
|
|
35671
|
-
|
|
35672
|
-
|
|
35673
|
-
|
|
35674
|
-
|
|
35675
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
35676
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
35677
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
35678
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
35679
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
35680
|
-
}
|
|
35681
|
-
function _arrayLikeToArray(arr, len2) {
|
|
35682
|
-
if (len2 == null || len2 > arr.length) len2 = arr.length;
|
|
35683
|
-
for (var i2 = 0, arr2 = new Array(len2); i2 < len2; i2++) arr2[i2] = arr[i2];
|
|
35684
|
-
return arr2;
|
|
35484
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
35485
|
+
if (null == r) return {};
|
|
35486
|
+
var t = {};
|
|
35487
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
35488
|
+
if (e.includes(n)) continue;
|
|
35489
|
+
t[n] = r[n];
|
|
35490
|
+
}
|
|
35491
|
+
return t;
|
|
35685
35492
|
}
|
|
35686
|
-
function
|
|
35687
|
-
|
|
35493
|
+
function _slicedToArray(r, e) {
|
|
35494
|
+
return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest();
|
|
35688
35495
|
}
|
|
35689
|
-
function _toPrimitive(
|
|
35690
|
-
if (
|
|
35691
|
-
var
|
|
35692
|
-
if (
|
|
35693
|
-
var
|
|
35694
|
-
if (
|
|
35496
|
+
function _toPrimitive(t, r) {
|
|
35497
|
+
if ("object" != typeof t || !t) return t;
|
|
35498
|
+
var e = t[Symbol.toPrimitive];
|
|
35499
|
+
if (void 0 !== e) {
|
|
35500
|
+
var i2 = e.call(t, r);
|
|
35501
|
+
if ("object" != typeof i2) return i2;
|
|
35695
35502
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
35696
35503
|
}
|
|
35697
|
-
return (
|
|
35504
|
+
return ("string" === r ? String : Number)(t);
|
|
35698
35505
|
}
|
|
35699
|
-
function _toPropertyKey(
|
|
35700
|
-
var
|
|
35701
|
-
return
|
|
35506
|
+
function _toPropertyKey(t) {
|
|
35507
|
+
var i2 = _toPrimitive(t, "string");
|
|
35508
|
+
return "symbol" == typeof i2 ? i2 : i2 + "";
|
|
35509
|
+
}
|
|
35510
|
+
function _unsupportedIterableToArray(r, a) {
|
|
35511
|
+
if (r) {
|
|
35512
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
35513
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
35514
|
+
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;
|
|
35515
|
+
}
|
|
35702
35516
|
}
|
|
35703
35517
|
var _excluded$1 = ["animationData", "loop", "autoplay", "initialSegment", "onComplete", "onLoopComplete", "onEnterFrame", "onSegmentStart", "onConfigReady", "onDataReady", "onDataFailed", "onLoadedImages", "onDOMLoaded", "onDestroy", "lottieRef", "renderer", "name", "assetsPath", "rendererSettings"];
|
|
35704
35518
|
var useLottie = function useLottie2(props, style) {
|
|
@@ -36151,7 +35965,7 @@
|
|
|
36151
35965
|
if ("object" != s(t3) || !t3) return t3;
|
|
36152
35966
|
var r2 = t3[Symbol.toPrimitive];
|
|
36153
35967
|
if (void 0 !== r2) {
|
|
36154
|
-
var i3 = r2.call(t3, e3
|
|
35968
|
+
var i3 = r2.call(t3, e3);
|
|
36155
35969
|
if ("object" != s(i3)) return i3;
|
|
36156
35970
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
36157
35971
|
}
|
|
@@ -39051,7 +38865,7 @@
|
|
|
39051
38865
|
var parent, randSeed = Math.floor(1e6 * Math.random());
|
|
39052
38866
|
elem.globalData;
|
|
39053
38867
|
function executeExpression(t) {
|
|
39054
|
-
return value = t, _needsRandom && seedRandom(randSeed), this.frameExpressionId === elem.globalData.frameId && "textSelector" !== this.propType ? value : ("textSelector" === this.propType && (this.textIndex, this.textTotal, this.selectorValue), thisLayer || (elem.layerInterface.text, thisLayer = elem.layerInterface, elem.comp.compInterface, thisLayer.toWorld.bind(thisLayer), thisLayer.fromWorld.bind(thisLayer), fromComp = thisLayer.fromComp.bind(thisLayer), thisLayer.toComp.bind(thisLayer), thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null, fromComp), transform || (transform = elem.layerInterface("ADBE Transform Group"), transform && transform.anchorPoint), 4 !== elemType || content || (content = thisLayer("ADBE Root Vectors Group")), effect || (effect = thisLayer(4)), !(!elem.hierarchy || !elem.hierarchy.length) && !parent && (parent = elem.hierarchy[0].layerInterface), time = this.comp.renderedFrame / this.comp.globalData.frameRate, needsVelocity && velocityAtTime(time), expression_function(), this.frameExpressionId = elem.globalData.frameId, "shape" === scoped_bm_rt.propType, scoped_bm_rt);
|
|
38868
|
+
return value = t, _needsRandom && seedRandom(randSeed), this.frameExpressionId === elem.globalData.frameId && "textSelector" !== this.propType ? value : ("textSelector" === this.propType && (this.textIndex, this.textTotal, this.selectorValue), thisLayer || (elem.layerInterface.text, thisLayer = elem.layerInterface, elem.comp.compInterface, thisLayer.toWorld.bind(thisLayer), thisLayer.fromWorld.bind(thisLayer), fromComp = thisLayer.fromComp.bind(thisLayer), thisLayer.toComp.bind(thisLayer), thisLayer.mask ? thisLayer.mask.bind(thisLayer) : null, fromComp), transform || (transform = elem.layerInterface("ADBE Transform Group"), transform && transform.anchorPoint), 4 !== elemType || content || (content = thisLayer("ADBE Root Vectors Group")), effect || (effect = thisLayer(4)), !(!elem.hierarchy || !elem.hierarchy.length) && !parent && (parent = elem.hierarchy[0].layerInterface), time = this.comp.renderedFrame / this.comp.globalData.frameRate, needsVelocity && velocityAtTime(time), expression_function(), this.frameExpressionId = elem.globalData.frameId, "shape" === scoped_bm_rt.propType && (scoped_bm_rt = scoped_bm_rt.v), scoped_bm_rt);
|
|
39055
38869
|
}
|
|
39056
38870
|
return executeExpression;
|
|
39057
38871
|
}
|
|
@@ -41228,8 +41042,8 @@
|
|
|
41228
41042
|
maxMoveY,
|
|
41229
41043
|
draw
|
|
41230
41044
|
]);
|
|
41231
|
-
var setDrawImgInfo =
|
|
41232
|
-
|
|
41045
|
+
var setDrawImgInfo = function(image) {
|
|
41046
|
+
return _async_to_generator(function() {
|
|
41233
41047
|
var displayWidth, cropperWidth, copyDrawImg, imgWidth, imgHeight, isPortrait, rate, scale2;
|
|
41234
41048
|
return __generator(this, function(_state) {
|
|
41235
41049
|
switch (_state.label) {
|
|
@@ -41279,11 +41093,8 @@
|
|
|
41279
41093
|
];
|
|
41280
41094
|
}
|
|
41281
41095
|
});
|
|
41282
|
-
});
|
|
41283
|
-
|
|
41284
|
-
return _ref2.apply(this, arguments);
|
|
41285
|
-
};
|
|
41286
|
-
}();
|
|
41096
|
+
})();
|
|
41097
|
+
};
|
|
41287
41098
|
var chooseImage = function() {
|
|
41288
41099
|
Taro.chooseImage({
|
|
41289
41100
|
count: 1,
|
|
@@ -41296,8 +41107,8 @@
|
|
|
41296
41107
|
}
|
|
41297
41108
|
});
|
|
41298
41109
|
};
|
|
41299
|
-
var imageChange =
|
|
41300
|
-
|
|
41110
|
+
var imageChange = function(file) {
|
|
41111
|
+
return _async_to_generator(function() {
|
|
41301
41112
|
return __generator(this, function(_state) {
|
|
41302
41113
|
Taro.getImageInfo({
|
|
41303
41114
|
src: file.path
|
|
@@ -41309,11 +41120,8 @@
|
|
|
41309
41120
|
2
|
|
41310
41121
|
];
|
|
41311
41122
|
});
|
|
41312
|
-
});
|
|
41313
|
-
|
|
41314
|
-
return _ref2.apply(this, arguments);
|
|
41315
|
-
};
|
|
41316
|
-
}();
|
|
41123
|
+
})();
|
|
41124
|
+
};
|
|
41317
41125
|
var resetScale = function(scale2) {
|
|
41318
41126
|
setState(_object_spread_props(_object_spread({}, state), {
|
|
41319
41127
|
moveX: 0,
|
|
@@ -41462,8 +41270,8 @@
|
|
|
41462
41270
|
height: cropperWidth,
|
|
41463
41271
|
destWidth: cropperWidth,
|
|
41464
41272
|
destHeight: cropperWidth,
|
|
41465
|
-
success:
|
|
41466
|
-
|
|
41273
|
+
success: function(res) {
|
|
41274
|
+
return _async_to_generator(function() {
|
|
41467
41275
|
var filePath;
|
|
41468
41276
|
return __generator(this, function(_state) {
|
|
41469
41277
|
filePath = res.tempFilePath;
|
|
@@ -41473,11 +41281,8 @@
|
|
|
41473
41281
|
2
|
|
41474
41282
|
];
|
|
41475
41283
|
});
|
|
41476
|
-
});
|
|
41477
|
-
|
|
41478
|
-
return _ref2.apply(this, arguments);
|
|
41479
|
-
};
|
|
41480
|
-
}()
|
|
41284
|
+
})();
|
|
41285
|
+
}
|
|
41481
41286
|
});
|
|
41482
41287
|
};
|
|
41483
41288
|
var confirm = function() {
|
|
@@ -41499,8 +41304,8 @@
|
|
|
41499
41304
|
height: cropperWidth,
|
|
41500
41305
|
destWidth: cropperWidth * systemInfo.pixelRatio,
|
|
41501
41306
|
destHeight: cropperWidth * systemInfo.pixelRatio,
|
|
41502
|
-
success:
|
|
41503
|
-
|
|
41307
|
+
success: function(res) {
|
|
41308
|
+
return _async_to_generator(function() {
|
|
41504
41309
|
var filePath;
|
|
41505
41310
|
return __generator(this, function(_state) {
|
|
41506
41311
|
filePath = res.tempFilePath;
|
|
@@ -41510,11 +41315,8 @@
|
|
|
41510
41315
|
2
|
|
41511
41316
|
];
|
|
41512
41317
|
});
|
|
41513
|
-
});
|
|
41514
|
-
|
|
41515
|
-
return _ref2.apply(this, arguments);
|
|
41516
|
-
};
|
|
41517
|
-
}()
|
|
41318
|
+
})();
|
|
41319
|
+
}
|
|
41518
41320
|
});
|
|
41519
41321
|
};
|
|
41520
41322
|
var ToolBar = function() {
|
|
@@ -41611,14 +41413,13 @@
|
|
|
41611
41413
|
}
|
|
41612
41414
|
};
|
|
41613
41415
|
});
|
|
41614
|
-
var getNodeWidth =
|
|
41615
|
-
var
|
|
41616
|
-
|
|
41617
|
-
var
|
|
41416
|
+
var getNodeWidth = function(node) {
|
|
41417
|
+
var type2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "width";
|
|
41418
|
+
return _async_to_generator(function() {
|
|
41419
|
+
var refe;
|
|
41618
41420
|
return __generator(this, function(_state) {
|
|
41619
41421
|
switch (_state.label) {
|
|
41620
41422
|
case 0:
|
|
41621
|
-
type2 = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "width";
|
|
41622
41423
|
if (!node) return [
|
|
41623
41424
|
3,
|
|
41624
41425
|
2
|
|
@@ -41640,11 +41441,8 @@
|
|
|
41640
41441
|
];
|
|
41641
41442
|
}
|
|
41642
41443
|
});
|
|
41643
|
-
});
|
|
41644
|
-
|
|
41645
|
-
return _ref2.apply(this, arguments);
|
|
41646
|
-
};
|
|
41647
|
-
}();
|
|
41444
|
+
})();
|
|
41445
|
+
};
|
|
41648
41446
|
var clearDomTimeout = function() {
|
|
41649
41447
|
if (domTimer.current) {
|
|
41650
41448
|
clearTimeout(domTimer.current);
|
|
@@ -41652,8 +41450,8 @@
|
|
|
41652
41450
|
}
|
|
41653
41451
|
};
|
|
41654
41452
|
React.useEffect(function() {
|
|
41655
|
-
var init =
|
|
41656
|
-
|
|
41453
|
+
var init = function() {
|
|
41454
|
+
return _async_to_generator(function() {
|
|
41657
41455
|
var _barrageBody_current;
|
|
41658
41456
|
return __generator(this, function(_state) {
|
|
41659
41457
|
switch (_state.label) {
|
|
@@ -41678,11 +41476,8 @@
|
|
|
41678
41476
|
];
|
|
41679
41477
|
}
|
|
41680
41478
|
});
|
|
41681
|
-
});
|
|
41682
|
-
|
|
41683
|
-
return _ref2.apply(this, arguments);
|
|
41684
|
-
};
|
|
41685
|
-
}();
|
|
41479
|
+
})();
|
|
41480
|
+
};
|
|
41686
41481
|
domTimer.current = window.setTimeout(function() {
|
|
41687
41482
|
init();
|
|
41688
41483
|
}, 300);
|
|
@@ -41704,8 +41499,8 @@
|
|
|
41704
41499
|
play();
|
|
41705
41500
|
}, intervalCache);
|
|
41706
41501
|
};
|
|
41707
|
-
var setStyle =
|
|
41708
|
-
|
|
41502
|
+
var setStyle = function(el, currentIndex) {
|
|
41503
|
+
return _async_to_generator(function() {
|
|
41709
41504
|
var refe, width2, height2, elScrollDuration, error;
|
|
41710
41505
|
return __generator(this, function(_state) {
|
|
41711
41506
|
switch (_state.label) {
|
|
@@ -41757,11 +41552,8 @@
|
|
|
41757
41552
|
];
|
|
41758
41553
|
}
|
|
41759
41554
|
});
|
|
41760
|
-
});
|
|
41761
|
-
|
|
41762
|
-
return _ref2.apply(this, arguments);
|
|
41763
|
-
};
|
|
41764
|
-
}();
|
|
41555
|
+
})();
|
|
41556
|
+
};
|
|
41765
41557
|
var play = function() {
|
|
41766
41558
|
if (!loop && index2.current >= list.length) {
|
|
41767
41559
|
return;
|