antd-mobile 5.39.0 → 5.40.0
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/2x/README.md +8 -1
- package/2x/bundle/antd-mobile.cjs.development.js +2351 -1604
- package/2x/bundle/antd-mobile.cjs.js +7 -7
- package/2x/bundle/antd-mobile.es.development.js +1385 -638
- package/2x/bundle/antd-mobile.es.js +6070 -5443
- package/2x/bundle/antd-mobile.umd.development.js +2350 -1603
- package/2x/bundle/antd-mobile.umd.js +7 -7
- package/2x/bundle/style.css +7 -4
- package/2x/cjs/components/button/button.d.ts +2 -2
- package/2x/cjs/components/button/button.js +1 -0
- package/2x/cjs/components/calendar-picker-view/calendar-picker-view.js +3 -0
- package/2x/cjs/components/date-picker/date-picker-date-utils.d.ts +1 -1
- package/2x/cjs/components/date-picker/date-picker-date-utils.js +23 -8
- package/2x/cjs/components/date-picker/date-picker-quarter-utils.d.ts +3 -1
- package/2x/cjs/components/date-picker/date-picker-quarter-utils.js +7 -2
- package/2x/cjs/components/date-picker/date-picker-week-utils.d.ts +3 -1
- package/2x/cjs/components/date-picker/date-picker-week-utils.js +10 -3
- package/2x/cjs/components/date-picker-view/date-picker-view.d.ts +5 -3
- package/2x/cjs/components/date-picker-view/date-picker-view.js +3 -3
- package/2x/cjs/components/date-picker-view/useRenderLabel.js +2 -2
- package/2x/cjs/components/number-keyboard/number-keyboard.d.ts +1 -1
- package/2x/cjs/components/popover/wrapper.d.ts +6 -9
- package/2x/cjs/components/popover/wrapper.js +32 -6
- package/2x/cjs/components/space/space.css +4 -4
- package/2x/cjs/components/virtual-input/virtual-input.css +3 -0
- package/2x/cjs/components/virtual-input/virtual-input.js +34 -5
- package/2x/cjs/index.d.ts +1 -0
- package/2x/cjs/index.js +7 -0
- package/2x/cjs/locales/ar-SA.d.ts +1 -0
- package/2x/cjs/locales/ar-SA.js +1 -0
- package/2x/cjs/locales/base.d.ts +1 -0
- package/2x/cjs/locales/base.js +1 -0
- package/2x/cjs/locales/cnr-ME.d.ts +1 -0
- package/2x/cjs/locales/cnr-ME.js +1 -0
- package/2x/cjs/locales/da-DK.d.ts +1 -0
- package/2x/cjs/locales/de-DE.d.ts +1 -0
- package/2x/cjs/locales/de-DE.js +1 -0
- package/2x/cjs/locales/en-US.d.ts +1 -0
- package/2x/cjs/locales/es-ES.d.ts +1 -0
- package/2x/cjs/locales/fa-IR.d.ts +1 -0
- package/2x/cjs/locales/fr-FR.d.ts +1 -0
- package/2x/cjs/locales/hr-HR.d.ts +1 -0
- package/2x/cjs/locales/hr-HR.js +1 -0
- package/2x/cjs/locales/hu-HU.d.ts +1 -0
- package/2x/cjs/locales/id-ID.d.ts +1 -0
- package/2x/cjs/locales/in-ID.d.ts +1 -0
- package/2x/cjs/locales/in-ID.js +1 -0
- package/2x/cjs/locales/it-IT.d.ts +1 -0
- package/2x/cjs/locales/ja-JP.d.ts +1 -0
- package/2x/cjs/locales/kk-KZ.d.ts +1 -0
- package/2x/cjs/locales/ko-KR.d.ts +1 -0
- package/2x/cjs/locales/ms-MY.d.ts +1 -0
- package/2x/cjs/locales/ms-MY.js +1 -0
- package/2x/cjs/locales/nb-NO.d.ts +1 -0
- package/2x/cjs/locales/nl-NL.d.ts +1 -0
- package/2x/cjs/locales/pt-BR.d.ts +1 -0
- package/2x/cjs/locales/ru-RU.d.ts +1 -0
- package/2x/cjs/locales/ru-RU.js +8 -2
- package/2x/cjs/locales/sr-RS.d.ts +1 -0
- package/2x/cjs/locales/sr-RS.js +1 -0
- package/2x/cjs/locales/th-TH.d.ts +1 -0
- package/2x/cjs/locales/th-TH.js +1 -0
- package/2x/cjs/locales/tr-TR.d.ts +1 -0
- package/2x/cjs/locales/vi-VN.d.ts +1 -0
- package/2x/cjs/locales/vi-VN.js +1 -0
- package/2x/cjs/locales/zh-CN.js +1 -0
- package/2x/cjs/locales/zh-HK.d.ts +1 -0
- package/2x/cjs/locales/zh-TW.d.ts +1 -0
- package/2x/cjs/utils/render-to-body.d.ts +1 -1
- package/2x/cjs/utils/render-to-body.js +2 -9
- package/2x/cjs/utils/render.d.ts +1 -9
- package/2x/cjs/utils/render.js +10 -68
- package/2x/cjs/utils/unstable-render.d.ts +9 -0
- package/2x/cjs/utils/unstable-render.js +37 -0
- package/2x/es/components/button/button.d.ts +2 -2
- package/2x/es/components/button/button.js +1 -0
- package/2x/es/components/calendar-picker-view/calendar-picker-view.js +3 -0
- package/2x/es/components/date-picker/date-picker-date-utils.d.ts +1 -1
- package/2x/es/components/date-picker/date-picker-date-utils.js +23 -8
- package/2x/es/components/date-picker/date-picker-quarter-utils.d.ts +3 -1
- package/2x/es/components/date-picker/date-picker-quarter-utils.js +7 -2
- package/2x/es/components/date-picker/date-picker-week-utils.d.ts +3 -1
- package/2x/es/components/date-picker/date-picker-week-utils.js +10 -3
- package/2x/es/components/date-picker-view/date-picker-view.d.ts +5 -3
- package/2x/es/components/date-picker-view/date-picker-view.js +4 -4
- package/2x/es/components/date-picker-view/useRenderLabel.js +2 -2
- package/2x/es/components/number-keyboard/number-keyboard.d.ts +1 -1
- package/2x/es/components/popover/wrapper.d.ts +6 -9
- package/2x/es/components/popover/wrapper.js +30 -5
- package/2x/es/components/space/space.css +4 -4
- package/2x/es/components/virtual-input/virtual-input.css +3 -0
- package/2x/es/components/virtual-input/virtual-input.js +34 -5
- package/2x/es/index.d.ts +1 -0
- package/2x/es/index.js +3 -1
- package/2x/es/locales/ar-SA.d.ts +1 -0
- package/2x/es/locales/ar-SA.js +1 -0
- package/2x/es/locales/base.d.ts +1 -0
- package/2x/es/locales/base.js +1 -0
- package/2x/es/locales/cnr-ME.d.ts +1 -0
- package/2x/es/locales/cnr-ME.js +1 -0
- package/2x/es/locales/da-DK.d.ts +1 -0
- package/2x/es/locales/de-DE.d.ts +1 -0
- package/2x/es/locales/de-DE.js +1 -0
- package/2x/es/locales/en-US.d.ts +1 -0
- package/2x/es/locales/es-ES.d.ts +1 -0
- package/2x/es/locales/fa-IR.d.ts +1 -0
- package/2x/es/locales/fr-FR.d.ts +1 -0
- package/2x/es/locales/hr-HR.d.ts +1 -0
- package/2x/es/locales/hr-HR.js +1 -0
- package/2x/es/locales/hu-HU.d.ts +1 -0
- package/2x/es/locales/id-ID.d.ts +1 -0
- package/2x/es/locales/in-ID.d.ts +1 -0
- package/2x/es/locales/in-ID.js +1 -0
- package/2x/es/locales/it-IT.d.ts +1 -0
- package/2x/es/locales/ja-JP.d.ts +1 -0
- package/2x/es/locales/kk-KZ.d.ts +1 -0
- package/2x/es/locales/ko-KR.d.ts +1 -0
- package/2x/es/locales/ms-MY.d.ts +1 -0
- package/2x/es/locales/ms-MY.js +1 -0
- package/2x/es/locales/nb-NO.d.ts +1 -0
- package/2x/es/locales/nl-NL.d.ts +1 -0
- package/2x/es/locales/pt-BR.d.ts +1 -0
- package/2x/es/locales/ru-RU.d.ts +1 -0
- package/2x/es/locales/ru-RU.js +8 -2
- package/2x/es/locales/sr-RS.d.ts +1 -0
- package/2x/es/locales/sr-RS.js +1 -0
- package/2x/es/locales/th-TH.d.ts +1 -0
- package/2x/es/locales/th-TH.js +1 -0
- package/2x/es/locales/tr-TR.d.ts +1 -0
- package/2x/es/locales/vi-VN.d.ts +1 -0
- package/2x/es/locales/vi-VN.js +1 -0
- package/2x/es/locales/zh-CN.js +1 -0
- package/2x/es/locales/zh-HK.d.ts +1 -0
- package/2x/es/locales/zh-TW.d.ts +1 -0
- package/2x/es/utils/render-to-body.d.ts +1 -1
- package/2x/es/utils/render-to-body.js +2 -9
- package/2x/es/utils/render.d.ts +1 -9
- package/2x/es/utils/render.js +1 -65
- package/2x/es/utils/unstable-render.d.ts +9 -0
- package/2x/es/utils/unstable-render.js +28 -0
- package/2x/package.json +2 -2
- package/README.md +8 -1
- package/bundle/antd-mobile.cjs.development.js +2351 -1604
- package/bundle/antd-mobile.cjs.js +7 -7
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +1385 -638
- package/bundle/antd-mobile.es.js +6070 -5443
- package/bundle/antd-mobile.umd.development.js +2350 -1603
- package/bundle/antd-mobile.umd.js +7 -7
- package/bundle/style.css +1 -1
- package/cjs/components/button/button.d.ts +2 -2
- package/cjs/components/button/button.js +1 -0
- package/cjs/components/calendar-picker-view/calendar-picker-view.js +3 -0
- package/cjs/components/date-picker/date-picker-date-utils.d.ts +1 -1
- package/cjs/components/date-picker/date-picker-date-utils.js +23 -8
- package/cjs/components/date-picker/date-picker-quarter-utils.d.ts +3 -1
- package/cjs/components/date-picker/date-picker-quarter-utils.js +7 -2
- package/cjs/components/date-picker/date-picker-week-utils.d.ts +3 -1
- package/cjs/components/date-picker/date-picker-week-utils.js +10 -3
- package/cjs/components/date-picker-view/date-picker-view.d.ts +5 -3
- package/cjs/components/date-picker-view/date-picker-view.js +3 -3
- package/cjs/components/date-picker-view/useRenderLabel.js +2 -2
- package/cjs/components/number-keyboard/number-keyboard.d.ts +1 -1
- package/cjs/components/popover/wrapper.d.ts +6 -9
- package/cjs/components/popover/wrapper.js +32 -6
- package/cjs/components/space/space.css +3 -3
- package/cjs/components/virtual-input/virtual-input.css +3 -0
- package/cjs/components/virtual-input/virtual-input.js +34 -5
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +7 -0
- package/cjs/locales/ar-SA.d.ts +1 -0
- package/cjs/locales/ar-SA.js +1 -0
- package/cjs/locales/base.d.ts +1 -0
- package/cjs/locales/base.js +1 -0
- package/cjs/locales/cnr-ME.d.ts +1 -0
- package/cjs/locales/cnr-ME.js +1 -0
- package/cjs/locales/da-DK.d.ts +1 -0
- package/cjs/locales/de-DE.d.ts +1 -0
- package/cjs/locales/de-DE.js +1 -0
- package/cjs/locales/en-US.d.ts +1 -0
- package/cjs/locales/es-ES.d.ts +1 -0
- package/cjs/locales/fa-IR.d.ts +1 -0
- package/cjs/locales/fr-FR.d.ts +1 -0
- package/cjs/locales/hr-HR.d.ts +1 -0
- package/cjs/locales/hr-HR.js +1 -0
- package/cjs/locales/hu-HU.d.ts +1 -0
- package/cjs/locales/id-ID.d.ts +1 -0
- package/cjs/locales/in-ID.d.ts +1 -0
- package/cjs/locales/in-ID.js +1 -0
- package/cjs/locales/it-IT.d.ts +1 -0
- package/cjs/locales/ja-JP.d.ts +1 -0
- package/cjs/locales/kk-KZ.d.ts +1 -0
- package/cjs/locales/ko-KR.d.ts +1 -0
- package/cjs/locales/ms-MY.d.ts +1 -0
- package/cjs/locales/ms-MY.js +1 -0
- package/cjs/locales/nb-NO.d.ts +1 -0
- package/cjs/locales/nl-NL.d.ts +1 -0
- package/cjs/locales/pt-BR.d.ts +1 -0
- package/cjs/locales/ru-RU.d.ts +1 -0
- package/cjs/locales/ru-RU.js +8 -2
- package/cjs/locales/sr-RS.d.ts +1 -0
- package/cjs/locales/sr-RS.js +1 -0
- package/cjs/locales/th-TH.d.ts +1 -0
- package/cjs/locales/th-TH.js +1 -0
- package/cjs/locales/tr-TR.d.ts +1 -0
- package/cjs/locales/vi-VN.d.ts +1 -0
- package/cjs/locales/vi-VN.js +1 -0
- package/cjs/locales/zh-CN.js +1 -0
- package/cjs/locales/zh-HK.d.ts +1 -0
- package/cjs/locales/zh-TW.d.ts +1 -0
- package/cjs/utils/render-to-body.d.ts +1 -1
- package/cjs/utils/render-to-body.js +2 -9
- package/cjs/utils/render.d.ts +1 -9
- package/cjs/utils/render.js +10 -68
- package/cjs/utils/unstable-render.d.ts +9 -0
- package/cjs/utils/unstable-render.js +37 -0
- package/es/components/button/button.d.ts +2 -2
- package/es/components/button/button.js +1 -0
- package/es/components/calendar-picker-view/calendar-picker-view.js +3 -0
- package/es/components/date-picker/date-picker-date-utils.d.ts +1 -1
- package/es/components/date-picker/date-picker-date-utils.js +23 -8
- package/es/components/date-picker/date-picker-quarter-utils.d.ts +3 -1
- package/es/components/date-picker/date-picker-quarter-utils.js +7 -2
- package/es/components/date-picker/date-picker-week-utils.d.ts +3 -1
- package/es/components/date-picker/date-picker-week-utils.js +10 -3
- package/es/components/date-picker-view/date-picker-view.d.ts +5 -3
- package/es/components/date-picker-view/date-picker-view.js +4 -4
- package/es/components/date-picker-view/useRenderLabel.js +2 -2
- package/es/components/number-keyboard/number-keyboard.d.ts +1 -1
- package/es/components/popover/wrapper.d.ts +6 -9
- package/es/components/popover/wrapper.js +30 -5
- package/es/components/space/space.css +3 -3
- package/es/components/virtual-input/virtual-input.css +3 -0
- package/es/components/virtual-input/virtual-input.js +34 -5
- package/es/index.d.ts +1 -0
- package/es/index.js +3 -1
- package/es/locales/ar-SA.d.ts +1 -0
- package/es/locales/ar-SA.js +1 -0
- package/es/locales/base.d.ts +1 -0
- package/es/locales/base.js +1 -0
- package/es/locales/cnr-ME.d.ts +1 -0
- package/es/locales/cnr-ME.js +1 -0
- package/es/locales/da-DK.d.ts +1 -0
- package/es/locales/de-DE.d.ts +1 -0
- package/es/locales/de-DE.js +1 -0
- package/es/locales/en-US.d.ts +1 -0
- package/es/locales/es-ES.d.ts +1 -0
- package/es/locales/fa-IR.d.ts +1 -0
- package/es/locales/fr-FR.d.ts +1 -0
- package/es/locales/hr-HR.d.ts +1 -0
- package/es/locales/hr-HR.js +1 -0
- package/es/locales/hu-HU.d.ts +1 -0
- package/es/locales/id-ID.d.ts +1 -0
- package/es/locales/in-ID.d.ts +1 -0
- package/es/locales/in-ID.js +1 -0
- package/es/locales/it-IT.d.ts +1 -0
- package/es/locales/ja-JP.d.ts +1 -0
- package/es/locales/kk-KZ.d.ts +1 -0
- package/es/locales/ko-KR.d.ts +1 -0
- package/es/locales/ms-MY.d.ts +1 -0
- package/es/locales/ms-MY.js +1 -0
- package/es/locales/nb-NO.d.ts +1 -0
- package/es/locales/nl-NL.d.ts +1 -0
- package/es/locales/pt-BR.d.ts +1 -0
- package/es/locales/ru-RU.d.ts +1 -0
- package/es/locales/ru-RU.js +8 -2
- package/es/locales/sr-RS.d.ts +1 -0
- package/es/locales/sr-RS.js +1 -0
- package/es/locales/th-TH.d.ts +1 -0
- package/es/locales/th-TH.js +1 -0
- package/es/locales/tr-TR.d.ts +1 -0
- package/es/locales/vi-VN.d.ts +1 -0
- package/es/locales/vi-VN.js +1 -0
- package/es/locales/zh-CN.js +1 -0
- package/es/locales/zh-HK.d.ts +1 -0
- package/es/locales/zh-TW.d.ts +1 -0
- package/es/utils/render-to-body.d.ts +1 -1
- package/es/utils/render-to-body.js +2 -9
- package/es/utils/render.d.ts +1 -9
- package/es/utils/render.js +1 -65
- package/es/utils/unstable-render.d.ts +9 -0
- package/es/utils/unstable-render.js +28 -0
- package/package.json +2 -2
- package/umd/antd-mobile.js +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as React$
|
|
2
|
-
import React__default, { useContext, useRef, useMemo, useEffect, useState, useCallback, useLayoutEffect as useLayoutEffect$1, forwardRef, useImperativeHandle, memo, isValidElement, createContext, cloneElement } from "react";
|
|
3
|
-
import * as ReactDOM from "react-dom";
|
|
4
|
-
import ReactDOM__default, { unstable_batchedUpdates, createPortal
|
|
1
|
+
import * as React$2 from "react";
|
|
2
|
+
import React__default, { useContext, useRef, useMemo as useMemo$2, useEffect, useState, useCallback, useLayoutEffect as useLayoutEffect$1, forwardRef, useImperativeHandle, memo, version as version$1, isValidElement, createContext, cloneElement } from "react";
|
|
3
|
+
import * as ReactDOM$1 from "react-dom";
|
|
4
|
+
import ReactDOM__default, { unstable_batchedUpdates, createPortal } from "react-dom";
|
|
5
5
|
const canUseDom$1 = !!(typeof window !== "undefined" && typeof document !== "undefined" && window.document && window.document.createElement);
|
|
6
6
|
if (canUseDom$1) {
|
|
7
7
|
document.addEventListener("touchstart", () => {
|
|
@@ -198,6 +198,7 @@ const zhCN = {
|
|
|
198
198
|
confirm: "确认",
|
|
199
199
|
start: "开始",
|
|
200
200
|
end: "结束",
|
|
201
|
+
startAndEnd: "开始/结束",
|
|
201
202
|
today: "今日",
|
|
202
203
|
markItems: ["一", "二", "三", "四", "五", "六", "日"],
|
|
203
204
|
yearAndMonth: "${year}年${month}月"
|
|
@@ -484,7 +485,7 @@ function useMemoizedFn(fn) {
|
|
|
484
485
|
}
|
|
485
486
|
}
|
|
486
487
|
var fnRef = useRef(fn);
|
|
487
|
-
fnRef.current = useMemo(function() {
|
|
488
|
+
fnRef.current = useMemo$2(function() {
|
|
488
489
|
return fn;
|
|
489
490
|
}, [fn]);
|
|
490
491
|
var memoizedFn = useRef();
|
|
@@ -510,9 +511,9 @@ function depsAreSame(oldDeps, deps) {
|
|
|
510
511
|
return true;
|
|
511
512
|
}
|
|
512
513
|
function useLatest(value) {
|
|
513
|
-
var
|
|
514
|
-
|
|
515
|
-
return
|
|
514
|
+
var ref2 = useRef(value);
|
|
515
|
+
ref2.current = value;
|
|
516
|
+
return ref2;
|
|
516
517
|
}
|
|
517
518
|
var useUnmount = function(fn) {
|
|
518
519
|
if (isDev$1) {
|
|
@@ -1169,7 +1170,7 @@ function useDebounceFn(fn, options) {
|
|
|
1169
1170
|
}
|
|
1170
1171
|
var fnRef = useLatest(fn);
|
|
1171
1172
|
var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
|
|
1172
|
-
var debounced = useMemo(function() {
|
|
1173
|
+
var debounced = useMemo$2(function() {
|
|
1173
1174
|
return debounce$2(function() {
|
|
1174
1175
|
var args = [];
|
|
1175
1176
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -1824,16 +1825,16 @@ function useLockFn(fn) {
|
|
|
1824
1825
|
}, [fn]);
|
|
1825
1826
|
}
|
|
1826
1827
|
function useRafState(initialState) {
|
|
1827
|
-
var
|
|
1828
|
+
var ref2 = useRef(0);
|
|
1828
1829
|
var _a = __read(useState(initialState), 2), state = _a[0], setState = _a[1];
|
|
1829
1830
|
var setRafState = useCallback(function(value) {
|
|
1830
|
-
cancelAnimationFrame(
|
|
1831
|
-
|
|
1831
|
+
cancelAnimationFrame(ref2.current);
|
|
1832
|
+
ref2.current = requestAnimationFrame(function() {
|
|
1832
1833
|
setState(value);
|
|
1833
1834
|
});
|
|
1834
1835
|
}, []);
|
|
1835
1836
|
useUnmount$1(function() {
|
|
1836
|
-
cancelAnimationFrame(
|
|
1837
|
+
cancelAnimationFrame(ref2.current);
|
|
1837
1838
|
});
|
|
1838
1839
|
return [state, setRafState];
|
|
1839
1840
|
}
|
|
@@ -2382,7 +2383,7 @@ function useThrottleFn(fn, options) {
|
|
|
2382
2383
|
}
|
|
2383
2384
|
var fnRef = useLatest(fn);
|
|
2384
2385
|
var wait = (_a = options === null || options === void 0 ? void 0 : options.wait) !== null && _a !== void 0 ? _a : 1e3;
|
|
2385
|
-
var throttled = useMemo(function() {
|
|
2386
|
+
var throttled = useMemo$2(function() {
|
|
2386
2387
|
return throttle$2(function() {
|
|
2387
2388
|
var args = [];
|
|
2388
2389
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
@@ -3716,7 +3717,7 @@ const withAnimated = (Component, host2) => {
|
|
|
3716
3717
|
const hasInstance = !is.fun(Component) || Component.prototype && Component.prototype.isReactComponent;
|
|
3717
3718
|
return forwardRef((givenProps, givenRef) => {
|
|
3718
3719
|
const instanceRef = useRef(null);
|
|
3719
|
-
const
|
|
3720
|
+
const ref2 = hasInstance && useCallback((value) => {
|
|
3720
3721
|
instanceRef.current = updateRef(givenRef, value);
|
|
3721
3722
|
}, [givenRef]);
|
|
3722
3723
|
const [props, deps] = getAnimatedState(givenProps, host2);
|
|
@@ -3749,8 +3750,8 @@ const withAnimated = (Component, host2) => {
|
|
|
3749
3750
|
each(observer2.deps, (dep) => removeFluidObserver(dep, observer2));
|
|
3750
3751
|
});
|
|
3751
3752
|
const usedProps = host2.getComponentProps(props.getValue());
|
|
3752
|
-
return React$
|
|
3753
|
-
ref
|
|
3753
|
+
return React$2.createElement(Component, _extends$3({}, usedProps, {
|
|
3754
|
+
ref: ref2
|
|
3754
3755
|
}));
|
|
3755
3756
|
});
|
|
3756
3757
|
};
|
|
@@ -3776,12 +3777,12 @@ function getAnimatedState(props, host2) {
|
|
|
3776
3777
|
TreeContext.dependencies = null;
|
|
3777
3778
|
return [props, dependencies];
|
|
3778
3779
|
}
|
|
3779
|
-
function updateRef(
|
|
3780
|
-
if (
|
|
3781
|
-
if (is.fun(
|
|
3782
|
-
|
|
3780
|
+
function updateRef(ref2, value) {
|
|
3781
|
+
if (ref2) {
|
|
3782
|
+
if (is.fun(ref2))
|
|
3783
|
+
ref2(value);
|
|
3783
3784
|
else
|
|
3784
|
-
|
|
3785
|
+
ref2.current = value;
|
|
3785
3786
|
}
|
|
3786
3787
|
return value;
|
|
3787
3788
|
}
|
|
@@ -3927,17 +3928,17 @@ function hasProps(props) {
|
|
|
3927
3928
|
function isAsyncTo(to2) {
|
|
3928
3929
|
return is.fun(to2) || is.arr(to2) && is.obj(to2[0]);
|
|
3929
3930
|
}
|
|
3930
|
-
function detachRefs(ctrl,
|
|
3931
|
+
function detachRefs(ctrl, ref2) {
|
|
3931
3932
|
var _ctrl$ref;
|
|
3932
3933
|
(_ctrl$ref = ctrl.ref) == null ? void 0 : _ctrl$ref.delete(ctrl);
|
|
3933
|
-
|
|
3934
|
+
ref2 == null ? void 0 : ref2.delete(ctrl);
|
|
3934
3935
|
}
|
|
3935
|
-
function replaceRef(ctrl,
|
|
3936
|
-
if (
|
|
3936
|
+
function replaceRef(ctrl, ref2) {
|
|
3937
|
+
if (ref2 && ctrl.ref !== ref2) {
|
|
3937
3938
|
var _ctrl$ref2;
|
|
3938
3939
|
(_ctrl$ref2 = ctrl.ref) == null ? void 0 : _ctrl$ref2.delete(ctrl);
|
|
3939
|
-
|
|
3940
|
-
ctrl.ref =
|
|
3940
|
+
ref2.add(ctrl);
|
|
3941
|
+
ctrl.ref = ref2;
|
|
3941
3942
|
}
|
|
3942
3943
|
}
|
|
3943
3944
|
const config$1 = {
|
|
@@ -5289,7 +5290,7 @@ const SpringContext = (_ref) => {
|
|
|
5289
5290
|
const {
|
|
5290
5291
|
Provider
|
|
5291
5292
|
} = ctx;
|
|
5292
|
-
return React$
|
|
5293
|
+
return React$2.createElement(Provider, {
|
|
5293
5294
|
value: props
|
|
5294
5295
|
}, children);
|
|
5295
5296
|
};
|
|
@@ -5297,7 +5298,7 @@ const ctx = makeContext(SpringContext, {});
|
|
|
5297
5298
|
SpringContext.Provider = ctx.Provider;
|
|
5298
5299
|
SpringContext.Consumer = ctx.Consumer;
|
|
5299
5300
|
function makeContext(target, init) {
|
|
5300
|
-
Object.assign(target, React$
|
|
5301
|
+
Object.assign(target, React$2.createContext(init));
|
|
5301
5302
|
target.Provider._context = target;
|
|
5302
5303
|
target.Consumer._context = target;
|
|
5303
5304
|
return target;
|
|
@@ -5373,10 +5374,10 @@ function useSprings(length, props, deps) {
|
|
|
5373
5374
|
const propsFn = is.fun(props) && props;
|
|
5374
5375
|
if (propsFn && !deps)
|
|
5375
5376
|
deps = [];
|
|
5376
|
-
const
|
|
5377
|
+
const ref2 = useMemo$2(() => propsFn || arguments.length == 3 ? SpringRef() : void 0, []);
|
|
5377
5378
|
const layoutId = useRef(0);
|
|
5378
5379
|
const forceUpdate = useForceUpdate();
|
|
5379
|
-
const state = useMemo(() => ({
|
|
5380
|
+
const state = useMemo$2(() => ({
|
|
5380
5381
|
ctrls: [],
|
|
5381
5382
|
queue: [],
|
|
5382
5383
|
flush(ctrl, updates2) {
|
|
@@ -5394,15 +5395,15 @@ function useSprings(length, props, deps) {
|
|
|
5394
5395
|
const ctrls = useRef([...state.ctrls]);
|
|
5395
5396
|
const updates = [];
|
|
5396
5397
|
const prevLength = usePrev(length) || 0;
|
|
5397
|
-
useMemo(() => {
|
|
5398
|
+
useMemo$2(() => {
|
|
5398
5399
|
each(ctrls.current.slice(length, prevLength), (ctrl) => {
|
|
5399
|
-
detachRefs(ctrl,
|
|
5400
|
+
detachRefs(ctrl, ref2);
|
|
5400
5401
|
ctrl.stop(true);
|
|
5401
5402
|
});
|
|
5402
5403
|
ctrls.current.length = length;
|
|
5403
5404
|
declareUpdates(prevLength, length);
|
|
5404
5405
|
}, [length]);
|
|
5405
|
-
useMemo(() => {
|
|
5406
|
+
useMemo$2(() => {
|
|
5406
5407
|
declareUpdates(0, Math.min(prevLength, length));
|
|
5407
5408
|
}, deps);
|
|
5408
5409
|
function declareUpdates(startIndex, endIndex) {
|
|
@@ -5429,7 +5430,7 @@ function useSprings(length, props, deps) {
|
|
|
5429
5430
|
each(queue, (cb) => cb());
|
|
5430
5431
|
}
|
|
5431
5432
|
each(ctrls.current, (ctrl, i2) => {
|
|
5432
|
-
|
|
5433
|
+
ref2 == null ? void 0 : ref2.add(ctrl);
|
|
5433
5434
|
if (hasContext) {
|
|
5434
5435
|
ctrl.start({
|
|
5435
5436
|
default: context
|
|
@@ -5450,12 +5451,12 @@ function useSprings(length, props, deps) {
|
|
|
5450
5451
|
each(state.ctrls, (ctrl) => ctrl.stop(true));
|
|
5451
5452
|
});
|
|
5452
5453
|
const values = springs.map((x) => _extends$2({}, x));
|
|
5453
|
-
return
|
|
5454
|
+
return ref2 ? [values, ref2] : values;
|
|
5454
5455
|
}
|
|
5455
5456
|
function useSpring(props, deps) {
|
|
5456
5457
|
const isFn = is.fun(props);
|
|
5457
|
-
const [[values],
|
|
5458
|
-
return isFn || arguments.length == 2 ? [values,
|
|
5458
|
+
const [[values], ref2] = useSprings(1, isFn ? props : [props], isFn ? deps || [] : deps);
|
|
5459
|
+
return isFn || arguments.length == 2 ? [values, ref2] : values;
|
|
5459
5460
|
}
|
|
5460
5461
|
let TransitionPhase;
|
|
5461
5462
|
(function(TransitionPhase2) {
|
|
@@ -5845,9 +5846,9 @@ const Mask = (p) => {
|
|
|
5845
5846
|
const {
|
|
5846
5847
|
locale
|
|
5847
5848
|
} = useConfig();
|
|
5848
|
-
const
|
|
5849
|
-
useLockScroll(
|
|
5850
|
-
const background = useMemo(() => {
|
|
5849
|
+
const ref2 = useRef(null);
|
|
5850
|
+
useLockScroll(ref2, props.visible && props.disableBodyScroll);
|
|
5851
|
+
const background = useMemo$2(() => {
|
|
5851
5852
|
var _a;
|
|
5852
5853
|
const opacity2 = (_a = opacityRecord[props.opacity]) !== null && _a !== void 0 ? _a : props.opacity;
|
|
5853
5854
|
const rgb2 = colorRecord$4[props.color];
|
|
@@ -5883,7 +5884,7 @@ const Mask = (p) => {
|
|
|
5883
5884
|
});
|
|
5884
5885
|
const node = withStopPropagation(props.stopPropagation, withNativeProps(props, React__default.createElement(animated.div, {
|
|
5885
5886
|
className: classPrefix$1q,
|
|
5886
|
-
ref,
|
|
5887
|
+
ref: ref2,
|
|
5887
5888
|
"aria-hidden": true,
|
|
5888
5889
|
style: Object.assign(Object.assign({}, props.style), {
|
|
5889
5890
|
background,
|
|
@@ -5911,7 +5912,7 @@ const Mask = (p) => {
|
|
|
5911
5912
|
}, renderToContainer(props.getContainer, node));
|
|
5912
5913
|
};
|
|
5913
5914
|
function AddOutline(props) {
|
|
5914
|
-
return /* @__PURE__ */ React$
|
|
5915
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
5915
5916
|
width: "1em",
|
|
5916
5917
|
height: "1em",
|
|
5917
5918
|
viewBox: "0 0 48 48",
|
|
@@ -5922,15 +5923,15 @@ function AddOutline(props) {
|
|
|
5922
5923
|
verticalAlign: "-0.125em"
|
|
5923
5924
|
}, props.style),
|
|
5924
5925
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
5925
|
-
}), /* @__PURE__ */ React$
|
|
5926
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
5926
5927
|
id: "AddOutline-AddOutline",
|
|
5927
5928
|
stroke: "none",
|
|
5928
5929
|
strokeWidth: 1,
|
|
5929
5930
|
fill: "none",
|
|
5930
5931
|
fillRule: "evenodd"
|
|
5931
|
-
}, /* @__PURE__ */ React$
|
|
5932
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
5932
5933
|
id: "AddOutline-add"
|
|
5933
|
-
}, /* @__PURE__ */ React$
|
|
5934
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
5934
5935
|
id: "AddOutline-矩形",
|
|
5935
5936
|
fill: "#FFFFFF",
|
|
5936
5937
|
opacity: 0,
|
|
@@ -5938,7 +5939,7 @@ function AddOutline(props) {
|
|
|
5938
5939
|
y: 0,
|
|
5939
5940
|
width: 48,
|
|
5940
5941
|
height: 48
|
|
5941
|
-
}), /* @__PURE__ */ React$
|
|
5942
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
5942
5943
|
d: "M25.1,6.5 C25.3209139,6.5 25.5,6.6790861 25.5,6.9 L25.5,22.5 L41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L25.5,25.5 L25.5,41.1 C25.5,41.3209139 25.3209139,41.5 25.1,41.5 L22.9,41.5 C22.6790861,41.5 22.5,41.3209139 22.5,41.1 L22.5,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L22.5,22.5 L22.5,6.9 C22.5,6.6790861 22.6790861,6.5 22.9,6.5 L25.1,6.5 Z",
|
|
5943
5944
|
id: "AddOutline-路径",
|
|
5944
5945
|
fill: "currentColor",
|
|
@@ -5946,7 +5947,7 @@ function AddOutline(props) {
|
|
|
5946
5947
|
}))));
|
|
5947
5948
|
}
|
|
5948
5949
|
function CheckCircleFill(props) {
|
|
5949
|
-
return /* @__PURE__ */ React$
|
|
5950
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
5950
5951
|
width: "1em",
|
|
5951
5952
|
height: "1em",
|
|
5952
5953
|
viewBox: "0 0 48 48",
|
|
@@ -5957,15 +5958,15 @@ function CheckCircleFill(props) {
|
|
|
5957
5958
|
verticalAlign: "-0.125em"
|
|
5958
5959
|
}, props.style),
|
|
5959
5960
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
5960
|
-
}), /* @__PURE__ */ React$
|
|
5961
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
5961
5962
|
id: "CheckCircleFill-CheckCircleFill",
|
|
5962
5963
|
stroke: "none",
|
|
5963
5964
|
strokeWidth: 1,
|
|
5964
5965
|
fill: "none",
|
|
5965
5966
|
fillRule: "evenodd"
|
|
5966
|
-
}, /* @__PURE__ */ React$
|
|
5967
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
5967
5968
|
id: "CheckCircleFill-编组"
|
|
5968
|
-
}, /* @__PURE__ */ React$
|
|
5969
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
5969
5970
|
id: "CheckCircleFill-矩形",
|
|
5970
5971
|
fill: "#FFFFFF",
|
|
5971
5972
|
opacity: 0,
|
|
@@ -5973,7 +5974,7 @@ function CheckCircleFill(props) {
|
|
|
5973
5974
|
y: 0,
|
|
5974
5975
|
width: 48,
|
|
5975
5976
|
height: 48
|
|
5976
|
-
}), /* @__PURE__ */ React$
|
|
5977
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
5977
5978
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M35.8202936,17 L32.7086692,17 C32.6025922,17 32.500859,17.0421352 32.4258461,17.1171378 L32.4258461,17.1171378 L21.3922352,28.1492247 L16.3591562,23.1163755 C16.2841422,23.0413649 16.1824034,22.9992247 16.0763199,22.9992247 L16.0763199,22.9992247 L12.9653996,22.9992247 C12.859342,22.9992247 12.7576259,23.0413445 12.6826161,23.1163228 C12.5263737,23.2724998 12.5263207,23.5257658 12.6824977,23.6820082 C12.8583452,23.8579294 13.0341927,24.0338505 13.2100402,24.2097716 C13.2577488,24.2575002 13.3065097,24.3063074 13.3562592,24.3561283 L13.6661084,24.6666997 C14.3074913,25.3100963 15.0728595,26.0807873 15.8520136,26.8666654 L16.4372421,27.4571699 C18.2552812,29.2922548 19.9983838,31.0574343 20.2666114,31.3285298 L20.301004,31.3632341 C20.8867904,31.9490205 21.8365379,31.9490205 22.4223243,31.3632341 L22.4223243,31.3632341 L36.1031319,17.6828471 C36.1781492,17.6078322 36.2202936,17.5060887 36.2202936,17.4 C36.2202936,17.1790861 36.0412075,17 35.8202936,17 L35.8202936,17 Z",
|
|
5978
5979
|
id: "CheckCircleFill-形状结合",
|
|
5979
5980
|
fill: "currentColor",
|
|
@@ -5981,7 +5982,7 @@ function CheckCircleFill(props) {
|
|
|
5981
5982
|
}))));
|
|
5982
5983
|
}
|
|
5983
5984
|
function CheckOutline(props) {
|
|
5984
|
-
return /* @__PURE__ */ React$
|
|
5985
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
5985
5986
|
width: "1em",
|
|
5986
5987
|
height: "1em",
|
|
5987
5988
|
viewBox: "0 0 48 48",
|
|
@@ -5992,15 +5993,15 @@ function CheckOutline(props) {
|
|
|
5992
5993
|
verticalAlign: "-0.125em"
|
|
5993
5994
|
}, props.style),
|
|
5994
5995
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
5995
|
-
}), /* @__PURE__ */ React$
|
|
5996
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
5996
5997
|
id: "CheckOutline-CheckOutline",
|
|
5997
5998
|
stroke: "none",
|
|
5998
5999
|
strokeWidth: 1,
|
|
5999
6000
|
fill: "none",
|
|
6000
6001
|
fillRule: "evenodd"
|
|
6001
|
-
}, /* @__PURE__ */ React$
|
|
6002
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6002
6003
|
id: "CheckOutline-编组"
|
|
6003
|
-
}, /* @__PURE__ */ React$
|
|
6004
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6004
6005
|
id: "CheckOutline-矩形",
|
|
6005
6006
|
fill: "#FFFFFF",
|
|
6006
6007
|
opacity: 0,
|
|
@@ -6008,7 +6009,7 @@ function CheckOutline(props) {
|
|
|
6008
6009
|
y: 0,
|
|
6009
6010
|
width: 48,
|
|
6010
6011
|
height: 48
|
|
6011
|
-
}), /* @__PURE__ */ React$
|
|
6012
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6012
6013
|
d: "M44.309608,12.6841286 L21.2180499,35.5661955 L21.2180499,35.5661955 C20.6343343,36.1446015 19.6879443,36.1446015 19.1042286,35.5661955 C19.0538201,35.5162456 19.0077648,35.4636155 18.9660627,35.4087682 C18.9113105,35.368106 18.8584669,35.3226694 18.808302,35.2729607 L3.6903839,20.2920499 C3.53346476,20.1365529 3.53231192,19.8832895 3.68780898,19.7263704 C3.7629255,19.6505669 3.86521855,19.6079227 3.97193622,19.6079227 L7.06238923,19.6079227 C7.16784214,19.6079227 7.26902895,19.6495648 7.34393561,19.7237896 L20.160443,32.4236157 L20.160443,32.4236157 L40.656066,12.115858 C40.7309719,12.0416387 40.8321549,12 40.9376034,12 L44.0280571,12 C44.248971,12 44.4280571,12.1790861 44.4280571,12.4 C44.4280571,12.5067183 44.3854124,12.609012 44.309608,12.6841286 Z",
|
|
6013
6014
|
id: "CheckOutline-路径",
|
|
6014
6015
|
fill: "currentColor",
|
|
@@ -6016,7 +6017,7 @@ function CheckOutline(props) {
|
|
|
6016
6017
|
}))));
|
|
6017
6018
|
}
|
|
6018
6019
|
function ClockCircleFill(props) {
|
|
6019
|
-
return /* @__PURE__ */ React$
|
|
6020
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6020
6021
|
width: "1em",
|
|
6021
6022
|
height: "1em",
|
|
6022
6023
|
viewBox: "0 0 48 48",
|
|
@@ -6027,15 +6028,15 @@ function ClockCircleFill(props) {
|
|
|
6027
6028
|
verticalAlign: "-0.125em"
|
|
6028
6029
|
}, props.style),
|
|
6029
6030
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6030
|
-
}), /* @__PURE__ */ React$
|
|
6031
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6031
6032
|
id: "ClockCircleFill-ClockCircleFill",
|
|
6032
6033
|
stroke: "none",
|
|
6033
6034
|
strokeWidth: 1,
|
|
6034
6035
|
fill: "none",
|
|
6035
6036
|
fillRule: "evenodd"
|
|
6036
|
-
}, /* @__PURE__ */ React$
|
|
6037
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6037
6038
|
id: "ClockCircleFill-编组"
|
|
6038
|
-
}, /* @__PURE__ */ React$
|
|
6039
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6039
6040
|
id: "ClockCircleFill-矩形",
|
|
6040
6041
|
fill: "#FFFFFF",
|
|
6041
6042
|
opacity: 0,
|
|
@@ -6043,7 +6044,7 @@ function ClockCircleFill(props) {
|
|
|
6043
6044
|
y: 0,
|
|
6044
6045
|
width: 48,
|
|
6045
6046
|
height: 48
|
|
6046
|
-
}), /* @__PURE__ */ React$
|
|
6047
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6047
6048
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24.6,14 L22.4,14 C22.1790861,14 22,14.1790861 22,14.4 L22,14.4 L22,23.1715729 L22.0065089,23.3850222 C22.0584325,24.2354066 22.4192395,25.0405598 23.0251263,25.6464466 L23.0251263,25.6464466 L31.1564971,33.7778175 C31.3127068,33.9340272 31.5659728,33.9340272 31.7221825,33.7778175 L31.7221825,33.7778175 L33.2778175,32.2221825 C33.4340272,32.0659728 33.4340272,31.8127068 33.2778175,31.6564971 L33.2778175,31.6564971 L25.1464466,23.5251263 L25.0952092,23.4650801 C25.0337142,23.38027 25,23.2776595 25,23.1715729 L25,23.1715729 L25,14.4 C25,14.1790861 24.8209139,14 24.6,14 L24.6,14 Z",
|
|
6048
6049
|
id: "ClockCircleFill-形状结合",
|
|
6049
6050
|
fill: "currentColor",
|
|
@@ -6051,7 +6052,7 @@ function ClockCircleFill(props) {
|
|
|
6051
6052
|
}))));
|
|
6052
6053
|
}
|
|
6053
6054
|
function CloseCircleFill(props) {
|
|
6054
|
-
return /* @__PURE__ */ React$
|
|
6055
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6055
6056
|
width: "1em",
|
|
6056
6057
|
height: "1em",
|
|
6057
6058
|
viewBox: "0 0 48 48",
|
|
@@ -6062,15 +6063,15 @@ function CloseCircleFill(props) {
|
|
|
6062
6063
|
verticalAlign: "-0.125em"
|
|
6063
6064
|
}, props.style),
|
|
6064
6065
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6065
|
-
}), /* @__PURE__ */ React$
|
|
6066
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6066
6067
|
id: "CloseCircleFill-CloseCircleFill",
|
|
6067
6068
|
stroke: "none",
|
|
6068
6069
|
strokeWidth: 1,
|
|
6069
6070
|
fill: "none",
|
|
6070
6071
|
fillRule: "evenodd"
|
|
6071
|
-
}, /* @__PURE__ */ React$
|
|
6072
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6072
6073
|
id: "CloseCircleFill-编组"
|
|
6073
|
-
}, /* @__PURE__ */ React$
|
|
6074
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6074
6075
|
id: "CloseCircleFill-矩形",
|
|
6075
6076
|
fill: "#FFFFFF",
|
|
6076
6077
|
opacity: 0,
|
|
@@ -6078,7 +6079,7 @@ function CloseCircleFill(props) {
|
|
|
6078
6079
|
y: 0,
|
|
6079
6080
|
width: 48,
|
|
6080
6081
|
height: 48
|
|
6081
|
-
}), /* @__PURE__ */ React$
|
|
6082
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6082
6083
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M18.6753876,16 L15.5637812,16 C15.4576916,16 15.3559474,16.0421451 15.2809323,16.1171635 C15.124726,16.2733766 15.1247316,16.5266426 15.2809447,16.6828489 L15.2809447,16.6828489 L22.299066,23.7006641 L14.6828159,31.3171619 C14.6078042,31.3921761 14.5656632,31.4939157 14.5656632,31.6 C14.5656632,31.8209139 14.7447493,32 14.9656632,32 L14.9656632,32 L18.0753284,32 C18.1814068,32 18.2831412,31.9578638 18.3581544,31.8828594 L18.3581544,31.8828594 L24.420066,25.8216641 L30.4818451,31.8828564 C30.5568585,31.9578626 30.6585942,32 30.7646741,32 L30.7646741,32 L33.8763476,32 C33.9824309,32 34.0841695,31.9578599 34.1591835,31.8828496 C34.315397,31.7266436 34.3154031,31.4733776 34.1591972,31.3171641 L34.1591972,31.3171641 L26.542066,23.6996641 L33.5591874,16.6828489 C33.6342057,16.6078338 33.6763508,16.5060896 33.6763508,16.4 C33.6763508,16.1790861 33.4972647,16 33.2763508,16 L33.2763508,16 L30.1637654,16 C30.0576705,16 29.9559218,16.0421493 29.8809058,16.1171741 L29.8809058,16.1171741 L24.420066,21.5786641 L18.9582218,16.1171488 C18.883208,16.0421394 18.7814701,16 18.6753876,16 L18.6753876,16 Z",
|
|
6083
6084
|
id: "CloseCircleFill-形状结合",
|
|
6084
6085
|
fill: "currentColor",
|
|
@@ -6086,7 +6087,7 @@ function CloseCircleFill(props) {
|
|
|
6086
6087
|
}))));
|
|
6087
6088
|
}
|
|
6088
6089
|
function CloseOutline(props) {
|
|
6089
|
-
return /* @__PURE__ */ React$
|
|
6090
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6090
6091
|
width: "1em",
|
|
6091
6092
|
height: "1em",
|
|
6092
6093
|
viewBox: "0 0 48 48",
|
|
@@ -6097,15 +6098,15 @@ function CloseOutline(props) {
|
|
|
6097
6098
|
verticalAlign: "-0.125em"
|
|
6098
6099
|
}, props.style),
|
|
6099
6100
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6100
|
-
}), /* @__PURE__ */ React$
|
|
6101
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6101
6102
|
id: "CloseOutline-CloseOutline",
|
|
6102
6103
|
stroke: "none",
|
|
6103
6104
|
strokeWidth: 1,
|
|
6104
6105
|
fill: "none",
|
|
6105
6106
|
fillRule: "evenodd"
|
|
6106
|
-
}, /* @__PURE__ */ React$
|
|
6107
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6107
6108
|
id: "CloseOutline-编组"
|
|
6108
|
-
}, /* @__PURE__ */ React$
|
|
6109
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6109
6110
|
id: "CloseOutline-矩形",
|
|
6110
6111
|
fill: "#FFFFFF",
|
|
6111
6112
|
opacity: 0,
|
|
@@ -6113,7 +6114,7 @@ function CloseOutline(props) {
|
|
|
6113
6114
|
y: 0,
|
|
6114
6115
|
width: 48,
|
|
6115
6116
|
height: 48
|
|
6116
|
-
}), /* @__PURE__ */ React$
|
|
6117
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6117
6118
|
d: "M10.6085104,8.11754663 L24.1768397,21.8195031 L24.1768397,21.8195031 L37.7443031,8.1175556 C37.8194278,8.04168616 37.9217669,7.999 38.0285372,7.999 L41.1040268,7.999 C41.3249407,7.999 41.5040268,8.1780861 41.5040268,8.399 C41.5040268,8.50440471 41.4624226,8.60554929 41.3882578,8.68044752 L26.2773302,23.9408235 L26.2773302,23.9408235 L41.5021975,39.3175645 C41.65763,39.4745475 41.6563731,39.7278104 41.4993901,39.8832429 C41.4244929,39.9574004 41.3233534,39.999 41.2179546,39.999 L38.1434012,39.999 C38.0366291,39.999 37.9342885,39.9563124 37.8591634,39.8804408 L24.1768397,26.0621438 L24.1768397,26.0621438 L10.4936501,39.8804497 C10.4185257,39.9563159 10.3161889,39.999 10.2094212,39.999 L7.13584526,39.999 C6.91493136,39.999 6.73584526,39.8199139 6.73584526,39.599 C6.73584526,39.4936017 6.77744443,39.3924627 6.85160121,39.3175656 L22.0763492,23.9408235 L22.0763492,23.9408235 L6.96554081,8.68044639 C6.81010226,8.52346929 6.81134951,8.27020637 6.9683266,8.11476782 C7.04322474,8.04060377 7.14436883,7.999 7.24977299,7.999 L10.3242852,7.999 C10.4310511,7.999 10.5333863,8.04168267 10.6085104,8.11754663 Z",
|
|
6118
6119
|
id: "CloseOutline-路径",
|
|
6119
6120
|
fill: "currentColor",
|
|
@@ -6121,7 +6122,7 @@ function CloseOutline(props) {
|
|
|
6121
6122
|
}))));
|
|
6122
6123
|
}
|
|
6123
6124
|
function DownFill(props) {
|
|
6124
|
-
return /* @__PURE__ */ React$
|
|
6125
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6125
6126
|
width: "1em",
|
|
6126
6127
|
height: "1em",
|
|
6127
6128
|
viewBox: "0 0 48 48",
|
|
@@ -6132,15 +6133,15 @@ function DownFill(props) {
|
|
|
6132
6133
|
verticalAlign: "-0.125em"
|
|
6133
6134
|
}, props.style),
|
|
6134
6135
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6135
|
-
}), /* @__PURE__ */ React$
|
|
6136
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6136
6137
|
id: "DownFill-DownFill",
|
|
6137
6138
|
stroke: "none",
|
|
6138
6139
|
strokeWidth: 1,
|
|
6139
6140
|
fill: "none",
|
|
6140
6141
|
fillRule: "evenodd"
|
|
6141
|
-
}, /* @__PURE__ */ React$
|
|
6142
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6142
6143
|
id: "DownFill-编组"
|
|
6143
|
-
}, /* @__PURE__ */ React$
|
|
6144
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6144
6145
|
id: "DownFill-矩形",
|
|
6145
6146
|
fill: "#FFFFFF",
|
|
6146
6147
|
opacity: 0,
|
|
@@ -6148,7 +6149,7 @@ function DownFill(props) {
|
|
|
6148
6149
|
y: 0,
|
|
6149
6150
|
width: 48,
|
|
6150
6151
|
height: 48
|
|
6151
|
-
}), /* @__PURE__ */ React$
|
|
6152
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6152
6153
|
d: "M40.6640052,13 L7.34128264,13 C6.57572302,13 5.83336217,13.2619065 5.23947349,13.7351762 C3.80578911,14.8838891 3.58308085,16.9699517 4.74301968,18.3897608 L21.404381,38.7725222 C21.5528531,38.9517214 21.7152446,39.1171361 21.9008348,39.2641713 C23.3345192,40.4128842 25.4363283,40.1923313 26.6009069,38.7725222 L43.2576284,18.3897608 C43.740163,17.8016198 44,17.0664436 44,16.3082931 C44.004629,14.4795422 42.505988,13 40.6640052,13 Z",
|
|
6153
6154
|
id: "DownFill-路径",
|
|
6154
6155
|
fill: "currentColor",
|
|
@@ -6156,7 +6157,7 @@ function DownFill(props) {
|
|
|
6156
6157
|
}))));
|
|
6157
6158
|
}
|
|
6158
6159
|
function DownOutline(props) {
|
|
6159
|
-
return /* @__PURE__ */ React$
|
|
6160
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6160
6161
|
width: "1em",
|
|
6161
6162
|
height: "1em",
|
|
6162
6163
|
viewBox: "0 0 48 48",
|
|
@@ -6167,13 +6168,13 @@ function DownOutline(props) {
|
|
|
6167
6168
|
verticalAlign: "-0.125em"
|
|
6168
6169
|
}, props.style),
|
|
6169
6170
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6170
|
-
}), /* @__PURE__ */ React$
|
|
6171
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6171
6172
|
id: "DownOutline-DownOutline",
|
|
6172
6173
|
stroke: "none",
|
|
6173
6174
|
strokeWidth: 1,
|
|
6174
6175
|
fill: "none",
|
|
6175
6176
|
fillRule: "evenodd"
|
|
6176
|
-
}, /* @__PURE__ */ React$
|
|
6177
|
+
}, /* @__PURE__ */ React$2.createElement("g", null, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6177
6178
|
id: "DownOutline-矩形",
|
|
6178
6179
|
fill: "#FFFFFF",
|
|
6179
6180
|
opacity: 0,
|
|
@@ -6181,7 +6182,7 @@ function DownOutline(props) {
|
|
|
6181
6182
|
y: 0,
|
|
6182
6183
|
width: 48,
|
|
6183
6184
|
height: 48
|
|
6184
|
-
}), /* @__PURE__ */ React$
|
|
6185
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6185
6186
|
d: "M5.11219264,16.3947957 L22.6612572,34.5767382 L22.6612572,34.5767382 C23.2125856,35.1304785 24.0863155,35.1630514 24.6755735,34.6744571 L24.7825775,34.5767382 L42.8834676,16.3956061 C42.9580998,16.320643 43,16.2191697 43,16.1133896 L43,12.9866673 C43,12.7657534 42.8209139,12.5866673 42.6,12.5866673 C42.4936115,12.5866673 42.391606,12.6290496 42.316542,12.7044413 L23.7816937,31.3201933 L23.7816937,31.3201933 L5.6866816,12.7237117 C5.53262122,12.5653818 5.27937888,12.5619207 5.121049,12.7159811 C5.04365775,12.7912854 5,12.8946805 5,13.0026627 L5,16.1170064 C5,16.2206403 5.04022164,16.3202292 5.11219264,16.3947957 Z",
|
|
6186
6187
|
id: "DownOutline-down",
|
|
6187
6188
|
fill: "currentColor",
|
|
@@ -6189,7 +6190,7 @@ function DownOutline(props) {
|
|
|
6189
6190
|
}))));
|
|
6190
6191
|
}
|
|
6191
6192
|
function ExclamationCircleFill(props) {
|
|
6192
|
-
return /* @__PURE__ */ React$
|
|
6193
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6193
6194
|
width: "1em",
|
|
6194
6195
|
height: "1em",
|
|
6195
6196
|
viewBox: "0 0 48 48",
|
|
@@ -6200,13 +6201,13 @@ function ExclamationCircleFill(props) {
|
|
|
6200
6201
|
verticalAlign: "-0.125em"
|
|
6201
6202
|
}, props.style),
|
|
6202
6203
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6203
|
-
}), /* @__PURE__ */ React$
|
|
6204
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6204
6205
|
id: "ExclamationCircleFill-ExclamationCircleFill",
|
|
6205
6206
|
stroke: "none",
|
|
6206
6207
|
strokeWidth: 1,
|
|
6207
6208
|
fill: "none",
|
|
6208
6209
|
fillRule: "evenodd"
|
|
6209
|
-
}, /* @__PURE__ */ React$
|
|
6210
|
+
}, /* @__PURE__ */ React$2.createElement("g", null, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6210
6211
|
id: "ExclamationCircleFill-矩形",
|
|
6211
6212
|
fill: "#D76060",
|
|
6212
6213
|
opacity: 0,
|
|
@@ -6214,7 +6215,7 @@ function ExclamationCircleFill(props) {
|
|
|
6214
6215
|
y: 0,
|
|
6215
6216
|
width: 48,
|
|
6216
6217
|
height: 48
|
|
6217
|
-
}), /* @__PURE__ */ React$
|
|
6218
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6218
6219
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.1,31 L22.9,31 C22.6790861,31 22.5,31.1790861 22.5,31.4 L22.5,31.4 L22.5,33.6 C22.5,33.8209139 22.6790861,34 22.9,34 L22.9,34 L25.1,34 C25.3209139,34 25.5,33.8209139 25.5,33.6 L25.5,33.6 L25.5,31.4 C25.5,31.1790861 25.3209139,31 25.1,31 L25.1,31 Z M25.1,14 L22.9,14 C22.6790861,14 22.5,14.1790861 22.5,14.4 L22.5,14.4 L22.5,27.6 C22.5,27.8209139 22.6790861,28 22.9,28 L22.9,28 L25.1,28 C25.3209139,28 25.5,27.8209139 25.5,27.6 L25.5,27.6 L25.5,14.4 C25.5,14.1790861 25.3209139,14 25.1,14 L25.1,14 Z",
|
|
6219
6220
|
id: "ExclamationCircleFill-形状结合",
|
|
6220
6221
|
fill: "currentColor",
|
|
@@ -6222,7 +6223,7 @@ function ExclamationCircleFill(props) {
|
|
|
6222
6223
|
}))));
|
|
6223
6224
|
}
|
|
6224
6225
|
function InformationCircleFill(props) {
|
|
6225
|
-
return /* @__PURE__ */ React$
|
|
6226
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6226
6227
|
width: "1em",
|
|
6227
6228
|
height: "1em",
|
|
6228
6229
|
viewBox: "0 0 48 48",
|
|
@@ -6233,15 +6234,15 @@ function InformationCircleFill(props) {
|
|
|
6233
6234
|
verticalAlign: "-0.125em"
|
|
6234
6235
|
}, props.style),
|
|
6235
6236
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6236
|
-
}), /* @__PURE__ */ React$
|
|
6237
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6237
6238
|
id: "InformationCircleFill-InformationCircleFill",
|
|
6238
6239
|
stroke: "none",
|
|
6239
6240
|
strokeWidth: 1,
|
|
6240
6241
|
fill: "none",
|
|
6241
6242
|
fillRule: "evenodd"
|
|
6242
|
-
}, /* @__PURE__ */ React$
|
|
6243
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6243
6244
|
id: "InformationCircleFill-编组"
|
|
6244
|
-
}, /* @__PURE__ */ React$
|
|
6245
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6245
6246
|
id: "InformationCircleFill-矩形",
|
|
6246
6247
|
fill: "#FFFFFF",
|
|
6247
6248
|
opacity: 0,
|
|
@@ -6249,7 +6250,7 @@ function InformationCircleFill(props) {
|
|
|
6249
6250
|
y: 0,
|
|
6250
6251
|
width: 48,
|
|
6251
6252
|
height: 48
|
|
6252
|
-
}), /* @__PURE__ */ React$
|
|
6253
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6253
6254
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M25.6,20 L21.4,20 C21.1790861,20 21,20.1790861 21,20.4 L21,20.4 L21,22.6 C21,22.8209139 21.1790861,23 21.4,23 L21.4,23 L22.6,23 C22.8209139,23 23,23.1790861 23,23.4 L23,23.4 L23,34.6 C23,34.8209139 23.1790861,35 23.4,35 L23.4,35 L25.6,35 C25.8209139,35 26,34.8209139 26,34.6 L26,34.6 L26,20.4 C26,20.1790861 25.8209139,20 25.6,20 L25.6,20 Z M25.6,14 L23.4,14 C23.1790861,14 23,14.1790861 23,14.4 L23,14.4 L23,16.6 C23,16.8209139 23.1790861,17 23.4,17 L23.4,17 L25.6,17 C25.8209139,17 26,16.8209139 26,16.6 L26,16.6 L26,14.4 C26,14.1790861 25.8209139,14 25.6,14 L25.6,14 Z",
|
|
6254
6255
|
id: "InformationCircleFill-形状结合",
|
|
6255
6256
|
fill: "currentColor",
|
|
@@ -6257,7 +6258,7 @@ function InformationCircleFill(props) {
|
|
|
6257
6258
|
}))));
|
|
6258
6259
|
}
|
|
6259
6260
|
function LeftOutline(props) {
|
|
6260
|
-
return /* @__PURE__ */ React$
|
|
6261
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6261
6262
|
width: "1em",
|
|
6262
6263
|
height: "1em",
|
|
6263
6264
|
viewBox: "0 0 48 48",
|
|
@@ -6268,15 +6269,15 @@ function LeftOutline(props) {
|
|
|
6268
6269
|
verticalAlign: "-0.125em"
|
|
6269
6270
|
}, props.style),
|
|
6270
6271
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6271
|
-
}), /* @__PURE__ */ React$
|
|
6272
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6272
6273
|
id: "LeftOutline-LeftOutline",
|
|
6273
6274
|
stroke: "none",
|
|
6274
6275
|
strokeWidth: 1,
|
|
6275
6276
|
fill: "none",
|
|
6276
6277
|
fillRule: "evenodd"
|
|
6277
|
-
}, /* @__PURE__ */ React$
|
|
6278
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6278
6279
|
id: "LeftOutline-编组"
|
|
6279
|
-
}, /* @__PURE__ */ React$
|
|
6280
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6280
6281
|
id: "LeftOutline-矩形",
|
|
6281
6282
|
fill: "#FFFFFF",
|
|
6282
6283
|
opacity: 0,
|
|
@@ -6284,7 +6285,7 @@ function LeftOutline(props) {
|
|
|
6284
6285
|
y: 0,
|
|
6285
6286
|
width: 48,
|
|
6286
6287
|
height: 48
|
|
6287
|
-
}), /* @__PURE__ */ React$
|
|
6288
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6288
6289
|
d: "M31.7053818,5.11219264 L13.5234393,22.6612572 L13.5234393,22.6612572 C12.969699,23.2125856 12.9371261,24.0863155 13.4257204,24.6755735 L13.5234393,24.7825775 L31.7045714,42.8834676 C31.7795345,42.9580998 31.8810078,43 31.9867879,43 L35.1135102,43 C35.3344241,43 35.5135102,42.8209139 35.5135102,42.6 C35.5135102,42.4936115 35.4711279,42.391606 35.3957362,42.316542 L16.7799842,23.7816937 L16.7799842,23.7816937 L35.3764658,5.6866816 C35.5347957,5.53262122 35.5382568,5.27937888 35.3841964,5.121049 C35.3088921,5.04365775 35.205497,5 35.0975148,5 L31.9831711,5 C31.8795372,5 31.7799483,5.04022164 31.7053818,5.11219264 Z",
|
|
6289
6290
|
id: "LeftOutline-路径",
|
|
6290
6291
|
fill: "currentColor",
|
|
@@ -6292,7 +6293,7 @@ function LeftOutline(props) {
|
|
|
6292
6293
|
}))));
|
|
6293
6294
|
}
|
|
6294
6295
|
function MinusOutline(props) {
|
|
6295
|
-
return /* @__PURE__ */ React$
|
|
6296
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6296
6297
|
width: "1em",
|
|
6297
6298
|
height: "1em",
|
|
6298
6299
|
viewBox: "0 0 48 48",
|
|
@@ -6303,15 +6304,15 @@ function MinusOutline(props) {
|
|
|
6303
6304
|
verticalAlign: "-0.125em"
|
|
6304
6305
|
}, props.style),
|
|
6305
6306
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6306
|
-
}), /* @__PURE__ */ React$
|
|
6307
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6307
6308
|
id: "MinusOutline-MinusOutline",
|
|
6308
6309
|
stroke: "none",
|
|
6309
6310
|
strokeWidth: 1,
|
|
6310
6311
|
fill: "none",
|
|
6311
6312
|
fillRule: "evenodd"
|
|
6312
|
-
}, /* @__PURE__ */ React$
|
|
6313
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6313
6314
|
id: "MinusOutline-add"
|
|
6314
|
-
}, /* @__PURE__ */ React$
|
|
6315
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6315
6316
|
id: "MinusOutline-矩形",
|
|
6316
6317
|
fill: "#FFFFFF",
|
|
6317
6318
|
opacity: 0,
|
|
@@ -6319,7 +6320,7 @@ function MinusOutline(props) {
|
|
|
6319
6320
|
y: 0,
|
|
6320
6321
|
width: 48,
|
|
6321
6322
|
height: 48
|
|
6322
|
-
}), /* @__PURE__ */ React$
|
|
6323
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6323
6324
|
d: "M41.1,22.5 C41.3209139,22.5 41.5,22.6790861 41.5,22.9 L41.5,25.1 C41.5,25.3209139 41.3209139,25.5 41.1,25.5 L6.9,25.5 C6.6790861,25.5 6.5,25.3209139 6.5,25.1 L6.5,22.9 C6.5,22.6790861 6.6790861,22.5 6.9,22.5 L41.1,22.5 Z",
|
|
6324
6325
|
id: "MinusOutline-路径",
|
|
6325
6326
|
fill: "currentColor",
|
|
@@ -6327,7 +6328,7 @@ function MinusOutline(props) {
|
|
|
6327
6328
|
}))));
|
|
6328
6329
|
}
|
|
6329
6330
|
function QuestionCircleOutline(props) {
|
|
6330
|
-
return /* @__PURE__ */ React$
|
|
6331
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6331
6332
|
width: "1em",
|
|
6332
6333
|
height: "1em",
|
|
6333
6334
|
viewBox: "0 0 48 48",
|
|
@@ -6338,15 +6339,15 @@ function QuestionCircleOutline(props) {
|
|
|
6338
6339
|
verticalAlign: "-0.125em"
|
|
6339
6340
|
}, props.style),
|
|
6340
6341
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6341
|
-
}), /* @__PURE__ */ React$
|
|
6342
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6342
6343
|
id: "QuestionCircleOutline-QuestionCircleOutline",
|
|
6343
6344
|
stroke: "none",
|
|
6344
6345
|
strokeWidth: 1,
|
|
6345
6346
|
fill: "none",
|
|
6346
6347
|
fillRule: "evenodd"
|
|
6347
|
-
}, /* @__PURE__ */ React$
|
|
6348
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6348
6349
|
id: "QuestionCircleOutline-编组"
|
|
6349
|
-
}, /* @__PURE__ */ React$
|
|
6350
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6350
6351
|
id: "QuestionCircleOutline-矩形",
|
|
6351
6352
|
fill: "#FFFFFF",
|
|
6352
6353
|
opacity: 0,
|
|
@@ -6354,7 +6355,7 @@ function QuestionCircleOutline(props) {
|
|
|
6354
6355
|
y: 0,
|
|
6355
6356
|
width: 48,
|
|
6356
6357
|
height: 48
|
|
6357
|
-
}), /* @__PURE__ */ React$
|
|
6358
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6358
6359
|
d: "M24,2 C36.1502645,2 46,11.8497355 46,24 C46,36.1502645 36.1502645,46 24,46 C11.8497355,46 2,36.1502645 2,24 C2,11.8497355 11.8497355,2 24,2 Z M24,5 C13.5065898,5 5,13.5065898 5,24 C5,34.4934102 13.5065898,43 24,43 C34.4934102,43 43,34.4934102 43,24 C43,13.5065898 34.4934102,5 24,5 Z M26,32.4 L26,34.6 C26,34.8209139 25.8209139,35 25.6,35 L23.4,35 C23.1790861,35 23,34.8209139 23,34.6 L23,32.4 C23,32.1790861 23.1790861,32 23.4,32 L25.6,32 C25.8209139,32 26,32.1790861 26,32.4 Z M24,12 C27.8659932,12 31,15.1340068 31,19 C31,22.1706393 28.8919961,24.8489278 26.0010432,25.7098107 L26.0001268,28.6 C25.9999299,28.8208643 25.8208644,28.9998731 25.6,29 L23.4,29 C23.1790861,29 23,28.8209139 23,28.6 L23,23.4 C23,23.1790861 23.1790861,23 23.4,23 L24,23 L24,23 C26.209139,23 28,21.209139 28,19 C28,16.790861 26.209139,15 24,15 C21.790861,15 20,16.790861 20,19 L17,19 C17,15.1340068 20.1340068,12 24,12 Z",
|
|
6359
6360
|
id: "QuestionCircleOutline-形状",
|
|
6360
6361
|
fill: "currentColor",
|
|
@@ -6362,7 +6363,7 @@ function QuestionCircleOutline(props) {
|
|
|
6362
6363
|
}))));
|
|
6363
6364
|
}
|
|
6364
6365
|
function RightOutline(props) {
|
|
6365
|
-
return /* @__PURE__ */ React$
|
|
6366
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6366
6367
|
width: "1em",
|
|
6367
6368
|
height: "1em",
|
|
6368
6369
|
viewBox: "0 0 48 48",
|
|
@@ -6373,15 +6374,15 @@ function RightOutline(props) {
|
|
|
6373
6374
|
verticalAlign: "-0.125em"
|
|
6374
6375
|
}, props.style),
|
|
6375
6376
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6376
|
-
}), /* @__PURE__ */ React$
|
|
6377
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6377
6378
|
id: "RightOutline-RightOutline",
|
|
6378
6379
|
stroke: "none",
|
|
6379
6380
|
strokeWidth: 1,
|
|
6380
6381
|
fill: "none",
|
|
6381
6382
|
fillRule: "evenodd"
|
|
6382
|
-
}, /* @__PURE__ */ React$
|
|
6383
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6383
6384
|
id: "RightOutline-RightOutlined"
|
|
6384
|
-
}, /* @__PURE__ */ React$
|
|
6385
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6385
6386
|
id: "RightOutline-矩形",
|
|
6386
6387
|
fill: "#FFFFFF",
|
|
6387
6388
|
opacity: 0,
|
|
@@ -6389,7 +6390,7 @@ function RightOutline(props) {
|
|
|
6389
6390
|
y: 0,
|
|
6390
6391
|
width: 48,
|
|
6391
6392
|
height: 48
|
|
6392
|
-
}), /* @__PURE__ */ React$
|
|
6393
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6393
6394
|
d: "M17.3947957,5.11219264 L35.5767382,22.6612572 L35.5767382,22.6612572 C36.1304785,23.2125856 36.1630514,24.0863155 35.6744571,24.6755735 L35.5767382,24.7825775 L17.3956061,42.8834676 C17.320643,42.9580998 17.2191697,43 17.1133896,43 L13.9866673,43 C13.7657534,43 13.5866673,42.8209139 13.5866673,42.6 C13.5866673,42.4936115 13.6290496,42.391606 13.7044413,42.316542 L32.3201933,23.7816937 L32.3201933,23.7816937 L13.7237117,5.6866816 C13.5653818,5.53262122 13.5619207,5.27937888 13.7159811,5.121049 C13.7912854,5.04365775 13.8946805,5 14.0026627,5 L17.1170064,5 C17.2206403,5 17.3202292,5.04022164 17.3947957,5.11219264 Z",
|
|
6394
6395
|
id: "RightOutline-right",
|
|
6395
6396
|
fill: "currentColor",
|
|
@@ -6397,7 +6398,7 @@ function RightOutline(props) {
|
|
|
6397
6398
|
}))));
|
|
6398
6399
|
}
|
|
6399
6400
|
function SearchOutline(props) {
|
|
6400
|
-
return /* @__PURE__ */ React$
|
|
6401
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6401
6402
|
width: "1em",
|
|
6402
6403
|
height: "1em",
|
|
6403
6404
|
viewBox: "0 0 48 48",
|
|
@@ -6408,15 +6409,15 @@ function SearchOutline(props) {
|
|
|
6408
6409
|
verticalAlign: "-0.125em"
|
|
6409
6410
|
}, props.style),
|
|
6410
6411
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6411
|
-
}), /* @__PURE__ */ React$
|
|
6412
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6412
6413
|
id: "SearchOutline-SearchOutline",
|
|
6413
6414
|
stroke: "none",
|
|
6414
6415
|
strokeWidth: 1,
|
|
6415
6416
|
fill: "none",
|
|
6416
6417
|
fillRule: "evenodd"
|
|
6417
|
-
}, /* @__PURE__ */ React$
|
|
6418
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6418
6419
|
id: "SearchOutline-编组"
|
|
6419
|
-
}, /* @__PURE__ */ React$
|
|
6420
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6420
6421
|
id: "SearchOutline-矩形",
|
|
6421
6422
|
fill: "#FFFFFF",
|
|
6422
6423
|
opacity: 0,
|
|
@@ -6424,7 +6425,7 @@ function SearchOutline(props) {
|
|
|
6424
6425
|
y: 0,
|
|
6425
6426
|
width: 48,
|
|
6426
6427
|
height: 48
|
|
6427
|
-
}), /* @__PURE__ */ React$
|
|
6428
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6428
6429
|
d: "M10.2434135,10.1505371 C17.2346315,3.28315429 28.5696354,3.28315429 35.5608534,10.1505371 C42.3159331,16.7859644 42.5440954,27.4048667 36.2453405,34.3093889 L43.7095294,41.6422249 C43.8671196,41.7970419 43.8693677,42.0502979 43.7145508,42.2078881 C43.7128864,42.2095822 43.7112069,42.2112616 43.7095126,42.2129259 L42.1705322,43.7246464 C42.014915,43.8775072 41.7655181,43.8775006 41.6099089,43.7246316 L34.0775268,36.3248916 L34.0775268,36.3248916 C27.0485579,41.8551751 16.7593545,41.4200547 10.2434135,35.0195303 C3.25219551,28.1521474 3.25219551,17.0179199 10.2434135,10.1505371 Z M12.3532001,12.2229532 C6.52718516,17.9457722 6.52718516,27.2242951 12.3532001,32.9471142 C18.1792151,38.6699332 27.6250517,38.6699332 33.4510667,32.9471142 C39.2770817,27.2242951 39.2770817,17.9457722 33.4510667,12.2229532 C27.6250517,6.50013419 18.1792151,6.50013419 12.3532001,12.2229532 Z",
|
|
6429
6430
|
id: "SearchOutline-形状",
|
|
6430
6431
|
fill: "currentColor",
|
|
@@ -6432,7 +6433,7 @@ function SearchOutline(props) {
|
|
|
6432
6433
|
}))));
|
|
6433
6434
|
}
|
|
6434
6435
|
function SoundOutline(props) {
|
|
6435
|
-
return /* @__PURE__ */ React$
|
|
6436
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6436
6437
|
width: "1em",
|
|
6437
6438
|
height: "1em",
|
|
6438
6439
|
viewBox: "0 0 48 48",
|
|
@@ -6443,15 +6444,15 @@ function SoundOutline(props) {
|
|
|
6443
6444
|
verticalAlign: "-0.125em"
|
|
6444
6445
|
}, props.style),
|
|
6445
6446
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6446
|
-
}), /* @__PURE__ */ React$
|
|
6447
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6447
6448
|
id: "SoundOutline-SoundOutline",
|
|
6448
6449
|
stroke: "none",
|
|
6449
6450
|
strokeWidth: 1,
|
|
6450
6451
|
fill: "none",
|
|
6451
6452
|
fillRule: "evenodd"
|
|
6452
|
-
}, /* @__PURE__ */ React$
|
|
6453
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6453
6454
|
id: "SoundOutline-编组"
|
|
6454
|
-
}, /* @__PURE__ */ React$
|
|
6455
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6455
6456
|
id: "SoundOutline-矩形",
|
|
6456
6457
|
fill: "#FFFFFF",
|
|
6457
6458
|
opacity: 0,
|
|
@@ -6459,7 +6460,7 @@ function SoundOutline(props) {
|
|
|
6459
6460
|
y: 0,
|
|
6460
6461
|
width: 48,
|
|
6461
6462
|
height: 48
|
|
6462
|
-
}), /* @__PURE__ */ React$
|
|
6463
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6463
6464
|
d: "M28.267333,7.42364522 C28.6217345,7.94869119 28.8108515,8.56559899 28.8108515,9.19662571 L28.8108515,38.803714 C28.8108515,40.568974 27.3619563,42 25.5746535,42 C24.9357472,42 24.311136,41.8132153 23.7795338,41.4631847 L13.5176584,34.7058449 L8.3149307,34.706256 C5.93186028,34.706256 4,32.7982213 4,30.4445413 L4,17.6593971 C4,15.3057171 5.93186028,13.3976824 8.3149307,13.3976824 L13.3601634,13.3972713 L23.7795338,6.53715498 C25.2666597,5.55796489 27.2759158,5.95486009 28.267333,7.42364522 Z M40.4649231,8.99868666 C40.5511218,9.17742383 40.619996,9.32223121 40.6715457,9.43310881 C42.8085201,14.0295034 44,19.1437027 44,24.532755 C44,29.7837404 42.8687892,34.7737758 40.8339269,39.2781083 C40.7469512,39.4706362 40.6237802,39.7330988 40.4644141,40.0654961 C40.3689469,40.2647533 40.1300031,40.3488277 39.9307715,40.2533072 C39.9306414,40.2532448 39.9305113,40.2531824 39.9303812,40.2531198 C39.6706542,40.1282492 39.4751102,40.0342363 39.3437492,39.9710811 C38.9410401,39.777468 38.6130663,39.619786 38.3598279,39.498035 C38.2070716,39.4245934 38.0007263,39.3253875 37.740792,39.2004172 C37.5419104,39.104853 37.4580092,38.8662856 37.5532468,38.6672473 C37.7034937,38.3532445 37.8197479,38.104744 37.9020095,37.9217457 C39.7416376,33.8293278 40.763802,29.2989389 40.763802,24.532755 C40.763802,19.6931433 39.7099001,15.0966478 37.8164042,10.9549334 C37.7526807,10.8155487 37.6652043,10.6300308 37.5539748,10.3983796 C37.4585265,10.1993116 37.5423279,9.96050973 37.7412949,9.8648511 C37.9298799,9.7741839 38.0818373,9.70112639 38.1971671,9.64567856 C38.5403397,9.48068928 39.0100918,9.2548436 39.6064234,8.9681415 C39.6867211,8.9295363 39.7949893,8.87748349 39.9312282,8.81198307 C40.1301627,8.71623553 40.3690201,8.79982709 40.4649231,8.99868666 Z M24.954689,9.60481048 L14.4401642,16.5275765 C14.3748695,16.5705665 14.2984086,16.5934809 14.2202323,16.5934873 L8.3149307,16.5939685 L8.3149307,16.5939685 C7.76171792,16.5939685 7.30576856,17.0052668 7.24345545,17.5351457 L7.23619803,17.6593971 L7.23619803,30.4445413 C7.23619803,30.9909313 7.65263219,31.4412574 8.18892037,31.502802 L8.31467178,31.50997 L14.3775506,31.5094909 C14.4557573,31.5094847 14.5322502,31.5324045 14.5975676,31.5754153 L24.9546682,38.39546 C25.139173,38.5169545 25.3872345,38.4658746 25.508729,38.2813698 C25.5517339,38.2160614 25.5746535,38.1395804 25.5746535,38.0613845 L25.5746535,9.93889975 C25.5746535,9.71798585 25.3955674,9.53889975 25.1746535,9.53889975 C25.0964661,9.53889975 25.019993,9.56181436 24.954689,9.60481048 Z M34.6436115,11.798648 C34.7547335,12.030794 34.8419854,12.2167889 34.9053671,12.3566328 C36.590502,16.0746763 37.5276039,20.1956294 37.5276039,24.532755 C37.5276039,28.7641394 36.635639,32.7897635 35.0272837,36.4362183 C34.9380427,36.6385449 34.8101552,36.9146706 34.6436211,37.2645952 C34.5486602,37.4640326 34.3100191,37.5487723 34.1105639,37.4538487 C34.1101091,37.4536323 34.1096547,37.453415 34.1092007,37.4531968 C33.9190573,37.3618222 33.7721424,37.2912213 33.6684561,37.2413942 C33.186467,37.0097713 32.80073,36.824403 32.5112451,36.6852892 C32.3647538,36.6148919 32.1675294,36.5201144 31.9195719,36.4009569 C31.7210538,36.3055358 31.6370188,36.067582 31.7316042,35.8686644 C31.8690322,35.5796464 31.9753727,35.3500122 32.0506255,35.1797617 C33.4919206,31.9190071 34.2914059,28.3180945 34.2914059,24.532755 C34.2914059,20.6930477 33.46879,17.0431031 31.9881259,13.7454591 C31.9261905,13.6075203 31.840749,13.424362 31.7318014,13.1959842 C31.636885,12.9969991 31.7208632,12.7587263 31.919573,12.6632348 C32.0929373,12.5799233 32.2332164,12.5125112 32.3404102,12.4609985 C32.6888449,12.2935556 33.1655706,12.0644616 33.7705875,11.7737163 C33.8540198,11.7336223 33.9670458,11.6793068 34.1096655,11.6107699 C34.3087736,11.5152168 34.5476881,11.5990382 34.6433466,11.7980956 C34.643435,11.7982797 34.6435233,11.7984638 34.6436115,11.798648 Z",
|
|
6464
6465
|
id: "SoundOutline-形状",
|
|
6465
6466
|
fill: "currentColor",
|
|
@@ -6467,7 +6468,7 @@ function SoundOutline(props) {
|
|
|
6467
6468
|
}))));
|
|
6468
6469
|
}
|
|
6469
6470
|
function TextDeletionOutline(props) {
|
|
6470
|
-
return /* @__PURE__ */ React$
|
|
6471
|
+
return /* @__PURE__ */ React$2.createElement("svg", Object.assign({
|
|
6471
6472
|
width: "1em",
|
|
6472
6473
|
height: "1em",
|
|
6473
6474
|
viewBox: "0 0 48 48",
|
|
@@ -6478,15 +6479,15 @@ function TextDeletionOutline(props) {
|
|
|
6478
6479
|
verticalAlign: "-0.125em"
|
|
6479
6480
|
}, props.style),
|
|
6480
6481
|
className: ["antd-mobile-icon", props.className].filter(Boolean).join(" ")
|
|
6481
|
-
}), /* @__PURE__ */ React$
|
|
6482
|
+
}), /* @__PURE__ */ React$2.createElement("g", {
|
|
6482
6483
|
id: "TextDeletionOutline-TextDeletionOutline",
|
|
6483
6484
|
stroke: "none",
|
|
6484
6485
|
strokeWidth: 1,
|
|
6485
6486
|
fill: "none",
|
|
6486
6487
|
fillRule: "evenodd"
|
|
6487
|
-
}, /* @__PURE__ */ React$
|
|
6488
|
+
}, /* @__PURE__ */ React$2.createElement("g", {
|
|
6488
6489
|
id: "TextDeletionOutline-编组"
|
|
6489
|
-
}, /* @__PURE__ */ React$
|
|
6490
|
+
}, /* @__PURE__ */ React$2.createElement("rect", {
|
|
6490
6491
|
id: "TextDeletionOutline-矩形",
|
|
6491
6492
|
fill: "#FFFFFF",
|
|
6492
6493
|
opacity: 0,
|
|
@@ -6494,7 +6495,7 @@ function TextDeletionOutline(props) {
|
|
|
6494
6495
|
y: 0,
|
|
6495
6496
|
width: 48,
|
|
6496
6497
|
height: 48
|
|
6497
|
-
}), /* @__PURE__ */ React$
|
|
6498
|
+
}), /* @__PURE__ */ React$2.createElement("path", {
|
|
6498
6499
|
d: "M38.5492302,6 C41.5596051,6 44,8.46240906 44,11.499981 L44,35.5 C44,38.5375742 41.5596051,41.000013 38.54923,41.000013 L17.3058462,41.000013 C14.6665152,41.000013 12.2347138,39.555982 10.9529738,37.2279238 L4.91451284,27.0612608 C3.6951623,24.8464932 3.6951623,22.1535354 4.91451335,19.9387516 L10.9529743,9.77208856 C12.234697,7.44403098 14.6665154,6 17.3058464,6 L38.5492302,6 Z M38.5492273,8.74994707 L17.3058465,8.74994707 C15.7329163,8.74994707 14.2719651,9.57120176 13.4439762,10.9206455 L13.3349608,11.1076457 L7.29739408,21.2743087 C6.57566975,22.5850072 6.53495505,24.1690434 7.18837846,25.5157286 L7.29739386,25.7265623 L13.3349605,35.8932253 C14.0992225,37.2803788 15.5202936,38.1698544 17.0914483,38.2444783 L17.3058454,38.2499783 L38.5492292,38.2499783 C39.9923716,38.2499783 41.1854088,37.114979 41.2700704,35.6613101 L41.2746127,35.4999769 L41.2746127,11.4999513 C41.2746127,10.0436198 40.1496291,8.83987037 38.7089651,8.75452144 L38.5492273,8.74994707 Z M22.3492842,17 C22.4547968,17 22.556036,17.0416892 22.6309531,17.1159883 L26.757,21.208 L30.8830469,17.1159883 C30.957964,17.0416892 31.0592032,17 31.1647158,17 L34.2719196,17 C34.4928335,17 34.6719196,17.1790861 34.6719196,17.4 C34.6719196,17.5067321 34.6292639,17.6090378 34.5534423,17.6841566 L28.879,23.306 L34.8245071,29.1968543 C34.9814364,29.3523411 34.9826059,29.6056044 34.8271191,29.7625337 C34.7520011,29.8383486 34.6497001,29.881 34.5429734,29.881 L31.4366959,29.881 C31.331195,29.881 31.2299662,29.8393201 31.1550512,29.7650357 L26.758,25.405 L22.3599432,29.7650669 C22.2850309,29.8393322 22.1838155,29.881 22.07833,29.881 L18.9720266,29.881 C18.7511127,29.881 18.5720266,29.7019139 18.5720266,29.481 C18.5720266,29.3742733 18.614678,29.2719723 18.6904929,29.1968543 L24.636,23.306 L18.9624269,17.6841345 C18.8055037,17.5286415 18.8043444,17.2753782 18.9598374,17.118455 C19.0349545,17.042647 19.1372506,17 19.2439719,17 L22.3492842,17 Z",
|
|
6499
6500
|
id: "TextDeletionOutline-形状结合",
|
|
6500
6501
|
fill: "currentColor",
|
|
@@ -6602,7 +6603,7 @@ function ownKeys$1(e2, r) {
|
|
|
6602
6603
|
}
|
|
6603
6604
|
return t;
|
|
6604
6605
|
}
|
|
6605
|
-
function _objectSpread2$
|
|
6606
|
+
function _objectSpread2$2(e2) {
|
|
6606
6607
|
for (var r = 1; r < arguments.length; r++) {
|
|
6607
6608
|
var t = null != arguments[r] ? arguments[r] : {};
|
|
6608
6609
|
r % 2 ? ownKeys$1(Object(t), true).forEach(function(r2) {
|
|
@@ -6982,7 +6983,7 @@ class Engine {
|
|
|
6982
6983
|
this.clean();
|
|
6983
6984
|
if ((state._blocked || !state.intentional) && !state._force && !config2.triggerAllEvents)
|
|
6984
6985
|
return;
|
|
6985
|
-
const memo2 = this.handler(_objectSpread2$
|
|
6986
|
+
const memo2 = this.handler(_objectSpread2$2(_objectSpread2$2(_objectSpread2$2({}, shared), state), {}, {
|
|
6986
6987
|
[this.aliasKey]: state.values
|
|
6987
6988
|
}));
|
|
6988
6989
|
if (memo2 !== void 0)
|
|
@@ -7052,7 +7053,7 @@ const commonConfigResolver = {
|
|
|
7052
7053
|
return value;
|
|
7053
7054
|
},
|
|
7054
7055
|
eventOptions(value, _k, config2) {
|
|
7055
|
-
return _objectSpread2$
|
|
7056
|
+
return _objectSpread2$2(_objectSpread2$2({}, config2.shared.eventOptions), value);
|
|
7056
7057
|
},
|
|
7057
7058
|
preventDefault(value = false) {
|
|
7058
7059
|
return value;
|
|
@@ -7117,7 +7118,7 @@ const commonConfigResolver = {
|
|
|
7117
7118
|
});
|
|
7118
7119
|
}
|
|
7119
7120
|
const DEFAULT_AXIS_THRESHOLD = 0;
|
|
7120
|
-
const coordinatesConfigResolver = _objectSpread2$
|
|
7121
|
+
const coordinatesConfigResolver = _objectSpread2$2(_objectSpread2$2({}, commonConfigResolver), {}, {
|
|
7121
7122
|
axis(_v, _k, {
|
|
7122
7123
|
axis
|
|
7123
7124
|
}) {
|
|
@@ -7471,7 +7472,7 @@ const DEFAULT_DRAG_AXIS_THRESHOLD = {
|
|
|
7471
7472
|
touch: 0,
|
|
7472
7473
|
pen: 8
|
|
7473
7474
|
};
|
|
7474
|
-
const dragConfigResolver = _objectSpread2$
|
|
7475
|
+
const dragConfigResolver = _objectSpread2$2(_objectSpread2$2({}, coordinatesConfigResolver), {}, {
|
|
7475
7476
|
device(_v, _k, {
|
|
7476
7477
|
pointer: {
|
|
7477
7478
|
touch = false,
|
|
@@ -7543,7 +7544,7 @@ const dragConfigResolver = _objectSpread2$1(_objectSpread2$1({}, coordinatesConf
|
|
|
7543
7544
|
axisThreshold(value) {
|
|
7544
7545
|
if (!value)
|
|
7545
7546
|
return DEFAULT_DRAG_AXIS_THRESHOLD;
|
|
7546
|
-
return _objectSpread2$
|
|
7547
|
+
return _objectSpread2$2(_objectSpread2$2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
|
|
7547
7548
|
},
|
|
7548
7549
|
keyboardDisplacement(value = DEFAULT_KEYBOARD_DISPLACEMENT) {
|
|
7549
7550
|
return value;
|
|
@@ -7864,7 +7865,7 @@ This message will only appear in development mode.`);
|
|
|
7864
7865
|
}
|
|
7865
7866
|
}
|
|
7866
7867
|
}
|
|
7867
|
-
const pinchConfigResolver = _objectSpread2$
|
|
7868
|
+
const pinchConfigResolver = _objectSpread2$2(_objectSpread2$2({}, commonConfigResolver), {}, {
|
|
7868
7869
|
device(_v, _k, {
|
|
7869
7870
|
shared,
|
|
7870
7871
|
pointer: {
|
|
@@ -7919,7 +7920,7 @@ const pinchConfigResolver = _objectSpread2$1(_objectSpread2$1({}, commonConfigRe
|
|
|
7919
7920
|
return value;
|
|
7920
7921
|
}
|
|
7921
7922
|
});
|
|
7922
|
-
_objectSpread2$
|
|
7923
|
+
_objectSpread2$2(_objectSpread2$2({}, coordinatesConfigResolver), {}, {
|
|
7923
7924
|
mouseOnly: (value = true) => value
|
|
7924
7925
|
});
|
|
7925
7926
|
class WheelEngine extends CoordinatesEngine {
|
|
@@ -7953,7 +7954,7 @@ class WheelEngine extends CoordinatesEngine {
|
|
|
7953
7954
|
}
|
|
7954
7955
|
}
|
|
7955
7956
|
const wheelConfigResolver = coordinatesConfigResolver;
|
|
7956
|
-
_objectSpread2$
|
|
7957
|
+
_objectSpread2$2(_objectSpread2$2({}, coordinatesConfigResolver), {}, {
|
|
7957
7958
|
mouseOnly: (value = true) => value
|
|
7958
7959
|
});
|
|
7959
7960
|
const EngineMap = /* @__PURE__ */ new Map();
|
|
@@ -8075,14 +8076,14 @@ function parse(newConfig, gestureKey, _config = {}) {
|
|
|
8075
8076
|
}, sharedConfigResolver);
|
|
8076
8077
|
if (gestureKey) {
|
|
8077
8078
|
const resolver = ConfigResolverMap.get(gestureKey);
|
|
8078
|
-
_config[gestureKey] = resolveWith(_objectSpread2$
|
|
8079
|
+
_config[gestureKey] = resolveWith(_objectSpread2$2({
|
|
8079
8080
|
shared: _config.shared
|
|
8080
8081
|
}, rest), resolver);
|
|
8081
8082
|
} else {
|
|
8082
8083
|
for (const key in rest) {
|
|
8083
8084
|
const resolver = ConfigResolverMap.get(key);
|
|
8084
8085
|
if (resolver) {
|
|
8085
|
-
_config[key] = resolveWith(_objectSpread2$
|
|
8086
|
+
_config[key] = resolveWith(_objectSpread2$2({
|
|
8086
8087
|
shared: _config.shared
|
|
8087
8088
|
}, rest[key]), resolver);
|
|
8088
8089
|
} else {
|
|
@@ -8107,7 +8108,7 @@ class EventStore {
|
|
|
8107
8108
|
const listeners = this._listeners;
|
|
8108
8109
|
const type4 = toDomEventType(device, action);
|
|
8109
8110
|
const _options = this._gestureKey ? this._ctrl.config[this._gestureKey].eventOptions : {};
|
|
8110
|
-
const eventOptions = _objectSpread2$
|
|
8111
|
+
const eventOptions = _objectSpread2$2(_objectSpread2$2({}, _options), options);
|
|
8111
8112
|
element.addEventListener(type4, handler, eventOptions);
|
|
8112
8113
|
const remove = () => {
|
|
8113
8114
|
element.removeEventListener(type4, handler, eventOptions);
|
|
@@ -8210,7 +8211,7 @@ class Controller2 {
|
|
|
8210
8211
|
}
|
|
8211
8212
|
const nativeBindFunction = bindToProps(props, sharedConfig.eventOptions, !!target);
|
|
8212
8213
|
for (const eventKey in this.nativeHandlers) {
|
|
8213
|
-
nativeBindFunction(eventKey, "", (event) => this.nativeHandlers[eventKey](_objectSpread2$
|
|
8214
|
+
nativeBindFunction(eventKey, "", (event) => this.nativeHandlers[eventKey](_objectSpread2$2(_objectSpread2$2({}, this.state.shared), {}, {
|
|
8214
8215
|
event,
|
|
8215
8216
|
args
|
|
8216
8217
|
})), void 0, true);
|
|
@@ -8368,8 +8369,8 @@ const Popup = (p) => {
|
|
|
8368
8369
|
const props = mergeProps(defaultProps$13, componentConfig, p);
|
|
8369
8370
|
const bodyCls = classNames(`${classPrefix$1p}-body`, props.bodyClassName, `${classPrefix$1p}-body-position-${props.position}`);
|
|
8370
8371
|
const [active, setActive] = useState(props.visible);
|
|
8371
|
-
const
|
|
8372
|
-
useLockScroll(
|
|
8372
|
+
const ref2 = useRef(null);
|
|
8373
|
+
useLockScroll(ref2, props.disableBodyScroll && active ? "strict" : false);
|
|
8373
8374
|
useIsomorphicLayoutEffect$3(() => {
|
|
8374
8375
|
if (props.visible) {
|
|
8375
8376
|
setActive(true);
|
|
@@ -8454,7 +8455,7 @@ const Popup = (p) => {
|
|
|
8454
8455
|
return "none";
|
|
8455
8456
|
})
|
|
8456
8457
|
}),
|
|
8457
|
-
ref
|
|
8458
|
+
ref: ref2
|
|
8458
8459
|
}, props.showCloseButton && React__default.createElement("a", {
|
|
8459
8460
|
className: classNames(`${classPrefix$1p}-close-icon`, "adm-plain-anchor"),
|
|
8460
8461
|
onClick: () => {
|
|
@@ -8476,78 +8477,691 @@ const SafeArea = (props) => {
|
|
|
8476
8477
|
className: classNames(classPrefix$1o, `${classPrefix$1o}-position-${props.position}`)
|
|
8477
8478
|
}));
|
|
8478
8479
|
};
|
|
8479
|
-
|
|
8480
|
-
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
|
|
8484
|
-
|
|
8485
|
-
|
|
8480
|
+
var warning$3 = {};
|
|
8481
|
+
Object.defineProperty(warning$3, "__esModule", {
|
|
8482
|
+
value: true
|
|
8483
|
+
});
|
|
8484
|
+
warning$3.call = call$1;
|
|
8485
|
+
var default_1$1 = warning$3.default = void 0;
|
|
8486
|
+
warning$3.note = note$1;
|
|
8487
|
+
warning$3.noteOnce = noteOnce$1;
|
|
8488
|
+
warning$3.preMessage = void 0;
|
|
8489
|
+
warning$3.resetWarned = resetWarned$1;
|
|
8490
|
+
warning$3.warning = warning$2;
|
|
8491
|
+
warning$3.warningOnce = warningOnce$1;
|
|
8492
|
+
var warned$1 = {};
|
|
8493
|
+
var preWarningFns$1 = [];
|
|
8494
|
+
var preMessage$1 = warning$3.preMessage = function preMessage2(fn) {
|
|
8495
|
+
preWarningFns$1.push(fn);
|
|
8496
|
+
};
|
|
8497
|
+
function warning$2(valid, message) {
|
|
8498
|
+
if (!valid && console !== void 0) {
|
|
8499
|
+
var finalMessage = preWarningFns$1.reduce(function(msg, preMessageFn) {
|
|
8500
|
+
return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "warning");
|
|
8501
|
+
}, message);
|
|
8502
|
+
if (finalMessage) {
|
|
8503
|
+
console.error("Warning: ".concat(finalMessage));
|
|
8504
|
+
}
|
|
8505
|
+
}
|
|
8506
|
+
}
|
|
8507
|
+
function note$1(valid, message) {
|
|
8508
|
+
if (!valid && console !== void 0) {
|
|
8509
|
+
var finalMessage = preWarningFns$1.reduce(function(msg, preMessageFn) {
|
|
8510
|
+
return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "note");
|
|
8511
|
+
}, message);
|
|
8512
|
+
if (finalMessage) {
|
|
8513
|
+
console.warn("Note: ".concat(finalMessage));
|
|
8514
|
+
}
|
|
8515
|
+
}
|
|
8516
|
+
}
|
|
8517
|
+
function resetWarned$1() {
|
|
8518
|
+
warned$1 = {};
|
|
8519
|
+
}
|
|
8520
|
+
function call$1(method4, valid, message) {
|
|
8521
|
+
if (!valid && !warned$1[message]) {
|
|
8522
|
+
method4(false, message);
|
|
8523
|
+
warned$1[message] = true;
|
|
8524
|
+
}
|
|
8525
|
+
}
|
|
8526
|
+
function warningOnce$1(valid, message) {
|
|
8527
|
+
call$1(warning$2, valid, message);
|
|
8528
|
+
}
|
|
8529
|
+
function noteOnce$1(valid, message) {
|
|
8530
|
+
call$1(note$1, valid, message);
|
|
8531
|
+
}
|
|
8532
|
+
warningOnce$1.preMessage = preMessage$1;
|
|
8533
|
+
warningOnce$1.resetWarned = resetWarned$1;
|
|
8534
|
+
warningOnce$1.noteOnce = noteOnce$1;
|
|
8535
|
+
default_1$1 = warning$3.default = warningOnce$1;
|
|
8536
|
+
var render$1 = {};
|
|
8537
|
+
var interopRequireWildcard = { exports: {} };
|
|
8538
|
+
var _typeof$1 = { exports: {} };
|
|
8539
|
+
(function(module) {
|
|
8540
|
+
function _typeof3(o) {
|
|
8541
|
+
"@babel/helpers - typeof";
|
|
8542
|
+
return module.exports = _typeof3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
8543
|
+
return typeof o2;
|
|
8544
|
+
} : function(o2) {
|
|
8545
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
8546
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof3(o);
|
|
8547
|
+
}
|
|
8548
|
+
module.exports = _typeof3, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8549
|
+
})(_typeof$1);
|
|
8550
|
+
var _typeofExports = _typeof$1.exports;
|
|
8551
|
+
(function(module) {
|
|
8552
|
+
var _typeof3 = _typeofExports["default"];
|
|
8553
|
+
function _getRequireWildcardCache(nodeInterop) {
|
|
8554
|
+
if (typeof WeakMap !== "function")
|
|
8555
|
+
return null;
|
|
8556
|
+
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
8557
|
+
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
8558
|
+
return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
|
|
8559
|
+
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
8560
|
+
})(nodeInterop);
|
|
8561
|
+
}
|
|
8562
|
+
function _interopRequireWildcard2(obj, nodeInterop) {
|
|
8563
|
+
if (!nodeInterop && obj && obj.__esModule) {
|
|
8564
|
+
return obj;
|
|
8565
|
+
}
|
|
8566
|
+
if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") {
|
|
8567
|
+
return {
|
|
8568
|
+
"default": obj
|
|
8569
|
+
};
|
|
8570
|
+
}
|
|
8571
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
8572
|
+
if (cache && cache.has(obj)) {
|
|
8573
|
+
return cache.get(obj);
|
|
8574
|
+
}
|
|
8575
|
+
var newObj = {};
|
|
8576
|
+
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
8577
|
+
for (var key in obj) {
|
|
8578
|
+
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
8579
|
+
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
8580
|
+
if (desc && (desc.get || desc.set)) {
|
|
8581
|
+
Object.defineProperty(newObj, key, desc);
|
|
8582
|
+
} else {
|
|
8583
|
+
newObj[key] = obj[key];
|
|
8584
|
+
}
|
|
8585
|
+
}
|
|
8586
|
+
}
|
|
8587
|
+
newObj["default"] = obj;
|
|
8588
|
+
if (cache) {
|
|
8589
|
+
cache.set(obj, newObj);
|
|
8590
|
+
}
|
|
8591
|
+
return newObj;
|
|
8592
|
+
}
|
|
8593
|
+
module.exports = _interopRequireWildcard2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8594
|
+
})(interopRequireWildcard);
|
|
8595
|
+
var interopRequireWildcardExports = interopRequireWildcard.exports;
|
|
8596
|
+
var interopRequireDefault = { exports: {} };
|
|
8597
|
+
(function(module) {
|
|
8598
|
+
function _interopRequireDefault2(obj) {
|
|
8599
|
+
return obj && obj.__esModule ? obj : {
|
|
8600
|
+
"default": obj
|
|
8601
|
+
};
|
|
8602
|
+
}
|
|
8603
|
+
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8604
|
+
})(interopRequireDefault);
|
|
8605
|
+
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
8606
|
+
var regeneratorRuntime = { exports: {} };
|
|
8607
|
+
(function(module) {
|
|
8608
|
+
var _typeof3 = _typeofExports["default"];
|
|
8609
|
+
function _regeneratorRuntime3() {
|
|
8610
|
+
module.exports = _regeneratorRuntime3 = function _regeneratorRuntime4() {
|
|
8611
|
+
return e2;
|
|
8612
|
+
}, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8613
|
+
var t, e2 = {}, r = Object.prototype, n2 = r.hasOwnProperty, o = Object.defineProperty || function(t2, e3, r2) {
|
|
8614
|
+
t2[e3] = r2.value;
|
|
8615
|
+
}, i2 = "function" == typeof Symbol ? Symbol : {}, a = i2.iterator || "@@iterator", c = i2.asyncIterator || "@@asyncIterator", u = i2.toStringTag || "@@toStringTag";
|
|
8616
|
+
function define(t2, e3, r2) {
|
|
8617
|
+
return Object.defineProperty(t2, e3, {
|
|
8618
|
+
value: r2,
|
|
8619
|
+
enumerable: true,
|
|
8620
|
+
configurable: true,
|
|
8621
|
+
writable: true
|
|
8622
|
+
}), t2[e3];
|
|
8623
|
+
}
|
|
8624
|
+
try {
|
|
8625
|
+
define({}, "");
|
|
8626
|
+
} catch (t2) {
|
|
8627
|
+
define = function define2(t3, e3, r2) {
|
|
8628
|
+
return t3[e3] = r2;
|
|
8629
|
+
};
|
|
8630
|
+
}
|
|
8631
|
+
function wrap(t2, e3, r2, n3) {
|
|
8632
|
+
var i3 = e3 && e3.prototype instanceof Generator ? e3 : Generator, a2 = Object.create(i3.prototype), c6 = new Context2(n3 || []);
|
|
8633
|
+
return o(a2, "_invoke", {
|
|
8634
|
+
value: makeInvokeMethod(t2, r2, c6)
|
|
8635
|
+
}), a2;
|
|
8636
|
+
}
|
|
8637
|
+
function tryCatch(t2, e3, r2) {
|
|
8638
|
+
try {
|
|
8639
|
+
return {
|
|
8640
|
+
type: "normal",
|
|
8641
|
+
arg: t2.call(e3, r2)
|
|
8642
|
+
};
|
|
8643
|
+
} catch (t3) {
|
|
8644
|
+
return {
|
|
8645
|
+
type: "throw",
|
|
8646
|
+
arg: t3
|
|
8647
|
+
};
|
|
8648
|
+
}
|
|
8649
|
+
}
|
|
8650
|
+
e2.wrap = wrap;
|
|
8651
|
+
var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {};
|
|
8652
|
+
function Generator() {
|
|
8653
|
+
}
|
|
8654
|
+
function GeneratorFunction() {
|
|
8655
|
+
}
|
|
8656
|
+
function GeneratorFunctionPrototype() {
|
|
8657
|
+
}
|
|
8658
|
+
var p = {};
|
|
8659
|
+
define(p, a, function() {
|
|
8660
|
+
return this;
|
|
8661
|
+
});
|
|
8662
|
+
var d = Object.getPrototypeOf, v = d && d(d(values([])));
|
|
8663
|
+
v && v !== r && n2.call(v, a) && (p = v);
|
|
8664
|
+
var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p);
|
|
8665
|
+
function defineIteratorMethods(t2) {
|
|
8666
|
+
["next", "throw", "return"].forEach(function(e3) {
|
|
8667
|
+
define(t2, e3, function(t3) {
|
|
8668
|
+
return this._invoke(e3, t3);
|
|
8669
|
+
});
|
|
8670
|
+
});
|
|
8671
|
+
}
|
|
8672
|
+
function AsyncIterator(t2, e3) {
|
|
8673
|
+
function invoke(r3, o2, i3, a2) {
|
|
8674
|
+
var c6 = tryCatch(t2[r3], t2, o2);
|
|
8675
|
+
if ("throw" !== c6.type) {
|
|
8676
|
+
var u2 = c6.arg, h2 = u2.value;
|
|
8677
|
+
return h2 && "object" == _typeof3(h2) && n2.call(h2, "__await") ? e3.resolve(h2.__await).then(function(t3) {
|
|
8678
|
+
invoke("next", t3, i3, a2);
|
|
8679
|
+
}, function(t3) {
|
|
8680
|
+
invoke("throw", t3, i3, a2);
|
|
8681
|
+
}) : e3.resolve(h2).then(function(t3) {
|
|
8682
|
+
u2.value = t3, i3(u2);
|
|
8683
|
+
}, function(t3) {
|
|
8684
|
+
return invoke("throw", t3, i3, a2);
|
|
8685
|
+
});
|
|
8686
|
+
}
|
|
8687
|
+
a2(c6.arg);
|
|
8688
|
+
}
|
|
8689
|
+
var r2;
|
|
8690
|
+
o(this, "_invoke", {
|
|
8691
|
+
value: function value(t3, n3) {
|
|
8692
|
+
function callInvokeWithMethodAndArg() {
|
|
8693
|
+
return new e3(function(e4, r3) {
|
|
8694
|
+
invoke(t3, n3, e4, r3);
|
|
8695
|
+
});
|
|
8696
|
+
}
|
|
8697
|
+
return r2 = r2 ? r2.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
8698
|
+
}
|
|
8699
|
+
});
|
|
8700
|
+
}
|
|
8701
|
+
function makeInvokeMethod(e3, r2, n3) {
|
|
8702
|
+
var o2 = h;
|
|
8703
|
+
return function(i3, a2) {
|
|
8704
|
+
if (o2 === f)
|
|
8705
|
+
throw new Error("Generator is already running");
|
|
8706
|
+
if (o2 === s) {
|
|
8707
|
+
if ("throw" === i3)
|
|
8708
|
+
throw a2;
|
|
8709
|
+
return {
|
|
8710
|
+
value: t,
|
|
8711
|
+
done: true
|
|
8712
|
+
};
|
|
8713
|
+
}
|
|
8714
|
+
for (n3.method = i3, n3.arg = a2; ; ) {
|
|
8715
|
+
var c6 = n3.delegate;
|
|
8716
|
+
if (c6) {
|
|
8717
|
+
var u2 = maybeInvokeDelegate(c6, n3);
|
|
8718
|
+
if (u2) {
|
|
8719
|
+
if (u2 === y)
|
|
8720
|
+
continue;
|
|
8721
|
+
return u2;
|
|
8722
|
+
}
|
|
8723
|
+
}
|
|
8724
|
+
if ("next" === n3.method)
|
|
8725
|
+
n3.sent = n3._sent = n3.arg;
|
|
8726
|
+
else if ("throw" === n3.method) {
|
|
8727
|
+
if (o2 === h)
|
|
8728
|
+
throw o2 = s, n3.arg;
|
|
8729
|
+
n3.dispatchException(n3.arg);
|
|
8730
|
+
} else
|
|
8731
|
+
"return" === n3.method && n3.abrupt("return", n3.arg);
|
|
8732
|
+
o2 = f;
|
|
8733
|
+
var p2 = tryCatch(e3, r2, n3);
|
|
8734
|
+
if ("normal" === p2.type) {
|
|
8735
|
+
if (o2 = n3.done ? s : l, p2.arg === y)
|
|
8736
|
+
continue;
|
|
8737
|
+
return {
|
|
8738
|
+
value: p2.arg,
|
|
8739
|
+
done: n3.done
|
|
8740
|
+
};
|
|
8741
|
+
}
|
|
8742
|
+
"throw" === p2.type && (o2 = s, n3.method = "throw", n3.arg = p2.arg);
|
|
8743
|
+
}
|
|
8744
|
+
};
|
|
8745
|
+
}
|
|
8746
|
+
function maybeInvokeDelegate(e3, r2) {
|
|
8747
|
+
var n3 = r2.method, o2 = e3.iterator[n3];
|
|
8748
|
+
if (o2 === t)
|
|
8749
|
+
return r2.delegate = null, "throw" === n3 && e3.iterator["return"] && (r2.method = "return", r2.arg = t, maybeInvokeDelegate(e3, r2), "throw" === r2.method) || "return" !== n3 && (r2.method = "throw", r2.arg = new TypeError("The iterator does not provide a '" + n3 + "' method")), y;
|
|
8750
|
+
var i3 = tryCatch(o2, e3.iterator, r2.arg);
|
|
8751
|
+
if ("throw" === i3.type)
|
|
8752
|
+
return r2.method = "throw", r2.arg = i3.arg, r2.delegate = null, y;
|
|
8753
|
+
var a2 = i3.arg;
|
|
8754
|
+
return a2 ? a2.done ? (r2[e3.resultName] = a2.value, r2.next = e3.nextLoc, "return" !== r2.method && (r2.method = "next", r2.arg = t), r2.delegate = null, y) : a2 : (r2.method = "throw", r2.arg = new TypeError("iterator result is not an object"), r2.delegate = null, y);
|
|
8755
|
+
}
|
|
8756
|
+
function pushTryEntry(t2) {
|
|
8757
|
+
var e3 = {
|
|
8758
|
+
tryLoc: t2[0]
|
|
8759
|
+
};
|
|
8760
|
+
1 in t2 && (e3.catchLoc = t2[1]), 2 in t2 && (e3.finallyLoc = t2[2], e3.afterLoc = t2[3]), this.tryEntries.push(e3);
|
|
8761
|
+
}
|
|
8762
|
+
function resetTryEntry(t2) {
|
|
8763
|
+
var e3 = t2.completion || {};
|
|
8764
|
+
e3.type = "normal", delete e3.arg, t2.completion = e3;
|
|
8765
|
+
}
|
|
8766
|
+
function Context2(t2) {
|
|
8767
|
+
this.tryEntries = [{
|
|
8768
|
+
tryLoc: "root"
|
|
8769
|
+
}], t2.forEach(pushTryEntry, this), this.reset(true);
|
|
8770
|
+
}
|
|
8771
|
+
function values(e3) {
|
|
8772
|
+
if (e3 || "" === e3) {
|
|
8773
|
+
var r2 = e3[a];
|
|
8774
|
+
if (r2)
|
|
8775
|
+
return r2.call(e3);
|
|
8776
|
+
if ("function" == typeof e3.next)
|
|
8777
|
+
return e3;
|
|
8778
|
+
if (!isNaN(e3.length)) {
|
|
8779
|
+
var o2 = -1, i3 = function next() {
|
|
8780
|
+
for (; ++o2 < e3.length; )
|
|
8781
|
+
if (n2.call(e3, o2))
|
|
8782
|
+
return next.value = e3[o2], next.done = false, next;
|
|
8783
|
+
return next.value = t, next.done = true, next;
|
|
8784
|
+
};
|
|
8785
|
+
return i3.next = i3;
|
|
8786
|
+
}
|
|
8787
|
+
}
|
|
8788
|
+
throw new TypeError(_typeof3(e3) + " is not iterable");
|
|
8789
|
+
}
|
|
8790
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
8791
|
+
value: GeneratorFunctionPrototype,
|
|
8792
|
+
configurable: true
|
|
8793
|
+
}), o(GeneratorFunctionPrototype, "constructor", {
|
|
8794
|
+
value: GeneratorFunction,
|
|
8795
|
+
configurable: true
|
|
8796
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e2.isGeneratorFunction = function(t2) {
|
|
8797
|
+
var e3 = "function" == typeof t2 && t2.constructor;
|
|
8798
|
+
return !!e3 && (e3 === GeneratorFunction || "GeneratorFunction" === (e3.displayName || e3.name));
|
|
8799
|
+
}, e2.mark = function(t2) {
|
|
8800
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(t2, GeneratorFunctionPrototype) : (t2.__proto__ = GeneratorFunctionPrototype, define(t2, u, "GeneratorFunction")), t2.prototype = Object.create(g), t2;
|
|
8801
|
+
}, e2.awrap = function(t2) {
|
|
8802
|
+
return {
|
|
8803
|
+
__await: t2
|
|
8804
|
+
};
|
|
8805
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function() {
|
|
8806
|
+
return this;
|
|
8807
|
+
}), e2.AsyncIterator = AsyncIterator, e2.async = function(t2, r2, n3, o2, i3) {
|
|
8808
|
+
void 0 === i3 && (i3 = Promise);
|
|
8809
|
+
var a2 = new AsyncIterator(wrap(t2, r2, n3, o2), i3);
|
|
8810
|
+
return e2.isGeneratorFunction(r2) ? a2 : a2.next().then(function(t3) {
|
|
8811
|
+
return t3.done ? t3.value : a2.next();
|
|
8812
|
+
});
|
|
8813
|
+
}, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function() {
|
|
8814
|
+
return this;
|
|
8815
|
+
}), define(g, "toString", function() {
|
|
8816
|
+
return "[object Generator]";
|
|
8817
|
+
}), e2.keys = function(t2) {
|
|
8818
|
+
var e3 = Object(t2), r2 = [];
|
|
8819
|
+
for (var n3 in e3)
|
|
8820
|
+
r2.push(n3);
|
|
8821
|
+
return r2.reverse(), function next() {
|
|
8822
|
+
for (; r2.length; ) {
|
|
8823
|
+
var t3 = r2.pop();
|
|
8824
|
+
if (t3 in e3)
|
|
8825
|
+
return next.value = t3, next.done = false, next;
|
|
8826
|
+
}
|
|
8827
|
+
return next.done = true, next;
|
|
8828
|
+
};
|
|
8829
|
+
}, e2.values = values, Context2.prototype = {
|
|
8830
|
+
constructor: Context2,
|
|
8831
|
+
reset: function reset(e3) {
|
|
8832
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = false, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e3)
|
|
8833
|
+
for (var r2 in this)
|
|
8834
|
+
"t" === r2.charAt(0) && n2.call(this, r2) && !isNaN(+r2.slice(1)) && (this[r2] = t);
|
|
8835
|
+
},
|
|
8836
|
+
stop: function stop2() {
|
|
8837
|
+
this.done = true;
|
|
8838
|
+
var t2 = this.tryEntries[0].completion;
|
|
8839
|
+
if ("throw" === t2.type)
|
|
8840
|
+
throw t2.arg;
|
|
8841
|
+
return this.rval;
|
|
8842
|
+
},
|
|
8843
|
+
dispatchException: function dispatchException(e3) {
|
|
8844
|
+
if (this.done)
|
|
8845
|
+
throw e3;
|
|
8846
|
+
var r2 = this;
|
|
8847
|
+
function handle(n3, o3) {
|
|
8848
|
+
return a2.type = "throw", a2.arg = e3, r2.next = n3, o3 && (r2.method = "next", r2.arg = t), !!o3;
|
|
8849
|
+
}
|
|
8850
|
+
for (var o2 = this.tryEntries.length - 1; o2 >= 0; --o2) {
|
|
8851
|
+
var i3 = this.tryEntries[o2], a2 = i3.completion;
|
|
8852
|
+
if ("root" === i3.tryLoc)
|
|
8853
|
+
return handle("end");
|
|
8854
|
+
if (i3.tryLoc <= this.prev) {
|
|
8855
|
+
var c6 = n2.call(i3, "catchLoc"), u2 = n2.call(i3, "finallyLoc");
|
|
8856
|
+
if (c6 && u2) {
|
|
8857
|
+
if (this.prev < i3.catchLoc)
|
|
8858
|
+
return handle(i3.catchLoc, true);
|
|
8859
|
+
if (this.prev < i3.finallyLoc)
|
|
8860
|
+
return handle(i3.finallyLoc);
|
|
8861
|
+
} else if (c6) {
|
|
8862
|
+
if (this.prev < i3.catchLoc)
|
|
8863
|
+
return handle(i3.catchLoc, true);
|
|
8864
|
+
} else {
|
|
8865
|
+
if (!u2)
|
|
8866
|
+
throw new Error("try statement without catch or finally");
|
|
8867
|
+
if (this.prev < i3.finallyLoc)
|
|
8868
|
+
return handle(i3.finallyLoc);
|
|
8869
|
+
}
|
|
8870
|
+
}
|
|
8871
|
+
}
|
|
8872
|
+
},
|
|
8873
|
+
abrupt: function abrupt(t2, e3) {
|
|
8874
|
+
for (var r2 = this.tryEntries.length - 1; r2 >= 0; --r2) {
|
|
8875
|
+
var o2 = this.tryEntries[r2];
|
|
8876
|
+
if (o2.tryLoc <= this.prev && n2.call(o2, "finallyLoc") && this.prev < o2.finallyLoc) {
|
|
8877
|
+
var i3 = o2;
|
|
8878
|
+
break;
|
|
8879
|
+
}
|
|
8880
|
+
}
|
|
8881
|
+
i3 && ("break" === t2 || "continue" === t2) && i3.tryLoc <= e3 && e3 <= i3.finallyLoc && (i3 = null);
|
|
8882
|
+
var a2 = i3 ? i3.completion : {};
|
|
8883
|
+
return a2.type = t2, a2.arg = e3, i3 ? (this.method = "next", this.next = i3.finallyLoc, y) : this.complete(a2);
|
|
8884
|
+
},
|
|
8885
|
+
complete: function complete(t2, e3) {
|
|
8886
|
+
if ("throw" === t2.type)
|
|
8887
|
+
throw t2.arg;
|
|
8888
|
+
return "break" === t2.type || "continue" === t2.type ? this.next = t2.arg : "return" === t2.type ? (this.rval = this.arg = t2.arg, this.method = "return", this.next = "end") : "normal" === t2.type && e3 && (this.next = e3), y;
|
|
8889
|
+
},
|
|
8890
|
+
finish: function finish(t2) {
|
|
8891
|
+
for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
|
|
8892
|
+
var r2 = this.tryEntries[e3];
|
|
8893
|
+
if (r2.finallyLoc === t2)
|
|
8894
|
+
return this.complete(r2.completion, r2.afterLoc), resetTryEntry(r2), y;
|
|
8895
|
+
}
|
|
8896
|
+
},
|
|
8897
|
+
"catch": function _catch(t2) {
|
|
8898
|
+
for (var e3 = this.tryEntries.length - 1; e3 >= 0; --e3) {
|
|
8899
|
+
var r2 = this.tryEntries[e3];
|
|
8900
|
+
if (r2.tryLoc === t2) {
|
|
8901
|
+
var n3 = r2.completion;
|
|
8902
|
+
if ("throw" === n3.type) {
|
|
8903
|
+
var o2 = n3.arg;
|
|
8904
|
+
resetTryEntry(r2);
|
|
8905
|
+
}
|
|
8906
|
+
return o2;
|
|
8907
|
+
}
|
|
8908
|
+
}
|
|
8909
|
+
throw new Error("illegal catch attempt");
|
|
8910
|
+
},
|
|
8911
|
+
delegateYield: function delegateYield(e3, r2, n3) {
|
|
8912
|
+
return this.delegate = {
|
|
8913
|
+
iterator: values(e3),
|
|
8914
|
+
resultName: r2,
|
|
8915
|
+
nextLoc: n3
|
|
8916
|
+
}, "next" === this.method && (this.arg = t), y;
|
|
8917
|
+
}
|
|
8918
|
+
}, e2;
|
|
8919
|
+
}
|
|
8920
|
+
module.exports = _regeneratorRuntime3, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8921
|
+
})(regeneratorRuntime);
|
|
8922
|
+
var regeneratorRuntimeExports = regeneratorRuntime.exports;
|
|
8923
|
+
var asyncToGenerator = { exports: {} };
|
|
8924
|
+
(function(module) {
|
|
8925
|
+
function asyncGeneratorStep2(gen, resolve, reject, _next, _throw, key, arg) {
|
|
8926
|
+
try {
|
|
8927
|
+
var info = gen[key](arg);
|
|
8928
|
+
var value = info.value;
|
|
8929
|
+
} catch (error) {
|
|
8930
|
+
reject(error);
|
|
8931
|
+
return;
|
|
8932
|
+
}
|
|
8933
|
+
if (info.done) {
|
|
8934
|
+
resolve(value);
|
|
8935
|
+
} else {
|
|
8936
|
+
Promise.resolve(value).then(_next, _throw);
|
|
8937
|
+
}
|
|
8938
|
+
}
|
|
8939
|
+
function _asyncToGenerator3(fn) {
|
|
8940
|
+
return function() {
|
|
8941
|
+
var self2 = this, args = arguments;
|
|
8942
|
+
return new Promise(function(resolve, reject) {
|
|
8943
|
+
var gen = fn.apply(self2, args);
|
|
8944
|
+
function _next(value) {
|
|
8945
|
+
asyncGeneratorStep2(gen, resolve, reject, _next, _throw, "next", value);
|
|
8946
|
+
}
|
|
8947
|
+
function _throw(err) {
|
|
8948
|
+
asyncGeneratorStep2(gen, resolve, reject, _next, _throw, "throw", err);
|
|
8949
|
+
}
|
|
8950
|
+
_next(void 0);
|
|
8951
|
+
});
|
|
8952
|
+
};
|
|
8953
|
+
}
|
|
8954
|
+
module.exports = _asyncToGenerator3, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8955
|
+
})(asyncToGenerator);
|
|
8956
|
+
var asyncToGeneratorExports = asyncToGenerator.exports;
|
|
8957
|
+
var objectSpread2 = { exports: {} };
|
|
8958
|
+
var defineProperty = { exports: {} };
|
|
8959
|
+
var toPropertyKey = { exports: {} };
|
|
8960
|
+
var toPrimitive = { exports: {} };
|
|
8961
|
+
(function(module) {
|
|
8962
|
+
var _typeof3 = _typeofExports["default"];
|
|
8963
|
+
function _toPrimitive2(input, hint) {
|
|
8964
|
+
if (_typeof3(input) !== "object" || input === null)
|
|
8965
|
+
return input;
|
|
8966
|
+
var prim = input[Symbol.toPrimitive];
|
|
8967
|
+
if (prim !== void 0) {
|
|
8968
|
+
var res = prim.call(input, hint || "default");
|
|
8969
|
+
if (_typeof3(res) !== "object")
|
|
8970
|
+
return res;
|
|
8971
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
8972
|
+
}
|
|
8973
|
+
return (hint === "string" ? String : Number)(input);
|
|
8974
|
+
}
|
|
8975
|
+
module.exports = _toPrimitive2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8976
|
+
})(toPrimitive);
|
|
8977
|
+
var toPrimitiveExports = toPrimitive.exports;
|
|
8978
|
+
(function(module) {
|
|
8979
|
+
var _typeof3 = _typeofExports["default"];
|
|
8980
|
+
var toPrimitive2 = toPrimitiveExports;
|
|
8981
|
+
function _toPropertyKey2(arg) {
|
|
8982
|
+
var key = toPrimitive2(arg, "string");
|
|
8983
|
+
return _typeof3(key) === "symbol" ? key : String(key);
|
|
8984
|
+
}
|
|
8985
|
+
module.exports = _toPropertyKey2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
8986
|
+
})(toPropertyKey);
|
|
8987
|
+
var toPropertyKeyExports = toPropertyKey.exports;
|
|
8988
|
+
(function(module) {
|
|
8989
|
+
var toPropertyKey2 = toPropertyKeyExports;
|
|
8990
|
+
function _defineProperty2(obj, key, value) {
|
|
8991
|
+
key = toPropertyKey2(key);
|
|
8992
|
+
if (key in obj) {
|
|
8993
|
+
Object.defineProperty(obj, key, {
|
|
8994
|
+
value,
|
|
8995
|
+
enumerable: true,
|
|
8996
|
+
configurable: true,
|
|
8997
|
+
writable: true
|
|
8998
|
+
});
|
|
8999
|
+
} else {
|
|
9000
|
+
obj[key] = value;
|
|
9001
|
+
}
|
|
9002
|
+
return obj;
|
|
9003
|
+
}
|
|
9004
|
+
module.exports = _defineProperty2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9005
|
+
})(defineProperty);
|
|
9006
|
+
var definePropertyExports = defineProperty.exports;
|
|
9007
|
+
(function(module) {
|
|
9008
|
+
var defineProperty2 = definePropertyExports;
|
|
9009
|
+
function ownKeys2(e2, r) {
|
|
9010
|
+
var t = Object.keys(e2);
|
|
9011
|
+
if (Object.getOwnPropertySymbols) {
|
|
9012
|
+
var o = Object.getOwnPropertySymbols(e2);
|
|
9013
|
+
r && (o = o.filter(function(r2) {
|
|
9014
|
+
return Object.getOwnPropertyDescriptor(e2, r2).enumerable;
|
|
9015
|
+
})), t.push.apply(t, o);
|
|
9016
|
+
}
|
|
9017
|
+
return t;
|
|
9018
|
+
}
|
|
9019
|
+
function _objectSpread22(e2) {
|
|
9020
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
9021
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
9022
|
+
r % 2 ? ownKeys2(Object(t), true).forEach(function(r2) {
|
|
9023
|
+
defineProperty2(e2, r2, t[r2]);
|
|
9024
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e2, Object.getOwnPropertyDescriptors(t)) : ownKeys2(Object(t)).forEach(function(r2) {
|
|
9025
|
+
Object.defineProperty(e2, r2, Object.getOwnPropertyDescriptor(t, r2));
|
|
9026
|
+
});
|
|
9027
|
+
}
|
|
9028
|
+
return e2;
|
|
9029
|
+
}
|
|
9030
|
+
module.exports = _objectSpread22, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
9031
|
+
})(objectSpread2);
|
|
9032
|
+
var objectSpread2Exports = objectSpread2.exports;
|
|
9033
|
+
var _interopRequireWildcard$2 = interopRequireWildcardExports.default;
|
|
9034
|
+
var _interopRequireDefault$4 = interopRequireDefaultExports.default;
|
|
9035
|
+
Object.defineProperty(render$1, "__esModule", {
|
|
9036
|
+
value: true
|
|
9037
|
+
});
|
|
9038
|
+
render$1._r = _r;
|
|
9039
|
+
render$1._u = _u;
|
|
9040
|
+
var render_2 = render$1.render = render;
|
|
9041
|
+
var unmount_1 = render$1.unmount = unmount;
|
|
9042
|
+
var _regeneratorRuntime2 = _interopRequireDefault$4(regeneratorRuntimeExports);
|
|
9043
|
+
var _asyncToGenerator2 = _interopRequireDefault$4(asyncToGeneratorExports);
|
|
9044
|
+
var _typeof2$3 = _interopRequireDefault$4(_typeofExports);
|
|
9045
|
+
var _objectSpread2$1 = _interopRequireDefault$4(objectSpread2Exports);
|
|
9046
|
+
var ReactDOM = _interopRequireWildcard$2(ReactDOM__default);
|
|
9047
|
+
var fullClone = (0, _objectSpread2$1.default)({}, ReactDOM);
|
|
9048
|
+
var version = fullClone.version, reactRender = fullClone.render, unmountComponentAtNode = fullClone.unmountComponentAtNode;
|
|
9049
|
+
var createRoot;
|
|
8486
9050
|
try {
|
|
8487
|
-
|
|
8488
|
-
if (mainVersion >= 18
|
|
9051
|
+
var mainVersion = Number((version || "").split(".")[0]);
|
|
9052
|
+
if (mainVersion >= 18) {
|
|
8489
9053
|
createRoot = fullClone.createRoot;
|
|
8490
9054
|
}
|
|
8491
9055
|
} catch (e2) {
|
|
8492
9056
|
}
|
|
8493
9057
|
function toggleWarning(skip) {
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
} = fullClone;
|
|
8497
|
-
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === "object") {
|
|
9058
|
+
var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
9059
|
+
if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && (0, _typeof2$3.default)(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED) === "object") {
|
|
8498
9060
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
|
|
8499
9061
|
}
|
|
8500
9062
|
}
|
|
8501
|
-
|
|
8502
|
-
function
|
|
8503
|
-
reactRender(node, container);
|
|
8504
|
-
}
|
|
8505
|
-
function concurrentRender(node, container) {
|
|
9063
|
+
var MARK = "__rc_react_root__";
|
|
9064
|
+
function modernRender(node, container) {
|
|
8506
9065
|
toggleWarning(true);
|
|
8507
|
-
|
|
9066
|
+
var root2 = container[MARK] || createRoot(container);
|
|
8508
9067
|
toggleWarning(false);
|
|
8509
9068
|
root2.render(node);
|
|
8510
9069
|
container[MARK] = root2;
|
|
8511
9070
|
}
|
|
9071
|
+
function legacyRender(node, container) {
|
|
9072
|
+
reactRender === null || reactRender === void 0 || reactRender(node, container);
|
|
9073
|
+
}
|
|
9074
|
+
function _r(node, container) {
|
|
9075
|
+
{
|
|
9076
|
+
return legacyRender(node, container);
|
|
9077
|
+
}
|
|
9078
|
+
}
|
|
8512
9079
|
function render(node, container) {
|
|
8513
9080
|
if (createRoot) {
|
|
8514
|
-
|
|
9081
|
+
modernRender(node, container);
|
|
8515
9082
|
return;
|
|
8516
9083
|
}
|
|
8517
9084
|
legacyRender(node, container);
|
|
8518
9085
|
}
|
|
9086
|
+
function modernUnmount(_x) {
|
|
9087
|
+
return _modernUnmount.apply(this, arguments);
|
|
9088
|
+
}
|
|
9089
|
+
function _modernUnmount() {
|
|
9090
|
+
_modernUnmount = (0, _asyncToGenerator2.default)(/* @__PURE__ */ (0, _regeneratorRuntime2.default)().mark(function _callee(container) {
|
|
9091
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
9092
|
+
while (1)
|
|
9093
|
+
switch (_context.prev = _context.next) {
|
|
9094
|
+
case 0:
|
|
9095
|
+
return _context.abrupt("return", Promise.resolve().then(function() {
|
|
9096
|
+
var _container$MARK;
|
|
9097
|
+
(_container$MARK = container[MARK]) === null || _container$MARK === void 0 || _container$MARK.unmount();
|
|
9098
|
+
delete container[MARK];
|
|
9099
|
+
}));
|
|
9100
|
+
case 1:
|
|
9101
|
+
case "end":
|
|
9102
|
+
return _context.stop();
|
|
9103
|
+
}
|
|
9104
|
+
}, _callee);
|
|
9105
|
+
}));
|
|
9106
|
+
return _modernUnmount.apply(this, arguments);
|
|
9107
|
+
}
|
|
8519
9108
|
function legacyUnmount(container) {
|
|
8520
|
-
|
|
9109
|
+
unmountComponentAtNode(container);
|
|
8521
9110
|
}
|
|
8522
|
-
function
|
|
8523
|
-
|
|
8524
|
-
return
|
|
8525
|
-
|
|
8526
|
-
(_a = container[MARK]) === null || _a === void 0 ? void 0 : _a.unmount();
|
|
8527
|
-
delete container[MARK];
|
|
8528
|
-
});
|
|
8529
|
-
});
|
|
9111
|
+
function _u(container) {
|
|
9112
|
+
{
|
|
9113
|
+
return legacyUnmount(container);
|
|
9114
|
+
}
|
|
8530
9115
|
}
|
|
8531
|
-
function unmount(
|
|
8532
|
-
|
|
8533
|
-
|
|
9116
|
+
function unmount(_x2) {
|
|
9117
|
+
return _unmount.apply(this, arguments);
|
|
9118
|
+
}
|
|
9119
|
+
function _unmount() {
|
|
9120
|
+
_unmount = (0, _asyncToGenerator2.default)(/* @__PURE__ */ (0, _regeneratorRuntime2.default)().mark(function _callee2(container) {
|
|
9121
|
+
return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
|
|
9122
|
+
while (1)
|
|
9123
|
+
switch (_context2.prev = _context2.next) {
|
|
9124
|
+
case 0:
|
|
9125
|
+
if (!(createRoot !== void 0)) {
|
|
9126
|
+
_context2.next = 2;
|
|
9127
|
+
break;
|
|
9128
|
+
}
|
|
9129
|
+
return _context2.abrupt("return", modernUnmount(container));
|
|
9130
|
+
case 2:
|
|
9131
|
+
legacyUnmount(container);
|
|
9132
|
+
case 3:
|
|
9133
|
+
case "end":
|
|
9134
|
+
return _context2.stop();
|
|
9135
|
+
}
|
|
9136
|
+
}, _callee2);
|
|
9137
|
+
}));
|
|
9138
|
+
return _unmount.apply(this, arguments);
|
|
9139
|
+
}
|
|
9140
|
+
const defaultReactRender = (node, container) => {
|
|
9141
|
+
{
|
|
9142
|
+
const majorVersion = parseInt(React$2.version.split(".")[0], 10);
|
|
9143
|
+
const fullKeys = Object.keys(ReactDOM$1);
|
|
9144
|
+
default_1$1(majorVersion < 19 || fullKeys.includes("createRoot"), `[Compatible] antd-mobile v5 support React is 16 ~ 18. see https://mobile.ant.design/guide/v5-for-19 for compatible.`);
|
|
8534
9145
|
}
|
|
8535
|
-
|
|
9146
|
+
render_2(node, container);
|
|
9147
|
+
return () => {
|
|
9148
|
+
return unmount_1(container);
|
|
9149
|
+
};
|
|
9150
|
+
};
|
|
9151
|
+
let unstableRender = defaultReactRender;
|
|
9152
|
+
function unstableSetRender(render2) {
|
|
9153
|
+
if (render2) {
|
|
9154
|
+
unstableRender = render2;
|
|
9155
|
+
}
|
|
9156
|
+
return unstableRender;
|
|
8536
9157
|
}
|
|
8537
9158
|
function renderToBody(element) {
|
|
8538
9159
|
const container = document.createElement("div");
|
|
8539
9160
|
document.body.appendChild(container);
|
|
8540
|
-
|
|
8541
|
-
const unmountResult = unmount(container);
|
|
8542
|
-
if (unmountResult && container.parentNode) {
|
|
8543
|
-
container.parentNode.removeChild(container);
|
|
8544
|
-
}
|
|
8545
|
-
}
|
|
8546
|
-
render(element, container);
|
|
8547
|
-
return unmount$1;
|
|
9161
|
+
return unstableSetRender()(element, container);
|
|
8548
9162
|
}
|
|
8549
9163
|
function renderImperatively(element) {
|
|
8550
|
-
const Wrapper2 = React__default.forwardRef((_,
|
|
9164
|
+
const Wrapper2 = React__default.forwardRef((_, ref2) => {
|
|
8551
9165
|
const [visible, setVisible] = useState(false);
|
|
8552
9166
|
const closedRef = useRef(false);
|
|
8553
9167
|
const [elementToRender, setElementToRender] = useState(element);
|
|
@@ -8570,7 +9184,7 @@ function renderImperatively(element) {
|
|
|
8570
9184
|
unmount2();
|
|
8571
9185
|
(_b = (_a = elementToRender.props).afterClose) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
8572
9186
|
}
|
|
8573
|
-
useImperativeHandle(
|
|
9187
|
+
useImperativeHandle(ref2, () => ({
|
|
8574
9188
|
close: onClose,
|
|
8575
9189
|
replace: (element2) => {
|
|
8576
9190
|
var _a, _b;
|
|
@@ -8753,8 +9367,8 @@ function Stage(props) {
|
|
|
8753
9367
|
return processNext(next);
|
|
8754
9368
|
}
|
|
8755
9369
|
function staged(stage) {
|
|
8756
|
-
return function Staged(props,
|
|
8757
|
-
const next = stage(props,
|
|
9370
|
+
return function Staged(props, ref2) {
|
|
9371
|
+
const next = stage(props, ref2);
|
|
8758
9372
|
return processNext(next);
|
|
8759
9373
|
};
|
|
8760
9374
|
}
|
|
@@ -8763,15 +9377,15 @@ function toCSSLength(val) {
|
|
|
8763
9377
|
return typeof val === "number" ? `${val}px` : val;
|
|
8764
9378
|
}
|
|
8765
9379
|
const LazyDetector = (props) => {
|
|
8766
|
-
const
|
|
8767
|
-
const [inViewport] = useInViewport(
|
|
9380
|
+
const ref2 = useRef(null);
|
|
9381
|
+
const [inViewport] = useInViewport(ref2);
|
|
8768
9382
|
useEffect(() => {
|
|
8769
9383
|
if (inViewport) {
|
|
8770
9384
|
props.onActive();
|
|
8771
9385
|
}
|
|
8772
9386
|
}, [inViewport]);
|
|
8773
9387
|
return React__default.createElement("div", {
|
|
8774
|
-
ref
|
|
9388
|
+
ref: ref2
|
|
8775
9389
|
});
|
|
8776
9390
|
};
|
|
8777
9391
|
const useIsomorphicUpdateLayoutEffect = createUpdateEffect(useIsomorphicLayoutEffect$3);
|
|
@@ -8807,7 +9421,7 @@ const Image$1 = staged_1((p) => {
|
|
|
8807
9421
|
const props = mergeProps(defaultProps$11, p);
|
|
8808
9422
|
const [loaded, setLoaded] = useState(false);
|
|
8809
9423
|
const [failed, setFailed] = useState(false);
|
|
8810
|
-
const
|
|
9424
|
+
const ref2 = useRef(null);
|
|
8811
9425
|
const imgRef = useRef(null);
|
|
8812
9426
|
let src = props.src;
|
|
8813
9427
|
let srcSet = props.srcSet;
|
|
@@ -8870,7 +9484,7 @@ const Image$1 = staged_1((p) => {
|
|
|
8870
9484
|
style2["height"] = toCSSLength(props.height);
|
|
8871
9485
|
}
|
|
8872
9486
|
return withNativeProps(props, React__default.createElement("div", {
|
|
8873
|
-
ref,
|
|
9487
|
+
ref: ref2,
|
|
8874
9488
|
className: classPrefix$1l,
|
|
8875
9489
|
style: style2,
|
|
8876
9490
|
onClick: props.onContainerClick
|
|
@@ -9002,13 +9616,13 @@ const defaultProps$_ = {
|
|
|
9002
9616
|
shape: "default",
|
|
9003
9617
|
size: "middle"
|
|
9004
9618
|
};
|
|
9005
|
-
const Button = forwardRef((p,
|
|
9619
|
+
const Button = forwardRef((p, ref2) => {
|
|
9006
9620
|
const props = mergeProps(defaultProps$_, p);
|
|
9007
9621
|
const [innerLoading, setInnerLoading] = useState(false);
|
|
9008
9622
|
const nativeButtonRef = useRef(null);
|
|
9009
9623
|
const loading = props.loading === "auto" ? innerLoading : props.loading;
|
|
9010
9624
|
const disabled = props.disabled || loading;
|
|
9011
|
-
useImperativeHandle(
|
|
9625
|
+
useImperativeHandle(ref2, () => ({
|
|
9012
9626
|
get nativeElement() {
|
|
9013
9627
|
return nativeButtonRef.current;
|
|
9014
9628
|
}
|
|
@@ -9031,6 +9645,7 @@ const Button = forwardRef((p, ref) => {
|
|
|
9031
9645
|
return withNativeProps(props, React__default.createElement("button", {
|
|
9032
9646
|
ref: nativeButtonRef,
|
|
9033
9647
|
type: props.type,
|
|
9648
|
+
form: props.form,
|
|
9034
9649
|
onClick: handleClick,
|
|
9035
9650
|
className: classNames(classPrefix$1h, {
|
|
9036
9651
|
[`${classPrefix$1h}-${props.color}`]: props.color,
|
|
@@ -9195,7 +9810,7 @@ const defaultProps$Z = {
|
|
|
9195
9810
|
nextMonthButton: React__default.createElement(ArrowLeft, null),
|
|
9196
9811
|
nextYearButton: React__default.createElement(ArrowLeftDouble, null)
|
|
9197
9812
|
};
|
|
9198
|
-
const Calendar = forwardRef((p,
|
|
9813
|
+
const Calendar = forwardRef((p, ref2) => {
|
|
9199
9814
|
const today = dayjs();
|
|
9200
9815
|
const props = mergeProps(defaultProps$Z, p);
|
|
9201
9816
|
const {
|
|
@@ -9225,7 +9840,7 @@ const Calendar = forwardRef((p, ref) => {
|
|
|
9225
9840
|
var _a;
|
|
9226
9841
|
(_a = props.onPageChange) === null || _a === void 0 ? void 0 : _a.call(props, current.year(), current.month() + 1);
|
|
9227
9842
|
}, [current]);
|
|
9228
|
-
useImperativeHandle(
|
|
9843
|
+
useImperativeHandle(ref2, () => ({
|
|
9229
9844
|
jumpTo: (pageOrPageGenerator) => {
|
|
9230
9845
|
let page;
|
|
9231
9846
|
if (typeof pageOrPageGenerator === "function") {
|
|
@@ -9286,8 +9901,8 @@ const Calendar = forwardRef((p, ref) => {
|
|
|
9286
9901
|
handlePageChange("add", 1, "year");
|
|
9287
9902
|
}
|
|
9288
9903
|
}, props.nextYearButton));
|
|
9289
|
-
const maxDay = useMemo(() => props.max && dayjs(props.max), [props.max]);
|
|
9290
|
-
const minDay = useMemo(() => props.min && dayjs(props.min), [props.min]);
|
|
9904
|
+
const maxDay = useMemo$2(() => props.max && dayjs(props.max), [props.max]);
|
|
9905
|
+
const minDay = useMemo$2(() => props.min && dayjs(props.min), [props.min]);
|
|
9291
9906
|
function renderCells() {
|
|
9292
9907
|
var _a;
|
|
9293
9908
|
const cells = [];
|
|
@@ -9421,9 +10036,9 @@ function convertPageToDayjs(page) {
|
|
|
9421
10036
|
return dayjs().year(page.year).month(page.month - 1).date(1);
|
|
9422
10037
|
}
|
|
9423
10038
|
function useEvent(callback) {
|
|
9424
|
-
var fnRef = React$
|
|
10039
|
+
var fnRef = React$2.useRef();
|
|
9425
10040
|
fnRef.current = callback;
|
|
9426
|
-
var memoFn = React$
|
|
10041
|
+
var memoFn = React$2.useCallback(function() {
|
|
9427
10042
|
var _fnRef$current;
|
|
9428
10043
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9429
10044
|
args[_key] = arguments[_key];
|
|
@@ -9491,9 +10106,9 @@ function _slicedToArray(arr, i2) {
|
|
|
9491
10106
|
function canUseDom() {
|
|
9492
10107
|
return !!(typeof window !== "undefined" && window.document && window.document.createElement);
|
|
9493
10108
|
}
|
|
9494
|
-
var useInternalLayoutEffect = canUseDom() ? React$
|
|
10109
|
+
var useInternalLayoutEffect = canUseDom() ? React$2.useLayoutEffect : React$2.useEffect;
|
|
9495
10110
|
var useLayoutEffect = function useLayoutEffect2(callback, deps) {
|
|
9496
|
-
var firstMountRef = React$
|
|
10111
|
+
var firstMountRef = React$2.useRef(true);
|
|
9497
10112
|
useInternalLayoutEffect(function() {
|
|
9498
10113
|
return callback(firstMountRef.current);
|
|
9499
10114
|
}, deps);
|
|
@@ -9512,9 +10127,9 @@ var useLayoutUpdateEffect = function useLayoutUpdateEffect2(callback, deps) {
|
|
|
9512
10127
|
}, deps);
|
|
9513
10128
|
};
|
|
9514
10129
|
function useSafeState(defaultValue) {
|
|
9515
|
-
var destroyRef = React$
|
|
9516
|
-
var _React$useState = React$
|
|
9517
|
-
React$
|
|
10130
|
+
var destroyRef = React$2.useRef(false);
|
|
10131
|
+
var _React$useState = React$2.useState(defaultValue), _React$useState2 = _slicedToArray(_React$useState, 2), value = _React$useState2[0], setValue = _React$useState2[1];
|
|
10132
|
+
React$2.useEffect(function() {
|
|
9518
10133
|
destroyRef.current = false;
|
|
9519
10134
|
return function() {
|
|
9520
10135
|
destroyRef.current = true;
|
|
@@ -9563,13 +10178,13 @@ function useMergedState(defaultStateValue, option) {
|
|
|
9563
10178
|
});
|
|
9564
10179
|
return [postMergedValue, triggerChange];
|
|
9565
10180
|
}
|
|
9566
|
-
function _typeof
|
|
10181
|
+
function _typeof(o) {
|
|
9567
10182
|
"@babel/helpers - typeof";
|
|
9568
|
-
return _typeof
|
|
10183
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
9569
10184
|
return typeof o2;
|
|
9570
10185
|
} : function(o2) {
|
|
9571
10186
|
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
9572
|
-
}, _typeof
|
|
10187
|
+
}, _typeof(o);
|
|
9573
10188
|
}
|
|
9574
10189
|
var reactIs = { exports: {} };
|
|
9575
10190
|
var reactIs_development = {};
|
|
@@ -9586,7 +10201,7 @@ var reactIs_development = {};
|
|
|
9586
10201
|
(function() {
|
|
9587
10202
|
var REACT_ELEMENT_TYPE2 = Symbol.for("react.element");
|
|
9588
10203
|
var REACT_PORTAL_TYPE = Symbol.for("react.portal");
|
|
9589
|
-
var
|
|
10204
|
+
var REACT_FRAGMENT_TYPE2 = Symbol.for("react.fragment");
|
|
9590
10205
|
var REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode");
|
|
9591
10206
|
var REACT_PROFILER_TYPE = Symbol.for("react.profiler");
|
|
9592
10207
|
var REACT_PROVIDER_TYPE = Symbol.for("react.provider");
|
|
@@ -9611,7 +10226,7 @@ var reactIs_development = {};
|
|
|
9611
10226
|
if (typeof type4 === "string" || typeof type4 === "function") {
|
|
9612
10227
|
return true;
|
|
9613
10228
|
}
|
|
9614
|
-
if (type4 ===
|
|
10229
|
+
if (type4 === REACT_FRAGMENT_TYPE2 || type4 === REACT_PROFILER_TYPE || enableDebugTracing || type4 === REACT_STRICT_MODE_TYPE || type4 === REACT_SUSPENSE_TYPE || type4 === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type4 === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing) {
|
|
9615
10230
|
return true;
|
|
9616
10231
|
}
|
|
9617
10232
|
if (typeof type4 === "object" && type4 !== null) {
|
|
@@ -9632,7 +10247,7 @@ var reactIs_development = {};
|
|
|
9632
10247
|
case REACT_ELEMENT_TYPE2:
|
|
9633
10248
|
var type4 = object4.type;
|
|
9634
10249
|
switch (type4) {
|
|
9635
|
-
case
|
|
10250
|
+
case REACT_FRAGMENT_TYPE2:
|
|
9636
10251
|
case REACT_PROFILER_TYPE:
|
|
9637
10252
|
case REACT_STRICT_MODE_TYPE:
|
|
9638
10253
|
case REACT_SUSPENSE_TYPE:
|
|
@@ -9662,7 +10277,7 @@ var reactIs_development = {};
|
|
|
9662
10277
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
9663
10278
|
var Element2 = REACT_ELEMENT_TYPE2;
|
|
9664
10279
|
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
9665
|
-
var Fragment =
|
|
10280
|
+
var Fragment = REACT_FRAGMENT_TYPE2;
|
|
9666
10281
|
var Lazy = REACT_LAZY_TYPE;
|
|
9667
10282
|
var Memo = REACT_MEMO_TYPE;
|
|
9668
10283
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -9702,8 +10317,8 @@ var reactIs_development = {};
|
|
|
9702
10317
|
function isForwardRef(object4) {
|
|
9703
10318
|
return typeOf(object4) === REACT_FORWARD_REF_TYPE;
|
|
9704
10319
|
}
|
|
9705
|
-
function
|
|
9706
|
-
return typeOf(object4) ===
|
|
10320
|
+
function isFragment2(object4) {
|
|
10321
|
+
return typeOf(object4) === REACT_FRAGMENT_TYPE2;
|
|
9707
10322
|
}
|
|
9708
10323
|
function isLazy(object4) {
|
|
9709
10324
|
return typeOf(object4) === REACT_LAZY_TYPE;
|
|
@@ -9744,7 +10359,7 @@ var reactIs_development = {};
|
|
|
9744
10359
|
reactIs_development.isContextProvider = isContextProvider;
|
|
9745
10360
|
reactIs_development.isElement = isElement2;
|
|
9746
10361
|
reactIs_development.isForwardRef = isForwardRef;
|
|
9747
|
-
reactIs_development.isFragment =
|
|
10362
|
+
reactIs_development.isFragment = isFragment2;
|
|
9748
10363
|
reactIs_development.isLazy = isLazy;
|
|
9749
10364
|
reactIs_development.isMemo = isMemo;
|
|
9750
10365
|
reactIs_development.isPortal = isPortal;
|
|
@@ -9760,39 +10375,58 @@ var reactIs_development = {};
|
|
|
9760
10375
|
reactIs.exports = reactIs_development;
|
|
9761
10376
|
}
|
|
9762
10377
|
var reactIsExports = reactIs.exports;
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
|
|
10378
|
+
var REACT_ELEMENT_TYPE_18$1 = Symbol.for("react.element");
|
|
10379
|
+
var REACT_ELEMENT_TYPE_19$1 = Symbol.for("react.transitional.element");
|
|
10380
|
+
var REACT_FRAGMENT_TYPE$1 = Symbol.for("react.fragment");
|
|
10381
|
+
function isFragment$2(object4) {
|
|
10382
|
+
return (
|
|
10383
|
+
// Base object type
|
|
10384
|
+
object4 && _typeof(object4) === "object" && // React Element type
|
|
10385
|
+
(object4.$$typeof === REACT_ELEMENT_TYPE_18$1 || object4.$$typeof === REACT_ELEMENT_TYPE_19$1) && // React Fragment type
|
|
10386
|
+
object4.type === REACT_FRAGMENT_TYPE$1
|
|
10387
|
+
);
|
|
9769
10388
|
}
|
|
9770
|
-
|
|
10389
|
+
var ReactMajorVersion$1 = Number(version$1.split(".")[0]);
|
|
10390
|
+
var fillRef$1 = function fillRef(ref2, node) {
|
|
10391
|
+
if (typeof ref2 === "function") {
|
|
10392
|
+
ref2(node);
|
|
10393
|
+
} else if (_typeof(ref2) === "object" && ref2 && "current" in ref2) {
|
|
10394
|
+
ref2.current = node;
|
|
10395
|
+
}
|
|
10396
|
+
};
|
|
10397
|
+
var composeRef$1 = function composeRef() {
|
|
9771
10398
|
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
9772
10399
|
refs[_key] = arguments[_key];
|
|
9773
10400
|
}
|
|
9774
|
-
var refList = refs.filter(
|
|
9775
|
-
return ref;
|
|
9776
|
-
});
|
|
10401
|
+
var refList = refs.filter(Boolean);
|
|
9777
10402
|
if (refList.length <= 1) {
|
|
9778
10403
|
return refList[0];
|
|
9779
10404
|
}
|
|
9780
10405
|
return function(node) {
|
|
9781
|
-
refs.forEach(function(
|
|
9782
|
-
fillRef(
|
|
10406
|
+
refs.forEach(function(ref2) {
|
|
10407
|
+
fillRef$1(ref2, node);
|
|
9783
10408
|
});
|
|
9784
10409
|
};
|
|
9785
|
-
}
|
|
9786
|
-
function supportRef(nodeOrComponent) {
|
|
10410
|
+
};
|
|
10411
|
+
var supportRef$1 = function supportRef(nodeOrComponent) {
|
|
9787
10412
|
var _type$prototype, _nodeOrComponent$prot;
|
|
10413
|
+
if (!nodeOrComponent) {
|
|
10414
|
+
return false;
|
|
10415
|
+
}
|
|
10416
|
+
if (isReactElement$2(nodeOrComponent) && ReactMajorVersion$1 >= 19) {
|
|
10417
|
+
return true;
|
|
10418
|
+
}
|
|
9788
10419
|
var type4 = reactIsExports.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
|
9789
|
-
if (typeof type4 === "function" && !((_type$prototype = type4.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render)) {
|
|
10420
|
+
if (typeof type4 === "function" && !((_type$prototype = type4.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type4.$$typeof !== reactIsExports.ForwardRef) {
|
|
9790
10421
|
return false;
|
|
9791
10422
|
}
|
|
9792
|
-
if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render)) {
|
|
10423
|
+
if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== reactIsExports.ForwardRef) {
|
|
9793
10424
|
return false;
|
|
9794
10425
|
}
|
|
9795
10426
|
return true;
|
|
10427
|
+
};
|
|
10428
|
+
function isReactElement$2(node) {
|
|
10429
|
+
return /* @__PURE__ */ isValidElement(node) && !isFragment$2(node);
|
|
9796
10430
|
}
|
|
9797
10431
|
function get(entity, path) {
|
|
9798
10432
|
var current = entity;
|
|
@@ -9805,12 +10439,12 @@ function get(entity, path) {
|
|
|
9805
10439
|
return current;
|
|
9806
10440
|
}
|
|
9807
10441
|
function _toPrimitive(input, hint) {
|
|
9808
|
-
if (_typeof
|
|
10442
|
+
if (_typeof(input) !== "object" || input === null)
|
|
9809
10443
|
return input;
|
|
9810
10444
|
var prim = input[Symbol.toPrimitive];
|
|
9811
10445
|
if (prim !== void 0) {
|
|
9812
10446
|
var res = prim.call(input, hint || "default");
|
|
9813
|
-
if (_typeof
|
|
10447
|
+
if (_typeof(res) !== "object")
|
|
9814
10448
|
return res;
|
|
9815
10449
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9816
10450
|
}
|
|
@@ -9818,7 +10452,7 @@ function _toPrimitive(input, hint) {
|
|
|
9818
10452
|
}
|
|
9819
10453
|
function _toPropertyKey(arg) {
|
|
9820
10454
|
var key = _toPrimitive(arg, "string");
|
|
9821
|
-
return _typeof
|
|
10455
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
9822
10456
|
}
|
|
9823
10457
|
function _defineProperty(obj, key, value) {
|
|
9824
10458
|
key = _toPropertyKey(key);
|
|
@@ -9900,7 +10534,7 @@ function set(entity, paths, value) {
|
|
|
9900
10534
|
return internalSet(entity, paths, value, removeIfUndefined);
|
|
9901
10535
|
}
|
|
9902
10536
|
function isObject(obj) {
|
|
9903
|
-
return _typeof
|
|
10537
|
+
return _typeof(obj) === "object" && obj !== null && Object.getPrototypeOf(obj) === Object.prototype;
|
|
9904
10538
|
}
|
|
9905
10539
|
function createEmpty(source) {
|
|
9906
10540
|
return Array.isArray(source) ? [] : {};
|
|
@@ -9922,7 +10556,7 @@ function merge$1() {
|
|
|
9922
10556
|
var originValue = get(clone, path);
|
|
9923
10557
|
if (isArr) {
|
|
9924
10558
|
clone = set(clone, path, []);
|
|
9925
|
-
} else if (!originValue || _typeof
|
|
10559
|
+
} else if (!originValue || _typeof(originValue) !== "object") {
|
|
9926
10560
|
clone = set(clone, path, createEmpty(value));
|
|
9927
10561
|
}
|
|
9928
10562
|
keys(value).forEach(function(key) {
|
|
@@ -9937,14 +10571,14 @@ function merge$1() {
|
|
|
9937
10571
|
});
|
|
9938
10572
|
return clone;
|
|
9939
10573
|
}
|
|
9940
|
-
var warned
|
|
9941
|
-
var preWarningFns
|
|
9942
|
-
var preMessage
|
|
9943
|
-
preWarningFns
|
|
10574
|
+
var warned = {};
|
|
10575
|
+
var preWarningFns = [];
|
|
10576
|
+
var preMessage = function preMessage22(fn) {
|
|
10577
|
+
preWarningFns.push(fn);
|
|
9944
10578
|
};
|
|
9945
|
-
function warning$
|
|
10579
|
+
function warning$1(valid, message) {
|
|
9946
10580
|
if (!valid && console !== void 0) {
|
|
9947
|
-
var finalMessage = preWarningFns
|
|
10581
|
+
var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
|
|
9948
10582
|
return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "warning");
|
|
9949
10583
|
}, message);
|
|
9950
10584
|
if (finalMessage) {
|
|
@@ -9952,9 +10586,9 @@ function warning$3(valid, message) {
|
|
|
9952
10586
|
}
|
|
9953
10587
|
}
|
|
9954
10588
|
}
|
|
9955
|
-
function note
|
|
10589
|
+
function note(valid, message) {
|
|
9956
10590
|
if (!valid && console !== void 0) {
|
|
9957
|
-
var finalMessage = preWarningFns
|
|
10591
|
+
var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
|
|
9958
10592
|
return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "note");
|
|
9959
10593
|
}, message);
|
|
9960
10594
|
if (finalMessage) {
|
|
@@ -9962,24 +10596,24 @@ function note$1(valid, message) {
|
|
|
9962
10596
|
}
|
|
9963
10597
|
}
|
|
9964
10598
|
}
|
|
9965
|
-
function resetWarned
|
|
9966
|
-
warned
|
|
10599
|
+
function resetWarned() {
|
|
10600
|
+
warned = {};
|
|
9967
10601
|
}
|
|
9968
|
-
function call
|
|
9969
|
-
if (!valid && !warned
|
|
10602
|
+
function call(method4, valid, message) {
|
|
10603
|
+
if (!valid && !warned[message]) {
|
|
9970
10604
|
method4(false, message);
|
|
9971
|
-
warned
|
|
10605
|
+
warned[message] = true;
|
|
9972
10606
|
}
|
|
9973
10607
|
}
|
|
9974
|
-
function warningOnce
|
|
9975
|
-
call
|
|
10608
|
+
function warningOnce(valid, message) {
|
|
10609
|
+
call(warning$1, valid, message);
|
|
9976
10610
|
}
|
|
9977
|
-
function noteOnce
|
|
9978
|
-
call
|
|
10611
|
+
function noteOnce(valid, message) {
|
|
10612
|
+
call(note, valid, message);
|
|
9979
10613
|
}
|
|
9980
|
-
warningOnce
|
|
9981
|
-
warningOnce
|
|
9982
|
-
warningOnce
|
|
10614
|
+
warningOnce.preMessage = preMessage;
|
|
10615
|
+
warningOnce.resetWarned = resetWarned;
|
|
10616
|
+
warningOnce.noteOnce = noteOnce;
|
|
9983
10617
|
function useSyncScroll(current, visible, bodyRef) {
|
|
9984
10618
|
const rafRef = useRef();
|
|
9985
10619
|
const clean = () => {
|
|
@@ -10023,7 +10657,7 @@ const defaultProps$Y = {
|
|
|
10023
10657
|
usePopup: true,
|
|
10024
10658
|
selectionMode: "single"
|
|
10025
10659
|
};
|
|
10026
|
-
const CalendarPickerView = forwardRef((p,
|
|
10660
|
+
const CalendarPickerView = forwardRef((p, ref2) => {
|
|
10027
10661
|
var _a;
|
|
10028
10662
|
const bodyRef = useRef(null);
|
|
10029
10663
|
const today = dayjs();
|
|
@@ -10073,9 +10707,9 @@ const CalendarPickerView = forwardRef((p, ref) => {
|
|
|
10073
10707
|
}
|
|
10074
10708
|
}
|
|
10075
10709
|
}, [dateRange]);
|
|
10076
|
-
const maxDay = useMemo(() => props.max ? dayjs(props.max) : defaultMax, [props.max, defaultMax]);
|
|
10077
|
-
const minDay = useMemo(() => props.min ? dayjs(props.min) : defaultMin, [props.min, defaultMin]);
|
|
10078
|
-
useImperativeHandle(
|
|
10710
|
+
const maxDay = useMemo$2(() => props.max ? dayjs(props.max) : defaultMax, [props.max, defaultMax]);
|
|
10711
|
+
const minDay = useMemo$2(() => props.min ? dayjs(props.min) : defaultMin, [props.min, defaultMin]);
|
|
10712
|
+
useImperativeHandle(ref2, () => ({
|
|
10079
10713
|
jumpTo: (pageOrPageGenerator) => {
|
|
10080
10714
|
let page;
|
|
10081
10715
|
if (typeof pageOrPageGenerator === "function") {
|
|
@@ -10159,6 +10793,9 @@ const CalendarPickerView = forwardRef((p, ref) => {
|
|
|
10159
10793
|
return contentWrapper(top);
|
|
10160
10794
|
}
|
|
10161
10795
|
if (props.selectionMode === "range") {
|
|
10796
|
+
if (isBegin && isEnd) {
|
|
10797
|
+
return contentWrapper(locale.Calendar.startAndEnd);
|
|
10798
|
+
}
|
|
10162
10799
|
if (isBegin) {
|
|
10163
10800
|
return contentWrapper(locale.Calendar.start);
|
|
10164
10801
|
}
|
|
@@ -10274,12 +10911,12 @@ const defaultProps$W = {
|
|
|
10274
10911
|
usePopup: true,
|
|
10275
10912
|
selectionMode: "single"
|
|
10276
10913
|
};
|
|
10277
|
-
const CalendarPicker = forwardRef((p,
|
|
10914
|
+
const CalendarPicker = forwardRef((p, ref2) => {
|
|
10278
10915
|
const props = mergeProps(defaultProps$W, p);
|
|
10279
10916
|
const {
|
|
10280
10917
|
locale
|
|
10281
10918
|
} = useConfig();
|
|
10282
|
-
const calendarRef =
|
|
10919
|
+
const calendarRef = ref2 !== null && ref2 !== void 0 ? ref2 : useRef(null);
|
|
10283
10920
|
const {
|
|
10284
10921
|
visible,
|
|
10285
10922
|
confirmText,
|
|
@@ -10319,7 +10956,7 @@ const CalendarPicker = forwardRef((p, ref) => {
|
|
|
10319
10956
|
visible,
|
|
10320
10957
|
className: classNames(`${classPrefix$1d}-popup`, popupClassName),
|
|
10321
10958
|
showCloseButton: true,
|
|
10322
|
-
forceRender:
|
|
10959
|
+
forceRender: ref2 ? true : forceRender,
|
|
10323
10960
|
style: popupStyle,
|
|
10324
10961
|
bodyStyle: Object.assign({
|
|
10325
10962
|
borderTopLeftRadius: "8px",
|
|
@@ -11044,7 +11681,7 @@ function generateColumnsExtend(rawColumns, val) {
|
|
|
11044
11681
|
return extend;
|
|
11045
11682
|
}
|
|
11046
11683
|
function useColumnsExtend(rawColumns, value) {
|
|
11047
|
-
return useMemo(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
|
|
11684
|
+
return useMemo$2(() => generateColumnsExtend(rawColumns, value), [rawColumns, value]);
|
|
11048
11685
|
}
|
|
11049
11686
|
const defaultRenderLabel = (item) => item.label;
|
|
11050
11687
|
var shim = { exports: {} };
|
|
@@ -11340,7 +11977,7 @@ const defaultProps$T = {
|
|
|
11340
11977
|
destroyOnClose: false,
|
|
11341
11978
|
forceRender: false
|
|
11342
11979
|
};
|
|
11343
|
-
const Picker$1 = memo(forwardRef((p,
|
|
11980
|
+
const Picker$1 = memo(forwardRef((p, ref2) => {
|
|
11344
11981
|
var _a;
|
|
11345
11982
|
const {
|
|
11346
11983
|
locale
|
|
@@ -11370,7 +12007,7 @@ const Picker$1 = memo(forwardRef((p, ref) => {
|
|
|
11370
12007
|
setVisible(false);
|
|
11371
12008
|
}
|
|
11372
12009
|
};
|
|
11373
|
-
useImperativeHandle(
|
|
12010
|
+
useImperativeHandle(ref2, () => actions);
|
|
11374
12011
|
const [value, setValue] = usePropsValue(Object.assign(Object.assign({}, props), {
|
|
11375
12012
|
onChange: (val) => {
|
|
11376
12013
|
var _a2;
|
|
@@ -11491,7 +12128,7 @@ const Picker = attachPropertiesToComponent(Picker$1, {
|
|
|
11491
12128
|
prompt: prompt$3
|
|
11492
12129
|
});
|
|
11493
12130
|
function useColumnsFn(options) {
|
|
11494
|
-
const depth = useMemo(() => {
|
|
12131
|
+
const depth = useMemo$2(() => {
|
|
11495
12132
|
let depth2 = 0;
|
|
11496
12133
|
function traverse(options2, currentDepth) {
|
|
11497
12134
|
if (currentDepth > depth2)
|
|
@@ -11529,13 +12166,13 @@ function useColumnsFn(options) {
|
|
|
11529
12166
|
return columns;
|
|
11530
12167
|
};
|
|
11531
12168
|
}
|
|
11532
|
-
const CascadePicker = forwardRef((props,
|
|
12169
|
+
const CascadePicker = forwardRef((props, ref2) => {
|
|
11533
12170
|
const {
|
|
11534
12171
|
options
|
|
11535
12172
|
} = props, pickerProps = __rest(props, ["options"]);
|
|
11536
12173
|
const columnsFn = useColumnsFn(options);
|
|
11537
12174
|
return React__default.createElement(Picker, Object.assign({}, pickerProps, {
|
|
11538
|
-
ref,
|
|
12175
|
+
ref: ref2,
|
|
11539
12176
|
columns: columnsFn
|
|
11540
12177
|
}));
|
|
11541
12178
|
});
|
|
@@ -11839,10 +12476,10 @@ const classPrefix$14 = `adm-list`;
|
|
|
11839
12476
|
const defaultProps$R = {
|
|
11840
12477
|
mode: "default"
|
|
11841
12478
|
};
|
|
11842
|
-
const List$2 = forwardRef((p,
|
|
12479
|
+
const List$2 = forwardRef((p, ref2) => {
|
|
11843
12480
|
const props = mergeProps(defaultProps$R, p);
|
|
11844
12481
|
const nativeElementRef = useRef(null);
|
|
11845
|
-
useImperativeHandle(
|
|
12482
|
+
useImperativeHandle(ref2, () => ({
|
|
11846
12483
|
get nativeElement() {
|
|
11847
12484
|
return nativeElementRef.current;
|
|
11848
12485
|
}
|
|
@@ -12054,7 +12691,7 @@ function useCascaderValueExtend(options, fieldNames) {
|
|
|
12054
12691
|
valueName,
|
|
12055
12692
|
childrenName
|
|
12056
12693
|
} = fieldNames;
|
|
12057
|
-
const generateItems = useMemo(() => {
|
|
12694
|
+
const generateItems = useMemo$2(() => {
|
|
12058
12695
|
return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
|
|
12059
12696
|
const ret = [];
|
|
12060
12697
|
let currentOptions = options;
|
|
@@ -12073,7 +12710,7 @@ function useCascaderValueExtend(options, fieldNames) {
|
|
|
12073
12710
|
equals: isEqual$1
|
|
12074
12711
|
});
|
|
12075
12712
|
}, [options]);
|
|
12076
|
-
const generateIsLeaf = useMemo(() => {
|
|
12713
|
+
const generateIsLeaf = useMemo$2(() => {
|
|
12077
12714
|
return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
|
|
12078
12715
|
const children = val.reduce((currentOptions, v) => {
|
|
12079
12716
|
var _a;
|
|
@@ -12138,7 +12775,7 @@ const Skeleton = attachPropertiesToComponent(Skeleton$1, {
|
|
|
12138
12775
|
Paragraph: SkeletonParagraph
|
|
12139
12776
|
});
|
|
12140
12777
|
const useFieldNames = (fieldNames = {}) => {
|
|
12141
|
-
const fields = useMemo(() => {
|
|
12778
|
+
const fields = useMemo$2(() => {
|
|
12142
12779
|
const {
|
|
12143
12780
|
label = "label",
|
|
12144
12781
|
value = "value",
|
|
@@ -12170,7 +12807,7 @@ const CascaderView$1 = (p) => {
|
|
|
12170
12807
|
}
|
|
12171
12808
|
}));
|
|
12172
12809
|
const [tabActiveIndex, setTabActiveIndex] = useState(0);
|
|
12173
|
-
const levels = useMemo(() => {
|
|
12810
|
+
const levels = useMemo$2(() => {
|
|
12174
12811
|
const ret = [];
|
|
12175
12812
|
let currentOptions = props.options;
|
|
12176
12813
|
let reachedEnd = false;
|
|
@@ -12276,7 +12913,7 @@ const defaultProps$O = {
|
|
|
12276
12913
|
destroyOnClose: true,
|
|
12277
12914
|
forceRender: false
|
|
12278
12915
|
};
|
|
12279
|
-
const Cascader = forwardRef((p,
|
|
12916
|
+
const Cascader = forwardRef((p, ref2) => {
|
|
12280
12917
|
var _a;
|
|
12281
12918
|
const {
|
|
12282
12919
|
locale
|
|
@@ -12307,7 +12944,7 @@ const Cascader = forwardRef((p, ref) => {
|
|
|
12307
12944
|
setVisible(false);
|
|
12308
12945
|
}
|
|
12309
12946
|
};
|
|
12310
|
-
useImperativeHandle(
|
|
12947
|
+
useImperativeHandle(ref2, () => actions);
|
|
12311
12948
|
const [value, setValue] = usePropsValue(Object.assign(Object.assign({}, props), {
|
|
12312
12949
|
onChange: (val) => {
|
|
12313
12950
|
var _a2;
|
|
@@ -12445,8 +13082,8 @@ const CenterPopup = (props) => {
|
|
|
12445
13082
|
setActive(true);
|
|
12446
13083
|
}
|
|
12447
13084
|
}, [mergedProps.visible]);
|
|
12448
|
-
const
|
|
12449
|
-
useLockScroll(
|
|
13085
|
+
const ref2 = useRef(null);
|
|
13086
|
+
useLockScroll(ref2, mergedProps.disableBodyScroll && active);
|
|
12450
13087
|
const maskVisible = useInnerVisible(active && mergedProps.visible);
|
|
12451
13088
|
const body = React__default.createElement("div", {
|
|
12452
13089
|
className: classNames(`${classPrefix$Z}-body`, mergedProps.bodyClassName),
|
|
@@ -12481,7 +13118,7 @@ const CenterPopup = (props) => {
|
|
|
12481
13118
|
style: Object.assign(Object.assign({}, style2), {
|
|
12482
13119
|
pointerEvents: style2.opacity.to((v) => v === 1 ? "unset" : "none")
|
|
12483
13120
|
}),
|
|
12484
|
-
ref
|
|
13121
|
+
ref: ref2
|
|
12485
13122
|
}, mergedProps.showCloseButton && React__default.createElement("a", {
|
|
12486
13123
|
className: classNames(`${classPrefix$Z}-close`, "adm-plain-anchor"),
|
|
12487
13124
|
onClick: () => {
|
|
@@ -12573,7 +13210,7 @@ const defaultProps$L = {
|
|
|
12573
13210
|
defaultChecked: false,
|
|
12574
13211
|
indeterminate: false
|
|
12575
13212
|
};
|
|
12576
|
-
const Checkbox$1 = forwardRef((p,
|
|
13213
|
+
const Checkbox$1 = forwardRef((p, ref2) => {
|
|
12577
13214
|
const groupContext = useContext(CheckboxGroupContext);
|
|
12578
13215
|
const props = mergeProps(defaultProps$L, p);
|
|
12579
13216
|
let [checked, setChecked] = usePropsValue({
|
|
@@ -12606,7 +13243,7 @@ const Checkbox$1 = forwardRef((p, ref) => {
|
|
|
12606
13243
|
};
|
|
12607
13244
|
disabled = disabled || groupContext.disabled;
|
|
12608
13245
|
}
|
|
12609
|
-
useImperativeHandle(
|
|
13246
|
+
useImperativeHandle(ref2, () => ({
|
|
12610
13247
|
check: () => {
|
|
12611
13248
|
setChecked(true);
|
|
12612
13249
|
},
|
|
@@ -12824,6 +13461,20 @@ const Collapse = (props) => {
|
|
|
12824
13461
|
const index$e = attachPropertiesToComponent(Collapse, {
|
|
12825
13462
|
Panel: CollapsePanel
|
|
12826
13463
|
});
|
|
13464
|
+
var isLeapYear$1 = { exports: {} };
|
|
13465
|
+
(function(module, exports) {
|
|
13466
|
+
!function(e2, t) {
|
|
13467
|
+
module.exports = t();
|
|
13468
|
+
}(commonjsGlobal, function() {
|
|
13469
|
+
return function(e2, t) {
|
|
13470
|
+
t.prototype.isLeapYear = function() {
|
|
13471
|
+
return this.$y % 4 == 0 && this.$y % 100 != 0 || this.$y % 400 == 0;
|
|
13472
|
+
};
|
|
13473
|
+
};
|
|
13474
|
+
});
|
|
13475
|
+
})(isLeapYear$1);
|
|
13476
|
+
var isLeapYearExports = isLeapYear$1.exports;
|
|
13477
|
+
const isLeapYear = /* @__PURE__ */ getDefaultExportFromCjs(isLeapYearExports);
|
|
12827
13478
|
var isoWeeksInYear$1 = { exports: {} };
|
|
12828
13479
|
(function(module, exports) {
|
|
12829
13480
|
!function(e2, n2) {
|
|
@@ -12839,20 +13490,6 @@ var isoWeeksInYear$1 = { exports: {} };
|
|
|
12839
13490
|
})(isoWeeksInYear$1);
|
|
12840
13491
|
var isoWeeksInYearExports = isoWeeksInYear$1.exports;
|
|
12841
13492
|
const isoWeeksInYear = /* @__PURE__ */ getDefaultExportFromCjs(isoWeeksInYearExports);
|
|
12842
|
-
var isLeapYear$1 = { exports: {} };
|
|
12843
|
-
(function(module, exports) {
|
|
12844
|
-
!function(e2, t) {
|
|
12845
|
-
module.exports = t();
|
|
12846
|
-
}(commonjsGlobal, function() {
|
|
12847
|
-
return function(e2, t) {
|
|
12848
|
-
t.prototype.isLeapYear = function() {
|
|
12849
|
-
return this.$y % 4 == 0 && this.$y % 100 != 0 || this.$y % 400 == 0;
|
|
12850
|
-
};
|
|
12851
|
-
};
|
|
12852
|
-
});
|
|
12853
|
-
})(isLeapYear$1);
|
|
12854
|
-
var isLeapYearExports = isLeapYear$1.exports;
|
|
12855
|
-
const isLeapYear = /* @__PURE__ */ getDefaultExportFromCjs(isLeapYearExports);
|
|
12856
13493
|
const TILL_NOW = "TILL_NOW";
|
|
12857
13494
|
dayjs.extend(isoWeek);
|
|
12858
13495
|
dayjs.extend(isoWeeksInYear);
|
|
@@ -12886,6 +13523,7 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12886
13523
|
const selectedDay = parseInt(selected[2]);
|
|
12887
13524
|
const selectedHour = parseInt(selected[3]);
|
|
12888
13525
|
const selectedMinute = parseInt(selected[4]);
|
|
13526
|
+
const selectedSecond = parseInt(selected[5]);
|
|
12889
13527
|
const isInMinYear = selectedYear === minYear;
|
|
12890
13528
|
const isInMaxYear = selectedYear === maxYear;
|
|
12891
13529
|
const isInMinMonth = isInMinYear && selectedMonth === minMonth;
|
|
@@ -12918,7 +13556,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12918
13556
|
const upper = maxYear;
|
|
12919
13557
|
const years = generateColumn(lower, upper, "year");
|
|
12920
13558
|
ret.push(years.map((v) => ({
|
|
12921
|
-
label: renderLabel("year", v
|
|
13559
|
+
label: renderLabel("year", v, {
|
|
13560
|
+
selected: selectedYear === v
|
|
13561
|
+
}),
|
|
12922
13562
|
value: v.toString()
|
|
12923
13563
|
})));
|
|
12924
13564
|
}
|
|
@@ -12927,7 +13567,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12927
13567
|
const upper = isInMaxYear ? maxMonth : 12;
|
|
12928
13568
|
const months = generateColumn(lower, upper, "month");
|
|
12929
13569
|
ret.push(months.map((v) => ({
|
|
12930
|
-
label: renderLabel("month", v
|
|
13570
|
+
label: renderLabel("month", v, {
|
|
13571
|
+
selected: selectedMonth === v
|
|
13572
|
+
}),
|
|
12931
13573
|
value: v.toString()
|
|
12932
13574
|
})));
|
|
12933
13575
|
}
|
|
@@ -12936,7 +13578,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12936
13578
|
const upper = isInMaxMonth ? maxDay : firstDayInSelectedMonth.daysInMonth();
|
|
12937
13579
|
const days = generateColumn(lower, upper, "day");
|
|
12938
13580
|
ret.push(days.map((v) => ({
|
|
12939
|
-
label: renderLabel("day", v
|
|
13581
|
+
label: renderLabel("day", v, {
|
|
13582
|
+
selected: selectedDay === v
|
|
13583
|
+
}),
|
|
12940
13584
|
value: v.toString()
|
|
12941
13585
|
})));
|
|
12942
13586
|
}
|
|
@@ -12945,7 +13589,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12945
13589
|
const upper = isInMaxDay ? maxHour : 23;
|
|
12946
13590
|
const hours = generateColumn(lower, upper, "hour");
|
|
12947
13591
|
ret.push(hours.map((v) => ({
|
|
12948
|
-
label: renderLabel("hour", v
|
|
13592
|
+
label: renderLabel("hour", v, {
|
|
13593
|
+
selected: selectedHour === v
|
|
13594
|
+
}),
|
|
12949
13595
|
value: v.toString()
|
|
12950
13596
|
})));
|
|
12951
13597
|
}
|
|
@@ -12954,7 +13600,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12954
13600
|
const upper = isInMaxHour ? maxMinute : 59;
|
|
12955
13601
|
const minutes = generateColumn(lower, upper, "minute");
|
|
12956
13602
|
ret.push(minutes.map((v) => ({
|
|
12957
|
-
label: renderLabel("minute", v
|
|
13603
|
+
label: renderLabel("minute", v, {
|
|
13604
|
+
selected: selectedMinute === v
|
|
13605
|
+
}),
|
|
12958
13606
|
value: v.toString()
|
|
12959
13607
|
})));
|
|
12960
13608
|
}
|
|
@@ -12963,13 +13611,17 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12963
13611
|
const upper = isInMaxMinute ? maxSecond : 59;
|
|
12964
13612
|
const seconds = generateColumn(lower, upper, "second");
|
|
12965
13613
|
ret.push(seconds.map((v) => ({
|
|
12966
|
-
label: renderLabel("second", v
|
|
13614
|
+
label: renderLabel("second", v, {
|
|
13615
|
+
selected: selectedSecond === v
|
|
13616
|
+
}),
|
|
12967
13617
|
value: v.toString()
|
|
12968
13618
|
})));
|
|
12969
13619
|
}
|
|
12970
13620
|
if (tillNow) {
|
|
12971
13621
|
ret[0].push({
|
|
12972
|
-
label: renderLabel("now", null
|
|
13622
|
+
label: renderLabel("now", null, {
|
|
13623
|
+
selected: selected[0] === TILL_NOW
|
|
13624
|
+
}),
|
|
12973
13625
|
value: TILL_NOW
|
|
12974
13626
|
});
|
|
12975
13627
|
if (TILL_NOW === (selected === null || selected === void 0 ? void 0 : selected[0])) {
|
|
@@ -13041,6 +13693,7 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
|
|
|
13041
13693
|
const maxDay = dayjs(max2);
|
|
13042
13694
|
const minQuarter = minDay.quarter();
|
|
13043
13695
|
const maxQuarter = maxDay.quarter();
|
|
13696
|
+
const selectedQuarter = parseInt(selected[1]);
|
|
13044
13697
|
const generateColumn = (from, to2, precision2) => {
|
|
13045
13698
|
let column = [];
|
|
13046
13699
|
for (let i2 = from; i2 <= to2; i2++) {
|
|
@@ -13063,7 +13716,9 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
|
|
|
13063
13716
|
const upper = maxYear;
|
|
13064
13717
|
const years = generateColumn(lower, upper, "year");
|
|
13065
13718
|
ret.push(years.map((v) => ({
|
|
13066
|
-
label: renderLabel("year", v
|
|
13719
|
+
label: renderLabel("year", v, {
|
|
13720
|
+
selected: selectedYear === v
|
|
13721
|
+
}),
|
|
13067
13722
|
value: v.toString()
|
|
13068
13723
|
})));
|
|
13069
13724
|
}
|
|
@@ -13072,7 +13727,9 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
|
|
|
13072
13727
|
const upper = isInMaxYear ? maxQuarter : 4;
|
|
13073
13728
|
const quarters = generateColumn(lower, upper, "quarter");
|
|
13074
13729
|
ret.push(quarters.map((v) => ({
|
|
13075
|
-
label: renderLabel("quarter", v
|
|
13730
|
+
label: renderLabel("quarter", v, {
|
|
13731
|
+
selected: selectedQuarter === v
|
|
13732
|
+
}),
|
|
13076
13733
|
value: v.toString()
|
|
13077
13734
|
})));
|
|
13078
13735
|
}
|
|
@@ -13114,6 +13771,7 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
|
|
|
13114
13771
|
const minWeekday = minDay.isoWeekday();
|
|
13115
13772
|
const maxWeekday = maxDay.isoWeekday();
|
|
13116
13773
|
const selectedWeek = parseInt(selected[1]);
|
|
13774
|
+
const selectedWeekday = parseInt(selected[2]);
|
|
13117
13775
|
const isInMinWeek = isInMinYear && selectedWeek === minWeek;
|
|
13118
13776
|
const isInMaxWeek = isInMaxYear && selectedWeek === maxWeek;
|
|
13119
13777
|
const selectedYearWeeks = dayjs(`${selectedYear}-01-01`).isoWeeksInYear();
|
|
@@ -13139,7 +13797,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
|
|
|
13139
13797
|
const upper = maxYear;
|
|
13140
13798
|
const years = generateColumn(lower, upper, "year");
|
|
13141
13799
|
ret.push(years.map((v) => ({
|
|
13142
|
-
label: renderLabel("year", v
|
|
13800
|
+
label: renderLabel("year", v, {
|
|
13801
|
+
selected: selectedYear === v
|
|
13802
|
+
}),
|
|
13143
13803
|
value: v.toString()
|
|
13144
13804
|
})));
|
|
13145
13805
|
}
|
|
@@ -13148,7 +13808,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
|
|
|
13148
13808
|
const upper = isInMaxYear ? maxWeek : selectedYearWeeks;
|
|
13149
13809
|
const weeks = generateColumn(lower, upper, "week");
|
|
13150
13810
|
ret.push(weeks.map((v) => ({
|
|
13151
|
-
label: renderLabel("week", v
|
|
13811
|
+
label: renderLabel("week", v, {
|
|
13812
|
+
selected: selectedWeek === v
|
|
13813
|
+
}),
|
|
13152
13814
|
value: v.toString()
|
|
13153
13815
|
})));
|
|
13154
13816
|
}
|
|
@@ -13157,7 +13819,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
|
|
|
13157
13819
|
const upper = isInMaxWeek ? maxWeekday : 7;
|
|
13158
13820
|
const weeks = generateColumn(lower, upper, "week-day");
|
|
13159
13821
|
ret.push(weeks.map((v) => ({
|
|
13160
|
-
label: renderLabel("week-day", v
|
|
13822
|
+
label: renderLabel("week-day", v, {
|
|
13823
|
+
selected: selectedWeekday === v
|
|
13824
|
+
}),
|
|
13161
13825
|
value: v.toString()
|
|
13162
13826
|
})));
|
|
13163
13827
|
}
|
|
@@ -13223,9 +13887,9 @@ function useRenderLabel(renderLabel) {
|
|
|
13223
13887
|
const {
|
|
13224
13888
|
locale
|
|
13225
13889
|
} = useConfig();
|
|
13226
|
-
return useCallback((type4, data) => {
|
|
13890
|
+
return useCallback((type4, data, info) => {
|
|
13227
13891
|
if (renderLabel) {
|
|
13228
|
-
return renderLabel(type4, data);
|
|
13892
|
+
return renderLabel(type4, data, info);
|
|
13229
13893
|
}
|
|
13230
13894
|
switch (type4) {
|
|
13231
13895
|
case "minute":
|
|
@@ -13246,7 +13910,7 @@ const defaultProps$K = {
|
|
|
13246
13910
|
precision: "day",
|
|
13247
13911
|
defaultValue: null
|
|
13248
13912
|
};
|
|
13249
|
-
const DatePicker = forwardRef((p,
|
|
13913
|
+
const DatePicker = forwardRef((p, ref2) => {
|
|
13250
13914
|
const props = mergeProps(defaultProps$K, p);
|
|
13251
13915
|
const {
|
|
13252
13916
|
renderLabel
|
|
@@ -13261,9 +13925,9 @@ const DatePicker = forwardRef((p, ref) => {
|
|
|
13261
13925
|
(_a = props.onConfirm) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
13262
13926
|
}
|
|
13263
13927
|
});
|
|
13264
|
-
const now2 = useMemo(() => /* @__PURE__ */ new Date(), []);
|
|
13928
|
+
const now2 = useMemo$2(() => /* @__PURE__ */ new Date(), []);
|
|
13265
13929
|
const mergedRenderLabel = useRenderLabel(renderLabel);
|
|
13266
|
-
const pickerValue = useMemo(() => {
|
|
13930
|
+
const pickerValue = useMemo$2(() => {
|
|
13267
13931
|
let date4 = value !== null && value !== void 0 ? value : now2;
|
|
13268
13932
|
if (date4.tillNow) {
|
|
13269
13933
|
return [TILL_NOW];
|
|
@@ -13282,7 +13946,7 @@ const DatePicker = forwardRef((p, ref) => {
|
|
|
13282
13946
|
});
|
|
13283
13947
|
const columns = useCallback((selected) => generateDatePickerColumns(selected, props.min, props.max, props.precision, mergedRenderLabel, props.filter, props.tillNow), [props.min, props.max, props.precision, mergedRenderLabel, props.tillNow]);
|
|
13284
13948
|
return withNativeProps(props, React__default.createElement(Picker, {
|
|
13285
|
-
ref,
|
|
13949
|
+
ref: ref2,
|
|
13286
13950
|
columns,
|
|
13287
13951
|
value: pickerValue,
|
|
13288
13952
|
onCancel: props.onCancel,
|
|
@@ -13360,7 +14024,7 @@ const DatePickerView = (p) => {
|
|
|
13360
14024
|
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
|
|
13361
14025
|
});
|
|
13362
14026
|
const mergedRenderLabel = useRenderLabel(renderLabel);
|
|
13363
|
-
const pickerValue = useMemo(() => {
|
|
14027
|
+
const pickerValue = useMemo$2(() => {
|
|
13364
14028
|
if (value === null || value === void 0 ? void 0 : value.tillNow) {
|
|
13365
14029
|
return [TILL_NOW, null, null];
|
|
13366
14030
|
}
|
|
@@ -13604,7 +14268,7 @@ const defaultProps$G = {
|
|
|
13604
14268
|
closeOnClickAway: false,
|
|
13605
14269
|
getContainer: defaultPopupBaseProps["getContainer"]
|
|
13606
14270
|
};
|
|
13607
|
-
const Dropdown = forwardRef((props,
|
|
14271
|
+
const Dropdown = forwardRef((props, ref2) => {
|
|
13608
14272
|
const {
|
|
13609
14273
|
dropdown: componentConfig = {}
|
|
13610
14274
|
} = useConfig();
|
|
@@ -13660,7 +14324,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
13660
14324
|
return child;
|
|
13661
14325
|
}
|
|
13662
14326
|
});
|
|
13663
|
-
useImperativeHandle(
|
|
14327
|
+
useImperativeHandle(ref2, () => ({
|
|
13664
14328
|
close: () => {
|
|
13665
14329
|
setValue(null);
|
|
13666
14330
|
}
|
|
@@ -14623,7 +15287,7 @@ const classPrefix$Q = "adm-floating-panel";
|
|
|
14623
15287
|
const defaultProps$C = {
|
|
14624
15288
|
handleDraggingOfContent: true
|
|
14625
15289
|
};
|
|
14626
|
-
const FloatingPanel = forwardRef((p,
|
|
15290
|
+
const FloatingPanel = forwardRef((p, ref2) => {
|
|
14627
15291
|
var _a, _b;
|
|
14628
15292
|
const props = mergeProps(defaultProps$C, p);
|
|
14629
15293
|
const {
|
|
@@ -14710,7 +15374,7 @@ const FloatingPanel = forwardRef((p, ref) => {
|
|
|
14710
15374
|
passive: false
|
|
14711
15375
|
} : void 0
|
|
14712
15376
|
});
|
|
14713
|
-
useImperativeHandle(
|
|
15377
|
+
useImperativeHandle(ref2, () => ({
|
|
14714
15378
|
setHeight: (height, options) => {
|
|
14715
15379
|
api.start({
|
|
14716
15380
|
y: -height,
|
|
@@ -14873,7 +15537,7 @@ function _isNativeReflectConstruct$1() {
|
|
|
14873
15537
|
}
|
|
14874
15538
|
}
|
|
14875
15539
|
function _possibleConstructorReturn(self2, call2) {
|
|
14876
|
-
if (call2 && (_typeof
|
|
15540
|
+
if (call2 && (_typeof(call2) === "object" || typeof call2 === "function")) {
|
|
14877
15541
|
return call2;
|
|
14878
15542
|
} else if (call2 !== void 0) {
|
|
14879
15543
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -14902,7 +15566,7 @@ function toArray$2(children) {
|
|
|
14902
15566
|
}
|
|
14903
15567
|
if (Array.isArray(child)) {
|
|
14904
15568
|
ret = ret.concat(toArray$2(child));
|
|
14905
|
-
} else if (
|
|
15569
|
+
} else if (isFragment$2(child) && child.props) {
|
|
14906
15570
|
ret = ret.concat(toArray$2(child.props.children, option));
|
|
14907
15571
|
} else {
|
|
14908
15572
|
ret.push(child);
|
|
@@ -14916,7 +15580,7 @@ function isEqual2(obj1, obj2) {
|
|
|
14916
15580
|
function deepEqual(a, b) {
|
|
14917
15581
|
var level = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
14918
15582
|
var circular = refSet.has(a);
|
|
14919
|
-
warningOnce
|
|
15583
|
+
warningOnce(!circular, "Warning: There may be circular references");
|
|
14920
15584
|
if (circular) {
|
|
14921
15585
|
return false;
|
|
14922
15586
|
}
|
|
@@ -14939,7 +15603,7 @@ function isEqual2(obj1, obj2) {
|
|
|
14939
15603
|
}
|
|
14940
15604
|
return true;
|
|
14941
15605
|
}
|
|
14942
|
-
if (a && b && _typeof
|
|
15606
|
+
if (a && b && _typeof(a) === "object" && _typeof(b) === "object") {
|
|
14943
15607
|
var keys2 = Object.keys(a);
|
|
14944
15608
|
if (keys2.length !== Object.keys(b).length) {
|
|
14945
15609
|
return false;
|
|
@@ -14954,9 +15618,9 @@ function isEqual2(obj1, obj2) {
|
|
|
14954
15618
|
}
|
|
14955
15619
|
var HOOK_MARK$1 = "RC_FORM_INTERNAL_HOOKS";
|
|
14956
15620
|
var warningFunc$1 = function warningFunc() {
|
|
14957
|
-
warningOnce
|
|
15621
|
+
warningOnce(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
14958
15622
|
};
|
|
14959
|
-
var Context$2 = /* @__PURE__ */ React$
|
|
15623
|
+
var Context$2 = /* @__PURE__ */ React$2.createContext({
|
|
14960
15624
|
getFieldValue: warningFunc$1,
|
|
14961
15625
|
getFieldsValue: warningFunc$1,
|
|
14962
15626
|
getFieldError: warningFunc$1,
|
|
@@ -14990,7 +15654,7 @@ var Context$2 = /* @__PURE__ */ React$1.createContext({
|
|
|
14990
15654
|
};
|
|
14991
15655
|
}
|
|
14992
15656
|
});
|
|
14993
|
-
var ListContext = /* @__PURE__ */ React$
|
|
15657
|
+
var ListContext = /* @__PURE__ */ React$2.createContext(null);
|
|
14994
15658
|
function toArray$1(value) {
|
|
14995
15659
|
if (value === void 0 || value === null) {
|
|
14996
15660
|
return [];
|
|
@@ -15001,7 +15665,7 @@ function isFormInstance(form) {
|
|
|
15001
15665
|
return form && !!form._init;
|
|
15002
15666
|
}
|
|
15003
15667
|
function _regeneratorRuntime() {
|
|
15004
|
-
_regeneratorRuntime = function
|
|
15668
|
+
_regeneratorRuntime = function _regeneratorRuntime3() {
|
|
15005
15669
|
return e2;
|
|
15006
15670
|
};
|
|
15007
15671
|
var t, e2 = {}, r = Object.prototype, n2 = r.hasOwnProperty, o = Object.defineProperty || function(t2, e3, r2) {
|
|
@@ -15068,7 +15732,7 @@ function _regeneratorRuntime() {
|
|
|
15068
15732
|
var c6 = tryCatch(t2[r3], t2, o2);
|
|
15069
15733
|
if ("throw" !== c6.type) {
|
|
15070
15734
|
var u2 = c6.arg, h2 = u2.value;
|
|
15071
|
-
return h2 && "object" == _typeof
|
|
15735
|
+
return h2 && "object" == _typeof(h2) && n2.call(h2, "__await") ? e3.resolve(h2.__await).then(function(t3) {
|
|
15072
15736
|
invoke("next", t3, i3, a2);
|
|
15073
15737
|
}, function(t3) {
|
|
15074
15738
|
invoke("throw", t3, i3, a2);
|
|
@@ -15179,7 +15843,7 @@ function _regeneratorRuntime() {
|
|
|
15179
15843
|
return i3.next = i3;
|
|
15180
15844
|
}
|
|
15181
15845
|
}
|
|
15182
|
-
throw new TypeError(_typeof
|
|
15846
|
+
throw new TypeError(_typeof(e3) + " is not iterable");
|
|
15183
15847
|
}
|
|
15184
15848
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
15185
15849
|
value: GeneratorFunctionPrototype,
|
|
@@ -15435,10 +16099,10 @@ function _wrapNativeSuper(Class) {
|
|
|
15435
16099
|
return _wrapNativeSuper(Class);
|
|
15436
16100
|
}
|
|
15437
16101
|
var formatRegExp = /%[sdj%]/g;
|
|
15438
|
-
var warning
|
|
16102
|
+
var warning = function warning2() {
|
|
15439
16103
|
};
|
|
15440
16104
|
if (typeof process !== "undefined" && process.env && true && typeof window !== "undefined" && typeof document !== "undefined") {
|
|
15441
|
-
warning
|
|
16105
|
+
warning = function warning3(type4, errors) {
|
|
15442
16106
|
if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
|
|
15443
16107
|
if (errors.every(function(e2) {
|
|
15444
16108
|
return typeof e2 === "string";
|
|
@@ -16390,7 +17054,7 @@ Schema.register = function register(type4, validator) {
|
|
|
16390
17054
|
}
|
|
16391
17055
|
validators[type4] = validator;
|
|
16392
17056
|
};
|
|
16393
|
-
Schema.warning = warning
|
|
17057
|
+
Schema.warning = warning;
|
|
16394
17058
|
Schema.messages = messages;
|
|
16395
17059
|
Schema.validators = validators;
|
|
16396
17060
|
var typeTemplate = "'${name}' is not a valid ${type}";
|
|
@@ -16497,9 +17161,9 @@ function _validateRule() {
|
|
|
16497
17161
|
result = _context2.t0.errors.map(function(_ref4, index2) {
|
|
16498
17162
|
var message = _ref4.message;
|
|
16499
17163
|
var mergedMessage = message === CODE_LOGIC_ERROR ? messages2.default : message;
|
|
16500
|
-
return /* @__PURE__ */ React$
|
|
17164
|
+
return /* @__PURE__ */ React$2.isValidElement(mergedMessage) ? (
|
|
16501
17165
|
// Wrap ReactNode with `key`
|
|
16502
|
-
React$
|
|
17166
|
+
React$2.cloneElement(mergedMessage, {
|
|
16503
17167
|
key: "error_".concat(index2)
|
|
16504
17168
|
})
|
|
16505
17169
|
) : mergedMessage;
|
|
@@ -16554,7 +17218,7 @@ function validateRules(namePath, value, rules2, options, validateFirst, messageV
|
|
|
16554
17218
|
args[_key] = arguments[_key];
|
|
16555
17219
|
}
|
|
16556
17220
|
Promise.resolve().then(function() {
|
|
16557
|
-
warningOnce
|
|
17221
|
+
warningOnce(!hasPromise, "Your validator function has already return a promise. `callback` will be ignored.");
|
|
16558
17222
|
if (!hasPromise) {
|
|
16559
17223
|
callback.apply(void 0, args);
|
|
16560
17224
|
}
|
|
@@ -16562,7 +17226,7 @@ function validateRules(namePath, value, rules2, options, validateFirst, messageV
|
|
|
16562
17226
|
};
|
|
16563
17227
|
var promise = originValidatorFunc(rule, val, wrappedCallback);
|
|
16564
17228
|
hasPromise = promise && typeof promise.then === "function" && typeof promise.catch === "function";
|
|
16565
|
-
warningOnce
|
|
17229
|
+
warningOnce(hasPromise, "`callback` is deprecated. Please return a promise instead.");
|
|
16566
17230
|
if (hasPromise) {
|
|
16567
17231
|
promise.then(function() {
|
|
16568
17232
|
callback();
|
|
@@ -16732,7 +17396,7 @@ function isSimilar(source, target) {
|
|
|
16732
17396
|
if (!source && target || source && !target) {
|
|
16733
17397
|
return false;
|
|
16734
17398
|
}
|
|
16735
|
-
if (!source || !target || _typeof
|
|
17399
|
+
if (!source || !target || _typeof(source) !== "object" || _typeof(target) !== "object") {
|
|
16736
17400
|
return false;
|
|
16737
17401
|
}
|
|
16738
17402
|
var sourceKeys = Object.keys(source);
|
|
@@ -16749,7 +17413,7 @@ function isSimilar(source, target) {
|
|
|
16749
17413
|
}
|
|
16750
17414
|
function defaultGetValueFromEvent(valuePropName) {
|
|
16751
17415
|
var event = arguments.length <= 1 ? void 0 : arguments[1];
|
|
16752
|
-
if (event && event.target && _typeof
|
|
17416
|
+
if (event && event.target && _typeof(event.target) === "object" && valuePropName in event.target) {
|
|
16753
17417
|
return event.target[valuePropName];
|
|
16754
17418
|
}
|
|
16755
17419
|
return event;
|
|
@@ -17037,7 +17701,7 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17037
17701
|
});
|
|
17038
17702
|
}
|
|
17039
17703
|
var childList = toArray$2(children);
|
|
17040
|
-
if (childList.length !== 1 || !/* @__PURE__ */ React$
|
|
17704
|
+
if (childList.length !== 1 || !/* @__PURE__ */ React$2.isValidElement(childList[0])) {
|
|
17041
17705
|
return {
|
|
17042
17706
|
child: childList,
|
|
17043
17707
|
isFunction: false
|
|
@@ -17154,19 +17818,19 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17154
17818
|
var returnChildNode;
|
|
17155
17819
|
if (isFunction2) {
|
|
17156
17820
|
returnChildNode = child;
|
|
17157
|
-
} else if (/* @__PURE__ */ React$
|
|
17158
|
-
returnChildNode = /* @__PURE__ */ React$
|
|
17821
|
+
} else if (/* @__PURE__ */ React$2.isValidElement(child)) {
|
|
17822
|
+
returnChildNode = /* @__PURE__ */ React$2.cloneElement(child, this.getControlled(child.props));
|
|
17159
17823
|
} else {
|
|
17160
|
-
warningOnce
|
|
17824
|
+
warningOnce(!child, "`children` of Field is not validate ReactElement.");
|
|
17161
17825
|
returnChildNode = child;
|
|
17162
17826
|
}
|
|
17163
|
-
return /* @__PURE__ */ React$
|
|
17827
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, {
|
|
17164
17828
|
key: resetCount
|
|
17165
17829
|
}, returnChildNode);
|
|
17166
17830
|
}
|
|
17167
17831
|
}]);
|
|
17168
17832
|
return Field2;
|
|
17169
|
-
}(React$
|
|
17833
|
+
}(React$2.Component);
|
|
17170
17834
|
Field.contextType = Context$2;
|
|
17171
17835
|
Field.defaultProps = {
|
|
17172
17836
|
trigger: "onChange",
|
|
@@ -17174,17 +17838,17 @@ Field.defaultProps = {
|
|
|
17174
17838
|
};
|
|
17175
17839
|
function WrapperField(_ref5) {
|
|
17176
17840
|
var name = _ref5.name, restProps = _objectWithoutProperties(_ref5, _excluded$4);
|
|
17177
|
-
var fieldContext = React$
|
|
17178
|
-
var listContext = React$
|
|
17841
|
+
var fieldContext = React$2.useContext(Context$2);
|
|
17842
|
+
var listContext = React$2.useContext(ListContext);
|
|
17179
17843
|
var namePath = name !== void 0 ? getNamePath(name) : void 0;
|
|
17180
17844
|
var key = "keep";
|
|
17181
17845
|
if (!restProps.isListField) {
|
|
17182
17846
|
key = "_".concat((namePath || []).join("_"));
|
|
17183
17847
|
}
|
|
17184
17848
|
if (restProps.preserve === false && restProps.isListField && namePath.length <= 1) {
|
|
17185
|
-
warningOnce
|
|
17849
|
+
warningOnce(false, "`preserve` should not apply on Form.List fields.");
|
|
17186
17850
|
}
|
|
17187
|
-
return /* @__PURE__ */ React$
|
|
17851
|
+
return /* @__PURE__ */ React$2.createElement(Field, _extends$1({
|
|
17188
17852
|
key,
|
|
17189
17853
|
name: namePath,
|
|
17190
17854
|
isListField: !!listContext
|
|
@@ -17194,23 +17858,23 @@ function WrapperField(_ref5) {
|
|
|
17194
17858
|
}
|
|
17195
17859
|
var List = function List2(_ref) {
|
|
17196
17860
|
var name = _ref.name, initialValue = _ref.initialValue, children = _ref.children, rules2 = _ref.rules, validateTrigger = _ref.validateTrigger, isListField = _ref.isListField;
|
|
17197
|
-
var context = React$
|
|
17198
|
-
var wrapperListContext = React$
|
|
17199
|
-
var keyRef = React$
|
|
17861
|
+
var context = React$2.useContext(Context$2);
|
|
17862
|
+
var wrapperListContext = React$2.useContext(ListContext);
|
|
17863
|
+
var keyRef = React$2.useRef({
|
|
17200
17864
|
keys: [],
|
|
17201
17865
|
id: 0
|
|
17202
17866
|
});
|
|
17203
17867
|
var keyManager = keyRef.current;
|
|
17204
|
-
var prefixName = React$
|
|
17868
|
+
var prefixName = React$2.useMemo(function() {
|
|
17205
17869
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
17206
17870
|
return [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
17207
17871
|
}, [context.prefixName, name]);
|
|
17208
|
-
var fieldContext = React$
|
|
17872
|
+
var fieldContext = React$2.useMemo(function() {
|
|
17209
17873
|
return _objectSpread2(_objectSpread2({}, context), {}, {
|
|
17210
17874
|
prefixName
|
|
17211
17875
|
});
|
|
17212
17876
|
}, [context, prefixName]);
|
|
17213
|
-
var listContext = React$
|
|
17877
|
+
var listContext = React$2.useMemo(function() {
|
|
17214
17878
|
return {
|
|
17215
17879
|
getKey: function getKey(namePath) {
|
|
17216
17880
|
var len = prefixName.length;
|
|
@@ -17220,7 +17884,7 @@ var List = function List2(_ref) {
|
|
|
17220
17884
|
};
|
|
17221
17885
|
}, [prefixName]);
|
|
17222
17886
|
if (typeof children !== "function") {
|
|
17223
|
-
warningOnce
|
|
17887
|
+
warningOnce(false, "Form.List only accepts function as children.");
|
|
17224
17888
|
return null;
|
|
17225
17889
|
}
|
|
17226
17890
|
var shouldUpdate = function shouldUpdate2(prevValue, nextValue, _ref2) {
|
|
@@ -17230,11 +17894,11 @@ var List = function List2(_ref) {
|
|
|
17230
17894
|
}
|
|
17231
17895
|
return prevValue !== nextValue;
|
|
17232
17896
|
};
|
|
17233
|
-
return /* @__PURE__ */ React$
|
|
17897
|
+
return /* @__PURE__ */ React$2.createElement(ListContext.Provider, {
|
|
17234
17898
|
value: listContext
|
|
17235
|
-
}, /* @__PURE__ */ React$
|
|
17899
|
+
}, /* @__PURE__ */ React$2.createElement(Context$2.Provider, {
|
|
17236
17900
|
value: fieldContext
|
|
17237
|
-
}, /* @__PURE__ */ React$
|
|
17901
|
+
}, /* @__PURE__ */ React$2.createElement(WrapperField, {
|
|
17238
17902
|
name: [],
|
|
17239
17903
|
shouldUpdate,
|
|
17240
17904
|
rules: rules2,
|
|
@@ -17257,7 +17921,7 @@ var List = function List2(_ref) {
|
|
|
17257
17921
|
onChange([].concat(_toConsumableArray(newValue.slice(0, index2)), [defaultValue], _toConsumableArray(newValue.slice(index2))));
|
|
17258
17922
|
} else {
|
|
17259
17923
|
if (index2 < 0 || index2 > newValue.length) {
|
|
17260
|
-
warningOnce
|
|
17924
|
+
warningOnce(false, "The second parameter of the add function should be a valid positive number.");
|
|
17261
17925
|
}
|
|
17262
17926
|
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
17263
17927
|
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
@@ -17293,7 +17957,7 @@ var List = function List2(_ref) {
|
|
|
17293
17957
|
if (!Array.isArray(listValue)) {
|
|
17294
17958
|
listValue = [];
|
|
17295
17959
|
{
|
|
17296
|
-
warningOnce
|
|
17960
|
+
warningOnce(false, "Current value of '".concat(prefixName.join(" > "), "' is not an array type."));
|
|
17297
17961
|
}
|
|
17298
17962
|
}
|
|
17299
17963
|
return children(listValue.map(function(__, index2) {
|
|
@@ -17340,7 +18004,7 @@ function allPromiseFinish(promiseList) {
|
|
|
17340
18004
|
var SPLIT = "__@field_split__";
|
|
17341
18005
|
function normalize(namePath) {
|
|
17342
18006
|
return namePath.map(function(cell) {
|
|
17343
|
-
return "".concat(_typeof
|
|
18007
|
+
return "".concat(_typeof(cell), ":").concat(cell);
|
|
17344
18008
|
}).join(SPLIT);
|
|
17345
18009
|
}
|
|
17346
18010
|
var NameMap = /* @__PURE__ */ function() {
|
|
@@ -17457,7 +18121,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
17457
18121
|
registerWatch: _this.registerWatch
|
|
17458
18122
|
};
|
|
17459
18123
|
}
|
|
17460
|
-
warningOnce
|
|
18124
|
+
warningOnce(false, "`getInternalHooks` is internal usage. Should not call directly.");
|
|
17461
18125
|
return null;
|
|
17462
18126
|
};
|
|
17463
18127
|
this.useSubscribe = function(subscribable) {
|
|
@@ -17524,7 +18188,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
17524
18188
|
_this.timeoutId = setTimeout(function() {
|
|
17525
18189
|
_this.timeoutId = null;
|
|
17526
18190
|
if (!_this.formHooked) {
|
|
17527
|
-
warningOnce
|
|
18191
|
+
warningOnce(false, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
|
|
17528
18192
|
}
|
|
17529
18193
|
});
|
|
17530
18194
|
}
|
|
@@ -17720,11 +18384,11 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
17720
18384
|
var namePath = field.getNamePath();
|
|
17721
18385
|
var formInitialValue = _this.getInitialValue(namePath);
|
|
17722
18386
|
if (formInitialValue !== void 0) {
|
|
17723
|
-
warningOnce
|
|
18387
|
+
warningOnce(false, "Form already set 'initialValues' with path '".concat(namePath.join("."), "'. Field can not overwrite it."));
|
|
17724
18388
|
} else {
|
|
17725
18389
|
var records = cache.get(namePath);
|
|
17726
18390
|
if (records && records.size > 1) {
|
|
17727
|
-
warningOnce
|
|
18391
|
+
warningOnce(false, "Multiple Field with path '".concat(namePath.join("."), "' set 'initialValue'. Can not decide which one to pick."));
|
|
17728
18392
|
} else if (records) {
|
|
17729
18393
|
var originValue = _this.getFieldValue(namePath);
|
|
17730
18394
|
if (!info.skipExist || originValue === void 0) {
|
|
@@ -18129,8 +18793,8 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18129
18793
|
this.forceRootUpdate = forceRootUpdate;
|
|
18130
18794
|
});
|
|
18131
18795
|
function useForm(form) {
|
|
18132
|
-
var formRef = React$
|
|
18133
|
-
var _React$useState = React$
|
|
18796
|
+
var formRef = React$2.useRef();
|
|
18797
|
+
var _React$useState = React$2.useState({}), _React$useState2 = _slicedToArray(_React$useState, 2), forceUpdate = _React$useState2[1];
|
|
18134
18798
|
if (!formRef.current) {
|
|
18135
18799
|
if (form) {
|
|
18136
18800
|
formRef.current = form;
|
|
@@ -18144,7 +18808,7 @@ function useForm(form) {
|
|
|
18144
18808
|
}
|
|
18145
18809
|
return [formRef.current];
|
|
18146
18810
|
}
|
|
18147
|
-
var FormContext$1 = /* @__PURE__ */ React$
|
|
18811
|
+
var FormContext$1 = /* @__PURE__ */ React$2.createContext({
|
|
18148
18812
|
triggerFormChange: function triggerFormChange() {
|
|
18149
18813
|
},
|
|
18150
18814
|
triggerFormFinish: function triggerFormFinish() {
|
|
@@ -18156,9 +18820,9 @@ var FormContext$1 = /* @__PURE__ */ React$1.createContext({
|
|
|
18156
18820
|
});
|
|
18157
18821
|
var FormProvider = function FormProvider2(_ref) {
|
|
18158
18822
|
var validateMessages = _ref.validateMessages, onFormChange = _ref.onFormChange, onFormFinish = _ref.onFormFinish, children = _ref.children;
|
|
18159
|
-
var formContext = React$
|
|
18160
|
-
var formsRef = React$
|
|
18161
|
-
return /* @__PURE__ */ React$
|
|
18823
|
+
var formContext = React$2.useContext(FormContext$1);
|
|
18824
|
+
var formsRef = React$2.useRef({});
|
|
18825
|
+
return /* @__PURE__ */ React$2.createElement(FormContext$1.Provider, {
|
|
18162
18826
|
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
18163
18827
|
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
18164
18828
|
// =========================================================
|
|
@@ -18198,15 +18862,15 @@ var FormProvider = function FormProvider2(_ref) {
|
|
|
18198
18862
|
}, children);
|
|
18199
18863
|
};
|
|
18200
18864
|
var _excluded$2 = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
18201
|
-
var Form$1 = function Form(_ref,
|
|
18865
|
+
var Form$1 = function Form(_ref, ref2) {
|
|
18202
18866
|
var name = _ref.name, initialValues = _ref.initialValues, fields = _ref.fields, form = _ref.form, preserve = _ref.preserve, children = _ref.children, _ref$component = _ref.component, Component = _ref$component === void 0 ? "form" : _ref$component, validateMessages = _ref.validateMessages, _ref$validateTrigger = _ref.validateTrigger, validateTrigger = _ref$validateTrigger === void 0 ? "onChange" : _ref$validateTrigger, onValuesChange = _ref.onValuesChange, _onFieldsChange = _ref.onFieldsChange, _onFinish = _ref.onFinish, onFinishFailed = _ref.onFinishFailed, restProps = _objectWithoutProperties(_ref, _excluded$2);
|
|
18203
|
-
var formContext = React$
|
|
18867
|
+
var formContext = React$2.useContext(FormContext$1);
|
|
18204
18868
|
var _useForm = useForm(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
|
|
18205
18869
|
var _formInstance$getInte = formInstance.getInternalHooks(HOOK_MARK$1), useSubscribe = _formInstance$getInte.useSubscribe, setInitialValues = _formInstance$getInte.setInitialValues, setCallbacks = _formInstance$getInte.setCallbacks, setValidateMessages = _formInstance$getInte.setValidateMessages, setPreserve = _formInstance$getInte.setPreserve, destroyForm = _formInstance$getInte.destroyForm;
|
|
18206
|
-
React$
|
|
18870
|
+
React$2.useImperativeHandle(ref2, function() {
|
|
18207
18871
|
return formInstance;
|
|
18208
18872
|
});
|
|
18209
|
-
React$
|
|
18873
|
+
React$2.useEffect(function() {
|
|
18210
18874
|
formContext.registerForm(name, formInstance);
|
|
18211
18875
|
return function() {
|
|
18212
18876
|
formContext.unregisterForm(name);
|
|
@@ -18233,12 +18897,12 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18233
18897
|
onFinishFailed
|
|
18234
18898
|
});
|
|
18235
18899
|
setPreserve(preserve);
|
|
18236
|
-
var mountRef = React$
|
|
18900
|
+
var mountRef = React$2.useRef(null);
|
|
18237
18901
|
setInitialValues(initialValues, !mountRef.current);
|
|
18238
18902
|
if (!mountRef.current) {
|
|
18239
18903
|
mountRef.current = true;
|
|
18240
18904
|
}
|
|
18241
|
-
React$
|
|
18905
|
+
React$2.useEffect(
|
|
18242
18906
|
function() {
|
|
18243
18907
|
return destroyForm;
|
|
18244
18908
|
},
|
|
@@ -18254,27 +18918,27 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18254
18918
|
childrenNode = children;
|
|
18255
18919
|
}
|
|
18256
18920
|
useSubscribe(!childrenRenderProps);
|
|
18257
|
-
var prevFieldsRef = React$
|
|
18258
|
-
React$
|
|
18921
|
+
var prevFieldsRef = React$2.useRef();
|
|
18922
|
+
React$2.useEffect(function() {
|
|
18259
18923
|
if (!isSimilar(prevFieldsRef.current || [], fields || [])) {
|
|
18260
18924
|
formInstance.setFields(fields || []);
|
|
18261
18925
|
}
|
|
18262
18926
|
prevFieldsRef.current = fields;
|
|
18263
18927
|
}, [fields, formInstance]);
|
|
18264
|
-
var formContextValue = React$
|
|
18928
|
+
var formContextValue = React$2.useMemo(function() {
|
|
18265
18929
|
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
18266
18930
|
validateTrigger
|
|
18267
18931
|
});
|
|
18268
18932
|
}, [formInstance, validateTrigger]);
|
|
18269
|
-
var wrapperNode = /* @__PURE__ */ React$
|
|
18933
|
+
var wrapperNode = /* @__PURE__ */ React$2.createElement(ListContext.Provider, {
|
|
18270
18934
|
value: null
|
|
18271
|
-
}, /* @__PURE__ */ React$
|
|
18935
|
+
}, /* @__PURE__ */ React$2.createElement(Context$2.Provider, {
|
|
18272
18936
|
value: formContextValue
|
|
18273
18937
|
}, childrenNode));
|
|
18274
18938
|
if (Component === false) {
|
|
18275
18939
|
return wrapperNode;
|
|
18276
18940
|
}
|
|
18277
|
-
return /* @__PURE__ */ React$
|
|
18941
|
+
return /* @__PURE__ */ React$2.createElement(Component, _extends$1({}, restProps, {
|
|
18278
18942
|
onSubmit: function onSubmit(event) {
|
|
18279
18943
|
event.preventDefault();
|
|
18280
18944
|
event.stopPropagation();
|
|
@@ -18298,7 +18962,7 @@ function stringify(value) {
|
|
|
18298
18962
|
var useWatchWarning = function(namePath) {
|
|
18299
18963
|
var fullyStr = namePath.join("__RC_FIELD_FORM_SPLIT__");
|
|
18300
18964
|
var nameStrRef = useRef(fullyStr);
|
|
18301
|
-
warningOnce
|
|
18965
|
+
warningOnce(nameStrRef.current === fullyStr, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
|
|
18302
18966
|
};
|
|
18303
18967
|
function useWatch() {
|
|
18304
18968
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -18310,7 +18974,7 @@ function useWatch() {
|
|
|
18310
18974
|
} : _form;
|
|
18311
18975
|
var form = options.form;
|
|
18312
18976
|
var _useState = useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue = _useState2[1];
|
|
18313
|
-
var valueStr = useMemo(function() {
|
|
18977
|
+
var valueStr = useMemo$2(function() {
|
|
18314
18978
|
return stringify(value);
|
|
18315
18979
|
}, [value]);
|
|
18316
18980
|
var valueStrRef = useRef(valueStr);
|
|
@@ -18319,7 +18983,7 @@ function useWatch() {
|
|
|
18319
18983
|
var formInstance = form || fieldContext;
|
|
18320
18984
|
var isValidForm = formInstance && formInstance._init;
|
|
18321
18985
|
{
|
|
18322
|
-
warningOnce
|
|
18986
|
+
warningOnce(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18323
18987
|
}
|
|
18324
18988
|
var namePath = getNamePath(dependencies);
|
|
18325
18989
|
var namePathRef = useRef(namePath);
|
|
@@ -18350,7 +19014,7 @@ function useWatch() {
|
|
|
18350
19014
|
);
|
|
18351
19015
|
return value;
|
|
18352
19016
|
}
|
|
18353
|
-
var InternalForm = /* @__PURE__ */ React$
|
|
19017
|
+
var InternalForm = /* @__PURE__ */ React$2.forwardRef(Form$1);
|
|
18354
19018
|
var RefForm = InternalForm;
|
|
18355
19019
|
RefForm.FormProvider = FormProvider;
|
|
18356
19020
|
RefForm.Field = WrapperField;
|
|
@@ -18375,11 +19039,11 @@ function isNonNullObject(value) {
|
|
|
18375
19039
|
}
|
|
18376
19040
|
function isSpecial(value) {
|
|
18377
19041
|
var stringValue = Object.prototype.toString.call(value);
|
|
18378
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
19042
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement$1(value);
|
|
18379
19043
|
}
|
|
18380
19044
|
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
18381
19045
|
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
18382
|
-
function isReactElement(value) {
|
|
19046
|
+
function isReactElement$1(value) {
|
|
18383
19047
|
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
18384
19048
|
}
|
|
18385
19049
|
function emptyTarget(val) {
|
|
@@ -18498,7 +19162,7 @@ const FormArray = (props) => {
|
|
|
18498
19162
|
};
|
|
18499
19163
|
const classPrefix$P = "adm-form";
|
|
18500
19164
|
const defaultProps$B = defaultFormContext;
|
|
18501
|
-
const Form2 = forwardRef((p,
|
|
19165
|
+
const Form2 = forwardRef((p, ref2) => {
|
|
18502
19166
|
const props = mergeProps(defaultProps$B, p);
|
|
18503
19167
|
const {
|
|
18504
19168
|
className,
|
|
@@ -18514,7 +19178,7 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
18514
19178
|
const {
|
|
18515
19179
|
locale
|
|
18516
19180
|
} = useConfig();
|
|
18517
|
-
const validateMessages = useMemo(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
|
|
19181
|
+
const validateMessages = useMemo$2(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
|
|
18518
19182
|
const lists = [];
|
|
18519
19183
|
let currentHeader = null;
|
|
18520
19184
|
let items = [];
|
|
@@ -18549,7 +19213,7 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
18549
19213
|
return React__default.createElement(RefForm, Object.assign({
|
|
18550
19214
|
className: classNames(classPrefix$P, className),
|
|
18551
19215
|
style: style2,
|
|
18552
|
-
ref
|
|
19216
|
+
ref: ref2
|
|
18553
19217
|
}, formProps, {
|
|
18554
19218
|
validateMessages
|
|
18555
19219
|
}), React__default.createElement(FormContext.Provider, {
|
|
@@ -18565,145 +19229,20 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
18565
19229
|
}, footer));
|
|
18566
19230
|
});
|
|
18567
19231
|
var FieldContext = {};
|
|
18568
|
-
var
|
|
18569
|
-
var
|
|
18570
|
-
(function(module) {
|
|
18571
|
-
function _typeof2(o) {
|
|
18572
|
-
"@babel/helpers - typeof";
|
|
18573
|
-
return module.exports = _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
18574
|
-
return typeof o2;
|
|
18575
|
-
} : function(o2) {
|
|
18576
|
-
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
18577
|
-
}, module.exports.__esModule = true, module.exports["default"] = module.exports, _typeof2(o);
|
|
18578
|
-
}
|
|
18579
|
-
module.exports = _typeof2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
18580
|
-
})(_typeof);
|
|
18581
|
-
var _typeofExports = _typeof.exports;
|
|
18582
|
-
(function(module) {
|
|
18583
|
-
var _typeof2 = _typeofExports["default"];
|
|
18584
|
-
function _getRequireWildcardCache(nodeInterop) {
|
|
18585
|
-
if (typeof WeakMap !== "function")
|
|
18586
|
-
return null;
|
|
18587
|
-
var cacheBabelInterop = /* @__PURE__ */ new WeakMap();
|
|
18588
|
-
var cacheNodeInterop = /* @__PURE__ */ new WeakMap();
|
|
18589
|
-
return (_getRequireWildcardCache = function _getRequireWildcardCache2(nodeInterop2) {
|
|
18590
|
-
return nodeInterop2 ? cacheNodeInterop : cacheBabelInterop;
|
|
18591
|
-
})(nodeInterop);
|
|
18592
|
-
}
|
|
18593
|
-
function _interopRequireWildcard2(obj, nodeInterop) {
|
|
18594
|
-
if (!nodeInterop && obj && obj.__esModule) {
|
|
18595
|
-
return obj;
|
|
18596
|
-
}
|
|
18597
|
-
if (obj === null || _typeof2(obj) !== "object" && typeof obj !== "function") {
|
|
18598
|
-
return {
|
|
18599
|
-
"default": obj
|
|
18600
|
-
};
|
|
18601
|
-
}
|
|
18602
|
-
var cache = _getRequireWildcardCache(nodeInterop);
|
|
18603
|
-
if (cache && cache.has(obj)) {
|
|
18604
|
-
return cache.get(obj);
|
|
18605
|
-
}
|
|
18606
|
-
var newObj = {};
|
|
18607
|
-
var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
18608
|
-
for (var key in obj) {
|
|
18609
|
-
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
18610
|
-
var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
|
|
18611
|
-
if (desc && (desc.get || desc.set)) {
|
|
18612
|
-
Object.defineProperty(newObj, key, desc);
|
|
18613
|
-
} else {
|
|
18614
|
-
newObj[key] = obj[key];
|
|
18615
|
-
}
|
|
18616
|
-
}
|
|
18617
|
-
}
|
|
18618
|
-
newObj["default"] = obj;
|
|
18619
|
-
if (cache) {
|
|
18620
|
-
cache.set(obj, newObj);
|
|
18621
|
-
}
|
|
18622
|
-
return newObj;
|
|
18623
|
-
}
|
|
18624
|
-
module.exports = _interopRequireWildcard2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
18625
|
-
})(interopRequireWildcard);
|
|
18626
|
-
var interopRequireWildcardExports = interopRequireWildcard.exports;
|
|
18627
|
-
var interopRequireDefault = { exports: {} };
|
|
18628
|
-
(function(module) {
|
|
18629
|
-
function _interopRequireDefault2(obj) {
|
|
18630
|
-
return obj && obj.__esModule ? obj : {
|
|
18631
|
-
"default": obj
|
|
18632
|
-
};
|
|
18633
|
-
}
|
|
18634
|
-
module.exports = _interopRequireDefault2, module.exports.__esModule = true, module.exports["default"] = module.exports;
|
|
18635
|
-
})(interopRequireDefault);
|
|
18636
|
-
var interopRequireDefaultExports = interopRequireDefault.exports;
|
|
18637
|
-
var warning$1 = {};
|
|
18638
|
-
Object.defineProperty(warning$1, "__esModule", {
|
|
18639
|
-
value: true
|
|
18640
|
-
});
|
|
18641
|
-
warning$1.call = call;
|
|
18642
|
-
warning$1.default = void 0;
|
|
18643
|
-
warning$1.note = note;
|
|
18644
|
-
warning$1.noteOnce = noteOnce;
|
|
18645
|
-
warning$1.preMessage = void 0;
|
|
18646
|
-
warning$1.resetWarned = resetWarned;
|
|
18647
|
-
warning$1.warning = warning;
|
|
18648
|
-
warning$1.warningOnce = warningOnce;
|
|
18649
|
-
var warned = {};
|
|
18650
|
-
var preWarningFns = [];
|
|
18651
|
-
var preMessage = warning$1.preMessage = function preMessage22(fn) {
|
|
18652
|
-
preWarningFns.push(fn);
|
|
18653
|
-
};
|
|
18654
|
-
function warning(valid, message) {
|
|
18655
|
-
if (!valid && console !== void 0) {
|
|
18656
|
-
var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
|
|
18657
|
-
return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "warning");
|
|
18658
|
-
}, message);
|
|
18659
|
-
if (finalMessage) {
|
|
18660
|
-
console.error("Warning: ".concat(finalMessage));
|
|
18661
|
-
}
|
|
18662
|
-
}
|
|
18663
|
-
}
|
|
18664
|
-
function note(valid, message) {
|
|
18665
|
-
if (!valid && console !== void 0) {
|
|
18666
|
-
var finalMessage = preWarningFns.reduce(function(msg, preMessageFn) {
|
|
18667
|
-
return preMessageFn(msg !== null && msg !== void 0 ? msg : "", "note");
|
|
18668
|
-
}, message);
|
|
18669
|
-
if (finalMessage) {
|
|
18670
|
-
console.warn("Note: ".concat(finalMessage));
|
|
18671
|
-
}
|
|
18672
|
-
}
|
|
18673
|
-
}
|
|
18674
|
-
function resetWarned() {
|
|
18675
|
-
warned = {};
|
|
18676
|
-
}
|
|
18677
|
-
function call(method4, valid, message) {
|
|
18678
|
-
if (!valid && !warned[message]) {
|
|
18679
|
-
method4(false, message);
|
|
18680
|
-
warned[message] = true;
|
|
18681
|
-
}
|
|
18682
|
-
}
|
|
18683
|
-
function warningOnce(valid, message) {
|
|
18684
|
-
call(warning, valid, message);
|
|
18685
|
-
}
|
|
18686
|
-
function noteOnce(valid, message) {
|
|
18687
|
-
call(note, valid, message);
|
|
18688
|
-
}
|
|
18689
|
-
warningOnce.preMessage = preMessage;
|
|
18690
|
-
warningOnce.resetWarned = resetWarned;
|
|
18691
|
-
warningOnce.noteOnce = noteOnce;
|
|
18692
|
-
warning$1.default = warningOnce;
|
|
18693
|
-
var _interopRequireWildcard = interopRequireWildcardExports.default;
|
|
18694
|
-
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
19232
|
+
var _interopRequireWildcard$1 = interopRequireWildcardExports.default;
|
|
19233
|
+
var _interopRequireDefault$3 = interopRequireDefaultExports.default;
|
|
18695
19234
|
Object.defineProperty(FieldContext, "__esModule", {
|
|
18696
19235
|
value: true
|
|
18697
19236
|
});
|
|
18698
19237
|
var default_1 = FieldContext.default = FieldContext.HOOK_MARK = void 0;
|
|
18699
|
-
var _warning = _interopRequireDefault(warning$
|
|
18700
|
-
var React = _interopRequireWildcard(React__default);
|
|
19238
|
+
var _warning = _interopRequireDefault$3(warning$3);
|
|
19239
|
+
var React$1 = _interopRequireWildcard$1(React__default);
|
|
18701
19240
|
var HOOK_MARK = "RC_FORM_INTERNAL_HOOKS";
|
|
18702
19241
|
FieldContext.HOOK_MARK = HOOK_MARK;
|
|
18703
19242
|
var warningFunc2 = function warningFunc3() {
|
|
18704
19243
|
(0, _warning.default)(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
18705
19244
|
};
|
|
18706
|
-
var Context$1 = /* @__PURE__ */ React.createContext({
|
|
19245
|
+
var Context$1 = /* @__PURE__ */ React$1.createContext({
|
|
18707
19246
|
getFieldValue: warningFunc2,
|
|
18708
19247
|
getFieldsValue: warningFunc2,
|
|
18709
19248
|
getFieldError: warningFunc2,
|
|
@@ -18737,8 +19276,8 @@ var Context$1 = /* @__PURE__ */ React.createContext({
|
|
|
18737
19276
|
};
|
|
18738
19277
|
}
|
|
18739
19278
|
});
|
|
18740
|
-
var _default = Context$1;
|
|
18741
|
-
default_1 = FieldContext.default = _default;
|
|
19279
|
+
var _default$1 = Context$1;
|
|
19280
|
+
default_1 = FieldContext.default = _default$1;
|
|
18742
19281
|
function undefinedFallback(...items) {
|
|
18743
19282
|
let i2;
|
|
18744
19283
|
for (i2 = 0; i2 < items.length; i2++) {
|
|
@@ -20163,7 +20702,152 @@ function normalizePlacement(placement) {
|
|
|
20163
20702
|
var _a;
|
|
20164
20703
|
return (_a = record[placement]) !== null && _a !== void 0 ? _a : placement;
|
|
20165
20704
|
}
|
|
20166
|
-
|
|
20705
|
+
var findDOMNode$2 = {};
|
|
20706
|
+
var _interopRequireDefault$2 = interopRequireDefaultExports.default;
|
|
20707
|
+
Object.defineProperty(findDOMNode$2, "__esModule", {
|
|
20708
|
+
value: true
|
|
20709
|
+
});
|
|
20710
|
+
var _default = findDOMNode$2.default = findDOMNode$1;
|
|
20711
|
+
var getDOM_1 = findDOMNode$2.getDOM = getDOM$1;
|
|
20712
|
+
findDOMNode$2.isDOM = isDOM$1;
|
|
20713
|
+
var _typeof2$2 = _interopRequireDefault$2(_typeofExports);
|
|
20714
|
+
var _react$1 = _interopRequireDefault$2(React__default);
|
|
20715
|
+
var _reactDom = _interopRequireDefault$2(ReactDOM__default);
|
|
20716
|
+
function isDOM$1(node) {
|
|
20717
|
+
return node instanceof HTMLElement || node instanceof SVGElement;
|
|
20718
|
+
}
|
|
20719
|
+
function getDOM$1(node) {
|
|
20720
|
+
if (node && (0, _typeof2$2.default)(node) === "object" && isDOM$1(node.nativeElement)) {
|
|
20721
|
+
return node.nativeElement;
|
|
20722
|
+
}
|
|
20723
|
+
if (isDOM$1(node)) {
|
|
20724
|
+
return node;
|
|
20725
|
+
}
|
|
20726
|
+
return null;
|
|
20727
|
+
}
|
|
20728
|
+
function findDOMNode$1(node) {
|
|
20729
|
+
var domNode = getDOM$1(node);
|
|
20730
|
+
if (domNode) {
|
|
20731
|
+
return domNode;
|
|
20732
|
+
}
|
|
20733
|
+
if (node instanceof _react$1.default.Component) {
|
|
20734
|
+
var _ReactDOM$findDOMNode;
|
|
20735
|
+
return (_ReactDOM$findDOMNode = _reactDom.default.findDOMNode) === null || _ReactDOM$findDOMNode === void 0 ? void 0 : _ReactDOM$findDOMNode.call(_reactDom.default, node);
|
|
20736
|
+
}
|
|
20737
|
+
return null;
|
|
20738
|
+
}
|
|
20739
|
+
var ref = {};
|
|
20740
|
+
var useMemo$1 = {};
|
|
20741
|
+
var _interopRequireWildcard = interopRequireWildcardExports.default;
|
|
20742
|
+
Object.defineProperty(useMemo$1, "__esModule", {
|
|
20743
|
+
value: true
|
|
20744
|
+
});
|
|
20745
|
+
useMemo$1.default = useMemo;
|
|
20746
|
+
var React = _interopRequireWildcard(React__default);
|
|
20747
|
+
function useMemo(getValue2, condition, shouldUpdate) {
|
|
20748
|
+
var cacheRef = React.useRef({});
|
|
20749
|
+
if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
20750
|
+
cacheRef.current.value = getValue2();
|
|
20751
|
+
cacheRef.current.condition = condition;
|
|
20752
|
+
}
|
|
20753
|
+
return cacheRef.current.value;
|
|
20754
|
+
}
|
|
20755
|
+
var isFragment$1 = {};
|
|
20756
|
+
var _interopRequireDefault$1 = interopRequireDefaultExports.default;
|
|
20757
|
+
Object.defineProperty(isFragment$1, "__esModule", {
|
|
20758
|
+
value: true
|
|
20759
|
+
});
|
|
20760
|
+
isFragment$1.default = isFragment;
|
|
20761
|
+
var _typeof2$1 = _interopRequireDefault$1(_typeofExports);
|
|
20762
|
+
var REACT_ELEMENT_TYPE_18 = Symbol.for("react.element");
|
|
20763
|
+
var REACT_ELEMENT_TYPE_19 = Symbol.for("react.transitional.element");
|
|
20764
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
20765
|
+
function isFragment(object4) {
|
|
20766
|
+
return (
|
|
20767
|
+
// Base object type
|
|
20768
|
+
object4 && (0, _typeof2$1.default)(object4) === "object" && // React Element type
|
|
20769
|
+
(object4.$$typeof === REACT_ELEMENT_TYPE_18 || object4.$$typeof === REACT_ELEMENT_TYPE_19) && // React Fragment type
|
|
20770
|
+
object4.type === REACT_FRAGMENT_TYPE
|
|
20771
|
+
);
|
|
20772
|
+
}
|
|
20773
|
+
var composeRef_1;
|
|
20774
|
+
var getNodeRef_1;
|
|
20775
|
+
var supportRef_1;
|
|
20776
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
20777
|
+
Object.defineProperty(ref, "__esModule", {
|
|
20778
|
+
value: true
|
|
20779
|
+
});
|
|
20780
|
+
ref.useComposeRef = supportRef_1 = ref.supportRef = ref.supportNodeRef = getNodeRef_1 = ref.getNodeRef = ref.fillRef = composeRef_1 = ref.composeRef = void 0;
|
|
20781
|
+
var _typeof2 = _interopRequireDefault(_typeofExports);
|
|
20782
|
+
var _react = React__default;
|
|
20783
|
+
var _reactIs = reactIsExports;
|
|
20784
|
+
var _useMemo = _interopRequireDefault(useMemo$1);
|
|
20785
|
+
var _isFragment = _interopRequireDefault(isFragment$1);
|
|
20786
|
+
var ReactMajorVersion = Number(_react.version.split(".")[0]);
|
|
20787
|
+
var fillRef2 = ref.fillRef = function fillRef3(ref2, node) {
|
|
20788
|
+
if (typeof ref2 === "function") {
|
|
20789
|
+
ref2(node);
|
|
20790
|
+
} else if ((0, _typeof2.default)(ref2) === "object" && ref2 && "current" in ref2) {
|
|
20791
|
+
ref2.current = node;
|
|
20792
|
+
}
|
|
20793
|
+
};
|
|
20794
|
+
var composeRef2 = composeRef_1 = ref.composeRef = function composeRef3() {
|
|
20795
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
20796
|
+
refs[_key] = arguments[_key];
|
|
20797
|
+
}
|
|
20798
|
+
var refList = refs.filter(Boolean);
|
|
20799
|
+
if (refList.length <= 1) {
|
|
20800
|
+
return refList[0];
|
|
20801
|
+
}
|
|
20802
|
+
return function(node) {
|
|
20803
|
+
refs.forEach(function(ref2) {
|
|
20804
|
+
fillRef2(ref2, node);
|
|
20805
|
+
});
|
|
20806
|
+
};
|
|
20807
|
+
};
|
|
20808
|
+
ref.useComposeRef = function useComposeRef() {
|
|
20809
|
+
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
20810
|
+
refs[_key2] = arguments[_key2];
|
|
20811
|
+
}
|
|
20812
|
+
return (0, _useMemo.default)(function() {
|
|
20813
|
+
return composeRef2.apply(void 0, refs);
|
|
20814
|
+
}, refs, function(prev, next) {
|
|
20815
|
+
return prev.length !== next.length || prev.every(function(ref2, i2) {
|
|
20816
|
+
return ref2 !== next[i2];
|
|
20817
|
+
});
|
|
20818
|
+
});
|
|
20819
|
+
};
|
|
20820
|
+
var supportRef2 = supportRef_1 = ref.supportRef = function supportRef3(nodeOrComponent) {
|
|
20821
|
+
var _type$prototype, _nodeOrComponent$prot;
|
|
20822
|
+
if (!nodeOrComponent) {
|
|
20823
|
+
return false;
|
|
20824
|
+
}
|
|
20825
|
+
if (isReactElement(nodeOrComponent) && ReactMajorVersion >= 19) {
|
|
20826
|
+
return true;
|
|
20827
|
+
}
|
|
20828
|
+
var type4 = (0, _reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
|
20829
|
+
if (typeof type4 === "function" && !((_type$prototype = type4.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type4.$$typeof !== _reactIs.ForwardRef) {
|
|
20830
|
+
return false;
|
|
20831
|
+
}
|
|
20832
|
+
if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== _reactIs.ForwardRef) {
|
|
20833
|
+
return false;
|
|
20834
|
+
}
|
|
20835
|
+
return true;
|
|
20836
|
+
};
|
|
20837
|
+
function isReactElement(node) {
|
|
20838
|
+
return /* @__PURE__ */ (0, _react.isValidElement)(node) && !(0, _isFragment.default)(node);
|
|
20839
|
+
}
|
|
20840
|
+
ref.supportNodeRef = function supportNodeRef(node) {
|
|
20841
|
+
return isReactElement(node) && supportRef2(node);
|
|
20842
|
+
};
|
|
20843
|
+
getNodeRef_1 = ref.getNodeRef = function getNodeRef(node) {
|
|
20844
|
+
if (node && isReactElement(node)) {
|
|
20845
|
+
var ele = node;
|
|
20846
|
+
return ele.props.propertyIsEnumerable("ref") ? ele.props.ref : ele.ref;
|
|
20847
|
+
}
|
|
20848
|
+
return null;
|
|
20849
|
+
};
|
|
20850
|
+
class LegacyWrapper extends React$2.Component {
|
|
20167
20851
|
constructor() {
|
|
20168
20852
|
super(...arguments);
|
|
20169
20853
|
this.element = null;
|
|
@@ -20172,7 +20856,7 @@ class Wrapper extends React__default.Component {
|
|
|
20172
20856
|
this.componentDidUpdate();
|
|
20173
20857
|
}
|
|
20174
20858
|
componentDidUpdate() {
|
|
20175
|
-
const node =
|
|
20859
|
+
const node = _default(this);
|
|
20176
20860
|
if (node instanceof Element) {
|
|
20177
20861
|
this.element = node;
|
|
20178
20862
|
} else {
|
|
@@ -20180,9 +20864,33 @@ class Wrapper extends React__default.Component {
|
|
|
20180
20864
|
}
|
|
20181
20865
|
}
|
|
20182
20866
|
render() {
|
|
20183
|
-
return
|
|
20867
|
+
return this.props.children;
|
|
20184
20868
|
}
|
|
20185
20869
|
}
|
|
20870
|
+
const Wrapper = React$2.forwardRef(({
|
|
20871
|
+
children
|
|
20872
|
+
}, ref2) => {
|
|
20873
|
+
const elementRef = React$2.useRef(null);
|
|
20874
|
+
const legacyWrapperRef = React$2.createRef();
|
|
20875
|
+
const child = React$2.Children.only(children);
|
|
20876
|
+
const canUseRef = supportRef_1(children);
|
|
20877
|
+
const getElement = () => {
|
|
20878
|
+
var _a;
|
|
20879
|
+
if (canUseRef) {
|
|
20880
|
+
return getDOM_1(elementRef.current);
|
|
20881
|
+
}
|
|
20882
|
+
return (_a = legacyWrapperRef.current) === null || _a === void 0 ? void 0 : _a.element;
|
|
20883
|
+
};
|
|
20884
|
+
React$2.useImperativeHandle(ref2, () => ({
|
|
20885
|
+
element: getElement()
|
|
20886
|
+
}));
|
|
20887
|
+
const composedRef = composeRef_1(elementRef, getNodeRef_1(child));
|
|
20888
|
+
return canUseRef ? React$2.cloneElement(child, {
|
|
20889
|
+
ref: composedRef
|
|
20890
|
+
}) : React$2.createElement(LegacyWrapper, {
|
|
20891
|
+
ref: legacyWrapperRef
|
|
20892
|
+
}, child);
|
|
20893
|
+
});
|
|
20186
20894
|
const classPrefix$O = `adm-popover`;
|
|
20187
20895
|
const defaultProps$A = {
|
|
20188
20896
|
placement: "top",
|
|
@@ -20191,7 +20899,7 @@ const defaultProps$A = {
|
|
|
20191
20899
|
getContainer: () => document.body,
|
|
20192
20900
|
mode: "light"
|
|
20193
20901
|
};
|
|
20194
|
-
const Popover$1 = forwardRef((p,
|
|
20902
|
+
const Popover$1 = forwardRef((p, ref2) => {
|
|
20195
20903
|
const props = mergeProps(defaultProps$A, p);
|
|
20196
20904
|
const placement = normalizePlacement(props.placement);
|
|
20197
20905
|
const [visible, setVisible] = usePropsValue({
|
|
@@ -20199,7 +20907,7 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20199
20907
|
defaultValue: props.defaultVisible,
|
|
20200
20908
|
onChange: props.onVisibleChange
|
|
20201
20909
|
});
|
|
20202
|
-
useImperativeHandle(
|
|
20910
|
+
useImperativeHandle(ref2, () => ({
|
|
20203
20911
|
show: () => setVisible(true),
|
|
20204
20912
|
hide: () => setVisible(false),
|
|
20205
20913
|
visible
|
|
@@ -20317,9 +21025,9 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20317
21025
|
}, props.children), shouldRender && renderToContainer(props.getContainer, floating));
|
|
20318
21026
|
});
|
|
20319
21027
|
const classPrefix$N = `adm-popover-menu`;
|
|
20320
|
-
const PopoverMenu = forwardRef((props,
|
|
21028
|
+
const PopoverMenu = forwardRef((props, ref2) => {
|
|
20321
21029
|
const innerRef = useRef(null);
|
|
20322
|
-
useImperativeHandle(
|
|
21030
|
+
useImperativeHandle(ref2, () => innerRef.current, []);
|
|
20323
21031
|
const onClick = useCallback((e2) => {
|
|
20324
21032
|
var _a;
|
|
20325
21033
|
const {
|
|
@@ -20330,7 +21038,7 @@ const PopoverMenu = forwardRef((props, ref) => {
|
|
|
20330
21038
|
}
|
|
20331
21039
|
(_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.hide();
|
|
20332
21040
|
}, [props.onAction]);
|
|
20333
|
-
const overlay = useMemo(() => {
|
|
21041
|
+
const overlay = useMemo$2(() => {
|
|
20334
21042
|
const whetherScroll = (props === null || props === void 0 ? void 0 : props.maxCount) && props.actions.length > (props === null || props === void 0 ? void 0 : props.maxCount);
|
|
20335
21043
|
const innerHeight = (props === null || props === void 0 ? void 0 : props.maxCount) && (props === null || props === void 0 ? void 0 : props.maxCount) * 48;
|
|
20336
21044
|
return React__default.createElement("div", {
|
|
@@ -20996,7 +21704,7 @@ const Slide = (props) => {
|
|
|
20996
21704
|
}))));
|
|
20997
21705
|
};
|
|
20998
21706
|
const classPrefix$J = `adm-image-viewer`;
|
|
20999
|
-
const Slides = forwardRef((props,
|
|
21707
|
+
const Slides = forwardRef((props, ref2) => {
|
|
21000
21708
|
const slideWidth = window.innerWidth + convertPx(16);
|
|
21001
21709
|
const [{
|
|
21002
21710
|
x
|
|
@@ -21017,7 +21725,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
21017
21725
|
immediate
|
|
21018
21726
|
});
|
|
21019
21727
|
}
|
|
21020
|
-
useImperativeHandle(
|
|
21728
|
+
useImperativeHandle(ref2, () => ({
|
|
21021
21729
|
swipeTo
|
|
21022
21730
|
}));
|
|
21023
21731
|
const dragLockRef = useRef(false);
|
|
@@ -21112,12 +21820,12 @@ const ImageViewer$1 = (p) => {
|
|
|
21112
21820
|
const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$z), {
|
|
21113
21821
|
defaultIndex: 0
|
|
21114
21822
|
});
|
|
21115
|
-
const MultiImageViewer = forwardRef((p,
|
|
21823
|
+
const MultiImageViewer = forwardRef((p, ref2) => {
|
|
21116
21824
|
var _a, _b, _c;
|
|
21117
21825
|
const props = mergeProps(multiDefaultProps, p);
|
|
21118
21826
|
const [index2, setIndex] = useState(props.defaultIndex);
|
|
21119
21827
|
const slidesRef = useRef(null);
|
|
21120
|
-
useImperativeHandle(
|
|
21828
|
+
useImperativeHandle(ref2, () => ({
|
|
21121
21829
|
swipeTo: (index3, immediate) => {
|
|
21122
21830
|
var _a2;
|
|
21123
21831
|
setIndex(index3);
|
|
@@ -21232,7 +21940,7 @@ const PreviewItem = (props) => {
|
|
|
21232
21940
|
onDelete,
|
|
21233
21941
|
imageFit
|
|
21234
21942
|
} = props;
|
|
21235
|
-
const src = useMemo(() => {
|
|
21943
|
+
const src = useMemo$2(() => {
|
|
21236
21944
|
if (url2) {
|
|
21237
21945
|
return url2;
|
|
21238
21946
|
}
|
|
@@ -21290,7 +21998,7 @@ const defaultProps$x = {
|
|
|
21290
21998
|
showFailed: true,
|
|
21291
21999
|
imageFit: "cover"
|
|
21292
22000
|
};
|
|
21293
|
-
const ImageUploader = forwardRef((p,
|
|
22001
|
+
const ImageUploader = forwardRef((p, ref2) => {
|
|
21294
22002
|
const {
|
|
21295
22003
|
locale
|
|
21296
22004
|
} = useConfig();
|
|
@@ -21493,7 +22201,7 @@ const ImageUploader = forwardRef((p, ref) => {
|
|
|
21493
22201
|
className: `${classPrefix$F}-input`,
|
|
21494
22202
|
onChange
|
|
21495
22203
|
})));
|
|
21496
|
-
useImperativeHandle(
|
|
22204
|
+
useImperativeHandle(ref2, () => ({
|
|
21497
22205
|
get nativeElement() {
|
|
21498
22206
|
return inputRef.current;
|
|
21499
22207
|
}
|
|
@@ -21583,7 +22291,7 @@ const classPrefix$D = `adm-index-bar`;
|
|
|
21583
22291
|
const defaultProps$w = {
|
|
21584
22292
|
sticky: true
|
|
21585
22293
|
};
|
|
21586
|
-
const IndexBar = forwardRef((p,
|
|
22294
|
+
const IndexBar = forwardRef((p, ref2) => {
|
|
21587
22295
|
const props = mergeProps(defaultProps$w, p);
|
|
21588
22296
|
const titleHeight = convertPx(35);
|
|
21589
22297
|
const bodyRef = useRef(null);
|
|
@@ -21613,7 +22321,7 @@ const IndexBar = forwardRef((p, ref) => {
|
|
|
21613
22321
|
const firstItem = indexItems[0];
|
|
21614
22322
|
return firstItem ? firstItem.index : null;
|
|
21615
22323
|
});
|
|
21616
|
-
useImperativeHandle(
|
|
22324
|
+
useImperativeHandle(ref2, () => ({
|
|
21617
22325
|
scrollTo
|
|
21618
22326
|
}));
|
|
21619
22327
|
function scrollTo(index2) {
|
|
@@ -21820,7 +22528,7 @@ const defaultProps$u = {
|
|
|
21820
22528
|
clearIcon: React__default.createElement(CloseCircleFill, null),
|
|
21821
22529
|
onlyShowClearWhenFocus: true
|
|
21822
22530
|
};
|
|
21823
|
-
const Input = forwardRef((props,
|
|
22531
|
+
const Input = forwardRef((props, ref2) => {
|
|
21824
22532
|
const {
|
|
21825
22533
|
locale,
|
|
21826
22534
|
input: componentConfig = {}
|
|
@@ -21836,7 +22544,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
21836
22544
|
nativeInputRef,
|
|
21837
22545
|
enterKeyHint: mergedProps.enterKeyHint
|
|
21838
22546
|
});
|
|
21839
|
-
useImperativeHandle(
|
|
22547
|
+
useImperativeHandle(ref2, () => ({
|
|
21840
22548
|
clear: () => {
|
|
21841
22549
|
setValue("");
|
|
21842
22550
|
},
|
|
@@ -22368,7 +23076,7 @@ const NumberKeyboard = (p) => {
|
|
|
22368
23076
|
locale
|
|
22369
23077
|
} = useConfig();
|
|
22370
23078
|
const keyboardRef = useRef(null);
|
|
22371
|
-
const keys2 = useMemo(() => {
|
|
23079
|
+
const keys2 = useMemo$2(() => {
|
|
22372
23080
|
const defaultKeys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
22373
23081
|
const keyList = randomOrder ? shuffle(defaultKeys) : defaultKeys;
|
|
22374
23082
|
const customKeys = Array.isArray(customKey) ? customKey : [customKey];
|
|
@@ -22550,7 +23258,7 @@ const defaultProps$o = {
|
|
|
22550
23258
|
caret: true,
|
|
22551
23259
|
inputMode: "numeric"
|
|
22552
23260
|
};
|
|
22553
|
-
const PasscodeInput = forwardRef((p,
|
|
23261
|
+
const PasscodeInput = forwardRef((p, ref2) => {
|
|
22554
23262
|
const props = mergeProps(defaultProps$o, p);
|
|
22555
23263
|
const cellLength = props.length > 0 && props.length < Infinity ? Math.floor(props.length) : defaultProps$o.length;
|
|
22556
23264
|
const {
|
|
@@ -22594,7 +23302,7 @@ const PasscodeInput = forwardRef((p, ref) => {
|
|
|
22594
23302
|
setFocused(false);
|
|
22595
23303
|
(_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
22596
23304
|
};
|
|
22597
|
-
useImperativeHandle(
|
|
23305
|
+
useImperativeHandle(ref2, () => ({
|
|
22598
23306
|
focus: () => {
|
|
22599
23307
|
var _a;
|
|
22600
23308
|
return (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -23206,7 +23914,7 @@ const defaultProps$g = {
|
|
|
23206
23914
|
defaultValue: "",
|
|
23207
23915
|
clearOnCancel: true
|
|
23208
23916
|
};
|
|
23209
|
-
const SearchBar = forwardRef((props,
|
|
23917
|
+
const SearchBar = forwardRef((props, ref2) => {
|
|
23210
23918
|
const {
|
|
23211
23919
|
locale,
|
|
23212
23920
|
searchBar: componentConfig = {}
|
|
@@ -23219,7 +23927,7 @@ const SearchBar = forwardRef((props, ref) => {
|
|
|
23219
23927
|
const [hasFocus, setHasFocus] = useState(false);
|
|
23220
23928
|
const inputRef = useRef(null);
|
|
23221
23929
|
const composingRef = useRef(false);
|
|
23222
|
-
useImperativeHandle(
|
|
23930
|
+
useImperativeHandle(ref2, () => ({
|
|
23223
23931
|
clear: () => {
|
|
23224
23932
|
var _a;
|
|
23225
23933
|
return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.clear();
|
|
@@ -23316,7 +24024,7 @@ const SearchBar = forwardRef((props, ref) => {
|
|
|
23316
24024
|
})), renderCancelButton()));
|
|
23317
24025
|
});
|
|
23318
24026
|
function omit(obj, fields) {
|
|
23319
|
-
var clone =
|
|
24027
|
+
var clone = Object.assign({}, obj);
|
|
23320
24028
|
if (Array.isArray(fields)) {
|
|
23321
24029
|
fields.forEach(function(key) {
|
|
23322
24030
|
delete clone[key];
|
|
@@ -23327,16 +24035,27 @@ function omit(obj, fields) {
|
|
|
23327
24035
|
function isDOM(node) {
|
|
23328
24036
|
return node instanceof HTMLElement || node instanceof SVGElement;
|
|
23329
24037
|
}
|
|
23330
|
-
function
|
|
24038
|
+
function getDOM(node) {
|
|
24039
|
+
if (node && _typeof(node) === "object" && isDOM(node.nativeElement)) {
|
|
24040
|
+
return node.nativeElement;
|
|
24041
|
+
}
|
|
23331
24042
|
if (isDOM(node)) {
|
|
23332
24043
|
return node;
|
|
23333
24044
|
}
|
|
24045
|
+
return null;
|
|
24046
|
+
}
|
|
24047
|
+
function findDOMNode(node) {
|
|
24048
|
+
var domNode = getDOM(node);
|
|
24049
|
+
if (domNode) {
|
|
24050
|
+
return domNode;
|
|
24051
|
+
}
|
|
23334
24052
|
if (node instanceof React__default.Component) {
|
|
23335
|
-
|
|
24053
|
+
var _ReactDOM$findDOMNode;
|
|
24054
|
+
return (_ReactDOM$findDOMNode = ReactDOM__default.findDOMNode) === null || _ReactDOM$findDOMNode === void 0 ? void 0 : _ReactDOM$findDOMNode.call(ReactDOM__default, node);
|
|
23336
24055
|
}
|
|
23337
24056
|
return null;
|
|
23338
24057
|
}
|
|
23339
|
-
var Context = /* @__PURE__ */ React$
|
|
24058
|
+
var Context = /* @__PURE__ */ React$2.createContext({});
|
|
23340
24059
|
var DomWrapper = /* @__PURE__ */ function(_React$Component) {
|
|
23341
24060
|
_inherits(DomWrapper2, _React$Component);
|
|
23342
24061
|
var _super = _createSuper(DomWrapper2);
|
|
@@ -23351,7 +24070,7 @@ var DomWrapper = /* @__PURE__ */ function(_React$Component) {
|
|
|
23351
24070
|
}
|
|
23352
24071
|
}]);
|
|
23353
24072
|
return DomWrapper2;
|
|
23354
|
-
}(React$
|
|
24073
|
+
}(React$2.Component);
|
|
23355
24074
|
var STATUS_NONE = "none";
|
|
23356
24075
|
var STATUS_APPEAR = "appear";
|
|
23357
24076
|
var STATUS_ENTER = "enter";
|
|
@@ -23419,7 +24138,7 @@ var transitionEndName = internalTransitionEndName || "transitionend";
|
|
|
23419
24138
|
function getTransitionName(transitionName, transitionType) {
|
|
23420
24139
|
if (!transitionName)
|
|
23421
24140
|
return null;
|
|
23422
|
-
if (_typeof
|
|
24141
|
+
if (_typeof(transitionName) === "object") {
|
|
23423
24142
|
var type4 = transitionType.replace(/-\w/g, function(match) {
|
|
23424
24143
|
return match[1].toUpperCase();
|
|
23425
24144
|
});
|
|
@@ -23431,7 +24150,7 @@ const useDomMotionEvents = function(callback) {
|
|
|
23431
24150
|
var cacheElementRef = useRef();
|
|
23432
24151
|
var callbackRef = useRef(callback);
|
|
23433
24152
|
callbackRef.current = callback;
|
|
23434
|
-
var onInternalMotionEnd = React$
|
|
24153
|
+
var onInternalMotionEnd = React$2.useCallback(function(event) {
|
|
23435
24154
|
callbackRef.current(event);
|
|
23436
24155
|
}, []);
|
|
23437
24156
|
function removeMotionEvents(element) {
|
|
@@ -23450,7 +24169,7 @@ const useDomMotionEvents = function(callback) {
|
|
|
23450
24169
|
cacheElementRef.current = element;
|
|
23451
24170
|
}
|
|
23452
24171
|
}
|
|
23453
|
-
React$
|
|
24172
|
+
React$2.useEffect(function() {
|
|
23454
24173
|
return function() {
|
|
23455
24174
|
removeMotionEvents(cacheElementRef.current);
|
|
23456
24175
|
};
|
|
@@ -23506,7 +24225,7 @@ wrapperRaf.cancel = function(id) {
|
|
|
23506
24225
|
};
|
|
23507
24226
|
}
|
|
23508
24227
|
const useNextFrame = function() {
|
|
23509
|
-
var nextFrameRef = React$
|
|
24228
|
+
var nextFrameRef = React$2.useRef(null);
|
|
23510
24229
|
function cancelNextFrame() {
|
|
23511
24230
|
wrapperRaf.cancel(nextFrameRef.current);
|
|
23512
24231
|
}
|
|
@@ -23526,7 +24245,7 @@ const useNextFrame = function() {
|
|
|
23526
24245
|
});
|
|
23527
24246
|
nextFrameRef.current = nextFrameId;
|
|
23528
24247
|
}
|
|
23529
|
-
React$
|
|
24248
|
+
React$2.useEffect(function() {
|
|
23530
24249
|
return function() {
|
|
23531
24250
|
cancelNextFrame();
|
|
23532
24251
|
};
|
|
@@ -23570,7 +24289,7 @@ const useStepQueue = function(status, prepareOnly, callback) {
|
|
|
23570
24289
|
}
|
|
23571
24290
|
}
|
|
23572
24291
|
}, [status, step]);
|
|
23573
|
-
React$
|
|
24292
|
+
React$2.useEffect(function() {
|
|
23574
24293
|
return function() {
|
|
23575
24294
|
cancelNextFrame();
|
|
23576
24295
|
};
|
|
@@ -23624,7 +24343,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
23624
24343
|
return {};
|
|
23625
24344
|
}
|
|
23626
24345
|
};
|
|
23627
|
-
var eventHandlers = React$
|
|
24346
|
+
var eventHandlers = React$2.useMemo(function() {
|
|
23628
24347
|
return getEventHandlers(status);
|
|
23629
24348
|
}, [status]);
|
|
23630
24349
|
var _useStepQueue = useStepQueue(status, !supportMotion, function(newStep) {
|
|
@@ -23695,7 +24414,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
23695
24414
|
clearTimeout(deadlineRef.current);
|
|
23696
24415
|
};
|
|
23697
24416
|
}, []);
|
|
23698
|
-
var firstMountChangeRef = React$
|
|
24417
|
+
var firstMountChangeRef = React$2.useRef(false);
|
|
23699
24418
|
useEffect(function() {
|
|
23700
24419
|
if (asyncVisible) {
|
|
23701
24420
|
firstMountChangeRef.current = true;
|
|
@@ -23717,15 +24436,15 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
23717
24436
|
}
|
|
23718
24437
|
function genCSSMotion(config2) {
|
|
23719
24438
|
var transitionSupport = config2;
|
|
23720
|
-
if (_typeof
|
|
24439
|
+
if (_typeof(config2) === "object") {
|
|
23721
24440
|
transitionSupport = config2.transitionSupport;
|
|
23722
24441
|
}
|
|
23723
24442
|
function isSupportTransition(props, contextMotion) {
|
|
23724
24443
|
return !!(props.motionName && transitionSupport && contextMotion !== false);
|
|
23725
24444
|
}
|
|
23726
|
-
var CSSMotion2 = /* @__PURE__ */ React$
|
|
24445
|
+
var CSSMotion2 = /* @__PURE__ */ React$2.forwardRef(function(props, ref2) {
|
|
23727
24446
|
var _props$visible = props.visible, visible = _props$visible === void 0 ? true : _props$visible, _props$removeOnLeave = props.removeOnLeave, removeOnLeave = _props$removeOnLeave === void 0 ? true : _props$removeOnLeave, forceRender = props.forceRender, children = props.children, motionName = props.motionName, leavedClassName = props.leavedClassName, eventProps = props.eventProps;
|
|
23728
|
-
var _React$useContext = React$
|
|
24447
|
+
var _React$useContext = React$2.useContext(Context), contextMotion = _React$useContext.motion;
|
|
23729
24448
|
var supportMotion = isSupportTransition(props, contextMotion);
|
|
23730
24449
|
var nodeRef = useRef();
|
|
23731
24450
|
var wrapperNodeRef = useRef();
|
|
@@ -23737,14 +24456,14 @@ function genCSSMotion(config2) {
|
|
|
23737
24456
|
}
|
|
23738
24457
|
}
|
|
23739
24458
|
var _useStatus = useStatus(supportMotion, visible, getDomElement, props), _useStatus2 = _slicedToArray(_useStatus, 4), status = _useStatus2[0], statusStep = _useStatus2[1], statusStyle = _useStatus2[2], mergedVisible = _useStatus2[3];
|
|
23740
|
-
var renderedRef = React$
|
|
24459
|
+
var renderedRef = React$2.useRef(mergedVisible);
|
|
23741
24460
|
if (mergedVisible) {
|
|
23742
24461
|
renderedRef.current = true;
|
|
23743
24462
|
}
|
|
23744
|
-
var setNodeRef = React$
|
|
24463
|
+
var setNodeRef = React$2.useCallback(function(node) {
|
|
23745
24464
|
nodeRef.current = node;
|
|
23746
|
-
fillRef(
|
|
23747
|
-
}, [
|
|
24465
|
+
fillRef$1(ref2, node);
|
|
24466
|
+
}, [ref2]);
|
|
23748
24467
|
var motionChildren;
|
|
23749
24468
|
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
23750
24469
|
visible
|
|
@@ -23783,15 +24502,15 @@ function genCSSMotion(config2) {
|
|
|
23783
24502
|
style: statusStyle
|
|
23784
24503
|
}), setNodeRef);
|
|
23785
24504
|
}
|
|
23786
|
-
if (/* @__PURE__ */ React$
|
|
24505
|
+
if (/* @__PURE__ */ React$2.isValidElement(motionChildren) && supportRef$1(motionChildren)) {
|
|
23787
24506
|
var _ref = motionChildren, originNodeRef = _ref.ref;
|
|
23788
24507
|
if (!originNodeRef) {
|
|
23789
|
-
motionChildren = /* @__PURE__ */ React$
|
|
24508
|
+
motionChildren = /* @__PURE__ */ React$2.cloneElement(motionChildren, {
|
|
23790
24509
|
ref: setNodeRef
|
|
23791
24510
|
});
|
|
23792
24511
|
}
|
|
23793
24512
|
}
|
|
23794
|
-
return /* @__PURE__ */ React$
|
|
24513
|
+
return /* @__PURE__ */ React$2.createElement(DomWrapper, {
|
|
23795
24514
|
ref: wrapperNodeRef
|
|
23796
24515
|
}, motionChildren);
|
|
23797
24516
|
});
|
|
@@ -23805,7 +24524,7 @@ var STATUS_REMOVE = "remove";
|
|
|
23805
24524
|
var STATUS_REMOVED = "removed";
|
|
23806
24525
|
function wrapKeyToObject(key) {
|
|
23807
24526
|
var keyObj;
|
|
23808
|
-
if (key && _typeof
|
|
24527
|
+
if (key && _typeof(key) === "object" && "key" in key) {
|
|
23809
24528
|
keyObj = key;
|
|
23810
24529
|
} else {
|
|
23811
24530
|
keyObj = {
|
|
@@ -23925,17 +24644,17 @@ function genCSSMotionList(transitionSupport) {
|
|
|
23925
24644
|
var _this2 = this;
|
|
23926
24645
|
var keyEntities = this.state.keyEntities;
|
|
23927
24646
|
var _this$props = this.props, component = _this$props.component, children = _this$props.children, _onVisibleChanged = _this$props.onVisibleChanged, onAllRemoved = _this$props.onAllRemoved, restProps = _objectWithoutProperties(_this$props, _excluded$1);
|
|
23928
|
-
var Component = component || React$
|
|
24647
|
+
var Component = component || React$2.Fragment;
|
|
23929
24648
|
var motionProps = {};
|
|
23930
24649
|
MOTION_PROP_NAMES.forEach(function(prop) {
|
|
23931
24650
|
motionProps[prop] = restProps[prop];
|
|
23932
24651
|
delete restProps[prop];
|
|
23933
24652
|
});
|
|
23934
24653
|
delete restProps.keys;
|
|
23935
|
-
return /* @__PURE__ */ React$
|
|
24654
|
+
return /* @__PURE__ */ React$2.createElement(Component, restProps, keyEntities.map(function(_ref2, index2) {
|
|
23936
24655
|
var status = _ref2.status, eventProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
23937
24656
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
23938
|
-
return /* @__PURE__ */ React$
|
|
24657
|
+
return /* @__PURE__ */ React$2.createElement(CSSMotion$1, _extends$1({}, motionProps, {
|
|
23939
24658
|
key: eventProps.key,
|
|
23940
24659
|
visible,
|
|
23941
24660
|
eventProps,
|
|
@@ -23950,10 +24669,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
23950
24669
|
}
|
|
23951
24670
|
}
|
|
23952
24671
|
}
|
|
23953
|
-
}), function(props,
|
|
24672
|
+
}), function(props, ref2) {
|
|
23954
24673
|
return children(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
23955
24674
|
index: index2
|
|
23956
|
-
}),
|
|
24675
|
+
}), ref2);
|
|
23957
24676
|
});
|
|
23958
24677
|
}));
|
|
23959
24678
|
}
|
|
@@ -23979,7 +24698,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
23979
24698
|
}
|
|
23980
24699
|
}]);
|
|
23981
24700
|
return CSSMotionList2;
|
|
23982
|
-
}(React$
|
|
24701
|
+
}(React$2.Component);
|
|
23983
24702
|
_defineProperty(CSSMotionList, "defaultProps", {
|
|
23984
24703
|
component: "div"
|
|
23985
24704
|
});
|
|
@@ -23998,16 +24717,16 @@ var toPX = function toPX2(value) {
|
|
|
23998
24717
|
};
|
|
23999
24718
|
function MotionThumb(props) {
|
|
24000
24719
|
var prefixCls = props.prefixCls, containerRef = props.containerRef, value = props.value, getValueIndex = props.getValueIndex, motionName = props.motionName, onMotionStart = props.onMotionStart, onMotionEnd = props.onMotionEnd, direction = props.direction;
|
|
24001
|
-
var thumbRef = React$
|
|
24002
|
-
var _React$useState = React$
|
|
24720
|
+
var thumbRef = React$2.useRef(null);
|
|
24721
|
+
var _React$useState = React$2.useState(value), _React$useState2 = _slicedToArray(_React$useState, 2), prevValue = _React$useState2[0], setPrevValue = _React$useState2[1];
|
|
24003
24722
|
var findValueElement = function findValueElement2(val) {
|
|
24004
24723
|
var _containerRef$current;
|
|
24005
24724
|
var index2 = getValueIndex(val);
|
|
24006
24725
|
var ele = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.querySelectorAll(".".concat(prefixCls, "-item"))[index2];
|
|
24007
24726
|
return (ele === null || ele === void 0 ? void 0 : ele.offsetParent) && ele;
|
|
24008
24727
|
};
|
|
24009
|
-
var _React$useState3 = React$
|
|
24010
|
-
var _React$useState5 = React$
|
|
24728
|
+
var _React$useState3 = React$2.useState(null), _React$useState4 = _slicedToArray(_React$useState3, 2), prevStyle = _React$useState4[0], setPrevStyle = _React$useState4[1];
|
|
24729
|
+
var _React$useState5 = React$2.useState(null), _React$useState6 = _slicedToArray(_React$useState5, 2), nextStyle = _React$useState6[0], setNextStyle = _React$useState6[1];
|
|
24011
24730
|
useLayoutEffect(function() {
|
|
24012
24731
|
if (prevValue !== value) {
|
|
24013
24732
|
var prev = findValueElement(prevValue);
|
|
@@ -24024,10 +24743,10 @@ function MotionThumb(props) {
|
|
|
24024
24743
|
}
|
|
24025
24744
|
}
|
|
24026
24745
|
}, [value]);
|
|
24027
|
-
var thumbStart = React$
|
|
24746
|
+
var thumbStart = React$2.useMemo(function() {
|
|
24028
24747
|
return direction === "rtl" ? toPX(-(prevStyle === null || prevStyle === void 0 ? void 0 : prevStyle.right)) : toPX(prevStyle === null || prevStyle === void 0 ? void 0 : prevStyle.left);
|
|
24029
24748
|
}, [direction, prevStyle]);
|
|
24030
|
-
var thumbActive = React$
|
|
24749
|
+
var thumbActive = React$2.useMemo(function() {
|
|
24031
24750
|
return direction === "rtl" ? toPX(-(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.right)) : toPX(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.left);
|
|
24032
24751
|
}, [direction, nextStyle]);
|
|
24033
24752
|
var onAppearStart = function onAppearStart2() {
|
|
@@ -24050,14 +24769,14 @@ function MotionThumb(props) {
|
|
|
24050
24769
|
if (!prevStyle || !nextStyle) {
|
|
24051
24770
|
return null;
|
|
24052
24771
|
}
|
|
24053
|
-
return /* @__PURE__ */ React$
|
|
24772
|
+
return /* @__PURE__ */ React$2.createElement(CSSMotion, {
|
|
24054
24773
|
visible: true,
|
|
24055
24774
|
motionName,
|
|
24056
24775
|
motionAppear: true,
|
|
24057
24776
|
onAppearStart,
|
|
24058
24777
|
onAppearActive,
|
|
24059
24778
|
onVisibleChanged
|
|
24060
|
-
}, function(_ref,
|
|
24779
|
+
}, function(_ref, ref2) {
|
|
24061
24780
|
var motionClassName = _ref.className, motionStyle = _ref.style;
|
|
24062
24781
|
var mergedStyle = _objectSpread2(_objectSpread2({}, motionStyle), {}, {
|
|
24063
24782
|
"--thumb-start-left": thumbStart,
|
|
@@ -24066,11 +24785,11 @@ function MotionThumb(props) {
|
|
|
24066
24785
|
"--thumb-active-width": toPX(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.width)
|
|
24067
24786
|
});
|
|
24068
24787
|
var motionProps = {
|
|
24069
|
-
ref: composeRef(thumbRef,
|
|
24788
|
+
ref: composeRef$1(thumbRef, ref2),
|
|
24070
24789
|
style: mergedStyle,
|
|
24071
24790
|
className: classNames("".concat(prefixCls, "-thumb"), motionClassName)
|
|
24072
24791
|
};
|
|
24073
|
-
return /* @__PURE__ */ React$
|
|
24792
|
+
return /* @__PURE__ */ React$2.createElement("div", motionProps);
|
|
24074
24793
|
});
|
|
24075
24794
|
}
|
|
24076
24795
|
var _excluded = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
|
|
@@ -24078,14 +24797,14 @@ function getValidTitle(option) {
|
|
|
24078
24797
|
if (typeof option.title !== "undefined") {
|
|
24079
24798
|
return option.title;
|
|
24080
24799
|
}
|
|
24081
|
-
if (_typeof
|
|
24800
|
+
if (_typeof(option.label) !== "object") {
|
|
24082
24801
|
var _option$label;
|
|
24083
24802
|
return (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toString();
|
|
24084
24803
|
}
|
|
24085
24804
|
}
|
|
24086
24805
|
function normalizeOptions(options) {
|
|
24087
24806
|
return options.map(function(option) {
|
|
24088
|
-
if (_typeof
|
|
24807
|
+
if (_typeof(option) === "object" && option !== null) {
|
|
24089
24808
|
var validTitle = getValidTitle(option);
|
|
24090
24809
|
return _objectSpread2(_objectSpread2({}, option), {}, {
|
|
24091
24810
|
title: validTitle
|
|
@@ -24106,36 +24825,36 @@ var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
|
|
|
24106
24825
|
}
|
|
24107
24826
|
onChange(event, value);
|
|
24108
24827
|
};
|
|
24109
|
-
return /* @__PURE__ */ React$
|
|
24828
|
+
return /* @__PURE__ */ React$2.createElement("label", {
|
|
24110
24829
|
className: classNames(className, _defineProperty({}, "".concat(prefixCls, "-item-disabled"), disabled))
|
|
24111
|
-
}, /* @__PURE__ */ React$
|
|
24830
|
+
}, /* @__PURE__ */ React$2.createElement("input", {
|
|
24112
24831
|
className: "".concat(prefixCls, "-item-input"),
|
|
24113
24832
|
type: "radio",
|
|
24114
24833
|
disabled,
|
|
24115
24834
|
checked,
|
|
24116
24835
|
onChange: handleChange
|
|
24117
|
-
}), /* @__PURE__ */ React$
|
|
24836
|
+
}), /* @__PURE__ */ React$2.createElement("div", {
|
|
24118
24837
|
className: "".concat(prefixCls, "-item-label"),
|
|
24119
24838
|
title,
|
|
24120
24839
|
role: "option",
|
|
24121
24840
|
"aria-selected": checked
|
|
24122
24841
|
}, label));
|
|
24123
24842
|
};
|
|
24124
|
-
var Segmented$1 = /* @__PURE__ */ React$
|
|
24843
|
+
var Segmented$1 = /* @__PURE__ */ React$2.forwardRef(function(props, ref2) {
|
|
24125
24844
|
var _segmentedOptions$, _classNames2;
|
|
24126
24845
|
var _props$prefixCls = props.prefixCls, prefixCls = _props$prefixCls === void 0 ? "rc-segmented" : _props$prefixCls, direction = props.direction, _props$options = props.options, options = _props$options === void 0 ? [] : _props$options, disabled = props.disabled, defaultValue = props.defaultValue, value = props.value, onChange = props.onChange, _props$className = props.className, className = _props$className === void 0 ? "" : _props$className, _props$motionName = props.motionName, motionName = _props$motionName === void 0 ? "thumb-motion" : _props$motionName, restProps = _objectWithoutProperties(props, _excluded);
|
|
24127
|
-
var containerRef = React$
|
|
24128
|
-
var mergedRef = React$
|
|
24129
|
-
return composeRef(containerRef,
|
|
24130
|
-
}, [containerRef,
|
|
24131
|
-
var segmentedOptions = React$
|
|
24846
|
+
var containerRef = React$2.useRef(null);
|
|
24847
|
+
var mergedRef = React$2.useMemo(function() {
|
|
24848
|
+
return composeRef$1(containerRef, ref2);
|
|
24849
|
+
}, [containerRef, ref2]);
|
|
24850
|
+
var segmentedOptions = React$2.useMemo(function() {
|
|
24132
24851
|
return normalizeOptions(options);
|
|
24133
24852
|
}, [options]);
|
|
24134
24853
|
var _useMergedState = useMergedState((_segmentedOptions$ = segmentedOptions[0]) === null || _segmentedOptions$ === void 0 ? void 0 : _segmentedOptions$.value, {
|
|
24135
24854
|
value,
|
|
24136
24855
|
defaultValue
|
|
24137
24856
|
}), _useMergedState2 = _slicedToArray(_useMergedState, 2), rawValue = _useMergedState2[0], setRawValue = _useMergedState2[1];
|
|
24138
|
-
var _React$useState = React$
|
|
24857
|
+
var _React$useState = React$2.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), thumbShow = _React$useState2[0], setThumbShow = _React$useState2[1];
|
|
24139
24858
|
var handleChange = function handleChange2(event, val) {
|
|
24140
24859
|
if (disabled) {
|
|
24141
24860
|
return;
|
|
@@ -24144,15 +24863,15 @@ var Segmented$1 = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
|
|
|
24144
24863
|
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
24145
24864
|
};
|
|
24146
24865
|
var divProps = omit(restProps, ["children"]);
|
|
24147
|
-
return /* @__PURE__ */ React$
|
|
24866
|
+
return /* @__PURE__ */ React$2.createElement("div", _extends$1({
|
|
24148
24867
|
role: "listbox",
|
|
24149
24868
|
"aria-label": "segmented control"
|
|
24150
24869
|
}, divProps, {
|
|
24151
24870
|
className: classNames(prefixCls, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), className),
|
|
24152
24871
|
ref: mergedRef
|
|
24153
|
-
}), /* @__PURE__ */ React$
|
|
24872
|
+
}), /* @__PURE__ */ React$2.createElement("div", {
|
|
24154
24873
|
className: "".concat(prefixCls, "-group")
|
|
24155
|
-
}, /* @__PURE__ */ React$
|
|
24874
|
+
}, /* @__PURE__ */ React$2.createElement(MotionThumb, {
|
|
24156
24875
|
prefixCls,
|
|
24157
24876
|
value: rawValue,
|
|
24158
24877
|
containerRef,
|
|
@@ -24170,7 +24889,7 @@ var Segmented$1 = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
|
|
|
24170
24889
|
setThumbShow(false);
|
|
24171
24890
|
}
|
|
24172
24891
|
}), segmentedOptions.map(function(segmentedOption) {
|
|
24173
|
-
return /* @__PURE__ */ React$
|
|
24892
|
+
return /* @__PURE__ */ React$2.createElement(InternalSegmentedOption, _extends$1({}, segmentedOption, {
|
|
24174
24893
|
key: segmentedOption.value,
|
|
24175
24894
|
prefixCls,
|
|
24176
24895
|
className: classNames(segmentedOption.className, "".concat(prefixCls, "-item"), _defineProperty({}, "".concat(prefixCls, "-item-selected"), segmentedOption.value === rawValue && !thumbShow)),
|
|
@@ -24188,7 +24907,7 @@ function isSegmentedLabeledOptionWithIcon(option) {
|
|
|
24188
24907
|
return typeof option === "object" && !!(option === null || option === void 0 ? void 0 : option.icon);
|
|
24189
24908
|
}
|
|
24190
24909
|
const classPrefix$l = `adm-segmented`;
|
|
24191
|
-
const Segmented = React$
|
|
24910
|
+
const Segmented = React$2.forwardRef((props, ref2) => {
|
|
24192
24911
|
const {
|
|
24193
24912
|
prefixCls: customizePrefixCls,
|
|
24194
24913
|
className,
|
|
@@ -24198,26 +24917,26 @@ const Segmented = React$1.forwardRef((props, ref) => {
|
|
|
24198
24917
|
props,
|
|
24199
24918
|
["prefixCls", "className", "block", "options"]
|
|
24200
24919
|
);
|
|
24201
|
-
const extendedOptions = React$
|
|
24920
|
+
const extendedOptions = React$2.useMemo(() => options.map((option) => {
|
|
24202
24921
|
if (isSegmentedLabeledOptionWithIcon(option)) {
|
|
24203
24922
|
const {
|
|
24204
24923
|
icon,
|
|
24205
24924
|
label
|
|
24206
24925
|
} = option, restOption = __rest(option, ["icon", "label"]);
|
|
24207
24926
|
return Object.assign(Object.assign({}, restOption), {
|
|
24208
|
-
label: React$
|
|
24927
|
+
label: React$2.createElement(React$2.Fragment, null, React$2.createElement("span", {
|
|
24209
24928
|
className: `${classPrefix$l}-item-icon`
|
|
24210
|
-
}, icon), label && React$
|
|
24929
|
+
}, icon), label && React$2.createElement("span", null, label))
|
|
24211
24930
|
});
|
|
24212
24931
|
}
|
|
24213
24932
|
return option;
|
|
24214
24933
|
}), [options, classPrefix$l]);
|
|
24215
|
-
return withNativeProps(props, React$
|
|
24934
|
+
return withNativeProps(props, React$2.createElement(TypedSegmented, Object.assign({}, restProps, {
|
|
24216
24935
|
className: classNames(className, {
|
|
24217
24936
|
[`${classPrefix$l}-block`]: block
|
|
24218
24937
|
}),
|
|
24219
24938
|
options: extendedOptions,
|
|
24220
|
-
ref,
|
|
24939
|
+
ref: ref2,
|
|
24221
24940
|
prefixCls: classPrefix$l
|
|
24222
24941
|
})));
|
|
24223
24942
|
});
|
|
@@ -24992,7 +25711,7 @@ const Slider = (p) => {
|
|
|
24992
25711
|
const trackRef = useRef(null);
|
|
24993
25712
|
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
24994
25713
|
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
24995
|
-
const pointList = useMemo(() => {
|
|
25714
|
+
const pointList = useMemo$2(() => {
|
|
24996
25715
|
if (marks) {
|
|
24997
25716
|
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24998
25717
|
} else if (ticks) {
|
|
@@ -25113,7 +25832,7 @@ const defaultProps$d = {
|
|
|
25113
25832
|
disabled: false,
|
|
25114
25833
|
allowEmpty: false
|
|
25115
25834
|
};
|
|
25116
|
-
function InnerStepper(p,
|
|
25835
|
+
function InnerStepper(p, ref2) {
|
|
25117
25836
|
const props = mergeProps(defaultProps$d, p);
|
|
25118
25837
|
const {
|
|
25119
25838
|
defaultValue = 0,
|
|
@@ -25132,7 +25851,7 @@ function InnerStepper(p, ref) {
|
|
|
25132
25851
|
const {
|
|
25133
25852
|
locale
|
|
25134
25853
|
} = useConfig();
|
|
25135
|
-
useImperativeHandle(
|
|
25854
|
+
useImperativeHandle(ref2, () => ({
|
|
25136
25855
|
focus: () => {
|
|
25137
25856
|
var _a;
|
|
25138
25857
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -25377,13 +26096,13 @@ const defaultProps$b = {
|
|
|
25377
26096
|
closeOnAction: true,
|
|
25378
26097
|
stopPropagation: []
|
|
25379
26098
|
};
|
|
25380
|
-
const SwipeAction = forwardRef((p,
|
|
26099
|
+
const SwipeAction = forwardRef((p, ref2) => {
|
|
25381
26100
|
const props = mergeProps(defaultProps$b, p);
|
|
25382
26101
|
const rootRef = useRef(null);
|
|
25383
26102
|
const leftRef = useRef(null);
|
|
25384
26103
|
const rightRef = useRef(null);
|
|
25385
|
-
function getWidth(
|
|
25386
|
-
const element =
|
|
26104
|
+
function getWidth(ref3) {
|
|
26105
|
+
const element = ref3.current;
|
|
25387
26106
|
if (!element)
|
|
25388
26107
|
return 0;
|
|
25389
26108
|
return element.offsetWidth;
|
|
@@ -25473,7 +26192,7 @@ const SwipeAction = forwardRef((p, ref) => {
|
|
|
25473
26192
|
forceCancelDrag();
|
|
25474
26193
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
25475
26194
|
};
|
|
25476
|
-
useImperativeHandle(
|
|
26195
|
+
useImperativeHandle(ref2, () => ({
|
|
25477
26196
|
show: (side = "right") => {
|
|
25478
26197
|
var _a;
|
|
25479
26198
|
if (side === "right") {
|
|
@@ -25577,11 +26296,11 @@ const SwiperItem = (props) => {
|
|
|
25577
26296
|
};
|
|
25578
26297
|
function useRefState(initialState) {
|
|
25579
26298
|
const [state, setState] = useState(initialState);
|
|
25580
|
-
const
|
|
26299
|
+
const ref2 = useRef(state);
|
|
25581
26300
|
useEffect(() => {
|
|
25582
|
-
|
|
26301
|
+
ref2.current = state;
|
|
25583
26302
|
}, [state]);
|
|
25584
|
-
return [state, setState,
|
|
26303
|
+
return [state, setState, ref2];
|
|
25585
26304
|
}
|
|
25586
26305
|
function mergeFuncProps(p1, p2) {
|
|
25587
26306
|
const p1Keys = Object.keys(p1);
|
|
@@ -25622,7 +26341,7 @@ const defaultProps$a = {
|
|
|
25622
26341
|
stopPropagation: []
|
|
25623
26342
|
};
|
|
25624
26343
|
let currentUid;
|
|
25625
|
-
const Swiper = forwardRef(staged_1((p,
|
|
26344
|
+
const Swiper = forwardRef(staged_1((p, ref2) => {
|
|
25626
26345
|
const props = mergeProps(defaultProps$a, p);
|
|
25627
26346
|
const {
|
|
25628
26347
|
direction,
|
|
@@ -25639,7 +26358,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
25639
26358
|
validChildren,
|
|
25640
26359
|
count,
|
|
25641
26360
|
renderChildren
|
|
25642
|
-
} = useMemo(() => {
|
|
26361
|
+
} = useMemo$2(() => {
|
|
25643
26362
|
let count2 = 0;
|
|
25644
26363
|
let renderChildren2 = void 0;
|
|
25645
26364
|
let validChildren2 = void 0;
|
|
@@ -25801,7 +26520,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
25801
26520
|
function swipePrev() {
|
|
25802
26521
|
swipeTo(Math.round(position.get() / 100) - 1);
|
|
25803
26522
|
}
|
|
25804
|
-
useImperativeHandle(
|
|
26523
|
+
useImperativeHandle(ref2, () => ({
|
|
25805
26524
|
swipeTo,
|
|
25806
26525
|
swipeNext,
|
|
25807
26526
|
swipePrev
|
|
@@ -26145,7 +26864,7 @@ const defaultProps$6 = {
|
|
|
26145
26864
|
autoSize: false,
|
|
26146
26865
|
defaultValue: ""
|
|
26147
26866
|
};
|
|
26148
|
-
const TextArea = forwardRef((p,
|
|
26867
|
+
const TextArea = forwardRef((p, ref2) => {
|
|
26149
26868
|
const props = mergeProps(defaultProps$6, p);
|
|
26150
26869
|
const {
|
|
26151
26870
|
autoSize,
|
|
@@ -26167,7 +26886,7 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
26167
26886
|
nativeInputRef: nativeTextAreaRef,
|
|
26168
26887
|
enterKeyHint: props.enterKeyHint
|
|
26169
26888
|
});
|
|
26170
|
-
useImperativeHandle(
|
|
26889
|
+
useImperativeHandle(ref2, () => ({
|
|
26171
26890
|
clear: () => {
|
|
26172
26891
|
setValue("");
|
|
26173
26892
|
},
|
|
@@ -26288,7 +27007,7 @@ const InternalToast = (p) => {
|
|
|
26288
27007
|
icon,
|
|
26289
27008
|
position
|
|
26290
27009
|
} = props;
|
|
26291
|
-
const iconElement = useMemo(() => {
|
|
27010
|
+
const iconElement = useMemo$2(() => {
|
|
26292
27011
|
if (icon === null || icon === void 0)
|
|
26293
27012
|
return null;
|
|
26294
27013
|
switch (icon) {
|
|
@@ -26309,7 +27028,7 @@ const InternalToast = (p) => {
|
|
|
26309
27028
|
return icon;
|
|
26310
27029
|
}
|
|
26311
27030
|
}, [icon]);
|
|
26312
|
-
const top = useMemo(() => {
|
|
27031
|
+
const top = useMemo$2(() => {
|
|
26313
27032
|
switch (position) {
|
|
26314
27033
|
case "top":
|
|
26315
27034
|
return "20%";
|
|
@@ -26428,7 +27147,7 @@ const TreeSelect = (p) => {
|
|
|
26428
27147
|
value: props.value,
|
|
26429
27148
|
defaultValue: props.defaultValue
|
|
26430
27149
|
});
|
|
26431
|
-
const [deep, optionsMap, optionsParentMap] = useMemo(() => {
|
|
27150
|
+
const [deep, optionsMap, optionsParentMap] = useMemo$2(() => {
|
|
26432
27151
|
const deep2 = getTreeDeep(props.options, childrenName);
|
|
26433
27152
|
const optionsMap2 = /* @__PURE__ */ new Map();
|
|
26434
27153
|
const optionsParentMap2 = /* @__PURE__ */ new Map();
|
|
@@ -26538,7 +27257,7 @@ const Multiple = (p) => {
|
|
|
26538
27257
|
walker(option);
|
|
26539
27258
|
return keys2;
|
|
26540
27259
|
};
|
|
26541
|
-
const [deep, optionsMap, optionsParentMap] = useMemo(() => {
|
|
27260
|
+
const [deep, optionsMap, optionsParentMap] = useMemo$2(() => {
|
|
26542
27261
|
const deep2 = getTreeDeep(props.options, childrenName);
|
|
26543
27262
|
const optionsMap2 = /* @__PURE__ */ new Map();
|
|
26544
27263
|
const optionsParentMap2 = /* @__PURE__ */ new Map();
|
|
@@ -26554,7 +27273,7 @@ const Multiple = (p) => {
|
|
|
26554
27273
|
traverse(void 0, props.options);
|
|
26555
27274
|
return [deep2, optionsMap2, optionsParentMap2];
|
|
26556
27275
|
}, [props.options]);
|
|
26557
|
-
const allSelectedLeafKeys = useMemo(() => {
|
|
27276
|
+
const allSelectedLeafKeys = useMemo$2(() => {
|
|
26558
27277
|
let leafKeys = [];
|
|
26559
27278
|
value.forEach((v) => {
|
|
26560
27279
|
const option = optionsMap.get(v);
|
|
@@ -26562,7 +27281,7 @@ const Multiple = (p) => {
|
|
|
26562
27281
|
});
|
|
26563
27282
|
return leafKeys;
|
|
26564
27283
|
}, [value, optionsMap]);
|
|
26565
|
-
const dotMap = useMemo(() => {
|
|
27284
|
+
const dotMap = useMemo$2(() => {
|
|
26566
27285
|
const map = /* @__PURE__ */ new Map();
|
|
26567
27286
|
const walker = (key) => {
|
|
26568
27287
|
const parentOption = optionsParentMap.get(key);
|
|
@@ -26742,7 +27461,7 @@ const classPrefix$2 = "adm-virtual-input";
|
|
|
26742
27461
|
const defaultProps$2 = {
|
|
26743
27462
|
defaultValue: ""
|
|
26744
27463
|
};
|
|
26745
|
-
const VirtualInput = forwardRef((props,
|
|
27464
|
+
const VirtualInput = forwardRef((props, ref2) => {
|
|
26746
27465
|
const {
|
|
26747
27466
|
locale,
|
|
26748
27467
|
input: componentConfig = {}
|
|
@@ -26752,6 +27471,7 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26752
27471
|
const rootRef = useRef(null);
|
|
26753
27472
|
const contentRef = useRef(null);
|
|
26754
27473
|
const [hasFocus, setHasFocus] = useState(false);
|
|
27474
|
+
const [caretPosition, setCaretPosition] = useState(value.length);
|
|
26755
27475
|
const clearIcon = mergeProp(React__default.createElement(CloseCircleFill, null), componentConfig.clearIcon, props.clearIcon);
|
|
26756
27476
|
function scrollToEnd() {
|
|
26757
27477
|
const root2 = rootRef.current;
|
|
@@ -26773,7 +27493,7 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26773
27493
|
scrollToEnd();
|
|
26774
27494
|
}
|
|
26775
27495
|
}, [hasFocus]);
|
|
26776
|
-
useImperativeHandle(
|
|
27496
|
+
useImperativeHandle(ref2, () => ({
|
|
26777
27497
|
focus: () => {
|
|
26778
27498
|
var _a;
|
|
26779
27499
|
(_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -26797,12 +27517,18 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26797
27517
|
const keyboardElement = keyboard && React__default.cloneElement(keyboard, {
|
|
26798
27518
|
onInput: (v) => {
|
|
26799
27519
|
var _a, _b;
|
|
26800
|
-
|
|
27520
|
+
const newValue = value.substring(0, caretPosition) + v + value.substring(caretPosition);
|
|
27521
|
+
setValue(newValue);
|
|
27522
|
+
setCaretPosition((c) => c + 1);
|
|
26801
27523
|
(_b = (_a = keyboard.props).onInput) === null || _b === void 0 ? void 0 : _b.call(_a, v);
|
|
26802
27524
|
},
|
|
26803
27525
|
onDelete: () => {
|
|
26804
27526
|
var _a, _b;
|
|
26805
|
-
|
|
27527
|
+
if (caretPosition === 0)
|
|
27528
|
+
return;
|
|
27529
|
+
const newValue = value.substring(0, caretPosition - 1) + value.substring(caretPosition);
|
|
27530
|
+
setValue(newValue);
|
|
27531
|
+
setCaretPosition(caretPosition - 1);
|
|
26806
27532
|
(_b = (_a = keyboard.props).onDelete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
26807
27533
|
},
|
|
26808
27534
|
visible: hasFocus,
|
|
@@ -26818,6 +27544,18 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26818
27544
|
},
|
|
26819
27545
|
getContainer: null
|
|
26820
27546
|
});
|
|
27547
|
+
const setCaretPositionToEnd = () => {
|
|
27548
|
+
setCaretPosition(value.length);
|
|
27549
|
+
};
|
|
27550
|
+
const changeCaretPosition = (index2) => (e2) => {
|
|
27551
|
+
e2.stopPropagation();
|
|
27552
|
+
const rect = e2.target.getBoundingClientRect();
|
|
27553
|
+
const midX = rect.left + rect.width / 2;
|
|
27554
|
+
const clickX = e2.clientX;
|
|
27555
|
+
const isRight = clickX > midX;
|
|
27556
|
+
setCaretPosition(isRight ? index2 + 1 : index2);
|
|
27557
|
+
};
|
|
27558
|
+
const chars = (value + "").split("");
|
|
26821
27559
|
return withNativeProps(mergedProps, React__default.createElement("div", {
|
|
26822
27560
|
ref: rootRef,
|
|
26823
27561
|
className: classNames(classPrefix$2, {
|
|
@@ -26832,17 +27570,25 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26832
27570
|
className: `${classPrefix$2}-content`,
|
|
26833
27571
|
ref: contentRef,
|
|
26834
27572
|
"aria-disabled": mergedProps.disabled,
|
|
26835
|
-
"aria-label": mergedProps.placeholder
|
|
26836
|
-
|
|
27573
|
+
"aria-label": mergedProps.placeholder,
|
|
27574
|
+
onClick: setCaretPositionToEnd
|
|
27575
|
+
}, chars.slice(0, caretPosition).map((i2, index2) => React__default.createElement("span", {
|
|
27576
|
+
key: index2,
|
|
27577
|
+
onClick: changeCaretPosition(index2)
|
|
27578
|
+
}, i2)), React__default.createElement("div", {
|
|
26837
27579
|
className: `${classPrefix$2}-caret-container`
|
|
26838
27580
|
}, hasFocus && React__default.createElement("div", {
|
|
26839
27581
|
className: `${classPrefix$2}-caret`
|
|
26840
|
-
}))
|
|
27582
|
+
})), chars.slice(caretPosition).map((i2, index2) => React__default.createElement("span", {
|
|
27583
|
+
key: index2,
|
|
27584
|
+
onClick: changeCaretPosition(index2 + caretPosition)
|
|
27585
|
+
}, i2))), mergedProps.clearable && !!value && hasFocus && React__default.createElement("div", {
|
|
26841
27586
|
className: `${classPrefix$2}-clear`,
|
|
26842
27587
|
onClick: (e2) => {
|
|
26843
27588
|
var _a;
|
|
26844
27589
|
e2.stopPropagation();
|
|
26845
27590
|
setValue("");
|
|
27591
|
+
setCaretPosition(0);
|
|
26846
27592
|
(_a = mergedProps.onClear) === null || _a === void 0 ? void 0 : _a.call(mergedProps);
|
|
26847
27593
|
},
|
|
26848
27594
|
role: "button",
|
|
@@ -27072,5 +27818,6 @@ export {
|
|
|
27072
27818
|
reduceMotion,
|
|
27073
27819
|
restoreMotion,
|
|
27074
27820
|
setDefaultConfig,
|
|
27821
|
+
unstableSetRender,
|
|
27075
27822
|
useConfig
|
|
27076
27823
|
};
|