react-luminus-components 1.1.24 → 1.1.26
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/.vite/manifest.json +54 -56
- package/dist/{DataKey-C2SXqWR2.js → DataKey-BM6Hi4Og.js} +1 -1
- package/dist/DataKey-DN_Gd8yX.cjs +1 -0
- package/dist/SimpleTooltip-Bg8N9Up2.cjs +1 -0
- package/dist/SimpleTooltip-DnZSi_qT.js +5 -0
- package/dist/Typography-C0E6aQv2.cjs +1 -0
- package/dist/Typography-CsdF39gW.js +36 -0
- package/dist/UserAvatarToggle-0_jNWWSB.cjs +250 -0
- package/dist/UserAvatarToggle-xT1i6nSz.js +6444 -0
- package/dist/components/common/AppSearch/AppSearch.d.ts +6 -1
- package/dist/components/common/AppSearch/comps/AutocompleteWindow/AutocompleteWindow.d.ts +12 -0
- package/dist/components/common/AppSearch/comps/TypeSelector/TypeSelector.d.ts +9 -0
- package/dist/components/common/AppSearch/comps/index.d.ts +2 -0
- package/dist/components/common/AppSearch/hooks/useSearchItems.d.ts +6 -0
- package/dist/contexts/luminus-components/LuminusComponentsContext.d.ts +3 -2
- package/dist/contexts/luminus-components/LuminusComponentsProvider.d.ts +4 -3
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +103 -101
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +4 -4
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +3 -3
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +1210 -1171
- package/dist/models/index.d.ts +5 -0
- package/dist/models/texts/AppSearchTexts.d.ts +5 -0
- package/dist/models/types/SearchResultGroupKeyModel.d.ts +6 -0
- package/dist/models/types/SearchResultGroupModel.d.ts +7 -0
- package/dist/models/types/SearchResultModel.d.ts +8 -0
- package/dist/models/types/SearchType.d.ts +6 -0
- package/dist/style.css +1 -1
- package/dist/{textUtils-DW4f3rLU.js → textUtils-BLtD0zaS.js} +3 -3
- package/dist/{useConfirm-DYu6kYED.js → useConfirm-CQp43K_n.js} +1 -1
- package/dist/useConfirm-CdQJyKxQ.cjs +1 -0
- package/dist/utils.es.js +5 -5
- package/package.json +1 -1
- package/dist/DataKey-CvRVDggK.cjs +0 -1
- package/dist/SimpleTooltip-Bldb-kTm.js +0 -1622
- package/dist/SimpleTooltip-C_bpFbwl.cjs +0 -1
- package/dist/hasClass-BW_ewlE1.js +0 -1516
- package/dist/hasClass-uRfdPyYB.cjs +0 -20
- package/dist/useAxios-CMffjGyX.cjs +0 -231
- package/dist/useAxios-hDu0KL-3.js +0 -3314
- package/dist/useConfirm-BkwWgb-h.cjs +0 -1
|
@@ -1,1516 +0,0 @@
|
|
|
1
|
-
import { j as L, d as B, g as at } from "./useAxios-hDu0KL-3.js";
|
|
2
|
-
import * as fe from "react";
|
|
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
|
-
import ne from "react-dom";
|
|
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
|
-
h1: ft,
|
|
7
|
-
h3: lt,
|
|
8
|
-
h6: dt,
|
|
9
|
-
subtitle: pt,
|
|
10
|
-
body: vt,
|
|
11
|
-
body2: yt,
|
|
12
|
-
caption: Et,
|
|
13
|
-
"form-label": "_form-label_1p97i_50",
|
|
14
|
-
formLabel: mt
|
|
15
|
-
}, ht = ({ variant: e, className: n, children: o }) => {
|
|
16
|
-
switch (e) {
|
|
17
|
-
case "h1":
|
|
18
|
-
return /* @__PURE__ */ L.jsx("h1", { className: B("luminus-text-primary luminus-h1", V.h1, n), children: o });
|
|
19
|
-
case "h3":
|
|
20
|
-
return /* @__PURE__ */ L.jsx("h3", { className: B("luminus-text luminus-h3", V.h3, n), children: o });
|
|
21
|
-
case "h6":
|
|
22
|
-
return /* @__PURE__ */ L.jsx("h6", { className: B("luminus-text luminus-h6", V.h6, n), children: o });
|
|
23
|
-
case "subtitle":
|
|
24
|
-
return /* @__PURE__ */ L.jsx("div", { className: B("luminus-text luminus-subtitle", V.subtitle, n), children: o });
|
|
25
|
-
case "body":
|
|
26
|
-
return /* @__PURE__ */ L.jsx("div", { className: B("luminus-text luminus-body", V.body, n), children: o });
|
|
27
|
-
case "body2":
|
|
28
|
-
return /* @__PURE__ */ L.jsx("div", { className: B("luminus-text luminus-body2", V.body2, n), children: o });
|
|
29
|
-
case "caption":
|
|
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 });
|
|
33
|
-
default:
|
|
34
|
-
return /* @__PURE__ */ L.jsx(L.Fragment, { children: o });
|
|
35
|
-
}
|
|
36
|
-
}, xn = ({ variant: e, className: n, children: o }) => /* @__PURE__ */ L.jsx(ht, { variant: e, className: n, children: o });
|
|
37
|
-
function bt(e, n) {
|
|
38
|
-
if (e == null)
|
|
39
|
-
return {};
|
|
40
|
-
var o = {}, r = Object.keys(e), i, t;
|
|
41
|
-
for (t = 0; t < r.length; t++)
|
|
42
|
-
i = r[t], !(n.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
43
|
-
return o;
|
|
44
|
-
}
|
|
45
|
-
function Pe(e, n) {
|
|
46
|
-
return Pe = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(r, i) {
|
|
47
|
-
return r.__proto__ = i, r;
|
|
48
|
-
}, Pe(e, n);
|
|
49
|
-
}
|
|
50
|
-
function xt(e, n) {
|
|
51
|
-
e.prototype = Object.create(n.prototype), e.prototype.constructor = e, Pe(e, n);
|
|
52
|
-
}
|
|
53
|
-
const Tt = ["xxl", "xl", "lg", "md", "sm", "xs"], gt = "xs", le = /* @__PURE__ */ fe.createContext({
|
|
54
|
-
prefixes: {},
|
|
55
|
-
breakpoints: Tt,
|
|
56
|
-
minBreakpoint: gt
|
|
57
|
-
});
|
|
58
|
-
function Tn(e, n) {
|
|
59
|
-
const {
|
|
60
|
-
prefixes: o
|
|
61
|
-
} = oe(le);
|
|
62
|
-
return e || o[n] || n;
|
|
63
|
-
}
|
|
64
|
-
function gn() {
|
|
65
|
-
const {
|
|
66
|
-
breakpoints: e
|
|
67
|
-
} = oe(le);
|
|
68
|
-
return e;
|
|
69
|
-
}
|
|
70
|
-
function Rn() {
|
|
71
|
-
const {
|
|
72
|
-
minBreakpoint: e
|
|
73
|
-
} = oe(le);
|
|
74
|
-
return e;
|
|
75
|
-
}
|
|
76
|
-
function On() {
|
|
77
|
-
const {
|
|
78
|
-
dir: e
|
|
79
|
-
} = oe(le);
|
|
80
|
-
return e === "rtl";
|
|
81
|
-
}
|
|
82
|
-
function Je(e) {
|
|
83
|
-
return e && e.ownerDocument || document;
|
|
84
|
-
}
|
|
85
|
-
function Rt(e) {
|
|
86
|
-
var n = Je(e);
|
|
87
|
-
return n && n.defaultView || window;
|
|
88
|
-
}
|
|
89
|
-
function Ot(e, n) {
|
|
90
|
-
return Rt(e).getComputedStyle(e, n);
|
|
91
|
-
}
|
|
92
|
-
var _t = /([A-Z])/g;
|
|
93
|
-
function St(e) {
|
|
94
|
-
return e.replace(_t, "-$1").toLowerCase();
|
|
95
|
-
}
|
|
96
|
-
var Ct = /^ms-/;
|
|
97
|
-
function ue(e) {
|
|
98
|
-
return St(e).replace(Ct, "-ms-");
|
|
99
|
-
}
|
|
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));
|
|
103
|
-
}
|
|
104
|
-
function Ze(e, n) {
|
|
105
|
-
var o = "", r = "";
|
|
106
|
-
if (typeof n == "string")
|
|
107
|
-
return e.style.getPropertyValue(ue(n)) || Ot(e).getPropertyValue(ue(n));
|
|
108
|
-
Object.keys(n).forEach(function(i) {
|
|
109
|
-
var t = n[i];
|
|
110
|
-
!t && t !== 0 ? e.style.removeProperty(ue(i)) : wt(i) ? r += i + "(" + t + ") " : o += ue(i) + ": " + t + ";";
|
|
111
|
-
}), r && (o += "transform: " + r + ";"), e.style.cssText += ";" + o;
|
|
112
|
-
}
|
|
113
|
-
var we = { exports: {} }, ce = { exports: {} }, S = {};
|
|
114
|
-
/** @license React v16.13.1
|
|
115
|
-
* react-is.production.min.js
|
|
116
|
-
*
|
|
117
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
118
|
-
*
|
|
119
|
-
* This source code is licensed under the MIT license found in the
|
|
120
|
-
* LICENSE file in the root directory of this source tree.
|
|
121
|
-
*/
|
|
122
|
-
var Ne;
|
|
123
|
-
function jt() {
|
|
124
|
-
if (Ne)
|
|
125
|
-
return S;
|
|
126
|
-
Ne = 1;
|
|
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;
|
|
128
|
-
function M(c) {
|
|
129
|
-
if (typeof c == "object" && c !== null) {
|
|
130
|
-
var N = c.$$typeof;
|
|
131
|
-
switch (N) {
|
|
132
|
-
case n:
|
|
133
|
-
switch (c = c.type, c) {
|
|
134
|
-
case d:
|
|
135
|
-
case p:
|
|
136
|
-
case r:
|
|
137
|
-
case t:
|
|
138
|
-
case i:
|
|
139
|
-
case y:
|
|
140
|
-
return c;
|
|
141
|
-
default:
|
|
142
|
-
switch (c = c && c.$$typeof, c) {
|
|
143
|
-
case u:
|
|
144
|
-
case v:
|
|
145
|
-
case D:
|
|
146
|
-
case A:
|
|
147
|
-
case s:
|
|
148
|
-
return c;
|
|
149
|
-
default:
|
|
150
|
-
return N;
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
case o:
|
|
154
|
-
return N;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
function j(c) {
|
|
159
|
-
return M(c) === p;
|
|
160
|
-
}
|
|
161
|
-
return S.AsyncMode = d, S.ConcurrentMode = p, S.ContextConsumer = u, S.ContextProvider = s, S.Element = n, S.ForwardRef = v, S.Fragment = r, S.Lazy = D, S.Memo = A, S.Portal = o, S.Profiler = t, S.StrictMode = i, S.Suspense = y, S.isAsyncMode = function(c) {
|
|
162
|
-
return j(c) || M(c) === d;
|
|
163
|
-
}, S.isConcurrentMode = j, S.isContextConsumer = function(c) {
|
|
164
|
-
return M(c) === u;
|
|
165
|
-
}, S.isContextProvider = function(c) {
|
|
166
|
-
return M(c) === s;
|
|
167
|
-
}, S.isElement = function(c) {
|
|
168
|
-
return typeof c == "object" && c !== null && c.$$typeof === n;
|
|
169
|
-
}, S.isForwardRef = function(c) {
|
|
170
|
-
return M(c) === v;
|
|
171
|
-
}, S.isFragment = function(c) {
|
|
172
|
-
return M(c) === r;
|
|
173
|
-
}, S.isLazy = function(c) {
|
|
174
|
-
return M(c) === D;
|
|
175
|
-
}, S.isMemo = function(c) {
|
|
176
|
-
return M(c) === A;
|
|
177
|
-
}, S.isPortal = function(c) {
|
|
178
|
-
return M(c) === o;
|
|
179
|
-
}, S.isProfiler = function(c) {
|
|
180
|
-
return M(c) === t;
|
|
181
|
-
}, S.isStrictMode = function(c) {
|
|
182
|
-
return M(c) === i;
|
|
183
|
-
}, S.isSuspense = function(c) {
|
|
184
|
-
return M(c) === y;
|
|
185
|
-
}, S.isValidElementType = function(c) {
|
|
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);
|
|
187
|
-
}, S.typeOf = M, S;
|
|
188
|
-
}
|
|
189
|
-
var C = {};
|
|
190
|
-
/** @license React v16.13.1
|
|
191
|
-
* react-is.development.js
|
|
192
|
-
*
|
|
193
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
194
|
-
*
|
|
195
|
-
* This source code is licensed under the MIT license found in the
|
|
196
|
-
* LICENSE file in the root directory of this source tree.
|
|
197
|
-
*/
|
|
198
|
-
var qe;
|
|
199
|
-
function At() {
|
|
200
|
-
return qe || (qe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
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;
|
|
202
|
-
function M(f) {
|
|
203
|
-
return typeof f == "string" || typeof f == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
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);
|
|
205
|
-
}
|
|
206
|
-
function j(f) {
|
|
207
|
-
if (typeof f == "object" && f !== null) {
|
|
208
|
-
var F = f.$$typeof;
|
|
209
|
-
switch (F) {
|
|
210
|
-
case n:
|
|
211
|
-
var se = f.type;
|
|
212
|
-
switch (se) {
|
|
213
|
-
case d:
|
|
214
|
-
case p:
|
|
215
|
-
case r:
|
|
216
|
-
case t:
|
|
217
|
-
case i:
|
|
218
|
-
case y:
|
|
219
|
-
return se;
|
|
220
|
-
default:
|
|
221
|
-
var ke = se && se.$$typeof;
|
|
222
|
-
switch (ke) {
|
|
223
|
-
case u:
|
|
224
|
-
case v:
|
|
225
|
-
case D:
|
|
226
|
-
case A:
|
|
227
|
-
case s:
|
|
228
|
-
return ke;
|
|
229
|
-
default:
|
|
230
|
-
return F;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
case o:
|
|
234
|
-
return F;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
}
|
|
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;
|
|
239
|
-
function be(f) {
|
|
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;
|
|
241
|
-
}
|
|
242
|
-
function a(f) {
|
|
243
|
-
return j(f) === p;
|
|
244
|
-
}
|
|
245
|
-
function l(f) {
|
|
246
|
-
return j(f) === u;
|
|
247
|
-
}
|
|
248
|
-
function T(f) {
|
|
249
|
-
return j(f) === s;
|
|
250
|
-
}
|
|
251
|
-
function b(f) {
|
|
252
|
-
return typeof f == "object" && f !== null && f.$$typeof === n;
|
|
253
|
-
}
|
|
254
|
-
function E(f) {
|
|
255
|
-
return j(f) === v;
|
|
256
|
-
}
|
|
257
|
-
function g(f) {
|
|
258
|
-
return j(f) === r;
|
|
259
|
-
}
|
|
260
|
-
function h(f) {
|
|
261
|
-
return j(f) === D;
|
|
262
|
-
}
|
|
263
|
-
function x(f) {
|
|
264
|
-
return j(f) === A;
|
|
265
|
-
}
|
|
266
|
-
function R(f) {
|
|
267
|
-
return j(f) === o;
|
|
268
|
-
}
|
|
269
|
-
function P(f) {
|
|
270
|
-
return j(f) === t;
|
|
271
|
-
}
|
|
272
|
-
function O(f) {
|
|
273
|
-
return j(f) === i;
|
|
274
|
-
}
|
|
275
|
-
function q(f) {
|
|
276
|
-
return j(f) === y;
|
|
277
|
-
}
|
|
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;
|
|
280
|
-
}
|
|
281
|
-
var We;
|
|
282
|
-
function Qe() {
|
|
283
|
-
return We || (We = 1, process.env.NODE_ENV === "production" ? ce.exports = jt() : ce.exports = At()), ce.exports;
|
|
284
|
-
}
|
|
285
|
-
/*
|
|
286
|
-
object-assign
|
|
287
|
-
(c) Sindre Sorhus
|
|
288
|
-
@license MIT
|
|
289
|
-
*/
|
|
290
|
-
var xe, Fe;
|
|
291
|
-
function Dt() {
|
|
292
|
-
if (Fe)
|
|
293
|
-
return xe;
|
|
294
|
-
Fe = 1;
|
|
295
|
-
var e = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, o = Object.prototype.propertyIsEnumerable;
|
|
296
|
-
function r(t) {
|
|
297
|
-
if (t == null)
|
|
298
|
-
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
299
|
-
return Object(t);
|
|
300
|
-
}
|
|
301
|
-
function i() {
|
|
302
|
-
try {
|
|
303
|
-
if (!Object.assign)
|
|
304
|
-
return !1;
|
|
305
|
-
var t = new String("abc");
|
|
306
|
-
if (t[5] = "de", Object.getOwnPropertyNames(t)[0] === "5")
|
|
307
|
-
return !1;
|
|
308
|
-
for (var s = {}, u = 0; u < 10; u++)
|
|
309
|
-
s["_" + String.fromCharCode(u)] = u;
|
|
310
|
-
var d = Object.getOwnPropertyNames(s).map(function(v) {
|
|
311
|
-
return s[v];
|
|
312
|
-
});
|
|
313
|
-
if (d.join("") !== "0123456789")
|
|
314
|
-
return !1;
|
|
315
|
-
var p = {};
|
|
316
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(v) {
|
|
317
|
-
p[v] = v;
|
|
318
|
-
}), Object.keys(Object.assign({}, p)).join("") === "abcdefghijklmnopqrst";
|
|
319
|
-
} catch {
|
|
320
|
-
return !1;
|
|
321
|
-
}
|
|
322
|
-
}
|
|
323
|
-
return xe = i() ? Object.assign : function(t, s) {
|
|
324
|
-
for (var u, d = r(t), p, v = 1; v < arguments.length; v++) {
|
|
325
|
-
u = Object(arguments[v]);
|
|
326
|
-
for (var y in u)
|
|
327
|
-
n.call(u, y) && (d[y] = u[y]);
|
|
328
|
-
if (e) {
|
|
329
|
-
p = e(u);
|
|
330
|
-
for (var _ = 0; _ < p.length; _++)
|
|
331
|
-
o.call(u, p[_]) && (d[p[_]] = u[p[_]]);
|
|
332
|
-
}
|
|
333
|
-
}
|
|
334
|
-
return d;
|
|
335
|
-
}, xe;
|
|
336
|
-
}
|
|
337
|
-
var Te, Ye;
|
|
338
|
-
function Le() {
|
|
339
|
-
if (Ye)
|
|
340
|
-
return Te;
|
|
341
|
-
Ye = 1;
|
|
342
|
-
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
343
|
-
return Te = e, Te;
|
|
344
|
-
}
|
|
345
|
-
var ge, Ue;
|
|
346
|
-
function et() {
|
|
347
|
-
return Ue || (Ue = 1, ge = Function.call.bind(Object.prototype.hasOwnProperty)), ge;
|
|
348
|
-
}
|
|
349
|
-
var Re, Be;
|
|
350
|
-
function Mt() {
|
|
351
|
-
if (Be)
|
|
352
|
-
return Re;
|
|
353
|
-
Be = 1;
|
|
354
|
-
var e = function() {
|
|
355
|
-
};
|
|
356
|
-
if (process.env.NODE_ENV !== "production") {
|
|
357
|
-
var n = Le(), o = {}, r = et();
|
|
358
|
-
e = function(t) {
|
|
359
|
-
var s = "Warning: " + t;
|
|
360
|
-
typeof console < "u" && console.error(s);
|
|
361
|
-
try {
|
|
362
|
-
throw new Error(s);
|
|
363
|
-
} catch {
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
}
|
|
367
|
-
function i(t, s, u, d, p) {
|
|
368
|
-
if (process.env.NODE_ENV !== "production") {
|
|
369
|
-
for (var v in t)
|
|
370
|
-
if (r(t, v)) {
|
|
371
|
-
var y;
|
|
372
|
-
try {
|
|
373
|
-
if (typeof t[v] != "function") {
|
|
374
|
-
var _ = Error(
|
|
375
|
-
(d || "React class") + ": " + u + " type `" + v + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof t[v] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
376
|
-
);
|
|
377
|
-
throw _.name = "Invariant Violation", _;
|
|
378
|
-
}
|
|
379
|
-
y = t[v](s, v, d, u, null, n);
|
|
380
|
-
} catch (D) {
|
|
381
|
-
y = D;
|
|
382
|
-
}
|
|
383
|
-
if (y && !(y instanceof Error) && e(
|
|
384
|
-
(d || "React class") + ": type specification of " + u + " `" + v + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof y + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
385
|
-
), y instanceof Error && !(y.message in o)) {
|
|
386
|
-
o[y.message] = !0;
|
|
387
|
-
var A = p ? p() : "";
|
|
388
|
-
e(
|
|
389
|
-
"Failed " + u + " type: " + y.message + (A ?? "")
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
}
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
return i.resetWarningCache = function() {
|
|
396
|
-
process.env.NODE_ENV !== "production" && (o = {});
|
|
397
|
-
}, Re = i, Re;
|
|
398
|
-
}
|
|
399
|
-
var Oe, ze;
|
|
400
|
-
function It() {
|
|
401
|
-
if (ze)
|
|
402
|
-
return Oe;
|
|
403
|
-
ze = 1;
|
|
404
|
-
var e = Qe(), n = Dt(), o = Le(), r = et(), i = Mt(), t = function() {
|
|
405
|
-
};
|
|
406
|
-
process.env.NODE_ENV !== "production" && (t = function(u) {
|
|
407
|
-
var d = "Warning: " + u;
|
|
408
|
-
typeof console < "u" && console.error(d);
|
|
409
|
-
try {
|
|
410
|
-
throw new Error(d);
|
|
411
|
-
} catch {
|
|
412
|
-
}
|
|
413
|
-
});
|
|
414
|
-
function s() {
|
|
415
|
-
return null;
|
|
416
|
-
}
|
|
417
|
-
return Oe = function(u, d) {
|
|
418
|
-
var p = typeof Symbol == "function" && Symbol.iterator, v = "@@iterator";
|
|
419
|
-
function y(a) {
|
|
420
|
-
var l = a && (p && a[p] || a[v]);
|
|
421
|
-
if (typeof l == "function")
|
|
422
|
-
return l;
|
|
423
|
-
}
|
|
424
|
-
var _ = "<<anonymous>>", A = {
|
|
425
|
-
array: $("array"),
|
|
426
|
-
bigint: $("bigint"),
|
|
427
|
-
bool: $("boolean"),
|
|
428
|
-
func: $("function"),
|
|
429
|
-
number: $("number"),
|
|
430
|
-
object: $("object"),
|
|
431
|
-
string: $("string"),
|
|
432
|
-
symbol: $("symbol"),
|
|
433
|
-
any: U(),
|
|
434
|
-
arrayOf: M,
|
|
435
|
-
element: j(),
|
|
436
|
-
elementType: c(),
|
|
437
|
-
instanceOf: N,
|
|
438
|
-
node: ye(),
|
|
439
|
-
objectOf: pe,
|
|
440
|
-
oneOf: X,
|
|
441
|
-
oneOfType: ve,
|
|
442
|
-
shape: Ee,
|
|
443
|
-
exact: me
|
|
444
|
-
};
|
|
445
|
-
function D(a, l) {
|
|
446
|
-
return a === l ? a !== 0 || 1 / a === 1 / l : a !== a && l !== l;
|
|
447
|
-
}
|
|
448
|
-
function w(a, l) {
|
|
449
|
-
this.message = a, this.data = l && typeof l == "object" ? l : {}, this.stack = "";
|
|
450
|
-
}
|
|
451
|
-
w.prototype = Error.prototype;
|
|
452
|
-
function I(a) {
|
|
453
|
-
if (process.env.NODE_ENV !== "production")
|
|
454
|
-
var l = {}, T = 0;
|
|
455
|
-
function b(g, h, x, R, P, O, q) {
|
|
456
|
-
if (R = R || _, O = O || x, q !== o) {
|
|
457
|
-
if (d) {
|
|
458
|
-
var f = new Error(
|
|
459
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
460
|
-
);
|
|
461
|
-
throw f.name = "Invariant Violation", f;
|
|
462
|
-
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
463
|
-
var F = R + ":" + x;
|
|
464
|
-
!l[F] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
465
|
-
T < 3 && (t(
|
|
466
|
-
"You are manually calling a React.PropTypes validation function for the `" + O + "` prop on `" + R + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
467
|
-
), l[F] = !0, T++);
|
|
468
|
-
}
|
|
469
|
-
}
|
|
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);
|
|
471
|
-
}
|
|
472
|
-
var E = b.bind(null, !1);
|
|
473
|
-
return E.isRequired = b.bind(null, !0), E;
|
|
474
|
-
}
|
|
475
|
-
function $(a) {
|
|
476
|
-
function l(T, b, E, g, h, x) {
|
|
477
|
-
var R = T[b], P = W(R);
|
|
478
|
-
if (P !== a) {
|
|
479
|
-
var O = K(R);
|
|
480
|
-
return new w(
|
|
481
|
-
"Invalid " + g + " `" + h + "` of type " + ("`" + O + "` supplied to `" + E + "`, expected ") + ("`" + a + "`."),
|
|
482
|
-
{ expectedType: a }
|
|
483
|
-
);
|
|
484
|
-
}
|
|
485
|
-
return null;
|
|
486
|
-
}
|
|
487
|
-
return I(l);
|
|
488
|
-
}
|
|
489
|
-
function U() {
|
|
490
|
-
return I(s);
|
|
491
|
-
}
|
|
492
|
-
function M(a) {
|
|
493
|
-
function l(T, b, E, g, h) {
|
|
494
|
-
if (typeof a != "function")
|
|
495
|
-
return new w("Property `" + h + "` of component `" + E + "` has invalid PropType notation inside arrayOf.");
|
|
496
|
-
var x = T[b];
|
|
497
|
-
if (!Array.isArray(x)) {
|
|
498
|
-
var R = W(x);
|
|
499
|
-
return new w("Invalid " + g + " `" + h + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected an array."));
|
|
500
|
-
}
|
|
501
|
-
for (var P = 0; P < x.length; P++) {
|
|
502
|
-
var O = a(x, P, E, g, h + "[" + P + "]", o);
|
|
503
|
-
if (O instanceof Error)
|
|
504
|
-
return O;
|
|
505
|
-
}
|
|
506
|
-
return null;
|
|
507
|
-
}
|
|
508
|
-
return I(l);
|
|
509
|
-
}
|
|
510
|
-
function j() {
|
|
511
|
-
function a(l, T, b, E, g) {
|
|
512
|
-
var h = l[T];
|
|
513
|
-
if (!u(h)) {
|
|
514
|
-
var x = W(h);
|
|
515
|
-
return new w("Invalid " + E + " `" + g + "` of type " + ("`" + x + "` supplied to `" + b + "`, expected a single ReactElement."));
|
|
516
|
-
}
|
|
517
|
-
return null;
|
|
518
|
-
}
|
|
519
|
-
return I(a);
|
|
520
|
-
}
|
|
521
|
-
function c() {
|
|
522
|
-
function a(l, T, b, E, g) {
|
|
523
|
-
var h = l[T];
|
|
524
|
-
if (!e.isValidElementType(h)) {
|
|
525
|
-
var x = W(h);
|
|
526
|
-
return new w("Invalid " + E + " `" + g + "` of type " + ("`" + x + "` supplied to `" + b + "`, expected a single ReactElement type."));
|
|
527
|
-
}
|
|
528
|
-
return null;
|
|
529
|
-
}
|
|
530
|
-
return I(a);
|
|
531
|
-
}
|
|
532
|
-
function N(a) {
|
|
533
|
-
function l(T, b, E, g, h) {
|
|
534
|
-
if (!(T[b] instanceof a)) {
|
|
535
|
-
var x = a.name || _, R = be(T[b]);
|
|
536
|
-
return new w("Invalid " + g + " `" + h + "` of type " + ("`" + R + "` supplied to `" + E + "`, expected ") + ("instance of `" + x + "`."));
|
|
537
|
-
}
|
|
538
|
-
return null;
|
|
539
|
-
}
|
|
540
|
-
return I(l);
|
|
541
|
-
}
|
|
542
|
-
function X(a) {
|
|
543
|
-
if (!Array.isArray(a))
|
|
544
|
-
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? t(
|
|
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])."
|
|
546
|
-
) : t("Invalid argument supplied to oneOf, expected an array.")), s;
|
|
547
|
-
function l(T, b, E, g, h) {
|
|
548
|
-
for (var x = T[b], R = 0; R < a.length; R++)
|
|
549
|
-
if (D(x, a[R]))
|
|
550
|
-
return null;
|
|
551
|
-
var P = JSON.stringify(a, function(q, f) {
|
|
552
|
-
var F = K(f);
|
|
553
|
-
return F === "symbol" ? String(f) : f;
|
|
554
|
-
});
|
|
555
|
-
return new w("Invalid " + g + " `" + h + "` of value `" + String(x) + "` " + ("supplied to `" + E + "`, expected one of " + P + "."));
|
|
556
|
-
}
|
|
557
|
-
return I(l);
|
|
558
|
-
}
|
|
559
|
-
function pe(a) {
|
|
560
|
-
function l(T, b, E, g, h) {
|
|
561
|
-
if (typeof a != "function")
|
|
562
|
-
return new w("Property `" + h + "` of component `" + E + "` has invalid PropType notation inside objectOf.");
|
|
563
|
-
var x = T[b], R = W(x);
|
|
564
|
-
if (R !== "object")
|
|
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);
|
|
569
|
-
if (O instanceof Error)
|
|
570
|
-
return O;
|
|
571
|
-
}
|
|
572
|
-
return null;
|
|
573
|
-
}
|
|
574
|
-
return I(l);
|
|
575
|
-
}
|
|
576
|
-
function ve(a) {
|
|
577
|
-
if (!Array.isArray(a))
|
|
578
|
-
return process.env.NODE_ENV !== "production" && t("Invalid argument supplied to oneOfType, expected an instance of array."), s;
|
|
579
|
-
for (var l = 0; l < a.length; l++) {
|
|
580
|
-
var T = a[l];
|
|
581
|
-
if (typeof T != "function")
|
|
582
|
-
return t(
|
|
583
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ae(T) + " at index " + l + "."
|
|
584
|
-
), s;
|
|
585
|
-
}
|
|
586
|
-
function b(E, g, h, x, R) {
|
|
587
|
-
for (var P = [], O = 0; O < a.length; O++) {
|
|
588
|
-
var q = a[O], f = q(E, g, h, x, R, o);
|
|
589
|
-
if (f == null)
|
|
590
|
-
return null;
|
|
591
|
-
f.data && r(f.data, "expectedType") && P.push(f.data.expectedType);
|
|
592
|
-
}
|
|
593
|
-
var F = P.length > 0 ? ", expected one of type [" + P.join(", ") + "]" : "";
|
|
594
|
-
return new w("Invalid " + x + " `" + R + "` supplied to " + ("`" + h + "`" + F + "."));
|
|
595
|
-
}
|
|
596
|
-
return I(b);
|
|
597
|
-
}
|
|
598
|
-
function ye() {
|
|
599
|
-
function a(l, T, b, E, g) {
|
|
600
|
-
return ee(l[T]) ? null : new w("Invalid " + E + " `" + g + "` supplied to " + ("`" + b + "`, expected a ReactNode."));
|
|
601
|
-
}
|
|
602
|
-
return I(a);
|
|
603
|
-
}
|
|
604
|
-
function ie(a, l, T, b, E) {
|
|
605
|
-
return new w(
|
|
606
|
-
(a || "React class") + ": " + l + " type `" + T + "." + b + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + E + "`."
|
|
607
|
-
);
|
|
608
|
-
}
|
|
609
|
-
function Ee(a) {
|
|
610
|
-
function l(T, b, E, g, h) {
|
|
611
|
-
var x = T[b], R = W(x);
|
|
612
|
-
if (R !== "object")
|
|
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];
|
|
616
|
-
if (typeof O != "function")
|
|
617
|
-
return ie(E, g, h, P, K(O));
|
|
618
|
-
var q = O(x, P, E, g, h + "." + P, o);
|
|
619
|
-
if (q)
|
|
620
|
-
return q;
|
|
621
|
-
}
|
|
622
|
-
return null;
|
|
623
|
-
}
|
|
624
|
-
return I(l);
|
|
625
|
-
}
|
|
626
|
-
function me(a) {
|
|
627
|
-
function l(T, b, E, g, h) {
|
|
628
|
-
var x = T[b], R = W(x);
|
|
629
|
-
if (R !== "object")
|
|
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) {
|
|
633
|
-
var q = a[O];
|
|
634
|
-
if (r(a, O) && typeof q != "function")
|
|
635
|
-
return ie(E, g, h, O, K(q));
|
|
636
|
-
if (!q)
|
|
637
|
-
return new w(
|
|
638
|
-
"Invalid " + g + " `" + h + "` key `" + O + "` supplied to `" + E + "`.\nBad object: " + JSON.stringify(T[b], null, " ") + `
|
|
639
|
-
Valid keys: ` + JSON.stringify(Object.keys(a), null, " ")
|
|
640
|
-
);
|
|
641
|
-
var f = q(x, O, E, g, h + "." + O, o);
|
|
642
|
-
if (f)
|
|
643
|
-
return f;
|
|
644
|
-
}
|
|
645
|
-
return null;
|
|
646
|
-
}
|
|
647
|
-
return I(l);
|
|
648
|
-
}
|
|
649
|
-
function ee(a) {
|
|
650
|
-
switch (typeof a) {
|
|
651
|
-
case "number":
|
|
652
|
-
case "string":
|
|
653
|
-
case "undefined":
|
|
654
|
-
return !0;
|
|
655
|
-
case "boolean":
|
|
656
|
-
return !a;
|
|
657
|
-
case "object":
|
|
658
|
-
if (Array.isArray(a))
|
|
659
|
-
return a.every(ee);
|
|
660
|
-
if (a === null || u(a))
|
|
661
|
-
return !0;
|
|
662
|
-
var l = y(a);
|
|
663
|
-
if (l) {
|
|
664
|
-
var T = l.call(a), b;
|
|
665
|
-
if (l !== a.entries) {
|
|
666
|
-
for (; !(b = T.next()).done; )
|
|
667
|
-
if (!ee(b.value))
|
|
668
|
-
return !1;
|
|
669
|
-
} else
|
|
670
|
-
for (; !(b = T.next()).done; ) {
|
|
671
|
-
var E = b.value;
|
|
672
|
-
if (E && !ee(E[1]))
|
|
673
|
-
return !1;
|
|
674
|
-
}
|
|
675
|
-
} else
|
|
676
|
-
return !1;
|
|
677
|
-
return !0;
|
|
678
|
-
default:
|
|
679
|
-
return !1;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
function he(a, l) {
|
|
683
|
-
return a === "symbol" ? !0 : l ? l["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && l instanceof Symbol : !1;
|
|
684
|
-
}
|
|
685
|
-
function W(a) {
|
|
686
|
-
var l = typeof a;
|
|
687
|
-
return Array.isArray(a) ? "array" : a instanceof RegExp ? "object" : he(l, a) ? "symbol" : l;
|
|
688
|
-
}
|
|
689
|
-
function K(a) {
|
|
690
|
-
if (typeof a > "u" || a === null)
|
|
691
|
-
return "" + a;
|
|
692
|
-
var l = W(a);
|
|
693
|
-
if (l === "object") {
|
|
694
|
-
if (a instanceof Date)
|
|
695
|
-
return "date";
|
|
696
|
-
if (a instanceof RegExp)
|
|
697
|
-
return "regexp";
|
|
698
|
-
}
|
|
699
|
-
return l;
|
|
700
|
-
}
|
|
701
|
-
function ae(a) {
|
|
702
|
-
var l = K(a);
|
|
703
|
-
switch (l) {
|
|
704
|
-
case "array":
|
|
705
|
-
case "object":
|
|
706
|
-
return "an " + l;
|
|
707
|
-
case "boolean":
|
|
708
|
-
case "date":
|
|
709
|
-
case "regexp":
|
|
710
|
-
return "a " + l;
|
|
711
|
-
default:
|
|
712
|
-
return l;
|
|
713
|
-
}
|
|
714
|
-
}
|
|
715
|
-
function be(a) {
|
|
716
|
-
return !a.constructor || !a.constructor.name ? _ : a.constructor.name;
|
|
717
|
-
}
|
|
718
|
-
return A.checkPropTypes = i, A.resetWarningCache = i.resetWarningCache, A.PropTypes = A, A;
|
|
719
|
-
}, Oe;
|
|
720
|
-
}
|
|
721
|
-
var _e, Ve;
|
|
722
|
-
function Lt() {
|
|
723
|
-
if (Ve)
|
|
724
|
-
return _e;
|
|
725
|
-
Ve = 1;
|
|
726
|
-
var e = Le();
|
|
727
|
-
function n() {
|
|
728
|
-
}
|
|
729
|
-
function o() {
|
|
730
|
-
}
|
|
731
|
-
return o.resetWarningCache = n, _e = function() {
|
|
732
|
-
function r(s, u, d, p, v, y) {
|
|
733
|
-
if (y !== e) {
|
|
734
|
-
var _ = new Error(
|
|
735
|
-
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
736
|
-
);
|
|
737
|
-
throw _.name = "Invariant Violation", _;
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
r.isRequired = r;
|
|
741
|
-
function i() {
|
|
742
|
-
return r;
|
|
743
|
-
}
|
|
744
|
-
var t = {
|
|
745
|
-
array: r,
|
|
746
|
-
bigint: r,
|
|
747
|
-
bool: r,
|
|
748
|
-
func: r,
|
|
749
|
-
number: r,
|
|
750
|
-
object: r,
|
|
751
|
-
string: r,
|
|
752
|
-
symbol: r,
|
|
753
|
-
any: r,
|
|
754
|
-
arrayOf: i,
|
|
755
|
-
element: r,
|
|
756
|
-
elementType: r,
|
|
757
|
-
instanceOf: i,
|
|
758
|
-
node: r,
|
|
759
|
-
objectOf: i,
|
|
760
|
-
oneOf: i,
|
|
761
|
-
oneOfType: i,
|
|
762
|
-
shape: i,
|
|
763
|
-
exact: i,
|
|
764
|
-
checkPropTypes: o,
|
|
765
|
-
resetWarningCache: n
|
|
766
|
-
};
|
|
767
|
-
return t.PropTypes = t, t;
|
|
768
|
-
}, _e;
|
|
769
|
-
}
|
|
770
|
-
if (process.env.NODE_ENV !== "production") {
|
|
771
|
-
var $t = Qe(), kt = !0;
|
|
772
|
-
we.exports = It()($t.isElement, kt);
|
|
773
|
-
} else
|
|
774
|
-
we.exports = Lt()();
|
|
775
|
-
var Nt = we.exports;
|
|
776
|
-
const m = /* @__PURE__ */ at(Nt), Ge = {
|
|
777
|
-
disabled: !1
|
|
778
|
-
};
|
|
779
|
-
var qt = process.env.NODE_ENV !== "production" ? m.oneOfType([m.number, m.shape({
|
|
780
|
-
enter: m.number,
|
|
781
|
-
exit: m.number,
|
|
782
|
-
appear: m.number
|
|
783
|
-
}).isRequired]) : null;
|
|
784
|
-
process.env.NODE_ENV !== "production" && m.oneOfType([m.string, m.shape({
|
|
785
|
-
enter: m.string,
|
|
786
|
-
exit: m.string,
|
|
787
|
-
active: m.string
|
|
788
|
-
}), m.shape({
|
|
789
|
-
enter: m.string,
|
|
790
|
-
enterDone: m.string,
|
|
791
|
-
enterActive: m.string,
|
|
792
|
-
exit: m.string,
|
|
793
|
-
exitDone: m.string,
|
|
794
|
-
exitActive: m.string
|
|
795
|
-
})]);
|
|
796
|
-
const tt = Z.createContext(null);
|
|
797
|
-
var Wt = function(n) {
|
|
798
|
-
return n.scrollTop;
|
|
799
|
-
}, re = "unmounted", H = "exited", G = "entering", J = "entered", je = "exiting", z = /* @__PURE__ */ function(e) {
|
|
800
|
-
xt(n, e);
|
|
801
|
-
function n(r, i) {
|
|
802
|
-
var t;
|
|
803
|
-
t = e.call(this, r, i) || this;
|
|
804
|
-
var s = i, u = s && !s.isMounting ? r.enter : r.appear, d;
|
|
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 = {
|
|
806
|
-
status: d
|
|
807
|
-
}, t.nextCallback = null, t;
|
|
808
|
-
}
|
|
809
|
-
n.getDerivedStateFromProps = function(i, t) {
|
|
810
|
-
var s = i.in;
|
|
811
|
-
return s && t.status === re ? {
|
|
812
|
-
status: H
|
|
813
|
-
} : null;
|
|
814
|
-
};
|
|
815
|
-
var o = n.prototype;
|
|
816
|
-
return o.componentDidMount = function() {
|
|
817
|
-
this.updateStatus(!0, this.appearStatus);
|
|
818
|
-
}, o.componentDidUpdate = function(i) {
|
|
819
|
-
var t = null;
|
|
820
|
-
if (i !== this.props) {
|
|
821
|
-
var s = this.state.status;
|
|
822
|
-
this.props.in ? s !== G && s !== J && (t = G) : (s === G || s === J) && (t = je);
|
|
823
|
-
}
|
|
824
|
-
this.updateStatus(!1, t);
|
|
825
|
-
}, o.componentWillUnmount = function() {
|
|
826
|
-
this.cancelNextCallback();
|
|
827
|
-
}, o.getTimeouts = function() {
|
|
828
|
-
var i = this.props.timeout, t, s, u;
|
|
829
|
-
return t = s = u = i, i != null && typeof i != "number" && (t = i.exit, s = i.enter, u = i.appear !== void 0 ? i.appear : s), {
|
|
830
|
-
exit: t,
|
|
831
|
-
enter: s,
|
|
832
|
-
appear: u
|
|
833
|
-
};
|
|
834
|
-
}, o.updateStatus = function(i, t) {
|
|
835
|
-
if (i === void 0 && (i = !1), t !== null)
|
|
836
|
-
if (this.cancelNextCallback(), t === G) {
|
|
837
|
-
if (this.props.unmountOnExit || this.props.mountOnEnter) {
|
|
838
|
-
var s = this.props.nodeRef ? this.props.nodeRef.current : ne.findDOMNode(this);
|
|
839
|
-
s && Wt(s);
|
|
840
|
-
}
|
|
841
|
-
this.performEnter(i);
|
|
842
|
-
} else
|
|
843
|
-
this.performExit();
|
|
844
|
-
else
|
|
845
|
-
this.props.unmountOnExit && this.state.status === H && this.setState({
|
|
846
|
-
status: re
|
|
847
|
-
});
|
|
848
|
-
}, o.performEnter = function(i) {
|
|
849
|
-
var t = this, s = this.props.enter, u = this.context ? this.context.isMounting : i, d = this.props.nodeRef ? [u] : [ne.findDOMNode(this), u], p = d[0], v = d[1], y = this.getTimeouts(), _ = u ? y.appear : y.enter;
|
|
850
|
-
if (!i && !s || Ge.disabled) {
|
|
851
|
-
this.safeSetState({
|
|
852
|
-
status: J
|
|
853
|
-
}, function() {
|
|
854
|
-
t.props.onEntered(p);
|
|
855
|
-
});
|
|
856
|
-
return;
|
|
857
|
-
}
|
|
858
|
-
this.props.onEnter(p, v), this.safeSetState({
|
|
859
|
-
status: G
|
|
860
|
-
}, function() {
|
|
861
|
-
t.props.onEntering(p, v), t.onTransitionEnd(_, function() {
|
|
862
|
-
t.safeSetState({
|
|
863
|
-
status: J
|
|
864
|
-
}, function() {
|
|
865
|
-
t.props.onEntered(p, v);
|
|
866
|
-
});
|
|
867
|
-
});
|
|
868
|
-
});
|
|
869
|
-
}, o.performExit = function() {
|
|
870
|
-
var i = this, t = this.props.exit, s = this.getTimeouts(), u = this.props.nodeRef ? void 0 : ne.findDOMNode(this);
|
|
871
|
-
if (!t || Ge.disabled) {
|
|
872
|
-
this.safeSetState({
|
|
873
|
-
status: H
|
|
874
|
-
}, function() {
|
|
875
|
-
i.props.onExited(u);
|
|
876
|
-
});
|
|
877
|
-
return;
|
|
878
|
-
}
|
|
879
|
-
this.props.onExit(u), this.safeSetState({
|
|
880
|
-
status: je
|
|
881
|
-
}, function() {
|
|
882
|
-
i.props.onExiting(u), i.onTransitionEnd(s.exit, function() {
|
|
883
|
-
i.safeSetState({
|
|
884
|
-
status: H
|
|
885
|
-
}, function() {
|
|
886
|
-
i.props.onExited(u);
|
|
887
|
-
});
|
|
888
|
-
});
|
|
889
|
-
});
|
|
890
|
-
}, o.cancelNextCallback = function() {
|
|
891
|
-
this.nextCallback !== null && (this.nextCallback.cancel(), this.nextCallback = null);
|
|
892
|
-
}, o.safeSetState = function(i, t) {
|
|
893
|
-
t = this.setNextCallback(t), this.setState(i, t);
|
|
894
|
-
}, o.setNextCallback = function(i) {
|
|
895
|
-
var t = this, s = !0;
|
|
896
|
-
return this.nextCallback = function(u) {
|
|
897
|
-
s && (s = !1, t.nextCallback = null, i(u));
|
|
898
|
-
}, this.nextCallback.cancel = function() {
|
|
899
|
-
s = !1;
|
|
900
|
-
}, this.nextCallback;
|
|
901
|
-
}, o.onTransitionEnd = function(i, t) {
|
|
902
|
-
this.setNextCallback(t);
|
|
903
|
-
var s = this.props.nodeRef ? this.props.nodeRef.current : ne.findDOMNode(this), u = i == null && !this.props.addEndListener;
|
|
904
|
-
if (!s || u) {
|
|
905
|
-
setTimeout(this.nextCallback, 0);
|
|
906
|
-
return;
|
|
907
|
-
}
|
|
908
|
-
if (this.props.addEndListener) {
|
|
909
|
-
var d = this.props.nodeRef ? [this.nextCallback] : [s, this.nextCallback], p = d[0], v = d[1];
|
|
910
|
-
this.props.addEndListener(p, v);
|
|
911
|
-
}
|
|
912
|
-
i != null && setTimeout(this.nextCallback, i);
|
|
913
|
-
}, o.render = function() {
|
|
914
|
-
var i = this.state.status;
|
|
915
|
-
if (i === re)
|
|
916
|
-
return null;
|
|
917
|
-
var t = this.props, s = t.children;
|
|
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;
|
|
919
|
-
var u = bt(t, ["children", "in", "mountOnEnter", "unmountOnExit", "appear", "enter", "exit", "timeout", "addEndListener", "onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "nodeRef"]);
|
|
920
|
-
return (
|
|
921
|
-
// allows for nested Transitions
|
|
922
|
-
/* @__PURE__ */ Z.createElement(tt.Provider, {
|
|
923
|
-
value: null
|
|
924
|
-
}, typeof s == "function" ? s(i, u) : Z.cloneElement(Z.Children.only(s), u))
|
|
925
|
-
);
|
|
926
|
-
}, n;
|
|
927
|
-
}(Z.Component);
|
|
928
|
-
z.contextType = tt;
|
|
929
|
-
z.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
930
|
-
/**
|
|
931
|
-
* A React reference to DOM element that need to transition:
|
|
932
|
-
* https://stackoverflow.com/a/51127130/4671932
|
|
933
|
-
*
|
|
934
|
-
* - When `nodeRef` prop is used, `node` is not passed to callback functions
|
|
935
|
-
* (e.g. `onEnter`) because user already has direct access to the node.
|
|
936
|
-
* - When changing `key` prop of `Transition` in a `TransitionGroup` a new
|
|
937
|
-
* `nodeRef` need to be provided to `Transition` with changed `key` prop
|
|
938
|
-
* (see
|
|
939
|
-
* [test/CSSTransition-test.js](https://github.com/reactjs/react-transition-group/blob/13435f897b3ab71f6e19d724f145596f5910581c/test/CSSTransition-test.js#L362-L437)).
|
|
940
|
-
*/
|
|
941
|
-
nodeRef: m.shape({
|
|
942
|
-
current: typeof Element > "u" ? m.any : function(e, n, o, r, i, t) {
|
|
943
|
-
var s = e[n];
|
|
944
|
-
return m.instanceOf(s && "ownerDocument" in s ? s.ownerDocument.defaultView.Element : Element)(e, n, o, r, i, t);
|
|
945
|
-
}
|
|
946
|
-
}),
|
|
947
|
-
/**
|
|
948
|
-
* A `function` child can be used instead of a React element. This function is
|
|
949
|
-
* called with the current transition status (`'entering'`, `'entered'`,
|
|
950
|
-
* `'exiting'`, `'exited'`), which can be used to apply context
|
|
951
|
-
* specific props to a component.
|
|
952
|
-
*
|
|
953
|
-
* ```jsx
|
|
954
|
-
* <Transition in={this.state.in} timeout={150}>
|
|
955
|
-
* {state => (
|
|
956
|
-
* <MyComponent className={`fade fade-${state}`} />
|
|
957
|
-
* )}
|
|
958
|
-
* </Transition>
|
|
959
|
-
* ```
|
|
960
|
-
*/
|
|
961
|
-
children: m.oneOfType([m.func.isRequired, m.element.isRequired]).isRequired,
|
|
962
|
-
/**
|
|
963
|
-
* Show the component; triggers the enter or exit states
|
|
964
|
-
*/
|
|
965
|
-
in: m.bool,
|
|
966
|
-
/**
|
|
967
|
-
* By default the child component is mounted immediately along with
|
|
968
|
-
* the parent `Transition` component. If you want to "lazy mount" the component on the
|
|
969
|
-
* first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay
|
|
970
|
-
* mounted, even on "exited", unless you also specify `unmountOnExit`.
|
|
971
|
-
*/
|
|
972
|
-
mountOnEnter: m.bool,
|
|
973
|
-
/**
|
|
974
|
-
* By default the child component stays mounted after it reaches the `'exited'` state.
|
|
975
|
-
* Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.
|
|
976
|
-
*/
|
|
977
|
-
unmountOnExit: m.bool,
|
|
978
|
-
/**
|
|
979
|
-
* By default the child component does not perform the enter transition when
|
|
980
|
-
* it first mounts, regardless of the value of `in`. If you want this
|
|
981
|
-
* behavior, set both `appear` and `in` to `true`.
|
|
982
|
-
*
|
|
983
|
-
* > **Note**: there are no special appear states like `appearing`/`appeared`, this prop
|
|
984
|
-
* > only adds an additional enter transition. However, in the
|
|
985
|
-
* > `<CSSTransition>` component that first enter transition does result in
|
|
986
|
-
* > additional `.appear-*` classes, that way you can choose to style it
|
|
987
|
-
* > differently.
|
|
988
|
-
*/
|
|
989
|
-
appear: m.bool,
|
|
990
|
-
/**
|
|
991
|
-
* Enable or disable enter transitions.
|
|
992
|
-
*/
|
|
993
|
-
enter: m.bool,
|
|
994
|
-
/**
|
|
995
|
-
* Enable or disable exit transitions.
|
|
996
|
-
*/
|
|
997
|
-
exit: m.bool,
|
|
998
|
-
/**
|
|
999
|
-
* The duration of the transition, in milliseconds.
|
|
1000
|
-
* Required unless `addEndListener` is provided.
|
|
1001
|
-
*
|
|
1002
|
-
* You may specify a single timeout for all transitions:
|
|
1003
|
-
*
|
|
1004
|
-
* ```jsx
|
|
1005
|
-
* timeout={500}
|
|
1006
|
-
* ```
|
|
1007
|
-
*
|
|
1008
|
-
* or individually:
|
|
1009
|
-
*
|
|
1010
|
-
* ```jsx
|
|
1011
|
-
* timeout={{
|
|
1012
|
-
* appear: 500,
|
|
1013
|
-
* enter: 300,
|
|
1014
|
-
* exit: 500,
|
|
1015
|
-
* }}
|
|
1016
|
-
* ```
|
|
1017
|
-
*
|
|
1018
|
-
* - `appear` defaults to the value of `enter`
|
|
1019
|
-
* - `enter` defaults to `0`
|
|
1020
|
-
* - `exit` defaults to `0`
|
|
1021
|
-
*
|
|
1022
|
-
* @type {number | { enter?: number, exit?: number, appear?: number }}
|
|
1023
|
-
*/
|
|
1024
|
-
timeout: function(n) {
|
|
1025
|
-
var o = qt;
|
|
1026
|
-
n.addEndListener || (o = o.isRequired);
|
|
1027
|
-
for (var r = arguments.length, i = new Array(r > 1 ? r - 1 : 0), t = 1; t < r; t++)
|
|
1028
|
-
i[t - 1] = arguments[t];
|
|
1029
|
-
return o.apply(void 0, [n].concat(i));
|
|
1030
|
-
},
|
|
1031
|
-
/**
|
|
1032
|
-
* Add a custom transition end trigger. Called with the transitioning
|
|
1033
|
-
* DOM node and a `done` callback. Allows for more fine grained transition end
|
|
1034
|
-
* logic. Timeouts are still used as a fallback if provided.
|
|
1035
|
-
*
|
|
1036
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1037
|
-
*
|
|
1038
|
-
* ```jsx
|
|
1039
|
-
* addEndListener={(node, done) => {
|
|
1040
|
-
* // use the css transitionend event to mark the finish of a transition
|
|
1041
|
-
* node.addEventListener('transitionend', done, false);
|
|
1042
|
-
* }}
|
|
1043
|
-
* ```
|
|
1044
|
-
*/
|
|
1045
|
-
addEndListener: m.func,
|
|
1046
|
-
/**
|
|
1047
|
-
* Callback fired before the "entering" status is applied. An extra parameter
|
|
1048
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
1049
|
-
*
|
|
1050
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1051
|
-
*
|
|
1052
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
1053
|
-
*/
|
|
1054
|
-
onEnter: m.func,
|
|
1055
|
-
/**
|
|
1056
|
-
* Callback fired after the "entering" status is applied. An extra parameter
|
|
1057
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
1058
|
-
*
|
|
1059
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1060
|
-
*
|
|
1061
|
-
* @type Function(node: HtmlElement, isAppearing: bool)
|
|
1062
|
-
*/
|
|
1063
|
-
onEntering: m.func,
|
|
1064
|
-
/**
|
|
1065
|
-
* Callback fired after the "entered" status is applied. An extra parameter
|
|
1066
|
-
* `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount
|
|
1067
|
-
*
|
|
1068
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1069
|
-
*
|
|
1070
|
-
* @type Function(node: HtmlElement, isAppearing: bool) -> void
|
|
1071
|
-
*/
|
|
1072
|
-
onEntered: m.func,
|
|
1073
|
-
/**
|
|
1074
|
-
* Callback fired before the "exiting" status is applied.
|
|
1075
|
-
*
|
|
1076
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1077
|
-
*
|
|
1078
|
-
* @type Function(node: HtmlElement) -> void
|
|
1079
|
-
*/
|
|
1080
|
-
onExit: m.func,
|
|
1081
|
-
/**
|
|
1082
|
-
* Callback fired after the "exiting" status is applied.
|
|
1083
|
-
*
|
|
1084
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed.
|
|
1085
|
-
*
|
|
1086
|
-
* @type Function(node: HtmlElement) -> void
|
|
1087
|
-
*/
|
|
1088
|
-
onExiting: m.func,
|
|
1089
|
-
/**
|
|
1090
|
-
* Callback fired after the "exited" status is applied.
|
|
1091
|
-
*
|
|
1092
|
-
* **Note**: when `nodeRef` prop is passed, `node` is not passed
|
|
1093
|
-
*
|
|
1094
|
-
* @type Function(node: HtmlElement) -> void
|
|
1095
|
-
*/
|
|
1096
|
-
onExited: m.func
|
|
1097
|
-
} : {};
|
|
1098
|
-
function te() {
|
|
1099
|
-
}
|
|
1100
|
-
z.defaultProps = {
|
|
1101
|
-
in: !1,
|
|
1102
|
-
mountOnEnter: !1,
|
|
1103
|
-
unmountOnExit: !1,
|
|
1104
|
-
appear: !1,
|
|
1105
|
-
enter: !0,
|
|
1106
|
-
exit: !0,
|
|
1107
|
-
onEnter: te,
|
|
1108
|
-
onEntering: te,
|
|
1109
|
-
onEntered: te,
|
|
1110
|
-
onExit: te,
|
|
1111
|
-
onExiting: te,
|
|
1112
|
-
onExited: te
|
|
1113
|
-
};
|
|
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);
|
|
1120
|
-
var Ae = !1, De = !1;
|
|
1121
|
-
try {
|
|
1122
|
-
var Se = {
|
|
1123
|
-
get passive() {
|
|
1124
|
-
return Ae = !0;
|
|
1125
|
-
},
|
|
1126
|
-
get once() {
|
|
1127
|
-
return De = Ae = !0;
|
|
1128
|
-
}
|
|
1129
|
-
};
|
|
1130
|
-
$e && (window.addEventListener("test", Se, Se), window.removeEventListener("test", Se, !0));
|
|
1131
|
-
} catch {
|
|
1132
|
-
}
|
|
1133
|
-
function Yt(e, n, o, r) {
|
|
1134
|
-
if (r && typeof r != "boolean" && !De) {
|
|
1135
|
-
var i = r.once, t = r.capture, s = o;
|
|
1136
|
-
!De && i && (s = o.__once || function u(d) {
|
|
1137
|
-
this.removeEventListener(n, u, t), o.call(this, d);
|
|
1138
|
-
}, o.__once = s), e.addEventListener(n, s, Ae ? r : t);
|
|
1139
|
-
}
|
|
1140
|
-
e.addEventListener(n, o, r);
|
|
1141
|
-
}
|
|
1142
|
-
function Ut(e, n, o, r) {
|
|
1143
|
-
var i = r && typeof r != "boolean" ? r.capture : r;
|
|
1144
|
-
e.removeEventListener(n, o, i), o.__once && e.removeEventListener(n, o.__once, i);
|
|
1145
|
-
}
|
|
1146
|
-
function nt(e, n, o, r) {
|
|
1147
|
-
return Yt(e, n, o, r), function() {
|
|
1148
|
-
Ut(e, n, o, r);
|
|
1149
|
-
};
|
|
1150
|
-
}
|
|
1151
|
-
function Bt(e, n, o, r) {
|
|
1152
|
-
if (o === void 0 && (o = !1), r === void 0 && (r = !0), e) {
|
|
1153
|
-
var i = document.createEvent("HTMLEvents");
|
|
1154
|
-
i.initEvent(n, o, r), e.dispatchEvent(i);
|
|
1155
|
-
}
|
|
1156
|
-
}
|
|
1157
|
-
function zt(e) {
|
|
1158
|
-
var n = Ze(e, "transitionDuration") || "", o = n.indexOf("ms") === -1 ? 1e3 : 1;
|
|
1159
|
-
return parseFloat(n) * o;
|
|
1160
|
-
}
|
|
1161
|
-
function Vt(e, n, o) {
|
|
1162
|
-
o === void 0 && (o = 5);
|
|
1163
|
-
var r = !1, i = setTimeout(function() {
|
|
1164
|
-
r || Bt(e, "transitionend", !0);
|
|
1165
|
-
}, n + o), t = nt(e, "transitionend", function() {
|
|
1166
|
-
r = !0;
|
|
1167
|
-
}, {
|
|
1168
|
-
once: !0
|
|
1169
|
-
});
|
|
1170
|
-
return function() {
|
|
1171
|
-
clearTimeout(i), t();
|
|
1172
|
-
};
|
|
1173
|
-
}
|
|
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);
|
|
1177
|
-
return function() {
|
|
1178
|
-
i(), t();
|
|
1179
|
-
};
|
|
1180
|
-
}
|
|
1181
|
-
function Xe(e, n) {
|
|
1182
|
-
const o = Ze(e, n) || "", r = o.indexOf("ms") === -1 ? 1e3 : 1;
|
|
1183
|
-
return parseFloat(o) * r;
|
|
1184
|
-
}
|
|
1185
|
-
function Xt(e, n) {
|
|
1186
|
-
const o = Xe(e, "transitionDuration"), r = Xe(e, "transitionDelay"), i = Gt(e, (t) => {
|
|
1187
|
-
t.target === e && (i(), n(t));
|
|
1188
|
-
}, o + r);
|
|
1189
|
-
}
|
|
1190
|
-
function Kt(e) {
|
|
1191
|
-
e.offsetHeight;
|
|
1192
|
-
}
|
|
1193
|
-
const Ke = (e) => !e || typeof e == "function" ? e : (n) => {
|
|
1194
|
-
e.current = n;
|
|
1195
|
-
};
|
|
1196
|
-
function Ht(e, n) {
|
|
1197
|
-
const o = Ke(e), r = Ke(n);
|
|
1198
|
-
return (i) => {
|
|
1199
|
-
o && o(i), r && r(i);
|
|
1200
|
-
};
|
|
1201
|
-
}
|
|
1202
|
-
function de(e, n) {
|
|
1203
|
-
return st(() => Ht(e, n), [e, n]);
|
|
1204
|
-
}
|
|
1205
|
-
function Jt(e) {
|
|
1206
|
-
return e && "setState" in e ? ne.findDOMNode(e) : e ?? null;
|
|
1207
|
-
}
|
|
1208
|
-
const Zt = /* @__PURE__ */ Z.forwardRef(({
|
|
1209
|
-
onEnter: e,
|
|
1210
|
-
onEntering: n,
|
|
1211
|
-
onEntered: o,
|
|
1212
|
-
onExit: r,
|
|
1213
|
-
onExiting: i,
|
|
1214
|
-
onExited: t,
|
|
1215
|
-
addEndListener: s,
|
|
1216
|
-
children: u,
|
|
1217
|
-
childRef: d,
|
|
1218
|
-
...p
|
|
1219
|
-
}, v) => {
|
|
1220
|
-
const y = Y(null), _ = de(y, d), A = (N) => {
|
|
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, {
|
|
1226
|
-
ref: v,
|
|
1227
|
-
...p,
|
|
1228
|
-
onEnter: w,
|
|
1229
|
-
onEntered: $,
|
|
1230
|
-
onEntering: I,
|
|
1231
|
-
onExit: U,
|
|
1232
|
-
onExited: j,
|
|
1233
|
-
onExiting: M,
|
|
1234
|
-
addEndListener: c,
|
|
1235
|
-
nodeRef: y,
|
|
1236
|
-
children: typeof u == "function" ? (N, X) => (
|
|
1237
|
-
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
1238
|
-
u(N, {
|
|
1239
|
-
...X,
|
|
1240
|
-
ref: A
|
|
1241
|
-
})
|
|
1242
|
-
) : /* @__PURE__ */ Z.cloneElement(u, {
|
|
1243
|
-
ref: A
|
|
1244
|
-
})
|
|
1245
|
-
});
|
|
1246
|
-
}), Qt = Zt;
|
|
1247
|
-
function en(e) {
|
|
1248
|
-
const n = Y(e);
|
|
1249
|
-
return Q(() => {
|
|
1250
|
-
n.current = e;
|
|
1251
|
-
}, [e]), n;
|
|
1252
|
-
}
|
|
1253
|
-
function rt(e) {
|
|
1254
|
-
const n = en(e);
|
|
1255
|
-
return k(function(...o) {
|
|
1256
|
-
return n.current && n.current(...o);
|
|
1257
|
-
}, [n]);
|
|
1258
|
-
}
|
|
1259
|
-
function _n() {
|
|
1260
|
-
return Me(null);
|
|
1261
|
-
}
|
|
1262
|
-
function Sn() {
|
|
1263
|
-
const e = Y(!0), n = Y(() => e.current);
|
|
1264
|
-
return Q(() => (e.current = !0, () => {
|
|
1265
|
-
e.current = !1;
|
|
1266
|
-
}), []), n.current;
|
|
1267
|
-
}
|
|
1268
|
-
const tn = typeof global < "u" && // @ts-ignore
|
|
1269
|
-
global.navigator && // @ts-ignore
|
|
1270
|
-
global.navigator.product === "ReactNative", nn = typeof document < "u", He = nn || tn ? ut : Q, rn = {
|
|
1271
|
-
[G]: "show",
|
|
1272
|
-
[J]: "show"
|
|
1273
|
-
}, ot = /* @__PURE__ */ fe.forwardRef(({
|
|
1274
|
-
className: e,
|
|
1275
|
-
children: n,
|
|
1276
|
-
transitionClasses: o = {},
|
|
1277
|
-
onEnter: r,
|
|
1278
|
-
...i
|
|
1279
|
-
}, t) => {
|
|
1280
|
-
const s = {
|
|
1281
|
-
in: !1,
|
|
1282
|
-
timeout: 300,
|
|
1283
|
-
mountOnEnter: !1,
|
|
1284
|
-
unmountOnExit: !1,
|
|
1285
|
-
appear: !1,
|
|
1286
|
-
...i
|
|
1287
|
-
}, u = k((d, p) => {
|
|
1288
|
-
Kt(d), r == null || r(d, p);
|
|
1289
|
-
}, [r]);
|
|
1290
|
-
return /* @__PURE__ */ L.jsx(Qt, {
|
|
1291
|
-
ref: t,
|
|
1292
|
-
addEndListener: Xt,
|
|
1293
|
-
...s,
|
|
1294
|
-
onEnter: u,
|
|
1295
|
-
childRef: n.ref,
|
|
1296
|
-
children: (d, p) => /* @__PURE__ */ fe.cloneElement(n, {
|
|
1297
|
-
...p,
|
|
1298
|
-
className: B("fade", e, n.props.className, rn[d], o[d])
|
|
1299
|
-
})
|
|
1300
|
-
});
|
|
1301
|
-
});
|
|
1302
|
-
ot.displayName = "Fade";
|
|
1303
|
-
const Cn = ot;
|
|
1304
|
-
function on(e) {
|
|
1305
|
-
const n = Y(e);
|
|
1306
|
-
return n.current = e, n;
|
|
1307
|
-
}
|
|
1308
|
-
function Pn(e) {
|
|
1309
|
-
const n = on(e);
|
|
1310
|
-
Q(() => () => n.current(), []);
|
|
1311
|
-
}
|
|
1312
|
-
function wn(e, n) {
|
|
1313
|
-
if (e.contains)
|
|
1314
|
-
return e.contains(n);
|
|
1315
|
-
if (e.compareDocumentPosition)
|
|
1316
|
-
return e === n || !!(e.compareDocumentPosition(n) & 16);
|
|
1317
|
-
}
|
|
1318
|
-
const it = /* @__PURE__ */ ct($e ? window : void 0);
|
|
1319
|
-
it.Provider;
|
|
1320
|
-
function an() {
|
|
1321
|
-
return oe(it);
|
|
1322
|
-
}
|
|
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));
|
|
1326
|
-
if (!r) {
|
|
1327
|
-
const t = Ce(e);
|
|
1328
|
-
t && i(t);
|
|
1329
|
-
}
|
|
1330
|
-
return Q(() => {
|
|
1331
|
-
n && r && n(r);
|
|
1332
|
-
}, [n, r]), Q(() => {
|
|
1333
|
-
const t = Ce(e);
|
|
1334
|
-
t !== r && i(t);
|
|
1335
|
-
}, [e, r]), r;
|
|
1336
|
-
}
|
|
1337
|
-
function sn({
|
|
1338
|
-
children: e,
|
|
1339
|
-
in: n,
|
|
1340
|
-
onExited: o,
|
|
1341
|
-
mountOnEnter: r,
|
|
1342
|
-
unmountOnExit: i
|
|
1343
|
-
}) {
|
|
1344
|
-
const t = Y(null), s = Y(n), u = rt(o);
|
|
1345
|
-
Q(() => {
|
|
1346
|
-
n ? s.current = !0 : u(t.current);
|
|
1347
|
-
}, [n, u]);
|
|
1348
|
-
const d = de(t, e.ref), p = /* @__PURE__ */ Ie(e, {
|
|
1349
|
-
ref: d
|
|
1350
|
-
});
|
|
1351
|
-
return n ? p : i || !s.current && r ? null : p;
|
|
1352
|
-
}
|
|
1353
|
-
const un = ["onEnter", "onEntering", "onEntered", "onExit", "onExiting", "onExited", "addEndListener", "children"];
|
|
1354
|
-
function cn(e, n) {
|
|
1355
|
-
if (e == null)
|
|
1356
|
-
return {};
|
|
1357
|
-
var o = {}, r = Object.keys(e), i, t;
|
|
1358
|
-
for (t = 0; t < r.length; t++)
|
|
1359
|
-
i = r[t], !(n.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
1360
|
-
return o;
|
|
1361
|
-
}
|
|
1362
|
-
function fn(e) {
|
|
1363
|
-
let {
|
|
1364
|
-
onEnter: n,
|
|
1365
|
-
onEntering: o,
|
|
1366
|
-
onEntered: r,
|
|
1367
|
-
onExit: i,
|
|
1368
|
-
onExiting: t,
|
|
1369
|
-
onExited: s,
|
|
1370
|
-
addEndListener: u,
|
|
1371
|
-
children: d
|
|
1372
|
-
} = e, p = cn(e, un);
|
|
1373
|
-
const v = Y(null), y = de(v, typeof d == "function" ? null : d.ref), _ = (j) => (c) => {
|
|
1374
|
-
j && v.current && j(v.current, c);
|
|
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]);
|
|
1376
|
-
return Object.assign({}, p, {
|
|
1377
|
-
nodeRef: v
|
|
1378
|
-
}, n && {
|
|
1379
|
-
onEnter: A
|
|
1380
|
-
}, o && {
|
|
1381
|
-
onEntering: D
|
|
1382
|
-
}, r && {
|
|
1383
|
-
onEntered: w
|
|
1384
|
-
}, i && {
|
|
1385
|
-
onExit: I
|
|
1386
|
-
}, t && {
|
|
1387
|
-
onExiting: $
|
|
1388
|
-
}, s && {
|
|
1389
|
-
onExited: U
|
|
1390
|
-
}, u && {
|
|
1391
|
-
addEndListener: M
|
|
1392
|
-
}, {
|
|
1393
|
-
children: typeof d == "function" ? (j, c) => (
|
|
1394
|
-
// TODO: Types for RTG missing innerProps, so need to cast.
|
|
1395
|
-
d(j, Object.assign({}, c, {
|
|
1396
|
-
ref: y
|
|
1397
|
-
}))
|
|
1398
|
-
) : /* @__PURE__ */ Ie(d, {
|
|
1399
|
-
ref: y
|
|
1400
|
-
})
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
const ln = ["component"];
|
|
1404
|
-
function dn(e, n) {
|
|
1405
|
-
if (e == null)
|
|
1406
|
-
return {};
|
|
1407
|
-
var o = {}, r = Object.keys(e), i, t;
|
|
1408
|
-
for (t = 0; t < r.length; t++)
|
|
1409
|
-
i = r[t], !(n.indexOf(i) >= 0) && (o[i] = e[i]);
|
|
1410
|
-
return o;
|
|
1411
|
-
}
|
|
1412
|
-
const pn = /* @__PURE__ */ fe.forwardRef((e, n) => {
|
|
1413
|
-
let {
|
|
1414
|
-
component: o
|
|
1415
|
-
} = e, r = dn(e, ln);
|
|
1416
|
-
const i = fn(r);
|
|
1417
|
-
return /* @__PURE__ */ L.jsx(o, Object.assign({
|
|
1418
|
-
ref: n
|
|
1419
|
-
}, i));
|
|
1420
|
-
}), vn = pn;
|
|
1421
|
-
function yn({
|
|
1422
|
-
in: e,
|
|
1423
|
-
onTransition: n
|
|
1424
|
-
}) {
|
|
1425
|
-
const o = Y(null), r = Y(!0), i = rt(n);
|
|
1426
|
-
return He(() => {
|
|
1427
|
-
if (!o.current)
|
|
1428
|
-
return;
|
|
1429
|
-
let t = !1;
|
|
1430
|
-
return i({
|
|
1431
|
-
in: e,
|
|
1432
|
-
element: o.current,
|
|
1433
|
-
initial: r.current,
|
|
1434
|
-
isStale: () => t
|
|
1435
|
-
}), () => {
|
|
1436
|
-
t = !0;
|
|
1437
|
-
};
|
|
1438
|
-
}, [e, i]), He(() => (r.current = !1, () => {
|
|
1439
|
-
r.current = !0;
|
|
1440
|
-
}), []), o;
|
|
1441
|
-
}
|
|
1442
|
-
function En({
|
|
1443
|
-
children: e,
|
|
1444
|
-
in: n,
|
|
1445
|
-
onExited: o,
|
|
1446
|
-
onEntered: r,
|
|
1447
|
-
transition: i
|
|
1448
|
-
}) {
|
|
1449
|
-
const [t, s] = Me(!n);
|
|
1450
|
-
n && t && s(!1);
|
|
1451
|
-
const u = yn({
|
|
1452
|
-
in: !!n,
|
|
1453
|
-
onTransition: (p) => {
|
|
1454
|
-
const v = () => {
|
|
1455
|
-
p.isStale() || (p.in ? r == null || r(p.element, p.initial) : (s(!0), o == null || o(p.element)));
|
|
1456
|
-
};
|
|
1457
|
-
Promise.resolve(i(p)).then(v, (y) => {
|
|
1458
|
-
throw p.in || s(!0), y;
|
|
1459
|
-
});
|
|
1460
|
-
}
|
|
1461
|
-
}), d = de(u, e.ref);
|
|
1462
|
-
return t && !n ? null : /* @__PURE__ */ Ie(e, {
|
|
1463
|
-
ref: d
|
|
1464
|
-
});
|
|
1465
|
-
}
|
|
1466
|
-
function An(e, n, o) {
|
|
1467
|
-
return e ? /* @__PURE__ */ L.jsx(vn, Object.assign({}, o, {
|
|
1468
|
-
component: e
|
|
1469
|
-
})) : n ? /* @__PURE__ */ L.jsx(En, Object.assign({}, o, {
|
|
1470
|
-
transition: n
|
|
1471
|
-
})) : /* @__PURE__ */ L.jsx(sn, Object.assign({}, o));
|
|
1472
|
-
}
|
|
1473
|
-
function Dn(e) {
|
|
1474
|
-
return e.code === "Escape" || e.keyCode === 27;
|
|
1475
|
-
}
|
|
1476
|
-
function Mn(e, n) {
|
|
1477
|
-
return e.classList ? !!n && e.classList.contains(n) : (" " + (e.className.baseVal || e.className) + " ").indexOf(" " + n + " ") !== -1;
|
|
1478
|
-
}
|
|
1479
|
-
export {
|
|
1480
|
-
J as A,
|
|
1481
|
-
Kt as B,
|
|
1482
|
-
gn as C,
|
|
1483
|
-
Rn as D,
|
|
1484
|
-
H as E,
|
|
1485
|
-
Cn as F,
|
|
1486
|
-
sn as N,
|
|
1487
|
-
m as P,
|
|
1488
|
-
xn as T,
|
|
1489
|
-
bt as _,
|
|
1490
|
-
jn as a,
|
|
1491
|
-
Sn as b,
|
|
1492
|
-
$e as c,
|
|
1493
|
-
rt as d,
|
|
1494
|
-
wn as e,
|
|
1495
|
-
Pn as f,
|
|
1496
|
-
Tn as g,
|
|
1497
|
-
Mn as h,
|
|
1498
|
-
Dn as i,
|
|
1499
|
-
_n as j,
|
|
1500
|
-
de as k,
|
|
1501
|
-
nt as l,
|
|
1502
|
-
On as m,
|
|
1503
|
-
Ut as n,
|
|
1504
|
-
Je as o,
|
|
1505
|
-
Yt as p,
|
|
1506
|
-
He as q,
|
|
1507
|
-
An as r,
|
|
1508
|
-
Ze as s,
|
|
1509
|
-
Gt as t,
|
|
1510
|
-
an as u,
|
|
1511
|
-
Jt as v,
|
|
1512
|
-
Qt as w,
|
|
1513
|
-
Xt as x,
|
|
1514
|
-
je as y,
|
|
1515
|
-
G as z
|
|
1516
|
-
};
|