@ssgc/alert-console 2.10.11 → 2.10.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -946,12 +946,30 @@ function ka(t) {
946
946
  },
947
947
  async getLookups() {
948
948
  const n = (h) => new URL(h, t.baseUrl).toString(), r = t.userManagementBaseUrl || t.baseUrl, i = [
949
- it(n("/api/detectionpolicy/lookups/actiontypes"), { method: "GET", headers: e }),
950
- it(n("/api/detectionpolicy/lookups/anomalies"), { method: "GET", headers: e }),
951
- it(n("/api/detectionpolicy/lookups/thirdparty"), { method: "GET", headers: e }),
952
- it(n("/api/detectionpolicy/lookups/severity"), { method: "GET", headers: e }),
953
- it(n("/api/detectionpolicy/lookups/scheduletypes"), { method: "GET", headers: e }),
954
- it(new URL("/user/user-roles", r).toString(), { method: "GET", headers: e })
949
+ it(n("/api/detectionpolicy/lookups/actiontypes"), {
950
+ method: "GET",
951
+ headers: e
952
+ }),
953
+ it(n("/api/detectionpolicy/lookups/anomalies"), {
954
+ method: "GET",
955
+ headers: e
956
+ }),
957
+ it(n("/api/detectionpolicy/lookups/thirdparty"), {
958
+ method: "GET",
959
+ headers: e
960
+ }),
961
+ it(n("/api/detectionpolicy/lookups/severity"), {
962
+ method: "GET",
963
+ headers: e
964
+ }),
965
+ it(n("/api/detectionpolicy/lookups/scheduletypes"), {
966
+ method: "GET",
967
+ headers: e
968
+ }),
969
+ it(new URL("/user/user-roles", r).toString(), {
970
+ method: "GET",
971
+ headers: e
972
+ })
955
973
  ], [
956
974
  a,
957
975
  o,
@@ -970,8 +988,8 @@ function ka(t) {
970
988
  actionTypeId: Number(h?.ActionTypeId),
971
989
  name: h?.DisplayName ?? h?.Name ?? ""
972
990
  })), C = v.map((h) => ({
973
- recordId: h?.AnomalyId,
974
- anomalyName: h?.DisplayName ?? h?.Name ?? ""
991
+ AnomalyId: h?.AnomalyId,
992
+ DisplayName: h?.DisplayName ?? h?.Name ?? ""
975
993
  })), Z = k.map((h) => ({
976
994
  thirdPartyId: Number(h?.ThirdPartyId),
977
995
  thirdPartyName: h?.ThirdPartyName ?? h?.Name ?? ""
@@ -1898,15 +1916,15 @@ function Mr({
1898
1916
  let P = !0;
1899
1917
  return (async () => {
1900
1918
  try {
1901
- const W = await T.getLookups(), ue = (Array.isArray(W.thirdParties) ? W.thirdParties : []).map((Ne) => ({
1902
- label: Ne.thirdPartyName,
1903
- value: String(Ne.thirdPartyId)
1904
- })), be = (Array.isArray(W.anomalies) ? W.anomalies : []).map((Ne) => ({
1905
- label: Ne.anomalyName,
1906
- value: Ne.anomalyId
1907
- })), Me = (Array.isArray(W.severities) ? W.severities : []).map((Ne) => ({
1908
- label: Ne.severityName,
1909
- value: String(Ne.severityId)
1919
+ const W = await T.getLookups(), ue = (Array.isArray(W.thirdParties) ? W.thirdParties : []).map((we) => ({
1920
+ label: we.thirdPartyName,
1921
+ value: String(we.thirdPartyId)
1922
+ })), be = (Array.isArray(W.anomalies) ? W.anomalies : []).map((we) => ({
1923
+ label: we.anomalyName ?? we.DisplayName,
1924
+ value: we.anomalyId ?? we.AnomalyId
1925
+ })), Me = (Array.isArray(W.severities) ? W.severities : []).map((we) => ({
1926
+ label: we.severityName,
1927
+ value: String(we.severityId)
1910
1928
  }));
1911
1929
  P && (h([{ label: "All", value: "All" }, ...ue]), be.length && ye([{ label: "All Types", value: "All" }, ...be]), Me.length && N([{ label: "All levels", value: "All" }, ...Me]));
1912
1930
  } catch (W) {
@@ -1996,7 +2014,7 @@ function Mr({
1996
2014
  return It.delete(bt), It;
1997
2015
  });
1998
2016
  }
1999
- }, ue = cn, Ve = un, be = me[ue], Ke = me[Ve], Me = Un(ue, W, be?.title), Ne = 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);
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);
2000
2018
  return /* @__PURE__ */ f(st, { size: "middle", children: [
2001
2019
  /* @__PURE__ */ c(In, { title: Me.tooltipTitle, children: /* @__PURE__ */ c(
2002
2020
  ze,
@@ -2011,17 +2029,17 @@ function Mr({
2011
2029
  children: Me.buttonText
2012
2030
  }
2013
2031
  ) }, String(ue)),
2014
- /* @__PURE__ */ c(In, { title: Ne.tooltipTitle, children: /* @__PURE__ */ c(
2032
+ /* @__PURE__ */ c(In, { title: we.tooltipTitle, children: /* @__PURE__ */ c(
2015
2033
  ze,
2016
2034
  {
2017
2035
  size: "small",
2018
- disabled: Ne.isDisabled,
2036
+ disabled: we.isDisabled,
2019
2037
  loading: nt,
2020
2038
  onClick: os(Ve) ? () => ge(!1, !0) : void 0,
2021
2039
  icon: !nt && Ke?.icon,
2022
2040
  className: "flex flex-col items-center justify-center gap-1",
2023
2041
  style: { height: "fit-content" },
2024
- children: Ne.buttonText
2042
+ children: we.buttonText
2025
2043
  }
2026
2044
  ) }, String(Ve))
2027
2045
  ] });
@@ -2796,7 +2814,7 @@ class re {
2796
2814
  );
2797
2815
  }
2798
2816
  static create(e, s, n, r, i = !1) {
2799
- const a = e || Ae.defaultLocale, o = a || (i ? "en-US" : go()), l = s || Ae.defaultNumberingSystem, u = n || Ae.defaultOutputCalendar, m = en(r) || Ae.defaultWeekSettings;
2817
+ const a = e || Ne.defaultLocale, o = a || (i ? "en-US" : go()), l = s || Ne.defaultNumberingSystem, u = n || Ne.defaultOutputCalendar, m = en(r) || Ne.defaultWeekSettings;
2800
2818
  return new re(o, l, u, m, a);
2801
2819
  }
2802
2820
  static resetCache() {
@@ -3153,7 +3171,7 @@ function Qe({ numberingSystem: t }, e = "") {
3153
3171
  return r === void 0 && (r = new RegExp(`${mn[s]}${e}`), n.set(e, r)), r;
3154
3172
  }
3155
3173
  let Vn = () => Date.now(), Bn = "system", Zn = null, zn = null, Hn = null, Gn = 60, qn, Yn = null;
3156
- class Ae {
3174
+ class Ne {
3157
3175
  /**
3158
3176
  * Get the callback for returning the current timestamp.
3159
3177
  * @type {function}
@@ -3506,7 +3524,7 @@ function _t(t, e = 4, s = 1) {
3506
3524
  return (Dt(t) - n + r) / 7;
3507
3525
  }
3508
3526
  function tn(t) {
3509
- return t > 99 ? t : t > Ae.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
3527
+ return t > 99 ? t : t > Ne.twoDigitCutoffYear ? 1900 + t : 2e3 + t;
3510
3528
  }
3511
3529
  function li(t, e, s, n = null) {
3512
3530
  const r = new Date(t), i = {
@@ -4382,7 +4400,7 @@ class X {
4382
4400
  if (!e)
4383
4401
  throw new De("need to specify a reason the Duration is invalid");
4384
4402
  const n = e instanceof et ? e : new et(e, s);
4385
- if (Ae.throwOnInvalid)
4403
+ if (Ne.throwOnInvalid)
4386
4404
  throw new ao(n);
4387
4405
  return new X({ invalid: n });
4388
4406
  }
@@ -4858,12 +4876,12 @@ class X {
4858
4876
  }
4859
4877
  const xt = "Invalid Interval";
4860
4878
  function Fl(t, e) {
4861
- return !t || !t.isValid ? we.invalid("missing or invalid start") : !e || !e.isValid ? we.invalid("missing or invalid end") : e < t ? we.invalid(
4879
+ return !t || !t.isValid ? Ae.invalid("missing or invalid start") : !e || !e.isValid ? Ae.invalid("missing or invalid end") : e < t ? Ae.invalid(
4862
4880
  "end before start",
4863
4881
  `The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`
4864
4882
  ) : null;
4865
4883
  }
4866
- class we {
4884
+ class Ae {
4867
4885
  /**
4868
4886
  * @private
4869
4887
  */
@@ -4880,9 +4898,9 @@ class we {
4880
4898
  if (!e)
4881
4899
  throw new De("need to specify a reason the Interval is invalid");
4882
4900
  const n = e instanceof et ? e : new et(e, s);
4883
- if (Ae.throwOnInvalid)
4901
+ if (Ne.throwOnInvalid)
4884
4902
  throw new io(n);
4885
- return new we({ invalid: n });
4903
+ return new Ae({ invalid: n });
4886
4904
  }
4887
4905
  /**
4888
4906
  * Create an Interval from a start DateTime and an end DateTime. Inclusive of the start but not the end.
@@ -4892,7 +4910,7 @@ class we {
4892
4910
  */
4893
4911
  static fromDateTimes(e, s) {
4894
4912
  const n = Bt(e), r = Bt(s), i = Fl(n, r);
4895
- return i ?? new we({
4913
+ return i ?? new Ae({
4896
4914
  start: n,
4897
4915
  end: r
4898
4916
  });
@@ -4905,7 +4923,7 @@ class we {
4905
4923
  */
4906
4924
  static after(e, s) {
4907
4925
  const n = X.fromDurationLike(s), r = Bt(e);
4908
- return we.fromDateTimes(r, r.plus(n));
4926
+ return Ae.fromDateTimes(r, r.plus(n));
4909
4927
  }
4910
4928
  /**
4911
4929
  * Create an Interval from an end DateTime and a Duration to extend backwards to.
@@ -4915,7 +4933,7 @@ class we {
4915
4933
  */
4916
4934
  static before(e, s) {
4917
4935
  const n = X.fromDurationLike(s), r = Bt(e);
4918
- return we.fromDateTimes(r.minus(n), r);
4936
+ return Ae.fromDateTimes(r.minus(n), r);
4919
4937
  }
4920
4938
  /**
4921
4939
  * Create an Interval from an ISO 8601 string.
@@ -4941,18 +4959,18 @@ class we {
4941
4959
  l = !1;
4942
4960
  }
4943
4961
  if (a && l)
4944
- return we.fromDateTimes(i, o);
4962
+ return Ae.fromDateTimes(i, o);
4945
4963
  if (a) {
4946
4964
  const u = X.fromISO(r, s);
4947
4965
  if (u.isValid)
4948
- return we.after(i, u);
4966
+ return Ae.after(i, u);
4949
4967
  } else if (l) {
4950
4968
  const u = X.fromISO(n, s);
4951
4969
  if (u.isValid)
4952
- return we.before(o, u);
4970
+ return Ae.before(o, u);
4953
4971
  }
4954
4972
  }
4955
- return we.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4973
+ return Ae.invalid("unparsable", `the input "${e}" can't be parsed as ISO 8601`);
4956
4974
  }
4957
4975
  /**
4958
4976
  * Check if an object is an Interval. Works across context boundaries
@@ -5075,7 +5093,7 @@ class we {
5075
5093
  * @return {Interval}
5076
5094
  */
5077
5095
  set({ start: e, end: s } = {}) {
5078
- return this.isValid ? we.fromDateTimes(e || this.s, s || this.e) : this;
5096
+ return this.isValid ? Ae.fromDateTimes(e || this.s, s || this.e) : this;
5079
5097
  }
5080
5098
  /**
5081
5099
  * Split this Interval at each of the specified DateTimes
@@ -5088,7 +5106,7 @@ class we {
5088
5106
  let { s: r } = this, i = 0;
5089
5107
  for (; r < this.e; ) {
5090
5108
  const a = s[i] || this.e, o = +a > +this.e ? this.e : a;
5091
- n.push(we.fromDateTimes(r, o)), r = o, i += 1;
5109
+ n.push(Ae.fromDateTimes(r, o)), r = o, i += 1;
5092
5110
  }
5093
5111
  return n;
5094
5112
  }
@@ -5106,7 +5124,7 @@ class we {
5106
5124
  const a = [];
5107
5125
  for (; n < this.e; ) {
5108
5126
  const o = this.start.plus(s.mapUnits((l) => l * r));
5109
- i = +o > +this.e ? this.e : o, a.push(we.fromDateTimes(n, i)), n = i, r += 1;
5127
+ i = +o > +this.e ? this.e : o, a.push(Ae.fromDateTimes(n, i)), n = i, r += 1;
5110
5128
  }
5111
5129
  return a;
5112
5130
  }
@@ -5168,7 +5186,7 @@ class we {
5168
5186
  intersection(e) {
5169
5187
  if (!this.isValid) return this;
5170
5188
  const s = this.s > e.s ? this.s : e.s, n = this.e < e.e ? this.e : e.e;
5171
- return s >= n ? null : we.fromDateTimes(s, n);
5189
+ return s >= n ? null : Ae.fromDateTimes(s, n);
5172
5190
  }
5173
5191
  /**
5174
5192
  * Return an Interval representing the union of this Interval and the specified Interval.
@@ -5179,7 +5197,7 @@ class we {
5179
5197
  union(e) {
5180
5198
  if (!this.isValid) return this;
5181
5199
  const s = this.s < e.s ? this.s : e.s, n = this.e > e.e ? this.e : e.e;
5182
- return we.fromDateTimes(s, n);
5200
+ return Ae.fromDateTimes(s, n);
5183
5201
  }
5184
5202
  /**
5185
5203
  * Merge an array of Intervals into an equivalent minimal set of Intervals.
@@ -5209,8 +5227,8 @@ class we {
5209
5227
  { time: l.e, type: "e" }
5210
5228
  ]), a = Array.prototype.concat(...i), o = a.sort((l, u) => l.time - u.time);
5211
5229
  for (const l of o)
5212
- n += l.type === "s" ? 1 : -1, n === 1 ? s = l.time : (s && +s != +l.time && r.push(we.fromDateTimes(s, l.time)), s = null);
5213
- return we.merge(r);
5230
+ n += l.type === "s" ? 1 : -1, n === 1 ? s = l.time : (s && +s != +l.time && r.push(Ae.fromDateTimes(s, l.time)), s = null);
5231
+ return Ae.merge(r);
5214
5232
  }
5215
5233
  /**
5216
5234
  * Return an Interval representing the span of time in this Interval that doesn't overlap with any of the specified Intervals.
@@ -5218,7 +5236,7 @@ class we {
5218
5236
  * @return {Array}
5219
5237
  */
5220
5238
  difference(...e) {
5221
- return we.xor([this].concat(e)).map((s) => this.intersection(s)).filter((s) => s && !s.isEmpty());
5239
+ return Ae.xor([this].concat(e)).map((s) => this.intersection(s)).filter((s) => s && !s.isEmpty());
5222
5240
  }
5223
5241
  /**
5224
5242
  * Returns a string representation of this Interval appropriate for debugging.
@@ -5320,7 +5338,7 @@ class we {
5320
5338
  * @example Interval.fromDateTimes(dt1, dt2).mapEndpoints(endpoint => endpoint.plus({ hours: 2 }))
5321
5339
  */
5322
5340
  mapEndpoints(e) {
5323
- return we.fromDateTimes(e(this.s), e(this.e));
5341
+ return Ae.fromDateTimes(e(this.s), e(this.e));
5324
5342
  }
5325
5343
  }
5326
5344
  class cs {
@@ -5329,7 +5347,7 @@ class cs {
5329
5347
  * @param {string|Zone} [zone='local'] - Zone to check. Defaults to the environment's local zone.
5330
5348
  * @return {boolean}
5331
5349
  */
5332
- static hasDST(e = Ae.defaultZone) {
5350
+ static hasDST(e = Ne.defaultZone) {
5333
5351
  const s = F.now().setZone(e).set({ month: 12 });
5334
5352
  return !e.isUniversal && s.offset !== s.set({ month: 6 }).offset;
5335
5353
  }
@@ -5356,7 +5374,7 @@ class cs {
5356
5374
  * @return {Zone}
5357
5375
  */
5358
5376
  static normalizeZone(e) {
5359
- return ht(e, Ae.defaultZone);
5377
+ return ht(e, Ne.defaultZone);
5360
5378
  }
5361
5379
  /**
5362
5380
  * Get the weekday on which the week starts according to the given locale.
@@ -6052,20 +6070,20 @@ function ur(t) {
6052
6070
  }
6053
6071
  }
6054
6072
  function sc(t) {
6055
- if (qt === void 0 && (qt = Ae.now()), t.type !== "iana")
6073
+ if (qt === void 0 && (qt = Ne.now()), t.type !== "iana")
6056
6074
  return t.offset(qt);
6057
6075
  const e = t.name;
6058
6076
  let s = sn.get(e);
6059
6077
  return s === void 0 && (s = t.offset(qt), sn.set(e, s)), s;
6060
6078
  }
6061
6079
  function dr(t, e) {
6062
- const s = ht(e.zone, Ae.defaultZone);
6080
+ const s = ht(e.zone, Ne.defaultZone);
6063
6081
  if (!s.isValid)
6064
6082
  return F.invalid(Gt(s));
6065
6083
  const n = re.fromObject(e);
6066
6084
  let r, i;
6067
6085
  if ($(t.year))
6068
- r = Ae.now();
6086
+ r = Ne.now();
6069
6087
  else {
6070
6088
  for (const l of ps)
6071
6089
  $(t[l]) && (t[l] = Ci[l]);
@@ -6099,9 +6117,9 @@ class F {
6099
6117
  * @access private
6100
6118
  */
6101
6119
  constructor(e) {
6102
- const s = e.zone || Ae.defaultZone;
6120
+ const s = e.zone || Ne.defaultZone;
6103
6121
  let n = e.invalid || (Number.isNaN(e.ts) ? new et("invalid input") : null) || (s.isValid ? null : Gt(s));
6104
- this.ts = $(e.ts) ? Ae.now() : e.ts;
6122
+ this.ts = $(e.ts) ? Ne.now() : e.ts;
6105
6123
  let r = null, i = null;
6106
6124
  if (!n)
6107
6125
  if (e.old && e.old.ts === this.ts && e.old.zone.equals(s))
@@ -6188,7 +6206,7 @@ class F {
6188
6206
  const n = Uo(e) ? e.valueOf() : NaN;
6189
6207
  if (Number.isNaN(n))
6190
6208
  return F.invalid("invalid input");
6191
- const r = ht(s.zone, Ae.defaultZone);
6209
+ const r = ht(s.zone, Ne.defaultZone);
6192
6210
  return r.isValid ? new F({
6193
6211
  ts: n,
6194
6212
  zone: r,
@@ -6210,7 +6228,7 @@ class F {
6210
6228
  if (yt(e))
6211
6229
  return e < -or || e > or ? F.invalid("Timestamp out of range") : new F({
6212
6230
  ts: e,
6213
- zone: ht(s.zone, Ae.defaultZone),
6231
+ zone: ht(s.zone, Ne.defaultZone),
6214
6232
  loc: re.fromObject(s)
6215
6233
  });
6216
6234
  throw new De(
@@ -6232,7 +6250,7 @@ class F {
6232
6250
  if (yt(e))
6233
6251
  return new F({
6234
6252
  ts: e * 1e3,
6235
- zone: ht(s.zone, Ae.defaultZone),
6253
+ zone: ht(s.zone, Ne.defaultZone),
6236
6254
  loc: re.fromObject(s)
6237
6255
  });
6238
6256
  throw new De("fromSeconds requires a numerical input");
@@ -6272,10 +6290,10 @@ class F {
6272
6290
  */
6273
6291
  static fromObject(e, s = {}) {
6274
6292
  e = e || {};
6275
- const n = ht(s.zone, Ae.defaultZone);
6293
+ const n = ht(s.zone, Ne.defaultZone);
6276
6294
  if (!n.isValid)
6277
6295
  return F.invalid(Gt(n));
6278
- const r = re.fromObject(s), i = As(e, ur), { minDaysInFirstWeek: a, startOfWeek: o } = Jn(i, r), l = Ae.now(), u = $(s.specificOffset) ? n.offset(l) : s.specificOffset, m = !$(i.ordinal), d = !$(i.year), y = !$(i.month) || !$(i.day), p = d || y, v = i.weekYear || i.weekNumber;
6296
+ const r = re.fromObject(s), i = As(e, ur), { minDaysInFirstWeek: a, startOfWeek: o } = Jn(i, r), l = Ne.now(), u = $(s.specificOffset) ? n.offset(l) : s.specificOffset, m = !$(i.ordinal), d = !$(i.year), y = !$(i.month) || !$(i.day), p = d || y, v = i.weekYear || i.weekNumber;
6279
6297
  if ((p || m) && v)
6280
6298
  throw new Mt(
6281
6299
  "Can't mix weekYear/weekNumber units with year/month/day or ordinals"
@@ -6429,7 +6447,7 @@ class F {
6429
6447
  if (!e)
6430
6448
  throw new De("need to specify a reason the DateTime is invalid");
6431
6449
  const n = e instanceof et ? e : new et(e, s);
6432
- if (Ae.throwOnInvalid)
6450
+ if (Ne.throwOnInvalid)
6433
6451
  throw new ro(n);
6434
6452
  return new F({ invalid: n });
6435
6453
  }
@@ -6848,7 +6866,7 @@ class F {
6848
6866
  * @return {DateTime}
6849
6867
  */
6850
6868
  toLocal() {
6851
- return this.setZone(Ae.defaultZone);
6869
+ return this.setZone(Ne.defaultZone);
6852
6870
  }
6853
6871
  /**
6854
6872
  * "Set" the DateTime's zone to specified zone. Returns a newly-constructed DateTime.
@@ -6860,7 +6878,7 @@ class F {
6860
6878
  * @return {DateTime}
6861
6879
  */
6862
6880
  setZone(e, { keepLocalTime: s = !1, keepCalendarTime: n = !1 } = {}) {
6863
- if (e = ht(e, Ae.defaultZone), e.equals(this.zone))
6881
+ if (e = ht(e, Ne.defaultZone), e.equals(this.zone))
6864
6882
  return this;
6865
6883
  if (e.isValid) {
6866
6884
  let r = this.ts;
@@ -7339,7 +7357,7 @@ class F {
7339
7357
  * @return {Interval|DateTime}
7340
7358
  */
7341
7359
  until(e) {
7342
- return this.isValid ? we.fromDateTimes(this, e) : this;
7360
+ return this.isValid ? Ae.fromDateTimes(this, e) : this;
7343
7361
  }
7344
7362
  /**
7345
7363
  * Return whether this DateTime is in the same unit of time as another DateTime.
@@ -8486,7 +8504,7 @@ function zs(t) {
8486
8504
  };
8487
8505
  }
8488
8506
  function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules: r, onSave: i }) {
8489
- 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, Ne] = S([]), [Pt, pt] = S(!1), [Nt, nt] = S(!1), [Be, Tt] = S(n || []);
8507
+ const { rules: a, alerts: o } = Ge(), [l, u] = S("By Severity"), [m, d] = S("By severity"), [y, p] = S("By Severity"), [v, k] = S(!1), [b, B] = S(!1), [q, Q] = S(!1), [x, C] = S(null), [Z, R] = S("rules"), [G, h] = S(), [g, M] = S(), [ie, ye] = S(), [O, N] = S(), [A, E] = S(), [T, D] = S(), [L, _] = S(), [Y, j] = S(), [ce, me] = S([]), [Oe, te] = S([]), [Se, ke] = S(!1), [pe, P] = S(!1), [W, ge] = S({}), [ue, Ve] = S({}), [be, Ke] = S(s || []), [Me, we] = S([]), [Pt, pt] = S(!1), [Nt, nt] = S(!1), [Be, Tt] = S(n || []);
8490
8508
  oe(() => {
8491
8509
  n && n.length && Tt(n);
8492
8510
  }, [n]), oe(() => {
@@ -8507,7 +8525,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8507
8525
  isAutoExpire: fe
8508
8526
  };
8509
8527
  });
8510
- Ne(se);
8528
+ we(se);
8511
8529
  }, [Be, e, W, ue]);
8512
8530
  const bt = ve(
8513
8531
  () => t.map((U) => ({ label: U.DisplayName, value: U.SeverityId })),
@@ -8576,7 +8594,7 @@ function gc({ severities: t, rules: e, userRoles: s, rawRules: n, loadingRules:
8576
8594
  humanLoop: fe
8577
8595
  };
8578
8596
  });
8579
- Ne(J);
8597
+ we(J);
8580
8598
  } catch (U) {
8581
8599
  console.error("Failed to refetch entries", U);
8582
8600
  } finally {
@@ -9176,7 +9194,7 @@ const Tc = ({
9176
9194
  priority: be,
9177
9195
  statusType: Ke,
9178
9196
  id: Me,
9179
- alertDetails: Ne,
9197
+ alertDetails: we,
9180
9198
  statusHistory: Pt,
9181
9199
  mediaDetails: pt,
9182
9200
  alertNumber: Nt
@@ -9370,14 +9388,14 @@ const Tc = ({
9370
9388
  children: [
9371
9389
  /* @__PURE__ */ f("div", { className: "flex flex-col gap-2", children: [
9372
9390
  /* @__PURE__ */ c("div", { className: "text-sm font-bold", children: Tt }),
9373
- Ne?.firstName ? /* @__PURE__ */ f("div", { className: "text-sm text-gray-500", children: [
9391
+ we?.firstName ? /* @__PURE__ */ f("div", { className: "text-sm text-gray-500", children: [
9374
9392
  "Resident ID/Name: ",
9375
- Ne?.firstName,
9393
+ we?.firstName,
9376
9394
  " ",
9377
- Ne?.lastName || "",
9395
+ we?.lastName || "",
9378
9396
  " ",
9379
9397
  "  ",
9380
- Ne?.residentId || ""
9398
+ we?.residentId || ""
9381
9399
  ] }) : null,
9382
9400
  /* @__PURE__ */ f("div", { className: "text-sm text-gray-500", children: [
9383
9401
  "Timestamp:",