@rockshin/tao-ui 0.0.44 → 0.0.46
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/README.md +9 -1
- package/component-manifest.json +38 -4
- package/dist/components/alert/alert.js +20 -17
- package/dist/components/auto-complete/auto-complete.js +12 -3
- package/dist/components/avatar/avatar.js +2 -1
- package/dist/components/breadcrumb/breadcrumb.css +4 -0
- package/dist/components/breadcrumb/breadcrumb.js +82 -77
- package/dist/components/calendar/calendar.d.ts +1 -1
- package/dist/components/calendar/calendar.js +51 -33
- package/dist/components/card/card-tabs.js +204 -182
- package/dist/components/card/card.js +1 -1
- package/dist/components/carousel/carousel.js +11 -5
- package/dist/components/cascader/cascader.js +16 -4
- package/dist/components/collapse/collapse.css +8 -0
- package/dist/components/color-picker/color-picker.js +273 -269
- package/dist/components/context-menu/context-menu.d.ts +2 -1
- package/dist/components/context-menu/context-menu.js +57 -44
- package/dist/components/date-picker/calendar/calendar-grid.js +13 -6
- package/dist/components/date-picker/calendar/use-calendar.d.ts +2 -2
- package/dist/components/date-picker/calendar/use-calendar.js +2 -3
- package/dist/components/date-picker/date-localization.d.ts +3 -0
- package/dist/components/date-picker/date-localization.js +76 -0
- package/dist/components/date-picker/date-picker.css +4 -0
- package/dist/components/date-picker/date-picker.d.ts +1 -0
- package/dist/components/date-picker/date-picker.js +48 -30
- package/dist/components/date-picker/range-picker.d.ts +1 -0
- package/dist/components/date-picker/range-picker.js +41 -23
- package/dist/components/drawer/drawer.d.ts +2 -1
- package/dist/components/drawer/drawer.js +32 -20
- package/dist/components/dropdown/dropdown.d.ts +1 -0
- package/dist/components/dropdown/dropdown.js +160 -143
- package/dist/components/float-button/float-button.js +3 -2
- package/dist/components/form/form.js +88 -103
- package/dist/components/image/image.js +202 -137
- package/dist/components/list/list-pagination.js +148 -147
- package/dist/components/mentions/mentions.js +6 -2
- package/dist/components/modal/confirm-dialog.js +4 -2
- package/dist/components/modal/modal.d.ts +2 -1
- package/dist/components/modal/modal.js +387 -375
- package/dist/components/pagination/pagination.css +4 -0
- package/dist/components/pagination/pagination.js +115 -110
- package/dist/components/popconfirm/popconfirm.js +109 -107
- package/dist/components/popover/popover.d.ts +2 -1
- package/dist/components/popover/popover.js +185 -176
- package/dist/components/qr-code/qr-code.js +22 -21
- package/dist/components/rate/rate.js +114 -88
- package/dist/components/scroll-area/scroll-area.js +132 -120
- package/dist/components/segmented/segmented.js +52 -29
- package/dist/components/select/mobile-select.d.ts +3 -2
- package/dist/components/select/mobile-select.js +54 -48
- package/dist/components/select/select-types.d.ts +1 -0
- package/dist/components/select/select.js +19 -6
- package/dist/components/slider/slider.js +136 -133
- package/dist/components/sonner/sonner.js +10 -10
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/splitter/splitter.css +4 -0
- package/dist/components/splitter/splitter.js +29 -24
- package/dist/components/statistic/statistic.d.ts +2 -0
- package/dist/components/statistic/statistic.js +203 -187
- package/dist/components/table/table-filter.js +61 -52
- package/dist/components/table/table-icons.js +3 -1
- package/dist/components/table/table.css +29 -11
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.js +384 -547
- package/dist/components/tabs/tabs.js +3 -2
- package/dist/components/tag/tag.js +22 -19
- package/dist/components/time-picker/time-picker.d.ts +0 -1
- package/dist/components/time-picker/time-picker.js +160 -103
- package/dist/components/tooltip/tooltip.d.ts +2 -1
- package/dist/components/tooltip/tooltip.js +82 -71
- package/dist/components/transfer/transfer-list.js +224 -488
- package/dist/components/transfer/transfer-parts.js +14 -4
- package/dist/components/transfer/transfer-types.d.ts +1 -0
- package/dist/components/transfer/transfer.js +23 -20
- package/dist/components/tree/tree-keyboard.d.ts +6 -0
- package/dist/components/tree/tree-keyboard.js +27 -0
- package/dist/components/tree/tree.js +14 -3
- package/dist/components/tree-select/select-engine.d.ts +2 -1
- package/dist/components/tree-select/select-engine.js +23 -15
- package/dist/components/tree-select/tree-select.js +20 -10
- package/dist/components/upload/upload.js +30 -26
- package/dist/docs/component-docs.d.ts +13 -2
- package/dist/docs/components/headless-input-number.doc.d.ts +5 -0
- package/dist/docs/components/headless-input-number.doc.js +7 -0
- package/dist/docs/components/input-number.doc.d.ts +5 -0
- package/dist/docs/components/input-number.doc.js +7 -0
- package/dist/docs/components/statistic.doc.d.ts +5 -0
- package/dist/docs/components/statistic.doc.js +7 -0
- package/dist/docs/components/tao-provider.doc.d.ts +8 -2
- package/dist/docs/components/tao-provider.doc.js +16 -3
- package/dist/docs/components/tooltip.doc.d.ts +2 -2
- package/dist/entries/provider.d.ts +2 -1
- package/dist/entries/provider.js +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +1 -0
- package/dist/locales/ar-EG.d.ts +3 -0
- package/dist/locales/ar-EG.js +199 -0
- package/dist/locales/create-locale.d.ts +41 -0
- package/dist/locales/create-locale.js +88 -0
- package/dist/locales/de-DE.d.ts +3 -0
- package/dist/locales/de-DE.js +195 -0
- package/dist/locales/en-US.d.ts +2 -0
- package/dist/locales/en-US.js +194 -0
- package/dist/locales/es-ES.d.ts +3 -0
- package/dist/locales/es-ES.js +195 -0
- package/dist/locales/fr-FR.d.ts +3 -0
- package/dist/locales/fr-FR.js +195 -0
- package/dist/locales/hi-IN.d.ts +3 -0
- package/dist/locales/hi-IN.js +194 -0
- package/dist/locales/id-ID.d.ts +3 -0
- package/dist/locales/id-ID.js +194 -0
- package/dist/locales/index.d.ts +18 -0
- package/dist/locales/index.js +17 -0
- package/dist/locales/it-IT.d.ts +3 -0
- package/dist/locales/it-IT.js +195 -0
- package/dist/locales/ja-JP.d.ts +3 -0
- package/dist/locales/ja-JP.js +194 -0
- package/dist/locales/ko-KR.d.ts +3 -0
- package/dist/locales/ko-KR.js +194 -0
- package/dist/locales/pt-BR.d.ts +3 -0
- package/dist/locales/pt-BR.js +195 -0
- package/dist/locales/ru-RU.d.ts +3 -0
- package/dist/locales/ru-RU.js +197 -0
- package/dist/locales/th-TH.d.ts +3 -0
- package/dist/locales/th-TH.js +194 -0
- package/dist/locales/tr-TR.d.ts +3 -0
- package/dist/locales/tr-TR.js +194 -0
- package/dist/locales/types.d.ts +176 -0
- package/dist/locales/types.js +0 -0
- package/dist/locales/vi-VN.d.ts +3 -0
- package/dist/locales/vi-VN.js +194 -0
- package/dist/locales/zh-CN.d.ts +3 -0
- package/dist/locales/zh-CN.js +194 -0
- package/dist/locales/zh-TW.d.ts +3 -0
- package/dist/locales/zh-TW.js +194 -0
- package/dist/number-input/format.d.ts +4 -3
- package/dist/number-input/format.js +9 -7
- package/dist/number-input/locale.d.ts +19 -0
- package/dist/number-input/locale.js +44 -0
- package/dist/number-input/number-input.js +1 -0
- package/dist/number-input/use-number-input.d.ts +2 -0
- package/dist/number-input/use-number-input.js +180 -176
- package/dist/provider/locale.d.ts +3 -65
- package/dist/provider/locale.js +2 -146
- package/dist/provider/merge-locale.d.ts +8 -0
- package/dist/provider/merge-locale.js +53 -0
- package/dist/provider/tao-provider.d.ts +16 -5
- package/dist/provider/tao-provider.js +200 -92
- package/dist/utils/scroll-left.d.ts +3 -0
- package/dist/utils/scroll-left.js +7 -0
- package/llms.txt +3 -3
- package/package.json +5 -1
|
@@ -3,7 +3,7 @@ import { c } from "react-compiler-runtime";
|
|
|
3
3
|
import { FocusScope, FocusScopeBranchProvider, useFocusScopeBranchRegistry } from "@radix-ui/react-focus-scope";
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
5
|
import { RemoveScroll } from "react-remove-scroll";
|
|
6
|
-
import { TaoPortalScope } from "../../provider/tao-provider.js";
|
|
6
|
+
import { TaoPortalScope, TaoProvider, useTaoConfig } from "../../provider/tao-provider.js";
|
|
7
7
|
import { resolveResponsiveValue, useBreakpoint } from "../../utils/breakpoint.js";
|
|
8
8
|
import { DialogContent } from "../../utils/dialog-content.js";
|
|
9
9
|
import { preventParentOutsideDismiss } from "../../utils/portal.js";
|
|
@@ -14,44 +14,43 @@ import "./modal.css";
|
|
|
14
14
|
import * as __rspack_external__radix_ui_react_dialog_dabd8325 from "@radix-ui/react-dialog";
|
|
15
15
|
const ModalBranchProvider = FocusScopeBranchProvider;
|
|
16
16
|
function Modal(t0) {
|
|
17
|
-
const $ = c(
|
|
18
|
-
const { open, onClose, title, footer, onOk, okText
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const destroyOnHidden = void 0 === t10 ? true : t10;
|
|
17
|
+
const $ = c(176);
|
|
18
|
+
const { direction, open, onClose, title, footer, onOk, okText, cancelText, confirmLoading, okButtonProps, cancelButtonProps, width: t1, centered: t2, closable: t3, maskClosable: t4, keyboard: t5, getContainer, mask: t6, zIndex, scrollLock: t7, closeIcon, modalRender, wrapProps, transitionName, maskTransitionName, focusTriggerAfterClose, autoFocusButton, focusable, afterClose, destroyOnHidden: t8, children, classNames, styles: stylesProp, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy } = t0;
|
|
19
|
+
const width = void 0 === t1 ? 520 : t1;
|
|
20
|
+
const centered = void 0 === t2 ? true : t2;
|
|
21
|
+
const closable = void 0 === t3 ? true : t3;
|
|
22
|
+
const maskClosable = void 0 === t4 ? true : t4;
|
|
23
|
+
const keyboard = void 0 === t5 ? true : t5;
|
|
24
|
+
const mask = void 0 === t6 ? true : t6;
|
|
25
|
+
const scrollLock = void 0 === t7 ? true : t7;
|
|
26
|
+
const destroyOnHidden = void 0 === t8 ? true : t8;
|
|
27
|
+
const { locale } = useTaoConfig();
|
|
29
28
|
const watermarkRef = useWatermarkPanelRef();
|
|
30
29
|
const contentRef = useRef(null);
|
|
31
30
|
const { nodes: focusBranches, registry: focusRegistry } = useFocusScopeBranchRegistry();
|
|
32
31
|
const restoreFocusRef = useRef(null);
|
|
33
|
-
let
|
|
32
|
+
let t9;
|
|
34
33
|
if ($[0] !== watermarkRef) {
|
|
35
|
-
|
|
34
|
+
t9 = (node)=>{
|
|
36
35
|
contentRef.current = node;
|
|
37
36
|
watermarkRef(node);
|
|
38
37
|
};
|
|
39
38
|
$[0] = watermarkRef;
|
|
40
|
-
$[1] =
|
|
41
|
-
} else
|
|
42
|
-
const setContentRef =
|
|
39
|
+
$[1] = t9;
|
|
40
|
+
} else t9 = $[1];
|
|
41
|
+
const setContentRef = t9;
|
|
43
42
|
const prevOpen = useRef(open);
|
|
44
|
-
let
|
|
45
|
-
let
|
|
43
|
+
let t10;
|
|
44
|
+
let t11;
|
|
46
45
|
if ($[2] !== afterClose || $[3] !== closable || $[4] !== open) {
|
|
47
|
-
|
|
46
|
+
t10 = ()=>{
|
|
48
47
|
if (prevOpen.current && !open) {
|
|
49
48
|
afterClose?.();
|
|
50
49
|
if ("object" == typeof closable) closable.afterClose?.();
|
|
51
50
|
}
|
|
52
51
|
prevOpen.current = open;
|
|
53
52
|
};
|
|
54
|
-
|
|
53
|
+
t11 = [
|
|
55
54
|
open,
|
|
56
55
|
afterClose,
|
|
57
56
|
closable
|
|
@@ -59,112 +58,114 @@ function Modal(t0) {
|
|
|
59
58
|
$[2] = afterClose;
|
|
60
59
|
$[3] = closable;
|
|
61
60
|
$[4] = open;
|
|
62
|
-
$[5] =
|
|
63
|
-
$[6] =
|
|
61
|
+
$[5] = t10;
|
|
62
|
+
$[6] = t11;
|
|
64
63
|
} else {
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
t10 = $[5];
|
|
65
|
+
t11 = $[6];
|
|
67
66
|
}
|
|
68
|
-
useEffect(
|
|
67
|
+
useEffect(t10, t11);
|
|
69
68
|
const screens = useBreakpoint();
|
|
70
|
-
let
|
|
69
|
+
let t12;
|
|
71
70
|
if ($[7] !== screens || $[8] !== width) {
|
|
72
|
-
|
|
71
|
+
t12 = resolveResponsiveValue(width, screens) ?? 520;
|
|
73
72
|
$[7] = screens;
|
|
74
73
|
$[8] = width;
|
|
75
|
-
$[9] =
|
|
76
|
-
} else
|
|
77
|
-
const resolvedWidth =
|
|
78
|
-
const
|
|
79
|
-
const
|
|
80
|
-
const
|
|
81
|
-
let
|
|
82
|
-
if ($[10] !==
|
|
83
|
-
|
|
74
|
+
$[9] = t12;
|
|
75
|
+
} else t12 = $[9];
|
|
76
|
+
const resolvedWidth = t12;
|
|
77
|
+
const t13 = "number" == typeof resolvedWidth ? `${resolvedWidth}px` : resolvedWidth;
|
|
78
|
+
const t14 = stylesProp?.root;
|
|
79
|
+
const t15 = stylesProp?.container;
|
|
80
|
+
let t16;
|
|
81
|
+
if ($[10] !== t13 || $[11] !== t14 || $[12] !== t15) {
|
|
82
|
+
t16 = {
|
|
84
83
|
pointerEvents: "auto",
|
|
85
|
-
width:
|
|
86
|
-
...
|
|
87
|
-
...
|
|
84
|
+
width: t13,
|
|
85
|
+
...t14,
|
|
86
|
+
...t15
|
|
88
87
|
};
|
|
89
|
-
$[10] =
|
|
90
|
-
$[11] =
|
|
91
|
-
$[12] =
|
|
92
|
-
$[13] =
|
|
93
|
-
} else
|
|
94
|
-
const contentStyle =
|
|
95
|
-
let
|
|
96
|
-
if ($[14] !== cancelButtonProps || $[15] !== cancelText || $[16] !== onClose) {
|
|
97
|
-
|
|
88
|
+
$[10] = t13;
|
|
89
|
+
$[11] = t14;
|
|
90
|
+
$[12] = t15;
|
|
91
|
+
$[13] = t16;
|
|
92
|
+
} else t16 = $[13];
|
|
93
|
+
const contentStyle = t16;
|
|
94
|
+
let t17;
|
|
95
|
+
if ($[14] !== cancelButtonProps || $[15] !== cancelText || $[16] !== locale || $[17] !== onClose) {
|
|
96
|
+
t17 = ()=>/*#__PURE__*/ jsx(Button, {
|
|
98
97
|
variant: "secondary",
|
|
99
98
|
onClick: onClose,
|
|
100
99
|
"data-tao-modal-action": "cancel",
|
|
101
100
|
...cancelButtonProps,
|
|
102
|
-
children: cancelText
|
|
101
|
+
children: void 0 === cancelText ? locale.cancel : cancelText
|
|
103
102
|
});
|
|
104
103
|
$[14] = cancelButtonProps;
|
|
105
104
|
$[15] = cancelText;
|
|
106
|
-
$[16] =
|
|
107
|
-
$[17] =
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
105
|
+
$[16] = locale;
|
|
106
|
+
$[17] = onClose;
|
|
107
|
+
$[18] = t17;
|
|
108
|
+
} else t17 = $[18];
|
|
109
|
+
const CancelBtn = t17;
|
|
110
|
+
let t18;
|
|
111
|
+
if ($[19] !== confirmLoading || $[20] !== locale || $[21] !== okButtonProps || $[22] !== okText || $[23] !== onOk) {
|
|
112
|
+
t18 = ()=>/*#__PURE__*/ jsx(Button, {
|
|
113
113
|
variant: "primary",
|
|
114
114
|
loading: confirmLoading,
|
|
115
115
|
onClick: onOk,
|
|
116
116
|
"data-tao-modal-action": "ok",
|
|
117
117
|
...okButtonProps,
|
|
118
|
-
children: okText
|
|
118
|
+
children: void 0 === okText ? locale.ok : okText
|
|
119
119
|
});
|
|
120
|
-
$[
|
|
121
|
-
$[
|
|
122
|
-
$[
|
|
123
|
-
$[
|
|
124
|
-
$[
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
$[19] = confirmLoading;
|
|
121
|
+
$[20] = locale;
|
|
122
|
+
$[21] = okButtonProps;
|
|
123
|
+
$[22] = okText;
|
|
124
|
+
$[23] = onOk;
|
|
125
|
+
$[24] = t18;
|
|
126
|
+
} else t18 = $[24];
|
|
127
|
+
const OkBtn = t18;
|
|
128
|
+
let t19;
|
|
129
|
+
if ($[25] !== CancelBtn) {
|
|
130
|
+
t19 = /*#__PURE__*/ jsx(CancelBtn, {});
|
|
131
|
+
$[25] = CancelBtn;
|
|
132
|
+
$[26] = t19;
|
|
133
|
+
} else t19 = $[26];
|
|
134
|
+
let t20;
|
|
135
|
+
if ($[27] !== OkBtn) {
|
|
136
|
+
t20 = /*#__PURE__*/ jsx(OkBtn, {});
|
|
137
|
+
$[27] = OkBtn;
|
|
138
|
+
$[28] = t20;
|
|
139
|
+
} else t20 = $[28];
|
|
127
140
|
let t21;
|
|
128
|
-
if ($[
|
|
129
|
-
t21 = /*#__PURE__*/
|
|
130
|
-
$[23] = CancelBtn;
|
|
131
|
-
$[24] = t21;
|
|
132
|
-
} else t21 = $[24];
|
|
133
|
-
let t22;
|
|
134
|
-
if ($[25] !== OkBtn) {
|
|
135
|
-
t22 = /*#__PURE__*/ jsx(OkBtn, {});
|
|
136
|
-
$[25] = OkBtn;
|
|
137
|
-
$[26] = t22;
|
|
138
|
-
} else t22 = $[26];
|
|
139
|
-
let t23;
|
|
140
|
-
if ($[27] !== t21 || $[28] !== t22) {
|
|
141
|
-
t23 = /*#__PURE__*/ jsxs(Fragment, {
|
|
141
|
+
if ($[29] !== t19 || $[30] !== t20) {
|
|
142
|
+
t21 = /*#__PURE__*/ jsxs(Fragment, {
|
|
142
143
|
children: [
|
|
143
|
-
|
|
144
|
-
|
|
144
|
+
t19,
|
|
145
|
+
t20
|
|
145
146
|
]
|
|
146
147
|
});
|
|
147
|
-
$[
|
|
148
|
-
$[
|
|
149
|
-
$[
|
|
150
|
-
} else
|
|
151
|
-
const defaultFooter =
|
|
148
|
+
$[29] = t19;
|
|
149
|
+
$[30] = t20;
|
|
150
|
+
$[31] = t21;
|
|
151
|
+
} else t21 = $[31];
|
|
152
|
+
const defaultFooter = t21;
|
|
152
153
|
let footerContent;
|
|
153
154
|
if (void 0 === footer) footerContent = defaultFooter;
|
|
154
155
|
else if ("function" == typeof footer) {
|
|
155
|
-
let
|
|
156
|
-
if ($[
|
|
157
|
-
|
|
156
|
+
let t22;
|
|
157
|
+
if ($[32] !== CancelBtn || $[33] !== OkBtn || $[34] !== defaultFooter || $[35] !== footer) {
|
|
158
|
+
t22 = footer(defaultFooter, {
|
|
158
159
|
OkBtn,
|
|
159
160
|
CancelBtn
|
|
160
161
|
});
|
|
161
|
-
$[
|
|
162
|
-
$[
|
|
163
|
-
$[
|
|
164
|
-
$[
|
|
165
|
-
$[
|
|
166
|
-
} else
|
|
167
|
-
footerContent =
|
|
162
|
+
$[32] = CancelBtn;
|
|
163
|
+
$[33] = OkBtn;
|
|
164
|
+
$[34] = defaultFooter;
|
|
165
|
+
$[35] = footer;
|
|
166
|
+
$[36] = t22;
|
|
167
|
+
} else t22 = $[36];
|
|
168
|
+
footerContent = t22;
|
|
168
169
|
} else footerContent = footer;
|
|
169
170
|
const keepAlive = !destroyOnHidden;
|
|
170
171
|
const forceMount = keepAlive ? true : void 0;
|
|
@@ -175,9 +176,9 @@ function Modal(t0) {
|
|
|
175
176
|
const showClose = closable && null !== mergedCloseIcon && false !== mergedCloseIcon;
|
|
176
177
|
const trapFocus = focusable?.trap ?? true;
|
|
177
178
|
const customInteraction = !scrollLock || !trapFocus;
|
|
178
|
-
let
|
|
179
|
-
if ($[
|
|
180
|
-
|
|
179
|
+
let t22;
|
|
180
|
+
if ($[37] !== autoFocusButton || $[38] !== focusable) {
|
|
181
|
+
t22 = (event)=>{
|
|
181
182
|
restoreFocusRef.current = document.activeElement;
|
|
182
183
|
const button = focusable?.autoFocusButton !== void 0 ? focusable.autoFocusButton : autoFocusButton;
|
|
183
184
|
if (null === button) event.preventDefault();
|
|
@@ -186,26 +187,26 @@ function Modal(t0) {
|
|
|
186
187
|
contentRef.current?.querySelector(`[data-tao-modal-action="${button}"]`)?.focus();
|
|
187
188
|
}
|
|
188
189
|
};
|
|
189
|
-
$[
|
|
190
|
-
$[
|
|
191
|
-
$[
|
|
192
|
-
} else
|
|
193
|
-
const openAutoFocus =
|
|
194
|
-
let
|
|
195
|
-
if ($[
|
|
196
|
-
|
|
190
|
+
$[37] = autoFocusButton;
|
|
191
|
+
$[38] = focusable;
|
|
192
|
+
$[39] = t22;
|
|
193
|
+
} else t22 = $[39];
|
|
194
|
+
const openAutoFocus = t22;
|
|
195
|
+
let t23;
|
|
196
|
+
if ($[40] !== focusTriggerAfterClose || $[41] !== focusable?.focusTriggerAfterClose) {
|
|
197
|
+
t23 = (event_0)=>{
|
|
197
198
|
const restore = focusable?.focusTriggerAfterClose ?? focusTriggerAfterClose;
|
|
198
199
|
if (void 0 !== restore) event_0.preventDefault();
|
|
199
200
|
if (restore) restoreFocusRef.current?.focus();
|
|
200
201
|
};
|
|
201
|
-
$[
|
|
202
|
-
$[
|
|
203
|
-
$[
|
|
204
|
-
} else
|
|
205
|
-
const closeAutoFocus =
|
|
206
|
-
let
|
|
207
|
-
if ($[
|
|
208
|
-
|
|
202
|
+
$[40] = focusTriggerAfterClose;
|
|
203
|
+
$[41] = focusable?.focusTriggerAfterClose;
|
|
204
|
+
$[42] = t23;
|
|
205
|
+
} else t23 = $[42];
|
|
206
|
+
const closeAutoFocus = t23;
|
|
207
|
+
let t24;
|
|
208
|
+
if ($[43] !== classNames?.close || $[44] !== classNames?.header || $[45] !== classNames?.title || $[46] !== closeConfig || $[47] !== locale || $[48] !== mergedCloseIcon || $[49] !== onClose || $[50] !== showClose || $[51] !== stylesProp?.close || $[52] !== stylesProp?.header || $[53] !== stylesProp?.title || $[54] !== title) {
|
|
209
|
+
t24 = (null != title || showClose) && /*#__PURE__*/ jsxs("div", {
|
|
209
210
|
"data-tao-modal-header": "",
|
|
210
211
|
className: cx(classNames?.header),
|
|
211
212
|
style: stylesProp?.header,
|
|
@@ -231,165 +232,166 @@ function Modal(t0) {
|
|
|
231
232
|
onClose?.();
|
|
232
233
|
},
|
|
233
234
|
disabled: closeConfig?.disabled,
|
|
234
|
-
"aria-label": closeConfig?.["aria-label"] ??
|
|
235
|
+
"aria-label": closeConfig?.["aria-label"] ?? locale.close,
|
|
235
236
|
children: mergedCloseIcon ?? /*#__PURE__*/ jsx(CloseIcon, {})
|
|
236
237
|
})
|
|
237
238
|
]
|
|
238
239
|
});
|
|
239
|
-
$[
|
|
240
|
-
$[
|
|
241
|
-
$[
|
|
242
|
-
$[
|
|
243
|
-
$[
|
|
244
|
-
$[
|
|
245
|
-
$[
|
|
246
|
-
$[
|
|
247
|
-
$[
|
|
248
|
-
$[
|
|
249
|
-
$[
|
|
250
|
-
$[
|
|
251
|
-
|
|
252
|
-
|
|
240
|
+
$[43] = classNames?.close;
|
|
241
|
+
$[44] = classNames?.header;
|
|
242
|
+
$[45] = classNames?.title;
|
|
243
|
+
$[46] = closeConfig;
|
|
244
|
+
$[47] = locale;
|
|
245
|
+
$[48] = mergedCloseIcon;
|
|
246
|
+
$[49] = onClose;
|
|
247
|
+
$[50] = showClose;
|
|
248
|
+
$[51] = stylesProp?.close;
|
|
249
|
+
$[52] = stylesProp?.header;
|
|
250
|
+
$[53] = stylesProp?.title;
|
|
251
|
+
$[54] = title;
|
|
252
|
+
$[55] = t24;
|
|
253
|
+
} else t24 = $[55];
|
|
254
|
+
const t25 = classNames?.body;
|
|
255
|
+
let t26;
|
|
256
|
+
if ($[56] !== t25) {
|
|
257
|
+
t26 = cx(t25);
|
|
258
|
+
$[56] = t25;
|
|
259
|
+
$[57] = t26;
|
|
260
|
+
} else t26 = $[57];
|
|
261
|
+
const t27 = stylesProp?.body;
|
|
253
262
|
let t28;
|
|
254
|
-
if ($[
|
|
255
|
-
t28 =
|
|
256
|
-
$[53] = t27;
|
|
257
|
-
$[54] = t28;
|
|
258
|
-
} else t28 = $[54];
|
|
259
|
-
const t29 = stylesProp?.body;
|
|
260
|
-
let t30;
|
|
261
|
-
if ($[55] !== children || $[56] !== t28 || $[57] !== t29) {
|
|
262
|
-
t30 = /*#__PURE__*/ jsx("div", {
|
|
263
|
+
if ($[58] !== children || $[59] !== t26 || $[60] !== t27) {
|
|
264
|
+
t28 = /*#__PURE__*/ jsx("div", {
|
|
263
265
|
"data-tao-modal-body": "",
|
|
264
|
-
className:
|
|
265
|
-
style:
|
|
266
|
+
className: t26,
|
|
267
|
+
style: t27,
|
|
266
268
|
children: children
|
|
267
269
|
});
|
|
268
|
-
$[
|
|
269
|
-
$[
|
|
270
|
-
$[
|
|
271
|
-
$[
|
|
272
|
-
} else
|
|
273
|
-
let
|
|
274
|
-
if ($[
|
|
275
|
-
|
|
270
|
+
$[58] = children;
|
|
271
|
+
$[59] = t26;
|
|
272
|
+
$[60] = t27;
|
|
273
|
+
$[61] = t28;
|
|
274
|
+
} else t28 = $[61];
|
|
275
|
+
let t29;
|
|
276
|
+
if ($[62] !== classNames?.footer || $[63] !== footerContent || $[64] !== stylesProp?.footer) {
|
|
277
|
+
t29 = null != footerContent && /*#__PURE__*/ jsx("div", {
|
|
276
278
|
"data-tao-modal-footer": "",
|
|
277
279
|
className: cx(classNames?.footer),
|
|
278
280
|
style: stylesProp?.footer,
|
|
279
281
|
children: footerContent
|
|
280
282
|
});
|
|
281
|
-
$[
|
|
282
|
-
$[
|
|
283
|
-
$[
|
|
284
|
-
$[
|
|
285
|
-
} else
|
|
286
|
-
let
|
|
287
|
-
if ($[
|
|
288
|
-
|
|
283
|
+
$[62] = classNames?.footer;
|
|
284
|
+
$[63] = footerContent;
|
|
285
|
+
$[64] = stylesProp?.footer;
|
|
286
|
+
$[65] = t29;
|
|
287
|
+
} else t29 = $[65];
|
|
288
|
+
let t30;
|
|
289
|
+
if ($[66] !== t24 || $[67] !== t28 || $[68] !== t29) {
|
|
290
|
+
t30 = /*#__PURE__*/ jsxs(Fragment, {
|
|
289
291
|
children: [
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
292
|
+
t24,
|
|
293
|
+
t28,
|
|
294
|
+
t29
|
|
293
295
|
]
|
|
294
296
|
});
|
|
295
|
-
$[
|
|
296
|
-
$[
|
|
297
|
-
$[
|
|
298
|
-
$[
|
|
299
|
-
} else
|
|
300
|
-
const contents =
|
|
301
|
-
const
|
|
302
|
-
const
|
|
303
|
-
let
|
|
304
|
-
if ($[
|
|
305
|
-
|
|
306
|
-
$[
|
|
307
|
-
$[
|
|
308
|
-
$[
|
|
309
|
-
$[
|
|
310
|
-
} else
|
|
311
|
-
let
|
|
312
|
-
if ($[
|
|
313
|
-
|
|
297
|
+
$[66] = t24;
|
|
298
|
+
$[67] = t28;
|
|
299
|
+
$[68] = t29;
|
|
300
|
+
$[69] = t30;
|
|
301
|
+
} else t30 = $[69];
|
|
302
|
+
const contents = t30;
|
|
303
|
+
const t31 = classNames?.root;
|
|
304
|
+
const t32 = classNames?.container;
|
|
305
|
+
let t33;
|
|
306
|
+
if ($[70] !== t31 || $[71] !== t32 || $[72] !== transitionName) {
|
|
307
|
+
t33 = cx(t31, t32, transitionName);
|
|
308
|
+
$[70] = t31;
|
|
309
|
+
$[71] = t32;
|
|
310
|
+
$[72] = transitionName;
|
|
311
|
+
$[73] = t33;
|
|
312
|
+
} else t33 = $[73];
|
|
313
|
+
let t34;
|
|
314
|
+
if ($[74] !== ariaLabel || $[75] !== ariaLabelledBy) {
|
|
315
|
+
t34 = ariaLabel || ariaLabelledBy ? {
|
|
314
316
|
"aria-labelledby": ariaLabelledBy
|
|
315
317
|
} : {};
|
|
316
|
-
$[
|
|
317
|
-
$[
|
|
318
|
-
$[
|
|
319
|
-
} else
|
|
318
|
+
$[74] = ariaLabel;
|
|
319
|
+
$[75] = ariaLabelledBy;
|
|
320
|
+
$[76] = t34;
|
|
321
|
+
} else t34 = $[76];
|
|
322
|
+
let t35;
|
|
323
|
+
if ($[77] !== customInteraction || $[78] !== openAutoFocus) {
|
|
324
|
+
t35 = customInteraction ? _temp : openAutoFocus;
|
|
325
|
+
$[77] = customInteraction;
|
|
326
|
+
$[78] = openAutoFocus;
|
|
327
|
+
$[79] = t35;
|
|
328
|
+
} else t35 = $[79];
|
|
329
|
+
let t36;
|
|
330
|
+
if ($[80] !== closeAutoFocus || $[81] !== customInteraction) {
|
|
331
|
+
t36 = customInteraction ? _temp2 : closeAutoFocus;
|
|
332
|
+
$[80] = closeAutoFocus;
|
|
333
|
+
$[81] = customInteraction;
|
|
334
|
+
$[82] = t36;
|
|
335
|
+
} else t36 = $[82];
|
|
320
336
|
let t37;
|
|
321
|
-
if ($[
|
|
322
|
-
t37 =
|
|
323
|
-
$[74] = customInteraction;
|
|
324
|
-
$[75] = openAutoFocus;
|
|
325
|
-
$[76] = t37;
|
|
326
|
-
} else t37 = $[76];
|
|
327
|
-
let t38;
|
|
328
|
-
if ($[77] !== closeAutoFocus || $[78] !== customInteraction) {
|
|
329
|
-
t38 = customInteraction ? _temp2 : closeAutoFocus;
|
|
330
|
-
$[77] = closeAutoFocus;
|
|
331
|
-
$[78] = customInteraction;
|
|
332
|
-
$[79] = t38;
|
|
333
|
-
} else t38 = $[79];
|
|
334
|
-
let t39;
|
|
335
|
-
if ($[80] !== keyboard) {
|
|
336
|
-
t39 = (event_3)=>{
|
|
337
|
+
if ($[83] !== keyboard) {
|
|
338
|
+
t37 = (event_3)=>{
|
|
337
339
|
if (!keyboard) event_3.preventDefault();
|
|
338
340
|
};
|
|
339
|
-
$[
|
|
340
|
-
$[
|
|
341
|
-
} else
|
|
342
|
-
let
|
|
343
|
-
if ($[
|
|
344
|
-
|
|
341
|
+
$[83] = keyboard;
|
|
342
|
+
$[84] = t37;
|
|
343
|
+
} else t37 = $[84];
|
|
344
|
+
let t38;
|
|
345
|
+
if ($[85] !== contents || $[86] !== customInteraction || $[87] !== focusRegistry) {
|
|
346
|
+
t38 = customInteraction ? /*#__PURE__*/ jsx(ModalBranchProvider, {
|
|
345
347
|
registry: focusRegistry,
|
|
346
348
|
children: contents
|
|
347
349
|
}) : contents;
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
$[
|
|
351
|
-
$[
|
|
352
|
-
} else
|
|
353
|
-
let
|
|
354
|
-
if ($[
|
|
355
|
-
|
|
350
|
+
$[85] = contents;
|
|
351
|
+
$[86] = customInteraction;
|
|
352
|
+
$[87] = focusRegistry;
|
|
353
|
+
$[88] = t38;
|
|
354
|
+
} else t38 = $[88];
|
|
355
|
+
let t39;
|
|
356
|
+
if ($[89] !== ariaDescribedBy || $[90] !== ariaLabel || $[91] !== contentStyle || $[92] !== forceMount || $[93] !== keepAlive || $[94] !== open || $[95] !== setContentRef || $[96] !== t33 || $[97] !== t34 || $[98] !== t35 || $[99] !== t36 || $[100] !== t37 || $[101] !== t38) {
|
|
357
|
+
t39 = /*#__PURE__*/ jsx(DialogContent, {
|
|
356
358
|
contentRef: setContentRef,
|
|
357
359
|
open: open,
|
|
358
360
|
keepAlive: keepAlive,
|
|
359
361
|
forceMount: forceMount,
|
|
360
362
|
"data-tao-modal": "",
|
|
361
363
|
style: contentStyle,
|
|
362
|
-
className:
|
|
364
|
+
className: t33,
|
|
363
365
|
"aria-modal": true,
|
|
364
366
|
"aria-label": ariaLabel,
|
|
365
|
-
...
|
|
367
|
+
...t34,
|
|
366
368
|
"aria-describedby": ariaDescribedBy,
|
|
367
|
-
onOpenAutoFocus:
|
|
368
|
-
onCloseAutoFocus:
|
|
369
|
-
onEscapeKeyDown:
|
|
369
|
+
onOpenAutoFocus: t35,
|
|
370
|
+
onCloseAutoFocus: t36,
|
|
371
|
+
onEscapeKeyDown: t37,
|
|
370
372
|
onPointerDownOutside: preventParentOutsideDismiss,
|
|
371
373
|
onInteractOutside: preventParentOutsideDismiss,
|
|
372
|
-
children:
|
|
374
|
+
children: t38
|
|
373
375
|
});
|
|
374
|
-
$[
|
|
375
|
-
$[
|
|
376
|
-
$[
|
|
377
|
-
$[
|
|
378
|
-
$[
|
|
379
|
-
$[
|
|
380
|
-
$[
|
|
381
|
-
$[
|
|
382
|
-
$[
|
|
383
|
-
$[
|
|
384
|
-
$[
|
|
385
|
-
$[
|
|
386
|
-
$[
|
|
387
|
-
$[
|
|
388
|
-
} else
|
|
389
|
-
const content =
|
|
390
|
-
let
|
|
391
|
-
if ($[
|
|
392
|
-
|
|
376
|
+
$[89] = ariaDescribedBy;
|
|
377
|
+
$[90] = ariaLabel;
|
|
378
|
+
$[91] = contentStyle;
|
|
379
|
+
$[92] = forceMount;
|
|
380
|
+
$[93] = keepAlive;
|
|
381
|
+
$[94] = open;
|
|
382
|
+
$[95] = setContentRef;
|
|
383
|
+
$[96] = t33;
|
|
384
|
+
$[97] = t34;
|
|
385
|
+
$[98] = t35;
|
|
386
|
+
$[99] = t36;
|
|
387
|
+
$[100] = t37;
|
|
388
|
+
$[101] = t38;
|
|
389
|
+
$[102] = t39;
|
|
390
|
+
} else t39 = $[102];
|
|
391
|
+
const content = t39;
|
|
392
|
+
let t40;
|
|
393
|
+
if ($[103] !== classNames?.mask || $[104] !== classNames?.overlay || $[105] !== closeOnMask || $[106] !== customInteraction || $[107] !== forceMount || $[108] !== keepAlive || $[109] !== mask || $[110] !== maskTransitionName || $[111] !== onClose || $[112] !== open || $[113] !== showMask || $[114] !== stylesProp?.mask || $[115] !== stylesProp?.overlay || $[116] !== zIndex) {
|
|
394
|
+
t40 = !customInteraction && (!keepAlive || open) && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Overlay, {
|
|
393
395
|
forceMount: forceMount,
|
|
394
396
|
"data-tao-modal-overlay": "",
|
|
395
397
|
className: cx(classNames?.overlay, classNames?.mask, maskTransitionName),
|
|
@@ -408,25 +410,25 @@ function Modal(t0) {
|
|
|
408
410
|
},
|
|
409
411
|
onClick: closeOnMask ? onClose : void 0
|
|
410
412
|
});
|
|
411
|
-
$[
|
|
412
|
-
$[
|
|
413
|
-
$[
|
|
414
|
-
$[
|
|
415
|
-
$[
|
|
416
|
-
$[
|
|
417
|
-
$[
|
|
418
|
-
$[
|
|
419
|
-
$[
|
|
420
|
-
$[
|
|
421
|
-
$[
|
|
422
|
-
$[
|
|
423
|
-
$[
|
|
424
|
-
$[
|
|
425
|
-
$[
|
|
426
|
-
} else
|
|
427
|
-
let
|
|
428
|
-
if ($[
|
|
429
|
-
|
|
413
|
+
$[103] = classNames?.mask;
|
|
414
|
+
$[104] = classNames?.overlay;
|
|
415
|
+
$[105] = closeOnMask;
|
|
416
|
+
$[106] = customInteraction;
|
|
417
|
+
$[107] = forceMount;
|
|
418
|
+
$[108] = keepAlive;
|
|
419
|
+
$[109] = mask;
|
|
420
|
+
$[110] = maskTransitionName;
|
|
421
|
+
$[111] = onClose;
|
|
422
|
+
$[112] = open;
|
|
423
|
+
$[113] = showMask;
|
|
424
|
+
$[114] = stylesProp?.mask;
|
|
425
|
+
$[115] = stylesProp?.overlay;
|
|
426
|
+
$[116] = zIndex;
|
|
427
|
+
$[117] = t40;
|
|
428
|
+
} else t40 = $[117];
|
|
429
|
+
let t41;
|
|
430
|
+
if ($[118] !== classNames?.mask || $[119] !== classNames?.overlay || $[120] !== closeOnMask || $[121] !== customInteraction || $[122] !== mask || $[123] !== maskTransitionName || $[124] !== onClose || $[125] !== open || $[126] !== showMask || $[127] !== stylesProp?.mask || $[128] !== stylesProp?.overlay || $[129] !== zIndex) {
|
|
431
|
+
t41 = customInteraction && showMask && open && /*#__PURE__*/ jsx("div", {
|
|
430
432
|
"data-tao-modal-overlay": "",
|
|
431
433
|
role: "presentation",
|
|
432
434
|
className: cx(classNames?.overlay, classNames?.mask, maskTransitionName),
|
|
@@ -440,50 +442,50 @@ function Modal(t0) {
|
|
|
440
442
|
},
|
|
441
443
|
onPointerDown: closeOnMask ? onClose : void 0
|
|
442
444
|
});
|
|
443
|
-
$[
|
|
444
|
-
$[
|
|
445
|
-
$[
|
|
446
|
-
$[
|
|
447
|
-
$[
|
|
448
|
-
$[
|
|
449
|
-
$[
|
|
450
|
-
$[
|
|
451
|
-
$[
|
|
452
|
-
$[
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
} else
|
|
457
|
-
const
|
|
458
|
-
const
|
|
459
|
-
const
|
|
460
|
-
const
|
|
461
|
-
let
|
|
462
|
-
if ($[
|
|
463
|
-
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
} else
|
|
468
|
-
const
|
|
469
|
-
const
|
|
470
|
-
const
|
|
471
|
-
let
|
|
472
|
-
if ($[
|
|
473
|
-
|
|
445
|
+
$[118] = classNames?.mask;
|
|
446
|
+
$[119] = classNames?.overlay;
|
|
447
|
+
$[120] = closeOnMask;
|
|
448
|
+
$[121] = customInteraction;
|
|
449
|
+
$[122] = mask;
|
|
450
|
+
$[123] = maskTransitionName;
|
|
451
|
+
$[124] = onClose;
|
|
452
|
+
$[125] = open;
|
|
453
|
+
$[126] = showMask;
|
|
454
|
+
$[127] = stylesProp?.mask;
|
|
455
|
+
$[128] = stylesProp?.overlay;
|
|
456
|
+
$[129] = zIndex;
|
|
457
|
+
$[130] = t41;
|
|
458
|
+
} else t41 = $[130];
|
|
459
|
+
const t42 = centered ? "" : void 0;
|
|
460
|
+
const t43 = open ? "" : void 0;
|
|
461
|
+
const t44 = classNames?.wrapper;
|
|
462
|
+
const t45 = wrapProps?.className;
|
|
463
|
+
let t46;
|
|
464
|
+
if ($[131] !== t44 || $[132] !== t45) {
|
|
465
|
+
t46 = cx(t44, t45);
|
|
466
|
+
$[131] = t44;
|
|
467
|
+
$[132] = t45;
|
|
468
|
+
$[133] = t46;
|
|
469
|
+
} else t46 = $[133];
|
|
470
|
+
const t47 = void 0 === zIndex ? void 0 : zIndex + 1;
|
|
471
|
+
const t48 = stylesProp?.wrapper;
|
|
472
|
+
const t49 = wrapProps?.style;
|
|
473
|
+
let t50;
|
|
474
|
+
if ($[134] !== t47 || $[135] !== t48 || $[136] !== t49) {
|
|
475
|
+
t50 = {
|
|
474
476
|
pointerEvents: "none",
|
|
475
|
-
zIndex:
|
|
476
|
-
...
|
|
477
|
-
...
|
|
477
|
+
zIndex: t47,
|
|
478
|
+
...t48,
|
|
479
|
+
...t49
|
|
478
480
|
};
|
|
479
|
-
$[
|
|
480
|
-
$[
|
|
481
|
-
$[
|
|
482
|
-
$[
|
|
483
|
-
} else
|
|
484
|
-
let
|
|
485
|
-
if ($[
|
|
486
|
-
|
|
481
|
+
$[134] = t47;
|
|
482
|
+
$[135] = t48;
|
|
483
|
+
$[136] = t49;
|
|
484
|
+
$[137] = t50;
|
|
485
|
+
} else t50 = $[137];
|
|
486
|
+
let t51;
|
|
487
|
+
if ($[138] !== closeAutoFocus || $[139] !== content || $[140] !== customInteraction || $[141] !== focusBranches || $[142] !== modalRender || $[143] !== open || $[144] !== openAutoFocus || $[145] !== scrollLock || $[146] !== trapFocus) {
|
|
488
|
+
t51 = customInteraction ? /*#__PURE__*/ jsx(ModalInteractionScope, {
|
|
487
489
|
open: open,
|
|
488
490
|
scrollLock: scrollLock,
|
|
489
491
|
trapFocus: trapFocus,
|
|
@@ -492,100 +494,110 @@ function Modal(t0) {
|
|
|
492
494
|
onCloseAutoFocus: closeAutoFocus,
|
|
493
495
|
children: modalRender ? modalRender(content) : content
|
|
494
496
|
}) : modalRender ? modalRender(content) : content;
|
|
495
|
-
$[
|
|
496
|
-
$[
|
|
497
|
-
$[
|
|
498
|
-
$[
|
|
499
|
-
$[
|
|
500
|
-
$[
|
|
501
|
-
$[
|
|
502
|
-
$[
|
|
503
|
-
$[
|
|
504
|
-
$[
|
|
505
|
-
} else
|
|
506
|
-
let
|
|
507
|
-
if ($[
|
|
508
|
-
|
|
497
|
+
$[138] = closeAutoFocus;
|
|
498
|
+
$[139] = content;
|
|
499
|
+
$[140] = customInteraction;
|
|
500
|
+
$[141] = focusBranches;
|
|
501
|
+
$[142] = modalRender;
|
|
502
|
+
$[143] = open;
|
|
503
|
+
$[144] = openAutoFocus;
|
|
504
|
+
$[145] = scrollLock;
|
|
505
|
+
$[146] = trapFocus;
|
|
506
|
+
$[147] = t51;
|
|
507
|
+
} else t51 = $[147];
|
|
508
|
+
let t52;
|
|
509
|
+
if ($[148] !== t42 || $[149] !== t43 || $[150] !== t46 || $[151] !== t50 || $[152] !== t51 || $[153] !== wrapProps) {
|
|
510
|
+
t52 = /*#__PURE__*/ jsx("div", {
|
|
509
511
|
...wrapProps,
|
|
510
512
|
role: "presentation",
|
|
511
513
|
"data-tao-modal-wrap": "",
|
|
512
|
-
"data-tao-centered":
|
|
513
|
-
"data-tao-open":
|
|
514
|
-
className:
|
|
515
|
-
style:
|
|
516
|
-
children:
|
|
514
|
+
"data-tao-centered": t42,
|
|
515
|
+
"data-tao-open": t43,
|
|
516
|
+
className: t46,
|
|
517
|
+
style: t50,
|
|
518
|
+
children: t51
|
|
517
519
|
});
|
|
518
|
-
$[
|
|
519
|
-
$[
|
|
520
|
-
$[
|
|
521
|
-
$[
|
|
522
|
-
$[
|
|
523
|
-
$[
|
|
524
|
-
$[
|
|
525
|
-
} else
|
|
526
|
-
let
|
|
527
|
-
if ($[
|
|
528
|
-
|
|
520
|
+
$[148] = t42;
|
|
521
|
+
$[149] = t43;
|
|
522
|
+
$[150] = t46;
|
|
523
|
+
$[151] = t50;
|
|
524
|
+
$[152] = t51;
|
|
525
|
+
$[153] = wrapProps;
|
|
526
|
+
$[154] = t52;
|
|
527
|
+
} else t52 = $[154];
|
|
528
|
+
let t53;
|
|
529
|
+
if ($[155] !== t40 || $[156] !== t41 || $[157] !== t52) {
|
|
530
|
+
t53 = /*#__PURE__*/ jsxs(TaoPortalScope, {
|
|
529
531
|
children: [
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
532
|
+
t40,
|
|
533
|
+
t41,
|
|
534
|
+
t52
|
|
533
535
|
]
|
|
534
536
|
});
|
|
535
|
-
$[
|
|
536
|
-
$[
|
|
537
|
-
$[
|
|
538
|
-
$[
|
|
539
|
-
} else
|
|
540
|
-
const layer =
|
|
537
|
+
$[155] = t40;
|
|
538
|
+
$[156] = t41;
|
|
539
|
+
$[157] = t52;
|
|
540
|
+
$[158] = t53;
|
|
541
|
+
} else t53 = $[158];
|
|
542
|
+
const layer = t53;
|
|
541
543
|
let container;
|
|
542
544
|
if (getContainer && "u" > typeof document) {
|
|
543
|
-
let
|
|
544
|
-
if ($[
|
|
545
|
-
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
548
|
-
} else
|
|
549
|
-
container =
|
|
545
|
+
let t54;
|
|
546
|
+
if ($[159] !== getContainer) {
|
|
547
|
+
t54 = "string" == typeof getContainer ? document.querySelector(getContainer) ?? void 0 : "function" == typeof getContainer ? getContainer() : getContainer;
|
|
548
|
+
$[159] = getContainer;
|
|
549
|
+
$[160] = t54;
|
|
550
|
+
} else t54 = $[160];
|
|
551
|
+
container = t54;
|
|
550
552
|
if (!container) throw new Error(`Modal getContainer did not resolve an element: ${getContainer}`);
|
|
551
553
|
}
|
|
552
|
-
const
|
|
553
|
-
let
|
|
554
|
-
if ($[
|
|
555
|
-
|
|
554
|
+
const t54 = !customInteraction;
|
|
555
|
+
let t55;
|
|
556
|
+
if ($[161] !== onClose) {
|
|
557
|
+
t55 = (value)=>{
|
|
556
558
|
if (!value) onClose?.();
|
|
557
559
|
};
|
|
558
|
-
$[
|
|
559
|
-
$[
|
|
560
|
-
} else
|
|
561
|
-
let
|
|
562
|
-
if ($[
|
|
563
|
-
|
|
560
|
+
$[161] = onClose;
|
|
561
|
+
$[162] = t55;
|
|
562
|
+
} else t55 = $[162];
|
|
563
|
+
let t56;
|
|
564
|
+
if ($[163] !== container || $[164] !== forceMount || $[165] !== getContainer || $[166] !== layer) {
|
|
565
|
+
t56 = false === getContainer ? layer : /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Portal, {
|
|
564
566
|
forceMount: forceMount,
|
|
565
567
|
container: container,
|
|
566
568
|
children: layer
|
|
567
569
|
});
|
|
568
|
-
$[
|
|
569
|
-
$[
|
|
570
|
-
$[
|
|
571
|
-
$[
|
|
572
|
-
$[
|
|
573
|
-
} else
|
|
574
|
-
let
|
|
575
|
-
if ($[
|
|
576
|
-
|
|
570
|
+
$[163] = container;
|
|
571
|
+
$[164] = forceMount;
|
|
572
|
+
$[165] = getContainer;
|
|
573
|
+
$[166] = layer;
|
|
574
|
+
$[167] = t56;
|
|
575
|
+
} else t56 = $[167];
|
|
576
|
+
let t57;
|
|
577
|
+
if ($[168] !== open || $[169] !== t54 || $[170] !== t55 || $[171] !== t56) {
|
|
578
|
+
t57 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Root, {
|
|
577
579
|
open: open,
|
|
578
|
-
modal:
|
|
579
|
-
onOpenChange:
|
|
580
|
-
children:
|
|
580
|
+
modal: t54,
|
|
581
|
+
onOpenChange: t55,
|
|
582
|
+
children: t56
|
|
583
|
+
});
|
|
584
|
+
$[168] = open;
|
|
585
|
+
$[169] = t54;
|
|
586
|
+
$[170] = t55;
|
|
587
|
+
$[171] = t56;
|
|
588
|
+
$[172] = t57;
|
|
589
|
+
} else t57 = $[172];
|
|
590
|
+
let t58;
|
|
591
|
+
if ($[173] !== direction || $[174] !== t57) {
|
|
592
|
+
t58 = /*#__PURE__*/ jsx(TaoProvider, {
|
|
593
|
+
direction: direction,
|
|
594
|
+
children: t57
|
|
581
595
|
});
|
|
582
|
-
$[
|
|
583
|
-
$[
|
|
584
|
-
$[
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
} else t59 = $[169];
|
|
588
|
-
return t59;
|
|
596
|
+
$[173] = direction;
|
|
597
|
+
$[174] = t57;
|
|
598
|
+
$[175] = t58;
|
|
599
|
+
} else t58 = $[175];
|
|
600
|
+
return t58;
|
|
589
601
|
}
|
|
590
602
|
function _temp2(event_2) {
|
|
591
603
|
return event_2.preventDefault();
|