@phonghq/go-chat 1.0.19 → 1.0.21

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.
@@ -2,7 +2,7 @@ var rN = Object.defineProperty;
2
2
  var sN = (e, n, t) => n in e ? rN(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
3
3
  var ul = (e, n, t) => sN(e, typeof n != "symbol" ? n + "" : n, t);
4
4
  import * as dl from "vue";
5
- import { defineComponent as Ye, openBlock as re, createElementBlock as de, normalizeClass as vt, createElementVNode as ie, computed as De, createVNode as Ge, withDirectives as Dn, unref as se, vModelText as k_, normalizeStyle as Wr, toDisplayString as dt, ref as Ee, vShow as zn, renderSlot as ht, mergeModels as Ns, useModel as _u, onMounted as uo, onUnmounted as Qr, withCtx as Ze, Fragment as on, renderList as Qn, createBlock as ot, createCommentVNode as at, nextTick as Ti, inject as js, getCurrentInstance as To, toRaw as om, watch as Jn, onBeforeUnmount as rm, provide as sm, reactive as or, readonly as lm, resolveComponent as Dl, getCurrentScope as um, onScopeDispose as dm, effectScope as cm, toRefs as rr, toValue as gi, shallowRef as fu, watchEffect as io, isRef as Nr, toHandlerKey as lN, camelize as _m, toRef as uN, h as kl, Comment as dN, mergeProps as Hi, cloneVNode as cN, Teleport as _N, watchPostEffect as fm, shallowReadonly as vr, mergeDefaults as fN, withModifiers as Hl, normalizeProps as Fs, guardReactiveProps as Vs, resolveDynamicComponent as pm, withKeys as pN, createTextVNode as aN, createStaticVNode as pu } from "vue";
5
+ import { defineComponent as Ye, openBlock as re, createElementBlock as de, normalizeClass as at, createElementVNode as ie, computed as De, createVNode as Ge, withDirectives as Dn, unref as se, vModelText as k_, normalizeStyle as Wr, toDisplayString as dt, ref as Ee, vShow as zn, renderSlot as ht, mergeModels as Ns, useModel as _u, onMounted as uo, onUnmounted as Qr, withCtx as Ze, Fragment as on, renderList as Qn, createBlock as ot, createCommentVNode as pt, nextTick as Ti, inject as js, getCurrentInstance as To, toRaw as om, watch as Jn, onBeforeUnmount as rm, provide as sm, reactive as or, readonly as lm, resolveComponent as Dl, getCurrentScope as um, onScopeDispose as dm, effectScope as cm, toRefs as rr, toValue as gi, shallowRef as fu, watchEffect as io, isRef as Nr, toHandlerKey as lN, camelize as _m, toRef as uN, h as kl, Comment as dN, mergeProps as Hi, cloneVNode as cN, Teleport as _N, watchPostEffect as fm, shallowReadonly as vr, mergeDefaults as fN, withModifiers as Hl, normalizeProps as Fs, guardReactiveProps as Vs, resolveDynamicComponent as pm, withKeys as pN, createTextVNode as aN, createStaticVNode as pu } from "vue";
6
6
  const vN = ["width", "height"], mN = ["stroke"], hN = /* @__PURE__ */ Ye({
7
7
  __name: "IconSearch",
8
8
  props: {
@@ -26,7 +26,7 @@ const vN = ["width", "height"], mN = ["stroke"], hN = /* @__PURE__ */ Ye({
26
26
  viewBox: "0 0 20 20",
27
27
  fill: "none",
28
28
  xmlns: "http://www.w3.org/2000/svg",
29
- class: vt(e.customClass)
29
+ class: at(e.customClass)
30
30
  }, [
31
31
  t[0] || (t[0] = ie("path", {
32
32
  d: "M9.16667 15.8333C12.8486 15.8333 15.8333 12.8486 15.8333 9.16667C15.8333 5.48477 12.8486 2.5 9.16667 2.5C5.48477 2.5 2.5 5.48477 2.5 9.16667C2.5 12.8486 5.48477 15.8333 9.16667 15.8333Z",
@@ -71,7 +71,7 @@ const vN = ["width", "height"], mN = ["stroke"], hN = /* @__PURE__ */ Ye({
71
71
  Ge(hN)
72
72
  ]),
73
73
  Dn(ie("input", {
74
- class: vt(["sc-full chat-input bg-[#F7F8F9] pr-4 py-3 pl-10", { "!bg-white": s.responsive == "mobile" }]),
74
+ class: at(["sc-full chat-input bg-[#F7F8F9] pr-4 py-3 pl-10", { "!bg-white": s.responsive == "mobile" }]),
75
75
  "onUpdate:modelValue": u[0] || (u[0] = (l) => o.value = l),
76
76
  placeholder: t.placeholder,
77
77
  onInput: u[1] || (u[1] = //@ts-ignore
@@ -158,7 +158,7 @@ const MN = {
158
158
  }
159
159
  });
160
160
  return (o, r) => (re(), de("div", {
161
- class: vt([
161
+ class: at([
162
162
  "flex items-center justify-center rounded-full font-medium overflow-hidden select-none",
163
163
  i.value
164
164
  ]),
@@ -42112,17 +42112,17 @@ var Ln = 0, ss = 1, lr = 2, Br = 3, HM = 4, g_ = 5, jr = 6, m9 = {
42112
42112
  None: "null",
42113
42113
  True: "true",
42114
42114
  False: "false"
42115
- }, mo = "", pt = "", dn = 0, Me = "", Ae = "", Qe = jr;
42115
+ }, mo = "", ft = "", dn = 0, Me = "", Ae = "", Qe = jr;
42116
42116
  function g9(e) {
42117
- mo = e, pt = "", dn = 0, Me = mo.charAt(0), Ae = "", Qe = jr, Lt();
42117
+ mo = e, ft = "", dn = 0, Me = mo.charAt(0), Ae = "", Qe = jr, Lt();
42118
42118
  var n = Qe;
42119
42119
  if (ws(), cv(), Ae === "")
42120
- return pt;
42120
+ return ft;
42121
42121
  if (n === Qe && ou()) {
42122
42122
  for (var t = ""; n === Qe && ou(); )
42123
- pt = Pr(pt, ","), t += pt, pt = "", ws(), cv();
42123
+ ft = Pr(ft, ","), t += ft, ft = "", ws(), cv();
42124
42124
  return `[
42125
- `.concat(t).concat(pt, `
42125
+ `.concat(t).concat(ft, `
42126
42126
  ]`);
42127
42127
  }
42128
42128
  throw new Yn("Unexpected characters", dn - Ae.length);
@@ -42140,7 +42140,7 @@ function T9() {
42140
42140
  return Qe === lr || Qe === ss || Qe === Br;
42141
42141
  }
42142
42142
  function Lt() {
42143
- pt += Ae, Qe = jr, Ae = "", S9(), Qe === HM && (Ae = f9(Ae), Lt()), Qe === g_ && (Qe = jr, Ae = "", Lt());
42143
+ ft += Ae, Qe = jr, Ae = "", S9(), Qe === HM && (Ae = f9(Ae), Lt()), Qe === g_ && (Qe = jr, Ae = "", Lt());
42144
42144
  }
42145
42145
  function cv() {
42146
42146
  Ae === "," && (Ae = "", Qe = jr, Lt());
@@ -42255,24 +42255,24 @@ function ws() {
42255
42255
  if (Lt(), Qe === Ln && Ae === ":")
42256
42256
  Lt();
42257
42257
  else if (ou())
42258
- pt = Pr(pt, ":");
42258
+ ft = Pr(ft, ":");
42259
42259
  else
42260
42260
  throw new Yn("Colon expected", dn - Ae.length);
42261
42261
  if (ws(), Qe === Ln && Ae === ",") {
42262
42262
  if (Lt(), Qe === Ln && Ae === "}") {
42263
- pt = iu(pt, ",");
42263
+ ft = iu(ft, ",");
42264
42264
  break;
42265
42265
  }
42266
42266
  if (Ae === "") {
42267
- pt = iu(pt, ",");
42267
+ ft = iu(ft, ",");
42268
42268
  break;
42269
42269
  }
42270
42270
  } else if (T9())
42271
- pt = Pr(pt, ",");
42271
+ ft = Pr(ft, ",");
42272
42272
  else
42273
42273
  break;
42274
42274
  }
42275
- Qe === Ln && Ae === "}" ? Lt() : pt = Pr(pt, "}");
42275
+ Qe === Ln && Ae === "}" ? Lt() : ft = Pr(ft, "}");
42276
42276
  return;
42277
42277
  }
42278
42278
  O9();
@@ -42286,18 +42286,18 @@ function O9() {
42286
42286
  for (; ; )
42287
42287
  if (ws(), Qe === Ln && Ae === ",") {
42288
42288
  if (Lt(), Qe === Ln && Ae === "]") {
42289
- pt = iu(pt, ",");
42289
+ ft = iu(ft, ",");
42290
42290
  break;
42291
42291
  }
42292
42292
  if (Ae === "") {
42293
- pt = iu(pt, ",");
42293
+ ft = iu(ft, ",");
42294
42294
  break;
42295
42295
  }
42296
42296
  } else if (ou())
42297
- pt = Pr(pt, ",");
42297
+ ft = Pr(ft, ",");
42298
42298
  else
42299
42299
  break;
42300
- Qe === Ln && Ae === "]" ? Lt() : pt = Pr(pt, "]");
42300
+ Qe === Ln && Ae === "]" ? Lt() : ft = Pr(ft, "]");
42301
42301
  return;
42302
42302
  }
42303
42303
  N9();
@@ -42306,8 +42306,8 @@ function N9() {
42306
42306
  if (Qe === lr) {
42307
42307
  for (Lt(); Qe === Ln && Ae === "+"; )
42308
42308
  if (Ae = "", Lt(), Qe === lr) {
42309
- var e = pt.lastIndexOf('"');
42310
- pt = pt.substring(0, e) + Ae.substring(1), Ae = "", Lt();
42309
+ var e = ft.lastIndexOf('"');
42310
+ ft = ft.substring(0, e) + Ae.substring(1), Ae = "", Lt();
42311
42311
  }
42312
42312
  return;
42313
42313
  }
@@ -42330,14 +42330,14 @@ function P9() {
42330
42330
  Ae = dv[Ae], Lt();
42331
42331
  return;
42332
42332
  }
42333
- var e = Ae, n = pt.length;
42333
+ var e = Ae, n = ft.length;
42334
42334
  if (Ae = "", Lt(), Qe === Ln && Ae === "(") {
42335
42335
  Ae = "", Lt(), ws(), Qe === Ln && Ae === ")" && (Ae = "", Lt(), Qe === Ln && Ae === ";" && (Ae = "", Lt()));
42336
42336
  return;
42337
42337
  }
42338
- for (pt = v9(pt, '"'.concat(e), n); Qe === Br || Qe === ss; )
42338
+ for (ft = v9(ft, '"'.concat(e), n); Qe === Br || Qe === ss; )
42339
42339
  Lt();
42340
- pt += '"';
42340
+ ft += '"';
42341
42341
  return;
42342
42342
  }
42343
42343
  w9();
@@ -43478,7 +43478,7 @@ const dF = /* @__PURE__ */ Ut(sF, [["render", uF]]), cF = { class: "h-full flex
43478
43478
  onClick: (O) => M(A)
43479
43479
  }, [
43480
43480
  ie("div", {
43481
- class: vt(["w-full overflow-hidden flex items-center hover:bg-[#EDF5FF] cursor-pointer px-6 py-2", { "bg-[#EDF5FF]": u.value == A.receiver_id && B.responsive == "tablet" }])
43481
+ class: at(["w-full overflow-hidden flex items-center hover:bg-[#EDF5FF] cursor-pointer px-6 py-2", { "bg-[#EDF5FF]": u.value == A.receiver_id && B.responsive == "tablet" }])
43482
43482
  }, [
43483
43483
  Ge(Jr, {
43484
43484
  id: A.id,
@@ -43495,11 +43495,11 @@ const dF = /* @__PURE__ */ Ut(sF, [["render", uF]]), cF = { class: "h-full flex
43495
43495
  A.id == se(s) ? (re(), ot(dF, {
43496
43496
  key: 0,
43497
43497
  class: "ml-2"
43498
- })) : at("", !0),
43499
- A.unread_count ? (re(), de("span", TF, dt(A.unread_count), 1)) : at("", !0)
43498
+ })) : pt("", !0),
43499
+ A.unread_count ? (re(), de("span", TF, dt(A.unread_count), 1)) : pt("", !0)
43500
43500
  ]),
43501
43501
  ie("p", {
43502
- class: vt(["text-sm truncate", {
43502
+ class: at(["text-sm truncate", {
43503
43503
  "font-semibold": A.unread_count,
43504
43504
  "text-chat-gray-3": !A.unread_count
43505
43505
  }])
@@ -43576,7 +43576,7 @@ const OF = { class: "px-8 pb-4 border-b border-chat-gray-5" }, NF = { class: "fl
43576
43576
  return re(), de("div", OF, [
43577
43577
  ie("div", NF, [
43578
43578
  Ge(Jr, {
43579
- class: vt({ "cursor-pointer": ((u = se(mt)) == null ? void 0 : u.user_type) == "tenant" }),
43579
+ class: at({ "cursor-pointer": ((u = se(mt)) == null ? void 0 : u.user_type) == "tenant" }),
43580
43580
  src: ((l = r.data) == null ? void 0 : l.avatar) ?? "",
43581
43581
  id: ((d = r.data) == null ? void 0 : d.id) ?? "",
43582
43582
  color: (c = r.data) == null ? void 0 : c.color,
@@ -43586,7 +43586,7 @@ const OF = { class: "px-8 pb-4 border-b border-chat-gray-5" }, NF = { class: "fl
43586
43586
  ie("div", xF, [
43587
43587
  ie("div", PF, [
43588
43588
  ie("div", {
43589
- class: vt({ "cursor-pointer": ((f = se(mt)) == null ? void 0 : f.user_type) == "tenant" }),
43589
+ class: at({ "cursor-pointer": ((f = se(mt)) == null ? void 0 : f.user_type) == "tenant" }),
43590
43590
  onClick: o
43591
43591
  }, [
43592
43592
  ie("div", wF, [
@@ -56846,7 +56846,7 @@ function L8(e, n, t, i, o, r) {
56846
56846
  return re(), de("div", O8, [
56847
56847
  ie("div", {
56848
56848
  ref: "bodyInner",
56849
- class: vt([e.platform, "v3-body-inner"])
56849
+ class: at([e.platform, "v3-body-inner"])
56850
56850
  }, [
56851
56851
  e.orderedKeys.length ? (re(!0), de(on, { key: 0 }, Qn(e.orderedKeys, (s) => (re(), de("div", {
56852
56852
  id: s,
@@ -56855,10 +56855,10 @@ function L8(e, n, t, i, o, r) {
56855
56855
  }, [
56856
56856
  e.hasGroupNames ? Dn((re(), de("h5", {
56857
56857
  key: 0,
56858
- class: vt(e.isSticky ? "v3-sticky" : "")
56858
+ class: at(e.isSticky ? "v3-sticky" : "")
56859
56859
  }, dt(e.groupNames[s]), 3)), [
56860
56860
  [zn, e.emojis[s]]
56861
- ]) : at("", !0),
56861
+ ]) : pt("", !0),
56862
56862
  Dn(ie("div", x8, [
56863
56863
  (re(!0), de(on, null, Qn(e.emojis[s], (u) => (re(), de("button", {
56864
56864
  key: u.r,
@@ -56940,7 +56940,7 @@ function tq(e, n, t, i, o, r) {
56940
56940
  (re(!0), de(on, null, Qn(e.orderedGroups, (s) => (re(), de("button", {
56941
56941
  key: s.key,
56942
56942
  type: "button",
56943
- class: vt(["v3-group", {
56943
+ class: at(["v3-group", {
56944
56944
  "v3-is-hidden": !e.icons[s.key]
56945
56945
  }]),
56946
56946
  onClick: (u) => e.updateActiveGroup(s.key)
@@ -56955,8 +56955,8 @@ function tq(e, n, t, i, o, r) {
56955
56955
  }, null, 8, J8)
56956
56956
  ], 8, Q8)
56957
56957
  ], 10, W8))), 128))
56958
- ])) : at("", !0),
56959
- e.hasGroupIcons && e.hasSearch ? (re(), de("div", X8)) : at("", !0),
56958
+ ])) : pt("", !0),
56959
+ e.hasGroupIcons && e.hasSearch ? (re(), de("div", X8)) : pt("", !0),
56960
56960
  e.hasSearch ? (re(), de("div", Z8, [
56961
56961
  Dn(ie("input", {
56962
56962
  "onUpdate:modelValue": n[0] || (n[0] = (s) => e.searchValue = s),
@@ -56965,8 +56965,8 @@ function tq(e, n, t, i, o, r) {
56965
56965
  }, null, 8, eq), [
56966
56966
  [k_, e.searchValue]
56967
56967
  ])
56968
- ])) : at("", !0)
56969
- ])) : at("", !0);
56968
+ ])) : pt("", !0)
56969
+ ])) : pt("", !0);
56970
56970
  }
56971
56971
  var nq = /* @__PURE__ */ il(Y8, [["render", tq]]);
56972
56972
  const iq = Ye({
@@ -57018,7 +57018,7 @@ function cq(e, n, t, i, o, r) {
57018
57018
  }, [
57019
57019
  ie("div", oq, [
57020
57020
  ie("span", {
57021
- class: vt([e.platform, "v3-icon"])
57021
+ class: at([e.platform, "v3-icon"])
57022
57022
  }, [
57023
57023
  e.native || e.hasError ? (re(), de("span", rq, dt(e.unicodeToEmoji(e.emoji.r)), 1)) : (re(), de("img", {
57024
57024
  key: 1,
@@ -57037,20 +57037,20 @@ function cq(e, n, t, i, o, r) {
57037
57037
  }, [
57038
57038
  ie("span", uq, dt(e.skinToneText), 1),
57039
57039
  ie("span", {
57040
- class: vt(`v3-icon v3-tone-${e.stateSkinTone}`)
57040
+ class: at(`v3-icon v3-tone-${e.stateSkinTone}`)
57041
57041
  }, null, 2)
57042
57042
  ]),
57043
57043
  ie("div", {
57044
- class: vt([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
57044
+ class: at([e.skinTone ? "v3-is-open" : "", "v3-skin-tones"])
57045
57045
  }, [
57046
57046
  (re(!0), de(on, null, Qn(e.SKIN_TONES, (s) => (re(), de("button", {
57047
57047
  key: s,
57048
57048
  type: "button",
57049
- class: vt(["v3-skin-tone-" + s, "v3-skin-tone"]),
57049
+ class: at(["v3-skin-tone-" + s, "v3-skin-tone"]),
57050
57050
  onClick: (u) => e.selectSkinTone(s)
57051
57051
  }, null, 10, dq))), 128))
57052
57052
  ], 2)
57053
- ], 64)) : at("", !0)
57053
+ ], 64)) : pt("", !0)
57054
57054
  ], 32);
57055
57055
  }
57056
57056
  var _q = /* @__PURE__ */ il(iq, [["render", cq]]);
@@ -57174,7 +57174,7 @@ function yq(e, n, t, i, o, r) {
57174
57174
  onBlur: n[3] || (n[3] = (...d) => e.updateCursor && e.updateCursor(...d))
57175
57175
  }, null, 40, mq)),
57176
57176
  ie("div", {
57177
- class: vt(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
57177
+ class: at(["v3-input-picker-wrap", e.open ? "v3-picker-is-open" : ""])
57178
57178
  }, [
57179
57179
  ie("button", {
57180
57180
  ref: "button",
@@ -57189,7 +57189,7 @@ function yq(e, n, t, i, o, r) {
57189
57189
  ], 512),
57190
57190
  ie("div", {
57191
57191
  ref: "picker",
57192
- class: vt(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
57192
+ class: at(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
57193
57193
  }, [
57194
57194
  Ge(s),
57195
57195
  Ge(u, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
@@ -57199,7 +57199,7 @@ function yq(e, n, t, i, o, r) {
57199
57199
  ])
57200
57200
  ])) : (re(), de("div", {
57201
57201
  key: 1,
57202
- class: vt(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
57202
+ class: at(["v3-emoji-picker", "v3-color-theme-" + e.colorTheme])
57203
57203
  }, [
57204
57204
  Ge(s),
57205
57205
  Ge(u, { onSelect: e.onSelect }, null, 8, ["onSelect"]),
@@ -58080,7 +58080,7 @@ var o7 = /* @__PURE__ */ Ye({
58080
58080
  "--reka-collapsible-content-width": `${l.value}px`
58081
58081
  }
58082
58082
  }), {
58083
- default: Ze(() => [!se(o).unmountOnHide.value || m ? ht(a.$slots, "default", { key: 0 }) : at("v-if", !0)]),
58083
+ default: Ze(() => [!se(o).unmountOnHide.value || m ? ht(a.$slots, "default", { key: 0 }) : pt("v-if", !0)]),
58084
58084
  _: 2
58085
58085
  }, 1040, [
58086
58086
  "id",
@@ -58467,7 +58467,7 @@ var b7 = /* @__PURE__ */ Ye({
58467
58467
  "to",
58468
58468
  "disabled",
58469
58469
  "defer"
58470
- ])) : at("v-if", !0);
58470
+ ])) : pt("v-if", !0);
58471
58471
  }
58472
58472
  }), C7 = A7;
58473
58473
  const [OO, R7] = ol("PopperRoot");
@@ -63486,7 +63486,7 @@ const FH = /* @__PURE__ */ Ye({
63486
63486
  }, {
63487
63487
  default: Ze(() => [
63488
63488
  Ge(se(VH), {
63489
- class: vt(n.triggerClass),
63489
+ class: at(n.triggerClass),
63490
63490
  onMouseenter: s,
63491
63491
  onMouseleave: u
63492
63492
  }, {
@@ -63495,7 +63495,7 @@ const FH = /* @__PURE__ */ Ye({
63495
63495
  ]),
63496
63496
  _: 3
63497
63497
  }, 8, ["class"]),
63498
- l.disabled ? at("", !0) : (re(), ot(se(FH), {
63498
+ l.disabled ? pt("", !0) : (re(), ot(se(FH), {
63499
63499
  key: 0,
63500
63500
  side: l.side,
63501
63501
  align: l.align,
@@ -63691,7 +63691,7 @@ const FH = /* @__PURE__ */ Ye({
63691
63691
  class: "h-full",
63692
63692
  data: p.data
63693
63693
  }, null, 8, ["data"])
63694
- ])) : at("", !0),
63694
+ ])) : pt("", !0),
63695
63695
  ie("div", JH, [
63696
63696
  (re(!0), de(on, null, Qn(p.message, (v, m) => {
63697
63697
  var y, g, h, E, I, T, M;
@@ -63700,22 +63700,22 @@ const FH = /* @__PURE__ */ Ye({
63700
63700
  }, [
63701
63701
  v.sender_id !== ((y = se(mt)) == null ? void 0 : y.id) ? (re(), de("div", {
63702
63702
  key: 0,
63703
- class: vt(["flex items-end gap-2 mt-2", { "mt-4": u(m) }])
63703
+ class: at(["flex items-end gap-2 mt-2", { "mt-4": u(m) }])
63704
63704
  }, [
63705
63705
  v.state != se(Hn).Sending ? (re(), de(on, { key: 0 }, [
63706
63706
  u(m) ? (re(), ot(Jr, {
63707
63707
  key: 0,
63708
- class: vt(["shrink-0", p.responsive == "mobile" ? "translate-y-[-2px]" : ""]),
63708
+ class: at(["shrink-0", p.responsive == "mobile" ? "translate-y-[-2px]" : ""]),
63709
63709
  src: ((g = p.data) == null ? void 0 : g.avatar) ?? "",
63710
63710
  color: (h = p.data) == null ? void 0 : h.color,
63711
63711
  name: (E = p.data) == null ? void 0 : E.username,
63712
63712
  size: p.responsive == "mobile" ? "sm" : "md"
63713
63713
  }, null, 8, ["src", "color", "name", "size", "class"])) : (re(), de("div", {
63714
63714
  key: 1,
63715
- class: vt(["shrink-0", p.responsive == "mobile" ? "w-8" : "w-12"])
63715
+ class: at(["shrink-0", p.responsive == "mobile" ? "w-8" : "w-12"])
63716
63716
  }, null, 2)),
63717
63717
  ie("div", {
63718
- class: vt(["bg-[#E4E4E4D4] text-left text-chat-haze-600 px-3 py-2 rounded-2xl max-w-xs w-max", {
63718
+ class: at(["bg-[#E4E4E4D4] text-left text-chat-haze-600 px-3 py-2 rounded-2xl max-w-xs w-max", {
63719
63719
  "rounded-tl-none": !u(m),
63720
63720
  "rounded-bl-none": !l(m)
63721
63721
  }])
@@ -63732,15 +63732,15 @@ const FH = /* @__PURE__ */ Ye({
63732
63732
  m == p.message.length - 1 && s();
63733
63733
  }
63734
63734
  }, null, 40, ez)
63735
- ])) : at("", !0)
63735
+ ])) : pt("", !0)
63736
63736
  ], 2)
63737
- ], 64)) : at("", !0)
63737
+ ], 64)) : pt("", !0)
63738
63738
  ], 2)) : (re(), de("div", {
63739
63739
  key: 1,
63740
- class: vt(["flex flex-col items-end justify-end mt-2 pl-[60px]", { "mt-4": u(m) }])
63740
+ class: at(["flex flex-col items-end justify-end mt-2 pl-[60px]", { "mt-4": u(m) }])
63741
63741
  }, [
63742
63742
  ie("div", {
63743
- class: vt(["bg-[#D0DFEC] text-[#266699] px-3 py-2 rounded-2xl max-w-xs", {
63743
+ class: at(["bg-[#D0DFEC] text-[#266699] px-3 py-2 rounded-2xl max-w-xs", {
63744
63744
  "rounded-tr-none": !u(m),
63745
63745
  "rounded-br-none": !l(m)
63746
63746
  }])
@@ -63757,12 +63757,12 @@ const FH = /* @__PURE__ */ Ye({
63757
63757
  m == p.message.length - 1 && s();
63758
63758
  }
63759
63759
  }, null, 40, iz)
63760
- ])) : at("", !0)
63760
+ ])) : pt("", !0)
63761
63761
  ], 2),
63762
63762
  m == p.message.length - 1 && f(v) || v.state == se(Hn).Failed ? (re(), de("span", {
63763
63763
  key: 0,
63764
- class: vt(["text-chat-haze-200 text-xs mt-1", { "!text-chat-error": v.state == se(Hn).Failed }])
63765
- }, dt(f(v)), 3)) : at("", !0)
63764
+ class: at(["text-chat-haze-200 text-xs mt-1", { "!text-chat-error": v.state == se(Hn).Failed }])
63765
+ }, dt(f(v)), 3)) : pt("", !0)
63766
63766
  ], 2))
63767
63767
  ], 64);
63768
63768
  }), 128))
@@ -64009,7 +64009,7 @@ const XO = /* @__PURE__ */ Ut(cz, [["render", fz]]), pz = { class: "w-full" }, a
64009
64009
  ie("div", vz, [
64010
64010
  (re(!0), de(on, null, Qn(n.information, (i, o) => (re(), de(on, { key: o }, [
64011
64011
  ie("div", {
64012
- class: vt(["flex items-center gap-1", { "cursor-pointer": i.click }]),
64012
+ class: at(["flex items-center gap-1", { "cursor-pointer": i.click }]),
64013
64013
  onClick: (r) => {
64014
64014
  var s;
64015
64015
  return (s = i.click) == null ? void 0 : s.call(i);
@@ -64024,7 +64024,7 @@ const XO = /* @__PURE__ */ Ut(cz, [["render", fz]]), pz = { class: "w-full" }, a
64024
64024
  ie("span", gz, [
64025
64025
  Ge(XO)
64026
64026
  ])
64027
- ])) : at("", !0)
64027
+ ])) : pt("", !0)
64028
64028
  ], 10, mz),
64029
64029
  Dn(ie("hr", Ez, null, 512), [
64030
64030
  [zn, o < n.information.length - 1]
@@ -64291,10 +64291,10 @@ const Xz = /* @__PURE__ */ Ut(Wz, [["render", Jz]]), Zz = (e, n = 1) => {
64291
64291
  ])
64292
64292
  ]),
64293
64293
  ie("div", {
64294
- class: vt(["mt-5 text-center mx-auto", { "flex justify-between w-max": s.responsive == "tablet", "grid grid-cols-3 w-full": s.responsive == "mobile" }])
64294
+ class: at(["mt-5 text-center mx-auto", { "flex justify-between w-max": s.responsive == "tablet", "grid grid-cols-3 w-full": s.responsive == "mobile" }])
64295
64295
  }, [
64296
64296
  (re(!0), de(on, null, Qn(n.value, (f, p) => (re(), de("div", {
64297
- class: vt(["border-l border-chat-haze-100 first:border-none", { "w-full": s.responsive == "mobile", "w-[130px]": s.responsive == "tablet" }]),
64297
+ class: at(["border-l border-chat-haze-100 first:border-none", { "w-full": s.responsive == "mobile", "w-[130px]": s.responsive == "tablet" }]),
64298
64298
  key: p
64299
64299
  }, [
64300
64300
  ie("div", oY, [
@@ -64302,7 +64302,7 @@ const Xz = /* @__PURE__ */ Ut(Wz, [["render", Jz]]), Zz = (e, n = 1) => {
64302
64302
  f.icon ? (re(), de("img", {
64303
64303
  key: 0,
64304
64304
  src: f.icon
64305
- }, null, 8, sY)) : at("", !0)
64305
+ }, null, 8, sY)) : pt("", !0)
64306
64306
  ]),
64307
64307
  ie("p", lY, dt(f.label), 1)
64308
64308
  ], 2))), 128))
@@ -64435,7 +64435,7 @@ const fY = /* @__PURE__ */ Ye({
64435
64435
  ie("div", mY, [
64436
64436
  ie("span", hY, dt(t.title), 1),
64437
64437
  Ge(XO, {
64438
- class: vt(n.value ? "rotate-90" : "rotate-0")
64438
+ class: at(n.value ? "rotate-90" : "rotate-0")
64439
64439
  }, null, 8, ["class"])
64440
64440
  ])
64441
64441
  ]),
@@ -65067,9 +65067,9 @@ const u$ = /* @__PURE__ */ Ut(r$, [["render", l$]]), d$ = { class: "relative w-f
65067
65067
  await o("afterClose"), r.value = !1;
65068
65068
  };
65069
65069
  return n({ close: l, open: u }), (d, c) => (re(), de("div", {
65070
- class: vt(["absolute top-0 bottom-0 right-0 left-0 z-[1500] drawer", r.value ? "opacity-1" : "pointer-events-none opacity-0 delay-300"])
65070
+ class: at(["absolute top-0 bottom-0 right-0 left-0 z-[1500] drawer", r.value ? "opacity-1" : "pointer-events-none opacity-0 delay-300"])
65071
65071
  }, [
65072
- d.disabledClose ? at("", !0) : (re(), de("div", {
65072
+ d.disabledClose ? pt("", !0) : (re(), de("div", {
65073
65073
  key: 0,
65074
65074
  class: "absolute w-full h-full z-[1500]",
65075
65075
  onClick: l,
@@ -65128,8 +65128,15 @@ function E$(e, n) {
65128
65128
  ], -1)
65129
65129
  ]));
65130
65130
  }
65131
- const T$ = /* @__PURE__ */ Ut(y$, [["render", E$]]);
65132
- var ft = /* @__PURE__ */ ((e) => (e.CONNECTING = "Connecting...", e.CALLING = "calling", e.RINGING = "ringing", e.CONNECT_FAILED = "failed", e.CALL_START = "in-progress", e.CALL_END = "completed", e.NO_ANSWER = "no-answer", e))(ft || {});
65131
+ const T$ = /* @__PURE__ */ Ut(y$, [["render", E$]]), vt = {
65132
+ CONNECTING: "Connecting...",
65133
+ CALLING: "calling",
65134
+ RINGING: "ringing",
65135
+ CONNECT_FAILED: "failed",
65136
+ CALL_START: "in-progress",
65137
+ CALL_END: "completed",
65138
+ NO_ANSWER: "no-answer"
65139
+ };
65133
65140
  function S$(e) {
65134
65141
  var n = {
65135
65142
  debug: "ALL",
@@ -65170,13 +65177,13 @@ function S$(e) {
65170
65177
  const E = {
65171
65178
  phone: _(h.src)
65172
65179
  };
65173
- console.log(h), e(ft.RINGING, E), i = h == null ? void 0 : h.callUUID;
65180
+ console.log(h), e(vt.RINGING, E), i = h == null ? void 0 : h.callUUID;
65174
65181
  }, l = (h) => {
65175
- i = h.callUUID, e(ft.CALLING), o == null || o();
65182
+ i = h.callUUID, e(vt.CALLING), o == null || o();
65176
65183
  }, d = (h) => {
65177
- h.callUUID == i && (o == null || o(), e(ft.CALL_START));
65184
+ h.callUUID == i && (o == null || o(), e(vt.CALL_START));
65178
65185
  }, c = (h, E) => {
65179
- i === E.callUUID && (e(ft.CALL_END, { message: h == null ? void 0 : h.reason }), i = "");
65186
+ i === E.callUUID && (e(vt.CALL_END, { message: h == null ? void 0 : h.reason }), i = "");
65180
65187
  }, _ = (h, E = "1") => {
65181
65188
  let I = h.replace(/[^0-9]/g, "");
65182
65189
  return I != null && I.startsWith(E) ? I.slice(E.toString().length) : I;
@@ -65203,9 +65210,9 @@ function S$(e) {
65203
65210
  t.client.call("+" + h, { number_phone: h }), await f(5e3);
65204
65211
  }, y = (h) => {
65205
65212
  var E, I, T, M;
65206
- h == ft.RINGING ? (I = (E = t == null ? void 0 : t.client) == null ? void 0 : E.reject) == null || I.call(E, i) : (h == ft.CALL_START || h == ft.CALLING) && ((M = (T = t == null ? void 0 : t.client) == null ? void 0 : T.hangup) == null || M.call(T));
65213
+ h == vt.RINGING ? (I = (E = t == null ? void 0 : t.client) == null ? void 0 : E.reject) == null || I.call(E, i) : (h == vt.CALL_START || h == vt.CALLING) && ((M = (T = t == null ? void 0 : t.client) == null ? void 0 : T.hangup) == null || M.call(T));
65207
65214
  }, g = (h, E) => {
65208
- r && (r == null || r(h)), e(ft.CALL_END, { message: h });
65215
+ r && (r == null || r(h)), e(vt.CALL_END, { message: h });
65209
65216
  };
65210
65217
  return {
65211
65218
  plivoLogin: s,
@@ -65300,16 +65307,16 @@ const b$ = {
65300
65307
  uuid: d,
65301
65308
  startPeerConnection: c
65302
65309
  } = o$(), _ = (z, $) => {
65303
- z == ft.RINGING ? (V(($ == null ? void 0 : $.phone) ?? ""), E.value = ft.RINGING, G()) : z == ft.CONNECT_FAILED || z == ft.NO_ANSWER ? (L(), E.value = z) : z == ft.CALL_END ? (C.value = ($ == null ? void 0 : $.message) ?? "", L(), E.value = z) : z == ft.CALL_START && (E.value = z, x());
65310
+ z == vt.RINGING ? (V(($ == null ? void 0 : $.phone) ?? ""), E.value = vt.RINGING, G()) : z == vt.CONNECT_FAILED || z == vt.NO_ANSWER ? (L(), E.value = z) : z == vt.CALL_END ? (C.value = ($ == null ? void 0 : $.message) ?? "", L(), E.value = z) : z == vt.CALL_START && (E.value = z, x());
65304
65311
  }, { plivoLogin: f, plivoCallAnswer: p, plivoCall: a, plivoEndCall: v, plivoCallSwishMute: m } = S$(_), y = t, g = De(() => ({
65305
- [ft.CONNECTING]: "Connecting...",
65306
- [ft.CALLING]: "Calling...",
65307
- [ft.RINGING]: "Ringing...",
65308
- [ft.CONNECT_FAILED]: C.value || "Connect Error",
65309
- [ft.CALL_START]: "",
65310
- [ft.CALL_END]: C.value || "Call Ended",
65311
- [ft.NO_ANSWER]: "No Answer"
65312
- })), h = De(() => g.value[E.value] ?? ""), E = Ee(ft.CONNECTING), I = Ee("00:00"), T = Ee(!1), M = Ee(!1), C = Ee(""), k = Ee(""), B = Ee(null), b = Ee(null), A = Ee(!1);
65312
+ [vt.CONNECTING]: "Connecting...",
65313
+ [vt.CALLING]: "Calling...",
65314
+ [vt.RINGING]: "Ringing...",
65315
+ [vt.CONNECT_FAILED]: C.value || "Connect Error",
65316
+ [vt.CALL_START]: "",
65317
+ [vt.CALL_END]: C.value || "Call Ended",
65318
+ [vt.NO_ANSWER]: "No Answer"
65319
+ })), h = De(() => g.value[E.value] ?? ""), E = Ee(vt.CONNECTING), I = Ee("00:00"), T = Ee(!1), M = Ee(!1), C = Ee(""), k = Ee(""), B = Ee(null), b = Ee(null), A = Ee(!1);
65313
65320
  let O = null, N = "call";
65314
65321
  uo(async () => {
65315
65322
  await f("");
@@ -65326,7 +65333,7 @@ const b$ = {
65326
65333
  }
65327
65334
  function L(z) {
65328
65335
  var $;
65329
- v(E.value), E.value = ft.CALL_END, d.value, clearInterval(O), M.value = !1, z != null && z.closeModal && (T.value = !1, ($ = B.value) == null || $.close()), A.value = !1, I.value = "00:00", O && clearInterval(O);
65336
+ v(E.value), E.value = vt.CALL_END, d.value, clearInterval(O), M.value = !1, z != null && z.closeModal && (T.value = !1, ($ = B.value) == null || $.close()), A.value = !1, I.value = "00:00", O && clearInterval(O);
65330
65337
  }
65331
65338
  const G = () => {
65332
65339
  var z;
@@ -65335,15 +65342,15 @@ const b$ = {
65335
65342
  m(!A.value), A.value = !A.value;
65336
65343
  }, P = async (z) => {
65337
65344
  try {
65338
- E.value = ft.CONNECTING, b.value = z, G(), N = "call", await a(z.phone), E.value = ft.CALLING;
65345
+ E.value = vt.CONNECTING, b.value = z, G(), N = "call", await a(z.phone), E.value = vt.CALLING;
65339
65346
  } catch ($) {
65340
- L(), console.log($), C.value = ($ == null ? void 0 : $.message) || JSON.stringify($), E.value = ft.CONNECT_FAILED;
65347
+ L(), console.log($), C.value = ($ == null ? void 0 : $.message) || JSON.stringify($), E.value = vt.CONNECT_FAILED;
65341
65348
  }
65342
65349
  }, j = async () => {
65343
65350
  try {
65344
65351
  await p();
65345
65352
  } catch (z) {
65346
- L(), E.value = ft.CONNECT_FAILED, C.value = (z == null ? void 0 : z.message) || JSON.stringify(z);
65353
+ L(), E.value = vt.CONNECT_FAILED, C.value = (z == null ? void 0 : z.message) || JSON.stringify(z);
65347
65354
  }
65348
65355
  }, V = async (z) => {
65349
65356
  var W;
@@ -65396,14 +65403,14 @@ const b$ = {
65396
65403
  ie("p", N$, dt(g.value[E.value]), 1)
65397
65404
  ]),
65398
65405
  ie("div", x$, [
65399
- E.value == se(ft).RINGING ? (re(), de("button", {
65406
+ E.value == se(vt).RINGING ? (re(), de("button", {
65400
65407
  key: 0,
65401
65408
  onClick: j,
65402
65409
  class: "w-16 h-16 bg-[#22C55E] hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"
65403
65410
  }, [
65404
65411
  Ge(ZY)
65405
- ])) : at("", !0),
65406
- k.value && E.value == se(ft).CALL_END ? (re(), de("button", {
65412
+ ])) : pt("", !0),
65413
+ k.value && E.value == se(vt).CALL_END ? (re(), de("button", {
65407
65414
  key: 1,
65408
65415
  href: k.value,
65409
65416
  download: "recording.mp3",
@@ -65411,28 +65418,28 @@ const b$ = {
65411
65418
  class: "w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"
65412
65419
  }, [
65413
65420
  Ge(h$)
65414
- ], 8, P$)) : at("", !0),
65415
- E.value == se(ft).CALL_START ? (re(), de("button", {
65421
+ ], 8, P$)) : pt("", !0),
65422
+ E.value == se(vt).CALL_START ? (re(), de("button", {
65416
65423
  key: 2,
65417
65424
  onClick: $[0] || ($[0] = (D) => U()),
65418
65425
  class: "w-16 h-16 bg-white hover:bg-green-600 text-black rounded-full flex items-center justify-center shadow-lg transition"
65419
65426
  }, [
65420
65427
  Ge(A$, { mute: A.value }, null, 8, ["mute"])
65421
- ])) : at("", !0),
65422
- E.value == se(ft).CALL_END ? (re(), de("button", {
65428
+ ])) : pt("", !0),
65429
+ E.value == se(vt).CALL_END ? (re(), de("button", {
65423
65430
  key: 3,
65424
65431
  onClick: $[1] || ($[1] = (D) => L({ closeModal: !0 })),
65425
65432
  class: "w-16 h-16 bg-white hover:bg-green-600 text-white rounded-full flex items-center justify-center shadow-lg transition"
65426
65433
  }, [
65427
65434
  Ge(T$)
65428
- ])) : at("", !0),
65429
- E.value != se(ft).CALL_END ? (re(), de("button", {
65435
+ ])) : pt("", !0),
65436
+ E.value != se(vt).CALL_END ? (re(), de("button", {
65430
65437
  key: 4,
65431
65438
  onClick: $[2] || ($[2] = (D) => L()),
65432
65439
  class: "w-16 h-16 rounded-full bg-[#EF4444] hover:bg-red-700 flex items-center justify-center"
65433
65440
  }, [
65434
65441
  Ge(u$)
65435
- ])) : at("", !0)
65442
+ ])) : pt("", !0)
65436
65443
  ]),
65437
65444
  ie("p", w$, "Duration: " + dt(I.value), 1)
65438
65445
  ])
@@ -65483,7 +65490,7 @@ const b$ = {
65483
65490
  ];
65484
65491
  return (t, i) => (re(), de("div", q$, [
65485
65492
  (re(), de(on, null, Qn(n, (o) => ie("button", {
65486
- class: vt(["flex flex-col justify-center items-center text-blue-600", { "opacity-[0.6]": o.disabled }]),
65493
+ class: at(["flex flex-col justify-center items-center text-blue-600", { "opacity-[0.6]": o.disabled }]),
65487
65494
  key: o.value,
65488
65495
  disabled: o.disabled,
65489
65496
  onClick: (r) => {
@@ -65502,7 +65509,7 @@ const b$ = {
65502
65509
  [zn, se(tn) == o.value]
65503
65510
  ]),
65504
65511
  ie("span", {
65505
- class: vt(["text-sm text-chat-haze-400 font-medium mt-1", { "text-chat-primary": se(tn) == o.value }])
65512
+ class: at(["text-sm text-chat-haze-400 font-medium mt-1", { "text-chat-primary": se(tn) == o.value }])
65506
65513
  }, dt(o.title), 3)
65507
65514
  ], 10, G$)), 64))
65508
65515
  ]));
@@ -65638,7 +65645,7 @@ const b$ = {
65638
65645
  }), (M, C) => {
65639
65646
  var k, B;
65640
65647
  return re(), de("div", {
65641
- class: vt(["go-chat-main max-w-full", { "p-8": !M.isLib }]),
65648
+ class: at(["go-chat-main max-w-full", { "p-8": !M.isLib }]),
65642
65649
  id: "appChatMain",
65643
65650
  ref_key: "appChatRef",
65644
65651
  ref: a
@@ -65658,7 +65665,7 @@ const b$ = {
65658
65665
  Ge(Xv),
65659
65666
  ie("span", Q$, dt(l.value.backTitle ?? ""), 1)
65660
65667
  ])
65661
- ])) : at("", !0),
65668
+ ])) : pt("", !0),
65662
65669
  ie("div", J$, [
65663
65670
  Dn(Ge(hv, {
65664
65671
  ref_key: "chatListRef",
@@ -65688,20 +65695,20 @@ const b$ = {
65688
65695
  "receiver-id": m.value,
65689
65696
  class: "h-full",
65690
65697
  responsive: d.value
65691
- }, null, 8, ["receiver-id", "responsive"])) : at("", !0),
65698
+ }, null, 8, ["receiver-id", "responsive"])) : pt("", !0),
65692
65699
  se(tn) == se(nt).CUSTOMER_CHECK_IN ? (re(), ot(em, {
65693
65700
  key: 1,
65694
65701
  class: "h-full"
65695
- })) : at("", !0),
65702
+ })) : pt("", !0),
65696
65703
  se(tn) == se(nt).CUSTOMER_APPOINTMENT ? (re(), ot(tm, {
65697
65704
  key: 2,
65698
65705
  class: "h-full"
65699
- })) : at("", !0)
65706
+ })) : pt("", !0)
65700
65707
  ]),
65701
65708
  se(tn) != se(nt).HOME ? (re(), ot(Y$, {
65702
65709
  key: 1,
65703
65710
  class: "shrink-0"
65704
- })) : at("", !0)
65711
+ })) : pt("", !0)
65705
65712
  ])) : (re(), de("div", X$, [
65706
65713
  Ge(hv, {
65707
65714
  ref_key: "chatListRef",
@@ -65721,7 +65728,7 @@ const b$ = {
65721
65728
  Ge(Xv),
65722
65729
  ie("span", tK, dt(l.value.backTitle ?? ""), 1)
65723
65730
  ])
65724
- ])) : at("", !0),
65731
+ ])) : pt("", !0),
65725
65732
  ie("div", nK, [
65726
65733
  Dn(Ge(Jv, {
65727
65734
  ref_key: "homeComponentRef",
@@ -65740,15 +65747,15 @@ const b$ = {
65740
65747
  "receiver-id": m.value,
65741
65748
  class: "h-full",
65742
65749
  responsive: d.value
65743
- }, null, 8, ["receiver-id", "responsive"])) : at("", !0),
65750
+ }, null, 8, ["receiver-id", "responsive"])) : pt("", !0),
65744
65751
  se(tn) == se(nt).CUSTOMER_CHECK_IN ? (re(), ot(em, {
65745
65752
  key: 1,
65746
65753
  class: "h-full"
65747
- })) : at("", !0),
65754
+ })) : pt("", !0),
65748
65755
  se(tn) == se(nt).CUSTOMER_APPOINTMENT ? (re(), ot(tm, {
65749
65756
  key: 2,
65750
65757
  class: "h-full"
65751
- })) : at("", !0)
65758
+ })) : pt("", !0)
65752
65759
  ]),
65753
65760
  Ge(im, {
65754
65761
  ref_key: "callingRef",
@@ -65765,5 +65772,6 @@ const b$ = {
65765
65772
  }
65766
65773
  });
65767
65774
  export {
65775
+ vt as PLIVO_CALL_STATUS,
65768
65776
  NK as default
65769
65777
  };