@bcc-code/vue-bcc-chat-ui 7.1.41 → 7.1.43
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 +353 -338
- 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", mh), e.component("BccChatMessageList", mh), e.provide("theme", { theme: El });
|
|
6147
6147
|
let r = Vl(t.environment);
|
|
6148
6148
|
zl(Ol.INFO, "Initializing chat", {
|
|
6149
6149
|
environment: t.environment,
|
|
@@ -7228,7 +7228,7 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7228
7228
|
let n = e.__vccOpts || e;
|
|
7229
7229
|
for (let [e, r] of t) n[e] = r;
|
|
7230
7230
|
return n;
|
|
7231
|
-
}, hd = /* @__PURE__ */ $(md, [["__scopeId", "data-v-5e8b1d79"]]), gd = { class: "
|
|
7231
|
+
}, hd = /* @__PURE__ */ $(md, [["__scopeId", "data-v-5e8b1d79"]]), gd = { class: "border-default flex items-start justify-between gap-2 border-t-1 px-3 py-2" }, _d = { class: "min-w-0" }, vd = { class: "body-md text-default mt-0.5 overflow-hidden font-medium text-ellipsis whitespace-nowrap" }, yd = { class: "body-md text-subtle overflow-hidden text-ellipsis whitespace-nowrap" }, bd = /* @__PURE__ */ u({
|
|
7232
7232
|
__name: "ComposerContextBanner",
|
|
7233
7233
|
props: {
|
|
7234
7234
|
message: {},
|
|
@@ -7238,8 +7238,8 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7238
7238
|
emits: ["cancel"],
|
|
7239
7239
|
setup(e, { emit: t }) {
|
|
7240
7240
|
let r = e, i = t, { t: s } = K(), c = ju(), u = n(() => Ws(r.message, s("message"), c.mentionNameByUid.value));
|
|
7241
|
-
return (t, n) => (S(), a("div",
|
|
7242
|
-
o("p",
|
|
7241
|
+
return (t, n) => (S(), a("div", gd, [o("div", _d, [
|
|
7242
|
+
o("p", { class: g(["body-sm font-semibold uppercase", e.variant === "editing" ? "text-information" : "text-success"]) }, k(e.variant === "editing" ? j(s)("editingInContext", { context: e.contextLabel }) : j(s)("replyingInContext", { context: e.contextLabel })), 3),
|
|
7243
7243
|
o("p", vd, k(e.message.senderName), 1),
|
|
7244
7244
|
o("p", yd, k(u.value), 1)
|
|
7245
7245
|
]), l(j(z), {
|
|
@@ -7248,9 +7248,9 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7248
7248
|
rounded: "",
|
|
7249
7249
|
severity: "secondary",
|
|
7250
7250
|
onClick: n[0] ||= (e) => i("cancel")
|
|
7251
|
-
}, null, 8, ["icon"])]
|
|
7251
|
+
}, null, 8, ["icon"])]));
|
|
7252
7252
|
}
|
|
7253
|
-
}),
|
|
7253
|
+
}), xd = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
7254
7254
|
__name: "ComposerFormatMenu",
|
|
7255
7255
|
props: {
|
|
7256
7256
|
visible: { type: Boolean },
|
|
@@ -7504,16 +7504,16 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7504
7504
|
size: "sm"
|
|
7505
7505
|
}, null, 8, ["src", "name"])) : (S(), a("span", Fd, k(e.label.charAt(0)), 1)), o("span", Id, [o("span", Ld, k(e.label), 1), e.subtitle ? (S(), a("span", Rd, k(e.subtitle), 1)) : i("", !0)])], 42, Pd))), 128))], 38)) : i("", !0);
|
|
7506
7506
|
}
|
|
7507
|
-
}), [["__scopeId", "data-v-3f395457"]]), Bd = ["accept", "disabled"], Vd = {
|
|
7508
|
-
key:
|
|
7507
|
+
}), [["__scopeId", "data-v-3f395457"]]), Bd = ["accept", "disabled"], Vd = { class: "px-1 pb-1.5" }, Hd = {
|
|
7508
|
+
key: 0,
|
|
7509
7509
|
class: "composer-file-preview"
|
|
7510
|
-
},
|
|
7510
|
+
}, Ud = { class: "min-w-0" }, Wd = { class: "heading-sm text-default truncate" }, Gd = { class: "body-sm text-subtle" }, Kd = ["data-placeholder"], qd = {
|
|
7511
7511
|
key: 0,
|
|
7512
7512
|
class: "body-sm text-subtle flex items-center gap-2 px-0.5"
|
|
7513
|
-
},
|
|
7513
|
+
}, Jd = {
|
|
7514
7514
|
key: 2,
|
|
7515
7515
|
class: "ml-auto"
|
|
7516
|
-
},
|
|
7516
|
+
}, Yd = 450, Xd = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
7517
7517
|
__name: "MessageComposer",
|
|
7518
7518
|
props: {
|
|
7519
7519
|
modelValue: {},
|
|
@@ -7632,7 +7632,7 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7632
7632
|
function Ae(e) {
|
|
7633
7633
|
u.disabled || !he.value || e instanceof MouseEvent && e.button !== 0 || (x.value = !1, ke(), T = setTimeout(() => {
|
|
7634
7634
|
T = null, x.value = !0, b.value = !0;
|
|
7635
|
-
},
|
|
7635
|
+
}, Yd));
|
|
7636
7636
|
}
|
|
7637
7637
|
function je() {
|
|
7638
7638
|
ke();
|
|
@@ -7646,7 +7646,7 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7646
7646
|
Te();
|
|
7647
7647
|
}
|
|
7648
7648
|
}
|
|
7649
|
-
return (t, n) => (S(), a("div", { class: g([u.compact ? "space-y-1
|
|
7649
|
+
return (t, n) => (S(), a("div", { class: g([u.compact ? "space-y-1" : "space-y-1.5", pe.value]) }, [
|
|
7650
7650
|
o("input", {
|
|
7651
7651
|
ref_key: "fileInputRef",
|
|
7652
7652
|
ref: f,
|
|
@@ -7672,158 +7672,160 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7672
7672
|
"data-testid": "composer-reply-context",
|
|
7673
7673
|
onCancel: n[1] ||= (e) => d("cancelReply")
|
|
7674
7674
|
}, null, 8, ["message", "context-label"])) : i("", !0),
|
|
7675
|
-
|
|
7676
|
-
|
|
7677
|
-
|
|
7678
|
-
rounded: "",
|
|
7679
|
-
severity: "secondary",
|
|
7680
|
-
onClick: Ce
|
|
7681
|
-
}, null, 8, ["icon"])])) : i("", !0),
|
|
7682
|
-
o("div", {
|
|
7683
|
-
ref_key: "composerShellRef",
|
|
7684
|
-
ref: E,
|
|
7685
|
-
class: g(["composer-shell", u.compact ? "composer-shell--compact" : "composer-shell--default"])
|
|
7686
|
-
}, [
|
|
7687
|
-
l(hd, {
|
|
7688
|
-
ref_key: "composerActionsRef",
|
|
7689
|
-
ref: m,
|
|
7690
|
-
onPickFile: be,
|
|
7691
|
-
onOpenPoll: n[2] ||= (e) => y.value = !0
|
|
7692
|
-
}, null, 512),
|
|
7693
|
-
l(j(z), {
|
|
7675
|
+
o("div", Vd, [
|
|
7676
|
+
_.value ? (S(), a("div", Hd, [o("div", Ud, [o("p", Wd, k(_.value.name), 1), o("p", Gd, k(_.value.type || ue.value), 1)]), l(j(z), {
|
|
7677
|
+
icon: j(fe),
|
|
7694
7678
|
text: "",
|
|
7695
7679
|
rounded: "",
|
|
7696
7680
|
severity: "secondary",
|
|
7697
|
-
|
|
7698
|
-
|
|
7699
|
-
|
|
7700
|
-
|
|
7701
|
-
|
|
7702
|
-
|
|
7703
|
-
},
|
|
7704
|
-
|
|
7705
|
-
|
|
7706
|
-
|
|
7707
|
-
|
|
7708
|
-
|
|
7709
|
-
|
|
7710
|
-
|
|
7711
|
-
|
|
7712
|
-
ref: D,
|
|
7713
|
-
contenteditable: "true",
|
|
7714
|
-
role: "textbox",
|
|
7715
|
-
"aria-multiline": "true",
|
|
7716
|
-
"data-placeholder": j(C)("writeMessage"),
|
|
7717
|
-
class: g(["composer-editor", e.disabled ? "pointer-events-none opacity-60" : ""]),
|
|
7718
|
-
onFocus: n[3] ||= (...e) => j(ne) && j(ne)(...e),
|
|
7719
|
-
onInput: n[4] ||= (...e) => j(I) && j(I)(...e),
|
|
7720
|
-
onKeyup: n[5] ||= (...e) => j(I) && j(I)(...e),
|
|
7721
|
-
onKeydown: n[6] ||= (...e) => j(te) && j(te)(...e),
|
|
7722
|
-
onPaste: Se,
|
|
7723
|
-
onContextmenu: n[7] ||= (...e) => j(P) && j(P)(...e)
|
|
7724
|
-
}, null, 42, Gd)),
|
|
7725
|
-
_.value || e.editingMessage || e.contextLabel || e.offlineMode ? (S(), a("div", Kd, [
|
|
7726
|
-
e.editingMessage ? (S(), r(j(V), {
|
|
7727
|
-
key: 0,
|
|
7728
|
-
text: j(C)("editing"),
|
|
7729
|
-
context: "info",
|
|
7681
|
+
onClick: Ce
|
|
7682
|
+
}, null, 8, ["icon"])])) : i("", !0),
|
|
7683
|
+
o("div", {
|
|
7684
|
+
ref_key: "composerShellRef",
|
|
7685
|
+
ref: E,
|
|
7686
|
+
class: g(["composer-shell", u.compact ? "composer-shell--compact" : "composer-shell--default"])
|
|
7687
|
+
}, [
|
|
7688
|
+
l(hd, {
|
|
7689
|
+
ref_key: "composerActionsRef",
|
|
7690
|
+
ref: m,
|
|
7691
|
+
onPickFile: be,
|
|
7692
|
+
onOpenPoll: n[2] ||= (e) => y.value = !0
|
|
7693
|
+
}, null, 512),
|
|
7694
|
+
l(j(z), {
|
|
7695
|
+
text: "",
|
|
7730
7696
|
rounded: "",
|
|
7731
|
-
|
|
7732
|
-
class: "composer-
|
|
7733
|
-
|
|
7734
|
-
|
|
7697
|
+
severity: "secondary",
|
|
7698
|
+
class: g(["composer-utility-button shrink-0 self-end", u.compact ? "h-9 w-9" : "h-10 w-10 max-md:h-9 max-md:w-9"]),
|
|
7699
|
+
disabled: e.disabled || !!e.editingMessage,
|
|
7700
|
+
"aria-label": j(C)("addToMessage"),
|
|
7701
|
+
"data-testid": "composer-actions-button",
|
|
7702
|
+
icon: j(U),
|
|
7703
|
+
onClick: we
|
|
7704
|
+
}, null, 8, [
|
|
7705
|
+
"class",
|
|
7706
|
+
"disabled",
|
|
7707
|
+
"aria-label",
|
|
7708
|
+
"icon"
|
|
7709
|
+
]),
|
|
7710
|
+
(S(), a("div", {
|
|
7711
|
+
key: j(M),
|
|
7712
|
+
ref_key: "composerEditorRef",
|
|
7713
|
+
ref: D,
|
|
7714
|
+
contenteditable: "true",
|
|
7715
|
+
role: "textbox",
|
|
7716
|
+
"aria-multiline": "true",
|
|
7717
|
+
"data-placeholder": j(C)("writeMessage"),
|
|
7718
|
+
class: g(["composer-editor", e.disabled ? "pointer-events-none opacity-60" : ""]),
|
|
7719
|
+
onFocus: n[3] ||= (...e) => j(ne) && j(ne)(...e),
|
|
7720
|
+
onInput: n[4] ||= (...e) => j(I) && j(I)(...e),
|
|
7721
|
+
onKeyup: n[5] ||= (...e) => j(I) && j(I)(...e),
|
|
7722
|
+
onKeydown: n[6] ||= (...e) => j(te) && j(te)(...e),
|
|
7723
|
+
onPaste: Se,
|
|
7724
|
+
onContextmenu: n[7] ||= (...e) => j(P) && j(P)(...e)
|
|
7725
|
+
}, null, 42, Kd)),
|
|
7726
|
+
_.value || e.editingMessage || e.contextLabel || e.offlineMode ? (S(), a("div", qd, [
|
|
7727
|
+
e.editingMessage ? (S(), r(j(V), {
|
|
7728
|
+
key: 0,
|
|
7729
|
+
text: j(C)("editing"),
|
|
7730
|
+
context: "info",
|
|
7731
|
+
rounded: "",
|
|
7732
|
+
size: "sm",
|
|
7733
|
+
class: "composer-meta-tag"
|
|
7734
|
+
}, null, 8, ["text"])) : i("", !0),
|
|
7735
|
+
e.contextLabel ? (S(), r(j(V), {
|
|
7736
|
+
key: 1,
|
|
7737
|
+
text: e.contextLabel,
|
|
7738
|
+
context: "contrast",
|
|
7739
|
+
rounded: "",
|
|
7740
|
+
size: "sm",
|
|
7741
|
+
class: "composer-meta-tag"
|
|
7742
|
+
}, null, 8, ["text"])) : i("", !0),
|
|
7743
|
+
e.offlineMode ? (S(), a("p", Jd, k(e.pendingQueueCount ? j(C)("offlineQueued", { count: e.pendingQueueCount }) : j(C)("offline")), 1)) : i("", !0)
|
|
7744
|
+
])) : i("", !0),
|
|
7745
|
+
e.showScheduledButton ? (S(), r(j(z), {
|
|
7735
7746
|
key: 1,
|
|
7736
|
-
text: e.contextLabel,
|
|
7737
|
-
context: "contrast",
|
|
7738
7747
|
rounded: "",
|
|
7739
|
-
|
|
7740
|
-
class: "composer-
|
|
7741
|
-
|
|
7742
|
-
|
|
7743
|
-
|
|
7744
|
-
|
|
7745
|
-
|
|
7746
|
-
|
|
7747
|
-
|
|
7748
|
-
|
|
7749
|
-
|
|
7750
|
-
|
|
7751
|
-
|
|
7752
|
-
|
|
7748
|
+
text: "",
|
|
7749
|
+
class: g(["composer-schedule-button shrink-0 self-end", u.compact ? "h-9 w-9" : "h-10 w-10 max-md:h-9 max-md:w-9"]),
|
|
7750
|
+
disabled: e.disabled,
|
|
7751
|
+
"aria-label": j(C)("scheduledMessages"),
|
|
7752
|
+
icon: j(ve),
|
|
7753
|
+
onClick: Oe
|
|
7754
|
+
}, null, 8, [
|
|
7755
|
+
"class",
|
|
7756
|
+
"disabled",
|
|
7757
|
+
"aria-label",
|
|
7758
|
+
"icon"
|
|
7759
|
+
])) : i("", !0),
|
|
7760
|
+
l(j(z), {
|
|
7761
|
+
rounded: "",
|
|
7762
|
+
severity: "primary",
|
|
7763
|
+
text: "",
|
|
7764
|
+
class: g(["composer-send-button shrink-0 self-end", u.compact ? "h-9 w-9" : "h-10 w-10 max-md:h-9 max-md:w-9"]),
|
|
7765
|
+
disabled: e.disabled || !me.value,
|
|
7766
|
+
"aria-label": e.editingMessage ? j(C)("saveMessage") : _.value ? j(C)("sendAttachment") : j(C)("sendMessage"),
|
|
7767
|
+
icon: e.editingMessage ? j(de) : j(Pe),
|
|
7768
|
+
onMousedown: Ae,
|
|
7769
|
+
onMouseup: je,
|
|
7770
|
+
onMouseleave: je,
|
|
7771
|
+
onTouchstart: Ae,
|
|
7772
|
+
onTouchend: je,
|
|
7773
|
+
onTouchcancel: je,
|
|
7774
|
+
onContextmenu: n[8] ||= L(() => {}, ["prevent"]),
|
|
7775
|
+
onClick: Me
|
|
7776
|
+
}, null, 8, [
|
|
7777
|
+
"class",
|
|
7778
|
+
"disabled",
|
|
7779
|
+
"aria-label",
|
|
7780
|
+
"icon"
|
|
7781
|
+
])
|
|
7782
|
+
], 2),
|
|
7783
|
+
l(xd, {
|
|
7784
|
+
visible: j(re),
|
|
7785
|
+
position: j(N),
|
|
7786
|
+
onFormat: n[9] ||= (e) => j(A)(e)
|
|
7787
|
+
}, null, 8, ["visible", "position"]),
|
|
7788
|
+
l(zd, {
|
|
7789
|
+
ref_key: "triggerMenuRef",
|
|
7790
|
+
ref: O,
|
|
7791
|
+
"highlighted-index": j(oe),
|
|
7792
|
+
"onUpdate:highlightedIndex": n[10] ||= (e) => p(oe) ? oe.value = e : null,
|
|
7793
|
+
visible: j(se),
|
|
7794
|
+
position: j(ae),
|
|
7795
|
+
candidates: j(ie),
|
|
7796
|
+
onSelect: n[11] ||= (e) => j(H)(e)
|
|
7753
7797
|
}, null, 8, [
|
|
7754
|
-
"
|
|
7755
|
-
"
|
|
7756
|
-
"
|
|
7757
|
-
"
|
|
7758
|
-
])
|
|
7759
|
-
l(
|
|
7760
|
-
|
|
7761
|
-
|
|
7762
|
-
|
|
7763
|
-
|
|
7764
|
-
|
|
7765
|
-
|
|
7766
|
-
|
|
7767
|
-
|
|
7768
|
-
|
|
7769
|
-
|
|
7770
|
-
|
|
7771
|
-
|
|
7772
|
-
onTouchcancel: je,
|
|
7773
|
-
onContextmenu: n[8] ||= L(() => {}, ["prevent"]),
|
|
7774
|
-
onClick: Me
|
|
7798
|
+
"highlighted-index",
|
|
7799
|
+
"visible",
|
|
7800
|
+
"position",
|
|
7801
|
+
"candidates"
|
|
7802
|
+
]),
|
|
7803
|
+
l(Dd, {
|
|
7804
|
+
visible: y.value,
|
|
7805
|
+
"onUpdate:visible": n[12] ||= (e) => y.value = e,
|
|
7806
|
+
disabled: e.disabled,
|
|
7807
|
+
onSend: Ee
|
|
7808
|
+
}, null, 8, ["visible", "disabled"]),
|
|
7809
|
+
l(Nd, {
|
|
7810
|
+
visible: b.value,
|
|
7811
|
+
"onUpdate:visible": n[13] ||= (e) => b.value = e,
|
|
7812
|
+
disabled: e.disabled,
|
|
7813
|
+
"can-schedule": he.value,
|
|
7814
|
+
"content-preview": ge.value,
|
|
7815
|
+
onSchedule: De
|
|
7775
7816
|
}, null, 8, [
|
|
7776
|
-
"
|
|
7817
|
+
"visible",
|
|
7777
7818
|
"disabled",
|
|
7778
|
-
"
|
|
7779
|
-
"
|
|
7819
|
+
"can-schedule",
|
|
7820
|
+
"content-preview"
|
|
7780
7821
|
])
|
|
7781
|
-
], 2),
|
|
7782
|
-
l(xd, {
|
|
7783
|
-
visible: j(re),
|
|
7784
|
-
position: j(N),
|
|
7785
|
-
onFormat: n[9] ||= (e) => j(A)(e)
|
|
7786
|
-
}, null, 8, ["visible", "position"]),
|
|
7787
|
-
l(zd, {
|
|
7788
|
-
ref_key: "triggerMenuRef",
|
|
7789
|
-
ref: O,
|
|
7790
|
-
"highlighted-index": j(oe),
|
|
7791
|
-
"onUpdate:highlightedIndex": n[10] ||= (e) => p(oe) ? oe.value = e : null,
|
|
7792
|
-
visible: j(se),
|
|
7793
|
-
position: j(ae),
|
|
7794
|
-
candidates: j(ie),
|
|
7795
|
-
onSelect: n[11] ||= (e) => j(H)(e)
|
|
7796
|
-
}, null, 8, [
|
|
7797
|
-
"highlighted-index",
|
|
7798
|
-
"visible",
|
|
7799
|
-
"position",
|
|
7800
|
-
"candidates"
|
|
7801
|
-
]),
|
|
7802
|
-
l(Dd, {
|
|
7803
|
-
visible: y.value,
|
|
7804
|
-
"onUpdate:visible": n[12] ||= (e) => y.value = e,
|
|
7805
|
-
disabled: e.disabled,
|
|
7806
|
-
onSend: Ee
|
|
7807
|
-
}, null, 8, ["visible", "disabled"]),
|
|
7808
|
-
l(Nd, {
|
|
7809
|
-
visible: b.value,
|
|
7810
|
-
"onUpdate:visible": n[13] ||= (e) => b.value = e,
|
|
7811
|
-
disabled: e.disabled,
|
|
7812
|
-
"can-schedule": he.value,
|
|
7813
|
-
"content-preview": ge.value,
|
|
7814
|
-
onSchedule: De
|
|
7815
|
-
}, null, 8, [
|
|
7816
|
-
"visible",
|
|
7817
|
-
"disabled",
|
|
7818
|
-
"can-schedule",
|
|
7819
|
-
"content-preview"
|
|
7820
7822
|
])
|
|
7821
7823
|
], 2));
|
|
7822
7824
|
}
|
|
7823
|
-
}), [["__scopeId", "data-v-
|
|
7825
|
+
}), [["__scopeId", "data-v-9df579a2"]]), Zd = {
|
|
7824
7826
|
key: 1,
|
|
7825
7827
|
class: "composer-readonly-notice"
|
|
7826
|
-
},
|
|
7828
|
+
}, Qd = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
7827
7829
|
__name: "ConversationComposer",
|
|
7828
7830
|
props: { target: {} },
|
|
7829
7831
|
setup(e, { expose: t }) {
|
|
@@ -7873,7 +7875,7 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7873
7875
|
async function N() {
|
|
7874
7876
|
await M.value?.focusEditor();
|
|
7875
7877
|
}
|
|
7876
|
-
return t({ focusEditor: N }), (e, t) => y.value ? (S(), r(
|
|
7878
|
+
return t({ focusEditor: N }), (e, t) => y.value ? (S(), r(Xd, {
|
|
7877
7879
|
key: 0,
|
|
7878
7880
|
ref_key: "composerRef",
|
|
7879
7881
|
ref: M,
|
|
@@ -7910,10 +7912,10 @@ var dd = ["data-testid", "onClick"], fd = { class: "composer-actions-menu__icon"
|
|
|
7910
7912
|
"mention-candidates",
|
|
7911
7913
|
"mention-name-by-uid",
|
|
7912
7914
|
"mentions-enabled"
|
|
7913
|
-
])) : b.value ? (S(), a("div",
|
|
7915
|
+
])) : b.value ? (S(), a("div", Zd, k(p.value ? j(s)("repliesDisabledInChannels") : j(s)("readOnlyChannel")), 1)) : i("", !0);
|
|
7914
7916
|
}
|
|
7915
|
-
}), [["__scopeId", "data-v-84a9e2b1"]]),
|
|
7916
|
-
function
|
|
7917
|
+
}), [["__scopeId", "data-v-84a9e2b1"]]), $d = 1800;
|
|
7918
|
+
function ef(e) {
|
|
7917
7919
|
let t = e.actionMenuRef, n = w(null), r = w(null), i = typeof window < "u" && window.matchMedia("(hover: hover) and (pointer: fine)").matches, a = null;
|
|
7918
7920
|
function o(e) {
|
|
7919
7921
|
return e.kind === "text" && Hs(e.text);
|
|
@@ -8014,7 +8016,7 @@ function $d(e) {
|
|
|
8014
8016
|
}
|
|
8015
8017
|
r.value = e.id, a && clearTimeout(a), a = setTimeout(() => {
|
|
8016
8018
|
r.value = null;
|
|
8017
|
-
},
|
|
8019
|
+
}, $d), v();
|
|
8018
8020
|
}
|
|
8019
8021
|
function C(t) {
|
|
8020
8022
|
e.canReply() && (e.emit.reply(t), v());
|
|
@@ -8103,8 +8105,8 @@ function $d(e) {
|
|
|
8103
8105
|
}
|
|
8104
8106
|
//#endregion
|
|
8105
8107
|
//#region src/composables/useMessageListScroll.ts
|
|
8106
|
-
var
|
|
8107
|
-
function
|
|
8108
|
+
var tf = 1, nf = 2, rf = 80, af = 1800, of = 4;
|
|
8109
|
+
function sf(e) {
|
|
8108
8110
|
let t = e.threadRef, n = !0, r = 0, i = null, a = null, o = null, s = null;
|
|
8109
8111
|
function c() {
|
|
8110
8112
|
o != null && (cancelAnimationFrame(o), o = null);
|
|
@@ -8146,7 +8148,7 @@ function of(e) {
|
|
|
8146
8148
|
resizeObserver: o,
|
|
8147
8149
|
timeoutId: setTimeout(() => {
|
|
8148
8150
|
f();
|
|
8149
|
-
},
|
|
8151
|
+
}, af)
|
|
8150
8152
|
}, a(), o.observe(e);
|
|
8151
8153
|
}
|
|
8152
8154
|
function m() {
|
|
@@ -8157,9 +8159,9 @@ function of(e) {
|
|
|
8157
8159
|
let a = t.value;
|
|
8158
8160
|
if (!a) return;
|
|
8159
8161
|
let o = a.scrollTop;
|
|
8160
|
-
i?.el === a && Math.abs(o - i.expectedScrollTop) >
|
|
8162
|
+
i?.el === a && Math.abs(o - i.expectedScrollTop) > of && f();
|
|
8161
8163
|
let s = o < r, c = Math.max(0, a.scrollHeight - o - a.clientHeight);
|
|
8162
|
-
s && c >
|
|
8164
|
+
s && c > tf ? n = !1 : c <= nf && (n = !0), r = o, a.scrollTop <= rf && !e.isLoading() && !e.isLoadingOlder() && e.canLoadOlder() && e.onLoadOlder();
|
|
8163
8165
|
}
|
|
8164
8166
|
return F(() => {
|
|
8165
8167
|
let t = e.getMessages();
|
|
@@ -8187,14 +8189,14 @@ function of(e) {
|
|
|
8187
8189
|
}
|
|
8188
8190
|
//#endregion
|
|
8189
8191
|
//#region src/composables/useImageZoom.ts
|
|
8190
|
-
var
|
|
8191
|
-
function
|
|
8192
|
+
var cf = 1, lf = 4;
|
|
8193
|
+
function uf(e) {
|
|
8192
8194
|
let t = w(1), n = w(0), r = w(0), i = w(!1), a = /* @__PURE__ */ new Map(), o = null, s = 0, c = 0, l = 0, u = 0, d = 0, f = 1, p = 0, m = 0;
|
|
8193
8195
|
function h(e, t, n) {
|
|
8194
8196
|
return Math.min(Math.max(e, t), n);
|
|
8195
8197
|
}
|
|
8196
8198
|
function g(e) {
|
|
8197
|
-
return h(e,
|
|
8199
|
+
return h(e, cf, lf);
|
|
8198
8200
|
}
|
|
8199
8201
|
function _(n, r, i = t.value) {
|
|
8200
8202
|
let a = e.viewportRef.value?.clientWidth ?? 0, o = e.viewportRef.value?.clientHeight ?? 0, s = e.imageRef.value?.clientWidth ?? a, c = e.imageRef.value?.clientHeight ?? o, l = s * i, u = c * i, d = Math.max(0, (l - a) / 2), f = Math.max(0, (u - o) / 2);
|
|
@@ -8284,10 +8286,10 @@ function lf(e) {
|
|
|
8284
8286
|
}
|
|
8285
8287
|
//#endregion
|
|
8286
8288
|
//#region src/components/overlays/FullscreenDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8287
|
-
var
|
|
8289
|
+
var df = { class: "w-full" }, ff = {
|
|
8288
8290
|
key: 0,
|
|
8289
8291
|
class: "fullscreen-dialog__footer"
|
|
8290
|
-
},
|
|
8292
|
+
}, pf = /* @__PURE__ */ u({
|
|
8291
8293
|
__name: "FullscreenDialog",
|
|
8292
8294
|
props: {
|
|
8293
8295
|
open: { type: Boolean },
|
|
@@ -8312,34 +8314,34 @@ var uf = { class: "w-full" }, df = {
|
|
|
8312
8314
|
closable: !0,
|
|
8313
8315
|
"onUpdate:visible": s
|
|
8314
8316
|
}, {
|
|
8315
|
-
default: I(() => [o("div",
|
|
8317
|
+
default: I(() => [o("div", df, [E(t.$slots, "default")]), t.$slots.footer ? (S(), a("div", ff, [E(t.$slots, "footer")])) : i("", !0)]),
|
|
8316
8318
|
_: 3
|
|
8317
8319
|
}, 8, ["visible", "header"]));
|
|
8318
8320
|
}
|
|
8319
|
-
}),
|
|
8321
|
+
}), mf = ["href"], hf = { class: "media-viewer-shell flex min-h-0 flex-1 items-center justify-center overflow-hidden" }, gf = ["src", "alt"], _f = {
|
|
8320
8322
|
key: 1,
|
|
8321
8323
|
class: "media-viewer-stage media-viewer-stage-video flex w-full items-center justify-center"
|
|
8322
|
-
},
|
|
8324
|
+
}, vf = {
|
|
8323
8325
|
class: "max-h-full w-full bg-black",
|
|
8324
8326
|
controls: "",
|
|
8325
8327
|
playsinline: "",
|
|
8326
8328
|
autoplay: ""
|
|
8327
|
-
},
|
|
8329
|
+
}, yf = ["src", "type"], bf = {
|
|
8328
8330
|
key: 2,
|
|
8329
8331
|
class: "media-viewer-stage media-viewer-audio-stage flex w-full items-center justify-center px-5 py-6"
|
|
8330
|
-
},
|
|
8332
|
+
}, xf = {
|
|
8331
8333
|
class: "w-full",
|
|
8332
8334
|
controls: "",
|
|
8333
8335
|
autoplay: ""
|
|
8334
|
-
},
|
|
8336
|
+
}, Sf = ["src", "type"], Cf = {
|
|
8335
8337
|
key: 0,
|
|
8336
8338
|
class: "media-viewer-footer flex min-w-0 items-center justify-between gap-3 px-4 py-3 max-md:px-3.5 max-md:py-3"
|
|
8337
|
-
},
|
|
8339
|
+
}, wf = { class: "min-w-0 flex-1" }, Tf = { class: "heading-sm text-default truncate" }, Ef = { class: "body-sm text-subtle" }, Df = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8338
8340
|
__name: "MediaViewerDialog",
|
|
8339
8341
|
props: { attachment: {} },
|
|
8340
8342
|
emits: ["close"],
|
|
8341
8343
|
setup(t, { emit: s }) {
|
|
8342
|
-
let c = t, l = s, u = w(null), d = w(null), f = n(() => !!c.attachment?.url), p = n(() => c.attachment?.kind === "image"), m = n(() => c.attachment?.kind === "video"), h = n(() => c.attachment?.kind === "audio"), { t: _ } = K(), { scale: y, translateX: b, translateY: x, isDragging: C, resetTransform: T, handlePointerDown: E, handlePointerMove: O, handlePointerUp: A, handlePointerCancel: M, handleWheel: N, handleDoubleClick: ee } =
|
|
8344
|
+
let c = t, l = s, u = w(null), d = w(null), f = n(() => !!c.attachment?.url), p = n(() => c.attachment?.kind === "image"), m = n(() => c.attachment?.kind === "video"), h = n(() => c.attachment?.kind === "audio"), { t: _ } = K(), { scale: y, translateX: b, translateY: x, isDragging: C, resetTransform: T, handlePointerDown: E, handlePointerMove: O, handlePointerUp: A, handlePointerCancel: M, handleWheel: N, handleDoubleClick: ee } = uf({
|
|
8343
8345
|
viewportRef: u,
|
|
8344
8346
|
imageRef: d,
|
|
8345
8347
|
isImage: () => p.value
|
|
@@ -8350,7 +8352,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
8350
8352
|
function P() {
|
|
8351
8353
|
l("close");
|
|
8352
8354
|
}
|
|
8353
|
-
return (n, s) => (S(), r(
|
|
8355
|
+
return (n, s) => (S(), r(pf, {
|
|
8354
8356
|
open: f.value,
|
|
8355
8357
|
title: t.attachment?.name || j(_)("attachment"),
|
|
8356
8358
|
subtitle: t.attachment?.kind || "",
|
|
@@ -8367,9 +8369,9 @@ var uf = { class: "w-full" }, df = {
|
|
|
8367
8369
|
}, [(S(), r(D(j(ke)), {
|
|
8368
8370
|
class: "size-4",
|
|
8369
8371
|
"aria-hidden": "true"
|
|
8370
|
-
})), o("span", null, k(j(_)("openInNewTab")), 1)], 8,
|
|
8371
|
-
footer: I(() => [t.attachment ? (S(), a("div",
|
|
8372
|
-
default: I(() => [o("div",
|
|
8372
|
+
})), o("span", null, k(j(_)("openInNewTab")), 1)], 8, mf)) : i("", !0)]),
|
|
8373
|
+
footer: I(() => [t.attachment ? (S(), a("div", Cf, [o("div", wf, [o("p", Tf, k(t.attachment.name), 1), o("p", Ef, k(t.attachment.kind), 1)])])) : i("", !0)]),
|
|
8374
|
+
default: I(() => [o("div", hf, [t.attachment?.url ? (S(), a(e, { key: 0 }, [p.value ? (S(), a("div", {
|
|
8373
8375
|
key: 0,
|
|
8374
8376
|
ref_key: "viewportRef",
|
|
8375
8377
|
ref: u,
|
|
@@ -8392,13 +8394,13 @@ var uf = { class: "w-full" }, df = {
|
|
|
8392
8394
|
transform: `translate3d(${j(b)}px, ${j(x)}px, 0) scale(${j(y)})`,
|
|
8393
8395
|
transformOrigin: "center center"
|
|
8394
8396
|
})
|
|
8395
|
-
}, null, 14,
|
|
8397
|
+
}, null, 14, gf)], 544)) : m.value ? (S(), a("div", _f, [o("video", vf, [o("source", {
|
|
8396
8398
|
src: t.attachment.url,
|
|
8397
8399
|
type: t.attachment.mimeType || void 0
|
|
8398
|
-
}, null, 8,
|
|
8400
|
+
}, null, 8, yf)])])) : h.value ? (S(), a("div", bf, [o("audio", xf, [o("source", {
|
|
8399
8401
|
src: t.attachment.url,
|
|
8400
8402
|
type: t.attachment.mimeType || void 0
|
|
8401
|
-
}, null, 8,
|
|
8403
|
+
}, null, 8, Sf)])])) : i("", !0)], 64)) : i("", !0)])]),
|
|
8402
8404
|
_: 1
|
|
8403
8405
|
}, 8, [
|
|
8404
8406
|
"open",
|
|
@@ -8408,7 +8410,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
8408
8410
|
"close-aria-label"
|
|
8409
8411
|
]));
|
|
8410
8412
|
}
|
|
8411
|
-
}), [["__scopeId", "data-v-0e82cfd0"]]),
|
|
8413
|
+
}), [["__scopeId", "data-v-0e82cfd0"]]), Of = { class: "date-separator" }, kf = { class: "date-separator__label" }, Af = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8412
8414
|
__name: "MessageDateSeparator",
|
|
8413
8415
|
props: { date: {} },
|
|
8414
8416
|
setup(e) {
|
|
@@ -8422,24 +8424,24 @@ var uf = { class: "w-full" }, df = {
|
|
|
8422
8424
|
year: "numeric"
|
|
8423
8425
|
}).format(n);
|
|
8424
8426
|
});
|
|
8425
|
-
return (e, t) => (S(), a("div",
|
|
8427
|
+
return (e, t) => (S(), a("div", Of, [o("span", kf, k(s.value), 1)]));
|
|
8426
8428
|
}
|
|
8427
|
-
}), [["__scopeId", "data-v-49e72d67"]]),
|
|
8429
|
+
}), [["__scopeId", "data-v-49e72d67"]]), jf = {
|
|
8428
8430
|
"data-testid": "action-message",
|
|
8429
8431
|
class: "message-action-row border-default bg-elevation-surface-default body-sm text-subtle max-w-4/5 rounded-full border px-3 py-1 text-center"
|
|
8430
|
-
},
|
|
8432
|
+
}, Mf = { class: "message-action-row__text" }, Nf = /* @__PURE__ */ u({
|
|
8431
8433
|
__name: "ActionMessageRow",
|
|
8432
8434
|
props: { text: {} },
|
|
8433
8435
|
setup(e) {
|
|
8434
|
-
return (t, n) => (S(), a("div",
|
|
8436
|
+
return (t, n) => (S(), a("div", jf, [o("span", Mf, k(e.text), 1)]));
|
|
8435
8437
|
}
|
|
8436
|
-
}),
|
|
8438
|
+
}), Pf = ["href"], Ff = {
|
|
8437
8439
|
key: 0,
|
|
8438
8440
|
class: "bg-elevation-surface-hovered aspect-[1.9/1] w-full overflow-hidden"
|
|
8439
|
-
},
|
|
8441
|
+
}, If = ["src", "alt"], Lf = { class: "space-y-1.5 px-3 py-3" }, Rf = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, zf = { class: "heading-sm text-default line-clamp-2" }, Bf = { class: "body-md text-subtle line-clamp-2" }, Vf = {
|
|
8440
8442
|
key: 0,
|
|
8441
8443
|
class: "body-sm text-subtlest"
|
|
8442
|
-
},
|
|
8444
|
+
}, Hf = /* @__PURE__ */ u({
|
|
8443
8445
|
__name: "LinkPreviewCard",
|
|
8444
8446
|
props: {
|
|
8445
8447
|
url: {},
|
|
@@ -8506,18 +8508,18 @@ var uf = { class: "w-full" }, df = {
|
|
|
8506
8508
|
target: "_blank",
|
|
8507
8509
|
rel: "noreferrer",
|
|
8508
8510
|
class: g(["bg-elevation-surface-default shadow-raised mt-2 block overflow-hidden rounded-xl border-0 no-underline transition hover:opacity-95", e.isOwn ? "bg-elevation-surface-default text-default" : "bg-elevation-surface-sunken text-default"])
|
|
8509
|
-
}, [r.value?.imageUrl ? (S(), a("div",
|
|
8511
|
+
}, [r.value?.imageUrl ? (S(), a("div", Ff, [o("img", {
|
|
8510
8512
|
src: r.value.imageUrl,
|
|
8511
8513
|
alt: r.value.title || l.value,
|
|
8512
8514
|
class: "h-full w-full object-cover"
|
|
8513
|
-
}, null, 8,
|
|
8514
|
-
o("p",
|
|
8515
|
-
o("p",
|
|
8516
|
-
o("p",
|
|
8517
|
-
s.value && !r.value ? (S(), a("p",
|
|
8518
|
-
])], 10,
|
|
8519
|
-
}
|
|
8520
|
-
}),
|
|
8515
|
+
}, null, 8, If)])) : i("", !0), o("div", Lf, [
|
|
8516
|
+
o("p", Rf, k(r.value?.siteName || l.value), 1),
|
|
8517
|
+
o("p", zf, k(r.value?.title || l.value), 1),
|
|
8518
|
+
o("p", Bf, k(r.value?.description || u.value), 1),
|
|
8519
|
+
s.value && !r.value ? (S(), a("p", Vf, k(j(c)("loadingPreview")), 1)) : i("", !0)
|
|
8520
|
+
])], 10, Pf));
|
|
8521
|
+
}
|
|
8522
|
+
}), Uf = { class: "linkified-text" }, Wf = ["innerHTML"], Gf = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8521
8523
|
__name: "LinkifiedText",
|
|
8522
8524
|
props: {
|
|
8523
8525
|
text: {},
|
|
@@ -8536,25 +8538,25 @@ var uf = { class: "w-full" }, df = {
|
|
|
8536
8538
|
let t = e.target;
|
|
8537
8539
|
t.tagName === "A" && d(e, t);
|
|
8538
8540
|
}
|
|
8539
|
-
return (t, n) => (S(), a("div",
|
|
8541
|
+
return (t, n) => (S(), a("div", Uf, [o("div", {
|
|
8540
8542
|
class: g(["rich-text-content", e.textClass]),
|
|
8541
8543
|
onClick: f,
|
|
8542
8544
|
innerHTML: l.value
|
|
8543
|
-
}, null, 10,
|
|
8545
|
+
}, null, 10, Wf), e.showPreview !== !1 && u.value ? (S(), r(Hf, {
|
|
8544
8546
|
key: 0,
|
|
8545
8547
|
url: u.value,
|
|
8546
8548
|
"is-own": e.isOwn
|
|
8547
8549
|
}, null, 8, ["url", "is-own"])) : i("", !0)]));
|
|
8548
8550
|
}
|
|
8549
|
-
}), [["__scopeId", "data-v-656b44e8"]]),
|
|
8551
|
+
}), [["__scopeId", "data-v-656b44e8"]]), Kf = { class: "w-full space-y-1" }, qf = {
|
|
8550
8552
|
class: "attachment-video",
|
|
8551
8553
|
controls: "",
|
|
8552
8554
|
playsinline: "",
|
|
8553
8555
|
preload: "metadata"
|
|
8554
|
-
},
|
|
8556
|
+
}, Jf = ["src", "type"], Yf = ["onClick"], Xf = { class: "inline-flex items-center gap-2 truncate font-medium" }, Zf = ["href"], Qf = { class: "flex min-w-0 items-center gap-2" }, $f = { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full" }, ep = { class: "text-default truncate font-medium" }, tp = { class: "body-sm text-subtle shrink-0" }, np = {
|
|
8555
8557
|
key: 4,
|
|
8556
8558
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm"
|
|
8557
|
-
},
|
|
8559
|
+
}, rp = { class: "flex min-w-0 items-center gap-2" }, ip = { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full" }, ap = { class: "text-default truncate font-medium" }, op = { class: "body-sm text-subtle shrink-0" }, sp = 4 / 3, cp = 16 / 9, lp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8558
8560
|
__name: "MessageAttachmentList",
|
|
8559
8561
|
props: { message: {} },
|
|
8560
8562
|
emits: ["openMedia"],
|
|
@@ -8609,12 +8611,12 @@ var uf = { class: "w-full" }, df = {
|
|
|
8609
8611
|
return n ? t.localeCompare(n, void 0, { sensitivity: "accent" }) !== 0 : !0;
|
|
8610
8612
|
}
|
|
8611
8613
|
function m(e) {
|
|
8612
|
-
return e.width && e.height && e.width > 0 && e.height > 0 ? e.width / e.height : e.kind === "video" ?
|
|
8614
|
+
return e.width && e.height && e.width > 0 && e.height > 0 ? e.width / e.height : e.kind === "video" ? cp : sp;
|
|
8613
8615
|
}
|
|
8614
8616
|
function h(e) {
|
|
8615
8617
|
return { aspectRatio: String(m(e)) };
|
|
8616
8618
|
}
|
|
8617
|
-
return (n, d) => (S(), a("div",
|
|
8619
|
+
return (n, d) => (S(), a("div", Kf, [(S(!0), a(e, null, T(t.message.attachments, (n) => (S(), a(e, { key: `${t.message.id}-${n.name}` }, [n.kind === "image" && n.url ? (S(), r(j(B), {
|
|
8618
8620
|
key: 0,
|
|
8619
8621
|
preview: "",
|
|
8620
8622
|
src: n.url,
|
|
@@ -8634,34 +8636,34 @@ var uf = { class: "w-full" }, df = {
|
|
|
8634
8636
|
key: 1,
|
|
8635
8637
|
class: "attachment-media-bleed bg-elevation-surface-default shadow-raised attachment-media-frame group relative overflow-hidden rounded-xl border-0",
|
|
8636
8638
|
style: v(h(n))
|
|
8637
|
-
}, [o("video",
|
|
8639
|
+
}, [o("video", qf, [o("source", {
|
|
8638
8640
|
src: n.url,
|
|
8639
8641
|
type: n.mimeType || void 0
|
|
8640
|
-
}, null, 8,
|
|
8642
|
+
}, null, 8, Jf)])], 4)) : n.kind === "audio" && n.url ? (S(), a("button", {
|
|
8641
8643
|
key: 2,
|
|
8642
8644
|
type: "button",
|
|
8643
8645
|
class: "flex w-full items-center justify-between gap-3 rounded-2xl px-3 py-2 text-left text-sm transition hover:opacity-90",
|
|
8644
8646
|
onClick: (e) => s("openMedia", n)
|
|
8645
|
-
}, [o("span",
|
|
8647
|
+
}, [o("span", Xf, [d[0] ||= o("span", { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 items-center justify-center rounded-full" }, " ♪ ", -1), c(" " + k(j(l)("audioMessage")), 1)])], 8, Yf)) : n.url ? (S(), a("a", {
|
|
8646
8648
|
key: 3,
|
|
8647
8649
|
href: n.url,
|
|
8648
8650
|
target: "_blank",
|
|
8649
8651
|
rel: "noreferrer",
|
|
8650
8652
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm no-underline transition hover:opacity-90"
|
|
8651
|
-
}, [o("span",
|
|
8653
|
+
}, [o("span", Qf, [o("span", $f, [(S(), r(D(f(n)), {
|
|
8652
8654
|
class: "size-5",
|
|
8653
8655
|
"aria-hidden": "true"
|
|
8654
|
-
}))]), o("span",
|
|
8656
|
+
}))]), o("span", ep, k(n.name), 1)]), o("span", tp, k(u(n.size)), 1)], 8, Zf)) : (S(), a("div", np, [o("span", rp, [o("span", ip, [(S(), r(D(f(n)), {
|
|
8655
8657
|
class: "size-5",
|
|
8656
8658
|
"aria-hidden": "true"
|
|
8657
|
-
}))]), o("span",
|
|
8659
|
+
}))]), o("span", ap, k(n.name), 1)]), o("span", op, k(u(n.size) || j(l)("queued")), 1)]))], 64))), 128)), p(t.message) ? (S(), r(Gf, {
|
|
8658
8660
|
key: 0,
|
|
8659
8661
|
text: t.message.text,
|
|
8660
8662
|
"is-own": t.message.isOwn,
|
|
8661
8663
|
"text-class": "whitespace-normal wrap-break-word body-md text-default"
|
|
8662
8664
|
}, null, 8, ["text", "is-own"])) : i("", !0)]));
|
|
8663
8665
|
}
|
|
8664
|
-
}), [["__scopeId", "data-v-5c0ccf0e"]]),
|
|
8666
|
+
}), [["__scopeId", "data-v-5c0ccf0e"]]), up = { class: "message-status" }, dp = { key: 0 }, fp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8665
8667
|
__name: "MessageDeliveryStatus",
|
|
8666
8668
|
props: { message: {} },
|
|
8667
8669
|
setup(e) {
|
|
@@ -8710,8 +8712,8 @@ var uf = { class: "w-full" }, df = {
|
|
|
8710
8712
|
};
|
|
8711
8713
|
}
|
|
8712
8714
|
});
|
|
8713
|
-
return (t, n) => (S(), a("div",
|
|
8714
|
-
e.message.isEdited && e.message.kind !== "poll" ? (S(), a("span",
|
|
8715
|
+
return (t, n) => (S(), a("div", up, [
|
|
8716
|
+
e.message.isEdited && e.message.kind !== "poll" ? (S(), a("span", dp, k(j(c)("edited")), 1)) : i("", !0),
|
|
8715
8717
|
o("span", null, k(l(e.message.sentAt)), 1),
|
|
8716
8718
|
u.value ? (S(), r(D(u.value.icon), {
|
|
8717
8719
|
key: 1,
|
|
@@ -8726,7 +8728,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
8726
8728
|
])) : i("", !0)
|
|
8727
8729
|
]));
|
|
8728
8730
|
}
|
|
8729
|
-
}), [["__scopeId", "data-v-ff4e9daa"]]),
|
|
8731
|
+
}), [["__scopeId", "data-v-ff4e9daa"]]), pp = { class: "mb-1 flex items-start justify-between gap-2" }, mp = { class: "body-sm text-subtlest truncate font-medium!" }, hp = /* @__PURE__ */ u({
|
|
8730
8732
|
__name: "MessageItemHeader",
|
|
8731
8733
|
props: { message: {} },
|
|
8732
8734
|
setup(e) {
|
|
@@ -8742,7 +8744,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
8742
8744
|
function l() {
|
|
8743
8745
|
return t.message.senderName?.trim() || (t.message.isOwn ? s("you") : s("system"));
|
|
8744
8746
|
}
|
|
8745
|
-
return (t, n) => (S(), a("div",
|
|
8747
|
+
return (t, n) => (S(), a("div", pp, [o("span", mp, k(l()), 1), e.message.scheduled?.scheduleDate ? (S(), r(j(V), {
|
|
8746
8748
|
key: 0,
|
|
8747
8749
|
text: j(s)("scheduledDateLabel", { date: c(e.message.scheduled.scheduleDate) }),
|
|
8748
8750
|
context: "warn",
|
|
@@ -8751,7 +8753,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
8751
8753
|
class: "shrink-0"
|
|
8752
8754
|
}, null, 8, ["text"])) : i("", !0)]));
|
|
8753
8755
|
}
|
|
8754
|
-
}),
|
|
8756
|
+
}), gp = ["disabled", "onClick"], _p = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8755
8757
|
__name: "MessageReactionList",
|
|
8756
8758
|
props: {
|
|
8757
8759
|
message: {},
|
|
@@ -8770,9 +8772,9 @@ var uf = { class: "w-full" }, df = {
|
|
|
8770
8772
|
class: g(["message-reaction-list__item rounded-full px-2 py-0.75 leading-none transition", e.reactedByMe ? "reaction-chip-selected" : t.message.isOwn ? "reaction-chip-own" : "reaction-chip-other"]),
|
|
8771
8773
|
disabled: t.disabled,
|
|
8772
8774
|
onClick: (t) => r("toggle", e.emoji)
|
|
8773
|
-
}, k(e.emoji) + " " + k(e.count), 11,
|
|
8775
|
+
}, k(e.emoji) + " " + k(e.count), 11, gp))), 128))], 2)) : i("", !0);
|
|
8774
8776
|
}
|
|
8775
|
-
}), [["__scopeId", "data-v-c17c8bfd"]]),
|
|
8777
|
+
}), [["__scopeId", "data-v-c17c8bfd"]]), vp = { class: "message-reactions flex min-w-0 flex-1 flex-wrap items-center gap-1.5" }, yp = ["aria-label", "title"], bp = { class: "message-reactions__thread-count" }, xp = /* @__PURE__ */ u({
|
|
8776
8778
|
__name: "MessageItemReactions",
|
|
8777
8779
|
props: {
|
|
8778
8780
|
message: {},
|
|
@@ -8782,7 +8784,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
8782
8784
|
emits: ["toggleReaction", "openThread"],
|
|
8783
8785
|
setup(e, { emit: t }) {
|
|
8784
8786
|
let s = e, c = t, { t: u } = K(), d = n(() => u("threadReplies", { count: s.message.replyCount })), f = n(() => s.canOpenThread !== !1 && s.message.replyCount > 0);
|
|
8785
|
-
return (t, n) => (S(), a("div",
|
|
8787
|
+
return (t, n) => (S(), a("div", vp, [l(_p, {
|
|
8786
8788
|
message: e.message,
|
|
8787
8789
|
disabled: e.canReact === !1,
|
|
8788
8790
|
compact: "",
|
|
@@ -8797,12 +8799,12 @@ var uf = { class: "w-full" }, df = {
|
|
|
8797
8799
|
}, [(S(), r(D(j(Me)), {
|
|
8798
8800
|
class: "size-4",
|
|
8799
8801
|
"aria-hidden": "true"
|
|
8800
|
-
})), o("span",
|
|
8802
|
+
})), o("span", bp, k(e.message.replyCount), 1)], 8, yp)) : i("", !0)]));
|
|
8801
8803
|
}
|
|
8802
|
-
}),
|
|
8804
|
+
}), Sp = {
|
|
8803
8805
|
key: 0,
|
|
8804
8806
|
class: ""
|
|
8805
|
-
},
|
|
8807
|
+
}, Cp = { class: "heading-sm text-default" }, wp = { class: "body-sm text-subtle" }, Tp = { class: "space-y-2 py-3" }, Ep = ["disabled", "onClick"], Dp = { class: "body-md flex items-center justify-between gap-3 px-3 py-1.5" }, Op = { class: "body-sm text-subtle shrink-0" }, kp = { class: "bg-alpha-default h-1.5" }, Ap = /* @__PURE__ */ u({
|
|
8806
8808
|
__name: "MessagePollContent",
|
|
8807
8809
|
props: {
|
|
8808
8810
|
message: {},
|
|
@@ -8821,18 +8823,18 @@ var uf = { class: "w-full" }, df = {
|
|
|
8821
8823
|
let t = r.currentUserId;
|
|
8822
8824
|
return !!(!t || r.pendingOptionKey === `${r.message.id}:${e}` || r.message.poll.options.some((n) => n.id === e && n.voters.includes(t)));
|
|
8823
8825
|
}
|
|
8824
|
-
return (n, r) => t.message.poll ? (S(), a("div",
|
|
8826
|
+
return (n, r) => t.message.poll ? (S(), a("div", Sp, [o("div", null, [o("h4", Cp, k(t.message.poll.question), 1), o("p", wp, k(j(c)("voteCount", { count: t.message.poll.totalVotes })), 1)]), o("div", Tp, [(S(!0), a(e, null, T(t.message.poll.options, (e) => (S(), a("button", {
|
|
8825
8827
|
key: e.id,
|
|
8826
8828
|
type: "button",
|
|
8827
8829
|
class: "shadow-raised bg-elevation-surface-raised-default block w-full overflow-hidden rounded-lg text-left",
|
|
8828
8830
|
disabled: u(e.id),
|
|
8829
8831
|
onClick: (t) => s("vote", e.id)
|
|
8830
|
-
}, [o("div",
|
|
8832
|
+
}, [o("div", Dp, [o("span", { class: g(["truncate font-medium", l(e.id) ? "text-success" : ""]) }, k(e.text), 3), o("span", Op, k(j(c)("voteCount", { count: e.voteCount })), 1)]), o("div", kp, [o("div", {
|
|
8831
8833
|
class: g(["h-full transition-all", l(e.id) ? "bg-accent-green-subtle-default" : "bg-accent-teal-subtle-default"]),
|
|
8832
8834
|
style: v({ width: `${t.message.poll.totalVotes ? e.voteCount / t.message.poll.totalVotes * 100 : 0}%` })
|
|
8833
|
-
}, null, 6)])], 8,
|
|
8835
|
+
}, null, 6)])], 8, Ep))), 128))])])) : i("", !0);
|
|
8834
8836
|
}
|
|
8835
|
-
}),
|
|
8837
|
+
}), jp = { class: "heading-xs" }, Mp = { class: "truncate" }, Np = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8836
8838
|
__name: "MessageReplyQuote",
|
|
8837
8839
|
props: { message: {} },
|
|
8838
8840
|
emits: ["open"],
|
|
@@ -8842,15 +8844,15 @@ var uf = { class: "w-full" }, df = {
|
|
|
8842
8844
|
type: "button",
|
|
8843
8845
|
class: "reply-quote",
|
|
8844
8846
|
onClick: n[0] ||= (e) => c("open")
|
|
8845
|
-
}, [o("p",
|
|
8847
|
+
}, [o("p", jp, k(e.message.replyTo.senderName), 1), o("p", Mp, k(s.value), 1)]));
|
|
8846
8848
|
}
|
|
8847
|
-
}), [["__scopeId", "data-v-e27c136c"]]),
|
|
8849
|
+
}), [["__scopeId", "data-v-e27c136c"]]), Pp = { class: "space-y-2" }, Fp = /* @__PURE__ */ u({
|
|
8848
8850
|
__name: "MessageTextContent",
|
|
8849
8851
|
props: { message: {} },
|
|
8850
8852
|
emits: ["anchorclick"],
|
|
8851
8853
|
setup(e) {
|
|
8852
8854
|
let t = ju(), o = n(() => t.mentionNameByUid.value);
|
|
8853
|
-
return (t, n) => (S(), a("div",
|
|
8855
|
+
return (t, n) => (S(), a("div", Pp, [e.message.translatedText ? (S(), r(Gf, {
|
|
8854
8856
|
key: 0,
|
|
8855
8857
|
text: e.message.translatedText,
|
|
8856
8858
|
"mention-name-by-uid": o.value,
|
|
@@ -8864,7 +8866,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
8864
8866
|
"mention-name-by-uid",
|
|
8865
8867
|
"is-own",
|
|
8866
8868
|
"class"
|
|
8867
|
-
])) : i("", !0), l(
|
|
8869
|
+
])) : i("", !0), l(Gf, {
|
|
8868
8870
|
text: e.message.text,
|
|
8869
8871
|
"mention-name-by-uid": o.value,
|
|
8870
8872
|
"is-own": e.message.isOwn,
|
|
@@ -8877,11 +8879,11 @@ var uf = { class: "w-full" }, df = {
|
|
|
8877
8879
|
"is-own"
|
|
8878
8880
|
])]));
|
|
8879
8881
|
}
|
|
8880
|
-
}),
|
|
8882
|
+
}), Ip = [
|
|
8881
8883
|
"id",
|
|
8882
8884
|
"data-message-id",
|
|
8883
8885
|
"data-message-kind"
|
|
8884
|
-
],
|
|
8886
|
+
], Lp = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, Rp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8885
8887
|
__name: "MessageItem",
|
|
8886
8888
|
props: {
|
|
8887
8889
|
message: {},
|
|
@@ -8923,7 +8925,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
8923
8925
|
"data-message-id": t.message.id,
|
|
8924
8926
|
"data-message-kind": t.message.kind,
|
|
8925
8927
|
class: g(["message-item group", d.value])
|
|
8926
|
-
}, [t.message.kind === "action" ? (S(), r(
|
|
8928
|
+
}, [t.message.kind === "action" ? (S(), r(Nf, {
|
|
8927
8929
|
key: 0,
|
|
8928
8930
|
text: t.message.text,
|
|
8929
8931
|
class: g(f.value)
|
|
@@ -8939,16 +8941,16 @@ var uf = { class: "w-full" }, df = {
|
|
|
8939
8941
|
onContextmenu: m,
|
|
8940
8942
|
onClick: h
|
|
8941
8943
|
}, [
|
|
8942
|
-
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(
|
|
8944
|
+
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(hp, {
|
|
8943
8945
|
key: 0,
|
|
8944
8946
|
message: t.message
|
|
8945
8947
|
}, null, 8, ["message"])) : i("", !0),
|
|
8946
|
-
t.message.replyTo ? (S(), r(
|
|
8948
|
+
t.message.replyTo ? (S(), r(Np, {
|
|
8947
8949
|
key: 1,
|
|
8948
8950
|
message: t.message,
|
|
8949
8951
|
onOpen: _
|
|
8950
8952
|
}, null, 8, ["message"])) : i("", !0),
|
|
8951
|
-
t.message.kind === "poll" && t.message.poll ? (S(), r(
|
|
8953
|
+
t.message.kind === "poll" && t.message.poll ? (S(), r(Ap, {
|
|
8952
8954
|
key: 2,
|
|
8953
8955
|
message: t.message,
|
|
8954
8956
|
"current-user-id": t.currentUserId,
|
|
@@ -8958,16 +8960,16 @@ var uf = { class: "w-full" }, df = {
|
|
|
8958
8960
|
"message",
|
|
8959
8961
|
"current-user-id",
|
|
8960
8962
|
"pending-option-key"
|
|
8961
|
-
])) : t.message.attachments?.length ? (S(), r(
|
|
8963
|
+
])) : t.message.attachments?.length ? (S(), r(lp, {
|
|
8962
8964
|
key: 3,
|
|
8963
8965
|
message: t.message,
|
|
8964
8966
|
onOpenMedia: s[1] ||= (e) => u("openMedia", e)
|
|
8965
|
-
}, null, 8, ["message"])) : (S(), r(
|
|
8967
|
+
}, null, 8, ["message"])) : (S(), r(Fp, {
|
|
8966
8968
|
key: 4,
|
|
8967
8969
|
message: t.message,
|
|
8968
8970
|
onAnchorclick: s[2] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
8969
8971
|
}, null, 8, ["message"])),
|
|
8970
|
-
o("div",
|
|
8972
|
+
o("div", Lp, [l(xp, {
|
|
8971
8973
|
message: t.message,
|
|
8972
8974
|
"can-react": t.canReact,
|
|
8973
8975
|
"can-open-thread": t.canOpenThread,
|
|
@@ -8977,20 +8979,20 @@ var uf = { class: "w-full" }, df = {
|
|
|
8977
8979
|
"message",
|
|
8978
8980
|
"can-react",
|
|
8979
8981
|
"can-open-thread"
|
|
8980
|
-
]), l(
|
|
8981
|
-
], 34)], 64))], 10,
|
|
8982
|
+
]), l(fp, { message: t.message }, null, 8, ["message"])])
|
|
8983
|
+
], 34)], 64))], 10, Ip));
|
|
8982
8984
|
}
|
|
8983
|
-
}), [["__scopeId", "data-v-cb4a4183"]]),
|
|
8985
|
+
}), [["__scopeId", "data-v-cb4a4183"]]), zp = [
|
|
8984
8986
|
"👍",
|
|
8985
8987
|
"❤️",
|
|
8986
8988
|
"🔥",
|
|
8987
8989
|
"😂",
|
|
8988
8990
|
"🙏",
|
|
8989
8991
|
"🎉"
|
|
8990
|
-
],
|
|
8992
|
+
], Bp = /* @__PURE__ */ "👏.😍.🤯.😮.😢.😡.👀.✅.💯.🙌.🤝.👌.💪.🤔.🫶.😅.🥳.💛.🌟.🚀.💥.🎯.📌.💡.🕊️.☀️.🌈.🍀.🎶.🫡".split("."), Vp = { 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" }, Hp = ["disabled", "onClick"], Up = ["disabled"], Wp = {
|
|
8991
8993
|
key: 0,
|
|
8992
|
-
class: "
|
|
8993
|
-
},
|
|
8994
|
+
class: "bg-elevation-surface-raised-default shadow-overlay m-0 grid grid-cols-6 gap-1 rounded-lg p-1.5"
|
|
8995
|
+
}, Gp = ["onClick"], Kp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
8994
8996
|
__name: "MessageItemMenuReactions",
|
|
8995
8997
|
props: {
|
|
8996
8998
|
message: {},
|
|
@@ -9002,20 +9004,20 @@ var uf = { class: "w-full" }, df = {
|
|
|
9002
9004
|
F(() => c.message.id, () => {
|
|
9003
9005
|
u.value = !1;
|
|
9004
9006
|
});
|
|
9005
|
-
let d = n(() =>
|
|
9007
|
+
let d = n(() => Bp);
|
|
9006
9008
|
function f(e) {
|
|
9007
9009
|
return (c.message.reactions ?? []).some((t) => t.emoji === e);
|
|
9008
9010
|
}
|
|
9009
9011
|
function p() {
|
|
9010
9012
|
c.canReact && (u.value = !u.value);
|
|
9011
9013
|
}
|
|
9012
|
-
return (n, s) => (S(), a(e, null, [o("div",
|
|
9014
|
+
return (n, s) => (S(), a(e, null, [o("div", Vp, [(S(!0), a(e, null, T(j(zp), (e) => (S(), a("button", {
|
|
9013
9015
|
key: `${t.message.id}-${e}-common`,
|
|
9014
9016
|
type: "button",
|
|
9015
|
-
class: g(["message-reaction-button", f(e) ? "
|
|
9017
|
+
class: g(["message-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9016
9018
|
disabled: !t.canReact,
|
|
9017
9019
|
onClick: (t) => l("react", e)
|
|
9018
|
-
}, k(e), 11,
|
|
9020
|
+
}, k(e), 11, Hp))), 128)), o("button", {
|
|
9019
9021
|
type: "button",
|
|
9020
9022
|
class: "message-reaction-more",
|
|
9021
9023
|
disabled: !t.canReact,
|
|
@@ -9023,14 +9025,14 @@ var uf = { class: "w-full" }, df = {
|
|
|
9023
9025
|
}, [(S(), r(D(u.value ? j(De) : j(Ee)), {
|
|
9024
9026
|
class: "size-7",
|
|
9025
9027
|
"aria-hidden": "true"
|
|
9026
|
-
}))], 8,
|
|
9028
|
+
}))], 8, Up)]), u.value && t.canReact ? (S(), a("div", Wp, [(S(!0), a(e, null, T(d.value, (e) => (S(), a("button", {
|
|
9027
9029
|
key: `${t.message.id}-${e}-extended`,
|
|
9028
9030
|
type: "button",
|
|
9029
|
-
class: g(["message-expanded-reaction-button", f(e) ? "
|
|
9031
|
+
class: g(["message-expanded-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9030
9032
|
onClick: (t) => l("react", e)
|
|
9031
|
-
}, k(e), 11,
|
|
9033
|
+
}, k(e), 11, Gp))), 128))])) : i("", !0)], 64));
|
|
9032
9034
|
}
|
|
9033
|
-
}), [["__scopeId", "data-v-
|
|
9035
|
+
}), [["__scopeId", "data-v-0a11761a"]]), qp = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9034
9036
|
__name: "MessageItemMenu",
|
|
9035
9037
|
props: {
|
|
9036
9038
|
message: {},
|
|
@@ -9094,19 +9096,19 @@ var uf = { class: "w-full" }, df = {
|
|
|
9094
9096
|
top: `${d.value.top}px`
|
|
9095
9097
|
}),
|
|
9096
9098
|
"data-testid": "message-action-popover-shell"
|
|
9097
|
-
}, [l(
|
|
9099
|
+
}, [l(Kp, {
|
|
9098
9100
|
message: e.message,
|
|
9099
9101
|
"can-react": e.canReact,
|
|
9100
9102
|
onReact: o[0] ||= (e) => s("react", e)
|
|
9101
9103
|
}, null, 8, ["message", "can-react"]), l(j(ae), { model: e.actionItems }, null, 8, ["model"])], 4)) : i("", !0)]));
|
|
9102
9104
|
}
|
|
9103
|
-
}), [["__scopeId", "data-v-54f6bf5c"]]),
|
|
9105
|
+
}), [["__scopeId", "data-v-54f6bf5c"]]), Jp = { 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" }, Yp = {
|
|
9104
9106
|
key: 0,
|
|
9105
9107
|
class: "chat-header__identity flex min-w-0 items-center gap-3"
|
|
9106
|
-
},
|
|
9108
|
+
}, Xp = { class: "chat-header__text min-w-0" }, Zp = { class: "chat-header__title heading-md text-default sm:heading-lg truncate" }, Qp = { class: "chat-header__subtitle body-sm text-subtle sm:body-md truncate" }, $p = { key: 0 }, em = { key: 1 }, tm = { class: "chat-header__actions flex items-center gap-2" }, nm = {
|
|
9107
9109
|
key: 0,
|
|
9108
9110
|
class: "chat-header__tags hidden flex-wrap gap-2 md:flex"
|
|
9109
|
-
},
|
|
9111
|
+
}, rm = /* @__PURE__ */ u({
|
|
9110
9112
|
__name: "MessageListHeader",
|
|
9111
9113
|
props: {
|
|
9112
9114
|
conversation: {},
|
|
@@ -9114,28 +9116,28 @@ var uf = { class: "w-full" }, df = {
|
|
|
9114
9116
|
},
|
|
9115
9117
|
setup(t) {
|
|
9116
9118
|
let { t: n } = K();
|
|
9117
|
-
return (s, c) => (S(), a("header",
|
|
9119
|
+
return (s, c) => (S(), a("header", Jp, [t.conversation ? (S(), a("div", Yp, [l(j(R), {
|
|
9118
9120
|
image: t.conversation.avatar,
|
|
9119
9121
|
label: t.conversation.avatar ? void 0 : t.conversation.title.slice(0, 1).toUpperCase(),
|
|
9120
9122
|
shape: "circle",
|
|
9121
9123
|
class: "chat-header__avatar shrink-0"
|
|
9122
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9124
|
+
}, null, 8, ["image", "label"]), o("div", Xp, [o("p", Zp, k(t.parentMessage ? j(n)("thread") : t.conversation.title), 1), o("p", Qp, [t.parentMessage ? (S(), a("span", $p, k(t.parentMessage.senderName), 1)) : (S(), a("span", em, k(t.conversation.memberCount ? j(n)("members", { count: t.conversation.memberCount }) : j(n)("groupChat")), 1))])])])) : i("", !0), o("div", tm, [t.conversation?.tags?.length ? (S(), a("div", nm, [(S(!0), a(e, null, T(t.conversation.tags.slice(0, 3), (e) => (S(), r(j(V), {
|
|
9123
9125
|
key: e,
|
|
9124
9126
|
text: e,
|
|
9125
9127
|
context: "secondary",
|
|
9126
9128
|
rounded: ""
|
|
9127
9129
|
}, null, 8, ["text"]))), 128))])) : i("", !0)])]));
|
|
9128
9130
|
}
|
|
9129
|
-
}),
|
|
9131
|
+
}), im = {
|
|
9130
9132
|
key: 1,
|
|
9131
9133
|
class: "message-list__empty-state"
|
|
9132
|
-
},
|
|
9134
|
+
}, am = { class: "space-y-2" }, om = {
|
|
9133
9135
|
key: 0,
|
|
9134
9136
|
class: "message-list__thread-root"
|
|
9135
|
-
},
|
|
9137
|
+
}, sm = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, cm = { class: "body-md text-default mt-1 line-clamp-2" }, lm = {
|
|
9136
9138
|
key: 1,
|
|
9137
9139
|
class: "surface-default text-subtle rounded-2xl p-5 text-center"
|
|
9138
|
-
},
|
|
9140
|
+
}, um = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9139
9141
|
__name: "MessageList",
|
|
9140
9142
|
props: {
|
|
9141
9143
|
target: {},
|
|
@@ -9152,7 +9154,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9152
9154
|
}), O = n(() => {
|
|
9153
9155
|
let e = u.conversation.value;
|
|
9154
9156
|
return e ? _.value ? _.value.senderName : e.memberCount ? c("members", { count: e.memberCount }) : c("groupChat") : "";
|
|
9155
|
-
}), A = n(() => u.conversation.value?.memberCount ?? 0), M = w(null), ee = w(null), P = n(() => !!_.value), F = n(() => P.value && !y.value), I = n(() => Eu(u.conversation.value)), te = N("threadRef"), { handleThreadScroll: L } =
|
|
9157
|
+
}), A = n(() => u.conversation.value?.memberCount ?? 0), M = w(null), ee = w(null), P = n(() => !!_.value), F = n(() => P.value && !y.value), I = n(() => Eu(u.conversation.value)), te = N("threadRef"), { handleThreadScroll: L } = sf({
|
|
9156
9158
|
getConversation: () => u.conversation.value,
|
|
9157
9159
|
getParentMessage: () => _.value,
|
|
9158
9160
|
getMessages: () => m.value,
|
|
@@ -9161,7 +9163,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9161
9163
|
canLoadOlder: () => b.value,
|
|
9162
9164
|
onLoadOlder: () => f.emit("list:loadOlder", { target: s.target }),
|
|
9163
9165
|
threadRef: te
|
|
9164
|
-
}), R = N("actionMenuRef"), { activeActionMessage: z, handleMessageContextMenu: ne, handleMessageTap: B, resetActionMenuState: re, reactToMessage: ie, toggleInlineReaction: ae, getActionItems: oe } =
|
|
9166
|
+
}), R = N("actionMenuRef"), { activeActionMessage: z, handleMessageContextMenu: ne, handleMessageTap: B, resetActionMenuState: re, reactToMessage: ie, toggleInlineReaction: ae, getActionItems: oe } = ef({
|
|
9165
9167
|
canUseMessageActions: () => u.canUseMessageActions.value,
|
|
9166
9168
|
canReact: () => u.canReact.value,
|
|
9167
9169
|
canReply: () => u.canReply.value,
|
|
@@ -9228,7 +9230,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9228
9230
|
title: D.value,
|
|
9229
9231
|
subtitle: O.value,
|
|
9230
9232
|
memberCount: A.value
|
|
9231
|
-
}, () => [l(
|
|
9233
|
+
}, () => [l(rm, {
|
|
9232
9234
|
conversation: j(u).conversation.value,
|
|
9233
9235
|
"parent-message": _.value
|
|
9234
9236
|
}, null, 8, ["conversation", "parent-message"])], !0) : i("", !0), j(u).conversation.value ? (S(), a("div", {
|
|
@@ -9239,12 +9241,12 @@ var uf = { class: "w-full" }, df = {
|
|
|
9239
9241
|
ref: te,
|
|
9240
9242
|
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"]),
|
|
9241
9243
|
onScroll: n[2] ||= (...e) => j(L) && j(L)(...e)
|
|
9242
|
-
}, [o("div",
|
|
9243
|
-
_.value ? (S(), a("div",
|
|
9244
|
-
(S(!0), a(e, null, T(m.value, (o, c) => (S(), a(e, { key: o.id }, [ue(c) ? (S(), r(
|
|
9244
|
+
}, [o("div", am, [
|
|
9245
|
+
_.value ? (S(), a("div", om, [o("p", sm, k(_.value.senderName), 1), o("p", cm, k(j(Ws)(_.value, j(c)("message"), j(u).mentionNameByUid.value)), 1)])) : i("", !0),
|
|
9246
|
+
(S(!0), a(e, null, T(m.value, (o, c) => (S(), a(e, { key: o.id }, [ue(c) ? (S(), r(Af, {
|
|
9245
9247
|
key: 0,
|
|
9246
9248
|
date: o.sentAt
|
|
9247
|
-
}, null, 8, ["date"])) : i("", !0), l(
|
|
9249
|
+
}, null, 8, ["date"])) : i("", !0), l(Rp, {
|
|
9248
9250
|
message: o,
|
|
9249
9251
|
"current-user-id": j(u).currentUserId.value,
|
|
9250
9252
|
"can-react": j(u).canReact.value,
|
|
@@ -9276,13 +9278,13 @@ var uf = { class: "w-full" }, df = {
|
|
|
9276
9278
|
"onToggleReaction",
|
|
9277
9279
|
"onOpenThread"
|
|
9278
9280
|
])], 64))), 128)),
|
|
9279
|
-
m.value.length === 0 && C.value && !h.value ? (S(), a("div",
|
|
9280
|
-
])], 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",
|
|
9281
|
-
l(
|
|
9281
|
+
m.value.length === 0 && C.value && !h.value ? (S(), a("div", lm, k(j(c)("noMessagesYetInThisGroup")), 1)) : i("", !0)
|
|
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", im, k(j(c)("selectConversationToStart")), 1))], 2),
|
|
9283
|
+
l(Df, {
|
|
9282
9284
|
attachment: M.value,
|
|
9283
9285
|
onClose: H
|
|
9284
9286
|
}, null, 8, ["attachment"]),
|
|
9285
|
-
l(
|
|
9287
|
+
l(qp, {
|
|
9286
9288
|
ref_key: "actionMenuRef",
|
|
9287
9289
|
ref: R,
|
|
9288
9290
|
message: j(z),
|
|
@@ -9298,13 +9300,13 @@ var uf = { class: "w-full" }, df = {
|
|
|
9298
9300
|
])
|
|
9299
9301
|
], 64));
|
|
9300
9302
|
}
|
|
9301
|
-
}), [["__scopeId", "data-v-bea26e53"]]),
|
|
9303
|
+
}), [["__scopeId", "data-v-bea26e53"]]), dm = { class: "receipt-section" }, fm = { class: "receipt-section__header" }, pm = { class: "heading-sm text-default" }, mm = { class: "body-sm text-subtlest" }, hm = {
|
|
9302
9304
|
key: 0,
|
|
9303
9305
|
class: "space-y-2"
|
|
9304
|
-
},
|
|
9306
|
+
}, gm = { class: "flex min-w-0 items-center gap-3" }, _m = { class: "min-w-0" }, vm = { class: "heading-sm text-default truncate" }, ym = { class: "body-sm text-subtle truncate" }, bm = { class: "body-sm text-subtle shrink-0" }, xm = {
|
|
9305
9307
|
key: 1,
|
|
9306
9308
|
class: "receipt-section__empty"
|
|
9307
|
-
},
|
|
9309
|
+
}, Sm = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9308
9310
|
__name: "ReceiptSection",
|
|
9309
9311
|
props: {
|
|
9310
9312
|
title: {},
|
|
@@ -9313,29 +9315,29 @@ var uf = { class: "w-full" }, df = {
|
|
|
9313
9315
|
formatDateTime: { type: Function }
|
|
9314
9316
|
},
|
|
9315
9317
|
setup(t) {
|
|
9316
|
-
return (n, r) => (S(), a("section",
|
|
9318
|
+
return (n, r) => (S(), a("section", dm, [o("div", fm, [o("p", pm, k(t.title), 1), o("span", mm, k(t.receipts.length), 1)]), t.receipts.length ? (S(), a("div", hm, [(S(!0), a(e, null, T(t.receipts, (e) => (S(), a("div", {
|
|
9317
9319
|
key: `${e.kind}-${e.user.uid}`,
|
|
9318
9320
|
class: "receipt-section__row"
|
|
9319
|
-
}, [o("div",
|
|
9321
|
+
}, [o("div", gm, [l(j(R), {
|
|
9320
9322
|
image: e.user.avatar,
|
|
9321
9323
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
9322
9324
|
shape: "circle",
|
|
9323
9325
|
class: "shrink-0"
|
|
9324
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9326
|
+
}, null, 8, ["image", "label"]), o("div", _m, [o("p", vm, k(e.user.name), 1), o("p", ym, k(e.user.uid), 1)])]), o("p", bm, k(t.formatDateTime(e.timestamp)), 1)]))), 128))])) : (S(), a("div", xm, k(t.emptyLabel), 1))]));
|
|
9325
9327
|
}
|
|
9326
|
-
}), [["__scopeId", "data-v-2b2f0a3e"]]),
|
|
9328
|
+
}), [["__scopeId", "data-v-2b2f0a3e"]]), Cm = {
|
|
9327
9329
|
key: 0,
|
|
9328
9330
|
class: "message-info-dialog-content space-y-5 overflow-y-auto"
|
|
9329
|
-
},
|
|
9331
|
+
}, wm = { class: "message-info-summary px-4 py-4 sm:px-6 sm:py-5" }, Tm = { class: "body-md text-default wrap-break-word whitespace-pre-wrap" }, Em = { class: "mt-4 grid gap-3 sm:grid-cols-3" }, Dm = { class: "message-info-metric px-3 py-3" }, Om = { class: "body-sm text-subtlest font-semibold uppercase" }, km = { class: "heading-sm text-default mt-1" }, Am = { class: "message-info-metric px-3 py-3" }, jm = { class: "flex items-center gap-2" }, Mm = { class: "body-sm text-subtlest font-semibold uppercase" }, Nm = { class: "heading-sm text-default mt-1" }, Pm = { class: "message-info-metric px-3 py-3" }, Fm = { class: "flex items-center gap-2" }, Im = { class: "body-sm text-subtlest font-semibold uppercase" }, Lm = { class: "heading-sm text-default mt-1" }, Rm = {
|
|
9330
9332
|
key: 0,
|
|
9331
9333
|
class: "flex items-center justify-center px-4 py-8 sm:px-6"
|
|
9332
|
-
},
|
|
9334
|
+
}, zm = {
|
|
9333
9335
|
key: 1,
|
|
9334
9336
|
class: "message-info-error body-md mx-4 rounded-xl px-4 py-3 sm:mx-6"
|
|
9335
|
-
},
|
|
9337
|
+
}, Bm = {
|
|
9336
9338
|
key: 2,
|
|
9337
9339
|
class: "space-y-4 pb-4 sm:pb-5"
|
|
9338
|
-
},
|
|
9340
|
+
}, Vm = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9339
9341
|
__name: "MessageInfoDialog",
|
|
9340
9342
|
props: {
|
|
9341
9343
|
open: { type: Boolean },
|
|
@@ -9357,34 +9359,34 @@ var uf = { class: "w-full" }, df = {
|
|
|
9357
9359
|
function _(e, t) {
|
|
9358
9360
|
return e ? g(e) : d(t > 0 ? "someRecipients" : "notYet");
|
|
9359
9361
|
}
|
|
9360
|
-
return (t, n) => (S(), r(
|
|
9362
|
+
return (t, n) => (S(), r(pf, {
|
|
9361
9363
|
open: e.open,
|
|
9362
9364
|
title: j(d)("messageInfo"),
|
|
9363
9365
|
subtitle: j(d)("deliveryAndReadDetails"),
|
|
9364
9366
|
"close-label": j(d)("close"),
|
|
9365
9367
|
onClose: n[0] ||= (e) => c("close")
|
|
9366
9368
|
}, {
|
|
9367
|
-
default: I(() => [e.message ? (S(), a("div",
|
|
9368
|
-
o("div",
|
|
9369
|
-
o("div",
|
|
9369
|
+
default: I(() => [e.message ? (S(), a("div", Cm, [o("div", wm, [o("p", Tm, k(j(Ws)(e.message, j(d)("message"), j(f).mentionNameByUid.value)), 1), o("div", Em, [
|
|
9370
|
+
o("div", Dm, [o("p", Om, k(j(d)("sent")), 1), o("p", km, k(g(e.message.sentAt)), 1)]),
|
|
9371
|
+
o("div", Am, [o("div", jm, [o("p", Mm, k(j(d)("deliveredToAll")), 1), h.value.length ? (S(), r(j(V), {
|
|
9370
9372
|
key: 0,
|
|
9371
9373
|
text: String(h.value.length),
|
|
9372
9374
|
context: "secondary",
|
|
9373
9375
|
rounded: ""
|
|
9374
|
-
}, null, 8, ["text"])) : i("", !0)]), o("p",
|
|
9375
|
-
o("div",
|
|
9376
|
+
}, null, 8, ["text"])) : i("", !0)]), o("p", Nm, k(_(e.message.receipts.deliveredAt, h.value.length)), 1)]),
|
|
9377
|
+
o("div", Pm, [o("div", Fm, [o("p", Im, k(j(d)("readByAll")), 1), m.value.length ? (S(), r(j(V), {
|
|
9376
9378
|
key: 0,
|
|
9377
9379
|
text: String(m.value.length),
|
|
9378
9380
|
context: "success",
|
|
9379
9381
|
rounded: ""
|
|
9380
|
-
}, null, 8, ["text"])) : i("", !0)]), o("p",
|
|
9381
|
-
])]), e.loading ? (S(), a("div",
|
|
9382
|
+
}, null, 8, ["text"])) : i("", !0)]), o("p", Lm, k(_(e.message.receipts.readAt, m.value.length)), 1)])
|
|
9383
|
+
])]), e.loading ? (S(), a("div", Rm, [l(j(se), {
|
|
9382
9384
|
style: {
|
|
9383
9385
|
width: "2.5rem",
|
|
9384
9386
|
height: "2.5rem"
|
|
9385
9387
|
},
|
|
9386
9388
|
"stroke-width": "5"
|
|
9387
|
-
})])) : e.error ? (S(), a("div",
|
|
9389
|
+
})])) : e.error ? (S(), a("div", zm, k(e.error), 1)) : (S(), a("div", Bm, [l(Sm, {
|
|
9388
9390
|
title: j(d)("readBy"),
|
|
9389
9391
|
receipts: m.value,
|
|
9390
9392
|
"empty-label": j(d)("nobodyHasReadThisMessageYet"),
|
|
@@ -9393,7 +9395,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9393
9395
|
"title",
|
|
9394
9396
|
"receipts",
|
|
9395
9397
|
"empty-label"
|
|
9396
|
-
]), l(
|
|
9398
|
+
]), l(Sm, {
|
|
9397
9399
|
title: j(d)("deliveredNotYetRead"),
|
|
9398
9400
|
receipts: p.value,
|
|
9399
9401
|
"empty-label": j(d)("noRecipientsDeliveredStageYet"),
|
|
@@ -9411,34 +9413,34 @@ var uf = { class: "w-full" }, df = {
|
|
|
9411
9413
|
"close-label"
|
|
9412
9414
|
]));
|
|
9413
9415
|
}
|
|
9414
|
-
}), [["__scopeId", "data-v-30ce65f1"]]),
|
|
9416
|
+
}), [["__scopeId", "data-v-30ce65f1"]]), Hm = { class: "min-h-0 flex-1 overflow-y-auto" }, Um = {
|
|
9415
9417
|
key: 0,
|
|
9416
9418
|
class: "flex h-full min-h-64 items-center justify-center"
|
|
9417
|
-
},
|
|
9419
|
+
}, Wm = {
|
|
9418
9420
|
key: 1,
|
|
9419
9421
|
class: "bg-elevation-surface-sunken-default body-md flex h-full min-h-64 items-center justify-center rounded-xl px-6 text-center"
|
|
9420
|
-
},
|
|
9422
|
+
}, Gm = {
|
|
9421
9423
|
key: 2,
|
|
9422
9424
|
class: "space-y-3"
|
|
9423
|
-
},
|
|
9425
|
+
}, Km = { class: "flex flex-wrap items-start justify-between gap-3" }, qm = { class: "w-full space-y-2" }, Jm = { class: "center between gap-2" }, Ym = { class: "" }, Xm = { class: "space-y-1" }, Zm = { class: "heading-sm text-default" }, Qm = {
|
|
9424
9426
|
key: 0,
|
|
9425
9427
|
class: "body-md text-default"
|
|
9426
|
-
},
|
|
9428
|
+
}, $m = {
|
|
9427
9429
|
key: 1,
|
|
9428
9430
|
class: "body-md text-default wrap-break-word whitespace-pre-wrap"
|
|
9429
|
-
},
|
|
9431
|
+
}, eh = {
|
|
9430
9432
|
key: 0,
|
|
9431
9433
|
class: "max-w-sm"
|
|
9432
|
-
},
|
|
9434
|
+
}, th = { class: "flex flex-wrap items-center gap-1" }, nh = {
|
|
9433
9435
|
key: 0,
|
|
9434
9436
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3 sm:flex-row sm:items-center"
|
|
9435
|
-
},
|
|
9437
|
+
}, rh = { class: "grid w-full grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem]" }, ih = { class: "flex items-center gap-2" }, ah = {
|
|
9436
9438
|
key: 1,
|
|
9437
9439
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3"
|
|
9438
|
-
},
|
|
9440
|
+
}, oh = {
|
|
9439
9441
|
key: 0,
|
|
9440
9442
|
class: "relative max-w-sm"
|
|
9441
|
-
},
|
|
9443
|
+
}, sh = { class: "absolute top-2 right-2" }, ch = ["placeholder"], lh = { class: "flex items-center justify-end gap-2" }, uh = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9442
9444
|
__name: "ScheduledMessagesDialog",
|
|
9443
9445
|
props: {
|
|
9444
9446
|
open: { type: Boolean },
|
|
@@ -9520,24 +9522,24 @@ var uf = { class: "w-full" }, df = {
|
|
|
9520
9522
|
function B(e) {
|
|
9521
9523
|
d.value === e.id && M(), u("remove", e);
|
|
9522
9524
|
}
|
|
9523
|
-
return (n, s) => (S(), r(
|
|
9525
|
+
return (n, s) => (S(), r(pf, {
|
|
9524
9526
|
open: t.open,
|
|
9525
9527
|
title: j(v)("scheduledMessages"),
|
|
9526
9528
|
subtitle: t.conversationTitle ? j(v)("queuedForConversation", { title: t.conversationTitle }) : j(v)("queuedOutgoingMessagesForThisChat"),
|
|
9527
9529
|
"close-label": j(v)("close"),
|
|
9528
9530
|
onClose: s[3] ||= (e) => u("close")
|
|
9529
9531
|
}, {
|
|
9530
|
-
default: I(() => [o("div",
|
|
9532
|
+
default: I(() => [o("div", Hm, [t.loading ? (S(), a("div", Um, [l(j(se), {
|
|
9531
9533
|
style: {
|
|
9532
9534
|
width: "2.75rem",
|
|
9533
9535
|
height: "2.75rem"
|
|
9534
9536
|
},
|
|
9535
9537
|
"stroke-width": "6"
|
|
9536
|
-
})])) : y.value.length === 0 ? (S(), a("div",
|
|
9538
|
+
})])) : y.value.length === 0 ? (S(), a("div", Wm, k(j(v)("noScheduledMessagesForConversation")), 1)) : (S(), a("div", Gm, [(S(!0), a(e, null, T(y.value, (e) => (S(), a("article", {
|
|
9537
9539
|
key: e.id,
|
|
9538
9540
|
class: "border-default rounded-lg border px-4 py-3"
|
|
9539
|
-
}, [o("div",
|
|
9540
|
-
o("div",
|
|
9541
|
+
}, [o("div", Km, [o("div", qm, [
|
|
9542
|
+
o("div", Jm, [o("div", Ym, [e.kind === "poll" ? (S(), r(j(V), {
|
|
9541
9543
|
key: 0,
|
|
9542
9544
|
text: j(v)("poll"),
|
|
9543
9545
|
context: "info",
|
|
@@ -9558,9 +9560,9 @@ var uf = { class: "w-full" }, df = {
|
|
|
9558
9560
|
size: "small",
|
|
9559
9561
|
onClick: (t) => B(e)
|
|
9560
9562
|
}, null, 8, ["icon", "onClick"])]),
|
|
9561
|
-
o("div",
|
|
9562
|
-
L(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div",
|
|
9563
|
-
]), o("div",
|
|
9563
|
+
o("div", Xm, [o("p", Zm, k(x(e.scheduled?.scheduleDate)), 1), e.kind === "poll" && e.poll ? (S(), a("p", Qm, k(e.poll.question), 1)) : (S(), a("p", $m, k(j(Ws)(e, j(v)("attachment"))), 1))]),
|
|
9564
|
+
L(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div", eh, [l(lp, { message: N(e) }, null, 8, ["message"])])) : i("", !0)
|
|
9565
|
+
]), o("div", th, [e.kind === "poll" ? i("", !0) : (S(), r(j(z), {
|
|
9564
9566
|
key: 0,
|
|
9565
9567
|
label: j(v)("edit"),
|
|
9566
9568
|
icon: j(ye),
|
|
@@ -9582,7 +9584,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9582
9584
|
"label",
|
|
9583
9585
|
"icon",
|
|
9584
9586
|
"onClick"
|
|
9585
|
-
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div",
|
|
9587
|
+
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div", nh, [o("div", rh, [te(o("input", {
|
|
9586
9588
|
"onUpdate:modelValue": s[0] ||= (e) => m.value = e,
|
|
9587
9589
|
type: "date",
|
|
9588
9590
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
@@ -9594,7 +9596,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9594
9596
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
9595
9597
|
"aria-label": "Time (24-hour)",
|
|
9596
9598
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
9597
|
-
}, null, 512), [[ee, h.value]])]), o("div",
|
|
9599
|
+
}, null, 512), [[ee, h.value]])]), o("div", ih, [l(j(z), {
|
|
9598
9600
|
label: j(v)("save"),
|
|
9599
9601
|
size: "small",
|
|
9600
9602
|
disabled: !m.value || !b.value,
|
|
@@ -9608,8 +9610,8 @@ var uf = { class: "w-full" }, df = {
|
|
|
9608
9610
|
size: "small",
|
|
9609
9611
|
text: "",
|
|
9610
9612
|
onClick: M
|
|
9611
|
-
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div",
|
|
9612
|
-
L(e) ? (S(), a("div",
|
|
9613
|
+
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div", ah, [
|
|
9614
|
+
L(e) ? (S(), a("div", oh, [l(lp, { message: N(e) }, null, 8, ["message"]), o("div", sh, [l(j(z), {
|
|
9613
9615
|
icon: j(fe),
|
|
9614
9616
|
"aria-label": j(v)("remove"),
|
|
9615
9617
|
text: "",
|
|
@@ -9623,8 +9625,8 @@ var uf = { class: "w-full" }, df = {
|
|
|
9623
9625
|
rows: "3",
|
|
9624
9626
|
class: "surface-input body-md w-full rounded-xl px-3 py-2 ring-0 outline-none",
|
|
9625
9627
|
placeholder: j(v)("writeMessage")
|
|
9626
|
-
}, null, 8,
|
|
9627
|
-
o("div",
|
|
9628
|
+
}, null, 8, ch), [[ee, g.value]]),
|
|
9629
|
+
o("div", lh, [l(j(z), {
|
|
9628
9630
|
label: j(v)("cancel"),
|
|
9629
9631
|
size: "small",
|
|
9630
9632
|
text: "",
|
|
@@ -9648,13 +9650,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9648
9650
|
"close-label"
|
|
9649
9651
|
]));
|
|
9650
9652
|
}
|
|
9651
|
-
}), [["__scopeId", "data-v-0bb2dc95"]]),
|
|
9652
|
-
key: 0,
|
|
9653
|
-
class: "chat-status-overlay"
|
|
9654
|
-
}, dh = { class: "chat-status-overlay__card" }, fh = { key: 0 }, ph = { key: 1 }, mh = { key: 2 }, hh = { key: 3 }, gh = {
|
|
9655
|
-
key: 4,
|
|
9656
|
-
name: "not-a-member"
|
|
9657
|
-
}, _h = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9653
|
+
}), [["__scopeId", "data-v-0bb2dc95"]]), dh = { class: "chat-status-overlay" }, fh = { class: "chat-status-overlay__card" }, ph = /* @__PURE__ */ $(/* @__PURE__ */ u({
|
|
9658
9654
|
__name: "ChatStatusOverlay",
|
|
9659
9655
|
props: {
|
|
9660
9656
|
visible: { type: Boolean },
|
|
@@ -9668,9 +9664,28 @@ var uf = { class: "w-full" }, df = {
|
|
|
9668
9664
|
messages: {}
|
|
9669
9665
|
},
|
|
9670
9666
|
setup(e) {
|
|
9671
|
-
|
|
9672
|
-
|
|
9673
|
-
|
|
9667
|
+
let t = e, r = n(() => t.visible ? t.offlineMode ? {
|
|
9668
|
+
message: t.messages.waitingForNetwork,
|
|
9669
|
+
slotName: "offline"
|
|
9670
|
+
} : t.connected ? t.loading ? {
|
|
9671
|
+
message: t.messages.loading,
|
|
9672
|
+
slotName: "loading"
|
|
9673
|
+
} : t.notFound ? {
|
|
9674
|
+
message: t.messages.notFound,
|
|
9675
|
+
slotName: "not-found"
|
|
9676
|
+
} : t.notAMember ? {
|
|
9677
|
+
message: t.messages.notAMember,
|
|
9678
|
+
slotName: "not-a-member"
|
|
9679
|
+
} : t.isEmpty && t.showEmptySlot ? {
|
|
9680
|
+
message: t.messages.noMessages,
|
|
9681
|
+
slotName: "no-messages"
|
|
9682
|
+
} : null : {
|
|
9683
|
+
message: t.messages.connecting,
|
|
9684
|
+
slotName: "connecting"
|
|
9685
|
+
} : null);
|
|
9686
|
+
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div", dh, [o("div", fh, [E(e.$slots, `${r.value.slotName}-content`, {}, () => [o("span", null, k(r.value.message), 1)], !0)])])], !0) : i("", !0);
|
|
9687
|
+
}
|
|
9688
|
+
}), [["__scopeId", "data-v-7749aec9"]]), mh = /* @__PURE__ */ u({
|
|
9674
9689
|
__name: "BccChat",
|
|
9675
9690
|
props: {
|
|
9676
9691
|
client: { default: null },
|
|
@@ -9901,7 +9916,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9901
9916
|
_: 1
|
|
9902
9917
|
})]) : i("", !0),
|
|
9903
9918
|
T.value ? (S(), a(e, { key: 1 }, [
|
|
9904
|
-
l(
|
|
9919
|
+
l(um, {
|
|
9905
9920
|
target: "main",
|
|
9906
9921
|
class: g(["h-full", t.containerClass]),
|
|
9907
9922
|
"hide-group-actions": t.hideGroupActions,
|
|
@@ -9910,7 +9925,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9910
9925
|
"action-message-row-class": t.actionMessageRowClass,
|
|
9911
9926
|
onAnchorclick: V
|
|
9912
9927
|
}, s({
|
|
9913
|
-
composer: I(() => [l(
|
|
9928
|
+
composer: I(() => [l(Qd, {
|
|
9914
9929
|
ref_key: "mainComposerRef",
|
|
9915
9930
|
ref: z,
|
|
9916
9931
|
target: "main"
|
|
@@ -9927,7 +9942,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9927
9942
|
"action-message-class",
|
|
9928
9943
|
"action-message-row-class"
|
|
9929
9944
|
]),
|
|
9930
|
-
l(
|
|
9945
|
+
l(pf, {
|
|
9931
9946
|
open: !!j(P).activeThreadParentMessage.value,
|
|
9932
9947
|
title: j(m)("threadWithCount", { count: j(P).activeThreadParentMessage.value?.replyCount ?? 0 }),
|
|
9933
9948
|
subtitle: O.value?.title ?? "",
|
|
@@ -9935,13 +9950,13 @@ var uf = { class: "w-full" }, df = {
|
|
|
9935
9950
|
"close-aria-label": j(m)("closeThread"),
|
|
9936
9951
|
onClose: r[0] ||= (e) => j(re).emit("ui:closeThread")
|
|
9937
9952
|
}, {
|
|
9938
|
-
default: I(() => [l(
|
|
9953
|
+
default: I(() => [l(um, {
|
|
9939
9954
|
target: "thread",
|
|
9940
9955
|
class: "min-h-0 flex-1",
|
|
9941
9956
|
"action-message-class": t.actionMessageClass,
|
|
9942
9957
|
"action-message-row-class": t.actionMessageRowClass
|
|
9943
9958
|
}, {
|
|
9944
|
-
composer: I(() => [l(
|
|
9959
|
+
composer: I(() => [l(Qd, {
|
|
9945
9960
|
ref_key: "threadComposerRef",
|
|
9946
9961
|
ref: ne,
|
|
9947
9962
|
target: "thread"
|
|
@@ -9956,7 +9971,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9956
9971
|
"close-label",
|
|
9957
9972
|
"close-aria-label"
|
|
9958
9973
|
]),
|
|
9959
|
-
l(
|
|
9974
|
+
l(uh, {
|
|
9960
9975
|
open: j(R).showScheduledMessages.value,
|
|
9961
9976
|
loading: j(R).loadingScheduledMessages.value,
|
|
9962
9977
|
messages: j(R).scheduledMessages.value,
|
|
@@ -9971,7 +9986,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9971
9986
|
"messages",
|
|
9972
9987
|
"conversation-title"
|
|
9973
9988
|
]),
|
|
9974
|
-
l(
|
|
9989
|
+
l(Vm, {
|
|
9975
9990
|
open: !!j(R).infoMessage.value,
|
|
9976
9991
|
message: j(R).infoMessage.value,
|
|
9977
9992
|
receipts: j(R).infoMessageReceipts.value,
|
|
@@ -9986,7 +10001,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9986
10001
|
"error"
|
|
9987
10002
|
])
|
|
9988
10003
|
], 64)) : i("", !0),
|
|
9989
|
-
l(
|
|
10004
|
+
l(ph, {
|
|
9990
10005
|
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),
|
|
9991
10006
|
"offline-mode": !!(T.value?.offlineMode.value && !O.value),
|
|
9992
10007
|
connected: !!(T.value?.connected.value || O.value),
|
|
@@ -10026,6 +10041,6 @@ var uf = { class: "w-full" }, df = {
|
|
|
10026
10041
|
}
|
|
10027
10042
|
});
|
|
10028
10043
|
//#endregion
|
|
10029
|
-
export {
|
|
10044
|
+
export { mh as BccChat, mh as BccChatMessageList, Ol as LogSeverity, gu as chat, gu as default, cc as createChatClient };
|
|
10030
10045
|
|
|
10031
10046
|
//# sourceMappingURL=vue-bcc-chat-ui.js.map
|