@unicom-cloud/ui 0.8.72 → 0.8.74
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/Affix.js +3 -3
- package/Alert.js +3 -3
- package/AutoComplete.js +3 -3
- package/BackTop.js +4 -4
- package/Badge.js +3 -3
- package/Breadcrumb.js +4 -4
- package/Button.js +2 -2
- package/Calendar.js +3 -3
- package/Card.js +2 -2
- package/Carousel.js +2 -2
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +2 -2
- package/Comment.js +2 -2
- package/ConfigProvider.js +1 -1
- package/Copy.js +3 -3
- package/DatePicker.js +1 -1
- package/Descriptions.js +2 -2
- package/Divider.js +2 -2
- package/Draggable.js +2 -2
- package/Dropdown.js +5 -5
- package/Empty.js +2 -2
- package/Icon.js +2 -2
- package/IconHover.js +2 -2
- package/Image.js +1 -1
- package/InputNumber.js +2 -2
- package/Layout.js +2 -2
- package/Link.js +2 -2
- package/List.js +3 -3
- package/Mentions.js +3 -3
- package/Menu.js +1 -1
- package/Message.js +7 -6
- package/Modal.js +1 -1
- package/Notice.js +5 -5
- package/Notification.js +8 -7
- package/OverflowEllipsis.js +2 -2
- package/PageHeader.js +2 -2
- package/Popconfirm.js +3 -3
- package/Popover.js +3 -3
- package/Progress.js +2 -2
- package/Radio.js +1 -1
- package/Rate.js +3 -3
- package/ResizeBox.js +3 -3
- package/Result.js +2 -2
- package/SelectView.js +5 -4
- package/Skeleton.js +2 -2
- package/Slider.js +4 -4
- package/Space.js +2 -2
- package/SpeechSynthesis.js +21 -21
- package/Spin.js +3 -3
- package/Statistic.js +3 -3
- package/Steps.js +2 -2
- package/Switch.js +8 -6
- package/Table.js +1 -1
- package/Tabs.js +1 -1
- package/Tag.js +2 -2
- package/Tooltip.js +4 -4
- package/Transfer.js +3 -3
- package/Tree.js +1 -1
- package/Trigger.js +9 -8
- package/affix/index.js +3 -3
- package/alert/index.js +9 -9
- package/anchor/Anchor.js +62 -59
- package/anchor/Link.js +2 -2
- package/anchor/util.js +2 -2
- package/auto-complete/index.js +3 -3
- package/avatar/Avatar.js +2 -2
- package/avatar/Group.js +2 -2
- package/back-top/index.js +11 -11
- package/badge/Count.js +7 -7
- package/badge/index.js +52 -50
- package/breadcrumb/Item.js +6 -6
- package/breadcrumb/index.js +4 -4
- package/button/Group.js +2 -2
- package/button/index.js +2 -2
- package/calendar/Month.js +2 -2
- package/calendar/Year.js +1 -1
- package/calendar/index.js +4 -4
- package/card/Grid.js +5 -5
- package/card/Meta.js +4 -4
- package/card/index.js +2 -2
- package/carousel/Arrow.js +2 -2
- package/carousel/Indicator.js +6 -6
- package/carousel/index.js +2 -2
- package/cascader/Cascader.js +5 -5
- package/cascader/index.js +1 -1
- package/cascader/util.js +1 -1
- package/checkbox/Checkbox.js +4 -4
- package/checkbox/Group.js +4 -4
- package/checkbox/index.js +1 -1
- package/chunk/{6nKl68Er.js → 9we0Q8Kh.js} +4 -4
- package/chunk/{b1e8awfs.js → B0n0iRhF.js} +1 -1
- package/chunk/{Cf4qn5jY.js → BDZpJpz-.js} +3 -3
- package/chunk/BFmckYou.js +25 -0
- package/chunk/{fFjj2KuF.js → BJ9_azwQ.js} +493 -515
- package/chunk/{BnWo0OJ0.js → Bd9zhOZS.js} +9 -9
- package/chunk/{uKZyjtff.js → BhBEMwvI.js} +21 -20
- package/chunk/{Bfq4YEcr.js → Bmvhjhzq.js} +9 -8
- package/chunk/{CdAuhef7.js → BoUHPeG7.js} +2 -2
- package/chunk/BpYX5PN4.js +27 -0
- package/chunk/{CP7Ac47f.js → Bu8A2l60.js} +4 -4
- package/chunk/{URXCKjXr.js → C0pRaDCf.js} +23 -23
- package/chunk/CUFsOxJ2.js +10 -0
- package/chunk/CWjvjpyc.js +873 -0
- package/chunk/{ClaNycDy.js → Cc_-i0o_.js} +2 -2
- package/chunk/Coz3rCng.js +33 -0
- package/chunk/{BHL-PzAD.js → CplLA01W.js} +17 -17
- package/chunk/{Cgbja_v_.js → Crs3isAx.js} +14 -13
- package/chunk/{Ey4YJCkX.js → D0Dlbc2g.js} +2 -1
- package/chunk/{y9unmTx_.js → D5UfU6-H.js} +127 -127
- package/chunk/DAAff-FT.js +59 -0
- package/chunk/{rp1MtSd0.js → DJ8rDYjb.js} +4 -4
- package/chunk/{AwZqeapI.js → DRTWRsgI.js} +1 -1
- package/chunk/DU1RCDfh.js +29 -0
- package/chunk/{CAVVFFyZ.js → DdT3C0ih.js} +6 -8
- package/chunk/{CdaT1b_F.js → DeV0v__J.js} +2 -2
- package/chunk/{IUjEMHU1.js → Dn7KbmZ7.js} +194 -191
- package/chunk/{DpoumMDw.js → DohlrJ4S.js} +1 -1
- package/chunk/{BDHuWwhT.js → NmSLBKjp.js} +3 -3
- package/chunk/{DV7ywe_q.js → RS6OAxzv.js} +2 -2
- package/chunk/{Biupwn8l.js → ZrBrCzQX.js} +6 -5
- package/chunk/_L2dKF58.js +647 -0
- package/chunk/{BJ1soa2K.js → uEGHykhe.js} +18 -18
- package/chunk/{D090jlwP.js → xAb6ZgqS.js} +1 -1
- package/collapse/Collapse.js +4 -4
- package/collapse/Item.js +4 -4
- package/collapse/index.js +1 -1
- package/color-picker/ControlBar.js +2 -2
- package/color-picker/InputAlpha.js +1 -1
- package/color-picker/InputHex.js +8 -8
- package/color-picker/InputRgb.js +6 -6
- package/color-picker/Palette.js +2 -2
- package/color-picker/Panel.js +17 -17
- package/color-picker/colors.js +20 -9
- package/color-picker/index.js +21 -21
- package/color-picker/utils.js +1 -1
- package/comment/index.js +6 -6
- package/config-provider/ConfigProvider.js +2 -2
- package/config-provider/context.js +1 -1
- package/config-provider/index.js +2 -2
- package/copy/index.js +16 -16
- package/date-picker/Picker.js +2 -2
- package/date-picker/PickerRange.js +3 -3
- package/date-picker/index.js +1 -1
- package/descriptions/index.js +3 -3
- package/divider/index.js +5 -5
- package/draggable/Item.js +1 -1
- package/draggable/index.js +9 -9
- package/drawer/Drawer.js +122 -112
- package/dropdown/Button.js +1 -1
- package/dropdown/index.js +5 -5
- package/empty/index.js +2 -2
- package/form/Control.js +1 -1
- package/form/Form.js +3 -3
- package/form/FormItem.js +3 -3
- package/form/FormLabel.js +9 -9
- package/form/promisify.js +9 -8
- package/form/store.js +1 -1
- package/form/util.js +1 -1
- package/grid/Col.js +2 -2
- package/grid/Row.js +3 -3
- package/grid/grid-item.js +3 -3
- package/grid/grid.js +9 -9
- package/hooks/index.js +5 -5
- package/hooks/useInView.js +1 -1
- package/hooks/useIntersectionObserver.js +1 -1
- package/hooks/useMergeValue.js +1 -1
- package/hooks/useOverflowHidden.js +1 -1
- package/hooks/useOverrideRef.js +1 -1
- package/hooks/useVerificationCode.js +2 -2
- package/icon/index.js +11 -11
- package/icon-hover/index.js +2 -2
- package/image/Image.js +6 -6
- package/image/ImageFooter.js +2 -2
- package/image/ImagePreview.js +10 -10
- package/image/ImagePreviewArrow.js +4 -4
- package/image/ImagePreviewGroup.js +2 -2
- package/image/ImagePreviewToolbar.js +1 -1
- package/image/TriggerForToolbar.js +4 -4
- package/image/index.js +1 -1
- package/index.js +585 -575
- package/input/Group.js +4 -4
- package/input/Input.js +5 -4
- package/input/InputElement.js +4 -4
- package/input/Password.js +3 -3
- package/input/Search.js +3 -3
- package/input/Textarea.js +7 -6
- package/input-number/index.js +2 -2
- package/input-tag/InputTag.js +53 -51
- package/layout/Content.js +2 -2
- package/layout/Footer.js +5 -5
- package/layout/Header.js +4 -4
- package/layout/Sider.js +4 -4
- package/layout/index.js +2 -2
- package/link/index.js +5 -5
- package/list/Item.js +2 -2
- package/list/Meta.js +4 -4
- package/list/index.js +3 -3
- package/locale/en-US.js +1 -1
- package/locale/tr-TR.js +1 -1
- package/mentions/index.js +3 -3
- package/menu/Item.js +6 -6
- package/menu/ItemGroup.js +1 -1
- package/menu/Menu.js +4 -4
- package/menu/OverflowWrap.js +2 -2
- package/menu/index.js +2 -2
- package/message/index.js +7 -6
- package/message/useMessage.js +1 -1
- package/modal/Confirm.js +2 -2
- package/modal/Modal.js +9 -8
- package/modal/index.js +1 -1
- package/notice/index.js +5 -5
- package/notification/index.js +8 -7
- package/notification/useNotification.js +1 -1
- package/overflow-ellipsis/OverflowItem.js +6 -6
- package/overflow-ellipsis/index.js +8 -8
- package/package.json +1 -1
- package/page-header/index.js +2 -2
- package/pagination/PageItem.js +2 -2
- package/pagination/PageJumper.js +1 -1
- package/pagination/PageOption.js +1 -1
- package/pagination/Pagination.js +24 -24
- package/picker/Input.js +7 -7
- package/picker/InputRange.js +9 -9
- package/popconfirm/index.js +3 -3
- package/popover/index.js +3 -3
- package/progress/CircleProgress.js +7 -7
- package/progress/LineProgess.js +1 -1
- package/progress/StepProgress.js +7 -7
- package/progress/index.js +8 -8
- package/radio/Group.js +4 -4
- package/radio/Radio.js +4 -4
- package/radio/index.js +2 -2
- package/rate/index.js +27 -27
- package/resize-box/ResizeTrigger.js +26 -25
- package/resize-box/Split.js +12 -12
- package/resize-box/SplitGroup.js +2 -2
- package/resize-box/index.js +3 -3
- package/result/index.js +9 -9
- package/select/Option.js +2 -2
- package/select/Select.js +6 -5
- package/select/util.js +12 -12
- package/select-view/Core.js +29 -29
- package/select-view/index.js +3 -2
- package/skeleton/Image.js +4 -4
- package/skeleton/Text.js +7 -7
- package/skeleton/index.js +2 -2
- package/slider/Button.js +3 -3
- package/slider/Dot.js +5 -5
- package/slider/Input.js +12 -12
- package/slider/Tick.js +7 -7
- package/slider/index.js +20 -20
- package/slider/util.js +8 -8
- package/space/index.js +12 -12
- package/speech-synthesis/index.js +21 -21
- package/spin/DotLoading.js +1 -1
- package/spin/index.js +3 -3
- package/statistic/Countdown.js +7 -7
- package/statistic/index.js +20 -20
- package/steps/Step.js +1 -1
- package/steps/index.js +2 -2
- package/style/variables.less +1 -1
- package/style.css +1 -1
- package/switch/index.js +17 -15
- package/table/Table.js +4 -4
- package/table/index.js +4 -4
- package/tabs/Tab.js +4 -4
- package/tabs/TabContent.js +3 -3
- package/tabs/TabPane.js +2 -2
- package/tabs/index.js +2 -2
- package/tag/index.js +6 -6
- package/time-picker/Picker.js +2 -2
- package/time-picker/TimeColumn.js +7 -7
- package/time-picker/TimePicker.js +23 -23
- package/time-picker/util.js +5 -5
- package/timeline/Item.js +2 -2
- package/timeline/Timeline.js +2 -2
- package/tooltip/index.js +4 -4
- package/transfer/Item.js +3 -3
- package/transfer/List.js +3 -3
- package/transfer/index.js +3 -3
- package/tree/Animation.js +3 -3
- package/tree/Node.js +4 -4
- package/tree/NodeList.js +2 -2
- package/tree/Tree.js +4 -4
- package/tree/index.js +1 -1
- package/tree-select/Select.js +25 -25
- package/trigger/getPopupStyle.js +2 -2
- package/trigger/index.js +8 -7
- package/types/badge/interface.d.ts +1 -0
- package/types/color-picker/colors.d.ts +1 -1
- package/types/date-picker/util.d.ts +1 -1
- package/types/drawer/interface.d.ts +10 -0
- package/types/index.d.ts +0 -7
- package/types/modal/Confirm.d.ts +1 -0
- package/types/utils/PqbCSSTransition.d.ts +3 -0
- package/types/utils/caseName.d.ts +1 -0
- package/types/utils/className.d.ts +1 -0
- package/types/utils/color.d.ts +1 -0
- package/types/utils/computeScrollIntoView.d.ts +1 -0
- package/types/utils/contextHolder.d.ts +1 -0
- package/types/utils/copy.d.ts +1 -0
- package/types/utils/fileToURL.d.ts +1 -0
- package/types/utils/fillNBSP.d.ts +1 -0
- package/types/utils/getHighlightText.d.ts +1 -0
- package/types/utils/getHotkeyHandler.d.ts +1 -0
- package/types/utils/getStringLength.d.ts +1 -0
- package/types/utils/include.d.ts +1 -0
- package/types/utils/index.d.ts +29 -25
- package/types/utils/is.d.ts +1 -1
- package/types/utils/keyboardCode.d.ts +1 -0
- package/types/utils/math.d.ts +1 -0
- package/types/utils/mergeProps.d.ts +1 -0
- package/types/utils/mergedToString.d.ts +1 -0
- package/types/utils/names.d.ts +497 -81
- package/types/utils/omit.d.ts +1 -0
- package/types/utils/pick.d.ts +1 -1
- package/types/utils/reactTransitionGroup.d.ts +1 -0
- package/types/utils/responsiveObserve.d.ts +1 -0
- package/types/utils/saveAs.d.ts +1 -0
- package/types/utils/screenfull.d.ts +1 -0
- package/types/utils/scrollIntoView.d.ts +1 -0
- package/types/utils/tinycolor.d.ts +1 -0
- package/types/utils/tree.d.ts +1 -0
- package/types/utils/tween.d.ts +1 -0
- package/types/utils/uuid.d.ts +1 -0
- package/types/utils/validate.d.ts +1 -0
- package/types/version/index.d.ts +1 -1
- package/typography/Base.js +7 -6
- package/typography/EditContent.js +1 -1
- package/typography/Ellipsis.js +28 -28
- package/typography/Paragraph.js +6 -6
- package/typography/Typography.js +5 -5
- package/typography/index.js +28 -28
- package/upload/TriggerNode.js +2 -2
- package/upload/Upload.js +62 -60
- package/upload/Uploader.js +21 -21
- package/upload/request_.js +4 -3
- package/utils/PqbCSSTransition.js +5 -0
- package/utils/caseName.js +3 -2
- package/utils/className.js +3 -2
- package/utils/color.js +4 -0
- package/utils/computeScrollIntoView.js +128 -0
- package/utils/contextHolder.js +3 -2
- package/utils/copy.js +4 -2
- package/utils/fileToURL.js +3 -2
- package/utils/fillNBSP.js +2 -1
- package/utils/getHighlightText.js +2 -1
- package/utils/getHotkeyHandler.js +2 -1
- package/utils/getStringLength.js +2 -1
- package/utils/include.js +2 -1
- package/utils/index.js +299 -256
- package/utils/is.js +104 -101
- package/utils/keyboardCode.js +2 -1
- package/utils/math.js +35 -0
- package/utils/mergeProps.js +2 -1
- package/utils/mergedToString.js +2 -1
- package/utils/names.js +332 -81
- package/utils/omit.js +2 -1
- package/utils/pick.js +1 -0
- package/utils/react19Adapter.js +1 -1
- package/utils/reactDOM.js +1 -1
- package/utils/reactTransitionGroup.js +10 -0
- package/utils/responsiveObserve.js +2 -1
- package/utils/saveAs.js +3 -2
- package/utils/screenfull.js +2 -1
- package/utils/scrollIntoView.js +4 -2
- package/utils/tinycolor.js +30 -0
- package/utils/tree.js +87 -0
- package/utils/tween.js +6 -0
- package/utils/uuid.js +5 -0
- package/utils/validate.js +7 -0
- package/verification-code/VerificationCode.js +7 -7
- package/version/index.js +3 -3
- package/virtual-list/VirtualList.js +1 -1
- package/watermark/Watermark.js +6 -6
- package/chunk/B4JiMp8I.js +0 -764
- package/chunk/B6X4lnd0.js +0 -116
- package/chunk/BibHFOCF.js +0 -34
- package/chunk/CTxjmYmx.js +0 -19
- package/chunk/CVYWxu00.js +0 -155
- package/chunk/CbLaCJmG.js +0 -26
- package/chunk/D-TPB2Do.js +0 -56
- package/chunk/DVfOiRp-.js +0 -629
- package/chunk/DxxOUMSa.js +0 -98
- package/chunk/JPPo5nY_.js +0 -9
- package/types/utils/CSSTransition.d.ts +0 -2
- package/utils/CSSTransition.js +0 -4
|
@@ -1,97 +1,95 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
import { f as He, c as Fe } from "./ClaNycDy.js";
|
|
7
|
-
const ve = {
|
|
1
|
+
import { jsx as q } from "react/jsx-runtime";
|
|
2
|
+
import g, { isValidElement as Z, cloneElement as ee, Children as We } from "react";
|
|
3
|
+
import Y from "react-dom";
|
|
4
|
+
import Ne from "react-is";
|
|
5
|
+
const fe = {
|
|
8
6
|
disabled: !1
|
|
9
7
|
};
|
|
10
|
-
function
|
|
8
|
+
function Fe(n, e) {
|
|
11
9
|
return n.classList ? !!e && n.classList.contains(e) : ` ${n.className.baseVal || n.className} `.indexOf(
|
|
12
10
|
` ${e} `
|
|
13
11
|
) !== -1;
|
|
14
12
|
}
|
|
15
|
-
function
|
|
16
|
-
n.classList ? n.classList.add(e) :
|
|
13
|
+
function Ue(n, e) {
|
|
14
|
+
n.classList ? n.classList.add(e) : Fe(n, e) || (typeof n.className == "string" ? n.className = `${n.className} ${e}` : n.setAttribute(
|
|
17
15
|
"class",
|
|
18
16
|
`${n.className && n.className.baseVal || ""} ${e}`
|
|
19
17
|
));
|
|
20
18
|
}
|
|
21
|
-
function
|
|
19
|
+
function Ye(n) {
|
|
22
20
|
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
23
21
|
}
|
|
24
|
-
var
|
|
22
|
+
var Q = { exports: {} };
|
|
25
23
|
/*
|
|
26
24
|
object-assign
|
|
27
25
|
(c) Sindre Sorhus
|
|
28
26
|
@license MIT
|
|
29
27
|
*/
|
|
30
|
-
var ne,
|
|
31
|
-
function
|
|
32
|
-
if (
|
|
33
|
-
|
|
28
|
+
var ne, he;
|
|
29
|
+
function Ge() {
|
|
30
|
+
if (he) return ne;
|
|
31
|
+
he = 1;
|
|
34
32
|
var n = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, t = Object.prototype.propertyIsEnumerable;
|
|
35
33
|
function r(i) {
|
|
36
34
|
if (i == null)
|
|
37
35
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
38
36
|
return Object(i);
|
|
39
37
|
}
|
|
40
|
-
function
|
|
38
|
+
function o() {
|
|
41
39
|
try {
|
|
42
40
|
if (!Object.assign)
|
|
43
41
|
return !1;
|
|
44
42
|
var i = new String("abc");
|
|
45
43
|
if (i[5] = "de", Object.getOwnPropertyNames(i)[0] === "5")
|
|
46
44
|
return !1;
|
|
47
|
-
for (var u = {},
|
|
48
|
-
u["_" + String.fromCharCode(
|
|
49
|
-
var
|
|
50
|
-
return u[
|
|
45
|
+
for (var u = {}, c = 0; c < 10; c++)
|
|
46
|
+
u["_" + String.fromCharCode(c)] = c;
|
|
47
|
+
var O = Object.getOwnPropertyNames(u).map(function(b) {
|
|
48
|
+
return u[b];
|
|
51
49
|
});
|
|
52
|
-
if (
|
|
50
|
+
if (O.join("") !== "0123456789")
|
|
53
51
|
return !1;
|
|
54
|
-
var
|
|
55
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
56
|
-
|
|
57
|
-
}), Object.keys(Object.assign({},
|
|
52
|
+
var N = {};
|
|
53
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(b) {
|
|
54
|
+
N[b] = b;
|
|
55
|
+
}), Object.keys(Object.assign({}, N)).join("") === "abcdefghijklmnopqrst";
|
|
58
56
|
} catch {
|
|
59
57
|
return !1;
|
|
60
58
|
}
|
|
61
59
|
}
|
|
62
|
-
return ne =
|
|
63
|
-
for (var
|
|
64
|
-
|
|
65
|
-
for (var
|
|
66
|
-
e.call(
|
|
60
|
+
return ne = o() ? Object.assign : function(i, u) {
|
|
61
|
+
for (var c, O = r(i), N, b = 1; b < arguments.length; b++) {
|
|
62
|
+
c = Object(arguments[b]);
|
|
63
|
+
for (var T in c)
|
|
64
|
+
e.call(c, T) && (O[T] = c[T]);
|
|
67
65
|
if (n) {
|
|
68
|
-
|
|
69
|
-
for (var S = 0; S <
|
|
70
|
-
t.call(
|
|
66
|
+
N = n(c);
|
|
67
|
+
for (var S = 0; S < N.length; S++)
|
|
68
|
+
t.call(c, N[S]) && (O[N[S]] = c[N[S]]);
|
|
71
69
|
}
|
|
72
70
|
}
|
|
73
|
-
return
|
|
71
|
+
return O;
|
|
74
72
|
}, ne;
|
|
75
73
|
}
|
|
76
|
-
var re,
|
|
77
|
-
function
|
|
78
|
-
if (
|
|
79
|
-
|
|
74
|
+
var re, Ee;
|
|
75
|
+
function ue() {
|
|
76
|
+
if (Ee) return re;
|
|
77
|
+
Ee = 1;
|
|
80
78
|
var n = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
81
79
|
return re = n, re;
|
|
82
80
|
}
|
|
83
|
-
var
|
|
84
|
-
function
|
|
85
|
-
return
|
|
81
|
+
var me, ye;
|
|
82
|
+
function Ce() {
|
|
83
|
+
return ye || (ye = 1, me = Function.call.bind(Object.prototype.hasOwnProperty)), me;
|
|
86
84
|
}
|
|
87
|
-
var
|
|
88
|
-
function
|
|
89
|
-
if (
|
|
90
|
-
|
|
85
|
+
var ie, ve;
|
|
86
|
+
function Je() {
|
|
87
|
+
if (ve) return ie;
|
|
88
|
+
ve = 1;
|
|
91
89
|
var n = function() {
|
|
92
90
|
};
|
|
93
91
|
if (process.env.NODE_ENV !== "production") {
|
|
94
|
-
var e = /* @__PURE__ */
|
|
92
|
+
var e = /* @__PURE__ */ ue(), t = {}, r = /* @__PURE__ */ Ce();
|
|
95
93
|
n = function(i) {
|
|
96
94
|
var u = "Warning: " + i;
|
|
97
95
|
typeof console < "u" && console.error(u);
|
|
@@ -101,59 +99,59 @@ function Ke() {
|
|
|
101
99
|
}
|
|
102
100
|
};
|
|
103
101
|
}
|
|
104
|
-
function
|
|
102
|
+
function o(i, u, c, O, N) {
|
|
105
103
|
if (process.env.NODE_ENV !== "production") {
|
|
106
|
-
for (var
|
|
107
|
-
if (r(i,
|
|
108
|
-
var
|
|
104
|
+
for (var b in i)
|
|
105
|
+
if (r(i, b)) {
|
|
106
|
+
var T;
|
|
109
107
|
try {
|
|
110
|
-
if (typeof i[
|
|
108
|
+
if (typeof i[b] != "function") {
|
|
111
109
|
var S = Error(
|
|
112
|
-
(
|
|
110
|
+
(O || "React class") + ": " + c + " type `" + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof i[b] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
113
111
|
);
|
|
114
112
|
throw S.name = "Invariant Violation", S;
|
|
115
113
|
}
|
|
116
|
-
|
|
117
|
-
} catch (
|
|
118
|
-
|
|
114
|
+
T = i[b](u, b, O, c, null, e);
|
|
115
|
+
} catch (B) {
|
|
116
|
+
T = B;
|
|
119
117
|
}
|
|
120
|
-
if (
|
|
121
|
-
(
|
|
122
|
-
),
|
|
123
|
-
t[
|
|
124
|
-
var A =
|
|
118
|
+
if (T && !(T instanceof Error) && n(
|
|
119
|
+
(O || "React class") + ": type specification of " + c + " `" + b + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof T + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
120
|
+
), T instanceof Error && !(T.message in t)) {
|
|
121
|
+
t[T.message] = !0;
|
|
122
|
+
var A = N ? N() : "";
|
|
125
123
|
n(
|
|
126
|
-
"Failed " +
|
|
124
|
+
"Failed " + c + " type: " + T.message + (A ?? "")
|
|
127
125
|
);
|
|
128
126
|
}
|
|
129
127
|
}
|
|
130
128
|
}
|
|
131
129
|
}
|
|
132
|
-
return
|
|
130
|
+
return o.resetWarningCache = function() {
|
|
133
131
|
process.env.NODE_ENV !== "production" && (t = {});
|
|
134
|
-
},
|
|
132
|
+
}, ie = o, ie;
|
|
135
133
|
}
|
|
136
134
|
var oe, xe;
|
|
137
|
-
function
|
|
135
|
+
function ze() {
|
|
138
136
|
if (xe) return oe;
|
|
139
137
|
xe = 1;
|
|
140
|
-
var n =
|
|
138
|
+
var n = Ne, e = Ge(), t = /* @__PURE__ */ ue(), r = /* @__PURE__ */ Ce(), o = /* @__PURE__ */ Je(), i = function() {
|
|
141
139
|
};
|
|
142
|
-
process.env.NODE_ENV !== "production" && (i = function(
|
|
143
|
-
var
|
|
144
|
-
typeof console < "u" && console.error(
|
|
140
|
+
process.env.NODE_ENV !== "production" && (i = function(c) {
|
|
141
|
+
var O = "Warning: " + c;
|
|
142
|
+
typeof console < "u" && console.error(O);
|
|
145
143
|
try {
|
|
146
|
-
throw new Error(
|
|
144
|
+
throw new Error(O);
|
|
147
145
|
} catch {
|
|
148
146
|
}
|
|
149
147
|
});
|
|
150
148
|
function u() {
|
|
151
149
|
return null;
|
|
152
150
|
}
|
|
153
|
-
return oe = function(
|
|
154
|
-
var
|
|
155
|
-
function
|
|
156
|
-
var a =
|
|
151
|
+
return oe = function(c, O) {
|
|
152
|
+
var N = typeof Symbol == "function" && Symbol.iterator, b = "@@iterator";
|
|
153
|
+
function T(s) {
|
|
154
|
+
var a = s && (N && s[N] || s[b]);
|
|
157
155
|
if (typeof a == "function")
|
|
158
156
|
return a;
|
|
159
157
|
}
|
|
@@ -166,246 +164,246 @@ function Qe() {
|
|
|
166
164
|
object: I("object"),
|
|
167
165
|
string: I("string"),
|
|
168
166
|
symbol: I("symbol"),
|
|
169
|
-
any:
|
|
170
|
-
arrayOf:
|
|
171
|
-
element:
|
|
167
|
+
any: H(),
|
|
168
|
+
arrayOf: we,
|
|
169
|
+
element: Re(),
|
|
172
170
|
elementType: $e(),
|
|
173
|
-
instanceOf:
|
|
174
|
-
node:
|
|
175
|
-
objectOf:
|
|
176
|
-
oneOf:
|
|
171
|
+
instanceOf: je,
|
|
172
|
+
node: Ae(),
|
|
173
|
+
objectOf: Pe,
|
|
174
|
+
oneOf: De,
|
|
177
175
|
oneOfType: Ie,
|
|
178
|
-
shape:
|
|
179
|
-
exact:
|
|
176
|
+
shape: Ve,
|
|
177
|
+
exact: _e
|
|
180
178
|
};
|
|
181
|
-
function
|
|
182
|
-
return
|
|
179
|
+
function B(s, a) {
|
|
180
|
+
return s === a ? s !== 0 || 1 / s === 1 / a : s !== s && a !== a;
|
|
183
181
|
}
|
|
184
|
-
function C(
|
|
185
|
-
this.message =
|
|
182
|
+
function C(s, a) {
|
|
183
|
+
this.message = s, this.data = a && typeof a == "object" ? a : {}, this.stack = "";
|
|
186
184
|
}
|
|
187
185
|
C.prototype = Error.prototype;
|
|
188
|
-
function w(
|
|
186
|
+
function w(s) {
|
|
189
187
|
if (process.env.NODE_ENV !== "production")
|
|
190
188
|
var a = {}, E = 0;
|
|
191
|
-
function
|
|
192
|
-
if (y = y || S,
|
|
193
|
-
if (
|
|
194
|
-
var
|
|
189
|
+
function f(m, d, h, y, x, v, k) {
|
|
190
|
+
if (y = y || S, v = v || h, k !== t) {
|
|
191
|
+
if (O) {
|
|
192
|
+
var R = new Error(
|
|
195
193
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
196
194
|
);
|
|
197
|
-
throw
|
|
195
|
+
throw R.name = "Invariant Violation", R;
|
|
198
196
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
199
|
-
var
|
|
200
|
-
!a[
|
|
197
|
+
var K = y + ":" + h;
|
|
198
|
+
!a[K] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
201
199
|
E < 3 && (i(
|
|
202
|
-
"You are manually calling a React.PropTypes validation function for the `" +
|
|
203
|
-
), a[
|
|
200
|
+
"You are manually calling a React.PropTypes validation function for the `" + v + "` prop on `" + y + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
201
|
+
), a[K] = !0, E++);
|
|
204
202
|
}
|
|
205
203
|
}
|
|
206
|
-
return
|
|
204
|
+
return d[h] == null ? m ? d[h] === null ? new C("The " + x + " `" + v + "` is marked as required " + ("in `" + y + "`, but its value is `null`.")) : new C("The " + x + " `" + v + "` is marked as required in " + ("`" + y + "`, but its value is `undefined`.")) : null : s(d, h, y, x, v);
|
|
207
205
|
}
|
|
208
|
-
var p =
|
|
209
|
-
return p.isRequired =
|
|
206
|
+
var p = f.bind(null, !1);
|
|
207
|
+
return p.isRequired = f.bind(null, !0), p;
|
|
210
208
|
}
|
|
211
|
-
function I(
|
|
212
|
-
function a(E,
|
|
213
|
-
var y = E[
|
|
214
|
-
if (
|
|
215
|
-
var
|
|
209
|
+
function I(s) {
|
|
210
|
+
function a(E, f, p, m, d, h) {
|
|
211
|
+
var y = E[f], x = V(y);
|
|
212
|
+
if (x !== s) {
|
|
213
|
+
var v = U(y);
|
|
216
214
|
return new C(
|
|
217
|
-
"Invalid " +
|
|
218
|
-
{ expectedType:
|
|
215
|
+
"Invalid " + m + " `" + d + "` of type " + ("`" + v + "` supplied to `" + p + "`, expected ") + ("`" + s + "`."),
|
|
216
|
+
{ expectedType: s }
|
|
219
217
|
);
|
|
220
218
|
}
|
|
221
219
|
return null;
|
|
222
220
|
}
|
|
223
221
|
return w(a);
|
|
224
222
|
}
|
|
225
|
-
function
|
|
223
|
+
function H() {
|
|
226
224
|
return w(u);
|
|
227
225
|
}
|
|
228
|
-
function
|
|
229
|
-
function a(E,
|
|
230
|
-
if (typeof
|
|
231
|
-
return new C("Property `" +
|
|
232
|
-
var h = E[
|
|
226
|
+
function we(s) {
|
|
227
|
+
function a(E, f, p, m, d) {
|
|
228
|
+
if (typeof s != "function")
|
|
229
|
+
return new C("Property `" + d + "` of component `" + p + "` has invalid PropType notation inside arrayOf.");
|
|
230
|
+
var h = E[f];
|
|
233
231
|
if (!Array.isArray(h)) {
|
|
234
|
-
var y =
|
|
235
|
-
return new C("Invalid " +
|
|
232
|
+
var y = V(h);
|
|
233
|
+
return new C("Invalid " + m + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected an array."));
|
|
236
234
|
}
|
|
237
|
-
for (var
|
|
238
|
-
var
|
|
239
|
-
if (
|
|
240
|
-
return
|
|
235
|
+
for (var x = 0; x < h.length; x++) {
|
|
236
|
+
var v = s(h, x, p, m, d + "[" + x + "]", t);
|
|
237
|
+
if (v instanceof Error)
|
|
238
|
+
return v;
|
|
241
239
|
}
|
|
242
240
|
return null;
|
|
243
241
|
}
|
|
244
242
|
return w(a);
|
|
245
243
|
}
|
|
246
|
-
function
|
|
247
|
-
function
|
|
248
|
-
var
|
|
249
|
-
if (!
|
|
250
|
-
var h =
|
|
251
|
-
return new C("Invalid " + p + " `" +
|
|
244
|
+
function Re() {
|
|
245
|
+
function s(a, E, f, p, m) {
|
|
246
|
+
var d = a[E];
|
|
247
|
+
if (!c(d)) {
|
|
248
|
+
var h = V(d);
|
|
249
|
+
return new C("Invalid " + p + " `" + m + "` of type " + ("`" + h + "` supplied to `" + f + "`, expected a single ReactElement."));
|
|
252
250
|
}
|
|
253
251
|
return null;
|
|
254
252
|
}
|
|
255
|
-
return w(
|
|
253
|
+
return w(s);
|
|
256
254
|
}
|
|
257
255
|
function $e() {
|
|
258
|
-
function
|
|
259
|
-
var
|
|
260
|
-
if (!n.isValidElementType(
|
|
261
|
-
var h =
|
|
262
|
-
return new C("Invalid " + p + " `" +
|
|
256
|
+
function s(a, E, f, p, m) {
|
|
257
|
+
var d = a[E];
|
|
258
|
+
if (!n.isValidElementType(d)) {
|
|
259
|
+
var h = V(d);
|
|
260
|
+
return new C("Invalid " + p + " `" + m + "` of type " + ("`" + h + "` supplied to `" + f + "`, expected a single ReactElement type."));
|
|
263
261
|
}
|
|
264
262
|
return null;
|
|
265
263
|
}
|
|
266
|
-
return w(
|
|
264
|
+
return w(s);
|
|
267
265
|
}
|
|
268
|
-
function
|
|
269
|
-
function a(E,
|
|
270
|
-
if (!(E[
|
|
271
|
-
var h =
|
|
272
|
-
return new C("Invalid " +
|
|
266
|
+
function je(s) {
|
|
267
|
+
function a(E, f, p, m, d) {
|
|
268
|
+
if (!(E[f] instanceof s)) {
|
|
269
|
+
var h = s.name || S, y = qe(E[f]);
|
|
270
|
+
return new C("Invalid " + m + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected ") + ("instance of `" + h + "`."));
|
|
273
271
|
}
|
|
274
272
|
return null;
|
|
275
273
|
}
|
|
276
274
|
return w(a);
|
|
277
275
|
}
|
|
278
|
-
function
|
|
279
|
-
if (!Array.isArray(
|
|
276
|
+
function De(s) {
|
|
277
|
+
if (!Array.isArray(s))
|
|
280
278
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? i(
|
|
281
279
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
282
280
|
) : i("Invalid argument supplied to oneOf, expected an array.")), u;
|
|
283
|
-
function a(E,
|
|
284
|
-
for (var h = E[
|
|
285
|
-
if (
|
|
281
|
+
function a(E, f, p, m, d) {
|
|
282
|
+
for (var h = E[f], y = 0; y < s.length; y++)
|
|
283
|
+
if (B(h, s[y]))
|
|
286
284
|
return null;
|
|
287
|
-
var
|
|
288
|
-
var
|
|
289
|
-
return
|
|
285
|
+
var x = JSON.stringify(s, function(v, k) {
|
|
286
|
+
var R = U(k);
|
|
287
|
+
return R === "symbol" ? String(k) : k;
|
|
290
288
|
});
|
|
291
|
-
return new C("Invalid " +
|
|
289
|
+
return new C("Invalid " + m + " `" + d + "` of value `" + String(h) + "` " + ("supplied to `" + p + "`, expected one of " + x + "."));
|
|
292
290
|
}
|
|
293
291
|
return w(a);
|
|
294
292
|
}
|
|
295
|
-
function
|
|
296
|
-
function a(E,
|
|
297
|
-
if (typeof
|
|
298
|
-
return new C("Property `" +
|
|
299
|
-
var h = E[
|
|
293
|
+
function Pe(s) {
|
|
294
|
+
function a(E, f, p, m, d) {
|
|
295
|
+
if (typeof s != "function")
|
|
296
|
+
return new C("Property `" + d + "` of component `" + p + "` has invalid PropType notation inside objectOf.");
|
|
297
|
+
var h = E[f], y = V(h);
|
|
300
298
|
if (y !== "object")
|
|
301
|
-
return new C("Invalid " +
|
|
302
|
-
for (var
|
|
303
|
-
if (r(h,
|
|
304
|
-
var
|
|
305
|
-
if (
|
|
306
|
-
return
|
|
299
|
+
return new C("Invalid " + m + " `" + d + "` of type " + ("`" + y + "` supplied to `" + p + "`, expected an object."));
|
|
300
|
+
for (var x in h)
|
|
301
|
+
if (r(h, x)) {
|
|
302
|
+
var v = s(h, x, p, m, d + "." + x, t);
|
|
303
|
+
if (v instanceof Error)
|
|
304
|
+
return v;
|
|
307
305
|
}
|
|
308
306
|
return null;
|
|
309
307
|
}
|
|
310
308
|
return w(a);
|
|
311
309
|
}
|
|
312
|
-
function Ie(
|
|
313
|
-
if (!Array.isArray(
|
|
310
|
+
function Ie(s) {
|
|
311
|
+
if (!Array.isArray(s))
|
|
314
312
|
return process.env.NODE_ENV !== "production" && i("Invalid argument supplied to oneOfType, expected an instance of array."), u;
|
|
315
|
-
for (var a = 0; a <
|
|
316
|
-
var E =
|
|
313
|
+
for (var a = 0; a < s.length; a++) {
|
|
314
|
+
var E = s[a];
|
|
317
315
|
if (typeof E != "function")
|
|
318
316
|
return i(
|
|
319
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " +
|
|
317
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + Me(E) + " at index " + a + "."
|
|
320
318
|
), u;
|
|
321
319
|
}
|
|
322
|
-
function
|
|
323
|
-
for (var
|
|
324
|
-
var
|
|
325
|
-
if (
|
|
320
|
+
function f(p, m, d, h, y) {
|
|
321
|
+
for (var x = [], v = 0; v < s.length; v++) {
|
|
322
|
+
var k = s[v], R = k(p, m, d, h, y, t);
|
|
323
|
+
if (R == null)
|
|
326
324
|
return null;
|
|
327
|
-
|
|
325
|
+
R.data && r(R.data, "expectedType") && x.push(R.data.expectedType);
|
|
328
326
|
}
|
|
329
|
-
var
|
|
330
|
-
return new C("Invalid " + h + " `" + y + "` supplied to " + ("`" +
|
|
327
|
+
var K = x.length > 0 ? ", expected one of type [" + x.join(", ") + "]" : "";
|
|
328
|
+
return new C("Invalid " + h + " `" + y + "` supplied to " + ("`" + d + "`" + K + "."));
|
|
331
329
|
}
|
|
332
|
-
return w(
|
|
330
|
+
return w(f);
|
|
333
331
|
}
|
|
334
|
-
function
|
|
335
|
-
function
|
|
336
|
-
return
|
|
332
|
+
function Ae() {
|
|
333
|
+
function s(a, E, f, p, m) {
|
|
334
|
+
return X(a[E]) ? null : new C("Invalid " + p + " `" + m + "` supplied to " + ("`" + f + "`, expected a ReactNode."));
|
|
337
335
|
}
|
|
338
|
-
return w(
|
|
336
|
+
return w(s);
|
|
339
337
|
}
|
|
340
|
-
function
|
|
338
|
+
function de(s, a, E, f, p) {
|
|
341
339
|
return new C(
|
|
342
|
-
(
|
|
340
|
+
(s || "React class") + ": " + a + " type `" + E + "." + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + p + "`."
|
|
343
341
|
);
|
|
344
342
|
}
|
|
345
|
-
function
|
|
346
|
-
function a(E,
|
|
347
|
-
var h = E[
|
|
343
|
+
function Ve(s) {
|
|
344
|
+
function a(E, f, p, m, d) {
|
|
345
|
+
var h = E[f], y = V(h);
|
|
348
346
|
if (y !== "object")
|
|
349
|
-
return new C("Invalid " +
|
|
350
|
-
for (var
|
|
351
|
-
var
|
|
352
|
-
if (typeof
|
|
353
|
-
return
|
|
354
|
-
var
|
|
355
|
-
if (
|
|
356
|
-
return
|
|
347
|
+
return new C("Invalid " + m + " `" + d + "` of type `" + y + "` " + ("supplied to `" + p + "`, expected `object`."));
|
|
348
|
+
for (var x in s) {
|
|
349
|
+
var v = s[x];
|
|
350
|
+
if (typeof v != "function")
|
|
351
|
+
return de(p, m, d, x, U(v));
|
|
352
|
+
var k = v(h, x, p, m, d + "." + x, t);
|
|
353
|
+
if (k)
|
|
354
|
+
return k;
|
|
357
355
|
}
|
|
358
356
|
return null;
|
|
359
357
|
}
|
|
360
358
|
return w(a);
|
|
361
359
|
}
|
|
362
|
-
function
|
|
363
|
-
function a(E,
|
|
364
|
-
var h = E[
|
|
360
|
+
function _e(s) {
|
|
361
|
+
function a(E, f, p, m, d) {
|
|
362
|
+
var h = E[f], y = V(h);
|
|
365
363
|
if (y !== "object")
|
|
366
|
-
return new C("Invalid " +
|
|
367
|
-
var
|
|
368
|
-
for (var
|
|
369
|
-
var
|
|
370
|
-
if (r(
|
|
371
|
-
return
|
|
372
|
-
if (!
|
|
364
|
+
return new C("Invalid " + m + " `" + d + "` of type `" + y + "` " + ("supplied to `" + p + "`, expected `object`."));
|
|
365
|
+
var x = e({}, E[f], s);
|
|
366
|
+
for (var v in x) {
|
|
367
|
+
var k = s[v];
|
|
368
|
+
if (r(s, v) && typeof k != "function")
|
|
369
|
+
return de(p, m, d, v, U(k));
|
|
370
|
+
if (!k)
|
|
373
371
|
return new C(
|
|
374
|
-
"Invalid " +
|
|
375
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
372
|
+
"Invalid " + m + " `" + d + "` key `" + v + "` supplied to `" + p + "`.\nBad object: " + JSON.stringify(E[f], null, " ") + `
|
|
373
|
+
Valid keys: ` + JSON.stringify(Object.keys(s), null, " ")
|
|
376
374
|
);
|
|
377
|
-
var
|
|
378
|
-
if (
|
|
379
|
-
return
|
|
375
|
+
var R = k(h, v, p, m, d + "." + v, t);
|
|
376
|
+
if (R)
|
|
377
|
+
return R;
|
|
380
378
|
}
|
|
381
379
|
return null;
|
|
382
380
|
}
|
|
383
381
|
return w(a);
|
|
384
382
|
}
|
|
385
|
-
function
|
|
386
|
-
switch (typeof
|
|
383
|
+
function X(s) {
|
|
384
|
+
switch (typeof s) {
|
|
387
385
|
case "number":
|
|
388
386
|
case "string":
|
|
389
387
|
case "undefined":
|
|
390
388
|
return !0;
|
|
391
389
|
case "boolean":
|
|
392
|
-
return !
|
|
390
|
+
return !s;
|
|
393
391
|
case "object":
|
|
394
|
-
if (Array.isArray(
|
|
395
|
-
return
|
|
396
|
-
if (
|
|
392
|
+
if (Array.isArray(s))
|
|
393
|
+
return s.every(X);
|
|
394
|
+
if (s === null || c(s))
|
|
397
395
|
return !0;
|
|
398
|
-
var a =
|
|
396
|
+
var a = T(s);
|
|
399
397
|
if (a) {
|
|
400
|
-
var E = a.call(
|
|
401
|
-
if (a !==
|
|
402
|
-
for (; !(
|
|
403
|
-
if (!
|
|
398
|
+
var E = a.call(s), f;
|
|
399
|
+
if (a !== s.entries) {
|
|
400
|
+
for (; !(f = E.next()).done; )
|
|
401
|
+
if (!X(f.value))
|
|
404
402
|
return !1;
|
|
405
403
|
} else
|
|
406
|
-
for (; !(
|
|
407
|
-
var p =
|
|
408
|
-
if (p && !
|
|
404
|
+
for (; !(f = E.next()).done; ) {
|
|
405
|
+
var p = f.value;
|
|
406
|
+
if (p && !X(p[1]))
|
|
409
407
|
return !1;
|
|
410
408
|
}
|
|
411
409
|
} else
|
|
@@ -415,27 +413,27 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
415
413
|
return !1;
|
|
416
414
|
}
|
|
417
415
|
}
|
|
418
|
-
function
|
|
419
|
-
return
|
|
416
|
+
function Le(s, a) {
|
|
417
|
+
return s === "symbol" ? !0 : a ? a["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && a instanceof Symbol : !1;
|
|
420
418
|
}
|
|
421
|
-
function
|
|
422
|
-
var a = typeof
|
|
423
|
-
return Array.isArray(
|
|
419
|
+
function V(s) {
|
|
420
|
+
var a = typeof s;
|
|
421
|
+
return Array.isArray(s) ? "array" : s instanceof RegExp ? "object" : Le(a, s) ? "symbol" : a;
|
|
424
422
|
}
|
|
425
|
-
function
|
|
426
|
-
if (typeof
|
|
427
|
-
return "" +
|
|
428
|
-
var a =
|
|
423
|
+
function U(s) {
|
|
424
|
+
if (typeof s > "u" || s === null)
|
|
425
|
+
return "" + s;
|
|
426
|
+
var a = V(s);
|
|
429
427
|
if (a === "object") {
|
|
430
|
-
if (
|
|
428
|
+
if (s instanceof Date)
|
|
431
429
|
return "date";
|
|
432
|
-
if (
|
|
430
|
+
if (s instanceof RegExp)
|
|
433
431
|
return "regexp";
|
|
434
432
|
}
|
|
435
433
|
return a;
|
|
436
434
|
}
|
|
437
|
-
function
|
|
438
|
-
var a =
|
|
435
|
+
function Me(s) {
|
|
436
|
+
var a = U(s);
|
|
439
437
|
switch (a) {
|
|
440
438
|
case "array":
|
|
441
439
|
case "object":
|
|
@@ -448,24 +446,24 @@ Valid keys: ` + JSON.stringify(Object.keys(o), null, " ")
|
|
|
448
446
|
return a;
|
|
449
447
|
}
|
|
450
448
|
}
|
|
451
|
-
function
|
|
452
|
-
return !
|
|
449
|
+
function qe(s) {
|
|
450
|
+
return !s.constructor || !s.constructor.name ? S : s.constructor.name;
|
|
453
451
|
}
|
|
454
|
-
return A.checkPropTypes =
|
|
452
|
+
return A.checkPropTypes = o, A.resetWarningCache = o.resetWarningCache, A.PropTypes = A, A;
|
|
455
453
|
}, oe;
|
|
456
454
|
}
|
|
457
|
-
var
|
|
458
|
-
function
|
|
459
|
-
if (
|
|
460
|
-
|
|
461
|
-
var n = /* @__PURE__ */
|
|
455
|
+
var se, be;
|
|
456
|
+
function Be() {
|
|
457
|
+
if (be) return se;
|
|
458
|
+
be = 1;
|
|
459
|
+
var n = /* @__PURE__ */ ue();
|
|
462
460
|
function e() {
|
|
463
461
|
}
|
|
464
462
|
function t() {
|
|
465
463
|
}
|
|
466
|
-
return t.resetWarningCache = e,
|
|
467
|
-
function r(u,
|
|
468
|
-
if (
|
|
464
|
+
return t.resetWarningCache = e, se = function() {
|
|
465
|
+
function r(u, c, O, N, b, T) {
|
|
466
|
+
if (T !== n) {
|
|
469
467
|
var S = new Error(
|
|
470
468
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
471
469
|
);
|
|
@@ -473,7 +471,7 @@ function Ze() {
|
|
|
473
471
|
}
|
|
474
472
|
}
|
|
475
473
|
r.isRequired = r;
|
|
476
|
-
function
|
|
474
|
+
function o() {
|
|
477
475
|
return r;
|
|
478
476
|
}
|
|
479
477
|
var i = {
|
|
@@ -486,82 +484,82 @@ function Ze() {
|
|
|
486
484
|
string: r,
|
|
487
485
|
symbol: r,
|
|
488
486
|
any: r,
|
|
489
|
-
arrayOf:
|
|
487
|
+
arrayOf: o,
|
|
490
488
|
element: r,
|
|
491
489
|
elementType: r,
|
|
492
|
-
instanceOf:
|
|
490
|
+
instanceOf: o,
|
|
493
491
|
node: r,
|
|
494
|
-
objectOf:
|
|
495
|
-
oneOf:
|
|
496
|
-
oneOfType:
|
|
497
|
-
shape:
|
|
498
|
-
exact:
|
|
492
|
+
objectOf: o,
|
|
493
|
+
oneOf: o,
|
|
494
|
+
oneOfType: o,
|
|
495
|
+
shape: o,
|
|
496
|
+
exact: o,
|
|
499
497
|
checkPropTypes: t,
|
|
500
498
|
resetWarningCache: e
|
|
501
499
|
};
|
|
502
500
|
return i.PropTypes = i, i;
|
|
503
|
-
},
|
|
501
|
+
}, se;
|
|
504
502
|
}
|
|
505
|
-
var
|
|
506
|
-
function
|
|
507
|
-
if (
|
|
508
|
-
if (
|
|
509
|
-
var n =
|
|
510
|
-
|
|
503
|
+
var ge;
|
|
504
|
+
function He() {
|
|
505
|
+
if (ge) return Q.exports;
|
|
506
|
+
if (ge = 1, process.env.NODE_ENV !== "production") {
|
|
507
|
+
var n = Ne, e = !0;
|
|
508
|
+
Q.exports = /* @__PURE__ */ ze()(n.isElement, e);
|
|
511
509
|
} else
|
|
512
|
-
|
|
513
|
-
return
|
|
510
|
+
Q.exports = /* @__PURE__ */ Be()();
|
|
511
|
+
return Q.exports;
|
|
514
512
|
}
|
|
515
|
-
var
|
|
516
|
-
const
|
|
517
|
-
function
|
|
513
|
+
var Xe = /* @__PURE__ */ He();
|
|
514
|
+
const l = /* @__PURE__ */ Ye(Xe);
|
|
515
|
+
function Oe(n, e) {
|
|
518
516
|
return n.replace(new RegExp(`(^|\\s)${e}(?:\\s|$)`, "g"), "$1").replace(/\s+/g, " ").replace(/^\s*|\s*$/g, "");
|
|
519
517
|
}
|
|
520
|
-
function
|
|
521
|
-
n.classList ? n.classList.remove(e) : typeof n.className == "string" ? n.className =
|
|
518
|
+
function Ke(n, e) {
|
|
519
|
+
n.classList ? n.classList.remove(e) : typeof n.className == "string" ? n.className = Oe(
|
|
522
520
|
n.className,
|
|
523
521
|
e
|
|
524
522
|
) : n.setAttribute(
|
|
525
523
|
"class",
|
|
526
|
-
|
|
524
|
+
Oe(
|
|
527
525
|
n.className && n.className.baseVal || "",
|
|
528
526
|
e
|
|
529
527
|
)
|
|
530
528
|
);
|
|
531
529
|
}
|
|
532
|
-
const
|
|
533
|
-
var
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
enter:
|
|
538
|
-
exit:
|
|
539
|
-
appear:
|
|
530
|
+
const J = g.createContext(null);
|
|
531
|
+
var Qe = Object.defineProperty, Ze = (n, e, t) => e in n ? Qe(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, et = (n, e, t) => Ze(n, e + "", t);
|
|
532
|
+
const tt = process.env.NODE_ENV !== "production" ? l.oneOfType([
|
|
533
|
+
l.number,
|
|
534
|
+
l.shape({
|
|
535
|
+
enter: l.number,
|
|
536
|
+
exit: l.number,
|
|
537
|
+
appear: l.number
|
|
540
538
|
}).isRequired
|
|
541
|
-
]) : null,
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
enter:
|
|
545
|
-
exit:
|
|
546
|
-
active:
|
|
539
|
+
]) : null, nt = process.env.NODE_ENV !== "production" ? l.oneOfType([
|
|
540
|
+
l.string,
|
|
541
|
+
l.shape({
|
|
542
|
+
enter: l.string,
|
|
543
|
+
exit: l.string,
|
|
544
|
+
active: l.string
|
|
547
545
|
}),
|
|
548
|
-
|
|
549
|
-
enter:
|
|
550
|
-
enterDone:
|
|
551
|
-
enterActive:
|
|
552
|
-
exit:
|
|
553
|
-
exitDone:
|
|
554
|
-
exitActive:
|
|
546
|
+
l.shape({
|
|
547
|
+
enter: l.string,
|
|
548
|
+
enterDone: l.string,
|
|
549
|
+
enterActive: l.string,
|
|
550
|
+
exit: l.string,
|
|
551
|
+
exitDone: l.string,
|
|
552
|
+
exitActive: l.string
|
|
555
553
|
})
|
|
556
|
-
]) : null,
|
|
557
|
-
let
|
|
554
|
+
]) : null, Te = (n) => n.scrollTop, G = "unmounted", L = "exited", $ = "entering", D = "entered", z = "exiting";
|
|
555
|
+
let P = class extends g.Component {
|
|
558
556
|
constructor(e, t) {
|
|
559
557
|
super(e, t);
|
|
560
|
-
let r = t,
|
|
561
|
-
this.appearStatus = null, e.in ?
|
|
558
|
+
let r = t, o = r && !r.isMounting ? e.enter : e.appear, i;
|
|
559
|
+
this.appearStatus = null, e.in ? o ? (i = L, this.appearStatus = $) : i = D : e.unmountOnExit || e.mountOnEnter ? i = G : i = L, this.state = { status: i }, this.nextCallback = null;
|
|
562
560
|
}
|
|
563
561
|
static getDerivedStateFromProps({ in: e }, t) {
|
|
564
|
-
return e && t.status ===
|
|
562
|
+
return e && t.status === G ? { status: L } : null;
|
|
565
563
|
}
|
|
566
564
|
// getSnapshotBeforeUpdate(prevProps) {
|
|
567
565
|
// let nextStatus = null
|
|
@@ -586,7 +584,7 @@ let N = class extends O.Component {
|
|
|
586
584
|
let t = null;
|
|
587
585
|
if (e !== this.props) {
|
|
588
586
|
const { status: r } = this.state;
|
|
589
|
-
this.props.in ? r !==
|
|
587
|
+
this.props.in ? r !== $ && r !== D && (t = $) : (r === $ || r === D) && (t = z);
|
|
590
588
|
}
|
|
591
589
|
this.updateStatus(!1, t);
|
|
592
590
|
}
|
|
@@ -595,48 +593,48 @@ let N = class extends O.Component {
|
|
|
595
593
|
}
|
|
596
594
|
getTimeouts() {
|
|
597
595
|
const { timeout: e } = this.props;
|
|
598
|
-
let t, r,
|
|
599
|
-
return t = r =
|
|
596
|
+
let t, r, o;
|
|
597
|
+
return t = r = o = e, e != null && typeof e != "number" && (t = e.exit, r = e.enter, o = e.appear !== void 0 ? e.appear : r), { exit: t, enter: r, appear: o };
|
|
600
598
|
}
|
|
601
599
|
updateStatus(e = !1, t) {
|
|
602
600
|
if (t !== null)
|
|
603
|
-
if (this.cancelNextCallback(), t ===
|
|
601
|
+
if (this.cancelNextCallback(), t === $) {
|
|
604
602
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
605
|
-
const r = this.props.nodeRef ? this.props.nodeRef.current :
|
|
606
|
-
r &&
|
|
603
|
+
const r = this.props.nodeRef ? this.props.nodeRef.current : Y.findDOMNode(this);
|
|
604
|
+
r && Te(r);
|
|
607
605
|
}
|
|
608
606
|
this.performEnter(e);
|
|
609
607
|
} else
|
|
610
608
|
this.performExit();
|
|
611
|
-
else this.props.unmountOnExit && this.state.status ===
|
|
609
|
+
else this.props.unmountOnExit && this.state.status === L && this.setState({ status: G });
|
|
612
610
|
}
|
|
613
611
|
performEnter(e) {
|
|
614
|
-
const { enter: t } = this.props, r = this.context ? this.context.isMounting : e, [
|
|
615
|
-
if (!e && !t ||
|
|
612
|
+
const { enter: t } = this.props, r = this.context ? this.context.isMounting : e, [o, i] = this.props.nodeRef ? [r] : [Y.findDOMNode(this), r], u = this.getTimeouts(), c = r ? u.appear : u.enter;
|
|
613
|
+
if (!e && !t || fe.disabled) {
|
|
616
614
|
this.safeSetState({ status: D }, () => {
|
|
617
|
-
this.props.onEntered(
|
|
615
|
+
this.props.onEntered(o);
|
|
618
616
|
});
|
|
619
617
|
return;
|
|
620
618
|
}
|
|
621
|
-
this.props.onEnter(
|
|
622
|
-
this.props.onEntering(
|
|
619
|
+
this.props.onEnter(o, i), this.safeSetState({ status: $ }, () => {
|
|
620
|
+
this.props.onEntering(o, i), this.onTransitionEnd(c, () => {
|
|
623
621
|
this.safeSetState({ status: D }, () => {
|
|
624
|
-
this.props.onEntered(
|
|
622
|
+
this.props.onEntered(o, i);
|
|
625
623
|
});
|
|
626
624
|
});
|
|
627
625
|
});
|
|
628
626
|
}
|
|
629
627
|
performExit() {
|
|
630
|
-
const { exit: e } = this.props, t = this.getTimeouts(), r = this.props.nodeRef ? void 0 :
|
|
631
|
-
if (!e ||
|
|
632
|
-
this.safeSetState({ status:
|
|
628
|
+
const { exit: e } = this.props, t = this.getTimeouts(), r = this.props.nodeRef ? void 0 : Y.findDOMNode(this);
|
|
629
|
+
if (!e || fe.disabled) {
|
|
630
|
+
this.safeSetState({ status: L }, () => {
|
|
633
631
|
this.props.onExited(r);
|
|
634
632
|
});
|
|
635
633
|
return;
|
|
636
634
|
}
|
|
637
635
|
this.props.onExit(r), this.safeSetState({ status: z }, () => {
|
|
638
636
|
this.props.onExiting(r), this.onTransitionEnd(t.exit, () => {
|
|
639
|
-
this.safeSetState({ status:
|
|
637
|
+
this.safeSetState({ status: L }, () => {
|
|
640
638
|
this.props.onExited(r);
|
|
641
639
|
});
|
|
642
640
|
});
|
|
@@ -658,8 +656,8 @@ let N = class extends O.Component {
|
|
|
658
656
|
}
|
|
659
657
|
onTransitionEnd(e, t) {
|
|
660
658
|
this.setNextCallback(t);
|
|
661
|
-
const r = this.props.nodeRef ? this.props.nodeRef.current :
|
|
662
|
-
if (!r ||
|
|
659
|
+
const r = this.props.nodeRef ? this.props.nodeRef.current : Y.findDOMNode(this), o = e == null && !this.props.addEndListener;
|
|
660
|
+
if (!r || o) {
|
|
663
661
|
setTimeout(this.nextCallback, 0);
|
|
664
662
|
return;
|
|
665
663
|
}
|
|
@@ -671,36 +669,36 @@ let N = class extends O.Component {
|
|
|
671
669
|
}
|
|
672
670
|
render() {
|
|
673
671
|
const e = this.state.status;
|
|
674
|
-
if (e ===
|
|
672
|
+
if (e === G)
|
|
675
673
|
return null;
|
|
676
674
|
const {
|
|
677
675
|
children: t,
|
|
678
676
|
// filter props for `Transition`
|
|
679
677
|
in: r,
|
|
680
|
-
mountOnEnter:
|
|
678
|
+
mountOnEnter: o,
|
|
681
679
|
unmountOnExit: i,
|
|
682
680
|
appear: u,
|
|
683
|
-
enter:
|
|
684
|
-
exit:
|
|
685
|
-
timeout:
|
|
686
|
-
addEndListener:
|
|
687
|
-
onEnter:
|
|
681
|
+
enter: c,
|
|
682
|
+
exit: O,
|
|
683
|
+
timeout: N,
|
|
684
|
+
addEndListener: b,
|
|
685
|
+
onEnter: T,
|
|
688
686
|
onEntering: S,
|
|
689
687
|
onEntered: A,
|
|
690
|
-
onExit:
|
|
688
|
+
onExit: B,
|
|
691
689
|
onExiting: C,
|
|
692
690
|
onExited: w,
|
|
693
691
|
nodeRef: I,
|
|
694
|
-
...
|
|
692
|
+
...H
|
|
695
693
|
} = this.props;
|
|
696
694
|
return (
|
|
697
695
|
// allows for nested Transitions
|
|
698
|
-
/* @__PURE__ */
|
|
696
|
+
/* @__PURE__ */ q(J.Provider, { value: null, children: typeof t == "function" ? t(e, H) : g.cloneElement(g.Children.only(t), H) })
|
|
699
697
|
);
|
|
700
698
|
}
|
|
701
699
|
};
|
|
702
|
-
|
|
703
|
-
|
|
700
|
+
et(P, "contextType", J);
|
|
701
|
+
P.propTypes = {
|
|
704
702
|
/**
|
|
705
703
|
* A React reference to the DOM element that needs to transition:
|
|
706
704
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -715,12 +713,12 @@ N.propTypes = {
|
|
|
715
713
|
* (see
|
|
716
714
|
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
717
715
|
*/
|
|
718
|
-
nodeRef:
|
|
719
|
-
current: typeof Element > "u" ?
|
|
716
|
+
nodeRef: l.shape({
|
|
717
|
+
current: typeof Element > "u" ? l.any : (n, e, t, r, o, i) => {
|
|
720
718
|
const u = n[e];
|
|
721
|
-
return
|
|
719
|
+
return l.instanceOf(
|
|
722
720
|
u && "ownerDocument" in u ? u.ownerDocument.defaultView.Element : Element
|
|
723
|
-
)(n, e, t, r,
|
|
721
|
+
)(n, e, t, r, o, i);
|
|
724
722
|
}
|
|
725
723
|
}),
|
|
726
724
|
/**
|
|
@@ -737,26 +735,26 @@ N.propTypes = {
|
|
|
737
735
|
* </Transition>
|
|
738
736
|
* ```
|
|
739
737
|
*/
|
|
740
|
-
children:
|
|
741
|
-
|
|
742
|
-
|
|
738
|
+
children: l.oneOfType([
|
|
739
|
+
l.func.isRequired,
|
|
740
|
+
l.element.isRequired
|
|
743
741
|
]).isRequired,
|
|
744
742
|
/**
|
|
745
743
|
* Show the component; triggers the enter or exit states
|
|
746
744
|
*/
|
|
747
|
-
in:
|
|
745
|
+
in: l.bool,
|
|
748
746
|
/**
|
|
749
747
|
* By default the child component is mounted immediately along with
|
|
750
748
|
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
751
749
|
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
752
750
|
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
753
751
|
*/
|
|
754
|
-
mountOnEnter:
|
|
752
|
+
mountOnEnter: l.bool,
|
|
755
753
|
/**
|
|
756
754
|
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
757
755
|
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
758
756
|
*/
|
|
759
|
-
unmountOnExit:
|
|
757
|
+
unmountOnExit: l.bool,
|
|
760
758
|
/**
|
|
761
759
|
* By default the child component does not perform the enter transition when
|
|
762
760
|
* it first mounts, regardless of the value of `in`. If you want this
|
|
@@ -768,15 +766,15 @@ N.propTypes = {
|
|
|
768
766
|
* > additional `.appear-*` classes, that way you can choose to style it
|
|
769
767
|
* > differently.
|
|
770
768
|
*/
|
|
771
|
-
appear:
|
|
769
|
+
appear: l.bool,
|
|
772
770
|
/**
|
|
773
771
|
* Enable or disable enter transitions.
|
|
774
772
|
*/
|
|
775
|
-
enter:
|
|
773
|
+
enter: l.bool,
|
|
776
774
|
/**
|
|
777
775
|
* Enable or disable exit transitions.
|
|
778
776
|
*/
|
|
779
|
-
exit:
|
|
777
|
+
exit: l.bool,
|
|
780
778
|
/**
|
|
781
779
|
* The duration of the transition, in milliseconds.
|
|
782
780
|
* Required unless `addEndListener` is provided.
|
|
@@ -804,7 +802,7 @@ N.propTypes = {
|
|
|
804
802
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
805
803
|
*/
|
|
806
804
|
timeout: (n, ...e) => {
|
|
807
|
-
let t =
|
|
805
|
+
let t = tt;
|
|
808
806
|
return n.addEndListener || (t = t.isRequired), t(n, ...e);
|
|
809
807
|
},
|
|
810
808
|
/**
|
|
@@ -821,7 +819,7 @@ N.propTypes = {
|
|
|
821
819
|
* }}
|
|
822
820
|
* ```
|
|
823
821
|
*/
|
|
824
|
-
addEndListener:
|
|
822
|
+
addEndListener: l.func,
|
|
825
823
|
/**
|
|
826
824
|
* Callback fired before the "entering" status is applied. An extra parameter
|
|
827
825
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -830,7 +828,7 @@ N.propTypes = {
|
|
|
830
828
|
*
|
|
831
829
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
832
830
|
*/
|
|
833
|
-
onEnter:
|
|
831
|
+
onEnter: l.func,
|
|
834
832
|
/**
|
|
835
833
|
* Callback fired after the "entering" status is applied. An extra parameter
|
|
836
834
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -839,7 +837,7 @@ N.propTypes = {
|
|
|
839
837
|
*
|
|
840
838
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
841
839
|
*/
|
|
842
|
-
onEntering:
|
|
840
|
+
onEntering: l.func,
|
|
843
841
|
/**
|
|
844
842
|
* Callback fired after the "entered" status is applied. An extra parameter
|
|
845
843
|
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
@@ -848,7 +846,7 @@ N.propTypes = {
|
|
|
848
846
|
*
|
|
849
847
|
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
850
848
|
*/
|
|
851
|
-
onEntered:
|
|
849
|
+
onEntered: l.func,
|
|
852
850
|
/**
|
|
853
851
|
* Callback fired before the "exiting" status is applied.
|
|
854
852
|
*
|
|
@@ -856,7 +854,7 @@ N.propTypes = {
|
|
|
856
854
|
*
|
|
857
855
|
* @type Function(node: HtmlElement) -> void
|
|
858
856
|
*/
|
|
859
|
-
onExit:
|
|
857
|
+
onExit: l.func,
|
|
860
858
|
/**
|
|
861
859
|
* Callback fired after the "exiting" status is applied.
|
|
862
860
|
*
|
|
@@ -864,7 +862,7 @@ N.propTypes = {
|
|
|
864
862
|
*
|
|
865
863
|
* @type Function(node: HtmlElement) -> void
|
|
866
864
|
*/
|
|
867
|
-
onExiting:
|
|
865
|
+
onExiting: l.func,
|
|
868
866
|
/**
|
|
869
867
|
* Callback fired after the "exited" status is applied.
|
|
870
868
|
*
|
|
@@ -872,82 +870,82 @@ N.propTypes = {
|
|
|
872
870
|
*
|
|
873
871
|
* @type Function(node: HtmlElement) -> void
|
|
874
872
|
*/
|
|
875
|
-
onExited:
|
|
873
|
+
onExited: l.func
|
|
876
874
|
};
|
|
877
|
-
function
|
|
875
|
+
function W() {
|
|
878
876
|
}
|
|
879
|
-
|
|
877
|
+
P.defaultProps = {
|
|
880
878
|
in: !1,
|
|
881
879
|
mountOnEnter: !1,
|
|
882
880
|
unmountOnExit: !1,
|
|
883
881
|
appear: !1,
|
|
884
882
|
enter: !0,
|
|
885
883
|
exit: !0,
|
|
886
|
-
onEnter:
|
|
887
|
-
onEntering:
|
|
888
|
-
onEntered:
|
|
889
|
-
onExit:
|
|
890
|
-
onExiting:
|
|
891
|
-
onExited:
|
|
884
|
+
onEnter: W,
|
|
885
|
+
onEntering: W,
|
|
886
|
+
onEntered: W,
|
|
887
|
+
onExit: W,
|
|
888
|
+
onExiting: W,
|
|
889
|
+
onExited: W
|
|
892
890
|
};
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
var
|
|
899
|
-
const
|
|
900
|
-
let
|
|
891
|
+
P.UNMOUNTED = G;
|
|
892
|
+
P.EXITED = L;
|
|
893
|
+
P.ENTERING = $;
|
|
894
|
+
P.ENTERED = D;
|
|
895
|
+
P.EXITING = z;
|
|
896
|
+
var rt = Object.defineProperty, it = (n, e, t) => e in n ? rt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, j = (n, e, t) => it(n, typeof e != "symbol" ? e + "" : e, t);
|
|
897
|
+
const ot = (n, e) => n && e && e.split(" ").forEach((t) => Ue(n, t)), ae = (n, e) => n && e && e.split(" ").forEach((t) => Ke(n, t));
|
|
898
|
+
let Se = class extends g.Component {
|
|
901
899
|
constructor() {
|
|
902
|
-
super(...arguments),
|
|
900
|
+
super(...arguments), j(this, "appliedClasses", {
|
|
903
901
|
appear: {},
|
|
904
902
|
enter: {},
|
|
905
903
|
exit: {}
|
|
906
|
-
}),
|
|
907
|
-
const [r,
|
|
908
|
-
this.removeClasses(r, "exit"), this.addClass(r,
|
|
909
|
-
}),
|
|
910
|
-
const [r,
|
|
904
|
+
}), j(this, "onEnter", (e, t) => {
|
|
905
|
+
const [r, o] = this.resolveArguments(e, t);
|
|
906
|
+
this.removeClasses(r, "exit"), this.addClass(r, o ? "appear" : "enter", "base"), this.props.onEnter && this.props.onEnter(e, t);
|
|
907
|
+
}), j(this, "onEntering", (e, t) => {
|
|
908
|
+
const [r, o] = this.resolveArguments(e, t), i = o ? "appear" : "enter";
|
|
911
909
|
this.addClass(r, i, "active"), this.props.onEntering && this.props.onEntering(e, t);
|
|
912
|
-
}),
|
|
913
|
-
const [r,
|
|
910
|
+
}), j(this, "onEntered", (e, t) => {
|
|
911
|
+
const [r, o] = this.resolveArguments(e, t), i = o ? "appear" : "enter";
|
|
914
912
|
this.removeClasses(r, i), this.addClass(r, i, "done"), this.props.onEntered && this.props.onEntered(e, t);
|
|
915
|
-
}),
|
|
913
|
+
}), j(this, "onExit", (e) => {
|
|
916
914
|
const [t] = this.resolveArguments(e);
|
|
917
915
|
this.removeClasses(t, "appear"), this.removeClasses(t, "enter"), this.addClass(t, "exit", "base"), this.props.onExit && this.props.onExit(e);
|
|
918
|
-
}),
|
|
916
|
+
}), j(this, "onExiting", (e) => {
|
|
919
917
|
const [t] = this.resolveArguments(e);
|
|
920
918
|
this.addClass(t, "exit", "active"), this.props.onExiting && this.props.onExiting(e);
|
|
921
|
-
}),
|
|
919
|
+
}), j(this, "onExited", (e) => {
|
|
922
920
|
const [t] = this.resolveArguments(e);
|
|
923
921
|
this.removeClasses(t, "exit"), this.addClass(t, "exit", "done"), this.props.onExited && this.props.onExited(e);
|
|
924
|
-
}),
|
|
925
|
-
const { classNames: t } = this.props, r = typeof t == "string",
|
|
926
|
-
let i = r ? `${
|
|
922
|
+
}), j(this, "resolveArguments", (e, t) => this.props.nodeRef ? [this.props.nodeRef.current, e] : [e, t]), j(this, "getClassNames", (e) => {
|
|
923
|
+
const { classNames: t } = this.props, r = typeof t == "string", o = r && t ? `${t}-` : "";
|
|
924
|
+
let i = r ? `${o}${e}` : t[e], u = r ? `${i}-active` : t[`${e}Active`], c = r ? `${i}-done` : t[`${e}Done`];
|
|
927
925
|
return {
|
|
928
926
|
baseClassName: i,
|
|
929
927
|
activeClassName: u,
|
|
930
|
-
doneClassName:
|
|
928
|
+
doneClassName: c
|
|
931
929
|
};
|
|
932
930
|
});
|
|
933
931
|
}
|
|
934
932
|
addClass(e, t, r) {
|
|
935
|
-
let
|
|
933
|
+
let o = this.getClassNames(t)[`${r}ClassName`];
|
|
936
934
|
const { doneClassName: i } = this.getClassNames("enter");
|
|
937
|
-
t === "appear" && r === "done" && i && (
|
|
935
|
+
t === "appear" && r === "done" && i && (o += ` ${i}`), r === "active" && e && Te(e), o && (this.appliedClasses[t][r] = o, ot(e, o));
|
|
938
936
|
}
|
|
939
937
|
removeClasses(e, t) {
|
|
940
938
|
const {
|
|
941
939
|
base: r,
|
|
942
|
-
active:
|
|
940
|
+
active: o,
|
|
943
941
|
done: i
|
|
944
942
|
} = this.appliedClasses[t];
|
|
945
|
-
this.appliedClasses[t] = {}, r &&
|
|
943
|
+
this.appliedClasses[t] = {}, r && ae(e, r), o && ae(e, o), i && ae(e, i);
|
|
946
944
|
}
|
|
947
945
|
render() {
|
|
948
946
|
const { classNames: e, ...t } = this.props;
|
|
949
|
-
return /* @__PURE__ */
|
|
950
|
-
|
|
947
|
+
return /* @__PURE__ */ q(
|
|
948
|
+
P,
|
|
951
949
|
{
|
|
952
950
|
...t,
|
|
953
951
|
onEnter: this.onEnter,
|
|
@@ -960,11 +958,11 @@ let pe = class extends O.Component {
|
|
|
960
958
|
);
|
|
961
959
|
}
|
|
962
960
|
};
|
|
963
|
-
|
|
961
|
+
j(Se, "defaultProps", {
|
|
964
962
|
classNames: ""
|
|
965
963
|
});
|
|
966
|
-
|
|
967
|
-
...
|
|
964
|
+
Se.propTypes = {
|
|
965
|
+
...P.propTypes,
|
|
968
966
|
/**
|
|
969
967
|
* The animation classNames applied to the component as it appears, enters,
|
|
970
968
|
* exits or has finished the transition. A single name can be provided, which
|
|
@@ -1033,7 +1031,7 @@ pe.propTypes = {
|
|
|
1033
1031
|
* exitDone?: string,
|
|
1034
1032
|
* }}
|
|
1035
1033
|
*/
|
|
1036
|
-
classNames:
|
|
1034
|
+
classNames: nt,
|
|
1037
1035
|
/**
|
|
1038
1036
|
* A `<Transition>` callback fired immediately after the 'enter' or 'appear' class is
|
|
1039
1037
|
* applied.
|
|
@@ -1042,7 +1040,7 @@ pe.propTypes = {
|
|
|
1042
1040
|
*
|
|
1043
1041
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1044
1042
|
*/
|
|
1045
|
-
onEnter:
|
|
1043
|
+
onEnter: l.func,
|
|
1046
1044
|
/**
|
|
1047
1045
|
* A `<Transition>` callback fired immediately after the 'enter-active' or
|
|
1048
1046
|
* 'appear-active' class is applied.
|
|
@@ -1051,7 +1049,7 @@ pe.propTypes = {
|
|
|
1051
1049
|
*
|
|
1052
1050
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1053
1051
|
*/
|
|
1054
|
-
onEntering:
|
|
1052
|
+
onEntering: l.func,
|
|
1055
1053
|
/**
|
|
1056
1054
|
* A `<Transition>` callback fired immediately after the 'enter' or
|
|
1057
1055
|
* 'appear' classes are **removed** and the `done` class is added to the DOM node.
|
|
@@ -1060,7 +1058,7 @@ pe.propTypes = {
|
|
|
1060
1058
|
*
|
|
1061
1059
|
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1062
1060
|
*/
|
|
1063
|
-
onEntered:
|
|
1061
|
+
onEntered: l.func,
|
|
1064
1062
|
/**
|
|
1065
1063
|
* A `<Transition>` callback fired immediately after the 'exit' class is
|
|
1066
1064
|
* applied.
|
|
@@ -1069,7 +1067,7 @@ pe.propTypes = {
|
|
|
1069
1067
|
*
|
|
1070
1068
|
* @type Function(node: HtmlElement)
|
|
1071
1069
|
*/
|
|
1072
|
-
onExit:
|
|
1070
|
+
onExit: l.func,
|
|
1073
1071
|
/**
|
|
1074
1072
|
* A `<Transition>` callback fired immediately after the 'exit-active' is applied.
|
|
1075
1073
|
*
|
|
@@ -1077,7 +1075,7 @@ pe.propTypes = {
|
|
|
1077
1075
|
*
|
|
1078
1076
|
* @type Function(node: HtmlElement)
|
|
1079
1077
|
*/
|
|
1080
|
-
onExiting:
|
|
1078
|
+
onExiting: l.func,
|
|
1081
1079
|
/**
|
|
1082
1080
|
* A `<Transition>` callback fired immediately after the 'exit' classes
|
|
1083
1081
|
* are **removed** and the `exit-done` class is added to the DOM node.
|
|
@@ -1086,71 +1084,71 @@ pe.propTypes = {
|
|
|
1086
1084
|
*
|
|
1087
1085
|
* @type Function(node: HtmlElement)
|
|
1088
1086
|
*/
|
|
1089
|
-
onExited:
|
|
1087
|
+
onExited: l.func
|
|
1090
1088
|
};
|
|
1091
|
-
function
|
|
1092
|
-
let t = (
|
|
1093
|
-
return n &&
|
|
1094
|
-
r[
|
|
1089
|
+
function ce(n, e) {
|
|
1090
|
+
let t = (o) => e && Z(o) ? e(o) : o, r = /* @__PURE__ */ Object.create(null);
|
|
1091
|
+
return n && We.map(n, (o) => o).forEach((o) => {
|
|
1092
|
+
r[o.key] = t(o);
|
|
1095
1093
|
}), r;
|
|
1096
1094
|
}
|
|
1097
|
-
function
|
|
1095
|
+
function st(n, e) {
|
|
1098
1096
|
n = n || {}, e = e || {};
|
|
1099
|
-
function t(
|
|
1100
|
-
return
|
|
1097
|
+
function t(c) {
|
|
1098
|
+
return c in e ? e[c] : n[c];
|
|
1101
1099
|
}
|
|
1102
|
-
let r = /* @__PURE__ */ Object.create(null),
|
|
1103
|
-
for (let
|
|
1104
|
-
|
|
1100
|
+
let r = /* @__PURE__ */ Object.create(null), o = [];
|
|
1101
|
+
for (let c in n)
|
|
1102
|
+
c in e ? o.length && (r[c] = o, o = []) : o.push(c);
|
|
1105
1103
|
let i, u = {};
|
|
1106
|
-
for (let
|
|
1107
|
-
if (r[
|
|
1108
|
-
for (i = 0; i < r[
|
|
1109
|
-
let
|
|
1110
|
-
u[r[
|
|
1104
|
+
for (let c in e) {
|
|
1105
|
+
if (r[c])
|
|
1106
|
+
for (i = 0; i < r[c].length; i++) {
|
|
1107
|
+
let O = r[c][i];
|
|
1108
|
+
u[r[c][i]] = t(O);
|
|
1111
1109
|
}
|
|
1112
|
-
u[
|
|
1110
|
+
u[c] = t(c);
|
|
1113
1111
|
}
|
|
1114
|
-
for (i = 0; i <
|
|
1115
|
-
u[
|
|
1112
|
+
for (i = 0; i < o.length; i++)
|
|
1113
|
+
u[o[i]] = t(o[i]);
|
|
1116
1114
|
return u;
|
|
1117
1115
|
}
|
|
1118
|
-
function
|
|
1116
|
+
function M(n, e, t) {
|
|
1119
1117
|
return t[e] != null ? t[e] : n.props[e];
|
|
1120
1118
|
}
|
|
1121
|
-
function
|
|
1122
|
-
return
|
|
1119
|
+
function at(n, e) {
|
|
1120
|
+
return ce(n.children, (t) => ee(t, {
|
|
1123
1121
|
onExited: e.bind(null, t),
|
|
1124
1122
|
in: !0,
|
|
1125
|
-
appear:
|
|
1126
|
-
enter:
|
|
1127
|
-
exit:
|
|
1123
|
+
appear: M(t, "appear", n),
|
|
1124
|
+
enter: M(t, "enter", n),
|
|
1125
|
+
exit: M(t, "exit", n)
|
|
1128
1126
|
}));
|
|
1129
1127
|
}
|
|
1130
|
-
function
|
|
1131
|
-
let r =
|
|
1132
|
-
return Object.keys(
|
|
1133
|
-
let u =
|
|
1134
|
-
if (!
|
|
1135
|
-
const
|
|
1136
|
-
|
|
1128
|
+
function lt(n, e, t) {
|
|
1129
|
+
let r = ce(n.children), o = st(e, r);
|
|
1130
|
+
return Object.keys(o).forEach((i) => {
|
|
1131
|
+
let u = o[i];
|
|
1132
|
+
if (!Z(u)) return;
|
|
1133
|
+
const c = i in e, O = i in r, N = e[i], b = Z(N) && !N.props.in;
|
|
1134
|
+
O && (!c || b) ? o[i] = ee(u, {
|
|
1137
1135
|
onExited: t.bind(null, u),
|
|
1138
1136
|
in: !0,
|
|
1139
|
-
exit:
|
|
1140
|
-
enter:
|
|
1141
|
-
}) : !
|
|
1137
|
+
exit: M(u, "exit", n),
|
|
1138
|
+
enter: M(u, "enter", n)
|
|
1139
|
+
}) : !O && c && !b ? o[i] = ee(u, { in: !1 }) : O && c && Z(N) && (o[i] = ee(u, {
|
|
1142
1140
|
onExited: t.bind(null, u),
|
|
1143
|
-
in:
|
|
1144
|
-
exit:
|
|
1145
|
-
enter:
|
|
1141
|
+
in: N.props.in,
|
|
1142
|
+
exit: M(u, "exit", n),
|
|
1143
|
+
enter: M(u, "enter", n)
|
|
1146
1144
|
}));
|
|
1147
|
-
}),
|
|
1145
|
+
}), o;
|
|
1148
1146
|
}
|
|
1149
|
-
const
|
|
1147
|
+
const ut = Object.values || ((n) => Object.keys(n).map((e) => n[e])), ct = {
|
|
1150
1148
|
component: "div",
|
|
1151
1149
|
childFactory: (n) => n
|
|
1152
1150
|
};
|
|
1153
|
-
class
|
|
1151
|
+
class pe extends g.Component {
|
|
1154
1152
|
constructor(e, t) {
|
|
1155
1153
|
super(e, t);
|
|
1156
1154
|
const r = this.handleExited.bind(this);
|
|
@@ -1168,26 +1166,26 @@ class de extends O.Component {
|
|
|
1168
1166
|
componentWillUnmount() {
|
|
1169
1167
|
this.mounted = !1;
|
|
1170
1168
|
}
|
|
1171
|
-
static getDerivedStateFromProps(e, { children: t, handleExited: r, firstRender:
|
|
1169
|
+
static getDerivedStateFromProps(e, { children: t, handleExited: r, firstRender: o }) {
|
|
1172
1170
|
return {
|
|
1173
|
-
children:
|
|
1171
|
+
children: o ? at(e, r) : lt(e, t, r),
|
|
1174
1172
|
firstRender: !1
|
|
1175
1173
|
};
|
|
1176
1174
|
}
|
|
1177
1175
|
// node is `undefined` when user provided `nodeRef` prop
|
|
1178
1176
|
handleExited(e, t) {
|
|
1179
|
-
let r =
|
|
1180
|
-
e.key in r || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState((
|
|
1181
|
-
let i = { ...
|
|
1177
|
+
let r = ce(this.props.children);
|
|
1178
|
+
e.key in r || (e.props.onExited && e.props.onExited(t), this.mounted && this.setState((o) => {
|
|
1179
|
+
let i = { ...o.children };
|
|
1182
1180
|
return delete i[e.key], { children: i };
|
|
1183
1181
|
}));
|
|
1184
1182
|
}
|
|
1185
1183
|
render() {
|
|
1186
|
-
const { component: e, childFactory: t, ...r } = this.props, { contextValue:
|
|
1187
|
-
return delete r.appear, delete r.enter, delete r.exit, e === null ? /* @__PURE__ */
|
|
1184
|
+
const { component: e, childFactory: t, ...r } = this.props, { contextValue: o } = this.state, i = ut(this.state.children).map(t);
|
|
1185
|
+
return delete r.appear, delete r.enter, delete r.exit, e === null ? /* @__PURE__ */ q(J.Provider, { value: o, children: i }) : /* @__PURE__ */ q(J.Provider, { value: o, children: /* @__PURE__ */ q(e, { ...r, children: i }) });
|
|
1188
1186
|
}
|
|
1189
1187
|
}
|
|
1190
|
-
|
|
1188
|
+
pe.propTypes = {
|
|
1191
1189
|
/**
|
|
1192
1190
|
* `<TransitionGroup>` renders a `<div>` by default. You can change this
|
|
1193
1191
|
* behavior by providing a `component` prop.
|
|
@@ -1195,7 +1193,7 @@ de.propTypes = {
|
|
|
1195
1193
|
* you can pass in `component={null}`. This is useful if the wrapping div
|
|
1196
1194
|
* borks your css styles.
|
|
1197
1195
|
*/
|
|
1198
|
-
component:
|
|
1196
|
+
component: l.any,
|
|
1199
1197
|
/**
|
|
1200
1198
|
* A set of `<Transition>` components, that are toggled `in` and out as they
|
|
1201
1199
|
* leave. the `<TransitionGroup>` will inject specific transition props, so
|
|
@@ -1209,25 +1207,25 @@ de.propTypes = {
|
|
|
1209
1207
|
* the transition child as you change its content, this will cause
|
|
1210
1208
|
* `TransitionGroup` to transition the child out and back in.
|
|
1211
1209
|
*/
|
|
1212
|
-
children:
|
|
1210
|
+
children: l.node,
|
|
1213
1211
|
/**
|
|
1214
1212
|
* A convenience prop that enables or disables appear animations
|
|
1215
1213
|
* for all children. Note that specifying this will override any defaults set
|
|
1216
1214
|
* on individual children Transitions.
|
|
1217
1215
|
*/
|
|
1218
|
-
appear:
|
|
1216
|
+
appear: l.bool,
|
|
1219
1217
|
/**
|
|
1220
1218
|
* A convenience prop that enables or disables enter animations
|
|
1221
1219
|
* for all children. Note that specifying this will override any defaults set
|
|
1222
1220
|
* on individual children Transitions.
|
|
1223
1221
|
*/
|
|
1224
|
-
enter:
|
|
1222
|
+
enter: l.bool,
|
|
1225
1223
|
/**
|
|
1226
1224
|
* A convenience prop that enables or disables exit animations
|
|
1227
1225
|
* for all children. Note that specifying this will override any defaults set
|
|
1228
1226
|
* on individual children Transitions.
|
|
1229
1227
|
*/
|
|
1230
|
-
exit:
|
|
1228
|
+
exit: l.bool,
|
|
1231
1229
|
/**
|
|
1232
1230
|
* You may need to apply reactive updates to a child as it is exiting.
|
|
1233
1231
|
* This is generally done by using `cloneElement` however in the case of an exiting
|
|
@@ -1238,29 +1236,29 @@ de.propTypes = {
|
|
|
1238
1236
|
*
|
|
1239
1237
|
* @type Function(child: ReactElement) -> ReactElement
|
|
1240
1238
|
*/
|
|
1241
|
-
childFactory:
|
|
1239
|
+
childFactory: l.func
|
|
1242
1240
|
};
|
|
1243
|
-
|
|
1244
|
-
var
|
|
1245
|
-
class
|
|
1241
|
+
pe.defaultProps = ct;
|
|
1242
|
+
var pt = Object.defineProperty, dt = (n, e, t) => e in n ? pt(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, F = (n, e, t) => dt(n, typeof e != "symbol" ? e + "" : e, t);
|
|
1243
|
+
class ft extends g.Component {
|
|
1246
1244
|
constructor() {
|
|
1247
|
-
super(...arguments),
|
|
1245
|
+
super(...arguments), F(this, "handleEnter", (...e) => this.handleLifecycle("onEnter", 0, e)), F(this, "handleEntering", (...e) => this.handleLifecycle("onEntering", 0, e)), F(this, "handleEntered", (...e) => this.handleLifecycle("onEntered", 0, e)), F(this, "handleExit", (...e) => this.handleLifecycle("onExit", 1, e)), F(this, "handleExiting", (...e) => this.handleLifecycle("onExiting", 1, e)), F(this, "handleExited", (...e) => this.handleLifecycle("onExited", 1, e));
|
|
1248
1246
|
}
|
|
1249
1247
|
handleLifecycle(e, t, r) {
|
|
1250
|
-
const { children:
|
|
1248
|
+
const { children: o } = this.props, i = g.Children.toArray(o)[t];
|
|
1251
1249
|
if (i.props[e] && i.props[e](...r), this.props[e]) {
|
|
1252
|
-
const u = i.props.nodeRef ? void 0 :
|
|
1250
|
+
const u = i.props.nodeRef ? void 0 : Y.findDOMNode(this);
|
|
1253
1251
|
this.props[e](u);
|
|
1254
1252
|
}
|
|
1255
1253
|
}
|
|
1256
1254
|
render() {
|
|
1257
|
-
const { children: e, in: t, ...r } = this.props, [
|
|
1258
|
-
return delete r.onEnter, delete r.onEntering, delete r.onEntered, delete r.onExit, delete r.onExiting, delete r.onExited, /* @__PURE__ */
|
|
1255
|
+
const { children: e, in: t, ...r } = this.props, [o, i] = g.Children.toArray(e);
|
|
1256
|
+
return delete r.onEnter, delete r.onEntering, delete r.onEntered, delete r.onExit, delete r.onExiting, delete r.onExited, /* @__PURE__ */ q(pe, { ...r, children: t ? g.cloneElement(o, {
|
|
1259
1257
|
key: "first",
|
|
1260
1258
|
onEnter: this.handleEnter,
|
|
1261
1259
|
onEntering: this.handleEntering,
|
|
1262
1260
|
onEntered: this.handleEntered
|
|
1263
|
-
}) :
|
|
1261
|
+
}) : g.cloneElement(i, {
|
|
1264
1262
|
key: "second",
|
|
1265
1263
|
onEnter: this.handleExit,
|
|
1266
1264
|
onEntering: this.handleExiting,
|
|
@@ -1268,64 +1266,64 @@ class gt extends O.Component {
|
|
|
1268
1266
|
}) });
|
|
1269
1267
|
}
|
|
1270
1268
|
}
|
|
1271
|
-
|
|
1272
|
-
in:
|
|
1269
|
+
ft.propTypes = {
|
|
1270
|
+
in: l.bool.isRequired,
|
|
1273
1271
|
children(n, e) {
|
|
1274
|
-
return
|
|
1272
|
+
return g.Children.count(n[e]) !== 2 ? new Error(
|
|
1275
1273
|
`"${e}" must be exactly two transition components.`
|
|
1276
1274
|
) : null;
|
|
1277
1275
|
}
|
|
1278
1276
|
};
|
|
1279
|
-
var
|
|
1280
|
-
function
|
|
1281
|
-
return !(n === e ||
|
|
1277
|
+
var ht = Object.defineProperty, Et = (n, e, t) => e in n ? ht(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t, le = (n, e, t) => Et(n, typeof e != "symbol" ? e + "" : e, t);
|
|
1278
|
+
function mt(n, e) {
|
|
1279
|
+
return !(n === e || g.isValidElement(n) && g.isValidElement(e) && n.key != null && n.key === e.key);
|
|
1282
1280
|
}
|
|
1283
|
-
const
|
|
1281
|
+
const _ = {
|
|
1284
1282
|
out: "out-in",
|
|
1285
1283
|
in: "in-out"
|
|
1286
1284
|
}, te = (n, e, t) => (...r) => {
|
|
1287
1285
|
n.props[e] && n.props[e](...r), t();
|
|
1288
|
-
},
|
|
1289
|
-
[
|
|
1286
|
+
}, yt = {
|
|
1287
|
+
[_.out]: ({ current: n, changeState: e }) => g.cloneElement(n, {
|
|
1290
1288
|
in: !1,
|
|
1291
1289
|
onExited: te(n, "onExited", () => {
|
|
1292
|
-
e(
|
|
1290
|
+
e($, null);
|
|
1293
1291
|
})
|
|
1294
1292
|
}),
|
|
1295
|
-
[
|
|
1293
|
+
[_.in]: ({ current: n, changeState: e, children: t }) => [
|
|
1296
1294
|
n,
|
|
1297
|
-
|
|
1295
|
+
g.cloneElement(t, {
|
|
1298
1296
|
in: !0,
|
|
1299
1297
|
onEntered: te(t, "onEntered", () => {
|
|
1300
|
-
e(
|
|
1298
|
+
e($);
|
|
1301
1299
|
})
|
|
1302
1300
|
})
|
|
1303
1301
|
]
|
|
1304
|
-
},
|
|
1305
|
-
[
|
|
1302
|
+
}, vt = {
|
|
1303
|
+
[_.out]: ({ children: n, changeState: e }) => g.cloneElement(n, {
|
|
1306
1304
|
in: !0,
|
|
1307
1305
|
onEntered: te(n, "onEntered", () => {
|
|
1308
|
-
e(D,
|
|
1306
|
+
e(D, g.cloneElement(n, { in: !0 }));
|
|
1309
1307
|
})
|
|
1310
1308
|
}),
|
|
1311
|
-
[
|
|
1312
|
-
|
|
1309
|
+
[_.in]: ({ current: n, children: e, changeState: t }) => [
|
|
1310
|
+
g.cloneElement(n, {
|
|
1313
1311
|
in: !1,
|
|
1314
1312
|
onExited: te(n, "onExited", () => {
|
|
1315
|
-
t(D,
|
|
1313
|
+
t(D, g.cloneElement(e, { in: !0 }));
|
|
1316
1314
|
})
|
|
1317
1315
|
}),
|
|
1318
|
-
|
|
1316
|
+
g.cloneElement(e, {
|
|
1319
1317
|
in: !0
|
|
1320
1318
|
})
|
|
1321
1319
|
]
|
|
1322
1320
|
};
|
|
1323
|
-
class
|
|
1321
|
+
class ke extends g.Component {
|
|
1324
1322
|
constructor() {
|
|
1325
|
-
super(...arguments),
|
|
1323
|
+
super(...arguments), le(this, "state", {
|
|
1326
1324
|
status: D,
|
|
1327
1325
|
current: null
|
|
1328
|
-
}),
|
|
1326
|
+
}), le(this, "appeared", !1), le(this, "changeState", (e, t = this.state.current) => {
|
|
1329
1327
|
this.setState({
|
|
1330
1328
|
status: e,
|
|
1331
1329
|
current: t
|
|
@@ -1338,12 +1336,12 @@ class we extends O.Component {
|
|
|
1338
1336
|
static getDerivedStateFromProps(e, t) {
|
|
1339
1337
|
return e.children == null ? {
|
|
1340
1338
|
current: null
|
|
1341
|
-
} : t.status ===
|
|
1342
|
-
status:
|
|
1343
|
-
} : t.current &&
|
|
1339
|
+
} : t.status === $ && e.mode === _.in ? {
|
|
1340
|
+
status: $
|
|
1341
|
+
} : t.current && mt(t.current, e.children) ? {
|
|
1344
1342
|
status: z
|
|
1345
1343
|
} : {
|
|
1346
|
-
current:
|
|
1344
|
+
current: g.cloneElement(e.children, {
|
|
1347
1345
|
in: !0
|
|
1348
1346
|
})
|
|
1349
1347
|
};
|
|
@@ -1351,23 +1349,23 @@ class we extends O.Component {
|
|
|
1351
1349
|
render() {
|
|
1352
1350
|
const {
|
|
1353
1351
|
props: { children: e, mode: t },
|
|
1354
|
-
state: { status: r, current:
|
|
1355
|
-
} = this, i = { children: e, current:
|
|
1352
|
+
state: { status: r, current: o }
|
|
1353
|
+
} = this, i = { children: e, current: o, changeState: this.changeState, status: r };
|
|
1356
1354
|
let u;
|
|
1357
1355
|
switch (r) {
|
|
1358
|
-
case
|
|
1359
|
-
u =
|
|
1356
|
+
case $:
|
|
1357
|
+
u = vt[t](i);
|
|
1360
1358
|
break;
|
|
1361
1359
|
case z:
|
|
1362
|
-
u =
|
|
1360
|
+
u = yt[t](i);
|
|
1363
1361
|
break;
|
|
1364
1362
|
case D:
|
|
1365
|
-
u =
|
|
1363
|
+
u = o;
|
|
1366
1364
|
}
|
|
1367
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ q(J.Provider, { value: { isMounting: !this.appeared }, children: u });
|
|
1368
1366
|
}
|
|
1369
1367
|
}
|
|
1370
|
-
|
|
1368
|
+
ke.propTypes = {
|
|
1371
1369
|
/**
|
|
1372
1370
|
* Transition modes.
|
|
1373
1371
|
* `out-in`: Current element transitions out first, then when complete, the new element transitions in.
|
|
@@ -1375,39 +1373,19 @@ we.propTypes = {
|
|
|
1375
1373
|
*
|
|
1376
1374
|
* @type {'out-in'|'in-out'}
|
|
1377
1375
|
*/
|
|
1378
|
-
mode:
|
|
1376
|
+
mode: l.oneOf([_.in, _.out]),
|
|
1379
1377
|
/**
|
|
1380
1378
|
* Any `Transition` or `CSSTransition` component.
|
|
1381
1379
|
*/
|
|
1382
|
-
children:
|
|
1380
|
+
children: l.oneOfType([l.element.isRequired])
|
|
1383
1381
|
};
|
|
1384
|
-
|
|
1385
|
-
mode:
|
|
1382
|
+
ke.defaultProps = {
|
|
1383
|
+
mode: _.out
|
|
1386
1384
|
};
|
|
1387
|
-
function Dt(n) {
|
|
1388
|
-
const { children: e, ...t } = n, r = Ee(), s = Ee(), i = Ye(() => n.nodeRef === void 0 && Be(e) && G(e) ? (s.current = !0, J(e, {
|
|
1389
|
-
ref: (u) => {
|
|
1390
|
-
r.current = He(u), Fe(e, u);
|
|
1391
|
-
}
|
|
1392
|
-
})) : (s.current = !1, e), [e, n.nodeRef]);
|
|
1393
|
-
return s.current && [
|
|
1394
|
-
"onEnter",
|
|
1395
|
-
"onEntering",
|
|
1396
|
-
"onEntered",
|
|
1397
|
-
"onExit",
|
|
1398
|
-
"onExiting",
|
|
1399
|
-
"onExited"
|
|
1400
|
-
].forEach((u) => {
|
|
1401
|
-
n[u] && (t[u] = (l, ...b) => {
|
|
1402
|
-
n[u](r.current, ...b);
|
|
1403
|
-
});
|
|
1404
|
-
}), /* @__PURE__ */ _(pe, { ...t, nodeRef: s.current ? r : void 0, children: i });
|
|
1405
|
-
}
|
|
1406
1385
|
export {
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
N as u
|
|
1386
|
+
pe as b,
|
|
1387
|
+
Se as c,
|
|
1388
|
+
ke as h,
|
|
1389
|
+
ft as m,
|
|
1390
|
+
P as u
|
|
1413
1391
|
};
|