@unicom-cloud/ui 0.8.66 → 0.8.67
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 +79 -79
- package/Alert.js +46 -46
- package/Anchor.js +1 -1
- package/AutoComplete.js +74 -74
- package/Avatar.js +36 -36
- package/BackTop.js +35 -35
- package/Badge.js +55 -55
- package/Breadcrumb.js +42 -42
- package/Button.js +24 -24
- package/Calendar.js +230 -230
- package/Card.js +18 -18
- package/Carousel.js +165 -165
- package/Cascader.js +1 -1
- package/Checkbox.js +1 -1
- package/Collapse.js +1 -1
- package/ColorPicker.js +26 -26
- package/Comment.js +18 -18
- package/ConfigProvider.js +2 -2
- package/Copy.js +28 -27
- package/DatePicker.js +872 -871
- package/Descriptions.js +34 -34
- package/Divider.js +19 -19
- package/Draggable.js +27 -26
- package/Drawer.js +1 -1
- package/Dropdown.js +110 -110
- package/Empty.js +3 -3
- package/Form.js +984 -945
- package/Grid.js +34 -34
- package/Icon.js +16 -16
- package/IconHover.js +2 -2
- package/Image.js +2 -2
- package/Input.js +7 -6
- package/InputNumber.js +6 -6
- package/InputTag.js +1 -1
- package/Layout.js +24 -24
- package/Link.js +30 -30
- package/List.js +95 -95
- package/Mentions.js +85 -84
- package/Menu.js +2 -2
- package/Message.js +7 -6
- package/Modal.js +1 -1
- package/Notice.js +14 -3
- package/Notification.js +9 -7
- package/OverflowEllipsis.js +64 -62
- package/PageHeader.js +73 -73
- package/Pagination.js +1 -1
- package/Picker.js +1 -1
- package/Popconfirm.js +60 -60
- package/Popover.js +31 -31
- package/Portal.js +23 -31
- package/Progress.js +22 -22
- package/Radio.js +2 -2
- package/Rate.js +24 -24
- package/ResizeBox.js +274 -271
- package/Result.js +3 -3
- package/Select.js +4 -4
- package/SelectView.js +257 -238
- package/Skeleton.js +46 -46
- package/Slider.js +286 -283
- package/Space.js +28 -28
- package/SpeechSynthesis.js +62 -55
- package/Spin.js +23 -23
- package/Statistic.js +80 -80
- package/Steps.js +67 -67
- package/Switch.js +47 -47
- package/Table.js +1445 -1380
- package/Tabs.js +5 -5
- package/Tag.js +45 -45
- package/TimePicker.js +154 -154
- package/Timeline.js +2 -2
- package/Tooltip.js +80 -79
- package/Transfer.js +103 -102
- package/Tree.js +3 -2
- package/TreeSelect.js +2 -2
- package/Trigger.js +699 -772
- package/Typography.js +756 -6
- package/Upload.js +2 -2
- package/VerificationCode.js +1 -1
- package/Version.js +1 -1
- package/VirtualList.js +1 -1
- package/Watermark.js +1 -1
- package/chunk/{BHgJ5Y3T.js → -UuKKT0Z.js} +29 -29
- package/chunk/{B8QV6E2b.js → AwZqeapI.js} +5 -5
- package/chunk/B5gK1Idp.js +19 -0
- package/chunk/B7FlazNB.js +24 -0
- package/chunk/{DTBtQQ2H.js → BBvWDeuZ.js} +67 -67
- package/chunk/BCftTxEy.js +626 -0
- package/chunk/{CZOP_ZHJ.js → BGny4zSb.js} +60 -60
- package/chunk/BHF15Dog.js +98 -0
- package/chunk/BJQ5UNa-.js +1585 -0
- package/chunk/BP9sYyk9.js +8 -0
- package/chunk/BUdtVdnv.js +38 -0
- package/chunk/BVQlOzTS.js +11 -0
- package/chunk/B__a_gb_.js +519 -0
- package/chunk/BbEYToV1.js +10 -0
- package/chunk/BbdDQAnm.js +15 -0
- package/chunk/BdUcgWdu.js +11 -0
- package/chunk/BfbXSG70.js +26 -0
- package/chunk/BndfNLK4.js +186 -0
- package/chunk/BoMCZV6K.js +1098 -0
- package/chunk/Br0B6y1T.js +18 -0
- package/chunk/BrOW642m.js +130 -0
- package/chunk/BxUs8_Cr.js +9 -0
- package/chunk/{CcV4wQB1.js → C42LIMP9.js} +244 -242
- package/chunk/C4YkFMzC.js +778 -0
- package/chunk/{Bh23P4l7.js → C9Wcraj7.js} +21 -21
- package/chunk/{4-gvEY5y.js → CANgSlh3.js} +10 -10
- package/chunk/CJ_o9tZM.js +5 -0
- package/chunk/{DNAigumg.js → CK5m7rLl.js} +36 -36
- package/chunk/{CANaGbGR.js → CKNyIitu.js} +57 -56
- package/chunk/CLiqJm_T.js +10 -0
- package/chunk/{BnSVm1YC.js → CNmmhbCn.js} +32 -32
- package/chunk/{BFipyA67.js → CP0odX99.js} +51 -51
- package/chunk/CPT-OZH2.js +14 -0
- package/chunk/CVSF8p0O.js +698 -0
- package/chunk/C_agcwLN.js +31 -0
- package/chunk/{jhQQCFMn.js → C_gJWGGh.js} +201 -201
- package/chunk/{Bc7t9jkb.js → CaasmWg_.js} +11 -11
- package/chunk/Ce1j9KTi.js +6 -0
- package/chunk/{D_-UD4vO.js → Cf5QNhkG.js} +18 -18
- package/chunk/CkNSv2U7.js +56 -0
- package/chunk/Cp2f70gB.js +9 -0
- package/chunk/CpegYjdC.js +16 -0
- package/chunk/CucI3KZr.js +20 -0
- package/chunk/CwoFBTYz.js +11 -0
- package/chunk/D2KPqPhV.js +17 -0
- package/chunk/D7NyvE5f.js +17 -0
- package/chunk/D8oTPQ2H.js +384 -0
- package/chunk/{CLBavO5c.js → DC1iHEiy.js} +87 -87
- package/chunk/{DnvO8A0Z.js → DFrfrmfK.js} +120 -119
- package/chunk/DGTIZ_0O.js +6 -0
- package/chunk/DJfpiZn_.js +25 -0
- package/chunk/DKr2_PYd.js +34 -0
- package/chunk/DNUz6zgo.js +11 -0
- package/chunk/DRtM649q.js +11 -0
- package/chunk/DS_mUWn6.js +41 -0
- package/chunk/DU6bs_19.js +10 -0
- package/chunk/DWdbwz22.js +10 -0
- package/chunk/DcveZuqd.js +6 -0
- package/chunk/DdVFknul.js +24 -0
- package/chunk/DgRfikwe.js +16 -0
- package/chunk/{znkyQ-HR.js → DkyR2EfG.js} +66 -66
- package/chunk/{DUeHQKtx.js → DleQ5HwG.js} +42 -42
- package/chunk/DnrZEnQ_.js +27 -0
- package/chunk/DsRSHWtX.js +1025 -0
- package/chunk/Dz5BdmXo.js +270 -0
- package/chunk/EANe01DF.js +1030 -0
- package/chunk/{CwhPMMWy.js → Ey4YJCkX.js} +7 -7
- package/chunk/GoNx5R4F.js +873 -0
- package/chunk/HDUQku8d.js +20 -0
- package/chunk/HrAP__Hi.js +25 -0
- package/chunk/JPPo5nY_.js +9 -0
- package/chunk/{Du-bw6qA.js → SLWP34OR.js} +90 -85
- package/chunk/VVKtwaGf.js +278 -0
- package/chunk/WPNpLxSI.js +16 -0
- package/chunk/{CPvvjMwZ.js → WpO_DsK4.js} +49 -48
- package/chunk/fdU3ang6.js +14 -0
- package/chunk/{DQAot004.js → fkclKOAL.js} +298 -292
- package/chunk/flvYlqx3.js +22 -0
- package/chunk/kTDayEpF.js +288 -0
- package/chunk/{CssIjN1g.js → pZoNQ75H.js} +31 -31
- package/chunk/qFf1w_Jq.js +8 -0
- package/chunk/{CHnFKgbk.js → w-kM1L5W.js} +155 -155
- package/hooks/index.js +53 -49
- package/hooks/useComputedState.js +2 -10
- package/hooks/useCreate.js +2 -7
- package/hooks/useForceUpdate.js +2 -7
- package/hooks/useId.js +2 -10
- package/hooks/useInView.js +2 -30
- package/hooks/useIntersectionObserver.js +2 -23
- package/hooks/useInterval.js +2 -17
- package/hooks/useIsFirstRender.js +2 -9
- package/hooks/useIsomorphicLayoutEffect.js +2 -5
- package/hooks/useKeyboardEvent.js +2 -16
- package/hooks/useMedia.js +2 -15
- package/hooks/useMergeProps.js +2 -18
- package/hooks/useMergeValue.js +2 -19
- package/hooks/useOnlineStatus.js +4 -0
- package/hooks/useOverflowHidden.js +2 -25
- package/hooks/useOverrideRef.js +2 -13
- package/hooks/usePersistCallback.js +2 -13
- package/hooks/usePrefersColorSchemeDark.js +4 -0
- package/hooks/usePrevious.js +2 -9
- package/hooks/useRefs.js +2 -9
- package/hooks/useResizeObserver.js +2 -15
- package/hooks/useStateCallback.js +2 -15
- package/hooks/useStateWithPromise.js +2 -24
- package/hooks/useUpdateEffect.js +2 -9
- package/hooks/useVerificationCode.js +73 -0
- package/hooks/useWatch.js +2 -10
- package/hooks/{use-watermark.js → useWatermark.js} +27 -26
- package/hooks/useWindowSize.js +2 -20
- package/index.js +571 -584
- package/locale/en-US.js +4 -2
- package/locale/interface.js +1 -4
- package/locale/ja-JP.js +3 -1
- package/locale/tr-TR.js +1 -1
- package/locale/zh-CN.js +3 -1
- package/locale/zh-HK.js +3 -1
- package/locale/zh-TW.js +3 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/types/anchor/util.d.ts +1 -1
- package/types/button/index.d.ts +2 -2
- package/types/color-picker/hooks/useColorPicker.d.ts +2 -2
- package/types/form/Control-old.d.ts +56 -0
- package/types/form/Control.d.ts +6 -54
- package/types/form/FormItem.d.ts +1 -1
- package/types/form/store.d.ts +0 -1
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/useComputedState.d.ts +1 -4
- package/types/hooks/useCreate.d.ts +1 -2
- package/types/hooks/useForceUpdate.d.ts +1 -2
- package/types/hooks/useId.d.ts +1 -2
- package/types/hooks/useInView.d.ts +1 -11
- package/types/hooks/useIntersectionObserver.d.ts +1 -7
- package/types/hooks/useInterval.d.ts +1 -2
- package/types/hooks/useIsFirstRender.d.ts +1 -2
- package/types/hooks/useIsomorphicLayoutEffect.d.ts +1 -3
- package/types/hooks/useKeyboardEvent.d.ts +1 -8
- package/types/hooks/useMedia.d.ts +1 -2
- package/types/hooks/useMergeProps.d.ts +1 -5
- package/types/hooks/useMergeValue.d.ts +1 -6
- package/types/hooks/useOnlineStatus.d.ts +1 -0
- package/types/hooks/useOverflowHidden.d.ts +1 -5
- package/types/hooks/useOverrideRef.d.ts +1 -6
- package/types/hooks/usePersistCallback.d.ts +1 -2
- package/types/hooks/usePrefersColorSchemeDark.d.ts +1 -0
- package/types/hooks/usePrevious.d.ts +1 -3
- package/types/hooks/useRefs.d.ts +1 -2
- package/types/hooks/useResizeObserver.d.ts +1 -6
- package/types/hooks/useStateCallback.d.ts +1 -5
- package/types/hooks/useStateWithPromise.d.ts +1 -2
- package/types/hooks/useUpdateEffect.d.ts +1 -3
- package/types/hooks/useWatch.d.ts +1 -3
- package/types/hooks/useWindowSize.d.ts +1 -5
- package/types/image/interface.d.ts +1 -0
- package/types/index.d.ts +157 -86
- package/types/input/Input.d.ts +1 -1
- package/types/input/Textarea.d.ts +2 -2
- package/types/locale/en-US.d.ts +2 -0
- package/types/locale/interface.d.ts +1 -2
- package/types/locale/ja-JP.d.ts +2 -0
- package/types/locale/zh-CN.d.ts +2 -0
- package/types/locale/zh-HK.d.ts +2 -0
- package/types/locale/zh-TW.d.ts +2 -0
- package/types/menu/context.d.ts +1 -1
- package/types/message/index.d.ts +14 -14
- package/types/message/interface.d.ts +2 -0
- package/types/modal/config.d.ts +0 -1
- package/types/modal/interface.d.ts +0 -1
- package/types/notice/index.d.ts +2 -27
- package/types/notification/index.d.ts +15 -16
- package/types/notification/interface.d.ts +2 -0
- package/types/notification/withNotification.d.ts +2 -0
- package/types/select/util.d.ts +1 -2
- package/types/select-view/interface.d.ts +2 -1
- package/types/speech-synthesis/index.d.ts +1 -1
- package/types/table/constant.d.ts +2 -0
- package/types/table/hook/useThResizable.d.ts +7 -0
- package/types/table/index.d.ts +10 -1
- package/types/table/style/index.d.ts +1 -0
- package/types/table/th-resizable/index.d.ts +2 -0
- package/types/table/thead/Column.d.ts +1 -2
- package/types/tree/Tree.d.ts +12 -67
- package/types/tree-select/Select.d.ts +2 -2
- package/types/trigger/index.d.ts +2 -120
- package/types/trigger/interface.d.ts +2 -1
- package/types/utils/CSSTransition.d.ts +2 -3
- package/types/utils/caseName.d.ts +1 -1
- package/types/utils/className.d.ts +1 -1
- package/types/utils/constant.d.ts +2 -2
- package/types/utils/copy.d.ts +1 -1
- package/types/utils/dayjs.d.ts +1 -21
- package/types/utils/dom.d.ts +1 -6
- package/types/utils/fileToURL.d.ts +1 -1
- package/types/utils/fillNBSP.d.ts +1 -1
- package/types/utils/getHighlightText.d.ts +1 -5
- package/types/utils/getHotkeyHandler.d.ts +1 -8
- package/types/utils/getStringLength.d.ts +1 -1
- package/types/utils/include.d.ts +1 -1
- package/types/utils/index.d.ts +3 -4
- package/types/utils/is.d.ts +1 -16
- package/types/utils/keyboardCode.d.ts +3 -0
- package/types/utils/lodash.d.ts +1 -17
- package/types/utils/mergeProps.d.ts +1 -1
- package/types/utils/mergedToString.d.ts +1 -1
- package/types/utils/omit.d.ts +1 -1
- package/types/utils/pad.d.ts +1 -2
- package/types/utils/pick.d.ts +2 -4
- package/types/utils/reactDOM.d.ts +1 -7
- package/types/utils/resizeObserverEffect.d.ts +2 -0
- package/types/utils/saveAs.d.ts +1 -1
- package/types/utils/screenfull.d.ts +2 -0
- package/types/utils/scrollIntoView.d.ts +1 -2
- package/types/utils/style.d.ts +1 -3
- package/types/utils/throttleByRaf.d.ts +1 -5
- package/types/utils/throttleByRaf2.d.ts +1 -0
- package/types/utils/warning.d.ts +1 -2
- package/types/version/index.d.ts +1 -1
- package/utils/CSSTransition.js +2 -6
- package/utils/className.js +2 -2
- package/utils/constant.js +8 -9
- package/utils/contextHolder.js +1 -1
- package/utils/copy.js +1 -1
- package/utils/dayjs.js +14 -173
- package/utils/dom.js +33 -29
- package/utils/fillNBSP.js +2 -4
- package/utils/getHighlightText.js +2 -38
- package/utils/getHotkeyHandler.js +2 -25
- package/utils/getStringLength.js +2 -7
- package/utils/include.js +2 -7
- package/utils/index.js +237 -240
- package/utils/is.js +116 -156
- package/utils/keyboardCode.js +27 -0
- package/utils/mergeProps.js +2 -9
- package/utils/mergedToString.js +2 -13
- package/utils/omit.js +2 -9
- package/utils/pad.js +12 -12
- package/utils/pick.js +4 -15
- package/utils/reactDOM.js +3 -54
- package/utils/resizeObserverEffect.js +4 -0
- package/utils/saveAs.js +1 -1
- package/utils/screenfull.js +4 -0
- package/utils/scrollIntoView.js +2 -21
- package/utils/style.js +12 -11
- package/utils/throttleByRaf.js +13 -12
- package/utils/throttleByRaf2.js +5 -0
- package/utils/warning.js +5 -4
- package/NotificationBase.js +0 -53
- package/chunk/-zpSUpGE.js +0 -1501
- package/chunk/BAWsPQBM.js +0 -11
- package/chunk/BIT0j3HT.js +0 -269
- package/chunk/BbLKnaNO.js +0 -871
- package/chunk/Bfhv56O2.js +0 -638
- package/chunk/C2lIz2F9.js +0 -60
- package/chunk/C6QWSzsM.js +0 -376
- package/chunk/CVkHTbic.js +0 -995
- package/chunk/CeGEvXby.js +0 -278
- package/chunk/D3NFxdmG.js +0 -518
- package/chunk/DApXtulb.js +0 -1102
- package/chunk/DPByB1ab.js +0 -698
- package/chunk/DV1Ab_cG.js +0 -284
- package/chunk/dBnNCOIU.js +0 -778
- package/chunk/it8qlDZ3.js +0 -1032
- package/chunk/l0sNRNKZ.js +0 -1
- package/chunk/te_43YrB.js +0 -776
- package/hooks/use-verification-code.js +0 -73
- package/types/notification-base/index.d.ts +0 -15
- package/types/notification-base/style/index.d.ts +0 -2
- package/types/trigger/Portal.d.ts +0 -7
- package/types/utils/keyCode.d.ts +0 -45
- package/types/utils/raf.d.ts +0 -3
- package/types/utils/throttleByRafV2.d.ts +0 -5
- package/utils/keyCode.js +0 -12
- package/utils/raf.js +0 -19
- package/utils/throttleByRafV2.js +0 -16
|
@@ -0,0 +1,626 @@
|
|
|
1
|
+
import { jsx as l, jsxs as O, Fragment as _e } from "react/jsx-runtime";
|
|
2
|
+
import en from "@unicom-cloud/icons/IconUiClose";
|
|
3
|
+
import we from "lodash/isFunction";
|
|
4
|
+
import nn, { forwardRef as Ie, useState as I, useImperativeHandle as tn, useRef as b, useContext as on, useCallback as U, useEffect as te } from "react";
|
|
5
|
+
import Me from "../Button.js";
|
|
6
|
+
import { i as T, b as Pe, j as rn, k as ln, g as sn, a as an, I as cn, s as un } from "./BJQ5UNa-.js";
|
|
7
|
+
import { c as dn } from "./B5gK1Idp.js";
|
|
8
|
+
import { R as fn } from "./HDUQku8d.js";
|
|
9
|
+
import { y as mn } from "./BfbXSG70.js";
|
|
10
|
+
import pn from "../Portal.js";
|
|
11
|
+
import { N as Te } from "./DC1iHEiy.js";
|
|
12
|
+
import { m as ye } from "./JPPo5nY_.js";
|
|
13
|
+
import { contains as Cn, isServerRendering as hn } from "../utils/dom.js";
|
|
14
|
+
import { o as bn } from "./BrOW642m.js";
|
|
15
|
+
import { c as gn } from "./BdUcgWdu.js";
|
|
16
|
+
import { g as xn } from "./BUdtVdnv.js";
|
|
17
|
+
import kn from "@unicom-cloud/icons/IconUiCheckCircleFill";
|
|
18
|
+
import vn from "@unicom-cloud/icons/IconUiCloseCircleFill";
|
|
19
|
+
import Ne from "@unicom-cloud/icons/IconUiExclamationCircleFill";
|
|
20
|
+
import En from "@unicom-cloud/icons/IconUiInfoCircleFill";
|
|
21
|
+
import { createRoot as wn } from "react-dom/client";
|
|
22
|
+
function Mn(n) {
|
|
23
|
+
const { prefixCls: a, simple: u } = ln();
|
|
24
|
+
return /* @__PURE__ */ l(E, { prefixCls: a, simple: u, ...n, children: n.content });
|
|
25
|
+
}
|
|
26
|
+
const z = (n) => {
|
|
27
|
+
let a = n.icon;
|
|
28
|
+
if (!a && a !== null && (a = /* @__PURE__ */ l(Ne, {}), n.isNotice))
|
|
29
|
+
switch (n.noticeType) {
|
|
30
|
+
case "info":
|
|
31
|
+
a = /* @__PURE__ */ l(En, {});
|
|
32
|
+
break;
|
|
33
|
+
case "success":
|
|
34
|
+
a = /* @__PURE__ */ l(kn, {});
|
|
35
|
+
break;
|
|
36
|
+
case "warning":
|
|
37
|
+
a = /* @__PURE__ */ l(Ne, {});
|
|
38
|
+
break;
|
|
39
|
+
case "error":
|
|
40
|
+
a = /* @__PURE__ */ l(vn, {});
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
return n.noticeType === "show" && (a = n.icon), n.isNotice && (n.hideCancel = !0), n.title = a === null && n.title === null ? null : /* @__PURE__ */ O("span", { children: [
|
|
44
|
+
a,
|
|
45
|
+
n.title
|
|
46
|
+
] }), n;
|
|
47
|
+
};
|
|
48
|
+
function re(n, a) {
|
|
49
|
+
let u;
|
|
50
|
+
const s = document.createElement("div");
|
|
51
|
+
document.body.appendChild(s);
|
|
52
|
+
const f = rn();
|
|
53
|
+
function g(i) {
|
|
54
|
+
const h = /* @__PURE__ */ l(Pe, { ...f, children: /* @__PURE__ */ l(
|
|
55
|
+
Mn,
|
|
56
|
+
{
|
|
57
|
+
...i,
|
|
58
|
+
onCancel: C
|
|
59
|
+
}
|
|
60
|
+
) });
|
|
61
|
+
u || (u = wn(s)), u.render(h);
|
|
62
|
+
}
|
|
63
|
+
const r = g;
|
|
64
|
+
let o = {
|
|
65
|
+
...n,
|
|
66
|
+
visible: !1
|
|
67
|
+
};
|
|
68
|
+
const c = () => {
|
|
69
|
+
let i;
|
|
70
|
+
const h = n.onOk;
|
|
71
|
+
h && (i = h(C)), i && i.then && (o.confirmLoading = !0, r(o), i.then(
|
|
72
|
+
() => {
|
|
73
|
+
C(!0);
|
|
74
|
+
},
|
|
75
|
+
(m) => {
|
|
76
|
+
console.error(m), o.confirmLoading = !1, r(o);
|
|
77
|
+
}
|
|
78
|
+
)), i || C(!0);
|
|
79
|
+
};
|
|
80
|
+
o.onOk = c, o = z(o), o.visible = !0, r(o);
|
|
81
|
+
function x() {
|
|
82
|
+
s.remove();
|
|
83
|
+
for (let i = 0; i < T.length; i++)
|
|
84
|
+
if (T[i] === k) {
|
|
85
|
+
T.splice(i, 1);
|
|
86
|
+
break;
|
|
87
|
+
}
|
|
88
|
+
u && setTimeout(() => {
|
|
89
|
+
u.unmount(), u = null;
|
|
90
|
+
}, 7);
|
|
91
|
+
}
|
|
92
|
+
function C(i) {
|
|
93
|
+
var h;
|
|
94
|
+
!i && ((h = n.onCancel) == null || h.call(n)), k();
|
|
95
|
+
}
|
|
96
|
+
function M(i) {
|
|
97
|
+
o = {
|
|
98
|
+
...o,
|
|
99
|
+
title: n.title,
|
|
100
|
+
// 避免 newConfig 未传递 title 时,icon 出现多个的问题
|
|
101
|
+
...i
|
|
102
|
+
}, o = z(o), r(o);
|
|
103
|
+
}
|
|
104
|
+
function k() {
|
|
105
|
+
o.visible = !1, o.afterClose = () => {
|
|
106
|
+
var i;
|
|
107
|
+
(i = n.afterClose) == null || i.call(n), x();
|
|
108
|
+
}, r(o);
|
|
109
|
+
}
|
|
110
|
+
return T.push(k), {
|
|
111
|
+
close: k,
|
|
112
|
+
update: M
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function Tn(n, a) {
|
|
116
|
+
const [u, s] = I(!0), [f, g] = I(n);
|
|
117
|
+
tn(a, () => ({
|
|
118
|
+
update: (c) => {
|
|
119
|
+
g(c);
|
|
120
|
+
},
|
|
121
|
+
close: () => {
|
|
122
|
+
s(!1);
|
|
123
|
+
}
|
|
124
|
+
}));
|
|
125
|
+
function r() {
|
|
126
|
+
var x;
|
|
127
|
+
const c = (x = f.onOk) == null ? void 0 : x.call(f);
|
|
128
|
+
c && c.then && (g((C) => ({
|
|
129
|
+
...C,
|
|
130
|
+
confirmLoading: !0
|
|
131
|
+
})), c.then(
|
|
132
|
+
() => {
|
|
133
|
+
s(!1);
|
|
134
|
+
},
|
|
135
|
+
(C) => {
|
|
136
|
+
console.error(C), g((M) => ({
|
|
137
|
+
...M,
|
|
138
|
+
confirmLoading: !1
|
|
139
|
+
}));
|
|
140
|
+
}
|
|
141
|
+
)), c || s(!1);
|
|
142
|
+
}
|
|
143
|
+
function o() {
|
|
144
|
+
var c;
|
|
145
|
+
(c = f.onCancel) == null || c.call(f), s(!1);
|
|
146
|
+
}
|
|
147
|
+
return /* @__PURE__ */ l(
|
|
148
|
+
E,
|
|
149
|
+
{
|
|
150
|
+
unmountOnExit: !0,
|
|
151
|
+
simple: !0,
|
|
152
|
+
...f,
|
|
153
|
+
visible: u,
|
|
154
|
+
onOk: r,
|
|
155
|
+
onCancel: o,
|
|
156
|
+
children: f.content
|
|
157
|
+
}
|
|
158
|
+
);
|
|
159
|
+
}
|
|
160
|
+
const yn = Ie(Tn);
|
|
161
|
+
function Nn() {
|
|
162
|
+
const n = b(), a = /* @__PURE__ */ l(sn, { ref: n });
|
|
163
|
+
let u = 0;
|
|
164
|
+
function s(r) {
|
|
165
|
+
var h;
|
|
166
|
+
u += 1;
|
|
167
|
+
let o, c = { ...r };
|
|
168
|
+
function x() {
|
|
169
|
+
var m;
|
|
170
|
+
(m = r.afterClose) == null || m.call(r), M();
|
|
171
|
+
}
|
|
172
|
+
const C = /* @__PURE__ */ l(
|
|
173
|
+
yn,
|
|
174
|
+
{
|
|
175
|
+
ref: (m) => {
|
|
176
|
+
o = m;
|
|
177
|
+
},
|
|
178
|
+
...z({ ...r }),
|
|
179
|
+
afterClose: x
|
|
180
|
+
},
|
|
181
|
+
u
|
|
182
|
+
);
|
|
183
|
+
(h = n.current) == null || h.addInstance(C);
|
|
184
|
+
function M() {
|
|
185
|
+
var m;
|
|
186
|
+
(m = n.current) == null || m.removeInstance(C);
|
|
187
|
+
}
|
|
188
|
+
function k() {
|
|
189
|
+
o == null || o.close();
|
|
190
|
+
}
|
|
191
|
+
function i(m) {
|
|
192
|
+
c = {
|
|
193
|
+
...c,
|
|
194
|
+
...m
|
|
195
|
+
}, o == null || o.update(z({ ...c }));
|
|
196
|
+
}
|
|
197
|
+
return T.push(k), {
|
|
198
|
+
close: k,
|
|
199
|
+
update: i
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
function f(r) {
|
|
203
|
+
return s({
|
|
204
|
+
...r
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
const g = {
|
|
208
|
+
confirm: f,
|
|
209
|
+
show: f
|
|
210
|
+
// 潘启宝添加于 2023年10月18日 星期三 10时31分58秒 CST
|
|
211
|
+
};
|
|
212
|
+
return ["info", "success", "warning", "error"].forEach((r) => {
|
|
213
|
+
g[r] = (o) => s({
|
|
214
|
+
...o,
|
|
215
|
+
isNotice: !0,
|
|
216
|
+
noticeType: r
|
|
217
|
+
});
|
|
218
|
+
}), [g, a];
|
|
219
|
+
}
|
|
220
|
+
let oe = null, In = 0;
|
|
221
|
+
hn || document.documentElement.addEventListener(
|
|
222
|
+
"click",
|
|
223
|
+
(n) => {
|
|
224
|
+
oe = {
|
|
225
|
+
left: n.clientX,
|
|
226
|
+
top: n.clientY
|
|
227
|
+
}, setTimeout(() => {
|
|
228
|
+
oe = null;
|
|
229
|
+
}, 100);
|
|
230
|
+
},
|
|
231
|
+
!0
|
|
232
|
+
);
|
|
233
|
+
const Pn = {
|
|
234
|
+
mask: !0,
|
|
235
|
+
maskClosable: !0,
|
|
236
|
+
mountOnEnter: !0,
|
|
237
|
+
escToExit: !0,
|
|
238
|
+
getPopupContainer: () => document.body,
|
|
239
|
+
alignCenter: !0
|
|
240
|
+
};
|
|
241
|
+
function $n(n, a) {
|
|
242
|
+
var Ee;
|
|
243
|
+
a || (a = b());
|
|
244
|
+
const u = on(an), s = dn(
|
|
245
|
+
n,
|
|
246
|
+
Pn,
|
|
247
|
+
(Ee = u.componentConfig) == null ? void 0 : Ee.Modal
|
|
248
|
+
), {
|
|
249
|
+
className: f,
|
|
250
|
+
style: g,
|
|
251
|
+
visible: r,
|
|
252
|
+
simple: o,
|
|
253
|
+
title: c,
|
|
254
|
+
subtitle: x,
|
|
255
|
+
children: C,
|
|
256
|
+
cancelText: M,
|
|
257
|
+
okText: k,
|
|
258
|
+
okButtonProps: i,
|
|
259
|
+
cancelButtonProps: h,
|
|
260
|
+
getPopupContainer: m = () => document.body,
|
|
261
|
+
footer: L,
|
|
262
|
+
afterClose: S,
|
|
263
|
+
confirmLoading: $e,
|
|
264
|
+
mountOnEnter: V,
|
|
265
|
+
unmountOnExit: j,
|
|
266
|
+
afterOpen: W,
|
|
267
|
+
hideCancel: De,
|
|
268
|
+
maskClosable: Re,
|
|
269
|
+
mask: X,
|
|
270
|
+
alignCenter: Oe,
|
|
271
|
+
getChildrenPopupContainer: le,
|
|
272
|
+
wrapClassName: Le,
|
|
273
|
+
escToExit: Z,
|
|
274
|
+
modalRender: se,
|
|
275
|
+
maskStyle: Xe,
|
|
276
|
+
wrapStyle: Ye,
|
|
277
|
+
closeIcon: ie,
|
|
278
|
+
fullscreenable: Dn,
|
|
279
|
+
...ae
|
|
280
|
+
} = s, P = b(null), ce = b(null), v = b(null), [ue, de] = I(), [fe, Be] = I(), Y = b(null), $ = b(!1), [Fe, me] = I(""), [pe, Ce] = I(""), q = b(!0);
|
|
281
|
+
r && q.current && (q.current = !1);
|
|
282
|
+
const B = b();
|
|
283
|
+
B.current || (B.current = In++);
|
|
284
|
+
const [He, A] = fn(!1, {
|
|
285
|
+
defaultValue: !1,
|
|
286
|
+
value: $e
|
|
287
|
+
}), d = u.getPrefixCls("modal", s.prefixCls), { locale: K, rtl: he } = u, Ue = !o || ae.noticeType === "show", ze = "closable" in s ? s.closable : Ue, Se = U(() => xn(m()), [m]);
|
|
288
|
+
mn(Se, { hidden: r && X });
|
|
289
|
+
function G(e) {
|
|
290
|
+
e.stopPropagation(), J();
|
|
291
|
+
}
|
|
292
|
+
function J() {
|
|
293
|
+
var e;
|
|
294
|
+
(e = s.onCancel) == null || e.call(s);
|
|
295
|
+
}
|
|
296
|
+
const Ve = (e) => {
|
|
297
|
+
Z && r && e.key === bn.key && (e.stopPropagation(), J());
|
|
298
|
+
}, Q = b(!1), je = (e) => {
|
|
299
|
+
$.current && ($.current = !1, !Q.current && Re && X && e.target === e.currentTarget && setTimeout(() => {
|
|
300
|
+
J();
|
|
301
|
+
}, 100));
|
|
302
|
+
}, We = (e) => {
|
|
303
|
+
var p;
|
|
304
|
+
const t = (p = s.onOk ?? s.onConfirm) == null ? void 0 : p(e);
|
|
305
|
+
t != null && t.then && (A(!0), t.then(
|
|
306
|
+
() => {
|
|
307
|
+
A(!1);
|
|
308
|
+
},
|
|
309
|
+
(w) => {
|
|
310
|
+
A(!1), console.error(w);
|
|
311
|
+
}
|
|
312
|
+
));
|
|
313
|
+
};
|
|
314
|
+
te(() => {
|
|
315
|
+
let e = null;
|
|
316
|
+
return Z && (e = setTimeout(() => {
|
|
317
|
+
var t;
|
|
318
|
+
Cn(document.body, P.current) && ((t = P.current) == null || t.focus());
|
|
319
|
+
})), () => {
|
|
320
|
+
e && clearTimeout(e);
|
|
321
|
+
};
|
|
322
|
+
}, [r, Z]);
|
|
323
|
+
const Ze = () => {
|
|
324
|
+
var e;
|
|
325
|
+
if (r && fe === void 0 && P.current) {
|
|
326
|
+
const t = +((e = window.getComputedStyle(P.current, null)) == null ? void 0 : e.zIndex);
|
|
327
|
+
isNaN(t) || Be(t + 1);
|
|
328
|
+
}
|
|
329
|
+
}, qe = () => {
|
|
330
|
+
if (L === null)
|
|
331
|
+
return;
|
|
332
|
+
const e = /* @__PURE__ */ l(Me, { onClick: G, ...h, children: M || K.Modal.cancelText }), t = /* @__PURE__ */ l(
|
|
333
|
+
Me,
|
|
334
|
+
{
|
|
335
|
+
loading: He,
|
|
336
|
+
onClick: We,
|
|
337
|
+
type: "primary",
|
|
338
|
+
...i,
|
|
339
|
+
children: k || K.Modal.okText
|
|
340
|
+
}
|
|
341
|
+
), p = we(L) ? L(e, t) : L || /* @__PURE__ */ O(_e, { children: [
|
|
342
|
+
!De && e,
|
|
343
|
+
t
|
|
344
|
+
] });
|
|
345
|
+
return /* @__PURE__ */ l("div", { className: `${d}-footer`, children: p });
|
|
346
|
+
}, _ = b(
|
|
347
|
+
xe()
|
|
348
|
+
), Ae = U((e) => {
|
|
349
|
+
var p, w, y, N, H;
|
|
350
|
+
if (!v.current)
|
|
351
|
+
return;
|
|
352
|
+
e.preventDefault();
|
|
353
|
+
const t = _.current;
|
|
354
|
+
t.screenX = e.screenX, t.screenY = e.screenY, t.prewTranslateX = t.translateX, t.prewTranslateY = t.translateY, t.boundingClientRect = ((w = (p = v.current) == null ? void 0 : p.getBoundingClientRect) == null ? void 0 : w.call(p)) ?? {}, t.offsetParentBoundingClientRect = ((H = (N = (y = v.current) == null ? void 0 : y.offsetParent) == null ? void 0 : N.getBoundingClientRect) == null ? void 0 : H.call(N)) ?? {}, F(), Ke();
|
|
355
|
+
}, []), be = U((e) => {
|
|
356
|
+
e.preventDefault();
|
|
357
|
+
const t = _.current, { left: p, right: w, top: y, bottom: N } = t.boundingClientRect ?? {}, { width: H, height: Qe } = t.offsetParentBoundingClientRect ?? {};
|
|
358
|
+
let D = Math.max(e.screenX - t.screenX, -p);
|
|
359
|
+
D = Math.min(D, H - w);
|
|
360
|
+
let R = Math.max(e.screenY - t.screenY, -y);
|
|
361
|
+
R = Math.min(R, Qe - N), D += t.prewTranslateX, R += t.prewTranslateY, t.translateX = D, t.translateY = R, me(`translate(${D}px, ${R}px)`);
|
|
362
|
+
}, []), ge = U((e) => {
|
|
363
|
+
e.preventDefault(), F();
|
|
364
|
+
}, []);
|
|
365
|
+
function Ke() {
|
|
366
|
+
document.documentElement.addEventListener(
|
|
367
|
+
"mousemove",
|
|
368
|
+
be
|
|
369
|
+
), document.documentElement.addEventListener(
|
|
370
|
+
"mouseup",
|
|
371
|
+
ge
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
function F() {
|
|
375
|
+
document.documentElement.removeEventListener(
|
|
376
|
+
"mousemove",
|
|
377
|
+
be
|
|
378
|
+
), document.documentElement.removeEventListener(
|
|
379
|
+
"mouseup",
|
|
380
|
+
ge
|
|
381
|
+
);
|
|
382
|
+
}
|
|
383
|
+
function xe() {
|
|
384
|
+
return {
|
|
385
|
+
screenX: 0,
|
|
386
|
+
screenY: 0,
|
|
387
|
+
prewTranslateX: 0,
|
|
388
|
+
prewTranslateY: 0,
|
|
389
|
+
translateX: 0,
|
|
390
|
+
translateY: 0,
|
|
391
|
+
boundingClientRect: null,
|
|
392
|
+
offsetParentBoundingClientRect: null
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
function ee() {
|
|
396
|
+
_.current = xe(), me(""), Ce("");
|
|
397
|
+
}
|
|
398
|
+
te(() => () => {
|
|
399
|
+
ee(), F();
|
|
400
|
+
}, []), te(() => (v.current || (ee(), F()), () => {
|
|
401
|
+
}), [v.current]);
|
|
402
|
+
const Ge = /* @__PURE__ */ O(
|
|
403
|
+
Pe,
|
|
404
|
+
{
|
|
405
|
+
...u,
|
|
406
|
+
prefixCls: s.prefixCls || u.prefixCls,
|
|
407
|
+
locale: K,
|
|
408
|
+
zIndex: fe || 1050,
|
|
409
|
+
getPopupContainer: (e) => typeof le == "function" ? le(e) : ce.current,
|
|
410
|
+
children: [
|
|
411
|
+
(!!c || !!x) && /* @__PURE__ */ O("div", { className: `${d}-header`, children: [
|
|
412
|
+
!!c && /* @__PURE__ */ l(
|
|
413
|
+
"div",
|
|
414
|
+
{
|
|
415
|
+
className: `${d}-title`,
|
|
416
|
+
id: `pqb-dialog-${B.current}`,
|
|
417
|
+
children: c
|
|
418
|
+
}
|
|
419
|
+
),
|
|
420
|
+
!!x && /* @__PURE__ */ l("div", { className: `${d}-subtitle`, children: x })
|
|
421
|
+
] }),
|
|
422
|
+
/* @__PURE__ */ l("div", { ref: ce, className: `${d}-content`, children: C }),
|
|
423
|
+
qe(),
|
|
424
|
+
!s.fullscreenable && s.draggable !== !1 && /* @__PURE__ */ l(
|
|
425
|
+
"div",
|
|
426
|
+
{
|
|
427
|
+
className: `${d}-drag-icon`,
|
|
428
|
+
onMouseDown: Ae,
|
|
429
|
+
onDoubleClick: ee
|
|
430
|
+
}
|
|
431
|
+
),
|
|
432
|
+
(ze || !!s.fullscreenable) && (ie !== void 0 ? /* @__PURE__ */ l(
|
|
433
|
+
"span",
|
|
434
|
+
{
|
|
435
|
+
className: `${d}-close-icon`,
|
|
436
|
+
onClick: G,
|
|
437
|
+
children: ie
|
|
438
|
+
}
|
|
439
|
+
) : /* @__PURE__ */ l(
|
|
440
|
+
cn,
|
|
441
|
+
{
|
|
442
|
+
tabIndex: -1,
|
|
443
|
+
className: `${d}-close-icon`,
|
|
444
|
+
onClick: G,
|
|
445
|
+
role: "button",
|
|
446
|
+
"aria-label": "Close",
|
|
447
|
+
children: /* @__PURE__ */ l(en, {})
|
|
448
|
+
}
|
|
449
|
+
))
|
|
450
|
+
]
|
|
451
|
+
}
|
|
452
|
+
), Je = c ? { "aria-labelledby": `pqb-dialog-${B.current}` } : {}, ke = /* @__PURE__ */ l(
|
|
453
|
+
"div",
|
|
454
|
+
{
|
|
455
|
+
role: "dialog",
|
|
456
|
+
"aria-modal": "true",
|
|
457
|
+
...Je,
|
|
458
|
+
className: ye(
|
|
459
|
+
d,
|
|
460
|
+
{
|
|
461
|
+
[`${d}-simple`]: o,
|
|
462
|
+
[`${d}-rtl`]: he,
|
|
463
|
+
[`${d}-fullscreenable`]: s.fullscreenable
|
|
464
|
+
},
|
|
465
|
+
f
|
|
466
|
+
),
|
|
467
|
+
style: {
|
|
468
|
+
...g,
|
|
469
|
+
transform: Fe,
|
|
470
|
+
transformOrigin: pe
|
|
471
|
+
},
|
|
472
|
+
ref: v,
|
|
473
|
+
children: Ge
|
|
474
|
+
}
|
|
475
|
+
), ne = (e) => {
|
|
476
|
+
if (pe)
|
|
477
|
+
return;
|
|
478
|
+
let t = "";
|
|
479
|
+
if (Y.current) {
|
|
480
|
+
const p = e.getBoundingClientRect(), { left: w, top: y } = Y.current;
|
|
481
|
+
t = `${w - p.left}px ${y - p.top}px`;
|
|
482
|
+
}
|
|
483
|
+
Ce(t);
|
|
484
|
+
}, ve = q.current ? !V : !!v.current;
|
|
485
|
+
return r || ve ? /* @__PURE__ */ l(
|
|
486
|
+
pn,
|
|
487
|
+
{
|
|
488
|
+
visible: r,
|
|
489
|
+
forceRender: ve,
|
|
490
|
+
getContainer: m,
|
|
491
|
+
children: /* @__PURE__ */ O(
|
|
492
|
+
"div",
|
|
493
|
+
{
|
|
494
|
+
ref: a,
|
|
495
|
+
className: `${d}-container`,
|
|
496
|
+
children: [
|
|
497
|
+
X ? /* @__PURE__ */ l(
|
|
498
|
+
Te,
|
|
499
|
+
{
|
|
500
|
+
in: r,
|
|
501
|
+
timeout: 400,
|
|
502
|
+
appear: !0,
|
|
503
|
+
mountOnEnter: V,
|
|
504
|
+
classNames: "fadeModal",
|
|
505
|
+
unmountOnExit: j,
|
|
506
|
+
onEnter: (e) => {
|
|
507
|
+
e && (e.style.display = "block");
|
|
508
|
+
},
|
|
509
|
+
onExited: (e) => {
|
|
510
|
+
e && (e.style.display = "none");
|
|
511
|
+
},
|
|
512
|
+
children: /* @__PURE__ */ l(
|
|
513
|
+
"div",
|
|
514
|
+
{
|
|
515
|
+
"aria-hidden": !0,
|
|
516
|
+
className: `${d}-mask`,
|
|
517
|
+
style: Xe
|
|
518
|
+
}
|
|
519
|
+
)
|
|
520
|
+
}
|
|
521
|
+
) : null,
|
|
522
|
+
/* @__PURE__ */ l(
|
|
523
|
+
"div",
|
|
524
|
+
{
|
|
525
|
+
...gn(ae, [
|
|
526
|
+
"content",
|
|
527
|
+
"icon",
|
|
528
|
+
"showIcon",
|
|
529
|
+
"isNotice",
|
|
530
|
+
"noticeType",
|
|
531
|
+
"onCancel",
|
|
532
|
+
"onOk",
|
|
533
|
+
"onConfirm",
|
|
534
|
+
"closable",
|
|
535
|
+
"prefixCls"
|
|
536
|
+
]),
|
|
537
|
+
tabIndex: -1,
|
|
538
|
+
ref: (e) => {
|
|
539
|
+
P.current = e, Ze();
|
|
540
|
+
},
|
|
541
|
+
className: ye(
|
|
542
|
+
`${d}-wrapper`,
|
|
543
|
+
{
|
|
544
|
+
[`${d}-wrapper-no-mask`]: !X,
|
|
545
|
+
[`${d}-wrapper-align-center`]: Oe,
|
|
546
|
+
[`${d}-wrapper-rtl`]: he
|
|
547
|
+
},
|
|
548
|
+
Le
|
|
549
|
+
),
|
|
550
|
+
style: {
|
|
551
|
+
...Ye || {},
|
|
552
|
+
// 必须 visible=false,立即设置display:none,否则modal加载react-monaco-editor的时候,编辑器显示异常
|
|
553
|
+
display: r || ue ? "block" : "none",
|
|
554
|
+
overflow: !r && ue ? "hidden" : ""
|
|
555
|
+
},
|
|
556
|
+
onKeyDown: Ve,
|
|
557
|
+
onMouseDown: (e) => {
|
|
558
|
+
$.current = e.target === e.currentTarget;
|
|
559
|
+
},
|
|
560
|
+
onClick: je,
|
|
561
|
+
children: /* @__PURE__ */ l(
|
|
562
|
+
Te,
|
|
563
|
+
{
|
|
564
|
+
in: r,
|
|
565
|
+
timeout: 400,
|
|
566
|
+
appear: !0,
|
|
567
|
+
classNames: "zoomModal",
|
|
568
|
+
unmountOnExit: j,
|
|
569
|
+
mountOnEnter: V,
|
|
570
|
+
onEnter: (e) => {
|
|
571
|
+
e && (de(!0), Y.current = oe, ne(e), v.current = e);
|
|
572
|
+
},
|
|
573
|
+
onEntered: (e) => {
|
|
574
|
+
e && (ne(e), Y.current = null, W == null || W());
|
|
575
|
+
},
|
|
576
|
+
onExit: () => {
|
|
577
|
+
Q.current = !0;
|
|
578
|
+
},
|
|
579
|
+
onExited: (e) => {
|
|
580
|
+
e && (de(!1), ne(e), S == null || S(), Q.current = !1, j && (v.current = null));
|
|
581
|
+
},
|
|
582
|
+
children: nn.cloneElement(
|
|
583
|
+
we(se) ? se(ke) : ke,
|
|
584
|
+
{
|
|
585
|
+
onMouseDown: () => {
|
|
586
|
+
$.current = !1;
|
|
587
|
+
},
|
|
588
|
+
onMouseUp: () => {
|
|
589
|
+
$.current = !1;
|
|
590
|
+
}
|
|
591
|
+
}
|
|
592
|
+
)
|
|
593
|
+
}
|
|
594
|
+
)
|
|
595
|
+
}
|
|
596
|
+
)
|
|
597
|
+
]
|
|
598
|
+
}
|
|
599
|
+
)
|
|
600
|
+
}
|
|
601
|
+
) : null;
|
|
602
|
+
}
|
|
603
|
+
const E = Ie(
|
|
604
|
+
$n
|
|
605
|
+
);
|
|
606
|
+
E.displayName = "Modal";
|
|
607
|
+
E.config = un;
|
|
608
|
+
E.show = (n) => re({ ...n, noticeType: "show" });
|
|
609
|
+
E.confirm = (n) => re(n);
|
|
610
|
+
E.useModal = Nn;
|
|
611
|
+
["info", "success", "warning", "error"].forEach((n) => {
|
|
612
|
+
E[n] = (a) => re({
|
|
613
|
+
...a,
|
|
614
|
+
isNotice: !0,
|
|
615
|
+
noticeType: n
|
|
616
|
+
});
|
|
617
|
+
});
|
|
618
|
+
E.destroyAll = () => {
|
|
619
|
+
for (; T.length; ) {
|
|
620
|
+
const n = T.pop();
|
|
621
|
+
n && n();
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
export {
|
|
625
|
+
E
|
|
626
|
+
};
|