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