@ssgc/alert-console 2.7.1 → 2.7.2

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
@@ -285,19 +285,19 @@ function ni() {
285
285
  (function(s, n) {
286
286
  t.exports = n();
287
287
  })(si, (function() {
288
- var s = 1e3, n = 6e4, r = 36e5, a = "millisecond", i = "second", l = "minute", o = "hour", u = "day", d = "week", m = "month", v = "quarter", y = "year", k = "date", D = "Invalid Date", M = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Q = /\[([^\]]+)]|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, U = { 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(C) {
288
+ var s = 1e3, n = 6e4, r = 36e5, a = "millisecond", i = "second", l = "minute", o = "hour", u = "day", d = "week", m = "month", v = "quarter", y = "year", k = "date", D = "Invalid Date", E = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, Q = /\[([^\]]+)]|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, U = { 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(C) {
289
289
  var N = ["th", "st", "nd", "rd"], p = C % 100;
290
290
  return "[" + C + (N[(p - 20) % 10] || N[p] || N[0]) + "]";
291
291
  } }, q = function(C, N, p) {
292
- var E = String(C);
293
- return !E || E.length >= N ? C : "" + Array(N + 1 - E.length).join(p) + C;
292
+ var O = String(C);
293
+ return !O || O.length >= N ? C : "" + Array(N + 1 - O.length).join(p) + C;
294
294
  }, w = { s: q, z: function(C) {
295
- var N = -C.utcOffset(), p = Math.abs(N), E = Math.floor(p / 60), A = p % 60;
296
- return (N <= 0 ? "+" : "-") + q(E, 2, "0") + ":" + q(A, 2, "0");
295
+ var N = -C.utcOffset(), p = Math.abs(N), O = Math.floor(p / 60), A = p % 60;
296
+ return (N <= 0 ? "+" : "-") + q(O, 2, "0") + ":" + q(A, 2, "0");
297
297
  }, m: function C(N, p) {
298
298
  if (N.date() < p.date()) return -C(p, N);
299
- var E = 12 * (p.year() - N.year()) + (p.month() - N.month()), A = N.clone().add(E, m), R = p - A < 0, $ = N.clone().add(E + (R ? -1 : 1), m);
300
- return +(-(E + (p - A) / (R ? A - $ : $ - A)) || 0);
299
+ var O = 12 * (p.year() - N.year()) + (p.month() - N.month()), A = N.clone().add(O, m), R = p - A < 0, $ = N.clone().add(O + (R ? -1 : 1), m);
300
+ return +(-(O + (p - A) / (R ? A - $ : $ - A)) || 0);
301
301
  }, a: function(C) {
302
302
  return C < 0 ? Math.ceil(C) || 0 : Math.floor(C);
303
303
  }, p: function(C) {
@@ -308,7 +308,7 @@ function ni() {
308
308
  P[F] = U;
309
309
  var L = "$isDayjsObject", G = function(C) {
310
310
  return C instanceof ae || !(!C || !C[L]);
311
- }, f = function C(N, p, E) {
311
+ }, f = function C(N, p, O) {
312
312
  var A;
313
313
  if (!N) return F;
314
314
  if (typeof N == "string") {
@@ -320,13 +320,13 @@ function ni() {
320
320
  var Y = N.name;
321
321
  P[Y] = N, A = Y;
322
322
  }
323
- return !E && A && (F = A), A || !E && F;
323
+ return !O && A && (F = A), A || !O && F;
324
324
  }, g = function(C, N) {
325
325
  if (G(C)) return C.clone();
326
326
  var p = typeof N == "object" ? N : {};
327
327
  return p.date = C, p.args = arguments, new ae(p);
328
- }, O = w;
329
- O.l = f, O.i = G, O.w = function(C, N) {
328
+ }, M = w;
329
+ M.l = f, M.i = G, M.w = function(C, N) {
330
330
  return g(C, { locale: N.$L, utc: N.$u, x: N.$x, $offset: N.$offset });
331
331
  };
332
332
  var ae = (function() {
@@ -335,13 +335,13 @@ function ni() {
335
335
  }
336
336
  var N = C.prototype;
337
337
  return N.parse = function(p) {
338
- this.$d = (function(E) {
339
- var A = E.date, R = E.utc;
338
+ this.$d = (function(O) {
339
+ var A = O.date, R = O.utc;
340
340
  if (A === null) return /* @__PURE__ */ new Date(NaN);
341
- if (O.u(A)) return /* @__PURE__ */ new Date();
341
+ if (M.u(A)) return /* @__PURE__ */ new Date();
342
342
  if (A instanceof Date) return new Date(A);
343
343
  if (typeof A == "string" && !/Z$/i.test(A)) {
344
- var $ = A.match(M);
344
+ var $ = A.match(E);
345
345
  if ($) {
346
346
  var Y = $[2] - 1 || 0, X = ($[7] || "0").substring(0, 3);
347
347
  return R ? new Date(Date.UTC($[1], Y, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, X)) : new Date($[1], Y, $[3] || 1, $[4] || 0, $[5] || 0, $[6] || 0, X);
@@ -353,28 +353,28 @@ function ni() {
353
353
  var p = this.$d;
354
354
  this.$y = p.getFullYear(), this.$M = p.getMonth(), this.$D = p.getDate(), this.$W = p.getDay(), this.$H = p.getHours(), this.$m = p.getMinutes(), this.$s = p.getSeconds(), this.$ms = p.getMilliseconds();
355
355
  }, N.$utils = function() {
356
- return O;
356
+ return M;
357
357
  }, N.isValid = function() {
358
358
  return this.$d.toString() !== D;
359
- }, N.isSame = function(p, E) {
359
+ }, N.isSame = function(p, O) {
360
360
  var A = g(p);
361
- return this.startOf(E) <= A && A <= this.endOf(E);
362
- }, N.isAfter = function(p, E) {
363
- return g(p) < this.startOf(E);
364
- }, N.isBefore = function(p, E) {
365
- return this.endOf(E) < g(p);
366
- }, N.$g = function(p, E, A) {
367
- return O.u(p) ? this[E] : this.set(A, p);
361
+ return this.startOf(O) <= A && A <= this.endOf(O);
362
+ }, N.isAfter = function(p, O) {
363
+ return g(p) < this.startOf(O);
364
+ }, N.isBefore = function(p, O) {
365
+ return this.endOf(O) < g(p);
366
+ }, N.$g = function(p, O, A) {
367
+ return M.u(p) ? this[O] : this.set(A, p);
368
368
  }, N.unix = function() {
369
369
  return Math.floor(this.valueOf() / 1e3);
370
370
  }, N.valueOf = function() {
371
371
  return this.$d.getTime();
372
- }, N.startOf = function(p, E) {
373
- var A = this, R = !!O.u(E) || E, $ = O.p(p), Y = function(ge, ce) {
374
- var oe = O.w(A.$u ? Date.UTC(A.$y, ce, ge) : new Date(A.$y, ce, ge), A);
372
+ }, N.startOf = function(p, O) {
373
+ var A = this, R = !!M.u(O) || O, $ = M.p(p), Y = function(ge, ce) {
374
+ var oe = M.w(A.$u ? Date.UTC(A.$y, ce, ge) : new Date(A.$y, ce, ge), A);
375
375
  return R ? oe : oe.endOf(u);
376
376
  }, X = function(ge, ce) {
377
- return O.w(A.toDate()[ge].apply(A.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), A);
377
+ return M.w(A.toDate()[ge].apply(A.toDate("s"), (R ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(ce)), A);
378
378
  }, re = this.$W, ie = this.$M, le = this.$D, ke = "set" + (this.$u ? "UTC" : "");
379
379
  switch ($) {
380
380
  case y:
@@ -398,39 +398,39 @@ function ni() {
398
398
  }
399
399
  }, N.endOf = function(p) {
400
400
  return this.startOf(p, !1);
401
- }, N.$set = function(p, E) {
402
- var A, R = O.p(p), $ = "set" + (this.$u ? "UTC" : ""), Y = (A = {}, A[u] = $ + "Date", A[k] = $ + "Date", A[m] = $ + "Month", A[y] = $ + "FullYear", A[o] = $ + "Hours", A[l] = $ + "Minutes", A[i] = $ + "Seconds", A[a] = $ + "Milliseconds", A)[R], X = R === u ? this.$D + (E - this.$W) : E;
401
+ }, N.$set = function(p, O) {
402
+ var A, R = M.p(p), $ = "set" + (this.$u ? "UTC" : ""), Y = (A = {}, A[u] = $ + "Date", A[k] = $ + "Date", A[m] = $ + "Month", A[y] = $ + "FullYear", A[o] = $ + "Hours", A[l] = $ + "Minutes", A[i] = $ + "Seconds", A[a] = $ + "Milliseconds", A)[R], X = R === u ? this.$D + (O - this.$W) : O;
403
403
  if (R === m || R === y) {
404
404
  var re = this.clone().set(k, 1);
405
405
  re.$d[Y](X), re.init(), this.$d = re.set(k, Math.min(this.$D, re.daysInMonth())).$d;
406
406
  } else Y && this.$d[Y](X);
407
407
  return this.init(), this;
408
- }, N.set = function(p, E) {
409
- return this.clone().$set(p, E);
408
+ }, N.set = function(p, O) {
409
+ return this.clone().$set(p, O);
410
410
  }, N.get = function(p) {
411
- return this[O.p(p)]();
412
- }, N.add = function(p, E) {
411
+ return this[M.p(p)]();
412
+ }, N.add = function(p, O) {
413
413
  var A, R = this;
414
414
  p = Number(p);
415
- var $ = O.p(E), Y = function(ie) {
415
+ var $ = M.p(O), Y = function(ie) {
416
416
  var le = g(R);
417
- return O.w(le.date(le.date() + Math.round(ie * p)), R);
417
+ return M.w(le.date(le.date() + Math.round(ie * p)), R);
418
418
  };
419
419
  if ($ === m) return this.set(m, this.$M + p);
420
420
  if ($ === y) return this.set(y, this.$y + p);
421
421
  if ($ === u) return Y(1);
422
422
  if ($ === d) return Y(7);
423
423
  var X = (A = {}, A[l] = n, A[o] = r, A[i] = s, A)[$] || 1, re = this.$d.getTime() + p * X;
424
- return O.w(re, this);
425
- }, N.subtract = function(p, E) {
426
- return this.add(-1 * p, E);
424
+ return M.w(re, this);
425
+ }, N.subtract = function(p, O) {
426
+ return this.add(-1 * p, O);
427
427
  }, N.format = function(p) {
428
- var E = this, A = this.$locale();
428
+ var O = this, A = this.$locale();
429
429
  if (!this.isValid()) return A.invalidDate || D;
430
- var R = p || "YYYY-MM-DDTHH:mm:ssZ", $ = O.z(this), Y = this.$H, X = this.$m, re = this.$M, ie = A.weekdays, le = A.months, ke = A.meridiem, de = function(ce, oe, xe, Re) {
431
- return ce && (ce[oe] || ce(E, R)) || xe[oe].slice(0, Re);
430
+ var R = p || "YYYY-MM-DDTHH:mm:ssZ", $ = M.z(this), Y = this.$H, X = this.$m, re = this.$M, ie = A.weekdays, le = A.months, ke = A.meridiem, de = function(ce, oe, xe, Re) {
431
+ return ce && (ce[oe] || ce(O, R)) || xe[oe].slice(0, Re);
432
432
  }, he = function(ce) {
433
- return O.s(Y % 12 || 12, ce, "0");
433
+ return M.s(Y % 12 || 12, ce, "0");
434
434
  }, ge = ke || function(ce, oe, xe) {
435
435
  var Re = ce < 12 ? "AM" : "PM";
436
436
  return xe ? Re.toLowerCase() : Re;
@@ -439,33 +439,33 @@ function ni() {
439
439
  return oe || (function(xe) {
440
440
  switch (xe) {
441
441
  case "YY":
442
- return String(E.$y).slice(-2);
442
+ return String(O.$y).slice(-2);
443
443
  case "YYYY":
444
- return O.s(E.$y, 4, "0");
444
+ return M.s(O.$y, 4, "0");
445
445
  case "M":
446
446
  return re + 1;
447
447
  case "MM":
448
- return O.s(re + 1, 2, "0");
448
+ return M.s(re + 1, 2, "0");
449
449
  case "MMM":
450
450
  return de(A.monthsShort, re, le, 3);
451
451
  case "MMMM":
452
452
  return de(le, re);
453
453
  case "D":
454
- return E.$D;
454
+ return O.$D;
455
455
  case "DD":
456
- return O.s(E.$D, 2, "0");
456
+ return M.s(O.$D, 2, "0");
457
457
  case "d":
458
- return String(E.$W);
458
+ return String(O.$W);
459
459
  case "dd":
460
- return de(A.weekdaysMin, E.$W, ie, 2);
460
+ return de(A.weekdaysMin, O.$W, ie, 2);
461
461
  case "ddd":
462
- return de(A.weekdaysShort, E.$W, ie, 3);
462
+ return de(A.weekdaysShort, O.$W, ie, 3);
463
463
  case "dddd":
464
- return ie[E.$W];
464
+ return ie[O.$W];
465
465
  case "H":
466
466
  return String(Y);
467
467
  case "HH":
468
- return O.s(Y, 2, "0");
468
+ return M.s(Y, 2, "0");
469
469
  case "h":
470
470
  return he(1);
471
471
  case "hh":
@@ -477,13 +477,13 @@ function ni() {
477
477
  case "m":
478
478
  return String(X);
479
479
  case "mm":
480
- return O.s(X, 2, "0");
480
+ return M.s(X, 2, "0");
481
481
  case "s":
482
- return String(E.$s);
482
+ return String(O.$s);
483
483
  case "ss":
484
- return O.s(E.$s, 2, "0");
484
+ return M.s(O.$s, 2, "0");
485
485
  case "SSS":
486
- return O.s(E.$ms, 3, "0");
486
+ return M.s(O.$ms, 3, "0");
487
487
  case "Z":
488
488
  return $;
489
489
  }
@@ -492,9 +492,9 @@ function ni() {
492
492
  }));
493
493
  }, N.utcOffset = function() {
494
494
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
495
- }, N.diff = function(p, E, A) {
496
- var R, $ = this, Y = O.p(E), X = g(p), re = (X.utcOffset() - this.utcOffset()) * n, ie = this - X, le = function() {
497
- return O.m($, X);
495
+ }, N.diff = function(p, O, A) {
496
+ var R, $ = this, Y = M.p(O), X = g(p), re = (X.utcOffset() - this.utcOffset()) * n, ie = this - X, le = function() {
497
+ return M.m($, X);
498
498
  };
499
499
  switch (Y) {
500
500
  case y:
@@ -524,17 +524,17 @@ function ni() {
524
524
  default:
525
525
  R = ie;
526
526
  }
527
- return A ? R : O.a(R);
527
+ return A ? R : M.a(R);
528
528
  }, N.daysInMonth = function() {
529
529
  return this.endOf(m).$D;
530
530
  }, N.$locale = function() {
531
531
  return P[this.$L];
532
- }, N.locale = function(p, E) {
532
+ }, N.locale = function(p, O) {
533
533
  if (!p) return this.$L;
534
- var A = this.clone(), R = f(p, E, !0);
534
+ var A = this.clone(), R = f(p, O, !0);
535
535
  return R && (A.$L = R), A;
536
536
  }, N.clone = function() {
537
- return O.w(this.$d, this);
537
+ return M.w(this.$d, this);
538
538
  }, N.toDate = function() {
539
539
  return new Date(this.valueOf());
540
540
  }, N.toJSON = function() {
@@ -922,7 +922,7 @@ function di(t) {
922
922
  if (f.status !== "fulfilled") return [];
923
923
  const g = f.value;
924
924
  return Array.isArray(g) ? g : Array.isArray(g?.Data) ? g.Data : Array.isArray(g?.data) ? g.data : [];
925
- }, y = v(i), k = v(l), D = v(o), M = v(u), Q = v(d), U = m.status === "fulfilled" ? m.value : null;
925
+ }, y = v(i), k = v(l), D = v(o), E = v(u), Q = v(d), U = m.status === "fulfilled" ? m.value : null;
926
926
  let q = [];
927
927
  Array.isArray(U) ? q = U : Array.isArray(U?.Data) ? q = U.Data : Array.isArray(U?.data) && (q = U.data);
928
928
  const w = y.map((f) => ({
@@ -942,7 +942,7 @@ function di(t) {
942
942
  anomalies: F,
943
943
  thirdParties: P
944
944
  };
945
- return M.length && (G.severities = M.map((f) => ({
945
+ return E.length && (G.severities = E.map((f) => ({
946
946
  severityId: f?.SeverityId ?? f?.severityId,
947
947
  severityName: f?.DisplayName ?? f?.SeverityName ?? f?.Name ?? f?.name ?? ""
948
948
  }))), Q.length && (G.scheduleTypes = Q), L.length && (G.userRoles = L), G;
@@ -1045,7 +1045,7 @@ function fi(t) {
1045
1045
  if (L.status !== "fulfilled") return [];
1046
1046
  const G = L.value;
1047
1047
  return Array.isArray(G) ? G : Array.isArray(G?.data) ? G.data : [];
1048
- }, v = m(i), y = m(l), k = m(o), D = m(u), M = d.status === "fulfilled" ? d.value : null, Q = v.map((L) => ({
1048
+ }, v = m(i), y = m(l), k = m(o), D = m(u), E = d.status === "fulfilled" ? d.value : null, Q = v.map((L) => ({
1049
1049
  actionTypeId: L?.ActionTypeUniqueId,
1050
1050
  name: L?.Name ?? ""
1051
1051
  })), U = y.map((L) => ({
@@ -1056,7 +1056,7 @@ function fi(t) {
1056
1056
  thirdPartyName: L?.ThirdPartyName ?? L?.Name ?? ""
1057
1057
  }));
1058
1058
  let w = [];
1059
- Array.isArray(M) ? w = M : Array.isArray(M?.Data) ? w = M.Data : Array.isArray(M?.data) && (w = M.data);
1059
+ Array.isArray(E) ? w = E : Array.isArray(E?.Data) ? w = E.Data : Array.isArray(E?.data) && (w = E.data);
1060
1060
  const F = w.map((L) => ({
1061
1061
  userRoleId: L.userRoleId ?? 0,
1062
1062
  userRoleName: L.userRoleName ?? ""
@@ -1427,11 +1427,11 @@ function Oi({
1427
1427
  ] });
1428
1428
  }
1429
1429
  function fr({ data: t, loading: e = !1, pageSize: s = 10, total: n, currentPage: r, columns: a, severityOptions: i, anomalyOptions: l, spaceOptions: o, renderActions: u, onAlertIdClick: d, onRefetch: m, onPageChange: v, onFilterChange: y, excludeCompleted: k = !0, resetKey: D }) {
1430
- const [M, Q] = S("All"), [U, q] = S("All"), [w, F] = S("All"), [P, L] = S("All"), [G, f] = S("");
1430
+ const [E, Q] = S("All"), [U, q] = S("All"), [w, F] = S("All"), [P, L] = S("All"), [G, f] = S("");
1431
1431
  fe(() => {
1432
1432
  D !== void 0 && (Q("All"), q("All"), F("All"), L("All"), f(""));
1433
1433
  }, [D]);
1434
- const [g, O] = S([{ label: "All", value: "All" }]), [ae, Ae] = S([]), [C, N] = S([]), [p, E] = S([]), [A, R] = S(/* @__PURE__ */ new Set()), { rules: $, alerts: Y } = ze(), X = {
1434
+ const [g, M] = S([{ label: "All", value: "All" }]), [ae, Ae] = S([]), [C, N] = S([]), [p, O] = S([]), [A, R] = S(/* @__PURE__ */ new Set()), { rules: $, alerts: Y } = ze(), X = {
1435
1435
  6: { title: "Email", kind: "icon", icon: /* @__PURE__ */ c(Da, {}) },
1436
1436
  7: { title: "SMS", kind: "icon", icon: /* @__PURE__ */ c(Ma, {}) }
1437
1437
  }, re = we(() => vi(t), [t]), ie = we(() => wi(t), [t]);
@@ -1468,7 +1468,7 @@ function fr({ data: t, loading: e = !1, pageSize: s = 10, total: n, currentPage:
1468
1468
  label: Te.severityName,
1469
1469
  value: String(Te.severityId)
1470
1470
  }));
1471
- K && (O([{ label: "All", value: "All" }, ...Se]), Ue.length && N([{ label: "All Types", value: "All" }, ...Ue]), We.length && E([{ label: "All levels", value: "All" }, ...We]));
1471
+ K && (M([{ label: "All", value: "All" }, ...Se]), Ue.length && N([{ label: "All Types", value: "All" }, ...Ue]), We.length && O([{ label: "All levels", value: "All" }, ...We]));
1472
1472
  } catch (z) {
1473
1473
  console.error("Error loading filter options", z);
1474
1474
  }
@@ -1485,18 +1485,18 @@ function fr({ data: t, loading: e = !1, pageSize: s = 10, total: n, currentPage:
1485
1485
  const K = {
1486
1486
  anomalyId: C.length > 1 && U !== "All" ? U : void 0,
1487
1487
  spaceId: ae.length > 1 && w !== "All" ? Number(w) : void 0,
1488
- severityId: p.length > 1 && M !== "All" ? Number(M) : void 0,
1488
+ severityId: p.length > 1 && E !== "All" ? Number(E) : void 0,
1489
1489
  thirdPartyIds: P === "All" ? void 0 : [Number(P)]
1490
1490
  };
1491
1491
  y(K), v?.(1);
1492
- }, [U, w, M, P, C.length, ae.length, p.length]);
1492
+ }, [U, w, E, P, C.length, ae.length, p.length]);
1493
1493
  const ke = we(() => {
1494
1494
  const K = !!y;
1495
1495
  return (t || []).filter((z) => {
1496
- const me = K || M === "All" || (p.length > 1 ? String(z.severityId) === String(M) : z.priority === M), Se = `${z.id} ${z.description} ${z.statusType}`.toLowerCase(), Ie = !G || Se.includes(G.toLowerCase()), Ue = K || U === "All" || (C.length > 1 ? String(z.anomalyId) === String(U) : (z.anomalyName || "").toLowerCase() === U.toLowerCase()), _e = K || w === "All" || (ae.length > 1 ? String(z.spaceId) === String(w) : (z.spaceName || "").toLowerCase() === w.toLowerCase()), We = K || !le || P === "All" || Tn(z).includes(Number(P)), Te = !k || !["completed", "false positive"].includes(String(z.statusType || "").toLowerCase());
1496
+ const me = K || E === "All" || (p.length > 1 ? String(z.severityId) === String(E) : z.priority === E), Se = `${z.id} ${z.description} ${z.statusType}`.toLowerCase(), Ie = !G || Se.includes(G.toLowerCase()), Ue = K || U === "All" || (C.length > 1 ? String(z.anomalyId) === String(U) : (z.anomalyName || "").toLowerCase() === U.toLowerCase()), _e = K || w === "All" || (ae.length > 1 ? String(z.spaceId) === String(w) : (z.spaceName || "").toLowerCase() === w.toLowerCase()), We = K || !le || P === "All" || Tn(z).includes(Number(P)), Te = !k || !["completed", "false positive"].includes(String(z.statusType || "").toLowerCase());
1497
1497
  return me && Ie && Ue && _e && We && Te;
1498
1498
  });
1499
- }, [t, M, G, U, w, P, le, k, ae, C, p, y]), de = l?.length ? l : re, he = C.length > 1 ? C : de, ge = o?.length ? o : ie, ce = ae.length > 1 ? ae : ge, oe = p.length > 1 ? p : i, xe = [
1499
+ }, [t, E, G, U, w, P, le, k, ae, C, p, y]), de = l?.length ? l : re, he = C.length > 1 ? C : de, ge = o?.length ? o : ie, ce = ae.length > 1 ? ae : ge, oe = p.length > 1 ? p : i, xe = [
1500
1500
  {
1501
1501
  title: "Severity",
1502
1502
  dataIndex: "priority",
@@ -1629,7 +1629,7 @@ function fr({ data: t, loading: e = !1, pageSize: s = 10, total: n, currentPage:
1629
1629
  toolbar: /* @__PURE__ */ h($e, { gutter: [12, 12], className: "mb-3", align: "middle", children: [
1630
1630
  /* @__PURE__ */ c(J, { flex: "none", children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1631
1631
  /* @__PURE__ */ c("span", { children: "Severity" }),
1632
- /* @__PURE__ */ c(Ti, { value: M, onChange: Q, options: oe })
1632
+ /* @__PURE__ */ c(Ti, { value: E, onChange: Q, options: oe })
1633
1633
  ] }) }),
1634
1634
  /* @__PURE__ */ c(J, { flex: "none", children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
1635
1635
  /* @__PURE__ */ c("span", { children: "Anomaly type" }),
@@ -5052,10 +5052,10 @@ function fl(t) {
5052
5052
  return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
5053
5053
  }
5054
5054
  function hl(t, e) {
5055
- const s = Ke(e), n = Ke(e, "{2}"), r = Ke(e, "{3}"), a = Ke(e, "{4}"), i = Ke(e, "{6}"), l = Ke(e, "{1,2}"), o = Ke(e, "{1,3}"), u = Ke(e, "{1,6}"), d = Ke(e, "{1,9}"), m = Ke(e, "{2,4}"), v = Ke(e, "{4,6}"), y = (M) => ({ regex: RegExp(fl(M.val)), deser: ([Q]) => Q, literal: !0 }), D = ((M) => {
5055
+ const s = Ke(e), n = Ke(e, "{2}"), r = Ke(e, "{3}"), a = Ke(e, "{4}"), i = Ke(e, "{6}"), l = Ke(e, "{1,2}"), o = Ke(e, "{1,3}"), u = Ke(e, "{1,6}"), d = Ke(e, "{1,9}"), m = Ke(e, "{2,4}"), v = Ke(e, "{4,6}"), y = (E) => ({ regex: RegExp(fl(E.val)), deser: ([Q]) => Q, literal: !0 }), D = ((E) => {
5056
5056
  if (t.literal)
5057
- return y(M);
5058
- switch (M.val) {
5057
+ return y(E);
5058
+ switch (E.val) {
5059
5059
  // era
5060
5060
  case "G":
5061
5061
  return Qe(e.eras("short"), 0);
@@ -5170,7 +5170,7 @@ function hl(t, e) {
5170
5170
  case " ":
5171
5171
  return ss(/[^\S\n\r]/);
5172
5172
  default:
5173
- return y(M);
5173
+ return y(E);
5174
5174
  }
5175
5175
  })(t) || {
5176
5176
  invalidReason: ul
@@ -5782,12 +5782,12 @@ class V {
5782
5782
  if (v && d)
5783
5783
  throw new bt("Can't mix ordinal dates with month/day");
5784
5784
  const D = k || a.weekday && !y;
5785
- let M, Q, U = ns(o, u);
5786
- D ? (M = kl, Q = Nl, U = ds(U, i, l)) : d ? (M = Il, Q = bl, U = Rs(U)) : (M = ls, Q = ya);
5785
+ let E, Q, U = ns(o, u);
5786
+ D ? (E = kl, Q = Nl, U = ds(U, i, l)) : d ? (E = Il, Q = bl, U = Rs(U)) : (E = ls, Q = ya);
5787
5787
  let q = !1;
5788
- for (const g of M) {
5789
- const O = a[g];
5790
- Z(O) ? q ? a[g] = Q[g] : a[g] = U[g] : q = !0;
5788
+ for (const g of E) {
5789
+ const M = a[g];
5790
+ Z(M) ? q ? a[g] = Q[g] : a[g] = U[g] : q = !0;
5791
5791
  }
5792
5792
  const w = D ? to(a, i, l) : d ? so(a) : Zr(a), F = w || Br(a);
5793
5793
  if (F)
@@ -7258,7 +7258,7 @@ function Rl({
7258
7258
  } catch {
7259
7259
  be.error("Failed to reopen alert. Please try again.");
7260
7260
  }
7261
- }, M = [
7261
+ }, E = [
7262
7262
  {
7263
7263
  title: "Severity",
7264
7264
  dataIndex: "priority",
@@ -7337,7 +7337,7 @@ function Rl({
7337
7337
  pageSize: s,
7338
7338
  total: n,
7339
7339
  currentPage: r,
7340
- columns: M,
7340
+ columns: E,
7341
7341
  severityOptions: a,
7342
7342
  anomalyOptions: i,
7343
7343
  spaceOptions: l,
@@ -7379,7 +7379,7 @@ function Ul({
7379
7379
  "aria-label": "Analog Clock",
7380
7380
  children: [
7381
7381
  [...Array(12)].map((d, m) => {
7382
- const v = m * 30, y = 6, k = u - 4, D = k - y, M = (v - 90) * (Math.PI / 180), Q = u + D * Math.cos(M), U = u + D * Math.sin(M), q = u + k * Math.cos(M), w = u + k * Math.sin(M);
7382
+ const v = m * 30, y = 6, k = u - 4, D = k - y, E = (v - 90) * (Math.PI / 180), Q = u + D * Math.cos(E), U = u + D * Math.sin(E), q = u + k * Math.cos(E), w = u + k * Math.sin(E);
7383
7383
  return /* @__PURE__ */ c(
7384
7384
  "svg",
7385
7385
  {
@@ -7554,7 +7554,7 @@ function Pl(t) {
7554
7554
  setL2role: y,
7555
7555
  l3mins: k,
7556
7556
  setL3mins: D,
7557
- l3role: M,
7557
+ l3role: E,
7558
7558
  setL3role: Q,
7559
7559
  actions: U,
7560
7560
  setActions: q,
@@ -7565,10 +7565,10 @@ function Pl(t) {
7565
7565
  isAutoExpire: G,
7566
7566
  setAutoExpire: f,
7567
7567
  onClear: g,
7568
- onSave: O,
7568
+ onSave: M,
7569
7569
  saving: ae,
7570
7570
  onActionTypesLoaded: Ae
7571
- } = t, { rules: C, config: N } = ze(), p = N.tenant === "schools", [E, A] = S([]), [R, $] = S([]), [Y, X] = S(!1);
7571
+ } = t, { rules: C, config: N } = ze(), p = N.tenant === "schools", [O, A] = S([]), [R, $] = S([]), [Y, X] = S(!1);
7572
7572
  fe(() => {
7573
7573
  let de = !1;
7574
7574
  return (async () => {
@@ -7589,7 +7589,7 @@ function Pl(t) {
7589
7589
  de = !0;
7590
7590
  };
7591
7591
  }, []);
7592
- const re = typeof i == "number" || typeof o == "number", ie = typeof d == "number" || typeof v == "number", le = typeof i == "number" || typeof o == "number" || typeof d == "number" || typeof v == "number" || typeof k == "number" || typeof M == "number" || Array.isArray(U) && U.length > 0 || Array.isArray(w) && w.length > 0 || !!P || !!G;
7592
+ const re = typeof i == "number" || typeof o == "number", ie = typeof d == "number" || typeof v == "number", le = typeof i == "number" || typeof o == "number" || typeof d == "number" || typeof v == "number" || typeof k == "number" || typeof E == "number" || Array.isArray(U) && U.length > 0 || Array.isArray(w) && w.length > 0 || !!P || !!G;
7593
7593
  return /* @__PURE__ */ h(ys, { spinning: !!ae || Y, children: [
7594
7594
  /* @__PURE__ */ h($e, { gutter: [16, 16], align: "bottom", children: [
7595
7595
  /* @__PURE__ */ c(J, { xs: 24, sm: 12, md: 8, lg: 4, children: /* @__PURE__ */ h("div", { children: [
@@ -7682,7 +7682,7 @@ function Pl(t) {
7682
7682
  {
7683
7683
  placeholder: "Escalate to",
7684
7684
  className: "w-full",
7685
- value: M,
7685
+ value: E,
7686
7686
  onChange: Q,
7687
7687
  options: a
7688
7688
  }
@@ -7699,7 +7699,7 @@ function Pl(t) {
7699
7699
  className: "w-full",
7700
7700
  value: U,
7701
7701
  onChange: q,
7702
- options: E,
7702
+ options: O,
7703
7703
  maxTagCount: 1,
7704
7704
  maxTagPlaceholder: Xs
7705
7705
  }
@@ -7729,7 +7729,7 @@ function Pl(t) {
7729
7729
  ] }) }),
7730
7730
  /* @__PURE__ */ c(J, { xs: 24, sm: 12, md: 8, children: /* @__PURE__ */ h("div", { className: "flex items-center gap-2", children: [
7731
7731
  /* @__PURE__ */ c(Pe, { onClick: g, children: "Clear" }),
7732
- /* @__PURE__ */ c(Pe, { type: "primary", onClick: O, loading: !!ae, disabled: !(!!e && le && !ae), children: "Save" })
7732
+ /* @__PURE__ */ c(Pe, { type: "primary", onClick: M, loading: !!ae, disabled: !(!!e && le && !ae), children: "Save" })
7733
7733
  ] }) })
7734
7734
  ] })
7735
7735
  ] });
@@ -7804,7 +7804,7 @@ function Wl({ entries: t, userRoles: e, onEdit: s, loading: n }) {
7804
7804
  }
7805
7805
  const { Title: Vl, Text: Ws } = Bt;
7806
7806
  function Zl({ userRoles: t, rules: e, rawRules: s }) {
7807
- const { rules: n } = ze(), [r, a] = S(!1), [i, l] = S(!1), [o, u] = S(s), [d, m] = S(), [v, y] = S([]), k = we(() => t.map((w) => ({ label: w.userRoleName, value: w.userRoleId })), [t]), D = we(() => (e || []).map((w) => ({ label: w.Name || "-", value: w.RuleId || w.Name || "" })), [e]), M = we(
7807
+ const { rules: n } = ze(), [r, a] = S(!1), [i, l] = S(!1), [o, u] = S(s), [d, m] = S(), [v, y] = S([]), k = we(() => t.map((w) => ({ label: w.userRoleName, value: w.userRoleId })), [t]), D = we(() => (e || []).map((w) => ({ label: w.Name || "-", value: w.RuleId || w.Name || "" })), [e]), E = we(
7808
7808
  () => (e || []).map((w, F) => ({
7809
7809
  key: w.RuleId || w.Name || String(F),
7810
7810
  ruleName: w.Name || "-",
@@ -7842,14 +7842,14 @@ function Zl({ userRoles: t, rules: e, rawRules: s }) {
7842
7842
  const Q = we(() => {
7843
7843
  if (!Array.isArray(o) || !o.length) return {};
7844
7844
  const w = {};
7845
- for (const F of M) {
7845
+ for (const F of E) {
7846
7846
  const P = o.find(
7847
7847
  (f) => f?.ruleId === F.key || f?.ruleName === F.key || f?.RuleId === F.key || f?.ruleName === F.ruleName || f?.Name === F.ruleName
7848
7848
  ), L = P?.userRoleIds ?? P?.UserRoleIds, G = Array.isArray(L) ? L : [];
7849
7849
  G.length && (w[F.key] = G);
7850
7850
  }
7851
7851
  return w;
7852
- }, [o, M]);
7852
+ }, [o, E]);
7853
7853
  return /* @__PURE__ */ h("div", { className: "w-full", children: [
7854
7854
  /* @__PURE__ */ c(Vl, { level: 4, className: "!mb-4", children: "Alert Assignment" }),
7855
7855
  /* @__PURE__ */ c(ys, { spinning: i || r, children: /* @__PURE__ */ h($e, { gutter: [16, 16], align: "bottom", className: "mb-6", children: [
@@ -7903,7 +7903,7 @@ function Zl({ userRoles: t, rules: e, rawRules: s }) {
7903
7903
  if (!w || !F)
7904
7904
  throw new Error(`Unable to find rule identifier for rule ${d}`);
7905
7905
  const P = v.map((f) => {
7906
- const g = t.find((O) => O.userRoleId === f);
7906
+ const g = t.find((M) => M.userRoleId === f);
7907
7907
  return { id: f, name: g?.userRoleName ?? String(f) };
7908
7908
  }), L = {
7909
7909
  ...w,
@@ -7939,7 +7939,7 @@ function Zl({ userRoles: t, rules: e, rawRules: s }) {
7939
7939
  en,
7940
7940
  {
7941
7941
  rowKey: "key",
7942
- dataSource: M,
7942
+ dataSource: E,
7943
7943
  loading: r,
7944
7944
  pagination: {
7945
7945
  pageSize: 10,
@@ -7981,7 +7981,7 @@ function Vs(t) {
7981
7981
  };
7982
7982
  }
7983
7983
  function Bl({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules: r, onSave: a }) {
7984
- const { rules: i, alerts: l } = ze(), [o, u] = S("By Severity"), [d, m] = S("By severity"), [v, y] = S("By Severity"), [k, D] = S(!1), [M, Q] = S(!1), [U, q] = S(!1), [w, F] = S(null), [P, L] = S("rules"), [G, f] = S(), [g, O] = S(), [ae, Ae] = S(), [C, N] = S(), [p, E] = S(), [A, R] = S(), [$, Y] = S(), [X, re] = S(), [ie, le] = S([]), [ke, de] = S([]), [he, ge] = S(!1), [ce, oe] = S(!1), [xe, Re] = S({}), [K, z] = S({}), [me, Se] = S(s || []), [Ie, Ue] = S([]), [_e, We] = S(!1), [Te, Rt] = S(!1), [Je, mt] = S(n || []);
7984
+ const { rules: i, alerts: l } = ze(), [o, u] = S("By Severity"), [d, m] = S("By severity"), [v, y] = S("By Severity"), [k, D] = S(!1), [E, Q] = S(!1), [U, q] = S(!1), [w, F] = S(null), [P, L] = S("rules"), [G, f] = S(), [g, M] = S(), [ae, Ae] = S(), [C, N] = S(), [p, O] = S(), [A, R] = S(), [$, Y] = S(), [X, re] = S(), [ie, le] = S([]), [ke, de] = S([]), [he, ge] = S(!1), [ce, oe] = S(!1), [xe, Re] = S({}), [K, z] = S({}), [me, Se] = S(s || []), [Ie, Ue] = S([]), [_e, We] = S(!1), [Te, Rt] = S(!1), [Je, mt] = S(n || []);
7985
7985
  fe(() => {
7986
7986
  n && n.length && mt(n);
7987
7987
  }, [n]), fe(() => {
@@ -8048,7 +8048,7 @@ function Bl({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8048
8048
  (ee) => ee?.ruleId === g || ee?.ruleName === g || ee?.RuleId === g
8049
8049
  ), x = Vs(B?.escalationSettings);
8050
8050
  if (x && typeof x == "object") {
8051
- Ae(H(x.level1PostAssistTime)), N(T(x.level1UserRoleId)), E(H(x.level2PostAssistTime)), R(T(x.level2UserRoleId)), Y(H(x.level3PostAssistTime)), re(T(x.level3UserRoleId));
8051
+ Ae(H(x.level1PostAssistTime)), N(T(x.level1UserRoleId)), O(H(x.level2PostAssistTime)), R(T(x.level2UserRoleId)), Y(H(x.level3PostAssistTime)), re(T(x.level3UserRoleId));
8052
8052
  const ee = Array.isArray(x.escalationSettingsActionTypeIds) ? x.escalationSettingsActionTypeIds : [];
8053
8053
  le(ee.map((W) => String(W))), de(Array.isArray(x.thirdPartyId) ? x.thirdPartyId : []), ge(!!x.humanLoop), oe(!!x.isAutoExpire);
8054
8054
  }
@@ -8133,7 +8133,7 @@ function Bl({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8133
8133
  onClear: () => {
8134
8134
  u(v), D(!1);
8135
8135
  },
8136
- saving: M
8136
+ saving: E
8137
8137
  }
8138
8138
  )
8139
8139
  ] })
@@ -8149,7 +8149,7 @@ function Bl({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8149
8149
  selectedSeverity: G,
8150
8150
  setSelectedSeverity: f,
8151
8151
  selectedRule: g,
8152
- setSelectedRule: O,
8152
+ setSelectedRule: M,
8153
8153
  severityOptions: St,
8154
8154
  ruleOptions: ft,
8155
8155
  minsOptions: vt,
@@ -8159,7 +8159,7 @@ function Bl({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8159
8159
  l1role: C,
8160
8160
  setL1role: N,
8161
8161
  l2mins: p,
8162
- setL2mins: E,
8162
+ setL2mins: O,
8163
8163
  l2role: A,
8164
8164
  setL2role: R,
8165
8165
  l3mins: $,
@@ -8173,7 +8173,7 @@ function Bl({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8173
8173
  humanLoop: he,
8174
8174
  setHumanLoop: ge,
8175
8175
  onClear: () => {
8176
- u("By Severity"), m("By severity"), L("rules"), f(void 0), O(void 0), Ae(void 0), N(void 0), E(void 0), R(void 0), Y(void 0), re(void 0), le([]), de([]), ge(!1), oe(!1);
8176
+ u("By Severity"), m("By severity"), L("rules"), f(void 0), M(void 0), Ae(void 0), N(void 0), O(void 0), R(void 0), Y(void 0), re(void 0), le([]), de([]), ge(!1), oe(!1);
8177
8177
  },
8178
8178
  onSave: async () => {
8179
8179
  We(!0), a?.({
@@ -8212,7 +8212,7 @@ function Bl({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8212
8212
  isAutoExpire: ce
8213
8213
  }
8214
8214
  }, W = await i.updateRule(x, ee);
8215
- W?.responseStatus || W?.Success || W?.success ? (be.success("Escalation settings saved"), await Ne(), O(void 0), Ae(void 0), N(void 0), E(void 0), R(void 0), Y(void 0), re(void 0), le([]), de([]), ge(!1), oe(!1)) : be.error(W?.errorMessage || W?.Message || "Error saving Escalation Settings");
8215
+ W?.responseStatus || W?.Success || W?.success ? (be.success("Escalation settings saved"), await Ne(), M(void 0), Ae(void 0), N(void 0), O(void 0), R(void 0), Y(void 0), re(void 0), le([]), de([]), ge(!1), oe(!1)) : be.error(W?.errorMessage || W?.Message || "Error saving Escalation Settings");
8216
8216
  }
8217
8217
  } catch (H) {
8218
8218
  console.error("Error saving escalation settings", H);
@@ -8242,7 +8242,7 @@ function Bl({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8242
8242
  onEdit: (T) => {
8243
8243
  L("rules");
8244
8244
  const H = Ie.find((x) => x.id === T), B = e.find((x) => x.RuleId === T) || (H ? e.find((x) => x.Name === H.ruleOrSeverityLabel) : void 0);
8245
- O(B ? B.RuleId : T);
8245
+ M(B ? B.RuleId : T);
8246
8246
  }
8247
8247
  }
8248
8248
  ),
@@ -8256,21 +8256,21 @@ function kc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8256
8256
  const { rules: r, alerts: a } = ze(), i = [
8257
8257
  { label: "By Severity", value: "By Severity" },
8258
8258
  { label: "By Created Date", value: "By Created Date" }
8259
- ], [l, o] = S("By Severity"), [u, d] = S(/* @__PURE__ */ new Set()), [m, v] = S(null), [y, k] = S(null), [D, M] = S({ inApp: !1, sms: !1, email: !1 }), [Q, U] = S([]), [q, w] = S(!0), [F, P] = S(!1);
8259
+ ], [l, o] = S("By Severity"), [u, d] = S(/* @__PURE__ */ new Set()), [m, v] = S(null), [y, k] = S(null), [D, E] = S({ inApp: !1, sms: !1, email: !1 }), [Q, U] = S([]), [q, w] = S(!0), [F, P] = S(!1);
8260
8260
  fe(() => {
8261
8261
  let f = !1;
8262
8262
  return (async () => {
8263
8263
  try {
8264
8264
  const g = await a.getPreferenceSettings();
8265
8265
  if (f || !g) return;
8266
- M({
8266
+ E({
8267
8267
  inApp: !!g.inApp,
8268
8268
  //convert to bool - as the resp is str
8269
8269
  sms: !!g.sms,
8270
8270
  email: !!g.email
8271
8271
  });
8272
- const O = ur(g.sortBy);
8273
- o(O === "By Created Date" ? "By Created Date" : "By Severity"), v(In(g.doNotDisturbStart)), k(In(g.doNotDisturbEnd)), Array.isArray(g.anomalyIds) && d(new Set(g.anomalyIds.map((ae) => String(ae))));
8272
+ const M = ur(g.sortBy);
8273
+ o(M === "By Created Date" ? "By Created Date" : "By Severity"), v(In(g.doNotDisturbStart)), k(In(g.doNotDisturbEnd)), Array.isArray(g.anomalyIds) && d(new Set(g.anomalyIds.map((ae) => String(ae))));
8274
8274
  } catch (g) {
8275
8275
  console.error("Error in loading my preferences: ", g);
8276
8276
  }
@@ -8284,8 +8284,8 @@ function kc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8284
8284
  w(!0);
8285
8285
  const g = await r.getLookups();
8286
8286
  if (f || !g) return;
8287
- const O = Array.isArray(g.anomalies) ? g.anomalies : [];
8288
- U(O);
8287
+ const M = Array.isArray(g.anomalies) ? g.anomalies : [];
8288
+ U(M);
8289
8289
  } catch (g) {
8290
8290
  console.error("Failed to load anomalies lookups", g);
8291
8291
  } finally {
@@ -8297,8 +8297,8 @@ function kc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8297
8297
  }, []);
8298
8298
  const L = (f) => {
8299
8299
  d((g) => {
8300
- const O = new Set(g);
8301
- return O.has(f) ? O.delete(f) : O.add(f), O;
8300
+ const M = new Set(g);
8301
+ return M.has(f) ? M.delete(f) : M.add(f), M;
8302
8302
  });
8303
8303
  }, G = async () => {
8304
8304
  s?.({
@@ -8312,8 +8312,8 @@ function kc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8312
8312
  });
8313
8313
  try {
8314
8314
  P(!0);
8315
- const f = m ? m.format?.("HH:mm:ss") ?? "00:00:00" : "00:00:00", g = y ? y.format?.("HH:mm:ss") ?? "00:00:00" : "00:00:00", O = Array.from(u).map((Ae) => Number(Ae)).filter((Ae) => Number.isFinite(Ae)), ae = await a.setPreferenceSettings({
8316
- anomalyIds: O,
8315
+ const f = m ? m.format?.("HH:mm:ss") ?? "00:00:00" : "00:00:00", g = y ? y.format?.("HH:mm:ss") ?? "00:00:00" : "00:00:00", M = Array.from(u).map((Ae) => Number(Ae)).filter((Ae) => Number.isFinite(Ae)), ae = await a.setPreferenceSettings({
8316
+ anomalyIds: M,
8317
8317
  doNotDisturbStart: f,
8318
8318
  doNotDisturbEnd: g,
8319
8319
  inApp: !!D.inApp,
@@ -8336,8 +8336,8 @@ function kc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8336
8336
  /* @__PURE__ */ h("div", { className: "mb-4", children: [
8337
8337
  /* @__PURE__ */ c(ar, { level: 5, className: "!mb-2", children: "Anomalies" }),
8338
8338
  q ? /* @__PURE__ */ c("div", { className: "py-4", children: /* @__PURE__ */ c(ys, {}) }) : /* @__PURE__ */ c(tt, { direction: "vertical", size: 10, className: "w-full", children: (Array.isArray(Q) ? Q : []).map((f) => {
8339
- const g = String(f.recordId), O = f.anomalyName;
8340
- return /* @__PURE__ */ c(Nt, { checked: u.has(g), onChange: () => L(g), children: O }, g);
8339
+ const g = String(f.recordId), M = f.anomalyName;
8340
+ return /* @__PURE__ */ c(Nt, { checked: u.has(g), onChange: () => L(g), children: M }, g);
8341
8341
  }) })
8342
8342
  ] }),
8343
8343
  /* @__PURE__ */ h("div", { className: "mb-4", children: [
@@ -8356,9 +8356,9 @@ function kc({ severities: t, rules: e, onSave: s, onCancel: n }) {
8356
8356
  ] })
8357
8357
  ] }) }) }),
8358
8358
  /* @__PURE__ */ h($e, { gutter: [24, 12], children: [
8359
- /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Nt, { checked: D.inApp, onChange: (f) => M({ ...D, inApp: f.target.checked }), children: "In-app" }) }),
8360
- /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Nt, { checked: D.sms, onChange: (f) => M({ ...D, sms: f.target.checked }), children: "SMS" }) }),
8361
- /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Nt, { checked: D.email, onChange: (f) => M({ ...D, email: f.target.checked }), children: "Email" }) })
8359
+ /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Nt, { checked: D.inApp, onChange: (f) => E({ ...D, inApp: f.target.checked }), children: "In-app" }) }),
8360
+ /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Nt, { checked: D.sms, onChange: (f) => E({ ...D, sms: f.target.checked }), children: "SMS" }) }),
8361
+ /* @__PURE__ */ c(J, { children: /* @__PURE__ */ c(Nt, { checked: D.email, onChange: (f) => E({ ...D, email: f.target.checked }), children: "Email" }) })
8362
8362
  ] })
8363
8363
  ] }),
8364
8364
  /* @__PURE__ */ c(Lt, {}),
@@ -8729,7 +8729,7 @@ const dc = {
8729
8729
  Medium: "#FEF9C2",
8730
8730
  Low: "#E0EDFF"
8731
8731
  }, fc = ({ isModalOpen: t, handleModalClose: e, selectedRow: s, fetchAlertLogs: n, alertStatusList: r = [], alertStatusLoading: a = !1, initialTab: i = "details", sourceTab: l }) => {
8732
- const [o, u] = S(), [d, m] = S(""), [v, y] = S(!1), k = Na(null), [D, M] = S("details"), [Q, U] = S(void 0), q = hr(), { alerts: w, rules: F, config: P } = ze(), { timeZoneDetails: L } = Ts(), [G, f] = S(null), [g, O] = S(!1), [ae, Ae] = S(!1), [C, N] = S(void 0), [p, E] = S(void 0), [A, R] = S({}), [$, Y] = S({}), X = (I, j, T) => {
8732
+ const [o, u] = S(), [d, m] = S(""), [v, y] = S(!1), k = Na(null), [D, E] = S("details"), [Q, U] = S(void 0), q = hr(), { alerts: w, rules: F, config: P } = ze(), { timeZoneDetails: L } = Ts(), [G, f] = S(null), [g, M] = S(!1), [ae, Ae] = S(!1), [C, N] = S(void 0), [p, O] = S(void 0), [A, R] = S({}), [$, Y] = S({}), X = (I, j, T) => {
8733
8733
  const H = $[I];
8734
8734
  return A[I] === !1 && !H ? /* @__PURE__ */ h("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: [
8735
8735
  /* @__PURE__ */ c(tc, { size: 40 }),
@@ -8806,14 +8806,14 @@ const dc = {
8806
8806
  I = !0;
8807
8807
  };
8808
8808
  }, [D, Re]), fe(() => {
8809
- t ? M(i) : (u(void 0), m(""));
8809
+ t ? E(i) : (u(void 0), m(""));
8810
8810
  }, [t, i]), fe(() => {
8811
8811
  if (!t || P.tenant !== "snl") return;
8812
8812
  let I = !1;
8813
- return O(!0), F.getLookups().then((j) => {
8814
- I || (f(j.alertStatusTypes ?? []), O(!1));
8813
+ return M(!0), F.getLookups().then((j) => {
8814
+ I || (f(j.alertStatusTypes ?? []), M(!1));
8815
8815
  }).catch(() => {
8816
- I || (f([]), O(!1));
8816
+ I || (f([]), M(!1));
8817
8817
  }), () => {
8818
8818
  I = !0;
8819
8819
  };
@@ -8903,7 +8903,7 @@ const dc = {
8903
8903
  tn,
8904
8904
  {
8905
8905
  activeKey: D,
8906
- onChange: (I) => M(I),
8906
+ onChange: (I) => E(I),
8907
8907
  items: [
8908
8908
  {
8909
8909
  key: "details",
@@ -9037,7 +9037,7 @@ const dc = {
9037
9037
  "button",
9038
9038
  {
9039
9039
  onClick: () => {
9040
- Ae(!0), N(T), E(I.type || "image");
9040
+ Ae(!0), N(T), O(I.type || "image");
9041
9041
  },
9042
9042
  className: "absolute bottom-3 right-3 text-white bg-black/50 rounded-full p-2 hover:bg-black/70",
9043
9043
  children: /* @__PURE__ */ c(ga, { size: 20 })
@@ -9093,9 +9093,9 @@ function hc() {
9093
9093
  };
9094
9094
  }
9095
9095
  function Sa({ alerts: t, loading: e = !1, columns: s, total: n, currentPage: r, onRefetch: a, onPageChange: i, onFilterChange: l }) {
9096
- const [o, u] = S(!1), [d, m] = S(null), [v, y] = S("details"), { list: k, loading: D } = hc(), { timeZoneDetails: M } = Ts(), Q = M?.timeZoneName ?? "UTC", U = M?.ianaTimeZoneId ?? "UTC";
9097
- function q(g, O) {
9098
- m(g), y(O?.tab ?? "details"), P(O?.sourceTab ?? "active"), u(!0);
9096
+ const [o, u] = S(!1), [d, m] = S(null), [v, y] = S("details"), { list: k, loading: D } = hc(), { timeZoneDetails: E } = Ts(), Q = E?.timeZoneName ?? "UTC", U = E?.ianaTimeZoneId ?? "UTC";
9097
+ function q(g, M) {
9098
+ m(g), y(M?.tab ?? "details"), P(M?.sourceTab ?? "active"), u(!0);
9099
9099
  }
9100
9100
  function w() {
9101
9101
  u(!1);
@@ -9121,8 +9121,8 @@ function Sa({ alerts: t, loading: e = !1, columns: s, total: n, currentPage: r,
9121
9121
  className: "w-full",
9122
9122
  tabBarStyle: { fontSize: "medium" },
9123
9123
  onChange: (g) => {
9124
- const O = g === "archived";
9125
- G((ae) => ae + 1), i?.(1), l?.({ isArchived: O }), O || a?.();
9124
+ const M = g === "archived";
9125
+ G((ae) => ae + 1), i?.(1), l?.({ isArchived: M });
9126
9126
  },
9127
9127
  items: [
9128
9128
  {
@@ -9181,9 +9181,9 @@ function yc() {
9181
9181
  }));
9182
9182
  e(y);
9183
9183
  try {
9184
- const k = await d.getLookups(), D = Array.isArray(k?.userRoles) ? k.userRoles.map((M) => ({
9185
- userRoleId: M.userRoleId ?? M.id,
9186
- userRoleName: M.userRoleName ?? M.name
9184
+ const k = await d.getLookups(), D = Array.isArray(k?.userRoles) ? k.userRoles.map((E) => ({
9185
+ userRoleId: E.userRoleId ?? E.id,
9186
+ userRoleName: E.userRoleName ?? E.name
9187
9187
  })) : [];
9188
9188
  n(D), a(Array.isArray(k?.severities) ? k.severities : []);
9189
9189
  } catch {