@bcc-code/vue-bcc-chat-ui 7.1.47 → 7.1.49
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 +139 -107
- 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", hh), e.provide("theme", { theme: El });
|
|
6147
6147
|
let r = Vl(t.environment);
|
|
6148
6148
|
zl(Ol.INFO, "Initializing chat", {
|
|
6149
6149
|
environment: t.environment,
|
|
@@ -7974,27 +7974,47 @@ function ef(e) {
|
|
|
7974
7974
|
y: 0
|
|
7975
7975
|
};
|
|
7976
7976
|
}
|
|
7977
|
-
function _(e, t) {
|
|
7977
|
+
async function _(e, t) {
|
|
7978
7978
|
if (o.value) {
|
|
7979
7979
|
let t = g(e);
|
|
7980
7980
|
return {
|
|
7981
7981
|
x: t.x + 2,
|
|
7982
|
-
y: t.y + 2
|
|
7982
|
+
y: t.y + 2,
|
|
7983
|
+
element: void 0
|
|
7983
7984
|
};
|
|
7984
|
-
}
|
|
7985
|
-
|
|
7985
|
+
}
|
|
7986
|
+
if (typeof window < "u") {
|
|
7987
|
+
let n = null, r = null;
|
|
7988
|
+
e.target instanceof HTMLElement && (n = e.target.closest(".message-item"), r = n?.querySelector(".message-bubble--spotlight .message-bubble"));
|
|
7989
|
+
let i = t.isOwn ? window.innerWidth * 2 / 3 : window.innerWidth / 3, a = window.innerHeight / 2;
|
|
7990
|
+
if (r) {
|
|
7991
|
+
await new Promise((e) => requestAnimationFrame(() => e()));
|
|
7992
|
+
let e = r.getBoundingClientRect();
|
|
7993
|
+
a = e.top + e.height;
|
|
7994
|
+
} else if (n) {
|
|
7995
|
+
let e = n ? n.getBoundingClientRect().height : 0;
|
|
7996
|
+
a = window.innerHeight / 2 + e / 2;
|
|
7997
|
+
}
|
|
7986
7998
|
return {
|
|
7987
|
-
x:
|
|
7988
|
-
y:
|
|
7999
|
+
x: i,
|
|
8000
|
+
y: a,
|
|
8001
|
+
element: r ?? n ?? void 0
|
|
7989
8002
|
};
|
|
7990
8003
|
}
|
|
7991
8004
|
return {
|
|
7992
8005
|
x: 0,
|
|
7993
|
-
y: 0
|
|
8006
|
+
y: 0,
|
|
8007
|
+
element: void 0
|
|
7994
8008
|
};
|
|
7995
8009
|
}
|
|
7996
8010
|
async function v(n, i, a) {
|
|
7997
|
-
e.canUseMessageActions()
|
|
8011
|
+
if (!e.canUseMessageActions() || a === "contextmenu" && !o.value || a === "tap" && o.value) return;
|
|
8012
|
+
i.preventDefault(), i.stopPropagation(), e.onMenuOpen?.(), r.value = n, await h();
|
|
8013
|
+
let { x: s, y: c, element: l } = await _(i, n);
|
|
8014
|
+
t.value?.show(i, l ? void 0 : {
|
|
8015
|
+
x: s,
|
|
8016
|
+
y: c
|
|
8017
|
+
}, l);
|
|
7998
8018
|
}
|
|
7999
8019
|
function y(e, t) {
|
|
8000
8020
|
v(e, t, "contextmenu");
|
|
@@ -8010,7 +8030,9 @@ function ef(e) {
|
|
|
8010
8030
|
S(), t.value?.hide();
|
|
8011
8031
|
}
|
|
8012
8032
|
function S() {
|
|
8013
|
-
|
|
8033
|
+
setTimeout(() => {
|
|
8034
|
+
r.value = null;
|
|
8035
|
+
}, 10);
|
|
8014
8036
|
}
|
|
8015
8037
|
function C(t, n) {
|
|
8016
8038
|
e.canReact() && (e.emit.toggleReaction(t, n), x());
|
|
@@ -8900,7 +8922,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
8900
8922
|
"id",
|
|
8901
8923
|
"data-message-id",
|
|
8902
8924
|
"data-message-kind"
|
|
8903
|
-
], Lp = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, Rp = { class: "message-
|
|
8925
|
+
], Lp = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, Rp = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, zp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8904
8926
|
__name: "MessageItem",
|
|
8905
8927
|
props: {
|
|
8906
8928
|
message: {},
|
|
@@ -8932,13 +8954,19 @@ var df = { class: "w-full" }, ff = {
|
|
|
8932
8954
|
function m(e) {
|
|
8933
8955
|
return e instanceof Element ? !!e.closest("button, a, input, textarea, select, label, summary, video, audio") : !1;
|
|
8934
8956
|
}
|
|
8935
|
-
function
|
|
8957
|
+
function _(e) {
|
|
8936
8958
|
m(e.target) || u("contextmenu", e);
|
|
8937
8959
|
}
|
|
8938
|
-
function
|
|
8960
|
+
function y(e) {
|
|
8939
8961
|
m(e.target) || u("tap", e);
|
|
8940
8962
|
}
|
|
8941
|
-
|
|
8963
|
+
let b = N("originalBubble"), x = w("0px");
|
|
8964
|
+
F(() => c.contextMenuOpen && c.isTouchUi, async (e) => {
|
|
8965
|
+
if (!e || (await h(), !b.value)) return;
|
|
8966
|
+
let t = b.value.getBoundingClientRect(), n = Math.min(t.top, window.innerHeight - 50 - t.height);
|
|
8967
|
+
x.value = `${Math.max(0, n - 32)}px`;
|
|
8968
|
+
}, { immediate: !0 });
|
|
8969
|
+
function C() {
|
|
8942
8970
|
let e = c.message.replyTo?.messageId?.trim();
|
|
8943
8971
|
e && u("openReferencedMessage", e);
|
|
8944
8972
|
}
|
|
@@ -8960,10 +8988,11 @@ var df = { class: "w-full" }, ff = {
|
|
|
8960
8988
|
class: "mb-1 shrink-0 self-end"
|
|
8961
8989
|
}, null, 8, ["image", "label"])) : i("", !0),
|
|
8962
8990
|
o("div", {
|
|
8991
|
+
ref: "originalBubble",
|
|
8963
8992
|
"data-testid": "message-bubble",
|
|
8964
8993
|
class: g(["message-bubble", f.value]),
|
|
8965
|
-
onContextmenu:
|
|
8966
|
-
onClick:
|
|
8994
|
+
onContextmenu: _,
|
|
8995
|
+
onClick: y
|
|
8967
8996
|
}, [
|
|
8968
8997
|
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(hp, {
|
|
8969
8998
|
key: 0,
|
|
@@ -8972,7 +9001,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
8972
9001
|
t.message.replyTo ? (S(), r(Np, {
|
|
8973
9002
|
key: 1,
|
|
8974
9003
|
message: t.message,
|
|
8975
|
-
onOpen:
|
|
9004
|
+
onOpen: C
|
|
8976
9005
|
}, null, 8, ["message"])) : i("", !0),
|
|
8977
9006
|
t.message.kind === "poll" && t.message.poll ? (S(), r(Ap, {
|
|
8978
9007
|
key: 2,
|
|
@@ -9008,7 +9037,10 @@ var df = { class: "w-full" }, ff = {
|
|
|
9008
9037
|
t.contextMenuOpen && t.isTouchUi ? (S(), a("div", {
|
|
9009
9038
|
key: 1,
|
|
9010
9039
|
class: g(["message-bubble--spotlight", f.value])
|
|
9011
|
-
}, [o("div",
|
|
9040
|
+
}, [o("div", {
|
|
9041
|
+
class: "message-bubble-wrapper",
|
|
9042
|
+
style: v({ top: x.value })
|
|
9043
|
+
}, [o("div", { class: g(["message-bubble", f.value]) }, [
|
|
9012
9044
|
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(hp, {
|
|
9013
9045
|
key: 0,
|
|
9014
9046
|
message: t.message
|
|
@@ -9016,7 +9048,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9016
9048
|
t.message.replyTo ? (S(), r(Np, {
|
|
9017
9049
|
key: 1,
|
|
9018
9050
|
message: t.message,
|
|
9019
|
-
onOpen:
|
|
9051
|
+
onOpen: C
|
|
9020
9052
|
}, null, 8, ["message"])) : i("", !0),
|
|
9021
9053
|
t.message.kind === "poll" && t.message.poll ? (S(), r(Ap, {
|
|
9022
9054
|
key: 2,
|
|
@@ -9037,7 +9069,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9037
9069
|
message: t.message,
|
|
9038
9070
|
onAnchorclick: s[7] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
9039
9071
|
}, null, 8, ["message"])),
|
|
9040
|
-
o("div",
|
|
9072
|
+
o("div", Rp, [l(xp, {
|
|
9041
9073
|
message: t.message,
|
|
9042
9074
|
"can-react": t.canReact,
|
|
9043
9075
|
"can-open-thread": t.canOpenThread,
|
|
@@ -9048,20 +9080,20 @@ var df = { class: "w-full" }, ff = {
|
|
|
9048
9080
|
"can-react",
|
|
9049
9081
|
"can-open-thread"
|
|
9050
9082
|
]), l(fp, { message: t.message }, null, 8, ["message"])])
|
|
9051
|
-
], 2)])], 2)) : i("", !0)
|
|
9083
|
+
], 2)], 4)], 2)) : i("", !0)
|
|
9052
9084
|
], 64))], 10, Ip));
|
|
9053
9085
|
}
|
|
9054
|
-
}), [["__scopeId", "data-v-
|
|
9086
|
+
}), [["__scopeId", "data-v-02761d2e"]]), Bp = [
|
|
9055
9087
|
"👍",
|
|
9056
9088
|
"❤️",
|
|
9057
9089
|
"🔥",
|
|
9058
9090
|
"😂",
|
|
9059
9091
|
"🙏",
|
|
9060
9092
|
"🎉"
|
|
9061
|
-
],
|
|
9093
|
+
], Vp = /* @__PURE__ */ "👏.😍.🤯.😮.😢.😡.👀.✅.💯.🙌.🤝.👌.💪.🤔.🫶.😅.🥳.💛.🌟.🚀.💥.🎯.📌.💡.🕊️.☀️.🌈.🍀.🎶.🫡".split("."), Hp = { 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" }, Up = ["disabled", "onClick"], Wp = ["disabled"], Gp = {
|
|
9062
9094
|
key: 0,
|
|
9063
9095
|
class: "bg-elevation-surface-raised-default shadow-overlay m-0 grid grid-cols-6 gap-1 rounded-lg p-1.5"
|
|
9064
|
-
},
|
|
9096
|
+
}, Kp = ["onClick"], qp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9065
9097
|
__name: "MessageItemMenuReactions",
|
|
9066
9098
|
props: {
|
|
9067
9099
|
message: {},
|
|
@@ -9073,20 +9105,20 @@ var df = { class: "w-full" }, ff = {
|
|
|
9073
9105
|
F(() => c.message.id, () => {
|
|
9074
9106
|
u.value = !1;
|
|
9075
9107
|
});
|
|
9076
|
-
let d = n(() =>
|
|
9108
|
+
let d = n(() => Vp);
|
|
9077
9109
|
function f(e) {
|
|
9078
9110
|
return (c.message.reactions ?? []).some((t) => t.emoji === e);
|
|
9079
9111
|
}
|
|
9080
9112
|
function p() {
|
|
9081
9113
|
c.canReact && (u.value = !u.value);
|
|
9082
9114
|
}
|
|
9083
|
-
return (n, s) => (S(), a(e, null, [o("div",
|
|
9115
|
+
return (n, s) => (S(), a(e, null, [o("div", Hp, [(S(!0), a(e, null, T(j(Bp), (e) => (S(), a("button", {
|
|
9084
9116
|
key: `${t.message.id}-${e}-common`,
|
|
9085
9117
|
type: "button",
|
|
9086
9118
|
class: g(["message-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9087
9119
|
disabled: !t.canReact,
|
|
9088
9120
|
onClick: (t) => l("react", e)
|
|
9089
|
-
}, k(e), 11,
|
|
9121
|
+
}, k(e), 11, Up))), 128)), o("button", {
|
|
9090
9122
|
type: "button",
|
|
9091
9123
|
class: "message-reaction-more",
|
|
9092
9124
|
disabled: !t.canReact,
|
|
@@ -9094,14 +9126,14 @@ var df = { class: "w-full" }, ff = {
|
|
|
9094
9126
|
}, [(S(), r(D(u.value ? j(De) : j(Ee)), {
|
|
9095
9127
|
class: "size-7",
|
|
9096
9128
|
"aria-hidden": "true"
|
|
9097
|
-
}))], 8,
|
|
9129
|
+
}))], 8, Wp)]), u.value && t.canReact ? (S(), a("div", Gp, [(S(!0), a(e, null, T(d.value, (e) => (S(), a("button", {
|
|
9098
9130
|
key: `${t.message.id}-${e}-extended`,
|
|
9099
9131
|
type: "button",
|
|
9100
9132
|
class: g(["message-expanded-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9101
9133
|
onClick: (t) => l("react", e)
|
|
9102
|
-
}, k(e), 11,
|
|
9134
|
+
}, k(e), 11, Kp))), 128))])) : i("", !0)], 64));
|
|
9103
9135
|
}
|
|
9104
|
-
}), [["__scopeId", "data-v-0a11761a"]]),
|
|
9136
|
+
}), [["__scopeId", "data-v-0a11761a"]]), Jp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9105
9137
|
__name: "MessageItemMenu",
|
|
9106
9138
|
props: {
|
|
9107
9139
|
message: {},
|
|
@@ -9120,21 +9152,21 @@ var df = { class: "w-full" }, ff = {
|
|
|
9120
9152
|
}
|
|
9121
9153
|
async function _() {
|
|
9122
9154
|
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;
|
|
9155
|
+
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, _ = a.height + 190;
|
|
9124
9156
|
if (m) {
|
|
9125
|
-
let e = m.y + 10 +
|
|
9157
|
+
let e = m.y + 10 + _ <= n + i - 12;
|
|
9126
9158
|
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
9159
|
} else if (p) {
|
|
9128
|
-
let e = p.getBoundingClientRect(), t = e.left + e.width / 2, r = e.
|
|
9129
|
-
h = Math.min(Math.max(t - a.width / 2, o), d), g =
|
|
9160
|
+
let e = p.getBoundingClientRect(), t = e.left + e.width / 2, r = n + i, s = e.bottom + 10, u = e.top - a.height - 10, f = u >= c, m = s + _ <= r - 12 || !f && s + a.height <= r - 12, v = r - 12 - e.bottom - 10, y = e.top - c - 10;
|
|
9161
|
+
h = Math.min(Math.max(t - a.width / 2, o), d), g = m ? Math.min(s, l) : f ? Math.min(u, l) : y >= v ? c : l;
|
|
9130
9162
|
}
|
|
9131
9163
|
f.value = {
|
|
9132
9164
|
left: h,
|
|
9133
9165
|
top: g
|
|
9134
9166
|
};
|
|
9135
9167
|
}
|
|
9136
|
-
async function b(e, t) {
|
|
9137
|
-
p = g(e), m = t ?? null, !(!p && !m) && (d.value = !0, await h(), await _());
|
|
9168
|
+
async function b(e, t, n) {
|
|
9169
|
+
p = n ?? g(e), m = t ?? null, !(!p && !m) && (d.value = !0, await h(), await _());
|
|
9138
9170
|
}
|
|
9139
9171
|
function x() {
|
|
9140
9172
|
d.value && (d.value = !1, p = null, m = null, c("hide"));
|
|
@@ -9144,7 +9176,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9144
9176
|
let t = e.target;
|
|
9145
9177
|
if (!u.value?.contains(t)) {
|
|
9146
9178
|
if (p) {
|
|
9147
|
-
if (p.closest(".message-item")?.contains(t) && t instanceof HTMLElement && t.classList.contains("message-bubble--spotlight")) {
|
|
9179
|
+
if (p.closest(".message-item")?.contains(t) && t instanceof HTMLElement && (t.classList.contains("message-bubble--spotlight") || t.classList.contains("message-bubble-wrapper"))) {
|
|
9148
9180
|
setTimeout(() => {
|
|
9149
9181
|
x();
|
|
9150
9182
|
}, 100);
|
|
@@ -9177,19 +9209,19 @@ var df = { class: "w-full" }, ff = {
|
|
|
9177
9209
|
top: `${f.value.top}px`
|
|
9178
9210
|
}),
|
|
9179
9211
|
"data-testid": "message-action-popover-shell"
|
|
9180
|
-
}, [l(
|
|
9212
|
+
}, [l(qp, {
|
|
9181
9213
|
message: e.message,
|
|
9182
9214
|
"can-react": e.canReact,
|
|
9183
9215
|
onReact: o[0] ||= (e) => c("react", e)
|
|
9184
9216
|
}, null, 8, ["message", "can-react"]), l(j(ae), { model: e.actionItems }, null, 8, ["model"])], 4)) : i("", !0)]));
|
|
9185
9217
|
}
|
|
9186
|
-
}), [["__scopeId", "data-v-
|
|
9218
|
+
}), [["__scopeId", "data-v-589e4087"]]), Yp = { 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" }, Xp = {
|
|
9187
9219
|
key: 0,
|
|
9188
9220
|
class: "chat-header__identity flex min-w-0 items-center gap-3"
|
|
9189
|
-
},
|
|
9221
|
+
}, Zp = { class: "chat-header__text min-w-0" }, Qp = { class: "chat-header__title heading-md text-default sm:heading-lg truncate" }, $p = { class: "chat-header__subtitle body-sm text-subtle sm:body-md truncate" }, em = { key: 0 }, tm = { key: 1 }, nm = { class: "chat-header__actions flex items-center gap-2" }, rm = {
|
|
9190
9222
|
key: 0,
|
|
9191
9223
|
class: "chat-header__tags hidden flex-wrap gap-2 md:flex"
|
|
9192
|
-
},
|
|
9224
|
+
}, im = /* @__PURE__ */ u({
|
|
9193
9225
|
__name: "MessageListHeader",
|
|
9194
9226
|
props: {
|
|
9195
9227
|
conversation: {},
|
|
@@ -9197,28 +9229,28 @@ var df = { class: "w-full" }, ff = {
|
|
|
9197
9229
|
},
|
|
9198
9230
|
setup(t) {
|
|
9199
9231
|
let { t: n } = K();
|
|
9200
|
-
return (s, c) => (S(), a("header",
|
|
9232
|
+
return (s, c) => (S(), a("header", Yp, [t.conversation ? (S(), a("div", Xp, [l(j(R), {
|
|
9201
9233
|
image: t.conversation.avatar,
|
|
9202
9234
|
label: t.conversation.avatar ? void 0 : t.conversation.title.slice(0, 1).toUpperCase(),
|
|
9203
9235
|
shape: "circle",
|
|
9204
9236
|
class: "chat-header__avatar shrink-0"
|
|
9205
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9237
|
+
}, null, 8, ["image", "label"]), o("div", Zp, [o("p", Qp, k(t.parentMessage ? j(n)("thread") : t.conversation.title), 1), o("p", $p, [t.parentMessage ? (S(), a("span", em, k(t.parentMessage.senderName), 1)) : (S(), a("span", tm, k(t.conversation.memberCount ? j(n)("members", { count: t.conversation.memberCount }) : j(n)("groupChat")), 1))])])])) : i("", !0), o("div", nm, [t.conversation?.tags?.length ? (S(), a("div", rm, [(S(!0), a(e, null, T(t.conversation.tags.slice(0, 3), (e) => (S(), r(j(V), {
|
|
9206
9238
|
key: e,
|
|
9207
9239
|
text: e,
|
|
9208
9240
|
context: "secondary",
|
|
9209
9241
|
rounded: ""
|
|
9210
9242
|
}, null, 8, ["text"]))), 128))])) : i("", !0)])]));
|
|
9211
9243
|
}
|
|
9212
|
-
}),
|
|
9244
|
+
}), am = {
|
|
9213
9245
|
key: 1,
|
|
9214
9246
|
class: "message-list__empty-state"
|
|
9215
|
-
},
|
|
9247
|
+
}, om = { class: "space-y-2" }, sm = {
|
|
9216
9248
|
key: 0,
|
|
9217
9249
|
class: "message-list__thread-root"
|
|
9218
|
-
},
|
|
9250
|
+
}, cm = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, lm = { class: "body-md text-default mt-1 line-clamp-2" }, um = {
|
|
9219
9251
|
key: 1,
|
|
9220
9252
|
class: "surface-default text-subtle rounded-2xl p-5 text-center"
|
|
9221
|
-
},
|
|
9253
|
+
}, dm = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9222
9254
|
__name: "MessageList",
|
|
9223
9255
|
props: {
|
|
9224
9256
|
target: {},
|
|
@@ -9311,7 +9343,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9311
9343
|
title: D.value,
|
|
9312
9344
|
subtitle: O.value,
|
|
9313
9345
|
memberCount: A.value
|
|
9314
|
-
}, () => [l(
|
|
9346
|
+
}, () => [l(im, {
|
|
9315
9347
|
conversation: j(u).conversation.value,
|
|
9316
9348
|
"parent-message": _.value
|
|
9317
9349
|
}, null, 8, ["conversation", "parent-message"])], !0) : i("", !0), j(u).conversation.value ? (S(), a("div", {
|
|
@@ -9322,12 +9354,12 @@ var df = { class: "w-full" }, ff = {
|
|
|
9322
9354
|
ref: te,
|
|
9323
9355
|
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"]),
|
|
9324
9356
|
onScroll: n[2] ||= (...e) => j(L) && j(L)(...e)
|
|
9325
|
-
}, [o("div",
|
|
9326
|
-
_.value ? (S(), a("div",
|
|
9357
|
+
}, [o("div", om, [
|
|
9358
|
+
_.value ? (S(), a("div", sm, [o("p", cm, k(_.value.senderName), 1), o("p", lm, k(j(Ws)(_.value, j(c)("message"), j(u).mentionNameByUid.value)), 1)])) : i("", !0),
|
|
9327
9359
|
(S(!0), a(e, null, T(m.value, (o, c) => (S(), a(e, { key: o.id }, [de(c) ? (S(), r(Af, {
|
|
9328
9360
|
key: 0,
|
|
9329
9361
|
date: o.sentAt
|
|
9330
|
-
}, null, 8, ["date"])) : i("", !0), l(
|
|
9362
|
+
}, null, 8, ["date"])) : i("", !0), l(zp, {
|
|
9331
9363
|
message: o,
|
|
9332
9364
|
"current-user-id": j(u).currentUserId.value,
|
|
9333
9365
|
"can-react": j(u).canReact.value,
|
|
@@ -9336,7 +9368,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9336
9368
|
"pending-option-key": ee.value,
|
|
9337
9369
|
"action-message-class": s.actionMessageClass,
|
|
9338
9370
|
"action-message-row-class": s.actionMessageRowClass,
|
|
9339
|
-
"context-menu-open": j(z)?.id === o.id
|
|
9371
|
+
"context-menu-open": j(z)?.id === o.id,
|
|
9340
9372
|
"is-touch-ui": j(se),
|
|
9341
9373
|
onContextmenu: (e) => j(ne)(o, e),
|
|
9342
9374
|
onTap: (e) => j(B)(o, e),
|
|
@@ -9363,13 +9395,13 @@ var df = { class: "w-full" }, ff = {
|
|
|
9363
9395
|
"onToggleReaction",
|
|
9364
9396
|
"onOpenThread"
|
|
9365
9397
|
])], 64))), 128)),
|
|
9366
|
-
m.value.length === 0 && C.value && !h.value ? (S(), a("div",
|
|
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",
|
|
9398
|
+
m.value.length === 0 && C.value && !h.value ? (S(), a("div", um, k(j(c)("noMessagesYetInThisGroup")), 1)) : i("", !0)
|
|
9399
|
+
])], 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", am, k(j(c)("selectConversationToStart")), 1))], 2),
|
|
9368
9400
|
l(Df, {
|
|
9369
9401
|
attachment: M.value,
|
|
9370
9402
|
onClose: U
|
|
9371
9403
|
}, null, 8, ["attachment"]),
|
|
9372
|
-
l(
|
|
9404
|
+
l(Jp, {
|
|
9373
9405
|
ref_key: "actionMenuRef",
|
|
9374
9406
|
ref: R,
|
|
9375
9407
|
message: j(z),
|
|
@@ -9385,13 +9417,13 @@ var df = { class: "w-full" }, ff = {
|
|
|
9385
9417
|
])
|
|
9386
9418
|
], 64));
|
|
9387
9419
|
}
|
|
9388
|
-
}), [["__scopeId", "data-v-
|
|
9420
|
+
}), [["__scopeId", "data-v-5df7d69f"]]), fm = { class: "receipt-section" }, pm = { class: "receipt-section__header" }, mm = { class: "heading-sm text-default" }, hm = { class: "body-sm text-subtlest" }, gm = {
|
|
9389
9421
|
key: 0,
|
|
9390
9422
|
class: "space-y-2"
|
|
9391
|
-
},
|
|
9423
|
+
}, _m = { class: "flex min-w-0 items-center gap-3" }, vm = { class: "min-w-0" }, ym = { class: "heading-sm text-default truncate" }, bm = { class: "body-sm text-subtle truncate" }, xm = { class: "body-sm text-subtle shrink-0" }, Sm = {
|
|
9392
9424
|
key: 1,
|
|
9393
9425
|
class: "receipt-section__empty"
|
|
9394
|
-
},
|
|
9426
|
+
}, Cm = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9395
9427
|
__name: "ReceiptSection",
|
|
9396
9428
|
props: {
|
|
9397
9429
|
title: {},
|
|
@@ -9400,29 +9432,29 @@ var df = { class: "w-full" }, ff = {
|
|
|
9400
9432
|
formatDateTime: { type: Function }
|
|
9401
9433
|
},
|
|
9402
9434
|
setup(t) {
|
|
9403
|
-
return (n, r) => (S(), a("section",
|
|
9435
|
+
return (n, r) => (S(), a("section", fm, [o("div", pm, [o("p", mm, k(t.title), 1), o("span", hm, k(t.receipts.length), 1)]), t.receipts.length ? (S(), a("div", gm, [(S(!0), a(e, null, T(t.receipts, (e) => (S(), a("div", {
|
|
9404
9436
|
key: `${e.kind}-${e.user.uid}`,
|
|
9405
9437
|
class: "receipt-section__row"
|
|
9406
|
-
}, [o("div",
|
|
9438
|
+
}, [o("div", _m, [l(j(R), {
|
|
9407
9439
|
image: e.user.avatar,
|
|
9408
9440
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
9409
9441
|
shape: "circle",
|
|
9410
9442
|
class: "shrink-0"
|
|
9411
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9443
|
+
}, null, 8, ["image", "label"]), o("div", vm, [o("p", ym, k(e.user.name), 1), o("p", bm, k(e.user.uid), 1)])]), o("p", xm, k(t.formatDateTime(e.timestamp)), 1)]))), 128))])) : (S(), a("div", Sm, k(t.emptyLabel), 1))]));
|
|
9412
9444
|
}
|
|
9413
|
-
}), [["__scopeId", "data-v-2b2f0a3e"]]),
|
|
9445
|
+
}), [["__scopeId", "data-v-2b2f0a3e"]]), wm = {
|
|
9414
9446
|
key: 0,
|
|
9415
9447
|
class: "message-info-dialog-content space-y-5 overflow-y-auto"
|
|
9416
|
-
},
|
|
9448
|
+
}, Tm = { class: "message-info-summary px-4 py-4 sm:px-6 sm:py-5" }, Em = { class: "body-md text-default wrap-break-word whitespace-pre-wrap" }, Dm = { class: "mt-4 grid gap-3 sm:grid-cols-3" }, Om = { class: "message-info-metric px-3 py-3" }, km = { class: "body-sm text-subtlest font-semibold uppercase" }, Am = { class: "heading-sm text-default mt-1" }, jm = { class: "message-info-metric px-3 py-3" }, Mm = { class: "flex items-center gap-2" }, Nm = { class: "body-sm text-subtlest font-semibold uppercase" }, Pm = { class: "heading-sm text-default mt-1" }, Fm = { class: "message-info-metric px-3 py-3" }, Im = { class: "flex items-center gap-2" }, Lm = { class: "body-sm text-subtlest font-semibold uppercase" }, Rm = { class: "heading-sm text-default mt-1" }, zm = {
|
|
9417
9449
|
key: 0,
|
|
9418
9450
|
class: "flex items-center justify-center px-4 py-8 sm:px-6"
|
|
9419
|
-
},
|
|
9451
|
+
}, Bm = {
|
|
9420
9452
|
key: 1,
|
|
9421
9453
|
class: "message-info-error body-md mx-4 rounded-xl px-4 py-3 sm:mx-6"
|
|
9422
|
-
},
|
|
9454
|
+
}, Vm = {
|
|
9423
9455
|
key: 2,
|
|
9424
9456
|
class: "space-y-4 pb-4 sm:pb-5"
|
|
9425
|
-
},
|
|
9457
|
+
}, Hm = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9426
9458
|
__name: "MessageInfoDialog",
|
|
9427
9459
|
props: {
|
|
9428
9460
|
open: { type: Boolean },
|
|
@@ -9451,27 +9483,27 @@ var df = { class: "w-full" }, ff = {
|
|
|
9451
9483
|
"close-label": j(d)("close"),
|
|
9452
9484
|
onClose: n[0] ||= (e) => c("close")
|
|
9453
9485
|
}, {
|
|
9454
|
-
default: I(() => [e.message ? (S(), a("div",
|
|
9455
|
-
o("div",
|
|
9456
|
-
o("div",
|
|
9486
|
+
default: I(() => [e.message ? (S(), a("div", wm, [o("div", Tm, [o("p", Em, k(j(Ws)(e.message, j(d)("message"), j(f).mentionNameByUid.value)), 1), o("div", Dm, [
|
|
9487
|
+
o("div", Om, [o("p", km, k(j(d)("sent")), 1), o("p", Am, k(g(e.message.sentAt)), 1)]),
|
|
9488
|
+
o("div", jm, [o("div", Mm, [o("p", Nm, k(j(d)("deliveredToAll")), 1), h.value.length ? (S(), r(j(V), {
|
|
9457
9489
|
key: 0,
|
|
9458
9490
|
text: String(h.value.length),
|
|
9459
9491
|
context: "secondary",
|
|
9460
9492
|
rounded: ""
|
|
9461
|
-
}, null, 8, ["text"])) : i("", !0)]), o("p",
|
|
9462
|
-
o("div",
|
|
9493
|
+
}, null, 8, ["text"])) : i("", !0)]), o("p", Pm, k(_(e.message.receipts.deliveredAt, h.value.length)), 1)]),
|
|
9494
|
+
o("div", Fm, [o("div", Im, [o("p", Lm, k(j(d)("readByAll")), 1), m.value.length ? (S(), r(j(V), {
|
|
9463
9495
|
key: 0,
|
|
9464
9496
|
text: String(m.value.length),
|
|
9465
9497
|
context: "success",
|
|
9466
9498
|
rounded: ""
|
|
9467
|
-
}, null, 8, ["text"])) : i("", !0)]), o("p",
|
|
9468
|
-
])]), e.loading ? (S(), a("div",
|
|
9499
|
+
}, null, 8, ["text"])) : i("", !0)]), o("p", Rm, k(_(e.message.receipts.readAt, m.value.length)), 1)])
|
|
9500
|
+
])]), e.loading ? (S(), a("div", zm, [l(j(se), {
|
|
9469
9501
|
style: {
|
|
9470
9502
|
width: "2.5rem",
|
|
9471
9503
|
height: "2.5rem"
|
|
9472
9504
|
},
|
|
9473
9505
|
"stroke-width": "5"
|
|
9474
|
-
})])) : e.error ? (S(), a("div",
|
|
9506
|
+
})])) : e.error ? (S(), a("div", Bm, k(e.error), 1)) : (S(), a("div", Vm, [l(Cm, {
|
|
9475
9507
|
title: j(d)("readBy"),
|
|
9476
9508
|
receipts: m.value,
|
|
9477
9509
|
"empty-label": j(d)("nobodyHasReadThisMessageYet"),
|
|
@@ -9480,7 +9512,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9480
9512
|
"title",
|
|
9481
9513
|
"receipts",
|
|
9482
9514
|
"empty-label"
|
|
9483
|
-
]), l(
|
|
9515
|
+
]), l(Cm, {
|
|
9484
9516
|
title: j(d)("deliveredNotYetRead"),
|
|
9485
9517
|
receipts: p.value,
|
|
9486
9518
|
"empty-label": j(d)("noRecipientsDeliveredStageYet"),
|
|
@@ -9498,34 +9530,34 @@ var df = { class: "w-full" }, ff = {
|
|
|
9498
9530
|
"close-label"
|
|
9499
9531
|
]));
|
|
9500
9532
|
}
|
|
9501
|
-
}), [["__scopeId", "data-v-30ce65f1"]]),
|
|
9533
|
+
}), [["__scopeId", "data-v-30ce65f1"]]), Um = { class: "min-h-0 flex-1 overflow-y-auto" }, Wm = {
|
|
9502
9534
|
key: 0,
|
|
9503
9535
|
class: "flex h-full min-h-64 items-center justify-center"
|
|
9504
|
-
},
|
|
9536
|
+
}, Gm = {
|
|
9505
9537
|
key: 1,
|
|
9506
9538
|
class: "bg-elevation-surface-sunken-default body-md flex h-full min-h-64 items-center justify-center rounded-xl px-6 text-center"
|
|
9507
|
-
},
|
|
9539
|
+
}, Km = {
|
|
9508
9540
|
key: 2,
|
|
9509
9541
|
class: "space-y-3"
|
|
9510
|
-
},
|
|
9542
|
+
}, qm = { class: "flex flex-wrap items-start justify-between gap-3" }, Jm = { class: "w-full space-y-2" }, Ym = { class: "center between gap-2" }, Xm = { class: "" }, Zm = { class: "space-y-1" }, Qm = { class: "heading-sm text-default" }, $m = {
|
|
9511
9543
|
key: 0,
|
|
9512
9544
|
class: "body-md text-default"
|
|
9513
|
-
},
|
|
9545
|
+
}, eh = {
|
|
9514
9546
|
key: 1,
|
|
9515
9547
|
class: "body-md text-default wrap-break-word whitespace-pre-wrap"
|
|
9516
|
-
},
|
|
9548
|
+
}, th = {
|
|
9517
9549
|
key: 0,
|
|
9518
9550
|
class: "max-w-sm"
|
|
9519
|
-
},
|
|
9551
|
+
}, nh = { class: "flex flex-wrap items-center gap-1" }, rh = {
|
|
9520
9552
|
key: 0,
|
|
9521
9553
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3 sm:flex-row sm:items-center"
|
|
9522
|
-
},
|
|
9554
|
+
}, ih = { class: "grid w-full grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem]" }, ah = { class: "flex items-center gap-2" }, oh = {
|
|
9523
9555
|
key: 1,
|
|
9524
9556
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3"
|
|
9525
|
-
},
|
|
9557
|
+
}, sh = {
|
|
9526
9558
|
key: 0,
|
|
9527
9559
|
class: "relative max-w-sm"
|
|
9528
|
-
},
|
|
9560
|
+
}, ch = { class: "absolute top-2 right-2" }, lh = ["placeholder"], uh = { class: "flex items-center justify-end gap-2" }, dh = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9529
9561
|
__name: "ScheduledMessagesDialog",
|
|
9530
9562
|
props: {
|
|
9531
9563
|
open: { type: Boolean },
|
|
@@ -9614,17 +9646,17 @@ var df = { class: "w-full" }, ff = {
|
|
|
9614
9646
|
"close-label": j(v)("close"),
|
|
9615
9647
|
onClose: s[3] ||= (e) => u("close")
|
|
9616
9648
|
}, {
|
|
9617
|
-
default: I(() => [o("div",
|
|
9649
|
+
default: I(() => [o("div", Um, [t.loading ? (S(), a("div", Wm, [l(j(se), {
|
|
9618
9650
|
style: {
|
|
9619
9651
|
width: "2.75rem",
|
|
9620
9652
|
height: "2.75rem"
|
|
9621
9653
|
},
|
|
9622
9654
|
"stroke-width": "6"
|
|
9623
|
-
})])) : y.value.length === 0 ? (S(), a("div",
|
|
9655
|
+
})])) : y.value.length === 0 ? (S(), a("div", Gm, k(j(v)("noScheduledMessagesForConversation")), 1)) : (S(), a("div", Km, [(S(!0), a(e, null, T(y.value, (e) => (S(), a("article", {
|
|
9624
9656
|
key: e.id,
|
|
9625
9657
|
class: "border-default rounded-lg border px-4 py-3"
|
|
9626
|
-
}, [o("div",
|
|
9627
|
-
o("div",
|
|
9658
|
+
}, [o("div", qm, [o("div", Jm, [
|
|
9659
|
+
o("div", Ym, [o("div", Xm, [e.kind === "poll" ? (S(), r(j(V), {
|
|
9628
9660
|
key: 0,
|
|
9629
9661
|
text: j(v)("poll"),
|
|
9630
9662
|
context: "info",
|
|
@@ -9645,9 +9677,9 @@ var df = { class: "w-full" }, ff = {
|
|
|
9645
9677
|
size: "small",
|
|
9646
9678
|
onClick: (t) => B(e)
|
|
9647
9679
|
}, null, 8, ["icon", "onClick"])]),
|
|
9648
|
-
o("div",
|
|
9649
|
-
L(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div",
|
|
9650
|
-
]), o("div",
|
|
9680
|
+
o("div", Zm, [o("p", Qm, k(x(e.scheduled?.scheduleDate)), 1), e.kind === "poll" && e.poll ? (S(), a("p", $m, k(e.poll.question), 1)) : (S(), a("p", eh, k(j(Ws)(e, j(v)("attachment"))), 1))]),
|
|
9681
|
+
L(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div", th, [l(lp, { message: N(e) }, null, 8, ["message"])])) : i("", !0)
|
|
9682
|
+
]), o("div", nh, [e.kind === "poll" ? i("", !0) : (S(), r(j(z), {
|
|
9651
9683
|
key: 0,
|
|
9652
9684
|
label: j(v)("edit"),
|
|
9653
9685
|
icon: j(ye),
|
|
@@ -9669,7 +9701,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9669
9701
|
"label",
|
|
9670
9702
|
"icon",
|
|
9671
9703
|
"onClick"
|
|
9672
|
-
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div",
|
|
9704
|
+
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div", rh, [o("div", ih, [te(o("input", {
|
|
9673
9705
|
"onUpdate:modelValue": s[0] ||= (e) => m.value = e,
|
|
9674
9706
|
type: "date",
|
|
9675
9707
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
@@ -9681,7 +9713,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9681
9713
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
9682
9714
|
"aria-label": "Time (24-hour)",
|
|
9683
9715
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
9684
|
-
}, null, 512), [[ee, h.value]])]), o("div",
|
|
9716
|
+
}, null, 512), [[ee, h.value]])]), o("div", ah, [l(j(z), {
|
|
9685
9717
|
label: j(v)("save"),
|
|
9686
9718
|
size: "small",
|
|
9687
9719
|
disabled: !m.value || !b.value,
|
|
@@ -9695,8 +9727,8 @@ var df = { class: "w-full" }, ff = {
|
|
|
9695
9727
|
size: "small",
|
|
9696
9728
|
text: "",
|
|
9697
9729
|
onClick: M
|
|
9698
|
-
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div",
|
|
9699
|
-
L(e) ? (S(), a("div",
|
|
9730
|
+
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div", oh, [
|
|
9731
|
+
L(e) ? (S(), a("div", sh, [l(lp, { message: N(e) }, null, 8, ["message"]), o("div", ch, [l(j(z), {
|
|
9700
9732
|
icon: j(fe),
|
|
9701
9733
|
"aria-label": j(v)("remove"),
|
|
9702
9734
|
text: "",
|
|
@@ -9710,8 +9742,8 @@ var df = { class: "w-full" }, ff = {
|
|
|
9710
9742
|
rows: "3",
|
|
9711
9743
|
class: "surface-input body-md w-full rounded-xl px-3 py-2 ring-0 outline-none",
|
|
9712
9744
|
placeholder: j(v)("writeMessage")
|
|
9713
|
-
}, null, 8,
|
|
9714
|
-
o("div",
|
|
9745
|
+
}, null, 8, lh), [[ee, g.value]]),
|
|
9746
|
+
o("div", uh, [l(j(z), {
|
|
9715
9747
|
label: j(v)("cancel"),
|
|
9716
9748
|
size: "small",
|
|
9717
9749
|
text: "",
|
|
@@ -9735,7 +9767,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
9735
9767
|
"close-label"
|
|
9736
9768
|
]));
|
|
9737
9769
|
}
|
|
9738
|
-
}), [["__scopeId", "data-v-0bb2dc95"]]),
|
|
9770
|
+
}), [["__scopeId", "data-v-0bb2dc95"]]), fh = { class: "chat-status-overlay" }, ph = { class: "chat-status-overlay__card" }, mh = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9739
9771
|
__name: "ChatStatusOverlay",
|
|
9740
9772
|
props: {
|
|
9741
9773
|
visible: { type: Boolean },
|
|
@@ -9768,9 +9800,9 @@ var df = { class: "w-full" }, ff = {
|
|
|
9768
9800
|
message: t.messages.connecting,
|
|
9769
9801
|
slotName: "connecting"
|
|
9770
9802
|
} : null);
|
|
9771
|
-
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div",
|
|
9803
|
+
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div", fh, [o("div", ph, [E(e.$slots, `${r.value.slotName}-content`, {}, () => [o("span", null, k(r.value.message), 1)], !0)])])], !0) : i("", !0);
|
|
9772
9804
|
}
|
|
9773
|
-
}), [["__scopeId", "data-v-7749aec9"]]),
|
|
9805
|
+
}), [["__scopeId", "data-v-7749aec9"]]), hh = /* @__PURE__ */ u({
|
|
9774
9806
|
__name: "BccChat",
|
|
9775
9807
|
props: {
|
|
9776
9808
|
client: { default: null },
|
|
@@ -10001,7 +10033,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
10001
10033
|
_: 1
|
|
10002
10034
|
})]) : i("", !0),
|
|
10003
10035
|
T.value ? (S(), a(e, { key: 1 }, [
|
|
10004
|
-
l(
|
|
10036
|
+
l(dm, {
|
|
10005
10037
|
target: "main",
|
|
10006
10038
|
class: g(["h-full", t.containerClass]),
|
|
10007
10039
|
"hide-group-actions": t.hideGroupActions,
|
|
@@ -10035,7 +10067,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
10035
10067
|
"close-aria-label": j(m)("closeThread"),
|
|
10036
10068
|
onClose: r[0] ||= (e) => j(re).emit("ui:closeThread")
|
|
10037
10069
|
}, {
|
|
10038
|
-
default: I(() => [l(
|
|
10070
|
+
default: I(() => [l(dm, {
|
|
10039
10071
|
target: "thread",
|
|
10040
10072
|
class: "min-h-0 flex-1",
|
|
10041
10073
|
"action-message-class": t.actionMessageClass,
|
|
@@ -10056,7 +10088,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
10056
10088
|
"close-label",
|
|
10057
10089
|
"close-aria-label"
|
|
10058
10090
|
]),
|
|
10059
|
-
l(
|
|
10091
|
+
l(dh, {
|
|
10060
10092
|
open: j(R).showScheduledMessages.value,
|
|
10061
10093
|
loading: j(R).loadingScheduledMessages.value,
|
|
10062
10094
|
messages: j(R).scheduledMessages.value,
|
|
@@ -10071,7 +10103,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
10071
10103
|
"messages",
|
|
10072
10104
|
"conversation-title"
|
|
10073
10105
|
]),
|
|
10074
|
-
l(
|
|
10106
|
+
l(Hm, {
|
|
10075
10107
|
open: !!j(R).infoMessage.value,
|
|
10076
10108
|
message: j(R).infoMessage.value,
|
|
10077
10109
|
receipts: j(R).infoMessageReceipts.value,
|
|
@@ -10086,7 +10118,7 @@ var df = { class: "w-full" }, ff = {
|
|
|
10086
10118
|
"error"
|
|
10087
10119
|
])
|
|
10088
10120
|
], 64)) : i("", !0),
|
|
10089
|
-
l(
|
|
10121
|
+
l(mh, {
|
|
10090
10122
|
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),
|
|
10091
10123
|
"offline-mode": !!(T.value?.offlineMode.value && !O.value),
|
|
10092
10124
|
connected: !!(T.value?.connected.value || O.value),
|
|
@@ -10126,6 +10158,6 @@ var df = { class: "w-full" }, ff = {
|
|
|
10126
10158
|
}
|
|
10127
10159
|
});
|
|
10128
10160
|
//#endregion
|
|
10129
|
-
export {
|
|
10161
|
+
export { hh as BccChat, hh as BccChatMessageList, Ol as LogSeverity, gu as chat, gu as default, cc as createChatClient };
|
|
10130
10162
|
|
|
10131
10163
|
//# sourceMappingURL=vue-bcc-chat-ui.js.map
|