@notificationapi/react 0.0.33 → 0.0.35

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 (30) hide show
  1. package/README.md +1 -1
  2. package/dist/assets/AntdIcon.js +1 -1
  3. package/dist/assets/CloseOutlined.js +13 -0
  4. package/dist/assets/Notification.js +17 -16
  5. package/dist/assets/PreferenceInput.js +1470 -0
  6. package/dist/assets/PurePanel.js +32 -42
  7. package/dist/assets/WebPushOptInMessage.js +478 -0
  8. package/dist/assets/button.js +50 -50
  9. package/dist/assets/colors.js +25 -20840
  10. package/dist/assets/compact-item.js +860 -0
  11. package/dist/assets/index.js +11 -9
  12. package/dist/assets/index2.js +10 -9
  13. package/dist/assets/index3.js +2303 -3150
  14. package/dist/assets/presets.js +22 -22
  15. package/dist/assets/reactNode.js +20821 -0
  16. package/dist/components/Notifications/Inbox.js +81 -78
  17. package/dist/components/Notifications/NotificationFeed.js +59 -31
  18. package/dist/components/Notifications/NotificationLauncher.js +61 -41
  19. package/dist/components/Notifications/NotificationPopup.js +72 -65
  20. package/dist/components/Preferences/NotificationPreferencesInline.d.ts +1 -1
  21. package/dist/components/Preferences/NotificationPreferencesInline.js +39 -5
  22. package/dist/components/Preferences/NotificationPreferencesPopup.d.ts +1 -1
  23. package/dist/components/Preferences/NotificationPreferencesPopup.js +463 -464
  24. package/dist/components/Preferences/PreferenceInput.js +5 -1466
  25. package/dist/components/Preferences/Preferences.js +24 -23
  26. package/dist/components/Provider/index.d.ts +9 -1
  27. package/dist/components/Provider/index.js +214 -156
  28. package/dist/components/WebPush/WebPushOptInMessage.d.ts +14 -0
  29. package/dist/components/WebPush/WebPushOptInMessage.js +8 -0
  30. package/package.json +2 -2
@@ -1,61 +1,45 @@
1
- import { jsx as Te } from "react/jsx-runtime";
2
- import { Preferences as Mt } from "./Preferences.js";
3
- import { _ as G, K as ye, x as Bt, y as zt, d as Ze, g as Ye, m as Je, u as P, a as _, t as Ft, z as et, A as Ht, r as kt, k as At, e as xe, w as Dt, B as Lt, C as tt, l as _t, E as Vt, F as Wt, G as nt, H as qt } from "../../assets/colors.js";
1
+ import { jsxs as Te, jsx as ge } from "react/jsx-runtime";
2
+ import { Preferences as jt } from "./Preferences.js";
4
3
  import * as l from "react";
5
- import h, { useContext as ne, useRef as X, useMemo as Gt, useEffect as Me } from "react";
6
- import { p as Ut, q as Xt, K as Be, r as Kt, o as $e, s as Ee, i as Qt, h as ot, v as Zt, w as Yt, z as Jt, d as ie, x as en, y as tn, A as nn, B as on } from "../../assets/index3.js";
7
- import { a as D, c as E, _ as j, b as ze, e as Se, i as Fe, j as He, k as an } from "../../assets/presets.js";
8
- import { I as Oe } from "../../assets/AntdIcon.js";
9
- import { B as Ne, c as at } from "../../assets/button.js";
10
- import { R as we, w as ln } from "../../assets/PurePanel.js";
11
- import { p as Pe } from "../../assets/pickAttrs.js";
12
- var rn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z" } }] }, name: "check-circle", theme: "filled" }, sn = function(t, n) {
13
- return /* @__PURE__ */ l.createElement(Oe, D({}, t, {
14
- ref: n,
15
- icon: rn
16
- }));
17
- }, lt = /* @__PURE__ */ l.forwardRef(sn);
18
- process.env.NODE_ENV !== "production" && (lt.displayName = "CheckCircleFilled");
19
- var cn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "exclamation-circle", theme: "filled" }, dn = function(t, n) {
20
- return /* @__PURE__ */ l.createElement(Oe, D({}, t, {
21
- ref: n,
22
- icon: cn
23
- }));
24
- }, rt = /* @__PURE__ */ l.forwardRef(dn);
25
- process.env.NODE_ENV !== "production" && (rt.displayName = "ExclamationCircleFilled");
26
- var un = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, name: "info-circle", theme: "filled" }, fn = function(t, n) {
27
- return /* @__PURE__ */ l.createElement(Oe, D({}, t, {
28
- ref: n,
29
- icon: un
30
- }));
31
- }, it = /* @__PURE__ */ l.forwardRef(fn);
32
- process.env.NODE_ENV !== "production" && (it.displayName = "InfoCircleFilled");
33
- function mn() {
34
- const [e, t] = l.useState([]), n = l.useCallback((o) => (t((a) => [].concat(G(a), [o])), () => {
4
+ import h, { useContext as ee, useRef as U, useMemo as Rt, useEffect as Me } from "react";
5
+ import { NotificationAPIContext as Tt } from "../Provider/index.js";
6
+ import { a as Mt, b as Bt, c as zt, W as Ht } from "../../assets/WebPushOptInMessage.js";
7
+ import { d as q, t as kt, I as At, e as Ze, g as Ye, m as Je, u as P, a as L, v as Dt, J as et, K as Ft, r as Lt, q as _t, f as xe, H as Vt, L as Wt, C as tt, A as qt, M as Gt, N as Ut, O as nt, P as Xt } from "../../assets/reactNode.js";
8
+ import { o as $e, R as Kt, e as Qt, r as Zt } from "../../assets/compact-item.js";
9
+ import { c as S, _ as j, d as Be, a as X, f as Se, i as ze, j as He, k as Yt } from "../../assets/presets.js";
10
+ import { f as Jt, h as en, K as ke, j as tn, k as Oe, i as nn, u as ot, l as on, C as an, z as ln, d as ie, m as rn } from "../../assets/index3.js";
11
+ import { B as Ee, c as at } from "../../assets/button.js";
12
+ import { R as Ne } from "../../assets/CloseOutlined.js";
13
+ import { p as we } from "../../assets/pickAttrs.js";
14
+ import { K as Pe } from "../../assets/colors.js";
15
+ import { w as sn } from "../../assets/PurePanel.js";
16
+ import { D as cn } from "../../assets/PreferenceInput.js";
17
+ function dn() {
18
+ const [e, t] = l.useState([]), n = l.useCallback((o) => (t((a) => [].concat(q(a), [o])), () => {
35
19
  t((a) => a.filter((r) => r !== o));
36
20
  }), []);
37
21
  return [e, n];
38
22
  }
39
- const gn = new ye("antFadeIn", {
23
+ const un = new Pe("antFadeIn", {
40
24
  "0%": {
41
25
  opacity: 0
42
26
  },
43
27
  "100%": {
44
28
  opacity: 1
45
29
  }
46
- }), Cn = new ye("antFadeOut", {
30
+ }), mn = new Pe("antFadeOut", {
47
31
  "0%": {
48
32
  opacity: 1
49
33
  },
50
34
  "100%": {
51
35
  opacity: 0
52
36
  }
53
- }), vn = function(e) {
37
+ }), fn = function(e) {
54
38
  let t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
55
39
  const {
56
40
  antCls: n
57
41
  } = e, o = `${n}-fade`, a = t ? "&" : "";
58
- return [Ut(o, gn, Cn, e.motionDurationMid, t), {
42
+ return [Jt(o, un, mn, e.motionDurationMid, t), {
59
43
  [`
60
44
  ${a}${o}-enter,
61
45
  ${a}${o}-appear
@@ -68,10 +52,10 @@ const gn = new ye("antFadeIn", {
68
52
  }
69
53
  }];
70
54
  };
71
- function ge(e) {
55
+ function Ce(e) {
72
56
  return !!(e != null && e.then);
73
57
  }
74
- const st = (e) => {
58
+ const lt = (e) => {
75
59
  const {
76
60
  type: t,
77
61
  children: n,
@@ -83,7 +67,7 @@ const st = (e) => {
83
67
  isSilent: i,
84
68
  quitOnNullishReturnValue: u,
85
69
  actionFn: s
86
- } = e, f = l.useRef(!1), g = l.useRef(null), [v, b] = Bt(!1), m = function() {
70
+ } = e, m = l.useRef(!1), g = l.useRef(null), [v, b] = kt(!1), f = function() {
87
71
  r == null || r.apply(void 0, arguments);
88
72
  };
89
73
  l.useEffect(() => {
@@ -96,34 +80,34 @@ const st = (e) => {
96
80
  };
97
81
  }, []);
98
82
  const x = (C) => {
99
- ge(C) && (b(!0), C.then(function() {
100
- b(!1, !0), m.apply(void 0, arguments), f.current = !1;
83
+ Ce(C) && (b(!0), C.then(function() {
84
+ b(!1, !0), f.apply(void 0, arguments), m.current = !1;
101
85
  }, (y) => {
102
- if (b(!1, !0), f.current = !1, !(i != null && i()))
86
+ if (b(!1, !0), m.current = !1, !(i != null && i()))
103
87
  return Promise.reject(y);
104
88
  }));
105
89
  }, p = (C) => {
106
- if (f.current)
90
+ if (m.current)
107
91
  return;
108
- if (f.current = !0, !s) {
109
- m();
92
+ if (m.current = !0, !s) {
93
+ f();
110
94
  return;
111
95
  }
112
96
  let y;
113
97
  if (c) {
114
- if (y = s(C), u && !ge(y)) {
115
- f.current = !1, m(C);
98
+ if (y = s(C), u && !Ce(y)) {
99
+ m.current = !1, f(C);
116
100
  return;
117
101
  }
118
102
  } else if (s.length)
119
- y = s(r), f.current = !1;
120
- else if (y = s(), !ge(y)) {
121
- m();
103
+ y = s(r), m.current = !1;
104
+ else if (y = s(), !Ce(y)) {
105
+ f();
122
106
  return;
123
107
  }
124
108
  x(y);
125
109
  };
126
- return /* @__PURE__ */ l.createElement(Ne, Object.assign({}, at(t), {
110
+ return /* @__PURE__ */ l.createElement(Ee, Object.assign({}, at(t), {
127
111
  onClick: p,
128
112
  loading: v,
129
113
  prefixCls: o
@@ -131,8 +115,8 @@ const st = (e) => {
131
115
  ref: g
132
116
  }), n);
133
117
  }, oe = /* @__PURE__ */ h.createContext({}), {
134
- Provider: ct
135
- } = oe, ke = () => {
118
+ Provider: rt
119
+ } = oe, Ae = () => {
136
120
  const {
137
121
  autoFocusButton: e,
138
122
  cancelButtonProps: t,
@@ -143,8 +127,8 @@ const st = (e) => {
143
127
  close: d,
144
128
  onCancel: c,
145
129
  onConfirm: i
146
- } = ne(oe);
147
- return a ? /* @__PURE__ */ h.createElement(st, {
130
+ } = ee(oe);
131
+ return a ? /* @__PURE__ */ h.createElement(lt, {
148
132
  isSilent: o,
149
133
  actionFn: c,
150
134
  close: function() {
@@ -154,7 +138,7 @@ const st = (e) => {
154
138
  buttonProps: t,
155
139
  prefixCls: `${r}-btn`
156
140
  }, n) : null;
157
- }, Ae = () => {
141
+ }, De = () => {
158
142
  const {
159
143
  autoFocusButton: e,
160
144
  close: t,
@@ -165,8 +149,8 @@ const st = (e) => {
165
149
  okType: d,
166
150
  onConfirm: c,
167
151
  onOk: i
168
- } = ne(oe);
169
- return /* @__PURE__ */ h.createElement(st, {
152
+ } = ee(oe);
153
+ return /* @__PURE__ */ h.createElement(lt, {
170
154
  isSilent: n,
171
155
  type: d || "primary",
172
156
  actionFn: i,
@@ -178,8 +162,8 @@ const st = (e) => {
178
162
  prefixCls: `${a}-btn`
179
163
  }, r);
180
164
  };
181
- var dt = /* @__PURE__ */ l.createContext({});
182
- function De(e, t, n) {
165
+ var it = /* @__PURE__ */ l.createContext({});
166
+ function Fe(e, t, n) {
183
167
  var o = t;
184
168
  return !o && n && (o = "".concat(e, "-").concat(n)), o;
185
169
  }
@@ -191,111 +175,111 @@ function Le(e, t) {
191
175
  }
192
176
  return n;
193
177
  }
194
- function bn(e) {
178
+ function gn(e) {
195
179
  var t = e.getBoundingClientRect(), n = {
196
180
  left: t.left,
197
181
  top: t.top
198
182
  }, o = e.ownerDocument, a = o.defaultView || o.parentWindow;
199
183
  return n.left += Le(a), n.top += Le(a, !0), n;
200
184
  }
201
- const pn = /* @__PURE__ */ l.memo(function(e) {
185
+ const Cn = /* @__PURE__ */ l.memo(function(e) {
202
186
  var t = e.children;
203
187
  return t;
204
188
  }, function(e, t) {
205
189
  var n = t.shouldUpdate;
206
190
  return !n;
207
191
  });
208
- var hn = {
192
+ var vn = {
209
193
  width: 0,
210
194
  height: 0,
211
195
  overflow: "hidden",
212
196
  outline: "none"
213
- }, yn = {
197
+ }, bn = {
214
198
  outline: "none"
215
199
  }, Ie = /* @__PURE__ */ h.forwardRef(function(e, t) {
216
- var n = e.prefixCls, o = e.className, a = e.style, r = e.title, d = e.ariaId, c = e.footer, i = e.closable, u = e.closeIcon, s = e.onClose, f = e.children, g = e.bodyStyle, v = e.bodyProps, b = e.modalRender, m = e.onMouseDown, x = e.onMouseUp, p = e.holderRef, C = e.visible, y = e.forceRender, $ = e.width, N = e.height, O = e.classNames, S = e.styles, R = h.useContext(dt), w = R.panel, z = zt(p, w), T = X(), V = X();
200
+ var n = e.prefixCls, o = e.className, a = e.style, r = e.title, d = e.ariaId, c = e.footer, i = e.closable, u = e.closeIcon, s = e.onClose, m = e.children, g = e.bodyStyle, v = e.bodyProps, b = e.modalRender, f = e.onMouseDown, x = e.onMouseUp, p = e.holderRef, C = e.visible, y = e.forceRender, $ = e.width, N = e.height, E = e.classNames, O = e.styles, R = h.useContext(it), w = R.panel, z = At(p, w), T = U(), _ = U();
217
201
  h.useImperativeHandle(t, function() {
218
202
  return {
219
203
  focus: function() {
220
- var k;
221
- (k = T.current) === null || k === void 0 || k.focus({
204
+ var A;
205
+ (A = T.current) === null || A === void 0 || A.focus({
222
206
  preventScroll: !0
223
207
  });
224
208
  },
225
- changeActive: function(k) {
226
- var A = document, M = A.activeElement;
227
- k && M === V.current ? T.current.focus({
209
+ changeActive: function(A) {
210
+ var D = document, M = D.activeElement;
211
+ A && M === _.current ? T.current.focus({
228
212
  preventScroll: !0
229
- }) : !k && M === T.current && V.current.focus({
213
+ }) : !A && M === T.current && _.current.focus({
230
214
  preventScroll: !0
231
215
  });
232
216
  }
233
217
  };
234
218
  });
235
- var L = {};
236
- $ !== void 0 && (L.width = $), N !== void 0 && (L.height = N);
219
+ var F = {};
220
+ $ !== void 0 && (F.width = $), N !== void 0 && (F.height = N);
237
221
  var B = c ? /* @__PURE__ */ h.createElement("div", {
238
- className: E("".concat(n, "-footer"), O == null ? void 0 : O.footer),
239
- style: j({}, S == null ? void 0 : S.footer)
240
- }, c) : null, F = r ? /* @__PURE__ */ h.createElement("div", {
241
- className: E("".concat(n, "-header"), O == null ? void 0 : O.header),
242
- style: j({}, S == null ? void 0 : S.header)
222
+ className: S("".concat(n, "-footer"), E == null ? void 0 : E.footer),
223
+ style: j({}, O == null ? void 0 : O.footer)
224
+ }, c) : null, H = r ? /* @__PURE__ */ h.createElement("div", {
225
+ className: S("".concat(n, "-header"), E == null ? void 0 : E.header),
226
+ style: j({}, O == null ? void 0 : O.header)
243
227
  }, /* @__PURE__ */ h.createElement("div", {
244
228
  className: "".concat(n, "-title"),
245
229
  id: d
246
- }, r)) : null, W = Gt(function() {
247
- return ze(i) === "object" && i !== null ? i : i ? {
230
+ }, r)) : null, V = Rt(function() {
231
+ return Be(i) === "object" && i !== null ? i : i ? {
248
232
  closeIcon: u ?? /* @__PURE__ */ h.createElement("span", {
249
233
  className: "".concat(n, "-close-x")
250
234
  })
251
235
  } : {};
252
- }, [i, u, n]), q = Pe(W, !0), U = ze(i) === "object" && i.disabled, te = i ? /* @__PURE__ */ h.createElement("button", D({
236
+ }, [i, u, n]), W = we(V, !0), G = Be(i) === "object" && i.disabled, ne = i ? /* @__PURE__ */ h.createElement("button", X({
253
237
  type: "button",
254
238
  onClick: s,
255
239
  "aria-label": "Close"
256
- }, q, {
240
+ }, W, {
257
241
  className: "".concat(n, "-close"),
258
- disabled: U
259
- }), W.closeIcon) : null, K = /* @__PURE__ */ h.createElement("div", {
260
- className: E("".concat(n, "-content"), O == null ? void 0 : O.content),
261
- style: S == null ? void 0 : S.content
262
- }, te, F, /* @__PURE__ */ h.createElement("div", D({
263
- className: E("".concat(n, "-body"), O == null ? void 0 : O.body),
264
- style: j(j({}, g), S == null ? void 0 : S.body)
265
- }, v), f), B);
242
+ disabled: G
243
+ }), V.closeIcon) : null, K = /* @__PURE__ */ h.createElement("div", {
244
+ className: S("".concat(n, "-content"), E == null ? void 0 : E.content),
245
+ style: O == null ? void 0 : O.content
246
+ }, ne, H, /* @__PURE__ */ h.createElement("div", X({
247
+ className: S("".concat(n, "-body"), E == null ? void 0 : E.body),
248
+ style: j(j({}, g), O == null ? void 0 : O.body)
249
+ }, v), m), B);
266
250
  return /* @__PURE__ */ h.createElement("div", {
267
251
  key: "dialog-element",
268
252
  role: "dialog",
269
253
  "aria-labelledby": r ? d : null,
270
254
  "aria-modal": "true",
271
255
  ref: z,
272
- style: j(j({}, a), L),
273
- className: E(n, o),
274
- onMouseDown: m,
256
+ style: j(j({}, a), F),
257
+ className: S(n, o),
258
+ onMouseDown: f,
275
259
  onMouseUp: x
276
260
  }, /* @__PURE__ */ h.createElement("div", {
277
261
  ref: T,
278
262
  tabIndex: 0,
279
- style: yn
280
- }, /* @__PURE__ */ h.createElement(pn, {
263
+ style: bn
264
+ }, /* @__PURE__ */ h.createElement(Cn, {
281
265
  shouldUpdate: C || y
282
266
  }, b ? b(K) : K)), /* @__PURE__ */ h.createElement("div", {
283
267
  tabIndex: 0,
284
- ref: V,
285
- style: hn
268
+ ref: _,
269
+ style: vn
286
270
  }));
287
271
  });
288
272
  process.env.NODE_ENV !== "production" && (Ie.displayName = "Panel");
289
- var ut = /* @__PURE__ */ l.forwardRef(function(e, t) {
290
- var n = e.prefixCls, o = e.title, a = e.style, r = e.className, d = e.visible, c = e.forceRender, i = e.destroyOnClose, u = e.motionName, s = e.ariaId, f = e.onVisibleChanged, g = e.mousePosition, v = X(), b = l.useState(), m = Se(b, 2), x = m[0], p = m[1], C = {};
273
+ var st = /* @__PURE__ */ l.forwardRef(function(e, t) {
274
+ var n = e.prefixCls, o = e.title, a = e.style, r = e.className, d = e.visible, c = e.forceRender, i = e.destroyOnClose, u = e.motionName, s = e.ariaId, m = e.onVisibleChanged, g = e.mousePosition, v = U(), b = l.useState(), f = Se(b, 2), x = f[0], p = f[1], C = {};
291
275
  x && (C.transformOrigin = x);
292
276
  function y() {
293
- var $ = bn(v.current);
277
+ var $ = gn(v.current);
294
278
  p(g && (g.x || g.y) ? "".concat(g.x - $.left, "px ").concat(g.y - $.top, "px") : "");
295
279
  }
296
280
  return /* @__PURE__ */ l.createElement(Ze, {
297
281
  visible: d,
298
- onVisibleChanged: f,
282
+ onVisibleChanged: m,
299
283
  onAppearPrepare: y,
300
284
  onEnterPrepare: y,
301
285
  forceRender: c,
@@ -303,20 +287,20 @@ var ut = /* @__PURE__ */ l.forwardRef(function(e, t) {
303
287
  removeOnLeave: i,
304
288
  ref: v
305
289
  }, function($, N) {
306
- var O = $.className, S = $.style;
307
- return /* @__PURE__ */ l.createElement(Ie, D({}, e, {
290
+ var E = $.className, O = $.style;
291
+ return /* @__PURE__ */ l.createElement(Ie, X({}, e, {
308
292
  ref: t,
309
293
  title: o,
310
294
  ariaId: s,
311
295
  prefixCls: n,
312
296
  holderRef: N,
313
- style: j(j(j({}, S), a), C),
314
- className: E(r, O)
297
+ style: j(j(j({}, O), a), C),
298
+ className: S(r, E)
315
299
  }));
316
300
  });
317
301
  });
318
- ut.displayName = "Content";
319
- var xn = function(t) {
302
+ st.displayName = "Content";
303
+ var pn = function(t) {
320
304
  var n = t.prefixCls, o = t.style, a = t.visible, r = t.maskProps, d = t.motionName, c = t.className;
321
305
  return /* @__PURE__ */ l.createElement(Ze, {
322
306
  key: "mask",
@@ -324,132 +308,132 @@ var xn = function(t) {
324
308
  motionName: d,
325
309
  leavedClassName: "".concat(n, "-mask-hidden")
326
310
  }, function(i, u) {
327
- var s = i.className, f = i.style;
328
- return /* @__PURE__ */ l.createElement("div", D({
311
+ var s = i.className, m = i.style;
312
+ return /* @__PURE__ */ l.createElement("div", X({
329
313
  ref: u,
330
- style: j(j({}, f), o),
331
- className: E("".concat(n, "-mask"), s, c)
314
+ style: j(j({}, m), o),
315
+ className: S("".concat(n, "-mask"), s, c)
332
316
  }, r));
333
317
  });
334
- }, $n = function(t) {
335
- var n = t.prefixCls, o = n === void 0 ? "rc-dialog" : n, a = t.zIndex, r = t.visible, d = r === void 0 ? !1 : r, c = t.keyboard, i = c === void 0 ? !0 : c, u = t.focusTriggerAfterClose, s = u === void 0 ? !0 : u, f = t.wrapStyle, g = t.wrapClassName, v = t.wrapProps, b = t.onClose, m = t.afterOpenChange, x = t.afterClose, p = t.transitionName, C = t.animation, y = t.closable, $ = y === void 0 ? !0 : y, N = t.mask, O = N === void 0 ? !0 : N, S = t.maskTransitionName, R = t.maskAnimation, w = t.maskClosable, z = w === void 0 ? !0 : w, T = t.maskStyle, V = t.maskProps, L = t.rootClassName, B = t.classNames, F = t.styles;
318
+ }, hn = function(t) {
319
+ var n = t.prefixCls, o = n === void 0 ? "rc-dialog" : n, a = t.zIndex, r = t.visible, d = r === void 0 ? !1 : r, c = t.keyboard, i = c === void 0 ? !0 : c, u = t.focusTriggerAfterClose, s = u === void 0 ? !0 : u, m = t.wrapStyle, g = t.wrapClassName, v = t.wrapProps, b = t.onClose, f = t.afterOpenChange, x = t.afterClose, p = t.transitionName, C = t.animation, y = t.closable, $ = y === void 0 ? !0 : y, N = t.mask, E = N === void 0 ? !0 : N, O = t.maskTransitionName, R = t.maskAnimation, w = t.maskClosable, z = w === void 0 ? !0 : w, T = t.maskStyle, _ = t.maskProps, F = t.rootClassName, B = t.classNames, H = t.styles;
336
320
  process.env.NODE_ENV !== "production" && (["wrapStyle", "bodyStyle", "maskStyle"].forEach(function(I) {
337
- Fe(!(I in t), "".concat(I, " is deprecated, please use styles instead."));
338
- }), "wrapClassName" in t && Fe(!1, "wrapClassName is deprecated, please use classNames instead."));
339
- var W = X(), q = X(), U = X(), te = l.useState(d), K = Se(te, 2), Q = K[0], k = K[1], A = Xt();
321
+ ze(!(I in t), "".concat(I, " is deprecated, please use styles instead."));
322
+ }), "wrapClassName" in t && ze(!1, "wrapClassName is deprecated, please use classNames instead."));
323
+ var V = U(), W = U(), G = U(), ne = l.useState(d), K = Se(ne, 2), Q = K[0], A = K[1], D = en();
340
324
  function M() {
341
- He(q.current, document.activeElement) || (W.current = document.activeElement);
325
+ He(W.current, document.activeElement) || (V.current = document.activeElement);
342
326
  }
343
327
  function le() {
344
- if (!He(q.current, document.activeElement)) {
328
+ if (!He(W.current, document.activeElement)) {
345
329
  var I;
346
- (I = U.current) === null || I === void 0 || I.focus();
330
+ (I = G.current) === null || I === void 0 || I.focus();
347
331
  }
348
332
  }
349
333
  function de(I) {
350
334
  if (I)
351
335
  le();
352
336
  else {
353
- if (k(!1), O && W.current && s) {
337
+ if (A(!1), E && V.current && s) {
354
338
  try {
355
- W.current.focus({
339
+ V.current.focus({
356
340
  preventScroll: !0
357
341
  });
358
342
  } catch {
359
343
  }
360
- W.current = null;
344
+ V.current = null;
361
345
  }
362
346
  Q && (x == null || x());
363
347
  }
364
- m == null || m(I);
348
+ f == null || f(I);
365
349
  }
366
350
  function ue(I) {
367
351
  b == null || b(I);
368
352
  }
369
- var re = X(!1), fe = X(), It = function() {
370
- clearTimeout(fe.current), re.current = !0;
371
- }, jt = function() {
372
- fe.current = setTimeout(function() {
353
+ var re = U(!1), me = U(), Nt = function() {
354
+ clearTimeout(me.current), re.current = !0;
355
+ }, wt = function() {
356
+ me.current = setTimeout(function() {
373
357
  re.current = !1;
374
358
  });
375
359
  }, Re = null;
376
- z && (Re = function(me) {
377
- re.current ? re.current = !1 : q.current === me.target && ue(me);
360
+ z && (Re = function(fe) {
361
+ re.current ? re.current = !1 : W.current === fe.target && ue(fe);
378
362
  });
379
- function Rt(I) {
380
- if (i && I.keyCode === Be.ESC) {
363
+ function Pt(I) {
364
+ if (i && I.keyCode === ke.ESC) {
381
365
  I.stopPropagation(), ue(I);
382
366
  return;
383
367
  }
384
- d && I.keyCode === Be.TAB && U.current.changeActive(!I.shiftKey);
368
+ d && I.keyCode === ke.TAB && G.current.changeActive(!I.shiftKey);
385
369
  }
386
370
  Me(function() {
387
- d && (k(!0), M());
371
+ d && (A(!0), M());
388
372
  }, [d]), Me(function() {
389
373
  return function() {
390
- clearTimeout(fe.current);
374
+ clearTimeout(me.current);
391
375
  };
392
376
  }, []);
393
- var Tt = j(j(j({
377
+ var It = j(j(j({
394
378
  zIndex: a
395
- }, f), F == null ? void 0 : F.wrapper), {}, {
379
+ }, m), H == null ? void 0 : H.wrapper), {}, {
396
380
  display: Q ? null : "none"
397
381
  });
398
- return /* @__PURE__ */ l.createElement("div", D({
399
- className: E("".concat(o, "-root"), L)
400
- }, Pe(t, {
382
+ return /* @__PURE__ */ l.createElement("div", X({
383
+ className: S("".concat(o, "-root"), F)
384
+ }, we(t, {
401
385
  data: !0
402
- })), /* @__PURE__ */ l.createElement(xn, {
386
+ })), /* @__PURE__ */ l.createElement(pn, {
403
387
  prefixCls: o,
404
- visible: O && d,
405
- motionName: De(o, S, R),
388
+ visible: E && d,
389
+ motionName: Fe(o, O, R),
406
390
  style: j(j({
407
391
  zIndex: a
408
- }, T), F == null ? void 0 : F.mask),
409
- maskProps: V,
392
+ }, T), H == null ? void 0 : H.mask),
393
+ maskProps: _,
410
394
  className: B == null ? void 0 : B.mask
411
- }), /* @__PURE__ */ l.createElement("div", D({
395
+ }), /* @__PURE__ */ l.createElement("div", X({
412
396
  tabIndex: -1,
413
- onKeyDown: Rt,
414
- className: E("".concat(o, "-wrap"), g, B == null ? void 0 : B.wrapper),
415
- ref: q,
397
+ onKeyDown: Pt,
398
+ className: S("".concat(o, "-wrap"), g, B == null ? void 0 : B.wrapper),
399
+ ref: W,
416
400
  onClick: Re,
417
- style: Tt
418
- }, v), /* @__PURE__ */ l.createElement(ut, D({}, t, {
419
- onMouseDown: It,
420
- onMouseUp: jt,
421
- ref: U,
401
+ style: It
402
+ }, v), /* @__PURE__ */ l.createElement(st, X({}, t, {
403
+ onMouseDown: Nt,
404
+ onMouseUp: wt,
405
+ ref: G,
422
406
  closable: $,
423
- ariaId: A,
407
+ ariaId: D,
424
408
  prefixCls: o,
425
409
  visible: d && Q,
426
410
  onClose: ue,
427
411
  onVisibleChanged: de,
428
- motionName: De(o, p, C)
412
+ motionName: Fe(o, p, C)
429
413
  }))));
430
- }, ft = function(t) {
431
- var n = t.visible, o = t.getContainer, a = t.forceRender, r = t.destroyOnClose, d = r === void 0 ? !1 : r, c = t.afterClose, i = t.panelRef, u = l.useState(n), s = Se(u, 2), f = s[0], g = s[1], v = l.useMemo(function() {
414
+ }, ct = function(t) {
415
+ var n = t.visible, o = t.getContainer, a = t.forceRender, r = t.destroyOnClose, d = r === void 0 ? !1 : r, c = t.afterClose, i = t.panelRef, u = l.useState(n), s = Se(u, 2), m = s[0], g = s[1], v = l.useMemo(function() {
432
416
  return {
433
417
  panel: i
434
418
  };
435
419
  }, [i]);
436
420
  return l.useEffect(function() {
437
421
  n && g(!0);
438
- }, [n]), !a && d && !f ? null : /* @__PURE__ */ l.createElement(dt.Provider, {
422
+ }, [n]), !a && d && !m ? null : /* @__PURE__ */ l.createElement(it.Provider, {
439
423
  value: v
440
- }, /* @__PURE__ */ l.createElement(Kt, {
441
- open: n || a || f,
424
+ }, /* @__PURE__ */ l.createElement(tn, {
425
+ open: n || a || m,
442
426
  autoDestroy: !1,
443
427
  getContainer: o,
444
- autoLock: n || f
445
- }, /* @__PURE__ */ l.createElement($n, D({}, t, {
428
+ autoLock: n || m
429
+ }, /* @__PURE__ */ l.createElement(hn, X({}, t, {
446
430
  destroyOnClose: d,
447
431
  afterClose: function() {
448
432
  c == null || c(), g(!1);
449
433
  }
450
434
  }))));
451
435
  };
452
- ft.displayName = "Dialog";
436
+ ct.displayName = "Dialog";
453
437
  function _e(e) {
454
438
  if (e)
455
439
  return {
@@ -486,11 +470,11 @@ function We() {
486
470
  });
487
471
  }), e;
488
472
  }
489
- const En = {};
490
- function Sn(e, t) {
491
- let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : En;
473
+ const yn = {};
474
+ function xn(e, t) {
475
+ let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : yn;
492
476
  const o = Ve(e), a = Ve(t), r = typeof o != "boolean" ? !!(o != null && o.disabled) : !1, d = h.useMemo(() => Object.assign({
493
- closeIcon: /* @__PURE__ */ h.createElement(we, null)
477
+ closeIcon: /* @__PURE__ */ h.createElement(Ne, null)
494
478
  }, n), [n]), c = h.useMemo(() => o === !1 ? !1 : o ? We(d, a, o) : a === !1 ? !1 : a ? We(d, a) : d.closable ? d : !1, [o, a, d]);
495
479
  return h.useMemo(() => {
496
480
  if (c === !1)
@@ -503,23 +487,23 @@ function Sn(e, t) {
503
487
  let s = u;
504
488
  if (s != null) {
505
489
  i && (s = i(u));
506
- const f = Pe(c, !0);
507
- Object.keys(f).length && (s = /* @__PURE__ */ h.isValidElement(s) ? /* @__PURE__ */ h.cloneElement(s, f) : /* @__PURE__ */ h.createElement("span", Object.assign({}, f), s));
490
+ const m = we(c, !0);
491
+ Object.keys(m).length && (s = /* @__PURE__ */ h.isValidElement(s) ? /* @__PURE__ */ h.cloneElement(s, m) : /* @__PURE__ */ h.createElement("span", Object.assign({}, m), s));
508
492
  }
509
493
  return [!0, s, r];
510
494
  }, [c, d]);
511
495
  }
512
- const On = () => an() && window.document.documentElement, se = (e) => {
496
+ const $n = () => Yt() && window.document.documentElement, se = (e) => {
513
497
  const {
514
498
  prefixCls: t,
515
499
  className: n,
516
500
  style: o,
517
501
  size: a,
518
502
  shape: r
519
- } = e, d = E({
503
+ } = e, d = S({
520
504
  [`${t}-lg`]: a === "large",
521
505
  [`${t}-sm`]: a === "small"
522
- }), c = E({
506
+ }), c = S({
523
507
  [`${t}-circle`]: r === "circle",
524
508
  [`${t}-square`]: r === "square",
525
509
  [`${t}-round`]: r === "round"
@@ -529,10 +513,10 @@ const On = () => an() && window.document.documentElement, se = (e) => {
529
513
  lineHeight: `${a}px`
530
514
  } : {}, [a]);
531
515
  return /* @__PURE__ */ l.createElement("span", {
532
- className: E(t, d, c, n),
516
+ className: S(t, d, c, n),
533
517
  style: Object.assign(Object.assign({}, i), o)
534
518
  });
535
- }, Nn = new ye("ant-skeleton-loading", {
519
+ }, Sn = new Pe("ant-skeleton-loading", {
536
520
  "0%": {
537
521
  backgroundPosition: "100% 50%"
538
522
  },
@@ -544,17 +528,17 @@ const On = () => an() && window.document.documentElement, se = (e) => {
544
528
  lineHeight: P(e)
545
529
  }), J = (e) => Object.assign({
546
530
  width: e
547
- }, ce(e)), wn = (e) => ({
531
+ }, ce(e)), On = (e) => ({
548
532
  background: e.skeletonLoadingBackground,
549
533
  backgroundSize: "400% 100%",
550
- animationName: Nn,
534
+ animationName: Sn,
551
535
  animationDuration: e.skeletonLoadingMotionDuration,
552
536
  animationTimingFunction: "ease",
553
537
  animationIterationCount: "infinite"
554
- }), Ce = (e, t) => Object.assign({
538
+ }), ve = (e, t) => Object.assign({
555
539
  width: t(e).mul(5).equal(),
556
540
  minWidth: t(e).mul(5).equal()
557
- }, ce(e)), Pn = (e) => {
541
+ }, ce(e)), En = (e) => {
558
542
  const {
559
543
  skeletonAvatarCls: t,
560
544
  gradientFromColor: n,
@@ -574,7 +558,7 @@ const On = () => an() && window.document.documentElement, se = (e) => {
574
558
  [`${t}${t}-lg`]: Object.assign({}, J(a)),
575
559
  [`${t}${t}-sm`]: Object.assign({}, J(r))
576
560
  };
577
- }, In = (e) => {
561
+ }, Nn = (e) => {
578
562
  const {
579
563
  controlHeight: t,
580
564
  borderRadiusSM: n,
@@ -590,13 +574,13 @@ const On = () => an() && window.document.documentElement, se = (e) => {
590
574
  verticalAlign: "top",
591
575
  background: d,
592
576
  borderRadius: n
593
- }, Ce(t, c)),
594
- [`${o}-lg`]: Object.assign({}, Ce(a, c)),
595
- [`${o}-sm`]: Object.assign({}, Ce(r, c))
577
+ }, ve(t, c)),
578
+ [`${o}-lg`]: Object.assign({}, ve(a, c)),
579
+ [`${o}-sm`]: Object.assign({}, ve(r, c))
596
580
  };
597
581
  }, qe = (e) => Object.assign({
598
582
  width: e
599
- }, ce(e)), jn = (e) => {
583
+ }, ce(e)), wn = (e) => {
600
584
  const {
601
585
  skeletonImageCls: t,
602
586
  imageSizeBase: n,
@@ -628,7 +612,7 @@ const On = () => an() && window.document.documentElement, se = (e) => {
628
612
  borderRadius: "50%"
629
613
  }
630
614
  };
631
- }, ve = (e, t, n) => {
615
+ }, be = (e, t, n) => {
632
616
  const {
633
617
  skeletonButtonCls: o
634
618
  } = e;
@@ -642,10 +626,10 @@ const On = () => an() && window.document.documentElement, se = (e) => {
642
626
  borderRadius: t
643
627
  }
644
628
  };
645
- }, be = (e, t) => Object.assign({
629
+ }, pe = (e, t) => Object.assign({
646
630
  width: t(e).mul(2).equal(),
647
631
  minWidth: t(e).mul(2).equal()
648
- }, ce(e)), Rn = (e) => {
632
+ }, ce(e)), Pn = (e) => {
649
633
  const {
650
634
  borderRadiusSM: t,
651
635
  skeletonButtonCls: n,
@@ -663,13 +647,13 @@ const On = () => an() && window.document.documentElement, se = (e) => {
663
647
  borderRadius: t,
664
648
  width: c(o).mul(2).equal(),
665
649
  minWidth: c(o).mul(2).equal()
666
- }, be(o, c))
667
- }, ve(e, o, n)), {
668
- [`${n}-lg`]: Object.assign({}, be(a, c))
669
- }), ve(e, a, `${n}-lg`)), {
670
- [`${n}-sm`]: Object.assign({}, be(r, c))
671
- }), ve(e, r, `${n}-sm`));
672
- }, Tn = (e) => {
650
+ }, pe(o, c))
651
+ }, be(e, o, n)), {
652
+ [`${n}-lg`]: Object.assign({}, pe(a, c))
653
+ }), be(e, a, `${n}-lg`)), {
654
+ [`${n}-sm`]: Object.assign({}, pe(r, c))
655
+ }), be(e, r, `${n}-sm`));
656
+ }, In = (e) => {
673
657
  const {
674
658
  componentCls: t,
675
659
  skeletonAvatarCls: n,
@@ -681,11 +665,11 @@ const On = () => an() && window.document.documentElement, se = (e) => {
681
665
  controlHeight: i,
682
666
  controlHeightLG: u,
683
667
  controlHeightSM: s,
684
- gradientFromColor: f,
668
+ gradientFromColor: m,
685
669
  padding: g,
686
670
  marginSM: v,
687
671
  borderRadius: b,
688
- titleHeight: m,
672
+ titleHeight: f,
689
673
  blockRadius: x,
690
674
  paragraphLiHeight: p,
691
675
  controlHeightXS: C,
@@ -703,7 +687,7 @@ const On = () => an() && window.document.documentElement, se = (e) => {
703
687
  [n]: Object.assign({
704
688
  display: "inline-block",
705
689
  verticalAlign: "top",
706
- background: f
690
+ background: m
707
691
  }, J(i)),
708
692
  [`${n}-circle`]: {
709
693
  borderRadius: "50%"
@@ -718,8 +702,8 @@ const On = () => an() && window.document.documentElement, se = (e) => {
718
702
  // Title
719
703
  [o]: {
720
704
  width: "100%",
721
- height: m,
722
- background: f,
705
+ height: f,
706
+ background: m,
723
707
  borderRadius: x,
724
708
  [`+ ${a}`]: {
725
709
  marginBlockStart: s
@@ -732,7 +716,7 @@ const On = () => an() && window.document.documentElement, se = (e) => {
732
716
  width: "100%",
733
717
  height: p,
734
718
  listStyle: "none",
735
- background: f,
719
+ background: m,
736
720
  borderRadius: x,
737
721
  "+ li": {
738
722
  marginBlockStart: C
@@ -762,7 +746,7 @@ const On = () => an() && window.document.documentElement, se = (e) => {
762
746
  [`${t}${t}-element`]: Object.assign(Object.assign(Object.assign(Object.assign({
763
747
  display: "inline-block",
764
748
  width: "auto"
765
- }, Rn(e)), Pn(e)), In(e)), jn(e)),
749
+ }, Pn(e)), En(e)), Nn(e)), wn(e)),
766
750
  // Skeleton Block Button, Input
767
751
  [`${t}${t}-block`]: {
768
752
  width: "100%",
@@ -782,10 +766,10 @@ const On = () => an() && window.document.documentElement, se = (e) => {
782
766
  ${r},
783
767
  ${d},
784
768
  ${c}
785
- `]: Object.assign({}, wn(e))
769
+ `]: Object.assign({}, On(e))
786
770
  }
787
771
  };
788
- }, Mn = (e) => {
772
+ }, jn = (e) => {
789
773
  const {
790
774
  colorFillContent: t,
791
775
  colorFill: n
@@ -800,7 +784,7 @@ const On = () => an() && window.document.documentElement, se = (e) => {
800
784
  paragraphMarginTop: e.marginLG + e.marginXXS,
801
785
  paragraphLiHeight: e.controlHeight / 2
802
786
  };
803
- }, ee = Ye("Skeleton", (e) => {
787
+ }, te = Ye("Skeleton", (e) => {
804
788
  const {
805
789
  componentCls: t,
806
790
  calc: n
@@ -817,10 +801,10 @@ const On = () => an() && window.document.documentElement, se = (e) => {
817
801
  skeletonLoadingBackground: `linear-gradient(90deg, ${e.gradientFromColor} 25%, ${e.gradientToColor} 37%, ${e.gradientFromColor} 63%)`,
818
802
  skeletonLoadingMotionDuration: "1.4s"
819
803
  });
820
- return [Tn(o)];
821
- }, Mn, {
804
+ return [In(o)];
805
+ }, jn, {
822
806
  deprecatedTokens: [["color", "gradientFromColor"], ["colorGradientEnd", "gradientToColor"]]
823
- }), Bn = (e) => {
807
+ }), Rn = (e) => {
824
808
  const {
825
809
  prefixCls: t,
826
810
  className: n,
@@ -830,9 +814,9 @@ const On = () => an() && window.document.documentElement, se = (e) => {
830
814
  size: d = "default"
831
815
  } = e, {
832
816
  getPrefixCls: c
833
- } = l.useContext(_), i = c("skeleton", t), [u, s, f] = ee(i), g = $e(e, ["prefixCls", "className"]), v = E(i, `${i}-element`, {
817
+ } = l.useContext(L), i = c("skeleton", t), [u, s, m] = te(i), g = $e(e, ["prefixCls", "className"]), v = S(i, `${i}-element`, {
834
818
  [`${i}-active`]: a
835
- }, n, o, s, f);
819
+ }, n, o, s, m);
836
820
  return u(/* @__PURE__ */ l.createElement("div", {
837
821
  className: v
838
822
  }, /* @__PURE__ */ l.createElement(se, Object.assign({
@@ -840,7 +824,7 @@ const On = () => an() && window.document.documentElement, se = (e) => {
840
824
  shape: r,
841
825
  size: d
842
826
  }, g))));
843
- }, zn = (e) => {
827
+ }, Tn = (e) => {
844
828
  const {
845
829
  prefixCls: t,
846
830
  className: n,
@@ -850,17 +834,17 @@ const On = () => an() && window.document.documentElement, se = (e) => {
850
834
  size: d = "default"
851
835
  } = e, {
852
836
  getPrefixCls: c
853
- } = l.useContext(_), i = c("skeleton", t), [u, s, f] = ee(i), g = $e(e, ["prefixCls"]), v = E(i, `${i}-element`, {
837
+ } = l.useContext(L), i = c("skeleton", t), [u, s, m] = te(i), g = $e(e, ["prefixCls"]), v = S(i, `${i}-element`, {
854
838
  [`${i}-active`]: a,
855
839
  [`${i}-block`]: r
856
- }, n, o, s, f);
840
+ }, n, o, s, m);
857
841
  return u(/* @__PURE__ */ l.createElement("div", {
858
842
  className: v
859
843
  }, /* @__PURE__ */ l.createElement(se, Object.assign({
860
844
  prefixCls: `${i}-button`,
861
845
  size: d
862
846
  }, g))));
863
- }, Fn = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", Hn = (e) => {
847
+ }, Mn = "M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z", Bn = (e) => {
864
848
  const {
865
849
  prefixCls: t,
866
850
  className: n,
@@ -869,23 +853,23 @@ const On = () => an() && window.document.documentElement, se = (e) => {
869
853
  active: r
870
854
  } = e, {
871
855
  getPrefixCls: d
872
- } = l.useContext(_), c = d("skeleton", t), [i, u, s] = ee(c), f = E(c, `${c}-element`, {
856
+ } = l.useContext(L), c = d("skeleton", t), [i, u, s] = te(c), m = S(c, `${c}-element`, {
873
857
  [`${c}-active`]: r
874
858
  }, n, o, u, s);
875
859
  return i(/* @__PURE__ */ l.createElement("div", {
876
- className: f
860
+ className: m
877
861
  }, /* @__PURE__ */ l.createElement("div", {
878
- className: E(`${c}-image`, n),
862
+ className: S(`${c}-image`, n),
879
863
  style: a
880
864
  }, /* @__PURE__ */ l.createElement("svg", {
881
865
  viewBox: "0 0 1098 1024",
882
866
  xmlns: "http://www.w3.org/2000/svg",
883
867
  className: `${c}-image-svg`
884
868
  }, /* @__PURE__ */ l.createElement("title", null, "Image placeholder"), /* @__PURE__ */ l.createElement("path", {
885
- d: Fn,
869
+ d: Mn,
886
870
  className: `${c}-image-path`
887
871
  })))));
888
- }, kn = (e) => {
872
+ }, zn = (e) => {
889
873
  const {
890
874
  prefixCls: t,
891
875
  className: n,
@@ -895,17 +879,17 @@ const On = () => an() && window.document.documentElement, se = (e) => {
895
879
  size: d = "default"
896
880
  } = e, {
897
881
  getPrefixCls: c
898
- } = l.useContext(_), i = c("skeleton", t), [u, s, f] = ee(i), g = $e(e, ["prefixCls"]), v = E(i, `${i}-element`, {
882
+ } = l.useContext(L), i = c("skeleton", t), [u, s, m] = te(i), g = $e(e, ["prefixCls"]), v = S(i, `${i}-element`, {
899
883
  [`${i}-active`]: a,
900
884
  [`${i}-block`]: r
901
- }, n, o, s, f);
885
+ }, n, o, s, m);
902
886
  return u(/* @__PURE__ */ l.createElement("div", {
903
887
  className: v
904
888
  }, /* @__PURE__ */ l.createElement(se, Object.assign({
905
889
  prefixCls: `${i}-input`,
906
890
  size: d
907
891
  }, g))));
908
- }, An = (e) => {
892
+ }, Hn = (e) => {
909
893
  const {
910
894
  prefixCls: t,
911
895
  className: n,
@@ -915,16 +899,16 @@ const On = () => an() && window.document.documentElement, se = (e) => {
915
899
  children: d
916
900
  } = e, {
917
901
  getPrefixCls: c
918
- } = l.useContext(_), i = c("skeleton", t), [u, s, f] = ee(i), g = E(i, `${i}-element`, {
902
+ } = l.useContext(L), i = c("skeleton", t), [u, s, m] = te(i), g = S(i, `${i}-element`, {
919
903
  [`${i}-active`]: r
920
- }, s, n, o, f);
904
+ }, s, n, o, m);
921
905
  return u(/* @__PURE__ */ l.createElement("div", {
922
906
  className: g
923
907
  }, /* @__PURE__ */ l.createElement("div", {
924
- className: E(`${i}-image`, n),
908
+ className: S(`${i}-image`, n),
925
909
  style: a
926
910
  }, d)));
927
- }, Dn = (e, t) => {
911
+ }, kn = (e, t) => {
928
912
  const {
929
913
  width: n,
930
914
  rows: o = 2
@@ -933,26 +917,26 @@ const On = () => an() && window.document.documentElement, se = (e) => {
933
917
  return n[e];
934
918
  if (o - 1 === e)
935
919
  return n;
936
- }, Ln = (e) => {
920
+ }, An = (e) => {
937
921
  const {
938
922
  prefixCls: t,
939
923
  className: n,
940
924
  style: o,
941
925
  rows: a
942
- } = e, r = G(new Array(a)).map((d, c) => (
926
+ } = e, r = q(new Array(a)).map((d, c) => (
943
927
  // eslint-disable-next-line react/no-array-index-key
944
928
  /* @__PURE__ */ l.createElement("li", {
945
929
  key: c,
946
930
  style: {
947
- width: Dn(c, e)
931
+ width: kn(c, e)
948
932
  }
949
933
  })
950
934
  ));
951
935
  return /* @__PURE__ */ l.createElement("ul", {
952
- className: E(t, n),
936
+ className: S(t, n),
953
937
  style: o
954
938
  }, r);
955
- }, _n = (e) => {
939
+ }, Dn = (e) => {
956
940
  let {
957
941
  prefixCls: t,
958
942
  className: n,
@@ -962,17 +946,17 @@ const On = () => an() && window.document.documentElement, se = (e) => {
962
946
  return (
963
947
  // biome-ignore lint/a11y/useHeadingContent: HOC here
964
948
  /* @__PURE__ */ l.createElement("h3", {
965
- className: E(t, n),
949
+ className: S(t, n),
966
950
  style: Object.assign({
967
951
  width: o
968
952
  }, a)
969
953
  })
970
954
  );
971
955
  };
972
- function pe(e) {
956
+ function he(e) {
973
957
  return e && typeof e == "object" ? e : {};
974
958
  }
975
- function Vn(e, t) {
959
+ function Fn(e, t) {
976
960
  return e && !t ? {
977
961
  size: "large",
978
962
  shape: "square"
@@ -981,14 +965,14 @@ function Vn(e, t) {
981
965
  shape: "circle"
982
966
  };
983
967
  }
984
- function Wn(e, t) {
968
+ function Ln(e, t) {
985
969
  return !e && t ? {
986
970
  width: "38%"
987
971
  } : e && t ? {
988
972
  width: "50%"
989
973
  } : {};
990
974
  }
991
- function qn(e, t) {
975
+ function _n(e, t) {
992
976
  const n = {};
993
977
  return (!e || !t) && (n.width = "61%"), !e && t ? n.rows = 3 : n.rows = 2, n;
994
978
  }
@@ -1004,71 +988,71 @@ const Y = (e) => {
1004
988
  title: i = !0,
1005
989
  paragraph: u = !0,
1006
990
  active: s,
1007
- round: f
991
+ round: m
1008
992
  } = e, {
1009
993
  getPrefixCls: g,
1010
994
  direction: v,
1011
995
  skeleton: b
1012
- } = l.useContext(_), m = g("skeleton", t), [x, p, C] = ee(m);
996
+ } = l.useContext(L), f = g("skeleton", t), [x, p, C] = te(f);
1013
997
  if (n || !("loading" in e)) {
1014
998
  const y = !!c, $ = !!i, N = !!u;
1015
- let O;
999
+ let E;
1016
1000
  if (y) {
1017
1001
  const w = Object.assign(Object.assign({
1018
- prefixCls: `${m}-avatar`
1019
- }, Vn($, N)), pe(c));
1020
- O = /* @__PURE__ */ l.createElement("div", {
1021
- className: `${m}-header`
1002
+ prefixCls: `${f}-avatar`
1003
+ }, Fn($, N)), he(c));
1004
+ E = /* @__PURE__ */ l.createElement("div", {
1005
+ className: `${f}-header`
1022
1006
  }, /* @__PURE__ */ l.createElement(se, Object.assign({}, w)));
1023
1007
  }
1024
- let S;
1008
+ let O;
1025
1009
  if ($ || N) {
1026
1010
  let w;
1027
1011
  if ($) {
1028
1012
  const T = Object.assign(Object.assign({
1029
- prefixCls: `${m}-title`
1030
- }, Wn(y, N)), pe(i));
1031
- w = /* @__PURE__ */ l.createElement(_n, Object.assign({}, T));
1013
+ prefixCls: `${f}-title`
1014
+ }, Ln(y, N)), he(i));
1015
+ w = /* @__PURE__ */ l.createElement(Dn, Object.assign({}, T));
1032
1016
  }
1033
1017
  let z;
1034
1018
  if (N) {
1035
1019
  const T = Object.assign(Object.assign({
1036
- prefixCls: `${m}-paragraph`
1037
- }, qn(y, $)), pe(u));
1038
- z = /* @__PURE__ */ l.createElement(Ln, Object.assign({}, T));
1020
+ prefixCls: `${f}-paragraph`
1021
+ }, _n(y, $)), he(u));
1022
+ z = /* @__PURE__ */ l.createElement(An, Object.assign({}, T));
1039
1023
  }
1040
- S = /* @__PURE__ */ l.createElement("div", {
1041
- className: `${m}-content`
1024
+ O = /* @__PURE__ */ l.createElement("div", {
1025
+ className: `${f}-content`
1042
1026
  }, w, z);
1043
1027
  }
1044
- const R = E(m, {
1045
- [`${m}-with-avatar`]: y,
1046
- [`${m}-active`]: s,
1047
- [`${m}-rtl`]: v === "rtl",
1048
- [`${m}-round`]: f
1028
+ const R = S(f, {
1029
+ [`${f}-with-avatar`]: y,
1030
+ [`${f}-active`]: s,
1031
+ [`${f}-rtl`]: v === "rtl",
1032
+ [`${f}-round`]: m
1049
1033
  }, b == null ? void 0 : b.className, o, a, p, C);
1050
1034
  return x(/* @__PURE__ */ l.createElement("div", {
1051
1035
  className: R,
1052
1036
  style: Object.assign(Object.assign({}, b == null ? void 0 : b.style), r)
1053
- }, O, S));
1037
+ }, E, O));
1054
1038
  }
1055
1039
  return d ?? null;
1056
1040
  };
1057
- Y.Button = zn;
1058
- Y.Avatar = Bn;
1059
- Y.Input = kn;
1060
- Y.Image = Hn;
1061
- Y.Node = An;
1041
+ Y.Button = Tn;
1042
+ Y.Avatar = Rn;
1043
+ Y.Input = zn;
1044
+ Y.Image = Bn;
1045
+ Y.Node = Hn;
1062
1046
  process.env.NODE_ENV !== "production" && (Y.displayName = "Skeleton");
1063
1047
  function Ge() {
1064
1048
  }
1065
- const Gn = /* @__PURE__ */ l.createContext({
1049
+ const Vn = /* @__PURE__ */ l.createContext({
1066
1050
  add: Ge,
1067
1051
  remove: Ge
1068
1052
  });
1069
- function Un(e) {
1070
- const t = l.useContext(Gn), n = l.useRef();
1071
- return Ft((a) => {
1053
+ function Wn(e) {
1054
+ const t = l.useContext(Vn), n = l.useRef();
1055
+ return Dt((a) => {
1072
1056
  if (a) {
1073
1057
  const r = e ? a.querySelector(e) : a;
1074
1058
  t.add(r), n.current = r;
@@ -1081,8 +1065,8 @@ const Ue = () => {
1081
1065
  cancelButtonProps: e,
1082
1066
  cancelTextLocale: t,
1083
1067
  onCancel: n
1084
- } = ne(oe);
1085
- return /* @__PURE__ */ h.createElement(Ne, Object.assign({
1068
+ } = ee(oe);
1069
+ return /* @__PURE__ */ h.createElement(Ee, Object.assign({
1086
1070
  onClick: n
1087
1071
  }, e), t);
1088
1072
  }, Xe = () => {
@@ -1092,20 +1076,20 @@ const Ue = () => {
1092
1076
  okType: n,
1093
1077
  okTextLocale: o,
1094
1078
  onOk: a
1095
- } = ne(oe);
1096
- return /* @__PURE__ */ h.createElement(Ne, Object.assign({}, at(n), {
1079
+ } = ee(oe);
1080
+ return /* @__PURE__ */ h.createElement(Ee, Object.assign({}, at(n), {
1097
1081
  loading: e,
1098
1082
  onClick: a
1099
1083
  }, t), o);
1100
1084
  };
1101
- function mt(e, t) {
1085
+ function dt(e, t) {
1102
1086
  return /* @__PURE__ */ h.createElement("span", {
1103
1087
  className: `${e}-close-x`
1104
- }, t || /* @__PURE__ */ h.createElement(we, {
1088
+ }, t || /* @__PURE__ */ h.createElement(Ne, {
1105
1089
  className: `${e}-close-icon`
1106
1090
  }));
1107
1091
  }
1108
- const gt = (e) => {
1092
+ const ut = (e) => {
1109
1093
  const {
1110
1094
  okText: t,
1111
1095
  okType: n = "primary",
@@ -1116,25 +1100,25 @@ const gt = (e) => {
1116
1100
  okButtonProps: c,
1117
1101
  cancelButtonProps: i,
1118
1102
  footer: u
1119
- } = e, [s] = Ee("Modal", et()), f = t || (s == null ? void 0 : s.okText), g = o || (s == null ? void 0 : s.cancelText), v = {
1103
+ } = e, [s] = Oe("Modal", et()), m = t || (s == null ? void 0 : s.okText), g = o || (s == null ? void 0 : s.cancelText), v = {
1120
1104
  confirmLoading: a,
1121
1105
  okButtonProps: c,
1122
1106
  cancelButtonProps: i,
1123
- okTextLocale: f,
1107
+ okTextLocale: m,
1124
1108
  cancelTextLocale: g,
1125
1109
  okType: n,
1126
1110
  onOk: r,
1127
1111
  onCancel: d
1128
- }, b = h.useMemo(() => v, G(Object.values(v)));
1129
- let m;
1130
- return typeof u == "function" || typeof u > "u" ? (m = /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(Ue, null), /* @__PURE__ */ h.createElement(Xe, null)), typeof u == "function" && (m = u(m, {
1112
+ }, b = h.useMemo(() => v, q(Object.values(v)));
1113
+ let f;
1114
+ return typeof u == "function" || typeof u > "u" ? (f = /* @__PURE__ */ h.createElement(h.Fragment, null, /* @__PURE__ */ h.createElement(Ue, null), /* @__PURE__ */ h.createElement(Xe, null)), typeof u == "function" && (f = u(f, {
1131
1115
  OkBtn: Xe,
1132
1116
  CancelBtn: Ue
1133
- })), m = /* @__PURE__ */ h.createElement(ct, {
1117
+ })), f = /* @__PURE__ */ h.createElement(rt, {
1134
1118
  value: b
1135
- }, m)) : m = u, /* @__PURE__ */ h.createElement(Ht, {
1119
+ }, f)) : f = u, /* @__PURE__ */ h.createElement(Ft, {
1136
1120
  disabled: !1
1137
- }, m);
1121
+ }, f);
1138
1122
  };
1139
1123
  function Ke(e) {
1140
1124
  return {
@@ -1142,7 +1126,7 @@ function Ke(e) {
1142
1126
  inset: 0
1143
1127
  };
1144
1128
  }
1145
- const Xn = (e) => {
1129
+ const qn = (e) => {
1146
1130
  const {
1147
1131
  componentCls: t,
1148
1132
  antCls: n
@@ -1179,9 +1163,9 @@ const Xn = (e) => {
1179
1163
  })
1180
1164
  }
1181
1165
  }, {
1182
- [`${t}-root`]: vn(e)
1166
+ [`${t}-root`]: fn(e)
1183
1167
  }];
1184
- }, Kn = (e) => {
1168
+ }, Gn = (e) => {
1185
1169
  const {
1186
1170
  componentCls: t
1187
1171
  } = e;
@@ -1224,7 +1208,7 @@ const Xn = (e) => {
1224
1208
  },
1225
1209
  // ======================== Modal ========================
1226
1210
  {
1227
- [t]: Object.assign(Object.assign({}, kt(e)), {
1211
+ [t]: Object.assign(Object.assign({}, Lt(e)), {
1228
1212
  pointerEvents: "none",
1229
1213
  position: "relative",
1230
1214
  top: 100,
@@ -1288,7 +1272,7 @@ const Xn = (e) => {
1288
1272
  "&:active": {
1289
1273
  backgroundColor: e.colorBgTextActive
1290
1274
  }
1291
- }, At(e)),
1275
+ }, _t(e)),
1292
1276
  [`${t}-header`]: {
1293
1277
  color: e.colorText,
1294
1278
  background: e.headerBg,
@@ -1347,7 +1331,7 @@ const Xn = (e) => {
1347
1331
  }
1348
1332
  }
1349
1333
  ];
1350
- }, Qn = (e) => {
1334
+ }, Un = (e) => {
1351
1335
  const {
1352
1336
  componentCls: t
1353
1337
  } = e;
@@ -1361,7 +1345,7 @@ const Xn = (e) => {
1361
1345
  }
1362
1346
  }
1363
1347
  };
1364
- }, Ct = (e) => {
1348
+ }, mt = (e) => {
1365
1349
  const t = e.padding, n = e.fontSizeHeading5, o = e.lineHeightHeading5;
1366
1350
  return Je(e, {
1367
1351
  modalHeaderHeight: e.calc(e.calc(o).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),
@@ -1374,7 +1358,7 @@ const Xn = (e) => {
1374
1358
  modalConfirmIconSize: e.fontHeight,
1375
1359
  modalTitleHeight: e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()
1376
1360
  });
1377
- }, vt = (e) => ({
1361
+ }, ft = (e) => ({
1378
1362
  footerBg: "transparent",
1379
1363
  headerBg: e.colorBgElevated,
1380
1364
  titleLineHeight: e.lineHeightHeading5,
@@ -1394,65 +1378,65 @@ const Xn = (e) => {
1394
1378
  confirmBodyPadding: e.wireframe ? `${P(e.padding * 2)} ${P(e.padding * 2)} ${P(e.paddingLG)}` : 0,
1395
1379
  confirmIconMarginInlineEnd: e.wireframe ? e.margin : e.marginSM,
1396
1380
  confirmBtnsMarginTop: e.wireframe ? e.marginLG : e.marginSM
1397
- }), bt = Ye("Modal", (e) => {
1398
- const t = Ct(e);
1399
- return [Kn(t), Qn(t), Xn(t), Qt(t, "zoom")];
1400
- }, vt, {
1381
+ }), gt = Ye("Modal", (e) => {
1382
+ const t = mt(e);
1383
+ return [Gn(t), Un(t), qn(t), nn(t, "zoom")];
1384
+ }, ft, {
1401
1385
  unitless: {
1402
1386
  titleLineHeight: !0
1403
1387
  }
1404
1388
  });
1405
- var Zn = function(e, t) {
1389
+ var Xn = function(e, t) {
1406
1390
  var n = {};
1407
1391
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
1408
1392
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, o = Object.getOwnPropertySymbols(e); a < o.length; a++)
1409
1393
  t.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (n[o[a]] = e[o[a]]);
1410
1394
  return n;
1411
1395
  };
1412
- let he;
1413
- const Yn = (e) => {
1414
- he = {
1396
+ let ye;
1397
+ const Kn = (e) => {
1398
+ ye = {
1415
1399
  x: e.pageX,
1416
1400
  y: e.pageY
1417
1401
  }, setTimeout(() => {
1418
- he = null;
1402
+ ye = null;
1419
1403
  }, 100);
1420
1404
  };
1421
- On() && document.documentElement.addEventListener("click", Yn, !0);
1422
- const pt = (e) => {
1405
+ $n() && document.documentElement.addEventListener("click", Kn, !0);
1406
+ const Ct = (e) => {
1423
1407
  var t;
1424
1408
  const {
1425
1409
  getPopupContainer: n,
1426
1410
  getPrefixCls: o,
1427
1411
  direction: a,
1428
1412
  modal: r
1429
- } = l.useContext(_), d = (A) => {
1413
+ } = l.useContext(L), d = (D) => {
1430
1414
  const {
1431
1415
  onCancel: M
1432
1416
  } = e;
1433
- M == null || M(A);
1434
- }, c = (A) => {
1417
+ M == null || M(D);
1418
+ }, c = (D) => {
1435
1419
  const {
1436
1420
  onOk: M
1437
1421
  } = e;
1438
- M == null || M(A);
1422
+ M == null || M(D);
1439
1423
  };
1440
1424
  if (process.env.NODE_ENV !== "production") {
1441
- const A = xe("Modal");
1425
+ const D = xe("Modal");
1442
1426
  [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((M) => {
1443
1427
  let [le, de] = M;
1444
- A.deprecated(!(le in e), le, de);
1428
+ D.deprecated(!(le in e), le, de);
1445
1429
  });
1446
1430
  }
1447
1431
  const {
1448
1432
  prefixCls: i,
1449
1433
  className: u,
1450
1434
  rootClassName: s,
1451
- open: f,
1435
+ open: m,
1452
1436
  wrapClassName: g,
1453
1437
  centered: v,
1454
1438
  getContainer: b,
1455
- focusTriggerAfterClose: m = !0,
1439
+ focusTriggerAfterClose: f = !0,
1456
1440
  style: x,
1457
1441
  // Deprecated
1458
1442
  visible: p,
@@ -1460,61 +1444,61 @@ const pt = (e) => {
1460
1444
  footer: y,
1461
1445
  classNames: $,
1462
1446
  styles: N,
1463
- children: O,
1464
- loading: S
1465
- } = e, R = Zn(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), w = o("modal", i), z = o(), T = ot(w), [V, L, B] = bt(w, T), F = E(g, {
1447
+ children: E,
1448
+ loading: O
1449
+ } = e, R = Xn(e, ["prefixCls", "className", "rootClassName", "open", "wrapClassName", "centered", "getContainer", "focusTriggerAfterClose", "style", "visible", "width", "footer", "classNames", "styles", "children", "loading"]), w = o("modal", i), z = o(), T = ot(w), [_, F, B] = gt(w, T), H = S(g, {
1466
1450
  [`${w}-centered`]: !!v,
1467
1451
  [`${w}-wrap-rtl`]: a === "rtl"
1468
- }), W = y !== null && !S ? /* @__PURE__ */ l.createElement(gt, Object.assign({}, e, {
1452
+ }), V = y !== null && !O ? /* @__PURE__ */ l.createElement(ut, Object.assign({}, e, {
1469
1453
  onOk: c,
1470
1454
  onCancel: d
1471
- })) : null, [q, U, te] = Sn(_e(e), _e(r), {
1455
+ })) : null, [W, G, ne] = xn(_e(e), _e(r), {
1472
1456
  closable: !0,
1473
- closeIcon: /* @__PURE__ */ l.createElement(we, {
1457
+ closeIcon: /* @__PURE__ */ l.createElement(Ne, {
1474
1458
  className: `${w}-close-icon`
1475
1459
  }),
1476
- closeIconRender: (A) => mt(w, A)
1477
- }), K = Un(`.${w}-content`), [Q, k] = Zt("Modal", R.zIndex);
1478
- return V(/* @__PURE__ */ l.createElement(Yt, {
1460
+ closeIconRender: (D) => dt(w, D)
1461
+ }), K = Wn(`.${w}-content`), [Q, A] = on("Modal", R.zIndex);
1462
+ return _(/* @__PURE__ */ l.createElement(an, {
1479
1463
  form: !0,
1480
1464
  space: !0
1481
- }, /* @__PURE__ */ l.createElement(Jt.Provider, {
1482
- value: k
1483
- }, /* @__PURE__ */ l.createElement(ft, Object.assign({
1465
+ }, /* @__PURE__ */ l.createElement(ln.Provider, {
1466
+ value: A
1467
+ }, /* @__PURE__ */ l.createElement(ct, Object.assign({
1484
1468
  width: C
1485
1469
  }, R, {
1486
1470
  zIndex: Q,
1487
1471
  getContainer: b === void 0 ? n : b,
1488
1472
  prefixCls: w,
1489
- rootClassName: E(L, s, B, T),
1490
- footer: W,
1491
- visible: f ?? p,
1492
- mousePosition: (t = R.mousePosition) !== null && t !== void 0 ? t : he,
1473
+ rootClassName: S(F, s, B, T),
1474
+ footer: V,
1475
+ visible: m ?? p,
1476
+ mousePosition: (t = R.mousePosition) !== null && t !== void 0 ? t : ye,
1493
1477
  onClose: d,
1494
- closable: q && {
1495
- disabled: te,
1496
- closeIcon: U
1478
+ closable: W && {
1479
+ disabled: ne,
1480
+ closeIcon: G
1497
1481
  },
1498
- closeIcon: U,
1499
- focusTriggerAfterClose: m,
1482
+ closeIcon: G,
1483
+ focusTriggerAfterClose: f,
1500
1484
  transitionName: ie(z, "zoom", e.transitionName),
1501
1485
  maskTransitionName: ie(z, "fade", e.maskTransitionName),
1502
- className: E(L, u, r == null ? void 0 : r.className),
1486
+ className: S(F, u, r == null ? void 0 : r.className),
1503
1487
  style: Object.assign(Object.assign({}, r == null ? void 0 : r.style), x),
1504
1488
  classNames: Object.assign(Object.assign(Object.assign({}, r == null ? void 0 : r.classNames), $), {
1505
- wrapper: E(F, $ == null ? void 0 : $.wrapper)
1489
+ wrapper: S(H, $ == null ? void 0 : $.wrapper)
1506
1490
  }),
1507
1491
  styles: Object.assign(Object.assign({}, r == null ? void 0 : r.styles), N),
1508
1492
  panelRef: K
1509
- }), S ? /* @__PURE__ */ l.createElement(Y, {
1493
+ }), O ? /* @__PURE__ */ l.createElement(Y, {
1510
1494
  active: !0,
1511
1495
  title: !1,
1512
1496
  paragraph: {
1513
1497
  rows: 4
1514
1498
  },
1515
1499
  className: `${w}-body-skeleton`
1516
- }) : O))));
1517
- }, Jn = (e) => {
1500
+ }) : E))));
1501
+ }, Qn = (e) => {
1518
1502
  const {
1519
1503
  componentCls: t,
1520
1504
  titleFontSize: n,
@@ -1534,7 +1518,7 @@ const pt = (e) => {
1534
1518
  [`${e.antCls}-modal-header`]: {
1535
1519
  display: "none"
1536
1520
  },
1537
- [`${s}-body-wrapper`]: Object.assign({}, Lt()),
1521
+ [`${s}-body-wrapper`]: Object.assign({}, Wt()),
1538
1522
  [`&${t} ${t}-body`]: {
1539
1523
  padding: u
1540
1524
  },
@@ -1598,21 +1582,21 @@ const pt = (e) => {
1598
1582
  color: e.colorSuccess
1599
1583
  }
1600
1584
  };
1601
- }, eo = Dt(["Modal", "confirm"], (e) => {
1602
- const t = Ct(e);
1603
- return [Jn(t)];
1604
- }, vt, {
1585
+ }, Zn = Vt(["Modal", "confirm"], (e) => {
1586
+ const t = mt(e);
1587
+ return [Qn(t)];
1588
+ }, ft, {
1605
1589
  // confirm is weak than modal since no conflict here
1606
1590
  order: -1e3
1607
1591
  });
1608
- var to = function(e, t) {
1592
+ var Yn = function(e, t) {
1609
1593
  var n = {};
1610
1594
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
1611
1595
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, o = Object.getOwnPropertySymbols(e); a < o.length; a++)
1612
1596
  t.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (n[o[a]] = e[o[a]]);
1613
1597
  return n;
1614
1598
  };
1615
- function ht(e) {
1599
+ function vt(e) {
1616
1600
  const {
1617
1601
  prefixCls: t,
1618
1602
  icon: n,
@@ -1624,56 +1608,56 @@ function ht(e) {
1624
1608
  footer: i,
1625
1609
  // Legacy for static function usage
1626
1610
  locale: u
1627
- } = e, s = to(e, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]);
1611
+ } = e, s = Yn(e, ["prefixCls", "icon", "okText", "cancelText", "confirmPrefixCls", "type", "okCancel", "footer", "locale"]);
1628
1612
  if (process.env.NODE_ENV !== "production") {
1629
- const S = xe("Modal");
1630
- process.env.NODE_ENV !== "production" && S(!(typeof n == "string" && n.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`);
1613
+ const O = xe("Modal");
1614
+ process.env.NODE_ENV !== "production" && O(!(typeof n == "string" && n.length > 2), "breaking", `\`icon\` is using ReactNode instead of string naming in v4. Please check \`${n}\` at https://ant.design/components/icon`);
1631
1615
  }
1632
- let f = n;
1616
+ let m = n;
1633
1617
  if (!n && n !== null)
1634
1618
  switch (d) {
1635
1619
  case "info":
1636
- f = /* @__PURE__ */ l.createElement(it, null);
1620
+ m = /* @__PURE__ */ l.createElement(zt, null);
1637
1621
  break;
1638
1622
  case "success":
1639
- f = /* @__PURE__ */ l.createElement(lt, null);
1623
+ m = /* @__PURE__ */ l.createElement(Bt, null);
1640
1624
  break;
1641
1625
  case "error":
1642
- f = /* @__PURE__ */ l.createElement(en, null);
1626
+ m = /* @__PURE__ */ l.createElement(Kt, null);
1643
1627
  break;
1644
1628
  default:
1645
- f = /* @__PURE__ */ l.createElement(rt, null);
1629
+ m = /* @__PURE__ */ l.createElement(Mt, null);
1646
1630
  }
1647
- const g = c ?? d === "confirm", v = e.autoFocusButton === null ? !1 : e.autoFocusButton || "ok", [b] = Ee("Modal"), m = u || b, x = o || (g ? m == null ? void 0 : m.okText : m == null ? void 0 : m.justOkText), p = a || (m == null ? void 0 : m.cancelText), C = Object.assign({
1631
+ const g = c ?? d === "confirm", v = e.autoFocusButton === null ? !1 : e.autoFocusButton || "ok", [b] = Oe("Modal"), f = u || b, x = o || (g ? f == null ? void 0 : f.okText : f == null ? void 0 : f.justOkText), p = a || (f == null ? void 0 : f.cancelText), C = Object.assign({
1648
1632
  autoFocusButton: v,
1649
1633
  cancelTextLocale: p,
1650
1634
  okTextLocale: x,
1651
1635
  mergedOkCancel: g
1652
- }, s), y = l.useMemo(() => C, G(Object.values(C))), $ = /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(ke, null), /* @__PURE__ */ l.createElement(Ae, null)), N = e.title !== void 0 && e.title !== null, O = `${r}-body`;
1636
+ }, s), y = l.useMemo(() => C, q(Object.values(C))), $ = /* @__PURE__ */ l.createElement(l.Fragment, null, /* @__PURE__ */ l.createElement(Ae, null), /* @__PURE__ */ l.createElement(De, null)), N = e.title !== void 0 && e.title !== null, E = `${r}-body`;
1653
1637
  return /* @__PURE__ */ l.createElement("div", {
1654
1638
  className: `${r}-body-wrapper`
1655
1639
  }, /* @__PURE__ */ l.createElement("div", {
1656
- className: E(O, {
1657
- [`${O}-has-title`]: N
1640
+ className: S(E, {
1641
+ [`${E}-has-title`]: N
1658
1642
  })
1659
- }, f, /* @__PURE__ */ l.createElement("div", {
1643
+ }, m, /* @__PURE__ */ l.createElement("div", {
1660
1644
  className: `${r}-paragraph`
1661
1645
  }, N && /* @__PURE__ */ l.createElement("span", {
1662
1646
  className: `${r}-title`
1663
1647
  }, e.title), /* @__PURE__ */ l.createElement("div", {
1664
1648
  className: `${r}-content`
1665
- }, e.content))), i === void 0 || typeof i == "function" ? /* @__PURE__ */ l.createElement(ct, {
1649
+ }, e.content))), i === void 0 || typeof i == "function" ? /* @__PURE__ */ l.createElement(rt, {
1666
1650
  value: y
1667
1651
  }, /* @__PURE__ */ l.createElement("div", {
1668
1652
  className: `${r}-btns`
1669
1653
  }, typeof i == "function" ? i($, {
1670
- OkBtn: Ae,
1671
- CancelBtn: ke
1672
- }) : $)) : i, /* @__PURE__ */ l.createElement(eo, {
1654
+ OkBtn: De,
1655
+ CancelBtn: Ae
1656
+ }) : $)) : i, /* @__PURE__ */ l.createElement(Zn, {
1673
1657
  prefixCls: t
1674
1658
  }));
1675
1659
  }
1676
- const yt = (e) => {
1660
+ const bt = (e) => {
1677
1661
  const {
1678
1662
  close: t,
1679
1663
  zIndex: n,
@@ -1685,32 +1669,32 @@ const yt = (e) => {
1685
1669
  maskStyle: i,
1686
1670
  direction: u,
1687
1671
  prefixCls: s,
1688
- wrapClassName: f,
1672
+ wrapClassName: m,
1689
1673
  rootPrefixCls: g,
1690
1674
  bodyStyle: v,
1691
1675
  closable: b = !1,
1692
- closeIcon: m,
1676
+ closeIcon: f,
1693
1677
  modalRender: x,
1694
1678
  focusTriggerAfterClose: p,
1695
1679
  onConfirm: C,
1696
1680
  styles: y
1697
1681
  } = e;
1698
1682
  if (process.env.NODE_ENV !== "production") {
1699
- const V = xe("Modal");
1700
- [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((L) => {
1701
- let [B, F] = L;
1702
- V.deprecated(!(B in e), B, F);
1683
+ const _ = xe("Modal");
1684
+ [["visible", "open"], ["bodyStyle", "styles.body"], ["maskStyle", "styles.mask"]].forEach((F) => {
1685
+ let [B, H] = F;
1686
+ _.deprecated(!(B in e), B, H);
1703
1687
  });
1704
1688
  }
1705
- const $ = `${s}-confirm`, N = e.width || 416, O = e.style || {}, S = e.mask === void 0 ? !0 : e.mask, R = e.maskClosable === void 0 ? !1 : e.maskClosable, w = E($, `${$}-${e.type}`, {
1689
+ const $ = `${s}-confirm`, N = e.width || 416, E = e.style || {}, O = e.mask === void 0 ? !0 : e.mask, R = e.maskClosable === void 0 ? !1 : e.maskClosable, w = S($, `${$}-${e.type}`, {
1706
1690
  [`${$}-rtl`]: u === "rtl"
1707
- }, e.className), [, z] = _t(), T = l.useMemo(() => n !== void 0 ? n : z.zIndexPopupBase + tn, [n, z]);
1708
- return /* @__PURE__ */ l.createElement(pt, {
1691
+ }, e.className), [, z] = qt(), T = l.useMemo(() => n !== void 0 ? n : z.zIndexPopupBase + rn, [n, z]);
1692
+ return /* @__PURE__ */ l.createElement(Ct, {
1709
1693
  prefixCls: s,
1710
1694
  className: w,
1711
- wrapClassName: E({
1695
+ wrapClassName: S({
1712
1696
  [`${$}-centered`]: !!e.centered
1713
- }, f),
1697
+ }, m),
1714
1698
  onCancel: () => {
1715
1699
  t == null || t({
1716
1700
  triggerCancel: !0
@@ -1721,9 +1705,9 @@ const yt = (e) => {
1721
1705
  footer: null,
1722
1706
  transitionName: ie(g || "", "zoom", e.transitionName),
1723
1707
  maskTransitionName: ie(g || "", "fade", e.maskTransitionName),
1724
- mask: S,
1708
+ mask: O,
1725
1709
  maskClosable: R,
1726
- style: O,
1710
+ style: E,
1727
1711
  styles: Object.assign({
1728
1712
  body: v,
1729
1713
  mask: i
@@ -1735,10 +1719,10 @@ const yt = (e) => {
1735
1719
  centered: d,
1736
1720
  getContainer: c,
1737
1721
  closable: b,
1738
- closeIcon: m,
1722
+ closeIcon: f,
1739
1723
  modalRender: x,
1740
1724
  focusTriggerAfterClose: p
1741
- }, /* @__PURE__ */ l.createElement(ht, Object.assign({}, e, {
1725
+ }, /* @__PURE__ */ l.createElement(vt, Object.assign({}, e, {
1742
1726
  confirmPrefixCls: $
1743
1727
  })));
1744
1728
  }, je = (e) => {
@@ -1753,21 +1737,21 @@ const yt = (e) => {
1753
1737
  iconPrefixCls: n,
1754
1738
  direction: o,
1755
1739
  theme: a
1756
- }, /* @__PURE__ */ l.createElement(yt, Object.assign({}, e)));
1740
+ }, /* @__PURE__ */ l.createElement(bt, Object.assign({}, e)));
1757
1741
  };
1758
- process.env.NODE_ENV !== "production" && (yt.displayName = "ConfirmDialog", je.displayName = "ConfirmDialogWrapper");
1742
+ process.env.NODE_ENV !== "production" && (bt.displayName = "ConfirmDialog", je.displayName = "ConfirmDialogWrapper");
1759
1743
  const Z = [];
1760
- let xt = "";
1761
- function $t() {
1762
- return xt;
1744
+ let pt = "";
1745
+ function ht() {
1746
+ return pt;
1763
1747
  }
1764
- const no = (e) => {
1748
+ const Jn = (e) => {
1765
1749
  var t, n;
1766
1750
  const {
1767
1751
  prefixCls: o,
1768
1752
  getContainer: a,
1769
1753
  direction: r
1770
- } = e, d = et(), c = ne(_), i = $t() || c.getPrefixCls(), u = o || `${i}-modal`;
1754
+ } = e, d = et(), c = ee(L), i = ht() || c.getPrefixCls(), u = o || `${i}-modal`;
1771
1755
  let s = a;
1772
1756
  return s === !1 && (s = void 0, process.env.NODE_ENV !== "production" && process.env.NODE_ENV !== "production" && nt(!1, "Modal", "Static method not support `getContainer` to be `false` since it do not have context env.")), /* @__PURE__ */ h.createElement(je, Object.assign({}, e, {
1773
1757
  rootPrefixCls: i,
@@ -1780,41 +1764,41 @@ const no = (e) => {
1780
1764
  }));
1781
1765
  };
1782
1766
  function ae(e) {
1783
- const t = Wt();
1784
- process.env.NODE_ENV !== "production" && !t.holderRender && Vt("Modal");
1767
+ const t = Ut();
1768
+ process.env.NODE_ENV !== "production" && !t.holderRender && Gt("Modal");
1785
1769
  const n = document.createDocumentFragment();
1786
1770
  let o = Object.assign(Object.assign({}, e), {
1787
1771
  close: c,
1788
1772
  open: !0
1789
1773
  }), a;
1790
1774
  function r() {
1791
- for (var u, s = arguments.length, f = new Array(s), g = 0; g < s; g++)
1792
- f[g] = arguments[g];
1793
- if (f.some((m) => m == null ? void 0 : m.triggerCancel)) {
1775
+ for (var u, s = arguments.length, m = new Array(s), g = 0; g < s; g++)
1776
+ m[g] = arguments[g];
1777
+ if (m.some((f) => f == null ? void 0 : f.triggerCancel)) {
1794
1778
  var b;
1795
1779
  (u = e.onCancel) === null || u === void 0 || (b = u).call.apply(b, [e, () => {
1796
- }].concat(G(f.slice(1))));
1780
+ }].concat(q(m.slice(1))));
1797
1781
  }
1798
- for (let m = 0; m < Z.length; m++)
1799
- if (Z[m] === c) {
1800
- Z.splice(m, 1);
1782
+ for (let f = 0; f < Z.length; f++)
1783
+ if (Z[f] === c) {
1784
+ Z.splice(f, 1);
1801
1785
  break;
1802
1786
  }
1803
- nn(n);
1787
+ Qt(n);
1804
1788
  }
1805
1789
  function d(u) {
1806
1790
  clearTimeout(a), a = setTimeout(() => {
1807
- const s = t.getPrefixCls(void 0, $t()), f = t.getIconPrefixCls(), g = t.getTheme(), v = /* @__PURE__ */ h.createElement(no, Object.assign({}, u));
1808
- on(/* @__PURE__ */ h.createElement(tt, {
1791
+ const s = t.getPrefixCls(void 0, ht()), m = t.getIconPrefixCls(), g = t.getTheme(), v = /* @__PURE__ */ h.createElement(Jn, Object.assign({}, u));
1792
+ Zt(/* @__PURE__ */ h.createElement(tt, {
1809
1793
  prefixCls: s,
1810
- iconPrefixCls: f,
1794
+ iconPrefixCls: m,
1811
1795
  theme: g
1812
1796
  }, t.holderRender ? t.holderRender(v) : v), n);
1813
1797
  });
1814
1798
  }
1815
1799
  function c() {
1816
- for (var u = arguments.length, s = new Array(u), f = 0; f < u; f++)
1817
- s[f] = arguments[f];
1800
+ for (var u = arguments.length, s = new Array(u), m = 0; m < u; m++)
1801
+ s[m] = arguments[m];
1818
1802
  o = Object.assign(Object.assign({}, o), {
1819
1803
  open: !1,
1820
1804
  afterClose: () => {
@@ -1830,96 +1814,96 @@ function ae(e) {
1830
1814
  update: i
1831
1815
  };
1832
1816
  }
1833
- function Et(e) {
1817
+ function yt(e) {
1834
1818
  return Object.assign(Object.assign({}, e), {
1835
1819
  type: "warning"
1836
1820
  });
1837
1821
  }
1838
- function St(e) {
1822
+ function xt(e) {
1839
1823
  return Object.assign(Object.assign({}, e), {
1840
1824
  type: "info"
1841
1825
  });
1842
1826
  }
1843
- function Ot(e) {
1827
+ function $t(e) {
1844
1828
  return Object.assign(Object.assign({}, e), {
1845
1829
  type: "success"
1846
1830
  });
1847
1831
  }
1848
- function Nt(e) {
1832
+ function St(e) {
1849
1833
  return Object.assign(Object.assign({}, e), {
1850
1834
  type: "error"
1851
1835
  });
1852
1836
  }
1853
- function wt(e) {
1837
+ function Ot(e) {
1854
1838
  return Object.assign(Object.assign({}, e), {
1855
1839
  type: "confirm"
1856
1840
  });
1857
1841
  }
1858
- function oo(e) {
1842
+ function eo(e) {
1859
1843
  let {
1860
1844
  rootPrefixCls: t
1861
1845
  } = e;
1862
- process.env.NODE_ENV !== "production" && nt(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), xt = t;
1846
+ process.env.NODE_ENV !== "production" && nt(!1, "Modal", "Modal.config is deprecated. Please use ConfigProvider.config instead."), pt = t;
1863
1847
  }
1864
- var ao = function(e, t) {
1848
+ var to = function(e, t) {
1865
1849
  var n = {};
1866
1850
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
1867
1851
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, o = Object.getOwnPropertySymbols(e); a < o.length; a++)
1868
1852
  t.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (n[o[a]] = e[o[a]]);
1869
1853
  return n;
1870
1854
  };
1871
- const lo = (e, t) => {
1855
+ const no = (e, t) => {
1872
1856
  var n, {
1873
1857
  afterClose: o,
1874
1858
  config: a
1875
- } = e, r = ao(e, ["afterClose", "config"]);
1859
+ } = e, r = to(e, ["afterClose", "config"]);
1876
1860
  const [d, c] = l.useState(!0), [i, u] = l.useState(a), {
1877
1861
  direction: s,
1878
- getPrefixCls: f
1879
- } = l.useContext(_), g = f("modal"), v = f(), b = () => {
1862
+ getPrefixCls: m
1863
+ } = l.useContext(L), g = m("modal"), v = m(), b = () => {
1880
1864
  var C;
1881
1865
  o(), (C = i.afterClose) === null || C === void 0 || C.call(i);
1882
- }, m = function() {
1866
+ }, f = function() {
1883
1867
  var C;
1884
1868
  c(!1);
1885
1869
  for (var y = arguments.length, $ = new Array(y), N = 0; N < y; N++)
1886
1870
  $[N] = arguments[N];
1887
1871
  if ($.some((R) => R == null ? void 0 : R.triggerCancel)) {
1888
- var S;
1889
- (C = i.onCancel) === null || C === void 0 || (S = C).call.apply(S, [i, () => {
1890
- }].concat(G($.slice(1))));
1872
+ var O;
1873
+ (C = i.onCancel) === null || C === void 0 || (O = C).call.apply(O, [i, () => {
1874
+ }].concat(q($.slice(1))));
1891
1875
  }
1892
1876
  };
1893
1877
  l.useImperativeHandle(t, () => ({
1894
- destroy: m,
1878
+ destroy: f,
1895
1879
  update: (C) => {
1896
1880
  u((y) => Object.assign(Object.assign({}, y), C));
1897
1881
  }
1898
1882
  }));
1899
- const x = (n = i.okCancel) !== null && n !== void 0 ? n : i.type === "confirm", [p] = Ee("Modal", qt.Modal);
1883
+ const x = (n = i.okCancel) !== null && n !== void 0 ? n : i.type === "confirm", [p] = Oe("Modal", Xt.Modal);
1900
1884
  return /* @__PURE__ */ l.createElement(je, Object.assign({
1901
1885
  prefixCls: g,
1902
1886
  rootPrefixCls: v
1903
1887
  }, i, {
1904
- close: m,
1888
+ close: f,
1905
1889
  open: d,
1906
1890
  afterClose: b,
1907
1891
  okText: i.okText || (x ? p == null ? void 0 : p.okText : p == null ? void 0 : p.justOkText),
1908
1892
  direction: i.direction || s,
1909
1893
  cancelText: i.cancelText || (p == null ? void 0 : p.cancelText)
1910
1894
  }, r));
1911
- }, ro = /* @__PURE__ */ l.forwardRef(lo);
1895
+ }, oo = /* @__PURE__ */ l.forwardRef(no);
1912
1896
  let Qe = 0;
1913
- const io = /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef((e, t) => {
1914
- const [n, o] = mn();
1897
+ const ao = /* @__PURE__ */ l.memo(/* @__PURE__ */ l.forwardRef((e, t) => {
1898
+ const [n, o] = dn();
1915
1899
  return l.useImperativeHandle(t, () => ({
1916
1900
  patchElement: o
1917
1901
  }), []), /* @__PURE__ */ l.createElement(l.Fragment, null, n);
1918
1902
  }));
1919
- function so() {
1903
+ function lo() {
1920
1904
  const e = l.useRef(null), [t, n] = l.useState([]);
1921
1905
  l.useEffect(() => {
1922
- t.length && (G(t).forEach((d) => {
1906
+ t.length && (q(t).forEach((d) => {
1923
1907
  d();
1924
1908
  }), n([]));
1925
1909
  }, [t]);
@@ -1928,11 +1912,11 @@ function so() {
1928
1912
  Qe += 1;
1929
1913
  const u = /* @__PURE__ */ l.createRef();
1930
1914
  let s;
1931
- const f = new Promise((x) => {
1915
+ const m = new Promise((x) => {
1932
1916
  s = x;
1933
1917
  });
1934
1918
  let g = !1, v;
1935
- const b = /* @__PURE__ */ l.createElement(ro, {
1919
+ const b = /* @__PURE__ */ l.createElement(oo, {
1936
1920
  key: `modal-${Qe}`,
1937
1921
  config: r(c),
1938
1922
  ref: u,
@@ -1950,37 +1934,37 @@ function so() {
1950
1934
  var p;
1951
1935
  (p = u.current) === null || p === void 0 || p.destroy();
1952
1936
  }
1953
- u.current ? x() : n((p) => [].concat(G(p), [x]));
1937
+ u.current ? x() : n((p) => [].concat(q(p), [x]));
1954
1938
  },
1955
1939
  update: (x) => {
1956
1940
  function p() {
1957
1941
  var C;
1958
1942
  (C = u.current) === null || C === void 0 || C.update(x);
1959
1943
  }
1960
- u.current ? p() : n((C) => [].concat(G(C), [p]));
1944
+ u.current ? p() : n((C) => [].concat(q(C), [p]));
1961
1945
  },
1962
- then: (x) => (g = !0, f.then(x))
1946
+ then: (x) => (g = !0, m.then(x))
1963
1947
  };
1964
1948
  }, []);
1965
1949
  return [l.useMemo(() => ({
1966
- info: o(St),
1967
- success: o(Ot),
1968
- error: o(Nt),
1969
- warning: o(Et),
1970
- confirm: o(wt)
1971
- }), []), /* @__PURE__ */ l.createElement(io, {
1950
+ info: o(xt),
1951
+ success: o($t),
1952
+ error: o(St),
1953
+ warning: o(yt),
1954
+ confirm: o(Ot)
1955
+ }), []), /* @__PURE__ */ l.createElement(ao, {
1972
1956
  key: "modal-holder",
1973
1957
  ref: e
1974
1958
  })];
1975
1959
  }
1976
- var co = function(e, t) {
1960
+ var ro = function(e, t) {
1977
1961
  var n = {};
1978
1962
  for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
1979
1963
  if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var a = 0, o = Object.getOwnPropertySymbols(e); a < o.length; a++)
1980
1964
  t.indexOf(o[a]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[a]) && (n[o[a]] = e[o[a]]);
1981
1965
  return n;
1982
1966
  };
1983
- const uo = (e) => {
1967
+ const io = (e) => {
1984
1968
  const {
1985
1969
  prefixCls: t,
1986
1970
  className: n,
@@ -1990,79 +1974,94 @@ const uo = (e) => {
1990
1974
  title: d,
1991
1975
  children: c,
1992
1976
  footer: i
1993
- } = e, u = co(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
1977
+ } = e, u = ro(e, ["prefixCls", "className", "closeIcon", "closable", "type", "title", "children", "footer"]), {
1994
1978
  getPrefixCls: s
1995
- } = l.useContext(_), f = s(), g = t || s("modal"), v = ot(f), [b, m, x] = bt(g, v), p = `${g}-confirm`;
1979
+ } = l.useContext(L), m = s(), g = t || s("modal"), v = ot(m), [b, f, x] = gt(g, v), p = `${g}-confirm`;
1996
1980
  let C = {};
1997
1981
  return r ? C = {
1998
1982
  closable: a ?? !1,
1999
1983
  title: "",
2000
1984
  footer: "",
2001
- children: /* @__PURE__ */ l.createElement(ht, Object.assign({}, e, {
1985
+ children: /* @__PURE__ */ l.createElement(vt, Object.assign({}, e, {
2002
1986
  prefixCls: g,
2003
1987
  confirmPrefixCls: p,
2004
- rootPrefixCls: f,
1988
+ rootPrefixCls: m,
2005
1989
  content: c
2006
1990
  }))
2007
1991
  } : C = {
2008
1992
  closable: a ?? !0,
2009
1993
  title: d,
2010
- footer: i !== null && /* @__PURE__ */ l.createElement(gt, Object.assign({}, e)),
1994
+ footer: i !== null && /* @__PURE__ */ l.createElement(ut, Object.assign({}, e)),
2011
1995
  children: c
2012
1996
  }, b(/* @__PURE__ */ l.createElement(Ie, Object.assign({
2013
1997
  prefixCls: g,
2014
- className: E(m, `${g}-pure-panel`, r && p, r && `${p}-${r}`, n, x, v)
1998
+ className: S(f, `${g}-pure-panel`, r && p, r && `${p}-${r}`, n, x, v)
2015
1999
  }, u, {
2016
- closeIcon: mt(g, o),
2000
+ closeIcon: dt(g, o),
2017
2001
  closable: a
2018
2002
  }, C)));
2019
- }, fo = ln(uo);
2020
- function Pt(e) {
2021
- return ae(Et(e));
2003
+ }, so = sn(io);
2004
+ function Et(e) {
2005
+ return ae(yt(e));
2022
2006
  }
2023
- const H = pt;
2024
- H.useModal = so;
2025
- H.info = function(t) {
2026
- return ae(St(t));
2007
+ const k = Ct;
2008
+ k.useModal = lo;
2009
+ k.info = function(t) {
2010
+ return ae(xt(t));
2027
2011
  };
2028
- H.success = function(t) {
2029
- return ae(Ot(t));
2012
+ k.success = function(t) {
2013
+ return ae($t(t));
2030
2014
  };
2031
- H.error = function(t) {
2032
- return ae(Nt(t));
2015
+ k.error = function(t) {
2016
+ return ae(St(t));
2033
2017
  };
2034
- H.warning = Pt;
2035
- H.warn = Pt;
2036
- H.confirm = function(t) {
2037
- return ae(wt(t));
2018
+ k.warning = Et;
2019
+ k.warn = Et;
2020
+ k.confirm = function(t) {
2021
+ return ae(Ot(t));
2038
2022
  };
2039
- H.destroyAll = function() {
2023
+ k.destroyAll = function() {
2040
2024
  for (; Z.length; ) {
2041
2025
  const t = Z.pop();
2042
2026
  t && t();
2043
2027
  }
2044
2028
  };
2045
- H.config = oo;
2046
- H._InternalPanelDoNotUseOrYouWillBeFired = fo;
2047
- process.env.NODE_ENV !== "production" && (H.displayName = "Modal");
2029
+ k.config = eo;
2030
+ k._InternalPanelDoNotUseOrYouWillBeFired = so;
2031
+ process.env.NODE_ENV !== "production" && (k.displayName = "Modal");
2048
2032
  function Eo(e) {
2049
- const t = {
2033
+ const t = ee(Tt);
2034
+ if (!t)
2035
+ return null;
2036
+ const n = {
2050
2037
  open: e.open === void 0 ? !0 : e.open,
2051
2038
  onClose: e.onClose || (() => {
2052
2039
  }),
2053
2040
  collapse: e.collapse === void 0 ? !1 : e.collapse
2054
2041
  };
2055
2042
  return /* @__PURE__ */ Te(
2056
- H,
2043
+ k,
2057
2044
  {
2058
2045
  title: "Notification Preferences",
2059
- open: t.open,
2046
+ open: n.open,
2060
2047
  onCancel: () => {
2061
- t.onClose();
2048
+ n.onClose();
2062
2049
  },
2063
2050
  footer: null,
2064
2051
  zIndex: 9999,
2065
- children: /* @__PURE__ */ Te(Mt, {})
2052
+ children: [
2053
+ /* @__PURE__ */ ge(jt, {}),
2054
+ t.webPushOptInMessage && /* @__PURE__ */ Te("div", { children: [
2055
+ /* @__PURE__ */ ge(cn, { style: { margin: "10px 0" } }),
2056
+ /* @__PURE__ */ ge(
2057
+ Ht,
2058
+ {
2059
+ hideAfterInteraction: !1,
2060
+ descriptionStyle: { fontSize: 12 }
2061
+ }
2062
+ )
2063
+ ] })
2064
+ ]
2066
2065
  }
2067
2066
  );
2068
2067
  }