@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.
Files changed (152) hide show
  1. package/README.md +9 -1
  2. package/component-manifest.json +38 -4
  3. package/dist/components/alert/alert.js +20 -17
  4. package/dist/components/auto-complete/auto-complete.js +12 -3
  5. package/dist/components/avatar/avatar.js +2 -1
  6. package/dist/components/breadcrumb/breadcrumb.css +4 -0
  7. package/dist/components/breadcrumb/breadcrumb.js +82 -77
  8. package/dist/components/calendar/calendar.d.ts +1 -1
  9. package/dist/components/calendar/calendar.js +51 -33
  10. package/dist/components/card/card-tabs.js +204 -182
  11. package/dist/components/card/card.js +1 -1
  12. package/dist/components/carousel/carousel.js +11 -5
  13. package/dist/components/cascader/cascader.js +16 -4
  14. package/dist/components/collapse/collapse.css +8 -0
  15. package/dist/components/color-picker/color-picker.js +273 -269
  16. package/dist/components/context-menu/context-menu.d.ts +2 -1
  17. package/dist/components/context-menu/context-menu.js +57 -44
  18. package/dist/components/date-picker/calendar/calendar-grid.js +13 -6
  19. package/dist/components/date-picker/calendar/use-calendar.d.ts +2 -2
  20. package/dist/components/date-picker/calendar/use-calendar.js +2 -3
  21. package/dist/components/date-picker/date-localization.d.ts +3 -0
  22. package/dist/components/date-picker/date-localization.js +76 -0
  23. package/dist/components/date-picker/date-picker.css +4 -0
  24. package/dist/components/date-picker/date-picker.d.ts +1 -0
  25. package/dist/components/date-picker/date-picker.js +48 -30
  26. package/dist/components/date-picker/range-picker.d.ts +1 -0
  27. package/dist/components/date-picker/range-picker.js +41 -23
  28. package/dist/components/drawer/drawer.d.ts +2 -1
  29. package/dist/components/drawer/drawer.js +32 -20
  30. package/dist/components/dropdown/dropdown.d.ts +1 -0
  31. package/dist/components/dropdown/dropdown.js +160 -143
  32. package/dist/components/float-button/float-button.js +3 -2
  33. package/dist/components/form/form.js +88 -103
  34. package/dist/components/image/image.js +202 -137
  35. package/dist/components/list/list-pagination.js +148 -147
  36. package/dist/components/mentions/mentions.js +6 -2
  37. package/dist/components/modal/confirm-dialog.js +4 -2
  38. package/dist/components/modal/modal.d.ts +2 -1
  39. package/dist/components/modal/modal.js +387 -375
  40. package/dist/components/pagination/pagination.css +4 -0
  41. package/dist/components/pagination/pagination.js +115 -110
  42. package/dist/components/popconfirm/popconfirm.js +109 -107
  43. package/dist/components/popover/popover.d.ts +2 -1
  44. package/dist/components/popover/popover.js +185 -176
  45. package/dist/components/qr-code/qr-code.js +22 -21
  46. package/dist/components/rate/rate.js +114 -88
  47. package/dist/components/scroll-area/scroll-area.js +132 -120
  48. package/dist/components/segmented/segmented.js +52 -29
  49. package/dist/components/select/mobile-select.d.ts +3 -2
  50. package/dist/components/select/mobile-select.js +54 -48
  51. package/dist/components/select/select-types.d.ts +1 -0
  52. package/dist/components/select/select.js +19 -6
  53. package/dist/components/slider/slider.js +136 -133
  54. package/dist/components/sonner/sonner.js +10 -10
  55. package/dist/components/spinner/spinner.js +1 -1
  56. package/dist/components/splitter/splitter.css +4 -0
  57. package/dist/components/splitter/splitter.js +29 -24
  58. package/dist/components/statistic/statistic.d.ts +2 -0
  59. package/dist/components/statistic/statistic.js +203 -187
  60. package/dist/components/table/table-filter.js +61 -52
  61. package/dist/components/table/table-icons.js +3 -1
  62. package/dist/components/table/table.css +29 -11
  63. package/dist/components/table/table.d.ts +1 -1
  64. package/dist/components/table/table.js +384 -547
  65. package/dist/components/tabs/tabs.js +3 -2
  66. package/dist/components/tag/tag.js +22 -19
  67. package/dist/components/time-picker/time-picker.d.ts +0 -1
  68. package/dist/components/time-picker/time-picker.js +160 -103
  69. package/dist/components/tooltip/tooltip.d.ts +2 -1
  70. package/dist/components/tooltip/tooltip.js +82 -71
  71. package/dist/components/transfer/transfer-list.js +224 -488
  72. package/dist/components/transfer/transfer-parts.js +14 -4
  73. package/dist/components/transfer/transfer-types.d.ts +1 -0
  74. package/dist/components/transfer/transfer.js +23 -20
  75. package/dist/components/tree/tree-keyboard.d.ts +6 -0
  76. package/dist/components/tree/tree-keyboard.js +27 -0
  77. package/dist/components/tree/tree.js +14 -3
  78. package/dist/components/tree-select/select-engine.d.ts +2 -1
  79. package/dist/components/tree-select/select-engine.js +23 -15
  80. package/dist/components/tree-select/tree-select.js +20 -10
  81. package/dist/components/upload/upload.js +30 -26
  82. package/dist/docs/component-docs.d.ts +13 -2
  83. package/dist/docs/components/headless-input-number.doc.d.ts +5 -0
  84. package/dist/docs/components/headless-input-number.doc.js +7 -0
  85. package/dist/docs/components/input-number.doc.d.ts +5 -0
  86. package/dist/docs/components/input-number.doc.js +7 -0
  87. package/dist/docs/components/statistic.doc.d.ts +5 -0
  88. package/dist/docs/components/statistic.doc.js +7 -0
  89. package/dist/docs/components/tao-provider.doc.d.ts +8 -2
  90. package/dist/docs/components/tao-provider.doc.js +16 -3
  91. package/dist/docs/components/tooltip.doc.d.ts +2 -2
  92. package/dist/entries/provider.d.ts +2 -1
  93. package/dist/entries/provider.js +1 -0
  94. package/dist/index.d.ts +2 -1
  95. package/dist/index.js +1 -0
  96. package/dist/locales/ar-EG.d.ts +3 -0
  97. package/dist/locales/ar-EG.js +199 -0
  98. package/dist/locales/create-locale.d.ts +41 -0
  99. package/dist/locales/create-locale.js +88 -0
  100. package/dist/locales/de-DE.d.ts +3 -0
  101. package/dist/locales/de-DE.js +195 -0
  102. package/dist/locales/en-US.d.ts +2 -0
  103. package/dist/locales/en-US.js +194 -0
  104. package/dist/locales/es-ES.d.ts +3 -0
  105. package/dist/locales/es-ES.js +195 -0
  106. package/dist/locales/fr-FR.d.ts +3 -0
  107. package/dist/locales/fr-FR.js +195 -0
  108. package/dist/locales/hi-IN.d.ts +3 -0
  109. package/dist/locales/hi-IN.js +194 -0
  110. package/dist/locales/id-ID.d.ts +3 -0
  111. package/dist/locales/id-ID.js +194 -0
  112. package/dist/locales/index.d.ts +18 -0
  113. package/dist/locales/index.js +17 -0
  114. package/dist/locales/it-IT.d.ts +3 -0
  115. package/dist/locales/it-IT.js +195 -0
  116. package/dist/locales/ja-JP.d.ts +3 -0
  117. package/dist/locales/ja-JP.js +194 -0
  118. package/dist/locales/ko-KR.d.ts +3 -0
  119. package/dist/locales/ko-KR.js +194 -0
  120. package/dist/locales/pt-BR.d.ts +3 -0
  121. package/dist/locales/pt-BR.js +195 -0
  122. package/dist/locales/ru-RU.d.ts +3 -0
  123. package/dist/locales/ru-RU.js +197 -0
  124. package/dist/locales/th-TH.d.ts +3 -0
  125. package/dist/locales/th-TH.js +194 -0
  126. package/dist/locales/tr-TR.d.ts +3 -0
  127. package/dist/locales/tr-TR.js +194 -0
  128. package/dist/locales/types.d.ts +176 -0
  129. package/dist/locales/types.js +0 -0
  130. package/dist/locales/vi-VN.d.ts +3 -0
  131. package/dist/locales/vi-VN.js +194 -0
  132. package/dist/locales/zh-CN.d.ts +3 -0
  133. package/dist/locales/zh-CN.js +194 -0
  134. package/dist/locales/zh-TW.d.ts +3 -0
  135. package/dist/locales/zh-TW.js +194 -0
  136. package/dist/number-input/format.d.ts +4 -3
  137. package/dist/number-input/format.js +9 -7
  138. package/dist/number-input/locale.d.ts +19 -0
  139. package/dist/number-input/locale.js +44 -0
  140. package/dist/number-input/number-input.js +1 -0
  141. package/dist/number-input/use-number-input.d.ts +2 -0
  142. package/dist/number-input/use-number-input.js +180 -176
  143. package/dist/provider/locale.d.ts +3 -65
  144. package/dist/provider/locale.js +2 -146
  145. package/dist/provider/merge-locale.d.ts +8 -0
  146. package/dist/provider/merge-locale.js +53 -0
  147. package/dist/provider/tao-provider.d.ts +16 -5
  148. package/dist/provider/tao-provider.js +200 -92
  149. package/dist/utils/scroll-left.d.ts +3 -0
  150. package/dist/utils/scroll-left.js +7 -0
  151. package/llms.txt +3 -3
  152. 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(170);
18
- const { open, onClose, title, footer, onOk, okText: t1, cancelText: t2, confirmLoading, okButtonProps, cancelButtonProps, width: t3, centered: t4, closable: t5, maskClosable: t6, keyboard: t7, getContainer, mask: t8, zIndex, scrollLock: t9, closeIcon, modalRender, wrapProps, transitionName, maskTransitionName, focusTriggerAfterClose, autoFocusButton, focusable, afterClose, destroyOnHidden: t10, children, classNames, styles: stylesProp, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy } = t0;
19
- const okText = void 0 === t1 ? "OK" : t1;
20
- const cancelText = void 0 === t2 ? "Cancel" : t2;
21
- const width = void 0 === t3 ? 520 : t3;
22
- const centered = void 0 === t4 ? true : t4;
23
- const closable = void 0 === t5 ? true : t5;
24
- const maskClosable = void 0 === t6 ? true : t6;
25
- const keyboard = void 0 === t7 ? true : t7;
26
- const mask = void 0 === t8 ? true : t8;
27
- const scrollLock = void 0 === t9 ? true : t9;
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 t11;
32
+ let t9;
34
33
  if ($[0] !== watermarkRef) {
35
- t11 = (node)=>{
34
+ t9 = (node)=>{
36
35
  contentRef.current = node;
37
36
  watermarkRef(node);
38
37
  };
39
38
  $[0] = watermarkRef;
40
- $[1] = t11;
41
- } else t11 = $[1];
42
- const setContentRef = t11;
39
+ $[1] = t9;
40
+ } else t9 = $[1];
41
+ const setContentRef = t9;
43
42
  const prevOpen = useRef(open);
44
- let t12;
45
- let t13;
43
+ let t10;
44
+ let t11;
46
45
  if ($[2] !== afterClose || $[3] !== closable || $[4] !== open) {
47
- t12 = ()=>{
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
- t13 = [
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] = t12;
63
- $[6] = t13;
61
+ $[5] = t10;
62
+ $[6] = t11;
64
63
  } else {
65
- t12 = $[5];
66
- t13 = $[6];
64
+ t10 = $[5];
65
+ t11 = $[6];
67
66
  }
68
- useEffect(t12, t13);
67
+ useEffect(t10, t11);
69
68
  const screens = useBreakpoint();
70
- let t14;
69
+ let t12;
71
70
  if ($[7] !== screens || $[8] !== width) {
72
- t14 = resolveResponsiveValue(width, screens) ?? 520;
71
+ t12 = resolveResponsiveValue(width, screens) ?? 520;
73
72
  $[7] = screens;
74
73
  $[8] = width;
75
- $[9] = t14;
76
- } else t14 = $[9];
77
- const resolvedWidth = t14;
78
- const t15 = "number" == typeof resolvedWidth ? `${resolvedWidth}px` : resolvedWidth;
79
- const t16 = stylesProp?.root;
80
- const t17 = stylesProp?.container;
81
- let t18;
82
- if ($[10] !== t15 || $[11] !== t16 || $[12] !== t17) {
83
- t18 = {
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: t15,
86
- ...t16,
87
- ...t17
84
+ width: t13,
85
+ ...t14,
86
+ ...t15
88
87
  };
89
- $[10] = t15;
90
- $[11] = t16;
91
- $[12] = t17;
92
- $[13] = t18;
93
- } else t18 = $[13];
94
- const contentStyle = t18;
95
- let t19;
96
- if ($[14] !== cancelButtonProps || $[15] !== cancelText || $[16] !== onClose) {
97
- t19 = ()=>/*#__PURE__*/ jsx(Button, {
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] = onClose;
107
- $[17] = t19;
108
- } else t19 = $[17];
109
- const CancelBtn = t19;
110
- let t20;
111
- if ($[18] !== confirmLoading || $[19] !== okButtonProps || $[20] !== okText || $[21] !== onOk) {
112
- t20 = ()=>/*#__PURE__*/ jsx(Button, {
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
- $[18] = confirmLoading;
121
- $[19] = okButtonProps;
122
- $[20] = okText;
123
- $[21] = onOk;
124
- $[22] = t20;
125
- } else t20 = $[22];
126
- const OkBtn = t20;
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 ($[23] !== CancelBtn) {
129
- t21 = /*#__PURE__*/ jsx(CancelBtn, {});
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
- t21,
144
- t22
144
+ t19,
145
+ t20
145
146
  ]
146
147
  });
147
- $[27] = t21;
148
- $[28] = t22;
149
- $[29] = t23;
150
- } else t23 = $[29];
151
- const defaultFooter = t23;
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 t24;
156
- if ($[30] !== CancelBtn || $[31] !== OkBtn || $[32] !== defaultFooter || $[33] !== footer) {
157
- t24 = footer(defaultFooter, {
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
- $[30] = CancelBtn;
162
- $[31] = OkBtn;
163
- $[32] = defaultFooter;
164
- $[33] = footer;
165
- $[34] = t24;
166
- } else t24 = $[34];
167
- footerContent = t24;
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 t24;
179
- if ($[35] !== autoFocusButton || $[36] !== focusable) {
180
- t24 = (event)=>{
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
- $[35] = autoFocusButton;
190
- $[36] = focusable;
191
- $[37] = t24;
192
- } else t24 = $[37];
193
- const openAutoFocus = t24;
194
- let t25;
195
- if ($[38] !== focusTriggerAfterClose || $[39] !== focusable?.focusTriggerAfterClose) {
196
- t25 = (event_0)=>{
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
- $[38] = focusTriggerAfterClose;
202
- $[39] = focusable?.focusTriggerAfterClose;
203
- $[40] = t25;
204
- } else t25 = $[40];
205
- const closeAutoFocus = t25;
206
- let t26;
207
- if ($[41] !== classNames?.close || $[42] !== classNames?.header || $[43] !== classNames?.title || $[44] !== closeConfig || $[45] !== mergedCloseIcon || $[46] !== onClose || $[47] !== showClose || $[48] !== stylesProp?.close || $[49] !== stylesProp?.header || $[50] !== stylesProp?.title || $[51] !== title) {
208
- t26 = (null != title || showClose) && /*#__PURE__*/ jsxs("div", {
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"] ?? "Close",
235
+ "aria-label": closeConfig?.["aria-label"] ?? locale.close,
235
236
  children: mergedCloseIcon ?? /*#__PURE__*/ jsx(CloseIcon, {})
236
237
  })
237
238
  ]
238
239
  });
239
- $[41] = classNames?.close;
240
- $[42] = classNames?.header;
241
- $[43] = classNames?.title;
242
- $[44] = closeConfig;
243
- $[45] = mergedCloseIcon;
244
- $[46] = onClose;
245
- $[47] = showClose;
246
- $[48] = stylesProp?.close;
247
- $[49] = stylesProp?.header;
248
- $[50] = stylesProp?.title;
249
- $[51] = title;
250
- $[52] = t26;
251
- } else t26 = $[52];
252
- const t27 = classNames?.body;
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 ($[53] !== t27) {
255
- t28 = cx(t27);
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: t28,
265
- style: t29,
266
+ className: t26,
267
+ style: t27,
266
268
  children: children
267
269
  });
268
- $[55] = children;
269
- $[56] = t28;
270
- $[57] = t29;
271
- $[58] = t30;
272
- } else t30 = $[58];
273
- let t31;
274
- if ($[59] !== classNames?.footer || $[60] !== footerContent || $[61] !== stylesProp?.footer) {
275
- t31 = null != footerContent && /*#__PURE__*/ jsx("div", {
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
- $[59] = classNames?.footer;
282
- $[60] = footerContent;
283
- $[61] = stylesProp?.footer;
284
- $[62] = t31;
285
- } else t31 = $[62];
286
- let t32;
287
- if ($[63] !== t26 || $[64] !== t30 || $[65] !== t31) {
288
- t32 = /*#__PURE__*/ jsxs(Fragment, {
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
- t26,
291
- t30,
292
- t31
292
+ t24,
293
+ t28,
294
+ t29
293
295
  ]
294
296
  });
295
- $[63] = t26;
296
- $[64] = t30;
297
- $[65] = t31;
298
- $[66] = t32;
299
- } else t32 = $[66];
300
- const contents = t32;
301
- const t33 = classNames?.root;
302
- const t34 = classNames?.container;
303
- let t35;
304
- if ($[67] !== t33 || $[68] !== t34 || $[69] !== transitionName) {
305
- t35 = cx(t33, t34, transitionName);
306
- $[67] = t33;
307
- $[68] = t34;
308
- $[69] = transitionName;
309
- $[70] = t35;
310
- } else t35 = $[70];
311
- let t36;
312
- if ($[71] !== ariaLabel || $[72] !== ariaLabelledBy) {
313
- t36 = ariaLabel || ariaLabelledBy ? {
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
- $[71] = ariaLabel;
317
- $[72] = ariaLabelledBy;
318
- $[73] = t36;
319
- } else t36 = $[73];
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 ($[74] !== customInteraction || $[75] !== openAutoFocus) {
322
- t37 = customInteraction ? _temp : openAutoFocus;
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
- $[80] = keyboard;
340
- $[81] = t39;
341
- } else t39 = $[81];
342
- let t40;
343
- if ($[82] !== contents || $[83] !== customInteraction || $[84] !== focusRegistry) {
344
- t40 = customInteraction ? /*#__PURE__*/ jsx(ModalBranchProvider, {
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
- $[82] = contents;
349
- $[83] = customInteraction;
350
- $[84] = focusRegistry;
351
- $[85] = t40;
352
- } else t40 = $[85];
353
- let t41;
354
- if ($[86] !== ariaDescribedBy || $[87] !== ariaLabel || $[88] !== contentStyle || $[89] !== forceMount || $[90] !== keepAlive || $[91] !== open || $[92] !== setContentRef || $[93] !== t35 || $[94] !== t36 || $[95] !== t37 || $[96] !== t38 || $[97] !== t39 || $[98] !== t40) {
355
- t41 = /*#__PURE__*/ jsx(DialogContent, {
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: t35,
364
+ className: t33,
363
365
  "aria-modal": true,
364
366
  "aria-label": ariaLabel,
365
- ...t36,
367
+ ...t34,
366
368
  "aria-describedby": ariaDescribedBy,
367
- onOpenAutoFocus: t37,
368
- onCloseAutoFocus: t38,
369
- onEscapeKeyDown: t39,
369
+ onOpenAutoFocus: t35,
370
+ onCloseAutoFocus: t36,
371
+ onEscapeKeyDown: t37,
370
372
  onPointerDownOutside: preventParentOutsideDismiss,
371
373
  onInteractOutside: preventParentOutsideDismiss,
372
- children: t40
374
+ children: t38
373
375
  });
374
- $[86] = ariaDescribedBy;
375
- $[87] = ariaLabel;
376
- $[88] = contentStyle;
377
- $[89] = forceMount;
378
- $[90] = keepAlive;
379
- $[91] = open;
380
- $[92] = setContentRef;
381
- $[93] = t35;
382
- $[94] = t36;
383
- $[95] = t37;
384
- $[96] = t38;
385
- $[97] = t39;
386
- $[98] = t40;
387
- $[99] = t41;
388
- } else t41 = $[99];
389
- const content = t41;
390
- let t42;
391
- 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) {
392
- t42 = !customInteraction && (!keepAlive || open) && /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Overlay, {
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
- $[100] = classNames?.mask;
412
- $[101] = classNames?.overlay;
413
- $[102] = closeOnMask;
414
- $[103] = customInteraction;
415
- $[104] = forceMount;
416
- $[105] = keepAlive;
417
- $[106] = mask;
418
- $[107] = maskTransitionName;
419
- $[108] = onClose;
420
- $[109] = open;
421
- $[110] = showMask;
422
- $[111] = stylesProp?.mask;
423
- $[112] = stylesProp?.overlay;
424
- $[113] = zIndex;
425
- $[114] = t42;
426
- } else t42 = $[114];
427
- let t43;
428
- 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) {
429
- t43 = customInteraction && showMask && open && /*#__PURE__*/ jsx("div", {
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
- $[115] = classNames?.mask;
444
- $[116] = classNames?.overlay;
445
- $[117] = closeOnMask;
446
- $[118] = customInteraction;
447
- $[119] = mask;
448
- $[120] = maskTransitionName;
449
- $[121] = onClose;
450
- $[122] = open;
451
- $[123] = showMask;
452
- $[124] = stylesProp?.mask;
453
- $[125] = stylesProp?.overlay;
454
- $[126] = zIndex;
455
- $[127] = t43;
456
- } else t43 = $[127];
457
- const t44 = centered ? "" : void 0;
458
- const t45 = open ? "" : void 0;
459
- const t46 = classNames?.wrapper;
460
- const t47 = wrapProps?.className;
461
- let t48;
462
- if ($[128] !== t46 || $[129] !== t47) {
463
- t48 = cx(t46, t47);
464
- $[128] = t46;
465
- $[129] = t47;
466
- $[130] = t48;
467
- } else t48 = $[130];
468
- const t49 = void 0 === zIndex ? void 0 : zIndex + 1;
469
- const t50 = stylesProp?.wrapper;
470
- const t51 = wrapProps?.style;
471
- let t52;
472
- if ($[131] !== t49 || $[132] !== t50 || $[133] !== t51) {
473
- t52 = {
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: t49,
476
- ...t50,
477
- ...t51
477
+ zIndex: t47,
478
+ ...t48,
479
+ ...t49
478
480
  };
479
- $[131] = t49;
480
- $[132] = t50;
481
- $[133] = t51;
482
- $[134] = t52;
483
- } else t52 = $[134];
484
- let t53;
485
- if ($[135] !== closeAutoFocus || $[136] !== content || $[137] !== customInteraction || $[138] !== focusBranches || $[139] !== modalRender || $[140] !== open || $[141] !== openAutoFocus || $[142] !== scrollLock || $[143] !== trapFocus) {
486
- t53 = customInteraction ? /*#__PURE__*/ jsx(ModalInteractionScope, {
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
- $[135] = closeAutoFocus;
496
- $[136] = content;
497
- $[137] = customInteraction;
498
- $[138] = focusBranches;
499
- $[139] = modalRender;
500
- $[140] = open;
501
- $[141] = openAutoFocus;
502
- $[142] = scrollLock;
503
- $[143] = trapFocus;
504
- $[144] = t53;
505
- } else t53 = $[144];
506
- let t54;
507
- if ($[145] !== t44 || $[146] !== t45 || $[147] !== t48 || $[148] !== t52 || $[149] !== t53 || $[150] !== wrapProps) {
508
- t54 = /*#__PURE__*/ jsx("div", {
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": t44,
513
- "data-tao-open": t45,
514
- className: t48,
515
- style: t52,
516
- children: t53
514
+ "data-tao-centered": t42,
515
+ "data-tao-open": t43,
516
+ className: t46,
517
+ style: t50,
518
+ children: t51
517
519
  });
518
- $[145] = t44;
519
- $[146] = t45;
520
- $[147] = t48;
521
- $[148] = t52;
522
- $[149] = t53;
523
- $[150] = wrapProps;
524
- $[151] = t54;
525
- } else t54 = $[151];
526
- let t55;
527
- if ($[152] !== t42 || $[153] !== t43 || $[154] !== t54) {
528
- t55 = /*#__PURE__*/ jsxs(TaoPortalScope, {
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
- t42,
531
- t43,
532
- t54
532
+ t40,
533
+ t41,
534
+ t52
533
535
  ]
534
536
  });
535
- $[152] = t42;
536
- $[153] = t43;
537
- $[154] = t54;
538
- $[155] = t55;
539
- } else t55 = $[155];
540
- const layer = t55;
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 t56;
544
- if ($[156] !== getContainer) {
545
- t56 = "string" == typeof getContainer ? document.querySelector(getContainer) ?? void 0 : "function" == typeof getContainer ? getContainer() : getContainer;
546
- $[156] = getContainer;
547
- $[157] = t56;
548
- } else t56 = $[157];
549
- container = t56;
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 t56 = !customInteraction;
553
- let t57;
554
- if ($[158] !== onClose) {
555
- t57 = (value)=>{
554
+ const t54 = !customInteraction;
555
+ let t55;
556
+ if ($[161] !== onClose) {
557
+ t55 = (value)=>{
556
558
  if (!value) onClose?.();
557
559
  };
558
- $[158] = onClose;
559
- $[159] = t57;
560
- } else t57 = $[159];
561
- let t58;
562
- if ($[160] !== container || $[161] !== forceMount || $[162] !== getContainer || $[163] !== layer) {
563
- t58 = false === getContainer ? layer : /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Portal, {
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
- $[160] = container;
569
- $[161] = forceMount;
570
- $[162] = getContainer;
571
- $[163] = layer;
572
- $[164] = t58;
573
- } else t58 = $[164];
574
- let t59;
575
- if ($[165] !== open || $[166] !== t56 || $[167] !== t57 || $[168] !== t58) {
576
- t59 = /*#__PURE__*/ jsx(__rspack_external__radix_ui_react_dialog_dabd8325.Root, {
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: t56,
579
- onOpenChange: t57,
580
- children: t58
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
- $[165] = open;
583
- $[166] = t56;
584
- $[167] = t57;
585
- $[168] = t58;
586
- $[169] = t59;
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();