@phonghq/go-chat 1.0.59 → 1.0.60

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.
@@ -411,7 +411,7 @@ const { default: __VLS_8 } = __VLS_2.slots;
411
411
  // @ts-ignore
412
412
  [handleMute,];
413
413
  } },
414
- ...{ class: "w-16 h-16 shadow-lg bg-white hover:bg-green-600 text-black rounded-full flex items-center justify-center shadow-3xl transition" },
414
+ ...{ class: "w-16 h-16 shadow-lg bg-white text-black rounded-full flex items-center justify-center shadow-3xl transition" },
415
415
  });
416
416
  /** @type {[typeof IconMic, ]} */ ;
417
417
  // @ts-ignore
@@ -435,7 +435,7 @@ const { default: __VLS_8 } = __VLS_2.slots;
435
435
  // @ts-ignore
436
436
  [endCall,];
437
437
  } },
438
- ...{ class: "w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-3xl transition" },
438
+ ...{ class: "w-16 h-16 bg-white text-white rounded-full flex items-center justify-center shadow-3xl transition" },
439
439
  });
440
440
  /** @type {[typeof IconClose, ]} */ ;
441
441
  // @ts-ignore
@@ -542,7 +542,6 @@ __VLS_asFunctionalElement(__VLS_elements.audio, __VLS_elements.audio)({
542
542
  /** @type {__VLS_StyleScopedClasses['h-16']} */ ;
543
543
  /** @type {__VLS_StyleScopedClasses['shadow-lg']} */ ;
544
544
  /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
545
- /** @type {__VLS_StyleScopedClasses['hover:bg-green-600']} */ ;
546
545
  /** @type {__VLS_StyleScopedClasses['text-black']} */ ;
547
546
  /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
548
547
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
@@ -553,7 +552,6 @@ __VLS_asFunctionalElement(__VLS_elements.audio, __VLS_elements.audio)({
553
552
  /** @type {__VLS_StyleScopedClasses['w-16']} */ ;
554
553
  /** @type {__VLS_StyleScopedClasses['h-16']} */ ;
555
554
  /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
556
- /** @type {__VLS_StyleScopedClasses['hover:bg-green-600']} */ ;
557
555
  /** @type {__VLS_StyleScopedClasses['text-white']} */ ;
558
556
  /** @type {__VLS_StyleScopedClasses['rounded-full']} */ ;
559
557
  /** @type {__VLS_StyleScopedClasses['flex']} */ ;
@@ -71,6 +71,7 @@ export function usePlivo(callback) {
71
71
  CallUuid = call?.callUUID;
72
72
  }
73
73
  catch (error) {
74
+ console.log('e11111111111111', error);
74
75
  callback(PLIVO_CALL_STATUS.CALL_END);
75
76
  }
76
77
  };
@@ -87,6 +88,7 @@ export function usePlivo(callback) {
87
88
  };
88
89
  const handleCallTerminated = (data, callInfo) => {
89
90
  if (CallUuid === callInfo.callUUID) {
91
+ console.log('e22222222222222', data);
90
92
  callback(PLIVO_CALL_STATUS.CALL_END, { message: data?.reason });
91
93
  CallUuid = '';
92
94
  }
@@ -150,12 +152,14 @@ export function usePlivo(callback) {
150
152
  console.log('handleCallFailed', data);
151
153
  if (custom_reject)
152
154
  custom_reject?.(data);
155
+ console.log('e,3333333333333333333333333333', data);
153
156
  callback(PLIVO_CALL_STATUS.CALL_END, { message: data });
154
157
  if (data == 'User Denied Media Access') {
155
158
  alert('Microphone access is blocked. Please enable the microphone permission to make a call.');
156
159
  }
157
160
  };
158
161
  const handleIncomingCallCanceled = (callInfo) => {
162
+ console.log('e444444444444444', callInfo);
159
163
  callback(PLIVO_CALL_STATUS.CALL_END, { reason: callInfo.reason ?? '' });
160
164
  };
161
165
  const handleMediaPermission = (e) => {
@@ -71089,15 +71089,15 @@ function Miq(q) {
71089
71089
  q(aV.CHECK_USER_OFFER, B);
71090
71090
  const S = await E();
71091
71091
  (I = e == null ? void 0 : e.client) == null || I.setRingTone(!0), q(aV.RINGING, { ...B, limit_time: S }), t = M == null ? void 0 : M.callUUID;
71092
- } catch {
71093
- q(aV.CALL_END);
71092
+ } catch (B) {
71093
+ console.log("e11111111111111", B), q(aV.CALL_END);
71094
71094
  }
71095
71095
  }, l = (M) => {
71096
71096
  t = M.callUUID, q(aV.CALLING), i == null || i();
71097
71097
  }, u = (M) => {
71098
71098
  M.callUUID == t && (i == null || i(), q(aV.CALL_START));
71099
71099
  }, c = (M, I) => {
71100
- t === I.callUUID && (q(aV.CALL_END, { message: M == null ? void 0 : M.reason }), t = "");
71100
+ t === I.callUUID && (console.log("e22222222222222", M), q(aV.CALL_END, { message: M == null ? void 0 : M.reason }), t = "");
71101
71101
  }, d = (M, I = "1") => {
71102
71102
  let B = M.replace(/[^0-9]/g, "");
71103
71103
  return B != null && B.startsWith(I) ? B.slice(I.toString().length) : B;
@@ -71127,9 +71127,9 @@ function Miq(q) {
71127
71127
  var I, B, S, D, x;
71128
71128
  M == aV.RINGING ? (B = (I = e == null ? void 0 : e.client) == null ? void 0 : I.reject) == null || B.call(I, t) : (M == aV.CALL_START || M == aV.CALLING) && ((D = (S = e == null ? void 0 : e.client) == null ? void 0 : S.hangup) == null || D.call(S)), (x = e == null ? void 0 : e.client) == null || x.setRingTone(!1);
71129
71129
  }, v = (M, I) => {
71130
- console.log("handleCallFailed", M), n && (n == null || n(M)), q(aV.CALL_END, { message: M }), M == "User Denied Media Access" && alert("Microphone access is blocked. Please enable the microphone permission to make a call.");
71130
+ console.log("handleCallFailed", M), n && (n == null || n(M)), console.log("e,3333333333333333333333333333", M), q(aV.CALL_END, { message: M }), M == "User Denied Media Access" && alert("Microphone access is blocked. Please enable the microphone permission to make a call.");
71131
71131
  }, y = (M) => {
71132
- q(aV.CALL_END, { reason: M.reason ?? "" });
71132
+ console.log("e444444444444444", M), q(aV.CALL_END, { reason: M.reason ?? "" });
71133
71133
  }, _ = (M) => {
71134
71134
  console.log("MediaPermission", M), (M == null ? void 0 : M.status) == "failure" && q(aV.MEDIA_PERMISSION_FAIL);
71135
71135
  }, g = (M) => {
@@ -71392,7 +71392,7 @@ const Siq = /* @__PURE__ */ FV(Biq, [["render", Tiq]]), Riq = { class: "text-sm
71392
71392
  }, P = async () => {
71393
71393
  liq(v.value);
71394
71394
  }, Vq = () => {
71395
- v.value = "";
71395
+ v.value = "", m.value = "";
71396
71396
  };
71397
71397
  return V({ startCall: J, endCall: Y, userRemoter: g, callStatus: a, answer: Q, label: p, closeModal: T }), (F, U) => (vq(), Cq(ne, null, [
71398
71398
  qV(ZO, {
@@ -71446,14 +71446,14 @@ const Siq = /* @__PURE__ */ FV(Biq, [["render", Tiq]]), Riq = { class: "text-sm
71446
71446
  a.value == fq(aV).CALL_START ? (vq(), Cq("button", {
71447
71447
  key: 1,
71448
71448
  onClick: U[0] || (U[0] = (H) => k()),
71449
- class: "w-16 h-16 shadow-lg bg-white hover:bg-green-600 text-black rounded-full flex items-center justify-center shadow-3xl transition"
71449
+ class: "w-16 h-16 shadow-lg bg-white text-black rounded-full flex items-center justify-center shadow-3xl transition"
71450
71450
  }, [
71451
71451
  qV(Iiq, { mute: E.value }, null, 8, ["mute"])
71452
71452
  ])) : fV("", !0),
71453
71453
  a.value == fq(aV).CALL_END ? (vq(), Cq("button", {
71454
71454
  key: 2,
71455
71455
  onClick: U[1] || (U[1] = (H) => Y({ closeModal: !0 })),
71456
- class: "w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-3xl transition"
71456
+ class: "w-16 h-16 bg-white text-white rounded-full flex items-center justify-center shadow-3xl transition"
71457
71457
  }, [
71458
71458
  qV(yiq)
71459
71459
  ])) : fV("", !0),
@@ -71487,7 +71487,7 @@ const Siq = /* @__PURE__ */ FV(Biq, [["render", Tiq]]), Riq = { class: "text-sm
71487
71487
  }, null, 8, Qiq)
71488
71488
  ], 64));
71489
71489
  }
71490
- }), Fiq = /* @__PURE__ */ FV(Piq, [["__scopeId", "data-v-b23c5e55"]]), jiq = ["onClick"], Liq = { class: "cursor-pointer" }, Ziq = /* @__PURE__ */ Hq({
71490
+ }), Fiq = /* @__PURE__ */ FV(Piq, [["__scopeId", "data-v-3262475a"]]), jiq = ["onClick"], Liq = { class: "cursor-pointer" }, Ziq = /* @__PURE__ */ Hq({
71491
71491
  __name: "SelectBase",
71492
71492
  props: {
71493
71493
  modelValue: {},