@eloquentai/chat-sdk 0.33.0-dev → 0.33.2-dev

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.
@@ -6,16 +6,16 @@ import Wv, { createPortal as gl } from "react-dom";
6
6
  import Hv from "react-dom/client";
7
7
  try {
8
8
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
9
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "ac4dc09b-135e-4d42-b8a3-c3083c4d0e3a", e._sentryDebugIdIdentifier = "sentry-dbid-ac4dc09b-135e-4d42-b8a3-c3083c4d0e3a");
9
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "7b6299bd-3700-4c7e-8270-b8ecb8e04477", e._sentryDebugIdIdentifier = "sentry-dbid-7b6299bd-3700-4c7e-8270-b8ecb8e04477");
10
10
  } catch {
11
11
  }
12
12
  {
13
13
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
14
- e.SENTRY_RELEASE = { id: "c330e007476496c6f1eb5ffe855f4ca2bb920a15" };
14
+ e.SENTRY_RELEASE = { id: "aa9ecf510f760d3aa8fa8486c4a1834d3400fb1b" };
15
15
  }
16
16
  if (typeof window < "u") {
17
17
  const e = "development";
18
- import("./index-CQ2R3N92.js").then((t) => {
18
+ import("./index-D8M6x5pL.js").then((t) => {
19
19
  t.init({
20
20
  dsn: void 0,
21
21
  environment: e,
@@ -24888,7 +24888,9 @@ function BA(e) {
24888
24888
  qp,
24889
24889
  {
24890
24890
  className: "eloq:hidden eloq:invisible",
24891
- onLoaded: () => l(!0)
24891
+ onLoaded: () => {
24892
+ t && h(!0), l(!0);
24893
+ }
24892
24894
  }
24893
24895
  )
24894
24896
  ] });
@@ -31680,7 +31682,7 @@ function hL({
31680
31682
  return;
31681
31683
  }
31682
31684
  const re = L.chat_settings.welcome_message;
31683
- E(L.chat_settings), H(L.chat_settings.chat_enabled ?? !0), re && z((ue) => ue.length > 0 || ue.some((Q) => Q.isWelcomeMessage) ? ue : [
31685
+ E(L.chat_settings), H(L.chat_settings.is_active ?? !0), re && z((ue) => ue.length > 0 || ue.some((Q) => Q.isWelcomeMessage) ? ue : [
31684
31686
  {
31685
31687
  id: crypto.randomUUID(),
31686
31688
  content: re,
@@ -31702,7 +31704,7 @@ function hL({
31702
31704
  messages: j,
31703
31705
  isReady: G,
31704
31706
  isChatClosed: M,
31705
- isChatEnabled: oe
31707
+ isChatActive: oe
31706
31708
  };
31707
31709
  }
31708
31710
  const pv = "(max-width: 640px)";
@@ -31754,7 +31756,7 @@ function bL({
31754
31756
  messages: j,
31755
31757
  isReady: z,
31756
31758
  isChatClosed: G,
31757
- isChatEnabled: K
31759
+ isChatActive: K
31758
31760
  } = hL({
31759
31761
  apiUrl: t,
31760
31762
  appId: n,
@@ -31839,7 +31841,7 @@ function bL({
31839
31841
  R?.welcome_message
31840
31842
  ]), {
31841
31843
  isReady: z,
31842
- isChatEnabled: K,
31844
+ isChatActive: K,
31843
31845
  isMobile: h,
31844
31846
  chatInterfaceProps: M,
31845
31847
  chatOpen: oe,
@@ -31948,7 +31950,7 @@ function EL({
31948
31950
  }) {
31949
31951
  const { hideSdk: z } = zi(), {
31950
31952
  isReady: G,
31951
- isChatEnabled: K,
31953
+ isChatActive: K,
31952
31954
  isMobile: M,
31953
31955
  chatOpen: ie,
31954
31956
  chatInterfaceProps: oe,
@@ -32136,4 +32138,4 @@ export {
32136
32138
  PL as r,
32137
32139
  iL as u
32138
32140
  };
32139
- //# sourceMappingURL=index-DtDZgmot.js.map
32141
+ //# sourceMappingURL=index-M37y5jG1.js.map