@notificationapi/react 0.0.31 → 0.0.32

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,112 +1,117 @@
1
- import { jsx as R, Fragment as te, jsxs as q } from "react/jsx-runtime";
2
- import { g as Oe, a as ze } from "../../assets/channelUtils.js";
3
- import { u as K, F as Pe, l as ce, W as ue, m as Ne, e as he, C as Me, t as Re, n as je, K as ie, h as De, T as Be } from "../../assets/index4.js";
4
- import * as s from "react";
5
- import _e, { forwardRef as Te, useRef as oe, useImperativeHandle as He } from "react";
6
- import { d as ge, e as be, c as D, h as F, a as pe, _ as re } from "../../assets/index3.js";
7
- import { g as Z, m as ee, r as W, u as O, p as fe, a as _, o as qe, e as me, D as Ce, l as We, T as Ve } from "../../assets/colors.js";
8
- import { p as Le } from "../../assets/pickAttrs.js";
9
- const ve = /* @__PURE__ */ s.createContext(null), Ae = ve.Provider, Se = /* @__PURE__ */ s.createContext(null), Ge = Se.Provider;
10
- var Fe = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], Xe = /* @__PURE__ */ Te(function(e, t) {
11
- var o = e.prefixCls, n = o === void 0 ? "rc-checkbox" : o, i = e.className, r = e.style, d = e.checked, a = e.disabled, l = e.defaultChecked, c = l === void 0 ? !1 : l, h = e.type, u = h === void 0 ? "checkbox" : h, v = e.title, f = e.onChange, E = ge(e, Fe), p = oe(null), S = oe(null), w = K(c, {
12
- value: d
13
- }), m = be(w, 2), $ = m[0], y = m[1];
14
- He(t, function() {
1
+ import { jsx as B, Fragment as re, jsxs as L } from "react/jsx-runtime";
2
+ import { g as ze, a as Pe } from "../../assets/channelUtils.js";
3
+ import { u as Y, F as Ne, h as ge, W as be, j as Me, e as pe, C as Re, t as je, k as Be, K as ae, l as De, T as _e } from "../../assets/index3.js";
4
+ import * as d from "react";
5
+ import Te, { forwardRef as He, useRef as le, useImperativeHandle as We } from "react";
6
+ import { d as fe, e as me, c as _, f as U, a as ve, _ as de } from "../../assets/presets.js";
7
+ import { g as ne, m as oe, r as A, u as E, h as Ce, a as W, j as qe, e as Se, D as $e, k as Ve, T as Le } from "../../assets/colors.js";
8
+ import { p as Ae } from "../../assets/pickAttrs.js";
9
+ const ye = /* @__PURE__ */ d.createContext(null), Ge = ye.Provider, xe = /* @__PURE__ */ d.createContext(null), Fe = xe.Provider;
10
+ var Xe = ["prefixCls", "className", "style", "checked", "disabled", "defaultChecked", "type", "title", "onChange"], Ke = /* @__PURE__ */ He(function(e, n) {
11
+ var i = e.prefixCls, t = i === void 0 ? "rc-checkbox" : i, o = e.className, s = e.style, a = e.checked, r = e.disabled, l = e.defaultChecked, c = l === void 0 ? !1 : l, g = e.type, u = g === void 0 ? "checkbox" : g, S = e.title, m = e.onChange, w = fe(e, Xe), y = le(null), b = le(null), k = Y(c, {
12
+ value: a
13
+ }), f = me(k, 2), v = f[0], x = f[1];
14
+ We(n, function() {
15
15
  return {
16
- focus: function(b) {
17
- var k;
18
- (k = p.current) === null || k === void 0 || k.focus(b);
16
+ focus: function(h) {
17
+ var $;
18
+ ($ = y.current) === null || $ === void 0 || $.focus(h);
19
19
  },
20
20
  blur: function() {
21
- var b;
22
- (b = p.current) === null || b === void 0 || b.blur();
21
+ var h;
22
+ (h = y.current) === null || h === void 0 || h.blur();
23
23
  },
24
- input: p.current,
25
- nativeElement: S.current
24
+ input: y.current,
25
+ nativeElement: b.current
26
26
  };
27
27
  });
28
- var x = D(n, i, F(F({}, "".concat(n, "-checked"), $), "".concat(n, "-disabled"), a)), g = function(b) {
29
- a || ("checked" in e || y(b.target.checked), f == null || f({
30
- target: re(re({}, e), {}, {
28
+ var I = _(t, o, U(U({}, "".concat(t, "-checked"), v), "".concat(t, "-disabled"), r)), p = function(h) {
29
+ r || ("checked" in e || x(h.target.checked), m == null || m({
30
+ target: de(de({}, e), {}, {
31
31
  type: u,
32
- checked: b.target.checked
32
+ checked: h.target.checked
33
33
  }),
34
34
  stopPropagation: function() {
35
- b.stopPropagation();
35
+ h.stopPropagation();
36
36
  },
37
37
  preventDefault: function() {
38
- b.preventDefault();
38
+ h.preventDefault();
39
39
  },
40
- nativeEvent: b.nativeEvent
40
+ nativeEvent: h.nativeEvent
41
41
  }));
42
42
  };
43
- return /* @__PURE__ */ s.createElement("span", {
44
- className: x,
45
- title: v,
46
- style: r,
47
- ref: S
48
- }, /* @__PURE__ */ s.createElement("input", pe({}, E, {
49
- className: "".concat(n, "-input"),
50
- ref: p,
51
- onChange: g,
52
- disabled: a,
53
- checked: !!$,
43
+ return /* @__PURE__ */ d.createElement("span", {
44
+ className: I,
45
+ title: S,
46
+ style: s,
47
+ ref: b
48
+ }, /* @__PURE__ */ d.createElement("input", ve({}, w, {
49
+ className: "".concat(t, "-input"),
50
+ ref: y,
51
+ onChange: p,
52
+ disabled: r,
53
+ checked: !!v,
54
54
  type: u
55
- })), /* @__PURE__ */ s.createElement("span", {
56
- className: "".concat(n, "-inner")
55
+ })), /* @__PURE__ */ d.createElement("span", {
56
+ className: "".concat(t, "-inner")
57
57
  }));
58
58
  });
59
- const Ke = (e) => {
59
+ const Ue = (e) => {
60
60
  const {
61
- componentCls: t,
62
- antCls: o
63
- } = e, n = `${t}-group`;
61
+ componentCls: n,
62
+ antCls: i
63
+ } = e, t = `${n}-group`;
64
64
  return {
65
- [n]: Object.assign(Object.assign({}, W(e)), {
65
+ [t]: Object.assign(Object.assign({}, A(e)), {
66
66
  display: "inline-block",
67
67
  fontSize: 0,
68
68
  // RTL
69
- [`&${n}-rtl`]: {
69
+ [`&${t}-rtl`]: {
70
70
  direction: "rtl"
71
71
  },
72
- [`${o}-badge ${o}-badge-count`]: {
72
+ [`&${t}-block`]: {
73
+ display: "flex"
74
+ },
75
+ [`${i}-badge ${i}-badge-count`]: {
73
76
  zIndex: 1
74
77
  },
75
- [`> ${o}-badge:not(:first-child) > ${o}-button-wrapper`]: {
78
+ [`> ${i}-badge:not(:first-child) > ${i}-button-wrapper`]: {
76
79
  borderInlineStart: "none"
77
80
  }
78
81
  })
79
82
  };
80
- }, Ue = (e) => {
83
+ }, Qe = (e) => {
81
84
  const {
82
- componentCls: t,
83
- wrapperMarginInlineEnd: o,
84
- colorPrimary: n,
85
- radioSize: i,
86
- motionDurationSlow: r,
87
- motionDurationMid: d,
88
- motionEaseInOutCirc: a,
85
+ componentCls: n,
86
+ wrapperMarginInlineEnd: i,
87
+ colorPrimary: t,
88
+ radioSize: o,
89
+ motionDurationSlow: s,
90
+ motionDurationMid: a,
91
+ motionEaseInOutCirc: r,
89
92
  colorBgContainer: l,
90
93
  colorBorder: c,
91
- lineWidth: h,
94
+ lineWidth: g,
92
95
  colorBgContainerDisabled: u,
93
- colorTextDisabled: v,
94
- paddingXS: f,
95
- dotColorDisabled: E,
96
- lineType: p,
97
- radioColor: S,
98
- radioBgColor: w,
99
- calc: m
100
- } = e, $ = `${t}-inner`, x = m(i).sub(m(4).mul(2)), g = m(1).mul(i).equal();
96
+ colorTextDisabled: S,
97
+ paddingXS: m,
98
+ dotColorDisabled: w,
99
+ lineType: y,
100
+ radioColor: b,
101
+ radioBgColor: k,
102
+ calc: f
103
+ } = e, v = `${n}-inner`, I = f(o).sub(f(4).mul(2)), p = f(1).mul(o).equal({
104
+ unit: !0
105
+ });
101
106
  return {
102
- [`${t}-wrapper`]: Object.assign(Object.assign({}, W(e)), {
107
+ [`${n}-wrapper`]: Object.assign(Object.assign({}, A(e)), {
103
108
  display: "inline-flex",
104
109
  alignItems: "baseline",
105
110
  marginInlineStart: 0,
106
- marginInlineEnd: o,
111
+ marginInlineEnd: i,
107
112
  cursor: "pointer",
108
113
  // RTL
109
- [`&${t}-wrapper-rtl`]: {
114
+ [`&${n}-wrapper-rtl`]: {
110
115
  direction: "rtl"
111
116
  },
112
117
  "&-disabled": {
@@ -119,20 +124,24 @@ const Ke = (e) => {
119
124
  overflow: "hidden",
120
125
  content: '"\\a0"'
121
126
  },
127
+ "&-block": {
128
+ flex: 1,
129
+ justifyContent: "center"
130
+ },
122
131
  // hashId 在 wrapper 上,只能铺平
123
- [`${t}-checked::after`]: {
132
+ [`${n}-checked::after`]: {
124
133
  position: "absolute",
125
134
  insetBlockStart: 0,
126
135
  insetInlineStart: 0,
127
136
  width: "100%",
128
137
  height: "100%",
129
- border: `${O(h)} ${p} ${n}`,
138
+ border: `${E(g)} ${y} ${t}`,
130
139
  borderRadius: "50%",
131
140
  visibility: "hidden",
132
141
  opacity: 0,
133
142
  content: '""'
134
143
  },
135
- [t]: Object.assign(Object.assign({}, W(e)), {
144
+ [n]: Object.assign(Object.assign({}, A(e)), {
136
145
  position: "relative",
137
146
  display: "inline-block",
138
147
  outline: "none",
@@ -140,32 +149,36 @@ const Ke = (e) => {
140
149
  alignSelf: "center",
141
150
  borderRadius: "50%"
142
151
  }),
143
- [`${t}-wrapper:hover &,
144
- &:hover ${$}`]: {
145
- borderColor: n
152
+ [`${n}-wrapper:hover &,
153
+ &:hover ${v}`]: {
154
+ borderColor: t
146
155
  },
147
- [`${t}-input:focus-visible + ${$}`]: Object.assign({}, fe(e)),
148
- [`${t}:hover::after, ${t}-wrapper:hover &::after`]: {
156
+ [`${n}-input:focus-visible + ${v}`]: Object.assign({}, Ce(e)),
157
+ [`${n}:hover::after, ${n}-wrapper:hover &::after`]: {
149
158
  visibility: "visible"
150
159
  },
151
- [`${t}-inner`]: {
160
+ [`${n}-inner`]: {
152
161
  "&::after": {
153
162
  boxSizing: "border-box",
154
163
  position: "absolute",
155
164
  insetBlockStart: "50%",
156
165
  insetInlineStart: "50%",
157
166
  display: "block",
158
- width: g,
159
- height: g,
160
- marginBlockStart: m(1).mul(i).div(-2).equal(),
161
- marginInlineStart: m(1).mul(i).div(-2).equal(),
162
- backgroundColor: S,
167
+ width: p,
168
+ height: p,
169
+ marginBlockStart: f(1).mul(o).div(-2).equal({
170
+ unit: !0
171
+ }),
172
+ marginInlineStart: f(1).mul(o).div(-2).equal({
173
+ unit: !0
174
+ }),
175
+ backgroundColor: b,
163
176
  borderBlockStart: 0,
164
177
  borderInlineStart: 0,
165
- borderRadius: g,
178
+ borderRadius: p,
166
179
  transform: "scale(0)",
167
180
  opacity: 0,
168
- transition: `all ${r} ${a}`,
181
+ transition: `all ${s} ${r}`,
169
182
  content: '""'
170
183
  },
171
184
  boxSizing: "border-box",
@@ -173,16 +186,16 @@ const Ke = (e) => {
173
186
  insetBlockStart: 0,
174
187
  insetInlineStart: 0,
175
188
  display: "block",
176
- width: g,
177
- height: g,
189
+ width: p,
190
+ height: p,
178
191
  backgroundColor: l,
179
192
  borderColor: c,
180
193
  borderStyle: "solid",
181
- borderWidth: h,
194
+ borderWidth: g,
182
195
  borderRadius: "50%",
183
- transition: `all ${d}`
196
+ transition: `all ${a}`
184
197
  },
185
- [`${t}-input`]: {
198
+ [`${n}-input`]: {
186
199
  position: "absolute",
187
200
  inset: 0,
188
201
  zIndex: 1,
@@ -190,108 +203,106 @@ const Ke = (e) => {
190
203
  opacity: 0
191
204
  },
192
205
  // 选中状态
193
- [`${t}-checked`]: {
194
- [$]: {
195
- borderColor: n,
196
- backgroundColor: w,
206
+ [`${n}-checked`]: {
207
+ [v]: {
208
+ borderColor: t,
209
+ backgroundColor: k,
197
210
  "&::after": {
198
- transform: `scale(${e.calc(e.dotSize).div(i).equal()})`,
211
+ transform: `scale(${e.calc(e.dotSize).div(o).equal()})`,
199
212
  opacity: 1,
200
- transition: `all ${r} ${a}`
213
+ transition: `all ${s} ${r}`
201
214
  }
202
215
  }
203
216
  },
204
- [`${t}-disabled`]: {
217
+ [`${n}-disabled`]: {
205
218
  cursor: "not-allowed",
206
- [$]: {
219
+ [v]: {
207
220
  backgroundColor: u,
208
221
  borderColor: c,
209
222
  cursor: "not-allowed",
210
223
  "&::after": {
211
- backgroundColor: E
224
+ backgroundColor: w
212
225
  }
213
226
  },
214
- [`${t}-input`]: {
227
+ [`${n}-input`]: {
215
228
  cursor: "not-allowed"
216
229
  },
217
- [`${t}-disabled + span`]: {
218
- color: v,
230
+ [`${n}-disabled + span`]: {
231
+ color: S,
219
232
  cursor: "not-allowed"
220
233
  },
221
- [`&${t}-checked`]: {
222
- [$]: {
234
+ [`&${n}-checked`]: {
235
+ [v]: {
223
236
  "&::after": {
224
- transform: `scale(${m(x).div(i).equal({
225
- unit: !1
226
- })})`
237
+ transform: `scale(${f(I).div(o).equal()})`
227
238
  }
228
239
  }
229
240
  }
230
241
  },
231
- [`span${t} + *`]: {
232
- paddingInlineStart: f,
233
- paddingInlineEnd: f
242
+ [`span${n} + *`]: {
243
+ paddingInlineStart: m,
244
+ paddingInlineEnd: m
234
245
  }
235
246
  })
236
247
  };
237
- }, Qe = (e) => {
248
+ }, Ye = (e) => {
238
249
  const {
239
- buttonColor: t,
240
- controlHeight: o,
241
- componentCls: n,
242
- lineWidth: i,
243
- lineType: r,
244
- colorBorder: d,
245
- motionDurationSlow: a,
250
+ buttonColor: n,
251
+ controlHeight: i,
252
+ componentCls: t,
253
+ lineWidth: o,
254
+ lineType: s,
255
+ colorBorder: a,
256
+ motionDurationSlow: r,
246
257
  motionDurationMid: l,
247
258
  buttonPaddingInline: c,
248
- fontSize: h,
259
+ fontSize: g,
249
260
  buttonBg: u,
250
- fontSizeLG: v,
251
- controlHeightLG: f,
252
- controlHeightSM: E,
253
- paddingXS: p,
254
- borderRadius: S,
255
- borderRadiusSM: w,
256
- borderRadiusLG: m,
257
- buttonCheckedBg: $,
258
- buttonSolidCheckedColor: y,
259
- colorTextDisabled: x,
260
- colorBgContainerDisabled: g,
261
- buttonCheckedBgDisabled: z,
262
- buttonCheckedColorDisabled: b,
263
- colorPrimary: k,
264
- colorPrimaryHover: P,
265
- colorPrimaryActive: I,
266
- buttonSolidCheckedBg: N,
267
- buttonSolidCheckedHoverBg: j,
268
- buttonSolidCheckedActiveBg: C,
261
+ fontSizeLG: S,
262
+ controlHeightLG: m,
263
+ controlHeightSM: w,
264
+ paddingXS: y,
265
+ borderRadius: b,
266
+ borderRadiusSM: k,
267
+ borderRadiusLG: f,
268
+ buttonCheckedBg: v,
269
+ buttonSolidCheckedColor: x,
270
+ colorTextDisabled: I,
271
+ colorBgContainerDisabled: p,
272
+ buttonCheckedBgDisabled: P,
273
+ buttonCheckedColorDisabled: h,
274
+ colorPrimary: $,
275
+ colorPrimaryHover: z,
276
+ colorPrimaryActive: C,
277
+ buttonSolidCheckedBg: R,
278
+ buttonSolidCheckedHoverBg: N,
279
+ buttonSolidCheckedActiveBg: j,
269
280
  calc: M
270
281
  } = e;
271
282
  return {
272
- [`${n}-button-wrapper`]: {
283
+ [`${t}-button-wrapper`]: {
273
284
  position: "relative",
274
285
  display: "inline-block",
275
- height: o,
286
+ height: i,
276
287
  margin: 0,
277
288
  paddingInline: c,
278
289
  paddingBlock: 0,
279
- color: t,
280
- fontSize: h,
281
- lineHeight: O(M(o).sub(M(i).mul(2)).equal()),
290
+ color: n,
291
+ fontSize: g,
292
+ lineHeight: E(M(i).sub(M(o).mul(2)).equal()),
282
293
  background: u,
283
- border: `${O(i)} ${r} ${d}`,
294
+ border: `${E(o)} ${s} ${a}`,
284
295
  // strange align fix for chrome but works
285
296
  // https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
286
- borderBlockStartWidth: M(i).add(0.02).equal(),
297
+ borderBlockStartWidth: M(o).add(0.02).equal(),
287
298
  borderInlineStartWidth: 0,
288
- borderInlineEndWidth: i,
299
+ borderInlineEndWidth: o,
289
300
  cursor: "pointer",
290
301
  transition: [`color ${l}`, `background ${l}`, `box-shadow ${l}`].join(","),
291
302
  a: {
292
- color: t
303
+ color: n
293
304
  },
294
- [`> ${n}-button`]: {
305
+ [`> ${t}-button`]: {
295
306
  position: "absolute",
296
307
  insetBlockStart: 0,
297
308
  insetInlineStart: 0,
@@ -302,363 +313,370 @@ const Ke = (e) => {
302
313
  "&:not(:first-child)": {
303
314
  "&::before": {
304
315
  position: "absolute",
305
- insetBlockStart: M(i).mul(-1).equal(),
306
- insetInlineStart: M(i).mul(-1).equal(),
316
+ insetBlockStart: M(o).mul(-1).equal(),
317
+ insetInlineStart: M(o).mul(-1).equal(),
307
318
  display: "block",
308
319
  boxSizing: "content-box",
309
320
  width: 1,
310
321
  height: "100%",
311
- paddingBlock: i,
322
+ paddingBlock: o,
312
323
  paddingInline: 0,
313
- backgroundColor: d,
314
- transition: `background-color ${a}`,
324
+ backgroundColor: a,
325
+ transition: `background-color ${r}`,
315
326
  content: '""'
316
327
  }
317
328
  },
318
329
  "&:first-child": {
319
- borderInlineStart: `${O(i)} ${r} ${d}`,
320
- borderStartStartRadius: S,
321
- borderEndStartRadius: S
330
+ borderInlineStart: `${E(o)} ${s} ${a}`,
331
+ borderStartStartRadius: b,
332
+ borderEndStartRadius: b
322
333
  },
323
334
  "&:last-child": {
324
- borderStartEndRadius: S,
325
- borderEndEndRadius: S
335
+ borderStartEndRadius: b,
336
+ borderEndEndRadius: b
326
337
  },
327
338
  "&:first-child:last-child": {
328
- borderRadius: S
339
+ borderRadius: b
329
340
  },
330
- [`${n}-group-large &`]: {
331
- height: f,
332
- fontSize: v,
333
- lineHeight: O(M(f).sub(M(i).mul(2)).equal()),
341
+ [`${t}-group-large &`]: {
342
+ height: m,
343
+ fontSize: S,
344
+ lineHeight: E(M(m).sub(M(o).mul(2)).equal()),
334
345
  "&:first-child": {
335
- borderStartStartRadius: m,
336
- borderEndStartRadius: m
346
+ borderStartStartRadius: f,
347
+ borderEndStartRadius: f
337
348
  },
338
349
  "&:last-child": {
339
- borderStartEndRadius: m,
340
- borderEndEndRadius: m
350
+ borderStartEndRadius: f,
351
+ borderEndEndRadius: f
341
352
  }
342
353
  },
343
- [`${n}-group-small &`]: {
344
- height: E,
345
- paddingInline: M(p).sub(i).equal(),
354
+ [`${t}-group-small &`]: {
355
+ height: w,
356
+ paddingInline: M(y).sub(o).equal(),
346
357
  paddingBlock: 0,
347
- lineHeight: O(M(E).sub(M(i).mul(2)).equal()),
358
+ lineHeight: E(M(w).sub(M(o).mul(2)).equal()),
348
359
  "&:first-child": {
349
- borderStartStartRadius: w,
350
- borderEndStartRadius: w
360
+ borderStartStartRadius: k,
361
+ borderEndStartRadius: k
351
362
  },
352
363
  "&:last-child": {
353
- borderStartEndRadius: w,
354
- borderEndEndRadius: w
364
+ borderStartEndRadius: k,
365
+ borderEndEndRadius: k
355
366
  }
356
367
  },
357
368
  "&:hover": {
358
369
  position: "relative",
359
- color: k
370
+ color: $
360
371
  },
361
- "&:has(:focus-visible)": Object.assign({}, fe(e)),
362
- [`${n}-inner, input[type='checkbox'], input[type='radio']`]: {
372
+ "&:has(:focus-visible)": Object.assign({}, Ce(e)),
373
+ [`${t}-inner, input[type='checkbox'], input[type='radio']`]: {
363
374
  width: 0,
364
375
  height: 0,
365
376
  opacity: 0,
366
377
  pointerEvents: "none"
367
378
  },
368
- [`&-checked:not(${n}-button-wrapper-disabled)`]: {
379
+ [`&-checked:not(${t}-button-wrapper-disabled)`]: {
369
380
  zIndex: 1,
370
- color: k,
371
- background: $,
372
- borderColor: k,
381
+ color: $,
382
+ background: v,
383
+ borderColor: $,
373
384
  "&::before": {
374
- backgroundColor: k
385
+ backgroundColor: $
375
386
  },
376
387
  "&:first-child": {
377
- borderColor: k
388
+ borderColor: $
378
389
  },
379
390
  "&:hover": {
380
- color: P,
381
- borderColor: P,
391
+ color: z,
392
+ borderColor: z,
382
393
  "&::before": {
383
- backgroundColor: P
394
+ backgroundColor: z
384
395
  }
385
396
  },
386
397
  "&:active": {
387
- color: I,
388
- borderColor: I,
398
+ color: C,
399
+ borderColor: C,
389
400
  "&::before": {
390
- backgroundColor: I
401
+ backgroundColor: C
391
402
  }
392
403
  }
393
404
  },
394
- [`${n}-group-solid &-checked:not(${n}-button-wrapper-disabled)`]: {
395
- color: y,
396
- background: N,
397
- borderColor: N,
405
+ [`${t}-group-solid &-checked:not(${t}-button-wrapper-disabled)`]: {
406
+ color: x,
407
+ background: R,
408
+ borderColor: R,
398
409
  "&:hover": {
399
- color: y,
400
- background: j,
401
- borderColor: j
410
+ color: x,
411
+ background: N,
412
+ borderColor: N
402
413
  },
403
414
  "&:active": {
404
- color: y,
405
- background: C,
406
- borderColor: C
415
+ color: x,
416
+ background: j,
417
+ borderColor: j
407
418
  }
408
419
  },
409
420
  "&-disabled": {
410
- color: x,
411
- backgroundColor: g,
412
- borderColor: d,
421
+ color: I,
422
+ backgroundColor: p,
423
+ borderColor: a,
413
424
  cursor: "not-allowed",
414
425
  "&:first-child, &:hover": {
415
- color: x,
416
- backgroundColor: g,
417
- borderColor: d
426
+ color: I,
427
+ backgroundColor: p,
428
+ borderColor: a
418
429
  }
419
430
  },
420
- [`&-disabled${n}-button-wrapper-checked`]: {
421
- color: b,
422
- backgroundColor: z,
423
- borderColor: d,
431
+ [`&-disabled${t}-button-wrapper-checked`]: {
432
+ color: h,
433
+ backgroundColor: P,
434
+ borderColor: a,
424
435
  boxShadow: "none"
436
+ },
437
+ "&-block": {
438
+ flex: 1,
439
+ textAlign: "center"
425
440
  }
426
441
  }
427
442
  };
428
- }, Ye = (e) => {
443
+ }, Je = (e) => {
429
444
  const {
430
- wireframe: t,
431
- padding: o,
432
- marginXS: n,
433
- lineWidth: i,
434
- fontSizeLG: r,
435
- colorText: d,
436
- colorBgContainer: a,
445
+ wireframe: n,
446
+ padding: i,
447
+ marginXS: t,
448
+ lineWidth: o,
449
+ fontSizeLG: s,
450
+ colorText: a,
451
+ colorBgContainer: r,
437
452
  colorTextDisabled: l,
438
453
  controlItemBgActiveDisabled: c,
439
- colorTextLightSolid: h,
454
+ colorTextLightSolid: g,
440
455
  colorPrimary: u,
441
- colorPrimaryHover: v,
442
- colorPrimaryActive: f,
443
- colorWhite: E
444
- } = e, p = 4, S = r, w = t ? S - p * 2 : S - (p + i) * 2;
456
+ colorPrimaryHover: S,
457
+ colorPrimaryActive: m,
458
+ colorWhite: w
459
+ } = e, y = 4, b = s, k = n ? b - y * 2 : b - (y + o) * 2;
445
460
  return {
446
461
  // Radio
447
- radioSize: S,
448
- dotSize: w,
462
+ radioSize: b,
463
+ dotSize: k,
449
464
  dotColorDisabled: l,
450
465
  // Radio buttons
451
- buttonSolidCheckedColor: h,
466
+ buttonSolidCheckedColor: g,
452
467
  buttonSolidCheckedBg: u,
453
- buttonSolidCheckedHoverBg: v,
454
- buttonSolidCheckedActiveBg: f,
455
- buttonBg: a,
456
- buttonCheckedBg: a,
457
- buttonColor: d,
468
+ buttonSolidCheckedHoverBg: S,
469
+ buttonSolidCheckedActiveBg: m,
470
+ buttonBg: r,
471
+ buttonCheckedBg: r,
472
+ buttonColor: a,
458
473
  buttonCheckedBgDisabled: c,
459
474
  buttonCheckedColorDisabled: l,
460
- buttonPaddingInline: o - i,
461
- wrapperMarginInlineEnd: n,
475
+ buttonPaddingInline: i - o,
476
+ wrapperMarginInlineEnd: t,
462
477
  // internal
463
- radioColor: t ? u : E,
464
- radioBgColor: t ? a : u
478
+ radioColor: n ? u : w,
479
+ radioBgColor: n ? r : u
465
480
  };
466
- }, $e = Z("Radio", (e) => {
481
+ }, we = ne("Radio", (e) => {
467
482
  const {
468
- controlOutline: t,
469
- controlOutlineWidth: o
470
- } = e, n = `0 0 0 ${O(o)} ${t}`, r = ee(e, {
471
- radioFocusShadow: n,
472
- radioButtonFocusShadow: n
483
+ controlOutline: n,
484
+ controlOutlineWidth: i
485
+ } = e, t = `0 0 0 ${E(i)} ${n}`, s = oe(e, {
486
+ radioFocusShadow: t,
487
+ radioButtonFocusShadow: t
473
488
  });
474
- return [Ke(r), Ue(r), Qe(r)];
475
- }, Ye, {
489
+ return [Ue(s), Qe(s), Ye(s)];
490
+ }, Je, {
476
491
  unitless: {
477
492
  radioSize: !0,
478
493
  dotSize: !0
479
494
  }
480
495
  });
481
- var Je = function(e, t) {
482
- var o = {};
483
- for (var n in e)
484
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
485
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
486
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
487
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
488
- return o;
496
+ var Ze = function(e, n) {
497
+ var i = {};
498
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (i[t] = e[t]);
499
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
500
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (i[t[o]] = e[t[o]]);
501
+ return i;
489
502
  };
490
- const Ze = (e, t) => {
491
- var o, n;
492
- const i = s.useContext(ve), r = s.useContext(Se), {
493
- getPrefixCls: d,
494
- direction: a,
503
+ const et = (e, n) => {
504
+ var i, t;
505
+ const o = d.useContext(ye), s = d.useContext(xe), {
506
+ getPrefixCls: a,
507
+ direction: r,
495
508
  radio: l
496
- } = s.useContext(_), c = s.useRef(null), h = qe(t, c), {
509
+ } = d.useContext(W), c = d.useRef(null), g = qe(n, c), {
497
510
  isFormItemInput: u
498
- } = s.useContext(Pe);
511
+ } = d.useContext(Ne);
499
512
  if (process.env.NODE_ENV !== "production") {
500
- const C = me("Radio");
501
- process.env.NODE_ENV !== "production" && C(!("optionType" in e), "usage", "`optionType` is only support in Radio.Group.");
513
+ const j = Se("Radio");
514
+ process.env.NODE_ENV !== "production" && j(!("optionType" in e), "usage", "`optionType` is only support in Radio.Group.");
502
515
  }
503
- const v = (C) => {
504
- var M, B;
505
- (M = e.onChange) === null || M === void 0 || M.call(e, C), (B = i == null ? void 0 : i.onChange) === null || B === void 0 || B.call(i, C);
516
+ const S = (j) => {
517
+ var M, T;
518
+ (M = e.onChange) === null || M === void 0 || M.call(e, j), (T = o == null ? void 0 : o.onChange) === null || T === void 0 || T.call(o, j);
506
519
  }, {
507
- prefixCls: f,
508
- className: E,
509
- rootClassName: p,
510
- children: S,
511
- style: w,
512
- title: m
513
- } = e, $ = Je(e, ["prefixCls", "className", "rootClassName", "children", "style", "title"]), y = d("radio", f), x = ((i == null ? void 0 : i.optionType) || r) === "button", g = x ? `${y}-button` : y, z = ce(y), [b, k, P] = $e(y, z), I = Object.assign({}, $), N = s.useContext(Ce);
514
- i && (I.name = i.name, I.onChange = v, I.checked = e.value === i.value, I.disabled = (o = I.disabled) !== null && o !== void 0 ? o : i.disabled), I.disabled = (n = I.disabled) !== null && n !== void 0 ? n : N;
515
- const j = D(`${g}-wrapper`, {
516
- [`${g}-wrapper-checked`]: I.checked,
517
- [`${g}-wrapper-disabled`]: I.disabled,
518
- [`${g}-wrapper-rtl`]: a === "rtl",
519
- [`${g}-wrapper-in-form-item`]: u
520
- }, l == null ? void 0 : l.className, E, p, k, P, z);
521
- return b(/* @__PURE__ */ s.createElement(ue, {
520
+ prefixCls: m,
521
+ className: w,
522
+ rootClassName: y,
523
+ children: b,
524
+ style: k,
525
+ title: f
526
+ } = e, v = Ze(e, ["prefixCls", "className", "rootClassName", "children", "style", "title"]), x = a("radio", m), I = ((o == null ? void 0 : o.optionType) || s) === "button", p = I ? `${x}-button` : x, P = ge(x), [h, $, z] = we(x, P), C = Object.assign({}, v), R = d.useContext($e);
527
+ o && (C.name = o.name, C.onChange = S, C.checked = e.value === o.value, C.disabled = (i = C.disabled) !== null && i !== void 0 ? i : o.disabled), C.disabled = (t = C.disabled) !== null && t !== void 0 ? t : R;
528
+ const N = _(`${p}-wrapper`, {
529
+ [`${p}-wrapper-checked`]: C.checked,
530
+ [`${p}-wrapper-disabled`]: C.disabled,
531
+ [`${p}-wrapper-rtl`]: r === "rtl",
532
+ [`${p}-wrapper-in-form-item`]: u,
533
+ [`${p}-wrapper-block`]: !!(o != null && o.block)
534
+ }, l == null ? void 0 : l.className, w, y, $, z, P);
535
+ return h(/* @__PURE__ */ d.createElement(be, {
522
536
  component: "Radio",
523
- disabled: I.disabled
524
- }, /* @__PURE__ */ s.createElement("label", {
525
- className: j,
526
- style: Object.assign(Object.assign({}, l == null ? void 0 : l.style), w),
537
+ disabled: C.disabled
538
+ }, /* @__PURE__ */ d.createElement("label", {
539
+ className: N,
540
+ style: Object.assign(Object.assign({}, l == null ? void 0 : l.style), k),
527
541
  onMouseEnter: e.onMouseEnter,
528
542
  onMouseLeave: e.onMouseLeave,
529
- title: m
530
- }, /* @__PURE__ */ s.createElement(Xe, Object.assign({}, I, {
531
- className: D(I.className, !x && Ne),
543
+ title: f
544
+ }, /* @__PURE__ */ d.createElement(Ke, Object.assign({}, C, {
545
+ className: _(C.className, {
546
+ [Me]: !I
547
+ }),
532
548
  type: "radio",
533
- prefixCls: g,
534
- ref: h
535
- })), S !== void 0 ? /* @__PURE__ */ s.createElement("span", null, S) : null)));
536
- }, V = /* @__PURE__ */ s.forwardRef(Ze);
537
- process.env.NODE_ENV !== "production" && (V.displayName = "Radio");
538
- const en = /* @__PURE__ */ s.forwardRef((e, t) => {
549
+ prefixCls: p,
550
+ ref: g
551
+ })), b !== void 0 ? /* @__PURE__ */ d.createElement("span", null, b) : null)));
552
+ }, G = /* @__PURE__ */ d.forwardRef(et);
553
+ process.env.NODE_ENV !== "production" && (G.displayName = "Radio");
554
+ const tt = /* @__PURE__ */ d.forwardRef((e, n) => {
539
555
  const {
540
- getPrefixCls: o,
541
- direction: n
542
- } = s.useContext(_), [i, r] = K(e.defaultValue, {
543
- value: e.value
544
- }), d = (C) => {
545
- const M = i, B = C.target.value;
546
- "value" in e || r(B);
547
- const {
548
- onChange: T
549
- } = e;
550
- T && B !== M && T(C);
551
- }, {
552
- prefixCls: a,
553
- className: l,
554
- rootClassName: c,
555
- options: h,
556
- buttonStyle: u = "outline",
557
- disabled: v,
558
- children: f,
559
- size: E,
560
- style: p,
561
- id: S,
562
- onMouseEnter: w,
563
- onMouseLeave: m,
564
- onFocus: $,
565
- onBlur: y
566
- } = e, x = o("radio", a), g = `${x}-group`, z = ce(x), [b, k, P] = $e(x, z);
567
- let I = f;
568
- h && h.length > 0 && (I = h.map((C) => typeof C == "string" || typeof C == "number" ? /* @__PURE__ */ s.createElement(V, {
569
- key: C.toString(),
570
- prefixCls: x,
571
- disabled: v,
572
- value: C,
573
- checked: i === C
574
- }, C) : /* @__PURE__ */ s.createElement(V, {
575
- key: `radio-group-value-options-${C.value}`,
576
- prefixCls: x,
577
- disabled: C.disabled || v,
578
- value: C.value,
579
- checked: i === C.value,
580
- title: C.title,
581
- style: C.style,
582
- id: C.id,
583
- required: C.required
584
- }, C.label)));
585
- const N = he(E), j = D(g, `${g}-${u}`, {
586
- [`${g}-${N}`]: N,
587
- [`${g}-rtl`]: n === "rtl"
588
- }, l, c, k, P, z);
589
- return b(/* @__PURE__ */ s.createElement("div", Object.assign({}, Le(e, {
556
+ getPrefixCls: i,
557
+ direction: t
558
+ } = d.useContext(W), {
559
+ prefixCls: o,
560
+ className: s,
561
+ rootClassName: a,
562
+ options: r,
563
+ buttonStyle: l = "outline",
564
+ disabled: c,
565
+ children: g,
566
+ size: u,
567
+ style: S,
568
+ id: m,
569
+ optionType: w,
570
+ name: y,
571
+ defaultValue: b,
572
+ value: k,
573
+ block: f = !1,
574
+ onChange: v,
575
+ onMouseEnter: x,
576
+ onMouseLeave: I,
577
+ onFocus: p,
578
+ onBlur: P
579
+ } = e, [h, $] = Y(b, {
580
+ value: k
581
+ }), z = d.useCallback((O) => {
582
+ const H = h, D = O.target.value;
583
+ "value" in e || $(D), D !== H && (v == null || v(O));
584
+ }, [h, $, v]), C = i("radio", o), R = `${C}-group`, N = ge(C), [j, M, T] = we(C, N);
585
+ let X = g;
586
+ r && r.length > 0 && (X = r.map((O) => typeof O == "string" || typeof O == "number" ? /* @__PURE__ */ d.createElement(G, {
587
+ key: O.toString(),
588
+ prefixCls: C,
589
+ disabled: c,
590
+ value: O,
591
+ checked: h === O
592
+ }, O) : /* @__PURE__ */ d.createElement(G, {
593
+ key: `radio-group-value-options-${O.value}`,
594
+ prefixCls: C,
595
+ disabled: O.disabled || c,
596
+ value: O.value,
597
+ checked: h === O.value,
598
+ title: O.title,
599
+ style: O.style,
600
+ id: O.id,
601
+ required: O.required
602
+ }, O.label)));
603
+ const q = pe(u), V = _(R, `${R}-${l}`, {
604
+ [`${R}-${q}`]: q,
605
+ [`${R}-rtl`]: t === "rtl",
606
+ [`${R}-block`]: f
607
+ }, s, a, M, T, N), J = d.useMemo(() => ({
608
+ onChange: z,
609
+ value: h,
610
+ disabled: c,
611
+ name: y,
612
+ optionType: w,
613
+ block: f
614
+ }), [z, h, c, y, w, f]);
615
+ return j(/* @__PURE__ */ d.createElement("div", Object.assign({}, Ae(e, {
590
616
  aria: !0,
591
617
  data: !0
592
618
  }), {
593
- className: j,
594
- style: p,
595
- onMouseEnter: w,
596
- onMouseLeave: m,
597
- onFocus: $,
598
- onBlur: y,
599
- id: S,
600
- ref: t
601
- }), /* @__PURE__ */ s.createElement(Ae, {
602
- value: {
603
- onChange: d,
604
- value: i,
605
- disabled: e.disabled,
606
- name: e.name,
607
- optionType: e.optionType
608
- }
609
- }, I)));
610
- }), nn = /* @__PURE__ */ s.memo(en);
611
- var tn = function(e, t) {
612
- var o = {};
613
- for (var n in e)
614
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
615
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
616
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
617
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
618
- return o;
619
+ className: V,
620
+ style: S,
621
+ onMouseEnter: x,
622
+ onMouseLeave: I,
623
+ onFocus: p,
624
+ onBlur: P,
625
+ id: m,
626
+ ref: n
627
+ }), /* @__PURE__ */ d.createElement(Ge, {
628
+ value: J
629
+ }, X)));
630
+ }), nt = /* @__PURE__ */ d.memo(tt);
631
+ var ot = function(e, n) {
632
+ var i = {};
633
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (i[t] = e[t]);
634
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
635
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (i[t[o]] = e[t[o]]);
636
+ return i;
619
637
  };
620
- const on = (e, t) => {
638
+ const it = (e, n) => {
621
639
  const {
622
- getPrefixCls: o
623
- } = s.useContext(_), {
624
- prefixCls: n
625
- } = e, i = tn(e, ["prefixCls"]), r = o("radio", n);
626
- return /* @__PURE__ */ s.createElement(Ge, {
640
+ getPrefixCls: i
641
+ } = d.useContext(W), {
642
+ prefixCls: t
643
+ } = e, o = ot(e, ["prefixCls"]), s = i("radio", t);
644
+ return /* @__PURE__ */ d.createElement(Fe, {
627
645
  value: "button"
628
- }, /* @__PURE__ */ s.createElement(V, Object.assign({
629
- prefixCls: r
630
- }, i, {
646
+ }, /* @__PURE__ */ d.createElement(G, Object.assign({
647
+ prefixCls: s
648
+ }, o, {
631
649
  type: "radio",
632
- ref: t
650
+ ref: n
633
651
  })));
634
- }, rn = /* @__PURE__ */ s.forwardRef(on), L = V;
635
- L.Button = rn;
636
- L.Group = nn;
637
- L.__ANT_RADIO = !0;
638
- const an = (e) => {
652
+ }, rt = /* @__PURE__ */ d.forwardRef(it), F = G;
653
+ F.Button = rt;
654
+ F.Group = nt;
655
+ F.__ANT_RADIO = !0;
656
+ const at = (e) => {
639
657
  const {
640
- componentCls: t,
641
- sizePaddingEdgeHorizontal: o,
642
- colorSplit: n,
643
- lineWidth: i,
644
- textPaddingInline: r,
645
- orientationMargin: d,
646
- verticalMarginInline: a
658
+ componentCls: n,
659
+ sizePaddingEdgeHorizontal: i,
660
+ colorSplit: t,
661
+ lineWidth: o,
662
+ textPaddingInline: s,
663
+ orientationMargin: a,
664
+ verticalMarginInline: r
647
665
  } = e;
648
666
  return {
649
- [t]: Object.assign(Object.assign({}, W(e)), {
650
- borderBlockStart: `${O(i)} solid ${n}`,
667
+ [n]: Object.assign(Object.assign({}, A(e)), {
668
+ borderBlockStart: `${E(o)} solid ${t}`,
651
669
  // vertical
652
670
  "&-vertical": {
653
671
  position: "relative",
654
672
  top: "-0.06em",
655
673
  display: "inline-block",
656
674
  height: "0.9em",
657
- marginInline: a,
675
+ marginInline: r,
658
676
  marginBlock: 0,
659
677
  verticalAlign: "middle",
660
678
  borderTop: 0,
661
- borderInlineStart: `${O(i)} solid ${n}`
679
+ borderInlineStart: `${E(o)} solid ${t}`
662
680
  },
663
681
  "&-horizontal": {
664
682
  display: "flex",
@@ -666,22 +684,22 @@ const an = (e) => {
666
684
  width: "100%",
667
685
  minWidth: "100%",
668
686
  // Fix https://github.com/ant-design/ant-design/issues/10914
669
- margin: `${O(e.dividerHorizontalGutterMargin)} 0`
687
+ margin: `${E(e.dividerHorizontalGutterMargin)} 0`
670
688
  },
671
- [`&-horizontal${t}-with-text`]: {
689
+ [`&-horizontal${n}-with-text`]: {
672
690
  display: "flex",
673
691
  alignItems: "center",
674
- margin: `${O(e.dividerHorizontalWithTextGutterMargin)} 0`,
692
+ margin: `${E(e.dividerHorizontalWithTextGutterMargin)} 0`,
675
693
  color: e.colorTextHeading,
676
694
  fontWeight: 500,
677
695
  fontSize: e.fontSizeLG,
678
696
  whiteSpace: "nowrap",
679
697
  textAlign: "center",
680
- borderBlockStart: `0 ${n}`,
698
+ borderBlockStart: `0 ${t}`,
681
699
  "&::before, &::after": {
682
700
  position: "relative",
683
701
  width: "50%",
684
- borderBlockStart: `${O(i)} solid transparent`,
702
+ borderBlockStart: `${E(o)} solid transparent`,
685
703
  // Chrome not accept `inherit` in `border-top`
686
704
  borderBlockStartColor: "inherit",
687
705
  borderBlockEnd: 0,
@@ -689,333 +707,348 @@ const an = (e) => {
689
707
  content: "''"
690
708
  }
691
709
  },
692
- [`&-horizontal${t}-with-text-left`]: {
710
+ [`&-horizontal${n}-with-text-left`]: {
693
711
  "&::before": {
694
- width: `calc(${d} * 100%)`
712
+ width: `calc(${a} * 100%)`
695
713
  },
696
714
  "&::after": {
697
- width: `calc(100% - ${d} * 100%)`
715
+ width: `calc(100% - ${a} * 100%)`
698
716
  }
699
717
  },
700
- [`&-horizontal${t}-with-text-right`]: {
718
+ [`&-horizontal${n}-with-text-right`]: {
701
719
  "&::before": {
702
- width: `calc(100% - ${d} * 100%)`
720
+ width: `calc(100% - ${a} * 100%)`
703
721
  },
704
722
  "&::after": {
705
- width: `calc(${d} * 100%)`
723
+ width: `calc(${a} * 100%)`
706
724
  }
707
725
  },
708
- [`${t}-inner-text`]: {
726
+ [`${n}-inner-text`]: {
709
727
  display: "inline-block",
710
728
  paddingBlock: 0,
711
- paddingInline: r
729
+ paddingInline: s
712
730
  },
713
731
  "&-dashed": {
714
732
  background: "none",
715
- borderColor: n,
733
+ borderColor: t,
716
734
  borderStyle: "dashed",
717
- borderWidth: `${O(i)} 0 0`
735
+ borderWidth: `${E(o)} 0 0`
718
736
  },
719
- [`&-horizontal${t}-with-text${t}-dashed`]: {
737
+ [`&-horizontal${n}-with-text${n}-dashed`]: {
720
738
  "&::before, &::after": {
721
739
  borderStyle: "dashed none none"
722
740
  }
723
741
  },
724
- [`&-vertical${t}-dashed`]: {
725
- borderInlineStartWidth: i,
742
+ [`&-vertical${n}-dashed`]: {
743
+ borderInlineStartWidth: o,
726
744
  borderInlineEnd: 0,
727
745
  borderBlockStart: 0,
728
746
  borderBlockEnd: 0
729
747
  },
730
- [`&-plain${t}-with-text`]: {
748
+ "&-dotted": {
749
+ background: "none",
750
+ borderColor: t,
751
+ borderStyle: "dotted",
752
+ borderWidth: `${E(o)} 0 0`
753
+ },
754
+ [`&-horizontal${n}-with-text${n}-dotted`]: {
755
+ "&::before, &::after": {
756
+ borderStyle: "dotted none none"
757
+ }
758
+ },
759
+ [`&-vertical${n}-dotted`]: {
760
+ borderInlineStartWidth: o,
761
+ borderInlineEnd: 0,
762
+ borderBlockStart: 0,
763
+ borderBlockEnd: 0
764
+ },
765
+ [`&-plain${n}-with-text`]: {
731
766
  color: e.colorText,
732
767
  fontWeight: "normal",
733
768
  fontSize: e.fontSize
734
769
  },
735
- [`&-horizontal${t}-with-text-left${t}-no-default-orientation-margin-left`]: {
770
+ [`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]: {
736
771
  "&::before": {
737
772
  width: 0
738
773
  },
739
774
  "&::after": {
740
775
  width: "100%"
741
776
  },
742
- [`${t}-inner-text`]: {
743
- paddingInlineStart: o
777
+ [`${n}-inner-text`]: {
778
+ paddingInlineStart: i
744
779
  }
745
780
  },
746
- [`&-horizontal${t}-with-text-right${t}-no-default-orientation-margin-right`]: {
781
+ [`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]: {
747
782
  "&::before": {
748
783
  width: "100%"
749
784
  },
750
785
  "&::after": {
751
786
  width: 0
752
787
  },
753
- [`${t}-inner-text`]: {
754
- paddingInlineEnd: o
788
+ [`${n}-inner-text`]: {
789
+ paddingInlineEnd: i
755
790
  }
756
791
  }
757
792
  })
758
793
  };
759
- }, ln = (e) => ({
794
+ }, lt = (e) => ({
760
795
  textPaddingInline: "1em",
761
796
  orientationMargin: 0.05,
762
797
  verticalMarginInline: e.marginXS
763
- }), dn = Z("Divider", (e) => {
764
- const t = ee(e, {
798
+ }), dt = ne("Divider", (e) => {
799
+ const n = oe(e, {
765
800
  dividerHorizontalWithTextGutterMargin: e.margin,
766
801
  dividerHorizontalGutterMargin: e.marginLG,
767
802
  sizePaddingEdgeHorizontal: 0
768
803
  });
769
- return [an(t)];
770
- }, ln, {
804
+ return [at(n)];
805
+ }, lt, {
771
806
  unitless: {
772
807
  orientationMargin: !0
773
808
  }
774
809
  });
775
- var sn = function(e, t) {
776
- var o = {};
777
- for (var n in e)
778
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
779
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
780
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
781
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
782
- return o;
810
+ var st = function(e, n) {
811
+ var i = {};
812
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (i[t] = e[t]);
813
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
814
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (i[t[o]] = e[t[o]]);
815
+ return i;
783
816
  };
784
- const ye = (e) => {
817
+ const ke = (e) => {
785
818
  const {
786
- getPrefixCls: t,
787
- direction: o,
788
- divider: n
789
- } = s.useContext(_), {
790
- prefixCls: i,
791
- type: r = "horizontal",
792
- orientation: d = "center",
793
- orientationMargin: a,
819
+ getPrefixCls: n,
820
+ direction: i,
821
+ divider: t
822
+ } = d.useContext(W), {
823
+ prefixCls: o,
824
+ type: s = "horizontal",
825
+ orientation: a = "center",
826
+ orientationMargin: r,
794
827
  className: l,
795
828
  rootClassName: c,
796
- children: h,
829
+ children: g,
797
830
  dashed: u,
798
- plain: v,
799
- style: f
800
- } = e, E = sn(e, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "plain", "style"]), p = t("divider", i), [S, w, m] = dn(p), $ = d.length > 0 ? `-${d}` : d, y = !!h, x = d === "left" && a != null, g = d === "right" && a != null, z = D(p, n == null ? void 0 : n.className, w, m, `${p}-${r}`, {
801
- [`${p}-with-text`]: y,
802
- [`${p}-with-text${$}`]: y,
803
- [`${p}-dashed`]: !!u,
804
- [`${p}-plain`]: !!v,
805
- [`${p}-rtl`]: o === "rtl",
806
- [`${p}-no-default-orientation-margin-left`]: x,
807
- [`${p}-no-default-orientation-margin-right`]: g
808
- }, l, c), b = s.useMemo(() => typeof a == "number" ? a : /^\d+$/.test(a) ? Number(a) : a, [a]), k = Object.assign(Object.assign({}, x && {
809
- marginLeft: b
810
- }), g && {
811
- marginRight: b
831
+ variant: S = "solid",
832
+ plain: m,
833
+ style: w
834
+ } = e, y = st(e, ["prefixCls", "type", "orientation", "orientationMargin", "className", "rootClassName", "children", "dashed", "variant", "plain", "style"]), b = n("divider", o), [k, f, v] = dt(b), x = !!g, I = a === "left" && r != null, p = a === "right" && r != null, P = _(b, t == null ? void 0 : t.className, f, v, `${b}-${s}`, {
835
+ [`${b}-with-text`]: x,
836
+ [`${b}-with-text-${a}`]: x,
837
+ [`${b}-dashed`]: !!u,
838
+ [`${b}-${S}`]: S !== "solid",
839
+ [`${b}-plain`]: !!m,
840
+ [`${b}-rtl`]: i === "rtl",
841
+ [`${b}-no-default-orientation-margin-left`]: I,
842
+ [`${b}-no-default-orientation-margin-right`]: p
843
+ }, l, c), h = d.useMemo(() => typeof r == "number" ? r : /^\d+$/.test(r) ? Number(r) : r, [r]), $ = Object.assign(Object.assign({}, I && {
844
+ marginLeft: h
845
+ }), p && {
846
+ marginRight: h
812
847
  });
813
848
  if (process.env.NODE_ENV !== "production") {
814
- const P = me("Divider");
815
- process.env.NODE_ENV !== "production" && P(!h || r !== "vertical", "usage", "`children` not working in `vertical` mode.");
849
+ const z = Se("Divider");
850
+ process.env.NODE_ENV !== "production" && z(!g || s !== "vertical", "usage", "`children` not working in `vertical` mode.");
816
851
  }
817
- return S(/* @__PURE__ */ s.createElement("div", Object.assign({
818
- className: z,
819
- style: Object.assign(Object.assign({}, n == null ? void 0 : n.style), f)
820
- }, E, {
852
+ return k(/* @__PURE__ */ d.createElement("div", Object.assign({
853
+ className: P,
854
+ style: Object.assign(Object.assign({}, t == null ? void 0 : t.style), w)
855
+ }, y, {
821
856
  role: "separator"
822
- }), h && r !== "vertical" && /* @__PURE__ */ s.createElement("span", {
823
- className: `${p}-inner-text`,
824
- style: k
825
- }, h)));
857
+ }), g && s !== "vertical" && /* @__PURE__ */ d.createElement("span", {
858
+ className: `${b}-inner-text`,
859
+ style: $
860
+ }, g)));
826
861
  };
827
- process.env.NODE_ENV !== "production" && (ye.displayName = "Divider");
828
- function ae(e) {
862
+ process.env.NODE_ENV !== "production" && (ke.displayName = "Divider");
863
+ function se(e) {
829
864
  return ["small", "middle", "large"].includes(e);
830
865
  }
831
- function le(e) {
866
+ function ce(e) {
832
867
  return e ? typeof e == "number" && !Number.isNaN(e) : !1;
833
868
  }
834
- const xe = /* @__PURE__ */ _e.createContext({
869
+ const Ie = /* @__PURE__ */ Te.createContext({
835
870
  latestIndex: 0
836
- }), cn = xe.Provider, un = (e) => {
871
+ }), ct = Ie.Provider, ut = (e) => {
837
872
  let {
838
- className: t,
839
- index: o,
840
- children: n,
841
- split: i,
842
- style: r
873
+ className: n,
874
+ index: i,
875
+ children: t,
876
+ split: o,
877
+ style: s
843
878
  } = e;
844
879
  const {
845
- latestIndex: d
846
- } = s.useContext(xe);
847
- return n == null ? null : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
848
- className: t,
849
- style: r
850
- }, n), o < d && i && /* @__PURE__ */ s.createElement("span", {
851
- className: `${t}-split`
852
- }, i));
880
+ latestIndex: a
881
+ } = d.useContext(Ie);
882
+ return t == null ? null : /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("div", {
883
+ className: n,
884
+ style: s
885
+ }, t), i < a && o && /* @__PURE__ */ d.createElement("span", {
886
+ className: `${n}-split`
887
+ }, o));
853
888
  };
854
- var hn = function(e, t) {
855
- var o = {};
856
- for (var n in e)
857
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
858
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
859
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
860
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
861
- return o;
889
+ var ht = function(e, n) {
890
+ var i = {};
891
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (i[t] = e[t]);
892
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
893
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (i[t[o]] = e[t[o]]);
894
+ return i;
862
895
  };
863
- const gn = /* @__PURE__ */ s.forwardRef((e, t) => {
864
- var o, n;
896
+ const gt = /* @__PURE__ */ d.forwardRef((e, n) => {
897
+ var i, t, o;
865
898
  const {
866
- getPrefixCls: i,
867
- space: r,
868
- direction: d
869
- } = s.useContext(_), {
870
- size: a = (r == null ? void 0 : r.size) || "small",
871
- align: l,
872
- className: c,
873
- rootClassName: h,
874
- children: u,
875
- direction: v = "horizontal",
876
- prefixCls: f,
877
- split: E,
878
- style: p,
879
- wrap: S = !1,
880
- classNames: w,
881
- styles: m
882
- } = e, $ = hn(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [y, x] = Array.isArray(a) ? a : [a, a], g = ae(x), z = ae(y), b = le(x), k = le(y), P = Re(u, {
899
+ getPrefixCls: s,
900
+ space: a,
901
+ direction: r
902
+ } = d.useContext(W), {
903
+ size: l = (i = a == null ? void 0 : a.size) !== null && i !== void 0 ? i : "small",
904
+ align: c,
905
+ className: g,
906
+ rootClassName: u,
907
+ children: S,
908
+ direction: m = "horizontal",
909
+ prefixCls: w,
910
+ split: y,
911
+ style: b,
912
+ wrap: k = !1,
913
+ classNames: f,
914
+ styles: v
915
+ } = e, x = ht(e, ["size", "align", "className", "rootClassName", "children", "direction", "prefixCls", "split", "style", "wrap", "classNames", "styles"]), [I, p] = Array.isArray(l) ? l : [l, l], P = se(p), h = se(I), $ = ce(p), z = ce(I), C = je(S, {
883
916
  keepEmpty: !0
884
- }), I = l === void 0 && v === "horizontal" ? "center" : l, N = i("space", f), [j, C, M] = je(N), B = D(N, r == null ? void 0 : r.className, C, `${N}-${v}`, {
885
- [`${N}-rtl`]: d === "rtl",
886
- [`${N}-align-${I}`]: I,
887
- [`${N}-gap-row-${x}`]: g,
888
- [`${N}-gap-col-${y}`]: z
889
- }, c, h, M), T = D(`${N}-item`, (o = w == null ? void 0 : w.item) !== null && o !== void 0 ? o : (n = r == null ? void 0 : r.classNames) === null || n === void 0 ? void 0 : n.item);
890
- let U = 0;
891
- const ke = P.map((H, Q) => {
892
- var Y, J;
893
- H != null && (U = Q);
894
- const Ee = H && H.key || `${T}-${Q}`;
895
- return /* @__PURE__ */ s.createElement(un, {
896
- className: T,
897
- key: Ee,
898
- index: Q,
899
- split: E,
900
- style: (Y = m == null ? void 0 : m.item) !== null && Y !== void 0 ? Y : (J = r == null ? void 0 : r.styles) === null || J === void 0 ? void 0 : J.item
901
- }, H);
902
- }), Ie = s.useMemo(() => ({
903
- latestIndex: U
904
- }), [U]);
905
- if (P.length === 0)
917
+ }), R = c === void 0 && m === "horizontal" ? "center" : c, N = s("space", w), [j, M, T] = Be(N), X = _(N, a == null ? void 0 : a.className, M, `${N}-${m}`, {
918
+ [`${N}-rtl`]: r === "rtl",
919
+ [`${N}-align-${R}`]: R,
920
+ [`${N}-gap-row-${p}`]: P,
921
+ [`${N}-gap-col-${I}`]: h
922
+ }, g, u, T), q = _(`${N}-item`, (t = f == null ? void 0 : f.item) !== null && t !== void 0 ? t : (o = a == null ? void 0 : a.classNames) === null || o === void 0 ? void 0 : o.item);
923
+ let V = 0;
924
+ const J = C.map((D, Z) => {
925
+ var ee, te;
926
+ D != null && (V = Z);
927
+ const Oe = (D == null ? void 0 : D.key) || `${q}-${Z}`;
928
+ return /* @__PURE__ */ d.createElement(ut, {
929
+ className: q,
930
+ key: Oe,
931
+ index: Z,
932
+ split: y,
933
+ style: (ee = v == null ? void 0 : v.item) !== null && ee !== void 0 ? ee : (te = a == null ? void 0 : a.styles) === null || te === void 0 ? void 0 : te.item
934
+ }, D);
935
+ }), O = d.useMemo(() => ({
936
+ latestIndex: V
937
+ }), [V]);
938
+ if (C.length === 0)
906
939
  return null;
907
- const A = {};
908
- return S && (A.flexWrap = "wrap"), !z && k && (A.columnGap = y), !g && b && (A.rowGap = x), j(/* @__PURE__ */ s.createElement("div", Object.assign({
909
- ref: t,
910
- className: B,
911
- style: Object.assign(Object.assign(Object.assign({}, A), r == null ? void 0 : r.style), p)
912
- }, $), /* @__PURE__ */ s.createElement(cn, {
913
- value: Ie
914
- }, ke)));
915
- }), ne = gn;
916
- ne.Compact = Me;
917
- process.env.NODE_ENV !== "production" && (ne.displayName = "Space");
918
- var bn = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"], we = /* @__PURE__ */ s.forwardRef(function(e, t) {
919
- var o, n = e.prefixCls, i = n === void 0 ? "rc-switch" : n, r = e.className, d = e.checked, a = e.defaultChecked, l = e.disabled, c = e.loadingIcon, h = e.checkedChildren, u = e.unCheckedChildren, v = e.onClick, f = e.onChange, E = e.onKeyDown, p = ge(e, bn), S = K(!1, {
920
- value: d,
921
- defaultValue: a
922
- }), w = be(S, 2), m = w[0], $ = w[1];
923
- function y(b, k) {
924
- var P = m;
925
- return l || (P = b, $(P), f == null || f(P, k)), P;
940
+ const H = {};
941
+ return k && (H.flexWrap = "wrap"), !h && z && (H.columnGap = I), !P && $ && (H.rowGap = p), j(/* @__PURE__ */ d.createElement("div", Object.assign({
942
+ ref: n,
943
+ className: X,
944
+ style: Object.assign(Object.assign(Object.assign({}, H), a == null ? void 0 : a.style), b)
945
+ }, x), /* @__PURE__ */ d.createElement(ct, {
946
+ value: O
947
+ }, J)));
948
+ }), ie = gt;
949
+ ie.Compact = Re;
950
+ process.env.NODE_ENV !== "production" && (ie.displayName = "Space");
951
+ var bt = ["prefixCls", "className", "checked", "defaultChecked", "disabled", "loadingIcon", "checkedChildren", "unCheckedChildren", "onClick", "onChange", "onKeyDown"], Ee = /* @__PURE__ */ d.forwardRef(function(e, n) {
952
+ var i, t = e.prefixCls, o = t === void 0 ? "rc-switch" : t, s = e.className, a = e.checked, r = e.defaultChecked, l = e.disabled, c = e.loadingIcon, g = e.checkedChildren, u = e.unCheckedChildren, S = e.onClick, m = e.onChange, w = e.onKeyDown, y = fe(e, bt), b = Y(!1, {
953
+ value: a,
954
+ defaultValue: r
955
+ }), k = me(b, 2), f = k[0], v = k[1];
956
+ function x(h, $) {
957
+ var z = f;
958
+ return l || (z = h, v(z), m == null || m(z, $)), z;
926
959
  }
927
- function x(b) {
928
- b.which === ie.LEFT ? y(!1, b) : b.which === ie.RIGHT && y(!0, b), E == null || E(b);
960
+ function I(h) {
961
+ h.which === ae.LEFT ? x(!1, h) : h.which === ae.RIGHT && x(!0, h), w == null || w(h);
929
962
  }
930
- function g(b) {
931
- var k = y(!m, b);
932
- v == null || v(k, b);
963
+ function p(h) {
964
+ var $ = x(!f, h);
965
+ S == null || S($, h);
933
966
  }
934
- var z = D(i, r, (o = {}, F(o, "".concat(i, "-checked"), m), F(o, "".concat(i, "-disabled"), l), o));
935
- return /* @__PURE__ */ s.createElement("button", pe({}, p, {
967
+ var P = _(o, s, (i = {}, U(i, "".concat(o, "-checked"), f), U(i, "".concat(o, "-disabled"), l), i));
968
+ return /* @__PURE__ */ d.createElement("button", ve({}, y, {
936
969
  type: "button",
937
970
  role: "switch",
938
- "aria-checked": m,
971
+ "aria-checked": f,
939
972
  disabled: l,
940
- className: z,
941
- ref: t,
942
- onKeyDown: x,
943
- onClick: g
944
- }), c, /* @__PURE__ */ s.createElement("span", {
945
- className: "".concat(i, "-inner")
946
- }, /* @__PURE__ */ s.createElement("span", {
947
- className: "".concat(i, "-inner-checked")
948
- }, h), /* @__PURE__ */ s.createElement("span", {
949
- className: "".concat(i, "-inner-unchecked")
973
+ className: P,
974
+ ref: n,
975
+ onKeyDown: I,
976
+ onClick: p
977
+ }), c, /* @__PURE__ */ d.createElement("span", {
978
+ className: "".concat(o, "-inner")
979
+ }, /* @__PURE__ */ d.createElement("span", {
980
+ className: "".concat(o, "-inner-checked")
981
+ }, g), /* @__PURE__ */ d.createElement("span", {
982
+ className: "".concat(o, "-inner-unchecked")
950
983
  }, u)));
951
984
  });
952
- we.displayName = "Switch";
953
- const pn = (e) => {
985
+ Ee.displayName = "Switch";
986
+ const pt = (e) => {
954
987
  const {
955
- componentCls: t,
956
- trackHeightSM: o,
957
- trackPadding: n,
958
- trackMinWidthSM: i,
959
- innerMinMarginSM: r,
960
- innerMaxMarginSM: d,
961
- handleSizeSM: a,
988
+ componentCls: n,
989
+ trackHeightSM: i,
990
+ trackPadding: t,
991
+ trackMinWidthSM: o,
992
+ innerMinMarginSM: s,
993
+ innerMaxMarginSM: a,
994
+ handleSizeSM: r,
962
995
  calc: l
963
- } = e, c = `${t}-inner`, h = O(l(a).add(l(n).mul(2)).equal()), u = O(l(d).mul(2).equal());
996
+ } = e, c = `${n}-inner`, g = E(l(r).add(l(t).mul(2)).equal()), u = E(l(a).mul(2).equal());
964
997
  return {
965
- [t]: {
966
- [`&${t}-small`]: {
967
- minWidth: i,
968
- height: o,
969
- lineHeight: O(o),
970
- [`${t}-inner`]: {
971
- paddingInlineStart: d,
972
- paddingInlineEnd: r,
998
+ [n]: {
999
+ [`&${n}-small`]: {
1000
+ minWidth: o,
1001
+ height: i,
1002
+ lineHeight: E(i),
1003
+ [`${n}-inner`]: {
1004
+ paddingInlineStart: a,
1005
+ paddingInlineEnd: s,
973
1006
  [`${c}-checked, ${c}-unchecked`]: {
974
- minHeight: o
1007
+ minHeight: i
975
1008
  },
976
1009
  [`${c}-checked`]: {
977
- marginInlineStart: `calc(-100% + ${h} - ${u})`,
978
- marginInlineEnd: `calc(100% - ${h} + ${u})`
1010
+ marginInlineStart: `calc(-100% + ${g} - ${u})`,
1011
+ marginInlineEnd: `calc(100% - ${g} + ${u})`
979
1012
  },
980
1013
  [`${c}-unchecked`]: {
981
- marginTop: l(o).mul(-1).equal(),
1014
+ marginTop: l(i).mul(-1).equal(),
982
1015
  marginInlineStart: 0,
983
1016
  marginInlineEnd: 0
984
1017
  }
985
1018
  },
986
- [`${t}-handle`]: {
987
- width: a,
988
- height: a
1019
+ [`${n}-handle`]: {
1020
+ width: r,
1021
+ height: r
989
1022
  },
990
- [`${t}-loading-icon`]: {
991
- top: l(l(a).sub(e.switchLoadingIconSize)).div(2).equal(),
1023
+ [`${n}-loading-icon`]: {
1024
+ top: l(l(r).sub(e.switchLoadingIconSize)).div(2).equal(),
992
1025
  fontSize: e.switchLoadingIconSize
993
1026
  },
994
- [`&${t}-checked`]: {
995
- [`${t}-inner`]: {
996
- paddingInlineStart: r,
997
- paddingInlineEnd: d,
1027
+ [`&${n}-checked`]: {
1028
+ [`${n}-inner`]: {
1029
+ paddingInlineStart: s,
1030
+ paddingInlineEnd: a,
998
1031
  [`${c}-checked`]: {
999
1032
  marginInlineStart: 0,
1000
1033
  marginInlineEnd: 0
1001
1034
  },
1002
1035
  [`${c}-unchecked`]: {
1003
- marginInlineStart: `calc(100% - ${h} + ${u})`,
1004
- marginInlineEnd: `calc(-100% + ${h} - ${u})`
1036
+ marginInlineStart: `calc(100% - ${g} + ${u})`,
1037
+ marginInlineEnd: `calc(-100% + ${g} - ${u})`
1005
1038
  }
1006
1039
  },
1007
- [`${t}-handle`]: {
1008
- insetInlineStart: `calc(100% - ${O(l(a).add(n).equal())})`
1040
+ [`${n}-handle`]: {
1041
+ insetInlineStart: `calc(100% - ${E(l(r).add(t).equal())})`
1009
1042
  }
1010
1043
  },
1011
- [`&:not(${t}-disabled):active`]: {
1012
- [`&:not(${t}-checked) ${c}`]: {
1044
+ [`&:not(${n}-disabled):active`]: {
1045
+ [`&:not(${n}-checked) ${c}`]: {
1013
1046
  [`${c}-unchecked`]: {
1014
1047
  marginInlineStart: l(e.marginXXS).div(2).equal(),
1015
1048
  marginInlineEnd: l(e.marginXXS).mul(-1).div(2).equal()
1016
1049
  }
1017
1050
  },
1018
- [`&${t}-checked ${c}`]: {
1051
+ [`&${n}-checked ${c}`]: {
1019
1052
  [`${c}-checked`]: {
1020
1053
  marginInlineStart: l(e.marginXXS).mul(-1).div(2).equal(),
1021
1054
  marginInlineEnd: l(e.marginXXS).div(2).equal()
@@ -1025,42 +1058,42 @@ const pn = (e) => {
1025
1058
  }
1026
1059
  }
1027
1060
  };
1028
- }, fn = (e) => {
1061
+ }, ft = (e) => {
1029
1062
  const {
1030
- componentCls: t,
1031
- handleSize: o,
1032
- calc: n
1063
+ componentCls: n,
1064
+ handleSize: i,
1065
+ calc: t
1033
1066
  } = e;
1034
1067
  return {
1035
- [t]: {
1036
- [`${t}-loading-icon${e.iconCls}`]: {
1068
+ [n]: {
1069
+ [`${n}-loading-icon${e.iconCls}`]: {
1037
1070
  position: "relative",
1038
- top: n(n(o).sub(e.fontSize)).div(2).equal(),
1071
+ top: t(t(i).sub(e.fontSize)).div(2).equal(),
1039
1072
  color: e.switchLoadingIconColor,
1040
1073
  verticalAlign: "top"
1041
1074
  },
1042
- [`&${t}-checked ${t}-loading-icon`]: {
1075
+ [`&${n}-checked ${n}-loading-icon`]: {
1043
1076
  color: e.switchColor
1044
1077
  }
1045
1078
  }
1046
1079
  };
1047
- }, mn = (e) => {
1080
+ }, mt = (e) => {
1048
1081
  const {
1049
- componentCls: t,
1050
- trackPadding: o,
1051
- handleBg: n,
1052
- handleShadow: i,
1053
- handleSize: r,
1054
- calc: d
1055
- } = e, a = `${t}-handle`;
1082
+ componentCls: n,
1083
+ trackPadding: i,
1084
+ handleBg: t,
1085
+ handleShadow: o,
1086
+ handleSize: s,
1087
+ calc: a
1088
+ } = e, r = `${n}-handle`;
1056
1089
  return {
1057
- [t]: {
1058
- [a]: {
1090
+ [n]: {
1091
+ [r]: {
1059
1092
  position: "absolute",
1060
- top: o,
1061
- insetInlineStart: o,
1062
- width: r,
1063
- height: r,
1093
+ top: i,
1094
+ insetInlineStart: i,
1095
+ width: s,
1096
+ height: s,
1064
1097
  transition: `all ${e.switchDuration} ease-in-out`,
1065
1098
  "&::before": {
1066
1099
  position: "absolute",
@@ -1068,47 +1101,47 @@ const pn = (e) => {
1068
1101
  insetInlineEnd: 0,
1069
1102
  bottom: 0,
1070
1103
  insetInlineStart: 0,
1071
- backgroundColor: n,
1072
- borderRadius: d(r).div(2).equal(),
1073
- boxShadow: i,
1104
+ backgroundColor: t,
1105
+ borderRadius: a(s).div(2).equal(),
1106
+ boxShadow: o,
1074
1107
  transition: `all ${e.switchDuration} ease-in-out`,
1075
1108
  content: '""'
1076
1109
  }
1077
1110
  },
1078
- [`&${t}-checked ${a}`]: {
1079
- insetInlineStart: `calc(100% - ${O(d(r).add(o).equal())})`
1111
+ [`&${n}-checked ${r}`]: {
1112
+ insetInlineStart: `calc(100% - ${E(a(s).add(i).equal())})`
1080
1113
  },
1081
- [`&:not(${t}-disabled):active`]: {
1082
- [`${a}::before`]: {
1114
+ [`&:not(${n}-disabled):active`]: {
1115
+ [`${r}::before`]: {
1083
1116
  insetInlineEnd: e.switchHandleActiveInset,
1084
1117
  insetInlineStart: 0
1085
1118
  },
1086
- [`&${t}-checked ${a}::before`]: {
1119
+ [`&${n}-checked ${r}::before`]: {
1087
1120
  insetInlineEnd: 0,
1088
1121
  insetInlineStart: e.switchHandleActiveInset
1089
1122
  }
1090
1123
  }
1091
1124
  }
1092
1125
  };
1093
- }, Cn = (e) => {
1126
+ }, vt = (e) => {
1094
1127
  const {
1095
- componentCls: t,
1096
- trackHeight: o,
1097
- trackPadding: n,
1098
- innerMinMargin: i,
1099
- innerMaxMargin: r,
1100
- handleSize: d,
1101
- calc: a
1102
- } = e, l = `${t}-inner`, c = O(a(d).add(a(n).mul(2)).equal()), h = O(a(r).mul(2).equal());
1128
+ componentCls: n,
1129
+ trackHeight: i,
1130
+ trackPadding: t,
1131
+ innerMinMargin: o,
1132
+ innerMaxMargin: s,
1133
+ handleSize: a,
1134
+ calc: r
1135
+ } = e, l = `${n}-inner`, c = E(r(a).add(r(t).mul(2)).equal()), g = E(r(s).mul(2).equal());
1103
1136
  return {
1104
- [t]: {
1137
+ [n]: {
1105
1138
  [l]: {
1106
1139
  display: "block",
1107
1140
  overflow: "hidden",
1108
1141
  borderRadius: 100,
1109
1142
  height: "100%",
1110
- paddingInlineStart: r,
1111
- paddingInlineEnd: i,
1143
+ paddingInlineStart: s,
1144
+ paddingInlineEnd: o,
1112
1145
  transition: `padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,
1113
1146
  [`${l}-checked, ${l}-unchecked`]: {
1114
1147
  display: "block",
@@ -1116,60 +1149,60 @@ const pn = (e) => {
1116
1149
  fontSize: e.fontSizeSM,
1117
1150
  transition: `margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,
1118
1151
  pointerEvents: "none",
1119
- minHeight: o
1152
+ minHeight: i
1120
1153
  },
1121
1154
  [`${l}-checked`]: {
1122
- marginInlineStart: `calc(-100% + ${c} - ${h})`,
1123
- marginInlineEnd: `calc(100% - ${c} + ${h})`
1155
+ marginInlineStart: `calc(-100% + ${c} - ${g})`,
1156
+ marginInlineEnd: `calc(100% - ${c} + ${g})`
1124
1157
  },
1125
1158
  [`${l}-unchecked`]: {
1126
- marginTop: a(o).mul(-1).equal(),
1159
+ marginTop: r(i).mul(-1).equal(),
1127
1160
  marginInlineStart: 0,
1128
1161
  marginInlineEnd: 0
1129
1162
  }
1130
1163
  },
1131
- [`&${t}-checked ${l}`]: {
1132
- paddingInlineStart: i,
1133
- paddingInlineEnd: r,
1164
+ [`&${n}-checked ${l}`]: {
1165
+ paddingInlineStart: o,
1166
+ paddingInlineEnd: s,
1134
1167
  [`${l}-checked`]: {
1135
1168
  marginInlineStart: 0,
1136
1169
  marginInlineEnd: 0
1137
1170
  },
1138
1171
  [`${l}-unchecked`]: {
1139
- marginInlineStart: `calc(100% - ${c} + ${h})`,
1140
- marginInlineEnd: `calc(-100% + ${c} - ${h})`
1172
+ marginInlineStart: `calc(100% - ${c} + ${g})`,
1173
+ marginInlineEnd: `calc(-100% + ${c} - ${g})`
1141
1174
  }
1142
1175
  },
1143
- [`&:not(${t}-disabled):active`]: {
1144
- [`&:not(${t}-checked) ${l}`]: {
1176
+ [`&:not(${n}-disabled):active`]: {
1177
+ [`&:not(${n}-checked) ${l}`]: {
1145
1178
  [`${l}-unchecked`]: {
1146
- marginInlineStart: a(n).mul(2).equal(),
1147
- marginInlineEnd: a(n).mul(-1).mul(2).equal()
1179
+ marginInlineStart: r(t).mul(2).equal(),
1180
+ marginInlineEnd: r(t).mul(-1).mul(2).equal()
1148
1181
  }
1149
1182
  },
1150
- [`&${t}-checked ${l}`]: {
1183
+ [`&${n}-checked ${l}`]: {
1151
1184
  [`${l}-checked`]: {
1152
- marginInlineStart: a(n).mul(-1).mul(2).equal(),
1153
- marginInlineEnd: a(n).mul(2).equal()
1185
+ marginInlineStart: r(t).mul(-1).mul(2).equal(),
1186
+ marginInlineEnd: r(t).mul(2).equal()
1154
1187
  }
1155
1188
  }
1156
1189
  }
1157
1190
  }
1158
1191
  };
1159
- }, vn = (e) => {
1192
+ }, Ct = (e) => {
1160
1193
  const {
1161
- componentCls: t,
1162
- trackHeight: o,
1163
- trackMinWidth: n
1194
+ componentCls: n,
1195
+ trackHeight: i,
1196
+ trackMinWidth: t
1164
1197
  } = e;
1165
1198
  return {
1166
- [t]: Object.assign(Object.assign(Object.assign(Object.assign({}, W(e)), {
1199
+ [n]: Object.assign(Object.assign(Object.assign(Object.assign({}, A(e)), {
1167
1200
  position: "relative",
1168
1201
  display: "inline-block",
1169
1202
  boxSizing: "border-box",
1170
- minWidth: n,
1171
- height: o,
1172
- lineHeight: `${O(o)}`,
1203
+ minWidth: t,
1204
+ height: i,
1205
+ lineHeight: E(i),
1173
1206
  verticalAlign: "middle",
1174
1207
  background: e.colorTextQuaternary,
1175
1208
  border: "0",
@@ -1177,17 +1210,17 @@ const pn = (e) => {
1177
1210
  cursor: "pointer",
1178
1211
  transition: `all ${e.motionDurationMid}`,
1179
1212
  userSelect: "none",
1180
- [`&:hover:not(${t}-disabled)`]: {
1213
+ [`&:hover:not(${n}-disabled)`]: {
1181
1214
  background: e.colorTextTertiary
1182
1215
  }
1183
- }), We(e)), {
1184
- [`&${t}-checked`]: {
1216
+ }), Ve(e)), {
1217
+ [`&${n}-checked`]: {
1185
1218
  background: e.switchColor,
1186
- [`&:hover:not(${t}-disabled)`]: {
1219
+ [`&:hover:not(${n}-disabled)`]: {
1187
1220
  background: e.colorPrimaryHover
1188
1221
  }
1189
1222
  },
1190
- [`&${t}-loading, &${t}-disabled`]: {
1223
+ [`&${n}-loading, &${n}-disabled`]: {
1191
1224
  cursor: "not-allowed",
1192
1225
  opacity: e.switchDisabledOpacity,
1193
1226
  "*": {
@@ -1196,36 +1229,36 @@ const pn = (e) => {
1196
1229
  }
1197
1230
  },
1198
1231
  // rtl style
1199
- [`&${t}-rtl`]: {
1232
+ [`&${n}-rtl`]: {
1200
1233
  direction: "rtl"
1201
1234
  }
1202
1235
  })
1203
1236
  };
1204
- }, Sn = (e) => {
1237
+ }, St = (e) => {
1205
1238
  const {
1206
- fontSize: t,
1207
- lineHeight: o,
1208
- controlHeight: n,
1209
- colorWhite: i
1210
- } = e, r = t * o, d = n / 2, a = 2, l = r - a * 2, c = d - a * 2;
1239
+ fontSize: n,
1240
+ lineHeight: i,
1241
+ controlHeight: t,
1242
+ colorWhite: o
1243
+ } = e, s = n * i, a = t / 2, r = 2, l = s - r * 2, c = a - r * 2;
1211
1244
  return {
1212
- trackHeight: r,
1213
- trackHeightSM: d,
1214
- trackMinWidth: l * 2 + a * 4,
1215
- trackMinWidthSM: c * 2 + a * 2,
1216
- trackPadding: a,
1245
+ trackHeight: s,
1246
+ trackHeightSM: a,
1247
+ trackMinWidth: l * 2 + r * 4,
1248
+ trackMinWidthSM: c * 2 + r * 2,
1249
+ trackPadding: r,
1217
1250
  // Fixed value
1218
- handleBg: i,
1251
+ handleBg: o,
1219
1252
  handleSize: l,
1220
1253
  handleSizeSM: c,
1221
- handleShadow: `0 2px 4px 0 ${new Ve("#00230b").setAlpha(0.2).toRgbString()}`,
1254
+ handleShadow: `0 2px 4px 0 ${new Le("#00230b").setAlpha(0.2).toRgbString()}`,
1222
1255
  innerMinMargin: l / 2,
1223
- innerMaxMargin: l + a + a * 2,
1256
+ innerMaxMargin: l + r + r * 2,
1224
1257
  innerMinMarginSM: c / 2,
1225
- innerMaxMarginSM: c + a + a * 2
1258
+ innerMaxMarginSM: c + r + r * 2
1226
1259
  };
1227
- }, $n = Z("Switch", (e) => {
1228
- const t = ee(e, {
1260
+ }, $t = ne("Switch", (e) => {
1261
+ const n = oe(e, {
1229
1262
  switchDuration: e.motionDurationMid,
1230
1263
  switchColor: e.colorPrimary,
1231
1264
  switchDisabledOpacity: e.opacityLoading,
@@ -1234,204 +1267,202 @@ const pn = (e) => {
1234
1267
  switchHandleActiveInset: "-30%"
1235
1268
  });
1236
1269
  return [
1237
- vn(t),
1270
+ Ct(n),
1238
1271
  // inner style
1239
- Cn(t),
1272
+ vt(n),
1240
1273
  // handle style
1241
- mn(t),
1274
+ mt(n),
1242
1275
  // loading style
1243
- fn(t),
1276
+ ft(n),
1244
1277
  // small style
1245
- pn(t)
1278
+ pt(n)
1246
1279
  ];
1247
- }, Sn);
1248
- var yn = function(e, t) {
1249
- var o = {};
1250
- for (var n in e)
1251
- Object.prototype.hasOwnProperty.call(e, n) && t.indexOf(n) < 0 && (o[n] = e[n]);
1252
- if (e != null && typeof Object.getOwnPropertySymbols == "function")
1253
- for (var i = 0, n = Object.getOwnPropertySymbols(e); i < n.length; i++)
1254
- t.indexOf(n[i]) < 0 && Object.prototype.propertyIsEnumerable.call(e, n[i]) && (o[n[i]] = e[n[i]]);
1255
- return o;
1280
+ }, St);
1281
+ var yt = function(e, n) {
1282
+ var i = {};
1283
+ for (var t in e) Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (i[t] = e[t]);
1284
+ if (e != null && typeof Object.getOwnPropertySymbols == "function") for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
1285
+ n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (i[t[o]] = e[t[o]]);
1286
+ return i;
1256
1287
  };
1257
- const xn = /* @__PURE__ */ s.forwardRef((e, t) => {
1288
+ const xt = /* @__PURE__ */ d.forwardRef((e, n) => {
1258
1289
  const {
1259
- prefixCls: o,
1260
- size: n,
1261
- disabled: i,
1262
- loading: r,
1263
- className: d,
1264
- rootClassName: a,
1290
+ prefixCls: i,
1291
+ size: t,
1292
+ disabled: o,
1293
+ loading: s,
1294
+ className: a,
1295
+ rootClassName: r,
1265
1296
  style: l,
1266
1297
  checked: c,
1267
- value: h,
1298
+ value: g,
1268
1299
  defaultChecked: u,
1269
- defaultValue: v,
1270
- onChange: f
1271
- } = e, E = yn(e, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style", "checked", "value", "defaultChecked", "defaultValue", "onChange"]), [p, S] = K(!1, {
1272
- value: c ?? h,
1273
- defaultValue: u ?? v
1300
+ defaultValue: S,
1301
+ onChange: m
1302
+ } = e, w = yt(e, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style", "checked", "value", "defaultChecked", "defaultValue", "onChange"]), [y, b] = Y(!1, {
1303
+ value: c ?? g,
1304
+ defaultValue: u ?? S
1274
1305
  }), {
1275
- getPrefixCls: w,
1276
- direction: m,
1277
- switch: $
1278
- } = s.useContext(_), y = s.useContext(Ce), x = (i ?? y) || r, g = w("switch", o), z = /* @__PURE__ */ s.createElement("div", {
1279
- className: `${g}-handle`
1280
- }, r && /* @__PURE__ */ s.createElement(De, {
1281
- className: `${g}-loading-icon`
1282
- })), [b, k, P] = $n(g), I = he(n), N = D($ == null ? void 0 : $.className, {
1283
- [`${g}-small`]: I === "small",
1284
- [`${g}-loading`]: r,
1285
- [`${g}-rtl`]: m === "rtl"
1286
- }, d, a, k, P), j = Object.assign(Object.assign({}, $ == null ? void 0 : $.style), l), C = function() {
1287
- S(arguments.length <= 0 ? void 0 : arguments[0]), f == null || f.apply(void 0, arguments);
1306
+ getPrefixCls: k,
1307
+ direction: f,
1308
+ switch: v
1309
+ } = d.useContext(W), x = d.useContext($e), I = (o ?? x) || s, p = k("switch", i), P = /* @__PURE__ */ d.createElement("div", {
1310
+ className: `${p}-handle`
1311
+ }, s && /* @__PURE__ */ d.createElement(De, {
1312
+ className: `${p}-loading-icon`
1313
+ })), [h, $, z] = $t(p), C = pe(t), R = _(v == null ? void 0 : v.className, {
1314
+ [`${p}-small`]: C === "small",
1315
+ [`${p}-loading`]: s,
1316
+ [`${p}-rtl`]: f === "rtl"
1317
+ }, a, r, $, z), N = Object.assign(Object.assign({}, v == null ? void 0 : v.style), l), j = function() {
1318
+ b(arguments.length <= 0 ? void 0 : arguments[0]), m == null || m.apply(void 0, arguments);
1288
1319
  };
1289
- return b(/* @__PURE__ */ s.createElement(ue, {
1320
+ return h(/* @__PURE__ */ d.createElement(be, {
1290
1321
  component: "Switch"
1291
- }, /* @__PURE__ */ s.createElement(we, Object.assign({}, E, {
1292
- checked: p,
1293
- onChange: C,
1294
- prefixCls: g,
1295
- className: N,
1296
- style: j,
1297
- disabled: x,
1298
- ref: t,
1299
- loadingIcon: z
1322
+ }, /* @__PURE__ */ d.createElement(Ee, Object.assign({}, w, {
1323
+ checked: y,
1324
+ onChange: j,
1325
+ prefixCls: p,
1326
+ className: R,
1327
+ style: N,
1328
+ disabled: I,
1329
+ ref: n,
1330
+ loadingIcon: P
1300
1331
  }))));
1301
- }), X = xn;
1302
- X.__ANT_SWITCH = !0;
1303
- process.env.NODE_ENV !== "production" && (X.displayName = "Switch");
1304
- const G = Be.Text, wn = (e, t) => {
1305
- const o = ["EMAIL", "INAPP_WEB", "SMS", "CALL", "PUSH", "WEB_PUSH"];
1306
- return o.indexOf(e) - o.indexOf(t);
1307
- }, de = (e, t) => {
1308
- const o = ["off", "instant", "hourly", "daily", "weekly", "monthly"];
1309
- return o.indexOf(e) - o.indexOf(t);
1310
- }, se = (e) => ({
1332
+ }), Q = xt;
1333
+ Q.__ANT_SWITCH = !0;
1334
+ process.env.NODE_ENV !== "production" && (Q.displayName = "Switch");
1335
+ const K = _e.Text, wt = (e, n) => {
1336
+ const i = ["EMAIL", "INAPP_WEB", "SMS", "CALL", "PUSH", "WEB_PUSH"];
1337
+ return i.indexOf(e) - i.indexOf(n);
1338
+ }, ue = (e, n) => {
1339
+ const i = ["off", "instant", "hourly", "daily", "weekly", "monthly"];
1340
+ return i.indexOf(e) - i.indexOf(n);
1341
+ }, he = (e) => ({
1311
1342
  off: "Off",
1312
1343
  instant: "Instant",
1313
1344
  hourly: "Hourly",
1314
1345
  daily: "Daily",
1315
1346
  weekly: "Weekly",
1316
1347
  monthly: "Monthly"
1317
- })[e], Mn = ({
1348
+ })[e], Mt = ({
1318
1349
  notification: e,
1319
- preferences: t,
1320
- updateDelivery: o,
1321
- subNotificationId: n
1322
- }) => /* @__PURE__ */ R(te, { children: e.channels.sort(wn).map((i, r) => {
1323
- const d = t.find(
1324
- (u) => u.notificationId === e.notificationId && u.channel === i
1350
+ preferences: n,
1351
+ updateDelivery: i,
1352
+ subNotificationId: t
1353
+ }) => /* @__PURE__ */ B(re, { children: e.channels.sort(wt).map((o, s) => {
1354
+ const a = n.find(
1355
+ (u) => u.notificationId === e.notificationId && u.channel === o
1325
1356
  );
1326
- if (!d)
1357
+ if (!a)
1327
1358
  return null;
1328
- const a = Oe(i), l = ze(i), c = Object.keys(
1329
- e.options[i]
1359
+ const r = ze(o), l = Pe(o), c = Object.keys(
1360
+ e.options[o]
1330
1361
  ).filter(
1331
1362
  (u) => u !== "defaultDeliveryOption" && u !== "defaultDeliverOption"
1332
1363
  );
1333
- let h;
1334
- return c.length === 1 ? h = /* @__PURE__ */ R(G, { children: se(d.delivery) }) : c.length === 2 && c.includes("off") ? h = /* @__PURE__ */ R(
1335
- X,
1364
+ let g;
1365
+ return c.length === 1 ? g = /* @__PURE__ */ B(K, { children: he(a.delivery) }) : c.length === 2 && c.includes("off") ? g = /* @__PURE__ */ B(
1366
+ Q,
1336
1367
  {
1337
- checked: d.delivery !== "off",
1368
+ checked: a.delivery !== "off",
1338
1369
  onChange: (u) => {
1339
1370
  if (u) {
1340
- const v = c.find((f) => f !== "off");
1341
- o(
1371
+ const S = c.find((m) => m !== "off");
1372
+ i(
1342
1373
  e.notificationId,
1343
- i,
1344
- v,
1345
- n
1374
+ o,
1375
+ S,
1376
+ t
1346
1377
  );
1347
1378
  } else
1348
- o(
1379
+ i(
1349
1380
  e.notificationId,
1350
- i,
1381
+ o,
1351
1382
  "off",
1352
- n
1383
+ t
1353
1384
  );
1354
1385
  }
1355
1386
  }
1356
- ) : h = /* @__PURE__ */ q(te, { children: [
1357
- /* @__PURE__ */ R(
1358
- X,
1387
+ ) : g = /* @__PURE__ */ L(re, { children: [
1388
+ /* @__PURE__ */ B(
1389
+ Q,
1359
1390
  {
1360
- checked: d.delivery !== "off",
1391
+ checked: a.delivery !== "off",
1361
1392
  onChange: (u) => {
1362
1393
  if (u) {
1363
- const v = c.sort(de).find((f) => f !== "off");
1364
- o(
1394
+ const S = c.sort(ue).find((m) => m !== "off");
1395
+ i(
1365
1396
  e.notificationId,
1366
- i,
1367
- v,
1368
- n
1397
+ o,
1398
+ S,
1399
+ t
1369
1400
  );
1370
1401
  } else
1371
- o(
1402
+ i(
1372
1403
  e.notificationId,
1373
- i,
1404
+ o,
1374
1405
  "off",
1375
- n
1406
+ t
1376
1407
  );
1377
1408
  }
1378
1409
  }
1379
1410
  ),
1380
- /* @__PURE__ */ R(
1411
+ /* @__PURE__ */ B(
1381
1412
  "div",
1382
1413
  {
1383
1414
  style: {
1384
1415
  width: "100%",
1385
1416
  marginTop: 8,
1386
- maxHeight: d.delivery !== "off" ? 1e3 : 0,
1417
+ maxHeight: a.delivery !== "off" ? 1e3 : 0,
1387
1418
  overflow: "hidden",
1388
1419
  transition: "max-height 0.3s ease"
1389
1420
  },
1390
- children: /* @__PURE__ */ q("div", { children: [
1391
- /* @__PURE__ */ R("div", { style: { marginTop: 20 }, children: /* @__PURE__ */ R(G, { strong: !0, children: "Choose frequency:" }) }),
1392
- /* @__PURE__ */ R(
1393
- L.Group,
1421
+ children: /* @__PURE__ */ L("div", { children: [
1422
+ /* @__PURE__ */ B("div", { style: { marginTop: 20 }, children: /* @__PURE__ */ B(K, { strong: !0, children: "Choose frequency:" }) }),
1423
+ /* @__PURE__ */ B(
1424
+ F.Group,
1394
1425
  {
1395
- value: d.delivery,
1426
+ value: a.delivery,
1396
1427
  onChange: (u) => {
1397
- o(
1428
+ i(
1398
1429
  e.notificationId,
1399
- i,
1430
+ o,
1400
1431
  u.target.value,
1401
- n
1432
+ t
1402
1433
  );
1403
1434
  },
1404
- children: /* @__PURE__ */ R(ne, { direction: "vertical", style: { paddingTop: 10 }, children: c.filter((u) => u !== "off").sort(de).map((u) => /* @__PURE__ */ R(L, { value: u, children: /* @__PURE__ */ R(G, { children: se(u) }) }, u)) })
1435
+ children: /* @__PURE__ */ B(ie, { direction: "vertical", style: { paddingTop: 10 }, children: c.filter((u) => u !== "off").sort(ue).map((u) => /* @__PURE__ */ B(F, { value: u, children: /* @__PURE__ */ B(K, { children: he(u) }) }, u)) })
1405
1436
  }
1406
1437
  )
1407
1438
  ] })
1408
1439
  }
1409
1440
  )
1410
- ] }), /* @__PURE__ */ q("div", { children: [
1411
- /* @__PURE__ */ q(
1441
+ ] }), /* @__PURE__ */ L("div", { children: [
1442
+ /* @__PURE__ */ L(
1412
1443
  "div",
1413
1444
  {
1414
1445
  style: {
1415
1446
  display: "flex",
1416
1447
  justifyContent: "space-between",
1417
1448
  flexWrap: "wrap",
1418
- marginTop: r === 0 ? 12 : 0,
1419
- marginBottom: r === e.channels.length - 1 ? 12 : 0
1449
+ marginTop: s === 0 ? 12 : 0,
1450
+ marginBottom: s === e.channels.length - 1 ? 12 : 0
1420
1451
  },
1421
1452
  children: [
1422
- /* @__PURE__ */ q(G, { children: [
1453
+ /* @__PURE__ */ L(K, { children: [
1423
1454
  l,
1424
1455
  " ",
1425
- a
1456
+ r
1426
1457
  ] }),
1427
- h
1458
+ g
1428
1459
  ]
1429
1460
  },
1430
- i
1461
+ o
1431
1462
  ),
1432
- r !== e.channels.length - 1 && /* @__PURE__ */ R(ye, {})
1433
- ] }, i);
1463
+ s !== e.channels.length - 1 && /* @__PURE__ */ B(ke, {})
1464
+ ] }, o);
1434
1465
  }) });
1435
1466
  export {
1436
- Mn as PreferenceInput
1467
+ Mt as PreferenceInput
1437
1468
  };