@bcc-code/vue-bcc-chat-ui 7.1.55 → 7.1.56
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 +466 -459
- 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", Hh), e.provide("theme", { theme: Bl });
|
|
6237
6237
|
let r = tu(t.environment);
|
|
6238
6238
|
$l(Hl.INFO, "Initializing chat", {
|
|
6239
6239
|
environment: t.environment,
|
|
@@ -6966,8 +6966,16 @@ function _d(e) {
|
|
|
6966
6966
|
return null;
|
|
6967
6967
|
}
|
|
6968
6968
|
//#endregion
|
|
6969
|
+
//#region src/composables/useIsTouchUi.ts
|
|
6970
|
+
function vd() {
|
|
6971
|
+
let e = typeof window < "u" ? window.matchMedia("(hover: hover) and (pointer: fine)") : null, t = w(!!e?.matches);
|
|
6972
|
+
return e?.addEventListener("change", (e) => {
|
|
6973
|
+
t.value = e.matches;
|
|
6974
|
+
}), { isTouchUI: n(() => !t.value) };
|
|
6975
|
+
}
|
|
6976
|
+
//#endregion
|
|
6969
6977
|
//#region src/composables/useComposerTriggers.ts
|
|
6970
|
-
function
|
|
6978
|
+
function yd(e) {
|
|
6971
6979
|
return {
|
|
6972
6980
|
id: "mention",
|
|
6973
6981
|
triggerChar: "@",
|
|
@@ -6984,7 +6992,7 @@ function vd(e) {
|
|
|
6984
6992
|
}
|
|
6985
6993
|
};
|
|
6986
6994
|
}
|
|
6987
|
-
function
|
|
6995
|
+
function bd(e) {
|
|
6988
6996
|
let t = w(null), r = w([]), i = w({
|
|
6989
6997
|
x: 0,
|
|
6990
6998
|
y: 0,
|
|
@@ -7017,7 +7025,7 @@ function yd(e) {
|
|
|
7017
7025
|
}
|
|
7018
7026
|
for (let i of e.getTriggers()) {
|
|
7019
7027
|
if (!i.enabled()) continue;
|
|
7020
|
-
let e =
|
|
7028
|
+
let e = xd(n, i.triggerChar);
|
|
7021
7029
|
if (!e) continue;
|
|
7022
7030
|
let c = i.getCandidates(e.query).slice(0, i.maxSuggestions ?? 8);
|
|
7023
7031
|
if (!c.length) {
|
|
@@ -7062,7 +7070,7 @@ function yd(e) {
|
|
|
7062
7070
|
refreshActiveTrigger: c
|
|
7063
7071
|
};
|
|
7064
7072
|
}
|
|
7065
|
-
function
|
|
7073
|
+
function xd(e, t) {
|
|
7066
7074
|
let n = window.getSelection();
|
|
7067
7075
|
if (!n || n.rangeCount === 0 || !n.isCollapsed) return null;
|
|
7068
7076
|
let r = n.getRangeAt(0);
|
|
@@ -7073,13 +7081,13 @@ function bd(e, t) {
|
|
|
7073
7081
|
if (o === -1 || o > 0 && !/\s/.test(a[o - 1] ?? "")) return null;
|
|
7074
7082
|
let s = a.slice(o + 1);
|
|
7075
7083
|
if (/\s/.test(s)) return null;
|
|
7076
|
-
let c =
|
|
7084
|
+
let c = Cd(e, o, a.length) ?? Sd(r, t);
|
|
7077
7085
|
return c ? {
|
|
7078
7086
|
query: s,
|
|
7079
7087
|
range: c
|
|
7080
7088
|
} : null;
|
|
7081
7089
|
}
|
|
7082
|
-
function
|
|
7090
|
+
function Sd(e, t) {
|
|
7083
7091
|
let n = e.endContainer;
|
|
7084
7092
|
n.nodeType !== Node.TEXT_NODE && (n = e.endContainer.childNodes[e.endOffset - 1] ?? e.endContainer.childNodes[0] ?? null);
|
|
7085
7093
|
for (let r = 0; r < 4 && n; r += 1) {
|
|
@@ -7095,7 +7103,7 @@ function xd(e, t) {
|
|
|
7095
7103
|
}
|
|
7096
7104
|
return null;
|
|
7097
7105
|
}
|
|
7098
|
-
function
|
|
7106
|
+
function Cd(e, t, n) {
|
|
7099
7107
|
let r = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), i = 0, a = null, o = 0, s = null, c = 0;
|
|
7100
7108
|
for (let e = r.nextNode(); e; e = r.nextNode()) {
|
|
7101
7109
|
let r = e.textContent?.length ?? 0, l = i + r;
|
|
@@ -7109,7 +7117,7 @@ function Sd(e, t, n) {
|
|
|
7109
7117
|
let l = document.createRange();
|
|
7110
7118
|
return l.setStart(a, o), l.setEnd(s, c), l;
|
|
7111
7119
|
}
|
|
7112
|
-
function
|
|
7120
|
+
function wd(e, t) {
|
|
7113
7121
|
e.deleteContents();
|
|
7114
7122
|
let n = document.createElement("span");
|
|
7115
7123
|
n.className = "composer-mention", n.setAttribute("data-mention-uid", t.uid), n.contentEditable = "false", n.textContent = `@${t.displayName}`;
|
|
@@ -7120,21 +7128,21 @@ function Cd(e, t) {
|
|
|
7120
7128
|
}
|
|
7121
7129
|
//#endregion
|
|
7122
7130
|
//#region src/composables/useRichTextComposer.ts
|
|
7123
|
-
function
|
|
7131
|
+
function Td(e, t, r, i) {
|
|
7124
7132
|
let a = w(0), o = w(!1), s = w({
|
|
7125
7133
|
x: 0,
|
|
7126
7134
|
y: 0,
|
|
7127
7135
|
placement: "above"
|
|
7128
7136
|
}), c = w(Is(i.getModelValue())), l = w(""), u = null, d = null, f = n(() => {
|
|
7129
7137
|
let e = [...i.extraTriggers ?? []];
|
|
7130
|
-
return i.getMentionCandidates && e.unshift(
|
|
7138
|
+
return i.getMentionCandidates && e.unshift(yd({
|
|
7131
7139
|
enabled: () => i.mentionsEnabled?.() ?? !0,
|
|
7132
7140
|
getMentionCandidates: () => i.getMentionCandidates?.() ?? [],
|
|
7133
7141
|
insertMention: (e, t) => {
|
|
7134
|
-
|
|
7142
|
+
wd(t, e), O(), k();
|
|
7135
7143
|
}
|
|
7136
7144
|
})), e;
|
|
7137
|
-
}), { triggerCandidates: p, triggerMenuPosition: m, highlightedTriggerIndex: g, showTriggerMenu: _, hideTriggerMenu: v, handleInput: x, handleKeydown: S, selectTriggerCandidate: C, refreshActiveTrigger: T } =
|
|
7145
|
+
}), { triggerCandidates: p, triggerMenuPosition: m, highlightedTriggerIndex: g, showTriggerMenu: _, hideTriggerMenu: v, handleInput: x, handleKeydown: S, selectTriggerCandidate: C, refreshActiveTrigger: T } = bd({
|
|
7138
7146
|
editorRef: t,
|
|
7139
7147
|
getTriggers: () => f.value,
|
|
7140
7148
|
onChange: () => O()
|
|
@@ -7296,29 +7304,31 @@ function wd(e, t, r, i) {
|
|
|
7296
7304
|
}
|
|
7297
7305
|
function ce(e) {
|
|
7298
7306
|
if (!S(e)) {
|
|
7299
|
-
if (
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7307
|
+
if (!i.isTouchUI?.()) {
|
|
7308
|
+
if ((e.ctrlKey || e.metaKey) && !e.shiftKey) {
|
|
7309
|
+
let t = e.key.toLowerCase();
|
|
7310
|
+
if (t === "b") {
|
|
7311
|
+
e.preventDefault(), ae("bold");
|
|
7312
|
+
return;
|
|
7313
|
+
}
|
|
7314
|
+
if (t === "i") {
|
|
7315
|
+
e.preventDefault(), ae("italic");
|
|
7316
|
+
return;
|
|
7317
|
+
}
|
|
7318
|
+
if (t === "u") {
|
|
7319
|
+
e.preventDefault(), ae("underline");
|
|
7320
|
+
return;
|
|
7321
|
+
}
|
|
7322
|
+
if (t === "k") {
|
|
7323
|
+
e.preventDefault(), W();
|
|
7324
|
+
return;
|
|
7325
|
+
}
|
|
7312
7326
|
}
|
|
7313
|
-
if (
|
|
7314
|
-
e.preventDefault(),
|
|
7327
|
+
if (e.key === "Enter" && e.shiftKey) {
|
|
7328
|
+
e.preventDefault(), i.submit();
|
|
7315
7329
|
return;
|
|
7316
7330
|
}
|
|
7317
7331
|
}
|
|
7318
|
-
if (e.key === "Enter" && e.shiftKey) {
|
|
7319
|
-
e.preventDefault(), i.submit();
|
|
7320
|
-
return;
|
|
7321
|
-
}
|
|
7322
7332
|
e.key === "Escape" && (A(), v());
|
|
7323
7333
|
}
|
|
7324
7334
|
}
|
|
@@ -7394,7 +7404,7 @@ function wd(e, t, r, i) {
|
|
|
7394
7404
|
}
|
|
7395
7405
|
//#endregion
|
|
7396
7406
|
//#region src/components/messages/ComposerActionsPopover.vue?vue&type=script&setup=true&lang.ts
|
|
7397
|
-
var
|
|
7407
|
+
var Ed = ["data-testid", "onClick"], Dd = { class: "composer-actions-menu__icon" }, Od = { class: "composer-actions-menu__icon" }, kd = /* @__PURE__ */ u({
|
|
7398
7408
|
__name: "ComposerActionsPopover",
|
|
7399
7409
|
emits: ["pickFile", "openPoll"],
|
|
7400
7410
|
setup(t, { expose: n, emit: i }) {
|
|
@@ -7459,18 +7469,18 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7459
7469
|
class: "composer-actions-menu__item",
|
|
7460
7470
|
"data-testid": e.testId,
|
|
7461
7471
|
onClick: (t) => h(e.kind)
|
|
7462
|
-
}, [o("span",
|
|
7472
|
+
}, [o("span", Dd, [(S(), r(D(e.icon), { class: "size-5" }))]), o("span", null, k(j(u)(e.label)), 1)], 8, Ed)), 64)), o("button", {
|
|
7463
7473
|
type: "button",
|
|
7464
7474
|
class: "composer-actions-menu__item",
|
|
7465
7475
|
"data-testid": "composer-create-poll",
|
|
7466
7476
|
onClick: g
|
|
7467
|
-
}, [o("span",
|
|
7477
|
+
}, [o("span", Od, [(S(), r(D(j(ce)), { class: "size-5" }))]), o("span", null, k(j(u)("createPoll")), 1)])], 512)), [[F, c.value]]);
|
|
7468
7478
|
}
|
|
7469
|
-
}),
|
|
7479
|
+
}), Ad = (e, t) => {
|
|
7470
7480
|
let n = e.__vccOpts || e;
|
|
7471
7481
|
for (let [e, r] of t) n[e] = r;
|
|
7472
7482
|
return n;
|
|
7473
|
-
},
|
|
7483
|
+
}, jd = /* @__PURE__ */ Ad(kd, [["__scopeId", "data-v-5e8b1d79"]]), Md = { class: "border-default flex items-start justify-between gap-2 border-t-1 px-3 py-2" }, Nd = { class: "min-w-0" }, Pd = { class: "body-md text-default mt-0.5 overflow-hidden font-medium text-ellipsis whitespace-nowrap" }, Fd = { class: "body-md text-subtle overflow-hidden text-ellipsis whitespace-nowrap" }, Id = /* @__PURE__ */ u({
|
|
7474
7484
|
__name: "ComposerContextBanner",
|
|
7475
7485
|
props: {
|
|
7476
7486
|
message: {},
|
|
@@ -7480,10 +7490,10 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7480
7490
|
emits: ["cancel"],
|
|
7481
7491
|
setup(e, { emit: t }) {
|
|
7482
7492
|
let r = e, i = t, { t: s } = X(), c = Gu(), u = n(() => nc(r.message, s("message"), c.mentionNameByUid.value));
|
|
7483
|
-
return (t, n) => (S(), a("div",
|
|
7493
|
+
return (t, n) => (S(), a("div", Md, [o("div", Nd, [
|
|
7484
7494
|
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),
|
|
7485
|
-
o("p",
|
|
7486
|
-
o("p",
|
|
7495
|
+
o("p", Pd, k(e.message.senderName), 1),
|
|
7496
|
+
o("p", Fd, k(u.value), 1)
|
|
7487
7497
|
]), l(j(V), {
|
|
7488
7498
|
icon: j(de),
|
|
7489
7499
|
text: "",
|
|
@@ -7492,10 +7502,10 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7492
7502
|
onClick: n[0] ||= (e) => i("cancel")
|
|
7493
7503
|
}, null, 8, ["icon"])]));
|
|
7494
7504
|
}
|
|
7495
|
-
}),
|
|
7505
|
+
}), Ld = ["aria-label"], Rd = { class: "format-menu__label" }, zd = ["aria-label"], Bd = { class: "format-menu__label" }, Vd = ["aria-label"], Hd = { class: "format-menu__label" }, Ud = ["aria-label"], Wd = {
|
|
7496
7506
|
class: "format-menu__icon",
|
|
7497
7507
|
"aria-hidden": "true"
|
|
7498
|
-
},
|
|
7508
|
+
}, Gd = { class: "format-menu__label" }, Kd = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
7499
7509
|
__name: "ComposerFormatMenu",
|
|
7500
7510
|
props: {
|
|
7501
7511
|
visible: { type: Boolean },
|
|
@@ -7522,7 +7532,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7522
7532
|
}, [u[12] ||= o("span", {
|
|
7523
7533
|
class: "format-menu__icon font-bold",
|
|
7524
7534
|
"aria-hidden": "true"
|
|
7525
|
-
}, "B", -1), o("span",
|
|
7535
|
+
}, "B", -1), o("span", Rd, k(j(c)("bold")), 1)], 40, Ld),
|
|
7526
7536
|
o("button", {
|
|
7527
7537
|
type: "button",
|
|
7528
7538
|
class: "format-menu__item",
|
|
@@ -7533,7 +7543,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7533
7543
|
}, [u[13] ||= o("span", {
|
|
7534
7544
|
class: "format-menu__icon italic",
|
|
7535
7545
|
"aria-hidden": "true"
|
|
7536
|
-
}, "I", -1), o("span",
|
|
7546
|
+
}, "I", -1), o("span", Bd, k(j(c)("italic")), 1)], 40, zd),
|
|
7537
7547
|
o("button", {
|
|
7538
7548
|
type: "button",
|
|
7539
7549
|
class: "format-menu__item",
|
|
@@ -7544,7 +7554,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7544
7554
|
}, [u[14] ||= o("span", {
|
|
7545
7555
|
class: "format-menu__icon underline",
|
|
7546
7556
|
"aria-hidden": "true"
|
|
7547
|
-
}, "U", -1), o("span",
|
|
7557
|
+
}, "U", -1), o("span", Hd, k(j(c)("underline")), 1)], 40, Vd),
|
|
7548
7558
|
o("button", {
|
|
7549
7559
|
type: "button",
|
|
7550
7560
|
class: "format-menu__item",
|
|
@@ -7552,16 +7562,16 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7552
7562
|
onPointerdown: u[9] ||= z(() => {}, ["prevent"]),
|
|
7553
7563
|
onMousedown: u[10] ||= z(() => {}, ["prevent"]),
|
|
7554
7564
|
onClick: u[11] ||= (e) => s("link")
|
|
7555
|
-
}, [o("span",
|
|
7565
|
+
}, [o("span", Wd, [l(j(Ee), { "aria-hidden": "true" })]), o("span", Gd, k(j(c)("link")), 1)], 40, Ud)
|
|
7556
7566
|
], 6)) : i("", !0)]));
|
|
7557
7567
|
}
|
|
7558
|
-
}), [["__scopeId", "data-v-6273d79f"]]),
|
|
7568
|
+
}), [["__scopeId", "data-v-6273d79f"]]), qd = { class: "space-y-4" }, Jd = {
|
|
7559
7569
|
key: 0,
|
|
7560
7570
|
class: "body-md text-subtle truncate"
|
|
7561
|
-
},
|
|
7571
|
+
}, Yd = { class: "space-y-2" }, Xd = { class: "heading-sm text-subtle block font-medium!" }, Zd = {
|
|
7562
7572
|
key: 0,
|
|
7563
7573
|
class: "body-sm text-danger"
|
|
7564
|
-
},
|
|
7574
|
+
}, Qd = /* @__PURE__ */ u({
|
|
7565
7575
|
__name: "ComposerLinkDialog",
|
|
7566
7576
|
props: {
|
|
7567
7577
|
visible: { type: Boolean },
|
|
@@ -7609,8 +7619,8 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7609
7619
|
"icon",
|
|
7610
7620
|
"disabled"
|
|
7611
7621
|
])]),
|
|
7612
|
-
default: L(() => [o("div",
|
|
7613
|
-
o("label",
|
|
7622
|
+
default: L(() => [o("div", qd, [e.selectedText ? (S(), a("p", Jd, k(e.selectedText), 1)) : i("", !0), o("div", Yd, [
|
|
7623
|
+
o("label", Xd, k(j(d)("linkUrl")), 1),
|
|
7614
7624
|
l(j(re), {
|
|
7615
7625
|
modelValue: p.value,
|
|
7616
7626
|
"onUpdate:modelValue": n[0] ||= (e) => p.value = e,
|
|
@@ -7630,12 +7640,12 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7630
7640
|
"placeholder",
|
|
7631
7641
|
"onKeydown"
|
|
7632
7642
|
]),
|
|
7633
|
-
_.value ? (S(), a("p",
|
|
7643
|
+
_.value ? (S(), a("p", Zd, k(j(d)("invalidLinkUrl")), 1)) : i("", !0)
|
|
7634
7644
|
])])]),
|
|
7635
7645
|
_: 1
|
|
7636
7646
|
}, 8, ["visible", "header"]));
|
|
7637
7647
|
}
|
|
7638
|
-
}),
|
|
7648
|
+
}), $d = { class: "space-y-6" }, ef = { class: "space-y-2" }, tf = { class: "heading-sm text-subtle block font-medium!" }, nf = { class: "space-y-2" }, rf = { class: "heading-sm text-subtle block font-medium!" }, af = /* @__PURE__ */ u({
|
|
7639
7649
|
__name: "ComposerPollDialog",
|
|
7640
7650
|
props: {
|
|
7641
7651
|
visible: { type: Boolean },
|
|
@@ -7687,13 +7697,13 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7687
7697
|
"icon",
|
|
7688
7698
|
"disabled"
|
|
7689
7699
|
])]),
|
|
7690
|
-
default: L(() => [o("div",
|
|
7700
|
+
default: L(() => [o("div", $d, [o("div", ef, [o("label", tf, k(j(d)("question")), 1), l(j(re), {
|
|
7691
7701
|
modelValue: f.value,
|
|
7692
7702
|
"onUpdate:modelValue": i[0] ||= (e) => f.value = e,
|
|
7693
7703
|
fluid: "",
|
|
7694
7704
|
placeholder: j(d)("pollQuestionPlaceholder")
|
|
7695
|
-
}, null, 8, ["modelValue", "placeholder"])]), o("div",
|
|
7696
|
-
o("label",
|
|
7705
|
+
}, null, 8, ["modelValue", "placeholder"])]), o("div", nf, [
|
|
7706
|
+
o("label", rf, k(j(d)("options")), 1),
|
|
7697
7707
|
(S(!0), a(e, null, T(p.value, (e, t) => (S(), a("div", {
|
|
7698
7708
|
key: t,
|
|
7699
7709
|
class: "center"
|
|
@@ -7728,7 +7738,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7728
7738
|
_: 1
|
|
7729
7739
|
}, 8, ["visible", "header"]));
|
|
7730
7740
|
}
|
|
7731
|
-
}),
|
|
7741
|
+
}), of = { class: "w-full space-y-6" }, sf = { class: "w-full space-y-2" }, cf = { class: "heading-sm text-subtle block font-medium!" }, lf = { class: "center left w-full gap-2" }, uf = { class: "body-md bg-elevation-surface-sunken-default rounded-lg px-4 py-3" }, df = /* @__PURE__ */ u({
|
|
7732
7742
|
__name: "ComposerScheduleDialog",
|
|
7733
7743
|
props: {
|
|
7734
7744
|
visible: { type: Boolean },
|
|
@@ -7786,7 +7796,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7786
7796
|
"icon",
|
|
7787
7797
|
"disabled"
|
|
7788
7798
|
])]),
|
|
7789
|
-
default: L(() => [o("div",
|
|
7799
|
+
default: L(() => [o("div", of, [o("div", sf, [o("label", cf, k(j(c)("sendAt")), 1), o("div", lf, [l(j(ne), {
|
|
7790
7800
|
modelValue: u.value,
|
|
7791
7801
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
7792
7802
|
class: "w-full flex-1",
|
|
@@ -7800,22 +7810,22 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7800
7810
|
mask: "##:##",
|
|
7801
7811
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
7802
7812
|
"aria-label": "Time (24-hour)"
|
|
7803
|
-
}, null, 8, ["modelValue"])])]), o("div",
|
|
7813
|
+
}, null, 8, ["modelValue"])])]), o("div", uf, k(e.contentPreview), 1)])]),
|
|
7804
7814
|
_: 1
|
|
7805
7815
|
}, 8, ["visible", "header"]));
|
|
7806
7816
|
}
|
|
7807
|
-
}),
|
|
7817
|
+
}), ff = [
|
|
7808
7818
|
"aria-selected",
|
|
7809
7819
|
"onMouseover",
|
|
7810
7820
|
"onMousedown"
|
|
7811
|
-
],
|
|
7821
|
+
], pf = {
|
|
7812
7822
|
key: 1,
|
|
7813
7823
|
class: "trigger-menu__avatar-fallback",
|
|
7814
7824
|
"aria-hidden": "true"
|
|
7815
|
-
},
|
|
7825
|
+
}, mf = { class: "min-w-0" }, hf = { class: "trigger-menu__label" }, gf = {
|
|
7816
7826
|
key: 0,
|
|
7817
7827
|
class: "trigger-menu__subtitle"
|
|
7818
|
-
},
|
|
7828
|
+
}, _f = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
7819
7829
|
__name: "ComposerTriggerMenu",
|
|
7820
7830
|
props: /* @__PURE__ */ m({
|
|
7821
7831
|
visible: { type: Boolean },
|
|
@@ -7850,18 +7860,18 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7850
7860
|
src: e.avatar,
|
|
7851
7861
|
name: e.label,
|
|
7852
7862
|
size: "sm"
|
|
7853
|
-
}, null, 8, ["src", "name"])) : (S(), a("span",
|
|
7863
|
+
}, null, 8, ["src", "name"])) : (S(), a("span", pf, k(e.label.charAt(0)), 1)), o("span", mf, [o("span", hf, k(e.label), 1), e.subtitle ? (S(), a("span", gf, k(e.subtitle), 1)) : i("", !0)])], 42, ff))), 128))], 38)) : i("", !0)]));
|
|
7854
7864
|
}
|
|
7855
|
-
}), [["__scopeId", "data-v-9cc0f5b0"]]),
|
|
7865
|
+
}), [["__scopeId", "data-v-9cc0f5b0"]]), vf = ["accept", "disabled"], yf = { class: "px-1 pb-1.5" }, bf = {
|
|
7856
7866
|
key: 0,
|
|
7857
7867
|
class: "composer-file-preview"
|
|
7858
|
-
},
|
|
7868
|
+
}, xf = { class: "min-w-0" }, Sf = { class: "heading-sm text-default truncate" }, Cf = { class: "body-sm text-subtle" }, wf = ["data-placeholder"], Tf = {
|
|
7859
7869
|
key: 0,
|
|
7860
7870
|
class: "body-sm text-subtle flex items-center gap-2 px-0.5"
|
|
7861
|
-
},
|
|
7871
|
+
}, Ef = {
|
|
7862
7872
|
key: 2,
|
|
7863
7873
|
class: "ml-auto"
|
|
7864
|
-
},
|
|
7874
|
+
}, Df = 450, Of = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
7865
7875
|
__name: "MessageComposer",
|
|
7866
7876
|
props: {
|
|
7867
7877
|
modelValue: {},
|
|
@@ -7897,99 +7907,100 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
7897
7907
|
video: "video/*",
|
|
7898
7908
|
audio: "audio/*",
|
|
7899
7909
|
file: "*/*"
|
|
7900
|
-
}, 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(), O =
|
|
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 } = Td(M, N, P, {
|
|
7901
7911
|
getModelValue: () => u.modelValue,
|
|
7902
7912
|
updateModelValue: (e) => d("update:modelValue", e),
|
|
7903
|
-
submit: () =>
|
|
7913
|
+
submit: () => Le(),
|
|
7904
7914
|
formatMenuEnabled: () => u.formattingMode !== "external",
|
|
7905
7915
|
onSelectionChange: (e) => d("composerSelectionChange", e),
|
|
7906
|
-
requestLink:
|
|
7916
|
+
requestLink: De,
|
|
7907
7917
|
shouldClearSelectionOnLinkRequest: () => u.formattingMode === "external",
|
|
7908
7918
|
getMentionCandidates: () => u.mentionCandidates ?? [],
|
|
7909
7919
|
getMentionNameByUid: () => u.mentionNameByUid ?? {},
|
|
7910
|
-
mentionsEnabled: () => u.mentionsEnabled ?? (u.mentionCandidates?.length ?? 0) > 0
|
|
7911
|
-
|
|
7920
|
+
mentionsEnabled: () => u.mentionsEnabled ?? (u.mentionCandidates?.length ?? 0) > 0,
|
|
7921
|
+
isTouchUI: () => O.value
|
|
7922
|
+
}), me = n(() => c[v.value]), he = n(() => {
|
|
7912
7923
|
if (!_.value) return null;
|
|
7913
7924
|
let e = _.value.type;
|
|
7914
7925
|
return e.startsWith("image/") ? "image" : e.startsWith("video/") ? "video" : e.startsWith("audio/") ? "audio" : "file";
|
|
7915
|
-
}),
|
|
7916
|
-
switch (
|
|
7926
|
+
}), ge = n(() => {
|
|
7927
|
+
switch (he.value) {
|
|
7917
7928
|
case "image": return D("image");
|
|
7918
7929
|
case "video": return D("video");
|
|
7919
7930
|
case "audio": return D("audio");
|
|
7920
7931
|
case "file": return D("file");
|
|
7921
7932
|
default: return D("attachment");
|
|
7922
7933
|
}
|
|
7923
|
-
}),
|
|
7934
|
+
}), ve = n(() => !u.editingMessage && !u.replyToMessage ? "" : u.compact ? "pt-1" : "pt-1.5"), ye = n(() => ec(u.modelValue) || !!_.value), be = n(() => ye.value && he.value !== "file"), xe = n(() => _.value ? D("attachmentSummary", { name: _.value.name }) : tc(u.modelValue) || D("currentDraftWillBeScheduled"));
|
|
7924
7935
|
I(() => u.resetSignal, () => {
|
|
7925
|
-
|
|
7936
|
+
K(), _.value = null, y.value = !1, b.value = !1, x.value = !1, ee(), f.value && (f.value.value = "");
|
|
7926
7937
|
});
|
|
7927
|
-
async function
|
|
7928
|
-
await h(),
|
|
7938
|
+
async function Se() {
|
|
7939
|
+
await h(), H();
|
|
7929
7940
|
}
|
|
7930
|
-
function
|
|
7941
|
+
function Ce() {
|
|
7931
7942
|
m.value?.hide();
|
|
7932
7943
|
}
|
|
7933
7944
|
t({
|
|
7934
|
-
focusEditor:
|
|
7935
|
-
hideComposerActions:
|
|
7936
|
-
applyComposerFormat:
|
|
7937
|
-
applyComposerLink:
|
|
7938
|
-
cancelComposerLink:
|
|
7939
|
-
getComposerSelection:
|
|
7940
|
-
requestComposerLink:
|
|
7945
|
+
focusEditor: Se,
|
|
7946
|
+
hideComposerActions: Ce,
|
|
7947
|
+
applyComposerFormat: Oe,
|
|
7948
|
+
applyComposerLink: Ae,
|
|
7949
|
+
cancelComposerLink: je,
|
|
7950
|
+
getComposerSelection: Me,
|
|
7951
|
+
requestComposerLink: ke
|
|
7941
7952
|
});
|
|
7942
|
-
async function
|
|
7953
|
+
async function we(e = "file") {
|
|
7943
7954
|
v.value = e, await h(), f.value?.click();
|
|
7944
7955
|
}
|
|
7945
|
-
function we(e) {
|
|
7946
|
-
_.value = e.target.files?.[0] ?? null, Se();
|
|
7947
|
-
}
|
|
7948
7956
|
function Te(e) {
|
|
7957
|
+
_.value = e.target.files?.[0] ?? null, Ce();
|
|
7958
|
+
}
|
|
7959
|
+
function Ee(e) {
|
|
7949
7960
|
if (u.disabled) return;
|
|
7950
7961
|
let t = _d(e);
|
|
7951
7962
|
if (t) {
|
|
7952
|
-
e.preventDefault(), _.value = t,
|
|
7963
|
+
e.preventDefault(), _.value = t, Ce();
|
|
7953
7964
|
return;
|
|
7954
7965
|
}
|
|
7955
|
-
|
|
7966
|
+
re(e);
|
|
7956
7967
|
}
|
|
7957
|
-
function
|
|
7968
|
+
function De(e) {
|
|
7958
7969
|
if (u.formattingMode === "external") {
|
|
7959
7970
|
d("composerLinkRequest", e);
|
|
7960
7971
|
return;
|
|
7961
7972
|
}
|
|
7962
7973
|
T.value = e.text, C.value = e.href ?? "", x.value = !0;
|
|
7963
7974
|
}
|
|
7964
|
-
function
|
|
7965
|
-
return
|
|
7975
|
+
function Oe(e) {
|
|
7976
|
+
return L(e);
|
|
7966
7977
|
}
|
|
7967
|
-
function
|
|
7968
|
-
return
|
|
7969
|
-
}
|
|
7970
|
-
function ke(e) {
|
|
7971
|
-
return P(e);
|
|
7978
|
+
function ke() {
|
|
7979
|
+
return W();
|
|
7972
7980
|
}
|
|
7973
|
-
function Ae() {
|
|
7974
|
-
|
|
7981
|
+
function Ae(e) {
|
|
7982
|
+
return F(e);
|
|
7975
7983
|
}
|
|
7976
7984
|
function je() {
|
|
7977
|
-
|
|
7985
|
+
ee();
|
|
7978
7986
|
}
|
|
7979
|
-
function Me(
|
|
7980
|
-
|
|
7987
|
+
function Me() {
|
|
7988
|
+
return ae();
|
|
7981
7989
|
}
|
|
7982
|
-
function Pe() {
|
|
7983
|
-
|
|
7990
|
+
function Pe(e) {
|
|
7991
|
+
F(e) && (x.value = !1);
|
|
7984
7992
|
}
|
|
7985
7993
|
function J() {
|
|
7994
|
+
ee();
|
|
7995
|
+
}
|
|
7996
|
+
function Fe() {
|
|
7986
7997
|
_.value = null, f.value && (f.value.value = "");
|
|
7987
7998
|
}
|
|
7988
|
-
function
|
|
7999
|
+
function Ie(e) {
|
|
7989
8000
|
m.value?.toggle(e);
|
|
7990
8001
|
}
|
|
7991
|
-
function
|
|
7992
|
-
if (!(u.disabled || !
|
|
8002
|
+
function Le() {
|
|
8003
|
+
if (!(u.disabled || !ye.value)) {
|
|
7993
8004
|
if (_.value) {
|
|
7994
8005
|
d("sendAttachment", {
|
|
7995
8006
|
file: _.value,
|
|
@@ -8000,10 +8011,10 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8000
8011
|
d("sendText");
|
|
8001
8012
|
}
|
|
8002
8013
|
}
|
|
8003
|
-
function
|
|
8014
|
+
function Re(e) {
|
|
8004
8015
|
d("sendPoll", e);
|
|
8005
8016
|
}
|
|
8006
|
-
function
|
|
8017
|
+
function ze(e) {
|
|
8007
8018
|
d("scheduleMessage", {
|
|
8008
8019
|
...e,
|
|
8009
8020
|
text: _.value ? void 0 : $s(u.modelValue),
|
|
@@ -8011,48 +8022,48 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8011
8022
|
caption: _.value ? $s(u.modelValue) : void 0
|
|
8012
8023
|
});
|
|
8013
8024
|
}
|
|
8014
|
-
function ze() {
|
|
8015
|
-
d("openScheduled");
|
|
8016
|
-
}
|
|
8017
8025
|
function Be() {
|
|
8018
|
-
|
|
8026
|
+
d("openScheduled");
|
|
8019
8027
|
}
|
|
8020
|
-
function Ve(
|
|
8021
|
-
|
|
8022
|
-
O = null, E.value = !0, b.value = !0;
|
|
8023
|
-
}, Ef));
|
|
8028
|
+
function Ve() {
|
|
8029
|
+
A !== null && (clearTimeout(A), A = null);
|
|
8024
8030
|
}
|
|
8025
|
-
function Y() {
|
|
8026
|
-
|
|
8031
|
+
function Y(e) {
|
|
8032
|
+
u.disabled || !be.value || e instanceof MouseEvent && e.button !== 0 || (E.value = !1, Ve(), A = setTimeout(() => {
|
|
8033
|
+
A = null, E.value = !0, b.value = !0;
|
|
8034
|
+
}, Df));
|
|
8027
8035
|
}
|
|
8028
8036
|
function He() {
|
|
8029
|
-
|
|
8037
|
+
Ve();
|
|
8038
|
+
}
|
|
8039
|
+
function Ue() {
|
|
8040
|
+
if (!(u.disabled || !ye.value)) {
|
|
8030
8041
|
if (E.value) {
|
|
8031
8042
|
E.value = !1;
|
|
8032
8043
|
return;
|
|
8033
8044
|
}
|
|
8034
|
-
|
|
8045
|
+
Le();
|
|
8035
8046
|
}
|
|
8036
8047
|
}
|
|
8037
|
-
return (t, n) => (S(), a("div", { class: g([u.compact ? "space-y-1" : "space-y-1.5",
|
|
8048
|
+
return (t, n) => (S(), a("div", { class: g([u.compact ? "space-y-1" : "space-y-1.5", ve.value]) }, [
|
|
8038
8049
|
o("input", {
|
|
8039
8050
|
ref_key: "fileInputRef",
|
|
8040
8051
|
ref: f,
|
|
8041
8052
|
type: "file",
|
|
8042
8053
|
class: "hidden",
|
|
8043
|
-
accept:
|
|
8054
|
+
accept: me.value,
|
|
8044
8055
|
disabled: e.disabled,
|
|
8045
|
-
onChange:
|
|
8046
|
-
onCancel:
|
|
8047
|
-
}, null, 40,
|
|
8048
|
-
e.editingMessage ? (S(), r(
|
|
8056
|
+
onChange: Te,
|
|
8057
|
+
onCancel: Ce
|
|
8058
|
+
}, null, 40, vf),
|
|
8059
|
+
e.editingMessage ? (S(), r(Id, {
|
|
8049
8060
|
key: 0,
|
|
8050
8061
|
message: e.editingMessage,
|
|
8051
8062
|
variant: "editing",
|
|
8052
8063
|
"context-label": e.contextLabel,
|
|
8053
8064
|
onCancel: n[0] ||= (e) => d("cancelEdit")
|
|
8054
8065
|
}, null, 8, ["message", "context-label"])) : i("", !0),
|
|
8055
|
-
e.replyToMessage ? (S(), r(
|
|
8066
|
+
e.replyToMessage ? (S(), r(Id, {
|
|
8056
8067
|
key: 1,
|
|
8057
8068
|
message: e.replyToMessage,
|
|
8058
8069
|
variant: "replying",
|
|
@@ -8060,23 +8071,23 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8060
8071
|
"data-testid": "composer-reply-context",
|
|
8061
8072
|
onCancel: n[1] ||= (e) => d("cancelReply")
|
|
8062
8073
|
}, null, 8, ["message", "context-label"])) : i("", !0),
|
|
8063
|
-
o("div",
|
|
8064
|
-
_.value ? (S(), a("div",
|
|
8074
|
+
o("div", yf, [
|
|
8075
|
+
_.value ? (S(), a("div", bf, [o("div", xf, [o("p", Sf, k(_.value.name), 1), o("p", Cf, k(_.value.type || ge.value), 1)]), l(j(V), {
|
|
8065
8076
|
icon: j(de),
|
|
8066
8077
|
text: "",
|
|
8067
8078
|
rounded: "",
|
|
8068
8079
|
severity: "secondary",
|
|
8069
|
-
onClick:
|
|
8080
|
+
onClick: Fe
|
|
8070
8081
|
}, null, 8, ["icon"])])) : i("", !0),
|
|
8071
8082
|
o("div", {
|
|
8072
8083
|
ref_key: "composerShellRef",
|
|
8073
|
-
ref:
|
|
8084
|
+
ref: M,
|
|
8074
8085
|
class: g(["composer-shell", u.compact ? "composer-shell--compact" : "composer-shell--default"])
|
|
8075
8086
|
}, [
|
|
8076
|
-
l(
|
|
8087
|
+
l(jd, {
|
|
8077
8088
|
ref_key: "composerActionsRef",
|
|
8078
8089
|
ref: m,
|
|
8079
|
-
onPickFile:
|
|
8090
|
+
onPickFile: we,
|
|
8080
8091
|
onOpenPoll: n[2] ||= (e) => y.value = !0
|
|
8081
8092
|
}, null, 512),
|
|
8082
8093
|
l(j(V), {
|
|
@@ -8088,7 +8099,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8088
8099
|
"aria-label": j(D)("addToMessage"),
|
|
8089
8100
|
"data-testid": "composer-actions-button",
|
|
8090
8101
|
icon: j(oe),
|
|
8091
|
-
onClick:
|
|
8102
|
+
onClick: Ie
|
|
8092
8103
|
}, null, 8, [
|
|
8093
8104
|
"class",
|
|
8094
8105
|
"disabled",
|
|
@@ -8096,22 +8107,22 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8096
8107
|
"icon"
|
|
8097
8108
|
]),
|
|
8098
8109
|
(S(), a("div", {
|
|
8099
|
-
key: j(
|
|
8110
|
+
key: j(R),
|
|
8100
8111
|
ref_key: "composerEditorRef",
|
|
8101
|
-
ref:
|
|
8112
|
+
ref: N,
|
|
8102
8113
|
contenteditable: "true",
|
|
8103
8114
|
role: "textbox",
|
|
8104
8115
|
"aria-multiline": "true",
|
|
8105
8116
|
"data-placeholder": j(D)("writeMessage"),
|
|
8106
8117
|
class: g(["composer-editor", e.disabled ? "pointer-events-none opacity-60" : ""]),
|
|
8107
|
-
onFocus: n[3] ||= (...e) => j(
|
|
8108
|
-
onInput: n[4] ||= (...e) => j(
|
|
8109
|
-
onKeyup: n[5] ||= (...e) => j(
|
|
8110
|
-
onKeydown: n[6] ||= (...e) => j(
|
|
8111
|
-
onPaste:
|
|
8112
|
-
onContextmenu: n[7] ||= (...e) => j(
|
|
8113
|
-
}, null, 42,
|
|
8114
|
-
_.value || e.editingMessage || e.contextLabel || e.offlineMode ? (S(), a("div",
|
|
8118
|
+
onFocus: n[3] ||= (...e) => j(ie) && j(ie)(...e),
|
|
8119
|
+
onInput: n[4] ||= (...e) => j(te) && j(te)(...e),
|
|
8120
|
+
onKeyup: n[5] ||= (...e) => j(te) && j(te)(...e),
|
|
8121
|
+
onKeydown: n[6] ||= (...e) => j(ne) && j(ne)(...e),
|
|
8122
|
+
onPaste: Ee,
|
|
8123
|
+
onContextmenu: n[7] ||= (...e) => j(U) && j(U)(...e)
|
|
8124
|
+
}, null, 42, wf)),
|
|
8125
|
+
_.value || e.editingMessage || e.contextLabel || e.offlineMode ? (S(), a("div", Tf, [
|
|
8115
8126
|
e.editingMessage ? (S(), r(j(G), {
|
|
8116
8127
|
key: 0,
|
|
8117
8128
|
text: j(D)("editing"),
|
|
@@ -8128,7 +8139,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8128
8139
|
size: "sm",
|
|
8129
8140
|
class: "composer-meta-tag"
|
|
8130
8141
|
}, null, 8, ["text"])) : i("", !0),
|
|
8131
|
-
e.offlineMode ? (S(), a("p",
|
|
8142
|
+
e.offlineMode ? (S(), a("p", Ef, k(e.pendingQueueCount ? j(D)("offlineQueued", { count: e.pendingQueueCount }) : j(D)("offline")), 1)) : i("", !0)
|
|
8132
8143
|
])) : i("", !0),
|
|
8133
8144
|
e.showScheduledButton ? (S(), r(j(V), {
|
|
8134
8145
|
key: 1,
|
|
@@ -8138,7 +8149,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8138
8149
|
disabled: e.disabled,
|
|
8139
8150
|
"aria-label": j(D)("scheduledMessages"),
|
|
8140
8151
|
icon: j(_e),
|
|
8141
|
-
onClick:
|
|
8152
|
+
onClick: Be
|
|
8142
8153
|
}, null, 8, [
|
|
8143
8154
|
"class",
|
|
8144
8155
|
"disabled",
|
|
@@ -8150,17 +8161,17 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8150
8161
|
severity: "primary",
|
|
8151
8162
|
text: "",
|
|
8152
8163
|
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"]),
|
|
8153
|
-
disabled: e.disabled || !
|
|
8164
|
+
disabled: e.disabled || !ye.value,
|
|
8154
8165
|
"aria-label": e.editingMessage ? j(D)("saveMessage") : _.value ? j(D)("sendAttachment") : j(D)("sendMessage"),
|
|
8155
8166
|
icon: e.editingMessage ? j(ue) : j(Ne),
|
|
8156
|
-
onMousedown:
|
|
8157
|
-
onMouseup:
|
|
8158
|
-
onMouseleave:
|
|
8159
|
-
onTouchstart:
|
|
8160
|
-
onTouchend:
|
|
8161
|
-
onTouchcancel:
|
|
8167
|
+
onMousedown: Y,
|
|
8168
|
+
onMouseup: He,
|
|
8169
|
+
onMouseleave: He,
|
|
8170
|
+
onTouchstart: Y,
|
|
8171
|
+
onTouchend: He,
|
|
8172
|
+
onTouchcancel: He,
|
|
8162
8173
|
onContextmenu: n[8] ||= z(() => {}, ["prevent"]),
|
|
8163
|
-
onClick:
|
|
8174
|
+
onClick: Ue
|
|
8164
8175
|
}, null, 8, [
|
|
8165
8176
|
"class",
|
|
8166
8177
|
"disabled",
|
|
@@ -8168,60 +8179,60 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8168
8179
|
"icon"
|
|
8169
8180
|
])
|
|
8170
8181
|
], 2),
|
|
8171
|
-
e.formattingMode === "external" ? i("", !0) : (S(), r(
|
|
8182
|
+
e.formattingMode === "external" ? i("", !0) : (S(), r(Kd, {
|
|
8172
8183
|
key: 1,
|
|
8173
|
-
visible: j(
|
|
8174
|
-
position: j(
|
|
8175
|
-
onFormat: n[9] ||= (e) => j(
|
|
8176
|
-
onLink: j(
|
|
8184
|
+
visible: j(q),
|
|
8185
|
+
position: j(B),
|
|
8186
|
+
onFormat: n[9] ||= (e) => j(L)(e),
|
|
8187
|
+
onLink: j(W)
|
|
8177
8188
|
}, null, 8, [
|
|
8178
8189
|
"visible",
|
|
8179
8190
|
"position",
|
|
8180
8191
|
"onLink"
|
|
8181
8192
|
])),
|
|
8182
|
-
l(
|
|
8193
|
+
l(_f, {
|
|
8183
8194
|
ref_key: "triggerMenuRef",
|
|
8184
|
-
ref:
|
|
8185
|
-
"highlighted-index": j(
|
|
8186
|
-
"onUpdate:highlightedIndex": n[10] ||= (e) => p(
|
|
8187
|
-
visible: j(
|
|
8188
|
-
position: j(
|
|
8189
|
-
candidates: j(
|
|
8190
|
-
onSelect: n[11] ||= (e) => j(
|
|
8195
|
+
ref: P,
|
|
8196
|
+
"highlighted-index": j(le),
|
|
8197
|
+
"onUpdate:highlightedIndex": n[10] ||= (e) => p(le) ? le.value = e : null,
|
|
8198
|
+
visible: j(fe),
|
|
8199
|
+
position: j(ce),
|
|
8200
|
+
candidates: j(se),
|
|
8201
|
+
onSelect: n[11] ||= (e) => j(pe)(e)
|
|
8191
8202
|
}, null, 8, [
|
|
8192
8203
|
"highlighted-index",
|
|
8193
8204
|
"visible",
|
|
8194
8205
|
"position",
|
|
8195
8206
|
"candidates"
|
|
8196
8207
|
]),
|
|
8197
|
-
l(
|
|
8208
|
+
l(af, {
|
|
8198
8209
|
visible: y.value,
|
|
8199
8210
|
"onUpdate:visible": n[12] ||= (e) => y.value = e,
|
|
8200
8211
|
disabled: e.disabled,
|
|
8201
|
-
onSend:
|
|
8212
|
+
onSend: Re
|
|
8202
8213
|
}, null, 8, ["visible", "disabled"]),
|
|
8203
|
-
e.formattingMode === "external" ? i("", !0) : (S(), r(
|
|
8214
|
+
e.formattingMode === "external" ? i("", !0) : (S(), r(Qd, {
|
|
8204
8215
|
key: 2,
|
|
8205
8216
|
visible: x.value,
|
|
8206
8217
|
"onUpdate:visible": n[13] ||= (e) => x.value = e,
|
|
8207
8218
|
disabled: e.disabled,
|
|
8208
8219
|
"initial-url": C.value,
|
|
8209
8220
|
"selected-text": T.value,
|
|
8210
|
-
onApply:
|
|
8211
|
-
onCancel:
|
|
8221
|
+
onApply: Pe,
|
|
8222
|
+
onCancel: J
|
|
8212
8223
|
}, null, 8, [
|
|
8213
8224
|
"visible",
|
|
8214
8225
|
"disabled",
|
|
8215
8226
|
"initial-url",
|
|
8216
8227
|
"selected-text"
|
|
8217
8228
|
])),
|
|
8218
|
-
l(
|
|
8229
|
+
l(df, {
|
|
8219
8230
|
visible: b.value,
|
|
8220
8231
|
"onUpdate:visible": n[14] ||= (e) => b.value = e,
|
|
8221
8232
|
disabled: e.disabled,
|
|
8222
|
-
"can-schedule":
|
|
8223
|
-
"content-preview":
|
|
8224
|
-
onSchedule:
|
|
8233
|
+
"can-schedule": be.value,
|
|
8234
|
+
"content-preview": xe.value,
|
|
8235
|
+
onSchedule: ze
|
|
8225
8236
|
}, null, 8, [
|
|
8226
8237
|
"visible",
|
|
8227
8238
|
"disabled",
|
|
@@ -8231,10 +8242,10 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8231
8242
|
])
|
|
8232
8243
|
], 2));
|
|
8233
8244
|
}
|
|
8234
|
-
}), [["__scopeId", "data-v-
|
|
8245
|
+
}), [["__scopeId", "data-v-50a9c196"]]), kf = {
|
|
8235
8246
|
key: 1,
|
|
8236
8247
|
class: "composer-readonly-notice"
|
|
8237
|
-
},
|
|
8248
|
+
}, Af = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
8238
8249
|
__name: "ConversationComposer",
|
|
8239
8250
|
props: {
|
|
8240
8251
|
target: {},
|
|
@@ -8323,7 +8334,7 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8323
8334
|
focusEditor: ee,
|
|
8324
8335
|
getComposerSelection: H,
|
|
8325
8336
|
requestComposerLink: z
|
|
8326
|
-
}), (t, n) => x.value ? (S(), r(
|
|
8337
|
+
}), (t, n) => x.value ? (S(), r(Of, {
|
|
8327
8338
|
key: 0,
|
|
8328
8339
|
ref_key: "composerRef",
|
|
8329
8340
|
ref: L,
|
|
@@ -8364,19 +8375,15 @@ var Td = ["data-testid", "onClick"], Ed = { class: "composer-actions-menu__icon"
|
|
|
8364
8375
|
"mention-name-by-uid",
|
|
8365
8376
|
"mentions-enabled",
|
|
8366
8377
|
"formatting-mode"
|
|
8367
|
-
])) : C.value ? (S(), a("div",
|
|
8378
|
+
])) : C.value ? (S(), a("div", kf, k(h.value ? j(l)("repliesDisabledInChannels") : j(l)("readOnlyChannel")), 1)) : i("", !0);
|
|
8368
8379
|
}
|
|
8369
|
-
}), [["__scopeId", "data-v-924c6768"]]),
|
|
8370
|
-
function
|
|
8371
|
-
let t = e.actionMenuRef,
|
|
8372
|
-
|
|
8373
|
-
s.value = e.matches;
|
|
8374
|
-
});
|
|
8375
|
-
let c = null;
|
|
8376
|
-
function l(e) {
|
|
8380
|
+
}), [["__scopeId", "data-v-924c6768"]]), jf = 1800;
|
|
8381
|
+
function Mf(e) {
|
|
8382
|
+
let t = e.actionMenuRef, n = w(null), r = w(null), i = w({}), { isTouchUI: a } = vd(), o = null;
|
|
8383
|
+
function s(e) {
|
|
8377
8384
|
return e.kind === "text" && ec(e.text);
|
|
8378
8385
|
}
|
|
8379
|
-
function
|
|
8386
|
+
function c(e) {
|
|
8380
8387
|
return e.isOwn && [
|
|
8381
8388
|
"text",
|
|
8382
8389
|
"image",
|
|
@@ -8385,29 +8392,29 @@ function jf(e) {
|
|
|
8385
8392
|
"file"
|
|
8386
8393
|
].includes(e.kind) && !e.isDeleted && e.deliveryState === "sent";
|
|
8387
8394
|
}
|
|
8388
|
-
function
|
|
8395
|
+
function l(e) {
|
|
8389
8396
|
return e.isOwn && e.deliveryState === "sent";
|
|
8390
8397
|
}
|
|
8391
|
-
function
|
|
8398
|
+
function u(e) {
|
|
8392
8399
|
return e.isOwn && !e.isDeleted;
|
|
8393
8400
|
}
|
|
8394
|
-
function
|
|
8401
|
+
function d(e) {
|
|
8395
8402
|
return cc(e);
|
|
8396
8403
|
}
|
|
8397
|
-
function
|
|
8404
|
+
function f(e) {
|
|
8398
8405
|
return e.attachments.find((e) => e.kind === "image" && !!e.url);
|
|
8399
8406
|
}
|
|
8400
|
-
async function
|
|
8401
|
-
let t =
|
|
8407
|
+
async function p(e) {
|
|
8408
|
+
let t = f(e);
|
|
8402
8409
|
if (!t?.url || typeof navigator > "u" || !navigator.clipboard?.write || typeof ClipboardItem > "u") return !1;
|
|
8403
8410
|
let n = await fetch(t.url);
|
|
8404
8411
|
if (!n.ok) return !1;
|
|
8405
8412
|
let r = await n.blob();
|
|
8406
8413
|
if (!r.type.startsWith("image/")) return !1;
|
|
8407
|
-
let i = { [r.type]: r }, a =
|
|
8414
|
+
let i = { [r.type]: r }, a = d(e);
|
|
8408
8415
|
return a && (i["text/plain"] = new Blob([a], { type: "text/plain" })), await navigator.clipboard.write([new ClipboardItem(i)]), !0;
|
|
8409
8416
|
}
|
|
8410
|
-
function
|
|
8417
|
+
function m(e) {
|
|
8411
8418
|
let t = Number.isFinite(e.clientX) ? e.clientX : 0, n = Number.isFinite(e.clientY) ? e.clientY : 0;
|
|
8412
8419
|
if (t > 0 || n > 0) return {
|
|
8413
8420
|
x: t,
|
|
@@ -8426,9 +8433,9 @@ function jf(e) {
|
|
|
8426
8433
|
y: 0
|
|
8427
8434
|
};
|
|
8428
8435
|
}
|
|
8429
|
-
async function
|
|
8430
|
-
if (
|
|
8431
|
-
let t =
|
|
8436
|
+
async function g(e, t) {
|
|
8437
|
+
if (!a.value) {
|
|
8438
|
+
let t = m(e);
|
|
8432
8439
|
return {
|
|
8433
8440
|
x: t.x + 2,
|
|
8434
8441
|
y: t.y + 2,
|
|
@@ -8459,91 +8466,91 @@ function jf(e) {
|
|
|
8459
8466
|
element: void 0
|
|
8460
8467
|
};
|
|
8461
8468
|
}
|
|
8462
|
-
async function
|
|
8463
|
-
if (!e.canUseMessageActions() ||
|
|
8464
|
-
i.preventDefault(), i.stopPropagation(), e.onMenuOpen?.(),
|
|
8465
|
-
let { x:
|
|
8469
|
+
async function _(r, i, o) {
|
|
8470
|
+
if (!e.canUseMessageActions() || o === "contextmenu" && a.value || o === "tap" && !a.value) return;
|
|
8471
|
+
i.preventDefault(), i.stopPropagation(), e.onMenuOpen?.(), n.value = r, M(r), await h();
|
|
8472
|
+
let { x: s, y: c, element: l } = await g(i, r);
|
|
8466
8473
|
t.value?.show(i, l ? void 0 : {
|
|
8467
|
-
x:
|
|
8474
|
+
x: s,
|
|
8468
8475
|
y: c
|
|
8469
8476
|
}, l);
|
|
8470
8477
|
}
|
|
8471
|
-
function
|
|
8472
|
-
|
|
8478
|
+
function v(e, t) {
|
|
8479
|
+
_(e, t, "contextmenu");
|
|
8473
8480
|
}
|
|
8474
|
-
function
|
|
8475
|
-
if (
|
|
8476
|
-
t.preventDefault(), t.stopPropagation(),
|
|
8481
|
+
function y(e, t) {
|
|
8482
|
+
if (n.value) {
|
|
8483
|
+
t.preventDefault(), t.stopPropagation(), b();
|
|
8477
8484
|
return;
|
|
8478
8485
|
}
|
|
8479
|
-
|
|
8486
|
+
_(e, t, "tap");
|
|
8480
8487
|
}
|
|
8481
|
-
function
|
|
8482
|
-
|
|
8488
|
+
function b() {
|
|
8489
|
+
x(), t.value?.hide();
|
|
8483
8490
|
}
|
|
8484
|
-
function
|
|
8491
|
+
function x() {
|
|
8485
8492
|
setTimeout(() => {
|
|
8486
|
-
|
|
8493
|
+
n.value = null;
|
|
8487
8494
|
}, 10);
|
|
8488
8495
|
}
|
|
8489
|
-
function
|
|
8490
|
-
e.canReact() && (e.emit.toggleReaction(t, n),
|
|
8496
|
+
function S(t, n) {
|
|
8497
|
+
e.canReact() && (e.emit.toggleReaction(t, n), b());
|
|
8491
8498
|
}
|
|
8492
|
-
function
|
|
8499
|
+
function C(t, n) {
|
|
8493
8500
|
e.canReact() && e.emit.toggleReaction(t, n);
|
|
8494
8501
|
}
|
|
8495
|
-
async function
|
|
8502
|
+
async function T(e) {
|
|
8496
8503
|
if (typeof navigator > "u") return;
|
|
8497
8504
|
let t = !1;
|
|
8498
8505
|
try {
|
|
8499
|
-
t = await
|
|
8506
|
+
t = await p(e);
|
|
8500
8507
|
} catch {
|
|
8501
8508
|
t = !1;
|
|
8502
8509
|
}
|
|
8503
8510
|
if (!t) {
|
|
8504
|
-
let t =
|
|
8511
|
+
let t = d(e);
|
|
8505
8512
|
if (!t || !navigator.clipboard?.writeText) return;
|
|
8506
8513
|
await navigator.clipboard.writeText(t);
|
|
8507
8514
|
}
|
|
8508
|
-
|
|
8509
|
-
|
|
8510
|
-
},
|
|
8515
|
+
r.value = e.id, o && clearTimeout(o), o = setTimeout(() => {
|
|
8516
|
+
r.value = null;
|
|
8517
|
+
}, jf), b();
|
|
8518
|
+
}
|
|
8519
|
+
function E(t) {
|
|
8520
|
+
e.canReply() && (e.emit.reply(t), b());
|
|
8521
|
+
}
|
|
8522
|
+
function D(t) {
|
|
8523
|
+
e.emit.edit(t), b();
|
|
8511
8524
|
}
|
|
8512
8525
|
function O(t) {
|
|
8513
|
-
e.
|
|
8526
|
+
e.canOpenThread() && (e.emit.openThread(t), b());
|
|
8514
8527
|
}
|
|
8515
8528
|
function k(t) {
|
|
8516
|
-
e.emit.
|
|
8529
|
+
e.emit.translate(t), b();
|
|
8517
8530
|
}
|
|
8518
8531
|
function A(t) {
|
|
8519
|
-
e.
|
|
8532
|
+
e.emit.delete(t), b();
|
|
8520
8533
|
}
|
|
8521
8534
|
function j(t) {
|
|
8522
|
-
e.
|
|
8523
|
-
}
|
|
8524
|
-
function M(t) {
|
|
8525
|
-
e.emit.delete(t), S();
|
|
8535
|
+
return e.getCachedMessageReceipts?.(t) ?? i.value[t.id];
|
|
8526
8536
|
}
|
|
8527
|
-
function
|
|
8528
|
-
|
|
8529
|
-
}
|
|
8530
|
-
async function P(t) {
|
|
8531
|
-
if (!(!d(t) || N(t) || !e.loadMessageReceipts)) try {
|
|
8537
|
+
async function M(t) {
|
|
8538
|
+
if (!(!l(t) || j(t) || !e.loadMessageReceipts)) try {
|
|
8532
8539
|
let n = await e.loadMessageReceipts(t);
|
|
8533
|
-
|
|
8534
|
-
...
|
|
8540
|
+
i.value = {
|
|
8541
|
+
...i.value,
|
|
8535
8542
|
[t.id]: n
|
|
8536
8543
|
};
|
|
8537
8544
|
} catch {
|
|
8538
|
-
|
|
8539
|
-
...
|
|
8545
|
+
i.value = {
|
|
8546
|
+
...i.value,
|
|
8540
8547
|
[t.id]: []
|
|
8541
8548
|
};
|
|
8542
8549
|
}
|
|
8543
8550
|
}
|
|
8544
|
-
function
|
|
8545
|
-
if (!
|
|
8546
|
-
let n =
|
|
8551
|
+
function N(t) {
|
|
8552
|
+
if (!l(t)) return null;
|
|
8553
|
+
let n = j(t), r = e.isLoadingMessageReceipts?.(t) ?? !1;
|
|
8547
8554
|
if (!n) return !t.receipts.readAt || !r ? null : {
|
|
8548
8555
|
label: e.t("seen"),
|
|
8549
8556
|
receipts: [],
|
|
@@ -8556,72 +8563,72 @@ function jf(e) {
|
|
|
8556
8563
|
loading: r
|
|
8557
8564
|
} : null;
|
|
8558
8565
|
}
|
|
8559
|
-
function
|
|
8566
|
+
function P(t) {
|
|
8560
8567
|
return [
|
|
8561
8568
|
{
|
|
8562
8569
|
key: "reply",
|
|
8563
8570
|
label: e.t("reply"),
|
|
8564
8571
|
icon: je,
|
|
8565
8572
|
visible: e.canReply(),
|
|
8566
|
-
command: () =>
|
|
8573
|
+
command: () => E(t)
|
|
8567
8574
|
},
|
|
8568
8575
|
{
|
|
8569
8576
|
key: "edit",
|
|
8570
8577
|
label: e.t("edit"),
|
|
8571
8578
|
icon: ve,
|
|
8572
|
-
visible:
|
|
8573
|
-
command: () =>
|
|
8579
|
+
visible: c(t),
|
|
8580
|
+
command: () => D(t)
|
|
8574
8581
|
},
|
|
8575
8582
|
{
|
|
8576
8583
|
key: "copy",
|
|
8577
|
-
label:
|
|
8578
|
-
icon:
|
|
8584
|
+
label: r.value === t.id ? e.t("copied") : e.t("copyText"),
|
|
8585
|
+
icon: r.value === t.id ? ue : pe,
|
|
8579
8586
|
visible: !0,
|
|
8580
|
-
command: () =>
|
|
8587
|
+
command: () => T(t)
|
|
8581
8588
|
},
|
|
8582
8589
|
{
|
|
8583
8590
|
key: "thread",
|
|
8584
8591
|
label: e.t("threadWithCount", { count: t.replyCount }),
|
|
8585
8592
|
icon: Se,
|
|
8586
8593
|
visible: !e.isInThread() && e.canOpenThread(),
|
|
8587
|
-
command: () =>
|
|
8594
|
+
command: () => O(t)
|
|
8588
8595
|
},
|
|
8589
8596
|
{
|
|
8590
8597
|
key: "delete",
|
|
8591
8598
|
label: e.t("delete"),
|
|
8592
8599
|
icon: me,
|
|
8593
|
-
visible:
|
|
8594
|
-
command: () =>
|
|
8600
|
+
visible: u(t),
|
|
8601
|
+
command: () => A(t)
|
|
8595
8602
|
},
|
|
8596
8603
|
{
|
|
8597
8604
|
key: "translate",
|
|
8598
8605
|
label: e.t("translate"),
|
|
8599
8606
|
icon: Fe,
|
|
8600
|
-
visible:
|
|
8601
|
-
command: () =>
|
|
8607
|
+
visible: s(t),
|
|
8608
|
+
command: () => k(t)
|
|
8602
8609
|
}
|
|
8603
8610
|
].filter((e) => e.visible);
|
|
8604
8611
|
}
|
|
8605
8612
|
return {
|
|
8606
8613
|
actionMenuRef: t,
|
|
8607
|
-
activeActionMessage:
|
|
8608
|
-
copiedMessageId:
|
|
8609
|
-
isTouchUI:
|
|
8610
|
-
handleMessageContextMenu:
|
|
8611
|
-
handleMessageTap:
|
|
8612
|
-
closeActionMenu:
|
|
8613
|
-
resetActionMenuState:
|
|
8614
|
-
reactToMessage:
|
|
8615
|
-
toggleInlineReaction:
|
|
8616
|
-
loadReceiptPreview:
|
|
8617
|
-
getReceiptSummaryAction:
|
|
8618
|
-
getActionItems:
|
|
8614
|
+
activeActionMessage: n,
|
|
8615
|
+
copiedMessageId: r,
|
|
8616
|
+
isTouchUI: a,
|
|
8617
|
+
handleMessageContextMenu: v,
|
|
8618
|
+
handleMessageTap: y,
|
|
8619
|
+
closeActionMenu: b,
|
|
8620
|
+
resetActionMenuState: x,
|
|
8621
|
+
reactToMessage: S,
|
|
8622
|
+
toggleInlineReaction: C,
|
|
8623
|
+
loadReceiptPreview: M,
|
|
8624
|
+
getReceiptSummaryAction: N,
|
|
8625
|
+
getActionItems: P
|
|
8619
8626
|
};
|
|
8620
8627
|
}
|
|
8621
8628
|
//#endregion
|
|
8622
8629
|
//#region src/composables/useMessageListScroll.ts
|
|
8623
|
-
var
|
|
8624
|
-
function
|
|
8630
|
+
var Nf = 1, Pf = 2, Ff = 80, If = 1800, Lf = 4;
|
|
8631
|
+
function Rf(e) {
|
|
8625
8632
|
let t = e.threadRef, n = !0, r = 0, i = null, a = null, o = null, s = null;
|
|
8626
8633
|
function c() {
|
|
8627
8634
|
o != null && (cancelAnimationFrame(o), o = null);
|
|
@@ -8663,7 +8670,7 @@ function Lf(e) {
|
|
|
8663
8670
|
resizeObserver: o,
|
|
8664
8671
|
timeoutId: setTimeout(() => {
|
|
8665
8672
|
f();
|
|
8666
|
-
},
|
|
8673
|
+
}, If)
|
|
8667
8674
|
}, a(), o.observe(e);
|
|
8668
8675
|
}
|
|
8669
8676
|
function m() {
|
|
@@ -8674,9 +8681,9 @@ function Lf(e) {
|
|
|
8674
8681
|
let a = t.value;
|
|
8675
8682
|
if (!a) return;
|
|
8676
8683
|
let o = a.scrollTop;
|
|
8677
|
-
i?.el === a && Math.abs(o - i.expectedScrollTop) >
|
|
8684
|
+
i?.el === a && Math.abs(o - i.expectedScrollTop) > Lf && f();
|
|
8678
8685
|
let s = o < r, c = Math.max(0, a.scrollHeight - o - a.clientHeight);
|
|
8679
|
-
s && c >
|
|
8686
|
+
s && c > Nf ? n = !1 : c <= Pf && (n = !0), r = o, a.scrollTop <= Ff && !e.isLoading() && !e.isLoadingOlder() && e.canLoadOlder() && e.onLoadOlder();
|
|
8680
8687
|
}
|
|
8681
8688
|
return I(() => {
|
|
8682
8689
|
let t = e.getMessages();
|
|
@@ -8704,14 +8711,14 @@ function Lf(e) {
|
|
|
8704
8711
|
}
|
|
8705
8712
|
//#endregion
|
|
8706
8713
|
//#region src/composables/useImageZoom.ts
|
|
8707
|
-
var
|
|
8708
|
-
function
|
|
8714
|
+
var zf = 1, Bf = 4;
|
|
8715
|
+
function Vf(e) {
|
|
8709
8716
|
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;
|
|
8710
8717
|
function h(e, t, n) {
|
|
8711
8718
|
return Math.min(Math.max(e, t), n);
|
|
8712
8719
|
}
|
|
8713
8720
|
function g(e) {
|
|
8714
|
-
return h(e,
|
|
8721
|
+
return h(e, zf, Bf);
|
|
8715
8722
|
}
|
|
8716
8723
|
function _(n, r, i = t.value) {
|
|
8717
8724
|
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);
|
|
@@ -8801,10 +8808,10 @@ function Bf(e) {
|
|
|
8801
8808
|
}
|
|
8802
8809
|
//#endregion
|
|
8803
8810
|
//#region src/components/overlays/FullscreenDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8804
|
-
var
|
|
8811
|
+
var Hf = { class: "w-full" }, Uf = {
|
|
8805
8812
|
key: 0,
|
|
8806
8813
|
class: "fullscreen-dialog__footer"
|
|
8807
|
-
},
|
|
8814
|
+
}, Wf = /* @__PURE__ */ u({
|
|
8808
8815
|
__name: "FullscreenDialog",
|
|
8809
8816
|
props: {
|
|
8810
8817
|
open: { type: Boolean },
|
|
@@ -8829,34 +8836,34 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
8829
8836
|
closable: !0,
|
|
8830
8837
|
"onUpdate:visible": s
|
|
8831
8838
|
}, {
|
|
8832
|
-
default: L(() => [o("div",
|
|
8839
|
+
default: L(() => [o("div", Hf, [E(t.$slots, "default")]), t.$slots.footer ? (S(), a("div", Uf, [E(t.$slots, "footer")])) : i("", !0)]),
|
|
8833
8840
|
_: 3
|
|
8834
8841
|
}, 8, ["visible", "header"]));
|
|
8835
8842
|
}
|
|
8836
|
-
}),
|
|
8843
|
+
}), Gf = ["href"], Kf = { class: "media-viewer-shell flex min-h-0 flex-1 items-center justify-center overflow-hidden" }, qf = ["src", "alt"], Jf = {
|
|
8837
8844
|
key: 1,
|
|
8838
8845
|
class: "media-viewer-stage media-viewer-stage-video flex w-full items-center justify-center"
|
|
8839
|
-
},
|
|
8846
|
+
}, Yf = {
|
|
8840
8847
|
class: "max-h-full w-full bg-black",
|
|
8841
8848
|
controls: "",
|
|
8842
8849
|
playsinline: "",
|
|
8843
8850
|
autoplay: ""
|
|
8844
|
-
},
|
|
8851
|
+
}, Xf = ["src", "type"], Zf = {
|
|
8845
8852
|
key: 2,
|
|
8846
8853
|
class: "media-viewer-stage media-viewer-audio-stage flex w-full items-center justify-center px-5 py-6"
|
|
8847
|
-
},
|
|
8854
|
+
}, Qf = {
|
|
8848
8855
|
class: "w-full",
|
|
8849
8856
|
controls: "",
|
|
8850
8857
|
autoplay: ""
|
|
8851
|
-
},
|
|
8858
|
+
}, $f = ["src", "type"], ep = {
|
|
8852
8859
|
key: 0,
|
|
8853
8860
|
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"
|
|
8854
|
-
},
|
|
8861
|
+
}, tp = { class: "min-w-0 flex-1" }, np = { class: "heading-sm text-default truncate" }, rp = { class: "body-sm text-subtle" }, ip = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
8855
8862
|
__name: "MediaViewerDialog",
|
|
8856
8863
|
props: { attachment: {} },
|
|
8857
8864
|
emits: ["close"],
|
|
8858
8865
|
setup(t, { emit: s }) {
|
|
8859
|
-
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 } =
|
|
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 } = Vf({
|
|
8860
8867
|
viewportRef: u,
|
|
8861
8868
|
imageRef: d,
|
|
8862
8869
|
isImage: () => p.value
|
|
@@ -8867,7 +8874,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
8867
8874
|
function F() {
|
|
8868
8875
|
l("close");
|
|
8869
8876
|
}
|
|
8870
|
-
return (n, s) => (S(), r(
|
|
8877
|
+
return (n, s) => (S(), r(Wf, {
|
|
8871
8878
|
open: f.value,
|
|
8872
8879
|
title: t.attachment?.name || j(_)("attachment"),
|
|
8873
8880
|
subtitle: t.attachment?.kind || "",
|
|
@@ -8884,9 +8891,9 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
8884
8891
|
}, [(S(), r(D(j(Oe)), {
|
|
8885
8892
|
class: "size-4",
|
|
8886
8893
|
"aria-hidden": "true"
|
|
8887
|
-
})), o("span", null, k(j(_)("openInNewTab")), 1)], 8,
|
|
8888
|
-
footer: L(() => [t.attachment ? (S(), a("div",
|
|
8889
|
-
default: L(() => [o("div",
|
|
8894
|
+
})), o("span", null, k(j(_)("openInNewTab")), 1)], 8, Gf)) : i("", !0)]),
|
|
8895
|
+
footer: L(() => [t.attachment ? (S(), a("div", ep, [o("div", tp, [o("p", np, k(t.attachment.name), 1), o("p", rp, k(t.attachment.kind), 1)])])) : i("", !0)]),
|
|
8896
|
+
default: L(() => [o("div", Kf, [t.attachment?.url ? (S(), a(e, { key: 0 }, [p.value ? (S(), a("div", {
|
|
8890
8897
|
key: 0,
|
|
8891
8898
|
ref_key: "viewportRef",
|
|
8892
8899
|
ref: u,
|
|
@@ -8909,13 +8916,13 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
8909
8916
|
transform: `translate3d(${j(b)}px, ${j(x)}px, 0) scale(${j(y)})`,
|
|
8910
8917
|
transformOrigin: "center center"
|
|
8911
8918
|
})
|
|
8912
|
-
}, null, 14,
|
|
8919
|
+
}, null, 14, qf)], 544)) : m.value ? (S(), a("div", Jf, [o("video", Yf, [o("source", {
|
|
8913
8920
|
src: t.attachment.url,
|
|
8914
8921
|
type: t.attachment.mimeType || void 0
|
|
8915
|
-
}, null, 8,
|
|
8922
|
+
}, null, 8, Xf)])])) : h.value ? (S(), a("div", Zf, [o("audio", Qf, [o("source", {
|
|
8916
8923
|
src: t.attachment.url,
|
|
8917
8924
|
type: t.attachment.mimeType || void 0
|
|
8918
|
-
}, null, 8,
|
|
8925
|
+
}, null, 8, $f)])])) : i("", !0)], 64)) : i("", !0)])]),
|
|
8919
8926
|
_: 1
|
|
8920
8927
|
}, 8, [
|
|
8921
8928
|
"open",
|
|
@@ -8925,7 +8932,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
8925
8932
|
"close-aria-label"
|
|
8926
8933
|
]));
|
|
8927
8934
|
}
|
|
8928
|
-
}), [["__scopeId", "data-v-0e82cfd0"]]),
|
|
8935
|
+
}), [["__scopeId", "data-v-0e82cfd0"]]), ap = { class: "date-separator" }, op = { class: "date-separator__label" }, sp = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
8929
8936
|
__name: "MessageDateSeparator",
|
|
8930
8937
|
props: { date: {} },
|
|
8931
8938
|
setup(e) {
|
|
@@ -8939,24 +8946,24 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
8939
8946
|
year: "numeric"
|
|
8940
8947
|
}).format(n);
|
|
8941
8948
|
});
|
|
8942
|
-
return (e, t) => (S(), a("div",
|
|
8949
|
+
return (e, t) => (S(), a("div", ap, [o("span", op, k(s.value), 1)]));
|
|
8943
8950
|
}
|
|
8944
|
-
}), [["__scopeId", "data-v-49e72d67"]]),
|
|
8951
|
+
}), [["__scopeId", "data-v-49e72d67"]]), cp = {
|
|
8945
8952
|
"data-testid": "action-message",
|
|
8946
8953
|
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"
|
|
8947
|
-
},
|
|
8954
|
+
}, lp = { class: "message-action-row__text" }, up = /* @__PURE__ */ u({
|
|
8948
8955
|
__name: "ActionMessageRow",
|
|
8949
8956
|
props: { text: {} },
|
|
8950
8957
|
setup(e) {
|
|
8951
|
-
return (t, n) => (S(), a("div",
|
|
8958
|
+
return (t, n) => (S(), a("div", cp, [o("span", lp, k(e.text), 1)]));
|
|
8952
8959
|
}
|
|
8953
|
-
}),
|
|
8960
|
+
}), dp = ["href"], fp = {
|
|
8954
8961
|
key: 0,
|
|
8955
8962
|
class: "bg-elevation-surface-hovered aspect-[1.9/1] w-full overflow-hidden"
|
|
8956
|
-
},
|
|
8963
|
+
}, pp = ["src", "alt"], mp = { class: "space-y-1.5 px-3 py-3" }, hp = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, gp = { class: "heading-sm text-default line-clamp-2" }, _p = { class: "body-md text-subtle line-clamp-2" }, vp = {
|
|
8957
8964
|
key: 0,
|
|
8958
8965
|
class: "body-sm text-subtlest"
|
|
8959
|
-
},
|
|
8966
|
+
}, yp = /* @__PURE__ */ u({
|
|
8960
8967
|
__name: "LinkPreviewCard",
|
|
8961
8968
|
props: {
|
|
8962
8969
|
url: {},
|
|
@@ -9023,18 +9030,18 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9023
9030
|
target: "_blank",
|
|
9024
9031
|
rel: "noreferrer",
|
|
9025
9032
|
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"])
|
|
9026
|
-
}, [r.value?.imageUrl ? (S(), a("div",
|
|
9033
|
+
}, [r.value?.imageUrl ? (S(), a("div", fp, [o("img", {
|
|
9027
9034
|
src: r.value.imageUrl,
|
|
9028
9035
|
alt: r.value.title || l.value,
|
|
9029
9036
|
class: "h-full w-full object-cover"
|
|
9030
|
-
}, null, 8,
|
|
9031
|
-
o("p",
|
|
9032
|
-
o("p",
|
|
9033
|
-
o("p",
|
|
9034
|
-
s.value && !r.value ? (S(), a("p",
|
|
9035
|
-
])], 10,
|
|
9036
|
-
}
|
|
9037
|
-
}),
|
|
9037
|
+
}, null, 8, pp)])) : i("", !0), o("div", mp, [
|
|
9038
|
+
o("p", hp, k(r.value?.siteName || l.value), 1),
|
|
9039
|
+
o("p", gp, k(r.value?.title || l.value), 1),
|
|
9040
|
+
o("p", _p, k(r.value?.description || u.value), 1),
|
|
9041
|
+
s.value && !r.value ? (S(), a("p", vp, k(j(c)("loadingPreview")), 1)) : i("", !0)
|
|
9042
|
+
])], 10, dp));
|
|
9043
|
+
}
|
|
9044
|
+
}), bp = { class: "linkified-text" }, xp = ["innerHTML"], Sp = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9038
9045
|
__name: "LinkifiedText",
|
|
9039
9046
|
props: {
|
|
9040
9047
|
text: {},
|
|
@@ -9053,25 +9060,25 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9053
9060
|
let t = e.target;
|
|
9054
9061
|
t.tagName === "A" && d(e, t);
|
|
9055
9062
|
}
|
|
9056
|
-
return (t, n) => (S(), a("div",
|
|
9063
|
+
return (t, n) => (S(), a("div", bp, [o("div", {
|
|
9057
9064
|
class: g(["rich-text-content", e.textClass]),
|
|
9058
9065
|
onClick: f,
|
|
9059
9066
|
innerHTML: l.value
|
|
9060
|
-
}, null, 10,
|
|
9067
|
+
}, null, 10, xp), e.showPreview !== !1 && u.value ? (S(), r(yp, {
|
|
9061
9068
|
key: 0,
|
|
9062
9069
|
url: u.value,
|
|
9063
9070
|
"is-own": e.isOwn
|
|
9064
9071
|
}, null, 8, ["url", "is-own"])) : i("", !0)]));
|
|
9065
9072
|
}
|
|
9066
|
-
}), [["__scopeId", "data-v-656b44e8"]]),
|
|
9073
|
+
}), [["__scopeId", "data-v-656b44e8"]]), Cp = { class: "w-full space-y-1" }, wp = {
|
|
9067
9074
|
class: "attachment-video",
|
|
9068
9075
|
controls: "",
|
|
9069
9076
|
playsinline: "",
|
|
9070
9077
|
preload: "metadata"
|
|
9071
|
-
},
|
|
9078
|
+
}, Tp = ["src", "type"], Ep = ["onClick"], Dp = { class: "inline-flex items-center gap-2 truncate font-medium" }, Op = ["href"], kp = { class: "flex min-w-0 items-center gap-2" }, Ap = { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full" }, jp = { class: "text-default truncate font-medium" }, Mp = { class: "body-sm text-subtle shrink-0" }, Np = {
|
|
9072
9079
|
key: 4,
|
|
9073
9080
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm"
|
|
9074
|
-
},
|
|
9081
|
+
}, Pp = { class: "flex min-w-0 items-center gap-2" }, Fp = { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full" }, Ip = { class: "text-default truncate font-medium" }, Lp = { class: "body-sm text-subtle shrink-0" }, Rp = 4 / 3, zp = 16 / 9, Bp = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9075
9082
|
__name: "MessageAttachmentList",
|
|
9076
9083
|
props: { message: {} },
|
|
9077
9084
|
emits: ["openMedia"],
|
|
@@ -9126,12 +9133,12 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9126
9133
|
return n ? t.localeCompare(n, void 0, { sensitivity: "accent" }) !== 0 : !0;
|
|
9127
9134
|
}
|
|
9128
9135
|
function m(e) {
|
|
9129
|
-
return e.width && e.height && e.width > 0 && e.height > 0 ? e.width / e.height : e.kind === "video" ?
|
|
9136
|
+
return e.width && e.height && e.width > 0 && e.height > 0 ? e.width / e.height : e.kind === "video" ? zp : Rp;
|
|
9130
9137
|
}
|
|
9131
9138
|
function h(e) {
|
|
9132
9139
|
return { aspectRatio: String(m(e)) };
|
|
9133
9140
|
}
|
|
9134
|
-
return (n, d) => (S(), a("div",
|
|
9141
|
+
return (n, d) => (S(), a("div", Cp, [(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), {
|
|
9135
9142
|
key: 0,
|
|
9136
9143
|
preview: "",
|
|
9137
9144
|
src: n.url,
|
|
@@ -9151,34 +9158,34 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9151
9158
|
key: 1,
|
|
9152
9159
|
class: "attachment-media-bleed bg-elevation-surface-default shadow-raised attachment-media-frame group relative overflow-hidden rounded-xl border-0",
|
|
9153
9160
|
style: v(h(n))
|
|
9154
|
-
}, [o("video",
|
|
9161
|
+
}, [o("video", wp, [o("source", {
|
|
9155
9162
|
src: n.url,
|
|
9156
9163
|
type: n.mimeType || void 0
|
|
9157
|
-
}, null, 8,
|
|
9164
|
+
}, null, 8, Tp)])], 4)) : n.kind === "audio" && n.url ? (S(), a("button", {
|
|
9158
9165
|
key: 2,
|
|
9159
9166
|
type: "button",
|
|
9160
9167
|
class: "flex w-full items-center justify-between gap-3 rounded-2xl px-3 py-2 text-left text-sm transition hover:opacity-90",
|
|
9161
9168
|
onClick: (e) => s("openMedia", n)
|
|
9162
|
-
}, [o("span",
|
|
9169
|
+
}, [o("span", Dp, [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, Ep)) : n.url ? (S(), a("a", {
|
|
9163
9170
|
key: 3,
|
|
9164
9171
|
href: n.url,
|
|
9165
9172
|
target: "_blank",
|
|
9166
9173
|
rel: "noreferrer",
|
|
9167
9174
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm no-underline transition hover:opacity-90"
|
|
9168
|
-
}, [o("span",
|
|
9175
|
+
}, [o("span", kp, [o("span", Ap, [(S(), r(D(f(n)), {
|
|
9169
9176
|
class: "size-5",
|
|
9170
9177
|
"aria-hidden": "true"
|
|
9171
|
-
}))]), o("span",
|
|
9178
|
+
}))]), o("span", jp, k(n.name), 1)]), o("span", Mp, k(u(n.size)), 1)], 8, Op)) : (S(), a("div", Np, [o("span", Pp, [o("span", Fp, [(S(), r(D(f(n)), {
|
|
9172
9179
|
class: "size-5",
|
|
9173
9180
|
"aria-hidden": "true"
|
|
9174
|
-
}))]), o("span",
|
|
9181
|
+
}))]), o("span", Ip, k(n.name), 1)]), o("span", Lp, k(u(n.size) || j(l)("queued")), 1)]))], 64))), 128)), p(t.message) ? (S(), r(Sp, {
|
|
9175
9182
|
key: 0,
|
|
9176
9183
|
text: t.message.text,
|
|
9177
9184
|
"is-own": t.message.isOwn,
|
|
9178
9185
|
"text-class": "whitespace-normal wrap-break-word body-md text-default"
|
|
9179
9186
|
}, null, 8, ["text", "is-own"])) : i("", !0)]));
|
|
9180
9187
|
}
|
|
9181
|
-
}), [["__scopeId", "data-v-5c0ccf0e"]]),
|
|
9188
|
+
}), [["__scopeId", "data-v-5c0ccf0e"]]), Vp = { class: "message-status" }, Hp = { key: 0 }, Up = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9182
9189
|
__name: "MessageDeliveryStatus",
|
|
9183
9190
|
props: { message: {} },
|
|
9184
9191
|
setup(e) {
|
|
@@ -9227,8 +9234,8 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9227
9234
|
};
|
|
9228
9235
|
}
|
|
9229
9236
|
});
|
|
9230
|
-
return (t, n) => (S(), a("div",
|
|
9231
|
-
e.message.isEdited && e.message.kind !== "poll" ? (S(), a("span",
|
|
9237
|
+
return (t, n) => (S(), a("div", Vp, [
|
|
9238
|
+
e.message.isEdited && e.message.kind !== "poll" ? (S(), a("span", Hp, k(j(c)("edited")), 1)) : i("", !0),
|
|
9232
9239
|
o("span", null, k(l(e.message.sentAt)), 1),
|
|
9233
9240
|
u.value ? (S(), r(D(u.value.icon), {
|
|
9234
9241
|
key: 1,
|
|
@@ -9243,7 +9250,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9243
9250
|
])) : i("", !0)
|
|
9244
9251
|
]));
|
|
9245
9252
|
}
|
|
9246
|
-
}), [["__scopeId", "data-v-ff4e9daa"]]),
|
|
9253
|
+
}), [["__scopeId", "data-v-ff4e9daa"]]), Wp = { class: "mb-1 flex items-start justify-between gap-2" }, Gp = { class: "body-sm text-subtlest truncate font-medium!" }, Kp = /* @__PURE__ */ u({
|
|
9247
9254
|
__name: "MessageItemHeader",
|
|
9248
9255
|
props: { message: {} },
|
|
9249
9256
|
setup(e) {
|
|
@@ -9259,7 +9266,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9259
9266
|
function l() {
|
|
9260
9267
|
return t.message.senderName?.trim() || (t.message.isOwn ? s("you") : s("system"));
|
|
9261
9268
|
}
|
|
9262
|
-
return (t, n) => (S(), a("div",
|
|
9269
|
+
return (t, n) => (S(), a("div", Wp, [o("span", Gp, k(l()), 1), e.message.scheduled?.scheduleDate ? (S(), r(j(G), {
|
|
9263
9270
|
key: 0,
|
|
9264
9271
|
text: j(s)("scheduledDateLabel", { date: c(e.message.scheduled.scheduleDate) }),
|
|
9265
9272
|
context: "warn",
|
|
@@ -9268,7 +9275,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9268
9275
|
class: "shrink-0"
|
|
9269
9276
|
}, null, 8, ["text"])) : i("", !0)]));
|
|
9270
9277
|
}
|
|
9271
|
-
}),
|
|
9278
|
+
}), qp = ["disabled", "onClick"], Jp = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9272
9279
|
__name: "MessageReactionList",
|
|
9273
9280
|
props: {
|
|
9274
9281
|
message: {},
|
|
@@ -9287,9 +9294,9 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9287
9294
|
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"]),
|
|
9288
9295
|
disabled: t.disabled,
|
|
9289
9296
|
onClick: (t) => r("toggle", e.emoji)
|
|
9290
|
-
}, k(e.emoji) + " " + k(e.count), 11,
|
|
9297
|
+
}, k(e.emoji) + " " + k(e.count), 11, qp))), 128))], 2)) : i("", !0);
|
|
9291
9298
|
}
|
|
9292
|
-
}), [["__scopeId", "data-v-c17c8bfd"]]),
|
|
9299
|
+
}), [["__scopeId", "data-v-c17c8bfd"]]), Yp = { class: "message-reactions flex min-w-0 flex-1 flex-wrap items-center gap-1.5" }, Xp = ["aria-label", "title"], Zp = { class: "message-reactions__thread-count" }, Qp = /* @__PURE__ */ u({
|
|
9293
9300
|
__name: "MessageItemReactions",
|
|
9294
9301
|
props: {
|
|
9295
9302
|
message: {},
|
|
@@ -9299,7 +9306,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9299
9306
|
emits: ["toggleReaction", "openThread"],
|
|
9300
9307
|
setup(e, { emit: t }) {
|
|
9301
9308
|
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);
|
|
9302
|
-
return (t, n) => (S(), a("div",
|
|
9309
|
+
return (t, n) => (S(), a("div", Yp, [l(Jp, {
|
|
9303
9310
|
message: e.message,
|
|
9304
9311
|
disabled: e.canReact === !1,
|
|
9305
9312
|
compact: "",
|
|
@@ -9314,12 +9321,12 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9314
9321
|
}, [(S(), r(D(j(je)), {
|
|
9315
9322
|
class: "size-4",
|
|
9316
9323
|
"aria-hidden": "true"
|
|
9317
|
-
})), o("span",
|
|
9324
|
+
})), o("span", Zp, k(e.message.replyCount), 1)], 8, Xp)) : i("", !0)]));
|
|
9318
9325
|
}
|
|
9319
|
-
}),
|
|
9326
|
+
}), $p = {
|
|
9320
9327
|
key: 0,
|
|
9321
9328
|
class: ""
|
|
9322
|
-
},
|
|
9329
|
+
}, em = { class: "heading-sm text-default" }, tm = { class: "body-sm text-subtle" }, nm = { class: "space-y-2 py-3" }, rm = ["disabled", "onClick"], im = { class: "body-md flex items-center justify-between gap-3 px-3 py-1.5" }, am = { class: "body-sm text-subtle shrink-0" }, om = { class: "bg-alpha-default h-1.5" }, sm = /* @__PURE__ */ u({
|
|
9323
9330
|
__name: "MessagePollContent",
|
|
9324
9331
|
props: {
|
|
9325
9332
|
message: {},
|
|
@@ -9338,18 +9345,18 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9338
9345
|
let t = r.currentUserId;
|
|
9339
9346
|
return !!(!t || r.pendingOptionKey === `${r.message.id}:${e}` || r.message.poll.options.some((n) => n.id === e && n.voters.includes(t)));
|
|
9340
9347
|
}
|
|
9341
|
-
return (n, r) => t.message.poll ? (S(), a("div",
|
|
9348
|
+
return (n, r) => t.message.poll ? (S(), a("div", $p, [o("div", null, [o("h4", em, k(t.message.poll.question), 1), o("p", tm, k(j(c)("voteCount", { count: t.message.poll.totalVotes })), 1)]), o("div", nm, [(S(!0), a(e, null, T(t.message.poll.options, (e) => (S(), a("button", {
|
|
9342
9349
|
key: e.id,
|
|
9343
9350
|
type: "button",
|
|
9344
9351
|
class: "shadow-raised bg-elevation-surface-raised-default block w-full overflow-hidden rounded-lg text-left",
|
|
9345
9352
|
disabled: u(e.id),
|
|
9346
9353
|
onClick: (t) => s("vote", e.id)
|
|
9347
|
-
}, [o("div",
|
|
9354
|
+
}, [o("div", im, [o("span", { class: g(["truncate font-medium", l(e.id) ? "text-success" : ""]) }, k(e.text), 3), o("span", am, k(j(c)("voteCount", { count: e.voteCount })), 1)]), o("div", om, [o("div", {
|
|
9348
9355
|
class: g(["h-full transition-all", l(e.id) ? "bg-accent-green-subtle-default" : "bg-accent-teal-subtle-default"]),
|
|
9349
9356
|
style: v({ width: `${t.message.poll.totalVotes ? e.voteCount / t.message.poll.totalVotes * 100 : 0}%` })
|
|
9350
|
-
}, null, 6)])], 8,
|
|
9357
|
+
}, null, 6)])], 8, rm))), 128))])])) : i("", !0);
|
|
9351
9358
|
}
|
|
9352
|
-
}),
|
|
9359
|
+
}), cm = { class: "heading-xs" }, lm = { class: "truncate" }, um = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9353
9360
|
__name: "MessageReplyQuote",
|
|
9354
9361
|
props: { message: {} },
|
|
9355
9362
|
emits: ["open"],
|
|
@@ -9359,15 +9366,15 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9359
9366
|
type: "button",
|
|
9360
9367
|
class: "reply-quote",
|
|
9361
9368
|
onClick: n[0] ||= (e) => c("open")
|
|
9362
|
-
}, [o("p",
|
|
9369
|
+
}, [o("p", cm, k(e.message.replyTo.senderName), 1), o("p", lm, k(s.value), 1)]));
|
|
9363
9370
|
}
|
|
9364
|
-
}), [["__scopeId", "data-v-e27c136c"]]),
|
|
9371
|
+
}), [["__scopeId", "data-v-e27c136c"]]), dm = { class: "space-y-2" }, fm = /* @__PURE__ */ u({
|
|
9365
9372
|
__name: "MessageTextContent",
|
|
9366
9373
|
props: { message: {} },
|
|
9367
9374
|
emits: ["anchorclick"],
|
|
9368
9375
|
setup(e) {
|
|
9369
9376
|
let t = Gu(), o = n(() => t.mentionNameByUid.value);
|
|
9370
|
-
return (t, n) => (S(), a("div",
|
|
9377
|
+
return (t, n) => (S(), a("div", dm, [e.message.translatedText ? (S(), r(Sp, {
|
|
9371
9378
|
key: 0,
|
|
9372
9379
|
text: e.message.translatedText,
|
|
9373
9380
|
"mention-name-by-uid": o.value,
|
|
@@ -9381,7 +9388,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9381
9388
|
"mention-name-by-uid",
|
|
9382
9389
|
"is-own",
|
|
9383
9390
|
"class"
|
|
9384
|
-
])) : i("", !0), l(
|
|
9391
|
+
])) : i("", !0), l(Sp, {
|
|
9385
9392
|
text: e.message.text,
|
|
9386
9393
|
"mention-name-by-uid": o.value,
|
|
9387
9394
|
"is-own": e.message.isOwn,
|
|
@@ -9394,11 +9401,11 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9394
9401
|
"is-own"
|
|
9395
9402
|
])]));
|
|
9396
9403
|
}
|
|
9397
|
-
}),
|
|
9404
|
+
}), pm = [
|
|
9398
9405
|
"id",
|
|
9399
9406
|
"data-message-id",
|
|
9400
9407
|
"data-message-kind"
|
|
9401
|
-
],
|
|
9408
|
+
], mm = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, hm = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, gm = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9402
9409
|
__name: "MessageItem",
|
|
9403
9410
|
props: {
|
|
9404
9411
|
message: {},
|
|
@@ -9451,7 +9458,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9451
9458
|
"data-message-id": t.message.id,
|
|
9452
9459
|
"data-message-kind": t.message.kind,
|
|
9453
9460
|
class: g(["message-item group", d.value])
|
|
9454
|
-
}, [t.message.kind === "action" ? (S(), r(
|
|
9461
|
+
}, [t.message.kind === "action" ? (S(), r(up, {
|
|
9455
9462
|
key: 0,
|
|
9456
9463
|
text: t.message.text,
|
|
9457
9464
|
class: g(p.value)
|
|
@@ -9470,16 +9477,16 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9470
9477
|
onContextmenu: _,
|
|
9471
9478
|
onClick: y
|
|
9472
9479
|
}, [
|
|
9473
|
-
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(
|
|
9480
|
+
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(Kp, {
|
|
9474
9481
|
key: 0,
|
|
9475
9482
|
message: t.message
|
|
9476
9483
|
}, null, 8, ["message"])) : i("", !0),
|
|
9477
|
-
t.message.replyTo ? (S(), r(
|
|
9484
|
+
t.message.replyTo ? (S(), r(um, {
|
|
9478
9485
|
key: 1,
|
|
9479
9486
|
message: t.message,
|
|
9480
9487
|
onOpen: C
|
|
9481
9488
|
}, null, 8, ["message"])) : i("", !0),
|
|
9482
|
-
t.message.kind === "poll" && t.message.poll ? (S(), r(
|
|
9489
|
+
t.message.kind === "poll" && t.message.poll ? (S(), r(sm, {
|
|
9483
9490
|
key: 2,
|
|
9484
9491
|
message: t.message,
|
|
9485
9492
|
"current-user-id": t.currentUserId,
|
|
@@ -9489,16 +9496,16 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9489
9496
|
"message",
|
|
9490
9497
|
"current-user-id",
|
|
9491
9498
|
"pending-option-key"
|
|
9492
|
-
])) : t.message.attachments?.length ? (S(), r(
|
|
9499
|
+
])) : t.message.attachments?.length ? (S(), r(Bp, {
|
|
9493
9500
|
key: 3,
|
|
9494
9501
|
message: t.message,
|
|
9495
9502
|
onOpenMedia: s[1] ||= (e) => u("openMedia", e)
|
|
9496
|
-
}, null, 8, ["message"])) : (S(), r(
|
|
9503
|
+
}, null, 8, ["message"])) : (S(), r(fm, {
|
|
9497
9504
|
key: 4,
|
|
9498
9505
|
message: t.message,
|
|
9499
9506
|
onAnchorclick: s[2] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
9500
9507
|
}, null, 8, ["message"])),
|
|
9501
|
-
o("div",
|
|
9508
|
+
o("div", mm, [l(Qp, {
|
|
9502
9509
|
message: t.message,
|
|
9503
9510
|
"can-react": t.canReact,
|
|
9504
9511
|
"can-open-thread": t.canOpenThread,
|
|
@@ -9508,7 +9515,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9508
9515
|
"message",
|
|
9509
9516
|
"can-react",
|
|
9510
9517
|
"can-open-thread"
|
|
9511
|
-
]), l(
|
|
9518
|
+
]), l(Up, { message: t.message }, null, 8, ["message"])])
|
|
9512
9519
|
], 34),
|
|
9513
9520
|
t.contextMenuOpen && t.isTouchUi ? (S(), a("div", {
|
|
9514
9521
|
key: 1,
|
|
@@ -9517,16 +9524,16 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9517
9524
|
class: "message-bubble-wrapper",
|
|
9518
9525
|
style: v({ top: x.value })
|
|
9519
9526
|
}, [o("div", { class: g(["message-bubble", f.value]) }, [
|
|
9520
|
-
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(
|
|
9527
|
+
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(Kp, {
|
|
9521
9528
|
key: 0,
|
|
9522
9529
|
message: t.message
|
|
9523
9530
|
}, null, 8, ["message"])) : i("", !0),
|
|
9524
|
-
t.message.replyTo ? (S(), r(
|
|
9531
|
+
t.message.replyTo ? (S(), r(um, {
|
|
9525
9532
|
key: 1,
|
|
9526
9533
|
message: t.message,
|
|
9527
9534
|
onOpen: C
|
|
9528
9535
|
}, null, 8, ["message"])) : i("", !0),
|
|
9529
|
-
t.message.kind === "poll" && t.message.poll ? (S(), r(
|
|
9536
|
+
t.message.kind === "poll" && t.message.poll ? (S(), r(sm, {
|
|
9530
9537
|
key: 2,
|
|
9531
9538
|
message: t.message,
|
|
9532
9539
|
"current-user-id": t.currentUserId,
|
|
@@ -9536,16 +9543,16 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9536
9543
|
"message",
|
|
9537
9544
|
"current-user-id",
|
|
9538
9545
|
"pending-option-key"
|
|
9539
|
-
])) : t.message.attachments?.length ? (S(), r(
|
|
9546
|
+
])) : t.message.attachments?.length ? (S(), r(Bp, {
|
|
9540
9547
|
key: 3,
|
|
9541
9548
|
message: t.message,
|
|
9542
9549
|
onOpenMedia: s[6] ||= (e) => u("openMedia", e)
|
|
9543
|
-
}, null, 8, ["message"])) : (S(), r(
|
|
9550
|
+
}, null, 8, ["message"])) : (S(), r(fm, {
|
|
9544
9551
|
key: 4,
|
|
9545
9552
|
message: t.message,
|
|
9546
9553
|
onAnchorclick: s[7] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
9547
9554
|
}, null, 8, ["message"])),
|
|
9548
|
-
o("div",
|
|
9555
|
+
o("div", hm, [l(Qp, {
|
|
9549
9556
|
message: t.message,
|
|
9550
9557
|
"can-react": t.canReact,
|
|
9551
9558
|
"can-open-thread": t.canOpenThread,
|
|
@@ -9555,21 +9562,21 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9555
9562
|
"message",
|
|
9556
9563
|
"can-react",
|
|
9557
9564
|
"can-open-thread"
|
|
9558
|
-
]), l(
|
|
9565
|
+
]), l(Up, { message: t.message }, null, 8, ["message"])])
|
|
9559
9566
|
], 2)], 4)], 2)) : i("", !0)
|
|
9560
|
-
], 64))], 10,
|
|
9567
|
+
], 64))], 10, pm));
|
|
9561
9568
|
}
|
|
9562
|
-
}), [["__scopeId", "data-v-02761d2e"]]),
|
|
9569
|
+
}), [["__scopeId", "data-v-02761d2e"]]), _m = [
|
|
9563
9570
|
"👍",
|
|
9564
9571
|
"❤️",
|
|
9565
9572
|
"🔥",
|
|
9566
9573
|
"😂",
|
|
9567
9574
|
"🙏",
|
|
9568
9575
|
"🎉"
|
|
9569
|
-
],
|
|
9576
|
+
], vm = /* @__PURE__ */ "👏.😍.🤯.😮.😢.😡.👀.✅.💯.🙌.🤝.👌.💪.🤔.🫶.😅.🥳.💛.🌟.🚀.💥.🎯.📌.💡.🕊️.☀️.🌈.🍀.🎶.🫡".split("."), ym = { 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" }, bm = ["disabled", "onClick"], xm = ["disabled"], Sm = {
|
|
9570
9577
|
key: 0,
|
|
9571
9578
|
class: "bg-elevation-surface-raised-default shadow-overlay m-0 grid grid-cols-6 gap-1 rounded-lg p-1.5"
|
|
9572
|
-
},
|
|
9579
|
+
}, Cm = ["onClick"], wm = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9573
9580
|
__name: "MessageItemMenuReactions",
|
|
9574
9581
|
props: {
|
|
9575
9582
|
message: {},
|
|
@@ -9581,20 +9588,20 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9581
9588
|
I(() => c.message.id, () => {
|
|
9582
9589
|
u.value = !1;
|
|
9583
9590
|
});
|
|
9584
|
-
let d = n(() =>
|
|
9591
|
+
let d = n(() => vm);
|
|
9585
9592
|
function f(e) {
|
|
9586
9593
|
return (c.message.reactions ?? []).some((t) => t.emoji === e);
|
|
9587
9594
|
}
|
|
9588
9595
|
function p() {
|
|
9589
9596
|
c.canReact && (u.value = !u.value);
|
|
9590
9597
|
}
|
|
9591
|
-
return (n, s) => (S(), a(e, null, [o("div",
|
|
9598
|
+
return (n, s) => (S(), a(e, null, [o("div", ym, [(S(!0), a(e, null, T(j(_m), (e) => (S(), a("button", {
|
|
9592
9599
|
key: `${t.message.id}-${e}-common`,
|
|
9593
9600
|
type: "button",
|
|
9594
9601
|
class: g(["message-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9595
9602
|
disabled: !t.canReact,
|
|
9596
9603
|
onClick: (t) => l("react", e)
|
|
9597
|
-
}, k(e), 11,
|
|
9604
|
+
}, k(e), 11, bm))), 128)), o("button", {
|
|
9598
9605
|
type: "button",
|
|
9599
9606
|
class: "message-reaction-more",
|
|
9600
9607
|
disabled: !t.canReact,
|
|
@@ -9602,25 +9609,25 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9602
9609
|
}, [(S(), r(D(u.value ? j(Te) : j(we)), {
|
|
9603
9610
|
class: "size-7",
|
|
9604
9611
|
"aria-hidden": "true"
|
|
9605
|
-
}))], 8,
|
|
9612
|
+
}))], 8, xm)]), u.value && t.canReact ? (S(), a("div", Sm, [(S(!0), a(e, null, T(d.value, (e) => (S(), a("button", {
|
|
9606
9613
|
key: `${t.message.id}-${e}-extended`,
|
|
9607
9614
|
type: "button",
|
|
9608
9615
|
class: g(["message-expanded-reaction-button", f(e) ? "bg-background-success-default" : "bg-transparent"]),
|
|
9609
9616
|
onClick: (t) => l("react", e)
|
|
9610
|
-
}, k(e), 11,
|
|
9617
|
+
}, k(e), 11, Cm))), 128))])) : i("", !0)], 64));
|
|
9611
9618
|
}
|
|
9612
|
-
}), [["__scopeId", "data-v-0a11761a"]]),
|
|
9619
|
+
}), [["__scopeId", "data-v-0a11761a"]]), Tm = { class: "message-action-list" }, Em = { class: "message-receipt-summary__icon" }, Dm = { class: "message-receipt-summary__label" }, Om = {
|
|
9613
9620
|
key: 0,
|
|
9614
9621
|
class: "message-receipt-summary__avatars",
|
|
9615
9622
|
"aria-hidden": "true"
|
|
9616
|
-
},
|
|
9623
|
+
}, km = {
|
|
9617
9624
|
key: 1,
|
|
9618
9625
|
class: "message-action-list__divider",
|
|
9619
9626
|
"aria-hidden": "true"
|
|
9620
|
-
},
|
|
9627
|
+
}, Am = {
|
|
9621
9628
|
key: 1,
|
|
9622
9629
|
class: "message-action-list message-receipt-panel"
|
|
9623
|
-
},
|
|
9630
|
+
}, jm = { class: "message-receipt-list" }, Mm = { class: "message-receipt-row__body" }, Nm = { class: "message-receipt-row__name" }, Pm = { class: "message-receipt-row__time" }, Fm = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9624
9631
|
__name: "MessageItemMenu",
|
|
9625
9632
|
props: {
|
|
9626
9633
|
message: {},
|
|
@@ -9711,18 +9718,18 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9711
9718
|
top: `${E.value.top}px`
|
|
9712
9719
|
}),
|
|
9713
9720
|
"data-testid": "message-action-popover-shell"
|
|
9714
|
-
}, [C.value === "actions" ? (S(), a(e, { key: 0 }, [l(
|
|
9721
|
+
}, [C.value === "actions" ? (S(), a(e, { key: 0 }, [l(wm, {
|
|
9715
9722
|
message: s.message,
|
|
9716
9723
|
"can-react": s.canReact,
|
|
9717
9724
|
onReact: c[0] ||= (e) => _("react", e)
|
|
9718
|
-
}, null, 8, ["message", "can-react"]), o("div",
|
|
9725
|
+
}, null, 8, ["message", "can-react"]), o("div", Tm, [
|
|
9719
9726
|
s.receiptSummaryAction ? (S(), a("button", {
|
|
9720
9727
|
key: 0,
|
|
9721
9728
|
type: "button",
|
|
9722
9729
|
class: "message-receipt-summary",
|
|
9723
9730
|
onClick: F
|
|
9724
9731
|
}, [
|
|
9725
|
-
o("span",
|
|
9732
|
+
o("span", Em, [s.receiptSummaryAction.loading ? (S(), r(j(W), {
|
|
9726
9733
|
key: 0,
|
|
9727
9734
|
style: {
|
|
9728
9735
|
width: "1rem",
|
|
@@ -9734,8 +9741,8 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9734
9741
|
class: "text-success size-4",
|
|
9735
9742
|
"aria-hidden": "true"
|
|
9736
9743
|
}))]),
|
|
9737
|
-
o("span",
|
|
9738
|
-
f.value.length ? (S(), a("span",
|
|
9744
|
+
o("span", Dm, k(s.receiptSummaryAction.label), 1),
|
|
9745
|
+
f.value.length ? (S(), a("span", Om, [(S(!0), a(e, null, T(f.value, (e) => (S(), r(j(B), {
|
|
9739
9746
|
key: e.user.uid,
|
|
9740
9747
|
image: e.user.avatar,
|
|
9741
9748
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
@@ -9743,12 +9750,12 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9743
9750
|
class: "message-receipt-summary__avatar"
|
|
9744
9751
|
}, null, 8, ["image", "label"]))), 128))])) : i("", !0)
|
|
9745
9752
|
])) : i("", !0),
|
|
9746
|
-
s.receiptSummaryAction ? (S(), a("div",
|
|
9753
|
+
s.receiptSummaryAction ? (S(), a("div", km)) : i("", !0),
|
|
9747
9754
|
l(j(ie), {
|
|
9748
9755
|
model: s.actionItems,
|
|
9749
9756
|
class: "message-action-list__menu"
|
|
9750
9757
|
}, null, 8, ["model"])
|
|
9751
|
-
])], 64)) : (S(), a("section",
|
|
9758
|
+
])], 64)) : (S(), a("section", Am, [
|
|
9752
9759
|
o("button", {
|
|
9753
9760
|
type: "button",
|
|
9754
9761
|
class: "message-receipt-back",
|
|
@@ -9761,7 +9768,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9761
9768
|
class: "message-action-list__divider",
|
|
9762
9769
|
"aria-hidden": "true"
|
|
9763
9770
|
}, null, -1),
|
|
9764
|
-
o("div",
|
|
9771
|
+
o("div", jm, [(S(!0), a(e, null, T(p.value, (e) => (S(), a("div", {
|
|
9765
9772
|
key: e.user.uid,
|
|
9766
9773
|
class: "message-receipt-row"
|
|
9767
9774
|
}, [l(j(B), {
|
|
@@ -9769,19 +9776,19 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9769
9776
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
9770
9777
|
shape: "circle",
|
|
9771
9778
|
class: "message-receipt-row__avatar"
|
|
9772
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9779
|
+
}, null, 8, ["image", "label"]), o("div", Mm, [o("p", Nm, k(e.user.name), 1), o("p", Pm, [l(j(ge), {
|
|
9773
9780
|
class: "message-receipt-row__icon text-success",
|
|
9774
9781
|
"aria-hidden": "true"
|
|
9775
9782
|
}), o("span", null, k(L(e.timestamp)), 1)])])]))), 128))])
|
|
9776
9783
|
]))], 4)) : i("", !0)]));
|
|
9777
9784
|
}
|
|
9778
|
-
}), [["__scopeId", "data-v-c561963f"]]),
|
|
9785
|
+
}), [["__scopeId", "data-v-c561963f"]]), Im = { 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" }, Lm = {
|
|
9779
9786
|
key: 0,
|
|
9780
9787
|
class: "chat-header__identity flex min-w-0 items-center gap-3"
|
|
9781
|
-
},
|
|
9788
|
+
}, Rm = { class: "chat-header__text min-w-0" }, zm = { class: "chat-header__title heading-md text-default sm:heading-lg truncate" }, Bm = { class: "chat-header__subtitle body-sm text-subtle sm:body-md truncate" }, Vm = { key: 0 }, Hm = { key: 1 }, Um = { class: "chat-header__actions flex items-center gap-2" }, Wm = {
|
|
9782
9789
|
key: 0,
|
|
9783
9790
|
class: "chat-header__tags hidden flex-wrap gap-2 md:flex"
|
|
9784
|
-
},
|
|
9791
|
+
}, Gm = /* @__PURE__ */ u({
|
|
9785
9792
|
__name: "MessageListHeader",
|
|
9786
9793
|
props: {
|
|
9787
9794
|
conversation: {},
|
|
@@ -9789,28 +9796,28 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9789
9796
|
},
|
|
9790
9797
|
setup(t) {
|
|
9791
9798
|
let { t: n } = X();
|
|
9792
|
-
return (s, c) => (S(), a("header",
|
|
9799
|
+
return (s, c) => (S(), a("header", Im, [t.conversation ? (S(), a("div", Lm, [l(j(B), {
|
|
9793
9800
|
image: t.conversation.avatar,
|
|
9794
9801
|
label: t.conversation.avatar ? void 0 : t.conversation.title.slice(0, 1).toUpperCase(),
|
|
9795
9802
|
shape: "circle",
|
|
9796
9803
|
class: "chat-header__avatar shrink-0"
|
|
9797
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9804
|
+
}, null, 8, ["image", "label"]), o("div", Rm, [o("p", zm, k(t.parentMessage ? j(n)("thread") : t.conversation.title), 1), o("p", Bm, [t.parentMessage ? (S(), a("span", Vm, k(t.parentMessage.senderName), 1)) : (S(), a("span", Hm, k(t.conversation.memberCount ? j(n)("members", { count: t.conversation.memberCount }) : j(n)("groupChat")), 1))])])])) : i("", !0), o("div", Um, [t.conversation?.tags?.length ? (S(), a("div", Wm, [(S(!0), a(e, null, T(t.conversation.tags.slice(0, 3), (e) => (S(), r(j(G), {
|
|
9798
9805
|
key: e,
|
|
9799
9806
|
text: e,
|
|
9800
9807
|
context: "secondary",
|
|
9801
9808
|
rounded: ""
|
|
9802
9809
|
}, null, 8, ["text"]))), 128))])) : i("", !0)])]));
|
|
9803
9810
|
}
|
|
9804
|
-
}),
|
|
9811
|
+
}), Km = {
|
|
9805
9812
|
key: 1,
|
|
9806
9813
|
class: "message-list__empty-state"
|
|
9807
|
-
},
|
|
9814
|
+
}, qm = { class: "space-y-2" }, Jm = {
|
|
9808
9815
|
key: 0,
|
|
9809
9816
|
class: "message-list__thread-root"
|
|
9810
|
-
},
|
|
9817
|
+
}, Ym = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, Xm = { class: "body-md text-default mt-1 line-clamp-2" }, Zm = {
|
|
9811
9818
|
key: 1,
|
|
9812
9819
|
class: "surface-default text-subtle rounded-2xl p-5 text-center"
|
|
9813
|
-
},
|
|
9820
|
+
}, Qm = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9814
9821
|
__name: "MessageList",
|
|
9815
9822
|
props: {
|
|
9816
9823
|
target: {},
|
|
@@ -9827,7 +9834,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9827
9834
|
}), A = n(() => {
|
|
9828
9835
|
let e = u.conversation.value;
|
|
9829
9836
|
return e ? v.value ? v.value.senderName : e.memberCount ? c("members", { count: e.memberCount }) : c("groupChat") : "";
|
|
9830
|
-
}), 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 } =
|
|
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 } = Rf({
|
|
9831
9838
|
getConversation: () => u.conversation.value,
|
|
9832
9839
|
getParentMessage: () => v.value,
|
|
9833
9840
|
getMessages: () => h.value,
|
|
@@ -9836,7 +9843,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9836
9843
|
canLoadOlder: () => x.value,
|
|
9837
9844
|
onLoadOlder: () => p.emit("list:loadOlder", { target: s.target }),
|
|
9838
9845
|
threadRef: R
|
|
9839
|
-
}), B = N("actionMenuRef"), { activeActionMessage: V, handleMessageContextMenu: H, handleMessageTap: U, resetActionMenuState: te, reactToMessage: ne, toggleInlineReaction: re, getReceiptSummaryAction: ie, getActionItems: ae, isTouchUI: W } =
|
|
9846
|
+
}), B = N("actionMenuRef"), { activeActionMessage: V, handleMessageContextMenu: H, handleMessageTap: U, resetActionMenuState: te, reactToMessage: ne, toggleInlineReaction: re, getReceiptSummaryAction: ie, getActionItems: ae, isTouchUI: W } = Mf({
|
|
9840
9847
|
canUseMessageActions: () => u.canUseMessageActions.value,
|
|
9841
9848
|
canReact: () => u.canReact.value,
|
|
9842
9849
|
canReply: () => u.canReply.value,
|
|
@@ -9905,7 +9912,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9905
9912
|
title: O.value,
|
|
9906
9913
|
subtitle: A.value,
|
|
9907
9914
|
memberCount: M.value
|
|
9908
|
-
}, () => [l(
|
|
9915
|
+
}, () => [l(Gm, {
|
|
9909
9916
|
conversation: j(u).conversation.value,
|
|
9910
9917
|
"parent-message": v.value
|
|
9911
9918
|
}, null, 8, ["conversation", "parent-message"])], !0) : i("", !0), j(u).conversation.value ? (S(), a("div", {
|
|
@@ -9916,12 +9923,12 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9916
9923
|
ref: R,
|
|
9917
9924
|
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"]),
|
|
9918
9925
|
onScroll: n[2] ||= (...e) => j(z) && j(z)(...e)
|
|
9919
|
-
}, [o("div",
|
|
9920
|
-
v.value ? (S(), a("div",
|
|
9921
|
-
(S(!0), a(e, null, T(h.value, (o, c) => (S(), a(e, { key: o.id }, [le(c) ? (S(), r(
|
|
9926
|
+
}, [o("div", qm, [
|
|
9927
|
+
v.value ? (S(), a("div", Jm, [o("p", Ym, k(v.value.senderName), 1), o("p", Xm, k(j(nc)(v.value, j(c)("message"), j(u).mentionNameByUid.value)), 1)])) : i("", !0),
|
|
9928
|
+
(S(!0), a(e, null, T(h.value, (o, c) => (S(), a(e, { key: o.id }, [le(c) ? (S(), r(sp, {
|
|
9922
9929
|
key: 0,
|
|
9923
9930
|
date: o.sentAt
|
|
9924
|
-
}, null, 8, ["date"])) : i("", !0), l(
|
|
9931
|
+
}, null, 8, ["date"])) : i("", !0), l(gm, {
|
|
9925
9932
|
message: o,
|
|
9926
9933
|
"current-user-id": j(u).currentUserId.value,
|
|
9927
9934
|
"can-react": j(u).canReact.value,
|
|
@@ -9957,13 +9964,13 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9957
9964
|
"onToggleReaction",
|
|
9958
9965
|
"onOpenThread"
|
|
9959
9966
|
])], 64))), 128)),
|
|
9960
|
-
h.value.length === 0 && D.value && !_.value ? (S(), a("div",
|
|
9961
|
-
])], 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",
|
|
9962
|
-
l(
|
|
9967
|
+
h.value.length === 0 && D.value && !_.value ? (S(), a("div", Zm, k(j(c)("noMessagesYetInThisGroup")), 1)) : i("", !0)
|
|
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", Km, k(j(c)("selectConversationToStart")), 1))], 2),
|
|
9969
|
+
l(ip, {
|
|
9963
9970
|
attachment: P.value,
|
|
9964
9971
|
onClose: oe
|
|
9965
9972
|
}, null, 8, ["attachment"]),
|
|
9966
|
-
l(
|
|
9973
|
+
l(Fm, {
|
|
9967
9974
|
ref_key: "actionMenuRef",
|
|
9968
9975
|
ref: B,
|
|
9969
9976
|
message: j(V),
|
|
@@ -9981,13 +9988,13 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
9981
9988
|
])
|
|
9982
9989
|
], 64));
|
|
9983
9990
|
}
|
|
9984
|
-
}), [["__scopeId", "data-v-6c8a5535"]]),
|
|
9991
|
+
}), [["__scopeId", "data-v-6c8a5535"]]), $m = { class: "receipt-section" }, eh = {
|
|
9985
9992
|
key: 0,
|
|
9986
9993
|
class: "receipt-section__header"
|
|
9987
|
-
},
|
|
9994
|
+
}, th = { class: "body-sm text-subtle font-semibold" }, nh = { class: "body-sm text-subtlest" }, rh = {
|
|
9988
9995
|
key: 1,
|
|
9989
9996
|
class: "receipt-section__list"
|
|
9990
|
-
},
|
|
9997
|
+
}, ih = { class: "receipt-section__identity" }, ah = { class: "min-w-0" }, oh = { class: "receipt-section__name heading-sm text-default truncate" }, sh = { class: "receipt-section__time body-md text-subtle" }, ch = { class: "truncate" }, lh = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
9991
9998
|
__name: "ReceiptSection",
|
|
9992
9999
|
props: {
|
|
9993
10000
|
title: {},
|
|
@@ -10000,35 +10007,35 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10000
10007
|
},
|
|
10001
10008
|
setup(t) {
|
|
10002
10009
|
let r = t, s = n(() => String(r.receipts.length));
|
|
10003
|
-
return (n, r) => (S(), a("section",
|
|
10010
|
+
return (n, r) => (S(), a("section", $m, [t.showHeader ? (S(), a("div", eh, [o("p", th, k(t.title), 1), o("span", nh, k(s.value), 1)])) : i("", !0), t.receipts.length ? (S(), a("div", rh, [(S(!0), a(e, null, T(t.receipts, (e) => (S(), a("div", {
|
|
10004
10011
|
key: `${e.kind}-${e.user.uid}`,
|
|
10005
10012
|
class: "receipt-section__row"
|
|
10006
|
-
}, [o("div",
|
|
10013
|
+
}, [o("div", ih, [l(j(B), {
|
|
10007
10014
|
image: e.user.avatar,
|
|
10008
10015
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
10009
10016
|
shape: "circle",
|
|
10010
10017
|
class: "receipt-section__avatar"
|
|
10011
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
10018
|
+
}, null, 8, ["image", "label"]), o("div", ah, [o("p", oh, k(e.user.name), 1), o("p", sh, [l(j(ge), {
|
|
10012
10019
|
class: "receipt-section__icon text-success",
|
|
10013
10020
|
"aria-hidden": "true"
|
|
10014
|
-
}), o("span",
|
|
10021
|
+
}), o("span", ch, k(t.formatDateTime(e.timestamp)), 1)])])])]))), 128))])) : i("", !0)]));
|
|
10015
10022
|
}
|
|
10016
|
-
}), [["__scopeId", "data-v-750f23c4"]]),
|
|
10023
|
+
}), [["__scopeId", "data-v-750f23c4"]]), uh = {
|
|
10017
10024
|
key: 0,
|
|
10018
10025
|
class: "message-info-dialog-content overflow-y-auto"
|
|
10019
|
-
},
|
|
10026
|
+
}, dh = {
|
|
10020
10027
|
key: 0,
|
|
10021
10028
|
class: "flex items-center justify-center px-4 py-8 sm:px-6"
|
|
10022
|
-
},
|
|
10029
|
+
}, fh = {
|
|
10023
10030
|
key: 1,
|
|
10024
10031
|
class: "message-info-error body-md mx-4 rounded-xl px-4 py-3 sm:mx-6"
|
|
10025
|
-
},
|
|
10032
|
+
}, ph = {
|
|
10026
10033
|
key: 2,
|
|
10027
10034
|
class: "message-info-list"
|
|
10028
|
-
},
|
|
10035
|
+
}, mh = {
|
|
10029
10036
|
key: 1,
|
|
10030
10037
|
class: "message-info-empty body-md text-subtle"
|
|
10031
|
-
},
|
|
10038
|
+
}, hh = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
10032
10039
|
__name: "MessageInfoDialog",
|
|
10033
10040
|
props: {
|
|
10034
10041
|
open: { type: Boolean },
|
|
@@ -10053,25 +10060,25 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10053
10060
|
return (t.timestamp?.getTime() ?? 0) - n;
|
|
10054
10061
|
});
|
|
10055
10062
|
}
|
|
10056
|
-
return (t, n) => (S(), r(
|
|
10063
|
+
return (t, n) => (S(), r(Wf, {
|
|
10057
10064
|
open: e.open,
|
|
10058
10065
|
title: j(u)("seen"),
|
|
10059
10066
|
"close-label": j(u)("close"),
|
|
10060
10067
|
onClose: n[0] ||= (e) => s("close")
|
|
10061
10068
|
}, {
|
|
10062
|
-
default: L(() => [e.message ? (S(), a("div",
|
|
10069
|
+
default: L(() => [e.message ? (S(), a("div", uh, [e.loading ? (S(), a("div", dh, [l(j(W), {
|
|
10063
10070
|
style: {
|
|
10064
10071
|
width: "2.5rem",
|
|
10065
10072
|
height: "2.5rem"
|
|
10066
10073
|
},
|
|
10067
10074
|
"stroke-width": "5"
|
|
10068
|
-
})])) : e.error ? (S(), a("div",
|
|
10075
|
+
})])) : e.error ? (S(), a("div", fh, k(e.error), 1)) : (S(), a("div", ph, [d.value.length ? (S(), r(lh, {
|
|
10069
10076
|
key: 0,
|
|
10070
10077
|
title: j(u)("readBy"),
|
|
10071
10078
|
receipts: d.value,
|
|
10072
10079
|
"format-date-time": f,
|
|
10073
10080
|
"show-header": !1
|
|
10074
|
-
}, null, 8, ["title", "receipts"])) : (S(), a("p",
|
|
10081
|
+
}, null, 8, ["title", "receipts"])) : (S(), a("p", mh, k(j(u)("nobodyHasReadThisMessageYet")), 1))]))])) : i("", !0)]),
|
|
10075
10082
|
_: 1
|
|
10076
10083
|
}, 8, [
|
|
10077
10084
|
"open",
|
|
@@ -10079,34 +10086,34 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10079
10086
|
"close-label"
|
|
10080
10087
|
]));
|
|
10081
10088
|
}
|
|
10082
|
-
}), [["__scopeId", "data-v-e025ada9"]]),
|
|
10089
|
+
}), [["__scopeId", "data-v-e025ada9"]]), gh = { class: "min-h-0 flex-1 overflow-y-auto" }, _h = {
|
|
10083
10090
|
key: 0,
|
|
10084
10091
|
class: "flex h-full min-h-64 items-center justify-center"
|
|
10085
|
-
},
|
|
10092
|
+
}, vh = {
|
|
10086
10093
|
key: 1,
|
|
10087
10094
|
class: "bg-elevation-surface-sunken-default body-md flex h-full min-h-64 items-center justify-center rounded-xl px-6 text-center"
|
|
10088
|
-
},
|
|
10095
|
+
}, yh = {
|
|
10089
10096
|
key: 2,
|
|
10090
10097
|
class: "space-y-3"
|
|
10091
|
-
},
|
|
10098
|
+
}, bh = { class: "flex flex-wrap items-start justify-between gap-3" }, xh = { class: "w-full space-y-2" }, Sh = { class: "center between gap-2" }, Ch = { class: "" }, wh = { class: "space-y-1" }, Th = { class: "heading-sm text-default" }, Eh = {
|
|
10092
10099
|
key: 0,
|
|
10093
10100
|
class: "body-md text-default"
|
|
10094
|
-
},
|
|
10101
|
+
}, Dh = {
|
|
10095
10102
|
key: 1,
|
|
10096
10103
|
class: "body-md text-default wrap-break-word whitespace-pre-wrap"
|
|
10097
|
-
},
|
|
10104
|
+
}, Oh = {
|
|
10098
10105
|
key: 0,
|
|
10099
10106
|
class: "max-w-sm"
|
|
10100
|
-
},
|
|
10107
|
+
}, kh = { class: "flex flex-wrap items-center gap-1" }, Ah = {
|
|
10101
10108
|
key: 0,
|
|
10102
10109
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3 sm:flex-row sm:items-center"
|
|
10103
|
-
},
|
|
10110
|
+
}, jh = { class: "grid w-full grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem]" }, Mh = { class: "flex items-center gap-2" }, Nh = {
|
|
10104
10111
|
key: 1,
|
|
10105
10112
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3"
|
|
10106
|
-
},
|
|
10113
|
+
}, Ph = {
|
|
10107
10114
|
key: 0,
|
|
10108
10115
|
class: "relative max-w-sm"
|
|
10109
|
-
},
|
|
10116
|
+
}, Fh = { class: "absolute top-2 right-2" }, Ih = ["placeholder"], Lh = { class: "flex items-center justify-end gap-2" }, Rh = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
10110
10117
|
__name: "ScheduledMessagesDialog",
|
|
10111
10118
|
props: {
|
|
10112
10119
|
open: { type: Boolean },
|
|
@@ -10188,24 +10195,24 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10188
10195
|
function H(e) {
|
|
10189
10196
|
d.value === e.id && M(), u("remove", e);
|
|
10190
10197
|
}
|
|
10191
|
-
return (n, s) => (S(), r(
|
|
10198
|
+
return (n, s) => (S(), r(Wf, {
|
|
10192
10199
|
open: t.open,
|
|
10193
10200
|
title: j(v)("scheduledMessages"),
|
|
10194
10201
|
subtitle: t.conversationTitle ? j(v)("queuedForConversation", { title: t.conversationTitle }) : j(v)("queuedOutgoingMessagesForThisChat"),
|
|
10195
10202
|
"close-label": j(v)("close"),
|
|
10196
10203
|
onClose: s[3] ||= (e) => u("close")
|
|
10197
10204
|
}, {
|
|
10198
|
-
default: L(() => [o("div",
|
|
10205
|
+
default: L(() => [o("div", gh, [t.loading ? (S(), a("div", _h, [l(j(W), {
|
|
10199
10206
|
style: {
|
|
10200
10207
|
width: "2.75rem",
|
|
10201
10208
|
height: "2.75rem"
|
|
10202
10209
|
},
|
|
10203
10210
|
"stroke-width": "6"
|
|
10204
|
-
})])) : y.value.length === 0 ? (S(), a("div",
|
|
10211
|
+
})])) : y.value.length === 0 ? (S(), a("div", vh, k(j(v)("noScheduledMessagesForConversation")), 1)) : (S(), a("div", yh, [(S(!0), a(e, null, T(y.value, (e) => (S(), a("article", {
|
|
10205
10212
|
key: e.id,
|
|
10206
10213
|
class: "border-default rounded-lg border px-4 py-3"
|
|
10207
|
-
}, [o("div",
|
|
10208
|
-
o("div",
|
|
10214
|
+
}, [o("div", bh, [o("div", xh, [
|
|
10215
|
+
o("div", Sh, [o("div", Ch, [e.kind === "poll" ? (S(), r(j(G), {
|
|
10209
10216
|
key: 0,
|
|
10210
10217
|
text: j(v)("poll"),
|
|
10211
10218
|
context: "info",
|
|
@@ -10226,9 +10233,9 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10226
10233
|
size: "small",
|
|
10227
10234
|
onClick: (t) => H(e)
|
|
10228
10235
|
}, null, 8, ["icon", "onClick"])]),
|
|
10229
|
-
o("div",
|
|
10230
|
-
R(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div",
|
|
10231
|
-
]), o("div",
|
|
10236
|
+
o("div", wh, [o("p", Th, k(x(e.scheduled?.scheduleDate)), 1), e.kind === "poll" && e.poll ? (S(), a("p", Eh, k(e.poll.question), 1)) : (S(), a("p", Dh, k(j(nc)(e, j(v)("attachment"))), 1))]),
|
|
10237
|
+
R(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div", Oh, [l(Bp, { message: N(e) }, null, 8, ["message"])])) : i("", !0)
|
|
10238
|
+
]), o("div", kh, [e.kind === "poll" ? i("", !0) : (S(), r(j(V), {
|
|
10232
10239
|
key: 0,
|
|
10233
10240
|
label: j(v)("edit"),
|
|
10234
10241
|
icon: j(ve),
|
|
@@ -10250,7 +10257,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10250
10257
|
"label",
|
|
10251
10258
|
"icon",
|
|
10252
10259
|
"onClick"
|
|
10253
|
-
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div",
|
|
10260
|
+
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div", Ah, [o("div", jh, [ee(o("input", {
|
|
10254
10261
|
"onUpdate:modelValue": s[0] ||= (e) => m.value = e,
|
|
10255
10262
|
type: "date",
|
|
10256
10263
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
@@ -10262,7 +10269,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10262
10269
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
10263
10270
|
"aria-label": "Time (24-hour)",
|
|
10264
10271
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
10265
|
-
}, null, 512), [[P, h.value]])]), o("div",
|
|
10272
|
+
}, null, 512), [[P, h.value]])]), o("div", Mh, [l(j(V), {
|
|
10266
10273
|
label: j(v)("save"),
|
|
10267
10274
|
size: "small",
|
|
10268
10275
|
disabled: !m.value || !b.value,
|
|
@@ -10276,8 +10283,8 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10276
10283
|
size: "small",
|
|
10277
10284
|
text: "",
|
|
10278
10285
|
onClick: M
|
|
10279
|
-
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div",
|
|
10280
|
-
R(e) ? (S(), a("div",
|
|
10286
|
+
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div", Nh, [
|
|
10287
|
+
R(e) ? (S(), a("div", Ph, [l(Bp, { message: N(e) }, null, 8, ["message"]), o("div", Fh, [l(j(V), {
|
|
10281
10288
|
icon: j(de),
|
|
10282
10289
|
"aria-label": j(v)("remove"),
|
|
10283
10290
|
text: "",
|
|
@@ -10291,8 +10298,8 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10291
10298
|
rows: "3",
|
|
10292
10299
|
class: "surface-input body-md w-full rounded-xl px-3 py-2 ring-0 outline-none",
|
|
10293
10300
|
placeholder: j(v)("writeMessage")
|
|
10294
|
-
}, null, 8,
|
|
10295
|
-
o("div",
|
|
10301
|
+
}, null, 8, Ih), [[P, g.value]]),
|
|
10302
|
+
o("div", Lh, [l(j(V), {
|
|
10296
10303
|
label: j(v)("cancel"),
|
|
10297
10304
|
size: "small",
|
|
10298
10305
|
text: "",
|
|
@@ -10316,7 +10323,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10316
10323
|
"close-label"
|
|
10317
10324
|
]));
|
|
10318
10325
|
}
|
|
10319
|
-
}), [["__scopeId", "data-v-0bb2dc95"]]),
|
|
10326
|
+
}), [["__scopeId", "data-v-0bb2dc95"]]), zh = { class: "chat-status-overlay" }, Bh = { class: "chat-status-overlay__card" }, Vh = /* @__PURE__ */ Ad(/* @__PURE__ */ u({
|
|
10320
10327
|
__name: "ChatStatusOverlay",
|
|
10321
10328
|
props: {
|
|
10322
10329
|
visible: { type: Boolean },
|
|
@@ -10349,9 +10356,9 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10349
10356
|
message: t.messages.connecting,
|
|
10350
10357
|
slotName: "connecting"
|
|
10351
10358
|
} : null);
|
|
10352
|
-
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div",
|
|
10359
|
+
return (e, t) => r.value ? E(e.$slots, r.value.slotName, { key: 0 }, () => [o("div", zh, [o("div", Bh, [E(e.$slots, `${r.value.slotName}-content`, {}, () => [o("span", null, k(r.value.message), 1)], !0)])])], !0) : i("", !0);
|
|
10353
10360
|
}
|
|
10354
|
-
}), [["__scopeId", "data-v-7749aec9"]]),
|
|
10361
|
+
}), [["__scopeId", "data-v-7749aec9"]]), Hh = /* @__PURE__ */ u({
|
|
10355
10362
|
__name: "BccChat",
|
|
10356
10363
|
props: {
|
|
10357
10364
|
client: { default: null },
|
|
@@ -10619,7 +10626,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10619
10626
|
_: 1
|
|
10620
10627
|
})]) : i("", !0),
|
|
10621
10628
|
T.value ? (S(), a(e, { key: 1 }, [
|
|
10622
|
-
l(
|
|
10629
|
+
l(Qm, {
|
|
10623
10630
|
target: "main",
|
|
10624
10631
|
class: g(["h-full", t.containerClass]),
|
|
10625
10632
|
"hide-group-actions": t.hideGroupActions,
|
|
@@ -10628,7 +10635,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10628
10635
|
"action-message-row-class": t.actionMessageRowClass,
|
|
10629
10636
|
onAnchorclick: ie
|
|
10630
10637
|
}, s({
|
|
10631
|
-
composer: L(() => [l(
|
|
10638
|
+
composer: L(() => [l(Af, {
|
|
10632
10639
|
ref_key: "mainComposerRef",
|
|
10633
10640
|
ref: B,
|
|
10634
10641
|
target: "main",
|
|
@@ -10648,7 +10655,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10648
10655
|
"action-message-class",
|
|
10649
10656
|
"action-message-row-class"
|
|
10650
10657
|
]),
|
|
10651
|
-
l(
|
|
10658
|
+
l(Wf, {
|
|
10652
10659
|
open: !!j(F).activeThreadParentMessage.value,
|
|
10653
10660
|
title: j(m)("threadWithCount", { count: j(F).activeThreadParentMessage.value?.replyCount ?? 0 }),
|
|
10654
10661
|
subtitle: O.value?.title ?? "",
|
|
@@ -10656,13 +10663,13 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10656
10663
|
"close-aria-label": j(m)("closeThread"),
|
|
10657
10664
|
onClose: r[0] ||= (e) => j(U).emit("ui:closeThread")
|
|
10658
10665
|
}, {
|
|
10659
|
-
default: L(() => [l(
|
|
10666
|
+
default: L(() => [l(Qm, {
|
|
10660
10667
|
target: "thread",
|
|
10661
10668
|
class: "min-h-0 flex-1",
|
|
10662
10669
|
"action-message-class": t.actionMessageClass,
|
|
10663
10670
|
"action-message-row-class": t.actionMessageRowClass
|
|
10664
10671
|
}, {
|
|
10665
|
-
composer: L(() => [l(
|
|
10672
|
+
composer: L(() => [l(Af, {
|
|
10666
10673
|
ref_key: "threadComposerRef",
|
|
10667
10674
|
ref: V,
|
|
10668
10675
|
target: "thread",
|
|
@@ -10680,7 +10687,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10680
10687
|
"close-label",
|
|
10681
10688
|
"close-aria-label"
|
|
10682
10689
|
]),
|
|
10683
|
-
l(
|
|
10690
|
+
l(Rh, {
|
|
10684
10691
|
open: j(z).showScheduledMessages.value,
|
|
10685
10692
|
loading: j(z).loadingScheduledMessages.value,
|
|
10686
10693
|
messages: j(z).scheduledMessages.value,
|
|
@@ -10695,7 +10702,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10695
10702
|
"messages",
|
|
10696
10703
|
"conversation-title"
|
|
10697
10704
|
]),
|
|
10698
|
-
l(
|
|
10705
|
+
l(hh, {
|
|
10699
10706
|
open: !!j(z).infoMessage.value,
|
|
10700
10707
|
message: j(z).infoMessage.value,
|
|
10701
10708
|
receipts: j(z).infoMessageReceipts.value,
|
|
@@ -10710,7 +10717,7 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10710
10717
|
"error"
|
|
10711
10718
|
])
|
|
10712
10719
|
], 64)) : i("", !0),
|
|
10713
|
-
l(
|
|
10720
|
+
l(Vh, {
|
|
10714
10721
|
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),
|
|
10715
10722
|
"offline-mode": !!(T.value?.offlineMode.value && !O.value),
|
|
10716
10723
|
connected: !!(T.value?.connected.value || O.value),
|
|
@@ -10750,6 +10757,6 @@ var Vf = { class: "w-full" }, Hf = {
|
|
|
10750
10757
|
}
|
|
10751
10758
|
});
|
|
10752
10759
|
//#endregion
|
|
10753
|
-
export {
|
|
10760
|
+
export { Hh as BccChat, Hh as BccChatMessageList, Hl as LogSeverity, Au as chat, Au as default, bc as createChatClient };
|
|
10754
10761
|
|
|
10755
10762
|
//# sourceMappingURL=vue-bcc-chat-ui.js.map
|