@bcc-code/vue-bcc-chat-ui 7.2.6 → 7.2.7
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 +171 -139
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +2 -2
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -40293,7 +40293,7 @@ var Yw = {
|
|
|
40293
40293
|
"id",
|
|
40294
40294
|
"data-message-id",
|
|
40295
40295
|
"data-message-kind"
|
|
40296
|
-
], _E = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, vE = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, yE = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
40296
|
+
], _E = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, vE = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, yE = 500, bE = 10, xE = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
40297
40297
|
__name: "MessageItem",
|
|
40298
40298
|
props: {
|
|
40299
40299
|
message: {},
|
|
@@ -40330,15 +40330,43 @@ var Yw = {
|
|
|
40330
40330
|
m(e.target) || l("contextmenu", e);
|
|
40331
40331
|
}
|
|
40332
40332
|
function g(e) {
|
|
40333
|
-
m(e.target)
|
|
40333
|
+
if (!m(e.target)) {
|
|
40334
|
+
if (S) {
|
|
40335
|
+
S = !1, e.preventDefault(), e.stopPropagation();
|
|
40336
|
+
return;
|
|
40337
|
+
}
|
|
40338
|
+
l("tap", e);
|
|
40339
|
+
}
|
|
40340
|
+
}
|
|
40341
|
+
let y = null, x = null, S = !1;
|
|
40342
|
+
function C() {
|
|
40343
|
+
y &&= (clearTimeout(y), null);
|
|
40344
|
+
}
|
|
40345
|
+
function T(e) {
|
|
40346
|
+
if (!r.isTouchUi || m(e.target)) return;
|
|
40347
|
+
let t = e.touches[0];
|
|
40348
|
+
t && (x = {
|
|
40349
|
+
x: t.clientX,
|
|
40350
|
+
y: t.clientY
|
|
40351
|
+
}, C(), y = setTimeout(() => {
|
|
40352
|
+
y = null, S = !0, l("tap", e);
|
|
40353
|
+
}, yE));
|
|
40334
40354
|
}
|
|
40335
|
-
|
|
40355
|
+
function D(e) {
|
|
40356
|
+
if (!x) return;
|
|
40357
|
+
let t = e.touches[0];
|
|
40358
|
+
t && Math.hypot(t.clientX - x.x, t.clientY - x.y) > bE && (C(), x = null);
|
|
40359
|
+
}
|
|
40360
|
+
function O() {
|
|
40361
|
+
C(), x = null;
|
|
40362
|
+
}
|
|
40363
|
+
let k = te("originalBubble"), A = E("0px");
|
|
40336
40364
|
P(() => r.contextMenuOpen && r.isTouchUi, async (e) => {
|
|
40337
|
-
if (!e || (await _(), !
|
|
40338
|
-
let t =
|
|
40339
|
-
|
|
40365
|
+
if (!e || (await _(), !k.value)) return;
|
|
40366
|
+
let t = k.value.getBoundingClientRect(), n = Math.min(t.top, window.innerHeight - 50 - t.height);
|
|
40367
|
+
A.value = `${Math.max(0, n - 32)}px`;
|
|
40340
40368
|
}, { immediate: !0 });
|
|
40341
|
-
function
|
|
40369
|
+
function j() {
|
|
40342
40370
|
let e = r.message.replyTo?.messageId?.trim();
|
|
40343
40371
|
e && l("openReferencedMessage", e);
|
|
40344
40372
|
}
|
|
@@ -40363,7 +40391,11 @@ var Yw = {
|
|
|
40363
40391
|
"data-testid": "message-bubble",
|
|
40364
40392
|
class: v(["message-bubble", f.value]),
|
|
40365
40393
|
onContextmenu: h,
|
|
40366
|
-
onClick: g
|
|
40394
|
+
onClick: g,
|
|
40395
|
+
onTouchstart: T,
|
|
40396
|
+
onTouchmove: D,
|
|
40397
|
+
onTouchend: O,
|
|
40398
|
+
onTouchcancel: O
|
|
40367
40399
|
}, [
|
|
40368
40400
|
!e.message.isOwn || e.message.scheduled?.scheduleDate ? (w(), a(GT, {
|
|
40369
40401
|
key: 0,
|
|
@@ -40377,7 +40409,7 @@ var Yw = {
|
|
|
40377
40409
|
e.message.replyTo ? (w(), a(pE, {
|
|
40378
40410
|
key: 3,
|
|
40379
40411
|
message: e.message,
|
|
40380
|
-
onOpen:
|
|
40412
|
+
onOpen: j
|
|
40381
40413
|
}, null, 8, ["message"])) : o("", !0),
|
|
40382
40414
|
e.message.kind === "poll" && e.message.poll ? (w(), a(cE, {
|
|
40383
40415
|
key: 4,
|
|
@@ -40415,7 +40447,7 @@ var Yw = {
|
|
|
40415
40447
|
class: v(["message-bubble--spotlight", f.value])
|
|
40416
40448
|
}, [c("div", {
|
|
40417
40449
|
class: "message-bubble-wrapper",
|
|
40418
|
-
style: b({ top:
|
|
40450
|
+
style: b({ top: A.value })
|
|
40419
40451
|
}, [c("div", { class: v(["message-bubble", f.value]) }, [
|
|
40420
40452
|
!e.message.isOwn || e.message.scheduled?.scheduleDate ? (w(), a(GT, {
|
|
40421
40453
|
key: 0,
|
|
@@ -40429,7 +40461,7 @@ var Yw = {
|
|
|
40429
40461
|
e.message.replyTo ? (w(), a(pE, {
|
|
40430
40462
|
key: 3,
|
|
40431
40463
|
message: e.message,
|
|
40432
|
-
onOpen:
|
|
40464
|
+
onOpen: j
|
|
40433
40465
|
}, null, 8, ["message"])) : o("", !0),
|
|
40434
40466
|
e.message.kind === "poll" && e.message.poll ? (w(), a(cE, {
|
|
40435
40467
|
key: 4,
|
|
@@ -40464,17 +40496,17 @@ var Yw = {
|
|
|
40464
40496
|
], 2)], 4)], 2)) : o("", !0)
|
|
40465
40497
|
], 64))], 10, gE));
|
|
40466
40498
|
}
|
|
40467
|
-
}), [["__scopeId", "data-v-
|
|
40499
|
+
}), [["__scopeId", "data-v-ce380db1"]]), SE = [
|
|
40468
40500
|
"👍",
|
|
40469
40501
|
"❤️",
|
|
40470
40502
|
"🔥",
|
|
40471
40503
|
"😂",
|
|
40472
40504
|
"🙏",
|
|
40473
40505
|
"🎉"
|
|
40474
|
-
],
|
|
40506
|
+
], CE = /* @__PURE__ */ "👏.😍.🤯.😮.😢.😡.👀.✅.💯.🙌.🤝.👌.💪.🤔.🫶.😅.🥳.💛.🌟.🚀.💥.🎯.📌.💡.🕊️.☀️.🌈.🍀.🎶.🫡".split("."), wE = { 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" }, TE = ["disabled", "onClick"], EE = ["disabled"], DE = {
|
|
40475
40507
|
key: 0,
|
|
40476
40508
|
class: "bg-elevation-surface-raised-default shadow-overlay m-0 grid grid-cols-6 gap-1 rounded-lg p-1.5"
|
|
40477
|
-
},
|
|
40509
|
+
}, OE = ["onClick"], kE = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
40478
40510
|
__name: "MessageItemMenuReactions",
|
|
40479
40511
|
props: {
|
|
40480
40512
|
message: {},
|
|
@@ -40486,20 +40518,20 @@ var Yw = {
|
|
|
40486
40518
|
P(() => r.message.id, () => {
|
|
40487
40519
|
u.value = !1;
|
|
40488
40520
|
});
|
|
40489
|
-
let d = i(() =>
|
|
40521
|
+
let d = i(() => CE);
|
|
40490
40522
|
function f(e) {
|
|
40491
40523
|
return (r.message.reactions ?? []).some((t) => t.emoji === e);
|
|
40492
40524
|
}
|
|
40493
40525
|
function p() {
|
|
40494
40526
|
r.canReact && (u.value = !u.value);
|
|
40495
40527
|
}
|
|
40496
|
-
return (t, r) => (w(), s(n, null, [c("div",
|
|
40528
|
+
return (t, r) => (w(), s(n, null, [c("div", wE, [(w(!0), s(n, null, D(N(SE), (t) => (w(), s("button", {
|
|
40497
40529
|
key: `${e.message.id}-${t}-common`,
|
|
40498
40530
|
type: "button",
|
|
40499
40531
|
class: v(["message-reaction-button", f(t) ? "bg-background-success-default" : "bg-transparent"]),
|
|
40500
40532
|
disabled: !e.canReact,
|
|
40501
40533
|
onClick: (e) => l("react", t)
|
|
40502
|
-
}, j(t), 11,
|
|
40534
|
+
}, j(t), 11, TE))), 128)), c("button", {
|
|
40503
40535
|
type: "button",
|
|
40504
40536
|
class: "message-reaction-more",
|
|
40505
40537
|
disabled: !e.canReact,
|
|
@@ -40507,37 +40539,37 @@ var Yw = {
|
|
|
40507
40539
|
}, [(w(), a(k(u.value ? N(Ge) : N(We)), {
|
|
40508
40540
|
class: "size-7",
|
|
40509
40541
|
"aria-hidden": "true"
|
|
40510
|
-
}))], 8,
|
|
40542
|
+
}))], 8, EE)]), u.value && e.canReact ? (w(), s("div", DE, [(w(!0), s(n, null, D(d.value, (t) => (w(), s("button", {
|
|
40511
40543
|
key: `${e.message.id}-${t}-extended`,
|
|
40512
40544
|
type: "button",
|
|
40513
40545
|
class: v(["message-expanded-reaction-button", f(t) ? "bg-background-success-default" : "bg-transparent"]),
|
|
40514
40546
|
onClick: (e) => l("react", t)
|
|
40515
|
-
}, j(t), 11,
|
|
40547
|
+
}, j(t), 11, OE))), 128))])) : o("", !0)], 64));
|
|
40516
40548
|
}
|
|
40517
|
-
}), [["__scopeId", "data-v-0a11761a"]]),
|
|
40549
|
+
}), [["__scopeId", "data-v-0a11761a"]]), AE = { class: "message-action-list" }, jE = { class: "message-receipt-summary__icon" }, ME = { class: "message-receipt-summary__label" }, NE = {
|
|
40518
40550
|
key: 0,
|
|
40519
40551
|
class: "message-receipt-summary__avatars",
|
|
40520
40552
|
"aria-hidden": "true"
|
|
40521
|
-
},
|
|
40553
|
+
}, PE = { class: "message-receipt-summary__icon" }, FE = { class: "message-receipt-summary__label" }, IE = { class: "message-receipt-summary__icon" }, LE = { class: "message-receipt-summary__label" }, RE = {
|
|
40522
40554
|
key: 3,
|
|
40523
40555
|
class: "message-action-list__divider",
|
|
40524
40556
|
"aria-hidden": "true"
|
|
40525
|
-
},
|
|
40557
|
+
}, zE = {
|
|
40526
40558
|
key: 1,
|
|
40527
40559
|
class: "message-action-list message-receipt-panel"
|
|
40528
|
-
},
|
|
40560
|
+
}, BE = { class: "message-receipt-list" }, VE = { class: "message-receipt-row__body" }, HE = { class: "message-receipt-row__name" }, UE = { class: "message-receipt-row__time" }, WE = {
|
|
40529
40561
|
key: 2,
|
|
40530
40562
|
class: "message-action-list message-receipt-panel"
|
|
40531
|
-
},
|
|
40563
|
+
}, GE = { class: "message-receipt-list" }, KE = { class: "message-poll-voters-group__header" }, qE = { class: "message-poll-voters-group__text" }, JE = { class: "message-poll-voters-group__count" }, YE = { class: "message-receipt-row__body" }, XE = { class: "message-receipt-row__name" }, ZE = {
|
|
40532
40564
|
key: 3,
|
|
40533
40565
|
class: "message-action-list message-receipt-panel"
|
|
40534
|
-
},
|
|
40566
|
+
}, QE = {
|
|
40535
40567
|
key: 0,
|
|
40536
40568
|
class: "message-receipt-loading"
|
|
40537
|
-
},
|
|
40569
|
+
}, $E = {
|
|
40538
40570
|
key: 1,
|
|
40539
40571
|
class: "message-receipt-list"
|
|
40540
|
-
},
|
|
40572
|
+
}, eD = { class: "message-poll-voters-group__header" }, tD = { class: "message-poll-voters-group__text" }, nD = { class: "message-poll-voters-group__count" }, rD = { class: "message-receipt-row__body" }, iD = { class: "message-receipt-row__name" }, aD = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
40541
40573
|
__name: "MessageItemMenu",
|
|
40542
40574
|
props: {
|
|
40543
40575
|
message: {},
|
|
@@ -40650,18 +40682,18 @@ var Yw = {
|
|
|
40650
40682
|
top: `${k.value.top}px`
|
|
40651
40683
|
}),
|
|
40652
40684
|
"data-testid": "message-action-popover-shell"
|
|
40653
|
-
}, [O.value === "actions" ? (w(), s(n, { key: 0 }, [d(
|
|
40685
|
+
}, [O.value === "actions" ? (w(), s(n, { key: 0 }, [d(kE, {
|
|
40654
40686
|
message: e.message,
|
|
40655
40687
|
"can-react": e.canReact,
|
|
40656
40688
|
onReact: i[0] ||= (e) => S("react", e)
|
|
40657
|
-
}, null, 8, ["message", "can-react"]), c("div",
|
|
40689
|
+
}, null, 8, ["message", "can-react"]), c("div", AE, [
|
|
40658
40690
|
e.receiptSummaryAction ? (w(), s("button", {
|
|
40659
40691
|
key: 0,
|
|
40660
40692
|
type: "button",
|
|
40661
40693
|
class: "message-receipt-summary",
|
|
40662
40694
|
onClick: P
|
|
40663
40695
|
}, [
|
|
40664
|
-
c("span",
|
|
40696
|
+
c("span", jE, [e.receiptSummaryAction.loading ? (w(), a(N(he), {
|
|
40665
40697
|
key: 0,
|
|
40666
40698
|
style: {
|
|
40667
40699
|
width: "1rem",
|
|
@@ -40673,8 +40705,8 @@ var Yw = {
|
|
|
40673
40705
|
class: "text-success size-4",
|
|
40674
40706
|
"aria-hidden": "true"
|
|
40675
40707
|
}))]),
|
|
40676
|
-
c("span",
|
|
40677
|
-
f.value.length ? (w(), s("span",
|
|
40708
|
+
c("span", ME, j(e.receiptSummaryAction.label), 1),
|
|
40709
|
+
f.value.length ? (w(), s("span", NE, [(w(!0), s(n, null, D(f.value, (e) => (w(), a(oT, {
|
|
40678
40710
|
key: e.user.uid,
|
|
40679
40711
|
image: e.user.avatar,
|
|
40680
40712
|
name: e.user.name,
|
|
@@ -40686,25 +40718,25 @@ var Yw = {
|
|
|
40686
40718
|
type: "button",
|
|
40687
40719
|
class: "message-receipt-summary",
|
|
40688
40720
|
onClick: ie
|
|
40689
|
-
}, [c("span",
|
|
40721
|
+
}, [c("span", PE, [d(N(st), {
|
|
40690
40722
|
class: "text-success size-4",
|
|
40691
40723
|
"aria-hidden": "true"
|
|
40692
|
-
})]), c("span",
|
|
40724
|
+
})]), c("span", FE, j(e.pollVotersSummaryAction.label), 1)])) : o("", !0),
|
|
40693
40725
|
e.reactionsSummaryAction ? (w(), s("button", {
|
|
40694
40726
|
key: 2,
|
|
40695
40727
|
type: "button",
|
|
40696
40728
|
class: "message-receipt-summary",
|
|
40697
40729
|
onClick: F
|
|
40698
|
-
}, [c("span",
|
|
40730
|
+
}, [c("span", IE, [d(N(be), {
|
|
40699
40731
|
class: "text-success size-4",
|
|
40700
40732
|
"aria-hidden": "true"
|
|
40701
|
-
})]), c("span",
|
|
40702
|
-
e.receiptSummaryAction || e.pollVotersSummaryAction || e.reactionsSummaryAction ? (w(), s("div",
|
|
40733
|
+
})]), c("span", LE, j(e.reactionsSummaryAction.label), 1)])) : o("", !0),
|
|
40734
|
+
e.receiptSummaryAction || e.pollVotersSummaryAction || e.reactionsSummaryAction ? (w(), s("div", RE)) : o("", !0),
|
|
40703
40735
|
d(N(pe), {
|
|
40704
40736
|
model: e.actionItems,
|
|
40705
40737
|
class: "message-action-list__menu"
|
|
40706
40738
|
}, null, 8, ["model"])
|
|
40707
|
-
])], 64)) : O.value === "receipts" ? (w(), s("section",
|
|
40739
|
+
])], 64)) : O.value === "receipts" ? (w(), s("section", zE, [
|
|
40708
40740
|
c("button", {
|
|
40709
40741
|
type: "button",
|
|
40710
40742
|
class: "message-receipt-back",
|
|
@@ -40717,18 +40749,18 @@ var Yw = {
|
|
|
40717
40749
|
class: "message-action-list__divider",
|
|
40718
40750
|
"aria-hidden": "true"
|
|
40719
40751
|
}, null, -1),
|
|
40720
|
-
c("div",
|
|
40752
|
+
c("div", BE, [(w(!0), s(n, null, D(p.value, (e) => (w(), s("div", {
|
|
40721
40753
|
key: e.user.uid,
|
|
40722
40754
|
class: "message-receipt-row"
|
|
40723
40755
|
}, [d(oT, {
|
|
40724
40756
|
image: e.user.avatar,
|
|
40725
40757
|
name: e.user.name,
|
|
40726
40758
|
class: "message-receipt-row__avatar"
|
|
40727
|
-
}, null, 8, ["image", "name"]), c("div",
|
|
40759
|
+
}, null, 8, ["image", "name"]), c("div", VE, [c("p", HE, j(e.user.name), 1), c("p", UE, [d(N(je), {
|
|
40728
40760
|
class: "message-receipt-row__icon text-success",
|
|
40729
40761
|
"aria-hidden": "true"
|
|
40730
40762
|
}), c("span", null, j(oe(e.timestamp)), 1)])])]))), 128))])
|
|
40731
|
-
])) : O.value === "pollVoters" ? (w(), s("section",
|
|
40763
|
+
])) : O.value === "pollVoters" ? (w(), s("section", WE, [
|
|
40732
40764
|
c("button", {
|
|
40733
40765
|
type: "button",
|
|
40734
40766
|
class: "message-receipt-back",
|
|
@@ -40741,18 +40773,18 @@ var Yw = {
|
|
|
40741
40773
|
class: "message-action-list__divider",
|
|
40742
40774
|
"aria-hidden": "true"
|
|
40743
40775
|
}, null, -1),
|
|
40744
|
-
c("div",
|
|
40776
|
+
c("div", GE, [(w(!0), s(n, null, D(m.value, (e) => (w(), s("div", {
|
|
40745
40777
|
key: e.id,
|
|
40746
40778
|
class: "message-poll-voters-group"
|
|
40747
|
-
}, [c("div",
|
|
40779
|
+
}, [c("div", KE, [c("span", qE, j(e.text), 1), c("span", JE, j(N(y)("voteCount", { count: e.voteCount })), 1)]), (w(!0), s(n, null, D(e.voters, (e) => (w(), s("div", {
|
|
40748
40780
|
key: e.uid,
|
|
40749
40781
|
class: "message-receipt-row"
|
|
40750
40782
|
}, [d(oT, {
|
|
40751
40783
|
image: e.avatar,
|
|
40752
40784
|
name: e.name,
|
|
40753
40785
|
class: "message-receipt-row__avatar"
|
|
40754
|
-
}, null, 8, ["image", "name"]), c("div",
|
|
40755
|
-
])) : (w(), s("section",
|
|
40786
|
+
}, null, 8, ["image", "name"]), c("div", YE, [c("p", XE, j(e.name), 1)])]))), 128))]))), 128))])
|
|
40787
|
+
])) : (w(), s("section", ZE, [
|
|
40756
40788
|
c("button", {
|
|
40757
40789
|
type: "button",
|
|
40758
40790
|
class: "message-receipt-back",
|
|
@@ -40765,32 +40797,32 @@ var Yw = {
|
|
|
40765
40797
|
class: "message-action-list__divider",
|
|
40766
40798
|
"aria-hidden": "true"
|
|
40767
40799
|
}, null, -1),
|
|
40768
|
-
e.reactionsSummaryAction?.loading && !h.value.length ? (w(), s("div",
|
|
40800
|
+
e.reactionsSummaryAction?.loading && !h.value.length ? (w(), s("div", QE, [d(N(he), {
|
|
40769
40801
|
style: {
|
|
40770
40802
|
width: "1.25rem",
|
|
40771
40803
|
height: "1.25rem"
|
|
40772
40804
|
},
|
|
40773
40805
|
"stroke-width": "5"
|
|
40774
|
-
})])) : (w(), s("div",
|
|
40806
|
+
})])) : (w(), s("div", $E, [(w(!0), s(n, null, D(g.value, (e) => (w(), s("div", {
|
|
40775
40807
|
key: e.emoji,
|
|
40776
40808
|
class: "message-poll-voters-group"
|
|
40777
|
-
}, [c("div",
|
|
40809
|
+
}, [c("div", eD, [c("span", tD, j(e.emoji), 1), c("span", nD, j(e.reactedBy.length), 1)]), (w(!0), s(n, null, D(e.reactedBy, (e) => (w(), s("div", {
|
|
40778
40810
|
key: e.user.uid,
|
|
40779
40811
|
class: "message-receipt-row"
|
|
40780
40812
|
}, [d(oT, {
|
|
40781
40813
|
image: e.user.avatar,
|
|
40782
40814
|
name: e.user.name,
|
|
40783
40815
|
class: "message-receipt-row__avatar"
|
|
40784
|
-
}, null, 8, ["image", "name"]), c("div",
|
|
40816
|
+
}, null, 8, ["image", "name"]), c("div", rD, [c("p", iD, j(e.user.name), 1)])]))), 128))]))), 128))]))
|
|
40785
40817
|
]))], 4)) : o("", !0)]));
|
|
40786
40818
|
}
|
|
40787
|
-
}), [["__scopeId", "data-v-2a492ecf"]]),
|
|
40819
|
+
}), [["__scopeId", "data-v-2a492ecf"]]), oD = { 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" }, sD = {
|
|
40788
40820
|
key: 0,
|
|
40789
40821
|
class: "chat-header__identity flex min-w-0 items-center gap-3"
|
|
40790
|
-
},
|
|
40822
|
+
}, cD = { class: "chat-header__text min-w-0" }, lD = { class: "chat-header__title heading-md text-default sm:heading-lg truncate" }, uD = { class: "chat-header__subtitle body-sm text-subtle sm:body-md truncate" }, dD = { key: 0 }, fD = { key: 1 }, pD = { class: "chat-header__actions flex items-center gap-2" }, mD = {
|
|
40791
40823
|
key: 0,
|
|
40792
40824
|
class: "chat-header__tags hidden flex-wrap gap-2 md:flex"
|
|
40793
|
-
},
|
|
40825
|
+
}, hD = /* @__PURE__ */ f({
|
|
40794
40826
|
__name: "MessageListHeader",
|
|
40795
40827
|
props: {
|
|
40796
40828
|
conversation: {},
|
|
@@ -40798,22 +40830,22 @@ var Yw = {
|
|
|
40798
40830
|
},
|
|
40799
40831
|
setup(e) {
|
|
40800
40832
|
let { t } = cf();
|
|
40801
|
-
return (r, i) => (w(), s("header",
|
|
40833
|
+
return (r, i) => (w(), s("header", oD, [e.conversation ? (w(), s("div", sD, [d(oT, {
|
|
40802
40834
|
image: e.conversation.avatar,
|
|
40803
40835
|
name: e.conversation.title,
|
|
40804
40836
|
class: "chat-header__avatar shrink-0"
|
|
40805
|
-
}, null, 8, ["image", "name"]), c("div",
|
|
40837
|
+
}, null, 8, ["image", "name"]), c("div", cD, [c("p", lD, j(e.parentMessage ? N(t)("thread") : e.conversation.title), 1), c("p", uD, [e.parentMessage ? (w(), s("span", dD, j(e.parentMessage.senderName), 1)) : (w(), s("span", fD, j(e.conversation.memberCount ? N(t)("members", { count: e.conversation.memberCount }) : N(t)("groupChat")), 1))])])])) : o("", !0), c("div", pD, [e.conversation?.tags?.length ? (w(), s("div", mD, [(w(!0), s(n, null, D(e.conversation.tags.slice(0, 3), (e) => (w(), a(N(ge), {
|
|
40806
40838
|
key: e,
|
|
40807
40839
|
text: e,
|
|
40808
40840
|
context: "secondary",
|
|
40809
40841
|
rounded: ""
|
|
40810
40842
|
}, null, 8, ["text"]))), 128))])) : o("", !0)])]));
|
|
40811
40843
|
}
|
|
40812
|
-
}),
|
|
40844
|
+
}), gD = {
|
|
40813
40845
|
key: 0,
|
|
40814
40846
|
class: "pinned-bar",
|
|
40815
40847
|
"data-testid": "pinned-messages-bar"
|
|
40816
|
-
},
|
|
40848
|
+
}, _D = ["title"], vD = { class: "pinned-bar__text min-w-0" }, yD = { class: "pinned-bar__headline body-sm text-subtle block truncate font-semibold" }, bD = { class: "pinned-bar__preview body-md text-default block truncate" }, xD = { class: "pinned-bar__sender font-medium" }, SD = { class: "pinned-bar__actions flex shrink-0 items-center gap-1" }, CD = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
40817
40849
|
__name: "PinnedMessagesBar",
|
|
40818
40850
|
setup(e) {
|
|
40819
40851
|
let { t } = cf(), n = MS(), r = IS(), l = ZS(), u = i(() => r.pinnedMessages.value), f = i(() => u.value[0] ?? null), p = i(() => u.value.length > 1), m = i(() => p.value ? t("pinnedMessagesCount", { count: u.value.length }) : t("pinnedMessage")), h = i(() => f.value ? gy(f.value, t("attachment"), n.mentionNameByUid.value) : "");
|
|
@@ -40823,7 +40855,7 @@ var Yw = {
|
|
|
40823
40855
|
function _() {
|
|
40824
40856
|
f.value && l.emit("message:unpin", f.value.id);
|
|
40825
40857
|
}
|
|
40826
|
-
return (e, r) => f.value ? (w(), s("div",
|
|
40858
|
+
return (e, r) => f.value ? (w(), s("div", gD, [c("button", {
|
|
40827
40859
|
type: "button",
|
|
40828
40860
|
class: "pinned-bar__summary",
|
|
40829
40861
|
title: N(t)("goToMessage"),
|
|
@@ -40831,11 +40863,11 @@ var Yw = {
|
|
|
40831
40863
|
}, [d(N(Ve), {
|
|
40832
40864
|
class: "pinned-bar__icon size-4 shrink-0",
|
|
40833
40865
|
"aria-hidden": "true"
|
|
40834
|
-
}), c("span",
|
|
40835
|
-
c("span",
|
|
40866
|
+
}), c("span", vD, [c("span", yD, j(m.value), 1), c("span", bD, [
|
|
40867
|
+
c("span", xD, j(f.value.senderName), 1),
|
|
40836
40868
|
r[1] ||= c("span", { "aria-hidden": "true" }, ": ", -1),
|
|
40837
40869
|
c("span", null, j(h.value), 1)
|
|
40838
|
-
])])], 8,
|
|
40870
|
+
])])], 8, _D), c("div", SD, [p.value ? (w(), a(N(I), {
|
|
40839
40871
|
key: 0,
|
|
40840
40872
|
icon: N(qe),
|
|
40841
40873
|
"aria-label": N(t)("pinnedMessages"),
|
|
@@ -40863,16 +40895,16 @@ var Yw = {
|
|
|
40863
40895
|
"title"
|
|
40864
40896
|
])) : o("", !0)])])) : o("", !0);
|
|
40865
40897
|
}
|
|
40866
|
-
}), [["__scopeId", "data-v-ed2c3c4c"]]),
|
|
40898
|
+
}), [["__scopeId", "data-v-ed2c3c4c"]]), wD = {
|
|
40867
40899
|
key: 2,
|
|
40868
40900
|
class: "message-list__empty-state"
|
|
40869
|
-
},
|
|
40901
|
+
}, TD = { class: "space-y-2" }, ED = {
|
|
40870
40902
|
key: 0,
|
|
40871
40903
|
class: "message-list__thread-root"
|
|
40872
|
-
},
|
|
40904
|
+
}, DD = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, OD = { class: "body-md text-default mt-1 line-clamp-2" }, kD = {
|
|
40873
40905
|
key: 1,
|
|
40874
40906
|
class: "surface-default text-subtle rounded-2xl p-5 text-center"
|
|
40875
|
-
},
|
|
40907
|
+
}, AD = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
40876
40908
|
__name: "MessageList",
|
|
40877
40909
|
props: {
|
|
40878
40910
|
target: {},
|
|
@@ -40984,11 +41016,11 @@ var Yw = {
|
|
|
40984
41016
|
title: k.value,
|
|
40985
41017
|
subtitle: A.value,
|
|
40986
41018
|
memberCount: M.value
|
|
40987
|
-
}, () => [d(
|
|
41019
|
+
}, () => [d(hD, {
|
|
40988
41020
|
conversation: N(l).conversation.value,
|
|
40989
41021
|
"parent-message": _.value
|
|
40990
41022
|
}, null, 8, ["conversation", "parent-message"])], !0, 0) : o("", !0),
|
|
40991
|
-
C.value ? (w(), a(
|
|
41023
|
+
C.value ? (w(), a(CD, { key: 1 })) : o("", !0),
|
|
40992
41024
|
N(l).conversation.value ? (w(), s("div", {
|
|
40993
41025
|
key: 3,
|
|
40994
41026
|
class: v(["message-list__body", ie.value || P.value ? "bg-elevation-surface-overlay" : ""])
|
|
@@ -40998,12 +41030,12 @@ var Yw = {
|
|
|
40998
41030
|
ref: ae,
|
|
40999
41031
|
class: v(["message-list__scroll min-h-0 flex-1", ie.value ? "p-0" : P.value ? "px-5 py-4" : "px-2 pt-2 pb-3"]),
|
|
41000
41032
|
onScroll: i[2] ||= (...e) => N(oe) && N(oe)(...e)
|
|
41001
|
-
}, [c("div",
|
|
41002
|
-
_.value ? (w(), s("div",
|
|
41033
|
+
}, [c("div", TD, [
|
|
41034
|
+
_.value ? (w(), s("div", ED, [c("p", DD, j(_.value.senderName), 1), c("p", OD, j(N(gy)(_.value, N(r)("message"), N(l).mentionNameByUid.value)), 1)])) : o("", !0),
|
|
41003
41035
|
(w(!0), s(n, null, D(h.value, (r, c) => (w(), s(n, { key: r.id }, [Te(c) ? (w(), a(aT, {
|
|
41004
41036
|
key: 0,
|
|
41005
41037
|
date: r.sentAt
|
|
41006
|
-
}, null, 8, ["date"])) : o("", !0), d(
|
|
41038
|
+
}, null, 8, ["date"])) : o("", !0), d(xE, {
|
|
41007
41039
|
message: r,
|
|
41008
41040
|
"current-user-id": N(l).currentUserId.value,
|
|
41009
41041
|
"can-react": N(l).canReact.value,
|
|
@@ -41041,20 +41073,20 @@ var Yw = {
|
|
|
41041
41073
|
"onToggleReaction",
|
|
41042
41074
|
"onOpenThread"
|
|
41043
41075
|
])], 64))), 128)),
|
|
41044
|
-
h.value.length === 0 && T.value && !g.value ? (w(), s("div",
|
|
41076
|
+
h.value.length === 0 && T.value && !g.value ? (w(), s("div", kD, j(N(r)("noMessagesYetInThisGroup")), 1)) : o("", !0)
|
|
41045
41077
|
])], 34),
|
|
41046
41078
|
d(nT, {
|
|
41047
41079
|
attachment: ne.value,
|
|
41048
41080
|
onClose: xe
|
|
41049
41081
|
}, null, 8, ["attachment"]),
|
|
41050
41082
|
c("footer", { class: v(["message-list__composer flex shrink-0 flex-col", P.value ? ie.value ? "bg-transparent p-0" : "message-list__composer--thread" : "bg-transparent p-0"]) }, [O(e.$slots, "composer", {}, void 0, !0)], 2)
|
|
41051
|
-
], 2)) : (w(), s("div",
|
|
41083
|
+
], 2)) : (w(), s("div", wD, j(N(r)("selectConversationToStart")), 1))
|
|
41052
41084
|
], 2),
|
|
41053
41085
|
d(qw, {
|
|
41054
41086
|
attachment: ee.value,
|
|
41055
41087
|
onClose: be
|
|
41056
41088
|
}, null, 8, ["attachment"]),
|
|
41057
|
-
d(
|
|
41089
|
+
d(aD, {
|
|
41058
41090
|
ref_key: "actionMenuRef",
|
|
41059
41091
|
ref: se,
|
|
41060
41092
|
message: N(I),
|
|
@@ -41077,13 +41109,13 @@ var Yw = {
|
|
|
41077
41109
|
])
|
|
41078
41110
|
], 64));
|
|
41079
41111
|
}
|
|
41080
|
-
}), [["__scopeId", "data-v-913dab83"]]),
|
|
41112
|
+
}), [["__scopeId", "data-v-913dab83"]]), jD = {
|
|
41081
41113
|
key: 0,
|
|
41082
41114
|
class: "flex h-full min-h-64 items-center justify-center"
|
|
41083
|
-
},
|
|
41115
|
+
}, MD = { class: "mb-3" }, ND = { class: "border-default max-h-full flex-1 space-y-1 overflow-y-auto rounded-xl border" }, PD = ["onClick"], FD = { class: "flex items-center gap-3" }, ID = { class: "heading-sm text-default truncate" }, LD = {
|
|
41084
41116
|
key: 0,
|
|
41085
41117
|
class: "conversation-list__empty border-default bg-elevation-surface-sunken-default body-md text-subtle rounded-xl border p-5 text-center"
|
|
41086
|
-
},
|
|
41118
|
+
}, RD = /* @__PURE__ */ f({
|
|
41087
41119
|
__name: "ForwardMessageDialog",
|
|
41088
41120
|
props: {
|
|
41089
41121
|
open: { type: Boolean },
|
|
@@ -41112,27 +41144,27 @@ var Yw = {
|
|
|
41112
41144
|
"close-label": N(u)("close"),
|
|
41113
41145
|
onClose: r[1] ||= (e) => l("close")
|
|
41114
41146
|
}, {
|
|
41115
|
-
default: ie(() => [e.sending ? (w(), s("div",
|
|
41147
|
+
default: ie(() => [e.sending ? (w(), s("div", jD, [d(N(he), {
|
|
41116
41148
|
style: {
|
|
41117
41149
|
width: "2.75rem",
|
|
41118
41150
|
height: "2.75rem"
|
|
41119
41151
|
},
|
|
41120
41152
|
"stroke-width": "6"
|
|
41121
|
-
})])) : (w(), s(n, { key: 1 }, [c("div",
|
|
41153
|
+
})])) : (w(), s(n, { key: 1 }, [c("div", MD, [d(N(fe), {
|
|
41122
41154
|
"model-value": f.value,
|
|
41123
41155
|
placeholder: N(u)("searchByGroupName"),
|
|
41124
41156
|
class: "w-full",
|
|
41125
41157
|
"onUpdate:modelValue": r[0] ||= (e) => f.value = String(e)
|
|
41126
|
-
}, null, 8, ["model-value", "placeholder"])]), c("section",
|
|
41158
|
+
}, null, 8, ["model-value", "placeholder"])]), c("section", ND, [(w(!0), s(n, null, D(p.value, (e) => (w(), s("button", {
|
|
41127
41159
|
key: e.id,
|
|
41128
41160
|
type: "button",
|
|
41129
41161
|
class: "hover:bg-elevation-surface-hovered w-full rounded-xl border border-transparent px-4 py-3 text-left transition-colors",
|
|
41130
41162
|
onClick: (t) => m(e)
|
|
41131
|
-
}, [c("div",
|
|
41163
|
+
}, [c("div", FD, [d(oT, {
|
|
41132
41164
|
image: e.avatar,
|
|
41133
41165
|
name: e.title,
|
|
41134
41166
|
class: "shrink-0"
|
|
41135
|
-
}, null, 8, ["image", "name"]), c("p",
|
|
41167
|
+
}, null, 8, ["image", "name"]), c("p", ID, j(e.title), 1)])], 8, PD))), 128)), p.value.length === 0 ? (w(), s("div", LD, j(N(u)("noMatchingChatsFound")), 1)) : o("", !0)])], 64))]),
|
|
41136
41168
|
_: 1
|
|
41137
41169
|
}, 8, [
|
|
41138
41170
|
"open",
|
|
@@ -41140,13 +41172,13 @@ var Yw = {
|
|
|
41140
41172
|
"close-label"
|
|
41141
41173
|
]));
|
|
41142
41174
|
}
|
|
41143
|
-
}),
|
|
41175
|
+
}), zD = { class: "receipt-section" }, BD = {
|
|
41144
41176
|
key: 0,
|
|
41145
41177
|
class: "receipt-section__header"
|
|
41146
|
-
},
|
|
41178
|
+
}, VD = { class: "body-sm text-subtle font-semibold" }, HD = { class: "body-sm text-subtlest" }, UD = {
|
|
41147
41179
|
key: 1,
|
|
41148
41180
|
class: "receipt-section__list"
|
|
41149
|
-
},
|
|
41181
|
+
}, WD = { class: "receipt-section__identity" }, GD = { class: "min-w-0" }, KD = { class: "receipt-section__name heading-sm text-default truncate" }, qD = { class: "receipt-section__time body-md text-subtle" }, JD = { class: "truncate" }, YD = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
41150
41182
|
__name: "ReceiptSection",
|
|
41151
41183
|
props: {
|
|
41152
41184
|
title: {},
|
|
@@ -41159,34 +41191,34 @@ var Yw = {
|
|
|
41159
41191
|
},
|
|
41160
41192
|
setup(e) {
|
|
41161
41193
|
let t = e, r = i(() => String(t.receipts.length));
|
|
41162
|
-
return (t, i) => (w(), s("section",
|
|
41194
|
+
return (t, i) => (w(), s("section", zD, [e.showHeader ? (w(), s("div", BD, [c("p", VD, j(e.title), 1), c("span", HD, j(r.value), 1)])) : o("", !0), e.receipts.length ? (w(), s("div", UD, [(w(!0), s(n, null, D(e.receipts, (t) => (w(), s("div", {
|
|
41163
41195
|
key: `${t.kind}-${t.user.uid}`,
|
|
41164
41196
|
class: "receipt-section__row"
|
|
41165
|
-
}, [c("div",
|
|
41197
|
+
}, [c("div", WD, [d(oT, {
|
|
41166
41198
|
image: t.user.avatar,
|
|
41167
41199
|
name: t.user.name,
|
|
41168
41200
|
class: "receipt-section__avatar"
|
|
41169
|
-
}, null, 8, ["image", "name"]), c("div",
|
|
41201
|
+
}, null, 8, ["image", "name"]), c("div", GD, [c("p", KD, j(t.user.name), 1), c("p", qD, [d(N(je), {
|
|
41170
41202
|
class: "receipt-section__icon text-success",
|
|
41171
41203
|
"aria-hidden": "true"
|
|
41172
|
-
}), c("span",
|
|
41204
|
+
}), c("span", JD, j(e.formatDateTime(t.timestamp)), 1)])])])]))), 128))])) : o("", !0)]));
|
|
41173
41205
|
}
|
|
41174
|
-
}), [["__scopeId", "data-v-376a2c51"]]),
|
|
41206
|
+
}), [["__scopeId", "data-v-376a2c51"]]), XD = {
|
|
41175
41207
|
key: 0,
|
|
41176
41208
|
class: "message-info-dialog-content overflow-y-auto"
|
|
41177
|
-
},
|
|
41209
|
+
}, ZD = {
|
|
41178
41210
|
key: 0,
|
|
41179
41211
|
class: "flex items-center justify-center px-4 py-8 sm:px-6"
|
|
41180
|
-
},
|
|
41212
|
+
}, QD = {
|
|
41181
41213
|
key: 1,
|
|
41182
41214
|
class: "message-info-error body-md mx-4 rounded-xl px-4 py-3 sm:mx-6"
|
|
41183
|
-
},
|
|
41215
|
+
}, $D = {
|
|
41184
41216
|
key: 2,
|
|
41185
41217
|
class: "message-info-list"
|
|
41186
|
-
},
|
|
41218
|
+
}, eO = {
|
|
41187
41219
|
key: 1,
|
|
41188
41220
|
class: "message-info-empty body-md text-subtle"
|
|
41189
|
-
},
|
|
41221
|
+
}, tO = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
41190
41222
|
__name: "MessageInfoDialog",
|
|
41191
41223
|
props: {
|
|
41192
41224
|
open: { type: Boolean },
|
|
@@ -41217,19 +41249,19 @@ var Yw = {
|
|
|
41217
41249
|
"close-label": N(l)("close"),
|
|
41218
41250
|
onClose: n[0] ||= (e) => r("close")
|
|
41219
41251
|
}, {
|
|
41220
|
-
default: ie(() => [e.message ? (w(), s("div",
|
|
41252
|
+
default: ie(() => [e.message ? (w(), s("div", XD, [e.loading ? (w(), s("div", ZD, [d(N(he), {
|
|
41221
41253
|
style: {
|
|
41222
41254
|
width: "2.5rem",
|
|
41223
41255
|
height: "2.5rem"
|
|
41224
41256
|
},
|
|
41225
41257
|
"stroke-width": "5"
|
|
41226
|
-
})])) : e.error ? (w(), s("div",
|
|
41258
|
+
})])) : e.error ? (w(), s("div", QD, j(e.error), 1)) : (w(), s("div", $D, [u.value.length ? (w(), a(YD, {
|
|
41227
41259
|
key: 0,
|
|
41228
41260
|
title: N(l)("readBy"),
|
|
41229
41261
|
receipts: u.value,
|
|
41230
41262
|
"format-date-time": f,
|
|
41231
41263
|
"show-header": !1
|
|
41232
|
-
}, null, 8, ["title", "receipts"])) : (w(), s("p",
|
|
41264
|
+
}, null, 8, ["title", "receipts"])) : (w(), s("p", eO, j(N(l)("nobodyHasReadThisMessageYet")), 1))]))])) : o("", !0)]),
|
|
41233
41265
|
_: 1
|
|
41234
41266
|
}, 8, [
|
|
41235
41267
|
"open",
|
|
@@ -41237,13 +41269,13 @@ var Yw = {
|
|
|
41237
41269
|
"close-label"
|
|
41238
41270
|
]));
|
|
41239
41271
|
}
|
|
41240
|
-
}), [["__scopeId", "data-v-e025ada9"]]),
|
|
41272
|
+
}), [["__scopeId", "data-v-e025ada9"]]), nO = { class: "min-h-0 flex-1 overflow-y-auto" }, rO = {
|
|
41241
41273
|
key: 0,
|
|
41242
41274
|
class: "bg-elevation-surface-sunken-default body-md flex h-full min-h-40 items-center justify-center rounded-xl px-6 text-center"
|
|
41243
|
-
},
|
|
41275
|
+
}, iO = {
|
|
41244
41276
|
key: 1,
|
|
41245
41277
|
class: "space-y-3"
|
|
41246
|
-
},
|
|
41278
|
+
}, aO = { class: "space-y-1" }, oO = { class: "flex items-center justify-between gap-2" }, sO = { class: "heading-sm text-default truncate" }, cO = { class: "body-md text-default wrap-break-word whitespace-pre-wrap" }, lO = { class: "body-sm text-subtlest" }, uO = { class: "mt-3 flex flex-wrap items-center gap-1" }, dO = /* @__PURE__ */ f({
|
|
41247
41279
|
__name: "PinnedMessagesDialog",
|
|
41248
41280
|
props: {
|
|
41249
41281
|
open: { type: Boolean },
|
|
@@ -41284,12 +41316,12 @@ var Yw = {
|
|
|
41284
41316
|
"close-label": N(u)("close"),
|
|
41285
41317
|
onClose: r[0] ||= (e) => i("close")
|
|
41286
41318
|
}, {
|
|
41287
|
-
default: ie(() => [c("div",
|
|
41319
|
+
default: ie(() => [c("div", nO, [e.messages.length === 0 ? (w(), s("div", rO, j(N(u)("noPinnedMessages")), 1)) : (w(), s("div", iO, [(w(!0), s(n, null, D(e.messages, (t) => (w(), s("article", {
|
|
41288
41320
|
key: t.id,
|
|
41289
41321
|
class: "border-default rounded-lg border px-4 py-3",
|
|
41290
41322
|
"data-testid": "pinned-message-row"
|
|
41291
|
-
}, [c("div",
|
|
41292
|
-
c("div",
|
|
41323
|
+
}, [c("div", aO, [
|
|
41324
|
+
c("div", oO, [c("p", sO, j(t.senderName), 1), N(df)(t) ? (w(), a(N(ge), {
|
|
41293
41325
|
key: 0,
|
|
41294
41326
|
text: N(u)("pinnedLabel"),
|
|
41295
41327
|
context: "info",
|
|
@@ -41297,9 +41329,9 @@ var Yw = {
|
|
|
41297
41329
|
size: "sm",
|
|
41298
41330
|
class: "shrink-0"
|
|
41299
41331
|
}, null, 8, ["text"])) : o("", !0)]),
|
|
41300
|
-
c("p",
|
|
41301
|
-
c("p",
|
|
41302
|
-
]), c("div",
|
|
41332
|
+
c("p", cO, j(p(t)), 1),
|
|
41333
|
+
c("p", lO, j(m(t)) + " · " + j(f(t.pinnedAt)), 1)
|
|
41334
|
+
]), c("div", uO, [d(N(I), {
|
|
41303
41335
|
label: N(u)("goToMessage"),
|
|
41304
41336
|
icon: N(et),
|
|
41305
41337
|
severity: "secondary",
|
|
@@ -41329,34 +41361,34 @@ var Yw = {
|
|
|
41329
41361
|
"close-label"
|
|
41330
41362
|
]));
|
|
41331
41363
|
}
|
|
41332
|
-
}),
|
|
41364
|
+
}), fO = { class: "min-h-0 flex-1 overflow-y-auto" }, pO = {
|
|
41333
41365
|
key: 0,
|
|
41334
41366
|
class: "flex h-full min-h-64 items-center justify-center"
|
|
41335
|
-
},
|
|
41367
|
+
}, mO = {
|
|
41336
41368
|
key: 1,
|
|
41337
41369
|
class: "bg-elevation-surface-sunken-default body-md flex h-full min-h-64 items-center justify-center rounded-xl px-6 text-center"
|
|
41338
|
-
},
|
|
41370
|
+
}, hO = {
|
|
41339
41371
|
key: 2,
|
|
41340
41372
|
class: "space-y-3"
|
|
41341
|
-
},
|
|
41373
|
+
}, gO = { class: "flex flex-wrap items-start justify-between gap-3" }, _O = { class: "w-full space-y-2" }, vO = { class: "center between gap-2" }, yO = { class: "" }, bO = { class: "space-y-1" }, xO = { class: "heading-sm text-default" }, SO = {
|
|
41342
41374
|
key: 0,
|
|
41343
41375
|
class: "body-md text-default"
|
|
41344
|
-
},
|
|
41376
|
+
}, CO = {
|
|
41345
41377
|
key: 1,
|
|
41346
41378
|
class: "body-md text-default wrap-break-word whitespace-pre-wrap"
|
|
41347
|
-
},
|
|
41379
|
+
}, wO = {
|
|
41348
41380
|
key: 0,
|
|
41349
41381
|
class: "max-w-sm"
|
|
41350
|
-
},
|
|
41382
|
+
}, TO = { class: "flex flex-wrap items-center gap-1" }, EO = {
|
|
41351
41383
|
key: 0,
|
|
41352
41384
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3 sm:flex-row sm:items-center"
|
|
41353
|
-
},
|
|
41385
|
+
}, DO = { class: "grid w-full grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem]" }, OO = { class: "flex items-center gap-2" }, kO = {
|
|
41354
41386
|
key: 1,
|
|
41355
41387
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3"
|
|
41356
|
-
},
|
|
41388
|
+
}, AO = {
|
|
41357
41389
|
key: 0,
|
|
41358
41390
|
class: "relative max-w-sm"
|
|
41359
|
-
},
|
|
41391
|
+
}, jO = { class: "absolute top-2 right-2" }, MO = ["placeholder"], NO = { class: "flex items-center justify-end gap-2" }, PO = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
41360
41392
|
__name: "ScheduledMessagesDialog",
|
|
41361
41393
|
props: {
|
|
41362
41394
|
open: { type: Boolean },
|
|
@@ -41445,17 +41477,17 @@ var Yw = {
|
|
|
41445
41477
|
"close-label": N(v)("close"),
|
|
41446
41478
|
onClose: r[3] ||= (e) => l("close")
|
|
41447
41479
|
}, {
|
|
41448
|
-
default: ie(() => [c("div",
|
|
41480
|
+
default: ie(() => [c("div", fO, [e.loading ? (w(), s("div", pO, [d(N(he), {
|
|
41449
41481
|
style: {
|
|
41450
41482
|
width: "2.75rem",
|
|
41451
41483
|
height: "2.75rem"
|
|
41452
41484
|
},
|
|
41453
41485
|
"stroke-width": "6"
|
|
41454
|
-
})])) : y.value.length === 0 ? (w(), s("div",
|
|
41486
|
+
})])) : y.value.length === 0 ? (w(), s("div", mO, j(N(v)("noScheduledMessagesForConversation")), 1)) : (w(), s("div", hO, [(w(!0), s(n, null, D(y.value, (e) => (w(), s("article", {
|
|
41455
41487
|
key: e.id,
|
|
41456
41488
|
class: "border-default rounded-lg border px-4 py-3"
|
|
41457
|
-
}, [c("div",
|
|
41458
|
-
c("div",
|
|
41489
|
+
}, [c("div", gO, [c("div", _O, [
|
|
41490
|
+
c("div", vO, [c("div", yO, [e.kind === "poll" ? (w(), a(N(ge), {
|
|
41459
41491
|
key: 0,
|
|
41460
41492
|
text: N(v)("poll"),
|
|
41461
41493
|
context: "info",
|
|
@@ -41476,9 +41508,9 @@ var Yw = {
|
|
|
41476
41508
|
size: "small",
|
|
41477
41509
|
onClick: (t) => oe(e)
|
|
41478
41510
|
}, null, 8, ["icon", "onClick"])]),
|
|
41479
|
-
c("div",
|
|
41480
|
-
te(e) && (u.value !== e.id || f.value !== "text") ? (w(), s("div",
|
|
41481
|
-
]), c("div",
|
|
41511
|
+
c("div", bO, [c("p", xO, j(x(e.scheduled?.scheduleDate)), 1), e.kind === "poll" && e.poll ? (w(), s("p", SO, j(e.poll.question), 1)) : (w(), s("p", CO, j(N(gy)(e, N(v)("attachment"))), 1))]),
|
|
41512
|
+
te(e) && (u.value !== e.id || f.value !== "text") ? (w(), s("div", wO, [d(zT, { message: M(e) }, null, 8, ["message"])])) : o("", !0)
|
|
41513
|
+
]), c("div", TO, [e.kind === "poll" ? o("", !0) : (w(), a(N(I), {
|
|
41482
41514
|
key: 0,
|
|
41483
41515
|
label: N(v)("edit"),
|
|
41484
41516
|
icon: N(Pe),
|
|
@@ -41500,7 +41532,7 @@ var Yw = {
|
|
|
41500
41532
|
"label",
|
|
41501
41533
|
"icon",
|
|
41502
41534
|
"onClick"
|
|
41503
|
-
])) : o("", !0)])]), u.value === e.id && f.value === "reschedule" ? (w(), s("div",
|
|
41535
|
+
])) : o("", !0)])]), u.value === e.id && f.value === "reschedule" ? (w(), s("div", EO, [c("div", DO, [F(c("input", {
|
|
41504
41536
|
"onUpdate:modelValue": r[0] ||= (e) => m.value = e,
|
|
41505
41537
|
type: "date",
|
|
41506
41538
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
@@ -41512,7 +41544,7 @@ var Yw = {
|
|
|
41512
41544
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
41513
41545
|
"aria-label": "Time (24-hour)",
|
|
41514
41546
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
41515
|
-
}, null, 512), [[ne, h.value]])]), c("div",
|
|
41547
|
+
}, null, 512), [[ne, h.value]])]), c("div", OO, [d(N(I), {
|
|
41516
41548
|
label: N(v)("save"),
|
|
41517
41549
|
size: "small",
|
|
41518
41550
|
disabled: !m.value || !b.value,
|
|
@@ -41526,8 +41558,8 @@ var Yw = {
|
|
|
41526
41558
|
size: "small",
|
|
41527
41559
|
text: "",
|
|
41528
41560
|
onClick: A
|
|
41529
|
-
}, null, 8, ["label"])])])) : u.value === e.id && f.value === "text" ? (w(), s("div",
|
|
41530
|
-
te(e) ? (w(), s("div",
|
|
41561
|
+
}, null, 8, ["label"])])])) : u.value === e.id && f.value === "text" ? (w(), s("div", kO, [
|
|
41562
|
+
te(e) ? (w(), s("div", AO, [d(zT, { message: M(e) }, null, 8, ["message"]), c("div", jO, [d(N(I), {
|
|
41531
41563
|
icon: N(Ee),
|
|
41532
41564
|
"aria-label": N(v)("remove"),
|
|
41533
41565
|
text: "",
|
|
@@ -41541,8 +41573,8 @@ var Yw = {
|
|
|
41541
41573
|
rows: "3",
|
|
41542
41574
|
class: "surface-input body-md w-full rounded-xl px-3 py-2 ring-0 outline-none",
|
|
41543
41575
|
placeholder: N(v)("writeMessage")
|
|
41544
|
-
}, null, 8,
|
|
41545
|
-
c("div",
|
|
41576
|
+
}, null, 8, MO), [[ne, g.value]]),
|
|
41577
|
+
c("div", NO, [d(N(I), {
|
|
41546
41578
|
label: N(v)("cancel"),
|
|
41547
41579
|
size: "small",
|
|
41548
41580
|
text: "",
|
|
@@ -41566,7 +41598,7 @@ var Yw = {
|
|
|
41566
41598
|
"close-label"
|
|
41567
41599
|
]));
|
|
41568
41600
|
}
|
|
41569
|
-
}), [["__scopeId", "data-v-0bb2dc95"]]),
|
|
41601
|
+
}), [["__scopeId", "data-v-0bb2dc95"]]), FO = { class: "chat-status-overlay" }, IO = { class: "chat-status-overlay__card" }, LO = /*#__PURE__*/ vC(/* @__PURE__ */ f({
|
|
41570
41602
|
__name: "ChatStatusOverlay",
|
|
41571
41603
|
props: {
|
|
41572
41604
|
visible: { type: Boolean },
|
|
@@ -41599,9 +41631,9 @@ var Yw = {
|
|
|
41599
41631
|
message: t.messages.connecting,
|
|
41600
41632
|
slotName: "connecting"
|
|
41601
41633
|
} : null);
|
|
41602
|
-
return (e, t) => n.value ? O(e.$slots, n.value.slotName, {}, () => [c("div",
|
|
41634
|
+
return (e, t) => n.value ? O(e.$slots, n.value.slotName, {}, () => [c("div", FO, [c("div", IO, [O(e.$slots, `${n.value.slotName}-content`, {}, () => [c("span", null, j(n.value.message), 1)], !0)])])], !0, 0) : o("", !0);
|
|
41603
41635
|
}
|
|
41604
|
-
}), [["__scopeId", "data-v-7749aec9"]]),
|
|
41636
|
+
}), [["__scopeId", "data-v-7749aec9"]]), RO = /* @__PURE__ */ f({
|
|
41605
41637
|
__name: "BccChat",
|
|
41606
41638
|
props: {
|
|
41607
41639
|
client: { default: null },
|
|
@@ -41869,7 +41901,7 @@ var Yw = {
|
|
|
41869
41901
|
_: 1
|
|
41870
41902
|
})], void 0, 0) : o("", !0),
|
|
41871
41903
|
C.value ? (w(), s(n, { key: 1 }, [
|
|
41872
|
-
d(
|
|
41904
|
+
d(AD, {
|
|
41873
41905
|
target: "main",
|
|
41874
41906
|
class: v(["min-h-0 flex-1", e.containerClass]),
|
|
41875
41907
|
"hide-group-actions": e.hideGroupActions,
|
|
@@ -41906,7 +41938,7 @@ var Yw = {
|
|
|
41906
41938
|
"close-aria-label": N(m)("closeThread"),
|
|
41907
41939
|
onClose: r[0] ||= (e) => N(I).emit("ui:closeThread")
|
|
41908
41940
|
}, {
|
|
41909
|
-
default: ie(() => [d(
|
|
41941
|
+
default: ie(() => [d(AD, {
|
|
41910
41942
|
target: "thread",
|
|
41911
41943
|
class: "min-h-0 flex-1",
|
|
41912
41944
|
"action-message-class": e.actionMessageClass,
|
|
@@ -41930,7 +41962,7 @@ var Yw = {
|
|
|
41930
41962
|
"close-label",
|
|
41931
41963
|
"close-aria-label"
|
|
41932
41964
|
]),
|
|
41933
|
-
d(
|
|
41965
|
+
d(PO, {
|
|
41934
41966
|
open: N(F).showScheduledMessages.value,
|
|
41935
41967
|
loading: N(F).loadingScheduledMessages.value,
|
|
41936
41968
|
messages: N(F).scheduledMessages.value,
|
|
@@ -41945,7 +41977,7 @@ var Yw = {
|
|
|
41945
41977
|
"messages",
|
|
41946
41978
|
"conversation-title"
|
|
41947
41979
|
]),
|
|
41948
|
-
d(
|
|
41980
|
+
d(tO, {
|
|
41949
41981
|
open: !!N(F).infoMessage.value,
|
|
41950
41982
|
message: N(F).infoMessage.value,
|
|
41951
41983
|
receipts: N(F).infoMessageReceipts.value,
|
|
@@ -41959,7 +41991,7 @@ var Yw = {
|
|
|
41959
41991
|
"loading",
|
|
41960
41992
|
"error"
|
|
41961
41993
|
]),
|
|
41962
|
-
d(
|
|
41994
|
+
d(dO, {
|
|
41963
41995
|
open: N(F).showPinnedMessages.value,
|
|
41964
41996
|
messages: N(ee).pinnedMessages.value,
|
|
41965
41997
|
"can-unpin": N(M).canPin.value,
|
|
@@ -41975,7 +42007,7 @@ var Yw = {
|
|
|
41975
42007
|
"mention-name-by-uid",
|
|
41976
42008
|
"conversation-title"
|
|
41977
42009
|
]),
|
|
41978
|
-
d(
|
|
42010
|
+
d(RD, {
|
|
41979
42011
|
open: !!N(F).forwardMessageSource.value,
|
|
41980
42012
|
chats: C.value?.conversations.value ?? [],
|
|
41981
42013
|
sending: N(F).sendingForwardMessage.value,
|
|
@@ -41987,7 +42019,7 @@ var Yw = {
|
|
|
41987
42019
|
"sending"
|
|
41988
42020
|
])
|
|
41989
42021
|
], 64)) : o("", !0),
|
|
41990
|
-
d(
|
|
42022
|
+
d(LO, {
|
|
41991
42023
|
visible: T.value && (C.value?.offlineMode.value || !C.value?.connected.value || _.value && !ne.value || g.value || b.value || e.displayNoMessagesText && N(ee).isChatEmpty.value),
|
|
41992
42024
|
"offline-mode": !(!C.value?.offlineMode.value || D.value),
|
|
41993
42025
|
connected: !!(C.value?.connected.value || D.value),
|
|
@@ -42027,6 +42059,6 @@ var Yw = {
|
|
|
42027
42059
|
}
|
|
42028
42060
|
});
|
|
42029
42061
|
//#endregion
|
|
42030
|
-
export {
|
|
42062
|
+
export { RO as BccChat, RO as BccChatMessageList, xx as LogSeverity, gS as chat, gS as default, Wy as createChatClient };
|
|
42031
42063
|
|
|
42032
42064
|
//# sourceMappingURL=vue-bcc-chat-ui.js.map
|