@flowengage/react-chatbot 6.0.15 → 6.0.17

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.
@@ -2118,11 +2118,16 @@ function er() {
2118
2118
  if (window.ng?.getComponent || document.querySelector("[ng-version]")) return "angular";
2119
2119
  if (window.__sveltekit_data || document.querySelector("[data-sveltekit-hydrate]")) return "sveltekit";
2120
2120
  if (document.querySelector("[data-astro-transition]")) return "astro";
2121
+ if (window.__vite_plugin_react_preamble_installed__) return "vite-react-spa";
2121
2122
  let e = Array.from(document.body.children).filter((e) => {
2122
2123
  let t = e.tagName?.toUpperCase();
2123
2124
  return !(t === "SCRIPT" || t === "NOSCRIPT" || t === "LINK" || t === "STYLE" || e.id === "flowengage-root");
2124
2125
  });
2125
- return e.length === 1 && e[0].id && (e[0].querySelector("[data-reactroot]") || e[0]._reactRootContainer || e[0].__vue_app__) ? "generic-spa" : null;
2126
+ if (e.length === 1) {
2127
+ let t = e[0], n = !!t.querySelector("[data-reactroot]") || !!t._reactRootContainer, r = Object.keys(t).some((e) => e.startsWith("__reactFiber$") || e.startsWith("__reactContainer$"));
2128
+ if (n || r || t.__vue_app__) return "generic-spa";
2129
+ }
2130
+ return null;
2126
2131
  }
2127
2132
  var tr = "data-fe-swap-css";
2128
2133
  function nr() {
@@ -3305,6 +3310,7 @@ function Rr({ siteId: e, config: t, children: n, language: r = "en" }) {
3305
3310
  Xe((e) => e === "connected" ? e : "connecting");
3306
3311
  return;
3307
3312
  }
3313
+ (e === "failed" || e === "closed") && Pt(`peer:connection_${e}`);
3308
3314
  }, n.oniceconnectionstatechange = () => {
3309
3315
  let e = n.iceConnectionState;
3310
3316
  if (e === "connected" || e === "completed") {
@@ -3316,6 +3322,7 @@ function Rr({ siteId: e, config: t, children: n, language: r = "en" }) {
3316
3322
  Xe((e) => e === "connected" ? e : "connecting");
3317
3323
  return;
3318
3324
  }
3325
+ (e === "failed" || e === "closed") && Pt(`peer:ice_${e}`);
3319
3326
  }, n.onsignalingstatechange = () => {}, n.onicegatheringstatechange = () => {}, e.getTracks().forEach((t) => {
3320
3327
  n.addTrack(t, e);
3321
3328
  }), n.onicecandidate = (e) => {
@@ -26622,7 +26629,8 @@ function ZD({ src: e, name: t, imgStyle: n, initialsSpanStyle: r }) {
26622
26629
  }, [o]), i ? /* @__PURE__ */ g("img", {
26623
26630
  src: i,
26624
26631
  alt: "",
26625
- style: n
26632
+ style: n,
26633
+ onError: () => a(null)
26626
26634
  }) : /* @__PURE__ */ g("span", {
26627
26635
  style: r,
26628
26636
  children: XD(t)
@@ -29105,27 +29113,30 @@ function dk(e, t) {
29105
29113
  function fk(e, t) {
29106
29114
  let n = String(t || "").toLowerCase().trim();
29107
29115
  if (!n) return 0;
29108
- let r = [
29109
- e.textContent,
29116
+ let r = (e.innerText || e.textContent || "").replace(/\s+/g, " ").trim(), i = [
29117
+ r,
29110
29118
  e.value,
29111
29119
  e.getAttribute("aria-label"),
29112
- e.getAttribute("title")
29120
+ e.getAttribute("title"),
29121
+ e.getAttribute("data-text"),
29122
+ e.getAttribute("data-label")
29113
29123
  ].filter(Boolean).join(" ").toLowerCase().replace(/\s+/g, " ");
29114
- if (r.includes(n)) return 100;
29115
- let i = n.split(/\s+/).filter((e) => e.length > 1);
29116
- if (!i.length) return 0;
29117
- let a = 0;
29118
- for (let e of i) r.includes(e) && (a += 1);
29119
- return a / i.length * 92;
29124
+ if (i.includes(n) || r.toLowerCase() === n) return 100;
29125
+ let a = n.split(/\s+/).filter((e) => e.length > 1);
29126
+ if (!a.length) return 0;
29127
+ let o = 0;
29128
+ for (let e of a) i.includes(e) && (o += 1);
29129
+ return o / a.length * 92;
29120
29130
  }
29121
29131
  function pk(e, t) {
29122
29132
  let n = [];
29123
29133
  KO((e) => {
29124
- n.push(...Array.from(e.querySelectorAll("button, [role=\"button\"], input[type=\"submit\"], input[type=\"button\"]")).filter((e) => {
29134
+ let t = Array.from(e.querySelectorAll("button, [role=\"button\"], input[type=\"submit\"], input[type=\"button\"], a[href]"));
29135
+ n.push(...t.filter((e) => {
29125
29136
  if (WO(e) || e.disabled) return !1;
29126
29137
  try {
29127
29138
  let t = GO(e);
29128
- if (t.display === "none" || t.visibility === "hidden") return !1;
29139
+ if (t.display === "none" || t.visibility === "hidden" || t.opacity === "0") return !1;
29129
29140
  } catch {}
29130
29141
  return !0;
29131
29142
  }));
@@ -29135,7 +29146,7 @@ function pk(e, t) {
29135
29146
  s: fk(t, e)
29136
29147
  }));
29137
29148
  for (let { s: e } of i) e > r && (r = e);
29138
- if (r < 36) return null;
29149
+ if (r < 28) return null;
29139
29150
  let a = i.filter(({ s: e }) => e === r).map(({ el: e }) => e);
29140
29151
  if (a.length === 1) return a[0];
29141
29152
  let o = Array.isArray(t) ? t.filter((e) => e && e.isConnected) : [];
@@ -29376,7 +29387,7 @@ function Ck(e) {
29376
29387
  e = new URL(a, typeof window < "u" ? window.location.href : "").href;
29377
29388
  } catch {}
29378
29389
  t && typeof window < "u" && Ve(t, window.location.href, e), Cr(e), $("flowengage_navigate → real navigation", a);
29379
- let n = typeof window < "u" && !!(window.next?.router || window.__NEXT_ROUTER__ || window.__remixRouter || window.__staticRouterHydrationData || window.___gatsby || window.___navigate || window.__VUE_ROUTER__ || window.__NUXT__ || window.$nuxt || window.ng?.getComponent || typeof document < "u" && document.querySelector("[ng-version]") || window.__sveltekit_data || typeof document < "u" && document.querySelector("[data-sveltekit-hydrate]"));
29390
+ let n = typeof window < "u" && !!er();
29380
29391
  if (typeof window < "u" && window.__fe_triggerVoiceNavHooks && window.__fe_triggerVoiceNavHooks(), n && qn(3e3), Er(a, { voiceActive: !0 }).catch(() => {}), n) try {
29381
29392
  let e = new URL(a, window.location.origin).pathname, t = Date.now() + 2e3;
29382
29393
  for (; Date.now() < t && !(typeof window < "u" && window.location.pathname === e);) await new Promise((e) => setTimeout(e, 80));
@@ -29653,10 +29664,29 @@ function Dk(e) {
29653
29664
  let t = e.replace("#", ""), n = t.length === 3 ? t.split("").map((e) => e + e).join("") : t, r = parseInt(n.slice(0, 2), 16) / 255, i = parseInt(n.slice(2, 4), 16) / 255, a = parseInt(n.slice(4, 6), 16) / 255, o = (e) => e <= .04045 ? e / 12.92 : ((e + .055) / 1.055) ** 2.4;
29654
29665
  return .2126 * o(r) + .7152 * o(i) + .0722 * o(a) > .179 ? "#1a1a1a" : "#ffffff";
29655
29666
  }
29656
- function Ok({ logo: t, style: n }) {
29667
+ function Ok(t) {
29668
+ let [n, r] = e.useState(null), i = typeof t == "string" ? t.trim() : "";
29669
+ return e.useEffect(() => {
29670
+ if (!i) {
29671
+ r(null);
29672
+ return;
29673
+ }
29674
+ r(null);
29675
+ let e = !1, t = new window.Image();
29676
+ return t.onload = () => {
29677
+ e || r(i);
29678
+ }, t.onerror = () => {
29679
+ e || r(null);
29680
+ }, t.src = i, () => {
29681
+ e = !0;
29682
+ };
29683
+ }, [i]), n;
29684
+ }
29685
+ function kk({ logo: t, style: n }) {
29686
+ let r = Ok(typeof t == "string" ? t : null);
29657
29687
  if (!t) return null;
29658
- if (typeof t == "string") return /* @__PURE__ */ g("img", {
29659
- src: t,
29688
+ if (typeof t == "string") return r ? /* @__PURE__ */ g("img", {
29689
+ src: r,
29660
29690
  alt: "",
29661
29691
  style: {
29662
29692
  objectFit: "contain",
@@ -29664,9 +29694,9 @@ function Ok({ logo: t, style: n }) {
29664
29694
  display: "block",
29665
29695
  ...n
29666
29696
  }
29667
- });
29668
- let r = typeof t == "function" ? e.createElement(t) : e.isValidElement(t) ? t : null;
29669
- return r ? /* @__PURE__ */ g("span", {
29697
+ }) : null;
29698
+ let i = typeof t == "function" ? e.createElement(t) : e.isValidElement(t) ? t : null;
29699
+ return i ? /* @__PURE__ */ g("span", {
29670
29700
  className: "fe-logo-slot",
29671
29701
  style: {
29672
29702
  display: "inline-flex",
@@ -29675,10 +29705,10 @@ function Ok({ logo: t, style: n }) {
29675
29705
  overflow: "hidden",
29676
29706
  ...n
29677
29707
  },
29678
- children: r
29708
+ children: i
29679
29709
  }) : null;
29680
29710
  }
29681
- function kk({ title: e }) {
29711
+ function Ak({ title: e }) {
29682
29712
  return /* @__PURE__ */ g("div", {
29683
29713
  style: {
29684
29714
  width: "100%",
@@ -29696,17 +29726,17 @@ function kk({ title: e }) {
29696
29726
  children: String(e || "FE").split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toUpperCase() || "").join("") || "FE"
29697
29727
  });
29698
29728
  }
29699
- function Ak(e, t) {
29729
+ function jk(e, t) {
29700
29730
  let n = (t || "").trim();
29701
29731
  return n ? !!(/\b(let'?s|let us)\s+(end|stop|finish|wrap up|close)\s+(the\s+)?(voice\s+)?(session|call|chat)\b/i.test(n) || /\bend\s+(this\s+)?(the\s+)?(voice\s+)?(session|call|chat)\b/i.test(n) || /\b(hang\s+up|disconnect)\b/i.test(n) || /\b(that'?s all|we'?re done)\b/i.test(n) || e === "bot" && (/\b(I'?ll|I will|Let me|I can|I'?m going to)\s+(end|close)\s+(the\s+)?(voice\s+)?(session|call)\b/i.test(n) || /\b(ending|closing)\s+(the\s+)?(voice\s+)?session\b|\bvoice\s+session\s+(is\s+)?(now\s+)?(ended|over|closing)\b/i.test(n) || /\b(session|call)\s+(is\s+)?(now\s+)?(ended|over)\b/i.test(n) || /\bwe\s+can\s+end\s+(the\s+)?(session|call)?\s*(here|now)\b/i.test(n) || /\b(wrapping\s+up|signing\s+off)\b/i.test(n)) || /^(goodbye|bye|that'?s all|we'?re done|hang up|disconnect)\b/i.test(n)) : !1;
29702
29732
  }
29703
- function jk({ orbColors: e, ...t }) {
29733
+ function Mk({ orbColors: e, ...t }) {
29704
29734
  return /* @__PURE__ */ g(lO, {
29705
29735
  colors: e,
29706
29736
  ...t
29707
29737
  });
29708
29738
  }
29709
- function Mk({ copy: e, orbColors: t, primaryColor: n, onYes: r, onLater: i, isMobile: a, isClosing: o }) {
29739
+ function Nk({ copy: e, orbColors: t, primaryColor: n, onYes: r, onLater: i, isMobile: a, isClosing: o }) {
29710
29740
  let s = n || Tk.green, c = Dk(s), l = a ? 72 : 94, u = /* @__PURE__ */ _("div", {
29711
29741
  style: {
29712
29742
  display: "flex",
@@ -29828,7 +29858,7 @@ function Mk({ copy: e, orbColors: t, primaryColor: n, onYes: r, onLater: i, isMo
29828
29858
  delay: 0
29829
29859
  },
29830
29860
  style: { flexShrink: 0 },
29831
- children: /* @__PURE__ */ g(jk, {
29861
+ children: /* @__PURE__ */ g(Mk, {
29832
29862
  size: l,
29833
29863
  orbColors: t
29834
29864
  })
@@ -29860,7 +29890,7 @@ function Mk({ copy: e, orbColors: t, primaryColor: n, onYes: r, onLater: i, isMo
29860
29890
  children: u
29861
29891
  })] });
29862
29892
  }
29863
- function Nk({ copy: e, orbColors: t, primaryColor: n, onVoice: r, onText: i, onClose: a, isMobile: o, isClosing: s }) {
29893
+ function Pk({ copy: e, orbColors: t, primaryColor: n, onVoice: r, onText: i, onClose: a, isMobile: o, isClosing: s }) {
29864
29894
  let c = n || Tk.green, l = Dk(c);
29865
29895
  return /* @__PURE__ */ _(Dm.div, {
29866
29896
  initial: {
@@ -29932,7 +29962,7 @@ function Nk({ copy: e, orbColors: t, primaryColor: n, onVoice: r, onText: i, onC
29932
29962
  children: /* @__PURE__ */ g("polyline", { points: "6 9 12 15 18 9" })
29933
29963
  })
29934
29964
  }),
29935
- /* @__PURE__ */ g(jk, {
29965
+ /* @__PURE__ */ g(Mk, {
29936
29966
  size: 72,
29937
29967
  orbColors: t
29938
29968
  }),
@@ -30001,7 +30031,7 @@ function Nk({ copy: e, orbColors: t, primaryColor: n, onVoice: r, onText: i, onC
30001
30031
  ]
30002
30032
  });
30003
30033
  }
30004
- function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i, apiBaseUrl: a, chatId: s, historyRef: l, onMessageSync: u, voiceEndCounter: d }) {
30034
+ function Fk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i, apiBaseUrl: a, chatId: s, historyRef: l, onMessageSync: u, voiceEndCounter: d }) {
30005
30035
  let [f, h] = m("idle"), [v, y] = m(!1), [b, x] = m(!1), S = p(null), C = p(""), w = p(async () => {}), T = p(!1), ee = p(!1), te = p(!1), ne = p(!1), re = p("minimized"), E = p(null), ie = p(null), ae = p(null), oe = p(0), D = p(!1), se = p("idle"), ce = p(!1), le = p(null), ue = p(null), de = p(!1), fe = o((e = "minimized") => {
30006
30036
  re.current = e, ne.current = !0, queueMicrotask(() => {
30007
30037
  T.current || (T.current = !0, w.current?.());
@@ -30153,7 +30183,7 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
30153
30183
  let e = vO(l.current);
30154
30184
  e && Ae(i, e);
30155
30185
  } catch {}
30156
- if (Ak(n, r)) {
30186
+ if (jk(n, r)) {
30157
30187
  fe("minimized");
30158
30188
  return;
30159
30189
  }
@@ -30317,7 +30347,7 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
30317
30347
  },
30318
30348
  children: "Muted"
30319
30349
  }),
30320
- /* @__PURE__ */ g(jk, {
30350
+ /* @__PURE__ */ g(Mk, {
30321
30351
  size: 72,
30322
30352
  voiceState: f,
30323
30353
  isMuted: v,
@@ -30555,7 +30585,7 @@ function Pk({ orbColors: e, onEnterChat: t, onEndChat: n, agentId: r, siteId: i,
30555
30585
  ]
30556
30586
  });
30557
30587
  }
30558
- function Fk({ orbColors: e }) {
30588
+ function Ik({ orbColors: e }) {
30559
30589
  return /* @__PURE__ */ g("div", {
30560
30590
  style: {
30561
30591
  flexShrink: 0,
@@ -30565,13 +30595,13 @@ function Fk({ orbColors: e }) {
30565
30595
  alignItems: "center",
30566
30596
  justifyContent: "center"
30567
30597
  },
30568
- children: /* @__PURE__ */ g(jk, {
30598
+ children: /* @__PURE__ */ g(Mk, {
30569
30599
  size: 36,
30570
30600
  orbColors: e
30571
30601
  })
30572
30602
  });
30573
30603
  }
30574
- var Ik = () => /* @__PURE__ */ g("div", {
30604
+ var Lk = () => /* @__PURE__ */ g("div", {
30575
30605
  style: {
30576
30606
  display: "flex",
30577
30607
  marginBottom: "12px",
@@ -30601,7 +30631,7 @@ var Ik = () => /* @__PURE__ */ g("div", {
30601
30631
  } }, e))
30602
30632
  })
30603
30633
  });
30604
- function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i, quickChatOptions: a, onQuickChatSelect: o, isMobile: s, chatHistory: l, isAiTyping: u, isAgentTyping: d, activeScreen: f, agentName: v, agentHeadshot: y, fallbackAgentName: b, input: x, setInput: S, onSubmit: C, isConversationEnded: w, isLoading: T, isRateLimited: ee, rateLimitMessage: te, selectedFile: ne, onFileSelect: re, onRemoveSelectedFile: E, attachmentError: ie, isUploadingAttachment: ae, requiresEmail: oe, emailInput: D, setEmailInput: se, emailError: ce, emailCaptureSuccess: le, replyContext: ue, setReplyContext: de, webRTCError: fe, micError: pe, setMicError: me, dismissCallError: he, activeCallId: ge, isCallMuted: _e, toggleCallMute: ve, endWebRTCCall: ye, formatCallDuration: be, callDurationSeconds: xe, isCallMinimized: Se, onExpand: Ce, onCollapse: we, onStartVoice: Te, onNewChat: Ee, showPoweredBy: De, getVisitorChatHistory: Oe, resumeChat: ke, isSessionRestoring: Ae, isClosing: je }) {
30634
+ function Rk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i, quickChatOptions: a, onQuickChatSelect: o, isMobile: s, chatHistory: l, isAiTyping: u, isAgentTyping: d, activeScreen: f, agentName: v, agentHeadshot: y, fallbackAgentName: b, input: x, setInput: S, onSubmit: C, isConversationEnded: w, isLoading: T, isRateLimited: ee, rateLimitMessage: te, selectedFile: ne, onFileSelect: re, onRemoveSelectedFile: E, attachmentError: ie, isUploadingAttachment: ae, requiresEmail: oe, emailInput: D, setEmailInput: se, emailError: ce, emailCaptureSuccess: le, replyContext: ue, setReplyContext: de, webRTCError: fe, micError: pe, setMicError: me, dismissCallError: he, activeCallId: ge, isCallMuted: _e, toggleCallMute: ve, endWebRTCCall: ye, formatCallDuration: be, callDurationSeconds: xe, isCallMinimized: Se, onExpand: Ce, onCollapse: we, onStartVoice: Te, onNewChat: Ee, showPoweredBy: De, getVisitorChatHistory: Oe, resumeChat: ke, isSessionRestoring: Ae, isClosing: je }) {
30605
30635
  let Me = l.length > 0, Ne = T || ee || w, Pe = !!ge, [Fe, Ie] = m(!1), [Le, Re] = m(!1), [ze, Be] = m([]), [Ve, He] = m(!1), O = p(null), Ue = async () => {
30606
30636
  Ie(!1), Re(!0), He(!0);
30607
30637
  try {
@@ -30726,7 +30756,7 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
30726
30756
  justifyContent: "center",
30727
30757
  height: "40px"
30728
30758
  },
30729
- children: i ? /* @__PURE__ */ g(Ok, {
30759
+ children: i ? /* @__PURE__ */ g(kk, {
30730
30760
  logo: i,
30731
30761
  style: {
30732
30762
  height: "34px",
@@ -30739,7 +30769,7 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
30739
30769
  height: "40px",
30740
30770
  flexShrink: 0
30741
30771
  },
30742
- children: /* @__PURE__ */ g(kk, { title: e.chatTitle })
30772
+ children: /* @__PURE__ */ g(Ak, { title: e.chatTitle })
30743
30773
  })
30744
30774
  }), /* @__PURE__ */ g("div", {
30745
30775
  style: {
@@ -31169,11 +31199,11 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
31169
31199
  isLoading: T,
31170
31200
  isAgentTyping: d,
31171
31201
  setReplyContext: de,
31172
- TypingDots: Ik,
31202
+ TypingDots: Lk,
31173
31203
  primaryColor: n,
31174
31204
  agentHeadshot: y,
31175
31205
  agentDisplayName: v || b,
31176
- botAvatarNode: /* @__PURE__ */ g(Fk, { orbColors: t })
31206
+ botAvatarNode: /* @__PURE__ */ g(Ik, { orbColors: t })
31177
31207
  }) : Ae ? /* @__PURE__ */ _("div", {
31178
31208
  style: {
31179
31209
  flex: 1,
@@ -31214,7 +31244,7 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
31214
31244
  padding: "28px 24px"
31215
31245
  },
31216
31246
  children: [
31217
- /* @__PURE__ */ g(jk, {
31247
+ /* @__PURE__ */ g(Mk, {
31218
31248
  size: 94,
31219
31249
  orbColors: t
31220
31250
  }),
@@ -31355,7 +31385,7 @@ function Lk({ copy: e, orbColors: t, primaryColor: n, chatBgGradient: r, logo: i
31355
31385
  ]
31356
31386
  });
31357
31387
  }
31358
- function Rk() {
31388
+ function zk() {
31359
31389
  let { status: e, runtimeConfig: t, resolvedConfig: n, chatHistory: r, isOpen: i, activeScreen: a, isHumanHandled: s, agentName: l, agentHeadshot: u, visitorEmail: h, isAgentTyping: v, isAiTyping: y, isLoading: b, isRateLimited: x, rateLimitMessage: S, isConversationEnded: C, incomingCall: w, activeCallId: T, callConnectionState: ee, callConnectedAt: te, isCallMuted: ne, webRTCError: re, language: E, chatId: ie, historyRef: ae, onMessageSync: oe, sendMessage: D, uploadChatFile: se, openWidget: ce, captureVisitorEmail: le, setVoiceMode: ue, endConversation: de, startNewChat: me, acceptCall: he, rejectCall: ge, endWebRTCCall: _e, toggleCallMute: ve, dismissCallError: ye, startTyping: be, stopTyping: xe, updateTypingDraft: Se, getVisitorChatHistory: Ce, resumeChat: we, isSessionRestoring: Te, openToChatCounter: Ee, voiceEndCounter: De } = Ln();
31360
31390
  c(() => {
31361
31391
  try {
@@ -31615,9 +31645,9 @@ function Rk() {
31615
31645
  bottom: "1.5rem"
31616
31646
  }, Gt = o(() => {
31617
31647
  A !== "minimized_orb" && (At(!0), setTimeout(() => {
31618
- st("minimized_orb"), At(!1);
31648
+ st("minimized_orb"), At(!1), T && Ot(!0);
31619
31649
  }, 280));
31620
- }, [A]), Kt = () => st("connection_modal"), qt = () => {
31650
+ }, [T, A]), Kt = () => st("connection_modal"), qt = () => {
31621
31651
  try {
31622
31652
  let e = window.AudioContext || window.webkitAudioContext;
31623
31653
  if (e) {
@@ -31641,7 +31671,7 @@ function Rk() {
31641
31671
  onWheel: (e) => e.stopPropagation(),
31642
31672
  onTouchMove: (e) => e.stopPropagation(),
31643
31673
  children: [
31644
- A === "entry_prompt" && /* @__PURE__ */ g(Mk, {
31674
+ A === "entry_prompt" && /* @__PURE__ */ g(Nk, {
31645
31675
  copy: Qe,
31646
31676
  orbColors: Le,
31647
31677
  primaryColor: ze,
@@ -31676,7 +31706,7 @@ function Rk() {
31676
31706
  alignItems: He === "bottom-left" ? "flex-start" : "flex-end",
31677
31707
  gap: "10px"
31678
31708
  },
31679
- children: [T && Dt && /* @__PURE__ */ _("button", {
31709
+ children: [T && /* @__PURE__ */ _("button", {
31680
31710
  type: "button",
31681
31711
  onClick: Lt,
31682
31712
  style: {
@@ -31724,13 +31754,13 @@ function Rk() {
31724
31754
  children: ee === "connected" ? `${Ht(_t)} with ${nt}` : `Tap to return to ${nt}`
31725
31755
  })]
31726
31756
  })]
31727
- }), /* @__PURE__ */ g(jk, {
31757
+ }), /* @__PURE__ */ g(Mk, {
31728
31758
  size: Ve,
31729
31759
  orbColors: Le,
31730
- onClick: T && Dt ? Lt : Ie ? Kt : Jt
31760
+ onClick: T ? Lt : Ie ? Kt : Jt
31731
31761
  })]
31732
31762
  }),
31733
- A === "connection_modal" && /* @__PURE__ */ g(Nk, {
31763
+ A === "connection_modal" && /* @__PURE__ */ g(Pk, {
31734
31764
  copy: Qe,
31735
31765
  orbColors: Le,
31736
31766
  primaryColor: ze,
@@ -31740,7 +31770,7 @@ function Rk() {
31740
31770
  isMobile: Nt,
31741
31771
  isClosing: kt
31742
31772
  }),
31743
- A === "voice_mode" && /* @__PURE__ */ g(Pk, {
31773
+ A === "voice_mode" && /* @__PURE__ */ g(Fk, {
31744
31774
  orbColors: Le,
31745
31775
  onEnterChat: Jt,
31746
31776
  onEndChat: Yt,
@@ -31771,7 +31801,7 @@ function Rk() {
31771
31801
  orbColors: Le,
31772
31802
  chatHistory: r
31773
31803
  }),
31774
- A === "text_chat" && /* @__PURE__ */ g(Lk, {
31804
+ A === "text_chat" && /* @__PURE__ */ g(Rk, {
31775
31805
  isClosing: kt,
31776
31806
  copy: Qe,
31777
31807
  orbColors: Le,
@@ -31822,7 +31852,7 @@ function Rk() {
31822
31852
  onNewChat: Vt,
31823
31853
  onMinimize: Rt,
31824
31854
  onExpand: Lt,
31825
- isCallMinimized: Dt && !!T,
31855
+ isCallMinimized: !!T,
31826
31856
  showPoweredBy: Ye,
31827
31857
  getVisitorChatHistory: Ce,
31828
31858
  resumeChat: we,
@@ -31834,7 +31864,7 @@ function Rk() {
31834
31864
  }
31835
31865
  //#endregion
31836
31866
  //#region src/components/ErrorBoundary.jsx
31837
- var zk = class extends e.Component {
31867
+ var Bk = class extends e.Component {
31838
31868
  constructor(e) {
31839
31869
  super(e), this.state = { hasError: !1 };
31840
31870
  }
@@ -31849,4 +31879,4 @@ var zk = class extends e.Component {
31849
31879
  }
31850
31880
  };
31851
31881
  //#endregion
31852
- export { lO as AnimatedOrb, zk as ErrorBoundary, Rr as FlowEngageProvider, Rk as FlowEngageWidget, Ln as useFlowEngage };
31882
+ export { lO as AnimatedOrb, Bk as ErrorBoundary, Rr as FlowEngageProvider, zk as FlowEngageWidget, Ln as useFlowEngage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowengage/react-chatbot",
3
- "version": "6.0.15",
3
+ "version": "6.0.17",
4
4
  "description": "Embeddable AI chat widget for React — powered by FlowEngage. Drop it in with a single siteId.",
5
5
  "keywords": [
6
6
  "chatbot",