@ssgc/alert-console 2.2.3 → 2.2.5

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
@@ -818,8 +818,8 @@ function lr({
818
818
  children: s
819
819
  }) {
820
820
  const r = ue(() => {
821
- const a = t?.alertsBaseUrl && t.alertsBaseUrl.trim() || Ut[e]?.alerts || "";
822
- let o = t?.rulesBaseUrl && t.rulesBaseUrl.trim() || Ut[e]?.rules || "";
821
+ const a = t?.alertsBaseUrl?.trim() || Ut[e]?.alerts || "";
822
+ let o = t?.rulesBaseUrl?.trim() || Ut[e]?.rules || "";
823
823
  e === "snl" && (o = a);
824
824
  const l = t?.headers;
825
825
  return { tenant: e, alertsBaseUrl: a, rulesBaseUrl: o, headers: l };
@@ -851,8 +851,8 @@ const cr = {
851
851
  Low: "#007AFF"
852
852
  }, bt = 6, St = 7;
853
853
  function dr(e, t, s) {
854
- const r = e === bt, n = e === St, a = t.isEmailSent, o = t.isSMSSent, l = r && a || n && o, h = r ? "Send Email" : n ? "Send SMS" : s, d = r && a ? "Email already sent" : n && o ? "SMS already sent" : `Click to ${h.toLowerCase()}`;
855
- return { isDisabled: l, buttonText: h, tooltipTitle: d };
854
+ const r = e === bt, n = e === St, a = t.isEmailSent, o = t.isSMSSent, l = r && a || n && o, h = r ? "Send Email" : n ? "Send SMS" : s, d = r && a ? "Email sent" : n && o ? "SMS sent" : h, c = r && a ? "Email sent" : n && o ? "SMS sent" : `Click to ${h}`;
855
+ return { isDisabled: l, buttonText: d, tooltipTitle: c };
856
856
  }
857
857
  function hr(e) {
858
858
  const t = /* @__PURE__ */ new Set();