@2uinc/frontend-component-xpert-chatbot 1.6.0 → 1.6.2

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.
@@ -880,7 +880,7 @@ var du = pn.exports;
880
880
  const hu = /* @__PURE__ */ nt(du), gu = {
881
881
  xpertKey: "exec-ed-ss-olc-moodle",
882
882
  chatApi: {
883
- endpoint: "https://xpert-platform-services-api.stg.ai.2u.com/xpert/omnichannel",
883
+ endpoint: "https://xpert-platform-services-api.prod.ai.2u.com/xpert/omnichannel",
884
884
  payloadParams: {
885
885
  use_case: "LOG_OUT"
886
886
  }
@@ -10107,12 +10107,12 @@ function Kr({ submitEvent: e, setLiveChatOpen: t, isTestUser: n }) {
10107
10107
  );
10108
10108
  Oe(() => {
10109
10109
  let m, d;
10110
- return u.liveChat.enabled && (m = document.createElement("script"), m.type = "text/javascript", m.src = u.liveChat.sourceCode, m.async = !0, m.onload = () => {
10110
+ return u.liveChat.enabled && (window.Five9ChatPlugin || (m = document.createElement("script"), m.type = "text/javascript", m.src = u.liveChat.sourceCode, m.async = !0, m.onload = () => {
10111
10111
  window.Five9ChatPlugin(u.liveChat.options);
10112
- }, document.body.appendChild(m), window.addEventListener("message", s), window.addEventListener("message", c), d = setTimeout(() => {
10112
+ }, document.body.appendChild(m)), window.addEventListener("message", s), window.addEventListener("message", c), d = setTimeout(() => {
10113
10113
  i(!1);
10114
10114
  }, 3e3)), () => {
10115
- u.liveChat.enabled && (document.body.removeChild(m), window.removeEventListener("message", s), window.removeEventListener("message", c), clearTimeout(d));
10115
+ u.liveChat.enabled && (window.removeEventListener("message", s), window.removeEventListener("message", c), clearTimeout(d));
10116
10116
  };
10117
10117
  }, [
10118
10118
  u.liveChat.enabled,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2uinc/frontend-component-xpert-chatbot",
3
- "version": "1.6.0",
3
+ "version": "1.6.2",
4
4
  "homepage": "/app/plugins/xpert-chatbot/frontend/build/",
5
5
  "repository": {
6
6
  "type": "git",