@sirsluginston/sharedui 2.0.14 → 2.0.15
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 -14
- package/dist/sharedui.js +473 -487
- package/dist/sharedui.umd.cjs +15 -15
- package/package.json +1 -1
package/dist/sharedui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
var
|
|
1
|
+
import de, { useEffect as N, useState as z, useRef as We, useCallback as Cr } from "react";
|
|
2
|
+
var ce = { exports: {} }, $ = {};
|
|
3
3
|
/**
|
|
4
4
|
* @license React
|
|
5
5
|
* react-jsx-runtime.production.min.js
|
|
@@ -13,13 +13,13 @@ var Le;
|
|
|
13
13
|
function Sr() {
|
|
14
14
|
if (Le) return $;
|
|
15
15
|
Le = 1;
|
|
16
|
-
var o =
|
|
17
|
-
function c(u,
|
|
18
|
-
var
|
|
19
|
-
|
|
20
|
-
for (
|
|
21
|
-
if (u && u.defaultProps) for (
|
|
22
|
-
return { $$typeof: t, type: u, key:
|
|
16
|
+
var o = de, t = 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(u, p, b) {
|
|
18
|
+
var f, x = {}, F = null, P = null;
|
|
19
|
+
b !== void 0 && (F = "" + b), p.key !== void 0 && (F = "" + p.key), p.ref !== void 0 && (P = p.ref);
|
|
20
|
+
for (f in p) n.call(p, f) && !i.hasOwnProperty(f) && (x[f] = p[f]);
|
|
21
|
+
if (u && u.defaultProps) for (f in p = u.defaultProps, p) x[f] === void 0 && (x[f] = p[f]);
|
|
22
|
+
return { $$typeof: t, type: u, key: F, ref: P, props: x, _owner: l.current };
|
|
23
23
|
}
|
|
24
24
|
return $.Fragment = s, $.jsx = c, $.jsxs = c, $;
|
|
25
25
|
}
|
|
@@ -33,18 +33,18 @@ 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
|
|
36
|
+
var Ae;
|
|
37
37
|
function Rr() {
|
|
38
|
-
return
|
|
39
|
-
var o =
|
|
38
|
+
return Ae || (Ae = 1, process.env.NODE_ENV !== "production" && function() {
|
|
39
|
+
var o = de, t = 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"), u = Symbol.for("react.context"), p = Symbol.for("react.forward_ref"), b = Symbol.for("react.suspense"), f = Symbol.for("react.suspense_list"), x = Symbol.for("react.memo"), F = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), w = Symbol.iterator, _ = "@@iterator";
|
|
40
40
|
function Ye(r) {
|
|
41
41
|
if (r === null || typeof r != "object")
|
|
42
42
|
return null;
|
|
43
|
-
var a =
|
|
43
|
+
var a = w && r[w] || r[_];
|
|
44
44
|
return typeof a == "function" ? a : null;
|
|
45
45
|
}
|
|
46
46
|
var W = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
|
47
|
-
function
|
|
47
|
+
function C(r) {
|
|
48
48
|
{
|
|
49
49
|
for (var a = arguments.length, d = new Array(a > 1 ? a - 1 : 0), v = 1; v < a; v++)
|
|
50
50
|
d[v - 1] = arguments[v];
|
|
@@ -61,14 +61,14 @@ function Rr() {
|
|
|
61
61
|
h.unshift("Warning: " + a), Function.prototype.apply.call(console[r], console, h);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
|
-
var Ue = !1, He = !1, Ve = !1, Xe = !1, qe = !1,
|
|
65
|
-
|
|
64
|
+
var Ue = !1, He = !1, Ve = !1, Xe = !1, qe = !1, ue;
|
|
65
|
+
ue = Symbol.for("react.module.reference");
|
|
66
66
|
function Je(r) {
|
|
67
|
-
return !!(typeof r == "string" || typeof r == "function" || r ===
|
|
67
|
+
return !!(typeof r == "string" || typeof r == "function" || r === n || r === i || qe || r === l || r === b || r === f || Xe || r === P || Ue || He || Ve || typeof r == "object" && r !== null && (r.$$typeof === F || r.$$typeof === x || r.$$typeof === c || r.$$typeof === u || r.$$typeof === p || // 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
|
-
r.$$typeof ===
|
|
71
|
+
r.$$typeof === ue || r.getModuleId !== void 0));
|
|
72
72
|
}
|
|
73
73
|
function Ke(r, a, d) {
|
|
74
74
|
var v = r.displayName;
|
|
@@ -77,47 +77,47 @@ function Rr() {
|
|
|
77
77
|
var y = a.displayName || a.name || "";
|
|
78
78
|
return y !== "" ? d + "(" + y + ")" : d;
|
|
79
79
|
}
|
|
80
|
-
function
|
|
80
|
+
function fe(r) {
|
|
81
81
|
return r.displayName || "Context";
|
|
82
82
|
}
|
|
83
|
-
function
|
|
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" && C("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;
|
|
90
90
|
switch (r) {
|
|
91
|
-
case
|
|
91
|
+
case n:
|
|
92
92
|
return "Fragment";
|
|
93
93
|
case s:
|
|
94
94
|
return "Portal";
|
|
95
|
-
case
|
|
95
|
+
case i:
|
|
96
96
|
return "Profiler";
|
|
97
97
|
case l:
|
|
98
98
|
return "StrictMode";
|
|
99
|
-
case
|
|
99
|
+
case b:
|
|
100
100
|
return "Suspense";
|
|
101
|
-
case
|
|
101
|
+
case f:
|
|
102
102
|
return "SuspenseList";
|
|
103
103
|
}
|
|
104
104
|
if (typeof r == "object")
|
|
105
105
|
switch (r.$$typeof) {
|
|
106
106
|
case u:
|
|
107
107
|
var a = r;
|
|
108
|
-
return
|
|
108
|
+
return fe(a) + ".Consumer";
|
|
109
109
|
case c:
|
|
110
110
|
var d = r;
|
|
111
|
-
return
|
|
112
|
-
case
|
|
111
|
+
return fe(d._context) + ".Provider";
|
|
112
|
+
case p:
|
|
113
113
|
return Ke(r, r.render, "ForwardRef");
|
|
114
114
|
case x:
|
|
115
115
|
var v = r.displayName || null;
|
|
116
|
-
return v !== null ? v :
|
|
117
|
-
case
|
|
116
|
+
return v !== null ? v : I(r.type) || "Memo";
|
|
117
|
+
case F: {
|
|
118
118
|
var y = r, h = y._payload, m = y._init;
|
|
119
119
|
try {
|
|
120
|
-
return
|
|
120
|
+
return I(m(h));
|
|
121
121
|
} catch {
|
|
122
122
|
return null;
|
|
123
123
|
}
|
|
@@ -125,18 +125,18 @@ function Rr() {
|
|
|
125
125
|
}
|
|
126
126
|
return null;
|
|
127
127
|
}
|
|
128
|
-
var
|
|
129
|
-
function
|
|
128
|
+
var M = Object.assign, O = 0, ve, pe, ge, me, ye, he, xe;
|
|
129
|
+
function be() {
|
|
130
130
|
}
|
|
131
|
-
|
|
131
|
+
be.__reactDisabledLog = !0;
|
|
132
132
|
function Ge() {
|
|
133
133
|
{
|
|
134
|
-
if (
|
|
135
|
-
|
|
134
|
+
if (O === 0) {
|
|
135
|
+
ve = console.log, pe = console.info, ge = console.warn, me = console.error, ye = console.group, he = console.groupCollapsed, xe = console.groupEnd;
|
|
136
136
|
var r = {
|
|
137
137
|
configurable: !0,
|
|
138
138
|
enumerable: !0,
|
|
139
|
-
value:
|
|
139
|
+
value: be,
|
|
140
140
|
writable: !0
|
|
141
141
|
};
|
|
142
142
|
Object.defineProperties(console, {
|
|
@@ -149,65 +149,65 @@ function Rr() {
|
|
|
149
149
|
groupEnd: r
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
|
|
152
|
+
O++;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
function Qe() {
|
|
156
156
|
{
|
|
157
|
-
if (
|
|
157
|
+
if (O--, O === 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: M({}, r, {
|
|
165
|
+
value: ve
|
|
166
|
+
}),
|
|
167
|
+
info: M({}, r, {
|
|
165
168
|
value: pe
|
|
166
169
|
}),
|
|
167
|
-
|
|
170
|
+
warn: M({}, r, {
|
|
168
171
|
value: ge
|
|
169
172
|
}),
|
|
170
|
-
|
|
173
|
+
error: M({}, r, {
|
|
171
174
|
value: me
|
|
172
175
|
}),
|
|
173
|
-
|
|
176
|
+
group: M({}, r, {
|
|
174
177
|
value: ye
|
|
175
178
|
}),
|
|
176
|
-
|
|
179
|
+
groupCollapsed: M({}, r, {
|
|
177
180
|
value: he
|
|
178
181
|
}),
|
|
179
|
-
|
|
182
|
+
groupEnd: M({}, r, {
|
|
180
183
|
value: xe
|
|
181
|
-
}),
|
|
182
|
-
groupEnd: D({}, r, {
|
|
183
|
-
value: be
|
|
184
184
|
})
|
|
185
185
|
});
|
|
186
186
|
}
|
|
187
|
-
|
|
187
|
+
O < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
|
-
var
|
|
190
|
+
var re = W.ReactCurrentDispatcher, oe;
|
|
191
191
|
function J(r, a, d) {
|
|
192
192
|
{
|
|
193
|
-
if (
|
|
193
|
+
if (oe === void 0)
|
|
194
194
|
try {
|
|
195
195
|
throw Error();
|
|
196
196
|
} catch (y) {
|
|
197
197
|
var v = y.stack.trim().match(/\n( *(at )?)/);
|
|
198
|
-
|
|
198
|
+
oe = v && v[1] || "";
|
|
199
199
|
}
|
|
200
200
|
return `
|
|
201
|
-
` +
|
|
201
|
+
` + oe + r;
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var te = !1, K;
|
|
205
205
|
{
|
|
206
206
|
var Ze = typeof WeakMap == "function" ? WeakMap : Map;
|
|
207
207
|
K = new Ze();
|
|
208
208
|
}
|
|
209
|
-
function
|
|
210
|
-
if (!r ||
|
|
209
|
+
function je(r, a) {
|
|
210
|
+
if (!r || te)
|
|
211
211
|
return "";
|
|
212
212
|
{
|
|
213
213
|
var d = K.get(r);
|
|
@@ -215,11 +215,11 @@ function Rr() {
|
|
|
215
215
|
return d;
|
|
216
216
|
}
|
|
217
217
|
var v;
|
|
218
|
-
|
|
218
|
+
te = !0;
|
|
219
219
|
var y = Error.prepareStackTrace;
|
|
220
220
|
Error.prepareStackTrace = void 0;
|
|
221
221
|
var h;
|
|
222
|
-
h =
|
|
222
|
+
h = re.current, re.current = null, Ge();
|
|
223
223
|
try {
|
|
224
224
|
if (a) {
|
|
225
225
|
var m = function() {
|
|
@@ -232,53 +232,53 @@ function Rr() {
|
|
|
232
232
|
}), typeof Reflect == "object" && Reflect.construct) {
|
|
233
233
|
try {
|
|
234
234
|
Reflect.construct(m, []);
|
|
235
|
-
} catch (
|
|
236
|
-
v =
|
|
235
|
+
} catch (R) {
|
|
236
|
+
v = R;
|
|
237
237
|
}
|
|
238
238
|
Reflect.construct(r, [], m);
|
|
239
239
|
} else {
|
|
240
240
|
try {
|
|
241
241
|
m.call();
|
|
242
|
-
} catch (
|
|
243
|
-
v =
|
|
242
|
+
} catch (R) {
|
|
243
|
+
v = R;
|
|
244
244
|
}
|
|
245
245
|
r.call(m.prototype);
|
|
246
246
|
}
|
|
247
247
|
} else {
|
|
248
248
|
try {
|
|
249
249
|
throw Error();
|
|
250
|
-
} catch (
|
|
251
|
-
v =
|
|
250
|
+
} catch (R) {
|
|
251
|
+
v = R;
|
|
252
252
|
}
|
|
253
253
|
r();
|
|
254
254
|
}
|
|
255
|
-
} catch (
|
|
256
|
-
if (
|
|
257
|
-
for (var g =
|
|
258
|
-
`),
|
|
259
|
-
`),
|
|
260
|
-
|
|
261
|
-
for (;
|
|
262
|
-
if (g[
|
|
263
|
-
if (
|
|
255
|
+
} catch (R) {
|
|
256
|
+
if (R && v && typeof R.stack == "string") {
|
|
257
|
+
for (var g = R.stack.split(`
|
|
258
|
+
`), S = v.stack.split(`
|
|
259
|
+
`), j = g.length - 1, k = S.length - 1; j >= 1 && k >= 0 && g[j] !== S[k]; )
|
|
260
|
+
k--;
|
|
261
|
+
for (; j >= 1 && k >= 0; j--, k--)
|
|
262
|
+
if (g[j] !== S[k]) {
|
|
263
|
+
if (j !== 1 || k !== 1)
|
|
264
264
|
do
|
|
265
|
-
if (
|
|
266
|
-
var
|
|
267
|
-
` + g[
|
|
268
|
-
return r.displayName &&
|
|
265
|
+
if (j--, k--, k < 0 || g[j] !== S[k]) {
|
|
266
|
+
var T = `
|
|
267
|
+
` + g[j].replace(" at new ", " at ");
|
|
268
|
+
return r.displayName && T.includes("<anonymous>") && (T = T.replace("<anonymous>", r.displayName)), typeof r == "function" && K.set(r, T), T;
|
|
269
269
|
}
|
|
270
|
-
while (
|
|
270
|
+
while (j >= 1 && k >= 0);
|
|
271
271
|
break;
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
} finally {
|
|
275
|
-
|
|
275
|
+
te = !1, re.current = h, Qe(), Error.prepareStackTrace = y;
|
|
276
276
|
}
|
|
277
|
-
var
|
|
278
|
-
return typeof r == "function" && K.set(r,
|
|
277
|
+
var A = r ? r.displayName || r.name : "", D = A ? J(A) : "";
|
|
278
|
+
return typeof r == "function" && K.set(r, D), D;
|
|
279
279
|
}
|
|
280
280
|
function er(r, a, d) {
|
|
281
|
-
return
|
|
281
|
+
return je(r, !1);
|
|
282
282
|
}
|
|
283
283
|
function rr(r) {
|
|
284
284
|
var a = r.prototype;
|
|
@@ -288,22 +288,22 @@ function Rr() {
|
|
|
288
288
|
if (r == null)
|
|
289
289
|
return "";
|
|
290
290
|
if (typeof r == "function")
|
|
291
|
-
return
|
|
291
|
+
return je(r, rr(r));
|
|
292
292
|
if (typeof r == "string")
|
|
293
293
|
return J(r);
|
|
294
294
|
switch (r) {
|
|
295
|
-
case
|
|
295
|
+
case b:
|
|
296
296
|
return J("Suspense");
|
|
297
|
-
case
|
|
297
|
+
case f:
|
|
298
298
|
return J("SuspenseList");
|
|
299
299
|
}
|
|
300
300
|
if (typeof r == "object")
|
|
301
301
|
switch (r.$$typeof) {
|
|
302
|
-
case
|
|
302
|
+
case p:
|
|
303
303
|
return er(r.render);
|
|
304
304
|
case x:
|
|
305
305
|
return G(r.type, a, d);
|
|
306
|
-
case
|
|
306
|
+
case F: {
|
|
307
307
|
var v = r, y = v._payload, h = v._init;
|
|
308
308
|
try {
|
|
309
309
|
return G(h(y), a, d);
|
|
@@ -313,35 +313,35 @@ function Rr() {
|
|
|
313
313
|
}
|
|
314
314
|
return "";
|
|
315
315
|
}
|
|
316
|
-
var
|
|
316
|
+
var B = Object.prototype.hasOwnProperty, ke = {}, we = W.ReactDebugCurrentFrame;
|
|
317
317
|
function Q(r) {
|
|
318
318
|
if (r) {
|
|
319
319
|
var a = r._owner, d = G(r.type, r._source, a ? a.type : null);
|
|
320
|
-
|
|
320
|
+
we.setExtraStackFrame(d);
|
|
321
321
|
} else
|
|
322
|
-
|
|
322
|
+
we.setExtraStackFrame(null);
|
|
323
323
|
}
|
|
324
324
|
function or(r, a, d, v, y) {
|
|
325
325
|
{
|
|
326
|
-
var h = Function.call.bind(
|
|
326
|
+
var h = Function.call.bind(B);
|
|
327
327
|
for (var m in r)
|
|
328
328
|
if (h(r, m)) {
|
|
329
329
|
var g = void 0;
|
|
330
330
|
try {
|
|
331
331
|
if (typeof r[m] != "function") {
|
|
332
|
-
var
|
|
333
|
-
throw
|
|
332
|
+
var S = Error((v || "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
|
+
throw S.name = "Invariant Violation", S;
|
|
334
334
|
}
|
|
335
335
|
g = r[m](a, m, v, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
|
|
336
|
-
} catch (
|
|
337
|
-
g =
|
|
336
|
+
} catch (j) {
|
|
337
|
+
g = j;
|
|
338
338
|
}
|
|
339
|
-
g && !(g instanceof Error) && (Q(y),
|
|
339
|
+
g && !(g instanceof Error) && (Q(y), C("%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).", v || "React class", d, m, typeof g), Q(null)), g instanceof Error && !(g.message in ke) && (ke[g.message] = !0, Q(y), C("Failed %s type: %s", d, g.message), Q(null));
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
var tr = Array.isArray;
|
|
344
|
-
function
|
|
344
|
+
function ae(r) {
|
|
345
345
|
return tr(r);
|
|
346
346
|
}
|
|
347
347
|
function ar(r) {
|
|
@@ -352,26 +352,26 @@ function Rr() {
|
|
|
352
352
|
}
|
|
353
353
|
function nr(r) {
|
|
354
354
|
try {
|
|
355
|
-
return
|
|
355
|
+
return Ce(r), !1;
|
|
356
356
|
} catch {
|
|
357
357
|
return !0;
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
function
|
|
360
|
+
function Ce(r) {
|
|
361
361
|
return "" + r;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Se(r) {
|
|
364
364
|
if (nr(r))
|
|
365
|
-
return
|
|
365
|
+
return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ar(r)), Ce(r);
|
|
366
366
|
}
|
|
367
|
-
var
|
|
367
|
+
var Re = W.ReactCurrentOwner, sr = {
|
|
368
368
|
key: !0,
|
|
369
369
|
ref: !0,
|
|
370
370
|
__self: !0,
|
|
371
371
|
__source: !0
|
|
372
|
-
},
|
|
372
|
+
}, Te, Ee;
|
|
373
373
|
function ir(r) {
|
|
374
|
-
if (
|
|
374
|
+
if (B.call(r, "ref")) {
|
|
375
375
|
var a = Object.getOwnPropertyDescriptor(r, "ref").get;
|
|
376
376
|
if (a && a.isReactWarning)
|
|
377
377
|
return !1;
|
|
@@ -379,7 +379,7 @@ function Rr() {
|
|
|
379
379
|
return r.ref !== void 0;
|
|
380
380
|
}
|
|
381
381
|
function lr(r) {
|
|
382
|
-
if (
|
|
382
|
+
if (B.call(r, "key")) {
|
|
383
383
|
var a = Object.getOwnPropertyDescriptor(r, "key").get;
|
|
384
384
|
if (a && a.isReactWarning)
|
|
385
385
|
return !1;
|
|
@@ -387,12 +387,12 @@ function Rr() {
|
|
|
387
387
|
return r.key !== void 0;
|
|
388
388
|
}
|
|
389
389
|
function cr(r, a) {
|
|
390
|
-
typeof r.ref == "string" &&
|
|
390
|
+
typeof r.ref == "string" && Re.current;
|
|
391
391
|
}
|
|
392
392
|
function dr(r, a) {
|
|
393
393
|
{
|
|
394
394
|
var d = function() {
|
|
395
|
-
|
|
395
|
+
Te || (Te = !0, C("%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)", a));
|
|
396
396
|
};
|
|
397
397
|
d.isReactWarning = !0, Object.defineProperty(r, "key", {
|
|
398
398
|
get: d,
|
|
@@ -403,7 +403,7 @@ function Rr() {
|
|
|
403
403
|
function ur(r, a) {
|
|
404
404
|
{
|
|
405
405
|
var d = function() {
|
|
406
|
-
|
|
406
|
+
Ee || (Ee = !0, C("%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)", a));
|
|
407
407
|
};
|
|
408
408
|
d.isReactWarning = !0, Object.defineProperty(r, "ref", {
|
|
409
409
|
get: d,
|
|
@@ -442,39 +442,39 @@ function Rr() {
|
|
|
442
442
|
};
|
|
443
443
|
function vr(r, a, d, v, y) {
|
|
444
444
|
{
|
|
445
|
-
var h, m = {}, g = null,
|
|
446
|
-
d !== void 0 && (
|
|
445
|
+
var h, m = {}, g = null, S = null;
|
|
446
|
+
d !== void 0 && (Se(d), g = "" + d), lr(a) && (Se(a.key), g = "" + a.key), ir(a) && (S = a.ref, cr(a, y));
|
|
447
447
|
for (h in a)
|
|
448
|
-
|
|
448
|
+
B.call(a, h) && !sr.hasOwnProperty(h) && (m[h] = a[h]);
|
|
449
449
|
if (r && r.defaultProps) {
|
|
450
|
-
var
|
|
451
|
-
for (h in
|
|
452
|
-
m[h] === void 0 && (m[h] =
|
|
450
|
+
var j = r.defaultProps;
|
|
451
|
+
for (h in j)
|
|
452
|
+
m[h] === void 0 && (m[h] = j[h]);
|
|
453
453
|
}
|
|
454
|
-
if (g ||
|
|
455
|
-
var
|
|
456
|
-
g && dr(m,
|
|
454
|
+
if (g || S) {
|
|
455
|
+
var k = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
|
|
456
|
+
g && dr(m, k), S && ur(m, k);
|
|
457
457
|
}
|
|
458
|
-
return fr(r, g,
|
|
458
|
+
return fr(r, g, S, y, v, Re.current, m);
|
|
459
459
|
}
|
|
460
460
|
}
|
|
461
|
-
var
|
|
462
|
-
function
|
|
461
|
+
var ne = W.ReactCurrentOwner, Fe = W.ReactDebugCurrentFrame;
|
|
462
|
+
function L(r) {
|
|
463
463
|
if (r) {
|
|
464
464
|
var a = r._owner, d = G(r.type, r._source, a ? a.type : null);
|
|
465
|
-
|
|
465
|
+
Fe.setExtraStackFrame(d);
|
|
466
466
|
} else
|
|
467
|
-
|
|
467
|
+
Fe.setExtraStackFrame(null);
|
|
468
468
|
}
|
|
469
|
-
var
|
|
470
|
-
|
|
471
|
-
function
|
|
469
|
+
var se;
|
|
470
|
+
se = !1;
|
|
471
|
+
function ie(r) {
|
|
472
472
|
return typeof r == "object" && r !== null && r.$$typeof === t;
|
|
473
473
|
}
|
|
474
|
-
function
|
|
474
|
+
function _e() {
|
|
475
475
|
{
|
|
476
|
-
if (
|
|
477
|
-
var r =
|
|
476
|
+
if (ne.current) {
|
|
477
|
+
var r = I(ne.current.type);
|
|
478
478
|
if (r)
|
|
479
479
|
return `
|
|
480
480
|
|
|
@@ -486,10 +486,10 @@ Check the render method of \`` + r + "`.";
|
|
|
486
486
|
function pr(r) {
|
|
487
487
|
return "";
|
|
488
488
|
}
|
|
489
|
-
var
|
|
489
|
+
var Ie = {};
|
|
490
490
|
function gr(r) {
|
|
491
491
|
{
|
|
492
|
-
var a =
|
|
492
|
+
var a = _e();
|
|
493
493
|
if (!a) {
|
|
494
494
|
var d = typeof r == "string" ? r : r.displayName || r.name;
|
|
495
495
|
d && (a = `
|
|
@@ -499,35 +499,35 @@ Check the top-level render call using <` + d + ">.");
|
|
|
499
499
|
return a;
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Me(r, a) {
|
|
503
503
|
{
|
|
504
504
|
if (!r._store || r._store.validated || r.key != null)
|
|
505
505
|
return;
|
|
506
506
|
r._store.validated = !0;
|
|
507
507
|
var d = gr(a);
|
|
508
|
-
if (
|
|
508
|
+
if (Ie[d])
|
|
509
509
|
return;
|
|
510
|
-
|
|
510
|
+
Ie[d] = !0;
|
|
511
511
|
var v = "";
|
|
512
|
-
r && r._owner && r._owner !==
|
|
512
|
+
r && r._owner && r._owner !== ne.current && (v = " It was passed a child from " + I(r._owner.type) + "."), L(r), C('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', d, v), L(null);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
function
|
|
515
|
+
function De(r, a) {
|
|
516
516
|
{
|
|
517
517
|
if (typeof r != "object")
|
|
518
518
|
return;
|
|
519
|
-
if (
|
|
519
|
+
if (ae(r))
|
|
520
520
|
for (var d = 0; d < r.length; d++) {
|
|
521
521
|
var v = r[d];
|
|
522
|
-
|
|
522
|
+
ie(v) && Me(v, a);
|
|
523
523
|
}
|
|
524
|
-
else if (
|
|
524
|
+
else if (ie(r))
|
|
525
525
|
r._store && (r._store.validated = !0);
|
|
526
526
|
else if (r) {
|
|
527
527
|
var y = Ye(r);
|
|
528
528
|
if (typeof y == "function" && y !== r.entries)
|
|
529
529
|
for (var h = y.call(r), m; !(m = h.next()).done; )
|
|
530
|
-
|
|
530
|
+
ie(m.value) && Me(m.value, a);
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
533
|
}
|
|
@@ -539,21 +539,21 @@ Check the top-level render call using <` + d + ">.");
|
|
|
539
539
|
var d;
|
|
540
540
|
if (typeof a == "function")
|
|
541
541
|
d = a.propTypes;
|
|
542
|
-
else if (typeof a == "object" && (a.$$typeof ===
|
|
542
|
+
else if (typeof a == "object" && (a.$$typeof === p || // Note: Memo only checks outer props here.
|
|
543
543
|
// Inner props are checked in the reconciler.
|
|
544
544
|
a.$$typeof === x))
|
|
545
545
|
d = a.propTypes;
|
|
546
546
|
else
|
|
547
547
|
return;
|
|
548
548
|
if (d) {
|
|
549
|
-
var v =
|
|
549
|
+
var v = I(a);
|
|
550
550
|
or(d, r.props, "prop", v, r);
|
|
551
|
-
} else if (a.PropTypes !== void 0 && !
|
|
552
|
-
|
|
553
|
-
var y =
|
|
554
|
-
|
|
551
|
+
} else if (a.PropTypes !== void 0 && !se) {
|
|
552
|
+
se = !0;
|
|
553
|
+
var y = I(a);
|
|
554
|
+
C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", y || "Unknown");
|
|
555
555
|
}
|
|
556
|
-
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved &&
|
|
556
|
+
typeof a.getDefaultProps == "function" && !a.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
function yr(r) {
|
|
@@ -561,84 +561,84 @@ Check the top-level render call using <` + d + ">.");
|
|
|
561
561
|
for (var a = Object.keys(r.props), d = 0; d < a.length; d++) {
|
|
562
562
|
var v = a[d];
|
|
563
563
|
if (v !== "children" && v !== "key") {
|
|
564
|
-
|
|
564
|
+
L(r), C("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", v), L(null);
|
|
565
565
|
break;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
r.ref !== null && (
|
|
568
|
+
r.ref !== null && (L(r), C("Invalid attribute `ref` supplied to `React.Fragment`."), L(null));
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
var
|
|
572
|
-
function
|
|
571
|
+
var ze = {};
|
|
572
|
+
function Pe(r, a, d, v, y, h) {
|
|
573
573
|
{
|
|
574
574
|
var m = Je(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
|
-
var
|
|
579
|
-
|
|
580
|
-
var
|
|
581
|
-
r === null ?
|
|
578
|
+
var S = pr();
|
|
579
|
+
S ? g += S : g += _e();
|
|
580
|
+
var j;
|
|
581
|
+
r === null ? j = "null" : ae(r) ? j = "array" : r !== void 0 && r.$$typeof === t ? (j = "<" + (I(r.type) || "Unknown") + " />", g = " Did you accidentally export a JSX literal instead of a component?") : j = typeof r, C("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
|
|
584
|
-
if (
|
|
585
|
-
return
|
|
583
|
+
var k = vr(r, a, d, y, h);
|
|
584
|
+
if (k == null)
|
|
585
|
+
return k;
|
|
586
586
|
if (m) {
|
|
587
|
-
var
|
|
588
|
-
if (
|
|
587
|
+
var T = a.children;
|
|
588
|
+
if (T !== void 0)
|
|
589
589
|
if (v)
|
|
590
|
-
if (
|
|
591
|
-
for (var
|
|
592
|
-
|
|
593
|
-
Object.freeze && Object.freeze(
|
|
590
|
+
if (ae(T)) {
|
|
591
|
+
for (var A = 0; A < T.length; A++)
|
|
592
|
+
De(T[A], r);
|
|
593
|
+
Object.freeze && Object.freeze(T);
|
|
594
594
|
} else
|
|
595
|
-
|
|
595
|
+
C("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
|
+
De(T, r);
|
|
598
598
|
}
|
|
599
|
-
if (
|
|
600
|
-
var
|
|
599
|
+
if (B.call(a, "key")) {
|
|
600
|
+
var D = I(r), R = Object.keys(a).filter(function(wr) {
|
|
601
601
|
return wr !== "key";
|
|
602
|
-
}),
|
|
603
|
-
if (!
|
|
604
|
-
var kr =
|
|
605
|
-
|
|
602
|
+
}), le = R.length > 0 ? "{key: someKey, " + R.join(": ..., ") + ": ...}" : "{key: someKey}";
|
|
603
|
+
if (!ze[D + le]) {
|
|
604
|
+
var kr = R.length > 0 ? "{" + R.join(": ..., ") + ": ...}" : "{}";
|
|
605
|
+
C(`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} />`,
|
|
610
|
+
<%s key={someKey} {...props} />`, le, D, kr, D), ze[D + le] = !0;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
return r ===
|
|
613
|
+
return r === n ? yr(k) : mr(k), k;
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
616
|
function hr(r, a, d) {
|
|
617
|
-
return
|
|
617
|
+
return Pe(r, a, d, !0);
|
|
618
618
|
}
|
|
619
619
|
function xr(r, a, d) {
|
|
620
|
-
return
|
|
620
|
+
return Pe(r, a, d, !1);
|
|
621
621
|
}
|
|
622
622
|
var br = xr, jr = hr;
|
|
623
|
-
Y.Fragment =
|
|
623
|
+
Y.Fragment = n, Y.jsx = br, Y.jsxs = jr;
|
|
624
624
|
}()), Y;
|
|
625
625
|
}
|
|
626
|
-
process.env.NODE_ENV === "production" ?
|
|
627
|
-
var e =
|
|
628
|
-
const
|
|
626
|
+
process.env.NODE_ENV === "production" ? ce.exports = Sr() : ce.exports = Rr();
|
|
627
|
+
var e = ce.exports;
|
|
628
|
+
const Ur = ({
|
|
629
629
|
variant: o = "primary",
|
|
630
630
|
size: t = "md",
|
|
631
631
|
loading: s = !1,
|
|
632
|
-
icon:
|
|
632
|
+
icon: n,
|
|
633
633
|
children: l,
|
|
634
|
-
disabled:
|
|
634
|
+
disabled: i,
|
|
635
635
|
...c
|
|
636
636
|
}) => {
|
|
637
637
|
const u = {
|
|
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
|
+
}, p = {
|
|
642
642
|
primary: {
|
|
643
643
|
backgroundColor: "var(--primary-color)",
|
|
644
644
|
color: "var(--surface-light)",
|
|
@@ -669,14 +669,14 @@ const Hr = ({
|
|
|
669
669
|
border: "2px solid var(--danger-color)",
|
|
670
670
|
boxShadow: "2px 2px 0 rgba(0,0,0,0.2)"
|
|
671
671
|
}
|
|
672
|
-
},
|
|
672
|
+
}, b = {
|
|
673
673
|
...u[t],
|
|
674
|
-
...
|
|
674
|
+
...p[o],
|
|
675
675
|
borderRadius: "var(--radius-md)",
|
|
676
676
|
fontFamily: "var(--font-sans)",
|
|
677
677
|
fontWeight: 600,
|
|
678
|
-
cursor:
|
|
679
|
-
opacity:
|
|
678
|
+
cursor: i || s ? "not-allowed" : "pointer",
|
|
679
|
+
opacity: i ? 0.5 : 1,
|
|
680
680
|
display: "inline-flex",
|
|
681
681
|
alignItems: "center",
|
|
682
682
|
justifyContent: "center",
|
|
@@ -688,22 +688,22 @@ const Hr = ({
|
|
|
688
688
|
"button",
|
|
689
689
|
{
|
|
690
690
|
...c,
|
|
691
|
-
disabled:
|
|
692
|
-
style: { ...
|
|
693
|
-
onMouseDown: (
|
|
691
|
+
disabled: i || s,
|
|
692
|
+
style: { ...b, ...c.style },
|
|
693
|
+
onMouseDown: (f) => {
|
|
694
694
|
var x;
|
|
695
|
-
!
|
|
695
|
+
!i && !s && (f.currentTarget.style.transform = "translate(2px, 2px)", f.currentTarget.style.boxShadow = "none"), (x = c.onMouseDown) == null || x.call(c, f);
|
|
696
696
|
},
|
|
697
|
-
onMouseUp: (
|
|
697
|
+
onMouseUp: (f) => {
|
|
698
698
|
var x;
|
|
699
|
-
|
|
699
|
+
f.currentTarget.style.transform = "translate(0, 0)", f.currentTarget.style.boxShadow = p[o].boxShadow || "none", (x = c.onMouseUp) == null || x.call(c, f);
|
|
700
700
|
},
|
|
701
|
-
onMouseLeave: (
|
|
701
|
+
onMouseLeave: (f) => {
|
|
702
702
|
var x;
|
|
703
|
-
|
|
703
|
+
f.currentTarget.style.transform = "translate(0, 0)", f.currentTarget.style.boxShadow = p[o].boxShadow || "none", (x = c.onMouseLeave) == null || x.call(c, f);
|
|
704
704
|
},
|
|
705
705
|
children: [
|
|
706
|
-
s ? /* @__PURE__ */ e.jsx(Tr, { size: 16 }) :
|
|
706
|
+
s ? /* @__PURE__ */ e.jsx(Tr, { size: 16 }) : n,
|
|
707
707
|
l
|
|
708
708
|
]
|
|
709
709
|
}
|
|
@@ -723,17 +723,17 @@ const Hr = ({
|
|
|
723
723
|
}
|
|
724
724
|
),
|
|
725
725
|
/* @__PURE__ */ e.jsx("style", { children: "@keyframes spin { to { transform: rotate(360deg); } }" })
|
|
726
|
-
] }),
|
|
726
|
+
] }), Hr = ({
|
|
727
727
|
title: o,
|
|
728
728
|
subtitle: t,
|
|
729
729
|
children: s,
|
|
730
|
-
hoverable:
|
|
730
|
+
hoverable: n = !1,
|
|
731
731
|
padding: l = "lg",
|
|
732
|
-
className:
|
|
732
|
+
className: i,
|
|
733
733
|
style: c,
|
|
734
734
|
onClick: u
|
|
735
735
|
}) => {
|
|
736
|
-
const
|
|
736
|
+
const p = {
|
|
737
737
|
none: "0",
|
|
738
738
|
sm: "var(--space-sm)",
|
|
739
739
|
md: "var(--space-md)",
|
|
@@ -742,12 +742,12 @@ const Hr = ({
|
|
|
742
742
|
return /* @__PURE__ */ e.jsxs(
|
|
743
743
|
"div",
|
|
744
744
|
{
|
|
745
|
-
className:
|
|
745
|
+
className: i,
|
|
746
746
|
onClick: u,
|
|
747
747
|
style: {
|
|
748
748
|
backgroundColor: "var(--bg-color)",
|
|
749
749
|
borderRadius: "var(--radius-md)",
|
|
750
|
-
padding:
|
|
750
|
+
padding: p[l],
|
|
751
751
|
border: "2px solid var(--border-color)",
|
|
752
752
|
display: "flex",
|
|
753
753
|
flexDirection: "column",
|
|
@@ -756,11 +756,11 @@ const Hr = ({
|
|
|
756
756
|
cursor: u ? "pointer" : "default",
|
|
757
757
|
...c
|
|
758
758
|
},
|
|
759
|
-
onMouseEnter: (
|
|
760
|
-
|
|
759
|
+
onMouseEnter: (b) => {
|
|
760
|
+
n && (b.currentTarget.style.transform = "translateY(-4px)", b.currentTarget.style.boxShadow = "var(--shadow-lg)");
|
|
761
761
|
},
|
|
762
|
-
onMouseLeave: (
|
|
763
|
-
|
|
762
|
+
onMouseLeave: (b) => {
|
|
763
|
+
n && (b.currentTarget.style.transform = "translateY(0)", b.currentTarget.style.boxShadow = "none");
|
|
764
764
|
},
|
|
765
765
|
children: [
|
|
766
766
|
(o || t) && /* @__PURE__ */ e.jsxs("div", { style: { borderBottom: "1px solid var(--border-color)", paddingBottom: "var(--space-sm)" }, children: [
|
|
@@ -783,12 +783,12 @@ const Hr = ({
|
|
|
783
783
|
]
|
|
784
784
|
}
|
|
785
785
|
);
|
|
786
|
-
},
|
|
786
|
+
}, Vr = ({
|
|
787
787
|
children: o,
|
|
788
788
|
variant: t = "default",
|
|
789
789
|
size: s = "md"
|
|
790
790
|
}) => {
|
|
791
|
-
const
|
|
791
|
+
const n = {
|
|
792
792
|
sm: { padding: "2px var(--space-xs)", fontSize: "0.7rem" },
|
|
793
793
|
md: { padding: "var(--space-xs) var(--space-sm)", fontSize: "0.8rem" }
|
|
794
794
|
}, l = {
|
|
@@ -826,7 +826,7 @@ const Hr = ({
|
|
|
826
826
|
"span",
|
|
827
827
|
{
|
|
828
828
|
style: {
|
|
829
|
-
...
|
|
829
|
+
...n[s],
|
|
830
830
|
...l[t],
|
|
831
831
|
borderRadius: "var(--radius-full)",
|
|
832
832
|
fontFamily: "var(--font-sans)",
|
|
@@ -842,14 +842,14 @@ const Hr = ({
|
|
|
842
842
|
children: o
|
|
843
843
|
}
|
|
844
844
|
);
|
|
845
|
-
},
|
|
845
|
+
}, Xr = ({
|
|
846
846
|
label: o,
|
|
847
847
|
error: t,
|
|
848
848
|
hint: s,
|
|
849
|
-
icon:
|
|
849
|
+
icon: n,
|
|
850
850
|
...l
|
|
851
851
|
}) => {
|
|
852
|
-
const
|
|
852
|
+
const i = !!t;
|
|
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",
|
|
@@ -860,23 +860,23 @@ const Hr = ({
|
|
|
860
860
|
color: "var(--text-color)"
|
|
861
861
|
}, children: o }),
|
|
862
862
|
/* @__PURE__ */ e.jsxs("div", { style: { position: "relative" }, children: [
|
|
863
|
-
|
|
863
|
+
n && /* @__PURE__ */ e.jsx("span", { style: {
|
|
864
864
|
position: "absolute",
|
|
865
865
|
left: "var(--space-sm)",
|
|
866
866
|
top: "50%",
|
|
867
867
|
transform: "translateY(-50%)",
|
|
868
868
|
color: "var(--text-color)",
|
|
869
869
|
opacity: 0.5
|
|
870
|
-
}, children:
|
|
870
|
+
}, children: n }),
|
|
871
871
|
/* @__PURE__ */ e.jsx(
|
|
872
872
|
"input",
|
|
873
873
|
{
|
|
874
874
|
...l,
|
|
875
875
|
style: {
|
|
876
876
|
width: "100%",
|
|
877
|
-
padding:
|
|
877
|
+
padding: n ? "var(--space-sm) var(--space-sm) var(--space-sm) var(--space-xl)" : "var(--space-sm) var(--space-md)",
|
|
878
878
|
borderRadius: "var(--radius-md)",
|
|
879
|
-
border: `2px solid ${
|
|
879
|
+
border: `2px solid ${i ? "var(--danger-color)" : "var(--border-color)"}`,
|
|
880
880
|
fontFamily: "var(--font-sans)",
|
|
881
881
|
fontSize: "1rem",
|
|
882
882
|
backgroundColor: "var(--bg-color)",
|
|
@@ -888,11 +888,11 @@ const Hr = ({
|
|
|
888
888
|
},
|
|
889
889
|
onFocus: (c) => {
|
|
890
890
|
var u;
|
|
891
|
-
c.currentTarget.style.borderColor =
|
|
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)"}`, (u = l.onFocus) == null || u.call(l, c);
|
|
892
892
|
},
|
|
893
893
|
onBlur: (c) => {
|
|
894
894
|
var u;
|
|
895
|
-
c.currentTarget.style.borderColor =
|
|
895
|
+
c.currentTarget.style.borderColor = i ? "var(--danger-color)" : "var(--border-color)", c.currentTarget.style.boxShadow = "none", (u = l.onBlur) == null || u.call(l, c);
|
|
896
896
|
}
|
|
897
897
|
}
|
|
898
898
|
)
|
|
@@ -906,13 +906,13 @@ const Hr = ({
|
|
|
906
906
|
}, children: t || s })
|
|
907
907
|
] });
|
|
908
908
|
};
|
|
909
|
-
function
|
|
909
|
+
function qr({
|
|
910
910
|
columns: o,
|
|
911
911
|
data: t,
|
|
912
912
|
keyExtractor: s,
|
|
913
|
-
onRowClick:
|
|
913
|
+
onRowClick: n,
|
|
914
914
|
emptyMessage: l = "No data available",
|
|
915
|
-
striped:
|
|
915
|
+
striped: i = !0
|
|
916
916
|
}) {
|
|
917
917
|
return /* @__PURE__ */ e.jsx("div", { style: {
|
|
918
918
|
overflowX: "auto",
|
|
@@ -954,47 +954,47 @@ function Jr({
|
|
|
954
954
|
) }) : t.map((c, u) => /* @__PURE__ */ e.jsx(
|
|
955
955
|
"tr",
|
|
956
956
|
{
|
|
957
|
-
onClick: () =>
|
|
957
|
+
onClick: () => n == null ? void 0 : n(c),
|
|
958
958
|
style: {
|
|
959
|
-
backgroundColor:
|
|
960
|
-
cursor:
|
|
959
|
+
backgroundColor: i && u % 2 === 1 ? "var(--secondary-color)" : "transparent",
|
|
960
|
+
cursor: n ? "pointer" : "default",
|
|
961
961
|
transition: "background-color var(--transition-fast)"
|
|
962
962
|
},
|
|
963
|
-
onMouseEnter: (
|
|
964
|
-
|
|
963
|
+
onMouseEnter: (p) => {
|
|
964
|
+
n && (p.currentTarget.style.backgroundColor = "var(--accent-color)");
|
|
965
965
|
},
|
|
966
|
-
onMouseLeave: (
|
|
967
|
-
|
|
966
|
+
onMouseLeave: (p) => {
|
|
967
|
+
p.currentTarget.style.backgroundColor = i && u % 2 === 1 ? "var(--secondary-color)" : "transparent";
|
|
968
968
|
},
|
|
969
|
-
children: o.map((
|
|
969
|
+
children: o.map((p) => /* @__PURE__ */ e.jsx(
|
|
970
970
|
"td",
|
|
971
971
|
{
|
|
972
972
|
style: {
|
|
973
973
|
padding: "var(--space-md)",
|
|
974
|
-
textAlign:
|
|
974
|
+
textAlign: p.align || "left",
|
|
975
975
|
color: "var(--text-color)",
|
|
976
976
|
borderBottom: "1px solid var(--border-color)"
|
|
977
977
|
},
|
|
978
|
-
children:
|
|
978
|
+
children: p.render ? p.render(c) : String(c[p.key] ?? "")
|
|
979
979
|
},
|
|
980
|
-
String(
|
|
980
|
+
String(p.key)
|
|
981
981
|
))
|
|
982
982
|
},
|
|
983
983
|
s(c)
|
|
984
984
|
)) })
|
|
985
985
|
] }) });
|
|
986
986
|
}
|
|
987
|
-
const
|
|
987
|
+
const Jr = ({
|
|
988
988
|
open: o,
|
|
989
989
|
onClose: t,
|
|
990
990
|
title: s,
|
|
991
|
-
children:
|
|
991
|
+
children: n,
|
|
992
992
|
size: l = "md",
|
|
993
|
-
showCloseButton:
|
|
993
|
+
showCloseButton: i = !0
|
|
994
994
|
}) => {
|
|
995
995
|
if (N(() => {
|
|
996
|
-
const u = (
|
|
997
|
-
|
|
996
|
+
const u = (p) => {
|
|
997
|
+
p.key === "Escape" && t();
|
|
998
998
|
};
|
|
999
999
|
return o && (document.addEventListener("keydown", u), document.body.style.overflow = "hidden"), () => {
|
|
1000
1000
|
document.removeEventListener("keydown", u), document.body.style.overflow = "";
|
|
@@ -1045,7 +1045,7 @@ const Kr = ({
|
|
|
1045
1045
|
},
|
|
1046
1046
|
onClick: (u) => u.stopPropagation(),
|
|
1047
1047
|
children: [
|
|
1048
|
-
(s ||
|
|
1048
|
+
(s || i) && /* @__PURE__ */ e.jsxs("div", { style: {
|
|
1049
1049
|
display: "flex",
|
|
1050
1050
|
alignItems: "center",
|
|
1051
1051
|
justifyContent: "space-between",
|
|
@@ -1066,7 +1066,7 @@ const Kr = ({
|
|
|
1066
1066
|
children: s
|
|
1067
1067
|
}
|
|
1068
1068
|
),
|
|
1069
|
-
|
|
1069
|
+
i && /* @__PURE__ */ e.jsx(
|
|
1070
1070
|
"button",
|
|
1071
1071
|
{
|
|
1072
1072
|
onClick: t,
|
|
@@ -1091,7 +1091,7 @@ const Kr = ({
|
|
|
1091
1091
|
padding: "var(--space-lg)",
|
|
1092
1092
|
overflowY: "auto",
|
|
1093
1093
|
flex: 1
|
|
1094
|
-
}, children:
|
|
1094
|
+
}, children: n })
|
|
1095
1095
|
]
|
|
1096
1096
|
}
|
|
1097
1097
|
),
|
|
@@ -1108,11 +1108,11 @@ const Kr = ({
|
|
|
1108
1108
|
]
|
|
1109
1109
|
}
|
|
1110
1110
|
);
|
|
1111
|
-
},
|
|
1111
|
+
}, Kr = ({
|
|
1112
1112
|
children: o,
|
|
1113
1113
|
variant: t = "info",
|
|
1114
1114
|
title: s,
|
|
1115
|
-
dismissible:
|
|
1115
|
+
dismissible: n = !1,
|
|
1116
1116
|
onDismiss: l
|
|
1117
1117
|
}) => {
|
|
1118
1118
|
const c = {
|
|
@@ -1176,7 +1176,7 @@ const Kr = ({
|
|
|
1176
1176
|
lineHeight: 1.5
|
|
1177
1177
|
}, children: o })
|
|
1178
1178
|
] }),
|
|
1179
|
-
|
|
1179
|
+
n && /* @__PURE__ */ e.jsx(
|
|
1180
1180
|
"button",
|
|
1181
1181
|
{
|
|
1182
1182
|
onClick: l,
|
|
@@ -1199,13 +1199,13 @@ const Kr = ({
|
|
|
1199
1199
|
]
|
|
1200
1200
|
}
|
|
1201
1201
|
);
|
|
1202
|
-
},
|
|
1202
|
+
}, Gr = ({
|
|
1203
1203
|
tabs: o,
|
|
1204
1204
|
activeTab: t,
|
|
1205
1205
|
onTabChange: s,
|
|
1206
|
-
variant:
|
|
1206
|
+
variant: n = "underline"
|
|
1207
1207
|
}) => {
|
|
1208
|
-
const l =
|
|
1208
|
+
const l = n === "underline";
|
|
1209
1209
|
return /* @__PURE__ */ e.jsxs("div", { style: { width: "100%" }, children: [
|
|
1210
1210
|
/* @__PURE__ */ e.jsx(
|
|
1211
1211
|
"div",
|
|
@@ -1219,16 +1219,16 @@ const Kr = ({
|
|
|
1219
1219
|
backgroundColor: l ? "transparent" : "var(--secondary-color)",
|
|
1220
1220
|
borderRadius: l ? "0" : "var(--radius-md)"
|
|
1221
1221
|
},
|
|
1222
|
-
children: o.map((
|
|
1223
|
-
const c =
|
|
1222
|
+
children: o.map((i) => {
|
|
1223
|
+
const c = i.id === t;
|
|
1224
1224
|
return /* @__PURE__ */ e.jsx(
|
|
1225
1225
|
"button",
|
|
1226
1226
|
{
|
|
1227
1227
|
role: "tab",
|
|
1228
1228
|
"aria-selected": c,
|
|
1229
|
-
"aria-controls": `panel-${
|
|
1230
|
-
disabled:
|
|
1231
|
-
onClick: () => !
|
|
1229
|
+
"aria-controls": `panel-${i.id}`,
|
|
1230
|
+
disabled: i.disabled,
|
|
1231
|
+
onClick: () => !i.disabled && s(i.id),
|
|
1232
1232
|
style: {
|
|
1233
1233
|
background: l ? "none" : c ? "var(--primary-color)" : "transparent",
|
|
1234
1234
|
border: "none",
|
|
@@ -1240,54 +1240,54 @@ const Kr = ({
|
|
|
1240
1240
|
fontWeight: 600,
|
|
1241
1241
|
fontSize: "0.95rem",
|
|
1242
1242
|
color: c ? l ? "var(--primary-color)" : "var(--surface-light)" : "var(--text-color)",
|
|
1243
|
-
opacity:
|
|
1244
|
-
cursor:
|
|
1243
|
+
opacity: i.disabled ? 0.5 : 1,
|
|
1244
|
+
cursor: i.disabled ? "not-allowed" : "pointer",
|
|
1245
1245
|
transition: "all var(--transition-fast)"
|
|
1246
1246
|
},
|
|
1247
1247
|
onMouseEnter: (u) => {
|
|
1248
|
-
!
|
|
1248
|
+
!i.disabled && !c && (u.currentTarget.style.backgroundColor = l ? "rgba(0,0,0,0.05)" : "var(--accent-color)");
|
|
1249
1249
|
},
|
|
1250
1250
|
onMouseLeave: (u) => {
|
|
1251
|
-
!
|
|
1251
|
+
!i.disabled && !c && (u.currentTarget.style.backgroundColor = "transparent");
|
|
1252
1252
|
},
|
|
1253
|
-
children:
|
|
1253
|
+
children: i.label
|
|
1254
1254
|
},
|
|
1255
|
-
|
|
1255
|
+
i.id
|
|
1256
1256
|
);
|
|
1257
1257
|
})
|
|
1258
1258
|
}
|
|
1259
1259
|
),
|
|
1260
|
-
/* @__PURE__ */ e.jsx("div", { style: { marginTop: "var(--space-lg)" }, children: o.map((
|
|
1260
|
+
/* @__PURE__ */ e.jsx("div", { style: { marginTop: "var(--space-lg)" }, children: o.map((i) => /* @__PURE__ */ e.jsx(
|
|
1261
1261
|
"div",
|
|
1262
1262
|
{
|
|
1263
|
-
id: `panel-${
|
|
1263
|
+
id: `panel-${i.id}`,
|
|
1264
1264
|
role: "tabpanel",
|
|
1265
|
-
hidden:
|
|
1265
|
+
hidden: i.id !== t,
|
|
1266
1266
|
style: {
|
|
1267
|
-
display:
|
|
1267
|
+
display: i.id === t ? "block" : "none"
|
|
1268
1268
|
},
|
|
1269
|
-
children:
|
|
1269
|
+
children: i.content
|
|
1270
1270
|
},
|
|
1271
|
-
|
|
1271
|
+
i.id
|
|
1272
1272
|
)) })
|
|
1273
1273
|
] });
|
|
1274
|
-
},
|
|
1274
|
+
}, Qr = ({
|
|
1275
1275
|
content: o,
|
|
1276
1276
|
children: t,
|
|
1277
1277
|
position: s = "top",
|
|
1278
|
-
delay:
|
|
1278
|
+
delay: n = 200
|
|
1279
1279
|
}) => {
|
|
1280
|
-
const [l,
|
|
1280
|
+
const [l, i] = z(!1), c = We(null), u = We(), p = () => {
|
|
1281
1281
|
u.current = window.setTimeout(() => {
|
|
1282
|
-
|
|
1283
|
-
},
|
|
1284
|
-
},
|
|
1285
|
-
u.current && clearTimeout(u.current),
|
|
1282
|
+
i(!0);
|
|
1283
|
+
}, n);
|
|
1284
|
+
}, b = () => {
|
|
1285
|
+
u.current && clearTimeout(u.current), i(!1);
|
|
1286
1286
|
};
|
|
1287
1287
|
N(() => () => {
|
|
1288
1288
|
u.current && clearTimeout(u.current);
|
|
1289
1289
|
}, []);
|
|
1290
|
-
const
|
|
1290
|
+
const f = {
|
|
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,10 +1298,10 @@ const Kr = ({
|
|
|
1298
1298
|
{
|
|
1299
1299
|
ref: c,
|
|
1300
1300
|
style: { position: "relative", display: "inline-block" },
|
|
1301
|
-
onMouseEnter:
|
|
1302
|
-
onMouseLeave:
|
|
1303
|
-
onFocus:
|
|
1304
|
-
onBlur:
|
|
1301
|
+
onMouseEnter: p,
|
|
1302
|
+
onMouseLeave: b,
|
|
1303
|
+
onFocus: p,
|
|
1304
|
+
onBlur: b,
|
|
1305
1305
|
children: [
|
|
1306
1306
|
t,
|
|
1307
1307
|
l && /* @__PURE__ */ e.jsxs(
|
|
@@ -1310,7 +1310,7 @@ const Kr = ({
|
|
|
1310
1310
|
role: "tooltip",
|
|
1311
1311
|
style: {
|
|
1312
1312
|
position: "absolute",
|
|
1313
|
-
...
|
|
1313
|
+
...f[s],
|
|
1314
1314
|
backgroundColor: "var(--secondary-color)",
|
|
1315
1315
|
color: "var(--surface-light)",
|
|
1316
1316
|
padding: "var(--space-xs) var(--space-sm)",
|
|
@@ -1341,7 +1341,7 @@ const Kr = ({
|
|
|
1341
1341
|
size: o = "md",
|
|
1342
1342
|
color: t = "var(--primary-color)"
|
|
1343
1343
|
}) => {
|
|
1344
|
-
const
|
|
1344
|
+
const n = {
|
|
1345
1345
|
sm: 20,
|
|
1346
1346
|
md: 32,
|
|
1347
1347
|
lg: 48
|
|
@@ -1349,8 +1349,8 @@ const Kr = ({
|
|
|
1349
1349
|
return /* @__PURE__ */ e.jsxs(
|
|
1350
1350
|
"svg",
|
|
1351
1351
|
{
|
|
1352
|
-
width:
|
|
1353
|
-
height:
|
|
1352
|
+
width: n,
|
|
1353
|
+
height: n,
|
|
1354
1354
|
viewBox: "0 0 50 50",
|
|
1355
1355
|
style: { animation: "spinnerRotate 0.8s linear infinite" },
|
|
1356
1356
|
children: [
|
|
@@ -1376,7 +1376,7 @@ const Kr = ({
|
|
|
1376
1376
|
]
|
|
1377
1377
|
}
|
|
1378
1378
|
);
|
|
1379
|
-
},
|
|
1379
|
+
}, Zr = ({
|
|
1380
1380
|
message: o = "Loading..."
|
|
1381
1381
|
}) => /* @__PURE__ */ e.jsxs("div", { style: {
|
|
1382
1382
|
position: "fixed",
|
|
@@ -1402,13 +1402,13 @@ const Kr = ({
|
|
|
1402
1402
|
width: o = "100%",
|
|
1403
1403
|
height: t = 20,
|
|
1404
1404
|
variant: s = "text",
|
|
1405
|
-
animation:
|
|
1405
|
+
animation: n = "wave"
|
|
1406
1406
|
}) => {
|
|
1407
1407
|
const l = {
|
|
1408
1408
|
text: { borderRadius: "var(--radius-sm)" },
|
|
1409
1409
|
rect: { borderRadius: "var(--radius-md)" },
|
|
1410
1410
|
circle: { borderRadius: "50%" }
|
|
1411
|
-
},
|
|
1411
|
+
}, i = {
|
|
1412
1412
|
pulse: {
|
|
1413
1413
|
animation: "skeletonPulse 1.5s ease-in-out infinite"
|
|
1414
1414
|
},
|
|
@@ -1425,9 +1425,9 @@ const Kr = ({
|
|
|
1425
1425
|
style: {
|
|
1426
1426
|
width: o,
|
|
1427
1427
|
height: t,
|
|
1428
|
-
backgroundColor:
|
|
1428
|
+
backgroundColor: n === "wave" ? void 0 : "var(--secondary-color)",
|
|
1429
1429
|
...l[s],
|
|
1430
|
-
...n
|
|
1430
|
+
...i[n]
|
|
1431
1431
|
},
|
|
1432
1432
|
children: /* @__PURE__ */ e.jsx("style", { children: `
|
|
1433
1433
|
@keyframes skeletonPulse {
|
|
@@ -1448,7 +1448,7 @@ const Kr = ({
|
|
|
1448
1448
|
height: 16
|
|
1449
1449
|
},
|
|
1450
1450
|
s
|
|
1451
|
-
)) }),
|
|
1451
|
+
)) }), eo = () => /* @__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)",
|
|
@@ -1461,16 +1461,14 @@ const Kr = ({
|
|
|
1461
1461
|
] }), _r = ({
|
|
1462
1462
|
brand: o,
|
|
1463
1463
|
darkMode: t,
|
|
1464
|
-
onThemeToggle: s
|
|
1465
|
-
onAccountClick: i,
|
|
1466
|
-
onNotificationClick: l
|
|
1464
|
+
onThemeToggle: s
|
|
1467
1465
|
}) => {
|
|
1468
|
-
const [n,
|
|
1466
|
+
const [n, l] = z(!1), [i, c] = z(!1), [u, p] = z(null);
|
|
1469
1467
|
N(() => {
|
|
1470
|
-
const
|
|
1471
|
-
return
|
|
1468
|
+
const f = () => l(window.innerWidth < 768);
|
|
1469
|
+
return f(), window.addEventListener("resize", f), () => window.removeEventListener("resize", f);
|
|
1472
1470
|
}, []);
|
|
1473
|
-
const
|
|
1471
|
+
const b = o.navItems.filter((f) => f.inNavbar !== !1);
|
|
1474
1472
|
return /* @__PURE__ */ e.jsxs("header", { style: {
|
|
1475
1473
|
backgroundColor: "var(--primary-color)",
|
|
1476
1474
|
borderBottom: "4px solid var(--accent-color)",
|
|
@@ -1517,15 +1515,15 @@ const Kr = ({
|
|
|
1517
1515
|
gap: "var(--space-sm)",
|
|
1518
1516
|
flex: 1,
|
|
1519
1517
|
justifyContent: "center"
|
|
1520
|
-
}, children:
|
|
1518
|
+
}, children: b.map((f) => /* @__PURE__ */ e.jsx(
|
|
1521
1519
|
Ir,
|
|
1522
1520
|
{
|
|
1523
|
-
item:
|
|
1524
|
-
isActive:
|
|
1525
|
-
onHover: (
|
|
1521
|
+
item: f,
|
|
1522
|
+
isActive: u === f.label,
|
|
1523
|
+
onHover: (x) => p(x),
|
|
1526
1524
|
onLeave: () => p(null)
|
|
1527
1525
|
},
|
|
1528
|
-
|
|
1526
|
+
f.label
|
|
1529
1527
|
)) }),
|
|
1530
1528
|
n && /* @__PURE__ */ e.jsx("div", { style: { flex: 1 } }),
|
|
1531
1529
|
/* @__PURE__ */ e.jsxs("div", { style: {
|
|
@@ -1534,19 +1532,31 @@ const Kr = ({
|
|
|
1534
1532
|
gap: "var(--space-xs)",
|
|
1535
1533
|
flexShrink: 0
|
|
1536
1534
|
}, children: [
|
|
1537
|
-
n && /* @__PURE__ */ e.jsx(
|
|
1538
|
-
/* @__PURE__ */ e.jsx(
|
|
1539
|
-
|
|
1540
|
-
|
|
1535
|
+
n && /* @__PURE__ */ e.jsx(Oe, { onClick: () => c(!i), label: "Menu", size: 36, children: /* @__PURE__ */ e.jsx(Wr, {}) }),
|
|
1536
|
+
/* @__PURE__ */ e.jsx(Oe, { onClick: s, label: "Toggle theme", size: 36, children: t ? /* @__PURE__ */ e.jsx(zr, {}) : /* @__PURE__ */ e.jsx(Dr, {}) }),
|
|
1537
|
+
/* @__PURE__ */ e.jsx("a", { href: "/account", "aria-label": "Account", style: {
|
|
1538
|
+
width: 40,
|
|
1539
|
+
height: 40,
|
|
1540
|
+
borderRadius: "var(--radius-full)",
|
|
1541
|
+
backgroundColor: "rgba(255,255,255,0.1)",
|
|
1542
|
+
border: "none",
|
|
1543
|
+
cursor: "pointer",
|
|
1544
|
+
display: "flex",
|
|
1545
|
+
alignItems: "center",
|
|
1546
|
+
justifyContent: "center",
|
|
1547
|
+
transition: "background var(--transition-fast)",
|
|
1548
|
+
color: "var(--surface-light)",
|
|
1549
|
+
textDecoration: "none"
|
|
1550
|
+
}, children: /* @__PURE__ */ e.jsx(Pr, {}) })
|
|
1541
1551
|
] })
|
|
1542
1552
|
] }),
|
|
1543
|
-
n &&
|
|
1553
|
+
n && i && /* @__PURE__ */ e.jsx("div", { style: {
|
|
1544
1554
|
backgroundColor: "var(--bg-color)",
|
|
1545
1555
|
borderTop: "1px solid var(--border-color)",
|
|
1546
1556
|
padding: "var(--space-sm)"
|
|
1547
|
-
}, children:
|
|
1557
|
+
}, children: b.map((f) => /* @__PURE__ */ e.jsx(Mr, { item: f, onClose: () => c(!1) }, f.label)) })
|
|
1548
1558
|
] });
|
|
1549
|
-
},
|
|
1559
|
+
}, Oe = ({ onClick: o, label: t, size: s = 36, children: n }) => /* @__PURE__ */ e.jsx(
|
|
1550
1560
|
"button",
|
|
1551
1561
|
{
|
|
1552
1562
|
onClick: o,
|
|
@@ -1566,9 +1576,9 @@ const Kr = ({
|
|
|
1566
1576
|
},
|
|
1567
1577
|
onMouseEnter: (l) => l.currentTarget.style.backgroundColor = "rgba(255,255,255,0.2)",
|
|
1568
1578
|
onMouseLeave: (l) => l.currentTarget.style.backgroundColor = "rgba(255,255,255,0.1)",
|
|
1569
|
-
children:
|
|
1579
|
+
children: n
|
|
1570
1580
|
}
|
|
1571
|
-
), Ir = ({ item: o, isActive: t, onHover: s, onLeave:
|
|
1581
|
+
), Ir = ({ item: o, isActive: t, onHover: s, onLeave: n }) => {
|
|
1572
1582
|
const l = () => {
|
|
1573
1583
|
o.onClick ? o.onClick() : o.path && (window.location.href = o.path);
|
|
1574
1584
|
};
|
|
@@ -1576,7 +1586,7 @@ const Kr = ({
|
|
|
1576
1586
|
"div",
|
|
1577
1587
|
{
|
|
1578
1588
|
onMouseEnter: () => o.children && s(o.label),
|
|
1579
|
-
onMouseLeave:
|
|
1589
|
+
onMouseLeave: n,
|
|
1580
1590
|
style: { position: "relative" },
|
|
1581
1591
|
children: [
|
|
1582
1592
|
o.path && !o.onClick && !o.children ? /* @__PURE__ */ e.jsx(
|
|
@@ -1597,8 +1607,8 @@ const Kr = ({
|
|
|
1597
1607
|
textDecoration: "none",
|
|
1598
1608
|
display: "inline-block"
|
|
1599
1609
|
},
|
|
1600
|
-
onMouseEnter: (
|
|
1601
|
-
onMouseLeave: (
|
|
1610
|
+
onMouseEnter: (i) => i.currentTarget.style.backgroundColor = "rgba(255,255,255,0.1)",
|
|
1611
|
+
onMouseLeave: (i) => i.currentTarget.style.backgroundColor = "transparent",
|
|
1602
1612
|
children: o.label
|
|
1603
1613
|
}
|
|
1604
1614
|
) : /* @__PURE__ */ e.jsxs(
|
|
@@ -1617,8 +1627,8 @@ const Kr = ({
|
|
|
1617
1627
|
borderRadius: "var(--radius-sm)",
|
|
1618
1628
|
transition: "background var(--transition-fast)"
|
|
1619
1629
|
},
|
|
1620
|
-
onMouseEnter: (
|
|
1621
|
-
onMouseLeave: (
|
|
1630
|
+
onMouseEnter: (i) => i.currentTarget.style.backgroundColor = "rgba(255,255,255,0.1)",
|
|
1631
|
+
onMouseLeave: (i) => i.currentTarget.style.backgroundColor = "transparent",
|
|
1622
1632
|
children: [
|
|
1623
1633
|
o.label,
|
|
1624
1634
|
" ",
|
|
@@ -1638,10 +1648,10 @@ const Kr = ({
|
|
|
1638
1648
|
padding: "var(--space-xs) 0",
|
|
1639
1649
|
zIndex: 200,
|
|
1640
1650
|
marginTop: 4
|
|
1641
|
-
}, children: o.children.map((
|
|
1651
|
+
}, children: o.children.map((i) => i.path ? /* @__PURE__ */ e.jsx(
|
|
1642
1652
|
"a",
|
|
1643
1653
|
{
|
|
1644
|
-
href:
|
|
1654
|
+
href: i.path,
|
|
1645
1655
|
style: {
|
|
1646
1656
|
display: "block",
|
|
1647
1657
|
width: "100%",
|
|
@@ -1658,13 +1668,13 @@ const Kr = ({
|
|
|
1658
1668
|
},
|
|
1659
1669
|
onMouseEnter: (c) => c.currentTarget.style.backgroundColor = "var(--secondary-color)",
|
|
1660
1670
|
onMouseLeave: (c) => c.currentTarget.style.backgroundColor = "transparent",
|
|
1661
|
-
children:
|
|
1671
|
+
children: i.label
|
|
1662
1672
|
},
|
|
1663
|
-
|
|
1673
|
+
i.label
|
|
1664
1674
|
) : /* @__PURE__ */ e.jsx(
|
|
1665
1675
|
"button",
|
|
1666
1676
|
{
|
|
1667
|
-
onClick:
|
|
1677
|
+
onClick: i.onClick,
|
|
1668
1678
|
style: {
|
|
1669
1679
|
display: "block",
|
|
1670
1680
|
width: "100%",
|
|
@@ -1680,9 +1690,9 @@ const Kr = ({
|
|
|
1680
1690
|
},
|
|
1681
1691
|
onMouseEnter: (c) => c.currentTarget.style.backgroundColor = "var(--secondary-color)",
|
|
1682
1692
|
onMouseLeave: (c) => c.currentTarget.style.backgroundColor = "transparent",
|
|
1683
|
-
children:
|
|
1693
|
+
children: i.label
|
|
1684
1694
|
},
|
|
1685
|
-
|
|
1695
|
+
i.label
|
|
1686
1696
|
)) })
|
|
1687
1697
|
]
|
|
1688
1698
|
}
|
|
@@ -1707,8 +1717,8 @@ const Kr = ({
|
|
|
1707
1717
|
"button",
|
|
1708
1718
|
{
|
|
1709
1719
|
onClick: () => {
|
|
1710
|
-
var
|
|
1711
|
-
(
|
|
1720
|
+
var n;
|
|
1721
|
+
(n = o.onClick) == null || n.call(o), t();
|
|
1712
1722
|
},
|
|
1713
1723
|
style: s,
|
|
1714
1724
|
children: o.label
|
|
@@ -1717,15 +1727,15 @@ const Kr = ({
|
|
|
1717
1727
|
}, Dr = () => /* @__PURE__ */ e.jsxs("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
1718
1728
|
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "12", r: "5" }),
|
|
1719
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" })
|
|
1720
|
-
] }), zr = () => /* @__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" }) }), Pr = () => /* @__PURE__ */ e.
|
|
1730
|
+
] }), zr = () => /* @__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" }) }), Pr = () => /* @__PURE__ */ e.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
|
|
1721
1731
|
/* @__PURE__ */ e.jsx("path", { d: "M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2" }),
|
|
1722
1732
|
/* @__PURE__ */ e.jsx("circle", { cx: "12", cy: "7", r: "4" })
|
|
1723
|
-
] }),
|
|
1733
|
+
] }), Wr = () => /* @__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" }) }), Lr = ({
|
|
1724
1734
|
copyrightBrand: o,
|
|
1725
1735
|
yearCreated: t,
|
|
1726
1736
|
poweredBy: s
|
|
1727
1737
|
}) => {
|
|
1728
|
-
const
|
|
1738
|
+
const n = (/* @__PURE__ */ new Date()).getFullYear(), l = t === n ? n.toString() : `${t}-${n}`;
|
|
1729
1739
|
return /* @__PURE__ */ e.jsx("footer", { style: {
|
|
1730
1740
|
backgroundColor: "var(--primary-color)",
|
|
1731
1741
|
color: "var(--bg-color)",
|
|
@@ -1764,8 +1774,8 @@ const Kr = ({
|
|
|
1764
1774
|
] })
|
|
1765
1775
|
] }) });
|
|
1766
1776
|
};
|
|
1767
|
-
function
|
|
1768
|
-
const [t, s] =
|
|
1777
|
+
function Ar(o) {
|
|
1778
|
+
const [t, s] = z(() => {
|
|
1769
1779
|
if (typeof window > "u") return !1;
|
|
1770
1780
|
const l = localStorage.getItem("theme-mode");
|
|
1771
1781
|
return l ? l === "dark" : o.theme.defaultTheme === "dark" ? !0 : o.theme.defaultTheme === "auto" ? window.matchMedia("(prefers-color-scheme: dark)").matches : !1;
|
|
@@ -1775,10 +1785,10 @@ function Br(o) {
|
|
|
1775
1785
|
}, [o.theme]), N(() => {
|
|
1776
1786
|
document.body.classList.toggle("dark-mode", t), localStorage.setItem("theme-mode", t ? "dark" : "light");
|
|
1777
1787
|
}, [t]);
|
|
1778
|
-
const
|
|
1788
|
+
const n = Cr(() => {
|
|
1779
1789
|
s((l) => !l);
|
|
1780
1790
|
}, []);
|
|
1781
|
-
return { darkMode: t, toggleDarkMode:
|
|
1791
|
+
return { darkMode: t, toggleDarkMode: n };
|
|
1782
1792
|
}
|
|
1783
1793
|
function Or(o) {
|
|
1784
1794
|
const t = document.documentElement;
|
|
@@ -1786,20 +1796,16 @@ function Or(o) {
|
|
|
1786
1796
|
}
|
|
1787
1797
|
const U = ({
|
|
1788
1798
|
brand: o,
|
|
1789
|
-
children: t
|
|
1790
|
-
onAccountClick: s,
|
|
1791
|
-
onNotificationClick: i
|
|
1799
|
+
children: t
|
|
1792
1800
|
}) => {
|
|
1793
|
-
const { darkMode:
|
|
1801
|
+
const { darkMode: s, toggleDarkMode: n } = Ar(o);
|
|
1794
1802
|
return /* @__PURE__ */ e.jsxs("div", { className: "shell", style: { display: "flex", flexDirection: "column", minHeight: "100vh" }, children: [
|
|
1795
1803
|
/* @__PURE__ */ e.jsx(
|
|
1796
1804
|
_r,
|
|
1797
1805
|
{
|
|
1798
1806
|
brand: o,
|
|
1799
|
-
darkMode:
|
|
1800
|
-
onThemeToggle: n
|
|
1801
|
-
onAccountClick: s,
|
|
1802
|
-
onNotificationClick: i
|
|
1807
|
+
darkMode: s,
|
|
1808
|
+
onThemeToggle: n
|
|
1803
1809
|
}
|
|
1804
1810
|
),
|
|
1805
1811
|
/* @__PURE__ */ e.jsx("div", { style: { flex: 1, display: "flex", flexDirection: "column" }, children: /* @__PURE__ */ e.jsx("main", { style: {
|
|
@@ -1819,7 +1825,7 @@ const U = ({
|
|
|
1819
1825
|
title: o,
|
|
1820
1826
|
subtitle: t,
|
|
1821
1827
|
breadcrumbs: s,
|
|
1822
|
-
score:
|
|
1828
|
+
score: n
|
|
1823
1829
|
}) => /* @__PURE__ */ e.jsxs("section", { style: {
|
|
1824
1830
|
backgroundColor: "var(--secondary-color)",
|
|
1825
1831
|
padding: "var(--space-lg) var(--space-lg)",
|
|
@@ -1834,8 +1840,8 @@ const U = ({
|
|
|
1834
1840
|
fontFamily: "var(--font-sans)",
|
|
1835
1841
|
fontSize: "0.9rem",
|
|
1836
1842
|
fontWeight: 600
|
|
1837
|
-
}, children: s.map((l,
|
|
1838
|
-
|
|
1843
|
+
}, children: s.map((l, i) => /* @__PURE__ */ e.jsxs(de.Fragment, { children: [
|
|
1844
|
+
i > 0 && /* @__PURE__ */ e.jsx("span", { style: { color: "var(--surface-light)", opacity: 0.4 }, children: "/" }),
|
|
1839
1845
|
l.path ? /* @__PURE__ */ e.jsx(
|
|
1840
1846
|
"a",
|
|
1841
1847
|
{
|
|
@@ -1863,7 +1869,7 @@ const U = ({
|
|
|
1863
1869
|
color: "var(--text-dark)",
|
|
1864
1870
|
opacity: 0.8
|
|
1865
1871
|
}, children: t }),
|
|
1866
|
-
|
|
1872
|
+
n && /* @__PURE__ */ e.jsxs("div", { style: {
|
|
1867
1873
|
marginTop: "var(--space-md)",
|
|
1868
1874
|
display: "inline-flex",
|
|
1869
1875
|
flexDirection: "column",
|
|
@@ -1883,10 +1889,10 @@ const U = ({
|
|
|
1883
1889
|
gap: "var(--space-sm)",
|
|
1884
1890
|
boxShadow: "var(--shadow-md)"
|
|
1885
1891
|
}, children: [
|
|
1886
|
-
/* @__PURE__ */ e.jsx("span", { children:
|
|
1887
|
-
/* @__PURE__ */ e.jsx("span", { style: { fontSize: "0.9rem", fontWeight: 500 }, children:
|
|
1892
|
+
/* @__PURE__ */ e.jsx("span", { children: n.value }),
|
|
1893
|
+
/* @__PURE__ */ e.jsx("span", { style: { fontSize: "0.9rem", fontWeight: 500 }, children: n.label })
|
|
1888
1894
|
] }),
|
|
1889
|
-
|
|
1895
|
+
n.betaDisclaimer && /* @__PURE__ */ e.jsx("span", { style: {
|
|
1890
1896
|
fontFamily: "var(--font-sans)",
|
|
1891
1897
|
fontSize: "0.75rem",
|
|
1892
1898
|
color: "var(--text-dark)",
|
|
@@ -1894,7 +1900,7 @@ const U = ({
|
|
|
1894
1900
|
fontStyle: "italic"
|
|
1895
1901
|
}, children: "Score algorithm is a work in progress" })
|
|
1896
1902
|
] })
|
|
1897
|
-
] }),
|
|
1903
|
+
] }), E = {
|
|
1898
1904
|
violations: /* @__PURE__ */ e.jsxs("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", stroke: "var(--warning-color)", strokeWidth: "2", children: [
|
|
1899
1905
|
/* @__PURE__ */ e.jsx("path", { d: "M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z" }),
|
|
1900
1906
|
/* @__PURE__ */ e.jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
|
|
@@ -1928,18 +1934,18 @@ const U = ({
|
|
|
1928
1934
|
columns: t = 4
|
|
1929
1935
|
}) => {
|
|
1930
1936
|
const s = [
|
|
1931
|
-
{ label: "Total Events", value: o.totalEvents, icon:
|
|
1932
|
-
o.totalCompanies !== void 0 && { label: "Companies", value: o.totalCompanies, icon:
|
|
1933
|
-
o.totalCities !== void 0 && { label: "Cities", value: o.totalCities, icon:
|
|
1934
|
-
o.totalStates !== void 0 && { label: "States", value: o.totalStates, icon:
|
|
1935
|
-
o.totalInjuries !== void 0 && { label: "Injuries", value: o.totalInjuries, icon:
|
|
1936
|
-
o.totalFatalities !== void 0 && { label: "Fatalities", value: o.totalFatalities, icon:
|
|
1937
|
-
o.totalFines !== void 0 && { label: "Total Fines", value:
|
|
1938
|
-
o.avgFines !== void 0 && { label: "Avg Fine", value:
|
|
1937
|
+
{ label: "Total Events", value: o.totalEvents, icon: E.violations },
|
|
1938
|
+
o.totalCompanies !== void 0 && { label: "Companies", value: o.totalCompanies, icon: E.avgFine },
|
|
1939
|
+
o.totalCities !== void 0 && { label: "Cities", value: o.totalCities, icon: E.avgFine },
|
|
1940
|
+
o.totalStates !== void 0 && { label: "States", value: o.totalStates, icon: E.avgFine },
|
|
1941
|
+
o.totalInjuries !== void 0 && { label: "Injuries", value: o.totalInjuries, icon: E.injuries },
|
|
1942
|
+
o.totalFatalities !== void 0 && { label: "Fatalities", value: o.totalFatalities, icon: E.fatalities },
|
|
1943
|
+
o.totalFines !== void 0 && { label: "Total Fines", value: Be(o.totalFines), icon: E.fines },
|
|
1944
|
+
o.avgFines !== void 0 && { label: "Avg Fine", value: Be(o.avgFines), icon: E.avgFine },
|
|
1939
1945
|
o.trend && {
|
|
1940
1946
|
label: "YoY Change",
|
|
1941
1947
|
value: `${o.trend.direction === "up" ? "↑" : o.trend.direction === "down" ? "↓" : "→"} ${o.trend.percentage}%`,
|
|
1942
|
-
icon: o.trend.direction === "down" ?
|
|
1948
|
+
icon: o.trend.direction === "down" ? E.trendDown : E.trendUp
|
|
1943
1949
|
}
|
|
1944
1950
|
].filter(Boolean);
|
|
1945
1951
|
return /* @__PURE__ */ e.jsx("section", { style: { marginBottom: "var(--space-lg)" }, children: /* @__PURE__ */ e.jsx(
|
|
@@ -1951,10 +1957,10 @@ const U = ({
|
|
|
1951
1957
|
gridTemplateColumns: `repeat(${t}, 1fr)`,
|
|
1952
1958
|
gap: "var(--space-md)"
|
|
1953
1959
|
},
|
|
1954
|
-
children: s.map((
|
|
1960
|
+
children: s.map((n) => /* @__PURE__ */ e.jsx(Br, { ...n }, n.label))
|
|
1955
1961
|
}
|
|
1956
1962
|
) });
|
|
1957
|
-
},
|
|
1963
|
+
}, Br = ({
|
|
1958
1964
|
label: o,
|
|
1959
1965
|
value: t,
|
|
1960
1966
|
icon: s
|
|
@@ -1972,11 +1978,11 @@ const U = ({
|
|
|
1972
1978
|
transition: "transform var(--transition-fast), box-shadow var(--transition-fast)",
|
|
1973
1979
|
cursor: "default"
|
|
1974
1980
|
},
|
|
1975
|
-
onMouseEnter: (
|
|
1976
|
-
|
|
1981
|
+
onMouseEnter: (n) => {
|
|
1982
|
+
n.currentTarget.style.transform = "translateY(-2px)", n.currentTarget.style.boxShadow = "var(--shadow-md)";
|
|
1977
1983
|
},
|
|
1978
|
-
onMouseLeave: (
|
|
1979
|
-
|
|
1984
|
+
onMouseLeave: (n) => {
|
|
1985
|
+
n.currentTarget.style.transform = "translateY(0)", n.currentTarget.style.boxShadow = "none";
|
|
1980
1986
|
},
|
|
1981
1987
|
children: [
|
|
1982
1988
|
/* @__PURE__ */ e.jsx("span", { style: { display: "flex", alignItems: "center", justifyContent: "center" }, children: s }),
|
|
@@ -1997,20 +2003,20 @@ const U = ({
|
|
|
1997
2003
|
]
|
|
1998
2004
|
}
|
|
1999
2005
|
);
|
|
2000
|
-
function
|
|
2006
|
+
function Be(o) {
|
|
2001
2007
|
return o >= 1e6 ? `$${(o / 1e6).toFixed(1)}M` : o >= 1e3 ? `$${(o / 1e3).toFixed(0)}K` : `$${o.toLocaleString()}`;
|
|
2002
2008
|
}
|
|
2003
|
-
const
|
|
2009
|
+
const Z = ({
|
|
2004
2010
|
title: o,
|
|
2005
2011
|
items: t,
|
|
2006
2012
|
basePath: s,
|
|
2007
|
-
emptyMessage:
|
|
2013
|
+
emptyMessage: n = "No items found",
|
|
2008
2014
|
showSearch: l = !0,
|
|
2009
|
-
initialLimit:
|
|
2015
|
+
initialLimit: i = 30
|
|
2010
2016
|
}) => {
|
|
2011
|
-
const [c, u] =
|
|
2012
|
-
(
|
|
2013
|
-
), x =
|
|
2017
|
+
const [c, u] = z(""), [p, b] = z(!1), f = t.filter(
|
|
2018
|
+
(w) => w.name.toLowerCase().includes(c.toLowerCase())
|
|
2019
|
+
), x = p || c.length > 0, F = x ? f : f.slice(0, i), P = f.length > i && !x;
|
|
2014
2020
|
return /* @__PURE__ */ e.jsx("section", { style: {
|
|
2015
2021
|
marginBottom: "var(--space-lg)"
|
|
2016
2022
|
}, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
@@ -2045,7 +2051,7 @@ const ee = ({
|
|
|
2045
2051
|
type: "text",
|
|
2046
2052
|
placeholder: "Search...",
|
|
2047
2053
|
value: c,
|
|
2048
|
-
onChange: (
|
|
2054
|
+
onChange: (w) => u(w.target.value),
|
|
2049
2055
|
style: {
|
|
2050
2056
|
padding: "var(--space-sm) var(--space-md)",
|
|
2051
2057
|
borderRadius: "var(--radius-md)",
|
|
@@ -2066,18 +2072,18 @@ const ee = ({
|
|
|
2066
2072
|
padding: "var(--space-md)",
|
|
2067
2073
|
border: "2px solid var(--border-color)",
|
|
2068
2074
|
borderRadius: "var(--radius-md)"
|
|
2069
|
-
}, children:
|
|
2075
|
+
}, children: f.length === 0 ? /* @__PURE__ */ e.jsx("p", { style: {
|
|
2070
2076
|
width: "100%",
|
|
2071
2077
|
textAlign: "center",
|
|
2072
2078
|
color: "var(--text-color)",
|
|
2073
2079
|
opacity: 0.6,
|
|
2074
2080
|
margin: 0,
|
|
2075
2081
|
padding: "var(--space-lg)"
|
|
2076
|
-
}, children:
|
|
2077
|
-
|
|
2082
|
+
}, children: n }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2083
|
+
F.map((w) => /* @__PURE__ */ e.jsxs(
|
|
2078
2084
|
"a",
|
|
2079
2085
|
{
|
|
2080
|
-
href: `${s}/${
|
|
2086
|
+
href: `${s}/${w.slug}`,
|
|
2081
2087
|
style: {
|
|
2082
2088
|
display: "inline-flex",
|
|
2083
2089
|
alignItems: "center",
|
|
@@ -2100,11 +2106,11 @@ const ee = ({
|
|
|
2100
2106
|
_.currentTarget.style.backgroundColor = "var(--bg-color)", _.currentTarget.style.color = "var(--text-color)", _.currentTarget.style.borderColor = "var(--border-color)";
|
|
2101
2107
|
},
|
|
2102
2108
|
children: [
|
|
2103
|
-
/* @__PURE__ */ e.jsx("span", { style: { fontWeight: 500 }, children:
|
|
2109
|
+
/* @__PURE__ */ e.jsx("span", { style: { fontWeight: 500 }, children: w.name }),
|
|
2104
2110
|
/* @__PURE__ */ e.jsx(
|
|
2105
2111
|
"span",
|
|
2106
2112
|
{
|
|
2107
|
-
title: `${
|
|
2113
|
+
title: `${w.count.toLocaleString()} incidents`,
|
|
2108
2114
|
style: {
|
|
2109
2115
|
backgroundColor: "var(--secondary-color)",
|
|
2110
2116
|
color: "var(--surface-light)",
|
|
@@ -2113,17 +2119,17 @@ const ee = ({
|
|
|
2113
2119
|
fontSize: "0.75rem",
|
|
2114
2120
|
fontWeight: 600
|
|
2115
2121
|
},
|
|
2116
|
-
children:
|
|
2122
|
+
children: w.count.toLocaleString()
|
|
2117
2123
|
}
|
|
2118
2124
|
)
|
|
2119
2125
|
]
|
|
2120
2126
|
},
|
|
2121
|
-
|
|
2127
|
+
w.slug
|
|
2122
2128
|
)),
|
|
2123
|
-
(
|
|
2129
|
+
(P || p) && /* @__PURE__ */ e.jsx(
|
|
2124
2130
|
"button",
|
|
2125
2131
|
{
|
|
2126
|
-
onClick: () =>
|
|
2132
|
+
onClick: () => b(!p),
|
|
2127
2133
|
style: {
|
|
2128
2134
|
display: "inline-flex",
|
|
2129
2135
|
alignItems: "center",
|
|
@@ -2139,22 +2145,22 @@ const ee = ({
|
|
|
2139
2145
|
cursor: "pointer",
|
|
2140
2146
|
transition: "all var(--transition-fast)"
|
|
2141
2147
|
},
|
|
2142
|
-
onMouseEnter: (
|
|
2143
|
-
|
|
2148
|
+
onMouseEnter: (w) => {
|
|
2149
|
+
w.currentTarget.style.opacity = "0.8";
|
|
2144
2150
|
},
|
|
2145
|
-
onMouseLeave: (
|
|
2146
|
-
|
|
2151
|
+
onMouseLeave: (w) => {
|
|
2152
|
+
w.currentTarget.style.opacity = "1";
|
|
2147
2153
|
},
|
|
2148
|
-
children:
|
|
2154
|
+
children: p ? "Show less" : `+${f.length - i} more`
|
|
2149
2155
|
}
|
|
2150
2156
|
)
|
|
2151
2157
|
] }) })
|
|
2152
2158
|
] }) });
|
|
2153
|
-
},
|
|
2159
|
+
}, ee = ({
|
|
2154
2160
|
title: o,
|
|
2155
2161
|
events: t,
|
|
2156
2162
|
viewMorePath: s,
|
|
2157
|
-
showAgencyBadge:
|
|
2163
|
+
showAgencyBadge: n = !1
|
|
2158
2164
|
}) => t.length === 0 ? null : /* @__PURE__ */ e.jsx("section", { style: {
|
|
2159
2165
|
marginBottom: "var(--space-lg)"
|
|
2160
2166
|
}, children: /* @__PURE__ */ e.jsxs("div", { children: [
|
|
@@ -2190,14 +2196,14 @@ const ee = ({
|
|
|
2190
2196
|
flexDirection: "column",
|
|
2191
2197
|
gap: "var(--space-sm)"
|
|
2192
2198
|
}, children: t.map((l) => /* @__PURE__ */ e.jsx(
|
|
2193
|
-
|
|
2199
|
+
$r,
|
|
2194
2200
|
{
|
|
2195
2201
|
event: l,
|
|
2196
|
-
showAgencyBadge:
|
|
2202
|
+
showAgencyBadge: n
|
|
2197
2203
|
},
|
|
2198
2204
|
l.eventId
|
|
2199
2205
|
)) })
|
|
2200
|
-
] }) }),
|
|
2206
|
+
] }) }), $r = ({
|
|
2201
2207
|
event: o,
|
|
2202
2208
|
showAgencyBadge: t
|
|
2203
2209
|
}) => /* @__PURE__ */ e.jsx(
|
|
@@ -2257,7 +2263,7 @@ const ee = ({
|
|
|
2257
2263
|
fontSize: "0.85rem",
|
|
2258
2264
|
color: "var(--text-color)",
|
|
2259
2265
|
opacity: 0.6
|
|
2260
|
-
}, children:
|
|
2266
|
+
}, children: Yr(o.eventDate) }),
|
|
2261
2267
|
(o.city || o.state) && /* @__PURE__ */ e.jsx("span", { style: {
|
|
2262
2268
|
fontFamily: "var(--font-sans)",
|
|
2263
2269
|
fontSize: "0.85rem",
|
|
@@ -2288,7 +2294,7 @@ const ee = ({
|
|
|
2288
2294
|
] })
|
|
2289
2295
|
}
|
|
2290
2296
|
);
|
|
2291
|
-
function
|
|
2297
|
+
function Yr(o) {
|
|
2292
2298
|
try {
|
|
2293
2299
|
return new Date(o).toLocaleDateString("en-US", {
|
|
2294
2300
|
year: "numeric",
|
|
@@ -2299,24 +2305,24 @@ function Nr(o) {
|
|
|
2299
2305
|
return o;
|
|
2300
2306
|
}
|
|
2301
2307
|
}
|
|
2302
|
-
const
|
|
2308
|
+
const ro = ({
|
|
2303
2309
|
position: o,
|
|
2304
2310
|
width: t,
|
|
2305
2311
|
height: s
|
|
2306
2312
|
}) => {
|
|
2307
|
-
const
|
|
2313
|
+
const n = {
|
|
2308
2314
|
sidebar: { width: t ?? 280, height: s ?? 250 },
|
|
2309
2315
|
"left-sidebar": { width: t ?? "100%", height: s ?? 200 },
|
|
2310
2316
|
banner: { width: t ?? "100%", height: s ?? 90 },
|
|
2311
2317
|
inline: { width: t ?? "100%", height: s ?? 120 }
|
|
2312
|
-
}, { width: l, height:
|
|
2318
|
+
}, { width: l, height: i } = n[o];
|
|
2313
2319
|
return /* @__PURE__ */ e.jsxs(
|
|
2314
2320
|
"div",
|
|
2315
2321
|
{
|
|
2316
2322
|
"data-ad-slot": o,
|
|
2317
2323
|
style: {
|
|
2318
2324
|
width: l,
|
|
2319
|
-
height:
|
|
2325
|
+
height: i,
|
|
2320
2326
|
backgroundColor: "var(--secondary-color)",
|
|
2321
2327
|
border: "2px dashed var(--border-color)",
|
|
2322
2328
|
borderRadius: "var(--radius-md)",
|
|
@@ -2390,7 +2396,7 @@ const oo = ({
|
|
|
2390
2396
|
style: { width: "100%", height: "auto", display: "block" }
|
|
2391
2397
|
}
|
|
2392
2398
|
) }),
|
|
2393
|
-
/* @__PURE__ */ e.jsx("dl", { style: { margin: 0 }, children: t.map(({ label: s, value:
|
|
2399
|
+
/* @__PURE__ */ e.jsx("dl", { style: { margin: 0 }, children: t.map(({ label: s, value: n }) => /* @__PURE__ */ e.jsxs(
|
|
2394
2400
|
"div",
|
|
2395
2401
|
{
|
|
2396
2402
|
style: {
|
|
@@ -2413,7 +2419,7 @@ const oo = ({
|
|
|
2413
2419
|
fontSize: "0.9rem",
|
|
2414
2420
|
fontWeight: 600,
|
|
2415
2421
|
color: "var(--text-color)"
|
|
2416
|
-
}, children:
|
|
2422
|
+
}, children: n })
|
|
2417
2423
|
]
|
|
2418
2424
|
},
|
|
2419
2425
|
s
|
|
@@ -2507,7 +2513,7 @@ const oo = ({
|
|
|
2507
2513
|
/* @__PURE__ */ e.jsx("option", { children: "Alphabetical" })
|
|
2508
2514
|
] })
|
|
2509
2515
|
] })
|
|
2510
|
-
] }) }),
|
|
2516
|
+
] }) }), oo = () => /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
|
|
2511
2517
|
/* @__PURE__ */ e.jsx("style", { children: `
|
|
2512
2518
|
.mobile-ad-banner {
|
|
2513
2519
|
display: none;
|
|
@@ -2550,13 +2556,11 @@ const oo = ({
|
|
|
2550
2556
|
children: "Ad (468×60)"
|
|
2551
2557
|
}
|
|
2552
2558
|
) })
|
|
2553
|
-
] }),
|
|
2559
|
+
] }), to = ({
|
|
2554
2560
|
brand: o,
|
|
2555
|
-
data: t
|
|
2556
|
-
onAccountClick: s,
|
|
2557
|
-
onNotificationClick: i
|
|
2561
|
+
data: t
|
|
2558
2562
|
}) => {
|
|
2559
|
-
const
|
|
2563
|
+
const s = [
|
|
2560
2564
|
{ label: "Home", path: "/" },
|
|
2561
2565
|
{ label: t.name }
|
|
2562
2566
|
], n = o.scoreConfig && t.stats.score !== void 0 ? {
|
|
@@ -2568,15 +2572,13 @@ const oo = ({
|
|
|
2568
2572
|
U,
|
|
2569
2573
|
{
|
|
2570
2574
|
brand: o,
|
|
2571
|
-
onAccountClick: s,
|
|
2572
|
-
onNotificationClick: i,
|
|
2573
2575
|
children: [
|
|
2574
2576
|
/* @__PURE__ */ e.jsx(
|
|
2575
2577
|
H,
|
|
2576
2578
|
{
|
|
2577
2579
|
title: t.name,
|
|
2578
2580
|
subtitle: o.tagline || "Explore worker safety data across the nation",
|
|
2579
|
-
breadcrumbs:
|
|
2581
|
+
breadcrumbs: s,
|
|
2580
2582
|
score: n
|
|
2581
2583
|
}
|
|
2582
2584
|
),
|
|
@@ -2585,7 +2587,7 @@ const oo = ({
|
|
|
2585
2587
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2586
2588
|
/* @__PURE__ */ e.jsx(V, { stats: t.stats, columns: 4 }),
|
|
2587
2589
|
/* @__PURE__ */ e.jsx(
|
|
2588
|
-
|
|
2590
|
+
Z,
|
|
2589
2591
|
{
|
|
2590
2592
|
title: "States & Territories",
|
|
2591
2593
|
items: t.directory,
|
|
@@ -2599,13 +2601,11 @@ const oo = ({
|
|
|
2599
2601
|
]
|
|
2600
2602
|
}
|
|
2601
2603
|
);
|
|
2602
|
-
},
|
|
2604
|
+
}, ao = ({
|
|
2603
2605
|
brand: o,
|
|
2604
|
-
data: t
|
|
2605
|
-
onAccountClick: s,
|
|
2606
|
-
onNotificationClick: i
|
|
2606
|
+
data: t
|
|
2607
2607
|
}) => {
|
|
2608
|
-
const
|
|
2608
|
+
const s = [
|
|
2609
2609
|
{ label: "Home", path: "/" },
|
|
2610
2610
|
{ label: "USA", path: "/usa" },
|
|
2611
2611
|
{ label: t.name }
|
|
@@ -2613,20 +2613,18 @@ const oo = ({
|
|
|
2613
2613
|
value: t.stats.score,
|
|
2614
2614
|
label: o.scoreConfig.name,
|
|
2615
2615
|
betaDisclaimer: o.scoreConfig.betaDisclaimer
|
|
2616
|
-
} : void 0,
|
|
2616
|
+
} : void 0, l = Object.keys(t.recentByAgency);
|
|
2617
2617
|
return /* @__PURE__ */ e.jsxs(
|
|
2618
2618
|
U,
|
|
2619
2619
|
{
|
|
2620
2620
|
brand: o,
|
|
2621
|
-
onAccountClick: s,
|
|
2622
|
-
onNotificationClick: i,
|
|
2623
2621
|
children: [
|
|
2624
2622
|
/* @__PURE__ */ e.jsx(
|
|
2625
2623
|
H,
|
|
2626
2624
|
{
|
|
2627
2625
|
title: t.name,
|
|
2628
2626
|
subtitle: `Worker safety data for ${t.name}`,
|
|
2629
|
-
breadcrumbs:
|
|
2627
|
+
breadcrumbs: s,
|
|
2630
2628
|
score: n
|
|
2631
2629
|
}
|
|
2632
2630
|
),
|
|
@@ -2635,22 +2633,22 @@ const oo = ({
|
|
|
2635
2633
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2636
2634
|
/* @__PURE__ */ e.jsx(V, { stats: t.stats }),
|
|
2637
2635
|
/* @__PURE__ */ e.jsx(
|
|
2638
|
-
|
|
2636
|
+
Z,
|
|
2639
2637
|
{
|
|
2640
2638
|
title: "Cities",
|
|
2641
2639
|
items: t.directory,
|
|
2642
2640
|
basePath: "/city"
|
|
2643
2641
|
}
|
|
2644
2642
|
),
|
|
2645
|
-
|
|
2646
|
-
|
|
2643
|
+
l.map((i) => /* @__PURE__ */ e.jsx(
|
|
2644
|
+
ee,
|
|
2647
2645
|
{
|
|
2648
|
-
title: `Recent ${
|
|
2649
|
-
events: t.recentByAgency[
|
|
2650
|
-
viewMorePath: `/${t.slug.toLowerCase()}/events/${
|
|
2646
|
+
title: `Recent ${i} Incidents`,
|
|
2647
|
+
events: t.recentByAgency[i],
|
|
2648
|
+
viewMorePath: `/${t.slug.toLowerCase()}/events/${i.toLowerCase()}`,
|
|
2651
2649
|
showAgencyBadge: !1
|
|
2652
2650
|
},
|
|
2653
|
-
|
|
2651
|
+
i
|
|
2654
2652
|
))
|
|
2655
2653
|
] }),
|
|
2656
2654
|
/* @__PURE__ */ e.jsx(X, { meta: t.meta })
|
|
@@ -2658,13 +2656,11 @@ const oo = ({
|
|
|
2658
2656
|
]
|
|
2659
2657
|
}
|
|
2660
2658
|
);
|
|
2661
|
-
},
|
|
2659
|
+
}, no = ({
|
|
2662
2660
|
brand: o,
|
|
2663
|
-
data: t
|
|
2664
|
-
onAccountClick: s,
|
|
2665
|
-
onNotificationClick: i
|
|
2661
|
+
data: t
|
|
2666
2662
|
}) => {
|
|
2667
|
-
const
|
|
2663
|
+
const s = [
|
|
2668
2664
|
{ label: "Home", path: "/" },
|
|
2669
2665
|
{ label: "USA", path: "/usa" },
|
|
2670
2666
|
{ label: t.stateName, path: `/state/${t.state.toLowerCase()}` },
|
|
@@ -2673,20 +2669,18 @@ const oo = ({
|
|
|
2673
2669
|
value: t.stats.score,
|
|
2674
2670
|
label: o.scoreConfig.name,
|
|
2675
2671
|
betaDisclaimer: o.scoreConfig.betaDisclaimer
|
|
2676
|
-
} : void 0,
|
|
2672
|
+
} : void 0, l = Object.keys(t.recentByAgency), i = `/${t.state.toLowerCase()}/${t.slug}`;
|
|
2677
2673
|
return /* @__PURE__ */ e.jsxs(
|
|
2678
2674
|
U,
|
|
2679
2675
|
{
|
|
2680
2676
|
brand: o,
|
|
2681
|
-
onAccountClick: s,
|
|
2682
|
-
onNotificationClick: i,
|
|
2683
2677
|
children: [
|
|
2684
2678
|
/* @__PURE__ */ e.jsx(
|
|
2685
2679
|
H,
|
|
2686
2680
|
{
|
|
2687
2681
|
title: `${t.name}, ${t.state}`,
|
|
2688
2682
|
subtitle: `Worker safety data for ${t.name}`,
|
|
2689
|
-
breadcrumbs:
|
|
2683
|
+
breadcrumbs: s,
|
|
2690
2684
|
score: n
|
|
2691
2685
|
}
|
|
2692
2686
|
),
|
|
@@ -2695,22 +2689,22 @@ const oo = ({
|
|
|
2695
2689
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2696
2690
|
/* @__PURE__ */ e.jsx(V, { stats: t.stats }),
|
|
2697
2691
|
/* @__PURE__ */ e.jsx(
|
|
2698
|
-
|
|
2692
|
+
Z,
|
|
2699
2693
|
{
|
|
2700
2694
|
title: "Companies",
|
|
2701
2695
|
items: t.directory,
|
|
2702
2696
|
basePath: "/company"
|
|
2703
2697
|
}
|
|
2704
2698
|
),
|
|
2705
|
-
|
|
2706
|
-
|
|
2699
|
+
l.map((c) => /* @__PURE__ */ e.jsx(
|
|
2700
|
+
ee,
|
|
2707
2701
|
{
|
|
2708
|
-
title: `Recent ${
|
|
2709
|
-
events: t.recentByAgency[
|
|
2710
|
-
viewMorePath: `${
|
|
2702
|
+
title: `Recent ${c} Incidents`,
|
|
2703
|
+
events: t.recentByAgency[c],
|
|
2704
|
+
viewMorePath: `${i}/events/${c.toLowerCase()}`,
|
|
2711
2705
|
showAgencyBadge: !1
|
|
2712
2706
|
},
|
|
2713
|
-
|
|
2707
|
+
c
|
|
2714
2708
|
))
|
|
2715
2709
|
] }),
|
|
2716
2710
|
/* @__PURE__ */ e.jsx(X, { meta: t.meta })
|
|
@@ -2718,14 +2712,12 @@ const oo = ({
|
|
|
2718
2712
|
]
|
|
2719
2713
|
}
|
|
2720
2714
|
);
|
|
2721
|
-
},
|
|
2715
|
+
}, so = ({
|
|
2722
2716
|
brand: o,
|
|
2723
|
-
data: t
|
|
2724
|
-
onAccountClick: s,
|
|
2725
|
-
onNotificationClick: i
|
|
2717
|
+
data: t
|
|
2726
2718
|
}) => {
|
|
2727
|
-
var
|
|
2728
|
-
const
|
|
2719
|
+
var i;
|
|
2720
|
+
const s = [
|
|
2729
2721
|
{ label: "Home", path: "/" },
|
|
2730
2722
|
{ label: "USA", path: "/usa" },
|
|
2731
2723
|
{ label: t.name }
|
|
@@ -2733,20 +2725,18 @@ const oo = ({
|
|
|
2733
2725
|
value: t.stats.score,
|
|
2734
2726
|
label: o.scoreConfig.name,
|
|
2735
2727
|
betaDisclaimer: o.scoreConfig.betaDisclaimer
|
|
2736
|
-
} : void 0,
|
|
2728
|
+
} : void 0, l = t.sites && t.sites.length > 0;
|
|
2737
2729
|
return /* @__PURE__ */ e.jsxs(
|
|
2738
2730
|
U,
|
|
2739
2731
|
{
|
|
2740
2732
|
brand: o,
|
|
2741
|
-
onAccountClick: s,
|
|
2742
|
-
onNotificationClick: i,
|
|
2743
2733
|
children: [
|
|
2744
2734
|
/* @__PURE__ */ e.jsx(
|
|
2745
2735
|
H,
|
|
2746
2736
|
{
|
|
2747
2737
|
title: t.name,
|
|
2748
|
-
subtitle: (
|
|
2749
|
-
breadcrumbs:
|
|
2738
|
+
subtitle: (i = t.meta) != null && i.industry ? `${t.meta.industry}` : void 0,
|
|
2739
|
+
breadcrumbs: s,
|
|
2750
2740
|
score: n
|
|
2751
2741
|
}
|
|
2752
2742
|
),
|
|
@@ -2754,8 +2744,8 @@ const oo = ({
|
|
|
2754
2744
|
/* @__PURE__ */ e.jsx(q, {}),
|
|
2755
2745
|
/* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
|
|
2756
2746
|
/* @__PURE__ */ e.jsx(V, { stats: t.stats }),
|
|
2757
|
-
|
|
2758
|
-
|
|
2747
|
+
l && /* @__PURE__ */ e.jsx(
|
|
2748
|
+
Z,
|
|
2759
2749
|
{
|
|
2760
2750
|
title: "Locations",
|
|
2761
2751
|
items: t.sites,
|
|
@@ -2763,10 +2753,10 @@ const oo = ({
|
|
|
2763
2753
|
}
|
|
2764
2754
|
),
|
|
2765
2755
|
/* @__PURE__ */ e.jsx(
|
|
2766
|
-
|
|
2756
|
+
ee,
|
|
2767
2757
|
{
|
|
2768
2758
|
title: "Recent Incidents",
|
|
2769
|
-
events: t.recentEvents.slice(0,
|
|
2759
|
+
events: t.recentEvents.slice(0, l ? 5 : 10),
|
|
2770
2760
|
viewMorePath: `/company/${t.slug}/events`,
|
|
2771
2761
|
showAgencyBadge: !0
|
|
2772
2762
|
}
|
|
@@ -2777,13 +2767,11 @@ const oo = ({
|
|
|
2777
2767
|
]
|
|
2778
2768
|
}
|
|
2779
2769
|
);
|
|
2780
|
-
},
|
|
2770
|
+
}, io = ({
|
|
2781
2771
|
brand: o,
|
|
2782
|
-
data: t
|
|
2783
|
-
onAccountClick: s,
|
|
2784
|
-
onNotificationClick: i
|
|
2772
|
+
data: t
|
|
2785
2773
|
}) => {
|
|
2786
|
-
const
|
|
2774
|
+
const s = [
|
|
2787
2775
|
{ label: "Home", path: "/" },
|
|
2788
2776
|
{ label: "USA", path: "/usa" },
|
|
2789
2777
|
{ label: t.companyName, path: `/company/${t.companySlug}` },
|
|
@@ -2797,15 +2785,13 @@ const oo = ({
|
|
|
2797
2785
|
U,
|
|
2798
2786
|
{
|
|
2799
2787
|
brand: o,
|
|
2800
|
-
onAccountClick: s,
|
|
2801
|
-
onNotificationClick: i,
|
|
2802
2788
|
children: [
|
|
2803
2789
|
/* @__PURE__ */ e.jsx(
|
|
2804
2790
|
H,
|
|
2805
2791
|
{
|
|
2806
2792
|
title: t.name,
|
|
2807
2793
|
subtitle: `Location #${t.siteId} of ${t.companyName}`,
|
|
2808
|
-
breadcrumbs:
|
|
2794
|
+
breadcrumbs: s,
|
|
2809
2795
|
score: n
|
|
2810
2796
|
}
|
|
2811
2797
|
),
|
|
@@ -2830,10 +2816,10 @@ const oo = ({
|
|
|
2830
2816
|
display: "flex",
|
|
2831
2817
|
flexWrap: "wrap",
|
|
2832
2818
|
gap: "var(--space-sm)"
|
|
2833
|
-
}, children: t.siblings.slice(0, 10).map((
|
|
2819
|
+
}, children: t.siblings.slice(0, 10).map((l) => /* @__PURE__ */ e.jsxs(
|
|
2834
2820
|
"a",
|
|
2835
2821
|
{
|
|
2836
|
-
href: `/company/${t.companySlug}/site/${
|
|
2822
|
+
href: `/company/${t.companySlug}/site/${l.slug}`,
|
|
2837
2823
|
style: {
|
|
2838
2824
|
padding: "var(--space-sm) var(--space-md)",
|
|
2839
2825
|
backgroundColor: "var(--secondary-color)",
|
|
@@ -2847,12 +2833,12 @@ const oo = ({
|
|
|
2847
2833
|
gap: "var(--space-xs)",
|
|
2848
2834
|
transition: "background var(--transition-fast)"
|
|
2849
2835
|
},
|
|
2850
|
-
onMouseEnter: (
|
|
2851
|
-
onMouseLeave: (
|
|
2836
|
+
onMouseEnter: (i) => i.currentTarget.style.backgroundColor = "var(--accent-color)",
|
|
2837
|
+
onMouseLeave: (i) => i.currentTarget.style.backgroundColor = "var(--secondary-color)",
|
|
2852
2838
|
children: [
|
|
2853
2839
|
/* @__PURE__ */ e.jsxs("span", { children: [
|
|
2854
2840
|
"#",
|
|
2855
|
-
|
|
2841
|
+
l.name
|
|
2856
2842
|
] }),
|
|
2857
2843
|
/* @__PURE__ */ e.jsx("span", { style: {
|
|
2858
2844
|
backgroundColor: "var(--primary-color)",
|
|
@@ -2860,14 +2846,14 @@ const oo = ({
|
|
|
2860
2846
|
padding: "2px 6px",
|
|
2861
2847
|
borderRadius: "var(--radius-sm)",
|
|
2862
2848
|
fontSize: "0.75rem"
|
|
2863
|
-
}, children:
|
|
2849
|
+
}, children: l.count })
|
|
2864
2850
|
]
|
|
2865
2851
|
},
|
|
2866
|
-
|
|
2852
|
+
l.slug
|
|
2867
2853
|
)) })
|
|
2868
2854
|
] }),
|
|
2869
2855
|
/* @__PURE__ */ e.jsx(
|
|
2870
|
-
|
|
2856
|
+
ee,
|
|
2871
2857
|
{
|
|
2872
2858
|
title: "Recent Incidents",
|
|
2873
2859
|
events: t.recentEvents,
|
|
@@ -2883,36 +2869,36 @@ const oo = ({
|
|
|
2883
2869
|
);
|
|
2884
2870
|
};
|
|
2885
2871
|
export {
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2872
|
+
ro as AdSlot,
|
|
2873
|
+
Kr as Alert,
|
|
2874
|
+
Vr as Badge,
|
|
2875
|
+
Ur as Button,
|
|
2876
|
+
Hr as Card,
|
|
2877
|
+
no as CityPage,
|
|
2878
|
+
so as CompanyPage,
|
|
2879
|
+
Z as Directory,
|
|
2894
2880
|
q as FilterSidebar,
|
|
2895
2881
|
Lr as Footer,
|
|
2896
2882
|
_r as Header,
|
|
2897
2883
|
H as Hero,
|
|
2898
2884
|
X as InfoSidebar,
|
|
2899
|
-
|
|
2900
|
-
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2885
|
+
Xr as Input,
|
|
2886
|
+
Zr as LoadingOverlay,
|
|
2887
|
+
oo as MobileAdBanner,
|
|
2888
|
+
Jr as Modal,
|
|
2889
|
+
to as NationPage,
|
|
2890
|
+
ee as RecentEvents,
|
|
2905
2891
|
U as Shell,
|
|
2906
|
-
|
|
2892
|
+
io as SitePage,
|
|
2907
2893
|
$e as Skeleton,
|
|
2908
|
-
|
|
2894
|
+
eo as SkeletonCard,
|
|
2909
2895
|
Fr as SkeletonText,
|
|
2910
2896
|
Er as Spinner,
|
|
2911
2897
|
V as StatGrid,
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2898
|
+
ao as StatePage,
|
|
2899
|
+
qr as Table,
|
|
2900
|
+
Gr as Tabs,
|
|
2901
|
+
Qr as Tooltip,
|
|
2916
2902
|
Or as applyTheme,
|
|
2917
|
-
|
|
2903
|
+
Ar as useTheme
|
|
2918
2904
|
};
|