@ssgc/alert-console 2.10.10 → 2.10.12

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.es.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as c, jsxs as f, Fragment as rn } from "react/jsx-runtime";
2
2
  import { useContext as Li, useMemo as ve, createContext as Fi, useRef as pr, useState as S, useCallback as bn, useEffect as oe, useLayoutEffect as $i, forwardRef as gr, createElement as Hs } from "react";
3
- import { Select as Fe, Table as an, Row as Ze, Col as K, Input as Pi, Tag as wt, Space as st, Tooltip as In, Button as ze, Progress as Wi, Dropdown as Vi, Typography as Jt, Spin as Ns, Checkbox as Et, Divider as Zt, TimePicker as kn, Tabs as on, Card as Ds, Steps as Bi, Timeline as Zi, Modal as zi, Carousel as Hi } from "antd";
3
+ import { Select as Pe, Table as an, Row as Ze, Col as K, Input as Pi, Tag as wt, Space as st, Tooltip as In, Button as ze, Progress as Wi, Dropdown as Vi, Typography as Jt, Spin as Ns, Checkbox as Ot, Divider as Zt, TimePicker as kn, Tabs as on, Card as Ds, Steps as Bi, Timeline as Zi, Modal as zi, Carousel as Hi } from "antd";
4
4
  import { MessageOutlined as Gi, MailOutlined as qi, MoreOutlined as Yi, PlusOutlined as _i, EditOutlined as ji, LeftOutlined as Ji, RightOutlined as Ki } from "@ant-design/icons";
5
- import { toast as Oe } from "react-toastify";
5
+ import { toast as Ee } from "react-toastify";
6
6
  import { useQueryClient as Qi, useMutation as Xi, useQuery as ln, QueryClient as ea, QueryClientProvider as ta } from "@tanstack/react-query";
7
7
  const sa = "#FF3B30", na = "#FF9500", ra = "#FFCC00", ia = "#34C759", ns = {
8
8
  critical: sa,
@@ -18,14 +18,14 @@ const sa = "#FF3B30", na = "#FF9500", ra = "#FFCC00", ia = "#34C759", ns = {
18
18
  function aa(t) {
19
19
  return xn[t] || xn.Low;
20
20
  }
21
- function On(t) {
21
+ function En(t) {
22
22
  if (!t || typeof t != "string") return 0;
23
23
  const e = t.trim().split(":");
24
24
  if (e.length !== 3) return 0;
25
25
  const [s, n, r] = e, i = Number.parseInt(s, 10), a = Number.parseInt(n, 10), o = Number.parseFloat(r || "0"), l = Number.isFinite(i) ? i : 0, u = Number.isFinite(a) ? a : 0, m = Number.isFinite(o) ? o : 0;
26
26
  return l * 3600 + u * 60 + m;
27
27
  }
28
- function En(t) {
28
+ function On(t) {
29
29
  return t.toLowerCase().replaceAll("'", "").replaceAll("‘", "").replaceAll("’", "");
30
30
  }
31
31
  const Sr = "", oa = Sr, la = "", ca = "", ua = "", da = "", Mn = {
@@ -306,58 +306,58 @@ function Sa() {
306
306
  (function(s, n) {
307
307
  t.exports = n();
308
308
  })(ga, (function() {
309
- var s = 1e3, n = 6e4, r = 36e5, i = "millisecond", a = "second", o = "minute", l = "hour", u = "day", m = "week", d = "month", y = "quarter", p = "year", v = "date", k = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(E) {
310
- var N = ["th", "st", "nd", "rd"], A = E % 100;
311
- return "[" + E + (N[(A - 20) % 10] || N[A] || N[0]) + "]";
312
- } }, Q = function(E, N, A) {
313
- var O = String(E);
314
- return !O || O.length >= N ? E : "" + Array(N + 1 - O.length).join(A) + E;
315
- }, x = { s: Q, z: function(E) {
316
- var N = -E.utcOffset(), A = Math.abs(N), O = Math.floor(A / 60), T = A % 60;
317
- return (N <= 0 ? "+" : "-") + Q(O, 2, "0") + ":" + Q(T, 2, "0");
318
- }, m: function E(N, A) {
319
- if (N.date() < A.date()) return -E(A, N);
320
- var O = 12 * (A.year() - N.year()) + (A.month() - N.month()), T = N.clone().add(O, d), D = A - T < 0, L = N.clone().add(O + (D ? -1 : 1), d);
321
- return +(-(O + (A - T) / (D ? T - L : L - T)) || 0);
322
- }, a: function(E) {
323
- return E < 0 ? Math.ceil(E) || 0 : Math.floor(E);
324
- }, p: function(E) {
325
- return { M: d, y: p, w: m, d: u, D: v, h: l, m: o, s: a, ms: i, Q: y }[E] || String(E || "").toLowerCase().replace(/s$/, "");
326
- }, u: function(E) {
327
- return E === void 0;
309
+ var s = 1e3, n = 6e4, r = 36e5, i = "millisecond", a = "second", o = "minute", l = "hour", u = "day", m = "week", d = "month", y = "quarter", p = "year", v = "date", k = "Invalid Date", b = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, B = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, q = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(O) {
310
+ var N = ["th", "st", "nd", "rd"], A = O % 100;
311
+ return "[" + O + (N[(A - 20) % 10] || N[A] || N[0]) + "]";
312
+ } }, Q = function(O, N, A) {
313
+ var E = String(O);
314
+ return !E || E.length >= N ? O : "" + Array(N + 1 - E.length).join(A) + O;
315
+ }, x = { s: Q, z: function(O) {
316
+ var N = -O.utcOffset(), A = Math.abs(N), E = Math.floor(A / 60), T = A % 60;
317
+ return (N <= 0 ? "+" : "-") + Q(E, 2, "0") + ":" + Q(T, 2, "0");
318
+ }, m: function O(N, A) {
319
+ if (N.date() < A.date()) return -O(A, N);
320
+ var E = 12 * (A.year() - N.year()) + (A.month() - N.month()), T = N.clone().add(E, d), D = A - T < 0, L = N.clone().add(E + (D ? -1 : 1), d);
321
+ return +(-(E + (A - T) / (D ? T - L : L - T)) || 0);
322
+ }, a: function(O) {
323
+ return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
324
+ }, p: function(O) {
325
+ return { M: d, y: p, w: m, d: u, D: v, h: l, m: o, s: a, ms: i, Q: y }[O] || String(O || "").toLowerCase().replace(/s$/, "");
326
+ }, u: function(O) {
327
+ return O === void 0;
328
328
  } }, C = "en", Z = {};
329
329
  Z[C] = q;
330
- var R = "$isDayjsObject", G = function(E) {
331
- return E instanceof ie || !(!E || !E[R]);
332
- }, h = function E(N, A, O) {
330
+ var R = "$isDayjsObject", G = function(O) {
331
+ return O instanceof ie || !(!O || !O[R]);
332
+ }, h = function O(N, A, E) {
333
333
  var T;
334
334
  if (!N) return C;
335
335
  if (typeof N == "string") {
336
336
  var D = N.toLowerCase();
337
337
  Z[D] && (T = D), A && (Z[D] = A, T = D);
338
338
  var L = N.split("-");
339
- if (!T && L.length > 1) return E(L[0]);
339
+ if (!T && L.length > 1) return O(L[0]);
340
340
  } else {
341
341
  var _ = N.name;
342
342
  Z[_] = N, T = _;
343
343
  }
344
- return !O && T && (C = T), T || !O && C;
345
- }, g = function(E, N) {
346
- if (G(E)) return E.clone();
344
+ return !E && T && (C = T), T || !E && C;
345
+ }, g = function(O, N) {
346
+ if (G(O)) return O.clone();
347
347
  var A = typeof N == "object" ? N : {};
348
- return A.date = E, A.args = arguments, new ie(A);
348
+ return A.date = O, A.args = arguments, new ie(A);
349
349
  }, M = x;
350
- M.l = h, M.i = G, M.w = function(E, N) {
351
- return g(E, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
350
+ M.l = h, M.i = G, M.w = function(O, N) {
351
+ return g(O, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
352
352
  };
353
353
  var ie = (function() {
354
- function E(A) {
354
+ function O(A) {
355
355
  this.$L = h(A.locale, null, !0), this.parse(A), this.$x = this.$x || A.x || {}, this[R] = !0;
356
356
  }
357
- var N = E.prototype;
357
+ var N = O.prototype;
358
358
  return N.parse = function(A) {
359
- this.$d = (function(O) {
360
- var T = O.date, D = O.utc;
359
+ this.$d = (function(E) {
360
+ var T = E.date, D = E.utc;
361
361
  if (T === null) return /* @__PURE__ */ new Date(NaN);
362
362
  if (M.u(T)) return /* @__PURE__ */ new Date();
363
363
  if (T instanceof Date) return new Date(T);
@@ -377,26 +377,26 @@ function Sa() {
377
377
  return M;
378
378
  }, N.isValid = function() {
379
379
  return this.$d.toString() !== k;
380
- }, N.isSame = function(A, O) {
380
+ }, N.isSame = function(A, E) {
381
381
  var T = g(A);
382
- return this.startOf(O) <= T && T <= this.endOf(O);
383
- }, N.isAfter = function(A, O) {
384
- return g(A) < this.startOf(O);
385
- }, N.isBefore = function(A, O) {
386
- return this.endOf(O) < g(A);
387
- }, N.$g = function(A, O, T) {
388
- return M.u(A) ? this[O] : this.set(T, A);
382
+ return this.startOf(E) <= T && T <= this.endOf(E);
383
+ }, N.isAfter = function(A, E) {
384
+ return g(A) < this.startOf(E);
385
+ }, N.isBefore = function(A, E) {
386
+ return this.endOf(E) < g(A);
387
+ }, N.$g = function(A, E, T) {
388
+ return M.u(A) ? this[E] : this.set(T, A);
389
389
  }, N.unix = function() {
390
390
  return Math.floor(this.valueOf() / 1e3);
391
391
  }, N.valueOf = function() {
392
392
  return this.$d.getTime();
393
- }, N.startOf = function(A, O) {
394
- var T = this, D = !!M.u(O) || O, L = M.p(A), _ = function(ke, pe) {
393
+ }, N.startOf = function(A, E) {
394
+ var T = this, D = !!M.u(E) || E, L = M.p(A), _ = function(ke, pe) {
395
395
  var P = M.w(T.$u ? Date.UTC(T.$y, pe, ke) : new Date(T.$y, pe, ke), T);
396
396
  return D ? P : P.endOf(u);
397
397
  }, Y = function(ke, pe) {
398
398
  return M.w(T.toDate()[ke].apply(T.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(pe)), T);
399
- }, j = this.$W, ce = this.$M, me = this.$D, Ee = "set" + (this.$u ? "UTC" : "");
399
+ }, j = this.$W, ce = this.$M, me = this.$D, Oe = "set" + (this.$u ? "UTC" : "");
400
400
  switch (L) {
401
401
  case p:
402
402
  return D ? _(1, 0) : _(31, 11);
@@ -407,33 +407,33 @@ function Sa() {
407
407
  return _(D ? me - Se : me + (6 - Se), ce);
408
408
  case u:
409
409
  case v:
410
- return Y(Ee + "Hours", 0);
410
+ return Y(Oe + "Hours", 0);
411
411
  case l:
412
- return Y(Ee + "Minutes", 1);
412
+ return Y(Oe + "Minutes", 1);
413
413
  case o:
414
- return Y(Ee + "Seconds", 2);
414
+ return Y(Oe + "Seconds", 2);
415
415
  case a:
416
- return Y(Ee + "Milliseconds", 3);
416
+ return Y(Oe + "Milliseconds", 3);
417
417
  default:
418
418
  return this.clone();
419
419
  }
420
420
  }, N.endOf = function(A) {
421
421
  return this.startOf(A, !1);
422
- }, N.$set = function(A, O) {
423
- var T, D = M.p(A), L = "set" + (this.$u ? "UTC" : ""), _ = (T = {}, T[u] = L + "Date", T[v] = L + "Date", T[d] = L + "Month", T[p] = L + "FullYear", T[l] = L + "Hours", T[o] = L + "Minutes", T[a] = L + "Seconds", T[i] = L + "Milliseconds", T)[D], Y = D === u ? this.$D + (O - this.$W) : O;
422
+ }, N.$set = function(A, E) {
423
+ var T, D = M.p(A), L = "set" + (this.$u ? "UTC" : ""), _ = (T = {}, T[u] = L + "Date", T[v] = L + "Date", T[d] = L + "Month", T[p] = L + "FullYear", T[l] = L + "Hours", T[o] = L + "Minutes", T[a] = L + "Seconds", T[i] = L + "Milliseconds", T)[D], Y = D === u ? this.$D + (E - this.$W) : E;
424
424
  if (D === d || D === p) {
425
425
  var j = this.clone().set(v, 1);
426
426
  j.$d[_](Y), j.init(), this.$d = j.set(v, Math.min(this.$D, j.daysInMonth())).$d;
427
427
  } else _ && this.$d[_](Y);
428
428
  return this.init(), this;
429
- }, N.set = function(A, O) {
430
- return this.clone().$set(A, O);
429
+ }, N.set = function(A, E) {
430
+ return this.clone().$set(A, E);
431
431
  }, N.get = function(A) {
432
432
  return this[M.p(A)]();
433
- }, N.add = function(A, O) {
433
+ }, N.add = function(A, E) {
434
434
  var T, D = this;
435
435
  A = Number(A);
436
- var L = M.p(O), _ = function(ce) {
436
+ var L = M.p(E), _ = function(ce) {
437
437
  var me = g(D);
438
438
  return M.w(me.date(me.date() + Math.round(ce * A)), D);
439
439
  };
@@ -443,16 +443,16 @@ function Sa() {
443
443
  if (L === m) return _(7);
444
444
  var Y = (T = {}, T[o] = n, T[l] = r, T[a] = s, T)[L] || 1, j = this.$d.getTime() + A * Y;
445
445
  return M.w(j, this);
446
- }, N.subtract = function(A, O) {
447
- return this.add(-1 * A, O);
446
+ }, N.subtract = function(A, E) {
447
+ return this.add(-1 * A, E);
448
448
  }, N.format = function(A) {
449
- var O = this, T = this.$locale();
449
+ var E = this, T = this.$locale();
450
450
  if (!this.isValid()) return T.invalidDate || k;
451
- var D = A || "YYYY-MM-DDTHH:mm:ssZ", L = M.z(this), _ = this.$H, Y = this.$m, j = this.$M, ce = T.weekdays, me = T.months, Ee = T.meridiem, te = function(pe, P, W, ge) {
452
- return pe && (pe[P] || pe(O, D)) || W[P].slice(0, ge);
451
+ var D = A || "YYYY-MM-DDTHH:mm:ssZ", L = M.z(this), _ = this.$H, Y = this.$m, j = this.$M, ce = T.weekdays, me = T.months, Oe = T.meridiem, te = function(pe, P, W, ge) {
452
+ return pe && (pe[P] || pe(E, D)) || W[P].slice(0, ge);
453
453
  }, Se = function(pe) {
454
454
  return M.s(_ % 12 || 12, pe, "0");
455
- }, ke = Ee || function(pe, P, W) {
455
+ }, ke = Oe || function(pe, P, W) {
456
456
  var ge = pe < 12 ? "AM" : "PM";
457
457
  return W ? ge.toLowerCase() : ge;
458
458
  };
@@ -460,9 +460,9 @@ function Sa() {
460
460
  return P || (function(W) {
461
461
  switch (W) {
462
462
  case "YY":
463
- return String(O.$y).slice(-2);
463
+ return String(E.$y).slice(-2);
464
464
  case "YYYY":
465
- return M.s(O.$y, 4, "0");
465
+ return M.s(E.$y, 4, "0");
466
466
  case "M":
467
467
  return j + 1;
468
468
  case "MM":
@@ -472,17 +472,17 @@ function Sa() {
472
472
  case "MMMM":
473
473
  return te(me, j);
474
474
  case "D":
475
- return O.$D;
475
+ return E.$D;
476
476
  case "DD":
477
- return M.s(O.$D, 2, "0");
477
+ return M.s(E.$D, 2, "0");
478
478
  case "d":
479
- return String(O.$W);
479
+ return String(E.$W);
480
480
  case "dd":
481
- return te(T.weekdaysMin, O.$W, ce, 2);
481
+ return te(T.weekdaysMin, E.$W, ce, 2);
482
482
  case "ddd":
483
- return te(T.weekdaysShort, O.$W, ce, 3);
483
+ return te(T.weekdaysShort, E.$W, ce, 3);
484
484
  case "dddd":
485
- return ce[O.$W];
485
+ return ce[E.$W];
486
486
  case "H":
487
487
  return String(_);
488
488
  case "HH":
@@ -500,11 +500,11 @@ function Sa() {
500
500
  case "mm":
501
501
  return M.s(Y, 2, "0");
502
502
  case "s":
503
- return String(O.$s);
503
+ return String(E.$s);
504
504
  case "ss":
505
- return M.s(O.$s, 2, "0");
505
+ return M.s(E.$s, 2, "0");
506
506
  case "SSS":
507
- return M.s(O.$ms, 3, "0");
507
+ return M.s(E.$ms, 3, "0");
508
508
  case "Z":
509
509
  return L;
510
510
  }
@@ -513,8 +513,8 @@ function Sa() {
513
513
  }));
514
514
  }, N.utcOffset = function() {
515
515
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
516
- }, N.diff = function(A, O, T) {
517
- var D, L = this, _ = M.p(O), Y = g(A), j = (Y.utcOffset() - this.utcOffset()) * n, ce = this - Y, me = function() {
516
+ }, N.diff = function(A, E, T) {
517
+ var D, L = this, _ = M.p(E), Y = g(A), j = (Y.utcOffset() - this.utcOffset()) * n, ce = this - Y, me = function() {
518
518
  return M.m(L, Y);
519
519
  };
520
520
  switch (_) {
@@ -550,9 +550,9 @@ function Sa() {
550
550
  return this.endOf(d).$D;
551
551
  }, N.$locale = function() {
552
552
  return Z[this.$L];
553
- }, N.locale = function(A, O) {
553
+ }, N.locale = function(A, E) {
554
554
  if (!A) return this.$L;
555
- var T = this.clone(), D = h(A, O, !0);
555
+ var T = this.clone(), D = h(A, E, !0);
556
556
  return D && (T.$L = D), T;
557
557
  }, N.clone = function() {
558
558
  return M.w(this.$d, this);
@@ -564,16 +564,16 @@ function Sa() {
564
564
  return this.$d.toISOString();
565
565
  }, N.toString = function() {
566
566
  return this.$d.toUTCString();
567
- }, E;
567
+ }, O;
568
568
  })(), ye = ie.prototype;
569
- return g.prototype = ye, [["$ms", i], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", v]].forEach((function(E) {
570
- ye[E[1]] = function(N) {
571
- return this.$g(N, E[0], E[1]);
569
+ return g.prototype = ye, [["$ms", i], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", v]].forEach((function(O) {
570
+ ye[O[1]] = function(N) {
571
+ return this.$g(N, O[0], O[1]);
572
572
  };
573
- })), g.extend = function(E, N) {
574
- return E.$i || (E(N, ie, g), E.$i = !0), g;
575
- }, g.locale = h, g.isDayjs = G, g.unix = function(E) {
576
- return g(1e3 * E);
573
+ })), g.extend = function(O, N) {
574
+ return O.$i || (O(N, ie, g), O.$i = !0), g;
575
+ }, g.locale = h, g.isDayjs = G, g.unix = function(O) {
576
+ return g(1e3 * O);
577
577
  }, g.en = Z[C], g.Ls = Z, g.p = {}, g;
578
578
  }));
579
579
  })(hs)), hs.exports;
@@ -594,7 +594,7 @@ function Rn(t) {
594
594
  const { hours: e, minutes: s, seconds: n } = wr(t);
595
595
  return wa().hour(e).minute(s).second(n).millisecond(0);
596
596
  }
597
- function Ve(t, e) {
597
+ function Fe(t, e) {
598
598
  const s = (t || "").replace(/\/+$/, ""), n = e.startsWith("/") ? e : `/${e}`;
599
599
  return `${s}${n}`;
600
600
  }
@@ -613,7 +613,7 @@ function is(t, e) {
613
613
  r != null && String(r).length > 0 && s.searchParams.set(n, String(r));
614
614
  }), s.toString();
615
615
  }
616
- async function Be(t, e) {
616
+ async function $e(t, e) {
617
617
  const s = {
618
618
  ...e.headers,
619
619
  ...Aa()
@@ -645,17 +645,19 @@ function zt(t, e, s = {}) {
645
645
  return n;
646
646
  }
647
647
  function Na(t) {
648
- return Array.isArray(t) ? t.map((e) => zt(e, [
649
- "alertLogId",
650
- "alertId",
651
- "status",
652
- "description",
653
- "actionNotes",
654
- "createdDate",
655
- "createdBy",
656
- "modifiedDate",
657
- "modifiedBy"
658
- ])) : t;
648
+ return Array.isArray(t) ? t.map(
649
+ (e) => zt(e, [
650
+ "alertLogId",
651
+ "alertId",
652
+ "status",
653
+ "description",
654
+ "actionNotes",
655
+ "createdDate",
656
+ "createdBy",
657
+ "modifiedDate",
658
+ "modifiedBy"
659
+ ])
660
+ ) : t;
659
661
  }
660
662
  function Ta(t) {
661
663
  return {
@@ -675,7 +677,12 @@ function Ta(t) {
675
677
  assignTeam: he(t?.AssignTeam, t?.assignTeam),
676
678
  cameraName: he(t?.CameraName, t?.cameraName),
677
679
  type: he(t?.Type, t?.type),
678
- mediaDetails: he(t?.MediaDetails, t?.mediaDetails, t?.MediaUrls, t?.mediaUrls),
680
+ mediaDetails: he(
681
+ t?.MediaDetails,
682
+ t?.mediaDetails,
683
+ t?.MediaUrls,
684
+ t?.mediaUrls
685
+ ),
679
686
  additionalMedia: he(t?.AdditionalMedia, t?.additionalMedia),
680
687
  timeElapsed: he(t?.TimeElapsed, t?.timeElapsed),
681
688
  timeRemaining: he(t?.TimeRemaining, t?.timeRemaining),
@@ -694,7 +701,7 @@ function ba(t) {
694
701
  };
695
702
  return {
696
703
  async listAlerts(s) {
697
- const n = Ve(t.baseUrl, "/api/detectionpolicy/alerts"), r = is(n, {
704
+ const n = Fe(t.baseUrl, "/api/detectionpolicy/alerts"), r = is(n, {
698
705
  customerId: "99e5c8b5-b9d4-4d35-8885-7f121c532664",
699
706
  pageSize: s?.pageSize ?? 10,
700
707
  page: s?.pageNumber ?? 1,
@@ -704,44 +711,49 @@ function ba(t) {
704
711
  ...s?.thirdPartyIds?.length && { ThirdPartyIds: s.thirdPartyIds.join(",") },
705
712
  ...s?.searchText && { searchText: s.searchText },
706
713
  isArchived: s?.isArchived ?? !1
707
- }), i = await Be(r, {
714
+ }), i = await $e(r, {
708
715
  method: "GET",
709
716
  headers: e
710
717
  });
711
718
  return { items: Array.isArray(i?.Items) ? i.Items.map(Ta) : [], total: i?.Total };
712
719
  },
713
720
  async getAlertStatusList() {
714
- const s = Ve(t.baseUrl, "/api/detectionpolicy/alerts/StatusList"), n = await Be(s, {
721
+ const s = Fe(t.baseUrl, "/api/detectionpolicy/alerts/StatusList"), n = await $e(s, {
715
722
  method: "GET",
716
723
  headers: e
717
724
  });
718
- return (Array.isArray(n) ? n : []).map((i) => zt(i, [
719
- "alertStatusId",
720
- "value",
721
- "statusName"
722
- ]));
725
+ return (Array.isArray(n) ? n : []).map(
726
+ (i) => zt(i, ["alertStatusId", "value", "statusName"])
727
+ );
723
728
  },
724
729
  async getAlertsReport(s) {
725
- const n = Ve(t.baseUrl, "/api/detectionpolicy/alerts/GetAlertsReport"), r = is(n, s), i = await Be(r, {
730
+ const n = Fe(t.baseUrl, "/api/detectionpolicy/alerts/GetAlertsReport"), r = is(n, s), i = await $e(r, {
726
731
  method: "GET",
727
732
  headers: e
728
733
  });
729
734
  return Array.isArray(i) ? i : [];
730
735
  },
731
736
  async updateAlertStatus(s) {
732
- const n = Ve(t.baseUrl, "/api/detectionpolicy/alerts/Log"), r = {
737
+ const n = Fe(t.baseUrl, "/api/detectionpolicy/alerts/Log"), r = {
733
738
  AlertId: s.alertId ?? s.alertUniqueId ?? s.AlertId,
734
739
  Status: s.status ?? s.Status ?? "",
735
740
  Notes: s.notes ?? s.Notes ?? ""
736
741
  };
737
- return Be(n, {
742
+ return $e(n, {
738
743
  method: "POST",
739
744
  headers: e,
740
745
  body: JSON.stringify(r)
741
746
  });
742
747
  },
748
+ async getAlertTimeline(s) {
749
+ const n = Fe(t.baseUrl, `/api/detectionpolicy/alerts/alertTimelines/${s}`);
750
+ return $e(n, {
751
+ method: "GET",
752
+ headers: e
753
+ });
754
+ },
743
755
  async getAdminSettings() {
744
- const s = Ve(t.baseUrl, "/api/detectionpolicy/alerts/GetAdminSettings"), n = await Be(s, {
756
+ const s = Fe(t.baseUrl, "/api/detectionpolicy/alerts/GetAdminSettings"), n = await $e(s, {
745
757
  method: "GET",
746
758
  headers: e
747
759
  });
@@ -755,7 +767,7 @@ function ba(t) {
755
767
  return null;
756
768
  },
757
769
  async setAdminSettings(s) {
758
- const n = Ve(t.baseUrl, "/api/detectionpolicy/alerts/SetAdminSettings"), r = {
770
+ const n = Fe(t.baseUrl, "/api/detectionpolicy/alerts/SetAdminSettings"), r = {
759
771
  Settings: {
760
772
  UserId: 0,
761
773
  IsAdminSetting: !0,
@@ -763,14 +775,14 @@ function ba(t) {
763
775
  GroupBy: s?.groupBy ?? null
764
776
  }
765
777
  };
766
- return Be(n, {
778
+ return $e(n, {
767
779
  method: "POST",
768
780
  headers: e,
769
781
  body: JSON.stringify(r)
770
782
  });
771
783
  },
772
784
  async getPreferenceSettings() {
773
- const s = Ve(t.baseUrl, "/api/detectionpolicy/alerts/GetPreferenceSettings"), n = await Be(s, {
785
+ const s = Fe(t.baseUrl, "/api/detectionpolicy/alerts/GetPreferenceSettings"), n = await $e(s, {
774
786
  method: "GET",
775
787
  headers: e
776
788
  });
@@ -781,7 +793,7 @@ function ba(t) {
781
793
  return null;
782
794
  },
783
795
  async setPreferenceSettings(s) {
784
- const n = Ve(t.baseUrl, "/api/detectionpolicy/alerts/SetPreferenceSettings"), r = (u) => {
796
+ const n = Fe(t.baseUrl, "/api/detectionpolicy/alerts/SetPreferenceSettings"), r = (u) => {
785
797
  const { hours: m, minutes: d, seconds: y } = wr(u);
786
798
  return (m * 3600 + d * 60 + y) * 1e7;
787
799
  }, i = {
@@ -795,7 +807,7 @@ function ba(t) {
795
807
  Email: !!s?.email,
796
808
  SortBy: s?.sortBy ?? ""
797
809
  }
798
- }, a = await Be(n, {
810
+ }, a = await $e(n, {
799
811
  method: "POST",
800
812
  headers: e,
801
813
  body: JSON.stringify(i)
@@ -808,45 +820,52 @@ function ba(t) {
808
820
  };
809
821
  },
810
822
  async sendSMSorEmailNotifications(s, n, r) {
811
- const i = Ve(t.baseUrl, "/api/detectionpolicy/alerts/SendSMSorEmailNotifications"), a = is(i, { alertId: s, isEmail: n, isSMS: r });
812
- return Be(a, {
823
+ const i = Fe(
824
+ t.baseUrl,
825
+ "/api/detectionpolicy/alerts/SendSMSorEmailNotifications"
826
+ ), a = is(i, { alertId: s, isEmail: n, isSMS: r });
827
+ return $e(a, {
813
828
  method: "POST",
814
829
  headers: e
815
830
  });
816
831
  },
817
832
  async getAlertNotifications(s) {
818
- const n = Ve(t.baseUrl, "/api/detectionpolicy/alerts/GetNotifications"), r = is(n, { alertId: s }), i = await Be(r, {
833
+ const n = Fe(t.baseUrl, "/api/detectionpolicy/alerts/GetNotifications"), r = is(n, { alertId: s }), i = await $e(r, {
819
834
  method: "GET",
820
835
  headers: e
821
836
  });
822
837
  let a = [];
823
- return Array.isArray(i) ? a = i : Array.isArray(i?.data) && (a = i.data), a.map((o) => zt(o, [
824
- "alertNotificationSentId",
825
- "alertId",
826
- "notificationType",
827
- "receipientName",
828
- "receipentPhoneNumber",
829
- "messageSID",
830
- "messageStatus",
831
- "receipientEmail",
832
- "notificationReceipientType",
833
- "sentAt"
834
- ]));
838
+ return Array.isArray(i) ? a = i : Array.isArray(i?.data) && (a = i.data), a.map(
839
+ (o) => zt(o, [
840
+ "alertNotificationSentId",
841
+ "alertId",
842
+ "notificationType",
843
+ "receipientName",
844
+ "receipentPhoneNumber",
845
+ "messageSID",
846
+ "messageStatus",
847
+ "receipientEmail",
848
+ "notificationReceipientType",
849
+ "sentAt"
850
+ ])
851
+ );
835
852
  },
836
853
  async getTimeZoneMasters() {
837
- const s = Ve(t.baseUrl, "/api/TimeZoneMaster"), n = await Be(s, {
854
+ const s = Fe(t.baseUrl, "/api/TimeZoneMaster"), n = await $e(s, {
838
855
  method: "GET",
839
856
  headers: e
840
857
  });
841
- return (Array.isArray(n?.Data) ? n.Data : []).map((i) => zt(i, [
842
- "timeZoneUniqueId",
843
- "ianaTimeZoneId",
844
- "timeZoneName",
845
- "offset"
846
- ]));
858
+ return (Array.isArray(n?.Data) ? n.Data : []).map(
859
+ (i) => zt(i, [
860
+ "timeZoneUniqueId",
861
+ "ianaTimeZoneId",
862
+ "timeZoneName",
863
+ "offset"
864
+ ])
865
+ );
847
866
  },
848
867
  async getAllSpaces() {
849
- const s = t.spacesBaseUrl || t.baseUrl, n = Ve(s, "/api/AllSpaces"), r = await Be(n, {
868
+ const s = t.spacesBaseUrl || t.baseUrl, n = Fe(s, "/api/AllSpaces"), r = await $e(n, {
850
869
  method: "GET",
851
870
  headers: e
852
871
  });
@@ -856,12 +875,12 @@ function ba(t) {
856
875
  }));
857
876
  },
858
877
  async getMyAppPreferences() {
859
- const s = Ve(t.baseUrl, "/MyProfile"), n = await Be(s, {
878
+ const s = Fe(t.baseUrl, "/MyProfile"), n = await $e(s, {
860
879
  method: "GET",
861
880
  headers: e
862
881
  }), r = n?.data?.userGuid ?? n?.Data?.userGuid ?? n?.userGuid;
863
882
  if (!r) return null;
864
- const i = Ve(t.baseUrl, `/api/GetMyAppPreferences/${r}`), a = await Be(i, {
883
+ const i = Fe(t.baseUrl, `/api/GetMyAppPreferences/${r}`), a = await $e(i, {
865
884
  method: "GET",
866
885
  headers: e
867
886
  });
@@ -927,12 +946,30 @@ function ka(t) {
927
946
  },
928
947
  async getLookups() {
929
948
  const n = (h) => new URL(h, t.baseUrl).toString(), r = t.userManagementBaseUrl || t.baseUrl, i = [
930
- it(n("/api/detectionpolicy/lookups/actiontypes"), { method: "GET", headers: e }),
931
- it(n("/api/detectionpolicy/lookups/anomalies"), { method: "GET", headers: e }),
932
- it(n("/api/detectionpolicy/lookups/thirdparty"), { method: "GET", headers: e }),
933
- it(n("/api/detectionpolicy/lookups/severity"), { method: "GET", headers: e }),
934
- it(n("/api/detectionpolicy/lookups/scheduletypes"), { method: "GET", headers: e }),
935
- it(new URL("/user/user-roles", r).toString(), { method: "GET", headers: e })
949
+ it(n("/api/detectionpolicy/lookups/actiontypes"), {
950
+ method: "GET",
951
+ headers: e
952
+ }),
953
+ it(n("/api/detectionpolicy/lookups/anomalies"), {
954
+ method: "GET",
955
+ headers: e
956
+ }),
957
+ it(n("/api/detectionpolicy/lookups/thirdparty"), {
958
+ method: "GET",
959
+ headers: e
960
+ }),
961
+ it(n("/api/detectionpolicy/lookups/severity"), {
962
+ method: "GET",
963
+ headers: e
964
+ }),
965
+ it(n("/api/detectionpolicy/lookups/scheduletypes"), {
966
+ method: "GET",
967
+ headers: e
968
+ }),
969
+ it(new URL("/user/user-roles", r).toString(), {
970
+ method: "GET",
971
+ headers: e
972
+ })
936
973
  ], [
937
974
  a,
938
975
  o,
@@ -951,8 +988,8 @@ function ka(t) {
951
988
  actionTypeId: Number(h?.ActionTypeId),
952
989
  name: h?.DisplayName ?? h?.Name ?? ""
953
990
  })), C = v.map((h) => ({
954
- recordId: h?.AnomalyId,
955
- anomalyName: h?.DisplayName ?? h?.Name ?? ""
991
+ AnomalyId: h?.AnomalyId,
992
+ DisplayName: h?.DisplayName ?? h?.Name ?? ""
956
993
  })), Z = k.map((h) => ({
957
994
  thirdPartyId: Number(h?.ThirdPartyId),
958
995
  thirdPartyName: h?.ThirdPartyName ?? h?.Name ?? ""
@@ -1022,7 +1059,7 @@ async function ct(t, e) {
1022
1059
  }
1023
1060
  return i;
1024
1061
  }
1025
- function Oa(t) {
1062
+ function Ea(t) {
1026
1063
  const e = {
1027
1064
  "Content-Type": "application/json",
1028
1065
  ...t.headers || {}
@@ -1123,7 +1160,7 @@ function qe(t, e) {
1123
1160
  const s = (t || "").replace(/\/+$/, ""), n = e.startsWith("/") ? e : `/${e}`;
1124
1161
  return `${s}${n}`;
1125
1162
  }
1126
- function Ea() {
1163
+ function Oa() {
1127
1164
  try {
1128
1165
  const t = localStorage.getItem("authToken");
1129
1166
  return t ? { Authorization: `Bearer ${t}` } : {};
@@ -1141,7 +1178,7 @@ function as(t, e) {
1141
1178
  async function Ye(t, e) {
1142
1179
  const s = {
1143
1180
  ...e.headers,
1144
- ...Ea()
1181
+ ...Oa()
1145
1182
  }, n = await fetch(t, { ...e, headers: s });
1146
1183
  if (n.status === 401)
1147
1184
  throw window.location.href = "/login", new Error("Unauthorized");
@@ -1329,7 +1366,7 @@ function Da({
1329
1366
  snl: () => fa(l)
1330
1367
  }, d = {
1331
1368
  schools: () => ka({ ...u, userManagementBaseUrl: a.userManagementDomain }),
1332
- transit: () => Oa({ ...u, userManagementBaseUrl: a.userManagementDomain }),
1369
+ transit: () => Ea({ ...u, userManagementBaseUrl: a.userManagementDomain }),
1333
1370
  snl: () => ya({ baseUrl: a.alertsBaseUrl, headers: a.headers })
1334
1371
  };
1335
1372
  return {
@@ -1368,7 +1405,7 @@ function os(t) {
1368
1405
  }
1369
1406
  function Ts({ value: t, onChange: e, options: s, className: n, dropdownWidth: r }) {
1370
1407
  return /* @__PURE__ */ c(
1371
- Fe,
1408
+ Pe,
1372
1409
  {
1373
1410
  className: n,
1374
1411
  options: s,
@@ -1764,7 +1801,7 @@ const Ja = [
1764
1801
  }
1765
1802
  ],
1766
1803
  ["path", { d: "M21 15V5a2 2 0 0 0-2-2H9", key: "43el77" }]
1767
- ], Or = dn("image-off", Ja);
1804
+ ], Er = dn("image-off", Ja);
1768
1805
  const Ka = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], Qa = dn("loader-circle", Ka);
1769
1806
  const Xa = [
1770
1807
  ["path", { d: "M15 3h6v6", key: "1q9fwt" }],
@@ -1778,7 +1815,7 @@ function to(t) {
1778
1815
  const n = s.mediaUrl ?? s;
1779
1816
  return typeof n != "string" || !n.length ? null : { url: n, item: s };
1780
1817
  }
1781
- function Er({ record: t }) {
1818
+ function Or({ record: t }) {
1782
1819
  const e = ve(() => to(t), [t]), [s, n] = S(!1), [r, i] = S(!1), a = ve(
1783
1820
  () => t.bbox_xyxy ? [{ bbox_xyxy: t.bbox_xyxy, personName: t.personName }] : [],
1784
1821
  [t.bbox_xyxy, t.personName]
@@ -1797,7 +1834,7 @@ function Er({ record: t }) {
1797
1834
  className: "p-0 border-0 bg-transparent rounded-sm focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500 focus-visible:ring-offset-1 cursor-pointer disabled:cursor-not-allowed disabled:opacity-60",
1798
1835
  "aria-label": r ? "Preview unavailable" : "Expand preview",
1799
1836
  onClick: () => n(!0),
1800
- children: r ? /* @__PURE__ */ c("span", { className: `${d} flex items-center justify-center text-gray-400`, children: /* @__PURE__ */ c(Or, { size: 20, "aria-hidden": !0 }) }) : u ? /* @__PURE__ */ c(
1837
+ children: r ? /* @__PURE__ */ c("span", { className: `${d} flex items-center justify-center text-gray-400`, children: /* @__PURE__ */ c(Er, { size: 20, "aria-hidden": !0 }) }) : u ? /* @__PURE__ */ c(
1801
1838
  "video",
1802
1839
  {
1803
1840
  src: o,
@@ -1852,7 +1889,7 @@ function Mr({
1852
1889
  }, [r]);
1853
1890
  const [G, h] = S([
1854
1891
  { label: "All", value: "All" }
1855
- ]), [g, M] = S([]), [ie, ye] = S([]), [E, N] = S([]), [A, O] = S(/* @__PURE__ */ new Set()), { rules: T, alerts: D, config: L } = Ge(), _ = L.tenant === "schools", Y = L.tenant === "transit", j = so(x, 600), ce = _ && j.trim() ? 100 : s, me = {
1892
+ ]), [g, M] = S([]), [ie, ye] = S([]), [O, N] = S([]), [A, E] = S(/* @__PURE__ */ new Set()), { rules: T, alerts: D, config: L } = Ge(), _ = L.tenant === "schools", Y = L.tenant === "transit", j = so(x, 600), ce = _ && j.trim() ? 100 : s, me = {
1856
1893
  6: { title: "Email", kind: "icon", icon: /* @__PURE__ */ c(qi, {}) },
1857
1894
  7: { title: "SMS", kind: "icon", icon: /* @__PURE__ */ c(Gi, {}) }
1858
1895
  };
@@ -1879,15 +1916,15 @@ function Mr({
1879
1916
  let P = !0;
1880
1917
  return (async () => {
1881
1918
  try {
1882
- const W = await T.getLookups(), ue = (Array.isArray(W.thirdParties) ? W.thirdParties : []).map((Ne) => ({
1883
- label: Ne.thirdPartyName,
1884
- value: String(Ne.thirdPartyId)
1885
- })), be = (Array.isArray(W.anomalies) ? W.anomalies : []).map((Ne) => ({
1886
- label: Ne.anomalyName,
1887
- value: Ne.anomalyId
1888
- })), Me = (Array.isArray(W.severities) ? W.severities : []).map((Ne) => ({
1889
- label: Ne.severityName,
1890
- value: String(Ne.severityId)
1919
+ const W = await T.getLookups(), ue = (Array.isArray(W.thirdParties) ? W.thirdParties : []).map((we) => ({
1920
+ label: we.thirdPartyName,
1921
+ value: String(we.thirdPartyId)
1922
+ })), be = (Array.isArray(W.anomalies) ? W.anomalies : []).map((we) => ({
1923
+ label: we.anomalyName ?? we.DisplayName,
1924
+ value: we.anomalyId ?? we.AnomalyId
1925
+ })), Me = (Array.isArray(W.severities) ? W.severities : []).map((we) => ({
1926
+ label: we.severityName,
1927
+ value: String(we.severityId)
1891
1928
  }));
1892
1929
  P && (h([{ label: "All", value: "All" }, ...ue]), be.length && ye([{ label: "All Types", value: "All" }, ...be]), Me.length && N([{ label: "All levels", value: "All" }, ...Me]));
1893
1930
  } catch (W) {
@@ -1898,12 +1935,12 @@ function Mr({
1898
1935
  };
1899
1936
  }, [T]), oe(() => {
1900
1937
  if (!m) return;
1901
- const P = E.find((ge) => ge.value === y), W = {
1938
+ const P = O.find((ge) => ge.value === y), W = {
1902
1939
  anomalyId: ie.length > 1 && v !== "All" ? v : void 0,
1903
1940
  spaceId: !Y && g.length > 1 && b !== "All" ? b : void 0,
1904
1941
  spaceNumber: Y && g.length > 1 && b !== "All" ? b : void 0,
1905
- severityId: E.length > 1 && y !== "All" ? y : void 0,
1906
- severityName: E.length > 1 && y !== "All" ? P?.label : void 0,
1942
+ severityId: O.length > 1 && y !== "All" ? y : void 0,
1943
+ severityName: O.length > 1 && y !== "All" ? P?.label : void 0,
1907
1944
  thirdPartyIds: q === "All" ? void 0 : [Number(q)],
1908
1945
  searchText: j.trim() || void 0
1909
1946
  };
@@ -1916,11 +1953,11 @@ function Mr({
1916
1953
  j,
1917
1954
  ie.length,
1918
1955
  g.length,
1919
- E.length,
1956
+ O.length,
1920
1957
  Y,
1921
1958
  _
1922
1959
  ]);
1923
- const Ee = ie.length > 1 ? ie : void 0, te = g.length > 1 ? g : void 0, Se = E.length > 1 ? E : void 0, ke = [
1960
+ const Oe = ie.length > 1 ? ie : void 0, te = g.length > 1 ? g : void 0, Se = O.length > 1 ? O : void 0, ke = [
1924
1961
  {
1925
1962
  title: "Severity",
1926
1963
  dataIndex: "priority",
@@ -1959,25 +1996,25 @@ function Mr({
1959
1996
  width: 320,
1960
1997
  render: (P, W) => {
1961
1998
  if (a) return /* @__PURE__ */ c(rn, { children: a(W) });
1962
- const ge = async (We, Tt) => {
1963
- const bt = Cs(W.id, We);
1964
- O((xe) => new Set(xe).add(bt));
1999
+ const ge = async (Be, Tt) => {
2000
+ const bt = Cs(W.id, Be);
2001
+ E((xe) => new Set(xe).add(bt));
1965
2002
  try {
1966
- const xe = await D.sendSMSorEmailNotifications?.(W.id, We, Tt);
1967
- xe?.responseStatus || xe?.Success || xe?.success ? (Oe.success(
1968
- xe?.message || xe.data || (We ? "Email sent successfully" : "SMS sent successfully")
1969
- ), l?.()) : Oe.error(
2003
+ const xe = await D.sendSMSorEmailNotifications?.(W.id, Be, Tt);
2004
+ xe?.responseStatus || xe?.Success || xe?.success ? (Ee.success(
2005
+ xe?.message || xe.data || (Be ? "Email sent successfully" : "SMS sent successfully")
2006
+ ), l?.()) : Ee.error(
1970
2007
  xe?.message || xe?.data || xe?.errorMessage || "Failed to send notification"
1971
2008
  );
1972
2009
  } catch (xe) {
1973
- Oe.error(xe?.message || "Failed to send notification");
2010
+ Ee.error(xe?.message || "Failed to send notification");
1974
2011
  } finally {
1975
- O((xe) => {
2012
+ E((xe) => {
1976
2013
  const It = new Set(xe);
1977
2014
  return It.delete(bt), It;
1978
2015
  });
1979
2016
  }
1980
- }, ue = cn, Pe = un, be = me[ue], Ke = me[Pe], Me = Un(ue, W, be?.title), Ne = Un(Pe, W, Ke?.title), Pt = Cs(W.id, !0), pt = Cs(W.id, !1), Nt = os(ue) && A.has(Pt), nt = os(Pe) && A.has(pt);
2017
+ }, ue = cn, Ve = un, be = me[ue], Ke = me[Ve], Me = Un(ue, W, be?.title), we = Un(Ve, W, Ke?.title), Pt = Cs(W.id, !0), pt = Cs(W.id, !1), Nt = os(ue) && A.has(Pt), nt = os(Ve) && A.has(pt);
1981
2018
  return /* @__PURE__ */ f(st, { size: "middle", children: [
1982
2019
  /* @__PURE__ */ c(In, { title: Me.tooltipTitle, children: /* @__PURE__ */ c(
1983
2020
  ze,
@@ -1992,19 +2029,19 @@ function Mr({
1992
2029
  children: Me.buttonText
1993
2030
  }
1994
2031
  ) }, String(ue)),
1995
- /* @__PURE__ */ c(In, { title: Ne.tooltipTitle, children: /* @__PURE__ */ c(
2032
+ /* @__PURE__ */ c(In, { title: we.tooltipTitle, children: /* @__PURE__ */ c(
1996
2033
  ze,
1997
2034
  {
1998
2035
  size: "small",
1999
- disabled: Ne.isDisabled,
2036
+ disabled: we.isDisabled,
2000
2037
  loading: nt,
2001
- onClick: os(Pe) ? () => ge(!1, !0) : void 0,
2038
+ onClick: os(Ve) ? () => ge(!1, !0) : void 0,
2002
2039
  icon: !nt && Ke?.icon,
2003
2040
  className: "flex flex-col items-center justify-center gap-1",
2004
2041
  style: { height: "fit-content" },
2005
- children: Ne.buttonText
2042
+ children: we.buttonText
2006
2043
  }
2007
- ) }, String(Pe))
2044
+ ) }, String(Ve))
2008
2045
  ] });
2009
2046
  }
2010
2047
  },
@@ -2014,7 +2051,7 @@ function Mr({
2014
2051
  key: "timestamp",
2015
2052
  width: 220,
2016
2053
  render: (P, W) => {
2017
- const ge = W?.timeElapsed, ue = W?.timeRemaining, Pe = ge ? On(ge) : 0, be = ue ? On(ue) : 0, Ke = Math.round(Pe / (Pe + be) * 100);
2054
+ const ge = W?.timeElapsed, ue = W?.timeRemaining, Ve = ge ? En(ge) : 0, be = ue ? En(ue) : 0, Ke = Math.round(Ve / (Ve + be) * 100);
2018
2055
  return /* @__PURE__ */ f("div", { children: [
2019
2056
  /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
2020
2057
  /* @__PURE__ */ c("span", { className: "w-[70px]", children: "Elapsed:" }),
@@ -2065,7 +2102,7 @@ function Mr({
2065
2102
  key: "preview",
2066
2103
  width: 100,
2067
2104
  align: "center",
2068
- render: (P, W) => /* @__PURE__ */ c(Er, { record: W })
2105
+ render: (P, W) => /* @__PURE__ */ c(Or, { record: W })
2069
2106
  }
2070
2107
  ], pe = i && i.length ? i : ke;
2071
2108
  return /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(
@@ -2098,7 +2135,7 @@ function Mr({
2098
2135
  {
2099
2136
  value: v,
2100
2137
  onChange: k,
2101
- options: Ee
2138
+ options: Oe
2102
2139
  }
2103
2140
  )
2104
2141
  ] }) }),
@@ -2777,7 +2814,7 @@ class re {
2777
2814
  );
2778
2815
  }
2779
2816
  static create(e, s, n, r, i = !1) {
2780
- const a = e || Ae.defaultLocale, o = a || (i ? "en-US" : go()), l = s || Ae.defaultNumberingSystem, u = n || Ae.defaultOutputCalendar, m = en(r) || Ae.defaultWeekSettings;
2817
+ const a = e || Ne.defaultLocale, o = a || (i ? "en-US" : go()), l = s || Ne.defaultNumberingSystem, u = n || Ne.defaultOutputCalendar, m = en(r) || Ne.defaultWeekSettings;
2781
2818
  return new re(o, l, u, m, a);
2782
2819
  }
2783
2820
  static resetCache() {
@@ -2895,13 +2932,13 @@ class re {
2895
2932
  }
2896
2933
  }
2897
2934
  let Ls = null;
2898
- class $e extends Kt {
2935
+ class We extends Kt {
2899
2936
  /**
2900
2937
  * Get a singleton instance of UTC
2901
2938
  * @return {FixedOffsetZone}
2902
2939
  */
2903
2940
  static get utcInstance() {
2904
- return Ls === null && (Ls = new $e(0)), Ls;
2941
+ return Ls === null && (Ls = new We(0)), Ls;
2905
2942
  }
2906
2943
  /**
2907
2944
  * Get an instance with a specified offset
@@ -2909,7 +2946,7 @@ class $e extends Kt {
2909
2946
  * @return {FixedOffsetZone}
2910
2947
  */
2911
2948
  static instance(e) {
2912
- return e === 0 ? $e.utcInstance : new $e(e);
2949
+ return e === 0 ? We.utcInstance : new We(e);
2913
2950
  }
2914
2951
  /**
2915
2952
  * Get an instance of FixedOffsetZone from a UTC offset string, like "UTC+6"
@@ -2923,7 +2960,7 @@ class $e extends Kt {
2923
2960
  if (e) {
2924
2961
  const s = e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);
2925
2962
  if (s)
2926
- return new $e(xs(s[1], s[2]));
2963
+ return new We(xs(s[1], s[2]));
2927
2964
  }
2928
2965
  return null;
2929
2966
  }
@@ -3058,8 +3095,8 @@ function ht(t, e) {
3058
3095
  return t;
3059
3096
  if (Ro(t)) {
3060
3097
  const s = t.toLowerCase();
3061
- return s === "default" ? e : s === "local" || s === "system" ? bs.instance : s === "utc" || s === "gmt" ? $e.utcInstance : $e.parseSpecifier(s) || lt.create(t);
3062
- } else return yt(t) ? $e.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new xo(t);
3098
+ return s === "default" ? e : s === "local" || s === "system" ? bs.instance : s === "utc" || s === "gmt" ? We.utcInstance : We.parseSpecifier(s) || lt.create(t);
3099
+ } else return yt(t) ? We.instance(t) : typeof t == "object" && "offset" in t && typeof t.offset == "function" ? t : new xo(t);
3063
3100
  }
3064
3101
  const mn = {
3065
3102
  arab: "[٠-٩]",
@@ -3103,15 +3140,15 @@ const mn = {
3103
3140
  telu: [3174, 3183],
3104
3141
  thai: [3664, 3673],
3105
3142
  tibt: [3872, 3881]
3106
- }, Oo = mn.hanidec.replace(/[\[|\]]/g, "").split("");
3107
- function Eo(t) {
3143
+ }, Eo = mn.hanidec.replace(/[\[|\]]/g, "").split("");
3144
+ function Oo(t) {
3108
3145
  let e = parseInt(t, 10);
3109
3146
  if (isNaN(e)) {
3110
3147
  e = "";
3111
3148
  for (let s = 0; s < t.length; s++) {
3112
3149
  const n = t.charCodeAt(s);
3113
3150
  if (t[s].search(mn.hanidec) !== -1)
3114
- e += Oo.indexOf(t[s]);
3151
+ e += Eo.indexOf(t[s]);
3115
3152
  else
3116
3153
  for (const r in Wn) {
3117
3154
  const [i, a] = Wn[r];
@@ -3134,7 +3171,7 @@ function Qe({ numberingSystem: t }, e = "") {
3134
3171
  return r === void 0 && (r = new RegExp(`${mn[s]}${e}`), n.set(e, r)), r;
3135
3172
  }
3136
3173
  let Vn = () => Date.now(), Bn = "system", Zn = null, zn = null, Hn = null, Gn = 60, qn, Yn = null;
3137
- class Ae {
3174
+ class Ne {
3138
3175
  /**
3139
3176
  * Get the callback for returning the current timestamp.
3140
3177
  * @type {function}
@@ -3307,22 +3344,22 @@ function hn(t, e) {
3307
3344
  function vs(t, e = 4, s = 1) {
3308
3345
  const { year: n, month: r, day: i } = t, a = si(n, r, i), o = hn(fn(n, r, i), s);
3309
3346
  let l = Math.floor((a - o + 14 - e) / 7), u;
3310
- return l < 1 ? (u = n - 1, l = _t(u, e, s)) : l > _t(n, e, s) ? (u = n + 1, l = 1) : u = n, { weekYear: u, weekNumber: l, weekday: o, ...Os(t) };
3347
+ return l < 1 ? (u = n - 1, l = _t(u, e, s)) : l > _t(n, e, s) ? (u = n + 1, l = 1) : u = n, { weekYear: u, weekNumber: l, weekday: o, ...Es(t) };
3311
3348
  }
3312
3349
  function _n(t, e = 4, s = 1) {
3313
3350
  const { weekYear: n, weekNumber: r, weekday: i } = t, a = hn(fn(n, 1, e), s), o = Dt(n);
3314
3351
  let l = r * 7 + i - a - 7 + e, u;
3315
3352
  l < 1 ? (u = n - 1, l += Dt(u)) : l > o ? (u = n + 1, l -= Dt(n)) : u = n;
3316
3353
  const { month: m, day: d } = ni(u, l);
3317
- return { year: u, month: m, day: d, ...Os(t) };
3354
+ return { year: u, month: m, day: d, ...Es(t) };
3318
3355
  }
3319
3356
  function Fs(t) {
3320
3357
  const { year: e, month: s, day: n } = t, r = si(e, s, n);
3321
- return { year: e, ordinal: r, ...Os(t) };
3358
+ return { year: e, ordinal: r, ...Es(t) };
3322
3359
  }
3323
3360
  function jn(t) {
3324
3361
  const { year: e, ordinal: s } = t, { month: n, day: r } = ni(e, s);
3325
- return { year: e, month: n, day: r, ...Os(t) };
3362
+ return { year: e, month: n, day: r, ...Es(t) };
3326
3363
  }
3327
3364
  function Jn(t, e) {
3328
3365
  if (!$(t.localWeekday) || !$(t.localWeekNumber) || !$(t.localWeekYear)) {
@@ -3487,7 +3524,7 @@ function _t(t, e = 4, s = 1) {
3487
3524
  return (Dt(t) - n + r) / 7;
3488
3525
  }
3489
3526
  function tn(t) {
3490
- return t > 99 ? t : t > Ae.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
3527
+ return t > 99 ? t : t > Ne.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
3491
3528
  }
3492
3529
  function li(t, e, s, n = null) {
3493
3530
  const r = new Date(t), i = {
@@ -3537,7 +3574,7 @@ function Yt(t, e) {
3537
3574
  throw new RangeError(`Value format ${e} is out of range for property format`);
3538
3575
  }
3539
3576
  }
3540
- function Os(t) {
3577
+ function Es(t) {
3541
3578
  return Fo(t, ["hour", "minute", "second", "millisecond"]);
3542
3579
  }
3543
3580
  const Po = [
@@ -3980,7 +4017,7 @@ function $t(t, e) {
3980
4017
  }, null, e + 4];
3981
4018
  }
3982
4019
  function Xt(t, e) {
3983
- const s = !t[e] && !t[e + 1], n = xs(t[e + 1], t[e + 2]), r = s ? null : $e.instance(n);
4020
+ const s = !t[e] && !t[e + 1], n = xs(t[e + 1], t[e + 2]), r = s ? null : We.instance(n);
3984
4021
  return [{}, r, e + 3];
3985
4022
  }
3986
4023
  function es(t, e) {
@@ -4041,7 +4078,7 @@ function ul(t) {
4041
4078
  d
4042
4079
  ] = t, y = vn(e, r, n, s, i, a, o);
4043
4080
  let p;
4044
- return l ? p = ll[l] : u ? p = 0 : p = xs(m, d), [y, new $e(p)];
4081
+ return l ? p = ll[l] : u ? p = 0 : p = xs(m, d), [y, new We(p)];
4045
4082
  }
4046
4083
  function dl(t) {
4047
4084
  return t.replace(/\([^()]*\)|[\n\t]/g, " ").replace(/(\s\s+)/g, " ").trim();
@@ -4049,11 +4086,11 @@ function dl(t) {
4049
4086
  const ml = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/, fl = /^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/, hl = /^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;
4050
4087
  function er(t) {
4051
4088
  const [, e, s, n, r, i, a, o] = t;
4052
- return [vn(e, r, n, s, i, a, o), $e.utcInstance];
4089
+ return [vn(e, r, n, s, i, a, o), We.utcInstance];
4053
4090
  }
4054
4091
  function yl(t) {
4055
4092
  const [, e, s, n, r, i, a, o] = t;
4056
- return [vn(e, o, s, n, r, i, a), $e.utcInstance];
4093
+ return [vn(e, o, s, n, r, i, a), We.utcInstance];
4057
4094
  }
4058
4095
  const pl = Ut(Ko, Sn), gl = Ut(Qo, Sn), Sl = Ut(Xo, Sn), vl = Ut(wi), Ni = Lt(
4059
4096
  rl,
@@ -4099,10 +4136,10 @@ function kl(t) {
4099
4136
  return Ft(t, [al, ol]);
4100
4137
  }
4101
4138
  const xl = Lt($t);
4102
- function Ol(t) {
4139
+ function El(t) {
4103
4140
  return Ft(t, [il, xl]);
4104
4141
  }
4105
- const El = Ut(sl, nl), Ml = Ut(Ai), Dl = Lt(
4142
+ const Ol = Ut(sl, nl), Ml = Ut(Ai), Dl = Lt(
4106
4143
  $t,
4107
4144
  Xt,
4108
4145
  es
@@ -4110,7 +4147,7 @@ const El = Ut(sl, nl), Ml = Ut(Ai), Dl = Lt(
4110
4147
  function Cl(t) {
4111
4148
  return Ft(
4112
4149
  t,
4113
- [El, Ni],
4150
+ [Ol, Ni],
4114
4151
  [Ml, Dl]
4115
4152
  );
4116
4153
  }
@@ -4350,7 +4387,7 @@ class X {
4350
4387
  * @return {Duration}
4351
4388
  */
4352
4389
  static fromISOTime(e, s) {
4353
- const [n] = Ol(e);
4390
+ const [n] = El(e);
4354
4391
  return n ? X.fromObject(n, s) : X.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4355
4392
  }
4356
4393
  /**
@@ -4363,7 +4400,7 @@ class X {
4363
4400
  if (!e)
4364
4401
  throw new De("need to specify a reason the Duration is invalid");
4365
4402
  const n = e instanceof et ? e : new et(e, s);
4366
- if (Ae.throwOnInvalid)
4403
+ if (Ne.throwOnInvalid)
4367
4404
  throw new ao(n);
4368
4405
  return new X({ invalid: n });
4369
4406
  }
@@ -4839,12 +4876,12 @@ class X {
4839
4876
  }
4840
4877
  const xt = "Invalid Interval";
4841
4878
  function Fl(t, e) {
4842
- return !t || !t.isValid ? we.invalid("missing or invalid start") : !e || !e.isValid ? we.invalid("missing or invalid end") : e < t ? we.invalid(
4879
+ return !t || !t.isValid ? Ae.invalid("missing or invalid start") : !e || !e.isValid ? Ae.invalid("missing or invalid end") : e < t ? Ae.invalid(
4843
4880
  "end before start",
4844
4881
  `The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`
4845
4882
  ) : null;
4846
4883
  }
4847
- class we {
4884
+ class Ae {
4848
4885
  /**
4849
4886
  * @private
4850
4887
  */
@@ -4861,9 +4898,9 @@ class we {
4861
4898
  if (!e)
4862
4899
  throw new De("need to specify a reason the Interval is invalid");
4863
4900
  const n = e instanceof et ? e : new et(e, s);
4864
- if (Ae.throwOnInvalid)
4901
+ if (Ne.throwOnInvalid)
4865
4902
  throw new io(n);
4866
- return new we({ invalid: n });
4903
+ return new Ae({ invalid: n });
4867
4904
  }
4868
4905
  /**
4869
4906
  * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
@@ -4873,7 +4910,7 @@ class we {
4873
4910
  */
4874
4911
  static fromDateTimes(e, s) {
4875
4912
  const n = Bt(e), r = Bt(s), i = Fl(n, r);
4876
- return i ?? new we({
4913
+ return i ?? new Ae({
4877
4914
  start: n,
4878
4915
  end: r
4879
4916
  });
@@ -4886,7 +4923,7 @@ class we {
4886
4923
  */
4887
4924
  static after(e, s) {
4888
4925
  const n = X.fromDurationLike(s), r = Bt(e);
4889
- return we.fromDateTimes(r, r.plus(n));
4926
+ return Ae.fromDateTimes(r, r.plus(n));
4890
4927
  }
4891
4928
  /**
4892
4929
  * Create an Interval from an end DateTime and a Duration to extend backwards to.
@@ -4896,7 +4933,7 @@ class we {
4896
4933
  */
4897
4934
  static before(e, s) {
4898
4935
  const n = X.fromDurationLike(s), r = Bt(e);
4899
- return we.fromDateTimes(r.minus(n), r);
4936
+ return Ae.fromDateTimes(r.minus(n), r);
4900
4937
  }
4901
4938
  /**
4902
4939
  * Create an Interval from an ISO 8601 string.
@@ -4922,18 +4959,18 @@ class we {
4922
4959
  l = !1;
4923
4960
  }
4924
4961
  if (a && l)
4925
- return we.fromDateTimes(i, o);
4962
+ return Ae.fromDateTimes(i, o);
4926
4963
  if (a) {
4927
4964
  const u = X.fromISO(r, s);
4928
4965
  if (u.isValid)
4929
- return we.after(i, u);
4966
+ return Ae.after(i, u);
4930
4967
  } else if (l) {
4931
4968
  const u = X.fromISO(n, s);
4932
4969
  if (u.isValid)
4933
- return we.before(o, u);
4970
+ return Ae.before(o, u);
4934
4971
  }
4935
4972
  }
4936
- return we.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4973
+ return Ae.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4937
4974
  }
4938
4975
  /**
4939
4976
  * Check if an object is an Interval. Works across context boundaries
@@ -5056,7 +5093,7 @@ class we {
5056
5093
  * @return {Interval}
5057
5094
  */
5058
5095
  set({ start: e, end: s } = {}) {
5059
- return this.isValid ? we.fromDateTimes(e || this.s, s || this.e) : this;
5096
+ return this.isValid ? Ae.fromDateTimes(e || this.s, s || this.e) : this;
5060
5097
  }
5061
5098
  /**
5062
5099
  * Split this Interval at each of the specified DateTimes
@@ -5069,7 +5106,7 @@ class we {
5069
5106
  let { s: r } = this, i = 0;
5070
5107
  for (; r < this.e; ) {
5071
5108
  const a = s[i] || this.e, o = +a > +this.e ? this.e : a;
5072
- n.push(we.fromDateTimes(r, o)), r = o, i += 1;
5109
+ n.push(Ae.fromDateTimes(r, o)), r = o, i += 1;
5073
5110
  }
5074
5111
  return n;
5075
5112
  }
@@ -5087,7 +5124,7 @@ class we {
5087
5124
  const a = [];
5088
5125
  for (; n < this.e; ) {
5089
5126
  const o = this.start.plus(s.mapUnits((l) => l * r));
5090
- i = +o > +this.e ? this.e : o, a.push(we.fromDateTimes(n, i)), n = i, r += 1;
5127
+ i = +o > +this.e ? this.e : o, a.push(Ae.fromDateTimes(n, i)), n = i, r += 1;
5091
5128
  }
5092
5129
  return a;
5093
5130
  }
@@ -5149,7 +5186,7 @@ class we {
5149
5186
  intersection(e) {
5150
5187
  if (!this.isValid) return this;
5151
5188
  const s = this.s > e.s ? this.s : e.s, n = this.e < e.e ? this.e : e.e;
5152
- return s >= n ? null : we.fromDateTimes(s, n);
5189
+ return s >= n ? null : Ae.fromDateTimes(s, n);
5153
5190
  }
5154
5191
  /**
5155
5192
  * Return an Interval representing the union of this Interval and the specified Interval.
@@ -5160,7 +5197,7 @@ class we {
5160
5197
  union(e) {
5161
5198
  if (!this.isValid) return this;
5162
5199
  const s = this.s < e.s ? this.s : e.s, n = this.e > e.e ? this.e : e.e;
5163
- return we.fromDateTimes(s, n);
5200
+ return Ae.fromDateTimes(s, n);
5164
5201
  }
5165
5202
  /**
5166
5203
  * Merge an array of Intervals into an equivalent minimal set of Intervals.
@@ -5190,8 +5227,8 @@ class we {
5190
5227
  { time: l.e, type: "e" }
5191
5228
  ]), a = Array.prototype.concat(...i), o = a.sort((l, u) => l.time - u.time);
5192
5229
  for (const l of o)
5193
- n += l.type === "s" ? 1 : -1, n === 1 ? s = l.time : (s && +s != +l.time && r.push(we.fromDateTimes(s, l.time)), s = null);
5194
- return we.merge(r);
5230
+ n += l.type === "s" ? 1 : -1, n === 1 ? s = l.time : (s && +s != +l.time && r.push(Ae.fromDateTimes(s, l.time)), s = null);
5231
+ return Ae.merge(r);
5195
5232
  }
5196
5233
  /**
5197
5234
  * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
@@ -5199,7 +5236,7 @@ class we {
5199
5236
  * @return {Array}
5200
5237
  */
5201
5238
  difference(...e) {
5202
- return we.xor([this].concat(e)).map((s) => this.intersection(s)).filter((s) => s && !s.isEmpty());
5239
+ return Ae.xor([this].concat(e)).map((s) => this.intersection(s)).filter((s) => s && !s.isEmpty());
5203
5240
  }
5204
5241
  /**
5205
5242
  * Returns a string representation of this Interval appropriate for debugging.
@@ -5301,7 +5338,7 @@ class we {
5301
5338
  * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
5302
5339
  */
5303
5340
  mapEndpoints(e) {
5304
- return we.fromDateTimes(e(this.s), e(this.e));
5341
+ return Ae.fromDateTimes(e(this.s), e(this.e));
5305
5342
  }
5306
5343
  }
5307
5344
  class cs {
@@ -5310,7 +5347,7 @@ class cs {
5310
5347
  * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
5311
5348
  * @return {boolean}
5312
5349
  */
5313
- static hasDST(e = Ae.defaultZone) {
5350
+ static hasDST(e = Ne.defaultZone) {
5314
5351
  const s = F.now().setZone(e).set({ month: 12 });
5315
5352
  return !e.isUniversal && s.offset !== s.set({ month: 6 }).offset;
5316
5353
  }
@@ -5337,7 +5374,7 @@ class cs {
5337
5374
  * @return {Zone}
5338
5375
  */
5339
5376
  static normalizeZone(e) {
5340
- return ht(e, Ae.defaultZone);
5377
+ return ht(e, Ne.defaultZone);
5341
5378
  }
5342
5379
  /**
5343
5380
  * Get the weekday on which the week starts according to the given locale.
@@ -5509,7 +5546,7 @@ function Pl(t, e, s, n) {
5509
5546
  }
5510
5547
  const Wl = "missing Intl.DateTimeFormat.formatToParts support";
5511
5548
  function ee(t, e = (s) => s) {
5512
- return { regex: t, deser: ([s]) => e(Eo(s)) };
5549
+ return { regex: t, deser: ([s]) => e(Oo(s)) };
5513
5550
  }
5514
5551
  const Vl = " ", Ii = `[ ${Vl}]`, ki = new RegExp(Ii, "g");
5515
5552
  function Bl(t) {
@@ -5772,7 +5809,7 @@ function _l(t) {
5772
5809
  }
5773
5810
  };
5774
5811
  let s = null, n;
5775
- return $(t.z) || (s = lt.create(t.z)), $(t.Z) || (s || (s = new $e(t.Z)), n = t.Z), $(t.q) || (t.M = (t.q - 1) * 3 + 1), $(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), $(t.u) || (t.S = yn(t.u)), [Object.keys(t).reduce((i, a) => {
5812
+ return $(t.z) || (s = lt.create(t.z)), $(t.Z) || (s || (s = new We(t.Z)), n = t.Z), $(t.q) || (t.M = (t.q - 1) * 3 + 1), $(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), $(t.u) || (t.S = yn(t.u)), [Object.keys(t).reduce((i, a) => {
5776
5813
  const o = e(a);
5777
5814
  return o && (i[o] = t[a]), i;
5778
5815
  }, {}), s, n];
@@ -5790,7 +5827,7 @@ function Jl(t, e) {
5790
5827
  function xi(t, e) {
5791
5828
  return Array.prototype.concat(...t.map((s) => Jl(s, e)));
5792
5829
  }
5793
- class Oi {
5830
+ class Ei {
5794
5831
  constructor(e, s) {
5795
5832
  if (this.locale = e, this.format = s, this.tokens = xi(Ce.parseFormat(s), e), this.units = this.tokens.map((n) => zl(n, e)), this.disqualifyingUnit = this.units.find((n) => n.invalidReason), !this.disqualifyingUnit) {
5796
5833
  const [n, r] = ql(this.units);
@@ -5824,11 +5861,11 @@ class Oi {
5824
5861
  return this.disqualifyingUnit ? this.disqualifyingUnit.invalidReason : null;
5825
5862
  }
5826
5863
  }
5827
- function Ei(t, e, s) {
5828
- return new Oi(t, s).explainFromTokens(e);
5864
+ function Oi(t, e, s) {
5865
+ return new Ei(t, s).explainFromTokens(e);
5829
5866
  }
5830
5867
  function Kl(t, e, s) {
5831
- const { result: n, zone: r, specificOffset: i, invalidReason: a } = Ei(t, e, s);
5868
+ const { result: n, zone: r, specificOffset: i, invalidReason: a } = Oi(t, e, s);
5832
5869
  return [n, r, i, a];
5833
5870
  }
5834
5871
  function Mi(t, e) {
@@ -5907,7 +5944,7 @@ function lr(t, e) {
5907
5944
  let [l, u] = Di(o, s, t.zone);
5908
5945
  return a !== 0 && (l += a, u = t.zone.offset(l)), { ts: l, o: u };
5909
5946
  }
5910
- function Ot(t, e, s, n, r, i) {
5947
+ function Et(t, e, s, n, r, i) {
5911
5948
  const { setZone: a, zone: o } = s;
5912
5949
  if (t && Object.keys(t).length !== 0 || e) {
5913
5950
  const l = e || o, u = F.fromObject(t, {
@@ -6033,20 +6070,20 @@ function ur(t) {
6033
6070
  }
6034
6071
  }
6035
6072
  function sc(t) {
6036
- if (qt === void 0 && (qt = Ae.now()), t.type !== "iana")
6073
+ if (qt === void 0 && (qt = Ne.now()), t.type !== "iana")
6037
6074
  return t.offset(qt);
6038
6075
  const e = t.name;
6039
6076
  let s = sn.get(e);
6040
6077
  return s === void 0 && (s = t.offset(qt), sn.set(e, s)), s;
6041
6078
  }
6042
6079
  function dr(t, e) {
6043
- const s = ht(e.zone, Ae.defaultZone);
6080
+ const s = ht(e.zone, Ne.defaultZone);
6044
6081
  if (!s.isValid)
6045
6082
  return F.invalid(Gt(s));
6046
6083
  const n = re.fromObject(e);
6047
6084
  let r, i;
6048
6085
  if ($(t.year))
6049
- r = Ae.now();
6086
+ r = Ne.now();
6050
6087
  else {
6051
6088
  for (const l of ps)
6052
6089
  $(t[l]) && (t[l] = Ci[l]);
@@ -6080,9 +6117,9 @@ class F {
6080
6117
  * @access private
6081
6118
  */
6082
6119
  constructor(e) {
6083
- const s = e.zone || Ae.defaultZone;
6120
+ const s = e.zone || Ne.defaultZone;
6084
6121
  let n = e.invalid || (Number.isNaN(e.ts) ? new et("invalid input") : null) || (s.isValid ? null : Gt(s));
6085
- this.ts = $(e.ts) ? Ae.now() : e.ts;
6122
+ this.ts = $(e.ts) ? Ne.now() : e.ts;
6086
6123
  let r = null, i = null;
6087
6124
  if (!n)
6088
6125
  if (e.old && e.old.ts === this.ts && e.old.zone.equals(s))
@@ -6156,7 +6193,7 @@ class F {
6156
6193
  */
6157
6194
  static utc() {
6158
6195
  const [e, s] = fr(arguments), [n, r, i, a, o, l, u] = s;
6159
- return e.zone = $e.utcInstance, dr({ year: n, month: r, day: i, hour: a, minute: o, second: l, millisecond: u }, e);
6196
+ return e.zone = We.utcInstance, dr({ year: n, month: r, day: i, hour: a, minute: o, second: l, millisecond: u }, e);
6160
6197
  }
6161
6198
  /**
6162
6199
  * Create a DateTime from a JavaScript Date object. Uses the default zone.
@@ -6169,7 +6206,7 @@ class F {
6169
6206
  const n = Uo(e) ? e.valueOf() : NaN;
6170
6207
  if (Number.isNaN(n))
6171
6208
  return F.invalid("invalid input");
6172
- const r = ht(s.zone, Ae.defaultZone);
6209
+ const r = ht(s.zone, Ne.defaultZone);
6173
6210
  return r.isValid ? new F({
6174
6211
  ts: n,
6175
6212
  zone: r,
@@ -6191,7 +6228,7 @@ class F {
6191
6228
  if (yt(e))
6192
6229
  return e < -or || e > or ? F.invalid("Timestamp out of range") : new F({
6193
6230
  ts: e,
6194
- zone: ht(s.zone, Ae.defaultZone),
6231
+ zone: ht(s.zone, Ne.defaultZone),
6195
6232
  loc: re.fromObject(s)
6196
6233
  });
6197
6234
  throw new De(
@@ -6213,7 +6250,7 @@ class F {
6213
6250
  if (yt(e))
6214
6251
  return new F({
6215
6252
  ts: e * 1e3,
6216
- zone: ht(s.zone, Ae.defaultZone),
6253
+ zone: ht(s.zone, Ne.defaultZone),
6217
6254
  loc: re.fromObject(s)
6218
6255
  });
6219
6256
  throw new De("fromSeconds requires a numerical input");
@@ -6253,10 +6290,10 @@ class F {
6253
6290
  */
6254
6291
  static fromObject(e, s = {}) {
6255
6292
  e = e || {};
6256
- const n = ht(s.zone, Ae.defaultZone);
6293
+ const n = ht(s.zone, Ne.defaultZone);
6257
6294
  if (!n.isValid)
6258
6295
  return F.invalid(Gt(n));
6259
- const r = re.fromObject(s), i = As(e, ur), { minDaysInFirstWeek: a, startOfWeek: o } = Jn(i, r), l = Ae.now(), u = $(s.specificOffset) ? n.offset(l) : s.specificOffset, m = !$(i.ordinal), d = !$(i.year), y = !$(i.month) || !$(i.day), p = d || y, v = i.weekYear || i.weekNumber;
6296
+ const r = re.fromObject(s), i = As(e, ur), { minDaysInFirstWeek: a, startOfWeek: o } = Jn(i, r), l = Ne.now(), u = $(s.specificOffset) ? n.offset(l) : s.specificOffset, m = !$(i.ordinal), d = !$(i.year), y = !$(i.month) || !$(i.day), p = d || y, v = i.weekYear || i.weekNumber;
6260
6297
  if ((p || m) && v)
6261
6298
  throw new Mt(
6262
6299
  "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
@@ -6304,7 +6341,7 @@ class F {
6304
6341
  */
6305
6342
  static fromISO(e, s = {}) {
6306
6343
  const [n, r] = Tl(e);
6307
- return Ot(n, r, s, "ISO 8601", e);
6344
+ return Et(n, r, s, "ISO 8601", e);
6308
6345
  }
6309
6346
  /**
6310
6347
  * Create a DateTime from an RFC 2822 string
@@ -6323,7 +6360,7 @@ class F {
6323
6360
  */
6324
6361
  static fromRFC2822(e, s = {}) {
6325
6362
  const [n, r] = bl(e);
6326
- return Ot(n, r, s, "RFC 2822", e);
6363
+ return Et(n, r, s, "RFC 2822", e);
6327
6364
  }
6328
6365
  /**
6329
6366
  * Create a DateTime from an HTTP header date
@@ -6343,7 +6380,7 @@ class F {
6343
6380
  */
6344
6381
  static fromHTTP(e, s = {}) {
6345
6382
  const [n, r] = Il(e);
6346
- return Ot(n, r, s, "HTTP", s);
6383
+ return Et(n, r, s, "HTTP", s);
6347
6384
  }
6348
6385
  /**
6349
6386
  * Create a DateTime from an input string and format string.
@@ -6367,7 +6404,7 @@ class F {
6367
6404
  numberingSystem: i,
6368
6405
  defaultToEN: !0
6369
6406
  }), [o, l, u, m] = Kl(a, e, s);
6370
- return m ? F.invalid(m) : Ot(o, l, n, `format ${s}`, e, u);
6407
+ return m ? F.invalid(m) : Et(o, l, n, `format ${s}`, e, u);
6371
6408
  }
6372
6409
  /**
6373
6410
  * @deprecated use fromFormat instead
@@ -6398,7 +6435,7 @@ class F {
6398
6435
  */
6399
6436
  static fromSQL(e, s = {}) {
6400
6437
  const [n, r] = Cl(e);
6401
- return Ot(n, r, s, "SQL", e);
6438
+ return Et(n, r, s, "SQL", e);
6402
6439
  }
6403
6440
  /**
6404
6441
  * Create an invalid DateTime.
@@ -6410,7 +6447,7 @@ class F {
6410
6447
  if (!e)
6411
6448
  throw new De("need to specify a reason the DateTime is invalid");
6412
6449
  const n = e instanceof et ? e : new et(e, s);
6413
- if (Ae.throwOnInvalid)
6450
+ if (Ne.throwOnInvalid)
6414
6451
  throw new ro(n);
6415
6452
  return new F({ invalid: n });
6416
6453
  }
@@ -6820,7 +6857,7 @@ class F {
6820
6857
  * @return {DateTime}
6821
6858
  */
6822
6859
  toUTC(e = 0, s = {}) {
6823
- return this.setZone($e.instance(e), s);
6860
+ return this.setZone(We.instance(e), s);
6824
6861
  }
6825
6862
  /**
6826
6863
  * "Set" the DateTime's zone to the host's local zone. Returns a newly-constructed DateTime.
@@ -6829,7 +6866,7 @@ class F {
6829
6866
  * @return {DateTime}
6830
6867
  */
6831
6868
  toLocal() {
6832
- return this.setZone(Ae.defaultZone);
6869
+ return this.setZone(Ne.defaultZone);
6833
6870
  }
6834
6871
  /**
6835
6872
  * "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
@@ -6841,7 +6878,7 @@ class F {
6841
6878
  * @return {DateTime}
6842
6879
  */
6843
6880
  setZone(e, { keepLocalTime: s = !1, keepCalendarTime: n = !1 } = {}) {
6844
- if (e = ht(e, Ae.defaultZone), e.equals(this.zone))
6881
+ if (e = ht(e, Ne.defaultZone), e.equals(this.zone))
6845
6882
  return this;
6846
6883
  if (e.isValid) {
6847
6884
  let r = this.ts;
@@ -7320,7 +7357,7 @@ class F {
7320
7357
  * @return {Interval|DateTime}
7321
7358
  */
7322
7359
  until(e) {
7323
- return this.isValid ? we.fromDateTimes(this, e) : this;
7360
+ return this.isValid ? Ae.fromDateTimes(this, e) : this;
7324
7361
  }
7325
7362
  /**
7326
7363
  * Return whether this DateTime is in the same unit of time as another DateTime.
@@ -7433,7 +7470,7 @@ class F {
7433
7470
  numberingSystem: i,
7434
7471
  defaultToEN: !0
7435
7472
  });
7436
- return Ei(a, e, s);
7473
+ return Oi(a, e, s);
7437
7474
  }
7438
7475
  /**
7439
7476
  * @deprecated use fromFormatExplain instead
@@ -7459,7 +7496,7 @@ class F {
7459
7496
  numberingSystem: r,
7460
7497
  defaultToEN: !0
7461
7498
  });
7462
- return new Oi(i, e);
7499
+ return new Ei(i, e);
7463
7500
  }
7464
7501
  /**
7465
7502
  * Create a DateTime from an input string and format parser.
@@ -7486,7 +7523,7 @@ class F {
7486
7523
  `fromFormatParser called with a locale of ${a}, but the format parser was created for ${s.locale}`
7487
7524
  );
7488
7525
  const { result: o, zone: l, specificOffset: u, invalidReason: m } = s.explainFromTokens(e);
7489
- return m ? F.invalid(m) : Ot(
7526
+ return m ? F.invalid(m) : Et(
7490
7527
  o,
7491
7528
  l,
7492
7529
  n,
@@ -7730,13 +7767,13 @@ function lc({
7730
7767
  });
7731
7768
  if (b?.responseStatus || b?.Success) {
7732
7769
  const B = b?.Message || b?.data || "Alert reopened successfully.";
7733
- Oe.success(B);
7770
+ Ee.success(B);
7734
7771
  } else {
7735
7772
  const B = b?.errorMessage || b?.Message || "Failed to reopen alert";
7736
- Oe.error(B);
7773
+ Ee.error(B);
7737
7774
  }
7738
7775
  } catch {
7739
- Oe.error("Failed to reopen alert. Please try again.");
7776
+ Ee.error("Failed to reopen alert. Please try again.");
7740
7777
  }
7741
7778
  }, p = [
7742
7779
  {
@@ -7792,7 +7829,7 @@ function lc({
7792
7829
  key: "preview",
7793
7830
  width: 100,
7794
7831
  align: "center",
7795
- render: (k, b) => /* @__PURE__ */ c(Er, { record: b })
7832
+ render: (k, b) => /* @__PURE__ */ c(Or, { record: b })
7796
7833
  },
7797
7834
  {
7798
7835
  title: "",
@@ -7814,8 +7851,8 @@ function lc({
7814
7851
  )
7815
7852
  }
7816
7853
  ], v = o ? t : (t || []).filter((k) => {
7817
- const b = En(k.statusType || "");
7818
- return no.some((B) => b.includes(En(B)));
7854
+ const b = On(k.statusType || "");
7855
+ return no.some((B) => b.includes(On(B)));
7819
7856
  });
7820
7857
  return /* @__PURE__ */ c(
7821
7858
  Mr,
@@ -7995,7 +8032,7 @@ function mc({ sortBy: t, onChange: e, showActions: s, onSave: n, onClear: r, sav
7995
8032
  /* @__PURE__ */ c(K, { xs: 24, md: 8, lg: 5, children: /* @__PURE__ */ f(st, { className: "w-full items-center", direction: "horizontal", size: 12, children: [
7996
8033
  /* @__PURE__ */ c(dc, { className: "text-gray-600 whitespace-nowrap", children: "Sort By:" }),
7997
8034
  /* @__PURE__ */ c(
7998
- Fe,
8035
+ Pe,
7999
8036
  {
8000
8037
  placeholder: "By Severity",
8001
8038
  value: t,
@@ -8054,13 +8091,13 @@ function fc(t) {
8054
8091
  onSave: M,
8055
8092
  saving: ie,
8056
8093
  onActionTypesLoaded: ye
8057
- } = t, { rules: E, config: N } = Ge(), A = N.tenant === "schools", [O, T] = S([]), [D, L] = S([]), [_, Y] = S(!1);
8094
+ } = t, { rules: O, config: N } = Ge(), A = N.tenant === "schools", [E, T] = S([]), [D, L] = S([]), [_, Y] = S(!1);
8058
8095
  oe(() => {
8059
8096
  let te = !1;
8060
8097
  return (async () => {
8061
8098
  try {
8062
8099
  Y(!0);
8063
- const Se = await E.getLookups();
8100
+ const Se = await O.getLookups();
8064
8101
  if (te || !Se || !Array.isArray(Se.actionTypes)) return;
8065
8102
  const ke = Se.actionTypes.map((P) => ({ label: P.name, value: String(P.actionTypeId) }));
8066
8103
  T(ke), ye && ye(Se.actionTypes);
@@ -8081,7 +8118,7 @@ function fc(t) {
8081
8118
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, lg: 4, children: /* @__PURE__ */ f("div", { children: [
8082
8119
  /* @__PURE__ */ c(ot, { className: "text-gray-700 font-medium block mb-1", children: "Rules" }),
8083
8120
  /* @__PURE__ */ c(
8084
- Fe,
8121
+ Pe,
8085
8122
  {
8086
8123
  placeholder: "Rules",
8087
8124
  value: e,
@@ -8098,7 +8135,7 @@ function fc(t) {
8098
8135
  ] }),
8099
8136
  /* @__PURE__ */ f(Ze, { gutter: 8, children: [
8100
8137
  /* @__PURE__ */ c(K, { span: 10, children: /* @__PURE__ */ c(
8101
- Fe,
8138
+ Pe,
8102
8139
  {
8103
8140
  className: "w-full",
8104
8141
  placeholder: "Mins",
@@ -8108,7 +8145,7 @@ function fc(t) {
8108
8145
  }
8109
8146
  ) }),
8110
8147
  /* @__PURE__ */ c(K, { span: 14, children: /* @__PURE__ */ c(
8111
- Fe,
8148
+ Pe,
8112
8149
  {
8113
8150
  placeholder: "Escalate to",
8114
8151
  className: "w-full",
@@ -8126,7 +8163,7 @@ function fc(t) {
8126
8163
  ] }),
8127
8164
  /* @__PURE__ */ f(Ze, { gutter: 8, children: [
8128
8165
  /* @__PURE__ */ c(K, { span: 10, children: /* @__PURE__ */ c(
8129
- Fe,
8166
+ Pe,
8130
8167
  {
8131
8168
  className: "w-full",
8132
8169
  placeholder: "Mins",
@@ -8136,7 +8173,7 @@ function fc(t) {
8136
8173
  }
8137
8174
  ) }),
8138
8175
  /* @__PURE__ */ c(K, { span: 14, children: /* @__PURE__ */ c(
8139
- Fe,
8176
+ Pe,
8140
8177
  {
8141
8178
  placeholder: "Escalate to",
8142
8179
  className: "w-full",
@@ -8154,7 +8191,7 @@ function fc(t) {
8154
8191
  ] }),
8155
8192
  /* @__PURE__ */ f(Ze, { gutter: 8, children: [
8156
8193
  /* @__PURE__ */ c(K, { span: 10, children: /* @__PURE__ */ c(
8157
- Fe,
8194
+ Pe,
8158
8195
  {
8159
8196
  className: "w-full",
8160
8197
  placeholder: "Mins",
@@ -8164,7 +8201,7 @@ function fc(t) {
8164
8201
  }
8165
8202
  ) }),
8166
8203
  /* @__PURE__ */ c(K, { span: 14, children: /* @__PURE__ */ c(
8167
- Fe,
8204
+ Pe,
8168
8205
  {
8169
8206
  placeholder: "Escalate to",
8170
8207
  className: "w-full",
@@ -8178,14 +8215,14 @@ function fc(t) {
8178
8215
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, lg: 4, children: /* @__PURE__ */ f("div", { children: [
8179
8216
  /* @__PURE__ */ c(ot, { className: "text-gray-700 font-medium block mb-1", children: "Pick Actions" }),
8180
8217
  /* @__PURE__ */ c(
8181
- Fe,
8218
+ Pe,
8182
8219
  {
8183
8220
  mode: "multiple",
8184
8221
  placeholder: "Select response actions",
8185
8222
  className: "w-full",
8186
8223
  value: q,
8187
8224
  onChange: Q,
8188
- options: O,
8225
+ options: E,
8189
8226
  maxTagCount: 1,
8190
8227
  maxTagPlaceholder: nn
8191
8228
  }
@@ -8194,7 +8231,7 @@ function fc(t) {
8194
8231
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, lg: 4, children: /* @__PURE__ */ f("div", { children: [
8195
8232
  /* @__PURE__ */ c(ot, { className: "text-gray-700 font-medium block mb-1", children: "Notify" }),
8196
8233
  /* @__PURE__ */ c(
8197
- Fe,
8234
+ Pe,
8198
8235
  {
8199
8236
  mode: "multiple",
8200
8237
  placeholder: "Notify",
@@ -8210,8 +8247,8 @@ function fc(t) {
8210
8247
  ] }),
8211
8248
  /* @__PURE__ */ f(Ze, { gutter: [16, 16], align: "bottom", className: "mt-4 items-center", children: [
8212
8249
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, lg: 7, children: /* @__PURE__ */ f("div", { className: "flex items-center h-full gap-8", children: [
8213
- !A && /* @__PURE__ */ c(Et, { checked: Z, onChange: (te) => R(te.target.checked), className: "w-full", children: "Human-In-The-Loop" }),
8214
- /* @__PURE__ */ c(Et, { checked: G, onChange: (te) => h(te.target.checked), className: "w-full", children: "Auto-expire in 5 minutes" })
8250
+ !A && /* @__PURE__ */ c(Ot, { checked: Z, onChange: (te) => R(te.target.checked), className: "w-full", children: "Human-In-The-Loop" }),
8251
+ /* @__PURE__ */ c(Ot, { checked: G, onChange: (te) => h(te.target.checked), className: "w-full", children: "Auto-expire in 5 minutes" })
8215
8252
  ] }) }),
8216
8253
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, children: /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
8217
8254
  /* @__PURE__ */ c(ze, { onClick: g, children: "Clear" }),
@@ -8342,7 +8379,7 @@ function pc({ userRoles: t, rules: e, rawRules: s }) {
8342
8379
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, lg: 6, children: /* @__PURE__ */ f("div", { children: [
8343
8380
  /* @__PURE__ */ c(Zs, { className: "text-gray-700 font-medium block mb-1", children: "Rules" }),
8344
8381
  /* @__PURE__ */ c(
8345
- Fe,
8382
+ Pe,
8346
8383
  {
8347
8384
  placeholder: "Rules",
8348
8385
  value: m,
@@ -8355,7 +8392,7 @@ function pc({ userRoles: t, rules: e, rawRules: s }) {
8355
8392
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, lg: 8, children: /* @__PURE__ */ f("div", { children: [
8356
8393
  /* @__PURE__ */ c(Zs, { className: "text-gray-700 font-medium block mb-1", children: "Alert Notification To" }),
8357
8394
  /* @__PURE__ */ c(
8358
- Fe,
8395
+ Pe,
8359
8396
  {
8360
8397
  mode: "multiple",
8361
8398
  placeholder: "Select roles",
@@ -8378,7 +8415,7 @@ function pc({ userRoles: t, rules: e, rawRules: s }) {
8378
8415
  type: "primary",
8379
8416
  onClick: async () => {
8380
8417
  if (!m) {
8381
- Oe.info("Please select a rule");
8418
+ Ee.info("Please select a rule");
8382
8419
  return;
8383
8420
  }
8384
8421
  try {
@@ -8398,9 +8435,9 @@ function pc({ userRoles: t, rules: e, rawRules: s }) {
8398
8435
  userRoles: Z
8399
8436
  }, G = await n.updateRule(C, R);
8400
8437
  if (!G?.responseStatus && !G?.Success && !G?.success)
8401
- Oe.error(G?.errorMessage || G?.Message || "Error saving Alert Assignment");
8438
+ Ee.error(G?.errorMessage || G?.Message || "Error saving Alert Assignment");
8402
8439
  else {
8403
- Oe.success("Alert assignment saved"), d(void 0), p([]);
8440
+ Ee.success("Alert assignment saved"), d(void 0), p([]);
8404
8441
  try {
8405
8442
  const h = await n.getRules();
8406
8443
  u(Array.isArray(h) ? h : []);
@@ -8409,7 +8446,7 @@ function pc({ userRoles: t, rules: e, rawRules: s }) {
8409
8446
  }
8410
8447
  }
8411
8448
  } catch (x) {
8412
- console.error("Failed to save alert assignment", x), Oe.error(x instanceof Error ? x.message : "Error saving Alert Assignment");
8449
+ console.error("Failed to save alert assignment", x), Ee.error(x instanceof Error ? x.message : "Error saving Alert Assignment");
8413
8450
  } finally {
8414
8451
  o(!1);
8415
8452
  }
@@ -8467,14 +8504,14 @@ function zs(t) {
8467
8504
  };
8468
8505
  }
8469
8506
  function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules: r, onSave: i }) {
8470
- const { rules: a, alerts: o } = Ge(), [l, u] = S("By Severity"), [m, d] = S("By severity"), [y, p] = S("By Severity"), [v, k] = S(!1), [b, B] = S(!1), [q, Q] = S(!1), [x, C] = S(null), [Z, R] = S("rules"), [G, h] = S(), [g, M] = S(), [ie, ye] = S(), [E, N] = S(), [A, O] = S(), [T, D] = S(), [L, _] = S(), [Y, j] = S(), [ce, me] = S([]), [Ee, te] = S([]), [Se, ke] = S(!1), [pe, P] = S(!1), [W, ge] = S({}), [ue, Pe] = S({}), [be, Ke] = S(s || []), [Me, Ne] = S([]), [Pt, pt] = S(!1), [Nt, nt] = S(!1), [We, Tt] = S(n || []);
8507
+ const { rules: a, alerts: o } = Ge(), [l, u] = S("By Severity"), [m, d] = S("By severity"), [y, p] = S("By Severity"), [v, k] = S(!1), [b, B] = S(!1), [q, Q] = S(!1), [x, C] = S(null), [Z, R] = S("rules"), [G, h] = S(), [g, M] = S(), [ie, ye] = S(), [O, N] = S(), [A, E] = S(), [T, D] = S(), [L, _] = S(), [Y, j] = S(), [ce, me] = S([]), [Oe, te] = S([]), [Se, ke] = S(!1), [pe, P] = S(!1), [W, ge] = S({}), [ue, Ve] = S({}), [be, Ke] = S(s || []), [Me, we] = S([]), [Pt, pt] = S(!1), [Nt, nt] = S(!1), [Be, Tt] = S(n || []);
8471
8508
  oe(() => {
8472
8509
  n && n.length && Tt(n);
8473
8510
  }, [n]), oe(() => {
8474
- if (!We || !We.length) return;
8511
+ if (!Be || !Be.length) return;
8475
8512
  const U = Object.keys(W).length > 0 || Object.keys(ue).length > 0;
8476
8513
  if (Me.length && !U) return;
8477
- const se = We.map((J, V) => {
8514
+ const se = Be.map((J, V) => {
8478
8515
  const de = e.find((le) => le.RuleId === (J.ruleId || J.ruleName))?.Name || J.ruleName || J.Name || "-", z = zs(J.escalationSettings), ne = typeof z.level1UserRoleId == "number" && z.level1UserRoleId > 0 ? [z.level1UserRoleId] : [], rt = typeof z.level2UserRoleId == "number" && z.level2UserRoleId > 0 ? [z.level2UserRoleId] : [], ss = typeof z.level3UserRoleId == "number" && z.level3UserRoleId > 0 ? [z.level3UserRoleId] : [], H = (Array.isArray(z.escalationSettingsActionTypeIds) ? z.escalationSettingsActionTypeIds : []).map((le) => W[le] || String(le)), Ie = (Array.isArray(z.thirdPartyId) ? z.thirdPartyId : []).map((le) => ue[le] || String(le)), Re = typeof z.humanLoop == "boolean" ? z.humanLoop : null, fe = typeof z.isAutoExpire == "boolean" ? z.isAutoExpire : null;
8479
8516
  return {
8480
8517
  id: String(J.ruleId || J.ruleName || V),
@@ -8488,8 +8525,8 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8488
8525
  isAutoExpire: fe
8489
8526
  };
8490
8527
  });
8491
- Ne(se);
8492
- }, [We, e, W, ue]);
8528
+ we(se);
8529
+ }, [Be, e, W, ue]);
8493
8530
  const bt = ve(
8494
8531
  () => t.map((U) => ({ label: U.DisplayName, value: U.SeverityId })),
8495
8532
  [t]
@@ -8499,7 +8536,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8499
8536
  ), It = ve(
8500
8537
  () => be.map((U) => ({ label: U.userRoleName, value: U.userRoleId })),
8501
8538
  [be]
8502
- ), Es = ve(() => [1, 3, 5, 10, 15, 20, 30, 45, 60].map((U) => ({ label: `${U}`, value: U })), []);
8539
+ ), Os = ve(() => [1, 3, 5, 10, 15, 20, 30, 45, 60].map((U) => ({ label: `${U}`, value: U })), []);
8503
8540
  oe(() => {
8504
8541
  let U = !1;
8505
8542
  async function se() {
@@ -8530,15 +8567,15 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8530
8567
  }, se = (de) => {
8531
8568
  const z = Number(de);
8532
8569
  return !isNaN(z) && z > 0 ? z : void 0;
8533
- }, J = (We || []).find(
8570
+ }, J = (Be || []).find(
8534
8571
  (de) => de?.ruleId === g || de?.ruleName === g || de?.RuleId === g
8535
8572
  ), V = zs(J?.escalationSettings);
8536
8573
  if (V && typeof V == "object") {
8537
- ye(se(V.level1PostAssistTime)), N(U(V.level1UserRoleId)), O(se(V.level2PostAssistTime)), D(U(V.level2UserRoleId)), _(se(V.level3PostAssistTime)), j(U(V.level3UserRoleId));
8574
+ ye(se(V.level1PostAssistTime)), N(U(V.level1UserRoleId)), E(se(V.level2PostAssistTime)), D(U(V.level2UserRoleId)), _(se(V.level3PostAssistTime)), j(U(V.level3UserRoleId));
8538
8575
  const de = Array.isArray(V.escalationSettingsActionTypeIds) ? V.escalationSettingsActionTypeIds : [];
8539
8576
  me(de.map((z) => String(z))), te(Array.isArray(V.thirdPartyId) ? V.thirdPartyId : []), ke(!!V.humanLoop), P(!!V.isAutoExpire);
8540
8577
  }
8541
- }, [Z, g, We]);
8578
+ }, [Z, g, Be]);
8542
8579
  const Ms = async () => {
8543
8580
  try {
8544
8581
  nt(!0);
@@ -8557,7 +8594,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8557
8594
  humanLoop: fe
8558
8595
  };
8559
8596
  });
8560
- Ne(J);
8597
+ we(J);
8561
8598
  } catch (U) {
8562
8599
  console.error("Failed to refetch entries", U);
8563
8600
  } finally {
@@ -8576,7 +8613,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8576
8613
  const z = de.thirdPartyIds ?? de.thirdPartyId;
8577
8614
  typeof z == "number" && (J[z] = de.thirdPartyName);
8578
8615
  }
8579
- Pe(J);
8616
+ Ve(J);
8580
8617
  const V = Array.isArray(se.userRoles) ? se.userRoles.map((de) => ({
8581
8618
  userRoleId: de.userRoleId ?? de.id,
8582
8619
  userRoleName: de.userRoleName ?? de.name
@@ -8609,7 +8646,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8609
8646
  B(!0);
8610
8647
  try {
8611
8648
  const U = await o.setAdminSettings({ sortBy: l, groupBy: "string" });
8612
- U?.responseStatus && U?.data && Oe.success(U.data), p(l), k(!1);
8649
+ U?.responseStatus && U?.data && Ee.success(U.data), p(l), k(!1);
8613
8650
  } catch (U) {
8614
8651
  console.error("Error saving admin settings", U);
8615
8652
  } finally {
@@ -8638,14 +8675,14 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8638
8675
  setSelectedRule: M,
8639
8676
  severityOptions: bt,
8640
8677
  ruleOptions: xe,
8641
- minsOptions: Es,
8678
+ minsOptions: Os,
8642
8679
  roleOptions: It,
8643
8680
  l1mins: ie,
8644
8681
  setL1mins: ye,
8645
- l1role: E,
8682
+ l1role: O,
8646
8683
  setL1role: N,
8647
8684
  l2mins: A,
8648
- setL2mins: O,
8685
+ setL2mins: E,
8649
8686
  l2role: T,
8650
8687
  setL2role: D,
8651
8688
  l3mins: L,
@@ -8654,51 +8691,51 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8654
8691
  setL3role: j,
8655
8692
  actions: ce,
8656
8693
  setActions: me,
8657
- thirdPartyIds: Ee,
8694
+ thirdPartyIds: Oe,
8658
8695
  setThirdPartyIds: te,
8659
8696
  humanLoop: Se,
8660
8697
  setHumanLoop: ke,
8661
8698
  onClear: () => {
8662
- u("By Severity"), d("By severity"), R("rules"), h(void 0), M(void 0), ye(void 0), N(void 0), O(void 0), D(void 0), _(void 0), j(void 0), me([]), te([]), ke(!1), P(!1);
8699
+ u("By Severity"), d("By severity"), R("rules"), h(void 0), M(void 0), ye(void 0), N(void 0), E(void 0), D(void 0), _(void 0), j(void 0), me([]), te([]), ke(!1), P(!1);
8663
8700
  },
8664
8701
  onSave: async () => {
8665
8702
  pt(!0), i?.({
8666
8703
  ruleId: g,
8667
8704
  levels: [
8668
- { minutes: ie, role: E },
8705
+ { minutes: ie, role: O },
8669
8706
  { minutes: A, role: T },
8670
8707
  { minutes: L, role: Y }
8671
8708
  ],
8672
8709
  actions: ce,
8673
- thirdPartyIds: Ee,
8710
+ thirdPartyIds: Oe,
8674
8711
  humanLoop: Se,
8675
8712
  isAutoExpire: pe
8676
8713
  });
8677
8714
  try {
8678
8715
  if (g) {
8679
- const se = Array.isArray(ce) ? ce.map((ne) => Number.isNaN(Number(ne)) ? ne : Number(ne)) : [], J = (We || []).find(
8716
+ const se = Array.isArray(ce) ? ce.map((ne) => Number.isNaN(Number(ne)) ? ne : Number(ne)) : [], J = (Be || []).find(
8680
8717
  (ne) => ne?.ruleId === g || ne?.ruleName === g || ne?.RuleId === g
8681
8718
  ), V = typeof J?.recordId == "number" ? J.recordId : J?.ruleId || J?.RuleId || void 0;
8682
8719
  if (!J || !V) {
8683
- Oe.error("Unable to find rule identifier for update");
8720
+ Ee.error("Unable to find rule identifier for update");
8684
8721
  return;
8685
8722
  }
8686
8723
  const de = {
8687
8724
  ...J,
8688
8725
  escalationSettings: {
8689
- level1UserRoleId: E ?? 0,
8726
+ level1UserRoleId: O ?? 0,
8690
8727
  level1PostAssistTime: ie ?? 0,
8691
8728
  level2UserRoleId: T ?? 0,
8692
8729
  level2PostAssistTime: A ?? 0,
8693
8730
  level3UserRoleId: Y ?? 0,
8694
8731
  level3PostAssistTime: L ?? 0,
8695
8732
  escalationSettingsActionTypeIds: se,
8696
- thirdPartyId: Array.isArray(Ee) ? Ee : [],
8733
+ thirdPartyId: Array.isArray(Oe) ? Oe : [],
8697
8734
  humanLoop: Se,
8698
8735
  isAutoExpire: pe
8699
8736
  }
8700
8737
  }, z = await a.updateRule(V, de);
8701
- z?.responseStatus || z?.Success || z?.success ? (Oe.success("Escalation settings saved"), await Ms(), M(void 0), ye(void 0), N(void 0), O(void 0), D(void 0), _(void 0), j(void 0), me([]), te([]), ke(!1), P(!1)) : Oe.error(z?.errorMessage || z?.Message || "Error saving Escalation Settings");
8738
+ z?.responseStatus || z?.Success || z?.success ? (Ee.success("Escalation settings saved"), await Ms(), M(void 0), ye(void 0), N(void 0), E(void 0), D(void 0), _(void 0), j(void 0), me([]), te([]), ke(!1), P(!1)) : Ee.error(z?.errorMessage || z?.Message || "Error saving Escalation Settings");
8702
8739
  }
8703
8740
  } catch (se) {
8704
8741
  console.error("Error saving escalation settings", se);
@@ -8807,7 +8844,7 @@ function Bc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8807
8844
  email: !!k.email,
8808
8845
  sortBy: o
8809
8846
  });
8810
- ie?.responseStatus && Oe.success(ie?.data || "Preferences updated successfully.");
8847
+ ie?.responseStatus && Ee.success(ie?.data || "Preferences updated successfully.");
8811
8848
  } catch (h) {
8812
8849
  console.error("Error in saving my preferences: ", h);
8813
8850
  } finally {
@@ -8817,13 +8854,13 @@ function Bc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8817
8854
  return /* @__PURE__ */ f("div", { className: "w-full", children: [
8818
8855
  /* @__PURE__ */ c(Ze, { gutter: [16, 16], align: "middle", className: "mb-4", children: /* @__PURE__ */ c(K, { xs: 24, md: 8, children: /* @__PURE__ */ f(st, { direction: "horizontal", size: 12, className: "w-full items-center", children: [
8819
8856
  /* @__PURE__ */ c(fs, { className: "text-gray-600", children: "Sort By:" }),
8820
- /* @__PURE__ */ c(Fe, { className: "w-[240px]", value: o, options: a, onChange: l })
8857
+ /* @__PURE__ */ c(Pe, { className: "w-[240px]", value: o, options: a, onChange: l })
8821
8858
  ] }) }) }),
8822
8859
  /* @__PURE__ */ f("div", { className: "mb-4", children: [
8823
8860
  /* @__PURE__ */ c(yr, { level: 5, className: "!mb-2", children: "Anomalies" }),
8824
8861
  Q ? /* @__PURE__ */ c("div", { className: "py-4", children: /* @__PURE__ */ c(Ns, {}) }) : /* @__PURE__ */ c(st, { direction: "vertical", size: 10, className: "w-full", children: (Array.isArray(B) ? B : []).map((h) => {
8825
8862
  const g = String(h.recordId), M = h.anomalyName;
8826
- return /* @__PURE__ */ c(Et, { checked: u.has(g), onChange: () => R(g), children: M }, g);
8863
+ return /* @__PURE__ */ c(Ot, { checked: u.has(g), onChange: () => R(g), children: M }, g);
8827
8864
  }) })
8828
8865
  ] }),
8829
8866
  /* @__PURE__ */ f("div", { className: "mb-4", children: [
@@ -8842,9 +8879,9 @@ function Bc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8842
8879
  ] })
8843
8880
  ] }) }) }),
8844
8881
  /* @__PURE__ */ f(Ze, { gutter: [24, 12], children: [
8845
- /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Et, { checked: k.inApp, onChange: (h) => b({ ...k, inApp: h.target.checked }), children: "In-app" }) }),
8846
- /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Et, { checked: k.sms, onChange: (h) => b({ ...k, sms: h.target.checked }), children: "SMS" }) }),
8847
- /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Et, { checked: k.email, onChange: (h) => b({ ...k, email: h.target.checked }), children: "Email" }) })
8882
+ /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Ot, { checked: k.inApp, onChange: (h) => b({ ...k, inApp: h.target.checked }), children: "In-app" }) }),
8883
+ /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Ot, { checked: k.sms, onChange: (h) => b({ ...k, sms: h.target.checked }), children: "SMS" }) }),
8884
+ /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Ot, { checked: k.email, onChange: (h) => b({ ...k, email: h.target.checked }), children: "Email" }) })
8848
8885
  ] })
8849
8886
  ] }),
8850
8887
  /* @__PURE__ */ c(Zt, {}),
@@ -9104,14 +9141,14 @@ const Tc = ({
9104
9141
  High: "#FF95004D",
9105
9142
  Medium: "#FEF9C2",
9106
9143
  Low: "#E0EDFF"
9107
- }, Oc = {
9144
+ }, Ec = {
9108
9145
  "elopement attempt": "elopement",
9109
9146
  "elopement completed": "elopement",
9110
9147
  "watchlist person detected": "watchlist",
9111
9148
  "watch list person detected": "watchlist",
9112
9149
  "brandished guns & knives": "weapon",
9113
9150
  "brandished guns and knives": "weapon"
9114
- }, Ec = ({
9151
+ }, Oc = ({
9115
9152
  isModalOpen: t,
9116
9153
  handleModalClose: e,
9117
9154
  selectedRow: s,
@@ -9125,10 +9162,10 @@ const Tc = ({
9125
9162
  }) => {
9126
9163
  const [m, d] = S(), [y, p] = S(""), [v, k] = S(!1), [b, B] = S([]), q = pr(null), [Q, x] = S("details"), [C, Z] = S(void 0), R = Dr(), { alerts: G, rules: h, config: g } = Ge(), { timeZoneDetails: M } = ts(), [ie, ye] = S(
9127
9164
  null
9128
- ), [E, N] = S(!1), [A, O] = S(!1), [T, D] = S(void 0), [L, _] = S(void 0), [Y, j] = S({}), [ce, me] = S({}), Ee = (w, H, ae) => {
9165
+ ), [O, N] = S(!1), [A, E] = S(!1), [T, D] = S(void 0), [L, _] = S(void 0), [Y, j] = S({}), [ce, me] = S({}), Oe = (w, H, ae) => {
9129
9166
  const Ie = ce[w];
9130
9167
  return Y[w] === !1 && !Ie ? /* @__PURE__ */ f("div", { className: "w-full flex flex-col items-center justify-center min-h-[200px] bg-gray-100 rounded-lg gap-2 text-gray-400", children: [
9131
- /* @__PURE__ */ c(Or, { size: 40 }),
9168
+ /* @__PURE__ */ c(Er, { size: 40 }),
9132
9169
  /* @__PURE__ */ c("span", { className: "text-sm", children: "Media not available" })
9133
9170
  ] }) : /* @__PURE__ */ f("div", { className: "relative w-full flex justify-center items-center min-h-[200px]", children: [
9134
9171
  Ie && /* @__PURE__ */ c("div", { className: "absolute inset-0 flex items-center justify-center bg-gray-100 rounded-lg z-10", children: /* @__PURE__ */ c(Qa, { size: 32, className: "animate-spin text-gray-400" }) }),
@@ -9139,7 +9176,7 @@ const Tc = ({
9139
9176
  alt: H.caption || `media-${ae}`,
9140
9177
  isLoading: Ie,
9141
9178
  priority: be,
9142
- detections: We,
9179
+ detections: Be,
9143
9180
  onLoadSuccess: () => me((Re) => ({ ...Re, [w]: !1 })),
9144
9181
  onError: () => me((Re) => ({ ...Re, [w]: !1 }))
9145
9182
  }
@@ -9153,15 +9190,15 @@ const Tc = ({
9153
9190
  timestamp: W,
9154
9191
  description: ge,
9155
9192
  spaceName: ue,
9156
- assignTeam: Pe,
9193
+ assignTeam: Ve,
9157
9194
  priority: be,
9158
9195
  statusType: Ke,
9159
9196
  id: Me,
9160
- alertDetails: Ne,
9197
+ alertDetails: we,
9161
9198
  statusHistory: Pt,
9162
9199
  mediaDetails: pt,
9163
9200
  alertNumber: Nt
9164
- } = te, nt = te.bbox_xyxy, We = ve(
9201
+ } = te, nt = te.bbox_xyxy, Be = ve(
9165
9202
  () => nt ? [{ bbox_xyxy: nt, personName: te.personName }] : [],
9166
9203
  [nt, te.personName]
9167
9204
  ), Tt = g.tenant === "snl" ? ke || Se || "Alert Event" : Se || "Alert Event", bt = (w) => {
@@ -9185,7 +9222,7 @@ const Tc = ({
9185
9222
  delivered: Ie,
9186
9223
  recipients: ae
9187
9224
  };
9188
- }, Es = (w) => {
9225
+ }, Os = (w) => {
9189
9226
  const H = /* @__PURE__ */ new Map();
9190
9227
  return (w || []).forEach((ae) => {
9191
9228
  const Ie = String(ae?.notificationType || "Unknown"), Re = H.get(Ie) || [];
@@ -9195,7 +9232,7 @@ const Tc = ({
9195
9232
  );
9196
9233
  }, Ms = async (w) => {
9197
9234
  try {
9198
- const H = await G.getAlertNotifications(w), ae = Es(H);
9235
+ const H = await G.getAlertNotifications(w), ae = Os(H);
9199
9236
  Z(ae);
9200
9237
  } catch {
9201
9238
  Z(void 0);
@@ -9246,7 +9283,7 @@ const Tc = ({
9246
9283
  const wn = o === "archived" || ["completed", "false positive"].includes(String(Ke || "").toLowerCase()), An = (w) => {
9247
9284
  const H = String(w?.value || "").toLowerCase(), ae = String(w?.statusName || "").toLowerCase();
9248
9285
  return H.includes("reopen") || ae.includes("reopen");
9249
- }, Nn = String(pe || "").trim().toLowerCase(), U = Oc[Nn] ?? "general", se = r.filter((w) => {
9286
+ }, Nn = String(pe || "").trim().toLowerCase(), U = Ec[Nn] ?? "general", se = r.filter((w) => {
9250
9287
  const H = An(w);
9251
9288
  return typeof o < "u" ? o === "archived" ? H : !H : wn ? H : !H;
9252
9289
  }).map((w) => ({ value: w.value, label: w.statusName })), J = ie ?? [], V = (w) => !!w.isWatchListStatus, de = (w) => !!w.isWeapontStatus, z = J.filter((w) => {
@@ -9317,7 +9354,7 @@ const Tc = ({
9317
9354
  }, H = await R.mutateAsync(w);
9318
9355
  if (H?.responseStatus || H?.Success) {
9319
9356
  const ae = H?.Message || H?.data || "Alert updated successfully.";
9320
- Oe.success(ae, {
9357
+ Ee.success(ae, {
9321
9358
  autoClose: 1500,
9322
9359
  onClose: () => {
9323
9360
  n(), e();
@@ -9325,10 +9362,10 @@ const Tc = ({
9325
9362
  }), d(void 0), p("");
9326
9363
  } else {
9327
9364
  const ae = H?.errorMessage || H?.Message || "Failed to update alert status";
9328
- Oe.error(ae);
9365
+ Ee.error(ae);
9329
9366
  }
9330
9367
  } catch (w) {
9331
- console.error("Error updating alert status:", w), Oe.error("Failed to update alert status. Please try again.");
9368
+ console.error("Error updating alert status:", w), Ee.error("Failed to update alert status. Please try again.");
9332
9369
  } finally {
9333
9370
  k(!1);
9334
9371
  }
@@ -9351,14 +9388,14 @@ const Tc = ({
9351
9388
  children: [
9352
9389
  /* @__PURE__ */ f("div", { className: "flex flex-col gap-2", children: [
9353
9390
  /* @__PURE__ */ c("div", { className: "text-sm font-bold", children: Tt }),
9354
- Ne?.firstName ? /* @__PURE__ */ f("div", { className: "text-sm text-gray-500", children: [
9391
+ we?.firstName ? /* @__PURE__ */ f("div", { className: "text-sm text-gray-500", children: [
9355
9392
  "Resident ID/Name: ",
9356
- Ne?.firstName,
9393
+ we?.firstName,
9357
9394
  " ",
9358
- Ne?.lastName || "",
9395
+ we?.lastName || "",
9359
9396
  " ",
9360
9397
  "  ",
9361
- Ne?.residentId || ""
9398
+ we?.residentId || ""
9362
9399
  ] }) : null,
9363
9400
  /* @__PURE__ */ f("div", { className: "text-sm text-gray-500", children: [
9364
9401
  "Timestamp:",
@@ -9374,9 +9411,9 @@ const Tc = ({
9374
9411
  "Space: ",
9375
9412
  ue
9376
9413
  ] }),
9377
- Pe && /* @__PURE__ */ f("div", { className: "font-sm text-gray-500", children: [
9414
+ Ve && /* @__PURE__ */ f("div", { className: "font-sm text-gray-500", children: [
9378
9415
  "Assigned to: ",
9379
- Pe
9416
+ Ve
9380
9417
  ] }),
9381
9418
  /* @__PURE__ */ f("div", { className: "flex gap-2 justify-start mt-3", children: [
9382
9419
  /* @__PURE__ */ f(
@@ -9413,14 +9450,14 @@ const Tc = ({
9413
9450
  ] }),
9414
9451
  /* @__PURE__ */ c("div", { className: "w-full flex flex-col justify-start items-start mt-2 font-bold", children: /* @__PURE__ */ f("div", { className: "w-full mt-4", children: [
9415
9452
  /* @__PURE__ */ c("div", { className: "flex flex-col gap-2", children: /* @__PURE__ */ c(
9416
- Fe,
9453
+ Pe,
9417
9454
  {
9418
9455
  placeholder: "Change Status",
9419
9456
  className: "w-full text-gray-500",
9420
9457
  onChange: (w) => d(w),
9421
9458
  value: m,
9422
9459
  options: ne,
9423
- loading: g.tenant === "snl" ? E : i
9460
+ loading: g.tenant === "snl" ? O : i
9424
9461
  }
9425
9462
  ) }),
9426
9463
  /* @__PURE__ */ f("div", { className: "flex flex-col gap-2 mt-3", children: [
@@ -9491,13 +9528,13 @@ const Tc = ({
9491
9528
  "Your browser does not support the video tag."
9492
9529
  ]
9493
9530
  }
9494
- ) : Ee(String(ae), w, H),
9531
+ ) : Oe(String(ae), w, H),
9495
9532
  w.caption && /* @__PURE__ */ c("p", { className: "text-xs text-gray-500 mt-1", children: w.caption }),
9496
9533
  !Ie && Y[String(ae)] ? /* @__PURE__ */ c(
9497
9534
  "button",
9498
9535
  {
9499
9536
  onClick: () => {
9500
- O(!0), D(ae), _(w.type || "image");
9537
+ E(!0), D(ae), _(w.type || "image");
9501
9538
  },
9502
9539
  className: "absolute bottom-3 right-3 text-white bg-black/50 rounded-full p-2 hover:bg-black/70",
9503
9540
  children: /* @__PURE__ */ c(eo, { size: 20 })
@@ -9515,10 +9552,10 @@ const Tc = ({
9515
9552
  kr,
9516
9553
  {
9517
9554
  isOpen: A,
9518
- onClose: () => O(!1),
9555
+ onClose: () => E(!1),
9519
9556
  src: T || "",
9520
9557
  type: L || "image",
9521
- detections: We,
9558
+ detections: Be,
9522
9559
  priority: be
9523
9560
  }
9524
9561
  )
@@ -9602,7 +9639,7 @@ function Ri({
9602
9639
  tabBarStyle: { fontSize: "medium" },
9603
9640
  onChange: (ie) => {
9604
9641
  const ye = ie === "archived";
9605
- g((E) => E + 1), a?.(1), o?.({ isArchived: ye });
9642
+ g((O) => O + 1), a?.(1), o?.({ isArchived: ye });
9606
9643
  },
9607
9644
  items: [
9608
9645
  {
@@ -9660,7 +9697,7 @@ function Ri({
9660
9697
  }
9661
9698
  ),
9662
9699
  /* @__PURE__ */ c(
9663
- Ec,
9700
+ Oc,
9664
9701
  {
9665
9702
  isModalOpen: m,
9666
9703
  handleModalClose: Z,