@sudobility/marketing-components 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.esm.js +1108 -1000
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as i from "react";
|
|
2
2
|
import fe from "react";
|
|
3
|
-
import { cn as
|
|
4
|
-
import { textVariants as
|
|
5
|
-
var
|
|
3
|
+
import { cn as E } from "@sudobility/components";
|
|
4
|
+
import { textVariants as H, ui as nt } from "@sudobility/design";
|
|
5
|
+
var X = { exports: {} }, B = {};
|
|
6
6
|
var Ne;
|
|
7
|
-
function
|
|
8
|
-
if (Ne) return
|
|
7
|
+
function at() {
|
|
8
|
+
if (Ne) return B;
|
|
9
9
|
Ne = 1;
|
|
10
|
-
var e = Symbol.for("react.transitional.element"),
|
|
11
|
-
function
|
|
10
|
+
var e = /* @__PURE__ */ Symbol.for("react.transitional.element"), t = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
11
|
+
function r(n, o, a) {
|
|
12
12
|
var l = null;
|
|
13
|
-
if (
|
|
14
|
-
|
|
15
|
-
for (var u in
|
|
16
|
-
u !== "key" && (
|
|
17
|
-
} else
|
|
18
|
-
return
|
|
13
|
+
if (a !== void 0 && (l = "" + a), o.key !== void 0 && (l = "" + o.key), "key" in o) {
|
|
14
|
+
a = {};
|
|
15
|
+
for (var u in o)
|
|
16
|
+
u !== "key" && (a[u] = o[u]);
|
|
17
|
+
} else a = o;
|
|
18
|
+
return o = a.ref, {
|
|
19
19
|
$$typeof: e,
|
|
20
20
|
type: n,
|
|
21
21
|
key: l,
|
|
22
|
-
ref:
|
|
23
|
-
props:
|
|
22
|
+
ref: o !== void 0 ? o : null,
|
|
23
|
+
props: a
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
return
|
|
26
|
+
return B.Fragment = t, B.jsx = r, B.jsxs = r, B;
|
|
27
27
|
}
|
|
28
|
-
var
|
|
28
|
+
var V = {};
|
|
29
29
|
var Pe;
|
|
30
|
-
function
|
|
30
|
+
function ot() {
|
|
31
31
|
return Pe || (Pe = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
32
|
-
function e(
|
|
33
|
-
if (
|
|
34
|
-
if (typeof
|
|
35
|
-
return
|
|
36
|
-
if (typeof
|
|
37
|
-
switch (
|
|
38
|
-
case
|
|
32
|
+
function e(c) {
|
|
33
|
+
if (c == null) return null;
|
|
34
|
+
if (typeof c == "function")
|
|
35
|
+
return c.$$typeof === et ? null : c.displayName || c.name || null;
|
|
36
|
+
if (typeof c == "string") return c;
|
|
37
|
+
switch (c) {
|
|
38
|
+
case y:
|
|
39
39
|
return "Fragment";
|
|
40
|
-
case
|
|
40
|
+
case g:
|
|
41
41
|
return "Profiler";
|
|
42
|
-
case
|
|
42
|
+
case R:
|
|
43
43
|
return "StrictMode";
|
|
44
|
-
case
|
|
44
|
+
case O:
|
|
45
45
|
return "Suspense";
|
|
46
|
-
case I:
|
|
47
|
-
return "SuspenseList";
|
|
48
46
|
case U:
|
|
47
|
+
return "SuspenseList";
|
|
48
|
+
case M:
|
|
49
49
|
return "Activity";
|
|
50
50
|
}
|
|
51
|
-
if (typeof
|
|
52
|
-
switch (typeof
|
|
51
|
+
if (typeof c == "object")
|
|
52
|
+
switch (typeof c.tag == "number" && console.error(
|
|
53
53
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
54
|
-
),
|
|
55
|
-
case
|
|
54
|
+
), c.$$typeof) {
|
|
55
|
+
case v:
|
|
56
56
|
return "Portal";
|
|
57
|
-
case
|
|
58
|
-
return
|
|
59
|
-
case
|
|
60
|
-
return (
|
|
61
|
-
case
|
|
62
|
-
var x =
|
|
63
|
-
return
|
|
64
|
-
case
|
|
65
|
-
return x =
|
|
57
|
+
case $:
|
|
58
|
+
return c.displayName || "Context";
|
|
59
|
+
case w:
|
|
60
|
+
return (c._context.displayName || "Context") + ".Consumer";
|
|
61
|
+
case _:
|
|
62
|
+
var x = c.render;
|
|
63
|
+
return c = c.displayName, c || (c = x.displayName || x.name || "", c = c !== "" ? "ForwardRef(" + c + ")" : "ForwardRef"), c;
|
|
64
|
+
case F:
|
|
65
|
+
return x = c.displayName || null, x !== null ? x : e(c.type) || "Memo";
|
|
66
66
|
case j:
|
|
67
|
-
x =
|
|
67
|
+
x = c._payload, c = c._init;
|
|
68
68
|
try {
|
|
69
|
-
return e(
|
|
69
|
+
return e(c(x));
|
|
70
70
|
} catch {
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return "" +
|
|
75
|
+
function t(c) {
|
|
76
|
+
return "" + c;
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function r(c) {
|
|
79
79
|
try {
|
|
80
|
-
|
|
80
|
+
t(c);
|
|
81
81
|
var x = !1;
|
|
82
82
|
} catch {
|
|
83
83
|
x = !0;
|
|
84
84
|
}
|
|
85
85
|
if (x) {
|
|
86
86
|
x = console;
|
|
87
|
-
var C = x.error, S = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
87
|
+
var C = x.error, S = typeof Symbol == "function" && Symbol.toStringTag && c[Symbol.toStringTag] || c.constructor.name || "Object";
|
|
88
88
|
return C.call(
|
|
89
89
|
x,
|
|
90
90
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
91
91
|
S
|
|
92
|
-
),
|
|
92
|
+
), t(c);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function n(
|
|
96
|
-
if (
|
|
97
|
-
if (typeof
|
|
95
|
+
function n(c) {
|
|
96
|
+
if (c === y) return "<>";
|
|
97
|
+
if (typeof c == "object" && c !== null && c.$$typeof === j)
|
|
98
98
|
return "<...>";
|
|
99
99
|
try {
|
|
100
|
-
var x = e(
|
|
100
|
+
var x = e(c);
|
|
101
101
|
return x ? "<" + x + ">" : "<...>";
|
|
102
102
|
} catch {
|
|
103
103
|
return "<...>";
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
|
-
function a() {
|
|
107
|
-
var s = oe.A;
|
|
108
|
-
return s === null ? null : s.getOwner();
|
|
109
|
-
}
|
|
110
106
|
function o() {
|
|
107
|
+
var c = ae.A;
|
|
108
|
+
return c === null ? null : c.getOwner();
|
|
109
|
+
}
|
|
110
|
+
function a() {
|
|
111
111
|
return Error("react-stack-top-frame");
|
|
112
112
|
}
|
|
113
|
-
function l(
|
|
114
|
-
if (we.call(
|
|
115
|
-
var x = Object.getOwnPropertyDescriptor(
|
|
113
|
+
function l(c) {
|
|
114
|
+
if (we.call(c, "key")) {
|
|
115
|
+
var x = Object.getOwnPropertyDescriptor(c, "key").get;
|
|
116
116
|
if (x && x.isReactWarning) return !1;
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return c.key !== void 0;
|
|
119
119
|
}
|
|
120
|
-
function u(
|
|
120
|
+
function u(c, x) {
|
|
121
121
|
function C() {
|
|
122
122
|
ke || (ke = !0, console.error(
|
|
123
123
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
124
124
|
x
|
|
125
125
|
));
|
|
126
126
|
}
|
|
127
|
-
C.isReactWarning = !0, Object.defineProperty(
|
|
127
|
+
C.isReactWarning = !0, Object.defineProperty(c, "key", {
|
|
128
128
|
get: C,
|
|
129
129
|
configurable: !0
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
|
-
function
|
|
133
|
-
var
|
|
134
|
-
return
|
|
132
|
+
function s() {
|
|
133
|
+
var c = e(this.type);
|
|
134
|
+
return Re[c] || (Re[c] = !0, console.error(
|
|
135
135
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
136
|
-
)),
|
|
136
|
+
)), c = this.props.ref, c !== void 0 ? c : null;
|
|
137
137
|
}
|
|
138
|
-
function
|
|
138
|
+
function m(c, x, C, S, q, le) {
|
|
139
139
|
var N = C.ref;
|
|
140
|
-
return
|
|
141
|
-
$$typeof:
|
|
142
|
-
type:
|
|
140
|
+
return c = {
|
|
141
|
+
$$typeof: k,
|
|
142
|
+
type: c,
|
|
143
143
|
key: x,
|
|
144
144
|
props: C,
|
|
145
145
|
_owner: S
|
|
146
|
-
}, (N !== void 0 ? N : null) !== null ? Object.defineProperty(
|
|
146
|
+
}, (N !== void 0 ? N : null) !== null ? Object.defineProperty(c, "ref", {
|
|
147
147
|
enumerable: !1,
|
|
148
|
-
get:
|
|
149
|
-
}) : Object.defineProperty(
|
|
148
|
+
get: s
|
|
149
|
+
}) : Object.defineProperty(c, "ref", { enumerable: !1, value: null }), c._store = {}, Object.defineProperty(c._store, "validated", {
|
|
150
150
|
configurable: !1,
|
|
151
151
|
enumerable: !1,
|
|
152
152
|
writable: !0,
|
|
153
153
|
value: 0
|
|
154
|
-
}), Object.defineProperty(
|
|
154
|
+
}), Object.defineProperty(c, "_debugInfo", {
|
|
155
155
|
configurable: !1,
|
|
156
156
|
enumerable: !1,
|
|
157
157
|
writable: !0,
|
|
158
158
|
value: null
|
|
159
|
-
}), Object.defineProperty(
|
|
159
|
+
}), Object.defineProperty(c, "_debugStack", {
|
|
160
160
|
configurable: !1,
|
|
161
161
|
enumerable: !1,
|
|
162
162
|
writable: !0,
|
|
163
|
-
value:
|
|
164
|
-
}), Object.defineProperty(
|
|
163
|
+
value: q
|
|
164
|
+
}), Object.defineProperty(c, "_debugTask", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
writable: !0,
|
|
168
|
-
value:
|
|
169
|
-
}), Object.freeze && (Object.freeze(
|
|
168
|
+
value: le
|
|
169
|
+
}), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
|
|
170
170
|
}
|
|
171
|
-
function
|
|
171
|
+
function f(c, x, C, S, q, le) {
|
|
172
172
|
var N = x.children;
|
|
173
173
|
if (N !== void 0)
|
|
174
174
|
if (S)
|
|
175
|
-
if (
|
|
175
|
+
if (tt(N)) {
|
|
176
176
|
for (S = 0; S < N.length; S++)
|
|
177
177
|
d(N[S]);
|
|
178
178
|
Object.freeze && Object.freeze(N);
|
|
@@ -182,9 +182,9 @@ function et() {
|
|
|
182
182
|
);
|
|
183
183
|
else d(N);
|
|
184
184
|
if (we.call(x, "key")) {
|
|
185
|
-
N = e(
|
|
186
|
-
var z = Object.keys(x).filter(function(
|
|
187
|
-
return
|
|
185
|
+
N = e(c);
|
|
186
|
+
var z = Object.keys(x).filter(function(rt) {
|
|
187
|
+
return rt !== "key";
|
|
188
188
|
});
|
|
189
189
|
S = 0 < z.length ? "{key: someKey, " + z.join(": ..., ") + ": ...}" : "{key: someKey}", Se[N + S] || (z = 0 < z.length ? "{" + z.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
190
190
|
`A props object containing a "key" prop is being spread into JSX:
|
|
@@ -199,117 +199,117 @@ React keys must be passed directly to JSX without using spread:
|
|
|
199
199
|
N
|
|
200
200
|
), Se[N + S] = !0);
|
|
201
201
|
}
|
|
202
|
-
if (N = null, C !== void 0 && (
|
|
202
|
+
if (N = null, C !== void 0 && (r(C), N = "" + C), l(x) && (r(x.key), N = "" + x.key), "key" in x) {
|
|
203
203
|
C = {};
|
|
204
|
-
for (var
|
|
205
|
-
|
|
204
|
+
for (var ie in x)
|
|
205
|
+
ie !== "key" && (C[ie] = x[ie]);
|
|
206
206
|
} else C = x;
|
|
207
207
|
return N && u(
|
|
208
208
|
C,
|
|
209
|
-
typeof
|
|
210
|
-
),
|
|
211
|
-
|
|
209
|
+
typeof c == "function" ? c.displayName || c.name || "Unknown" : c
|
|
210
|
+
), m(
|
|
211
|
+
c,
|
|
212
212
|
N,
|
|
213
213
|
C,
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
214
|
+
o(),
|
|
215
|
+
q,
|
|
216
|
+
le
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
|
-
function d(
|
|
220
|
-
p(
|
|
219
|
+
function d(c) {
|
|
220
|
+
p(c) ? c._store && (c._store.validated = 1) : typeof c == "object" && c !== null && c.$$typeof === j && (c._payload.status === "fulfilled" ? p(c._payload.value) && c._payload.value._store && (c._payload.value._store.validated = 1) : c._store && (c._store.validated = 1));
|
|
221
221
|
}
|
|
222
|
-
function p(
|
|
223
|
-
return typeof
|
|
222
|
+
function p(c) {
|
|
223
|
+
return typeof c == "object" && c !== null && c.$$typeof === k;
|
|
224
224
|
}
|
|
225
|
-
var
|
|
225
|
+
var b = fe, k = /* @__PURE__ */ Symbol.for("react.transitional.element"), v = /* @__PURE__ */ Symbol.for("react.portal"), y = /* @__PURE__ */ Symbol.for("react.fragment"), R = /* @__PURE__ */ Symbol.for("react.strict_mode"), g = /* @__PURE__ */ Symbol.for("react.profiler"), w = /* @__PURE__ */ Symbol.for("react.consumer"), $ = /* @__PURE__ */ Symbol.for("react.context"), _ = /* @__PURE__ */ Symbol.for("react.forward_ref"), O = /* @__PURE__ */ Symbol.for("react.suspense"), U = /* @__PURE__ */ Symbol.for("react.suspense_list"), F = /* @__PURE__ */ Symbol.for("react.memo"), j = /* @__PURE__ */ Symbol.for("react.lazy"), M = /* @__PURE__ */ Symbol.for("react.activity"), et = /* @__PURE__ */ Symbol.for("react.client.reference"), ae = b.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, we = Object.prototype.hasOwnProperty, tt = Array.isArray, oe = console.createTask ? console.createTask : function() {
|
|
226
226
|
return null;
|
|
227
227
|
};
|
|
228
|
-
|
|
229
|
-
react_stack_bottom_frame: function(
|
|
230
|
-
return
|
|
228
|
+
b = {
|
|
229
|
+
react_stack_bottom_frame: function(c) {
|
|
230
|
+
return c();
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
|
-
var ke,
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
)(), Ce =
|
|
237
|
-
|
|
238
|
-
var S = 1e4 >
|
|
239
|
-
return
|
|
240
|
-
|
|
233
|
+
var ke, Re = {}, Ee = b.react_stack_bottom_frame.bind(
|
|
234
|
+
b,
|
|
235
|
+
a
|
|
236
|
+
)(), Ce = oe(n(a)), Se = {};
|
|
237
|
+
V.Fragment = y, V.jsx = function(c, x, C) {
|
|
238
|
+
var S = 1e4 > ae.recentlyCreatedOwnerStacks++;
|
|
239
|
+
return f(
|
|
240
|
+
c,
|
|
241
241
|
x,
|
|
242
242
|
C,
|
|
243
243
|
!1,
|
|
244
|
-
S ? Error("react-stack-top-frame") :
|
|
245
|
-
S ?
|
|
244
|
+
S ? Error("react-stack-top-frame") : Ee,
|
|
245
|
+
S ? oe(n(c)) : Ce
|
|
246
246
|
);
|
|
247
|
-
},
|
|
248
|
-
var S = 1e4 >
|
|
249
|
-
return
|
|
250
|
-
|
|
247
|
+
}, V.jsxs = function(c, x, C) {
|
|
248
|
+
var S = 1e4 > ae.recentlyCreatedOwnerStacks++;
|
|
249
|
+
return f(
|
|
250
|
+
c,
|
|
251
251
|
x,
|
|
252
252
|
C,
|
|
253
253
|
!0,
|
|
254
|
-
S ? Error("react-stack-top-frame") :
|
|
255
|
-
S ?
|
|
254
|
+
S ? Error("react-stack-top-frame") : Ee,
|
|
255
|
+
S ? oe(n(c)) : Ce
|
|
256
256
|
);
|
|
257
257
|
};
|
|
258
|
-
})()),
|
|
258
|
+
})()), V;
|
|
259
259
|
}
|
|
260
|
-
var
|
|
261
|
-
function
|
|
262
|
-
return
|
|
260
|
+
var _e;
|
|
261
|
+
function lt() {
|
|
262
|
+
return _e || (_e = 1, process.env.NODE_ENV === "production" ? X.exports = at() : X.exports = ot()), X.exports;
|
|
263
263
|
}
|
|
264
|
-
var h =
|
|
265
|
-
const
|
|
264
|
+
var h = lt();
|
|
265
|
+
const Fr = ({
|
|
266
266
|
className: e,
|
|
267
|
-
children:
|
|
268
|
-
disabled:
|
|
267
|
+
children: t,
|
|
268
|
+
disabled: r
|
|
269
269
|
}) => /* @__PURE__ */ h.jsx(
|
|
270
270
|
"div",
|
|
271
271
|
{
|
|
272
|
-
className:
|
|
272
|
+
className: E(
|
|
273
273
|
"p-4 rounded-lg border transition-colors",
|
|
274
274
|
"bg-white dark:bg-gray-900",
|
|
275
275
|
"border-gray-200 dark:border-gray-700",
|
|
276
276
|
"text-gray-900 dark:text-white",
|
|
277
|
-
|
|
277
|
+
r && "opacity-50 cursor-not-allowed",
|
|
278
278
|
e
|
|
279
279
|
),
|
|
280
280
|
role: "region",
|
|
281
281
|
"aria-label": "CrmDashboard",
|
|
282
|
-
children:
|
|
282
|
+
children: t || "CrmDashboard Component"
|
|
283
283
|
}
|
|
284
|
-
),
|
|
284
|
+
), Ir = ({
|
|
285
285
|
className: e,
|
|
286
|
-
children:
|
|
287
|
-
disabled:
|
|
286
|
+
children: t,
|
|
287
|
+
disabled: r = !1,
|
|
288
288
|
onClick: n
|
|
289
289
|
}) => /* @__PURE__ */ h.jsx(
|
|
290
290
|
"div",
|
|
291
291
|
{
|
|
292
|
-
className:
|
|
292
|
+
className: E(
|
|
293
293
|
"p-4 rounded-lg border transition-colors",
|
|
294
294
|
"bg-white dark:bg-gray-900",
|
|
295
295
|
"border-gray-200 dark:border-gray-700",
|
|
296
296
|
"text-gray-900 dark:text-white",
|
|
297
|
-
|
|
297
|
+
r && "opacity-50 cursor-not-allowed",
|
|
298
298
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
299
299
|
e
|
|
300
300
|
),
|
|
301
|
-
onClick:
|
|
301
|
+
onClick: r ? void 0 : n,
|
|
302
302
|
role: "region",
|
|
303
303
|
"aria-label": "UctaUbanner",
|
|
304
|
-
children:
|
|
304
|
+
children: t || "UctaUbanner Component"
|
|
305
305
|
}
|
|
306
306
|
);
|
|
307
|
-
function
|
|
307
|
+
function it({
|
|
308
308
|
title: e,
|
|
309
|
-
titleId:
|
|
310
|
-
...
|
|
309
|
+
titleId: t,
|
|
310
|
+
...r
|
|
311
311
|
}, n) {
|
|
312
|
-
return /* @__PURE__ */
|
|
312
|
+
return /* @__PURE__ */ i.createElement("svg", Object.assign({
|
|
313
313
|
xmlns: "http://www.w3.org/2000/svg",
|
|
314
314
|
fill: "none",
|
|
315
315
|
viewBox: "0 0 24 24",
|
|
@@ -318,22 +318,22 @@ function rt({
|
|
|
318
318
|
"aria-hidden": "true",
|
|
319
319
|
"data-slot": "icon",
|
|
320
320
|
ref: n,
|
|
321
|
-
"aria-labelledby":
|
|
322
|
-
},
|
|
323
|
-
id:
|
|
324
|
-
}, e) : null, /* @__PURE__ */
|
|
321
|
+
"aria-labelledby": t
|
|
322
|
+
}, r), e ? /* @__PURE__ */ i.createElement("title", {
|
|
323
|
+
id: t
|
|
324
|
+
}, e) : null, /* @__PURE__ */ i.createElement("path", {
|
|
325
325
|
strokeLinecap: "round",
|
|
326
326
|
strokeLinejoin: "round",
|
|
327
327
|
d: "M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"
|
|
328
328
|
}));
|
|
329
329
|
}
|
|
330
|
-
const
|
|
330
|
+
const st = /* @__PURE__ */ i.forwardRef(it), Mr = ({
|
|
331
331
|
title: e,
|
|
332
|
-
description:
|
|
333
|
-
icon:
|
|
332
|
+
description: t,
|
|
333
|
+
icon: r = st,
|
|
334
334
|
iconVariant: n = "success",
|
|
335
|
-
size:
|
|
336
|
-
className:
|
|
335
|
+
size: o = "md",
|
|
336
|
+
className: a
|
|
337
337
|
}) => {
|
|
338
338
|
const l = {
|
|
339
339
|
primary: "bg-blue-400 text-blue-900",
|
|
@@ -341,122 +341,122 @@ const nt = /* @__PURE__ */ c.forwardRef(rt), Pr = ({
|
|
|
341
341
|
warning: "bg-yellow-400 text-yellow-900",
|
|
342
342
|
info: "bg-cyan-400 text-cyan-900",
|
|
343
343
|
gradient: "bg-gradient-to-br from-blue-400 to-purple-500 text-white"
|
|
344
|
-
},
|
|
344
|
+
}, s = {
|
|
345
345
|
sm: {
|
|
346
346
|
container: "gap-2",
|
|
347
347
|
icon: "p-1.5",
|
|
348
348
|
iconSize: "h-4 w-4",
|
|
349
|
-
title:
|
|
350
|
-
description:
|
|
349
|
+
title: H.body.md(),
|
|
350
|
+
description: H.body.sm()
|
|
351
351
|
},
|
|
352
352
|
md: {
|
|
353
353
|
container: "gap-3",
|
|
354
354
|
icon: "p-2",
|
|
355
355
|
iconSize: "h-5 w-5",
|
|
356
|
-
title:
|
|
357
|
-
description:
|
|
356
|
+
title: H.body.strong.md(),
|
|
357
|
+
description: H.body.md()
|
|
358
358
|
},
|
|
359
359
|
lg: {
|
|
360
360
|
container: "gap-4",
|
|
361
361
|
icon: "p-3",
|
|
362
362
|
iconSize: "h-6 w-6",
|
|
363
|
-
title:
|
|
364
|
-
description:
|
|
363
|
+
title: H.heading.h4(),
|
|
364
|
+
description: H.body.md()
|
|
365
365
|
}
|
|
366
|
-
}[
|
|
367
|
-
return /* @__PURE__ */ h.jsxs("div", { className:
|
|
366
|
+
}[o];
|
|
367
|
+
return /* @__PURE__ */ h.jsxs("div", { className: E("flex items-start", s.container, a), children: [
|
|
368
368
|
/* @__PURE__ */ h.jsx(
|
|
369
369
|
"div",
|
|
370
370
|
{
|
|
371
|
-
className:
|
|
371
|
+
className: E(
|
|
372
372
|
"rounded-full flex-shrink-0",
|
|
373
|
-
|
|
373
|
+
s.icon,
|
|
374
374
|
l[n]
|
|
375
375
|
),
|
|
376
|
-
children: /* @__PURE__ */ h.jsx(
|
|
376
|
+
children: /* @__PURE__ */ h.jsx(r, { className: s.iconSize })
|
|
377
377
|
}
|
|
378
378
|
),
|
|
379
379
|
/* @__PURE__ */ h.jsxs("div", { className: "flex-1 min-w-0", children: [
|
|
380
|
-
/* @__PURE__ */ h.jsx("h4", { className:
|
|
381
|
-
|
|
380
|
+
/* @__PURE__ */ h.jsx("h4", { className: s.title, children: e }),
|
|
381
|
+
t && /* @__PURE__ */ h.jsx(
|
|
382
382
|
"p",
|
|
383
383
|
{
|
|
384
|
-
className:
|
|
385
|
-
|
|
384
|
+
className: E(
|
|
385
|
+
s.description,
|
|
386
386
|
"mt-1 text-gray-600 dark:text-gray-300"
|
|
387
387
|
),
|
|
388
|
-
children:
|
|
388
|
+
children: t
|
|
389
389
|
}
|
|
390
390
|
)
|
|
391
391
|
] })
|
|
392
392
|
] });
|
|
393
|
-
},
|
|
393
|
+
}, Wr = ({
|
|
394
394
|
className: e,
|
|
395
|
-
children:
|
|
396
|
-
disabled:
|
|
395
|
+
children: t,
|
|
396
|
+
disabled: r = !1,
|
|
397
397
|
onClick: n
|
|
398
398
|
}) => /* @__PURE__ */ h.jsx(
|
|
399
399
|
"div",
|
|
400
400
|
{
|
|
401
|
-
className:
|
|
401
|
+
className: E(
|
|
402
402
|
"p-4 rounded-lg border transition-colors",
|
|
403
403
|
"bg-white dark:bg-gray-900",
|
|
404
404
|
"border-gray-200 dark:border-gray-700",
|
|
405
405
|
"text-gray-900 dark:text-white",
|
|
406
|
-
|
|
406
|
+
r && "opacity-50 cursor-not-allowed",
|
|
407
407
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
408
408
|
e
|
|
409
409
|
),
|
|
410
|
-
onClick:
|
|
410
|
+
onClick: r ? void 0 : n,
|
|
411
411
|
role: "region",
|
|
412
412
|
"aria-label": "UfeatureUspotlight",
|
|
413
|
-
children:
|
|
413
|
+
children: t || "UfeatureUspotlight Component"
|
|
414
414
|
}
|
|
415
|
-
),
|
|
415
|
+
), zr = ({
|
|
416
416
|
badgeIcon: e,
|
|
417
|
-
badgeText:
|
|
418
|
-
badgeColor:
|
|
417
|
+
badgeText: t,
|
|
418
|
+
badgeColor: r = "blue",
|
|
419
419
|
title: n,
|
|
420
|
-
subtitle:
|
|
421
|
-
description:
|
|
420
|
+
subtitle: o,
|
|
421
|
+
description: a,
|
|
422
422
|
primaryButton: l,
|
|
423
423
|
secondaryButton: u,
|
|
424
|
-
className:
|
|
425
|
-
children:
|
|
424
|
+
className: s,
|
|
425
|
+
children: m
|
|
426
426
|
}) => {
|
|
427
|
-
const
|
|
427
|
+
const f = "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", p = {
|
|
428
428
|
blue: "bg-blue-100 dark:bg-blue-900/30 border-blue-300 dark:border-blue-700 text-blue-800 dark:text-blue-200",
|
|
429
429
|
green: "bg-green-100 dark:bg-green-900/30 border-green-300 dark:border-green-700 text-green-800 dark:text-green-200",
|
|
430
430
|
purple: "bg-purple-100 dark:bg-purple-900/30 border-purple-300 dark:border-purple-700 text-purple-800 dark:text-purple-200",
|
|
431
431
|
orange: "bg-orange-100 dark:bg-orange-900/30 border-orange-300 dark:border-orange-700 text-orange-800 dark:text-orange-200",
|
|
432
432
|
pink: "bg-pink-100 dark:bg-pink-900/30 border-pink-300 dark:border-pink-700 text-pink-800 dark:text-pink-200",
|
|
433
433
|
gray: "bg-gray-100 dark:bg-gray-900/30 border-gray-300 dark:border-gray-700 text-gray-800 dark:text-gray-200"
|
|
434
|
-
}[
|
|
435
|
-
return /* @__PURE__ */ h.jsx("section", { className:
|
|
434
|
+
}[r];
|
|
435
|
+
return /* @__PURE__ */ h.jsx("section", { className: E("py-20", s), children: /* @__PURE__ */ h.jsxs("div", { className: `${f} text-center`, children: [
|
|
436
436
|
/* @__PURE__ */ h.jsxs(
|
|
437
437
|
"div",
|
|
438
438
|
{
|
|
439
|
-
className:
|
|
439
|
+
className: E(
|
|
440
440
|
"inline-flex items-center border px-6 py-3 rounded-full mb-6",
|
|
441
441
|
p
|
|
442
442
|
),
|
|
443
443
|
children: [
|
|
444
444
|
e && /* @__PURE__ */ h.jsx("span", { className: "mr-3", children: e }),
|
|
445
|
-
/* @__PURE__ */ h.jsx("span", { className: "font-semibold", children:
|
|
445
|
+
/* @__PURE__ */ h.jsx("span", { className: "font-semibold", children: t })
|
|
446
446
|
]
|
|
447
447
|
}
|
|
448
448
|
),
|
|
449
449
|
/* @__PURE__ */ h.jsxs("h1", { className: "text-4xl md:text-6xl font-bold text-gray-900 dark:text-gray-100 mb-6", children: [
|
|
450
450
|
typeof n == "string" ? /* @__PURE__ */ h.jsx("span", { dangerouslySetInnerHTML: { __html: n } }) : n,
|
|
451
|
-
|
|
451
|
+
o && /* @__PURE__ */ h.jsx("span", { className: "text-blue-600 dark:text-blue-400 block", children: o })
|
|
452
452
|
] }),
|
|
453
|
-
/* @__PURE__ */ h.jsx("p", { className: "text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed", children:
|
|
453
|
+
/* @__PURE__ */ h.jsx("p", { className: "text-xl text-gray-600 dark:text-gray-300 mb-8 max-w-4xl mx-auto leading-relaxed", children: a }),
|
|
454
454
|
(l || u) && /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col sm:flex-row gap-4 justify-center mb-8", children: [
|
|
455
455
|
l && (l.href ? /* @__PURE__ */ h.jsx(
|
|
456
456
|
"a",
|
|
457
457
|
{
|
|
458
458
|
href: l.href,
|
|
459
|
-
className:
|
|
459
|
+
className: E(
|
|
460
460
|
"px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors inline-block",
|
|
461
461
|
l.className
|
|
462
462
|
),
|
|
@@ -466,7 +466,7 @@ const nt = /* @__PURE__ */ c.forwardRef(rt), Pr = ({
|
|
|
466
466
|
"button",
|
|
467
467
|
{
|
|
468
468
|
onClick: l.onClick,
|
|
469
|
-
className:
|
|
469
|
+
className: E(
|
|
470
470
|
"px-8 py-3 rounded-md bg-blue-600 text-white hover:bg-blue-700 transition-colors",
|
|
471
471
|
l.className
|
|
472
472
|
),
|
|
@@ -477,7 +477,7 @@ const nt = /* @__PURE__ */ c.forwardRef(rt), Pr = ({
|
|
|
477
477
|
"a",
|
|
478
478
|
{
|
|
479
479
|
href: u.href,
|
|
480
|
-
className:
|
|
480
|
+
className: E(
|
|
481
481
|
"px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors inline-block",
|
|
482
482
|
u.className
|
|
483
483
|
),
|
|
@@ -487,7 +487,7 @@ const nt = /* @__PURE__ */ c.forwardRef(rt), Pr = ({
|
|
|
487
487
|
"button",
|
|
488
488
|
{
|
|
489
489
|
onClick: u.onClick,
|
|
490
|
-
className:
|
|
490
|
+
className: E(
|
|
491
491
|
"px-8 py-3 rounded-md border-2 border-gray-300 dark:border-gray-600 hover:border-gray-400 transition-colors",
|
|
492
492
|
u.className
|
|
493
493
|
),
|
|
@@ -495,507 +495,564 @@ const nt = /* @__PURE__ */ c.forwardRef(rt), Pr = ({
|
|
|
495
495
|
}
|
|
496
496
|
))
|
|
497
497
|
] }),
|
|
498
|
-
|
|
498
|
+
m
|
|
499
499
|
] }) });
|
|
500
500
|
};
|
|
501
|
-
function P(e,
|
|
501
|
+
function P(e, t) {
|
|
502
502
|
if (e === !1 || e === null || typeof e > "u")
|
|
503
|
-
throw new Error(
|
|
503
|
+
throw new Error(t);
|
|
504
504
|
}
|
|
505
|
-
function
|
|
505
|
+
function L(e, t) {
|
|
506
506
|
if (!e) {
|
|
507
|
-
typeof console < "u" && console.warn(
|
|
507
|
+
typeof console < "u" && console.warn(t);
|
|
508
508
|
try {
|
|
509
|
-
throw new Error(
|
|
509
|
+
throw new Error(t);
|
|
510
510
|
} catch {
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
513
|
}
|
|
514
514
|
function de({
|
|
515
515
|
pathname: e = "/",
|
|
516
|
-
search:
|
|
517
|
-
hash:
|
|
516
|
+
search: t = "",
|
|
517
|
+
hash: r = ""
|
|
518
518
|
}) {
|
|
519
|
-
return
|
|
519
|
+
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
|
|
520
520
|
}
|
|
521
521
|
function me(e) {
|
|
522
|
-
let
|
|
522
|
+
let t = {};
|
|
523
523
|
if (e) {
|
|
524
|
-
let
|
|
525
|
-
|
|
524
|
+
let r = e.indexOf("#");
|
|
525
|
+
r >= 0 && (t.hash = e.substring(r), e = e.substring(0, r));
|
|
526
526
|
let n = e.indexOf("?");
|
|
527
|
-
n >= 0 && (
|
|
527
|
+
n >= 0 && (t.search = e.substring(n), e = e.substring(0, n)), e && (t.pathname = e);
|
|
528
528
|
}
|
|
529
|
-
return
|
|
529
|
+
return t;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
532
|
-
return
|
|
531
|
+
function Oe(e, t, r = "/") {
|
|
532
|
+
return ut(e, t, r, !1);
|
|
533
533
|
}
|
|
534
|
-
function
|
|
535
|
-
let
|
|
536
|
-
if (
|
|
534
|
+
function ut(e, t, r, n) {
|
|
535
|
+
let o = typeof t == "string" ? me(t) : t, a = I(o.pathname || "/", r);
|
|
536
|
+
if (a == null)
|
|
537
537
|
return null;
|
|
538
|
-
let l =
|
|
539
|
-
|
|
538
|
+
let l = Ue(e);
|
|
539
|
+
ct(l);
|
|
540
540
|
let u = null;
|
|
541
|
-
for (let
|
|
542
|
-
let
|
|
543
|
-
u =
|
|
544
|
-
l[
|
|
545
|
-
|
|
541
|
+
for (let s = 0; u == null && s < l.length; ++s) {
|
|
542
|
+
let m = wt(a);
|
|
543
|
+
u = yt(
|
|
544
|
+
l[s],
|
|
545
|
+
m,
|
|
546
546
|
n
|
|
547
547
|
);
|
|
548
548
|
}
|
|
549
549
|
return u;
|
|
550
550
|
}
|
|
551
|
-
function
|
|
552
|
-
let
|
|
553
|
-
let
|
|
554
|
-
relativePath:
|
|
551
|
+
function Ue(e, t = [], r = [], n = "", o = !1) {
|
|
552
|
+
let a = (l, u, s = o, m) => {
|
|
553
|
+
let f = {
|
|
554
|
+
relativePath: m === void 0 ? l.path || "" : m,
|
|
555
555
|
caseSensitive: l.caseSensitive === !0,
|
|
556
556
|
childrenIndex: u,
|
|
557
557
|
route: l
|
|
558
558
|
};
|
|
559
|
-
if (
|
|
560
|
-
if (!
|
|
559
|
+
if (f.relativePath.startsWith("/")) {
|
|
560
|
+
if (!f.relativePath.startsWith(n) && s)
|
|
561
561
|
return;
|
|
562
562
|
P(
|
|
563
|
-
|
|
564
|
-
`Absolute route path "${
|
|
565
|
-
),
|
|
563
|
+
f.relativePath.startsWith(n),
|
|
564
|
+
`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
565
|
+
), f.relativePath = f.relativePath.slice(n.length);
|
|
566
566
|
}
|
|
567
|
-
let d =
|
|
567
|
+
let d = A([n, f.relativePath]), p = r.concat(f);
|
|
568
568
|
l.children && l.children.length > 0 && (P(
|
|
569
569
|
// Our types know better, but runtime JS may not!
|
|
570
570
|
// @ts-expect-error
|
|
571
571
|
l.index !== !0,
|
|
572
572
|
`Index routes must not have child routes. Please remove all child routes from route path "${d}".`
|
|
573
|
-
),
|
|
573
|
+
), Ue(
|
|
574
574
|
l.children,
|
|
575
|
-
|
|
575
|
+
t,
|
|
576
576
|
p,
|
|
577
577
|
d,
|
|
578
|
-
|
|
579
|
-
)), !(l.path == null && !l.index) &&
|
|
578
|
+
s
|
|
579
|
+
)), !(l.path == null && !l.index) && t.push({
|
|
580
580
|
path: d,
|
|
581
|
-
score:
|
|
581
|
+
score: bt(d, l.index),
|
|
582
582
|
routesMeta: p
|
|
583
583
|
});
|
|
584
584
|
};
|
|
585
585
|
return e.forEach((l, u) => {
|
|
586
586
|
if (l.path === "" || !l.path?.includes("?"))
|
|
587
|
-
|
|
587
|
+
a(l, u);
|
|
588
588
|
else
|
|
589
|
-
for (let
|
|
590
|
-
|
|
591
|
-
}),
|
|
592
|
-
}
|
|
593
|
-
function
|
|
594
|
-
let
|
|
595
|
-
if (
|
|
596
|
-
let [
|
|
589
|
+
for (let s of Ae(l.path))
|
|
590
|
+
a(l, u, !0, s);
|
|
591
|
+
}), t;
|
|
592
|
+
}
|
|
593
|
+
function Ae(e) {
|
|
594
|
+
let t = e.split("/");
|
|
595
|
+
if (t.length === 0) return [];
|
|
596
|
+
let [r, ...n] = t, o = r.endsWith("?"), a = r.replace(/\?$/, "");
|
|
597
597
|
if (n.length === 0)
|
|
598
|
-
return
|
|
599
|
-
let l =
|
|
598
|
+
return o ? [a, ""] : [a];
|
|
599
|
+
let l = Ae(n.join("/")), u = [];
|
|
600
600
|
return u.push(
|
|
601
601
|
...l.map(
|
|
602
|
-
(
|
|
602
|
+
(s) => s === "" ? a : [a, s].join("/")
|
|
603
603
|
)
|
|
604
|
-
),
|
|
605
|
-
(
|
|
604
|
+
), o && u.push(...l), u.map(
|
|
605
|
+
(s) => e.startsWith("/") && s === "" ? "/" : s
|
|
606
606
|
);
|
|
607
607
|
}
|
|
608
|
-
function
|
|
608
|
+
function ct(e) {
|
|
609
609
|
e.sort(
|
|
610
|
-
(
|
|
611
|
-
|
|
612
|
-
|
|
610
|
+
(t, r) => t.score !== r.score ? r.score - t.score : xt(
|
|
611
|
+
t.routesMeta.map((n) => n.childrenIndex),
|
|
612
|
+
r.routesMeta.map((n) => n.childrenIndex)
|
|
613
613
|
)
|
|
614
614
|
);
|
|
615
615
|
}
|
|
616
|
-
var
|
|
617
|
-
function
|
|
618
|
-
let
|
|
619
|
-
return
|
|
620
|
-
(
|
|
616
|
+
var dt = /^:[\w-]+$/, ft = 3, mt = 2, ht = 1, pt = 10, gt = -2, Te = (e) => e === "*";
|
|
617
|
+
function bt(e, t) {
|
|
618
|
+
let r = e.split("/"), n = r.length;
|
|
619
|
+
return r.some(Te) && (n += gt), t && (n += mt), r.filter((o) => !Te(o)).reduce(
|
|
620
|
+
(o, a) => o + (dt.test(a) ? ft : a === "" ? ht : pt),
|
|
621
621
|
n
|
|
622
622
|
);
|
|
623
623
|
}
|
|
624
|
-
function
|
|
625
|
-
return e.length ===
|
|
624
|
+
function xt(e, t) {
|
|
625
|
+
return e.length === t.length && e.slice(0, -1).every((n, o) => n === t[o]) ? (
|
|
626
626
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
627
627
|
// first. This allows people to have fine-grained control over the matching
|
|
628
628
|
// behavior by simply putting routes with identical paths in the order they
|
|
629
629
|
// want them tried.
|
|
630
|
-
e[e.length - 1] -
|
|
630
|
+
e[e.length - 1] - t[t.length - 1]
|
|
631
631
|
) : (
|
|
632
632
|
// Otherwise, it doesn't really make sense to rank non-siblings by index,
|
|
633
633
|
// so they sort equally.
|
|
634
634
|
0
|
|
635
635
|
);
|
|
636
636
|
}
|
|
637
|
-
function
|
|
638
|
-
let { routesMeta: n } = e,
|
|
637
|
+
function yt(e, t, r = !1) {
|
|
638
|
+
let { routesMeta: n } = e, o = {}, a = "/", l = [];
|
|
639
639
|
for (let u = 0; u < n.length; ++u) {
|
|
640
|
-
let
|
|
641
|
-
{ path:
|
|
642
|
-
|
|
643
|
-
), p =
|
|
644
|
-
if (!d &&
|
|
640
|
+
let s = n[u], m = u === n.length - 1, f = a === "/" ? t : t.slice(a.length) || "/", d = ee(
|
|
641
|
+
{ path: s.relativePath, caseSensitive: s.caseSensitive, end: m },
|
|
642
|
+
f
|
|
643
|
+
), p = s.route;
|
|
644
|
+
if (!d && m && r && !n[n.length - 1].route.index && (d = ee(
|
|
645
645
|
{
|
|
646
|
-
path:
|
|
647
|
-
caseSensitive:
|
|
646
|
+
path: s.relativePath,
|
|
647
|
+
caseSensitive: s.caseSensitive,
|
|
648
648
|
end: !1
|
|
649
649
|
},
|
|
650
|
-
|
|
650
|
+
f
|
|
651
651
|
)), !d)
|
|
652
652
|
return null;
|
|
653
|
-
Object.assign(
|
|
653
|
+
Object.assign(o, d.params), l.push({
|
|
654
654
|
// TODO: Can this as be avoided?
|
|
655
|
-
params:
|
|
656
|
-
pathname:
|
|
657
|
-
pathnameBase:
|
|
658
|
-
|
|
655
|
+
params: o,
|
|
656
|
+
pathname: A([a, d.pathname]),
|
|
657
|
+
pathnameBase: Ct(
|
|
658
|
+
A([a, d.pathnameBase])
|
|
659
659
|
),
|
|
660
660
|
route: p
|
|
661
|
-
}), d.pathnameBase !== "/" && (
|
|
661
|
+
}), d.pathnameBase !== "/" && (a = A([a, d.pathnameBase]));
|
|
662
662
|
}
|
|
663
663
|
return l;
|
|
664
664
|
}
|
|
665
|
-
function
|
|
665
|
+
function ee(e, t) {
|
|
666
666
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
667
|
-
let [
|
|
667
|
+
let [r, n] = vt(
|
|
668
668
|
e.path,
|
|
669
669
|
e.caseSensitive,
|
|
670
670
|
e.end
|
|
671
|
-
),
|
|
672
|
-
if (!
|
|
673
|
-
let
|
|
671
|
+
), o = t.match(r);
|
|
672
|
+
if (!o) return null;
|
|
673
|
+
let a = o[0], l = a.replace(/(.)\/+$/, "$1"), u = o.slice(1);
|
|
674
674
|
return {
|
|
675
675
|
params: n.reduce(
|
|
676
|
-
(
|
|
677
|
-
if (
|
|
678
|
-
let
|
|
679
|
-
l =
|
|
676
|
+
(m, { paramName: f, isOptional: d }, p) => {
|
|
677
|
+
if (f === "*") {
|
|
678
|
+
let k = u[p] || "";
|
|
679
|
+
l = a.slice(0, a.length - k.length).replace(/(.)\/+$/, "$1");
|
|
680
680
|
}
|
|
681
|
-
const
|
|
682
|
-
return d && !
|
|
681
|
+
const b = u[p];
|
|
682
|
+
return d && !b ? m[f] = void 0 : m[f] = (b || "").replace(/%2F/g, "/"), m;
|
|
683
683
|
},
|
|
684
684
|
{}
|
|
685
685
|
),
|
|
686
|
-
pathname:
|
|
686
|
+
pathname: a,
|
|
687
687
|
pathnameBase: l,
|
|
688
688
|
pattern: e
|
|
689
689
|
};
|
|
690
690
|
}
|
|
691
|
-
function
|
|
692
|
-
|
|
691
|
+
function vt(e, t = !1, r = !0) {
|
|
692
|
+
L(
|
|
693
693
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
694
694
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
695
695
|
);
|
|
696
|
-
let n = [],
|
|
696
|
+
let n = [], o = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
697
697
|
/\/:([\w-]+)(\?)?/g,
|
|
698
|
-
(l, u,
|
|
698
|
+
(l, u, s) => (n.push({ paramName: u, isOptional: s != null }), s ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
699
699
|
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
700
|
-
return e.endsWith("*") ? (n.push({ paramName: "*" }),
|
|
700
|
+
return e.endsWith("*") ? (n.push({ paramName: "*" }), o += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? o += "\\/*$" : e !== "" && e !== "/" && (o += "(?:(?=\\/|$))"), [new RegExp(o, t ? void 0 : "i"), n];
|
|
701
701
|
}
|
|
702
|
-
function
|
|
702
|
+
function wt(e) {
|
|
703
703
|
try {
|
|
704
|
-
return e.split("/").map((
|
|
705
|
-
} catch (
|
|
706
|
-
return
|
|
704
|
+
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
705
|
+
} catch (t) {
|
|
706
|
+
return L(
|
|
707
707
|
!1,
|
|
708
|
-
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${
|
|
708
|
+
`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}).`
|
|
709
709
|
), e;
|
|
710
710
|
}
|
|
711
711
|
}
|
|
712
|
-
function
|
|
713
|
-
if (
|
|
714
|
-
if (!e.toLowerCase().startsWith(
|
|
712
|
+
function I(e, t) {
|
|
713
|
+
if (t === "/") return e;
|
|
714
|
+
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
715
715
|
return null;
|
|
716
|
-
let
|
|
717
|
-
return n && n !== "/" ? null : e.slice(
|
|
716
|
+
let r = t.endsWith("/") ? t.length - 1 : t.length, n = e.charAt(r);
|
|
717
|
+
return n && n !== "/" ? null : e.slice(r) || "/";
|
|
718
718
|
}
|
|
719
|
-
var
|
|
720
|
-
function
|
|
719
|
+
var De = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, kt = (e) => De.test(e);
|
|
720
|
+
function Rt(e, t = "/") {
|
|
721
721
|
let {
|
|
722
|
-
pathname:
|
|
722
|
+
pathname: r,
|
|
723
723
|
search: n = "",
|
|
724
|
-
hash:
|
|
725
|
-
} = typeof e == "string" ? me(e) : e,
|
|
726
|
-
if (
|
|
727
|
-
if (
|
|
728
|
-
|
|
724
|
+
hash: o = ""
|
|
725
|
+
} = typeof e == "string" ? me(e) : e, a;
|
|
726
|
+
if (r)
|
|
727
|
+
if (kt(r))
|
|
728
|
+
a = r;
|
|
729
729
|
else {
|
|
730
|
-
if (
|
|
731
|
-
let l =
|
|
732
|
-
|
|
730
|
+
if (r.includes("//")) {
|
|
731
|
+
let l = r;
|
|
732
|
+
r = r.replace(/\/\/+/g, "/"), L(
|
|
733
733
|
!1,
|
|
734
|
-
`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${
|
|
734
|
+
`Pathnames cannot have embedded double slashes - normalizing ${l} -> ${r}`
|
|
735
735
|
);
|
|
736
736
|
}
|
|
737
|
-
|
|
737
|
+
r.startsWith("/") ? a = je(r.substring(1), "/") : a = je(r, t);
|
|
738
738
|
}
|
|
739
739
|
else
|
|
740
|
-
|
|
740
|
+
a = t;
|
|
741
741
|
return {
|
|
742
|
-
pathname:
|
|
743
|
-
search:
|
|
744
|
-
hash:
|
|
742
|
+
pathname: a,
|
|
743
|
+
search: St(n),
|
|
744
|
+
hash: Nt(o)
|
|
745
745
|
};
|
|
746
746
|
}
|
|
747
|
-
function
|
|
748
|
-
let
|
|
749
|
-
return e.split("/").forEach((
|
|
750
|
-
|
|
751
|
-
}),
|
|
747
|
+
function je(e, t) {
|
|
748
|
+
let r = t.replace(/\/+$/, "").split("/");
|
|
749
|
+
return e.split("/").forEach((o) => {
|
|
750
|
+
o === ".." ? r.length > 1 && r.pop() : o !== "." && r.push(o);
|
|
751
|
+
}), r.length > 1 ? r.join("/") : "/";
|
|
752
752
|
}
|
|
753
|
-
function
|
|
754
|
-
return `Cannot include a '${e}' character in a manually specified \`to.${
|
|
753
|
+
function se(e, t, r, n) {
|
|
754
|
+
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
|
|
755
755
|
n
|
|
756
|
-
)}]. Please separate it out to the \`to.${
|
|
756
|
+
)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
758
|
+
function Et(e) {
|
|
759
759
|
return e.filter(
|
|
760
|
-
(
|
|
760
|
+
(t, r) => r === 0 || t.route.path && t.route.path.length > 0
|
|
761
761
|
);
|
|
762
762
|
}
|
|
763
763
|
function Fe(e) {
|
|
764
|
-
let
|
|
765
|
-
return
|
|
766
|
-
(
|
|
764
|
+
let t = Et(e);
|
|
765
|
+
return t.map(
|
|
766
|
+
(r, n) => n === t.length - 1 ? r.pathname : r.pathnameBase
|
|
767
767
|
);
|
|
768
768
|
}
|
|
769
|
-
function Ie(e,
|
|
770
|
-
let
|
|
771
|
-
typeof e == "string" ?
|
|
772
|
-
!
|
|
773
|
-
|
|
769
|
+
function Ie(e, t, r, n = !1) {
|
|
770
|
+
let o;
|
|
771
|
+
typeof e == "string" ? o = me(e) : (o = { ...e }, P(
|
|
772
|
+
!o.pathname || !o.pathname.includes("?"),
|
|
773
|
+
se("?", "pathname", "search", o)
|
|
774
774
|
), P(
|
|
775
|
-
!
|
|
776
|
-
|
|
775
|
+
!o.pathname || !o.pathname.includes("#"),
|
|
776
|
+
se("#", "pathname", "hash", o)
|
|
777
777
|
), P(
|
|
778
|
-
!
|
|
779
|
-
|
|
778
|
+
!o.search || !o.search.includes("#"),
|
|
779
|
+
se("#", "search", "hash", o)
|
|
780
780
|
));
|
|
781
|
-
let
|
|
781
|
+
let a = e === "" || o.pathname === "", l = a ? "/" : o.pathname, u;
|
|
782
782
|
if (l == null)
|
|
783
|
-
u =
|
|
783
|
+
u = r;
|
|
784
784
|
else {
|
|
785
|
-
let d =
|
|
785
|
+
let d = t.length - 1;
|
|
786
786
|
if (!n && l.startsWith("..")) {
|
|
787
787
|
let p = l.split("/");
|
|
788
788
|
for (; p[0] === ".."; )
|
|
789
789
|
p.shift(), d -= 1;
|
|
790
|
-
|
|
790
|
+
o.pathname = p.join("/");
|
|
791
791
|
}
|
|
792
|
-
u = d >= 0 ?
|
|
792
|
+
u = d >= 0 ? t[d] : "/";
|
|
793
793
|
}
|
|
794
|
-
let
|
|
795
|
-
return !
|
|
794
|
+
let s = Rt(o, u), m = l && l !== "/" && l.endsWith("/"), f = (a || l === ".") && r.endsWith("/");
|
|
795
|
+
return !s.pathname.endsWith("/") && (m || f) && (s.pathname += "/"), s;
|
|
796
796
|
}
|
|
797
|
-
var
|
|
798
|
-
|
|
797
|
+
var A = (e) => e.join("/").replace(/\/\/+/g, "/"), Ct = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), St = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Nt = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Pt = class {
|
|
798
|
+
constructor(e, t, r, n = !1) {
|
|
799
|
+
this.status = e, this.statusText = t || "", this.internal = n, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
800
|
+
}
|
|
801
|
+
};
|
|
802
|
+
function _t(e) {
|
|
799
803
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
800
804
|
}
|
|
805
|
+
function Tt(e) {
|
|
806
|
+
return e.map((t) => t.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
|
|
807
|
+
}
|
|
808
|
+
var Me = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
809
|
+
function We(e, t) {
|
|
810
|
+
let r = e;
|
|
811
|
+
if (typeof r != "string" || !De.test(r))
|
|
812
|
+
return {
|
|
813
|
+
absoluteURL: void 0,
|
|
814
|
+
isExternal: !1,
|
|
815
|
+
to: r
|
|
816
|
+
};
|
|
817
|
+
let n = r, o = !1;
|
|
818
|
+
if (Me)
|
|
819
|
+
try {
|
|
820
|
+
let a = new URL(window.location.href), l = r.startsWith("//") ? new URL(a.protocol + r) : new URL(r), u = I(l.pathname, t);
|
|
821
|
+
l.origin === a.origin && u != null ? r = u + l.search + l.hash : o = !0;
|
|
822
|
+
} catch {
|
|
823
|
+
L(
|
|
824
|
+
!1,
|
|
825
|
+
`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
826
|
+
);
|
|
827
|
+
}
|
|
828
|
+
return {
|
|
829
|
+
absoluteURL: n,
|
|
830
|
+
isExternal: o,
|
|
831
|
+
to: r
|
|
832
|
+
};
|
|
833
|
+
}
|
|
801
834
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
802
|
-
var
|
|
835
|
+
var ze = [
|
|
803
836
|
"POST",
|
|
804
837
|
"PUT",
|
|
805
838
|
"PATCH",
|
|
806
839
|
"DELETE"
|
|
807
840
|
];
|
|
808
841
|
new Set(
|
|
809
|
-
|
|
842
|
+
ze
|
|
810
843
|
);
|
|
811
|
-
var
|
|
844
|
+
var jt = [
|
|
812
845
|
"GET",
|
|
813
|
-
...
|
|
846
|
+
...ze
|
|
814
847
|
];
|
|
815
|
-
new Set(
|
|
816
|
-
var
|
|
817
|
-
|
|
818
|
-
var
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
var Me = c.createContext({
|
|
848
|
+
new Set(jt);
|
|
849
|
+
var Y = i.createContext(null);
|
|
850
|
+
Y.displayName = "DataRouter";
|
|
851
|
+
var te = i.createContext(null);
|
|
852
|
+
te.displayName = "DataRouterState";
|
|
853
|
+
var Lt = i.createContext(!1), He = i.createContext({
|
|
822
854
|
isTransitioning: !1
|
|
823
855
|
});
|
|
824
|
-
|
|
825
|
-
var
|
|
856
|
+
He.displayName = "ViewTransition";
|
|
857
|
+
var $t = i.createContext(
|
|
826
858
|
/* @__PURE__ */ new Map()
|
|
827
859
|
);
|
|
828
|
-
|
|
829
|
-
var
|
|
830
|
-
|
|
831
|
-
var
|
|
860
|
+
$t.displayName = "Fetchers";
|
|
861
|
+
var Ot = i.createContext(null);
|
|
862
|
+
Ot.displayName = "Await";
|
|
863
|
+
var T = i.createContext(
|
|
832
864
|
null
|
|
833
865
|
);
|
|
834
|
-
|
|
835
|
-
var he =
|
|
866
|
+
T.displayName = "Navigation";
|
|
867
|
+
var he = i.createContext(
|
|
836
868
|
null
|
|
837
869
|
);
|
|
838
870
|
he.displayName = "Location";
|
|
839
|
-
var
|
|
871
|
+
var D = i.createContext({
|
|
840
872
|
outlet: null,
|
|
841
873
|
matches: [],
|
|
842
874
|
isDataRoute: !1
|
|
843
875
|
});
|
|
844
|
-
|
|
845
|
-
var pe =
|
|
876
|
+
D.displayName = "Route";
|
|
877
|
+
var pe = i.createContext(null);
|
|
846
878
|
pe.displayName = "RouteError";
|
|
847
|
-
|
|
879
|
+
var Ye = "REACT_ROUTER_ERROR", Ut = "REDIRECT", At = "ROUTE_ERROR_RESPONSE";
|
|
880
|
+
function Dt(e) {
|
|
881
|
+
if (e.startsWith(`${Ye}:${Ut}:{`))
|
|
882
|
+
try {
|
|
883
|
+
let t = JSON.parse(e.slice(28));
|
|
884
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean")
|
|
885
|
+
return t;
|
|
886
|
+
} catch {
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
function Ft(e) {
|
|
890
|
+
if (e.startsWith(
|
|
891
|
+
`${Ye}:${At}:{`
|
|
892
|
+
))
|
|
893
|
+
try {
|
|
894
|
+
let t = JSON.parse(e.slice(40));
|
|
895
|
+
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string")
|
|
896
|
+
return new Pt(
|
|
897
|
+
t.status,
|
|
898
|
+
t.statusText,
|
|
899
|
+
t.data
|
|
900
|
+
);
|
|
901
|
+
} catch {
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
function It(e, { relative: t } = {}) {
|
|
848
905
|
P(
|
|
849
|
-
|
|
906
|
+
re(),
|
|
850
907
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
851
908
|
// router loaded. We can help them understand how to avoid that.
|
|
852
909
|
"useHref() may be used only in the context of a <Router> component."
|
|
853
910
|
);
|
|
854
|
-
let { basename:
|
|
855
|
-
return
|
|
911
|
+
let { basename: r, navigator: n } = i.useContext(T), { hash: o, pathname: a, search: l } = G(e, { relative: t }), u = a;
|
|
912
|
+
return r !== "/" && (u = a === "/" ? r : A([r, a])), n.createHref({ pathname: u, search: l, hash: o });
|
|
856
913
|
}
|
|
857
|
-
function
|
|
858
|
-
return
|
|
914
|
+
function re() {
|
|
915
|
+
return i.useContext(he) != null;
|
|
859
916
|
}
|
|
860
|
-
function
|
|
917
|
+
function W() {
|
|
861
918
|
return P(
|
|
862
|
-
|
|
919
|
+
re(),
|
|
863
920
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
864
921
|
// router loaded. We can help them understand how to avoid that.
|
|
865
922
|
"useLocation() may be used only in the context of a <Router> component."
|
|
866
|
-
),
|
|
923
|
+
), i.useContext(he).location;
|
|
867
924
|
}
|
|
868
|
-
var
|
|
869
|
-
function
|
|
870
|
-
|
|
925
|
+
var Be = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
926
|
+
function Ve(e) {
|
|
927
|
+
i.useContext(T).static || i.useLayoutEffect(e);
|
|
871
928
|
}
|
|
872
|
-
function
|
|
873
|
-
let { isDataRoute: e } =
|
|
874
|
-
return e ?
|
|
929
|
+
function Mt() {
|
|
930
|
+
let { isDataRoute: e } = i.useContext(D);
|
|
931
|
+
return e ? Qt() : Wt();
|
|
875
932
|
}
|
|
876
|
-
function
|
|
933
|
+
function Wt() {
|
|
877
934
|
P(
|
|
878
|
-
|
|
935
|
+
re(),
|
|
879
936
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
880
937
|
// router loaded. We can help them understand how to avoid that.
|
|
881
938
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
882
939
|
);
|
|
883
|
-
let e =
|
|
884
|
-
return
|
|
940
|
+
let e = i.useContext(Y), { basename: t, navigator: r } = i.useContext(T), { matches: n } = i.useContext(D), { pathname: o } = W(), a = JSON.stringify(Fe(n)), l = i.useRef(!1);
|
|
941
|
+
return Ve(() => {
|
|
885
942
|
l.current = !0;
|
|
886
|
-
}),
|
|
887
|
-
(
|
|
888
|
-
if (
|
|
889
|
-
if (typeof
|
|
890
|
-
|
|
943
|
+
}), i.useCallback(
|
|
944
|
+
(s, m = {}) => {
|
|
945
|
+
if (L(l.current, Be), !l.current) return;
|
|
946
|
+
if (typeof s == "number") {
|
|
947
|
+
r.go(s);
|
|
891
948
|
return;
|
|
892
949
|
}
|
|
893
|
-
let
|
|
894
|
-
|
|
895
|
-
JSON.parse(
|
|
896
|
-
|
|
897
|
-
|
|
950
|
+
let f = Ie(
|
|
951
|
+
s,
|
|
952
|
+
JSON.parse(a),
|
|
953
|
+
o,
|
|
954
|
+
m.relative === "path"
|
|
898
955
|
);
|
|
899
|
-
e == null &&
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
956
|
+
e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : A([t, f.pathname])), (m.replace ? r.replace : r.push)(
|
|
957
|
+
f,
|
|
958
|
+
m.state,
|
|
959
|
+
m
|
|
903
960
|
);
|
|
904
961
|
},
|
|
905
962
|
[
|
|
906
|
-
r,
|
|
907
963
|
t,
|
|
908
|
-
|
|
964
|
+
r,
|
|
909
965
|
a,
|
|
966
|
+
o,
|
|
910
967
|
e
|
|
911
968
|
]
|
|
912
969
|
);
|
|
913
970
|
}
|
|
914
|
-
|
|
915
|
-
function G(e, { relative:
|
|
916
|
-
let { matches:
|
|
917
|
-
return
|
|
971
|
+
i.createContext(null);
|
|
972
|
+
function G(e, { relative: t } = {}) {
|
|
973
|
+
let { matches: r } = i.useContext(D), { pathname: n } = W(), o = JSON.stringify(Fe(r));
|
|
974
|
+
return i.useMemo(
|
|
918
975
|
() => Ie(
|
|
919
976
|
e,
|
|
920
|
-
JSON.parse(
|
|
977
|
+
JSON.parse(o),
|
|
921
978
|
n,
|
|
922
|
-
|
|
979
|
+
t === "path"
|
|
923
980
|
),
|
|
924
|
-
[e,
|
|
981
|
+
[e, o, n, t]
|
|
925
982
|
);
|
|
926
983
|
}
|
|
927
|
-
function
|
|
984
|
+
function zt(e, t, r, n, o) {
|
|
928
985
|
P(
|
|
929
|
-
|
|
986
|
+
re(),
|
|
930
987
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
931
988
|
// router loaded. We can help them understand how to avoid that.
|
|
932
989
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
933
990
|
);
|
|
934
|
-
let { navigator:
|
|
991
|
+
let { navigator: a } = i.useContext(T), { matches: l } = i.useContext(D), u = l[l.length - 1], s = u ? u.params : {}, m = u ? u.pathname : "/", f = u ? u.pathnameBase : "/", d = u && u.route;
|
|
935
992
|
{
|
|
936
|
-
let
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
!d ||
|
|
940
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${
|
|
993
|
+
let g = d && d.path || "";
|
|
994
|
+
Ge(
|
|
995
|
+
m,
|
|
996
|
+
!d || g.endsWith("*") || g.endsWith("*?"),
|
|
997
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${m}" (under <Route path="${g}">) 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.
|
|
941
998
|
|
|
942
|
-
Please change the parent <Route path="${
|
|
999
|
+
Please change the parent <Route path="${g}"> to <Route path="${g === "/" ? "*" : `${g}/*`}">.`
|
|
943
1000
|
);
|
|
944
1001
|
}
|
|
945
|
-
let p =
|
|
946
|
-
|
|
947
|
-
let
|
|
948
|
-
if (
|
|
949
|
-
let
|
|
950
|
-
|
|
1002
|
+
let p = W(), b;
|
|
1003
|
+
b = p;
|
|
1004
|
+
let k = b.pathname || "/", v = k;
|
|
1005
|
+
if (f !== "/") {
|
|
1006
|
+
let g = f.replace(/^\//, "").split("/");
|
|
1007
|
+
v = "/" + k.replace(/^\//, "").split("/").slice(g.length).join("/");
|
|
951
1008
|
}
|
|
952
|
-
let
|
|
953
|
-
return
|
|
954
|
-
d ||
|
|
955
|
-
`No routes matched location "${
|
|
956
|
-
),
|
|
957
|
-
|
|
958
|
-
`Matched leaf route at location "${
|
|
959
|
-
),
|
|
960
|
-
|
|
961
|
-
(
|
|
962
|
-
params: Object.assign({},
|
|
963
|
-
pathname:
|
|
964
|
-
|
|
1009
|
+
let y = Oe(e, { pathname: v });
|
|
1010
|
+
return L(
|
|
1011
|
+
d || y != null,
|
|
1012
|
+
`No routes matched location "${b.pathname}${b.search}${b.hash}" `
|
|
1013
|
+
), L(
|
|
1014
|
+
y == null || y[y.length - 1].route.element !== void 0 || y[y.length - 1].route.Component !== void 0 || y[y.length - 1].route.lazy !== void 0,
|
|
1015
|
+
`Matched leaf route at location "${b.pathname}${b.search}${b.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.`
|
|
1016
|
+
), Jt(
|
|
1017
|
+
y && y.map(
|
|
1018
|
+
(g) => Object.assign({}, g, {
|
|
1019
|
+
params: Object.assign({}, s, g.params),
|
|
1020
|
+
pathname: A([
|
|
1021
|
+
f,
|
|
965
1022
|
// Re-encode pathnames that were decoded inside matchRoutes.
|
|
966
1023
|
// Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
|
|
967
1024
|
// `new URL()` internally and we need to prevent it from treating
|
|
968
1025
|
// them as separators
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
).pathname :
|
|
1026
|
+
a.encodeLocation ? a.encodeLocation(
|
|
1027
|
+
g.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
|
|
1028
|
+
).pathname : g.pathname
|
|
972
1029
|
]),
|
|
973
|
-
pathnameBase:
|
|
974
|
-
|
|
1030
|
+
pathnameBase: g.pathnameBase === "/" ? f : A([
|
|
1031
|
+
f,
|
|
975
1032
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
976
1033
|
// Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
|
|
977
1034
|
// `new URL()` internally and we need to prevent it from treating
|
|
978
1035
|
// them as separators
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
).pathname :
|
|
1036
|
+
a.encodeLocation ? a.encodeLocation(
|
|
1037
|
+
g.pathnameBase.replace(/\?/g, "%3F").replace(/#/g, "%23")
|
|
1038
|
+
).pathname : g.pathnameBase
|
|
982
1039
|
])
|
|
983
1040
|
})
|
|
984
1041
|
),
|
|
985
1042
|
l,
|
|
986
|
-
|
|
1043
|
+
r,
|
|
987
1044
|
n,
|
|
988
|
-
|
|
1045
|
+
o
|
|
989
1046
|
);
|
|
990
1047
|
}
|
|
991
|
-
function
|
|
992
|
-
let e =
|
|
1048
|
+
function Ht() {
|
|
1049
|
+
let e = Zt(), t = _t(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", o = { padding: "0.5rem", backgroundColor: n }, a = { padding: "2px 4px", backgroundColor: n }, l = null;
|
|
993
1050
|
return console.error(
|
|
994
1051
|
"Error handled by React Router default ErrorBoundary:",
|
|
995
1052
|
e
|
|
996
|
-
), l = /* @__PURE__ */
|
|
1053
|
+
), l = /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ i.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ i.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ i.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ i.createElement(i.Fragment, null, /* @__PURE__ */ i.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ i.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ i.createElement("pre", { style: o }, r) : null, l);
|
|
997
1054
|
}
|
|
998
|
-
var
|
|
1055
|
+
var Yt = /* @__PURE__ */ i.createElement(Ht, null), Je = class extends i.Component {
|
|
999
1056
|
constructor(e) {
|
|
1000
1057
|
super(e), this.state = {
|
|
1001
1058
|
location: e.location,
|
|
@@ -1006,117 +1063,159 @@ var $t = /* @__PURE__ */ c.createElement(Lt, null), At = class extends c.Compone
|
|
|
1006
1063
|
static getDerivedStateFromError(e) {
|
|
1007
1064
|
return { error: e };
|
|
1008
1065
|
}
|
|
1009
|
-
static getDerivedStateFromProps(e,
|
|
1010
|
-
return
|
|
1066
|
+
static getDerivedStateFromProps(e, t) {
|
|
1067
|
+
return t.location !== e.location || t.revalidation !== "idle" && e.revalidation === "idle" ? {
|
|
1011
1068
|
error: e.error,
|
|
1012
1069
|
location: e.location,
|
|
1013
1070
|
revalidation: e.revalidation
|
|
1014
1071
|
} : {
|
|
1015
|
-
error: e.error !== void 0 ? e.error :
|
|
1016
|
-
location:
|
|
1017
|
-
revalidation: e.revalidation ||
|
|
1072
|
+
error: e.error !== void 0 ? e.error : t.error,
|
|
1073
|
+
location: t.location,
|
|
1074
|
+
revalidation: e.revalidation || t.revalidation
|
|
1018
1075
|
};
|
|
1019
1076
|
}
|
|
1020
|
-
componentDidCatch(e,
|
|
1021
|
-
this.props.onError ? this.props.onError(e,
|
|
1077
|
+
componentDidCatch(e, t) {
|
|
1078
|
+
this.props.onError ? this.props.onError(e, t) : console.error(
|
|
1022
1079
|
"React Router caught the following error during render",
|
|
1023
1080
|
e
|
|
1024
1081
|
);
|
|
1025
1082
|
}
|
|
1026
1083
|
render() {
|
|
1027
|
-
|
|
1084
|
+
let e = this.state.error;
|
|
1085
|
+
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
|
|
1086
|
+
const r = Ft(e.digest);
|
|
1087
|
+
r && (e = r);
|
|
1088
|
+
}
|
|
1089
|
+
let t = e !== void 0 ? /* @__PURE__ */ i.createElement(D.Provider, { value: this.props.routeContext }, /* @__PURE__ */ i.createElement(
|
|
1028
1090
|
pe.Provider,
|
|
1029
1091
|
{
|
|
1030
|
-
value:
|
|
1092
|
+
value: e,
|
|
1031
1093
|
children: this.props.component
|
|
1032
1094
|
}
|
|
1033
1095
|
)) : this.props.children;
|
|
1096
|
+
return this.context ? /* @__PURE__ */ i.createElement(Bt, { error: e }, t) : t;
|
|
1034
1097
|
}
|
|
1035
1098
|
};
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1099
|
+
Je.contextType = Lt;
|
|
1100
|
+
var ue = /* @__PURE__ */ new WeakMap();
|
|
1101
|
+
function Bt({
|
|
1102
|
+
children: e,
|
|
1103
|
+
error: t
|
|
1104
|
+
}) {
|
|
1105
|
+
let { basename: r } = i.useContext(T);
|
|
1106
|
+
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
1107
|
+
let n = Dt(t.digest);
|
|
1108
|
+
if (n) {
|
|
1109
|
+
let o = ue.get(t);
|
|
1110
|
+
if (o) throw o;
|
|
1111
|
+
let a = We(n.location, r);
|
|
1112
|
+
if (Me && !ue.get(t))
|
|
1113
|
+
if (a.isExternal || n.reloadDocument)
|
|
1114
|
+
window.location.href = a.absoluteURL || a.to;
|
|
1115
|
+
else {
|
|
1116
|
+
const l = Promise.resolve().then(
|
|
1117
|
+
() => window.__reactRouterDataRouter.navigate(a.to, {
|
|
1118
|
+
replace: n.replace
|
|
1119
|
+
})
|
|
1120
|
+
);
|
|
1121
|
+
throw ue.set(t, l), l;
|
|
1122
|
+
}
|
|
1123
|
+
return /* @__PURE__ */ i.createElement(
|
|
1124
|
+
"meta",
|
|
1125
|
+
{
|
|
1126
|
+
httpEquiv: "refresh",
|
|
1127
|
+
content: `0;url=${a.absoluteURL || a.to}`
|
|
1128
|
+
}
|
|
1129
|
+
);
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
return e;
|
|
1039
1133
|
}
|
|
1040
|
-
function
|
|
1134
|
+
function Vt({ routeContext: e, match: t, children: r }) {
|
|
1135
|
+
let n = i.useContext(Y);
|
|
1136
|
+
return n && n.static && n.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ i.createElement(D.Provider, { value: e }, r);
|
|
1137
|
+
}
|
|
1138
|
+
function Jt(e, t = [], r = null, n = null, o = null) {
|
|
1041
1139
|
if (e == null) {
|
|
1042
|
-
if (!
|
|
1140
|
+
if (!r)
|
|
1043
1141
|
return null;
|
|
1044
|
-
if (
|
|
1045
|
-
e =
|
|
1046
|
-
else if (
|
|
1047
|
-
e =
|
|
1142
|
+
if (r.errors)
|
|
1143
|
+
e = r.matches;
|
|
1144
|
+
else if (t.length === 0 && !r.initialized && r.matches.length > 0)
|
|
1145
|
+
e = r.matches;
|
|
1048
1146
|
else
|
|
1049
1147
|
return null;
|
|
1050
1148
|
}
|
|
1051
|
-
let
|
|
1149
|
+
let a = e, l = r?.errors;
|
|
1052
1150
|
if (l != null) {
|
|
1053
|
-
let
|
|
1151
|
+
let f = a.findIndex(
|
|
1054
1152
|
(d) => d.route.id && l?.[d.route.id] !== void 0
|
|
1055
1153
|
);
|
|
1056
1154
|
P(
|
|
1057
|
-
|
|
1155
|
+
f >= 0,
|
|
1058
1156
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
1059
1157
|
l
|
|
1060
1158
|
).join(",")}`
|
|
1061
|
-
),
|
|
1159
|
+
), a = a.slice(
|
|
1062
1160
|
0,
|
|
1063
|
-
Math.min(
|
|
1161
|
+
Math.min(a.length, f + 1)
|
|
1064
1162
|
);
|
|
1065
1163
|
}
|
|
1066
|
-
let u = !1,
|
|
1067
|
-
if (
|
|
1068
|
-
for (let
|
|
1069
|
-
let d =
|
|
1070
|
-
if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (
|
|
1071
|
-
let { loaderData: p, errors:
|
|
1072
|
-
if (d.route.lazy ||
|
|
1073
|
-
u = !0,
|
|
1164
|
+
let u = !1, s = -1;
|
|
1165
|
+
if (r)
|
|
1166
|
+
for (let f = 0; f < a.length; f++) {
|
|
1167
|
+
let d = a[f];
|
|
1168
|
+
if ((d.route.HydrateFallback || d.route.hydrateFallbackElement) && (s = f), d.route.id) {
|
|
1169
|
+
let { loaderData: p, errors: b } = r, k = d.route.loader && !p.hasOwnProperty(d.route.id) && (!b || b[d.route.id] === void 0);
|
|
1170
|
+
if (d.route.lazy || k) {
|
|
1171
|
+
u = !0, s >= 0 ? a = a.slice(0, s + 1) : a = [a[0]];
|
|
1074
1172
|
break;
|
|
1075
1173
|
}
|
|
1076
1174
|
}
|
|
1077
1175
|
}
|
|
1078
|
-
let
|
|
1079
|
-
n(
|
|
1080
|
-
location:
|
|
1081
|
-
params:
|
|
1176
|
+
let m = r && n ? (f, d) => {
|
|
1177
|
+
n(f, {
|
|
1178
|
+
location: r.location,
|
|
1179
|
+
params: r.matches?.[0]?.params ?? {},
|
|
1180
|
+
unstable_pattern: Tt(r.matches),
|
|
1082
1181
|
errorInfo: d
|
|
1083
1182
|
});
|
|
1084
1183
|
} : void 0;
|
|
1085
|
-
return
|
|
1086
|
-
(
|
|
1087
|
-
let
|
|
1088
|
-
|
|
1184
|
+
return a.reduceRight(
|
|
1185
|
+
(f, d, p) => {
|
|
1186
|
+
let b, k = !1, v = null, y = null;
|
|
1187
|
+
r && (b = l && d.route.id ? l[d.route.id] : void 0, v = d.route.errorElement || Yt, u && (s < 0 && p === 0 ? (Ge(
|
|
1089
1188
|
"route-fallback",
|
|
1090
1189
|
!1,
|
|
1091
1190
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
1092
|
-
),
|
|
1093
|
-
let
|
|
1094
|
-
let
|
|
1095
|
-
return
|
|
1096
|
-
|
|
1191
|
+
), k = !0, y = null) : s === p && (k = !0, y = d.route.hydrateFallbackElement || null)));
|
|
1192
|
+
let R = t.concat(a.slice(0, p + 1)), g = () => {
|
|
1193
|
+
let w;
|
|
1194
|
+
return b ? w = v : k ? w = y : d.route.Component ? w = /* @__PURE__ */ i.createElement(d.route.Component, null) : d.route.element ? w = d.route.element : w = f, /* @__PURE__ */ i.createElement(
|
|
1195
|
+
Vt,
|
|
1097
1196
|
{
|
|
1098
1197
|
match: d,
|
|
1099
1198
|
routeContext: {
|
|
1100
|
-
outlet:
|
|
1101
|
-
matches:
|
|
1102
|
-
isDataRoute:
|
|
1199
|
+
outlet: f,
|
|
1200
|
+
matches: R,
|
|
1201
|
+
isDataRoute: r != null
|
|
1103
1202
|
},
|
|
1104
|
-
children:
|
|
1203
|
+
children: w
|
|
1105
1204
|
}
|
|
1106
1205
|
);
|
|
1107
1206
|
};
|
|
1108
|
-
return
|
|
1109
|
-
|
|
1207
|
+
return r && (d.route.ErrorBoundary || d.route.errorElement || p === 0) ? /* @__PURE__ */ i.createElement(
|
|
1208
|
+
Je,
|
|
1110
1209
|
{
|
|
1111
|
-
location:
|
|
1112
|
-
revalidation:
|
|
1113
|
-
component:
|
|
1114
|
-
error:
|
|
1115
|
-
children:
|
|
1116
|
-
routeContext: { outlet: null, matches:
|
|
1117
|
-
onError:
|
|
1210
|
+
location: r.location,
|
|
1211
|
+
revalidation: r.revalidation,
|
|
1212
|
+
component: v,
|
|
1213
|
+
error: b,
|
|
1214
|
+
children: g(),
|
|
1215
|
+
routeContext: { outlet: null, matches: R, isDataRoute: !0 },
|
|
1216
|
+
onError: m
|
|
1118
1217
|
}
|
|
1119
|
-
) :
|
|
1218
|
+
) : g();
|
|
1120
1219
|
},
|
|
1121
1220
|
null
|
|
1122
1221
|
);
|
|
@@ -1124,220 +1223,220 @@ function Ut(e, r = [], t = null, n = null, a = null) {
|
|
|
1124
1223
|
function ge(e) {
|
|
1125
1224
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1126
1225
|
}
|
|
1127
|
-
function
|
|
1128
|
-
let
|
|
1129
|
-
return P(
|
|
1226
|
+
function Gt(e) {
|
|
1227
|
+
let t = i.useContext(Y);
|
|
1228
|
+
return P(t, ge(e)), t;
|
|
1130
1229
|
}
|
|
1131
|
-
function
|
|
1132
|
-
let
|
|
1133
|
-
return P(
|
|
1230
|
+
function qt(e) {
|
|
1231
|
+
let t = i.useContext(te);
|
|
1232
|
+
return P(t, ge(e)), t;
|
|
1134
1233
|
}
|
|
1135
|
-
function
|
|
1136
|
-
let
|
|
1137
|
-
return P(
|
|
1234
|
+
function Xt(e) {
|
|
1235
|
+
let t = i.useContext(D);
|
|
1236
|
+
return P(t, ge(e)), t;
|
|
1138
1237
|
}
|
|
1139
1238
|
function be(e) {
|
|
1140
|
-
let
|
|
1239
|
+
let t = Xt(e), r = t.matches[t.matches.length - 1];
|
|
1141
1240
|
return P(
|
|
1142
|
-
|
|
1241
|
+
r.route.id,
|
|
1143
1242
|
`${e} can only be used on routes that contain a unique "id"`
|
|
1144
|
-
),
|
|
1243
|
+
), r.route.id;
|
|
1145
1244
|
}
|
|
1146
|
-
function
|
|
1245
|
+
function Kt() {
|
|
1147
1246
|
return be(
|
|
1148
1247
|
"useRouteId"
|
|
1149
1248
|
/* UseRouteId */
|
|
1150
1249
|
);
|
|
1151
1250
|
}
|
|
1152
|
-
function
|
|
1153
|
-
let e =
|
|
1251
|
+
function Zt() {
|
|
1252
|
+
let e = i.useContext(pe), t = qt(
|
|
1154
1253
|
"useRouteError"
|
|
1155
1254
|
/* UseRouteError */
|
|
1156
|
-
),
|
|
1255
|
+
), r = be(
|
|
1157
1256
|
"useRouteError"
|
|
1158
1257
|
/* UseRouteError */
|
|
1159
1258
|
);
|
|
1160
|
-
return e !== void 0 ? e :
|
|
1259
|
+
return e !== void 0 ? e : t.errors?.[r];
|
|
1161
1260
|
}
|
|
1162
|
-
function
|
|
1163
|
-
let { router: e } =
|
|
1261
|
+
function Qt() {
|
|
1262
|
+
let { router: e } = Gt(
|
|
1164
1263
|
"useNavigate"
|
|
1165
1264
|
/* UseNavigateStable */
|
|
1166
|
-
),
|
|
1265
|
+
), t = be(
|
|
1167
1266
|
"useNavigate"
|
|
1168
1267
|
/* UseNavigateStable */
|
|
1169
|
-
),
|
|
1170
|
-
return
|
|
1171
|
-
|
|
1172
|
-
}),
|
|
1173
|
-
async (
|
|
1174
|
-
|
|
1268
|
+
), r = i.useRef(!1);
|
|
1269
|
+
return Ve(() => {
|
|
1270
|
+
r.current = !0;
|
|
1271
|
+
}), i.useCallback(
|
|
1272
|
+
async (o, a = {}) => {
|
|
1273
|
+
L(r.current, Be), r.current && (typeof o == "number" ? await e.navigate(o) : await e.navigate(o, { fromRouteId: t, ...a }));
|
|
1175
1274
|
},
|
|
1176
|
-
[e,
|
|
1275
|
+
[e, t]
|
|
1177
1276
|
);
|
|
1178
1277
|
}
|
|
1179
1278
|
var Le = {};
|
|
1180
|
-
function
|
|
1181
|
-
!
|
|
1279
|
+
function Ge(e, t, r) {
|
|
1280
|
+
!t && !Le[e] && (Le[e] = !0, L(!1, r));
|
|
1182
1281
|
}
|
|
1183
|
-
|
|
1184
|
-
function
|
|
1282
|
+
i.memo(er);
|
|
1283
|
+
function er({
|
|
1185
1284
|
routes: e,
|
|
1186
|
-
future:
|
|
1187
|
-
state:
|
|
1188
|
-
|
|
1285
|
+
future: t,
|
|
1286
|
+
state: r,
|
|
1287
|
+
onError: n
|
|
1189
1288
|
}) {
|
|
1190
|
-
return
|
|
1289
|
+
return zt(e, void 0, r, n, t);
|
|
1191
1290
|
}
|
|
1192
|
-
var
|
|
1193
|
-
function
|
|
1194
|
-
return
|
|
1291
|
+
var Z = "get", Q = "application/x-www-form-urlencoded";
|
|
1292
|
+
function ne(e) {
|
|
1293
|
+
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
1195
1294
|
}
|
|
1196
|
-
function
|
|
1197
|
-
return
|
|
1295
|
+
function tr(e) {
|
|
1296
|
+
return ne(e) && e.tagName.toLowerCase() === "button";
|
|
1198
1297
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1298
|
+
function rr(e) {
|
|
1299
|
+
return ne(e) && e.tagName.toLowerCase() === "form";
|
|
1201
1300
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1301
|
+
function nr(e) {
|
|
1302
|
+
return ne(e) && e.tagName.toLowerCase() === "input";
|
|
1204
1303
|
}
|
|
1205
|
-
function
|
|
1304
|
+
function ar(e) {
|
|
1206
1305
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
1207
1306
|
}
|
|
1208
|
-
function
|
|
1307
|
+
function or(e, t) {
|
|
1209
1308
|
return e.button === 0 && // Ignore everything but left clicks
|
|
1210
|
-
(!
|
|
1211
|
-
!
|
|
1309
|
+
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
1310
|
+
!ar(e);
|
|
1212
1311
|
}
|
|
1213
|
-
var
|
|
1214
|
-
function
|
|
1215
|
-
if (
|
|
1312
|
+
var K = null;
|
|
1313
|
+
function lr() {
|
|
1314
|
+
if (K === null)
|
|
1216
1315
|
try {
|
|
1217
1316
|
new FormData(
|
|
1218
1317
|
document.createElement("form"),
|
|
1219
1318
|
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
1220
1319
|
0
|
|
1221
|
-
),
|
|
1320
|
+
), K = !1;
|
|
1222
1321
|
} catch {
|
|
1223
|
-
|
|
1322
|
+
K = !0;
|
|
1224
1323
|
}
|
|
1225
|
-
return
|
|
1324
|
+
return K;
|
|
1226
1325
|
}
|
|
1227
|
-
var
|
|
1326
|
+
var ir = /* @__PURE__ */ new Set([
|
|
1228
1327
|
"application/x-www-form-urlencoded",
|
|
1229
1328
|
"multipart/form-data",
|
|
1230
1329
|
"text/plain"
|
|
1231
1330
|
]);
|
|
1232
1331
|
function ce(e) {
|
|
1233
|
-
return e != null && !
|
|
1332
|
+
return e != null && !ir.has(e) ? (L(
|
|
1234
1333
|
!1,
|
|
1235
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${
|
|
1334
|
+
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Q}"`
|
|
1236
1335
|
), null) : e;
|
|
1237
1336
|
}
|
|
1238
|
-
function
|
|
1239
|
-
let
|
|
1240
|
-
if (
|
|
1337
|
+
function sr(e, t) {
|
|
1338
|
+
let r, n, o, a, l;
|
|
1339
|
+
if (rr(e)) {
|
|
1241
1340
|
let u = e.getAttribute("action");
|
|
1242
|
-
n = u ?
|
|
1243
|
-
} else if (
|
|
1341
|
+
n = u ? I(u, t) : null, r = e.getAttribute("method") || Z, o = ce(e.getAttribute("enctype")) || Q, a = new FormData(e);
|
|
1342
|
+
} else if (tr(e) || nr(e) && (e.type === "submit" || e.type === "image")) {
|
|
1244
1343
|
let u = e.form;
|
|
1245
1344
|
if (u == null)
|
|
1246
1345
|
throw new Error(
|
|
1247
1346
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
1248
1347
|
);
|
|
1249
|
-
let
|
|
1250
|
-
if (n =
|
|
1251
|
-
let { name:
|
|
1252
|
-
if (
|
|
1253
|
-
let p =
|
|
1254
|
-
|
|
1255
|
-
} else
|
|
1348
|
+
let s = e.getAttribute("formaction") || u.getAttribute("action");
|
|
1349
|
+
if (n = s ? I(s, t) : null, r = e.getAttribute("formmethod") || u.getAttribute("method") || Z, o = ce(e.getAttribute("formenctype")) || ce(u.getAttribute("enctype")) || Q, a = new FormData(u, e), !lr()) {
|
|
1350
|
+
let { name: m, type: f, value: d } = e;
|
|
1351
|
+
if (f === "image") {
|
|
1352
|
+
let p = m ? `${m}.` : "";
|
|
1353
|
+
a.append(`${p}x`, "0"), a.append(`${p}y`, "0");
|
|
1354
|
+
} else m && a.append(m, d);
|
|
1256
1355
|
}
|
|
1257
1356
|
} else {
|
|
1258
|
-
if (
|
|
1357
|
+
if (ne(e))
|
|
1259
1358
|
throw new Error(
|
|
1260
1359
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
1261
1360
|
);
|
|
1262
|
-
|
|
1361
|
+
r = Z, n = null, o = Q, l = e;
|
|
1263
1362
|
}
|
|
1264
|
-
return
|
|
1363
|
+
return a && o === "text/plain" && (l = a, a = void 0), { action: n, method: r.toLowerCase(), encType: o, formData: a, body: l };
|
|
1265
1364
|
}
|
|
1266
1365
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
1267
|
-
function xe(e,
|
|
1366
|
+
function xe(e, t) {
|
|
1268
1367
|
if (e === !1 || e === null || typeof e > "u")
|
|
1269
|
-
throw new Error(
|
|
1368
|
+
throw new Error(t);
|
|
1270
1369
|
}
|
|
1271
|
-
function
|
|
1272
|
-
let
|
|
1370
|
+
function ur(e, t, r, n) {
|
|
1371
|
+
let o = typeof e == "string" ? new URL(
|
|
1273
1372
|
e,
|
|
1274
1373
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
1275
1374
|
// don't assume window is available
|
|
1276
1375
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
1277
1376
|
) : e;
|
|
1278
|
-
return n.pathname === "/" ?
|
|
1377
|
+
return r ? o.pathname.endsWith("/") ? o.pathname = `${o.pathname}_.${n}` : o.pathname = `${o.pathname}.${n}` : o.pathname === "/" ? o.pathname = `_root.${n}` : t && I(o.pathname, t) === "/" ? o.pathname = `${t.replace(/\/$/, "")}/_root.${n}` : o.pathname = `${o.pathname.replace(/\/$/, "")}.${n}`, o;
|
|
1279
1378
|
}
|
|
1280
|
-
async function
|
|
1281
|
-
if (e.id in
|
|
1282
|
-
return
|
|
1379
|
+
async function cr(e, t) {
|
|
1380
|
+
if (e.id in t)
|
|
1381
|
+
return t[e.id];
|
|
1283
1382
|
try {
|
|
1284
|
-
let
|
|
1383
|
+
let r = await import(
|
|
1285
1384
|
/* @vite-ignore */
|
|
1286
1385
|
/* webpackIgnore: true */
|
|
1287
1386
|
e.module
|
|
1288
1387
|
);
|
|
1289
|
-
return
|
|
1290
|
-
} catch (
|
|
1388
|
+
return t[e.id] = r, r;
|
|
1389
|
+
} catch (r) {
|
|
1291
1390
|
return console.error(
|
|
1292
1391
|
`Error loading route module \`${e.module}\`, reloading page...`
|
|
1293
|
-
), console.error(
|
|
1392
|
+
), console.error(r), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {
|
|
1294
1393
|
});
|
|
1295
1394
|
}
|
|
1296
1395
|
}
|
|
1297
|
-
function
|
|
1396
|
+
function dr(e) {
|
|
1298
1397
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
1299
1398
|
}
|
|
1300
|
-
async function
|
|
1399
|
+
async function fr(e, t, r) {
|
|
1301
1400
|
let n = await Promise.all(
|
|
1302
|
-
e.map(async (
|
|
1303
|
-
let
|
|
1304
|
-
if (
|
|
1305
|
-
let l = await
|
|
1401
|
+
e.map(async (o) => {
|
|
1402
|
+
let a = t.routes[o.route.id];
|
|
1403
|
+
if (a) {
|
|
1404
|
+
let l = await cr(a, r);
|
|
1306
1405
|
return l.links ? l.links() : [];
|
|
1307
1406
|
}
|
|
1308
1407
|
return [];
|
|
1309
1408
|
})
|
|
1310
1409
|
);
|
|
1311
|
-
return
|
|
1312
|
-
n.flat(1).filter(
|
|
1313
|
-
(
|
|
1410
|
+
return gr(
|
|
1411
|
+
n.flat(1).filter(dr).filter((o) => o.rel === "stylesheet" || o.rel === "preload").map(
|
|
1412
|
+
(o) => o.rel === "stylesheet" ? { ...o, rel: "prefetch", as: "style" } : { ...o, rel: "prefetch" }
|
|
1314
1413
|
)
|
|
1315
1414
|
);
|
|
1316
1415
|
}
|
|
1317
|
-
function $e(e,
|
|
1318
|
-
let l = (
|
|
1416
|
+
function $e(e, t, r, n, o, a) {
|
|
1417
|
+
let l = (s, m) => r[m] ? s.route.id !== r[m].route.id : !0, u = (s, m) => (
|
|
1319
1418
|
// param change, /users/123 -> /users/456
|
|
1320
|
-
|
|
1419
|
+
r[m].pathname !== s.pathname || // splat param changed, which is not present in match.path
|
|
1321
1420
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
1322
|
-
|
|
1421
|
+
r[m].route.path?.endsWith("*") && r[m].params["*"] !== s.params["*"]
|
|
1323
1422
|
);
|
|
1324
|
-
return
|
|
1325
|
-
(
|
|
1326
|
-
) :
|
|
1327
|
-
let
|
|
1328
|
-
if (!
|
|
1423
|
+
return a === "assets" ? t.filter(
|
|
1424
|
+
(s, m) => l(s, m) || u(s, m)
|
|
1425
|
+
) : a === "data" ? t.filter((s, m) => {
|
|
1426
|
+
let f = n.routes[s.route.id];
|
|
1427
|
+
if (!f || !f.hasLoader)
|
|
1329
1428
|
return !1;
|
|
1330
|
-
if (l(
|
|
1429
|
+
if (l(s, m) || u(s, m))
|
|
1331
1430
|
return !0;
|
|
1332
|
-
if (
|
|
1333
|
-
let d =
|
|
1431
|
+
if (s.route.shouldRevalidate) {
|
|
1432
|
+
let d = s.route.shouldRevalidate({
|
|
1334
1433
|
currentUrl: new URL(
|
|
1335
|
-
|
|
1434
|
+
o.pathname + o.search + o.hash,
|
|
1336
1435
|
window.origin
|
|
1337
1436
|
),
|
|
1338
|
-
currentParams:
|
|
1437
|
+
currentParams: r[0]?.params || {},
|
|
1339
1438
|
nextUrl: new URL(e, window.origin),
|
|
1340
|
-
nextParams:
|
|
1439
|
+
nextParams: s.params,
|
|
1341
1440
|
defaultShouldRevalidate: !0
|
|
1342
1441
|
});
|
|
1343
1442
|
if (typeof d == "boolean")
|
|
@@ -1346,471 +1445,480 @@ function $e(e, r, t, n, a, o) {
|
|
|
1346
1445
|
return !0;
|
|
1347
1446
|
}) : [];
|
|
1348
1447
|
}
|
|
1349
|
-
function
|
|
1350
|
-
return
|
|
1448
|
+
function mr(e, t, { includeHydrateFallback: r } = {}) {
|
|
1449
|
+
return hr(
|
|
1351
1450
|
e.map((n) => {
|
|
1352
|
-
let
|
|
1353
|
-
if (!
|
|
1354
|
-
let
|
|
1355
|
-
return
|
|
1451
|
+
let o = t.routes[n.route.id];
|
|
1452
|
+
if (!o) return [];
|
|
1453
|
+
let a = [o.module];
|
|
1454
|
+
return o.clientActionModule && (a = a.concat(o.clientActionModule)), o.clientLoaderModule && (a = a.concat(o.clientLoaderModule)), r && o.hydrateFallbackModule && (a = a.concat(o.hydrateFallbackModule)), o.imports && (a = a.concat(o.imports)), a;
|
|
1356
1455
|
}).flat(1)
|
|
1357
1456
|
);
|
|
1358
1457
|
}
|
|
1359
|
-
function
|
|
1458
|
+
function hr(e) {
|
|
1360
1459
|
return [...new Set(e)];
|
|
1361
1460
|
}
|
|
1362
|
-
function
|
|
1363
|
-
let
|
|
1364
|
-
for (let n of
|
|
1365
|
-
|
|
1366
|
-
return
|
|
1367
|
-
}
|
|
1368
|
-
function
|
|
1369
|
-
let
|
|
1370
|
-
return new Set(
|
|
1371
|
-
let
|
|
1372
|
-
return
|
|
1461
|
+
function pr(e) {
|
|
1462
|
+
let t = {}, r = Object.keys(e).sort();
|
|
1463
|
+
for (let n of r)
|
|
1464
|
+
t[n] = e[n];
|
|
1465
|
+
return t;
|
|
1466
|
+
}
|
|
1467
|
+
function gr(e, t) {
|
|
1468
|
+
let r = /* @__PURE__ */ new Set();
|
|
1469
|
+
return new Set(t), e.reduce((n, o) => {
|
|
1470
|
+
let a = JSON.stringify(pr(o));
|
|
1471
|
+
return r.has(a) || (r.add(a), n.push({ key: a, link: o })), n;
|
|
1373
1472
|
}, []);
|
|
1374
1473
|
}
|
|
1375
|
-
function
|
|
1376
|
-
let e =
|
|
1474
|
+
function qe() {
|
|
1475
|
+
let e = i.useContext(Y);
|
|
1377
1476
|
return xe(
|
|
1378
1477
|
e,
|
|
1379
1478
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
1380
1479
|
), e;
|
|
1381
1480
|
}
|
|
1382
|
-
function
|
|
1383
|
-
let e =
|
|
1481
|
+
function br() {
|
|
1482
|
+
let e = i.useContext(te);
|
|
1384
1483
|
return xe(
|
|
1385
1484
|
e,
|
|
1386
1485
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
1387
1486
|
), e;
|
|
1388
1487
|
}
|
|
1389
|
-
var ye =
|
|
1488
|
+
var ye = i.createContext(void 0);
|
|
1390
1489
|
ye.displayName = "FrameworkContext";
|
|
1391
|
-
function
|
|
1392
|
-
let e =
|
|
1490
|
+
function Xe() {
|
|
1491
|
+
let e = i.useContext(ye);
|
|
1393
1492
|
return xe(
|
|
1394
1493
|
e,
|
|
1395
1494
|
"You must render this element inside a <HydratedRouter> element"
|
|
1396
1495
|
), e;
|
|
1397
1496
|
}
|
|
1398
|
-
function
|
|
1399
|
-
let
|
|
1400
|
-
|
|
1497
|
+
function xr(e, t) {
|
|
1498
|
+
let r = i.useContext(ye), [n, o] = i.useState(!1), [a, l] = i.useState(!1), { onFocus: u, onBlur: s, onMouseEnter: m, onMouseLeave: f, onTouchStart: d } = t, p = i.useRef(null);
|
|
1499
|
+
i.useEffect(() => {
|
|
1401
1500
|
if (e === "render" && l(!0), e === "viewport") {
|
|
1402
|
-
let
|
|
1403
|
-
|
|
1404
|
-
l(
|
|
1501
|
+
let v = (R) => {
|
|
1502
|
+
R.forEach((g) => {
|
|
1503
|
+
l(g.isIntersecting);
|
|
1405
1504
|
});
|
|
1406
|
-
},
|
|
1407
|
-
return p.current &&
|
|
1408
|
-
|
|
1505
|
+
}, y = new IntersectionObserver(v, { threshold: 0.5 });
|
|
1506
|
+
return p.current && y.observe(p.current), () => {
|
|
1507
|
+
y.disconnect();
|
|
1409
1508
|
};
|
|
1410
1509
|
}
|
|
1411
|
-
}, [e]),
|
|
1510
|
+
}, [e]), i.useEffect(() => {
|
|
1412
1511
|
if (n) {
|
|
1413
|
-
let
|
|
1512
|
+
let v = setTimeout(() => {
|
|
1414
1513
|
l(!0);
|
|
1415
1514
|
}, 100);
|
|
1416
1515
|
return () => {
|
|
1417
|
-
clearTimeout(
|
|
1516
|
+
clearTimeout(v);
|
|
1418
1517
|
};
|
|
1419
1518
|
}
|
|
1420
1519
|
}, [n]);
|
|
1421
|
-
let
|
|
1422
|
-
|
|
1423
|
-
},
|
|
1424
|
-
|
|
1520
|
+
let b = () => {
|
|
1521
|
+
o(!0);
|
|
1522
|
+
}, k = () => {
|
|
1523
|
+
o(!1), l(!1);
|
|
1425
1524
|
};
|
|
1426
|
-
return
|
|
1427
|
-
|
|
1525
|
+
return r ? e !== "intent" ? [a, p, {}] : [
|
|
1526
|
+
a,
|
|
1428
1527
|
p,
|
|
1429
1528
|
{
|
|
1430
|
-
onFocus: J(u,
|
|
1431
|
-
onBlur: J(
|
|
1432
|
-
onMouseEnter: J(
|
|
1433
|
-
onMouseLeave: J(
|
|
1434
|
-
onTouchStart: J(d,
|
|
1529
|
+
onFocus: J(u, b),
|
|
1530
|
+
onBlur: J(s, k),
|
|
1531
|
+
onMouseEnter: J(m, b),
|
|
1532
|
+
onMouseLeave: J(f, k),
|
|
1533
|
+
onTouchStart: J(d, b)
|
|
1435
1534
|
}
|
|
1436
1535
|
] : [!1, p, {}];
|
|
1437
1536
|
}
|
|
1438
|
-
function J(e,
|
|
1439
|
-
return (
|
|
1440
|
-
e && e(
|
|
1537
|
+
function J(e, t) {
|
|
1538
|
+
return (r) => {
|
|
1539
|
+
e && e(r), r.defaultPrevented || t(r);
|
|
1441
1540
|
};
|
|
1442
1541
|
}
|
|
1443
|
-
function
|
|
1444
|
-
let { router:
|
|
1445
|
-
() =>
|
|
1446
|
-
[
|
|
1542
|
+
function yr({ page: e, ...t }) {
|
|
1543
|
+
let { router: r } = qe(), n = i.useMemo(
|
|
1544
|
+
() => Oe(r.routes, e, r.basename),
|
|
1545
|
+
[r.routes, e, r.basename]
|
|
1447
1546
|
);
|
|
1448
|
-
return n ? /* @__PURE__ */
|
|
1547
|
+
return n ? /* @__PURE__ */ i.createElement(wr, { page: e, matches: n, ...t }) : null;
|
|
1449
1548
|
}
|
|
1450
|
-
function
|
|
1451
|
-
let { manifest:
|
|
1452
|
-
return
|
|
1453
|
-
let
|
|
1454
|
-
return
|
|
1549
|
+
function vr(e) {
|
|
1550
|
+
let { manifest: t, routeModules: r } = Xe(), [n, o] = i.useState([]);
|
|
1551
|
+
return i.useEffect(() => {
|
|
1552
|
+
let a = !1;
|
|
1553
|
+
return fr(e, t, r).then(
|
|
1455
1554
|
(l) => {
|
|
1456
|
-
|
|
1555
|
+
a || o(l);
|
|
1457
1556
|
}
|
|
1458
1557
|
), () => {
|
|
1459
|
-
|
|
1558
|
+
a = !0;
|
|
1460
1559
|
};
|
|
1461
|
-
}, [e,
|
|
1560
|
+
}, [e, t, r]), n;
|
|
1462
1561
|
}
|
|
1463
|
-
function
|
|
1562
|
+
function wr({
|
|
1464
1563
|
page: e,
|
|
1465
|
-
matches:
|
|
1466
|
-
...
|
|
1564
|
+
matches: t,
|
|
1565
|
+
...r
|
|
1467
1566
|
}) {
|
|
1468
|
-
let n =
|
|
1567
|
+
let n = W(), { future: o, manifest: a, routeModules: l } = Xe(), { basename: u } = qe(), { loaderData: s, matches: m } = br(), f = i.useMemo(
|
|
1469
1568
|
() => $e(
|
|
1470
1569
|
e,
|
|
1471
|
-
|
|
1472
|
-
|
|
1570
|
+
t,
|
|
1571
|
+
m,
|
|
1473
1572
|
a,
|
|
1474
1573
|
n,
|
|
1475
1574
|
"data"
|
|
1476
1575
|
),
|
|
1477
|
-
[e,
|
|
1478
|
-
),
|
|
1576
|
+
[e, t, m, a, n]
|
|
1577
|
+
), d = i.useMemo(
|
|
1479
1578
|
() => $e(
|
|
1480
1579
|
e,
|
|
1481
|
-
|
|
1482
|
-
|
|
1580
|
+
t,
|
|
1581
|
+
m,
|
|
1483
1582
|
a,
|
|
1484
1583
|
n,
|
|
1485
1584
|
"assets"
|
|
1486
1585
|
),
|
|
1487
|
-
[e,
|
|
1488
|
-
),
|
|
1586
|
+
[e, t, m, a, n]
|
|
1587
|
+
), p = i.useMemo(() => {
|
|
1489
1588
|
if (e === n.pathname + n.search + n.hash)
|
|
1490
1589
|
return [];
|
|
1491
|
-
let
|
|
1492
|
-
if (
|
|
1493
|
-
let
|
|
1494
|
-
!
|
|
1495
|
-
}),
|
|
1590
|
+
let v = /* @__PURE__ */ new Set(), y = !1;
|
|
1591
|
+
if (t.forEach((g) => {
|
|
1592
|
+
let w = a.routes[g.route.id];
|
|
1593
|
+
!w || !w.hasLoader || (!f.some(($) => $.route.id === g.route.id) && g.route.id in s && l[g.route.id]?.shouldRevalidate || w.hasClientLoader ? y = !0 : v.add(g.route.id));
|
|
1594
|
+
}), v.size === 0)
|
|
1496
1595
|
return [];
|
|
1497
|
-
let
|
|
1498
|
-
|
|
1596
|
+
let R = ur(
|
|
1597
|
+
e,
|
|
1598
|
+
u,
|
|
1599
|
+
o.unstable_trailingSlashAwareDataRequests,
|
|
1600
|
+
"data"
|
|
1601
|
+
);
|
|
1602
|
+
return y && v.size > 0 && R.searchParams.set(
|
|
1499
1603
|
"_routes",
|
|
1500
|
-
|
|
1501
|
-
), [
|
|
1604
|
+
t.filter((g) => v.has(g.route.id)).map((g) => g.route.id).join(",")
|
|
1605
|
+
), [R.pathname + R.search];
|
|
1502
1606
|
}, [
|
|
1503
|
-
l,
|
|
1504
1607
|
u,
|
|
1608
|
+
o.unstable_trailingSlashAwareDataRequests,
|
|
1609
|
+
s,
|
|
1505
1610
|
n,
|
|
1506
1611
|
a,
|
|
1507
1612
|
f,
|
|
1508
|
-
|
|
1613
|
+
t,
|
|
1509
1614
|
e,
|
|
1510
|
-
|
|
1511
|
-
]),
|
|
1512
|
-
() =>
|
|
1513
|
-
[
|
|
1514
|
-
),
|
|
1515
|
-
return /* @__PURE__ */
|
|
1615
|
+
l
|
|
1616
|
+
]), b = i.useMemo(
|
|
1617
|
+
() => mr(d, a),
|
|
1618
|
+
[d, a]
|
|
1619
|
+
), k = vr(d);
|
|
1620
|
+
return /* @__PURE__ */ i.createElement(i.Fragment, null, p.map((v) => /* @__PURE__ */ i.createElement("link", { key: v, rel: "prefetch", as: "fetch", href: v, ...r })), b.map((v) => /* @__PURE__ */ i.createElement("link", { key: v, rel: "modulepreload", href: v, ...r })), k.map(({ key: v, link: y }) => (
|
|
1516
1621
|
// these don't spread `linkProps` because they are full link descriptors
|
|
1517
1622
|
// already with their own props
|
|
1518
|
-
/* @__PURE__ */
|
|
1623
|
+
/* @__PURE__ */ i.createElement("link", { key: v, nonce: r.nonce, ...y })
|
|
1519
1624
|
)));
|
|
1520
1625
|
}
|
|
1521
|
-
function
|
|
1522
|
-
return (
|
|
1523
|
-
e.forEach((
|
|
1524
|
-
typeof
|
|
1626
|
+
function kr(...e) {
|
|
1627
|
+
return (t) => {
|
|
1628
|
+
e.forEach((r) => {
|
|
1629
|
+
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
1525
1630
|
});
|
|
1526
1631
|
};
|
|
1527
1632
|
}
|
|
1528
|
-
var
|
|
1633
|
+
var Rr = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
1529
1634
|
try {
|
|
1530
|
-
|
|
1531
|
-
"7.
|
|
1635
|
+
Rr && (window.__reactRouterVersion = // @ts-expect-error
|
|
1636
|
+
"7.12.0");
|
|
1532
1637
|
} catch {
|
|
1533
1638
|
}
|
|
1534
|
-
var
|
|
1639
|
+
var Ke = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, ve = i.forwardRef(
|
|
1535
1640
|
function({
|
|
1536
|
-
onClick:
|
|
1537
|
-
discover:
|
|
1641
|
+
onClick: t,
|
|
1642
|
+
discover: r = "render",
|
|
1538
1643
|
prefetch: n = "none",
|
|
1539
|
-
relative:
|
|
1540
|
-
reloadDocument:
|
|
1644
|
+
relative: o,
|
|
1645
|
+
reloadDocument: a,
|
|
1541
1646
|
replace: l,
|
|
1542
1647
|
state: u,
|
|
1543
|
-
target:
|
|
1544
|
-
to:
|
|
1545
|
-
preventScrollReset:
|
|
1648
|
+
target: s,
|
|
1649
|
+
to: m,
|
|
1650
|
+
preventScrollReset: f,
|
|
1546
1651
|
viewTransition: d,
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
U.origin === j.origin && q != null ? f = q + U.search + U.hash : v = !0;
|
|
1554
|
-
} catch {
|
|
1555
|
-
_(
|
|
1556
|
-
!1,
|
|
1557
|
-
`<Link to="${f}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
1558
|
-
);
|
|
1559
|
-
}
|
|
1560
|
-
let b = Pt(f, { relative: a }), [k, O, T] = ir(
|
|
1652
|
+
unstable_defaultShouldRevalidate: p,
|
|
1653
|
+
...b
|
|
1654
|
+
}, k) {
|
|
1655
|
+
let { basename: v, unstable_useTransitions: y } = i.useContext(T), R = typeof m == "string" && Ke.test(m), g = We(m, v);
|
|
1656
|
+
m = g.to;
|
|
1657
|
+
let w = It(m, { relative: o }), [$, _, O] = xr(
|
|
1561
1658
|
n,
|
|
1562
|
-
|
|
1563
|
-
),
|
|
1659
|
+
b
|
|
1660
|
+
), U = Nr(m, {
|
|
1564
1661
|
replace: l,
|
|
1565
1662
|
state: u,
|
|
1566
|
-
target:
|
|
1567
|
-
preventScrollReset:
|
|
1568
|
-
relative:
|
|
1569
|
-
viewTransition: d
|
|
1663
|
+
target: s,
|
|
1664
|
+
preventScrollReset: f,
|
|
1665
|
+
relative: o,
|
|
1666
|
+
viewTransition: d,
|
|
1667
|
+
unstable_defaultShouldRevalidate: p,
|
|
1668
|
+
unstable_useTransitions: y
|
|
1570
1669
|
});
|
|
1571
|
-
function
|
|
1572
|
-
|
|
1670
|
+
function F(M) {
|
|
1671
|
+
t && t(M), M.defaultPrevented || U(M);
|
|
1573
1672
|
}
|
|
1574
|
-
let
|
|
1673
|
+
let j = (
|
|
1575
1674
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
1576
|
-
/* @__PURE__ */
|
|
1675
|
+
/* @__PURE__ */ i.createElement(
|
|
1577
1676
|
"a",
|
|
1578
1677
|
{
|
|
1579
|
-
...
|
|
1580
|
-
...
|
|
1581
|
-
href:
|
|
1582
|
-
onClick:
|
|
1583
|
-
ref:
|
|
1584
|
-
target:
|
|
1585
|
-
"data-discover": !
|
|
1678
|
+
...b,
|
|
1679
|
+
...O,
|
|
1680
|
+
href: g.absoluteURL || w,
|
|
1681
|
+
onClick: g.isExternal || a ? t : F,
|
|
1682
|
+
ref: kr(k, _),
|
|
1683
|
+
target: s,
|
|
1684
|
+
"data-discover": !R && r === "render" ? "true" : void 0
|
|
1586
1685
|
}
|
|
1587
1686
|
)
|
|
1588
1687
|
);
|
|
1589
|
-
return
|
|
1688
|
+
return $ && !R ? /* @__PURE__ */ i.createElement(i.Fragment, null, j, /* @__PURE__ */ i.createElement(yr, { page: w })) : j;
|
|
1590
1689
|
}
|
|
1591
1690
|
);
|
|
1592
1691
|
ve.displayName = "Link";
|
|
1593
|
-
var
|
|
1692
|
+
var Er = i.forwardRef(
|
|
1594
1693
|
function({
|
|
1595
|
-
"aria-current":
|
|
1596
|
-
caseSensitive:
|
|
1694
|
+
"aria-current": t = "page",
|
|
1695
|
+
caseSensitive: r = !1,
|
|
1597
1696
|
className: n = "",
|
|
1598
|
-
end:
|
|
1599
|
-
style:
|
|
1697
|
+
end: o = !1,
|
|
1698
|
+
style: a,
|
|
1600
1699
|
to: l,
|
|
1601
1700
|
viewTransition: u,
|
|
1602
|
-
children:
|
|
1603
|
-
...
|
|
1604
|
-
},
|
|
1605
|
-
let d = G(l, { relative:
|
|
1701
|
+
children: s,
|
|
1702
|
+
...m
|
|
1703
|
+
}, f) {
|
|
1704
|
+
let d = G(l, { relative: m.relative }), p = W(), b = i.useContext(te), { navigator: k, basename: v } = i.useContext(T), y = b != null && // Conditional usage is OK here because the usage of a data router is static
|
|
1606
1705
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
const
|
|
1610
|
-
let
|
|
1611
|
-
isActive:
|
|
1612
|
-
isPending:
|
|
1613
|
-
isTransitioning:
|
|
1614
|
-
},
|
|
1615
|
-
typeof n == "function" ? j = n(
|
|
1706
|
+
Lr(d) && u === !0, R = k.encodeLocation ? k.encodeLocation(d).pathname : d.pathname, g = p.pathname, w = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
|
|
1707
|
+
r || (g = g.toLowerCase(), w = w ? w.toLowerCase() : null, R = R.toLowerCase()), w && v && (w = I(w, v) || w);
|
|
1708
|
+
const $ = R !== "/" && R.endsWith("/") ? R.length - 1 : R.length;
|
|
1709
|
+
let _ = g === R || !o && g.startsWith(R) && g.charAt($) === "/", O = w != null && (w === R || !o && w.startsWith(R) && w.charAt(R.length) === "/"), U = {
|
|
1710
|
+
isActive: _,
|
|
1711
|
+
isPending: O,
|
|
1712
|
+
isTransitioning: y
|
|
1713
|
+
}, F = _ ? t : void 0, j;
|
|
1714
|
+
typeof n == "function" ? j = n(U) : j = [
|
|
1616
1715
|
n,
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1716
|
+
_ ? "active" : null,
|
|
1717
|
+
O ? "pending" : null,
|
|
1718
|
+
y ? "transitioning" : null
|
|
1620
1719
|
].filter(Boolean).join(" ");
|
|
1621
|
-
let
|
|
1622
|
-
return /* @__PURE__ */
|
|
1720
|
+
let M = typeof a == "function" ? a(U) : a;
|
|
1721
|
+
return /* @__PURE__ */ i.createElement(
|
|
1623
1722
|
ve,
|
|
1624
1723
|
{
|
|
1625
|
-
...
|
|
1626
|
-
"aria-current":
|
|
1724
|
+
...m,
|
|
1725
|
+
"aria-current": F,
|
|
1627
1726
|
className: j,
|
|
1628
|
-
ref:
|
|
1629
|
-
style:
|
|
1727
|
+
ref: f,
|
|
1728
|
+
style: M,
|
|
1630
1729
|
to: l,
|
|
1631
1730
|
viewTransition: u
|
|
1632
1731
|
},
|
|
1633
|
-
typeof
|
|
1732
|
+
typeof s == "function" ? s(U) : s
|
|
1634
1733
|
);
|
|
1635
1734
|
}
|
|
1636
1735
|
);
|
|
1637
|
-
|
|
1638
|
-
var
|
|
1736
|
+
Er.displayName = "NavLink";
|
|
1737
|
+
var Cr = i.forwardRef(
|
|
1639
1738
|
({
|
|
1640
1739
|
discover: e = "render",
|
|
1641
|
-
fetcherKey:
|
|
1642
|
-
navigate:
|
|
1740
|
+
fetcherKey: t,
|
|
1741
|
+
navigate: r,
|
|
1643
1742
|
reloadDocument: n,
|
|
1644
|
-
replace:
|
|
1645
|
-
state:
|
|
1646
|
-
method: l =
|
|
1743
|
+
replace: o,
|
|
1744
|
+
state: a,
|
|
1745
|
+
method: l = Z,
|
|
1647
1746
|
action: u,
|
|
1648
|
-
onSubmit:
|
|
1649
|
-
relative:
|
|
1650
|
-
preventScrollReset:
|
|
1747
|
+
onSubmit: s,
|
|
1748
|
+
relative: m,
|
|
1749
|
+
preventScrollReset: f,
|
|
1651
1750
|
viewTransition: d,
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
y(O ||
|
|
1659
|
-
fetcherKey:
|
|
1660
|
-
method:
|
|
1661
|
-
navigate:
|
|
1662
|
-
replace:
|
|
1663
|
-
state:
|
|
1664
|
-
relative:
|
|
1665
|
-
preventScrollReset:
|
|
1666
|
-
viewTransition: d
|
|
1751
|
+
unstable_defaultShouldRevalidate: p,
|
|
1752
|
+
...b
|
|
1753
|
+
}, k) => {
|
|
1754
|
+
let { unstable_useTransitions: v } = i.useContext(T), y = Tr(), R = jr(u, { relative: m }), g = l.toLowerCase() === "get" ? "get" : "post", w = typeof u == "string" && Ke.test(u), $ = (_) => {
|
|
1755
|
+
if (s && s(_), _.defaultPrevented) return;
|
|
1756
|
+
_.preventDefault();
|
|
1757
|
+
let O = _.nativeEvent.submitter, U = O?.getAttribute("formmethod") || l, F = () => y(O || _.currentTarget, {
|
|
1758
|
+
fetcherKey: t,
|
|
1759
|
+
method: U,
|
|
1760
|
+
navigate: r,
|
|
1761
|
+
replace: o,
|
|
1762
|
+
state: a,
|
|
1763
|
+
relative: m,
|
|
1764
|
+
preventScrollReset: f,
|
|
1765
|
+
viewTransition: d,
|
|
1766
|
+
unstable_defaultShouldRevalidate: p
|
|
1667
1767
|
});
|
|
1768
|
+
v && r !== !1 ? i.startTransition(() => F()) : F();
|
|
1668
1769
|
};
|
|
1669
|
-
return /* @__PURE__ */
|
|
1770
|
+
return /* @__PURE__ */ i.createElement(
|
|
1670
1771
|
"form",
|
|
1671
1772
|
{
|
|
1672
|
-
ref:
|
|
1673
|
-
method:
|
|
1674
|
-
action:
|
|
1675
|
-
onSubmit: n ?
|
|
1676
|
-
...
|
|
1677
|
-
"data-discover": !
|
|
1773
|
+
ref: k,
|
|
1774
|
+
method: g,
|
|
1775
|
+
action: R,
|
|
1776
|
+
onSubmit: n ? s : $,
|
|
1777
|
+
...b,
|
|
1778
|
+
"data-discover": !w && e === "render" ? "true" : void 0
|
|
1678
1779
|
}
|
|
1679
1780
|
);
|
|
1680
1781
|
}
|
|
1681
1782
|
);
|
|
1682
|
-
|
|
1683
|
-
function
|
|
1783
|
+
Cr.displayName = "Form";
|
|
1784
|
+
function Sr(e) {
|
|
1684
1785
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
1685
1786
|
}
|
|
1686
|
-
function
|
|
1687
|
-
let
|
|
1688
|
-
return P(
|
|
1787
|
+
function Ze(e) {
|
|
1788
|
+
let t = i.useContext(Y);
|
|
1789
|
+
return P(t, Sr(e)), t;
|
|
1689
1790
|
}
|
|
1690
|
-
function
|
|
1691
|
-
target:
|
|
1692
|
-
replace:
|
|
1791
|
+
function Nr(e, {
|
|
1792
|
+
target: t,
|
|
1793
|
+
replace: r,
|
|
1693
1794
|
state: n,
|
|
1694
|
-
preventScrollReset:
|
|
1695
|
-
relative:
|
|
1696
|
-
viewTransition: l
|
|
1795
|
+
preventScrollReset: o,
|
|
1796
|
+
relative: a,
|
|
1797
|
+
viewTransition: l,
|
|
1798
|
+
unstable_defaultShouldRevalidate: u,
|
|
1799
|
+
unstable_useTransitions: s
|
|
1697
1800
|
} = {}) {
|
|
1698
|
-
let
|
|
1699
|
-
return
|
|
1700
|
-
(
|
|
1701
|
-
if (
|
|
1702
|
-
|
|
1703
|
-
let
|
|
1704
|
-
|
|
1705
|
-
replace: d,
|
|
1801
|
+
let m = Mt(), f = W(), d = G(e, { relative: a });
|
|
1802
|
+
return i.useCallback(
|
|
1803
|
+
(p) => {
|
|
1804
|
+
if (or(p, t)) {
|
|
1805
|
+
p.preventDefault();
|
|
1806
|
+
let b = r !== void 0 ? r : de(f) === de(d), k = () => m(e, {
|
|
1807
|
+
replace: b,
|
|
1706
1808
|
state: n,
|
|
1707
|
-
preventScrollReset:
|
|
1708
|
-
relative:
|
|
1709
|
-
viewTransition: l
|
|
1809
|
+
preventScrollReset: o,
|
|
1810
|
+
relative: a,
|
|
1811
|
+
viewTransition: l,
|
|
1812
|
+
unstable_defaultShouldRevalidate: u
|
|
1710
1813
|
});
|
|
1814
|
+
s ? i.startTransition(() => k()) : k();
|
|
1711
1815
|
}
|
|
1712
1816
|
},
|
|
1713
1817
|
[
|
|
1714
|
-
i,
|
|
1715
|
-
u,
|
|
1716
1818
|
f,
|
|
1717
|
-
|
|
1718
|
-
|
|
1819
|
+
m,
|
|
1820
|
+
d,
|
|
1719
1821
|
r,
|
|
1822
|
+
n,
|
|
1823
|
+
t,
|
|
1720
1824
|
e,
|
|
1721
|
-
a,
|
|
1722
1825
|
o,
|
|
1723
|
-
|
|
1826
|
+
a,
|
|
1827
|
+
l,
|
|
1828
|
+
u,
|
|
1829
|
+
s
|
|
1724
1830
|
]
|
|
1725
1831
|
);
|
|
1726
1832
|
}
|
|
1727
|
-
var
|
|
1728
|
-
function
|
|
1729
|
-
let { router: e } =
|
|
1833
|
+
var Pr = 0, _r = () => `__${String(++Pr)}__`;
|
|
1834
|
+
function Tr() {
|
|
1835
|
+
let { router: e } = Ze(
|
|
1730
1836
|
"useSubmit"
|
|
1731
1837
|
/* UseSubmit */
|
|
1732
|
-
), { basename:
|
|
1733
|
-
return
|
|
1734
|
-
async (
|
|
1735
|
-
let { action:
|
|
1736
|
-
|
|
1737
|
-
|
|
1838
|
+
), { basename: t } = i.useContext(T), r = Kt(), n = e.fetch, o = e.navigate;
|
|
1839
|
+
return i.useCallback(
|
|
1840
|
+
async (a, l = {}) => {
|
|
1841
|
+
let { action: u, method: s, encType: m, formData: f, body: d } = sr(
|
|
1842
|
+
a,
|
|
1843
|
+
t
|
|
1738
1844
|
);
|
|
1739
|
-
if (
|
|
1740
|
-
let
|
|
1741
|
-
await
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1845
|
+
if (l.navigate === !1) {
|
|
1846
|
+
let p = l.fetcherKey || _r();
|
|
1847
|
+
await n(p, r, l.action || u, {
|
|
1848
|
+
unstable_defaultShouldRevalidate: l.unstable_defaultShouldRevalidate,
|
|
1849
|
+
preventScrollReset: l.preventScrollReset,
|
|
1850
|
+
formData: f,
|
|
1851
|
+
body: d,
|
|
1852
|
+
formMethod: l.method || s,
|
|
1853
|
+
formEncType: l.encType || m,
|
|
1854
|
+
flushSync: l.flushSync
|
|
1748
1855
|
});
|
|
1749
1856
|
} else
|
|
1750
|
-
await
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1857
|
+
await o(l.action || u, {
|
|
1858
|
+
unstable_defaultShouldRevalidate: l.unstable_defaultShouldRevalidate,
|
|
1859
|
+
preventScrollReset: l.preventScrollReset,
|
|
1860
|
+
formData: f,
|
|
1861
|
+
body: d,
|
|
1862
|
+
formMethod: l.method || s,
|
|
1863
|
+
formEncType: l.encType || m,
|
|
1864
|
+
replace: l.replace,
|
|
1865
|
+
state: l.state,
|
|
1866
|
+
fromRouteId: r,
|
|
1867
|
+
flushSync: l.flushSync,
|
|
1868
|
+
viewTransition: l.viewTransition
|
|
1761
1869
|
});
|
|
1762
1870
|
},
|
|
1763
|
-
[
|
|
1871
|
+
[n, o, t, r]
|
|
1764
1872
|
);
|
|
1765
1873
|
}
|
|
1766
|
-
function
|
|
1767
|
-
let { basename:
|
|
1874
|
+
function jr(e, { relative: t } = {}) {
|
|
1875
|
+
let { basename: r } = i.useContext(T), n = i.useContext(D);
|
|
1768
1876
|
P(n, "useFormAction must be used inside a RouteContext");
|
|
1769
|
-
let [
|
|
1877
|
+
let [o] = n.matches.slice(-1), a = { ...G(e || ".", { relative: t }) }, l = W();
|
|
1770
1878
|
if (e == null) {
|
|
1771
|
-
|
|
1772
|
-
let u = new URLSearchParams(
|
|
1773
|
-
if (
|
|
1774
|
-
u.delete("index"),
|
|
1775
|
-
let
|
|
1776
|
-
|
|
1879
|
+
a.search = l.search;
|
|
1880
|
+
let u = new URLSearchParams(a.search), s = u.getAll("index");
|
|
1881
|
+
if (s.some((f) => f === "")) {
|
|
1882
|
+
u.delete("index"), s.filter((d) => d).forEach((d) => u.append("index", d));
|
|
1883
|
+
let f = u.toString();
|
|
1884
|
+
a.search = f ? `?${f}` : "";
|
|
1777
1885
|
}
|
|
1778
1886
|
}
|
|
1779
|
-
return (!e || e === ".") &&
|
|
1887
|
+
return (!e || e === ".") && o.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : A([r, a.pathname])), de(a);
|
|
1780
1888
|
}
|
|
1781
|
-
function
|
|
1782
|
-
let
|
|
1889
|
+
function Lr(e, { relative: t } = {}) {
|
|
1890
|
+
let r = i.useContext(He);
|
|
1783
1891
|
P(
|
|
1784
|
-
|
|
1892
|
+
r != null,
|
|
1785
1893
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
1786
1894
|
);
|
|
1787
|
-
let { basename: n } =
|
|
1895
|
+
let { basename: n } = Ze(
|
|
1788
1896
|
"useViewTransitionState"
|
|
1789
1897
|
/* useViewTransitionState */
|
|
1790
|
-
),
|
|
1791
|
-
if (!
|
|
1898
|
+
), o = G(e, { relative: t });
|
|
1899
|
+
if (!r.isTransitioning)
|
|
1792
1900
|
return !1;
|
|
1793
|
-
let
|
|
1794
|
-
return
|
|
1901
|
+
let a = I(r.currentLocation.pathname, n) || r.currentLocation.pathname, l = I(r.nextLocation.pathname, n) || r.nextLocation.pathname;
|
|
1902
|
+
return ee(o.pathname, l) != null || ee(o.pathname, a) != null;
|
|
1795
1903
|
}
|
|
1796
|
-
const
|
|
1904
|
+
const $r = {
|
|
1797
1905
|
primary: "text-blue-600 hover:text-blue-800 dark:text-blue-400 dark:hover:text-blue-300 underline font-medium",
|
|
1798
1906
|
secondary: "text-green-600 hover:text-green-800 dark:text-green-400 dark:hover:text-green-300 underline font-medium",
|
|
1799
1907
|
subtle: "text-gray-600 hover:text-gray-800 dark:text-gray-400 dark:hover:text-gray-200 underline"
|
|
1800
|
-
},
|
|
1908
|
+
}, Qe = ({
|
|
1801
1909
|
to: e,
|
|
1802
|
-
children:
|
|
1803
|
-
className:
|
|
1910
|
+
children: t,
|
|
1911
|
+
className: r,
|
|
1804
1912
|
variant: n = "primary"
|
|
1805
1913
|
}) => /* @__PURE__ */ h.jsx(
|
|
1806
1914
|
ve,
|
|
1807
1915
|
{
|
|
1808
1916
|
to: e,
|
|
1809
|
-
className:
|
|
1810
|
-
"aria-label": typeof
|
|
1811
|
-
children:
|
|
1917
|
+
className: E($r[n], r),
|
|
1918
|
+
"aria-label": typeof t == "string" ? `Navigate to ${t}` : void 0,
|
|
1919
|
+
children: t
|
|
1812
1920
|
}
|
|
1813
|
-
),
|
|
1921
|
+
), Or = {
|
|
1814
1922
|
// Getting Started cluster
|
|
1815
1923
|
gettingStarted: {
|
|
1816
1924
|
documentation: "/document#getting-started",
|
|
@@ -1838,12 +1946,12 @@ const wr = {
|
|
|
1838
1946
|
nameService: "/document#name-service-subscription",
|
|
1839
1947
|
troubleshooting: "/document#troubleshooting"
|
|
1840
1948
|
}
|
|
1841
|
-
},
|
|
1949
|
+
}, Hr = ({
|
|
1842
1950
|
cluster: e,
|
|
1843
|
-
context:
|
|
1844
|
-
className:
|
|
1951
|
+
context: t = "",
|
|
1952
|
+
className: r
|
|
1845
1953
|
}) => {
|
|
1846
|
-
const n =
|
|
1954
|
+
const n = Or[e], o = {
|
|
1847
1955
|
gettingStarted: {
|
|
1848
1956
|
documentation: "Learn how it works",
|
|
1849
1957
|
connect: "Get started now",
|
|
@@ -1868,30 +1976,30 @@ const wr = {
|
|
|
1868
1976
|
troubleshooting: "Troubleshooting guide"
|
|
1869
1977
|
}
|
|
1870
1978
|
};
|
|
1871
|
-
return /* @__PURE__ */ h.jsx("span", { className:
|
|
1872
|
-
/* @__PURE__ */ h.jsx(
|
|
1979
|
+
return /* @__PURE__ */ h.jsx("span", { className: E("text-sm text-gray-600 dark:text-gray-400", r), children: Object.entries(n).map(([a, l], u) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
|
|
1980
|
+
/* @__PURE__ */ h.jsx(Qe, { to: l, variant: "primary", children: o[e][a] }),
|
|
1873
1981
|
u < Object.keys(n).length - 1 && " • "
|
|
1874
|
-
] },
|
|
1875
|
-
},
|
|
1982
|
+
] }, a)) });
|
|
1983
|
+
}, Yr = ({
|
|
1876
1984
|
title: e = "Related:",
|
|
1877
|
-
links:
|
|
1878
|
-
className:
|
|
1985
|
+
links: t,
|
|
1986
|
+
className: r
|
|
1879
1987
|
}) => /* @__PURE__ */ h.jsxs(
|
|
1880
1988
|
"div",
|
|
1881
1989
|
{
|
|
1882
|
-
className:
|
|
1990
|
+
className: E(
|
|
1883
1991
|
"mt-4 p-3 bg-blue-50 dark:bg-blue-900/20 rounded-lg border border-blue-200 dark:border-blue-800",
|
|
1884
|
-
|
|
1992
|
+
r
|
|
1885
1993
|
),
|
|
1886
1994
|
children: [
|
|
1887
1995
|
/* @__PURE__ */ h.jsx("span", { className: "text-sm font-medium text-blue-900 dark:text-blue-200 mr-2", children: e }),
|
|
1888
|
-
|
|
1889
|
-
/* @__PURE__ */ h.jsx(
|
|
1890
|
-
|
|
1891
|
-
] },
|
|
1996
|
+
t.map((n, o) => /* @__PURE__ */ h.jsxs(fe.Fragment, { children: [
|
|
1997
|
+
/* @__PURE__ */ h.jsx(Qe, { to: n.url, variant: n.variant || "primary", children: n.text }),
|
|
1998
|
+
o < t.length - 1 && " • "
|
|
1999
|
+
] }, o))
|
|
1892
2000
|
]
|
|
1893
2001
|
}
|
|
1894
|
-
),
|
|
2002
|
+
), Br = (e, t) => ({
|
|
1895
2003
|
homepage: [
|
|
1896
2004
|
{ text: "How it works", url: "/document#getting-started" },
|
|
1897
2005
|
{ text: "User benefits", url: "/web3-users" },
|
|
@@ -1912,118 +2020,118 @@ const wr = {
|
|
|
1912
2020
|
{ text: "Smart contracts", url: "/document#smart-contracts" },
|
|
1913
2021
|
{ text: "User benefits", url: "/web3-users" }
|
|
1914
2022
|
]
|
|
1915
|
-
})[e] || [],
|
|
2023
|
+
})[e] || [], Vr = ({
|
|
1916
2024
|
className: e,
|
|
1917
|
-
children:
|
|
1918
|
-
disabled:
|
|
2025
|
+
children: t,
|
|
2026
|
+
disabled: r = !1,
|
|
1919
2027
|
onClick: n
|
|
1920
2028
|
}) => /* @__PURE__ */ h.jsx(
|
|
1921
2029
|
"div",
|
|
1922
2030
|
{
|
|
1923
|
-
className:
|
|
2031
|
+
className: E(
|
|
1924
2032
|
"p-4 rounded-lg border transition-colors",
|
|
1925
2033
|
"bg-white dark:bg-gray-900",
|
|
1926
2034
|
"border-gray-200 dark:border-gray-700",
|
|
1927
2035
|
"text-gray-900 dark:text-white",
|
|
1928
|
-
|
|
2036
|
+
r && "opacity-50 cursor-not-allowed",
|
|
1929
2037
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
1930
2038
|
e
|
|
1931
2039
|
),
|
|
1932
|
-
onClick:
|
|
2040
|
+
onClick: r ? void 0 : n,
|
|
1933
2041
|
role: "region",
|
|
1934
2042
|
"aria-label": "UlandingUbuilder",
|
|
1935
|
-
children:
|
|
2043
|
+
children: t || "UlandingUbuilder Component"
|
|
1936
2044
|
}
|
|
1937
|
-
),
|
|
2045
|
+
), Jr = ({
|
|
1938
2046
|
className: e,
|
|
1939
|
-
children:
|
|
1940
|
-
disabled:
|
|
2047
|
+
children: t,
|
|
2048
|
+
disabled: r = !1,
|
|
1941
2049
|
onClick: n
|
|
1942
2050
|
}) => /* @__PURE__ */ h.jsx(
|
|
1943
2051
|
"div",
|
|
1944
2052
|
{
|
|
1945
|
-
className:
|
|
2053
|
+
className: E(
|
|
1946
2054
|
"p-4 rounded-lg border transition-colors",
|
|
1947
2055
|
"bg-white dark:bg-gray-900",
|
|
1948
2056
|
"border-gray-200 dark:border-gray-700",
|
|
1949
2057
|
"text-gray-900 dark:text-white",
|
|
1950
|
-
|
|
2058
|
+
r && "opacity-50 cursor-not-allowed",
|
|
1951
2059
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
1952
2060
|
e
|
|
1953
2061
|
),
|
|
1954
|
-
onClick:
|
|
2062
|
+
onClick: r ? void 0 : n,
|
|
1955
2063
|
role: "region",
|
|
1956
2064
|
"aria-label": "UnpsUsurvey",
|
|
1957
|
-
children:
|
|
2065
|
+
children: t || "UnpsUsurvey Component"
|
|
1958
2066
|
}
|
|
1959
|
-
),
|
|
2067
|
+
), Gr = ({
|
|
1960
2068
|
className: e,
|
|
1961
|
-
children:
|
|
1962
|
-
disabled:
|
|
2069
|
+
children: t,
|
|
2070
|
+
disabled: r
|
|
1963
2071
|
}) => /* @__PURE__ */ h.jsx(
|
|
1964
2072
|
"div",
|
|
1965
2073
|
{
|
|
1966
|
-
className:
|
|
2074
|
+
className: E(
|
|
1967
2075
|
"p-4 rounded-lg border transition-colors",
|
|
1968
2076
|
"bg-white dark:bg-gray-900",
|
|
1969
2077
|
"border-gray-200 dark:border-gray-700",
|
|
1970
2078
|
"text-gray-900 dark:text-white",
|
|
1971
|
-
|
|
2079
|
+
r && "opacity-50 cursor-not-allowed",
|
|
1972
2080
|
e
|
|
1973
2081
|
),
|
|
1974
2082
|
role: "region",
|
|
1975
2083
|
"aria-label": "SalesReport",
|
|
1976
|
-
children:
|
|
2084
|
+
children: t || "SalesReport Component"
|
|
1977
2085
|
}
|
|
1978
|
-
),
|
|
2086
|
+
), qr = ({
|
|
1979
2087
|
className: e,
|
|
1980
|
-
children:
|
|
1981
|
-
disabled:
|
|
2088
|
+
children: t,
|
|
2089
|
+
disabled: r
|
|
1982
2090
|
}) => /* @__PURE__ */ h.jsx(
|
|
1983
2091
|
"div",
|
|
1984
2092
|
{
|
|
1985
|
-
className:
|
|
2093
|
+
className: E(
|
|
1986
2094
|
"p-4 rounded-lg border transition-colors",
|
|
1987
2095
|
"bg-white dark:bg-gray-900",
|
|
1988
2096
|
"border-gray-200 dark:border-gray-700",
|
|
1989
2097
|
"text-gray-900 dark:text-white",
|
|
1990
|
-
|
|
2098
|
+
r && "opacity-50 cursor-not-allowed",
|
|
1991
2099
|
e
|
|
1992
2100
|
),
|
|
1993
2101
|
role: "region",
|
|
1994
2102
|
"aria-label": "SubscriberList",
|
|
1995
|
-
children:
|
|
2103
|
+
children: t || "SubscriberList Component"
|
|
1996
2104
|
}
|
|
1997
|
-
),
|
|
2105
|
+
), Xr = ({
|
|
1998
2106
|
className: e,
|
|
1999
|
-
children:
|
|
2000
|
-
disabled:
|
|
2107
|
+
children: t,
|
|
2108
|
+
disabled: r = !1,
|
|
2001
2109
|
onClick: n
|
|
2002
2110
|
}) => /* @__PURE__ */ h.jsx(
|
|
2003
2111
|
"div",
|
|
2004
2112
|
{
|
|
2005
|
-
className:
|
|
2113
|
+
className: E(
|
|
2006
2114
|
"p-4 rounded-lg border transition-colors",
|
|
2007
2115
|
"bg-white dark:bg-gray-900",
|
|
2008
2116
|
"border-gray-200 dark:border-gray-700",
|
|
2009
2117
|
"text-gray-900 dark:text-white",
|
|
2010
|
-
|
|
2118
|
+
r && "opacity-50 cursor-not-allowed",
|
|
2011
2119
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
2012
2120
|
e
|
|
2013
2121
|
),
|
|
2014
|
-
onClick:
|
|
2122
|
+
onClick: r ? void 0 : n,
|
|
2015
2123
|
role: "region",
|
|
2016
2124
|
"aria-label": "UtestimonialUslider",
|
|
2017
|
-
children:
|
|
2125
|
+
children: t || "UtestimonialUslider Component"
|
|
2018
2126
|
}
|
|
2019
|
-
),
|
|
2127
|
+
), Kr = ({
|
|
2020
2128
|
title: e,
|
|
2021
|
-
description:
|
|
2022
|
-
useCases:
|
|
2129
|
+
description: t,
|
|
2130
|
+
useCases: r,
|
|
2023
2131
|
columns: n = 3,
|
|
2024
|
-
className:
|
|
2132
|
+
className: o
|
|
2025
2133
|
}) => {
|
|
2026
|
-
const
|
|
2134
|
+
const a = "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", l = {
|
|
2027
2135
|
blue: "text-blue-600 dark:text-blue-400",
|
|
2028
2136
|
green: "text-green-600 dark:text-green-400",
|
|
2029
2137
|
purple: "text-purple-600 dark:text-purple-400",
|
|
@@ -2035,30 +2143,30 @@ const wr = {
|
|
|
2035
2143
|
3: "grid-cols-1 md:grid-cols-2 lg:grid-cols-3",
|
|
2036
2144
|
4: "grid-cols-1 sm:grid-cols-2 lg:grid-cols-4"
|
|
2037
2145
|
};
|
|
2038
|
-
return /* @__PURE__ */ h.jsx("section", { className:
|
|
2039
|
-
(e ||
|
|
2146
|
+
return /* @__PURE__ */ h.jsx("section", { className: E(nt.section.gradient, o), children: /* @__PURE__ */ h.jsxs("div", { className: a, children: [
|
|
2147
|
+
(e || t) && /* @__PURE__ */ h.jsxs("div", { className: "text-center mb-12", children: [
|
|
2040
2148
|
e && /* @__PURE__ */ h.jsx("h2", { className: "text-3xl font-bold text-gray-900 dark:text-white mb-4", children: e }),
|
|
2041
|
-
|
|
2149
|
+
t && /* @__PURE__ */ h.jsx("p", { className: "text-xl text-gray-600 dark:text-gray-300 max-w-3xl mx-auto", children: t })
|
|
2042
2150
|
] }),
|
|
2043
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
2044
|
-
const
|
|
2151
|
+
/* @__PURE__ */ h.jsx("div", { className: E("grid gap-8", u[n]), children: r.map((s, m) => {
|
|
2152
|
+
const f = s.color ? l[s.color] : l.blue;
|
|
2045
2153
|
return /* @__PURE__ */ h.jsxs(
|
|
2046
2154
|
"div",
|
|
2047
2155
|
{
|
|
2048
2156
|
className: "bg-white dark:bg-gray-800 rounded-xl p-6 border border-gray-200 dark:border-gray-700 hover:shadow-lg transition-shadow",
|
|
2049
2157
|
children: [
|
|
2050
|
-
/* @__PURE__ */ h.jsx("div", { className:
|
|
2051
|
-
/* @__PURE__ */ h.jsx("h3", { className: "text-xl font-semibold text-gray-900 dark:text-white mb-3", children:
|
|
2052
|
-
/* @__PURE__ */ h.jsx("p", { className: "text-gray-600 dark:text-gray-300 mb-4", children:
|
|
2053
|
-
|
|
2158
|
+
/* @__PURE__ */ h.jsx("div", { className: E("flex-shrink-0 mb-4", f), children: s.icon }),
|
|
2159
|
+
/* @__PURE__ */ h.jsx("h3", { className: "text-xl font-semibold text-gray-900 dark:text-white mb-3", children: s.title }),
|
|
2160
|
+
/* @__PURE__ */ h.jsx("p", { className: "text-gray-600 dark:text-gray-300 mb-4", children: s.description }),
|
|
2161
|
+
s.examples && s.examples.length > 0 && /* @__PURE__ */ h.jsxs("div", { children: [
|
|
2054
2162
|
/* @__PURE__ */ h.jsx("h4", { className: "text-sm font-semibold text-gray-700 dark:text-gray-300 mb-2", children: "Examples:" }),
|
|
2055
|
-
/* @__PURE__ */ h.jsx("ul", { className: "space-y-1", children:
|
|
2163
|
+
/* @__PURE__ */ h.jsx("ul", { className: "space-y-1", children: s.examples.map((d, p) => /* @__PURE__ */ h.jsxs("li", { className: "flex items-start", children: [
|
|
2056
2164
|
/* @__PURE__ */ h.jsx(
|
|
2057
2165
|
"div",
|
|
2058
2166
|
{
|
|
2059
|
-
className:
|
|
2167
|
+
className: E(
|
|
2060
2168
|
"w-1.5 h-1.5 rounded-full mt-2 mr-2 flex-shrink-0",
|
|
2061
|
-
|
|
2169
|
+
s.color ? `bg-${s.color}-500` : "bg-blue-500"
|
|
2062
2170
|
)
|
|
2063
2171
|
}
|
|
2064
2172
|
),
|
|
@@ -2067,48 +2175,48 @@ const wr = {
|
|
|
2067
2175
|
] })
|
|
2068
2176
|
]
|
|
2069
2177
|
},
|
|
2070
|
-
|
|
2178
|
+
m
|
|
2071
2179
|
);
|
|
2072
2180
|
}) })
|
|
2073
2181
|
] }) });
|
|
2074
|
-
},
|
|
2182
|
+
}, Zr = ({
|
|
2075
2183
|
className: e,
|
|
2076
|
-
children:
|
|
2077
|
-
disabled:
|
|
2184
|
+
children: t,
|
|
2185
|
+
disabled: r = !1,
|
|
2078
2186
|
onClick: n
|
|
2079
2187
|
}) => /* @__PURE__ */ h.jsx(
|
|
2080
2188
|
"div",
|
|
2081
2189
|
{
|
|
2082
|
-
className:
|
|
2190
|
+
className: E(
|
|
2083
2191
|
"p-4 rounded-lg border transition-colors",
|
|
2084
2192
|
"bg-white dark:bg-gray-900",
|
|
2085
2193
|
"border-gray-200 dark:border-gray-700",
|
|
2086
2194
|
"text-gray-900 dark:text-white",
|
|
2087
|
-
|
|
2195
|
+
r && "opacity-50 cursor-not-allowed",
|
|
2088
2196
|
"hover:bg-gray-50 dark:hover:bg-gray-800",
|
|
2089
2197
|
e
|
|
2090
2198
|
),
|
|
2091
|
-
onClick:
|
|
2199
|
+
onClick: r ? void 0 : n,
|
|
2092
2200
|
role: "region",
|
|
2093
2201
|
"aria-label": "UwelcomeUscreen",
|
|
2094
|
-
children:
|
|
2202
|
+
children: t || "UwelcomeUscreen Component"
|
|
2095
2203
|
}
|
|
2096
2204
|
);
|
|
2097
2205
|
export {
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2206
|
+
Fr as CrmDashboard,
|
|
2207
|
+
Mr as FeatureListItem,
|
|
2208
|
+
zr as HeroBannerWithBadge,
|
|
2209
|
+
Qe as InternalLink,
|
|
2210
|
+
Yr as RelatedLinks,
|
|
2211
|
+
Gr as SalesReport,
|
|
2212
|
+
qr as SubscriberList,
|
|
2213
|
+
Hr as TopicClusterLinks,
|
|
2214
|
+
Ir as UctaUbanner,
|
|
2215
|
+
Wr as UfeatureUspotlight,
|
|
2216
|
+
Vr as UlandingUbuilder,
|
|
2217
|
+
Jr as UnpsUsurvey,
|
|
2218
|
+
Kr as UseCaseGrid,
|
|
2219
|
+
Xr as UtestimonialUslider,
|
|
2220
|
+
Zr as UwelcomeUscreen,
|
|
2221
|
+
Br as generateContextualLinks
|
|
2114
2222
|
};
|