chat-customer-47net 1.2.10 → 1.3.1
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/chat-customer-47net.es.js +5 -17
- package/chat-customer-47net.umd.js +1000 -998
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -834,7 +834,7 @@ var timezoneExports = timezone$1.exports;
|
|
|
834
834
|
const timezone = /* @__PURE__ */getDefaultExportFromCjs(timezoneExports);
|
|
835
835
|
dayjs.extend(utc);
|
|
836
836
|
dayjs.extend(timezone);
|
|
837
|
-
const version = "1.
|
|
837
|
+
const version = "1.3.0";
|
|
838
838
|
const publicDateFormat = "MM/DD/YY";
|
|
839
839
|
const serverLocal = "America/New_York";
|
|
840
840
|
const getTime = dateTime => {
|
|
@@ -879,9 +879,7 @@ const removeVisitor = time => {
|
|
|
879
879
|
const visitorTime = new Date(time).getTime();
|
|
880
880
|
const now = (/* @__PURE__ */new Date()).getTime();
|
|
881
881
|
if (now - visitorTime > 7 * 24 * 60 * 60 * 1e3) {
|
|
882
|
-
console.log("removeVisitor called");
|
|
883
882
|
removeClientId();
|
|
884
|
-
window.location.reload();
|
|
885
883
|
}
|
|
886
884
|
}
|
|
887
885
|
};
|
|
@@ -889,7 +887,6 @@ const removeLoginUserVisitor = time => {
|
|
|
889
887
|
const id = getClientId();
|
|
890
888
|
const visitor = id.startsWith("client") && id.length !== 28;
|
|
891
889
|
if (visitor && !getToken()) {
|
|
892
|
-
console.log("removeLoginUserVisitor called");
|
|
893
890
|
removeClientId();
|
|
894
891
|
}
|
|
895
892
|
};
|
|
@@ -998,9 +995,7 @@ var render$8 = function () {
|
|
|
998
995
|
return _vm.handleTouchEnd(e, "handleStartNewConversation");
|
|
999
996
|
}
|
|
1000
997
|
}
|
|
1001
|
-
}, [_vm._v(" Start New Conversation 💬 ")]) : _vm._e()], 2)
|
|
1002
|
-
staticClass: "consult-47this-version"
|
|
1003
|
-
}, [_vm._v("v" + _vm._s(_vm.version))])]);
|
|
998
|
+
}, [_vm._v(" Start New Conversation 💬 ")]) : _vm._e()], 2)]);
|
|
1004
999
|
};
|
|
1005
1000
|
var staticRenderFns$7 = [function () {
|
|
1006
1001
|
var _vm = this;
|
|
@@ -1104,7 +1099,7 @@ const __vue2_script$7 = {
|
|
|
1104
1099
|
}
|
|
1105
1100
|
};
|
|
1106
1101
|
const __cssModules$7 = {};
|
|
1107
|
-
var __component__$7 = /* @__PURE__ */normalizeComponent(__vue2_script$7, render$8, staticRenderFns$7, false, __vue2_injectStyles$7, "
|
|
1102
|
+
var __component__$7 = /* @__PURE__ */normalizeComponent(__vue2_script$7, render$8, staticRenderFns$7, false, __vue2_injectStyles$7, "22a714b3", null, null);
|
|
1108
1103
|
function __vue2_injectStyles$7(context) {
|
|
1109
1104
|
for (let o in __cssModules$7) {
|
|
1110
1105
|
this[o] = __cssModules$7[o];
|
|
@@ -5967,9 +5962,7 @@ function createService() {
|
|
|
5967
5962
|
case 401:
|
|
5968
5963
|
error.message = msg;
|
|
5969
5964
|
setTimeout(() => {
|
|
5970
|
-
console.log("401-2");
|
|
5971
5965
|
removeClientId();
|
|
5972
|
-
location.reload();
|
|
5973
5966
|
}, 800);
|
|
5974
5967
|
break;
|
|
5975
5968
|
case 404:
|
|
@@ -7260,7 +7253,6 @@ const __vue2_script$2 = {
|
|
|
7260
7253
|
}, 1e3);
|
|
7261
7254
|
}).catch(err => {
|
|
7262
7255
|
if (err.status === 401) {
|
|
7263
|
-
console.log("401");
|
|
7264
7256
|
removeClientId();
|
|
7265
7257
|
this.handleRoute("cover");
|
|
7266
7258
|
}
|
|
@@ -7478,7 +7470,7 @@ const __vue2_script$2 = {
|
|
|
7478
7470
|
}
|
|
7479
7471
|
};
|
|
7480
7472
|
const __cssModules$2 = {};
|
|
7481
|
-
var __component__$2 = /* @__PURE__ */normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "
|
|
7473
|
+
var __component__$2 = /* @__PURE__ */normalizeComponent(__vue2_script$2, render$2, staticRenderFns$2, false, __vue2_injectStyles$2, "3e9cd386", null, null);
|
|
7482
7474
|
function __vue2_injectStyles$2(context) {
|
|
7483
7475
|
for (let o in __cssModules$2) {
|
|
7484
7476
|
this[o] = __cssModules$2[o];
|
|
@@ -7706,7 +7698,6 @@ const __vue2_script = {
|
|
|
7706
7698
|
if (e.newValue === this.onCurrentValue) return;
|
|
7707
7699
|
if (this.storageDebounce) clearTimeout(this.storageDebounce);
|
|
7708
7700
|
this.storageDebounce = setTimeout(async () => {
|
|
7709
|
-
console.log("processTokenChange", 1);
|
|
7710
7701
|
this.processTokenChange(e);
|
|
7711
7702
|
}, 200);
|
|
7712
7703
|
},
|
|
@@ -7714,8 +7705,6 @@ const __vue2_script = {
|
|
|
7714
7705
|
if (this.isHandlingStorage) return;
|
|
7715
7706
|
this.isHandlingStorage = true;
|
|
7716
7707
|
const accessToken = getToken();
|
|
7717
|
-
console.log("accessToken", accessToken);
|
|
7718
|
-
console.log("accessToken", typeof accessToken);
|
|
7719
7708
|
try {
|
|
7720
7709
|
const {
|
|
7721
7710
|
key,
|
|
@@ -7746,7 +7735,6 @@ const __vue2_script = {
|
|
|
7746
7735
|
this.$refs.consultContainer.updateUserId();
|
|
7747
7736
|
}
|
|
7748
7737
|
} else {
|
|
7749
|
-
console.log("logout");
|
|
7750
7738
|
if ((!accessToken || accessToken === "false") && this.userId && this.userId.startsWith("client") && this.userId.length === 28) return;
|
|
7751
7739
|
setClientId("");
|
|
7752
7740
|
this.userId = "";
|
|
@@ -7908,7 +7896,6 @@ const __vue2_script = {
|
|
|
7908
7896
|
this.onUpdateUserUnRead();
|
|
7909
7897
|
this.audio = new Audio(`${data.socketUrl}/static/audio/unread.mp3`);
|
|
7910
7898
|
if (accessToken && accessToken !== "false") {
|
|
7911
|
-
console.log("processTokenChange", 2);
|
|
7912
7899
|
this.processTokenChange({
|
|
7913
7900
|
key: "auth._token.login",
|
|
7914
7901
|
newValue: accessToken
|
|
@@ -7923,6 +7910,7 @@ const __vue2_script = {
|
|
|
7923
7910
|
} catch (err) {
|
|
7924
7911
|
error && error(err);
|
|
7925
7912
|
}
|
|
7913
|
+
localStorage.setItem("consult47this_version", version);
|
|
7926
7914
|
}
|
|
7927
7915
|
}
|
|
7928
7916
|
};
|