onchain-uikit 0.0.2 → 0.0.6
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/.storybook/preview.tsx +31 -0
- package/config/theme.ts +34 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.es.js +581 -311
- package/dist/index.umd.js +30 -0
- package/dist/src/App.d.ts +5 -0
- package/dist/src/components/PlmMosaic/index.d.ts +5 -0
- package/dist/src/index.d.ts +3 -0
- package/dist/src/main.d.ts +0 -0
- package/dist/src/stories/Button.d.ts +14 -0
- package/dist/src/stories/Button.stories.d.ts +23 -0
- package/dist/src/stories/Header.d.ts +11 -0
- package/dist/src/stories/Header.stories.d.ts +18 -0
- package/dist/src/stories/OnChainProvider.d.ts +12 -0
- package/dist/src/stories/Page.d.ts +2 -0
- package/dist/src/stories/Page.stories.d.ts +12 -0
- package/dist/src/stories/PlmMosaic.stories.d.ts +14 -0
- package/dist/src/stories/PlmSelect/PlmSelect.stories.d.ts +21 -0
- package/dist/src/stories/PlmSelect/index.d.ts +20 -0
- package/dist/src/stories/XsButton.d.ts +22 -0
- package/dist/src/stories/XsButton.stories.d.ts +14 -0
- package/dist/src/utils/authority/basicsAuthority.d.ts +22 -0
- package/dist/src/utils/authority/index.d.ts +10 -0
- package/dist/vite.config.d.ts +2 -0
- package/package.json +23 -3
- package/src/App.tsx +30 -7
- package/src/assets/styles/antd.custom.less +1144 -0
- package/src/assets/styles/mixins.less +5 -0
- package/src/components/PlmMosaic/index.module.less +6 -0
- package/src/components/PlmMosaic/index.tsx +15 -0
- package/src/global.less +973 -0
- package/src/index.ts +5 -2
- package/src/main.tsx +7 -4
- package/src/stories/OnChainProvider.tsx +37 -0
- package/src/stories/PlmMosaic.stories.ts +35 -0
- package/src/stories/PlmSelect/PlmSelect.stories.ts +50 -0
- package/src/stories/PlmSelect/index.module.less +73 -0
- package/src/stories/PlmSelect/index.tsx +136 -0
- package/src/stories/XsButton.stories.ts +30 -0
- package/src/stories/XsButton.tsx +33 -0
- package/src/typings.d.ts +636 -0
- package/src/utils/authority/basicsAuthority.ts +46 -0
- package/src/utils/authority/index.tsx +28 -0
- package/tsconfig.json +84 -5
- package/typings.d.ts +130 -0
- package/vite.config.ts +63 -5
- package/.storybook/preview.ts +0 -14
- package/dist/index.cjs.js +0 -30
- package/dist/onchain-uikit.css +0 -1
package/dist/index.es.js
CHANGED
|
@@ -1,5 +1,289 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { ConfigProvider as ke, Button as $r } from "antd";
|
|
2
|
+
import ne from "react";
|
|
3
|
+
function Sr(n) {
|
|
4
|
+
return n && n.__esModule && Object.prototype.hasOwnProperty.call(n, "default") ? n.default : n;
|
|
5
|
+
}
|
|
6
|
+
var N = {}, ae = { exports: {} }, De;
|
|
7
|
+
function oe() {
|
|
8
|
+
return De || (De = 1, function(n) {
|
|
9
|
+
function f(d) {
|
|
10
|
+
return d && d.__esModule ? d : {
|
|
11
|
+
default: d
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
n.exports = f, n.exports.__esModule = !0, n.exports.default = n.exports;
|
|
15
|
+
}(ae)), ae.exports;
|
|
16
|
+
}
|
|
17
|
+
var A = {}, Fe;
|
|
18
|
+
function jr() {
|
|
19
|
+
if (Fe) return A;
|
|
20
|
+
Fe = 1, Object.defineProperty(A, "__esModule", {
|
|
21
|
+
value: !0
|
|
22
|
+
}), A.default = void 0;
|
|
23
|
+
var n = {
|
|
24
|
+
// Options.jsx
|
|
25
|
+
items_per_page: "条/页",
|
|
26
|
+
jump_to: "跳至",
|
|
27
|
+
jump_to_confirm: "确定",
|
|
28
|
+
page: "页",
|
|
29
|
+
// Pagination.jsx
|
|
30
|
+
prev_page: "上一页",
|
|
31
|
+
next_page: "下一页",
|
|
32
|
+
prev_5: "向前 5 页",
|
|
33
|
+
next_5: "向后 5 页",
|
|
34
|
+
prev_3: "向前 3 页",
|
|
35
|
+
next_3: "向后 3 页",
|
|
36
|
+
page_size: "页码"
|
|
37
|
+
};
|
|
38
|
+
return A.default = n, A;
|
|
39
|
+
}
|
|
40
|
+
var Y = {}, I = {}, q = {}, Ne;
|
|
41
|
+
function wr() {
|
|
42
|
+
if (Ne) return q;
|
|
43
|
+
Ne = 1, Object.defineProperty(q, "__esModule", {
|
|
44
|
+
value: !0
|
|
45
|
+
}), q.default = void 0;
|
|
46
|
+
var n = {
|
|
47
|
+
locale: "zh_CN",
|
|
48
|
+
today: "今天",
|
|
49
|
+
now: "此刻",
|
|
50
|
+
backToToday: "返回今天",
|
|
51
|
+
ok: "确定",
|
|
52
|
+
timeSelect: "选择时间",
|
|
53
|
+
dateSelect: "选择日期",
|
|
54
|
+
weekSelect: "选择周",
|
|
55
|
+
clear: "清除",
|
|
56
|
+
month: "月",
|
|
57
|
+
year: "年",
|
|
58
|
+
previousMonth: "上个月 (翻页上键)",
|
|
59
|
+
nextMonth: "下个月 (翻页下键)",
|
|
60
|
+
monthSelect: "选择月份",
|
|
61
|
+
yearSelect: "选择年份",
|
|
62
|
+
decadeSelect: "选择年代",
|
|
63
|
+
yearFormat: "YYYY年",
|
|
64
|
+
dayFormat: "D日",
|
|
65
|
+
dateFormat: "YYYY年M月D日",
|
|
66
|
+
dateTimeFormat: "YYYY年M月D日 HH时mm分ss秒",
|
|
67
|
+
previousYear: "上一年 (Control键加左方向键)",
|
|
68
|
+
nextYear: "下一年 (Control键加右方向键)",
|
|
69
|
+
previousDecade: "上一年代",
|
|
70
|
+
nextDecade: "下一年代",
|
|
71
|
+
previousCentury: "上一世纪",
|
|
72
|
+
nextCentury: "下一世纪"
|
|
73
|
+
}, f = n;
|
|
74
|
+
return q.default = f, q;
|
|
75
|
+
}
|
|
76
|
+
var M = {}, Ae;
|
|
77
|
+
function Ve() {
|
|
78
|
+
if (Ae) return M;
|
|
79
|
+
Ae = 1, Object.defineProperty(M, "__esModule", {
|
|
80
|
+
value: !0
|
|
81
|
+
}), M.default = void 0;
|
|
82
|
+
var f = {
|
|
83
|
+
placeholder: "请选择时间",
|
|
84
|
+
rangePlaceholder: ["开始时间", "结束时间"]
|
|
85
|
+
};
|
|
86
|
+
return M.default = f, M;
|
|
87
|
+
}
|
|
88
|
+
var Ye;
|
|
89
|
+
function Ue() {
|
|
90
|
+
if (Ye) return I;
|
|
91
|
+
Ye = 1;
|
|
92
|
+
var n = oe().default;
|
|
93
|
+
Object.defineProperty(I, "__esModule", {
|
|
94
|
+
value: !0
|
|
95
|
+
}), I.default = void 0;
|
|
96
|
+
var f = n(wr()), d = n(/* @__PURE__ */ Ve());
|
|
97
|
+
const g = {
|
|
98
|
+
lang: Object.assign({
|
|
99
|
+
placeholder: "请选择日期",
|
|
100
|
+
yearPlaceholder: "请选择年份",
|
|
101
|
+
quarterPlaceholder: "请选择季度",
|
|
102
|
+
monthPlaceholder: "请选择月份",
|
|
103
|
+
weekPlaceholder: "请选择周",
|
|
104
|
+
rangePlaceholder: ["开始日期", "结束日期"],
|
|
105
|
+
rangeYearPlaceholder: ["开始年份", "结束年份"],
|
|
106
|
+
rangeMonthPlaceholder: ["开始月份", "结束月份"],
|
|
107
|
+
rangeQuarterPlaceholder: ["开始季度", "结束季度"],
|
|
108
|
+
rangeWeekPlaceholder: ["开始周", "结束周"]
|
|
109
|
+
}, f.default),
|
|
110
|
+
timePickerLocale: Object.assign({}, d.default)
|
|
111
|
+
};
|
|
112
|
+
g.lang.ok = "确定";
|
|
113
|
+
var C = g;
|
|
114
|
+
return I.default = C, I;
|
|
115
|
+
}
|
|
116
|
+
var Ie;
|
|
117
|
+
function kr() {
|
|
118
|
+
if (Ie) return Y;
|
|
119
|
+
Ie = 1;
|
|
120
|
+
var n = oe().default;
|
|
121
|
+
Object.defineProperty(Y, "__esModule", {
|
|
122
|
+
value: !0
|
|
123
|
+
}), Y.default = void 0;
|
|
124
|
+
var f = n(/* @__PURE__ */ Ue()), d = f.default;
|
|
125
|
+
return Y.default = d, Y;
|
|
126
|
+
}
|
|
127
|
+
var qe;
|
|
128
|
+
function Dr() {
|
|
129
|
+
if (qe) return N;
|
|
130
|
+
qe = 1;
|
|
131
|
+
var n = oe().default;
|
|
132
|
+
Object.defineProperty(N, "__esModule", {
|
|
133
|
+
value: !0
|
|
134
|
+
}), N.default = void 0;
|
|
135
|
+
var f = n(jr()), d = n(/* @__PURE__ */ kr()), g = n(/* @__PURE__ */ Ue()), C = n(/* @__PURE__ */ Ve());
|
|
136
|
+
const v = "${label}不是一个有效的${type}";
|
|
137
|
+
var R = {
|
|
138
|
+
locale: "zh-cn",
|
|
139
|
+
Pagination: f.default,
|
|
140
|
+
DatePicker: g.default,
|
|
141
|
+
TimePicker: C.default,
|
|
142
|
+
Calendar: d.default,
|
|
143
|
+
// locales for all components
|
|
144
|
+
global: {
|
|
145
|
+
placeholder: "请选择"
|
|
146
|
+
},
|
|
147
|
+
Table: {
|
|
148
|
+
filterTitle: "筛选",
|
|
149
|
+
filterConfirm: "确定",
|
|
150
|
+
filterReset: "重置",
|
|
151
|
+
filterEmptyText: "无筛选项",
|
|
152
|
+
filterCheckall: "全选",
|
|
153
|
+
filterSearchPlaceholder: "在筛选项中搜索",
|
|
154
|
+
selectAll: "全选当页",
|
|
155
|
+
selectInvert: "反选当页",
|
|
156
|
+
selectNone: "清空所有",
|
|
157
|
+
selectionAll: "全选所有",
|
|
158
|
+
sortTitle: "排序",
|
|
159
|
+
expand: "展开行",
|
|
160
|
+
collapse: "关闭行",
|
|
161
|
+
triggerDesc: "点击降序",
|
|
162
|
+
triggerAsc: "点击升序",
|
|
163
|
+
cancelSort: "取消排序"
|
|
164
|
+
},
|
|
165
|
+
Modal: {
|
|
166
|
+
okText: "确定",
|
|
167
|
+
cancelText: "取消",
|
|
168
|
+
justOkText: "知道了"
|
|
169
|
+
},
|
|
170
|
+
Tour: {
|
|
171
|
+
Next: "下一步",
|
|
172
|
+
Previous: "上一步",
|
|
173
|
+
Finish: "结束导览"
|
|
174
|
+
},
|
|
175
|
+
Popconfirm: {
|
|
176
|
+
cancelText: "取消",
|
|
177
|
+
okText: "确定"
|
|
178
|
+
},
|
|
179
|
+
Transfer: {
|
|
180
|
+
titles: ["", ""],
|
|
181
|
+
searchPlaceholder: "请输入搜索内容",
|
|
182
|
+
itemUnit: "项",
|
|
183
|
+
itemsUnit: "项",
|
|
184
|
+
remove: "删除",
|
|
185
|
+
selectCurrent: "全选当页",
|
|
186
|
+
removeCurrent: "删除当页",
|
|
187
|
+
selectAll: "全选所有",
|
|
188
|
+
removeAll: "删除全部",
|
|
189
|
+
selectInvert: "反选当页"
|
|
190
|
+
},
|
|
191
|
+
Upload: {
|
|
192
|
+
uploading: "文件上传中",
|
|
193
|
+
removeFile: "删除文件",
|
|
194
|
+
uploadError: "上传错误",
|
|
195
|
+
previewFile: "预览文件",
|
|
196
|
+
downloadFile: "下载文件"
|
|
197
|
+
},
|
|
198
|
+
Empty: {
|
|
199
|
+
description: "暂无数据"
|
|
200
|
+
},
|
|
201
|
+
Icon: {
|
|
202
|
+
icon: "图标"
|
|
203
|
+
},
|
|
204
|
+
Text: {
|
|
205
|
+
edit: "编辑",
|
|
206
|
+
copy: "复制",
|
|
207
|
+
copied: "复制成功",
|
|
208
|
+
expand: "展开"
|
|
209
|
+
},
|
|
210
|
+
PageHeader: {
|
|
211
|
+
back: "返回"
|
|
212
|
+
},
|
|
213
|
+
Form: {
|
|
214
|
+
optional: "(可选)",
|
|
215
|
+
defaultValidateMessages: {
|
|
216
|
+
default: "字段验证错误${label}",
|
|
217
|
+
required: "请输入${label}",
|
|
218
|
+
enum: "${label}必须是其中一个[${enum}]",
|
|
219
|
+
whitespace: "${label}不能为空字符",
|
|
220
|
+
date: {
|
|
221
|
+
format: "${label}日期格式无效",
|
|
222
|
+
parse: "${label}不能转换为日期",
|
|
223
|
+
invalid: "${label}是一个无效日期"
|
|
224
|
+
},
|
|
225
|
+
types: {
|
|
226
|
+
string: v,
|
|
227
|
+
method: v,
|
|
228
|
+
array: v,
|
|
229
|
+
object: v,
|
|
230
|
+
number: v,
|
|
231
|
+
date: v,
|
|
232
|
+
boolean: v,
|
|
233
|
+
integer: v,
|
|
234
|
+
float: v,
|
|
235
|
+
regexp: v,
|
|
236
|
+
email: v,
|
|
237
|
+
url: v,
|
|
238
|
+
hex: v
|
|
239
|
+
},
|
|
240
|
+
string: {
|
|
241
|
+
len: "${label}须为${len}个字符",
|
|
242
|
+
min: "${label}最少${min}个字符",
|
|
243
|
+
max: "${label}最多${max}个字符",
|
|
244
|
+
range: "${label}须在${min}-${max}字符之间"
|
|
245
|
+
},
|
|
246
|
+
number: {
|
|
247
|
+
len: "${label}必须等于${len}",
|
|
248
|
+
min: "${label}最小值为${min}",
|
|
249
|
+
max: "${label}最大值为${max}",
|
|
250
|
+
range: "${label}须在${min}-${max}之间"
|
|
251
|
+
},
|
|
252
|
+
array: {
|
|
253
|
+
len: "须为${len}个${label}",
|
|
254
|
+
min: "最少${min}个${label}",
|
|
255
|
+
max: "最多${max}个${label}",
|
|
256
|
+
range: "${label}数量须在${min}-${max}之间"
|
|
257
|
+
},
|
|
258
|
+
pattern: {
|
|
259
|
+
mismatch: "${label}与模式不匹配${pattern}"
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
Image: {
|
|
264
|
+
preview: "预览"
|
|
265
|
+
},
|
|
266
|
+
QRCode: {
|
|
267
|
+
expired: "二维码过期",
|
|
268
|
+
refresh: "点击刷新"
|
|
269
|
+
}
|
|
270
|
+
};
|
|
271
|
+
return N.default = R, N;
|
|
272
|
+
}
|
|
273
|
+
var Fr = /* @__PURE__ */ Dr();
|
|
274
|
+
const Nr = /* @__PURE__ */ Sr(Fr), zr = ({ prefixCls: n = "frontend", ...f }, d) => (ke.config({
|
|
275
|
+
prefixCls: n
|
|
276
|
+
}), ne.createElement(
|
|
277
|
+
ke,
|
|
278
|
+
{
|
|
279
|
+
prefixCls: n,
|
|
280
|
+
locale: Nr,
|
|
281
|
+
input: { autoComplete: "off" },
|
|
282
|
+
autoInsertSpaceInButton: !1
|
|
283
|
+
},
|
|
284
|
+
f.children
|
|
285
|
+
));
|
|
286
|
+
var J = { exports: {} }, W = {};
|
|
3
287
|
/**
|
|
4
288
|
* @license React
|
|
5
289
|
* react-jsx-runtime.production.min.js
|
|
@@ -9,21 +293,21 @@ var U = { exports: {} }, I = {};
|
|
|
9
293
|
* This source code is licensed under the MIT license found in the
|
|
10
294
|
* LICENSE file in the root directory of this source tree.
|
|
11
295
|
*/
|
|
12
|
-
var
|
|
13
|
-
function
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
function
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (R && R.defaultProps) for (
|
|
22
|
-
return { $$typeof:
|
|
296
|
+
var Me;
|
|
297
|
+
function Ar() {
|
|
298
|
+
if (Me) return W;
|
|
299
|
+
Me = 1;
|
|
300
|
+
var n = ne, f = Symbol.for("react.element"), d = Symbol.for("react.fragment"), g = Object.prototype.hasOwnProperty, C = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, v = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
301
|
+
function $(R, p, S) {
|
|
302
|
+
var b, E = {}, P = null, V = null;
|
|
303
|
+
S !== void 0 && (P = "" + S), p.key !== void 0 && (P = "" + p.key), p.ref !== void 0 && (V = p.ref);
|
|
304
|
+
for (b in p) g.call(p, b) && !v.hasOwnProperty(b) && (E[b] = p[b]);
|
|
305
|
+
if (R && R.defaultProps) for (b in p = R.defaultProps, p) E[b] === void 0 && (E[b] = p[b]);
|
|
306
|
+
return { $$typeof: f, type: R, key: P, ref: V, props: E, _owner: C.current };
|
|
23
307
|
}
|
|
24
|
-
return
|
|
308
|
+
return W.Fragment = d, W.jsx = $, W.jsxs = $, W;
|
|
25
309
|
}
|
|
26
|
-
var
|
|
310
|
+
var z = {};
|
|
27
311
|
/**
|
|
28
312
|
* @license React
|
|
29
313
|
* react-jsx-runtime.development.js
|
|
@@ -33,91 +317,91 @@ var $ = {};
|
|
|
33
317
|
* This source code is licensed under the MIT license found in the
|
|
34
318
|
* LICENSE file in the root directory of this source tree.
|
|
35
319
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var
|
|
40
|
-
function
|
|
320
|
+
var We;
|
|
321
|
+
function Yr() {
|
|
322
|
+
return We || (We = 1, process.env.NODE_ENV !== "production" && function() {
|
|
323
|
+
var n = ne, f = Symbol.for("react.element"), d = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), C = Symbol.for("react.strict_mode"), v = Symbol.for("react.profiler"), $ = Symbol.for("react.provider"), R = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), S = Symbol.for("react.suspense"), b = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), P = Symbol.for("react.lazy"), V = Symbol.for("react.offscreen"), ie = Symbol.iterator, Le = "@@iterator";
|
|
324
|
+
function Ze(e) {
|
|
41
325
|
if (e === null || typeof e != "object")
|
|
42
326
|
return null;
|
|
43
|
-
var r =
|
|
327
|
+
var r = ie && e[ie] || e[Le];
|
|
44
328
|
return typeof r == "function" ? r : null;
|
|
45
329
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
330
|
+
var j = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
331
|
+
function _(e) {
|
|
48
332
|
{
|
|
49
|
-
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0),
|
|
50
|
-
t[
|
|
51
|
-
|
|
333
|
+
for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), a = 1; a < r; a++)
|
|
334
|
+
t[a - 1] = arguments[a];
|
|
335
|
+
Be("error", e, t);
|
|
52
336
|
}
|
|
53
337
|
}
|
|
54
|
-
function
|
|
338
|
+
function Be(e, r, t) {
|
|
55
339
|
{
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
var u = t.map(function(
|
|
59
|
-
return String(
|
|
340
|
+
var a = j.ReactDebugCurrentFrame, l = a.getStackAddendum();
|
|
341
|
+
l !== "" && (r += "%s", t = t.concat([l]));
|
|
342
|
+
var u = t.map(function(i) {
|
|
343
|
+
return String(i);
|
|
60
344
|
});
|
|
61
345
|
u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
|
|
62
346
|
}
|
|
63
347
|
}
|
|
64
|
-
var
|
|
65
|
-
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof e == "string" || typeof e == "function" || e === g || e ===
|
|
348
|
+
var Je = !1, Ke = !1, Ge = !1, He = !1, Xe = !1, le;
|
|
349
|
+
le = Symbol.for("react.module.reference");
|
|
350
|
+
function Qe(e) {
|
|
351
|
+
return !!(typeof e == "string" || typeof e == "function" || e === g || e === v || Xe || e === C || e === S || e === b || He || e === V || Je || Ke || Ge || typeof e == "object" && e !== null && (e.$$typeof === P || e.$$typeof === E || e.$$typeof === $ || e.$$typeof === R || e.$$typeof === p || // This needs to include all possible module reference object
|
|
68
352
|
// types supported by any Flight configuration anywhere since
|
|
69
353
|
// we don't know which Flight build this will end up being used
|
|
70
354
|
// with.
|
|
71
|
-
e.$$typeof ===
|
|
355
|
+
e.$$typeof === le || e.getModuleId !== void 0));
|
|
72
356
|
}
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
var
|
|
78
|
-
return
|
|
357
|
+
function er(e, r, t) {
|
|
358
|
+
var a = e.displayName;
|
|
359
|
+
if (a)
|
|
360
|
+
return a;
|
|
361
|
+
var l = r.displayName || r.name || "";
|
|
362
|
+
return l !== "" ? t + "(" + l + ")" : t;
|
|
79
363
|
}
|
|
80
|
-
function
|
|
364
|
+
function ue(e) {
|
|
81
365
|
return e.displayName || "Context";
|
|
82
366
|
}
|
|
83
|
-
function
|
|
367
|
+
function T(e) {
|
|
84
368
|
if (e == null)
|
|
85
369
|
return null;
|
|
86
|
-
if (typeof e.tag == "number" &&
|
|
370
|
+
if (typeof e.tag == "number" && _("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
|
|
87
371
|
return e.displayName || e.name || null;
|
|
88
372
|
if (typeof e == "string")
|
|
89
373
|
return e;
|
|
90
374
|
switch (e) {
|
|
91
375
|
case g:
|
|
92
376
|
return "Fragment";
|
|
93
|
-
case
|
|
377
|
+
case d:
|
|
94
378
|
return "Portal";
|
|
95
|
-
case
|
|
379
|
+
case v:
|
|
96
380
|
return "Profiler";
|
|
97
|
-
case
|
|
381
|
+
case C:
|
|
98
382
|
return "StrictMode";
|
|
99
|
-
case
|
|
383
|
+
case S:
|
|
100
384
|
return "Suspense";
|
|
101
|
-
case
|
|
385
|
+
case b:
|
|
102
386
|
return "SuspenseList";
|
|
103
387
|
}
|
|
104
388
|
if (typeof e == "object")
|
|
105
389
|
switch (e.$$typeof) {
|
|
106
390
|
case R:
|
|
107
391
|
var r = e;
|
|
108
|
-
return
|
|
109
|
-
case
|
|
392
|
+
return ue(r) + ".Consumer";
|
|
393
|
+
case $:
|
|
110
394
|
var t = e;
|
|
111
|
-
return
|
|
112
|
-
case
|
|
113
|
-
return
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
var
|
|
395
|
+
return ue(t._context) + ".Provider";
|
|
396
|
+
case p:
|
|
397
|
+
return er(e, e.render, "ForwardRef");
|
|
398
|
+
case E:
|
|
399
|
+
var a = e.displayName || null;
|
|
400
|
+
return a !== null ? a : T(e.type) || "Memo";
|
|
401
|
+
case P: {
|
|
402
|
+
var l = e, u = l._payload, i = l._init;
|
|
119
403
|
try {
|
|
120
|
-
return
|
|
404
|
+
return T(i(u));
|
|
121
405
|
} catch {
|
|
122
406
|
return null;
|
|
123
407
|
}
|
|
@@ -125,18 +409,18 @@ function cr() {
|
|
|
125
409
|
}
|
|
126
410
|
return null;
|
|
127
411
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
412
|
+
var x = Object.assign, D = 0, se, fe, ce, de, ve, pe, _e;
|
|
413
|
+
function he() {
|
|
130
414
|
}
|
|
131
|
-
|
|
132
|
-
function
|
|
415
|
+
he.__reactDisabledLog = !0;
|
|
416
|
+
function rr() {
|
|
133
417
|
{
|
|
134
|
-
if (
|
|
135
|
-
|
|
418
|
+
if (D === 0) {
|
|
419
|
+
se = console.log, fe = console.info, ce = console.warn, de = console.error, ve = console.group, pe = console.groupCollapsed, _e = console.groupEnd;
|
|
136
420
|
var e = {
|
|
137
421
|
configurable: !0,
|
|
138
422
|
enumerable: !0,
|
|
139
|
-
value:
|
|
423
|
+
value: he,
|
|
140
424
|
writable: !0
|
|
141
425
|
};
|
|
142
426
|
Object.defineProperties(console, {
|
|
@@ -149,250 +433,250 @@ function cr() {
|
|
|
149
433
|
groupEnd: e
|
|
150
434
|
});
|
|
151
435
|
}
|
|
152
|
-
|
|
436
|
+
D++;
|
|
153
437
|
}
|
|
154
438
|
}
|
|
155
|
-
function
|
|
439
|
+
function tr() {
|
|
156
440
|
{
|
|
157
|
-
if (
|
|
441
|
+
if (D--, D === 0) {
|
|
158
442
|
var e = {
|
|
159
443
|
configurable: !0,
|
|
160
444
|
enumerable: !0,
|
|
161
445
|
writable: !0
|
|
162
446
|
};
|
|
163
447
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
165
|
-
value:
|
|
448
|
+
log: x({}, e, {
|
|
449
|
+
value: se
|
|
166
450
|
}),
|
|
167
|
-
info:
|
|
168
|
-
value:
|
|
451
|
+
info: x({}, e, {
|
|
452
|
+
value: fe
|
|
169
453
|
}),
|
|
170
|
-
warn:
|
|
171
|
-
value:
|
|
454
|
+
warn: x({}, e, {
|
|
455
|
+
value: ce
|
|
172
456
|
}),
|
|
173
|
-
error:
|
|
174
|
-
value:
|
|
457
|
+
error: x({}, e, {
|
|
458
|
+
value: de
|
|
175
459
|
}),
|
|
176
|
-
group:
|
|
177
|
-
value:
|
|
460
|
+
group: x({}, e, {
|
|
461
|
+
value: ve
|
|
178
462
|
}),
|
|
179
|
-
groupCollapsed:
|
|
180
|
-
value:
|
|
463
|
+
groupCollapsed: x({}, e, {
|
|
464
|
+
value: pe
|
|
181
465
|
}),
|
|
182
|
-
groupEnd:
|
|
183
|
-
value:
|
|
466
|
+
groupEnd: x({}, e, {
|
|
467
|
+
value: _e
|
|
184
468
|
})
|
|
185
469
|
});
|
|
186
470
|
}
|
|
187
|
-
|
|
471
|
+
D < 0 && _("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
472
|
}
|
|
189
473
|
}
|
|
190
|
-
var
|
|
191
|
-
function
|
|
474
|
+
var K = j.ReactCurrentDispatcher, G;
|
|
475
|
+
function U(e, r, t) {
|
|
192
476
|
{
|
|
193
|
-
if (
|
|
477
|
+
if (G === void 0)
|
|
194
478
|
try {
|
|
195
479
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var
|
|
198
|
-
|
|
480
|
+
} catch (l) {
|
|
481
|
+
var a = l.stack.trim().match(/\n( *(at )?)/);
|
|
482
|
+
G = a && a[1] || "";
|
|
199
483
|
}
|
|
200
484
|
return `
|
|
201
|
-
` +
|
|
485
|
+
` + G + e;
|
|
202
486
|
}
|
|
203
487
|
}
|
|
204
|
-
var
|
|
488
|
+
var H = !1, L;
|
|
205
489
|
{
|
|
206
|
-
var
|
|
207
|
-
L = new
|
|
490
|
+
var ar = typeof WeakMap == "function" ? WeakMap : Map;
|
|
491
|
+
L = new ar();
|
|
208
492
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!e ||
|
|
493
|
+
function me(e, r) {
|
|
494
|
+
if (!e || H)
|
|
211
495
|
return "";
|
|
212
496
|
{
|
|
213
497
|
var t = L.get(e);
|
|
214
498
|
if (t !== void 0)
|
|
215
499
|
return t;
|
|
216
500
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
219
|
-
var
|
|
501
|
+
var a;
|
|
502
|
+
H = !0;
|
|
503
|
+
var l = Error.prepareStackTrace;
|
|
220
504
|
Error.prepareStackTrace = void 0;
|
|
221
505
|
var u;
|
|
222
|
-
u =
|
|
506
|
+
u = K.current, K.current = null, rr();
|
|
223
507
|
try {
|
|
224
508
|
if (r) {
|
|
225
|
-
var
|
|
509
|
+
var i = function() {
|
|
226
510
|
throw Error();
|
|
227
511
|
};
|
|
228
|
-
if (Object.defineProperty(
|
|
512
|
+
if (Object.defineProperty(i.prototype, "props", {
|
|
229
513
|
set: function() {
|
|
230
514
|
throw Error();
|
|
231
515
|
}
|
|
232
516
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
517
|
try {
|
|
234
|
-
Reflect.construct(
|
|
235
|
-
} catch (
|
|
236
|
-
|
|
518
|
+
Reflect.construct(i, []);
|
|
519
|
+
} catch (m) {
|
|
520
|
+
a = m;
|
|
237
521
|
}
|
|
238
|
-
Reflect.construct(e, [],
|
|
522
|
+
Reflect.construct(e, [], i);
|
|
239
523
|
} else {
|
|
240
524
|
try {
|
|
241
|
-
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
525
|
+
i.call();
|
|
526
|
+
} catch (m) {
|
|
527
|
+
a = m;
|
|
244
528
|
}
|
|
245
|
-
e.call(
|
|
529
|
+
e.call(i.prototype);
|
|
246
530
|
}
|
|
247
531
|
} else {
|
|
248
532
|
try {
|
|
249
533
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
534
|
+
} catch (m) {
|
|
535
|
+
a = m;
|
|
252
536
|
}
|
|
253
537
|
e();
|
|
254
538
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var
|
|
258
|
-
`),
|
|
259
|
-
`), s =
|
|
260
|
-
|
|
261
|
-
for (; s >= 1 &&
|
|
262
|
-
if (
|
|
263
|
-
if (s !== 1 ||
|
|
539
|
+
} catch (m) {
|
|
540
|
+
if (m && a && typeof m.stack == "string") {
|
|
541
|
+
for (var o = m.stack.split(`
|
|
542
|
+
`), h = a.stack.split(`
|
|
543
|
+
`), s = o.length - 1, c = h.length - 1; s >= 1 && c >= 0 && o[s] !== h[c]; )
|
|
544
|
+
c--;
|
|
545
|
+
for (; s >= 1 && c >= 0; s--, c--)
|
|
546
|
+
if (o[s] !== h[c]) {
|
|
547
|
+
if (s !== 1 || c !== 1)
|
|
264
548
|
do
|
|
265
|
-
if (s--,
|
|
266
|
-
var
|
|
267
|
-
` +
|
|
268
|
-
return e.displayName &&
|
|
549
|
+
if (s--, c--, c < 0 || o[s] !== h[c]) {
|
|
550
|
+
var y = `
|
|
551
|
+
` + o[s].replace(" at new ", " at ");
|
|
552
|
+
return e.displayName && y.includes("<anonymous>") && (y = y.replace("<anonymous>", e.displayName)), typeof e == "function" && L.set(e, y), y;
|
|
269
553
|
}
|
|
270
|
-
while (s >= 1 &&
|
|
554
|
+
while (s >= 1 && c >= 0);
|
|
271
555
|
break;
|
|
272
556
|
}
|
|
273
557
|
}
|
|
274
558
|
} finally {
|
|
275
|
-
|
|
559
|
+
H = !1, K.current = u, tr(), Error.prepareStackTrace = l;
|
|
276
560
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof e == "function" && L.set(e,
|
|
561
|
+
var k = e ? e.displayName || e.name : "", O = k ? U(k) : "";
|
|
562
|
+
return typeof e == "function" && L.set(e, O), O;
|
|
279
563
|
}
|
|
280
|
-
function
|
|
281
|
-
return
|
|
564
|
+
function nr(e, r, t) {
|
|
565
|
+
return me(e, !1);
|
|
282
566
|
}
|
|
283
|
-
function
|
|
567
|
+
function or(e) {
|
|
284
568
|
var r = e.prototype;
|
|
285
569
|
return !!(r && r.isReactComponent);
|
|
286
570
|
}
|
|
287
|
-
function
|
|
571
|
+
function Z(e, r, t) {
|
|
288
572
|
if (e == null)
|
|
289
573
|
return "";
|
|
290
574
|
if (typeof e == "function")
|
|
291
|
-
return
|
|
575
|
+
return me(e, or(e));
|
|
292
576
|
if (typeof e == "string")
|
|
293
|
-
return
|
|
577
|
+
return U(e);
|
|
294
578
|
switch (e) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
579
|
+
case S:
|
|
580
|
+
return U("Suspense");
|
|
581
|
+
case b:
|
|
582
|
+
return U("SuspenseList");
|
|
299
583
|
}
|
|
300
584
|
if (typeof e == "object")
|
|
301
585
|
switch (e.$$typeof) {
|
|
302
|
-
case
|
|
303
|
-
return
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
var
|
|
586
|
+
case p:
|
|
587
|
+
return nr(e.render);
|
|
588
|
+
case E:
|
|
589
|
+
return Z(e.type, r, t);
|
|
590
|
+
case P: {
|
|
591
|
+
var a = e, l = a._payload, u = a._init;
|
|
308
592
|
try {
|
|
309
|
-
return
|
|
593
|
+
return Z(u(l), r, t);
|
|
310
594
|
} catch {
|
|
311
595
|
}
|
|
312
596
|
}
|
|
313
597
|
}
|
|
314
598
|
return "";
|
|
315
599
|
}
|
|
316
|
-
var
|
|
317
|
-
function
|
|
600
|
+
var F = Object.prototype.hasOwnProperty, be = {}, ge = j.ReactDebugCurrentFrame;
|
|
601
|
+
function B(e) {
|
|
318
602
|
if (e) {
|
|
319
|
-
var r = e._owner, t =
|
|
320
|
-
|
|
603
|
+
var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
|
|
604
|
+
ge.setExtraStackFrame(t);
|
|
321
605
|
} else
|
|
322
|
-
|
|
606
|
+
ge.setExtraStackFrame(null);
|
|
323
607
|
}
|
|
324
|
-
function
|
|
608
|
+
function ir(e, r, t, a, l) {
|
|
325
609
|
{
|
|
326
|
-
var u = Function.call.bind(
|
|
327
|
-
for (var
|
|
328
|
-
if (u(e,
|
|
329
|
-
var
|
|
610
|
+
var u = Function.call.bind(F);
|
|
611
|
+
for (var i in e)
|
|
612
|
+
if (u(e, i)) {
|
|
613
|
+
var o = void 0;
|
|
330
614
|
try {
|
|
331
|
-
if (typeof e[
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
615
|
+
if (typeof e[i] != "function") {
|
|
616
|
+
var h = Error((a || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
617
|
+
throw h.name = "Invariant Violation", h;
|
|
334
618
|
}
|
|
335
|
-
|
|
619
|
+
o = e[i](r, i, a, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
620
|
} catch (s) {
|
|
337
|
-
|
|
621
|
+
o = s;
|
|
338
622
|
}
|
|
339
|
-
|
|
623
|
+
o && !(o instanceof Error) && (B(l), _("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", a || "React class", t, i, typeof o), B(null)), o instanceof Error && !(o.message in be) && (be[o.message] = !0, B(l), _("Failed %s type: %s", t, o.message), B(null));
|
|
340
624
|
}
|
|
341
625
|
}
|
|
342
626
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
627
|
+
var lr = Array.isArray;
|
|
628
|
+
function X(e) {
|
|
629
|
+
return lr(e);
|
|
346
630
|
}
|
|
347
|
-
function
|
|
631
|
+
function ur(e) {
|
|
348
632
|
{
|
|
349
633
|
var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
350
634
|
return t;
|
|
351
635
|
}
|
|
352
636
|
}
|
|
353
|
-
function
|
|
637
|
+
function sr(e) {
|
|
354
638
|
try {
|
|
355
|
-
return
|
|
639
|
+
return ye(e), !1;
|
|
356
640
|
} catch {
|
|
357
641
|
return !0;
|
|
358
642
|
}
|
|
359
643
|
}
|
|
360
|
-
function
|
|
644
|
+
function ye(e) {
|
|
361
645
|
return "" + e;
|
|
362
646
|
}
|
|
363
|
-
function
|
|
364
|
-
if (
|
|
365
|
-
return
|
|
647
|
+
function Re(e) {
|
|
648
|
+
if (sr(e))
|
|
649
|
+
return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ur(e)), ye(e);
|
|
366
650
|
}
|
|
367
|
-
var
|
|
651
|
+
var Ee = j.ReactCurrentOwner, fr = {
|
|
368
652
|
key: !0,
|
|
369
653
|
ref: !0,
|
|
370
654
|
__self: !0,
|
|
371
655
|
__source: !0
|
|
372
|
-
},
|
|
373
|
-
function
|
|
374
|
-
if (
|
|
656
|
+
}, Ce, Te;
|
|
657
|
+
function cr(e) {
|
|
658
|
+
if (F.call(e, "ref")) {
|
|
375
659
|
var r = Object.getOwnPropertyDescriptor(e, "ref").get;
|
|
376
660
|
if (r && r.isReactWarning)
|
|
377
661
|
return !1;
|
|
378
662
|
}
|
|
379
663
|
return e.ref !== void 0;
|
|
380
664
|
}
|
|
381
|
-
function
|
|
382
|
-
if (
|
|
665
|
+
function dr(e) {
|
|
666
|
+
if (F.call(e, "key")) {
|
|
383
667
|
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
384
668
|
if (r && r.isReactWarning)
|
|
385
669
|
return !1;
|
|
386
670
|
}
|
|
387
671
|
return e.key !== void 0;
|
|
388
672
|
}
|
|
389
|
-
function
|
|
390
|
-
typeof e.ref == "string" &&
|
|
673
|
+
function vr(e, r) {
|
|
674
|
+
typeof e.ref == "string" && Ee.current;
|
|
391
675
|
}
|
|
392
|
-
function
|
|
676
|
+
function pr(e, r) {
|
|
393
677
|
{
|
|
394
678
|
var t = function() {
|
|
395
|
-
|
|
679
|
+
Ce || (Ce = !0, _("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
396
680
|
};
|
|
397
681
|
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
398
682
|
get: t,
|
|
@@ -400,10 +684,10 @@ function cr() {
|
|
|
400
684
|
});
|
|
401
685
|
}
|
|
402
686
|
}
|
|
403
|
-
function
|
|
687
|
+
function _r(e, r) {
|
|
404
688
|
{
|
|
405
689
|
var t = function() {
|
|
406
|
-
|
|
690
|
+
Te || (Te = !0, _("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", r));
|
|
407
691
|
};
|
|
408
692
|
t.isReactWarning = !0, Object.defineProperty(e, "ref", {
|
|
409
693
|
get: t,
|
|
@@ -411,70 +695,70 @@ function cr() {
|
|
|
411
695
|
});
|
|
412
696
|
}
|
|
413
697
|
}
|
|
414
|
-
var
|
|
415
|
-
var
|
|
698
|
+
var hr = function(e, r, t, a, l, u, i) {
|
|
699
|
+
var o = {
|
|
416
700
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
701
|
+
$$typeof: f,
|
|
418
702
|
// Built-in properties that belong on the element
|
|
419
703
|
type: e,
|
|
420
704
|
key: r,
|
|
421
705
|
ref: t,
|
|
422
|
-
props:
|
|
706
|
+
props: i,
|
|
423
707
|
// Record the component responsible for creating this element.
|
|
424
708
|
_owner: u
|
|
425
709
|
};
|
|
426
|
-
return
|
|
710
|
+
return o._store = {}, Object.defineProperty(o._store, "validated", {
|
|
427
711
|
configurable: !1,
|
|
428
712
|
enumerable: !1,
|
|
429
713
|
writable: !0,
|
|
430
714
|
value: !1
|
|
431
|
-
}), Object.defineProperty(
|
|
715
|
+
}), Object.defineProperty(o, "_self", {
|
|
432
716
|
configurable: !1,
|
|
433
717
|
enumerable: !1,
|
|
434
718
|
writable: !1,
|
|
435
|
-
value:
|
|
436
|
-
}), Object.defineProperty(
|
|
719
|
+
value: a
|
|
720
|
+
}), Object.defineProperty(o, "_source", {
|
|
437
721
|
configurable: !1,
|
|
438
722
|
enumerable: !1,
|
|
439
723
|
writable: !1,
|
|
440
|
-
value:
|
|
441
|
-
}), Object.freeze && (Object.freeze(
|
|
724
|
+
value: l
|
|
725
|
+
}), Object.freeze && (Object.freeze(o.props), Object.freeze(o)), o;
|
|
442
726
|
};
|
|
443
|
-
function
|
|
727
|
+
function mr(e, r, t, a, l) {
|
|
444
728
|
{
|
|
445
|
-
var u,
|
|
446
|
-
t !== void 0 && (
|
|
729
|
+
var u, i = {}, o = null, h = null;
|
|
730
|
+
t !== void 0 && (Re(t), o = "" + t), dr(r) && (Re(r.key), o = "" + r.key), cr(r) && (h = r.ref, vr(r, l));
|
|
447
731
|
for (u in r)
|
|
448
|
-
|
|
732
|
+
F.call(r, u) && !fr.hasOwnProperty(u) && (i[u] = r[u]);
|
|
449
733
|
if (e && e.defaultProps) {
|
|
450
734
|
var s = e.defaultProps;
|
|
451
735
|
for (u in s)
|
|
452
|
-
|
|
736
|
+
i[u] === void 0 && (i[u] = s[u]);
|
|
453
737
|
}
|
|
454
|
-
if (
|
|
455
|
-
var
|
|
456
|
-
|
|
738
|
+
if (o || h) {
|
|
739
|
+
var c = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
|
|
740
|
+
o && pr(i, c), h && _r(i, c);
|
|
457
741
|
}
|
|
458
|
-
return
|
|
742
|
+
return hr(e, o, h, l, a, Ee.current, i);
|
|
459
743
|
}
|
|
460
744
|
}
|
|
461
|
-
var
|
|
745
|
+
var Q = j.ReactCurrentOwner, Pe = j.ReactDebugCurrentFrame;
|
|
462
746
|
function w(e) {
|
|
463
747
|
if (e) {
|
|
464
|
-
var r = e._owner, t =
|
|
465
|
-
|
|
748
|
+
var r = e._owner, t = Z(e.type, e._source, r ? r.type : null);
|
|
749
|
+
Pe.setExtraStackFrame(t);
|
|
466
750
|
} else
|
|
467
|
-
|
|
751
|
+
Pe.setExtraStackFrame(null);
|
|
468
752
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
472
|
-
return typeof e == "object" && e !== null && e.$$typeof ===
|
|
753
|
+
var ee;
|
|
754
|
+
ee = !1;
|
|
755
|
+
function re(e) {
|
|
756
|
+
return typeof e == "object" && e !== null && e.$$typeof === f;
|
|
473
757
|
}
|
|
474
|
-
function
|
|
758
|
+
function xe() {
|
|
475
759
|
{
|
|
476
|
-
if (
|
|
477
|
-
var e =
|
|
760
|
+
if (Q.current) {
|
|
761
|
+
var e = T(Q.current.type);
|
|
478
762
|
if (e)
|
|
479
763
|
return `
|
|
480
764
|
|
|
@@ -483,13 +767,13 @@ Check the render method of \`` + e + "`.";
|
|
|
483
767
|
return "";
|
|
484
768
|
}
|
|
485
769
|
}
|
|
486
|
-
function
|
|
770
|
+
function br(e) {
|
|
487
771
|
return "";
|
|
488
772
|
}
|
|
489
|
-
var
|
|
490
|
-
function
|
|
773
|
+
var Oe = {};
|
|
774
|
+
function gr(e) {
|
|
491
775
|
{
|
|
492
|
-
var r =
|
|
776
|
+
var r = xe();
|
|
493
777
|
if (!r) {
|
|
494
778
|
var t = typeof e == "string" ? e : e.displayName || e.name;
|
|
495
779
|
t && (r = `
|
|
@@ -499,39 +783,39 @@ Check the top-level render call using <` + t + ">.");
|
|
|
499
783
|
return r;
|
|
500
784
|
}
|
|
501
785
|
}
|
|
502
|
-
function
|
|
786
|
+
function $e(e, r) {
|
|
503
787
|
{
|
|
504
788
|
if (!e._store || e._store.validated || e.key != null)
|
|
505
789
|
return;
|
|
506
790
|
e._store.validated = !0;
|
|
507
|
-
var t =
|
|
508
|
-
if (
|
|
791
|
+
var t = gr(r);
|
|
792
|
+
if (Oe[t])
|
|
509
793
|
return;
|
|
510
|
-
|
|
511
|
-
var
|
|
512
|
-
e && e._owner && e._owner !==
|
|
794
|
+
Oe[t] = !0;
|
|
795
|
+
var a = "";
|
|
796
|
+
e && e._owner && e._owner !== Q.current && (a = " It was passed a child from " + T(e._owner.type) + "."), w(e), _('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, a), w(null);
|
|
513
797
|
}
|
|
514
798
|
}
|
|
515
|
-
function
|
|
799
|
+
function Se(e, r) {
|
|
516
800
|
{
|
|
517
801
|
if (typeof e != "object")
|
|
518
802
|
return;
|
|
519
|
-
if (
|
|
803
|
+
if (X(e))
|
|
520
804
|
for (var t = 0; t < e.length; t++) {
|
|
521
|
-
var
|
|
522
|
-
|
|
805
|
+
var a = e[t];
|
|
806
|
+
re(a) && $e(a, r);
|
|
523
807
|
}
|
|
524
|
-
else if (
|
|
808
|
+
else if (re(e))
|
|
525
809
|
e._store && (e._store.validated = !0);
|
|
526
810
|
else if (e) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var u =
|
|
530
|
-
|
|
811
|
+
var l = Ze(e);
|
|
812
|
+
if (typeof l == "function" && l !== e.entries)
|
|
813
|
+
for (var u = l.call(e), i; !(i = u.next()).done; )
|
|
814
|
+
re(i.value) && $e(i.value, r);
|
|
531
815
|
}
|
|
532
816
|
}
|
|
533
817
|
}
|
|
534
|
-
function
|
|
818
|
+
function yr(e) {
|
|
535
819
|
{
|
|
536
820
|
var r = e.type;
|
|
537
821
|
if (r == null || typeof r == "string")
|
|
@@ -539,114 +823,100 @@ Check the top-level render call using <` + t + ">.");
|
|
|
539
823
|
var t;
|
|
540
824
|
if (typeof r == "function")
|
|
541
825
|
t = r.propTypes;
|
|
542
|
-
else if (typeof r == "object" && (r.$$typeof ===
|
|
826
|
+
else if (typeof r == "object" && (r.$$typeof === p || // Note: Memo only checks outer props here.
|
|
543
827
|
// Inner props are checked in the reconciler.
|
|
544
|
-
r.$$typeof ===
|
|
828
|
+
r.$$typeof === E))
|
|
545
829
|
t = r.propTypes;
|
|
546
830
|
else
|
|
547
831
|
return;
|
|
548
832
|
if (t) {
|
|
549
|
-
var
|
|
550
|
-
|
|
551
|
-
} else if (r.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var
|
|
554
|
-
|
|
833
|
+
var a = T(r);
|
|
834
|
+
ir(t, e.props, "prop", a, e);
|
|
835
|
+
} else if (r.PropTypes !== void 0 && !ee) {
|
|
836
|
+
ee = !0;
|
|
837
|
+
var l = T(r);
|
|
838
|
+
_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", l || "Unknown");
|
|
555
839
|
}
|
|
556
|
-
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved &&
|
|
840
|
+
typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && _("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
841
|
}
|
|
558
842
|
}
|
|
559
|
-
function
|
|
843
|
+
function Rr(e) {
|
|
560
844
|
{
|
|
561
845
|
for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
w(e),
|
|
846
|
+
var a = r[t];
|
|
847
|
+
if (a !== "children" && a !== "key") {
|
|
848
|
+
w(e), _("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", a), w(null);
|
|
565
849
|
break;
|
|
566
850
|
}
|
|
567
851
|
}
|
|
568
|
-
e.ref !== null && (w(e),
|
|
852
|
+
e.ref !== null && (w(e), _("Invalid attribute `ref` supplied to `React.Fragment`."), w(null));
|
|
569
853
|
}
|
|
570
854
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
855
|
+
var je = {};
|
|
856
|
+
function we(e, r, t, a, l, u) {
|
|
573
857
|
{
|
|
574
|
-
var
|
|
575
|
-
if (!
|
|
576
|
-
var
|
|
577
|
-
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (
|
|
578
|
-
var
|
|
579
|
-
|
|
858
|
+
var i = Qe(e);
|
|
859
|
+
if (!i) {
|
|
860
|
+
var o = "";
|
|
861
|
+
(e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (o += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
862
|
+
var h = br();
|
|
863
|
+
h ? o += h : o += xe();
|
|
580
864
|
var s;
|
|
581
|
-
e === null ? s = "null" :
|
|
865
|
+
e === null ? s = "null" : X(e) ? s = "array" : e !== void 0 && e.$$typeof === f ? (s = "<" + (T(e.type) || "Unknown") + " />", o = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, _("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, o);
|
|
582
866
|
}
|
|
583
|
-
var
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
586
|
-
if (
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
867
|
+
var c = mr(e, r, t, l, u);
|
|
868
|
+
if (c == null)
|
|
869
|
+
return c;
|
|
870
|
+
if (i) {
|
|
871
|
+
var y = r.children;
|
|
872
|
+
if (y !== void 0)
|
|
873
|
+
if (a)
|
|
874
|
+
if (X(y)) {
|
|
875
|
+
for (var k = 0; k < y.length; k++)
|
|
876
|
+
Se(y[k], e);
|
|
877
|
+
Object.freeze && Object.freeze(y);
|
|
594
878
|
} else
|
|
595
|
-
|
|
879
|
+
_("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
880
|
else
|
|
597
|
-
|
|
881
|
+
Se(y, e);
|
|
598
882
|
}
|
|
599
|
-
if (
|
|
600
|
-
var
|
|
601
|
-
return
|
|
602
|
-
}),
|
|
603
|
-
if (!
|
|
604
|
-
var
|
|
605
|
-
|
|
883
|
+
if (F.call(r, "key")) {
|
|
884
|
+
var O = T(e), m = Object.keys(r).filter(function(Or) {
|
|
885
|
+
return Or !== "key";
|
|
886
|
+
}), te = m.length > 0 ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
887
|
+
if (!je[O + te]) {
|
|
888
|
+
var xr = m.length > 0 ? "{" + m.join(": ..., ") + ": ...}" : "{}";
|
|
889
|
+
_(`A props object containing a "key" prop is being spread into JSX:
|
|
606
890
|
let props = %s;
|
|
607
891
|
<%s {...props} />
|
|
608
892
|
React keys must be passed directly to JSX without using spread:
|
|
609
893
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`,
|
|
894
|
+
<%s key={someKey} {...props} />`, te, O, xr, O), je[O + te] = !0;
|
|
611
895
|
}
|
|
612
896
|
}
|
|
613
|
-
return e === g ?
|
|
897
|
+
return e === g ? Rr(c) : yr(c), c;
|
|
614
898
|
}
|
|
615
899
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
900
|
+
function Er(e, r, t) {
|
|
901
|
+
return we(e, r, t, !0);
|
|
618
902
|
}
|
|
619
|
-
function
|
|
620
|
-
return
|
|
903
|
+
function Cr(e, r, t) {
|
|
904
|
+
return we(e, r, t, !1);
|
|
621
905
|
}
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
}()),
|
|
906
|
+
var Tr = Cr, Pr = Er;
|
|
907
|
+
z.Fragment = g, z.jsx = Tr, z.jsxs = Pr;
|
|
908
|
+
}()), z;
|
|
625
909
|
}
|
|
626
|
-
var
|
|
627
|
-
function
|
|
628
|
-
return
|
|
910
|
+
var ze;
|
|
911
|
+
function Ir() {
|
|
912
|
+
return ze || (ze = 1, process.env.NODE_ENV === "production" ? J.exports = Ar() : J.exports = Yr()), J.exports;
|
|
629
913
|
}
|
|
630
|
-
var
|
|
631
|
-
const
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
backgroundColor: k,
|
|
635
|
-
label: g,
|
|
636
|
-
...O
|
|
637
|
-
}) => {
|
|
638
|
-
const S = x ? "storybook-button--primary" : "storybook-button--secondary";
|
|
639
|
-
return /* @__PURE__ */ vr.jsx(
|
|
640
|
-
"button",
|
|
641
|
-
{
|
|
642
|
-
type: "button",
|
|
643
|
-
className: ["storybook-button", `storybook-button--${h}`, S].join(" "),
|
|
644
|
-
style: { backgroundColor: k },
|
|
645
|
-
...O,
|
|
646
|
-
children: g
|
|
647
|
-
}
|
|
648
|
-
);
|
|
914
|
+
var qr = Ir();
|
|
915
|
+
const Vr = (n, f) => {
|
|
916
|
+
var d;
|
|
917
|
+
return /* @__PURE__ */ qr.jsx($r, { type: n.btnType, className: "my-button", children: ((d = n.custObj) == null ? void 0 : d.name) || n.label });
|
|
649
918
|
};
|
|
650
919
|
export {
|
|
651
|
-
|
|
920
|
+
zr as OnChainProvider,
|
|
921
|
+
Vr as XsButton
|
|
652
922
|
};
|