@bcc-code/vue-bcc-chat-ui 7.1.56 → 7.1.57
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 +257 -256
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -6233,7 +6233,7 @@ I([() => $.value?.conversations.value, () => nu.value], async () => {
|
|
|
6233
6233
|
async function fu(e, t) {
|
|
6234
6234
|
Jl.value = t.loggerCallback, gt(t.language ?? "en"), eu(t.themeMode), e.use(H);
|
|
6235
6235
|
let n = e.config.globalProperties.$primevue;
|
|
6236
|
-
n && (n.config.ripple = !0, n.config.inputVariant = "filled"), e.component("BccChat",
|
|
6236
|
+
n && (n.config.ripple = !0, n.config.inputVariant = "filled"), e.component("BccChat", Uh), e.provide("theme", { theme: Bl });
|
|
6237
6237
|
let r = tu(t.environment);
|
|
6238
6238
|
$l(Hl.INFO, "Initializing chat", {
|
|
6239
6239
|
environment: t.environment,
|
|
@@ -7128,7 +7128,8 @@ function wd(e, t) {
|
|
|
7128
7128
|
}
|
|
7129
7129
|
//#endregion
|
|
7130
7130
|
//#region src/composables/useRichTextComposer.ts
|
|
7131
|
-
|
|
7131
|
+
var Td = 64;
|
|
7132
|
+
function Ed(e, t, r, i) {
|
|
7132
7133
|
let a = w(0), o = w(!1), s = w({
|
|
7133
7134
|
x: 0,
|
|
7134
7135
|
y: 0,
|
|
@@ -7253,20 +7254,20 @@ function Td(e, t, r, i) {
|
|
|
7253
7254
|
function ie(e, n) {
|
|
7254
7255
|
let r = t.value, i = e.getBoundingClientRect(), a = r?.getBoundingClientRect(), o = i.width || i.height ? i : a;
|
|
7255
7256
|
if (!o) return;
|
|
7256
|
-
let c = re(), l = c ? 248 : 176, u = c ? 48 : 180, d = c ?
|
|
7257
|
-
if (!c && (
|
|
7257
|
+
let c = re(), l = c ? 248 : 176, u = c ? 48 : 180, d = c ? Td : 0, f = !c && !!n, p = f ? n.clientX : o.left + o.width / 2, m = f ? n.clientY : o.top, h = f ? n.clientY : o.bottom, g = l / 2 + 8, _ = ne(p, g, Math.max(g, window.innerWidth - l / 2 - 8)), v = m - 6 - 8, y = window.innerHeight - h - 6 - 8;
|
|
7258
|
+
if (!c && (y >= u || y >= v)) {
|
|
7258
7259
|
let e = Math.max(8, window.innerHeight - u - 8);
|
|
7259
7260
|
s.value = {
|
|
7260
|
-
x:
|
|
7261
|
-
y: ne(
|
|
7261
|
+
x: Math.round(_),
|
|
7262
|
+
y: Math.round(ne(h + 6, 8, e)),
|
|
7262
7263
|
placement: "below"
|
|
7263
7264
|
};
|
|
7264
7265
|
return;
|
|
7265
7266
|
}
|
|
7266
|
-
let
|
|
7267
|
+
let b = u + 8, x = Math.max(b, window.innerHeight - 8 - d);
|
|
7267
7268
|
s.value = {
|
|
7268
|
-
x:
|
|
7269
|
-
y: ne(
|
|
7269
|
+
x: Math.round(_),
|
|
7270
|
+
y: Math.round(ne(m - 6 - d, b, x)),
|
|
7270
7271
|
placement: "above"
|
|
7271
7272
|
};
|
|
7272
7273
|
}
|
|
@@ -7350,7 +7351,7 @@ function Td(e, t, r, i) {
|
|
|
7350
7351
|
A(), te(null);
|
|
7351
7352
|
return;
|
|
7352
7353
|
}
|
|
7353
|
-
P(t), te(U(t)), j() && (e.preventDefault(), ie(t, e), o.value = !0);
|
|
7354
|
+
P(t), te(U(t)), j() && (e.button === 2 && e.preventDefault(), ie(t, e), o.value = !0);
|
|
7354
7355
|
}
|
|
7355
7356
|
function de(t) {
|
|
7356
7357
|
let n = t.target;
|
|
@@ -7404,7 +7405,7 @@ function Td(e, t, r, i) {
|
|
|
7404
7405
|
}
|
|
7405
7406
|
//#endregion
|
|
7406
7407
|
//#region src/components/messages/ComposerActionsPopover.vue?vue&type=script&setup=true&lang.ts
|
|
7407
|
-
var
|
|
7408
|
+
var Dd = ["data-testid", "onClick"], Od = { class: "composer-actions-menu__icon" }, kd = { class: "composer-actions-menu__icon" }, Ad = /* @__PURE__ */ u({
|
|
7408
7409
|
__name: "ComposerActionsPopover",
|
|
7409
7410
|
emits: ["pickFile", "openPoll"],
|
|
7410
7411
|
setup(t, { expose: n, emit: i }) {
|
|
@@ -7469,18 +7470,18 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7469
7470
|
class: "composer-actions-menu__item",
|
|
7470
7471
|
"data-testid": e.testId,
|
|
7471
7472
|
onClick: (t) => h(e.kind)
|
|
7472
|
-
}, [o("span",
|
|
7473
|
+
}, [o("span", Od, [(S(), r(D(e.icon), { class: "size-5" }))]), o("span", null, k(j(u)(e.label)), 1)], 8, Dd)), 64)), o("button", {
|
|
7473
7474
|
type: "button",
|
|
7474
7475
|
class: "composer-actions-menu__item",
|
|
7475
7476
|
"data-testid": "composer-create-poll",
|
|
7476
7477
|
onClick: g
|
|
7477
|
-
}, [o("span",
|
|
7478
|
+
}, [o("span", kd, [(S(), r(D(j(ce)), { class: "size-5" }))]), o("span", null, k(j(u)("createPoll")), 1)])], 512)), [[F, c.value]]);
|
|
7478
7479
|
}
|
|
7479
|
-
}),
|
|
7480
|
+
}), jd = (e, t) => {
|
|
7480
7481
|
let n = e.__vccOpts || e;
|
|
7481
7482
|
for (let [e, r] of t) n[e] = r;
|
|
7482
7483
|
return n;
|
|
7483
|
-
},
|
|
7484
|
+
}, Md = /* @__PURE__ */ jd(Ad, [["__scopeId", "data-v-5e8b1d79"]]), Nd = { class: "border-default flex items-start justify-between gap-2 border-t-1 px-3 py-2" }, Pd = { class: "min-w-0" }, Fd = { class: "body-md text-default mt-0.5 overflow-hidden font-medium text-ellipsis whitespace-nowrap" }, Id = { class: "body-md text-subtle overflow-hidden text-ellipsis whitespace-nowrap" }, Ld = /* @__PURE__ */ u({
|
|
7484
7485
|
__name: "ComposerContextBanner",
|
|
7485
7486
|
props: {
|
|
7486
7487
|
message: {},
|
|
@@ -7490,10 +7491,10 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7490
7491
|
emits: ["cancel"],
|
|
7491
7492
|
setup(e, { emit: t }) {
|
|
7492
7493
|
let r = e, i = t, { t: s } = X(), c = Gu(), u = n(() => nc(r.message, s("message"), c.mentionNameByUid.value));
|
|
7493
|
-
return (t, n) => (S(), a("div",
|
|
7494
|
+
return (t, n) => (S(), a("div", Nd, [o("div", Pd, [
|
|
7494
7495
|
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),
|
|
7495
|
-
o("p",
|
|
7496
|
-
o("p",
|
|
7496
|
+
o("p", Fd, k(e.message.senderName), 1),
|
|
7497
|
+
o("p", Id, k(u.value), 1)
|
|
7497
7498
|
]), l(j(V), {
|
|
7498
7499
|
icon: j(de),
|
|
7499
7500
|
text: "",
|
|
@@ -7502,10 +7503,10 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7502
7503
|
onClick: n[0] ||= (e) => i("cancel")
|
|
7503
7504
|
}, null, 8, ["icon"])]));
|
|
7504
7505
|
}
|
|
7505
|
-
}),
|
|
7506
|
+
}), Rd = ["aria-label"], zd = { class: "format-menu__label" }, Bd = ["aria-label"], Vd = { class: "format-menu__label" }, Hd = ["aria-label"], Ud = { class: "format-menu__label" }, Wd = ["aria-label"], Gd = {
|
|
7506
7507
|
class: "format-menu__icon",
|
|
7507
7508
|
"aria-hidden": "true"
|
|
7508
|
-
},
|
|
7509
|
+
}, Kd = { class: "format-menu__label" }, qd = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
7509
7510
|
__name: "ComposerFormatMenu",
|
|
7510
7511
|
props: {
|
|
7511
7512
|
visible: { type: Boolean },
|
|
@@ -7532,7 +7533,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7532
7533
|
}, [u[12] ||= o("span", {
|
|
7533
7534
|
class: "format-menu__icon font-bold",
|
|
7534
7535
|
"aria-hidden": "true"
|
|
7535
|
-
}, "B", -1), o("span",
|
|
7536
|
+
}, "B", -1), o("span", zd, k(j(c)("bold")), 1)], 40, Rd),
|
|
7536
7537
|
o("button", {
|
|
7537
7538
|
type: "button",
|
|
7538
7539
|
class: "format-menu__item",
|
|
@@ -7543,7 +7544,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7543
7544
|
}, [u[13] ||= o("span", {
|
|
7544
7545
|
class: "format-menu__icon italic",
|
|
7545
7546
|
"aria-hidden": "true"
|
|
7546
|
-
}, "I", -1), o("span",
|
|
7547
|
+
}, "I", -1), o("span", Vd, k(j(c)("italic")), 1)], 40, Bd),
|
|
7547
7548
|
o("button", {
|
|
7548
7549
|
type: "button",
|
|
7549
7550
|
class: "format-menu__item",
|
|
@@ -7554,7 +7555,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7554
7555
|
}, [u[14] ||= o("span", {
|
|
7555
7556
|
class: "format-menu__icon underline",
|
|
7556
7557
|
"aria-hidden": "true"
|
|
7557
|
-
}, "U", -1), o("span",
|
|
7558
|
+
}, "U", -1), o("span", Ud, k(j(c)("underline")), 1)], 40, Hd),
|
|
7558
7559
|
o("button", {
|
|
7559
7560
|
type: "button",
|
|
7560
7561
|
class: "format-menu__item",
|
|
@@ -7562,16 +7563,16 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7562
7563
|
onPointerdown: u[9] ||= z(() => {}, ["prevent"]),
|
|
7563
7564
|
onMousedown: u[10] ||= z(() => {}, ["prevent"]),
|
|
7564
7565
|
onClick: u[11] ||= (e) => s("link")
|
|
7565
|
-
}, [o("span",
|
|
7566
|
+
}, [o("span", Gd, [l(j(Ee), { "aria-hidden": "true" })]), o("span", Kd, k(j(c)("link")), 1)], 40, Wd)
|
|
7566
7567
|
], 6)) : i("", !0)]));
|
|
7567
7568
|
}
|
|
7568
|
-
}), [["__scopeId", "data-v-
|
|
7569
|
+
}), [["__scopeId", "data-v-4151ff5d"]]), Jd = { class: "space-y-4" }, Yd = {
|
|
7569
7570
|
key: 0,
|
|
7570
7571
|
class: "body-md text-subtle truncate"
|
|
7571
|
-
},
|
|
7572
|
+
}, Xd = { class: "space-y-2" }, Zd = { class: "heading-sm text-subtle block font-medium!" }, Qd = {
|
|
7572
7573
|
key: 0,
|
|
7573
7574
|
class: "body-sm text-danger"
|
|
7574
|
-
},
|
|
7575
|
+
}, $d = /* @__PURE__ */ u({
|
|
7575
7576
|
__name: "ComposerLinkDialog",
|
|
7576
7577
|
props: {
|
|
7577
7578
|
visible: { type: Boolean },
|
|
@@ -7619,8 +7620,8 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7619
7620
|
"icon",
|
|
7620
7621
|
"disabled"
|
|
7621
7622
|
])]),
|
|
7622
|
-
default: L(() => [o("div",
|
|
7623
|
-
o("label",
|
|
7623
|
+
default: L(() => [o("div", Jd, [e.selectedText ? (S(), a("p", Yd, k(e.selectedText), 1)) : i("", !0), o("div", Xd, [
|
|
7624
|
+
o("label", Zd, k(j(d)("linkUrl")), 1),
|
|
7624
7625
|
l(j(re), {
|
|
7625
7626
|
modelValue: p.value,
|
|
7626
7627
|
"onUpdate:modelValue": n[0] ||= (e) => p.value = e,
|
|
@@ -7640,12 +7641,12 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7640
7641
|
"placeholder",
|
|
7641
7642
|
"onKeydown"
|
|
7642
7643
|
]),
|
|
7643
|
-
_.value ? (S(), a("p",
|
|
7644
|
+
_.value ? (S(), a("p", Qd, k(j(d)("invalidLinkUrl")), 1)) : i("", !0)
|
|
7644
7645
|
])])]),
|
|
7645
7646
|
_: 1
|
|
7646
7647
|
}, 8, ["visible", "header"]));
|
|
7647
7648
|
}
|
|
7648
|
-
}),
|
|
7649
|
+
}), ef = { class: "space-y-6" }, tf = { class: "space-y-2" }, nf = { class: "heading-sm text-subtle block font-medium!" }, rf = { class: "space-y-2" }, af = { class: "heading-sm text-subtle block font-medium!" }, of = /* @__PURE__ */ u({
|
|
7649
7650
|
__name: "ComposerPollDialog",
|
|
7650
7651
|
props: {
|
|
7651
7652
|
visible: { type: Boolean },
|
|
@@ -7697,13 +7698,13 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7697
7698
|
"icon",
|
|
7698
7699
|
"disabled"
|
|
7699
7700
|
])]),
|
|
7700
|
-
default: L(() => [o("div",
|
|
7701
|
+
default: L(() => [o("div", ef, [o("div", tf, [o("label", nf, k(j(d)("question")), 1), l(j(re), {
|
|
7701
7702
|
modelValue: f.value,
|
|
7702
7703
|
"onUpdate:modelValue": i[0] ||= (e) => f.value = e,
|
|
7703
7704
|
fluid: "",
|
|
7704
7705
|
placeholder: j(d)("pollQuestionPlaceholder")
|
|
7705
|
-
}, null, 8, ["modelValue", "placeholder"])]), o("div",
|
|
7706
|
-
o("label",
|
|
7706
|
+
}, null, 8, ["modelValue", "placeholder"])]), o("div", rf, [
|
|
7707
|
+
o("label", af, k(j(d)("options")), 1),
|
|
7707
7708
|
(S(!0), a(e, null, T(p.value, (e, t) => (S(), a("div", {
|
|
7708
7709
|
key: t,
|
|
7709
7710
|
class: "center"
|
|
@@ -7738,7 +7739,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7738
7739
|
_: 1
|
|
7739
7740
|
}, 8, ["visible", "header"]));
|
|
7740
7741
|
}
|
|
7741
|
-
}),
|
|
7742
|
+
}), sf = { class: "w-full space-y-6" }, cf = { class: "w-full space-y-2" }, lf = { class: "heading-sm text-subtle block font-medium!" }, uf = { class: "center left w-full gap-2" }, df = { class: "body-md bg-elevation-surface-sunken-default rounded-lg px-4 py-3" }, ff = /* @__PURE__ */ u({
|
|
7742
7743
|
__name: "ComposerScheduleDialog",
|
|
7743
7744
|
props: {
|
|
7744
7745
|
visible: { type: Boolean },
|
|
@@ -7796,7 +7797,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7796
7797
|
"icon",
|
|
7797
7798
|
"disabled"
|
|
7798
7799
|
])]),
|
|
7799
|
-
default: L(() => [o("div",
|
|
7800
|
+
default: L(() => [o("div", sf, [o("div", cf, [o("label", lf, k(j(c)("sendAt")), 1), o("div", uf, [l(j(ne), {
|
|
7800
7801
|
modelValue: u.value,
|
|
7801
7802
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
7802
7803
|
class: "w-full flex-1",
|
|
@@ -7810,22 +7811,22 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7810
7811
|
mask: "##:##",
|
|
7811
7812
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
7812
7813
|
"aria-label": "Time (24-hour)"
|
|
7813
|
-
}, null, 8, ["modelValue"])])]), o("div",
|
|
7814
|
+
}, null, 8, ["modelValue"])])]), o("div", df, k(e.contentPreview), 1)])]),
|
|
7814
7815
|
_: 1
|
|
7815
7816
|
}, 8, ["visible", "header"]));
|
|
7816
7817
|
}
|
|
7817
|
-
}),
|
|
7818
|
+
}), pf = [
|
|
7818
7819
|
"aria-selected",
|
|
7819
7820
|
"onMouseover",
|
|
7820
7821
|
"onMousedown"
|
|
7821
|
-
],
|
|
7822
|
+
], mf = {
|
|
7822
7823
|
key: 1,
|
|
7823
7824
|
class: "trigger-menu__avatar-fallback",
|
|
7824
7825
|
"aria-hidden": "true"
|
|
7825
|
-
},
|
|
7826
|
+
}, hf = { class: "min-w-0" }, gf = { class: "trigger-menu__label" }, _f = {
|
|
7826
7827
|
key: 0,
|
|
7827
7828
|
class: "trigger-menu__subtitle"
|
|
7828
|
-
},
|
|
7829
|
+
}, vf = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
7829
7830
|
__name: "ComposerTriggerMenu",
|
|
7830
7831
|
props: /* @__PURE__ */ m({
|
|
7831
7832
|
visible: { type: Boolean },
|
|
@@ -7860,18 +7861,18 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7860
7861
|
src: e.avatar,
|
|
7861
7862
|
name: e.label,
|
|
7862
7863
|
size: "sm"
|
|
7863
|
-
}, null, 8, ["src", "name"])) : (S(), a("span",
|
|
7864
|
+
}, null, 8, ["src", "name"])) : (S(), a("span", mf, k(e.label.charAt(0)), 1)), o("span", hf, [o("span", gf, k(e.label), 1), e.subtitle ? (S(), a("span", _f, k(e.subtitle), 1)) : i("", !0)])], 42, pf))), 128))], 38)) : i("", !0)]));
|
|
7864
7865
|
}
|
|
7865
|
-
}), [["__scopeId", "data-v-9cc0f5b0"]]),
|
|
7866
|
+
}), [["__scopeId", "data-v-9cc0f5b0"]]), yf = ["accept", "disabled"], bf = { class: "px-1 pb-1.5" }, xf = {
|
|
7866
7867
|
key: 0,
|
|
7867
7868
|
class: "composer-file-preview"
|
|
7868
|
-
},
|
|
7869
|
+
}, Sf = { class: "min-w-0" }, Cf = { class: "heading-sm text-default truncate" }, wf = { class: "body-sm text-subtle" }, Tf = ["data-placeholder"], Ef = {
|
|
7869
7870
|
key: 0,
|
|
7870
7871
|
class: "body-sm text-subtle flex items-center gap-2 px-0.5"
|
|
7871
|
-
},
|
|
7872
|
+
}, Df = {
|
|
7872
7873
|
key: 2,
|
|
7873
7874
|
class: "ml-auto"
|
|
7874
|
-
},
|
|
7875
|
+
}, Of = 450, kf = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
7875
7876
|
__name: "MessageComposer",
|
|
7876
7877
|
props: {
|
|
7877
7878
|
modelValue: {},
|
|
@@ -7907,7 +7908,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
7907
7908
|
video: "video/*",
|
|
7908
7909
|
audio: "audio/*",
|
|
7909
7910
|
file: "*/*"
|
|
7910
|
-
}, u = e, d = s, f = w(null), m = w(null), _ = w(null), v = w("file"), y = w(!1), b = w(!1), x = w(!1), C = w(""), T = w(""), E = w(!1), { t: D } = X(), { isTouchUI: O } = vd(), A = null, M = w(null), N = w(null), P = w(null), { applyLink: F, applyFormat: L, cancelLink: ee, editorKey: R, formatMenuPosition: B, focusEditor: H, handleContextMenu: U, handleInput: te, handleKeydown: ne, handlePaste: re, hideFormatMenu: ie, getSelectionState: ae, requestLink: W, resetEditor: K, showFormatMenu: q, triggerCandidates: se, triggerMenuPosition: ce, highlightedTriggerIndex: le, showTriggerMenu: fe, selectTriggerCandidate: pe } =
|
|
7911
|
+
}, u = e, d = s, f = w(null), m = w(null), _ = w(null), v = w("file"), y = w(!1), b = w(!1), x = w(!1), C = w(""), T = w(""), E = w(!1), { t: D } = X(), { isTouchUI: O } = vd(), A = null, M = w(null), N = w(null), P = w(null), { applyLink: F, applyFormat: L, cancelLink: ee, editorKey: R, formatMenuPosition: B, focusEditor: H, handleContextMenu: U, handleInput: te, handleKeydown: ne, handlePaste: re, hideFormatMenu: ie, getSelectionState: ae, requestLink: W, resetEditor: K, showFormatMenu: q, triggerCandidates: se, triggerMenuPosition: ce, highlightedTriggerIndex: le, showTriggerMenu: fe, selectTriggerCandidate: pe } = Ed(M, N, P, {
|
|
7911
7912
|
getModelValue: () => u.modelValue,
|
|
7912
7913
|
updateModelValue: (e) => d("update:modelValue", e),
|
|
7913
7914
|
submit: () => Le(),
|
|
@@ -8031,7 +8032,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8031
8032
|
function Y(e) {
|
|
8032
8033
|
u.disabled || !be.value || e instanceof MouseEvent && e.button !== 0 || (E.value = !1, Ve(), A = setTimeout(() => {
|
|
8033
8034
|
A = null, E.value = !0, b.value = !0;
|
|
8034
|
-
},
|
|
8035
|
+
}, Of));
|
|
8035
8036
|
}
|
|
8036
8037
|
function He() {
|
|
8037
8038
|
Ve();
|
|
@@ -8055,15 +8056,15 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8055
8056
|
disabled: e.disabled,
|
|
8056
8057
|
onChange: Te,
|
|
8057
8058
|
onCancel: Ce
|
|
8058
|
-
}, null, 40,
|
|
8059
|
-
e.editingMessage ? (S(), r(
|
|
8059
|
+
}, null, 40, yf),
|
|
8060
|
+
e.editingMessage ? (S(), r(Ld, {
|
|
8060
8061
|
key: 0,
|
|
8061
8062
|
message: e.editingMessage,
|
|
8062
8063
|
variant: "editing",
|
|
8063
8064
|
"context-label": e.contextLabel,
|
|
8064
8065
|
onCancel: n[0] ||= (e) => d("cancelEdit")
|
|
8065
8066
|
}, null, 8, ["message", "context-label"])) : i("", !0),
|
|
8066
|
-
e.replyToMessage ? (S(), r(
|
|
8067
|
+
e.replyToMessage ? (S(), r(Ld, {
|
|
8067
8068
|
key: 1,
|
|
8068
8069
|
message: e.replyToMessage,
|
|
8069
8070
|
variant: "replying",
|
|
@@ -8071,8 +8072,8 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8071
8072
|
"data-testid": "composer-reply-context",
|
|
8072
8073
|
onCancel: n[1] ||= (e) => d("cancelReply")
|
|
8073
8074
|
}, null, 8, ["message", "context-label"])) : i("", !0),
|
|
8074
|
-
o("div",
|
|
8075
|
-
_.value ? (S(), a("div",
|
|
8075
|
+
o("div", bf, [
|
|
8076
|
+
_.value ? (S(), a("div", xf, [o("div", Sf, [o("p", Cf, k(_.value.name), 1), o("p", wf, k(_.value.type || ge.value), 1)]), l(j(V), {
|
|
8076
8077
|
icon: j(de),
|
|
8077
8078
|
text: "",
|
|
8078
8079
|
rounded: "",
|
|
@@ -8084,7 +8085,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8084
8085
|
ref: M,
|
|
8085
8086
|
class: g(["composer-shell", u.compact ? "composer-shell--compact" : "composer-shell--default"])
|
|
8086
8087
|
}, [
|
|
8087
|
-
l(
|
|
8088
|
+
l(Md, {
|
|
8088
8089
|
ref_key: "composerActionsRef",
|
|
8089
8090
|
ref: m,
|
|
8090
8091
|
onPickFile: we,
|
|
@@ -8121,8 +8122,8 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8121
8122
|
onKeydown: n[6] ||= (...e) => j(ne) && j(ne)(...e),
|
|
8122
8123
|
onPaste: Ee,
|
|
8123
8124
|
onContextmenu: n[7] ||= (...e) => j(U) && j(U)(...e)
|
|
8124
|
-
}, null, 42,
|
|
8125
|
-
_.value || e.editingMessage || e.contextLabel || e.offlineMode ? (S(), a("div",
|
|
8125
|
+
}, null, 42, Tf)),
|
|
8126
|
+
_.value || e.editingMessage || e.contextLabel || e.offlineMode ? (S(), a("div", Ef, [
|
|
8126
8127
|
e.editingMessage ? (S(), r(j(G), {
|
|
8127
8128
|
key: 0,
|
|
8128
8129
|
text: j(D)("editing"),
|
|
@@ -8139,7 +8140,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8139
8140
|
size: "sm",
|
|
8140
8141
|
class: "composer-meta-tag"
|
|
8141
8142
|
}, null, 8, ["text"])) : i("", !0),
|
|
8142
|
-
e.offlineMode ? (S(), a("p",
|
|
8143
|
+
e.offlineMode ? (S(), a("p", Df, k(e.pendingQueueCount ? j(D)("offlineQueued", { count: e.pendingQueueCount }) : j(D)("offline")), 1)) : i("", !0)
|
|
8143
8144
|
])) : i("", !0),
|
|
8144
8145
|
e.showScheduledButton ? (S(), r(j(V), {
|
|
8145
8146
|
key: 1,
|
|
@@ -8179,7 +8180,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8179
8180
|
"icon"
|
|
8180
8181
|
])
|
|
8181
8182
|
], 2),
|
|
8182
|
-
e.formattingMode === "external" ? i("", !0) : (S(), r(
|
|
8183
|
+
e.formattingMode === "external" ? i("", !0) : (S(), r(qd, {
|
|
8183
8184
|
key: 1,
|
|
8184
8185
|
visible: j(q),
|
|
8185
8186
|
position: j(B),
|
|
@@ -8190,7 +8191,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8190
8191
|
"position",
|
|
8191
8192
|
"onLink"
|
|
8192
8193
|
])),
|
|
8193
|
-
l(
|
|
8194
|
+
l(vf, {
|
|
8194
8195
|
ref_key: "triggerMenuRef",
|
|
8195
8196
|
ref: P,
|
|
8196
8197
|
"highlighted-index": j(le),
|
|
@@ -8205,13 +8206,13 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8205
8206
|
"position",
|
|
8206
8207
|
"candidates"
|
|
8207
8208
|
]),
|
|
8208
|
-
l(
|
|
8209
|
+
l(of, {
|
|
8209
8210
|
visible: y.value,
|
|
8210
8211
|
"onUpdate:visible": n[12] ||= (e) => y.value = e,
|
|
8211
8212
|
disabled: e.disabled,
|
|
8212
8213
|
onSend: Re
|
|
8213
8214
|
}, null, 8, ["visible", "disabled"]),
|
|
8214
|
-
e.formattingMode === "external" ? i("", !0) : (S(), r(
|
|
8215
|
+
e.formattingMode === "external" ? i("", !0) : (S(), r($d, {
|
|
8215
8216
|
key: 2,
|
|
8216
8217
|
visible: x.value,
|
|
8217
8218
|
"onUpdate:visible": n[13] ||= (e) => x.value = e,
|
|
@@ -8226,7 +8227,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8226
8227
|
"initial-url",
|
|
8227
8228
|
"selected-text"
|
|
8228
8229
|
])),
|
|
8229
|
-
l(
|
|
8230
|
+
l(ff, {
|
|
8230
8231
|
visible: b.value,
|
|
8231
8232
|
"onUpdate:visible": n[14] ||= (e) => b.value = e,
|
|
8232
8233
|
disabled: e.disabled,
|
|
@@ -8242,10 +8243,10 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8242
8243
|
])
|
|
8243
8244
|
], 2));
|
|
8244
8245
|
}
|
|
8245
|
-
}), [["__scopeId", "data-v-50a9c196"]]),
|
|
8246
|
+
}), [["__scopeId", "data-v-50a9c196"]]), Af = {
|
|
8246
8247
|
key: 1,
|
|
8247
8248
|
class: "composer-readonly-notice"
|
|
8248
|
-
},
|
|
8249
|
+
}, jf = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
8249
8250
|
__name: "ConversationComposer",
|
|
8250
8251
|
props: {
|
|
8251
8252
|
target: {},
|
|
@@ -8334,7 +8335,7 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8334
8335
|
focusEditor: ee,
|
|
8335
8336
|
getComposerSelection: H,
|
|
8336
8337
|
requestComposerLink: z
|
|
8337
|
-
}), (t, n) => x.value ? (S(), r(
|
|
8338
|
+
}), (t, n) => x.value ? (S(), r(kf, {
|
|
8338
8339
|
key: 0,
|
|
8339
8340
|
ref_key: "composerRef",
|
|
8340
8341
|
ref: L,
|
|
@@ -8375,10 +8376,10 @@ var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon"
|
|
|
8375
8376
|
"mention-name-by-uid",
|
|
8376
8377
|
"mentions-enabled",
|
|
8377
8378
|
"formatting-mode"
|
|
8378
|
-
])) : C.value ? (S(), a("div",
|
|
8379
|
+
])) : C.value ? (S(), a("div", Af, k(h.value ? j(l)("repliesDisabledInChannels") : j(l)("readOnlyChannel")), 1)) : i("", !0);
|
|
8379
8380
|
}
|
|
8380
|
-
}), [["__scopeId", "data-v-924c6768"]]),
|
|
8381
|
-
function
|
|
8381
|
+
}), [["__scopeId", "data-v-924c6768"]]), Mf = 1800;
|
|
8382
|
+
function Nf(e) {
|
|
8382
8383
|
let t = e.actionMenuRef, n = w(null), r = w(null), i = w({}), { isTouchUI: a } = vd(), o = null;
|
|
8383
8384
|
function s(e) {
|
|
8384
8385
|
return e.kind === "text" && ec(e.text);
|
|
@@ -8514,7 +8515,7 @@ function Mf(e) {
|
|
|
8514
8515
|
}
|
|
8515
8516
|
r.value = e.id, o && clearTimeout(o), o = setTimeout(() => {
|
|
8516
8517
|
r.value = null;
|
|
8517
|
-
},
|
|
8518
|
+
}, Mf), b();
|
|
8518
8519
|
}
|
|
8519
8520
|
function E(t) {
|
|
8520
8521
|
e.canReply() && (e.emit.reply(t), b());
|
|
@@ -8627,8 +8628,8 @@ function Mf(e) {
|
|
|
8627
8628
|
}
|
|
8628
8629
|
//#endregion
|
|
8629
8630
|
//#region src/composables/useMessageListScroll.ts
|
|
8630
|
-
var
|
|
8631
|
-
function
|
|
8631
|
+
var Pf = 1, Ff = 2, If = 80, Lf = 1800, Rf = 4;
|
|
8632
|
+
function zf(e) {
|
|
8632
8633
|
let t = e.threadRef, n = !0, r = 0, i = null, a = null, o = null, s = null;
|
|
8633
8634
|
function c() {
|
|
8634
8635
|
o != null && (cancelAnimationFrame(o), o = null);
|
|
@@ -8670,7 +8671,7 @@ function Rf(e) {
|
|
|
8670
8671
|
resizeObserver: o,
|
|
8671
8672
|
timeoutId: setTimeout(() => {
|
|
8672
8673
|
f();
|
|
8673
|
-
},
|
|
8674
|
+
}, Lf)
|
|
8674
8675
|
}, a(), o.observe(e);
|
|
8675
8676
|
}
|
|
8676
8677
|
function m() {
|
|
@@ -8681,9 +8682,9 @@ function Rf(e) {
|
|
|
8681
8682
|
let a = t.value;
|
|
8682
8683
|
if (!a) return;
|
|
8683
8684
|
let o = a.scrollTop;
|
|
8684
|
-
i?.el === a && Math.abs(o - i.expectedScrollTop) >
|
|
8685
|
+
i?.el === a && Math.abs(o - i.expectedScrollTop) > Rf && f();
|
|
8685
8686
|
let s = o < r, c = Math.max(0, a.scrollHeight - o - a.clientHeight);
|
|
8686
|
-
s && c >
|
|
8687
|
+
s && c > Pf ? n = !1 : c <= Ff && (n = !0), r = o, a.scrollTop <= If && !e.isLoading() && !e.isLoadingOlder() && e.canLoadOlder() && e.onLoadOlder();
|
|
8687
8688
|
}
|
|
8688
8689
|
return I(() => {
|
|
8689
8690
|
let t = e.getMessages();
|
|
@@ -8711,14 +8712,14 @@ function Rf(e) {
|
|
|
8711
8712
|
}
|
|
8712
8713
|
//#endregion
|
|
8713
8714
|
//#region src/composables/useImageZoom.ts
|
|
8714
|
-
var
|
|
8715
|
-
function
|
|
8715
|
+
var Bf = 1, Vf = 4;
|
|
8716
|
+
function Hf(e) {
|
|
8716
8717
|
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;
|
|
8717
8718
|
function h(e, t, n) {
|
|
8718
8719
|
return Math.min(Math.max(e, t), n);
|
|
8719
8720
|
}
|
|
8720
8721
|
function g(e) {
|
|
8721
|
-
return h(e,
|
|
8722
|
+
return h(e, Bf, Vf);
|
|
8722
8723
|
}
|
|
8723
8724
|
function _(n, r, i = t.value) {
|
|
8724
8725
|
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);
|
|
@@ -8808,10 +8809,10 @@ function Vf(e) {
|
|
|
8808
8809
|
}
|
|
8809
8810
|
//#endregion
|
|
8810
8811
|
//#region src/components/overlays/FullscreenDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8811
|
-
var
|
|
8812
|
+
var Uf = { class: "w-full" }, Wf = {
|
|
8812
8813
|
key: 0,
|
|
8813
8814
|
class: "fullscreen-dialog__footer"
|
|
8814
|
-
},
|
|
8815
|
+
}, Gf = /* @__PURE__ */ u({
|
|
8815
8816
|
__name: "FullscreenDialog",
|
|
8816
8817
|
props: {
|
|
8817
8818
|
open: { type: Boolean },
|
|
@@ -8836,34 +8837,34 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
8836
8837
|
closable: !0,
|
|
8837
8838
|
"onUpdate:visible": s
|
|
8838
8839
|
}, {
|
|
8839
|
-
default: L(() => [o("div",
|
|
8840
|
+
default: L(() => [o("div", Uf, [E(t.$slots, "default")]), t.$slots.footer ? (S(), a("div", Wf, [E(t.$slots, "footer")])) : i("", !0)]),
|
|
8840
8841
|
_: 3
|
|
8841
8842
|
}, 8, ["visible", "header"]));
|
|
8842
8843
|
}
|
|
8843
|
-
}),
|
|
8844
|
+
}), Kf = ["href"], qf = { class: "media-viewer-shell flex min-h-0 flex-1 items-center justify-center overflow-hidden" }, Jf = ["src", "alt"], Yf = {
|
|
8844
8845
|
key: 1,
|
|
8845
8846
|
class: "media-viewer-stage media-viewer-stage-video flex w-full items-center justify-center"
|
|
8846
|
-
},
|
|
8847
|
+
}, Xf = {
|
|
8847
8848
|
class: "max-h-full w-full bg-black",
|
|
8848
8849
|
controls: "",
|
|
8849
8850
|
playsinline: "",
|
|
8850
8851
|
autoplay: ""
|
|
8851
|
-
},
|
|
8852
|
+
}, Zf = ["src", "type"], Qf = {
|
|
8852
8853
|
key: 2,
|
|
8853
8854
|
class: "media-viewer-stage media-viewer-audio-stage flex w-full items-center justify-center px-5 py-6"
|
|
8854
|
-
},
|
|
8855
|
+
}, $f = {
|
|
8855
8856
|
class: "w-full",
|
|
8856
8857
|
controls: "",
|
|
8857
8858
|
autoplay: ""
|
|
8858
|
-
},
|
|
8859
|
+
}, ep = ["src", "type"], tp = {
|
|
8859
8860
|
key: 0,
|
|
8860
8861
|
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"
|
|
8861
|
-
},
|
|
8862
|
+
}, np = { class: "min-w-0 flex-1" }, rp = { class: "heading-sm text-default truncate" }, ip = { class: "body-sm text-subtle" }, ap = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
8862
8863
|
__name: "MediaViewerDialog",
|
|
8863
8864
|
props: { attachment: {} },
|
|
8864
8865
|
emits: ["close"],
|
|
8865
8866
|
setup(t, { emit: s }) {
|
|
8866
|
-
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: _ } = X(), { scale: y, translateX: b, translateY: x, isDragging: C, resetTransform: T, handlePointerDown: E, handlePointerMove: O, handlePointerUp: A, handlePointerCancel: M, handleWheel: N, handleDoubleClick: P } =
|
|
8867
|
+
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: _ } = X(), { scale: y, translateX: b, translateY: x, isDragging: C, resetTransform: T, handlePointerDown: E, handlePointerMove: O, handlePointerUp: A, handlePointerCancel: M, handleWheel: N, handleDoubleClick: P } = Hf({
|
|
8867
8868
|
viewportRef: u,
|
|
8868
8869
|
imageRef: d,
|
|
8869
8870
|
isImage: () => p.value
|
|
@@ -8874,7 +8875,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
8874
8875
|
function F() {
|
|
8875
8876
|
l("close");
|
|
8876
8877
|
}
|
|
8877
|
-
return (n, s) => (S(), r(
|
|
8878
|
+
return (n, s) => (S(), r(Gf, {
|
|
8878
8879
|
open: f.value,
|
|
8879
8880
|
title: t.attachment?.name || j(_)("attachment"),
|
|
8880
8881
|
subtitle: t.attachment?.kind || "",
|
|
@@ -8891,9 +8892,9 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
8891
8892
|
}, [(S(), r(D(j(Oe)), {
|
|
8892
8893
|
class: "size-4",
|
|
8893
8894
|
"aria-hidden": "true"
|
|
8894
|
-
})), o("span", null, k(j(_)("openInNewTab")), 1)], 8,
|
|
8895
|
-
footer: L(() => [t.attachment ? (S(), a("div",
|
|
8896
|
-
default: L(() => [o("div",
|
|
8895
|
+
})), o("span", null, k(j(_)("openInNewTab")), 1)], 8, Kf)) : i("", !0)]),
|
|
8896
|
+
footer: L(() => [t.attachment ? (S(), a("div", tp, [o("div", np, [o("p", rp, k(t.attachment.name), 1), o("p", ip, k(t.attachment.kind), 1)])])) : i("", !0)]),
|
|
8897
|
+
default: L(() => [o("div", qf, [t.attachment?.url ? (S(), a(e, { key: 0 }, [p.value ? (S(), a("div", {
|
|
8897
8898
|
key: 0,
|
|
8898
8899
|
ref_key: "viewportRef",
|
|
8899
8900
|
ref: u,
|
|
@@ -8916,13 +8917,13 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
8916
8917
|
transform: `translate3d(${j(b)}px, ${j(x)}px, 0) scale(${j(y)})`,
|
|
8917
8918
|
transformOrigin: "center center"
|
|
8918
8919
|
})
|
|
8919
|
-
}, null, 14,
|
|
8920
|
+
}, null, 14, Jf)], 544)) : m.value ? (S(), a("div", Yf, [o("video", Xf, [o("source", {
|
|
8920
8921
|
src: t.attachment.url,
|
|
8921
8922
|
type: t.attachment.mimeType || void 0
|
|
8922
|
-
}, null, 8,
|
|
8923
|
+
}, null, 8, Zf)])])) : h.value ? (S(), a("div", Qf, [o("audio", $f, [o("source", {
|
|
8923
8924
|
src: t.attachment.url,
|
|
8924
8925
|
type: t.attachment.mimeType || void 0
|
|
8925
|
-
}, null, 8,
|
|
8926
|
+
}, null, 8, ep)])])) : i("", !0)], 64)) : i("", !0)])]),
|
|
8926
8927
|
_: 1
|
|
8927
8928
|
}, 8, [
|
|
8928
8929
|
"open",
|
|
@@ -8932,7 +8933,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
8932
8933
|
"close-aria-label"
|
|
8933
8934
|
]));
|
|
8934
8935
|
}
|
|
8935
|
-
}), [["__scopeId", "data-v-0e82cfd0"]]),
|
|
8936
|
+
}), [["__scopeId", "data-v-0e82cfd0"]]), op = { class: "date-separator" }, sp = { class: "date-separator__label" }, cp = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
8936
8937
|
__name: "MessageDateSeparator",
|
|
8937
8938
|
props: { date: {} },
|
|
8938
8939
|
setup(e) {
|
|
@@ -8946,24 +8947,24 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
8946
8947
|
year: "numeric"
|
|
8947
8948
|
}).format(n);
|
|
8948
8949
|
});
|
|
8949
|
-
return (e, t) => (S(), a("div",
|
|
8950
|
+
return (e, t) => (S(), a("div", op, [o("span", sp, k(s.value), 1)]));
|
|
8950
8951
|
}
|
|
8951
|
-
}), [["__scopeId", "data-v-49e72d67"]]),
|
|
8952
|
+
}), [["__scopeId", "data-v-49e72d67"]]), lp = {
|
|
8952
8953
|
"data-testid": "action-message",
|
|
8953
8954
|
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"
|
|
8954
|
-
},
|
|
8955
|
+
}, up = { class: "message-action-row__text" }, dp = /* @__PURE__ */ u({
|
|
8955
8956
|
__name: "ActionMessageRow",
|
|
8956
8957
|
props: { text: {} },
|
|
8957
8958
|
setup(e) {
|
|
8958
|
-
return (t, n) => (S(), a("div",
|
|
8959
|
+
return (t, n) => (S(), a("div", lp, [o("span", up, k(e.text), 1)]));
|
|
8959
8960
|
}
|
|
8960
|
-
}),
|
|
8961
|
+
}), fp = ["href"], pp = {
|
|
8961
8962
|
key: 0,
|
|
8962
8963
|
class: "bg-elevation-surface-hovered aspect-[1.9/1] w-full overflow-hidden"
|
|
8963
|
-
},
|
|
8964
|
+
}, mp = ["src", "alt"], hp = { class: "space-y-1.5 px-3 py-3" }, gp = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, _p = { class: "heading-sm text-default line-clamp-2" }, vp = { class: "body-md text-subtle line-clamp-2" }, yp = {
|
|
8964
8965
|
key: 0,
|
|
8965
8966
|
class: "body-sm text-subtlest"
|
|
8966
|
-
},
|
|
8967
|
+
}, bp = /* @__PURE__ */ u({
|
|
8967
8968
|
__name: "LinkPreviewCard",
|
|
8968
8969
|
props: {
|
|
8969
8970
|
url: {},
|
|
@@ -9030,18 +9031,18 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9030
9031
|
target: "_blank",
|
|
9031
9032
|
rel: "noreferrer",
|
|
9032
9033
|
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"])
|
|
9033
|
-
}, [r.value?.imageUrl ? (S(), a("div",
|
|
9034
|
+
}, [r.value?.imageUrl ? (S(), a("div", pp, [o("img", {
|
|
9034
9035
|
src: r.value.imageUrl,
|
|
9035
9036
|
alt: r.value.title || l.value,
|
|
9036
9037
|
class: "h-full w-full object-cover"
|
|
9037
|
-
}, null, 8,
|
|
9038
|
-
o("p",
|
|
9039
|
-
o("p",
|
|
9040
|
-
o("p",
|
|
9041
|
-
s.value && !r.value ? (S(), a("p",
|
|
9042
|
-
])], 10,
|
|
9043
|
-
}
|
|
9044
|
-
}),
|
|
9038
|
+
}, null, 8, mp)])) : i("", !0), o("div", hp, [
|
|
9039
|
+
o("p", gp, k(r.value?.siteName || l.value), 1),
|
|
9040
|
+
o("p", _p, k(r.value?.title || l.value), 1),
|
|
9041
|
+
o("p", vp, k(r.value?.description || u.value), 1),
|
|
9042
|
+
s.value && !r.value ? (S(), a("p", yp, k(j(c)("loadingPreview")), 1)) : i("", !0)
|
|
9043
|
+
])], 10, fp));
|
|
9044
|
+
}
|
|
9045
|
+
}), xp = { class: "linkified-text" }, Sp = ["innerHTML"], Cp = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9045
9046
|
__name: "LinkifiedText",
|
|
9046
9047
|
props: {
|
|
9047
9048
|
text: {},
|
|
@@ -9060,25 +9061,25 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9060
9061
|
let t = e.target;
|
|
9061
9062
|
t.tagName === "A" && d(e, t);
|
|
9062
9063
|
}
|
|
9063
|
-
return (t, n) => (S(), a("div",
|
|
9064
|
+
return (t, n) => (S(), a("div", xp, [o("div", {
|
|
9064
9065
|
class: g(["rich-text-content", e.textClass]),
|
|
9065
9066
|
onClick: f,
|
|
9066
9067
|
innerHTML: l.value
|
|
9067
|
-
}, null, 10,
|
|
9068
|
+
}, null, 10, Sp), e.showPreview !== !1 && u.value ? (S(), r(bp, {
|
|
9068
9069
|
key: 0,
|
|
9069
9070
|
url: u.value,
|
|
9070
9071
|
"is-own": e.isOwn
|
|
9071
9072
|
}, null, 8, ["url", "is-own"])) : i("", !0)]));
|
|
9072
9073
|
}
|
|
9073
|
-
}), [["__scopeId", "data-v-656b44e8"]]),
|
|
9074
|
+
}), [["__scopeId", "data-v-656b44e8"]]), wp = { class: "w-full space-y-1" }, Tp = {
|
|
9074
9075
|
class: "attachment-video",
|
|
9075
9076
|
controls: "",
|
|
9076
9077
|
playsinline: "",
|
|
9077
9078
|
preload: "metadata"
|
|
9078
|
-
},
|
|
9079
|
+
}, Ep = ["src", "type"], Dp = ["onClick"], Op = { class: "inline-flex items-center gap-2 truncate font-medium" }, kp = ["href"], Ap = { class: "flex min-w-0 items-center gap-2" }, jp = { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full" }, Mp = { class: "text-default truncate font-medium" }, Np = { class: "body-sm text-subtle shrink-0" }, Pp = {
|
|
9079
9080
|
key: 4,
|
|
9080
9081
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm"
|
|
9081
|
-
},
|
|
9082
|
+
}, Fp = { 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" }, Lp = { class: "text-default truncate font-medium" }, Rp = { class: "body-sm text-subtle shrink-0" }, zp = 4 / 3, Bp = 16 / 9, Vp = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9082
9083
|
__name: "MessageAttachmentList",
|
|
9083
9084
|
props: { message: {} },
|
|
9084
9085
|
emits: ["openMedia"],
|
|
@@ -9133,12 +9134,12 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9133
9134
|
return n ? t.localeCompare(n, void 0, { sensitivity: "accent" }) !== 0 : !0;
|
|
9134
9135
|
}
|
|
9135
9136
|
function m(e) {
|
|
9136
|
-
return e.width && e.height && e.width > 0 && e.height > 0 ? e.width / e.height : e.kind === "video" ?
|
|
9137
|
+
return e.width && e.height && e.width > 0 && e.height > 0 ? e.width / e.height : e.kind === "video" ? Bp : zp;
|
|
9137
9138
|
}
|
|
9138
9139
|
function h(e) {
|
|
9139
9140
|
return { aspectRatio: String(m(e)) };
|
|
9140
9141
|
}
|
|
9141
|
-
return (n, d) => (S(), a("div",
|
|
9142
|
+
return (n, d) => (S(), a("div", wp, [(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(te), {
|
|
9142
9143
|
key: 0,
|
|
9143
9144
|
preview: "",
|
|
9144
9145
|
src: n.url,
|
|
@@ -9158,34 +9159,34 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9158
9159
|
key: 1,
|
|
9159
9160
|
class: "attachment-media-bleed bg-elevation-surface-default shadow-raised attachment-media-frame group relative overflow-hidden rounded-xl border-0",
|
|
9160
9161
|
style: v(h(n))
|
|
9161
|
-
}, [o("video",
|
|
9162
|
+
}, [o("video", Tp, [o("source", {
|
|
9162
9163
|
src: n.url,
|
|
9163
9164
|
type: n.mimeType || void 0
|
|
9164
|
-
}, null, 8,
|
|
9165
|
+
}, null, 8, Ep)])], 4)) : n.kind === "audio" && n.url ? (S(), a("button", {
|
|
9165
9166
|
key: 2,
|
|
9166
9167
|
type: "button",
|
|
9167
9168
|
class: "flex w-full items-center justify-between gap-3 rounded-2xl px-3 py-2 text-left text-sm transition hover:opacity-90",
|
|
9168
9169
|
onClick: (e) => s("openMedia", n)
|
|
9169
|
-
}, [o("span",
|
|
9170
|
+
}, [o("span", Op, [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, Dp)) : n.url ? (S(), a("a", {
|
|
9170
9171
|
key: 3,
|
|
9171
9172
|
href: n.url,
|
|
9172
9173
|
target: "_blank",
|
|
9173
9174
|
rel: "noreferrer",
|
|
9174
9175
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm no-underline transition hover:opacity-90"
|
|
9175
|
-
}, [o("span",
|
|
9176
|
+
}, [o("span", Ap, [o("span", jp, [(S(), r(D(f(n)), {
|
|
9176
9177
|
class: "size-5",
|
|
9177
9178
|
"aria-hidden": "true"
|
|
9178
|
-
}))]), o("span",
|
|
9179
|
+
}))]), o("span", Mp, k(n.name), 1)]), o("span", Np, k(u(n.size)), 1)], 8, kp)) : (S(), a("div", Pp, [o("span", Fp, [o("span", Ip, [(S(), r(D(f(n)), {
|
|
9179
9180
|
class: "size-5",
|
|
9180
9181
|
"aria-hidden": "true"
|
|
9181
|
-
}))]), o("span",
|
|
9182
|
+
}))]), o("span", Lp, k(n.name), 1)]), o("span", Rp, k(u(n.size) || j(l)("queued")), 1)]))], 64))), 128)), p(t.message) ? (S(), r(Cp, {
|
|
9182
9183
|
key: 0,
|
|
9183
9184
|
text: t.message.text,
|
|
9184
9185
|
"is-own": t.message.isOwn,
|
|
9185
9186
|
"text-class": "whitespace-normal wrap-break-word body-md text-default"
|
|
9186
9187
|
}, null, 8, ["text", "is-own"])) : i("", !0)]));
|
|
9187
9188
|
}
|
|
9188
|
-
}), [["__scopeId", "data-v-5c0ccf0e"]]),
|
|
9189
|
+
}), [["__scopeId", "data-v-5c0ccf0e"]]), Hp = { class: "message-status" }, Up = { key: 0 }, Wp = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9189
9190
|
__name: "MessageDeliveryStatus",
|
|
9190
9191
|
props: { message: {} },
|
|
9191
9192
|
setup(e) {
|
|
@@ -9234,8 +9235,8 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9234
9235
|
};
|
|
9235
9236
|
}
|
|
9236
9237
|
});
|
|
9237
|
-
return (t, n) => (S(), a("div",
|
|
9238
|
-
e.message.isEdited && e.message.kind !== "poll" ? (S(), a("span",
|
|
9238
|
+
return (t, n) => (S(), a("div", Hp, [
|
|
9239
|
+
e.message.isEdited && e.message.kind !== "poll" ? (S(), a("span", Up, k(j(c)("edited")), 1)) : i("", !0),
|
|
9239
9240
|
o("span", null, k(l(e.message.sentAt)), 1),
|
|
9240
9241
|
u.value ? (S(), r(D(u.value.icon), {
|
|
9241
9242
|
key: 1,
|
|
@@ -9250,7 +9251,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9250
9251
|
])) : i("", !0)
|
|
9251
9252
|
]));
|
|
9252
9253
|
}
|
|
9253
|
-
}), [["__scopeId", "data-v-ff4e9daa"]]),
|
|
9254
|
+
}), [["__scopeId", "data-v-ff4e9daa"]]), Gp = { class: "mb-1 flex items-start justify-between gap-2" }, Kp = { class: "body-sm text-subtlest truncate font-medium!" }, qp = /* @__PURE__ */ u({
|
|
9254
9255
|
__name: "MessageItemHeader",
|
|
9255
9256
|
props: { message: {} },
|
|
9256
9257
|
setup(e) {
|
|
@@ -9266,7 +9267,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9266
9267
|
function l() {
|
|
9267
9268
|
return t.message.senderName?.trim() || (t.message.isOwn ? s("you") : s("system"));
|
|
9268
9269
|
}
|
|
9269
|
-
return (t, n) => (S(), a("div",
|
|
9270
|
+
return (t, n) => (S(), a("div", Gp, [o("span", Kp, k(l()), 1), e.message.scheduled?.scheduleDate ? (S(), r(j(G), {
|
|
9270
9271
|
key: 0,
|
|
9271
9272
|
text: j(s)("scheduledDateLabel", { date: c(e.message.scheduled.scheduleDate) }),
|
|
9272
9273
|
context: "warn",
|
|
@@ -9275,7 +9276,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9275
9276
|
class: "shrink-0"
|
|
9276
9277
|
}, null, 8, ["text"])) : i("", !0)]));
|
|
9277
9278
|
}
|
|
9278
|
-
}),
|
|
9279
|
+
}), Jp = ["disabled", "onClick"], Yp = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9279
9280
|
__name: "MessageReactionList",
|
|
9280
9281
|
props: {
|
|
9281
9282
|
message: {},
|
|
@@ -9294,9 +9295,9 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9294
9295
|
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"]),
|
|
9295
9296
|
disabled: t.disabled,
|
|
9296
9297
|
onClick: (t) => r("toggle", e.emoji)
|
|
9297
|
-
}, k(e.emoji) + " " + k(e.count), 11,
|
|
9298
|
+
}, k(e.emoji) + " " + k(e.count), 11, Jp))), 128))], 2)) : i("", !0);
|
|
9298
9299
|
}
|
|
9299
|
-
}), [["__scopeId", "data-v-c17c8bfd"]]),
|
|
9300
|
+
}), [["__scopeId", "data-v-c17c8bfd"]]), Xp = { class: "message-reactions flex min-w-0 flex-1 flex-wrap items-center gap-1.5" }, Zp = ["aria-label", "title"], Qp = { class: "message-reactions__thread-count" }, $p = /* @__PURE__ */ u({
|
|
9300
9301
|
__name: "MessageItemReactions",
|
|
9301
9302
|
props: {
|
|
9302
9303
|
message: {},
|
|
@@ -9306,7 +9307,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9306
9307
|
emits: ["toggleReaction", "openThread"],
|
|
9307
9308
|
setup(e, { emit: t }) {
|
|
9308
9309
|
let s = e, c = t, { t: u } = X(), d = n(() => u("threadReplies", { count: s.message.replyCount })), f = n(() => s.canOpenThread !== !1 && s.message.replyCount > 0);
|
|
9309
|
-
return (t, n) => (S(), a("div",
|
|
9310
|
+
return (t, n) => (S(), a("div", Xp, [l(Yp, {
|
|
9310
9311
|
message: e.message,
|
|
9311
9312
|
disabled: e.canReact === !1,
|
|
9312
9313
|
compact: "",
|
|
@@ -9321,12 +9322,12 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9321
9322
|
}, [(S(), r(D(j(je)), {
|
|
9322
9323
|
class: "size-4",
|
|
9323
9324
|
"aria-hidden": "true"
|
|
9324
|
-
})), o("span",
|
|
9325
|
+
})), o("span", Qp, k(e.message.replyCount), 1)], 8, Zp)) : i("", !0)]));
|
|
9325
9326
|
}
|
|
9326
|
-
}),
|
|
9327
|
+
}), em = {
|
|
9327
9328
|
key: 0,
|
|
9328
9329
|
class: ""
|
|
9329
|
-
},
|
|
9330
|
+
}, tm = { class: "heading-sm text-default" }, nm = { class: "body-sm text-subtle" }, rm = { class: "space-y-2 py-3" }, im = ["disabled", "onClick"], am = { class: "body-md flex items-center justify-between gap-3 px-3 py-1.5" }, om = { class: "body-sm text-subtle shrink-0" }, sm = { class: "bg-alpha-default h-1.5" }, cm = /* @__PURE__ */ u({
|
|
9330
9331
|
__name: "MessagePollContent",
|
|
9331
9332
|
props: {
|
|
9332
9333
|
message: {},
|
|
@@ -9345,18 +9346,18 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9345
9346
|
let t = r.currentUserId;
|
|
9346
9347
|
return !!(!t || r.pendingOptionKey === `${r.message.id}:${e}` || r.message.poll.options.some((n) => n.id === e && n.voters.includes(t)));
|
|
9347
9348
|
}
|
|
9348
|
-
return (n, r) => t.message.poll ? (S(), a("div",
|
|
9349
|
+
return (n, r) => t.message.poll ? (S(), a("div", em, [o("div", null, [o("h4", tm, k(t.message.poll.question), 1), o("p", nm, k(j(c)("voteCount", { count: t.message.poll.totalVotes })), 1)]), o("div", rm, [(S(!0), a(e, null, T(t.message.poll.options, (e) => (S(), a("button", {
|
|
9349
9350
|
key: e.id,
|
|
9350
9351
|
type: "button",
|
|
9351
9352
|
class: "shadow-raised bg-elevation-surface-raised-default block w-full overflow-hidden rounded-lg text-left",
|
|
9352
9353
|
disabled: u(e.id),
|
|
9353
9354
|
onClick: (t) => s("vote", e.id)
|
|
9354
|
-
}, [o("div",
|
|
9355
|
+
}, [o("div", am, [o("span", { class: g(["truncate font-medium", l(e.id) ? "text-success" : ""]) }, k(e.text), 3), o("span", om, k(j(c)("voteCount", { count: e.voteCount })), 1)]), o("div", sm, [o("div", {
|
|
9355
9356
|
class: g(["h-full transition-all", l(e.id) ? "bg-accent-green-subtle-default" : "bg-accent-teal-subtle-default"]),
|
|
9356
9357
|
style: v({ width: `${t.message.poll.totalVotes ? e.voteCount / t.message.poll.totalVotes * 100 : 0}%` })
|
|
9357
|
-
}, null, 6)])], 8,
|
|
9358
|
+
}, null, 6)])], 8, im))), 128))])])) : i("", !0);
|
|
9358
9359
|
}
|
|
9359
|
-
}),
|
|
9360
|
+
}), lm = { class: "heading-xs" }, um = { class: "truncate" }, dm = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9360
9361
|
__name: "MessageReplyQuote",
|
|
9361
9362
|
props: { message: {} },
|
|
9362
9363
|
emits: ["open"],
|
|
@@ -9366,15 +9367,15 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9366
9367
|
type: "button",
|
|
9367
9368
|
class: "reply-quote",
|
|
9368
9369
|
onClick: n[0] ||= (e) => c("open")
|
|
9369
|
-
}, [o("p",
|
|
9370
|
+
}, [o("p", lm, k(e.message.replyTo.senderName), 1), o("p", um, k(s.value), 1)]));
|
|
9370
9371
|
}
|
|
9371
|
-
}), [["__scopeId", "data-v-e27c136c"]]),
|
|
9372
|
+
}), [["__scopeId", "data-v-e27c136c"]]), fm = { class: "space-y-2" }, pm = /* @__PURE__ */ u({
|
|
9372
9373
|
__name: "MessageTextContent",
|
|
9373
9374
|
props: { message: {} },
|
|
9374
9375
|
emits: ["anchorclick"],
|
|
9375
9376
|
setup(e) {
|
|
9376
9377
|
let t = Gu(), o = n(() => t.mentionNameByUid.value);
|
|
9377
|
-
return (t, n) => (S(), a("div",
|
|
9378
|
+
return (t, n) => (S(), a("div", fm, [e.message.translatedText ? (S(), r(Cp, {
|
|
9378
9379
|
key: 0,
|
|
9379
9380
|
text: e.message.translatedText,
|
|
9380
9381
|
"mention-name-by-uid": o.value,
|
|
@@ -9388,7 +9389,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9388
9389
|
"mention-name-by-uid",
|
|
9389
9390
|
"is-own",
|
|
9390
9391
|
"class"
|
|
9391
|
-
])) : i("", !0), l(
|
|
9392
|
+
])) : i("", !0), l(Cp, {
|
|
9392
9393
|
text: e.message.text,
|
|
9393
9394
|
"mention-name-by-uid": o.value,
|
|
9394
9395
|
"is-own": e.message.isOwn,
|
|
@@ -9401,11 +9402,11 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9401
9402
|
"is-own"
|
|
9402
9403
|
])]));
|
|
9403
9404
|
}
|
|
9404
|
-
}),
|
|
9405
|
+
}), mm = [
|
|
9405
9406
|
"id",
|
|
9406
9407
|
"data-message-id",
|
|
9407
9408
|
"data-message-kind"
|
|
9408
|
-
],
|
|
9409
|
+
], hm = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, gm = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, _m = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9409
9410
|
__name: "MessageItem",
|
|
9410
9411
|
props: {
|
|
9411
9412
|
message: {},
|
|
@@ -9458,7 +9459,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9458
9459
|
"data-message-id": t.message.id,
|
|
9459
9460
|
"data-message-kind": t.message.kind,
|
|
9460
9461
|
class: g(["message-item group", d.value])
|
|
9461
|
-
}, [t.message.kind === "action" ? (S(), r(
|
|
9462
|
+
}, [t.message.kind === "action" ? (S(), r(dp, {
|
|
9462
9463
|
key: 0,
|
|
9463
9464
|
text: t.message.text,
|
|
9464
9465
|
class: g(p.value)
|
|
@@ -9477,16 +9478,16 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9477
9478
|
onContextmenu: _,
|
|
9478
9479
|
onClick: y
|
|
9479
9480
|
}, [
|
|
9480
|
-
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(
|
|
9481
|
+
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(qp, {
|
|
9481
9482
|
key: 0,
|
|
9482
9483
|
message: t.message
|
|
9483
9484
|
}, null, 8, ["message"])) : i("", !0),
|
|
9484
|
-
t.message.replyTo ? (S(), r(
|
|
9485
|
+
t.message.replyTo ? (S(), r(dm, {
|
|
9485
9486
|
key: 1,
|
|
9486
9487
|
message: t.message,
|
|
9487
9488
|
onOpen: C
|
|
9488
9489
|
}, null, 8, ["message"])) : i("", !0),
|
|
9489
|
-
t.message.kind === "poll" && t.message.poll ? (S(), r(
|
|
9490
|
+
t.message.kind === "poll" && t.message.poll ? (S(), r(cm, {
|
|
9490
9491
|
key: 2,
|
|
9491
9492
|
message: t.message,
|
|
9492
9493
|
"current-user-id": t.currentUserId,
|
|
@@ -9496,16 +9497,16 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9496
9497
|
"message",
|
|
9497
9498
|
"current-user-id",
|
|
9498
9499
|
"pending-option-key"
|
|
9499
|
-
])) : t.message.attachments?.length ? (S(), r(
|
|
9500
|
+
])) : t.message.attachments?.length ? (S(), r(Vp, {
|
|
9500
9501
|
key: 3,
|
|
9501
9502
|
message: t.message,
|
|
9502
9503
|
onOpenMedia: s[1] ||= (e) => u("openMedia", e)
|
|
9503
|
-
}, null, 8, ["message"])) : (S(), r(
|
|
9504
|
+
}, null, 8, ["message"])) : (S(), r(pm, {
|
|
9504
9505
|
key: 4,
|
|
9505
9506
|
message: t.message,
|
|
9506
9507
|
onAnchorclick: s[2] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
9507
9508
|
}, null, 8, ["message"])),
|
|
9508
|
-
o("div",
|
|
9509
|
+
o("div", hm, [l($p, {
|
|
9509
9510
|
message: t.message,
|
|
9510
9511
|
"can-react": t.canReact,
|
|
9511
9512
|
"can-open-thread": t.canOpenThread,
|
|
@@ -9515,7 +9516,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9515
9516
|
"message",
|
|
9516
9517
|
"can-react",
|
|
9517
9518
|
"can-open-thread"
|
|
9518
|
-
]), l(
|
|
9519
|
+
]), l(Wp, { message: t.message }, null, 8, ["message"])])
|
|
9519
9520
|
], 34),
|
|
9520
9521
|
t.contextMenuOpen && t.isTouchUi ? (S(), a("div", {
|
|
9521
9522
|
key: 1,
|
|
@@ -9524,16 +9525,16 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9524
9525
|
class: "message-bubble-wrapper",
|
|
9525
9526
|
style: v({ top: x.value })
|
|
9526
9527
|
}, [o("div", { class: g(["message-bubble", f.value]) }, [
|
|
9527
|
-
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(
|
|
9528
|
+
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(qp, {
|
|
9528
9529
|
key: 0,
|
|
9529
9530
|
message: t.message
|
|
9530
9531
|
}, null, 8, ["message"])) : i("", !0),
|
|
9531
|
-
t.message.replyTo ? (S(), r(
|
|
9532
|
+
t.message.replyTo ? (S(), r(dm, {
|
|
9532
9533
|
key: 1,
|
|
9533
9534
|
message: t.message,
|
|
9534
9535
|
onOpen: C
|
|
9535
9536
|
}, null, 8, ["message"])) : i("", !0),
|
|
9536
|
-
t.message.kind === "poll" && t.message.poll ? (S(), r(
|
|
9537
|
+
t.message.kind === "poll" && t.message.poll ? (S(), r(cm, {
|
|
9537
9538
|
key: 2,
|
|
9538
9539
|
message: t.message,
|
|
9539
9540
|
"current-user-id": t.currentUserId,
|
|
@@ -9543,16 +9544,16 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9543
9544
|
"message",
|
|
9544
9545
|
"current-user-id",
|
|
9545
9546
|
"pending-option-key"
|
|
9546
|
-
])) : t.message.attachments?.length ? (S(), r(
|
|
9547
|
+
])) : t.message.attachments?.length ? (S(), r(Vp, {
|
|
9547
9548
|
key: 3,
|
|
9548
9549
|
message: t.message,
|
|
9549
9550
|
onOpenMedia: s[6] ||= (e) => u("openMedia", e)
|
|
9550
|
-
}, null, 8, ["message"])) : (S(), r(
|
|
9551
|
+
}, null, 8, ["message"])) : (S(), r(pm, {
|
|
9551
9552
|
key: 4,
|
|
9552
9553
|
message: t.message,
|
|
9553
9554
|
onAnchorclick: s[7] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
9554
9555
|
}, null, 8, ["message"])),
|
|
9555
|
-
o("div",
|
|
9556
|
+
o("div", gm, [l($p, {
|
|
9556
9557
|
message: t.message,
|
|
9557
9558
|
"can-react": t.canReact,
|
|
9558
9559
|
"can-open-thread": t.canOpenThread,
|
|
@@ -9562,21 +9563,21 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9562
9563
|
"message",
|
|
9563
9564
|
"can-react",
|
|
9564
9565
|
"can-open-thread"
|
|
9565
|
-
]), l(
|
|
9566
|
+
]), l(Wp, { message: t.message }, null, 8, ["message"])])
|
|
9566
9567
|
], 2)], 4)], 2)) : i("", !0)
|
|
9567
|
-
], 64))], 10,
|
|
9568
|
+
], 64))], 10, mm));
|
|
9568
9569
|
}
|
|
9569
|
-
}), [["__scopeId", "data-v-02761d2e"]]),
|
|
9570
|
+
}), [["__scopeId", "data-v-02761d2e"]]), vm = [
|
|
9570
9571
|
"👍",
|
|
9571
9572
|
"❤️",
|
|
9572
9573
|
"🔥",
|
|
9573
9574
|
"😂",
|
|
9574
9575
|
"🙏",
|
|
9575
9576
|
"🎉"
|
|
9576
|
-
],
|
|
9577
|
+
], ym = /* @__PURE__ */ "👏.😍.🤯.😮.😢.😡.👀.✅.💯.🙌.🤝.👌.💪.🤔.🫶.😅.🥳.💛.🌟.🚀.💥.🎯.📌.💡.🕊️.☀️.🌈.🍀.🎶.🫡".split("."), bm = { 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" }, xm = ["disabled", "onClick"], Sm = ["disabled"], Cm = {
|
|
9577
9578
|
key: 0,
|
|
9578
9579
|
class: "bg-elevation-surface-raised-default shadow-overlay m-0 grid grid-cols-6 gap-1 rounded-lg p-1.5"
|
|
9579
|
-
},
|
|
9580
|
+
}, wm = ["onClick"], Tm = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9580
9581
|
__name: "MessageItemMenuReactions",
|
|
9581
9582
|
props: {
|
|
9582
9583
|
message: {},
|
|
@@ -9588,20 +9589,20 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9588
9589
|
I(() => c.message.id, () => {
|
|
9589
9590
|
u.value = !1;
|
|
9590
9591
|
});
|
|
9591
|
-
let d = n(() =>
|
|
9592
|
+
let d = n(() => ym);
|
|
9592
9593
|
function f(e) {
|
|
9593
9594
|
return (c.message.reactions ?? []).some((t) => t.emoji === e);
|
|
9594
9595
|
}
|
|
9595
9596
|
function p() {
|
|
9596
9597
|
c.canReact && (u.value = !u.value);
|
|
9597
9598
|
}
|
|
9598
|
-
return (n, s) => (S(), a(e, null, [o("div",
|
|
9599
|
+
return (n, s) => (S(), a(e, null, [o("div", bm, [(S(!0), a(e, null, T(j(vm), (e) => (S(), a("button", {
|
|
9599
9600
|
key: `${t.message.id}-${e}-common`,
|
|
9600
9601
|
type: "button",
|
|
9601
9602
|
class: g(["message-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9602
9603
|
disabled: !t.canReact,
|
|
9603
9604
|
onClick: (t) => l("react", e)
|
|
9604
|
-
}, k(e), 11,
|
|
9605
|
+
}, k(e), 11, xm))), 128)), o("button", {
|
|
9605
9606
|
type: "button",
|
|
9606
9607
|
class: "message-reaction-more",
|
|
9607
9608
|
disabled: !t.canReact,
|
|
@@ -9609,25 +9610,25 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9609
9610
|
}, [(S(), r(D(u.value ? j(Te) : j(we)), {
|
|
9610
9611
|
class: "size-7",
|
|
9611
9612
|
"aria-hidden": "true"
|
|
9612
|
-
}))], 8,
|
|
9613
|
+
}))], 8, Sm)]), u.value && t.canReact ? (S(), a("div", Cm, [(S(!0), a(e, null, T(d.value, (e) => (S(), a("button", {
|
|
9613
9614
|
key: `${t.message.id}-${e}-extended`,
|
|
9614
9615
|
type: "button",
|
|
9615
9616
|
class: g(["message-expanded-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9616
9617
|
onClick: (t) => l("react", e)
|
|
9617
|
-
}, k(e), 11,
|
|
9618
|
+
}, k(e), 11, wm))), 128))])) : i("", !0)], 64));
|
|
9618
9619
|
}
|
|
9619
|
-
}), [["__scopeId", "data-v-0a11761a"]]),
|
|
9620
|
+
}), [["__scopeId", "data-v-0a11761a"]]), Em = { class: "message-action-list" }, Dm = { class: "message-receipt-summary__icon" }, Om = { class: "message-receipt-summary__label" }, km = {
|
|
9620
9621
|
key: 0,
|
|
9621
9622
|
class: "message-receipt-summary__avatars",
|
|
9622
9623
|
"aria-hidden": "true"
|
|
9623
|
-
},
|
|
9624
|
+
}, Am = {
|
|
9624
9625
|
key: 1,
|
|
9625
9626
|
class: "message-action-list__divider",
|
|
9626
9627
|
"aria-hidden": "true"
|
|
9627
|
-
},
|
|
9628
|
+
}, jm = {
|
|
9628
9629
|
key: 1,
|
|
9629
9630
|
class: "message-action-list message-receipt-panel"
|
|
9630
|
-
},
|
|
9631
|
+
}, Mm = { class: "message-receipt-list" }, Nm = { class: "message-receipt-row__body" }, Pm = { class: "message-receipt-row__name" }, Fm = { class: "message-receipt-row__time" }, Im = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9631
9632
|
__name: "MessageItemMenu",
|
|
9632
9633
|
props: {
|
|
9633
9634
|
message: {},
|
|
@@ -9718,18 +9719,18 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9718
9719
|
top: `${E.value.top}px`
|
|
9719
9720
|
}),
|
|
9720
9721
|
"data-testid": "message-action-popover-shell"
|
|
9721
|
-
}, [C.value === "actions" ? (S(), a(e, { key: 0 }, [l(
|
|
9722
|
+
}, [C.value === "actions" ? (S(), a(e, { key: 0 }, [l(Tm, {
|
|
9722
9723
|
message: s.message,
|
|
9723
9724
|
"can-react": s.canReact,
|
|
9724
9725
|
onReact: c[0] ||= (e) => _("react", e)
|
|
9725
|
-
}, null, 8, ["message", "can-react"]), o("div",
|
|
9726
|
+
}, null, 8, ["message", "can-react"]), o("div", Em, [
|
|
9726
9727
|
s.receiptSummaryAction ? (S(), a("button", {
|
|
9727
9728
|
key: 0,
|
|
9728
9729
|
type: "button",
|
|
9729
9730
|
class: "message-receipt-summary",
|
|
9730
9731
|
onClick: F
|
|
9731
9732
|
}, [
|
|
9732
|
-
o("span",
|
|
9733
|
+
o("span", Dm, [s.receiptSummaryAction.loading ? (S(), r(j(W), {
|
|
9733
9734
|
key: 0,
|
|
9734
9735
|
style: {
|
|
9735
9736
|
width: "1rem",
|
|
@@ -9741,8 +9742,8 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9741
9742
|
class: "text-success size-4",
|
|
9742
9743
|
"aria-hidden": "true"
|
|
9743
9744
|
}))]),
|
|
9744
|
-
o("span",
|
|
9745
|
-
f.value.length ? (S(), a("span",
|
|
9745
|
+
o("span", Om, k(s.receiptSummaryAction.label), 1),
|
|
9746
|
+
f.value.length ? (S(), a("span", km, [(S(!0), a(e, null, T(f.value, (e) => (S(), r(j(B), {
|
|
9746
9747
|
key: e.user.uid,
|
|
9747
9748
|
image: e.user.avatar,
|
|
9748
9749
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
@@ -9750,12 +9751,12 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9750
9751
|
class: "message-receipt-summary__avatar"
|
|
9751
9752
|
}, null, 8, ["image", "label"]))), 128))])) : i("", !0)
|
|
9752
9753
|
])) : i("", !0),
|
|
9753
|
-
s.receiptSummaryAction ? (S(), a("div",
|
|
9754
|
+
s.receiptSummaryAction ? (S(), a("div", Am)) : i("", !0),
|
|
9754
9755
|
l(j(ie), {
|
|
9755
9756
|
model: s.actionItems,
|
|
9756
9757
|
class: "message-action-list__menu"
|
|
9757
9758
|
}, null, 8, ["model"])
|
|
9758
|
-
])], 64)) : (S(), a("section",
|
|
9759
|
+
])], 64)) : (S(), a("section", jm, [
|
|
9759
9760
|
o("button", {
|
|
9760
9761
|
type: "button",
|
|
9761
9762
|
class: "message-receipt-back",
|
|
@@ -9768,7 +9769,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9768
9769
|
class: "message-action-list__divider",
|
|
9769
9770
|
"aria-hidden": "true"
|
|
9770
9771
|
}, null, -1),
|
|
9771
|
-
o("div",
|
|
9772
|
+
o("div", Mm, [(S(!0), a(e, null, T(p.value, (e) => (S(), a("div", {
|
|
9772
9773
|
key: e.user.uid,
|
|
9773
9774
|
class: "message-receipt-row"
|
|
9774
9775
|
}, [l(j(B), {
|
|
@@ -9776,19 +9777,19 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9776
9777
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
9777
9778
|
shape: "circle",
|
|
9778
9779
|
class: "message-receipt-row__avatar"
|
|
9779
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9780
|
+
}, null, 8, ["image", "label"]), o("div", Nm, [o("p", Pm, k(e.user.name), 1), o("p", Fm, [l(j(ge), {
|
|
9780
9781
|
class: "message-receipt-row__icon text-success",
|
|
9781
9782
|
"aria-hidden": "true"
|
|
9782
9783
|
}), o("span", null, k(L(e.timestamp)), 1)])])]))), 128))])
|
|
9783
9784
|
]))], 4)) : i("", !0)]));
|
|
9784
9785
|
}
|
|
9785
|
-
}), [["__scopeId", "data-v-c561963f"]]),
|
|
9786
|
+
}), [["__scopeId", "data-v-c561963f"]]), Lm = { 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" }, Rm = {
|
|
9786
9787
|
key: 0,
|
|
9787
9788
|
class: "chat-header__identity flex min-w-0 items-center gap-3"
|
|
9788
|
-
},
|
|
9789
|
+
}, zm = { class: "chat-header__text min-w-0" }, Bm = { class: "chat-header__title heading-md text-default sm:heading-lg truncate" }, Vm = { class: "chat-header__subtitle body-sm text-subtle sm:body-md truncate" }, Hm = { key: 0 }, Um = { key: 1 }, Wm = { class: "chat-header__actions flex items-center gap-2" }, Gm = {
|
|
9789
9790
|
key: 0,
|
|
9790
9791
|
class: "chat-header__tags hidden flex-wrap gap-2 md:flex"
|
|
9791
|
-
},
|
|
9792
|
+
}, Km = /* @__PURE__ */ u({
|
|
9792
9793
|
__name: "MessageListHeader",
|
|
9793
9794
|
props: {
|
|
9794
9795
|
conversation: {},
|
|
@@ -9796,28 +9797,28 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9796
9797
|
},
|
|
9797
9798
|
setup(t) {
|
|
9798
9799
|
let { t: n } = X();
|
|
9799
|
-
return (s, c) => (S(), a("header",
|
|
9800
|
+
return (s, c) => (S(), a("header", Lm, [t.conversation ? (S(), a("div", Rm, [l(j(B), {
|
|
9800
9801
|
image: t.conversation.avatar,
|
|
9801
9802
|
label: t.conversation.avatar ? void 0 : t.conversation.title.slice(0, 1).toUpperCase(),
|
|
9802
9803
|
shape: "circle",
|
|
9803
9804
|
class: "chat-header__avatar shrink-0"
|
|
9804
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9805
|
+
}, null, 8, ["image", "label"]), o("div", zm, [o("p", Bm, k(t.parentMessage ? j(n)("thread") : t.conversation.title), 1), o("p", Vm, [t.parentMessage ? (S(), a("span", Hm, k(t.parentMessage.senderName), 1)) : (S(), a("span", Um, k(t.conversation.memberCount ? j(n)("members", { count: t.conversation.memberCount }) : j(n)("groupChat")), 1))])])])) : i("", !0), o("div", Wm, [t.conversation?.tags?.length ? (S(), a("div", Gm, [(S(!0), a(e, null, T(t.conversation.tags.slice(0, 3), (e) => (S(), r(j(G), {
|
|
9805
9806
|
key: e,
|
|
9806
9807
|
text: e,
|
|
9807
9808
|
context: "secondary",
|
|
9808
9809
|
rounded: ""
|
|
9809
9810
|
}, null, 8, ["text"]))), 128))])) : i("", !0)])]));
|
|
9810
9811
|
}
|
|
9811
|
-
}),
|
|
9812
|
+
}), qm = {
|
|
9812
9813
|
key: 1,
|
|
9813
9814
|
class: "message-list__empty-state"
|
|
9814
|
-
},
|
|
9815
|
+
}, Jm = { class: "space-y-2" }, Ym = {
|
|
9815
9816
|
key: 0,
|
|
9816
9817
|
class: "message-list__thread-root"
|
|
9817
|
-
},
|
|
9818
|
+
}, Xm = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, Zm = { class: "body-md text-default mt-1 line-clamp-2" }, Qm = {
|
|
9818
9819
|
key: 1,
|
|
9819
9820
|
class: "surface-default text-subtle rounded-2xl p-5 text-center"
|
|
9820
|
-
},
|
|
9821
|
+
}, $m = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9821
9822
|
__name: "MessageList",
|
|
9822
9823
|
props: {
|
|
9823
9824
|
target: {},
|
|
@@ -9834,7 +9835,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9834
9835
|
}), A = n(() => {
|
|
9835
9836
|
let e = u.conversation.value;
|
|
9836
9837
|
return e ? v.value ? v.value.senderName : e.memberCount ? c("members", { count: e.memberCount }) : c("groupChat") : "";
|
|
9837
|
-
}), M = n(() => u.conversation.value?.memberCount ?? 0), P = w(null), F = w(null), I = n(() => !!v.value), L = n(() => I.value && !b.value), ee = n(() => Bu(u.conversation.value)), R = N("threadRef"), { handleThreadScroll: z } =
|
|
9838
|
+
}), M = n(() => u.conversation.value?.memberCount ?? 0), P = w(null), F = w(null), I = n(() => !!v.value), L = n(() => I.value && !b.value), ee = n(() => Bu(u.conversation.value)), R = N("threadRef"), { handleThreadScroll: z } = zf({
|
|
9838
9839
|
getConversation: () => u.conversation.value,
|
|
9839
9840
|
getParentMessage: () => v.value,
|
|
9840
9841
|
getMessages: () => h.value,
|
|
@@ -9843,7 +9844,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9843
9844
|
canLoadOlder: () => x.value,
|
|
9844
9845
|
onLoadOlder: () => p.emit("list:loadOlder", { target: s.target }),
|
|
9845
9846
|
threadRef: R
|
|
9846
|
-
}), B = N("actionMenuRef"), { activeActionMessage: V, handleMessageContextMenu: H, handleMessageTap: U, resetActionMenuState: te, reactToMessage: ne, toggleInlineReaction: re, getReceiptSummaryAction: ie, getActionItems: ae, isTouchUI: W } =
|
|
9847
|
+
}), B = N("actionMenuRef"), { activeActionMessage: V, handleMessageContextMenu: H, handleMessageTap: U, resetActionMenuState: te, reactToMessage: ne, toggleInlineReaction: re, getReceiptSummaryAction: ie, getActionItems: ae, isTouchUI: W } = Nf({
|
|
9847
9848
|
canUseMessageActions: () => u.canUseMessageActions.value,
|
|
9848
9849
|
canReact: () => u.canReact.value,
|
|
9849
9850
|
canReply: () => u.canReply.value,
|
|
@@ -9912,7 +9913,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9912
9913
|
title: O.value,
|
|
9913
9914
|
subtitle: A.value,
|
|
9914
9915
|
memberCount: M.value
|
|
9915
|
-
}, () => [l(
|
|
9916
|
+
}, () => [l(Km, {
|
|
9916
9917
|
conversation: j(u).conversation.value,
|
|
9917
9918
|
"parent-message": v.value
|
|
9918
9919
|
}, null, 8, ["conversation", "parent-message"])], !0) : i("", !0), j(u).conversation.value ? (S(), a("div", {
|
|
@@ -9923,12 +9924,12 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9923
9924
|
ref: R,
|
|
9924
9925
|
class: g(["message-list__scroll min-h-0 flex-1", L.value ? "p-0" : I.value ? "px-5 py-4" : "px-2 pt-2 pb-3"]),
|
|
9925
9926
|
onScroll: n[2] ||= (...e) => j(z) && j(z)(...e)
|
|
9926
|
-
}, [o("div",
|
|
9927
|
-
v.value ? (S(), a("div",
|
|
9928
|
-
(S(!0), a(e, null, T(h.value, (o, c) => (S(), a(e, { key: o.id }, [le(c) ? (S(), r(
|
|
9927
|
+
}, [o("div", Jm, [
|
|
9928
|
+
v.value ? (S(), a("div", Ym, [o("p", Xm, k(v.value.senderName), 1), o("p", Zm, k(j(nc)(v.value, j(c)("message"), j(u).mentionNameByUid.value)), 1)])) : i("", !0),
|
|
9929
|
+
(S(!0), a(e, null, T(h.value, (o, c) => (S(), a(e, { key: o.id }, [le(c) ? (S(), r(cp, {
|
|
9929
9930
|
key: 0,
|
|
9930
9931
|
date: o.sentAt
|
|
9931
|
-
}, null, 8, ["date"])) : i("", !0), l(
|
|
9932
|
+
}, null, 8, ["date"])) : i("", !0), l(_m, {
|
|
9932
9933
|
message: o,
|
|
9933
9934
|
"current-user-id": j(u).currentUserId.value,
|
|
9934
9935
|
"can-react": j(u).canReact.value,
|
|
@@ -9964,13 +9965,13 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9964
9965
|
"onToggleReaction",
|
|
9965
9966
|
"onOpenThread"
|
|
9966
9967
|
])], 64))), 128)),
|
|
9967
|
-
h.value.length === 0 && D.value && !_.value ? (S(), a("div",
|
|
9968
|
-
])], 34), o("footer", { class: g(["message-list__composer flex shrink-0 flex-col", I.value ? L.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",
|
|
9969
|
-
l(
|
|
9968
|
+
h.value.length === 0 && D.value && !_.value ? (S(), a("div", Qm, k(j(c)("noMessagesYetInThisGroup")), 1)) : i("", !0)
|
|
9969
|
+
])], 34), o("footer", { class: g(["message-list__composer flex shrink-0 flex-col", I.value ? L.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", qm, k(j(c)("selectConversationToStart")), 1))], 2),
|
|
9970
|
+
l(ap, {
|
|
9970
9971
|
attachment: P.value,
|
|
9971
9972
|
onClose: oe
|
|
9972
9973
|
}, null, 8, ["attachment"]),
|
|
9973
|
-
l(
|
|
9974
|
+
l(Im, {
|
|
9974
9975
|
ref_key: "actionMenuRef",
|
|
9975
9976
|
ref: B,
|
|
9976
9977
|
message: j(V),
|
|
@@ -9988,13 +9989,13 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
9988
9989
|
])
|
|
9989
9990
|
], 64));
|
|
9990
9991
|
}
|
|
9991
|
-
}), [["__scopeId", "data-v-6c8a5535"]]),
|
|
9992
|
+
}), [["__scopeId", "data-v-6c8a5535"]]), eh = { class: "receipt-section" }, th = {
|
|
9992
9993
|
key: 0,
|
|
9993
9994
|
class: "receipt-section__header"
|
|
9994
|
-
},
|
|
9995
|
+
}, nh = { class: "body-sm text-subtle font-semibold" }, rh = { class: "body-sm text-subtlest" }, ih = {
|
|
9995
9996
|
key: 1,
|
|
9996
9997
|
class: "receipt-section__list"
|
|
9997
|
-
},
|
|
9998
|
+
}, ah = { class: "receipt-section__identity" }, oh = { class: "min-w-0" }, sh = { class: "receipt-section__name heading-sm text-default truncate" }, ch = { class: "receipt-section__time body-md text-subtle" }, lh = { class: "truncate" }, uh = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
9998
9999
|
__name: "ReceiptSection",
|
|
9999
10000
|
props: {
|
|
10000
10001
|
title: {},
|
|
@@ -10007,35 +10008,35 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10007
10008
|
},
|
|
10008
10009
|
setup(t) {
|
|
10009
10010
|
let r = t, s = n(() => String(r.receipts.length));
|
|
10010
|
-
return (n, r) => (S(), a("section",
|
|
10011
|
+
return (n, r) => (S(), a("section", eh, [t.showHeader ? (S(), a("div", th, [o("p", nh, k(t.title), 1), o("span", rh, k(s.value), 1)])) : i("", !0), t.receipts.length ? (S(), a("div", ih, [(S(!0), a(e, null, T(t.receipts, (e) => (S(), a("div", {
|
|
10011
10012
|
key: `${e.kind}-${e.user.uid}`,
|
|
10012
10013
|
class: "receipt-section__row"
|
|
10013
|
-
}, [o("div",
|
|
10014
|
+
}, [o("div", ah, [l(j(B), {
|
|
10014
10015
|
image: e.user.avatar,
|
|
10015
10016
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
10016
10017
|
shape: "circle",
|
|
10017
10018
|
class: "receipt-section__avatar"
|
|
10018
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
10019
|
+
}, null, 8, ["image", "label"]), o("div", oh, [o("p", sh, k(e.user.name), 1), o("p", ch, [l(j(ge), {
|
|
10019
10020
|
class: "receipt-section__icon text-success",
|
|
10020
10021
|
"aria-hidden": "true"
|
|
10021
|
-
}), o("span",
|
|
10022
|
+
}), o("span", lh, k(t.formatDateTime(e.timestamp)), 1)])])])]))), 128))])) : i("", !0)]));
|
|
10022
10023
|
}
|
|
10023
|
-
}), [["__scopeId", "data-v-750f23c4"]]),
|
|
10024
|
+
}), [["__scopeId", "data-v-750f23c4"]]), dh = {
|
|
10024
10025
|
key: 0,
|
|
10025
10026
|
class: "message-info-dialog-content overflow-y-auto"
|
|
10026
|
-
},
|
|
10027
|
+
}, fh = {
|
|
10027
10028
|
key: 0,
|
|
10028
10029
|
class: "flex items-center justify-center px-4 py-8 sm:px-6"
|
|
10029
|
-
},
|
|
10030
|
+
}, ph = {
|
|
10030
10031
|
key: 1,
|
|
10031
10032
|
class: "message-info-error body-md mx-4 rounded-xl px-4 py-3 sm:mx-6"
|
|
10032
|
-
},
|
|
10033
|
+
}, mh = {
|
|
10033
10034
|
key: 2,
|
|
10034
10035
|
class: "message-info-list"
|
|
10035
|
-
},
|
|
10036
|
+
}, hh = {
|
|
10036
10037
|
key: 1,
|
|
10037
10038
|
class: "message-info-empty body-md text-subtle"
|
|
10038
|
-
},
|
|
10039
|
+
}, gh = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
10039
10040
|
__name: "MessageInfoDialog",
|
|
10040
10041
|
props: {
|
|
10041
10042
|
open: { type: Boolean },
|
|
@@ -10060,25 +10061,25 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10060
10061
|
return (t.timestamp?.getTime() ?? 0) - n;
|
|
10061
10062
|
});
|
|
10062
10063
|
}
|
|
10063
|
-
return (t, n) => (S(), r(
|
|
10064
|
+
return (t, n) => (S(), r(Gf, {
|
|
10064
10065
|
open: e.open,
|
|
10065
10066
|
title: j(u)("seen"),
|
|
10066
10067
|
"close-label": j(u)("close"),
|
|
10067
10068
|
onClose: n[0] ||= (e) => s("close")
|
|
10068
10069
|
}, {
|
|
10069
|
-
default: L(() => [e.message ? (S(), a("div",
|
|
10070
|
+
default: L(() => [e.message ? (S(), a("div", dh, [e.loading ? (S(), a("div", fh, [l(j(W), {
|
|
10070
10071
|
style: {
|
|
10071
10072
|
width: "2.5rem",
|
|
10072
10073
|
height: "2.5rem"
|
|
10073
10074
|
},
|
|
10074
10075
|
"stroke-width": "5"
|
|
10075
|
-
})])) : e.error ? (S(), a("div",
|
|
10076
|
+
})])) : e.error ? (S(), a("div", ph, k(e.error), 1)) : (S(), a("div", mh, [d.value.length ? (S(), r(uh, {
|
|
10076
10077
|
key: 0,
|
|
10077
10078
|
title: j(u)("readBy"),
|
|
10078
10079
|
receipts: d.value,
|
|
10079
10080
|
"format-date-time": f,
|
|
10080
10081
|
"show-header": !1
|
|
10081
|
-
}, null, 8, ["title", "receipts"])) : (S(), a("p",
|
|
10082
|
+
}, null, 8, ["title", "receipts"])) : (S(), a("p", hh, k(j(u)("nobodyHasReadThisMessageYet")), 1))]))])) : i("", !0)]),
|
|
10082
10083
|
_: 1
|
|
10083
10084
|
}, 8, [
|
|
10084
10085
|
"open",
|
|
@@ -10086,34 +10087,34 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10086
10087
|
"close-label"
|
|
10087
10088
|
]));
|
|
10088
10089
|
}
|
|
10089
|
-
}), [["__scopeId", "data-v-e025ada9"]]),
|
|
10090
|
+
}), [["__scopeId", "data-v-e025ada9"]]), _h = { class: "min-h-0 flex-1 overflow-y-auto" }, vh = {
|
|
10090
10091
|
key: 0,
|
|
10091
10092
|
class: "flex h-full min-h-64 items-center justify-center"
|
|
10092
|
-
},
|
|
10093
|
+
}, yh = {
|
|
10093
10094
|
key: 1,
|
|
10094
10095
|
class: "bg-elevation-surface-sunken-default body-md flex h-full min-h-64 items-center justify-center rounded-xl px-6 text-center"
|
|
10095
|
-
},
|
|
10096
|
+
}, bh = {
|
|
10096
10097
|
key: 2,
|
|
10097
10098
|
class: "space-y-3"
|
|
10098
|
-
},
|
|
10099
|
+
}, xh = { class: "flex flex-wrap items-start justify-between gap-3" }, Sh = { class: "w-full space-y-2" }, Ch = { class: "center between gap-2" }, wh = { class: "" }, Th = { class: "space-y-1" }, Eh = { class: "heading-sm text-default" }, Dh = {
|
|
10099
10100
|
key: 0,
|
|
10100
10101
|
class: "body-md text-default"
|
|
10101
|
-
},
|
|
10102
|
+
}, Oh = {
|
|
10102
10103
|
key: 1,
|
|
10103
10104
|
class: "body-md text-default wrap-break-word whitespace-pre-wrap"
|
|
10104
|
-
},
|
|
10105
|
+
}, kh = {
|
|
10105
10106
|
key: 0,
|
|
10106
10107
|
class: "max-w-sm"
|
|
10107
|
-
},
|
|
10108
|
+
}, Ah = { class: "flex flex-wrap items-center gap-1" }, jh = {
|
|
10108
10109
|
key: 0,
|
|
10109
10110
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3 sm:flex-row sm:items-center"
|
|
10110
|
-
},
|
|
10111
|
+
}, Mh = { class: "grid w-full grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem]" }, Nh = { class: "flex items-center gap-2" }, Ph = {
|
|
10111
10112
|
key: 1,
|
|
10112
10113
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3"
|
|
10113
|
-
},
|
|
10114
|
+
}, Fh = {
|
|
10114
10115
|
key: 0,
|
|
10115
10116
|
class: "relative max-w-sm"
|
|
10116
|
-
},
|
|
10117
|
+
}, Ih = { class: "absolute top-2 right-2" }, Lh = ["placeholder"], Rh = { class: "flex items-center justify-end gap-2" }, zh = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
10117
10118
|
__name: "ScheduledMessagesDialog",
|
|
10118
10119
|
props: {
|
|
10119
10120
|
open: { type: Boolean },
|
|
@@ -10195,24 +10196,24 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10195
10196
|
function H(e) {
|
|
10196
10197
|
d.value === e.id && M(), u("remove", e);
|
|
10197
10198
|
}
|
|
10198
|
-
return (n, s) => (S(), r(
|
|
10199
|
+
return (n, s) => (S(), r(Gf, {
|
|
10199
10200
|
open: t.open,
|
|
10200
10201
|
title: j(v)("scheduledMessages"),
|
|
10201
10202
|
subtitle: t.conversationTitle ? j(v)("queuedForConversation", { title: t.conversationTitle }) : j(v)("queuedOutgoingMessagesForThisChat"),
|
|
10202
10203
|
"close-label": j(v)("close"),
|
|
10203
10204
|
onClose: s[3] ||= (e) => u("close")
|
|
10204
10205
|
}, {
|
|
10205
|
-
default: L(() => [o("div",
|
|
10206
|
+
default: L(() => [o("div", _h, [t.loading ? (S(), a("div", vh, [l(j(W), {
|
|
10206
10207
|
style: {
|
|
10207
10208
|
width: "2.75rem",
|
|
10208
10209
|
height: "2.75rem"
|
|
10209
10210
|
},
|
|
10210
10211
|
"stroke-width": "6"
|
|
10211
|
-
})])) : y.value.length === 0 ? (S(), a("div",
|
|
10212
|
+
})])) : y.value.length === 0 ? (S(), a("div", yh, k(j(v)("noScheduledMessagesForConversation")), 1)) : (S(), a("div", bh, [(S(!0), a(e, null, T(y.value, (e) => (S(), a("article", {
|
|
10212
10213
|
key: e.id,
|
|
10213
10214
|
class: "border-default rounded-lg border px-4 py-3"
|
|
10214
|
-
}, [o("div",
|
|
10215
|
-
o("div",
|
|
10215
|
+
}, [o("div", xh, [o("div", Sh, [
|
|
10216
|
+
o("div", Ch, [o("div", wh, [e.kind === "poll" ? (S(), r(j(G), {
|
|
10216
10217
|
key: 0,
|
|
10217
10218
|
text: j(v)("poll"),
|
|
10218
10219
|
context: "info",
|
|
@@ -10233,9 +10234,9 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10233
10234
|
size: "small",
|
|
10234
10235
|
onClick: (t) => H(e)
|
|
10235
10236
|
}, null, 8, ["icon", "onClick"])]),
|
|
10236
|
-
o("div",
|
|
10237
|
-
R(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div",
|
|
10238
|
-
]), o("div",
|
|
10237
|
+
o("div", Th, [o("p", Eh, k(x(e.scheduled?.scheduleDate)), 1), e.kind === "poll" && e.poll ? (S(), a("p", Dh, k(e.poll.question), 1)) : (S(), a("p", Oh, k(j(nc)(e, j(v)("attachment"))), 1))]),
|
|
10238
|
+
R(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div", kh, [l(Vp, { message: N(e) }, null, 8, ["message"])])) : i("", !0)
|
|
10239
|
+
]), o("div", Ah, [e.kind === "poll" ? i("", !0) : (S(), r(j(V), {
|
|
10239
10240
|
key: 0,
|
|
10240
10241
|
label: j(v)("edit"),
|
|
10241
10242
|
icon: j(ve),
|
|
@@ -10257,7 +10258,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10257
10258
|
"label",
|
|
10258
10259
|
"icon",
|
|
10259
10260
|
"onClick"
|
|
10260
|
-
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div",
|
|
10261
|
+
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div", jh, [o("div", Mh, [ee(o("input", {
|
|
10261
10262
|
"onUpdate:modelValue": s[0] ||= (e) => m.value = e,
|
|
10262
10263
|
type: "date",
|
|
10263
10264
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
@@ -10269,7 +10270,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10269
10270
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
10270
10271
|
"aria-label": "Time (24-hour)",
|
|
10271
10272
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
10272
|
-
}, null, 512), [[P, h.value]])]), o("div",
|
|
10273
|
+
}, null, 512), [[P, h.value]])]), o("div", Nh, [l(j(V), {
|
|
10273
10274
|
label: j(v)("save"),
|
|
10274
10275
|
size: "small",
|
|
10275
10276
|
disabled: !m.value || !b.value,
|
|
@@ -10283,8 +10284,8 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10283
10284
|
size: "small",
|
|
10284
10285
|
text: "",
|
|
10285
10286
|
onClick: M
|
|
10286
|
-
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div",
|
|
10287
|
-
R(e) ? (S(), a("div",
|
|
10287
|
+
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div", Ph, [
|
|
10288
|
+
R(e) ? (S(), a("div", Fh, [l(Vp, { message: N(e) }, null, 8, ["message"]), o("div", Ih, [l(j(V), {
|
|
10288
10289
|
icon: j(de),
|
|
10289
10290
|
"aria-label": j(v)("remove"),
|
|
10290
10291
|
text: "",
|
|
@@ -10298,8 +10299,8 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10298
10299
|
rows: "3",
|
|
10299
10300
|
class: "surface-input body-md w-full rounded-xl px-3 py-2 ring-0 outline-none",
|
|
10300
10301
|
placeholder: j(v)("writeMessage")
|
|
10301
|
-
}, null, 8,
|
|
10302
|
-
o("div",
|
|
10302
|
+
}, null, 8, Lh), [[P, g.value]]),
|
|
10303
|
+
o("div", Rh, [l(j(V), {
|
|
10303
10304
|
label: j(v)("cancel"),
|
|
10304
10305
|
size: "small",
|
|
10305
10306
|
text: "",
|
|
@@ -10323,7 +10324,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10323
10324
|
"close-label"
|
|
10324
10325
|
]));
|
|
10325
10326
|
}
|
|
10326
|
-
}), [["__scopeId", "data-v-0bb2dc95"]]),
|
|
10327
|
+
}), [["__scopeId", "data-v-0bb2dc95"]]), Bh = { class: "chat-status-overlay" }, Vh = { class: "chat-status-overlay__card" }, Hh = /* @__PURE__ */ jd(/* @__PURE__ */ u({
|
|
10327
10328
|
__name: "ChatStatusOverlay",
|
|
10328
10329
|
props: {
|
|
10329
10330
|
visible: { type: Boolean },
|
|
@@ -10356,9 +10357,9 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10356
10357
|
message: t.messages.connecting,
|
|
10357
10358
|
slotName: "connecting"
|
|
10358
10359
|
} : null);
|
|
10359
|
-
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div",
|
|
10360
|
+
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div", Bh, [o("div", Vh, [E(e.$slots, `${r.value.slotName}-content`, {}, () => [o("span", null, k(r.value.message), 1)], !0)])])], !0) : i("", !0);
|
|
10360
10361
|
}
|
|
10361
|
-
}), [["__scopeId", "data-v-7749aec9"]]),
|
|
10362
|
+
}), [["__scopeId", "data-v-7749aec9"]]), Uh = /* @__PURE__ */ u({
|
|
10362
10363
|
__name: "BccChat",
|
|
10363
10364
|
props: {
|
|
10364
10365
|
client: { default: null },
|
|
@@ -10626,7 +10627,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10626
10627
|
_: 1
|
|
10627
10628
|
})]) : i("", !0),
|
|
10628
10629
|
T.value ? (S(), a(e, { key: 1 }, [
|
|
10629
|
-
l(
|
|
10630
|
+
l($m, {
|
|
10630
10631
|
target: "main",
|
|
10631
10632
|
class: g(["h-full", t.containerClass]),
|
|
10632
10633
|
"hide-group-actions": t.hideGroupActions,
|
|
@@ -10635,7 +10636,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10635
10636
|
"action-message-row-class": t.actionMessageRowClass,
|
|
10636
10637
|
onAnchorclick: ie
|
|
10637
10638
|
}, s({
|
|
10638
|
-
composer: L(() => [l(
|
|
10639
|
+
composer: L(() => [l(jf, {
|
|
10639
10640
|
ref_key: "mainComposerRef",
|
|
10640
10641
|
ref: B,
|
|
10641
10642
|
target: "main",
|
|
@@ -10655,7 +10656,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10655
10656
|
"action-message-class",
|
|
10656
10657
|
"action-message-row-class"
|
|
10657
10658
|
]),
|
|
10658
|
-
l(
|
|
10659
|
+
l(Gf, {
|
|
10659
10660
|
open: !!j(F).activeThreadParentMessage.value,
|
|
10660
10661
|
title: j(m)("threadWithCount", { count: j(F).activeThreadParentMessage.value?.replyCount ?? 0 }),
|
|
10661
10662
|
subtitle: O.value?.title ?? "",
|
|
@@ -10663,13 +10664,13 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10663
10664
|
"close-aria-label": j(m)("closeThread"),
|
|
10664
10665
|
onClose: r[0] ||= (e) => j(U).emit("ui:closeThread")
|
|
10665
10666
|
}, {
|
|
10666
|
-
default: L(() => [l(
|
|
10667
|
+
default: L(() => [l($m, {
|
|
10667
10668
|
target: "thread",
|
|
10668
10669
|
class: "min-h-0 flex-1",
|
|
10669
10670
|
"action-message-class": t.actionMessageClass,
|
|
10670
10671
|
"action-message-row-class": t.actionMessageRowClass
|
|
10671
10672
|
}, {
|
|
10672
|
-
composer: L(() => [l(
|
|
10673
|
+
composer: L(() => [l(jf, {
|
|
10673
10674
|
ref_key: "threadComposerRef",
|
|
10674
10675
|
ref: V,
|
|
10675
10676
|
target: "thread",
|
|
@@ -10687,7 +10688,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10687
10688
|
"close-label",
|
|
10688
10689
|
"close-aria-label"
|
|
10689
10690
|
]),
|
|
10690
|
-
l(
|
|
10691
|
+
l(zh, {
|
|
10691
10692
|
open: j(z).showScheduledMessages.value,
|
|
10692
10693
|
loading: j(z).loadingScheduledMessages.value,
|
|
10693
10694
|
messages: j(z).scheduledMessages.value,
|
|
@@ -10702,7 +10703,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10702
10703
|
"messages",
|
|
10703
10704
|
"conversation-title"
|
|
10704
10705
|
]),
|
|
10705
|
-
l(
|
|
10706
|
+
l(gh, {
|
|
10706
10707
|
open: !!j(z).infoMessage.value,
|
|
10707
10708
|
message: j(z).infoMessage.value,
|
|
10708
10709
|
receipts: j(z).infoMessageReceipts.value,
|
|
@@ -10717,7 +10718,7 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10717
10718
|
"error"
|
|
10718
10719
|
])
|
|
10719
10720
|
], 64)) : i("", !0),
|
|
10720
|
-
l(
|
|
10721
|
+
l(Hh, {
|
|
10721
10722
|
visible: D.value && (T.value?.offlineMode.value || !T.value?.connected.value || x.value && !ee.value || v.value || C.value || t.displayNoMessagesText && j(F).isChatEmpty.value),
|
|
10722
10723
|
"offline-mode": !!(T.value?.offlineMode.value && !O.value),
|
|
10723
10724
|
connected: !!(T.value?.connected.value || O.value),
|
|
@@ -10757,6 +10758,6 @@ var Hf = { class: "w-full" }, Uf = {
|
|
|
10757
10758
|
}
|
|
10758
10759
|
});
|
|
10759
10760
|
//#endregion
|
|
10760
|
-
export {
|
|
10761
|
+
export { Uh as BccChat, Uh as BccChatMessageList, Hl as LogSeverity, Au as chat, Au as default, bc as createChatClient };
|
|
10761
10762
|
|
|
10762
10763
|
//# sourceMappingURL=vue-bcc-chat-ui.js.map
|