@bcc-code/vue-bcc-chat-ui 7.1.8 → 7.1.9
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/index.d.ts +1 -0
- package/dist/vue-bcc-chat-ui.js +443 -442
- package/dist/vue-bcc-chat-ui.js.map +1 -1
- package/package.json +1 -1
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -6025,58 +6025,58 @@ var cl = n(() => $.value?.connected.value ?? !1), ll = n(() => Xc.value && !cl.v
|
|
|
6025
6025
|
membersCount: e.memberCount ?? 0,
|
|
6026
6026
|
tags: [...e.tags],
|
|
6027
6027
|
muteSettings: e.muteSettings ?? null
|
|
6028
|
-
})));
|
|
6029
|
-
async function
|
|
6028
|
+
}))), pl = n(() => $.value?.currentUser.value?.uid);
|
|
6029
|
+
async function ml(e, t) {
|
|
6030
6030
|
tl.value = t.loggerCallback, Re(t.language ?? "en"), al(t.themeMode);
|
|
6031
6031
|
let n = e.config.globalProperties.$primevue;
|
|
6032
|
-
n && (n.config.ripple = !0, n.config.inputVariant = "filled"), e.component("BccChat",
|
|
6032
|
+
n && (n.config.ripple = !0, n.config.inputVariant = "filled"), e.component("BccChat", mh), e.component("BccChatMessageList", mh), e.provide("theme", { theme: qc });
|
|
6033
6033
|
let r = ol(t.environment);
|
|
6034
6034
|
il(Yc.INFO, "Initializing chat", {
|
|
6035
6035
|
environment: t.environment,
|
|
6036
6036
|
language: Fe.value,
|
|
6037
6037
|
themeMode: t.themeMode
|
|
6038
6038
|
}), await r.init(), Xc.value = !0, rl?.(), p(t.accessToken) ? rl = F(t.accessToken, async (e) => {
|
|
6039
|
-
e ? await
|
|
6040
|
-
}, { immediate: !0 }) : t.accessToken && await
|
|
6039
|
+
e ? await hl(e) : await gl();
|
|
6040
|
+
}, { immediate: !0 }) : t.accessToken && await hl(t.accessToken), il(Yc.INFO, "Chat initialized", { environment: W().appId });
|
|
6041
6041
|
}
|
|
6042
|
-
async function
|
|
6043
|
-
if (!e) return
|
|
6042
|
+
async function hl(e) {
|
|
6043
|
+
if (!e) return gl();
|
|
6044
6044
|
let t = ol();
|
|
6045
6045
|
il(Yc.INFO, "Signing in to chat"), await t.login(e);
|
|
6046
6046
|
}
|
|
6047
|
-
async function
|
|
6047
|
+
async function gl() {
|
|
6048
6048
|
$.value && (il(Yc.INFO, "Signing out from chat"), await $.value.logout());
|
|
6049
6049
|
}
|
|
6050
|
-
async function
|
|
6050
|
+
async function _l(e) {
|
|
6051
6051
|
let t = e ?? "default";
|
|
6052
6052
|
nl.add(t);
|
|
6053
6053
|
let n = ol();
|
|
6054
|
-
await n.init(), await n.connectRealtime(), await
|
|
6054
|
+
await n.init(), await n.connectRealtime(), await El();
|
|
6055
6055
|
}
|
|
6056
|
-
async function
|
|
6056
|
+
async function vl(e) {
|
|
6057
6057
|
if (!$.value) return;
|
|
6058
6058
|
let t = e ?? "default";
|
|
6059
6059
|
nl.delete(t), !(nl.size > 0) && (await $.value.disconnectRealtime(), $.value.closeThread());
|
|
6060
6060
|
}
|
|
6061
|
-
async function
|
|
6061
|
+
async function yl() {
|
|
6062
6062
|
nl.clear(), $.value && (await $.value.disconnectRealtime(), $.value.closeThread());
|
|
6063
6063
|
}
|
|
6064
|
-
function yl(e) {
|
|
6065
|
-
$c.value = e;
|
|
6066
|
-
}
|
|
6067
6064
|
function bl(e) {
|
|
6068
|
-
|
|
6065
|
+
$c.value = e;
|
|
6069
6066
|
}
|
|
6070
6067
|
function xl(e) {
|
|
6071
|
-
|
|
6068
|
+
Re(e);
|
|
6072
6069
|
}
|
|
6073
6070
|
function Sl(e) {
|
|
6074
|
-
|
|
6071
|
+
al(e);
|
|
6075
6072
|
}
|
|
6076
6073
|
function Cl(e) {
|
|
6074
|
+
return e ? hl(e) : gl();
|
|
6075
|
+
}
|
|
6076
|
+
function wl(e) {
|
|
6077
6077
|
ol(e);
|
|
6078
6078
|
}
|
|
6079
|
-
async function
|
|
6079
|
+
async function Tl(e) {
|
|
6080
6080
|
if (!ul.value) return null;
|
|
6081
6081
|
try {
|
|
6082
6082
|
return await U.getGroup(e);
|
|
@@ -6084,61 +6084,62 @@ async function wl(e) {
|
|
|
6084
6084
|
return e && typeof e == "object" && "code" in e && e.code === "ERR_GUID_NOT_FOUND" ? void 0 : null;
|
|
6085
6085
|
}
|
|
6086
6086
|
}
|
|
6087
|
-
async function
|
|
6087
|
+
async function El() {
|
|
6088
6088
|
return $.value ? (await $.value.fetchConversations(), fl.value) : [];
|
|
6089
6089
|
}
|
|
6090
|
-
async function
|
|
6090
|
+
async function Dl(e) {
|
|
6091
6091
|
if (!$.value) return;
|
|
6092
6092
|
let t = $.value.conversations.value.find((t) => t.targetId === e || t.id === e);
|
|
6093
6093
|
t && (t.unreadCount = 0);
|
|
6094
6094
|
}
|
|
6095
|
-
async function
|
|
6095
|
+
async function Ol(e) {
|
|
6096
6096
|
try {
|
|
6097
6097
|
return ul.value && (await U.getOnlineGroupMemberCount([e]))[e] || 0;
|
|
6098
6098
|
} catch {
|
|
6099
6099
|
return 0;
|
|
6100
6100
|
}
|
|
6101
6101
|
}
|
|
6102
|
-
async function
|
|
6102
|
+
async function kl(e, t) {
|
|
6103
6103
|
let n = await Pc(e, t);
|
|
6104
6104
|
return $.value && ($.value.conversations.value = zc($.value.conversations.value, e, n)), n;
|
|
6105
6105
|
}
|
|
6106
|
-
async function
|
|
6106
|
+
async function Al(e) {
|
|
6107
6107
|
let t = await Nc(e);
|
|
6108
6108
|
return $.value && ($.value.conversations.value = zc($.value.conversations.value, e, t)), t;
|
|
6109
6109
|
}
|
|
6110
|
-
function
|
|
6110
|
+
function jl(e) {
|
|
6111
6111
|
el.value = e;
|
|
6112
6112
|
}
|
|
6113
|
-
var
|
|
6114
|
-
install:
|
|
6115
|
-
setGetChatMessagesCallback:
|
|
6113
|
+
var Ml = {
|
|
6114
|
+
install: ml,
|
|
6115
|
+
setGetChatMessagesCallback: bl,
|
|
6116
6116
|
initialized: Xc,
|
|
6117
6117
|
connected: cl,
|
|
6118
6118
|
connecting: ll,
|
|
6119
6119
|
loggedIn: ul,
|
|
6120
6120
|
userChats: fl,
|
|
6121
|
-
|
|
6122
|
-
|
|
6123
|
-
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6121
|
+
userUid: pl,
|
|
6122
|
+
connect: _l,
|
|
6123
|
+
disconnect: vl,
|
|
6124
|
+
disconnectAll: yl,
|
|
6125
|
+
setAccessToken: Cl,
|
|
6126
|
+
login: hl,
|
|
6127
|
+
logout: gl,
|
|
6128
|
+
setCurrentEnvironment: wl,
|
|
6128
6129
|
getCurrentEnvironment: W,
|
|
6129
|
-
setThemeMode:
|
|
6130
|
-
setLanguage:
|
|
6131
|
-
getGroup:
|
|
6130
|
+
setThemeMode: Sl,
|
|
6131
|
+
setLanguage: xl,
|
|
6132
|
+
getGroup: Tl,
|
|
6132
6133
|
getChatMembersInfo: Mc,
|
|
6133
|
-
getUserChats:
|
|
6134
|
-
clearChatCount:
|
|
6135
|
-
getChatOnlineCount:
|
|
6134
|
+
getUserChats: El,
|
|
6135
|
+
clearChatCount: Dl,
|
|
6136
|
+
getChatOnlineCount: Ol,
|
|
6136
6137
|
searchChat: (e, t = 25) => jc(e, t, $.value?.currentUser.value?.uid),
|
|
6137
6138
|
getSenderDisplayName: Ac,
|
|
6138
6139
|
getMessageTextPreview: ms,
|
|
6139
6140
|
proxyImage: Ce,
|
|
6140
|
-
getMutedUntil:
|
|
6141
|
-
muteChat:
|
|
6141
|
+
getMutedUntil: Al,
|
|
6142
|
+
muteChat: kl,
|
|
6142
6143
|
getMyChatSettings: Fc,
|
|
6143
6144
|
updateMyChatSettings: Ic,
|
|
6144
6145
|
setMuteAll: Lc,
|
|
@@ -6147,7 +6148,7 @@ var jl = {
|
|
|
6147
6148
|
retrieveCcToken: ye,
|
|
6148
6149
|
getChatMessages: $c,
|
|
6149
6150
|
scrollToMessageId: el,
|
|
6150
|
-
scrollToMessage:
|
|
6151
|
+
scrollToMessage: jl,
|
|
6151
6152
|
connectivity: dl,
|
|
6152
6153
|
onlineMode: dl.onlineMode,
|
|
6153
6154
|
onlineStatus: dl.onlineStatus,
|
|
@@ -6157,48 +6158,48 @@ var jl = {
|
|
|
6157
6158
|
};
|
|
6158
6159
|
//#endregion
|
|
6159
6160
|
//#region src/chat/conversationState.ts
|
|
6160
|
-
function Ml(e) {
|
|
6161
|
-
return e?.source?.getConversationWith?.();
|
|
6162
|
-
}
|
|
6163
6161
|
function Nl(e) {
|
|
6164
|
-
return
|
|
6162
|
+
return e?.source?.getConversationWith?.();
|
|
6165
6163
|
}
|
|
6166
6164
|
function Pl(e) {
|
|
6167
|
-
return
|
|
6165
|
+
return !!Nl(e)?.getMetadata?.()?.isChannel;
|
|
6168
6166
|
}
|
|
6169
6167
|
function Fl(e) {
|
|
6170
|
-
|
|
6171
|
-
return typeof t == "string" ? t : void 0;
|
|
6168
|
+
return Nl(e)?.getHasJoined?.() ?? !1;
|
|
6172
6169
|
}
|
|
6173
6170
|
function Il(e) {
|
|
6174
|
-
|
|
6171
|
+
let t = Nl(e)?.getScope?.();
|
|
6172
|
+
return typeof t == "string" ? t : void 0;
|
|
6175
6173
|
}
|
|
6176
6174
|
function Ll(e) {
|
|
6177
|
-
return
|
|
6175
|
+
return Pl(e) && (!Fl(e) || Il(e) === "participant");
|
|
6178
6176
|
}
|
|
6179
6177
|
function Rl(e) {
|
|
6180
|
-
return
|
|
6178
|
+
return Pl(e) ? Fl(e) : !0;
|
|
6181
6179
|
}
|
|
6182
6180
|
function zl(e) {
|
|
6183
|
-
return
|
|
6181
|
+
return Pl(e) ? Fl(e) : !0;
|
|
6184
6182
|
}
|
|
6185
6183
|
function Bl(e) {
|
|
6186
|
-
return
|
|
6184
|
+
return Pl(e) ? Fl(e) && Il(e) !== "participant" : !0;
|
|
6187
6185
|
}
|
|
6188
6186
|
function Vl(e) {
|
|
6189
|
-
return
|
|
6187
|
+
return !Pl(e);
|
|
6188
|
+
}
|
|
6189
|
+
function Hl(e) {
|
|
6190
|
+
return e?.type === "user" ? !0 : Pl(e) ? !1 : Fl(e);
|
|
6190
6191
|
}
|
|
6191
|
-
function
|
|
6192
|
+
function Ul(e, t) {
|
|
6192
6193
|
let n = t?.trim();
|
|
6193
|
-
if (!(!n ||
|
|
6194
|
+
if (!(!n || Il(e) !== "moderator")) return { senderDisplayName: n };
|
|
6194
6195
|
}
|
|
6195
6196
|
//#endregion
|
|
6196
6197
|
//#region src/composables/chat/useConversationContext.ts
|
|
6197
|
-
function
|
|
6198
|
-
let { chatClient: t, selectedConversation: r } = e, i = n(() => t.value?.currentUser.value?.uid), a = n(() =>
|
|
6198
|
+
function Wl(e) {
|
|
6199
|
+
let { chatClient: t, selectedConversation: r } = e, i = n(() => t.value?.currentUser.value?.uid), a = n(() => Rl(r.value)), o = n(() => zl(r.value)), s = n(() => Bl(r.value)), c = n(() => Vl(r.value)), l = n(() => {
|
|
6199
6200
|
let t = e.getPropIsReadOnly();
|
|
6200
|
-
return t === void 0 ?
|
|
6201
|
-
}), u = n(() =>
|
|
6201
|
+
return t === void 0 ? Ll(r.value) : t;
|
|
6202
|
+
}), u = n(() => Pl(r.value)), d = n(() => e.getPropSendOptions() ?? Ul(r.value, e.getSenderDisplayName())), f = n(() => {
|
|
6202
6203
|
let t = r.value, n = i.value, a = e.getMentionCandidates();
|
|
6203
6204
|
return t ? t.type === "user" ? !t.targetId || t.targetId === n ? [] : [{
|
|
6204
6205
|
uid: t.targetId,
|
|
@@ -6221,18 +6222,18 @@ function Ul(e) {
|
|
|
6221
6222
|
mentionNameByUid: n(() => lt(Je(f.value), t.value?.mentionDisplayNamesByUid.value ?? {}))
|
|
6222
6223
|
};
|
|
6223
6224
|
}
|
|
6224
|
-
var
|
|
6225
|
-
function
|
|
6226
|
-
C(
|
|
6225
|
+
var Gl = Symbol("conversationCtx");
|
|
6226
|
+
function Kl(e) {
|
|
6227
|
+
C(Gl, e);
|
|
6227
6228
|
}
|
|
6228
|
-
function
|
|
6229
|
-
let e = f(
|
|
6229
|
+
function ql() {
|
|
6230
|
+
let e = f(Gl);
|
|
6230
6231
|
if (!e) throw Error("useConversationContext() requires an ancestor <BccChat> component.");
|
|
6231
6232
|
return e;
|
|
6232
6233
|
}
|
|
6233
6234
|
//#endregion
|
|
6234
6235
|
//#region src/composables/chat/useMessagesContext.ts
|
|
6235
|
-
function
|
|
6236
|
+
function Jl(e) {
|
|
6236
6237
|
let { chatClient: t, selectedConversation: r, usesPublicContract: i, loadingChat: a } = e, o = n(() => {
|
|
6237
6238
|
let n = e.getPropMessages() ?? t.value?.messages.value ?? [];
|
|
6238
6239
|
return e.getHideDeletedMessages() ? n.filter((e) => !e.isDeleted) : n;
|
|
@@ -6263,18 +6264,18 @@ function ql(e) {
|
|
|
6263
6264
|
isChatEmpty: n(() => !!r.value && !s.value && o.value.length === 0)
|
|
6264
6265
|
};
|
|
6265
6266
|
}
|
|
6266
|
-
var
|
|
6267
|
-
function
|
|
6268
|
-
C(
|
|
6267
|
+
var Yl = Symbol("messagesCtx");
|
|
6268
|
+
function Xl(e) {
|
|
6269
|
+
C(Yl, e);
|
|
6269
6270
|
}
|
|
6270
|
-
function
|
|
6271
|
-
let e = f(
|
|
6271
|
+
function Zl() {
|
|
6272
|
+
let e = f(Yl);
|
|
6272
6273
|
if (!e) throw Error("useMessagesContext() requires an ancestor <BccChat> component.");
|
|
6273
6274
|
return e;
|
|
6274
6275
|
}
|
|
6275
6276
|
//#endregion
|
|
6276
6277
|
//#region src/composables/useComposerDrafts.ts
|
|
6277
|
-
function
|
|
6278
|
+
function Ql(e) {
|
|
6278
6279
|
let t = w(""), n = w(""), r = w(0), i = w(0), a = e.mainComposerRef, o = e.threadComposerRef;
|
|
6279
6280
|
function s() {
|
|
6280
6281
|
t.value = "", r.value += 1;
|
|
@@ -6362,8 +6363,8 @@ function Zl(e) {
|
|
|
6362
6363
|
}
|
|
6363
6364
|
//#endregion
|
|
6364
6365
|
//#region src/composables/chat/useComposerContext.ts
|
|
6365
|
-
function
|
|
6366
|
-
let { chatClient: t } = e, r =
|
|
6366
|
+
function $l(e) {
|
|
6367
|
+
let { chatClient: t } = e, r = Ql({
|
|
6367
6368
|
getClient: () => t.value,
|
|
6368
6369
|
getSendOptions: () => e.sendOptions.value,
|
|
6369
6370
|
getMentionNameByUid: () => e.mentionNameByUid.value,
|
|
@@ -6398,18 +6399,18 @@ function Ql(e) {
|
|
|
6398
6399
|
sendThreadPoll: r.sendThreadPoll
|
|
6399
6400
|
};
|
|
6400
6401
|
}
|
|
6401
|
-
var
|
|
6402
|
-
function
|
|
6403
|
-
C(
|
|
6402
|
+
var eu = Symbol("composerCtx");
|
|
6403
|
+
function tu(e) {
|
|
6404
|
+
C(eu, e);
|
|
6404
6405
|
}
|
|
6405
|
-
function
|
|
6406
|
-
let e = f(
|
|
6406
|
+
function nu() {
|
|
6407
|
+
let e = f(eu);
|
|
6407
6408
|
if (!e) throw Error("useComposerContext() requires an ancestor <BccChat> component.");
|
|
6408
6409
|
return e;
|
|
6409
6410
|
}
|
|
6410
6411
|
//#endregion
|
|
6411
6412
|
//#region src/composables/useMessageInfoDialog.ts
|
|
6412
|
-
function
|
|
6413
|
+
function ru(e) {
|
|
6413
6414
|
let t = w(null), n = w([]), r = w(!1), i = w(null);
|
|
6414
6415
|
async function a(a) {
|
|
6415
6416
|
let o = e.getClient();
|
|
@@ -6438,8 +6439,8 @@ function nu(e) {
|
|
|
6438
6439
|
}
|
|
6439
6440
|
//#endregion
|
|
6440
6441
|
//#region src/composables/chat/useDialogsContext.ts
|
|
6441
|
-
function
|
|
6442
|
-
let { chatClient: t, selectedConversation: r } = e, i =
|
|
6442
|
+
function iu(e) {
|
|
6443
|
+
let { chatClient: t, selectedConversation: r } = e, i = ru({
|
|
6443
6444
|
getClient: () => t.value,
|
|
6444
6445
|
fetchErrorFallback: e.fetchErrorFallback
|
|
6445
6446
|
}), a = w(e.getInitialScheduledMessagesOpen()), o = n(() => !!t.value?.scheduledMessages.value.length), s = n(() => t.value?.loadingScheduledMessages.value ?? !1), c = n(() => t.value?.scheduledMessages.value ?? []);
|
|
@@ -6468,18 +6469,18 @@ function ru(e) {
|
|
|
6468
6469
|
refreshScheduledMessages: u
|
|
6469
6470
|
};
|
|
6470
6471
|
}
|
|
6471
|
-
var
|
|
6472
|
-
function
|
|
6473
|
-
C(
|
|
6472
|
+
var au = Symbol("dialogsCtx");
|
|
6473
|
+
function ou(e) {
|
|
6474
|
+
C(au, e);
|
|
6474
6475
|
}
|
|
6475
|
-
function
|
|
6476
|
-
let e = f(
|
|
6476
|
+
function su() {
|
|
6477
|
+
let e = f(au);
|
|
6477
6478
|
if (!e) throw Error("useDialogsContext() requires an ancestor <BccChat> component.");
|
|
6478
6479
|
return e;
|
|
6479
6480
|
}
|
|
6480
6481
|
//#endregion
|
|
6481
6482
|
//#region src/composables/useChatActions.ts
|
|
6482
|
-
function
|
|
6483
|
+
function cu({ conversation: e, composer: t, dialogs: n, bus: r }) {
|
|
6483
6484
|
let i = [];
|
|
6484
6485
|
function a(e, t) {
|
|
6485
6486
|
i.push(r.on(e, t));
|
|
@@ -6520,7 +6521,7 @@ function su({ conversation: e, composer: t, dialogs: n, bus: r }) {
|
|
|
6520
6521
|
let { message: n, optionId: r } = t, i = e.client.value;
|
|
6521
6522
|
i && await i.votePoll(n, r);
|
|
6522
6523
|
}), a("message:openReference", (e) => {
|
|
6523
|
-
|
|
6524
|
+
Ml.scrollToMessage(e);
|
|
6524
6525
|
}), a("composer:send", (e) => {
|
|
6525
6526
|
let { target: n } = e;
|
|
6526
6527
|
n === "thread" ? t.sendThreadMessage() : t.sendMessage();
|
|
@@ -6565,8 +6566,8 @@ function su({ conversation: e, composer: t, dialogs: n, bus: r }) {
|
|
|
6565
6566
|
}
|
|
6566
6567
|
//#endregion
|
|
6567
6568
|
//#region src/composables/useChatEventBus.ts
|
|
6568
|
-
var
|
|
6569
|
-
function
|
|
6569
|
+
var lu = Symbol("chatBus");
|
|
6570
|
+
function uu() {
|
|
6570
6571
|
let e = /* @__PURE__ */ new Map();
|
|
6571
6572
|
return {
|
|
6572
6573
|
emit(t, ...n) {
|
|
@@ -6582,20 +6583,20 @@ function lu() {
|
|
|
6582
6583
|
}
|
|
6583
6584
|
};
|
|
6584
6585
|
}
|
|
6585
|
-
function
|
|
6586
|
-
C(
|
|
6586
|
+
function du(e) {
|
|
6587
|
+
C(lu, e);
|
|
6587
6588
|
}
|
|
6588
|
-
function
|
|
6589
|
-
let e = f(
|
|
6589
|
+
function fu() {
|
|
6590
|
+
let e = f(lu);
|
|
6590
6591
|
if (!e) throw Error("useChatBus() requires an ancestor <BccChat> component.");
|
|
6591
6592
|
return e;
|
|
6592
6593
|
}
|
|
6593
|
-
function
|
|
6594
|
+
function pu(e, t, n) {
|
|
6594
6595
|
x(e.on(t, n));
|
|
6595
6596
|
}
|
|
6596
6597
|
//#endregion
|
|
6597
6598
|
//#region src/composables/useGroupMemberTracking.ts
|
|
6598
|
-
function
|
|
6599
|
+
function mu(e) {
|
|
6599
6600
|
let t = w([]), n = `bcc-chat-group-${crypto.randomUUID()}`;
|
|
6600
6601
|
async function r(n) {
|
|
6601
6602
|
if (e.isChannel()) {
|
|
@@ -6660,13 +6661,13 @@ function pu(e) {
|
|
|
6660
6661
|
}
|
|
6661
6662
|
//#endregion
|
|
6662
6663
|
//#region src/composables/useMessageNavigation.ts
|
|
6663
|
-
function
|
|
6664
|
+
function hu(e) {
|
|
6664
6665
|
async function t(n, r) {
|
|
6665
|
-
let i = n ??
|
|
6666
|
+
let i = n ?? Ml.scrollToMessageId.value;
|
|
6666
6667
|
if (!i) return;
|
|
6667
6668
|
let a = e.getClient();
|
|
6668
6669
|
if (a && !await a.ensureMessageLoaded(i)) {
|
|
6669
|
-
|
|
6670
|
+
Ml.scrollToMessageId.value === i && (Ml.scrollToMessageId.value = void 0);
|
|
6670
6671
|
return;
|
|
6671
6672
|
}
|
|
6672
6673
|
await h();
|
|
@@ -6679,7 +6680,7 @@ function mu(e) {
|
|
|
6679
6680
|
s.scrollTo({
|
|
6680
6681
|
top: d,
|
|
6681
6682
|
behavior: "smooth"
|
|
6682
|
-
}),
|
|
6683
|
+
}), Ml.scrollToMessageId.value === i && (Ml.scrollToMessageId.value = void 0);
|
|
6683
6684
|
}
|
|
6684
6685
|
function n(e) {
|
|
6685
6686
|
t(e, 0);
|
|
@@ -6691,7 +6692,7 @@ function mu(e) {
|
|
|
6691
6692
|
}
|
|
6692
6693
|
//#endregion
|
|
6693
6694
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/AddIcon.js
|
|
6694
|
-
function
|
|
6695
|
+
function gu(e, t) {
|
|
6695
6696
|
return S(), a("svg", {
|
|
6696
6697
|
"aria-hidden": "true",
|
|
6697
6698
|
viewBox: "0 -960 960 960",
|
|
@@ -6700,7 +6701,7 @@ function hu(e, t) {
|
|
|
6700
6701
|
}
|
|
6701
6702
|
//#endregion
|
|
6702
6703
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/AttachFileIcon.js
|
|
6703
|
-
function
|
|
6704
|
+
function _u(e, t) {
|
|
6704
6705
|
return S(), a("svg", {
|
|
6705
6706
|
"aria-hidden": "true",
|
|
6706
6707
|
viewBox: "0 -960 960 960",
|
|
@@ -6709,7 +6710,7 @@ function gu(e, t) {
|
|
|
6709
6710
|
}
|
|
6710
6711
|
//#endregion
|
|
6711
6712
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/BarChartIcon.js
|
|
6712
|
-
function
|
|
6713
|
+
function vu(e, t) {
|
|
6713
6714
|
return S(), a("svg", {
|
|
6714
6715
|
"aria-hidden": "true",
|
|
6715
6716
|
viewBox: "0 -960 960 960",
|
|
@@ -6718,7 +6719,7 @@ function _u(e, t) {
|
|
|
6718
6719
|
}
|
|
6719
6720
|
//#endregion
|
|
6720
6721
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/CalendarAddOnIcon.js
|
|
6721
|
-
function
|
|
6722
|
+
function yu(e, t) {
|
|
6722
6723
|
return S(), a("svg", {
|
|
6723
6724
|
"aria-hidden": "true",
|
|
6724
6725
|
viewBox: "0 -960 960 960",
|
|
@@ -6727,7 +6728,7 @@ function vu(e, t) {
|
|
|
6727
6728
|
}
|
|
6728
6729
|
//#endregion
|
|
6729
6730
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/CheckIcon.js
|
|
6730
|
-
function
|
|
6731
|
+
function bu(e, t) {
|
|
6731
6732
|
return S(), a("svg", {
|
|
6732
6733
|
"aria-hidden": "true",
|
|
6733
6734
|
viewBox: "0 -960 960 960",
|
|
@@ -6736,7 +6737,7 @@ function yu(e, t) {
|
|
|
6736
6737
|
}
|
|
6737
6738
|
//#endregion
|
|
6738
6739
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/CloseIcon.js
|
|
6739
|
-
function
|
|
6740
|
+
function xu(e, t) {
|
|
6740
6741
|
return S(), a("svg", {
|
|
6741
6742
|
"aria-hidden": "true",
|
|
6742
6743
|
viewBox: "0 -960 960 960",
|
|
@@ -6745,7 +6746,7 @@ function bu(e, t) {
|
|
|
6745
6746
|
}
|
|
6746
6747
|
//#endregion
|
|
6747
6748
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/CodeBlocksIcon.js
|
|
6748
|
-
function
|
|
6749
|
+
function Su(e, t) {
|
|
6749
6750
|
return S(), a("svg", {
|
|
6750
6751
|
"aria-hidden": "true",
|
|
6751
6752
|
viewBox: "0 -960 960 960",
|
|
@@ -6754,7 +6755,7 @@ function xu(e, t) {
|
|
|
6754
6755
|
}
|
|
6755
6756
|
//#endregion
|
|
6756
6757
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/ContentCopyIcon.js
|
|
6757
|
-
function
|
|
6758
|
+
function Cu(e, t) {
|
|
6758
6759
|
return S(), a("svg", {
|
|
6759
6760
|
"aria-hidden": "true",
|
|
6760
6761
|
viewBox: "0 -960 960 960",
|
|
@@ -6763,7 +6764,7 @@ function Su(e, t) {
|
|
|
6763
6764
|
}
|
|
6764
6765
|
//#endregion
|
|
6765
6766
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/DeleteIcon.js
|
|
6766
|
-
function
|
|
6767
|
+
function wu(e, t) {
|
|
6767
6768
|
return S(), a("svg", {
|
|
6768
6769
|
"aria-hidden": "true",
|
|
6769
6770
|
viewBox: "0 -960 960 960",
|
|
@@ -6772,7 +6773,7 @@ function Cu(e, t) {
|
|
|
6772
6773
|
}
|
|
6773
6774
|
//#endregion
|
|
6774
6775
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/DescriptionIcon.js
|
|
6775
|
-
function
|
|
6776
|
+
function Tu(e, t) {
|
|
6776
6777
|
return S(), a("svg", {
|
|
6777
6778
|
"aria-hidden": "true",
|
|
6778
6779
|
viewBox: "0 -960 960 960",
|
|
@@ -6781,7 +6782,7 @@ function wu(e, t) {
|
|
|
6781
6782
|
}
|
|
6782
6783
|
//#endregion
|
|
6783
6784
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/DoneAllIcon.js
|
|
6784
|
-
function
|
|
6785
|
+
function Eu(e, t) {
|
|
6785
6786
|
return S(), a("svg", {
|
|
6786
6787
|
"aria-hidden": "true",
|
|
6787
6788
|
viewBox: "0 -960 960 960",
|
|
@@ -6790,7 +6791,7 @@ function Tu(e, t) {
|
|
|
6790
6791
|
}
|
|
6791
6792
|
//#endregion
|
|
6792
6793
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/EditIcon.js
|
|
6793
|
-
function
|
|
6794
|
+
function Du(e, t) {
|
|
6794
6795
|
return S(), a("svg", {
|
|
6795
6796
|
"aria-hidden": "true",
|
|
6796
6797
|
viewBox: "0 -960 960 960",
|
|
@@ -6799,7 +6800,7 @@ function Eu(e, t) {
|
|
|
6799
6800
|
}
|
|
6800
6801
|
//#endregion
|
|
6801
6802
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/EditCalendarIcon.js
|
|
6802
|
-
function
|
|
6803
|
+
function Ou(e, t) {
|
|
6803
6804
|
return S(), a("svg", {
|
|
6804
6805
|
"aria-hidden": "true",
|
|
6805
6806
|
viewBox: "0 -960 960 960",
|
|
@@ -6808,7 +6809,7 @@ function Du(e, t) {
|
|
|
6808
6809
|
}
|
|
6809
6810
|
//#endregion
|
|
6810
6811
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/ErrorIcon.js
|
|
6811
|
-
function
|
|
6812
|
+
function ku(e, t) {
|
|
6812
6813
|
return S(), a("svg", {
|
|
6813
6814
|
"aria-hidden": "true",
|
|
6814
6815
|
viewBox: "0 -960 960 960",
|
|
@@ -6817,7 +6818,7 @@ function Ou(e, t) {
|
|
|
6817
6818
|
}
|
|
6818
6819
|
//#endregion
|
|
6819
6820
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/FilePresentIcon.js
|
|
6820
|
-
function
|
|
6821
|
+
function Au(e, t) {
|
|
6821
6822
|
return S(), a("svg", {
|
|
6822
6823
|
"aria-hidden": "true",
|
|
6823
6824
|
viewBox: "0 -960 960 960",
|
|
@@ -6826,7 +6827,7 @@ function ku(e, t) {
|
|
|
6826
6827
|
}
|
|
6827
6828
|
//#endregion
|
|
6828
6829
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/FolderZipIcon.js
|
|
6829
|
-
function
|
|
6830
|
+
function ju(e, t) {
|
|
6830
6831
|
return S(), a("svg", {
|
|
6831
6832
|
"aria-hidden": "true",
|
|
6832
6833
|
viewBox: "0 -960 960 960",
|
|
@@ -6835,7 +6836,7 @@ function Au(e, t) {
|
|
|
6835
6836
|
}
|
|
6836
6837
|
//#endregion
|
|
6837
6838
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/ForumIcon.js
|
|
6838
|
-
function
|
|
6839
|
+
function Mu(e, t) {
|
|
6839
6840
|
return S(), a("svg", {
|
|
6840
6841
|
"aria-hidden": "true",
|
|
6841
6842
|
viewBox: "0 -960 960 960",
|
|
@@ -6844,7 +6845,7 @@ function ju(e, t) {
|
|
|
6844
6845
|
}
|
|
6845
6846
|
//#endregion
|
|
6846
6847
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/ImageIcon.js
|
|
6847
|
-
function
|
|
6848
|
+
function Nu(e, t) {
|
|
6848
6849
|
return S(), a("svg", {
|
|
6849
6850
|
"aria-hidden": "true",
|
|
6850
6851
|
viewBox: "0 -960 960 960",
|
|
@@ -6853,7 +6854,7 @@ function Mu(e, t) {
|
|
|
6853
6854
|
}
|
|
6854
6855
|
//#endregion
|
|
6855
6856
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/InfoIcon.js
|
|
6856
|
-
function
|
|
6857
|
+
function Pu(e, t) {
|
|
6857
6858
|
return S(), a("svg", {
|
|
6858
6859
|
"aria-hidden": "true",
|
|
6859
6860
|
viewBox: "0 -960 960 960",
|
|
@@ -6862,7 +6863,7 @@ function Nu(e, t) {
|
|
|
6862
6863
|
}
|
|
6863
6864
|
//#endregion
|
|
6864
6865
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/KeyboardArrowDownIcon.js
|
|
6865
|
-
function
|
|
6866
|
+
function Fu(e, t) {
|
|
6866
6867
|
return S(), a("svg", {
|
|
6867
6868
|
"aria-hidden": "true",
|
|
6868
6869
|
viewBox: "0 -960 960 960",
|
|
@@ -6871,7 +6872,7 @@ function Pu(e, t) {
|
|
|
6871
6872
|
}
|
|
6872
6873
|
//#endregion
|
|
6873
6874
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/KeyboardArrowUpIcon.js
|
|
6874
|
-
function
|
|
6875
|
+
function Iu(e, t) {
|
|
6875
6876
|
return S(), a("svg", {
|
|
6876
6877
|
"aria-hidden": "true",
|
|
6877
6878
|
viewBox: "0 -960 960 960",
|
|
@@ -6880,7 +6881,7 @@ function Fu(e, t) {
|
|
|
6880
6881
|
}
|
|
6881
6882
|
//#endregion
|
|
6882
6883
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/MicIcon.js
|
|
6883
|
-
function
|
|
6884
|
+
function Lu(e, t) {
|
|
6884
6885
|
return S(), a("svg", {
|
|
6885
6886
|
"aria-hidden": "true",
|
|
6886
6887
|
viewBox: "0 -960 960 960",
|
|
@@ -6889,7 +6890,7 @@ function Iu(e, t) {
|
|
|
6889
6890
|
}
|
|
6890
6891
|
//#endregion
|
|
6891
6892
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/OpenInNewIcon.js
|
|
6892
|
-
function
|
|
6893
|
+
function Ru(e, t) {
|
|
6893
6894
|
return S(), a("svg", {
|
|
6894
6895
|
"aria-hidden": "true",
|
|
6895
6896
|
viewBox: "0 -960 960 960",
|
|
@@ -6898,7 +6899,7 @@ function Lu(e, t) {
|
|
|
6898
6899
|
}
|
|
6899
6900
|
//#endregion
|
|
6900
6901
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/PictureAsPdfIcon.js
|
|
6901
|
-
function
|
|
6902
|
+
function zu(e, t) {
|
|
6902
6903
|
return S(), a("svg", {
|
|
6903
6904
|
"aria-hidden": "true",
|
|
6904
6905
|
viewBox: "0 -960 960 960",
|
|
@@ -6907,7 +6908,7 @@ function Ru(e, t) {
|
|
|
6907
6908
|
}
|
|
6908
6909
|
//#endregion
|
|
6909
6910
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/ReplyIcon.js
|
|
6910
|
-
function
|
|
6911
|
+
function Bu(e, t) {
|
|
6911
6912
|
return S(), a("svg", {
|
|
6912
6913
|
"aria-hidden": "true",
|
|
6913
6914
|
viewBox: "0 -960 960 960",
|
|
@@ -6916,7 +6917,7 @@ function zu(e, t) {
|
|
|
6916
6917
|
}
|
|
6917
6918
|
//#endregion
|
|
6918
6919
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/ScheduleIcon.js
|
|
6919
|
-
function
|
|
6920
|
+
function Vu(e, t) {
|
|
6920
6921
|
return S(), a("svg", {
|
|
6921
6922
|
"aria-hidden": "true",
|
|
6922
6923
|
viewBox: "0 -960 960 960",
|
|
@@ -6925,7 +6926,7 @@ function Bu(e, t) {
|
|
|
6925
6926
|
}
|
|
6926
6927
|
//#endregion
|
|
6927
6928
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/SendIcon.js
|
|
6928
|
-
function
|
|
6929
|
+
function Hu(e, t) {
|
|
6929
6930
|
return S(), a("svg", {
|
|
6930
6931
|
"aria-hidden": "true",
|
|
6931
6932
|
viewBox: "0 -960 960 960",
|
|
@@ -6934,7 +6935,7 @@ function Vu(e, t) {
|
|
|
6934
6935
|
}
|
|
6935
6936
|
//#endregion
|
|
6936
6937
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/TableChartIcon.js
|
|
6937
|
-
function
|
|
6938
|
+
function Uu(e, t) {
|
|
6938
6939
|
return S(), a("svg", {
|
|
6939
6940
|
"aria-hidden": "true",
|
|
6940
6941
|
viewBox: "0 -960 960 960",
|
|
@@ -6943,7 +6944,7 @@ function Hu(e, t) {
|
|
|
6943
6944
|
}
|
|
6944
6945
|
//#endregion
|
|
6945
6946
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/TextSnippetIcon.js
|
|
6946
|
-
function
|
|
6947
|
+
function Wu(e, t) {
|
|
6947
6948
|
return S(), a("svg", {
|
|
6948
6949
|
"aria-hidden": "true",
|
|
6949
6950
|
viewBox: "0 -960 960 960",
|
|
@@ -6952,7 +6953,7 @@ function Uu(e, t) {
|
|
|
6952
6953
|
}
|
|
6953
6954
|
//#endregion
|
|
6954
6955
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/TranslateIcon.js
|
|
6955
|
-
function
|
|
6956
|
+
function Gu(e, t) {
|
|
6956
6957
|
return S(), a("svg", {
|
|
6957
6958
|
"aria-hidden": "true",
|
|
6958
6959
|
viewBox: "0 -960 960 960",
|
|
@@ -6961,7 +6962,7 @@ function Wu(e, t) {
|
|
|
6961
6962
|
}
|
|
6962
6963
|
//#endregion
|
|
6963
6964
|
//#region node_modules/@bcc-code/icons-vue/dist/esm/VideocamIcon.js
|
|
6964
|
-
function
|
|
6965
|
+
function Ku(e, t) {
|
|
6965
6966
|
return S(), a("svg", {
|
|
6966
6967
|
"aria-hidden": "true",
|
|
6967
6968
|
viewBox: "0 -960 960 960",
|
|
@@ -6970,7 +6971,7 @@ function Gu(e, t) {
|
|
|
6970
6971
|
}
|
|
6971
6972
|
//#endregion
|
|
6972
6973
|
//#region src/chat/clipboardFiles.ts
|
|
6973
|
-
var
|
|
6974
|
+
var qu = new Set([
|
|
6974
6975
|
"",
|
|
6975
6976
|
"image.png",
|
|
6976
6977
|
"image.jpeg",
|
|
@@ -6978,7 +6979,7 @@ var Ku = new Set([
|
|
|
6978
6979
|
"image.gif",
|
|
6979
6980
|
"image.webp",
|
|
6980
6981
|
"blob"
|
|
6981
|
-
]),
|
|
6982
|
+
]), Ju = {
|
|
6982
6983
|
"image/png": "png",
|
|
6983
6984
|
"image/jpeg": "jpg",
|
|
6984
6985
|
"image/jpg": "jpg",
|
|
@@ -6987,18 +6988,18 @@ var Ku = new Set([
|
|
|
6987
6988
|
"image/bmp": "bmp",
|
|
6988
6989
|
"image/svg+xml": "svg"
|
|
6989
6990
|
};
|
|
6990
|
-
function
|
|
6991
|
+
function Yu(e) {
|
|
6991
6992
|
let t = e.name.trim(), n = t.toLowerCase();
|
|
6992
|
-
return
|
|
6993
|
+
return qu.has(n) ? `pasted-image.${Ju[e.type] ?? "png"}` : t;
|
|
6993
6994
|
}
|
|
6994
|
-
function
|
|
6995
|
+
function Xu(e) {
|
|
6995
6996
|
let t = e.clipboardData?.items;
|
|
6996
6997
|
if (!t) return null;
|
|
6997
6998
|
for (let e of t) {
|
|
6998
6999
|
if (e.kind !== "file" || !e.type.startsWith("image/")) continue;
|
|
6999
7000
|
let t = e.getAsFile();
|
|
7000
7001
|
if (!t) continue;
|
|
7001
|
-
let n =
|
|
7002
|
+
let n = Yu(t);
|
|
7002
7003
|
return n === t.name ? t : new File([t], n, {
|
|
7003
7004
|
type: t.type,
|
|
7004
7005
|
lastModified: t.lastModified
|
|
@@ -7008,7 +7009,7 @@ function Yu(e) {
|
|
|
7008
7009
|
}
|
|
7009
7010
|
//#endregion
|
|
7010
7011
|
//#region src/composables/useComposerTriggers.ts
|
|
7011
|
-
function
|
|
7012
|
+
function Zu(e) {
|
|
7012
7013
|
return {
|
|
7013
7014
|
id: "mention",
|
|
7014
7015
|
triggerChar: "@",
|
|
@@ -7025,7 +7026,7 @@ function Xu(e) {
|
|
|
7025
7026
|
}
|
|
7026
7027
|
};
|
|
7027
7028
|
}
|
|
7028
|
-
function
|
|
7029
|
+
function Qu(e) {
|
|
7029
7030
|
let t = w(null), r = w([]), i = w({
|
|
7030
7031
|
x: 0,
|
|
7031
7032
|
y: 0,
|
|
@@ -7058,7 +7059,7 @@ function Zu(e) {
|
|
|
7058
7059
|
}
|
|
7059
7060
|
for (let i of e.getTriggers()) {
|
|
7060
7061
|
if (!i.enabled()) continue;
|
|
7061
|
-
let e =
|
|
7062
|
+
let e = $u(n, i.triggerChar);
|
|
7062
7063
|
if (!e) continue;
|
|
7063
7064
|
let c = i.getCandidates(e.query).slice(0, i.maxSuggestions ?? 8);
|
|
7064
7065
|
if (!c.length) {
|
|
@@ -7103,7 +7104,7 @@ function Zu(e) {
|
|
|
7103
7104
|
refreshActiveTrigger: c
|
|
7104
7105
|
};
|
|
7105
7106
|
}
|
|
7106
|
-
function
|
|
7107
|
+
function $u(e, t) {
|
|
7107
7108
|
let n = window.getSelection();
|
|
7108
7109
|
if (!n || n.rangeCount === 0 || !n.isCollapsed) return null;
|
|
7109
7110
|
let r = n.getRangeAt(0);
|
|
@@ -7114,13 +7115,13 @@ function Qu(e, t) {
|
|
|
7114
7115
|
if (o === -1 || o > 0 && !/\s/.test(a[o - 1] ?? "")) return null;
|
|
7115
7116
|
let s = a.slice(o + 1);
|
|
7116
7117
|
if (/\s/.test(s)) return null;
|
|
7117
|
-
let c =
|
|
7118
|
+
let c = td(e, o, a.length) ?? ed(r, t);
|
|
7118
7119
|
return c ? {
|
|
7119
7120
|
query: s,
|
|
7120
7121
|
range: c
|
|
7121
7122
|
} : null;
|
|
7122
7123
|
}
|
|
7123
|
-
function
|
|
7124
|
+
function ed(e, t) {
|
|
7124
7125
|
let n = e.endContainer;
|
|
7125
7126
|
n.nodeType !== Node.TEXT_NODE && (n = e.endContainer.childNodes[e.endOffset - 1] ?? e.endContainer.childNodes[0] ?? null);
|
|
7126
7127
|
for (let r = 0; r < 4 && n; r += 1) {
|
|
@@ -7136,7 +7137,7 @@ function $u(e, t) {
|
|
|
7136
7137
|
}
|
|
7137
7138
|
return null;
|
|
7138
7139
|
}
|
|
7139
|
-
function
|
|
7140
|
+
function td(e, t, n) {
|
|
7140
7141
|
let r = document.createTreeWalker(e, NodeFilter.SHOW_TEXT), i = 0, a = null, o = 0, s = null, c = 0;
|
|
7141
7142
|
for (let e = r.nextNode(); e; e = r.nextNode()) {
|
|
7142
7143
|
let r = e.textContent?.length ?? 0, l = i + r;
|
|
@@ -7150,7 +7151,7 @@ function ed(e, t, n) {
|
|
|
7150
7151
|
let l = document.createRange();
|
|
7151
7152
|
return l.setStart(a, o), l.setEnd(s, c), l;
|
|
7152
7153
|
}
|
|
7153
|
-
function
|
|
7154
|
+
function nd(e, t) {
|
|
7154
7155
|
e.deleteContents();
|
|
7155
7156
|
let n = document.createElement("span");
|
|
7156
7157
|
n.className = "composer-mention", n.setAttribute("data-mention-uid", t.uid), n.contentEditable = "false", n.textContent = `@${t.displayName}`;
|
|
@@ -7161,20 +7162,20 @@ function td(e, t) {
|
|
|
7161
7162
|
}
|
|
7162
7163
|
//#endregion
|
|
7163
7164
|
//#region src/composables/useRichTextComposer.ts
|
|
7164
|
-
function
|
|
7165
|
+
function rd(e, t, r, i) {
|
|
7165
7166
|
let a = w(null), o = w(0), s = w(!1), c = w({
|
|
7166
7167
|
x: 0,
|
|
7167
7168
|
y: 0
|
|
7168
7169
|
}), l = w(qo(i.getModelValue())), u = n(() => {
|
|
7169
7170
|
let e = [...i.extraTriggers ?? []];
|
|
7170
|
-
return i.getMentionCandidates && e.unshift(
|
|
7171
|
+
return i.getMentionCandidates && e.unshift(Zu({
|
|
7171
7172
|
enabled: () => i.mentionsEnabled?.() ?? !0,
|
|
7172
7173
|
getMentionCandidates: () => i.getMentionCandidates?.() ?? [],
|
|
7173
7174
|
insertMention: (e, t) => {
|
|
7174
|
-
|
|
7175
|
+
nd(t, e), E(), D();
|
|
7175
7176
|
}
|
|
7176
7177
|
})), e;
|
|
7177
|
-
}), { triggerCandidates: d, triggerMenuPosition: f, highlightedTriggerIndex: p, showTriggerMenu: m, hideTriggerMenu: g, handleInput: _, handleKeydown: v, selectTriggerCandidate: x, refreshActiveTrigger: S } =
|
|
7178
|
+
}), { triggerCandidates: d, triggerMenuPosition: f, highlightedTriggerIndex: p, showTriggerMenu: m, hideTriggerMenu: g, handleInput: _, handleKeydown: v, selectTriggerCandidate: x, refreshActiveTrigger: S } = Qu({
|
|
7178
7179
|
editorRef: t,
|
|
7179
7180
|
getTriggers: () => u.value,
|
|
7180
7181
|
onChange: () => E()
|
|
@@ -7313,7 +7314,7 @@ function nd(e, t, r, i) {
|
|
|
7313
7314
|
}
|
|
7314
7315
|
//#endregion
|
|
7315
7316
|
//#region src/components/messages/ComposerActionsPopover.vue?vue&type=script&setup=true&lang.ts
|
|
7316
|
-
var
|
|
7317
|
+
var id = ["data-testid", "onClick"], ad = { class: "composer-actions-menu__icon" }, od = { class: "composer-actions-menu__icon" }, sd = /* @__PURE__ */ u({
|
|
7317
7318
|
__name: "ComposerActionsPopover",
|
|
7318
7319
|
emits: ["pickFile", "openPoll"],
|
|
7319
7320
|
setup(t, { expose: n, emit: i }) {
|
|
@@ -7321,25 +7322,25 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7321
7322
|
{
|
|
7322
7323
|
kind: "image",
|
|
7323
7324
|
label: "attachImage",
|
|
7324
|
-
icon:
|
|
7325
|
+
icon: Nu,
|
|
7325
7326
|
testId: "composer-attach-image"
|
|
7326
7327
|
},
|
|
7327
7328
|
{
|
|
7328
7329
|
kind: "video",
|
|
7329
7330
|
label: "attachVideo",
|
|
7330
|
-
icon:
|
|
7331
|
+
icon: Ku,
|
|
7331
7332
|
testId: "composer-attach-video"
|
|
7332
7333
|
},
|
|
7333
7334
|
{
|
|
7334
7335
|
kind: "audio",
|
|
7335
7336
|
label: "attachAudio",
|
|
7336
|
-
icon:
|
|
7337
|
+
icon: Lu,
|
|
7337
7338
|
testId: "composer-attach-audio"
|
|
7338
7339
|
},
|
|
7339
7340
|
{
|
|
7340
7341
|
kind: "file",
|
|
7341
7342
|
label: "attachFile",
|
|
7342
|
-
icon:
|
|
7343
|
+
icon: _u,
|
|
7343
7344
|
testId: "composer-attach-file"
|
|
7344
7345
|
}
|
|
7345
7346
|
];
|
|
@@ -7378,18 +7379,18 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7378
7379
|
class: "composer-actions-menu__item",
|
|
7379
7380
|
"data-testid": e.testId,
|
|
7380
7381
|
onClick: (t) => h(e.kind)
|
|
7381
|
-
}, [o("span",
|
|
7382
|
+
}, [o("span", ad, [(S(), r(D(e.icon), { class: "size-5" }))]), o("span", null, k(j(u)(e.label)), 1)], 8, id)), 64)), o("button", {
|
|
7382
7383
|
type: "button",
|
|
7383
7384
|
class: "composer-actions-menu__item",
|
|
7384
7385
|
"data-testid": "composer-create-poll",
|
|
7385
7386
|
onClick: g
|
|
7386
|
-
}, [o("span",
|
|
7387
|
+
}, [o("span", od, [(S(), r(D(j(vu)), { class: "size-5" }))]), o("span", null, k(j(u)("createPoll")), 1)])], 512)), [[P, c.value]]);
|
|
7387
7388
|
}
|
|
7388
|
-
}),
|
|
7389
|
+
}), cd = (e, t) => {
|
|
7389
7390
|
let n = e.__vccOpts || e;
|
|
7390
7391
|
for (let [e, r] of t) n[e] = r;
|
|
7391
7392
|
return n;
|
|
7392
|
-
},
|
|
7393
|
+
}, ld = /* @__PURE__ */ cd(sd, [["__scopeId", "data-v-28efbfda"]]), ud = { class: "min-w-0" }, dd = { class: "context-banner__kind" }, fd = { class: "context-banner__sender" }, pd = { class: "context-banner__preview" }, md = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
7393
7394
|
__name: "ComposerContextBanner",
|
|
7394
7395
|
props: {
|
|
7395
7396
|
message: {},
|
|
@@ -7398,20 +7399,20 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7398
7399
|
},
|
|
7399
7400
|
emits: ["cancel"],
|
|
7400
7401
|
setup(e, { emit: t }) {
|
|
7401
|
-
let r = e, i = t, { t: s } = q(), c =
|
|
7402
|
-
return (t, n) => (S(), a("div", { class: g(["context-banner", `context-banner--${e.variant}`]) }, [o("div",
|
|
7403
|
-
o("p",
|
|
7404
|
-
o("p",
|
|
7405
|
-
o("p",
|
|
7402
|
+
let r = e, i = t, { t: s } = q(), c = ql(), u = n(() => ds(r.message, s("message"), c.mentionNameByUid.value));
|
|
7403
|
+
return (t, n) => (S(), a("div", { class: g(["context-banner", `context-banner--${e.variant}`]) }, [o("div", ud, [
|
|
7404
|
+
o("p", dd, k(e.variant === "editing" ? j(s)("editingInContext", { context: e.contextLabel }) : j(s)("replyingInContext", { context: e.contextLabel })), 1),
|
|
7405
|
+
o("p", fd, k(e.message.senderName), 1),
|
|
7406
|
+
o("p", pd, k(u.value), 1)
|
|
7406
7407
|
]), l(j(z), {
|
|
7407
|
-
icon: j(
|
|
7408
|
+
icon: j(xu),
|
|
7408
7409
|
text: "",
|
|
7409
7410
|
rounded: "",
|
|
7410
7411
|
severity: "secondary",
|
|
7411
7412
|
onClick: n[0] ||= (e) => i("cancel")
|
|
7412
7413
|
}, null, 8, ["icon"])], 2));
|
|
7413
7414
|
}
|
|
7414
|
-
}), [["__scopeId", "data-v-f496c16b"]]),
|
|
7415
|
+
}), [["__scopeId", "data-v-f496c16b"]]), hd = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
7415
7416
|
__name: "ComposerFormatMenu",
|
|
7416
7417
|
props: {
|
|
7417
7418
|
visible: { type: Boolean },
|
|
@@ -7448,7 +7449,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7448
7449
|
}, [s[8] ||= o("span", { class: "format-menu__icon underline" }, "U", -1), o("span", null, k(j(r)("underline")), 1)], 32)
|
|
7449
7450
|
], 4)) : i("", !0);
|
|
7450
7451
|
}
|
|
7451
|
-
}), [["__scopeId", "data-v-c9a1b3d8"]]),
|
|
7452
|
+
}), [["__scopeId", "data-v-c9a1b3d8"]]), gd = { class: "space-y-6" }, _d = { class: "space-y-2" }, vd = { class: "heading-sm text-subtle block font-medium!" }, yd = { class: "space-y-2" }, bd = { class: "heading-sm text-subtle block font-medium!" }, xd = /* @__PURE__ */ u({
|
|
7452
7453
|
__name: "ComposerPollDialog",
|
|
7453
7454
|
props: {
|
|
7454
7455
|
visible: { type: Boolean },
|
|
@@ -7492,7 +7493,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7492
7493
|
onClick: y
|
|
7493
7494
|
}, null, 8, ["label"]), l(j(z), {
|
|
7494
7495
|
label: j(d)("sendPoll"),
|
|
7495
|
-
icon: j(
|
|
7496
|
+
icon: j(Hu),
|
|
7496
7497
|
disabled: c.disabled || !m.value,
|
|
7497
7498
|
onClick: v
|
|
7498
7499
|
}, null, 8, [
|
|
@@ -7500,13 +7501,13 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7500
7501
|
"icon",
|
|
7501
7502
|
"disabled"
|
|
7502
7503
|
])]),
|
|
7503
|
-
default: I(() => [o("div",
|
|
7504
|
+
default: I(() => [o("div", gd, [o("div", _d, [o("label", vd, k(j(d)("question")), 1), l(j(ie), {
|
|
7504
7505
|
modelValue: f.value,
|
|
7505
7506
|
"onUpdate:modelValue": i[0] ||= (e) => f.value = e,
|
|
7506
7507
|
fluid: "",
|
|
7507
7508
|
placeholder: j(d)("pollQuestionPlaceholder")
|
|
7508
|
-
}, null, 8, ["modelValue", "placeholder"])]), o("div",
|
|
7509
|
-
o("label",
|
|
7509
|
+
}, null, 8, ["modelValue", "placeholder"])]), o("div", yd, [
|
|
7510
|
+
o("label", bd, k(j(d)("options")), 1),
|
|
7510
7511
|
(S(!0), a(e, null, T(p.value, (e, t) => (S(), a("div", {
|
|
7511
7512
|
key: t,
|
|
7512
7513
|
class: "center"
|
|
@@ -7520,7 +7521,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7520
7521
|
"placeholder",
|
|
7521
7522
|
"onUpdate:modelValue"
|
|
7522
7523
|
]), l(j(z), {
|
|
7523
|
-
icon: j(
|
|
7524
|
+
icon: j(xu),
|
|
7524
7525
|
text: "",
|
|
7525
7526
|
rounded: "",
|
|
7526
7527
|
severity: "secondary",
|
|
@@ -7533,7 +7534,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7533
7534
|
])]))), 128)),
|
|
7534
7535
|
l(j(z), {
|
|
7535
7536
|
label: j(d)("addOption"),
|
|
7536
|
-
icon: j(
|
|
7537
|
+
icon: j(gu),
|
|
7537
7538
|
text: "",
|
|
7538
7539
|
onClick: h
|
|
7539
7540
|
}, null, 8, ["label", "icon"])
|
|
@@ -7541,7 +7542,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7541
7542
|
_: 1
|
|
7542
7543
|
}, 8, ["visible", "header"]));
|
|
7543
7544
|
}
|
|
7544
|
-
}),
|
|
7545
|
+
}), Sd = { class: "w-full space-y-6" }, Cd = { class: "w-full space-y-2" }, wd = { class: "heading-sm text-subtle block font-medium!" }, Td = { class: "center left w-full gap-2" }, Ed = { class: "body-md bg-elevation-surface-sunken-default rounded-lg px-4 py-3" }, Dd = /* @__PURE__ */ u({
|
|
7545
7546
|
__name: "ComposerScheduleDialog",
|
|
7546
7547
|
props: {
|
|
7547
7548
|
visible: { type: Boolean },
|
|
@@ -7591,7 +7592,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7591
7592
|
onClick: b
|
|
7592
7593
|
}, null, 8, ["label"]), l(j(z), {
|
|
7593
7594
|
label: j(c)("schedule"),
|
|
7594
|
-
icon: j(
|
|
7595
|
+
icon: j(yu),
|
|
7595
7596
|
disabled: a.disabled || !g.value,
|
|
7596
7597
|
onClick: y
|
|
7597
7598
|
}, null, 8, [
|
|
@@ -7599,7 +7600,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7599
7600
|
"icon",
|
|
7600
7601
|
"disabled"
|
|
7601
7602
|
])]),
|
|
7602
|
-
default: I(() => [o("div",
|
|
7603
|
+
default: I(() => [o("div", Sd, [o("div", Cd, [o("label", wd, k(j(c)("sendAt")), 1), o("div", Td, [l(j(re), {
|
|
7603
7604
|
modelValue: u.value,
|
|
7604
7605
|
"onUpdate:modelValue": n[0] ||= (e) => u.value = e,
|
|
7605
7606
|
class: "w-full flex-1",
|
|
@@ -7613,22 +7614,22 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7613
7614
|
mask: "##:##",
|
|
7614
7615
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
7615
7616
|
"aria-label": "Time (24-hour)"
|
|
7616
|
-
}, null, 8, ["modelValue"])])]), o("div",
|
|
7617
|
+
}, null, 8, ["modelValue"])])]), o("div", Ed, k(e.contentPreview), 1)])]),
|
|
7617
7618
|
_: 1
|
|
7618
7619
|
}, 8, ["visible", "header"]));
|
|
7619
7620
|
}
|
|
7620
|
-
}),
|
|
7621
|
+
}), Od = [
|
|
7621
7622
|
"aria-selected",
|
|
7622
7623
|
"onMouseover",
|
|
7623
7624
|
"onMousedown"
|
|
7624
|
-
],
|
|
7625
|
+
], kd = {
|
|
7625
7626
|
key: 1,
|
|
7626
7627
|
class: "trigger-menu__avatar-fallback",
|
|
7627
7628
|
"aria-hidden": "true"
|
|
7628
|
-
},
|
|
7629
|
+
}, Ad = { class: "min-w-0" }, jd = { class: "trigger-menu__label" }, Md = {
|
|
7629
7630
|
key: 0,
|
|
7630
7631
|
class: "trigger-menu__subtitle"
|
|
7631
|
-
},
|
|
7632
|
+
}, Nd = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
7632
7633
|
__name: "ComposerTriggerMenu",
|
|
7633
7634
|
props: /* @__PURE__ */ m({
|
|
7634
7635
|
visible: { type: Boolean },
|
|
@@ -7663,27 +7664,27 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7663
7664
|
src: e.avatar,
|
|
7664
7665
|
name: e.label,
|
|
7665
7666
|
size: "sm"
|
|
7666
|
-
}, null, 8, ["src", "name"])) : (S(), a("span",
|
|
7667
|
+
}, null, 8, ["src", "name"])) : (S(), a("span", kd, k(e.label.charAt(0)), 1)), o("span", Ad, [o("span", jd, k(e.label), 1), e.subtitle ? (S(), a("span", Md, k(e.subtitle), 1)) : i("", !0)])], 42, Od))), 128))], 38)) : i("", !0);
|
|
7667
7668
|
}
|
|
7668
|
-
}), [["__scopeId", "data-v-3f395457"]]),
|
|
7669
|
+
}), [["__scopeId", "data-v-3f395457"]]), Pd = ["accept", "disabled"], Fd = {
|
|
7669
7670
|
key: 2,
|
|
7670
7671
|
class: "composer-file-preview"
|
|
7671
|
-
},
|
|
7672
|
+
}, Id = { class: "min-w-0" }, Ld = { class: "heading-sm text-default truncate" }, Rd = { class: "body-sm text-subtle" }, zd = {
|
|
7672
7673
|
class: "composer-button-icon",
|
|
7673
7674
|
"aria-hidden": "true"
|
|
7674
|
-
},
|
|
7675
|
+
}, Bd = ["data-placeholder"], Vd = {
|
|
7675
7676
|
key: 0,
|
|
7676
7677
|
class: "body-sm text-subtle flex items-center gap-2 px-0.5"
|
|
7677
|
-
},
|
|
7678
|
+
}, Hd = {
|
|
7678
7679
|
key: 2,
|
|
7679
7680
|
class: "ml-auto"
|
|
7680
|
-
},
|
|
7681
|
+
}, Ud = {
|
|
7681
7682
|
class: "composer-button-icon",
|
|
7682
7683
|
"aria-hidden": "true"
|
|
7683
|
-
},
|
|
7684
|
+
}, Wd = {
|
|
7684
7685
|
class: "composer-button-icon",
|
|
7685
7686
|
"aria-hidden": "true"
|
|
7686
|
-
},
|
|
7687
|
+
}, Gd = 450, Kd = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
7687
7688
|
__name: "MessageComposer",
|
|
7688
7689
|
props: {
|
|
7689
7690
|
modelValue: {},
|
|
@@ -7716,7 +7717,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7716
7717
|
video: "video/*",
|
|
7717
7718
|
audio: "audio/*",
|
|
7718
7719
|
file: "*/*"
|
|
7719
|
-
}, u = e, d = s, f = w(null), m = w(null), _ = w(null), v = w("file"), y = w(!1), b = w(!1), x = w(!1), { t: C } = q(), T = null, E = w(null), O = w(null), A = w(null), { applyFormat: M, editorKey: ee, formatMenuPosition: N, focusEditor: P, handleContextMenu: te, handleInput: R, handleKeydown: ne, handlePaste: B, hideFormatMenu: re, resetEditor: ie, showFormatMenu: V, triggerCandidates: ae, triggerMenuPosition: H, highlightedTriggerIndex: U, showTriggerMenu: se, selectTriggerCandidate: ce } =
|
|
7720
|
+
}, u = e, d = s, f = w(null), m = w(null), _ = w(null), v = w("file"), y = w(!1), b = w(!1), x = w(!1), { t: C } = q(), T = null, E = w(null), O = w(null), A = w(null), { applyFormat: M, editorKey: ee, formatMenuPosition: N, focusEditor: P, handleContextMenu: te, handleInput: R, handleKeydown: ne, handlePaste: B, hideFormatMenu: re, resetEditor: ie, showFormatMenu: V, triggerCandidates: ae, triggerMenuPosition: H, highlightedTriggerIndex: U, showTriggerMenu: se, selectTriggerCandidate: ce } = rd(E, O, A, {
|
|
7720
7721
|
getModelValue: () => u.modelValue,
|
|
7721
7722
|
updateModelValue: (e) => d("update:modelValue", e),
|
|
7722
7723
|
submit: () => Se(),
|
|
@@ -7757,7 +7758,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7757
7758
|
}
|
|
7758
7759
|
function ye(e) {
|
|
7759
7760
|
if (u.disabled) return;
|
|
7760
|
-
let t =
|
|
7761
|
+
let t = Xu(e);
|
|
7761
7762
|
if (t) {
|
|
7762
7763
|
e.preventDefault(), _.value = t, ge();
|
|
7763
7764
|
return;
|
|
@@ -7802,7 +7803,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7802
7803
|
function De(e) {
|
|
7803
7804
|
u.disabled || !pe.value || e instanceof MouseEvent && e.button !== 0 || (x.value = !1, Ee(), T = setTimeout(() => {
|
|
7804
7805
|
T = null, x.value = !0, b.value = !0;
|
|
7805
|
-
},
|
|
7806
|
+
}, Gd));
|
|
7806
7807
|
}
|
|
7807
7808
|
function G() {
|
|
7808
7809
|
Ee();
|
|
@@ -7826,15 +7827,15 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7826
7827
|
disabled: e.disabled,
|
|
7827
7828
|
onChange: ve,
|
|
7828
7829
|
onCancel: ge
|
|
7829
|
-
}, null, 40,
|
|
7830
|
-
e.editingMessage ? (S(), r(
|
|
7830
|
+
}, null, 40, Pd),
|
|
7831
|
+
e.editingMessage ? (S(), r(md, {
|
|
7831
7832
|
key: 0,
|
|
7832
7833
|
message: e.editingMessage,
|
|
7833
7834
|
variant: "editing",
|
|
7834
7835
|
"context-label": e.contextLabel,
|
|
7835
7836
|
onCancel: n[0] ||= (e) => d("cancelEdit")
|
|
7836
7837
|
}, null, 8, ["message", "context-label"])) : i("", !0),
|
|
7837
|
-
e.replyToMessage ? (S(), r(
|
|
7838
|
+
e.replyToMessage ? (S(), r(md, {
|
|
7838
7839
|
key: 1,
|
|
7839
7840
|
message: e.replyToMessage,
|
|
7840
7841
|
variant: "replying",
|
|
@@ -7842,8 +7843,8 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7842
7843
|
"data-testid": "composer-reply-context",
|
|
7843
7844
|
onCancel: n[1] ||= (e) => d("cancelReply")
|
|
7844
7845
|
}, null, 8, ["message", "context-label"])) : i("", !0),
|
|
7845
|
-
_.value ? (S(), a("div",
|
|
7846
|
-
icon: j(
|
|
7846
|
+
_.value ? (S(), a("div", Fd, [o("div", Id, [o("p", Ld, k(_.value.name), 1), o("p", Rd, k(_.value.type || de.value), 1)]), l(j(z), {
|
|
7847
|
+
icon: j(xu),
|
|
7847
7848
|
text: "",
|
|
7848
7849
|
rounded: "",
|
|
7849
7850
|
severity: "secondary",
|
|
@@ -7854,7 +7855,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7854
7855
|
ref: E,
|
|
7855
7856
|
class: g(["composer-shell w-full", u.compact ? "composer-shell--compact" : "composer-shell--default"])
|
|
7856
7857
|
}, [
|
|
7857
|
-
l(
|
|
7858
|
+
l(ld, {
|
|
7858
7859
|
ref_key: "composerActionsRef",
|
|
7859
7860
|
ref: m,
|
|
7860
7861
|
onPickFile: _e,
|
|
@@ -7870,7 +7871,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7870
7871
|
"data-testid": "composer-actions-button",
|
|
7871
7872
|
onClick: xe
|
|
7872
7873
|
}, {
|
|
7873
|
-
default: I(() => [o("span",
|
|
7874
|
+
default: I(() => [o("span", zd, [(S(), r(D(j(gu)), { class: "size-7" }))])]),
|
|
7874
7875
|
_: 1
|
|
7875
7876
|
}, 8, [
|
|
7876
7877
|
"class",
|
|
@@ -7892,8 +7893,8 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7892
7893
|
onKeydown: n[6] ||= (...e) => j(ne) && j(ne)(...e),
|
|
7893
7894
|
onPaste: ye,
|
|
7894
7895
|
onContextmenu: n[7] ||= (...e) => j(te) && j(te)(...e)
|
|
7895
|
-
}, null, 42,
|
|
7896
|
-
_.value || e.editingMessage || e.contextLabel || e.offlineMode ? (S(), a("div",
|
|
7896
|
+
}, null, 42, Bd)),
|
|
7897
|
+
_.value || e.editingMessage || e.contextLabel || e.offlineMode ? (S(), a("div", Vd, [
|
|
7897
7898
|
e.editingMessage ? (S(), r(j(oe), {
|
|
7898
7899
|
key: 0,
|
|
7899
7900
|
text: j(C)("editing"),
|
|
@@ -7910,7 +7911,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7910
7911
|
size: "sm",
|
|
7911
7912
|
class: "composer-meta-tag"
|
|
7912
7913
|
}, null, 8, ["text"])) : i("", !0),
|
|
7913
|
-
e.offlineMode ? (S(), a("p",
|
|
7914
|
+
e.offlineMode ? (S(), a("p", Hd, k(e.pendingQueueCount ? j(C)("offlineQueued", { count: e.pendingQueueCount }) : j(C)("offline")), 1)) : i("", !0)
|
|
7914
7915
|
])) : i("", !0),
|
|
7915
7916
|
e.showScheduledButton ? (S(), r(j(z), {
|
|
7916
7917
|
key: 1,
|
|
@@ -7921,7 +7922,7 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7921
7922
|
"aria-label": j(C)("scheduledMessages"),
|
|
7922
7923
|
onClick: Te
|
|
7923
7924
|
}, {
|
|
7924
|
-
default: I(() => [o("span",
|
|
7925
|
+
default: I(() => [o("span", Ud, [(S(), r(D(j(Ou)), { class: "size-7" }))])]),
|
|
7925
7926
|
_: 1
|
|
7926
7927
|
}, 8, [
|
|
7927
7928
|
"class",
|
|
@@ -7944,10 +7945,10 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7944
7945
|
onContextmenu: n[8] ||= L(() => {}, ["prevent"]),
|
|
7945
7946
|
onClick: Oe
|
|
7946
7947
|
}, {
|
|
7947
|
-
default: I(() => [o("span",
|
|
7948
|
+
default: I(() => [o("span", Wd, [e.editingMessage ? (S(), r(D(j(bu)), {
|
|
7948
7949
|
key: 0,
|
|
7949
7950
|
class: "size-7"
|
|
7950
|
-
})) : (S(), r(D(j(
|
|
7951
|
+
})) : (S(), r(D(j(Hu)), {
|
|
7951
7952
|
key: 1,
|
|
7952
7953
|
class: "size-7"
|
|
7953
7954
|
}))])]),
|
|
@@ -7958,12 +7959,12 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7958
7959
|
"aria-label"
|
|
7959
7960
|
])
|
|
7960
7961
|
], 2),
|
|
7961
|
-
l(
|
|
7962
|
+
l(hd, {
|
|
7962
7963
|
visible: j(V),
|
|
7963
7964
|
position: j(N),
|
|
7964
7965
|
onFormat: n[9] ||= (e) => j(M)(e)
|
|
7965
7966
|
}, null, 8, ["visible", "position"]),
|
|
7966
|
-
l(
|
|
7967
|
+
l(Nd, {
|
|
7967
7968
|
ref_key: "triggerMenuRef",
|
|
7968
7969
|
ref: A,
|
|
7969
7970
|
"highlighted-index": j(U),
|
|
@@ -7978,13 +7979,13 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7978
7979
|
"position",
|
|
7979
7980
|
"candidates"
|
|
7980
7981
|
]),
|
|
7981
|
-
l(
|
|
7982
|
+
l(xd, {
|
|
7982
7983
|
visible: y.value,
|
|
7983
7984
|
"onUpdate:visible": n[12] ||= (e) => y.value = e,
|
|
7984
7985
|
disabled: e.disabled,
|
|
7985
7986
|
onSend: Ce
|
|
7986
7987
|
}, null, 8, ["visible", "disabled"]),
|
|
7987
|
-
l(
|
|
7988
|
+
l(Dd, {
|
|
7988
7989
|
visible: b.value,
|
|
7989
7990
|
"onUpdate:visible": n[13] ||= (e) => b.value = e,
|
|
7990
7991
|
disabled: e.disabled,
|
|
@@ -7999,14 +8000,14 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
7999
8000
|
])
|
|
8000
8001
|
], 2));
|
|
8001
8002
|
}
|
|
8002
|
-
}), [["__scopeId", "data-v-cf9e887c"]]),
|
|
8003
|
+
}), [["__scopeId", "data-v-cf9e887c"]]), qd = {
|
|
8003
8004
|
key: 1,
|
|
8004
8005
|
class: "composer-readonly-notice"
|
|
8005
|
-
},
|
|
8006
|
+
}, Jd = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
8006
8007
|
__name: "ConversationComposer",
|
|
8007
8008
|
props: { target: {} },
|
|
8008
8009
|
setup(e, { expose: t }) {
|
|
8009
|
-
let o = e, { t: s } = q(), c =
|
|
8010
|
+
let o = e, { t: s } = q(), c = ql(), l = Zl(), u = nu(), d = su(), f = fu(), p = n(() => o.target === "thread"), m = n({
|
|
8010
8011
|
get: () => p.value ? u.threadDraft.value : u.draft.value,
|
|
8011
8012
|
set: (e) => {
|
|
8012
8013
|
p.value ? u.threadDraft.value = e : u.draft.value = e;
|
|
@@ -8046,13 +8047,13 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
8046
8047
|
f.emit("composer:cancelEdit");
|
|
8047
8048
|
}
|
|
8048
8049
|
let M = w(null);
|
|
8049
|
-
|
|
8050
|
+
pu(f, "ui:closeComposerActions", () => {
|
|
8050
8051
|
M.value?.hideComposerActions();
|
|
8051
8052
|
});
|
|
8052
8053
|
async function ee() {
|
|
8053
8054
|
await M.value?.focusEditor();
|
|
8054
8055
|
}
|
|
8055
|
-
return t({ focusEditor: ee }), (e, t) => y.value ? (S(), r(
|
|
8056
|
+
return t({ focusEditor: ee }), (e, t) => y.value ? (S(), r(Kd, {
|
|
8056
8057
|
key: 0,
|
|
8057
8058
|
ref_key: "composerRef",
|
|
8058
8059
|
ref: M,
|
|
@@ -8089,10 +8090,10 @@ var rd = ["data-testid", "onClick"], id = { class: "composer-actions-menu__icon"
|
|
|
8089
8090
|
"mention-candidates",
|
|
8090
8091
|
"mention-name-by-uid",
|
|
8091
8092
|
"mentions-enabled"
|
|
8092
|
-
])) : b.value ? (S(), a("div",
|
|
8093
|
+
])) : b.value ? (S(), a("div", qd, k(p.value ? j(s)("repliesDisabledInChannels") : j(s)("readOnlyChannel")), 1)) : i("", !0);
|
|
8093
8094
|
}
|
|
8094
|
-
}), [["__scopeId", "data-v-84a9e2b1"]]),
|
|
8095
|
-
function
|
|
8095
|
+
}), [["__scopeId", "data-v-84a9e2b1"]]), Yd = 1800;
|
|
8096
|
+
function Xd(e) {
|
|
8096
8097
|
let t = e.actionMenuRef, n = w(null), r = w(null), i = typeof window < "u" && window.matchMedia("(hover: hover) and (pointer: fine)").matches, a = null;
|
|
8097
8098
|
function o(e) {
|
|
8098
8099
|
return e.kind === "text" && ls(e.text);
|
|
@@ -8193,7 +8194,7 @@ function Yd(e) {
|
|
|
8193
8194
|
}
|
|
8194
8195
|
r.value = e.id, a && clearTimeout(a), a = setTimeout(() => {
|
|
8195
8196
|
r.value = null;
|
|
8196
|
-
},
|
|
8197
|
+
}, Yd), v();
|
|
8197
8198
|
}
|
|
8198
8199
|
function C(t) {
|
|
8199
8200
|
e.canReply() && (e.emit.reply(t), v());
|
|
@@ -8218,49 +8219,49 @@ function Yd(e) {
|
|
|
8218
8219
|
{
|
|
8219
8220
|
key: "reply",
|
|
8220
8221
|
label: e.t("reply"),
|
|
8221
|
-
icon:
|
|
8222
|
+
icon: Bu,
|
|
8222
8223
|
visible: e.canReply(),
|
|
8223
8224
|
command: () => C(t)
|
|
8224
8225
|
},
|
|
8225
8226
|
{
|
|
8226
8227
|
key: "edit",
|
|
8227
8228
|
label: e.t("edit"),
|
|
8228
|
-
icon:
|
|
8229
|
+
icon: Du,
|
|
8229
8230
|
visible: s(t),
|
|
8230
8231
|
command: () => T(t)
|
|
8231
8232
|
},
|
|
8232
8233
|
{
|
|
8233
8234
|
key: "copy",
|
|
8234
8235
|
label: r.value === t.id ? e.t("copied") : e.t("copyText"),
|
|
8235
|
-
icon: r.value === t.id ?
|
|
8236
|
+
icon: r.value === t.id ? bu : Cu,
|
|
8236
8237
|
visible: !0,
|
|
8237
8238
|
command: () => S(t)
|
|
8238
8239
|
},
|
|
8239
8240
|
{
|
|
8240
8241
|
key: "info",
|
|
8241
8242
|
label: e.t("info"),
|
|
8242
|
-
icon:
|
|
8243
|
+
icon: Pu,
|
|
8243
8244
|
visible: c(t),
|
|
8244
8245
|
command: () => O(t)
|
|
8245
8246
|
},
|
|
8246
8247
|
{
|
|
8247
8248
|
key: "thread",
|
|
8248
8249
|
label: e.t("threadWithCount", { count: t.replyCount }),
|
|
8249
|
-
icon:
|
|
8250
|
+
icon: Mu,
|
|
8250
8251
|
visible: !e.isInThread() && e.canOpenThread(),
|
|
8251
8252
|
command: () => E(t)
|
|
8252
8253
|
},
|
|
8253
8254
|
{
|
|
8254
8255
|
key: "delete",
|
|
8255
8256
|
label: e.t("delete"),
|
|
8256
|
-
icon:
|
|
8257
|
+
icon: wu,
|
|
8257
8258
|
visible: l(t),
|
|
8258
8259
|
command: () => k(t)
|
|
8259
8260
|
},
|
|
8260
8261
|
{
|
|
8261
8262
|
key: "translate",
|
|
8262
8263
|
label: e.t("translate"),
|
|
8263
|
-
icon:
|
|
8264
|
+
icon: Gu,
|
|
8264
8265
|
visible: o(t),
|
|
8265
8266
|
command: () => D(t)
|
|
8266
8267
|
}
|
|
@@ -8282,8 +8283,8 @@ function Yd(e) {
|
|
|
8282
8283
|
}
|
|
8283
8284
|
//#endregion
|
|
8284
8285
|
//#region src/composables/useMessageListScroll.ts
|
|
8285
|
-
var
|
|
8286
|
-
function
|
|
8286
|
+
var Zd = 1, Qd = 2, $d = 80, ef = 1800, tf = 4;
|
|
8287
|
+
function nf(e) {
|
|
8287
8288
|
let t = e.threadRef, n = !0, r = 0, i = null, a = null, o = null, s = null;
|
|
8288
8289
|
function c() {
|
|
8289
8290
|
o != null && (cancelAnimationFrame(o), o = null);
|
|
@@ -8325,7 +8326,7 @@ function tf(e) {
|
|
|
8325
8326
|
resizeObserver: o,
|
|
8326
8327
|
timeoutId: setTimeout(() => {
|
|
8327
8328
|
f();
|
|
8328
|
-
},
|
|
8329
|
+
}, ef)
|
|
8329
8330
|
}, a(), o.observe(e);
|
|
8330
8331
|
}
|
|
8331
8332
|
function m() {
|
|
@@ -8336,9 +8337,9 @@ function tf(e) {
|
|
|
8336
8337
|
let a = t.value;
|
|
8337
8338
|
if (!a) return;
|
|
8338
8339
|
let o = a.scrollTop;
|
|
8339
|
-
i?.el === a && Math.abs(o - i.expectedScrollTop) >
|
|
8340
|
+
i?.el === a && Math.abs(o - i.expectedScrollTop) > tf && f();
|
|
8340
8341
|
let s = o < r, c = Math.max(0, a.scrollHeight - o - a.clientHeight);
|
|
8341
|
-
s && c >
|
|
8342
|
+
s && c > Zd ? n = !1 : c <= Qd && (n = !0), r = o, a.scrollTop <= $d && !e.isLoading() && !e.isLoadingOlder() && e.canLoadOlder() && e.onLoadOlder();
|
|
8342
8343
|
}
|
|
8343
8344
|
return F(() => {
|
|
8344
8345
|
let t = e.getMessages();
|
|
@@ -8366,14 +8367,14 @@ function tf(e) {
|
|
|
8366
8367
|
}
|
|
8367
8368
|
//#endregion
|
|
8368
8369
|
//#region src/composables/useImageZoom.ts
|
|
8369
|
-
var
|
|
8370
|
-
function
|
|
8370
|
+
var rf = 1, af = 4;
|
|
8371
|
+
function of(e) {
|
|
8371
8372
|
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;
|
|
8372
8373
|
function h(e, t, n) {
|
|
8373
8374
|
return Math.min(Math.max(e, t), n);
|
|
8374
8375
|
}
|
|
8375
8376
|
function g(e) {
|
|
8376
|
-
return h(e,
|
|
8377
|
+
return h(e, rf, af);
|
|
8377
8378
|
}
|
|
8378
8379
|
function _(n, r, i = t.value) {
|
|
8379
8380
|
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);
|
|
@@ -8463,10 +8464,10 @@ function af(e) {
|
|
|
8463
8464
|
}
|
|
8464
8465
|
//#endregion
|
|
8465
8466
|
//#region src/components/overlays/FullscreenDialog.vue?vue&type=script&setup=true&lang.ts
|
|
8466
|
-
var
|
|
8467
|
+
var sf = { class: "w-full" }, cf = {
|
|
8467
8468
|
key: 0,
|
|
8468
8469
|
class: "fullscreen-dialog__footer"
|
|
8469
|
-
},
|
|
8470
|
+
}, lf = /* @__PURE__ */ u({
|
|
8470
8471
|
__name: "FullscreenDialog",
|
|
8471
8472
|
props: {
|
|
8472
8473
|
open: { type: Boolean },
|
|
@@ -8491,34 +8492,34 @@ var of = { class: "w-full" }, sf = {
|
|
|
8491
8492
|
closable: !0,
|
|
8492
8493
|
"onUpdate:visible": s
|
|
8493
8494
|
}, {
|
|
8494
|
-
default: I(() => [o("div",
|
|
8495
|
+
default: I(() => [o("div", sf, [E(t.$slots, "default")]), t.$slots.footer ? (S(), a("div", cf, [E(t.$slots, "footer")])) : i("", !0)]),
|
|
8495
8496
|
_: 3
|
|
8496
8497
|
}, 8, ["visible", "header"]));
|
|
8497
8498
|
}
|
|
8498
|
-
}),
|
|
8499
|
+
}), uf = ["href"], df = { class: "media-viewer-shell flex min-h-0 flex-1 items-center justify-center overflow-hidden" }, ff = ["src", "alt"], pf = {
|
|
8499
8500
|
key: 1,
|
|
8500
8501
|
class: "media-viewer-stage media-viewer-stage-video flex w-full items-center justify-center"
|
|
8501
|
-
},
|
|
8502
|
+
}, mf = {
|
|
8502
8503
|
class: "max-h-full w-full bg-black",
|
|
8503
8504
|
controls: "",
|
|
8504
8505
|
playsinline: "",
|
|
8505
8506
|
autoplay: ""
|
|
8506
|
-
},
|
|
8507
|
+
}, hf = ["src", "type"], gf = {
|
|
8507
8508
|
key: 2,
|
|
8508
8509
|
class: "media-viewer-stage media-viewer-audio-stage flex w-full items-center justify-center px-5 py-6"
|
|
8509
|
-
},
|
|
8510
|
+
}, _f = {
|
|
8510
8511
|
class: "w-full",
|
|
8511
8512
|
controls: "",
|
|
8512
8513
|
autoplay: ""
|
|
8513
|
-
},
|
|
8514
|
+
}, vf = ["src", "type"], yf = {
|
|
8514
8515
|
key: 0,
|
|
8515
8516
|
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"
|
|
8516
|
-
},
|
|
8517
|
+
}, bf = { class: "min-w-0 flex-1" }, xf = { class: "heading-sm text-default truncate" }, Sf = { class: "body-sm text-subtle" }, Cf = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
8517
8518
|
__name: "MediaViewerDialog",
|
|
8518
8519
|
props: { attachment: {} },
|
|
8519
8520
|
emits: ["close"],
|
|
8520
8521
|
setup(t, { emit: s }) {
|
|
8521
|
-
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: _ } = q(), { scale: y, translateX: b, translateY: x, isDragging: C, resetTransform: T, handlePointerDown: E, handlePointerMove: O, handlePointerUp: A, handlePointerCancel: M, handleWheel: ee, handleDoubleClick: N } =
|
|
8522
|
+
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: _ } = q(), { scale: y, translateX: b, translateY: x, isDragging: C, resetTransform: T, handlePointerDown: E, handlePointerMove: O, handlePointerUp: A, handlePointerCancel: M, handleWheel: ee, handleDoubleClick: N } = of({
|
|
8522
8523
|
viewportRef: u,
|
|
8523
8524
|
imageRef: d,
|
|
8524
8525
|
isImage: () => p.value
|
|
@@ -8529,7 +8530,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
8529
8530
|
function P() {
|
|
8530
8531
|
l("close");
|
|
8531
8532
|
}
|
|
8532
|
-
return (n, s) => (S(), r(
|
|
8533
|
+
return (n, s) => (S(), r(lf, {
|
|
8533
8534
|
open: f.value,
|
|
8534
8535
|
title: t.attachment?.name || j(_)("attachment"),
|
|
8535
8536
|
subtitle: t.attachment?.kind || "",
|
|
@@ -8543,12 +8544,12 @@ var of = { class: "w-full" }, sf = {
|
|
|
8543
8544
|
target: "_blank",
|
|
8544
8545
|
rel: "noreferrer",
|
|
8545
8546
|
class: "media-viewer-link-action"
|
|
8546
|
-
}, [(S(), r(D(j(
|
|
8547
|
+
}, [(S(), r(D(j(Ru)), {
|
|
8547
8548
|
class: "size-4",
|
|
8548
8549
|
"aria-hidden": "true"
|
|
8549
|
-
})), o("span", null, k(j(_)("openInNewTab")), 1)], 8,
|
|
8550
|
-
footer: I(() => [t.attachment ? (S(), a("div",
|
|
8551
|
-
default: I(() => [o("div",
|
|
8550
|
+
})), o("span", null, k(j(_)("openInNewTab")), 1)], 8, uf)) : i("", !0)]),
|
|
8551
|
+
footer: I(() => [t.attachment ? (S(), a("div", yf, [o("div", bf, [o("p", xf, k(t.attachment.name), 1), o("p", Sf, k(t.attachment.kind), 1)])])) : i("", !0)]),
|
|
8552
|
+
default: I(() => [o("div", df, [t.attachment?.url ? (S(), a(e, { key: 0 }, [p.value ? (S(), a("div", {
|
|
8552
8553
|
key: 0,
|
|
8553
8554
|
ref_key: "viewportRef",
|
|
8554
8555
|
ref: u,
|
|
@@ -8571,13 +8572,13 @@ var of = { class: "w-full" }, sf = {
|
|
|
8571
8572
|
transform: `translate3d(${j(b)}px, ${j(x)}px, 0) scale(${j(y)})`,
|
|
8572
8573
|
transformOrigin: "center center"
|
|
8573
8574
|
})
|
|
8574
|
-
}, null, 14,
|
|
8575
|
+
}, null, 14, ff)], 544)) : m.value ? (S(), a("div", pf, [o("video", mf, [o("source", {
|
|
8575
8576
|
src: t.attachment.url,
|
|
8576
8577
|
type: t.attachment.mimeType || void 0
|
|
8577
|
-
}, null, 8,
|
|
8578
|
+
}, null, 8, hf)])])) : h.value ? (S(), a("div", gf, [o("audio", _f, [o("source", {
|
|
8578
8579
|
src: t.attachment.url,
|
|
8579
8580
|
type: t.attachment.mimeType || void 0
|
|
8580
|
-
}, null, 8,
|
|
8581
|
+
}, null, 8, vf)])])) : i("", !0)], 64)) : i("", !0)])]),
|
|
8581
8582
|
_: 1
|
|
8582
8583
|
}, 8, [
|
|
8583
8584
|
"open",
|
|
@@ -8587,7 +8588,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
8587
8588
|
"close-aria-label"
|
|
8588
8589
|
]));
|
|
8589
8590
|
}
|
|
8590
|
-
}), [["__scopeId", "data-v-0e82cfd0"]]),
|
|
8591
|
+
}), [["__scopeId", "data-v-0e82cfd0"]]), wf = { class: "date-separator" }, Tf = { class: "date-separator__label" }, Ef = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
8591
8592
|
__name: "MessageDateSeparator",
|
|
8592
8593
|
props: { date: {} },
|
|
8593
8594
|
setup(e) {
|
|
@@ -8601,24 +8602,24 @@ var of = { class: "w-full" }, sf = {
|
|
|
8601
8602
|
year: "numeric"
|
|
8602
8603
|
}).format(n);
|
|
8603
8604
|
});
|
|
8604
|
-
return (e, t) => (S(), a("div",
|
|
8605
|
+
return (e, t) => (S(), a("div", wf, [o("span", Tf, k(s.value), 1)]));
|
|
8605
8606
|
}
|
|
8606
|
-
}), [["__scopeId", "data-v-49e72d67"]]),
|
|
8607
|
+
}), [["__scopeId", "data-v-49e72d67"]]), Df = {
|
|
8607
8608
|
"data-testid": "action-message",
|
|
8608
8609
|
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"
|
|
8609
|
-
},
|
|
8610
|
+
}, Of = { class: "message-action-row__text" }, kf = /* @__PURE__ */ u({
|
|
8610
8611
|
__name: "ActionMessageRow",
|
|
8611
8612
|
props: { text: {} },
|
|
8612
8613
|
setup(e) {
|
|
8613
|
-
return (t, n) => (S(), a("div",
|
|
8614
|
+
return (t, n) => (S(), a("div", Df, [o("span", Of, k(e.text), 1)]));
|
|
8614
8615
|
}
|
|
8615
|
-
}),
|
|
8616
|
+
}), Af = ["href"], jf = {
|
|
8616
8617
|
key: 0,
|
|
8617
8618
|
class: "bg-elevation-surface-hovered aspect-[1.9/1] w-full overflow-hidden"
|
|
8618
|
-
},
|
|
8619
|
+
}, Mf = ["src", "alt"], Nf = { class: "space-y-1.5 px-3 py-3" }, Pf = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, Ff = { class: "heading-sm text-default line-clamp-2" }, If = { class: "body-md text-subtle line-clamp-2" }, Lf = {
|
|
8619
8620
|
key: 0,
|
|
8620
8621
|
class: "body-sm text-subtlest"
|
|
8621
|
-
},
|
|
8622
|
+
}, Rf = /* @__PURE__ */ u({
|
|
8622
8623
|
__name: "LinkPreviewCard",
|
|
8623
8624
|
props: {
|
|
8624
8625
|
url: {},
|
|
@@ -8685,18 +8686,18 @@ var of = { class: "w-full" }, sf = {
|
|
|
8685
8686
|
target: "_blank",
|
|
8686
8687
|
rel: "noreferrer",
|
|
8687
8688
|
class: g(["media-surface mt-2 block rounded-xl no-underline transition hover:opacity-95", e.isOwn ? "bg-elevation-surface-default text-default" : "bg-elevation-surface-sunken text-default"])
|
|
8688
|
-
}, [r.value?.imageUrl ? (S(), a("div",
|
|
8689
|
+
}, [r.value?.imageUrl ? (S(), a("div", jf, [o("img", {
|
|
8689
8690
|
src: r.value.imageUrl,
|
|
8690
8691
|
alt: r.value.title || l.value,
|
|
8691
8692
|
class: "h-full w-full object-cover"
|
|
8692
|
-
}, null, 8,
|
|
8693
|
-
o("p",
|
|
8694
|
-
o("p",
|
|
8695
|
-
o("p",
|
|
8696
|
-
s.value && !r.value ? (S(), a("p",
|
|
8697
|
-
])], 10,
|
|
8698
|
-
}
|
|
8699
|
-
}),
|
|
8693
|
+
}, null, 8, Mf)])) : i("", !0), o("div", Nf, [
|
|
8694
|
+
o("p", Pf, k(r.value?.siteName || l.value), 1),
|
|
8695
|
+
o("p", Ff, k(r.value?.title || l.value), 1),
|
|
8696
|
+
o("p", If, k(r.value?.description || u.value), 1),
|
|
8697
|
+
s.value && !r.value ? (S(), a("p", Lf, k(j(c)("loadingPreview")), 1)) : i("", !0)
|
|
8698
|
+
])], 10, Af));
|
|
8699
|
+
}
|
|
8700
|
+
}), zf = { class: "linkified-text" }, Bf = ["innerHTML"], Vf = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
8700
8701
|
__name: "LinkifiedText",
|
|
8701
8702
|
props: {
|
|
8702
8703
|
text: {},
|
|
@@ -8715,25 +8716,25 @@ var of = { class: "w-full" }, sf = {
|
|
|
8715
8716
|
let t = e.target;
|
|
8716
8717
|
t.tagName === "A" && d(e, t);
|
|
8717
8718
|
}
|
|
8718
|
-
return (t, n) => (S(), a("div",
|
|
8719
|
+
return (t, n) => (S(), a("div", zf, [o("div", {
|
|
8719
8720
|
class: g(["rich-text-content", e.textClass]),
|
|
8720
8721
|
onClick: f,
|
|
8721
8722
|
innerHTML: l.value
|
|
8722
|
-
}, null, 10,
|
|
8723
|
+
}, null, 10, Bf), e.showPreview !== !1 && u.value ? (S(), r(Rf, {
|
|
8723
8724
|
key: 0,
|
|
8724
8725
|
url: u.value,
|
|
8725
8726
|
"is-own": e.isOwn
|
|
8726
8727
|
}, null, 8, ["url", "is-own"])) : i("", !0)]));
|
|
8727
8728
|
}
|
|
8728
|
-
}), [["__scopeId", "data-v-656b44e8"]]),
|
|
8729
|
+
}), [["__scopeId", "data-v-656b44e8"]]), Hf = { class: "w-full space-y-1" }, Uf = {
|
|
8729
8730
|
class: "attachment-video",
|
|
8730
8731
|
controls: "",
|
|
8731
8732
|
playsinline: "",
|
|
8732
8733
|
preload: "metadata"
|
|
8733
|
-
},
|
|
8734
|
+
}, Wf = ["src", "type"], Gf = ["onClick"], Kf = { class: "inline-flex items-center gap-2 truncate font-medium" }, qf = ["href"], Jf = { class: "flex min-w-0 items-center gap-2" }, Yf = { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full" }, Xf = { class: "text-default truncate font-medium" }, Zf = { class: "body-sm text-subtle shrink-0" }, Qf = {
|
|
8734
8735
|
key: 4,
|
|
8735
8736
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm"
|
|
8736
|
-
},
|
|
8737
|
+
}, $f = { class: "flex min-w-0 items-center gap-2" }, ep = { class: "bg-elevation-surface-hovered text-default inline-flex h-8 w-8 shrink-0 items-center justify-center rounded-full" }, tp = { class: "text-default truncate font-medium" }, np = { class: "body-sm text-subtle shrink-0" }, rp = 4 / 3, ip = 16 / 9, ap = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
8737
8738
|
__name: "MessageAttachmentList",
|
|
8738
8739
|
props: { message: {} },
|
|
8739
8740
|
emits: ["openMedia"],
|
|
@@ -8747,21 +8748,21 @@ var of = { class: "w-full" }, sf = {
|
|
|
8747
8748
|
}
|
|
8748
8749
|
function f(e) {
|
|
8749
8750
|
let t = d(e), n = e.mimeType?.toLowerCase() || "";
|
|
8750
|
-
return n === "application/pdf" || t === "pdf" ?
|
|
8751
|
+
return n === "application/pdf" || t === "pdf" ? zu : [
|
|
8751
8752
|
"doc",
|
|
8752
8753
|
"docx",
|
|
8753
8754
|
"odt",
|
|
8754
8755
|
"rtf"
|
|
8755
|
-
].includes(t) ?
|
|
8756
|
+
].includes(t) ? Tu : [
|
|
8756
8757
|
"xls",
|
|
8757
8758
|
"xlsx",
|
|
8758
8759
|
"csv",
|
|
8759
8760
|
"ods"
|
|
8760
|
-
].includes(t) ?
|
|
8761
|
+
].includes(t) ? Uu : [
|
|
8761
8762
|
"ppt",
|
|
8762
8763
|
"pptx",
|
|
8763
8764
|
"odp"
|
|
8764
|
-
].includes(t) ?
|
|
8765
|
+
].includes(t) ? Au : [
|
|
8765
8766
|
"txt",
|
|
8766
8767
|
"md",
|
|
8767
8768
|
"json",
|
|
@@ -8772,13 +8773,13 @@ var of = { class: "w-full" }, sf = {
|
|
|
8772
8773
|
"ts",
|
|
8773
8774
|
"html",
|
|
8774
8775
|
"css"
|
|
8775
|
-
].includes(t) || n.startsWith("text/") ? n.startsWith("text/") ?
|
|
8776
|
+
].includes(t) || n.startsWith("text/") ? n.startsWith("text/") ? Wu : Su : [
|
|
8776
8777
|
"zip",
|
|
8777
8778
|
"rar",
|
|
8778
8779
|
"7z",
|
|
8779
8780
|
"tar",
|
|
8780
8781
|
"gz"
|
|
8781
|
-
].includes(t) ?
|
|
8782
|
+
].includes(t) ? ju : Tu;
|
|
8782
8783
|
}
|
|
8783
8784
|
function p(e) {
|
|
8784
8785
|
let t = us(e.text).trim();
|
|
@@ -8788,12 +8789,12 @@ var of = { class: "w-full" }, sf = {
|
|
|
8788
8789
|
return n ? t.localeCompare(n, void 0, { sensitivity: "accent" }) !== 0 : !0;
|
|
8789
8790
|
}
|
|
8790
8791
|
function m(e) {
|
|
8791
|
-
return e.width && e.height && e.width > 0 && e.height > 0 ? e.width / e.height : e.kind === "video" ?
|
|
8792
|
+
return e.width && e.height && e.width > 0 && e.height > 0 ? e.width / e.height : e.kind === "video" ? ip : rp;
|
|
8792
8793
|
}
|
|
8793
8794
|
function h(e) {
|
|
8794
8795
|
return { aspectRatio: String(m(e)) };
|
|
8795
8796
|
}
|
|
8796
|
-
return (n, d) => (S(), a("div",
|
|
8797
|
+
return (n, d) => (S(), a("div", Hf, [(S(!0), a(e, null, T(t.message.attachments, (n) => (S(), a(e, { key: `${t.message.id}-${n.name}` }, [n.kind === "image" && n.url ? (S(), r(j(B), {
|
|
8797
8798
|
key: 0,
|
|
8798
8799
|
preview: "",
|
|
8799
8800
|
src: n.url,
|
|
@@ -8813,34 +8814,34 @@ var of = { class: "w-full" }, sf = {
|
|
|
8813
8814
|
key: 1,
|
|
8814
8815
|
class: "attachment-media-bleed media-surface attachment-media-frame group relative rounded-xl",
|
|
8815
8816
|
style: v(h(n))
|
|
8816
|
-
}, [o("video",
|
|
8817
|
+
}, [o("video", Uf, [o("source", {
|
|
8817
8818
|
src: n.url,
|
|
8818
8819
|
type: n.mimeType || void 0
|
|
8819
|
-
}, null, 8,
|
|
8820
|
+
}, null, 8, Wf)])], 4)) : n.kind === "audio" && n.url ? (S(), a("button", {
|
|
8820
8821
|
key: 2,
|
|
8821
8822
|
type: "button",
|
|
8822
8823
|
class: "flex w-full items-center justify-between gap-3 rounded-2xl px-3 py-2 text-left text-sm transition hover:opacity-90",
|
|
8823
8824
|
onClick: (e) => s("openMedia", n)
|
|
8824
|
-
}, [o("span",
|
|
8825
|
+
}, [o("span", Kf, [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, Gf)) : n.url ? (S(), a("a", {
|
|
8825
8826
|
key: 3,
|
|
8826
8827
|
href: n.url,
|
|
8827
8828
|
target: "_blank",
|
|
8828
8829
|
rel: "noreferrer",
|
|
8829
8830
|
class: "flex items-center justify-between gap-3 rounded-2xl px-3 py-2 text-sm no-underline transition hover:opacity-90"
|
|
8830
|
-
}, [o("span",
|
|
8831
|
+
}, [o("span", Jf, [o("span", Yf, [(S(), r(D(f(n)), {
|
|
8831
8832
|
class: "size-5",
|
|
8832
8833
|
"aria-hidden": "true"
|
|
8833
|
-
}))]), o("span",
|
|
8834
|
+
}))]), o("span", Xf, k(n.name), 1)]), o("span", Zf, k(u(n.size)), 1)], 8, qf)) : (S(), a("div", Qf, [o("span", $f, [o("span", ep, [(S(), r(D(f(n)), {
|
|
8834
8835
|
class: "size-5",
|
|
8835
8836
|
"aria-hidden": "true"
|
|
8836
|
-
}))]), o("span",
|
|
8837
|
+
}))]), o("span", tp, k(n.name), 1)]), o("span", np, k(u(n.size) || j(l)("queued")), 1)]))], 64))), 128)), p(t.message) ? (S(), r(Vf, {
|
|
8837
8838
|
key: 0,
|
|
8838
8839
|
text: t.message.text,
|
|
8839
8840
|
"is-own": t.message.isOwn,
|
|
8840
8841
|
"text-class": "whitespace-normal wrap-break-word body-md text-default"
|
|
8841
8842
|
}, null, 8, ["text", "is-own"])) : i("", !0)]));
|
|
8842
8843
|
}
|
|
8843
|
-
}), [["__scopeId", "data-v-648a4774"]]),
|
|
8844
|
+
}), [["__scopeId", "data-v-648a4774"]]), op = { class: "message-status" }, sp = { key: 0 }, cp = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
8844
8845
|
__name: "MessageDeliveryStatus",
|
|
8845
8846
|
props: { message: {} },
|
|
8846
8847
|
setup(e) {
|
|
@@ -8858,37 +8859,37 @@ var of = { class: "w-full" }, sf = {
|
|
|
8858
8859
|
case "read": return {
|
|
8859
8860
|
state: "read",
|
|
8860
8861
|
label: c("read"),
|
|
8861
|
-
icon:
|
|
8862
|
+
icon: Eu
|
|
8862
8863
|
};
|
|
8863
8864
|
case "delivered": return {
|
|
8864
8865
|
state: "delivered",
|
|
8865
8866
|
label: c("delivered"),
|
|
8866
|
-
icon:
|
|
8867
|
+
icon: bu
|
|
8867
8868
|
};
|
|
8868
8869
|
case "queued": return {
|
|
8869
8870
|
state: "queued",
|
|
8870
8871
|
label: c("queued"),
|
|
8871
|
-
icon:
|
|
8872
|
+
icon: Vu
|
|
8872
8873
|
};
|
|
8873
8874
|
case "sending": return {
|
|
8874
8875
|
state: "sending",
|
|
8875
8876
|
label: c("sending"),
|
|
8876
|
-
icon:
|
|
8877
|
+
icon: Vu
|
|
8877
8878
|
};
|
|
8878
8879
|
case "failed": return {
|
|
8879
8880
|
state: "failed",
|
|
8880
8881
|
label: c("failed"),
|
|
8881
|
-
icon:
|
|
8882
|
+
icon: ku
|
|
8882
8883
|
};
|
|
8883
8884
|
default: return {
|
|
8884
8885
|
state: "sent",
|
|
8885
8886
|
label: c("sent"),
|
|
8886
|
-
icon:
|
|
8887
|
+
icon: bu
|
|
8887
8888
|
};
|
|
8888
8889
|
}
|
|
8889
8890
|
});
|
|
8890
|
-
return (t, n) => (S(), a("div",
|
|
8891
|
-
e.message.isEdited && e.message.kind !== "poll" ? (S(), a("span",
|
|
8891
|
+
return (t, n) => (S(), a("div", op, [
|
|
8892
|
+
e.message.isEdited && e.message.kind !== "poll" ? (S(), a("span", sp, k(j(c)("edited")), 1)) : i("", !0),
|
|
8892
8893
|
o("span", null, k(l(e.message.sentAt)), 1),
|
|
8893
8894
|
u.value ? (S(), r(D(u.value.icon), {
|
|
8894
8895
|
key: 1,
|
|
@@ -8903,7 +8904,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
8903
8904
|
])) : i("", !0)
|
|
8904
8905
|
]));
|
|
8905
8906
|
}
|
|
8906
|
-
}), [["__scopeId", "data-v-20388b3b"]]),
|
|
8907
|
+
}), [["__scopeId", "data-v-20388b3b"]]), lp = { class: "mb-1 flex items-start justify-between gap-2" }, up = { class: "body-sm text-subtlest truncate font-medium!" }, dp = /* @__PURE__ */ u({
|
|
8907
8908
|
__name: "MessageItemHeader",
|
|
8908
8909
|
props: { message: {} },
|
|
8909
8910
|
setup(e) {
|
|
@@ -8919,7 +8920,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
8919
8920
|
function l() {
|
|
8920
8921
|
return t.message.senderName?.trim() || (t.message.isOwn ? s("you") : s("system"));
|
|
8921
8922
|
}
|
|
8922
|
-
return (t, n) => (S(), a("div",
|
|
8923
|
+
return (t, n) => (S(), a("div", lp, [o("span", up, k(l()), 1), e.message.scheduled?.scheduleDate ? (S(), r(j(oe), {
|
|
8923
8924
|
key: 0,
|
|
8924
8925
|
text: j(s)("scheduledDateLabel", { date: c(e.message.scheduled.scheduleDate) }),
|
|
8925
8926
|
context: "warn",
|
|
@@ -8928,7 +8929,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
8928
8929
|
class: "shrink-0"
|
|
8929
8930
|
}, null, 8, ["text"])) : i("", !0)]));
|
|
8930
8931
|
}
|
|
8931
|
-
}),
|
|
8932
|
+
}), fp = ["disabled", "onClick"], pp = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
8932
8933
|
__name: "MessageReactionList",
|
|
8933
8934
|
props: {
|
|
8934
8935
|
message: {},
|
|
@@ -8947,9 +8948,9 @@ var of = { class: "w-full" }, sf = {
|
|
|
8947
8948
|
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"]),
|
|
8948
8949
|
disabled: t.disabled,
|
|
8949
8950
|
onClick: (t) => r("toggle", e.emoji)
|
|
8950
|
-
}, k(e.emoji) + " " + k(e.count), 11,
|
|
8951
|
+
}, k(e.emoji) + " " + k(e.count), 11, fp))), 128))], 2)) : i("", !0);
|
|
8951
8952
|
}
|
|
8952
|
-
}), [["__scopeId", "data-v-c17c8bfd"]]),
|
|
8953
|
+
}), [["__scopeId", "data-v-c17c8bfd"]]), mp = { class: "message-reactions flex min-w-0 flex-1 flex-wrap items-center gap-1.5" }, hp = ["aria-label", "title"], gp = { class: "message-reactions__thread-count" }, _p = /* @__PURE__ */ u({
|
|
8953
8954
|
__name: "MessageItemReactions",
|
|
8954
8955
|
props: {
|
|
8955
8956
|
message: {},
|
|
@@ -8959,7 +8960,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
8959
8960
|
emits: ["toggleReaction", "openThread"],
|
|
8960
8961
|
setup(e, { emit: t }) {
|
|
8961
8962
|
let s = e, c = t, { t: u } = q(), d = n(() => u("threadReplies", { count: s.message.replyCount })), f = n(() => s.canOpenThread !== !1 && s.message.replyCount > 0);
|
|
8962
|
-
return (t, n) => (S(), a("div",
|
|
8963
|
+
return (t, n) => (S(), a("div", mp, [l(pp, {
|
|
8963
8964
|
message: e.message,
|
|
8964
8965
|
disabled: e.canReact === !1,
|
|
8965
8966
|
compact: "",
|
|
@@ -8971,15 +8972,15 @@ var of = { class: "w-full" }, sf = {
|
|
|
8971
8972
|
"aria-label": d.value,
|
|
8972
8973
|
title: d.value,
|
|
8973
8974
|
onClick: n[1] ||= L((e) => c("openThread"), ["stop"])
|
|
8974
|
-
}, [(S(), r(D(j(
|
|
8975
|
+
}, [(S(), r(D(j(Bu)), {
|
|
8975
8976
|
class: "size-4",
|
|
8976
8977
|
"aria-hidden": "true"
|
|
8977
|
-
})), o("span",
|
|
8978
|
+
})), o("span", gp, k(e.message.replyCount), 1)], 8, hp)) : i("", !0)]));
|
|
8978
8979
|
}
|
|
8979
|
-
}),
|
|
8980
|
+
}), vp = {
|
|
8980
8981
|
key: 0,
|
|
8981
8982
|
class: ""
|
|
8982
|
-
},
|
|
8983
|
+
}, yp = { class: "heading-sm text-default" }, bp = { class: "body-sm text-subtle" }, xp = { class: "space-y-2 py-3" }, Sp = ["disabled", "onClick"], Cp = { class: "body-md flex items-center justify-between gap-3 px-3 py-1.5" }, wp = { class: "body-sm text-subtle shrink-0" }, Tp = { class: "bg-alpha-default h-1.5" }, Ep = /* @__PURE__ */ u({
|
|
8983
8984
|
__name: "MessagePollContent",
|
|
8984
8985
|
props: {
|
|
8985
8986
|
message: {},
|
|
@@ -8998,36 +8999,36 @@ var of = { class: "w-full" }, sf = {
|
|
|
8998
8999
|
let t = r.currentUserId;
|
|
8999
9000
|
return !!(!t || r.pendingOptionKey === `${r.message.id}:${e}` || r.message.poll.options.some((n) => n.id === e && n.voters.includes(t)));
|
|
9000
9001
|
}
|
|
9001
|
-
return (n, r) => t.message.poll ? (S(), a("div",
|
|
9002
|
+
return (n, r) => t.message.poll ? (S(), a("div", vp, [o("div", null, [o("h4", yp, k(t.message.poll.question), 1), o("p", bp, k(j(c)("voteCount", { count: t.message.poll.totalVotes })), 1)]), o("div", xp, [(S(!0), a(e, null, T(t.message.poll.options, (e) => (S(), a("button", {
|
|
9002
9003
|
key: e.id,
|
|
9003
9004
|
type: "button",
|
|
9004
9005
|
class: "shadow-raised bg-elevation-surface-raised-default block w-full overflow-hidden rounded-lg text-left",
|
|
9005
9006
|
disabled: u(e.id),
|
|
9006
9007
|
onClick: (t) => s("vote", e.id)
|
|
9007
|
-
}, [o("div",
|
|
9008
|
+
}, [o("div", Cp, [o("span", { class: g(["truncate font-medium", l(e.id) ? "text-success" : ""]) }, k(e.text), 3), o("span", wp, k(j(c)("voteCount", { count: e.voteCount })), 1)]), o("div", Tp, [o("div", {
|
|
9008
9009
|
class: g(["h-full transition-all", l(e.id) ? "bg-accent-green-subtle-default" : "bg-accent-teal-subtle-default"]),
|
|
9009
9010
|
style: v({ width: `${t.message.poll.totalVotes ? e.voteCount / t.message.poll.totalVotes * 100 : 0}%` })
|
|
9010
|
-
}, null, 6)])], 8,
|
|
9011
|
+
}, null, 6)])], 8, Sp))), 128))])])) : i("", !0);
|
|
9011
9012
|
}
|
|
9012
|
-
}),
|
|
9013
|
+
}), Dp = { class: "reply-quote__sender" }, Op = { class: "reply-quote__text" }, kp = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
9013
9014
|
__name: "MessageReplyQuote",
|
|
9014
9015
|
props: { message: {} },
|
|
9015
9016
|
emits: ["open"],
|
|
9016
9017
|
setup(e, { emit: t }) {
|
|
9017
|
-
let r = e, i =
|
|
9018
|
+
let r = e, i = ql(), s = n(() => r.message.replyTo ? fs(r.message.replyTo.text, i.mentionNameByUid.value) : ""), c = t;
|
|
9018
9019
|
return (t, n) => (S(), a("button", {
|
|
9019
9020
|
type: "button",
|
|
9020
9021
|
class: g(["reply-quote", e.message.isOwn ? "message-surface-subtle-own" : "message-surface-subtle-other"]),
|
|
9021
9022
|
onClick: n[0] ||= (e) => c("open")
|
|
9022
|
-
}, [o("p",
|
|
9023
|
+
}, [o("p", Dp, k(e.message.replyTo.senderName), 1), o("p", Op, k(s.value), 1)], 2));
|
|
9023
9024
|
}
|
|
9024
|
-
}), [["__scopeId", "data-v-2a027d02"]]),
|
|
9025
|
+
}), [["__scopeId", "data-v-2a027d02"]]), Ap = { class: "space-y-2" }, jp = /* @__PURE__ */ u({
|
|
9025
9026
|
__name: "MessageTextContent",
|
|
9026
9027
|
props: { message: {} },
|
|
9027
9028
|
emits: ["anchorclick"],
|
|
9028
9029
|
setup(e) {
|
|
9029
|
-
let t =
|
|
9030
|
-
return (t, n) => (S(), a("div",
|
|
9030
|
+
let t = ql(), o = n(() => t.mentionNameByUid.value);
|
|
9031
|
+
return (t, n) => (S(), a("div", Ap, [e.message.translatedText ? (S(), r(Vf, {
|
|
9031
9032
|
key: 0,
|
|
9032
9033
|
text: e.message.translatedText,
|
|
9033
9034
|
"mention-name-by-uid": o.value,
|
|
@@ -9041,7 +9042,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9041
9042
|
"mention-name-by-uid",
|
|
9042
9043
|
"is-own",
|
|
9043
9044
|
"class"
|
|
9044
|
-
])) : i("", !0), l(
|
|
9045
|
+
])) : i("", !0), l(Vf, {
|
|
9045
9046
|
text: e.message.text,
|
|
9046
9047
|
"mention-name-by-uid": o.value,
|
|
9047
9048
|
"is-own": e.message.isOwn,
|
|
@@ -9053,11 +9054,11 @@ var of = { class: "w-full" }, sf = {
|
|
|
9053
9054
|
"is-own"
|
|
9054
9055
|
])]));
|
|
9055
9056
|
}
|
|
9056
|
-
}),
|
|
9057
|
+
}), Mp = [
|
|
9057
9058
|
"id",
|
|
9058
9059
|
"data-message-id",
|
|
9059
9060
|
"data-message-kind"
|
|
9060
|
-
],
|
|
9061
|
+
], Np = { class: "message-item__footer body-sm text-subtlest mt-0.5 flex items-end justify-between gap-2" }, Pp = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
9061
9062
|
__name: "MessageItem",
|
|
9062
9063
|
props: {
|
|
9063
9064
|
message: {},
|
|
@@ -9099,7 +9100,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9099
9100
|
"data-message-id": t.message.id,
|
|
9100
9101
|
"data-message-kind": t.message.kind,
|
|
9101
9102
|
class: g(["message-item group", d.value])
|
|
9102
|
-
}, [t.message.kind === "action" ? (S(), r(
|
|
9103
|
+
}, [t.message.kind === "action" ? (S(), r(kf, {
|
|
9103
9104
|
key: 0,
|
|
9104
9105
|
text: t.message.text,
|
|
9105
9106
|
class: g(f.value)
|
|
@@ -9115,16 +9116,16 @@ var of = { class: "w-full" }, sf = {
|
|
|
9115
9116
|
onContextmenu: m,
|
|
9116
9117
|
onClick: h
|
|
9117
9118
|
}, [
|
|
9118
|
-
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(
|
|
9119
|
+
!t.message.isOwn || t.message.scheduled?.scheduleDate ? (S(), r(dp, {
|
|
9119
9120
|
key: 0,
|
|
9120
9121
|
message: t.message
|
|
9121
9122
|
}, null, 8, ["message"])) : i("", !0),
|
|
9122
|
-
t.message.replyTo ? (S(), r(
|
|
9123
|
+
t.message.replyTo ? (S(), r(kp, {
|
|
9123
9124
|
key: 1,
|
|
9124
9125
|
message: t.message,
|
|
9125
9126
|
onOpen: _
|
|
9126
9127
|
}, null, 8, ["message"])) : i("", !0),
|
|
9127
|
-
t.message.kind === "poll" && t.message.poll ? (S(), r(
|
|
9128
|
+
t.message.kind === "poll" && t.message.poll ? (S(), r(Ep, {
|
|
9128
9129
|
key: 2,
|
|
9129
9130
|
message: t.message,
|
|
9130
9131
|
"current-user-id": t.currentUserId,
|
|
@@ -9134,16 +9135,16 @@ var of = { class: "w-full" }, sf = {
|
|
|
9134
9135
|
"message",
|
|
9135
9136
|
"current-user-id",
|
|
9136
9137
|
"pending-option-key"
|
|
9137
|
-
])) : t.message.attachments?.length ? (S(), r(
|
|
9138
|
+
])) : t.message.attachments?.length ? (S(), r(ap, {
|
|
9138
9139
|
key: 3,
|
|
9139
9140
|
message: t.message,
|
|
9140
9141
|
onOpenMedia: s[1] ||= (e) => u("openMedia", e)
|
|
9141
|
-
}, null, 8, ["message"])) : (S(), r(
|
|
9142
|
+
}, null, 8, ["message"])) : (S(), r(jp, {
|
|
9142
9143
|
key: 4,
|
|
9143
9144
|
message: t.message,
|
|
9144
9145
|
onAnchorclick: s[2] ||= (e, t) => n.$emit("anchorclick", e, t)
|
|
9145
9146
|
}, null, 8, ["message"])),
|
|
9146
|
-
o("div",
|
|
9147
|
+
o("div", Np, [l(_p, {
|
|
9147
9148
|
message: t.message,
|
|
9148
9149
|
"can-react": t.canReact,
|
|
9149
9150
|
"can-open-thread": t.canOpenThread,
|
|
@@ -9153,20 +9154,20 @@ var of = { class: "w-full" }, sf = {
|
|
|
9153
9154
|
"message",
|
|
9154
9155
|
"can-react",
|
|
9155
9156
|
"can-open-thread"
|
|
9156
|
-
]), l(
|
|
9157
|
-
], 34)], 64))], 10,
|
|
9157
|
+
]), l(cp, { message: t.message }, null, 8, ["message"])])
|
|
9158
|
+
], 34)], 64))], 10, Mp));
|
|
9158
9159
|
}
|
|
9159
|
-
}), [["__scopeId", "data-v-cb4a4183"]]),
|
|
9160
|
+
}), [["__scopeId", "data-v-cb4a4183"]]), Fp = [
|
|
9160
9161
|
"👍",
|
|
9161
9162
|
"❤️",
|
|
9162
9163
|
"🔥",
|
|
9163
9164
|
"😂",
|
|
9164
9165
|
"🙏",
|
|
9165
9166
|
"🎉"
|
|
9166
|
-
],
|
|
9167
|
+
], Ip = /* @__PURE__ */ "👏.😍.🤯.😮.😢.😡.👀.✅.💯.🙌.🤝.👌.💪.🤔.🫶.😅.🥳.💛.🌟.🚀.💥.🎯.📌.💡.🕊️.☀️.🌈.🍀.🎶.🫡".split("."), Lp = { class: "message-reaction-pill" }, Rp = ["disabled", "onClick"], zp = ["disabled"], Bp = {
|
|
9167
9168
|
key: 0,
|
|
9168
9169
|
class: "message-expanded-reactions"
|
|
9169
|
-
},
|
|
9170
|
+
}, Vp = ["onClick"], Hp = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
9170
9171
|
__name: "MessageItemMenuReactions",
|
|
9171
9172
|
props: {
|
|
9172
9173
|
message: {},
|
|
@@ -9178,35 +9179,35 @@ var of = { class: "w-full" }, sf = {
|
|
|
9178
9179
|
F(() => c.message.id, () => {
|
|
9179
9180
|
u.value = !1;
|
|
9180
9181
|
});
|
|
9181
|
-
let d = n(() =>
|
|
9182
|
+
let d = n(() => Ip);
|
|
9182
9183
|
function f(e) {
|
|
9183
9184
|
return (c.message.reactions ?? []).some((t) => t.emoji === e);
|
|
9184
9185
|
}
|
|
9185
9186
|
function p() {
|
|
9186
9187
|
c.canReact && (u.value = !u.value);
|
|
9187
9188
|
}
|
|
9188
|
-
return (n, s) => (S(), a(e, null, [o("div",
|
|
9189
|
+
return (n, s) => (S(), a(e, null, [o("div", Lp, [(S(!0), a(e, null, T(j(Fp), (e) => (S(), a("button", {
|
|
9189
9190
|
key: `${t.message.id}-${e}-common`,
|
|
9190
9191
|
type: "button",
|
|
9191
9192
|
class: g(["message-reaction-button", f(e) ? "message-reaction-button-active" : "message-reaction-button-idle"]),
|
|
9192
9193
|
disabled: !t.canReact,
|
|
9193
9194
|
onClick: (t) => l("react", e)
|
|
9194
|
-
}, k(e), 11,
|
|
9195
|
+
}, k(e), 11, Rp))), 128)), o("button", {
|
|
9195
9196
|
type: "button",
|
|
9196
9197
|
class: "message-reaction-more",
|
|
9197
9198
|
disabled: !t.canReact,
|
|
9198
9199
|
onClick: p
|
|
9199
|
-
}, [(S(), r(D(u.value ? j(
|
|
9200
|
+
}, [(S(), r(D(u.value ? j(Iu) : j(Fu)), {
|
|
9200
9201
|
class: "size-7",
|
|
9201
9202
|
"aria-hidden": "true"
|
|
9202
|
-
}))], 8,
|
|
9203
|
+
}))], 8, zp)]), u.value && t.canReact ? (S(), a("div", Bp, [(S(!0), a(e, null, T(d.value, (e) => (S(), a("button", {
|
|
9203
9204
|
key: `${t.message.id}-${e}-extended`,
|
|
9204
9205
|
type: "button",
|
|
9205
9206
|
class: g(["message-expanded-reaction-button", f(e) ? "message-reaction-button-active" : "message-reaction-button-idle"]),
|
|
9206
9207
|
onClick: (t) => l("react", e)
|
|
9207
|
-
}, k(e), 11,
|
|
9208
|
+
}, k(e), 11, Vp))), 128))])) : i("", !0)], 64));
|
|
9208
9209
|
}
|
|
9209
|
-
}), [["__scopeId", "data-v-696fe834"]]),
|
|
9210
|
+
}), [["__scopeId", "data-v-696fe834"]]), Up = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
9210
9211
|
__name: "MessageItemMenu",
|
|
9211
9212
|
props: {
|
|
9212
9213
|
message: {},
|
|
@@ -9270,19 +9271,19 @@ var of = { class: "w-full" }, sf = {
|
|
|
9270
9271
|
top: `${d.value.top}px`
|
|
9271
9272
|
}),
|
|
9272
9273
|
"data-testid": "message-action-popover-shell"
|
|
9273
|
-
}, [l(
|
|
9274
|
+
}, [l(Hp, {
|
|
9274
9275
|
message: e.message,
|
|
9275
9276
|
"can-react": e.canReact,
|
|
9276
9277
|
onReact: o[0] ||= (e) => s("react", e)
|
|
9277
9278
|
}, null, 8, ["message", "can-react"]), l(j(V), { model: e.actionItems }, null, 8, ["model"])], 4)) : i("", !0)]));
|
|
9278
9279
|
}
|
|
9279
|
-
}), [["__scopeId", "data-v-54f6bf5c"]]),
|
|
9280
|
+
}), [["__scopeId", "data-v-54f6bf5c"]]), Wp = { 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" }, Gp = {
|
|
9280
9281
|
key: 0,
|
|
9281
9282
|
class: "chat-header__identity flex min-w-0 items-center gap-3"
|
|
9282
|
-
},
|
|
9283
|
+
}, Kp = { class: "chat-header__text min-w-0" }, qp = { class: "chat-header__title heading-md text-default sm:heading-lg truncate" }, Jp = { class: "chat-header__subtitle body-sm text-subtle sm:body-md truncate" }, Yp = { key: 0 }, Xp = { key: 1 }, Zp = { class: "chat-header__actions flex items-center gap-2" }, Qp = {
|
|
9283
9284
|
key: 0,
|
|
9284
9285
|
class: "chat-header__tags hidden flex-wrap gap-2 md:flex"
|
|
9285
|
-
},
|
|
9286
|
+
}, $p = /* @__PURE__ */ u({
|
|
9286
9287
|
__name: "MessageListHeader",
|
|
9287
9288
|
props: {
|
|
9288
9289
|
conversation: {},
|
|
@@ -9290,28 +9291,28 @@ var of = { class: "w-full" }, sf = {
|
|
|
9290
9291
|
},
|
|
9291
9292
|
setup(t) {
|
|
9292
9293
|
let { t: n } = q();
|
|
9293
|
-
return (s, c) => (S(), a("header",
|
|
9294
|
+
return (s, c) => (S(), a("header", Wp, [t.conversation ? (S(), a("div", Gp, [l(j(R), {
|
|
9294
9295
|
image: t.conversation.avatar,
|
|
9295
9296
|
label: t.conversation.avatar ? void 0 : t.conversation.title.slice(0, 1).toUpperCase(),
|
|
9296
9297
|
shape: "circle",
|
|
9297
9298
|
class: "chat-header__avatar shrink-0"
|
|
9298
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9299
|
+
}, null, 8, ["image", "label"]), o("div", Kp, [o("p", qp, k(t.parentMessage ? j(n)("thread") : t.conversation.title), 1), o("p", Jp, [t.parentMessage ? (S(), a("span", Yp, k(t.parentMessage.senderName), 1)) : (S(), a("span", Xp, k(t.conversation.memberCount ? j(n)("members", { count: t.conversation.memberCount }) : j(n)("groupChat")), 1))])])])) : i("", !0), o("div", Zp, [t.conversation?.tags?.length ? (S(), a("div", Qp, [(S(!0), a(e, null, T(t.conversation.tags.slice(0, 3), (e) => (S(), r(j(oe), {
|
|
9299
9300
|
key: e,
|
|
9300
9301
|
text: e,
|
|
9301
9302
|
context: "secondary",
|
|
9302
9303
|
rounded: ""
|
|
9303
9304
|
}, null, 8, ["text"]))), 128))])) : i("", !0)])]));
|
|
9304
9305
|
}
|
|
9305
|
-
}),
|
|
9306
|
+
}), em = {
|
|
9306
9307
|
key: 1,
|
|
9307
9308
|
class: "message-list__empty-state"
|
|
9308
|
-
},
|
|
9309
|
+
}, tm = { class: "space-y-2" }, nm = {
|
|
9309
9310
|
key: 0,
|
|
9310
9311
|
class: "message-list__thread-root"
|
|
9311
|
-
},
|
|
9312
|
+
}, rm = { class: "body-sm text-subtlest truncate font-semibold uppercase" }, im = { class: "body-md text-default mt-1 line-clamp-2" }, am = {
|
|
9312
9313
|
key: 1,
|
|
9313
9314
|
class: "surface-default text-subtle rounded-2xl p-5 text-center"
|
|
9314
|
-
},
|
|
9315
|
+
}, om = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
9315
9316
|
__name: "MessageList",
|
|
9316
9317
|
props: {
|
|
9317
9318
|
target: {},
|
|
@@ -9322,13 +9323,13 @@ var of = { class: "w-full" }, sf = {
|
|
|
9322
9323
|
},
|
|
9323
9324
|
emits: ["anchorclick"],
|
|
9324
9325
|
setup(t) {
|
|
9325
|
-
let s = t, { t: c } = q(), u =
|
|
9326
|
+
let s = t, { t: c } = q(), u = ql(), d = Zl(), f = fu(), p = n(() => s.target === "thread"), m = n(() => p.value ? d.threadMessages.value : s.hideGroupActions ? d.messages.value.filter((e) => e.kind !== "action") : d.messages.value), h = n(() => p.value ? d.loadingThreadMessages.value : d.loadingMessages.value), _ = n(() => p.value ? d.activeThreadParentMessage.value : null), v = n(() => p.value ? !1 : u.canOpenThread.value), y = n(() => s.showHeader ?? !p.value), b = n(() => p.value ? d.hasOlderThreadMessages.value : d.hasOlderMessages.value), x = n(() => p.value ? d.loadingOlderThreadMessages.value : d.loadingOlderMessages.value), C = n(() => p.value ? !0 : d.showDefaultEmptyState.value), D = n(() => {
|
|
9326
9327
|
let e = u.conversation.value;
|
|
9327
9328
|
return e ? _.value ? c("thread") : e.title : "";
|
|
9328
9329
|
}), O = n(() => {
|
|
9329
9330
|
let e = u.conversation.value;
|
|
9330
9331
|
return e ? _.value ? _.value.senderName : e.memberCount ? c("members", { count: e.memberCount }) : c("groupChat") : "";
|
|
9331
|
-
}), A = n(() => u.conversation.value?.memberCount ?? 0), M = w(null), N = w(null), P = n(() => !!_.value), F = n(() => P.value && !y.value), I = n(() =>
|
|
9332
|
+
}), A = n(() => u.conversation.value?.memberCount ?? 0), M = w(null), N = w(null), P = n(() => !!_.value), F = n(() => P.value && !y.value), I = n(() => Hl(u.conversation.value)), te = ee("threadRef"), { handleThreadScroll: L } = nf({
|
|
9332
9333
|
getConversation: () => u.conversation.value,
|
|
9333
9334
|
getParentMessage: () => _.value,
|
|
9334
9335
|
getMessages: () => m.value,
|
|
@@ -9337,7 +9338,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9337
9338
|
canLoadOlder: () => b.value,
|
|
9338
9339
|
onLoadOlder: () => f.emit("list:loadOlder", { target: s.target }),
|
|
9339
9340
|
threadRef: te
|
|
9340
|
-
}), R = ee("actionMenuRef"), { activeActionMessage: z, handleMessageContextMenu: ne, handleMessageTap: B, resetActionMenuState: re, reactToMessage: ie, toggleInlineReaction: V, getActionItems: ae } =
|
|
9341
|
+
}), R = ee("actionMenuRef"), { activeActionMessage: z, handleMessageContextMenu: ne, handleMessageTap: B, resetActionMenuState: re, reactToMessage: ie, toggleInlineReaction: V, getActionItems: ae } = Xd({
|
|
9341
9342
|
canUseMessageActions: () => u.canUseMessageActions.value,
|
|
9342
9343
|
canReact: () => u.canReact.value,
|
|
9343
9344
|
canReply: () => u.canReply.value,
|
|
@@ -9404,7 +9405,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9404
9405
|
title: D.value,
|
|
9405
9406
|
subtitle: O.value,
|
|
9406
9407
|
memberCount: A.value
|
|
9407
|
-
}, () => [l(
|
|
9408
|
+
}, () => [l($p, {
|
|
9408
9409
|
conversation: j(u).conversation.value,
|
|
9409
9410
|
"parent-message": _.value
|
|
9410
9411
|
}, null, 8, ["conversation", "parent-message"])], !0) : i("", !0), j(u).conversation.value ? (S(), a("div", {
|
|
@@ -9415,12 +9416,12 @@ var of = { class: "w-full" }, sf = {
|
|
|
9415
9416
|
ref: te,
|
|
9416
9417
|
class: g(["message-list__scroll min-h-0 flex-1", F.value ? "p-0" : P.value ? "px-5 py-4" : "px-2 pt-2 pb-3"]),
|
|
9417
9418
|
onScroll: n[2] ||= (...e) => j(L) && j(L)(...e)
|
|
9418
|
-
}, [o("div",
|
|
9419
|
-
_.value ? (S(), a("div",
|
|
9420
|
-
(S(!0), a(e, null, T(m.value, (o, c) => (S(), a(e, { key: o.id }, [ue(c) ? (S(), r(
|
|
9419
|
+
}, [o("div", tm, [
|
|
9420
|
+
_.value ? (S(), a("div", nm, [o("p", rm, k(_.value.senderName), 1), o("p", im, k(j(ds)(_.value, j(c)("message"), j(u).mentionNameByUid.value)), 1)])) : i("", !0),
|
|
9421
|
+
(S(!0), a(e, null, T(m.value, (o, c) => (S(), a(e, { key: o.id }, [ue(c) ? (S(), r(Ef, {
|
|
9421
9422
|
key: 0,
|
|
9422
9423
|
date: o.sentAt
|
|
9423
|
-
}, null, 8, ["date"])) : i("", !0), l(
|
|
9424
|
+
}, null, 8, ["date"])) : i("", !0), l(Pp, {
|
|
9424
9425
|
message: o,
|
|
9425
9426
|
"current-user-id": j(u).currentUserId.value,
|
|
9426
9427
|
"can-react": j(u).canReact.value,
|
|
@@ -9452,13 +9453,13 @@ var of = { class: "w-full" }, sf = {
|
|
|
9452
9453
|
"onToggleReaction",
|
|
9453
9454
|
"onOpenThread"
|
|
9454
9455
|
])], 64))), 128)),
|
|
9455
|
-
m.value.length === 0 && C.value && !h.value ? (S(), a("div",
|
|
9456
|
-
])], 34), o("footer", { class: g(["message-list__composer flex shrink-0 flex-col", P.value ? F.value ? "bg-transparent p-0" : "message-list__composer--thread" : "bg-transparent p-0"]) }, [E(t.$slots, "composer", {}, void 0, !0)], 2)], 2)) : (S(), a("div",
|
|
9457
|
-
l(
|
|
9456
|
+
m.value.length === 0 && C.value && !h.value ? (S(), a("div", am, k(j(c)("noMessagesYetInThisGroup")), 1)) : i("", !0)
|
|
9457
|
+
])], 34), o("footer", { class: g(["message-list__composer flex shrink-0 flex-col", P.value ? F.value ? "bg-transparent p-0" : "message-list__composer--thread" : "bg-transparent p-0"]) }, [E(t.$slots, "composer", {}, void 0, !0)], 2)], 2)) : (S(), a("div", em, k(j(c)("selectConversationToStart")), 1))], 2),
|
|
9458
|
+
l(Cf, {
|
|
9458
9459
|
attachment: M.value,
|
|
9459
9460
|
onClose: U
|
|
9460
9461
|
}, null, 8, ["attachment"]),
|
|
9461
|
-
l(
|
|
9462
|
+
l(Up, {
|
|
9462
9463
|
ref_key: "actionMenuRef",
|
|
9463
9464
|
ref: R,
|
|
9464
9465
|
message: j(z),
|
|
@@ -9474,13 +9475,13 @@ var of = { class: "w-full" }, sf = {
|
|
|
9474
9475
|
])
|
|
9475
9476
|
], 64));
|
|
9476
9477
|
}
|
|
9477
|
-
}), [["__scopeId", "data-v-bea26e53"]]),
|
|
9478
|
+
}), [["__scopeId", "data-v-bea26e53"]]), sm = { class: "receipt-section" }, cm = { class: "receipt-section__header" }, lm = { class: "heading-sm text-default" }, um = { class: "body-sm text-subtlest" }, dm = {
|
|
9478
9479
|
key: 0,
|
|
9479
9480
|
class: "space-y-2"
|
|
9480
|
-
},
|
|
9481
|
+
}, fm = { class: "flex min-w-0 items-center gap-3" }, pm = { class: "min-w-0" }, mm = { class: "heading-sm text-default truncate" }, hm = { class: "body-sm text-subtle truncate" }, gm = { class: "body-sm text-subtle shrink-0" }, _m = {
|
|
9481
9482
|
key: 1,
|
|
9482
9483
|
class: "receipt-section__empty"
|
|
9483
|
-
},
|
|
9484
|
+
}, vm = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
9484
9485
|
__name: "ReceiptSection",
|
|
9485
9486
|
props: {
|
|
9486
9487
|
title: {},
|
|
@@ -9489,29 +9490,29 @@ var of = { class: "w-full" }, sf = {
|
|
|
9489
9490
|
formatDateTime: { type: Function }
|
|
9490
9491
|
},
|
|
9491
9492
|
setup(t) {
|
|
9492
|
-
return (n, r) => (S(), a("section",
|
|
9493
|
+
return (n, r) => (S(), a("section", sm, [o("div", cm, [o("p", lm, k(t.title), 1), o("span", um, k(t.receipts.length), 1)]), t.receipts.length ? (S(), a("div", dm, [(S(!0), a(e, null, T(t.receipts, (e) => (S(), a("div", {
|
|
9493
9494
|
key: `${e.kind}-${e.user.uid}`,
|
|
9494
9495
|
class: "receipt-section__row"
|
|
9495
|
-
}, [o("div",
|
|
9496
|
+
}, [o("div", fm, [l(j(R), {
|
|
9496
9497
|
image: e.user.avatar,
|
|
9497
9498
|
label: e.user.avatar ? void 0 : e.user.name.slice(0, 1).toUpperCase(),
|
|
9498
9499
|
shape: "circle",
|
|
9499
9500
|
class: "shrink-0"
|
|
9500
|
-
}, null, 8, ["image", "label"]), o("div",
|
|
9501
|
+
}, null, 8, ["image", "label"]), o("div", pm, [o("p", mm, k(e.user.name), 1), o("p", hm, k(e.user.uid), 1)])]), o("p", gm, k(t.formatDateTime(e.timestamp)), 1)]))), 128))])) : (S(), a("div", _m, k(t.emptyLabel), 1))]));
|
|
9501
9502
|
}
|
|
9502
|
-
}), [["__scopeId", "data-v-2b2f0a3e"]]),
|
|
9503
|
+
}), [["__scopeId", "data-v-2b2f0a3e"]]), ym = {
|
|
9503
9504
|
key: 0,
|
|
9504
9505
|
class: "message-info-dialog-content space-y-5 overflow-y-auto"
|
|
9505
|
-
},
|
|
9506
|
+
}, bm = { class: "message-info-summary px-4 py-4 sm:px-6 sm:py-5" }, xm = { class: "body-md text-default wrap-break-word whitespace-pre-wrap" }, Sm = { class: "mt-4 grid gap-3 sm:grid-cols-3" }, Cm = { class: "message-info-metric px-3 py-3" }, wm = { class: "body-sm text-subtlest font-semibold uppercase" }, Tm = { class: "heading-sm text-default mt-1" }, Em = { class: "message-info-metric px-3 py-3" }, Dm = { class: "flex items-center gap-2" }, Om = { class: "body-sm text-subtlest font-semibold uppercase" }, km = { class: "heading-sm text-default mt-1" }, Am = { class: "message-info-metric px-3 py-3" }, jm = { class: "flex items-center gap-2" }, Mm = { class: "body-sm text-subtlest font-semibold uppercase" }, Nm = { class: "heading-sm text-default mt-1" }, Pm = {
|
|
9506
9507
|
key: 0,
|
|
9507
9508
|
class: "flex items-center justify-center px-4 py-8 sm:px-6"
|
|
9508
|
-
},
|
|
9509
|
+
}, Fm = {
|
|
9509
9510
|
key: 1,
|
|
9510
9511
|
class: "message-info-error body-md mx-4 rounded-xl px-4 py-3 sm:mx-6"
|
|
9511
|
-
},
|
|
9512
|
+
}, Im = {
|
|
9512
9513
|
key: 2,
|
|
9513
9514
|
class: "space-y-4 pb-4 sm:pb-5"
|
|
9514
|
-
},
|
|
9515
|
+
}, Lm = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
9515
9516
|
__name: "MessageInfoDialog",
|
|
9516
9517
|
props: {
|
|
9517
9518
|
open: { type: Boolean },
|
|
@@ -9522,7 +9523,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9522
9523
|
},
|
|
9523
9524
|
emits: ["close"],
|
|
9524
9525
|
setup(e, { emit: t }) {
|
|
9525
|
-
let s = e, c = t, { locale: u, t: d } = q(), f =
|
|
9526
|
+
let s = e, c = t, { locale: u, t: d } = q(), f = ql(), p = n(() => s.receipts.filter((e) => e.kind === "delivered")), m = n(() => s.receipts.filter((e) => e.kind === "read")), h = n(() => s.receipts.filter((e) => e.kind === "delivered" || e.kind === "read"));
|
|
9526
9527
|
function g(e) {
|
|
9527
9528
|
return e ? new Intl.DateTimeFormat(u.value, {
|
|
9528
9529
|
dateStyle: "medium",
|
|
@@ -9533,34 +9534,34 @@ var of = { class: "w-full" }, sf = {
|
|
|
9533
9534
|
function _(e, t) {
|
|
9534
9535
|
return e ? g(e) : d(t > 0 ? "someRecipients" : "notYet");
|
|
9535
9536
|
}
|
|
9536
|
-
return (t, n) => (S(), r(
|
|
9537
|
+
return (t, n) => (S(), r(lf, {
|
|
9537
9538
|
open: e.open,
|
|
9538
9539
|
title: j(d)("messageInfo"),
|
|
9539
9540
|
subtitle: j(d)("deliveryAndReadDetails"),
|
|
9540
9541
|
"close-label": j(d)("close"),
|
|
9541
9542
|
onClose: n[0] ||= (e) => c("close")
|
|
9542
9543
|
}, {
|
|
9543
|
-
default: I(() => [e.message ? (S(), a("div",
|
|
9544
|
-
o("div",
|
|
9545
|
-
o("div",
|
|
9544
|
+
default: I(() => [e.message ? (S(), a("div", ym, [o("div", bm, [o("p", xm, k(j(ds)(e.message, j(d)("message"), j(f).mentionNameByUid.value)), 1), o("div", Sm, [
|
|
9545
|
+
o("div", Cm, [o("p", wm, k(j(d)("sent")), 1), o("p", Tm, k(g(e.message.sentAt)), 1)]),
|
|
9546
|
+
o("div", Em, [o("div", Dm, [o("p", Om, k(j(d)("deliveredToAll")), 1), h.value.length ? (S(), r(j(oe), {
|
|
9546
9547
|
key: 0,
|
|
9547
9548
|
text: String(h.value.length),
|
|
9548
9549
|
context: "secondary",
|
|
9549
9550
|
rounded: ""
|
|
9550
|
-
}, null, 8, ["text"])) : i("", !0)]), o("p",
|
|
9551
|
-
o("div",
|
|
9551
|
+
}, null, 8, ["text"])) : i("", !0)]), o("p", km, k(_(e.message.receipts.deliveredAt, h.value.length)), 1)]),
|
|
9552
|
+
o("div", Am, [o("div", jm, [o("p", Mm, k(j(d)("readByAll")), 1), m.value.length ? (S(), r(j(oe), {
|
|
9552
9553
|
key: 0,
|
|
9553
9554
|
text: String(m.value.length),
|
|
9554
9555
|
context: "success",
|
|
9555
9556
|
rounded: ""
|
|
9556
|
-
}, null, 8, ["text"])) : i("", !0)]), o("p",
|
|
9557
|
-
])]), e.loading ? (S(), a("div",
|
|
9557
|
+
}, null, 8, ["text"])) : i("", !0)]), o("p", Nm, k(_(e.message.receipts.readAt, m.value.length)), 1)])
|
|
9558
|
+
])]), e.loading ? (S(), a("div", Pm, [l(j(H), {
|
|
9558
9559
|
style: {
|
|
9559
9560
|
width: "2.5rem",
|
|
9560
9561
|
height: "2.5rem"
|
|
9561
9562
|
},
|
|
9562
9563
|
"stroke-width": "5"
|
|
9563
|
-
})])) : e.error ? (S(), a("div",
|
|
9564
|
+
})])) : e.error ? (S(), a("div", Fm, k(e.error), 1)) : (S(), a("div", Im, [l(vm, {
|
|
9564
9565
|
title: j(d)("readBy"),
|
|
9565
9566
|
receipts: m.value,
|
|
9566
9567
|
"empty-label": j(d)("nobodyHasReadThisMessageYet"),
|
|
@@ -9569,7 +9570,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9569
9570
|
"title",
|
|
9570
9571
|
"receipts",
|
|
9571
9572
|
"empty-label"
|
|
9572
|
-
]), l(
|
|
9573
|
+
]), l(vm, {
|
|
9573
9574
|
title: j(d)("deliveredNotYetRead"),
|
|
9574
9575
|
receipts: p.value,
|
|
9575
9576
|
"empty-label": j(d)("noRecipientsDeliveredStageYet"),
|
|
@@ -9587,34 +9588,34 @@ var of = { class: "w-full" }, sf = {
|
|
|
9587
9588
|
"close-label"
|
|
9588
9589
|
]));
|
|
9589
9590
|
}
|
|
9590
|
-
}), [["__scopeId", "data-v-30ce65f1"]]),
|
|
9591
|
+
}), [["__scopeId", "data-v-30ce65f1"]]), Rm = { class: "min-h-0 flex-1 overflow-y-auto py-4 sm:py-5" }, zm = {
|
|
9591
9592
|
key: 0,
|
|
9592
9593
|
class: "flex h-full min-h-64 items-center justify-center"
|
|
9593
|
-
},
|
|
9594
|
+
}, Bm = {
|
|
9594
9595
|
key: 1,
|
|
9595
9596
|
class: "bg-elevation-surface-sunken-default body-md flex h-full min-h-64 items-center justify-center rounded-xl px-6 text-center"
|
|
9596
|
-
},
|
|
9597
|
+
}, Vm = {
|
|
9597
9598
|
key: 2,
|
|
9598
9599
|
class: "space-y-3"
|
|
9599
|
-
},
|
|
9600
|
+
}, Hm = { class: "flex flex-wrap items-start justify-between gap-3" }, Um = { class: "w-full space-y-2" }, Wm = { class: "center between gap-2" }, Gm = { class: "" }, Km = { class: "space-y-1" }, qm = { class: "heading-sm text-default" }, Jm = {
|
|
9600
9601
|
key: 0,
|
|
9601
9602
|
class: "body-md text-default"
|
|
9602
|
-
},
|
|
9603
|
+
}, Ym = {
|
|
9603
9604
|
key: 1,
|
|
9604
9605
|
class: "body-md text-default wrap-break-word whitespace-pre-wrap"
|
|
9605
|
-
},
|
|
9606
|
+
}, Xm = {
|
|
9606
9607
|
key: 0,
|
|
9607
9608
|
class: "max-w-sm"
|
|
9608
|
-
},
|
|
9609
|
+
}, Zm = { class: "flex flex-wrap items-center gap-1" }, Qm = {
|
|
9609
9610
|
key: 0,
|
|
9610
9611
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3 sm:flex-row sm:items-center"
|
|
9611
|
-
},
|
|
9612
|
+
}, $m = { class: "grid w-full grid-cols-1 gap-2 sm:grid-cols-[1fr_8rem]" }, eh = { class: "flex items-center gap-2" }, th = {
|
|
9612
9613
|
key: 1,
|
|
9613
9614
|
class: "bg-elevation-surface-sunken-default mt-4 flex flex-col gap-3 rounded-xl p-3"
|
|
9614
|
-
},
|
|
9615
|
+
}, nh = {
|
|
9615
9616
|
key: 0,
|
|
9616
9617
|
class: "relative max-w-sm"
|
|
9617
|
-
},
|
|
9618
|
+
}, rh = { class: "absolute top-2 right-2" }, ih = ["placeholder"], ah = { class: "flex items-center justify-end gap-2" }, oh = /* @__PURE__ */ u({
|
|
9618
9619
|
__name: "ScheduledMessagesDialog",
|
|
9619
9620
|
props: {
|
|
9620
9621
|
open: { type: Boolean },
|
|
@@ -9696,24 +9697,24 @@ var of = { class: "w-full" }, sf = {
|
|
|
9696
9697
|
function B(e) {
|
|
9697
9698
|
d.value === e.id && M(), u("remove", e);
|
|
9698
9699
|
}
|
|
9699
|
-
return (n, s) => (S(), r(
|
|
9700
|
+
return (n, s) => (S(), r(lf, {
|
|
9700
9701
|
open: t.open,
|
|
9701
9702
|
title: j(v)("scheduledMessages"),
|
|
9702
9703
|
subtitle: t.conversationTitle ? j(v)("queuedForConversation", { title: t.conversationTitle }) : j(v)("queuedOutgoingMessagesForThisChat"),
|
|
9703
9704
|
"close-label": j(v)("close"),
|
|
9704
9705
|
onClose: s[3] ||= (e) => u("close")
|
|
9705
9706
|
}, {
|
|
9706
|
-
default: I(() => [o("div",
|
|
9707
|
+
default: I(() => [o("div", Rm, [t.loading ? (S(), a("div", zm, [l(j(H), {
|
|
9707
9708
|
style: {
|
|
9708
9709
|
width: "2.75rem",
|
|
9709
9710
|
height: "2.75rem"
|
|
9710
9711
|
},
|
|
9711
9712
|
"stroke-width": "6"
|
|
9712
|
-
})])) : y.value.length === 0 ? (S(), a("div",
|
|
9713
|
+
})])) : y.value.length === 0 ? (S(), a("div", Bm, k(j(v)("noScheduledMessagesForConversation")), 1)) : (S(), a("div", Vm, [(S(!0), a(e, null, T(y.value, (e) => (S(), a("article", {
|
|
9713
9714
|
key: e.id,
|
|
9714
9715
|
class: "border-default rounded-lg border px-4 py-3"
|
|
9715
|
-
}, [o("div",
|
|
9716
|
-
o("div",
|
|
9716
|
+
}, [o("div", Hm, [o("div", Um, [
|
|
9717
|
+
o("div", Wm, [o("div", Gm, [e.kind === "poll" ? (S(), r(j(oe), {
|
|
9717
9718
|
key: 0,
|
|
9718
9719
|
text: j(v)("poll"),
|
|
9719
9720
|
context: "info",
|
|
@@ -9729,17 +9730,17 @@ var of = { class: "w-full" }, sf = {
|
|
|
9729
9730
|
context: "info",
|
|
9730
9731
|
rounded: ""
|
|
9731
9732
|
}, null, 8, ["text"]))]), l(j(z), {
|
|
9732
|
-
icon: j(
|
|
9733
|
+
icon: j(wu),
|
|
9733
9734
|
text: "",
|
|
9734
9735
|
size: "small",
|
|
9735
9736
|
onClick: (t) => B(e)
|
|
9736
9737
|
}, null, 8, ["icon", "onClick"])]),
|
|
9737
|
-
o("div",
|
|
9738
|
-
L(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div",
|
|
9739
|
-
]), o("div",
|
|
9738
|
+
o("div", Km, [o("p", qm, k(x(e.scheduled?.scheduleDate)), 1), e.kind === "poll" && e.poll ? (S(), a("p", Jm, k(e.poll.question), 1)) : (S(), a("p", Ym, k(j(ds)(e, j(v)("attachment"))), 1))]),
|
|
9739
|
+
L(e) && !(d.value === e.id && f.value === "text") ? (S(), a("div", Xm, [l(ap, { message: ee(e) }, null, 8, ["message"])])) : i("", !0)
|
|
9740
|
+
]), o("div", Zm, [e.kind === "poll" ? i("", !0) : (S(), r(j(z), {
|
|
9740
9741
|
key: 0,
|
|
9741
9742
|
label: j(v)("edit"),
|
|
9742
|
-
icon: j(
|
|
9743
|
+
icon: j(Du),
|
|
9743
9744
|
severity: "secondary",
|
|
9744
9745
|
size: "small",
|
|
9745
9746
|
onClick: (t) => A(e)
|
|
@@ -9750,7 +9751,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9750
9751
|
])), e.scheduled?.messageId && e.scheduled?.muid && e.scheduled?.originalChatUid ? (S(), r(j(z), {
|
|
9751
9752
|
key: 1,
|
|
9752
9753
|
label: j(v)("reschedule"),
|
|
9753
|
-
icon: j(
|
|
9754
|
+
icon: j(yu),
|
|
9754
9755
|
severity: "secondary",
|
|
9755
9756
|
size: "small",
|
|
9756
9757
|
onClick: (t) => O(e)
|
|
@@ -9758,7 +9759,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9758
9759
|
"label",
|
|
9759
9760
|
"icon",
|
|
9760
9761
|
"onClick"
|
|
9761
|
-
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div",
|
|
9762
|
+
])) : i("", !0)])]), d.value === e.id && f.value === "reschedule" ? (S(), a("div", Qm, [o("div", $m, [te(o("input", {
|
|
9762
9763
|
"onUpdate:modelValue": s[0] ||= (e) => m.value = e,
|
|
9763
9764
|
type: "date",
|
|
9764
9765
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
@@ -9770,7 +9771,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
9770
9771
|
pattern: "^([01]\\d|2[0-3]):([0-5]\\d)$",
|
|
9771
9772
|
"aria-label": "Time (24-hour)",
|
|
9772
9773
|
class: "surface-input body-md w-full rounded-xl p-2 ring-0 outline-none"
|
|
9773
|
-
}, null, 512), [[N, h.value]])]), o("div",
|
|
9774
|
+
}, null, 512), [[N, h.value]])]), o("div", eh, [l(j(z), {
|
|
9774
9775
|
label: j(v)("save"),
|
|
9775
9776
|
size: "small",
|
|
9776
9777
|
disabled: !m.value || !b.value,
|
|
@@ -9784,9 +9785,9 @@ var of = { class: "w-full" }, sf = {
|
|
|
9784
9785
|
size: "small",
|
|
9785
9786
|
text: "",
|
|
9786
9787
|
onClick: M
|
|
9787
|
-
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div",
|
|
9788
|
-
L(e) ? (S(), a("div",
|
|
9789
|
-
icon: j(
|
|
9788
|
+
}, null, 8, ["label"])])])) : d.value === e.id && f.value === "text" ? (S(), a("div", th, [
|
|
9789
|
+
L(e) ? (S(), a("div", nh, [l(ap, { message: ee(e) }, null, 8, ["message"]), o("div", rh, [l(j(z), {
|
|
9790
|
+
icon: j(xu),
|
|
9790
9791
|
"aria-label": j(v)("remove"),
|
|
9791
9792
|
text: "",
|
|
9792
9793
|
rounded: "",
|
|
@@ -9799,8 +9800,8 @@ var of = { class: "w-full" }, sf = {
|
|
|
9799
9800
|
rows: "3",
|
|
9800
9801
|
class: "surface-input body-md w-full rounded-xl px-3 py-2 ring-0 outline-none",
|
|
9801
9802
|
placeholder: j(v)("writeMessage")
|
|
9802
|
-
}, null, 8,
|
|
9803
|
-
o("div",
|
|
9803
|
+
}, null, 8, ih), [[N, g.value]]),
|
|
9804
|
+
o("div", ah, [l(j(z), {
|
|
9804
9805
|
label: j(v)("cancel"),
|
|
9805
9806
|
size: "small",
|
|
9806
9807
|
text: "",
|
|
@@ -9824,10 +9825,10 @@ var of = { class: "w-full" }, sf = {
|
|
|
9824
9825
|
"close-label"
|
|
9825
9826
|
]));
|
|
9826
9827
|
}
|
|
9827
|
-
}),
|
|
9828
|
+
}), sh = {
|
|
9828
9829
|
key: 0,
|
|
9829
9830
|
class: "chat-status-overlay"
|
|
9830
|
-
},
|
|
9831
|
+
}, ch = { class: "chat-status-overlay__card" }, lh = { key: 0 }, uh = { key: 1 }, dh = { key: 2 }, fh = { key: 3 }, ph = /* @__PURE__ */ cd(/* @__PURE__ */ u({
|
|
9831
9832
|
__name: "ChatStatusOverlay",
|
|
9832
9833
|
props: {
|
|
9833
9834
|
visible: { type: Boolean },
|
|
@@ -9840,9 +9841,9 @@ var of = { class: "w-full" }, sf = {
|
|
|
9840
9841
|
messages: {}
|
|
9841
9842
|
},
|
|
9842
9843
|
setup(e) {
|
|
9843
|
-
return (t, n) => e.visible ? (S(), a("div",
|
|
9844
|
+
return (t, n) => e.visible ? (S(), a("div", sh, [o("div", ch, [e.offlineMode ? (S(), a("span", lh, k(e.messages.waitingForNetwork), 1)) : e.connected ? e.loading ? (S(), a("span", dh, k(e.messages.loading), 1)) : e.notFound ? (S(), a("span", fh, k(e.messages.notFound), 1)) : e.isEmpty && e.showEmptySlot ? E(t.$slots, "no-messages", { key: 4 }, () => [o("span", null, k(e.messages.noMessages), 1)], !0) : i("", !0) : (S(), a("span", uh, k(e.messages.connecting), 1))])])) : i("", !0);
|
|
9844
9845
|
}
|
|
9845
|
-
}), [["__scopeId", "data-v-20316f96"]]),
|
|
9846
|
+
}), [["__scopeId", "data-v-20316f96"]]), mh = /* @__PURE__ */ u({
|
|
9846
9847
|
__name: "BccChat",
|
|
9847
9848
|
props: {
|
|
9848
9849
|
client: { default: null },
|
|
@@ -9906,13 +9907,13 @@ var of = { class: "w-full" }, sf = {
|
|
|
9906
9907
|
if (p.conversation !== void 0) return p.conversation;
|
|
9907
9908
|
let e = T.value;
|
|
9908
9909
|
return e ? p.chatUid ? e.conversations.value.find((e) => e.targetId === p.chatUid || e.id === p.chatUid) ?? null : e.activeConversation.value : null;
|
|
9909
|
-
}), { groupMembers: A, fetchGroupMembers: M } =
|
|
9910
|
+
}), { groupMembers: A, fetchGroupMembers: M } = mu({
|
|
9910
9911
|
getConversationTargetId: () => O.value?.targetId,
|
|
9911
|
-
isChannel: () =>
|
|
9912
|
+
isChannel: () => Pl(O.value),
|
|
9912
9913
|
onMembersChanged: (e) => {
|
|
9913
9914
|
m("chatMembersFetched", e), T.value?.rememberMentionDisplayNames(e);
|
|
9914
9915
|
}
|
|
9915
|
-
}), N =
|
|
9916
|
+
}), N = Wl({
|
|
9916
9917
|
chatClient: T,
|
|
9917
9918
|
selectedConversation: O,
|
|
9918
9919
|
getPropIsReadOnly: () => p.isReadOnly,
|
|
@@ -9924,8 +9925,8 @@ var of = { class: "w-full" }, sf = {
|
|
|
9924
9925
|
currentUserId: T.value?.currentUser.value?.uid
|
|
9925
9926
|
})
|
|
9926
9927
|
});
|
|
9927
|
-
|
|
9928
|
-
let P =
|
|
9928
|
+
Kl(N);
|
|
9929
|
+
let P = Jl({
|
|
9929
9930
|
chatClient: T,
|
|
9930
9931
|
selectedConversation: O,
|
|
9931
9932
|
usesPublicContract: D,
|
|
@@ -9937,15 +9938,15 @@ var of = { class: "w-full" }, sf = {
|
|
|
9937
9938
|
getPropShowDefaultEmptyState: () => p.showDefaultEmptyState,
|
|
9938
9939
|
getHideDeletedMessages: () => p.hideDeletedMessages
|
|
9939
9940
|
});
|
|
9940
|
-
|
|
9941
|
-
let te = n(() => P.messages.value.length > 0), L = n(() => p.showHeader ?? p.showMessageHeader), R =
|
|
9941
|
+
Xl(P);
|
|
9942
|
+
let te = n(() => P.messages.value.length > 0), L = n(() => p.showHeader ?? p.showMessageHeader), R = iu({
|
|
9942
9943
|
chatClient: T,
|
|
9943
9944
|
selectedConversation: O,
|
|
9944
9945
|
getInitialScheduledMessagesOpen: () => !!p.initialScheduledMessagesOpen,
|
|
9945
9946
|
fetchErrorFallback: h("loadMessageReceiptsError")
|
|
9946
9947
|
});
|
|
9947
|
-
|
|
9948
|
-
let z = ee("mainComposerRef"), ne = ee("threadComposerRef"), B =
|
|
9948
|
+
ou(R);
|
|
9949
|
+
let z = ee("mainComposerRef"), ne = ee("threadComposerRef"), B = $l({
|
|
9949
9950
|
chatClient: T,
|
|
9950
9951
|
sendOptions: N.sendOptions,
|
|
9951
9952
|
mentionNameByUid: N.mentionNameByUid,
|
|
@@ -9953,15 +9954,15 @@ var of = { class: "w-full" }, sf = {
|
|
|
9953
9954
|
mainComposerRef: z,
|
|
9954
9955
|
threadComposerRef: ne
|
|
9955
9956
|
});
|
|
9956
|
-
|
|
9957
|
-
let re =
|
|
9958
|
-
|
|
9957
|
+
tu(B);
|
|
9958
|
+
let re = uu();
|
|
9959
|
+
du(re), cu({
|
|
9959
9960
|
conversation: N,
|
|
9960
9961
|
composer: B,
|
|
9961
9962
|
dialogs: R,
|
|
9962
9963
|
bus: re
|
|
9963
9964
|
});
|
|
9964
|
-
let { scrollToRequestedMessage: ie } =
|
|
9965
|
+
let { scrollToRequestedMessage: ie } = hu({
|
|
9965
9966
|
chatRootRef: v,
|
|
9966
9967
|
getClient: () => T.value
|
|
9967
9968
|
});
|
|
@@ -9972,22 +9973,22 @@ var of = { class: "w-full" }, sf = {
|
|
|
9972
9973
|
}, { immediate: !0 }), F(() => O.value?.id, () => {
|
|
9973
9974
|
B.resetMainComposer(), B.resetThreadComposer(), R.showScheduledMessages.value = !1, R.closeMessageInfo();
|
|
9974
9975
|
}), F(() => p.chatMessageGetter, (e) => {
|
|
9975
|
-
|
|
9976
|
+
Ml.setGetChatMessagesCallback(e);
|
|
9976
9977
|
}, { immediate: !0 }), F(() => p.language, (e) => {
|
|
9977
9978
|
e && Re(e);
|
|
9978
9979
|
}, { immediate: !0 }), F(P.isChatEmpty, (e) => {
|
|
9979
9980
|
e && m("chatEmpty");
|
|
9980
9981
|
}), F([
|
|
9981
9982
|
() => p.chatUid,
|
|
9982
|
-
() => p.client ? p.client.initialized.value :
|
|
9983
|
-
() => p.client ? p.client.loggedIn.value :
|
|
9983
|
+
() => p.client ? p.client.initialized.value : Ml.initialized.value,
|
|
9984
|
+
() => p.client ? p.client.loggedIn.value : Ml.loggedIn.value,
|
|
9984
9985
|
() => T.value?.conversations.value.length ?? 0
|
|
9985
9986
|
], async ([e, t, n]) => {
|
|
9986
9987
|
!D.value || !e || !t || !n || !T.value || await V();
|
|
9987
9988
|
}, { immediate: !0 }), F([
|
|
9988
9989
|
() => P.messages.value.length,
|
|
9989
9990
|
() => P.threadMessages.value.length,
|
|
9990
|
-
() =>
|
|
9991
|
+
() => Ml.scrollToMessageId.value
|
|
9991
9992
|
], async () => {
|
|
9992
9993
|
await ie();
|
|
9993
9994
|
});
|
|
@@ -10038,7 +10039,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
10038
10039
|
_: 1
|
|
10039
10040
|
})) : i("", !0),
|
|
10040
10041
|
T.value ? (S(), a(e, { key: 1 }, [
|
|
10041
|
-
l(
|
|
10042
|
+
l(om, {
|
|
10042
10043
|
target: "main",
|
|
10043
10044
|
class: g(["h-full", t.containerClass]),
|
|
10044
10045
|
"hide-group-actions": t.hideGroupActions,
|
|
@@ -10047,7 +10048,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
10047
10048
|
"action-message-row-class": t.actionMessageRowClass,
|
|
10048
10049
|
onAnchorclick: H
|
|
10049
10050
|
}, s({
|
|
10050
|
-
composer: I(() => [l(
|
|
10051
|
+
composer: I(() => [l(Jd, {
|
|
10051
10052
|
ref_key: "mainComposerRef",
|
|
10052
10053
|
ref: z,
|
|
10053
10054
|
target: "main"
|
|
@@ -10064,7 +10065,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
10064
10065
|
"action-message-class",
|
|
10065
10066
|
"action-message-row-class"
|
|
10066
10067
|
]),
|
|
10067
|
-
l(
|
|
10068
|
+
l(lf, {
|
|
10068
10069
|
open: !!j(P).activeThreadParentMessage.value,
|
|
10069
10070
|
title: j(h)("threadWithCount", { count: j(P).activeThreadParentMessage.value?.replyCount ?? 0 }),
|
|
10070
10071
|
subtitle: O.value?.title ?? "",
|
|
@@ -10072,13 +10073,13 @@ var of = { class: "w-full" }, sf = {
|
|
|
10072
10073
|
"close-aria-label": j(h)("closeThread"),
|
|
10073
10074
|
onClose: o[0] ||= (e) => j(re).emit("ui:closeThread")
|
|
10074
10075
|
}, {
|
|
10075
|
-
default: I(() => [l(
|
|
10076
|
+
default: I(() => [l(om, {
|
|
10076
10077
|
target: "thread",
|
|
10077
10078
|
class: "min-h-0 flex-1",
|
|
10078
10079
|
"action-message-class": t.actionMessageClass,
|
|
10079
10080
|
"action-message-row-class": t.actionMessageRowClass
|
|
10080
10081
|
}, {
|
|
10081
|
-
composer: I(() => [l(
|
|
10082
|
+
composer: I(() => [l(Jd, {
|
|
10082
10083
|
ref_key: "threadComposerRef",
|
|
10083
10084
|
ref: ne,
|
|
10084
10085
|
target: "thread"
|
|
@@ -10093,7 +10094,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
10093
10094
|
"close-label",
|
|
10094
10095
|
"close-aria-label"
|
|
10095
10096
|
]),
|
|
10096
|
-
l(
|
|
10097
|
+
l(oh, {
|
|
10097
10098
|
open: j(R).showScheduledMessages.value,
|
|
10098
10099
|
loading: j(R).loadingScheduledMessages.value,
|
|
10099
10100
|
messages: j(R).scheduledMessages.value,
|
|
@@ -10108,7 +10109,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
10108
10109
|
"messages",
|
|
10109
10110
|
"conversation-title"
|
|
10110
10111
|
]),
|
|
10111
|
-
l(
|
|
10112
|
+
l(Lm, {
|
|
10112
10113
|
open: !!j(R).infoMessage.value,
|
|
10113
10114
|
message: j(R).infoMessage.value,
|
|
10114
10115
|
receipts: j(R).infoMessageReceipts.value,
|
|
@@ -10123,7 +10124,7 @@ var of = { class: "w-full" }, sf = {
|
|
|
10123
10124
|
"error"
|
|
10124
10125
|
])
|
|
10125
10126
|
], 64)) : i("", !0),
|
|
10126
|
-
l(
|
|
10127
|
+
l(ph, {
|
|
10127
10128
|
visible: D.value && (T.value?.offlineMode.value || !T.value?.connected.value || C.value && !te.value || x.value || t.displayNoMessagesText && j(P).isChatEmpty.value),
|
|
10128
10129
|
"offline-mode": !!(T.value?.offlineMode.value && !O.value),
|
|
10129
10130
|
connected: !!(T.value?.connected.value || O.value),
|
|
@@ -10155,6 +10156,6 @@ var of = { class: "w-full" }, sf = {
|
|
|
10155
10156
|
}
|
|
10156
10157
|
});
|
|
10157
10158
|
//#endregion
|
|
10158
|
-
export {
|
|
10159
|
+
export { mh as BccChat, mh as BccChatMessageList, Yc as LogSeverity, Ml as chat, Ml as default, ks as createChatClient };
|
|
10159
10160
|
|
|
10160
10161
|
//# sourceMappingURL=vue-bcc-chat-ui.js.map
|