react-luminus-components 1.1.20 → 1.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/.vite/manifest.json +43 -43
- package/dist/{DataKey-Chc9JWBN.js → DataKey-B7CWQXvv.js} +1 -1
- package/dist/{DataKey-dhQX8cMa.cjs → DataKey-DVMbPWFY.cjs} +1 -1
- package/dist/{SimpleTooltip-CfoOF2bC.cjs → SimpleTooltip-D91sCKFo.cjs} +1 -1
- package/dist/{SimpleTooltip-Cs6KsWMk.js → SimpleTooltip-Dk1A5Tpg.js} +2 -2
- package/dist/components/Buttons/ContextButton/FileUploadContextButton.d.ts +12 -0
- package/dist/components/Buttons/index.d.ts +1 -0
- package/dist/components/Dropdown/comps/DropdownDivider/DropdownDivider.d.ts +6 -0
- package/dist/components/Dropdown/comps/DropdownItem/FileUploadDropdownItem.d.ts +12 -0
- package/dist/components/Dropdown/comps/index.d.ts +2 -0
- package/dist/components/Dropdown/index.d.ts +1 -1
- package/dist/components/Form/TextInput/TextInput.d.ts +2 -1
- package/dist/components/common/Collapse/Collapse.d.ts +14 -2
- package/dist/components/common/PromptDialog/PromptDialog.d.ts +3 -0
- package/dist/components/common/SimplePicker/SimplePicker.d.ts +2 -1
- package/dist/components/common/Typography/Typography.d.ts +1 -1
- package/dist/contexts/prompt/PromptContext.d.ts +10 -0
- package/dist/contexts/prompt/PromptProvider.d.ts +6 -0
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +405 -368
- package/dist/{hasClass-D2q3Otcv.js → hasClass-DIHyDa4e.js} +237 -233
- package/dist/hasClass-DjB0wTmj.cjs +20 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/usePrompt/usePrompt.d.ts +7 -0
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +6 -5
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/main.es.js +1161 -1119
- package/dist/models/texts/ConfirmTexts.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/{useAxios-Ce32mjz9.cjs → useAxios-B4X7zKtj.cjs} +36 -36
- package/dist/{useAxios-D-fCu46c.js → useAxios-CHbKHRpj.js} +195 -181
- package/dist/useConfirm-CrTJszXF.cjs +1 -0
- package/dist/useConfirm-CyietOP-.js +27 -0
- package/package.json +1 -1
- package/dist/hasClass-Dg19NteG.cjs +0 -20
- package/dist/useConfirm-BM62r8mq.cjs +0 -1
- package/dist/useConfirm-CTpbtdnu.js +0 -18
|
@@ -1,36 +1,40 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as L, d as B, g as at } from "./useAxios-CHbKHRpj.js";
|
|
2
2
|
import * as fe from "react";
|
|
3
3
|
import Z, { useContext as oe, useMemo as st, useRef as Y, useCallback as k, useEffect as Q, useState as Me, useLayoutEffect as ut, createContext as ct, cloneElement as Ie } from "react";
|
|
4
4
|
import ne from "react-dom";
|
|
5
|
-
const ft = "
|
|
5
|
+
const ft = "_h1_1p97i_1", lt = "_h3_1p97i_8", dt = "_h6_1p97i_15", pt = "_subtitle_1p97i_22", vt = "_body_1p97i_29", yt = "_body2_1p97i_36", Et = "_caption_1p97i_43", mt = "_form-label_1p97i_50", V = {
|
|
6
6
|
h1: ft,
|
|
7
7
|
h3: lt,
|
|
8
8
|
h6: dt,
|
|
9
9
|
subtitle: pt,
|
|
10
10
|
body: vt,
|
|
11
11
|
body2: yt,
|
|
12
|
-
caption: Et
|
|
13
|
-
|
|
12
|
+
caption: Et,
|
|
13
|
+
"form-label": "_form-label_1p97i_50",
|
|
14
|
+
formLabel: mt
|
|
15
|
+
}, ht = ({ variant: e, className: n, children: o }) => {
|
|
14
16
|
switch (e) {
|
|
15
17
|
case "h1":
|
|
16
|
-
return /* @__PURE__ */
|
|
18
|
+
return /* @__PURE__ */ L.jsx("h1", { className: B("luminus-text-primary luminus-h1", V.h1, n), children: o });
|
|
17
19
|
case "h3":
|
|
18
|
-
return /* @__PURE__ */
|
|
20
|
+
return /* @__PURE__ */ L.jsx("h3", { className: B("luminus-text luminus-h3", V.h3, n), children: o });
|
|
19
21
|
case "h6":
|
|
20
|
-
return /* @__PURE__ */
|
|
22
|
+
return /* @__PURE__ */ L.jsx("h6", { className: B("luminus-text luminus-h6", V.h6, n), children: o });
|
|
21
23
|
case "subtitle":
|
|
22
|
-
return /* @__PURE__ */
|
|
24
|
+
return /* @__PURE__ */ L.jsx("div", { className: B("luminus-text luminus-subtitle", V.subtitle, n), children: o });
|
|
23
25
|
case "body":
|
|
24
|
-
return /* @__PURE__ */
|
|
26
|
+
return /* @__PURE__ */ L.jsx("div", { className: B("luminus-text luminus-body", V.body, n), children: o });
|
|
25
27
|
case "body2":
|
|
26
|
-
return /* @__PURE__ */
|
|
28
|
+
return /* @__PURE__ */ L.jsx("div", { className: B("luminus-text luminus-body2", V.body2, n), children: o });
|
|
27
29
|
case "caption":
|
|
28
|
-
return /* @__PURE__ */
|
|
30
|
+
return /* @__PURE__ */ L.jsx("div", { className: B("luminus-text-muted luminus-caption", V.caption, n), children: o });
|
|
31
|
+
case "form-label":
|
|
32
|
+
return /* @__PURE__ */ L.jsx("div", { className: B("luminus-text luminus-form-label", V.formLabel, n), children: o });
|
|
29
33
|
default:
|
|
30
|
-
return /* @__PURE__ */
|
|
34
|
+
return /* @__PURE__ */ L.jsx(L.Fragment, { children: o });
|
|
31
35
|
}
|
|
32
|
-
},
|
|
33
|
-
function
|
|
36
|
+
}, xn = ({ variant: e, className: n, children: o }) => /* @__PURE__ */ L.jsx(ht, { variant: e, className: n, children: o });
|
|
37
|
+
function bt(e, n) {
|
|
34
38
|
if (e == null)
|
|
35
39
|
return {};
|
|
36
40
|
var o = {}, r = Object.keys(e), i, t;
|
|
@@ -38,38 +42,38 @@ function ht(e, n) {
|
|
|
38
42
|
i = r[t], !(n.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
39
43
|
return o;
|
|
40
44
|
}
|
|
41
|
-
function
|
|
42
|
-
return
|
|
45
|
+
function Pe(e, n) {
|
|
46
|
+
return Pe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
43
47
|
return r.__proto__ = i, r;
|
|
44
|
-
},
|
|
48
|
+
}, Pe(e, n);
|
|
45
49
|
}
|
|
46
|
-
function
|
|
47
|
-
e.prototype = Object.create(n.prototype), e.prototype.constructor = e,
|
|
50
|
+
function xt(e, n) {
|
|
51
|
+
e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Pe(e, n);
|
|
48
52
|
}
|
|
49
|
-
const
|
|
53
|
+
const Tt = ["xxl", "xl", "lg", "md", "sm", "xs"], gt = "xs", le = /* @__PURE__ */ fe.createContext({
|
|
50
54
|
prefixes: {},
|
|
51
|
-
breakpoints:
|
|
52
|
-
minBreakpoint:
|
|
55
|
+
breakpoints: Tt,
|
|
56
|
+
minBreakpoint: gt
|
|
53
57
|
});
|
|
54
|
-
function
|
|
58
|
+
function Tn(e, n) {
|
|
55
59
|
const {
|
|
56
60
|
prefixes: o
|
|
57
61
|
} = oe(le);
|
|
58
62
|
return e || o[n] || n;
|
|
59
63
|
}
|
|
60
|
-
function
|
|
64
|
+
function gn() {
|
|
61
65
|
const {
|
|
62
66
|
breakpoints: e
|
|
63
67
|
} = oe(le);
|
|
64
68
|
return e;
|
|
65
69
|
}
|
|
66
|
-
function
|
|
70
|
+
function Rn() {
|
|
67
71
|
const {
|
|
68
72
|
minBreakpoint: e
|
|
69
73
|
} = oe(le);
|
|
70
74
|
return e;
|
|
71
75
|
}
|
|
72
|
-
function
|
|
76
|
+
function On() {
|
|
73
77
|
const {
|
|
74
78
|
dir: e
|
|
75
79
|
} = oe(le);
|
|
@@ -78,35 +82,35 @@ function Rn() {
|
|
|
78
82
|
function Je(e) {
|
|
79
83
|
return e && e.ownerDocument || document;
|
|
80
84
|
}
|
|
81
|
-
function
|
|
85
|
+
function Rt(e) {
|
|
82
86
|
var n = Je(e);
|
|
83
87
|
return n && n.defaultView || window;
|
|
84
88
|
}
|
|
85
|
-
function
|
|
86
|
-
return
|
|
89
|
+
function Ot(e, n) {
|
|
90
|
+
return Rt(e).getComputedStyle(e, n);
|
|
87
91
|
}
|
|
88
|
-
var
|
|
89
|
-
function
|
|
90
|
-
return e.replace(
|
|
92
|
+
var _t = /([A-Z])/g;
|
|
93
|
+
function St(e) {
|
|
94
|
+
return e.replace(_t, "-$1").toLowerCase();
|
|
91
95
|
}
|
|
92
|
-
var
|
|
96
|
+
var Ct = /^ms-/;
|
|
93
97
|
function ue(e) {
|
|
94
|
-
return
|
|
98
|
+
return St(e).replace(Ct, "-ms-");
|
|
95
99
|
}
|
|
96
|
-
var
|
|
97
|
-
function
|
|
98
|
-
return !!(e &&
|
|
100
|
+
var Pt = /^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;
|
|
101
|
+
function wt(e) {
|
|
102
|
+
return !!(e && Pt.test(e));
|
|
99
103
|
}
|
|
100
104
|
function Ze(e, n) {
|
|
101
105
|
var o = "", r = "";
|
|
102
106
|
if (typeof n == "string")
|
|
103
|
-
return e.style.getPropertyValue(ue(n)) ||
|
|
107
|
+
return e.style.getPropertyValue(ue(n)) || Ot(e).getPropertyValue(ue(n));
|
|
104
108
|
Object.keys(n).forEach(function(i) {
|
|
105
109
|
var t = n[i];
|
|
106
|
-
!t && t !== 0 ? e.style.removeProperty(ue(i)) :
|
|
110
|
+
!t && t !== 0 ? e.style.removeProperty(ue(i)) : wt(i) ? r += i + "(" + t + ") " : o += ue(i) + ": " + t + ";";
|
|
107
111
|
}), r && (o += "transform: " + r + ";"), e.style.cssText += ";" + o;
|
|
108
112
|
}
|
|
109
|
-
var
|
|
113
|
+
var we = { exports: {} }, ce = { exports: {} }, S = {};
|
|
110
114
|
/** @license React v16.13.1
|
|
111
115
|
* react-is.production.min.js
|
|
112
116
|
*
|
|
@@ -116,11 +120,11 @@ var Pe = { exports: {} }, ce = { exports: {} }, S = {};
|
|
|
116
120
|
* LICENSE file in the root directory of this source tree.
|
|
117
121
|
*/
|
|
118
122
|
var Ne;
|
|
119
|
-
function
|
|
123
|
+
function jt() {
|
|
120
124
|
if (Ne)
|
|
121
125
|
return S;
|
|
122
126
|
Ne = 1;
|
|
123
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116,
|
|
127
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
|
|
124
128
|
function M(c) {
|
|
125
129
|
if (typeof c == "object" && c !== null) {
|
|
126
130
|
var N = c.$$typeof;
|
|
@@ -179,10 +183,10 @@ function Pt() {
|
|
|
179
183
|
}, S.isSuspense = function(c) {
|
|
180
184
|
return M(c) === y;
|
|
181
185
|
}, S.isValidElementType = function(c) {
|
|
182
|
-
return typeof c == "string" || typeof c == "function" || c === r || c === p || c === t || c === i || c === y || c === _ || typeof c == "object" && c !== null && (c.$$typeof === D || c.$$typeof === A || c.$$typeof === s || c.$$typeof === u || c.$$typeof === v || c.$$typeof === I || c.$$typeof ===
|
|
186
|
+
return typeof c == "string" || typeof c == "function" || c === r || c === p || c === t || c === i || c === y || c === _ || typeof c == "object" && c !== null && (c.$$typeof === D || c.$$typeof === A || c.$$typeof === s || c.$$typeof === u || c.$$typeof === v || c.$$typeof === I || c.$$typeof === $ || c.$$typeof === U || c.$$typeof === w);
|
|
183
187
|
}, S.typeOf = M, S;
|
|
184
188
|
}
|
|
185
|
-
var
|
|
189
|
+
var C = {};
|
|
186
190
|
/** @license React v16.13.1
|
|
187
191
|
* react-is.development.js
|
|
188
192
|
*
|
|
@@ -192,12 +196,12 @@ var w = {};
|
|
|
192
196
|
* LICENSE file in the root directory of this source tree.
|
|
193
197
|
*/
|
|
194
198
|
var qe;
|
|
195
|
-
function
|
|
199
|
+
function At() {
|
|
196
200
|
return qe || (qe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
197
|
-
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116,
|
|
201
|
+
var e = typeof Symbol == "function" && Symbol.for, n = e ? Symbol.for("react.element") : 60103, o = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, t = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, u = e ? Symbol.for("react.context") : 60110, d = e ? Symbol.for("react.async_mode") : 60111, p = e ? Symbol.for("react.concurrent_mode") : 60111, v = e ? Symbol.for("react.forward_ref") : 60112, y = e ? Symbol.for("react.suspense") : 60113, _ = e ? Symbol.for("react.suspense_list") : 60120, A = e ? Symbol.for("react.memo") : 60115, D = e ? Symbol.for("react.lazy") : 60116, w = e ? Symbol.for("react.block") : 60121, I = e ? Symbol.for("react.fundamental") : 60117, $ = e ? Symbol.for("react.responder") : 60118, U = e ? Symbol.for("react.scope") : 60119;
|
|
198
202
|
function M(f) {
|
|
199
203
|
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
200
|
-
f === r || f === p || f === t || f === i || f === y || f === _ || typeof f == "object" && f !== null && (f.$$typeof === D || f.$$typeof === A || f.$$typeof === s || f.$$typeof === u || f.$$typeof === v || f.$$typeof === I || f.$$typeof ===
|
|
204
|
+
f === r || f === p || f === t || f === i || f === y || f === _ || typeof f == "object" && f !== null && (f.$$typeof === D || f.$$typeof === A || f.$$typeof === s || f.$$typeof === u || f.$$typeof === v || f.$$typeof === I || f.$$typeof === $ || f.$$typeof === U || f.$$typeof === w);
|
|
201
205
|
}
|
|
202
206
|
function j(f) {
|
|
203
207
|
if (typeof f == "object" && f !== null) {
|
|
@@ -231,7 +235,7 @@ function jt() {
|
|
|
231
235
|
}
|
|
232
236
|
}
|
|
233
237
|
}
|
|
234
|
-
var c = d, N = p,
|
|
238
|
+
var c = d, N = p, X = u, pe = s, ve = n, ye = v, ie = r, Ee = D, me = A, ee = o, he = t, W = i, K = y, ae = !1;
|
|
235
239
|
function be(f) {
|
|
236
240
|
return ae || (ae = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), a(f) || j(f) === d;
|
|
237
241
|
}
|
|
@@ -262,7 +266,7 @@ function jt() {
|
|
|
262
266
|
function R(f) {
|
|
263
267
|
return j(f) === o;
|
|
264
268
|
}
|
|
265
|
-
function
|
|
269
|
+
function P(f) {
|
|
266
270
|
return j(f) === t;
|
|
267
271
|
}
|
|
268
272
|
function O(f) {
|
|
@@ -271,12 +275,12 @@ function jt() {
|
|
|
271
275
|
function q(f) {
|
|
272
276
|
return j(f) === y;
|
|
273
277
|
}
|
|
274
|
-
|
|
275
|
-
}()),
|
|
278
|
+
C.AsyncMode = c, C.ConcurrentMode = N, C.ContextConsumer = X, C.ContextProvider = pe, C.Element = ve, C.ForwardRef = ye, C.Fragment = ie, C.Lazy = Ee, C.Memo = me, C.Portal = ee, C.Profiler = he, C.StrictMode = W, C.Suspense = K, C.isAsyncMode = be, C.isConcurrentMode = a, C.isContextConsumer = l, C.isContextProvider = T, C.isElement = b, C.isForwardRef = E, C.isFragment = g, C.isLazy = h, C.isMemo = x, C.isPortal = R, C.isProfiler = P, C.isStrictMode = O, C.isSuspense = q, C.isValidElementType = M, C.typeOf = j;
|
|
279
|
+
}()), C;
|
|
276
280
|
}
|
|
277
281
|
var We;
|
|
278
282
|
function Qe() {
|
|
279
|
-
return We || (We = 1, process.env.NODE_ENV === "production" ? ce.exports =
|
|
283
|
+
return We || (We = 1, process.env.NODE_ENV === "production" ? ce.exports = jt() : ce.exports = At()), ce.exports;
|
|
280
284
|
}
|
|
281
285
|
/*
|
|
282
286
|
object-assign
|
|
@@ -284,7 +288,7 @@ object-assign
|
|
|
284
288
|
@license MIT
|
|
285
289
|
*/
|
|
286
290
|
var xe, Fe;
|
|
287
|
-
function
|
|
291
|
+
function Dt() {
|
|
288
292
|
if (Fe)
|
|
289
293
|
return xe;
|
|
290
294
|
Fe = 1;
|
|
@@ -343,7 +347,7 @@ function et() {
|
|
|
343
347
|
return Ue || (Ue = 1, ge = Function.call.bind(Object.prototype.hasOwnProperty)), ge;
|
|
344
348
|
}
|
|
345
349
|
var Re, Be;
|
|
346
|
-
function
|
|
350
|
+
function Mt() {
|
|
347
351
|
if (Be)
|
|
348
352
|
return Re;
|
|
349
353
|
Be = 1;
|
|
@@ -393,11 +397,11 @@ function Dt() {
|
|
|
393
397
|
}, Re = i, Re;
|
|
394
398
|
}
|
|
395
399
|
var Oe, ze;
|
|
396
|
-
function
|
|
400
|
+
function It() {
|
|
397
401
|
if (ze)
|
|
398
402
|
return Oe;
|
|
399
403
|
ze = 1;
|
|
400
|
-
var e = Qe(), n =
|
|
404
|
+
var e = Qe(), n = Dt(), o = Le(), r = et(), i = Mt(), t = function() {
|
|
401
405
|
};
|
|
402
406
|
process.env.NODE_ENV !== "production" && (t = function(u) {
|
|
403
407
|
var d = "Warning: " + u;
|
|
@@ -418,14 +422,14 @@ function Mt() {
|
|
|
418
422
|
return l;
|
|
419
423
|
}
|
|
420
424
|
var _ = "<<anonymous>>", A = {
|
|
421
|
-
array:
|
|
422
|
-
bigint:
|
|
423
|
-
bool:
|
|
424
|
-
func:
|
|
425
|
-
number:
|
|
426
|
-
object:
|
|
427
|
-
string:
|
|
428
|
-
symbol:
|
|
425
|
+
array: $("array"),
|
|
426
|
+
bigint: $("bigint"),
|
|
427
|
+
bool: $("boolean"),
|
|
428
|
+
func: $("function"),
|
|
429
|
+
number: $("number"),
|
|
430
|
+
object: $("object"),
|
|
431
|
+
string: $("string"),
|
|
432
|
+
symbol: $("symbol"),
|
|
429
433
|
any: U(),
|
|
430
434
|
arrayOf: M,
|
|
431
435
|
element: j(),
|
|
@@ -433,7 +437,7 @@ function Mt() {
|
|
|
433
437
|
instanceOf: N,
|
|
434
438
|
node: ye(),
|
|
435
439
|
objectOf: pe,
|
|
436
|
-
oneOf:
|
|
440
|
+
oneOf: X,
|
|
437
441
|
oneOfType: ve,
|
|
438
442
|
shape: Ee,
|
|
439
443
|
exact: me
|
|
@@ -441,14 +445,14 @@ function Mt() {
|
|
|
441
445
|
function D(a, l) {
|
|
442
446
|
return a === l ? a !== 0 || 1 / a === 1 / l : a !== a && l !== l;
|
|
443
447
|
}
|
|
444
|
-
function
|
|
448
|
+
function w(a, l) {
|
|
445
449
|
this.message = a, this.data = l && typeof l == "object" ? l : {}, this.stack = "";
|
|
446
450
|
}
|
|
447
|
-
|
|
451
|
+
w.prototype = Error.prototype;
|
|
448
452
|
function I(a) {
|
|
449
453
|
if (process.env.NODE_ENV !== "production")
|
|
450
454
|
var l = {}, T = 0;
|
|
451
|
-
function b(g, h, x, R,
|
|
455
|
+
function b(g, h, x, R, P, O, q) {
|
|
452
456
|
if (R = R || _, O = O || x, q !== o) {
|
|
453
457
|
if (d) {
|
|
454
458
|
var f = new Error(
|
|
@@ -463,17 +467,17 @@ function Mt() {
|
|
|
463
467
|
), l[F] = !0, T++);
|
|
464
468
|
}
|
|
465
469
|
}
|
|
466
|
-
return h[x] == null ? g ? h[x] === null ? new
|
|
470
|
+
return h[x] == null ? g ? h[x] === null ? new w("The " + P + " `" + O + "` is marked as required " + ("in `" + R + "`, but its value is `null`.")) : new w("The " + P + " `" + O + "` is marked as required in " + ("`" + R + "`, but its value is `undefined`.")) : null : a(h, x, R, P, O);
|
|
467
471
|
}
|
|
468
472
|
var E = b.bind(null, !1);
|
|
469
473
|
return E.isRequired = b.bind(null, !0), E;
|
|
470
474
|
}
|
|
471
|
-
function
|
|
475
|
+
function $(a) {
|
|
472
476
|
function l(T, b, E, g, h, x) {
|
|
473
|
-
var R = T[b],
|
|
474
|
-
if (
|
|
475
|
-
var O =
|
|
476
|
-
return new
|
|
477
|
+
var R = T[b], P = W(R);
|
|
478
|
+
if (P !== a) {
|
|
479
|
+
var O = K(R);
|
|
480
|
+
return new w(
|
|
477
481
|
"Invalid " + g + " `" + h + "` of type " + ("`" + O + "` supplied to `" + E + "`, expected ") + ("`" + a + "`."),
|
|
478
482
|
{ expectedType: a }
|
|
479
483
|
);
|
|
@@ -488,14 +492,14 @@ function Mt() {
|
|
|
488
492
|
function M(a) {
|
|
489
493
|
function l(T, b, E, g, h) {
|
|
490
494
|
if (typeof a != "function")
|
|
491
|
-
return new
|
|
495
|
+
return new w("Property `" + h + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
492
496
|
var x = T[b];
|
|
493
497
|
if (!Array.isArray(x)) {
|
|
494
498
|
var R = W(x);
|
|
495
|
-
return new
|
|
499
|
+
return new w("Invalid " + g + " `" + h + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an array."));
|
|
496
500
|
}
|
|
497
|
-
for (var
|
|
498
|
-
var O = a(x,
|
|
501
|
+
for (var P = 0; P < x.length; P++) {
|
|
502
|
+
var O = a(x, P, E, g, h + "[" + P + "]", o);
|
|
499
503
|
if (O instanceof Error)
|
|
500
504
|
return O;
|
|
501
505
|
}
|
|
@@ -508,7 +512,7 @@ function Mt() {
|
|
|
508
512
|
var h = l[T];
|
|
509
513
|
if (!u(h)) {
|
|
510
514
|
var x = W(h);
|
|
511
|
-
return new
|
|
515
|
+
return new w("Invalid " + E + " `" + g + "` of type " + ("`" + x + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
512
516
|
}
|
|
513
517
|
return null;
|
|
514
518
|
}
|
|
@@ -519,7 +523,7 @@ function Mt() {
|
|
|
519
523
|
var h = l[T];
|
|
520
524
|
if (!e.isValidElementType(h)) {
|
|
521
525
|
var x = W(h);
|
|
522
|
-
return new
|
|
526
|
+
return new w("Invalid " + E + " `" + g + "` of type " + ("`" + x + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
523
527
|
}
|
|
524
528
|
return null;
|
|
525
529
|
}
|
|
@@ -529,13 +533,13 @@ function Mt() {
|
|
|
529
533
|
function l(T, b, E, g, h) {
|
|
530
534
|
if (!(T[b] instanceof a)) {
|
|
531
535
|
var x = a.name || _, R = be(T[b]);
|
|
532
|
-
return new
|
|
536
|
+
return new w("Invalid " + g + " `" + h + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected ") + ("instance of `" + x + "`."));
|
|
533
537
|
}
|
|
534
538
|
return null;
|
|
535
539
|
}
|
|
536
540
|
return I(l);
|
|
537
541
|
}
|
|
538
|
-
function
|
|
542
|
+
function X(a) {
|
|
539
543
|
if (!Array.isArray(a))
|
|
540
544
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? t(
|
|
541
545
|
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
@@ -544,24 +548,24 @@ function Mt() {
|
|
|
544
548
|
for (var x = T[b], R = 0; R < a.length; R++)
|
|
545
549
|
if (D(x, a[R]))
|
|
546
550
|
return null;
|
|
547
|
-
var
|
|
548
|
-
var F =
|
|
551
|
+
var P = JSON.stringify(a, function(q, f) {
|
|
552
|
+
var F = K(f);
|
|
549
553
|
return F === "symbol" ? String(f) : f;
|
|
550
554
|
});
|
|
551
|
-
return new
|
|
555
|
+
return new w("Invalid " + g + " `" + h + "` of value `" + String(x) + "` " + ("supplied to `" + E + "`, expected one of " + P + "."));
|
|
552
556
|
}
|
|
553
557
|
return I(l);
|
|
554
558
|
}
|
|
555
559
|
function pe(a) {
|
|
556
560
|
function l(T, b, E, g, h) {
|
|
557
561
|
if (typeof a != "function")
|
|
558
|
-
return new
|
|
562
|
+
return new w("Property `" + h + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
559
563
|
var x = T[b], R = W(x);
|
|
560
564
|
if (R !== "object")
|
|
561
|
-
return new
|
|
562
|
-
for (var
|
|
563
|
-
if (r(x,
|
|
564
|
-
var O = a(x,
|
|
565
|
+
return new w("Invalid " + g + " `" + h + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an object."));
|
|
566
|
+
for (var P in x)
|
|
567
|
+
if (r(x, P)) {
|
|
568
|
+
var O = a(x, P, E, g, h + "." + P, o);
|
|
565
569
|
if (O instanceof Error)
|
|
566
570
|
return O;
|
|
567
571
|
}
|
|
@@ -580,25 +584,25 @@ function Mt() {
|
|
|
580
584
|
), s;
|
|
581
585
|
}
|
|
582
586
|
function b(E, g, h, x, R) {
|
|
583
|
-
for (var
|
|
587
|
+
for (var P = [], O = 0; O < a.length; O++) {
|
|
584
588
|
var q = a[O], f = q(E, g, h, x, R, o);
|
|
585
589
|
if (f == null)
|
|
586
590
|
return null;
|
|
587
|
-
f.data && r(f.data, "expectedType") &&
|
|
591
|
+
f.data && r(f.data, "expectedType") && P.push(f.data.expectedType);
|
|
588
592
|
}
|
|
589
|
-
var F =
|
|
590
|
-
return new
|
|
593
|
+
var F = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
|
|
594
|
+
return new w("Invalid " + x + " `" + R + "` supplied to " + ("`" + h + "`" + F + "."));
|
|
591
595
|
}
|
|
592
596
|
return I(b);
|
|
593
597
|
}
|
|
594
598
|
function ye() {
|
|
595
599
|
function a(l, T, b, E, g) {
|
|
596
|
-
return ee(l[T]) ? null : new
|
|
600
|
+
return ee(l[T]) ? null : new w("Invalid " + E + " `" + g + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
597
601
|
}
|
|
598
602
|
return I(a);
|
|
599
603
|
}
|
|
600
604
|
function ie(a, l, T, b, E) {
|
|
601
|
-
return new
|
|
605
|
+
return new w(
|
|
602
606
|
(a || "React class") + ": " + l + " type `" + T + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
603
607
|
);
|
|
604
608
|
}
|
|
@@ -606,12 +610,12 @@ function Mt() {
|
|
|
606
610
|
function l(T, b, E, g, h) {
|
|
607
611
|
var x = T[b], R = W(x);
|
|
608
612
|
if (R !== "object")
|
|
609
|
-
return new
|
|
610
|
-
for (var
|
|
611
|
-
var O = a[
|
|
613
|
+
return new w("Invalid " + g + " `" + h + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
614
|
+
for (var P in a) {
|
|
615
|
+
var O = a[P];
|
|
612
616
|
if (typeof O != "function")
|
|
613
|
-
return ie(E, g, h,
|
|
614
|
-
var q = O(x,
|
|
617
|
+
return ie(E, g, h, P, K(O));
|
|
618
|
+
var q = O(x, P, E, g, h + "." + P, o);
|
|
615
619
|
if (q)
|
|
616
620
|
return q;
|
|
617
621
|
}
|
|
@@ -623,14 +627,14 @@ function Mt() {
|
|
|
623
627
|
function l(T, b, E, g, h) {
|
|
624
628
|
var x = T[b], R = W(x);
|
|
625
629
|
if (R !== "object")
|
|
626
|
-
return new
|
|
627
|
-
var
|
|
628
|
-
for (var O in
|
|
630
|
+
return new w("Invalid " + g + " `" + h + "` of type `" + R + "` " + ("supplied to `" + E + "`, expected `object`."));
|
|
631
|
+
var P = n({}, T[b], a);
|
|
632
|
+
for (var O in P) {
|
|
629
633
|
var q = a[O];
|
|
630
634
|
if (r(a, O) && typeof q != "function")
|
|
631
|
-
return ie(E, g, h, O,
|
|
635
|
+
return ie(E, g, h, O, K(q));
|
|
632
636
|
if (!q)
|
|
633
|
-
return new
|
|
637
|
+
return new w(
|
|
634
638
|
"Invalid " + g + " `" + h + "` key `" + O + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(T[b], null, " ") + `
|
|
635
639
|
Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
636
640
|
);
|
|
@@ -682,7 +686,7 @@ Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
|
682
686
|
var l = typeof a;
|
|
683
687
|
return Array.isArray(a) ? "array" : a instanceof RegExp ? "object" : he(l, a) ? "symbol" : l;
|
|
684
688
|
}
|
|
685
|
-
function
|
|
689
|
+
function K(a) {
|
|
686
690
|
if (typeof a > "u" || a === null)
|
|
687
691
|
return "" + a;
|
|
688
692
|
var l = W(a);
|
|
@@ -695,7 +699,7 @@ Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
|
695
699
|
return l;
|
|
696
700
|
}
|
|
697
701
|
function ae(a) {
|
|
698
|
-
var l =
|
|
702
|
+
var l = K(a);
|
|
699
703
|
switch (l) {
|
|
700
704
|
case "array":
|
|
701
705
|
case "object":
|
|
@@ -715,7 +719,7 @@ Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
|
715
719
|
}, Oe;
|
|
716
720
|
}
|
|
717
721
|
var _e, Ve;
|
|
718
|
-
function
|
|
722
|
+
function Lt() {
|
|
719
723
|
if (Ve)
|
|
720
724
|
return _e;
|
|
721
725
|
Ve = 1;
|
|
@@ -764,15 +768,15 @@ function It() {
|
|
|
764
768
|
}, _e;
|
|
765
769
|
}
|
|
766
770
|
if (process.env.NODE_ENV !== "production") {
|
|
767
|
-
var
|
|
768
|
-
|
|
771
|
+
var $t = Qe(), kt = !0;
|
|
772
|
+
we.exports = It()($t.isElement, kt);
|
|
769
773
|
} else
|
|
770
|
-
|
|
771
|
-
var
|
|
772
|
-
const m = /* @__PURE__ */ at(
|
|
774
|
+
we.exports = Lt()();
|
|
775
|
+
var Nt = we.exports;
|
|
776
|
+
const m = /* @__PURE__ */ at(Nt), Ge = {
|
|
773
777
|
disabled: !1
|
|
774
778
|
};
|
|
775
|
-
var
|
|
779
|
+
var qt = process.env.NODE_ENV !== "production" ? m.oneOfType([m.number, m.shape({
|
|
776
780
|
enter: m.number,
|
|
777
781
|
exit: m.number,
|
|
778
782
|
appear: m.number
|
|
@@ -790,15 +794,15 @@ process.env.NODE_ENV !== "production" && m.oneOfType([m.string, m.shape({
|
|
|
790
794
|
exitActive: m.string
|
|
791
795
|
})]);
|
|
792
796
|
const tt = Z.createContext(null);
|
|
793
|
-
var
|
|
797
|
+
var Wt = function(n) {
|
|
794
798
|
return n.scrollTop;
|
|
795
|
-
}, re = "unmounted", H = "exited",
|
|
796
|
-
|
|
799
|
+
}, re = "unmounted", H = "exited", G = "entering", J = "entered", je = "exiting", z = /* @__PURE__ */ function(e) {
|
|
800
|
+
xt(n, e);
|
|
797
801
|
function n(r, i) {
|
|
798
802
|
var t;
|
|
799
803
|
t = e.call(this, r, i) || this;
|
|
800
804
|
var s = i, u = s && !s.isMounting ? r.enter : r.appear, d;
|
|
801
|
-
return t.appearStatus = null, r.in ? u ? (d = H, t.appearStatus =
|
|
805
|
+
return t.appearStatus = null, r.in ? u ? (d = H, t.appearStatus = G) : d = J : r.unmountOnExit || r.mountOnEnter ? d = re : d = H, t.state = {
|
|
802
806
|
status: d
|
|
803
807
|
}, t.nextCallback = null, t;
|
|
804
808
|
}
|
|
@@ -815,7 +819,7 @@ var qt = function(n) {
|
|
|
815
819
|
var t = null;
|
|
816
820
|
if (i !== this.props) {
|
|
817
821
|
var s = this.state.status;
|
|
818
|
-
this.props.in ? s !==
|
|
822
|
+
this.props.in ? s !== G && s !== J && (t = G) : (s === G || s === J) && (t = je);
|
|
819
823
|
}
|
|
820
824
|
this.updateStatus(!1, t);
|
|
821
825
|
}, o.componentWillUnmount = function() {
|
|
@@ -829,10 +833,10 @@ var qt = function(n) {
|
|
|
829
833
|
};
|
|
830
834
|
}, o.updateStatus = function(i, t) {
|
|
831
835
|
if (i === void 0 && (i = !1), t !== null)
|
|
832
|
-
if (this.cancelNextCallback(), t ===
|
|
836
|
+
if (this.cancelNextCallback(), t === G) {
|
|
833
837
|
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
834
838
|
var s = this.props.nodeRef ? this.props.nodeRef.current : ne.findDOMNode(this);
|
|
835
|
-
s &&
|
|
839
|
+
s && Wt(s);
|
|
836
840
|
}
|
|
837
841
|
this.performEnter(i);
|
|
838
842
|
} else
|
|
@@ -852,7 +856,7 @@ var qt = function(n) {
|
|
|
852
856
|
return;
|
|
853
857
|
}
|
|
854
858
|
this.props.onEnter(p, v), this.safeSetState({
|
|
855
|
-
status:
|
|
859
|
+
status: G
|
|
856
860
|
}, function() {
|
|
857
861
|
t.props.onEntering(p, v), t.onTransitionEnd(_, function() {
|
|
858
862
|
t.safeSetState({
|
|
@@ -912,7 +916,7 @@ var qt = function(n) {
|
|
|
912
916
|
return null;
|
|
913
917
|
var t = this.props, s = t.children;
|
|
914
918
|
t.in, t.mountOnEnter, t.unmountOnExit, t.appear, t.enter, t.exit, t.timeout, t.addEndListener, t.onEnter, t.onEntering, t.onEntered, t.onExit, t.onExiting, t.onExited, t.nodeRef;
|
|
915
|
-
var u =
|
|
919
|
+
var u = bt(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
916
920
|
return (
|
|
917
921
|
// allows for nested Transitions
|
|
918
922
|
/* @__PURE__ */ Z.createElement(tt.Provider, {
|
|
@@ -921,8 +925,8 @@ var qt = function(n) {
|
|
|
921
925
|
);
|
|
922
926
|
}, n;
|
|
923
927
|
}(Z.Component);
|
|
924
|
-
|
|
925
|
-
|
|
928
|
+
z.contextType = tt;
|
|
929
|
+
z.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
926
930
|
/**
|
|
927
931
|
* A React reference to DOM element that need to transition:
|
|
928
932
|
* https://stackoverflow.com/a/51127130/4671932
|
|
@@ -1018,7 +1022,7 @@ B.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1018
1022
|
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
1019
1023
|
*/
|
|
1020
1024
|
timeout: function(n) {
|
|
1021
|
-
var o =
|
|
1025
|
+
var o = qt;
|
|
1022
1026
|
n.addEndListener || (o = o.isRequired);
|
|
1023
1027
|
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
|
|
1024
1028
|
i[t - 1] = arguments[t];
|
|
@@ -1093,7 +1097,7 @@ B.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
1093
1097
|
} : {};
|
|
1094
1098
|
function te() {
|
|
1095
1099
|
}
|
|
1096
|
-
|
|
1100
|
+
z.defaultProps = {
|
|
1097
1101
|
in: !1,
|
|
1098
1102
|
mountOnEnter: !1,
|
|
1099
1103
|
unmountOnExit: !1,
|
|
@@ -1107,12 +1111,12 @@ B.defaultProps = {
|
|
|
1107
1111
|
onExiting: te,
|
|
1108
1112
|
onExited: te
|
|
1109
1113
|
};
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
const
|
|
1114
|
+
z.UNMOUNTED = re;
|
|
1115
|
+
z.EXITED = H;
|
|
1116
|
+
z.ENTERING = G;
|
|
1117
|
+
z.ENTERED = J;
|
|
1118
|
+
z.EXITING = je;
|
|
1119
|
+
const Ft = z, $e = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
1116
1120
|
var Ae = !1, De = !1;
|
|
1117
1121
|
try {
|
|
1118
1122
|
var Se = {
|
|
@@ -1126,7 +1130,7 @@ try {
|
|
|
1126
1130
|
$e && (window.addEventListener("test", Se, Se), window.removeEventListener("test", Se, !0));
|
|
1127
1131
|
} catch {
|
|
1128
1132
|
}
|
|
1129
|
-
function
|
|
1133
|
+
function Yt(e, n, o, r) {
|
|
1130
1134
|
if (r && typeof r != "boolean" && !De) {
|
|
1131
1135
|
var i = r.once, t = r.capture, s = o;
|
|
1132
1136
|
!De && i && (s = o.__once || function u(d) {
|
|
@@ -1135,29 +1139,29 @@ function Ft(e, n, o, r) {
|
|
|
1135
1139
|
}
|
|
1136
1140
|
e.addEventListener(n, o, r);
|
|
1137
1141
|
}
|
|
1138
|
-
function
|
|
1142
|
+
function Ut(e, n, o, r) {
|
|
1139
1143
|
var i = r && typeof r != "boolean" ? r.capture : r;
|
|
1140
1144
|
e.removeEventListener(n, o, i), o.__once && e.removeEventListener(n, o.__once, i);
|
|
1141
1145
|
}
|
|
1142
1146
|
function nt(e, n, o, r) {
|
|
1143
|
-
return
|
|
1144
|
-
|
|
1147
|
+
return Yt(e, n, o, r), function() {
|
|
1148
|
+
Ut(e, n, o, r);
|
|
1145
1149
|
};
|
|
1146
1150
|
}
|
|
1147
|
-
function
|
|
1151
|
+
function Bt(e, n, o, r) {
|
|
1148
1152
|
if (o === void 0 && (o = !1), r === void 0 && (r = !0), e) {
|
|
1149
1153
|
var i = document.createEvent("HTMLEvents");
|
|
1150
1154
|
i.initEvent(n, o, r), e.dispatchEvent(i);
|
|
1151
1155
|
}
|
|
1152
1156
|
}
|
|
1153
|
-
function
|
|
1157
|
+
function zt(e) {
|
|
1154
1158
|
var n = Ze(e, "transitionDuration") || "", o = n.indexOf("ms") === -1 ? 1e3 : 1;
|
|
1155
1159
|
return parseFloat(n) * o;
|
|
1156
1160
|
}
|
|
1157
|
-
function
|
|
1161
|
+
function Vt(e, n, o) {
|
|
1158
1162
|
o === void 0 && (o = 5);
|
|
1159
1163
|
var r = !1, i = setTimeout(function() {
|
|
1160
|
-
r ||
|
|
1164
|
+
r || Bt(e, "transitionend", !0);
|
|
1161
1165
|
}, n + o), t = nt(e, "transitionend", function() {
|
|
1162
1166
|
r = !0;
|
|
1163
1167
|
}, {
|
|
@@ -1167,9 +1171,9 @@ function zt(e, n, o) {
|
|
|
1167
1171
|
clearTimeout(i), t();
|
|
1168
1172
|
};
|
|
1169
1173
|
}
|
|
1170
|
-
function
|
|
1171
|
-
o == null && (o =
|
|
1172
|
-
var i =
|
|
1174
|
+
function Gt(e, n, o, r) {
|
|
1175
|
+
o == null && (o = zt(e) || 0);
|
|
1176
|
+
var i = Vt(e, o, r), t = nt(e, "transitionend", n);
|
|
1173
1177
|
return function() {
|
|
1174
1178
|
i(), t();
|
|
1175
1179
|
};
|
|
@@ -1178,30 +1182,30 @@ function Xe(e, n) {
|
|
|
1178
1182
|
const o = Ze(e, n) || "", r = o.indexOf("ms") === -1 ? 1e3 : 1;
|
|
1179
1183
|
return parseFloat(o) * r;
|
|
1180
1184
|
}
|
|
1181
|
-
function
|
|
1182
|
-
const o = Xe(e, "transitionDuration"), r = Xe(e, "transitionDelay"), i =
|
|
1185
|
+
function Xt(e, n) {
|
|
1186
|
+
const o = Xe(e, "transitionDuration"), r = Xe(e, "transitionDelay"), i = Gt(e, (t) => {
|
|
1183
1187
|
t.target === e && (i(), n(t));
|
|
1184
1188
|
}, o + r);
|
|
1185
1189
|
}
|
|
1186
|
-
function
|
|
1190
|
+
function Kt(e) {
|
|
1187
1191
|
e.offsetHeight;
|
|
1188
1192
|
}
|
|
1189
1193
|
const Ke = (e) => !e || typeof e == "function" ? e : (n) => {
|
|
1190
1194
|
e.current = n;
|
|
1191
1195
|
};
|
|
1192
|
-
function
|
|
1196
|
+
function Ht(e, n) {
|
|
1193
1197
|
const o = Ke(e), r = Ke(n);
|
|
1194
1198
|
return (i) => {
|
|
1195
1199
|
o && o(i), r && r(i);
|
|
1196
1200
|
};
|
|
1197
1201
|
}
|
|
1198
1202
|
function de(e, n) {
|
|
1199
|
-
return st(() =>
|
|
1203
|
+
return st(() => Ht(e, n), [e, n]);
|
|
1200
1204
|
}
|
|
1201
|
-
function
|
|
1205
|
+
function Jt(e) {
|
|
1202
1206
|
return e && "setState" in e ? ne.findDOMNode(e) : e ?? null;
|
|
1203
1207
|
}
|
|
1204
|
-
const
|
|
1208
|
+
const Zt = /* @__PURE__ */ Z.forwardRef(({
|
|
1205
1209
|
onEnter: e,
|
|
1206
1210
|
onEntering: n,
|
|
1207
1211
|
onEntered: o,
|
|
@@ -1214,57 +1218,57 @@ const Jt = /* @__PURE__ */ Z.forwardRef(({
|
|
|
1214
1218
|
...p
|
|
1215
1219
|
}, v) => {
|
|
1216
1220
|
const y = Y(null), _ = de(y, d), A = (N) => {
|
|
1217
|
-
_(
|
|
1218
|
-
}, D = (N) => (
|
|
1219
|
-
N && y.current && N(y.current,
|
|
1220
|
-
},
|
|
1221
|
-
return /* @__PURE__ */
|
|
1221
|
+
_(Jt(N));
|
|
1222
|
+
}, D = (N) => (X) => {
|
|
1223
|
+
N && y.current && N(y.current, X);
|
|
1224
|
+
}, w = k(D(e), [e]), I = k(D(n), [n]), $ = k(D(o), [o]), U = k(D(r), [r]), M = k(D(i), [i]), j = k(D(t), [t]), c = k(D(s), [s]);
|
|
1225
|
+
return /* @__PURE__ */ L.jsx(Ft, {
|
|
1222
1226
|
ref: v,
|
|
1223
1227
|
...p,
|
|
1224
|
-
onEnter:
|
|
1225
|
-
onEntered:
|
|
1228
|
+
onEnter: w,
|
|
1229
|
+
onEntered: $,
|
|
1226
1230
|
onEntering: I,
|
|
1227
1231
|
onExit: U,
|
|
1228
1232
|
onExited: j,
|
|
1229
1233
|
onExiting: M,
|
|
1230
1234
|
addEndListener: c,
|
|
1231
1235
|
nodeRef: y,
|
|
1232
|
-
children: typeof u == "function" ? (N,
|
|
1236
|
+
children: typeof u == "function" ? (N, X) => (
|
|
1233
1237
|
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
1234
1238
|
u(N, {
|
|
1235
|
-
...
|
|
1239
|
+
...X,
|
|
1236
1240
|
ref: A
|
|
1237
1241
|
})
|
|
1238
1242
|
) : /* @__PURE__ */ Z.cloneElement(u, {
|
|
1239
1243
|
ref: A
|
|
1240
1244
|
})
|
|
1241
1245
|
});
|
|
1242
|
-
}),
|
|
1243
|
-
function
|
|
1246
|
+
}), Qt = Zt;
|
|
1247
|
+
function en(e) {
|
|
1244
1248
|
const n = Y(e);
|
|
1245
1249
|
return Q(() => {
|
|
1246
1250
|
n.current = e;
|
|
1247
1251
|
}, [e]), n;
|
|
1248
1252
|
}
|
|
1249
1253
|
function rt(e) {
|
|
1250
|
-
const n =
|
|
1254
|
+
const n = en(e);
|
|
1251
1255
|
return k(function(...o) {
|
|
1252
1256
|
return n.current && n.current(...o);
|
|
1253
1257
|
}, [n]);
|
|
1254
1258
|
}
|
|
1255
|
-
function
|
|
1259
|
+
function _n() {
|
|
1256
1260
|
return Me(null);
|
|
1257
1261
|
}
|
|
1258
|
-
function
|
|
1262
|
+
function Sn() {
|
|
1259
1263
|
const e = Y(!0), n = Y(() => e.current);
|
|
1260
1264
|
return Q(() => (e.current = !0, () => {
|
|
1261
1265
|
e.current = !1;
|
|
1262
1266
|
}), []), n.current;
|
|
1263
1267
|
}
|
|
1264
|
-
const
|
|
1268
|
+
const tn = typeof global < "u" && // @ts-ignore
|
|
1265
1269
|
global.navigator && // @ts-ignore
|
|
1266
|
-
global.navigator.product === "ReactNative",
|
|
1267
|
-
[
|
|
1270
|
+
global.navigator.product === "ReactNative", nn = typeof document < "u", He = nn || tn ? ut : Q, rn = {
|
|
1271
|
+
[G]: "show",
|
|
1268
1272
|
[J]: "show"
|
|
1269
1273
|
}, ot = /* @__PURE__ */ fe.forwardRef(({
|
|
1270
1274
|
className: e,
|
|
@@ -1281,31 +1285,31 @@ global.navigator.product === "ReactNative", tn = typeof document < "u", He = tn
|
|
|
1281
1285
|
appear: !1,
|
|
1282
1286
|
...i
|
|
1283
1287
|
}, u = k((d, p) => {
|
|
1284
|
-
|
|
1288
|
+
Kt(d), r == null || r(d, p);
|
|
1285
1289
|
}, [r]);
|
|
1286
|
-
return /* @__PURE__ */
|
|
1290
|
+
return /* @__PURE__ */ L.jsx(Qt, {
|
|
1287
1291
|
ref: t,
|
|
1288
|
-
addEndListener:
|
|
1292
|
+
addEndListener: Xt,
|
|
1289
1293
|
...s,
|
|
1290
1294
|
onEnter: u,
|
|
1291
1295
|
childRef: n.ref,
|
|
1292
1296
|
children: (d, p) => /* @__PURE__ */ fe.cloneElement(n, {
|
|
1293
1297
|
...p,
|
|
1294
|
-
className:
|
|
1298
|
+
className: B("fade", e, n.props.className, rn[d], o[d])
|
|
1295
1299
|
})
|
|
1296
1300
|
});
|
|
1297
1301
|
});
|
|
1298
1302
|
ot.displayName = "Fade";
|
|
1299
|
-
const
|
|
1300
|
-
function
|
|
1303
|
+
const Cn = ot;
|
|
1304
|
+
function on(e) {
|
|
1301
1305
|
const n = Y(e);
|
|
1302
1306
|
return n.current = e, n;
|
|
1303
1307
|
}
|
|
1304
|
-
function
|
|
1305
|
-
const n =
|
|
1308
|
+
function Pn(e) {
|
|
1309
|
+
const n = on(e);
|
|
1306
1310
|
Q(() => () => n.current(), []);
|
|
1307
1311
|
}
|
|
1308
|
-
function
|
|
1312
|
+
function wn(e, n) {
|
|
1309
1313
|
if (e.contains)
|
|
1310
1314
|
return e.contains(n);
|
|
1311
1315
|
if (e.compareDocumentPosition)
|
|
@@ -1313,24 +1317,24 @@ function Cn(e, n) {
|
|
|
1313
1317
|
}
|
|
1314
1318
|
const it = /* @__PURE__ */ ct($e ? window : void 0);
|
|
1315
1319
|
it.Provider;
|
|
1316
|
-
function
|
|
1320
|
+
function an() {
|
|
1317
1321
|
return oe(it);
|
|
1318
1322
|
}
|
|
1319
|
-
const
|
|
1320
|
-
function
|
|
1321
|
-
const o =
|
|
1323
|
+
const Ce = (e, n) => $e ? e == null ? (n || Je()).body : (typeof e == "function" && (e = e()), e && "current" in e && (e = e.current), e && ("nodeType" in e || e.getBoundingClientRect) ? e : null) : null;
|
|
1324
|
+
function jn(e, n) {
|
|
1325
|
+
const o = an(), [r, i] = Me(() => Ce(e, o == null ? void 0 : o.document));
|
|
1322
1326
|
if (!r) {
|
|
1323
|
-
const t =
|
|
1327
|
+
const t = Ce(e);
|
|
1324
1328
|
t && i(t);
|
|
1325
1329
|
}
|
|
1326
1330
|
return Q(() => {
|
|
1327
1331
|
n && r && n(r);
|
|
1328
1332
|
}, [n, r]), Q(() => {
|
|
1329
|
-
const t =
|
|
1333
|
+
const t = Ce(e);
|
|
1330
1334
|
t !== r && i(t);
|
|
1331
1335
|
}, [e, r]), r;
|
|
1332
1336
|
}
|
|
1333
|
-
function
|
|
1337
|
+
function sn({
|
|
1334
1338
|
children: e,
|
|
1335
1339
|
in: n,
|
|
1336
1340
|
onExited: o,
|
|
@@ -1346,8 +1350,8 @@ function an({
|
|
|
1346
1350
|
});
|
|
1347
1351
|
return n ? p : i || !s.current && r ? null : p;
|
|
1348
1352
|
}
|
|
1349
|
-
const
|
|
1350
|
-
function
|
|
1353
|
+
const un = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
|
|
1354
|
+
function cn(e, n) {
|
|
1351
1355
|
if (e == null)
|
|
1352
1356
|
return {};
|
|
1353
1357
|
var o = {}, r = Object.keys(e), i, t;
|
|
@@ -1355,7 +1359,7 @@ function un(e, n) {
|
|
|
1355
1359
|
i = r[t], !(n.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
1356
1360
|
return o;
|
|
1357
1361
|
}
|
|
1358
|
-
function
|
|
1362
|
+
function fn(e) {
|
|
1359
1363
|
let {
|
|
1360
1364
|
onEnter: n,
|
|
1361
1365
|
onEntering: o,
|
|
@@ -1365,10 +1369,10 @@ function cn(e) {
|
|
|
1365
1369
|
onExited: s,
|
|
1366
1370
|
addEndListener: u,
|
|
1367
1371
|
children: d
|
|
1368
|
-
} = e, p =
|
|
1372
|
+
} = e, p = cn(e, un);
|
|
1369
1373
|
const v = Y(null), y = de(v, typeof d == "function" ? null : d.ref), _ = (j) => (c) => {
|
|
1370
1374
|
j && v.current && j(v.current, c);
|
|
1371
|
-
}, A = k(_(n), [n]), D = k(_(o), [o]),
|
|
1375
|
+
}, A = k(_(n), [n]), D = k(_(o), [o]), w = k(_(r), [r]), I = k(_(i), [i]), $ = k(_(t), [t]), U = k(_(s), [s]), M = k(_(u), [u]);
|
|
1372
1376
|
return Object.assign({}, p, {
|
|
1373
1377
|
nodeRef: v
|
|
1374
1378
|
}, n && {
|
|
@@ -1376,11 +1380,11 @@ function cn(e) {
|
|
|
1376
1380
|
}, o && {
|
|
1377
1381
|
onEntering: D
|
|
1378
1382
|
}, r && {
|
|
1379
|
-
onEntered:
|
|
1383
|
+
onEntered: w
|
|
1380
1384
|
}, i && {
|
|
1381
1385
|
onExit: I
|
|
1382
1386
|
}, t && {
|
|
1383
|
-
onExiting:
|
|
1387
|
+
onExiting: $
|
|
1384
1388
|
}, s && {
|
|
1385
1389
|
onExited: U
|
|
1386
1390
|
}, u && {
|
|
@@ -1396,8 +1400,8 @@ function cn(e) {
|
|
|
1396
1400
|
})
|
|
1397
1401
|
});
|
|
1398
1402
|
}
|
|
1399
|
-
const
|
|
1400
|
-
function
|
|
1403
|
+
const ln = ["component"];
|
|
1404
|
+
function dn(e, n) {
|
|
1401
1405
|
if (e == null)
|
|
1402
1406
|
return {};
|
|
1403
1407
|
var o = {}, r = Object.keys(e), i, t;
|
|
@@ -1405,16 +1409,16 @@ function ln(e, n) {
|
|
|
1405
1409
|
i = r[t], !(n.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
1406
1410
|
return o;
|
|
1407
1411
|
}
|
|
1408
|
-
const
|
|
1412
|
+
const pn = /* @__PURE__ */ fe.forwardRef((e, n) => {
|
|
1409
1413
|
let {
|
|
1410
1414
|
component: o
|
|
1411
|
-
} = e, r =
|
|
1412
|
-
const i =
|
|
1413
|
-
return /* @__PURE__ */
|
|
1415
|
+
} = e, r = dn(e, ln);
|
|
1416
|
+
const i = fn(r);
|
|
1417
|
+
return /* @__PURE__ */ L.jsx(o, Object.assign({
|
|
1414
1418
|
ref: n
|
|
1415
1419
|
}, i));
|
|
1416
|
-
}),
|
|
1417
|
-
function
|
|
1420
|
+
}), vn = pn;
|
|
1421
|
+
function yn({
|
|
1418
1422
|
in: e,
|
|
1419
1423
|
onTransition: n
|
|
1420
1424
|
}) {
|
|
@@ -1435,7 +1439,7 @@ function vn({
|
|
|
1435
1439
|
r.current = !0;
|
|
1436
1440
|
}), []), o;
|
|
1437
1441
|
}
|
|
1438
|
-
function
|
|
1442
|
+
function En({
|
|
1439
1443
|
children: e,
|
|
1440
1444
|
in: n,
|
|
1441
1445
|
onExited: o,
|
|
@@ -1444,7 +1448,7 @@ function yn({
|
|
|
1444
1448
|
}) {
|
|
1445
1449
|
const [t, s] = Me(!n);
|
|
1446
1450
|
n && t && s(!1);
|
|
1447
|
-
const u =
|
|
1451
|
+
const u = yn({
|
|
1448
1452
|
in: !!n,
|
|
1449
1453
|
onTransition: (p) => {
|
|
1450
1454
|
const v = () => {
|
|
@@ -1459,54 +1463,54 @@ function yn({
|
|
|
1459
1463
|
ref: d
|
|
1460
1464
|
});
|
|
1461
1465
|
}
|
|
1462
|
-
function
|
|
1463
|
-
return e ? /* @__PURE__ */
|
|
1466
|
+
function An(e, n, o) {
|
|
1467
|
+
return e ? /* @__PURE__ */ L.jsx(vn, Object.assign({}, o, {
|
|
1464
1468
|
component: e
|
|
1465
|
-
})) : n ? /* @__PURE__ */
|
|
1469
|
+
})) : n ? /* @__PURE__ */ L.jsx(En, Object.assign({}, o, {
|
|
1466
1470
|
transition: n
|
|
1467
|
-
})) : /* @__PURE__ */
|
|
1471
|
+
})) : /* @__PURE__ */ L.jsx(sn, Object.assign({}, o));
|
|
1468
1472
|
}
|
|
1469
|
-
function
|
|
1473
|
+
function Dn(e) {
|
|
1470
1474
|
return e.code === "Escape" || e.keyCode === 27;
|
|
1471
1475
|
}
|
|
1472
|
-
function
|
|
1476
|
+
function Mn(e, n) {
|
|
1473
1477
|
return e.classList ? !!n && e.classList.contains(n) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + n + " ") !== -1;
|
|
1474
1478
|
}
|
|
1475
1479
|
export {
|
|
1476
1480
|
J as A,
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1481
|
+
Kt as B,
|
|
1482
|
+
gn as C,
|
|
1483
|
+
Rn as D,
|
|
1480
1484
|
H as E,
|
|
1481
|
-
|
|
1482
|
-
|
|
1485
|
+
Cn as F,
|
|
1486
|
+
sn as N,
|
|
1483
1487
|
m as P,
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
+
xn as T,
|
|
1489
|
+
bt as _,
|
|
1490
|
+
jn as a,
|
|
1491
|
+
Sn as b,
|
|
1488
1492
|
$e as c,
|
|
1489
1493
|
rt as d,
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1494
|
+
wn as e,
|
|
1495
|
+
Pn as f,
|
|
1496
|
+
Tn as g,
|
|
1497
|
+
Mn as h,
|
|
1498
|
+
Dn as i,
|
|
1499
|
+
_n as j,
|
|
1496
1500
|
de as k,
|
|
1497
1501
|
nt as l,
|
|
1498
|
-
|
|
1499
|
-
|
|
1502
|
+
On as m,
|
|
1503
|
+
Ut as n,
|
|
1500
1504
|
Je as o,
|
|
1501
|
-
|
|
1505
|
+
Yt as p,
|
|
1502
1506
|
He as q,
|
|
1503
|
-
|
|
1507
|
+
An as r,
|
|
1504
1508
|
Ze as s,
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1509
|
+
Gt as t,
|
|
1510
|
+
an as u,
|
|
1511
|
+
Jt as v,
|
|
1512
|
+
Qt as w,
|
|
1513
|
+
Xt as x,
|
|
1510
1514
|
je as y,
|
|
1511
|
-
|
|
1515
|
+
G as z
|
|
1512
1516
|
};
|