@sirsluginston/sharedui 2.0.21 → 2.0.23
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/sharedui.js +596 -540
- package/dist/sharedui.umd.cjs +15 -15
- package/package.json +2 -2
package/dist/sharedui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import de, { useEffect as
|
|
1
|
+
import de, { useEffect as Y, useState as A, useRef as Pe, useCallback as wr } from "react";
|
|
2
2
|
var ce = { exports: {} }, $ = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
@@ -9,21 +9,21 @@ var ce = { exports: {} }, $ = {};
|
|
|
9
9
|
* This source code is licensed under the MIT license found in the
|
|
10
10
|
* LICENSE file in the root directory of this source tree.
|
|
11
11
|
*/
|
|
12
|
-
var
|
|
12
|
+
var ze;
|
|
13
13
|
function Sr() {
|
|
14
|
-
if (
|
|
15
|
-
|
|
16
|
-
var o = de,
|
|
17
|
-
function c(
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (
|
|
22
|
-
return { $$typeof:
|
|
14
|
+
if (ze) return $;
|
|
15
|
+
ze = 1;
|
|
16
|
+
var o = de, a = Symbol.for("react.element"), s = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, l = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
17
|
+
function c(f, v, x) {
|
|
18
|
+
var u, b = {}, M = null, W = null;
|
|
19
|
+
x !== void 0 && (M = "" + x), v.key !== void 0 && (M = "" + v.key), v.ref !== void 0 && (W = v.ref);
|
|
20
|
+
for (u in v) n.call(v, u) && !i.hasOwnProperty(u) && (b[u] = v[u]);
|
|
21
|
+
if (f && f.defaultProps) for (u in v = f.defaultProps, v) b[u] === void 0 && (b[u] = v[u]);
|
|
22
|
+
return { $$typeof: a, type: f, key: M, ref: W, props: b, _owner: l.current };
|
|
23
23
|
}
|
|
24
24
|
return $.Fragment = s, $.jsx = c, $.jsxs = c, $;
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var N = {};
|
|
27
27
|
/**
|
|
28
28
|
* @license React
|
|
29
29
|
* react-jsx-runtime.development.js
|
|
@@ -33,49 +33,49 @@ var Y = {};
|
|
|
33
33
|
* This source code is licensed under the MIT license found in the
|
|
34
34
|
* LICENSE file in the root directory of this source tree.
|
|
35
35
|
*/
|
|
36
|
-
var
|
|
37
|
-
function
|
|
38
|
-
return
|
|
39
|
-
var o = de,
|
|
40
|
-
function
|
|
36
|
+
var Oe;
|
|
37
|
+
function Tr() {
|
|
38
|
+
return Oe || (Oe = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var o = de, a = Symbol.for("react.element"), s = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), l = Symbol.for("react.strict_mode"), i = Symbol.for("react.profiler"), c = Symbol.for("react.provider"), f = Symbol.for("react.context"), v = Symbol.for("react.forward_ref"), x = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), M = Symbol.for("react.lazy"), W = Symbol.for("react.offscreen"), C = Symbol.iterator, F = "@@iterator";
|
|
40
|
+
function Ne(r) {
|
|
41
41
|
if (r === null || typeof r != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var
|
|
44
|
-
return typeof
|
|
43
|
+
var t = C && r[C] || r[F];
|
|
44
|
+
return typeof t == "function" ? t : null;
|
|
45
45
|
}
|
|
46
|
-
var
|
|
47
|
-
function
|
|
46
|
+
var P = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
+
function w(r) {
|
|
48
48
|
{
|
|
49
|
-
for (var
|
|
50
|
-
d[
|
|
51
|
-
|
|
49
|
+
for (var t = arguments.length, d = new Array(t > 1 ? t - 1 : 0), p = 1; p < t; p++)
|
|
50
|
+
d[p - 1] = arguments[p];
|
|
51
|
+
Ye("error", r, d);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ye(r, t, d) {
|
|
55
55
|
{
|
|
56
|
-
var
|
|
57
|
-
|
|
58
|
-
var
|
|
56
|
+
var p = P.ReactDebugCurrentFrame, h = p.getStackAddendum();
|
|
57
|
+
h !== "" && (t += "%s", d = d.concat([h]));
|
|
58
|
+
var y = d.map(function(m) {
|
|
59
59
|
return String(m);
|
|
60
60
|
});
|
|
61
|
-
|
|
61
|
+
y.unshift("Warning: " + t), Function.prototype.apply.call(console[r], console, y);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var Ue = !1, He = !1, Ve = !1,
|
|
64
|
+
var Ue = !1, He = !1, Ve = !1, Ke = !1, Xe = !1, ue;
|
|
65
65
|
ue = Symbol.for("react.module.reference");
|
|
66
|
-
function
|
|
67
|
-
return !!(typeof r == "string" || typeof r == "function" || r === n || r === i ||
|
|
66
|
+
function Ge(r) {
|
|
67
|
+
return !!(typeof r == "string" || typeof r == "function" || r === n || r === i || Xe || r === l || r === x || r === u || Ke || r === W || Ue || He || Ve || typeof r == "object" && r !== null && (r.$$typeof === M || r.$$typeof === b || r.$$typeof === c || r.$$typeof === f || r.$$typeof === v || // This needs to include all possible module reference object
|
|
68
68
|
// types supported by any Flight configuration anywhere since
|
|
69
69
|
// we don't know which Flight build this will end up being used
|
|
70
70
|
// with.
|
|
71
71
|
r.$$typeof === ue || r.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
|
-
function
|
|
74
|
-
var
|
|
75
|
-
if (
|
|
76
|
-
return
|
|
77
|
-
var
|
|
78
|
-
return
|
|
73
|
+
function Je(r, t, d) {
|
|
74
|
+
var p = r.displayName;
|
|
75
|
+
if (p)
|
|
76
|
+
return p;
|
|
77
|
+
var h = t.displayName || t.name || "";
|
|
78
|
+
return h !== "" ? d + "(" + h + ")" : d;
|
|
79
79
|
}
|
|
80
80
|
function fe(r) {
|
|
81
81
|
return r.displayName || "Context";
|
|
@@ -83,7 +83,7 @@ function Rr() {
|
|
|
83
83
|
function I(r) {
|
|
84
84
|
if (r == null)
|
|
85
85
|
return null;
|
|
86
|
-
if (typeof r.tag == "number" &&
|
|
86
|
+
if (typeof r.tag == "number" && w("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof r == "function")
|
|
87
87
|
return r.displayName || r.name || null;
|
|
88
88
|
if (typeof r == "string")
|
|
89
89
|
return r;
|
|
@@ -96,28 +96,28 @@ function Rr() {
|
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case l:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case x:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case u:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof r == "object")
|
|
105
105
|
switch (r.$$typeof) {
|
|
106
|
-
case
|
|
107
|
-
var
|
|
108
|
-
return fe(
|
|
106
|
+
case f:
|
|
107
|
+
var t = r;
|
|
108
|
+
return fe(t) + ".Consumer";
|
|
109
109
|
case c:
|
|
110
110
|
var d = r;
|
|
111
111
|
return fe(d._context) + ".Provider";
|
|
112
|
-
case
|
|
113
|
-
return
|
|
114
|
-
case
|
|
115
|
-
var
|
|
116
|
-
return
|
|
117
|
-
case
|
|
118
|
-
var
|
|
112
|
+
case v:
|
|
113
|
+
return Je(r, r.render, "ForwardRef");
|
|
114
|
+
case b:
|
|
115
|
+
var p = r.displayName || null;
|
|
116
|
+
return p !== null ? p : I(r.type) || "Memo";
|
|
117
|
+
case M: {
|
|
118
|
+
var h = r, y = h._payload, m = h._init;
|
|
119
119
|
try {
|
|
120
|
-
return I(m(
|
|
120
|
+
return I(m(y));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,14 +125,14 @@ function Rr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
128
|
+
var D = Object.assign, L = 0, ve, pe, ge, me, he, ye, xe;
|
|
129
129
|
function be() {
|
|
130
130
|
}
|
|
131
131
|
be.__reactDisabledLog = !0;
|
|
132
|
-
function
|
|
132
|
+
function qe() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
ve = console.log, pe = console.info, ge = console.warn, me = console.error,
|
|
134
|
+
if (L === 0) {
|
|
135
|
+
ve = console.log, pe = console.info, ge = console.warn, me = console.error, he = console.group, ye = console.groupCollapsed, xe = console.groupEnd;
|
|
136
136
|
var r = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
@@ -149,79 +149,79 @@ function Rr() {
|
|
|
149
149
|
groupEnd: r
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
L++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function
|
|
155
|
+
function Ze() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (L--, L === 0) {
|
|
158
158
|
var r = {
|
|
159
159
|
configurable: !0,
|
|
160
160
|
enumerable: !0,
|
|
161
161
|
writable: !0
|
|
162
162
|
};
|
|
163
163
|
Object.defineProperties(console, {
|
|
164
|
-
log:
|
|
164
|
+
log: D({}, r, {
|
|
165
165
|
value: ve
|
|
166
166
|
}),
|
|
167
|
-
info:
|
|
167
|
+
info: D({}, r, {
|
|
168
168
|
value: pe
|
|
169
169
|
}),
|
|
170
|
-
warn:
|
|
170
|
+
warn: D({}, r, {
|
|
171
171
|
value: ge
|
|
172
172
|
}),
|
|
173
|
-
error:
|
|
173
|
+
error: D({}, r, {
|
|
174
174
|
value: me
|
|
175
175
|
}),
|
|
176
|
-
group:
|
|
177
|
-
value: ye
|
|
178
|
-
}),
|
|
179
|
-
groupCollapsed: M({}, r, {
|
|
176
|
+
group: D({}, r, {
|
|
180
177
|
value: he
|
|
181
178
|
}),
|
|
182
|
-
|
|
179
|
+
groupCollapsed: D({}, r, {
|
|
180
|
+
value: ye
|
|
181
|
+
}),
|
|
182
|
+
groupEnd: D({}, r, {
|
|
183
183
|
value: xe
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
L < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var re =
|
|
191
|
-
function
|
|
190
|
+
var re = P.ReactCurrentDispatcher, oe;
|
|
191
|
+
function G(r, t, d) {
|
|
192
192
|
{
|
|
193
193
|
if (oe === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
|
-
} catch (
|
|
197
|
-
var
|
|
198
|
-
oe =
|
|
196
|
+
} catch (h) {
|
|
197
|
+
var p = h.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
+
oe = p && p[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
201
|
` + oe + r;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var ae = !1, J;
|
|
205
205
|
{
|
|
206
|
-
var
|
|
207
|
-
|
|
206
|
+
var Qe = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
|
+
J = new Qe();
|
|
208
208
|
}
|
|
209
|
-
function je(r,
|
|
210
|
-
if (!r ||
|
|
209
|
+
function je(r, t) {
|
|
210
|
+
if (!r || ae)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
|
-
var d =
|
|
213
|
+
var d = J.get(r);
|
|
214
214
|
if (d !== void 0)
|
|
215
215
|
return d;
|
|
216
216
|
}
|
|
217
|
-
var
|
|
218
|
-
|
|
219
|
-
var
|
|
217
|
+
var p;
|
|
218
|
+
ae = !0;
|
|
219
|
+
var h = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
|
-
var
|
|
222
|
-
|
|
221
|
+
var y;
|
|
222
|
+
y = re.current, re.current = null, qe();
|
|
223
223
|
try {
|
|
224
|
-
if (
|
|
224
|
+
if (t) {
|
|
225
225
|
var m = function() {
|
|
226
226
|
throw Error();
|
|
227
227
|
};
|
|
@@ -232,30 +232,30 @@ function Rr() {
|
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(m, []);
|
|
235
|
-
} catch (
|
|
236
|
-
|
|
235
|
+
} catch (T) {
|
|
236
|
+
p = T;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(r, [], m);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
m.call();
|
|
242
|
-
} catch (
|
|
243
|
-
|
|
242
|
+
} catch (T) {
|
|
243
|
+
p = T;
|
|
244
244
|
}
|
|
245
245
|
r.call(m.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
|
|
250
|
+
} catch (T) {
|
|
251
|
+
p = T;
|
|
252
252
|
}
|
|
253
253
|
r();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var g =
|
|
258
|
-
`), S =
|
|
255
|
+
} catch (T) {
|
|
256
|
+
if (T && p && typeof T.stack == "string") {
|
|
257
|
+
for (var g = T.stack.split(`
|
|
258
|
+
`), S = p.stack.split(`
|
|
259
259
|
`), j = g.length - 1, k = S.length - 1; j >= 1 && k >= 0 && g[j] !== S[k]; )
|
|
260
260
|
k--;
|
|
261
261
|
for (; j >= 1 && k >= 0; j--, k--)
|
|
@@ -263,136 +263,136 @@ function Rr() {
|
|
|
263
263
|
if (j !== 1 || k !== 1)
|
|
264
264
|
do
|
|
265
265
|
if (j--, k--, k < 0 || g[j] !== S[k]) {
|
|
266
|
-
var
|
|
266
|
+
var R = `
|
|
267
267
|
` + g[j].replace(" at new ", " at ");
|
|
268
|
-
return r.displayName &&
|
|
268
|
+
return r.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", r.displayName)), typeof r == "function" && J.set(r, R), R;
|
|
269
269
|
}
|
|
270
270
|
while (j >= 1 && k >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
ae = !1, re.current = y, Ze(), Error.prepareStackTrace = h;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof r == "function" &&
|
|
277
|
+
var O = r ? r.displayName || r.name : "", _ = O ? G(O) : "";
|
|
278
|
+
return typeof r == "function" && J.set(r, _), _;
|
|
279
279
|
}
|
|
280
|
-
function er(r,
|
|
280
|
+
function er(r, t, d) {
|
|
281
281
|
return je(r, !1);
|
|
282
282
|
}
|
|
283
283
|
function rr(r) {
|
|
284
|
-
var
|
|
285
|
-
return !!(
|
|
284
|
+
var t = r.prototype;
|
|
285
|
+
return !!(t && t.isReactComponent);
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function q(r, t, d) {
|
|
288
288
|
if (r == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof r == "function")
|
|
291
291
|
return je(r, rr(r));
|
|
292
292
|
if (typeof r == "string")
|
|
293
|
-
return
|
|
293
|
+
return G(r);
|
|
294
294
|
switch (r) {
|
|
295
|
-
case
|
|
296
|
-
return
|
|
297
|
-
case
|
|
298
|
-
return
|
|
295
|
+
case x:
|
|
296
|
+
return G("Suspense");
|
|
297
|
+
case u:
|
|
298
|
+
return G("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof r == "object")
|
|
301
301
|
switch (r.$$typeof) {
|
|
302
|
-
case
|
|
302
|
+
case v:
|
|
303
303
|
return er(r.render);
|
|
304
|
-
case
|
|
305
|
-
return
|
|
306
|
-
case
|
|
307
|
-
var
|
|
304
|
+
case b:
|
|
305
|
+
return q(r.type, t, d);
|
|
306
|
+
case M: {
|
|
307
|
+
var p = r, h = p._payload, y = p._init;
|
|
308
308
|
try {
|
|
309
|
-
return
|
|
309
|
+
return q(y(h), t, d);
|
|
310
310
|
} catch {
|
|
311
311
|
}
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var B = Object.prototype.hasOwnProperty, ke = {},
|
|
317
|
-
function
|
|
316
|
+
var B = Object.prototype.hasOwnProperty, ke = {}, Ce = P.ReactDebugCurrentFrame;
|
|
317
|
+
function Z(r) {
|
|
318
318
|
if (r) {
|
|
319
|
-
var
|
|
320
|
-
|
|
319
|
+
var t = r._owner, d = q(r.type, r._source, t ? t.type : null);
|
|
320
|
+
Ce.setExtraStackFrame(d);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
Ce.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
|
-
function or(r,
|
|
324
|
+
function or(r, t, d, p, h) {
|
|
325
325
|
{
|
|
326
|
-
var
|
|
326
|
+
var y = Function.call.bind(B);
|
|
327
327
|
for (var m in r)
|
|
328
|
-
if (
|
|
328
|
+
if (y(r, m)) {
|
|
329
329
|
var g = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof r[m] != "function") {
|
|
332
|
-
var S = Error((
|
|
332
|
+
var S = Error((p || "React class") + ": " + d + " type `" + m + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[m] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
|
|
333
333
|
throw S.name = "Invariant Violation", S;
|
|
334
334
|
}
|
|
335
|
-
g = r[m](
|
|
335
|
+
g = r[m](t, m, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
336
|
} catch (j) {
|
|
337
337
|
g = j;
|
|
338
338
|
}
|
|
339
|
-
g && !(g instanceof Error) && (
|
|
339
|
+
g && !(g instanceof Error) && (Z(h), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", p || "React class", d, m, typeof g), Z(null)), g instanceof Error && !(g.message in ke) && (ke[g.message] = !0, Z(h), w("Failed %s type: %s", d, g.message), Z(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
|
-
var
|
|
344
|
-
function
|
|
345
|
-
return
|
|
343
|
+
var ar = Array.isArray;
|
|
344
|
+
function te(r) {
|
|
345
|
+
return ar(r);
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function tr(r) {
|
|
348
348
|
{
|
|
349
|
-
var
|
|
349
|
+
var t = typeof Symbol == "function" && Symbol.toStringTag, d = t && r[Symbol.toStringTag] || r.constructor.name || "Object";
|
|
350
350
|
return d;
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
function nr(r) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return we(r), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function we(r) {
|
|
361
361
|
return "" + r;
|
|
362
362
|
}
|
|
363
363
|
function Se(r) {
|
|
364
364
|
if (nr(r))
|
|
365
|
-
return
|
|
365
|
+
return w("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(r)), we(r);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var Te = P.ReactCurrentOwner, sr = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
372
|
+
}, Re, Ee;
|
|
373
373
|
function ir(r) {
|
|
374
374
|
if (B.call(r, "ref")) {
|
|
375
|
-
var
|
|
376
|
-
if (
|
|
375
|
+
var t = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
376
|
+
if (t && t.isReactWarning)
|
|
377
377
|
return !1;
|
|
378
378
|
}
|
|
379
379
|
return r.ref !== void 0;
|
|
380
380
|
}
|
|
381
381
|
function lr(r) {
|
|
382
382
|
if (B.call(r, "key")) {
|
|
383
|
-
var
|
|
384
|
-
if (
|
|
383
|
+
var t = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
384
|
+
if (t && t.isReactWarning)
|
|
385
385
|
return !1;
|
|
386
386
|
}
|
|
387
387
|
return r.key !== void 0;
|
|
388
388
|
}
|
|
389
|
-
function cr(r,
|
|
390
|
-
typeof r.ref == "string" &&
|
|
389
|
+
function cr(r, t) {
|
|
390
|
+
typeof r.ref == "string" && Te.current;
|
|
391
391
|
}
|
|
392
|
-
function dr(r,
|
|
392
|
+
function dr(r, t) {
|
|
393
393
|
{
|
|
394
394
|
var d = function() {
|
|
395
|
-
|
|
395
|
+
Re || (Re = !0, w("%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://reactjs.org/link/special-props)", t));
|
|
396
396
|
};
|
|
397
397
|
d.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
398
398
|
get: d,
|
|
@@ -400,10 +400,10 @@ function Rr() {
|
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
}
|
|
403
|
-
function ur(r,
|
|
403
|
+
function ur(r, t) {
|
|
404
404
|
{
|
|
405
405
|
var d = function() {
|
|
406
|
-
Ee || (Ee = !0,
|
|
406
|
+
Ee || (Ee = !0, w("%s: `ref` 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://reactjs.org/link/special-props)", t));
|
|
407
407
|
};
|
|
408
408
|
d.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
409
409
|
get: d,
|
|
@@ -411,17 +411,17 @@ function Rr() {
|
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
|
-
var fr = function(r,
|
|
414
|
+
var fr = function(r, t, d, p, h, y, m) {
|
|
415
415
|
var g = {
|
|
416
416
|
// This tag allows us to uniquely identify this as a React Element
|
|
417
|
-
$$typeof:
|
|
417
|
+
$$typeof: a,
|
|
418
418
|
// Built-in properties that belong on the element
|
|
419
419
|
type: r,
|
|
420
|
-
key:
|
|
420
|
+
key: t,
|
|
421
421
|
ref: d,
|
|
422
422
|
props: m,
|
|
423
423
|
// Record the component responsible for creating this element.
|
|
424
|
-
_owner:
|
|
424
|
+
_owner: y
|
|
425
425
|
};
|
|
426
426
|
return g._store = {}, Object.defineProperty(g._store, "validated", {
|
|
427
427
|
configurable: !1,
|
|
@@ -432,46 +432,46 @@ function Rr() {
|
|
|
432
432
|
configurable: !1,
|
|
433
433
|
enumerable: !1,
|
|
434
434
|
writable: !1,
|
|
435
|
-
value:
|
|
435
|
+
value: p
|
|
436
436
|
}), Object.defineProperty(g, "_source", {
|
|
437
437
|
configurable: !1,
|
|
438
438
|
enumerable: !1,
|
|
439
439
|
writable: !1,
|
|
440
|
-
value:
|
|
440
|
+
value: h
|
|
441
441
|
}), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
|
|
442
442
|
};
|
|
443
|
-
function vr(r,
|
|
443
|
+
function vr(r, t, d, p, h) {
|
|
444
444
|
{
|
|
445
|
-
var
|
|
446
|
-
d !== void 0 && (Se(d), g = "" + d), lr(
|
|
447
|
-
for (
|
|
448
|
-
B.call(
|
|
445
|
+
var y, m = {}, g = null, S = null;
|
|
446
|
+
d !== void 0 && (Se(d), g = "" + d), lr(t) && (Se(t.key), g = "" + t.key), ir(t) && (S = t.ref, cr(t, h));
|
|
447
|
+
for (y in t)
|
|
448
|
+
B.call(t, y) && !sr.hasOwnProperty(y) && (m[y] = t[y]);
|
|
449
449
|
if (r && r.defaultProps) {
|
|
450
450
|
var j = r.defaultProps;
|
|
451
|
-
for (
|
|
452
|
-
m[
|
|
451
|
+
for (y in j)
|
|
452
|
+
m[y] === void 0 && (m[y] = j[y]);
|
|
453
453
|
}
|
|
454
454
|
if (g || S) {
|
|
455
455
|
var k = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
456
456
|
g && dr(m, k), S && ur(m, k);
|
|
457
457
|
}
|
|
458
|
-
return fr(r, g, S,
|
|
458
|
+
return fr(r, g, S, h, p, Te.current, m);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var ne =
|
|
462
|
-
function
|
|
461
|
+
var ne = P.ReactCurrentOwner, Me = P.ReactDebugCurrentFrame;
|
|
462
|
+
function z(r) {
|
|
463
463
|
if (r) {
|
|
464
|
-
var
|
|
465
|
-
|
|
464
|
+
var t = r._owner, d = q(r.type, r._source, t ? t.type : null);
|
|
465
|
+
Me.setExtraStackFrame(d);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
Me.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
469
|
var se;
|
|
470
470
|
se = !1;
|
|
471
471
|
function ie(r) {
|
|
472
|
-
return typeof r == "object" && r !== null && r.$$typeof ===
|
|
472
|
+
return typeof r == "object" && r !== null && r.$$typeof === a;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function Fe() {
|
|
475
475
|
{
|
|
476
476
|
if (ne.current) {
|
|
477
477
|
var r = I(ne.current.type);
|
|
@@ -489,156 +489,156 @@ Check the render method of \`` + r + "`.";
|
|
|
489
489
|
var Ie = {};
|
|
490
490
|
function gr(r) {
|
|
491
491
|
{
|
|
492
|
-
var
|
|
493
|
-
if (!
|
|
492
|
+
var t = Fe();
|
|
493
|
+
if (!t) {
|
|
494
494
|
var d = typeof r == "string" ? r : r.displayName || r.name;
|
|
495
|
-
d && (
|
|
495
|
+
d && (t = `
|
|
496
496
|
|
|
497
497
|
Check the top-level render call using <` + d + ">.");
|
|
498
498
|
}
|
|
499
|
-
return
|
|
499
|
+
return t;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function De(r, t) {
|
|
503
503
|
{
|
|
504
504
|
if (!r._store || r._store.validated || r.key != null)
|
|
505
505
|
return;
|
|
506
506
|
r._store.validated = !0;
|
|
507
|
-
var d = gr(
|
|
507
|
+
var d = gr(t);
|
|
508
508
|
if (Ie[d])
|
|
509
509
|
return;
|
|
510
510
|
Ie[d] = !0;
|
|
511
|
-
var
|
|
512
|
-
r && r._owner && r._owner !== ne.current && (
|
|
511
|
+
var p = "";
|
|
512
|
+
r && r._owner && r._owner !== ne.current && (p = " It was passed a child from " + I(r._owner.type) + "."), z(r), w('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, p), z(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function _e(r, t) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof r != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (te(r))
|
|
520
520
|
for (var d = 0; d < r.length; d++) {
|
|
521
|
-
var
|
|
522
|
-
ie(
|
|
521
|
+
var p = r[d];
|
|
522
|
+
ie(p) && De(p, t);
|
|
523
523
|
}
|
|
524
524
|
else if (ie(r))
|
|
525
525
|
r._store && (r._store.validated = !0);
|
|
526
526
|
else if (r) {
|
|
527
|
-
var
|
|
528
|
-
if (typeof
|
|
529
|
-
for (var
|
|
530
|
-
ie(m.value) &&
|
|
527
|
+
var h = Ne(r);
|
|
528
|
+
if (typeof h == "function" && h !== r.entries)
|
|
529
|
+
for (var y = h.call(r), m; !(m = y.next()).done; )
|
|
530
|
+
ie(m.value) && De(m.value, t);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
534
534
|
function mr(r) {
|
|
535
535
|
{
|
|
536
|
-
var
|
|
537
|
-
if (
|
|
536
|
+
var t = r.type;
|
|
537
|
+
if (t == null || typeof t == "string")
|
|
538
538
|
return;
|
|
539
539
|
var d;
|
|
540
|
-
if (typeof
|
|
541
|
-
d =
|
|
542
|
-
else if (typeof
|
|
540
|
+
if (typeof t == "function")
|
|
541
|
+
d = t.propTypes;
|
|
542
|
+
else if (typeof t == "object" && (t.$$typeof === v || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
|
-
|
|
545
|
-
d =
|
|
544
|
+
t.$$typeof === b))
|
|
545
|
+
d = t.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (d) {
|
|
549
|
-
var
|
|
550
|
-
or(d, r.props, "prop",
|
|
551
|
-
} else if (
|
|
549
|
+
var p = I(t);
|
|
550
|
+
or(d, r.props, "prop", p, r);
|
|
551
|
+
} else if (t.PropTypes !== void 0 && !se) {
|
|
552
552
|
se = !0;
|
|
553
|
-
var
|
|
554
|
-
|
|
553
|
+
var h = I(t);
|
|
554
|
+
w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
|
|
555
555
|
}
|
|
556
|
-
typeof
|
|
556
|
+
typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && w("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
|
-
function
|
|
559
|
+
function hr(r) {
|
|
560
560
|
{
|
|
561
|
-
for (var
|
|
562
|
-
var
|
|
563
|
-
if (
|
|
564
|
-
|
|
561
|
+
for (var t = Object.keys(r.props), d = 0; d < t.length; d++) {
|
|
562
|
+
var p = t[d];
|
|
563
|
+
if (p !== "children" && p !== "key") {
|
|
564
|
+
z(r), w("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", p), z(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
r.ref !== null && (
|
|
568
|
+
r.ref !== null && (z(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var Ae = {};
|
|
572
|
+
function We(r, t, d, p, h, y) {
|
|
573
573
|
{
|
|
574
|
-
var m =
|
|
574
|
+
var m = Ge(r);
|
|
575
575
|
if (!m) {
|
|
576
576
|
var g = "";
|
|
577
577
|
(r === void 0 || typeof r == "object" && r !== null && Object.keys(r).length === 0) && (g += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
|
|
578
578
|
var S = pr();
|
|
579
|
-
S ? g += S : g +=
|
|
579
|
+
S ? g += S : g += Fe();
|
|
580
580
|
var j;
|
|
581
|
-
r === null ? j = "null" :
|
|
581
|
+
r === null ? j = "null" : te(r) ? j = "array" : r !== void 0 && r.$$typeof === a ? (j = "<" + (I(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", j, g);
|
|
582
582
|
}
|
|
583
|
-
var k = vr(r,
|
|
583
|
+
var k = vr(r, t, d, h, y);
|
|
584
584
|
if (k == null)
|
|
585
585
|
return k;
|
|
586
586
|
if (m) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
589
|
-
if (
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
587
|
+
var R = t.children;
|
|
588
|
+
if (R !== void 0)
|
|
589
|
+
if (p)
|
|
590
|
+
if (te(R)) {
|
|
591
|
+
for (var O = 0; O < R.length; O++)
|
|
592
|
+
_e(R[O], r);
|
|
593
|
+
Object.freeze && Object.freeze(R);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
w("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
596
596
|
else
|
|
597
|
-
|
|
597
|
+
_e(R, r);
|
|
598
598
|
}
|
|
599
|
-
if (B.call(
|
|
600
|
-
var
|
|
601
|
-
return
|
|
602
|
-
}), le =
|
|
603
|
-
if (!
|
|
604
|
-
var kr =
|
|
605
|
-
|
|
599
|
+
if (B.call(t, "key")) {
|
|
600
|
+
var _ = I(r), T = Object.keys(t).filter(function(Cr) {
|
|
601
|
+
return Cr !== "key";
|
|
602
|
+
}), le = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!Ae[_ + le]) {
|
|
604
|
+
var kr = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
w(`A props object containing a "key" prop is being spread into JSX:
|
|
606
606
|
let props = %s;
|
|
607
607
|
<%s {...props} />
|
|
608
608
|
React keys must be passed directly to JSX without using spread:
|
|
609
609
|
let props = %s;
|
|
610
|
-
<%s key={someKey} {...props} />`, le,
|
|
610
|
+
<%s key={someKey} {...props} />`, le, _, kr, _), Ae[_ + le] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return r === n ?
|
|
613
|
+
return r === n ? hr(k) : mr(k), k;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
function
|
|
617
|
-
return
|
|
616
|
+
function yr(r, t, d) {
|
|
617
|
+
return We(r, t, d, !0);
|
|
618
618
|
}
|
|
619
|
-
function xr(r,
|
|
620
|
-
return
|
|
619
|
+
function xr(r, t, d) {
|
|
620
|
+
return We(r, t, d, !1);
|
|
621
621
|
}
|
|
622
|
-
var br = xr, jr =
|
|
623
|
-
|
|
624
|
-
}()),
|
|
622
|
+
var br = xr, jr = yr;
|
|
623
|
+
N.Fragment = n, N.jsx = br, N.jsxs = jr;
|
|
624
|
+
}()), N;
|
|
625
625
|
}
|
|
626
|
-
process.env.NODE_ENV === "production" ? ce.exports = Sr() : ce.exports =
|
|
626
|
+
process.env.NODE_ENV === "production" ? ce.exports = Sr() : ce.exports = Tr();
|
|
627
627
|
var e = ce.exports;
|
|
628
|
-
const
|
|
628
|
+
const Hr = ({
|
|
629
629
|
variant: o = "primary",
|
|
630
|
-
size:
|
|
630
|
+
size: a = "md",
|
|
631
631
|
loading: s = !1,
|
|
632
632
|
icon: n,
|
|
633
633
|
children: l,
|
|
634
634
|
disabled: i,
|
|
635
635
|
...c
|
|
636
636
|
}) => {
|
|
637
|
-
const
|
|
637
|
+
const f = {
|
|
638
638
|
sm: { padding: "var(--space-xs) var(--space-sm)", fontSize: "0.85rem" },
|
|
639
639
|
md: { padding: "var(--space-sm) var(--space-md)", fontSize: "1rem" },
|
|
640
640
|
lg: { padding: "var(--space-md) var(--space-lg)", fontSize: "1.1rem" }
|
|
641
|
-
},
|
|
641
|
+
}, v = {
|
|
642
642
|
primary: {
|
|
643
643
|
backgroundColor: "var(--primary-color)",
|
|
644
644
|
color: "var(--surface-light)",
|
|
@@ -669,9 +669,9 @@ const Ur = ({
|
|
|
669
669
|
border: "2px solid var(--danger-color)",
|
|
670
670
|
boxShadow: "2px 2px 0 rgba(0,0,0,0.2)"
|
|
671
671
|
}
|
|
672
|
-
},
|
|
673
|
-
...
|
|
674
|
-
...
|
|
672
|
+
}, x = {
|
|
673
|
+
...f[a],
|
|
674
|
+
...v[o],
|
|
675
675
|
borderRadius: "var(--radius-md)",
|
|
676
676
|
fontFamily: "var(--font-sans)",
|
|
677
677
|
fontWeight: 600,
|
|
@@ -689,26 +689,26 @@ const Ur = ({
|
|
|
689
689
|
{
|
|
690
690
|
...c,
|
|
691
691
|
disabled: i || s,
|
|
692
|
-
style: { ...
|
|
693
|
-
onMouseDown: (
|
|
694
|
-
var
|
|
695
|
-
!i && !s && (
|
|
692
|
+
style: { ...x, ...c.style },
|
|
693
|
+
onMouseDown: (u) => {
|
|
694
|
+
var b;
|
|
695
|
+
!i && !s && (u.currentTarget.style.transform = "translate(2px, 2px)", u.currentTarget.style.boxShadow = "none"), (b = c.onMouseDown) == null || b.call(c, u);
|
|
696
696
|
},
|
|
697
|
-
onMouseUp: (
|
|
698
|
-
var
|
|
699
|
-
|
|
697
|
+
onMouseUp: (u) => {
|
|
698
|
+
var b;
|
|
699
|
+
u.currentTarget.style.transform = "translate(0, 0)", u.currentTarget.style.boxShadow = v[o].boxShadow || "none", (b = c.onMouseUp) == null || b.call(c, u);
|
|
700
700
|
},
|
|
701
|
-
onMouseLeave: (
|
|
702
|
-
var
|
|
703
|
-
|
|
701
|
+
onMouseLeave: (u) => {
|
|
702
|
+
var b;
|
|
703
|
+
u.currentTarget.style.transform = "translate(0, 0)", u.currentTarget.style.boxShadow = v[o].boxShadow || "none", (b = c.onMouseLeave) == null || b.call(c, u);
|
|
704
704
|
},
|
|
705
705
|
children: [
|
|
706
|
-
s ? /* @__PURE__ */ e.jsx(
|
|
706
|
+
s ? /* @__PURE__ */ e.jsx(Rr, { size: 16 }) : n,
|
|
707
707
|
l
|
|
708
708
|
]
|
|
709
709
|
}
|
|
710
710
|
);
|
|
711
|
-
},
|
|
711
|
+
}, Rr = ({ size: o }) => /* @__PURE__ */ e.jsxs("svg", { width: o, height: o, viewBox: "0 0 24 24", style: { animation: "spin 0.8s linear infinite" }, children: [
|
|
712
712
|
/* @__PURE__ */ e.jsx(
|
|
713
713
|
"circle",
|
|
714
714
|
{
|
|
@@ -723,17 +723,17 @@ const Ur = ({
|
|
|
723
723
|
}
|
|
724
724
|
),
|
|
725
725
|
/* @__PURE__ */ e.jsx("style", { children: "@keyframes spin { to { transform: rotate(360deg); } }" })
|
|
726
|
-
] }),
|
|
726
|
+
] }), Vr = ({
|
|
727
727
|
title: o,
|
|
728
|
-
subtitle:
|
|
728
|
+
subtitle: a,
|
|
729
729
|
children: s,
|
|
730
730
|
hoverable: n = !1,
|
|
731
731
|
padding: l = "lg",
|
|
732
732
|
className: i,
|
|
733
733
|
style: c,
|
|
734
|
-
onClick:
|
|
734
|
+
onClick: f
|
|
735
735
|
}) => {
|
|
736
|
-
const
|
|
736
|
+
const v = {
|
|
737
737
|
none: "0",
|
|
738
738
|
sm: "var(--space-sm)",
|
|
739
739
|
md: "var(--space-md)",
|
|
@@ -743,27 +743,27 @@ const Ur = ({
|
|
|
743
743
|
"div",
|
|
744
744
|
{
|
|
745
745
|
className: i,
|
|
746
|
-
onClick:
|
|
746
|
+
onClick: f,
|
|
747
747
|
style: {
|
|
748
748
|
backgroundColor: "var(--bg-color)",
|
|
749
749
|
borderRadius: "var(--radius-md)",
|
|
750
|
-
padding:
|
|
750
|
+
padding: v[l],
|
|
751
751
|
border: "2px solid var(--border-color)",
|
|
752
752
|
display: "flex",
|
|
753
753
|
flexDirection: "column",
|
|
754
754
|
gap: "var(--space-md)",
|
|
755
755
|
transition: "transform var(--transition-fast), box-shadow var(--transition-fast)",
|
|
756
|
-
cursor:
|
|
756
|
+
cursor: f ? "pointer" : "default",
|
|
757
757
|
...c
|
|
758
758
|
},
|
|
759
|
-
onMouseEnter: (
|
|
760
|
-
n && (
|
|
759
|
+
onMouseEnter: (x) => {
|
|
760
|
+
n && (x.currentTarget.style.transform = "translateY(-4px)", x.currentTarget.style.boxShadow = "var(--shadow-lg)");
|
|
761
761
|
},
|
|
762
|
-
onMouseLeave: (
|
|
763
|
-
n && (
|
|
762
|
+
onMouseLeave: (x) => {
|
|
763
|
+
n && (x.currentTarget.style.transform = "translateY(0)", x.currentTarget.style.boxShadow = "none");
|
|
764
764
|
},
|
|
765
765
|
children: [
|
|
766
|
-
(o ||
|
|
766
|
+
(o || a) && /* @__PURE__ */ e.jsxs("div", { style: { borderBottom: "1px solid var(--border-color)", paddingBottom: "var(--space-sm)" }, children: [
|
|
767
767
|
o && /* @__PURE__ */ e.jsx("h3", { style: {
|
|
768
768
|
margin: 0,
|
|
769
769
|
fontFamily: "var(--font-serif)",
|
|
@@ -771,21 +771,21 @@ const Ur = ({
|
|
|
771
771
|
fontWeight: 700,
|
|
772
772
|
color: "var(--heading-color)"
|
|
773
773
|
}, children: o }),
|
|
774
|
-
|
|
774
|
+
a && /* @__PURE__ */ e.jsx("p", { style: {
|
|
775
775
|
margin: "var(--space-xs) 0 0",
|
|
776
776
|
fontFamily: "var(--font-sans)",
|
|
777
777
|
fontSize: "0.9rem",
|
|
778
778
|
color: "var(--text-color)",
|
|
779
779
|
opacity: 0.7
|
|
780
|
-
}, children:
|
|
780
|
+
}, children: a })
|
|
781
781
|
] }),
|
|
782
782
|
/* @__PURE__ */ e.jsx("div", { style: { fontFamily: "var(--font-sans)", lineHeight: 1.6 }, children: s })
|
|
783
783
|
]
|
|
784
784
|
}
|
|
785
785
|
);
|
|
786
|
-
},
|
|
786
|
+
}, Kr = ({
|
|
787
787
|
children: o,
|
|
788
|
-
variant:
|
|
788
|
+
variant: a = "default",
|
|
789
789
|
size: s = "md"
|
|
790
790
|
}) => {
|
|
791
791
|
const n = {
|
|
@@ -827,7 +827,7 @@ const Ur = ({
|
|
|
827
827
|
{
|
|
828
828
|
style: {
|
|
829
829
|
...n[s],
|
|
830
|
-
...l[
|
|
830
|
+
...l[a],
|
|
831
831
|
borderRadius: "var(--radius-full)",
|
|
832
832
|
fontFamily: "var(--font-sans)",
|
|
833
833
|
fontWeight: 600,
|
|
@@ -844,12 +844,12 @@ const Ur = ({
|
|
|
844
844
|
);
|
|
845
845
|
}, Xr = ({
|
|
846
846
|
label: o,
|
|
847
|
-
error:
|
|
847
|
+
error: a,
|
|
848
848
|
hint: s,
|
|
849
849
|
icon: n,
|
|
850
850
|
...l
|
|
851
851
|
}) => {
|
|
852
|
-
const i = !!
|
|
852
|
+
const i = !!a;
|
|
853
853
|
return /* @__PURE__ */ e.jsxs("div", { style: { marginBottom: "var(--space-md)", width: "100%" }, children: [
|
|
854
854
|
o && /* @__PURE__ */ e.jsx("label", { style: {
|
|
855
855
|
display: "block",
|
|
@@ -887,28 +887,28 @@ const Ur = ({
|
|
|
887
887
|
...l.style
|
|
888
888
|
},
|
|
889
889
|
onFocus: (c) => {
|
|
890
|
-
var
|
|
891
|
-
c.currentTarget.style.borderColor = i ? "var(--danger-color)" : "var(--primary-color)", c.currentTarget.style.boxShadow = `0 0 0 3px ${i ? "rgba(229, 62, 62, 0.2)" : "rgba(26, 54, 93, 0.2)"}`, (
|
|
890
|
+
var f;
|
|
891
|
+
c.currentTarget.style.borderColor = i ? "var(--danger-color)" : "var(--primary-color)", c.currentTarget.style.boxShadow = `0 0 0 3px ${i ? "rgba(229, 62, 62, 0.2)" : "rgba(26, 54, 93, 0.2)"}`, (f = l.onFocus) == null || f.call(l, c);
|
|
892
892
|
},
|
|
893
893
|
onBlur: (c) => {
|
|
894
|
-
var
|
|
895
|
-
c.currentTarget.style.borderColor = i ? "var(--danger-color)" : "var(--border-color)", c.currentTarget.style.boxShadow = "none", (
|
|
894
|
+
var f;
|
|
895
|
+
c.currentTarget.style.borderColor = i ? "var(--danger-color)" : "var(--border-color)", c.currentTarget.style.boxShadow = "none", (f = l.onBlur) == null || f.call(l, c);
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
898
|
)
|
|
899
899
|
] }),
|
|
900
|
-
(
|
|
900
|
+
(a || s) && /* @__PURE__ */ e.jsx("p", { style: {
|
|
901
901
|
margin: "var(--space-xs) 0 0",
|
|
902
902
|
fontFamily: "var(--font-sans)",
|
|
903
903
|
fontSize: "0.8rem",
|
|
904
|
-
color:
|
|
905
|
-
opacity:
|
|
906
|
-
}, children:
|
|
904
|
+
color: a ? "var(--danger-color)" : "var(--text-color)",
|
|
905
|
+
opacity: a ? 1 : 0.6
|
|
906
|
+
}, children: a || s })
|
|
907
907
|
] });
|
|
908
908
|
};
|
|
909
|
-
function
|
|
909
|
+
function Gr({
|
|
910
910
|
columns: o,
|
|
911
|
-
data:
|
|
911
|
+
data: a,
|
|
912
912
|
keyExtractor: s,
|
|
913
913
|
onRowClick: n,
|
|
914
914
|
emptyMessage: l = "No data available",
|
|
@@ -939,7 +939,7 @@ function qr({
|
|
|
939
939
|
},
|
|
940
940
|
String(c.key)
|
|
941
941
|
)) }) }),
|
|
942
|
-
/* @__PURE__ */ e.jsx("tbody", { children:
|
|
942
|
+
/* @__PURE__ */ e.jsx("tbody", { children: a.length === 0 ? /* @__PURE__ */ e.jsx("tr", { children: /* @__PURE__ */ e.jsx(
|
|
943
943
|
"td",
|
|
944
944
|
{
|
|
945
945
|
colSpan: o.length,
|
|
@@ -951,33 +951,33 @@ function qr({
|
|
|
951
951
|
},
|
|
952
952
|
children: l
|
|
953
953
|
}
|
|
954
|
-
) }) :
|
|
954
|
+
) }) : a.map((c, f) => /* @__PURE__ */ e.jsx(
|
|
955
955
|
"tr",
|
|
956
956
|
{
|
|
957
957
|
onClick: () => n == null ? void 0 : n(c),
|
|
958
958
|
style: {
|
|
959
|
-
backgroundColor: i &&
|
|
959
|
+
backgroundColor: i && f % 2 === 1 ? "var(--secondary-color)" : "transparent",
|
|
960
960
|
cursor: n ? "pointer" : "default",
|
|
961
961
|
transition: "background-color var(--transition-fast)"
|
|
962
962
|
},
|
|
963
|
-
onMouseEnter: (
|
|
964
|
-
n && (
|
|
963
|
+
onMouseEnter: (v) => {
|
|
964
|
+
n && (v.currentTarget.style.backgroundColor = "var(--accent-color)");
|
|
965
965
|
},
|
|
966
|
-
onMouseLeave: (
|
|
967
|
-
|
|
966
|
+
onMouseLeave: (v) => {
|
|
967
|
+
v.currentTarget.style.backgroundColor = i && f % 2 === 1 ? "var(--secondary-color)" : "transparent";
|
|
968
968
|
},
|
|
969
|
-
children: o.map((
|
|
969
|
+
children: o.map((v) => /* @__PURE__ */ e.jsx(
|
|
970
970
|
"td",
|
|
971
971
|
{
|
|
972
972
|
style: {
|
|
973
973
|
padding: "var(--space-md)",
|
|
974
|
-
textAlign:
|
|
974
|
+
textAlign: v.align || "left",
|
|
975
975
|
color: "var(--text-color)",
|
|
976
976
|
borderBottom: "1px solid var(--border-color)"
|
|
977
977
|
},
|
|
978
|
-
children:
|
|
978
|
+
children: v.render ? v.render(c) : String(c[v.key] ?? "")
|
|
979
979
|
},
|
|
980
|
-
String(
|
|
980
|
+
String(v.key)
|
|
981
981
|
))
|
|
982
982
|
},
|
|
983
983
|
s(c)
|
|
@@ -986,20 +986,20 @@ function qr({
|
|
|
986
986
|
}
|
|
987
987
|
const Jr = ({
|
|
988
988
|
open: o,
|
|
989
|
-
onClose:
|
|
989
|
+
onClose: a,
|
|
990
990
|
title: s,
|
|
991
991
|
children: n,
|
|
992
992
|
size: l = "md",
|
|
993
993
|
showCloseButton: i = !0
|
|
994
994
|
}) => {
|
|
995
|
-
if (
|
|
996
|
-
const
|
|
997
|
-
|
|
995
|
+
if (Y(() => {
|
|
996
|
+
const f = (v) => {
|
|
997
|
+
v.key === "Escape" && a();
|
|
998
998
|
};
|
|
999
|
-
return o && (document.addEventListener("keydown",
|
|
1000
|
-
document.removeEventListener("keydown",
|
|
999
|
+
return o && (document.addEventListener("keydown", f), document.body.style.overflow = "hidden"), () => {
|
|
1000
|
+
document.removeEventListener("keydown", f), document.body.style.overflow = "";
|
|
1001
1001
|
};
|
|
1002
|
-
}, [o,
|
|
1002
|
+
}, [o, a]), !o) return null;
|
|
1003
1003
|
const c = {
|
|
1004
1004
|
sm: "400px",
|
|
1005
1005
|
md: "560px",
|
|
@@ -1025,7 +1025,7 @@ const Jr = ({
|
|
|
1025
1025
|
padding: "var(--space-md)",
|
|
1026
1026
|
animation: "fadeIn 0.2s ease"
|
|
1027
1027
|
},
|
|
1028
|
-
onClick:
|
|
1028
|
+
onClick: a,
|
|
1029
1029
|
children: [
|
|
1030
1030
|
/* @__PURE__ */ e.jsxs(
|
|
1031
1031
|
"div",
|
|
@@ -1043,7 +1043,7 @@ const Jr = ({
|
|
|
1043
1043
|
flexDirection: "column",
|
|
1044
1044
|
animation: "slideUp 0.2s ease"
|
|
1045
1045
|
},
|
|
1046
|
-
onClick: (
|
|
1046
|
+
onClick: (f) => f.stopPropagation(),
|
|
1047
1047
|
children: [
|
|
1048
1048
|
(s || i) && /* @__PURE__ */ e.jsxs("div", { style: {
|
|
1049
1049
|
display: "flex",
|
|
@@ -1069,7 +1069,7 @@ const Jr = ({
|
|
|
1069
1069
|
i && /* @__PURE__ */ e.jsx(
|
|
1070
1070
|
"button",
|
|
1071
1071
|
{
|
|
1072
|
-
onClick:
|
|
1072
|
+
onClick: a,
|
|
1073
1073
|
"aria-label": "Close modal",
|
|
1074
1074
|
style: {
|
|
1075
1075
|
background: "none",
|
|
@@ -1081,8 +1081,8 @@ const Jr = ({
|
|
|
1081
1081
|
opacity: 0.7,
|
|
1082
1082
|
transition: "opacity var(--transition-fast)"
|
|
1083
1083
|
},
|
|
1084
|
-
onMouseEnter: (
|
|
1085
|
-
onMouseLeave: (
|
|
1084
|
+
onMouseEnter: (f) => f.currentTarget.style.opacity = "1",
|
|
1085
|
+
onMouseLeave: (f) => f.currentTarget.style.opacity = "0.7",
|
|
1086
1086
|
children: /* @__PURE__ */ e.jsx("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ e.jsx("path", { d: "M18 6L6 18M6 6l12 12" }) })
|
|
1087
1087
|
}
|
|
1088
1088
|
)
|
|
@@ -1108,9 +1108,9 @@ const Jr = ({
|
|
|
1108
1108
|
]
|
|
1109
1109
|
}
|
|
1110
1110
|
);
|
|
1111
|
-
},
|
|
1111
|
+
}, qr = ({
|
|
1112
1112
|
children: o,
|
|
1113
|
-
variant:
|
|
1113
|
+
variant: a = "info",
|
|
1114
1114
|
title: s,
|
|
1115
1115
|
dismissible: n = !1,
|
|
1116
1116
|
onDismiss: l
|
|
@@ -1140,7 +1140,7 @@ const Jr = ({
|
|
|
1140
1140
|
iconColor: "var(--danger-color)",
|
|
1141
1141
|
icon: "✕"
|
|
1142
1142
|
}
|
|
1143
|
-
}[
|
|
1143
|
+
}[a];
|
|
1144
1144
|
return /* @__PURE__ */ e.jsxs(
|
|
1145
1145
|
"div",
|
|
1146
1146
|
{
|
|
@@ -1191,17 +1191,17 @@ const Jr = ({
|
|
|
1191
1191
|
transition: "opacity var(--transition-fast)",
|
|
1192
1192
|
flexShrink: 0
|
|
1193
1193
|
},
|
|
1194
|
-
onMouseEnter: (
|
|
1195
|
-
onMouseLeave: (
|
|
1194
|
+
onMouseEnter: (f) => f.currentTarget.style.opacity = "1",
|
|
1195
|
+
onMouseLeave: (f) => f.currentTarget.style.opacity = "0.5",
|
|
1196
1196
|
children: "✕"
|
|
1197
1197
|
}
|
|
1198
1198
|
)
|
|
1199
1199
|
]
|
|
1200
1200
|
}
|
|
1201
1201
|
);
|
|
1202
|
-
},
|
|
1202
|
+
}, Zr = ({
|
|
1203
1203
|
tabs: o,
|
|
1204
|
-
activeTab:
|
|
1204
|
+
activeTab: a,
|
|
1205
1205
|
onTabChange: s,
|
|
1206
1206
|
variant: n = "underline"
|
|
1207
1207
|
}) => {
|
|
@@ -1220,7 +1220,7 @@ const Jr = ({
|
|
|
1220
1220
|
borderRadius: l ? "0" : "var(--radius-md)"
|
|
1221
1221
|
},
|
|
1222
1222
|
children: o.map((i) => {
|
|
1223
|
-
const c = i.id ===
|
|
1223
|
+
const c = i.id === a;
|
|
1224
1224
|
return /* @__PURE__ */ e.jsx(
|
|
1225
1225
|
"button",
|
|
1226
1226
|
{
|
|
@@ -1244,11 +1244,11 @@ const Jr = ({
|
|
|
1244
1244
|
cursor: i.disabled ? "not-allowed" : "pointer",
|
|
1245
1245
|
transition: "all var(--transition-fast)"
|
|
1246
1246
|
},
|
|
1247
|
-
onMouseEnter: (
|
|
1248
|
-
!i.disabled && !c && (
|
|
1247
|
+
onMouseEnter: (f) => {
|
|
1248
|
+
!i.disabled && !c && (f.currentTarget.style.backgroundColor = l ? "rgba(0,0,0,0.05)" : "var(--accent-color)");
|
|
1249
1249
|
},
|
|
1250
|
-
onMouseLeave: (
|
|
1251
|
-
!i.disabled && !c && (
|
|
1250
|
+
onMouseLeave: (f) => {
|
|
1251
|
+
!i.disabled && !c && (f.currentTarget.style.backgroundColor = "transparent");
|
|
1252
1252
|
},
|
|
1253
1253
|
children: i.label
|
|
1254
1254
|
},
|
|
@@ -1262,9 +1262,9 @@ const Jr = ({
|
|
|
1262
1262
|
{
|
|
1263
1263
|
id: `panel-${i.id}`,
|
|
1264
1264
|
role: "tabpanel",
|
|
1265
|
-
hidden: i.id !==
|
|
1265
|
+
hidden: i.id !== a,
|
|
1266
1266
|
style: {
|
|
1267
|
-
display: i.id ===
|
|
1267
|
+
display: i.id === a ? "block" : "none"
|
|
1268
1268
|
},
|
|
1269
1269
|
children: i.content
|
|
1270
1270
|
},
|
|
@@ -1273,21 +1273,21 @@ const Jr = ({
|
|
|
1273
1273
|
] });
|
|
1274
1274
|
}, Qr = ({
|
|
1275
1275
|
content: o,
|
|
1276
|
-
children:
|
|
1276
|
+
children: a,
|
|
1277
1277
|
position: s = "top",
|
|
1278
1278
|
delay: n = 200
|
|
1279
1279
|
}) => {
|
|
1280
|
-
const [l, i] =
|
|
1281
|
-
|
|
1280
|
+
const [l, i] = A(!1), c = Pe(null), f = Pe(), v = () => {
|
|
1281
|
+
f.current = window.setTimeout(() => {
|
|
1282
1282
|
i(!0);
|
|
1283
1283
|
}, n);
|
|
1284
|
-
},
|
|
1285
|
-
|
|
1284
|
+
}, x = () => {
|
|
1285
|
+
f.current && clearTimeout(f.current), i(!1);
|
|
1286
1286
|
};
|
|
1287
|
-
|
|
1288
|
-
|
|
1287
|
+
Y(() => () => {
|
|
1288
|
+
f.current && clearTimeout(f.current);
|
|
1289
1289
|
}, []);
|
|
1290
|
-
const
|
|
1290
|
+
const u = {
|
|
1291
1291
|
top: { bottom: "100%", left: "50%", transform: "translateX(-50%) translateY(-8px)" },
|
|
1292
1292
|
bottom: { top: "100%", left: "50%", transform: "translateX(-50%) translateY(8px)" },
|
|
1293
1293
|
left: { right: "100%", top: "50%", transform: "translateY(-50%) translateX(-8px)" },
|
|
@@ -1298,19 +1298,19 @@ const Jr = ({
|
|
|
1298
1298
|
{
|
|
1299
1299
|
ref: c,
|
|
1300
1300
|
style: { position: "relative", display: "inline-block" },
|
|
1301
|
-
onMouseEnter:
|
|
1302
|
-
onMouseLeave:
|
|
1303
|
-
onFocus:
|
|
1304
|
-
onBlur:
|
|
1301
|
+
onMouseEnter: v,
|
|
1302
|
+
onMouseLeave: x,
|
|
1303
|
+
onFocus: v,
|
|
1304
|
+
onBlur: x,
|
|
1305
1305
|
children: [
|
|
1306
|
-
|
|
1306
|
+
a,
|
|
1307
1307
|
l && /* @__PURE__ */ e.jsxs(
|
|
1308
1308
|
"span",
|
|
1309
1309
|
{
|
|
1310
1310
|
role: "tooltip",
|
|
1311
1311
|
style: {
|
|
1312
1312
|
position: "absolute",
|
|
1313
|
-
...
|
|
1313
|
+
...u[s],
|
|
1314
1314
|
backgroundColor: "var(--secondary-color)",
|
|
1315
1315
|
color: "var(--surface-light)",
|
|
1316
1316
|
padding: "var(--space-xs) var(--space-sm)",
|
|
@@ -1339,7 +1339,7 @@ const Jr = ({
|
|
|
1339
1339
|
);
|
|
1340
1340
|
}, Er = ({
|
|
1341
1341
|
size: o = "md",
|
|
1342
|
-
color:
|
|
1342
|
+
color: a = "var(--primary-color)"
|
|
1343
1343
|
}) => {
|
|
1344
1344
|
const n = {
|
|
1345
1345
|
sm: 20,
|
|
@@ -1361,7 +1361,7 @@ const Jr = ({
|
|
|
1361
1361
|
cy: "25",
|
|
1362
1362
|
r: "20",
|
|
1363
1363
|
fill: "none",
|
|
1364
|
-
stroke:
|
|
1364
|
+
stroke: a,
|
|
1365
1365
|
strokeWidth: "4",
|
|
1366
1366
|
strokeDasharray: "80 40",
|
|
1367
1367
|
strokeLinecap: "round"
|
|
@@ -1376,7 +1376,7 @@ const Jr = ({
|
|
|
1376
1376
|
]
|
|
1377
1377
|
}
|
|
1378
1378
|
);
|
|
1379
|
-
},
|
|
1379
|
+
}, eo = ({
|
|
1380
1380
|
message: o = "Loading..."
|
|
1381
1381
|
}) => /* @__PURE__ */ e.jsxs("div", { style: {
|
|
1382
1382
|
position: "fixed",
|
|
@@ -1400,7 +1400,7 @@ const Jr = ({
|
|
|
1400
1400
|
}, children: o })
|
|
1401
1401
|
] }), $e = ({
|
|
1402
1402
|
width: o = "100%",
|
|
1403
|
-
height:
|
|
1403
|
+
height: a = 20,
|
|
1404
1404
|
variant: s = "text",
|
|
1405
1405
|
animation: n = "wave"
|
|
1406
1406
|
}) => {
|
|
@@ -1424,7 +1424,7 @@ const Jr = ({
|
|
|
1424
1424
|
{
|
|
1425
1425
|
style: {
|
|
1426
1426
|
width: o,
|
|
1427
|
-
height:
|
|
1427
|
+
height: a,
|
|
1428
1428
|
backgroundColor: n === "wave" ? void 0 : "var(--secondary-color)",
|
|
1429
1429
|
...l[s],
|
|
1430
1430
|
...i[n]
|
|
@@ -1441,14 +1441,14 @@ const Jr = ({
|
|
|
1441
1441
|
` })
|
|
1442
1442
|
}
|
|
1443
1443
|
);
|
|
1444
|
-
},
|
|
1444
|
+
}, Mr = ({ lines: o = 3 }) => /* @__PURE__ */ e.jsx("div", { style: { display: "flex", flexDirection: "column", gap: "var(--space-sm)" }, children: Array.from({ length: o }).map((a, s) => /* @__PURE__ */ e.jsx(
|
|
1445
1445
|
$e,
|
|
1446
1446
|
{
|
|
1447
1447
|
width: s === o - 1 ? "60%" : "100%",
|
|
1448
1448
|
height: 16
|
|
1449
1449
|
},
|
|
1450
1450
|
s
|
|
1451
|
-
)) }),
|
|
1451
|
+
)) }), ro = () => /* @__PURE__ */ e.jsxs("div", { style: {
|
|
1452
1452
|
padding: "var(--space-lg)",
|
|
1453
1453
|
border: "2px solid var(--border-color)",
|
|
1454
1454
|
borderRadius: "var(--radius-md)",
|
|
@@ -1457,18 +1457,18 @@ const Jr = ({
|
|
|
1457
1457
|
gap: "var(--space-md)"
|
|
1458
1458
|
}, children: [
|
|
1459
1459
|
/* @__PURE__ */ e.jsx($e, { height: 24, width: "50%" }),
|
|
1460
|
-
/* @__PURE__ */ e.jsx(
|
|
1461
|
-
] }),
|
|
1460
|
+
/* @__PURE__ */ e.jsx(Mr, { lines: 3 })
|
|
1461
|
+
] }), Fr = ({
|
|
1462
1462
|
brand: o,
|
|
1463
|
-
darkMode:
|
|
1463
|
+
darkMode: a,
|
|
1464
1464
|
onThemeToggle: s
|
|
1465
1465
|
}) => {
|
|
1466
|
-
const [n, l] =
|
|
1467
|
-
|
|
1468
|
-
const
|
|
1469
|
-
return
|
|
1466
|
+
const [n, l] = A(!1), [i, c] = A(!1), [f, v] = A(null);
|
|
1467
|
+
Y(() => {
|
|
1468
|
+
const u = () => l(window.innerWidth < 768);
|
|
1469
|
+
return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
|
|
1470
1470
|
}, []);
|
|
1471
|
-
const
|
|
1471
|
+
const x = o.navItems.filter((u) => u.inNavbar !== !1);
|
|
1472
1472
|
return /* @__PURE__ */ e.jsxs("header", { style: {
|
|
1473
1473
|
backgroundColor: "var(--primary-color)",
|
|
1474
1474
|
borderBottom: "4px solid var(--accent-color)",
|
|
@@ -1515,15 +1515,15 @@ const Jr = ({
|
|
|
1515
1515
|
gap: "var(--space-sm)",
|
|
1516
1516
|
flex: 1,
|
|
1517
1517
|
justifyContent: "center"
|
|
1518
|
-
}, children:
|
|
1518
|
+
}, children: x.map((u) => /* @__PURE__ */ e.jsx(
|
|
1519
1519
|
Ir,
|
|
1520
1520
|
{
|
|
1521
|
-
item:
|
|
1522
|
-
isActive:
|
|
1523
|
-
onHover: (
|
|
1524
|
-
onLeave: () =>
|
|
1521
|
+
item: u,
|
|
1522
|
+
isActive: f === u.label,
|
|
1523
|
+
onHover: (b) => v(b),
|
|
1524
|
+
onLeave: () => v(null)
|
|
1525
1525
|
},
|
|
1526
|
-
|
|
1526
|
+
u.label
|
|
1527
1527
|
)) }),
|
|
1528
1528
|
n && /* @__PURE__ */ e.jsx("div", { style: { flex: 1 } }),
|
|
1529
1529
|
/* @__PURE__ */ e.jsxs("div", { style: {
|
|
@@ -1532,8 +1532,8 @@ const Jr = ({
|
|
|
1532
1532
|
gap: "var(--space-xs)",
|
|
1533
1533
|
flexShrink: 0
|
|
1534
1534
|
}, children: [
|
|
1535
|
-
n && /* @__PURE__ */ e.jsx(
|
|
1536
|
-
/* @__PURE__ */ e.jsx(
|
|
1535
|
+
n && /* @__PURE__ */ e.jsx(Le, { onClick: () => c(!i), label: "Menu", size: 36, children: /* @__PURE__ */ e.jsx(Pr, {}) }),
|
|
1536
|
+
/* @__PURE__ */ e.jsx(Le, { onClick: s, label: "Toggle theme", size: 36, children: a ? /* @__PURE__ */ e.jsx(Ar, {}) : /* @__PURE__ */ e.jsx(_r, {}) }),
|
|
1537
1537
|
/* @__PURE__ */ e.jsx("a", { href: "/account", "aria-label": "Account", style: {
|
|
1538
1538
|
width: 40,
|
|
1539
1539
|
height: 40,
|
|
@@ -1547,20 +1547,20 @@ const Jr = ({
|
|
|
1547
1547
|
transition: "background var(--transition-fast)",
|
|
1548
1548
|
color: "var(--surface-light)",
|
|
1549
1549
|
textDecoration: "none"
|
|
1550
|
-
}, children: /* @__PURE__ */ e.jsx(
|
|
1550
|
+
}, children: /* @__PURE__ */ e.jsx(Wr, {}) })
|
|
1551
1551
|
] })
|
|
1552
1552
|
] }),
|
|
1553
1553
|
n && i && /* @__PURE__ */ e.jsx("div", { style: {
|
|
1554
1554
|
backgroundColor: "var(--bg-color)",
|
|
1555
1555
|
borderTop: "1px solid var(--border-color)",
|
|
1556
1556
|
padding: "var(--space-sm)"
|
|
1557
|
-
}, children:
|
|
1557
|
+
}, children: x.map((u) => /* @__PURE__ */ e.jsx(Dr, { item: u, onClose: () => c(!1) }, u.label)) })
|
|
1558
1558
|
] });
|
|
1559
|
-
},
|
|
1559
|
+
}, Le = ({ onClick: o, label: a, size: s = 36, children: n }) => /* @__PURE__ */ e.jsx(
|
|
1560
1560
|
"button",
|
|
1561
1561
|
{
|
|
1562
1562
|
onClick: o,
|
|
1563
|
-
"aria-label":
|
|
1563
|
+
"aria-label": a,
|
|
1564
1564
|
style: {
|
|
1565
1565
|
width: s,
|
|
1566
1566
|
height: s,
|
|
@@ -1578,7 +1578,7 @@ const Jr = ({
|
|
|
1578
1578
|
onMouseLeave: (l) => l.currentTarget.style.backgroundColor = "rgba(255,255,255,0.1)",
|
|
1579
1579
|
children: n
|
|
1580
1580
|
}
|
|
1581
|
-
), Ir = ({ item: o, isActive:
|
|
1581
|
+
), Ir = ({ item: o, isActive: a, onHover: s, onLeave: n }) => {
|
|
1582
1582
|
const l = () => {
|
|
1583
1583
|
o.onClick ? o.onClick() : o.path && (window.location.href = o.path);
|
|
1584
1584
|
};
|
|
@@ -1636,7 +1636,7 @@ const Jr = ({
|
|
|
1636
1636
|
]
|
|
1637
1637
|
}
|
|
1638
1638
|
),
|
|
1639
|
-
o.children &&
|
|
1639
|
+
o.children && a && /* @__PURE__ */ e.jsx("div", { style: {
|
|
1640
1640
|
position: "absolute",
|
|
1641
1641
|
top: "100%",
|
|
1642
1642
|
left: "50%",
|
|
@@ -1697,7 +1697,7 @@ const Jr = ({
|
|
|
1697
1697
|
]
|
|
1698
1698
|
}
|
|
1699
1699
|
);
|
|
1700
|
-
},
|
|
1700
|
+
}, Dr = ({ item: o, onClose: a }) => {
|
|
1701
1701
|
const s = {
|
|
1702
1702
|
display: "block",
|
|
1703
1703
|
width: "100%",
|
|
@@ -1713,29 +1713,29 @@ const Jr = ({
|
|
|
1713
1713
|
borderRadius: "var(--radius-sm)",
|
|
1714
1714
|
textDecoration: "none"
|
|
1715
1715
|
};
|
|
1716
|
-
return o.path && !o.onClick ? /* @__PURE__ */ e.jsx("a", { href: o.path, style: s, onClick:
|
|
1716
|
+
return o.path && !o.onClick ? /* @__PURE__ */ e.jsx("a", { href: o.path, style: s, onClick: a, children: o.label }) : /* @__PURE__ */ e.jsx(
|
|
1717
1717
|
"button",
|
|
1718
1718
|
{
|
|
1719
1719
|
onClick: () => {
|
|
1720
1720
|
var n;
|
|
1721
|
-
(n = o.onClick) == null || n.call(o),
|
|
1721
|
+
(n = o.onClick) == null || n.call(o), a();
|
|
1722
1722
|
},
|
|
1723
1723
|
style: s,
|
|
1724
1724
|
children: o.label
|
|
1725
1725
|
}
|
|
1726
1726
|
);
|
|
1727
|
-
},
|
|
1727
|
+
}, _r = () => /* @__PURE__ */ e.jsxs("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
1728
1728
|
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "5" }),
|
|
1729
1729
|
/* @__PURE__ */ e.jsx("path", { d: "M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42" })
|
|
1730
|
-
] }),
|
|
1730
|
+
] }), Ar = () => /* @__PURE__ */ e.jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ e.jsx("path", { d: "M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z" }) }), Wr = () => /* @__PURE__ */ e.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
1731
1731
|
/* @__PURE__ */ e.jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
1732
1732
|
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "7", r: "4" })
|
|
1733
|
-
] }),
|
|
1733
|
+
] }), Pr = () => /* @__PURE__ */ e.jsx("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: /* @__PURE__ */ e.jsx("path", { d: "M3 12h18M3 6h18M3 18h18" }) }), zr = ({
|
|
1734
1734
|
copyrightBrand: o,
|
|
1735
|
-
yearCreated:
|
|
1735
|
+
yearCreated: a,
|
|
1736
1736
|
poweredBy: s
|
|
1737
1737
|
}) => {
|
|
1738
|
-
const n = (/* @__PURE__ */ new Date()).getFullYear(), l =
|
|
1738
|
+
const n = (/* @__PURE__ */ new Date()).getFullYear(), l = a === n ? n.toString() : `${a}-${n}`;
|
|
1739
1739
|
return /* @__PURE__ */ e.jsx("footer", { style: {
|
|
1740
1740
|
backgroundColor: "var(--primary-color)",
|
|
1741
1741
|
color: "var(--text-dark)",
|
|
@@ -1774,34 +1774,34 @@ const Jr = ({
|
|
|
1774
1774
|
] })
|
|
1775
1775
|
] }) });
|
|
1776
1776
|
};
|
|
1777
|
-
function
|
|
1778
|
-
const [
|
|
1777
|
+
function Or(o) {
|
|
1778
|
+
const [a, s] = A(() => {
|
|
1779
1779
|
if (typeof window > "u") return !1;
|
|
1780
1780
|
const l = localStorage.getItem("theme-mode");
|
|
1781
1781
|
return l ? l === "dark" : o.theme.defaultTheme === "dark" ? !0 : o.theme.defaultTheme === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches : !1;
|
|
1782
1782
|
});
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
}, [o.theme]),
|
|
1786
|
-
document.body.classList.toggle("dark-mode",
|
|
1787
|
-
}, [
|
|
1788
|
-
const n =
|
|
1783
|
+
Y(() => {
|
|
1784
|
+
Lr(o.theme);
|
|
1785
|
+
}, [o.theme]), Y(() => {
|
|
1786
|
+
document.body.classList.toggle("dark-mode", a), localStorage.setItem("theme-mode", a ? "dark" : "light");
|
|
1787
|
+
}, [a]);
|
|
1788
|
+
const n = wr(() => {
|
|
1789
1789
|
s((l) => !l);
|
|
1790
1790
|
}, []);
|
|
1791
|
-
return { darkMode:
|
|
1791
|
+
return { darkMode: a, toggleDarkMode: n };
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1794
|
-
const
|
|
1795
|
-
|
|
1793
|
+
function Lr(o) {
|
|
1794
|
+
const a = document.documentElement;
|
|
1795
|
+
a.style.setProperty("--primary-color", o.primaryColor), a.style.setProperty("--secondary-color", o.secondaryColor), a.style.setProperty("--accent-color", o.accentColor), o.surfaceLight && a.style.setProperty("--surface-light", o.surfaceLight), o.surfaceDark && a.style.setProperty("--surface-dark", o.surfaceDark), o.textLight && a.style.setProperty("--text-light", o.textLight), o.textDark && a.style.setProperty("--text-dark", o.textDark);
|
|
1796
1796
|
}
|
|
1797
1797
|
const U = ({
|
|
1798
1798
|
brand: o,
|
|
1799
|
-
children:
|
|
1799
|
+
children: a
|
|
1800
1800
|
}) => {
|
|
1801
|
-
const { darkMode: s, toggleDarkMode: n } =
|
|
1801
|
+
const { darkMode: s, toggleDarkMode: n } = Or(o);
|
|
1802
1802
|
return /* @__PURE__ */ e.jsxs("div", { className: "shell", style: { display: "flex", flexDirection: "column", minHeight: "100vh" }, children: [
|
|
1803
1803
|
/* @__PURE__ */ e.jsx(
|
|
1804
|
-
|
|
1804
|
+
Fr,
|
|
1805
1805
|
{
|
|
1806
1806
|
brand: o,
|
|
1807
1807
|
darkMode: s,
|
|
@@ -1811,9 +1811,9 @@ const U = ({
|
|
|
1811
1811
|
/* @__PURE__ */ e.jsx("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ e.jsx("main", { style: {
|
|
1812
1812
|
flex: 1,
|
|
1813
1813
|
backgroundColor: "var(--bg-color)"
|
|
1814
|
-
}, children:
|
|
1814
|
+
}, children: a }) }),
|
|
1815
1815
|
/* @__PURE__ */ e.jsx(
|
|
1816
|
-
|
|
1816
|
+
zr,
|
|
1817
1817
|
{
|
|
1818
1818
|
copyrightBrand: o.footer.copyrightBrand,
|
|
1819
1819
|
yearCreated: o.footer.yearCreated,
|
|
@@ -1823,7 +1823,7 @@ const U = ({
|
|
|
1823
1823
|
] });
|
|
1824
1824
|
}, H = ({
|
|
1825
1825
|
title: o,
|
|
1826
|
-
subtitle:
|
|
1826
|
+
subtitle: a,
|
|
1827
1827
|
breadcrumbs: s,
|
|
1828
1828
|
score: n
|
|
1829
1829
|
}) => /* @__PURE__ */ e.jsxs("section", { style: {
|
|
@@ -1862,13 +1862,13 @@ const U = ({
|
|
|
1862
1862
|
color: "var(--text-dark)",
|
|
1863
1863
|
letterSpacing: "0.02em"
|
|
1864
1864
|
}, children: o }),
|
|
1865
|
-
|
|
1865
|
+
a && /* @__PURE__ */ e.jsx("p", { style: {
|
|
1866
1866
|
margin: "var(--space-sm) 0 0",
|
|
1867
1867
|
fontFamily: "var(--font-sans)",
|
|
1868
1868
|
fontSize: "1.1rem",
|
|
1869
1869
|
color: "var(--text-dark)",
|
|
1870
1870
|
opacity: 0.8
|
|
1871
|
-
}, children:
|
|
1871
|
+
}, children: a }),
|
|
1872
1872
|
n && /* @__PURE__ */ e.jsxs("div", { style: {
|
|
1873
1873
|
marginTop: "var(--space-md)",
|
|
1874
1874
|
display: "inline-flex",
|
|
@@ -1931,7 +1931,7 @@ const U = ({
|
|
|
1931
1931
|
] })
|
|
1932
1932
|
}, V = ({
|
|
1933
1933
|
stats: o,
|
|
1934
|
-
columns:
|
|
1934
|
+
columns: a = 4
|
|
1935
1935
|
}) => {
|
|
1936
1936
|
const s = [
|
|
1937
1937
|
{ label: "Total Events", value: o.totalEvents, icon: E.violations },
|
|
@@ -1954,7 +1954,7 @@ const U = ({
|
|
|
1954
1954
|
className: "stat-grid",
|
|
1955
1955
|
style: {
|
|
1956
1956
|
display: "grid",
|
|
1957
|
-
gridTemplateColumns: `repeat(${
|
|
1957
|
+
gridTemplateColumns: `repeat(${a}, 1fr)`,
|
|
1958
1958
|
gap: "var(--space-md)"
|
|
1959
1959
|
},
|
|
1960
1960
|
children: s.map((n) => /* @__PURE__ */ e.jsx(Br, { ...n }, n.label))
|
|
@@ -1962,7 +1962,7 @@ const U = ({
|
|
|
1962
1962
|
) });
|
|
1963
1963
|
}, Br = ({
|
|
1964
1964
|
label: o,
|
|
1965
|
-
value:
|
|
1965
|
+
value: a,
|
|
1966
1966
|
icon: s
|
|
1967
1967
|
}) => /* @__PURE__ */ e.jsxs(
|
|
1968
1968
|
"div",
|
|
@@ -1992,7 +1992,7 @@ const U = ({
|
|
|
1992
1992
|
fontWeight: 700,
|
|
1993
1993
|
fontSize: "1.5rem",
|
|
1994
1994
|
color: "var(--heading-color)"
|
|
1995
|
-
}, children: typeof
|
|
1995
|
+
}, children: typeof a == "number" ? a.toLocaleString() : a }),
|
|
1996
1996
|
/* @__PURE__ */ e.jsx("div", { style: {
|
|
1997
1997
|
fontFamily: "var(--font-sans)",
|
|
1998
1998
|
fontSize: "0.9rem",
|
|
@@ -2006,17 +2006,17 @@ const U = ({
|
|
|
2006
2006
|
function Be(o) {
|
|
2007
2007
|
return o >= 1e6 ? `$${(o / 1e6).toFixed(1)}M` : o >= 1e3 ? `$${(o / 1e3).toFixed(0)}K` : `$${o.toLocaleString()}`;
|
|
2008
2008
|
}
|
|
2009
|
-
const
|
|
2009
|
+
const Q = ({
|
|
2010
2010
|
title: o,
|
|
2011
|
-
items:
|
|
2011
|
+
items: a,
|
|
2012
2012
|
basePath: s,
|
|
2013
2013
|
emptyMessage: n = "No items found",
|
|
2014
2014
|
showSearch: l = !0,
|
|
2015
2015
|
initialLimit: i = 30
|
|
2016
2016
|
}) => {
|
|
2017
|
-
const [c,
|
|
2018
|
-
(
|
|
2019
|
-
),
|
|
2017
|
+
const [c, f] = A(""), [v, x] = A(!1), u = a.filter(
|
|
2018
|
+
(C) => C.name.toLowerCase().includes(c.toLowerCase())
|
|
2019
|
+
), b = v || c.length > 0, M = b ? u : u.slice(0, i), W = u.length > i && !b;
|
|
2020
2020
|
return /* @__PURE__ */ e.jsx("section", { style: {
|
|
2021
2021
|
marginBottom: "var(--space-lg)"
|
|
2022
2022
|
}, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
@@ -2041,17 +2041,17 @@ const Z = ({
|
|
|
2041
2041
|
opacity: 0.6
|
|
2042
2042
|
}, children: [
|
|
2043
2043
|
"(",
|
|
2044
|
-
|
|
2044
|
+
a.length,
|
|
2045
2045
|
")"
|
|
2046
2046
|
] })
|
|
2047
2047
|
] }),
|
|
2048
|
-
l &&
|
|
2048
|
+
l && a.length > 10 && /* @__PURE__ */ e.jsx(
|
|
2049
2049
|
"input",
|
|
2050
2050
|
{
|
|
2051
2051
|
type: "text",
|
|
2052
2052
|
placeholder: "Search...",
|
|
2053
2053
|
value: c,
|
|
2054
|
-
onChange: (
|
|
2054
|
+
onChange: (C) => f(C.target.value),
|
|
2055
2055
|
style: {
|
|
2056
2056
|
padding: "var(--space-sm) var(--space-md)",
|
|
2057
2057
|
borderRadius: "var(--radius-md)",
|
|
@@ -2072,7 +2072,7 @@ const Z = ({
|
|
|
2072
2072
|
padding: "var(--space-md)",
|
|
2073
2073
|
border: "2px solid var(--border-color)",
|
|
2074
2074
|
borderRadius: "var(--radius-md)"
|
|
2075
|
-
}, children:
|
|
2075
|
+
}, children: u.length === 0 ? /* @__PURE__ */ e.jsx("p", { style: {
|
|
2076
2076
|
width: "100%",
|
|
2077
2077
|
textAlign: "center",
|
|
2078
2078
|
color: "var(--text-color)",
|
|
@@ -2080,10 +2080,10 @@ const Z = ({
|
|
|
2080
2080
|
margin: 0,
|
|
2081
2081
|
padding: "var(--space-lg)"
|
|
2082
2082
|
}, children: n }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2083
|
-
|
|
2083
|
+
M.map((C) => /* @__PURE__ */ e.jsxs(
|
|
2084
2084
|
"a",
|
|
2085
2085
|
{
|
|
2086
|
-
href: `${s}/${
|
|
2086
|
+
href: `${s}/${C.slug}`,
|
|
2087
2087
|
style: {
|
|
2088
2088
|
display: "inline-flex",
|
|
2089
2089
|
alignItems: "center",
|
|
@@ -2099,18 +2099,18 @@ const Z = ({
|
|
|
2099
2099
|
transition: "all var(--transition-fast)",
|
|
2100
2100
|
whiteSpace: "nowrap"
|
|
2101
2101
|
},
|
|
2102
|
-
onMouseEnter: (
|
|
2103
|
-
|
|
2102
|
+
onMouseEnter: (F) => {
|
|
2103
|
+
F.currentTarget.style.backgroundColor = "var(--primary-color)", F.currentTarget.style.color = "var(--surface-light)", F.currentTarget.style.borderColor = "var(--primary-color)";
|
|
2104
2104
|
},
|
|
2105
|
-
onMouseLeave: (
|
|
2106
|
-
|
|
2105
|
+
onMouseLeave: (F) => {
|
|
2106
|
+
F.currentTarget.style.backgroundColor = "var(--bg-color)", F.currentTarget.style.color = "var(--text-color)", F.currentTarget.style.borderColor = "var(--border-color)";
|
|
2107
2107
|
},
|
|
2108
2108
|
children: [
|
|
2109
|
-
/* @__PURE__ */ e.jsx("span", { style: { fontWeight: 500 }, children:
|
|
2109
|
+
/* @__PURE__ */ e.jsx("span", { style: { fontWeight: 500 }, children: C.name }),
|
|
2110
2110
|
/* @__PURE__ */ e.jsx(
|
|
2111
2111
|
"span",
|
|
2112
2112
|
{
|
|
2113
|
-
title: `${
|
|
2113
|
+
title: `${C.count.toLocaleString()} incidents`,
|
|
2114
2114
|
style: {
|
|
2115
2115
|
backgroundColor: "var(--secondary-color)",
|
|
2116
2116
|
color: "var(--surface-light)",
|
|
@@ -2119,17 +2119,17 @@ const Z = ({
|
|
|
2119
2119
|
fontSize: "0.75rem",
|
|
2120
2120
|
fontWeight: 600
|
|
2121
2121
|
},
|
|
2122
|
-
children:
|
|
2122
|
+
children: C.count.toLocaleString()
|
|
2123
2123
|
}
|
|
2124
2124
|
)
|
|
2125
2125
|
]
|
|
2126
2126
|
},
|
|
2127
|
-
|
|
2127
|
+
C.slug
|
|
2128
2128
|
)),
|
|
2129
|
-
(
|
|
2129
|
+
(W || v) && /* @__PURE__ */ e.jsx(
|
|
2130
2130
|
"button",
|
|
2131
2131
|
{
|
|
2132
|
-
onClick: () =>
|
|
2132
|
+
onClick: () => x(!v),
|
|
2133
2133
|
style: {
|
|
2134
2134
|
display: "inline-flex",
|
|
2135
2135
|
alignItems: "center",
|
|
@@ -2145,23 +2145,23 @@ const Z = ({
|
|
|
2145
2145
|
cursor: "pointer",
|
|
2146
2146
|
transition: "all var(--transition-fast)"
|
|
2147
2147
|
},
|
|
2148
|
-
onMouseEnter: (
|
|
2149
|
-
|
|
2148
|
+
onMouseEnter: (C) => {
|
|
2149
|
+
C.currentTarget.style.opacity = "0.8";
|
|
2150
2150
|
},
|
|
2151
|
-
onMouseLeave: (
|
|
2152
|
-
|
|
2151
|
+
onMouseLeave: (C) => {
|
|
2152
|
+
C.currentTarget.style.opacity = "1";
|
|
2153
2153
|
},
|
|
2154
|
-
children:
|
|
2154
|
+
children: v ? "Show less" : `+${u.length - i} more`
|
|
2155
2155
|
}
|
|
2156
2156
|
)
|
|
2157
2157
|
] }) })
|
|
2158
2158
|
] }) });
|
|
2159
2159
|
}, ee = ({
|
|
2160
2160
|
title: o,
|
|
2161
|
-
events:
|
|
2161
|
+
events: a,
|
|
2162
2162
|
viewMorePath: s,
|
|
2163
2163
|
showAgencyBadge: n = !1
|
|
2164
|
-
}) =>
|
|
2164
|
+
}) => a.length === 0 ? null : /* @__PURE__ */ e.jsx("section", { style: {
|
|
2165
2165
|
marginBottom: "var(--space-lg)"
|
|
2166
2166
|
}, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
2167
2167
|
/* @__PURE__ */ e.jsxs("div", { style: {
|
|
@@ -2195,7 +2195,7 @@ const Z = ({
|
|
|
2195
2195
|
display: "flex",
|
|
2196
2196
|
flexDirection: "column",
|
|
2197
2197
|
gap: "var(--space-sm)"
|
|
2198
|
-
}, children:
|
|
2198
|
+
}, children: a.map((l) => /* @__PURE__ */ e.jsx(
|
|
2199
2199
|
$r,
|
|
2200
2200
|
{
|
|
2201
2201
|
event: l,
|
|
@@ -2205,7 +2205,7 @@ const Z = ({
|
|
|
2205
2205
|
)) })
|
|
2206
2206
|
] }) }), $r = ({
|
|
2207
2207
|
event: o,
|
|
2208
|
-
showAgencyBadge:
|
|
2208
|
+
showAgencyBadge: a
|
|
2209
2209
|
}) => /* @__PURE__ */ e.jsx(
|
|
2210
2210
|
"div",
|
|
2211
2211
|
{
|
|
@@ -2248,7 +2248,7 @@ const Z = ({
|
|
|
2248
2248
|
alignItems: "flex-end",
|
|
2249
2249
|
gap: "var(--space-xs)"
|
|
2250
2250
|
}, children: [
|
|
2251
|
-
|
|
2251
|
+
a && /* @__PURE__ */ e.jsx("span", { style: {
|
|
2252
2252
|
backgroundColor: "var(--primary-color)",
|
|
2253
2253
|
color: "var(--bg-color)",
|
|
2254
2254
|
padding: "var(--space-xs) var(--space-sm)",
|
|
@@ -2263,7 +2263,7 @@ const Z = ({
|
|
|
2263
2263
|
fontSize: "0.85rem",
|
|
2264
2264
|
color: "var(--text-color)",
|
|
2265
2265
|
opacity: 0.6
|
|
2266
|
-
}, children:
|
|
2266
|
+
}, children: Nr(o.eventDate) }),
|
|
2267
2267
|
(o.city || o.state) && /* @__PURE__ */ e.jsx("span", { style: {
|
|
2268
2268
|
fontFamily: "var(--font-sans)",
|
|
2269
2269
|
fontSize: "0.85rem",
|
|
@@ -2294,7 +2294,7 @@ const Z = ({
|
|
|
2294
2294
|
] })
|
|
2295
2295
|
}
|
|
2296
2296
|
);
|
|
2297
|
-
function
|
|
2297
|
+
function Nr(o) {
|
|
2298
2298
|
try {
|
|
2299
2299
|
return new Date(o).toLocaleDateString("en-US", {
|
|
2300
2300
|
year: "numeric",
|
|
@@ -2305,16 +2305,16 @@ function Yr(o) {
|
|
|
2305
2305
|
return o;
|
|
2306
2306
|
}
|
|
2307
2307
|
}
|
|
2308
|
-
const
|
|
2308
|
+
const oo = ({
|
|
2309
2309
|
position: o,
|
|
2310
|
-
width:
|
|
2310
|
+
width: a,
|
|
2311
2311
|
height: s
|
|
2312
2312
|
}) => {
|
|
2313
2313
|
const n = {
|
|
2314
|
-
sidebar: { width:
|
|
2315
|
-
"left-sidebar": { width:
|
|
2316
|
-
banner: { width:
|
|
2317
|
-
inline: { width:
|
|
2314
|
+
sidebar: { width: a ?? 280, height: s ?? 250 },
|
|
2315
|
+
"left-sidebar": { width: a ?? "100%", height: s ?? 200 },
|
|
2316
|
+
banner: { width: a ?? "100%", height: s ?? 90 },
|
|
2317
|
+
inline: { width: a ?? "100%", height: s ?? 120 }
|
|
2318
2318
|
}, { width: l, height: i } = n[o];
|
|
2319
2319
|
return /* @__PURE__ */ e.jsxs(
|
|
2320
2320
|
"div",
|
|
@@ -2341,11 +2341,11 @@ const ro = ({
|
|
|
2341
2341
|
]
|
|
2342
2342
|
}
|
|
2343
2343
|
);
|
|
2344
|
-
},
|
|
2344
|
+
}, K = ({
|
|
2345
2345
|
meta: o
|
|
2346
2346
|
}) => {
|
|
2347
2347
|
if (!o) return null;
|
|
2348
|
-
const
|
|
2348
|
+
const a = o ? [
|
|
2349
2349
|
o.population && { label: "Population", value: o.population.toLocaleString() },
|
|
2350
2350
|
o.industry && { label: "Industry", value: o.industry },
|
|
2351
2351
|
o.founded && { label: "Founded", value: o.founded },
|
|
@@ -2355,7 +2355,7 @@ const ro = ({
|
|
|
2355
2355
|
display: "flex",
|
|
2356
2356
|
flexDirection: "column",
|
|
2357
2357
|
gap: "var(--space-md)"
|
|
2358
|
-
}, children:
|
|
2358
|
+
}, children: a.length > 0 && /* @__PURE__ */ e.jsxs("div", { style: {
|
|
2359
2359
|
padding: "var(--space-lg)",
|
|
2360
2360
|
backgroundColor: "var(--bg-color)",
|
|
2361
2361
|
border: "2px solid var(--border-color)",
|
|
@@ -2396,7 +2396,7 @@ const ro = ({
|
|
|
2396
2396
|
style: { width: "100%", height: "auto", display: "block" }
|
|
2397
2397
|
}
|
|
2398
2398
|
) }),
|
|
2399
|
-
/* @__PURE__ */ e.jsx("dl", { style: { margin: 0 }, children:
|
|
2399
|
+
/* @__PURE__ */ e.jsx("dl", { style: { margin: 0 }, children: a.map(({ label: s, value: n }) => /* @__PURE__ */ e.jsxs(
|
|
2400
2400
|
"div",
|
|
2401
2401
|
{
|
|
2402
2402
|
style: {
|
|
@@ -2425,7 +2425,7 @@ const ro = ({
|
|
|
2425
2425
|
s
|
|
2426
2426
|
)) })
|
|
2427
2427
|
] }) });
|
|
2428
|
-
},
|
|
2428
|
+
}, X = () => /* @__PURE__ */ e.jsx("aside", { className: "page-filters", style: {
|
|
2429
2429
|
display: "flex",
|
|
2430
2430
|
flexDirection: "column",
|
|
2431
2431
|
gap: "var(--space-md)"
|
|
@@ -2513,7 +2513,7 @@ const ro = ({
|
|
|
2513
2513
|
/* @__PURE__ */ e.jsx("option", { children: "Alphabetical" })
|
|
2514
2514
|
] })
|
|
2515
2515
|
] })
|
|
2516
|
-
] }) }),
|
|
2516
|
+
] }) }), ao = () => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2517
2517
|
/* @__PURE__ */ e.jsx("style", { children: `
|
|
2518
2518
|
.mobile-ad-banner {
|
|
2519
2519
|
display: none;
|
|
@@ -2558,13 +2558,13 @@ const ro = ({
|
|
|
2558
2558
|
) })
|
|
2559
2559
|
] }), to = ({
|
|
2560
2560
|
brand: o,
|
|
2561
|
-
data:
|
|
2561
|
+
data: a
|
|
2562
2562
|
}) => {
|
|
2563
2563
|
const s = [
|
|
2564
2564
|
{ label: "Home", path: "/" },
|
|
2565
|
-
{ label:
|
|
2566
|
-
], n = o.scoreConfig &&
|
|
2567
|
-
value:
|
|
2565
|
+
{ label: a.name }
|
|
2566
|
+
], n = o.scoreConfig && a.stats.score !== void 0 ? {
|
|
2567
|
+
value: a.stats.score,
|
|
2568
2568
|
label: o.scoreConfig.name,
|
|
2569
2569
|
betaDisclaimer: o.scoreConfig.betaDisclaimer
|
|
2570
2570
|
} : void 0;
|
|
@@ -2576,44 +2576,44 @@ const ro = ({
|
|
|
2576
2576
|
/* @__PURE__ */ e.jsx(
|
|
2577
2577
|
H,
|
|
2578
2578
|
{
|
|
2579
|
-
title:
|
|
2579
|
+
title: a.name,
|
|
2580
2580
|
subtitle: o.tagline || "Explore worker safety data across the nation",
|
|
2581
2581
|
breadcrumbs: s,
|
|
2582
2582
|
score: n
|
|
2583
2583
|
}
|
|
2584
2584
|
),
|
|
2585
2585
|
/* @__PURE__ */ e.jsxs("div", { className: "page-layout", children: [
|
|
2586
|
-
/* @__PURE__ */ e.jsx(
|
|
2586
|
+
/* @__PURE__ */ e.jsx(X, {}),
|
|
2587
2587
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2588
|
-
/* @__PURE__ */ e.jsx(V, { stats:
|
|
2588
|
+
/* @__PURE__ */ e.jsx(V, { stats: a.stats, columns: 4 }),
|
|
2589
2589
|
/* @__PURE__ */ e.jsx(
|
|
2590
|
-
|
|
2590
|
+
Q,
|
|
2591
2591
|
{
|
|
2592
2592
|
title: "States & Territories",
|
|
2593
|
-
items:
|
|
2593
|
+
items: a.directory,
|
|
2594
2594
|
basePath: "/state",
|
|
2595
2595
|
initialLimit: 60
|
|
2596
2596
|
}
|
|
2597
2597
|
)
|
|
2598
2598
|
] }),
|
|
2599
|
-
/* @__PURE__ */ e.jsx(
|
|
2599
|
+
/* @__PURE__ */ e.jsx(K, { meta: a.meta })
|
|
2600
2600
|
] })
|
|
2601
2601
|
]
|
|
2602
2602
|
}
|
|
2603
2603
|
);
|
|
2604
|
-
},
|
|
2604
|
+
}, no = ({
|
|
2605
2605
|
brand: o,
|
|
2606
|
-
data:
|
|
2606
|
+
data: a
|
|
2607
2607
|
}) => {
|
|
2608
2608
|
const s = [
|
|
2609
2609
|
{ label: "Home", path: "/" },
|
|
2610
2610
|
{ label: "USA", path: "/usa" },
|
|
2611
|
-
{ label:
|
|
2612
|
-
], n = o.scoreConfig &&
|
|
2613
|
-
value:
|
|
2611
|
+
{ label: a.name }
|
|
2612
|
+
], n = o.scoreConfig && a.stats.score !== void 0 ? {
|
|
2613
|
+
value: a.stats.score,
|
|
2614
2614
|
label: o.scoreConfig.name,
|
|
2615
2615
|
betaDisclaimer: o.scoreConfig.betaDisclaimer
|
|
2616
|
-
} : void 0, l = Object.keys(
|
|
2616
|
+
} : void 0, l = Object.keys(a.recentByAgency);
|
|
2617
2617
|
return /* @__PURE__ */ e.jsxs(
|
|
2618
2618
|
U,
|
|
2619
2619
|
{
|
|
@@ -2622,21 +2622,21 @@ const ro = ({
|
|
|
2622
2622
|
/* @__PURE__ */ e.jsx(
|
|
2623
2623
|
H,
|
|
2624
2624
|
{
|
|
2625
|
-
title:
|
|
2626
|
-
subtitle: `Worker safety data for ${
|
|
2625
|
+
title: a.name,
|
|
2626
|
+
subtitle: `Worker safety data for ${a.name}`,
|
|
2627
2627
|
breadcrumbs: s,
|
|
2628
2628
|
score: n
|
|
2629
2629
|
}
|
|
2630
2630
|
),
|
|
2631
2631
|
/* @__PURE__ */ e.jsxs("div", { className: "page-layout", children: [
|
|
2632
|
-
/* @__PURE__ */ e.jsx(
|
|
2632
|
+
/* @__PURE__ */ e.jsx(X, {}),
|
|
2633
2633
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2634
|
-
/* @__PURE__ */ e.jsx(V, { stats:
|
|
2634
|
+
/* @__PURE__ */ e.jsx(V, { stats: a.stats }),
|
|
2635
2635
|
/* @__PURE__ */ e.jsx(
|
|
2636
|
-
|
|
2636
|
+
Q,
|
|
2637
2637
|
{
|
|
2638
2638
|
title: "Cities",
|
|
2639
|
-
items:
|
|
2639
|
+
items: a.directory,
|
|
2640
2640
|
basePath: "/city"
|
|
2641
2641
|
}
|
|
2642
2642
|
),
|
|
@@ -2644,32 +2644,88 @@ const ro = ({
|
|
|
2644
2644
|
ee,
|
|
2645
2645
|
{
|
|
2646
2646
|
title: `Recent ${i} Incidents`,
|
|
2647
|
-
events:
|
|
2648
|
-
viewMorePath: `/${
|
|
2647
|
+
events: a.recentByAgency[i],
|
|
2648
|
+
viewMorePath: `/${a.slug.toLowerCase()}/events/${i.toLowerCase()}`,
|
|
2649
2649
|
showAgencyBadge: !1
|
|
2650
2650
|
},
|
|
2651
2651
|
i
|
|
2652
2652
|
))
|
|
2653
2653
|
] }),
|
|
2654
|
-
/* @__PURE__ */ e.jsx(
|
|
2654
|
+
/* @__PURE__ */ e.jsx(K, { meta: a.meta })
|
|
2655
2655
|
] })
|
|
2656
2656
|
]
|
|
2657
2657
|
}
|
|
2658
2658
|
);
|
|
2659
|
-
},
|
|
2659
|
+
}, Yr = {
|
|
2660
|
+
AL: "Alabama",
|
|
2661
|
+
AK: "Alaska",
|
|
2662
|
+
AZ: "Arizona",
|
|
2663
|
+
AR: "Arkansas",
|
|
2664
|
+
CA: "California",
|
|
2665
|
+
CO: "Colorado",
|
|
2666
|
+
CT: "Connecticut",
|
|
2667
|
+
DE: "Delaware",
|
|
2668
|
+
FL: "Florida",
|
|
2669
|
+
GA: "Georgia",
|
|
2670
|
+
HI: "Hawaii",
|
|
2671
|
+
ID: "Idaho",
|
|
2672
|
+
IL: "Illinois",
|
|
2673
|
+
IN: "Indiana",
|
|
2674
|
+
IA: "Iowa",
|
|
2675
|
+
KS: "Kansas",
|
|
2676
|
+
KY: "Kentucky",
|
|
2677
|
+
LA: "Louisiana",
|
|
2678
|
+
ME: "Maine",
|
|
2679
|
+
MD: "Maryland",
|
|
2680
|
+
MA: "Massachusetts",
|
|
2681
|
+
MI: "Michigan",
|
|
2682
|
+
MN: "Minnesota",
|
|
2683
|
+
MS: "Mississippi",
|
|
2684
|
+
MO: "Missouri",
|
|
2685
|
+
MT: "Montana",
|
|
2686
|
+
NE: "Nebraska",
|
|
2687
|
+
NV: "Nevada",
|
|
2688
|
+
NH: "New Hampshire",
|
|
2689
|
+
NJ: "New Jersey",
|
|
2690
|
+
NM: "New Mexico",
|
|
2691
|
+
NY: "New York",
|
|
2692
|
+
NC: "North Carolina",
|
|
2693
|
+
ND: "North Dakota",
|
|
2694
|
+
OH: "Ohio",
|
|
2695
|
+
OK: "Oklahoma",
|
|
2696
|
+
OR: "Oregon",
|
|
2697
|
+
PA: "Pennsylvania",
|
|
2698
|
+
RI: "Rhode Island",
|
|
2699
|
+
SC: "South Carolina",
|
|
2700
|
+
SD: "South Dakota",
|
|
2701
|
+
TN: "Tennessee",
|
|
2702
|
+
TX: "Texas",
|
|
2703
|
+
UT: "Utah",
|
|
2704
|
+
VT: "Vermont",
|
|
2705
|
+
VA: "Virginia",
|
|
2706
|
+
WA: "Washington",
|
|
2707
|
+
WV: "West Virginia",
|
|
2708
|
+
WI: "Wisconsin",
|
|
2709
|
+
WY: "Wyoming",
|
|
2710
|
+
DC: "District of Columbia",
|
|
2711
|
+
PR: "Puerto Rico",
|
|
2712
|
+
VI: "Virgin Islands",
|
|
2713
|
+
GU: "Guam"
|
|
2714
|
+
}, so = ({
|
|
2660
2715
|
brand: o,
|
|
2661
|
-
data:
|
|
2716
|
+
data: a
|
|
2662
2717
|
}) => {
|
|
2663
|
-
|
|
2718
|
+
var v, x;
|
|
2719
|
+
const s = ((x = (v = a.slug) == null ? void 0 : v.split("-")[0]) == null ? void 0 : x.toUpperCase()) || a.state, n = Yr[s] || s, l = [
|
|
2664
2720
|
{ label: "Home", path: "/" },
|
|
2665
2721
|
{ label: "USA", path: "/usa" },
|
|
2666
|
-
{ label:
|
|
2667
|
-
{ label:
|
|
2668
|
-
],
|
|
2669
|
-
value:
|
|
2722
|
+
{ label: n, path: `/state/${s.toLowerCase()}` },
|
|
2723
|
+
{ label: a.name }
|
|
2724
|
+
], i = o.scoreConfig && a.stats.score !== void 0 ? {
|
|
2725
|
+
value: a.stats.score,
|
|
2670
2726
|
label: o.scoreConfig.name,
|
|
2671
2727
|
betaDisclaimer: o.scoreConfig.betaDisclaimer
|
|
2672
|
-
} : void 0,
|
|
2728
|
+
} : void 0, c = Object.keys(a.recentByAgency), f = `/${a.state.toLowerCase()}/${a.slug}`;
|
|
2673
2729
|
return /* @__PURE__ */ e.jsxs(
|
|
2674
2730
|
U,
|
|
2675
2731
|
{
|
|
@@ -2678,54 +2734,54 @@ const ro = ({
|
|
|
2678
2734
|
/* @__PURE__ */ e.jsx(
|
|
2679
2735
|
H,
|
|
2680
2736
|
{
|
|
2681
|
-
title:
|
|
2682
|
-
subtitle: `Worker safety data for ${
|
|
2683
|
-
breadcrumbs:
|
|
2684
|
-
score:
|
|
2737
|
+
title: a.name,
|
|
2738
|
+
subtitle: `Worker safety data for ${a.name}`,
|
|
2739
|
+
breadcrumbs: l,
|
|
2740
|
+
score: i
|
|
2685
2741
|
}
|
|
2686
2742
|
),
|
|
2687
2743
|
/* @__PURE__ */ e.jsxs("div", { className: "page-layout", children: [
|
|
2688
|
-
/* @__PURE__ */ e.jsx(
|
|
2744
|
+
/* @__PURE__ */ e.jsx(X, {}),
|
|
2689
2745
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2690
|
-
/* @__PURE__ */ e.jsx(V, { stats:
|
|
2746
|
+
/* @__PURE__ */ e.jsx(V, { stats: a.stats }),
|
|
2691
2747
|
/* @__PURE__ */ e.jsx(
|
|
2692
|
-
|
|
2748
|
+
Q,
|
|
2693
2749
|
{
|
|
2694
2750
|
title: "Companies",
|
|
2695
|
-
items:
|
|
2751
|
+
items: a.directory,
|
|
2696
2752
|
basePath: "/company"
|
|
2697
2753
|
}
|
|
2698
2754
|
),
|
|
2699
|
-
|
|
2755
|
+
c.map((u) => /* @__PURE__ */ e.jsx(
|
|
2700
2756
|
ee,
|
|
2701
2757
|
{
|
|
2702
|
-
title: `Recent ${
|
|
2703
|
-
events:
|
|
2704
|
-
viewMorePath: `${
|
|
2758
|
+
title: `Recent ${u} Incidents`,
|
|
2759
|
+
events: a.recentByAgency[u],
|
|
2760
|
+
viewMorePath: `${f}/events/${u.toLowerCase()}`,
|
|
2705
2761
|
showAgencyBadge: !1
|
|
2706
2762
|
},
|
|
2707
|
-
|
|
2763
|
+
u
|
|
2708
2764
|
))
|
|
2709
2765
|
] }),
|
|
2710
|
-
/* @__PURE__ */ e.jsx(
|
|
2766
|
+
/* @__PURE__ */ e.jsx(K, { meta: a.meta })
|
|
2711
2767
|
] })
|
|
2712
2768
|
]
|
|
2713
2769
|
}
|
|
2714
2770
|
);
|
|
2715
|
-
},
|
|
2771
|
+
}, io = ({
|
|
2716
2772
|
brand: o,
|
|
2717
|
-
data:
|
|
2773
|
+
data: a
|
|
2718
2774
|
}) => {
|
|
2719
2775
|
var i;
|
|
2720
2776
|
const s = [
|
|
2721
2777
|
{ label: "Home", path: "/" },
|
|
2722
2778
|
{ label: "USA", path: "/usa" },
|
|
2723
|
-
{ label:
|
|
2724
|
-
], n = o.scoreConfig &&
|
|
2725
|
-
value:
|
|
2779
|
+
{ label: a.name }
|
|
2780
|
+
], n = o.scoreConfig && a.stats.score !== void 0 ? {
|
|
2781
|
+
value: a.stats.score,
|
|
2726
2782
|
label: o.scoreConfig.name,
|
|
2727
2783
|
betaDisclaimer: o.scoreConfig.betaDisclaimer
|
|
2728
|
-
} : void 0, l =
|
|
2784
|
+
} : void 0, l = a.sites && a.sites.length > 0;
|
|
2729
2785
|
return /* @__PURE__ */ e.jsxs(
|
|
2730
2786
|
U,
|
|
2731
2787
|
{
|
|
@@ -2734,21 +2790,21 @@ const ro = ({
|
|
|
2734
2790
|
/* @__PURE__ */ e.jsx(
|
|
2735
2791
|
H,
|
|
2736
2792
|
{
|
|
2737
|
-
title:
|
|
2738
|
-
subtitle: (i =
|
|
2793
|
+
title: a.name,
|
|
2794
|
+
subtitle: (i = a.meta) != null && i.industry ? `${a.meta.industry}` : void 0,
|
|
2739
2795
|
breadcrumbs: s,
|
|
2740
2796
|
score: n
|
|
2741
2797
|
}
|
|
2742
2798
|
),
|
|
2743
2799
|
/* @__PURE__ */ e.jsxs("div", { className: "page-layout", children: [
|
|
2744
|
-
/* @__PURE__ */ e.jsx(
|
|
2800
|
+
/* @__PURE__ */ e.jsx(X, {}),
|
|
2745
2801
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2746
|
-
/* @__PURE__ */ e.jsx(V, { stats:
|
|
2802
|
+
/* @__PURE__ */ e.jsx(V, { stats: a.stats }),
|
|
2747
2803
|
l && /* @__PURE__ */ e.jsx(
|
|
2748
|
-
|
|
2804
|
+
Q,
|
|
2749
2805
|
{
|
|
2750
2806
|
title: "Locations",
|
|
2751
|
-
items:
|
|
2807
|
+
items: a.sites,
|
|
2752
2808
|
basePath: "/site"
|
|
2753
2809
|
}
|
|
2754
2810
|
),
|
|
@@ -2756,28 +2812,28 @@ const ro = ({
|
|
|
2756
2812
|
ee,
|
|
2757
2813
|
{
|
|
2758
2814
|
title: "Recent Incidents",
|
|
2759
|
-
events:
|
|
2760
|
-
viewMorePath: `/company/${
|
|
2815
|
+
events: a.recentEvents.slice(0, l ? 5 : 10),
|
|
2816
|
+
viewMorePath: `/company/${a.slug}/events`,
|
|
2761
2817
|
showAgencyBadge: !0
|
|
2762
2818
|
}
|
|
2763
2819
|
)
|
|
2764
2820
|
] }),
|
|
2765
|
-
/* @__PURE__ */ e.jsx(
|
|
2821
|
+
/* @__PURE__ */ e.jsx(K, { meta: a.meta })
|
|
2766
2822
|
] })
|
|
2767
2823
|
]
|
|
2768
2824
|
}
|
|
2769
2825
|
);
|
|
2770
|
-
},
|
|
2826
|
+
}, lo = ({
|
|
2771
2827
|
brand: o,
|
|
2772
|
-
data:
|
|
2828
|
+
data: a
|
|
2773
2829
|
}) => {
|
|
2774
2830
|
const s = [
|
|
2775
2831
|
{ label: "Home", path: "/" },
|
|
2776
2832
|
{ label: "USA", path: "/usa" },
|
|
2777
|
-
{ label:
|
|
2778
|
-
{ label: `#${
|
|
2779
|
-
], n = o.scoreConfig &&
|
|
2780
|
-
value:
|
|
2833
|
+
{ label: a.companyName, path: `/company/${a.companySlug}` },
|
|
2834
|
+
{ label: `#${a.siteId}` }
|
|
2835
|
+
], n = o.scoreConfig && a.stats.score !== void 0 ? {
|
|
2836
|
+
value: a.stats.score,
|
|
2781
2837
|
label: o.scoreConfig.name,
|
|
2782
2838
|
betaDisclaimer: o.scoreConfig.betaDisclaimer
|
|
2783
2839
|
} : void 0;
|
|
@@ -2789,17 +2845,17 @@ const ro = ({
|
|
|
2789
2845
|
/* @__PURE__ */ e.jsx(
|
|
2790
2846
|
H,
|
|
2791
2847
|
{
|
|
2792
|
-
title:
|
|
2793
|
-
subtitle: `Location #${
|
|
2848
|
+
title: a.name,
|
|
2849
|
+
subtitle: `Location #${a.siteId} of ${a.companyName}`,
|
|
2794
2850
|
breadcrumbs: s,
|
|
2795
2851
|
score: n
|
|
2796
2852
|
}
|
|
2797
2853
|
),
|
|
2798
2854
|
/* @__PURE__ */ e.jsxs("div", { className: "page-layout", children: [
|
|
2799
|
-
/* @__PURE__ */ e.jsx(
|
|
2855
|
+
/* @__PURE__ */ e.jsx(X, {}),
|
|
2800
2856
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2801
|
-
/* @__PURE__ */ e.jsx(V, { stats:
|
|
2802
|
-
|
|
2857
|
+
/* @__PURE__ */ e.jsx(V, { stats: a.stats }),
|
|
2858
|
+
a.siblings && a.siblings.length > 0 && /* @__PURE__ */ e.jsxs("section", { style: {
|
|
2803
2859
|
padding: "var(--space-lg)",
|
|
2804
2860
|
backgroundColor: "var(--bg-color)",
|
|
2805
2861
|
marginBottom: "var(--space-lg)",
|
|
@@ -2816,10 +2872,10 @@ const ro = ({
|
|
|
2816
2872
|
display: "flex",
|
|
2817
2873
|
flexWrap: "wrap",
|
|
2818
2874
|
gap: "var(--space-sm)"
|
|
2819
|
-
}, children:
|
|
2875
|
+
}, children: a.siblings.slice(0, 10).map((l) => /* @__PURE__ */ e.jsxs(
|
|
2820
2876
|
"a",
|
|
2821
2877
|
{
|
|
2822
|
-
href: `/company/${
|
|
2878
|
+
href: `/company/${a.companySlug}/site/${l.slug}`,
|
|
2823
2879
|
style: {
|
|
2824
2880
|
padding: "var(--space-sm) var(--space-md)",
|
|
2825
2881
|
backgroundColor: "var(--secondary-color)",
|
|
@@ -2856,49 +2912,49 @@ const ro = ({
|
|
|
2856
2912
|
ee,
|
|
2857
2913
|
{
|
|
2858
2914
|
title: "Recent Incidents",
|
|
2859
|
-
events:
|
|
2860
|
-
viewMorePath: `/company/${
|
|
2915
|
+
events: a.recentEvents,
|
|
2916
|
+
viewMorePath: `/company/${a.companySlug}/site/${a.siteId}/events`,
|
|
2861
2917
|
showAgencyBadge: !0
|
|
2862
2918
|
}
|
|
2863
2919
|
)
|
|
2864
2920
|
] }),
|
|
2865
|
-
/* @__PURE__ */ e.jsx(
|
|
2921
|
+
/* @__PURE__ */ e.jsx(K, { meta: a.meta })
|
|
2866
2922
|
] })
|
|
2867
2923
|
]
|
|
2868
2924
|
}
|
|
2869
2925
|
);
|
|
2870
2926
|
};
|
|
2871
2927
|
export {
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2928
|
+
oo as AdSlot,
|
|
2929
|
+
qr as Alert,
|
|
2930
|
+
Kr as Badge,
|
|
2931
|
+
Hr as Button,
|
|
2932
|
+
Vr as Card,
|
|
2933
|
+
so as CityPage,
|
|
2934
|
+
io as CompanyPage,
|
|
2935
|
+
Q as Directory,
|
|
2936
|
+
X as FilterSidebar,
|
|
2937
|
+
zr as Footer,
|
|
2938
|
+
Fr as Header,
|
|
2883
2939
|
H as Hero,
|
|
2884
|
-
|
|
2940
|
+
K as InfoSidebar,
|
|
2885
2941
|
Xr as Input,
|
|
2886
|
-
|
|
2887
|
-
|
|
2942
|
+
eo as LoadingOverlay,
|
|
2943
|
+
ao as MobileAdBanner,
|
|
2888
2944
|
Jr as Modal,
|
|
2889
2945
|
to as NationPage,
|
|
2890
2946
|
ee as RecentEvents,
|
|
2891
2947
|
U as Shell,
|
|
2892
|
-
|
|
2948
|
+
lo as SitePage,
|
|
2893
2949
|
$e as Skeleton,
|
|
2894
|
-
|
|
2895
|
-
|
|
2950
|
+
ro as SkeletonCard,
|
|
2951
|
+
Mr as SkeletonText,
|
|
2896
2952
|
Er as Spinner,
|
|
2897
2953
|
V as StatGrid,
|
|
2898
|
-
|
|
2899
|
-
|
|
2900
|
-
|
|
2954
|
+
no as StatePage,
|
|
2955
|
+
Gr as Table,
|
|
2956
|
+
Zr as Tabs,
|
|
2901
2957
|
Qr as Tooltip,
|
|
2902
|
-
|
|
2903
|
-
|
|
2958
|
+
Lr as applyTheme,
|
|
2959
|
+
Or as useTheme
|
|
2904
2960
|
};
|