@raspberrypifoundation/design-system-react 2.1.0 → 2.2.0-beta.2
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/CHANGELOG.md +6 -0
- package/dist/rpf-design-system-react.cjs +35 -0
- package/dist/rpf-design-system-react.js +933 -933
- package/dist/types/components/Accordion/index.d.ts +16 -0
- package/dist/types/components/Alert/index.d.ts +24 -0
- package/dist/types/components/Button/index.d.ts +36 -0
- package/dist/types/components/Form/CheckboxInput/index.d.ts +26 -0
- package/dist/types/components/Form/Fieldset/index.d.ts +20 -0
- package/dist/types/components/Form/InputField/index.d.ts +20 -0
- package/dist/types/components/Form/InputLabel/index.d.ts +16 -0
- package/dist/types/components/Form/RadioInput/index.d.ts +24 -0
- package/dist/types/components/Form/SearchInput/index.d.ts +26 -0
- package/dist/types/components/Form/SelectInput/index.d.ts +30 -0
- package/dist/types/components/Form/TextInput/index.d.ts +26 -0
- package/dist/types/components/Form/TextareaInput/index.d.ts +28 -0
- package/dist/types/components/ProgressBar/index.d.ts +12 -0
- package/dist/types/components/Table/BodyCell/index.d.ts +10 -0
- package/dist/types/components/Table/HeaderCell/index.d.ts +12 -0
- package/dist/types/components/Table/Table/index.d.ts +14 -0
- package/dist/types/components/Tag/index.d.ts +18 -0
- package/dist/types/index.d.ts +17 -0
- package/package.json +30 -28
- package/dist/rpf-design-system-react.umd.cjs +0 -35
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as q, jsx as
|
|
2
|
-
import * as
|
|
1
|
+
import { jsxs as q, jsx as C, Fragment as Me } from "react/jsx-runtime";
|
|
2
|
+
import * as d from "react";
|
|
3
3
|
import Tt from "react";
|
|
4
4
|
function st(e) {
|
|
5
5
|
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
@@ -16,9 +16,9 @@ function St() {
|
|
|
16
16
|
(function() {
|
|
17
17
|
var t = {}.hasOwnProperty;
|
|
18
18
|
function r() {
|
|
19
|
-
for (var a = "",
|
|
20
|
-
var
|
|
21
|
-
|
|
19
|
+
for (var a = "", l = 0; l < arguments.length; l++) {
|
|
20
|
+
var o = arguments[l];
|
|
21
|
+
o && (a = n(a, i(o)));
|
|
22
22
|
}
|
|
23
23
|
return a;
|
|
24
24
|
}
|
|
@@ -31,13 +31,13 @@ function St() {
|
|
|
31
31
|
return r.apply(null, a);
|
|
32
32
|
if (a.toString !== Object.prototype.toString && !a.toString.toString().includes("[native code]"))
|
|
33
33
|
return a.toString();
|
|
34
|
-
var
|
|
35
|
-
for (var
|
|
36
|
-
t.call(a,
|
|
37
|
-
return
|
|
34
|
+
var l = "";
|
|
35
|
+
for (var o in a)
|
|
36
|
+
t.call(a, o) && a[o] && (l = n(l, o));
|
|
37
|
+
return l;
|
|
38
38
|
}
|
|
39
|
-
function n(a,
|
|
40
|
-
return
|
|
39
|
+
function n(a, l) {
|
|
40
|
+
return l ? a ? a + " " + l : a + l : a;
|
|
41
41
|
}
|
|
42
42
|
e.exports ? (r.default = r, e.exports = r) : window.classNames = r;
|
|
43
43
|
})();
|
|
@@ -45,7 +45,7 @@ function St() {
|
|
|
45
45
|
}
|
|
46
46
|
var Pt = St();
|
|
47
47
|
const B = /* @__PURE__ */ st(Pt);
|
|
48
|
-
var fe = { exports: {} }, de = { exports: {} },
|
|
48
|
+
var fe = { exports: {} }, de = { exports: {} }, M = {};
|
|
49
49
|
/** @license React v16.13.1
|
|
50
50
|
* react-is.production.min.js
|
|
51
51
|
*
|
|
@@ -56,29 +56,29 @@ var fe = { exports: {} }, de = { exports: {} }, j = {};
|
|
|
56
56
|
*/
|
|
57
57
|
var Je;
|
|
58
58
|
function _t() {
|
|
59
|
-
if (Je) return
|
|
59
|
+
if (Je) return M;
|
|
60
60
|
Je = 1;
|
|
61
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114,
|
|
62
|
-
function
|
|
61
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
62
|
+
function S(g) {
|
|
63
63
|
if (typeof g == "object" && g !== null) {
|
|
64
64
|
var U = g.$$typeof;
|
|
65
65
|
switch (U) {
|
|
66
66
|
case t:
|
|
67
67
|
switch (g = g.type, g) {
|
|
68
|
-
case c:
|
|
69
68
|
case u:
|
|
69
|
+
case c:
|
|
70
70
|
case i:
|
|
71
71
|
case a:
|
|
72
72
|
case n:
|
|
73
|
-
case
|
|
73
|
+
case h:
|
|
74
74
|
return g;
|
|
75
75
|
default:
|
|
76
76
|
switch (g = g && g.$$typeof, g) {
|
|
77
|
-
case l:
|
|
78
|
-
case d:
|
|
79
|
-
case h:
|
|
80
|
-
case b:
|
|
81
77
|
case o:
|
|
78
|
+
case f:
|
|
79
|
+
case m:
|
|
80
|
+
case v:
|
|
81
|
+
case l:
|
|
82
82
|
return g;
|
|
83
83
|
default:
|
|
84
84
|
return U;
|
|
@@ -89,38 +89,38 @@ function _t() {
|
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
92
|
+
function N(g) {
|
|
93
|
+
return S(g) === c;
|
|
94
94
|
}
|
|
95
|
-
return
|
|
96
|
-
return
|
|
97
|
-
},
|
|
98
|
-
return
|
|
99
|
-
},
|
|
100
|
-
return
|
|
101
|
-
},
|
|
95
|
+
return M.AsyncMode = u, M.ConcurrentMode = c, M.ContextConsumer = o, M.ContextProvider = l, M.Element = t, M.ForwardRef = f, M.Fragment = i, M.Lazy = m, M.Memo = v, M.Portal = r, M.Profiler = a, M.StrictMode = n, M.Suspense = h, M.isAsyncMode = function(g) {
|
|
96
|
+
return N(g) || S(g) === u;
|
|
97
|
+
}, M.isConcurrentMode = N, M.isContextConsumer = function(g) {
|
|
98
|
+
return S(g) === o;
|
|
99
|
+
}, M.isContextProvider = function(g) {
|
|
100
|
+
return S(g) === l;
|
|
101
|
+
}, M.isElement = function(g) {
|
|
102
102
|
return typeof g == "object" && g !== null && g.$$typeof === t;
|
|
103
|
-
},
|
|
104
|
-
return
|
|
105
|
-
},
|
|
106
|
-
return
|
|
107
|
-
},
|
|
108
|
-
return
|
|
109
|
-
},
|
|
110
|
-
return
|
|
111
|
-
},
|
|
112
|
-
return
|
|
113
|
-
},
|
|
114
|
-
return
|
|
115
|
-
},
|
|
116
|
-
return
|
|
117
|
-
},
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
return typeof g == "string" || typeof g == "function" || g === i || g ===
|
|
121
|
-
},
|
|
122
|
-
}
|
|
123
|
-
var
|
|
103
|
+
}, M.isForwardRef = function(g) {
|
|
104
|
+
return S(g) === f;
|
|
105
|
+
}, M.isFragment = function(g) {
|
|
106
|
+
return S(g) === i;
|
|
107
|
+
}, M.isLazy = function(g) {
|
|
108
|
+
return S(g) === m;
|
|
109
|
+
}, M.isMemo = function(g) {
|
|
110
|
+
return S(g) === v;
|
|
111
|
+
}, M.isPortal = function(g) {
|
|
112
|
+
return S(g) === r;
|
|
113
|
+
}, M.isProfiler = function(g) {
|
|
114
|
+
return S(g) === a;
|
|
115
|
+
}, M.isStrictMode = function(g) {
|
|
116
|
+
return S(g) === n;
|
|
117
|
+
}, M.isSuspense = function(g) {
|
|
118
|
+
return S(g) === h;
|
|
119
|
+
}, M.isValidElementType = function(g) {
|
|
120
|
+
return typeof g == "string" || typeof g == "function" || g === i || g === c || g === a || g === n || g === h || g === p || typeof g == "object" && g !== null && (g.$$typeof === m || g.$$typeof === v || g.$$typeof === l || g.$$typeof === o || g.$$typeof === f || g.$$typeof === R || g.$$typeof === b || g.$$typeof === T || g.$$typeof === x);
|
|
121
|
+
}, M.typeOf = S, M;
|
|
122
|
+
}
|
|
123
|
+
var j = {};
|
|
124
124
|
/** @license React v16.13.1
|
|
125
125
|
* react-is.development.js
|
|
126
126
|
*
|
|
@@ -132,33 +132,33 @@ var M = {};
|
|
|
132
132
|
var Ke;
|
|
133
133
|
function Ot() {
|
|
134
134
|
return Ke || (Ke = 1, process.env.NODE_ENV !== "production" && function() {
|
|
135
|
-
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114,
|
|
136
|
-
function
|
|
137
|
-
return typeof
|
|
138
|
-
|
|
139
|
-
}
|
|
140
|
-
function
|
|
141
|
-
if (typeof
|
|
142
|
-
var K =
|
|
135
|
+
var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, r = e ? Symbol.for("react.portal") : 60106, i = e ? Symbol.for("react.fragment") : 60107, n = e ? Symbol.for("react.strict_mode") : 60108, a = e ? Symbol.for("react.profiler") : 60114, l = e ? Symbol.for("react.provider") : 60109, o = e ? Symbol.for("react.context") : 60110, u = e ? Symbol.for("react.async_mode") : 60111, c = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, h = e ? Symbol.for("react.suspense") : 60113, p = e ? Symbol.for("react.suspense_list") : 60120, v = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, x = e ? Symbol.for("react.block") : 60121, R = e ? Symbol.for("react.fundamental") : 60117, b = e ? Symbol.for("react.responder") : 60118, T = e ? Symbol.for("react.scope") : 60119;
|
|
136
|
+
function S(E) {
|
|
137
|
+
return typeof E == "string" || typeof E == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
138
|
+
E === i || E === c || E === a || E === n || E === h || E === p || typeof E == "object" && E !== null && (E.$$typeof === m || E.$$typeof === v || E.$$typeof === l || E.$$typeof === o || E.$$typeof === f || E.$$typeof === R || E.$$typeof === b || E.$$typeof === T || E.$$typeof === x);
|
|
139
|
+
}
|
|
140
|
+
function N(E) {
|
|
141
|
+
if (typeof E == "object" && E !== null) {
|
|
142
|
+
var K = E.$$typeof;
|
|
143
143
|
switch (K) {
|
|
144
144
|
case t:
|
|
145
|
-
var ce =
|
|
145
|
+
var ce = E.type;
|
|
146
146
|
switch (ce) {
|
|
147
|
-
case c:
|
|
148
147
|
case u:
|
|
148
|
+
case c:
|
|
149
149
|
case i:
|
|
150
150
|
case a:
|
|
151
151
|
case n:
|
|
152
|
-
case
|
|
152
|
+
case h:
|
|
153
153
|
return ce;
|
|
154
154
|
default:
|
|
155
155
|
var He = ce && ce.$$typeof;
|
|
156
156
|
switch (He) {
|
|
157
|
-
case l:
|
|
158
|
-
case d:
|
|
159
|
-
case h:
|
|
160
|
-
case b:
|
|
161
157
|
case o:
|
|
158
|
+
case f:
|
|
159
|
+
case m:
|
|
160
|
+
case v:
|
|
161
|
+
case l:
|
|
162
162
|
return He;
|
|
163
163
|
default:
|
|
164
164
|
return K;
|
|
@@ -169,48 +169,48 @@ function Ot() {
|
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
171
|
}
|
|
172
|
-
var g =
|
|
173
|
-
function Ce(
|
|
174
|
-
return ue || (ue = !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.")),
|
|
172
|
+
var g = u, U = c, Y = o, V = l, F = t, H = f, ee = i, we = m, xe = v, ae = r, Re = a, J = n, te = h, ue = !1;
|
|
173
|
+
function Ce(E) {
|
|
174
|
+
return ue || (ue = !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.")), y(E) || N(E) === u;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
177
|
-
return
|
|
176
|
+
function y(E) {
|
|
177
|
+
return N(E) === c;
|
|
178
178
|
}
|
|
179
|
-
function
|
|
180
|
-
return
|
|
179
|
+
function w(E) {
|
|
180
|
+
return N(E) === o;
|
|
181
181
|
}
|
|
182
|
-
function $(
|
|
183
|
-
return
|
|
182
|
+
function $(E) {
|
|
183
|
+
return N(E) === l;
|
|
184
184
|
}
|
|
185
|
-
function
|
|
186
|
-
return typeof
|
|
185
|
+
function O(E) {
|
|
186
|
+
return typeof E == "object" && E !== null && E.$$typeof === t;
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
return
|
|
188
|
+
function P(E) {
|
|
189
|
+
return N(E) === f;
|
|
190
190
|
}
|
|
191
|
-
function I(
|
|
192
|
-
return
|
|
191
|
+
function I(E) {
|
|
192
|
+
return N(E) === i;
|
|
193
193
|
}
|
|
194
|
-
function
|
|
195
|
-
return
|
|
194
|
+
function _(E) {
|
|
195
|
+
return N(E) === m;
|
|
196
196
|
}
|
|
197
|
-
function
|
|
198
|
-
return
|
|
197
|
+
function k(E) {
|
|
198
|
+
return N(E) === v;
|
|
199
199
|
}
|
|
200
|
-
function A(
|
|
201
|
-
return
|
|
200
|
+
function A(E) {
|
|
201
|
+
return N(E) === r;
|
|
202
202
|
}
|
|
203
|
-
function D(
|
|
204
|
-
return
|
|
203
|
+
function D(E) {
|
|
204
|
+
return N(E) === a;
|
|
205
205
|
}
|
|
206
|
-
function L(
|
|
207
|
-
return
|
|
206
|
+
function L(E) {
|
|
207
|
+
return N(E) === n;
|
|
208
208
|
}
|
|
209
|
-
function z(
|
|
210
|
-
return
|
|
209
|
+
function z(E) {
|
|
210
|
+
return N(E) === h;
|
|
211
211
|
}
|
|
212
|
-
|
|
213
|
-
}()),
|
|
212
|
+
j.AsyncMode = g, j.ConcurrentMode = U, j.ContextConsumer = Y, j.ContextProvider = V, j.Element = F, j.ForwardRef = H, j.Fragment = ee, j.Lazy = we, j.Memo = xe, j.Portal = ae, j.Profiler = Re, j.StrictMode = J, j.Suspense = te, j.isAsyncMode = Ce, j.isConcurrentMode = y, j.isContextConsumer = w, j.isContextProvider = $, j.isElement = O, j.isForwardRef = P, j.isFragment = I, j.isLazy = _, j.isMemo = k, j.isPortal = A, j.isProfiler = D, j.isStrictMode = L, j.isSuspense = z, j.isValidElementType = S, j.typeOf = N;
|
|
213
|
+
}()), j;
|
|
214
214
|
}
|
|
215
215
|
var Ge;
|
|
216
216
|
function ut() {
|
|
@@ -222,7 +222,7 @@ object-assign
|
|
|
222
222
|
@license MIT
|
|
223
223
|
*/
|
|
224
224
|
var Se, Xe;
|
|
225
|
-
function
|
|
225
|
+
function kt() {
|
|
226
226
|
if (Xe) return Se;
|
|
227
227
|
Xe = 1;
|
|
228
228
|
var e = Object.getOwnPropertySymbols, t = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
@@ -238,37 +238,37 @@ function $t() {
|
|
|
238
238
|
var a = new String("abc");
|
|
239
239
|
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
240
240
|
return !1;
|
|
241
|
-
for (var
|
|
242
|
-
|
|
243
|
-
var
|
|
244
|
-
return
|
|
241
|
+
for (var l = {}, o = 0; o < 10; o++)
|
|
242
|
+
l["_" + String.fromCharCode(o)] = o;
|
|
243
|
+
var u = Object.getOwnPropertyNames(l).map(function(f) {
|
|
244
|
+
return l[f];
|
|
245
245
|
});
|
|
246
|
-
if (
|
|
246
|
+
if (u.join("") !== "0123456789")
|
|
247
247
|
return !1;
|
|
248
|
-
var
|
|
249
|
-
return "abcdefghijklmnopqrst".split("").forEach(function(
|
|
250
|
-
|
|
251
|
-
}), Object.keys(Object.assign({},
|
|
248
|
+
var c = {};
|
|
249
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(f) {
|
|
250
|
+
c[f] = f;
|
|
251
|
+
}), Object.keys(Object.assign({}, c)).join("") === "abcdefghijklmnopqrst";
|
|
252
252
|
} catch {
|
|
253
253
|
return !1;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
return Se = n() ? Object.assign : function(a,
|
|
257
|
-
for (var
|
|
258
|
-
|
|
259
|
-
for (var
|
|
260
|
-
t.call(
|
|
256
|
+
return Se = n() ? Object.assign : function(a, l) {
|
|
257
|
+
for (var o, u = i(a), c, f = 1; f < arguments.length; f++) {
|
|
258
|
+
o = Object(arguments[f]);
|
|
259
|
+
for (var h in o)
|
|
260
|
+
t.call(o, h) && (u[h] = o[h]);
|
|
261
261
|
if (e) {
|
|
262
|
-
|
|
263
|
-
for (var
|
|
264
|
-
r.call(
|
|
262
|
+
c = e(o);
|
|
263
|
+
for (var p = 0; p < c.length; p++)
|
|
264
|
+
r.call(o, c[p]) && (u[c[p]] = o[c[p]]);
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
return
|
|
267
|
+
return u;
|
|
268
268
|
}, Se;
|
|
269
269
|
}
|
|
270
270
|
var Pe, Ze;
|
|
271
|
-
function
|
|
271
|
+
function je() {
|
|
272
272
|
if (Ze) return Pe;
|
|
273
273
|
Ze = 1;
|
|
274
274
|
var e = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
@@ -279,45 +279,45 @@ function ct() {
|
|
|
279
279
|
return Qe || (Qe = 1, _e = Function.call.bind(Object.prototype.hasOwnProperty)), _e;
|
|
280
280
|
}
|
|
281
281
|
var Oe, et;
|
|
282
|
-
function
|
|
282
|
+
function $t() {
|
|
283
283
|
if (et) return Oe;
|
|
284
284
|
et = 1;
|
|
285
285
|
var e = function() {
|
|
286
286
|
};
|
|
287
287
|
if (process.env.NODE_ENV !== "production") {
|
|
288
|
-
var t = /* @__PURE__ */
|
|
288
|
+
var t = /* @__PURE__ */ je(), r = {}, i = /* @__PURE__ */ ct();
|
|
289
289
|
e = function(a) {
|
|
290
|
-
var
|
|
291
|
-
typeof console < "u" && console.error(
|
|
290
|
+
var l = "Warning: " + a;
|
|
291
|
+
typeof console < "u" && console.error(l);
|
|
292
292
|
try {
|
|
293
|
-
throw new Error(
|
|
293
|
+
throw new Error(l);
|
|
294
294
|
} catch {
|
|
295
295
|
}
|
|
296
296
|
};
|
|
297
297
|
}
|
|
298
|
-
function n(a, o,
|
|
298
|
+
function n(a, l, o, u, c) {
|
|
299
299
|
if (process.env.NODE_ENV !== "production") {
|
|
300
|
-
for (var
|
|
301
|
-
if (i(a,
|
|
302
|
-
var
|
|
300
|
+
for (var f in a)
|
|
301
|
+
if (i(a, f)) {
|
|
302
|
+
var h;
|
|
303
303
|
try {
|
|
304
|
-
if (typeof a[
|
|
305
|
-
var
|
|
306
|
-
(
|
|
304
|
+
if (typeof a[f] != "function") {
|
|
305
|
+
var p = Error(
|
|
306
|
+
(u || "React class") + ": " + o + " type `" + f + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[f] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
307
307
|
);
|
|
308
|
-
throw
|
|
308
|
+
throw p.name = "Invariant Violation", p;
|
|
309
309
|
}
|
|
310
|
-
|
|
311
|
-
} catch (
|
|
312
|
-
|
|
310
|
+
h = a[f](l, f, u, o, null, t);
|
|
311
|
+
} catch (m) {
|
|
312
|
+
h = m;
|
|
313
313
|
}
|
|
314
|
-
if (
|
|
315
|
-
(
|
|
316
|
-
),
|
|
317
|
-
r[
|
|
318
|
-
var
|
|
314
|
+
if (h && !(h instanceof Error) && e(
|
|
315
|
+
(u || "React class") + ": type specification of " + o + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
316
|
+
), h instanceof Error && !(h.message in r)) {
|
|
317
|
+
r[h.message] = !0;
|
|
318
|
+
var v = c ? c() : "";
|
|
319
319
|
e(
|
|
320
|
-
"Failed " +
|
|
320
|
+
"Failed " + o + " type: " + h.message + (v ?? "")
|
|
321
321
|
);
|
|
322
322
|
}
|
|
323
323
|
}
|
|
@@ -327,42 +327,42 @@ function kt() {
|
|
|
327
327
|
process.env.NODE_ENV !== "production" && (r = {});
|
|
328
328
|
}, Oe = n, Oe;
|
|
329
329
|
}
|
|
330
|
-
var
|
|
330
|
+
var ke, tt;
|
|
331
331
|
function Nt() {
|
|
332
|
-
if (tt) return
|
|
332
|
+
if (tt) return ke;
|
|
333
333
|
tt = 1;
|
|
334
|
-
var e = ut(), t =
|
|
334
|
+
var e = ut(), t = kt(), r = /* @__PURE__ */ je(), i = /* @__PURE__ */ ct(), n = /* @__PURE__ */ $t(), a = function() {
|
|
335
335
|
};
|
|
336
|
-
process.env.NODE_ENV !== "production" && (a = function(
|
|
337
|
-
var
|
|
338
|
-
typeof console < "u" && console.error(
|
|
336
|
+
process.env.NODE_ENV !== "production" && (a = function(o) {
|
|
337
|
+
var u = "Warning: " + o;
|
|
338
|
+
typeof console < "u" && console.error(u);
|
|
339
339
|
try {
|
|
340
|
-
throw new Error(
|
|
340
|
+
throw new Error(u);
|
|
341
341
|
} catch {
|
|
342
342
|
}
|
|
343
343
|
});
|
|
344
|
-
function
|
|
344
|
+
function l() {
|
|
345
345
|
return null;
|
|
346
346
|
}
|
|
347
|
-
return
|
|
348
|
-
var
|
|
349
|
-
function
|
|
350
|
-
var
|
|
351
|
-
if (typeof
|
|
352
|
-
return
|
|
353
|
-
}
|
|
354
|
-
var
|
|
355
|
-
array:
|
|
356
|
-
bigint:
|
|
357
|
-
bool:
|
|
358
|
-
func:
|
|
359
|
-
number:
|
|
360
|
-
object:
|
|
361
|
-
string:
|
|
362
|
-
symbol:
|
|
363
|
-
any:
|
|
364
|
-
arrayOf:
|
|
365
|
-
element:
|
|
347
|
+
return ke = function(o, u) {
|
|
348
|
+
var c = typeof Symbol == "function" && Symbol.iterator, f = "@@iterator";
|
|
349
|
+
function h(y) {
|
|
350
|
+
var w = y && (c && y[c] || y[f]);
|
|
351
|
+
if (typeof w == "function")
|
|
352
|
+
return w;
|
|
353
|
+
}
|
|
354
|
+
var p = "<<anonymous>>", v = {
|
|
355
|
+
array: b("array"),
|
|
356
|
+
bigint: b("bigint"),
|
|
357
|
+
bool: b("boolean"),
|
|
358
|
+
func: b("function"),
|
|
359
|
+
number: b("number"),
|
|
360
|
+
object: b("object"),
|
|
361
|
+
string: b("string"),
|
|
362
|
+
symbol: b("symbol"),
|
|
363
|
+
any: T(),
|
|
364
|
+
arrayOf: S,
|
|
365
|
+
element: N(),
|
|
366
366
|
elementType: g(),
|
|
367
367
|
instanceOf: U,
|
|
368
368
|
node: H(),
|
|
@@ -372,234 +372,234 @@ function Nt() {
|
|
|
372
372
|
shape: we,
|
|
373
373
|
exact: xe
|
|
374
374
|
};
|
|
375
|
-
function
|
|
376
|
-
return
|
|
375
|
+
function m(y, w) {
|
|
376
|
+
return y === w ? y !== 0 || 1 / y === 1 / w : y !== y && w !== w;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
this.message =
|
|
378
|
+
function x(y, w) {
|
|
379
|
+
this.message = y, this.data = w && typeof w == "object" ? w : {}, this.stack = "";
|
|
380
380
|
}
|
|
381
|
-
|
|
382
|
-
function
|
|
381
|
+
x.prototype = Error.prototype;
|
|
382
|
+
function R(y) {
|
|
383
383
|
if (process.env.NODE_ENV !== "production")
|
|
384
|
-
var
|
|
385
|
-
function
|
|
386
|
-
if (A = A ||
|
|
387
|
-
if (
|
|
388
|
-
var
|
|
384
|
+
var w = {}, $ = 0;
|
|
385
|
+
function O(I, _, k, A, D, L, z) {
|
|
386
|
+
if (A = A || p, L = L || k, z !== r) {
|
|
387
|
+
if (u) {
|
|
388
|
+
var E = new Error(
|
|
389
389
|
"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"
|
|
390
390
|
);
|
|
391
|
-
throw
|
|
391
|
+
throw E.name = "Invariant Violation", E;
|
|
392
392
|
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
393
|
-
var K = A + ":" +
|
|
394
|
-
!
|
|
393
|
+
var K = A + ":" + k;
|
|
394
|
+
!w[K] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
395
395
|
$ < 3 && (a(
|
|
396
396
|
"You are manually calling a React.PropTypes validation function for the `" + L + "` prop on `" + A + "`. 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."
|
|
397
|
-
),
|
|
397
|
+
), w[K] = !0, $++);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
|
-
return
|
|
400
|
+
return _[k] == null ? I ? _[k] === null ? new x("The " + D + " `" + L + "` is marked as required " + ("in `" + A + "`, but its value is `null`.")) : new x("The " + D + " `" + L + "` is marked as required in " + ("`" + A + "`, but its value is `undefined`.")) : null : y(_, k, A, D, L);
|
|
401
401
|
}
|
|
402
|
-
var
|
|
403
|
-
return
|
|
402
|
+
var P = O.bind(null, !1);
|
|
403
|
+
return P.isRequired = O.bind(null, !0), P;
|
|
404
404
|
}
|
|
405
|
-
function y
|
|
406
|
-
function
|
|
407
|
-
var A = $[
|
|
408
|
-
if (D !==
|
|
405
|
+
function b(y) {
|
|
406
|
+
function w($, O, P, I, _, k) {
|
|
407
|
+
var A = $[O], D = J(A);
|
|
408
|
+
if (D !== y) {
|
|
409
409
|
var L = te(A);
|
|
410
|
-
return new
|
|
411
|
-
"Invalid " + I + " `" +
|
|
412
|
-
{ expectedType:
|
|
410
|
+
return new x(
|
|
411
|
+
"Invalid " + I + " `" + _ + "` of type " + ("`" + L + "` supplied to `" + P + "`, expected ") + ("`" + y + "`."),
|
|
412
|
+
{ expectedType: y }
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
415
|
return null;
|
|
416
416
|
}
|
|
417
|
-
return
|
|
418
|
-
}
|
|
419
|
-
function
|
|
420
|
-
return
|
|
421
|
-
}
|
|
422
|
-
function
|
|
423
|
-
function
|
|
424
|
-
if (typeof
|
|
425
|
-
return new
|
|
426
|
-
var
|
|
427
|
-
if (!Array.isArray(
|
|
428
|
-
var A = J(
|
|
429
|
-
return new
|
|
417
|
+
return R(w);
|
|
418
|
+
}
|
|
419
|
+
function T() {
|
|
420
|
+
return R(l);
|
|
421
|
+
}
|
|
422
|
+
function S(y) {
|
|
423
|
+
function w($, O, P, I, _) {
|
|
424
|
+
if (typeof y != "function")
|
|
425
|
+
return new x("Property `" + _ + "` of component `" + P + "` has invalid PropType notation inside arrayOf.");
|
|
426
|
+
var k = $[O];
|
|
427
|
+
if (!Array.isArray(k)) {
|
|
428
|
+
var A = J(k);
|
|
429
|
+
return new x("Invalid " + I + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected an array."));
|
|
430
430
|
}
|
|
431
|
-
for (var D = 0; D <
|
|
432
|
-
var L =
|
|
431
|
+
for (var D = 0; D < k.length; D++) {
|
|
432
|
+
var L = y(k, D, P, I, _ + "[" + D + "]", r);
|
|
433
433
|
if (L instanceof Error)
|
|
434
434
|
return L;
|
|
435
435
|
}
|
|
436
436
|
return null;
|
|
437
437
|
}
|
|
438
|
-
return
|
|
439
|
-
}
|
|
440
|
-
function
|
|
441
|
-
function
|
|
442
|
-
var
|
|
443
|
-
if (!
|
|
444
|
-
var
|
|
445
|
-
return new
|
|
438
|
+
return R(w);
|
|
439
|
+
}
|
|
440
|
+
function N() {
|
|
441
|
+
function y(w, $, O, P, I) {
|
|
442
|
+
var _ = w[$];
|
|
443
|
+
if (!o(_)) {
|
|
444
|
+
var k = J(_);
|
|
445
|
+
return new x("Invalid " + P + " `" + I + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
446
446
|
}
|
|
447
447
|
return null;
|
|
448
448
|
}
|
|
449
|
-
return
|
|
449
|
+
return R(y);
|
|
450
450
|
}
|
|
451
451
|
function g() {
|
|
452
|
-
function
|
|
453
|
-
var
|
|
454
|
-
if (!e.isValidElementType(
|
|
455
|
-
var
|
|
456
|
-
return new
|
|
452
|
+
function y(w, $, O, P, I) {
|
|
453
|
+
var _ = w[$];
|
|
454
|
+
if (!e.isValidElementType(_)) {
|
|
455
|
+
var k = J(_);
|
|
456
|
+
return new x("Invalid " + P + " `" + I + "` of type " + ("`" + k + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
457
457
|
}
|
|
458
458
|
return null;
|
|
459
459
|
}
|
|
460
|
-
return
|
|
460
|
+
return R(y);
|
|
461
461
|
}
|
|
462
|
-
function U(
|
|
463
|
-
function
|
|
464
|
-
if (!($[
|
|
465
|
-
var
|
|
466
|
-
return new
|
|
462
|
+
function U(y) {
|
|
463
|
+
function w($, O, P, I, _) {
|
|
464
|
+
if (!($[O] instanceof y)) {
|
|
465
|
+
var k = y.name || p, A = Ce($[O]);
|
|
466
|
+
return new x("Invalid " + I + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected ") + ("instance of `" + k + "`."));
|
|
467
467
|
}
|
|
468
468
|
return null;
|
|
469
469
|
}
|
|
470
|
-
return
|
|
470
|
+
return R(w);
|
|
471
471
|
}
|
|
472
|
-
function Y(
|
|
473
|
-
if (!Array.isArray(
|
|
472
|
+
function Y(y) {
|
|
473
|
+
if (!Array.isArray(y))
|
|
474
474
|
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
475
475
|
"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])."
|
|
476
|
-
) : a("Invalid argument supplied to oneOf, expected an array.")),
|
|
477
|
-
function
|
|
478
|
-
for (var
|
|
479
|
-
if (
|
|
476
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), l;
|
|
477
|
+
function w($, O, P, I, _) {
|
|
478
|
+
for (var k = $[O], A = 0; A < y.length; A++)
|
|
479
|
+
if (m(k, y[A]))
|
|
480
480
|
return null;
|
|
481
|
-
var D = JSON.stringify(
|
|
482
|
-
var K = te(
|
|
483
|
-
return K === "symbol" ? String(
|
|
481
|
+
var D = JSON.stringify(y, function(z, E) {
|
|
482
|
+
var K = te(E);
|
|
483
|
+
return K === "symbol" ? String(E) : E;
|
|
484
484
|
});
|
|
485
|
-
return new
|
|
485
|
+
return new x("Invalid " + I + " `" + _ + "` of value `" + String(k) + "` " + ("supplied to `" + P + "`, expected one of " + D + "."));
|
|
486
486
|
}
|
|
487
|
-
return
|
|
487
|
+
return R(w);
|
|
488
488
|
}
|
|
489
|
-
function V(
|
|
490
|
-
function
|
|
491
|
-
if (typeof
|
|
492
|
-
return new
|
|
493
|
-
var
|
|
489
|
+
function V(y) {
|
|
490
|
+
function w($, O, P, I, _) {
|
|
491
|
+
if (typeof y != "function")
|
|
492
|
+
return new x("Property `" + _ + "` of component `" + P + "` has invalid PropType notation inside objectOf.");
|
|
493
|
+
var k = $[O], A = J(k);
|
|
494
494
|
if (A !== "object")
|
|
495
|
-
return new
|
|
496
|
-
for (var D in
|
|
497
|
-
if (i(
|
|
498
|
-
var L =
|
|
495
|
+
return new x("Invalid " + I + " `" + _ + "` of type " + ("`" + A + "` supplied to `" + P + "`, expected an object."));
|
|
496
|
+
for (var D in k)
|
|
497
|
+
if (i(k, D)) {
|
|
498
|
+
var L = y(k, D, P, I, _ + "." + D, r);
|
|
499
499
|
if (L instanceof Error)
|
|
500
500
|
return L;
|
|
501
501
|
}
|
|
502
502
|
return null;
|
|
503
503
|
}
|
|
504
|
-
return
|
|
504
|
+
return R(w);
|
|
505
505
|
}
|
|
506
|
-
function F(
|
|
507
|
-
if (!Array.isArray(
|
|
508
|
-
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."),
|
|
509
|
-
for (var
|
|
510
|
-
var $ =
|
|
506
|
+
function F(y) {
|
|
507
|
+
if (!Array.isArray(y))
|
|
508
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), l;
|
|
509
|
+
for (var w = 0; w < y.length; w++) {
|
|
510
|
+
var $ = y[w];
|
|
511
511
|
if (typeof $ != "function")
|
|
512
512
|
return a(
|
|
513
|
-
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue($) + " at index " +
|
|
514
|
-
),
|
|
513
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + ue($) + " at index " + w + "."
|
|
514
|
+
), l;
|
|
515
515
|
}
|
|
516
|
-
function
|
|
517
|
-
for (var D = [], L = 0; L <
|
|
518
|
-
var z =
|
|
519
|
-
if (
|
|
516
|
+
function O(P, I, _, k, A) {
|
|
517
|
+
for (var D = [], L = 0; L < y.length; L++) {
|
|
518
|
+
var z = y[L], E = z(P, I, _, k, A, r);
|
|
519
|
+
if (E == null)
|
|
520
520
|
return null;
|
|
521
|
-
|
|
521
|
+
E.data && i(E.data, "expectedType") && D.push(E.data.expectedType);
|
|
522
522
|
}
|
|
523
523
|
var K = D.length > 0 ? ", expected one of type [" + D.join(", ") + "]" : "";
|
|
524
|
-
return new
|
|
524
|
+
return new x("Invalid " + k + " `" + A + "` supplied to " + ("`" + _ + "`" + K + "."));
|
|
525
525
|
}
|
|
526
|
-
return
|
|
526
|
+
return R(O);
|
|
527
527
|
}
|
|
528
528
|
function H() {
|
|
529
|
-
function
|
|
530
|
-
return ae(
|
|
529
|
+
function y(w, $, O, P, I) {
|
|
530
|
+
return ae(w[$]) ? null : new x("Invalid " + P + " `" + I + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
531
531
|
}
|
|
532
|
-
return
|
|
532
|
+
return R(y);
|
|
533
533
|
}
|
|
534
|
-
function ee(
|
|
535
|
-
return new
|
|
536
|
-
(
|
|
534
|
+
function ee(y, w, $, O, P) {
|
|
535
|
+
return new x(
|
|
536
|
+
(y || "React class") + ": " + w + " type `" + $ + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + P + "`."
|
|
537
537
|
);
|
|
538
538
|
}
|
|
539
|
-
function we(
|
|
540
|
-
function
|
|
541
|
-
var
|
|
539
|
+
function we(y) {
|
|
540
|
+
function w($, O, P, I, _) {
|
|
541
|
+
var k = $[O], A = J(k);
|
|
542
542
|
if (A !== "object")
|
|
543
|
-
return new
|
|
544
|
-
for (var D in
|
|
545
|
-
var L =
|
|
543
|
+
return new x("Invalid " + I + " `" + _ + "` of type `" + A + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
544
|
+
for (var D in y) {
|
|
545
|
+
var L = y[D];
|
|
546
546
|
if (typeof L != "function")
|
|
547
|
-
return ee(
|
|
548
|
-
var z = L(
|
|
547
|
+
return ee(P, I, _, D, te(L));
|
|
548
|
+
var z = L(k, D, P, I, _ + "." + D, r);
|
|
549
549
|
if (z)
|
|
550
550
|
return z;
|
|
551
551
|
}
|
|
552
552
|
return null;
|
|
553
553
|
}
|
|
554
|
-
return
|
|
554
|
+
return R(w);
|
|
555
555
|
}
|
|
556
|
-
function xe(
|
|
557
|
-
function
|
|
558
|
-
var
|
|
556
|
+
function xe(y) {
|
|
557
|
+
function w($, O, P, I, _) {
|
|
558
|
+
var k = $[O], A = J(k);
|
|
559
559
|
if (A !== "object")
|
|
560
|
-
return new
|
|
561
|
-
var D = t({}, $[
|
|
560
|
+
return new x("Invalid " + I + " `" + _ + "` of type `" + A + "` " + ("supplied to `" + P + "`, expected `object`."));
|
|
561
|
+
var D = t({}, $[O], y);
|
|
562
562
|
for (var L in D) {
|
|
563
|
-
var z =
|
|
564
|
-
if (i(
|
|
565
|
-
return ee(
|
|
563
|
+
var z = y[L];
|
|
564
|
+
if (i(y, L) && typeof z != "function")
|
|
565
|
+
return ee(P, I, _, L, te(z));
|
|
566
566
|
if (!z)
|
|
567
|
-
return new
|
|
568
|
-
"Invalid " + I + " `" +
|
|
569
|
-
Valid keys: ` + JSON.stringify(Object.keys(
|
|
567
|
+
return new x(
|
|
568
|
+
"Invalid " + I + " `" + _ + "` key `" + L + "` supplied to `" + P + "`.\nBad object: " + JSON.stringify($[O], null, " ") + `
|
|
569
|
+
Valid keys: ` + JSON.stringify(Object.keys(y), null, " ")
|
|
570
570
|
);
|
|
571
|
-
var
|
|
572
|
-
if (
|
|
573
|
-
return
|
|
571
|
+
var E = z(k, L, P, I, _ + "." + L, r);
|
|
572
|
+
if (E)
|
|
573
|
+
return E;
|
|
574
574
|
}
|
|
575
575
|
return null;
|
|
576
576
|
}
|
|
577
|
-
return
|
|
577
|
+
return R(w);
|
|
578
578
|
}
|
|
579
|
-
function ae(
|
|
580
|
-
switch (typeof
|
|
579
|
+
function ae(y) {
|
|
580
|
+
switch (typeof y) {
|
|
581
581
|
case "number":
|
|
582
582
|
case "string":
|
|
583
583
|
case "undefined":
|
|
584
584
|
return !0;
|
|
585
585
|
case "boolean":
|
|
586
|
-
return !
|
|
586
|
+
return !y;
|
|
587
587
|
case "object":
|
|
588
|
-
if (Array.isArray(
|
|
589
|
-
return
|
|
590
|
-
if (
|
|
588
|
+
if (Array.isArray(y))
|
|
589
|
+
return y.every(ae);
|
|
590
|
+
if (y === null || o(y))
|
|
591
591
|
return !0;
|
|
592
|
-
var
|
|
593
|
-
if (
|
|
594
|
-
var $ =
|
|
595
|
-
if (
|
|
596
|
-
for (; !(
|
|
597
|
-
if (!ae(
|
|
592
|
+
var w = h(y);
|
|
593
|
+
if (w) {
|
|
594
|
+
var $ = w.call(y), O;
|
|
595
|
+
if (w !== y.entries) {
|
|
596
|
+
for (; !(O = $.next()).done; )
|
|
597
|
+
if (!ae(O.value))
|
|
598
598
|
return !1;
|
|
599
599
|
} else
|
|
600
|
-
for (; !(
|
|
601
|
-
var
|
|
602
|
-
if (
|
|
600
|
+
for (; !(O = $.next()).done; ) {
|
|
601
|
+
var P = O.value;
|
|
602
|
+
if (P && !ae(P[1]))
|
|
603
603
|
return !1;
|
|
604
604
|
}
|
|
605
605
|
} else
|
|
@@ -609,61 +609,61 @@ Valid keys: ` + JSON.stringify(Object.keys(m), null, " ")
|
|
|
609
609
|
return !1;
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
function Re(
|
|
613
|
-
return
|
|
612
|
+
function Re(y, w) {
|
|
613
|
+
return y === "symbol" ? !0 : w ? w["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && w instanceof Symbol : !1;
|
|
614
614
|
}
|
|
615
|
-
function J(
|
|
616
|
-
var
|
|
617
|
-
return Array.isArray(
|
|
615
|
+
function J(y) {
|
|
616
|
+
var w = typeof y;
|
|
617
|
+
return Array.isArray(y) ? "array" : y instanceof RegExp ? "object" : Re(w, y) ? "symbol" : w;
|
|
618
618
|
}
|
|
619
|
-
function te(
|
|
620
|
-
if (typeof
|
|
621
|
-
return "" +
|
|
622
|
-
var
|
|
623
|
-
if (
|
|
624
|
-
if (
|
|
619
|
+
function te(y) {
|
|
620
|
+
if (typeof y > "u" || y === null)
|
|
621
|
+
return "" + y;
|
|
622
|
+
var w = J(y);
|
|
623
|
+
if (w === "object") {
|
|
624
|
+
if (y instanceof Date)
|
|
625
625
|
return "date";
|
|
626
|
-
if (
|
|
626
|
+
if (y instanceof RegExp)
|
|
627
627
|
return "regexp";
|
|
628
628
|
}
|
|
629
|
-
return
|
|
629
|
+
return w;
|
|
630
630
|
}
|
|
631
|
-
function ue(
|
|
632
|
-
var
|
|
633
|
-
switch (
|
|
631
|
+
function ue(y) {
|
|
632
|
+
var w = te(y);
|
|
633
|
+
switch (w) {
|
|
634
634
|
case "array":
|
|
635
635
|
case "object":
|
|
636
|
-
return "an " +
|
|
636
|
+
return "an " + w;
|
|
637
637
|
case "boolean":
|
|
638
638
|
case "date":
|
|
639
639
|
case "regexp":
|
|
640
|
-
return "a " +
|
|
640
|
+
return "a " + w;
|
|
641
641
|
default:
|
|
642
|
-
return
|
|
642
|
+
return w;
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
|
-
function Ce(
|
|
646
|
-
return !
|
|
645
|
+
function Ce(y) {
|
|
646
|
+
return !y.constructor || !y.constructor.name ? p : y.constructor.name;
|
|
647
647
|
}
|
|
648
|
-
return
|
|
649
|
-
},
|
|
648
|
+
return v.checkPropTypes = n, v.resetWarningCache = n.resetWarningCache, v.PropTypes = v, v;
|
|
649
|
+
}, ke;
|
|
650
650
|
}
|
|
651
|
-
var
|
|
651
|
+
var $e, rt;
|
|
652
652
|
function It() {
|
|
653
|
-
if (rt) return
|
|
653
|
+
if (rt) return $e;
|
|
654
654
|
rt = 1;
|
|
655
|
-
var e = /* @__PURE__ */
|
|
655
|
+
var e = /* @__PURE__ */ je();
|
|
656
656
|
function t() {
|
|
657
657
|
}
|
|
658
658
|
function r() {
|
|
659
659
|
}
|
|
660
|
-
return r.resetWarningCache = t,
|
|
661
|
-
function i(o,
|
|
662
|
-
if (
|
|
663
|
-
var
|
|
660
|
+
return r.resetWarningCache = t, $e = function() {
|
|
661
|
+
function i(l, o, u, c, f, h) {
|
|
662
|
+
if (h !== e) {
|
|
663
|
+
var p = new Error(
|
|
664
664
|
"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"
|
|
665
665
|
);
|
|
666
|
-
throw
|
|
666
|
+
throw p.name = "Invariant Violation", p;
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
669
|
i.isRequired = i;
|
|
@@ -694,7 +694,7 @@ function It() {
|
|
|
694
694
|
resetWarningCache: t
|
|
695
695
|
};
|
|
696
696
|
return a.PropTypes = a, a;
|
|
697
|
-
},
|
|
697
|
+
}, $e;
|
|
698
698
|
}
|
|
699
699
|
var nt;
|
|
700
700
|
function At() {
|
|
@@ -707,150 +707,150 @@ function At() {
|
|
|
707
707
|
return fe.exports;
|
|
708
708
|
}
|
|
709
709
|
var Lt = /* @__PURE__ */ At();
|
|
710
|
-
const s = /* @__PURE__ */ st(Lt),
|
|
710
|
+
const s = /* @__PURE__ */ st(Lt), Mt = ({ content: e, title: t, className: r, id: i = "accordion" }) => {
|
|
711
711
|
const n = B("rpf-accordion", r);
|
|
712
712
|
return /* @__PURE__ */ q("details", { className: n, id: `${i}`, children: [
|
|
713
713
|
/* @__PURE__ */ q("summary", { className: "rpf-accordion__title", role: "button", children: [
|
|
714
714
|
t,
|
|
715
|
-
/* @__PURE__ */
|
|
715
|
+
/* @__PURE__ */ C("span", { className: "rpf-accordion__icon" })
|
|
716
716
|
] }),
|
|
717
|
-
/* @__PURE__ */
|
|
717
|
+
/* @__PURE__ */ C("p", { className: "rpf-accordion__text", children: e })
|
|
718
718
|
] });
|
|
719
719
|
};
|
|
720
|
-
|
|
720
|
+
Mt.propTypes = {
|
|
721
721
|
content: s.string.isRequired,
|
|
722
722
|
title: s.string.isRequired,
|
|
723
723
|
id: s.string,
|
|
724
724
|
className: s.string
|
|
725
725
|
};
|
|
726
726
|
var oe = {}, at;
|
|
727
|
-
function
|
|
727
|
+
function jt() {
|
|
728
728
|
if (at) return oe;
|
|
729
|
-
at = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.parse =
|
|
729
|
+
at = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.parse = l, oe.serialize = c;
|
|
730
730
|
const e = /^[\u0021-\u003A\u003C\u003E-\u007E]+$/, t = /^[\u0021-\u003A\u003C-\u007E]*$/, r = /^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i, i = /^[\u0020-\u003A\u003D-\u007E]*$/, n = Object.prototype.toString, a = /* @__PURE__ */ (() => {
|
|
731
|
-
const
|
|
731
|
+
const p = function() {
|
|
732
732
|
};
|
|
733
|
-
return
|
|
733
|
+
return p.prototype = /* @__PURE__ */ Object.create(null), p;
|
|
734
734
|
})();
|
|
735
|
-
function
|
|
736
|
-
const
|
|
737
|
-
if (
|
|
738
|
-
return
|
|
739
|
-
const
|
|
740
|
-
let
|
|
735
|
+
function l(p, v) {
|
|
736
|
+
const m = new a(), x = p.length;
|
|
737
|
+
if (x < 2)
|
|
738
|
+
return m;
|
|
739
|
+
const R = (v == null ? void 0 : v.decode) || f;
|
|
740
|
+
let b = 0;
|
|
741
741
|
do {
|
|
742
|
-
const
|
|
743
|
-
if (
|
|
742
|
+
const T = p.indexOf("=", b);
|
|
743
|
+
if (T === -1)
|
|
744
744
|
break;
|
|
745
|
-
const
|
|
746
|
-
if (
|
|
747
|
-
|
|
745
|
+
const S = p.indexOf(";", b), N = S === -1 ? x : S;
|
|
746
|
+
if (T > N) {
|
|
747
|
+
b = p.lastIndexOf(";", T - 1) + 1;
|
|
748
748
|
continue;
|
|
749
749
|
}
|
|
750
|
-
const g =
|
|
751
|
-
if (
|
|
752
|
-
let V =
|
|
753
|
-
const H =
|
|
754
|
-
|
|
750
|
+
const g = o(p, b, T), U = u(p, T, g), Y = p.slice(g, U);
|
|
751
|
+
if (m[Y] === void 0) {
|
|
752
|
+
let V = o(p, T + 1, N), F = u(p, N, V);
|
|
753
|
+
const H = R(p.slice(V, F));
|
|
754
|
+
m[Y] = H;
|
|
755
755
|
}
|
|
756
|
-
|
|
757
|
-
} while (
|
|
758
|
-
return
|
|
756
|
+
b = N + 1;
|
|
757
|
+
} while (b < x);
|
|
758
|
+
return m;
|
|
759
759
|
}
|
|
760
|
-
function
|
|
760
|
+
function o(p, v, m) {
|
|
761
761
|
do {
|
|
762
|
-
const
|
|
763
|
-
if (
|
|
764
|
-
return
|
|
765
|
-
} while (++
|
|
766
|
-
return
|
|
762
|
+
const x = p.charCodeAt(v);
|
|
763
|
+
if (x !== 32 && x !== 9)
|
|
764
|
+
return v;
|
|
765
|
+
} while (++v < m);
|
|
766
|
+
return m;
|
|
767
767
|
}
|
|
768
|
-
function
|
|
769
|
-
for (;
|
|
770
|
-
const
|
|
771
|
-
if (
|
|
772
|
-
return
|
|
768
|
+
function u(p, v, m) {
|
|
769
|
+
for (; v > m; ) {
|
|
770
|
+
const x = p.charCodeAt(--v);
|
|
771
|
+
if (x !== 32 && x !== 9)
|
|
772
|
+
return v + 1;
|
|
773
773
|
}
|
|
774
|
-
return
|
|
774
|
+
return m;
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
const
|
|
778
|
-
if (!e.test(
|
|
779
|
-
throw new TypeError(`argument name is invalid: ${
|
|
780
|
-
const
|
|
781
|
-
if (!t.test(
|
|
782
|
-
throw new TypeError(`argument val is invalid: ${
|
|
783
|
-
let
|
|
784
|
-
if (!
|
|
785
|
-
return
|
|
786
|
-
if (
|
|
787
|
-
if (!Number.isInteger(
|
|
788
|
-
throw new TypeError(`option maxAge is invalid: ${
|
|
789
|
-
|
|
790
|
-
}
|
|
791
|
-
if (
|
|
792
|
-
if (!r.test(
|
|
793
|
-
throw new TypeError(`option domain is invalid: ${
|
|
794
|
-
|
|
795
|
-
}
|
|
796
|
-
if (
|
|
797
|
-
if (!i.test(
|
|
798
|
-
throw new TypeError(`option path is invalid: ${
|
|
799
|
-
|
|
800
|
-
}
|
|
801
|
-
if (
|
|
802
|
-
if (!
|
|
803
|
-
throw new TypeError(`option expires is invalid: ${
|
|
804
|
-
|
|
805
|
-
}
|
|
806
|
-
if (
|
|
807
|
-
switch (typeof
|
|
776
|
+
function c(p, v, m) {
|
|
777
|
+
const x = (m == null ? void 0 : m.encode) || encodeURIComponent;
|
|
778
|
+
if (!e.test(p))
|
|
779
|
+
throw new TypeError(`argument name is invalid: ${p}`);
|
|
780
|
+
const R = x(v);
|
|
781
|
+
if (!t.test(R))
|
|
782
|
+
throw new TypeError(`argument val is invalid: ${v}`);
|
|
783
|
+
let b = p + "=" + R;
|
|
784
|
+
if (!m)
|
|
785
|
+
return b;
|
|
786
|
+
if (m.maxAge !== void 0) {
|
|
787
|
+
if (!Number.isInteger(m.maxAge))
|
|
788
|
+
throw new TypeError(`option maxAge is invalid: ${m.maxAge}`);
|
|
789
|
+
b += "; Max-Age=" + m.maxAge;
|
|
790
|
+
}
|
|
791
|
+
if (m.domain) {
|
|
792
|
+
if (!r.test(m.domain))
|
|
793
|
+
throw new TypeError(`option domain is invalid: ${m.domain}`);
|
|
794
|
+
b += "; Domain=" + m.domain;
|
|
795
|
+
}
|
|
796
|
+
if (m.path) {
|
|
797
|
+
if (!i.test(m.path))
|
|
798
|
+
throw new TypeError(`option path is invalid: ${m.path}`);
|
|
799
|
+
b += "; Path=" + m.path;
|
|
800
|
+
}
|
|
801
|
+
if (m.expires) {
|
|
802
|
+
if (!h(m.expires) || !Number.isFinite(m.expires.valueOf()))
|
|
803
|
+
throw new TypeError(`option expires is invalid: ${m.expires}`);
|
|
804
|
+
b += "; Expires=" + m.expires.toUTCString();
|
|
805
|
+
}
|
|
806
|
+
if (m.httpOnly && (b += "; HttpOnly"), m.secure && (b += "; Secure"), m.partitioned && (b += "; Partitioned"), m.priority)
|
|
807
|
+
switch (typeof m.priority == "string" ? m.priority.toLowerCase() : void 0) {
|
|
808
808
|
case "low":
|
|
809
|
-
|
|
809
|
+
b += "; Priority=Low";
|
|
810
810
|
break;
|
|
811
811
|
case "medium":
|
|
812
|
-
|
|
812
|
+
b += "; Priority=Medium";
|
|
813
813
|
break;
|
|
814
814
|
case "high":
|
|
815
|
-
|
|
815
|
+
b += "; Priority=High";
|
|
816
816
|
break;
|
|
817
817
|
default:
|
|
818
|
-
throw new TypeError(`option priority is invalid: ${
|
|
818
|
+
throw new TypeError(`option priority is invalid: ${m.priority}`);
|
|
819
819
|
}
|
|
820
|
-
if (
|
|
821
|
-
switch (typeof
|
|
820
|
+
if (m.sameSite)
|
|
821
|
+
switch (typeof m.sameSite == "string" ? m.sameSite.toLowerCase() : m.sameSite) {
|
|
822
822
|
case !0:
|
|
823
823
|
case "strict":
|
|
824
|
-
|
|
824
|
+
b += "; SameSite=Strict";
|
|
825
825
|
break;
|
|
826
826
|
case "lax":
|
|
827
|
-
|
|
827
|
+
b += "; SameSite=Lax";
|
|
828
828
|
break;
|
|
829
829
|
case "none":
|
|
830
|
-
|
|
830
|
+
b += "; SameSite=None";
|
|
831
831
|
break;
|
|
832
832
|
default:
|
|
833
|
-
throw new TypeError(`option sameSite is invalid: ${
|
|
833
|
+
throw new TypeError(`option sameSite is invalid: ${m.sameSite}`);
|
|
834
834
|
}
|
|
835
|
-
return
|
|
835
|
+
return b;
|
|
836
836
|
}
|
|
837
|
-
function
|
|
838
|
-
if (
|
|
839
|
-
return
|
|
837
|
+
function f(p) {
|
|
838
|
+
if (p.indexOf("%") === -1)
|
|
839
|
+
return p;
|
|
840
840
|
try {
|
|
841
|
-
return decodeURIComponent(
|
|
841
|
+
return decodeURIComponent(p);
|
|
842
842
|
} catch {
|
|
843
|
-
return
|
|
843
|
+
return p;
|
|
844
844
|
}
|
|
845
845
|
}
|
|
846
|
-
function
|
|
847
|
-
return n.call(
|
|
846
|
+
function h(p) {
|
|
847
|
+
return n.call(p) === "[object Date]";
|
|
848
848
|
}
|
|
849
849
|
return oe;
|
|
850
850
|
}
|
|
851
|
-
|
|
851
|
+
jt();
|
|
852
852
|
/**
|
|
853
|
-
* react-router v7.
|
|
853
|
+
* react-router v7.2.0
|
|
854
854
|
*
|
|
855
855
|
* Copyright (c) Remix Software Inc.
|
|
856
856
|
*
|
|
@@ -896,50 +896,50 @@ function Dt(e, t, r, i) {
|
|
|
896
896
|
let n = typeof t == "string" ? De(t) : t, a = re(n.pathname || "/", r);
|
|
897
897
|
if (a == null)
|
|
898
898
|
return null;
|
|
899
|
-
let
|
|
900
|
-
qt(
|
|
901
|
-
let
|
|
902
|
-
for (let
|
|
903
|
-
let
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
899
|
+
let l = dt(e);
|
|
900
|
+
qt(l);
|
|
901
|
+
let o = null;
|
|
902
|
+
for (let u = 0; o == null && u < l.length; ++u) {
|
|
903
|
+
let c = Gt(a);
|
|
904
|
+
o = Jt(
|
|
905
|
+
l[u],
|
|
906
|
+
c,
|
|
907
907
|
i
|
|
908
908
|
);
|
|
909
909
|
}
|
|
910
|
-
return
|
|
910
|
+
return o;
|
|
911
911
|
}
|
|
912
912
|
function dt(e, t = [], r = [], i = "") {
|
|
913
|
-
let n = (a,
|
|
914
|
-
let
|
|
915
|
-
relativePath:
|
|
913
|
+
let n = (a, l, o) => {
|
|
914
|
+
let u = {
|
|
915
|
+
relativePath: o === void 0 ? a.path || "" : o,
|
|
916
916
|
caseSensitive: a.caseSensitive === !0,
|
|
917
|
-
childrenIndex:
|
|
917
|
+
childrenIndex: l,
|
|
918
918
|
route: a
|
|
919
919
|
};
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
`Absolute route path "${
|
|
923
|
-
),
|
|
924
|
-
let
|
|
920
|
+
u.relativePath.startsWith("/") && (W(
|
|
921
|
+
u.relativePath.startsWith(i),
|
|
922
|
+
`Absolute route path "${u.relativePath}" nested under path "${i}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
923
|
+
), u.relativePath = u.relativePath.slice(i.length));
|
|
924
|
+
let c = G([i, u.relativePath]), f = r.concat(u);
|
|
925
925
|
a.children && a.children.length > 0 && (W(
|
|
926
926
|
// Our types know better, but runtime JS may not!
|
|
927
927
|
// @ts-expect-error
|
|
928
928
|
a.index !== !0,
|
|
929
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${
|
|
930
|
-
), dt(a.children, t,
|
|
931
|
-
path:
|
|
932
|
-
score: Ht(
|
|
933
|
-
routesMeta:
|
|
929
|
+
`Index routes must not have child routes. Please remove all child routes from route path "${c}".`
|
|
930
|
+
), dt(a.children, t, f, c)), !(a.path == null && !a.index) && t.push({
|
|
931
|
+
path: c,
|
|
932
|
+
score: Ht(c, a.index),
|
|
933
|
+
routesMeta: f
|
|
934
934
|
});
|
|
935
935
|
};
|
|
936
|
-
return e.forEach((a,
|
|
937
|
-
var
|
|
938
|
-
if (a.path === "" || !((
|
|
939
|
-
n(a,
|
|
936
|
+
return e.forEach((a, l) => {
|
|
937
|
+
var o;
|
|
938
|
+
if (a.path === "" || !((o = a.path) != null && o.includes("?")))
|
|
939
|
+
n(a, l);
|
|
940
940
|
else
|
|
941
|
-
for (let
|
|
942
|
-
n(a,
|
|
941
|
+
for (let u of pt(a.path))
|
|
942
|
+
n(a, l, u);
|
|
943
943
|
}), t;
|
|
944
944
|
}
|
|
945
945
|
function pt(e) {
|
|
@@ -948,13 +948,13 @@ function pt(e) {
|
|
|
948
948
|
let [r, ...i] = t, n = r.endsWith("?"), a = r.replace(/\?$/, "");
|
|
949
949
|
if (i.length === 0)
|
|
950
950
|
return n ? [a, ""] : [a];
|
|
951
|
-
let
|
|
952
|
-
return
|
|
953
|
-
...
|
|
954
|
-
(
|
|
951
|
+
let l = pt(i.join("/")), o = [];
|
|
952
|
+
return o.push(
|
|
953
|
+
...l.map(
|
|
954
|
+
(u) => u === "" ? a : [a, u].join("/")
|
|
955
955
|
)
|
|
956
|
-
), n &&
|
|
957
|
-
(
|
|
956
|
+
), n && o.push(...l), o.map(
|
|
957
|
+
(u) => e.startsWith("/") && u === "" ? "/" : u
|
|
958
958
|
);
|
|
959
959
|
}
|
|
960
960
|
function qt(e) {
|
|
@@ -987,32 +987,32 @@ function Vt(e, t) {
|
|
|
987
987
|
);
|
|
988
988
|
}
|
|
989
989
|
function Jt(e, t, r = !1) {
|
|
990
|
-
let { routesMeta: i } = e, n = {}, a = "/",
|
|
991
|
-
for (let
|
|
992
|
-
let
|
|
993
|
-
{ path:
|
|
994
|
-
|
|
995
|
-
),
|
|
996
|
-
if (!
|
|
990
|
+
let { routesMeta: i } = e, n = {}, a = "/", l = [];
|
|
991
|
+
for (let o = 0; o < i.length; ++o) {
|
|
992
|
+
let u = i[o], c = o === i.length - 1, f = a === "/" ? t : t.slice(a.length) || "/", h = ye(
|
|
993
|
+
{ path: u.relativePath, caseSensitive: u.caseSensitive, end: c },
|
|
994
|
+
f
|
|
995
|
+
), p = u.route;
|
|
996
|
+
if (!h && c && r && !i[i.length - 1].route.index && (h = ye(
|
|
997
997
|
{
|
|
998
|
-
path:
|
|
999
|
-
caseSensitive:
|
|
998
|
+
path: u.relativePath,
|
|
999
|
+
caseSensitive: u.caseSensitive,
|
|
1000
1000
|
end: !1
|
|
1001
1001
|
},
|
|
1002
|
-
|
|
1003
|
-
)), !
|
|
1002
|
+
f
|
|
1003
|
+
)), !h)
|
|
1004
1004
|
return null;
|
|
1005
|
-
Object.assign(n,
|
|
1005
|
+
Object.assign(n, h.params), l.push({
|
|
1006
1006
|
// TODO: Can this as be avoided?
|
|
1007
1007
|
params: n,
|
|
1008
|
-
pathname: G([a,
|
|
1008
|
+
pathname: G([a, h.pathname]),
|
|
1009
1009
|
pathnameBase: er(
|
|
1010
|
-
G([a,
|
|
1010
|
+
G([a, h.pathnameBase])
|
|
1011
1011
|
),
|
|
1012
|
-
route:
|
|
1013
|
-
}),
|
|
1012
|
+
route: p
|
|
1013
|
+
}), h.pathnameBase !== "/" && (a = G([a, h.pathnameBase]));
|
|
1014
1014
|
}
|
|
1015
|
-
return
|
|
1015
|
+
return l;
|
|
1016
1016
|
}
|
|
1017
1017
|
function ye(e, t) {
|
|
1018
1018
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
@@ -1022,21 +1022,21 @@ function ye(e, t) {
|
|
|
1022
1022
|
e.end
|
|
1023
1023
|
), n = t.match(r);
|
|
1024
1024
|
if (!n) return null;
|
|
1025
|
-
let a = n[0],
|
|
1025
|
+
let a = n[0], l = a.replace(/(.)\/+$/, "$1"), o = n.slice(1);
|
|
1026
1026
|
return {
|
|
1027
1027
|
params: i.reduce(
|
|
1028
|
-
(
|
|
1029
|
-
if (
|
|
1030
|
-
let
|
|
1031
|
-
|
|
1028
|
+
(c, { paramName: f, isOptional: h }, p) => {
|
|
1029
|
+
if (f === "*") {
|
|
1030
|
+
let m = o[p] || "";
|
|
1031
|
+
l = a.slice(0, a.length - m.length).replace(/(.)\/+$/, "$1");
|
|
1032
1032
|
}
|
|
1033
|
-
const
|
|
1034
|
-
return
|
|
1033
|
+
const v = o[p];
|
|
1034
|
+
return h && !v ? c[f] = void 0 : c[f] = (v || "").replace(/%2F/g, "/"), c;
|
|
1035
1035
|
},
|
|
1036
1036
|
{}
|
|
1037
1037
|
),
|
|
1038
1038
|
pathname: a,
|
|
1039
|
-
pathnameBase:
|
|
1039
|
+
pathnameBase: l,
|
|
1040
1040
|
pattern: e
|
|
1041
1041
|
};
|
|
1042
1042
|
}
|
|
@@ -1047,7 +1047,7 @@ function Kt(e, t = !1, r = !0) {
|
|
|
1047
1047
|
);
|
|
1048
1048
|
let i = [], n = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
1049
1049
|
/\/:([\w-]+)(\?)?/g,
|
|
1050
|
-
(
|
|
1050
|
+
(l, o, u) => (i.push({ paramName: o, isOptional: u != null }), u ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
1051
1051
|
);
|
|
1052
1052
|
return e.endsWith("*") ? (i.push({ paramName: "*" }), n += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? n += "\\/*$" : e !== "" && e !== "/" && (n += "(?:(?=\\/|$))"), [new RegExp(n, t ? void 0 : "i"), i];
|
|
1053
1053
|
}
|
|
@@ -1057,7 +1057,7 @@ function Gt(e) {
|
|
|
1057
1057
|
} catch (t) {
|
|
1058
1058
|
return X(
|
|
1059
1059
|
!1,
|
|
1060
|
-
`The URL path "${e}" could not be decoded because it is
|
|
1060
|
+
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
|
|
1061
1061
|
), e;
|
|
1062
1062
|
}
|
|
1063
1063
|
}
|
|
@@ -1114,21 +1114,21 @@ function mt(e, t, r, i = !1) {
|
|
|
1114
1114
|
!n.search || !n.search.includes("#"),
|
|
1115
1115
|
Ne("#", "search", "hash", n)
|
|
1116
1116
|
));
|
|
1117
|
-
let a = e === "" || n.pathname === "",
|
|
1118
|
-
if (
|
|
1119
|
-
|
|
1117
|
+
let a = e === "" || n.pathname === "", l = a ? "/" : n.pathname, o;
|
|
1118
|
+
if (l == null)
|
|
1119
|
+
o = r;
|
|
1120
1120
|
else {
|
|
1121
|
-
let
|
|
1122
|
-
if (!i &&
|
|
1123
|
-
let
|
|
1124
|
-
for (;
|
|
1125
|
-
|
|
1126
|
-
n.pathname =
|
|
1127
|
-
}
|
|
1128
|
-
|
|
1121
|
+
let h = t.length - 1;
|
|
1122
|
+
if (!i && l.startsWith("..")) {
|
|
1123
|
+
let p = l.split("/");
|
|
1124
|
+
for (; p[0] === ".."; )
|
|
1125
|
+
p.shift(), h -= 1;
|
|
1126
|
+
n.pathname = p.join("/");
|
|
1127
|
+
}
|
|
1128
|
+
o = h >= 0 ? t[h] : "/";
|
|
1129
1129
|
}
|
|
1130
|
-
let
|
|
1131
|
-
return !
|
|
1130
|
+
let u = Xt(n, o), c = l && l !== "/" && l.endsWith("/"), f = (a || l === ".") && r.endsWith("/");
|
|
1131
|
+
return !u.pathname.endsWith("/") && (c || f) && (u.pathname += "/"), u;
|
|
1132
1132
|
}
|
|
1133
1133
|
var G = (e) => e.join("/").replace(/\/\/+/g, "/"), er = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), tr = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, rr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e;
|
|
1134
1134
|
function nr(e) {
|
|
@@ -1148,35 +1148,35 @@ var ar = [
|
|
|
1148
1148
|
...yt
|
|
1149
1149
|
];
|
|
1150
1150
|
new Set(ar);
|
|
1151
|
-
var ie =
|
|
1151
|
+
var ie = d.createContext(null);
|
|
1152
1152
|
ie.displayName = "DataRouter";
|
|
1153
|
-
var ve =
|
|
1153
|
+
var ve = d.createContext(null);
|
|
1154
1154
|
ve.displayName = "DataRouterState";
|
|
1155
|
-
var vt =
|
|
1155
|
+
var vt = d.createContext({
|
|
1156
1156
|
isTransitioning: !1
|
|
1157
1157
|
});
|
|
1158
1158
|
vt.displayName = "ViewTransition";
|
|
1159
|
-
var ir =
|
|
1159
|
+
var ir = d.createContext(
|
|
1160
1160
|
/* @__PURE__ */ new Map()
|
|
1161
1161
|
);
|
|
1162
1162
|
ir.displayName = "Fetchers";
|
|
1163
|
-
var or =
|
|
1163
|
+
var or = d.createContext(null);
|
|
1164
1164
|
or.displayName = "Await";
|
|
1165
|
-
var Z =
|
|
1165
|
+
var Z = d.createContext(
|
|
1166
1166
|
null
|
|
1167
1167
|
);
|
|
1168
1168
|
Z.displayName = "Navigation";
|
|
1169
|
-
var qe =
|
|
1169
|
+
var qe = d.createContext(
|
|
1170
1170
|
null
|
|
1171
1171
|
);
|
|
1172
1172
|
qe.displayName = "Location";
|
|
1173
|
-
var Q =
|
|
1173
|
+
var Q = d.createContext({
|
|
1174
1174
|
outlet: null,
|
|
1175
1175
|
matches: [],
|
|
1176
1176
|
isDataRoute: !1
|
|
1177
1177
|
});
|
|
1178
1178
|
Q.displayName = "Route";
|
|
1179
|
-
var Fe =
|
|
1179
|
+
var Fe = d.createContext(null);
|
|
1180
1180
|
Fe.displayName = "RouteError";
|
|
1181
1181
|
function lr(e, { relative: t } = {}) {
|
|
1182
1182
|
W(
|
|
@@ -1185,11 +1185,11 @@ function lr(e, { relative: t } = {}) {
|
|
|
1185
1185
|
// router loaded. We can help them understand how to avoid that.
|
|
1186
1186
|
"useHref() may be used only in the context of a <Router> component."
|
|
1187
1187
|
);
|
|
1188
|
-
let { basename: r, navigator: i } =
|
|
1189
|
-
return r !== "/" && (
|
|
1188
|
+
let { basename: r, navigator: i } = d.useContext(Z), { hash: n, pathname: a, search: l } = se(e, { relative: t }), o = a;
|
|
1189
|
+
return r !== "/" && (o = a === "/" ? r : G([r, a])), i.createHref({ pathname: o, search: l, hash: n });
|
|
1190
1190
|
}
|
|
1191
1191
|
function ge() {
|
|
1192
|
-
return
|
|
1192
|
+
return d.useContext(qe) != null;
|
|
1193
1193
|
}
|
|
1194
1194
|
function ne() {
|
|
1195
1195
|
return W(
|
|
@@ -1197,14 +1197,14 @@ function ne() {
|
|
|
1197
1197
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
1198
1198
|
// router loaded. We can help them understand how to avoid that.
|
|
1199
1199
|
"useLocation() may be used only in the context of a <Router> component."
|
|
1200
|
-
),
|
|
1200
|
+
), d.useContext(qe).location;
|
|
1201
1201
|
}
|
|
1202
1202
|
var gt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
1203
1203
|
function bt(e) {
|
|
1204
|
-
|
|
1204
|
+
d.useContext(Z).static || d.useLayoutEffect(e);
|
|
1205
1205
|
}
|
|
1206
1206
|
function sr() {
|
|
1207
|
-
let { isDataRoute: e } =
|
|
1207
|
+
let { isDataRoute: e } = d.useContext(Q);
|
|
1208
1208
|
return e ? wr() : ur();
|
|
1209
1209
|
}
|
|
1210
1210
|
function ur() {
|
|
@@ -1214,26 +1214,26 @@ function ur() {
|
|
|
1214
1214
|
// router loaded. We can help them understand how to avoid that.
|
|
1215
1215
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
1216
1216
|
);
|
|
1217
|
-
let e =
|
|
1217
|
+
let e = d.useContext(ie), { basename: t, navigator: r } = d.useContext(Z), { matches: i } = d.useContext(Q), { pathname: n } = ne(), a = JSON.stringify(ht(i)), l = d.useRef(!1);
|
|
1218
1218
|
return bt(() => {
|
|
1219
|
-
|
|
1220
|
-
}),
|
|
1221
|
-
(
|
|
1222
|
-
if (X(
|
|
1223
|
-
if (typeof
|
|
1224
|
-
r.go(
|
|
1219
|
+
l.current = !0;
|
|
1220
|
+
}), d.useCallback(
|
|
1221
|
+
(u, c = {}) => {
|
|
1222
|
+
if (X(l.current, gt), !l.current) return;
|
|
1223
|
+
if (typeof u == "number") {
|
|
1224
|
+
r.go(u);
|
|
1225
1225
|
return;
|
|
1226
1226
|
}
|
|
1227
|
-
let
|
|
1228
|
-
|
|
1227
|
+
let f = mt(
|
|
1228
|
+
u,
|
|
1229
1229
|
JSON.parse(a),
|
|
1230
1230
|
n,
|
|
1231
|
-
|
|
1231
|
+
c.relative === "path"
|
|
1232
1232
|
);
|
|
1233
|
-
e == null && t !== "/" && (
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1233
|
+
e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : G([t, f.pathname])), (c.replace ? r.replace : r.push)(
|
|
1234
|
+
f,
|
|
1235
|
+
c.state,
|
|
1236
|
+
c
|
|
1237
1237
|
);
|
|
1238
1238
|
},
|
|
1239
1239
|
[
|
|
@@ -1245,10 +1245,10 @@ function ur() {
|
|
|
1245
1245
|
]
|
|
1246
1246
|
);
|
|
1247
1247
|
}
|
|
1248
|
-
|
|
1248
|
+
d.createContext(null);
|
|
1249
1249
|
function se(e, { relative: t } = {}) {
|
|
1250
|
-
let { matches: r } =
|
|
1251
|
-
return
|
|
1250
|
+
let { matches: r } = d.useContext(Q), { pathname: i } = ne(), n = JSON.stringify(ht(r));
|
|
1251
|
+
return d.useMemo(
|
|
1252
1252
|
() => mt(
|
|
1253
1253
|
e,
|
|
1254
1254
|
JSON.parse(n),
|
|
@@ -1265,60 +1265,60 @@ function cr(e, t, r, i) {
|
|
|
1265
1265
|
// router loaded. We can help them understand how to avoid that.
|
|
1266
1266
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
1267
1267
|
);
|
|
1268
|
-
let { navigator: n } =
|
|
1268
|
+
let { navigator: n, static: a } = d.useContext(Z), { matches: l } = d.useContext(Q), o = l[l.length - 1], u = o ? o.params : {}, c = o ? o.pathname : "/", f = o ? o.pathnameBase : "/", h = o && o.route;
|
|
1269
1269
|
{
|
|
1270
|
-
let
|
|
1270
|
+
let T = h && h.path || "";
|
|
1271
1271
|
Et(
|
|
1272
1272
|
c,
|
|
1273
|
-
!
|
|
1274
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${
|
|
1273
|
+
!h || T.endsWith("*") || T.endsWith("*?"),
|
|
1274
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
1275
1275
|
|
|
1276
|
-
Please change the parent <Route path="${
|
|
1276
|
+
Please change the parent <Route path="${T}"> to <Route path="${T === "/" ? "*" : `${T}/*`}">.`
|
|
1277
1277
|
);
|
|
1278
1278
|
}
|
|
1279
|
-
let
|
|
1280
|
-
|
|
1281
|
-
let
|
|
1282
|
-
if (
|
|
1283
|
-
let
|
|
1284
|
-
|
|
1279
|
+
let p = ne(), v;
|
|
1280
|
+
v = p;
|
|
1281
|
+
let m = v.pathname || "/", x = m;
|
|
1282
|
+
if (f !== "/") {
|
|
1283
|
+
let T = f.replace(/^\//, "").split("/");
|
|
1284
|
+
x = "/" + m.replace(/^\//, "").split("/").slice(T.length).join("/");
|
|
1285
1285
|
}
|
|
1286
|
-
let
|
|
1286
|
+
let R = !a && r && r.matches && r.matches.length > 0 ? r.matches : ft(e, { pathname: x });
|
|
1287
1287
|
return X(
|
|
1288
|
-
|
|
1289
|
-
`No routes matched location "${
|
|
1288
|
+
h || R != null,
|
|
1289
|
+
`No routes matched location "${v.pathname}${v.search}${v.hash}" `
|
|
1290
1290
|
), X(
|
|
1291
|
-
|
|
1292
|
-
`Matched leaf route at location "${
|
|
1291
|
+
R == null || R[R.length - 1].route.element !== void 0 || R[R.length - 1].route.Component !== void 0 || R[R.length - 1].route.lazy !== void 0,
|
|
1292
|
+
`Matched leaf route at location "${v.pathname}${v.search}${v.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
1293
1293
|
), mr(
|
|
1294
|
-
|
|
1295
|
-
(
|
|
1296
|
-
params: Object.assign({},
|
|
1294
|
+
R && R.map(
|
|
1295
|
+
(T) => Object.assign({}, T, {
|
|
1296
|
+
params: Object.assign({}, u, T.params),
|
|
1297
1297
|
pathname: G([
|
|
1298
|
-
|
|
1298
|
+
f,
|
|
1299
1299
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
1300
|
-
n.encodeLocation ? n.encodeLocation(
|
|
1300
|
+
n.encodeLocation ? n.encodeLocation(T.pathname).pathname : T.pathname
|
|
1301
1301
|
]),
|
|
1302
|
-
pathnameBase:
|
|
1303
|
-
|
|
1302
|
+
pathnameBase: T.pathnameBase === "/" ? f : G([
|
|
1303
|
+
f,
|
|
1304
1304
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
1305
|
-
n.encodeLocation ? n.encodeLocation(
|
|
1305
|
+
n.encodeLocation ? n.encodeLocation(T.pathnameBase).pathname : T.pathnameBase
|
|
1306
1306
|
])
|
|
1307
1307
|
})
|
|
1308
1308
|
),
|
|
1309
|
-
|
|
1309
|
+
l,
|
|
1310
1310
|
r,
|
|
1311
1311
|
i
|
|
1312
1312
|
);
|
|
1313
1313
|
}
|
|
1314
1314
|
function fr() {
|
|
1315
|
-
let e = Er(), t = nr(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, i = "rgba(200,200,200, 0.5)", n = { padding: "0.5rem", backgroundColor: i }, a = { padding: "2px 4px", backgroundColor: i },
|
|
1315
|
+
let e = Er(), t = nr(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, i = "rgba(200,200,200, 0.5)", n = { padding: "0.5rem", backgroundColor: i }, a = { padding: "2px 4px", backgroundColor: i }, l = null;
|
|
1316
1316
|
return console.error(
|
|
1317
1317
|
"Error handled by React Router default ErrorBoundary:",
|
|
1318
1318
|
e
|
|
1319
|
-
),
|
|
1319
|
+
), l = /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ d.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ d.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ d.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ d.createElement(d.Fragment, null, /* @__PURE__ */ d.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ d.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ d.createElement("pre", { style: n }, r) : null, l);
|
|
1320
1320
|
}
|
|
1321
|
-
var dr = /* @__PURE__ */
|
|
1321
|
+
var dr = /* @__PURE__ */ d.createElement(fr, null), pr = class extends d.Component {
|
|
1322
1322
|
constructor(e) {
|
|
1323
1323
|
super(e), this.state = {
|
|
1324
1324
|
location: e.location,
|
|
@@ -1348,7 +1348,7 @@ var dr = /* @__PURE__ */ p.createElement(fr, null), pr = class extends p.Compone
|
|
|
1348
1348
|
);
|
|
1349
1349
|
}
|
|
1350
1350
|
render() {
|
|
1351
|
-
return this.state.error !== void 0 ? /* @__PURE__ */
|
|
1351
|
+
return this.state.error !== void 0 ? /* @__PURE__ */ d.createElement(Q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ d.createElement(
|
|
1352
1352
|
Fe.Provider,
|
|
1353
1353
|
{
|
|
1354
1354
|
value: this.state.error,
|
|
@@ -1358,8 +1358,8 @@ var dr = /* @__PURE__ */ p.createElement(fr, null), pr = class extends p.Compone
|
|
|
1358
1358
|
}
|
|
1359
1359
|
};
|
|
1360
1360
|
function hr({ routeContext: e, match: t, children: r }) {
|
|
1361
|
-
let i =
|
|
1362
|
-
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */
|
|
1361
|
+
let i = d.useContext(ie);
|
|
1362
|
+
return i && i.static && i.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ d.createElement(Q.Provider, { value: e }, r);
|
|
1363
1363
|
}
|
|
1364
1364
|
function mr(e, t = [], r = null, i = null) {
|
|
1365
1365
|
if (e == null) {
|
|
@@ -1374,79 +1374,79 @@ function mr(e, t = [], r = null, i = null) {
|
|
|
1374
1374
|
}
|
|
1375
1375
|
let n = e, a = r == null ? void 0 : r.errors;
|
|
1376
1376
|
if (a != null) {
|
|
1377
|
-
let
|
|
1378
|
-
(
|
|
1377
|
+
let u = n.findIndex(
|
|
1378
|
+
(c) => c.route.id && (a == null ? void 0 : a[c.route.id]) !== void 0
|
|
1379
1379
|
);
|
|
1380
1380
|
W(
|
|
1381
|
-
|
|
1381
|
+
u >= 0,
|
|
1382
1382
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
1383
1383
|
a
|
|
1384
1384
|
).join(",")}`
|
|
1385
1385
|
), n = n.slice(
|
|
1386
1386
|
0,
|
|
1387
|
-
Math.min(n.length,
|
|
1387
|
+
Math.min(n.length, u + 1)
|
|
1388
1388
|
);
|
|
1389
1389
|
}
|
|
1390
|
-
let
|
|
1390
|
+
let l = !1, o = -1;
|
|
1391
1391
|
if (r)
|
|
1392
|
-
for (let
|
|
1393
|
-
let
|
|
1394
|
-
if ((
|
|
1395
|
-
let { loaderData:
|
|
1396
|
-
if (
|
|
1397
|
-
|
|
1392
|
+
for (let u = 0; u < n.length; u++) {
|
|
1393
|
+
let c = n[u];
|
|
1394
|
+
if ((c.route.HydrateFallback || c.route.hydrateFallbackElement) && (o = u), c.route.id) {
|
|
1395
|
+
let { loaderData: f, errors: h } = r, p = c.route.loader && !f.hasOwnProperty(c.route.id) && (!h || h[c.route.id] === void 0);
|
|
1396
|
+
if (c.route.lazy || p) {
|
|
1397
|
+
l = !0, o >= 0 ? n = n.slice(0, o + 1) : n = [n[0]];
|
|
1398
1398
|
break;
|
|
1399
1399
|
}
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
|
-
return n.reduceRight((
|
|
1403
|
-
let
|
|
1404
|
-
r && (
|
|
1402
|
+
return n.reduceRight((u, c, f) => {
|
|
1403
|
+
let h, p = !1, v = null, m = null;
|
|
1404
|
+
r && (h = a && c.route.id ? a[c.route.id] : void 0, v = c.route.errorElement || dr, l && (o < 0 && f === 0 ? (Et(
|
|
1405
1405
|
"route-fallback",
|
|
1406
1406
|
!1,
|
|
1407
1407
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
1408
|
-
),
|
|
1409
|
-
let
|
|
1410
|
-
let
|
|
1411
|
-
return
|
|
1408
|
+
), p = !0, m = null) : o === f && (p = !0, m = c.route.hydrateFallbackElement || null)));
|
|
1409
|
+
let x = t.concat(n.slice(0, f + 1)), R = () => {
|
|
1410
|
+
let b;
|
|
1411
|
+
return h ? b = v : p ? b = m : c.route.Component ? b = /* @__PURE__ */ d.createElement(c.route.Component, null) : c.route.element ? b = c.route.element : b = u, /* @__PURE__ */ d.createElement(
|
|
1412
1412
|
hr,
|
|
1413
1413
|
{
|
|
1414
|
-
match:
|
|
1414
|
+
match: c,
|
|
1415
1415
|
routeContext: {
|
|
1416
|
-
outlet:
|
|
1417
|
-
matches:
|
|
1416
|
+
outlet: u,
|
|
1417
|
+
matches: x,
|
|
1418
1418
|
isDataRoute: r != null
|
|
1419
1419
|
},
|
|
1420
|
-
children:
|
|
1420
|
+
children: b
|
|
1421
1421
|
}
|
|
1422
1422
|
);
|
|
1423
1423
|
};
|
|
1424
|
-
return r && (
|
|
1424
|
+
return r && (c.route.ErrorBoundary || c.route.errorElement || f === 0) ? /* @__PURE__ */ d.createElement(
|
|
1425
1425
|
pr,
|
|
1426
1426
|
{
|
|
1427
1427
|
location: r.location,
|
|
1428
1428
|
revalidation: r.revalidation,
|
|
1429
|
-
component:
|
|
1430
|
-
error:
|
|
1431
|
-
children:
|
|
1432
|
-
routeContext: { outlet: null, matches:
|
|
1429
|
+
component: v,
|
|
1430
|
+
error: h,
|
|
1431
|
+
children: R(),
|
|
1432
|
+
routeContext: { outlet: null, matches: x, isDataRoute: !0 }
|
|
1433
1433
|
}
|
|
1434
|
-
) :
|
|
1434
|
+
) : R();
|
|
1435
1435
|
}, null);
|
|
1436
1436
|
}
|
|
1437
1437
|
function We(e) {
|
|
1438
1438
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1439
1439
|
}
|
|
1440
1440
|
function yr(e) {
|
|
1441
|
-
let t =
|
|
1441
|
+
let t = d.useContext(ie);
|
|
1442
1442
|
return W(t, We(e)), t;
|
|
1443
1443
|
}
|
|
1444
1444
|
function vr(e) {
|
|
1445
|
-
let t =
|
|
1445
|
+
let t = d.useContext(ve);
|
|
1446
1446
|
return W(t, We(e)), t;
|
|
1447
1447
|
}
|
|
1448
1448
|
function gr(e) {
|
|
1449
|
-
let t =
|
|
1449
|
+
let t = d.useContext(Q);
|
|
1450
1450
|
return W(t, We(e)), t;
|
|
1451
1451
|
}
|
|
1452
1452
|
function Be(e) {
|
|
@@ -1464,7 +1464,7 @@ function br() {
|
|
|
1464
1464
|
}
|
|
1465
1465
|
function Er() {
|
|
1466
1466
|
var i;
|
|
1467
|
-
let e =
|
|
1467
|
+
let e = d.useContext(Fe), t = vr(
|
|
1468
1468
|
"useRouteError"
|
|
1469
1469
|
/* UseRouteError */
|
|
1470
1470
|
), r = Be(
|
|
@@ -1480,10 +1480,10 @@ function wr() {
|
|
|
1480
1480
|
), t = Be(
|
|
1481
1481
|
"useNavigate"
|
|
1482
1482
|
/* UseNavigateStable */
|
|
1483
|
-
), r =
|
|
1483
|
+
), r = d.useRef(!1);
|
|
1484
1484
|
return bt(() => {
|
|
1485
1485
|
r.current = !0;
|
|
1486
|
-
}),
|
|
1486
|
+
}), d.useCallback(
|
|
1487
1487
|
async (n, a = {}) => {
|
|
1488
1488
|
X(r.current, gt), r.current && (typeof n == "number" ? e.navigate(n) : await e.navigate(n, { fromRouteId: t, ...a }));
|
|
1489
1489
|
},
|
|
@@ -1494,7 +1494,7 @@ var ot = {};
|
|
|
1494
1494
|
function Et(e, t, r) {
|
|
1495
1495
|
!t && !ot[e] && (ot[e] = !0, X(!1, r));
|
|
1496
1496
|
}
|
|
1497
|
-
|
|
1497
|
+
d.memo(xr);
|
|
1498
1498
|
function xr({
|
|
1499
1499
|
routes: e,
|
|
1500
1500
|
future: t,
|
|
@@ -1548,39 +1548,39 @@ function Ie(e) {
|
|
|
1548
1548
|
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${me}"`
|
|
1549
1549
|
), null) : e;
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1552
|
-
let r, i, n, a,
|
|
1551
|
+
function kr(e, t) {
|
|
1552
|
+
let r, i, n, a, l;
|
|
1553
1553
|
if (Cr(e)) {
|
|
1554
|
-
let
|
|
1555
|
-
i =
|
|
1554
|
+
let o = e.getAttribute("action");
|
|
1555
|
+
i = o ? re(o, t) : null, r = e.getAttribute("method") || he, n = Ie(e.getAttribute("enctype")) || me, a = new FormData(e);
|
|
1556
1556
|
} else if (Rr(e) || Tr(e) && (e.type === "submit" || e.type === "image")) {
|
|
1557
|
-
let
|
|
1558
|
-
if (
|
|
1557
|
+
let o = e.form;
|
|
1558
|
+
if (o == null)
|
|
1559
1559
|
throw new Error(
|
|
1560
1560
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1561
1561
|
);
|
|
1562
|
-
let
|
|
1563
|
-
if (i =
|
|
1564
|
-
let { name:
|
|
1565
|
-
if (
|
|
1566
|
-
let
|
|
1567
|
-
a.append(`${
|
|
1568
|
-
} else
|
|
1562
|
+
let u = e.getAttribute("formaction") || o.getAttribute("action");
|
|
1563
|
+
if (i = u ? re(u, t) : null, r = e.getAttribute("formmethod") || o.getAttribute("method") || he, n = Ie(e.getAttribute("formenctype")) || Ie(o.getAttribute("enctype")) || me, a = new FormData(o, e), !_r()) {
|
|
1564
|
+
let { name: c, type: f, value: h } = e;
|
|
1565
|
+
if (f === "image") {
|
|
1566
|
+
let p = c ? `${c}.` : "";
|
|
1567
|
+
a.append(`${p}x`, "0"), a.append(`${p}y`, "0");
|
|
1568
|
+
} else c && a.append(c, h);
|
|
1569
1569
|
}
|
|
1570
1570
|
} else {
|
|
1571
1571
|
if (be(e))
|
|
1572
1572
|
throw new Error(
|
|
1573
1573
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1574
1574
|
);
|
|
1575
|
-
r = he, i = null, n = me,
|
|
1575
|
+
r = he, i = null, n = me, l = e;
|
|
1576
1576
|
}
|
|
1577
|
-
return a && n === "text/plain" && (
|
|
1577
|
+
return a && n === "text/plain" && (l = a, a = void 0), { action: i, method: r.toLowerCase(), encType: n, formData: a, body: l };
|
|
1578
1578
|
}
|
|
1579
1579
|
function Ue(e, t) {
|
|
1580
1580
|
if (e === !1 || e === null || typeof e > "u")
|
|
1581
1581
|
throw new Error(t);
|
|
1582
1582
|
}
|
|
1583
|
-
async function
|
|
1583
|
+
async function $r(e, t) {
|
|
1584
1584
|
if (e.id in t)
|
|
1585
1585
|
return t[e.id];
|
|
1586
1586
|
try {
|
|
@@ -1605,77 +1605,77 @@ async function Ir(e, t, r) {
|
|
|
1605
1605
|
e.map(async (n) => {
|
|
1606
1606
|
let a = t.routes[n.route.id];
|
|
1607
1607
|
if (a) {
|
|
1608
|
-
let
|
|
1609
|
-
return
|
|
1608
|
+
let l = await $r(a, r);
|
|
1609
|
+
return l.links ? l.links() : [];
|
|
1610
1610
|
}
|
|
1611
1611
|
return [];
|
|
1612
1612
|
})
|
|
1613
1613
|
);
|
|
1614
|
-
return
|
|
1614
|
+
return jr(
|
|
1615
1615
|
i.flat(1).filter(Nr).filter((n) => n.rel === "stylesheet" || n.rel === "preload").map(
|
|
1616
1616
|
(n) => n.rel === "stylesheet" ? { ...n, rel: "prefetch", as: "style" } : { ...n, rel: "prefetch" }
|
|
1617
1617
|
)
|
|
1618
1618
|
);
|
|
1619
1619
|
}
|
|
1620
1620
|
function lt(e, t, r, i, n, a) {
|
|
1621
|
-
let
|
|
1622
|
-
var
|
|
1621
|
+
let l = (u, c) => r[c] ? u.route.id !== r[c].route.id : !0, o = (u, c) => {
|
|
1622
|
+
var f;
|
|
1623
1623
|
return (
|
|
1624
1624
|
// param change, /users/123 -> /users/456
|
|
1625
|
-
r[
|
|
1625
|
+
r[c].pathname !== u.pathname || // splat param changed, which is not present in match.path
|
|
1626
1626
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
1627
|
-
((
|
|
1627
|
+
((f = r[c].route.path) == null ? void 0 : f.endsWith("*")) && r[c].params["*"] !== u.params["*"]
|
|
1628
1628
|
);
|
|
1629
1629
|
};
|
|
1630
1630
|
return a === "assets" ? t.filter(
|
|
1631
|
-
(
|
|
1632
|
-
) : a === "data" ? t.filter((
|
|
1633
|
-
var
|
|
1634
|
-
let
|
|
1635
|
-
if (!
|
|
1631
|
+
(u, c) => l(u, c) || o(u, c)
|
|
1632
|
+
) : a === "data" ? t.filter((u, c) => {
|
|
1633
|
+
var h;
|
|
1634
|
+
let f = i.routes[u.route.id];
|
|
1635
|
+
if (!f || !f.hasLoader)
|
|
1636
1636
|
return !1;
|
|
1637
|
-
if (
|
|
1637
|
+
if (l(u, c) || o(u, c))
|
|
1638
1638
|
return !0;
|
|
1639
|
-
if (
|
|
1640
|
-
let
|
|
1639
|
+
if (u.route.shouldRevalidate) {
|
|
1640
|
+
let p = u.route.shouldRevalidate({
|
|
1641
1641
|
currentUrl: new URL(
|
|
1642
1642
|
n.pathname + n.search + n.hash,
|
|
1643
1643
|
window.origin
|
|
1644
1644
|
),
|
|
1645
|
-
currentParams: ((
|
|
1645
|
+
currentParams: ((h = r[0]) == null ? void 0 : h.params) || {},
|
|
1646
1646
|
nextUrl: new URL(e, window.origin),
|
|
1647
|
-
nextParams:
|
|
1647
|
+
nextParams: u.params,
|
|
1648
1648
|
defaultShouldRevalidate: !0
|
|
1649
1649
|
});
|
|
1650
|
-
if (typeof
|
|
1651
|
-
return
|
|
1650
|
+
if (typeof p == "boolean")
|
|
1651
|
+
return p;
|
|
1652
1652
|
}
|
|
1653
1653
|
return !0;
|
|
1654
1654
|
}) : [];
|
|
1655
1655
|
}
|
|
1656
|
-
function Ar(e, t) {
|
|
1656
|
+
function Ar(e, t, { includeHydrateFallback: r } = {}) {
|
|
1657
1657
|
return Lr(
|
|
1658
|
-
e.map((
|
|
1659
|
-
let
|
|
1660
|
-
if (!
|
|
1661
|
-
let
|
|
1662
|
-
return
|
|
1658
|
+
e.map((i) => {
|
|
1659
|
+
let n = t.routes[i.route.id];
|
|
1660
|
+
if (!n) return [];
|
|
1661
|
+
let a = [n.module];
|
|
1662
|
+
return n.clientActionModule && (a = a.concat(n.clientActionModule)), n.clientLoaderModule && (a = a.concat(n.clientLoaderModule)), r && n.hydrateFallbackModule && (a = a.concat(n.hydrateFallbackModule)), n.imports && (a = a.concat(n.imports)), a;
|
|
1663
1663
|
}).flat(1)
|
|
1664
1664
|
);
|
|
1665
1665
|
}
|
|
1666
1666
|
function Lr(e) {
|
|
1667
1667
|
return [...new Set(e)];
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function Mr(e) {
|
|
1670
1670
|
let t = {}, r = Object.keys(e).sort();
|
|
1671
1671
|
for (let i of r)
|
|
1672
1672
|
t[i] = e[i];
|
|
1673
1673
|
return t;
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function jr(e, t) {
|
|
1676
1676
|
let r = /* @__PURE__ */ new Set();
|
|
1677
1677
|
return new Set(t), e.reduce((i, n) => {
|
|
1678
|
-
let a = JSON.stringify(
|
|
1678
|
+
let a = JSON.stringify(Mr(n));
|
|
1679
1679
|
return r.has(a) || (r.add(a), i.push({ key: a, link: n })), i;
|
|
1680
1680
|
}, []);
|
|
1681
1681
|
}
|
|
@@ -1689,67 +1689,67 @@ function Dr(e) {
|
|
|
1689
1689
|
return t.pathname === "/" ? t.pathname = "_root.data" : t.pathname = `${t.pathname.replace(/\/$/, "")}.data`, t;
|
|
1690
1690
|
}
|
|
1691
1691
|
function qr() {
|
|
1692
|
-
let e =
|
|
1692
|
+
let e = d.useContext(ie);
|
|
1693
1693
|
return Ue(
|
|
1694
1694
|
e,
|
|
1695
1695
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1696
1696
|
), e;
|
|
1697
1697
|
}
|
|
1698
1698
|
function Fr() {
|
|
1699
|
-
let e =
|
|
1699
|
+
let e = d.useContext(ve);
|
|
1700
1700
|
return Ue(
|
|
1701
1701
|
e,
|
|
1702
1702
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
1703
1703
|
), e;
|
|
1704
1704
|
}
|
|
1705
|
-
var ze =
|
|
1705
|
+
var ze = d.createContext(void 0);
|
|
1706
1706
|
ze.displayName = "FrameworkContext";
|
|
1707
1707
|
function wt() {
|
|
1708
|
-
let e =
|
|
1708
|
+
let e = d.useContext(ze);
|
|
1709
1709
|
return Ue(
|
|
1710
1710
|
e,
|
|
1711
1711
|
"You must render this element inside a <HydratedRouter> element"
|
|
1712
1712
|
), e;
|
|
1713
1713
|
}
|
|
1714
1714
|
function Wr(e, t) {
|
|
1715
|
-
let r =
|
|
1716
|
-
|
|
1717
|
-
if (e === "render" &&
|
|
1718
|
-
let
|
|
1719
|
-
|
|
1720
|
-
|
|
1715
|
+
let r = d.useContext(ze), [i, n] = d.useState(!1), [a, l] = d.useState(!1), { onFocus: o, onBlur: u, onMouseEnter: c, onMouseLeave: f, onTouchStart: h } = t, p = d.useRef(null);
|
|
1716
|
+
d.useEffect(() => {
|
|
1717
|
+
if (e === "render" && l(!0), e === "viewport") {
|
|
1718
|
+
let x = (b) => {
|
|
1719
|
+
b.forEach((T) => {
|
|
1720
|
+
l(T.isIntersecting);
|
|
1721
1721
|
});
|
|
1722
|
-
},
|
|
1723
|
-
return
|
|
1724
|
-
|
|
1722
|
+
}, R = new IntersectionObserver(x, { threshold: 0.5 });
|
|
1723
|
+
return p.current && R.observe(p.current), () => {
|
|
1724
|
+
R.disconnect();
|
|
1725
1725
|
};
|
|
1726
1726
|
}
|
|
1727
|
-
}, [e]),
|
|
1727
|
+
}, [e]), d.useEffect(() => {
|
|
1728
1728
|
if (i) {
|
|
1729
|
-
let
|
|
1730
|
-
|
|
1729
|
+
let x = setTimeout(() => {
|
|
1730
|
+
l(!0);
|
|
1731
1731
|
}, 100);
|
|
1732
1732
|
return () => {
|
|
1733
|
-
clearTimeout(
|
|
1733
|
+
clearTimeout(x);
|
|
1734
1734
|
};
|
|
1735
1735
|
}
|
|
1736
1736
|
}, [i]);
|
|
1737
|
-
let
|
|
1737
|
+
let v = () => {
|
|
1738
1738
|
n(!0);
|
|
1739
|
-
},
|
|
1740
|
-
n(!1),
|
|
1739
|
+
}, m = () => {
|
|
1740
|
+
n(!1), l(!1);
|
|
1741
1741
|
};
|
|
1742
|
-
return r ? e !== "intent" ? [a,
|
|
1742
|
+
return r ? e !== "intent" ? [a, p, {}] : [
|
|
1743
1743
|
a,
|
|
1744
|
-
|
|
1744
|
+
p,
|
|
1745
1745
|
{
|
|
1746
|
-
onFocus: le(
|
|
1747
|
-
onBlur: le(
|
|
1748
|
-
onMouseEnter: le(
|
|
1749
|
-
onMouseLeave: le(
|
|
1750
|
-
onTouchStart: le(
|
|
1746
|
+
onFocus: le(o, v),
|
|
1747
|
+
onBlur: le(u, m),
|
|
1748
|
+
onMouseEnter: le(c, v),
|
|
1749
|
+
onMouseLeave: le(f, m),
|
|
1750
|
+
onTouchStart: le(h, v)
|
|
1751
1751
|
}
|
|
1752
|
-
] : [!1,
|
|
1752
|
+
] : [!1, p, {}];
|
|
1753
1753
|
}
|
|
1754
1754
|
function le(e, t) {
|
|
1755
1755
|
return (r) => {
|
|
@@ -1760,19 +1760,19 @@ function Br({
|
|
|
1760
1760
|
page: e,
|
|
1761
1761
|
...t
|
|
1762
1762
|
}) {
|
|
1763
|
-
let { router: r } = qr(), i =
|
|
1763
|
+
let { router: r } = qr(), i = d.useMemo(
|
|
1764
1764
|
() => ft(r.routes, e, r.basename),
|
|
1765
1765
|
[r.routes, e, r.basename]
|
|
1766
1766
|
);
|
|
1767
|
-
return i ? /* @__PURE__ */
|
|
1767
|
+
return i ? /* @__PURE__ */ d.createElement(zr, { page: e, matches: i, ...t }) : null;
|
|
1768
1768
|
}
|
|
1769
1769
|
function Ur(e) {
|
|
1770
|
-
let { manifest: t, routeModules: r } = wt(), [i, n] =
|
|
1771
|
-
return
|
|
1770
|
+
let { manifest: t, routeModules: r } = wt(), [i, n] = d.useState([]);
|
|
1771
|
+
return d.useEffect(() => {
|
|
1772
1772
|
let a = !1;
|
|
1773
1773
|
return Ir(e, t, r).then(
|
|
1774
|
-
(
|
|
1775
|
-
a || n(
|
|
1774
|
+
(l) => {
|
|
1775
|
+
a || n(l);
|
|
1776
1776
|
}
|
|
1777
1777
|
), () => {
|
|
1778
1778
|
a = !0;
|
|
@@ -1784,57 +1784,57 @@ function zr({
|
|
|
1784
1784
|
matches: t,
|
|
1785
1785
|
...r
|
|
1786
1786
|
}) {
|
|
1787
|
-
let i = ne(), { manifest: n, routeModules: a } = wt(), { loaderData:
|
|
1787
|
+
let i = ne(), { manifest: n, routeModules: a } = wt(), { loaderData: l, matches: o } = Fr(), u = d.useMemo(
|
|
1788
1788
|
() => lt(
|
|
1789
1789
|
e,
|
|
1790
1790
|
t,
|
|
1791
|
-
|
|
1791
|
+
o,
|
|
1792
1792
|
n,
|
|
1793
1793
|
i,
|
|
1794
1794
|
"data"
|
|
1795
1795
|
),
|
|
1796
|
-
[e, t,
|
|
1797
|
-
),
|
|
1796
|
+
[e, t, o, n, i]
|
|
1797
|
+
), c = d.useMemo(
|
|
1798
1798
|
() => lt(
|
|
1799
1799
|
e,
|
|
1800
1800
|
t,
|
|
1801
|
-
|
|
1801
|
+
o,
|
|
1802
1802
|
n,
|
|
1803
1803
|
i,
|
|
1804
1804
|
"assets"
|
|
1805
1805
|
),
|
|
1806
|
-
[e, t,
|
|
1807
|
-
),
|
|
1806
|
+
[e, t, o, n, i]
|
|
1807
|
+
), f = d.useMemo(() => {
|
|
1808
1808
|
if (e === i.pathname + i.search + i.hash)
|
|
1809
1809
|
return [];
|
|
1810
|
-
let
|
|
1811
|
-
if (t.forEach((
|
|
1812
|
-
var
|
|
1813
|
-
let
|
|
1814
|
-
!
|
|
1815
|
-
}),
|
|
1810
|
+
let v = /* @__PURE__ */ new Set(), m = !1;
|
|
1811
|
+
if (t.forEach((R) => {
|
|
1812
|
+
var T;
|
|
1813
|
+
let b = n.routes[R.route.id];
|
|
1814
|
+
!b || !b.hasLoader || (!u.some((S) => S.route.id === R.route.id) && R.route.id in l && ((T = a[R.route.id]) != null && T.shouldRevalidate) || b.hasClientLoader ? m = !0 : v.add(R.route.id));
|
|
1815
|
+
}), v.size === 0)
|
|
1816
1816
|
return [];
|
|
1817
|
-
let
|
|
1818
|
-
return
|
|
1817
|
+
let x = Dr(e);
|
|
1818
|
+
return m && v.size > 0 && x.searchParams.set(
|
|
1819
1819
|
"_routes",
|
|
1820
|
-
t.filter((
|
|
1821
|
-
), [
|
|
1820
|
+
t.filter((R) => v.has(R.route.id)).map((R) => R.route.id).join(",")
|
|
1821
|
+
), [x.pathname + x.search];
|
|
1822
1822
|
}, [
|
|
1823
|
-
|
|
1823
|
+
l,
|
|
1824
1824
|
i,
|
|
1825
1825
|
n,
|
|
1826
|
-
|
|
1826
|
+
u,
|
|
1827
1827
|
t,
|
|
1828
1828
|
e,
|
|
1829
1829
|
a
|
|
1830
|
-
]),
|
|
1831
|
-
() => Ar(
|
|
1832
|
-
[
|
|
1833
|
-
),
|
|
1834
|
-
return /* @__PURE__ */
|
|
1830
|
+
]), h = d.useMemo(
|
|
1831
|
+
() => Ar(c, n),
|
|
1832
|
+
[c, n]
|
|
1833
|
+
), p = Ur(c);
|
|
1834
|
+
return /* @__PURE__ */ d.createElement(d.Fragment, null, f.map((v) => /* @__PURE__ */ d.createElement("link", { key: v, rel: "prefetch", as: "fetch", href: v, ...r })), h.map((v) => /* @__PURE__ */ d.createElement("link", { key: v, rel: "modulepreload", href: v, ...r })), p.map(({ key: v, link: m }) => (
|
|
1835
1835
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1836
1836
|
// already with their own props
|
|
1837
|
-
/* @__PURE__ */
|
|
1837
|
+
/* @__PURE__ */ d.createElement("link", { key: v, ...m })
|
|
1838
1838
|
)));
|
|
1839
1839
|
}
|
|
1840
1840
|
function Yr(...e) {
|
|
@@ -1846,114 +1846,114 @@ function Yr(...e) {
|
|
|
1846
1846
|
}
|
|
1847
1847
|
var xt = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1848
1848
|
try {
|
|
1849
|
-
xt && (window.__reactRouterVersion = "7.
|
|
1849
|
+
xt && (window.__reactRouterVersion = "7.2.0");
|
|
1850
1850
|
} catch {
|
|
1851
1851
|
}
|
|
1852
|
-
var Rt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ye =
|
|
1852
|
+
var Rt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ye = d.forwardRef(
|
|
1853
1853
|
function({
|
|
1854
1854
|
onClick: t,
|
|
1855
1855
|
discover: r = "render",
|
|
1856
1856
|
prefetch: i = "none",
|
|
1857
1857
|
relative: n,
|
|
1858
1858
|
reloadDocument: a,
|
|
1859
|
-
replace:
|
|
1860
|
-
state:
|
|
1861
|
-
target:
|
|
1862
|
-
to:
|
|
1863
|
-
preventScrollReset:
|
|
1864
|
-
viewTransition:
|
|
1865
|
-
...
|
|
1866
|
-
},
|
|
1867
|
-
let { basename:
|
|
1868
|
-
if (typeof
|
|
1859
|
+
replace: l,
|
|
1860
|
+
state: o,
|
|
1861
|
+
target: u,
|
|
1862
|
+
to: c,
|
|
1863
|
+
preventScrollReset: f,
|
|
1864
|
+
viewTransition: h,
|
|
1865
|
+
...p
|
|
1866
|
+
}, v) {
|
|
1867
|
+
let { basename: m } = d.useContext(Z), x = typeof c == "string" && Rt.test(c), R, b = !1;
|
|
1868
|
+
if (typeof c == "string" && x && (R = c, xt))
|
|
1869
1869
|
try {
|
|
1870
|
-
let F = new URL(window.location.href), H =
|
|
1871
|
-
H.origin === F.origin && ee != null ?
|
|
1870
|
+
let F = new URL(window.location.href), H = c.startsWith("//") ? new URL(F.protocol + c) : new URL(c), ee = re(H.pathname, m);
|
|
1871
|
+
H.origin === F.origin && ee != null ? c = ee + H.search + H.hash : b = !0;
|
|
1872
1872
|
} catch {
|
|
1873
1873
|
X(
|
|
1874
1874
|
!1,
|
|
1875
|
-
`<Link to="${
|
|
1875
|
+
`<Link to="${c}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1876
1876
|
);
|
|
1877
1877
|
}
|
|
1878
|
-
let
|
|
1878
|
+
let T = lr(c, { relative: n }), [S, N, g] = Wr(
|
|
1879
1879
|
i,
|
|
1880
|
-
|
|
1881
|
-
), U = Kr(
|
|
1882
|
-
replace:
|
|
1883
|
-
state:
|
|
1884
|
-
target:
|
|
1885
|
-
preventScrollReset:
|
|
1880
|
+
p
|
|
1881
|
+
), U = Kr(c, {
|
|
1882
|
+
replace: l,
|
|
1883
|
+
state: o,
|
|
1884
|
+
target: u,
|
|
1885
|
+
preventScrollReset: f,
|
|
1886
1886
|
relative: n,
|
|
1887
|
-
viewTransition:
|
|
1887
|
+
viewTransition: h
|
|
1888
1888
|
});
|
|
1889
1889
|
function Y(F) {
|
|
1890
1890
|
t && t(F), F.defaultPrevented || U(F);
|
|
1891
1891
|
}
|
|
1892
1892
|
let V = (
|
|
1893
1893
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1894
|
-
/* @__PURE__ */
|
|
1894
|
+
/* @__PURE__ */ d.createElement(
|
|
1895
1895
|
"a",
|
|
1896
1896
|
{
|
|
1897
|
-
...
|
|
1897
|
+
...p,
|
|
1898
1898
|
...g,
|
|
1899
|
-
href:
|
|
1900
|
-
onClick:
|
|
1901
|
-
ref: Yr(
|
|
1902
|
-
target:
|
|
1903
|
-
"data-discover": !
|
|
1899
|
+
href: R || T,
|
|
1900
|
+
onClick: b || a ? t : Y,
|
|
1901
|
+
ref: Yr(v, N),
|
|
1902
|
+
target: u,
|
|
1903
|
+
"data-discover": !x && r === "render" ? "true" : void 0
|
|
1904
1904
|
}
|
|
1905
1905
|
)
|
|
1906
1906
|
);
|
|
1907
|
-
return
|
|
1907
|
+
return S && !x ? /* @__PURE__ */ d.createElement(d.Fragment, null, V, /* @__PURE__ */ d.createElement(Br, { page: T })) : V;
|
|
1908
1908
|
}
|
|
1909
1909
|
);
|
|
1910
1910
|
Ye.displayName = "Link";
|
|
1911
|
-
var Hr =
|
|
1911
|
+
var Hr = d.forwardRef(
|
|
1912
1912
|
function({
|
|
1913
1913
|
"aria-current": t = "page",
|
|
1914
1914
|
caseSensitive: r = !1,
|
|
1915
1915
|
className: i = "",
|
|
1916
1916
|
end: n = !1,
|
|
1917
1917
|
style: a,
|
|
1918
|
-
to:
|
|
1919
|
-
viewTransition:
|
|
1920
|
-
children:
|
|
1921
|
-
...
|
|
1922
|
-
},
|
|
1923
|
-
let
|
|
1918
|
+
to: l,
|
|
1919
|
+
viewTransition: o,
|
|
1920
|
+
children: u,
|
|
1921
|
+
...c
|
|
1922
|
+
}, f) {
|
|
1923
|
+
let h = se(l, { relative: c.relative }), p = ne(), v = d.useContext(ve), { navigator: m, basename: x } = d.useContext(Z), R = v != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1924
1924
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1925
|
-
en(
|
|
1926
|
-
r || (
|
|
1927
|
-
const
|
|
1928
|
-
let g =
|
|
1925
|
+
en(h) && o === !0, b = m.encodeLocation ? m.encodeLocation(h).pathname : h.pathname, T = p.pathname, S = v && v.navigation && v.navigation.location ? v.navigation.location.pathname : null;
|
|
1926
|
+
r || (T = T.toLowerCase(), S = S ? S.toLowerCase() : null, b = b.toLowerCase()), S && x && (S = re(S, x) || S);
|
|
1927
|
+
const N = b !== "/" && b.endsWith("/") ? b.length - 1 : b.length;
|
|
1928
|
+
let g = T === b || !n && T.startsWith(b) && T.charAt(N) === "/", U = S != null && (S === b || !n && S.startsWith(b) && S.charAt(b.length) === "/"), Y = {
|
|
1929
1929
|
isActive: g,
|
|
1930
1930
|
isPending: U,
|
|
1931
|
-
isTransitioning:
|
|
1931
|
+
isTransitioning: R
|
|
1932
1932
|
}, V = g ? t : void 0, F;
|
|
1933
1933
|
typeof i == "function" ? F = i(Y) : F = [
|
|
1934
1934
|
i,
|
|
1935
1935
|
g ? "active" : null,
|
|
1936
1936
|
U ? "pending" : null,
|
|
1937
|
-
|
|
1937
|
+
R ? "transitioning" : null
|
|
1938
1938
|
].filter(Boolean).join(" ");
|
|
1939
1939
|
let H = typeof a == "function" ? a(Y) : a;
|
|
1940
|
-
return /* @__PURE__ */
|
|
1940
|
+
return /* @__PURE__ */ d.createElement(
|
|
1941
1941
|
Ye,
|
|
1942
1942
|
{
|
|
1943
|
-
...
|
|
1943
|
+
...c,
|
|
1944
1944
|
"aria-current": V,
|
|
1945
1945
|
className: F,
|
|
1946
|
-
ref:
|
|
1946
|
+
ref: f,
|
|
1947
1947
|
style: H,
|
|
1948
|
-
to:
|
|
1949
|
-
viewTransition:
|
|
1948
|
+
to: l,
|
|
1949
|
+
viewTransition: o
|
|
1950
1950
|
},
|
|
1951
|
-
typeof
|
|
1951
|
+
typeof u == "function" ? u(Y) : u
|
|
1952
1952
|
);
|
|
1953
1953
|
}
|
|
1954
1954
|
);
|
|
1955
1955
|
Hr.displayName = "NavLink";
|
|
1956
|
-
var Vr =
|
|
1956
|
+
var Vr = d.forwardRef(
|
|
1957
1957
|
({
|
|
1958
1958
|
discover: e = "render",
|
|
1959
1959
|
fetcherKey: t,
|
|
@@ -1961,38 +1961,38 @@ var Vr = p.forwardRef(
|
|
|
1961
1961
|
reloadDocument: i,
|
|
1962
1962
|
replace: n,
|
|
1963
1963
|
state: a,
|
|
1964
|
-
method:
|
|
1965
|
-
action:
|
|
1966
|
-
onSubmit:
|
|
1967
|
-
relative:
|
|
1968
|
-
preventScrollReset:
|
|
1969
|
-
viewTransition:
|
|
1970
|
-
...
|
|
1971
|
-
},
|
|
1972
|
-
let
|
|
1973
|
-
if (
|
|
1974
|
-
|
|
1975
|
-
let
|
|
1976
|
-
|
|
1964
|
+
method: l = he,
|
|
1965
|
+
action: o,
|
|
1966
|
+
onSubmit: u,
|
|
1967
|
+
relative: c,
|
|
1968
|
+
preventScrollReset: f,
|
|
1969
|
+
viewTransition: h,
|
|
1970
|
+
...p
|
|
1971
|
+
}, v) => {
|
|
1972
|
+
let m = Zr(), x = Qr(o, { relative: c }), R = l.toLowerCase() === "get" ? "get" : "post", b = typeof o == "string" && Rt.test(o), T = (S) => {
|
|
1973
|
+
if (u && u(S), S.defaultPrevented) return;
|
|
1974
|
+
S.preventDefault();
|
|
1975
|
+
let N = S.nativeEvent.submitter, g = (N == null ? void 0 : N.getAttribute("formmethod")) || l;
|
|
1976
|
+
m(N || S.currentTarget, {
|
|
1977
1977
|
fetcherKey: t,
|
|
1978
1978
|
method: g,
|
|
1979
1979
|
navigate: r,
|
|
1980
1980
|
replace: n,
|
|
1981
1981
|
state: a,
|
|
1982
|
-
relative:
|
|
1983
|
-
preventScrollReset:
|
|
1984
|
-
viewTransition:
|
|
1982
|
+
relative: c,
|
|
1983
|
+
preventScrollReset: f,
|
|
1984
|
+
viewTransition: h
|
|
1985
1985
|
});
|
|
1986
1986
|
};
|
|
1987
|
-
return /* @__PURE__ */
|
|
1987
|
+
return /* @__PURE__ */ d.createElement(
|
|
1988
1988
|
"form",
|
|
1989
1989
|
{
|
|
1990
|
-
ref:
|
|
1991
|
-
method:
|
|
1992
|
-
action:
|
|
1993
|
-
onSubmit: i ?
|
|
1994
|
-
...
|
|
1995
|
-
"data-discover": !
|
|
1990
|
+
ref: v,
|
|
1991
|
+
method: R,
|
|
1992
|
+
action: x,
|
|
1993
|
+
onSubmit: i ? u : T,
|
|
1994
|
+
...p,
|
|
1995
|
+
"data-discover": !b && e === "render" ? "true" : void 0
|
|
1996
1996
|
}
|
|
1997
1997
|
);
|
|
1998
1998
|
}
|
|
@@ -2002,7 +2002,7 @@ function Jr(e) {
|
|
|
2002
2002
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
2003
2003
|
}
|
|
2004
2004
|
function Ct(e) {
|
|
2005
|
-
let t =
|
|
2005
|
+
let t = d.useContext(ie);
|
|
2006
2006
|
return W(t, Jr(e)), t;
|
|
2007
2007
|
}
|
|
2008
2008
|
function Kr(e, {
|
|
@@ -2011,34 +2011,34 @@ function Kr(e, {
|
|
|
2011
2011
|
state: i,
|
|
2012
2012
|
preventScrollReset: n,
|
|
2013
2013
|
relative: a,
|
|
2014
|
-
viewTransition:
|
|
2014
|
+
viewTransition: l
|
|
2015
2015
|
} = {}) {
|
|
2016
|
-
let
|
|
2017
|
-
return
|
|
2018
|
-
(
|
|
2019
|
-
if (Pr(
|
|
2020
|
-
|
|
2021
|
-
let
|
|
2022
|
-
|
|
2023
|
-
replace:
|
|
2016
|
+
let o = sr(), u = ne(), c = se(e, { relative: a });
|
|
2017
|
+
return d.useCallback(
|
|
2018
|
+
(f) => {
|
|
2019
|
+
if (Pr(f, t)) {
|
|
2020
|
+
f.preventDefault();
|
|
2021
|
+
let h = r !== void 0 ? r : Ae(u) === Ae(c);
|
|
2022
|
+
o(e, {
|
|
2023
|
+
replace: h,
|
|
2024
2024
|
state: i,
|
|
2025
2025
|
preventScrollReset: n,
|
|
2026
2026
|
relative: a,
|
|
2027
|
-
viewTransition:
|
|
2027
|
+
viewTransition: l
|
|
2028
2028
|
});
|
|
2029
2029
|
}
|
|
2030
2030
|
},
|
|
2031
2031
|
[
|
|
2032
|
-
c,
|
|
2033
|
-
l,
|
|
2034
2032
|
u,
|
|
2033
|
+
o,
|
|
2034
|
+
c,
|
|
2035
2035
|
r,
|
|
2036
2036
|
i,
|
|
2037
2037
|
t,
|
|
2038
2038
|
e,
|
|
2039
2039
|
n,
|
|
2040
2040
|
a,
|
|
2041
|
-
|
|
2041
|
+
l
|
|
2042
2042
|
]
|
|
2043
2043
|
);
|
|
2044
2044
|
}
|
|
@@ -2047,30 +2047,30 @@ function Zr() {
|
|
|
2047
2047
|
let { router: e } = Ct(
|
|
2048
2048
|
"useSubmit"
|
|
2049
2049
|
/* UseSubmit */
|
|
2050
|
-
), { basename: t } =
|
|
2051
|
-
return
|
|
2050
|
+
), { basename: t } = d.useContext(Z), r = br();
|
|
2051
|
+
return d.useCallback(
|
|
2052
2052
|
async (i, n = {}) => {
|
|
2053
|
-
let { action: a, method:
|
|
2053
|
+
let { action: a, method: l, encType: o, formData: u, body: c } = kr(
|
|
2054
2054
|
i,
|
|
2055
2055
|
t
|
|
2056
2056
|
);
|
|
2057
2057
|
if (n.navigate === !1) {
|
|
2058
|
-
let
|
|
2059
|
-
await e.fetch(
|
|
2058
|
+
let f = n.fetcherKey || Xr();
|
|
2059
|
+
await e.fetch(f, r, n.action || a, {
|
|
2060
2060
|
preventScrollReset: n.preventScrollReset,
|
|
2061
|
-
formData:
|
|
2062
|
-
body:
|
|
2063
|
-
formMethod: n.method ||
|
|
2064
|
-
formEncType: n.encType ||
|
|
2061
|
+
formData: u,
|
|
2062
|
+
body: c,
|
|
2063
|
+
formMethod: n.method || l,
|
|
2064
|
+
formEncType: n.encType || o,
|
|
2065
2065
|
flushSync: n.flushSync
|
|
2066
2066
|
});
|
|
2067
2067
|
} else
|
|
2068
2068
|
await e.navigate(n.action || a, {
|
|
2069
2069
|
preventScrollReset: n.preventScrollReset,
|
|
2070
|
-
formData:
|
|
2071
|
-
body:
|
|
2072
|
-
formMethod: n.method ||
|
|
2073
|
-
formEncType: n.encType ||
|
|
2070
|
+
formData: u,
|
|
2071
|
+
body: c,
|
|
2072
|
+
formMethod: n.method || l,
|
|
2073
|
+
formEncType: n.encType || o,
|
|
2074
2074
|
replace: n.replace,
|
|
2075
2075
|
state: n.state,
|
|
2076
2076
|
fromRouteId: r,
|
|
@@ -2082,22 +2082,22 @@ function Zr() {
|
|
|
2082
2082
|
);
|
|
2083
2083
|
}
|
|
2084
2084
|
function Qr(e, { relative: t } = {}) {
|
|
2085
|
-
let { basename: r } =
|
|
2085
|
+
let { basename: r } = d.useContext(Z), i = d.useContext(Q);
|
|
2086
2086
|
W(i, "useFormAction must be used inside a RouteContext");
|
|
2087
|
-
let [n] = i.matches.slice(-1), a = { ...se(e || ".", { relative: t }) },
|
|
2087
|
+
let [n] = i.matches.slice(-1), a = { ...se(e || ".", { relative: t }) }, l = ne();
|
|
2088
2088
|
if (e == null) {
|
|
2089
|
-
a.search =
|
|
2090
|
-
let
|
|
2091
|
-
if (
|
|
2092
|
-
|
|
2093
|
-
let
|
|
2094
|
-
a.search =
|
|
2089
|
+
a.search = l.search;
|
|
2090
|
+
let o = new URLSearchParams(a.search), u = o.getAll("index");
|
|
2091
|
+
if (u.some((f) => f === "")) {
|
|
2092
|
+
o.delete("index"), u.filter((h) => h).forEach((h) => o.append("index", h));
|
|
2093
|
+
let f = o.toString();
|
|
2094
|
+
a.search = f ? `?${f}` : "";
|
|
2095
2095
|
}
|
|
2096
2096
|
}
|
|
2097
2097
|
return (!e || e === ".") && n.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : G([r, a.pathname])), Ae(a);
|
|
2098
2098
|
}
|
|
2099
2099
|
function en(e, t = {}) {
|
|
2100
|
-
let r =
|
|
2100
|
+
let r = d.useContext(vt);
|
|
2101
2101
|
W(
|
|
2102
2102
|
r != null,
|
|
2103
2103
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
@@ -2108,8 +2108,8 @@ function en(e, t = {}) {
|
|
|
2108
2108
|
), n = se(e, { relative: t.relative });
|
|
2109
2109
|
if (!r.isTransitioning)
|
|
2110
2110
|
return !1;
|
|
2111
|
-
let a = re(r.currentLocation.pathname, i) || r.currentLocation.pathname,
|
|
2112
|
-
return ye(n.pathname,
|
|
2111
|
+
let a = re(r.currentLocation.pathname, i) || r.currentLocation.pathname, l = re(r.nextLocation.pathname, i) || r.nextLocation.pathname;
|
|
2112
|
+
return ye(n.pathname, l) != null || ye(n.pathname, a) != null;
|
|
2113
2113
|
}
|
|
2114
2114
|
new TextEncoder();
|
|
2115
2115
|
const Le = ({
|
|
@@ -2119,57 +2119,57 @@ const Le = ({
|
|
|
2119
2119
|
className: i,
|
|
2120
2120
|
type: n = "primary",
|
|
2121
2121
|
variant: a = "",
|
|
2122
|
-
size:
|
|
2123
|
-
icon:
|
|
2124
|
-
iconOnly:
|
|
2125
|
-
iconPosition:
|
|
2126
|
-
fullWidth:
|
|
2127
|
-
disabled:
|
|
2128
|
-
onClick:
|
|
2122
|
+
size: l = "default",
|
|
2123
|
+
icon: o = "",
|
|
2124
|
+
iconOnly: u = !1,
|
|
2125
|
+
iconPosition: c = "left",
|
|
2126
|
+
fullWidth: f = !1,
|
|
2127
|
+
disabled: h = !1,
|
|
2128
|
+
onClick: p = () => {
|
|
2129
2129
|
},
|
|
2130
|
-
"aria-label":
|
|
2130
|
+
"aria-label": v = ""
|
|
2131
2131
|
}) => {
|
|
2132
|
-
const
|
|
2132
|
+
const m = o && u, x = B(
|
|
2133
2133
|
// Static classes
|
|
2134
2134
|
"rpf-button",
|
|
2135
2135
|
// Conditional classes
|
|
2136
2136
|
{
|
|
2137
2137
|
[`rpf-button--${n}`]: n,
|
|
2138
2138
|
"rpf-button--danger": a === "danger",
|
|
2139
|
-
"rpf-button--sm":
|
|
2140
|
-
"rpf-button--icon-only":
|
|
2141
|
-
"rpf-button--full-width":
|
|
2142
|
-
disabled:
|
|
2139
|
+
"rpf-button--sm": l === "small",
|
|
2140
|
+
"rpf-button--icon-only": m,
|
|
2141
|
+
"rpf-button--full-width": f,
|
|
2142
|
+
disabled: h
|
|
2143
2143
|
},
|
|
2144
2144
|
i
|
|
2145
2145
|
);
|
|
2146
|
-
let
|
|
2147
|
-
Tt.isValidElement(
|
|
2146
|
+
let R = "rpf-button__icon";
|
|
2147
|
+
Tt.isValidElement(o) ? (R += " icon", console.warn(
|
|
2148
2148
|
"DEPRECATED: icons as React elements will not be supported in future releases"
|
|
2149
|
-
)) :
|
|
2150
|
-
const
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2149
|
+
)) : R += " material-symbols-sharp";
|
|
2150
|
+
const b = (N) => o && c === N && /* @__PURE__ */ C("span", { className: R, children: o }), T = () => e && !m && /* @__PURE__ */ C("span", { className: "text", children: e }), S = /* @__PURE__ */ q(Me, { children: [
|
|
2151
|
+
b("left"),
|
|
2152
|
+
T(),
|
|
2153
|
+
b("right")
|
|
2154
2154
|
] });
|
|
2155
|
-
return t ? /* @__PURE__ */
|
|
2155
|
+
return t ? /* @__PURE__ */ C(
|
|
2156
2156
|
Ye,
|
|
2157
2157
|
{
|
|
2158
|
-
className:
|
|
2158
|
+
className: x,
|
|
2159
2159
|
to: t,
|
|
2160
|
-
onClick:
|
|
2161
|
-
"aria-label":
|
|
2162
|
-
children:
|
|
2160
|
+
onClick: p,
|
|
2161
|
+
"aria-label": v,
|
|
2162
|
+
children: S
|
|
2163
2163
|
}
|
|
2164
|
-
) : /* @__PURE__ */
|
|
2164
|
+
) : /* @__PURE__ */ C(
|
|
2165
2165
|
"button",
|
|
2166
2166
|
{
|
|
2167
|
-
className:
|
|
2167
|
+
className: x,
|
|
2168
2168
|
title: r,
|
|
2169
|
-
onClick:
|
|
2170
|
-
disabled:
|
|
2171
|
-
"aria-label":
|
|
2172
|
-
children:
|
|
2169
|
+
onClick: p,
|
|
2170
|
+
disabled: h,
|
|
2171
|
+
"aria-label": v,
|
|
2172
|
+
children: S
|
|
2173
2173
|
}
|
|
2174
2174
|
);
|
|
2175
2175
|
};
|
|
@@ -2192,9 +2192,9 @@ Le.propTypes = {
|
|
|
2192
2192
|
};
|
|
2193
2193
|
const tn = ({ title: e, text: t, children: r, type: i, actions: n, onClose: a }) => /* @__PURE__ */ q("div", { className: `rpf-alert rpf-alert--${i}`, children: [
|
|
2194
2194
|
/* @__PURE__ */ q("div", { className: "rpf-alert__header", children: [
|
|
2195
|
-
/* @__PURE__ */
|
|
2196
|
-
/* @__PURE__ */
|
|
2197
|
-
!!a && /* @__PURE__ */
|
|
2195
|
+
/* @__PURE__ */ C("span", { className: "rpf-alert__icon material-symbols-sharp" }),
|
|
2196
|
+
/* @__PURE__ */ C("p", { className: "rpf-alert__title", children: e }),
|
|
2197
|
+
!!a && /* @__PURE__ */ C("div", { className: "rpf-alert__close", children: /* @__PURE__ */ C(
|
|
2198
2198
|
Le,
|
|
2199
2199
|
{
|
|
2200
2200
|
type: "tertiary",
|
|
@@ -2206,18 +2206,18 @@ const tn = ({ title: e, text: t, children: r, type: i, actions: n, onClose: a })
|
|
|
2206
2206
|
) })
|
|
2207
2207
|
] }),
|
|
2208
2208
|
(t || r || n) && /* @__PURE__ */ q("div", { className: "rpf-alert__body", children: [
|
|
2209
|
-
!r && t && /* @__PURE__ */
|
|
2210
|
-
r && /* @__PURE__ */
|
|
2211
|
-
n && n.length > 0 && /* @__PURE__ */
|
|
2209
|
+
!r && t && /* @__PURE__ */ C("p", { children: t }),
|
|
2210
|
+
r && /* @__PURE__ */ C("div", { children: r }),
|
|
2211
|
+
n && n.length > 0 && /* @__PURE__ */ C("div", { className: "rpf-alert__actions", children: n.map((l) => /* @__PURE__ */ C(
|
|
2212
2212
|
Le,
|
|
2213
2213
|
{
|
|
2214
|
-
text:
|
|
2214
|
+
text: l.label,
|
|
2215
2215
|
size: "small",
|
|
2216
2216
|
type: "tertiary",
|
|
2217
|
-
href:
|
|
2218
|
-
onClick:
|
|
2217
|
+
href: l.href,
|
|
2218
|
+
onClick: l.onClick
|
|
2219
2219
|
},
|
|
2220
|
-
|
|
2220
|
+
l.key || l.label
|
|
2221
2221
|
)) })
|
|
2222
2222
|
] })
|
|
2223
2223
|
] });
|
|
@@ -2242,38 +2242,38 @@ const rn = ({
|
|
|
2242
2242
|
checked: i = !1,
|
|
2243
2243
|
disabled: n = !1,
|
|
2244
2244
|
error: a = "",
|
|
2245
|
-
onChange:
|
|
2245
|
+
onChange: l = () => {
|
|
2246
2246
|
},
|
|
2247
|
-
value:
|
|
2248
|
-
className:
|
|
2249
|
-
}) => /* @__PURE__ */ q(
|
|
2247
|
+
value: o = "",
|
|
2248
|
+
className: u = ""
|
|
2249
|
+
}) => /* @__PURE__ */ q(Me, { children: [
|
|
2250
2250
|
/* @__PURE__ */ q(
|
|
2251
2251
|
"label",
|
|
2252
2252
|
{
|
|
2253
2253
|
className: B("rpf-input-checkbox", {
|
|
2254
2254
|
"rpf-input-checkbox--error": a,
|
|
2255
|
-
className:
|
|
2255
|
+
className: u
|
|
2256
2256
|
}),
|
|
2257
2257
|
children: [
|
|
2258
|
-
/* @__PURE__ */
|
|
2258
|
+
/* @__PURE__ */ C("span", { children: /* @__PURE__ */ C(
|
|
2259
2259
|
"input",
|
|
2260
2260
|
{
|
|
2261
2261
|
checked: !!i,
|
|
2262
2262
|
disabled: n,
|
|
2263
2263
|
id: e,
|
|
2264
2264
|
name: r,
|
|
2265
|
-
onChange:
|
|
2265
|
+
onChange: l,
|
|
2266
2266
|
type: "checkbox",
|
|
2267
|
-
value:
|
|
2267
|
+
value: o
|
|
2268
2268
|
}
|
|
2269
2269
|
) }),
|
|
2270
|
-
/* @__PURE__ */
|
|
2270
|
+
/* @__PURE__ */ C("span", { className: "checkmark" }),
|
|
2271
2271
|
t
|
|
2272
2272
|
]
|
|
2273
2273
|
}
|
|
2274
2274
|
),
|
|
2275
2275
|
a && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
|
|
2276
|
-
/* @__PURE__ */
|
|
2276
|
+
/* @__PURE__ */ C("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
2277
2277
|
a
|
|
2278
2278
|
] })
|
|
2279
2279
|
] });
|
|
@@ -2307,11 +2307,11 @@ const nn = ({
|
|
|
2307
2307
|
children: [
|
|
2308
2308
|
/* @__PURE__ */ q("legend", { className: "rpf-label", children: [
|
|
2309
2309
|
i,
|
|
2310
|
-
n.length > 0 ? /* @__PURE__ */
|
|
2310
|
+
n.length > 0 ? /* @__PURE__ */ C("small", { className: "rpf-label__hint", children: n }) : null
|
|
2311
2311
|
] }),
|
|
2312
|
-
/* @__PURE__ */
|
|
2312
|
+
/* @__PURE__ */ C("div", { className: "rpf-fieldset__inputs", children: a }),
|
|
2313
2313
|
t.length > 0 ? /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
|
|
2314
|
-
/* @__PURE__ */
|
|
2314
|
+
/* @__PURE__ */ C("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
2315
2315
|
t
|
|
2316
2316
|
] }) : null
|
|
2317
2317
|
]
|
|
@@ -2342,13 +2342,13 @@ const Ee = ({
|
|
|
2342
2342
|
}),
|
|
2343
2343
|
children: [
|
|
2344
2344
|
t,
|
|
2345
|
-
/* @__PURE__ */
|
|
2345
|
+
/* @__PURE__ */ C("small", { className: "rpf-label__hint", children: a })
|
|
2346
2346
|
]
|
|
2347
2347
|
}
|
|
2348
2348
|
),
|
|
2349
2349
|
r,
|
|
2350
2350
|
n && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
|
|
2351
|
-
/* @__PURE__ */
|
|
2351
|
+
/* @__PURE__ */ C("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "error" }),
|
|
2352
2352
|
n
|
|
2353
2353
|
] })
|
|
2354
2354
|
] });
|
|
@@ -2365,7 +2365,7 @@ const an = ({
|
|
|
2365
2365
|
inputFieldId: t,
|
|
2366
2366
|
disabled: r = !1,
|
|
2367
2367
|
hint: i = ""
|
|
2368
|
-
}) => /* @__PURE__ */
|
|
2368
|
+
}) => /* @__PURE__ */ C("div", { className: "rpf-label", children: /* @__PURE__ */ q(
|
|
2369
2369
|
"label",
|
|
2370
2370
|
{
|
|
2371
2371
|
htmlFor: t,
|
|
@@ -2374,7 +2374,7 @@ const an = ({
|
|
|
2374
2374
|
}),
|
|
2375
2375
|
children: [
|
|
2376
2376
|
e,
|
|
2377
|
-
i && /* @__PURE__ */
|
|
2377
|
+
i && /* @__PURE__ */ C("div", { className: "rpf-label__hint", children: i })
|
|
2378
2378
|
]
|
|
2379
2379
|
}
|
|
2380
2380
|
) });
|
|
@@ -2384,9 +2384,9 @@ an.propTypes = {
|
|
|
2384
2384
|
label: s.oneOfType([s.string, s.object]).isRequired,
|
|
2385
2385
|
inputFieldId: s.string.isRequired
|
|
2386
2386
|
};
|
|
2387
|
-
const on = ({ text: e = "", percent: t }) => /* @__PURE__ */
|
|
2388
|
-
/* @__PURE__ */
|
|
2389
|
-
/* @__PURE__ */
|
|
2387
|
+
const on = ({ text: e = "", percent: t }) => /* @__PURE__ */ C("div", { className: "rpf-progress-bar", children: /* @__PURE__ */ q("label", { className: "rpf-progress-bar__label", children: [
|
|
2388
|
+
/* @__PURE__ */ C("span", { children: e }),
|
|
2389
|
+
/* @__PURE__ */ C("progress", { className: "rpf-progress-bar__bar", value: t, max: "100", children: `${t}%` })
|
|
2390
2390
|
] }) });
|
|
2391
2391
|
on.propTypes = {
|
|
2392
2392
|
text: s.string,
|
|
@@ -2399,10 +2399,10 @@ const ln = ({
|
|
|
2399
2399
|
checked: i = !1,
|
|
2400
2400
|
disabled: n = !1,
|
|
2401
2401
|
fullWidth: a = !1,
|
|
2402
|
-
onChange:
|
|
2402
|
+
onChange: l = () => {
|
|
2403
2403
|
},
|
|
2404
|
-
value:
|
|
2405
|
-
}) => /* @__PURE__ */
|
|
2404
|
+
value: o = ""
|
|
2405
|
+
}) => /* @__PURE__ */ C(Me, { children: /* @__PURE__ */ q(
|
|
2406
2406
|
"label",
|
|
2407
2407
|
{
|
|
2408
2408
|
className: B("rpf-input-radio", {
|
|
@@ -2410,16 +2410,16 @@ const ln = ({
|
|
|
2410
2410
|
"rpf-input--full-width": a
|
|
2411
2411
|
}),
|
|
2412
2412
|
children: [
|
|
2413
|
-
/* @__PURE__ */
|
|
2413
|
+
/* @__PURE__ */ C(
|
|
2414
2414
|
"input",
|
|
2415
2415
|
{
|
|
2416
2416
|
checked: !!i,
|
|
2417
2417
|
disabled: n,
|
|
2418
2418
|
id: e,
|
|
2419
2419
|
name: r,
|
|
2420
|
-
onChange:
|
|
2420
|
+
onChange: l,
|
|
2421
2421
|
type: "radio",
|
|
2422
|
-
value:
|
|
2422
|
+
value: o
|
|
2423
2423
|
}
|
|
2424
2424
|
),
|
|
2425
2425
|
t
|
|
@@ -2443,11 +2443,11 @@ const sn = ({
|
|
|
2443
2443
|
error: i = "",
|
|
2444
2444
|
hint: n = "",
|
|
2445
2445
|
placeholder: a = "",
|
|
2446
|
-
defaultValue:
|
|
2447
|
-
onClick:
|
|
2446
|
+
defaultValue: l = "",
|
|
2447
|
+
onClick: o = () => {
|
|
2448
2448
|
},
|
|
2449
2449
|
// eslint-disable-next-line no-unused-vars
|
|
2450
|
-
onChange:
|
|
2450
|
+
onChange: u = (c) => {
|
|
2451
2451
|
}
|
|
2452
2452
|
}) => /* @__PURE__ */ q("div", { className: "rpf-input-field", children: [
|
|
2453
2453
|
/* @__PURE__ */ q(
|
|
@@ -2459,12 +2459,12 @@ const sn = ({
|
|
|
2459
2459
|
}),
|
|
2460
2460
|
children: [
|
|
2461
2461
|
e,
|
|
2462
|
-
n && /* @__PURE__ */
|
|
2462
|
+
n && /* @__PURE__ */ C("small", { className: "rpf-label__hint", children: n })
|
|
2463
2463
|
]
|
|
2464
2464
|
}
|
|
2465
2465
|
),
|
|
2466
2466
|
/* @__PURE__ */ q("div", { className: "rpf-input-search-container", children: [
|
|
2467
|
-
/* @__PURE__ */
|
|
2467
|
+
/* @__PURE__ */ C(
|
|
2468
2468
|
"input",
|
|
2469
2469
|
{
|
|
2470
2470
|
className: B("rpf-input rpf-input-search", {
|
|
@@ -2476,12 +2476,12 @@ const sn = ({
|
|
|
2476
2476
|
name: "search",
|
|
2477
2477
|
type: "search",
|
|
2478
2478
|
"aria-label": "Search",
|
|
2479
|
-
defaultValue:
|
|
2479
|
+
defaultValue: l,
|
|
2480
2480
|
placeholder: a,
|
|
2481
|
-
onChange:
|
|
2481
|
+
onChange: u
|
|
2482
2482
|
}
|
|
2483
2483
|
),
|
|
2484
|
-
/* @__PURE__ */
|
|
2484
|
+
/* @__PURE__ */ C(
|
|
2485
2485
|
"button",
|
|
2486
2486
|
{
|
|
2487
2487
|
type: "button",
|
|
@@ -2490,13 +2490,13 @@ const sn = ({
|
|
|
2490
2490
|
"rpf-button--error": i
|
|
2491
2491
|
}),
|
|
2492
2492
|
disabled: r,
|
|
2493
|
-
onClick:
|
|
2494
|
-
children: /* @__PURE__ */
|
|
2493
|
+
onClick: o,
|
|
2494
|
+
children: /* @__PURE__ */ C("span", { className: "rpf-button__icon material-symbols-sharp", children: "search" })
|
|
2495
2495
|
}
|
|
2496
2496
|
)
|
|
2497
2497
|
] }),
|
|
2498
2498
|
i && /* @__PURE__ */ q("div", { className: "rpf-error-message", children: [
|
|
2499
|
-
/* @__PURE__ */
|
|
2499
|
+
/* @__PURE__ */ C("span", { className: "rpf-error-message__icon material-symbols-sharp", children: "info" }),
|
|
2500
2500
|
i
|
|
2501
2501
|
] })
|
|
2502
2502
|
] });
|
|
@@ -2518,36 +2518,36 @@ const un = ({
|
|
|
2518
2518
|
options: i,
|
|
2519
2519
|
disabled: n = !1,
|
|
2520
2520
|
error: a = "",
|
|
2521
|
-
fullWidth:
|
|
2522
|
-
hint:
|
|
2523
|
-
onChange:
|
|
2521
|
+
fullWidth: l = !1,
|
|
2522
|
+
hint: o = "",
|
|
2523
|
+
onChange: u = () => {
|
|
2524
2524
|
},
|
|
2525
|
-
placeholder:
|
|
2526
|
-
value:
|
|
2527
|
-
}) => /* @__PURE__ */
|
|
2525
|
+
placeholder: c = "",
|
|
2526
|
+
value: f = ""
|
|
2527
|
+
}) => /* @__PURE__ */ C(
|
|
2528
2528
|
Ee,
|
|
2529
2529
|
{
|
|
2530
2530
|
id: e,
|
|
2531
2531
|
disabled: n,
|
|
2532
2532
|
error: a,
|
|
2533
|
-
hint:
|
|
2533
|
+
hint: o,
|
|
2534
2534
|
label: t,
|
|
2535
2535
|
children: /* @__PURE__ */ q(
|
|
2536
2536
|
"select",
|
|
2537
2537
|
{
|
|
2538
2538
|
className: B("rpf-input rpf-input-select", {
|
|
2539
2539
|
"rpf-input--error": a,
|
|
2540
|
-
"rpf-input--full-width":
|
|
2540
|
+
"rpf-input--full-width": l
|
|
2541
2541
|
}),
|
|
2542
2542
|
disabled: n,
|
|
2543
2543
|
id: e,
|
|
2544
2544
|
name: r,
|
|
2545
|
-
onChange:
|
|
2545
|
+
onChange: u,
|
|
2546
2546
|
type: "text",
|
|
2547
|
-
value:
|
|
2547
|
+
value: f,
|
|
2548
2548
|
children: [
|
|
2549
|
-
!
|
|
2550
|
-
i.map((
|
|
2549
|
+
!f && !!c && /* @__PURE__ */ C("option", { value: "", disabled: !0, children: c }),
|
|
2550
|
+
i.map((h) => /* @__PURE__ */ C("option", { value: h.key, children: h.value }, h.key))
|
|
2551
2551
|
]
|
|
2552
2552
|
}
|
|
2553
2553
|
)
|
|
@@ -2566,7 +2566,7 @@ un.propTypes = {
|
|
|
2566
2566
|
placeholder: s.string,
|
|
2567
2567
|
value: s.string
|
|
2568
2568
|
};
|
|
2569
|
-
const cn = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */
|
|
2569
|
+
const cn = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ C(
|
|
2570
2570
|
"div",
|
|
2571
2571
|
{
|
|
2572
2572
|
"data-testid": "table-container",
|
|
@@ -2578,8 +2578,8 @@ const cn = ({ headerRow: e, bodyRows: t, fullWidth: r }) => /* @__PURE__ */ R(
|
|
|
2578
2578
|
"rpf-table__table--full-width": r
|
|
2579
2579
|
}),
|
|
2580
2580
|
children: [
|
|
2581
|
-
/* @__PURE__ */
|
|
2582
|
-
/* @__PURE__ */
|
|
2581
|
+
/* @__PURE__ */ C("thead", { children: /* @__PURE__ */ C("tr", { className: "rpf-table-row", children: e }) }),
|
|
2582
|
+
/* @__PURE__ */ C("tbody", { children: t.map((i, n) => /* @__PURE__ */ C("tr", { className: "rpf-table-row", children: i }, n)) })
|
|
2583
2583
|
]
|
|
2584
2584
|
}
|
|
2585
2585
|
)
|
|
@@ -2590,19 +2590,19 @@ cn.propTypes = {
|
|
|
2590
2590
|
bodyRows: s.arrayOf(s.node).isRequired,
|
|
2591
2591
|
fullWidth: s.bool
|
|
2592
2592
|
};
|
|
2593
|
-
const fn = ({ children: e }) => /* @__PURE__ */
|
|
2593
|
+
const fn = ({ children: e }) => /* @__PURE__ */ C("td", { className: "rpf-table-cell rpf-table-cell--body", children: /* @__PURE__ */ C("div", { className: "rpf-table-cell__content", children: e }) });
|
|
2594
2594
|
fn.propTypes = {
|
|
2595
2595
|
children: s.node
|
|
2596
2596
|
};
|
|
2597
2597
|
const dn = ({ sortDirection: e, children: t }) => (e !== void 0 && (t = /* @__PURE__ */ q("div", { className: "rpf-table-cell__sort-header", children: [
|
|
2598
2598
|
t,
|
|
2599
|
-
/* @__PURE__ */
|
|
2600
|
-
] })), /* @__PURE__ */
|
|
2599
|
+
/* @__PURE__ */ C("span", { className: "material-symbols-sharp", children: e === "up" ? "arrow_drop_up" : "arrow_drop_down" })
|
|
2600
|
+
] })), /* @__PURE__ */ C("th", { className: `rpf-table-cell ${e !== void 0 ? "rpf-table-cell--sortable-header" : "rpf-table-cell--header"}`, children: /* @__PURE__ */ C("div", { className: "rpf-table-cell__content", children: t }) }));
|
|
2601
2601
|
dn.propTypes = {
|
|
2602
2602
|
sortDirection: s.oneOf(["up", "down"]),
|
|
2603
2603
|
children: s.node
|
|
2604
2604
|
};
|
|
2605
|
-
const pn = ({ text: e, variant: t, secondary: r, icon: i, iconPosition: n }) => (i && (i = /* @__PURE__ */
|
|
2605
|
+
const pn = ({ text: e, variant: t, secondary: r, icon: i, iconPosition: n }) => (i && (i = /* @__PURE__ */ C("span", { className: "rpf-tag__icon material-symbols-sharp", children: i })), i && !n && (n = "left"), t && t !== "default" ? t = `rpf-tag--${t}` : t = null, /* @__PURE__ */ q(
|
|
2606
2606
|
"span",
|
|
2607
2607
|
{
|
|
2608
2608
|
className: B("rpf-tag", t, {
|
|
@@ -2635,32 +2635,32 @@ const hn = ({
|
|
|
2635
2635
|
value: i,
|
|
2636
2636
|
disabled: n = !1,
|
|
2637
2637
|
readOnly: a = !1,
|
|
2638
|
-
error:
|
|
2639
|
-
fullWidth:
|
|
2640
|
-
hint:
|
|
2641
|
-
onChange:
|
|
2638
|
+
error: l = "",
|
|
2639
|
+
fullWidth: o = !1,
|
|
2640
|
+
hint: u = "",
|
|
2641
|
+
onChange: c = () => {
|
|
2642
2642
|
}
|
|
2643
|
-
}) => /* @__PURE__ */
|
|
2643
|
+
}) => /* @__PURE__ */ C(
|
|
2644
2644
|
Ee,
|
|
2645
2645
|
{
|
|
2646
2646
|
id: e,
|
|
2647
2647
|
disabled: n,
|
|
2648
|
-
error:
|
|
2649
|
-
hint:
|
|
2648
|
+
error: l,
|
|
2649
|
+
hint: u,
|
|
2650
2650
|
label: t,
|
|
2651
|
-
children: /* @__PURE__ */
|
|
2651
|
+
children: /* @__PURE__ */ C(
|
|
2652
2652
|
"textarea",
|
|
2653
2653
|
{
|
|
2654
2654
|
className: B("rpf-input rpf-input-textarea", {
|
|
2655
|
-
"rpf-input--error":
|
|
2656
|
-
"rpf-input--full-width":
|
|
2655
|
+
"rpf-input--error": l,
|
|
2656
|
+
"rpf-input--full-width": o,
|
|
2657
2657
|
"rpf-input--disabled": n
|
|
2658
2658
|
}),
|
|
2659
2659
|
disabled: n,
|
|
2660
2660
|
readOnly: a,
|
|
2661
2661
|
id: e,
|
|
2662
2662
|
name: r,
|
|
2663
|
-
onChange:
|
|
2663
|
+
onChange: c,
|
|
2664
2664
|
type: "text",
|
|
2665
2665
|
value: i
|
|
2666
2666
|
}
|
|
@@ -2686,29 +2686,29 @@ const mn = ({
|
|
|
2686
2686
|
value: i,
|
|
2687
2687
|
disabled: n = !1,
|
|
2688
2688
|
error: a = "",
|
|
2689
|
-
fullWidth:
|
|
2690
|
-
hint:
|
|
2691
|
-
onChange:
|
|
2689
|
+
fullWidth: l = !1,
|
|
2690
|
+
hint: o = "",
|
|
2691
|
+
onChange: u = () => {
|
|
2692
2692
|
}
|
|
2693
|
-
}) => /* @__PURE__ */
|
|
2693
|
+
}) => /* @__PURE__ */ C(
|
|
2694
2694
|
Ee,
|
|
2695
2695
|
{
|
|
2696
2696
|
id: e,
|
|
2697
2697
|
disabled: n,
|
|
2698
2698
|
error: a,
|
|
2699
|
-
hint:
|
|
2699
|
+
hint: o,
|
|
2700
2700
|
label: t,
|
|
2701
|
-
children: /* @__PURE__ */
|
|
2701
|
+
children: /* @__PURE__ */ C(
|
|
2702
2702
|
"input",
|
|
2703
2703
|
{
|
|
2704
2704
|
className: B("rpf-input rpf-input-text", {
|
|
2705
2705
|
"rpf-input--error": a,
|
|
2706
|
-
"rpf-input--full-width":
|
|
2706
|
+
"rpf-input--full-width": l
|
|
2707
2707
|
}),
|
|
2708
2708
|
disabled: n,
|
|
2709
2709
|
id: e,
|
|
2710
2710
|
name: r,
|
|
2711
|
-
onChange:
|
|
2711
|
+
onChange: u,
|
|
2712
2712
|
type: "text",
|
|
2713
2713
|
value: i
|
|
2714
2714
|
}
|
|
@@ -2727,7 +2727,7 @@ mn.propTypes = {
|
|
|
2727
2727
|
value: s.string.isRequired
|
|
2728
2728
|
};
|
|
2729
2729
|
export {
|
|
2730
|
-
|
|
2730
|
+
Mt as Accordion,
|
|
2731
2731
|
tn as Alert,
|
|
2732
2732
|
Le as Button,
|
|
2733
2733
|
rn as CheckboxInput,
|