@sirsluginston/sharedui 2.0.23 → 2.0.25

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 CHANGED
@@ -1,5 +1,5 @@
1
- import de, { useEffect as Y, useState as A, useRef as Pe, useCallback as wr } from "react";
2
- var ce = { exports: {} }, $ = {};
1
+ import de, { useEffect as Y, useState as W, useRef as Ae, useCallback as Cr } from "react";
2
+ var ce = { exports: {} }, B = {};
3
3
  /**
4
4
  * @license React
5
5
  * react-jsx-runtime.production.min.js
@@ -11,17 +11,17 @@ var ce = { exports: {} }, $ = {};
11
11
  */
12
12
  var ze;
13
13
  function Sr() {
14
- if (ze) return $;
14
+ if (ze) return B;
15
15
  ze = 1;
16
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
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);
18
+ var u, b = {}, E = null, P = null;
19
+ x !== void 0 && (E = "" + x), v.key !== void 0 && (E = "" + v.key), v.ref !== void 0 && (P = v.ref);
20
20
  for (u in v) n.call(v, u) && !i.hasOwnProperty(u) && (b[u] = v[u]);
21
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 };
22
+ return { $$typeof: a, type: f, key: E, ref: P, props: b, _owner: l.current };
23
23
  }
24
- return $.Fragment = s, $.jsx = c, $.jsxs = c, $;
24
+ return B.Fragment = s, B.jsx = c, B.jsxs = c, B;
25
25
  }
26
26
  var N = {};
27
27
  /**
@@ -36,15 +36,15 @@ var N = {};
36
36
  var Oe;
37
37
  function Tr() {
38
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";
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"), E = Symbol.for("react.lazy"), P = Symbol.for("react.offscreen"), w = Symbol.iterator, M = "@@iterator";
40
40
  function Ne(r) {
41
41
  if (r === null || typeof r != "object")
42
42
  return null;
43
- var t = C && r[C] || r[F];
43
+ var t = w && r[w] || r[M];
44
44
  return typeof t == "function" ? t : null;
45
45
  }
46
- var P = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
- function w(r) {
46
+ var A = o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
47
+ function C(r) {
48
48
  {
49
49
  for (var t = arguments.length, d = new Array(t > 1 ? t - 1 : 0), p = 1; p < t; p++)
50
50
  d[p - 1] = arguments[p];
@@ -53,10 +53,10 @@ function Tr() {
53
53
  }
54
54
  function Ye(r, t, d) {
55
55
  {
56
- var p = P.ReactDebugCurrentFrame, h = p.getStackAddendum();
57
- h !== "" && (t += "%s", d = d.concat([h]));
58
- var y = d.map(function(m) {
59
- return String(m);
56
+ var p = A.ReactDebugCurrentFrame, m = p.getStackAddendum();
57
+ m !== "" && (t += "%s", d = d.concat([m]));
58
+ var y = d.map(function(h) {
59
+ return String(h);
60
60
  });
61
61
  y.unshift("Warning: " + t), Function.prototype.apply.call(console[r], console, y);
62
62
  }
@@ -64,7 +64,7 @@ function Tr() {
64
64
  var Ue = !1, He = !1, Ve = !1, Ke = !1, Xe = !1, ue;
65
65
  ue = Symbol.for("react.module.reference");
66
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
67
+ return !!(typeof r == "string" || typeof r == "function" || r === n || r === i || Xe || r === l || r === x || r === u || Ke || r === P || Ue || He || Ve || typeof r == "object" && r !== null && (r.$$typeof === E || 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.
@@ -74,16 +74,16 @@ function Tr() {
74
74
  var p = r.displayName;
75
75
  if (p)
76
76
  return p;
77
- var h = t.displayName || t.name || "";
78
- return h !== "" ? d + "(" + h + ")" : d;
77
+ var m = t.displayName || t.name || "";
78
+ return m !== "" ? d + "(" + m + ")" : d;
79
79
  }
80
80
  function fe(r) {
81
81
  return r.displayName || "Context";
82
82
  }
83
- function I(r) {
83
+ function F(r) {
84
84
  if (r == null)
85
85
  return null;
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")
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;
@@ -113,11 +113,11 @@ function Tr() {
113
113
  return Je(r, r.render, "ForwardRef");
114
114
  case b:
115
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;
116
+ return p !== null ? p : F(r.type) || "Memo";
117
+ case E: {
118
+ var m = r, y = m._payload, h = m._init;
119
119
  try {
120
- return I(m(y));
120
+ return F(h(y));
121
121
  } catch {
122
122
  return null;
123
123
  }
@@ -125,14 +125,14 @@ function Tr() {
125
125
  }
126
126
  return null;
127
127
  }
128
- var D = Object.assign, L = 0, ve, pe, ge, me, he, ye, xe;
128
+ var I = Object.assign, L = 0, ve, pe, ge, he, me, ye, xe;
129
129
  function be() {
130
130
  }
131
131
  be.__reactDisabledLog = !0;
132
132
  function qe() {
133
133
  {
134
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;
135
+ ve = console.log, pe = console.info, ge = console.warn, he = console.error, me = console.group, ye = console.groupCollapsed, xe = console.groupEnd;
136
136
  var r = {
137
137
  configurable: !0,
138
138
  enumerable: !0,
@@ -161,40 +161,40 @@ function Tr() {
161
161
  writable: !0
162
162
  };
163
163
  Object.defineProperties(console, {
164
- log: D({}, r, {
164
+ log: I({}, r, {
165
165
  value: ve
166
166
  }),
167
- info: D({}, r, {
167
+ info: I({}, r, {
168
168
  value: pe
169
169
  }),
170
- warn: D({}, r, {
170
+ warn: I({}, r, {
171
171
  value: ge
172
172
  }),
173
- error: D({}, r, {
174
- value: me
175
- }),
176
- group: D({}, r, {
173
+ error: I({}, r, {
177
174
  value: he
178
175
  }),
179
- groupCollapsed: D({}, r, {
176
+ group: I({}, r, {
177
+ value: me
178
+ }),
179
+ groupCollapsed: I({}, r, {
180
180
  value: ye
181
181
  }),
182
- groupEnd: D({}, r, {
182
+ groupEnd: I({}, r, {
183
183
  value: xe
184
184
  })
185
185
  });
186
186
  }
187
- L < 0 && w("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
187
+ L < 0 && C("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
188
188
  }
189
189
  }
190
- var re = P.ReactCurrentDispatcher, oe;
190
+ var re = A.ReactCurrentDispatcher, oe;
191
191
  function G(r, t, d) {
192
192
  {
193
193
  if (oe === void 0)
194
194
  try {
195
195
  throw Error();
196
- } catch (h) {
197
- var p = h.stack.trim().match(/\n( *(at )?)/);
196
+ } catch (m) {
197
+ var p = m.stack.trim().match(/\n( *(at )?)/);
198
198
  oe = p && p[1] || "";
199
199
  }
200
200
  return `
@@ -216,33 +216,33 @@ function Tr() {
216
216
  }
217
217
  var p;
218
218
  ae = !0;
219
- var h = Error.prepareStackTrace;
219
+ var m = Error.prepareStackTrace;
220
220
  Error.prepareStackTrace = void 0;
221
221
  var y;
222
222
  y = re.current, re.current = null, qe();
223
223
  try {
224
224
  if (t) {
225
- var m = function() {
225
+ var h = function() {
226
226
  throw Error();
227
227
  };
228
- if (Object.defineProperty(m.prototype, "props", {
228
+ if (Object.defineProperty(h.prototype, "props", {
229
229
  set: function() {
230
230
  throw Error();
231
231
  }
232
232
  }), typeof Reflect == "object" && Reflect.construct) {
233
233
  try {
234
- Reflect.construct(m, []);
234
+ Reflect.construct(h, []);
235
235
  } catch (T) {
236
236
  p = T;
237
237
  }
238
- Reflect.construct(r, [], m);
238
+ Reflect.construct(r, [], h);
239
239
  } else {
240
240
  try {
241
- m.call();
241
+ h.call();
242
242
  } catch (T) {
243
243
  p = T;
244
244
  }
245
- r.call(m.prototype);
245
+ r.call(h.prototype);
246
246
  }
247
247
  } else {
248
248
  try {
@@ -272,10 +272,10 @@ function Tr() {
272
272
  }
273
273
  }
274
274
  } finally {
275
- ae = !1, re.current = y, Ze(), Error.prepareStackTrace = h;
275
+ ae = !1, re.current = y, Ze(), Error.prepareStackTrace = m;
276
276
  }
277
- var O = r ? r.displayName || r.name : "", _ = O ? G(O) : "";
278
- return typeof r == "function" && J.set(r, _), _;
277
+ var O = r ? r.displayName || r.name : "", D = O ? G(O) : "";
278
+ return typeof r == "function" && J.set(r, D), D;
279
279
  }
280
280
  function er(r, t, d) {
281
281
  return je(r, !1);
@@ -303,40 +303,40 @@ function Tr() {
303
303
  return er(r.render);
304
304
  case b:
305
305
  return q(r.type, t, d);
306
- case M: {
307
- var p = r, h = p._payload, y = p._init;
306
+ case E: {
307
+ var p = r, m = p._payload, y = p._init;
308
308
  try {
309
- return q(y(h), t, d);
309
+ return q(y(m), t, d);
310
310
  } catch {
311
311
  }
312
312
  }
313
313
  }
314
314
  return "";
315
315
  }
316
- var B = Object.prototype.hasOwnProperty, ke = {}, Ce = P.ReactDebugCurrentFrame;
316
+ var $ = Object.prototype.hasOwnProperty, ke = {}, we = A.ReactDebugCurrentFrame;
317
317
  function Z(r) {
318
318
  if (r) {
319
319
  var t = r._owner, d = q(r.type, r._source, t ? t.type : null);
320
- Ce.setExtraStackFrame(d);
320
+ we.setExtraStackFrame(d);
321
321
  } else
322
- Ce.setExtraStackFrame(null);
322
+ we.setExtraStackFrame(null);
323
323
  }
324
- function or(r, t, d, p, h) {
324
+ function or(r, t, d, p, m) {
325
325
  {
326
- var y = Function.call.bind(B);
327
- for (var m in r)
328
- if (y(r, m)) {
326
+ var y = Function.call.bind($);
327
+ for (var h in r)
328
+ if (y(r, h)) {
329
329
  var g = void 0;
330
330
  try {
331
- if (typeof r[m] != "function") {
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`.");
331
+ if (typeof r[h] != "function") {
332
+ var S = Error((p || "React class") + ": " + d + " type `" + h + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof r[h] + "`.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](t, m, p, d, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
335
+ g = r[h](t, h, 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) && (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));
339
+ g && !(g instanceof Error) && (Z(m), 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).", p || "React class", d, h, typeof g), Z(null)), g instanceof Error && !(g.message in ke) && (ke[g.message] = !0, Z(m), C("Failed %s type: %s", d, g.message), Z(null));
340
340
  }
341
341
  }
342
342
  }
@@ -352,26 +352,26 @@ function Tr() {
352
352
  }
353
353
  function nr(r) {
354
354
  try {
355
- return we(r), !1;
355
+ return Ce(r), !1;
356
356
  } catch {
357
357
  return !0;
358
358
  }
359
359
  }
360
- function we(r) {
360
+ function Ce(r) {
361
361
  return "" + r;
362
362
  }
363
363
  function Se(r) {
364
364
  if (nr(r))
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);
365
+ return C("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", tr(r)), Ce(r);
366
366
  }
367
- var Te = P.ReactCurrentOwner, sr = {
367
+ var Te = A.ReactCurrentOwner, sr = {
368
368
  key: !0,
369
369
  ref: !0,
370
370
  __self: !0,
371
371
  __source: !0
372
- }, Re, Ee;
372
+ }, Re, _e;
373
373
  function ir(r) {
374
- if (B.call(r, "ref")) {
374
+ if ($.call(r, "ref")) {
375
375
  var t = Object.getOwnPropertyDescriptor(r, "ref").get;
376
376
  if (t && t.isReactWarning)
377
377
  return !1;
@@ -379,7 +379,7 @@ function Tr() {
379
379
  return r.ref !== void 0;
380
380
  }
381
381
  function lr(r) {
382
- if (B.call(r, "key")) {
382
+ if ($.call(r, "key")) {
383
383
  var t = Object.getOwnPropertyDescriptor(r, "key").get;
384
384
  if (t && t.isReactWarning)
385
385
  return !1;
@@ -392,7 +392,7 @@ function Tr() {
392
392
  function dr(r, t) {
393
393
  {
394
394
  var d = function() {
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));
395
+ Re || (Re = !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)", t));
396
396
  };
397
397
  d.isReactWarning = !0, Object.defineProperty(r, "key", {
398
398
  get: d,
@@ -403,7 +403,7 @@ function Tr() {
403
403
  function ur(r, t) {
404
404
  {
405
405
  var d = function() {
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));
406
+ _e || (_e = !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)", t));
407
407
  };
408
408
  d.isReactWarning = !0, Object.defineProperty(r, "ref", {
409
409
  get: d,
@@ -411,7 +411,7 @@ function Tr() {
411
411
  });
412
412
  }
413
413
  }
414
- var fr = function(r, t, d, p, h, y, m) {
414
+ var fr = function(r, t, d, p, m, y, h) {
415
415
  var g = {
416
416
  // This tag allows us to uniquely identify this as a React Element
417
417
  $$typeof: a,
@@ -419,7 +419,7 @@ function Tr() {
419
419
  type: r,
420
420
  key: t,
421
421
  ref: d,
422
- props: m,
422
+ props: h,
423
423
  // Record the component responsible for creating this element.
424
424
  _owner: y
425
425
  };
@@ -437,44 +437,44 @@ function Tr() {
437
437
  configurable: !1,
438
438
  enumerable: !1,
439
439
  writable: !1,
440
- value: h
440
+ value: m
441
441
  }), Object.freeze && (Object.freeze(g.props), Object.freeze(g)), g;
442
442
  };
443
- function vr(r, t, d, p, h) {
443
+ function vr(r, t, d, p, m) {
444
444
  {
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));
445
+ var y, h = {}, 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, m));
447
447
  for (y in t)
448
- B.call(t, y) && !sr.hasOwnProperty(y) && (m[y] = t[y]);
448
+ $.call(t, y) && !sr.hasOwnProperty(y) && (h[y] = t[y]);
449
449
  if (r && r.defaultProps) {
450
450
  var j = r.defaultProps;
451
451
  for (y in j)
452
- m[y] === void 0 && (m[y] = j[y]);
452
+ h[y] === void 0 && (h[y] = j[y]);
453
453
  }
454
454
  if (g || S) {
455
455
  var k = typeof r == "function" ? r.displayName || r.name || "Unknown" : r;
456
- g && dr(m, k), S && ur(m, k);
456
+ g && dr(h, k), S && ur(h, k);
457
457
  }
458
- return fr(r, g, S, h, p, Te.current, m);
458
+ return fr(r, g, S, m, p, Te.current, h);
459
459
  }
460
460
  }
461
- var ne = P.ReactCurrentOwner, Me = P.ReactDebugCurrentFrame;
461
+ var ne = A.ReactCurrentOwner, Ee = A.ReactDebugCurrentFrame;
462
462
  function z(r) {
463
463
  if (r) {
464
464
  var t = r._owner, d = q(r.type, r._source, t ? t.type : null);
465
- Me.setExtraStackFrame(d);
465
+ Ee.setExtraStackFrame(d);
466
466
  } else
467
- Me.setExtraStackFrame(null);
467
+ Ee.setExtraStackFrame(null);
468
468
  }
469
469
  var se;
470
470
  se = !1;
471
471
  function ie(r) {
472
472
  return typeof r == "object" && r !== null && r.$$typeof === a;
473
473
  }
474
- function Fe() {
474
+ function Me() {
475
475
  {
476
476
  if (ne.current) {
477
- var r = I(ne.current.type);
477
+ var r = F(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 Ie = {};
489
+ var Fe = {};
490
490
  function gr(r) {
491
491
  {
492
- var t = Fe();
492
+ var t = Me();
493
493
  if (!t) {
494
494
  var d = typeof r == "string" ? r : r.displayName || r.name;
495
495
  d && (t = `
@@ -499,39 +499,39 @@ Check the top-level render call using <` + d + ">.");
499
499
  return t;
500
500
  }
501
501
  }
502
- function De(r, t) {
502
+ function Ie(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
507
  var d = gr(t);
508
- if (Ie[d])
508
+ if (Fe[d])
509
509
  return;
510
- Ie[d] = !0;
510
+ Fe[d] = !0;
511
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);
512
+ r && r._owner && r._owner !== ne.current && (p = " It was passed a child from " + F(r._owner.type) + "."), z(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, p), z(null);
513
513
  }
514
514
  }
515
- function _e(r, t) {
515
+ function De(r, t) {
516
516
  {
517
517
  if (typeof r != "object")
518
518
  return;
519
519
  if (te(r))
520
520
  for (var d = 0; d < r.length; d++) {
521
521
  var p = r[d];
522
- ie(p) && De(p, t);
522
+ ie(p) && Ie(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 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);
527
+ var m = Ne(r);
528
+ if (typeof m == "function" && m !== r.entries)
529
+ for (var y = m.call(r), h; !(h = y.next()).done; )
530
+ ie(h.value) && Ie(h.value, t);
531
531
  }
532
532
  }
533
533
  }
534
- function mr(r) {
534
+ function hr(r) {
535
535
  {
536
536
  var t = r.type;
537
537
  if (t == null || typeof t == "string")
@@ -546,78 +546,78 @@ Check the top-level render call using <` + d + ">.");
546
546
  else
547
547
  return;
548
548
  if (d) {
549
- var p = I(t);
549
+ var p = F(t);
550
550
  or(d, r.props, "prop", p, r);
551
551
  } else if (t.PropTypes !== void 0 && !se) {
552
552
  se = !0;
553
- var h = I(t);
554
- w("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", h || "Unknown");
553
+ var m = F(t);
554
+ C("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", m || "Unknown");
555
555
  }
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.");
556
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && C("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
557
557
  }
558
558
  }
559
- function hr(r) {
559
+ function mr(r) {
560
560
  {
561
561
  for (var t = Object.keys(r.props), d = 0; d < t.length; d++) {
562
562
  var p = t[d];
563
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);
564
+ z(r), C("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 && (z(r), w("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
568
+ r.ref !== null && (z(r), C("Invalid attribute `ref` supplied to `React.Fragment`."), z(null));
569
569
  }
570
570
  }
571
- var Ae = {};
572
- function We(r, t, d, p, h, y) {
571
+ var We = {};
572
+ function Pe(r, t, d, p, m, y) {
573
573
  {
574
- var m = Ge(r);
575
- if (!m) {
574
+ var h = Ge(r);
575
+ if (!h) {
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 += Fe();
579
+ S ? g += S : g += Me();
580
580
  var j;
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);
581
+ r === null ? j = "null" : te(r) ? j = "array" : r !== void 0 && r.$$typeof === a ? (j = "<" + (F(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 k = vr(r, t, d, h, y);
583
+ var k = vr(r, t, d, m, y);
584
584
  if (k == null)
585
585
  return k;
586
- if (m) {
586
+ if (h) {
587
587
  var R = t.children;
588
588
  if (R !== void 0)
589
589
  if (p)
590
590
  if (te(R)) {
591
591
  for (var O = 0; O < R.length; O++)
592
- _e(R[O], r);
592
+ De(R[O], r);
593
593
  Object.freeze && Object.freeze(R);
594
594
  } else
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.");
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
- _e(R, r);
597
+ De(R, r);
598
598
  }
599
- if (B.call(t, "key")) {
600
- var _ = I(r), T = Object.keys(t).filter(function(Cr) {
601
- return Cr !== "key";
599
+ if ($.call(t, "key")) {
600
+ var D = F(r), T = Object.keys(t).filter(function(wr) {
601
+ return wr !== "key";
602
602
  }), le = T.length > 0 ? "{key: someKey, " + T.join(": ..., ") + ": ...}" : "{key: someKey}";
603
- if (!Ae[_ + le]) {
603
+ if (!We[D + le]) {
604
604
  var kr = T.length > 0 ? "{" + T.join(": ..., ") + ": ...}" : "{}";
605
- w(`A props object containing a "key" prop is being spread into JSX:
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} />`, le, _, kr, _), Ae[_ + le] = !0;
610
+ <%s key={someKey} {...props} />`, le, D, kr, D), We[D + le] = !0;
611
611
  }
612
612
  }
613
- return r === n ? hr(k) : mr(k), k;
613
+ return r === n ? mr(k) : hr(k), k;
614
614
  }
615
615
  }
616
616
  function yr(r, t, d) {
617
- return We(r, t, d, !0);
617
+ return Pe(r, t, d, !0);
618
618
  }
619
619
  function xr(r, t, d) {
620
- return We(r, t, d, !1);
620
+ return Pe(r, t, d, !1);
621
621
  }
622
622
  var br = xr, jr = yr;
623
623
  N.Fragment = n, N.jsx = br, N.jsxs = jr;
@@ -1277,7 +1277,7 @@ const Jr = ({
1277
1277
  position: s = "top",
1278
1278
  delay: n = 200
1279
1279
  }) => {
1280
- const [l, i] = A(!1), c = Pe(null), f = Pe(), v = () => {
1280
+ const [l, i] = W(!1), c = Ae(null), f = Ae(), v = () => {
1281
1281
  f.current = window.setTimeout(() => {
1282
1282
  i(!0);
1283
1283
  }, n);
@@ -1337,7 +1337,7 @@ const Jr = ({
1337
1337
  ]
1338
1338
  }
1339
1339
  );
1340
- }, Er = ({
1340
+ }, _r = ({
1341
1341
  size: o = "md",
1342
1342
  color: a = "var(--primary-color)"
1343
1343
  }) => {
@@ -1392,13 +1392,13 @@ const Jr = ({
1392
1392
  gap: "var(--space-md)",
1393
1393
  zIndex: 1e3
1394
1394
  }, children: [
1395
- /* @__PURE__ */ e.jsx(Er, { size: "lg", color: "var(--surface-light)" }),
1395
+ /* @__PURE__ */ e.jsx(_r, { size: "lg", color: "var(--surface-light)" }),
1396
1396
  /* @__PURE__ */ e.jsx("span", { style: {
1397
1397
  fontFamily: "var(--font-sans)",
1398
1398
  fontSize: "1rem",
1399
1399
  color: "var(--surface-light)"
1400
1400
  }, children: o })
1401
- ] }), $e = ({
1401
+ ] }), Be = ({
1402
1402
  width: o = "100%",
1403
1403
  height: a = 20,
1404
1404
  variant: s = "text",
@@ -1441,8 +1441,8 @@ const Jr = ({
1441
1441
  ` })
1442
1442
  }
1443
1443
  );
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
- $e,
1444
+ }, Er = ({ 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
+ Be,
1446
1446
  {
1447
1447
  width: s === o - 1 ? "60%" : "100%",
1448
1448
  height: 16
@@ -1456,14 +1456,14 @@ const Jr = ({
1456
1456
  flexDirection: "column",
1457
1457
  gap: "var(--space-md)"
1458
1458
  }, children: [
1459
- /* @__PURE__ */ e.jsx($e, { height: 24, width: "50%" }),
1460
- /* @__PURE__ */ e.jsx(Mr, { lines: 3 })
1461
- ] }), Fr = ({
1459
+ /* @__PURE__ */ e.jsx(Be, { height: 24, width: "50%" }),
1460
+ /* @__PURE__ */ e.jsx(Er, { lines: 3 })
1461
+ ] }), Mr = ({
1462
1462
  brand: o,
1463
1463
  darkMode: a,
1464
1464
  onThemeToggle: s
1465
1465
  }) => {
1466
- const [n, l] = A(!1), [i, c] = A(!1), [f, v] = A(null);
1466
+ const [n, l] = W(!1), [i, c] = W(!1), [f, v] = W(null);
1467
1467
  Y(() => {
1468
1468
  const u = () => l(window.innerWidth < 768);
1469
1469
  return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
@@ -1516,7 +1516,7 @@ const Jr = ({
1516
1516
  flex: 1,
1517
1517
  justifyContent: "center"
1518
1518
  }, children: x.map((u) => /* @__PURE__ */ e.jsx(
1519
- Ir,
1519
+ Fr,
1520
1520
  {
1521
1521
  item: u,
1522
1522
  isActive: f === u.label,
@@ -1532,8 +1532,8 @@ const Jr = ({
1532
1532
  gap: "var(--space-xs)",
1533
1533
  flexShrink: 0
1534
1534
  }, children: [
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, {}) }),
1535
+ n && /* @__PURE__ */ e.jsx(Le, { onClick: () => c(!i), label: "Menu", size: 36, children: /* @__PURE__ */ e.jsx(Ar, {}) }),
1536
+ /* @__PURE__ */ e.jsx(Le, { onClick: s, label: "Toggle theme", size: 36, children: a ? /* @__PURE__ */ e.jsx(Wr, {}) : /* @__PURE__ */ e.jsx(Dr, {}) }),
1537
1537
  /* @__PURE__ */ e.jsx("a", { href: "/account", "aria-label": "Account", style: {
1538
1538
  width: 40,
1539
1539
  height: 40,
@@ -1547,14 +1547,14 @@ const Jr = ({
1547
1547
  transition: "background var(--transition-fast)",
1548
1548
  color: "var(--surface-light)",
1549
1549
  textDecoration: "none"
1550
- }, children: /* @__PURE__ */ e.jsx(Wr, {}) })
1550
+ }, children: /* @__PURE__ */ e.jsx(Pr, {}) })
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: x.map((u) => /* @__PURE__ */ e.jsx(Dr, { item: u, onClose: () => c(!1) }, u.label)) })
1557
+ }, children: x.map((u) => /* @__PURE__ */ e.jsx(Ir, { 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",
@@ -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: a, onHover: s, onLeave: n }) => {
1581
+ ), Fr = ({ 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
  };
@@ -1697,7 +1697,7 @@ const Jr = ({
1697
1697
  ]
1698
1698
  }
1699
1699
  );
1700
- }, Dr = ({ item: o, onClose: a }) => {
1700
+ }, Ir = ({ item: o, onClose: a }) => {
1701
1701
  const s = {
1702
1702
  display: "block",
1703
1703
  width: "100%",
@@ -1724,13 +1724,13 @@ const Jr = ({
1724
1724
  children: o.label
1725
1725
  }
1726
1726
  );
1727
- }, _r = () => /* @__PURE__ */ e.jsxs("svg", { width: "18", height: "18", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", children: [
1727
+ }, Dr = () => /* @__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
- ] }), 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: [
1730
+ ] }), 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: "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: [
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
- ] }), 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 = ({
1733
+ ] }), 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: "M3 12h18M3 6h18M3 18h18" }) }), zr = ({
1734
1734
  copyrightBrand: o,
1735
1735
  yearCreated: a,
1736
1736
  poweredBy: s
@@ -1775,7 +1775,7 @@ const Jr = ({
1775
1775
  ] }) });
1776
1776
  };
1777
1777
  function Or(o) {
1778
- const [a, s] = A(() => {
1778
+ const [a, s] = W(() => {
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;
@@ -1785,7 +1785,7 @@ function Or(o) {
1785
1785
  }, [o.theme]), Y(() => {
1786
1786
  document.body.classList.toggle("dark-mode", a), localStorage.setItem("theme-mode", a ? "dark" : "light");
1787
1787
  }, [a]);
1788
- const n = wr(() => {
1788
+ const n = Cr(() => {
1789
1789
  s((l) => !l);
1790
1790
  }, []);
1791
1791
  return { darkMode: a, toggleDarkMode: n };
@@ -1801,7 +1801,7 @@ const U = ({
1801
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
- Fr,
1804
+ Mr,
1805
1805
  {
1806
1806
  brand: o,
1807
1807
  darkMode: s,
@@ -1900,7 +1900,7 @@ const U = ({
1900
1900
  fontStyle: "italic"
1901
1901
  }, children: "Score algorithm is a work in progress" })
1902
1902
  ] })
1903
- ] }), E = {
1903
+ ] }), _ = {
1904
1904
  violations: /* @__PURE__ */ e.jsxs("svg", { width: "28", height: "28", viewBox: "0 0 24 24", fill: "none", stroke: "var(--warning-color)", strokeWidth: "2", children: [
1905
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" }),
1906
1906
  /* @__PURE__ */ e.jsx("line", { x1: "12", y1: "9", x2: "12", y2: "13" }),
@@ -1934,18 +1934,18 @@ const U = ({
1934
1934
  columns: a = 4
1935
1935
  }) => {
1936
1936
  const s = [
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 },
1937
+ { label: "Total Events", value: o.total_events, icon: _.violations },
1938
+ o.total_companies !== void 0 && { label: "Companies", value: o.total_companies, icon: _.avgFine },
1939
+ o.total_cities !== void 0 && { label: "Cities", value: o.total_cities, icon: _.avgFine },
1940
+ o.total_states !== void 0 && { label: "States", value: o.total_states, icon: _.avgFine },
1941
+ o.total_injuries !== void 0 && { label: "Injuries", value: o.total_injuries, icon: _.injuries },
1942
+ o.total_fatalities !== void 0 && { label: "Fatalities", value: o.total_fatalities, icon: _.fatalities },
1943
+ o.total_fines !== void 0 && { label: "Total Fines", value: $e(o.total_fines), icon: _.fines },
1944
+ o.avg_fines !== void 0 && { label: "Avg Fine", value: $e(o.avg_fines), icon: _.avgFine },
1945
1945
  o.trend && {
1946
1946
  label: "YoY Change",
1947
1947
  value: `${o.trend.direction === "up" ? "↑" : o.trend.direction === "down" ? "↓" : "→"} ${o.trend.percentage}%`,
1948
- icon: o.trend.direction === "down" ? E.trendDown : E.trendUp
1948
+ icon: o.trend.direction === "down" ? _.trendDown : _.trendUp
1949
1949
  }
1950
1950
  ].filter(Boolean);
1951
1951
  return /* @__PURE__ */ e.jsx("section", { style: { marginBottom: "var(--space-lg)" }, children: /* @__PURE__ */ e.jsx(
@@ -1957,10 +1957,10 @@ const U = ({
1957
1957
  gridTemplateColumns: `repeat(${a}, 1fr)`,
1958
1958
  gap: "var(--space-md)"
1959
1959
  },
1960
- children: s.map((n) => /* @__PURE__ */ e.jsx(Br, { ...n }, n.label))
1960
+ children: s.map((n) => /* @__PURE__ */ e.jsx($r, { ...n }, n.label))
1961
1961
  }
1962
1962
  ) });
1963
- }, Br = ({
1963
+ }, $r = ({
1964
1964
  label: o,
1965
1965
  value: a,
1966
1966
  icon: s
@@ -2003,7 +2003,7 @@ const U = ({
2003
2003
  ]
2004
2004
  }
2005
2005
  );
2006
- function Be(o) {
2006
+ function $e(o) {
2007
2007
  return o >= 1e6 ? `$${(o / 1e6).toFixed(1)}M` : o >= 1e3 ? `$${(o / 1e3).toFixed(0)}K` : `$${o.toLocaleString()}`;
2008
2008
  }
2009
2009
  const Q = ({
@@ -2014,9 +2014,9 @@ const Q = ({
2014
2014
  showSearch: l = !0,
2015
2015
  initialLimit: i = 30
2016
2016
  }) => {
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;
2017
+ const [c, f] = W(""), [v, x] = W(!1), u = a.filter(
2018
+ (w) => w.name.toLowerCase().includes(c.toLowerCase())
2019
+ ), b = v || c.length > 0, E = b ? u : u.slice(0, i), P = 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: [
@@ -2051,7 +2051,7 @@ const Q = ({
2051
2051
  type: "text",
2052
2052
  placeholder: "Search...",
2053
2053
  value: c,
2054
- onChange: (C) => f(C.target.value),
2054
+ onChange: (w) => f(w.target.value),
2055
2055
  style: {
2056
2056
  padding: "var(--space-sm) var(--space-md)",
2057
2057
  borderRadius: "var(--radius-md)",
@@ -2080,10 +2080,10 @@ const Q = ({
2080
2080
  margin: 0,
2081
2081
  padding: "var(--space-lg)"
2082
2082
  }, children: n }) : /* @__PURE__ */ e.jsxs(e.Fragment, { children: [
2083
- M.map((C) => /* @__PURE__ */ e.jsxs(
2083
+ E.map((w) => /* @__PURE__ */ e.jsxs(
2084
2084
  "a",
2085
2085
  {
2086
- href: `${s}/${C.slug}`,
2086
+ href: `${s}/${w.slug}`,
2087
2087
  style: {
2088
2088
  display: "inline-flex",
2089
2089
  alignItems: "center",
@@ -2099,18 +2099,18 @@ const Q = ({
2099
2099
  transition: "all var(--transition-fast)",
2100
2100
  whiteSpace: "nowrap"
2101
2101
  },
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)";
2102
+ onMouseEnter: (M) => {
2103
+ M.currentTarget.style.backgroundColor = "var(--primary-color)", M.currentTarget.style.color = "var(--surface-light)", M.currentTarget.style.borderColor = "var(--primary-color)";
2104
2104
  },
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)";
2105
+ onMouseLeave: (M) => {
2106
+ M.currentTarget.style.backgroundColor = "var(--bg-color)", M.currentTarget.style.color = "var(--text-color)", M.currentTarget.style.borderColor = "var(--border-color)";
2107
2107
  },
2108
2108
  children: [
2109
- /* @__PURE__ */ e.jsx("span", { style: { fontWeight: 500 }, children: C.name }),
2109
+ /* @__PURE__ */ e.jsx("span", { style: { fontWeight: 500 }, children: w.name }),
2110
2110
  /* @__PURE__ */ e.jsx(
2111
2111
  "span",
2112
2112
  {
2113
- title: `${C.count.toLocaleString()} incidents`,
2113
+ title: `${w.count.toLocaleString()} incidents`,
2114
2114
  style: {
2115
2115
  backgroundColor: "var(--secondary-color)",
2116
2116
  color: "var(--surface-light)",
@@ -2119,14 +2119,14 @@ const Q = ({
2119
2119
  fontSize: "0.75rem",
2120
2120
  fontWeight: 600
2121
2121
  },
2122
- children: C.count.toLocaleString()
2122
+ children: w.count.toLocaleString()
2123
2123
  }
2124
2124
  )
2125
2125
  ]
2126
2126
  },
2127
- C.slug
2127
+ w.slug
2128
2128
  )),
2129
- (W || v) && /* @__PURE__ */ e.jsx(
2129
+ (P || v) && /* @__PURE__ */ e.jsx(
2130
2130
  "button",
2131
2131
  {
2132
2132
  onClick: () => x(!v),
@@ -2145,11 +2145,11 @@ const Q = ({
2145
2145
  cursor: "pointer",
2146
2146
  transition: "all var(--transition-fast)"
2147
2147
  },
2148
- onMouseEnter: (C) => {
2149
- C.currentTarget.style.opacity = "0.8";
2148
+ onMouseEnter: (w) => {
2149
+ w.currentTarget.style.opacity = "0.8";
2150
2150
  },
2151
- onMouseLeave: (C) => {
2152
- C.currentTarget.style.opacity = "1";
2151
+ onMouseLeave: (w) => {
2152
+ w.currentTarget.style.opacity = "1";
2153
2153
  },
2154
2154
  children: v ? "Show less" : `+${u.length - i} more`
2155
2155
  }
@@ -2196,14 +2196,14 @@ const Q = ({
2196
2196
  flexDirection: "column",
2197
2197
  gap: "var(--space-sm)"
2198
2198
  }, children: a.map((l) => /* @__PURE__ */ e.jsx(
2199
- $r,
2199
+ Br,
2200
2200
  {
2201
2201
  event: l,
2202
2202
  showAgencyBadge: n
2203
2203
  },
2204
- l.eventId
2204
+ l.event_id
2205
2205
  )) })
2206
- ] }) }), $r = ({
2206
+ ] }) }), Br = ({
2207
2207
  event: o,
2208
2208
  showAgencyBadge: a
2209
2209
  }) => /* @__PURE__ */ e.jsx(
@@ -2229,8 +2229,8 @@ const Q = ({
2229
2229
  fontWeight: 600,
2230
2230
  fontSize: "1rem",
2231
2231
  color: "var(--text-color)"
2232
- }, children: o.eventTitle }),
2233
- o.eventDescription && /* @__PURE__ */ e.jsx("p", { style: {
2232
+ }, children: o.event_title }),
2233
+ o.event_description && /* @__PURE__ */ e.jsx("p", { style: {
2234
2234
  margin: "var(--space-xs) 0 0",
2235
2235
  fontFamily: "var(--font-sans)",
2236
2236
  fontSize: "0.9rem",
@@ -2240,7 +2240,7 @@ const Q = ({
2240
2240
  WebkitLineClamp: 2,
2241
2241
  WebkitBoxOrient: "vertical",
2242
2242
  overflow: "hidden"
2243
- }, children: o.eventDescription })
2243
+ }, children: o.event_description })
2244
2244
  ] }),
2245
2245
  /* @__PURE__ */ e.jsxs("div", { style: {
2246
2246
  display: "flex",
@@ -2258,22 +2258,22 @@ const Q = ({
2258
2258
  fontSize: "0.75rem",
2259
2259
  textTransform: "uppercase"
2260
2260
  }, children: o.agency }),
2261
- o.eventDate && /* @__PURE__ */ e.jsx("span", { style: {
2261
+ o.event_date && /* @__PURE__ */ e.jsx("span", { style: {
2262
2262
  fontFamily: "var(--font-sans)",
2263
2263
  fontSize: "0.85rem",
2264
2264
  color: "var(--text-color)",
2265
2265
  opacity: 0.6
2266
- }, children: Nr(o.eventDate) }),
2266
+ }, children: Nr(o.event_date) }),
2267
2267
  (o.city || o.state) && /* @__PURE__ */ e.jsx("span", { style: {
2268
2268
  fontFamily: "var(--font-sans)",
2269
2269
  fontSize: "0.85rem",
2270
2270
  color: "var(--text-color)",
2271
2271
  opacity: 0.6
2272
2272
  }, children: [o.city, o.state].filter(Boolean).join(", ") }),
2273
- o.companyName && /* @__PURE__ */ e.jsxs(
2273
+ o.company_name && /* @__PURE__ */ e.jsxs(
2274
2274
  "a",
2275
2275
  {
2276
- href: `/company/${o.companySlug}`,
2276
+ href: `/company/${o.company_slug}`,
2277
2277
  style: {
2278
2278
  fontFamily: "var(--font-sans)",
2279
2279
  fontSize: "0.85rem",
@@ -2285,7 +2285,7 @@ const Q = ({
2285
2285
  onMouseEnter: (s) => s.currentTarget.style.color = "var(--primary-color)",
2286
2286
  onMouseLeave: (s) => s.currentTarget.style.color = "var(--accent-color)",
2287
2287
  children: [
2288
- o.companyName,
2288
+ o.company_name,
2289
2289
  " →"
2290
2290
  ]
2291
2291
  }
@@ -2361,7 +2361,7 @@ const oo = ({
2361
2361
  border: "2px solid var(--border-color)",
2362
2362
  borderRadius: "var(--radius-md)"
2363
2363
  }, children: [
2364
- (o == null ? void 0 : o.logoUrl) && /* @__PURE__ */ e.jsx("div", { style: {
2364
+ (o == null ? void 0 : o.logo_url) && /* @__PURE__ */ e.jsx("div", { style: {
2365
2365
  width: 80,
2366
2366
  height: 80,
2367
2367
  margin: "0 auto var(--space-md)",
@@ -2374,12 +2374,12 @@ const oo = ({
2374
2374
  }, children: /* @__PURE__ */ e.jsx(
2375
2375
  "img",
2376
2376
  {
2377
- src: o.logoUrl,
2377
+ src: o.logo_url,
2378
2378
  alt: "",
2379
2379
  style: { maxWidth: "100%", maxHeight: "100%" }
2380
2380
  }
2381
2381
  ) }),
2382
- (o == null ? void 0 : o.flagUrl) && /* @__PURE__ */ e.jsx("div", { style: {
2382
+ (o == null ? void 0 : o.flag_url) && /* @__PURE__ */ e.jsx("div", { style: {
2383
2383
  width: "100%",
2384
2384
  margin: "0 auto var(--space-md)",
2385
2385
  borderRadius: "var(--radius-sm)",
@@ -2391,7 +2391,7 @@ const oo = ({
2391
2391
  }, children: /* @__PURE__ */ e.jsx(
2392
2392
  "img",
2393
2393
  {
2394
- src: o.flagUrl,
2394
+ src: o.flag_url,
2395
2395
  alt: "",
2396
2396
  style: { width: "100%", height: "auto", display: "block" }
2397
2397
  }
@@ -2613,7 +2613,7 @@ const oo = ({
2613
2613
  value: a.stats.score,
2614
2614
  label: o.scoreConfig.name,
2615
2615
  betaDisclaimer: o.scoreConfig.betaDisclaimer
2616
- } : void 0, l = Object.keys(a.recentByAgency);
2616
+ } : void 0, l = Object.keys(a.recent_by_agency);
2617
2617
  return /* @__PURE__ */ e.jsxs(
2618
2618
  U,
2619
2619
  {
@@ -2644,7 +2644,7 @@ const oo = ({
2644
2644
  ee,
2645
2645
  {
2646
2646
  title: `Recent ${i} Incidents`,
2647
- events: a.recentByAgency[i],
2647
+ events: a.recent_by_agency[i],
2648
2648
  viewMorePath: `/${a.slug.toLowerCase()}/events/${i.toLowerCase()}`,
2649
2649
  showAgencyBadge: !1
2650
2650
  },
@@ -2725,7 +2725,7 @@ const oo = ({
2725
2725
  value: a.stats.score,
2726
2726
  label: o.scoreConfig.name,
2727
2727
  betaDisclaimer: o.scoreConfig.betaDisclaimer
2728
- } : void 0, c = Object.keys(a.recentByAgency), f = `/${a.state.toLowerCase()}/${a.slug}`;
2728
+ } : void 0, c = Object.keys(a.recent_by_agency), f = `/${a.state.toLowerCase()}/${a.slug}`;
2729
2729
  return /* @__PURE__ */ e.jsxs(
2730
2730
  U,
2731
2731
  {
@@ -2756,7 +2756,7 @@ const oo = ({
2756
2756
  ee,
2757
2757
  {
2758
2758
  title: `Recent ${u} Incidents`,
2759
- events: a.recentByAgency[u],
2759
+ events: a.recent_by_agency[u],
2760
2760
  viewMorePath: `${f}/events/${u.toLowerCase()}`,
2761
2761
  showAgencyBadge: !1
2762
2762
  },
@@ -2812,7 +2812,7 @@ const oo = ({
2812
2812
  ee,
2813
2813
  {
2814
2814
  title: "Recent Incidents",
2815
- events: a.recentEvents.slice(0, l ? 5 : 10),
2815
+ events: a.recent_events.slice(0, l ? 5 : 10),
2816
2816
  viewMorePath: `/company/${a.slug}/events`,
2817
2817
  showAgencyBadge: !0
2818
2818
  }
@@ -2830,8 +2830,8 @@ const oo = ({
2830
2830
  const s = [
2831
2831
  { label: "Home", path: "/" },
2832
2832
  { label: "USA", path: "/usa" },
2833
- { label: a.companyName, path: `/company/${a.companySlug}` },
2834
- { label: `#${a.siteId}` }
2833
+ { label: a.company_name, path: `/company/${a.company_slug}` },
2834
+ { label: `#${a.site_id}` }
2835
2835
  ], n = o.scoreConfig && a.stats.score !== void 0 ? {
2836
2836
  value: a.stats.score,
2837
2837
  label: o.scoreConfig.name,
@@ -2846,7 +2846,7 @@ const oo = ({
2846
2846
  H,
2847
2847
  {
2848
2848
  title: a.name,
2849
- subtitle: `Location #${a.siteId} of ${a.companyName}`,
2849
+ subtitle: `Location #${a.site_id} of ${a.company_name}`,
2850
2850
  breadcrumbs: s,
2851
2851
  score: n
2852
2852
  }
@@ -2855,65 +2855,51 @@ const oo = ({
2855
2855
  /* @__PURE__ */ e.jsx(X, {}),
2856
2856
  /* @__PURE__ */ e.jsxs("main", { className: "page-main", children: [
2857
2857
  /* @__PURE__ */ e.jsx(V, { stats: a.stats }),
2858
- a.siblings && a.siblings.length > 0 && /* @__PURE__ */ e.jsxs("section", { style: {
2859
- padding: "var(--space-lg)",
2860
- backgroundColor: "var(--bg-color)",
2861
- marginBottom: "var(--space-lg)",
2862
- borderRadius: "var(--radius-md)",
2863
- border: "1px solid var(--border-color)"
2864
- }, children: [
2865
- /* @__PURE__ */ e.jsx("h2", { style: {
2866
- margin: "0 0 var(--space-md)",
2867
- fontFamily: "var(--font-serif)",
2868
- fontSize: "1.5rem",
2869
- color: "var(--text-color)"
2870
- }, children: "Compare to Other Locations" }),
2871
- /* @__PURE__ */ e.jsx("div", { style: {
2872
- display: "flex",
2873
- flexWrap: "wrap",
2874
- gap: "var(--space-sm)"
2875
- }, children: a.siblings.slice(0, 10).map((l) => /* @__PURE__ */ e.jsxs(
2876
- "a",
2877
- {
2878
- href: `/company/${a.companySlug}/site/${l.slug}`,
2879
- style: {
2880
- padding: "var(--space-sm) var(--space-md)",
2881
- backgroundColor: "var(--secondary-color)",
2882
- borderRadius: "var(--radius-md)",
2883
- textDecoration: "none",
2884
- color: "var(--text-dark)",
2885
- fontFamily: "var(--font-sans)",
2886
- fontSize: "0.9rem",
2887
- display: "flex",
2888
- alignItems: "center",
2889
- gap: "var(--space-xs)",
2890
- transition: "background var(--transition-fast)"
2891
- },
2892
- onMouseEnter: (i) => i.currentTarget.style.backgroundColor = "var(--accent-color)",
2893
- onMouseLeave: (i) => i.currentTarget.style.backgroundColor = "var(--secondary-color)",
2894
- children: [
2895
- /* @__PURE__ */ e.jsxs("span", { children: [
2896
- "#",
2897
- l.name
2898
- ] }),
2899
- /* @__PURE__ */ e.jsx("span", { style: {
2900
- backgroundColor: "var(--primary-color)",
2901
- color: "var(--text-dark)",
2902
- padding: "2px 6px",
2903
- borderRadius: "var(--radius-sm)",
2904
- fontSize: "0.75rem"
2905
- }, children: l.count })
2906
- ]
2858
+ a.siblings && a.siblings.length > 0 && /* @__PURE__ */ e.jsx("div", { style: {
2859
+ display: "flex",
2860
+ flexWrap: "wrap",
2861
+ gap: "var(--space-sm)"
2862
+ }, children: a.siblings.slice(0, 10).map((l) => /* @__PURE__ */ e.jsxs(
2863
+ "a",
2864
+ {
2865
+ href: `/company/${a.company_slug}/site/${l.slug}`,
2866
+ style: {
2867
+ padding: "var(--space-sm) var(--space-md)",
2868
+ backgroundColor: "var(--secondary-color)",
2869
+ borderRadius: "var(--radius-md)",
2870
+ textDecoration: "none",
2871
+ color: "var(--text-dark)",
2872
+ fontFamily: "var(--font-sans)",
2873
+ fontSize: "0.9rem",
2874
+ display: "flex",
2875
+ alignItems: "center",
2876
+ gap: "var(--space-xs)",
2877
+ transition: "background var(--transition-fast)"
2907
2878
  },
2908
- l.slug
2909
- )) })
2910
- ] }),
2879
+ onMouseEnter: (i) => i.currentTarget.style.backgroundColor = "var(--accent-color)",
2880
+ onMouseLeave: (i) => i.currentTarget.style.backgroundColor = "var(--secondary-color)",
2881
+ children: [
2882
+ /* @__PURE__ */ e.jsxs("span", { children: [
2883
+ "#",
2884
+ l.name
2885
+ ] }),
2886
+ /* @__PURE__ */ e.jsx("span", { style: {
2887
+ backgroundColor: "var(--primary-color)",
2888
+ color: "var(--text-dark)",
2889
+ padding: "2px 6px",
2890
+ borderRadius: "var(--radius-sm)",
2891
+ fontSize: "0.75rem"
2892
+ }, children: l.count })
2893
+ ]
2894
+ },
2895
+ l.slug
2896
+ )) }),
2911
2897
  /* @__PURE__ */ e.jsx(
2912
2898
  ee,
2913
2899
  {
2914
2900
  title: "Recent Incidents",
2915
- events: a.recentEvents,
2916
- viewMorePath: `/company/${a.companySlug}/site/${a.siteId}/events`,
2901
+ events: a.recent_events,
2902
+ viewMorePath: `/company/${a.company_slug}/site/${a.site_id}/events`,
2917
2903
  showAgencyBadge: !0
2918
2904
  }
2919
2905
  )
@@ -2935,7 +2921,7 @@ export {
2935
2921
  Q as Directory,
2936
2922
  X as FilterSidebar,
2937
2923
  zr as Footer,
2938
- Fr as Header,
2924
+ Mr as Header,
2939
2925
  H as Hero,
2940
2926
  K as InfoSidebar,
2941
2927
  Xr as Input,
@@ -2946,10 +2932,10 @@ export {
2946
2932
  ee as RecentEvents,
2947
2933
  U as Shell,
2948
2934
  lo as SitePage,
2949
- $e as Skeleton,
2935
+ Be as Skeleton,
2950
2936
  ro as SkeletonCard,
2951
- Mr as SkeletonText,
2952
- Er as Spinner,
2937
+ Er as SkeletonText,
2938
+ _r as Spinner,
2953
2939
  V as StatGrid,
2954
2940
  no as StatePage,
2955
2941
  Gr as Table,