antd-mobile 5.39.0 → 5.41.0-alpha.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 +2495 -1614
- package/2x/bundle/antd-mobile.cjs.js +7 -7
- package/2x/bundle/antd-mobile.es.development.js +1530 -649
- package/2x/bundle/antd-mobile.es.js +7495 -6799
- package/2x/bundle/antd-mobile.umd.development.js +2494 -1613
- package/2x/bundle/antd-mobile.umd.js +7 -7
- package/2x/bundle/style.css +11 -5
- 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 +12 -4
- 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/ellipsis/ellipsis.d.ts +3 -0
- package/2x/cjs/components/ellipsis/ellipsis.js +10 -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/swiper/swiper.js +1 -1
- package/2x/cjs/components/tabs/tabs.js +45 -13
- package/2x/cjs/components/virtual-input/virtual-input.css +7 -1
- package/2x/cjs/components/virtual-input/virtual-input.d.ts +6 -0
- package/2x/cjs/components/virtual-input/virtual-input.js +133 -7
- 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 +12 -4
- 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/ellipsis/ellipsis.d.ts +3 -0
- package/2x/es/components/ellipsis/ellipsis.js +10 -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/swiper/swiper.js +1 -1
- package/2x/es/components/tabs/tabs.js +44 -12
- package/2x/es/components/virtual-input/virtual-input.css +7 -1
- package/2x/es/components/virtual-input/virtual-input.d.ts +6 -0
- package/2x/es/components/virtual-input/virtual-input.js +133 -7
- 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 +4 -4
- package/README.md +8 -1
- package/bundle/antd-mobile.cjs.development.js +2495 -1614
- package/bundle/antd-mobile.cjs.js +7 -7
- package/bundle/antd-mobile.compatible.umd.js +1 -1
- package/bundle/antd-mobile.es.development.js +1530 -649
- package/bundle/antd-mobile.es.js +7495 -6799
- package/bundle/antd-mobile.umd.development.js +2494 -1613
- 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 +12 -4
- 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/ellipsis/ellipsis.d.ts +3 -0
- package/cjs/components/ellipsis/ellipsis.js +10 -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/swiper/swiper.js +1 -1
- package/cjs/components/tabs/tabs.js +45 -13
- package/cjs/components/virtual-input/virtual-input.css +6 -1
- package/cjs/components/virtual-input/virtual-input.d.ts +6 -0
- package/cjs/components/virtual-input/virtual-input.js +133 -7
- 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 +12 -4
- 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/ellipsis/ellipsis.d.ts +3 -0
- package/es/components/ellipsis/ellipsis.js +10 -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/swiper/swiper.js +1 -1
- package/es/components/tabs/tabs.js +44 -12
- package/es/components/virtual-input/virtual-input.css +6 -1
- package/es/components/virtual-input/virtual-input.d.ts +6 -0
- package/es/components/virtual-input/virtual-input.js +133 -7
- 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 +4 -4
- package/umd/antd-mobile.js +1 -1
- package/2x/cjs/components/ellipsis/~ellipsis.d.ts +0 -15
- package/2x/cjs/components/ellipsis/~ellipsis.js +0 -161
- package/2x/es/components/ellipsis/~ellipsis.d.ts +0 -15
- package/2x/es/components/ellipsis/~ellipsis.js +0 -151
- package/cjs/components/ellipsis/~ellipsis.d.ts +0 -15
- package/cjs/components/ellipsis/~ellipsis.js +0 -161
- package/es/components/ellipsis/~ellipsis.d.ts +0 -15
- package/es/components/ellipsis/~ellipsis.js +0 -151
|
@@ -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.`);
|
|
9145
|
+
}
|
|
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;
|
|
8534
9155
|
}
|
|
8535
|
-
return
|
|
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
|
});
|
|
@@ -11595,6 +12232,7 @@ const Tabs$1 = (p) => {
|
|
|
11595
12232
|
const props = mergeProps(defaultProps$S, p);
|
|
11596
12233
|
const tabListContainerRef = useRef(null);
|
|
11597
12234
|
const activeLineRef = useRef(null);
|
|
12235
|
+
const tabRefs = useRef({});
|
|
11598
12236
|
const keyToIndexRecord = {};
|
|
11599
12237
|
let firstActiveKey = null;
|
|
11600
12238
|
const panes = [];
|
|
@@ -11734,7 +12372,7 @@ const Tabs$1 = (p) => {
|
|
|
11734
12372
|
});
|
|
11735
12373
|
const {
|
|
11736
12374
|
run: updateMask
|
|
11737
|
-
} = useThrottleFn((immediate
|
|
12375
|
+
} = useThrottleFn((immediate) => {
|
|
11738
12376
|
const container = tabListContainerRef.current;
|
|
11739
12377
|
if (!container)
|
|
11740
12378
|
return;
|
|
@@ -11761,6 +12399,35 @@ const Tabs$1 = (p) => {
|
|
|
11761
12399
|
useIsomorphicLayoutEffect$3(() => {
|
|
11762
12400
|
updateMask(true);
|
|
11763
12401
|
}, []);
|
|
12402
|
+
const handleKeyDown = (e2) => {
|
|
12403
|
+
const keys2 = Object.keys(keyToIndexRecord);
|
|
12404
|
+
const currentIndex = keyToIndexRecord[activeKey];
|
|
12405
|
+
const isNext = isRTL2 ? e2.key === "ArrowLeft" : e2.key === "ArrowRight";
|
|
12406
|
+
const isPrev = isRTL2 ? e2.key === "ArrowRight" : e2.key === "ArrowLeft";
|
|
12407
|
+
const offsetDirection = isNext ? 1 : -1;
|
|
12408
|
+
const findNextEnabledTab = (startIndex, direction) => {
|
|
12409
|
+
const length = keys2.length;
|
|
12410
|
+
for (let i2 = 0; i2 < length; i2++) {
|
|
12411
|
+
const index2 = (startIndex + direction * (i2 + 1) + length) % length;
|
|
12412
|
+
const key = keys2[index2];
|
|
12413
|
+
const pane = panes.find((p2) => p2.key === key);
|
|
12414
|
+
if (!(pane === null || pane === void 0 ? void 0 : pane.props.disabled))
|
|
12415
|
+
return key;
|
|
12416
|
+
}
|
|
12417
|
+
return keys2[startIndex];
|
|
12418
|
+
};
|
|
12419
|
+
const currentKey = findNextEnabledTab(currentIndex, offsetDirection);
|
|
12420
|
+
if (isNext || isPrev) {
|
|
12421
|
+
e2.preventDefault();
|
|
12422
|
+
setActiveKey(currentKey);
|
|
12423
|
+
}
|
|
12424
|
+
};
|
|
12425
|
+
useEffect(() => {
|
|
12426
|
+
var _a2;
|
|
12427
|
+
if (activeKey && tabRefs.current[activeKey]) {
|
|
12428
|
+
(_a2 = tabRefs.current[activeKey]) === null || _a2 === void 0 ? void 0 : _a2.focus();
|
|
12429
|
+
}
|
|
12430
|
+
}, [activeKey]);
|
|
11764
12431
|
return withNativeProps(props, React__default.createElement("div", {
|
|
11765
12432
|
className: classPrefix$15,
|
|
11766
12433
|
style: {
|
|
@@ -11783,6 +12450,7 @@ const Tabs$1 = (p) => {
|
|
|
11783
12450
|
ref: tabListContainerRef,
|
|
11784
12451
|
scrollLeft,
|
|
11785
12452
|
onScroll: updateMask,
|
|
12453
|
+
onKeyDown: handleKeyDown,
|
|
11786
12454
|
role: "tablist"
|
|
11787
12455
|
}, React__default.createElement(animated.div, {
|
|
11788
12456
|
ref: activeLineRef,
|
|
@@ -11797,6 +12465,10 @@ const Tabs$1 = (p) => {
|
|
|
11797
12465
|
[`${classPrefix$15}-tab-wrapper-stretch`]: props.stretch
|
|
11798
12466
|
})
|
|
11799
12467
|
}, React__default.createElement("div", {
|
|
12468
|
+
role: "tab",
|
|
12469
|
+
"aria-selected": pane.key === activeKey,
|
|
12470
|
+
tabIndex: pane.key === activeKey ? 0 : -1,
|
|
12471
|
+
ref: (el) => tabRefs.current[pane.key] = el,
|
|
11800
12472
|
onClick: () => {
|
|
11801
12473
|
const {
|
|
11802
12474
|
key
|
|
@@ -11810,10 +12482,8 @@ const Tabs$1 = (p) => {
|
|
|
11810
12482
|
},
|
|
11811
12483
|
className: classNames(`${classPrefix$15}-tab`, {
|
|
11812
12484
|
[`${classPrefix$15}-tab-active`]: pane.key === activeKey,
|
|
11813
|
-
[`${classPrefix$15}-tab-disabled`]: pane.props.disabled
|
|
11814
|
-
})
|
|
11815
|
-
role: "tab",
|
|
11816
|
-
"aria-selected": pane.key === activeKey
|
|
12485
|
+
[`${classPrefix$15}-tab-disabled`]: pane.props.disabled
|
|
12486
|
+
})
|
|
11817
12487
|
}, pane.props.title)))))), panes.map((pane) => {
|
|
11818
12488
|
if (pane.props.children === void 0) {
|
|
11819
12489
|
return null;
|
|
@@ -11839,10 +12509,10 @@ const classPrefix$14 = `adm-list`;
|
|
|
11839
12509
|
const defaultProps$R = {
|
|
11840
12510
|
mode: "default"
|
|
11841
12511
|
};
|
|
11842
|
-
const List$2 = forwardRef((p,
|
|
12512
|
+
const List$2 = forwardRef((p, ref2) => {
|
|
11843
12513
|
const props = mergeProps(defaultProps$R, p);
|
|
11844
12514
|
const nativeElementRef = useRef(null);
|
|
11845
|
-
useImperativeHandle(
|
|
12515
|
+
useImperativeHandle(ref2, () => ({
|
|
11846
12516
|
get nativeElement() {
|
|
11847
12517
|
return nativeElementRef.current;
|
|
11848
12518
|
}
|
|
@@ -12054,7 +12724,7 @@ function useCascaderValueExtend(options, fieldNames) {
|
|
|
12054
12724
|
valueName,
|
|
12055
12725
|
childrenName
|
|
12056
12726
|
} = fieldNames;
|
|
12057
|
-
const generateItems = useMemo(() => {
|
|
12727
|
+
const generateItems = useMemo$2(() => {
|
|
12058
12728
|
return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
|
|
12059
12729
|
const ret = [];
|
|
12060
12730
|
let currentOptions = options;
|
|
@@ -12073,7 +12743,7 @@ function useCascaderValueExtend(options, fieldNames) {
|
|
|
12073
12743
|
equals: isEqual$1
|
|
12074
12744
|
});
|
|
12075
12745
|
}, [options]);
|
|
12076
|
-
const generateIsLeaf = useMemo(() => {
|
|
12746
|
+
const generateIsLeaf = useMemo$2(() => {
|
|
12077
12747
|
return $cf838c15c8b009ba$export$22f15dd4e5be7e52((val) => {
|
|
12078
12748
|
const children = val.reduce((currentOptions, v) => {
|
|
12079
12749
|
var _a;
|
|
@@ -12138,7 +12808,7 @@ const Skeleton = attachPropertiesToComponent(Skeleton$1, {
|
|
|
12138
12808
|
Paragraph: SkeletonParagraph
|
|
12139
12809
|
});
|
|
12140
12810
|
const useFieldNames = (fieldNames = {}) => {
|
|
12141
|
-
const fields = useMemo(() => {
|
|
12811
|
+
const fields = useMemo$2(() => {
|
|
12142
12812
|
const {
|
|
12143
12813
|
label = "label",
|
|
12144
12814
|
value = "value",
|
|
@@ -12170,7 +12840,7 @@ const CascaderView$1 = (p) => {
|
|
|
12170
12840
|
}
|
|
12171
12841
|
}));
|
|
12172
12842
|
const [tabActiveIndex, setTabActiveIndex] = useState(0);
|
|
12173
|
-
const levels = useMemo(() => {
|
|
12843
|
+
const levels = useMemo$2(() => {
|
|
12174
12844
|
const ret = [];
|
|
12175
12845
|
let currentOptions = props.options;
|
|
12176
12846
|
let reachedEnd = false;
|
|
@@ -12276,7 +12946,7 @@ const defaultProps$O = {
|
|
|
12276
12946
|
destroyOnClose: true,
|
|
12277
12947
|
forceRender: false
|
|
12278
12948
|
};
|
|
12279
|
-
const Cascader = forwardRef((p,
|
|
12949
|
+
const Cascader = forwardRef((p, ref2) => {
|
|
12280
12950
|
var _a;
|
|
12281
12951
|
const {
|
|
12282
12952
|
locale
|
|
@@ -12307,7 +12977,7 @@ const Cascader = forwardRef((p, ref) => {
|
|
|
12307
12977
|
setVisible(false);
|
|
12308
12978
|
}
|
|
12309
12979
|
};
|
|
12310
|
-
useImperativeHandle(
|
|
12980
|
+
useImperativeHandle(ref2, () => actions);
|
|
12311
12981
|
const [value, setValue] = usePropsValue(Object.assign(Object.assign({}, props), {
|
|
12312
12982
|
onChange: (val) => {
|
|
12313
12983
|
var _a2;
|
|
@@ -12445,8 +13115,8 @@ const CenterPopup = (props) => {
|
|
|
12445
13115
|
setActive(true);
|
|
12446
13116
|
}
|
|
12447
13117
|
}, [mergedProps.visible]);
|
|
12448
|
-
const
|
|
12449
|
-
useLockScroll(
|
|
13118
|
+
const ref2 = useRef(null);
|
|
13119
|
+
useLockScroll(ref2, mergedProps.disableBodyScroll && active);
|
|
12450
13120
|
const maskVisible = useInnerVisible(active && mergedProps.visible);
|
|
12451
13121
|
const body = React__default.createElement("div", {
|
|
12452
13122
|
className: classNames(`${classPrefix$Z}-body`, mergedProps.bodyClassName),
|
|
@@ -12481,7 +13151,7 @@ const CenterPopup = (props) => {
|
|
|
12481
13151
|
style: Object.assign(Object.assign({}, style2), {
|
|
12482
13152
|
pointerEvents: style2.opacity.to((v) => v === 1 ? "unset" : "none")
|
|
12483
13153
|
}),
|
|
12484
|
-
ref
|
|
13154
|
+
ref: ref2
|
|
12485
13155
|
}, mergedProps.showCloseButton && React__default.createElement("a", {
|
|
12486
13156
|
className: classNames(`${classPrefix$Z}-close`, "adm-plain-anchor"),
|
|
12487
13157
|
onClick: () => {
|
|
@@ -12573,7 +13243,7 @@ const defaultProps$L = {
|
|
|
12573
13243
|
defaultChecked: false,
|
|
12574
13244
|
indeterminate: false
|
|
12575
13245
|
};
|
|
12576
|
-
const Checkbox$1 = forwardRef((p,
|
|
13246
|
+
const Checkbox$1 = forwardRef((p, ref2) => {
|
|
12577
13247
|
const groupContext = useContext(CheckboxGroupContext);
|
|
12578
13248
|
const props = mergeProps(defaultProps$L, p);
|
|
12579
13249
|
let [checked, setChecked] = usePropsValue({
|
|
@@ -12606,7 +13276,7 @@ const Checkbox$1 = forwardRef((p, ref) => {
|
|
|
12606
13276
|
};
|
|
12607
13277
|
disabled = disabled || groupContext.disabled;
|
|
12608
13278
|
}
|
|
12609
|
-
useImperativeHandle(
|
|
13279
|
+
useImperativeHandle(ref2, () => ({
|
|
12610
13280
|
check: () => {
|
|
12611
13281
|
setChecked(true);
|
|
12612
13282
|
},
|
|
@@ -12824,6 +13494,20 @@ const Collapse = (props) => {
|
|
|
12824
13494
|
const index$e = attachPropertiesToComponent(Collapse, {
|
|
12825
13495
|
Panel: CollapsePanel
|
|
12826
13496
|
});
|
|
13497
|
+
var isLeapYear$1 = { exports: {} };
|
|
13498
|
+
(function(module, exports) {
|
|
13499
|
+
!function(e2, t) {
|
|
13500
|
+
module.exports = t();
|
|
13501
|
+
}(commonjsGlobal, function() {
|
|
13502
|
+
return function(e2, t) {
|
|
13503
|
+
t.prototype.isLeapYear = function() {
|
|
13504
|
+
return this.$y % 4 == 0 && this.$y % 100 != 0 || this.$y % 400 == 0;
|
|
13505
|
+
};
|
|
13506
|
+
};
|
|
13507
|
+
});
|
|
13508
|
+
})(isLeapYear$1);
|
|
13509
|
+
var isLeapYearExports = isLeapYear$1.exports;
|
|
13510
|
+
const isLeapYear = /* @__PURE__ */ getDefaultExportFromCjs(isLeapYearExports);
|
|
12827
13511
|
var isoWeeksInYear$1 = { exports: {} };
|
|
12828
13512
|
(function(module, exports) {
|
|
12829
13513
|
!function(e2, n2) {
|
|
@@ -12839,20 +13523,6 @@ var isoWeeksInYear$1 = { exports: {} };
|
|
|
12839
13523
|
})(isoWeeksInYear$1);
|
|
12840
13524
|
var isoWeeksInYearExports = isoWeeksInYear$1.exports;
|
|
12841
13525
|
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
13526
|
const TILL_NOW = "TILL_NOW";
|
|
12857
13527
|
dayjs.extend(isoWeek);
|
|
12858
13528
|
dayjs.extend(isoWeeksInYear);
|
|
@@ -12886,6 +13556,7 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12886
13556
|
const selectedDay = parseInt(selected[2]);
|
|
12887
13557
|
const selectedHour = parseInt(selected[3]);
|
|
12888
13558
|
const selectedMinute = parseInt(selected[4]);
|
|
13559
|
+
const selectedSecond = parseInt(selected[5]);
|
|
12889
13560
|
const isInMinYear = selectedYear === minYear;
|
|
12890
13561
|
const isInMaxYear = selectedYear === maxYear;
|
|
12891
13562
|
const isInMinMonth = isInMinYear && selectedMonth === minMonth;
|
|
@@ -12918,7 +13589,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12918
13589
|
const upper = maxYear;
|
|
12919
13590
|
const years = generateColumn(lower, upper, "year");
|
|
12920
13591
|
ret.push(years.map((v) => ({
|
|
12921
|
-
label: renderLabel("year", v
|
|
13592
|
+
label: renderLabel("year", v, {
|
|
13593
|
+
selected: selectedYear === v
|
|
13594
|
+
}),
|
|
12922
13595
|
value: v.toString()
|
|
12923
13596
|
})));
|
|
12924
13597
|
}
|
|
@@ -12927,7 +13600,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12927
13600
|
const upper = isInMaxYear ? maxMonth : 12;
|
|
12928
13601
|
const months = generateColumn(lower, upper, "month");
|
|
12929
13602
|
ret.push(months.map((v) => ({
|
|
12930
|
-
label: renderLabel("month", v
|
|
13603
|
+
label: renderLabel("month", v, {
|
|
13604
|
+
selected: selectedMonth === v
|
|
13605
|
+
}),
|
|
12931
13606
|
value: v.toString()
|
|
12932
13607
|
})));
|
|
12933
13608
|
}
|
|
@@ -12936,7 +13611,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12936
13611
|
const upper = isInMaxMonth ? maxDay : firstDayInSelectedMonth.daysInMonth();
|
|
12937
13612
|
const days = generateColumn(lower, upper, "day");
|
|
12938
13613
|
ret.push(days.map((v) => ({
|
|
12939
|
-
label: renderLabel("day", v
|
|
13614
|
+
label: renderLabel("day", v, {
|
|
13615
|
+
selected: selectedDay === v
|
|
13616
|
+
}),
|
|
12940
13617
|
value: v.toString()
|
|
12941
13618
|
})));
|
|
12942
13619
|
}
|
|
@@ -12945,7 +13622,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12945
13622
|
const upper = isInMaxDay ? maxHour : 23;
|
|
12946
13623
|
const hours = generateColumn(lower, upper, "hour");
|
|
12947
13624
|
ret.push(hours.map((v) => ({
|
|
12948
|
-
label: renderLabel("hour", v
|
|
13625
|
+
label: renderLabel("hour", v, {
|
|
13626
|
+
selected: selectedHour === v
|
|
13627
|
+
}),
|
|
12949
13628
|
value: v.toString()
|
|
12950
13629
|
})));
|
|
12951
13630
|
}
|
|
@@ -12954,7 +13633,9 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12954
13633
|
const upper = isInMaxHour ? maxMinute : 59;
|
|
12955
13634
|
const minutes = generateColumn(lower, upper, "minute");
|
|
12956
13635
|
ret.push(minutes.map((v) => ({
|
|
12957
|
-
label: renderLabel("minute", v
|
|
13636
|
+
label: renderLabel("minute", v, {
|
|
13637
|
+
selected: selectedMinute === v
|
|
13638
|
+
}),
|
|
12958
13639
|
value: v.toString()
|
|
12959
13640
|
})));
|
|
12960
13641
|
}
|
|
@@ -12963,13 +13644,17 @@ function generateDatePickerColumns$3(selected, min2, max2, precision, renderLabe
|
|
|
12963
13644
|
const upper = isInMaxMinute ? maxSecond : 59;
|
|
12964
13645
|
const seconds = generateColumn(lower, upper, "second");
|
|
12965
13646
|
ret.push(seconds.map((v) => ({
|
|
12966
|
-
label: renderLabel("second", v
|
|
13647
|
+
label: renderLabel("second", v, {
|
|
13648
|
+
selected: selectedSecond === v
|
|
13649
|
+
}),
|
|
12967
13650
|
value: v.toString()
|
|
12968
13651
|
})));
|
|
12969
13652
|
}
|
|
12970
13653
|
if (tillNow) {
|
|
12971
13654
|
ret[0].push({
|
|
12972
|
-
label: renderLabel("now", null
|
|
13655
|
+
label: renderLabel("now", null, {
|
|
13656
|
+
selected: selected[0] === TILL_NOW
|
|
13657
|
+
}),
|
|
12973
13658
|
value: TILL_NOW
|
|
12974
13659
|
});
|
|
12975
13660
|
if (TILL_NOW === (selected === null || selected === void 0 ? void 0 : selected[0])) {
|
|
@@ -13041,6 +13726,7 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
|
|
|
13041
13726
|
const maxDay = dayjs(max2);
|
|
13042
13727
|
const minQuarter = minDay.quarter();
|
|
13043
13728
|
const maxQuarter = maxDay.quarter();
|
|
13729
|
+
const selectedQuarter = parseInt(selected[1]);
|
|
13044
13730
|
const generateColumn = (from, to2, precision2) => {
|
|
13045
13731
|
let column = [];
|
|
13046
13732
|
for (let i2 = from; i2 <= to2; i2++) {
|
|
@@ -13063,7 +13749,9 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
|
|
|
13063
13749
|
const upper = maxYear;
|
|
13064
13750
|
const years = generateColumn(lower, upper, "year");
|
|
13065
13751
|
ret.push(years.map((v) => ({
|
|
13066
|
-
label: renderLabel("year", v
|
|
13752
|
+
label: renderLabel("year", v, {
|
|
13753
|
+
selected: selectedYear === v
|
|
13754
|
+
}),
|
|
13067
13755
|
value: v.toString()
|
|
13068
13756
|
})));
|
|
13069
13757
|
}
|
|
@@ -13072,7 +13760,9 @@ function generateDatePickerColumns$2(selected, min2, max2, precision, renderLabe
|
|
|
13072
13760
|
const upper = isInMaxYear ? maxQuarter : 4;
|
|
13073
13761
|
const quarters = generateColumn(lower, upper, "quarter");
|
|
13074
13762
|
ret.push(quarters.map((v) => ({
|
|
13075
|
-
label: renderLabel("quarter", v
|
|
13763
|
+
label: renderLabel("quarter", v, {
|
|
13764
|
+
selected: selectedQuarter === v
|
|
13765
|
+
}),
|
|
13076
13766
|
value: v.toString()
|
|
13077
13767
|
})));
|
|
13078
13768
|
}
|
|
@@ -13114,6 +13804,7 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
|
|
|
13114
13804
|
const minWeekday = minDay.isoWeekday();
|
|
13115
13805
|
const maxWeekday = maxDay.isoWeekday();
|
|
13116
13806
|
const selectedWeek = parseInt(selected[1]);
|
|
13807
|
+
const selectedWeekday = parseInt(selected[2]);
|
|
13117
13808
|
const isInMinWeek = isInMinYear && selectedWeek === minWeek;
|
|
13118
13809
|
const isInMaxWeek = isInMaxYear && selectedWeek === maxWeek;
|
|
13119
13810
|
const selectedYearWeeks = dayjs(`${selectedYear}-01-01`).isoWeeksInYear();
|
|
@@ -13139,7 +13830,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
|
|
|
13139
13830
|
const upper = maxYear;
|
|
13140
13831
|
const years = generateColumn(lower, upper, "year");
|
|
13141
13832
|
ret.push(years.map((v) => ({
|
|
13142
|
-
label: renderLabel("year", v
|
|
13833
|
+
label: renderLabel("year", v, {
|
|
13834
|
+
selected: selectedYear === v
|
|
13835
|
+
}),
|
|
13143
13836
|
value: v.toString()
|
|
13144
13837
|
})));
|
|
13145
13838
|
}
|
|
@@ -13148,7 +13841,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
|
|
|
13148
13841
|
const upper = isInMaxYear ? maxWeek : selectedYearWeeks;
|
|
13149
13842
|
const weeks = generateColumn(lower, upper, "week");
|
|
13150
13843
|
ret.push(weeks.map((v) => ({
|
|
13151
|
-
label: renderLabel("week", v
|
|
13844
|
+
label: renderLabel("week", v, {
|
|
13845
|
+
selected: selectedWeek === v
|
|
13846
|
+
}),
|
|
13152
13847
|
value: v.toString()
|
|
13153
13848
|
})));
|
|
13154
13849
|
}
|
|
@@ -13157,7 +13852,9 @@ function generateDatePickerColumns$1(selected, min2, max2, precision, renderLabe
|
|
|
13157
13852
|
const upper = isInMaxWeek ? maxWeekday : 7;
|
|
13158
13853
|
const weeks = generateColumn(lower, upper, "week-day");
|
|
13159
13854
|
ret.push(weeks.map((v) => ({
|
|
13160
|
-
label: renderLabel("week-day", v
|
|
13855
|
+
label: renderLabel("week-day", v, {
|
|
13856
|
+
selected: selectedWeekday === v
|
|
13857
|
+
}),
|
|
13161
13858
|
value: v.toString()
|
|
13162
13859
|
})));
|
|
13163
13860
|
}
|
|
@@ -13174,7 +13871,7 @@ function convertStringArrayToDate$1(value) {
|
|
|
13174
13871
|
const yearString = (_a = value[0]) !== null && _a !== void 0 ? _a : "1900";
|
|
13175
13872
|
const weekString = (_b = value[1]) !== null && _b !== void 0 ? _b : "1";
|
|
13176
13873
|
const weekdayString = (_c = value[2]) !== null && _c !== void 0 ? _c : "1";
|
|
13177
|
-
const day = dayjs(`${parseInt(yearString)}-01-
|
|
13874
|
+
const day = dayjs(`${parseInt(yearString)}-01-04`).isoWeek(parseInt(weekString)).isoWeekday(parseInt(weekdayString)).hour(0).minute(0).second(0);
|
|
13178
13875
|
return day.toDate();
|
|
13179
13876
|
}
|
|
13180
13877
|
const precisionLengthRecord = {
|
|
@@ -13223,9 +13920,9 @@ function useRenderLabel(renderLabel) {
|
|
|
13223
13920
|
const {
|
|
13224
13921
|
locale
|
|
13225
13922
|
} = useConfig();
|
|
13226
|
-
return useCallback((type4, data) => {
|
|
13923
|
+
return useCallback((type4, data, info) => {
|
|
13227
13924
|
if (renderLabel) {
|
|
13228
|
-
return renderLabel(type4, data);
|
|
13925
|
+
return renderLabel(type4, data, info);
|
|
13229
13926
|
}
|
|
13230
13927
|
switch (type4) {
|
|
13231
13928
|
case "minute":
|
|
@@ -13246,7 +13943,7 @@ const defaultProps$K = {
|
|
|
13246
13943
|
precision: "day",
|
|
13247
13944
|
defaultValue: null
|
|
13248
13945
|
};
|
|
13249
|
-
const DatePicker = forwardRef((p,
|
|
13946
|
+
const DatePicker = forwardRef((p, ref2) => {
|
|
13250
13947
|
const props = mergeProps(defaultProps$K, p);
|
|
13251
13948
|
const {
|
|
13252
13949
|
renderLabel
|
|
@@ -13261,9 +13958,9 @@ const DatePicker = forwardRef((p, ref) => {
|
|
|
13261
13958
|
(_a = props.onConfirm) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
13262
13959
|
}
|
|
13263
13960
|
});
|
|
13264
|
-
const now2 = useMemo(() => /* @__PURE__ */ new Date(), []);
|
|
13961
|
+
const now2 = useMemo$2(() => /* @__PURE__ */ new Date(), []);
|
|
13265
13962
|
const mergedRenderLabel = useRenderLabel(renderLabel);
|
|
13266
|
-
const pickerValue = useMemo(() => {
|
|
13963
|
+
const pickerValue = useMemo$2(() => {
|
|
13267
13964
|
let date4 = value !== null && value !== void 0 ? value : now2;
|
|
13268
13965
|
if (date4.tillNow) {
|
|
13269
13966
|
return [TILL_NOW];
|
|
@@ -13282,7 +13979,7 @@ const DatePicker = forwardRef((p, ref) => {
|
|
|
13282
13979
|
});
|
|
13283
13980
|
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
13981
|
return withNativeProps(props, React__default.createElement(Picker, {
|
|
13285
|
-
ref,
|
|
13982
|
+
ref: ref2,
|
|
13286
13983
|
columns,
|
|
13287
13984
|
value: pickerValue,
|
|
13288
13985
|
onCancel: props.onCancel,
|
|
@@ -13360,7 +14057,7 @@ const DatePickerView = (p) => {
|
|
|
13360
14057
|
defaultValue: (_a = props.defaultValue) !== null && _a !== void 0 ? _a : null
|
|
13361
14058
|
});
|
|
13362
14059
|
const mergedRenderLabel = useRenderLabel(renderLabel);
|
|
13363
|
-
const pickerValue = useMemo(() => {
|
|
14060
|
+
const pickerValue = useMemo$2(() => {
|
|
13364
14061
|
if (value === null || value === void 0 ? void 0 : value.tillNow) {
|
|
13365
14062
|
return [TILL_NOW, null, null];
|
|
13366
14063
|
}
|
|
@@ -13604,7 +14301,7 @@ const defaultProps$G = {
|
|
|
13604
14301
|
closeOnClickAway: false,
|
|
13605
14302
|
getContainer: defaultPopupBaseProps["getContainer"]
|
|
13606
14303
|
};
|
|
13607
|
-
const Dropdown = forwardRef((props,
|
|
14304
|
+
const Dropdown = forwardRef((props, ref2) => {
|
|
13608
14305
|
const {
|
|
13609
14306
|
dropdown: componentConfig = {}
|
|
13610
14307
|
} = useConfig();
|
|
@@ -13660,7 +14357,7 @@ const Dropdown = forwardRef((props, ref) => {
|
|
|
13660
14357
|
return child;
|
|
13661
14358
|
}
|
|
13662
14359
|
});
|
|
13663
|
-
useImperativeHandle(
|
|
14360
|
+
useImperativeHandle(ref2, () => ({
|
|
13664
14361
|
close: () => {
|
|
13665
14362
|
setValue(null);
|
|
13666
14363
|
}
|
|
@@ -13901,13 +14598,21 @@ const Ellipsis = (p) => {
|
|
|
13901
14598
|
const rootRef = React__default.useRef(null);
|
|
13902
14599
|
const [expanded, setExpanded] = React__default.useState(defaultExpanded);
|
|
13903
14600
|
const expandNode = expandText ? withStopPropagation(stopPropagationForActionButtons, React__default.createElement("a", {
|
|
13904
|
-
onClick: () => {
|
|
14601
|
+
onClick: (e2) => {
|
|
14602
|
+
var _a;
|
|
13905
14603
|
setExpanded(true);
|
|
14604
|
+
(_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, true, {
|
|
14605
|
+
event: e2
|
|
14606
|
+
});
|
|
13906
14607
|
}
|
|
13907
14608
|
}, expandText)) : null;
|
|
13908
14609
|
const collapseNode = collapseText ? withStopPropagation(stopPropagationForActionButtons, React__default.createElement("a", {
|
|
13909
|
-
onClick: () => {
|
|
14610
|
+
onClick: (e2) => {
|
|
14611
|
+
var _a;
|
|
13910
14612
|
setExpanded(false);
|
|
14613
|
+
(_a = props.onExpand) === null || _a === void 0 ? void 0 : _a.call(props, false, {
|
|
14614
|
+
event: e2
|
|
14615
|
+
});
|
|
13911
14616
|
}
|
|
13912
14617
|
}, collapseText)) : null;
|
|
13913
14618
|
const [measureNodes, forceResize] = useMeasure(rootRef, content, rows, direction, expanded, expandNode, collapseNode);
|
|
@@ -14623,7 +15328,7 @@ const classPrefix$Q = "adm-floating-panel";
|
|
|
14623
15328
|
const defaultProps$C = {
|
|
14624
15329
|
handleDraggingOfContent: true
|
|
14625
15330
|
};
|
|
14626
|
-
const FloatingPanel = forwardRef((p,
|
|
15331
|
+
const FloatingPanel = forwardRef((p, ref2) => {
|
|
14627
15332
|
var _a, _b;
|
|
14628
15333
|
const props = mergeProps(defaultProps$C, p);
|
|
14629
15334
|
const {
|
|
@@ -14710,7 +15415,7 @@ const FloatingPanel = forwardRef((p, ref) => {
|
|
|
14710
15415
|
passive: false
|
|
14711
15416
|
} : void 0
|
|
14712
15417
|
});
|
|
14713
|
-
useImperativeHandle(
|
|
15418
|
+
useImperativeHandle(ref2, () => ({
|
|
14714
15419
|
setHeight: (height, options) => {
|
|
14715
15420
|
api.start({
|
|
14716
15421
|
y: -height,
|
|
@@ -14873,7 +15578,7 @@ function _isNativeReflectConstruct$1() {
|
|
|
14873
15578
|
}
|
|
14874
15579
|
}
|
|
14875
15580
|
function _possibleConstructorReturn(self2, call2) {
|
|
14876
|
-
if (call2 && (_typeof
|
|
15581
|
+
if (call2 && (_typeof(call2) === "object" || typeof call2 === "function")) {
|
|
14877
15582
|
return call2;
|
|
14878
15583
|
} else if (call2 !== void 0) {
|
|
14879
15584
|
throw new TypeError("Derived constructors may only return object or undefined");
|
|
@@ -14902,7 +15607,7 @@ function toArray$2(children) {
|
|
|
14902
15607
|
}
|
|
14903
15608
|
if (Array.isArray(child)) {
|
|
14904
15609
|
ret = ret.concat(toArray$2(child));
|
|
14905
|
-
} else if (
|
|
15610
|
+
} else if (isFragment$2(child) && child.props) {
|
|
14906
15611
|
ret = ret.concat(toArray$2(child.props.children, option));
|
|
14907
15612
|
} else {
|
|
14908
15613
|
ret.push(child);
|
|
@@ -14916,7 +15621,7 @@ function isEqual2(obj1, obj2) {
|
|
|
14916
15621
|
function deepEqual(a, b) {
|
|
14917
15622
|
var level = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 1;
|
|
14918
15623
|
var circular = refSet.has(a);
|
|
14919
|
-
warningOnce
|
|
15624
|
+
warningOnce(!circular, "Warning: There may be circular references");
|
|
14920
15625
|
if (circular) {
|
|
14921
15626
|
return false;
|
|
14922
15627
|
}
|
|
@@ -14939,7 +15644,7 @@ function isEqual2(obj1, obj2) {
|
|
|
14939
15644
|
}
|
|
14940
15645
|
return true;
|
|
14941
15646
|
}
|
|
14942
|
-
if (a && b && _typeof
|
|
15647
|
+
if (a && b && _typeof(a) === "object" && _typeof(b) === "object") {
|
|
14943
15648
|
var keys2 = Object.keys(a);
|
|
14944
15649
|
if (keys2.length !== Object.keys(b).length) {
|
|
14945
15650
|
return false;
|
|
@@ -14954,9 +15659,9 @@ function isEqual2(obj1, obj2) {
|
|
|
14954
15659
|
}
|
|
14955
15660
|
var HOOK_MARK$1 = "RC_FORM_INTERNAL_HOOKS";
|
|
14956
15661
|
var warningFunc$1 = function warningFunc() {
|
|
14957
|
-
warningOnce
|
|
15662
|
+
warningOnce(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
14958
15663
|
};
|
|
14959
|
-
var Context$2 = /* @__PURE__ */ React$
|
|
15664
|
+
var Context$2 = /* @__PURE__ */ React$2.createContext({
|
|
14960
15665
|
getFieldValue: warningFunc$1,
|
|
14961
15666
|
getFieldsValue: warningFunc$1,
|
|
14962
15667
|
getFieldError: warningFunc$1,
|
|
@@ -14990,7 +15695,7 @@ var Context$2 = /* @__PURE__ */ React$1.createContext({
|
|
|
14990
15695
|
};
|
|
14991
15696
|
}
|
|
14992
15697
|
});
|
|
14993
|
-
var ListContext = /* @__PURE__ */ React$
|
|
15698
|
+
var ListContext = /* @__PURE__ */ React$2.createContext(null);
|
|
14994
15699
|
function toArray$1(value) {
|
|
14995
15700
|
if (value === void 0 || value === null) {
|
|
14996
15701
|
return [];
|
|
@@ -15001,7 +15706,7 @@ function isFormInstance(form) {
|
|
|
15001
15706
|
return form && !!form._init;
|
|
15002
15707
|
}
|
|
15003
15708
|
function _regeneratorRuntime() {
|
|
15004
|
-
_regeneratorRuntime = function
|
|
15709
|
+
_regeneratorRuntime = function _regeneratorRuntime3() {
|
|
15005
15710
|
return e2;
|
|
15006
15711
|
};
|
|
15007
15712
|
var t, e2 = {}, r = Object.prototype, n2 = r.hasOwnProperty, o = Object.defineProperty || function(t2, e3, r2) {
|
|
@@ -15068,7 +15773,7 @@ function _regeneratorRuntime() {
|
|
|
15068
15773
|
var c6 = tryCatch(t2[r3], t2, o2);
|
|
15069
15774
|
if ("throw" !== c6.type) {
|
|
15070
15775
|
var u2 = c6.arg, h2 = u2.value;
|
|
15071
|
-
return h2 && "object" == _typeof
|
|
15776
|
+
return h2 && "object" == _typeof(h2) && n2.call(h2, "__await") ? e3.resolve(h2.__await).then(function(t3) {
|
|
15072
15777
|
invoke("next", t3, i3, a2);
|
|
15073
15778
|
}, function(t3) {
|
|
15074
15779
|
invoke("throw", t3, i3, a2);
|
|
@@ -15179,7 +15884,7 @@ function _regeneratorRuntime() {
|
|
|
15179
15884
|
return i3.next = i3;
|
|
15180
15885
|
}
|
|
15181
15886
|
}
|
|
15182
|
-
throw new TypeError(_typeof
|
|
15887
|
+
throw new TypeError(_typeof(e3) + " is not iterable");
|
|
15183
15888
|
}
|
|
15184
15889
|
return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", {
|
|
15185
15890
|
value: GeneratorFunctionPrototype,
|
|
@@ -15435,10 +16140,10 @@ function _wrapNativeSuper(Class) {
|
|
|
15435
16140
|
return _wrapNativeSuper(Class);
|
|
15436
16141
|
}
|
|
15437
16142
|
var formatRegExp = /%[sdj%]/g;
|
|
15438
|
-
var warning
|
|
16143
|
+
var warning = function warning2() {
|
|
15439
16144
|
};
|
|
15440
16145
|
if (typeof process !== "undefined" && process.env && true && typeof window !== "undefined" && typeof document !== "undefined") {
|
|
15441
|
-
warning
|
|
16146
|
+
warning = function warning3(type4, errors) {
|
|
15442
16147
|
if (typeof console !== "undefined" && console.warn && typeof ASYNC_VALIDATOR_NO_WARNING === "undefined") {
|
|
15443
16148
|
if (errors.every(function(e2) {
|
|
15444
16149
|
return typeof e2 === "string";
|
|
@@ -16390,7 +17095,7 @@ Schema.register = function register(type4, validator) {
|
|
|
16390
17095
|
}
|
|
16391
17096
|
validators[type4] = validator;
|
|
16392
17097
|
};
|
|
16393
|
-
Schema.warning = warning
|
|
17098
|
+
Schema.warning = warning;
|
|
16394
17099
|
Schema.messages = messages;
|
|
16395
17100
|
Schema.validators = validators;
|
|
16396
17101
|
var typeTemplate = "'${name}' is not a valid ${type}";
|
|
@@ -16497,9 +17202,9 @@ function _validateRule() {
|
|
|
16497
17202
|
result = _context2.t0.errors.map(function(_ref4, index2) {
|
|
16498
17203
|
var message = _ref4.message;
|
|
16499
17204
|
var mergedMessage = message === CODE_LOGIC_ERROR ? messages2.default : message;
|
|
16500
|
-
return /* @__PURE__ */ React$
|
|
17205
|
+
return /* @__PURE__ */ React$2.isValidElement(mergedMessage) ? (
|
|
16501
17206
|
// Wrap ReactNode with `key`
|
|
16502
|
-
React$
|
|
17207
|
+
React$2.cloneElement(mergedMessage, {
|
|
16503
17208
|
key: "error_".concat(index2)
|
|
16504
17209
|
})
|
|
16505
17210
|
) : mergedMessage;
|
|
@@ -16554,7 +17259,7 @@ function validateRules(namePath, value, rules2, options, validateFirst, messageV
|
|
|
16554
17259
|
args[_key] = arguments[_key];
|
|
16555
17260
|
}
|
|
16556
17261
|
Promise.resolve().then(function() {
|
|
16557
|
-
warningOnce
|
|
17262
|
+
warningOnce(!hasPromise, "Your validator function has already return a promise. `callback` will be ignored.");
|
|
16558
17263
|
if (!hasPromise) {
|
|
16559
17264
|
callback.apply(void 0, args);
|
|
16560
17265
|
}
|
|
@@ -16562,7 +17267,7 @@ function validateRules(namePath, value, rules2, options, validateFirst, messageV
|
|
|
16562
17267
|
};
|
|
16563
17268
|
var promise = originValidatorFunc(rule, val, wrappedCallback);
|
|
16564
17269
|
hasPromise = promise && typeof promise.then === "function" && typeof promise.catch === "function";
|
|
16565
|
-
warningOnce
|
|
17270
|
+
warningOnce(hasPromise, "`callback` is deprecated. Please return a promise instead.");
|
|
16566
17271
|
if (hasPromise) {
|
|
16567
17272
|
promise.then(function() {
|
|
16568
17273
|
callback();
|
|
@@ -16732,7 +17437,7 @@ function isSimilar(source, target) {
|
|
|
16732
17437
|
if (!source && target || source && !target) {
|
|
16733
17438
|
return false;
|
|
16734
17439
|
}
|
|
16735
|
-
if (!source || !target || _typeof
|
|
17440
|
+
if (!source || !target || _typeof(source) !== "object" || _typeof(target) !== "object") {
|
|
16736
17441
|
return false;
|
|
16737
17442
|
}
|
|
16738
17443
|
var sourceKeys = Object.keys(source);
|
|
@@ -16749,7 +17454,7 @@ function isSimilar(source, target) {
|
|
|
16749
17454
|
}
|
|
16750
17455
|
function defaultGetValueFromEvent(valuePropName) {
|
|
16751
17456
|
var event = arguments.length <= 1 ? void 0 : arguments[1];
|
|
16752
|
-
if (event && event.target && _typeof
|
|
17457
|
+
if (event && event.target && _typeof(event.target) === "object" && valuePropName in event.target) {
|
|
16753
17458
|
return event.target[valuePropName];
|
|
16754
17459
|
}
|
|
16755
17460
|
return event;
|
|
@@ -17037,7 +17742,7 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17037
17742
|
});
|
|
17038
17743
|
}
|
|
17039
17744
|
var childList = toArray$2(children);
|
|
17040
|
-
if (childList.length !== 1 || !/* @__PURE__ */ React$
|
|
17745
|
+
if (childList.length !== 1 || !/* @__PURE__ */ React$2.isValidElement(childList[0])) {
|
|
17041
17746
|
return {
|
|
17042
17747
|
child: childList,
|
|
17043
17748
|
isFunction: false
|
|
@@ -17154,19 +17859,19 @@ var Field = /* @__PURE__ */ function(_React$Component) {
|
|
|
17154
17859
|
var returnChildNode;
|
|
17155
17860
|
if (isFunction2) {
|
|
17156
17861
|
returnChildNode = child;
|
|
17157
|
-
} else if (/* @__PURE__ */ React$
|
|
17158
|
-
returnChildNode = /* @__PURE__ */ React$
|
|
17862
|
+
} else if (/* @__PURE__ */ React$2.isValidElement(child)) {
|
|
17863
|
+
returnChildNode = /* @__PURE__ */ React$2.cloneElement(child, this.getControlled(child.props));
|
|
17159
17864
|
} else {
|
|
17160
|
-
warningOnce
|
|
17865
|
+
warningOnce(!child, "`children` of Field is not validate ReactElement.");
|
|
17161
17866
|
returnChildNode = child;
|
|
17162
17867
|
}
|
|
17163
|
-
return /* @__PURE__ */ React$
|
|
17868
|
+
return /* @__PURE__ */ React$2.createElement(React$2.Fragment, {
|
|
17164
17869
|
key: resetCount
|
|
17165
17870
|
}, returnChildNode);
|
|
17166
17871
|
}
|
|
17167
17872
|
}]);
|
|
17168
17873
|
return Field2;
|
|
17169
|
-
}(React$
|
|
17874
|
+
}(React$2.Component);
|
|
17170
17875
|
Field.contextType = Context$2;
|
|
17171
17876
|
Field.defaultProps = {
|
|
17172
17877
|
trigger: "onChange",
|
|
@@ -17174,17 +17879,17 @@ Field.defaultProps = {
|
|
|
17174
17879
|
};
|
|
17175
17880
|
function WrapperField(_ref5) {
|
|
17176
17881
|
var name = _ref5.name, restProps = _objectWithoutProperties(_ref5, _excluded$4);
|
|
17177
|
-
var fieldContext = React$
|
|
17178
|
-
var listContext = React$
|
|
17882
|
+
var fieldContext = React$2.useContext(Context$2);
|
|
17883
|
+
var listContext = React$2.useContext(ListContext);
|
|
17179
17884
|
var namePath = name !== void 0 ? getNamePath(name) : void 0;
|
|
17180
17885
|
var key = "keep";
|
|
17181
17886
|
if (!restProps.isListField) {
|
|
17182
17887
|
key = "_".concat((namePath || []).join("_"));
|
|
17183
17888
|
}
|
|
17184
17889
|
if (restProps.preserve === false && restProps.isListField && namePath.length <= 1) {
|
|
17185
|
-
warningOnce
|
|
17890
|
+
warningOnce(false, "`preserve` should not apply on Form.List fields.");
|
|
17186
17891
|
}
|
|
17187
|
-
return /* @__PURE__ */ React$
|
|
17892
|
+
return /* @__PURE__ */ React$2.createElement(Field, _extends$1({
|
|
17188
17893
|
key,
|
|
17189
17894
|
name: namePath,
|
|
17190
17895
|
isListField: !!listContext
|
|
@@ -17194,23 +17899,23 @@ function WrapperField(_ref5) {
|
|
|
17194
17899
|
}
|
|
17195
17900
|
var List = function List2(_ref) {
|
|
17196
17901
|
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$
|
|
17902
|
+
var context = React$2.useContext(Context$2);
|
|
17903
|
+
var wrapperListContext = React$2.useContext(ListContext);
|
|
17904
|
+
var keyRef = React$2.useRef({
|
|
17200
17905
|
keys: [],
|
|
17201
17906
|
id: 0
|
|
17202
17907
|
});
|
|
17203
17908
|
var keyManager = keyRef.current;
|
|
17204
|
-
var prefixName = React$
|
|
17909
|
+
var prefixName = React$2.useMemo(function() {
|
|
17205
17910
|
var parentPrefixName = getNamePath(context.prefixName) || [];
|
|
17206
17911
|
return [].concat(_toConsumableArray(parentPrefixName), _toConsumableArray(getNamePath(name)));
|
|
17207
17912
|
}, [context.prefixName, name]);
|
|
17208
|
-
var fieldContext = React$
|
|
17913
|
+
var fieldContext = React$2.useMemo(function() {
|
|
17209
17914
|
return _objectSpread2(_objectSpread2({}, context), {}, {
|
|
17210
17915
|
prefixName
|
|
17211
17916
|
});
|
|
17212
17917
|
}, [context, prefixName]);
|
|
17213
|
-
var listContext = React$
|
|
17918
|
+
var listContext = React$2.useMemo(function() {
|
|
17214
17919
|
return {
|
|
17215
17920
|
getKey: function getKey(namePath) {
|
|
17216
17921
|
var len = prefixName.length;
|
|
@@ -17220,7 +17925,7 @@ var List = function List2(_ref) {
|
|
|
17220
17925
|
};
|
|
17221
17926
|
}, [prefixName]);
|
|
17222
17927
|
if (typeof children !== "function") {
|
|
17223
|
-
warningOnce
|
|
17928
|
+
warningOnce(false, "Form.List only accepts function as children.");
|
|
17224
17929
|
return null;
|
|
17225
17930
|
}
|
|
17226
17931
|
var shouldUpdate = function shouldUpdate2(prevValue, nextValue, _ref2) {
|
|
@@ -17230,11 +17935,11 @@ var List = function List2(_ref) {
|
|
|
17230
17935
|
}
|
|
17231
17936
|
return prevValue !== nextValue;
|
|
17232
17937
|
};
|
|
17233
|
-
return /* @__PURE__ */ React$
|
|
17938
|
+
return /* @__PURE__ */ React$2.createElement(ListContext.Provider, {
|
|
17234
17939
|
value: listContext
|
|
17235
|
-
}, /* @__PURE__ */ React$
|
|
17940
|
+
}, /* @__PURE__ */ React$2.createElement(Context$2.Provider, {
|
|
17236
17941
|
value: fieldContext
|
|
17237
|
-
}, /* @__PURE__ */ React$
|
|
17942
|
+
}, /* @__PURE__ */ React$2.createElement(WrapperField, {
|
|
17238
17943
|
name: [],
|
|
17239
17944
|
shouldUpdate,
|
|
17240
17945
|
rules: rules2,
|
|
@@ -17257,7 +17962,7 @@ var List = function List2(_ref) {
|
|
|
17257
17962
|
onChange([].concat(_toConsumableArray(newValue.slice(0, index2)), [defaultValue], _toConsumableArray(newValue.slice(index2))));
|
|
17258
17963
|
} else {
|
|
17259
17964
|
if (index2 < 0 || index2 > newValue.length) {
|
|
17260
|
-
warningOnce
|
|
17965
|
+
warningOnce(false, "The second parameter of the add function should be a valid positive number.");
|
|
17261
17966
|
}
|
|
17262
17967
|
keyManager.keys = [].concat(_toConsumableArray(keyManager.keys), [keyManager.id]);
|
|
17263
17968
|
onChange([].concat(_toConsumableArray(newValue), [defaultValue]));
|
|
@@ -17293,7 +17998,7 @@ var List = function List2(_ref) {
|
|
|
17293
17998
|
if (!Array.isArray(listValue)) {
|
|
17294
17999
|
listValue = [];
|
|
17295
18000
|
{
|
|
17296
|
-
warningOnce
|
|
18001
|
+
warningOnce(false, "Current value of '".concat(prefixName.join(" > "), "' is not an array type."));
|
|
17297
18002
|
}
|
|
17298
18003
|
}
|
|
17299
18004
|
return children(listValue.map(function(__, index2) {
|
|
@@ -17340,7 +18045,7 @@ function allPromiseFinish(promiseList) {
|
|
|
17340
18045
|
var SPLIT = "__@field_split__";
|
|
17341
18046
|
function normalize(namePath) {
|
|
17342
18047
|
return namePath.map(function(cell) {
|
|
17343
|
-
return "".concat(_typeof
|
|
18048
|
+
return "".concat(_typeof(cell), ":").concat(cell);
|
|
17344
18049
|
}).join(SPLIT);
|
|
17345
18050
|
}
|
|
17346
18051
|
var NameMap = /* @__PURE__ */ function() {
|
|
@@ -17457,7 +18162,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
17457
18162
|
registerWatch: _this.registerWatch
|
|
17458
18163
|
};
|
|
17459
18164
|
}
|
|
17460
|
-
warningOnce
|
|
18165
|
+
warningOnce(false, "`getInternalHooks` is internal usage. Should not call directly.");
|
|
17461
18166
|
return null;
|
|
17462
18167
|
};
|
|
17463
18168
|
this.useSubscribe = function(subscribable) {
|
|
@@ -17524,7 +18229,7 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
17524
18229
|
_this.timeoutId = setTimeout(function() {
|
|
17525
18230
|
_this.timeoutId = null;
|
|
17526
18231
|
if (!_this.formHooked) {
|
|
17527
|
-
warningOnce
|
|
18232
|
+
warningOnce(false, "Instance created by `useForm` is not connected to any Form element. Forget to pass `form` prop?");
|
|
17528
18233
|
}
|
|
17529
18234
|
});
|
|
17530
18235
|
}
|
|
@@ -17720,11 +18425,11 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
17720
18425
|
var namePath = field.getNamePath();
|
|
17721
18426
|
var formInitialValue = _this.getInitialValue(namePath);
|
|
17722
18427
|
if (formInitialValue !== void 0) {
|
|
17723
|
-
warningOnce
|
|
18428
|
+
warningOnce(false, "Form already set 'initialValues' with path '".concat(namePath.join("."), "'. Field can not overwrite it."));
|
|
17724
18429
|
} else {
|
|
17725
18430
|
var records = cache.get(namePath);
|
|
17726
18431
|
if (records && records.size > 1) {
|
|
17727
|
-
warningOnce
|
|
18432
|
+
warningOnce(false, "Multiple Field with path '".concat(namePath.join("."), "' set 'initialValue'. Can not decide which one to pick."));
|
|
17728
18433
|
} else if (records) {
|
|
17729
18434
|
var originValue = _this.getFieldValue(namePath);
|
|
17730
18435
|
if (!info.skipExist || originValue === void 0) {
|
|
@@ -18129,8 +18834,8 @@ var FormStore = /* @__PURE__ */ _createClass(function FormStore2(forceRootUpdate
|
|
|
18129
18834
|
this.forceRootUpdate = forceRootUpdate;
|
|
18130
18835
|
});
|
|
18131
18836
|
function useForm(form) {
|
|
18132
|
-
var formRef = React$
|
|
18133
|
-
var _React$useState = React$
|
|
18837
|
+
var formRef = React$2.useRef();
|
|
18838
|
+
var _React$useState = React$2.useState({}), _React$useState2 = _slicedToArray(_React$useState, 2), forceUpdate = _React$useState2[1];
|
|
18134
18839
|
if (!formRef.current) {
|
|
18135
18840
|
if (form) {
|
|
18136
18841
|
formRef.current = form;
|
|
@@ -18144,7 +18849,7 @@ function useForm(form) {
|
|
|
18144
18849
|
}
|
|
18145
18850
|
return [formRef.current];
|
|
18146
18851
|
}
|
|
18147
|
-
var FormContext$1 = /* @__PURE__ */ React$
|
|
18852
|
+
var FormContext$1 = /* @__PURE__ */ React$2.createContext({
|
|
18148
18853
|
triggerFormChange: function triggerFormChange() {
|
|
18149
18854
|
},
|
|
18150
18855
|
triggerFormFinish: function triggerFormFinish() {
|
|
@@ -18156,9 +18861,9 @@ var FormContext$1 = /* @__PURE__ */ React$1.createContext({
|
|
|
18156
18861
|
});
|
|
18157
18862
|
var FormProvider = function FormProvider2(_ref) {
|
|
18158
18863
|
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$
|
|
18864
|
+
var formContext = React$2.useContext(FormContext$1);
|
|
18865
|
+
var formsRef = React$2.useRef({});
|
|
18866
|
+
return /* @__PURE__ */ React$2.createElement(FormContext$1.Provider, {
|
|
18162
18867
|
value: _objectSpread2(_objectSpread2({}, formContext), {}, {
|
|
18163
18868
|
validateMessages: _objectSpread2(_objectSpread2({}, formContext.validateMessages), validateMessages),
|
|
18164
18869
|
// =========================================================
|
|
@@ -18198,15 +18903,15 @@ var FormProvider = function FormProvider2(_ref) {
|
|
|
18198
18903
|
}, children);
|
|
18199
18904
|
};
|
|
18200
18905
|
var _excluded$2 = ["name", "initialValues", "fields", "form", "preserve", "children", "component", "validateMessages", "validateTrigger", "onValuesChange", "onFieldsChange", "onFinish", "onFinishFailed"];
|
|
18201
|
-
var Form$1 = function Form(_ref,
|
|
18906
|
+
var Form$1 = function Form(_ref, ref2) {
|
|
18202
18907
|
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$
|
|
18908
|
+
var formContext = React$2.useContext(FormContext$1);
|
|
18204
18909
|
var _useForm = useForm(form), _useForm2 = _slicedToArray(_useForm, 1), formInstance = _useForm2[0];
|
|
18205
18910
|
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$
|
|
18911
|
+
React$2.useImperativeHandle(ref2, function() {
|
|
18207
18912
|
return formInstance;
|
|
18208
18913
|
});
|
|
18209
|
-
React$
|
|
18914
|
+
React$2.useEffect(function() {
|
|
18210
18915
|
formContext.registerForm(name, formInstance);
|
|
18211
18916
|
return function() {
|
|
18212
18917
|
formContext.unregisterForm(name);
|
|
@@ -18233,12 +18938,12 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18233
18938
|
onFinishFailed
|
|
18234
18939
|
});
|
|
18235
18940
|
setPreserve(preserve);
|
|
18236
|
-
var mountRef = React$
|
|
18941
|
+
var mountRef = React$2.useRef(null);
|
|
18237
18942
|
setInitialValues(initialValues, !mountRef.current);
|
|
18238
18943
|
if (!mountRef.current) {
|
|
18239
18944
|
mountRef.current = true;
|
|
18240
18945
|
}
|
|
18241
|
-
React$
|
|
18946
|
+
React$2.useEffect(
|
|
18242
18947
|
function() {
|
|
18243
18948
|
return destroyForm;
|
|
18244
18949
|
},
|
|
@@ -18254,27 +18959,27 @@ var Form$1 = function Form(_ref, ref) {
|
|
|
18254
18959
|
childrenNode = children;
|
|
18255
18960
|
}
|
|
18256
18961
|
useSubscribe(!childrenRenderProps);
|
|
18257
|
-
var prevFieldsRef = React$
|
|
18258
|
-
React$
|
|
18962
|
+
var prevFieldsRef = React$2.useRef();
|
|
18963
|
+
React$2.useEffect(function() {
|
|
18259
18964
|
if (!isSimilar(prevFieldsRef.current || [], fields || [])) {
|
|
18260
18965
|
formInstance.setFields(fields || []);
|
|
18261
18966
|
}
|
|
18262
18967
|
prevFieldsRef.current = fields;
|
|
18263
18968
|
}, [fields, formInstance]);
|
|
18264
|
-
var formContextValue = React$
|
|
18969
|
+
var formContextValue = React$2.useMemo(function() {
|
|
18265
18970
|
return _objectSpread2(_objectSpread2({}, formInstance), {}, {
|
|
18266
18971
|
validateTrigger
|
|
18267
18972
|
});
|
|
18268
18973
|
}, [formInstance, validateTrigger]);
|
|
18269
|
-
var wrapperNode = /* @__PURE__ */ React$
|
|
18974
|
+
var wrapperNode = /* @__PURE__ */ React$2.createElement(ListContext.Provider, {
|
|
18270
18975
|
value: null
|
|
18271
|
-
}, /* @__PURE__ */ React$
|
|
18976
|
+
}, /* @__PURE__ */ React$2.createElement(Context$2.Provider, {
|
|
18272
18977
|
value: formContextValue
|
|
18273
18978
|
}, childrenNode));
|
|
18274
18979
|
if (Component === false) {
|
|
18275
18980
|
return wrapperNode;
|
|
18276
18981
|
}
|
|
18277
|
-
return /* @__PURE__ */ React$
|
|
18982
|
+
return /* @__PURE__ */ React$2.createElement(Component, _extends$1({}, restProps, {
|
|
18278
18983
|
onSubmit: function onSubmit(event) {
|
|
18279
18984
|
event.preventDefault();
|
|
18280
18985
|
event.stopPropagation();
|
|
@@ -18298,7 +19003,7 @@ function stringify(value) {
|
|
|
18298
19003
|
var useWatchWarning = function(namePath) {
|
|
18299
19004
|
var fullyStr = namePath.join("__RC_FIELD_FORM_SPLIT__");
|
|
18300
19005
|
var nameStrRef = useRef(fullyStr);
|
|
18301
|
-
warningOnce
|
|
19006
|
+
warningOnce(nameStrRef.current === fullyStr, "`useWatch` is not support dynamic `namePath`. Please provide static instead.");
|
|
18302
19007
|
};
|
|
18303
19008
|
function useWatch() {
|
|
18304
19009
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
@@ -18310,7 +19015,7 @@ function useWatch() {
|
|
|
18310
19015
|
} : _form;
|
|
18311
19016
|
var form = options.form;
|
|
18312
19017
|
var _useState = useState(), _useState2 = _slicedToArray(_useState, 2), value = _useState2[0], setValue = _useState2[1];
|
|
18313
|
-
var valueStr = useMemo(function() {
|
|
19018
|
+
var valueStr = useMemo$2(function() {
|
|
18314
19019
|
return stringify(value);
|
|
18315
19020
|
}, [value]);
|
|
18316
19021
|
var valueStrRef = useRef(valueStr);
|
|
@@ -18319,7 +19024,7 @@ function useWatch() {
|
|
|
18319
19024
|
var formInstance = form || fieldContext;
|
|
18320
19025
|
var isValidForm = formInstance && formInstance._init;
|
|
18321
19026
|
{
|
|
18322
|
-
warningOnce
|
|
19027
|
+
warningOnce(args.length === 2 ? form ? isValidForm : true : isValidForm, "useWatch requires a form instance since it can not auto detect from context.");
|
|
18323
19028
|
}
|
|
18324
19029
|
var namePath = getNamePath(dependencies);
|
|
18325
19030
|
var namePathRef = useRef(namePath);
|
|
@@ -18350,7 +19055,7 @@ function useWatch() {
|
|
|
18350
19055
|
);
|
|
18351
19056
|
return value;
|
|
18352
19057
|
}
|
|
18353
|
-
var InternalForm = /* @__PURE__ */ React$
|
|
19058
|
+
var InternalForm = /* @__PURE__ */ React$2.forwardRef(Form$1);
|
|
18354
19059
|
var RefForm = InternalForm;
|
|
18355
19060
|
RefForm.FormProvider = FormProvider;
|
|
18356
19061
|
RefForm.Field = WrapperField;
|
|
@@ -18375,11 +19080,11 @@ function isNonNullObject(value) {
|
|
|
18375
19080
|
}
|
|
18376
19081
|
function isSpecial(value) {
|
|
18377
19082
|
var stringValue = Object.prototype.toString.call(value);
|
|
18378
|
-
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement(value);
|
|
19083
|
+
return stringValue === "[object RegExp]" || stringValue === "[object Date]" || isReactElement$1(value);
|
|
18379
19084
|
}
|
|
18380
19085
|
var canUseSymbol = typeof Symbol === "function" && Symbol.for;
|
|
18381
19086
|
var REACT_ELEMENT_TYPE = canUseSymbol ? Symbol.for("react.element") : 60103;
|
|
18382
|
-
function isReactElement(value) {
|
|
19087
|
+
function isReactElement$1(value) {
|
|
18383
19088
|
return value.$$typeof === REACT_ELEMENT_TYPE;
|
|
18384
19089
|
}
|
|
18385
19090
|
function emptyTarget(val) {
|
|
@@ -18498,7 +19203,7 @@ const FormArray = (props) => {
|
|
|
18498
19203
|
};
|
|
18499
19204
|
const classPrefix$P = "adm-form";
|
|
18500
19205
|
const defaultProps$B = defaultFormContext;
|
|
18501
|
-
const Form2 = forwardRef((p,
|
|
19206
|
+
const Form2 = forwardRef((p, ref2) => {
|
|
18502
19207
|
const props = mergeProps(defaultProps$B, p);
|
|
18503
19208
|
const {
|
|
18504
19209
|
className,
|
|
@@ -18514,7 +19219,7 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
18514
19219
|
const {
|
|
18515
19220
|
locale
|
|
18516
19221
|
} = useConfig();
|
|
18517
|
-
const validateMessages = useMemo(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
|
|
19222
|
+
const validateMessages = useMemo$2(() => merge(locale.Form.defaultValidateMessages, formProps.validateMessages || {}), [locale.Form.defaultValidateMessages, formProps.validateMessages]);
|
|
18518
19223
|
const lists = [];
|
|
18519
19224
|
let currentHeader = null;
|
|
18520
19225
|
let items = [];
|
|
@@ -18549,7 +19254,7 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
18549
19254
|
return React__default.createElement(RefForm, Object.assign({
|
|
18550
19255
|
className: classNames(classPrefix$P, className),
|
|
18551
19256
|
style: style2,
|
|
18552
|
-
ref
|
|
19257
|
+
ref: ref2
|
|
18553
19258
|
}, formProps, {
|
|
18554
19259
|
validateMessages
|
|
18555
19260
|
}), React__default.createElement(FormContext.Provider, {
|
|
@@ -18565,145 +19270,20 @@ const Form2 = forwardRef((p, ref) => {
|
|
|
18565
19270
|
}, footer));
|
|
18566
19271
|
});
|
|
18567
19272
|
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;
|
|
19273
|
+
var _interopRequireWildcard$1 = interopRequireWildcardExports.default;
|
|
19274
|
+
var _interopRequireDefault$3 = interopRequireDefaultExports.default;
|
|
18695
19275
|
Object.defineProperty(FieldContext, "__esModule", {
|
|
18696
19276
|
value: true
|
|
18697
19277
|
});
|
|
18698
19278
|
var default_1 = FieldContext.default = FieldContext.HOOK_MARK = void 0;
|
|
18699
|
-
var _warning = _interopRequireDefault(warning$
|
|
18700
|
-
var React = _interopRequireWildcard(React__default);
|
|
19279
|
+
var _warning = _interopRequireDefault$3(warning$3);
|
|
19280
|
+
var React$1 = _interopRequireWildcard$1(React__default);
|
|
18701
19281
|
var HOOK_MARK = "RC_FORM_INTERNAL_HOOKS";
|
|
18702
19282
|
FieldContext.HOOK_MARK = HOOK_MARK;
|
|
18703
19283
|
var warningFunc2 = function warningFunc3() {
|
|
18704
19284
|
(0, _warning.default)(false, "Can not find FormContext. Please make sure you wrap Field under Form.");
|
|
18705
19285
|
};
|
|
18706
|
-
var Context$1 = /* @__PURE__ */ React.createContext({
|
|
19286
|
+
var Context$1 = /* @__PURE__ */ React$1.createContext({
|
|
18707
19287
|
getFieldValue: warningFunc2,
|
|
18708
19288
|
getFieldsValue: warningFunc2,
|
|
18709
19289
|
getFieldError: warningFunc2,
|
|
@@ -18737,8 +19317,8 @@ var Context$1 = /* @__PURE__ */ React.createContext({
|
|
|
18737
19317
|
};
|
|
18738
19318
|
}
|
|
18739
19319
|
});
|
|
18740
|
-
var _default = Context$1;
|
|
18741
|
-
default_1 = FieldContext.default = _default;
|
|
19320
|
+
var _default$1 = Context$1;
|
|
19321
|
+
default_1 = FieldContext.default = _default$1;
|
|
18742
19322
|
function undefinedFallback(...items) {
|
|
18743
19323
|
let i2;
|
|
18744
19324
|
for (i2 = 0; i2 < items.length; i2++) {
|
|
@@ -20163,7 +20743,152 @@ function normalizePlacement(placement) {
|
|
|
20163
20743
|
var _a;
|
|
20164
20744
|
return (_a = record[placement]) !== null && _a !== void 0 ? _a : placement;
|
|
20165
20745
|
}
|
|
20166
|
-
|
|
20746
|
+
var findDOMNode$2 = {};
|
|
20747
|
+
var _interopRequireDefault$2 = interopRequireDefaultExports.default;
|
|
20748
|
+
Object.defineProperty(findDOMNode$2, "__esModule", {
|
|
20749
|
+
value: true
|
|
20750
|
+
});
|
|
20751
|
+
var _default = findDOMNode$2.default = findDOMNode$1;
|
|
20752
|
+
var getDOM_1 = findDOMNode$2.getDOM = getDOM$1;
|
|
20753
|
+
findDOMNode$2.isDOM = isDOM$1;
|
|
20754
|
+
var _typeof2$2 = _interopRequireDefault$2(_typeofExports);
|
|
20755
|
+
var _react$1 = _interopRequireDefault$2(React__default);
|
|
20756
|
+
var _reactDom = _interopRequireDefault$2(ReactDOM__default);
|
|
20757
|
+
function isDOM$1(node) {
|
|
20758
|
+
return node instanceof HTMLElement || node instanceof SVGElement;
|
|
20759
|
+
}
|
|
20760
|
+
function getDOM$1(node) {
|
|
20761
|
+
if (node && (0, _typeof2$2.default)(node) === "object" && isDOM$1(node.nativeElement)) {
|
|
20762
|
+
return node.nativeElement;
|
|
20763
|
+
}
|
|
20764
|
+
if (isDOM$1(node)) {
|
|
20765
|
+
return node;
|
|
20766
|
+
}
|
|
20767
|
+
return null;
|
|
20768
|
+
}
|
|
20769
|
+
function findDOMNode$1(node) {
|
|
20770
|
+
var domNode = getDOM$1(node);
|
|
20771
|
+
if (domNode) {
|
|
20772
|
+
return domNode;
|
|
20773
|
+
}
|
|
20774
|
+
if (node instanceof _react$1.default.Component) {
|
|
20775
|
+
var _ReactDOM$findDOMNode;
|
|
20776
|
+
return (_ReactDOM$findDOMNode = _reactDom.default.findDOMNode) === null || _ReactDOM$findDOMNode === void 0 ? void 0 : _ReactDOM$findDOMNode.call(_reactDom.default, node);
|
|
20777
|
+
}
|
|
20778
|
+
return null;
|
|
20779
|
+
}
|
|
20780
|
+
var ref = {};
|
|
20781
|
+
var useMemo$1 = {};
|
|
20782
|
+
var _interopRequireWildcard = interopRequireWildcardExports.default;
|
|
20783
|
+
Object.defineProperty(useMemo$1, "__esModule", {
|
|
20784
|
+
value: true
|
|
20785
|
+
});
|
|
20786
|
+
useMemo$1.default = useMemo;
|
|
20787
|
+
var React = _interopRequireWildcard(React__default);
|
|
20788
|
+
function useMemo(getValue2, condition, shouldUpdate) {
|
|
20789
|
+
var cacheRef = React.useRef({});
|
|
20790
|
+
if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
20791
|
+
cacheRef.current.value = getValue2();
|
|
20792
|
+
cacheRef.current.condition = condition;
|
|
20793
|
+
}
|
|
20794
|
+
return cacheRef.current.value;
|
|
20795
|
+
}
|
|
20796
|
+
var isFragment$1 = {};
|
|
20797
|
+
var _interopRequireDefault$1 = interopRequireDefaultExports.default;
|
|
20798
|
+
Object.defineProperty(isFragment$1, "__esModule", {
|
|
20799
|
+
value: true
|
|
20800
|
+
});
|
|
20801
|
+
isFragment$1.default = isFragment;
|
|
20802
|
+
var _typeof2$1 = _interopRequireDefault$1(_typeofExports);
|
|
20803
|
+
var REACT_ELEMENT_TYPE_18 = Symbol.for("react.element");
|
|
20804
|
+
var REACT_ELEMENT_TYPE_19 = Symbol.for("react.transitional.element");
|
|
20805
|
+
var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
|
|
20806
|
+
function isFragment(object4) {
|
|
20807
|
+
return (
|
|
20808
|
+
// Base object type
|
|
20809
|
+
object4 && (0, _typeof2$1.default)(object4) === "object" && // React Element type
|
|
20810
|
+
(object4.$$typeof === REACT_ELEMENT_TYPE_18 || object4.$$typeof === REACT_ELEMENT_TYPE_19) && // React Fragment type
|
|
20811
|
+
object4.type === REACT_FRAGMENT_TYPE
|
|
20812
|
+
);
|
|
20813
|
+
}
|
|
20814
|
+
var composeRef_1;
|
|
20815
|
+
var getNodeRef_1;
|
|
20816
|
+
var supportRef_1;
|
|
20817
|
+
var _interopRequireDefault = interopRequireDefaultExports.default;
|
|
20818
|
+
Object.defineProperty(ref, "__esModule", {
|
|
20819
|
+
value: true
|
|
20820
|
+
});
|
|
20821
|
+
ref.useComposeRef = supportRef_1 = ref.supportRef = ref.supportNodeRef = getNodeRef_1 = ref.getNodeRef = ref.fillRef = composeRef_1 = ref.composeRef = void 0;
|
|
20822
|
+
var _typeof2 = _interopRequireDefault(_typeofExports);
|
|
20823
|
+
var _react = React__default;
|
|
20824
|
+
var _reactIs = reactIsExports;
|
|
20825
|
+
var _useMemo = _interopRequireDefault(useMemo$1);
|
|
20826
|
+
var _isFragment = _interopRequireDefault(isFragment$1);
|
|
20827
|
+
var ReactMajorVersion = Number(_react.version.split(".")[0]);
|
|
20828
|
+
var fillRef2 = ref.fillRef = function fillRef3(ref2, node) {
|
|
20829
|
+
if (typeof ref2 === "function") {
|
|
20830
|
+
ref2(node);
|
|
20831
|
+
} else if ((0, _typeof2.default)(ref2) === "object" && ref2 && "current" in ref2) {
|
|
20832
|
+
ref2.current = node;
|
|
20833
|
+
}
|
|
20834
|
+
};
|
|
20835
|
+
var composeRef2 = composeRef_1 = ref.composeRef = function composeRef3() {
|
|
20836
|
+
for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
20837
|
+
refs[_key] = arguments[_key];
|
|
20838
|
+
}
|
|
20839
|
+
var refList = refs.filter(Boolean);
|
|
20840
|
+
if (refList.length <= 1) {
|
|
20841
|
+
return refList[0];
|
|
20842
|
+
}
|
|
20843
|
+
return function(node) {
|
|
20844
|
+
refs.forEach(function(ref2) {
|
|
20845
|
+
fillRef2(ref2, node);
|
|
20846
|
+
});
|
|
20847
|
+
};
|
|
20848
|
+
};
|
|
20849
|
+
ref.useComposeRef = function useComposeRef() {
|
|
20850
|
+
for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
|
20851
|
+
refs[_key2] = arguments[_key2];
|
|
20852
|
+
}
|
|
20853
|
+
return (0, _useMemo.default)(function() {
|
|
20854
|
+
return composeRef2.apply(void 0, refs);
|
|
20855
|
+
}, refs, function(prev, next) {
|
|
20856
|
+
return prev.length !== next.length || prev.every(function(ref2, i2) {
|
|
20857
|
+
return ref2 !== next[i2];
|
|
20858
|
+
});
|
|
20859
|
+
});
|
|
20860
|
+
};
|
|
20861
|
+
var supportRef2 = supportRef_1 = ref.supportRef = function supportRef3(nodeOrComponent) {
|
|
20862
|
+
var _type$prototype, _nodeOrComponent$prot;
|
|
20863
|
+
if (!nodeOrComponent) {
|
|
20864
|
+
return false;
|
|
20865
|
+
}
|
|
20866
|
+
if (isReactElement(nodeOrComponent) && ReactMajorVersion >= 19) {
|
|
20867
|
+
return true;
|
|
20868
|
+
}
|
|
20869
|
+
var type4 = (0, _reactIs.isMemo)(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
|
|
20870
|
+
if (typeof type4 === "function" && !((_type$prototype = type4.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render) && type4.$$typeof !== _reactIs.ForwardRef) {
|
|
20871
|
+
return false;
|
|
20872
|
+
}
|
|
20873
|
+
if (typeof nodeOrComponent === "function" && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render) && nodeOrComponent.$$typeof !== _reactIs.ForwardRef) {
|
|
20874
|
+
return false;
|
|
20875
|
+
}
|
|
20876
|
+
return true;
|
|
20877
|
+
};
|
|
20878
|
+
function isReactElement(node) {
|
|
20879
|
+
return /* @__PURE__ */ (0, _react.isValidElement)(node) && !(0, _isFragment.default)(node);
|
|
20880
|
+
}
|
|
20881
|
+
ref.supportNodeRef = function supportNodeRef(node) {
|
|
20882
|
+
return isReactElement(node) && supportRef2(node);
|
|
20883
|
+
};
|
|
20884
|
+
getNodeRef_1 = ref.getNodeRef = function getNodeRef(node) {
|
|
20885
|
+
if (node && isReactElement(node)) {
|
|
20886
|
+
var ele = node;
|
|
20887
|
+
return ele.props.propertyIsEnumerable("ref") ? ele.props.ref : ele.ref;
|
|
20888
|
+
}
|
|
20889
|
+
return null;
|
|
20890
|
+
};
|
|
20891
|
+
class LegacyWrapper extends React$2.Component {
|
|
20167
20892
|
constructor() {
|
|
20168
20893
|
super(...arguments);
|
|
20169
20894
|
this.element = null;
|
|
@@ -20172,7 +20897,7 @@ class Wrapper extends React__default.Component {
|
|
|
20172
20897
|
this.componentDidUpdate();
|
|
20173
20898
|
}
|
|
20174
20899
|
componentDidUpdate() {
|
|
20175
|
-
const node =
|
|
20900
|
+
const node = _default(this);
|
|
20176
20901
|
if (node instanceof Element) {
|
|
20177
20902
|
this.element = node;
|
|
20178
20903
|
} else {
|
|
@@ -20180,9 +20905,33 @@ class Wrapper extends React__default.Component {
|
|
|
20180
20905
|
}
|
|
20181
20906
|
}
|
|
20182
20907
|
render() {
|
|
20183
|
-
return
|
|
20908
|
+
return this.props.children;
|
|
20184
20909
|
}
|
|
20185
20910
|
}
|
|
20911
|
+
const Wrapper = React$2.forwardRef(({
|
|
20912
|
+
children
|
|
20913
|
+
}, ref2) => {
|
|
20914
|
+
const elementRef = React$2.useRef(null);
|
|
20915
|
+
const legacyWrapperRef = React$2.createRef();
|
|
20916
|
+
const child = React$2.Children.only(children);
|
|
20917
|
+
const canUseRef = supportRef_1(children);
|
|
20918
|
+
const getElement = () => {
|
|
20919
|
+
var _a;
|
|
20920
|
+
if (canUseRef) {
|
|
20921
|
+
return getDOM_1(elementRef.current);
|
|
20922
|
+
}
|
|
20923
|
+
return (_a = legacyWrapperRef.current) === null || _a === void 0 ? void 0 : _a.element;
|
|
20924
|
+
};
|
|
20925
|
+
React$2.useImperativeHandle(ref2, () => ({
|
|
20926
|
+
element: getElement()
|
|
20927
|
+
}));
|
|
20928
|
+
const composedRef = composeRef_1(elementRef, getNodeRef_1(child));
|
|
20929
|
+
return canUseRef ? React$2.cloneElement(child, {
|
|
20930
|
+
ref: composedRef
|
|
20931
|
+
}) : React$2.createElement(LegacyWrapper, {
|
|
20932
|
+
ref: legacyWrapperRef
|
|
20933
|
+
}, child);
|
|
20934
|
+
});
|
|
20186
20935
|
const classPrefix$O = `adm-popover`;
|
|
20187
20936
|
const defaultProps$A = {
|
|
20188
20937
|
placement: "top",
|
|
@@ -20191,7 +20940,7 @@ const defaultProps$A = {
|
|
|
20191
20940
|
getContainer: () => document.body,
|
|
20192
20941
|
mode: "light"
|
|
20193
20942
|
};
|
|
20194
|
-
const Popover$1 = forwardRef((p,
|
|
20943
|
+
const Popover$1 = forwardRef((p, ref2) => {
|
|
20195
20944
|
const props = mergeProps(defaultProps$A, p);
|
|
20196
20945
|
const placement = normalizePlacement(props.placement);
|
|
20197
20946
|
const [visible, setVisible] = usePropsValue({
|
|
@@ -20199,7 +20948,7 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20199
20948
|
defaultValue: props.defaultVisible,
|
|
20200
20949
|
onChange: props.onVisibleChange
|
|
20201
20950
|
});
|
|
20202
|
-
useImperativeHandle(
|
|
20951
|
+
useImperativeHandle(ref2, () => ({
|
|
20203
20952
|
show: () => setVisible(true),
|
|
20204
20953
|
hide: () => setVisible(false),
|
|
20205
20954
|
visible
|
|
@@ -20317,9 +21066,9 @@ const Popover$1 = forwardRef((p, ref) => {
|
|
|
20317
21066
|
}, props.children), shouldRender && renderToContainer(props.getContainer, floating));
|
|
20318
21067
|
});
|
|
20319
21068
|
const classPrefix$N = `adm-popover-menu`;
|
|
20320
|
-
const PopoverMenu = forwardRef((props,
|
|
21069
|
+
const PopoverMenu = forwardRef((props, ref2) => {
|
|
20321
21070
|
const innerRef = useRef(null);
|
|
20322
|
-
useImperativeHandle(
|
|
21071
|
+
useImperativeHandle(ref2, () => innerRef.current, []);
|
|
20323
21072
|
const onClick = useCallback((e2) => {
|
|
20324
21073
|
var _a;
|
|
20325
21074
|
const {
|
|
@@ -20330,7 +21079,7 @@ const PopoverMenu = forwardRef((props, ref) => {
|
|
|
20330
21079
|
}
|
|
20331
21080
|
(_a = innerRef.current) === null || _a === void 0 ? void 0 : _a.hide();
|
|
20332
21081
|
}, [props.onAction]);
|
|
20333
|
-
const overlay = useMemo(() => {
|
|
21082
|
+
const overlay = useMemo$2(() => {
|
|
20334
21083
|
const whetherScroll = (props === null || props === void 0 ? void 0 : props.maxCount) && props.actions.length > (props === null || props === void 0 ? void 0 : props.maxCount);
|
|
20335
21084
|
const innerHeight = (props === null || props === void 0 ? void 0 : props.maxCount) && (props === null || props === void 0 ? void 0 : props.maxCount) * 48;
|
|
20336
21085
|
return React__default.createElement("div", {
|
|
@@ -20996,7 +21745,7 @@ const Slide = (props) => {
|
|
|
20996
21745
|
}))));
|
|
20997
21746
|
};
|
|
20998
21747
|
const classPrefix$J = `adm-image-viewer`;
|
|
20999
|
-
const Slides = forwardRef((props,
|
|
21748
|
+
const Slides = forwardRef((props, ref2) => {
|
|
21000
21749
|
const slideWidth = window.innerWidth + convertPx(16);
|
|
21001
21750
|
const [{
|
|
21002
21751
|
x
|
|
@@ -21017,7 +21766,7 @@ const Slides = forwardRef((props, ref) => {
|
|
|
21017
21766
|
immediate
|
|
21018
21767
|
});
|
|
21019
21768
|
}
|
|
21020
|
-
useImperativeHandle(
|
|
21769
|
+
useImperativeHandle(ref2, () => ({
|
|
21021
21770
|
swipeTo
|
|
21022
21771
|
}));
|
|
21023
21772
|
const dragLockRef = useRef(false);
|
|
@@ -21112,12 +21861,12 @@ const ImageViewer$1 = (p) => {
|
|
|
21112
21861
|
const multiDefaultProps = Object.assign(Object.assign({}, defaultProps$z), {
|
|
21113
21862
|
defaultIndex: 0
|
|
21114
21863
|
});
|
|
21115
|
-
const MultiImageViewer = forwardRef((p,
|
|
21864
|
+
const MultiImageViewer = forwardRef((p, ref2) => {
|
|
21116
21865
|
var _a, _b, _c;
|
|
21117
21866
|
const props = mergeProps(multiDefaultProps, p);
|
|
21118
21867
|
const [index2, setIndex] = useState(props.defaultIndex);
|
|
21119
21868
|
const slidesRef = useRef(null);
|
|
21120
|
-
useImperativeHandle(
|
|
21869
|
+
useImperativeHandle(ref2, () => ({
|
|
21121
21870
|
swipeTo: (index3, immediate) => {
|
|
21122
21871
|
var _a2;
|
|
21123
21872
|
setIndex(index3);
|
|
@@ -21232,7 +21981,7 @@ const PreviewItem = (props) => {
|
|
|
21232
21981
|
onDelete,
|
|
21233
21982
|
imageFit
|
|
21234
21983
|
} = props;
|
|
21235
|
-
const src = useMemo(() => {
|
|
21984
|
+
const src = useMemo$2(() => {
|
|
21236
21985
|
if (url2) {
|
|
21237
21986
|
return url2;
|
|
21238
21987
|
}
|
|
@@ -21290,7 +22039,7 @@ const defaultProps$x = {
|
|
|
21290
22039
|
showFailed: true,
|
|
21291
22040
|
imageFit: "cover"
|
|
21292
22041
|
};
|
|
21293
|
-
const ImageUploader = forwardRef((p,
|
|
22042
|
+
const ImageUploader = forwardRef((p, ref2) => {
|
|
21294
22043
|
const {
|
|
21295
22044
|
locale
|
|
21296
22045
|
} = useConfig();
|
|
@@ -21493,7 +22242,7 @@ const ImageUploader = forwardRef((p, ref) => {
|
|
|
21493
22242
|
className: `${classPrefix$F}-input`,
|
|
21494
22243
|
onChange
|
|
21495
22244
|
})));
|
|
21496
|
-
useImperativeHandle(
|
|
22245
|
+
useImperativeHandle(ref2, () => ({
|
|
21497
22246
|
get nativeElement() {
|
|
21498
22247
|
return inputRef.current;
|
|
21499
22248
|
}
|
|
@@ -21583,7 +22332,7 @@ const classPrefix$D = `adm-index-bar`;
|
|
|
21583
22332
|
const defaultProps$w = {
|
|
21584
22333
|
sticky: true
|
|
21585
22334
|
};
|
|
21586
|
-
const IndexBar = forwardRef((p,
|
|
22335
|
+
const IndexBar = forwardRef((p, ref2) => {
|
|
21587
22336
|
const props = mergeProps(defaultProps$w, p);
|
|
21588
22337
|
const titleHeight = convertPx(35);
|
|
21589
22338
|
const bodyRef = useRef(null);
|
|
@@ -21613,7 +22362,7 @@ const IndexBar = forwardRef((p, ref) => {
|
|
|
21613
22362
|
const firstItem = indexItems[0];
|
|
21614
22363
|
return firstItem ? firstItem.index : null;
|
|
21615
22364
|
});
|
|
21616
|
-
useImperativeHandle(
|
|
22365
|
+
useImperativeHandle(ref2, () => ({
|
|
21617
22366
|
scrollTo
|
|
21618
22367
|
}));
|
|
21619
22368
|
function scrollTo(index2) {
|
|
@@ -21820,7 +22569,7 @@ const defaultProps$u = {
|
|
|
21820
22569
|
clearIcon: React__default.createElement(CloseCircleFill, null),
|
|
21821
22570
|
onlyShowClearWhenFocus: true
|
|
21822
22571
|
};
|
|
21823
|
-
const Input = forwardRef((props,
|
|
22572
|
+
const Input = forwardRef((props, ref2) => {
|
|
21824
22573
|
const {
|
|
21825
22574
|
locale,
|
|
21826
22575
|
input: componentConfig = {}
|
|
@@ -21836,7 +22585,7 @@ const Input = forwardRef((props, ref) => {
|
|
|
21836
22585
|
nativeInputRef,
|
|
21837
22586
|
enterKeyHint: mergedProps.enterKeyHint
|
|
21838
22587
|
});
|
|
21839
|
-
useImperativeHandle(
|
|
22588
|
+
useImperativeHandle(ref2, () => ({
|
|
21840
22589
|
clear: () => {
|
|
21841
22590
|
setValue("");
|
|
21842
22591
|
},
|
|
@@ -22368,7 +23117,7 @@ const NumberKeyboard = (p) => {
|
|
|
22368
23117
|
locale
|
|
22369
23118
|
} = useConfig();
|
|
22370
23119
|
const keyboardRef = useRef(null);
|
|
22371
|
-
const keys2 = useMemo(() => {
|
|
23120
|
+
const keys2 = useMemo$2(() => {
|
|
22372
23121
|
const defaultKeys = ["1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
22373
23122
|
const keyList = randomOrder ? shuffle(defaultKeys) : defaultKeys;
|
|
22374
23123
|
const customKeys = Array.isArray(customKey) ? customKey : [customKey];
|
|
@@ -22550,7 +23299,7 @@ const defaultProps$o = {
|
|
|
22550
23299
|
caret: true,
|
|
22551
23300
|
inputMode: "numeric"
|
|
22552
23301
|
};
|
|
22553
|
-
const PasscodeInput = forwardRef((p,
|
|
23302
|
+
const PasscodeInput = forwardRef((p, ref2) => {
|
|
22554
23303
|
const props = mergeProps(defaultProps$o, p);
|
|
22555
23304
|
const cellLength = props.length > 0 && props.length < Infinity ? Math.floor(props.length) : defaultProps$o.length;
|
|
22556
23305
|
const {
|
|
@@ -22594,7 +23343,7 @@ const PasscodeInput = forwardRef((p, ref) => {
|
|
|
22594
23343
|
setFocused(false);
|
|
22595
23344
|
(_a = props.onBlur) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
22596
23345
|
};
|
|
22597
|
-
useImperativeHandle(
|
|
23346
|
+
useImperativeHandle(ref2, () => ({
|
|
22598
23347
|
focus: () => {
|
|
22599
23348
|
var _a;
|
|
22600
23349
|
return (_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -23206,7 +23955,7 @@ const defaultProps$g = {
|
|
|
23206
23955
|
defaultValue: "",
|
|
23207
23956
|
clearOnCancel: true
|
|
23208
23957
|
};
|
|
23209
|
-
const SearchBar = forwardRef((props,
|
|
23958
|
+
const SearchBar = forwardRef((props, ref2) => {
|
|
23210
23959
|
const {
|
|
23211
23960
|
locale,
|
|
23212
23961
|
searchBar: componentConfig = {}
|
|
@@ -23219,7 +23968,7 @@ const SearchBar = forwardRef((props, ref) => {
|
|
|
23219
23968
|
const [hasFocus, setHasFocus] = useState(false);
|
|
23220
23969
|
const inputRef = useRef(null);
|
|
23221
23970
|
const composingRef = useRef(false);
|
|
23222
|
-
useImperativeHandle(
|
|
23971
|
+
useImperativeHandle(ref2, () => ({
|
|
23223
23972
|
clear: () => {
|
|
23224
23973
|
var _a;
|
|
23225
23974
|
return (_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.clear();
|
|
@@ -23316,7 +24065,7 @@ const SearchBar = forwardRef((props, ref) => {
|
|
|
23316
24065
|
})), renderCancelButton()));
|
|
23317
24066
|
});
|
|
23318
24067
|
function omit(obj, fields) {
|
|
23319
|
-
var clone =
|
|
24068
|
+
var clone = Object.assign({}, obj);
|
|
23320
24069
|
if (Array.isArray(fields)) {
|
|
23321
24070
|
fields.forEach(function(key) {
|
|
23322
24071
|
delete clone[key];
|
|
@@ -23327,16 +24076,27 @@ function omit(obj, fields) {
|
|
|
23327
24076
|
function isDOM(node) {
|
|
23328
24077
|
return node instanceof HTMLElement || node instanceof SVGElement;
|
|
23329
24078
|
}
|
|
23330
|
-
function
|
|
24079
|
+
function getDOM(node) {
|
|
24080
|
+
if (node && _typeof(node) === "object" && isDOM(node.nativeElement)) {
|
|
24081
|
+
return node.nativeElement;
|
|
24082
|
+
}
|
|
23331
24083
|
if (isDOM(node)) {
|
|
23332
24084
|
return node;
|
|
23333
24085
|
}
|
|
24086
|
+
return null;
|
|
24087
|
+
}
|
|
24088
|
+
function findDOMNode(node) {
|
|
24089
|
+
var domNode = getDOM(node);
|
|
24090
|
+
if (domNode) {
|
|
24091
|
+
return domNode;
|
|
24092
|
+
}
|
|
23334
24093
|
if (node instanceof React__default.Component) {
|
|
23335
|
-
|
|
24094
|
+
var _ReactDOM$findDOMNode;
|
|
24095
|
+
return (_ReactDOM$findDOMNode = ReactDOM__default.findDOMNode) === null || _ReactDOM$findDOMNode === void 0 ? void 0 : _ReactDOM$findDOMNode.call(ReactDOM__default, node);
|
|
23336
24096
|
}
|
|
23337
24097
|
return null;
|
|
23338
24098
|
}
|
|
23339
|
-
var Context = /* @__PURE__ */ React$
|
|
24099
|
+
var Context = /* @__PURE__ */ React$2.createContext({});
|
|
23340
24100
|
var DomWrapper = /* @__PURE__ */ function(_React$Component) {
|
|
23341
24101
|
_inherits(DomWrapper2, _React$Component);
|
|
23342
24102
|
var _super = _createSuper(DomWrapper2);
|
|
@@ -23351,7 +24111,7 @@ var DomWrapper = /* @__PURE__ */ function(_React$Component) {
|
|
|
23351
24111
|
}
|
|
23352
24112
|
}]);
|
|
23353
24113
|
return DomWrapper2;
|
|
23354
|
-
}(React$
|
|
24114
|
+
}(React$2.Component);
|
|
23355
24115
|
var STATUS_NONE = "none";
|
|
23356
24116
|
var STATUS_APPEAR = "appear";
|
|
23357
24117
|
var STATUS_ENTER = "enter";
|
|
@@ -23419,7 +24179,7 @@ var transitionEndName = internalTransitionEndName || "transitionend";
|
|
|
23419
24179
|
function getTransitionName(transitionName, transitionType) {
|
|
23420
24180
|
if (!transitionName)
|
|
23421
24181
|
return null;
|
|
23422
|
-
if (_typeof
|
|
24182
|
+
if (_typeof(transitionName) === "object") {
|
|
23423
24183
|
var type4 = transitionType.replace(/-\w/g, function(match) {
|
|
23424
24184
|
return match[1].toUpperCase();
|
|
23425
24185
|
});
|
|
@@ -23431,7 +24191,7 @@ const useDomMotionEvents = function(callback) {
|
|
|
23431
24191
|
var cacheElementRef = useRef();
|
|
23432
24192
|
var callbackRef = useRef(callback);
|
|
23433
24193
|
callbackRef.current = callback;
|
|
23434
|
-
var onInternalMotionEnd = React$
|
|
24194
|
+
var onInternalMotionEnd = React$2.useCallback(function(event) {
|
|
23435
24195
|
callbackRef.current(event);
|
|
23436
24196
|
}, []);
|
|
23437
24197
|
function removeMotionEvents(element) {
|
|
@@ -23450,7 +24210,7 @@ const useDomMotionEvents = function(callback) {
|
|
|
23450
24210
|
cacheElementRef.current = element;
|
|
23451
24211
|
}
|
|
23452
24212
|
}
|
|
23453
|
-
React$
|
|
24213
|
+
React$2.useEffect(function() {
|
|
23454
24214
|
return function() {
|
|
23455
24215
|
removeMotionEvents(cacheElementRef.current);
|
|
23456
24216
|
};
|
|
@@ -23506,7 +24266,7 @@ wrapperRaf.cancel = function(id) {
|
|
|
23506
24266
|
};
|
|
23507
24267
|
}
|
|
23508
24268
|
const useNextFrame = function() {
|
|
23509
|
-
var nextFrameRef = React$
|
|
24269
|
+
var nextFrameRef = React$2.useRef(null);
|
|
23510
24270
|
function cancelNextFrame() {
|
|
23511
24271
|
wrapperRaf.cancel(nextFrameRef.current);
|
|
23512
24272
|
}
|
|
@@ -23526,7 +24286,7 @@ const useNextFrame = function() {
|
|
|
23526
24286
|
});
|
|
23527
24287
|
nextFrameRef.current = nextFrameId;
|
|
23528
24288
|
}
|
|
23529
|
-
React$
|
|
24289
|
+
React$2.useEffect(function() {
|
|
23530
24290
|
return function() {
|
|
23531
24291
|
cancelNextFrame();
|
|
23532
24292
|
};
|
|
@@ -23570,7 +24330,7 @@ const useStepQueue = function(status, prepareOnly, callback) {
|
|
|
23570
24330
|
}
|
|
23571
24331
|
}
|
|
23572
24332
|
}, [status, step]);
|
|
23573
|
-
React$
|
|
24333
|
+
React$2.useEffect(function() {
|
|
23574
24334
|
return function() {
|
|
23575
24335
|
cancelNextFrame();
|
|
23576
24336
|
};
|
|
@@ -23624,7 +24384,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
23624
24384
|
return {};
|
|
23625
24385
|
}
|
|
23626
24386
|
};
|
|
23627
|
-
var eventHandlers = React$
|
|
24387
|
+
var eventHandlers = React$2.useMemo(function() {
|
|
23628
24388
|
return getEventHandlers(status);
|
|
23629
24389
|
}, [status]);
|
|
23630
24390
|
var _useStepQueue = useStepQueue(status, !supportMotion, function(newStep) {
|
|
@@ -23695,7 +24455,7 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
23695
24455
|
clearTimeout(deadlineRef.current);
|
|
23696
24456
|
};
|
|
23697
24457
|
}, []);
|
|
23698
|
-
var firstMountChangeRef = React$
|
|
24458
|
+
var firstMountChangeRef = React$2.useRef(false);
|
|
23699
24459
|
useEffect(function() {
|
|
23700
24460
|
if (asyncVisible) {
|
|
23701
24461
|
firstMountChangeRef.current = true;
|
|
@@ -23717,15 +24477,15 @@ function useStatus(supportMotion, visible, getElement, _ref) {
|
|
|
23717
24477
|
}
|
|
23718
24478
|
function genCSSMotion(config2) {
|
|
23719
24479
|
var transitionSupport = config2;
|
|
23720
|
-
if (_typeof
|
|
24480
|
+
if (_typeof(config2) === "object") {
|
|
23721
24481
|
transitionSupport = config2.transitionSupport;
|
|
23722
24482
|
}
|
|
23723
24483
|
function isSupportTransition(props, contextMotion) {
|
|
23724
24484
|
return !!(props.motionName && transitionSupport && contextMotion !== false);
|
|
23725
24485
|
}
|
|
23726
|
-
var CSSMotion2 = /* @__PURE__ */ React$
|
|
24486
|
+
var CSSMotion2 = /* @__PURE__ */ React$2.forwardRef(function(props, ref2) {
|
|
23727
24487
|
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$
|
|
24488
|
+
var _React$useContext = React$2.useContext(Context), contextMotion = _React$useContext.motion;
|
|
23729
24489
|
var supportMotion = isSupportTransition(props, contextMotion);
|
|
23730
24490
|
var nodeRef = useRef();
|
|
23731
24491
|
var wrapperNodeRef = useRef();
|
|
@@ -23737,14 +24497,14 @@ function genCSSMotion(config2) {
|
|
|
23737
24497
|
}
|
|
23738
24498
|
}
|
|
23739
24499
|
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$
|
|
24500
|
+
var renderedRef = React$2.useRef(mergedVisible);
|
|
23741
24501
|
if (mergedVisible) {
|
|
23742
24502
|
renderedRef.current = true;
|
|
23743
24503
|
}
|
|
23744
|
-
var setNodeRef = React$
|
|
24504
|
+
var setNodeRef = React$2.useCallback(function(node) {
|
|
23745
24505
|
nodeRef.current = node;
|
|
23746
|
-
fillRef(
|
|
23747
|
-
}, [
|
|
24506
|
+
fillRef$1(ref2, node);
|
|
24507
|
+
}, [ref2]);
|
|
23748
24508
|
var motionChildren;
|
|
23749
24509
|
var mergedProps = _objectSpread2(_objectSpread2({}, eventProps), {}, {
|
|
23750
24510
|
visible
|
|
@@ -23783,15 +24543,15 @@ function genCSSMotion(config2) {
|
|
|
23783
24543
|
style: statusStyle
|
|
23784
24544
|
}), setNodeRef);
|
|
23785
24545
|
}
|
|
23786
|
-
if (/* @__PURE__ */ React$
|
|
24546
|
+
if (/* @__PURE__ */ React$2.isValidElement(motionChildren) && supportRef$1(motionChildren)) {
|
|
23787
24547
|
var _ref = motionChildren, originNodeRef = _ref.ref;
|
|
23788
24548
|
if (!originNodeRef) {
|
|
23789
|
-
motionChildren = /* @__PURE__ */ React$
|
|
24549
|
+
motionChildren = /* @__PURE__ */ React$2.cloneElement(motionChildren, {
|
|
23790
24550
|
ref: setNodeRef
|
|
23791
24551
|
});
|
|
23792
24552
|
}
|
|
23793
24553
|
}
|
|
23794
|
-
return /* @__PURE__ */ React$
|
|
24554
|
+
return /* @__PURE__ */ React$2.createElement(DomWrapper, {
|
|
23795
24555
|
ref: wrapperNodeRef
|
|
23796
24556
|
}, motionChildren);
|
|
23797
24557
|
});
|
|
@@ -23805,7 +24565,7 @@ var STATUS_REMOVE = "remove";
|
|
|
23805
24565
|
var STATUS_REMOVED = "removed";
|
|
23806
24566
|
function wrapKeyToObject(key) {
|
|
23807
24567
|
var keyObj;
|
|
23808
|
-
if (key && _typeof
|
|
24568
|
+
if (key && _typeof(key) === "object" && "key" in key) {
|
|
23809
24569
|
keyObj = key;
|
|
23810
24570
|
} else {
|
|
23811
24571
|
keyObj = {
|
|
@@ -23925,17 +24685,17 @@ function genCSSMotionList(transitionSupport) {
|
|
|
23925
24685
|
var _this2 = this;
|
|
23926
24686
|
var keyEntities = this.state.keyEntities;
|
|
23927
24687
|
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$
|
|
24688
|
+
var Component = component || React$2.Fragment;
|
|
23929
24689
|
var motionProps = {};
|
|
23930
24690
|
MOTION_PROP_NAMES.forEach(function(prop) {
|
|
23931
24691
|
motionProps[prop] = restProps[prop];
|
|
23932
24692
|
delete restProps[prop];
|
|
23933
24693
|
});
|
|
23934
24694
|
delete restProps.keys;
|
|
23935
|
-
return /* @__PURE__ */ React$
|
|
24695
|
+
return /* @__PURE__ */ React$2.createElement(Component, restProps, keyEntities.map(function(_ref2, index2) {
|
|
23936
24696
|
var status = _ref2.status, eventProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
23937
24697
|
var visible = status === STATUS_ADD || status === STATUS_KEEP;
|
|
23938
|
-
return /* @__PURE__ */ React$
|
|
24698
|
+
return /* @__PURE__ */ React$2.createElement(CSSMotion$1, _extends$1({}, motionProps, {
|
|
23939
24699
|
key: eventProps.key,
|
|
23940
24700
|
visible,
|
|
23941
24701
|
eventProps,
|
|
@@ -23950,10 +24710,10 @@ function genCSSMotionList(transitionSupport) {
|
|
|
23950
24710
|
}
|
|
23951
24711
|
}
|
|
23952
24712
|
}
|
|
23953
|
-
}), function(props,
|
|
24713
|
+
}), function(props, ref2) {
|
|
23954
24714
|
return children(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
23955
24715
|
index: index2
|
|
23956
|
-
}),
|
|
24716
|
+
}), ref2);
|
|
23957
24717
|
});
|
|
23958
24718
|
}));
|
|
23959
24719
|
}
|
|
@@ -23979,7 +24739,7 @@ function genCSSMotionList(transitionSupport) {
|
|
|
23979
24739
|
}
|
|
23980
24740
|
}]);
|
|
23981
24741
|
return CSSMotionList2;
|
|
23982
|
-
}(React$
|
|
24742
|
+
}(React$2.Component);
|
|
23983
24743
|
_defineProperty(CSSMotionList, "defaultProps", {
|
|
23984
24744
|
component: "div"
|
|
23985
24745
|
});
|
|
@@ -23998,16 +24758,16 @@ var toPX = function toPX2(value) {
|
|
|
23998
24758
|
};
|
|
23999
24759
|
function MotionThumb(props) {
|
|
24000
24760
|
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$
|
|
24761
|
+
var thumbRef = React$2.useRef(null);
|
|
24762
|
+
var _React$useState = React$2.useState(value), _React$useState2 = _slicedToArray(_React$useState, 2), prevValue = _React$useState2[0], setPrevValue = _React$useState2[1];
|
|
24003
24763
|
var findValueElement = function findValueElement2(val) {
|
|
24004
24764
|
var _containerRef$current;
|
|
24005
24765
|
var index2 = getValueIndex(val);
|
|
24006
24766
|
var ele = (_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.querySelectorAll(".".concat(prefixCls, "-item"))[index2];
|
|
24007
24767
|
return (ele === null || ele === void 0 ? void 0 : ele.offsetParent) && ele;
|
|
24008
24768
|
};
|
|
24009
|
-
var _React$useState3 = React$
|
|
24010
|
-
var _React$useState5 = React$
|
|
24769
|
+
var _React$useState3 = React$2.useState(null), _React$useState4 = _slicedToArray(_React$useState3, 2), prevStyle = _React$useState4[0], setPrevStyle = _React$useState4[1];
|
|
24770
|
+
var _React$useState5 = React$2.useState(null), _React$useState6 = _slicedToArray(_React$useState5, 2), nextStyle = _React$useState6[0], setNextStyle = _React$useState6[1];
|
|
24011
24771
|
useLayoutEffect(function() {
|
|
24012
24772
|
if (prevValue !== value) {
|
|
24013
24773
|
var prev = findValueElement(prevValue);
|
|
@@ -24024,10 +24784,10 @@ function MotionThumb(props) {
|
|
|
24024
24784
|
}
|
|
24025
24785
|
}
|
|
24026
24786
|
}, [value]);
|
|
24027
|
-
var thumbStart = React$
|
|
24787
|
+
var thumbStart = React$2.useMemo(function() {
|
|
24028
24788
|
return direction === "rtl" ? toPX(-(prevStyle === null || prevStyle === void 0 ? void 0 : prevStyle.right)) : toPX(prevStyle === null || prevStyle === void 0 ? void 0 : prevStyle.left);
|
|
24029
24789
|
}, [direction, prevStyle]);
|
|
24030
|
-
var thumbActive = React$
|
|
24790
|
+
var thumbActive = React$2.useMemo(function() {
|
|
24031
24791
|
return direction === "rtl" ? toPX(-(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.right)) : toPX(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.left);
|
|
24032
24792
|
}, [direction, nextStyle]);
|
|
24033
24793
|
var onAppearStart = function onAppearStart2() {
|
|
@@ -24050,14 +24810,14 @@ function MotionThumb(props) {
|
|
|
24050
24810
|
if (!prevStyle || !nextStyle) {
|
|
24051
24811
|
return null;
|
|
24052
24812
|
}
|
|
24053
|
-
return /* @__PURE__ */ React$
|
|
24813
|
+
return /* @__PURE__ */ React$2.createElement(CSSMotion, {
|
|
24054
24814
|
visible: true,
|
|
24055
24815
|
motionName,
|
|
24056
24816
|
motionAppear: true,
|
|
24057
24817
|
onAppearStart,
|
|
24058
24818
|
onAppearActive,
|
|
24059
24819
|
onVisibleChanged
|
|
24060
|
-
}, function(_ref,
|
|
24820
|
+
}, function(_ref, ref2) {
|
|
24061
24821
|
var motionClassName = _ref.className, motionStyle = _ref.style;
|
|
24062
24822
|
var mergedStyle = _objectSpread2(_objectSpread2({}, motionStyle), {}, {
|
|
24063
24823
|
"--thumb-start-left": thumbStart,
|
|
@@ -24066,11 +24826,11 @@ function MotionThumb(props) {
|
|
|
24066
24826
|
"--thumb-active-width": toPX(nextStyle === null || nextStyle === void 0 ? void 0 : nextStyle.width)
|
|
24067
24827
|
});
|
|
24068
24828
|
var motionProps = {
|
|
24069
|
-
ref: composeRef(thumbRef,
|
|
24829
|
+
ref: composeRef$1(thumbRef, ref2),
|
|
24070
24830
|
style: mergedStyle,
|
|
24071
24831
|
className: classNames("".concat(prefixCls, "-thumb"), motionClassName)
|
|
24072
24832
|
};
|
|
24073
|
-
return /* @__PURE__ */ React$
|
|
24833
|
+
return /* @__PURE__ */ React$2.createElement("div", motionProps);
|
|
24074
24834
|
});
|
|
24075
24835
|
}
|
|
24076
24836
|
var _excluded = ["prefixCls", "direction", "options", "disabled", "defaultValue", "value", "onChange", "className", "motionName"];
|
|
@@ -24078,14 +24838,14 @@ function getValidTitle(option) {
|
|
|
24078
24838
|
if (typeof option.title !== "undefined") {
|
|
24079
24839
|
return option.title;
|
|
24080
24840
|
}
|
|
24081
|
-
if (_typeof
|
|
24841
|
+
if (_typeof(option.label) !== "object") {
|
|
24082
24842
|
var _option$label;
|
|
24083
24843
|
return (_option$label = option.label) === null || _option$label === void 0 ? void 0 : _option$label.toString();
|
|
24084
24844
|
}
|
|
24085
24845
|
}
|
|
24086
24846
|
function normalizeOptions(options) {
|
|
24087
24847
|
return options.map(function(option) {
|
|
24088
|
-
if (_typeof
|
|
24848
|
+
if (_typeof(option) === "object" && option !== null) {
|
|
24089
24849
|
var validTitle = getValidTitle(option);
|
|
24090
24850
|
return _objectSpread2(_objectSpread2({}, option), {}, {
|
|
24091
24851
|
title: validTitle
|
|
@@ -24106,36 +24866,36 @@ var InternalSegmentedOption = function InternalSegmentedOption2(_ref) {
|
|
|
24106
24866
|
}
|
|
24107
24867
|
onChange(event, value);
|
|
24108
24868
|
};
|
|
24109
|
-
return /* @__PURE__ */ React$
|
|
24869
|
+
return /* @__PURE__ */ React$2.createElement("label", {
|
|
24110
24870
|
className: classNames(className, _defineProperty({}, "".concat(prefixCls, "-item-disabled"), disabled))
|
|
24111
|
-
}, /* @__PURE__ */ React$
|
|
24871
|
+
}, /* @__PURE__ */ React$2.createElement("input", {
|
|
24112
24872
|
className: "".concat(prefixCls, "-item-input"),
|
|
24113
24873
|
type: "radio",
|
|
24114
24874
|
disabled,
|
|
24115
24875
|
checked,
|
|
24116
24876
|
onChange: handleChange
|
|
24117
|
-
}), /* @__PURE__ */ React$
|
|
24877
|
+
}), /* @__PURE__ */ React$2.createElement("div", {
|
|
24118
24878
|
className: "".concat(prefixCls, "-item-label"),
|
|
24119
24879
|
title,
|
|
24120
24880
|
role: "option",
|
|
24121
24881
|
"aria-selected": checked
|
|
24122
24882
|
}, label));
|
|
24123
24883
|
};
|
|
24124
|
-
var Segmented$1 = /* @__PURE__ */ React$
|
|
24884
|
+
var Segmented$1 = /* @__PURE__ */ React$2.forwardRef(function(props, ref2) {
|
|
24125
24885
|
var _segmentedOptions$, _classNames2;
|
|
24126
24886
|
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$
|
|
24887
|
+
var containerRef = React$2.useRef(null);
|
|
24888
|
+
var mergedRef = React$2.useMemo(function() {
|
|
24889
|
+
return composeRef$1(containerRef, ref2);
|
|
24890
|
+
}, [containerRef, ref2]);
|
|
24891
|
+
var segmentedOptions = React$2.useMemo(function() {
|
|
24132
24892
|
return normalizeOptions(options);
|
|
24133
24893
|
}, [options]);
|
|
24134
24894
|
var _useMergedState = useMergedState((_segmentedOptions$ = segmentedOptions[0]) === null || _segmentedOptions$ === void 0 ? void 0 : _segmentedOptions$.value, {
|
|
24135
24895
|
value,
|
|
24136
24896
|
defaultValue
|
|
24137
24897
|
}), _useMergedState2 = _slicedToArray(_useMergedState, 2), rawValue = _useMergedState2[0], setRawValue = _useMergedState2[1];
|
|
24138
|
-
var _React$useState = React$
|
|
24898
|
+
var _React$useState = React$2.useState(false), _React$useState2 = _slicedToArray(_React$useState, 2), thumbShow = _React$useState2[0], setThumbShow = _React$useState2[1];
|
|
24139
24899
|
var handleChange = function handleChange2(event, val) {
|
|
24140
24900
|
if (disabled) {
|
|
24141
24901
|
return;
|
|
@@ -24144,15 +24904,15 @@ var Segmented$1 = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
|
|
|
24144
24904
|
onChange === null || onChange === void 0 ? void 0 : onChange(val);
|
|
24145
24905
|
};
|
|
24146
24906
|
var divProps = omit(restProps, ["children"]);
|
|
24147
|
-
return /* @__PURE__ */ React$
|
|
24907
|
+
return /* @__PURE__ */ React$2.createElement("div", _extends$1({
|
|
24148
24908
|
role: "listbox",
|
|
24149
24909
|
"aria-label": "segmented control"
|
|
24150
24910
|
}, divProps, {
|
|
24151
24911
|
className: classNames(prefixCls, (_classNames2 = {}, _defineProperty(_classNames2, "".concat(prefixCls, "-rtl"), direction === "rtl"), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _classNames2), className),
|
|
24152
24912
|
ref: mergedRef
|
|
24153
|
-
}), /* @__PURE__ */ React$
|
|
24913
|
+
}), /* @__PURE__ */ React$2.createElement("div", {
|
|
24154
24914
|
className: "".concat(prefixCls, "-group")
|
|
24155
|
-
}, /* @__PURE__ */ React$
|
|
24915
|
+
}, /* @__PURE__ */ React$2.createElement(MotionThumb, {
|
|
24156
24916
|
prefixCls,
|
|
24157
24917
|
value: rawValue,
|
|
24158
24918
|
containerRef,
|
|
@@ -24170,7 +24930,7 @@ var Segmented$1 = /* @__PURE__ */ React$1.forwardRef(function(props, ref) {
|
|
|
24170
24930
|
setThumbShow(false);
|
|
24171
24931
|
}
|
|
24172
24932
|
}), segmentedOptions.map(function(segmentedOption) {
|
|
24173
|
-
return /* @__PURE__ */ React$
|
|
24933
|
+
return /* @__PURE__ */ React$2.createElement(InternalSegmentedOption, _extends$1({}, segmentedOption, {
|
|
24174
24934
|
key: segmentedOption.value,
|
|
24175
24935
|
prefixCls,
|
|
24176
24936
|
className: classNames(segmentedOption.className, "".concat(prefixCls, "-item"), _defineProperty({}, "".concat(prefixCls, "-item-selected"), segmentedOption.value === rawValue && !thumbShow)),
|
|
@@ -24188,7 +24948,7 @@ function isSegmentedLabeledOptionWithIcon(option) {
|
|
|
24188
24948
|
return typeof option === "object" && !!(option === null || option === void 0 ? void 0 : option.icon);
|
|
24189
24949
|
}
|
|
24190
24950
|
const classPrefix$l = `adm-segmented`;
|
|
24191
|
-
const Segmented = React$
|
|
24951
|
+
const Segmented = React$2.forwardRef((props, ref2) => {
|
|
24192
24952
|
const {
|
|
24193
24953
|
prefixCls: customizePrefixCls,
|
|
24194
24954
|
className,
|
|
@@ -24198,26 +24958,26 @@ const Segmented = React$1.forwardRef((props, ref) => {
|
|
|
24198
24958
|
props,
|
|
24199
24959
|
["prefixCls", "className", "block", "options"]
|
|
24200
24960
|
);
|
|
24201
|
-
const extendedOptions = React$
|
|
24961
|
+
const extendedOptions = React$2.useMemo(() => options.map((option) => {
|
|
24202
24962
|
if (isSegmentedLabeledOptionWithIcon(option)) {
|
|
24203
24963
|
const {
|
|
24204
24964
|
icon,
|
|
24205
24965
|
label
|
|
24206
24966
|
} = option, restOption = __rest(option, ["icon", "label"]);
|
|
24207
24967
|
return Object.assign(Object.assign({}, restOption), {
|
|
24208
|
-
label: React$
|
|
24968
|
+
label: React$2.createElement(React$2.Fragment, null, React$2.createElement("span", {
|
|
24209
24969
|
className: `${classPrefix$l}-item-icon`
|
|
24210
|
-
}, icon), label && React$
|
|
24970
|
+
}, icon), label && React$2.createElement("span", null, label))
|
|
24211
24971
|
});
|
|
24212
24972
|
}
|
|
24213
24973
|
return option;
|
|
24214
24974
|
}), [options, classPrefix$l]);
|
|
24215
|
-
return withNativeProps(props, React$
|
|
24975
|
+
return withNativeProps(props, React$2.createElement(TypedSegmented, Object.assign({}, restProps, {
|
|
24216
24976
|
className: classNames(className, {
|
|
24217
24977
|
[`${classPrefix$l}-block`]: block
|
|
24218
24978
|
}),
|
|
24219
24979
|
options: extendedOptions,
|
|
24220
|
-
ref,
|
|
24980
|
+
ref: ref2,
|
|
24221
24981
|
prefixCls: classPrefix$l
|
|
24222
24982
|
})));
|
|
24223
24983
|
});
|
|
@@ -24992,7 +25752,7 @@ const Slider = (p) => {
|
|
|
24992
25752
|
const trackRef = useRef(null);
|
|
24993
25753
|
const fillSize = `${100 * (sliderValue[1] - sliderValue[0]) / (max2 - min2)}%`;
|
|
24994
25754
|
const fillStart = `${100 * (sliderValue[0] - min2) / (max2 - min2)}%`;
|
|
24995
|
-
const pointList = useMemo(() => {
|
|
25755
|
+
const pointList = useMemo$2(() => {
|
|
24996
25756
|
if (marks) {
|
|
24997
25757
|
return Object.keys(marks).map(parseFloat).sort((a, b) => a - b);
|
|
24998
25758
|
} else if (ticks) {
|
|
@@ -25113,7 +25873,7 @@ const defaultProps$d = {
|
|
|
25113
25873
|
disabled: false,
|
|
25114
25874
|
allowEmpty: false
|
|
25115
25875
|
};
|
|
25116
|
-
function InnerStepper(p,
|
|
25876
|
+
function InnerStepper(p, ref2) {
|
|
25117
25877
|
const props = mergeProps(defaultProps$d, p);
|
|
25118
25878
|
const {
|
|
25119
25879
|
defaultValue = 0,
|
|
@@ -25132,7 +25892,7 @@ function InnerStepper(p, ref) {
|
|
|
25132
25892
|
const {
|
|
25133
25893
|
locale
|
|
25134
25894
|
} = useConfig();
|
|
25135
|
-
useImperativeHandle(
|
|
25895
|
+
useImperativeHandle(ref2, () => ({
|
|
25136
25896
|
focus: () => {
|
|
25137
25897
|
var _a;
|
|
25138
25898
|
(_a = inputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -25377,13 +26137,13 @@ const defaultProps$b = {
|
|
|
25377
26137
|
closeOnAction: true,
|
|
25378
26138
|
stopPropagation: []
|
|
25379
26139
|
};
|
|
25380
|
-
const SwipeAction = forwardRef((p,
|
|
26140
|
+
const SwipeAction = forwardRef((p, ref2) => {
|
|
25381
26141
|
const props = mergeProps(defaultProps$b, p);
|
|
25382
26142
|
const rootRef = useRef(null);
|
|
25383
26143
|
const leftRef = useRef(null);
|
|
25384
26144
|
const rightRef = useRef(null);
|
|
25385
|
-
function getWidth(
|
|
25386
|
-
const element =
|
|
26145
|
+
function getWidth(ref3) {
|
|
26146
|
+
const element = ref3.current;
|
|
25387
26147
|
if (!element)
|
|
25388
26148
|
return 0;
|
|
25389
26149
|
return element.offsetWidth;
|
|
@@ -25473,7 +26233,7 @@ const SwipeAction = forwardRef((p, ref) => {
|
|
|
25473
26233
|
forceCancelDrag();
|
|
25474
26234
|
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
25475
26235
|
};
|
|
25476
|
-
useImperativeHandle(
|
|
26236
|
+
useImperativeHandle(ref2, () => ({
|
|
25477
26237
|
show: (side = "right") => {
|
|
25478
26238
|
var _a;
|
|
25479
26239
|
if (side === "right") {
|
|
@@ -25577,11 +26337,11 @@ const SwiperItem = (props) => {
|
|
|
25577
26337
|
};
|
|
25578
26338
|
function useRefState(initialState) {
|
|
25579
26339
|
const [state, setState] = useState(initialState);
|
|
25580
|
-
const
|
|
26340
|
+
const ref2 = useRef(state);
|
|
25581
26341
|
useEffect(() => {
|
|
25582
|
-
|
|
26342
|
+
ref2.current = state;
|
|
25583
26343
|
}, [state]);
|
|
25584
|
-
return [state, setState,
|
|
26344
|
+
return [state, setState, ref2];
|
|
25585
26345
|
}
|
|
25586
26346
|
function mergeFuncProps(p1, p2) {
|
|
25587
26347
|
const p1Keys = Object.keys(p1);
|
|
@@ -25622,7 +26382,7 @@ const defaultProps$a = {
|
|
|
25622
26382
|
stopPropagation: []
|
|
25623
26383
|
};
|
|
25624
26384
|
let currentUid;
|
|
25625
|
-
const Swiper = forwardRef(staged_1((p,
|
|
26385
|
+
const Swiper = forwardRef(staged_1((p, ref2) => {
|
|
25626
26386
|
const props = mergeProps(defaultProps$a, p);
|
|
25627
26387
|
const {
|
|
25628
26388
|
direction,
|
|
@@ -25639,7 +26399,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
25639
26399
|
validChildren,
|
|
25640
26400
|
count,
|
|
25641
26401
|
renderChildren
|
|
25642
|
-
} = useMemo(() => {
|
|
26402
|
+
} = useMemo$2(() => {
|
|
25643
26403
|
let count2 = 0;
|
|
25644
26404
|
let renderChildren2 = void 0;
|
|
25645
26405
|
let validChildren2 = void 0;
|
|
@@ -25801,7 +26561,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
25801
26561
|
function swipePrev() {
|
|
25802
26562
|
swipeTo(Math.round(position.get() / 100) - 1);
|
|
25803
26563
|
}
|
|
25804
|
-
useImperativeHandle(
|
|
26564
|
+
useImperativeHandle(ref2, () => ({
|
|
25805
26565
|
swipeTo,
|
|
25806
26566
|
swipeNext,
|
|
25807
26567
|
swipePrev
|
|
@@ -25869,7 +26629,7 @@ const Swiper = forwardRef(staged_1((p, ref) => {
|
|
|
25869
26629
|
return React__default.createElement(React__default.Fragment, null, React__default.createElement("div", {
|
|
25870
26630
|
className: `${classPrefix$a}-slide-placeholder`,
|
|
25871
26631
|
style: {
|
|
25872
|
-
width: `${startIndex * 100}%`
|
|
26632
|
+
[isVertical ? "height" : "width"]: `${startIndex * 100}%`
|
|
25873
26633
|
}
|
|
25874
26634
|
}), items);
|
|
25875
26635
|
}
|
|
@@ -26145,7 +26905,7 @@ const defaultProps$6 = {
|
|
|
26145
26905
|
autoSize: false,
|
|
26146
26906
|
defaultValue: ""
|
|
26147
26907
|
};
|
|
26148
|
-
const TextArea = forwardRef((p,
|
|
26908
|
+
const TextArea = forwardRef((p, ref2) => {
|
|
26149
26909
|
const props = mergeProps(defaultProps$6, p);
|
|
26150
26910
|
const {
|
|
26151
26911
|
autoSize,
|
|
@@ -26167,7 +26927,7 @@ const TextArea = forwardRef((p, ref) => {
|
|
|
26167
26927
|
nativeInputRef: nativeTextAreaRef,
|
|
26168
26928
|
enterKeyHint: props.enterKeyHint
|
|
26169
26929
|
});
|
|
26170
|
-
useImperativeHandle(
|
|
26930
|
+
useImperativeHandle(ref2, () => ({
|
|
26171
26931
|
clear: () => {
|
|
26172
26932
|
setValue("");
|
|
26173
26933
|
},
|
|
@@ -26288,7 +27048,7 @@ const InternalToast = (p) => {
|
|
|
26288
27048
|
icon,
|
|
26289
27049
|
position
|
|
26290
27050
|
} = props;
|
|
26291
|
-
const iconElement = useMemo(() => {
|
|
27051
|
+
const iconElement = useMemo$2(() => {
|
|
26292
27052
|
if (icon === null || icon === void 0)
|
|
26293
27053
|
return null;
|
|
26294
27054
|
switch (icon) {
|
|
@@ -26309,7 +27069,7 @@ const InternalToast = (p) => {
|
|
|
26309
27069
|
return icon;
|
|
26310
27070
|
}
|
|
26311
27071
|
}, [icon]);
|
|
26312
|
-
const top = useMemo(() => {
|
|
27072
|
+
const top = useMemo$2(() => {
|
|
26313
27073
|
switch (position) {
|
|
26314
27074
|
case "top":
|
|
26315
27075
|
return "20%";
|
|
@@ -26428,7 +27188,7 @@ const TreeSelect = (p) => {
|
|
|
26428
27188
|
value: props.value,
|
|
26429
27189
|
defaultValue: props.defaultValue
|
|
26430
27190
|
});
|
|
26431
|
-
const [deep, optionsMap, optionsParentMap] = useMemo(() => {
|
|
27191
|
+
const [deep, optionsMap, optionsParentMap] = useMemo$2(() => {
|
|
26432
27192
|
const deep2 = getTreeDeep(props.options, childrenName);
|
|
26433
27193
|
const optionsMap2 = /* @__PURE__ */ new Map();
|
|
26434
27194
|
const optionsParentMap2 = /* @__PURE__ */ new Map();
|
|
@@ -26538,7 +27298,7 @@ const Multiple = (p) => {
|
|
|
26538
27298
|
walker(option);
|
|
26539
27299
|
return keys2;
|
|
26540
27300
|
};
|
|
26541
|
-
const [deep, optionsMap, optionsParentMap] = useMemo(() => {
|
|
27301
|
+
const [deep, optionsMap, optionsParentMap] = useMemo$2(() => {
|
|
26542
27302
|
const deep2 = getTreeDeep(props.options, childrenName);
|
|
26543
27303
|
const optionsMap2 = /* @__PURE__ */ new Map();
|
|
26544
27304
|
const optionsParentMap2 = /* @__PURE__ */ new Map();
|
|
@@ -26554,7 +27314,7 @@ const Multiple = (p) => {
|
|
|
26554
27314
|
traverse(void 0, props.options);
|
|
26555
27315
|
return [deep2, optionsMap2, optionsParentMap2];
|
|
26556
27316
|
}, [props.options]);
|
|
26557
|
-
const allSelectedLeafKeys = useMemo(() => {
|
|
27317
|
+
const allSelectedLeafKeys = useMemo$2(() => {
|
|
26558
27318
|
let leafKeys = [];
|
|
26559
27319
|
value.forEach((v) => {
|
|
26560
27320
|
const option = optionsMap.get(v);
|
|
@@ -26562,7 +27322,7 @@ const Multiple = (p) => {
|
|
|
26562
27322
|
});
|
|
26563
27323
|
return leafKeys;
|
|
26564
27324
|
}, [value, optionsMap]);
|
|
26565
|
-
const dotMap = useMemo(() => {
|
|
27325
|
+
const dotMap = useMemo$2(() => {
|
|
26566
27326
|
const map = /* @__PURE__ */ new Map();
|
|
26567
27327
|
const walker = (key) => {
|
|
26568
27328
|
const parentOption = optionsParentMap.get(key);
|
|
@@ -26740,9 +27500,12 @@ const index = attachPropertiesToComponent(TreeSelect, {
|
|
|
26740
27500
|
});
|
|
26741
27501
|
const classPrefix$2 = "adm-virtual-input";
|
|
26742
27502
|
const defaultProps$2 = {
|
|
26743
|
-
defaultValue: ""
|
|
27503
|
+
defaultValue: "",
|
|
27504
|
+
cursor: {
|
|
27505
|
+
movable: false
|
|
27506
|
+
}
|
|
26744
27507
|
};
|
|
26745
|
-
const VirtualInput = forwardRef((props,
|
|
27508
|
+
const VirtualInput = forwardRef((props, ref2) => {
|
|
26746
27509
|
const {
|
|
26747
27510
|
locale,
|
|
26748
27511
|
input: componentConfig = {}
|
|
@@ -26752,6 +27515,14 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26752
27515
|
const rootRef = useRef(null);
|
|
26753
27516
|
const contentRef = useRef(null);
|
|
26754
27517
|
const [hasFocus, setHasFocus] = useState(false);
|
|
27518
|
+
const [caretPosition, setCaretPosition] = useState(value.length);
|
|
27519
|
+
const keyboardDataRef = useRef({});
|
|
27520
|
+
const touchDataRef = useRef();
|
|
27521
|
+
const charRef = useRef(null);
|
|
27522
|
+
const charWidthRef = useRef(0);
|
|
27523
|
+
const caretRef = useRef(null);
|
|
27524
|
+
const [isCaretDragging, setIsCaretDragging] = useState(false);
|
|
27525
|
+
const touchMoveTimeoutRef = useRef();
|
|
26755
27526
|
const clearIcon = mergeProp(React__default.createElement(CloseCircleFill, null), componentConfig.clearIcon, props.clearIcon);
|
|
26756
27527
|
function scrollToEnd() {
|
|
26757
27528
|
const root2 = rootRef.current;
|
|
@@ -26765,6 +27536,22 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26765
27536
|
return;
|
|
26766
27537
|
content.scrollLeft = content.clientWidth;
|
|
26767
27538
|
}
|
|
27539
|
+
useEffect(() => {
|
|
27540
|
+
if (charRef.current) {
|
|
27541
|
+
charWidthRef.current = charRef.current.getBoundingClientRect().width;
|
|
27542
|
+
}
|
|
27543
|
+
}, [value]);
|
|
27544
|
+
useEffect(() => {
|
|
27545
|
+
if (value === keyboardDataRef.current.newValue) {
|
|
27546
|
+
if (keyboardDataRef.current.mode === "input") {
|
|
27547
|
+
setCaretPosition((c) => c + 1);
|
|
27548
|
+
} else if (keyboardDataRef.current.mode === "delete") {
|
|
27549
|
+
setCaretPosition((c) => c - 1);
|
|
27550
|
+
}
|
|
27551
|
+
} else {
|
|
27552
|
+
setCaretPosition(value.length);
|
|
27553
|
+
}
|
|
27554
|
+
}, [value]);
|
|
26768
27555
|
useIsomorphicLayoutEffect$3(() => {
|
|
26769
27556
|
scrollToEnd();
|
|
26770
27557
|
}, [value]);
|
|
@@ -26773,7 +27560,7 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26773
27560
|
scrollToEnd();
|
|
26774
27561
|
}
|
|
26775
27562
|
}, [hasFocus]);
|
|
26776
|
-
useImperativeHandle(
|
|
27563
|
+
useImperativeHandle(ref2, () => ({
|
|
26777
27564
|
focus: () => {
|
|
26778
27565
|
var _a;
|
|
26779
27566
|
(_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
@@ -26797,12 +27584,24 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26797
27584
|
const keyboardElement = keyboard && React__default.cloneElement(keyboard, {
|
|
26798
27585
|
onInput: (v) => {
|
|
26799
27586
|
var _a, _b;
|
|
26800
|
-
|
|
27587
|
+
const newValue = value.substring(0, caretPosition) + v + value.substring(caretPosition);
|
|
27588
|
+
keyboardDataRef.current = {
|
|
27589
|
+
newValue,
|
|
27590
|
+
mode: "input"
|
|
27591
|
+
};
|
|
27592
|
+
setValue(newValue);
|
|
26801
27593
|
(_b = (_a = keyboard.props).onInput) === null || _b === void 0 ? void 0 : _b.call(_a, v);
|
|
26802
27594
|
},
|
|
26803
27595
|
onDelete: () => {
|
|
26804
27596
|
var _a, _b;
|
|
26805
|
-
|
|
27597
|
+
if (caretPosition === 0)
|
|
27598
|
+
return;
|
|
27599
|
+
const newValue = value.substring(0, caretPosition - 1) + value.substring(caretPosition);
|
|
27600
|
+
keyboardDataRef.current = {
|
|
27601
|
+
newValue,
|
|
27602
|
+
mode: "delete"
|
|
27603
|
+
};
|
|
27604
|
+
setValue(newValue);
|
|
26806
27605
|
(_b = (_a = keyboard.props).onDelete) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
26807
27606
|
},
|
|
26808
27607
|
visible: hasFocus,
|
|
@@ -26818,10 +27617,79 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26818
27617
|
},
|
|
26819
27618
|
getContainer: null
|
|
26820
27619
|
});
|
|
27620
|
+
const setCaretPositionToEnd = () => {
|
|
27621
|
+
var _a, _b;
|
|
27622
|
+
if (caretPosition !== value.length) {
|
|
27623
|
+
setCaretPosition(value.length);
|
|
27624
|
+
(_b = (_a = mergedProps.cursor) === null || _a === void 0 ? void 0 : _a.onMove) === null || _b === void 0 ? void 0 : _b.call(_a, value.length);
|
|
27625
|
+
}
|
|
27626
|
+
};
|
|
27627
|
+
const changeCaretPosition = (index2) => (e2) => {
|
|
27628
|
+
var _a, _b, _c;
|
|
27629
|
+
if (mergedProps.disabled || !((_a = mergedProps.cursor) === null || _a === void 0 ? void 0 : _a.movable))
|
|
27630
|
+
return;
|
|
27631
|
+
e2.stopPropagation();
|
|
27632
|
+
const rect = e2.target.getBoundingClientRect();
|
|
27633
|
+
const midX = rect.left + rect.width / 2;
|
|
27634
|
+
const clickX = e2.clientX;
|
|
27635
|
+
const isRight = clickX > midX;
|
|
27636
|
+
const newCaretPosition = isRight ? index2 + 1 : index2;
|
|
27637
|
+
setCaretPosition(newCaretPosition);
|
|
27638
|
+
(_c = (_b = mergedProps.cursor) === null || _b === void 0 ? void 0 : _b.onMove) === null || _c === void 0 ? void 0 : _c.call(_b, newCaretPosition);
|
|
27639
|
+
};
|
|
27640
|
+
const handleTouchStart = (e2) => {
|
|
27641
|
+
var _a;
|
|
27642
|
+
if (mergedProps.disabled || !((_a = mergedProps.cursor) === null || _a === void 0 ? void 0 : _a.movable))
|
|
27643
|
+
return;
|
|
27644
|
+
if (!caretRef.current)
|
|
27645
|
+
return;
|
|
27646
|
+
const touch = e2.touches[0];
|
|
27647
|
+
const caretRect = caretRef.current.getBoundingClientRect();
|
|
27648
|
+
const distance = Math.abs(touch.clientX - (caretRect.left + caretRect.width / 2));
|
|
27649
|
+
if (distance < 20) {
|
|
27650
|
+
touchDataRef.current = {
|
|
27651
|
+
startX: touch.clientX,
|
|
27652
|
+
startCaretPosition: caretPosition
|
|
27653
|
+
};
|
|
27654
|
+
} else {
|
|
27655
|
+
touchDataRef.current = null;
|
|
27656
|
+
}
|
|
27657
|
+
};
|
|
27658
|
+
const handleTouchMove = (e2) => {
|
|
27659
|
+
var _a, _b, _c;
|
|
27660
|
+
if (!touchDataRef.current || !((_a = mergedProps.cursor) === null || _a === void 0 ? void 0 : _a.movable))
|
|
27661
|
+
return;
|
|
27662
|
+
setIsCaretDragging(true);
|
|
27663
|
+
const touch = e2.touches[0];
|
|
27664
|
+
const deltaX = touch.clientX - touchDataRef.current.startX;
|
|
27665
|
+
const charWidth = charWidthRef.current;
|
|
27666
|
+
const moveChars = Math.round(deltaX / charWidth);
|
|
27667
|
+
let newCaretPosition = touchDataRef.current.startCaretPosition + moveChars;
|
|
27668
|
+
newCaretPosition = Math.max(0, Math.min(newCaretPosition, value.length));
|
|
27669
|
+
setCaretPosition(newCaretPosition);
|
|
27670
|
+
(_c = (_b = mergedProps.cursor) === null || _b === void 0 ? void 0 : _b.onMove) === null || _c === void 0 ? void 0 : _c.call(_b, newCaretPosition);
|
|
27671
|
+
if (touchMoveTimeoutRef.current) {
|
|
27672
|
+
clearTimeout(touchMoveTimeoutRef.current);
|
|
27673
|
+
}
|
|
27674
|
+
touchMoveTimeoutRef.current = setTimeout(() => {
|
|
27675
|
+
setIsCaretDragging(false);
|
|
27676
|
+
touchMoveTimeoutRef.current = null;
|
|
27677
|
+
}, 500);
|
|
27678
|
+
};
|
|
27679
|
+
const handleTouchEnd = () => {
|
|
27680
|
+
touchDataRef.current = null;
|
|
27681
|
+
setIsCaretDragging(false);
|
|
27682
|
+
if (touchMoveTimeoutRef.current) {
|
|
27683
|
+
clearTimeout(touchMoveTimeoutRef.current);
|
|
27684
|
+
touchMoveTimeoutRef.current = null;
|
|
27685
|
+
}
|
|
27686
|
+
};
|
|
27687
|
+
const chars = (value + "").split("");
|
|
26821
27688
|
return withNativeProps(mergedProps, React__default.createElement("div", {
|
|
26822
27689
|
ref: rootRef,
|
|
26823
27690
|
className: classNames(classPrefix$2, {
|
|
26824
|
-
[`${classPrefix$2}-disabled`]: mergedProps.disabled
|
|
27691
|
+
[`${classPrefix$2}-disabled`]: mergedProps.disabled,
|
|
27692
|
+
[`${classPrefix$2}-caret-dragging`]: isCaretDragging
|
|
26825
27693
|
}),
|
|
26826
27694
|
tabIndex: mergedProps.disabled ? void 0 : 0,
|
|
26827
27695
|
role: "textbox",
|
|
@@ -26832,12 +27700,24 @@ const VirtualInput = forwardRef((props, ref) => {
|
|
|
26832
27700
|
className: `${classPrefix$2}-content`,
|
|
26833
27701
|
ref: contentRef,
|
|
26834
27702
|
"aria-disabled": mergedProps.disabled,
|
|
26835
|
-
"aria-label": mergedProps.placeholder
|
|
26836
|
-
|
|
27703
|
+
"aria-label": mergedProps.placeholder,
|
|
27704
|
+
onClick: setCaretPositionToEnd,
|
|
27705
|
+
onTouchStart: handleTouchStart,
|
|
27706
|
+
onTouchMove: handleTouchMove,
|
|
27707
|
+
onTouchEnd: handleTouchEnd
|
|
27708
|
+
}, chars.slice(0, caretPosition).map((i2, index2) => React__default.createElement("span", {
|
|
27709
|
+
ref: index2 === 0 ? charRef : void 0,
|
|
27710
|
+
key: index2,
|
|
27711
|
+
onClick: changeCaretPosition(index2)
|
|
27712
|
+
}, i2)), React__default.createElement("div", {
|
|
26837
27713
|
className: `${classPrefix$2}-caret-container`
|
|
26838
27714
|
}, hasFocus && React__default.createElement("div", {
|
|
27715
|
+
ref: caretRef,
|
|
26839
27716
|
className: `${classPrefix$2}-caret`
|
|
26840
|
-
}))
|
|
27717
|
+
})), chars.slice(caretPosition).map((i2, index2) => React__default.createElement("span", {
|
|
27718
|
+
key: index2,
|
|
27719
|
+
onClick: changeCaretPosition(index2 + caretPosition)
|
|
27720
|
+
}, i2))), mergedProps.clearable && !!value && hasFocus && React__default.createElement("div", {
|
|
26841
27721
|
className: `${classPrefix$2}-clear`,
|
|
26842
27722
|
onClick: (e2) => {
|
|
26843
27723
|
var _a;
|
|
@@ -27072,5 +27952,6 @@ export {
|
|
|
27072
27952
|
reduceMotion,
|
|
27073
27953
|
restoreMotion,
|
|
27074
27954
|
setDefaultConfig,
|
|
27955
|
+
unstableSetRender,
|
|
27075
27956
|
useConfig
|
|
27076
27957
|
};
|