@notificationapi/react 0.0.21 → 0.0.22

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.
@@ -1,10 +1,10 @@
1
- import { jsx as R, Fragment as ne, jsxs as K } from "react/jsx-runtime";
2
- import { DeliveryOptions as T, Channels as H, NotificationAPIContext as Qe } from "../components/Provider/index.js";
1
+ import { jsx as R, Fragment as Z, jsxs as q } from "react/jsx-runtime";
2
+ import { NotificationAPIContext as Ue } from "../components/Provider/index.js";
3
3
  import * as s from "react";
4
- import B, { forwardRef as Je, useRef as be, useImperativeHandle as Ze, useContext as en } from "react";
5
- import { s as he, _ as j, L as ae, v as ie, c as _, M as L, g as re, m as le, r as G, u as M, N as Ne, C as W, n as nn, f as ce, D as ke, d as tn, O as on, t as an, o as rn, Q as ln, a as Ce, k as cn, T as sn, R as q } from "./colors.js";
6
- import { I as F, u as J, F as dn, p as Pe, W as Me, w as un, j as me, K as te, x as fe, y as hn, o as ye, A as gn, B as mn, e as fn, T as pn } from "./index3.js";
7
- var vn = `accept acceptCharset accessKey action allowFullScreen allowTransparency
4
+ import B, { forwardRef as Qe, useRef as pe, useImperativeHandle as Ye, useContext as Je } from "react";
5
+ import { s as de, _ as T, L as te, v as oe, c as _, M as A, g as ae, m as ie, r as G, u as M, N as Ee, C as L, n as Ze, f as re, D as Oe, d as en, O as nn, t as tn, o as on, Q as an, a as be, k as rn, T as ln, R as V } from "./colors.js";
6
+ import { I as W, u as Q, F as cn, p as ke, W as Ne, w as sn, j as he, K as ee, x as ge, y as dn, o as ve, A as un, B as hn, e as gn, T as fn } from "./index3.js";
7
+ var mn = `accept acceptCharset accessKey action allowFullScreen allowTransparency
8
8
  alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
9
9
  charSet checked classID className colSpan cols content contentEditable contextMenu
10
10
  controls coords crossOrigin data dateTime default defer dir disabled download draggable
@@ -15,17 +15,17 @@ var vn = `accept acceptCharset accessKey action allowFullScreen allowTransparenc
15
15
  optimum pattern placeholder poster preload radioGroup readOnly rel required
16
16
  reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
17
17
  shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
18
- summary tabIndex target title type useMap value width wmode wrap`, bn = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
18
+ summary tabIndex target title type useMap value width wmode wrap`, pn = `onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
19
19
  onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
20
20
  onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
21
21
  onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
22
22
  onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
23
23
  onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
24
- onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, Cn = "".concat(vn, " ").concat(bn).split(/[\s\n]+/), yn = "aria-", $n = "data-";
25
- function $e(e, n) {
24
+ onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`, bn = "".concat(mn, " ").concat(pn).split(/[\s\n]+/), vn = "aria-", Cn = "data-";
25
+ function Ce(e, n) {
26
26
  return e.indexOf(n) === 0;
27
27
  }
28
- function ze(e) {
28
+ function Pe(e) {
29
29
  var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a;
30
30
  n === !1 ? a = {
31
31
  aria: !0,
@@ -33,16 +33,16 @@ function ze(e) {
33
33
  attr: !0
34
34
  } : n === !0 ? a = {
35
35
  aria: !0
36
- } : a = he({}, n);
36
+ } : a = de({}, n);
37
37
  var t = {};
38
38
  return Object.keys(e).forEach(function(o) {
39
39
  // Aria
40
- (a.aria && (o === "role" || $e(o, yn)) || // Data
41
- a.data && $e(o, $n) || // Attr
42
- a.attr && Cn.includes(o)) && (t[o] = e[o]);
40
+ (a.aria && (o === "role" || Ce(o, vn)) || // Data
41
+ a.data && Ce(o, Cn) || // Attr
42
+ a.attr && bn.includes(o)) && (t[o] = e[o]);
43
43
  }), t;
44
44
  }
45
- const Sn = (e) => ({
45
+ const yn = (e) => ({
46
46
  [e.componentCls]: {
47
47
  // For common/openAnimation
48
48
  [`${e.antCls}-motion-collapse-legacy`]: {
@@ -59,45 +59,45 @@ const Sn = (e) => ({
59
59
  }
60
60
  }
61
61
  });
62
- var xn = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, In = function(n, a) {
63
- return /* @__PURE__ */ s.createElement(F, j({}, n, {
62
+ var $n = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z" } }] }, name: "right", theme: "outlined" }, Sn = function(n, a) {
63
+ return /* @__PURE__ */ s.createElement(W, T({}, n, {
64
64
  ref: a,
65
- icon: xn
65
+ icon: $n
66
66
  }));
67
- }, Re = /* @__PURE__ */ s.forwardRef(In);
68
- process.env.NODE_ENV !== "production" && (Re.displayName = "RightOutlined");
69
- const De = /* @__PURE__ */ s.createContext(null), wn = De.Provider, Be = /* @__PURE__ */ s.createContext(null), En = Be.Provider;
70
- var On = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], Nn = /* @__PURE__ */ Je(function(e, n) {
71
- var a = e.prefixCls, t = a === void 0 ? "rc-checkbox" : a, o = e.className, r = e.style, d = e.checked, i = e.disabled, c = e.defaultChecked, l = c === void 0 ? !1 : c, h = e.type, u = h === void 0 ? "checkbox" : h, C = e.title, f = e.onChange, O = ae(e, On), v = be(null), p = be(null), I = J(l, {
67
+ }, Me = /* @__PURE__ */ s.forwardRef(Sn);
68
+ process.env.NODE_ENV !== "production" && (Me.displayName = "RightOutlined");
69
+ const ze = /* @__PURE__ */ s.createContext(null), xn = ze.Provider, Re = /* @__PURE__ */ s.createContext(null), In = Re.Provider;
70
+ var wn = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], En = /* @__PURE__ */ Qe(function(e, n) {
71
+ var a = e.prefixCls, t = a === void 0 ? "rc-checkbox" : a, o = e.className, r = e.style, d = e.checked, i = e.disabled, c = e.defaultChecked, l = c === void 0 ? !1 : c, h = e.type, u = h === void 0 ? "checkbox" : h, C = e.title, m = e.onChange, O = te(e, wn), b = pe(null), p = pe(null), I = Q(l, {
72
72
  value: d
73
- }), y = ie(I, 2), S = y[0], b = y[1];
74
- Ze(n, function() {
73
+ }), y = oe(I, 2), S = y[0], v = y[1];
74
+ Ye(n, function() {
75
75
  return {
76
- focus: function(m) {
76
+ focus: function(f) {
77
77
  var w;
78
- (w = v.current) === null || w === void 0 || w.focus(m);
78
+ (w = b.current) === null || w === void 0 || w.focus(f);
79
79
  },
80
80
  blur: function() {
81
- var m;
82
- (m = v.current) === null || m === void 0 || m.blur();
81
+ var f;
82
+ (f = b.current) === null || f === void 0 || f.blur();
83
83
  },
84
- input: v.current,
84
+ input: b.current,
85
85
  nativeElement: p.current
86
86
  };
87
87
  });
88
- var x = _(t, o, L(L({}, "".concat(t, "-checked"), S), "".concat(t, "-disabled"), i)), g = function(m) {
89
- i || ("checked" in e || b(m.target.checked), f == null || f({
90
- target: he(he({}, e), {}, {
88
+ var x = _(t, o, A(A({}, "".concat(t, "-checked"), S), "".concat(t, "-disabled"), i)), g = function(f) {
89
+ i || ("checked" in e || v(f.target.checked), m == null || m({
90
+ target: de(de({}, e), {}, {
91
91
  type: u,
92
- checked: m.target.checked
92
+ checked: f.target.checked
93
93
  }),
94
94
  stopPropagation: function() {
95
- m.stopPropagation();
95
+ f.stopPropagation();
96
96
  },
97
97
  preventDefault: function() {
98
- m.preventDefault();
98
+ f.preventDefault();
99
99
  },
100
- nativeEvent: m.nativeEvent
100
+ nativeEvent: f.nativeEvent
101
101
  }));
102
102
  };
103
103
  return /* @__PURE__ */ s.createElement("span", {
@@ -105,9 +105,9 @@ var On = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
105
105
  title: C,
106
106
  style: r,
107
107
  ref: p
108
- }, /* @__PURE__ */ s.createElement("input", j({}, O, {
108
+ }, /* @__PURE__ */ s.createElement("input", T({}, O, {
109
109
  className: "".concat(t, "-input"),
110
- ref: v,
110
+ ref: b,
111
111
  onChange: g,
112
112
  disabled: i,
113
113
  checked: !!S,
@@ -116,7 +116,7 @@ var On = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
116
116
  className: "".concat(t, "-inner")
117
117
  }));
118
118
  });
119
- const kn = (e) => {
119
+ const On = (e) => {
120
120
  const {
121
121
  componentCls: n,
122
122
  antCls: a
@@ -137,7 +137,7 @@ const kn = (e) => {
137
137
  }
138
138
  })
139
139
  };
140
- }, Pn = (e) => {
140
+ }, kn = (e) => {
141
141
  const {
142
142
  componentCls: n,
143
143
  wrapperMarginInlineEnd: a,
@@ -151,9 +151,9 @@ const kn = (e) => {
151
151
  lineWidth: h,
152
152
  colorBgContainerDisabled: u,
153
153
  colorTextDisabled: C,
154
- paddingXS: f,
154
+ paddingXS: m,
155
155
  dotColorDisabled: O,
156
- lineType: v,
156
+ lineType: b,
157
157
  radioColor: p,
158
158
  radioBgColor: I,
159
159
  calc: y
@@ -186,7 +186,7 @@ const kn = (e) => {
186
186
  insetInlineStart: 0,
187
187
  width: "100%",
188
188
  height: "100%",
189
- border: `${M(h)} ${v} ${t}`,
189
+ border: `${M(h)} ${b} ${t}`,
190
190
  borderRadius: "50%",
191
191
  visibility: "hidden",
192
192
  opacity: 0,
@@ -204,7 +204,7 @@ const kn = (e) => {
204
204
  &:hover ${S}`]: {
205
205
  borderColor: t
206
206
  },
207
- [`${n}-input:focus-visible + ${S}`]: Object.assign({}, Ne(e)),
207
+ [`${n}-input:focus-visible + ${S}`]: Object.assign({}, Ee(e)),
208
208
  [`${n}:hover::after, ${n}-wrapper:hover &::after`]: {
209
209
  visibility: "visible"
210
210
  },
@@ -289,12 +289,12 @@ const kn = (e) => {
289
289
  }
290
290
  },
291
291
  [`span${n} + *`]: {
292
- paddingInlineStart: f,
293
- paddingInlineEnd: f
292
+ paddingInlineStart: m,
293
+ paddingInlineEnd: m
294
294
  }
295
295
  })
296
296
  };
297
- }, Mn = (e) => {
297
+ }, Nn = (e) => {
298
298
  const {
299
299
  buttonColor: n,
300
300
  controlHeight: a,
@@ -308,20 +308,20 @@ const kn = (e) => {
308
308
  fontSize: h,
309
309
  buttonBg: u,
310
310
  fontSizeLG: C,
311
- controlHeightLG: f,
311
+ controlHeightLG: m,
312
312
  controlHeightSM: O,
313
- paddingXS: v,
313
+ paddingXS: b,
314
314
  borderRadius: p,
315
315
  borderRadiusSM: I,
316
316
  borderRadiusLG: y,
317
317
  buttonCheckedBg: S,
318
- buttonSolidCheckedColor: b,
318
+ buttonSolidCheckedColor: v,
319
319
  colorTextDisabled: x,
320
320
  colorBgContainerDisabled: g,
321
- buttonCheckedBgDisabled: N,
322
- buttonCheckedColorDisabled: m,
321
+ buttonCheckedBgDisabled: k,
322
+ buttonCheckedColorDisabled: f,
323
323
  colorPrimary: w,
324
- colorPrimaryHover: k,
324
+ colorPrimaryHover: N,
325
325
  colorPrimaryActive: $,
326
326
  buttonSolidCheckedBg: P,
327
327
  buttonSolidCheckedHoverBg: D,
@@ -388,9 +388,9 @@ const kn = (e) => {
388
388
  borderRadius: p
389
389
  },
390
390
  [`${t}-group-large &`]: {
391
- height: f,
391
+ height: m,
392
392
  fontSize: C,
393
- lineHeight: M(z(f).sub(z(o).mul(2)).equal()),
393
+ lineHeight: M(z(m).sub(z(o).mul(2)).equal()),
394
394
  "&:first-child": {
395
395
  borderStartStartRadius: y,
396
396
  borderEndStartRadius: y
@@ -402,7 +402,7 @@ const kn = (e) => {
402
402
  },
403
403
  [`${t}-group-small &`]: {
404
404
  height: O,
405
- paddingInline: z(v).sub(o).equal(),
405
+ paddingInline: z(b).sub(o).equal(),
406
406
  paddingBlock: 0,
407
407
  lineHeight: M(z(O).sub(z(o).mul(2)).equal()),
408
408
  "&:first-child": {
@@ -418,7 +418,7 @@ const kn = (e) => {
418
418
  position: "relative",
419
419
  color: w
420
420
  },
421
- "&:has(:focus-visible)": Object.assign({}, Ne(e)),
421
+ "&:has(:focus-visible)": Object.assign({}, Ee(e)),
422
422
  [`${t}-inner, input[type='checkbox'], input[type='radio']`]: {
423
423
  width: 0,
424
424
  height: 0,
@@ -437,10 +437,10 @@ const kn = (e) => {
437
437
  borderColor: w
438
438
  },
439
439
  "&:hover": {
440
- color: k,
441
- borderColor: k,
440
+ color: N,
441
+ borderColor: N,
442
442
  "&::before": {
443
- backgroundColor: k
443
+ backgroundColor: N
444
444
  }
445
445
  },
446
446
  "&:active": {
@@ -452,16 +452,16 @@ const kn = (e) => {
452
452
  }
453
453
  },
454
454
  [`${t}-group-solid &-checked:not(${t}-button-wrapper-disabled)`]: {
455
- color: b,
455
+ color: v,
456
456
  background: P,
457
457
  borderColor: P,
458
458
  "&:hover": {
459
- color: b,
459
+ color: v,
460
460
  background: D,
461
461
  borderColor: D
462
462
  },
463
463
  "&:active": {
464
- color: b,
464
+ color: v,
465
465
  background: E,
466
466
  borderColor: E
467
467
  }
@@ -478,14 +478,14 @@ const kn = (e) => {
478
478
  }
479
479
  },
480
480
  [`&-disabled${t}-button-wrapper-checked`]: {
481
- color: m,
482
- backgroundColor: N,
481
+ color: f,
482
+ backgroundColor: k,
483
483
  borderColor: d,
484
484
  boxShadow: "none"
485
485
  }
486
486
  }
487
487
  };
488
- }, zn = (e) => {
488
+ }, Pn = (e) => {
489
489
  const {
490
490
  wireframe: n,
491
491
  padding: a,
@@ -499,9 +499,9 @@ const kn = (e) => {
499
499
  colorTextLightSolid: h,
500
500
  colorPrimary: u,
501
501
  colorPrimaryHover: C,
502
- colorPrimaryActive: f,
502
+ colorPrimaryActive: m,
503
503
  colorWhite: O
504
- } = e, v = 4, p = r, I = n ? p - v * 2 : p - (v + o) * 2;
504
+ } = e, b = 4, p = r, I = n ? p - b * 2 : p - (b + o) * 2;
505
505
  return {
506
506
  // Radio
507
507
  radioSize: p,
@@ -511,7 +511,7 @@ const kn = (e) => {
511
511
  buttonSolidCheckedColor: h,
512
512
  buttonSolidCheckedBg: u,
513
513
  buttonSolidCheckedHoverBg: C,
514
- buttonSolidCheckedActiveBg: f,
514
+ buttonSolidCheckedActiveBg: m,
515
515
  buttonBg: i,
516
516
  buttonCheckedBg: i,
517
517
  buttonColor: d,
@@ -523,22 +523,22 @@ const kn = (e) => {
523
523
  radioColor: n ? u : O,
524
524
  radioBgColor: n ? i : u
525
525
  };
526
- }, _e = re("Radio", (e) => {
526
+ }, De = ae("Radio", (e) => {
527
527
  const {
528
528
  controlOutline: n,
529
529
  controlOutlineWidth: a
530
- } = e, t = `0 0 0 ${M(a)} ${n}`, r = le(e, {
530
+ } = e, t = `0 0 0 ${M(a)} ${n}`, r = ie(e, {
531
531
  radioFocusShadow: t,
532
532
  radioButtonFocusShadow: t
533
533
  });
534
- return [kn(r), Pn(r), Mn(r)];
535
- }, zn, {
534
+ return [On(r), kn(r), Nn(r)];
535
+ }, Pn, {
536
536
  unitless: {
537
537
  radioSize: !0,
538
538
  dotSize: !0
539
539
  }
540
540
  });
541
- var Rn = function(e, n) {
541
+ var Mn = function(e, n) {
542
542
  var a = {};
543
543
  for (var t in e)
544
544
  Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
@@ -547,38 +547,38 @@ var Rn = function(e, n) {
547
547
  n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
548
548
  return a;
549
549
  };
550
- const Dn = (e, n) => {
550
+ const zn = (e, n) => {
551
551
  var a, t;
552
- const o = s.useContext(De), r = s.useContext(Be), {
552
+ const o = s.useContext(ze), r = s.useContext(Re), {
553
553
  getPrefixCls: d,
554
554
  direction: i,
555
555
  radio: c
556
- } = s.useContext(W), l = s.useRef(null), h = nn(n, l), {
556
+ } = s.useContext(L), l = s.useRef(null), h = Ze(n, l), {
557
557
  isFormItemInput: u
558
- } = s.useContext(dn);
558
+ } = s.useContext(cn);
559
559
  if (process.env.NODE_ENV !== "production") {
560
- const E = ce("Radio");
560
+ const E = re("Radio");
561
561
  process.env.NODE_ENV !== "production" && E(!("optionType" in e), "usage", "`optionType` is only support in Radio.Group.");
562
562
  }
563
563
  const C = (E) => {
564
- var z, A;
565
- (z = e.onChange) === null || z === void 0 || z.call(e, E), (A = o == null ? void 0 : o.onChange) === null || A === void 0 || A.call(o, E);
564
+ var z, j;
565
+ (z = e.onChange) === null || z === void 0 || z.call(e, E), (j = o == null ? void 0 : o.onChange) === null || j === void 0 || j.call(o, E);
566
566
  }, {
567
- prefixCls: f,
567
+ prefixCls: m,
568
568
  className: O,
569
- rootClassName: v,
569
+ rootClassName: b,
570
570
  children: p,
571
571
  style: I,
572
572
  title: y
573
- } = e, S = Rn(e, ["prefixCls", "className", "rootClassName", "children", "style", "title"]), b = d("radio", f), x = ((o == null ? void 0 : o.optionType) || r) === "button", g = x ? `${b}-button` : b, N = Pe(b), [m, w, k] = _e(b, N), $ = Object.assign({}, S), P = s.useContext(ke);
573
+ } = e, S = Mn(e, ["prefixCls", "className", "rootClassName", "children", "style", "title"]), v = d("radio", m), x = ((o == null ? void 0 : o.optionType) || r) === "button", g = x ? `${v}-button` : v, k = ke(v), [f, w, N] = De(v, k), $ = Object.assign({}, S), P = s.useContext(Oe);
574
574
  o && ($.name = o.name, $.onChange = C, $.checked = e.value === o.value, $.disabled = (a = $.disabled) !== null && a !== void 0 ? a : o.disabled), $.disabled = (t = $.disabled) !== null && t !== void 0 ? t : P;
575
575
  const D = _(`${g}-wrapper`, {
576
576
  [`${g}-wrapper-checked`]: $.checked,
577
577
  [`${g}-wrapper-disabled`]: $.disabled,
578
578
  [`${g}-wrapper-rtl`]: i === "rtl",
579
579
  [`${g}-wrapper-in-form-item`]: u
580
- }, c == null ? void 0 : c.className, O, v, w, k, N);
581
- return m(/* @__PURE__ */ s.createElement(Me, {
580
+ }, c == null ? void 0 : c.className, O, b, w, N, k);
581
+ return f(/* @__PURE__ */ s.createElement(Ne, {
582
582
  component: "Radio",
583
583
  disabled: $.disabled
584
584
  }, /* @__PURE__ */ s.createElement("label", {
@@ -587,27 +587,27 @@ const Dn = (e, n) => {
587
587
  onMouseEnter: e.onMouseEnter,
588
588
  onMouseLeave: e.onMouseLeave,
589
589
  title: y
590
- }, /* @__PURE__ */ s.createElement(Nn, Object.assign({}, $, {
591
- className: _($.className, !x && un),
590
+ }, /* @__PURE__ */ s.createElement(En, Object.assign({}, $, {
591
+ className: _($.className, !x && sn),
592
592
  type: "radio",
593
593
  prefixCls: g,
594
594
  ref: h
595
595
  })), p !== void 0 ? /* @__PURE__ */ s.createElement("span", null, p) : null)));
596
- }, Y = /* @__PURE__ */ s.forwardRef(Dn);
597
- process.env.NODE_ENV !== "production" && (Y.displayName = "Radio");
598
- const Bn = /* @__PURE__ */ s.forwardRef((e, n) => {
596
+ }, X = /* @__PURE__ */ s.forwardRef(zn);
597
+ process.env.NODE_ENV !== "production" && (X.displayName = "Radio");
598
+ const Rn = /* @__PURE__ */ s.forwardRef((e, n) => {
599
599
  const {
600
600
  getPrefixCls: a,
601
601
  direction: t
602
- } = s.useContext(W), [o, r] = J(e.defaultValue, {
602
+ } = s.useContext(L), [o, r] = Q(e.defaultValue, {
603
603
  value: e.value
604
604
  }), d = (E) => {
605
- const z = o, A = E.target.value;
606
- "value" in e || r(A);
605
+ const z = o, j = E.target.value;
606
+ "value" in e || r(j);
607
607
  const {
608
- onChange: V
608
+ onChange: H
609
609
  } = e;
610
- V && A !== z && V(E);
610
+ H && j !== z && H(E);
611
611
  }, {
612
612
  prefixCls: i,
613
613
  className: c,
@@ -615,23 +615,23 @@ const Bn = /* @__PURE__ */ s.forwardRef((e, n) => {
615
615
  options: h,
616
616
  buttonStyle: u = "outline",
617
617
  disabled: C,
618
- children: f,
618
+ children: m,
619
619
  size: O,
620
- style: v,
620
+ style: b,
621
621
  id: p,
622
622
  onMouseEnter: I,
623
623
  onMouseLeave: y,
624
624
  onFocus: S,
625
- onBlur: b
626
- } = e, x = a("radio", i), g = `${x}-group`, N = Pe(x), [m, w, k] = _e(x, N);
627
- let $ = f;
628
- h && h.length > 0 && ($ = h.map((E) => typeof E == "string" || typeof E == "number" ? /* @__PURE__ */ s.createElement(Y, {
625
+ onBlur: v
626
+ } = e, x = a("radio", i), g = `${x}-group`, k = ke(x), [f, w, N] = De(x, k);
627
+ let $ = m;
628
+ h && h.length > 0 && ($ = h.map((E) => typeof E == "string" || typeof E == "number" ? /* @__PURE__ */ s.createElement(X, {
629
629
  key: E.toString(),
630
630
  prefixCls: x,
631
631
  disabled: C,
632
632
  value: E,
633
633
  checked: o === E
634
- }, E) : /* @__PURE__ */ s.createElement(Y, {
634
+ }, E) : /* @__PURE__ */ s.createElement(X, {
635
635
  key: `radio-group-value-options-${E.value}`,
636
636
  prefixCls: x,
637
637
  disabled: E.disabled || C,
@@ -642,23 +642,23 @@ const Bn = /* @__PURE__ */ s.forwardRef((e, n) => {
642
642
  id: E.id,
643
643
  required: E.required
644
644
  }, E.label)));
645
- const P = me(O), D = _(g, `${g}-${u}`, {
645
+ const P = he(O), D = _(g, `${g}-${u}`, {
646
646
  [`${g}-${P}`]: P,
647
647
  [`${g}-rtl`]: t === "rtl"
648
- }, c, l, w, k, N);
649
- return m(/* @__PURE__ */ s.createElement("div", Object.assign({}, ze(e, {
648
+ }, c, l, w, N, k);
649
+ return f(/* @__PURE__ */ s.createElement("div", Object.assign({}, Pe(e, {
650
650
  aria: !0,
651
651
  data: !0
652
652
  }), {
653
653
  className: D,
654
- style: v,
654
+ style: b,
655
655
  onMouseEnter: I,
656
656
  onMouseLeave: y,
657
657
  onFocus: S,
658
- onBlur: b,
658
+ onBlur: v,
659
659
  id: p,
660
660
  ref: n
661
- }), /* @__PURE__ */ s.createElement(wn, {
661
+ }), /* @__PURE__ */ s.createElement(xn, {
662
662
  value: {
663
663
  onChange: d,
664
664
  value: o,
@@ -667,8 +667,8 @@ const Bn = /* @__PURE__ */ s.forwardRef((e, n) => {
667
667
  optionType: e.optionType
668
668
  }
669
669
  }, $)));
670
- }), _n = /* @__PURE__ */ s.memo(Bn);
671
- var Tn = function(e, n) {
670
+ }), Dn = /* @__PURE__ */ s.memo(Rn);
671
+ var Bn = function(e, n) {
672
672
  var a = {};
673
673
  for (var t in e)
674
674
  Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
@@ -677,114 +677,114 @@ var Tn = function(e, n) {
677
677
  n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
678
678
  return a;
679
679
  };
680
- const jn = (e, n) => {
680
+ const _n = (e, n) => {
681
681
  const {
682
682
  getPrefixCls: a
683
- } = s.useContext(W), {
683
+ } = s.useContext(L), {
684
684
  prefixCls: t
685
- } = e, o = Tn(e, ["prefixCls"]), r = a("radio", t);
686
- return /* @__PURE__ */ s.createElement(En, {
685
+ } = e, o = Bn(e, ["prefixCls"]), r = a("radio", t);
686
+ return /* @__PURE__ */ s.createElement(In, {
687
687
  value: "button"
688
- }, /* @__PURE__ */ s.createElement(Y, Object.assign({
688
+ }, /* @__PURE__ */ s.createElement(X, Object.assign({
689
689
  prefixCls: r
690
690
  }, o, {
691
691
  type: "radio",
692
692
  ref: n
693
693
  })));
694
- }, An = /* @__PURE__ */ s.forwardRef(jn), Q = Y;
695
- Q.Button = An;
696
- Q.Group = _n;
697
- Q.__ANT_RADIO = !0;
698
- var Te = /* @__PURE__ */ B.forwardRef(function(e, n) {
699
- var a = e.prefixCls, t = e.forceRender, o = e.className, r = e.style, d = e.children, i = e.isActive, c = e.role, l = B.useState(i || t), h = ie(l, 2), u = h[0], C = h[1];
694
+ }, Tn = /* @__PURE__ */ s.forwardRef(_n), U = X;
695
+ U.Button = Tn;
696
+ U.Group = Dn;
697
+ U.__ANT_RADIO = !0;
698
+ var Be = /* @__PURE__ */ B.forwardRef(function(e, n) {
699
+ var a = e.prefixCls, t = e.forceRender, o = e.className, r = e.style, d = e.children, i = e.isActive, c = e.role, l = B.useState(i || t), h = oe(l, 2), u = h[0], C = h[1];
700
700
  return B.useEffect(function() {
701
701
  (t || i) && C(!0);
702
702
  }, [t, i]), u ? /* @__PURE__ */ B.createElement("div", {
703
703
  ref: n,
704
- className: _("".concat(a, "-content"), L(L({}, "".concat(a, "-content-active"), i), "".concat(a, "-content-inactive"), !i), o),
704
+ className: _("".concat(a, "-content"), A(A({}, "".concat(a, "-content-active"), i), "".concat(a, "-content-inactive"), !i), o),
705
705
  style: r,
706
706
  role: c
707
707
  }, /* @__PURE__ */ B.createElement("div", {
708
708
  className: "".concat(a, "-content-box")
709
709
  }, d)) : null;
710
710
  });
711
- Te.displayName = "PanelContent";
712
- var Hn = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender", "className", "prefixCls", "collapsible", "accordion", "panelKey", "extra", "header", "expandIcon", "openMotion", "destroyInactivePanel", "children"], je = /* @__PURE__ */ B.forwardRef(function(e, n) {
713
- var a = e.showArrow, t = a === void 0 ? !0 : a, o = e.headerClass, r = e.isActive, d = e.onItemClick, i = e.forceRender, c = e.className, l = e.prefixCls, h = e.collapsible, u = e.accordion, C = e.panelKey, f = e.extra, O = e.header, v = e.expandIcon, p = e.openMotion, I = e.destroyInactivePanel, y = e.children, S = ae(e, Hn), b = h === "disabled", x = h === "header", g = h === "icon", N = f != null && typeof f != "boolean", m = function() {
711
+ Be.displayName = "PanelContent";
712
+ var jn = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender", "className", "prefixCls", "collapsible", "accordion", "panelKey", "extra", "header", "expandIcon", "openMotion", "destroyInactivePanel", "children"], _e = /* @__PURE__ */ B.forwardRef(function(e, n) {
713
+ var a = e.showArrow, t = a === void 0 ? !0 : a, o = e.headerClass, r = e.isActive, d = e.onItemClick, i = e.forceRender, c = e.className, l = e.prefixCls, h = e.collapsible, u = e.accordion, C = e.panelKey, m = e.extra, O = e.header, b = e.expandIcon, p = e.openMotion, I = e.destroyInactivePanel, y = e.children, S = te(e, jn), v = h === "disabled", x = h === "header", g = h === "icon", k = m != null && typeof m != "boolean", f = function() {
714
714
  d == null || d(C);
715
715
  }, w = function(z) {
716
- (z.key === "Enter" || z.keyCode === te.ENTER || z.which === te.ENTER) && m();
717
- }, k = typeof v == "function" ? v(e) : /* @__PURE__ */ B.createElement("i", {
716
+ (z.key === "Enter" || z.keyCode === ee.ENTER || z.which === ee.ENTER) && f();
717
+ }, N = typeof b == "function" ? b(e) : /* @__PURE__ */ B.createElement("i", {
718
718
  className: "arrow"
719
719
  });
720
- k && (k = /* @__PURE__ */ B.createElement("div", {
720
+ N && (N = /* @__PURE__ */ B.createElement("div", {
721
721
  className: "".concat(l, "-expand-icon"),
722
- onClick: ["header", "icon"].includes(h) ? m : void 0
723
- }, k));
724
- var $ = _(L(L(L({}, "".concat(l, "-item"), !0), "".concat(l, "-item-active"), r), "".concat(l, "-item-disabled"), b), c), P = _(o, L(L(L({}, "".concat(l, "-header"), !0), "".concat(l, "-header-collapsible-only"), x), "".concat(l, "-icon-collapsible-only"), g)), D = {
722
+ onClick: ["header", "icon"].includes(h) ? f : void 0
723
+ }, N));
724
+ var $ = _(A(A(A({}, "".concat(l, "-item"), !0), "".concat(l, "-item-active"), r), "".concat(l, "-item-disabled"), v), c), P = _(o, A(A(A({}, "".concat(l, "-header"), !0), "".concat(l, "-header-collapsible-only"), x), "".concat(l, "-icon-collapsible-only"), g)), D = {
725
725
  className: P,
726
726
  "aria-expanded": r,
727
- "aria-disabled": b,
727
+ "aria-disabled": v,
728
728
  onKeyDown: w
729
729
  };
730
- return !x && !g && (D.onClick = m, D.role = u ? "tab" : "button", D.tabIndex = b ? -1 : 0), /* @__PURE__ */ B.createElement("div", j({}, S, {
730
+ return !x && !g && (D.onClick = f, D.role = u ? "tab" : "button", D.tabIndex = v ? -1 : 0), /* @__PURE__ */ B.createElement("div", T({}, S, {
731
731
  ref: n,
732
732
  className: $
733
- }), /* @__PURE__ */ B.createElement("div", D, t && k, /* @__PURE__ */ B.createElement("span", {
733
+ }), /* @__PURE__ */ B.createElement("div", D, t && N, /* @__PURE__ */ B.createElement("span", {
734
734
  className: "".concat(l, "-header-text"),
735
- onClick: h === "header" ? m : void 0
736
- }, O), N && /* @__PURE__ */ B.createElement("div", {
735
+ onClick: h === "header" ? f : void 0
736
+ }, O), k && /* @__PURE__ */ B.createElement("div", {
737
737
  className: "".concat(l, "-extra")
738
- }, f)), /* @__PURE__ */ B.createElement(tn, j({
738
+ }, m)), /* @__PURE__ */ B.createElement(en, T({
739
739
  visible: r,
740
740
  leavedClassName: "".concat(l, "-content-hidden")
741
741
  }, p, {
742
742
  forceRender: i,
743
743
  removeOnLeave: I
744
744
  }), function(E, z) {
745
- var A = E.className, V = E.style;
746
- return /* @__PURE__ */ B.createElement(Te, {
745
+ var j = E.className, H = E.style;
746
+ return /* @__PURE__ */ B.createElement(Be, {
747
747
  ref: z,
748
748
  prefixCls: l,
749
- className: A,
750
- style: V,
749
+ className: j,
750
+ style: H,
751
751
  isActive: r,
752
752
  forceRender: i,
753
753
  role: u ? "tabpanel" : void 0
754
754
  }, y);
755
755
  }));
756
- }), Ln = ["children", "label", "key", "collapsible", "onItemClick", "destroyInactivePanel"], Vn = function(n, a) {
756
+ }), An = ["children", "label", "key", "collapsible", "onItemClick", "destroyInactivePanel"], Hn = function(n, a) {
757
757
  var t = a.prefixCls, o = a.accordion, r = a.collapsible, d = a.destroyInactivePanel, i = a.onItemClick, c = a.activeKey, l = a.openMotion, h = a.expandIcon;
758
758
  return n.map(function(u, C) {
759
- var f = u.children, O = u.label, v = u.key, p = u.collapsible, I = u.onItemClick, y = u.destroyInactivePanel, S = ae(u, Ln), b = String(v ?? C), x = p ?? r, g = y ?? d, N = function(k) {
760
- x !== "disabled" && (i(k), I == null || I(k));
761
- }, m = !1;
762
- return o ? m = c[0] === b : m = c.indexOf(b) > -1, /* @__PURE__ */ B.createElement(je, j({}, S, {
759
+ var m = u.children, O = u.label, b = u.key, p = u.collapsible, I = u.onItemClick, y = u.destroyInactivePanel, S = te(u, An), v = String(b ?? C), x = p ?? r, g = y ?? d, k = function(N) {
760
+ x !== "disabled" && (i(N), I == null || I(N));
761
+ }, f = !1;
762
+ return o ? f = c[0] === v : f = c.indexOf(v) > -1, /* @__PURE__ */ B.createElement(_e, T({}, S, {
763
763
  prefixCls: t,
764
- key: b,
765
- panelKey: b,
766
- isActive: m,
764
+ key: v,
765
+ panelKey: v,
766
+ isActive: f,
767
767
  accordion: o,
768
768
  openMotion: l,
769
769
  expandIcon: h,
770
770
  header: O,
771
771
  collapsible: x,
772
- onItemClick: N,
772
+ onItemClick: k,
773
773
  destroyInactivePanel: g
774
- }), f);
774
+ }), m);
775
775
  });
776
- }, Wn = function(n, a, t) {
776
+ }, Ln = function(n, a, t) {
777
777
  if (!n)
778
778
  return null;
779
- var o = t.prefixCls, r = t.accordion, d = t.collapsible, i = t.destroyInactivePanel, c = t.onItemClick, l = t.activeKey, h = t.openMotion, u = t.expandIcon, C = n.key || String(a), f = n.props, O = f.header, v = f.headerClass, p = f.destroyInactivePanel, I = f.collapsible, y = f.onItemClick, S = !1;
779
+ var o = t.prefixCls, r = t.accordion, d = t.collapsible, i = t.destroyInactivePanel, c = t.onItemClick, l = t.activeKey, h = t.openMotion, u = t.expandIcon, C = n.key || String(a), m = n.props, O = m.header, b = m.headerClass, p = m.destroyInactivePanel, I = m.collapsible, y = m.onItemClick, S = !1;
780
780
  r ? S = l[0] === C : S = l.indexOf(C) > -1;
781
- var b = I ?? d, x = function(m) {
782
- b !== "disabled" && (c(m), y == null || y(m));
781
+ var v = I ?? d, x = function(f) {
782
+ v !== "disabled" && (c(f), y == null || y(f));
783
783
  }, g = {
784
784
  key: C,
785
785
  panelKey: C,
786
786
  header: O,
787
- headerClass: v,
787
+ headerClass: b,
788
788
  isActive: S,
789
789
  prefixCls: o,
790
790
  destroyInactivePanel: p ?? i,
@@ -793,47 +793,47 @@ var Hn = ["showArrow", "headerClass", "isActive", "onItemClick", "forceRender",
793
793
  children: n.props.children,
794
794
  onItemClick: x,
795
795
  expandIcon: u,
796
- collapsible: b
796
+ collapsible: v
797
797
  };
798
- return typeof n.type == "string" ? n : (Object.keys(g).forEach(function(N) {
799
- typeof g[N] > "u" && delete g[N];
798
+ return typeof n.type == "string" ? n : (Object.keys(g).forEach(function(k) {
799
+ typeof g[k] > "u" && delete g[k];
800
800
  }), /* @__PURE__ */ B.cloneElement(n, g));
801
801
  };
802
- function qn(e, n, a) {
803
- return Array.isArray(e) ? Vn(e, a) : fe(n).map(function(t, o) {
804
- return Wn(t, o, a);
802
+ function Vn(e, n, a) {
803
+ return Array.isArray(e) ? Hn(e, a) : ge(n).map(function(t, o) {
804
+ return Ln(t, o, a);
805
805
  });
806
806
  }
807
- function Fn(e) {
807
+ function Wn(e) {
808
808
  var n = e;
809
809
  if (!Array.isArray(n)) {
810
- var a = an(n);
810
+ var a = tn(n);
811
811
  n = a === "number" || a === "string" ? [n] : [];
812
812
  }
813
813
  return n.map(function(t) {
814
814
  return String(t);
815
815
  });
816
816
  }
817
- var Kn = /* @__PURE__ */ B.forwardRef(function(e, n) {
818
- var a = e.prefixCls, t = a === void 0 ? "rc-collapse" : a, o = e.destroyInactivePanel, r = o === void 0 ? !1 : o, d = e.style, i = e.accordion, c = e.className, l = e.children, h = e.collapsible, u = e.openMotion, C = e.expandIcon, f = e.activeKey, O = e.defaultActiveKey, v = e.onChange, p = e.items, I = _(t, c), y = J([], {
819
- value: f,
817
+ var qn = /* @__PURE__ */ B.forwardRef(function(e, n) {
818
+ var a = e.prefixCls, t = a === void 0 ? "rc-collapse" : a, o = e.destroyInactivePanel, r = o === void 0 ? !1 : o, d = e.style, i = e.accordion, c = e.className, l = e.children, h = e.collapsible, u = e.openMotion, C = e.expandIcon, m = e.activeKey, O = e.defaultActiveKey, b = e.onChange, p = e.items, I = _(t, c), y = Q([], {
819
+ value: m,
820
820
  onChange: function(w) {
821
- return v == null ? void 0 : v(w);
821
+ return b == null ? void 0 : b(w);
822
822
  },
823
823
  defaultValue: O,
824
- postState: Fn
825
- }), S = ie(y, 2), b = S[0], x = S[1], g = function(w) {
824
+ postState: Wn
825
+ }), S = oe(y, 2), v = S[0], x = S[1], g = function(w) {
826
826
  return x(function() {
827
827
  if (i)
828
- return b[0] === w ? [] : [w];
829
- var k = b.indexOf(w), $ = k > -1;
830
- return $ ? b.filter(function(P) {
828
+ return v[0] === w ? [] : [w];
829
+ var N = v.indexOf(w), $ = N > -1;
830
+ return $ ? v.filter(function(P) {
831
831
  return P !== w;
832
- }) : [].concat(rn(b), [w]);
832
+ }) : [].concat(on(v), [w]);
833
833
  });
834
834
  };
835
- on(!l, "[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");
836
- var N = qn(p, l, {
835
+ nn(!l, "[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");
836
+ var k = Vn(p, l, {
837
837
  prefixCls: t,
838
838
  accordion: i,
839
839
  openMotion: u,
@@ -841,43 +841,43 @@ var Kn = /* @__PURE__ */ B.forwardRef(function(e, n) {
841
841
  collapsible: h,
842
842
  destroyInactivePanel: r,
843
843
  onItemClick: g,
844
- activeKey: b
844
+ activeKey: v
845
845
  });
846
- return /* @__PURE__ */ B.createElement("div", j({
846
+ return /* @__PURE__ */ B.createElement("div", T({
847
847
  ref: n,
848
848
  className: I,
849
849
  style: d,
850
850
  role: i ? "tablist" : void 0
851
- }, ze(e, {
851
+ }, Pe(e, {
852
852
  aria: !0,
853
853
  data: !0
854
- })), N);
854
+ })), k);
855
855
  });
856
- const pe = Object.assign(Kn, {
856
+ const fe = Object.assign(qn, {
857
857
  /**
858
858
  * @deprecated use `items` instead, will be removed in `v4.0.0`
859
859
  */
860
- Panel: je
860
+ Panel: _e
861
861
  });
862
- pe.Panel;
862
+ fe.Panel;
863
863
  const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
864
- process.env.NODE_ENV !== "production" && ce("Collapse.Panel").deprecated(!("disabled" in e), "disabled", 'collapsible="disabled"');
864
+ process.env.NODE_ENV !== "production" && re("Collapse.Panel").deprecated(!("disabled" in e), "disabled", 'collapsible="disabled"');
865
865
  const {
866
866
  getPrefixCls: a
867
- } = s.useContext(W), {
867
+ } = s.useContext(L), {
868
868
  prefixCls: t,
869
869
  className: o,
870
870
  showArrow: r = !0
871
871
  } = e, d = a("collapse", t), i = _({
872
872
  [`${d}-no-arrow`]: !r
873
873
  }, o);
874
- return /* @__PURE__ */ s.createElement(pe.Panel, Object.assign({
874
+ return /* @__PURE__ */ s.createElement(fe.Panel, Object.assign({
875
875
  ref: n
876
876
  }, e, {
877
877
  prefixCls: d,
878
878
  className: i
879
879
  }));
880
- }), Xn = (e) => {
880
+ }), Kn = (e) => {
881
881
  const {
882
882
  componentCls: n,
883
883
  contentBg: a,
@@ -891,20 +891,20 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
891
891
  lineType: h,
892
892
  colorBorder: u,
893
893
  colorText: C,
894
- colorTextHeading: f,
894
+ colorTextHeading: m,
895
895
  colorTextDisabled: O,
896
- fontSizeLG: v,
896
+ fontSizeLG: b,
897
897
  lineHeight: p,
898
898
  lineHeightLG: I,
899
899
  marginSM: y,
900
900
  paddingSM: S,
901
- paddingLG: b,
901
+ paddingLG: v,
902
902
  paddingXS: x,
903
903
  motionDurationSlow: g,
904
- fontSizeIcon: N,
905
- contentPadding: m,
904
+ fontSizeIcon: k,
905
+ contentPadding: f,
906
906
  fontHeight: w,
907
- fontHeightLG: k
907
+ fontHeightLG: N
908
908
  } = e, $ = `${M(l)} ${h} ${u}`;
909
909
  return {
910
910
  [n]: Object.assign(Object.assign({}, G(e)), {
@@ -930,7 +930,7 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
930
930
  flexWrap: "nowrap",
931
931
  alignItems: "flex-start",
932
932
  padding: r,
933
- color: f,
933
+ color: m,
934
934
  lineHeight: p,
935
935
  cursor: "pointer",
936
936
  transition: `all ${g}, visibility 0s`,
@@ -947,8 +947,8 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
947
947
  alignItems: "center",
948
948
  paddingInlineEnd: y
949
949
  },
950
- [`${n}-arrow`]: Object.assign(Object.assign({}, ln()), {
951
- fontSize: N,
950
+ [`${n}-arrow`]: Object.assign(Object.assign({}, an()), {
951
+ fontSize: k,
952
952
  // when `transform: rotate()` is applied to icon's root element
953
953
  transition: `transform ${g}`,
954
954
  // when `transform: rotate()` is applied to icon's child element
@@ -973,7 +973,7 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
973
973
  backgroundColor: a,
974
974
  borderTop: $,
975
975
  [`& > ${n}-content-box`]: {
976
- padding: m
976
+ padding: f
977
977
  },
978
978
  "&-hidden": {
979
979
  display: "none"
@@ -996,19 +996,19 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
996
996
  },
997
997
  "&-large": {
998
998
  [`> ${n}-item`]: {
999
- fontSize: v,
999
+ fontSize: b,
1000
1000
  lineHeight: I,
1001
1001
  [`> ${n}-header`]: {
1002
1002
  padding: i,
1003
1003
  paddingInlineStart: t,
1004
1004
  [`> ${n}-expand-icon`]: {
1005
- height: k,
1005
+ height: N,
1006
1006
  // Arrow offset
1007
- marginInlineStart: e.calc(b).sub(t).equal()
1007
+ marginInlineStart: e.calc(v).sub(t).equal()
1008
1008
  }
1009
1009
  },
1010
1010
  [`> ${n}-content > ${n}-content-box`]: {
1011
- padding: b
1011
+ padding: v
1012
1012
  }
1013
1013
  }
1014
1014
  },
@@ -1038,7 +1038,7 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
1038
1038
  }
1039
1039
  })
1040
1040
  };
1041
- }, Un = (e) => {
1041
+ }, Fn = (e) => {
1042
1042
  const {
1043
1043
  componentCls: n
1044
1044
  } = e, a = `> ${n}-item > ${n}-header ${n}-arrow`;
@@ -1049,7 +1049,7 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
1049
1049
  }
1050
1050
  }
1051
1051
  };
1052
- }, Yn = (e) => {
1052
+ }, Xn = (e) => {
1053
1053
  const {
1054
1054
  componentCls: n,
1055
1055
  headerBg: a,
@@ -1081,7 +1081,7 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
1081
1081
  }
1082
1082
  }
1083
1083
  };
1084
- }, Qn = (e) => {
1084
+ }, Un = (e) => {
1085
1085
  const {
1086
1086
  componentCls: n,
1087
1087
  paddingSM: a
@@ -1102,25 +1102,25 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
1102
1102
  }
1103
1103
  }
1104
1104
  };
1105
- }, Jn = (e) => ({
1105
+ }, Qn = (e) => ({
1106
1106
  headerPadding: `${e.paddingSM}px ${e.padding}px`,
1107
1107
  headerBg: e.colorFillAlter,
1108
1108
  contentPadding: `${e.padding}px 16px`,
1109
1109
  // Fixed Value
1110
1110
  contentBg: e.colorBgContainer
1111
- }), Zn = re("Collapse", (e) => {
1112
- const n = le(e, {
1111
+ }), Yn = ae("Collapse", (e) => {
1112
+ const n = ie(e, {
1113
1113
  collapseHeaderPaddingSM: `${M(e.paddingXS)} ${M(e.paddingSM)}`,
1114
1114
  collapseHeaderPaddingLG: `${M(e.padding)} ${M(e.paddingLG)}`,
1115
1115
  collapsePanelBorderRadius: e.borderRadiusLG
1116
1116
  });
1117
- return [Xn(n), Yn(n), Qn(n), Un(n), Sn(n)];
1118
- }, Jn), Ae = /* @__PURE__ */ s.forwardRef((e, n) => {
1117
+ return [Kn(n), Xn(n), Un(n), Fn(n), yn(n)];
1118
+ }, Qn), Te = /* @__PURE__ */ s.forwardRef((e, n) => {
1119
1119
  const {
1120
1120
  getPrefixCls: a,
1121
1121
  direction: t,
1122
1122
  collapse: o
1123
- } = s.useContext(W), {
1123
+ } = s.useContext(L), {
1124
1124
  prefixCls: r,
1125
1125
  className: d,
1126
1126
  rootClassName: i,
@@ -1129,66 +1129,66 @@ const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
1129
1129
  ghost: h,
1130
1130
  size: u,
1131
1131
  expandIconPosition: C = "start",
1132
- children: f,
1132
+ children: m,
1133
1133
  expandIcon: O
1134
- } = e, v = me(($) => {
1134
+ } = e, b = he(($) => {
1135
1135
  var P;
1136
1136
  return (P = u ?? $) !== null && P !== void 0 ? P : "middle";
1137
- }), p = a("collapse", r), I = a(), [y, S, b] = Zn(p);
1137
+ }), p = a("collapse", r), I = a(), [y, S, v] = Yn(p);
1138
1138
  if (process.env.NODE_ENV !== "production") {
1139
- const $ = ce("Collapse");
1139
+ const $ = re("Collapse");
1140
1140
  process.env.NODE_ENV !== "production" && $(C !== "left" && C !== "right", "deprecated", "`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");
1141
1141
  }
1142
- const x = s.useMemo(() => C === "left" ? "start" : C === "right" ? "end" : C, [C]), g = O ?? (o == null ? void 0 : o.expandIcon), N = s.useCallback(function() {
1142
+ const x = s.useMemo(() => C === "left" ? "start" : C === "right" ? "end" : C, [C]), g = O ?? (o == null ? void 0 : o.expandIcon), k = s.useCallback(function() {
1143
1143
  let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
1144
- const P = typeof g == "function" ? g($) : /* @__PURE__ */ s.createElement(Re, {
1144
+ const P = typeof g == "function" ? g($) : /* @__PURE__ */ s.createElement(Me, {
1145
1145
  rotate: $.isActive ? 90 : void 0
1146
1146
  });
1147
- return Ce(P, () => {
1147
+ return be(P, () => {
1148
1148
  var D;
1149
1149
  return {
1150
1150
  className: _((D = P == null ? void 0 : P.props) === null || D === void 0 ? void 0 : D.className, `${p}-arrow`)
1151
1151
  };
1152
1152
  });
1153
- }, [g, p]), m = _(`${p}-icon-position-${x}`, {
1153
+ }, [g, p]), f = _(`${p}-icon-position-${x}`, {
1154
1154
  [`${p}-borderless`]: !l,
1155
1155
  [`${p}-rtl`]: t === "rtl",
1156
1156
  [`${p}-ghost`]: !!h,
1157
- [`${p}-${v}`]: v !== "middle"
1158
- }, o == null ? void 0 : o.className, d, i, S, b), w = Object.assign(Object.assign({}, hn(I)), {
1157
+ [`${p}-${b}`]: b !== "middle"
1158
+ }, o == null ? void 0 : o.className, d, i, S, v), w = Object.assign(Object.assign({}, dn(I)), {
1159
1159
  motionAppear: !1,
1160
1160
  leavedClassName: `${p}-content-hidden`
1161
- }), k = s.useMemo(() => f ? fe(f).map(($, P) => {
1161
+ }), N = s.useMemo(() => m ? ge(m).map(($, P) => {
1162
1162
  var D, E;
1163
1163
  if (!((D = $.props) === null || D === void 0) && D.disabled) {
1164
1164
  const z = (E = $.key) !== null && E !== void 0 ? E : String(P), {
1165
- disabled: A,
1166
- collapsible: V
1167
- } = $.props, X = Object.assign(Object.assign({}, ye($.props, ["disabled"])), {
1165
+ disabled: j,
1166
+ collapsible: H
1167
+ } = $.props, K = Object.assign(Object.assign({}, ve($.props, ["disabled"])), {
1168
1168
  key: z,
1169
- collapsible: V ?? (A ? "disabled" : void 0)
1169
+ collapsible: H ?? (j ? "disabled" : void 0)
1170
1170
  });
1171
- return Ce($, X);
1171
+ return be($, K);
1172
1172
  }
1173
1173
  return $;
1174
- }) : null, [f]);
1174
+ }) : null, [m]);
1175
1175
  return y(
1176
1176
  // @ts-ignore
1177
- /* @__PURE__ */ s.createElement(pe, Object.assign({
1177
+ /* @__PURE__ */ s.createElement(fe, Object.assign({
1178
1178
  ref: n,
1179
1179
  openMotion: w
1180
- }, ye(e, ["rootClassName"]), {
1181
- expandIcon: N,
1180
+ }, ve(e, ["rootClassName"]), {
1181
+ expandIcon: k,
1182
1182
  prefixCls: p,
1183
- className: m,
1183
+ className: f,
1184
1184
  style: Object.assign(Object.assign({}, o == null ? void 0 : o.style), c)
1185
- }), k)
1185
+ }), N)
1186
1186
  );
1187
1187
  });
1188
- process.env.NODE_ENV !== "production" && (Ae.displayName = "Collapse");
1189
- const Se = Object.assign(Ae, {
1188
+ process.env.NODE_ENV !== "production" && (Te.displayName = "Collapse");
1189
+ const ye = Object.assign(Te, {
1190
1190
  Panel: Gn
1191
- }), et = (e) => {
1191
+ }), Jn = (e) => {
1192
1192
  const {
1193
1193
  componentCls: n,
1194
1194
  sizePaddingEdgeHorizontal: a,
@@ -1309,23 +1309,23 @@ const Se = Object.assign(Ae, {
1309
1309
  }
1310
1310
  })
1311
1311
  };
1312
- }, nt = (e) => ({
1312
+ }, Zn = (e) => ({
1313
1313
  textPaddingInline: "1em",
1314
1314
  orientationMargin: 0.05,
1315
1315
  verticalMarginInline: e.marginXS
1316
- }), tt = re("Divider", (e) => {
1317
- const n = le(e, {
1316
+ }), et = ae("Divider", (e) => {
1317
+ const n = ie(e, {
1318
1318
  dividerHorizontalWithTextGutterMargin: e.margin,
1319
1319
  dividerHorizontalGutterMargin: e.marginLG,
1320
1320
  sizePaddingEdgeHorizontal: 0
1321
1321
  });
1322
- return [et(n)];
1323
- }, nt, {
1322
+ return [Jn(n)];
1323
+ }, Zn, {
1324
1324
  unitless: {
1325
1325
  orientationMargin: !0
1326
1326
  }
1327
1327
  });
1328
- var ot = function(e, n) {
1328
+ var nt = function(e, n) {
1329
1329
  var a = {};
1330
1330
  for (var t in e)
1331
1331
  Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
@@ -1334,12 +1334,12 @@ var ot = function(e, n) {
1334
1334
  n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
1335
1335
  return a;
1336
1336
  };
1337
- const He = (e) => {
1337
+ const je = (e) => {
1338
1338
  const {
1339
1339
  getPrefixCls: n,
1340
1340
  direction: a,
1341
1341
  divider: t
1342
- } = s.useContext(W), {
1342
+ } = s.useContext(L), {
1343
1343
  prefixCls: o,
1344
1344
  type: r = "horizontal",
1345
1345
  orientation: d = "center",
@@ -1349,44 +1349,44 @@ const He = (e) => {
1349
1349
  children: h,
1350
1350
  dashed: u,
1351
1351
  plain: C,
1352
- style: f
1353
- } = e, O = ot(e, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]), v = n("divider", o), [p, I, y] = tt(v), S = d.length > 0 ? `-${d}` : d, b = !!h, x = d === "left" && i != null, g = d === "right" && i != null, N = _(v, t == null ? void 0 : t.className, I, y, `${v}-${r}`, {
1354
- [`${v}-with-text`]: b,
1355
- [`${v}-with-text${S}`]: b,
1356
- [`${v}-dashed`]: !!u,
1357
- [`${v}-plain`]: !!C,
1358
- [`${v}-rtl`]: a === "rtl",
1359
- [`${v}-no-default-orientation-margin-left`]: x,
1360
- [`${v}-no-default-orientation-margin-right`]: g
1361
- }, c, l), m = s.useMemo(() => typeof i == "number" ? i : /^\d+$/.test(i) ? Number(i) : i, [i]), w = Object.assign(Object.assign({}, x && {
1362
- marginLeft: m
1352
+ style: m
1353
+ } = e, O = nt(e, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]), b = n("divider", o), [p, I, y] = et(b), S = d.length > 0 ? `-${d}` : d, v = !!h, x = d === "left" && i != null, g = d === "right" && i != null, k = _(b, t == null ? void 0 : t.className, I, y, `${b}-${r}`, {
1354
+ [`${b}-with-text`]: v,
1355
+ [`${b}-with-text${S}`]: v,
1356
+ [`${b}-dashed`]: !!u,
1357
+ [`${b}-plain`]: !!C,
1358
+ [`${b}-rtl`]: a === "rtl",
1359
+ [`${b}-no-default-orientation-margin-left`]: x,
1360
+ [`${b}-no-default-orientation-margin-right`]: g
1361
+ }, c, l), f = s.useMemo(() => typeof i == "number" ? i : /^\d+$/.test(i) ? Number(i) : i, [i]), w = Object.assign(Object.assign({}, x && {
1362
+ marginLeft: f
1363
1363
  }), g && {
1364
- marginRight: m
1364
+ marginRight: f
1365
1365
  });
1366
1366
  if (process.env.NODE_ENV !== "production") {
1367
- const k = ce("Divider");
1368
- process.env.NODE_ENV !== "production" && k(!h || r !== "vertical", "usage", "`children` not working in `vertical` mode.");
1367
+ const N = re("Divider");
1368
+ process.env.NODE_ENV !== "production" && N(!h || r !== "vertical", "usage", "`children` not working in `vertical` mode.");
1369
1369
  }
1370
1370
  return p(/* @__PURE__ */ s.createElement("div", Object.assign({
1371
- className: N,
1372
- style: Object.assign(Object.assign({}, t == null ? void 0 : t.style), f)
1371
+ className: k,
1372
+ style: Object.assign(Object.assign({}, t == null ? void 0 : t.style), m)
1373
1373
  }, O, {
1374
1374
  role: "separator"
1375
1375
  }), h && r !== "vertical" && /* @__PURE__ */ s.createElement("span", {
1376
- className: `${v}-inner-text`,
1376
+ className: `${b}-inner-text`,
1377
1377
  style: w
1378
1378
  }, h)));
1379
1379
  };
1380
- process.env.NODE_ENV !== "production" && (He.displayName = "Divider");
1381
- function xe(e) {
1380
+ process.env.NODE_ENV !== "production" && (je.displayName = "Divider");
1381
+ function $e(e) {
1382
1382
  return ["small", "middle", "large"].includes(e);
1383
1383
  }
1384
- function Ie(e) {
1384
+ function Se(e) {
1385
1385
  return e ? typeof e == "number" && !Number.isNaN(e) : !1;
1386
1386
  }
1387
- const Le = /* @__PURE__ */ B.createContext({
1387
+ const Ae = /* @__PURE__ */ B.createContext({
1388
1388
  latestIndex: 0
1389
- }), at = Le.Provider, it = (e) => {
1389
+ }), tt = Ae.Provider, ot = (e) => {
1390
1390
  let {
1391
1391
  className: n,
1392
1392
  index: a,
@@ -1396,7 +1396,7 @@ const Le = /* @__PURE__ */ B.createContext({
1396
1396
  } = e;
1397
1397
  const {
1398
1398
  latestIndex: d
1399
- } = s.useContext(Le);
1399
+ } = s.useContext(Ae);
1400
1400
  return t == null ? null : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
1401
1401
  className: n,
1402
1402
  style: r
@@ -1404,7 +1404,7 @@ const Le = /* @__PURE__ */ B.createContext({
1404
1404
  className: `${n}-split`
1405
1405
  }, o));
1406
1406
  };
1407
- var rt = function(e, n) {
1407
+ var at = function(e, n) {
1408
1408
  var a = {};
1409
1409
  for (var t in e)
1410
1410
  Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
@@ -1413,84 +1413,84 @@ var rt = function(e, n) {
1413
1413
  n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
1414
1414
  return a;
1415
1415
  };
1416
- const lt = /* @__PURE__ */ s.forwardRef((e, n) => {
1416
+ const it = /* @__PURE__ */ s.forwardRef((e, n) => {
1417
1417
  var a, t;
1418
1418
  const {
1419
1419
  getPrefixCls: o,
1420
1420
  space: r,
1421
1421
  direction: d
1422
- } = s.useContext(W), {
1422
+ } = s.useContext(L), {
1423
1423
  size: i = (r == null ? void 0 : r.size) || "small",
1424
1424
  align: c,
1425
1425
  className: l,
1426
1426
  rootClassName: h,
1427
1427
  children: u,
1428
1428
  direction: C = "horizontal",
1429
- prefixCls: f,
1429
+ prefixCls: m,
1430
1430
  split: O,
1431
- style: v,
1431
+ style: b,
1432
1432
  wrap: p = !1,
1433
1433
  classNames: I,
1434
1434
  styles: y
1435
- } = e, S = rt(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [b, x] = Array.isArray(i) ? i : [i, i], g = xe(x), N = xe(b), m = Ie(x), w = Ie(b), k = fe(u, {
1435
+ } = e, S = at(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [v, x] = Array.isArray(i) ? i : [i, i], g = $e(x), k = $e(v), f = Se(x), w = Se(v), N = ge(u, {
1436
1436
  keepEmpty: !0
1437
- }), $ = c === void 0 && C === "horizontal" ? "center" : c, P = o("space", f), [D, E, z] = mn(P), A = _(P, r == null ? void 0 : r.className, E, `${P}-${C}`, {
1437
+ }), $ = c === void 0 && C === "horizontal" ? "center" : c, P = o("space", m), [D, E, z] = hn(P), j = _(P, r == null ? void 0 : r.className, E, `${P}-${C}`, {
1438
1438
  [`${P}-rtl`]: d === "rtl",
1439
1439
  [`${P}-align-${$}`]: $,
1440
1440
  [`${P}-gap-row-${x}`]: g,
1441
- [`${P}-gap-col-${b}`]: N
1442
- }, l, h, z), V = _(`${P}-item`, (a = I == null ? void 0 : I.item) !== null && a !== void 0 ? a : (t = r == null ? void 0 : r.classNames) === null || t === void 0 ? void 0 : t.item);
1443
- let X = 0;
1444
- const Xe = k.map((U, se) => {
1445
- var de, ue;
1446
- U != null && (X = se);
1447
- const Ye = U && U.key || `${V}-${se}`;
1448
- return /* @__PURE__ */ s.createElement(it, {
1449
- className: V,
1450
- key: Ye,
1451
- index: se,
1441
+ [`${P}-gap-col-${v}`]: k
1442
+ }, l, h, z), H = _(`${P}-item`, (a = I == null ? void 0 : I.item) !== null && a !== void 0 ? a : (t = r == null ? void 0 : r.classNames) === null || t === void 0 ? void 0 : t.item);
1443
+ let K = 0;
1444
+ const Ke = N.map((F, le) => {
1445
+ var ce, se;
1446
+ F != null && (K = le);
1447
+ const Xe = F && F.key || `${H}-${le}`;
1448
+ return /* @__PURE__ */ s.createElement(ot, {
1449
+ className: H,
1450
+ key: Xe,
1451
+ index: le,
1452
1452
  split: O,
1453
- style: (de = y == null ? void 0 : y.item) !== null && de !== void 0 ? de : (ue = r == null ? void 0 : r.styles) === null || ue === void 0 ? void 0 : ue.item
1454
- }, U);
1455
- }), Ue = s.useMemo(() => ({
1456
- latestIndex: X
1457
- }), [X]);
1458
- if (k.length === 0)
1453
+ style: (ce = y == null ? void 0 : y.item) !== null && ce !== void 0 ? ce : (se = r == null ? void 0 : r.styles) === null || se === void 0 ? void 0 : se.item
1454
+ }, F);
1455
+ }), Fe = s.useMemo(() => ({
1456
+ latestIndex: K
1457
+ }), [K]);
1458
+ if (N.length === 0)
1459
1459
  return null;
1460
- const Z = {};
1461
- return p && (Z.flexWrap = "wrap"), !N && w && (Z.columnGap = b), !g && m && (Z.rowGap = x), D(/* @__PURE__ */ s.createElement("div", Object.assign({
1460
+ const Y = {};
1461
+ return p && (Y.flexWrap = "wrap"), !k && w && (Y.columnGap = v), !g && f && (Y.rowGap = x), D(/* @__PURE__ */ s.createElement("div", Object.assign({
1462
1462
  ref: n,
1463
- className: A,
1464
- style: Object.assign(Object.assign(Object.assign({}, Z), r == null ? void 0 : r.style), v)
1465
- }, S), /* @__PURE__ */ s.createElement(at, {
1466
- value: Ue
1467
- }, Xe)));
1468
- }), ve = lt;
1469
- ve.Compact = gn;
1470
- process.env.NODE_ENV !== "production" && (ve.displayName = "Space");
1471
- var ct = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"], Ve = /* @__PURE__ */ s.forwardRef(function(e, n) {
1472
- var a, t = e.prefixCls, o = t === void 0 ? "rc-switch" : t, r = e.className, d = e.checked, i = e.defaultChecked, c = e.disabled, l = e.loadingIcon, h = e.checkedChildren, u = e.unCheckedChildren, C = e.onClick, f = e.onChange, O = e.onKeyDown, v = ae(e, ct), p = J(!1, {
1463
+ className: j,
1464
+ style: Object.assign(Object.assign(Object.assign({}, Y), r == null ? void 0 : r.style), b)
1465
+ }, S), /* @__PURE__ */ s.createElement(tt, {
1466
+ value: Fe
1467
+ }, Ke)));
1468
+ }), me = it;
1469
+ me.Compact = un;
1470
+ process.env.NODE_ENV !== "production" && (me.displayName = "Space");
1471
+ var rt = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"], He = /* @__PURE__ */ s.forwardRef(function(e, n) {
1472
+ var a, t = e.prefixCls, o = t === void 0 ? "rc-switch" : t, r = e.className, d = e.checked, i = e.defaultChecked, c = e.disabled, l = e.loadingIcon, h = e.checkedChildren, u = e.unCheckedChildren, C = e.onClick, m = e.onChange, O = e.onKeyDown, b = te(e, rt), p = Q(!1, {
1473
1473
  value: d,
1474
1474
  defaultValue: i
1475
- }), I = ie(p, 2), y = I[0], S = I[1];
1476
- function b(m, w) {
1477
- var k = y;
1478
- return c || (k = m, S(k), f == null || f(k, w)), k;
1475
+ }), I = oe(p, 2), y = I[0], S = I[1];
1476
+ function v(f, w) {
1477
+ var N = y;
1478
+ return c || (N = f, S(N), m == null || m(N, w)), N;
1479
1479
  }
1480
- function x(m) {
1481
- m.which === te.LEFT ? b(!1, m) : m.which === te.RIGHT && b(!0, m), O == null || O(m);
1480
+ function x(f) {
1481
+ f.which === ee.LEFT ? v(!1, f) : f.which === ee.RIGHT && v(!0, f), O == null || O(f);
1482
1482
  }
1483
- function g(m) {
1484
- var w = b(!y, m);
1485
- C == null || C(w, m);
1483
+ function g(f) {
1484
+ var w = v(!y, f);
1485
+ C == null || C(w, f);
1486
1486
  }
1487
- var N = _(o, r, (a = {}, L(a, "".concat(o, "-checked"), y), L(a, "".concat(o, "-disabled"), c), a));
1488
- return /* @__PURE__ */ s.createElement("button", j({}, v, {
1487
+ var k = _(o, r, (a = {}, A(a, "".concat(o, "-checked"), y), A(a, "".concat(o, "-disabled"), c), a));
1488
+ return /* @__PURE__ */ s.createElement("button", T({}, b, {
1489
1489
  type: "button",
1490
1490
  role: "switch",
1491
1491
  "aria-checked": y,
1492
1492
  disabled: c,
1493
- className: N,
1493
+ className: k,
1494
1494
  ref: n,
1495
1495
  onKeyDown: x,
1496
1496
  onClick: g
@@ -1502,8 +1502,8 @@ var ct = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "lo
1502
1502
  className: "".concat(o, "-inner-unchecked")
1503
1503
  }, u)));
1504
1504
  });
1505
- Ve.displayName = "Switch";
1506
- const st = (e) => {
1505
+ He.displayName = "Switch";
1506
+ const lt = (e) => {
1507
1507
  const {
1508
1508
  componentCls: n,
1509
1509
  trackHeightSM: a,
@@ -1578,7 +1578,7 @@ const st = (e) => {
1578
1578
  }
1579
1579
  }
1580
1580
  };
1581
- }, dt = (e) => {
1581
+ }, ct = (e) => {
1582
1582
  const {
1583
1583
  componentCls: n,
1584
1584
  handleSize: a,
@@ -1597,7 +1597,7 @@ const st = (e) => {
1597
1597
  }
1598
1598
  }
1599
1599
  };
1600
- }, ut = (e) => {
1600
+ }, st = (e) => {
1601
1601
  const {
1602
1602
  componentCls: n,
1603
1603
  trackPadding: a,
@@ -1643,7 +1643,7 @@ const st = (e) => {
1643
1643
  }
1644
1644
  }
1645
1645
  };
1646
- }, ht = (e) => {
1646
+ }, dt = (e) => {
1647
1647
  const {
1648
1648
  componentCls: n,
1649
1649
  trackHeight: a,
@@ -1709,7 +1709,7 @@ const st = (e) => {
1709
1709
  }
1710
1710
  }
1711
1711
  };
1712
- }, gt = (e) => {
1712
+ }, ut = (e) => {
1713
1713
  const {
1714
1714
  componentCls: n,
1715
1715
  trackHeight: a,
@@ -1733,7 +1733,7 @@ const st = (e) => {
1733
1733
  [`&:hover:not(${n}-disabled)`]: {
1734
1734
  background: e.colorTextTertiary
1735
1735
  }
1736
- }), cn(e)), {
1736
+ }), rn(e)), {
1737
1737
  [`&${n}-checked`]: {
1738
1738
  background: e.switchColor,
1739
1739
  [`&:hover:not(${n}-disabled)`]: {
@@ -1754,7 +1754,7 @@ const st = (e) => {
1754
1754
  }
1755
1755
  })
1756
1756
  };
1757
- }, mt = (e) => {
1757
+ }, ht = (e) => {
1758
1758
  const {
1759
1759
  fontSize: n,
1760
1760
  lineHeight: a,
@@ -1771,14 +1771,14 @@ const st = (e) => {
1771
1771
  handleBg: o,
1772
1772
  handleSize: c,
1773
1773
  handleSizeSM: l,
1774
- handleShadow: `0 2px 4px 0 ${new sn("#00230b").setAlpha(0.2).toRgbString()}`,
1774
+ handleShadow: `0 2px 4px 0 ${new ln("#00230b").setAlpha(0.2).toRgbString()}`,
1775
1775
  innerMinMargin: c / 2,
1776
1776
  innerMaxMargin: c + i + i * 2,
1777
1777
  innerMinMarginSM: l / 2,
1778
1778
  innerMaxMarginSM: l + i + i * 2
1779
1779
  };
1780
- }, ft = re("Switch", (e) => {
1781
- const n = le(e, {
1780
+ }, gt = ae("Switch", (e) => {
1781
+ const n = ie(e, {
1782
1782
  switchDuration: e.motionDurationMid,
1783
1783
  switchColor: e.colorPrimary,
1784
1784
  switchDisabledOpacity: e.opacityLoading,
@@ -1787,18 +1787,18 @@ const st = (e) => {
1787
1787
  switchHandleActiveInset: "-30%"
1788
1788
  });
1789
1789
  return [
1790
- gt(n),
1790
+ ut(n),
1791
1791
  // inner style
1792
- ht(n),
1792
+ dt(n),
1793
1793
  // handle style
1794
- ut(n),
1794
+ st(n),
1795
1795
  // loading style
1796
- dt(n),
1796
+ ct(n),
1797
1797
  // small style
1798
- st(n)
1798
+ lt(n)
1799
1799
  ];
1800
- }, mt);
1801
- var pt = function(e, n) {
1800
+ }, ht);
1801
+ var ft = function(e, n) {
1802
1802
  var a = {};
1803
1803
  for (var t in e)
1804
1804
  Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
@@ -1807,7 +1807,7 @@ var pt = function(e, n) {
1807
1807
  n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
1808
1808
  return a;
1809
1809
  };
1810
- const vt = /* @__PURE__ */ s.forwardRef((e, n) => {
1810
+ const mt = /* @__PURE__ */ s.forwardRef((e, n) => {
1811
1811
  const {
1812
1812
  prefixCls: a,
1813
1813
  size: t,
@@ -1820,134 +1820,118 @@ const vt = /* @__PURE__ */ s.forwardRef((e, n) => {
1820
1820
  value: h,
1821
1821
  defaultChecked: u,
1822
1822
  defaultValue: C,
1823
- onChange: f
1824
- } = e, O = pt(e, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style", "checked", "value", "defaultChecked", "defaultValue", "onChange"]), [v, p] = J(!1, {
1823
+ onChange: m
1824
+ } = e, O = ft(e, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style", "checked", "value", "defaultChecked", "defaultValue", "onChange"]), [b, p] = Q(!1, {
1825
1825
  value: l ?? h,
1826
1826
  defaultValue: u ?? C
1827
1827
  }), {
1828
1828
  getPrefixCls: I,
1829
1829
  direction: y,
1830
1830
  switch: S
1831
- } = s.useContext(W), b = s.useContext(ke), x = (o ?? b) || r, g = I("switch", a), N = /* @__PURE__ */ s.createElement("div", {
1831
+ } = s.useContext(L), v = s.useContext(Oe), x = (o ?? v) || r, g = I("switch", a), k = /* @__PURE__ */ s.createElement("div", {
1832
1832
  className: `${g}-handle`
1833
- }, r && /* @__PURE__ */ s.createElement(fn, {
1833
+ }, r && /* @__PURE__ */ s.createElement(gn, {
1834
1834
  className: `${g}-loading-icon`
1835
- })), [m, w, k] = ft(g), $ = me(t), P = _(S == null ? void 0 : S.className, {
1835
+ })), [f, w, N] = gt(g), $ = he(t), P = _(S == null ? void 0 : S.className, {
1836
1836
  [`${g}-small`]: $ === "small",
1837
1837
  [`${g}-loading`]: r,
1838
1838
  [`${g}-rtl`]: y === "rtl"
1839
- }, d, i, w, k), D = Object.assign(Object.assign({}, S == null ? void 0 : S.style), c), E = function() {
1840
- p(arguments.length <= 0 ? void 0 : arguments[0]), f == null || f.apply(void 0, arguments);
1839
+ }, d, i, w, N), D = Object.assign(Object.assign({}, S == null ? void 0 : S.style), c), E = function() {
1840
+ p(arguments.length <= 0 ? void 0 : arguments[0]), m == null || m.apply(void 0, arguments);
1841
1841
  };
1842
- return m(/* @__PURE__ */ s.createElement(Me, {
1842
+ return f(/* @__PURE__ */ s.createElement(Ne, {
1843
1843
  component: "Switch"
1844
- }, /* @__PURE__ */ s.createElement(Ve, Object.assign({}, O, {
1845
- checked: v,
1844
+ }, /* @__PURE__ */ s.createElement(He, Object.assign({}, O, {
1845
+ checked: b,
1846
1846
  onChange: E,
1847
1847
  prefixCls: g,
1848
1848
  className: P,
1849
1849
  style: D,
1850
1850
  disabled: x,
1851
1851
  ref: n,
1852
- loadingIcon: N
1852
+ loadingIcon: k
1853
1853
  }))));
1854
- }), oe = vt;
1855
- oe.__ANT_SWITCH = !0;
1856
- process.env.NODE_ENV !== "production" && (oe.displayName = "Switch");
1857
- var bt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z" } }] }, name: "bell", theme: "outlined" }, Ct = function(n, a) {
1858
- return /* @__PURE__ */ s.createElement(F, j({}, n, {
1854
+ }), ne = mt;
1855
+ ne.__ANT_SWITCH = !0;
1856
+ process.env.NODE_ENV !== "production" && (ne.displayName = "Switch");
1857
+ var pt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z" } }] }, name: "bell", theme: "outlined" }, bt = function(n, a) {
1858
+ return /* @__PURE__ */ s.createElement(W, T({}, n, {
1859
+ ref: a,
1860
+ icon: pt
1861
+ }));
1862
+ }, Le = /* @__PURE__ */ s.forwardRef(bt);
1863
+ process.env.NODE_ENV !== "production" && (Le.displayName = "BellOutlined");
1864
+ var vt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z" } }] }, name: "chrome", theme: "outlined" }, Ct = function(n, a) {
1865
+ return /* @__PURE__ */ s.createElement(W, T({}, n, {
1859
1866
  ref: a,
1860
- icon: bt
1867
+ icon: vt
1861
1868
  }));
1862
- }, We = /* @__PURE__ */ s.forwardRef(Ct);
1863
- process.env.NODE_ENV !== "production" && (We.displayName = "BellOutlined");
1864
- var yt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 512.3v-.3c0-229.8-186.2-416-416-416S96 282.2 96 512v.4c0 229.8 186.2 416 416 416s416-186.2 416-416v-.3.2zm-6.7-74.6l.6 3.3-.6-3.3zM676.7 638.2c53.5-82.2 52.5-189.4-11.1-263.7l162.4-8.4c20.5 44.4 32 93.8 32 145.9 0 185.2-144.6 336.6-327.1 347.4l143.8-221.2zM512 652.3c-77.5 0-140.2-62.7-140.2-140.2 0-77.7 62.7-140.2 140.2-140.2S652.2 434.5 652.2 512 589.5 652.3 512 652.3zm369.2-331.7l-3-5.7 3 5.7zM512 164c121.3 0 228.2 62.1 290.4 156.2l-263.6-13.9c-97.5-5.7-190.2 49.2-222.3 141.1L227.8 311c63.1-88.9 166.9-147 284.2-147zM102.5 585.8c26 145 127.1 264 261.6 315.1C229.6 850 128.5 731 102.5 585.8zM164 512c0-55.9 13.2-108.7 36.6-155.5l119.7 235.4c44.1 86.7 137.4 139.7 234 121.6l-74 145.1C302.9 842.5 164 693.5 164 512zm324.7 415.4c4 .2 8 .4 12 .5-4-.2-8-.3-12-.5z" } }] }, name: "chrome", theme: "outlined" }, $t = function(n, a) {
1865
- return /* @__PURE__ */ s.createElement(F, j({}, n, {
1869
+ }, Ve = /* @__PURE__ */ s.forwardRef(Ct);
1870
+ process.env.NODE_ENV !== "production" && (Ve.displayName = "ChromeOutlined");
1871
+ var yt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z" } }] }, name: "mail", theme: "outlined" }, $t = function(n, a) {
1872
+ return /* @__PURE__ */ s.createElement(W, T({}, n, {
1866
1873
  ref: a,
1867
1874
  icon: yt
1868
1875
  }));
1869
- }, qe = /* @__PURE__ */ s.forwardRef($t);
1870
- process.env.NODE_ENV !== "production" && (qe.displayName = "ChromeOutlined");
1871
- var St = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z" } }] }, name: "mail", theme: "outlined" }, xt = function(n, a) {
1872
- return /* @__PURE__ */ s.createElement(F, j({}, n, {
1876
+ }, ue = /* @__PURE__ */ s.forwardRef($t);
1877
+ process.env.NODE_ENV !== "production" && (ue.displayName = "MailOutlined");
1878
+ var St = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" } }] }, name: "message", theme: "outlined" }, xt = function(n, a) {
1879
+ return /* @__PURE__ */ s.createElement(W, T({}, n, {
1873
1880
  ref: a,
1874
1881
  icon: St
1875
1882
  }));
1876
- }, ge = /* @__PURE__ */ s.forwardRef(xt);
1877
- process.env.NODE_ENV !== "production" && (ge.displayName = "MailOutlined");
1878
- var It = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z" } }] }, name: "message", theme: "outlined" }, wt = function(n, a) {
1879
- return /* @__PURE__ */ s.createElement(F, j({}, n, {
1883
+ }, We = /* @__PURE__ */ s.forwardRef(xt);
1884
+ process.env.NODE_ENV !== "production" && (We.displayName = "MessageOutlined");
1885
+ var It = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "mobile", theme: "outlined" }, wt = function(n, a) {
1886
+ return /* @__PURE__ */ s.createElement(W, T({}, n, {
1880
1887
  ref: a,
1881
1888
  icon: It
1882
1889
  }));
1883
- }, Fe = /* @__PURE__ */ s.forwardRef(wt);
1884
- process.env.NODE_ENV !== "production" && (Fe.displayName = "MessageOutlined");
1885
- var Et = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z" } }] }, name: "mobile", theme: "outlined" }, Ot = function(n, a) {
1886
- return /* @__PURE__ */ s.createElement(F, j({}, n, {
1890
+ }, qe = /* @__PURE__ */ s.forwardRef(wt);
1891
+ process.env.NODE_ENV !== "production" && (qe.displayName = "MobileOutlined");
1892
+ var Et = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z" } }] }, name: "phone", theme: "outlined" }, Ot = function(n, a) {
1893
+ return /* @__PURE__ */ s.createElement(W, T({}, n, {
1887
1894
  ref: a,
1888
1895
  icon: Et
1889
1896
  }));
1890
- }, Ke = /* @__PURE__ */ s.forwardRef(Ot);
1891
- process.env.NODE_ENV !== "production" && (Ke.displayName = "MobileOutlined");
1892
- var Nt = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z" } }] }, name: "phone", theme: "outlined" }, kt = function(n, a) {
1893
- return /* @__PURE__ */ s.createElement(F, j({}, n, {
1894
- ref: a,
1895
- icon: Nt
1896
- }));
1897
- }, Ge = /* @__PURE__ */ s.forwardRef(kt);
1897
+ }, Ge = /* @__PURE__ */ s.forwardRef(Ot);
1898
1898
  process.env.NODE_ENV !== "production" && (Ge.displayName = "PhoneOutlined");
1899
- const ee = pn.Text, Pt = (e, n) => {
1900
- const a = [
1901
- H.EMAIL,
1902
- H.INAPP_WEB,
1903
- H.SMS,
1904
- H.CALL,
1905
- H.PUSH,
1906
- H.WEB_PUSH
1907
- ];
1899
+ const J = fn.Text, kt = (e, n) => {
1900
+ const a = ["EMAIL", "INAPP_WEB", "SMS", "CALL", "PUSH", "WEB_PUSH"];
1908
1901
  return a.indexOf(e) - a.indexOf(n);
1909
- }, we = (e, n) => {
1910
- const a = [
1911
- T.OFF,
1912
- T.INSTANT,
1913
- T.HOURLY,
1914
- T.DAILY,
1915
- T.WEEKLY,
1916
- T.MONTHLY
1917
- ];
1902
+ }, xe = (e, n) => {
1903
+ const a = ["off", "instant", "hourly", "daily", "weekly", "monthly"];
1918
1904
  return a.indexOf(e) - a.indexOf(n);
1919
- }, Ee = (e) => ({
1905
+ }, Ie = (e) => ({
1920
1906
  off: "Off",
1921
1907
  instant: "Instant",
1922
1908
  hourly: "Hourly",
1923
1909
  daily: "Daily",
1924
1910
  weekly: "Weekly",
1925
1911
  monthly: "Monthly"
1926
- })[e], Oe = ({
1912
+ })[e], we = ({
1927
1913
  notification: e,
1928
1914
  preferences: n,
1929
1915
  updateDelivery: a,
1930
1916
  subNotificationId: t
1931
- }) => /* @__PURE__ */ R(ne, { children: e.channels.sort(Pt).map((o, r) => {
1917
+ }) => /* @__PURE__ */ R(Z, { children: e.channels.sort(kt).map((o, r) => {
1932
1918
  const d = n.find(
1933
1919
  (u) => u.notificationId === e.notificationId && u.channel === o
1934
1920
  );
1935
1921
  if (!d)
1936
1922
  return null;
1937
- let i = Mt(o), c = zt(o);
1923
+ let i = Nt(o), c = Pt(o);
1938
1924
  const l = Object.keys(e.options[o]).filter(
1939
1925
  (u) => u !== "defaultDeliveryOption" && u !== "defaultDeliverOption"
1940
1926
  );
1941
1927
  let h;
1942
- return l.length === 1 ? h = /* @__PURE__ */ R(ee, { children: Ee(d.delivery) }) : l.length === 2 && l.includes(T.OFF) ? h = /* @__PURE__ */ R(
1943
- oe,
1928
+ return l.length === 1 ? h = /* @__PURE__ */ R(J, { children: Ie(d.delivery) }) : l.length === 2 && l.includes("off") ? h = /* @__PURE__ */ R(
1929
+ ne,
1944
1930
  {
1945
- checked: d.delivery !== T.OFF,
1931
+ checked: d.delivery !== "off",
1946
1932
  onChange: (u) => {
1947
1933
  if (u) {
1948
- const C = l.find(
1949
- (f) => f !== T.OFF
1950
- );
1934
+ const C = l.find((m) => m !== "off");
1951
1935
  a(
1952
1936
  e.notificationId,
1953
1937
  o,
@@ -1958,19 +1942,19 @@ const ee = pn.Text, Pt = (e, n) => {
1958
1942
  a(
1959
1943
  e.notificationId,
1960
1944
  o,
1961
- T.OFF,
1945
+ "off",
1962
1946
  t
1963
1947
  );
1964
1948
  }
1965
1949
  }
1966
- ) : h = /* @__PURE__ */ K(ne, { children: [
1950
+ ) : h = /* @__PURE__ */ q(Z, { children: [
1967
1951
  /* @__PURE__ */ R(
1968
- oe,
1952
+ ne,
1969
1953
  {
1970
- checked: d.delivery !== T.OFF,
1954
+ checked: d.delivery !== "off",
1971
1955
  onChange: (u) => {
1972
1956
  if (u) {
1973
- const C = l.sort(we).find((f) => f !== T.OFF);
1957
+ const C = l.sort(xe).find((m) => m !== "off");
1974
1958
  a(
1975
1959
  e.notificationId,
1976
1960
  o,
@@ -1981,7 +1965,7 @@ const ee = pn.Text, Pt = (e, n) => {
1981
1965
  a(
1982
1966
  e.notificationId,
1983
1967
  o,
1984
- T.OFF,
1968
+ "off",
1985
1969
  t
1986
1970
  );
1987
1971
  }
@@ -1993,14 +1977,14 @@ const ee = pn.Text, Pt = (e, n) => {
1993
1977
  style: {
1994
1978
  width: "100%",
1995
1979
  marginTop: 8,
1996
- maxHeight: d.delivery !== T.OFF ? 1e3 : 0,
1980
+ maxHeight: d.delivery !== "off" ? 1e3 : 0,
1997
1981
  overflow: "hidden",
1998
1982
  transition: "max-height 0.3s ease"
1999
1983
  },
2000
- children: /* @__PURE__ */ K("div", { children: [
2001
- /* @__PURE__ */ R("div", { style: { marginTop: 20 }, children: /* @__PURE__ */ R(ee, { strong: !0, children: "Choose frequency:" }) }),
1984
+ children: /* @__PURE__ */ q("div", { children: [
1985
+ /* @__PURE__ */ R("div", { style: { marginTop: 20 }, children: /* @__PURE__ */ R(J, { strong: !0, children: "Choose frequency:" }) }),
2002
1986
  /* @__PURE__ */ R(
2003
- Q.Group,
1987
+ U.Group,
2004
1988
  {
2005
1989
  value: d.delivery,
2006
1990
  onChange: (u) => {
@@ -2011,14 +1995,14 @@ const ee = pn.Text, Pt = (e, n) => {
2011
1995
  t
2012
1996
  );
2013
1997
  },
2014
- children: /* @__PURE__ */ R(ve, { direction: "vertical", style: { paddingTop: 10 }, children: l.filter((u) => u !== T.OFF).sort(we).map((u) => /* @__PURE__ */ R(Q, { value: u, children: /* @__PURE__ */ R(ee, { children: Ee(u) }) }, u)) })
1998
+ children: /* @__PURE__ */ R(me, { direction: "vertical", style: { paddingTop: 10 }, children: l.filter((u) => u !== "off").sort(xe).map((u) => /* @__PURE__ */ R(U, { value: u, children: /* @__PURE__ */ R(J, { children: Ie(u) }) }, u)) })
2015
1999
  }
2016
2000
  )
2017
2001
  ] })
2018
2002
  }
2019
2003
  )
2020
- ] }), /* @__PURE__ */ K("div", { children: [
2021
- /* @__PURE__ */ K(
2004
+ ] }), /* @__PURE__ */ q("div", { children: [
2005
+ /* @__PURE__ */ q(
2022
2006
  "div",
2023
2007
  {
2024
2008
  style: {
@@ -2029,7 +2013,7 @@ const ee = pn.Text, Pt = (e, n) => {
2029
2013
  marginBottom: r === e.channels.length - 1 ? 12 : 0
2030
2014
  },
2031
2015
  children: [
2032
- /* @__PURE__ */ K(ee, { children: [
2016
+ /* @__PURE__ */ q(J, { children: [
2033
2017
  c,
2034
2018
  " ",
2035
2019
  i
@@ -2039,35 +2023,35 @@ const ee = pn.Text, Pt = (e, n) => {
2039
2023
  },
2040
2024
  o
2041
2025
  ),
2042
- r !== e.channels.length - 1 && /* @__PURE__ */ R(He, {})
2026
+ r !== e.channels.length - 1 && /* @__PURE__ */ R(je, {})
2043
2027
  ] }, o);
2044
- }) }), Mt = (e) => ({
2028
+ }) }), Nt = (e) => ({
2045
2029
  EMAIL: "Email",
2046
2030
  INAPP_WEB: "In-App",
2047
2031
  SMS: "Text",
2048
2032
  CALL: "Automated Calling",
2049
2033
  PUSH: "Mobile",
2050
2034
  WEB_PUSH: "Browser"
2051
- })[e], zt = (e) => {
2035
+ })[e], Pt = (e) => {
2052
2036
  switch (e) {
2053
- case H.EMAIL:
2054
- return /* @__PURE__ */ R(ge, { style: { color: q.primary } });
2055
- case H.SMS:
2056
- return /* @__PURE__ */ R(Fe, { style: { color: q.primary } });
2057
- case H.PUSH:
2058
- return /* @__PURE__ */ R(Ke, { style: { color: q.primary } });
2059
- case H.CALL:
2060
- return /* @__PURE__ */ R(Ge, { style: { color: q.primary } });
2061
- case H.INAPP_WEB:
2062
- return /* @__PURE__ */ R(We, { style: { color: q.primary } });
2063
- case H.WEB_PUSH:
2064
- return /* @__PURE__ */ R(qe, { style: { color: q.primary } });
2037
+ case "EMAIL":
2038
+ return /* @__PURE__ */ R(ue, { style: { color: V.primary } });
2039
+ case "SMS":
2040
+ return /* @__PURE__ */ R(We, { style: { color: V.primary } });
2041
+ case "PUSH":
2042
+ return /* @__PURE__ */ R(qe, { style: { color: V.primary } });
2043
+ case "CALL":
2044
+ return /* @__PURE__ */ R(Ge, { style: { color: V.primary } });
2045
+ case "INAPP_WEB":
2046
+ return /* @__PURE__ */ R(Le, { style: { color: V.primary } });
2047
+ case "WEB_PUSH":
2048
+ return /* @__PURE__ */ R(Ve, { style: { color: V.primary } });
2065
2049
  default:
2066
- return /* @__PURE__ */ R(ge, { style: { color: q.primary } });
2050
+ return /* @__PURE__ */ R(ue, { style: { color: V.primary } });
2067
2051
  }
2068
2052
  };
2069
- function jt() {
2070
- const e = en(Qe);
2053
+ function _t() {
2054
+ const e = Je(Ue);
2071
2055
  if (!e || !e.preferences)
2072
2056
  return null;
2073
2057
  const n = e.preferences.notifications.map(
@@ -2085,9 +2069,9 @@ function jt() {
2085
2069
  return {
2086
2070
  label: a.title,
2087
2071
  key: a.notificationId,
2088
- children: /* @__PURE__ */ K(ne, { children: [
2072
+ children: /* @__PURE__ */ q(Z, { children: [
2089
2073
  /* @__PURE__ */ R(
2090
- Oe,
2074
+ we,
2091
2075
  {
2092
2076
  notification: a,
2093
2077
  preferences: t || [],
@@ -2096,7 +2080,7 @@ function jt() {
2096
2080
  a.notificationId
2097
2081
  ),
2098
2082
  r == null ? void 0 : r.map((l) => /* @__PURE__ */ R(
2099
- Se,
2083
+ ye,
2100
2084
  {
2101
2085
  bordered: !1,
2102
2086
  items: [
@@ -2104,7 +2088,7 @@ function jt() {
2104
2088
  label: l.title,
2105
2089
  key: l.subNotificationId,
2106
2090
  children: /* @__PURE__ */ R(
2107
- Oe,
2091
+ we,
2108
2092
  {
2109
2093
  notification: a,
2110
2094
  preferences: o || [],
@@ -2123,14 +2107,14 @@ function jt() {
2123
2107
  };
2124
2108
  }
2125
2109
  );
2126
- return /* @__PURE__ */ R(ne, { children: /* @__PURE__ */ R(Se, { items: n, defaultActiveKey: [] }) });
2110
+ return /* @__PURE__ */ R(Z, { children: /* @__PURE__ */ R(ye, { items: n, defaultActiveKey: [] }) });
2127
2111
  }
2128
2112
  export {
2129
- jt as P,
2130
- We as R,
2131
- Re as a,
2132
- Oe as b,
2133
- zt as c,
2134
- Mt as g,
2135
- ze as p
2113
+ _t as P,
2114
+ Le as R,
2115
+ Me as a,
2116
+ we as b,
2117
+ Pt as c,
2118
+ Nt as g,
2119
+ Pe as p
2136
2120
  };