@phonghq/go-chat 1.0.60 → 1.0.62
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.
|
@@ -113,6 +113,8 @@ function startTimer() {
|
|
|
113
113
|
const m = String(Math.floor(sec / 60)).padStart(2, '0');
|
|
114
114
|
const s = String(sec % 60).padStart(2, '0');
|
|
115
115
|
duration.value = `${m}:${s}`;
|
|
116
|
+
console.log(limitTime.value);
|
|
117
|
+
console.log(!limitTime.value || limitTime.value <= 0);
|
|
116
118
|
if (!limitTime.value || limitTime.value <= 0) {
|
|
117
119
|
handleTimeLimitError();
|
|
118
120
|
}
|
|
@@ -169,6 +171,7 @@ const refreshToken = async () => {
|
|
|
169
171
|
};
|
|
170
172
|
const handleInComingCall = (data) => {
|
|
171
173
|
limitTime.value = data?.limit_time ?? 0;
|
|
174
|
+
console.log('saaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa', data);
|
|
172
175
|
if (limitTime.value <= 0) {
|
|
173
176
|
handleTimeLimitError();
|
|
174
177
|
return;
|
|
@@ -201,6 +204,7 @@ const startCall = async (data) => {
|
|
|
201
204
|
handleTimeLimitError();
|
|
202
205
|
return;
|
|
203
206
|
}
|
|
207
|
+
console.log('limitTime.value', limitTime.value);
|
|
204
208
|
callType = 'call';
|
|
205
209
|
await plivoCall(data.phone);
|
|
206
210
|
callStatus.value = PLIVO_CALL_STATUS.CALLING;
|
package/dist/go-chat.es.js
CHANGED
|
@@ -36339,7 +36339,7 @@ const CH = (q, V, e) => {
|
|
|
36339
36339
|
}
|
|
36340
36340
|
}), YH = async (q) => {
|
|
36341
36341
|
const V = await Je.get("/api/v1/message/tenant/get-phone-time-limit", { params: q });
|
|
36342
|
-
return (V == null ? void 0 : V.remaining_seconds) ?? 0;
|
|
36342
|
+
return console.log("getPhoneTimeLimit", V), (V == null ? void 0 : V.remaining_seconds) ?? 0;
|
|
36343
36343
|
}, bH = async (q) => await Je.get("/api/v1/message/message/unread-count", { params: q }), GH = async (q) => await Je.post("/api/v1/general/storage/upload", q, {
|
|
36344
36344
|
headers: {
|
|
36345
36345
|
"Content-Type": "multipart/form-data"
|
|
@@ -71137,10 +71137,11 @@ function Miq(q) {
|
|
|
71137
71137
|
alert(M), (S = (B = (I = e == null ? void 0 : e.client) == null ? void 0 : I.audio) == null ? void 0 : B.set) == null || S.call(B, M);
|
|
71138
71138
|
}, E = async () => {
|
|
71139
71139
|
var I, B;
|
|
71140
|
-
|
|
71140
|
+
const M = await YH({
|
|
71141
71141
|
tenant_id: ((I = dV.value) == null ? void 0 : I.tenant_id) ?? "",
|
|
71142
71142
|
phone: ((B = dV.value) == null ? void 0 : B.phone) ?? ""
|
|
71143
71143
|
});
|
|
71144
|
+
return console.log("res", M), M;
|
|
71144
71145
|
};
|
|
71145
71146
|
return {
|
|
71146
71147
|
plivoLogin: o,
|
|
@@ -71317,7 +71318,7 @@ const Siq = /* @__PURE__ */ FV(Biq, [["render", Tiq]]), Riq = { class: "text-sm
|
|
|
71317
71318
|
I = setInterval(() => {
|
|
71318
71319
|
F++, M.value = M.value - 1;
|
|
71319
71320
|
const U = String(Math.floor(F / 60)).padStart(2, "0"), tq = String(F % 60).padStart(2, "0");
|
|
71320
|
-
f.value = `${U}:${tq}`, (!M.value || M.value <= 0) && $();
|
|
71321
|
+
f.value = `${U}:${tq}`, console.log(M.value), console.log(!M.value || M.value <= 0), (!M.value || M.value <= 0) && $();
|
|
71321
71322
|
}, 1e3);
|
|
71322
71323
|
}
|
|
71323
71324
|
function Y(F) {
|
|
@@ -71339,7 +71340,7 @@ const Siq = /* @__PURE__ */ FV(Biq, [["render", Tiq]]), Riq = { class: "text-sm
|
|
|
71339
71340
|
}
|
|
71340
71341
|
}, O = (F) => {
|
|
71341
71342
|
var U;
|
|
71342
|
-
if (M.value = (F == null ? void 0 : F.limit_time) ?? 0, M.value <= 0) {
|
|
71343
|
+
if (M.value = (F == null ? void 0 : F.limit_time) ?? 0, console.log("saaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", F), M.value <= 0) {
|
|
71343
71344
|
$();
|
|
71344
71345
|
return;
|
|
71345
71346
|
}
|
|
@@ -71359,7 +71360,7 @@ const Siq = /* @__PURE__ */ FV(Biq, [["render", Tiq]]), Riq = { class: "text-sm
|
|
|
71359
71360
|
$();
|
|
71360
71361
|
return;
|
|
71361
71362
|
}
|
|
71362
|
-
D = "call", await r(F.phone), a.value = aV.CALLING;
|
|
71363
|
+
console.log("limitTime.value", M.value), D = "call", await r(F.phone), a.value = aV.CALLING;
|
|
71363
71364
|
} catch (U) {
|
|
71364
71365
|
console.log("111111111111111111111111"), Y(), console.log(U), m.value = (U == null ? void 0 : U.message) || JSON.stringify(U), a.value = aV.CONNECT_FAILED;
|
|
71365
71366
|
}
|
|
@@ -71487,7 +71488,7 @@ const Siq = /* @__PURE__ */ FV(Biq, [["render", Tiq]]), Riq = { class: "text-sm
|
|
|
71487
71488
|
}, null, 8, Qiq)
|
|
71488
71489
|
], 64));
|
|
71489
71490
|
}
|
|
71490
|
-
}), Fiq = /* @__PURE__ */ FV(Piq, [["__scopeId", "data-v-
|
|
71491
|
+
}), Fiq = /* @__PURE__ */ FV(Piq, [["__scopeId", "data-v-f4689021"]]), jiq = ["onClick"], Liq = { class: "cursor-pointer" }, Ziq = /* @__PURE__ */ Hq({
|
|
71491
71492
|
__name: "SelectBase",
|
|
71492
71493
|
props: {
|
|
71493
71494
|
modelValue: {},
|