@notificationapi/react 0.0.17 → 0.0.19
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.
- package/dist/assets/Inbox.js +1292 -1273
- package/dist/assets/Notification.js +1 -1
- package/dist/assets/NotificationPreferencesPopup.js +1562 -0
- package/dist/assets/Preferences.js +739 -684
- package/dist/assets/button.js +1 -1
- package/dist/assets/colors.js +25 -25
- package/dist/assets/index.js +1 -1
- package/dist/assets/index2.js +32 -32
- package/dist/assets/index3.js +268 -268
- package/dist/components/Notifications/Inbox.d.ts +2 -3
- package/dist/components/Notifications/InboxHeader.d.ts +2 -1
- package/dist/components/Notifications/InboxHeader.js +17 -18
- package/dist/components/Notifications/NotificationFeed.d.ts +2 -3
- package/dist/components/Notifications/NotificationFeed.js +46 -29
- package/dist/components/Notifications/NotificationLauncher.js +96 -79
- package/dist/components/Notifications/NotificationPopup.d.ts +2 -3
- package/dist/components/Notifications/NotificationPopup.js +6 -4
- package/dist/components/Preferences/NotificationPreferencesPopup.js +4 -1500
- package/dist/components/Preferences/PreferenceInput.js +1 -1
- package/dist/components/Preferences/Preferences.js +4 -5
- package/dist/components/Preferences/index.js +1 -1
- package/dist/components/Provider/index.d.ts +1 -0
- package/dist/components/Provider/index.js +120 -96
- package/dist/main.js +5 -5
- package/package.json +1 -1
- package/dist/assets/BellOutlined.js +0 -60
- package/dist/assets/PurePanel.js +0 -67
|
@@ -1,11 +1,48 @@
|
|
|
1
|
-
import { jsx as R, Fragment as ne, jsxs as
|
|
2
|
-
import { DeliveryOptions as
|
|
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";
|
|
3
3
|
import * as s from "react";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { u as
|
|
7
|
-
|
|
8
|
-
|
|
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
|
|
8
|
+
alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
|
|
9
|
+
charSet checked classID className colSpan cols content contentEditable contextMenu
|
|
10
|
+
controls coords crossOrigin data dateTime default defer dir disabled download draggable
|
|
11
|
+
encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
|
|
12
|
+
headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
|
|
13
|
+
is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
|
|
14
|
+
mediaGroup method min minLength multiple muted name noValidate nonce open
|
|
15
|
+
optimum pattern placeholder poster preload radioGroup readOnly rel required
|
|
16
|
+
reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
|
|
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
|
|
19
|
+
onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
|
|
20
|
+
onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
|
|
21
|
+
onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
|
|
22
|
+
onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
|
|
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) {
|
|
26
|
+
return e.indexOf(n) === 0;
|
|
27
|
+
}
|
|
28
|
+
function ze(e) {
|
|
29
|
+
var n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, a;
|
|
30
|
+
n === !1 ? a = {
|
|
31
|
+
aria: !0,
|
|
32
|
+
data: !0,
|
|
33
|
+
attr: !0
|
|
34
|
+
} : n === !0 ? a = {
|
|
35
|
+
aria: !0
|
|
36
|
+
} : a = he({}, n);
|
|
37
|
+
var t = {};
|
|
38
|
+
return Object.keys(e).forEach(function(o) {
|
|
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]);
|
|
43
|
+
}), t;
|
|
44
|
+
}
|
|
45
|
+
const Sn = (e) => ({
|
|
9
46
|
[e.componentCls]: {
|
|
10
47
|
// For common/openAnimation
|
|
11
48
|
[`${e.antCls}-motion-collapse-legacy`]: {
|
|
@@ -21,38 +58,46 @@ const pn = (e) => ({
|
|
|
21
58
|
opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`
|
|
22
59
|
}
|
|
23
60
|
}
|
|
24
|
-
})
|
|
25
|
-
var
|
|
26
|
-
|
|
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, {
|
|
64
|
+
ref: a,
|
|
65
|
+
icon: xn
|
|
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, {
|
|
27
72
|
value: d
|
|
28
|
-
}),
|
|
29
|
-
|
|
73
|
+
}), y = ie(I, 2), S = y[0], b = y[1];
|
|
74
|
+
Ze(n, function() {
|
|
30
75
|
return {
|
|
31
|
-
focus: function(
|
|
76
|
+
focus: function(m) {
|
|
32
77
|
var w;
|
|
33
|
-
(w =
|
|
78
|
+
(w = v.current) === null || w === void 0 || w.focus(m);
|
|
34
79
|
},
|
|
35
80
|
blur: function() {
|
|
36
|
-
var
|
|
37
|
-
(
|
|
81
|
+
var m;
|
|
82
|
+
(m = v.current) === null || m === void 0 || m.blur();
|
|
38
83
|
},
|
|
39
|
-
input:
|
|
84
|
+
input: v.current,
|
|
40
85
|
nativeElement: p.current
|
|
41
86
|
};
|
|
42
87
|
});
|
|
43
|
-
var x = _(t,
|
|
44
|
-
|
|
45
|
-
target:
|
|
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), {}, {
|
|
46
91
|
type: u,
|
|
47
|
-
checked:
|
|
92
|
+
checked: m.target.checked
|
|
48
93
|
}),
|
|
49
94
|
stopPropagation: function() {
|
|
50
|
-
|
|
95
|
+
m.stopPropagation();
|
|
51
96
|
},
|
|
52
97
|
preventDefault: function() {
|
|
53
|
-
|
|
98
|
+
m.preventDefault();
|
|
54
99
|
},
|
|
55
|
-
nativeEvent:
|
|
100
|
+
nativeEvent: m.nativeEvent
|
|
56
101
|
}));
|
|
57
102
|
};
|
|
58
103
|
return /* @__PURE__ */ s.createElement("span", {
|
|
@@ -60,21 +105,21 @@ var Cn = ["prefixCls", "className", "style", "checked", "disabled", "defaultChec
|
|
|
60
105
|
title: C,
|
|
61
106
|
style: r,
|
|
62
107
|
ref: p
|
|
63
|
-
}, /* @__PURE__ */ s.createElement("input",
|
|
108
|
+
}, /* @__PURE__ */ s.createElement("input", j({}, O, {
|
|
64
109
|
className: "".concat(t, "-input"),
|
|
65
|
-
ref:
|
|
110
|
+
ref: v,
|
|
66
111
|
onChange: g,
|
|
67
|
-
disabled:
|
|
112
|
+
disabled: i,
|
|
68
113
|
checked: !!S,
|
|
69
114
|
type: u
|
|
70
115
|
})), /* @__PURE__ */ s.createElement("span", {
|
|
71
116
|
className: "".concat(t, "-inner")
|
|
72
117
|
}));
|
|
73
118
|
});
|
|
74
|
-
const
|
|
119
|
+
const kn = (e) => {
|
|
75
120
|
const {
|
|
76
121
|
componentCls: n,
|
|
77
|
-
antCls:
|
|
122
|
+
antCls: a
|
|
78
123
|
} = e, t = `${n}-group`;
|
|
79
124
|
return {
|
|
80
125
|
[t]: Object.assign(Object.assign({}, G(e)), {
|
|
@@ -84,41 +129,41 @@ const yn = (e) => {
|
|
|
84
129
|
[`&${t}-rtl`]: {
|
|
85
130
|
direction: "rtl"
|
|
86
131
|
},
|
|
87
|
-
[`${
|
|
132
|
+
[`${a}-badge ${a}-badge-count`]: {
|
|
88
133
|
zIndex: 1
|
|
89
134
|
},
|
|
90
|
-
[`> ${
|
|
135
|
+
[`> ${a}-badge:not(:first-child) > ${a}-button-wrapper`]: {
|
|
91
136
|
borderInlineStart: "none"
|
|
92
137
|
}
|
|
93
138
|
})
|
|
94
139
|
};
|
|
95
|
-
},
|
|
140
|
+
}, Pn = (e) => {
|
|
96
141
|
const {
|
|
97
142
|
componentCls: n,
|
|
98
|
-
wrapperMarginInlineEnd:
|
|
143
|
+
wrapperMarginInlineEnd: a,
|
|
99
144
|
colorPrimary: t,
|
|
100
|
-
radioSize:
|
|
145
|
+
radioSize: o,
|
|
101
146
|
motionDurationSlow: r,
|
|
102
147
|
motionDurationMid: d,
|
|
103
|
-
motionEaseInOutCirc:
|
|
148
|
+
motionEaseInOutCirc: i,
|
|
104
149
|
colorBgContainer: c,
|
|
105
150
|
colorBorder: l,
|
|
106
151
|
lineWidth: h,
|
|
107
152
|
colorBgContainerDisabled: u,
|
|
108
153
|
colorTextDisabled: C,
|
|
109
|
-
paddingXS:
|
|
154
|
+
paddingXS: f,
|
|
110
155
|
dotColorDisabled: O,
|
|
111
|
-
lineType:
|
|
156
|
+
lineType: v,
|
|
112
157
|
radioColor: p,
|
|
113
158
|
radioBgColor: I,
|
|
114
|
-
calc:
|
|
115
|
-
} = e, S = `${n}-inner`, x =
|
|
159
|
+
calc: y
|
|
160
|
+
} = e, S = `${n}-inner`, x = y(o).sub(y(4).mul(2)), g = y(1).mul(o).equal();
|
|
116
161
|
return {
|
|
117
162
|
[`${n}-wrapper`]: Object.assign(Object.assign({}, G(e)), {
|
|
118
163
|
display: "inline-flex",
|
|
119
164
|
alignItems: "baseline",
|
|
120
165
|
marginInlineStart: 0,
|
|
121
|
-
marginInlineEnd:
|
|
166
|
+
marginInlineEnd: a,
|
|
122
167
|
cursor: "pointer",
|
|
123
168
|
// RTL
|
|
124
169
|
[`&${n}-wrapper-rtl`]: {
|
|
@@ -141,7 +186,7 @@ const yn = (e) => {
|
|
|
141
186
|
insetInlineStart: 0,
|
|
142
187
|
width: "100%",
|
|
143
188
|
height: "100%",
|
|
144
|
-
border: `${M(h)} ${
|
|
189
|
+
border: `${M(h)} ${v} ${t}`,
|
|
145
190
|
borderRadius: "50%",
|
|
146
191
|
visibility: "hidden",
|
|
147
192
|
opacity: 0,
|
|
@@ -159,7 +204,7 @@ const yn = (e) => {
|
|
|
159
204
|
&:hover ${S}`]: {
|
|
160
205
|
borderColor: t
|
|
161
206
|
},
|
|
162
|
-
[`${n}-input:focus-visible + ${S}`]: Object.assign({},
|
|
207
|
+
[`${n}-input:focus-visible + ${S}`]: Object.assign({}, Ne(e)),
|
|
163
208
|
[`${n}:hover::after, ${n}-wrapper:hover &::after`]: {
|
|
164
209
|
visibility: "visible"
|
|
165
210
|
},
|
|
@@ -172,15 +217,15 @@ const yn = (e) => {
|
|
|
172
217
|
display: "block",
|
|
173
218
|
width: g,
|
|
174
219
|
height: g,
|
|
175
|
-
marginBlockStart:
|
|
176
|
-
marginInlineStart:
|
|
220
|
+
marginBlockStart: y(1).mul(o).div(-2).equal(),
|
|
221
|
+
marginInlineStart: y(1).mul(o).div(-2).equal(),
|
|
177
222
|
backgroundColor: p,
|
|
178
223
|
borderBlockStart: 0,
|
|
179
224
|
borderInlineStart: 0,
|
|
180
225
|
borderRadius: g,
|
|
181
226
|
transform: "scale(0)",
|
|
182
227
|
opacity: 0,
|
|
183
|
-
transition: `all ${r} ${
|
|
228
|
+
transition: `all ${r} ${i}`,
|
|
184
229
|
content: '""'
|
|
185
230
|
},
|
|
186
231
|
boxSizing: "border-box",
|
|
@@ -210,9 +255,9 @@ const yn = (e) => {
|
|
|
210
255
|
borderColor: t,
|
|
211
256
|
backgroundColor: I,
|
|
212
257
|
"&::after": {
|
|
213
|
-
transform: `scale(${e.calc(e.dotSize).div(
|
|
258
|
+
transform: `scale(${e.calc(e.dotSize).div(o).equal()})`,
|
|
214
259
|
opacity: 1,
|
|
215
|
-
transition: `all ${r} ${
|
|
260
|
+
transition: `all ${r} ${i}`
|
|
216
261
|
}
|
|
217
262
|
}
|
|
218
263
|
},
|
|
@@ -236,7 +281,7 @@ const yn = (e) => {
|
|
|
236
281
|
[`&${n}-checked`]: {
|
|
237
282
|
[S]: {
|
|
238
283
|
"&::after": {
|
|
239
|
-
transform: `scale(${
|
|
284
|
+
transform: `scale(${y(x).div(o).equal({
|
|
240
285
|
unit: !1
|
|
241
286
|
})})`
|
|
242
287
|
}
|
|
@@ -244,42 +289,42 @@ const yn = (e) => {
|
|
|
244
289
|
}
|
|
245
290
|
},
|
|
246
291
|
[`span${n} + *`]: {
|
|
247
|
-
paddingInlineStart:
|
|
248
|
-
paddingInlineEnd:
|
|
292
|
+
paddingInlineStart: f,
|
|
293
|
+
paddingInlineEnd: f
|
|
249
294
|
}
|
|
250
295
|
})
|
|
251
296
|
};
|
|
252
|
-
},
|
|
297
|
+
}, Mn = (e) => {
|
|
253
298
|
const {
|
|
254
299
|
buttonColor: n,
|
|
255
|
-
controlHeight:
|
|
300
|
+
controlHeight: a,
|
|
256
301
|
componentCls: t,
|
|
257
|
-
lineWidth:
|
|
302
|
+
lineWidth: o,
|
|
258
303
|
lineType: r,
|
|
259
304
|
colorBorder: d,
|
|
260
|
-
motionDurationSlow:
|
|
305
|
+
motionDurationSlow: i,
|
|
261
306
|
motionDurationMid: c,
|
|
262
307
|
buttonPaddingInline: l,
|
|
263
308
|
fontSize: h,
|
|
264
309
|
buttonBg: u,
|
|
265
310
|
fontSizeLG: C,
|
|
266
|
-
controlHeightLG:
|
|
311
|
+
controlHeightLG: f,
|
|
267
312
|
controlHeightSM: O,
|
|
268
|
-
paddingXS:
|
|
313
|
+
paddingXS: v,
|
|
269
314
|
borderRadius: p,
|
|
270
315
|
borderRadiusSM: I,
|
|
271
|
-
borderRadiusLG:
|
|
316
|
+
borderRadiusLG: y,
|
|
272
317
|
buttonCheckedBg: S,
|
|
273
|
-
buttonSolidCheckedColor:
|
|
318
|
+
buttonSolidCheckedColor: b,
|
|
274
319
|
colorTextDisabled: x,
|
|
275
320
|
colorBgContainerDisabled: g,
|
|
276
|
-
buttonCheckedBgDisabled:
|
|
277
|
-
buttonCheckedColorDisabled:
|
|
321
|
+
buttonCheckedBgDisabled: N,
|
|
322
|
+
buttonCheckedColorDisabled: m,
|
|
278
323
|
colorPrimary: w,
|
|
279
|
-
colorPrimaryHover:
|
|
280
|
-
colorPrimaryActive:
|
|
324
|
+
colorPrimaryHover: k,
|
|
325
|
+
colorPrimaryActive: $,
|
|
281
326
|
buttonSolidCheckedBg: P,
|
|
282
|
-
buttonSolidCheckedHoverBg:
|
|
327
|
+
buttonSolidCheckedHoverBg: D,
|
|
283
328
|
buttonSolidCheckedActiveBg: E,
|
|
284
329
|
calc: z
|
|
285
330
|
} = e;
|
|
@@ -287,20 +332,20 @@ const yn = (e) => {
|
|
|
287
332
|
[`${t}-button-wrapper`]: {
|
|
288
333
|
position: "relative",
|
|
289
334
|
display: "inline-block",
|
|
290
|
-
height:
|
|
335
|
+
height: a,
|
|
291
336
|
margin: 0,
|
|
292
337
|
paddingInline: l,
|
|
293
338
|
paddingBlock: 0,
|
|
294
339
|
color: n,
|
|
295
340
|
fontSize: h,
|
|
296
|
-
lineHeight: M(z(
|
|
341
|
+
lineHeight: M(z(a).sub(z(o).mul(2)).equal()),
|
|
297
342
|
background: u,
|
|
298
|
-
border: `${M(
|
|
343
|
+
border: `${M(o)} ${r} ${d}`,
|
|
299
344
|
// strange align fix for chrome but works
|
|
300
345
|
// https://gw.alipayobjects.com/zos/rmsportal/VFTfKXJuogBAXcvfAUWJ.gif
|
|
301
|
-
borderBlockStartWidth: z(
|
|
346
|
+
borderBlockStartWidth: z(o).add(0.02).equal(),
|
|
302
347
|
borderInlineStartWidth: 0,
|
|
303
|
-
borderInlineEndWidth:
|
|
348
|
+
borderInlineEndWidth: o,
|
|
304
349
|
cursor: "pointer",
|
|
305
350
|
transition: [`color ${c}`, `background ${c}`, `box-shadow ${c}`].join(","),
|
|
306
351
|
a: {
|
|
@@ -317,21 +362,21 @@ const yn = (e) => {
|
|
|
317
362
|
"&:not(:first-child)": {
|
|
318
363
|
"&::before": {
|
|
319
364
|
position: "absolute",
|
|
320
|
-
insetBlockStart: z(
|
|
321
|
-
insetInlineStart: z(
|
|
365
|
+
insetBlockStart: z(o).mul(-1).equal(),
|
|
366
|
+
insetInlineStart: z(o).mul(-1).equal(),
|
|
322
367
|
display: "block",
|
|
323
368
|
boxSizing: "content-box",
|
|
324
369
|
width: 1,
|
|
325
370
|
height: "100%",
|
|
326
|
-
paddingBlock:
|
|
371
|
+
paddingBlock: o,
|
|
327
372
|
paddingInline: 0,
|
|
328
373
|
backgroundColor: d,
|
|
329
|
-
transition: `background-color ${
|
|
374
|
+
transition: `background-color ${i}`,
|
|
330
375
|
content: '""'
|
|
331
376
|
}
|
|
332
377
|
},
|
|
333
378
|
"&:first-child": {
|
|
334
|
-
borderInlineStart: `${M(
|
|
379
|
+
borderInlineStart: `${M(o)} ${r} ${d}`,
|
|
335
380
|
borderStartStartRadius: p,
|
|
336
381
|
borderEndStartRadius: p
|
|
337
382
|
},
|
|
@@ -343,23 +388,23 @@ const yn = (e) => {
|
|
|
343
388
|
borderRadius: p
|
|
344
389
|
},
|
|
345
390
|
[`${t}-group-large &`]: {
|
|
346
|
-
height:
|
|
391
|
+
height: f,
|
|
347
392
|
fontSize: C,
|
|
348
|
-
lineHeight: M(z(
|
|
393
|
+
lineHeight: M(z(f).sub(z(o).mul(2)).equal()),
|
|
349
394
|
"&:first-child": {
|
|
350
|
-
borderStartStartRadius:
|
|
351
|
-
borderEndStartRadius:
|
|
395
|
+
borderStartStartRadius: y,
|
|
396
|
+
borderEndStartRadius: y
|
|
352
397
|
},
|
|
353
398
|
"&:last-child": {
|
|
354
|
-
borderStartEndRadius:
|
|
355
|
-
borderEndEndRadius:
|
|
399
|
+
borderStartEndRadius: y,
|
|
400
|
+
borderEndEndRadius: y
|
|
356
401
|
}
|
|
357
402
|
},
|
|
358
403
|
[`${t}-group-small &`]: {
|
|
359
404
|
height: O,
|
|
360
|
-
paddingInline: z(
|
|
405
|
+
paddingInline: z(v).sub(o).equal(),
|
|
361
406
|
paddingBlock: 0,
|
|
362
|
-
lineHeight: M(z(O).sub(z(
|
|
407
|
+
lineHeight: M(z(O).sub(z(o).mul(2)).equal()),
|
|
363
408
|
"&:first-child": {
|
|
364
409
|
borderStartStartRadius: I,
|
|
365
410
|
borderEndStartRadius: I
|
|
@@ -373,7 +418,7 @@ const yn = (e) => {
|
|
|
373
418
|
position: "relative",
|
|
374
419
|
color: w
|
|
375
420
|
},
|
|
376
|
-
"&:has(:focus-visible)": Object.assign({},
|
|
421
|
+
"&:has(:focus-visible)": Object.assign({}, Ne(e)),
|
|
377
422
|
[`${t}-inner, input[type='checkbox'], input[type='radio']`]: {
|
|
378
423
|
width: 0,
|
|
379
424
|
height: 0,
|
|
@@ -392,31 +437,31 @@ const yn = (e) => {
|
|
|
392
437
|
borderColor: w
|
|
393
438
|
},
|
|
394
439
|
"&:hover": {
|
|
395
|
-
color:
|
|
396
|
-
borderColor:
|
|
440
|
+
color: k,
|
|
441
|
+
borderColor: k,
|
|
397
442
|
"&::before": {
|
|
398
|
-
backgroundColor:
|
|
443
|
+
backgroundColor: k
|
|
399
444
|
}
|
|
400
445
|
},
|
|
401
446
|
"&:active": {
|
|
402
|
-
color:
|
|
403
|
-
borderColor:
|
|
447
|
+
color: $,
|
|
448
|
+
borderColor: $,
|
|
404
449
|
"&::before": {
|
|
405
|
-
backgroundColor:
|
|
450
|
+
backgroundColor: $
|
|
406
451
|
}
|
|
407
452
|
}
|
|
408
453
|
},
|
|
409
454
|
[`${t}-group-solid &-checked:not(${t}-button-wrapper-disabled)`]: {
|
|
410
|
-
color:
|
|
455
|
+
color: b,
|
|
411
456
|
background: P,
|
|
412
457
|
borderColor: P,
|
|
413
458
|
"&:hover": {
|
|
414
|
-
color:
|
|
415
|
-
background:
|
|
416
|
-
borderColor:
|
|
459
|
+
color: b,
|
|
460
|
+
background: D,
|
|
461
|
+
borderColor: D
|
|
417
462
|
},
|
|
418
463
|
"&:active": {
|
|
419
|
-
color:
|
|
464
|
+
color: b,
|
|
420
465
|
background: E,
|
|
421
466
|
borderColor: E
|
|
422
467
|
}
|
|
@@ -433,30 +478,30 @@ const yn = (e) => {
|
|
|
433
478
|
}
|
|
434
479
|
},
|
|
435
480
|
[`&-disabled${t}-button-wrapper-checked`]: {
|
|
436
|
-
color:
|
|
437
|
-
backgroundColor:
|
|
481
|
+
color: m,
|
|
482
|
+
backgroundColor: N,
|
|
438
483
|
borderColor: d,
|
|
439
484
|
boxShadow: "none"
|
|
440
485
|
}
|
|
441
486
|
}
|
|
442
487
|
};
|
|
443
|
-
},
|
|
488
|
+
}, zn = (e) => {
|
|
444
489
|
const {
|
|
445
490
|
wireframe: n,
|
|
446
|
-
padding:
|
|
491
|
+
padding: a,
|
|
447
492
|
marginXS: t,
|
|
448
|
-
lineWidth:
|
|
493
|
+
lineWidth: o,
|
|
449
494
|
fontSizeLG: r,
|
|
450
495
|
colorText: d,
|
|
451
|
-
colorBgContainer:
|
|
496
|
+
colorBgContainer: i,
|
|
452
497
|
colorTextDisabled: c,
|
|
453
498
|
controlItemBgActiveDisabled: l,
|
|
454
499
|
colorTextLightSolid: h,
|
|
455
500
|
colorPrimary: u,
|
|
456
501
|
colorPrimaryHover: C,
|
|
457
|
-
colorPrimaryActive:
|
|
502
|
+
colorPrimaryActive: f,
|
|
458
503
|
colorWhite: O
|
|
459
|
-
} = e,
|
|
504
|
+
} = e, v = 4, p = r, I = n ? p - v * 2 : p - (v + o) * 2;
|
|
460
505
|
return {
|
|
461
506
|
// Radio
|
|
462
507
|
radioSize: p,
|
|
@@ -466,411 +511,411 @@ const yn = (e) => {
|
|
|
466
511
|
buttonSolidCheckedColor: h,
|
|
467
512
|
buttonSolidCheckedBg: u,
|
|
468
513
|
buttonSolidCheckedHoverBg: C,
|
|
469
|
-
buttonSolidCheckedActiveBg:
|
|
470
|
-
buttonBg:
|
|
471
|
-
buttonCheckedBg:
|
|
514
|
+
buttonSolidCheckedActiveBg: f,
|
|
515
|
+
buttonBg: i,
|
|
516
|
+
buttonCheckedBg: i,
|
|
472
517
|
buttonColor: d,
|
|
473
518
|
buttonCheckedBgDisabled: l,
|
|
474
519
|
buttonCheckedColorDisabled: c,
|
|
475
|
-
buttonPaddingInline:
|
|
520
|
+
buttonPaddingInline: a - o,
|
|
476
521
|
wrapperMarginInlineEnd: t,
|
|
477
522
|
// internal
|
|
478
523
|
radioColor: n ? u : O,
|
|
479
|
-
radioBgColor: n ?
|
|
524
|
+
radioBgColor: n ? i : u
|
|
480
525
|
};
|
|
481
|
-
},
|
|
526
|
+
}, _e = re("Radio", (e) => {
|
|
482
527
|
const {
|
|
483
528
|
controlOutline: n,
|
|
484
|
-
controlOutlineWidth:
|
|
485
|
-
} = e, t = `0 0 0 ${M(
|
|
529
|
+
controlOutlineWidth: a
|
|
530
|
+
} = e, t = `0 0 0 ${M(a)} ${n}`, r = le(e, {
|
|
486
531
|
radioFocusShadow: t,
|
|
487
532
|
radioButtonFocusShadow: t
|
|
488
533
|
});
|
|
489
|
-
return [
|
|
490
|
-
},
|
|
534
|
+
return [kn(r), Pn(r), Mn(r)];
|
|
535
|
+
}, zn, {
|
|
491
536
|
unitless: {
|
|
492
537
|
radioSize: !0,
|
|
493
538
|
dotSize: !0
|
|
494
539
|
}
|
|
495
540
|
});
|
|
496
|
-
var
|
|
497
|
-
var
|
|
541
|
+
var Rn = function(e, n) {
|
|
542
|
+
var a = {};
|
|
498
543
|
for (var t in e)
|
|
499
|
-
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (
|
|
544
|
+
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
|
|
500
545
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
501
|
-
for (var
|
|
502
|
-
n.indexOf(t[
|
|
503
|
-
return
|
|
546
|
+
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
547
|
+
n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
|
|
548
|
+
return a;
|
|
504
549
|
};
|
|
505
|
-
const
|
|
506
|
-
var
|
|
507
|
-
const
|
|
550
|
+
const Dn = (e, n) => {
|
|
551
|
+
var a, t;
|
|
552
|
+
const o = s.useContext(De), r = s.useContext(Be), {
|
|
508
553
|
getPrefixCls: d,
|
|
509
|
-
direction:
|
|
554
|
+
direction: i,
|
|
510
555
|
radio: c
|
|
511
|
-
} = s.useContext(W), l = s.useRef(null), h =
|
|
556
|
+
} = s.useContext(W), l = s.useRef(null), h = nn(n, l), {
|
|
512
557
|
isFormItemInput: u
|
|
513
|
-
} = s.useContext(
|
|
558
|
+
} = s.useContext(dn);
|
|
514
559
|
if (process.env.NODE_ENV !== "production") {
|
|
515
560
|
const E = ce("Radio");
|
|
516
561
|
process.env.NODE_ENV !== "production" && E(!("optionType" in e), "usage", "`optionType` is only support in Radio.Group.");
|
|
517
562
|
}
|
|
518
563
|
const C = (E) => {
|
|
519
564
|
var z, A;
|
|
520
|
-
(z = e.onChange) === null || z === void 0 || z.call(e, E), (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);
|
|
521
566
|
}, {
|
|
522
|
-
prefixCls:
|
|
567
|
+
prefixCls: f,
|
|
523
568
|
className: O,
|
|
524
|
-
rootClassName:
|
|
569
|
+
rootClassName: v,
|
|
525
570
|
children: p,
|
|
526
571
|
style: I,
|
|
527
|
-
title:
|
|
528
|
-
} = e, S =
|
|
529
|
-
|
|
530
|
-
const
|
|
531
|
-
[`${g}-wrapper-checked`]:
|
|
532
|
-
[`${g}-wrapper-disabled`]:
|
|
533
|
-
[`${g}-wrapper-rtl`]:
|
|
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);
|
|
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
|
+
const D = _(`${g}-wrapper`, {
|
|
576
|
+
[`${g}-wrapper-checked`]: $.checked,
|
|
577
|
+
[`${g}-wrapper-disabled`]: $.disabled,
|
|
578
|
+
[`${g}-wrapper-rtl`]: i === "rtl",
|
|
534
579
|
[`${g}-wrapper-in-form-item`]: u
|
|
535
|
-
}, c == null ? void 0 : c.className, O,
|
|
536
|
-
return
|
|
580
|
+
}, c == null ? void 0 : c.className, O, v, w, k, N);
|
|
581
|
+
return m(/* @__PURE__ */ s.createElement(Me, {
|
|
537
582
|
component: "Radio",
|
|
538
|
-
disabled:
|
|
583
|
+
disabled: $.disabled
|
|
539
584
|
}, /* @__PURE__ */ s.createElement("label", {
|
|
540
|
-
className:
|
|
585
|
+
className: D,
|
|
541
586
|
style: Object.assign(Object.assign({}, c == null ? void 0 : c.style), I),
|
|
542
587
|
onMouseEnter: e.onMouseEnter,
|
|
543
588
|
onMouseLeave: e.onMouseLeave,
|
|
544
|
-
title:
|
|
545
|
-
}, /* @__PURE__ */ s.createElement(
|
|
546
|
-
className: _(
|
|
589
|
+
title: y
|
|
590
|
+
}, /* @__PURE__ */ s.createElement(Nn, Object.assign({}, $, {
|
|
591
|
+
className: _($.className, !x && un),
|
|
547
592
|
type: "radio",
|
|
548
593
|
prefixCls: g,
|
|
549
594
|
ref: h
|
|
550
595
|
})), p !== void 0 ? /* @__PURE__ */ s.createElement("span", null, p) : null)));
|
|
551
|
-
},
|
|
552
|
-
process.env.NODE_ENV !== "production" && (
|
|
553
|
-
const
|
|
596
|
+
}, Y = /* @__PURE__ */ s.forwardRef(Dn);
|
|
597
|
+
process.env.NODE_ENV !== "production" && (Y.displayName = "Radio");
|
|
598
|
+
const Bn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
554
599
|
const {
|
|
555
|
-
getPrefixCls:
|
|
600
|
+
getPrefixCls: a,
|
|
556
601
|
direction: t
|
|
557
|
-
} = s.useContext(W), [
|
|
602
|
+
} = s.useContext(W), [o, r] = J(e.defaultValue, {
|
|
558
603
|
value: e.value
|
|
559
604
|
}), d = (E) => {
|
|
560
|
-
const z =
|
|
605
|
+
const z = o, A = E.target.value;
|
|
561
606
|
"value" in e || r(A);
|
|
562
607
|
const {
|
|
563
|
-
onChange:
|
|
608
|
+
onChange: V
|
|
564
609
|
} = e;
|
|
565
|
-
|
|
610
|
+
V && A !== z && V(E);
|
|
566
611
|
}, {
|
|
567
|
-
prefixCls:
|
|
612
|
+
prefixCls: i,
|
|
568
613
|
className: c,
|
|
569
614
|
rootClassName: l,
|
|
570
615
|
options: h,
|
|
571
616
|
buttonStyle: u = "outline",
|
|
572
617
|
disabled: C,
|
|
573
|
-
children:
|
|
618
|
+
children: f,
|
|
574
619
|
size: O,
|
|
575
|
-
style:
|
|
620
|
+
style: v,
|
|
576
621
|
id: p,
|
|
577
622
|
onMouseEnter: I,
|
|
578
|
-
onMouseLeave:
|
|
623
|
+
onMouseLeave: y,
|
|
579
624
|
onFocus: S,
|
|
580
|
-
onBlur:
|
|
581
|
-
} = e, x =
|
|
582
|
-
let
|
|
583
|
-
h && h.length > 0 && (
|
|
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, {
|
|
584
629
|
key: E.toString(),
|
|
585
630
|
prefixCls: x,
|
|
586
631
|
disabled: C,
|
|
587
632
|
value: E,
|
|
588
|
-
checked:
|
|
589
|
-
}, E) : /* @__PURE__ */ s.createElement(
|
|
633
|
+
checked: o === E
|
|
634
|
+
}, E) : /* @__PURE__ */ s.createElement(Y, {
|
|
590
635
|
key: `radio-group-value-options-${E.value}`,
|
|
591
636
|
prefixCls: x,
|
|
592
637
|
disabled: E.disabled || C,
|
|
593
638
|
value: E.value,
|
|
594
|
-
checked:
|
|
639
|
+
checked: o === E.value,
|
|
595
640
|
title: E.title,
|
|
596
641
|
style: E.style,
|
|
597
642
|
id: E.id,
|
|
598
643
|
required: E.required
|
|
599
644
|
}, E.label)));
|
|
600
|
-
const P =
|
|
645
|
+
const P = me(O), D = _(g, `${g}-${u}`, {
|
|
601
646
|
[`${g}-${P}`]: P,
|
|
602
647
|
[`${g}-rtl`]: t === "rtl"
|
|
603
|
-
}, c, l, w,
|
|
604
|
-
return
|
|
648
|
+
}, c, l, w, k, N);
|
|
649
|
+
return m(/* @__PURE__ */ s.createElement("div", Object.assign({}, ze(e, {
|
|
605
650
|
aria: !0,
|
|
606
651
|
data: !0
|
|
607
652
|
}), {
|
|
608
|
-
className:
|
|
609
|
-
style:
|
|
653
|
+
className: D,
|
|
654
|
+
style: v,
|
|
610
655
|
onMouseEnter: I,
|
|
611
|
-
onMouseLeave:
|
|
656
|
+
onMouseLeave: y,
|
|
612
657
|
onFocus: S,
|
|
613
|
-
onBlur:
|
|
658
|
+
onBlur: b,
|
|
614
659
|
id: p,
|
|
615
660
|
ref: n
|
|
616
|
-
}), /* @__PURE__ */ s.createElement(
|
|
661
|
+
}), /* @__PURE__ */ s.createElement(wn, {
|
|
617
662
|
value: {
|
|
618
663
|
onChange: d,
|
|
619
|
-
value:
|
|
664
|
+
value: o,
|
|
620
665
|
disabled: e.disabled,
|
|
621
666
|
name: e.name,
|
|
622
667
|
optionType: e.optionType
|
|
623
668
|
}
|
|
624
|
-
},
|
|
625
|
-
}),
|
|
626
|
-
var
|
|
627
|
-
var
|
|
669
|
+
}, $)));
|
|
670
|
+
}), _n = /* @__PURE__ */ s.memo(Bn);
|
|
671
|
+
var Tn = function(e, n) {
|
|
672
|
+
var a = {};
|
|
628
673
|
for (var t in e)
|
|
629
|
-
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (
|
|
674
|
+
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
|
|
630
675
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
631
|
-
for (var
|
|
632
|
-
n.indexOf(t[
|
|
633
|
-
return
|
|
676
|
+
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
677
|
+
n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
|
|
678
|
+
return a;
|
|
634
679
|
};
|
|
635
|
-
const
|
|
680
|
+
const jn = (e, n) => {
|
|
636
681
|
const {
|
|
637
|
-
getPrefixCls:
|
|
682
|
+
getPrefixCls: a
|
|
638
683
|
} = s.useContext(W), {
|
|
639
684
|
prefixCls: t
|
|
640
|
-
} = e,
|
|
641
|
-
return /* @__PURE__ */ s.createElement(
|
|
685
|
+
} = e, o = Tn(e, ["prefixCls"]), r = a("radio", t);
|
|
686
|
+
return /* @__PURE__ */ s.createElement(En, {
|
|
642
687
|
value: "button"
|
|
643
|
-
}, /* @__PURE__ */ s.createElement(
|
|
688
|
+
}, /* @__PURE__ */ s.createElement(Y, Object.assign({
|
|
644
689
|
prefixCls: r
|
|
645
|
-
},
|
|
690
|
+
}, o, {
|
|
646
691
|
type: "radio",
|
|
647
692
|
ref: n
|
|
648
693
|
})));
|
|
649
|
-
},
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
var
|
|
654
|
-
var
|
|
655
|
-
return
|
|
656
|
-
(t ||
|
|
657
|
-
}, [t,
|
|
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];
|
|
700
|
+
return B.useEffect(function() {
|
|
701
|
+
(t || i) && C(!0);
|
|
702
|
+
}, [t, i]), u ? /* @__PURE__ */ B.createElement("div", {
|
|
658
703
|
ref: n,
|
|
659
|
-
className: _("".concat(
|
|
704
|
+
className: _("".concat(a, "-content"), L(L({}, "".concat(a, "-content-active"), i), "".concat(a, "-content-inactive"), !i), o),
|
|
660
705
|
style: r,
|
|
661
706
|
role: c
|
|
662
|
-
}, /* @__PURE__ */
|
|
663
|
-
className: "".concat(
|
|
707
|
+
}, /* @__PURE__ */ B.createElement("div", {
|
|
708
|
+
className: "".concat(a, "-content-box")
|
|
664
709
|
}, d)) : null;
|
|
665
710
|
});
|
|
666
|
-
|
|
667
|
-
var
|
|
668
|
-
var
|
|
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() {
|
|
669
714
|
d == null || d(C);
|
|
670
715
|
}, w = function(z) {
|
|
671
|
-
(z.key === "Enter" || z.keyCode === te.ENTER || z.which === te.ENTER) &&
|
|
672
|
-
},
|
|
716
|
+
(z.key === "Enter" || z.keyCode === te.ENTER || z.which === te.ENTER) && m();
|
|
717
|
+
}, k = typeof v == "function" ? v(e) : /* @__PURE__ */ B.createElement("i", {
|
|
673
718
|
className: "arrow"
|
|
674
719
|
});
|
|
675
|
-
|
|
720
|
+
k && (k = /* @__PURE__ */ B.createElement("div", {
|
|
676
721
|
className: "".concat(l, "-expand-icon"),
|
|
677
|
-
onClick: ["header", "icon"].includes(h) ?
|
|
678
|
-
},
|
|
679
|
-
var
|
|
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 = {
|
|
680
725
|
className: P,
|
|
681
726
|
"aria-expanded": r,
|
|
682
|
-
"aria-disabled":
|
|
727
|
+
"aria-disabled": b,
|
|
683
728
|
onKeyDown: w
|
|
684
729
|
};
|
|
685
|
-
return !x && !g && (
|
|
730
|
+
return !x && !g && (D.onClick = m, D.role = u ? "tab" : "button", D.tabIndex = b ? -1 : 0), /* @__PURE__ */ B.createElement("div", j({}, S, {
|
|
686
731
|
ref: n,
|
|
687
|
-
className:
|
|
688
|
-
}), /* @__PURE__ */
|
|
732
|
+
className: $
|
|
733
|
+
}), /* @__PURE__ */ B.createElement("div", D, t && k, /* @__PURE__ */ B.createElement("span", {
|
|
689
734
|
className: "".concat(l, "-header-text"),
|
|
690
|
-
onClick: h === "header" ?
|
|
691
|
-
}, O),
|
|
735
|
+
onClick: h === "header" ? m : void 0
|
|
736
|
+
}, O), N && /* @__PURE__ */ B.createElement("div", {
|
|
692
737
|
className: "".concat(l, "-extra")
|
|
693
|
-
},
|
|
738
|
+
}, f)), /* @__PURE__ */ B.createElement(tn, j({
|
|
694
739
|
visible: r,
|
|
695
740
|
leavedClassName: "".concat(l, "-content-hidden")
|
|
696
741
|
}, p, {
|
|
697
|
-
forceRender:
|
|
742
|
+
forceRender: i,
|
|
698
743
|
removeOnLeave: I
|
|
699
744
|
}), function(E, z) {
|
|
700
|
-
var A = E.className,
|
|
701
|
-
return /* @__PURE__ */
|
|
745
|
+
var A = E.className, V = E.style;
|
|
746
|
+
return /* @__PURE__ */ B.createElement(Te, {
|
|
702
747
|
ref: z,
|
|
703
748
|
prefixCls: l,
|
|
704
749
|
className: A,
|
|
705
|
-
style:
|
|
750
|
+
style: V,
|
|
706
751
|
isActive: r,
|
|
707
|
-
forceRender:
|
|
752
|
+
forceRender: i,
|
|
708
753
|
role: u ? "tabpanel" : void 0
|
|
709
|
-
},
|
|
754
|
+
}, y);
|
|
710
755
|
}));
|
|
711
|
-
}),
|
|
712
|
-
var t =
|
|
756
|
+
}), Ln = ["children", "label", "key", "collapsible", "onItemClick", "destroyInactivePanel"], Vn = function(n, a) {
|
|
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;
|
|
713
758
|
return n.map(function(u, C) {
|
|
714
|
-
var
|
|
715
|
-
x !== "disabled" && (
|
|
716
|
-
},
|
|
717
|
-
return
|
|
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, {
|
|
718
763
|
prefixCls: t,
|
|
719
|
-
key:
|
|
720
|
-
panelKey:
|
|
721
|
-
isActive:
|
|
722
|
-
accordion:
|
|
764
|
+
key: b,
|
|
765
|
+
panelKey: b,
|
|
766
|
+
isActive: m,
|
|
767
|
+
accordion: o,
|
|
723
768
|
openMotion: l,
|
|
724
769
|
expandIcon: h,
|
|
725
770
|
header: O,
|
|
726
771
|
collapsible: x,
|
|
727
|
-
onItemClick:
|
|
772
|
+
onItemClick: N,
|
|
728
773
|
destroyInactivePanel: g
|
|
729
|
-
}),
|
|
774
|
+
}), f);
|
|
730
775
|
});
|
|
731
|
-
},
|
|
776
|
+
}, Wn = function(n, a, t) {
|
|
732
777
|
if (!n)
|
|
733
778
|
return null;
|
|
734
|
-
var
|
|
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;
|
|
735
780
|
r ? S = l[0] === C : S = l.indexOf(C) > -1;
|
|
736
|
-
var
|
|
737
|
-
|
|
781
|
+
var b = I ?? d, x = function(m) {
|
|
782
|
+
b !== "disabled" && (c(m), y == null || y(m));
|
|
738
783
|
}, g = {
|
|
739
784
|
key: C,
|
|
740
785
|
panelKey: C,
|
|
741
786
|
header: O,
|
|
742
|
-
headerClass:
|
|
787
|
+
headerClass: v,
|
|
743
788
|
isActive: S,
|
|
744
|
-
prefixCls:
|
|
745
|
-
destroyInactivePanel: p ??
|
|
789
|
+
prefixCls: o,
|
|
790
|
+
destroyInactivePanel: p ?? i,
|
|
746
791
|
openMotion: h,
|
|
747
792
|
accordion: r,
|
|
748
793
|
children: n.props.children,
|
|
749
794
|
onItemClick: x,
|
|
750
795
|
expandIcon: u,
|
|
751
|
-
collapsible:
|
|
796
|
+
collapsible: b
|
|
752
797
|
};
|
|
753
|
-
return typeof n.type == "string" ? n : (Object.keys(g).forEach(function(
|
|
754
|
-
typeof g[
|
|
755
|
-
}), /* @__PURE__ */
|
|
798
|
+
return typeof n.type == "string" ? n : (Object.keys(g).forEach(function(N) {
|
|
799
|
+
typeof g[N] > "u" && delete g[N];
|
|
800
|
+
}), /* @__PURE__ */ B.cloneElement(n, g));
|
|
756
801
|
};
|
|
757
|
-
function
|
|
758
|
-
return Array.isArray(e) ?
|
|
759
|
-
return
|
|
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);
|
|
760
805
|
});
|
|
761
806
|
}
|
|
762
|
-
function
|
|
807
|
+
function Fn(e) {
|
|
763
808
|
var n = e;
|
|
764
809
|
if (!Array.isArray(n)) {
|
|
765
|
-
var
|
|
766
|
-
n =
|
|
810
|
+
var a = an(n);
|
|
811
|
+
n = a === "number" || a === "string" ? [n] : [];
|
|
767
812
|
}
|
|
768
813
|
return n.map(function(t) {
|
|
769
814
|
return String(t);
|
|
770
815
|
});
|
|
771
816
|
}
|
|
772
|
-
var
|
|
773
|
-
var
|
|
774
|
-
value:
|
|
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,
|
|
775
820
|
onChange: function(w) {
|
|
776
|
-
return
|
|
821
|
+
return v == null ? void 0 : v(w);
|
|
777
822
|
},
|
|
778
823
|
defaultValue: O,
|
|
779
|
-
postState:
|
|
780
|
-
}), S =
|
|
824
|
+
postState: Fn
|
|
825
|
+
}), S = ie(y, 2), b = S[0], x = S[1], g = function(w) {
|
|
781
826
|
return x(function() {
|
|
782
|
-
if (
|
|
783
|
-
return
|
|
784
|
-
var
|
|
785
|
-
return
|
|
827
|
+
if (i)
|
|
828
|
+
return b[0] === w ? [] : [w];
|
|
829
|
+
var k = b.indexOf(w), $ = k > -1;
|
|
830
|
+
return $ ? b.filter(function(P) {
|
|
786
831
|
return P !== w;
|
|
787
|
-
}) : [].concat(
|
|
832
|
+
}) : [].concat(rn(b), [w]);
|
|
788
833
|
});
|
|
789
834
|
};
|
|
790
|
-
|
|
791
|
-
var
|
|
835
|
+
on(!l, "[rc-collapse] `children` will be removed in next major version. Please use `items` instead.");
|
|
836
|
+
var N = qn(p, l, {
|
|
792
837
|
prefixCls: t,
|
|
793
|
-
accordion:
|
|
838
|
+
accordion: i,
|
|
794
839
|
openMotion: u,
|
|
795
840
|
expandIcon: C,
|
|
796
841
|
collapsible: h,
|
|
797
842
|
destroyInactivePanel: r,
|
|
798
843
|
onItemClick: g,
|
|
799
|
-
activeKey:
|
|
844
|
+
activeKey: b
|
|
800
845
|
});
|
|
801
|
-
return /* @__PURE__ */
|
|
846
|
+
return /* @__PURE__ */ B.createElement("div", j({
|
|
802
847
|
ref: n,
|
|
803
848
|
className: I,
|
|
804
849
|
style: d,
|
|
805
|
-
role:
|
|
806
|
-
},
|
|
850
|
+
role: i ? "tablist" : void 0
|
|
851
|
+
}, ze(e, {
|
|
807
852
|
aria: !0,
|
|
808
853
|
data: !0
|
|
809
|
-
})),
|
|
854
|
+
})), N);
|
|
810
855
|
});
|
|
811
|
-
const
|
|
856
|
+
const pe = Object.assign(Kn, {
|
|
812
857
|
/**
|
|
813
858
|
* @deprecated use `items` instead, will be removed in `v4.0.0`
|
|
814
859
|
*/
|
|
815
|
-
Panel:
|
|
860
|
+
Panel: je
|
|
816
861
|
});
|
|
817
|
-
|
|
818
|
-
const
|
|
862
|
+
pe.Panel;
|
|
863
|
+
const Gn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
819
864
|
process.env.NODE_ENV !== "production" && ce("Collapse.Panel").deprecated(!("disabled" in e), "disabled", 'collapsible="disabled"');
|
|
820
865
|
const {
|
|
821
|
-
getPrefixCls:
|
|
866
|
+
getPrefixCls: a
|
|
822
867
|
} = s.useContext(W), {
|
|
823
868
|
prefixCls: t,
|
|
824
|
-
className:
|
|
869
|
+
className: o,
|
|
825
870
|
showArrow: r = !0
|
|
826
|
-
} = e, d =
|
|
871
|
+
} = e, d = a("collapse", t), i = _({
|
|
827
872
|
[`${d}-no-arrow`]: !r
|
|
828
|
-
},
|
|
829
|
-
return /* @__PURE__ */ s.createElement(
|
|
873
|
+
}, o);
|
|
874
|
+
return /* @__PURE__ */ s.createElement(pe.Panel, Object.assign({
|
|
830
875
|
ref: n
|
|
831
876
|
}, e, {
|
|
832
877
|
prefixCls: d,
|
|
833
|
-
className:
|
|
878
|
+
className: i
|
|
834
879
|
}));
|
|
835
|
-
}),
|
|
880
|
+
}), Xn = (e) => {
|
|
836
881
|
const {
|
|
837
882
|
componentCls: n,
|
|
838
|
-
contentBg:
|
|
883
|
+
contentBg: a,
|
|
839
884
|
padding: t,
|
|
840
|
-
headerBg:
|
|
885
|
+
headerBg: o,
|
|
841
886
|
headerPadding: r,
|
|
842
887
|
collapseHeaderPaddingSM: d,
|
|
843
|
-
collapseHeaderPaddingLG:
|
|
888
|
+
collapseHeaderPaddingLG: i,
|
|
844
889
|
collapsePanelBorderRadius: c,
|
|
845
890
|
lineWidth: l,
|
|
846
891
|
lineType: h,
|
|
847
892
|
colorBorder: u,
|
|
848
893
|
colorText: C,
|
|
849
|
-
colorTextHeading:
|
|
894
|
+
colorTextHeading: f,
|
|
850
895
|
colorTextDisabled: O,
|
|
851
|
-
fontSizeLG:
|
|
896
|
+
fontSizeLG: v,
|
|
852
897
|
lineHeight: p,
|
|
853
898
|
lineHeightLG: I,
|
|
854
|
-
marginSM:
|
|
899
|
+
marginSM: y,
|
|
855
900
|
paddingSM: S,
|
|
856
|
-
paddingLG:
|
|
901
|
+
paddingLG: b,
|
|
857
902
|
paddingXS: x,
|
|
858
903
|
motionDurationSlow: g,
|
|
859
|
-
fontSizeIcon:
|
|
860
|
-
contentPadding:
|
|
904
|
+
fontSizeIcon: N,
|
|
905
|
+
contentPadding: m,
|
|
861
906
|
fontHeight: w,
|
|
862
|
-
fontHeightLG:
|
|
863
|
-
} = e,
|
|
907
|
+
fontHeightLG: k
|
|
908
|
+
} = e, $ = `${M(l)} ${h} ${u}`;
|
|
864
909
|
return {
|
|
865
910
|
[n]: Object.assign(Object.assign({}, G(e)), {
|
|
866
|
-
backgroundColor:
|
|
867
|
-
border:
|
|
911
|
+
backgroundColor: o,
|
|
912
|
+
border: $,
|
|
868
913
|
borderRadius: c,
|
|
869
914
|
"&-rtl": {
|
|
870
915
|
direction: "rtl"
|
|
871
916
|
},
|
|
872
917
|
[`& > ${n}-item`]: {
|
|
873
|
-
borderBottom:
|
|
918
|
+
borderBottom: $,
|
|
874
919
|
"&:last-child": {
|
|
875
920
|
[`
|
|
876
921
|
&,
|
|
@@ -885,7 +930,7 @@ const Tn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
|
885
930
|
flexWrap: "nowrap",
|
|
886
931
|
alignItems: "flex-start",
|
|
887
932
|
padding: r,
|
|
888
|
-
color:
|
|
933
|
+
color: f,
|
|
889
934
|
lineHeight: p,
|
|
890
935
|
cursor: "pointer",
|
|
891
936
|
transition: `all ${g}, visibility 0s`,
|
|
@@ -900,10 +945,10 @@ const Tn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
|
900
945
|
height: w,
|
|
901
946
|
display: "flex",
|
|
902
947
|
alignItems: "center",
|
|
903
|
-
paddingInlineEnd:
|
|
948
|
+
paddingInlineEnd: y
|
|
904
949
|
},
|
|
905
|
-
[`${n}-arrow`]: Object.assign(Object.assign({},
|
|
906
|
-
fontSize:
|
|
950
|
+
[`${n}-arrow`]: Object.assign(Object.assign({}, ln()), {
|
|
951
|
+
fontSize: N,
|
|
907
952
|
// when `transform: rotate()` is applied to icon's root element
|
|
908
953
|
transition: `transform ${g}`,
|
|
909
954
|
// when `transform: rotate()` is applied to icon's child element
|
|
@@ -925,10 +970,10 @@ const Tn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
|
925
970
|
},
|
|
926
971
|
[`${n}-content`]: {
|
|
927
972
|
color: C,
|
|
928
|
-
backgroundColor:
|
|
929
|
-
borderTop:
|
|
973
|
+
backgroundColor: a,
|
|
974
|
+
borderTop: $,
|
|
930
975
|
[`& > ${n}-content-box`]: {
|
|
931
|
-
padding:
|
|
976
|
+
padding: m
|
|
932
977
|
},
|
|
933
978
|
"&-hidden": {
|
|
934
979
|
display: "none"
|
|
@@ -951,19 +996,19 @@ const Tn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
|
951
996
|
},
|
|
952
997
|
"&-large": {
|
|
953
998
|
[`> ${n}-item`]: {
|
|
954
|
-
fontSize:
|
|
999
|
+
fontSize: v,
|
|
955
1000
|
lineHeight: I,
|
|
956
1001
|
[`> ${n}-header`]: {
|
|
957
|
-
padding:
|
|
1002
|
+
padding: i,
|
|
958
1003
|
paddingInlineStart: t,
|
|
959
1004
|
[`> ${n}-expand-icon`]: {
|
|
960
|
-
height:
|
|
1005
|
+
height: k,
|
|
961
1006
|
// Arrow offset
|
|
962
|
-
marginInlineStart: e.calc(
|
|
1007
|
+
marginInlineStart: e.calc(b).sub(t).equal()
|
|
963
1008
|
}
|
|
964
1009
|
},
|
|
965
1010
|
[`> ${n}-content > ${n}-content-box`]: {
|
|
966
|
-
padding:
|
|
1011
|
+
padding: b
|
|
967
1012
|
}
|
|
968
1013
|
}
|
|
969
1014
|
},
|
|
@@ -986,37 +1031,37 @@ const Tn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
|
986
1031
|
[`${n}-expand-icon`]: {
|
|
987
1032
|
order: 1,
|
|
988
1033
|
paddingInlineEnd: 0,
|
|
989
|
-
paddingInlineStart:
|
|
1034
|
+
paddingInlineStart: y
|
|
990
1035
|
}
|
|
991
1036
|
}
|
|
992
1037
|
}
|
|
993
1038
|
}
|
|
994
1039
|
})
|
|
995
1040
|
};
|
|
996
|
-
},
|
|
1041
|
+
}, Un = (e) => {
|
|
997
1042
|
const {
|
|
998
1043
|
componentCls: n
|
|
999
|
-
} = e,
|
|
1044
|
+
} = e, a = `> ${n}-item > ${n}-header ${n}-arrow`;
|
|
1000
1045
|
return {
|
|
1001
1046
|
[`${n}-rtl`]: {
|
|
1002
|
-
[
|
|
1047
|
+
[a]: {
|
|
1003
1048
|
transform: "rotate(180deg)"
|
|
1004
1049
|
}
|
|
1005
1050
|
}
|
|
1006
1051
|
};
|
|
1007
|
-
},
|
|
1052
|
+
}, Yn = (e) => {
|
|
1008
1053
|
const {
|
|
1009
1054
|
componentCls: n,
|
|
1010
|
-
headerBg:
|
|
1055
|
+
headerBg: a,
|
|
1011
1056
|
paddingXXS: t,
|
|
1012
|
-
colorBorder:
|
|
1057
|
+
colorBorder: o
|
|
1013
1058
|
} = e;
|
|
1014
1059
|
return {
|
|
1015
1060
|
[`${n}-borderless`]: {
|
|
1016
|
-
backgroundColor:
|
|
1061
|
+
backgroundColor: a,
|
|
1017
1062
|
border: 0,
|
|
1018
1063
|
[`> ${n}-item`]: {
|
|
1019
|
-
borderBottom: `1px solid ${
|
|
1064
|
+
borderBottom: `1px solid ${o}`
|
|
1020
1065
|
},
|
|
1021
1066
|
[`
|
|
1022
1067
|
> ${n}-item:last-child,
|
|
@@ -1036,10 +1081,10 @@ const Tn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
|
1036
1081
|
}
|
|
1037
1082
|
}
|
|
1038
1083
|
};
|
|
1039
|
-
},
|
|
1084
|
+
}, Qn = (e) => {
|
|
1040
1085
|
const {
|
|
1041
1086
|
componentCls: n,
|
|
1042
|
-
paddingSM:
|
|
1087
|
+
paddingSM: a
|
|
1043
1088
|
} = e;
|
|
1044
1089
|
return {
|
|
1045
1090
|
[`${n}-ghost`]: {
|
|
@@ -1051,122 +1096,122 @@ const Tn = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
|
1051
1096
|
backgroundColor: "transparent",
|
|
1052
1097
|
border: 0,
|
|
1053
1098
|
[`> ${n}-content-box`]: {
|
|
1054
|
-
paddingBlock:
|
|
1099
|
+
paddingBlock: a
|
|
1055
1100
|
}
|
|
1056
1101
|
}
|
|
1057
1102
|
}
|
|
1058
1103
|
}
|
|
1059
1104
|
};
|
|
1060
|
-
},
|
|
1105
|
+
}, Jn = (e) => ({
|
|
1061
1106
|
headerPadding: `${e.paddingSM}px ${e.padding}px`,
|
|
1062
1107
|
headerBg: e.colorFillAlter,
|
|
1063
1108
|
contentPadding: `${e.padding}px 16px`,
|
|
1064
1109
|
// Fixed Value
|
|
1065
1110
|
contentBg: e.colorBgContainer
|
|
1066
|
-
}),
|
|
1111
|
+
}), Zn = re("Collapse", (e) => {
|
|
1067
1112
|
const n = le(e, {
|
|
1068
1113
|
collapseHeaderPaddingSM: `${M(e.paddingXS)} ${M(e.paddingSM)}`,
|
|
1069
1114
|
collapseHeaderPaddingLG: `${M(e.padding)} ${M(e.paddingLG)}`,
|
|
1070
1115
|
collapsePanelBorderRadius: e.borderRadiusLG
|
|
1071
1116
|
});
|
|
1072
|
-
return [
|
|
1073
|
-
},
|
|
1117
|
+
return [Xn(n), Yn(n), Qn(n), Un(n), Sn(n)];
|
|
1118
|
+
}, Jn), Ae = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
1074
1119
|
const {
|
|
1075
|
-
getPrefixCls:
|
|
1120
|
+
getPrefixCls: a,
|
|
1076
1121
|
direction: t,
|
|
1077
|
-
collapse:
|
|
1122
|
+
collapse: o
|
|
1078
1123
|
} = s.useContext(W), {
|
|
1079
1124
|
prefixCls: r,
|
|
1080
1125
|
className: d,
|
|
1081
|
-
rootClassName:
|
|
1126
|
+
rootClassName: i,
|
|
1082
1127
|
style: c,
|
|
1083
1128
|
bordered: l = !0,
|
|
1084
1129
|
ghost: h,
|
|
1085
1130
|
size: u,
|
|
1086
1131
|
expandIconPosition: C = "start",
|
|
1087
|
-
children:
|
|
1132
|
+
children: f,
|
|
1088
1133
|
expandIcon: O
|
|
1089
|
-
} = e,
|
|
1134
|
+
} = e, v = me(($) => {
|
|
1090
1135
|
var P;
|
|
1091
|
-
return (P = u ??
|
|
1092
|
-
}), p =
|
|
1136
|
+
return (P = u ?? $) !== null && P !== void 0 ? P : "middle";
|
|
1137
|
+
}), p = a("collapse", r), I = a(), [y, S, b] = Zn(p);
|
|
1093
1138
|
if (process.env.NODE_ENV !== "production") {
|
|
1094
|
-
const
|
|
1095
|
-
process.env.NODE_ENV !== "production" &&
|
|
1139
|
+
const $ = ce("Collapse");
|
|
1140
|
+
process.env.NODE_ENV !== "production" && $(C !== "left" && C !== "right", "deprecated", "`expandIconPosition` with `left` or `right` is deprecated. Please use `start` or `end` instead.");
|
|
1096
1141
|
}
|
|
1097
|
-
const x = s.useMemo(() => C === "left" ? "start" : C === "right" ? "end" : C, [C]), g = O ?? (
|
|
1098
|
-
let
|
|
1099
|
-
const P = typeof g == "function" ? g(
|
|
1100
|
-
rotate:
|
|
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() {
|
|
1143
|
+
let $ = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
1144
|
+
const P = typeof g == "function" ? g($) : /* @__PURE__ */ s.createElement(Re, {
|
|
1145
|
+
rotate: $.isActive ? 90 : void 0
|
|
1101
1146
|
});
|
|
1102
1147
|
return Ce(P, () => {
|
|
1103
|
-
var
|
|
1148
|
+
var D;
|
|
1104
1149
|
return {
|
|
1105
|
-
className: _((
|
|
1150
|
+
className: _((D = P == null ? void 0 : P.props) === null || D === void 0 ? void 0 : D.className, `${p}-arrow`)
|
|
1106
1151
|
};
|
|
1107
1152
|
});
|
|
1108
|
-
}, [g, p]),
|
|
1153
|
+
}, [g, p]), m = _(`${p}-icon-position-${x}`, {
|
|
1109
1154
|
[`${p}-borderless`]: !l,
|
|
1110
1155
|
[`${p}-rtl`]: t === "rtl",
|
|
1111
1156
|
[`${p}-ghost`]: !!h,
|
|
1112
|
-
[`${p}-${
|
|
1113
|
-
},
|
|
1157
|
+
[`${p}-${v}`]: v !== "middle"
|
|
1158
|
+
}, o == null ? void 0 : o.className, d, i, S, b), w = Object.assign(Object.assign({}, hn(I)), {
|
|
1114
1159
|
motionAppear: !1,
|
|
1115
1160
|
leavedClassName: `${p}-content-hidden`
|
|
1116
|
-
}),
|
|
1117
|
-
var
|
|
1118
|
-
if (!((
|
|
1119
|
-
const z = (E =
|
|
1161
|
+
}), k = s.useMemo(() => f ? fe(f).map(($, P) => {
|
|
1162
|
+
var D, E;
|
|
1163
|
+
if (!((D = $.props) === null || D === void 0) && D.disabled) {
|
|
1164
|
+
const z = (E = $.key) !== null && E !== void 0 ? E : String(P), {
|
|
1120
1165
|
disabled: A,
|
|
1121
|
-
collapsible:
|
|
1122
|
-
} =
|
|
1166
|
+
collapsible: V
|
|
1167
|
+
} = $.props, X = Object.assign(Object.assign({}, ye($.props, ["disabled"])), {
|
|
1123
1168
|
key: z,
|
|
1124
|
-
collapsible:
|
|
1169
|
+
collapsible: V ?? (A ? "disabled" : void 0)
|
|
1125
1170
|
});
|
|
1126
|
-
return Ce(
|
|
1171
|
+
return Ce($, X);
|
|
1127
1172
|
}
|
|
1128
|
-
return
|
|
1129
|
-
}) : null, [
|
|
1130
|
-
return
|
|
1173
|
+
return $;
|
|
1174
|
+
}) : null, [f]);
|
|
1175
|
+
return y(
|
|
1131
1176
|
// @ts-ignore
|
|
1132
|
-
/* @__PURE__ */ s.createElement(
|
|
1177
|
+
/* @__PURE__ */ s.createElement(pe, Object.assign({
|
|
1133
1178
|
ref: n,
|
|
1134
1179
|
openMotion: w
|
|
1135
|
-
},
|
|
1136
|
-
expandIcon:
|
|
1180
|
+
}, ye(e, ["rootClassName"]), {
|
|
1181
|
+
expandIcon: N,
|
|
1137
1182
|
prefixCls: p,
|
|
1138
|
-
className:
|
|
1139
|
-
style: Object.assign(Object.assign({},
|
|
1140
|
-
}),
|
|
1183
|
+
className: m,
|
|
1184
|
+
style: Object.assign(Object.assign({}, o == null ? void 0 : o.style), c)
|
|
1185
|
+
}), k)
|
|
1141
1186
|
);
|
|
1142
1187
|
});
|
|
1143
|
-
process.env.NODE_ENV !== "production" && (
|
|
1144
|
-
const
|
|
1145
|
-
Panel:
|
|
1146
|
-
}),
|
|
1188
|
+
process.env.NODE_ENV !== "production" && (Ae.displayName = "Collapse");
|
|
1189
|
+
const Se = Object.assign(Ae, {
|
|
1190
|
+
Panel: Gn
|
|
1191
|
+
}), et = (e) => {
|
|
1147
1192
|
const {
|
|
1148
1193
|
componentCls: n,
|
|
1149
|
-
sizePaddingEdgeHorizontal:
|
|
1194
|
+
sizePaddingEdgeHorizontal: a,
|
|
1150
1195
|
colorSplit: t,
|
|
1151
|
-
lineWidth:
|
|
1196
|
+
lineWidth: o,
|
|
1152
1197
|
textPaddingInline: r,
|
|
1153
1198
|
orientationMargin: d,
|
|
1154
|
-
verticalMarginInline:
|
|
1199
|
+
verticalMarginInline: i
|
|
1155
1200
|
} = e;
|
|
1156
1201
|
return {
|
|
1157
1202
|
[n]: Object.assign(Object.assign({}, G(e)), {
|
|
1158
|
-
borderBlockStart: `${M(
|
|
1203
|
+
borderBlockStart: `${M(o)} solid ${t}`,
|
|
1159
1204
|
// vertical
|
|
1160
1205
|
"&-vertical": {
|
|
1161
1206
|
position: "relative",
|
|
1162
1207
|
top: "-0.06em",
|
|
1163
1208
|
display: "inline-block",
|
|
1164
1209
|
height: "0.9em",
|
|
1165
|
-
marginInline:
|
|
1210
|
+
marginInline: i,
|
|
1166
1211
|
marginBlock: 0,
|
|
1167
1212
|
verticalAlign: "middle",
|
|
1168
1213
|
borderTop: 0,
|
|
1169
|
-
borderInlineStart: `${M(
|
|
1214
|
+
borderInlineStart: `${M(o)} solid ${t}`
|
|
1170
1215
|
},
|
|
1171
1216
|
"&-horizontal": {
|
|
1172
1217
|
display: "flex",
|
|
@@ -1189,7 +1234,7 @@ const ye = Object.assign(je, {
|
|
|
1189
1234
|
"&::before, &::after": {
|
|
1190
1235
|
position: "relative",
|
|
1191
1236
|
width: "50%",
|
|
1192
|
-
borderBlockStart: `${M(
|
|
1237
|
+
borderBlockStart: `${M(o)} solid transparent`,
|
|
1193
1238
|
// Chrome not accept `inherit` in `border-top`
|
|
1194
1239
|
borderBlockStartColor: "inherit",
|
|
1195
1240
|
borderBlockEnd: 0,
|
|
@@ -1222,7 +1267,7 @@ const ye = Object.assign(je, {
|
|
|
1222
1267
|
background: "none",
|
|
1223
1268
|
borderColor: t,
|
|
1224
1269
|
borderStyle: "dashed",
|
|
1225
|
-
borderWidth: `${M(
|
|
1270
|
+
borderWidth: `${M(o)} 0 0`
|
|
1226
1271
|
},
|
|
1227
1272
|
[`&-horizontal${n}-with-text${n}-dashed`]: {
|
|
1228
1273
|
"&::before, &::after": {
|
|
@@ -1230,7 +1275,7 @@ const ye = Object.assign(je, {
|
|
|
1230
1275
|
}
|
|
1231
1276
|
},
|
|
1232
1277
|
[`&-vertical${n}-dashed`]: {
|
|
1233
|
-
borderInlineStartWidth:
|
|
1278
|
+
borderInlineStartWidth: o,
|
|
1234
1279
|
borderInlineEnd: 0,
|
|
1235
1280
|
borderBlockStart: 0,
|
|
1236
1281
|
borderBlockEnd: 0
|
|
@@ -1248,7 +1293,7 @@ const ye = Object.assign(je, {
|
|
|
1248
1293
|
width: "100%"
|
|
1249
1294
|
},
|
|
1250
1295
|
[`${n}-inner-text`]: {
|
|
1251
|
-
paddingInlineStart:
|
|
1296
|
+
paddingInlineStart: a
|
|
1252
1297
|
}
|
|
1253
1298
|
},
|
|
1254
1299
|
[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]: {
|
|
@@ -1259,244 +1304,244 @@ const ye = Object.assign(je, {
|
|
|
1259
1304
|
width: 0
|
|
1260
1305
|
},
|
|
1261
1306
|
[`${n}-inner-text`]: {
|
|
1262
|
-
paddingInlineEnd:
|
|
1307
|
+
paddingInlineEnd: a
|
|
1263
1308
|
}
|
|
1264
1309
|
}
|
|
1265
1310
|
})
|
|
1266
1311
|
};
|
|
1267
|
-
},
|
|
1312
|
+
}, nt = (e) => ({
|
|
1268
1313
|
textPaddingInline: "1em",
|
|
1269
1314
|
orientationMargin: 0.05,
|
|
1270
1315
|
verticalMarginInline: e.marginXS
|
|
1271
|
-
}),
|
|
1316
|
+
}), tt = re("Divider", (e) => {
|
|
1272
1317
|
const n = le(e, {
|
|
1273
1318
|
dividerHorizontalWithTextGutterMargin: e.margin,
|
|
1274
1319
|
dividerHorizontalGutterMargin: e.marginLG,
|
|
1275
1320
|
sizePaddingEdgeHorizontal: 0
|
|
1276
1321
|
});
|
|
1277
|
-
return [
|
|
1278
|
-
},
|
|
1322
|
+
return [et(n)];
|
|
1323
|
+
}, nt, {
|
|
1279
1324
|
unitless: {
|
|
1280
1325
|
orientationMargin: !0
|
|
1281
1326
|
}
|
|
1282
1327
|
});
|
|
1283
|
-
var
|
|
1284
|
-
var
|
|
1328
|
+
var ot = function(e, n) {
|
|
1329
|
+
var a = {};
|
|
1285
1330
|
for (var t in e)
|
|
1286
|
-
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (
|
|
1331
|
+
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
|
|
1287
1332
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1288
|
-
for (var
|
|
1289
|
-
n.indexOf(t[
|
|
1290
|
-
return
|
|
1333
|
+
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
1334
|
+
n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
|
|
1335
|
+
return a;
|
|
1291
1336
|
};
|
|
1292
|
-
const
|
|
1337
|
+
const He = (e) => {
|
|
1293
1338
|
const {
|
|
1294
1339
|
getPrefixCls: n,
|
|
1295
|
-
direction:
|
|
1340
|
+
direction: a,
|
|
1296
1341
|
divider: t
|
|
1297
1342
|
} = s.useContext(W), {
|
|
1298
|
-
prefixCls:
|
|
1343
|
+
prefixCls: o,
|
|
1299
1344
|
type: r = "horizontal",
|
|
1300
1345
|
orientation: d = "center",
|
|
1301
|
-
orientationMargin:
|
|
1346
|
+
orientationMargin: i,
|
|
1302
1347
|
className: c,
|
|
1303
1348
|
rootClassName: l,
|
|
1304
1349
|
children: h,
|
|
1305
1350
|
dashed: u,
|
|
1306
1351
|
plain: C,
|
|
1307
|
-
style:
|
|
1308
|
-
} = e, O =
|
|
1309
|
-
[`${
|
|
1310
|
-
[`${
|
|
1311
|
-
[`${
|
|
1312
|
-
[`${
|
|
1313
|
-
[`${
|
|
1314
|
-
[`${
|
|
1315
|
-
[`${
|
|
1316
|
-
}, c, l),
|
|
1317
|
-
marginLeft:
|
|
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
|
|
1318
1363
|
}), g && {
|
|
1319
|
-
marginRight:
|
|
1364
|
+
marginRight: m
|
|
1320
1365
|
});
|
|
1321
1366
|
if (process.env.NODE_ENV !== "production") {
|
|
1322
|
-
const
|
|
1323
|
-
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.");
|
|
1324
1369
|
}
|
|
1325
1370
|
return p(/* @__PURE__ */ s.createElement("div", Object.assign({
|
|
1326
|
-
className:
|
|
1327
|
-
style: Object.assign(Object.assign({}, t == null ? void 0 : t.style),
|
|
1371
|
+
className: N,
|
|
1372
|
+
style: Object.assign(Object.assign({}, t == null ? void 0 : t.style), f)
|
|
1328
1373
|
}, O, {
|
|
1329
1374
|
role: "separator"
|
|
1330
1375
|
}), h && r !== "vertical" && /* @__PURE__ */ s.createElement("span", {
|
|
1331
|
-
className: `${
|
|
1376
|
+
className: `${v}-inner-text`,
|
|
1332
1377
|
style: w
|
|
1333
1378
|
}, h)));
|
|
1334
1379
|
};
|
|
1335
|
-
process.env.NODE_ENV !== "production" && (
|
|
1336
|
-
function
|
|
1380
|
+
process.env.NODE_ENV !== "production" && (He.displayName = "Divider");
|
|
1381
|
+
function xe(e) {
|
|
1337
1382
|
return ["small", "middle", "large"].includes(e);
|
|
1338
1383
|
}
|
|
1339
|
-
function
|
|
1384
|
+
function Ie(e) {
|
|
1340
1385
|
return e ? typeof e == "number" && !Number.isNaN(e) : !1;
|
|
1341
1386
|
}
|
|
1342
|
-
const
|
|
1387
|
+
const Le = /* @__PURE__ */ B.createContext({
|
|
1343
1388
|
latestIndex: 0
|
|
1344
|
-
}),
|
|
1389
|
+
}), at = Le.Provider, it = (e) => {
|
|
1345
1390
|
let {
|
|
1346
1391
|
className: n,
|
|
1347
|
-
index:
|
|
1392
|
+
index: a,
|
|
1348
1393
|
children: t,
|
|
1349
|
-
split:
|
|
1394
|
+
split: o,
|
|
1350
1395
|
style: r
|
|
1351
1396
|
} = e;
|
|
1352
1397
|
const {
|
|
1353
1398
|
latestIndex: d
|
|
1354
|
-
} = s.useContext(
|
|
1399
|
+
} = s.useContext(Le);
|
|
1355
1400
|
return t == null ? null : /* @__PURE__ */ s.createElement(s.Fragment, null, /* @__PURE__ */ s.createElement("div", {
|
|
1356
1401
|
className: n,
|
|
1357
1402
|
style: r
|
|
1358
|
-
}, t),
|
|
1403
|
+
}, t), a < d && o && /* @__PURE__ */ s.createElement("span", {
|
|
1359
1404
|
className: `${n}-split`
|
|
1360
|
-
},
|
|
1405
|
+
}, o));
|
|
1361
1406
|
};
|
|
1362
|
-
var
|
|
1363
|
-
var
|
|
1407
|
+
var rt = function(e, n) {
|
|
1408
|
+
var a = {};
|
|
1364
1409
|
for (var t in e)
|
|
1365
|
-
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (
|
|
1410
|
+
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
|
|
1366
1411
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1367
|
-
for (var
|
|
1368
|
-
n.indexOf(t[
|
|
1369
|
-
return
|
|
1412
|
+
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
1413
|
+
n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
|
|
1414
|
+
return a;
|
|
1370
1415
|
};
|
|
1371
|
-
const
|
|
1372
|
-
var
|
|
1416
|
+
const lt = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
1417
|
+
var a, t;
|
|
1373
1418
|
const {
|
|
1374
|
-
getPrefixCls:
|
|
1419
|
+
getPrefixCls: o,
|
|
1375
1420
|
space: r,
|
|
1376
1421
|
direction: d
|
|
1377
1422
|
} = s.useContext(W), {
|
|
1378
|
-
size:
|
|
1423
|
+
size: i = (r == null ? void 0 : r.size) || "small",
|
|
1379
1424
|
align: c,
|
|
1380
1425
|
className: l,
|
|
1381
1426
|
rootClassName: h,
|
|
1382
1427
|
children: u,
|
|
1383
1428
|
direction: C = "horizontal",
|
|
1384
|
-
prefixCls:
|
|
1429
|
+
prefixCls: f,
|
|
1385
1430
|
split: O,
|
|
1386
|
-
style:
|
|
1431
|
+
style: v,
|
|
1387
1432
|
wrap: p = !1,
|
|
1388
1433
|
classNames: I,
|
|
1389
|
-
styles:
|
|
1390
|
-
} = e, S =
|
|
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, {
|
|
1391
1436
|
keepEmpty: !0
|
|
1392
|
-
}),
|
|
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}`, {
|
|
1393
1438
|
[`${P}-rtl`]: d === "rtl",
|
|
1394
|
-
[`${P}-align-${
|
|
1439
|
+
[`${P}-align-${$}`]: $,
|
|
1395
1440
|
[`${P}-gap-row-${x}`]: g,
|
|
1396
|
-
[`${P}-gap-col-${
|
|
1397
|
-
}, l, h, z),
|
|
1398
|
-
let
|
|
1399
|
-
const
|
|
1400
|
-
var
|
|
1401
|
-
|
|
1402
|
-
const
|
|
1403
|
-
return /* @__PURE__ */ s.createElement(
|
|
1404
|
-
className:
|
|
1405
|
-
key:
|
|
1406
|
-
index:
|
|
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,
|
|
1407
1452
|
split: O,
|
|
1408
|
-
style: (
|
|
1409
|
-
},
|
|
1410
|
-
}),
|
|
1411
|
-
latestIndex:
|
|
1412
|
-
}), [
|
|
1413
|
-
if (
|
|
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)
|
|
1414
1459
|
return null;
|
|
1415
1460
|
const Z = {};
|
|
1416
|
-
return p && (Z.flexWrap = "wrap"), !
|
|
1461
|
+
return p && (Z.flexWrap = "wrap"), !N && w && (Z.columnGap = b), !g && m && (Z.rowGap = x), D(/* @__PURE__ */ s.createElement("div", Object.assign({
|
|
1417
1462
|
ref: n,
|
|
1418
1463
|
className: A,
|
|
1419
|
-
style: Object.assign(Object.assign(Object.assign({}, Z), r == null ? void 0 : r.style),
|
|
1420
|
-
}, S), /* @__PURE__ */ s.createElement(
|
|
1421
|
-
value:
|
|
1422
|
-
},
|
|
1423
|
-
}),
|
|
1424
|
-
|
|
1425
|
-
process.env.NODE_ENV !== "production" && (
|
|
1426
|
-
var
|
|
1427
|
-
var
|
|
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, {
|
|
1428
1473
|
value: d,
|
|
1429
|
-
defaultValue:
|
|
1430
|
-
}), I =
|
|
1431
|
-
function
|
|
1432
|
-
var
|
|
1433
|
-
return c || (
|
|
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;
|
|
1434
1479
|
}
|
|
1435
|
-
function x(
|
|
1436
|
-
|
|
1480
|
+
function x(m) {
|
|
1481
|
+
m.which === te.LEFT ? b(!1, m) : m.which === te.RIGHT && b(!0, m), O == null || O(m);
|
|
1437
1482
|
}
|
|
1438
|
-
function g(
|
|
1439
|
-
var w =
|
|
1440
|
-
C == null || C(w,
|
|
1483
|
+
function g(m) {
|
|
1484
|
+
var w = b(!y, m);
|
|
1485
|
+
C == null || C(w, m);
|
|
1441
1486
|
}
|
|
1442
|
-
var
|
|
1443
|
-
return /* @__PURE__ */ s.createElement("button",
|
|
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, {
|
|
1444
1489
|
type: "button",
|
|
1445
1490
|
role: "switch",
|
|
1446
|
-
"aria-checked":
|
|
1491
|
+
"aria-checked": y,
|
|
1447
1492
|
disabled: c,
|
|
1448
|
-
className:
|
|
1493
|
+
className: N,
|
|
1449
1494
|
ref: n,
|
|
1450
1495
|
onKeyDown: x,
|
|
1451
1496
|
onClick: g
|
|
1452
1497
|
}), l, /* @__PURE__ */ s.createElement("span", {
|
|
1453
|
-
className: "".concat(
|
|
1498
|
+
className: "".concat(o, "-inner")
|
|
1454
1499
|
}, /* @__PURE__ */ s.createElement("span", {
|
|
1455
|
-
className: "".concat(
|
|
1500
|
+
className: "".concat(o, "-inner-checked")
|
|
1456
1501
|
}, h), /* @__PURE__ */ s.createElement("span", {
|
|
1457
|
-
className: "".concat(
|
|
1502
|
+
className: "".concat(o, "-inner-unchecked")
|
|
1458
1503
|
}, u)));
|
|
1459
1504
|
});
|
|
1460
|
-
|
|
1461
|
-
const
|
|
1505
|
+
Ve.displayName = "Switch";
|
|
1506
|
+
const st = (e) => {
|
|
1462
1507
|
const {
|
|
1463
1508
|
componentCls: n,
|
|
1464
|
-
trackHeightSM:
|
|
1509
|
+
trackHeightSM: a,
|
|
1465
1510
|
trackPadding: t,
|
|
1466
|
-
trackMinWidthSM:
|
|
1511
|
+
trackMinWidthSM: o,
|
|
1467
1512
|
innerMinMarginSM: r,
|
|
1468
1513
|
innerMaxMarginSM: d,
|
|
1469
|
-
handleSizeSM:
|
|
1514
|
+
handleSizeSM: i,
|
|
1470
1515
|
calc: c
|
|
1471
|
-
} = e, l = `${n}-inner`, h = M(c(
|
|
1516
|
+
} = e, l = `${n}-inner`, h = M(c(i).add(c(t).mul(2)).equal()), u = M(c(d).mul(2).equal());
|
|
1472
1517
|
return {
|
|
1473
1518
|
[n]: {
|
|
1474
1519
|
[`&${n}-small`]: {
|
|
1475
|
-
minWidth:
|
|
1476
|
-
height:
|
|
1477
|
-
lineHeight: M(
|
|
1520
|
+
minWidth: o,
|
|
1521
|
+
height: a,
|
|
1522
|
+
lineHeight: M(a),
|
|
1478
1523
|
[`${n}-inner`]: {
|
|
1479
1524
|
paddingInlineStart: d,
|
|
1480
1525
|
paddingInlineEnd: r,
|
|
1481
1526
|
[`${l}-checked, ${l}-unchecked`]: {
|
|
1482
|
-
minHeight:
|
|
1527
|
+
minHeight: a
|
|
1483
1528
|
},
|
|
1484
1529
|
[`${l}-checked`]: {
|
|
1485
1530
|
marginInlineStart: `calc(-100% + ${h} - ${u})`,
|
|
1486
1531
|
marginInlineEnd: `calc(100% - ${h} + ${u})`
|
|
1487
1532
|
},
|
|
1488
1533
|
[`${l}-unchecked`]: {
|
|
1489
|
-
marginTop: c(
|
|
1534
|
+
marginTop: c(a).mul(-1).equal(),
|
|
1490
1535
|
marginInlineStart: 0,
|
|
1491
1536
|
marginInlineEnd: 0
|
|
1492
1537
|
}
|
|
1493
1538
|
},
|
|
1494
1539
|
[`${n}-handle`]: {
|
|
1495
|
-
width:
|
|
1496
|
-
height:
|
|
1540
|
+
width: i,
|
|
1541
|
+
height: i
|
|
1497
1542
|
},
|
|
1498
1543
|
[`${n}-loading-icon`]: {
|
|
1499
|
-
top: c(c(
|
|
1544
|
+
top: c(c(i).sub(e.switchLoadingIconSize)).div(2).equal(),
|
|
1500
1545
|
fontSize: e.switchLoadingIconSize
|
|
1501
1546
|
},
|
|
1502
1547
|
[`&${n}-checked`]: {
|
|
@@ -1513,7 +1558,7 @@ const nt = (e) => {
|
|
|
1513
1558
|
}
|
|
1514
1559
|
},
|
|
1515
1560
|
[`${n}-handle`]: {
|
|
1516
|
-
insetInlineStart: `calc(100% - ${M(c(
|
|
1561
|
+
insetInlineStart: `calc(100% - ${M(c(i).add(t).equal())})`
|
|
1517
1562
|
}
|
|
1518
1563
|
},
|
|
1519
1564
|
[`&:not(${n}-disabled):active`]: {
|
|
@@ -1533,17 +1578,17 @@ const nt = (e) => {
|
|
|
1533
1578
|
}
|
|
1534
1579
|
}
|
|
1535
1580
|
};
|
|
1536
|
-
},
|
|
1581
|
+
}, dt = (e) => {
|
|
1537
1582
|
const {
|
|
1538
1583
|
componentCls: n,
|
|
1539
|
-
handleSize:
|
|
1584
|
+
handleSize: a,
|
|
1540
1585
|
calc: t
|
|
1541
1586
|
} = e;
|
|
1542
1587
|
return {
|
|
1543
1588
|
[n]: {
|
|
1544
1589
|
[`${n}-loading-icon${e.iconCls}`]: {
|
|
1545
1590
|
position: "relative",
|
|
1546
|
-
top: t(t(
|
|
1591
|
+
top: t(t(a).sub(e.fontSize)).div(2).equal(),
|
|
1547
1592
|
color: e.switchLoadingIconColor,
|
|
1548
1593
|
verticalAlign: "top"
|
|
1549
1594
|
},
|
|
@@ -1552,21 +1597,21 @@ const nt = (e) => {
|
|
|
1552
1597
|
}
|
|
1553
1598
|
}
|
|
1554
1599
|
};
|
|
1555
|
-
},
|
|
1600
|
+
}, ut = (e) => {
|
|
1556
1601
|
const {
|
|
1557
1602
|
componentCls: n,
|
|
1558
|
-
trackPadding:
|
|
1603
|
+
trackPadding: a,
|
|
1559
1604
|
handleBg: t,
|
|
1560
|
-
handleShadow:
|
|
1605
|
+
handleShadow: o,
|
|
1561
1606
|
handleSize: r,
|
|
1562
1607
|
calc: d
|
|
1563
|
-
} = e,
|
|
1608
|
+
} = e, i = `${n}-handle`;
|
|
1564
1609
|
return {
|
|
1565
1610
|
[n]: {
|
|
1566
|
-
[
|
|
1611
|
+
[i]: {
|
|
1567
1612
|
position: "absolute",
|
|
1568
|
-
top:
|
|
1569
|
-
insetInlineStart:
|
|
1613
|
+
top: a,
|
|
1614
|
+
insetInlineStart: a,
|
|
1570
1615
|
width: r,
|
|
1571
1616
|
height: r,
|
|
1572
1617
|
transition: `all ${e.switchDuration} ease-in-out`,
|
|
@@ -1578,36 +1623,36 @@ const nt = (e) => {
|
|
|
1578
1623
|
insetInlineStart: 0,
|
|
1579
1624
|
backgroundColor: t,
|
|
1580
1625
|
borderRadius: d(r).div(2).equal(),
|
|
1581
|
-
boxShadow:
|
|
1626
|
+
boxShadow: o,
|
|
1582
1627
|
transition: `all ${e.switchDuration} ease-in-out`,
|
|
1583
1628
|
content: '""'
|
|
1584
1629
|
}
|
|
1585
1630
|
},
|
|
1586
|
-
[`&${n}-checked ${
|
|
1587
|
-
insetInlineStart: `calc(100% - ${M(d(r).add(
|
|
1631
|
+
[`&${n}-checked ${i}`]: {
|
|
1632
|
+
insetInlineStart: `calc(100% - ${M(d(r).add(a).equal())})`
|
|
1588
1633
|
},
|
|
1589
1634
|
[`&:not(${n}-disabled):active`]: {
|
|
1590
|
-
[`${
|
|
1635
|
+
[`${i}::before`]: {
|
|
1591
1636
|
insetInlineEnd: e.switchHandleActiveInset,
|
|
1592
1637
|
insetInlineStart: 0
|
|
1593
1638
|
},
|
|
1594
|
-
[`&${n}-checked ${
|
|
1639
|
+
[`&${n}-checked ${i}::before`]: {
|
|
1595
1640
|
insetInlineEnd: 0,
|
|
1596
1641
|
insetInlineStart: e.switchHandleActiveInset
|
|
1597
1642
|
}
|
|
1598
1643
|
}
|
|
1599
1644
|
}
|
|
1600
1645
|
};
|
|
1601
|
-
},
|
|
1646
|
+
}, ht = (e) => {
|
|
1602
1647
|
const {
|
|
1603
1648
|
componentCls: n,
|
|
1604
|
-
trackHeight:
|
|
1649
|
+
trackHeight: a,
|
|
1605
1650
|
trackPadding: t,
|
|
1606
|
-
innerMinMargin:
|
|
1651
|
+
innerMinMargin: o,
|
|
1607
1652
|
innerMaxMargin: r,
|
|
1608
1653
|
handleSize: d,
|
|
1609
|
-
calc:
|
|
1610
|
-
} = e, c = `${n}-inner`, l = M(
|
|
1654
|
+
calc: i
|
|
1655
|
+
} = e, c = `${n}-inner`, l = M(i(d).add(i(t).mul(2)).equal()), h = M(i(r).mul(2).equal());
|
|
1611
1656
|
return {
|
|
1612
1657
|
[n]: {
|
|
1613
1658
|
[c]: {
|
|
@@ -1616,7 +1661,7 @@ const nt = (e) => {
|
|
|
1616
1661
|
borderRadius: 100,
|
|
1617
1662
|
height: "100%",
|
|
1618
1663
|
paddingInlineStart: r,
|
|
1619
|
-
paddingInlineEnd:
|
|
1664
|
+
paddingInlineEnd: o,
|
|
1620
1665
|
transition: `padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,
|
|
1621
1666
|
[`${c}-checked, ${c}-unchecked`]: {
|
|
1622
1667
|
display: "block",
|
|
@@ -1624,20 +1669,20 @@ const nt = (e) => {
|
|
|
1624
1669
|
fontSize: e.fontSizeSM,
|
|
1625
1670
|
transition: `margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,
|
|
1626
1671
|
pointerEvents: "none",
|
|
1627
|
-
minHeight:
|
|
1672
|
+
minHeight: a
|
|
1628
1673
|
},
|
|
1629
1674
|
[`${c}-checked`]: {
|
|
1630
1675
|
marginInlineStart: `calc(-100% + ${l} - ${h})`,
|
|
1631
1676
|
marginInlineEnd: `calc(100% - ${l} + ${h})`
|
|
1632
1677
|
},
|
|
1633
1678
|
[`${c}-unchecked`]: {
|
|
1634
|
-
marginTop: a
|
|
1679
|
+
marginTop: i(a).mul(-1).equal(),
|
|
1635
1680
|
marginInlineStart: 0,
|
|
1636
1681
|
marginInlineEnd: 0
|
|
1637
1682
|
}
|
|
1638
1683
|
},
|
|
1639
1684
|
[`&${n}-checked ${c}`]: {
|
|
1640
|
-
paddingInlineStart:
|
|
1685
|
+
paddingInlineStart: o,
|
|
1641
1686
|
paddingInlineEnd: r,
|
|
1642
1687
|
[`${c}-checked`]: {
|
|
1643
1688
|
marginInlineStart: 0,
|
|
@@ -1651,23 +1696,23 @@ const nt = (e) => {
|
|
|
1651
1696
|
[`&:not(${n}-disabled):active`]: {
|
|
1652
1697
|
[`&:not(${n}-checked) ${c}`]: {
|
|
1653
1698
|
[`${c}-unchecked`]: {
|
|
1654
|
-
marginInlineStart:
|
|
1655
|
-
marginInlineEnd:
|
|
1699
|
+
marginInlineStart: i(t).mul(2).equal(),
|
|
1700
|
+
marginInlineEnd: i(t).mul(-1).mul(2).equal()
|
|
1656
1701
|
}
|
|
1657
1702
|
},
|
|
1658
1703
|
[`&${n}-checked ${c}`]: {
|
|
1659
1704
|
[`${c}-checked`]: {
|
|
1660
|
-
marginInlineStart:
|
|
1661
|
-
marginInlineEnd:
|
|
1705
|
+
marginInlineStart: i(t).mul(-1).mul(2).equal(),
|
|
1706
|
+
marginInlineEnd: i(t).mul(2).equal()
|
|
1662
1707
|
}
|
|
1663
1708
|
}
|
|
1664
1709
|
}
|
|
1665
1710
|
}
|
|
1666
1711
|
};
|
|
1667
|
-
},
|
|
1712
|
+
}, gt = (e) => {
|
|
1668
1713
|
const {
|
|
1669
1714
|
componentCls: n,
|
|
1670
|
-
trackHeight:
|
|
1715
|
+
trackHeight: a,
|
|
1671
1716
|
trackMinWidth: t
|
|
1672
1717
|
} = e;
|
|
1673
1718
|
return {
|
|
@@ -1676,8 +1721,8 @@ const nt = (e) => {
|
|
|
1676
1721
|
display: "inline-block",
|
|
1677
1722
|
boxSizing: "border-box",
|
|
1678
1723
|
minWidth: t,
|
|
1679
|
-
height:
|
|
1680
|
-
lineHeight: `${M(
|
|
1724
|
+
height: a,
|
|
1725
|
+
lineHeight: `${M(a)}`,
|
|
1681
1726
|
verticalAlign: "middle",
|
|
1682
1727
|
background: e.colorTextQuaternary,
|
|
1683
1728
|
border: "0",
|
|
@@ -1688,7 +1733,7 @@ const nt = (e) => {
|
|
|
1688
1733
|
[`&:hover:not(${n}-disabled)`]: {
|
|
1689
1734
|
background: e.colorTextTertiary
|
|
1690
1735
|
}
|
|
1691
|
-
}),
|
|
1736
|
+
}), cn(e)), {
|
|
1692
1737
|
[`&${n}-checked`]: {
|
|
1693
1738
|
background: e.switchColor,
|
|
1694
1739
|
[`&:hover:not(${n}-disabled)`]: {
|
|
@@ -1709,30 +1754,30 @@ const nt = (e) => {
|
|
|
1709
1754
|
}
|
|
1710
1755
|
})
|
|
1711
1756
|
};
|
|
1712
|
-
},
|
|
1757
|
+
}, mt = (e) => {
|
|
1713
1758
|
const {
|
|
1714
1759
|
fontSize: n,
|
|
1715
|
-
lineHeight:
|
|
1760
|
+
lineHeight: a,
|
|
1716
1761
|
controlHeight: t,
|
|
1717
|
-
colorWhite:
|
|
1718
|
-
} = e, r = n *
|
|
1762
|
+
colorWhite: o
|
|
1763
|
+
} = e, r = n * a, d = t / 2, i = 2, c = r - i * 2, l = d - i * 2;
|
|
1719
1764
|
return {
|
|
1720
1765
|
trackHeight: r,
|
|
1721
1766
|
trackHeightSM: d,
|
|
1722
|
-
trackMinWidth: c * 2 +
|
|
1723
|
-
trackMinWidthSM: l * 2 +
|
|
1724
|
-
trackPadding:
|
|
1767
|
+
trackMinWidth: c * 2 + i * 4,
|
|
1768
|
+
trackMinWidthSM: l * 2 + i * 2,
|
|
1769
|
+
trackPadding: i,
|
|
1725
1770
|
// Fixed value
|
|
1726
|
-
handleBg:
|
|
1771
|
+
handleBg: o,
|
|
1727
1772
|
handleSize: c,
|
|
1728
1773
|
handleSizeSM: l,
|
|
1729
|
-
handleShadow: `0 2px 4px 0 ${new
|
|
1774
|
+
handleShadow: `0 2px 4px 0 ${new sn("#00230b").setAlpha(0.2).toRgbString()}`,
|
|
1730
1775
|
innerMinMargin: c / 2,
|
|
1731
|
-
innerMaxMargin: c +
|
|
1776
|
+
innerMaxMargin: c + i + i * 2,
|
|
1732
1777
|
innerMinMarginSM: l / 2,
|
|
1733
|
-
innerMaxMarginSM: l +
|
|
1778
|
+
innerMaxMarginSM: l + i + i * 2
|
|
1734
1779
|
};
|
|
1735
|
-
},
|
|
1780
|
+
}, ft = re("Switch", (e) => {
|
|
1736
1781
|
const n = le(e, {
|
|
1737
1782
|
switchDuration: e.motionDurationMid,
|
|
1738
1783
|
switchColor: e.colorPrimary,
|
|
@@ -1742,194 +1787,201 @@ const nt = (e) => {
|
|
|
1742
1787
|
switchHandleActiveInset: "-30%"
|
|
1743
1788
|
});
|
|
1744
1789
|
return [
|
|
1745
|
-
|
|
1790
|
+
gt(n),
|
|
1746
1791
|
// inner style
|
|
1747
|
-
|
|
1792
|
+
ht(n),
|
|
1748
1793
|
// handle style
|
|
1749
|
-
|
|
1794
|
+
ut(n),
|
|
1750
1795
|
// loading style
|
|
1751
|
-
|
|
1796
|
+
dt(n),
|
|
1752
1797
|
// small style
|
|
1753
|
-
|
|
1798
|
+
st(n)
|
|
1754
1799
|
];
|
|
1755
|
-
},
|
|
1756
|
-
var
|
|
1757
|
-
var
|
|
1800
|
+
}, mt);
|
|
1801
|
+
var pt = function(e, n) {
|
|
1802
|
+
var a = {};
|
|
1758
1803
|
for (var t in e)
|
|
1759
|
-
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (
|
|
1804
|
+
Object.prototype.hasOwnProperty.call(e, t) && n.indexOf(t) < 0 && (a[t] = e[t]);
|
|
1760
1805
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
1761
|
-
for (var
|
|
1762
|
-
n.indexOf(t[
|
|
1763
|
-
return
|
|
1806
|
+
for (var o = 0, t = Object.getOwnPropertySymbols(e); o < t.length; o++)
|
|
1807
|
+
n.indexOf(t[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, t[o]) && (a[t[o]] = e[t[o]]);
|
|
1808
|
+
return a;
|
|
1764
1809
|
};
|
|
1765
|
-
const
|
|
1810
|
+
const vt = /* @__PURE__ */ s.forwardRef((e, n) => {
|
|
1766
1811
|
const {
|
|
1767
|
-
prefixCls:
|
|
1812
|
+
prefixCls: a,
|
|
1768
1813
|
size: t,
|
|
1769
|
-
disabled:
|
|
1814
|
+
disabled: o,
|
|
1770
1815
|
loading: r,
|
|
1771
1816
|
className: d,
|
|
1772
|
-
rootClassName:
|
|
1817
|
+
rootClassName: i,
|
|
1773
1818
|
style: c,
|
|
1774
1819
|
checked: l,
|
|
1775
1820
|
value: h,
|
|
1776
1821
|
defaultChecked: u,
|
|
1777
1822
|
defaultValue: C,
|
|
1778
|
-
onChange:
|
|
1779
|
-
} = e, O =
|
|
1823
|
+
onChange: f
|
|
1824
|
+
} = e, O = pt(e, ["prefixCls", "size", "disabled", "loading", "className", "rootClassName", "style", "checked", "value", "defaultChecked", "defaultValue", "onChange"]), [v, p] = J(!1, {
|
|
1780
1825
|
value: l ?? h,
|
|
1781
1826
|
defaultValue: u ?? C
|
|
1782
1827
|
}), {
|
|
1783
1828
|
getPrefixCls: I,
|
|
1784
|
-
direction:
|
|
1829
|
+
direction: y,
|
|
1785
1830
|
switch: S
|
|
1786
|
-
} = s.useContext(W),
|
|
1831
|
+
} = s.useContext(W), b = s.useContext(ke), x = (o ?? b) || r, g = I("switch", a), N = /* @__PURE__ */ s.createElement("div", {
|
|
1787
1832
|
className: `${g}-handle`
|
|
1788
|
-
}, r && /* @__PURE__ */ s.createElement(
|
|
1833
|
+
}, r && /* @__PURE__ */ s.createElement(fn, {
|
|
1789
1834
|
className: `${g}-loading-icon`
|
|
1790
|
-
})), [
|
|
1791
|
-
[`${g}-small`]:
|
|
1835
|
+
})), [m, w, k] = ft(g), $ = me(t), P = _(S == null ? void 0 : S.className, {
|
|
1836
|
+
[`${g}-small`]: $ === "small",
|
|
1792
1837
|
[`${g}-loading`]: r,
|
|
1793
|
-
[`${g}-rtl`]:
|
|
1794
|
-
}, d,
|
|
1795
|
-
p(arguments.length <= 0 ? void 0 : arguments[0]),
|
|
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);
|
|
1796
1841
|
};
|
|
1797
|
-
return
|
|
1842
|
+
return m(/* @__PURE__ */ s.createElement(Me, {
|
|
1798
1843
|
component: "Switch"
|
|
1799
|
-
}, /* @__PURE__ */ s.createElement(
|
|
1800
|
-
checked:
|
|
1844
|
+
}, /* @__PURE__ */ s.createElement(Ve, Object.assign({}, O, {
|
|
1845
|
+
checked: v,
|
|
1801
1846
|
onChange: E,
|
|
1802
1847
|
prefixCls: g,
|
|
1803
1848
|
className: P,
|
|
1804
|
-
style:
|
|
1849
|
+
style: D,
|
|
1805
1850
|
disabled: x,
|
|
1806
1851
|
ref: n,
|
|
1807
|
-
loadingIcon:
|
|
1852
|
+
loadingIcon: N
|
|
1808
1853
|
}))));
|
|
1809
|
-
}),
|
|
1810
|
-
|
|
1811
|
-
process.env.NODE_ENV !== "production" && (
|
|
1812
|
-
var
|
|
1813
|
-
return /* @__PURE__ */ s.createElement(
|
|
1814
|
-
ref:
|
|
1815
|
-
icon:
|
|
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, {
|
|
1859
|
+
ref: a,
|
|
1860
|
+
icon: bt
|
|
1861
|
+
}));
|
|
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, {
|
|
1866
|
+
ref: a,
|
|
1867
|
+
icon: yt
|
|
1816
1868
|
}));
|
|
1817
|
-
},
|
|
1818
|
-
process.env.NODE_ENV !== "production" && (
|
|
1819
|
-
var
|
|
1820
|
-
return /* @__PURE__ */ s.createElement(
|
|
1821
|
-
ref:
|
|
1822
|
-
icon:
|
|
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, {
|
|
1873
|
+
ref: a,
|
|
1874
|
+
icon: St
|
|
1823
1875
|
}));
|
|
1824
|
-
},
|
|
1825
|
-
process.env.NODE_ENV !== "production" && (
|
|
1826
|
-
var
|
|
1827
|
-
return /* @__PURE__ */ s.createElement(
|
|
1828
|
-
ref:
|
|
1829
|
-
icon:
|
|
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, {
|
|
1880
|
+
ref: a,
|
|
1881
|
+
icon: It
|
|
1830
1882
|
}));
|
|
1831
|
-
},
|
|
1832
|
-
process.env.NODE_ENV !== "production" && (
|
|
1833
|
-
var
|
|
1834
|
-
return /* @__PURE__ */ s.createElement(
|
|
1835
|
-
ref:
|
|
1836
|
-
icon:
|
|
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, {
|
|
1887
|
+
ref: a,
|
|
1888
|
+
icon: Et
|
|
1837
1889
|
}));
|
|
1838
|
-
},
|
|
1839
|
-
process.env.NODE_ENV !== "production" && (
|
|
1840
|
-
var
|
|
1841
|
-
return /* @__PURE__ */ s.createElement(
|
|
1842
|
-
ref:
|
|
1843
|
-
icon:
|
|
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
|
|
1844
1896
|
}));
|
|
1845
|
-
},
|
|
1846
|
-
process.env.NODE_ENV !== "production" && (
|
|
1847
|
-
const ee =
|
|
1848
|
-
const
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1897
|
+
}, Ge = /* @__PURE__ */ s.forwardRef(kt);
|
|
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
|
|
1855
1907
|
];
|
|
1856
|
-
return
|
|
1857
|
-
},
|
|
1858
|
-
const
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1908
|
+
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
|
|
1865
1917
|
];
|
|
1866
|
-
return
|
|
1867
|
-
},
|
|
1918
|
+
return a.indexOf(e) - a.indexOf(n);
|
|
1919
|
+
}, Ee = (e) => ({
|
|
1868
1920
|
off: "Off",
|
|
1869
1921
|
instant: "Instant",
|
|
1870
1922
|
hourly: "Hourly",
|
|
1871
1923
|
daily: "Daily",
|
|
1872
1924
|
weekly: "Weekly",
|
|
1873
1925
|
monthly: "Monthly"
|
|
1874
|
-
})[e],
|
|
1926
|
+
})[e], Oe = ({
|
|
1875
1927
|
notification: e,
|
|
1876
1928
|
preferences: n,
|
|
1877
|
-
updateDelivery:
|
|
1929
|
+
updateDelivery: a,
|
|
1878
1930
|
subNotificationId: t
|
|
1879
|
-
}) => /* @__PURE__ */ R(ne, { children: e.channels.sort(
|
|
1931
|
+
}) => /* @__PURE__ */ R(ne, { children: e.channels.sort(Pt).map((o, r) => {
|
|
1880
1932
|
const d = n.find(
|
|
1881
|
-
(u) => u.notificationId === e.notificationId && u.channel ===
|
|
1933
|
+
(u) => u.notificationId === e.notificationId && u.channel === o
|
|
1882
1934
|
);
|
|
1883
1935
|
if (!d)
|
|
1884
1936
|
return null;
|
|
1885
|
-
let
|
|
1886
|
-
const l = Object.keys(e.options[
|
|
1937
|
+
let i = Mt(o), c = zt(o);
|
|
1938
|
+
const l = Object.keys(e.options[o]).filter(
|
|
1887
1939
|
(u) => u !== "defaultDeliveryOption" && u !== "defaultDeliverOption"
|
|
1888
1940
|
);
|
|
1889
1941
|
let h;
|
|
1890
|
-
return l.length === 1 ? h = /* @__PURE__ */ R(ee, { children:
|
|
1891
|
-
|
|
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,
|
|
1892
1944
|
{
|
|
1893
|
-
checked: d.delivery !==
|
|
1945
|
+
checked: d.delivery !== T.OFF,
|
|
1894
1946
|
onChange: (u) => {
|
|
1895
1947
|
if (u) {
|
|
1896
1948
|
const C = l.find(
|
|
1897
|
-
(
|
|
1949
|
+
(f) => f !== T.OFF
|
|
1898
1950
|
);
|
|
1899
|
-
|
|
1951
|
+
a(
|
|
1900
1952
|
e.notificationId,
|
|
1901
|
-
|
|
1953
|
+
o,
|
|
1902
1954
|
C,
|
|
1903
1955
|
t
|
|
1904
1956
|
);
|
|
1905
1957
|
} else
|
|
1906
|
-
|
|
1958
|
+
a(
|
|
1907
1959
|
e.notificationId,
|
|
1908
|
-
|
|
1909
|
-
|
|
1960
|
+
o,
|
|
1961
|
+
T.OFF,
|
|
1910
1962
|
t
|
|
1911
1963
|
);
|
|
1912
1964
|
}
|
|
1913
1965
|
}
|
|
1914
|
-
) : h = /* @__PURE__ */
|
|
1966
|
+
) : h = /* @__PURE__ */ K(ne, { children: [
|
|
1915
1967
|
/* @__PURE__ */ R(
|
|
1916
|
-
|
|
1968
|
+
oe,
|
|
1917
1969
|
{
|
|
1918
|
-
checked: d.delivery !==
|
|
1970
|
+
checked: d.delivery !== T.OFF,
|
|
1919
1971
|
onChange: (u) => {
|
|
1920
1972
|
if (u) {
|
|
1921
|
-
const C = l.sort(
|
|
1922
|
-
|
|
1973
|
+
const C = l.sort(we).find((f) => f !== T.OFF);
|
|
1974
|
+
a(
|
|
1923
1975
|
e.notificationId,
|
|
1924
|
-
|
|
1976
|
+
o,
|
|
1925
1977
|
C,
|
|
1926
1978
|
t
|
|
1927
1979
|
);
|
|
1928
1980
|
} else
|
|
1929
|
-
|
|
1981
|
+
a(
|
|
1930
1982
|
e.notificationId,
|
|
1931
|
-
|
|
1932
|
-
|
|
1983
|
+
o,
|
|
1984
|
+
T.OFF,
|
|
1933
1985
|
t
|
|
1934
1986
|
);
|
|
1935
1987
|
}
|
|
@@ -1941,32 +1993,32 @@ const ee = gn.Text, $t = (e, n) => {
|
|
|
1941
1993
|
style: {
|
|
1942
1994
|
width: "100%",
|
|
1943
1995
|
marginTop: 8,
|
|
1944
|
-
maxHeight: d.delivery !==
|
|
1996
|
+
maxHeight: d.delivery !== T.OFF ? 1e3 : 0,
|
|
1945
1997
|
overflow: "hidden",
|
|
1946
1998
|
transition: "max-height 0.3s ease"
|
|
1947
1999
|
},
|
|
1948
|
-
children: /* @__PURE__ */
|
|
2000
|
+
children: /* @__PURE__ */ K("div", { children: [
|
|
1949
2001
|
/* @__PURE__ */ R("div", { style: { marginTop: 20 }, children: /* @__PURE__ */ R(ee, { strong: !0, children: "Choose frequency:" }) }),
|
|
1950
2002
|
/* @__PURE__ */ R(
|
|
1951
|
-
|
|
2003
|
+
Q.Group,
|
|
1952
2004
|
{
|
|
1953
2005
|
value: d.delivery,
|
|
1954
2006
|
onChange: (u) => {
|
|
1955
|
-
|
|
2007
|
+
a(
|
|
1956
2008
|
e.notificationId,
|
|
1957
|
-
|
|
2009
|
+
o,
|
|
1958
2010
|
u.target.value,
|
|
1959
2011
|
t
|
|
1960
2012
|
);
|
|
1961
2013
|
},
|
|
1962
|
-
children: /* @__PURE__ */ R(
|
|
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)) })
|
|
1963
2015
|
}
|
|
1964
2016
|
)
|
|
1965
2017
|
] })
|
|
1966
2018
|
}
|
|
1967
2019
|
)
|
|
1968
|
-
] }), /* @__PURE__ */
|
|
1969
|
-
/* @__PURE__ */
|
|
2020
|
+
] }), /* @__PURE__ */ K("div", { children: [
|
|
2021
|
+
/* @__PURE__ */ K(
|
|
1970
2022
|
"div",
|
|
1971
2023
|
{
|
|
1972
2024
|
style: {
|
|
@@ -1977,74 +2029,74 @@ const ee = gn.Text, $t = (e, n) => {
|
|
|
1977
2029
|
marginBottom: r === e.channels.length - 1 ? 12 : 0
|
|
1978
2030
|
},
|
|
1979
2031
|
children: [
|
|
1980
|
-
/* @__PURE__ */
|
|
2032
|
+
/* @__PURE__ */ K(ee, { children: [
|
|
1981
2033
|
c,
|
|
1982
2034
|
" ",
|
|
1983
|
-
|
|
2035
|
+
i
|
|
1984
2036
|
] }),
|
|
1985
2037
|
h
|
|
1986
2038
|
]
|
|
1987
2039
|
},
|
|
1988
|
-
|
|
2040
|
+
o
|
|
1989
2041
|
),
|
|
1990
|
-
r !== e.channels.length - 1 && /* @__PURE__ */ R(
|
|
1991
|
-
] },
|
|
1992
|
-
}) }),
|
|
2042
|
+
r !== e.channels.length - 1 && /* @__PURE__ */ R(He, {})
|
|
2043
|
+
] }, o);
|
|
2044
|
+
}) }), Mt = (e) => ({
|
|
1993
2045
|
EMAIL: "Email",
|
|
1994
2046
|
INAPP_WEB: "In-App",
|
|
1995
2047
|
SMS: "Text",
|
|
1996
2048
|
CALL: "Automated Calling",
|
|
1997
2049
|
PUSH: "Mobile",
|
|
1998
2050
|
WEB_PUSH: "Browser"
|
|
1999
|
-
})[e],
|
|
2051
|
+
})[e], zt = (e) => {
|
|
2000
2052
|
switch (e) {
|
|
2001
|
-
case
|
|
2002
|
-
return /* @__PURE__ */ R(
|
|
2003
|
-
case
|
|
2004
|
-
return /* @__PURE__ */ R(
|
|
2005
|
-
case
|
|
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:
|
|
2006
2062
|
return /* @__PURE__ */ R(We, { style: { color: q.primary } });
|
|
2007
|
-
case
|
|
2063
|
+
case H.WEB_PUSH:
|
|
2008
2064
|
return /* @__PURE__ */ R(qe, { style: { color: q.primary } });
|
|
2009
|
-
case T.INAPP_WEB:
|
|
2010
|
-
return /* @__PURE__ */ R(mn, { style: { color: q.primary } });
|
|
2011
|
-
case T.WEB_PUSH:
|
|
2012
|
-
return /* @__PURE__ */ R(Le, { style: { color: q.primary } });
|
|
2013
2065
|
default:
|
|
2014
|
-
return /* @__PURE__ */ R(
|
|
2066
|
+
return /* @__PURE__ */ R(ge, { style: { color: q.primary } });
|
|
2015
2067
|
}
|
|
2016
2068
|
};
|
|
2017
|
-
function
|
|
2018
|
-
const e = Qe
|
|
2069
|
+
function jt() {
|
|
2070
|
+
const e = en(Qe);
|
|
2019
2071
|
if (!e || !e.preferences)
|
|
2020
2072
|
return null;
|
|
2021
2073
|
const n = e.preferences.notifications.map(
|
|
2022
|
-
(
|
|
2023
|
-
var d,
|
|
2074
|
+
(a) => {
|
|
2075
|
+
var d, i, c;
|
|
2024
2076
|
const t = (d = e.preferences) == null ? void 0 : d.preferences.filter(
|
|
2025
|
-
(l) => l.notificationId ===
|
|
2026
|
-
),
|
|
2027
|
-
(l) => l.notificationId ===
|
|
2077
|
+
(l) => l.notificationId === a.notificationId && !l.subNotificationId
|
|
2078
|
+
), o = (i = e.preferences) == null ? void 0 : i.preferences.filter(
|
|
2079
|
+
(l) => l.notificationId === a.notificationId && l.subNotificationId
|
|
2028
2080
|
), r = (c = e.preferences) == null ? void 0 : c.subNotifications.filter(
|
|
2029
|
-
(l) =>
|
|
2081
|
+
(l) => o == null ? void 0 : o.find(
|
|
2030
2082
|
(h) => h.subNotificationId === l.subNotificationId
|
|
2031
2083
|
)
|
|
2032
2084
|
);
|
|
2033
2085
|
return {
|
|
2034
|
-
label:
|
|
2035
|
-
key:
|
|
2036
|
-
children: /* @__PURE__ */
|
|
2086
|
+
label: a.title,
|
|
2087
|
+
key: a.notificationId,
|
|
2088
|
+
children: /* @__PURE__ */ K(ne, { children: [
|
|
2037
2089
|
/* @__PURE__ */ R(
|
|
2038
|
-
|
|
2090
|
+
Oe,
|
|
2039
2091
|
{
|
|
2040
|
-
notification:
|
|
2092
|
+
notification: a,
|
|
2041
2093
|
preferences: t || [],
|
|
2042
2094
|
updateDelivery: e.updateDelivery
|
|
2043
2095
|
},
|
|
2044
|
-
|
|
2096
|
+
a.notificationId
|
|
2045
2097
|
),
|
|
2046
2098
|
r == null ? void 0 : r.map((l) => /* @__PURE__ */ R(
|
|
2047
|
-
|
|
2099
|
+
Se,
|
|
2048
2100
|
{
|
|
2049
2101
|
bordered: !1,
|
|
2050
2102
|
items: [
|
|
@@ -2052,10 +2104,10 @@ function Nt() {
|
|
|
2052
2104
|
label: l.title,
|
|
2053
2105
|
key: l.subNotificationId,
|
|
2054
2106
|
children: /* @__PURE__ */ R(
|
|
2055
|
-
|
|
2107
|
+
Oe,
|
|
2056
2108
|
{
|
|
2057
|
-
notification:
|
|
2058
|
-
preferences:
|
|
2109
|
+
notification: a,
|
|
2110
|
+
preferences: o || [],
|
|
2059
2111
|
updateDelivery: e.updateDelivery,
|
|
2060
2112
|
subNotificationId: l.subNotificationId
|
|
2061
2113
|
},
|
|
@@ -2071,11 +2123,14 @@ function Nt() {
|
|
|
2071
2123
|
};
|
|
2072
2124
|
}
|
|
2073
2125
|
);
|
|
2074
|
-
return /* @__PURE__ */ R(ne, { children: /* @__PURE__ */ R(
|
|
2126
|
+
return /* @__PURE__ */ R(ne, { children: /* @__PURE__ */ R(Se, { items: n, defaultActiveKey: [] }) });
|
|
2075
2127
|
}
|
|
2076
2128
|
export {
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
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
|
|
2081
2136
|
};
|