@arbidocs/react 0.5.1 → 0.5.2
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/README.md +4 -3
- package/dist/artifacts/index.cjs +3 -3
- package/dist/artifacts/index.js +2 -2
- package/dist/calls/livekit/index.cjs +42 -42
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-EOFEAME5.js → chunk-5DI27KJG.js} +3 -3
- package/dist/{chunk-EOFEAME5.js.map → chunk-5DI27KJG.js.map} +1 -1
- package/dist/{chunk-SNUNLXFE.js → chunk-BF5ASP3L.js} +4 -4
- package/dist/{chunk-SNUNLXFE.js.map → chunk-BF5ASP3L.js.map} +1 -1
- package/dist/{chunk-GGLRX4X6.cjs → chunk-KYEWJVD2.cjs} +3 -3
- package/dist/{chunk-GGLRX4X6.cjs.map → chunk-KYEWJVD2.cjs.map} +1 -1
- package/dist/{chunk-ZGW7PN4G.cjs → chunk-SQTHTE2Y.cjs} +6 -6
- package/dist/{chunk-ZGW7PN4G.cjs.map → chunk-SQTHTE2Y.cjs.map} +1 -1
- package/dist/document-tools/index.cjs +2 -2
- package/dist/document-tools/index.js +3 -3
- package/dist/index.cjs +842 -1250
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -122
- package/dist/index.d.ts +2 -122
- package/dist/index.js +628 -1031
- package/dist/index.js.map +1 -1
- package/dist/shell/index.cjs +1 -1
- package/dist/shell/index.js +1 -1
- package/dist/ui/index.cjs +14 -14
- package/dist/ui/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkSQTHTE2Y_cjs = require('./chunk-SQTHTE2Y.cjs');
|
|
4
4
|
var chunkSBWEI3BO_cjs = require('./chunk-SBWEI3BO.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkKYEWJVD2_cjs = require('./chunk-KYEWJVD2.cjs');
|
|
6
|
+
var chunk2M4B4FFA_cjs = require('./chunk-2M4B4FFA.cjs');
|
|
7
|
+
var chunkVLK52VXC_cjs = require('./chunk-VLK52VXC.cjs');
|
|
6
8
|
var chunkZI2VJOID_cjs = require('./chunk-ZI2VJOID.cjs');
|
|
7
9
|
var chunkVAMPYLQ4_cjs = require('./chunk-VAMPYLQ4.cjs');
|
|
8
10
|
var chunkN73IMVFF_cjs = require('./chunk-N73IMVFF.cjs');
|
|
9
|
-
var chunk2M4B4FFA_cjs = require('./chunk-2M4B4FFA.cjs');
|
|
10
|
-
var chunkVLK52VXC_cjs = require('./chunk-VLK52VXC.cjs');
|
|
11
11
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
12
12
|
require('./chunk-VOFNX4P6.cjs');
|
|
13
13
|
var chunk7NHOKV7N_cjs = require('./chunk-7NHOKV7N.cjs');
|
|
14
14
|
var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
|
|
15
15
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
16
|
-
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
17
16
|
var chunkWYZJLZ67_cjs = require('./chunk-WYZJLZ67.cjs');
|
|
18
|
-
var
|
|
17
|
+
var chunkHUZB36QU_cjs = require('./chunk-HUZB36QU.cjs');
|
|
19
18
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
19
|
+
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
20
20
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
21
21
|
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
22
22
|
var chunkQQ7SCJRY_cjs = require('./chunk-QQ7SCJRY.cjs');
|
|
@@ -71,9 +71,9 @@ function holdListPoll(refetch) {
|
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
function useConversationItems() {
|
|
74
|
-
const workspaceId =
|
|
75
|
-
const open =
|
|
76
|
-
const query =
|
|
74
|
+
const workspaceId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
75
|
+
const open = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceStatus === "open");
|
|
76
|
+
const query = chunkKYEWJVD2_cjs.useConversations(workspaceId ?? void 0, { enabled: open });
|
|
77
77
|
const { refetch } = query;
|
|
78
78
|
const all = query.data;
|
|
79
79
|
const tasks = React.useMemo(() => (all ?? []).filter((c) => c.status != null), [all]);
|
|
@@ -94,7 +94,7 @@ function useConversationItems() {
|
|
|
94
94
|
return { conversations: all ?? [], tasks, isLoading: query.isLoading, refetch };
|
|
95
95
|
}
|
|
96
96
|
function useConversationIsShared() {
|
|
97
|
-
const id =
|
|
97
|
+
const id = chunkKYEWJVD2_cjs.useArbiSessionState((state) => state.conversationId);
|
|
98
98
|
const { conversations } = useConversationItems();
|
|
99
99
|
return conversations.find((conversation) => conversation.external_id === id)?.is_shared ?? false;
|
|
100
100
|
}
|
|
@@ -103,9 +103,9 @@ function useWorkItems() {
|
|
|
103
103
|
return { tasks, isLoading, refetch };
|
|
104
104
|
}
|
|
105
105
|
function useWorkspaceRole() {
|
|
106
|
-
const workspaceId =
|
|
107
|
-
const me =
|
|
108
|
-
const { data: workspaces } =
|
|
106
|
+
const workspaceId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
107
|
+
const me = chunkKYEWJVD2_cjs.useArbiSession().user?.external_id;
|
|
108
|
+
const { data: workspaces } = chunkKYEWJVD2_cjs.useWorkspaces();
|
|
109
109
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
110
110
|
return workspace?.users?.find((m) => m.user.external_id === me)?.role ?? null;
|
|
111
111
|
}
|
|
@@ -123,7 +123,7 @@ function useNotifyConversation() {
|
|
|
123
123
|
mutationFn: ({ conversationId, userIds }) => arbi.conversations.notify(conversationId, userIds),
|
|
124
124
|
onSuccess: (_data, { conversationId }) => {
|
|
125
125
|
invalidateConversationActivity(qc, conversationId);
|
|
126
|
-
void
|
|
126
|
+
void chunkSQTHTE2Y_cjs.invalidateConversationLists(qc);
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
}
|
|
@@ -140,7 +140,7 @@ var THREAD_LOOKUP_DELAY_MS = 500;
|
|
|
140
140
|
function useStartTaskQuery() {
|
|
141
141
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
142
142
|
const queryClient = reactQuery.useQueryClient();
|
|
143
|
-
const chatModel =
|
|
143
|
+
const chatModel = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.chatModel);
|
|
144
144
|
const post = reactQuery.useMutation({
|
|
145
145
|
mutationFn: (query) => {
|
|
146
146
|
const selectedConfig = chatModel || queryClient.getQueriesData({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.userSettings() }).map(([, settings]) => settings?.last_config).find(Boolean);
|
|
@@ -153,19 +153,27 @@ function useStartTaskQuery() {
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
});
|
|
156
|
-
const
|
|
156
|
+
const threadOf = async (messageId, known) => {
|
|
157
|
+
const response = await arbi.assistant.getResponse(messageId);
|
|
158
|
+
const events = response.metadata?.events ?? [];
|
|
159
|
+
const posted = events.find((e) => e.type === "arbi.user_message")?.conversation_ext_id;
|
|
160
|
+
if (posted) return posted;
|
|
161
|
+
if (response.status === "queued" || response.status === "in_progress") return void 0;
|
|
162
|
+
return known || (await arbi.conversations.getMessage(messageId)).conversation_ext_id;
|
|
163
|
+
};
|
|
164
|
+
const lookUpThread = async (messageId, attempts, known) => {
|
|
157
165
|
let conversationId;
|
|
158
166
|
for (let attempt = 0; attempt < attempts && !conversationId; attempt += 1) {
|
|
159
167
|
if (attempt > 0) await new Promise((r) => setTimeout(r, THREAD_LOOKUP_DELAY_MS));
|
|
160
168
|
try {
|
|
161
|
-
conversationId =
|
|
169
|
+
conversationId = await threadOf(messageId, known);
|
|
162
170
|
} catch (error) {
|
|
163
171
|
if (!(error && typeof error === "object" && "status" in error && error.status === 404))
|
|
164
172
|
throw error;
|
|
165
173
|
}
|
|
166
174
|
}
|
|
167
175
|
if (!conversationId) return null;
|
|
168
|
-
await
|
|
176
|
+
await chunkSQTHTE2Y_cjs.invalidateConversationLists(queryClient);
|
|
169
177
|
return { conversationId };
|
|
170
178
|
};
|
|
171
179
|
return {
|
|
@@ -174,7 +182,11 @@ function useStartTaskQuery() {
|
|
|
174
182
|
findThread: (messageId) => lookUpThread(messageId, 1),
|
|
175
183
|
start: async (query) => {
|
|
176
184
|
const accepted = await post.mutateAsync(query);
|
|
177
|
-
const found = await lookUpThread(
|
|
185
|
+
const found = await lookUpThread(
|
|
186
|
+
accepted.id,
|
|
187
|
+
THREAD_LOOKUP_ATTEMPTS,
|
|
188
|
+
accepted.conversation_ext_id
|
|
189
|
+
);
|
|
178
190
|
if (!found) throw new TaskThreadPendingError(accepted.id);
|
|
179
191
|
return found;
|
|
180
192
|
}
|
|
@@ -190,8 +202,8 @@ function useUpdateConversation() {
|
|
|
190
202
|
}) => arbi.conversations.update(conversationId, patch),
|
|
191
203
|
// The list takes the server's version of the row; what hangs off it is read again.
|
|
192
204
|
onSuccess: (updated, { conversationId }) => {
|
|
193
|
-
|
|
194
|
-
return
|
|
205
|
+
chunkSQTHTE2Y_cjs.patchConversation(qc, conversationId, updated);
|
|
206
|
+
return chunkSQTHTE2Y_cjs.invalidateConversationDetails(qc, conversationId);
|
|
195
207
|
}
|
|
196
208
|
});
|
|
197
209
|
}
|
|
@@ -200,7 +212,7 @@ function useCreateWork() {
|
|
|
200
212
|
const qc = reactQuery.useQueryClient();
|
|
201
213
|
return reactQuery.useMutation({
|
|
202
214
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
203
|
-
onSuccess: (created) =>
|
|
215
|
+
onSuccess: (created) => chunkSQTHTE2Y_cjs.addConversationToList(qc, arbi.hasWorkspace ? arbi.getWorkspaceId() : null, created)
|
|
204
216
|
});
|
|
205
217
|
}
|
|
206
218
|
function useRunConversation() {
|
|
@@ -210,7 +222,7 @@ function useRunConversation() {
|
|
|
210
222
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
211
223
|
// The server's version replaces the listed one; everything under the conversation is re-read.
|
|
212
224
|
onSuccess: (updated) => {
|
|
213
|
-
if (updated?.external_id)
|
|
225
|
+
if (updated?.external_id) chunkSQTHTE2Y_cjs.patchConversation(qc, updated.external_id, updated);
|
|
214
226
|
return qc.invalidateQueries({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.allConversations() });
|
|
215
227
|
}
|
|
216
228
|
});
|
|
@@ -226,7 +238,7 @@ function useActOnStep() {
|
|
|
226
238
|
// The server's version of the conversation replaces the listed one; its history is re-read.
|
|
227
239
|
onSuccess: (updated) => {
|
|
228
240
|
if (!updated?.external_id) return;
|
|
229
|
-
|
|
241
|
+
chunkSQTHTE2Y_cjs.patchConversation(qc, updated.external_id, updated);
|
|
230
242
|
invalidateConversationActivity(qc, updated.external_id);
|
|
231
243
|
}
|
|
232
244
|
});
|
|
@@ -1303,18 +1315,18 @@ function cachedAssistantMode(queryClient, conversationId, newMode) {
|
|
|
1303
1315
|
if (!conversationId) return newMode;
|
|
1304
1316
|
const threads = queryClient.getQueriesData(allConversationThreads).map(([, data]) => data).find((data) => data?.conversation_ext_id === conversationId);
|
|
1305
1317
|
if (threads?.assistant_mode) return threads.assistant_mode;
|
|
1306
|
-
return
|
|
1318
|
+
return chunkSQTHTE2Y_cjs.findConversation(queryClient, conversationId)?.assistant_mode ?? "always";
|
|
1307
1319
|
}
|
|
1308
1320
|
function isCommentToPeople(queryClient, conversationId, content, candidates) {
|
|
1309
1321
|
const mentioned = chunkZI2VJOID_cjs.extractMentions(content, candidates);
|
|
1310
1322
|
if (mentioned.some((c) => c.kind === "assistant")) return false;
|
|
1311
|
-
if (
|
|
1323
|
+
if (chunkSQTHTE2Y_cjs.isConversationShared(queryClient, conversationId)) return true;
|
|
1312
1324
|
if (mentioned.some((c) => c.kind === "user")) return true;
|
|
1313
|
-
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !
|
|
1325
|
+
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !chunkSQTHTE2Y_cjs.isKnownSoloConversation(queryClient, conversationId);
|
|
1314
1326
|
}
|
|
1315
1327
|
function useMentionCandidates() {
|
|
1316
1328
|
const { data: users = [] } = useWorkspaceUsers();
|
|
1317
|
-
const currentUserId =
|
|
1329
|
+
const currentUserId = chunkKYEWJVD2_cjs.useArbiSession().user?.external_id;
|
|
1318
1330
|
return React.useMemo(() => buildMentionCandidates(users, currentUserId), [users, currentUserId]);
|
|
1319
1331
|
}
|
|
1320
1332
|
function useUserSettings(options) {
|
|
@@ -1418,11 +1430,11 @@ function configDelta(active, defaults) {
|
|
|
1418
1430
|
}
|
|
1419
1431
|
function useSaveConfigField() {
|
|
1420
1432
|
const saveConfig = useSaveConfig();
|
|
1421
|
-
const { data: defaultConfig } =
|
|
1422
|
-
const chatModel =
|
|
1433
|
+
const { data: defaultConfig } = chunkKYEWJVD2_cjs.useConfig("default");
|
|
1434
|
+
const chatModel = chunkKYEWJVD2_cjs.useArbiSessionState((state) => state.chatModel);
|
|
1423
1435
|
const { data: userSettings } = useUserSettings();
|
|
1424
1436
|
const activeConfigId = chatModel || userSettings?.last_config || "default";
|
|
1425
|
-
const { data: activeConfigData } =
|
|
1437
|
+
const { data: activeConfigData } = chunkKYEWJVD2_cjs.useConfig(activeConfigId);
|
|
1426
1438
|
const buildDelta = (changes) => {
|
|
1427
1439
|
const defaults = defaultConfig ?? {};
|
|
1428
1440
|
const active = activeConfigData ?? {};
|
|
@@ -1460,8 +1472,8 @@ function pendingChatModelSave(session) {
|
|
|
1460
1472
|
return chatModelSaves.get(session);
|
|
1461
1473
|
}
|
|
1462
1474
|
function useApplyChatModel() {
|
|
1463
|
-
const session =
|
|
1464
|
-
const { data: availableModels } =
|
|
1475
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
1476
|
+
const { data: availableModels } = chunkKYEWJVD2_cjs.useAvailableModels();
|
|
1465
1477
|
const configField = useSaveConfigField();
|
|
1466
1478
|
return React.useCallback(
|
|
1467
1479
|
async (model, label) => {
|
|
@@ -2143,8 +2155,8 @@ function DocumentReview({
|
|
|
2143
2155
|
onClose,
|
|
2144
2156
|
className
|
|
2145
2157
|
}) {
|
|
2146
|
-
const parsedQuery =
|
|
2147
|
-
const tagsQuery =
|
|
2158
|
+
const parsedQuery = chunkKYEWJVD2_cjs.useParsedDocument(docId, stage);
|
|
2159
|
+
const tagsQuery = chunkKYEWJVD2_cjs.useTags(workspaceId);
|
|
2148
2160
|
const tagNameById = React__default.default.useMemo(() => {
|
|
2149
2161
|
const map = /* @__PURE__ */ new Map();
|
|
2150
2162
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3330,11 +3342,11 @@ function createStreamHandlers(ctx, params) {
|
|
|
3330
3342
|
const clientId = streamState.queuedClientId;
|
|
3331
3343
|
if (!clientId || queuedEntryRetired) return;
|
|
3332
3344
|
queuedEntryRetired = true;
|
|
3333
|
-
const entry =
|
|
3345
|
+
const entry = chunkKYEWJVD2_cjs.queuedMessages.find(session.getState().queuedMessages, clientId);
|
|
3334
3346
|
if (!entry) return;
|
|
3335
3347
|
const remainingVisibility = Math.max(
|
|
3336
3348
|
0,
|
|
3337
|
-
|
|
3349
|
+
chunkKYEWJVD2_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS - (Date.now() - entry.createdAt)
|
|
3338
3350
|
);
|
|
3339
3351
|
if (remainingVisibility === 0) {
|
|
3340
3352
|
session.removeQueuedMessage(clientId);
|
|
@@ -3350,7 +3362,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3350
3362
|
session.moveConversation("new", serverConversationId);
|
|
3351
3363
|
const userExtId = ctx.userId();
|
|
3352
3364
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
3353
|
-
|
|
3365
|
+
chunkSQTHTE2Y_cjs.patchConversationList(
|
|
3354
3366
|
queryClient,
|
|
3355
3367
|
session.getState().workspaceId,
|
|
3356
3368
|
(old) => old.some((c) => c.external_id === serverConversationId) ? old : [
|
|
@@ -3466,7 +3478,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3466
3478
|
ensureAssistantMessageLoading(queryClient, conversationId, answerId);
|
|
3467
3479
|
});
|
|
3468
3480
|
}
|
|
3469
|
-
void
|
|
3481
|
+
void chunkSQTHTE2Y_cjs.invalidateConversationLists(queryClient);
|
|
3470
3482
|
session.setCursor(streamState.assistantId);
|
|
3471
3483
|
};
|
|
3472
3484
|
let firstTokenSeen = false;
|
|
@@ -3665,7 +3677,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3665
3677
|
}
|
|
3666
3678
|
function useStreamHandlers() {
|
|
3667
3679
|
const queryClient = reactQuery.useQueryClient();
|
|
3668
|
-
const session =
|
|
3680
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
3669
3681
|
const config = chunkQQ7SCJRY_cjs.useArbiHost();
|
|
3670
3682
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
3671
3683
|
return React.useCallback(
|
|
@@ -3758,7 +3770,7 @@ function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
|
3758
3770
|
// src/chat/useConversationActions.ts
|
|
3759
3771
|
var RECONCILE_TIMEOUT_MS = 5e3;
|
|
3760
3772
|
function draftAfterSend(queryClient, session, wasComment) {
|
|
3761
|
-
const shared =
|
|
3773
|
+
const shared = chunkSQTHTE2Y_cjs.isConversationShared(queryClient, session.getState().conversationId);
|
|
3762
3774
|
return shared && !wasComment ? `@${ASSISTANT_MENTION_LABEL} ` : "";
|
|
3763
3775
|
}
|
|
3764
3776
|
function failQueuedContinuation(queryClient, session, streamState) {
|
|
@@ -3791,7 +3803,7 @@ function useConversationActions({
|
|
|
3791
3803
|
lastFailedMessage
|
|
3792
3804
|
}) {
|
|
3793
3805
|
const queryClient = reactQuery.useQueryClient();
|
|
3794
|
-
const session =
|
|
3806
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
3795
3807
|
const currentConversationId = conversationKey2 === "new" ? null : conversationKey2;
|
|
3796
3808
|
const invalidateUserWorkspaces = React.useCallback(
|
|
3797
3809
|
() => void queryClient.invalidateQueries({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.workspaces() }),
|
|
@@ -3845,7 +3857,7 @@ function useConversationActions({
|
|
|
3845
3857
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
3846
3858
|
if (!convId) {
|
|
3847
3859
|
session.moveConversation("new", conversationId);
|
|
3848
|
-
|
|
3860
|
+
chunkSQTHTE2Y_cjs.patchConversationList(queryClient, session.getState().workspaceId, (old) => [
|
|
3849
3861
|
{
|
|
3850
3862
|
external_id: conversationId,
|
|
3851
3863
|
title: content.slice(0, 40),
|
|
@@ -3863,14 +3875,14 @@ function useConversationActions({
|
|
|
3863
3875
|
]);
|
|
3864
3876
|
invalidateUserWorkspaces();
|
|
3865
3877
|
} else {
|
|
3866
|
-
|
|
3878
|
+
chunkSQTHTE2Y_cjs.patchConversation(queryClient, conversationId, (c) => ({
|
|
3867
3879
|
...c,
|
|
3868
3880
|
message_count: c.message_count + 1,
|
|
3869
3881
|
updated_at: nowIso
|
|
3870
3882
|
}));
|
|
3871
3883
|
}
|
|
3872
3884
|
if (mentions.some((m) => m.type === "user")) {
|
|
3873
|
-
await
|
|
3885
|
+
await chunkSQTHTE2Y_cjs.invalidateConversationLists(queryClient);
|
|
3874
3886
|
}
|
|
3875
3887
|
await queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
3876
3888
|
session.setCursor(saved.external_id);
|
|
@@ -3878,7 +3890,7 @@ function useConversationActions({
|
|
|
3878
3890
|
chunkVAMPYLQ4_cjs.notify.error(
|
|
3879
3891
|
error instanceof browser.ArbiApiError && error.detail || "Failed to post the message"
|
|
3880
3892
|
);
|
|
3881
|
-
if (!
|
|
3893
|
+
if (!chunkKYEWJVD2_cjs.selectDraft(session.getState())) session.setDraft(content);
|
|
3882
3894
|
}
|
|
3883
3895
|
},
|
|
3884
3896
|
[arbi, session, queryClient, invalidateUserWorkspaces]
|
|
@@ -3936,7 +3948,7 @@ function useConversationActions({
|
|
|
3936
3948
|
session.setConversationGenerating(convKey, true, abortController);
|
|
3937
3949
|
}
|
|
3938
3950
|
if (!queuedContinuation) {
|
|
3939
|
-
|
|
3951
|
+
chunkSQTHTE2Y_cjs.patchConversation(queryClient, convKey, { last_message_status: "in_progress" });
|
|
3940
3952
|
}
|
|
3941
3953
|
const streamState = {
|
|
3942
3954
|
conversationId: convKey,
|
|
@@ -4023,7 +4035,7 @@ function useConversationActions({
|
|
|
4023
4035
|
void queryClient.invalidateQueries({
|
|
4024
4036
|
queryKey: getThreadsQueryKey(streamState.conversationId)
|
|
4025
4037
|
});
|
|
4026
|
-
void
|
|
4038
|
+
void chunkSQTHTE2Y_cjs.invalidateConversationLists(queryClient);
|
|
4027
4039
|
}
|
|
4028
4040
|
return;
|
|
4029
4041
|
}
|
|
@@ -4042,7 +4054,7 @@ function useConversationActions({
|
|
|
4042
4054
|
}
|
|
4043
4055
|
if (ownsGeneration) {
|
|
4044
4056
|
const lastStatus = streamState.serverError ? "failed" : "completed";
|
|
4045
|
-
|
|
4057
|
+
chunkSQTHTE2Y_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4046
4058
|
last_message_status: lastStatus
|
|
4047
4059
|
});
|
|
4048
4060
|
}
|
|
@@ -4074,7 +4086,7 @@ function useConversationActions({
|
|
|
4074
4086
|
});
|
|
4075
4087
|
if (ownsActiveGeneration()) {
|
|
4076
4088
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4077
|
-
|
|
4089
|
+
chunkSQTHTE2Y_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4078
4090
|
last_message_status: "completed"
|
|
4079
4091
|
});
|
|
4080
4092
|
}
|
|
@@ -4097,10 +4109,10 @@ function useConversationActions({
|
|
|
4097
4109
|
if (ownsActiveGeneration()) {
|
|
4098
4110
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4099
4111
|
}
|
|
4100
|
-
void
|
|
4112
|
+
void chunkSQTHTE2Y_cjs.invalidateConversationLists(queryClient);
|
|
4101
4113
|
return;
|
|
4102
4114
|
}
|
|
4103
|
-
|
|
4115
|
+
chunkSQTHTE2Y_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4104
4116
|
last_message_status: "failed"
|
|
4105
4117
|
});
|
|
4106
4118
|
const quota = browser.quotaFromStreamError(error) ?? cachedQuotaUsedUp(queryClient, session.getState().workspaceId);
|
|
@@ -4135,7 +4147,7 @@ function useConversationActions({
|
|
|
4135
4147
|
);
|
|
4136
4148
|
const handleSendMessage = React.useCallback(
|
|
4137
4149
|
async (options) => {
|
|
4138
|
-
const currentMessage =
|
|
4150
|
+
const currentMessage = chunkKYEWJVD2_cjs.selectDraft(session.getState()).trim();
|
|
4139
4151
|
if (!selectedWorkspaceId || !chunkZI2VJOID_cjs.hasMessageBody(currentMessage)) return;
|
|
4140
4152
|
session.setSuggestedQuery(null);
|
|
4141
4153
|
if (refuseChatWhenOffline()) return;
|
|
@@ -4246,7 +4258,7 @@ function useConversationActions({
|
|
|
4246
4258
|
if (!replyTo && currentConversationId) {
|
|
4247
4259
|
try {
|
|
4248
4260
|
await arbi.conversations.delete(currentConversationId);
|
|
4249
|
-
|
|
4261
|
+
chunkSQTHTE2Y_cjs.removeConversationFromLists(queryClient, currentConversationId);
|
|
4250
4262
|
session.startNewConversation();
|
|
4251
4263
|
} catch (error) {
|
|
4252
4264
|
console.error("Failed to delete conversation with orphaned first message:", error);
|
|
@@ -4314,16 +4326,16 @@ function selectThread(session, leafId) {
|
|
|
4314
4326
|
if (session.getState().cursor !== leafId) session.setCursor(leafId);
|
|
4315
4327
|
}
|
|
4316
4328
|
function useConversationData() {
|
|
4317
|
-
const session =
|
|
4318
|
-
const selectedWorkspaceId =
|
|
4319
|
-
const currentConversationId =
|
|
4320
|
-
const parentMessageId =
|
|
4321
|
-
const deepLinkMessageId =
|
|
4329
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
4330
|
+
const selectedWorkspaceId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4331
|
+
const currentConversationId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4332
|
+
const parentMessageId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.cursor);
|
|
4333
|
+
const deepLinkMessageId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.deepLinkMessageId);
|
|
4322
4334
|
const {
|
|
4323
4335
|
data: threadsData,
|
|
4324
4336
|
isLoading: threadsLoading,
|
|
4325
4337
|
error: threadsError
|
|
4326
|
-
} =
|
|
4338
|
+
} = chunkKYEWJVD2_cjs.useConversationThreads(currentConversationId || void 0);
|
|
4327
4339
|
const processedDeepLinkRef = React.useRef(null);
|
|
4328
4340
|
const prevConversationIdRef = React.useRef(null);
|
|
4329
4341
|
React.useEffect(() => {
|
|
@@ -4516,7 +4528,7 @@ function useBranchNavigation(threads, parentMessageId, messageHistory, setParent
|
|
|
4516
4528
|
var RECONNECT_DELAY_MS = 2e3;
|
|
4517
4529
|
var MAX_RECONNECTS = 5;
|
|
4518
4530
|
function useConnectRunStream(conversationId, messages) {
|
|
4519
|
-
const generation =
|
|
4531
|
+
const generation = chunkKYEWJVD2_cjs.useArbiSessionState(
|
|
4520
4532
|
(s) => conversationId ? s.generating[conversationId] : void 0
|
|
4521
4533
|
);
|
|
4522
4534
|
const responseId = conversationId ? browser.getRunToAttach(generation, messages) : null;
|
|
@@ -4524,7 +4536,7 @@ function useConnectRunStream(conversationId, messages) {
|
|
|
4524
4536
|
}
|
|
4525
4537
|
function useAttachRun(conversationId, responseId) {
|
|
4526
4538
|
const queryClient = reactQuery.useQueryClient();
|
|
4527
|
-
const session =
|
|
4539
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
4528
4540
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
4529
4541
|
const arbiRef = React.useRef(arbi);
|
|
4530
4542
|
arbiRef.current = arbi;
|
|
@@ -4722,14 +4734,14 @@ function useConversation(options = {}) {
|
|
|
4722
4734
|
const { agentId, model, titleLength = 48 } = options;
|
|
4723
4735
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
4724
4736
|
const queryClient = reactQuery.useQueryClient();
|
|
4725
|
-
const session =
|
|
4726
|
-
const sessionWorkspaceId =
|
|
4737
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
4738
|
+
const sessionWorkspaceId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4727
4739
|
const workspaceId = options.workspaceId ?? sessionWorkspaceId ?? void 0;
|
|
4728
|
-
const conversationId =
|
|
4740
|
+
const conversationId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4729
4741
|
const conversationKey2 = conversationId ?? NEW;
|
|
4730
|
-
const generation =
|
|
4731
|
-
const newConversationMode =
|
|
4732
|
-
const queuedMessages2 =
|
|
4742
|
+
const generation = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.generating[conversationKey2]);
|
|
4743
|
+
const newConversationMode = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.newConversationAssistantMode);
|
|
4744
|
+
const queuedMessages2 = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.queuedMessages);
|
|
4733
4745
|
const isRunning = !!generation?.isGenerating;
|
|
4734
4746
|
React.useEffect(() => {
|
|
4735
4747
|
if (workspaceId && session.getState().workspaceId !== workspaceId)
|
|
@@ -4742,7 +4754,7 @@ function useConversation(options = {}) {
|
|
|
4742
4754
|
if (agentId && workspaceId && !conversationId) session.setNewAgentChat({ agentId, workspaceId });
|
|
4743
4755
|
}, [session, agentId, workspaceId, conversationId]);
|
|
4744
4756
|
const { data: docs = [], isLoading: isLoadingDocuments } = chunkSBWEI3BO_cjs.useDocuments(workspaceId);
|
|
4745
|
-
const ordinaryHistory =
|
|
4757
|
+
const ordinaryHistory = chunkKYEWJVD2_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
4746
4758
|
const agentHistory = useAgentChats(agentId);
|
|
4747
4759
|
const stored = React.useMemo(
|
|
4748
4760
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -4968,7 +4980,7 @@ function useConversation(options = {}) {
|
|
|
4968
4980
|
void (async () => {
|
|
4969
4981
|
try {
|
|
4970
4982
|
await arbi.conversations.delete(id);
|
|
4971
|
-
|
|
4983
|
+
chunkSQTHTE2Y_cjs.removeConversationFromLists(queryClient, id);
|
|
4972
4984
|
if (session.getState().conversationId === id) session.startNewConversation();
|
|
4973
4985
|
} catch (e) {
|
|
4974
4986
|
setHistoryError(messageOf(e, "The conversation could not be deleted."));
|
|
@@ -5052,10 +5064,10 @@ function ConversationScope({
|
|
|
5052
5064
|
conversationId,
|
|
5053
5065
|
children
|
|
5054
5066
|
}) {
|
|
5055
|
-
const outerWorkspaceId =
|
|
5067
|
+
const outerWorkspaceId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5056
5068
|
const scopeWorkspaceId = workspaceId ?? outerWorkspaceId;
|
|
5057
5069
|
const [session] = React.useState(
|
|
5058
|
-
() =>
|
|
5070
|
+
() => chunkKYEWJVD2_cjs.createArbiSessionStore({
|
|
5059
5071
|
workspaceId: scopeWorkspaceId,
|
|
5060
5072
|
conversationId: conversationId ?? null
|
|
5061
5073
|
})
|
|
@@ -5076,7 +5088,7 @@ async function applyConversationEvent(queryClient, event) {
|
|
|
5076
5088
|
if (e.type === "response_complete") return applyRunEnded(queryClient, e);
|
|
5077
5089
|
if (e.type === "conversation.message_posted") return applyMessagePosted(queryClient, e);
|
|
5078
5090
|
if (e.type === "conversation.title_updated" && e.conversation_ext_id) {
|
|
5079
|
-
|
|
5091
|
+
chunkSQTHTE2Y_cjs.patchConversation(queryClient, e.conversation_ext_id, { title: e.title ?? null });
|
|
5080
5092
|
}
|
|
5081
5093
|
}
|
|
5082
5094
|
function applyRunEnded(queryClient, e) {
|
|
@@ -5093,10 +5105,10 @@ function applyRunEnded(queryClient, e) {
|
|
|
5093
5105
|
);
|
|
5094
5106
|
}
|
|
5095
5107
|
if (failed && e.response_id) markMessageAsFailed(queryClient, conversationId, e.response_id);
|
|
5096
|
-
|
|
5108
|
+
chunkSQTHTE2Y_cjs.patchConversation(queryClient, conversationId, {
|
|
5097
5109
|
last_message_status: failed ? "failed" : "completed"
|
|
5098
5110
|
});
|
|
5099
|
-
void
|
|
5111
|
+
void chunkSQTHTE2Y_cjs.invalidateConversationLists(queryClient);
|
|
5100
5112
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
5101
5113
|
if (!failed) void queryClient.invalidateQueries({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.userUsageToday() });
|
|
5102
5114
|
}
|
|
@@ -5104,7 +5116,7 @@ async function applyMessagePosted(queryClient, e) {
|
|
|
5104
5116
|
if (!e.conversation_ext_id) return;
|
|
5105
5117
|
const queryKey = getThreadsQueryKey(e.conversation_ext_id);
|
|
5106
5118
|
const refreshed = queryClient.invalidateQueries({ queryKey });
|
|
5107
|
-
void
|
|
5119
|
+
void chunkSQTHTE2Y_cjs.invalidateConversationLists(queryClient);
|
|
5108
5120
|
await refreshed;
|
|
5109
5121
|
const cached = queryClient.getQueryData(
|
|
5110
5122
|
queryKey
|
|
@@ -5135,9 +5147,9 @@ function useConversationTurn({
|
|
|
5135
5147
|
selectedWorkspaceId,
|
|
5136
5148
|
parentMessageId
|
|
5137
5149
|
}) {
|
|
5138
|
-
const currentConversationId =
|
|
5150
|
+
const currentConversationId = chunkKYEWJVD2_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5139
5151
|
const conversationKey2 = currentConversationId || "new";
|
|
5140
|
-
const generationState =
|
|
5152
|
+
const generationState = chunkKYEWJVD2_cjs.useArbiSessionState((state) => state.generating[conversationKey2]);
|
|
5141
5153
|
const isGenerating = generationState?.isGenerating ?? false;
|
|
5142
5154
|
const generationError = generationState?.error ?? null;
|
|
5143
5155
|
const lastFailedMessage = generationState?.lastFailedMessage ?? null;
|
|
@@ -5158,9 +5170,9 @@ function useConversationTurn({
|
|
|
5158
5170
|
}
|
|
5159
5171
|
var EMPTY_DOCS = [];
|
|
5160
5172
|
function useConversationDocuments() {
|
|
5161
|
-
const currentConversationId =
|
|
5173
|
+
const currentConversationId = chunkKYEWJVD2_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5162
5174
|
const convKey = currentConversationId || "new";
|
|
5163
|
-
const inConversationDocuments =
|
|
5175
|
+
const inConversationDocuments = chunkKYEWJVD2_cjs.useArbiSessionState(
|
|
5164
5176
|
(state) => state.conversationDocuments[convKey] || EMPTY_DOCS
|
|
5165
5177
|
);
|
|
5166
5178
|
const { data: documents2 = [], isLoading: isLoadingDocs } = chunkSBWEI3BO_cjs.useDocuments();
|
|
@@ -5195,8 +5207,8 @@ function useDocumentAutoAdd({
|
|
|
5195
5207
|
allWorkspaceDocuments,
|
|
5196
5208
|
hasContent = false
|
|
5197
5209
|
}) {
|
|
5198
|
-
const session =
|
|
5199
|
-
const currentConversationId =
|
|
5210
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
5211
|
+
const currentConversationId = chunkKYEWJVD2_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5200
5212
|
const convKey = currentConversationId || "new";
|
|
5201
5213
|
const observedRef = React.useRef(null);
|
|
5202
5214
|
const offeredRef = React.useRef(/* @__PURE__ */ new Set());
|
|
@@ -5257,12 +5269,12 @@ function useDocumentAutoAdd({
|
|
|
5257
5269
|
}, [selectedWorkspaceId, convKey, allWorkspaceDocuments, hasContent, session]);
|
|
5258
5270
|
}
|
|
5259
5271
|
function useAutoSendDraft(sendDraft, ready = true) {
|
|
5260
|
-
const session =
|
|
5261
|
-
const autoSendDraft =
|
|
5272
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
5273
|
+
const autoSendDraft = chunkKYEWJVD2_cjs.useArbiSessionState((state) => state.autoSendDraft);
|
|
5262
5274
|
React.useEffect(() => {
|
|
5263
5275
|
if (!autoSendDraft || !ready) return;
|
|
5264
5276
|
session.setAutoSendDraft(false);
|
|
5265
|
-
if (
|
|
5277
|
+
if (chunkKYEWJVD2_cjs.selectDraft(session.getState()).trim()) {
|
|
5266
5278
|
sendDraft();
|
|
5267
5279
|
}
|
|
5268
5280
|
}, [autoSendDraft, ready, sendDraft, session]);
|
|
@@ -5348,7 +5360,7 @@ function useAnswerAgentQuestion() {
|
|
|
5348
5360
|
);
|
|
5349
5361
|
}
|
|
5350
5362
|
function useAskAgain(options) {
|
|
5351
|
-
const session =
|
|
5363
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
5352
5364
|
const optionsRef = React.useRef(options);
|
|
5353
5365
|
React.useEffect(() => {
|
|
5354
5366
|
optionsRef.current = options;
|
|
@@ -5440,11 +5452,11 @@ function useMessageTimer({
|
|
|
5440
5452
|
isUser,
|
|
5441
5453
|
isGenerating
|
|
5442
5454
|
}) {
|
|
5443
|
-
const session =
|
|
5455
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
5444
5456
|
const convId = conversationId || "new";
|
|
5445
5457
|
const timerKey = `${convId}:${messageId}`;
|
|
5446
|
-
const generationStartTime =
|
|
5447
|
-
const storedElapsed =
|
|
5458
|
+
const generationStartTime = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.generating[convId]?.startTime ?? null);
|
|
5459
|
+
const storedElapsed = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.messageTimers[timerKey]?.elapsedTime);
|
|
5448
5460
|
const [elapsedTime, setElapsedTime] = React.useState(0);
|
|
5449
5461
|
const lastElapsedRef = React.useRef(0);
|
|
5450
5462
|
React.useEffect(() => {
|
|
@@ -5469,7 +5481,7 @@ function useMessageTimer({
|
|
|
5469
5481
|
}
|
|
5470
5482
|
function useAgentRunControl(assistantMessageExtId) {
|
|
5471
5483
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5472
|
-
const session =
|
|
5484
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
5473
5485
|
const send = React.useCallback(
|
|
5474
5486
|
(command) => {
|
|
5475
5487
|
if (!assistantMessageExtId) return;
|
|
@@ -5706,16 +5718,16 @@ function ArbiWebSocketProvider({ enabled = true, children }) {
|
|
|
5706
5718
|
reset();
|
|
5707
5719
|
};
|
|
5708
5720
|
}, [enabled, arbi, setStatus, applyTaskUpdate, applyPresence, reset]);
|
|
5709
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5721
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkSQTHTE2Y_cjs.ArbiWsContext.Provider, { value: context, children });
|
|
5710
5722
|
}
|
|
5711
5723
|
function useArbiWebSocket(onMessage) {
|
|
5712
|
-
const { subscribe } =
|
|
5724
|
+
const { subscribe } = chunkSQTHTE2Y_cjs.useArbiWsContext();
|
|
5713
5725
|
const handlerRef = React.useRef(onMessage);
|
|
5714
5726
|
handlerRef.current = onMessage;
|
|
5715
5727
|
React.useEffect(() => subscribe((msg) => handlerRef.current(msg)), [subscribe]);
|
|
5716
5728
|
}
|
|
5717
5729
|
function useArbiWsMessage(type, handler) {
|
|
5718
|
-
const { subscribe } =
|
|
5730
|
+
const { subscribe } = chunkSQTHTE2Y_cjs.useArbiWsContext();
|
|
5719
5731
|
const handlerRef = React.useRef(handler);
|
|
5720
5732
|
handlerRef.current = handler;
|
|
5721
5733
|
React.useEffect(
|
|
@@ -5787,6 +5799,14 @@ var archivedWorkspaceMessage = (name) => `"${name}" is archived. Its owner can u
|
|
|
5787
5799
|
var listedWorkspace = (queryClient, workspaceId) => queryClient.getQueryData(chunkVLK52VXC_cjs.arbiQueryKeys.workspaces())?.find((w) => w.external_id === workspaceId);
|
|
5788
5800
|
var switchEpoch = 0;
|
|
5789
5801
|
var switching = /* @__PURE__ */ new Set();
|
|
5802
|
+
var SIGNED_IN_WAIT_MS = 1e4;
|
|
5803
|
+
var SIGNED_IN_POLL_MS = 50;
|
|
5804
|
+
async function signedIn(arbi, timeoutMs = SIGNED_IN_WAIT_MS) {
|
|
5805
|
+
const deadline = Date.now() + timeoutMs;
|
|
5806
|
+
while (!arbi().isLoggedIn && arbi().session?.getState().signedIn === true && Date.now() < deadline) {
|
|
5807
|
+
await new Promise((resolve) => setTimeout(resolve, SIGNED_IN_POLL_MS));
|
|
5808
|
+
}
|
|
5809
|
+
}
|
|
5790
5810
|
async function switchesSettled() {
|
|
5791
5811
|
while (switching.size > 0) await Promise.allSettled([...switching]);
|
|
5792
5812
|
}
|
|
@@ -5820,6 +5840,8 @@ function createWorkspaceSwitch({
|
|
|
5820
5840
|
}
|
|
5821
5841
|
const epoch = ++switchEpoch;
|
|
5822
5842
|
chunkVAMPYLQ4_cjs.notify.info(`Opening "${name}" ${noun}\u2026`, { workspaceId: target.id, duration: 2e3 });
|
|
5843
|
+
await signedIn(arbi);
|
|
5844
|
+
if (epoch !== switchEpoch) return false;
|
|
5823
5845
|
if (!isSame) {
|
|
5824
5846
|
session.leaveWorkspace();
|
|
5825
5847
|
drainWorkspaceQueries(queryClient);
|
|
@@ -5865,6 +5887,8 @@ function createWorkspaceSwitch({
|
|
|
5865
5887
|
const workspaceId = session.getState().workspaceId;
|
|
5866
5888
|
if (!workspaceId) return false;
|
|
5867
5889
|
const epoch = switchEpoch;
|
|
5890
|
+
await signedIn(arbi);
|
|
5891
|
+
if (epoch !== switchEpoch || session.getState().workspaceId !== workspaceId) return false;
|
|
5868
5892
|
performance.mark("arbi:workspace-open:start");
|
|
5869
5893
|
let opened;
|
|
5870
5894
|
try {
|
|
@@ -5887,7 +5911,7 @@ function useSwitchWorkspace() {
|
|
|
5887
5911
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5888
5912
|
const arbiRef = React.useRef(arbi);
|
|
5889
5913
|
arbiRef.current = arbi;
|
|
5890
|
-
const session =
|
|
5914
|
+
const session = chunkKYEWJVD2_cjs.useArbiSessionStore();
|
|
5891
5915
|
const queryClient = reactQuery.useQueryClient();
|
|
5892
5916
|
return React.useMemo(
|
|
5893
5917
|
() => createWorkspaceSwitch({ arbi: () => arbiRef.current, session, queryClient }),
|
|
@@ -5897,9 +5921,9 @@ function useSwitchWorkspace() {
|
|
|
5897
5921
|
function useOpenSelectedWorkspace() {
|
|
5898
5922
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
5899
5923
|
const { clearWorkspace, openSelectedWorkspace } = useSwitchWorkspace();
|
|
5900
|
-
const workspaceId =
|
|
5901
|
-
const status =
|
|
5902
|
-
const { data: workspaces, isLoading: listing } =
|
|
5924
|
+
const workspaceId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5925
|
+
const status = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceStatus);
|
|
5926
|
+
const { data: workspaces, isLoading: listing } = chunkKYEWJVD2_cjs.useWorkspaces();
|
|
5903
5927
|
const archived = workspaces?.find(
|
|
5904
5928
|
(w) => w.external_id === workspaceId && w.archive
|
|
5905
5929
|
);
|
|
@@ -5909,15 +5933,15 @@ function useOpenSelectedWorkspace() {
|
|
|
5909
5933
|
clearWorkspace();
|
|
5910
5934
|
}, [archived, clearWorkspace]);
|
|
5911
5935
|
const opening = React.useRef(false);
|
|
5912
|
-
const
|
|
5936
|
+
const signedIn2 = arbi.isLoggedIn;
|
|
5913
5937
|
React.useEffect(() => {
|
|
5914
|
-
if (!workspaceId || archived || listing || status !== "closed" || !
|
|
5938
|
+
if (!workspaceId || archived || listing || status !== "closed" || !signedIn2 || opening.current)
|
|
5915
5939
|
return;
|
|
5916
5940
|
opening.current = true;
|
|
5917
5941
|
void openSelectedWorkspace().finally(() => {
|
|
5918
5942
|
opening.current = false;
|
|
5919
5943
|
});
|
|
5920
|
-
}, [openSelectedWorkspace, workspaceId, archived, listing, status,
|
|
5944
|
+
}, [openSelectedWorkspace, workspaceId, archived, listing, status, signedIn2]);
|
|
5921
5945
|
}
|
|
5922
5946
|
|
|
5923
5947
|
// src/workspaces/shell-workspaces.ts
|
|
@@ -6042,8 +6066,8 @@ function useShellWorkspaces(options) {
|
|
|
6042
6066
|
};
|
|
6043
6067
|
}
|
|
6044
6068
|
function useArbiShellWorkspaces(options = {}) {
|
|
6045
|
-
const sessionWorkspaceId =
|
|
6046
|
-
const query =
|
|
6069
|
+
const sessionWorkspaceId = chunkKYEWJVD2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
6070
|
+
const query = chunkKYEWJVD2_cjs.useWorkspaces();
|
|
6047
6071
|
const { switchWorkspace } = useSwitchWorkspace();
|
|
6048
6072
|
const { select, ...rest } = options;
|
|
6049
6073
|
const defaultSelect = React.useCallback(
|
|
@@ -6776,8 +6800,8 @@ function usePeople() {
|
|
|
6776
6800
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
6777
6801
|
const meId = arbi.isLoggedIn ? arbi.user.identity()?.externalId : void 0;
|
|
6778
6802
|
const { data: contacts = [] } = useContacts();
|
|
6779
|
-
const { data: workspaces = [] } =
|
|
6780
|
-
const { data: agents = [] } =
|
|
6803
|
+
const { data: workspaces = [] } = chunkKYEWJVD2_cjs.useWorkspaces();
|
|
6804
|
+
const { data: agents = [] } = chunkKYEWJVD2_cjs.useAgents();
|
|
6781
6805
|
return React.useMemo(() => {
|
|
6782
6806
|
const people = [];
|
|
6783
6807
|
const contactOf = /* @__PURE__ */ new Map();
|
|
@@ -6854,7 +6878,8 @@ function useHouseTemplateCandidates(workspaceId, enabled, staleTime = 6e4) {
|
|
|
6854
6878
|
queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.houseTemplateCandidates(workspaceId ?? ""),
|
|
6855
6879
|
enabled: enabled && !!workspaceId && arbi.hasWorkspace,
|
|
6856
6880
|
staleTime,
|
|
6857
|
-
|
|
6881
|
+
// Read in that workspace: the server answers for the session's open one.
|
|
6882
|
+
queryFn: () => arbi.readInWorkspace(workspaceId, () => arbi.houseTemplates.candidates())
|
|
6858
6883
|
});
|
|
6859
6884
|
}
|
|
6860
6885
|
function useSetWorkspaceHouseTemplate() {
|
|
@@ -6869,13 +6894,13 @@ var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
|
6869
6894
|
var workspaceHouseTemplateId = browser.houseTemplates.workspaceHouseTemplateId;
|
|
6870
6895
|
var isDeploymentAdmin = browser.houseTemplates.isDeploymentAdmin;
|
|
6871
6896
|
function useRequestEmailChange() {
|
|
6872
|
-
const { client } =
|
|
6897
|
+
const { client } = chunkSQTHTE2Y_cjs.useAccountClient();
|
|
6873
6898
|
return reactQuery.useMutation({
|
|
6874
6899
|
mutationFn: (newEmail) => client.requestEmailChange(newEmail)
|
|
6875
6900
|
});
|
|
6876
6901
|
}
|
|
6877
6902
|
function useConfirmEmailChange() {
|
|
6878
|
-
const { client } =
|
|
6903
|
+
const { client } = chunkSQTHTE2Y_cjs.useAccountClient();
|
|
6879
6904
|
const qc = reactQuery.useQueryClient();
|
|
6880
6905
|
return reactQuery.useMutation({
|
|
6881
6906
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
@@ -6943,7 +6968,7 @@ function useEmailChange({
|
|
|
6943
6968
|
};
|
|
6944
6969
|
}
|
|
6945
6970
|
function usePasswordChange() {
|
|
6946
|
-
const { client } =
|
|
6971
|
+
const { client } = chunkSQTHTE2Y_cjs.useAccountClient();
|
|
6947
6972
|
return reactQuery.useMutation({
|
|
6948
6973
|
mutationFn: (vars) => client.changePassword(vars)
|
|
6949
6974
|
});
|
|
@@ -7156,7 +7181,7 @@ function useFollowThread(conversationId, options) {
|
|
|
7156
7181
|
};
|
|
7157
7182
|
}
|
|
7158
7183
|
function useSessions(options) {
|
|
7159
|
-
const { client, enabled } =
|
|
7184
|
+
const { client, enabled } = chunkSQTHTE2Y_cjs.useAccountClient();
|
|
7160
7185
|
return reactQuery.useQuery({
|
|
7161
7186
|
queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.sessions(),
|
|
7162
7187
|
queryFn: () => client.listSessions(),
|
|
@@ -7164,7 +7189,7 @@ function useSessions(options) {
|
|
|
7164
7189
|
});
|
|
7165
7190
|
}
|
|
7166
7191
|
function useTerminateSession() {
|
|
7167
|
-
const { client } =
|
|
7192
|
+
const { client } = chunkSQTHTE2Y_cjs.useAccountClient();
|
|
7168
7193
|
const qc = reactQuery.useQueryClient();
|
|
7169
7194
|
return reactQuery.useMutation({
|
|
7170
7195
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
@@ -7172,7 +7197,7 @@ function useTerminateSession() {
|
|
|
7172
7197
|
});
|
|
7173
7198
|
}
|
|
7174
7199
|
function useSignOut() {
|
|
7175
|
-
const { client } =
|
|
7200
|
+
const { client } = chunkSQTHTE2Y_cjs.useAccountClient();
|
|
7176
7201
|
const qc = reactQuery.useQueryClient();
|
|
7177
7202
|
return reactQuery.useMutation({
|
|
7178
7203
|
mutationFn: (options = {}) => client.signOut(options),
|
|
@@ -7180,7 +7205,7 @@ function useSignOut() {
|
|
|
7180
7205
|
});
|
|
7181
7206
|
}
|
|
7182
7207
|
function useCurrentSessionId() {
|
|
7183
|
-
return
|
|
7208
|
+
return chunkSQTHTE2Y_cjs.useAccountClient().client.currentSessionId();
|
|
7184
7209
|
}
|
|
7185
7210
|
function parseDeleteAccountBlockers(error) {
|
|
7186
7211
|
const body = error?.apiError ?? error;
|
|
@@ -7195,7 +7220,7 @@ function parseDeleteAccountBlockers(error) {
|
|
|
7195
7220
|
return [];
|
|
7196
7221
|
}
|
|
7197
7222
|
function useDeleteAccount() {
|
|
7198
|
-
const { client } =
|
|
7223
|
+
const { client } = chunkSQTHTE2Y_cjs.useAccountClient();
|
|
7199
7224
|
return reactQuery.useMutation({ mutationFn: () => client.requestDeletion() });
|
|
7200
7225
|
}
|
|
7201
7226
|
function useDeleteAccountFlow({
|
|
@@ -7517,7 +7542,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
7517
7542
|
};
|
|
7518
7543
|
}
|
|
7519
7544
|
function useIdentityVerification(options = {}) {
|
|
7520
|
-
const { client, enabled } =
|
|
7545
|
+
const { client, enabled } = chunkSQTHTE2Y_cjs.useAccountClient();
|
|
7521
7546
|
const qc = reactQuery.useQueryClient();
|
|
7522
7547
|
const { onVerifiedChange, onNameAccepted, formatPrice } = options;
|
|
7523
7548
|
return useIdentityVerificationFlow(client.identity, {
|
|
@@ -8737,7 +8762,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
8737
8762
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
8738
8763
|
}
|
|
8739
8764
|
function useAiTask() {
|
|
8740
|
-
const mutation =
|
|
8765
|
+
const mutation = chunkKYEWJVD2_cjs.useAssistantQuery();
|
|
8741
8766
|
const [status, setStatus] = React.useState("idle");
|
|
8742
8767
|
const [text, setText] = React.useState("");
|
|
8743
8768
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -10175,7 +10200,7 @@ function ActivityFeed({
|
|
|
10175
10200
|
enabled,
|
|
10176
10201
|
"data-testid": testId = "activity-feed"
|
|
10177
10202
|
}) {
|
|
10178
|
-
const { data, isLoading, isError } =
|
|
10203
|
+
const { data, isLoading, isError } = chunkKYEWJVD2_cjs.useActivity({ limit, enabled });
|
|
10179
10204
|
if (isLoading) {
|
|
10180
10205
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: chunkS6A6FSG7_cjs.cn("space-y-2", className), "data-testid": testId, "aria-busy": "true", children: Array.from({ length: 3 }).map((_, i) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-3 py-1.5", children: [
|
|
10181
10206
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -10248,7 +10273,7 @@ function useNotifications(options = {}) {
|
|
|
10248
10273
|
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10249
10274
|
const queries = reactQuery.useQueryClient();
|
|
10250
10275
|
const limit = options.limit ?? 100;
|
|
10251
|
-
const ws = React.useContext(
|
|
10276
|
+
const ws = React.useContext(chunkSQTHTE2Y_cjs.ArbiWsContext);
|
|
10252
10277
|
React.useEffect(
|
|
10253
10278
|
() => ws?.subscribe((message) => {
|
|
10254
10279
|
if ("sender" in message && "recipient" in message)
|
|
@@ -10657,657 +10682,164 @@ function userDisplayName(user) {
|
|
|
10657
10682
|
function isAgentUser(user) {
|
|
10658
10683
|
return user.external_id.startsWith("agt-");
|
|
10659
10684
|
}
|
|
10660
|
-
function
|
|
10661
|
-
const
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10675
|
-
|
|
10676
|
-
|
|
10677
|
-
|
|
10678
|
-
}),
|
|
10679
|
-
[ws, queryClient]
|
|
10685
|
+
function DmAvatar({ user, className, size = "lg" }) {
|
|
10686
|
+
const presence = useArbiWsStore((s) => s.presence[user.external_id]);
|
|
10687
|
+
const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
|
|
10688
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10689
|
+
chunk7NHOKV7N_cjs.UserEntity,
|
|
10690
|
+
{
|
|
10691
|
+
variant: "icon",
|
|
10692
|
+
size,
|
|
10693
|
+
className,
|
|
10694
|
+
interactive: false,
|
|
10695
|
+
showTooltip: false,
|
|
10696
|
+
initials: userInitials(user),
|
|
10697
|
+
displayName: userDisplayName(user),
|
|
10698
|
+
picture: user.picture,
|
|
10699
|
+
avatarStyle: chunk7NHOKV7N_cjs.getEntityColorStyles(user.external_id),
|
|
10700
|
+
isAgent: isAgentUser(user),
|
|
10701
|
+
displayStatus
|
|
10702
|
+
}
|
|
10680
10703
|
);
|
|
10681
10704
|
}
|
|
10682
|
-
function
|
|
10683
|
-
|
|
10684
|
-
|
|
10685
|
-
|
|
10686
|
-
|
|
10687
|
-
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
}
|
|
10692
|
-
|
|
10693
|
-
|
|
10694
|
-
|
|
10695
|
-
|
|
10696
|
-
|
|
10697
|
-
|
|
10698
|
-
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10704
|
-
|
|
10705
|
-
|
|
10705
|
+
function ConversationList({
|
|
10706
|
+
conversations,
|
|
10707
|
+
selectedPeerId,
|
|
10708
|
+
onSelect,
|
|
10709
|
+
classNames,
|
|
10710
|
+
emptyState,
|
|
10711
|
+
header,
|
|
10712
|
+
lead,
|
|
10713
|
+
className
|
|
10714
|
+
}) {
|
|
10715
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
10716
|
+
"aside",
|
|
10717
|
+
{
|
|
10718
|
+
className: chunkS6A6FSG7_cjs.cn(
|
|
10719
|
+
"flex min-h-0 flex-col border-b border-border md:w-80 md:shrink-0 md:border-b-0 md:border-r",
|
|
10720
|
+
className
|
|
10721
|
+
),
|
|
10722
|
+
"data-testid": "arbi-dm-list",
|
|
10723
|
+
children: [
|
|
10724
|
+
header === void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-3", children: [
|
|
10725
|
+
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-foreground", children: "Conversations" }),
|
|
10726
|
+
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
10727
|
+
conversations.length,
|
|
10728
|
+
" ",
|
|
10729
|
+
conversations.length === 1 ? "colleague" : "colleagues"
|
|
10730
|
+
] })
|
|
10731
|
+
] }) : header,
|
|
10732
|
+
lead,
|
|
10733
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: conversations.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 py-6 text-xs text-muted-foreground", children: emptyState ?? "No conversations yet." }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "w-full", children: conversations.map((c, i) => {
|
|
10734
|
+
const { peer, lastMessage, unreadCount } = c;
|
|
10735
|
+
const rowId = c.id ?? peer.external_id;
|
|
10736
|
+
const newSection = c.sectionLabel && c.sectionLabel !== conversations[i - 1]?.sectionLabel;
|
|
10737
|
+
const active = rowId === selectedPeerId;
|
|
10738
|
+
const preview = lastMessage?.body ?? "No messages yet \u2014 say hello";
|
|
10739
|
+
const unread = unreadCount > 0;
|
|
10740
|
+
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
10741
|
+
c.leading ?? /* @__PURE__ */ jsxRuntime.jsx(DmAvatar, { user: peer }),
|
|
10742
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
10743
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
10744
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
10745
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10746
|
+
"span",
|
|
10747
|
+
{
|
|
10748
|
+
className: chunkS6A6FSG7_cjs.cn(
|
|
10749
|
+
"truncate text-sm text-foreground",
|
|
10750
|
+
unread ? "font-bold" : "font-semibold"
|
|
10751
|
+
),
|
|
10752
|
+
children: c.title ?? userDisplayName(peer)
|
|
10753
|
+
}
|
|
10754
|
+
),
|
|
10755
|
+
c.badge ?? (isAgentUser(peer) ? /* @__PURE__ */ jsxRuntime.jsx(chunk7NHOKV7N_cjs.AgentBadge, {}) : null)
|
|
10756
|
+
] }),
|
|
10757
|
+
c.statusLabel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10758
|
+
chunk7NHOKV7N_cjs.Badge,
|
|
10759
|
+
{
|
|
10760
|
+
variant: "outline",
|
|
10761
|
+
className: "shrink-0 rounded-full px-2 py-0 text-xs font-medium text-muted-foreground",
|
|
10762
|
+
children: c.statusLabel
|
|
10763
|
+
}
|
|
10764
|
+
) : unreadCount > 0 ? (
|
|
10765
|
+
// Quiet by default: a filled brand pill with a shadow
|
|
10766
|
+
// shouted louder than the message it was counting.
|
|
10767
|
+
// Enough to catch the eye scanning the list, no more.
|
|
10768
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10769
|
+
chunk7NHOKV7N_cjs.Badge,
|
|
10770
|
+
{
|
|
10771
|
+
variant: "accent",
|
|
10772
|
+
className: chunkS6A6FSG7_cjs.cn(
|
|
10773
|
+
"min-w-[1.125rem] justify-center rounded-full px-1 py-0 text-xs font-medium leading-[1.125rem] shadow-none",
|
|
10774
|
+
classNames?.unreadBadge
|
|
10775
|
+
),
|
|
10776
|
+
children: unreadCount
|
|
10777
|
+
}
|
|
10778
|
+
)
|
|
10779
|
+
) : null
|
|
10780
|
+
] }),
|
|
10781
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-1 flex items-center gap-1.5", children: [
|
|
10782
|
+
lastMessage?.isMine ? lastMessage.read ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
10783
|
+
lucideReact.CheckCheck,
|
|
10784
|
+
{
|
|
10785
|
+
className: "size-3.5 shrink-0 text-ai-accent",
|
|
10786
|
+
"aria-label": "Read"
|
|
10787
|
+
}
|
|
10788
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
10789
|
+
lucideReact.Check,
|
|
10790
|
+
{
|
|
10791
|
+
className: "size-3.5 shrink-0 text-muted-foreground",
|
|
10792
|
+
"aria-label": "Sent"
|
|
10793
|
+
}
|
|
10794
|
+
) : null,
|
|
10795
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10796
|
+
"p",
|
|
10797
|
+
{
|
|
10798
|
+
className: chunkS6A6FSG7_cjs.cn(
|
|
10799
|
+
"min-w-0 flex-1 truncate text-xs",
|
|
10800
|
+
unread ? "font-medium text-foreground" : "text-muted-foreground"
|
|
10801
|
+
),
|
|
10802
|
+
children: c.subtitle ?? preview
|
|
10803
|
+
}
|
|
10804
|
+
),
|
|
10805
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: lastMessage ? chunkZI2VJOID_cjs.formatRelativeTime(lastMessage.createdAt) : "" })
|
|
10806
|
+
] })
|
|
10807
|
+
] })
|
|
10808
|
+
] });
|
|
10809
|
+
const rowClass = chunkS6A6FSG7_cjs.cn(
|
|
10810
|
+
// Each row is its own opaque surface. Left transparent it takes
|
|
10811
|
+
// the panel's colour, and the chips stop reading as cards at all
|
|
10812
|
+
// — which is the whole point of them.
|
|
10813
|
+
"flex w-full items-start gap-3 border-b border-border/60 bg-card px-4 py-3 text-left transition-colors",
|
|
10814
|
+
c.disabled ? "cursor-default" : active ? "bg-ai-accent-soft" : "hover:bg-accent/40"
|
|
10815
|
+
);
|
|
10816
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
10817
|
+
newSection && /* @__PURE__ */ jsxRuntime.jsx(
|
|
10818
|
+
"p",
|
|
10819
|
+
{
|
|
10820
|
+
className: "bg-muted/40 px-4 py-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
10821
|
+
"data-testid": "arbi-dm-section",
|
|
10822
|
+
children: c.sectionLabel
|
|
10823
|
+
}
|
|
10824
|
+
),
|
|
10825
|
+
c.disabled ? /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": `arbi-dm-conversation-${rowId}`, className: rowClass, children: [
|
|
10826
|
+
body,
|
|
10827
|
+
c.trailing
|
|
10828
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
10829
|
+
"button",
|
|
10830
|
+
{
|
|
10831
|
+
type: "button",
|
|
10832
|
+
onClick: () => onSelect(rowId),
|
|
10833
|
+
"data-testid": `arbi-dm-conversation-${rowId}`,
|
|
10834
|
+
className: rowClass,
|
|
10835
|
+
children: body
|
|
10836
|
+
}
|
|
10837
|
+
)
|
|
10838
|
+
] }, rowId);
|
|
10839
|
+
}) }) })
|
|
10840
|
+
]
|
|
10706
10841
|
}
|
|
10707
|
-
|
|
10708
|
-
}, [data, me]);
|
|
10709
|
-
}
|
|
10710
|
-
function useChatSummaries(chats2) {
|
|
10711
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10712
|
-
const [summaries, setSummaries] = React.useState({});
|
|
10713
|
-
const runId = React.useRef(0);
|
|
10714
|
-
const key = chats2.map(
|
|
10715
|
-
(c) => `${c.external_id}:${c.key_version}:${c.title ?? ""}:${c.last_message?.external_id ?? ""}:${c.last_message?.deleted ? "x" : ""}`
|
|
10716
|
-
).join("|");
|
|
10717
|
-
React.useEffect(() => {
|
|
10718
|
-
if (!chats2.length || !arbi.isLoggedIn) return;
|
|
10719
|
-
const id = ++runId.current;
|
|
10720
|
-
void (async () => {
|
|
10721
|
-
const next = {};
|
|
10722
|
-
for (const chat of chats2) {
|
|
10723
|
-
const title = await arbi.chats.title(chat).catch(() => null);
|
|
10724
|
-
const last = chat.last_message?.deleted ? null : chat.last_message;
|
|
10725
|
-
let preview = null;
|
|
10726
|
-
if (last) {
|
|
10727
|
-
preview = await arbi.chats.decrypt(chat, last).then(browser.chats.chatMessagePreview).catch(() => browser.chats.ENCRYPTED_PREVIEW);
|
|
10728
|
-
}
|
|
10729
|
-
next[chat.external_id] = { title, preview };
|
|
10730
|
-
}
|
|
10731
|
-
if (id === runId.current) setSummaries(next);
|
|
10732
|
-
})();
|
|
10733
|
-
}, [key, arbi]);
|
|
10734
|
-
return summaries;
|
|
10735
|
-
}
|
|
10736
|
-
function useChatThread(chat) {
|
|
10737
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10738
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10739
|
-
const chatExtId = chat?.external_id ?? "";
|
|
10740
|
-
const chatRef = React.useRef(chat);
|
|
10741
|
-
chatRef.current = chat;
|
|
10742
|
-
const query = reactQuery.useQuery({
|
|
10743
|
-
queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chatThread(chatExtId),
|
|
10744
|
-
queryFn: () => arbi.chats.page(chatRef.current),
|
|
10745
|
-
enabled: !!chat && arbi.isLoggedIn,
|
|
10746
|
-
staleTime: Infinity
|
|
10747
|
-
});
|
|
10748
|
-
const [loadingOlder, setLoadingOlder] = React.useState(false);
|
|
10749
|
-
const loadOlder = React.useCallback(async () => {
|
|
10750
|
-
const key = chunkVLK52VXC_cjs.arbiQueryKeys.chatThread(chatExtId);
|
|
10751
|
-
const current = queryClient.getQueryData(key);
|
|
10752
|
-
const oldest = current?.messages.find((m) => !m.optimistic);
|
|
10753
|
-
if (!chatRef.current || !current?.hasMore || !oldest) return;
|
|
10754
|
-
setLoadingOlder(true);
|
|
10755
|
-
try {
|
|
10756
|
-
const page = await arbi.chats.page(chatRef.current, { before: oldest.external_id });
|
|
10757
|
-
queryClient.setQueryData(
|
|
10758
|
-
key,
|
|
10759
|
-
(old) => old ? {
|
|
10760
|
-
hasMore: page.hasMore,
|
|
10761
|
-
messages: [
|
|
10762
|
-
...page.messages.filter(
|
|
10763
|
-
(m) => !old.messages.some((o) => o.external_id === m.external_id)
|
|
10764
|
-
),
|
|
10765
|
-
...old.messages
|
|
10766
|
-
]
|
|
10767
|
-
} : old
|
|
10768
|
-
);
|
|
10769
|
-
} finally {
|
|
10770
|
-
setLoadingOlder(false);
|
|
10771
|
-
}
|
|
10772
|
-
}, [arbi, queryClient, chatExtId]);
|
|
10773
|
-
return {
|
|
10774
|
-
messages: query.data?.messages ?? [],
|
|
10775
|
-
hasMore: query.data?.hasMore ?? false,
|
|
10776
|
-
isLoading: query.isLoading && !!chat,
|
|
10777
|
-
loadOlder,
|
|
10778
|
-
loadingOlder
|
|
10779
|
-
};
|
|
10780
|
-
}
|
|
10781
|
-
function useChatPost() {
|
|
10782
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10783
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10784
|
-
return React.useCallback(
|
|
10785
|
-
async (target, post) => {
|
|
10786
|
-
const me = chunkZGW7PN4G_cjs.myChatId(arbi);
|
|
10787
|
-
if (!me) throw new Error("No active session");
|
|
10788
|
-
let chat = target.chat;
|
|
10789
|
-
if (!chat) {
|
|
10790
|
-
if (!target.peerExtId) throw new Error("Could not resolve the conversation");
|
|
10791
|
-
chat = await arbi.chats.openDirect(target.peerExtId);
|
|
10792
|
-
chunkZGW7PN4G_cjs.upsertChat(queryClient, chat);
|
|
10793
|
-
queryClient.setQueryData(
|
|
10794
|
-
chunkVLK52VXC_cjs.arbiQueryKeys.chatThread(chat.external_id),
|
|
10795
|
-
(old) => old ?? { messages: [], hasMore: false }
|
|
10796
|
-
);
|
|
10797
|
-
}
|
|
10798
|
-
const files = post.files ?? [];
|
|
10799
|
-
const optimisticId = `optimistic-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`;
|
|
10800
|
-
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
10801
|
-
const optimistic = {
|
|
10802
|
-
external_id: optimisticId,
|
|
10803
|
-
chat_ext_id: chat.external_id,
|
|
10804
|
-
sender_ext_id: me,
|
|
10805
|
-
kind: "text",
|
|
10806
|
-
content: post.text,
|
|
10807
|
-
key_version: chat.key_version,
|
|
10808
|
-
deleted: false,
|
|
10809
|
-
context_only: !!post.contextOnly,
|
|
10810
|
-
workspace_ext_id: post.workspaceExtId ?? null,
|
|
10811
|
-
created_at: now,
|
|
10812
|
-
updated_at: now,
|
|
10813
|
-
optimistic: true
|
|
10814
|
-
};
|
|
10815
|
-
chunkZGW7PN4G_cjs.appendToThread(queryClient, chat.external_id, optimistic);
|
|
10816
|
-
try {
|
|
10817
|
-
let attachments = [];
|
|
10818
|
-
if (files.length) {
|
|
10819
|
-
browser.chats.checkChatAttachmentLimits(files);
|
|
10820
|
-
attachments = await arbi.chats.uploadAttachments(
|
|
10821
|
-
await Promise.all(
|
|
10822
|
-
files.map(async (file) => ({
|
|
10823
|
-
name: file.name,
|
|
10824
|
-
type: file.type,
|
|
10825
|
-
bytes: new Uint8Array(await file.arrayBuffer())
|
|
10826
|
-
}))
|
|
10827
|
-
)
|
|
10828
|
-
);
|
|
10829
|
-
}
|
|
10830
|
-
const message = await arbi.chats.send(chat, post.text, {
|
|
10831
|
-
attachments,
|
|
10832
|
-
...post.workspaceExtId ? { workspaceExtId: post.workspaceExtId } : {},
|
|
10833
|
-
contextOnly: !!post.contextOnly
|
|
10834
|
-
});
|
|
10835
|
-
chunkZGW7PN4G_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
|
|
10836
|
-
chunkZGW7PN4G_cjs.upsertChat(queryClient, {
|
|
10837
|
-
...chat,
|
|
10838
|
-
last_message: message,
|
|
10839
|
-
last_message_at: message.created_at
|
|
10840
|
-
});
|
|
10841
|
-
return { chat, message };
|
|
10842
|
-
} catch (err) {
|
|
10843
|
-
chunkZGW7PN4G_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
|
|
10844
|
-
void queryClient.invalidateQueries({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chatList() });
|
|
10845
|
-
throw err;
|
|
10846
|
-
}
|
|
10847
|
-
},
|
|
10848
|
-
[arbi, queryClient]
|
|
10849
|
-
);
|
|
10850
|
-
}
|
|
10851
|
-
function useDeleteChatMessage() {
|
|
10852
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10853
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10854
|
-
return React.useCallback(
|
|
10855
|
-
(chatExtId, messageExtId) => chunkZGW7PN4G_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
|
|
10856
|
-
[arbi, queryClient]
|
|
10857
|
-
);
|
|
10858
|
-
}
|
|
10859
|
-
function useMarkChatRead() {
|
|
10860
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10861
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10862
|
-
return React.useCallback(
|
|
10863
|
-
(chat, messageExtId) => {
|
|
10864
|
-
chunkZGW7PN4G_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
|
|
10865
|
-
return arbi.chats.markRead(chat.external_id, messageExtId).then(
|
|
10866
|
-
() => void 0,
|
|
10867
|
-
() => void 0
|
|
10868
|
-
);
|
|
10869
|
-
},
|
|
10870
|
-
[arbi, queryClient]
|
|
10871
|
-
);
|
|
10872
|
-
}
|
|
10873
|
-
function useCreateGroupChat() {
|
|
10874
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10875
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10876
|
-
return reactQuery.useMutation({
|
|
10877
|
-
mutationFn: (params) => arbi.chats.createGroup(params),
|
|
10878
|
-
onSuccess: (chat) => chunkZGW7PN4G_cjs.upsertChat(queryClient, chat)
|
|
10879
|
-
});
|
|
10880
|
-
}
|
|
10881
|
-
function useRenameChat() {
|
|
10882
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10883
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10884
|
-
return reactQuery.useMutation({
|
|
10885
|
-
mutationFn: (vars) => arbi.chats.rename(vars.chat, vars.title),
|
|
10886
|
-
onSuccess: (chat) => chunkZGW7PN4G_cjs.upsertChat(queryClient, chat)
|
|
10887
|
-
});
|
|
10888
|
-
}
|
|
10889
|
-
function useAddChatMembers() {
|
|
10890
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10891
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10892
|
-
return reactQuery.useMutation({
|
|
10893
|
-
mutationFn: (vars) => arbi.chats.addMembers(vars.chat, vars.members, { callKey: vars.callKey }),
|
|
10894
|
-
onSuccess: (chat) => chunkZGW7PN4G_cjs.upsertChat(queryClient, chat)
|
|
10895
|
-
});
|
|
10896
|
-
}
|
|
10897
|
-
function useRemoveChatMember() {
|
|
10898
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10899
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10900
|
-
return reactQuery.useMutation({
|
|
10901
|
-
mutationFn: (vars) => arbi.chats.removeMember(vars.chat, vars.userExtId),
|
|
10902
|
-
onSuccess: (_data, vars) => {
|
|
10903
|
-
if (vars.userExtId === chunkZGW7PN4G_cjs.myChatId(arbi)) chunkZGW7PN4G_cjs.removeChat(queryClient, vars.chat.external_id);
|
|
10904
|
-
else return queryClient.invalidateQueries({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chatList() });
|
|
10905
|
-
}
|
|
10906
|
-
});
|
|
10907
|
-
}
|
|
10908
|
-
|
|
10909
|
-
// src/directmessages/useDirectMessages.ts
|
|
10910
|
-
function mergeContacts(threads, contacts) {
|
|
10911
|
-
const byPeer = /* @__PURE__ */ new Map();
|
|
10912
|
-
for (const t of threads) byPeer.set(t.peer.external_id, t);
|
|
10913
|
-
for (const c of contacts) {
|
|
10914
|
-
const peer = c.user;
|
|
10915
|
-
if (!peer?.external_id || byPeer.has(peer.external_id)) continue;
|
|
10916
|
-
byPeer.set(peer.external_id, { peer, messages: [], unreadCount: 0, isContactOnly: true });
|
|
10917
|
-
}
|
|
10918
|
-
return [...byPeer.values()].sort((a, b) => {
|
|
10919
|
-
const at = a.lastMessage?.createdAt;
|
|
10920
|
-
const bt = b.lastMessage?.createdAt;
|
|
10921
|
-
if (at && bt) return bt.localeCompare(at);
|
|
10922
|
-
if (at) return -1;
|
|
10923
|
-
if (bt) return 1;
|
|
10924
|
-
return userDisplayName(a.peer).localeCompare(userDisplayName(b.peer));
|
|
10925
|
-
});
|
|
10926
|
-
}
|
|
10927
|
-
function toConversation(chat, thread, myExtId) {
|
|
10928
|
-
const peerMember = chat.members.find((m) => m.user.external_id !== myExtId);
|
|
10929
|
-
if (!peerMember) return null;
|
|
10930
|
-
const meMember = chat.members.find((m) => m.user.external_id === myExtId);
|
|
10931
|
-
const peer = peerMember.user;
|
|
10932
|
-
const userById = new Map(chat.members.map((m) => [m.user.external_id, m.user]));
|
|
10933
|
-
const messages = (thread?.messages ?? []).filter((m) => m.kind === "text" && !m.context_only).map((m) => {
|
|
10934
|
-
const isMine = m.sender_ext_id === myExtId;
|
|
10935
|
-
const sender = userById.get(m.sender_ext_id ?? "") ?? { external_id: m.sender_ext_id ?? "usr-unknown" };
|
|
10936
|
-
return {
|
|
10937
|
-
externalId: m.external_id,
|
|
10938
|
-
// A tombstone (deleted) has no content: it renders as "Message deleted".
|
|
10939
|
-
body: m.deleted ? "" : m.content ?? "",
|
|
10940
|
-
createdAt: m.created_at,
|
|
10941
|
-
isMine,
|
|
10942
|
-
// Mine: has the peer read it? Theirs: have I? (Never for a send still in flight.)
|
|
10943
|
-
read: !m.optimistic && browser.chats.hasRead(isMine ? peerMember : meMember, m),
|
|
10944
|
-
sender,
|
|
10945
|
-
recipient: isMine ? peer : meMember?.user,
|
|
10946
|
-
chatExtId: chat.external_id,
|
|
10947
|
-
...m.deleted ? { deleted: true } : {}
|
|
10948
|
-
};
|
|
10949
|
-
});
|
|
10950
|
-
messages.sort((a, b) => a.createdAt.localeCompare(b.createdAt));
|
|
10951
|
-
if (messages.length === 0) return null;
|
|
10952
|
-
const shown = messages.filter((m) => !m.deleted);
|
|
10953
|
-
return {
|
|
10954
|
-
peer,
|
|
10955
|
-
chatExtId: chat.external_id,
|
|
10956
|
-
messages,
|
|
10957
|
-
lastMessage: shown[shown.length - 1],
|
|
10958
|
-
unreadCount: chat.unread_count ?? 0
|
|
10959
|
-
};
|
|
10960
|
-
}
|
|
10961
|
-
function combineThreads(results) {
|
|
10962
|
-
return {
|
|
10963
|
-
data: results.map((r) => r.data),
|
|
10964
|
-
error: results.find((r) => r.isError)?.error ?? null
|
|
10965
|
-
};
|
|
10966
|
-
}
|
|
10967
|
-
function directPeerId(chat, myExtId) {
|
|
10968
|
-
return chat.members.find((m) => m.user.external_id !== myExtId)?.user.external_id ?? myExtId;
|
|
10969
|
-
}
|
|
10970
|
-
function useDirectMessages(options) {
|
|
10971
|
-
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
10972
|
-
const queryClient = reactQuery.useQueryClient();
|
|
10973
|
-
const enabled = (options?.enabled ?? true) && arbi.isLoggedIn;
|
|
10974
|
-
useChatLiveUpdates();
|
|
10975
|
-
const chatsQuery = useChats({ enabled });
|
|
10976
|
-
const direct = React.useMemo(
|
|
10977
|
-
() => (chatsQuery.data ?? []).filter((c) => c.kind === "direct"),
|
|
10978
|
-
[chatsQuery.data]
|
|
10979
|
-
);
|
|
10980
|
-
const threads = reactQuery.useQueries({
|
|
10981
|
-
queries: direct.map((chat) => ({
|
|
10982
|
-
queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chatThread(chat.external_id),
|
|
10983
|
-
queryFn: () => arbi.chats.page(chat),
|
|
10984
|
-
enabled,
|
|
10985
|
-
staleTime: Infinity
|
|
10986
|
-
})),
|
|
10987
|
-
combine: combineThreads
|
|
10988
|
-
});
|
|
10989
|
-
const contactsQuery = reactQuery.useQuery({
|
|
10990
|
-
queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.contacts(),
|
|
10991
|
-
queryFn: () => arbi.contacts.list(),
|
|
10992
|
-
enabled
|
|
10993
|
-
});
|
|
10994
|
-
const myExtId = chunkZGW7PN4G_cjs.myChatId(arbi);
|
|
10995
|
-
const conversations = React.useMemo(() => {
|
|
10996
|
-
const rows = direct.map((chat, i) => toConversation(chat, threads.data[i], myExtId)).filter((c) => c !== null);
|
|
10997
|
-
return mergeContacts(rows, contactsQuery.data ?? []);
|
|
10998
|
-
}, [direct, threads.data, contactsQuery.data, myExtId]);
|
|
10999
|
-
const post = useChatPost();
|
|
11000
|
-
const markChatRead = useMarkChatRead();
|
|
11001
|
-
const [sending, setSending] = React.useState(0);
|
|
11002
|
-
const [sendError, setSendError] = React.useState(null);
|
|
11003
|
-
const sendToPeer = React.useCallback(
|
|
11004
|
-
async (peerExtId, text) => {
|
|
11005
|
-
setSending((n) => n + 1);
|
|
11006
|
-
setSendError(null);
|
|
11007
|
-
try {
|
|
11008
|
-
const chat = chunkZGW7PN4G_cjs.cachedChats(queryClient).find(
|
|
11009
|
-
(c) => c.kind === "direct" && directPeerId(c, myExtId) === peerExtId
|
|
11010
|
-
) ?? null;
|
|
11011
|
-
return (await post({ chat, peerExtId }, { text })).message;
|
|
11012
|
-
} catch (err) {
|
|
11013
|
-
setSendError(err instanceof Error ? err : new Error(String(err)));
|
|
11014
|
-
throw err;
|
|
11015
|
-
} finally {
|
|
11016
|
-
setSending((n) => n - 1);
|
|
11017
|
-
}
|
|
11018
|
-
},
|
|
11019
|
-
[post, queryClient, myExtId]
|
|
11020
|
-
);
|
|
11021
|
-
return {
|
|
11022
|
-
conversations,
|
|
11023
|
-
myExtId,
|
|
11024
|
-
isLoading: (chatsQuery.isLoading || contactsQuery.isLoading) && enabled,
|
|
11025
|
-
isError: chatsQuery.isError || threads.error !== null,
|
|
11026
|
-
error: chatsQuery.error ?? threads.error,
|
|
11027
|
-
refetch: () => void queryClient.invalidateQueries({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chats() }),
|
|
11028
|
-
sendMessage: (recipientExtId, _recipientPublicKey, text) => sendToPeer(recipientExtId, text),
|
|
11029
|
-
sendMessageTo: async (recipient, text) => {
|
|
11030
|
-
if (!recipient.includes("@")) return sendToPeer(recipient, text);
|
|
11031
|
-
const resolved = await arbi.dm.resolveRecipient(recipient).catch(() => null);
|
|
11032
|
-
if (!resolved) {
|
|
11033
|
-
const err = new Error(
|
|
11034
|
-
`Could not resolve recipient "${recipient}" (not a known contact, agent, or workspace member)`
|
|
11035
|
-
);
|
|
11036
|
-
setSendError(err);
|
|
11037
|
-
throw err;
|
|
11038
|
-
}
|
|
11039
|
-
return sendToPeer(resolved.extId, text);
|
|
11040
|
-
},
|
|
11041
|
-
isSending: sending > 0,
|
|
11042
|
-
sendError,
|
|
11043
|
-
markRead: (chatExtId, messageExtId) => {
|
|
11044
|
-
const chat = (chatsQuery.data ?? []).find((c) => c.external_id === chatExtId);
|
|
11045
|
-
return chat ? markChatRead(chat, messageExtId) : arbi.chats.markRead(chatExtId, messageExtId);
|
|
11046
|
-
}
|
|
11047
|
-
};
|
|
11048
|
-
}
|
|
11049
|
-
function DmAvatar({ user, className, size = "lg" }) {
|
|
11050
|
-
const presence = useArbiWsStore((s) => s.presence[user.external_id]);
|
|
11051
|
-
const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
|
|
11052
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11053
|
-
chunk7NHOKV7N_cjs.UserEntity,
|
|
11054
|
-
{
|
|
11055
|
-
variant: "icon",
|
|
11056
|
-
size,
|
|
11057
|
-
className,
|
|
11058
|
-
interactive: false,
|
|
11059
|
-
showTooltip: false,
|
|
11060
|
-
initials: userInitials(user),
|
|
11061
|
-
displayName: userDisplayName(user),
|
|
11062
|
-
picture: user.picture,
|
|
11063
|
-
avatarStyle: chunk7NHOKV7N_cjs.getEntityColorStyles(user.external_id),
|
|
11064
|
-
isAgent: isAgentUser(user),
|
|
11065
|
-
displayStatus
|
|
11066
|
-
}
|
|
11067
|
-
);
|
|
11068
|
-
}
|
|
11069
|
-
function ConversationList({
|
|
11070
|
-
conversations,
|
|
11071
|
-
selectedPeerId,
|
|
11072
|
-
onSelect,
|
|
11073
|
-
classNames,
|
|
11074
|
-
emptyState,
|
|
11075
|
-
header,
|
|
11076
|
-
lead,
|
|
11077
|
-
className
|
|
11078
|
-
}) {
|
|
11079
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
11080
|
-
"aside",
|
|
11081
|
-
{
|
|
11082
|
-
className: chunkS6A6FSG7_cjs.cn(
|
|
11083
|
-
"flex min-h-0 flex-col border-b border-border md:w-80 md:shrink-0 md:border-b-0 md:border-r",
|
|
11084
|
-
className
|
|
11085
|
-
),
|
|
11086
|
-
"data-testid": "arbi-dm-list",
|
|
11087
|
-
children: [
|
|
11088
|
-
header === void 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "border-b border-border px-4 py-3", children: [
|
|
11089
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-foreground", children: "Conversations" }),
|
|
11090
|
-
/* @__PURE__ */ jsxRuntime.jsxs("p", { className: "text-xs text-muted-foreground", children: [
|
|
11091
|
-
conversations.length,
|
|
11092
|
-
" ",
|
|
11093
|
-
conversations.length === 1 ? "colleague" : "colleagues"
|
|
11094
|
-
] })
|
|
11095
|
-
] }) : header,
|
|
11096
|
-
lead,
|
|
11097
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto", children: conversations.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-4 py-6 text-xs text-muted-foreground", children: emptyState ?? "No conversations yet." }) : /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "w-full", children: conversations.map((c, i) => {
|
|
11098
|
-
const { peer, lastMessage, unreadCount } = c;
|
|
11099
|
-
const rowId = c.id ?? peer.external_id;
|
|
11100
|
-
const newSection = c.sectionLabel && c.sectionLabel !== conversations[i - 1]?.sectionLabel;
|
|
11101
|
-
const active = rowId === selectedPeerId;
|
|
11102
|
-
const preview = lastMessage?.body ?? "No messages yet \u2014 say hello";
|
|
11103
|
-
const unread = unreadCount > 0;
|
|
11104
|
-
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11105
|
-
c.leading ?? /* @__PURE__ */ jsxRuntime.jsx(DmAvatar, { user: peer }),
|
|
11106
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
11107
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center justify-between gap-2", children: [
|
|
11108
|
-
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "flex min-w-0 items-center gap-1.5", children: [
|
|
11109
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11110
|
-
"span",
|
|
11111
|
-
{
|
|
11112
|
-
className: chunkS6A6FSG7_cjs.cn(
|
|
11113
|
-
"truncate text-sm text-foreground",
|
|
11114
|
-
unread ? "font-bold" : "font-semibold"
|
|
11115
|
-
),
|
|
11116
|
-
children: c.title ?? userDisplayName(peer)
|
|
11117
|
-
}
|
|
11118
|
-
),
|
|
11119
|
-
c.badge ?? (isAgentUser(peer) ? /* @__PURE__ */ jsxRuntime.jsx(chunk7NHOKV7N_cjs.AgentBadge, {}) : null)
|
|
11120
|
-
] }),
|
|
11121
|
-
c.statusLabel ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
11122
|
-
chunk7NHOKV7N_cjs.Badge,
|
|
11123
|
-
{
|
|
11124
|
-
variant: "outline",
|
|
11125
|
-
className: "shrink-0 rounded-full px-2 py-0 text-xs font-medium text-muted-foreground",
|
|
11126
|
-
children: c.statusLabel
|
|
11127
|
-
}
|
|
11128
|
-
) : unreadCount > 0 ? (
|
|
11129
|
-
// Quiet by default: a filled brand pill with a shadow
|
|
11130
|
-
// shouted louder than the message it was counting.
|
|
11131
|
-
// Enough to catch the eye scanning the list, no more.
|
|
11132
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11133
|
-
chunk7NHOKV7N_cjs.Badge,
|
|
11134
|
-
{
|
|
11135
|
-
variant: "accent",
|
|
11136
|
-
className: chunkS6A6FSG7_cjs.cn(
|
|
11137
|
-
"min-w-[1.125rem] justify-center rounded-full px-1 py-0 text-xs font-medium leading-[1.125rem] shadow-none",
|
|
11138
|
-
classNames?.unreadBadge
|
|
11139
|
-
),
|
|
11140
|
-
children: unreadCount
|
|
11141
|
-
}
|
|
11142
|
-
)
|
|
11143
|
-
) : null
|
|
11144
|
-
] }),
|
|
11145
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "mt-1 flex items-center gap-1.5", children: [
|
|
11146
|
-
lastMessage?.isMine ? lastMessage.read ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
11147
|
-
lucideReact.CheckCheck,
|
|
11148
|
-
{
|
|
11149
|
-
className: "size-3.5 shrink-0 text-ai-accent",
|
|
11150
|
-
"aria-label": "Read"
|
|
11151
|
-
}
|
|
11152
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
11153
|
-
lucideReact.Check,
|
|
11154
|
-
{
|
|
11155
|
-
className: "size-3.5 shrink-0 text-muted-foreground",
|
|
11156
|
-
"aria-label": "Sent"
|
|
11157
|
-
}
|
|
11158
|
-
) : null,
|
|
11159
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11160
|
-
"p",
|
|
11161
|
-
{
|
|
11162
|
-
className: chunkS6A6FSG7_cjs.cn(
|
|
11163
|
-
"min-w-0 flex-1 truncate text-xs",
|
|
11164
|
-
unread ? "font-medium text-foreground" : "text-muted-foreground"
|
|
11165
|
-
),
|
|
11166
|
-
children: c.subtitle ?? preview
|
|
11167
|
-
}
|
|
11168
|
-
),
|
|
11169
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "shrink-0 text-xs text-muted-foreground", children: lastMessage ? chunkZI2VJOID_cjs.formatRelativeTime(lastMessage.createdAt) : "" })
|
|
11170
|
-
] })
|
|
11171
|
-
] })
|
|
11172
|
-
] });
|
|
11173
|
-
const rowClass = chunkS6A6FSG7_cjs.cn(
|
|
11174
|
-
// Each row is its own opaque surface. Left transparent it takes
|
|
11175
|
-
// the panel's colour, and the chips stop reading as cards at all
|
|
11176
|
-
// — which is the whole point of them.
|
|
11177
|
-
"flex w-full items-start gap-3 border-b border-border/60 bg-card px-4 py-3 text-left transition-colors",
|
|
11178
|
-
c.disabled ? "cursor-default" : active ? "bg-ai-accent-soft" : "hover:bg-accent/40"
|
|
11179
|
-
);
|
|
11180
|
-
return /* @__PURE__ */ jsxRuntime.jsxs("li", { children: [
|
|
11181
|
-
newSection && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11182
|
-
"p",
|
|
11183
|
-
{
|
|
11184
|
-
className: "bg-muted/40 px-4 py-1.5 text-xs font-medium uppercase tracking-wide text-muted-foreground",
|
|
11185
|
-
"data-testid": "arbi-dm-section",
|
|
11186
|
-
children: c.sectionLabel
|
|
11187
|
-
}
|
|
11188
|
-
),
|
|
11189
|
-
c.disabled ? /* @__PURE__ */ jsxRuntime.jsxs("div", { "data-testid": `arbi-dm-conversation-${rowId}`, className: rowClass, children: [
|
|
11190
|
-
body,
|
|
11191
|
-
c.trailing
|
|
11192
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
11193
|
-
"button",
|
|
11194
|
-
{
|
|
11195
|
-
type: "button",
|
|
11196
|
-
onClick: () => onSelect(rowId),
|
|
11197
|
-
"data-testid": `arbi-dm-conversation-${rowId}`,
|
|
11198
|
-
className: rowClass,
|
|
11199
|
-
children: body
|
|
11200
|
-
}
|
|
11201
|
-
)
|
|
11202
|
-
] }, rowId);
|
|
11203
|
-
}) }) })
|
|
11204
|
-
]
|
|
11205
|
-
}
|
|
11206
|
-
);
|
|
11207
|
-
}
|
|
11208
|
-
|
|
11209
|
-
// src/directmessages/grouping.ts
|
|
11210
|
-
var RUN_WINDOW_MS = 2 * 60 * 1e3;
|
|
11211
|
-
function dayKey(iso) {
|
|
11212
|
-
const d = new Date(iso);
|
|
11213
|
-
if (Number.isNaN(d.getTime())) return iso;
|
|
11214
|
-
return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
|
|
11215
|
-
}
|
|
11216
|
-
function annotateThread(messages, accessors, runWindowMs = RUN_WINDOW_MS) {
|
|
11217
|
-
const { senderId, createdAt } = accessors;
|
|
11218
|
-
return messages.map((message, i) => {
|
|
11219
|
-
const next = messages[i + 1];
|
|
11220
|
-
const prev = messages[i - 1];
|
|
11221
|
-
const day = dayKey(createdAt(message));
|
|
11222
|
-
const continuesIntoNext = !!next && senderId(next) === senderId(message) && dayKey(createdAt(next)) === day && Date.parse(createdAt(next)) - Date.parse(createdAt(message)) < runWindowMs;
|
|
11223
|
-
return {
|
|
11224
|
-
message,
|
|
11225
|
-
isLastOfRun: !continuesIntoNext,
|
|
11226
|
-
isFirstOfDay: !prev || dayKey(createdAt(prev)) !== day
|
|
11227
|
-
};
|
|
11228
|
-
});
|
|
11229
|
-
}
|
|
11230
|
-
function DateSeparator({ children }) {
|
|
11231
|
-
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-3 flex justify-center", "data-testid": "dm-date-separator", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-background/80 px-2 py-0.5 text-xs text-muted-foreground", children }) });
|
|
11232
|
-
}
|
|
11233
|
-
function MessageBubble({
|
|
11234
|
-
message,
|
|
11235
|
-
classNames,
|
|
11236
|
-
isLastOfRun = true,
|
|
11237
|
-
onDelete,
|
|
11238
|
-
deleted
|
|
11239
|
-
}) {
|
|
11240
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11241
|
-
ChatBubble,
|
|
11242
|
-
{
|
|
11243
|
-
"data-testid": "arbi-dm-message",
|
|
11244
|
-
message: message.body,
|
|
11245
|
-
timestamp: message.createdAt,
|
|
11246
|
-
isSent: message.isMine,
|
|
11247
|
-
read: message.read,
|
|
11248
|
-
deleted,
|
|
11249
|
-
onDelete,
|
|
11250
|
-
isLastOfRun,
|
|
11251
|
-
senderName: message.isMine ? "You" : userDisplayName(message.sender),
|
|
11252
|
-
classNames,
|
|
11253
|
-
formatTimestamp: chunkZI2VJOID_cjs.formatRelativeTime
|
|
11254
|
-
}
|
|
11255
|
-
);
|
|
11256
|
-
}
|
|
11257
|
-
var THREAD_ACCESSORS = {
|
|
11258
|
-
senderId: (m) => m.sender.external_id,
|
|
11259
|
-
createdAt: (m) => m.createdAt
|
|
11260
|
-
};
|
|
11261
|
-
function MessageThread({
|
|
11262
|
-
conversation,
|
|
11263
|
-
classNames,
|
|
11264
|
-
emptyState,
|
|
11265
|
-
formatDay,
|
|
11266
|
-
onDeleteMessage
|
|
11267
|
-
}) {
|
|
11268
|
-
const bottomRef = React.useRef(null);
|
|
11269
|
-
const items = React.useMemo(
|
|
11270
|
-
() => annotateThread(conversation?.messages ?? [], THREAD_ACCESSORS),
|
|
11271
|
-
[conversation?.messages]
|
|
11272
|
-
);
|
|
11273
|
-
React.useEffect(() => {
|
|
11274
|
-
bottomRef.current?.scrollIntoView({ block: "end" });
|
|
11275
|
-
}, [conversation?.id, conversation?.peer.external_id, conversation?.messages.length]);
|
|
11276
|
-
if (!conversation) {
|
|
11277
|
-
return /* @__PURE__ */ jsxRuntime.jsx("section", { className: "flex min-h-0 flex-1 flex-col items-center justify-center gap-3 p-8 text-center", children: emptyState ?? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11278
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex size-14 items-center justify-center rounded-full bg-accent", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.MessagesSquare, { className: "size-6 text-muted-foreground" }) }),
|
|
11279
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
11280
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-sm font-semibold text-foreground", children: "No conversation selected" }),
|
|
11281
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "mx-auto mt-1 max-w-xs text-xs text-muted-foreground", children: "Choose a colleague from the list to read the thread and send a direct message." })
|
|
11282
|
-
] })
|
|
11283
|
-
] }) });
|
|
11284
|
-
}
|
|
11285
|
-
const { peer, title, memberCount } = conversation;
|
|
11286
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11287
|
-
/* @__PURE__ */ jsxRuntime.jsxs("header", { className: "flex items-center gap-3 border-b border-border px-4 py-3", children: [
|
|
11288
|
-
/* @__PURE__ */ jsxRuntime.jsx(DmAvatar, { user: peer, className: "size-9" }),
|
|
11289
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "min-w-0", children: [
|
|
11290
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-sm font-semibold text-foreground", children: title ?? userDisplayName(peer) }),
|
|
11291
|
-
/* @__PURE__ */ jsxRuntime.jsx("p", { className: "truncate text-xs text-muted-foreground", children: memberCount != null ? `${memberCount} members` : peer.email })
|
|
11292
|
-
] })
|
|
11293
|
-
] }),
|
|
11294
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkHUZB36QU_cjs.ScrollArea, { className: "min-h-0 flex-1 bg-background", children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col px-4 py-4", "data-testid": "arbi-dm-thread", children: [
|
|
11295
|
-
items.map(({ message: m, isLastOfRun, isFirstOfDay }) => /* @__PURE__ */ jsxRuntime.jsxs(React.Fragment, { children: [
|
|
11296
|
-
isFirstOfDay && formatDay && /* @__PURE__ */ jsxRuntime.jsx(DateSeparator, { children: formatDay(m.createdAt) }),
|
|
11297
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11298
|
-
MessageBubble,
|
|
11299
|
-
{
|
|
11300
|
-
message: m,
|
|
11301
|
-
classNames,
|
|
11302
|
-
isLastOfRun,
|
|
11303
|
-
deleted: m.deleted,
|
|
11304
|
-
onDelete: onDeleteMessage && !m.deleted ? () => onDeleteMessage(m) : void 0
|
|
11305
|
-
}
|
|
11306
|
-
)
|
|
11307
|
-
] }, m.externalId)),
|
|
11308
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { ref: bottomRef })
|
|
11309
|
-
] }) })
|
|
11310
|
-
] });
|
|
10842
|
+
);
|
|
11311
10843
|
}
|
|
11312
10844
|
function DmComposer({
|
|
11313
10845
|
placeholder,
|
|
@@ -11499,212 +11031,278 @@ function DmComposer({
|
|
|
11499
11031
|
}
|
|
11500
11032
|
);
|
|
11501
11033
|
}
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
const
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
return
|
|
11543
|
-
|
|
11544
|
-
{
|
|
11545
|
-
"
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11551
|
-
|
|
11552
|
-
|
|
11553
|
-
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11560
|
-
|
|
11561
|
-
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11568
|
-
|
|
11569
|
-
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11034
|
+
function useChats(options = {}) {
|
|
11035
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11036
|
+
return reactQuery.useQuery({
|
|
11037
|
+
queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chatList(),
|
|
11038
|
+
queryFn: () => arbi.chats.list(),
|
|
11039
|
+
enabled: (options.enabled ?? true) && arbi.isLoggedIn
|
|
11040
|
+
});
|
|
11041
|
+
}
|
|
11042
|
+
function useChatLiveUpdates() {
|
|
11043
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11044
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11045
|
+
const ws = React.useContext(chunkSQTHTE2Y_cjs.ArbiWsContext);
|
|
11046
|
+
const arbiRef = React.useRef(arbi);
|
|
11047
|
+
arbiRef.current = arbi;
|
|
11048
|
+
React.useEffect(
|
|
11049
|
+
() => ws?.subscribe((message) => {
|
|
11050
|
+
if (message.type.startsWith("chat.") || message.type === "agent_dm_status")
|
|
11051
|
+
void chunkSQTHTE2Y_cjs.applyChatEvent(arbiRef.current, queryClient, message);
|
|
11052
|
+
}),
|
|
11053
|
+
[ws, queryClient]
|
|
11054
|
+
);
|
|
11055
|
+
}
|
|
11056
|
+
function useAgentDmStatus(agentExtId) {
|
|
11057
|
+
const { data } = reactQuery.useQuery({
|
|
11058
|
+
queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.agentDmStatus(agentExtId ?? ""),
|
|
11059
|
+
// Written by the events only: nothing to fetch.
|
|
11060
|
+
queryFn: () => null,
|
|
11061
|
+
enabled: false,
|
|
11062
|
+
staleTime: Infinity
|
|
11063
|
+
});
|
|
11064
|
+
return agentExtId ? data ?? void 0 : void 0;
|
|
11065
|
+
}
|
|
11066
|
+
function useChatUnreadTotal() {
|
|
11067
|
+
const { data = [] } = useChats();
|
|
11068
|
+
return React.useMemo(() => data.reduce((sum, c) => sum + (c.unread_count ?? 0), 0), [data]);
|
|
11069
|
+
}
|
|
11070
|
+
function useUnreadByPeer() {
|
|
11071
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11072
|
+
const { data = [] } = useChats();
|
|
11073
|
+
const me = chunkSQTHTE2Y_cjs.myChatId(arbi);
|
|
11074
|
+
return React.useMemo(() => {
|
|
11075
|
+
const out = /* @__PURE__ */ new Map();
|
|
11076
|
+
for (const c of data) {
|
|
11077
|
+
if (c.kind !== "direct" || !c.unread_count) continue;
|
|
11078
|
+
const peer = c.members.find((m) => m.user.external_id !== me)?.user.external_id ?? me;
|
|
11079
|
+
if (peer) out.set(peer, (out.get(peer) ?? 0) + c.unread_count);
|
|
11080
|
+
}
|
|
11081
|
+
return out;
|
|
11082
|
+
}, [data, me]);
|
|
11083
|
+
}
|
|
11084
|
+
function useChatSummaries(chats2) {
|
|
11085
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11086
|
+
const [summaries, setSummaries] = React.useState({});
|
|
11087
|
+
const runId = React.useRef(0);
|
|
11088
|
+
const key = chats2.map(
|
|
11089
|
+
(c) => `${c.external_id}:${c.key_version}:${c.title ?? ""}:${c.last_message?.external_id ?? ""}:${c.last_message?.deleted ? "x" : ""}`
|
|
11090
|
+
).join("|");
|
|
11091
|
+
React.useEffect(() => {
|
|
11092
|
+
if (!chats2.length || !arbi.isLoggedIn) return;
|
|
11093
|
+
const id = ++runId.current;
|
|
11094
|
+
void (async () => {
|
|
11095
|
+
const next = {};
|
|
11096
|
+
for (const chat of chats2) {
|
|
11097
|
+
const title = await arbi.chats.title(chat).catch(() => null);
|
|
11098
|
+
const last = chat.last_message?.deleted ? null : chat.last_message;
|
|
11099
|
+
let preview = null;
|
|
11100
|
+
if (last) {
|
|
11101
|
+
preview = await arbi.chats.decrypt(chat, last).then(browser.chats.chatMessagePreview).catch(() => browser.chats.ENCRYPTED_PREVIEW);
|
|
11102
|
+
}
|
|
11103
|
+
next[chat.external_id] = { title, preview };
|
|
11104
|
+
}
|
|
11105
|
+
if (id === runId.current) setSummaries(next);
|
|
11106
|
+
})();
|
|
11107
|
+
}, [key, arbi]);
|
|
11108
|
+
return summaries;
|
|
11109
|
+
}
|
|
11110
|
+
function useChatThread(chat) {
|
|
11111
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11112
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11113
|
+
const chatExtId = chat?.external_id ?? "";
|
|
11114
|
+
const chatRef = React.useRef(chat);
|
|
11115
|
+
chatRef.current = chat;
|
|
11116
|
+
const query = reactQuery.useQuery({
|
|
11117
|
+
queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chatThread(chatExtId),
|
|
11118
|
+
queryFn: () => arbi.chats.page(chatRef.current),
|
|
11119
|
+
enabled: !!chat && arbi.isLoggedIn,
|
|
11120
|
+
staleTime: Infinity
|
|
11121
|
+
});
|
|
11122
|
+
const [loadingOlder, setLoadingOlder] = React.useState(false);
|
|
11123
|
+
const loadOlder = React.useCallback(async () => {
|
|
11124
|
+
const key = chunkVLK52VXC_cjs.arbiQueryKeys.chatThread(chatExtId);
|
|
11125
|
+
const current = queryClient.getQueryData(key);
|
|
11126
|
+
const oldest = current?.messages.find((m) => !m.optimistic);
|
|
11127
|
+
if (!chatRef.current || !current?.hasMore || !oldest) return;
|
|
11128
|
+
setLoadingOlder(true);
|
|
11129
|
+
try {
|
|
11130
|
+
const page = await arbi.chats.page(chatRef.current, { before: oldest.external_id });
|
|
11131
|
+
queryClient.setQueryData(
|
|
11132
|
+
key,
|
|
11133
|
+
(old) => old ? {
|
|
11134
|
+
hasMore: page.hasMore,
|
|
11135
|
+
messages: [
|
|
11136
|
+
...page.messages.filter(
|
|
11137
|
+
(m) => !old.messages.some((o) => o.external_id === m.external_id)
|
|
11138
|
+
),
|
|
11139
|
+
...old.messages
|
|
11140
|
+
]
|
|
11141
|
+
} : old
|
|
11142
|
+
);
|
|
11143
|
+
} finally {
|
|
11144
|
+
setLoadingOlder(false);
|
|
11145
|
+
}
|
|
11146
|
+
}, [arbi, queryClient, chatExtId]);
|
|
11147
|
+
return {
|
|
11148
|
+
messages: query.data?.messages ?? [],
|
|
11149
|
+
hasMore: query.data?.hasMore ?? false,
|
|
11150
|
+
isLoading: query.isLoading && !!chat,
|
|
11151
|
+
loadOlder,
|
|
11152
|
+
loadingOlder
|
|
11153
|
+
};
|
|
11154
|
+
}
|
|
11155
|
+
function useChatPost() {
|
|
11156
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11157
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11158
|
+
return React.useCallback(
|
|
11159
|
+
async (target, post) => {
|
|
11160
|
+
const me = chunkSQTHTE2Y_cjs.myChatId(arbi);
|
|
11161
|
+
if (!me) throw new Error("No active session");
|
|
11162
|
+
let chat = target.chat;
|
|
11163
|
+
if (!chat) {
|
|
11164
|
+
if (!target.peerExtId) throw new Error("Could not resolve the conversation");
|
|
11165
|
+
chat = await arbi.chats.openDirect(target.peerExtId);
|
|
11166
|
+
chunkSQTHTE2Y_cjs.upsertChat(queryClient, chat);
|
|
11167
|
+
queryClient.setQueryData(
|
|
11168
|
+
chunkVLK52VXC_cjs.arbiQueryKeys.chatThread(chat.external_id),
|
|
11169
|
+
(old) => old ?? { messages: [], hasMore: false }
|
|
11170
|
+
);
|
|
11171
|
+
}
|
|
11172
|
+
const files = post.files ?? [];
|
|
11173
|
+
const optimisticId = `optimistic-${Date.now()}-${Math.random().toString(36).slice(2, 6)}`;
|
|
11174
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
11175
|
+
const optimistic = {
|
|
11176
|
+
external_id: optimisticId,
|
|
11177
|
+
chat_ext_id: chat.external_id,
|
|
11178
|
+
sender_ext_id: me,
|
|
11179
|
+
kind: "text",
|
|
11180
|
+
content: post.text,
|
|
11181
|
+
key_version: chat.key_version,
|
|
11182
|
+
deleted: false,
|
|
11183
|
+
context_only: !!post.contextOnly,
|
|
11184
|
+
workspace_ext_id: post.workspaceExtId ?? null,
|
|
11185
|
+
created_at: now,
|
|
11186
|
+
updated_at: now,
|
|
11187
|
+
optimistic: true
|
|
11188
|
+
};
|
|
11189
|
+
chunkSQTHTE2Y_cjs.appendToThread(queryClient, chat.external_id, optimistic);
|
|
11190
|
+
try {
|
|
11191
|
+
let attachments = [];
|
|
11192
|
+
if (files.length) {
|
|
11193
|
+
browser.chats.checkChatAttachmentLimits(files);
|
|
11194
|
+
attachments = await arbi.chats.uploadAttachments(
|
|
11195
|
+
await Promise.all(
|
|
11196
|
+
files.map(async (file) => ({
|
|
11197
|
+
name: file.name,
|
|
11198
|
+
type: file.type,
|
|
11199
|
+
bytes: new Uint8Array(await file.arrayBuffer())
|
|
11200
|
+
}))
|
|
11201
|
+
)
|
|
11202
|
+
);
|
|
11203
|
+
}
|
|
11204
|
+
const message = await arbi.chats.send(chat, post.text, {
|
|
11205
|
+
attachments,
|
|
11206
|
+
...post.workspaceExtId ? { workspaceExtId: post.workspaceExtId } : {},
|
|
11207
|
+
contextOnly: !!post.contextOnly
|
|
11208
|
+
});
|
|
11209
|
+
chunkSQTHTE2Y_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
|
|
11210
|
+
chunkSQTHTE2Y_cjs.upsertChat(queryClient, {
|
|
11211
|
+
...chat,
|
|
11212
|
+
last_message: message,
|
|
11213
|
+
last_message_at: message.created_at
|
|
11214
|
+
});
|
|
11215
|
+
return { chat, message };
|
|
11216
|
+
} catch (err) {
|
|
11217
|
+
chunkSQTHTE2Y_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
|
|
11218
|
+
void queryClient.invalidateQueries({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chatList() });
|
|
11219
|
+
throw err;
|
|
11220
|
+
}
|
|
11221
|
+
},
|
|
11222
|
+
[arbi, queryClient]
|
|
11223
|
+
);
|
|
11224
|
+
}
|
|
11225
|
+
function useDeleteChatMessage() {
|
|
11226
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11227
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11228
|
+
return React.useCallback(
|
|
11229
|
+
(chatExtId, messageExtId) => chunkSQTHTE2Y_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
|
|
11230
|
+
[arbi, queryClient]
|
|
11598
11231
|
);
|
|
11599
11232
|
}
|
|
11600
|
-
function
|
|
11601
|
-
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11612
|
-
myExtId,
|
|
11613
|
-
isLoading,
|
|
11614
|
-
isError,
|
|
11615
|
-
error,
|
|
11616
|
-
sendMessage,
|
|
11617
|
-
sendMessageTo,
|
|
11618
|
-
sendError,
|
|
11619
|
-
markRead
|
|
11620
|
-
} = useDirectMessages();
|
|
11621
|
-
const [selectedPeerId, setSelectedPeerId] = React.useState(null);
|
|
11622
|
-
const [startedChatId, setStartedChatId] = React.useState(null);
|
|
11623
|
-
const conversations = React.useMemo(
|
|
11624
|
-
() => hideOwnContact && myExtId ? allConversations.filter((c) => c.peer.external_id !== myExtId) : allConversations,
|
|
11625
|
-
[allConversations, hideOwnContact, myExtId]
|
|
11626
|
-
);
|
|
11627
|
-
const openStarted = (created) => {
|
|
11628
|
-
const chatId = created?.chat_ext_id;
|
|
11629
|
-
if (chatId) setStartedChatId(chatId);
|
|
11630
|
-
};
|
|
11631
|
-
React.useEffect(() => {
|
|
11632
|
-
if (!startedChatId) return;
|
|
11633
|
-
const started = conversations.find((c) => c.chatExtId === startedChatId);
|
|
11634
|
-
if (started) {
|
|
11635
|
-
setSelectedPeerId(started.id ?? started.peer.external_id);
|
|
11636
|
-
setStartedChatId(null);
|
|
11637
|
-
}
|
|
11638
|
-
}, [conversations, startedChatId]);
|
|
11639
|
-
const loadError = isError ? error instanceof Error ? error.message : "Couldn\u2019t load messages." : null;
|
|
11640
|
-
const selected = React.useMemo(
|
|
11641
|
-
() => conversations.find((c) => (c.id ?? c.peer.external_id) === selectedPeerId) ?? null,
|
|
11642
|
-
[conversations, selectedPeerId]
|
|
11233
|
+
function useMarkChatRead() {
|
|
11234
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11235
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11236
|
+
return React.useCallback(
|
|
11237
|
+
(chat, messageExtId) => {
|
|
11238
|
+
chunkSQTHTE2Y_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
|
|
11239
|
+
return arbi.chats.markRead(chat.external_id, messageExtId).then(
|
|
11240
|
+
() => void 0,
|
|
11241
|
+
() => void 0
|
|
11242
|
+
);
|
|
11243
|
+
},
|
|
11244
|
+
[arbi, queryClient]
|
|
11643
11245
|
);
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
};
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
emptyState: isLoading ? "Loading messages\u2026" : emptyList,
|
|
11678
|
-
header: listHeader,
|
|
11679
|
-
lead: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11680
|
-
listLead,
|
|
11681
|
-
startByEmail && /* @__PURE__ */ jsxRuntime.jsx(
|
|
11682
|
-
StartByEmail,
|
|
11683
|
-
{
|
|
11684
|
-
onStart: sendMessageTo,
|
|
11685
|
-
onStarted: openStarted,
|
|
11686
|
-
classNames,
|
|
11687
|
-
labels: typeof startByEmail === "object" ? startByEmail.labels : void 0
|
|
11688
|
-
}
|
|
11689
|
-
)
|
|
11690
|
-
] })
|
|
11691
|
-
}
|
|
11692
|
-
),
|
|
11693
|
-
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: [
|
|
11694
|
-
/* @__PURE__ */ jsxRuntime.jsx(MessageThread, { conversation: selected, classNames, emptyState: emptyThread }),
|
|
11695
|
-
selected ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
11696
|
-
DmComposer,
|
|
11697
|
-
{
|
|
11698
|
-
placeholder: `Message ${(selected.title ?? userDisplayName(selected.peer)).split(" ")[0]}\u2026`,
|
|
11699
|
-
onSend: handleSend,
|
|
11700
|
-
error: sendError?.message ?? null,
|
|
11701
|
-
classNames
|
|
11702
|
-
}
|
|
11703
|
-
) : null
|
|
11704
|
-
] })
|
|
11705
|
-
]
|
|
11246
|
+
}
|
|
11247
|
+
function useCreateGroupChat() {
|
|
11248
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11249
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11250
|
+
return reactQuery.useMutation({
|
|
11251
|
+
mutationFn: (params) => arbi.chats.createGroup(params),
|
|
11252
|
+
onSuccess: (chat) => chunkSQTHTE2Y_cjs.upsertChat(queryClient, chat)
|
|
11253
|
+
});
|
|
11254
|
+
}
|
|
11255
|
+
function useRenameChat() {
|
|
11256
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11257
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11258
|
+
return reactQuery.useMutation({
|
|
11259
|
+
mutationFn: (vars) => arbi.chats.rename(vars.chat, vars.title),
|
|
11260
|
+
onSuccess: (chat) => chunkSQTHTE2Y_cjs.upsertChat(queryClient, chat)
|
|
11261
|
+
});
|
|
11262
|
+
}
|
|
11263
|
+
function useAddChatMembers() {
|
|
11264
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11265
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11266
|
+
return reactQuery.useMutation({
|
|
11267
|
+
mutationFn: (vars) => arbi.chats.addMembers(vars.chat, vars.members, { callKey: vars.callKey }),
|
|
11268
|
+
onSuccess: (chat) => chunkSQTHTE2Y_cjs.upsertChat(queryClient, chat)
|
|
11269
|
+
});
|
|
11270
|
+
}
|
|
11271
|
+
function useRemoveChatMember() {
|
|
11272
|
+
const arbi = chunkQQ7SCJRY_cjs.useArbi();
|
|
11273
|
+
const queryClient = reactQuery.useQueryClient();
|
|
11274
|
+
return reactQuery.useMutation({
|
|
11275
|
+
mutationFn: (vars) => arbi.chats.removeMember(vars.chat, vars.userExtId),
|
|
11276
|
+
onSuccess: (_data, vars) => {
|
|
11277
|
+
if (vars.userExtId === chunkSQTHTE2Y_cjs.myChatId(arbi)) chunkSQTHTE2Y_cjs.removeChat(queryClient, vars.chat.external_id);
|
|
11278
|
+
else return queryClient.invalidateQueries({ queryKey: chunkVLK52VXC_cjs.arbiQueryKeys.chatList() });
|
|
11706
11279
|
}
|
|
11707
|
-
);
|
|
11280
|
+
});
|
|
11281
|
+
}
|
|
11282
|
+
function DateSeparator({ children }) {
|
|
11283
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "my-3 flex justify-center", "data-testid": "dm-date-separator", children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "rounded-full bg-background/80 px-2 py-0.5 text-xs text-muted-foreground", children }) });
|
|
11284
|
+
}
|
|
11285
|
+
|
|
11286
|
+
// src/directmessages/grouping.ts
|
|
11287
|
+
var RUN_WINDOW_MS = 2 * 60 * 1e3;
|
|
11288
|
+
function dayKey(iso) {
|
|
11289
|
+
const d = new Date(iso);
|
|
11290
|
+
if (Number.isNaN(d.getTime())) return iso;
|
|
11291
|
+
return `${d.getFullYear()}-${d.getMonth() + 1}-${d.getDate()}`;
|
|
11292
|
+
}
|
|
11293
|
+
function annotateThread(messages, accessors, runWindowMs = RUN_WINDOW_MS) {
|
|
11294
|
+
const { senderId, createdAt } = accessors;
|
|
11295
|
+
return messages.map((message, i) => {
|
|
11296
|
+
const next = messages[i + 1];
|
|
11297
|
+
const prev = messages[i - 1];
|
|
11298
|
+
const day = dayKey(createdAt(message));
|
|
11299
|
+
const continuesIntoNext = !!next && senderId(next) === senderId(message) && dayKey(createdAt(next)) === day && Date.parse(createdAt(next)) - Date.parse(createdAt(message)) < runWindowMs;
|
|
11300
|
+
return {
|
|
11301
|
+
message,
|
|
11302
|
+
isLastOfRun: !continuesIntoNext,
|
|
11303
|
+
isFirstOfDay: !prev || dayKey(createdAt(prev)) !== day
|
|
11304
|
+
};
|
|
11305
|
+
});
|
|
11708
11306
|
}
|
|
11709
11307
|
var DEFAULT_ASPECT_OPTIONS = [
|
|
11710
11308
|
{ label: "1:1", value: 1 },
|
|
@@ -12120,743 +11718,743 @@ function CommandPaletteProvider({
|
|
|
12120
11718
|
|
|
12121
11719
|
Object.defineProperty(exports, "AUDIENCE_CHOICES", {
|
|
12122
11720
|
enumerable: true,
|
|
12123
|
-
get: function () { return
|
|
11721
|
+
get: function () { return chunkSQTHTE2Y_cjs.AUDIENCE_CHOICES; }
|
|
12124
11722
|
});
|
|
12125
11723
|
Object.defineProperty(exports, "CALL_CAPTION_TOPIC", {
|
|
12126
11724
|
enumerable: true,
|
|
12127
|
-
get: function () { return
|
|
11725
|
+
get: function () { return chunkSQTHTE2Y_cjs.CALL_CAPTION_TOPIC; }
|
|
12128
11726
|
});
|
|
12129
11727
|
Object.defineProperty(exports, "CALL_CHAT_MAX_CHARS", {
|
|
12130
11728
|
enumerable: true,
|
|
12131
|
-
get: function () { return
|
|
11729
|
+
get: function () { return chunkSQTHTE2Y_cjs.CALL_CHAT_MAX_CHARS; }
|
|
12132
11730
|
});
|
|
12133
11731
|
Object.defineProperty(exports, "CALL_CHAT_TOPIC", {
|
|
12134
11732
|
enumerable: true,
|
|
12135
|
-
get: function () { return
|
|
11733
|
+
get: function () { return chunkSQTHTE2Y_cjs.CALL_CHAT_TOPIC; }
|
|
12136
11734
|
});
|
|
12137
11735
|
Object.defineProperty(exports, "CALL_MODERATION_TOPIC", {
|
|
12138
11736
|
enumerable: true,
|
|
12139
|
-
get: function () { return
|
|
11737
|
+
get: function () { return chunkSQTHTE2Y_cjs.CALL_MODERATION_TOPIC; }
|
|
12140
11738
|
});
|
|
12141
11739
|
Object.defineProperty(exports, "CALL_RECORDING_TOPIC", {
|
|
12142
11740
|
enumerable: true,
|
|
12143
|
-
get: function () { return
|
|
11741
|
+
get: function () { return chunkSQTHTE2Y_cjs.CALL_RECORDING_TOPIC; }
|
|
12144
11742
|
});
|
|
12145
11743
|
Object.defineProperty(exports, "CALL_TRANSCRIPTION_TOPIC", {
|
|
12146
11744
|
enumerable: true,
|
|
12147
|
-
get: function () { return
|
|
11745
|
+
get: function () { return chunkSQTHTE2Y_cjs.CALL_TRANSCRIPTION_TOPIC; }
|
|
12148
11746
|
});
|
|
12149
11747
|
Object.defineProperty(exports, "CALL_WEBINAR_TOPIC", {
|
|
12150
11748
|
enumerable: true,
|
|
12151
|
-
get: function () { return
|
|
11749
|
+
get: function () { return chunkSQTHTE2Y_cjs.CALL_WEBINAR_TOPIC; }
|
|
12152
11750
|
});
|
|
12153
11751
|
Object.defineProperty(exports, "CAPTION_MAX_CHARS", {
|
|
12154
11752
|
enumerable: true,
|
|
12155
|
-
get: function () { return
|
|
11753
|
+
get: function () { return chunkSQTHTE2Y_cjs.CAPTION_MAX_CHARS; }
|
|
12156
11754
|
});
|
|
12157
11755
|
Object.defineProperty(exports, "COMPOSITE_AUDIO_BITS_PER_SECOND", {
|
|
12158
11756
|
enumerable: true,
|
|
12159
|
-
get: function () { return
|
|
11757
|
+
get: function () { return chunkSQTHTE2Y_cjs.COMPOSITE_AUDIO_BITS_PER_SECOND; }
|
|
12160
11758
|
});
|
|
12161
11759
|
Object.defineProperty(exports, "COMPOSITE_VIDEO_BITS_PER_SECOND", {
|
|
12162
11760
|
enumerable: true,
|
|
12163
|
-
get: function () { return
|
|
11761
|
+
get: function () { return chunkSQTHTE2Y_cjs.COMPOSITE_VIDEO_BITS_PER_SECOND; }
|
|
12164
11762
|
});
|
|
12165
11763
|
Object.defineProperty(exports, "DEFAULT_JOIN_CHOICES", {
|
|
12166
11764
|
enumerable: true,
|
|
12167
|
-
get: function () { return
|
|
11765
|
+
get: function () { return chunkSQTHTE2Y_cjs.DEFAULT_JOIN_CHOICES; }
|
|
12168
11766
|
});
|
|
12169
11767
|
Object.defineProperty(exports, "EMPTY_CALL_SESSION", {
|
|
12170
11768
|
enumerable: true,
|
|
12171
|
-
get: function () { return
|
|
11769
|
+
get: function () { return chunkSQTHTE2Y_cjs.EMPTY_CALL_SESSION; }
|
|
12172
11770
|
});
|
|
12173
11771
|
Object.defineProperty(exports, "EXPORT_SAMPLE_RATE", {
|
|
12174
11772
|
enumerable: true,
|
|
12175
|
-
get: function () { return
|
|
11773
|
+
get: function () { return chunkSQTHTE2Y_cjs.EXPORT_SAMPLE_RATE; }
|
|
12176
11774
|
});
|
|
12177
11775
|
Object.defineProperty(exports, "HISTORY_LIMIT", {
|
|
12178
11776
|
enumerable: true,
|
|
12179
|
-
get: function () { return
|
|
11777
|
+
get: function () { return chunkSQTHTE2Y_cjs.HISTORY_LIMIT; }
|
|
12180
11778
|
});
|
|
12181
11779
|
Object.defineProperty(exports, "LIVE_SEGMENTER", {
|
|
12182
11780
|
enumerable: true,
|
|
12183
|
-
get: function () { return
|
|
11781
|
+
get: function () { return chunkSQTHTE2Y_cjs.LIVE_SEGMENTER; }
|
|
12184
11782
|
});
|
|
12185
11783
|
Object.defineProperty(exports, "MAX_AVATAR_FILE_BYTES", {
|
|
12186
11784
|
enumerable: true,
|
|
12187
|
-
get: function () { return
|
|
11785
|
+
get: function () { return chunkSQTHTE2Y_cjs.MAX_AVATAR_FILE_BYTES; }
|
|
12188
11786
|
});
|
|
12189
11787
|
Object.defineProperty(exports, "MUTED_DEDUPE_MS", {
|
|
12190
11788
|
enumerable: true,
|
|
12191
|
-
get: function () { return
|
|
11789
|
+
get: function () { return chunkSQTHTE2Y_cjs.MUTED_DEDUPE_MS; }
|
|
12192
11790
|
});
|
|
12193
11791
|
Object.defineProperty(exports, "PLAYBACK_LOOKAHEAD_MS", {
|
|
12194
11792
|
enumerable: true,
|
|
12195
|
-
get: function () { return
|
|
11793
|
+
get: function () { return chunkSQTHTE2Y_cjs.PLAYBACK_LOOKAHEAD_MS; }
|
|
12196
11794
|
});
|
|
12197
11795
|
Object.defineProperty(exports, "READ_ONLY_MEETING_TEXT", {
|
|
12198
11796
|
enumerable: true,
|
|
12199
|
-
get: function () { return
|
|
11797
|
+
get: function () { return chunkSQTHTE2Y_cjs.READ_ONLY_MEETING_TEXT; }
|
|
12200
11798
|
});
|
|
12201
11799
|
Object.defineProperty(exports, "RECORDING_CHUNK_MS", {
|
|
12202
11800
|
enumerable: true,
|
|
12203
|
-
get: function () { return
|
|
11801
|
+
get: function () { return chunkSQTHTE2Y_cjs.RECORDING_CHUNK_MS; }
|
|
12204
11802
|
});
|
|
12205
11803
|
Object.defineProperty(exports, "RECORDING_SEGMENTER", {
|
|
12206
11804
|
enumerable: true,
|
|
12207
|
-
get: function () { return
|
|
11805
|
+
get: function () { return chunkSQTHTE2Y_cjs.RECORDING_SEGMENTER; }
|
|
12208
11806
|
});
|
|
12209
11807
|
Object.defineProperty(exports, "SEGMENT_FRAME_MS", {
|
|
12210
11808
|
enumerable: true,
|
|
12211
|
-
get: function () { return
|
|
11809
|
+
get: function () { return chunkSQTHTE2Y_cjs.SEGMENT_FRAME_MS; }
|
|
12212
11810
|
});
|
|
12213
11811
|
Object.defineProperty(exports, "SEGMENT_ID_PATTERN", {
|
|
12214
11812
|
enumerable: true,
|
|
12215
|
-
get: function () { return
|
|
11813
|
+
get: function () { return chunkSQTHTE2Y_cjs.SEGMENT_ID_PATTERN; }
|
|
12216
11814
|
});
|
|
12217
11815
|
Object.defineProperty(exports, "SEGMENT_PRE_ROLL_MS", {
|
|
12218
11816
|
enumerable: true,
|
|
12219
|
-
get: function () { return
|
|
11817
|
+
get: function () { return chunkSQTHTE2Y_cjs.SEGMENT_PRE_ROLL_MS; }
|
|
12220
11818
|
});
|
|
12221
11819
|
Object.defineProperty(exports, "SHORT_PIECE_MERGE_GAP_MS", {
|
|
12222
11820
|
enumerable: true,
|
|
12223
|
-
get: function () { return
|
|
11821
|
+
get: function () { return chunkSQTHTE2Y_cjs.SHORT_PIECE_MERGE_GAP_MS; }
|
|
12224
11822
|
});
|
|
12225
11823
|
Object.defineProperty(exports, "SPEAKER_AUDIO_BITS_PER_SECOND", {
|
|
12226
11824
|
enumerable: true,
|
|
12227
|
-
get: function () { return
|
|
11825
|
+
get: function () { return chunkSQTHTE2Y_cjs.SPEAKER_AUDIO_BITS_PER_SECOND; }
|
|
12228
11826
|
});
|
|
12229
11827
|
Object.defineProperty(exports, "TrackUploader", {
|
|
12230
11828
|
enumerable: true,
|
|
12231
|
-
get: function () { return
|
|
11829
|
+
get: function () { return chunkSQTHTE2Y_cjs.TrackUploader; }
|
|
12232
11830
|
});
|
|
12233
11831
|
Object.defineProperty(exports, "UPLOAD_ATTEMPTS", {
|
|
12234
11832
|
enumerable: true,
|
|
12235
|
-
get: function () { return
|
|
11833
|
+
get: function () { return chunkSQTHTE2Y_cjs.UPLOAD_ATTEMPTS; }
|
|
12236
11834
|
});
|
|
12237
11835
|
Object.defineProperty(exports, "UPLOAD_BACKOFF_MS", {
|
|
12238
11836
|
enumerable: true,
|
|
12239
|
-
get: function () { return
|
|
11837
|
+
get: function () { return chunkSQTHTE2Y_cjs.UPLOAD_BACKOFF_MS; }
|
|
12240
11838
|
});
|
|
12241
11839
|
Object.defineProperty(exports, "acceptRing", {
|
|
12242
11840
|
enumerable: true,
|
|
12243
|
-
get: function () { return
|
|
11841
|
+
get: function () { return chunkSQTHTE2Y_cjs.acceptRing; }
|
|
12244
11842
|
});
|
|
12245
11843
|
Object.defineProperty(exports, "addConversationToList", {
|
|
12246
11844
|
enumerable: true,
|
|
12247
|
-
get: function () { return
|
|
11845
|
+
get: function () { return chunkSQTHTE2Y_cjs.addConversationToList; }
|
|
12248
11846
|
});
|
|
12249
11847
|
Object.defineProperty(exports, "appendToThread", {
|
|
12250
11848
|
enumerable: true,
|
|
12251
|
-
get: function () { return
|
|
11849
|
+
get: function () { return chunkSQTHTE2Y_cjs.appendToThread; }
|
|
12252
11850
|
});
|
|
12253
11851
|
Object.defineProperty(exports, "applyAgentDmStatus", {
|
|
12254
11852
|
enumerable: true,
|
|
12255
|
-
get: function () { return
|
|
11853
|
+
get: function () { return chunkSQTHTE2Y_cjs.applyAgentDmStatus; }
|
|
12256
11854
|
});
|
|
12257
11855
|
Object.defineProperty(exports, "applyCallEvent", {
|
|
12258
11856
|
enumerable: true,
|
|
12259
|
-
get: function () { return
|
|
11857
|
+
get: function () { return chunkSQTHTE2Y_cjs.applyCallEvent; }
|
|
12260
11858
|
});
|
|
12261
11859
|
Object.defineProperty(exports, "applyChatEvent", {
|
|
12262
11860
|
enumerable: true,
|
|
12263
|
-
get: function () { return
|
|
11861
|
+
get: function () { return chunkSQTHTE2Y_cjs.applyChatEvent; }
|
|
12264
11862
|
});
|
|
12265
11863
|
Object.defineProperty(exports, "applyChatMessage", {
|
|
12266
11864
|
enumerable: true,
|
|
12267
|
-
get: function () { return
|
|
11865
|
+
get: function () { return chunkSQTHTE2Y_cjs.applyChatMessage; }
|
|
12268
11866
|
});
|
|
12269
11867
|
Object.defineProperty(exports, "applyChatRead", {
|
|
12270
11868
|
enumerable: true,
|
|
12271
|
-
get: function () { return
|
|
11869
|
+
get: function () { return chunkSQTHTE2Y_cjs.applyChatRead; }
|
|
12272
11870
|
});
|
|
12273
11871
|
Object.defineProperty(exports, "applyChatUpdated", {
|
|
12274
11872
|
enumerable: true,
|
|
12275
|
-
get: function () { return
|
|
11873
|
+
get: function () { return chunkSQTHTE2Y_cjs.applyChatUpdated; }
|
|
12276
11874
|
});
|
|
12277
11875
|
Object.defineProperty(exports, "arbiAccountClient", {
|
|
12278
11876
|
enumerable: true,
|
|
12279
|
-
get: function () { return
|
|
11877
|
+
get: function () { return chunkSQTHTE2Y_cjs.arbiAccountClient; }
|
|
12280
11878
|
});
|
|
12281
11879
|
Object.defineProperty(exports, "buildMeetingChatBody", {
|
|
12282
11880
|
enumerable: true,
|
|
12283
|
-
get: function () { return
|
|
11881
|
+
get: function () { return chunkSQTHTE2Y_cjs.buildMeetingChatBody; }
|
|
12284
11882
|
});
|
|
12285
11883
|
Object.defineProperty(exports, "cachedChat", {
|
|
12286
11884
|
enumerable: true,
|
|
12287
|
-
get: function () { return
|
|
11885
|
+
get: function () { return chunkSQTHTE2Y_cjs.cachedChat; }
|
|
12288
11886
|
});
|
|
12289
11887
|
Object.defineProperty(exports, "cachedChats", {
|
|
12290
11888
|
enumerable: true,
|
|
12291
|
-
get: function () { return
|
|
11889
|
+
get: function () { return chunkSQTHTE2Y_cjs.cachedChats; }
|
|
12292
11890
|
});
|
|
12293
11891
|
Object.defineProperty(exports, "callLink", {
|
|
12294
11892
|
enumerable: true,
|
|
12295
|
-
get: function () { return
|
|
11893
|
+
get: function () { return chunkSQTHTE2Y_cjs.callLink; }
|
|
12296
11894
|
});
|
|
12297
11895
|
Object.defineProperty(exports, "callMemberKeys", {
|
|
12298
11896
|
enumerable: true,
|
|
12299
|
-
get: function () { return
|
|
11897
|
+
get: function () { return chunkSQTHTE2Y_cjs.callMemberKeys; }
|
|
12300
11898
|
});
|
|
12301
11899
|
Object.defineProperty(exports, "callSession", {
|
|
12302
11900
|
enumerable: true,
|
|
12303
|
-
get: function () { return
|
|
11901
|
+
get: function () { return chunkSQTHTE2Y_cjs.callSession; }
|
|
12304
11902
|
});
|
|
12305
11903
|
Object.defineProperty(exports, "chatByExtId", {
|
|
12306
11904
|
enumerable: true,
|
|
12307
|
-
get: function () { return
|
|
11905
|
+
get: function () { return chunkSQTHTE2Y_cjs.chatByExtId; }
|
|
12308
11906
|
});
|
|
12309
11907
|
Object.defineProperty(exports, "chatHasLiveCall", {
|
|
12310
11908
|
enumerable: true,
|
|
12311
|
-
get: function () { return
|
|
11909
|
+
get: function () { return chunkSQTHTE2Y_cjs.chatHasLiveCall; }
|
|
12312
11910
|
});
|
|
12313
11911
|
Object.defineProperty(exports, "chatLiveCallId", {
|
|
12314
11912
|
enumerable: true,
|
|
12315
|
-
get: function () { return
|
|
11913
|
+
get: function () { return chunkSQTHTE2Y_cjs.chatLiveCallId; }
|
|
12316
11914
|
});
|
|
12317
11915
|
Object.defineProperty(exports, "chatTranscriptRef", {
|
|
12318
11916
|
enumerable: true,
|
|
12319
|
-
get: function () { return
|
|
11917
|
+
get: function () { return chunkSQTHTE2Y_cjs.chatTranscriptRef; }
|
|
12320
11918
|
});
|
|
12321
11919
|
Object.defineProperty(exports, "clearMeetingChatCache", {
|
|
12322
11920
|
enumerable: true,
|
|
12323
|
-
get: function () { return
|
|
11921
|
+
get: function () { return chunkSQTHTE2Y_cjs.clearMeetingChatCache; }
|
|
12324
11922
|
});
|
|
12325
11923
|
Object.defineProperty(exports, "clearTrackUploaders", {
|
|
12326
11924
|
enumerable: true,
|
|
12327
|
-
get: function () { return
|
|
11925
|
+
get: function () { return chunkSQTHTE2Y_cjs.clearTrackUploaders; }
|
|
12328
11926
|
});
|
|
12329
11927
|
Object.defineProperty(exports, "clockTime", {
|
|
12330
11928
|
enumerable: true,
|
|
12331
|
-
get: function () { return
|
|
11929
|
+
get: function () { return chunkSQTHTE2Y_cjs.clockTime; }
|
|
12332
11930
|
});
|
|
12333
11931
|
Object.defineProperty(exports, "compositeFiles", {
|
|
12334
11932
|
enumerable: true,
|
|
12335
|
-
get: function () { return
|
|
11933
|
+
get: function () { return chunkSQTHTE2Y_cjs.compositeFiles; }
|
|
12336
11934
|
});
|
|
12337
11935
|
Object.defineProperty(exports, "compositeTrack", {
|
|
12338
11936
|
enumerable: true,
|
|
12339
|
-
get: function () { return
|
|
11937
|
+
get: function () { return chunkSQTHTE2Y_cjs.compositeTrack; }
|
|
12340
11938
|
});
|
|
12341
11939
|
Object.defineProperty(exports, "conversationKeyForCall", {
|
|
12342
11940
|
enumerable: true,
|
|
12343
|
-
get: function () { return
|
|
11941
|
+
get: function () { return chunkSQTHTE2Y_cjs.conversationKeyForCall; }
|
|
12344
11942
|
});
|
|
12345
11943
|
Object.defineProperty(exports, "createMutedNotifier", {
|
|
12346
11944
|
enumerable: true,
|
|
12347
|
-
get: function () { return
|
|
11945
|
+
get: function () { return chunkSQTHTE2Y_cjs.createMutedNotifier; }
|
|
12348
11946
|
});
|
|
12349
11947
|
Object.defineProperty(exports, "createTrackCutter", {
|
|
12350
11948
|
enumerable: true,
|
|
12351
|
-
get: function () { return
|
|
11949
|
+
get: function () { return chunkSQTHTE2Y_cjs.createTrackCutter; }
|
|
12352
11950
|
});
|
|
12353
11951
|
Object.defineProperty(exports, "cutAtPauses", {
|
|
12354
11952
|
enumerable: true,
|
|
12355
|
-
get: function () { return
|
|
11953
|
+
get: function () { return chunkSQTHTE2Y_cjs.cutAtPauses; }
|
|
12356
11954
|
});
|
|
12357
11955
|
Object.defineProperty(exports, "declineRing", {
|
|
12358
11956
|
enumerable: true,
|
|
12359
|
-
get: function () { return
|
|
11957
|
+
get: function () { return chunkSQTHTE2Y_cjs.declineRing; }
|
|
12360
11958
|
});
|
|
12361
11959
|
Object.defineProperty(exports, "decodeCallChatPacket", {
|
|
12362
11960
|
enumerable: true,
|
|
12363
|
-
get: function () { return
|
|
11961
|
+
get: function () { return chunkSQTHTE2Y_cjs.decodeCallChatPacket; }
|
|
12364
11962
|
});
|
|
12365
11963
|
Object.defineProperty(exports, "decodeCaptionPacket", {
|
|
12366
11964
|
enumerable: true,
|
|
12367
|
-
get: function () { return
|
|
11965
|
+
get: function () { return chunkSQTHTE2Y_cjs.decodeCaptionPacket; }
|
|
12368
11966
|
});
|
|
12369
11967
|
Object.defineProperty(exports, "decodeMono16k", {
|
|
12370
11968
|
enumerable: true,
|
|
12371
|
-
get: function () { return
|
|
11969
|
+
get: function () { return chunkSQTHTE2Y_cjs.decodeMono16k; }
|
|
12372
11970
|
});
|
|
12373
11971
|
Object.defineProperty(exports, "decryptPart", {
|
|
12374
11972
|
enumerable: true,
|
|
12375
|
-
get: function () { return
|
|
11973
|
+
get: function () { return chunkSQTHTE2Y_cjs.decryptPart; }
|
|
12376
11974
|
});
|
|
12377
11975
|
Object.defineProperty(exports, "encodeCallChatPacket", {
|
|
12378
11976
|
enumerable: true,
|
|
12379
|
-
get: function () { return
|
|
11977
|
+
get: function () { return chunkSQTHTE2Y_cjs.encodeCallChatPacket; }
|
|
12380
11978
|
});
|
|
12381
11979
|
Object.defineProperty(exports, "encodeCaptionPacket", {
|
|
12382
11980
|
enumerable: true,
|
|
12383
|
-
get: function () { return
|
|
11981
|
+
get: function () { return chunkSQTHTE2Y_cjs.encodeCaptionPacket; }
|
|
12384
11982
|
});
|
|
12385
11983
|
Object.defineProperty(exports, "encodeWav", {
|
|
12386
11984
|
enumerable: true,
|
|
12387
|
-
get: function () { return
|
|
11985
|
+
get: function () { return chunkSQTHTE2Y_cjs.encodeWav; }
|
|
12388
11986
|
});
|
|
12389
11987
|
Object.defineProperty(exports, "encryptPart", {
|
|
12390
11988
|
enumerable: true,
|
|
12391
|
-
get: function () { return
|
|
11989
|
+
get: function () { return chunkSQTHTE2Y_cjs.encryptPart; }
|
|
12392
11990
|
});
|
|
12393
11991
|
Object.defineProperty(exports, "ensureMeetingChat", {
|
|
12394
11992
|
enumerable: true,
|
|
12395
|
-
get: function () { return
|
|
11993
|
+
get: function () { return chunkSQTHTE2Y_cjs.ensureMeetingChat; }
|
|
12396
11994
|
});
|
|
12397
11995
|
Object.defineProperty(exports, "entitlementRefusal", {
|
|
12398
11996
|
enumerable: true,
|
|
12399
|
-
get: function () { return
|
|
11997
|
+
get: function () { return chunkSQTHTE2Y_cjs.entitlementRefusal; }
|
|
12400
11998
|
});
|
|
12401
11999
|
Object.defineProperty(exports, "extensionFor", {
|
|
12402
12000
|
enumerable: true,
|
|
12403
|
-
get: function () { return
|
|
12001
|
+
get: function () { return chunkSQTHTE2Y_cjs.extensionFor; }
|
|
12404
12002
|
});
|
|
12405
12003
|
Object.defineProperty(exports, "fetchPart", {
|
|
12406
12004
|
enumerable: true,
|
|
12407
|
-
get: function () { return
|
|
12005
|
+
get: function () { return chunkSQTHTE2Y_cjs.fetchPart; }
|
|
12408
12006
|
});
|
|
12409
12007
|
Object.defineProperty(exports, "fileSafe", {
|
|
12410
12008
|
enumerable: true,
|
|
12411
|
-
get: function () { return
|
|
12009
|
+
get: function () { return chunkSQTHTE2Y_cjs.fileSafe; }
|
|
12412
12010
|
});
|
|
12413
12011
|
Object.defineProperty(exports, "findConversation", {
|
|
12414
12012
|
enumerable: true,
|
|
12415
|
-
get: function () { return
|
|
12013
|
+
get: function () { return chunkSQTHTE2Y_cjs.findConversation; }
|
|
12416
12014
|
});
|
|
12417
12015
|
Object.defineProperty(exports, "floatToWav", {
|
|
12418
12016
|
enumerable: true,
|
|
12419
|
-
get: function () { return
|
|
12017
|
+
get: function () { return chunkSQTHTE2Y_cjs.floatToWav; }
|
|
12420
12018
|
});
|
|
12421
12019
|
Object.defineProperty(exports, "formatTranscriptMarkdown", {
|
|
12422
12020
|
enumerable: true,
|
|
12423
|
-
get: function () { return
|
|
12021
|
+
get: function () { return chunkSQTHTE2Y_cjs.formatTranscriptMarkdown; }
|
|
12424
12022
|
});
|
|
12425
12023
|
Object.defineProperty(exports, "getOpenChat", {
|
|
12426
12024
|
enumerable: true,
|
|
12427
|
-
get: function () { return
|
|
12025
|
+
get: function () { return chunkSQTHTE2Y_cjs.getOpenChat; }
|
|
12428
12026
|
});
|
|
12429
12027
|
Object.defineProperty(exports, "hasRecordingTranscript", {
|
|
12430
12028
|
enumerable: true,
|
|
12431
|
-
get: function () { return
|
|
12029
|
+
get: function () { return chunkSQTHTE2Y_cjs.hasRecordingTranscript; }
|
|
12432
12030
|
});
|
|
12433
12031
|
Object.defineProperty(exports, "invalidateCall", {
|
|
12434
12032
|
enumerable: true,
|
|
12435
|
-
get: function () { return
|
|
12033
|
+
get: function () { return chunkSQTHTE2Y_cjs.invalidateCall; }
|
|
12436
12034
|
});
|
|
12437
12035
|
Object.defineProperty(exports, "invalidateConversationDetails", {
|
|
12438
12036
|
enumerable: true,
|
|
12439
|
-
get: function () { return
|
|
12037
|
+
get: function () { return chunkSQTHTE2Y_cjs.invalidateConversationDetails; }
|
|
12440
12038
|
});
|
|
12441
12039
|
Object.defineProperty(exports, "invalidateConversationLists", {
|
|
12442
12040
|
enumerable: true,
|
|
12443
|
-
get: function () { return
|
|
12041
|
+
get: function () { return chunkSQTHTE2Y_cjs.invalidateConversationLists; }
|
|
12444
12042
|
});
|
|
12445
12043
|
Object.defineProperty(exports, "isConversationListKey", {
|
|
12446
12044
|
enumerable: true,
|
|
12447
|
-
get: function () { return
|
|
12045
|
+
get: function () { return chunkSQTHTE2Y_cjs.isConversationListKey; }
|
|
12448
12046
|
});
|
|
12449
12047
|
Object.defineProperty(exports, "isConversationShared", {
|
|
12450
12048
|
enumerable: true,
|
|
12451
|
-
get: function () { return
|
|
12049
|
+
get: function () { return chunkSQTHTE2Y_cjs.isConversationShared; }
|
|
12452
12050
|
});
|
|
12453
12051
|
Object.defineProperty(exports, "isKnownSoloConversation", {
|
|
12454
12052
|
enumerable: true,
|
|
12455
|
-
get: function () { return
|
|
12053
|
+
get: function () { return chunkSQTHTE2Y_cjs.isKnownSoloConversation; }
|
|
12456
12054
|
});
|
|
12457
12055
|
Object.defineProperty(exports, "isRecordingOver", {
|
|
12458
12056
|
enumerable: true,
|
|
12459
|
-
get: function () { return
|
|
12057
|
+
get: function () { return chunkSQTHTE2Y_cjs.isRecordingOver; }
|
|
12460
12058
|
});
|
|
12461
12059
|
Object.defineProperty(exports, "isRecordingSegmentId", {
|
|
12462
12060
|
enumerable: true,
|
|
12463
|
-
get: function () { return
|
|
12061
|
+
get: function () { return chunkSQTHTE2Y_cjs.isRecordingSegmentId; }
|
|
12464
12062
|
});
|
|
12465
12063
|
Object.defineProperty(exports, "isRetryable", {
|
|
12466
12064
|
enumerable: true,
|
|
12467
|
-
get: function () { return
|
|
12065
|
+
get: function () { return chunkSQTHTE2Y_cjs.isRetryable; }
|
|
12468
12066
|
});
|
|
12469
12067
|
Object.defineProperty(exports, "isWorkspaceGuestOf", {
|
|
12470
12068
|
enumerable: true,
|
|
12471
|
-
get: function () { return
|
|
12069
|
+
get: function () { return chunkSQTHTE2Y_cjs.isWorkspaceGuestOf; }
|
|
12472
12070
|
});
|
|
12473
12071
|
Object.defineProperty(exports, "joinFromPreJoin", {
|
|
12474
12072
|
enumerable: true,
|
|
12475
|
-
get: function () { return
|
|
12073
|
+
get: function () { return chunkSQTHTE2Y_cjs.joinFromPreJoin; }
|
|
12476
12074
|
});
|
|
12477
12075
|
Object.defineProperty(exports, "knownMeetingChat", {
|
|
12478
12076
|
enumerable: true,
|
|
12479
|
-
get: function () { return
|
|
12077
|
+
get: function () { return chunkSQTHTE2Y_cjs.knownMeetingChat; }
|
|
12480
12078
|
});
|
|
12481
12079
|
Object.defineProperty(exports, "loadMeetingHistory", {
|
|
12482
12080
|
enumerable: true,
|
|
12483
|
-
get: function () { return
|
|
12081
|
+
get: function () { return chunkSQTHTE2Y_cjs.loadMeetingHistory; }
|
|
12484
12082
|
});
|
|
12485
12083
|
Object.defineProperty(exports, "markRejoining", {
|
|
12486
12084
|
enumerable: true,
|
|
12487
|
-
get: function () { return
|
|
12085
|
+
get: function () { return chunkSQTHTE2Y_cjs.markRejoining; }
|
|
12488
12086
|
});
|
|
12489
12087
|
Object.defineProperty(exports, "meetingChatRefFrom", {
|
|
12490
12088
|
enumerable: true,
|
|
12491
|
-
get: function () { return
|
|
12089
|
+
get: function () { return chunkSQTHTE2Y_cjs.meetingChatRefFrom; }
|
|
12492
12090
|
});
|
|
12493
12091
|
Object.defineProperty(exports, "meetingRefForCall", {
|
|
12494
12092
|
enumerable: true,
|
|
12495
|
-
get: function () { return
|
|
12093
|
+
get: function () { return chunkSQTHTE2Y_cjs.meetingRefForCall; }
|
|
12496
12094
|
});
|
|
12497
12095
|
Object.defineProperty(exports, "mergeChatLines", {
|
|
12498
12096
|
enumerable: true,
|
|
12499
|
-
get: function () { return
|
|
12097
|
+
get: function () { return chunkSQTHTE2Y_cjs.mergeChatLines; }
|
|
12500
12098
|
});
|
|
12501
12099
|
Object.defineProperty(exports, "mutedNoticeFromEvent", {
|
|
12502
12100
|
enumerable: true,
|
|
12503
|
-
get: function () { return
|
|
12101
|
+
get: function () { return chunkSQTHTE2Y_cjs.mutedNoticeFromEvent; }
|
|
12504
12102
|
});
|
|
12505
12103
|
Object.defineProperty(exports, "mutedNoticeFromPacket", {
|
|
12506
12104
|
enumerable: true,
|
|
12507
|
-
get: function () { return
|
|
12105
|
+
get: function () { return chunkSQTHTE2Y_cjs.mutedNoticeFromPacket; }
|
|
12508
12106
|
});
|
|
12509
12107
|
Object.defineProperty(exports, "mutedNoticeText", {
|
|
12510
12108
|
enumerable: true,
|
|
12511
|
-
get: function () { return
|
|
12109
|
+
get: function () { return chunkSQTHTE2Y_cjs.mutedNoticeText; }
|
|
12512
12110
|
});
|
|
12513
12111
|
Object.defineProperty(exports, "myChatId", {
|
|
12514
12112
|
enumerable: true,
|
|
12515
|
-
get: function () { return
|
|
12113
|
+
get: function () { return chunkSQTHTE2Y_cjs.myChatId; }
|
|
12516
12114
|
});
|
|
12517
12115
|
Object.defineProperty(exports, "newPacketId", {
|
|
12518
12116
|
enumerable: true,
|
|
12519
|
-
get: function () { return
|
|
12117
|
+
get: function () { return chunkSQTHTE2Y_cjs.newPacketId; }
|
|
12520
12118
|
});
|
|
12521
12119
|
Object.defineProperty(exports, "newSegmentId", {
|
|
12522
12120
|
enumerable: true,
|
|
12523
|
-
get: function () { return
|
|
12121
|
+
get: function () { return chunkSQTHTE2Y_cjs.newSegmentId; }
|
|
12524
12122
|
});
|
|
12525
12123
|
Object.defineProperty(exports, "newTrackKey", {
|
|
12526
12124
|
enumerable: true,
|
|
12527
|
-
get: function () { return
|
|
12125
|
+
get: function () { return chunkSQTHTE2Y_cjs.newTrackKey; }
|
|
12528
12126
|
});
|
|
12529
12127
|
Object.defineProperty(exports, "nextSeqAfter", {
|
|
12530
12128
|
enumerable: true,
|
|
12531
|
-
get: function () { return
|
|
12129
|
+
get: function () { return chunkSQTHTE2Y_cjs.nextSeqAfter; }
|
|
12532
12130
|
});
|
|
12533
12131
|
Object.defineProperty(exports, "onCallEvent", {
|
|
12534
12132
|
enumerable: true,
|
|
12535
|
-
get: function () { return
|
|
12133
|
+
get: function () { return chunkSQTHTE2Y_cjs.onCallEvent; }
|
|
12536
12134
|
});
|
|
12537
12135
|
Object.defineProperty(exports, "openCall", {
|
|
12538
12136
|
enumerable: true,
|
|
12539
|
-
get: function () { return
|
|
12137
|
+
get: function () { return chunkSQTHTE2Y_cjs.openCall; }
|
|
12540
12138
|
});
|
|
12541
12139
|
Object.defineProperty(exports, "openQuestion", {
|
|
12542
12140
|
enumerable: true,
|
|
12543
|
-
get: function () { return
|
|
12141
|
+
get: function () { return chunkSQTHTE2Y_cjs.openQuestion; }
|
|
12544
12142
|
});
|
|
12545
12143
|
Object.defineProperty(exports, "openRecording", {
|
|
12546
12144
|
enumerable: true,
|
|
12547
|
-
get: function () { return
|
|
12145
|
+
get: function () { return chunkSQTHTE2Y_cjs.openRecording; }
|
|
12548
12146
|
});
|
|
12549
12147
|
Object.defineProperty(exports, "parseWebinarPacket", {
|
|
12550
12148
|
enumerable: true,
|
|
12551
|
-
get: function () { return
|
|
12149
|
+
get: function () { return chunkSQTHTE2Y_cjs.parseWebinarPacket; }
|
|
12552
12150
|
});
|
|
12553
12151
|
Object.defineProperty(exports, "partKey", {
|
|
12554
12152
|
enumerable: true,
|
|
12555
|
-
get: function () { return
|
|
12153
|
+
get: function () { return chunkSQTHTE2Y_cjs.partKey; }
|
|
12556
12154
|
});
|
|
12557
12155
|
Object.defineProperty(exports, "partOffsetMs", {
|
|
12558
12156
|
enumerable: true,
|
|
12559
|
-
get: function () { return
|
|
12157
|
+
get: function () { return chunkSQTHTE2Y_cjs.partOffsetMs; }
|
|
12560
12158
|
});
|
|
12561
12159
|
Object.defineProperty(exports, "partsDue", {
|
|
12562
12160
|
enumerable: true,
|
|
12563
|
-
get: function () { return
|
|
12161
|
+
get: function () { return chunkSQTHTE2Y_cjs.partsDue; }
|
|
12564
12162
|
});
|
|
12565
12163
|
Object.defineProperty(exports, "patchConversation", {
|
|
12566
12164
|
enumerable: true,
|
|
12567
|
-
get: function () { return
|
|
12165
|
+
get: function () { return chunkSQTHTE2Y_cjs.patchConversation; }
|
|
12568
12166
|
});
|
|
12569
12167
|
Object.defineProperty(exports, "patchConversationList", {
|
|
12570
12168
|
enumerable: true,
|
|
12571
|
-
get: function () { return
|
|
12169
|
+
get: function () { return chunkSQTHTE2Y_cjs.patchConversationList; }
|
|
12572
12170
|
});
|
|
12573
12171
|
Object.defineProperty(exports, "persistMeetingMessage", {
|
|
12574
12172
|
enumerable: true,
|
|
12575
|
-
get: function () { return
|
|
12173
|
+
get: function () { return chunkSQTHTE2Y_cjs.persistMeetingMessage; }
|
|
12576
12174
|
});
|
|
12577
12175
|
Object.defineProperty(exports, "persistTranscriptSegment", {
|
|
12578
12176
|
enumerable: true,
|
|
12579
|
-
get: function () { return
|
|
12177
|
+
get: function () { return chunkSQTHTE2Y_cjs.persistTranscriptSegment; }
|
|
12580
12178
|
});
|
|
12581
12179
|
Object.defineProperty(exports, "playheadAt", {
|
|
12582
12180
|
enumerable: true,
|
|
12583
|
-
get: function () { return
|
|
12181
|
+
get: function () { return chunkSQTHTE2Y_cjs.playheadAt; }
|
|
12584
12182
|
});
|
|
12585
12183
|
Object.defineProperty(exports, "postRecordingDocsToThread", {
|
|
12586
12184
|
enumerable: true,
|
|
12587
|
-
get: function () { return
|
|
12185
|
+
get: function () { return chunkSQTHTE2Y_cjs.postRecordingDocsToThread; }
|
|
12588
12186
|
});
|
|
12589
12187
|
Object.defineProperty(exports, "postTranscriptToThread", {
|
|
12590
12188
|
enumerable: true,
|
|
12591
|
-
get: function () { return
|
|
12189
|
+
get: function () { return chunkSQTHTE2Y_cjs.postTranscriptToThread; }
|
|
12592
12190
|
});
|
|
12593
12191
|
Object.defineProperty(exports, "recordingFiles", {
|
|
12594
12192
|
enumerable: true,
|
|
12595
|
-
get: function () { return
|
|
12193
|
+
get: function () { return chunkSQTHTE2Y_cjs.recordingFiles; }
|
|
12596
12194
|
});
|
|
12597
12195
|
Object.defineProperty(exports, "recordingWindowsOf", {
|
|
12598
12196
|
enumerable: true,
|
|
12599
|
-
get: function () { return
|
|
12197
|
+
get: function () { return chunkSQTHTE2Y_cjs.recordingWindowsOf; }
|
|
12600
12198
|
});
|
|
12601
12199
|
Object.defineProperty(exports, "rejoinAsAudience", {
|
|
12602
12200
|
enumerable: true,
|
|
12603
|
-
get: function () { return
|
|
12201
|
+
get: function () { return chunkSQTHTE2Y_cjs.rejoinAsAudience; }
|
|
12604
12202
|
});
|
|
12605
12203
|
Object.defineProperty(exports, "removeChat", {
|
|
12606
12204
|
enumerable: true,
|
|
12607
|
-
get: function () { return
|
|
12205
|
+
get: function () { return chunkSQTHTE2Y_cjs.removeChat; }
|
|
12608
12206
|
});
|
|
12609
12207
|
Object.defineProperty(exports, "removeConversationFromLists", {
|
|
12610
12208
|
enumerable: true,
|
|
12611
|
-
get: function () { return
|
|
12209
|
+
get: function () { return chunkSQTHTE2Y_cjs.removeConversationFromLists; }
|
|
12612
12210
|
});
|
|
12613
12211
|
Object.defineProperty(exports, "resetCallSession", {
|
|
12614
12212
|
enumerable: true,
|
|
12615
|
-
get: function () { return
|
|
12213
|
+
get: function () { return chunkSQTHTE2Y_cjs.resetCallSession; }
|
|
12616
12214
|
});
|
|
12617
12215
|
Object.defineProperty(exports, "resolveMeetingChat", {
|
|
12618
12216
|
enumerable: true,
|
|
12619
|
-
get: function () { return
|
|
12217
|
+
get: function () { return chunkSQTHTE2Y_cjs.resolveMeetingChat; }
|
|
12620
12218
|
});
|
|
12621
12219
|
Object.defineProperty(exports, "saveRecordingFilesToThread", {
|
|
12622
12220
|
enumerable: true,
|
|
12623
|
-
get: function () { return
|
|
12221
|
+
get: function () { return chunkSQTHTE2Y_cjs.saveRecordingFilesToThread; }
|
|
12624
12222
|
});
|
|
12625
12223
|
Object.defineProperty(exports, "schedulePart", {
|
|
12626
12224
|
enumerable: true,
|
|
12627
|
-
get: function () { return
|
|
12225
|
+
get: function () { return chunkSQTHTE2Y_cjs.schedulePart; }
|
|
12628
12226
|
});
|
|
12629
12227
|
Object.defineProperty(exports, "sealQuestionText", {
|
|
12630
12228
|
enumerable: true,
|
|
12631
|
-
get: function () { return
|
|
12229
|
+
get: function () { return chunkSQTHTE2Y_cjs.sealQuestionText; }
|
|
12632
12230
|
});
|
|
12633
12231
|
Object.defineProperty(exports, "setOpenChat", {
|
|
12634
12232
|
enumerable: true,
|
|
12635
|
-
get: function () { return
|
|
12233
|
+
get: function () { return chunkSQTHTE2Y_cjs.setOpenChat; }
|
|
12636
12234
|
});
|
|
12637
12235
|
Object.defineProperty(exports, "sortTranscriptMessages", {
|
|
12638
12236
|
enumerable: true,
|
|
12639
|
-
get: function () { return
|
|
12237
|
+
get: function () { return chunkSQTHTE2Y_cjs.sortTranscriptMessages; }
|
|
12640
12238
|
});
|
|
12641
12239
|
Object.defineProperty(exports, "sortedParts", {
|
|
12642
12240
|
enumerable: true,
|
|
12643
|
-
get: function () { return
|
|
12241
|
+
get: function () { return chunkSQTHTE2Y_cjs.sortedParts; }
|
|
12644
12242
|
});
|
|
12645
12243
|
Object.defineProperty(exports, "speakerTracks", {
|
|
12646
12244
|
enumerable: true,
|
|
12647
|
-
get: function () { return
|
|
12245
|
+
get: function () { return chunkSQTHTE2Y_cjs.speakerTracks; }
|
|
12648
12246
|
});
|
|
12649
12247
|
Object.defineProperty(exports, "speakerWav", {
|
|
12650
12248
|
enumerable: true,
|
|
12651
|
-
get: function () { return
|
|
12249
|
+
get: function () { return chunkSQTHTE2Y_cjs.speakerWav; }
|
|
12652
12250
|
});
|
|
12653
12251
|
Object.defineProperty(exports, "splitIntoFiles", {
|
|
12654
12252
|
enumerable: true,
|
|
12655
|
-
get: function () { return
|
|
12253
|
+
get: function () { return chunkSQTHTE2Y_cjs.splitIntoFiles; }
|
|
12656
12254
|
});
|
|
12657
12255
|
Object.defineProperty(exports, "standalone", {
|
|
12658
12256
|
enumerable: true,
|
|
12659
|
-
get: function () { return
|
|
12257
|
+
get: function () { return chunkSQTHTE2Y_cjs.standalone; }
|
|
12660
12258
|
});
|
|
12661
12259
|
Object.defineProperty(exports, "startChatCall", {
|
|
12662
12260
|
enumerable: true,
|
|
12663
|
-
get: function () { return
|
|
12261
|
+
get: function () { return chunkSQTHTE2Y_cjs.startChatCall; }
|
|
12664
12262
|
});
|
|
12665
12263
|
Object.defineProperty(exports, "startContactsCall", {
|
|
12666
12264
|
enumerable: true,
|
|
12667
|
-
get: function () { return
|
|
12265
|
+
get: function () { return chunkSQTHTE2Y_cjs.startContactsCall; }
|
|
12668
12266
|
});
|
|
12669
12267
|
Object.defineProperty(exports, "startDmCall", {
|
|
12670
12268
|
enumerable: true,
|
|
12671
|
-
get: function () { return
|
|
12269
|
+
get: function () { return chunkSQTHTE2Y_cjs.startDmCall; }
|
|
12672
12270
|
});
|
|
12673
12271
|
Object.defineProperty(exports, "startThreadCall", {
|
|
12674
12272
|
enumerable: true,
|
|
12675
|
-
get: function () { return
|
|
12273
|
+
get: function () { return chunkSQTHTE2Y_cjs.startThreadCall; }
|
|
12676
12274
|
});
|
|
12677
12275
|
Object.defineProperty(exports, "startsMediaFile", {
|
|
12678
12276
|
enumerable: true,
|
|
12679
|
-
get: function () { return
|
|
12277
|
+
get: function () { return chunkSQTHTE2Y_cjs.startsMediaFile; }
|
|
12680
12278
|
});
|
|
12681
12279
|
Object.defineProperty(exports, "storeTranscriptSegment", {
|
|
12682
12280
|
enumerable: true,
|
|
12683
|
-
get: function () { return
|
|
12281
|
+
get: function () { return chunkSQTHTE2Y_cjs.storeTranscriptSegment; }
|
|
12684
12282
|
});
|
|
12685
12283
|
Object.defineProperty(exports, "stripSpeakerPrefix", {
|
|
12686
12284
|
enumerable: true,
|
|
12687
|
-
get: function () { return
|
|
12285
|
+
get: function () { return chunkSQTHTE2Y_cjs.stripSpeakerPrefix; }
|
|
12688
12286
|
});
|
|
12689
12287
|
Object.defineProperty(exports, "supersedeLiveTranscript", {
|
|
12690
12288
|
enumerable: true,
|
|
12691
|
-
get: function () { return
|
|
12289
|
+
get: function () { return chunkSQTHTE2Y_cjs.supersedeLiveTranscript; }
|
|
12692
12290
|
});
|
|
12693
12291
|
Object.defineProperty(exports, "supersededTranscriptLines", {
|
|
12694
12292
|
enumerable: true,
|
|
12695
|
-
get: function () { return
|
|
12293
|
+
get: function () { return chunkSQTHTE2Y_cjs.supersededTranscriptLines; }
|
|
12696
12294
|
});
|
|
12697
12295
|
Object.defineProperty(exports, "threadHasLiveCall", {
|
|
12698
12296
|
enumerable: true,
|
|
12699
|
-
get: function () { return
|
|
12297
|
+
get: function () { return chunkSQTHTE2Y_cjs.threadHasLiveCall; }
|
|
12700
12298
|
});
|
|
12701
12299
|
Object.defineProperty(exports, "threadLiveCallId", {
|
|
12702
12300
|
enumerable: true,
|
|
12703
|
-
get: function () { return
|
|
12301
|
+
get: function () { return chunkSQTHTE2Y_cjs.threadLiveCallId; }
|
|
12704
12302
|
});
|
|
12705
12303
|
Object.defineProperty(exports, "threadTranscriptLines", {
|
|
12706
12304
|
enumerable: true,
|
|
12707
|
-
get: function () { return
|
|
12305
|
+
get: function () { return chunkSQTHTE2Y_cjs.threadTranscriptLines; }
|
|
12708
12306
|
});
|
|
12709
12307
|
Object.defineProperty(exports, "threadTranscriptRef", {
|
|
12710
12308
|
enumerable: true,
|
|
12711
|
-
get: function () { return
|
|
12309
|
+
get: function () { return chunkSQTHTE2Y_cjs.threadTranscriptRef; }
|
|
12712
12310
|
});
|
|
12713
12311
|
Object.defineProperty(exports, "threadTranscriptText", {
|
|
12714
12312
|
enumerable: true,
|
|
12715
|
-
get: function () { return
|
|
12313
|
+
get: function () { return chunkSQTHTE2Y_cjs.threadTranscriptText; }
|
|
12716
12314
|
});
|
|
12717
12315
|
Object.defineProperty(exports, "timelineDurationMs", {
|
|
12718
12316
|
enumerable: true,
|
|
12719
|
-
get: function () { return
|
|
12317
|
+
get: function () { return chunkSQTHTE2Y_cjs.timelineDurationMs; }
|
|
12720
12318
|
});
|
|
12721
12319
|
Object.defineProperty(exports, "timelineOf", {
|
|
12722
12320
|
enumerable: true,
|
|
12723
|
-
get: function () { return
|
|
12321
|
+
get: function () { return chunkSQTHTE2Y_cjs.timelineOf; }
|
|
12724
12322
|
});
|
|
12725
12323
|
Object.defineProperty(exports, "toProfileView", {
|
|
12726
12324
|
enumerable: true,
|
|
12727
|
-
get: function () { return
|
|
12325
|
+
get: function () { return chunkSQTHTE2Y_cjs.toProfileView; }
|
|
12728
12326
|
});
|
|
12729
12327
|
Object.defineProperty(exports, "trackUploaderFor", {
|
|
12730
12328
|
enumerable: true,
|
|
12731
|
-
get: function () { return
|
|
12329
|
+
get: function () { return chunkSQTHTE2Y_cjs.trackUploaderFor; }
|
|
12732
12330
|
});
|
|
12733
12331
|
Object.defineProperty(exports, "transcribeRecording", {
|
|
12734
12332
|
enumerable: true,
|
|
12735
|
-
get: function () { return
|
|
12333
|
+
get: function () { return chunkSQTHTE2Y_cjs.transcribeRecording; }
|
|
12736
12334
|
});
|
|
12737
12335
|
Object.defineProperty(exports, "transcriptPersistRole", {
|
|
12738
12336
|
enumerable: true,
|
|
12739
|
-
get: function () { return
|
|
12337
|
+
get: function () { return chunkSQTHTE2Y_cjs.transcriptPersistRole; }
|
|
12740
12338
|
});
|
|
12741
12339
|
Object.defineProperty(exports, "transcriptSegmentOf", {
|
|
12742
12340
|
enumerable: true,
|
|
12743
|
-
get: function () { return
|
|
12341
|
+
get: function () { return chunkSQTHTE2Y_cjs.transcriptSegmentOf; }
|
|
12744
12342
|
});
|
|
12745
12343
|
Object.defineProperty(exports, "unwrapTrackKey", {
|
|
12746
12344
|
enumerable: true,
|
|
12747
|
-
get: function () { return
|
|
12345
|
+
get: function () { return chunkSQTHTE2Y_cjs.unwrapTrackKey; }
|
|
12748
12346
|
});
|
|
12749
12347
|
Object.defineProperty(exports, "upsertChat", {
|
|
12750
12348
|
enumerable: true,
|
|
12751
|
-
get: function () { return
|
|
12349
|
+
get: function () { return chunkSQTHTE2Y_cjs.upsertChat; }
|
|
12752
12350
|
});
|
|
12753
12351
|
Object.defineProperty(exports, "useAccountClient", {
|
|
12754
12352
|
enumerable: true,
|
|
12755
|
-
get: function () { return
|
|
12353
|
+
get: function () { return chunkSQTHTE2Y_cjs.useAccountClient; }
|
|
12756
12354
|
});
|
|
12757
12355
|
Object.defineProperty(exports, "useArbiWsContext", {
|
|
12758
12356
|
enumerable: true,
|
|
12759
|
-
get: function () { return
|
|
12357
|
+
get: function () { return chunkSQTHTE2Y_cjs.useArbiWsContext; }
|
|
12760
12358
|
});
|
|
12761
12359
|
Object.defineProperty(exports, "useAvatarCrop", {
|
|
12762
12360
|
enumerable: true,
|
|
12763
|
-
get: function () { return
|
|
12361
|
+
get: function () { return chunkSQTHTE2Y_cjs.useAvatarCrop; }
|
|
12764
12362
|
});
|
|
12765
12363
|
Object.defineProperty(exports, "useCall", {
|
|
12766
12364
|
enumerable: true,
|
|
12767
|
-
get: function () { return
|
|
12365
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCall; }
|
|
12768
12366
|
});
|
|
12769
12367
|
Object.defineProperty(exports, "useCallInviteLinks", {
|
|
12770
12368
|
enumerable: true,
|
|
12771
|
-
get: function () { return
|
|
12369
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCallInviteLinks; }
|
|
12772
12370
|
});
|
|
12773
12371
|
Object.defineProperty(exports, "useCallLiveUpdates", {
|
|
12774
12372
|
enumerable: true,
|
|
12775
|
-
get: function () { return
|
|
12373
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCallLiveUpdates; }
|
|
12776
12374
|
});
|
|
12777
12375
|
Object.defineProperty(exports, "useCallRecording", {
|
|
12778
12376
|
enumerable: true,
|
|
12779
|
-
get: function () { return
|
|
12377
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCallRecording; }
|
|
12780
12378
|
});
|
|
12781
12379
|
Object.defineProperty(exports, "useCallRecordings", {
|
|
12782
12380
|
enumerable: true,
|
|
12783
|
-
get: function () { return
|
|
12381
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCallRecordings; }
|
|
12784
12382
|
});
|
|
12785
12383
|
Object.defineProperty(exports, "useCallSession", {
|
|
12786
12384
|
enumerable: true,
|
|
12787
|
-
get: function () { return
|
|
12385
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCallSession; }
|
|
12788
12386
|
});
|
|
12789
12387
|
Object.defineProperty(exports, "useCallTranscriptionAvailable", {
|
|
12790
12388
|
enumerable: true,
|
|
12791
|
-
get: function () { return
|
|
12389
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCallTranscriptionAvailable; }
|
|
12792
12390
|
});
|
|
12793
12391
|
Object.defineProperty(exports, "useCallsConfig", {
|
|
12794
12392
|
enumerable: true,
|
|
12795
|
-
get: function () { return
|
|
12393
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCallsConfig; }
|
|
12796
12394
|
});
|
|
12797
12395
|
Object.defineProperty(exports, "useCallsEnabled", {
|
|
12798
12396
|
enumerable: true,
|
|
12799
|
-
get: function () { return
|
|
12397
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCallsEnabled; }
|
|
12800
12398
|
});
|
|
12801
12399
|
Object.defineProperty(exports, "useCanHostCalls", {
|
|
12802
12400
|
enumerable: true,
|
|
12803
|
-
get: function () { return
|
|
12401
|
+
get: function () { return chunkSQTHTE2Y_cjs.useCanHostCalls; }
|
|
12804
12402
|
});
|
|
12805
12403
|
Object.defineProperty(exports, "useEntitlements", {
|
|
12806
12404
|
enumerable: true,
|
|
12807
|
-
get: function () { return
|
|
12405
|
+
get: function () { return chunkSQTHTE2Y_cjs.useEntitlements; }
|
|
12808
12406
|
});
|
|
12809
12407
|
Object.defineProperty(exports, "useIsEntitled", {
|
|
12810
12408
|
enumerable: true,
|
|
12811
|
-
get: function () { return
|
|
12409
|
+
get: function () { return chunkSQTHTE2Y_cjs.useIsEntitled; }
|
|
12812
12410
|
});
|
|
12813
12411
|
Object.defineProperty(exports, "useMeetingReadOnly", {
|
|
12814
12412
|
enumerable: true,
|
|
12815
|
-
get: function () { return
|
|
12413
|
+
get: function () { return chunkSQTHTE2Y_cjs.useMeetingReadOnly; }
|
|
12816
12414
|
});
|
|
12817
12415
|
Object.defineProperty(exports, "useNameEditor", {
|
|
12818
12416
|
enumerable: true,
|
|
12819
|
-
get: function () { return
|
|
12417
|
+
get: function () { return chunkSQTHTE2Y_cjs.useNameEditor; }
|
|
12820
12418
|
});
|
|
12821
12419
|
Object.defineProperty(exports, "useOpenCallMeetingChat", {
|
|
12822
12420
|
enumerable: true,
|
|
12823
|
-
get: function () { return
|
|
12421
|
+
get: function () { return chunkSQTHTE2Y_cjs.useOpenCallMeetingChat; }
|
|
12824
12422
|
});
|
|
12825
12423
|
Object.defineProperty(exports, "useProfile", {
|
|
12826
12424
|
enumerable: true,
|
|
12827
|
-
get: function () { return
|
|
12425
|
+
get: function () { return chunkSQTHTE2Y_cjs.useProfile; }
|
|
12828
12426
|
});
|
|
12829
12427
|
Object.defineProperty(exports, "useRecordingActions", {
|
|
12830
12428
|
enumerable: true,
|
|
12831
|
-
get: function () { return
|
|
12429
|
+
get: function () { return chunkSQTHTE2Y_cjs.useRecordingActions; }
|
|
12832
12430
|
});
|
|
12833
12431
|
Object.defineProperty(exports, "useRecordingWindows", {
|
|
12834
12432
|
enumerable: true,
|
|
12835
|
-
get: function () { return
|
|
12433
|
+
get: function () { return chunkSQTHTE2Y_cjs.useRecordingWindows; }
|
|
12836
12434
|
});
|
|
12837
12435
|
Object.defineProperty(exports, "useRevokeCallInviteLink", {
|
|
12838
12436
|
enumerable: true,
|
|
12839
|
-
get: function () { return
|
|
12437
|
+
get: function () { return chunkSQTHTE2Y_cjs.useRevokeCallInviteLink; }
|
|
12840
12438
|
});
|
|
12841
12439
|
Object.defineProperty(exports, "useSaveToThread", {
|
|
12842
12440
|
enumerable: true,
|
|
12843
|
-
get: function () { return
|
|
12441
|
+
get: function () { return chunkSQTHTE2Y_cjs.useSaveToThread; }
|
|
12844
12442
|
});
|
|
12845
12443
|
Object.defineProperty(exports, "useServerCallsEnabled", {
|
|
12846
12444
|
enumerable: true,
|
|
12847
|
-
get: function () { return
|
|
12445
|
+
get: function () { return chunkSQTHTE2Y_cjs.useServerCallsEnabled; }
|
|
12848
12446
|
});
|
|
12849
12447
|
Object.defineProperty(exports, "useUpdateProfile", {
|
|
12850
12448
|
enumerable: true,
|
|
12851
|
-
get: function () { return
|
|
12449
|
+
get: function () { return chunkSQTHTE2Y_cjs.useUpdateProfile; }
|
|
12852
12450
|
});
|
|
12853
12451
|
Object.defineProperty(exports, "wrapTrackKey", {
|
|
12854
12452
|
enumerable: true,
|
|
12855
|
-
get: function () { return
|
|
12453
|
+
get: function () { return chunkSQTHTE2Y_cjs.wrapTrackKey; }
|
|
12856
12454
|
});
|
|
12857
12455
|
Object.defineProperty(exports, "writeSamples", {
|
|
12858
12456
|
enumerable: true,
|
|
12859
|
-
get: function () { return
|
|
12457
|
+
get: function () { return chunkSQTHTE2Y_cjs.writeSamples; }
|
|
12860
12458
|
});
|
|
12861
12459
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
12862
12460
|
enumerable: true,
|
|
@@ -13028,195 +12626,223 @@ Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
|
13028
12626
|
});
|
|
13029
12627
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_STATE", {
|
|
13030
12628
|
enumerable: true,
|
|
13031
|
-
get: function () { return
|
|
12629
|
+
get: function () { return chunkKYEWJVD2_cjs.DEFAULT_DOCUMENT_VIEWER_STATE; }
|
|
13032
12630
|
});
|
|
13033
12631
|
Object.defineProperty(exports, "EMPTY_SESSION_STATE", {
|
|
13034
12632
|
enumerable: true,
|
|
13035
|
-
get: function () { return
|
|
12633
|
+
get: function () { return chunkKYEWJVD2_cjs.EMPTY_SESSION_STATE; }
|
|
13036
12634
|
});
|
|
13037
12635
|
Object.defineProperty(exports, "MAX_THREAD_TABS", {
|
|
13038
12636
|
enumerable: true,
|
|
13039
|
-
get: function () { return
|
|
12637
|
+
get: function () { return chunkKYEWJVD2_cjs.MAX_THREAD_TABS; }
|
|
13040
12638
|
});
|
|
13041
12639
|
Object.defineProperty(exports, "MIN_QUEUED_MESSAGE_VISIBILITY_MS", {
|
|
13042
12640
|
enumerable: true,
|
|
13043
|
-
get: function () { return
|
|
12641
|
+
get: function () { return chunkKYEWJVD2_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS; }
|
|
13044
12642
|
});
|
|
13045
12643
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
13046
12644
|
enumerable: true,
|
|
13047
|
-
get: function () { return
|
|
12645
|
+
get: function () { return chunkKYEWJVD2_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
13048
12646
|
});
|
|
13049
12647
|
Object.defineProperty(exports, "agentControl", {
|
|
13050
12648
|
enumerable: true,
|
|
13051
|
-
get: function () { return
|
|
12649
|
+
get: function () { return chunkKYEWJVD2_cjs.agentControl; }
|
|
13052
12650
|
});
|
|
13053
12651
|
Object.defineProperty(exports, "clearSealedDrafts", {
|
|
13054
12652
|
enumerable: true,
|
|
13055
|
-
get: function () { return
|
|
12653
|
+
get: function () { return chunkKYEWJVD2_cjs.clearSealedDrafts; }
|
|
13056
12654
|
});
|
|
13057
12655
|
Object.defineProperty(exports, "conversationKey", {
|
|
13058
12656
|
enumerable: true,
|
|
13059
|
-
get: function () { return
|
|
12657
|
+
get: function () { return chunkKYEWJVD2_cjs.conversationKey; }
|
|
13060
12658
|
});
|
|
13061
12659
|
Object.defineProperty(exports, "createArbiSessionStore", {
|
|
13062
12660
|
enumerable: true,
|
|
13063
|
-
get: function () { return
|
|
12661
|
+
get: function () { return chunkKYEWJVD2_cjs.createArbiSessionStore; }
|
|
13064
12662
|
});
|
|
13065
12663
|
Object.defineProperty(exports, "createSealedDraftStorage", {
|
|
13066
12664
|
enumerable: true,
|
|
13067
|
-
get: function () { return
|
|
12665
|
+
get: function () { return chunkKYEWJVD2_cjs.createSealedDraftStorage; }
|
|
13068
12666
|
});
|
|
13069
12667
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
13070
12668
|
enumerable: true,
|
|
13071
|
-
get: function () { return
|
|
12669
|
+
get: function () { return chunkKYEWJVD2_cjs.isUsageMetered; }
|
|
13072
12670
|
});
|
|
13073
12671
|
Object.defineProperty(exports, "nextViewingDocument", {
|
|
13074
12672
|
enumerable: true,
|
|
13075
|
-
get: function () { return
|
|
12673
|
+
get: function () { return chunkKYEWJVD2_cjs.nextViewingDocument; }
|
|
13076
12674
|
});
|
|
13077
12675
|
Object.defineProperty(exports, "queuedMessages", {
|
|
13078
12676
|
enumerable: true,
|
|
13079
|
-
get: function () { return
|
|
12677
|
+
get: function () { return chunkKYEWJVD2_cjs.queuedMessages; }
|
|
13080
12678
|
});
|
|
13081
12679
|
Object.defineProperty(exports, "selectDraft", {
|
|
13082
12680
|
enumerable: true,
|
|
13083
|
-
get: function () { return
|
|
12681
|
+
get: function () { return chunkKYEWJVD2_cjs.selectDraft; }
|
|
13084
12682
|
});
|
|
13085
12683
|
Object.defineProperty(exports, "selectIsGenerating", {
|
|
13086
12684
|
enumerable: true,
|
|
13087
|
-
get: function () { return
|
|
12685
|
+
get: function () { return chunkKYEWJVD2_cjs.selectIsGenerating; }
|
|
13088
12686
|
});
|
|
13089
12687
|
Object.defineProperty(exports, "selectViewingDocumentId", {
|
|
13090
12688
|
enumerable: true,
|
|
13091
|
-
get: function () { return
|
|
12689
|
+
get: function () { return chunkKYEWJVD2_cjs.selectViewingDocumentId; }
|
|
13092
12690
|
});
|
|
13093
12691
|
Object.defineProperty(exports, "threadTabId", {
|
|
13094
12692
|
enumerable: true,
|
|
13095
|
-
get: function () { return
|
|
12693
|
+
get: function () { return chunkKYEWJVD2_cjs.threadTabId; }
|
|
13096
12694
|
});
|
|
13097
12695
|
Object.defineProperty(exports, "useActivity", {
|
|
13098
12696
|
enumerable: true,
|
|
13099
|
-
get: function () { return
|
|
12697
|
+
get: function () { return chunkKYEWJVD2_cjs.useActivity; }
|
|
13100
12698
|
});
|
|
13101
12699
|
Object.defineProperty(exports, "useAgents", {
|
|
13102
12700
|
enumerable: true,
|
|
13103
|
-
get: function () { return
|
|
12701
|
+
get: function () { return chunkKYEWJVD2_cjs.useAgents; }
|
|
13104
12702
|
});
|
|
13105
12703
|
Object.defineProperty(exports, "useArbiSession", {
|
|
13106
12704
|
enumerable: true,
|
|
13107
|
-
get: function () { return
|
|
12705
|
+
get: function () { return chunkKYEWJVD2_cjs.useArbiSession; }
|
|
13108
12706
|
});
|
|
13109
12707
|
Object.defineProperty(exports, "useArbiSessionState", {
|
|
13110
12708
|
enumerable: true,
|
|
13111
|
-
get: function () { return
|
|
12709
|
+
get: function () { return chunkKYEWJVD2_cjs.useArbiSessionState; }
|
|
13112
12710
|
});
|
|
13113
12711
|
Object.defineProperty(exports, "useArbiSessionStore", {
|
|
13114
12712
|
enumerable: true,
|
|
13115
|
-
get: function () { return
|
|
12713
|
+
get: function () { return chunkKYEWJVD2_cjs.useArbiSessionStore; }
|
|
13116
12714
|
});
|
|
13117
12715
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
13118
12716
|
enumerable: true,
|
|
13119
|
-
get: function () { return
|
|
12717
|
+
get: function () { return chunkKYEWJVD2_cjs.useAssistantQuery; }
|
|
13120
12718
|
});
|
|
13121
12719
|
Object.defineProperty(exports, "useAvailableModels", {
|
|
13122
12720
|
enumerable: true,
|
|
13123
|
-
get: function () { return
|
|
12721
|
+
get: function () { return chunkKYEWJVD2_cjs.useAvailableModels; }
|
|
13124
12722
|
});
|
|
13125
12723
|
Object.defineProperty(exports, "useBuiltinCommands", {
|
|
13126
12724
|
enumerable: true,
|
|
13127
|
-
get: function () { return
|
|
12725
|
+
get: function () { return chunkKYEWJVD2_cjs.useBuiltinCommands; }
|
|
13128
12726
|
});
|
|
13129
12727
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
13130
12728
|
enumerable: true,
|
|
13131
|
-
get: function () { return
|
|
12729
|
+
get: function () { return chunkKYEWJVD2_cjs.useCanCreateProjects; }
|
|
13132
12730
|
});
|
|
13133
12731
|
Object.defineProperty(exports, "useConfig", {
|
|
13134
12732
|
enumerable: true,
|
|
13135
|
-
get: function () { return
|
|
12733
|
+
get: function () { return chunkKYEWJVD2_cjs.useConfig; }
|
|
13136
12734
|
});
|
|
13137
12735
|
Object.defineProperty(exports, "useConfigs", {
|
|
13138
12736
|
enumerable: true,
|
|
13139
|
-
get: function () { return
|
|
12737
|
+
get: function () { return chunkKYEWJVD2_cjs.useConfigs; }
|
|
13140
12738
|
});
|
|
13141
12739
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
13142
12740
|
enumerable: true,
|
|
13143
|
-
get: function () { return
|
|
12741
|
+
get: function () { return chunkKYEWJVD2_cjs.useConversationThreads; }
|
|
13144
12742
|
});
|
|
13145
12743
|
Object.defineProperty(exports, "useConversations", {
|
|
13146
12744
|
enumerable: true,
|
|
13147
|
-
get: function () { return
|
|
12745
|
+
get: function () { return chunkKYEWJVD2_cjs.useConversations; }
|
|
13148
12746
|
});
|
|
13149
12747
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
13150
12748
|
enumerable: true,
|
|
13151
|
-
get: function () { return
|
|
12749
|
+
get: function () { return chunkKYEWJVD2_cjs.useCurrentUser; }
|
|
13152
12750
|
});
|
|
13153
12751
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
13154
12752
|
enumerable: true,
|
|
13155
|
-
get: function () { return
|
|
12753
|
+
get: function () { return chunkKYEWJVD2_cjs.useDeleteAgents; }
|
|
13156
12754
|
});
|
|
13157
12755
|
Object.defineProperty(exports, "useDocumentVersionList", {
|
|
13158
12756
|
enumerable: true,
|
|
13159
|
-
get: function () { return
|
|
12757
|
+
get: function () { return chunkKYEWJVD2_cjs.useDocumentVersionList; }
|
|
13160
12758
|
});
|
|
13161
12759
|
Object.defineProperty(exports, "useFirmPool", {
|
|
13162
12760
|
enumerable: true,
|
|
13163
|
-
get: function () { return
|
|
12761
|
+
get: function () { return chunkKYEWJVD2_cjs.useFirmPool; }
|
|
13164
12762
|
});
|
|
13165
12763
|
Object.defineProperty(exports, "useHealth", {
|
|
13166
12764
|
enumerable: true,
|
|
13167
|
-
get: function () { return
|
|
12765
|
+
get: function () { return chunkKYEWJVD2_cjs.useHealth; }
|
|
13168
12766
|
});
|
|
13169
12767
|
Object.defineProperty(exports, "useMessageDetails", {
|
|
13170
12768
|
enumerable: true,
|
|
13171
|
-
get: function () { return
|
|
12769
|
+
get: function () { return chunkKYEWJVD2_cjs.useMessageDetails; }
|
|
13172
12770
|
});
|
|
13173
12771
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
13174
12772
|
enumerable: true,
|
|
13175
|
-
get: function () { return
|
|
12773
|
+
get: function () { return chunkKYEWJVD2_cjs.useParsedDocument; }
|
|
13176
12774
|
});
|
|
13177
12775
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
13178
12776
|
enumerable: true,
|
|
13179
|
-
get: function () { return
|
|
12777
|
+
get: function () { return chunkKYEWJVD2_cjs.useProjectInvoices; }
|
|
13180
12778
|
});
|
|
13181
12779
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
13182
12780
|
enumerable: true,
|
|
13183
|
-
get: function () { return
|
|
12781
|
+
get: function () { return chunkKYEWJVD2_cjs.useProjectUsage; }
|
|
13184
12782
|
});
|
|
13185
12783
|
Object.defineProperty(exports, "useProjects", {
|
|
13186
12784
|
enumerable: true,
|
|
13187
|
-
get: function () { return
|
|
12785
|
+
get: function () { return chunkKYEWJVD2_cjs.useProjects; }
|
|
13188
12786
|
});
|
|
13189
12787
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
13190
12788
|
enumerable: true,
|
|
13191
|
-
get: function () { return
|
|
12789
|
+
get: function () { return chunkKYEWJVD2_cjs.useProjectsUsage; }
|
|
13192
12790
|
});
|
|
13193
12791
|
Object.defineProperty(exports, "useSignedInSession", {
|
|
13194
12792
|
enumerable: true,
|
|
13195
|
-
get: function () { return
|
|
12793
|
+
get: function () { return chunkKYEWJVD2_cjs.useSignedInSession; }
|
|
13196
12794
|
});
|
|
13197
12795
|
Object.defineProperty(exports, "useTags", {
|
|
13198
12796
|
enumerable: true,
|
|
13199
|
-
get: function () { return
|
|
12797
|
+
get: function () { return chunkKYEWJVD2_cjs.useTags; }
|
|
13200
12798
|
});
|
|
13201
12799
|
Object.defineProperty(exports, "useThumbnails", {
|
|
13202
12800
|
enumerable: true,
|
|
13203
|
-
get: function () { return
|
|
12801
|
+
get: function () { return chunkKYEWJVD2_cjs.useThumbnails; }
|
|
13204
12802
|
});
|
|
13205
12803
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
13206
12804
|
enumerable: true,
|
|
13207
|
-
get: function () { return
|
|
12805
|
+
get: function () { return chunkKYEWJVD2_cjs.useTopUpFirmPool; }
|
|
13208
12806
|
});
|
|
13209
12807
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
13210
12808
|
enumerable: true,
|
|
13211
|
-
get: function () { return
|
|
12809
|
+
get: function () { return chunkKYEWJVD2_cjs.useUserUsageToday; }
|
|
13212
12810
|
});
|
|
13213
12811
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
13214
12812
|
enumerable: true,
|
|
13215
|
-
get: function () { return
|
|
12813
|
+
get: function () { return chunkKYEWJVD2_cjs.useWorkspaceActivity; }
|
|
13216
12814
|
});
|
|
13217
12815
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
13218
12816
|
enumerable: true,
|
|
13219
|
-
get: function () { return
|
|
12817
|
+
get: function () { return chunkKYEWJVD2_cjs.useWorkspaces; }
|
|
12818
|
+
});
|
|
12819
|
+
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
12820
|
+
enumerable: true,
|
|
12821
|
+
get: function () { return chunkVLK52VXC_cjs.arbiMutationKeys; }
|
|
12822
|
+
});
|
|
12823
|
+
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
12824
|
+
enumerable: true,
|
|
12825
|
+
get: function () { return chunkVLK52VXC_cjs.arbiQueryKeys; }
|
|
12826
|
+
});
|
|
12827
|
+
Object.defineProperty(exports, "calendarQueryKeys", {
|
|
12828
|
+
enumerable: true,
|
|
12829
|
+
get: function () { return chunkVLK52VXC_cjs.calendarQueryKeys; }
|
|
12830
|
+
});
|
|
12831
|
+
Object.defineProperty(exports, "callQueryKeys", {
|
|
12832
|
+
enumerable: true,
|
|
12833
|
+
get: function () { return chunkVLK52VXC_cjs.callQueryKeys; }
|
|
12834
|
+
});
|
|
12835
|
+
Object.defineProperty(exports, "connectorQueryKeys", {
|
|
12836
|
+
enumerable: true,
|
|
12837
|
+
get: function () { return chunkVLK52VXC_cjs.connectorQueryKeys; }
|
|
12838
|
+
});
|
|
12839
|
+
Object.defineProperty(exports, "isUnderQueryKey", {
|
|
12840
|
+
enumerable: true,
|
|
12841
|
+
get: function () { return chunkVLK52VXC_cjs.isUnderQueryKey; }
|
|
12842
|
+
});
|
|
12843
|
+
Object.defineProperty(exports, "mailQueryKeys", {
|
|
12844
|
+
enumerable: true,
|
|
12845
|
+
get: function () { return chunkVLK52VXC_cjs.mailQueryKeys; }
|
|
13220
12846
|
});
|
|
13221
12847
|
Object.defineProperty(exports, "MENTION_HREF_PREFIX", {
|
|
13222
12848
|
enumerable: true,
|
|
@@ -13346,34 +12972,6 @@ Object.defineProperty(exports, "mergeHostConfig", {
|
|
|
13346
12972
|
enumerable: true,
|
|
13347
12973
|
get: function () { return chunkN73IMVFF_cjs.mergeHostConfig; }
|
|
13348
12974
|
});
|
|
13349
|
-
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
13350
|
-
enumerable: true,
|
|
13351
|
-
get: function () { return chunkVLK52VXC_cjs.arbiMutationKeys; }
|
|
13352
|
-
});
|
|
13353
|
-
Object.defineProperty(exports, "arbiQueryKeys", {
|
|
13354
|
-
enumerable: true,
|
|
13355
|
-
get: function () { return chunkVLK52VXC_cjs.arbiQueryKeys; }
|
|
13356
|
-
});
|
|
13357
|
-
Object.defineProperty(exports, "calendarQueryKeys", {
|
|
13358
|
-
enumerable: true,
|
|
13359
|
-
get: function () { return chunkVLK52VXC_cjs.calendarQueryKeys; }
|
|
13360
|
-
});
|
|
13361
|
-
Object.defineProperty(exports, "callQueryKeys", {
|
|
13362
|
-
enumerable: true,
|
|
13363
|
-
get: function () { return chunkVLK52VXC_cjs.callQueryKeys; }
|
|
13364
|
-
});
|
|
13365
|
-
Object.defineProperty(exports, "connectorQueryKeys", {
|
|
13366
|
-
enumerable: true,
|
|
13367
|
-
get: function () { return chunkVLK52VXC_cjs.connectorQueryKeys; }
|
|
13368
|
-
});
|
|
13369
|
-
Object.defineProperty(exports, "isUnderQueryKey", {
|
|
13370
|
-
enumerable: true,
|
|
13371
|
-
get: function () { return chunkVLK52VXC_cjs.isUnderQueryKey; }
|
|
13372
|
-
});
|
|
13373
|
-
Object.defineProperty(exports, "mailQueryKeys", {
|
|
13374
|
-
enumerable: true,
|
|
13375
|
-
get: function () { return chunkVLK52VXC_cjs.mailQueryKeys; }
|
|
13376
|
-
});
|
|
13377
12975
|
Object.defineProperty(exports, "cleanDraftMarkdown", {
|
|
13378
12976
|
enumerable: true,
|
|
13379
12977
|
get: function () { return chunkZWFMFOGP_cjs.cleanDraftMarkdown; }
|
|
@@ -14170,14 +13768,6 @@ Object.defineProperty(exports, "splitMarkdownBlocks", {
|
|
|
14170
13768
|
enumerable: true,
|
|
14171
13769
|
get: function () { return chunkOC7F5SNA_cjs.splitMarkdownBlocks; }
|
|
14172
13770
|
});
|
|
14173
|
-
Object.defineProperty(exports, "ScrollArea", {
|
|
14174
|
-
enumerable: true,
|
|
14175
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
14176
|
-
});
|
|
14177
|
-
Object.defineProperty(exports, "ScrollBar", {
|
|
14178
|
-
enumerable: true,
|
|
14179
|
-
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
14180
|
-
});
|
|
14181
13771
|
Object.defineProperty(exports, "Button", {
|
|
14182
13772
|
enumerable: true,
|
|
14183
13773
|
get: function () { return chunkWYZJLZ67_cjs.Button; }
|
|
@@ -14226,17 +13816,13 @@ Object.defineProperty(exports, "buttonVariants", {
|
|
|
14226
13816
|
enumerable: true,
|
|
14227
13817
|
get: function () { return chunkWYZJLZ67_cjs.buttonVariants; }
|
|
14228
13818
|
});
|
|
14229
|
-
Object.defineProperty(exports, "
|
|
14230
|
-
enumerable: true,
|
|
14231
|
-
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
14232
|
-
});
|
|
14233
|
-
Object.defineProperty(exports, "normalizeCitationMarkup", {
|
|
13819
|
+
Object.defineProperty(exports, "ScrollArea", {
|
|
14234
13820
|
enumerable: true,
|
|
14235
|
-
get: function () { return
|
|
13821
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollArea; }
|
|
14236
13822
|
});
|
|
14237
|
-
Object.defineProperty(exports, "
|
|
13823
|
+
Object.defineProperty(exports, "ScrollBar", {
|
|
14238
13824
|
enumerable: true,
|
|
14239
|
-
get: function () { return
|
|
13825
|
+
get: function () { return chunkHUZB36QU_cjs.ScrollBar; }
|
|
14240
13826
|
});
|
|
14241
13827
|
Object.defineProperty(exports, "DropdownMenu", {
|
|
14242
13828
|
enumerable: true,
|
|
@@ -14306,6 +13892,18 @@ Object.defineProperty(exports, "usePortalContainer", {
|
|
|
14306
13892
|
enumerable: true,
|
|
14307
13893
|
get: function () { return chunkHJDR5HEO_cjs.usePortalContainer; }
|
|
14308
13894
|
});
|
|
13895
|
+
Object.defineProperty(exports, "closeOpenEmphasis", {
|
|
13896
|
+
enumerable: true,
|
|
13897
|
+
get: function () { return chunkZ3LLUO32_cjs.closeOpenEmphasis; }
|
|
13898
|
+
});
|
|
13899
|
+
Object.defineProperty(exports, "normalizeCitationMarkup", {
|
|
13900
|
+
enumerable: true,
|
|
13901
|
+
get: function () { return chunkZ3LLUO32_cjs.normalizeCitationMarkup; }
|
|
13902
|
+
});
|
|
13903
|
+
Object.defineProperty(exports, "trimOpenCitation", {
|
|
13904
|
+
enumerable: true,
|
|
13905
|
+
get: function () { return chunkZ3LLUO32_cjs.trimOpenCitation; }
|
|
13906
|
+
});
|
|
14309
13907
|
Object.defineProperty(exports, "cn", {
|
|
14310
13908
|
enumerable: true,
|
|
14311
13909
|
get: function () { return chunkS6A6FSG7_cjs.cn; }
|
|
@@ -14446,9 +14044,7 @@ exports.ConversationList = ConversationList;
|
|
|
14446
14044
|
exports.ConversationScope = ConversationScope;
|
|
14447
14045
|
exports.DEFAULT_ASPECT_OPTIONS = DEFAULT_ASPECT_OPTIONS;
|
|
14448
14046
|
exports.DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES = DEFAULT_PASSWORD_CHANGE_FORM_MESSAGES;
|
|
14449
|
-
exports.DEFAULT_START_BY_EMAIL_LABELS = DEFAULT_START_BY_EMAIL_LABELS;
|
|
14450
14047
|
exports.DateSeparator = DateSeparator;
|
|
14451
|
-
exports.DirectMessages = DirectMessages;
|
|
14452
14048
|
exports.DmAvatar = DmAvatar;
|
|
14453
14049
|
exports.DmComposer = DmComposer;
|
|
14454
14050
|
exports.DocQaPanel = DocQaPanel;
|
|
@@ -14466,15 +14062,12 @@ exports.MAIL_DRAFT_REPLACED_EVENT = MAIL_DRAFT_REPLACED_EVENT;
|
|
|
14466
14062
|
exports.MIN_NARRATION_DWELL_MS = MIN_NARRATION_DWELL_MS;
|
|
14467
14063
|
exports.MailOfflineUnavailableError = MailOfflineUnavailableError;
|
|
14468
14064
|
exports.MessageArtifactCard = MessageArtifactCard;
|
|
14469
|
-
exports.MessageBubble = MessageBubble;
|
|
14470
|
-
exports.MessageThread = MessageThread;
|
|
14471
14065
|
exports.POLL_EVERY_MS = POLL_EVERY_MS;
|
|
14472
14066
|
exports.PhotoCapture = PhotoCapture;
|
|
14473
14067
|
exports.RUN_WINDOW_MS = RUN_WINDOW_MS;
|
|
14474
14068
|
exports.SIGNATURE_NOTIFICATION_TYPES = SIGNATURE_NOTIFICATION_TYPES;
|
|
14475
14069
|
exports.SLOW_AFTER_MS = SLOW_AFTER_MS;
|
|
14476
14070
|
exports.STILL_WORKING = STILL_WORKING;
|
|
14477
|
-
exports.StartByEmail = StartByEmail;
|
|
14478
14071
|
exports.TRANSFER_POLL_MS = TRANSFER_POLL_MS;
|
|
14479
14072
|
exports.TaskThreadPendingError = TaskThreadPendingError;
|
|
14480
14073
|
exports.TypingIndicator = TypingIndicator;
|
|
@@ -14731,7 +14324,6 @@ exports.useDeleteProject = useDeleteProject;
|
|
|
14731
14324
|
exports.useDeleteSkill = useDeleteSkill;
|
|
14732
14325
|
exports.useDeleteWorkflow = useDeleteWorkflow;
|
|
14733
14326
|
exports.useDeleteWorkspaces = useDeleteWorkspaces;
|
|
14734
|
-
exports.useDirectMessages = useDirectMessages;
|
|
14735
14327
|
exports.useDisconnectCalendarAccount = useDisconnectCalendarAccount;
|
|
14736
14328
|
exports.useDisconnectConnector = useDisconnectConnector;
|
|
14737
14329
|
exports.useDisconnectMailAccount = useDisconnectMailAccount;
|