@rockshin/tao-ui 0.0.48 → 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.
Files changed (143) hide show
  1. package/dist/components/affix/affix.js +20 -16
  2. package/dist/components/alert/alert.js +114 -99
  3. package/dist/components/app/app-modals.js +134 -96
  4. package/dist/components/app/app-notices.js +39 -23
  5. package/dist/components/auto-complete/auto-complete.js +21 -7
  6. package/dist/components/avatar/avatar.js +31 -11
  7. package/dist/components/badge/badge.css +1 -1
  8. package/dist/components/badge/badge.js +72 -257
  9. package/dist/components/border-beam/border-beam.js +21 -17
  10. package/dist/components/breadcrumb/breadcrumb.js +178 -159
  11. package/dist/components/button/button.js +61 -53
  12. package/dist/components/calendar/calendar.js +6 -4
  13. package/dist/components/card/card.js +24 -8
  14. package/dist/components/carousel/carousel.d.ts +1 -1
  15. package/dist/components/carousel/carousel.js +105 -68
  16. package/dist/components/cascader/cascader.js +54 -19
  17. package/dist/components/checkbox/checkbox.css +13 -2
  18. package/dist/components/checkbox/checkbox.d.ts +2 -0
  19. package/dist/components/checkbox/checkbox.js +320 -229
  20. package/dist/components/collapse/collapse-panels.d.ts +1 -1
  21. package/dist/components/collapse/collapse-panels.js +122 -113
  22. package/dist/components/collapse/collapse.js +98 -63
  23. package/dist/components/color-picker/color-picker.js +539 -441
  24. package/dist/components/color-picker/color.js +1 -1
  25. package/dist/components/context-menu/context-menu.d.ts +1 -1
  26. package/dist/components/context-menu/context-menu.js +108 -68
  27. package/dist/components/date-picker/calendar/calendar-grid.js +42 -39
  28. package/dist/components/date-picker/calendar/month-grid.d.ts +8 -1
  29. package/dist/components/date-picker/calendar/month-grid.js +79 -37
  30. package/dist/components/date-picker/calendar/time-panel.d.ts +2 -1
  31. package/dist/components/date-picker/calendar/time-panel.js +94 -89
  32. package/dist/components/date-picker/calendar/year-grid.d.ts +8 -1
  33. package/dist/components/date-picker/calendar/year-grid.js +66 -35
  34. package/dist/components/date-picker/date-picker.css +24 -1
  35. package/dist/components/date-picker/date-picker.js +99 -53
  36. package/dist/components/date-picker/presets.d.ts +2 -1
  37. package/dist/components/date-picker/presets.js +27 -24
  38. package/dist/components/date-picker/range-picker.js +308 -153
  39. package/dist/components/descriptions/descriptions.js +7 -3
  40. package/dist/components/divider/divider.css +1 -1
  41. package/dist/components/divider/divider.js +1 -1
  42. package/dist/components/drawer/drawer.js +201 -369
  43. package/dist/components/dropdown/dropdown.d.ts +1 -1
  44. package/dist/components/dropdown/dropdown.js +183 -279
  45. package/dist/components/empty/empty.js +57 -78
  46. package/dist/components/float-button/float-button.d.ts +1 -0
  47. package/dist/components/float-button/float-button.js +47 -30
  48. package/dist/components/form/field-control.d.ts +4 -2
  49. package/dist/components/form/field-control.js +17 -9
  50. package/dist/components/form/form-context.d.ts +8 -2
  51. package/dist/components/form/form-context.js +2 -1
  52. package/dist/components/form/form-item.js +85 -63
  53. package/dist/components/form/use-form.d.ts +2 -1
  54. package/dist/components/form/use-form.js +2 -1
  55. package/dist/components/form-field/form-field-view.d.ts +3 -1
  56. package/dist/components/form-field/form-field-view.js +194 -141
  57. package/dist/components/form-section/form-section.d.ts +1 -1
  58. package/dist/components/form-section/form-section.js +52 -45
  59. package/dist/components/image/image.js +585 -477
  60. package/dist/components/input/base-input.js +8 -9
  61. package/dist/components/input/input-shared.d.ts +5 -2
  62. package/dist/components/input/input-shared.js +42 -18
  63. package/dist/components/input/otp.js +236 -217
  64. package/dist/components/input/password.js +2 -1
  65. package/dist/components/input/search.js +8 -7
  66. package/dist/components/list/list-pagination.js +41 -36
  67. package/dist/components/list/list.js +141 -125
  68. package/dist/components/listy/listy.js +175 -106
  69. package/dist/components/masonry/masonry.js +108 -85
  70. package/dist/components/mentions/mentions.js +12 -3
  71. package/dist/components/menu/menu-render.d.ts +9 -3
  72. package/dist/components/menu/menu-render.js +99 -36
  73. package/dist/components/modal/confirm-dialog.js +10 -4
  74. package/dist/components/modal/confirm.js +3 -7
  75. package/dist/components/modal/index.js +9 -3
  76. package/dist/components/modal/modal.js +390 -365
  77. package/dist/components/pagination/pagination.js +105 -96
  78. package/dist/components/popconfirm/popconfirm.d.ts +1 -1
  79. package/dist/components/popconfirm/popconfirm.js +219 -168
  80. package/dist/components/popover/popover.js +330 -243
  81. package/dist/components/progress/progress.css +2 -2
  82. package/dist/components/progress/progress.js +232 -458
  83. package/dist/components/qr-code/qr-code.js +72 -66
  84. package/dist/components/radio/radio.css +15 -4
  85. package/dist/components/radio/radio.d.ts +2 -1
  86. package/dist/components/radio/radio.js +260 -198
  87. package/dist/components/rate/rate.js +173 -113
  88. package/dist/components/scroll-area/scroll-area.js +241 -211
  89. package/dist/components/segmented/segmented.js +73 -41
  90. package/dist/components/select/mobile-select.d.ts +2 -1
  91. package/dist/components/select/mobile-select.js +24 -13
  92. package/dist/components/select/select-searchable-list.d.ts +2 -1
  93. package/dist/components/select/select-searchable-list.js +2 -3
  94. package/dist/components/select/select.js +49 -25
  95. package/dist/components/select/use-select-selection.d.ts +1 -1
  96. package/dist/components/select/use-select-selection.js +7 -4
  97. package/dist/components/skeleton/skeleton.js +56 -48
  98. package/dist/components/slider/slider.js +87 -212
  99. package/dist/components/sonner/sonner.js +109 -93
  100. package/dist/components/spinner/spinner.js +147 -138
  101. package/dist/components/splitter/splitter.js +222 -159
  102. package/dist/components/statistic/statistic.js +7 -6
  103. package/dist/components/steps/steps.js +88 -81
  104. package/dist/components/steps/use-display-steps.js +1 -1
  105. package/dist/components/switch/switch.js +89 -89
  106. package/dist/components/table/table-filter.js +66 -56
  107. package/dist/components/table/table-icons.d.ts +2 -1
  108. package/dist/components/table/table-icons.js +11 -9
  109. package/dist/components/table/table-model.js +1 -1
  110. package/dist/components/table/table.js +107 -83
  111. package/dist/components/table/use-table-data.d.ts +6 -3
  112. package/dist/components/table/use-table-data.js +166 -130
  113. package/dist/components/tabs/tabs.css +1 -1
  114. package/dist/components/tabs/tabs.js +236 -179
  115. package/dist/components/tag/tag.d.ts +2 -2
  116. package/dist/components/tag/tag.js +111 -108
  117. package/dist/components/textarea/textarea.js +22 -17
  118. package/dist/components/time-picker/time-picker.js +5 -3
  119. package/dist/components/timeline/timeline.css +6 -1
  120. package/dist/components/timeline/timeline.js +21 -11
  121. package/dist/components/tooltip/tooltip.d.ts +2 -2
  122. package/dist/components/tooltip/tooltip.js +123 -233
  123. package/dist/components/tour/tour.css +4 -0
  124. package/dist/components/tour/tour.js +400 -331
  125. package/dist/components/transfer/transfer-list.js +29 -11
  126. package/dist/components/transfer/transfer-parts.js +1 -1
  127. package/dist/components/transfer/transfer-types.d.ts +1 -0
  128. package/dist/components/transfer/transfer.js +29 -14
  129. package/dist/components/tree/tree-keyboard.d.ts +1 -1
  130. package/dist/components/tree/tree-keyboard.js +5 -3
  131. package/dist/components/tree/tree.js +74 -59
  132. package/dist/components/tree-select/select-engine.d.ts +3 -2
  133. package/dist/components/tree-select/select-engine.js +18 -16
  134. package/dist/components/tree-select/tree-select.js +21 -5
  135. package/dist/components/upload/upload.css +8 -0
  136. package/dist/components/upload/upload.js +160 -72
  137. package/dist/components/watermark/watermark.js +36 -29
  138. package/dist/number-input/use-number-input.js +129 -90
  139. package/dist/number-input/validate.js +32 -5
  140. package/dist/provider/merge-locale.js +12 -9
  141. package/dist/provider/tao-provider.d.ts +3 -1
  142. package/dist/provider/tao-provider.js +123 -86
  143. 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(176);
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] !== cancelText || $[16] !== locale || $[17] !== onClose) {
96
- t17 = ()=>/*#__PURE__*/ jsx(Button, {
97
- variant: "secondary",
98
- onClick: onClose,
99
- "data-tao-modal-action": "cancel",
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] = cancelText;
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
- 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 ($[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];
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 ($[29] !== t19 || $[30] !== t20) {
142
- t21 = /*#__PURE__*/ jsxs(Fragment, {
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
- t19,
145
- t20
163
+ /*#__PURE__*/ jsx(CancelBtn, {}),
164
+ /*#__PURE__*/ jsx(OkBtn, {})
146
165
  ]
147
166
  });
148
- $[29] = t19;
149
- $[30] = t20;
150
- $[31] = t21;
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 t22;
157
- if ($[32] !== CancelBtn || $[33] !== OkBtn || $[34] !== defaultFooter || $[35] !== footer) {
158
- t22 = footer(defaultFooter, {
159
- OkBtn,
160
- CancelBtn
173
+ let t25;
174
+ if ($[30] !== footer) {
175
+ t25 = footer(defaultFooter, {
176
+ OkBtn: OkBtn,
177
+ CancelBtn: CancelBtn
161
178
  });
162
- $[32] = CancelBtn;
163
- $[33] = OkBtn;
164
- $[34] = defaultFooter;
165
- $[35] = footer;
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 t22;
180
- if ($[37] !== autoFocusButton || $[38] !== focusable) {
181
- t22 = (event)=>{
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) event.preventDefault();
198
+ if (null === button) event_1.preventDefault();
185
199
  else if (button) {
186
- event.preventDefault();
187
- contentRef.current?.querySelector(`[data-tao-modal-action="${button}"]`)?.focus();
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
- $[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)=>{
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) event_0.preventDefault();
214
+ if (void 0 !== restore) event_2.preventDefault();
200
215
  if (restore) restoreFocusRef.current?.focus();
201
216
  };
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", {
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
- $[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;
262
- let t28;
263
- if ($[58] !== children || $[59] !== t26 || $[60] !== t27) {
264
- t28 = /*#__PURE__*/ jsx("div", {
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: t26,
267
- style: t27,
281
+ className: t29,
282
+ style: t30,
268
283
  children: children
269
284
  });
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", {
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: footerContent
296
+ children: /*#__PURE__*/ jsx(ModalActionContext.Provider, {
297
+ value: {
298
+ ok: okButton,
299
+ cancel: cancelButton
300
+ },
301
+ children: footerContent
302
+ })
282
303
  });
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, {
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
- t24,
293
- t28,
294
- t29
315
+ t27,
316
+ t31,
317
+ t32
295
318
  ]
296
319
  });
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 ? {
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 ($[80] !== closeAutoFocus || $[81] !== customInteraction) {
331
- t36 = customInteraction ? _temp2 : closeAutoFocus;
332
- $[80] = closeAutoFocus;
333
- $[81] = customInteraction;
334
- $[82] = t36;
335
- } else t36 = $[82];
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 ($[83] !== keyboard) {
338
- t37 = (event_3)=>{
339
- if (!keyboard) event_3.preventDefault();
340
- };
341
- $[83] = keyboard;
342
- $[84] = t37;
343
- } else t37 = $[84];
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 ($[85] !== contents || $[86] !== customInteraction || $[87] !== focusRegistry) {
346
- t38 = customInteraction ? /*#__PURE__*/ jsx(ModalBranchProvider, {
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
- $[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, {
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: t33,
387
+ className: t36,
365
388
  "aria-modal": true,
366
389
  "aria-label": ariaLabel,
367
- ...t34,
390
+ ...t37,
368
391
  "aria-describedby": ariaDescribedBy,
369
- onOpenAutoFocus: t35,
370
- onCloseAutoFocus: t36,
371
- onEscapeKeyDown: t37,
392
+ onOpenAutoFocus: t38,
393
+ onCloseAutoFocus: t39,
394
+ onEscapeKeyDown: t40,
372
395
  onPointerDownOutside: preventParentOutsideDismiss,
373
396
  onInteractOutside: preventParentOutsideDismiss,
374
- children: t38
397
+ children: t41
375
398
  });
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, {
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
- $[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", {
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: closeOnMask ? onClose : void 0
466
+ onPointerDown: (event_6)=>{
467
+ if (closeOnMask && 0 === event_6.button) onClose?.();
468
+ }
444
469
  });
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 = {
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: t47,
478
- ...t48,
479
- ...t49
502
+ zIndex: t50,
503
+ ...t51,
504
+ ...t52
480
505
  };
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, {
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
- $[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", {
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": t42,
515
- "data-tao-open": t43,
516
- className: t46,
517
- style: t50,
518
- children: t51
539
+ "data-tao-centered": t45,
540
+ "data-tao-open": t46,
541
+ className: t49,
542
+ style: t53,
543
+ children: t54
519
544
  });
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, {
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
- t40,
533
- t41,
534
- t52
557
+ t43,
558
+ t44,
559
+ t55
535
560
  ]
536
561
  });
537
- $[155] = t40;
538
- $[156] = t41;
539
- $[157] = t52;
540
- $[158] = t53;
541
- } else t53 = $[158];
542
- const layer = t53;
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 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;
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 t54 = !customInteraction;
555
- let t55;
556
- if ($[161] !== onClose) {
557
- t55 = (value)=>{
579
+ const t57 = !customInteraction;
580
+ let t58;
581
+ if ($[158] !== onClose) {
582
+ t58 = (value)=>{
558
583
  if (!value) onClose?.();
559
584
  };
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, {
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
- $[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, {
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: t54,
581
- onOpenChange: t55,
582
- children: t56
605
+ modal: t57,
606
+ onOpenChange: t58,
607
+ children: t59
583
608
  });
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, {
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: t57
619
+ children: t60
595
620
  });
596
- $[173] = direction;
597
- $[174] = t57;
598
- $[175] = t58;
599
- } else t58 = $[175];
600
- return t58;
621
+ $[170] = direction;
622
+ $[171] = t60;
623
+ $[172] = t61;
624
+ } else t61 = $[172];
625
+ return t61;
601
626
  }
602
- function _temp2(event_2) {
603
- return event_2.preventDefault();
627
+ function _temp2(event_4) {
628
+ return event_4.preventDefault();
604
629
  }
605
- function _temp(event_1) {
606
- return event_1.preventDefault();
630
+ function _temp(event_3) {
631
+ return event_3.preventDefault();
607
632
  }
608
633
  function ModalInteractionScope(t0) {
609
634
  const $ = c(12);