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