@ssgc/alert-console 2.10.12 → 2.10.14

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,6 +1,6 @@
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 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";
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 Mt, 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
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";
@@ -54,7 +54,7 @@ function ma() {
54
54
  return {};
55
55
  }
56
56
  }
57
- function Vt(t, e) {
57
+ function Bt(t, e) {
58
58
  if (!e) return t;
59
59
  const s = new URL(t);
60
60
  return Object.entries(e).forEach(([n, r]) => {
@@ -90,7 +90,7 @@ function fa(t) {
90
90
  };
91
91
  return {
92
92
  async listAlerts(s) {
93
- const n = Ue(t.baseUrl, "/api/Alert"), r = Vt(n, {
93
+ const n = Ue(t.baseUrl, "/api/Alert"), r = Bt(n, {
94
94
  page: s?.pageNumber ?? 1,
95
95
  pageSize: s?.pageSize ?? 10,
96
96
  ...s?.anomalyId !== void 0 && { anomalyId: s.anomalyId },
@@ -113,7 +113,7 @@ function fa(t) {
113
113
  return Array.isArray(n) ? n : n && typeof n == "object" && Array.isArray(n.data) ? n.data : [];
114
114
  },
115
115
  async getAlertsReport(s) {
116
- const n = Ue(t.baseUrl, "/Alerts/GetAlertsReport"), r = Vt(n, s), i = await Le(r, {
116
+ const n = Ue(t.baseUrl, "/Alerts/GetAlertsReport"), r = Bt(n, s), i = await Le(r, {
117
117
  method: "GET",
118
118
  headers: e
119
119
  });
@@ -183,21 +183,21 @@ function fa(t) {
183
183
  };
184
184
  },
185
185
  async getAlertNotifications(s) {
186
- const n = Ue(t.baseUrl, "/api/Alert/GetNotifications"), r = Vt(n, { alertId: s }), i = await Le(r, {
186
+ const n = Ue(t.baseUrl, "/api/Alert/GetNotifications"), r = Bt(n, { alertId: s }), i = await Le(r, {
187
187
  method: "GET",
188
188
  headers: e
189
189
  });
190
190
  return Array.isArray(i) ? i : i && typeof i == "object" && Array.isArray(i.data) ? i.data : [];
191
191
  },
192
192
  async notifyFamilyMembers(s) {
193
- const n = Ue(t.baseUrl, "/api/Alert/NotificationToFamilyMembers"), r = Vt(n, { alertId: s });
193
+ const n = Ue(t.baseUrl, "/api/Alert/NotificationToFamilyMembers"), r = Bt(n, { alertId: s });
194
194
  return Le(r, {
195
195
  method: "POST",
196
196
  headers: e
197
197
  });
198
198
  },
199
199
  async sendSMSorEmailNotifications(s, n, r) {
200
- const i = Ue(t.baseUrl, "/api/Alert/SendSMSorEmailNotifications"), a = Vt(i, { alertId: s, isEmail: n, isSMS: r });
200
+ const i = Ue(t.baseUrl, "/api/Alert/SendSMSorEmailNotifications"), a = Bt(i, { alertId: s, isEmail: n, isSMS: r });
201
201
  return Le(a, {
202
202
  method: "POST",
203
203
  headers: e
@@ -306,35 +306,35 @@ 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(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) {
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", w = "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"], v = O % 100;
311
+ return "[" + O + (N[(v - 20) % 10] || N[v] || N[0]) + "]";
312
+ } }, Q = function(O, N, v) {
313
313
  var E = String(O);
314
- return !E || E.length >= N ? O : "" + Array(N + 1 - E.length).join(A) + O;
314
+ return !E || E.length >= N ? O : "" + Array(N + 1 - E.length).join(v) + O;
315
315
  }, x = { s: Q, z: function(O) {
316
- var N = -O.utcOffset(), A = Math.abs(N), E = Math.floor(A / 60), T = A % 60;
316
+ var N = -O.utcOffset(), v = Math.abs(N), E = Math.floor(v / 60), T = v % 60;
317
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);
318
+ }, m: function O(N, v) {
319
+ if (N.date() < v.date()) return -O(v, N);
320
+ var E = 12 * (v.year() - N.year()) + (v.month() - N.month()), T = N.clone().add(E, d), D = v - T < 0, L = N.clone().add(E + (D ? -1 : 1), d);
321
+ return +(-(E + (v - T) / (D ? T - L : L - T)) || 0);
322
322
  }, a: function(O) {
323
323
  return O < 0 ? Math.ceil(O) || 0 : Math.floor(O);
324
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$/, "");
325
+ return { M: d, y: p, w: m, d: u, D: w, h: l, m: o, s: a, ms: i, Q: y }[O] || String(O || "").toLowerCase().replace(/s$/, "");
326
326
  }, u: function(O) {
327
327
  return O === void 0;
328
328
  } }, C = "en", Z = {};
329
329
  Z[C] = q;
330
330
  var R = "$isDayjsObject", G = function(O) {
331
331
  return O instanceof ie || !(!O || !O[R]);
332
- }, h = function O(N, A, E) {
332
+ }, h = function O(N, v, E) {
333
333
  var T;
334
334
  if (!N) return C;
335
335
  if (typeof N == "string") {
336
336
  var D = N.toLowerCase();
337
- Z[D] && (T = D), A && (Z[D] = A, T = D);
337
+ Z[D] && (T = D), v && (Z[D] = v, T = D);
338
338
  var L = N.split("-");
339
339
  if (!T && L.length > 1) return O(L[0]);
340
340
  } else {
@@ -344,18 +344,18 @@ function Sa() {
344
344
  return !E && T && (C = T), T || !E && C;
345
345
  }, g = function(O, N) {
346
346
  if (G(O)) return O.clone();
347
- var A = typeof N == "object" ? N : {};
348
- return A.date = O, A.args = arguments, new ie(A);
347
+ var v = typeof N == "object" ? N : {};
348
+ return v.date = O, v.args = arguments, new ie(v);
349
349
  }, M = x;
350
350
  M.l = h, M.i = G, M.w = function(O, N) {
351
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 O(A) {
355
- this.$L = h(A.locale, null, !0), this.parse(A), this.$x = this.$x || A.x || {}, this[R] = !0;
354
+ function O(v) {
355
+ this.$L = h(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[R] = !0;
356
356
  }
357
357
  var N = O.prototype;
358
- return N.parse = function(A) {
358
+ return N.parse = function(v) {
359
359
  this.$d = (function(E) {
360
360
  var T = E.date, D = E.utc;
361
361
  if (T === null) return /* @__PURE__ */ new Date(NaN);
@@ -369,29 +369,29 @@ function Sa() {
369
369
  }
370
370
  }
371
371
  return new Date(T);
372
- })(A), this.init();
372
+ })(v), this.init();
373
373
  }, N.init = function() {
374
- var A = this.$d;
375
- this.$y = A.getFullYear(), this.$M = A.getMonth(), this.$D = A.getDate(), this.$W = A.getDay(), this.$H = A.getHours(), this.$m = A.getMinutes(), this.$s = A.getSeconds(), this.$ms = A.getMilliseconds();
374
+ var v = this.$d;
375
+ this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
376
376
  }, N.$utils = function() {
377
377
  return M;
378
378
  }, N.isValid = function() {
379
379
  return this.$d.toString() !== k;
380
- }, N.isSame = function(A, E) {
381
- var T = g(A);
380
+ }, N.isSame = function(v, E) {
381
+ var T = g(v);
382
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);
383
+ }, N.isAfter = function(v, E) {
384
+ return g(v) < this.startOf(E);
385
+ }, N.isBefore = function(v, E) {
386
+ return this.endOf(E) < g(v);
387
+ }, N.$g = function(v, E, T) {
388
+ return M.u(v) ? this[E] : this.set(T, v);
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, E) {
394
- var T = this, D = !!M.u(E) || E, L = M.p(A), _ = function(ke, pe) {
393
+ }, N.startOf = function(v, E) {
394
+ var T = this, D = !!M.u(E) || E, L = M.p(v), _ = 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) {
@@ -406,7 +406,7 @@ function Sa() {
406
406
  var te = this.$locale().weekStart || 0, Se = (j < te ? j + 7 : j) - te;
407
407
  return _(D ? me - Se : me + (6 - Se), ce);
408
408
  case u:
409
- case v:
409
+ case w:
410
410
  return Y(Oe + "Hours", 0);
411
411
  case l:
412
412
  return Y(Oe + "Minutes", 1);
@@ -417,38 +417,38 @@ function Sa() {
417
417
  default:
418
418
  return this.clone();
419
419
  }
420
- }, N.endOf = function(A) {
421
- return this.startOf(A, !1);
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;
420
+ }, N.endOf = function(v) {
421
+ return this.startOf(v, !1);
422
+ }, N.$set = function(v, E) {
423
+ var T, D = M.p(v), L = "set" + (this.$u ? "UTC" : ""), _ = (T = {}, T[u] = L + "Date", T[w] = 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
- var j = this.clone().set(v, 1);
426
- j.$d[_](Y), j.init(), this.$d = j.set(v, Math.min(this.$D, j.daysInMonth())).$d;
425
+ var j = this.clone().set(w, 1);
426
+ j.$d[_](Y), j.init(), this.$d = j.set(w, Math.min(this.$D, j.daysInMonth())).$d;
427
427
  } else _ && this.$d[_](Y);
428
428
  return this.init(), this;
429
- }, N.set = function(A, E) {
430
- return this.clone().$set(A, E);
431
- }, N.get = function(A) {
432
- return this[M.p(A)]();
433
- }, N.add = function(A, E) {
429
+ }, N.set = function(v, E) {
430
+ return this.clone().$set(v, E);
431
+ }, N.get = function(v) {
432
+ return this[M.p(v)]();
433
+ }, N.add = function(v, E) {
434
434
  var T, D = this;
435
- A = Number(A);
435
+ v = Number(v);
436
436
  var L = M.p(E), _ = function(ce) {
437
437
  var me = g(D);
438
- return M.w(me.date(me.date() + Math.round(ce * A)), D);
438
+ return M.w(me.date(me.date() + Math.round(ce * v)), D);
439
439
  };
440
- if (L === d) return this.set(d, this.$M + A);
441
- if (L === p) return this.set(p, this.$y + A);
440
+ if (L === d) return this.set(d, this.$M + v);
441
+ if (L === p) return this.set(p, this.$y + v);
442
442
  if (L === u) return _(1);
443
443
  if (L === m) return _(7);
444
- var Y = (T = {}, T[o] = n, T[l] = r, T[a] = s, T)[L] || 1, j = this.$d.getTime() + A * Y;
444
+ var Y = (T = {}, T[o] = n, T[l] = r, T[a] = s, T)[L] || 1, j = this.$d.getTime() + v * Y;
445
445
  return M.w(j, this);
446
- }, N.subtract = function(A, E) {
447
- return this.add(-1 * A, E);
448
- }, N.format = function(A) {
446
+ }, N.subtract = function(v, E) {
447
+ return this.add(-1 * v, E);
448
+ }, N.format = function(v) {
449
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, Oe = T.meridiem, te = function(pe, P, W, ge) {
451
+ var D = v || "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
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");
@@ -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, E, T) {
517
- var D, L = this, _ = M.p(E), Y = g(A), j = (Y.utcOffset() - this.utcOffset()) * n, ce = this - Y, me = function() {
516
+ }, N.diff = function(v, E, T) {
517
+ var D, L = this, _ = M.p(E), Y = g(v), 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, E) {
554
- if (!A) return this.$L;
555
- var T = this.clone(), D = h(A, E, !0);
553
+ }, N.locale = function(v, E) {
554
+ if (!v) return this.$L;
555
+ var T = this.clone(), D = h(v, E, !0);
556
556
  return D && (T.$L = D), T;
557
557
  }, N.clone = function() {
558
558
  return M.w(this.$d, this);
@@ -566,7 +566,7 @@ function Sa() {
566
566
  return this.$d.toUTCString();
567
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(O) {
569
+ return g.prototype = ye, [["$ms", i], ["$s", a], ["$m", o], ["$H", l], ["$W", u], ["$M", d], ["$y", p], ["$D", w]].forEach((function(O) {
570
570
  ye[O[1]] = function(N) {
571
571
  return this.$g(N, O[0], O[1]);
572
572
  };
@@ -636,7 +636,7 @@ async function $e(t, e) {
636
636
  return i;
637
637
  }
638
638
  const he = (...t) => t.find((e) => e != null);
639
- function zt(t, e, s = {}) {
639
+ function Ot(t, e, s = {}) {
640
640
  const n = {};
641
641
  for (const r of e) {
642
642
  const i = s[r] ?? r.charAt(0).toUpperCase() + r.slice(1);
@@ -646,7 +646,7 @@ function zt(t, e, s = {}) {
646
646
  }
647
647
  function Na(t) {
648
648
  return Array.isArray(t) ? t.map(
649
- (e) => zt(e, [
649
+ (e) => Ot(e, [
650
650
  "alertLogId",
651
651
  "alertId",
652
652
  "status",
@@ -723,7 +723,7 @@ function ba(t) {
723
723
  headers: e
724
724
  });
725
725
  return (Array.isArray(n) ? n : []).map(
726
- (i) => zt(i, ["alertStatusId", "value", "statusName"])
726
+ (i) => Ot(i, ["alertStatusId", "value", "statusName"])
727
727
  );
728
728
  },
729
729
  async getAlertsReport(s) {
@@ -746,11 +746,18 @@ function ba(t) {
746
746
  });
747
747
  },
748
748
  async getAlertTimeline(s) {
749
- const n = Fe(t.baseUrl, `/api/detectionpolicy/alerts/alertTimelines/${s}`);
750
- return $e(n, {
749
+ const n = Fe(t.baseUrl, `/api/detectionpolicy/alerts/alertTimelines/${s}`), r = await $e(n, {
751
750
  method: "GET",
752
751
  headers: e
753
752
  });
753
+ return (Array.isArray(r) ? r : []).map(
754
+ (a) => Ot(a, [
755
+ "alertUniqueId",
756
+ "timeElapsed",
757
+ "eventName",
758
+ "timeStamp"
759
+ ])
760
+ );
754
761
  },
755
762
  async getAdminSettings() {
756
763
  const s = Fe(t.baseUrl, "/api/detectionpolicy/alerts/GetAdminSettings"), n = await $e(s, {
@@ -760,7 +767,7 @@ function ba(t) {
760
767
  if (n && typeof n == "object") {
761
768
  const r = n.data ?? n.Data ?? n;
762
769
  if (r && typeof r == "object")
763
- return zt(r, ["userId", "isAdminSetting", "sortBy"], {
770
+ return Ot(r, ["userId", "isAdminSetting", "sortBy"], {
764
771
  sortBy: "SortOption"
765
772
  });
766
773
  }
@@ -836,7 +843,7 @@ function ba(t) {
836
843
  });
837
844
  let a = [];
838
845
  return Array.isArray(i) ? a = i : Array.isArray(i?.data) && (a = i.data), a.map(
839
- (o) => zt(o, [
846
+ (o) => Ot(o, [
840
847
  "alertNotificationSentId",
841
848
  "alertId",
842
849
  "notificationType",
@@ -856,7 +863,7 @@ function ba(t) {
856
863
  headers: e
857
864
  });
858
865
  return (Array.isArray(n?.Data) ? n.Data : []).map(
859
- (i) => zt(i, [
866
+ (i) => Ot(i, [
860
867
  "timeZoneUniqueId",
861
868
  "ianaTimeZoneId",
862
869
  "timeZoneName",
@@ -981,13 +988,13 @@ function ka(t) {
981
988
  if (h.status !== "fulfilled") return [];
982
989
  const g = h.value;
983
990
  return Array.isArray(g) ? g : Array.isArray(g?.Data) ? g.Data : Array.isArray(g?.data) ? g.data : [];
984
- }, p = y(a), v = y(o), k = y(l), b = y(u), B = y(m), q = d.status === "fulfilled" ? d.value : null;
991
+ }, p = y(a), w = y(o), k = y(l), b = y(u), B = y(m), q = d.status === "fulfilled" ? d.value : null;
985
992
  let Q = [];
986
993
  Array.isArray(q) ? Q = q : Array.isArray(q?.Data) ? Q = q.Data : Array.isArray(q?.data) && (Q = q.data);
987
994
  const x = p.map((h) => ({
988
995
  actionTypeId: Number(h?.ActionTypeId),
989
996
  name: h?.DisplayName ?? h?.Name ?? ""
990
- })), C = v.map((h) => ({
997
+ })), C = w.map((h) => ({
991
998
  AnomalyId: h?.AnomalyId,
992
999
  DisplayName: h?.DisplayName ?? h?.Name ?? ""
993
1000
  })), Z = k.map((h) => ({
@@ -1104,13 +1111,13 @@ function Ea(t) {
1104
1111
  if (R.status !== "fulfilled") return [];
1105
1112
  const G = R.value;
1106
1113
  return Array.isArray(G) ? G : Array.isArray(G?.data) ? G.data : [];
1107
- }, y = d(a), p = d(o), v = d(l), k = d(u), b = m.status === "fulfilled" ? m.value : null, B = y.map((R) => ({
1114
+ }, y = d(a), p = d(o), w = d(l), k = d(u), b = m.status === "fulfilled" ? m.value : null, B = y.map((R) => ({
1108
1115
  actionTypeId: R?.ActionTypeUniqueId,
1109
1116
  name: R?.Name ?? ""
1110
1117
  })), q = p.map((R) => ({
1111
1118
  recordId: R?.AnomalyId,
1112
1119
  anomalyName: R?.DisplayName ?? R?.Name ?? ""
1113
- })), Q = v.map((R) => ({
1120
+ })), Q = w.map((R) => ({
1114
1121
  thirdPartyId: Number(R?.ThirdPartyId),
1115
1122
  thirdPartyName: R?.ThirdPartyName ?? R?.Name ?? ""
1116
1123
  }));
@@ -1130,7 +1137,7 @@ function Ea(t) {
1130
1137
  }))), C.length && (Z.userRoles = C), Z;
1131
1138
  },
1132
1139
  async updateRule(n, r) {
1133
- const i = new URL("/update-rule", t.baseUrl).toString(), { escalationSettings: a, ruleId: o, ruleName: l, ruleDesc: u, ...m } = r ?? {}, d = a ?? {}, y = (d.escalationSettingsActionTypeIds ?? []).filter((v) => v != null && !Number.isNaN(v)), p = {
1140
+ const i = new URL("/update-rule", t.baseUrl).toString(), { escalationSettings: a, ruleId: o, ruleName: l, ruleDesc: u, ...m } = r ?? {}, d = a ?? {}, y = (d.escalationSettingsActionTypeIds ?? []).filter((w) => w != null && !Number.isNaN(w)), p = {
1134
1141
  Level1UserRoleId: d.level1UserRoleId ?? 0,
1135
1142
  Level1PostAssistTime: d.level1PostAssistTime ?? 0,
1136
1143
  Level2UserRoleId: d.level2UserRoleId ?? 0,
@@ -1651,7 +1658,7 @@ const kr = ({
1651
1658
  ),
1652
1659
  [r, u]
1653
1660
  ), p = ve(
1654
- () => y.map((v) => ({ ...v, label: v.personName || "" })),
1661
+ () => y.map((w) => ({ ...w, label: w.personName || "" })),
1655
1662
  [y]
1656
1663
  );
1657
1664
  return oe(() => {
@@ -1668,15 +1675,15 @@ const kr = ({
1668
1675
  tabIndex: 0,
1669
1676
  "aria-label": "Close media preview",
1670
1677
  onClick: e,
1671
- onKeyDown: (v) => {
1672
- (v.key === "Enter" || v.key === " ") && (v.preventDefault(), e());
1678
+ onKeyDown: (w) => {
1679
+ (w.key === "Enter" || w.key === " ") && (w.preventDefault(), e());
1673
1680
  },
1674
1681
  onTouchStart: e,
1675
1682
  children: /* @__PURE__ */ c(
1676
1683
  "div",
1677
1684
  {
1678
1685
  className: "relative max-w-5xl max-h-[90vh] w-full flex items-center justify-center",
1679
- onClick: (v) => v.stopPropagation(),
1686
+ onClick: (w) => w.stopPropagation(),
1680
1687
  children: n === "image" ? /* @__PURE__ */ f("div", { style: { position: "relative", display: "inline-block" }, children: [
1681
1688
  /* @__PURE__ */ c(
1682
1689
  "img",
@@ -1881,7 +1888,7 @@ function Mr({
1881
1888
  onFilterChange: m,
1882
1889
  resetKey: d
1883
1890
  }) {
1884
- const [y, p] = S("All"), [v, k] = S("All"), [b, B] = S("All"), [q, Q] = S("All"), [x, C] = S(""), [Z, R] = S(r ?? 1);
1891
+ const [y, p] = S("All"), [w, k] = S("All"), [b, B] = S("All"), [q, Q] = S("All"), [x, C] = S(""), [Z, R] = S(r ?? 1);
1885
1892
  oe(() => {
1886
1893
  d !== void 0 && (p("All"), k("All"), B("All"), Q("All"), C(""), R(1));
1887
1894
  }, [d]), oe(() => {
@@ -1889,7 +1896,7 @@ function Mr({
1889
1896
  }, [r]);
1890
1897
  const [G, h] = S([
1891
1898
  { label: "All", value: "All" }
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 = {
1899
+ ]), [g, M] = S([]), [ie, ye] = S([]), [O, N] = S([]), [v, 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 = {
1893
1900
  6: { title: "Email", kind: "icon", icon: /* @__PURE__ */ c(qi, {}) },
1894
1901
  7: { title: "SMS", kind: "icon", icon: /* @__PURE__ */ c(Gi, {}) }
1895
1902
  };
@@ -1936,7 +1943,7 @@ function Mr({
1936
1943
  }, [T]), oe(() => {
1937
1944
  if (!m) return;
1938
1945
  const P = O.find((ge) => ge.value === y), W = {
1939
- anomalyId: ie.length > 1 && v !== "All" ? v : void 0,
1946
+ anomalyId: ie.length > 1 && w !== "All" ? w : void 0,
1940
1947
  spaceId: !Y && g.length > 1 && b !== "All" ? b : void 0,
1941
1948
  spaceNumber: Y && g.length > 1 && b !== "All" ? b : void 0,
1942
1949
  severityId: O.length > 1 && y !== "All" ? y : void 0,
@@ -1946,7 +1953,7 @@ function Mr({
1946
1953
  };
1947
1954
  m(W), u?.(1);
1948
1955
  }, [
1949
- v,
1956
+ w,
1950
1957
  b,
1951
1958
  y,
1952
1959
  q,
@@ -2014,7 +2021,7 @@ function Mr({
2014
2021
  return It.delete(bt), It;
2015
2022
  });
2016
2023
  }
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);
2024
+ }, ue = cn, Ve = un, be = me[ue], Ke = me[Ve], Me = Un(ue, W, be?.title), we = Un(Ve, W, Ke?.title), Wt = Cs(W.id, !0), pt = Cs(W.id, !1), Nt = os(ue) && v.has(Wt), nt = os(Ve) && v.has(pt);
2018
2025
  return /* @__PURE__ */ f(st, { size: "middle", children: [
2019
2026
  /* @__PURE__ */ c(In, { title: Me.tooltipTitle, children: /* @__PURE__ */ c(
2020
2027
  ze,
@@ -2133,7 +2140,7 @@ function Mr({
2133
2140
  /* @__PURE__ */ c(
2134
2141
  $a,
2135
2142
  {
2136
- value: v,
2143
+ value: w,
2137
2144
  onChange: k,
2138
2145
  options: Oe
2139
2146
  }
@@ -2204,7 +2211,7 @@ class ao extends At {
2204
2211
  super(`Invalid Duration: ${e.toMessage()}`);
2205
2212
  }
2206
2213
  }
2207
- class Mt extends At {
2214
+ class Dt extends At {
2208
2215
  }
2209
2216
  class Cr extends At {
2210
2217
  constructor(e) {
@@ -2625,8 +2632,8 @@ class lt extends Kt {
2625
2632
  millisecond: 0
2626
2633
  });
2627
2634
  let p = +s;
2628
- const v = p % 1e3;
2629
- return p -= v >= 0 ? v : 1e3 + v, (y - p) / (60 * 1e3);
2635
+ const w = p % 1e3;
2636
+ return p -= w >= 0 ? w : 1e3 + w, (y - p) / (60 * 1e3);
2630
2637
  }
2631
2638
  /**
2632
2639
  * Return whether this Zone is equal to another zone
@@ -3347,9 +3354,9 @@ function vs(t, e = 4, s = 1) {
3347
3354
  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) };
3348
3355
  }
3349
3356
  function _n(t, e = 4, s = 1) {
3350
- const { weekYear: n, weekNumber: r, weekday: i } = t, a = hn(fn(n, 1, e), s), o = Dt(n);
3357
+ const { weekYear: n, weekNumber: r, weekday: i } = t, a = hn(fn(n, 1, e), s), o = Ct(n);
3351
3358
  let l = r * 7 + i - a - 7 + e, u;
3352
- l < 1 ? (u = n - 1, l += Dt(u)) : l > o ? (u = n + 1, l -= Dt(n)) : u = n;
3359
+ l < 1 ? (u = n - 1, l += Ct(u)) : l > o ? (u = n + 1, l -= Ct(n)) : u = n;
3353
3360
  const { month: m, day: d } = ni(u, l);
3354
3361
  return { year: u, month: m, day: d, ...Es(t) };
3355
3362
  }
@@ -3364,7 +3371,7 @@ function jn(t) {
3364
3371
  function Jn(t, e) {
3365
3372
  if (!$(t.localWeekday) || !$(t.localWeekNumber) || !$(t.localWeekYear)) {
3366
3373
  if (!$(t.weekday) || !$(t.weekNumber) || !$(t.weekYear))
3367
- throw new Mt(
3374
+ throw new Dt(
3368
3375
  "Cannot mix locale-based week fields with ISO-based week fields"
3369
3376
  );
3370
3377
  return $(t.localWeekday) || (t.weekday = t.localWeekday), $(t.localWeekNumber) || (t.weekNumber = t.localWeekNumber), $(t.localWeekYear) || (t.weekYear = t.localWeekYear), delete t.localWeekday, delete t.localWeekNumber, delete t.localWeekYear, {
@@ -3383,7 +3390,7 @@ function Do(t, e = 4, s = 1) {
3383
3390
  return n ? r ? i ? !1 : je("weekday", t.weekday) : je("week", t.weekNumber) : je("weekYear", t.weekYear);
3384
3391
  }
3385
3392
  function Co(t) {
3386
- const e = Is(t.year), s = Je(t.ordinal, 1, Dt(t.year));
3393
+ const e = Is(t.year), s = Je(t.ordinal, 1, Ct(t.year));
3387
3394
  return e ? s ? !1 : je("ordinal", t.ordinal) : je("year", t.year);
3388
3395
  }
3389
3396
  function ri(t) {
@@ -3436,7 +3443,7 @@ function Kn(t, e, s) {
3436
3443
  function Fo(t, e) {
3437
3444
  return e.reduce((s, n) => (s[n] = t[n], s), {});
3438
3445
  }
3439
- function Rt(t, e) {
3446
+ function Ut(t, e) {
3440
3447
  return Object.prototype.hasOwnProperty.call(t, e);
3441
3448
  }
3442
3449
  function en(t) {
@@ -3497,7 +3504,7 @@ function pn(t, e, s = "round") {
3497
3504
  function Qt(t) {
3498
3505
  return t % 4 === 0 && (t % 100 !== 0 || t % 400 === 0);
3499
3506
  }
3500
- function Dt(t) {
3507
+ function Ct(t) {
3501
3508
  return Qt(t) ? 366 : 365;
3502
3509
  }
3503
3510
  function ws(t, e) {
@@ -3521,7 +3528,7 @@ function Qn(t, e, s) {
3521
3528
  }
3522
3529
  function _t(t, e = 4, s = 1) {
3523
3530
  const n = Qn(t, e, s), r = Qn(t + 1, e, s);
3524
- return (Dt(t) - n + r) / 7;
3531
+ return (Ct(t) - n + r) / 7;
3525
3532
  }
3526
3533
  function tn(t) {
3527
3534
  return t > 99 ? t : t > Ne.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
@@ -3554,7 +3561,7 @@ function ci(t) {
3554
3561
  function As(t, e) {
3555
3562
  const s = {};
3556
3563
  for (const n in t)
3557
- if (Rt(t, n)) {
3564
+ if (Ut(t, n)) {
3558
3565
  const r = t[n];
3559
3566
  if (r == null) continue;
3560
3567
  s[e(n)] = ci(r);
@@ -3768,12 +3775,12 @@ class Ce {
3768
3775
  return s > 0 && (r.padTo = s), n && (r.signDisplay = n), this.loc.numberFormatter(r).format(e);
3769
3776
  }
3770
3777
  formatDateTimeFromString(e, s) {
3771
- const n = this.loc.listingMode() === "en", r = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (p, v) => this.loc.extract(e, p, v), a = (p) => e.isOffsetFixed && e.offset === 0 && p.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, p.format) : "", o = () => n ? Ho(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (p, v) => n ? qo(e, p) : i(v ? { month: p } : { month: p, day: "numeric" }, "month"), u = (p, v) => n ? Go(e, p) : i(
3772
- v ? { weekday: p } : { weekday: p, month: "long", day: "numeric" },
3778
+ const n = this.loc.listingMode() === "en", r = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", i = (p, w) => this.loc.extract(e, p, w), a = (p) => e.isOffsetFixed && e.offset === 0 && p.allowZ ? "Z" : e.isValid ? e.zone.formatOffset(e.ts, p.format) : "", o = () => n ? Ho(e) : i({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (p, w) => n ? qo(e, p) : i(w ? { month: p } : { month: p, day: "numeric" }, "month"), u = (p, w) => n ? Go(e, p) : i(
3779
+ w ? { weekday: p } : { weekday: p, month: "long", day: "numeric" },
3773
3780
  "weekday"
3774
3781
  ), m = (p) => {
3775
- const v = Ce.macroTokenToFormatOpts(p);
3776
- return v ? this.formatWithSystemDefault(e, v) : p;
3782
+ const w = Ce.macroTokenToFormatOpts(p);
3783
+ return w ? this.formatWithSystemDefault(e, w) : p;
3777
3784
  }, d = (p) => n ? Yo(e, p) : i({ era: p }, "era"), y = (p) => {
3778
3785
  switch (p) {
3779
3786
  // ms
@@ -3944,9 +3951,9 @@ class Ce {
3944
3951
  }, i = (m, d) => (y) => {
3945
3952
  const p = r(y);
3946
3953
  if (p) {
3947
- const v = d.isNegativeDuration && p !== d.largestUnit ? n : 1;
3954
+ const w = d.isNegativeDuration && p !== d.largestUnit ? n : 1;
3948
3955
  let k;
3949
- return this.opts.signMode === "negativeLargestOnly" && p !== d.largestUnit ? k = "never" : this.opts.signMode === "all" ? k = "always" : k = "auto", this.num(m.get(p) * v, y.length, k);
3956
+ return this.opts.signMode === "negativeLargestOnly" && p !== d.largestUnit ? k = "never" : this.opts.signMode === "all" ? k = "always" : k = "auto", this.num(m.get(p) * w, y.length, k);
3950
3957
  } else
3951
3958
  return y;
3952
3959
  }, a = Ce.parseFormat(s), o = a.reduce(
@@ -3962,11 +3969,11 @@ class Ce {
3962
3969
  }
3963
3970
  }
3964
3971
  const gi = /[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;
3965
- function Ut(...t) {
3972
+ function Lt(...t) {
3966
3973
  const e = t.reduce((s, n) => s + n.source, "");
3967
3974
  return RegExp(`^${e}$`);
3968
3975
  }
3969
- function Lt(...t) {
3976
+ function Ft(...t) {
3970
3977
  return (e) => t.reduce(
3971
3978
  ([s, n, r], i) => {
3972
3979
  const [a, o, l] = i(e, r);
@@ -3975,7 +3982,7 @@ function Lt(...t) {
3975
3982
  [{}, null, 1]
3976
3983
  ).slice(0, 2);
3977
3984
  }
3978
- function Ft(t, ...e) {
3985
+ function $t(t, ...e) {
3979
3986
  if (t == null)
3980
3987
  return [null, null];
3981
3988
  for (const [s, n] of e) {
@@ -3997,22 +4004,22 @@ function Si(...t) {
3997
4004
  const vi = /(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/, Jo = `(?:${vi.source}?(?:\\[(${gi.source})\\])?)?`, gn = /(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/, wi = RegExp(`${gn.source}${Jo}`), Sn = RegExp(`(?:[Tt]${wi.source})?`), Ko = /([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/, Qo = /(\d{4})-?W(\d\d)(?:-?(\d))?/, Xo = /(\d{4})-?(\d{3})/, el = Si("weekYear", "weekNumber", "weekDay"), tl = Si("year", "ordinal"), sl = /(\d{4})-(\d\d)-(\d\d)/, Ai = RegExp(
3998
4005
  `${gn.source} ?(?:${vi.source}|(${gi.source}))?`
3999
4006
  ), nl = RegExp(`(?: ${Ai.source})?`);
4000
- function Ct(t, e, s) {
4007
+ function Rt(t, e, s) {
4001
4008
  const n = t[e];
4002
4009
  return $(n) ? s : ft(n);
4003
4010
  }
4004
4011
  function rl(t, e) {
4005
4012
  return [{
4006
- year: Ct(t, e),
4007
- month: Ct(t, e + 1, 1),
4008
- day: Ct(t, e + 2, 1)
4013
+ year: Rt(t, e),
4014
+ month: Rt(t, e + 1, 1),
4015
+ day: Rt(t, e + 2, 1)
4009
4016
  }, null, e + 3];
4010
4017
  }
4011
- function $t(t, e) {
4018
+ function Pt(t, e) {
4012
4019
  return [{
4013
- hours: Ct(t, e, 0),
4014
- minutes: Ct(t, e + 1, 0),
4015
- seconds: Ct(t, e + 2, 0),
4020
+ hours: Rt(t, e, 0),
4021
+ minutes: Rt(t, e + 1, 0),
4022
+ seconds: Rt(t, e + 2, 0),
4016
4023
  milliseconds: yn(t[e + 3])
4017
4024
  }, null, e + 4];
4018
4025
  }
@@ -4026,7 +4033,7 @@ function es(t, e) {
4026
4033
  }
4027
4034
  const il = RegExp(`^T?${gn.source}$`), al = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
4028
4035
  function ol(t) {
4029
- const [e, s, n, r, i, a, o, l, u] = t, m = e[0] === "-", d = l && l[0] === "-", y = (p, v = !1) => p !== void 0 && (v || p && m) ? -p : p;
4036
+ const [e, s, n, r, i, a, o, l, u] = t, m = e[0] === "-", d = l && l[0] === "-", y = (p, w = !1) => p !== void 0 && (w || p && m) ? -p : p;
4030
4037
  return [
4031
4038
  {
4032
4039
  years: y(gt(s)),
@@ -4092,28 +4099,28 @@ function yl(t) {
4092
4099
  const [, e, s, n, r, i, a, o] = t;
4093
4100
  return [vn(e, o, s, n, r, i, a), We.utcInstance];
4094
4101
  }
4095
- const pl = Ut(Ko, Sn), gl = Ut(Qo, Sn), Sl = Ut(Xo, Sn), vl = Ut(wi), Ni = Lt(
4102
+ const pl = Lt(Ko, Sn), gl = Lt(Qo, Sn), Sl = Lt(Xo, Sn), vl = Lt(wi), Ni = Ft(
4096
4103
  rl,
4097
- $t,
4104
+ Pt,
4098
4105
  Xt,
4099
4106
  es
4100
- ), wl = Lt(
4107
+ ), wl = Ft(
4101
4108
  el,
4102
- $t,
4109
+ Pt,
4103
4110
  Xt,
4104
4111
  es
4105
- ), Al = Lt(
4112
+ ), Al = Ft(
4106
4113
  tl,
4107
- $t,
4114
+ Pt,
4108
4115
  Xt,
4109
4116
  es
4110
- ), Nl = Lt(
4111
- $t,
4117
+ ), Nl = Ft(
4118
+ Pt,
4112
4119
  Xt,
4113
4120
  es
4114
4121
  );
4115
4122
  function Tl(t) {
4116
- return Ft(
4123
+ return $t(
4117
4124
  t,
4118
4125
  [pl, Ni],
4119
4126
  [gl, wl],
@@ -4122,10 +4129,10 @@ function Tl(t) {
4122
4129
  );
4123
4130
  }
4124
4131
  function bl(t) {
4125
- return Ft(dl(t), [cl, ul]);
4132
+ return $t(dl(t), [cl, ul]);
4126
4133
  }
4127
4134
  function Il(t) {
4128
- return Ft(
4135
+ return $t(
4129
4136
  t,
4130
4137
  [ml, er],
4131
4138
  [fl, er],
@@ -4133,19 +4140,19 @@ function Il(t) {
4133
4140
  );
4134
4141
  }
4135
4142
  function kl(t) {
4136
- return Ft(t, [al, ol]);
4143
+ return $t(t, [al, ol]);
4137
4144
  }
4138
- const xl = Lt($t);
4145
+ const xl = Ft(Pt);
4139
4146
  function El(t) {
4140
- return Ft(t, [il, xl]);
4147
+ return $t(t, [il, xl]);
4141
4148
  }
4142
- const Ol = Ut(sl, nl), Ml = Ut(Ai), Dl = Lt(
4143
- $t,
4149
+ const Ol = Lt(sl, nl), Ml = Lt(Ai), Dl = Ft(
4150
+ Pt,
4144
4151
  Xt,
4145
4152
  es
4146
4153
  );
4147
4154
  function Cl(t) {
4148
- return Ft(
4155
+ return $t(
4149
4156
  t,
4150
4157
  [Ol, Ni],
4151
4158
  [Ml, Dl]
@@ -4606,7 +4613,7 @@ class X {
4606
4613
  if (!this.isValid) return this;
4607
4614
  const s = X.fromDurationLike(e), n = {};
4608
4615
  for (const r of vt)
4609
- (Rt(s.values, r) || Rt(this.values, r)) && (n[r] = s.get(r) + this.get(r));
4616
+ (Ut(s.values, r) || Ut(this.values, r)) && (n[r] = s.get(r) + this.get(r));
4610
4617
  return at(this, { values: n }, !0);
4611
4618
  }
4612
4619
  /**
@@ -4909,7 +4916,7 @@ class Ae {
4909
4916
  * @return {Interval}
4910
4917
  */
4911
4918
  static fromDateTimes(e, s) {
4912
- const n = Bt(e), r = Bt(s), i = Fl(n, r);
4919
+ const n = Zt(e), r = Zt(s), i = Fl(n, r);
4913
4920
  return i ?? new Ae({
4914
4921
  start: n,
4915
4922
  end: r
@@ -4922,7 +4929,7 @@ class Ae {
4922
4929
  * @return {Interval}
4923
4930
  */
4924
4931
  static after(e, s) {
4925
- const n = X.fromDurationLike(s), r = Bt(e);
4932
+ const n = X.fromDurationLike(s), r = Zt(e);
4926
4933
  return Ae.fromDateTimes(r, r.plus(n));
4927
4934
  }
4928
4935
  /**
@@ -4932,7 +4939,7 @@ class Ae {
4932
4939
  * @return {Interval}
4933
4940
  */
4934
4941
  static before(e, s) {
4935
- const n = X.fromDurationLike(s), r = Bt(e);
4942
+ const n = X.fromDurationLike(s), r = Zt(e);
4936
4943
  return Ae.fromDateTimes(r.minus(n), r);
4937
4944
  }
4938
4945
  /**
@@ -5102,7 +5109,7 @@ class Ae {
5102
5109
  */
5103
5110
  splitAt(...e) {
5104
5111
  if (!this.isValid) return [];
5105
- const s = e.map(Bt).filter((a) => this.contains(a)).sort((a, o) => a.toMillis() - o.toMillis()), n = [];
5112
+ const s = e.map(Zt).filter((a) => this.contains(a)).sort((a, o) => a.toMillis() - o.toMillis()), n = [];
5106
5113
  let { s: r } = this, i = 0;
5107
5114
  for (; r < this.e; ) {
5108
5115
  const a = s[i] || this.e, o = +a > +this.e ? this.e : a;
@@ -5766,7 +5773,7 @@ function Yl(t, e, s) {
5766
5773
  const r = {};
5767
5774
  let i = 1;
5768
5775
  for (const a in s)
5769
- if (Rt(s, a)) {
5776
+ if (Ut(s, a)) {
5770
5777
  const o = s[a], l = o.groups ? o.groups + 1 : 1;
5771
5778
  !o.literal && o.token && (r[o.token.val[0]] = o.deser(n.slice(i, i + l))), i += l;
5772
5779
  }
@@ -5837,8 +5844,8 @@ class Ei {
5837
5844
  explainFromTokens(e) {
5838
5845
  if (this.isValid) {
5839
5846
  const [s, n] = Yl(e, this.regex, this.handlers), [r, i, a] = n ? _l(n) : [null, null, void 0];
5840
- if (Rt(n, "a") && Rt(n, "H"))
5841
- throw new Mt(
5847
+ if (Ut(n, "a") && Ut(n, "H"))
5848
+ throw new Dt(
5842
5849
  "Can't include meridiem when specifying 24-hour format"
5843
5850
  );
5844
5851
  return {
@@ -6293,14 +6300,14 @@ class F {
6293
6300
  const n = ht(s.zone, Ne.defaultZone);
6294
6301
  if (!n.isValid)
6295
6302
  return F.invalid(Gt(n));
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;
6297
- if ((p || m) && v)
6298
- throw new Mt(
6303
+ 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, w = i.weekYear || i.weekNumber;
6304
+ if ((p || m) && w)
6305
+ throw new Dt(
6299
6306
  "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
6300
6307
  );
6301
6308
  if (y && m)
6302
- throw new Mt("Can't mix ordinal dates with month/day");
6303
- const k = v || i.weekday && !p;
6309
+ throw new Dt("Can't mix ordinal dates with month/day");
6310
+ const k = w || i.weekday && !p;
6304
6311
  let b, B, q = ds(l, u);
6305
6312
  k ? (b = ec, B = Ql, q = vs(q, a, o)) : m ? (b = tc, B = Xl, q = Fs(q)) : (b = ps, B = Ci);
6306
6313
  let Q = !1;
@@ -6809,7 +6816,7 @@ class F {
6809
6816
  * @type {number}
6810
6817
  */
6811
6818
  get daysInYear() {
6812
- return this.isValid ? Dt(this.year) : NaN;
6819
+ return this.isValid ? Ct(this.year) : NaN;
6813
6820
  }
6814
6821
  /**
6815
6822
  * Returns the number of weeks in this DateTime's year
@@ -6926,11 +6933,11 @@ class F {
6926
6933
  if (!this.isValid) return this;
6927
6934
  const s = As(e, ur), { minDaysInFirstWeek: n, startOfWeek: r } = Jn(s, this.loc), i = !$(s.weekYear) || !$(s.weekNumber) || !$(s.weekday), a = !$(s.ordinal), o = !$(s.year), l = !$(s.month) || !$(s.day), u = o || l, m = s.weekYear || s.weekNumber;
6928
6935
  if ((u || a) && m)
6929
- throw new Mt(
6936
+ throw new Dt(
6930
6937
  "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
6931
6938
  );
6932
6939
  if (l && a)
6933
- throw new Mt("Can't mix ordinal dates with month/day");
6940
+ throw new Dt("Can't mix ordinal dates with month/day");
6934
6941
  let d;
6935
6942
  i ? d = _n(
6936
6943
  { ...vs(this.c, n, r), ...s },
@@ -7688,7 +7695,7 @@ class F {
7688
7695
  return Kr;
7689
7696
  }
7690
7697
  }
7691
- function Bt(t) {
7698
+ function Zt(t) {
7692
7699
  if (F.isDateTime(t))
7693
7700
  return t;
7694
7701
  if (t && t.valueOf && yt(t.valueOf()))
@@ -7850,14 +7857,14 @@ function lc({
7850
7857
  }
7851
7858
  )
7852
7859
  }
7853
- ], v = o ? t : (t || []).filter((k) => {
7860
+ ], w = o ? t : (t || []).filter((k) => {
7854
7861
  const b = On(k.statusType || "");
7855
7862
  return no.some((B) => b.includes(On(B)));
7856
7863
  });
7857
7864
  return /* @__PURE__ */ c(
7858
7865
  Mr,
7859
7866
  {
7860
- data: v,
7867
+ data: w,
7861
7868
  loading: e,
7862
7869
  pageSize: s,
7863
7870
  total: n,
@@ -7902,7 +7909,7 @@ function cc({
7902
7909
  "aria-label": "Analog Clock",
7903
7910
  children: [
7904
7911
  [...Array(12)].map((m, d) => {
7905
- const y = d * 30, p = 6, v = u - 4, k = v - p, b = (y - 90) * (Math.PI / 180), B = u + k * Math.cos(b), q = u + k * Math.sin(b), Q = u + v * Math.cos(b), x = u + v * Math.sin(b);
7912
+ const y = d * 30, p = 6, w = u - 4, k = w - p, b = (y - 90) * (Math.PI / 180), B = u + k * Math.cos(b), q = u + k * Math.sin(b), Q = u + w * Math.cos(b), x = u + w * Math.sin(b);
7906
7913
  return /* @__PURE__ */ c(
7907
7914
  "svg",
7908
7915
  {
@@ -8075,7 +8082,7 @@ function fc(t) {
8075
8082
  setL2mins: d,
8076
8083
  l2role: y,
8077
8084
  setL2role: p,
8078
- l3mins: v,
8085
+ l3mins: w,
8079
8086
  setL3mins: k,
8080
8087
  l3role: b,
8081
8088
  setL3role: B,
@@ -8091,7 +8098,7 @@ function fc(t) {
8091
8098
  onSave: M,
8092
8099
  saving: ie,
8093
8100
  onActionTypesLoaded: ye
8094
- } = t, { rules: O, config: N } = Ge(), A = N.tenant === "schools", [E, T] = S([]), [D, L] = S([]), [_, Y] = S(!1);
8101
+ } = t, { rules: O, config: N } = Ge(), v = N.tenant === "schools", [E, T] = S([]), [D, L] = S([]), [_, Y] = S(!1);
8095
8102
  oe(() => {
8096
8103
  let te = !1;
8097
8104
  return (async () => {
@@ -8112,7 +8119,7 @@ function fc(t) {
8112
8119
  te = !0;
8113
8120
  };
8114
8121
  }, []);
8115
- const j = typeof a == "number" || typeof l == "number", ce = typeof m == "number" || typeof y == "number", me = typeof a == "number" || typeof l == "number" || typeof m == "number" || typeof y == "number" || typeof v == "number" || typeof b == "number" || Array.isArray(q) && q.length > 0 || Array.isArray(x) && x.length > 0 || !!Z || !!G;
8122
+ const j = typeof a == "number" || typeof l == "number", ce = typeof m == "number" || typeof y == "number", me = typeof a == "number" || typeof l == "number" || typeof m == "number" || typeof y == "number" || typeof w == "number" || typeof b == "number" || Array.isArray(q) && q.length > 0 || Array.isArray(x) && x.length > 0 || !!Z || !!G;
8116
8123
  return /* @__PURE__ */ f(Ns, { spinning: !!ie || _, children: [
8117
8124
  /* @__PURE__ */ f(Ze, { gutter: [16, 16], align: "bottom", children: [
8118
8125
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, lg: 4, children: /* @__PURE__ */ f("div", { children: [
@@ -8195,7 +8202,7 @@ function fc(t) {
8195
8202
  {
8196
8203
  className: "w-full",
8197
8204
  placeholder: "Mins",
8198
- value: v,
8205
+ value: w,
8199
8206
  onChange: k,
8200
8207
  options: r
8201
8208
  }
@@ -8247,8 +8254,8 @@ function fc(t) {
8247
8254
  ] }),
8248
8255
  /* @__PURE__ */ f(Ze, { gutter: [16, 16], align: "bottom", className: "mt-4 items-center", children: [
8249
8256
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, lg: 7, children: /* @__PURE__ */ f("div", { className: "flex items-center h-full gap-8", children: [
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" })
8257
+ !v && /* @__PURE__ */ c(Mt, { checked: Z, onChange: (te) => R(te.target.checked), className: "w-full", children: "Human-In-The-Loop" }),
8258
+ /* @__PURE__ */ c(Mt, { checked: G, onChange: (te) => h(te.target.checked), className: "w-full", children: "Auto-expire in 5 minutes" })
8252
8259
  ] }) }),
8253
8260
  /* @__PURE__ */ c(K, { xs: 24, sm: 12, md: 8, children: /* @__PURE__ */ f("div", { className: "flex items-center gap-2", children: [
8254
8261
  /* @__PURE__ */ c(ze, { onClick: g, children: "Clear" }),
@@ -8327,7 +8334,7 @@ function hc({ entries: t, userRoles: e, onEdit: s, loading: n }) {
8327
8334
  }
8328
8335
  const { Title: yc, Text: Zs } = Jt;
8329
8336
  function pc({ userRoles: t, rules: e, rawRules: s }) {
8330
- const { rules: n } = Ge(), [r, i] = S(!1), [a, o] = S(!1), [l, u] = S(s), [m, d] = S(), [y, p] = S([]), v = ve(() => t.map((x) => ({ label: x.userRoleName, value: x.userRoleId })), [t]), k = ve(() => (e || []).map((x) => ({ label: x.Name || "-", value: x.RuleId || x.Name || "" })), [e]), b = ve(
8337
+ const { rules: n } = Ge(), [r, i] = S(!1), [a, o] = S(!1), [l, u] = S(s), [m, d] = S(), [y, p] = S([]), w = ve(() => t.map((x) => ({ label: x.userRoleName, value: x.userRoleId })), [t]), k = ve(() => (e || []).map((x) => ({ label: x.Name || "-", value: x.RuleId || x.Name || "" })), [e]), b = ve(
8331
8338
  () => (e || []).map((x, C) => ({
8332
8339
  key: x.RuleId || x.Name || String(C),
8333
8340
  ruleName: x.Name || "-",
@@ -8399,7 +8406,7 @@ function pc({ userRoles: t, rules: e, rawRules: s }) {
8399
8406
  className: "w-full",
8400
8407
  value: y,
8401
8408
  onChange: p,
8402
- options: v,
8409
+ options: w,
8403
8410
  maxTagCount: 1,
8404
8411
  maxTagPlaceholder: nn
8405
8412
  }
@@ -8504,7 +8511,7 @@ function zs(t) {
8504
8511
  };
8505
8512
  }
8506
8513
  function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules: r, onSave: i }) {
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 || []);
8514
+ const { rules: a, alerts: o } = Ge(), [l, u] = S("By Severity"), [m, d] = S("By severity"), [y, p] = S("By Severity"), [w, 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(), [v, 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([]), [Wt, pt] = S(!1), [Nt, nt] = S(!1), [Be, Tt] = S(n || []);
8508
8515
  oe(() => {
8509
8516
  n && n.length && Tt(n);
8510
8517
  }, [n]), oe(() => {
@@ -8582,13 +8589,13 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8582
8589
  const U = await a.getRules(), se = Array.isArray(U) ? U : Array.isArray(U?.data) ? U.data : [];
8583
8590
  Tt(se);
8584
8591
  const J = se.map((V, de) => {
8585
- const z = e.find((le) => le.RuleId === (V.ruleId || V.ruleName))?.Name || V.ruleName || V.Name || "-", ne = zs(V.escalationSettings ?? V.EscalationSettings), rt = typeof ne.level1UserRoleId == "number" && ne.level1UserRoleId > 0 ? [ne.level1UserRoleId] : [], ss = typeof ne.level2UserRoleId == "number" && ne.level2UserRoleId > 0 ? [ne.level2UserRoleId] : [], w = typeof ne.level3UserRoleId == "number" && ne.level3UserRoleId > 0 ? [ne.level3UserRoleId] : [], ae = (Array.isArray(ne.escalationSettingsActionTypeIds) ? ne.escalationSettingsActionTypeIds : []).map((le) => W[le] || String(le)), Re = (Array.isArray(ne.thirdPartyId) ? ne.thirdPartyId : []).map((le) => ue[le] || String(le)), fe = typeof ne.humanLoop == "boolean" ? ne.humanLoop : null;
8592
+ const z = e.find((le) => le.RuleId === (V.ruleId || V.ruleName))?.Name || V.ruleName || V.Name || "-", ne = zs(V.escalationSettings ?? V.EscalationSettings), rt = typeof ne.level1UserRoleId == "number" && ne.level1UserRoleId > 0 ? [ne.level1UserRoleId] : [], ss = typeof ne.level2UserRoleId == "number" && ne.level2UserRoleId > 0 ? [ne.level2UserRoleId] : [], A = typeof ne.level3UserRoleId == "number" && ne.level3UserRoleId > 0 ? [ne.level3UserRoleId] : [], ae = (Array.isArray(ne.escalationSettingsActionTypeIds) ? ne.escalationSettingsActionTypeIds : []).map((le) => W[le] || String(le)), Re = (Array.isArray(ne.thirdPartyId) ? ne.thirdPartyId : []).map((le) => ue[le] || String(le)), fe = typeof ne.humanLoop == "boolean" ? ne.humanLoop : null;
8586
8593
  return {
8587
8594
  id: String(V.ruleId || V.ruleName || de),
8588
8595
  ruleOrSeverityLabel: z,
8589
8596
  l1: { minutes: ne.level1PostAssistTime ?? void 0, roles: rt },
8590
8597
  l2: { minutes: ne.level2PostAssistTime ?? void 0, roles: ss },
8591
- l3: { minutes: ne.level3PostAssistTime ?? void 0, roles: w },
8598
+ l3: { minutes: ne.level3PostAssistTime ?? void 0, roles: A },
8592
8599
  actions: ae,
8593
8600
  notify: Re,
8594
8601
  humanLoop: fe
@@ -8641,7 +8648,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8641
8648
  onChange: (U) => {
8642
8649
  U.sortBy && (u(U.sortBy), k(!0)), U.groupBy && (d(U.groupBy), k(!0));
8643
8650
  },
8644
- showActions: v,
8651
+ showActions: w,
8645
8652
  onSave: async () => {
8646
8653
  B(!0);
8647
8654
  try {
@@ -8661,7 +8668,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8661
8668
  )
8662
8669
  ] })
8663
8670
  ] }),
8664
- /* @__PURE__ */ c(Zt, { className: "my-6" }),
8671
+ /* @__PURE__ */ c(zt, { className: "my-6" }),
8665
8672
  /* @__PURE__ */ f("div", { children: [
8666
8673
  /* @__PURE__ */ c(hr, { level: 4, className: "!mb-4", children: "Escalation Settings" }),
8667
8674
  /* @__PURE__ */ c(
@@ -8681,7 +8688,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8681
8688
  setL1mins: ye,
8682
8689
  l1role: O,
8683
8690
  setL1role: N,
8684
- l2mins: A,
8691
+ l2mins: v,
8685
8692
  setL2mins: E,
8686
8693
  l2role: T,
8687
8694
  setL2role: D,
@@ -8703,7 +8710,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8703
8710
  ruleId: g,
8704
8711
  levels: [
8705
8712
  { minutes: ie, role: O },
8706
- { minutes: A, role: T },
8713
+ { minutes: v, role: T },
8707
8714
  { minutes: L, role: Y }
8708
8715
  ],
8709
8716
  actions: ce,
@@ -8726,7 +8733,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8726
8733
  level1UserRoleId: O ?? 0,
8727
8734
  level1PostAssistTime: ie ?? 0,
8728
8735
  level2UserRoleId: T ?? 0,
8729
- level2PostAssistTime: A ?? 0,
8736
+ level2PostAssistTime: v ?? 0,
8730
8737
  level3UserRoleId: Y ?? 0,
8731
8738
  level3PostAssistTime: L ?? 0,
8732
8739
  escalationSettingsActionTypeIds: se,
@@ -8743,7 +8750,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8743
8750
  pt(!1);
8744
8751
  }
8745
8752
  },
8746
- saving: Pt,
8753
+ saving: Wt,
8747
8754
  onActionTypesLoaded: (U) => {
8748
8755
  const se = {};
8749
8756
  for (const J of U)
@@ -8755,7 +8762,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8755
8762
  }
8756
8763
  )
8757
8764
  ] }),
8758
- /* @__PURE__ */ c(Zt, { className: "my-6" }),
8765
+ /* @__PURE__ */ c(zt, { className: "my-6" }),
8759
8766
  /* @__PURE__ */ c(
8760
8767
  hc,
8761
8768
  {
@@ -8769,9 +8776,9 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8769
8776
  }
8770
8777
  }
8771
8778
  ),
8772
- /* @__PURE__ */ c(Zt, { className: "my-6" }),
8779
+ /* @__PURE__ */ c(zt, { className: "my-6" }),
8773
8780
  /* @__PURE__ */ c(pc, { userRoles: be, rules: e, rawRules: n }),
8774
- /* @__PURE__ */ c(Zt, {})
8781
+ /* @__PURE__ */ c(zt, {})
8775
8782
  ] });
8776
8783
  }
8777
8784
  const { Title: yr, Text: fs } = Jt;
@@ -8779,7 +8786,7 @@ function Bc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8779
8786
  const { rules: r, alerts: i } = Ge(), a = [
8780
8787
  { label: "By Severity", value: "By Severity" },
8781
8788
  { label: "By Created Date", value: "By Created Date" }
8782
- ], [o, l] = S("By Severity"), [u, m] = S(/* @__PURE__ */ new Set()), [d, y] = S(null), [p, v] = S(null), [k, b] = S({ inApp: !1, sms: !1, email: !1 }), [B, q] = S([]), [Q, x] = S(!0), [C, Z] = S(!1);
8789
+ ], [o, l] = S("By Severity"), [u, m] = S(/* @__PURE__ */ new Set()), [d, y] = S(null), [p, w] = S(null), [k, b] = S({ inApp: !1, sms: !1, email: !1 }), [B, q] = S([]), [Q, x] = S(!0), [C, Z] = S(!1);
8783
8790
  oe(() => {
8784
8791
  let h = !1;
8785
8792
  return (async () => {
@@ -8793,7 +8800,7 @@ function Bc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8793
8800
  email: !!g.email
8794
8801
  });
8795
8802
  const M = vr(g.sortBy);
8796
- l(M === "By Created Date" ? "By Created Date" : "By Severity"), y(Rn(g.doNotDisturbStart)), v(Rn(g.doNotDisturbEnd)), Array.isArray(g.anomalyIds) && m(new Set(g.anomalyIds.map((ie) => String(ie))));
8803
+ l(M === "By Created Date" ? "By Created Date" : "By Severity"), y(Rn(g.doNotDisturbStart)), w(Rn(g.doNotDisturbEnd)), Array.isArray(g.anomalyIds) && m(new Set(g.anomalyIds.map((ie) => String(ie))));
8797
8804
  } catch (g) {
8798
8805
  console.error("Error in loading my preferences: ", g);
8799
8806
  }
@@ -8860,7 +8867,7 @@ function Bc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8860
8867
  /* @__PURE__ */ c(yr, { level: 5, className: "!mb-2", children: "Anomalies" }),
8861
8868
  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) => {
8862
8869
  const g = String(h.recordId), M = h.anomalyName;
8863
- return /* @__PURE__ */ c(Ot, { checked: u.has(g), onChange: () => R(g), children: M }, g);
8870
+ return /* @__PURE__ */ c(Mt, { checked: u.has(g), onChange: () => R(g), children: M }, g);
8864
8871
  }) })
8865
8872
  ] }),
8866
8873
  /* @__PURE__ */ f("div", { className: "mb-4", children: [
@@ -8874,17 +8881,17 @@ function Bc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8874
8881
  ] }),
8875
8882
  /* @__PURE__ */ f(st, { direction: "horizontal", size: 8, className: "items-center", children: [
8876
8883
  /* @__PURE__ */ c(fs, { children: "To" }),
8877
- /* @__PURE__ */ c(kn, { value: p, onChange: (h) => v(h), format: "HH:mm" })
8884
+ /* @__PURE__ */ c(kn, { value: p, onChange: (h) => w(h), format: "HH:mm" })
8878
8885
  ] })
8879
8886
  ] })
8880
8887
  ] }) }) }),
8881
8888
  /* @__PURE__ */ f(Ze, { gutter: [24, 12], children: [
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" }) })
8889
+ /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Mt, { checked: k.inApp, onChange: (h) => b({ ...k, inApp: h.target.checked }), children: "In-app" }) }),
8890
+ /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Mt, { checked: k.sms, onChange: (h) => b({ ...k, sms: h.target.checked }), children: "SMS" }) }),
8891
+ /* @__PURE__ */ c(K, { children: /* @__PURE__ */ c(Mt, { checked: k.email, onChange: (h) => b({ ...k, email: h.target.checked }), children: "Email" }) })
8885
8892
  ] })
8886
8893
  ] }),
8887
- /* @__PURE__ */ c(Zt, {}),
8894
+ /* @__PURE__ */ c(zt, {}),
8888
8895
  /* @__PURE__ */ f(st, { className: "gap-3", children: [
8889
8896
  /* @__PURE__ */ c(ze, { onClick: n, disabled: C, children: "Cancel" }),
8890
8897
  /* @__PURE__ */ c(ze, { type: "primary", onClick: G, loading: C, children: "Save" })
@@ -9091,7 +9098,7 @@ const Tc = ({
9091
9098
  /* @__PURE__ */ c(Tr, { boxes: d, priority: n })
9092
9099
  ] });
9093
9100
  }, Ic = ({ items: t }) => {
9094
- const { timeZoneDetails: e } = ts(), s = (i) => i.replace(/([a-z])([A-Z])/g, "$1 $2"), r = (() => {
9101
+ const { timeZoneDetails: e } = ts(), s = (i) => i?.replace(/([a-z])([A-Z])/g, "$1 $2"), r = (() => {
9095
9102
  if (!t?.length || t.length < 2) return null;
9096
9103
  const i = new Date(t[0].timeStamp).getTime(), a = new Date(t[t.length - 1].timeStamp).getTime(), o = Math.floor((a - i) / 1e3), l = a - i, u = Math.floor(o / 3600), m = Math.floor(o % 3600 / 60), d = o % 60, y = l % 1e3;
9097
9104
  return [
@@ -9160,11 +9167,11 @@ const Tc = ({
9160
9167
  onAlertView: l,
9161
9168
  showAlertTimeline: u
9162
9169
  }) => {
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(
9170
+ const [m, d] = S(), [y, p] = S(""), [w, 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(
9164
9171
  null
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) => {
9166
- const Ie = ce[w];
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: [
9172
+ ), [O, N] = S(!1), [v, E] = S(!1), [T, D] = S(void 0), [L, _] = S(void 0), [Y, j] = S({}), [ce, me] = S({}), Oe = (A, H, ae) => {
9173
+ const Ie = ce[A];
9174
+ return Y[A] === !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: [
9168
9175
  /* @__PURE__ */ c(Er, { size: 40 }),
9169
9176
  /* @__PURE__ */ c("span", { className: "text-sm", children: "Media not available" })
9170
9177
  ] }) : /* @__PURE__ */ f("div", { className: "relative w-full flex justify-center items-center min-h-[200px]", children: [
@@ -9172,13 +9179,13 @@ const Tc = ({
9172
9179
  /* @__PURE__ */ c(
9173
9180
  bc,
9174
9181
  {
9175
- url: w,
9182
+ url: A,
9176
9183
  alt: H.caption || `media-${ae}`,
9177
9184
  isLoading: Ie,
9178
9185
  priority: be,
9179
9186
  detections: Be,
9180
- onLoadSuccess: () => me((Re) => ({ ...Re, [w]: !1 })),
9181
- onError: () => me((Re) => ({ ...Re, [w]: !1 }))
9187
+ onLoadSuccess: () => me((Re) => ({ ...Re, [A]: !1 })),
9188
+ onError: () => me((Re) => ({ ...Re, [A]: !1 }))
9182
9189
  }
9183
9190
  )
9184
9191
  ] });
@@ -9195,26 +9202,26 @@ const Tc = ({
9195
9202
  statusType: Ke,
9196
9203
  id: Me,
9197
9204
  alertDetails: we,
9198
- statusHistory: Pt,
9205
+ statusHistory: Wt,
9199
9206
  mediaDetails: pt,
9200
9207
  alertNumber: Nt
9201
9208
  } = te, nt = te.bbox_xyxy, Be = ve(
9202
9209
  () => nt ? [{ bbox_xyxy: nt, personName: te.personName }] : [],
9203
9210
  [nt, te.personName]
9204
- ), Tt = g.tenant === "snl" ? ke || Se || "Alert Event" : Se || "Alert Event", bt = (w) => {
9205
- const H = String(w || "").toLowerCase();
9211
+ ), Tt = g.tenant === "snl" ? ke || Se || "Alert Event" : Se || "Alert Event", bt = (A) => {
9212
+ const H = String(A || "").toLowerCase();
9206
9213
  return H === "delivered" || H === "sent" ? "Delivered" : H === "failed" ? "Failed" : "Queued";
9207
- }, xe = (w) => ({
9208
- name: w?.receipientName || w?.recipientName || "-",
9209
- role: w?.receipientRoleName || "",
9210
- phone: w?.receipentPhoneNumber || w?.recipientPhoneNumber || w?.receipientEmail || w?.recipientEmail || "",
9211
- status: bt(w?.messageStatus),
9212
- notificationReceipientType: w?.notificationReceipientType || "",
9213
- sentAt: w?.sentAt || ""
9214
- }), It = (w, H) => {
9215
- const ae = H.map(xe), Ie = ae.filter((le) => le.status === "Delivered").length, Re = H.map((le) => le?.sentAt).filter(Boolean).sort((le, Tn) => new Date(le).getTime() - new Date(Tn).getTime())[0], fe = `${w} Notification`;
9214
+ }, xe = (A) => ({
9215
+ name: A?.receipientName || A?.recipientName || "-",
9216
+ role: A?.receipientRoleName || "",
9217
+ phone: A?.receipentPhoneNumber || A?.recipientPhoneNumber || A?.receipientEmail || A?.recipientEmail || "",
9218
+ status: bt(A?.messageStatus),
9219
+ notificationReceipientType: A?.notificationReceipientType || "",
9220
+ sentAt: A?.sentAt || ""
9221
+ }), It = (A, H) => {
9222
+ const ae = H.map(xe), Ie = ae.filter((le) => le.status === "Delivered").length, Re = H.map((le) => le?.sentAt).filter(Boolean).sort((le, Tn) => new Date(le).getTime() - new Date(Tn).getTime())[0], fe = `${A} Notification`;
9216
9223
  return {
9217
- channelLabel: `${w} Notification`,
9224
+ channelLabel: `${A} Notification`,
9218
9225
  sentAt: Re || "",
9219
9226
  messageTitle: fe,
9220
9227
  messageBody: "",
@@ -9222,17 +9229,17 @@ const Tc = ({
9222
9229
  delivered: Ie,
9223
9230
  recipients: ae
9224
9231
  };
9225
- }, Os = (w) => {
9232
+ }, Os = (A) => {
9226
9233
  const H = /* @__PURE__ */ new Map();
9227
- return (w || []).forEach((ae) => {
9234
+ return (A || []).forEach((ae) => {
9228
9235
  const Ie = String(ae?.notificationType || "Unknown"), Re = H.get(Ie) || [];
9229
9236
  Re.push(ae), H.set(Ie, Re);
9230
9237
  }), Array.from(H.entries()).map(
9231
9238
  ([ae, Ie]) => It(ae, Ie)
9232
9239
  );
9233
- }, Ms = async (w) => {
9240
+ }, Ms = async (A) => {
9234
9241
  try {
9235
- const H = await G.getAlertNotifications(w), ae = Os(H);
9242
+ const H = await G.getAlertNotifications(A), ae = Os(H);
9236
9243
  Z(ae);
9237
9244
  } catch {
9238
9245
  Z(void 0);
@@ -9240,11 +9247,11 @@ const Tc = ({
9240
9247
  };
9241
9248
  oe(() => {
9242
9249
  if (Q !== "track" || !Me) return;
9243
- let w = !1;
9250
+ let A = !1;
9244
9251
  return Ms(Me).then(() => {
9245
- w && Z(void 0);
9252
+ A && Z(void 0);
9246
9253
  }), () => {
9247
- w = !0;
9254
+ A = !0;
9248
9255
  };
9249
9256
  }, [Q, Me]), oe(() => {
9250
9257
  if (!P) {
@@ -9271,52 +9278,52 @@ const Tc = ({
9271
9278
  ]);
9272
9279
  }, [t]), oe(() => {
9273
9280
  if (!t || g.tenant !== "snl") return;
9274
- let w = !1;
9281
+ let A = !1;
9275
9282
  return N(!0), h.getLookups().then((H) => {
9276
- w || (ye(H.alertStatusTypes ?? []), N(!1));
9283
+ A || (ye(H.alertStatusTypes ?? []), N(!1));
9277
9284
  }).catch(() => {
9278
- w || (ye([]), N(!1));
9285
+ A || (ye([]), N(!1));
9279
9286
  }), () => {
9280
- w = !0;
9287
+ A = !0;
9281
9288
  };
9282
9289
  }, [t, g.tenant]);
9283
- const wn = o === "archived" || ["completed", "false positive"].includes(String(Ke || "").toLowerCase()), An = (w) => {
9284
- const H = String(w?.value || "").toLowerCase(), ae = String(w?.statusName || "").toLowerCase();
9290
+ const wn = o === "archived" || ["completed", "false positive"].includes(String(Ke || "").toLowerCase()), An = (A) => {
9291
+ const H = String(A?.value || "").toLowerCase(), ae = String(A?.statusName || "").toLowerCase();
9285
9292
  return H.includes("reopen") || ae.includes("reopen");
9286
- }, Nn = String(pe || "").trim().toLowerCase(), U = Ec[Nn] ?? "general", se = r.filter((w) => {
9287
- const H = An(w);
9293
+ }, Nn = String(pe || "").trim().toLowerCase(), U = Ec[Nn] ?? "general", se = r.filter((A) => {
9294
+ const H = An(A);
9288
9295
  return typeof o < "u" ? o === "archived" ? H : !H : wn ? H : !H;
9289
- }).map((w) => ({ value: w.value, label: w.statusName })), J = ie ?? [], V = (w) => !!w.isWatchListStatus, de = (w) => !!w.isWeapontStatus, z = J.filter((w) => {
9296
+ }).map((A) => ({ value: A.value, label: A.statusName })), J = ie ?? [], V = (A) => !!A.isWatchListStatus, de = (A) => !!A.isWeapontStatus, z = J.filter((A) => {
9290
9297
  switch (U) {
9291
9298
  case "elopement":
9292
- return w.isElopementStatus;
9299
+ return A.isElopementStatus;
9293
9300
  case "watchlist":
9294
- return V(w);
9301
+ return V(A);
9295
9302
  case "weapon":
9296
- return de(w);
9303
+ return de(A);
9297
9304
  default:
9298
- return !w.isElopementStatus && !V(w) && !de(w);
9305
+ return !A.isElopementStatus && !V(A) && !de(A);
9299
9306
  }
9300
- }).map((w) => ({ value: w.alertStatusTypeName, label: w.alertStatusTypeName })), ne = g.tenant === "snl" && ie !== null ? z : se, rt = ve(() => Nr(pt), [pt]);
9307
+ }).map((A) => ({ value: A.alertStatusTypeName, label: A.alertStatusTypeName })), ne = g.tenant === "snl" && ie !== null ? z : se, rt = ve(() => Nr(pt), [pt]);
9301
9308
  return oe(() => {
9302
- let w = !1;
9309
+ let A = !1;
9303
9310
  const H = new AbortController(), ae = async (fe) => {
9304
9311
  if (fe) {
9305
- w || j((le) => ({ ...le, [fe]: !1 }));
9312
+ A || j((le) => ({ ...le, [fe]: !1 }));
9306
9313
  try {
9307
9314
  const le = await fetch(fe, { method: "HEAD", signal: H.signal });
9308
9315
  if (le.ok) {
9309
- w || j((Wt) => ({ ...Wt, [fe]: !0 }));
9316
+ A || j((Vt) => ({ ...Vt, [fe]: !0 }));
9310
9317
  return;
9311
9318
  }
9312
9319
  if (le.status === 404) {
9313
- w || j((Wt) => ({ ...Wt, [fe]: !1 }));
9320
+ A || j((Vt) => ({ ...Vt, [fe]: !1 }));
9314
9321
  return;
9315
9322
  }
9316
9323
  if (!(await fetch(fe, { method: "GET", signal: H.signal })).ok) throw new Error("Media not available");
9317
- w || j((Wt) => ({ ...Wt, [fe]: !0 }));
9324
+ A || j((Vt) => ({ ...Vt, [fe]: !0 }));
9318
9325
  } catch {
9319
- w || j((le) => ({ ...le, [fe]: !1 }));
9326
+ A || j((le) => ({ ...le, [fe]: !1 }));
9320
9327
  }
9321
9328
  }
9322
9329
  };
@@ -9325,7 +9332,7 @@ const Tc = ({
9325
9332
  return Ie.forEach((fe) => {
9326
9333
  Re[fe] = !0;
9327
9334
  }), me(Re), Ie.forEach((fe) => ae(fe)), () => {
9328
- w = !0, H.abort();
9335
+ A = !0, H.abort();
9329
9336
  };
9330
9337
  }, [rt]), /* @__PURE__ */ c(
9331
9338
  zi,
@@ -9333,6 +9340,8 @@ const Tc = ({
9333
9340
  open: t,
9334
9341
  onCancel: e,
9335
9342
  width: 1e3,
9343
+ closable: !v,
9344
+ maskClosable: !v,
9336
9345
  footer: Q === "details" ? /* @__PURE__ */ f("div", { className: "flex flex-row gap-2 justify-start", children: [
9337
9346
  /* @__PURE__ */ c(
9338
9347
  ze,
@@ -9345,13 +9354,13 @@ const Tc = ({
9345
9354
  /* @__PURE__ */ c(ze, { type: "primary", onClick: async () => {
9346
9355
  try {
9347
9356
  k(!0);
9348
- const w = {
9357
+ const A = {
9349
9358
  alertUniqueId: P,
9350
9359
  alertId: Me,
9351
9360
  status: m ? String(m) : void 0,
9352
9361
  notes: y.trim(),
9353
9362
  modifiedBy: 0
9354
- }, H = await R.mutateAsync(w);
9363
+ }, H = await R.mutateAsync(A);
9355
9364
  if (H?.responseStatus || H?.Success) {
9356
9365
  const ae = H?.Message || H?.data || "Alert updated successfully.";
9357
9366
  Ee.success(ae, {
@@ -9364,18 +9373,18 @@ const Tc = ({
9364
9373
  const ae = H?.errorMessage || H?.Message || "Failed to update alert status";
9365
9374
  Ee.error(ae);
9366
9375
  }
9367
- } catch (w) {
9368
- console.error("Error updating alert status:", w), Ee.error("Failed to update alert status. Please try again.");
9376
+ } catch (A) {
9377
+ console.error("Error updating alert status:", A), Ee.error("Failed to update alert status. Please try again.");
9369
9378
  } finally {
9370
9379
  k(!1);
9371
9380
  }
9372
- }, loading: v, children: v ? "Saving..." : "Save Changes" })
9381
+ }, loading: w, children: w ? "Saving..." : "Save Changes" })
9373
9382
  ] }) : null,
9374
9383
  children: s && /* @__PURE__ */ c(
9375
9384
  on,
9376
9385
  {
9377
9386
  activeKey: Q,
9378
- onChange: (w) => x(w),
9387
+ onChange: (A) => x(A),
9379
9388
  items: [
9380
9389
  {
9381
9390
  key: "details",
@@ -9454,7 +9463,7 @@ const Tc = ({
9454
9463
  {
9455
9464
  placeholder: "Change Status",
9456
9465
  className: "w-full text-gray-500",
9457
- onChange: (w) => d(w),
9466
+ onChange: (A) => d(A),
9458
9467
  value: m,
9459
9468
  options: ne,
9460
9469
  loading: g.tenant === "snl" ? O : i
@@ -9476,7 +9485,7 @@ const Tc = ({
9476
9485
  placeholder: "Enter details...",
9477
9486
  className: "w-full text-gray-500 h-20 border border-grey-500 rounded-md p-2",
9478
9487
  value: y,
9479
- onChange: (w) => p(w.target.value)
9488
+ onChange: (A) => p(A.target.value)
9480
9489
  }
9481
9490
  )
9482
9491
  ] })
@@ -9509,8 +9518,8 @@ const Tc = ({
9509
9518
  )
9510
9519
  ] }) : null
9511
9520
  ] }),
9512
- rt.length ? /* @__PURE__ */ c("div", { className: "w-full", children: /* @__PURE__ */ c(Hi, { ref: q, dots: !0, className: "w-full", children: rt.map((w, H) => {
9513
- const ae = w.mediaUrl || w, Ie = Gs(w);
9521
+ rt.length ? /* @__PURE__ */ c("div", { className: "w-full", children: /* @__PURE__ */ c(Hi, { ref: q, dots: !0, className: "w-full", children: rt.map((A, H) => {
9522
+ const ae = A.mediaUrl || A, Ie = Gs(A);
9514
9523
  return /* @__PURE__ */ f(
9515
9524
  "div",
9516
9525
  {
@@ -9528,13 +9537,13 @@ const Tc = ({
9528
9537
  "Your browser does not support the video tag."
9529
9538
  ]
9530
9539
  }
9531
- ) : Oe(String(ae), w, H),
9532
- w.caption && /* @__PURE__ */ c("p", { className: "text-xs text-gray-500 mt-1", children: w.caption }),
9540
+ ) : Oe(String(ae), A, H),
9541
+ A.caption && /* @__PURE__ */ c("p", { className: "text-xs text-gray-500 mt-1", children: A.caption }),
9533
9542
  !Ie && Y[String(ae)] ? /* @__PURE__ */ c(
9534
9543
  "button",
9535
9544
  {
9536
9545
  onClick: () => {
9537
- E(!0), D(ae), _(w.type || "image");
9546
+ E(!0), D(ae), _(A.type || "image");
9538
9547
  },
9539
9548
  className: "absolute bottom-3 right-3 text-white bg-black/50 rounded-full p-2 hover:bg-black/70",
9540
9549
  children: /* @__PURE__ */ c(eo, { size: 20 })
@@ -9551,7 +9560,7 @@ const Tc = ({
9551
9560
  /* @__PURE__ */ c(
9552
9561
  kr,
9553
9562
  {
9554
- isOpen: A,
9563
+ isOpen: v,
9555
9564
  onClose: () => E(!1),
9556
9565
  src: T || "",
9557
9566
  type: L || "image",
@@ -9574,7 +9583,7 @@ const Tc = ({
9574
9583
  priority: be,
9575
9584
  spaceName: ue,
9576
9585
  alertNumber: Nt,
9577
- statusHistory: Pt,
9586
+ statusHistory: Wt,
9578
9587
  notifGroups: C
9579
9588
  }
9580
9589
  )
@@ -9610,7 +9619,7 @@ function Ri({
9610
9619
  onAlertView: l,
9611
9620
  showAlertTimeline: u
9612
9621
  }) {
9613
- const [m, d] = S(!1), [y, p] = S(null), [v, k] = S("details"), { list: b, loading: B } = Mc(), { timeZoneDetails: q } = ts(), Q = q?.timeZoneName ?? "UTC", x = q?.ianaTimeZoneId ?? "UTC";
9622
+ const [m, d] = S(!1), [y, p] = S(null), [w, k] = S("details"), { list: b, loading: B } = Mc(), { timeZoneDetails: q } = ts(), Q = q?.timeZoneName ?? "UTC", x = q?.ianaTimeZoneId ?? "UTC";
9614
9623
  function C(ie, ye) {
9615
9624
  p(ie), k(ye?.tab ?? "details"), G(ye?.sourceTab ?? "active"), d(!0);
9616
9625
  }
@@ -9706,7 +9715,7 @@ function Ri({
9706
9715
  },
9707
9716
  alertStatusList: b,
9708
9717
  alertStatusLoading: B,
9709
- initialTab: v,
9718
+ initialTab: w,
9710
9719
  sourceTab: R,
9711
9720
  onAlertView: l,
9712
9721
  showAlertTimeline: u
@@ -9723,20 +9732,20 @@ function Dc() {
9723
9732
  const y = await m.getRules();
9724
9733
  if (!d) return;
9725
9734
  o(Array.isArray(y) ? y : []);
9726
- const p = (y || []).map((v, k) => ({
9727
- RuleId: v.ruleId || v.ruleName || String(k),
9728
- Name: v.ruleName || v.Name || "-",
9729
- Description: v.ruleDesc || v.Description || "",
9735
+ const p = (y || []).map((w, k) => ({
9736
+ RuleId: w.ruleId || w.ruleName || String(k),
9737
+ Name: w.ruleName || w.Name || "-",
9738
+ Description: w.ruleDesc || w.Description || "",
9730
9739
  SeverityId: 0
9731
9740
  }));
9732
9741
  e(p);
9733
9742
  try {
9734
- const v = await m.getLookups(), k = Array.isArray(v?.userRoles) ? v.userRoles.map((b) => ({
9743
+ const w = await m.getLookups(), k = Array.isArray(w?.userRoles) ? w.userRoles.map((b) => ({
9735
9744
  userRoleId: b.userRoleId ?? b.id,
9736
9745
  userRoleName: b.userRoleName ?? b.name
9737
9746
  })) : [];
9738
9747
  n(k), i(
9739
- Array.isArray(v?.severities) ? v.severities : []
9748
+ Array.isArray(w?.severities) ? w.severities : []
9740
9749
  );
9741
9750
  } catch {
9742
9751
  }
@@ -9820,9 +9829,9 @@ function Zc({
9820
9829
  () => new ea({
9821
9830
  defaultOptions: {
9822
9831
  queries: {
9823
- retry: (v, k) => {
9832
+ retry: (w, k) => {
9824
9833
  const b = k.response?.status ?? k?.status;
9825
- return b >= 400 && b <= 500 ? !1 : v < 2;
9834
+ return b >= 400 && b <= 500 ? !1 : w < 2;
9826
9835
  },
9827
9836
  refetchOnWindowFocus: !1
9828
9837
  }