lulichat 1.0.18 → 1.0.19

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.
@@ -4062,12 +4062,12 @@ const Fg = S.forwardRef((e, t) => {
4062
4062
  "options",
4063
4063
  "set"
4064
4064
  ]), u = n.current.useRequest(), f = S.useCallback(async (w) => {
4065
- if (!w.length) {
4065
+ if (!(w != null && w.length)) {
4066
4066
  o({ options: (s == null ? void 0 : s.queues) || [] });
4067
4067
  return;
4068
4068
  }
4069
4069
  o({ options: [] });
4070
- const v = w[w.length - 1], A = v.type == "queue", g = await u.getOptions({
4070
+ const v = w == null ? void 0 : w[(w == null ? void 0 : w.length) - 1], A = v.type == "queue", g = await u.getOptions({
4071
4071
  [A ? "queueId" : "queueOptionId"]: v.id,
4072
4072
  parentId: A ? -1 : v.id
4073
4073
  });
@@ -4080,7 +4080,7 @@ const Fg = S.forwardRef((e, t) => {
4080
4080
  }),
4081
4081
  [l]
4082
4082
  );
4083
- const p = l[l.length - 1], d = (p == null ? void 0 : p.message) || (p == null ? void 0 : p.greetingMessage) || (r == null ? void 0 : r.welcomeMessage) || "";
4083
+ const p = l == null ? void 0 : l[(l == null ? void 0 : l.length) - 1], d = (p == null ? void 0 : p.message) || (p == null ? void 0 : p.greetingMessage) || (r == null ? void 0 : r.welcomeMessage) || "";
4084
4084
  return S.useEffect(() => {
4085
4085
  $e.getState().messages.length || i(
4086
4086
  tr({
@@ -4090,7 +4090,7 @@ const Fg = S.forwardRef((e, t) => {
4090
4090
  fromMe: !0
4091
4091
  })
4092
4092
  );
4093
- }, []), !a.length && !l.length ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx(vr, { className: "wrap lulichat-queues-container", children: /* @__PURE__ */ c.jsxs("div", { className: "lulichat-tags no-scrollbar", children: [
4093
+ }, []), !(a != null && a.length) && !(l != null && l.length) ? /* @__PURE__ */ c.jsx(c.Fragment, {}) : /* @__PURE__ */ c.jsx(vr, { className: "wrap lulichat-queues-container", children: /* @__PURE__ */ c.jsxs("div", { className: "lulichat-tags no-scrollbar", children: [
4094
4094
  l.map((w, v) => {
4095
4095
  w.name;
4096
4096
  const A = w.name || w.title, g = v == l.length - 1, h = g && u.loading;
@@ -12543,7 +12543,7 @@ function Ip(e = document, t, n = 5e3) {
12543
12543
  try {
12544
12544
  if (l) {
12545
12545
  const u = new URL(l, ((s = e.location) == null ? void 0 : s.href) || void 0);
12546
- u.searchParams.has("v") || u.searchParams.set("v", "1.0.18"), l = u.toString();
12546
+ u.searchParams.has("v") || u.searchParams.set("v", "1.0.19"), l = u.toString();
12547
12547
  }
12548
12548
  } catch {
12549
12549
  }