@bcc-code/vue-bcc-chat-ui 7.1.44 → 7.1.46
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/dist/style.css +1 -1
- package/dist/vue-bcc-chat-ui.js +349 -264
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -6143,7 +6143,7 @@ F([() => Q.value?.conversations.value, () => Hl.value], async () => {
|
|
|
6143
6143
|
async function Ql(e, t) {
|
|
6144
6144
|
Pl.value = t.loggerCallback, _t(t.language ?? "en"), Bl(t.themeMode);
|
|
6145
6145
|
let n = e.config.globalProperties.$primevue;
|
|
6146
|
-
n && (n.config.ripple = !0, n.config.inputVariant = "filled"), e.component("BccChat",
|
|
6146
|
+
n && (n.config.ripple = !0, n.config.inputVariant = "filled"), e.component("BccChat", gh), e.provide("theme", { theme: El });
|
|
6147
6147
|
let r = Vl(t.environment);
|
|
6148
6148
|
zl(Ol.INFO, "Initializing chat", {
|
|
6149
6149
|
environment: t.environment,
|
|
@@ -7916,11 +7916,15 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7916
7916
|
}
|
|
7917
7917
|
}), [["__scopeId", "data-v-84a9e2b1"]]), $d = 1800;
|
|
7918
7918
|
function ef(e) {
|
|
7919
|
-
let t = e.actionMenuRef,
|
|
7920
|
-
|
|
7919
|
+
let t = e.actionMenuRef, r = w(null), i = w(null), a = typeof window < "u" ? window.matchMedia("(hover: hover) and (pointer: fine)") : null, o = w(!!a?.matches);
|
|
7920
|
+
a?.addEventListener("change", (e) => {
|
|
7921
|
+
o.value = e.matches;
|
|
7922
|
+
});
|
|
7923
|
+
let s = null;
|
|
7924
|
+
function c(e) {
|
|
7921
7925
|
return e.kind === "text" && Hs(e.text);
|
|
7922
7926
|
}
|
|
7923
|
-
function
|
|
7927
|
+
function l(e) {
|
|
7924
7928
|
return e.isOwn && [
|
|
7925
7929
|
"text",
|
|
7926
7930
|
"image",
|
|
@@ -7929,29 +7933,29 @@ function ef(e) {
|
|
|
7929
7933
|
"file"
|
|
7930
7934
|
].includes(e.kind) && !e.isDeleted && e.deliveryState === "sent";
|
|
7931
7935
|
}
|
|
7932
|
-
function
|
|
7936
|
+
function u(e) {
|
|
7933
7937
|
return e.isOwn && e.deliveryState === "sent";
|
|
7934
7938
|
}
|
|
7935
|
-
function
|
|
7939
|
+
function d(e) {
|
|
7936
7940
|
return e.isOwn && !e.isDeleted;
|
|
7937
7941
|
}
|
|
7938
|
-
function
|
|
7942
|
+
function f(e) {
|
|
7939
7943
|
return Xs(e);
|
|
7940
7944
|
}
|
|
7941
|
-
function
|
|
7945
|
+
function p(e) {
|
|
7942
7946
|
return e.attachments.find((e) => e.kind === "image" && !!e.url);
|
|
7943
7947
|
}
|
|
7944
|
-
async function
|
|
7945
|
-
let t =
|
|
7948
|
+
async function m(e) {
|
|
7949
|
+
let t = p(e);
|
|
7946
7950
|
if (!t?.url || typeof navigator > "u" || !navigator.clipboard?.write || typeof ClipboardItem > "u") return !1;
|
|
7947
7951
|
let n = await fetch(t.url);
|
|
7948
7952
|
if (!n.ok) return !1;
|
|
7949
7953
|
let r = await n.blob();
|
|
7950
7954
|
if (!r.type.startsWith("image/")) return !1;
|
|
7951
|
-
let i = { [r.type]: r }, a =
|
|
7955
|
+
let i = { [r.type]: r }, a = f(e);
|
|
7952
7956
|
return a && (i["text/plain"] = new Blob([a], { type: "text/plain" })), await navigator.clipboard.write([new ClipboardItem(i)]), !0;
|
|
7953
7957
|
}
|
|
7954
|
-
function
|
|
7958
|
+
function g(e) {
|
|
7955
7959
|
let t = Number.isFinite(e.clientX) ? e.clientX : 0, n = Number.isFinite(e.clientY) ? e.clientY : 0;
|
|
7956
7960
|
if (t > 0 || n > 0) return {
|
|
7957
7961
|
x: t,
|
|
@@ -7970,137 +7974,150 @@ function ef(e) {
|
|
|
7970
7974
|
y: 0
|
|
7971
7975
|
};
|
|
7972
7976
|
}
|
|
7973
|
-
|
|
7974
|
-
if (
|
|
7975
|
-
|
|
7976
|
-
|
|
7977
|
-
|
|
7978
|
-
|
|
7979
|
-
|
|
7980
|
-
})
|
|
7977
|
+
function _(e, t) {
|
|
7978
|
+
if (o.value) {
|
|
7979
|
+
let t = g(e);
|
|
7980
|
+
return {
|
|
7981
|
+
x: t.x + 2,
|
|
7982
|
+
y: t.y + 2
|
|
7983
|
+
};
|
|
7984
|
+
} else if (window) {
|
|
7985
|
+
let n = e.target instanceof HTMLElement ? e.target.closest(".message-item").getBoundingClientRect().height : 0;
|
|
7986
|
+
return {
|
|
7987
|
+
x: t.isOwn ? window.innerWidth * 2 / 3 : window.innerWidth / 3,
|
|
7988
|
+
y: window.innerHeight / 2 + n / 2
|
|
7989
|
+
};
|
|
7990
|
+
}
|
|
7991
|
+
return {
|
|
7992
|
+
x: 0,
|
|
7993
|
+
y: 0
|
|
7994
|
+
};
|
|
7981
7995
|
}
|
|
7982
|
-
function
|
|
7983
|
-
|
|
7996
|
+
async function v(n, i, a) {
|
|
7997
|
+
e.canUseMessageActions() && (a === "contextmenu" && !o.value || a === "tap" && o.value || (i.preventDefault(), i.stopPropagation(), e.onMenuOpen?.(), r.value = n, await h(), t.value?.show(i, _(i, n))));
|
|
7984
7998
|
}
|
|
7985
|
-
function
|
|
7986
|
-
|
|
7987
|
-
|
|
7999
|
+
function y(e, t) {
|
|
8000
|
+
v(e, t, "contextmenu");
|
|
8001
|
+
}
|
|
8002
|
+
function b(e, t) {
|
|
8003
|
+
if (r.value) {
|
|
8004
|
+
t.preventDefault(), t.stopPropagation(), x();
|
|
7988
8005
|
return;
|
|
7989
8006
|
}
|
|
7990
|
-
|
|
8007
|
+
v(e, t, "tap");
|
|
7991
8008
|
}
|
|
7992
|
-
function
|
|
7993
|
-
|
|
8009
|
+
function x() {
|
|
8010
|
+
S(), t.value?.hide();
|
|
7994
8011
|
}
|
|
7995
|
-
function
|
|
7996
|
-
|
|
8012
|
+
function S() {
|
|
8013
|
+
r.value = null;
|
|
7997
8014
|
}
|
|
7998
|
-
function
|
|
7999
|
-
e.canReact() && (e.emit.toggleReaction(t, n),
|
|
8015
|
+
function C(t, n) {
|
|
8016
|
+
e.canReact() && (e.emit.toggleReaction(t, n), x());
|
|
8000
8017
|
}
|
|
8001
|
-
function
|
|
8018
|
+
function T(t, n) {
|
|
8002
8019
|
e.canReact() && e.emit.toggleReaction(t, n);
|
|
8003
8020
|
}
|
|
8004
|
-
async function
|
|
8021
|
+
async function E(e) {
|
|
8005
8022
|
if (typeof navigator > "u") return;
|
|
8006
8023
|
let t = !1;
|
|
8007
8024
|
try {
|
|
8008
|
-
t = await
|
|
8025
|
+
t = await m(e);
|
|
8009
8026
|
} catch {
|
|
8010
8027
|
t = !1;
|
|
8011
8028
|
}
|
|
8012
8029
|
if (!t) {
|
|
8013
|
-
let t =
|
|
8030
|
+
let t = f(e);
|
|
8014
8031
|
if (!t || !navigator.clipboard?.writeText) return;
|
|
8015
8032
|
await navigator.clipboard.writeText(t);
|
|
8016
8033
|
}
|
|
8017
|
-
|
|
8018
|
-
|
|
8019
|
-
}, $d),
|
|
8020
|
-
}
|
|
8021
|
-
function C(t) {
|
|
8022
|
-
e.canReply() && (e.emit.reply(t), v());
|
|
8023
|
-
}
|
|
8024
|
-
function T(t) {
|
|
8025
|
-
e.emit.edit(t), v();
|
|
8026
|
-
}
|
|
8027
|
-
function E(t) {
|
|
8028
|
-
e.canOpenThread() && (e.emit.openThread(t), v());
|
|
8034
|
+
i.value = e.id, s && clearTimeout(s), s = setTimeout(() => {
|
|
8035
|
+
i.value = null;
|
|
8036
|
+
}, $d), x();
|
|
8029
8037
|
}
|
|
8030
8038
|
function D(t) {
|
|
8031
|
-
e.emit.
|
|
8039
|
+
e.canReply() && (e.emit.reply(t), x());
|
|
8032
8040
|
}
|
|
8033
8041
|
function O(t) {
|
|
8034
|
-
e.emit.
|
|
8042
|
+
e.emit.edit(t), x();
|
|
8035
8043
|
}
|
|
8036
8044
|
function k(t) {
|
|
8037
|
-
e.emit.
|
|
8045
|
+
e.canOpenThread() && (e.emit.openThread(t), x());
|
|
8038
8046
|
}
|
|
8039
8047
|
function A(t) {
|
|
8048
|
+
e.emit.translate(t), x();
|
|
8049
|
+
}
|
|
8050
|
+
function j(t) {
|
|
8051
|
+
e.emit.info(t), x();
|
|
8052
|
+
}
|
|
8053
|
+
function M(t) {
|
|
8054
|
+
e.emit.delete(t), x();
|
|
8055
|
+
}
|
|
8056
|
+
function N(t) {
|
|
8040
8057
|
return [
|
|
8041
8058
|
{
|
|
8042
8059
|
key: "reply",
|
|
8043
8060
|
label: e.t("reply"),
|
|
8044
8061
|
icon: Me,
|
|
8045
8062
|
visible: e.canReply(),
|
|
8046
|
-
command: () =>
|
|
8063
|
+
command: () => D(t)
|
|
8047
8064
|
},
|
|
8048
8065
|
{
|
|
8049
8066
|
key: "edit",
|
|
8050
8067
|
label: e.t("edit"),
|
|
8051
8068
|
icon: ye,
|
|
8052
|
-
visible:
|
|
8053
|
-
command: () =>
|
|
8069
|
+
visible: l(t),
|
|
8070
|
+
command: () => O(t)
|
|
8054
8071
|
},
|
|
8055
8072
|
{
|
|
8056
8073
|
key: "copy",
|
|
8057
|
-
label:
|
|
8058
|
-
icon:
|
|
8074
|
+
label: i.value === t.id ? e.t("copied") : e.t("copyText"),
|
|
8075
|
+
icon: i.value === t.id ? de : me,
|
|
8059
8076
|
visible: !0,
|
|
8060
|
-
command: () =>
|
|
8077
|
+
command: () => E(t)
|
|
8061
8078
|
},
|
|
8062
8079
|
{
|
|
8063
8080
|
key: "info",
|
|
8064
8081
|
label: e.t("info"),
|
|
8065
8082
|
icon: Te,
|
|
8066
|
-
visible:
|
|
8067
|
-
command: () =>
|
|
8083
|
+
visible: u(t),
|
|
8084
|
+
command: () => j(t)
|
|
8068
8085
|
},
|
|
8069
8086
|
{
|
|
8070
8087
|
key: "thread",
|
|
8071
8088
|
label: e.t("threadWithCount", { count: t.replyCount }),
|
|
8072
8089
|
icon: Ce,
|
|
8073
8090
|
visible: !e.isInThread() && e.canOpenThread(),
|
|
8074
|
-
command: () =>
|
|
8091
|
+
command: () => k(t)
|
|
8075
8092
|
},
|
|
8076
8093
|
{
|
|
8077
8094
|
key: "delete",
|
|
8078
8095
|
label: e.t("delete"),
|
|
8079
8096
|
icon: he,
|
|
8080
|
-
visible:
|
|
8081
|
-
command: () =>
|
|
8097
|
+
visible: d(t),
|
|
8098
|
+
command: () => M(t)
|
|
8082
8099
|
},
|
|
8083
8100
|
{
|
|
8084
8101
|
key: "translate",
|
|
8085
8102
|
label: e.t("translate"),
|
|
8086
8103
|
icon: Le,
|
|
8087
|
-
visible:
|
|
8088
|
-
command: () =>
|
|
8104
|
+
visible: c(t),
|
|
8105
|
+
command: () => A(t)
|
|
8089
8106
|
}
|
|
8090
8107
|
].filter((e) => e.visible);
|
|
8091
8108
|
}
|
|
8092
8109
|
return {
|
|
8093
8110
|
actionMenuRef: t,
|
|
8094
|
-
activeActionMessage:
|
|
8095
|
-
copiedMessageId:
|
|
8096
|
-
|
|
8097
|
-
handleMessageContextMenu:
|
|
8098
|
-
handleMessageTap:
|
|
8099
|
-
closeActionMenu:
|
|
8100
|
-
resetActionMenuState:
|
|
8101
|
-
reactToMessage:
|
|
8102
|
-
toggleInlineReaction:
|
|
8103
|
-
getActionItems:
|
|
8111
|
+
activeActionMessage: r,
|
|
8112
|
+
copiedMessageId: i,
|
|
8113
|
+
isTouchUI: n(() => !o.value),
|
|
8114
|
+
handleMessageContextMenu: y,
|
|
8115
|
+
handleMessageTap: b,
|
|
8116
|
+
closeActionMenu: x,
|
|
8117
|
+
resetActionMenuState: S,
|
|
8118
|
+
reactToMessage: C,
|
|
8119
|
+
toggleInlineReaction: T,
|
|
8120
|
+
getActionItems: N
|
|
8104
8121
|
};
|
|
8105
8122
|
}
|
|
8106
8123
|
//#endregion
|
|
@@ -8883,17 +8900,19 @@ var df = { class: "w-full" }, ff = {
|
|
|
8883
8900
|
"id",
|
|
8884
8901
|
"data-message-id",
|
|
8885
8902
|
"data-message-kind"
|
|
8886
|
-
], Lp = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, Rp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8903
|
+
], Lp = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, Rp = { class: "message-bubble-wrapper" }, zp = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, Bp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8887
8904
|
__name: "MessageItem",
|
|
8888
8905
|
props: {
|
|
8889
8906
|
message: {},
|
|
8890
8907
|
currentUserId: {},
|
|
8891
8908
|
canReact: { type: Boolean },
|
|
8892
8909
|
canOpenThread: { type: Boolean },
|
|
8910
|
+
contextMenuOpen: { type: Boolean },
|
|
8893
8911
|
canShowSenderAvatar: { type: Boolean },
|
|
8894
8912
|
pendingOptionKey: {},
|
|
8895
8913
|
actionMessageClass: {},
|
|
8896
|
-
actionMessageRowClass: {}
|
|
8914
|
+
actionMessageRowClass: {},
|
|
8915
|
+
isTouchUi: { type: Boolean }
|
|
8897
8916
|
},
|
|
8898
8917
|
emits: [
|
|
8899
8918
|
"contextmenu",
|
|
@@ -8906,17 +8925,20 @@ var df = { class: "w-full" }, ff = {
|
|
|
8906
8925
|
"anchorclick"
|
|
8907
8926
|
],
|
|
8908
8927
|
setup(t, { emit: s }) {
|
|
8909
|
-
let c = t, u = s, d = n(() =>
|
|
8910
|
-
|
|
8911
|
-
return e
|
|
8912
|
-
}
|
|
8928
|
+
let c = t, u = s, d = n(() => {
|
|
8929
|
+
let e = [];
|
|
8930
|
+
return e = c.message.kind === "action" ? ["is-action", c.actionMessageClass] : [c.message.isOwn ? "is-own" : "is-other"], c.contextMenuOpen && e.push("context-menu-open"), c.isTouchUi && e.push("is-touch-ui"), e.filter((e) => !!e);
|
|
8931
|
+
}), f = n(() => c.message.kind === "poll" ? "message-bubble--poll" : c.message.attachments?.length ? "message-bubble--attachment" : "message-bubble--text"), p = n(() => c.actionMessageRowClass ?? c.actionMessageClass);
|
|
8913
8932
|
function m(e) {
|
|
8914
|
-
|
|
8933
|
+
return e instanceof Element ? !!e.closest("button, a, input, textarea, select, label, summary, video, audio") : !1;
|
|
8915
8934
|
}
|
|
8916
8935
|
function h(e) {
|
|
8917
|
-
|
|
8936
|
+
m(e.target) || u("contextmenu", e);
|
|
8918
8937
|
}
|
|
8919
|
-
function _() {
|
|
8938
|
+
function _(e) {
|
|
8939
|
+
m(e.target) || u("tap", e);
|
|
8940
|
+
}
|
|
8941
|
+
function v() {
|
|
8920
8942
|
let e = c.message.replyTo?.messageId?.trim();
|
|
8921
8943
|
e && u("openReferencedMessage", e);
|
|
8922
8944
|
}
|
|
@@ -8928,71 +8950,118 @@ var df = { class: "w-full" }, ff = {
|
|
|
8928
8950
|
}, [t.message.kind === "action" ? (S(), r(Nf, {
|
|
8929
8951
|
key: 0,
|
|
8930
8952
|
text: t.message.text,
|
|
8931
|
-
class: g(
|
|
8932
|
-
}, null, 8, ["text", "class"])) : (S(), a(e, { key: 1 }, [
|
|
8933
|
-
|
|
8934
|
-
image: t.message.senderAvatar,
|
|
8935
|
-
label: t.message.senderAvatar ? void 0 : t.message.senderName.slice(0, 1).toUpperCase(),
|
|
8936
|
-
shape: "circle",
|
|
8937
|
-
class: "mb-1 shrink-0 self-end"
|
|
8938
|
-
}, null, 8, ["image", "label"])) : i("", !0), o("div", {
|
|
8939
|
-
"data-testid": "message-bubble",
|
|
8940
|
-
class: g(["message-bubble", [t.message.kind === "poll" ? "message-bubble--poll" : t.message.attachments?.length ? "message-bubble--attachment" : "message-bubble--text"]]),
|
|
8941
|
-
onContextmenu: m,
|
|
8942
|
-
onClick: h
|
|
8943
|
-
}, [
|
|
8944
|
-
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(hp, {
|
|
8953
|
+
class: g(p.value)
|
|
8954
|
+
}, null, 8, ["text", "class"])) : (S(), a(e, { key: 1 }, [
|
|
8955
|
+
t.canShowSenderAvatar && !t.message.isOwn ? (S(), r(j(R), {
|
|
8945
8956
|
key: 0,
|
|
8946
|
-
|
|
8947
|
-
|
|
8948
|
-
|
|
8957
|
+
image: t.message.senderAvatar,
|
|
8958
|
+
label: t.message.senderAvatar ? void 0 : t.message.senderName.slice(0, 1).toUpperCase(),
|
|
8959
|
+
shape: "circle",
|
|
8960
|
+
class: "mb-1 shrink-0 self-end"
|
|
8961
|
+
}, null, 8, ["image", "label"])) : i("", !0),
|
|
8962
|
+
o("div", {
|
|
8963
|
+
"data-testid": "message-bubble",
|
|
8964
|
+
class: g(["message-bubble", f.value]),
|
|
8965
|
+
onContextmenu: h,
|
|
8966
|
+
onClick: _
|
|
8967
|
+
}, [
|
|
8968
|
+
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(hp, {
|
|
8969
|
+
key: 0,
|
|
8970
|
+
message: t.message
|
|
8971
|
+
}, null, 8, ["message"])) : i("", !0),
|
|
8972
|
+
t.message.replyTo ? (S(), r(Np, {
|
|
8973
|
+
key: 1,
|
|
8974
|
+
message: t.message,
|
|
8975
|
+
onOpen: v
|
|
8976
|
+
}, null, 8, ["message"])) : i("", !0),
|
|
8977
|
+
t.message.kind === "poll" && t.message.poll ? (S(), r(Ap, {
|
|
8978
|
+
key: 2,
|
|
8979
|
+
message: t.message,
|
|
8980
|
+
"current-user-id": t.currentUserId,
|
|
8981
|
+
"pending-option-key": t.pendingOptionKey,
|
|
8982
|
+
onVote: s[0] ||= (e) => u("votePoll", e)
|
|
8983
|
+
}, null, 8, [
|
|
8984
|
+
"message",
|
|
8985
|
+
"current-user-id",
|
|
8986
|
+
"pending-option-key"
|
|
8987
|
+
])) : t.message.attachments?.length ? (S(), r(lp, {
|
|
8988
|
+
key: 3,
|
|
8989
|
+
message: t.message,
|
|
8990
|
+
onOpenMedia: s[1] ||= (e) => u("openMedia", e)
|
|
8991
|
+
}, null, 8, ["message"])) : (S(), r(Fp, {
|
|
8992
|
+
key: 4,
|
|
8993
|
+
message: t.message,
|
|
8994
|
+
onAnchorclick: s[2] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
8995
|
+
}, null, 8, ["message"])),
|
|
8996
|
+
o("div", Lp, [l(xp, {
|
|
8997
|
+
message: t.message,
|
|
8998
|
+
"can-react": t.canReact,
|
|
8999
|
+
"can-open-thread": t.canOpenThread,
|
|
9000
|
+
onToggleReaction: s[3] ||= (e) => u("toggleReaction", e),
|
|
9001
|
+
onOpenThread: s[4] ||= (e) => u("openThread")
|
|
9002
|
+
}, null, 8, [
|
|
9003
|
+
"message",
|
|
9004
|
+
"can-react",
|
|
9005
|
+
"can-open-thread"
|
|
9006
|
+
]), l(fp, { message: t.message }, null, 8, ["message"])])
|
|
9007
|
+
], 34),
|
|
9008
|
+
t.contextMenuOpen && t.isTouchUi ? (S(), a("div", {
|
|
8949
9009
|
key: 1,
|
|
8950
|
-
|
|
8951
|
-
|
|
8952
|
-
|
|
8953
|
-
|
|
8954
|
-
|
|
8955
|
-
message:
|
|
8956
|
-
|
|
8957
|
-
|
|
8958
|
-
|
|
8959
|
-
|
|
8960
|
-
"message",
|
|
8961
|
-
"
|
|
8962
|
-
|
|
8963
|
-
|
|
8964
|
-
|
|
8965
|
-
|
|
8966
|
-
|
|
8967
|
-
|
|
8968
|
-
|
|
8969
|
-
|
|
8970
|
-
|
|
8971
|
-
|
|
8972
|
-
|
|
8973
|
-
|
|
8974
|
-
|
|
8975
|
-
"
|
|
8976
|
-
|
|
8977
|
-
|
|
8978
|
-
|
|
8979
|
-
"message",
|
|
8980
|
-
"
|
|
8981
|
-
|
|
8982
|
-
|
|
8983
|
-
|
|
9010
|
+
class: g(["message-bubble--spotlight", f.value])
|
|
9011
|
+
}, [o("div", Rp, [o("div", { class: g(["message-bubble", f.value]) }, [
|
|
9012
|
+
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(hp, {
|
|
9013
|
+
key: 0,
|
|
9014
|
+
message: t.message
|
|
9015
|
+
}, null, 8, ["message"])) : i("", !0),
|
|
9016
|
+
t.message.replyTo ? (S(), r(Np, {
|
|
9017
|
+
key: 1,
|
|
9018
|
+
message: t.message,
|
|
9019
|
+
onOpen: v
|
|
9020
|
+
}, null, 8, ["message"])) : i("", !0),
|
|
9021
|
+
t.message.kind === "poll" && t.message.poll ? (S(), r(Ap, {
|
|
9022
|
+
key: 2,
|
|
9023
|
+
message: t.message,
|
|
9024
|
+
"current-user-id": t.currentUserId,
|
|
9025
|
+
"pending-option-key": t.pendingOptionKey,
|
|
9026
|
+
onVote: s[5] ||= (e) => u("votePoll", e)
|
|
9027
|
+
}, null, 8, [
|
|
9028
|
+
"message",
|
|
9029
|
+
"current-user-id",
|
|
9030
|
+
"pending-option-key"
|
|
9031
|
+
])) : t.message.attachments?.length ? (S(), r(lp, {
|
|
9032
|
+
key: 3,
|
|
9033
|
+
message: t.message,
|
|
9034
|
+
onOpenMedia: s[6] ||= (e) => u("openMedia", e)
|
|
9035
|
+
}, null, 8, ["message"])) : (S(), r(Fp, {
|
|
9036
|
+
key: 4,
|
|
9037
|
+
message: t.message,
|
|
9038
|
+
onAnchorclick: s[7] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
9039
|
+
}, null, 8, ["message"])),
|
|
9040
|
+
o("div", zp, [l(xp, {
|
|
9041
|
+
message: t.message,
|
|
9042
|
+
"can-react": t.canReact,
|
|
9043
|
+
"can-open-thread": t.canOpenThread,
|
|
9044
|
+
onToggleReaction: s[8] ||= (e) => u("toggleReaction", e),
|
|
9045
|
+
onOpenThread: s[9] ||= (e) => u("openThread")
|
|
9046
|
+
}, null, 8, [
|
|
9047
|
+
"message",
|
|
9048
|
+
"can-react",
|
|
9049
|
+
"can-open-thread"
|
|
9050
|
+
]), l(fp, { message: t.message }, null, 8, ["message"])])
|
|
9051
|
+
], 2)])], 2)) : i("", !0)
|
|
9052
|
+
], 64))], 10, Ip));
|
|
8984
9053
|
}
|
|
8985
|
-
}), [["__scopeId", "data-v-
|
|
9054
|
+
}), [["__scopeId", "data-v-96aad7a9"]]), Vp = [
|
|
8986
9055
|
"👍",
|
|
8987
9056
|
"❤️",
|
|
8988
9057
|
"🔥",
|
|
8989
9058
|
"😂",
|
|
8990
9059
|
"🙏",
|
|
8991
9060
|
"🎉"
|
|
8992
|
-
],
|
|
9061
|
+
], Hp = /* @__PURE__ */ "👏.😍.🤯.😮.😢.😡.👀.✅.💯.🙌.🤝.👌.💪.🤔.🫶.😅.🥳.💛.🌟.🚀.💥.🎯.📌.💡.🕊️.☀️.🌈.🍀.🎶.🫡".split("."), Up = { class: "shadow-overlay bg-elevation-surface-raised-default mx-auto flex w-max max-w-full items-center gap-1 rounded-full px-3 py-1" }, Wp = ["disabled", "onClick"], Gp = ["disabled"], Kp = {
|
|
8993
9062
|
key: 0,
|
|
8994
9063
|
class: "bg-elevation-surface-raised-default shadow-overlay m-0 grid grid-cols-6 gap-1 rounded-lg p-1.5"
|
|
8995
|
-
},
|
|
9064
|
+
}, qp = ["onClick"], Jp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8996
9065
|
__name: "MessageItemMenuReactions",
|
|
8997
9066
|
props: {
|
|
8998
9067
|
message: {},
|
|
@@ -9004,20 +9073,20 @@ var df = { class: "w-full" }, ff = {
|
|
|
9004
9073
|
F(() => c.message.id, () => {
|
|
9005
9074
|
u.value = !1;
|
|
9006
9075
|
});
|
|
9007
|
-
let d = n(() =>
|
|
9076
|
+
let d = n(() => Hp);
|
|
9008
9077
|
function f(e) {
|
|
9009
9078
|
return (c.message.reactions ?? []).some((t) => t.emoji === e);
|
|
9010
9079
|
}
|
|
9011
9080
|
function p() {
|
|
9012
9081
|
c.canReact && (u.value = !u.value);
|
|
9013
9082
|
}
|
|
9014
|
-
return (n, s) => (S(), a(e, null, [o("div",
|
|
9083
|
+
return (n, s) => (S(), a(e, null, [o("div", Up, [(S(!0), a(e, null, T(j(Vp), (e) => (S(), a("button", {
|
|
9015
9084
|
key: `${t.message.id}-${e}-common`,
|
|
9016
9085
|
type: "button",
|
|
9017
9086
|
class: g(["message-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9018
9087
|
disabled: !t.canReact,
|
|
9019
9088
|
onClick: (t) => l("react", e)
|
|
9020
|
-
}, k(e), 11,
|
|
9089
|
+
}, k(e), 11, Wp))), 128)), o("button", {
|
|
9021
9090
|
type: "button",
|
|
9022
9091
|
class: "message-reaction-more",
|
|
9023
9092
|
disabled: !t.canReact,
|
|
@@ -9025,14 +9094,14 @@ var df = { class: "w-full" }, ff = {
|
|
|
9025
9094
|
}, [(S(), r(D(u.value ? j(De) : j(Ee)), {
|
|
9026
9095
|
class: "size-7",
|
|
9027
9096
|
"aria-hidden": "true"
|
|
9028
|
-
}))], 8,
|
|
9097
|
+
}))], 8, Gp)]), u.value && t.canReact ? (S(), a("div", Kp, [(S(!0), a(e, null, T(d.value, (e) => (S(), a("button", {
|
|
9029
9098
|
key: `${t.message.id}-${e}-extended`,
|
|
9030
9099
|
type: "button",
|
|
9031
9100
|
class: g(["message-expanded-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9032
9101
|
onClick: (t) => l("react", e)
|
|
9033
|
-
}, k(e), 11,
|
|
9102
|
+
}, k(e), 11, qp))), 128))])) : i("", !0)], 64));
|
|
9034
9103
|
}
|
|
9035
|
-
}), [["__scopeId", "data-v-0a11761a"]]),
|
|
9104
|
+
}), [["__scopeId", "data-v-0a11761a"]]), Yp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9036
9105
|
__name: "MessageItemMenu",
|
|
9037
9106
|
props: {
|
|
9038
9107
|
message: {},
|
|
@@ -9040,75 +9109,87 @@ var df = { class: "w-full" }, ff = {
|
|
|
9040
9109
|
actionItems: {}
|
|
9041
9110
|
},
|
|
9042
9111
|
emits: ["hide", "react"],
|
|
9043
|
-
setup(e, { expose:
|
|
9044
|
-
let
|
|
9112
|
+
setup(e, { expose: o, emit: s }) {
|
|
9113
|
+
let c = s, u = w(null), d = w(!1), f = w({
|
|
9045
9114
|
left: 0,
|
|
9046
9115
|
top: 0
|
|
9047
|
-
}),
|
|
9048
|
-
function
|
|
9116
|
+
}), p = null, m = null;
|
|
9117
|
+
function g(e) {
|
|
9049
9118
|
let t = e.currentTarget ?? e.target;
|
|
9050
9119
|
return t instanceof HTMLElement ? t : null;
|
|
9051
9120
|
}
|
|
9052
|
-
async function
|
|
9053
|
-
if (typeof window > "u" || !
|
|
9054
|
-
let e = window.visualViewport, t = e?.offsetLeft ?? 0, n = e?.offsetTop ?? 0, r = e?.width ?? window.innerWidth, i = e?.height ?? window.innerHeight, a =
|
|
9055
|
-
if (
|
|
9056
|
-
let e =
|
|
9057
|
-
h = Math.min(Math.max(
|
|
9058
|
-
} else if (
|
|
9059
|
-
let e =
|
|
9060
|
-
h = Math.min(Math.max(t - a.width / 2, o),
|
|
9121
|
+
async function _() {
|
|
9122
|
+
if (typeof window > "u" || !u.value) return;
|
|
9123
|
+
let e = window.visualViewport, t = e?.offsetLeft ?? 0, n = e?.offsetTop ?? 0, r = e?.width ?? window.innerWidth, i = e?.height ?? window.innerHeight, a = u.value.getBoundingClientRect(), o = t + 12, s = t + r - a.width - 12, c = n + 12, l = n + i - a.height - 12, d = Math.max(o, s), h = o, g = c;
|
|
9124
|
+
if (m) {
|
|
9125
|
+
let e = m.y + 10 + a.height <= n + i - 12;
|
|
9126
|
+
h = Math.min(Math.max(m.x - a.width / 2, o), d), g = e ? Math.min(m.y + 10, l) : Math.max(m.y - a.height - 10, c);
|
|
9127
|
+
} else if (p) {
|
|
9128
|
+
let e = p.getBoundingClientRect(), t = e.left + e.width / 2, r = e.top + Math.min(e.height / 2, 32), s = r + 10 + a.height <= n + i - 12;
|
|
9129
|
+
h = Math.min(Math.max(t - a.width / 2, o), d), g = s ? Math.min(r + 10, l) : Math.max(r - a.height - 10, c);
|
|
9061
9130
|
}
|
|
9062
|
-
|
|
9131
|
+
f.value = {
|
|
9063
9132
|
left: h,
|
|
9064
9133
|
top: g
|
|
9065
9134
|
};
|
|
9066
9135
|
}
|
|
9067
|
-
async function
|
|
9068
|
-
|
|
9136
|
+
async function b(e, t) {
|
|
9137
|
+
p = g(e), m = t ?? null, !(!p && !m) && (d.value = !0, await h(), await _());
|
|
9069
9138
|
}
|
|
9070
|
-
function
|
|
9071
|
-
|
|
9072
|
-
}
|
|
9073
|
-
function x(e) {
|
|
9074
|
-
if (!u.value) return;
|
|
9075
|
-
let t = e.target;
|
|
9076
|
-
c.value?.contains(t) || f?.contains(t) || b();
|
|
9139
|
+
function x() {
|
|
9140
|
+
d.value && (d.value = !1, p = null, m = null, c("hide"));
|
|
9077
9141
|
}
|
|
9078
9142
|
function C(e) {
|
|
9079
|
-
|
|
9080
|
-
|
|
9081
|
-
|
|
9082
|
-
|
|
9143
|
+
if (!d.value) return;
|
|
9144
|
+
let t = e.target;
|
|
9145
|
+
if (!u.value?.contains(t)) {
|
|
9146
|
+
if (p) {
|
|
9147
|
+
if (p.closest(".message-item")?.contains(t) && t instanceof HTMLElement && t.classList.contains("message-bubble--spotlight")) {
|
|
9148
|
+
setTimeout(() => {
|
|
9149
|
+
x();
|
|
9150
|
+
}, 100);
|
|
9151
|
+
return;
|
|
9152
|
+
}
|
|
9153
|
+
if (p?.contains(t) || p.closest(".message-item")?.contains(t)) return;
|
|
9154
|
+
}
|
|
9155
|
+
x();
|
|
9156
|
+
}
|
|
9083
9157
|
}
|
|
9084
|
-
|
|
9085
|
-
|
|
9086
|
-
}
|
|
9087
|
-
|
|
9088
|
-
|
|
9089
|
-
}
|
|
9158
|
+
function T(e) {
|
|
9159
|
+
e.key === "Escape" && x();
|
|
9160
|
+
}
|
|
9161
|
+
function E() {
|
|
9162
|
+
x();
|
|
9163
|
+
}
|
|
9164
|
+
return typeof window < "u" && (document.addEventListener("pointerdown", C, !0), document.addEventListener("keydown", T), window.addEventListener("resize", E), window.addEventListener("scroll", E, !0)), y(() => {
|
|
9165
|
+
typeof window > "u" || (document.removeEventListener("pointerdown", C, !0), document.removeEventListener("keydown", T), window.removeEventListener("resize", E), window.removeEventListener("scroll", E, !0));
|
|
9166
|
+
}), o({
|
|
9167
|
+
show: b,
|
|
9168
|
+
hide: x,
|
|
9169
|
+
visible: n(() => d.value)
|
|
9170
|
+
}), (n, o) => (S(), r(t, { to: "body" }, [d.value && e.message ? (S(), a("div", {
|
|
9090
9171
|
key: 0,
|
|
9091
9172
|
ref_key: "panelRef",
|
|
9092
|
-
ref:
|
|
9173
|
+
ref: u,
|
|
9093
9174
|
class: "message-action-menu max-w-62 min-w-54",
|
|
9094
9175
|
style: v({
|
|
9095
|
-
left: `${
|
|
9096
|
-
top: `${
|
|
9176
|
+
left: `${f.value.left}px`,
|
|
9177
|
+
top: `${f.value.top}px`
|
|
9097
9178
|
}),
|
|
9098
9179
|
"data-testid": "message-action-popover-shell"
|
|
9099
|
-
}, [l(
|
|
9180
|
+
}, [l(Jp, {
|
|
9100
9181
|
message: e.message,
|
|
9101
9182
|
"can-react": e.canReact,
|
|
9102
|
-
onReact: o[0] ||= (e) =>
|
|
9183
|
+
onReact: o[0] ||= (e) => c("react", e)
|
|
9103
9184
|
}, null, 8, ["message", "can-react"]), l(j(ae), { model: e.actionItems }, null, 8, ["model"])], 4)) : i("", !0)]));
|
|
9104
9185
|
}
|
|
9105
|
-
}), [["__scopeId", "data-v-
|
|
9186
|
+
}), [["__scopeId", "data-v-f45f7b6d"]]), Xp = { class: "chat-header border-default bg-elevation-surface-default sticky top-0 z-10 flex items-center justify-between gap-3 border-b px-4 py-3 max-md:px-4 max-md:pb-3 sm:px-5 sm:py-3.5" }, Zp = {
|
|
9106
9187
|
key: 0,
|
|
9107
9188
|
class: "chat-header__identity flex min-w-0 items-center gap-3"
|
|
9108
|
-
},
|
|
9189
|
+
}, Qp = { class: "chat-header__text min-w-0" }, $p = { class: "chat-header__title heading-md text-default sm:heading-lg truncate" }, em = { class: "chat-header__subtitle body-sm text-subtle sm:body-md truncate" }, tm = { key: 0 }, nm = { key: 1 }, rm = { class: "chat-header__actions flex items-center gap-2" }, im = {
|
|
9109
9190
|
key: 0,
|
|
9110
9191
|
class: "chat-header__tags hidden flex-wrap gap-2 md:flex"
|
|
9111
|
-
},
|
|
9192
|
+
}, am = /* @__PURE__ */ u({
|
|
9112
9193
|
__name: "MessageListHeader",
|
|
9113
9194
|
props: {
|
|
9114
9195
|
conversation: {},
|
|
@@ -9116,28 +9197,28 @@ var df = { class: "w-full" }, ff = {
|
|
|
9116
9197
|
},
|
|
9117
9198
|
setup(t) {
|
|
9118
9199
|
let { t: n } = K();
|
|
9119
|
-
return (s, c) => (S(), a("header",
|
|
9200
|
+
return (s, c) => (S(), a("header", Xp, [t.conversation ? (S(), a("div", Zp, [l(j(R), {
|
|
9120
9201
|
image: t.conversation.avatar,
|
|
9121
9202
|
label: t.conversation.avatar ? void 0 : t.conversation.title.slice(0, 1).toUpperCase(),
|
|
9122
9203
|
shape: "circle",
|
|
9123
9204
|
class: "chat-header__avatar shrink-0"
|
|
9124
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9205
|
+
}, null, 8, ["image", "label"]), o("div", Qp, [o("p", $p, k(t.parentMessage ? j(n)("thread") : t.conversation.title), 1), o("p", em, [t.parentMessage ? (S(), a("span", tm, k(t.parentMessage.senderName), 1)) : (S(), a("span", nm, k(t.conversation.memberCount ? j(n)("members", { count: t.conversation.memberCount }) : j(n)("groupChat")), 1))])])])) : i("", !0), o("div", rm, [t.conversation?.tags?.length ? (S(), a("div", im, [(S(!0), a(e, null, T(t.conversation.tags.slice(0, 3), (e) => (S(), r(j(V), {
|
|
9125
9206
|
key: e,
|
|
9126
9207
|
text: e,
|
|
9127
9208
|
context: "secondary",
|
|
9128
9209
|
rounded: ""
|
|
9129
9210
|
}, null, 8, ["text"]))), 128))])) : i("", !0)])]));
|
|
9130
9211
|
}
|
|
9131
|
-
}),
|
|
9212
|
+
}), om = {
|
|
9132
9213
|
key: 1,
|
|
9133
9214
|
class: "message-list__empty-state"
|
|
9134
|
-
},
|
|
9215
|
+
}, sm = { class: "space-y-2" }, cm = {
|
|
9135
9216
|
key: 0,
|
|
9136
9217
|
class: "message-list__thread-root"
|
|
9137
|
-
},
|
|
9218
|
+
}, lm = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, um = { class: "body-md text-default mt-1 line-clamp-2" }, dm = {
|
|
9138
9219
|
key: 1,
|
|
9139
9220
|
class: "surface-default text-subtle rounded-2xl p-5 text-center"
|
|
9140
|
-
},
|
|
9221
|
+
}, fm = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9141
9222
|
__name: "MessageList",
|
|
9142
9223
|
props: {
|
|
9143
9224
|
target: {},
|
|
@@ -9163,7 +9244,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9163
9244
|
canLoadOlder: () => b.value,
|
|
9164
9245
|
onLoadOlder: () => f.emit("list:loadOlder", { target: s.target }),
|
|
9165
9246
|
threadRef: te
|
|
9166
|
-
}), R = N("actionMenuRef"), { activeActionMessage: z, handleMessageContextMenu: ne, handleMessageTap: B, resetActionMenuState: re, reactToMessage: ie, toggleInlineReaction: ae, getActionItems: oe } = ef({
|
|
9247
|
+
}), R = N("actionMenuRef"), { activeActionMessage: z, handleMessageContextMenu: ne, handleMessageTap: B, resetActionMenuState: re, reactToMessage: ie, toggleInlineReaction: ae, getActionItems: oe, isTouchUI: se } = ef({
|
|
9167
9248
|
canUseMessageActions: () => u.canUseMessageActions.value,
|
|
9168
9249
|
canReact: () => u.canReact.value,
|
|
9169
9250
|
canReply: () => u.canReply.value,
|
|
@@ -9185,20 +9266,20 @@ var df = { class: "w-full" }, ff = {
|
|
|
9185
9266
|
},
|
|
9186
9267
|
onMenuOpen: () => f.emit("ui:closeComposerActions")
|
|
9187
9268
|
});
|
|
9188
|
-
function
|
|
9269
|
+
function V(e) {
|
|
9189
9270
|
return !!e.url && [
|
|
9190
9271
|
"image",
|
|
9191
9272
|
"video",
|
|
9192
9273
|
"audio"
|
|
9193
9274
|
].includes(e.kind);
|
|
9194
9275
|
}
|
|
9195
|
-
function
|
|
9196
|
-
|
|
9276
|
+
function H(e) {
|
|
9277
|
+
V(e) && (M.value = e);
|
|
9197
9278
|
}
|
|
9198
|
-
function
|
|
9279
|
+
function U() {
|
|
9199
9280
|
M.value = null;
|
|
9200
9281
|
}
|
|
9201
|
-
async function
|
|
9282
|
+
async function ce(e, t) {
|
|
9202
9283
|
ee.value = `${e.id}:${t}`;
|
|
9203
9284
|
try {
|
|
9204
9285
|
f.emit("message:votePoll", {
|
|
@@ -9211,15 +9292,15 @@ var df = { class: "w-full" }, ff = {
|
|
|
9211
9292
|
}, 300);
|
|
9212
9293
|
}
|
|
9213
9294
|
}
|
|
9214
|
-
function
|
|
9295
|
+
function le(e) {
|
|
9215
9296
|
v.value && f.emit("message:openThread", e);
|
|
9216
9297
|
}
|
|
9217
|
-
function
|
|
9298
|
+
function ue(e, t) {
|
|
9218
9299
|
return e.getFullYear() !== t.getFullYear() || e.getMonth() !== t.getMonth() || e.getDate() !== t.getDate();
|
|
9219
9300
|
}
|
|
9220
|
-
function
|
|
9301
|
+
function de(e) {
|
|
9221
9302
|
let t = m.value;
|
|
9222
|
-
return e === 0 ? !0 :
|
|
9303
|
+
return e === 0 ? !0 : ue(t[e].sentAt, t[e - 1].sentAt);
|
|
9223
9304
|
}
|
|
9224
9305
|
return (t, n) => (S(), a(e, null, [
|
|
9225
9306
|
o("section", { class: g(["message-list-root", [t.$attrs.class, F.value ? "message-list--embedded-thread" : P.value ? "message-list--thread" : "message-list--main"]]) }, [y.value ? E(t.$slots, "header", {
|
|
@@ -9230,7 +9311,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9230
9311
|
title: D.value,
|
|
9231
9312
|
subtitle: O.value,
|
|
9232
9313
|
memberCount: A.value
|
|
9233
|
-
}, () => [l(
|
|
9314
|
+
}, () => [l(am, {
|
|
9234
9315
|
conversation: j(u).conversation.value,
|
|
9235
9316
|
"parent-message": _.value
|
|
9236
9317
|
}, null, 8, ["conversation", "parent-message"])], !0) : i("", !0), j(u).conversation.value ? (S(), a("div", {
|
|
@@ -9241,12 +9322,12 @@ var df = { class: "w-full" }, ff = {
|
|
|
9241
9322
|
ref: te,
|
|
9242
9323
|
class: g(["message-list__scroll min-h-0 flex-1", F.value ? "p-0" : P.value ? "px-5 py-4" : "px-2 pt-2 pb-3"]),
|
|
9243
9324
|
onScroll: n[2] ||= (...e) => j(L) && j(L)(...e)
|
|
9244
|
-
}, [o("div",
|
|
9245
|
-
_.value ? (S(), a("div",
|
|
9246
|
-
(S(!0), a(e, null, T(m.value, (o, c) => (S(), a(e, { key: o.id }, [
|
|
9325
|
+
}, [o("div", sm, [
|
|
9326
|
+
_.value ? (S(), a("div", cm, [o("p", lm, k(_.value.senderName), 1), o("p", um, k(j(Ws)(_.value, j(c)("message"), j(u).mentionNameByUid.value)), 1)])) : i("", !0),
|
|
9327
|
+
(S(!0), a(e, null, T(m.value, (o, c) => (S(), a(e, { key: o.id }, [de(c) ? (S(), r(Af, {
|
|
9247
9328
|
key: 0,
|
|
9248
9329
|
date: o.sentAt
|
|
9249
|
-
}, null, 8, ["date"])) : i("", !0), l(
|
|
9330
|
+
}, null, 8, ["date"])) : i("", !0), l(Bp, {
|
|
9250
9331
|
message: o,
|
|
9251
9332
|
"current-user-id": j(u).currentUserId.value,
|
|
9252
9333
|
"can-react": j(u).canReact.value,
|
|
@@ -9255,12 +9336,14 @@ var df = { class: "w-full" }, ff = {
|
|
|
9255
9336
|
"pending-option-key": ee.value,
|
|
9256
9337
|
"action-message-class": s.actionMessageClass,
|
|
9257
9338
|
"action-message-row-class": s.actionMessageRowClass,
|
|
9339
|
+
"context-menu-open": j(z)?.id === o.id && R.value?.visible,
|
|
9340
|
+
"is-touch-ui": j(se),
|
|
9258
9341
|
onContextmenu: (e) => j(ne)(o, e),
|
|
9259
9342
|
onTap: (e) => j(B)(o, e),
|
|
9260
|
-
onOpenMedia:
|
|
9261
|
-
onVotePoll: (e) =>
|
|
9343
|
+
onOpenMedia: H,
|
|
9344
|
+
onVotePoll: (e) => ce(o, e),
|
|
9262
9345
|
onToggleReaction: (e) => j(ae)(o, e),
|
|
9263
|
-
onOpenThread: (e) =>
|
|
9346
|
+
onOpenThread: (e) => le(o),
|
|
9264
9347
|
onOpenReferencedMessage: n[0] ||= (e) => j(f).emit("message:openReference", e),
|
|
9265
9348
|
onAnchorclick: n[1] ||= (e, n) => t.$emit("anchorclick", e, n)
|
|
9266
9349
|
}, null, 8, [
|
|
@@ -9272,19 +9355,21 @@ var df = { class: "w-full" }, ff = {
|
|
|
9272
9355
|
"pending-option-key",
|
|
9273
9356
|
"action-message-class",
|
|
9274
9357
|
"action-message-row-class",
|
|
9358
|
+
"context-menu-open",
|
|
9359
|
+
"is-touch-ui",
|
|
9275
9360
|
"onContextmenu",
|
|
9276
9361
|
"onTap",
|
|
9277
9362
|
"onVotePoll",
|
|
9278
9363
|
"onToggleReaction",
|
|
9279
9364
|
"onOpenThread"
|
|
9280
9365
|
])], 64))), 128)),
|
|
9281
|
-
m.value.length === 0 && C.value && !h.value ? (S(), a("div",
|
|
9282
|
-
])], 34), o("footer", { class: g(["message-list__composer flex shrink-0 flex-col", P.value ? F.value ? "bg-transparent p-0" : "message-list__composer--thread" : "bg-transparent p-0"]) }, [E(t.$slots, "composer", {}, void 0, !0)], 2)], 2)) : (S(), a("div",
|
|
9366
|
+
m.value.length === 0 && C.value && !h.value ? (S(), a("div", dm, k(j(c)("noMessagesYetInThisGroup")), 1)) : i("", !0)
|
|
9367
|
+
])], 34), o("footer", { class: g(["message-list__composer flex shrink-0 flex-col", P.value ? F.value ? "bg-transparent p-0" : "message-list__composer--thread" : "bg-transparent p-0"]) }, [E(t.$slots, "composer", {}, void 0, !0)], 2)], 2)) : (S(), a("div", om, k(j(c)("selectConversationToStart")), 1))], 2),
|
|
9283
9368
|
l(Df, {
|
|
9284
9369
|
attachment: M.value,
|
|
9285
|
-
onClose:
|
|
9370
|
+
onClose: U
|
|
9286
9371
|
}, null, 8, ["attachment"]),
|
|
9287
|
-
l(
|
|
9372
|
+
l(Yp, {
|
|
9288
9373
|
ref_key: "actionMenuRef",
|
|
9289
9374
|
ref: R,
|
|
9290
9375
|
message: j(z),
|
|
@@ -9300,13 +9385,13 @@ var df = { class: "w-full" }, ff = {
|
|
|
9300
9385
|
])
|
|
9301
9386
|
], 64));
|
|
9302
9387
|
}
|
|
9303
|
-
}), [["__scopeId", "data-v-
|
|
9388
|
+
}), [["__scopeId", "data-v-b0f7fcc2"]]), pm = { class: "receipt-section" }, mm = { class: "receipt-section__header" }, hm = { class: "heading-sm text-default" }, gm = { class: "body-sm text-subtlest" }, _m = {
|
|
9304
9389
|
key: 0,
|
|
9305
9390
|
class: "space-y-2"
|
|
9306
|
-
},
|
|
9391
|
+
}, vm = { class: "flex min-w-0 items-center gap-3" }, ym = { class: "min-w-0" }, bm = { class: "heading-sm text-default truncate" }, xm = { class: "body-sm text-subtle truncate" }, Sm = { class: "body-sm text-subtle shrink-0" }, Cm = {
|
|
9307
9392
|
key: 1,
|
|
9308
9393
|
class: "receipt-section__empty"
|
|
9309
|
-
},
|
|
9394
|
+
}, wm = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9310
9395
|
__name: "ReceiptSection",
|
|
9311
9396
|
props: {
|
|
9312
9397
|
title: {},
|
|
@@ -9315,29 +9400,29 @@ var df = { class: "w-full" }, ff = {
|
|
|
9315
9400
|
formatDateTime: { type: Function }
|
|
9316
9401
|
},
|
|
9317
9402
|
setup(t) {
|
|
9318
|
-
return (n, r) => (S(), a("section",
|
|
9403
|
+
return (n, r) => (S(), a("section", pm, [o("div", mm, [o("p", hm, k(t.title), 1), o("span", gm, k(t.receipts.length), 1)]), t.receipts.length ? (S(), a("div", _m, [(S(!0), a(e, null, T(t.receipts, (e) => (S(), a("div", {
|
|
9319
9404
|
key: `${e.kind}-${e.user.uid}`,
|
|
9320
9405
|
class: "receipt-section__row"
|
|
9321
|
-
}, [o("div",
|
|
9406
|
+
}, [o("div", vm, [l(j(R), {
|
|
9322
9407
|
image: e.user.avatar,
|
|
9323
9408
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
9324
9409
|
shape: "circle",
|
|
9325
9410
|
class: "shrink-0"
|
|
9326
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9411
|
+
}, null, 8, ["image", "label"]), o("div", ym, [o("p", bm, k(e.user.name), 1), o("p", xm, k(e.user.uid), 1)])]), o("p", Sm, k(t.formatDateTime(e.timestamp)), 1)]))), 128))])) : (S(), a("div", Cm, k(t.emptyLabel), 1))]));
|
|
9327
9412
|
}
|
|
9328
|
-
}), [["__scopeId", "data-v-2b2f0a3e"]]),
|
|
9413
|
+
}), [["__scopeId", "data-v-2b2f0a3e"]]), Tm = {
|
|
9329
9414
|
key: 0,
|
|
9330
9415
|
class: "message-info-dialog-content space-y-5 overflow-y-auto"
|
|
9331
|
-
},
|
|
9416
|
+
}, Em = { class: "message-info-summary px-4 py-4 sm:px-6 sm:py-5" }, Dm = { class: "body-md text-default wrap-break-word whitespace-pre-wrap" }, Om = { class: "mt-4 grid gap-3 sm:grid-cols-3" }, km = { class: "message-info-metric px-3 py-3" }, Am = { class: "body-sm text-subtlest font-semibold uppercase" }, jm = { class: "heading-sm text-default mt-1" }, Mm = { class: "message-info-metric px-3 py-3" }, Nm = { class: "flex items-center gap-2" }, Pm = { class: "body-sm text-subtlest font-semibold uppercase" }, Fm = { class: "heading-sm text-default mt-1" }, Im = { class: "message-info-metric px-3 py-3" }, Lm = { class: "flex items-center gap-2" }, Rm = { class: "body-sm text-subtlest font-semibold uppercase" }, zm = { class: "heading-sm text-default mt-1" }, Bm = {
|
|
9332
9417
|
key: 0,
|
|
9333
9418
|
class: "flex items-center justify-center px-4 py-8 sm:px-6"
|
|
9334
|
-
},
|
|
9419
|
+
}, Vm = {
|
|
9335
9420
|
key: 1,
|
|
9336
9421
|
class: "message-info-error body-md mx-4 rounded-xl px-4 py-3 sm:mx-6"
|
|
9337
|
-
},
|
|
9422
|
+
}, Hm = {
|
|
9338
9423
|
key: 2,
|
|
9339
9424
|
class: "space-y-4 pb-4 sm:pb-5"
|
|
9340
|
-
},
|
|
9425
|
+
}, Um = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9341
9426
|
__name: "MessageInfoDialog",
|
|
9342
9427
|
props: {
|
|
9343
9428
|
open: { type: Boolean },
|
|
@@ -9366,27 +9451,27 @@ var df = { class: "w-full" }, ff = {
|
|
|
9366
9451
|
"close-label": j(d)("close"),
|
|
9367
9452
|
onClose: n[0] ||= (e) => c("close")
|
|
9368
9453
|
}, {
|
|
9369
|
-
default: I(() => [e.message ? (S(), a("div",
|
|
9370
|
-
o("div",
|
|
9371
|
-
o("div",
|
|
9454
|
+
default: I(() => [e.message ? (S(), a("div", Tm, [o("div", Em, [o("p", Dm, k(j(Ws)(e.message, j(d)("message"), j(f).mentionNameByUid.value)), 1), o("div", Om, [
|
|
9455
|
+
o("div", km, [o("p", Am, k(j(d)("sent")), 1), o("p", jm, k(g(e.message.sentAt)), 1)]),
|
|
9456
|
+
o("div", Mm, [o("div", Nm, [o("p", Pm, k(j(d)("deliveredToAll")), 1), h.value.length ? (S(), r(j(V), {
|
|
9372
9457
|
key: 0,
|
|
9373
9458
|
text: String(h.value.length),
|
|
9374
9459
|
context: "secondary",
|
|
9375
9460
|
rounded: ""
|
|
9376
|
-
}, null, 8, ["text"])) : i("", !0)]), o("p",
|
|
9377
|
-
o("div",
|
|
9461
|
+
}, null, 8, ["text"])) : i("", !0)]), o("p", Fm, k(_(e.message.receipts.deliveredAt, h.value.length)), 1)]),
|
|
9462
|
+
o("div", Im, [o("div", Lm, [o("p", Rm, k(j(d)("readByAll")), 1), m.value.length ? (S(), r(j(V), {
|
|
9378
9463
|
key: 0,
|
|
9379
9464
|
text: String(m.value.length),
|
|
9380
9465
|
context: "success",
|
|
9381
9466
|
rounded: ""
|
|
9382
|
-
}, null, 8, ["text"])) : i("", !0)]), o("p",
|
|
9383
|
-
])]), e.loading ? (S(), a("div",
|
|
9467
|
+
}, null, 8, ["text"])) : i("", !0)]), o("p", zm, k(_(e.message.receipts.readAt, m.value.length)), 1)])
|
|
9468
|
+
])]), e.loading ? (S(), a("div", Bm, [l(j(se), {
|
|
9384
9469
|
style: {
|
|
9385
9470
|
width: "2.5rem",
|
|
9386
9471
|
height: "2.5rem"
|
|
9387
9472
|
},
|
|
9388
9473
|
"stroke-width": "5"
|
|
9389
|
-
})])) : e.error ? (S(), a("div",
|
|
9474
|
+
})])) : e.error ? (S(), a("div", Vm, k(e.error), 1)) : (S(), a("div", Hm, [l(wm, {
|
|
9390
9475
|
title: j(d)("readBy"),
|
|
9391
9476
|
receipts: m.value,
|
|
9392
9477
|
"empty-label": j(d)("nobodyHasReadThisMessageYet"),
|
|
@@ -9395,7 +9480,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9395
9480
|
"title",
|
|
9396
9481
|
"receipts",
|
|
9397
9482
|
"empty-label"
|
|
9398
|
-
]), l(
|
|
9483
|
+
]), l(wm, {
|
|
9399
9484
|
title: j(d)("deliveredNotYetRead"),
|
|
9400
9485
|
receipts: p.value,
|
|
9401
9486
|
"empty-label": j(d)("noRecipientsDeliveredStageYet"),
|
|
@@ -9413,34 +9498,34 @@ var df = { class: "w-full" }, ff = {
|
|
|
9413
9498
|
"close-label"
|
|
9414
9499
|
]));
|
|
9415
9500
|
}
|
|
9416
|
-
}), [["__scopeId", "data-v-30ce65f1"]]),
|
|
9501
|
+
}), [["__scopeId", "data-v-30ce65f1"]]), Wm = { class: "min-h-0 flex-1 overflow-y-auto" }, Gm = {
|
|
9417
9502
|
key: 0,
|
|
9418
9503
|
class: "flex h-full min-h-64 items-center justify-center"
|
|
9419
|
-
},
|
|
9504
|
+
}, Km = {
|
|
9420
9505
|
key: 1,
|
|
9421
9506
|
class: "bg-elevation-surface-sunken-default body-md flex h-full min-h-64 items-center justify-center rounded-xl px-6 text-center"
|
|
9422
|
-
},
|
|
9507
|
+
}, qm = {
|
|
9423
9508
|
key: 2,
|
|
9424
9509
|
class: "space-y-3"
|
|
9425
|
-
},
|
|
9510
|
+
}, Jm = { class: "flex flex-wrap items-start justify-between gap-3" }, Ym = { class: "w-full space-y-2" }, Xm = { class: "center between gap-2" }, Zm = { class: "" }, Qm = { class: "space-y-1" }, $m = { class: "heading-sm text-default" }, eh = {
|
|
9426
9511
|
key: 0,
|
|
9427
9512
|
class: "body-md text-default"
|
|
9428
|
-
},
|
|
9513
|
+
}, th = {
|
|
9429
9514
|
key: 1,
|
|
9430
9515
|
class: "body-md text-default wrap-break-word whitespace-pre-wrap"
|
|
9431
|
-
},
|
|
9516
|
+
}, nh = {
|
|
9432
9517
|
key: 0,
|
|
9433
9518
|
class: "max-w-sm"
|
|
9434
|
-
},
|
|
9519
|
+
}, rh = { class: "flex flex-wrap items-center gap-1" }, ih = {
|
|
9435
9520
|
key: 0,
|
|
9436
9521
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3 sm:flex-row sm:items-center"
|
|
9437
|
-
},
|
|
9522
|
+
}, ah = { class: "grid w-full grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem]" }, oh = { class: "flex items-center gap-2" }, sh = {
|
|
9438
9523
|
key: 1,
|
|
9439
9524
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3"
|
|
9440
|
-
},
|
|
9525
|
+
}, ch = {
|
|
9441
9526
|
key: 0,
|
|
9442
9527
|
class: "relative max-w-sm"
|
|
9443
|
-
},
|
|
9528
|
+
}, lh = { class: "absolute top-2 right-2" }, uh = ["placeholder"], dh = { class: "flex items-center justify-end gap-2" }, fh = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9444
9529
|
__name: "ScheduledMessagesDialog",
|
|
9445
9530
|
props: {
|
|
9446
9531
|
open: { type: Boolean },
|
|
@@ -9529,17 +9614,17 @@ var df = { class: "w-full" }, ff = {
|
|
|
9529
9614
|
"close-label": j(v)("close"),
|
|
9530
9615
|
onClose: s[3] ||= (e) => u("close")
|
|
9531
9616
|
}, {
|
|
9532
|
-
default: I(() => [o("div",
|
|
9617
|
+
default: I(() => [o("div", Wm, [t.loading ? (S(), a("div", Gm, [l(j(se), {
|
|
9533
9618
|
style: {
|
|
9534
9619
|
width: "2.75rem",
|
|
9535
9620
|
height: "2.75rem"
|
|
9536
9621
|
},
|
|
9537
9622
|
"stroke-width": "6"
|
|
9538
|
-
})])) : y.value.length === 0 ? (S(), a("div",
|
|
9623
|
+
})])) : y.value.length === 0 ? (S(), a("div", Km, k(j(v)("noScheduledMessagesForConversation")), 1)) : (S(), a("div", qm, [(S(!0), a(e, null, T(y.value, (e) => (S(), a("article", {
|
|
9539
9624
|
key: e.id,
|
|
9540
9625
|
class: "border-default rounded-lg border px-4 py-3"
|
|
9541
|
-
}, [o("div",
|
|
9542
|
-
o("div",
|
|
9626
|
+
}, [o("div", Jm, [o("div", Ym, [
|
|
9627
|
+
o("div", Xm, [o("div", Zm, [e.kind === "poll" ? (S(), r(j(V), {
|
|
9543
9628
|
key: 0,
|
|
9544
9629
|
text: j(v)("poll"),
|
|
9545
9630
|
context: "info",
|
|
@@ -9560,9 +9645,9 @@ var df = { class: "w-full" }, ff = {
|
|
|
9560
9645
|
size: "small",
|
|
9561
9646
|
onClick: (t) => B(e)
|
|
9562
9647
|
}, null, 8, ["icon", "onClick"])]),
|
|
9563
|
-
o("div",
|
|
9564
|
-
L(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div",
|
|
9565
|
-
]), o("div",
|
|
9648
|
+
o("div", Qm, [o("p", $m, k(x(e.scheduled?.scheduleDate)), 1), e.kind === "poll" && e.poll ? (S(), a("p", eh, k(e.poll.question), 1)) : (S(), a("p", th, k(j(Ws)(e, j(v)("attachment"))), 1))]),
|
|
9649
|
+
L(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div", nh, [l(lp, { message: N(e) }, null, 8, ["message"])])) : i("", !0)
|
|
9650
|
+
]), o("div", rh, [e.kind === "poll" ? i("", !0) : (S(), r(j(z), {
|
|
9566
9651
|
key: 0,
|
|
9567
9652
|
label: j(v)("edit"),
|
|
9568
9653
|
icon: j(ye),
|
|
@@ -9584,7 +9669,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9584
9669
|
"label",
|
|
9585
9670
|
"icon",
|
|
9586
9671
|
"onClick"
|
|
9587
|
-
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div",
|
|
9672
|
+
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div", ih, [o("div", ah, [te(o("input", {
|
|
9588
9673
|
"onUpdate:modelValue": s[0] ||= (e) => m.value = e,
|
|
9589
9674
|
type: "date",
|
|
9590
9675
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
@@ -9596,7 +9681,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9596
9681
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
9597
9682
|
"aria-label": "Time (24-hour)",
|
|
9598
9683
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
9599
|
-
}, null, 512), [[ee, h.value]])]), o("div",
|
|
9684
|
+
}, null, 512), [[ee, h.value]])]), o("div", oh, [l(j(z), {
|
|
9600
9685
|
label: j(v)("save"),
|
|
9601
9686
|
size: "small",
|
|
9602
9687
|
disabled: !m.value || !b.value,
|
|
@@ -9610,8 +9695,8 @@ var df = { class: "w-full" }, ff = {
|
|
|
9610
9695
|
size: "small",
|
|
9611
9696
|
text: "",
|
|
9612
9697
|
onClick: M
|
|
9613
|
-
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div",
|
|
9614
|
-
L(e) ? (S(), a("div",
|
|
9698
|
+
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div", sh, [
|
|
9699
|
+
L(e) ? (S(), a("div", ch, [l(lp, { message: N(e) }, null, 8, ["message"]), o("div", lh, [l(j(z), {
|
|
9615
9700
|
icon: j(fe),
|
|
9616
9701
|
"aria-label": j(v)("remove"),
|
|
9617
9702
|
text: "",
|
|
@@ -9625,8 +9710,8 @@ var df = { class: "w-full" }, ff = {
|
|
|
9625
9710
|
rows: "3",
|
|
9626
9711
|
class: "surface-input body-md w-full rounded-xl px-3 py-2 ring-0 outline-none",
|
|
9627
9712
|
placeholder: j(v)("writeMessage")
|
|
9628
|
-
}, null, 8,
|
|
9629
|
-
o("div",
|
|
9713
|
+
}, null, 8, uh), [[ee, g.value]]),
|
|
9714
|
+
o("div", dh, [l(j(z), {
|
|
9630
9715
|
label: j(v)("cancel"),
|
|
9631
9716
|
size: "small",
|
|
9632
9717
|
text: "",
|
|
@@ -9650,7 +9735,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9650
9735
|
"close-label"
|
|
9651
9736
|
]));
|
|
9652
9737
|
}
|
|
9653
|
-
}), [["__scopeId", "data-v-0bb2dc95"]]),
|
|
9738
|
+
}), [["__scopeId", "data-v-0bb2dc95"]]), ph = { class: "chat-status-overlay" }, mh = { class: "chat-status-overlay__card" }, hh = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9654
9739
|
__name: "ChatStatusOverlay",
|
|
9655
9740
|
props: {
|
|
9656
9741
|
visible: { type: Boolean },
|
|
@@ -9683,9 +9768,9 @@ var df = { class: "w-full" }, ff = {
|
|
|
9683
9768
|
message: t.messages.connecting,
|
|
9684
9769
|
slotName: "connecting"
|
|
9685
9770
|
} : null);
|
|
9686
|
-
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div",
|
|
9771
|
+
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div", ph, [o("div", mh, [E(e.$slots, `${r.value.slotName}-content`, {}, () => [o("span", null, k(r.value.message), 1)], !0)])])], !0) : i("", !0);
|
|
9687
9772
|
}
|
|
9688
|
-
}), [["__scopeId", "data-v-7749aec9"]]),
|
|
9773
|
+
}), [["__scopeId", "data-v-7749aec9"]]), gh = /* @__PURE__ */ u({
|
|
9689
9774
|
__name: "BccChat",
|
|
9690
9775
|
props: {
|
|
9691
9776
|
client: { default: null },
|
|
@@ -9916,7 +10001,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9916
10001
|
_: 1
|
|
9917
10002
|
})]) : i("", !0),
|
|
9918
10003
|
T.value ? (S(), a(e, { key: 1 }, [
|
|
9919
|
-
l(
|
|
10004
|
+
l(fm, {
|
|
9920
10005
|
target: "main",
|
|
9921
10006
|
class: g(["h-full", t.containerClass]),
|
|
9922
10007
|
"hide-group-actions": t.hideGroupActions,
|
|
@@ -9950,7 +10035,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9950
10035
|
"close-aria-label": j(m)("closeThread"),
|
|
9951
10036
|
onClose: r[0] ||= (e) => j(re).emit("ui:closeThread")
|
|
9952
10037
|
}, {
|
|
9953
|
-
default: I(() => [l(
|
|
10038
|
+
default: I(() => [l(fm, {
|
|
9954
10039
|
target: "thread",
|
|
9955
10040
|
class: "min-h-0 flex-1",
|
|
9956
10041
|
"action-message-class": t.actionMessageClass,
|
|
@@ -9971,7 +10056,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9971
10056
|
"close-label",
|
|
9972
10057
|
"close-aria-label"
|
|
9973
10058
|
]),
|
|
9974
|
-
l(
|
|
10059
|
+
l(fh, {
|
|
9975
10060
|
open: j(R).showScheduledMessages.value,
|
|
9976
10061
|
loading: j(R).loadingScheduledMessages.value,
|
|
9977
10062
|
messages: j(R).scheduledMessages.value,
|
|
@@ -9986,7 +10071,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9986
10071
|
"messages",
|
|
9987
10072
|
"conversation-title"
|
|
9988
10073
|
]),
|
|
9989
|
-
l(
|
|
10074
|
+
l(Um, {
|
|
9990
10075
|
open: !!j(R).infoMessage.value,
|
|
9991
10076
|
message: j(R).infoMessage.value,
|
|
9992
10077
|
receipts: j(R).infoMessageReceipts.value,
|
|
@@ -10001,7 +10086,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
10001
10086
|
"error"
|
|
10002
10087
|
])
|
|
10003
10088
|
], 64)) : i("", !0),
|
|
10004
|
-
l(
|
|
10089
|
+
l(hh, {
|
|
10005
10090
|
visible: D.value && (T.value?.offlineMode.value || !T.value?.connected.value || x.value && !te.value || v.value || C.value || t.displayNoMessagesText && j(P).isChatEmpty.value),
|
|
10006
10091
|
"offline-mode": !!(T.value?.offlineMode.value && !O.value),
|
|
10007
10092
|
connected: !!(T.value?.connected.value || O.value),
|
|
@@ -10041,6 +10126,6 @@ var df = { class: "w-full" }, ff = {
|
|
|
10041
10126
|
}
|
|
10042
10127
|
});
|
|
10043
10128
|
//#endregion
|
|
10044
|
-
export {
|
|
10129
|
+
export { gh as BccChat, gh as BccChatMessageList, Ol as LogSeverity, gu as chat, gu as default, cc as createChatClient };
|
|
10045
10130
|
|
|
10046
10131
|
//# sourceMappingURL=vue-bcc-chat-ui.js.map
|