@arbidocs/react 0.5.31 → 0.5.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.cjs +6 -6
- package/dist/artifacts/index.js +3 -3
- package/dist/calls/livekit/index.cjs +42 -42
- package/dist/calls/livekit/index.js +3 -3
- package/dist/{chunk-NV5G5RR5.cjs → chunk-CWJAULV2.cjs} +420 -5
- package/dist/chunk-CWJAULV2.cjs.map +1 -0
- package/dist/{chunk-2ERRXEOB.cjs → chunk-GAW2PLSL.cjs} +59 -4
- package/dist/chunk-GAW2PLSL.cjs.map +1 -0
- package/dist/{chunk-DE4FTXVJ.cjs → chunk-KHRCABUX.cjs} +6 -6
- package/dist/{chunk-DE4FTXVJ.cjs.map → chunk-KHRCABUX.cjs.map} +1 -1
- package/dist/{chunk-VHGJG32Q.js → chunk-MJWUUDYT.js} +57 -5
- package/dist/chunk-MJWUUDYT.js.map +1 -0
- package/dist/{chunk-WYGX24QO.js → chunk-R4YLLLCT.js} +4 -4
- package/dist/{chunk-WYGX24QO.js.map → chunk-R4YLLLCT.js.map} +1 -1
- package/dist/{chunk-CIWI5UFT.js → chunk-VTNFF7P6.js} +406 -7
- package/dist/chunk-VTNFF7P6.js.map +1 -0
- package/dist/document-tools/index.cjs +1 -1
- package/dist/document-tools/index.js +1 -1
- package/dist/index.cjs +920 -588
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +455 -91
- package/dist/index.d.ts +455 -91
- package/dist/index.js +397 -148
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/dist/chunk-2ERRXEOB.cjs.map +0 -1
- package/dist/chunk-CIWI5UFT.js.map +0 -1
- package/dist/chunk-NV5G5RR5.cjs.map +0 -1
- package/dist/chunk-VHGJG32Q.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
3
|
+
var chunkKHRCABUX_cjs = require('./chunk-KHRCABUX.cjs');
|
|
4
|
+
var chunkGAW2PLSL_cjs = require('./chunk-GAW2PLSL.cjs');
|
|
5
|
+
var chunkCWJAULV2_cjs = require('./chunk-CWJAULV2.cjs');
|
|
6
6
|
var chunkONGNP4JM_cjs = require('./chunk-ONGNP4JM.cjs');
|
|
7
7
|
var chunkRRWAX52L_cjs = require('./chunk-RRWAX52L.cjs');
|
|
8
8
|
var chunkTUPSNW3B_cjs = require('./chunk-TUPSNW3B.cjs');
|
|
@@ -10,8 +10,6 @@ var chunkVAMPYLQ4_cjs = require('./chunk-VAMPYLQ4.cjs');
|
|
|
10
10
|
var chunkN73IMVFF_cjs = require('./chunk-N73IMVFF.cjs');
|
|
11
11
|
var chunkZWFMFOGP_cjs = require('./chunk-ZWFMFOGP.cjs');
|
|
12
12
|
require('./chunk-VOFNX4P6.cjs');
|
|
13
|
-
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
14
|
-
var chunkYIUUTRMQ_cjs = require('./chunk-YIUUTRMQ.cjs');
|
|
15
13
|
var chunkFSPLYO52_cjs = require('./chunk-FSPLYO52.cjs');
|
|
16
14
|
var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
|
|
17
15
|
var chunkOC7F5SNA_cjs = require('./chunk-OC7F5SNA.cjs');
|
|
@@ -20,13 +18,15 @@ var chunkKC474WVG_cjs = require('./chunk-KC474WVG.cjs');
|
|
|
20
18
|
var chunkHJDR5HEO_cjs = require('./chunk-HJDR5HEO.cjs');
|
|
21
19
|
var chunkZ3LLUO32_cjs = require('./chunk-Z3LLUO32.cjs');
|
|
22
20
|
var chunkS6A6FSG7_cjs = require('./chunk-S6A6FSG7.cjs');
|
|
21
|
+
var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
|
|
22
|
+
var chunkYIUUTRMQ_cjs = require('./chunk-YIUUTRMQ.cjs');
|
|
23
23
|
var chunkRCKA7BEF_cjs = require('./chunk-RCKA7BEF.cjs');
|
|
24
24
|
var React = require('react');
|
|
25
25
|
var reactQuery = require('@tanstack/react-query');
|
|
26
26
|
var browser = require('@arbidocs/sdk/browser');
|
|
27
|
-
var zustand = require('zustand');
|
|
28
27
|
var lucideReact = require('lucide-react');
|
|
29
28
|
var jsxRuntime = require('react/jsx-runtime');
|
|
29
|
+
var zustand = require('zustand');
|
|
30
30
|
var client = require('@arbidocs/client');
|
|
31
31
|
var diff = require('diff');
|
|
32
32
|
var framerMotion = require('framer-motion');
|
|
@@ -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 = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
75
|
+
const open = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceStatus === "open");
|
|
76
|
+
const query = chunkCWJAULV2_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 = chunkCWJAULV2_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 = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
107
|
+
const me = chunkCWJAULV2_cjs.useArbiSession().user?.external_id;
|
|
108
|
+
const { data: workspaces } = chunkCWJAULV2_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 chunkKHRCABUX_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 = chunkYIUUTRMQ_cjs.useArbi();
|
|
142
142
|
const queryClient = reactQuery.useQueryClient();
|
|
143
|
-
const chatModel =
|
|
143
|
+
const chatModel = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.chatModel);
|
|
144
144
|
const post = reactQuery.useMutation({
|
|
145
145
|
mutationFn: (query) => {
|
|
146
146
|
const selectedConfig = chatModel || queryClient.getQueriesData({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() }).map(([, settings]) => settings?.last_config).find(Boolean);
|
|
@@ -173,7 +173,7 @@ function useStartTaskQuery() {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
if (!conversationId) return null;
|
|
176
|
-
await
|
|
176
|
+
await chunkKHRCABUX_cjs.invalidateConversationLists(queryClient);
|
|
177
177
|
return { conversationId };
|
|
178
178
|
};
|
|
179
179
|
return {
|
|
@@ -202,8 +202,8 @@ function useUpdateConversation() {
|
|
|
202
202
|
}) => arbi.conversations.update(conversationId, patch),
|
|
203
203
|
// The list takes the server's version of the row; what hangs off it is read again.
|
|
204
204
|
onSuccess: (updated, { conversationId }) => {
|
|
205
|
-
|
|
206
|
-
return
|
|
205
|
+
chunkKHRCABUX_cjs.patchConversation(qc, conversationId, updated);
|
|
206
|
+
return chunkKHRCABUX_cjs.invalidateConversationDetails(qc, conversationId);
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
}
|
|
@@ -212,7 +212,7 @@ function useDeleteConversation() {
|
|
|
212
212
|
const qc = reactQuery.useQueryClient();
|
|
213
213
|
return reactQuery.useMutation({
|
|
214
214
|
mutationFn: (conversationId) => arbi.conversations.delete(conversationId),
|
|
215
|
-
onSuccess: (_res, conversationId) =>
|
|
215
|
+
onSuccess: (_res, conversationId) => chunkKHRCABUX_cjs.removeConversationFromLists(qc, conversationId)
|
|
216
216
|
});
|
|
217
217
|
}
|
|
218
218
|
function useConversationSearch() {
|
|
@@ -226,7 +226,7 @@ function useCreateWork() {
|
|
|
226
226
|
const qc = reactQuery.useQueryClient();
|
|
227
227
|
return reactQuery.useMutation({
|
|
228
228
|
mutationFn: (body) => arbi.conversations.createWork(body),
|
|
229
|
-
onSuccess: (created) =>
|
|
229
|
+
onSuccess: (created) => chunkKHRCABUX_cjs.addConversationToList(qc, arbi.hasWorkspace ? arbi.getWorkspaceId() : null, created)
|
|
230
230
|
});
|
|
231
231
|
}
|
|
232
232
|
function useRunConversation() {
|
|
@@ -236,7 +236,7 @@ function useRunConversation() {
|
|
|
236
236
|
mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
|
|
237
237
|
// The server's version replaces the listed one; everything under the conversation is re-read.
|
|
238
238
|
onSuccess: (updated) => {
|
|
239
|
-
if (updated?.external_id)
|
|
239
|
+
if (updated?.external_id) chunkKHRCABUX_cjs.patchConversation(qc, updated.external_id, updated);
|
|
240
240
|
return qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allConversations() });
|
|
241
241
|
}
|
|
242
242
|
});
|
|
@@ -252,7 +252,7 @@ function useActOnStep() {
|
|
|
252
252
|
// The server's version of the conversation replaces the listed one; its history is re-read.
|
|
253
253
|
onSuccess: (updated) => {
|
|
254
254
|
if (!updated?.external_id) return;
|
|
255
|
-
|
|
255
|
+
chunkKHRCABUX_cjs.patchConversation(qc, updated.external_id, updated);
|
|
256
256
|
invalidateConversationActivity(qc, updated.external_id);
|
|
257
257
|
}
|
|
258
258
|
});
|
|
@@ -1333,18 +1333,18 @@ function cachedAssistantMode(queryClient, conversationId, newMode) {
|
|
|
1333
1333
|
if (!conversationId) return newMode;
|
|
1334
1334
|
const threads = queryClient.getQueriesData(allConversationThreads).map(([, data]) => data).find((data) => data?.conversation_ext_id === conversationId);
|
|
1335
1335
|
if (threads?.assistant_mode) return threads.assistant_mode;
|
|
1336
|
-
return
|
|
1336
|
+
return chunkKHRCABUX_cjs.findConversation(queryClient, conversationId)?.assistant_mode ?? "always";
|
|
1337
1337
|
}
|
|
1338
1338
|
function isCommentToPeople(queryClient, conversationId, content, candidates) {
|
|
1339
1339
|
const mentioned = chunkTUPSNW3B_cjs.extractMentions(content, candidates);
|
|
1340
1340
|
if (mentioned.some((c) => c.kind === "assistant")) return false;
|
|
1341
|
-
if (
|
|
1341
|
+
if (chunkKHRCABUX_cjs.isConversationShared(queryClient, conversationId)) return true;
|
|
1342
1342
|
if (mentioned.some((c) => c.kind === "user")) return true;
|
|
1343
|
-
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !
|
|
1343
|
+
return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned" && !chunkKHRCABUX_cjs.isKnownSoloConversation(queryClient, conversationId);
|
|
1344
1344
|
}
|
|
1345
1345
|
function useMentionCandidates() {
|
|
1346
1346
|
const { data: users = [] } = useWorkspaceUsers();
|
|
1347
|
-
const currentUserId =
|
|
1347
|
+
const currentUserId = chunkCWJAULV2_cjs.useArbiSession().user?.external_id;
|
|
1348
1348
|
return React.useMemo(() => buildMentionCandidates(users, currentUserId), [users, currentUserId]);
|
|
1349
1349
|
}
|
|
1350
1350
|
function useUserSettings(options) {
|
|
@@ -1448,11 +1448,11 @@ function configDelta(active, defaults) {
|
|
|
1448
1448
|
}
|
|
1449
1449
|
function useSaveConfigField() {
|
|
1450
1450
|
const saveConfig = useSaveConfig();
|
|
1451
|
-
const { data: defaultConfig } =
|
|
1452
|
-
const chatModel =
|
|
1451
|
+
const { data: defaultConfig } = chunkCWJAULV2_cjs.useConfig("default");
|
|
1452
|
+
const chatModel = chunkCWJAULV2_cjs.useArbiSessionState((state) => state.chatModel);
|
|
1453
1453
|
const { data: userSettings } = useUserSettings();
|
|
1454
1454
|
const activeConfigId = chatModel || userSettings?.last_config || "default";
|
|
1455
|
-
const { data: activeConfigData } =
|
|
1455
|
+
const { data: activeConfigData } = chunkCWJAULV2_cjs.useConfig(activeConfigId);
|
|
1456
1456
|
const buildDelta = (changes) => {
|
|
1457
1457
|
const defaults = defaultConfig ?? {};
|
|
1458
1458
|
const active = activeConfigData ?? {};
|
|
@@ -1490,8 +1490,8 @@ function pendingChatModelSave(session) {
|
|
|
1490
1490
|
return chatModelSaves.get(session);
|
|
1491
1491
|
}
|
|
1492
1492
|
function useApplyChatModel() {
|
|
1493
|
-
const session =
|
|
1494
|
-
const { data: availableModels } =
|
|
1493
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
1494
|
+
const { data: availableModels } = chunkCWJAULV2_cjs.useAvailableModels();
|
|
1495
1495
|
const configField = useSaveConfigField();
|
|
1496
1496
|
return React.useCallback(
|
|
1497
1497
|
async (model, label) => {
|
|
@@ -1519,7 +1519,7 @@ function useApplyChatModel() {
|
|
|
1519
1519
|
// src/chat/thread-binding.ts
|
|
1520
1520
|
function threadBinding(queryClient, conversationId) {
|
|
1521
1521
|
if (!conversationId) return chunkTUPSNW3B_cjs.UNBOUND;
|
|
1522
|
-
const row =
|
|
1522
|
+
const row = chunkKHRCABUX_cjs.findConversation(queryClient, conversationId);
|
|
1523
1523
|
if (row) return chunkTUPSNW3B_cjs.bindingOfRow(row);
|
|
1524
1524
|
const threads = queryClient.getQueryData(getThreadsQueryKey(conversationId));
|
|
1525
1525
|
return chunkTUPSNW3B_cjs.bindingOfRow(threads ? { external_id: conversationId, ...threads } : null);
|
|
@@ -1532,7 +1532,7 @@ function cacheThreadBinding(queryClient, conversationId, binding) {
|
|
|
1532
1532
|
bound_document_ext_id: binding.documentId,
|
|
1533
1533
|
bound_document_unavailable: binding.unavailable
|
|
1534
1534
|
};
|
|
1535
|
-
|
|
1535
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, conversationId, fields);
|
|
1536
1536
|
queryClient.setQueryData(
|
|
1537
1537
|
getThreadsQueryKey(conversationId),
|
|
1538
1538
|
(old) => old ? { ...old, ...fields } : old
|
|
@@ -1546,7 +1546,7 @@ async function bindThreadDocument(arbi, queryClient, conversationId, documentId)
|
|
|
1546
1546
|
const saved = await arbi.conversations.update(conversationId, {
|
|
1547
1547
|
bound_document_ext_id: documentId
|
|
1548
1548
|
});
|
|
1549
|
-
|
|
1549
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, conversationId, saved);
|
|
1550
1550
|
cacheThreadBinding(queryClient, conversationId, chunkTUPSNW3B_cjs.bindingOfRow(saved));
|
|
1551
1551
|
} catch (error) {
|
|
1552
1552
|
cacheThreadBinding(queryClient, conversationId, before);
|
|
@@ -1600,65 +1600,119 @@ function subscribeDocumentReads(qc, onRows) {
|
|
|
1600
1600
|
onRows([data]);
|
|
1601
1601
|
});
|
|
1602
1602
|
}
|
|
1603
|
-
var
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
)
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
}
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
}
|
|
1636
|
-
function useProcessingTask(docId) {
|
|
1637
|
-
const { useProcessingTask: useHostTask } = useDocumentsSupport();
|
|
1638
|
-
const own = useArbiWsStore((state) => state.tasks[docId]);
|
|
1639
|
-
const host = useHostTask?.(docId);
|
|
1640
|
-
return useHostTask ? host : own;
|
|
1641
|
-
}
|
|
1642
|
-
var NO_ACTIONS = {};
|
|
1643
|
-
var NO_IDS = /* @__PURE__ */ new Set();
|
|
1644
|
-
function useDocumentHostActions() {
|
|
1645
|
-
const { useHostActions } = useDocumentsSupport();
|
|
1646
|
-
return useHostActions?.() ?? NO_ACTIONS;
|
|
1647
|
-
}
|
|
1648
|
-
function useOfflineDocumentIds() {
|
|
1649
|
-
const { useOfflineDocumentIds: useHostIds } = useDocumentsSupport();
|
|
1650
|
-
return useHostIds?.() ?? NO_IDS;
|
|
1603
|
+
var STALE_TASK_MS = 6 * 60 * 60 * 1e3;
|
|
1604
|
+
var ORPHAN_TASK_MS = 15 * 60 * 1e3;
|
|
1605
|
+
var SNAPSHOT_MS = 500;
|
|
1606
|
+
function applyTaskEvent(queryClient, arbi, message, me) {
|
|
1607
|
+
const workspaceId = message.workspace_ext_id;
|
|
1608
|
+
if (!workspaceId) return;
|
|
1609
|
+
if (chunkGAW2PLSL_cjs.FINISHED_DOCUMENT_STATUSES.has(message.status)) {
|
|
1610
|
+
void chunkGAW2PLSL_cjs.refreshDocuments(queryClient, arbi, [message.doc_ext_id]);
|
|
1611
|
+
return;
|
|
1612
|
+
}
|
|
1613
|
+
const cached = chunkGAW2PLSL_cjs.getCachedDocuments(queryClient, workspaceId);
|
|
1614
|
+
if (!cached || cached.some((d) => d.external_id === message.doc_ext_id)) return;
|
|
1615
|
+
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1616
|
+
const placeholder = {
|
|
1617
|
+
external_id: message.doc_ext_id,
|
|
1618
|
+
workspace_ext_id: workspaceId,
|
|
1619
|
+
file_name: message.file_name ?? "Uploading\u2026",
|
|
1620
|
+
status: message.status,
|
|
1621
|
+
folder: message.folder ?? null,
|
|
1622
|
+
wp_type: "source",
|
|
1623
|
+
shared: false,
|
|
1624
|
+
created_by_ext_id: me ?? void 0,
|
|
1625
|
+
doc_metadata: {},
|
|
1626
|
+
doctags: [],
|
|
1627
|
+
created_at: now,
|
|
1628
|
+
updated_at: now
|
|
1629
|
+
};
|
|
1630
|
+
chunkGAW2PLSL_cjs.patchDocuments(
|
|
1631
|
+
queryClient,
|
|
1632
|
+
(old) => old.some((d) => d.external_id === message.doc_ext_id) ? old : [...old, placeholder],
|
|
1633
|
+
workspaceId
|
|
1634
|
+
);
|
|
1651
1635
|
}
|
|
1652
|
-
function
|
|
1653
|
-
const
|
|
1654
|
-
|
|
1636
|
+
function useWorkspaceProcessing(workspaceId) {
|
|
1637
|
+
const queryClient = reactQuery.useQueryClient();
|
|
1638
|
+
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
1639
|
+
const [snapshot, setSnapshot] = React.useState(() => chunkGAW2PLSL_cjs.useArbiWsStore.getState().tasks);
|
|
1640
|
+
React.useEffect(() => {
|
|
1641
|
+
let timer = null;
|
|
1642
|
+
const unsubscribe = chunkGAW2PLSL_cjs.useArbiWsStore.subscribe((state, previous) => {
|
|
1643
|
+
if (state.tasks === previous.tasks || timer) return;
|
|
1644
|
+
timer = setTimeout(() => {
|
|
1645
|
+
timer = null;
|
|
1646
|
+
setSnapshot(chunkGAW2PLSL_cjs.useArbiWsStore.getState().tasks);
|
|
1647
|
+
}, SNAPSHOT_MS);
|
|
1648
|
+
});
|
|
1649
|
+
return () => {
|
|
1650
|
+
unsubscribe();
|
|
1651
|
+
if (timer) clearTimeout(timer);
|
|
1652
|
+
};
|
|
1653
|
+
}, []);
|
|
1654
|
+
React.useEffect(() => {
|
|
1655
|
+
if (!workspaceId) return;
|
|
1656
|
+
const store = chunkGAW2PLSL_cjs.useArbiWsStore.getState();
|
|
1657
|
+
const documents2 = chunkGAW2PLSL_cjs.getCachedDocuments(queryClient, workspaceId) ?? [];
|
|
1658
|
+
store.settleTasks(documents2);
|
|
1659
|
+
const listed = new Set(documents2.map((d) => d.external_id));
|
|
1660
|
+
const now = Date.now();
|
|
1661
|
+
for (const task of Object.values(chunkGAW2PLSL_cjs.useArbiWsStore.getState().tasks)) {
|
|
1662
|
+
if (task.workspace_ext_id !== workspaceId || !chunkGAW2PLSL_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(task.status))
|
|
1663
|
+
continue;
|
|
1664
|
+
const since = task.startTime ?? task.endTime;
|
|
1665
|
+
const age = since == null ? null : now - since;
|
|
1666
|
+
const stale = age != null && age > STALE_TASK_MS;
|
|
1667
|
+
const orphan = documents2.length > 0 && !listed.has(task.doc_ext_id) && age != null && age > ORPHAN_TASK_MS;
|
|
1668
|
+
if (stale || orphan) store.clearTask(task.doc_ext_id);
|
|
1669
|
+
}
|
|
1670
|
+
}, [workspaceId, queryClient]);
|
|
1671
|
+
React.useEffect(() => {
|
|
1672
|
+
if (!workspaceId) return;
|
|
1673
|
+
const unsubscribeReads = subscribeDocumentReads(
|
|
1674
|
+
queryClient,
|
|
1675
|
+
(rows) => chunkGAW2PLSL_cjs.useArbiWsStore.getState().settleTasks(rows)
|
|
1676
|
+
);
|
|
1677
|
+
const recheck = async () => {
|
|
1678
|
+
const ids = Object.values(chunkGAW2PLSL_cjs.useArbiWsStore.getState().tasks).filter(
|
|
1679
|
+
(t) => t.workspace_ext_id === workspaceId && chunkGAW2PLSL_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(t.status)
|
|
1680
|
+
).map((t) => t.doc_ext_id);
|
|
1681
|
+
if (ids.length) await chunkGAW2PLSL_cjs.refreshDocuments(queryClient, arbi, ids);
|
|
1682
|
+
};
|
|
1683
|
+
let wasConnected = chunkGAW2PLSL_cjs.useArbiWsStore.getState().status === "connected";
|
|
1684
|
+
const unsubscribeStatus = chunkGAW2PLSL_cjs.useArbiWsStore.subscribe((state) => {
|
|
1685
|
+
const connected = state.status === "connected";
|
|
1686
|
+
if (connected && !wasConnected) void recheck();
|
|
1687
|
+
wasConnected = connected;
|
|
1688
|
+
});
|
|
1689
|
+
return () => {
|
|
1690
|
+
unsubscribeReads();
|
|
1691
|
+
unsubscribeStatus();
|
|
1692
|
+
};
|
|
1693
|
+
}, [workspaceId, queryClient, arbi]);
|
|
1694
|
+
return React.useMemo(() => {
|
|
1695
|
+
const allTasks = workspaceId ? Object.values(snapshot).filter((t) => t.workspace_ext_id === workspaceId).sort((a, b) => a.doc_ext_id.localeCompare(b.doc_ext_id)) : [];
|
|
1696
|
+
const count = (statuses) => allTasks.filter(
|
|
1697
|
+
(t) => Array.isArray(statuses) ? statuses.includes(t.status) : statuses.has(t.status)
|
|
1698
|
+
).length;
|
|
1699
|
+
const { clearTask, clearFinishedTasks } = chunkGAW2PLSL_cjs.useArbiWsStore.getState();
|
|
1700
|
+
return {
|
|
1701
|
+
tasks: Object.fromEntries(allTasks.map((t) => [t.doc_ext_id, t])),
|
|
1702
|
+
allTasks,
|
|
1703
|
+
processingCount: count(chunkGAW2PLSL_cjs.IN_FLIGHT_DOCUMENT_STATUSES),
|
|
1704
|
+
completedCount: count(["completed", "low-content"]),
|
|
1705
|
+
failedCount: count(["failed"]),
|
|
1706
|
+
skippedCount: count(["skipped"]),
|
|
1707
|
+
clearTask,
|
|
1708
|
+
clearFinishedTasks
|
|
1709
|
+
};
|
|
1710
|
+
}, [workspaceId, snapshot]);
|
|
1655
1711
|
}
|
|
1656
|
-
|
|
1657
|
-
// src/documents/documents-writes.ts
|
|
1658
1712
|
function applyOptimisticDocumentEdit(qc, updates) {
|
|
1659
1713
|
const byId = new Map(updates.map((update) => [update.external_id, update]));
|
|
1660
1714
|
const previous = [];
|
|
1661
|
-
|
|
1715
|
+
chunkGAW2PLSL_cjs.patchDocuments(qc, (old) => {
|
|
1662
1716
|
let changed = false;
|
|
1663
1717
|
const next = old.map((doc) => {
|
|
1664
1718
|
const update = byId.get(doc.external_id);
|
|
@@ -1673,7 +1727,7 @@ function applyOptimisticDocumentEdit(qc, updates) {
|
|
|
1673
1727
|
const own = qc.getQueryData(
|
|
1674
1728
|
chunkRRWAX52L_cjs.arbiQueryKeys.document(update.external_id)
|
|
1675
1729
|
);
|
|
1676
|
-
if (own)
|
|
1730
|
+
if (own) chunkGAW2PLSL_cjs.setCachedDocument(qc, { ...own, ...update });
|
|
1677
1731
|
return [update.external_id, own];
|
|
1678
1732
|
});
|
|
1679
1733
|
return { optimistic: true, previous, previousOwn };
|
|
@@ -1683,7 +1737,7 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1683
1737
|
if (!edit?.optimistic) return;
|
|
1684
1738
|
if (edit.previous.length) {
|
|
1685
1739
|
const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
|
|
1686
|
-
|
|
1740
|
+
chunkGAW2PLSL_cjs.patchDocuments(
|
|
1687
1741
|
qc,
|
|
1688
1742
|
(old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
|
|
1689
1743
|
);
|
|
@@ -1693,19 +1747,19 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1693
1747
|
function settleUpdatedDocuments(qc, updated) {
|
|
1694
1748
|
if (!updated.length) return;
|
|
1695
1749
|
const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
|
|
1696
|
-
|
|
1750
|
+
chunkGAW2PLSL_cjs.patchDocuments(
|
|
1697
1751
|
qc,
|
|
1698
1752
|
(old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
|
|
1699
1753
|
);
|
|
1700
|
-
for (const doc of updated)
|
|
1754
|
+
for (const doc of updated) chunkGAW2PLSL_cjs.setCachedDocument(qc, doc);
|
|
1701
1755
|
}
|
|
1702
1756
|
function patchEachDocument(qc, docIds, reducer) {
|
|
1703
1757
|
const ids = new Set(docIds);
|
|
1704
|
-
|
|
1758
|
+
chunkGAW2PLSL_cjs.patchDocuments(
|
|
1705
1759
|
qc,
|
|
1706
1760
|
(old) => old.some((doc) => ids.has(doc.external_id)) ? old.map((doc) => ids.has(doc.external_id) ? reducer(doc) : doc) : old
|
|
1707
1761
|
);
|
|
1708
|
-
for (const id of ids)
|
|
1762
|
+
for (const id of ids) chunkGAW2PLSL_cjs.patchCachedDocument(qc, id, reducer);
|
|
1709
1763
|
}
|
|
1710
1764
|
function workspaceOf(qc, docId) {
|
|
1711
1765
|
for (const [, docs] of qc.getQueriesData({
|
|
@@ -1732,7 +1786,7 @@ function settleAssignedDocTags(qc, created) {
|
|
|
1732
1786
|
...doc,
|
|
1733
1787
|
doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
|
|
1734
1788
|
}));
|
|
1735
|
-
for (const [workspaceId, delta] of workspaces)
|
|
1789
|
+
for (const [workspaceId, delta] of workspaces) chunkGAW2PLSL_cjs.adjustTagCounts(qc, workspaceId, delta);
|
|
1736
1790
|
}
|
|
1737
1791
|
function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
1738
1792
|
const ids = new Set(docIds);
|
|
@@ -1754,7 +1808,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
|
1754
1808
|
doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
|
|
1755
1809
|
}));
|
|
1756
1810
|
for (const [workspaceId, removed] of removedByWorkspace)
|
|
1757
|
-
|
|
1811
|
+
chunkGAW2PLSL_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
|
|
1758
1812
|
}
|
|
1759
1813
|
function settleUpdatedDocTag(qc, updated) {
|
|
1760
1814
|
patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
|
|
@@ -1830,7 +1884,7 @@ function useRenameFolder() {
|
|
|
1830
1884
|
return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
|
|
1831
1885
|
});
|
|
1832
1886
|
if (updates.length > 0) await mutateAsync({ documents: updates });
|
|
1833
|
-
|
|
1887
|
+
chunkGAW2PLSL_cjs.patchDocuments(qc, (rows) => {
|
|
1834
1888
|
let changed = false;
|
|
1835
1889
|
const next = rows.map((doc) => {
|
|
1836
1890
|
const folder = moved(doc.folder);
|
|
@@ -1848,44 +1902,42 @@ function useRenameFolder() {
|
|
|
1848
1902
|
function useDeleteDocuments() {
|
|
1849
1903
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
1850
1904
|
const qc = reactQuery.useQueryClient();
|
|
1851
|
-
const { onDocumentsDeleted } = useDocumentsSupport();
|
|
1852
1905
|
return reactQuery.useMutation({
|
|
1853
1906
|
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.deleteDocuments(),
|
|
1854
1907
|
mutationFn: (docIds) => arbi.documents.delete(docIds),
|
|
1855
1908
|
onSuccess: (_data, docIds) => {
|
|
1856
1909
|
const gone = new Set(docIds);
|
|
1857
|
-
|
|
1910
|
+
chunkGAW2PLSL_cjs.patchDocuments(
|
|
1858
1911
|
qc,
|
|
1859
1912
|
(old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
|
|
1860
1913
|
);
|
|
1861
|
-
|
|
1862
|
-
|
|
1914
|
+
chunkGAW2PLSL_cjs.forgetDocuments(qc, docIds);
|
|
1915
|
+
const { clearTask } = chunkGAW2PLSL_cjs.useArbiWsStore.getState();
|
|
1916
|
+
for (const id of docIds) clearTask(id);
|
|
1863
1917
|
return qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
1864
1918
|
}
|
|
1865
1919
|
});
|
|
1866
1920
|
}
|
|
1867
|
-
async function settleUpload(qc, arbi, docIds
|
|
1868
|
-
if (docIds?.length) await
|
|
1921
|
+
async function settleUpload(qc, arbi, docIds) {
|
|
1922
|
+
if (docIds?.length) await chunkGAW2PLSL_cjs.refreshDocuments(qc, arbi, docIds);
|
|
1869
1923
|
await qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
1870
1924
|
}
|
|
1871
1925
|
function useUploadDocuments() {
|
|
1872
1926
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
1873
1927
|
const qc = reactQuery.useQueryClient();
|
|
1874
|
-
const { processingTask } = useDocumentsSupport();
|
|
1875
1928
|
return reactQuery.useMutation({
|
|
1876
1929
|
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.uploadDocuments(),
|
|
1877
1930
|
mutationFn: ({ files, options }) => arbi.documents.upload(files, options),
|
|
1878
|
-
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids
|
|
1931
|
+
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids)
|
|
1879
1932
|
});
|
|
1880
1933
|
}
|
|
1881
1934
|
function useUploadUrls() {
|
|
1882
1935
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
1883
1936
|
const qc = reactQuery.useQueryClient();
|
|
1884
|
-
const { processingTask } = useDocumentsSupport();
|
|
1885
1937
|
return reactQuery.useMutation({
|
|
1886
1938
|
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.uploadUrls(),
|
|
1887
1939
|
mutationFn: ({ urls, shared, configExtId }) => arbi.documents.uploadUrl(urls, { shared, configExtId }),
|
|
1888
|
-
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids
|
|
1940
|
+
onSuccess: (result) => settleUpload(qc, arbi, result.doc_ext_ids)
|
|
1889
1941
|
});
|
|
1890
1942
|
}
|
|
1891
1943
|
function useAssignDocTags() {
|
|
@@ -1921,21 +1973,43 @@ function useUpdateDocTag() {
|
|
|
1921
1973
|
})
|
|
1922
1974
|
);
|
|
1923
1975
|
}
|
|
1976
|
+
function queueProcessing(documents2) {
|
|
1977
|
+
const store = chunkGAW2PLSL_cjs.useArbiWsStore.getState();
|
|
1978
|
+
const previous = documents2.map(({ docId }) => [docId, store.tasks[docId]]);
|
|
1979
|
+
const now = Date.now();
|
|
1980
|
+
for (const doc of documents2)
|
|
1981
|
+
store.putTask({
|
|
1982
|
+
doc_ext_id: doc.docId,
|
|
1983
|
+
workspace_ext_id: doc.workspaceId,
|
|
1984
|
+
file_name: doc.fileName,
|
|
1985
|
+
version: doc.version,
|
|
1986
|
+
status: "queued",
|
|
1987
|
+
progress: 0,
|
|
1988
|
+
startTime: now
|
|
1989
|
+
});
|
|
1990
|
+
return () => chunkGAW2PLSL_cjs.useArbiWsStore.setState((state) => {
|
|
1991
|
+
const tasks = { ...state.tasks };
|
|
1992
|
+
for (const [docId, task] of previous) {
|
|
1993
|
+
if (task) tasks[docId] = task;
|
|
1994
|
+
else delete tasks[docId];
|
|
1995
|
+
}
|
|
1996
|
+
return { tasks };
|
|
1997
|
+
});
|
|
1998
|
+
}
|
|
1924
1999
|
function useGenerateDocTags() {
|
|
1925
2000
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
1926
2001
|
const qc = reactQuery.useQueryClient();
|
|
1927
|
-
const { onProcessingQueued } = useDocumentsSupport();
|
|
1928
2002
|
return reactQuery.useMutation({
|
|
1929
2003
|
mutationKey: chunkRRWAX52L_cjs.arbiMutationKeys.generateDocTags(),
|
|
1930
2004
|
mutationFn: ({ tagIds, docIds, overwrite }) => arbi.doctags.generate(tagIds, docIds, { overwrite }),
|
|
1931
2005
|
onMutate: ({ docIds }) => {
|
|
1932
|
-
if (!
|
|
2006
|
+
if (!docIds.length) return void 0;
|
|
1933
2007
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
1934
2008
|
const listed = new Map(
|
|
1935
|
-
(
|
|
2009
|
+
(chunkGAW2PLSL_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
|
|
1936
2010
|
);
|
|
1937
2011
|
return {
|
|
1938
|
-
undo:
|
|
2012
|
+
undo: queueProcessing(
|
|
1939
2013
|
docIds.map((docId) => ({
|
|
1940
2014
|
docId,
|
|
1941
2015
|
workspaceId,
|
|
@@ -1951,13 +2025,33 @@ function useGenerateDocTags() {
|
|
|
1951
2025
|
function useFinaliseTranslation() {
|
|
1952
2026
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
1953
2027
|
const qc = reactQuery.useQueryClient();
|
|
1954
|
-
const { processingTask } = useDocumentsSupport();
|
|
1955
2028
|
return reactQuery.useMutation({
|
|
1956
2029
|
mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
|
|
1957
|
-
onSuccess: (result) => void
|
|
2030
|
+
onSuccess: (result) => void chunkGAW2PLSL_cjs.refreshDocuments(qc, arbi, [result.document_ext_id])
|
|
1958
2031
|
});
|
|
1959
2032
|
}
|
|
1960
2033
|
|
|
2034
|
+
// src/documents/support.tsx
|
|
2035
|
+
var NO_SUPPORT = {};
|
|
2036
|
+
function useDocumentsSupport() {
|
|
2037
|
+
return chunkYIUUTRMQ_cjs.useArbiHost().documents ?? NO_SUPPORT;
|
|
2038
|
+
}
|
|
2039
|
+
function useProcessingTasks() {
|
|
2040
|
+
return chunkGAW2PLSL_cjs.useArbiWsStore((state) => state.tasks);
|
|
2041
|
+
}
|
|
2042
|
+
function useProcessingTask(docId) {
|
|
2043
|
+
return chunkGAW2PLSL_cjs.useArbiWsStore((state) => state.tasks[docId]);
|
|
2044
|
+
}
|
|
2045
|
+
var NO_ACTIONS = {};
|
|
2046
|
+
function useDocumentHostActions() {
|
|
2047
|
+
const { useHostActions } = useDocumentsSupport();
|
|
2048
|
+
return useHostActions?.() ?? NO_ACTIONS;
|
|
2049
|
+
}
|
|
2050
|
+
function useOpenViewerDocumentId() {
|
|
2051
|
+
const { useOpenViewerDocumentId: useHostViewing } = useDocumentsSupport();
|
|
2052
|
+
return useHostViewing?.() ?? null;
|
|
2053
|
+
}
|
|
2054
|
+
|
|
1961
2055
|
// src/documents/document-download.ts
|
|
1962
2056
|
function fallbackFileName(doc) {
|
|
1963
2057
|
if (doc.file_name) return doc.file_name;
|
|
@@ -2140,7 +2234,7 @@ function useDocumentThumbnails(visibleIds) {
|
|
|
2140
2234
|
for (const id of visibleIds)
|
|
2141
2235
|
if (IN_PROGRESS.has(tasks[id]?.status ?? "")) resolvedRef.current.delete(id);
|
|
2142
2236
|
const ready = visibleIds.filter(
|
|
2143
|
-
(id) => !resolvedRef.current.has(id) &&
|
|
2237
|
+
(id) => !resolvedRef.current.has(id) && chunkGAW2PLSL_cjs.FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
|
|
2144
2238
|
);
|
|
2145
2239
|
if (ready.length > 0) void fetchMissing(ready);
|
|
2146
2240
|
}, [tasks, idsKey, fetchMissing]);
|
|
@@ -2232,8 +2326,8 @@ function DocumentReview({
|
|
|
2232
2326
|
onClose,
|
|
2233
2327
|
className
|
|
2234
2328
|
}) {
|
|
2235
|
-
const parsedQuery =
|
|
2236
|
-
const tagsQuery =
|
|
2329
|
+
const parsedQuery = chunkCWJAULV2_cjs.useParsedDocument(docId, stage);
|
|
2330
|
+
const tagsQuery = chunkCWJAULV2_cjs.useTags(workspaceId);
|
|
2237
2331
|
const tagNameById = React__default.default.useMemo(() => {
|
|
2238
2332
|
const map = /* @__PURE__ */ new Map();
|
|
2239
2333
|
for (const t of tagsQuery.data ?? []) {
|
|
@@ -3130,7 +3224,7 @@ async function runLimited(tasks, limit) {
|
|
|
3130
3224
|
function useUploadFiles() {
|
|
3131
3225
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
3132
3226
|
const qc = reactQuery.useQueryClient();
|
|
3133
|
-
const { resolveWorkspaceKey
|
|
3227
|
+
const { resolveWorkspaceKey } = useDocumentsSupport();
|
|
3134
3228
|
const { data: settings } = useUserSettings();
|
|
3135
3229
|
const { mutateAsync: generateDocTags } = useGenerateDocTags();
|
|
3136
3230
|
const direct = settings?.use_s3_direct_upload === true;
|
|
@@ -3205,7 +3299,7 @@ function useUploadFiles() {
|
|
|
3205
3299
|
if (docIds2.length > 0) {
|
|
3206
3300
|
for (const docId of docIds2) uploadedFolders.set(docId, { workspaceId, folder });
|
|
3207
3301
|
const made = new Set(docIds2);
|
|
3208
|
-
|
|
3302
|
+
chunkGAW2PLSL_cjs.patchDocuments(
|
|
3209
3303
|
qc,
|
|
3210
3304
|
(rows) => rows.map((doc) => made.has(doc.external_id) ? { ...doc, folder } : doc),
|
|
3211
3305
|
workspaceId
|
|
@@ -3221,7 +3315,7 @@ function useUploadFiles() {
|
|
|
3221
3315
|
const docIds = results.flatMap((result) => result.doc_ext_ids ?? []);
|
|
3222
3316
|
const skipped = results.flatMap((result) => result.skipped ?? []);
|
|
3223
3317
|
if (docIds.length > 0) {
|
|
3224
|
-
const read = await
|
|
3318
|
+
const read = await chunkGAW2PLSL_cjs.refreshDocuments(qc, arbi, docIds);
|
|
3225
3319
|
for (const doc of read) forgetUploadedDocumentFolder(doc.external_id);
|
|
3226
3320
|
}
|
|
3227
3321
|
await qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
@@ -3232,7 +3326,7 @@ function useUploadFiles() {
|
|
|
3232
3326
|
}
|
|
3233
3327
|
return { docIds, skipped };
|
|
3234
3328
|
},
|
|
3235
|
-
[arbi, qc, direct, resolveWorkspaceKey,
|
|
3329
|
+
[arbi, qc, direct, resolveWorkspaceKey, generateDocTags]
|
|
3236
3330
|
);
|
|
3237
3331
|
}
|
|
3238
3332
|
function isZipUrl(url) {
|
|
@@ -3308,7 +3402,7 @@ function getRelatedLabels(related) {
|
|
|
3308
3402
|
return parts;
|
|
3309
3403
|
}
|
|
3310
3404
|
function useRelatedDocuments(documents2) {
|
|
3311
|
-
const { data: similarData } =
|
|
3405
|
+
const { data: similarData } = chunkGAW2PLSL_cjs.useSimilarDocuments();
|
|
3312
3406
|
const structuralKey = React.useMemo(() => {
|
|
3313
3407
|
const parts = [];
|
|
3314
3408
|
for (const doc of documents2) {
|
|
@@ -3388,7 +3482,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3388
3482
|
}
|
|
3389
3483
|
if (similarData?.pairs) {
|
|
3390
3484
|
for (const pair of similarData.pairs) {
|
|
3391
|
-
if (pair.similarity <
|
|
3485
|
+
if (pair.similarity < chunkGAW2PLSL_cjs.SIMILARITY_THRESHOLD || pair.similarity >= 1) continue;
|
|
3392
3486
|
const docA = docById.get(pair.doc_a.external_id);
|
|
3393
3487
|
const docB = docById.get(pair.doc_b.external_id);
|
|
3394
3488
|
if (docA && docB) {
|
|
@@ -3408,7 +3502,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3408
3502
|
}, [documents2, similarData, structuralKey]);
|
|
3409
3503
|
}
|
|
3410
3504
|
var REPLAYABLE = [
|
|
3411
|
-
...
|
|
3505
|
+
...chunkGAW2PLSL_cjs.replayableTagMutations,
|
|
3412
3506
|
...replayableDocumentMutations
|
|
3413
3507
|
];
|
|
3414
3508
|
function isReplayableArbiMutation(mutationKey) {
|
|
@@ -3440,7 +3534,7 @@ function isRestorableArbiQueryOnline(queryKey, data) {
|
|
|
3440
3534
|
const docs = Array.isArray(data) ? data : [data];
|
|
3441
3535
|
return !docs.some((doc) => {
|
|
3442
3536
|
const status = doc?.status;
|
|
3443
|
-
return !!status && !
|
|
3537
|
+
return !!status && !chunkGAW2PLSL_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
|
|
3444
3538
|
});
|
|
3445
3539
|
}
|
|
3446
3540
|
|
|
@@ -3555,8 +3649,8 @@ var PENDING_SYNC_PREDICATE = (m) => (
|
|
|
3555
3649
|
isReplayableArbiMutation(m.options.mutationKey) && (m.state.isPaused || m.state.status === "error")
|
|
3556
3650
|
);
|
|
3557
3651
|
function usePendingSyncItems() {
|
|
3558
|
-
const { data: documents2 } =
|
|
3559
|
-
const { data: tags } =
|
|
3652
|
+
const { data: documents2 } = chunkGAW2PLSL_cjs.useDocuments();
|
|
3653
|
+
const { data: tags } = chunkCWJAULV2_cjs.useTags();
|
|
3560
3654
|
const raw = reactQuery.useMutationState({
|
|
3561
3655
|
filters: { predicate: PENDING_SYNC_PREDICATE },
|
|
3562
3656
|
select: (m) => ({
|
|
@@ -3627,6 +3721,140 @@ function useDocumentPendingSync(docId) {
|
|
|
3627
3721
|
React.useState(() => watchPendingDocIds(queryClient));
|
|
3628
3722
|
return usePendingDocIds((s) => docId ? s.ids.has(docId) : false);
|
|
3629
3723
|
}
|
|
3724
|
+
var DB_NAME = "arbi-offline-docs";
|
|
3725
|
+
var DB_VERSION = 1;
|
|
3726
|
+
var STORE = "documents";
|
|
3727
|
+
var dbInstance = null;
|
|
3728
|
+
async function openDB() {
|
|
3729
|
+
if (dbInstance) return dbInstance;
|
|
3730
|
+
return new Promise((resolve, reject) => {
|
|
3731
|
+
const request = indexedDB.open(DB_NAME, DB_VERSION);
|
|
3732
|
+
request.onerror = () => reject(request.error);
|
|
3733
|
+
request.onsuccess = () => {
|
|
3734
|
+
const db = request.result;
|
|
3735
|
+
db.onversionchange = () => {
|
|
3736
|
+
db.close();
|
|
3737
|
+
if (dbInstance === db) dbInstance = null;
|
|
3738
|
+
};
|
|
3739
|
+
dbInstance = db;
|
|
3740
|
+
resolve(db);
|
|
3741
|
+
};
|
|
3742
|
+
request.onupgradeneeded = (event) => {
|
|
3743
|
+
const db = event.target.result;
|
|
3744
|
+
if (!db.objectStoreNames.contains(STORE)) {
|
|
3745
|
+
db.createObjectStore(STORE, { keyPath: "docExtId" });
|
|
3746
|
+
}
|
|
3747
|
+
};
|
|
3748
|
+
});
|
|
3749
|
+
}
|
|
3750
|
+
function promisify(request) {
|
|
3751
|
+
return new Promise((resolve, reject) => {
|
|
3752
|
+
request.onsuccess = () => resolve(request.result);
|
|
3753
|
+
request.onerror = () => reject(request.error);
|
|
3754
|
+
});
|
|
3755
|
+
}
|
|
3756
|
+
async function withStore(mode, run) {
|
|
3757
|
+
const db = await openDB();
|
|
3758
|
+
const store = db.transaction(STORE, mode).objectStore(STORE);
|
|
3759
|
+
return promisify(run(store));
|
|
3760
|
+
}
|
|
3761
|
+
async function putOfflineDocument(record) {
|
|
3762
|
+
await withStore("readwrite", (store) => store.put(record));
|
|
3763
|
+
}
|
|
3764
|
+
async function getOfflineDocument(docExtId) {
|
|
3765
|
+
const record = await withStore("readonly", (store) => store.get(docExtId));
|
|
3766
|
+
return record;
|
|
3767
|
+
}
|
|
3768
|
+
async function deleteOfflineDocument(docExtId) {
|
|
3769
|
+
await withStore("readwrite", (store) => store.delete(docExtId));
|
|
3770
|
+
}
|
|
3771
|
+
async function listOfflineDocumentIds() {
|
|
3772
|
+
const keys = await withStore("readonly", (store) => store.getAllKeys());
|
|
3773
|
+
return keys;
|
|
3774
|
+
}
|
|
3775
|
+
async function requestPersistentStorage() {
|
|
3776
|
+
try {
|
|
3777
|
+
if (!navigator.storage?.persist || !navigator.storage.persisted) return false;
|
|
3778
|
+
if (await navigator.storage.persisted()) return true;
|
|
3779
|
+
return await navigator.storage.persist();
|
|
3780
|
+
} catch {
|
|
3781
|
+
return false;
|
|
3782
|
+
}
|
|
3783
|
+
}
|
|
3784
|
+
async function wipeOfflineDocuments() {
|
|
3785
|
+
dbInstance?.close();
|
|
3786
|
+
dbInstance = null;
|
|
3787
|
+
await new Promise((resolve) => {
|
|
3788
|
+
const request = indexedDB.deleteDatabase(DB_NAME);
|
|
3789
|
+
request.onsuccess = request.onerror = request.onblocked = () => resolve();
|
|
3790
|
+
});
|
|
3791
|
+
}
|
|
3792
|
+
async function loadOfflineDocument(docId) {
|
|
3793
|
+
const record = await getOfflineDocument(docId);
|
|
3794
|
+
if (!record) return void 0;
|
|
3795
|
+
const keypair = await client.getUserEncryptionKeypair();
|
|
3796
|
+
if (!keypair) throw new Error("Cannot open the offline copy: no personal key in this session");
|
|
3797
|
+
const bytes = client.sealedBoxDecrypt(client.bytesToBase64(record.data), keypair.secretKey);
|
|
3798
|
+
return new Blob([bytes], { type: record.contentType });
|
|
3799
|
+
}
|
|
3800
|
+
async function keepDocumentsOffline(client$1, docs) {
|
|
3801
|
+
await requestPersistentStorage();
|
|
3802
|
+
const keypair = await client.getUserEncryptionKeypair();
|
|
3803
|
+
if (!keypair) throw new Error("Could not derive an encryption key for the offline copy.");
|
|
3804
|
+
for (const doc of docs) {
|
|
3805
|
+
const original = chunkFSPLYO52_cjs.usesOriginalBytesForViewer(doc.file_name);
|
|
3806
|
+
const blob = original ? await chunkONGNP4JM_cjs.fetchDocumentFile(client$1, doc.external_id) : await chunkONGNP4JM_cjs.fetchDocumentPdf(client$1, doc.external_id);
|
|
3807
|
+
const plain = new Uint8Array(await blob.arrayBuffer());
|
|
3808
|
+
await putOfflineDocument({
|
|
3809
|
+
docExtId: doc.external_id,
|
|
3810
|
+
fileName: chunkFSPLYO52_cjs.getDocumentTitle(doc, "document"),
|
|
3811
|
+
kind: original ? "original" : "pdf",
|
|
3812
|
+
data: client.base64ToBytes(client.sealedBoxEncrypt(plain, keypair.publicKey)),
|
|
3813
|
+
contentType: blob.type,
|
|
3814
|
+
savedAt: Date.now()
|
|
3815
|
+
});
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3818
|
+
function useOfflineDocumentIds() {
|
|
3819
|
+
const { data } = reactQuery.useQuery({
|
|
3820
|
+
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.offlineDocuments(),
|
|
3821
|
+
queryFn: async () => new Set(await listOfflineDocumentIds()),
|
|
3822
|
+
staleTime: Infinity,
|
|
3823
|
+
// Offline the default network mode would hold this local read back, and a cold start
|
|
3824
|
+
// offline would lose every "available offline" badge.
|
|
3825
|
+
networkMode: "always"
|
|
3826
|
+
});
|
|
3827
|
+
return data ?? EMPTY;
|
|
3828
|
+
}
|
|
3829
|
+
var EMPTY = /* @__PURE__ */ new Set();
|
|
3830
|
+
function useKeepDocumentsOffline() {
|
|
3831
|
+
const queryClient = reactQuery.useQueryClient();
|
|
3832
|
+
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
3833
|
+
const { onKeptOffline } = useDocumentsSupport();
|
|
3834
|
+
return reactQuery.useMutation({
|
|
3835
|
+
mutationFn: async (docs) => {
|
|
3836
|
+
await keepDocumentsOffline(arbi.getClient().fetch, docs);
|
|
3837
|
+
for (const doc of docs) chunkGAW2PLSL_cjs.setCachedDocument(queryClient, doc);
|
|
3838
|
+
await onKeptOffline?.();
|
|
3839
|
+
return docs.length;
|
|
3840
|
+
},
|
|
3841
|
+
onSettled: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.offlineDocuments() }),
|
|
3842
|
+
onSuccess: (count) => chunkVAMPYLQ4_cjs.notify.success(`${count} document${count === 1 ? "" : "s"} available offline`),
|
|
3843
|
+
onError: () => chunkVAMPYLQ4_cjs.notify.error("Could not save documents for offline use")
|
|
3844
|
+
});
|
|
3845
|
+
}
|
|
3846
|
+
function useRemoveDocumentsOffline() {
|
|
3847
|
+
const queryClient = reactQuery.useQueryClient();
|
|
3848
|
+
return reactQuery.useMutation({
|
|
3849
|
+
mutationFn: async (docIds) => {
|
|
3850
|
+
for (const id of docIds) await deleteOfflineDocument(id);
|
|
3851
|
+
return docIds.length;
|
|
3852
|
+
},
|
|
3853
|
+
onSettled: () => queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.offlineDocuments() }),
|
|
3854
|
+
onSuccess: (count) => chunkVAMPYLQ4_cjs.notify.success(`Removed ${count} offline ${count === 1 ? "copy" : "copies"}`),
|
|
3855
|
+
onError: () => chunkVAMPYLQ4_cjs.notify.error("Could not remove offline copy")
|
|
3856
|
+
});
|
|
3857
|
+
}
|
|
3630
3858
|
|
|
3631
3859
|
// src/chat/stream-handlers.ts
|
|
3632
3860
|
var MIN_NARRATION_DWELL_MS = 4e3;
|
|
@@ -3641,11 +3869,11 @@ function createStreamHandlers(ctx, params) {
|
|
|
3641
3869
|
const clientId = streamState.queuedClientId;
|
|
3642
3870
|
if (!clientId || queuedEntryRetired) return;
|
|
3643
3871
|
queuedEntryRetired = true;
|
|
3644
|
-
const entry =
|
|
3872
|
+
const entry = chunkCWJAULV2_cjs.queuedMessages.find(session.getState().queuedMessages, clientId);
|
|
3645
3873
|
if (!entry) return;
|
|
3646
3874
|
const remainingVisibility = Math.max(
|
|
3647
3875
|
0,
|
|
3648
|
-
|
|
3876
|
+
chunkCWJAULV2_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS - (Date.now() - entry.createdAt)
|
|
3649
3877
|
);
|
|
3650
3878
|
if (remainingVisibility === 0) {
|
|
3651
3879
|
session.removeQueuedMessage(clientId);
|
|
@@ -3661,7 +3889,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3661
3889
|
session.moveConversation("new", serverConversationId);
|
|
3662
3890
|
const userExtId = ctx.userId();
|
|
3663
3891
|
const nowIso = (/* @__PURE__ */ new Date()).toISOString();
|
|
3664
|
-
|
|
3892
|
+
chunkKHRCABUX_cjs.patchConversationList(
|
|
3665
3893
|
queryClient,
|
|
3666
3894
|
session.getState().workspaceId,
|
|
3667
3895
|
(old) => old.some((c) => c.external_id === serverConversationId) ? old : [
|
|
@@ -3783,7 +4011,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3783
4011
|
ensureAssistantMessageLoading(queryClient, conversationId, answerId);
|
|
3784
4012
|
});
|
|
3785
4013
|
}
|
|
3786
|
-
void
|
|
4014
|
+
void chunkKHRCABUX_cjs.invalidateConversationLists(queryClient);
|
|
3787
4015
|
session.setCursor(streamState.assistantId);
|
|
3788
4016
|
};
|
|
3789
4017
|
let firstTokenSeen = false;
|
|
@@ -3982,7 +4210,7 @@ function createStreamHandlers(ctx, params) {
|
|
|
3982
4210
|
}
|
|
3983
4211
|
function useStreamHandlers() {
|
|
3984
4212
|
const queryClient = reactQuery.useQueryClient();
|
|
3985
|
-
const session =
|
|
4213
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
3986
4214
|
const config = chunkYIUUTRMQ_cjs.useArbiHost();
|
|
3987
4215
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
3988
4216
|
return React.useCallback(
|
|
@@ -3998,7 +4226,7 @@ function useStreamHandlers() {
|
|
|
3998
4226
|
return "";
|
|
3999
4227
|
}
|
|
4000
4228
|
},
|
|
4001
|
-
refreshDocuments: (ids) =>
|
|
4229
|
+
refreshDocuments: (ids) => chunkGAW2PLSL_cjs.refreshDocuments(queryClient, arbi, ids)
|
|
4002
4230
|
},
|
|
4003
4231
|
params
|
|
4004
4232
|
),
|
|
@@ -4075,7 +4303,7 @@ function cachedQuotaUsedUp(queryClient, workspaceId) {
|
|
|
4075
4303
|
// src/chat/useConversationActions.ts
|
|
4076
4304
|
var RECONCILE_TIMEOUT_MS = 5e3;
|
|
4077
4305
|
function draftAfterSend(queryClient, session, wasComment) {
|
|
4078
|
-
const shared =
|
|
4306
|
+
const shared = chunkKHRCABUX_cjs.isConversationShared(queryClient, session.getState().conversationId);
|
|
4079
4307
|
return shared && !wasComment ? `@${ASSISTANT_MENTION_LABEL} ` : "";
|
|
4080
4308
|
}
|
|
4081
4309
|
function failQueuedContinuation(queryClient, session, streamState) {
|
|
@@ -4108,7 +4336,7 @@ function useConversationActions({
|
|
|
4108
4336
|
lastFailedMessage
|
|
4109
4337
|
}) {
|
|
4110
4338
|
const queryClient = reactQuery.useQueryClient();
|
|
4111
|
-
const session =
|
|
4339
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
4112
4340
|
const currentConversationId = conversationKey2 === "new" ? null : conversationKey2;
|
|
4113
4341
|
const invalidateUserWorkspaces = React.useCallback(
|
|
4114
4342
|
() => void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() }),
|
|
@@ -4164,7 +4392,7 @@ function useConversationActions({
|
|
|
4164
4392
|
const bindTo = session.getState().newChatDocumentId;
|
|
4165
4393
|
session.moveConversation("new", conversationId);
|
|
4166
4394
|
if (bindTo) session.setNewChatDocumentId(null);
|
|
4167
|
-
|
|
4395
|
+
chunkKHRCABUX_cjs.patchConversationList(queryClient, session.getState().workspaceId, (old) => [
|
|
4168
4396
|
{
|
|
4169
4397
|
external_id: conversationId,
|
|
4170
4398
|
title: content.slice(0, 40),
|
|
@@ -4186,14 +4414,14 @@ function useConversationActions({
|
|
|
4186
4414
|
);
|
|
4187
4415
|
invalidateUserWorkspaces();
|
|
4188
4416
|
} else {
|
|
4189
|
-
|
|
4417
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, conversationId, (c) => ({
|
|
4190
4418
|
...c,
|
|
4191
4419
|
message_count: c.message_count + 1,
|
|
4192
4420
|
updated_at: nowIso
|
|
4193
4421
|
}));
|
|
4194
4422
|
}
|
|
4195
4423
|
if (mentions.some((m) => m.type === "user")) {
|
|
4196
|
-
await
|
|
4424
|
+
await chunkKHRCABUX_cjs.invalidateConversationLists(queryClient);
|
|
4197
4425
|
}
|
|
4198
4426
|
await queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
4199
4427
|
session.setCursor(saved.external_id);
|
|
@@ -4201,7 +4429,7 @@ function useConversationActions({
|
|
|
4201
4429
|
chunkVAMPYLQ4_cjs.notify.error(
|
|
4202
4430
|
error instanceof browser.ArbiApiError && error.detail || "Failed to post the message"
|
|
4203
4431
|
);
|
|
4204
|
-
if (!
|
|
4432
|
+
if (!chunkCWJAULV2_cjs.selectDraft(session.getState())) session.setDraft(content);
|
|
4205
4433
|
}
|
|
4206
4434
|
},
|
|
4207
4435
|
[arbi, session, queryClient, invalidateUserWorkspaces]
|
|
@@ -4266,7 +4494,7 @@ function useConversationActions({
|
|
|
4266
4494
|
session.setConversationGenerating(convKey, true, abortController);
|
|
4267
4495
|
}
|
|
4268
4496
|
if (!queuedContinuation) {
|
|
4269
|
-
|
|
4497
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, convKey, { last_message_status: "in_progress" });
|
|
4270
4498
|
}
|
|
4271
4499
|
const streamState = {
|
|
4272
4500
|
conversationId: convKey,
|
|
@@ -4355,7 +4583,7 @@ function useConversationActions({
|
|
|
4355
4583
|
void queryClient.invalidateQueries({
|
|
4356
4584
|
queryKey: getThreadsQueryKey(streamState.conversationId)
|
|
4357
4585
|
});
|
|
4358
|
-
void
|
|
4586
|
+
void chunkKHRCABUX_cjs.invalidateConversationLists(queryClient);
|
|
4359
4587
|
}
|
|
4360
4588
|
return;
|
|
4361
4589
|
}
|
|
@@ -4374,7 +4602,7 @@ function useConversationActions({
|
|
|
4374
4602
|
}
|
|
4375
4603
|
if (ownsGeneration) {
|
|
4376
4604
|
const lastStatus = streamState.serverError ? "failed" : "completed";
|
|
4377
|
-
|
|
4605
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4378
4606
|
last_message_status: lastStatus
|
|
4379
4607
|
});
|
|
4380
4608
|
}
|
|
@@ -4407,7 +4635,7 @@ function useConversationActions({
|
|
|
4407
4635
|
});
|
|
4408
4636
|
if (ownsActiveGeneration()) {
|
|
4409
4637
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4410
|
-
|
|
4638
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4411
4639
|
last_message_status: "completed"
|
|
4412
4640
|
});
|
|
4413
4641
|
}
|
|
@@ -4430,10 +4658,10 @@ function useConversationActions({
|
|
|
4430
4658
|
if (ownsActiveGeneration()) {
|
|
4431
4659
|
session.setConversationGenerating(streamState.conversationId, false, null);
|
|
4432
4660
|
}
|
|
4433
|
-
void
|
|
4661
|
+
void chunkKHRCABUX_cjs.invalidateConversationLists(queryClient);
|
|
4434
4662
|
return;
|
|
4435
4663
|
}
|
|
4436
|
-
|
|
4664
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, streamState.conversationId, {
|
|
4437
4665
|
last_message_status: "failed"
|
|
4438
4666
|
});
|
|
4439
4667
|
const quota = browser.quotaFromStreamError(error) ?? cachedQuotaUsedUp(queryClient, session.getState().workspaceId);
|
|
@@ -4468,7 +4696,7 @@ function useConversationActions({
|
|
|
4468
4696
|
);
|
|
4469
4697
|
const handleSendMessage = React.useCallback(
|
|
4470
4698
|
async (options) => {
|
|
4471
|
-
const currentMessage =
|
|
4699
|
+
const currentMessage = chunkCWJAULV2_cjs.selectDraft(session.getState()).trim();
|
|
4472
4700
|
if (!selectedWorkspaceId || !chunkTUPSNW3B_cjs.hasMessageBody(currentMessage)) return;
|
|
4473
4701
|
session.setSuggestedQuery(null);
|
|
4474
4702
|
if (refuseChatWhenOffline()) return;
|
|
@@ -4579,7 +4807,7 @@ function useConversationActions({
|
|
|
4579
4807
|
if (!replyTo && currentConversationId) {
|
|
4580
4808
|
try {
|
|
4581
4809
|
await arbi.conversations.delete(currentConversationId);
|
|
4582
|
-
|
|
4810
|
+
chunkKHRCABUX_cjs.removeConversationFromLists(queryClient, currentConversationId);
|
|
4583
4811
|
session.startNewConversation();
|
|
4584
4812
|
} catch (error) {
|
|
4585
4813
|
console.error("Failed to delete conversation with orphaned first message:", error);
|
|
@@ -4647,16 +4875,16 @@ function selectThread(session, leafId) {
|
|
|
4647
4875
|
if (session.getState().cursor !== leafId) session.setCursor(leafId);
|
|
4648
4876
|
}
|
|
4649
4877
|
function useConversationData() {
|
|
4650
|
-
const session =
|
|
4651
|
-
const selectedWorkspaceId =
|
|
4652
|
-
const currentConversationId =
|
|
4653
|
-
const parentMessageId =
|
|
4654
|
-
const deepLinkMessageId =
|
|
4878
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
4879
|
+
const selectedWorkspaceId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
4880
|
+
const currentConversationId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.conversationId);
|
|
4881
|
+
const parentMessageId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.cursor);
|
|
4882
|
+
const deepLinkMessageId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.deepLinkMessageId);
|
|
4655
4883
|
const {
|
|
4656
4884
|
data: threadsData,
|
|
4657
4885
|
isLoading: threadsLoading,
|
|
4658
4886
|
error: threadsError
|
|
4659
|
-
} =
|
|
4887
|
+
} = chunkCWJAULV2_cjs.useConversationThreads(currentConversationId || void 0);
|
|
4660
4888
|
const processedDeepLinkRef = React.useRef(null);
|
|
4661
4889
|
const prevConversationIdRef = React.useRef(null);
|
|
4662
4890
|
React.useEffect(() => {
|
|
@@ -4849,7 +5077,7 @@ function useBranchNavigation(threads, parentMessageId, messageHistory, setParent
|
|
|
4849
5077
|
var RECONNECT_DELAY_MS = 2e3;
|
|
4850
5078
|
var MAX_RECONNECTS = 5;
|
|
4851
5079
|
function useConnectRunStream(conversationId, messages) {
|
|
4852
|
-
const generation =
|
|
5080
|
+
const generation = chunkCWJAULV2_cjs.useArbiSessionState(
|
|
4853
5081
|
(s) => conversationId ? s.generating[conversationId] : void 0
|
|
4854
5082
|
);
|
|
4855
5083
|
const responseId = conversationId ? browser.getRunToAttach(generation, messages) : null;
|
|
@@ -4857,7 +5085,7 @@ function useConnectRunStream(conversationId, messages) {
|
|
|
4857
5085
|
}
|
|
4858
5086
|
function useAttachRun(conversationId, responseId) {
|
|
4859
5087
|
const queryClient = reactQuery.useQueryClient();
|
|
4860
|
-
const session =
|
|
5088
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
4861
5089
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
4862
5090
|
const arbiRef = React.useRef(arbi);
|
|
4863
5091
|
arbiRef.current = arbi;
|
|
@@ -5056,14 +5284,14 @@ function useConversation(options = {}) {
|
|
|
5056
5284
|
const { agentId, model, titleLength = 48 } = options;
|
|
5057
5285
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
5058
5286
|
const queryClient = reactQuery.useQueryClient();
|
|
5059
|
-
const session =
|
|
5060
|
-
const sessionWorkspaceId =
|
|
5287
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
5288
|
+
const sessionWorkspaceId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5061
5289
|
const workspaceId = options.workspaceId ?? sessionWorkspaceId ?? void 0;
|
|
5062
|
-
const conversationId =
|
|
5290
|
+
const conversationId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.conversationId);
|
|
5063
5291
|
const conversationKey2 = conversationId ?? NEW;
|
|
5064
|
-
const generation =
|
|
5065
|
-
const newConversationMode =
|
|
5066
|
-
const queuedMessages2 =
|
|
5292
|
+
const generation = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.generating[conversationKey2]);
|
|
5293
|
+
const newConversationMode = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.newConversationAssistantMode);
|
|
5294
|
+
const queuedMessages2 = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.queuedMessages);
|
|
5067
5295
|
const isRunning = !!generation?.isGenerating;
|
|
5068
5296
|
React.useEffect(() => {
|
|
5069
5297
|
if (workspaceId && session.getState().workspaceId !== workspaceId)
|
|
@@ -5075,8 +5303,8 @@ function useConversation(options = {}) {
|
|
|
5075
5303
|
React.useEffect(() => {
|
|
5076
5304
|
if (agentId && workspaceId && !conversationId) session.setNewAgentChat({ agentId, workspaceId });
|
|
5077
5305
|
}, [session, agentId, workspaceId, conversationId]);
|
|
5078
|
-
const { data: docs = [], isLoading: isLoadingDocuments } =
|
|
5079
|
-
const ordinaryHistory =
|
|
5306
|
+
const { data: docs = [], isLoading: isLoadingDocuments } = chunkGAW2PLSL_cjs.useDocuments(workspaceId);
|
|
5307
|
+
const ordinaryHistory = chunkCWJAULV2_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
5080
5308
|
const agentHistory = useAgentChats(agentId);
|
|
5081
5309
|
const stored = React.useMemo(
|
|
5082
5310
|
() => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
|
|
@@ -5302,7 +5530,7 @@ function useConversation(options = {}) {
|
|
|
5302
5530
|
void (async () => {
|
|
5303
5531
|
try {
|
|
5304
5532
|
await arbi.conversations.delete(id);
|
|
5305
|
-
|
|
5533
|
+
chunkKHRCABUX_cjs.removeConversationFromLists(queryClient, id);
|
|
5306
5534
|
if (session.getState().conversationId === id) session.startNewConversation();
|
|
5307
5535
|
} catch (e) {
|
|
5308
5536
|
setHistoryError(messageOf(e, "The conversation could not be deleted."));
|
|
@@ -5337,7 +5565,7 @@ function useConversation(options = {}) {
|
|
|
5337
5565
|
} else
|
|
5338
5566
|
uploaded.push(...(await arbi.documents.uploadFile(file, file.name)).doc_ext_ids ?? []);
|
|
5339
5567
|
}
|
|
5340
|
-
if (uploaded.length) await
|
|
5568
|
+
if (uploaded.length) await chunkGAW2PLSL_cjs.refreshDocuments(queryClient, arbi, uploaded);
|
|
5341
5569
|
} catch (e) {
|
|
5342
5570
|
setUploadError(messageOf(e, "The upload failed."));
|
|
5343
5571
|
} finally {
|
|
@@ -5386,10 +5614,10 @@ function ConversationScope({
|
|
|
5386
5614
|
conversationId,
|
|
5387
5615
|
children
|
|
5388
5616
|
}) {
|
|
5389
|
-
const outerWorkspaceId =
|
|
5617
|
+
const outerWorkspaceId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5390
5618
|
const scopeWorkspaceId = workspaceId ?? outerWorkspaceId;
|
|
5391
5619
|
const [session] = React.useState(
|
|
5392
|
-
() =>
|
|
5620
|
+
() => chunkCWJAULV2_cjs.createArbiSessionStore({
|
|
5393
5621
|
workspaceId: scopeWorkspaceId,
|
|
5394
5622
|
conversationId: conversationId ?? null
|
|
5395
5623
|
})
|
|
@@ -5410,11 +5638,11 @@ async function applyConversationEvent(queryClient, event) {
|
|
|
5410
5638
|
if (e.type === "response_complete") return applyRunEnded(queryClient, e);
|
|
5411
5639
|
if (e.type === "conversation.message_posted") return applyMessagePosted(queryClient, e);
|
|
5412
5640
|
if (e.type === "conversation.title_updated" && e.conversation_ext_id) {
|
|
5413
|
-
|
|
5641
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, e.conversation_ext_id, { title: e.title ?? null });
|
|
5414
5642
|
}
|
|
5415
5643
|
if (e.type === "conversation.document_binding_changed" && e.conversation_ext_id) {
|
|
5416
5644
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(e.conversation_ext_id) });
|
|
5417
|
-
void
|
|
5645
|
+
void chunkKHRCABUX_cjs.invalidateConversationLists(queryClient);
|
|
5418
5646
|
}
|
|
5419
5647
|
}
|
|
5420
5648
|
function applyRunEnded(queryClient, e) {
|
|
@@ -5431,10 +5659,10 @@ function applyRunEnded(queryClient, e) {
|
|
|
5431
5659
|
);
|
|
5432
5660
|
}
|
|
5433
5661
|
if (failed && e.response_id) markMessageAsFailed(queryClient, conversationId, e.response_id);
|
|
5434
|
-
|
|
5662
|
+
chunkKHRCABUX_cjs.patchConversation(queryClient, conversationId, {
|
|
5435
5663
|
last_message_status: failed ? "failed" : "completed"
|
|
5436
5664
|
});
|
|
5437
|
-
void
|
|
5665
|
+
void chunkKHRCABUX_cjs.invalidateConversationLists(queryClient);
|
|
5438
5666
|
void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
|
|
5439
5667
|
if (!failed) void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userUsageToday() });
|
|
5440
5668
|
}
|
|
@@ -5442,7 +5670,7 @@ async function applyMessagePosted(queryClient, e) {
|
|
|
5442
5670
|
if (!e.conversation_ext_id) return;
|
|
5443
5671
|
const queryKey = getThreadsQueryKey(e.conversation_ext_id);
|
|
5444
5672
|
const refreshed = queryClient.invalidateQueries({ queryKey });
|
|
5445
|
-
void
|
|
5673
|
+
void chunkKHRCABUX_cjs.invalidateConversationLists(queryClient);
|
|
5446
5674
|
await refreshed;
|
|
5447
5675
|
const cached = queryClient.getQueryData(
|
|
5448
5676
|
queryKey
|
|
@@ -5455,10 +5683,10 @@ var migratedWorkspaces = /* @__PURE__ */ new Set();
|
|
|
5455
5683
|
function useThreadDocument() {
|
|
5456
5684
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
5457
5685
|
const queryClient = reactQuery.useQueryClient();
|
|
5458
|
-
const session =
|
|
5459
|
-
const conversationId =
|
|
5460
|
-
const workspaceId =
|
|
5461
|
-
const newChatDocumentId =
|
|
5686
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
5687
|
+
const conversationId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.conversationId);
|
|
5688
|
+
const workspaceId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
5689
|
+
const newChatDocumentId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.newChatDocumentId);
|
|
5462
5690
|
const subscribe = React.useCallback(
|
|
5463
5691
|
(onChange) => queryClient.getQueryCache().subscribe(onChange),
|
|
5464
5692
|
[queryClient]
|
|
@@ -5473,7 +5701,7 @@ function useThreadDocument() {
|
|
|
5473
5701
|
() => threadBinding(queryClient, conversationId).unavailable,
|
|
5474
5702
|
() => false
|
|
5475
5703
|
);
|
|
5476
|
-
const { data: conversations, isPlaceholderData } =
|
|
5704
|
+
const { data: conversations, isPlaceholderData } = chunkCWJAULV2_cjs.useConversations(workspaceId ?? void 0);
|
|
5477
5705
|
React.useEffect(() => {
|
|
5478
5706
|
if (!workspaceId || !conversations || isPlaceholderData || migratedWorkspaces.has(workspaceId))
|
|
5479
5707
|
return;
|
|
@@ -5523,9 +5751,9 @@ function useConversationTurn({
|
|
|
5523
5751
|
selectedWorkspaceId,
|
|
5524
5752
|
parentMessageId
|
|
5525
5753
|
}) {
|
|
5526
|
-
const currentConversationId =
|
|
5754
|
+
const currentConversationId = chunkCWJAULV2_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5527
5755
|
const conversationKey2 = currentConversationId || "new";
|
|
5528
|
-
const generationState =
|
|
5756
|
+
const generationState = chunkCWJAULV2_cjs.useArbiSessionState((state) => state.generating[conversationKey2]);
|
|
5529
5757
|
const isGenerating = generationState?.isGenerating ?? false;
|
|
5530
5758
|
const generationError = generationState?.error ?? null;
|
|
5531
5759
|
const lastFailedMessage = generationState?.lastFailedMessage ?? null;
|
|
@@ -5546,12 +5774,12 @@ function useConversationTurn({
|
|
|
5546
5774
|
}
|
|
5547
5775
|
var EMPTY_DOCS = [];
|
|
5548
5776
|
function useConversationDocuments() {
|
|
5549
|
-
const currentConversationId =
|
|
5777
|
+
const currentConversationId = chunkCWJAULV2_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5550
5778
|
const convKey = currentConversationId || "new";
|
|
5551
|
-
const inConversationDocuments =
|
|
5779
|
+
const inConversationDocuments = chunkCWJAULV2_cjs.useArbiSessionState(
|
|
5552
5780
|
(state) => state.conversationDocuments[convKey] || EMPTY_DOCS
|
|
5553
5781
|
);
|
|
5554
|
-
const { data: documents2 = [], isLoading: isLoadingDocs } =
|
|
5782
|
+
const { data: documents2 = [], isLoading: isLoadingDocs } = chunkGAW2PLSL_cjs.useDocuments();
|
|
5555
5783
|
const conversationDocuments = React__default.default.useMemo(() => {
|
|
5556
5784
|
if (inConversationDocuments.length === 0) {
|
|
5557
5785
|
return [];
|
|
@@ -5583,8 +5811,8 @@ function useDocumentAutoAdd({
|
|
|
5583
5811
|
allWorkspaceDocuments,
|
|
5584
5812
|
hasContent = false
|
|
5585
5813
|
}) {
|
|
5586
|
-
const session =
|
|
5587
|
-
const currentConversationId =
|
|
5814
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
5815
|
+
const currentConversationId = chunkCWJAULV2_cjs.useArbiSessionState((state) => state.conversationId);
|
|
5588
5816
|
const convKey = currentConversationId || "new";
|
|
5589
5817
|
const observedRef = React.useRef(null);
|
|
5590
5818
|
const offeredRef = React.useRef(/* @__PURE__ */ new Set());
|
|
@@ -5645,12 +5873,12 @@ function useDocumentAutoAdd({
|
|
|
5645
5873
|
}, [selectedWorkspaceId, convKey, allWorkspaceDocuments, hasContent, session]);
|
|
5646
5874
|
}
|
|
5647
5875
|
function useAutoSendDraft(sendDraft, ready = true) {
|
|
5648
|
-
const session =
|
|
5649
|
-
const autoSendDraft =
|
|
5876
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
5877
|
+
const autoSendDraft = chunkCWJAULV2_cjs.useArbiSessionState((state) => state.autoSendDraft);
|
|
5650
5878
|
React.useEffect(() => {
|
|
5651
5879
|
if (!autoSendDraft || !ready) return;
|
|
5652
5880
|
session.setAutoSendDraft(false);
|
|
5653
|
-
if (
|
|
5881
|
+
if (chunkCWJAULV2_cjs.selectDraft(session.getState()).trim()) {
|
|
5654
5882
|
sendDraft();
|
|
5655
5883
|
}
|
|
5656
5884
|
}, [autoSendDraft, ready, sendDraft, session]);
|
|
@@ -5736,7 +5964,7 @@ function useAnswerAgentQuestion() {
|
|
|
5736
5964
|
);
|
|
5737
5965
|
}
|
|
5738
5966
|
function useAskAgain(options) {
|
|
5739
|
-
const session =
|
|
5967
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
5740
5968
|
const optionsRef = React.useRef(options);
|
|
5741
5969
|
React.useEffect(() => {
|
|
5742
5970
|
optionsRef.current = options;
|
|
@@ -5828,11 +6056,11 @@ function useMessageTimer({
|
|
|
5828
6056
|
isUser,
|
|
5829
6057
|
isGenerating
|
|
5830
6058
|
}) {
|
|
5831
|
-
const session =
|
|
6059
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
5832
6060
|
const convId = conversationId || "new";
|
|
5833
6061
|
const timerKey = `${convId}:${messageId}`;
|
|
5834
|
-
const generationStartTime =
|
|
5835
|
-
const storedElapsed =
|
|
6062
|
+
const generationStartTime = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.generating[convId]?.startTime ?? null);
|
|
6063
|
+
const storedElapsed = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.messageTimers[timerKey]?.elapsedTime);
|
|
5836
6064
|
const [elapsedTime, setElapsedTime] = React.useState(0);
|
|
5837
6065
|
const lastElapsedRef = React.useRef(0);
|
|
5838
6066
|
React.useEffect(() => {
|
|
@@ -5857,7 +6085,7 @@ function useMessageTimer({
|
|
|
5857
6085
|
}
|
|
5858
6086
|
function useAgentRunControl(assistantMessageExtId) {
|
|
5859
6087
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
5860
|
-
const session =
|
|
6088
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
5861
6089
|
const send = React.useCallback(
|
|
5862
6090
|
(command) => {
|
|
5863
6091
|
if (!assistantMessageExtId) return;
|
|
@@ -6024,6 +6252,16 @@ var ChatBubble = React.memo(function ChatBubble2({
|
|
|
6024
6252
|
);
|
|
6025
6253
|
});
|
|
6026
6254
|
|
|
6255
|
+
// src/websocket/reconnect.ts
|
|
6256
|
+
var INITIAL_RECONNECT_DELAY_MS = 1e3;
|
|
6257
|
+
var MAX_RECONNECT_DELAY_MS = 3e4;
|
|
6258
|
+
function nextReconnectDelay(attempt) {
|
|
6259
|
+
return Math.min(INITIAL_RECONNECT_DELAY_MS * 2 ** Math.max(0, attempt), MAX_RECONNECT_DELAY_MS);
|
|
6260
|
+
}
|
|
6261
|
+
function resolveSocketBaseUrl(configured, origin) {
|
|
6262
|
+
return /^https?:\/\//.test(configured) || !origin ? configured : origin;
|
|
6263
|
+
}
|
|
6264
|
+
|
|
6027
6265
|
// src/mail/client.ts
|
|
6028
6266
|
var MailOfflineUnavailableError = class extends Error {
|
|
6029
6267
|
constructor(message) {
|
|
@@ -6467,6 +6705,30 @@ async function applyLiveUpdate(queryClient, message) {
|
|
|
6467
6705
|
return false;
|
|
6468
6706
|
}
|
|
6469
6707
|
}
|
|
6708
|
+
|
|
6709
|
+
// src/notifications/live.ts
|
|
6710
|
+
function isNotificationRow(message) {
|
|
6711
|
+
const m = message;
|
|
6712
|
+
return typeof m?.external_id === "string" && typeof m.recipient === "object" && m.recipient !== null;
|
|
6713
|
+
}
|
|
6714
|
+
var MAIL_TYPES = /* @__PURE__ */ new Set(["native_mail_received", "mail_draft_ready"]);
|
|
6715
|
+
function applyNotificationRow(queryClient, row, me) {
|
|
6716
|
+
if (MAIL_TYPES.has(row.type) && row.recipient.external_id === me)
|
|
6717
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.mailQueryKeys.all() });
|
|
6718
|
+
queryClient.setQueriesData(
|
|
6719
|
+
{ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allNotifications() },
|
|
6720
|
+
(old) => {
|
|
6721
|
+
if (!Array.isArray(old)) return old;
|
|
6722
|
+
const index = old.findIndex((n) => n.external_id === row.external_id);
|
|
6723
|
+
if (index < 0) return [row, ...old];
|
|
6724
|
+
if (!row.read || old[index].read) return old;
|
|
6725
|
+
const next = [...old];
|
|
6726
|
+
next[index] = { ...old[index], read: true };
|
|
6727
|
+
return next;
|
|
6728
|
+
}
|
|
6729
|
+
);
|
|
6730
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allNotifications() });
|
|
6731
|
+
}
|
|
6470
6732
|
var ArbiWsContext = React.createContext(null);
|
|
6471
6733
|
function useArbiWsContext() {
|
|
6472
6734
|
const ctx = React.useContext(ArbiWsContext);
|
|
@@ -6475,14 +6737,6 @@ function useArbiWsContext() {
|
|
|
6475
6737
|
}
|
|
6476
6738
|
return ctx;
|
|
6477
6739
|
}
|
|
6478
|
-
var INITIAL_RECONNECT_DELAY_MS = 1e3;
|
|
6479
|
-
var MAX_RECONNECT_DELAY_MS = 3e4;
|
|
6480
|
-
function nextReconnectDelay(attempt) {
|
|
6481
|
-
return Math.min(INITIAL_RECONNECT_DELAY_MS * 2 ** Math.max(0, attempt), MAX_RECONNECT_DELAY_MS);
|
|
6482
|
-
}
|
|
6483
|
-
function resolveSocketBaseUrl(configured, origin) {
|
|
6484
|
-
return /^https?:\/\//.test(configured) || !origin ? configured : origin;
|
|
6485
|
-
}
|
|
6486
6740
|
var EVICTED_CLOSE_CODE = 1008;
|
|
6487
6741
|
function ArbiWebSocketProvider({
|
|
6488
6742
|
enabled = true,
|
|
@@ -6494,11 +6748,11 @@ function ArbiWebSocketProvider({
|
|
|
6494
6748
|
arbiRef.current = arbi;
|
|
6495
6749
|
const queryClient = reactQuery.useQueryClient();
|
|
6496
6750
|
const subscribersRef = React.useRef(/* @__PURE__ */ new Set());
|
|
6497
|
-
const setStatus = useArbiWsStore((s) => s.setStatus);
|
|
6498
|
-
const applyTaskUpdate = useArbiWsStore((s) => s.applyTaskUpdate);
|
|
6499
|
-
const applyPresence = useArbiWsStore((s) => s.applyPresence);
|
|
6500
|
-
const reset = useArbiWsStore((s) => s.reset);
|
|
6501
|
-
const setEvicted = useArbiWsStore((s) => s.setEvicted);
|
|
6751
|
+
const setStatus = chunkGAW2PLSL_cjs.useArbiWsStore((s) => s.setStatus);
|
|
6752
|
+
const applyTaskUpdate = chunkGAW2PLSL_cjs.useArbiWsStore((s) => s.applyTaskUpdate);
|
|
6753
|
+
const applyPresence = chunkGAW2PLSL_cjs.useArbiWsStore((s) => s.applyPresence);
|
|
6754
|
+
const reset = chunkGAW2PLSL_cjs.useArbiWsStore((s) => s.reset);
|
|
6755
|
+
const setEvicted = chunkGAW2PLSL_cjs.useArbiWsStore((s) => s.setEvicted);
|
|
6502
6756
|
const onAuthenticatedRef = React.useRef(onAuthenticated);
|
|
6503
6757
|
onAuthenticatedRef.current = onAuthenticated;
|
|
6504
6758
|
const acceptRings = chunkYIUUTRMQ_cjs.useArbiHost().calls?.useEnabled?.() ?? true;
|
|
@@ -6522,22 +6776,32 @@ function ArbiWebSocketProvider({
|
|
|
6522
6776
|
}
|
|
6523
6777
|
let conn = null;
|
|
6524
6778
|
let cancelled = false;
|
|
6779
|
+
let evicted = false;
|
|
6780
|
+
const me = () => arbiRef.current.isLoggedIn ? arbiRef.current.user.identity()?.externalId ?? null : null;
|
|
6525
6781
|
const onMessage = (msg) => {
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
else {
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6782
|
+
const type = msg.type;
|
|
6783
|
+
if (type === "connection_closed") {
|
|
6784
|
+
evicted = true;
|
|
6785
|
+
setEvicted(true);
|
|
6786
|
+
} else if (client.isMessageType(msg, "task_update")) {
|
|
6787
|
+
if (applyTaskUpdate(msg)) applyTaskEvent(queryClient, arbiRef.current, msg, me());
|
|
6788
|
+
} else if (client.isMessageType(msg, "presence_update")) applyPresence(msg);
|
|
6789
|
+
else if (client.isMessageType(msg, "batch_complete")) {
|
|
6790
|
+
if (msg.batch_type === "entity_extract") {
|
|
6791
|
+
chunkGAW2PLSL_cjs.finishEntityExtraction(msg.doc_ext_ids ?? []);
|
|
6792
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allFacts() });
|
|
6793
|
+
}
|
|
6794
|
+
if (msg.batch_type === "upload" || msg.batch_type === "entity_extract") {
|
|
6795
|
+
if (msg.doc_ext_ids?.length)
|
|
6796
|
+
void chunkGAW2PLSL_cjs.refreshDocuments(queryClient, arbiRef.current, msg.doc_ext_ids);
|
|
6797
|
+
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allTags() });
|
|
6798
|
+
}
|
|
6799
|
+
} else if (type.startsWith("chat.") || type === "agent_dm_status")
|
|
6800
|
+
void chunkKHRCABUX_cjs.applyChatEvent(arbiRef.current, queryClient, msg);
|
|
6801
|
+
else if (type.startsWith("call."))
|
|
6802
|
+
chunkKHRCABUX_cjs.applyCallEvent(queryClient, msg, { me: me(), acceptRings: acceptRingsRef.current });
|
|
6803
|
+
else if (isNotificationRow(msg)) applyNotificationRow(queryClient, msg, me());
|
|
6804
|
+
else void applyLiveUpdate(queryClient, msg);
|
|
6541
6805
|
for (const fn of subscribersRef.current) {
|
|
6542
6806
|
try {
|
|
6543
6807
|
fn(msg);
|
|
@@ -6548,7 +6812,7 @@ function ArbiWebSocketProvider({
|
|
|
6548
6812
|
let retryTimer = null;
|
|
6549
6813
|
let attempt = 0;
|
|
6550
6814
|
const scheduleRestart = () => {
|
|
6551
|
-
if (cancelled || retryTimer) return;
|
|
6815
|
+
if (cancelled || evicted || retryTimer) return;
|
|
6552
6816
|
setStatus("disconnected");
|
|
6553
6817
|
const delay = nextReconnectDelay(attempt);
|
|
6554
6818
|
attempt += 1;
|
|
@@ -6587,16 +6851,18 @@ function ArbiWebSocketProvider({
|
|
|
6587
6851
|
attempt = 0;
|
|
6588
6852
|
setStatus("connected");
|
|
6589
6853
|
},
|
|
6590
|
-
// Evicted
|
|
6854
|
+
// Evicted (a newer session of the same user, or the server took this connection over for a
|
|
6855
|
+
// newer one of this session): reconnecting would be evicted again, or evict that one.
|
|
6591
6856
|
shouldReconnect: (code) => {
|
|
6592
|
-
if (code !== EVICTED_CLOSE_CODE) return true;
|
|
6857
|
+
if (code !== EVICTED_CLOSE_CODE && !evicted) return true;
|
|
6858
|
+
evicted = true;
|
|
6593
6859
|
setEvicted(true);
|
|
6594
6860
|
setStatus("disconnected");
|
|
6595
6861
|
return false;
|
|
6596
6862
|
},
|
|
6597
6863
|
onReconnectFailed: scheduleRestart,
|
|
6598
6864
|
onClose: () => {
|
|
6599
|
-
if (!cancelled) setStatus("reconnecting");
|
|
6865
|
+
if (!cancelled) setStatus(evicted ? "disconnected" : "reconnecting");
|
|
6600
6866
|
}
|
|
6601
6867
|
});
|
|
6602
6868
|
if (cancelled) {
|
|
@@ -6639,38 +6905,10 @@ function useArbiWsMessage(type, handler) {
|
|
|
6639
6905
|
);
|
|
6640
6906
|
}
|
|
6641
6907
|
function useArbiWsStatus() {
|
|
6642
|
-
return useArbiWsStore((s) => s.status);
|
|
6908
|
+
return chunkGAW2PLSL_cjs.useArbiWsStore((s) => s.status);
|
|
6643
6909
|
}
|
|
6644
6910
|
function useArbiConnected() {
|
|
6645
|
-
return useArbiWsStore((s) => s.status === "connected");
|
|
6646
|
-
}
|
|
6647
|
-
function useArbiWsTasks() {
|
|
6648
|
-
return useArbiWsStore((s) => s.tasks);
|
|
6649
|
-
}
|
|
6650
|
-
function useArbiWsTask(docId) {
|
|
6651
|
-
return useArbiWsStore((s) => s.tasks[docId]);
|
|
6652
|
-
}
|
|
6653
|
-
function useArbiDocumentSync(workspaceId) {
|
|
6654
|
-
const queryClient = reactQuery.useQueryClient();
|
|
6655
|
-
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
6656
|
-
React.useEffect(
|
|
6657
|
-
() => subscribeDocumentReads(queryClient, (rows) => useArbiWsStore.getState().settleTasks(rows)),
|
|
6658
|
-
[queryClient]
|
|
6659
|
-
);
|
|
6660
|
-
useArbiWebSocket((msg) => {
|
|
6661
|
-
if (!workspaceId) return;
|
|
6662
|
-
if (client.isMessageType(msg, "batch_complete")) {
|
|
6663
|
-
if (msg.workspace_ext_id !== workspaceId) return;
|
|
6664
|
-
if (msg.doc_ext_ids?.length) void chunk2ERRXEOB_cjs.refreshDocuments(queryClient, arbi, msg.doc_ext_ids);
|
|
6665
|
-
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.tags(workspaceId) });
|
|
6666
|
-
return;
|
|
6667
|
-
}
|
|
6668
|
-
if (client.isMessageType(msg, "task_update")) {
|
|
6669
|
-
if (msg.workspace_ext_id !== workspaceId) return;
|
|
6670
|
-
if (chunk2ERRXEOB_cjs.FINISHED_DOCUMENT_STATUSES.has(msg.status))
|
|
6671
|
-
void chunk2ERRXEOB_cjs.refreshDocuments(queryClient, arbi, [msg.doc_ext_id]);
|
|
6672
|
-
}
|
|
6673
|
-
});
|
|
6911
|
+
return chunkGAW2PLSL_cjs.useArbiWsStore((s) => s.status === "connected");
|
|
6674
6912
|
}
|
|
6675
6913
|
var WORKSPACE_SCOPED_PACKAGE_KEYS = [
|
|
6676
6914
|
chunkRRWAX52L_cjs.arbiQueryKeys.allDocuments(),
|
|
@@ -6813,7 +7051,7 @@ function useSwitchWorkspace() {
|
|
|
6813
7051
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
6814
7052
|
const arbiRef = React.useRef(arbi);
|
|
6815
7053
|
arbiRef.current = arbi;
|
|
6816
|
-
const session =
|
|
7054
|
+
const session = chunkCWJAULV2_cjs.useArbiSessionStore();
|
|
6817
7055
|
const queryClient = reactQuery.useQueryClient();
|
|
6818
7056
|
React.useEffect(
|
|
6819
7057
|
() => arbi.onSigningOut?.(() => {
|
|
@@ -6830,9 +7068,9 @@ function useSwitchWorkspace() {
|
|
|
6830
7068
|
function useOpenSelectedWorkspace() {
|
|
6831
7069
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
6832
7070
|
const { clearWorkspace, openSelectedWorkspace } = useSwitchWorkspace();
|
|
6833
|
-
const workspaceId =
|
|
6834
|
-
const status =
|
|
6835
|
-
const { data: workspaces, isLoading: listing } =
|
|
7071
|
+
const workspaceId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
7072
|
+
const status = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceStatus);
|
|
7073
|
+
const { data: workspaces, isLoading: listing } = chunkCWJAULV2_cjs.useWorkspaces();
|
|
6836
7074
|
const archived = workspaces?.find(
|
|
6837
7075
|
(w) => w.external_id === workspaceId && w.archive
|
|
6838
7076
|
);
|
|
@@ -6975,8 +7213,8 @@ function useShellWorkspaces(options) {
|
|
|
6975
7213
|
};
|
|
6976
7214
|
}
|
|
6977
7215
|
function useArbiShellWorkspaces(options = {}) {
|
|
6978
|
-
const sessionWorkspaceId =
|
|
6979
|
-
const query =
|
|
7216
|
+
const sessionWorkspaceId = chunkCWJAULV2_cjs.useArbiSessionState((s) => s.workspaceId);
|
|
7217
|
+
const query = chunkCWJAULV2_cjs.useWorkspaces();
|
|
6980
7218
|
const { switchWorkspace } = useSwitchWorkspace();
|
|
6981
7219
|
const { select, ...rest } = options;
|
|
6982
7220
|
const defaultSelect = React.useCallback(
|
|
@@ -8080,8 +8318,8 @@ function usePeople() {
|
|
|
8080
8318
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
8081
8319
|
const meId = arbi.isLoggedIn ? arbi.user.identity()?.externalId : void 0;
|
|
8082
8320
|
const { data: contacts = [] } = useContacts();
|
|
8083
|
-
const { data: workspaces = [] } =
|
|
8084
|
-
const { data: agents = [] } =
|
|
8321
|
+
const { data: workspaces = [] } = chunkCWJAULV2_cjs.useWorkspaces();
|
|
8322
|
+
const { data: agents = [] } = chunkCWJAULV2_cjs.useAgents();
|
|
8085
8323
|
return React.useMemo(() => {
|
|
8086
8324
|
const people = [];
|
|
8087
8325
|
const contactOf = /* @__PURE__ */ new Map();
|
|
@@ -8174,13 +8412,13 @@ var supportsHouseTemplates = browser.houseTemplates.supportsHouseTemplates;
|
|
|
8174
8412
|
var workspaceHouseTemplateId = browser.houseTemplates.workspaceHouseTemplateId;
|
|
8175
8413
|
var isDeploymentAdmin = browser.houseTemplates.isDeploymentAdmin;
|
|
8176
8414
|
function useRequestEmailChange() {
|
|
8177
|
-
const { client } =
|
|
8415
|
+
const { client } = chunkKHRCABUX_cjs.useAccountClient();
|
|
8178
8416
|
return reactQuery.useMutation({
|
|
8179
8417
|
mutationFn: (newEmail) => client.requestEmailChange(newEmail)
|
|
8180
8418
|
});
|
|
8181
8419
|
}
|
|
8182
8420
|
function useConfirmEmailChange() {
|
|
8183
|
-
const { client } =
|
|
8421
|
+
const { client } = chunkKHRCABUX_cjs.useAccountClient();
|
|
8184
8422
|
const qc = reactQuery.useQueryClient();
|
|
8185
8423
|
return reactQuery.useMutation({
|
|
8186
8424
|
mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
|
|
@@ -8248,7 +8486,7 @@ function useEmailChange({
|
|
|
8248
8486
|
};
|
|
8249
8487
|
}
|
|
8250
8488
|
function usePasswordChange() {
|
|
8251
|
-
const { client } =
|
|
8489
|
+
const { client } = chunkKHRCABUX_cjs.useAccountClient();
|
|
8252
8490
|
return reactQuery.useMutation({
|
|
8253
8491
|
mutationFn: (vars) => client.changePassword(vars)
|
|
8254
8492
|
});
|
|
@@ -8486,7 +8724,7 @@ function useFollowThread(conversationId, options) {
|
|
|
8486
8724
|
};
|
|
8487
8725
|
}
|
|
8488
8726
|
function useSessions(options) {
|
|
8489
|
-
const { client, enabled } =
|
|
8727
|
+
const { client, enabled } = chunkKHRCABUX_cjs.useAccountClient();
|
|
8490
8728
|
return reactQuery.useQuery({
|
|
8491
8729
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.sessions(),
|
|
8492
8730
|
queryFn: () => client.listSessions(),
|
|
@@ -8494,7 +8732,7 @@ function useSessions(options) {
|
|
|
8494
8732
|
});
|
|
8495
8733
|
}
|
|
8496
8734
|
function useTerminateSession() {
|
|
8497
|
-
const { client } =
|
|
8735
|
+
const { client } = chunkKHRCABUX_cjs.useAccountClient();
|
|
8498
8736
|
const qc = reactQuery.useQueryClient();
|
|
8499
8737
|
return reactQuery.useMutation({
|
|
8500
8738
|
mutationFn: (sessionId) => client.terminateSession(sessionId),
|
|
@@ -8502,7 +8740,7 @@ function useTerminateSession() {
|
|
|
8502
8740
|
});
|
|
8503
8741
|
}
|
|
8504
8742
|
function useSignOut() {
|
|
8505
|
-
const { client } =
|
|
8743
|
+
const { client } = chunkKHRCABUX_cjs.useAccountClient();
|
|
8506
8744
|
const qc = reactQuery.useQueryClient();
|
|
8507
8745
|
return reactQuery.useMutation({
|
|
8508
8746
|
mutationFn: (options = {}) => client.signOut(options),
|
|
@@ -8510,7 +8748,7 @@ function useSignOut() {
|
|
|
8510
8748
|
});
|
|
8511
8749
|
}
|
|
8512
8750
|
function useCurrentSessionId() {
|
|
8513
|
-
return
|
|
8751
|
+
return chunkKHRCABUX_cjs.useAccountClient().client.currentSessionId();
|
|
8514
8752
|
}
|
|
8515
8753
|
function parseDeleteAccountBlockers(error) {
|
|
8516
8754
|
const body = error?.apiError ?? error;
|
|
@@ -8525,7 +8763,7 @@ function parseDeleteAccountBlockers(error) {
|
|
|
8525
8763
|
return [];
|
|
8526
8764
|
}
|
|
8527
8765
|
function useDeleteAccount() {
|
|
8528
|
-
const { client } =
|
|
8766
|
+
const { client } = chunkKHRCABUX_cjs.useAccountClient();
|
|
8529
8767
|
return reactQuery.useMutation({ mutationFn: () => client.requestDeletion() });
|
|
8530
8768
|
}
|
|
8531
8769
|
function useDeleteAccountFlow({
|
|
@@ -8847,7 +9085,7 @@ function useIdentityVerificationFlow(api, {
|
|
|
8847
9085
|
};
|
|
8848
9086
|
}
|
|
8849
9087
|
function useIdentityVerification(options = {}) {
|
|
8850
|
-
const { client, enabled } =
|
|
9088
|
+
const { client, enabled } = chunkKHRCABUX_cjs.useAccountClient();
|
|
8851
9089
|
const qc = reactQuery.useQueryClient();
|
|
8852
9090
|
const { onVerifiedChange, onNameAccepted, formatPrice } = options;
|
|
8853
9091
|
return useIdentityVerificationFlow(client.identity, {
|
|
@@ -9649,7 +9887,7 @@ function useDeleteBookingPage() {
|
|
|
9649
9887
|
});
|
|
9650
9888
|
}
|
|
9651
9889
|
function useWorkspaceDocs(workspaceId) {
|
|
9652
|
-
const { data: docs = [], isLoading, isError } =
|
|
9890
|
+
const { data: docs = [], isLoading, isError } = chunkGAW2PLSL_cjs.useDocuments(workspaceId);
|
|
9653
9891
|
const docIds = React.useMemo(
|
|
9654
9892
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
9655
9893
|
[docs]
|
|
@@ -9657,7 +9895,7 @@ function useWorkspaceDocs(workspaceId) {
|
|
|
9657
9895
|
return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
|
|
9658
9896
|
}
|
|
9659
9897
|
function useAiTask() {
|
|
9660
|
-
const mutation =
|
|
9898
|
+
const mutation = chunkCWJAULV2_cjs.useAssistantQuery();
|
|
9661
9899
|
const [status, setStatus] = React.useState("idle");
|
|
9662
9900
|
const [text, setText] = React.useState("");
|
|
9663
9901
|
const [stepCount, setStepCount] = React.useState(0);
|
|
@@ -11097,7 +11335,7 @@ function ActivityFeed({
|
|
|
11097
11335
|
enabled,
|
|
11098
11336
|
"data-testid": testId = "activity-feed"
|
|
11099
11337
|
}) {
|
|
11100
|
-
const { data, isLoading, isError } =
|
|
11338
|
+
const { data, isLoading, isError } = chunkCWJAULV2_cjs.useActivity({ limit, enabled });
|
|
11101
11339
|
if (isLoading) {
|
|
11102
11340
|
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: [
|
|
11103
11341
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
|
|
@@ -11168,16 +11406,7 @@ function useWorkNotifications(options) {
|
|
|
11168
11406
|
}
|
|
11169
11407
|
function useNotifications(options = {}) {
|
|
11170
11408
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
11171
|
-
const queries = reactQuery.useQueryClient();
|
|
11172
11409
|
const limit = options.limit ?? 100;
|
|
11173
|
-
const ws = React.useContext(ArbiWsContext);
|
|
11174
|
-
React.useEffect(
|
|
11175
|
-
() => ws?.subscribe((message) => {
|
|
11176
|
-
if ("sender" in message && "recipient" in message)
|
|
11177
|
-
void queries.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allNotifications() });
|
|
11178
|
-
}),
|
|
11179
|
-
[ws, queries]
|
|
11180
|
-
);
|
|
11181
11410
|
return reactQuery.useQuery({
|
|
11182
11411
|
queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.notifications(limit),
|
|
11183
11412
|
queryFn: () => arbi.notifications.list({ limit }),
|
|
@@ -11684,7 +11913,7 @@ function isAgentUser(user) {
|
|
|
11684
11913
|
return user.external_id.startsWith("agt-");
|
|
11685
11914
|
}
|
|
11686
11915
|
function DmAvatar({ user, className, size = "lg" }) {
|
|
11687
|
-
const presence = useArbiWsStore((s) => s.presence[user.external_id]);
|
|
11916
|
+
const presence = chunkGAW2PLSL_cjs.useArbiWsStore((s) => s.presence[user.external_id]);
|
|
11688
11917
|
const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
|
|
11689
11918
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
11690
11919
|
chunkFSPLYO52_cjs.UserEntity,
|
|
@@ -12057,7 +12286,7 @@ function useChatUnreadTotal() {
|
|
|
12057
12286
|
function useUnreadByPeer() {
|
|
12058
12287
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
12059
12288
|
const { data = [] } = useChats();
|
|
12060
|
-
const me =
|
|
12289
|
+
const me = chunkKHRCABUX_cjs.myChatId(arbi);
|
|
12061
12290
|
return React.useMemo(() => {
|
|
12062
12291
|
const out = /* @__PURE__ */ new Map();
|
|
12063
12292
|
for (const c of data) {
|
|
@@ -12144,13 +12373,13 @@ function useChatPost() {
|
|
|
12144
12373
|
const queryClient = reactQuery.useQueryClient();
|
|
12145
12374
|
return React.useCallback(
|
|
12146
12375
|
async (target, post) => {
|
|
12147
|
-
const me =
|
|
12376
|
+
const me = chunkKHRCABUX_cjs.myChatId(arbi);
|
|
12148
12377
|
if (!me) throw new Error("No active session");
|
|
12149
12378
|
let chat = target.chat;
|
|
12150
12379
|
if (!chat) {
|
|
12151
12380
|
if (!target.peerExtId) throw new Error("Could not resolve the conversation");
|
|
12152
12381
|
chat = await arbi.chats.openDirect(target.peerExtId);
|
|
12153
|
-
|
|
12382
|
+
chunkKHRCABUX_cjs.upsertChat(queryClient, chat);
|
|
12154
12383
|
queryClient.setQueryData(
|
|
12155
12384
|
chunkRRWAX52L_cjs.arbiQueryKeys.chatThread(chat.external_id),
|
|
12156
12385
|
(old) => old ?? { messages: [], hasMore: false }
|
|
@@ -12173,7 +12402,7 @@ function useChatPost() {
|
|
|
12173
12402
|
updated_at: now,
|
|
12174
12403
|
optimistic: true
|
|
12175
12404
|
};
|
|
12176
|
-
|
|
12405
|
+
chunkKHRCABUX_cjs.appendToThread(queryClient, chat.external_id, optimistic);
|
|
12177
12406
|
try {
|
|
12178
12407
|
let attachments = [];
|
|
12179
12408
|
if (files.length) {
|
|
@@ -12193,15 +12422,15 @@ function useChatPost() {
|
|
|
12193
12422
|
...post.workspaceExtId ? { workspaceExtId: post.workspaceExtId } : {},
|
|
12194
12423
|
contextOnly: !!post.contextOnly
|
|
12195
12424
|
});
|
|
12196
|
-
|
|
12197
|
-
|
|
12425
|
+
chunkKHRCABUX_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
|
|
12426
|
+
chunkKHRCABUX_cjs.upsertChat(queryClient, {
|
|
12198
12427
|
...chat,
|
|
12199
12428
|
last_message: message,
|
|
12200
12429
|
last_message_at: message.created_at
|
|
12201
12430
|
});
|
|
12202
12431
|
return { chat, message };
|
|
12203
12432
|
} catch (err) {
|
|
12204
|
-
|
|
12433
|
+
chunkKHRCABUX_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
|
|
12205
12434
|
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatList() });
|
|
12206
12435
|
throw err;
|
|
12207
12436
|
}
|
|
@@ -12213,7 +12442,7 @@ function useDeleteChatMessage() {
|
|
|
12213
12442
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
12214
12443
|
const queryClient = reactQuery.useQueryClient();
|
|
12215
12444
|
return React.useCallback(
|
|
12216
|
-
(chatExtId, messageExtId) =>
|
|
12445
|
+
(chatExtId, messageExtId) => chunkKHRCABUX_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
|
|
12217
12446
|
[arbi, queryClient]
|
|
12218
12447
|
);
|
|
12219
12448
|
}
|
|
@@ -12222,7 +12451,7 @@ function useMarkChatRead() {
|
|
|
12222
12451
|
const queryClient = reactQuery.useQueryClient();
|
|
12223
12452
|
return React.useCallback(
|
|
12224
12453
|
(chat, messageExtId) => {
|
|
12225
|
-
|
|
12454
|
+
chunkKHRCABUX_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
|
|
12226
12455
|
return arbi.chats.markRead(chat.external_id, messageExtId).then(
|
|
12227
12456
|
() => void 0,
|
|
12228
12457
|
() => void 0
|
|
@@ -12236,7 +12465,7 @@ function useCreateGroupChat() {
|
|
|
12236
12465
|
const queryClient = reactQuery.useQueryClient();
|
|
12237
12466
|
return reactQuery.useMutation({
|
|
12238
12467
|
mutationFn: (params) => arbi.chats.createGroup(params),
|
|
12239
|
-
onSuccess: (chat) =>
|
|
12468
|
+
onSuccess: (chat) => chunkKHRCABUX_cjs.upsertChat(queryClient, chat)
|
|
12240
12469
|
});
|
|
12241
12470
|
}
|
|
12242
12471
|
function useRenameChat() {
|
|
@@ -12244,7 +12473,7 @@ function useRenameChat() {
|
|
|
12244
12473
|
const queryClient = reactQuery.useQueryClient();
|
|
12245
12474
|
return reactQuery.useMutation({
|
|
12246
12475
|
mutationFn: (vars) => arbi.chats.rename(vars.chat, vars.title),
|
|
12247
|
-
onSuccess: (chat) =>
|
|
12476
|
+
onSuccess: (chat) => chunkKHRCABUX_cjs.upsertChat(queryClient, chat)
|
|
12248
12477
|
});
|
|
12249
12478
|
}
|
|
12250
12479
|
function useAddChatMembers() {
|
|
@@ -12252,7 +12481,7 @@ function useAddChatMembers() {
|
|
|
12252
12481
|
const queryClient = reactQuery.useQueryClient();
|
|
12253
12482
|
return reactQuery.useMutation({
|
|
12254
12483
|
mutationFn: (vars) => arbi.chats.addMembers(vars.chat, vars.members, { callKey: vars.callKey }),
|
|
12255
|
-
onSuccess: (chat) =>
|
|
12484
|
+
onSuccess: (chat) => chunkKHRCABUX_cjs.upsertChat(queryClient, chat)
|
|
12256
12485
|
});
|
|
12257
12486
|
}
|
|
12258
12487
|
function useRemoveChatMember() {
|
|
@@ -12261,11 +12490,31 @@ function useRemoveChatMember() {
|
|
|
12261
12490
|
return reactQuery.useMutation({
|
|
12262
12491
|
mutationFn: (vars) => arbi.chats.removeMember(vars.chat, vars.userExtId),
|
|
12263
12492
|
onSuccess: (_data, vars) => {
|
|
12264
|
-
if (vars.userExtId ===
|
|
12493
|
+
if (vars.userExtId === chunkKHRCABUX_cjs.myChatId(arbi)) chunkKHRCABUX_cjs.removeChat(queryClient, vars.chat.external_id);
|
|
12265
12494
|
else return queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.chatList() });
|
|
12266
12495
|
}
|
|
12267
12496
|
});
|
|
12268
12497
|
}
|
|
12498
|
+
function useChatArrivals(onArrival) {
|
|
12499
|
+
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
12500
|
+
const queryClient = reactQuery.useQueryClient();
|
|
12501
|
+
useArbiWsMessage("chat.message", (message) => {
|
|
12502
|
+
const senderId = message.message.sender_ext_id;
|
|
12503
|
+
if (!senderId || senderId === chunkKHRCABUX_cjs.myChatId(arbi)) return;
|
|
12504
|
+
if (message.message.kind !== "text" || chunkKHRCABUX_cjs.getOpenChat() === message.chat_ext_id) return;
|
|
12505
|
+
const muted = queryClient.getQueriesData({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.userSettings() }).map(([, data]) => data).find(Boolean)?.muted_users;
|
|
12506
|
+
if (muted?.includes(senderId)) return;
|
|
12507
|
+
const chat = chunkKHRCABUX_cjs.cachedChat(queryClient, message.chat_ext_id);
|
|
12508
|
+
const sender = chat?.members.find((m) => m.user.external_id === senderId)?.user;
|
|
12509
|
+
onArrival({
|
|
12510
|
+
chatId: message.chat_ext_id,
|
|
12511
|
+
chat,
|
|
12512
|
+
sender,
|
|
12513
|
+
senderId,
|
|
12514
|
+
replyTo: chat?.kind === "direct" ? senderId : message.chat_ext_id
|
|
12515
|
+
});
|
|
12516
|
+
});
|
|
12517
|
+
}
|
|
12269
12518
|
function DateSeparator({ children }) {
|
|
12270
12519
|
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 }) });
|
|
12271
12520
|
}
|
|
@@ -12705,1107 +12954,1183 @@ function CommandPaletteProvider({
|
|
|
12705
12954
|
|
|
12706
12955
|
Object.defineProperty(exports, "AUDIENCE_CHOICES", {
|
|
12707
12956
|
enumerable: true,
|
|
12708
|
-
get: function () { return
|
|
12957
|
+
get: function () { return chunkKHRCABUX_cjs.AUDIENCE_CHOICES; }
|
|
12709
12958
|
});
|
|
12710
12959
|
Object.defineProperty(exports, "CALL_CAPTION_TOPIC", {
|
|
12711
12960
|
enumerable: true,
|
|
12712
|
-
get: function () { return
|
|
12961
|
+
get: function () { return chunkKHRCABUX_cjs.CALL_CAPTION_TOPIC; }
|
|
12713
12962
|
});
|
|
12714
12963
|
Object.defineProperty(exports, "CALL_CHAT_MAX_CHARS", {
|
|
12715
12964
|
enumerable: true,
|
|
12716
|
-
get: function () { return
|
|
12965
|
+
get: function () { return chunkKHRCABUX_cjs.CALL_CHAT_MAX_CHARS; }
|
|
12717
12966
|
});
|
|
12718
12967
|
Object.defineProperty(exports, "CALL_CHAT_TOPIC", {
|
|
12719
12968
|
enumerable: true,
|
|
12720
|
-
get: function () { return
|
|
12969
|
+
get: function () { return chunkKHRCABUX_cjs.CALL_CHAT_TOPIC; }
|
|
12721
12970
|
});
|
|
12722
12971
|
Object.defineProperty(exports, "CALL_MODERATION_TOPIC", {
|
|
12723
12972
|
enumerable: true,
|
|
12724
|
-
get: function () { return
|
|
12973
|
+
get: function () { return chunkKHRCABUX_cjs.CALL_MODERATION_TOPIC; }
|
|
12725
12974
|
});
|
|
12726
12975
|
Object.defineProperty(exports, "CALL_RECORDING_TOPIC", {
|
|
12727
12976
|
enumerable: true,
|
|
12728
|
-
get: function () { return
|
|
12977
|
+
get: function () { return chunkKHRCABUX_cjs.CALL_RECORDING_TOPIC; }
|
|
12729
12978
|
});
|
|
12730
12979
|
Object.defineProperty(exports, "CALL_TRANSCRIPTION_TOPIC", {
|
|
12731
12980
|
enumerable: true,
|
|
12732
|
-
get: function () { return
|
|
12981
|
+
get: function () { return chunkKHRCABUX_cjs.CALL_TRANSCRIPTION_TOPIC; }
|
|
12733
12982
|
});
|
|
12734
12983
|
Object.defineProperty(exports, "CALL_WEBINAR_TOPIC", {
|
|
12735
12984
|
enumerable: true,
|
|
12736
|
-
get: function () { return
|
|
12985
|
+
get: function () { return chunkKHRCABUX_cjs.CALL_WEBINAR_TOPIC; }
|
|
12737
12986
|
});
|
|
12738
12987
|
Object.defineProperty(exports, "CAPTION_MAX_CHARS", {
|
|
12739
12988
|
enumerable: true,
|
|
12740
|
-
get: function () { return
|
|
12989
|
+
get: function () { return chunkKHRCABUX_cjs.CAPTION_MAX_CHARS; }
|
|
12741
12990
|
});
|
|
12742
12991
|
Object.defineProperty(exports, "COMPOSITE_AUDIO_BITS_PER_SECOND", {
|
|
12743
12992
|
enumerable: true,
|
|
12744
|
-
get: function () { return
|
|
12993
|
+
get: function () { return chunkKHRCABUX_cjs.COMPOSITE_AUDIO_BITS_PER_SECOND; }
|
|
12745
12994
|
});
|
|
12746
12995
|
Object.defineProperty(exports, "COMPOSITE_VIDEO_BITS_PER_SECOND", {
|
|
12747
12996
|
enumerable: true,
|
|
12748
|
-
get: function () { return
|
|
12997
|
+
get: function () { return chunkKHRCABUX_cjs.COMPOSITE_VIDEO_BITS_PER_SECOND; }
|
|
12749
12998
|
});
|
|
12750
12999
|
Object.defineProperty(exports, "DEFAULT_JOIN_CHOICES", {
|
|
12751
13000
|
enumerable: true,
|
|
12752
|
-
get: function () { return
|
|
13001
|
+
get: function () { return chunkKHRCABUX_cjs.DEFAULT_JOIN_CHOICES; }
|
|
12753
13002
|
});
|
|
12754
13003
|
Object.defineProperty(exports, "EMPTY_CALL_SESSION", {
|
|
12755
13004
|
enumerable: true,
|
|
12756
|
-
get: function () { return
|
|
13005
|
+
get: function () { return chunkKHRCABUX_cjs.EMPTY_CALL_SESSION; }
|
|
12757
13006
|
});
|
|
12758
13007
|
Object.defineProperty(exports, "EXPORT_SAMPLE_RATE", {
|
|
12759
13008
|
enumerable: true,
|
|
12760
|
-
get: function () { return
|
|
13009
|
+
get: function () { return chunkKHRCABUX_cjs.EXPORT_SAMPLE_RATE; }
|
|
12761
13010
|
});
|
|
12762
13011
|
Object.defineProperty(exports, "HISTORY_LIMIT", {
|
|
12763
13012
|
enumerable: true,
|
|
12764
|
-
get: function () { return
|
|
13013
|
+
get: function () { return chunkKHRCABUX_cjs.HISTORY_LIMIT; }
|
|
12765
13014
|
});
|
|
12766
13015
|
Object.defineProperty(exports, "LIVE_SEGMENTER", {
|
|
12767
13016
|
enumerable: true,
|
|
12768
|
-
get: function () { return
|
|
13017
|
+
get: function () { return chunkKHRCABUX_cjs.LIVE_SEGMENTER; }
|
|
12769
13018
|
});
|
|
12770
13019
|
Object.defineProperty(exports, "MAX_AVATAR_FILE_BYTES", {
|
|
12771
13020
|
enumerable: true,
|
|
12772
|
-
get: function () { return
|
|
13021
|
+
get: function () { return chunkKHRCABUX_cjs.MAX_AVATAR_FILE_BYTES; }
|
|
12773
13022
|
});
|
|
12774
13023
|
Object.defineProperty(exports, "MUTED_DEDUPE_MS", {
|
|
12775
13024
|
enumerable: true,
|
|
12776
|
-
get: function () { return
|
|
13025
|
+
get: function () { return chunkKHRCABUX_cjs.MUTED_DEDUPE_MS; }
|
|
12777
13026
|
});
|
|
12778
13027
|
Object.defineProperty(exports, "PLAYBACK_LOOKAHEAD_MS", {
|
|
12779
13028
|
enumerable: true,
|
|
12780
|
-
get: function () { return
|
|
13029
|
+
get: function () { return chunkKHRCABUX_cjs.PLAYBACK_LOOKAHEAD_MS; }
|
|
12781
13030
|
});
|
|
12782
13031
|
Object.defineProperty(exports, "READ_ONLY_MEETING_TEXT", {
|
|
12783
13032
|
enumerable: true,
|
|
12784
|
-
get: function () { return
|
|
13033
|
+
get: function () { return chunkKHRCABUX_cjs.READ_ONLY_MEETING_TEXT; }
|
|
12785
13034
|
});
|
|
12786
13035
|
Object.defineProperty(exports, "RECORDING_CHUNK_MS", {
|
|
12787
13036
|
enumerable: true,
|
|
12788
|
-
get: function () { return
|
|
13037
|
+
get: function () { return chunkKHRCABUX_cjs.RECORDING_CHUNK_MS; }
|
|
12789
13038
|
});
|
|
12790
13039
|
Object.defineProperty(exports, "RECORDING_SEGMENTER", {
|
|
12791
13040
|
enumerable: true,
|
|
12792
|
-
get: function () { return
|
|
13041
|
+
get: function () { return chunkKHRCABUX_cjs.RECORDING_SEGMENTER; }
|
|
12793
13042
|
});
|
|
12794
13043
|
Object.defineProperty(exports, "SEGMENT_FRAME_MS", {
|
|
12795
13044
|
enumerable: true,
|
|
12796
|
-
get: function () { return
|
|
13045
|
+
get: function () { return chunkKHRCABUX_cjs.SEGMENT_FRAME_MS; }
|
|
12797
13046
|
});
|
|
12798
13047
|
Object.defineProperty(exports, "SEGMENT_ID_PATTERN", {
|
|
12799
13048
|
enumerable: true,
|
|
12800
|
-
get: function () { return
|
|
13049
|
+
get: function () { return chunkKHRCABUX_cjs.SEGMENT_ID_PATTERN; }
|
|
12801
13050
|
});
|
|
12802
13051
|
Object.defineProperty(exports, "SEGMENT_PRE_ROLL_MS", {
|
|
12803
13052
|
enumerable: true,
|
|
12804
|
-
get: function () { return
|
|
13053
|
+
get: function () { return chunkKHRCABUX_cjs.SEGMENT_PRE_ROLL_MS; }
|
|
12805
13054
|
});
|
|
12806
13055
|
Object.defineProperty(exports, "SHORT_PIECE_MERGE_GAP_MS", {
|
|
12807
13056
|
enumerable: true,
|
|
12808
|
-
get: function () { return
|
|
13057
|
+
get: function () { return chunkKHRCABUX_cjs.SHORT_PIECE_MERGE_GAP_MS; }
|
|
12809
13058
|
});
|
|
12810
13059
|
Object.defineProperty(exports, "SPEAKER_AUDIO_BITS_PER_SECOND", {
|
|
12811
13060
|
enumerable: true,
|
|
12812
|
-
get: function () { return
|
|
13061
|
+
get: function () { return chunkKHRCABUX_cjs.SPEAKER_AUDIO_BITS_PER_SECOND; }
|
|
12813
13062
|
});
|
|
12814
13063
|
Object.defineProperty(exports, "TrackUploader", {
|
|
12815
13064
|
enumerable: true,
|
|
12816
|
-
get: function () { return
|
|
13065
|
+
get: function () { return chunkKHRCABUX_cjs.TrackUploader; }
|
|
12817
13066
|
});
|
|
12818
13067
|
Object.defineProperty(exports, "UPLOAD_ATTEMPTS", {
|
|
12819
13068
|
enumerable: true,
|
|
12820
|
-
get: function () { return
|
|
13069
|
+
get: function () { return chunkKHRCABUX_cjs.UPLOAD_ATTEMPTS; }
|
|
12821
13070
|
});
|
|
12822
13071
|
Object.defineProperty(exports, "UPLOAD_BACKOFF_MS", {
|
|
12823
13072
|
enumerable: true,
|
|
12824
|
-
get: function () { return
|
|
13073
|
+
get: function () { return chunkKHRCABUX_cjs.UPLOAD_BACKOFF_MS; }
|
|
12825
13074
|
});
|
|
12826
13075
|
Object.defineProperty(exports, "acceptRing", {
|
|
12827
13076
|
enumerable: true,
|
|
12828
|
-
get: function () { return
|
|
13077
|
+
get: function () { return chunkKHRCABUX_cjs.acceptRing; }
|
|
12829
13078
|
});
|
|
12830
13079
|
Object.defineProperty(exports, "addConversationToList", {
|
|
12831
13080
|
enumerable: true,
|
|
12832
|
-
get: function () { return
|
|
13081
|
+
get: function () { return chunkKHRCABUX_cjs.addConversationToList; }
|
|
12833
13082
|
});
|
|
12834
13083
|
Object.defineProperty(exports, "appendToThread", {
|
|
12835
13084
|
enumerable: true,
|
|
12836
|
-
get: function () { return
|
|
13085
|
+
get: function () { return chunkKHRCABUX_cjs.appendToThread; }
|
|
12837
13086
|
});
|
|
12838
13087
|
Object.defineProperty(exports, "applyAgentDmStatus", {
|
|
12839
13088
|
enumerable: true,
|
|
12840
|
-
get: function () { return
|
|
13089
|
+
get: function () { return chunkKHRCABUX_cjs.applyAgentDmStatus; }
|
|
12841
13090
|
});
|
|
12842
13091
|
Object.defineProperty(exports, "applyCallEvent", {
|
|
12843
13092
|
enumerable: true,
|
|
12844
|
-
get: function () { return
|
|
13093
|
+
get: function () { return chunkKHRCABUX_cjs.applyCallEvent; }
|
|
12845
13094
|
});
|
|
12846
13095
|
Object.defineProperty(exports, "applyChatEvent", {
|
|
12847
13096
|
enumerable: true,
|
|
12848
|
-
get: function () { return
|
|
13097
|
+
get: function () { return chunkKHRCABUX_cjs.applyChatEvent; }
|
|
12849
13098
|
});
|
|
12850
13099
|
Object.defineProperty(exports, "applyChatMessage", {
|
|
12851
13100
|
enumerable: true,
|
|
12852
|
-
get: function () { return
|
|
13101
|
+
get: function () { return chunkKHRCABUX_cjs.applyChatMessage; }
|
|
12853
13102
|
});
|
|
12854
13103
|
Object.defineProperty(exports, "applyChatRead", {
|
|
12855
13104
|
enumerable: true,
|
|
12856
|
-
get: function () { return
|
|
13105
|
+
get: function () { return chunkKHRCABUX_cjs.applyChatRead; }
|
|
12857
13106
|
});
|
|
12858
13107
|
Object.defineProperty(exports, "applyChatUpdated", {
|
|
12859
13108
|
enumerable: true,
|
|
12860
|
-
get: function () { return
|
|
13109
|
+
get: function () { return chunkKHRCABUX_cjs.applyChatUpdated; }
|
|
12861
13110
|
});
|
|
12862
13111
|
Object.defineProperty(exports, "arbiAccountClient", {
|
|
12863
13112
|
enumerable: true,
|
|
12864
|
-
get: function () { return
|
|
13113
|
+
get: function () { return chunkKHRCABUX_cjs.arbiAccountClient; }
|
|
12865
13114
|
});
|
|
12866
13115
|
Object.defineProperty(exports, "buildMeetingChatBody", {
|
|
12867
13116
|
enumerable: true,
|
|
12868
|
-
get: function () { return
|
|
13117
|
+
get: function () { return chunkKHRCABUX_cjs.buildMeetingChatBody; }
|
|
12869
13118
|
});
|
|
12870
13119
|
Object.defineProperty(exports, "cachedChat", {
|
|
12871
13120
|
enumerable: true,
|
|
12872
|
-
get: function () { return
|
|
13121
|
+
get: function () { return chunkKHRCABUX_cjs.cachedChat; }
|
|
12873
13122
|
});
|
|
12874
13123
|
Object.defineProperty(exports, "cachedChats", {
|
|
12875
13124
|
enumerable: true,
|
|
12876
|
-
get: function () { return
|
|
13125
|
+
get: function () { return chunkKHRCABUX_cjs.cachedChats; }
|
|
12877
13126
|
});
|
|
12878
13127
|
Object.defineProperty(exports, "callLink", {
|
|
12879
13128
|
enumerable: true,
|
|
12880
|
-
get: function () { return
|
|
13129
|
+
get: function () { return chunkKHRCABUX_cjs.callLink; }
|
|
12881
13130
|
});
|
|
12882
13131
|
Object.defineProperty(exports, "callMemberKeys", {
|
|
12883
13132
|
enumerable: true,
|
|
12884
|
-
get: function () { return
|
|
13133
|
+
get: function () { return chunkKHRCABUX_cjs.callMemberKeys; }
|
|
12885
13134
|
});
|
|
12886
13135
|
Object.defineProperty(exports, "callSession", {
|
|
12887
13136
|
enumerable: true,
|
|
12888
|
-
get: function () { return
|
|
13137
|
+
get: function () { return chunkKHRCABUX_cjs.callSession; }
|
|
12889
13138
|
});
|
|
12890
13139
|
Object.defineProperty(exports, "chatByExtId", {
|
|
12891
13140
|
enumerable: true,
|
|
12892
|
-
get: function () { return
|
|
13141
|
+
get: function () { return chunkKHRCABUX_cjs.chatByExtId; }
|
|
12893
13142
|
});
|
|
12894
13143
|
Object.defineProperty(exports, "chatHasLiveCall", {
|
|
12895
13144
|
enumerable: true,
|
|
12896
|
-
get: function () { return
|
|
13145
|
+
get: function () { return chunkKHRCABUX_cjs.chatHasLiveCall; }
|
|
12897
13146
|
});
|
|
12898
13147
|
Object.defineProperty(exports, "chatLiveCallId", {
|
|
12899
13148
|
enumerable: true,
|
|
12900
|
-
get: function () { return
|
|
13149
|
+
get: function () { return chunkKHRCABUX_cjs.chatLiveCallId; }
|
|
12901
13150
|
});
|
|
12902
13151
|
Object.defineProperty(exports, "chatTranscriptRef", {
|
|
12903
13152
|
enumerable: true,
|
|
12904
|
-
get: function () { return
|
|
13153
|
+
get: function () { return chunkKHRCABUX_cjs.chatTranscriptRef; }
|
|
12905
13154
|
});
|
|
12906
13155
|
Object.defineProperty(exports, "clearMeetingChatCache", {
|
|
12907
13156
|
enumerable: true,
|
|
12908
|
-
get: function () { return
|
|
13157
|
+
get: function () { return chunkKHRCABUX_cjs.clearMeetingChatCache; }
|
|
12909
13158
|
});
|
|
12910
13159
|
Object.defineProperty(exports, "clearTrackUploaders", {
|
|
12911
13160
|
enumerable: true,
|
|
12912
|
-
get: function () { return
|
|
13161
|
+
get: function () { return chunkKHRCABUX_cjs.clearTrackUploaders; }
|
|
12913
13162
|
});
|
|
12914
13163
|
Object.defineProperty(exports, "clockTime", {
|
|
12915
13164
|
enumerable: true,
|
|
12916
|
-
get: function () { return
|
|
13165
|
+
get: function () { return chunkKHRCABUX_cjs.clockTime; }
|
|
12917
13166
|
});
|
|
12918
13167
|
Object.defineProperty(exports, "compositeFiles", {
|
|
12919
13168
|
enumerable: true,
|
|
12920
|
-
get: function () { return
|
|
13169
|
+
get: function () { return chunkKHRCABUX_cjs.compositeFiles; }
|
|
12921
13170
|
});
|
|
12922
13171
|
Object.defineProperty(exports, "compositeTrack", {
|
|
12923
13172
|
enumerable: true,
|
|
12924
|
-
get: function () { return
|
|
13173
|
+
get: function () { return chunkKHRCABUX_cjs.compositeTrack; }
|
|
12925
13174
|
});
|
|
12926
13175
|
Object.defineProperty(exports, "conversationKeyForCall", {
|
|
12927
13176
|
enumerable: true,
|
|
12928
|
-
get: function () { return
|
|
13177
|
+
get: function () { return chunkKHRCABUX_cjs.conversationKeyForCall; }
|
|
12929
13178
|
});
|
|
12930
13179
|
Object.defineProperty(exports, "createMutedNotifier", {
|
|
12931
13180
|
enumerable: true,
|
|
12932
|
-
get: function () { return
|
|
13181
|
+
get: function () { return chunkKHRCABUX_cjs.createMutedNotifier; }
|
|
12933
13182
|
});
|
|
12934
13183
|
Object.defineProperty(exports, "createTrackCutter", {
|
|
12935
13184
|
enumerable: true,
|
|
12936
|
-
get: function () { return
|
|
13185
|
+
get: function () { return chunkKHRCABUX_cjs.createTrackCutter; }
|
|
12937
13186
|
});
|
|
12938
13187
|
Object.defineProperty(exports, "cutAtPauses", {
|
|
12939
13188
|
enumerable: true,
|
|
12940
|
-
get: function () { return
|
|
13189
|
+
get: function () { return chunkKHRCABUX_cjs.cutAtPauses; }
|
|
12941
13190
|
});
|
|
12942
13191
|
Object.defineProperty(exports, "declineRing", {
|
|
12943
13192
|
enumerable: true,
|
|
12944
|
-
get: function () { return
|
|
13193
|
+
get: function () { return chunkKHRCABUX_cjs.declineRing; }
|
|
12945
13194
|
});
|
|
12946
13195
|
Object.defineProperty(exports, "decodeCallChatPacket", {
|
|
12947
13196
|
enumerable: true,
|
|
12948
|
-
get: function () { return
|
|
13197
|
+
get: function () { return chunkKHRCABUX_cjs.decodeCallChatPacket; }
|
|
12949
13198
|
});
|
|
12950
13199
|
Object.defineProperty(exports, "decodeCaptionPacket", {
|
|
12951
13200
|
enumerable: true,
|
|
12952
|
-
get: function () { return
|
|
13201
|
+
get: function () { return chunkKHRCABUX_cjs.decodeCaptionPacket; }
|
|
12953
13202
|
});
|
|
12954
13203
|
Object.defineProperty(exports, "decodeMono16k", {
|
|
12955
13204
|
enumerable: true,
|
|
12956
|
-
get: function () { return
|
|
13205
|
+
get: function () { return chunkKHRCABUX_cjs.decodeMono16k; }
|
|
12957
13206
|
});
|
|
12958
13207
|
Object.defineProperty(exports, "decryptPart", {
|
|
12959
13208
|
enumerable: true,
|
|
12960
|
-
get: function () { return
|
|
13209
|
+
get: function () { return chunkKHRCABUX_cjs.decryptPart; }
|
|
12961
13210
|
});
|
|
12962
13211
|
Object.defineProperty(exports, "encodeCallChatPacket", {
|
|
12963
13212
|
enumerable: true,
|
|
12964
|
-
get: function () { return
|
|
13213
|
+
get: function () { return chunkKHRCABUX_cjs.encodeCallChatPacket; }
|
|
12965
13214
|
});
|
|
12966
13215
|
Object.defineProperty(exports, "encodeCaptionPacket", {
|
|
12967
13216
|
enumerable: true,
|
|
12968
|
-
get: function () { return
|
|
13217
|
+
get: function () { return chunkKHRCABUX_cjs.encodeCaptionPacket; }
|
|
12969
13218
|
});
|
|
12970
13219
|
Object.defineProperty(exports, "encodeWav", {
|
|
12971
13220
|
enumerable: true,
|
|
12972
|
-
get: function () { return
|
|
13221
|
+
get: function () { return chunkKHRCABUX_cjs.encodeWav; }
|
|
12973
13222
|
});
|
|
12974
13223
|
Object.defineProperty(exports, "encryptPart", {
|
|
12975
13224
|
enumerable: true,
|
|
12976
|
-
get: function () { return
|
|
13225
|
+
get: function () { return chunkKHRCABUX_cjs.encryptPart; }
|
|
12977
13226
|
});
|
|
12978
13227
|
Object.defineProperty(exports, "ensureMeetingChat", {
|
|
12979
13228
|
enumerable: true,
|
|
12980
|
-
get: function () { return
|
|
13229
|
+
get: function () { return chunkKHRCABUX_cjs.ensureMeetingChat; }
|
|
12981
13230
|
});
|
|
12982
13231
|
Object.defineProperty(exports, "entitlementRefusal", {
|
|
12983
13232
|
enumerable: true,
|
|
12984
|
-
get: function () { return
|
|
13233
|
+
get: function () { return chunkKHRCABUX_cjs.entitlementRefusal; }
|
|
12985
13234
|
});
|
|
12986
13235
|
Object.defineProperty(exports, "extensionFor", {
|
|
12987
13236
|
enumerable: true,
|
|
12988
|
-
get: function () { return
|
|
13237
|
+
get: function () { return chunkKHRCABUX_cjs.extensionFor; }
|
|
12989
13238
|
});
|
|
12990
13239
|
Object.defineProperty(exports, "fetchPart", {
|
|
12991
13240
|
enumerable: true,
|
|
12992
|
-
get: function () { return
|
|
13241
|
+
get: function () { return chunkKHRCABUX_cjs.fetchPart; }
|
|
12993
13242
|
});
|
|
12994
13243
|
Object.defineProperty(exports, "fileSafe", {
|
|
12995
13244
|
enumerable: true,
|
|
12996
|
-
get: function () { return
|
|
13245
|
+
get: function () { return chunkKHRCABUX_cjs.fileSafe; }
|
|
12997
13246
|
});
|
|
12998
13247
|
Object.defineProperty(exports, "findConversation", {
|
|
12999
13248
|
enumerable: true,
|
|
13000
|
-
get: function () { return
|
|
13249
|
+
get: function () { return chunkKHRCABUX_cjs.findConversation; }
|
|
13001
13250
|
});
|
|
13002
13251
|
Object.defineProperty(exports, "floatToWav", {
|
|
13003
13252
|
enumerable: true,
|
|
13004
|
-
get: function () { return
|
|
13253
|
+
get: function () { return chunkKHRCABUX_cjs.floatToWav; }
|
|
13005
13254
|
});
|
|
13006
13255
|
Object.defineProperty(exports, "formatTranscriptMarkdown", {
|
|
13007
13256
|
enumerable: true,
|
|
13008
|
-
get: function () { return
|
|
13257
|
+
get: function () { return chunkKHRCABUX_cjs.formatTranscriptMarkdown; }
|
|
13009
13258
|
});
|
|
13010
13259
|
Object.defineProperty(exports, "getOpenChat", {
|
|
13011
13260
|
enumerable: true,
|
|
13012
|
-
get: function () { return
|
|
13261
|
+
get: function () { return chunkKHRCABUX_cjs.getOpenChat; }
|
|
13013
13262
|
});
|
|
13014
13263
|
Object.defineProperty(exports, "hasRecordingTranscript", {
|
|
13015
13264
|
enumerable: true,
|
|
13016
|
-
get: function () { return
|
|
13265
|
+
get: function () { return chunkKHRCABUX_cjs.hasRecordingTranscript; }
|
|
13017
13266
|
});
|
|
13018
13267
|
Object.defineProperty(exports, "invalidateCall", {
|
|
13019
13268
|
enumerable: true,
|
|
13020
|
-
get: function () { return
|
|
13269
|
+
get: function () { return chunkKHRCABUX_cjs.invalidateCall; }
|
|
13021
13270
|
});
|
|
13022
13271
|
Object.defineProperty(exports, "invalidateConversationDetails", {
|
|
13023
13272
|
enumerable: true,
|
|
13024
|
-
get: function () { return
|
|
13273
|
+
get: function () { return chunkKHRCABUX_cjs.invalidateConversationDetails; }
|
|
13025
13274
|
});
|
|
13026
13275
|
Object.defineProperty(exports, "invalidateConversationLists", {
|
|
13027
13276
|
enumerable: true,
|
|
13028
|
-
get: function () { return
|
|
13277
|
+
get: function () { return chunkKHRCABUX_cjs.invalidateConversationLists; }
|
|
13029
13278
|
});
|
|
13030
13279
|
Object.defineProperty(exports, "isConversationListKey", {
|
|
13031
13280
|
enumerable: true,
|
|
13032
|
-
get: function () { return
|
|
13281
|
+
get: function () { return chunkKHRCABUX_cjs.isConversationListKey; }
|
|
13033
13282
|
});
|
|
13034
13283
|
Object.defineProperty(exports, "isConversationShared", {
|
|
13035
13284
|
enumerable: true,
|
|
13036
|
-
get: function () { return
|
|
13285
|
+
get: function () { return chunkKHRCABUX_cjs.isConversationShared; }
|
|
13037
13286
|
});
|
|
13038
13287
|
Object.defineProperty(exports, "isKnownSoloConversation", {
|
|
13039
13288
|
enumerable: true,
|
|
13040
|
-
get: function () { return
|
|
13289
|
+
get: function () { return chunkKHRCABUX_cjs.isKnownSoloConversation; }
|
|
13041
13290
|
});
|
|
13042
13291
|
Object.defineProperty(exports, "isRecordingOver", {
|
|
13043
13292
|
enumerable: true,
|
|
13044
|
-
get: function () { return
|
|
13293
|
+
get: function () { return chunkKHRCABUX_cjs.isRecordingOver; }
|
|
13045
13294
|
});
|
|
13046
13295
|
Object.defineProperty(exports, "isRecordingSegmentId", {
|
|
13047
13296
|
enumerable: true,
|
|
13048
|
-
get: function () { return
|
|
13297
|
+
get: function () { return chunkKHRCABUX_cjs.isRecordingSegmentId; }
|
|
13049
13298
|
});
|
|
13050
13299
|
Object.defineProperty(exports, "isRetryable", {
|
|
13051
13300
|
enumerable: true,
|
|
13052
|
-
get: function () { return
|
|
13301
|
+
get: function () { return chunkKHRCABUX_cjs.isRetryable; }
|
|
13053
13302
|
});
|
|
13054
13303
|
Object.defineProperty(exports, "isWorkspaceGuestOf", {
|
|
13055
13304
|
enumerable: true,
|
|
13056
|
-
get: function () { return
|
|
13305
|
+
get: function () { return chunkKHRCABUX_cjs.isWorkspaceGuestOf; }
|
|
13057
13306
|
});
|
|
13058
13307
|
Object.defineProperty(exports, "joinFromPreJoin", {
|
|
13059
13308
|
enumerable: true,
|
|
13060
|
-
get: function () { return
|
|
13309
|
+
get: function () { return chunkKHRCABUX_cjs.joinFromPreJoin; }
|
|
13061
13310
|
});
|
|
13062
13311
|
Object.defineProperty(exports, "knownMeetingChat", {
|
|
13063
13312
|
enumerable: true,
|
|
13064
|
-
get: function () { return
|
|
13313
|
+
get: function () { return chunkKHRCABUX_cjs.knownMeetingChat; }
|
|
13065
13314
|
});
|
|
13066
13315
|
Object.defineProperty(exports, "loadMeetingHistory", {
|
|
13067
13316
|
enumerable: true,
|
|
13068
|
-
get: function () { return
|
|
13317
|
+
get: function () { return chunkKHRCABUX_cjs.loadMeetingHistory; }
|
|
13069
13318
|
});
|
|
13070
13319
|
Object.defineProperty(exports, "markRejoining", {
|
|
13071
13320
|
enumerable: true,
|
|
13072
|
-
get: function () { return
|
|
13321
|
+
get: function () { return chunkKHRCABUX_cjs.markRejoining; }
|
|
13073
13322
|
});
|
|
13074
13323
|
Object.defineProperty(exports, "meetingChatRefFrom", {
|
|
13075
13324
|
enumerable: true,
|
|
13076
|
-
get: function () { return
|
|
13325
|
+
get: function () { return chunkKHRCABUX_cjs.meetingChatRefFrom; }
|
|
13077
13326
|
});
|
|
13078
13327
|
Object.defineProperty(exports, "meetingRefForCall", {
|
|
13079
13328
|
enumerable: true,
|
|
13080
|
-
get: function () { return
|
|
13329
|
+
get: function () { return chunkKHRCABUX_cjs.meetingRefForCall; }
|
|
13081
13330
|
});
|
|
13082
13331
|
Object.defineProperty(exports, "mergeChatLines", {
|
|
13083
13332
|
enumerable: true,
|
|
13084
|
-
get: function () { return
|
|
13333
|
+
get: function () { return chunkKHRCABUX_cjs.mergeChatLines; }
|
|
13085
13334
|
});
|
|
13086
13335
|
Object.defineProperty(exports, "mutedNoticeFromEvent", {
|
|
13087
13336
|
enumerable: true,
|
|
13088
|
-
get: function () { return
|
|
13337
|
+
get: function () { return chunkKHRCABUX_cjs.mutedNoticeFromEvent; }
|
|
13089
13338
|
});
|
|
13090
13339
|
Object.defineProperty(exports, "mutedNoticeFromPacket", {
|
|
13091
13340
|
enumerable: true,
|
|
13092
|
-
get: function () { return
|
|
13341
|
+
get: function () { return chunkKHRCABUX_cjs.mutedNoticeFromPacket; }
|
|
13093
13342
|
});
|
|
13094
13343
|
Object.defineProperty(exports, "mutedNoticeText", {
|
|
13095
13344
|
enumerable: true,
|
|
13096
|
-
get: function () { return
|
|
13345
|
+
get: function () { return chunkKHRCABUX_cjs.mutedNoticeText; }
|
|
13097
13346
|
});
|
|
13098
13347
|
Object.defineProperty(exports, "myChatId", {
|
|
13099
13348
|
enumerable: true,
|
|
13100
|
-
get: function () { return
|
|
13349
|
+
get: function () { return chunkKHRCABUX_cjs.myChatId; }
|
|
13101
13350
|
});
|
|
13102
13351
|
Object.defineProperty(exports, "newPacketId", {
|
|
13103
13352
|
enumerable: true,
|
|
13104
|
-
get: function () { return
|
|
13353
|
+
get: function () { return chunkKHRCABUX_cjs.newPacketId; }
|
|
13105
13354
|
});
|
|
13106
13355
|
Object.defineProperty(exports, "newSegmentId", {
|
|
13107
13356
|
enumerable: true,
|
|
13108
|
-
get: function () { return
|
|
13357
|
+
get: function () { return chunkKHRCABUX_cjs.newSegmentId; }
|
|
13109
13358
|
});
|
|
13110
13359
|
Object.defineProperty(exports, "newTrackKey", {
|
|
13111
13360
|
enumerable: true,
|
|
13112
|
-
get: function () { return
|
|
13361
|
+
get: function () { return chunkKHRCABUX_cjs.newTrackKey; }
|
|
13113
13362
|
});
|
|
13114
13363
|
Object.defineProperty(exports, "nextSeqAfter", {
|
|
13115
13364
|
enumerable: true,
|
|
13116
|
-
get: function () { return
|
|
13365
|
+
get: function () { return chunkKHRCABUX_cjs.nextSeqAfter; }
|
|
13117
13366
|
});
|
|
13118
13367
|
Object.defineProperty(exports, "onCallEvent", {
|
|
13119
13368
|
enumerable: true,
|
|
13120
|
-
get: function () { return
|
|
13369
|
+
get: function () { return chunkKHRCABUX_cjs.onCallEvent; }
|
|
13121
13370
|
});
|
|
13122
13371
|
Object.defineProperty(exports, "openCall", {
|
|
13123
13372
|
enumerable: true,
|
|
13124
|
-
get: function () { return
|
|
13373
|
+
get: function () { return chunkKHRCABUX_cjs.openCall; }
|
|
13125
13374
|
});
|
|
13126
13375
|
Object.defineProperty(exports, "openQuestion", {
|
|
13127
13376
|
enumerable: true,
|
|
13128
|
-
get: function () { return
|
|
13377
|
+
get: function () { return chunkKHRCABUX_cjs.openQuestion; }
|
|
13129
13378
|
});
|
|
13130
13379
|
Object.defineProperty(exports, "openRecording", {
|
|
13131
13380
|
enumerable: true,
|
|
13132
|
-
get: function () { return
|
|
13381
|
+
get: function () { return chunkKHRCABUX_cjs.openRecording; }
|
|
13133
13382
|
});
|
|
13134
13383
|
Object.defineProperty(exports, "parseWebinarPacket", {
|
|
13135
13384
|
enumerable: true,
|
|
13136
|
-
get: function () { return
|
|
13385
|
+
get: function () { return chunkKHRCABUX_cjs.parseWebinarPacket; }
|
|
13137
13386
|
});
|
|
13138
13387
|
Object.defineProperty(exports, "partKey", {
|
|
13139
13388
|
enumerable: true,
|
|
13140
|
-
get: function () { return
|
|
13389
|
+
get: function () { return chunkKHRCABUX_cjs.partKey; }
|
|
13141
13390
|
});
|
|
13142
13391
|
Object.defineProperty(exports, "partOffsetMs", {
|
|
13143
13392
|
enumerable: true,
|
|
13144
|
-
get: function () { return
|
|
13393
|
+
get: function () { return chunkKHRCABUX_cjs.partOffsetMs; }
|
|
13145
13394
|
});
|
|
13146
13395
|
Object.defineProperty(exports, "partsDue", {
|
|
13147
13396
|
enumerable: true,
|
|
13148
|
-
get: function () { return
|
|
13397
|
+
get: function () { return chunkKHRCABUX_cjs.partsDue; }
|
|
13149
13398
|
});
|
|
13150
13399
|
Object.defineProperty(exports, "patchConversation", {
|
|
13151
13400
|
enumerable: true,
|
|
13152
|
-
get: function () { return
|
|
13401
|
+
get: function () { return chunkKHRCABUX_cjs.patchConversation; }
|
|
13153
13402
|
});
|
|
13154
13403
|
Object.defineProperty(exports, "patchConversationList", {
|
|
13155
13404
|
enumerable: true,
|
|
13156
|
-
get: function () { return
|
|
13405
|
+
get: function () { return chunkKHRCABUX_cjs.patchConversationList; }
|
|
13157
13406
|
});
|
|
13158
13407
|
Object.defineProperty(exports, "persistMeetingMessage", {
|
|
13159
13408
|
enumerable: true,
|
|
13160
|
-
get: function () { return
|
|
13409
|
+
get: function () { return chunkKHRCABUX_cjs.persistMeetingMessage; }
|
|
13161
13410
|
});
|
|
13162
13411
|
Object.defineProperty(exports, "persistTranscriptSegment", {
|
|
13163
13412
|
enumerable: true,
|
|
13164
|
-
get: function () { return
|
|
13413
|
+
get: function () { return chunkKHRCABUX_cjs.persistTranscriptSegment; }
|
|
13165
13414
|
});
|
|
13166
13415
|
Object.defineProperty(exports, "playheadAt", {
|
|
13167
13416
|
enumerable: true,
|
|
13168
|
-
get: function () { return
|
|
13417
|
+
get: function () { return chunkKHRCABUX_cjs.playheadAt; }
|
|
13169
13418
|
});
|
|
13170
13419
|
Object.defineProperty(exports, "postRecordingDocsToThread", {
|
|
13171
13420
|
enumerable: true,
|
|
13172
|
-
get: function () { return
|
|
13421
|
+
get: function () { return chunkKHRCABUX_cjs.postRecordingDocsToThread; }
|
|
13173
13422
|
});
|
|
13174
13423
|
Object.defineProperty(exports, "postTranscriptToThread", {
|
|
13175
13424
|
enumerable: true,
|
|
13176
|
-
get: function () { return
|
|
13425
|
+
get: function () { return chunkKHRCABUX_cjs.postTranscriptToThread; }
|
|
13177
13426
|
});
|
|
13178
13427
|
Object.defineProperty(exports, "recordingFiles", {
|
|
13179
13428
|
enumerable: true,
|
|
13180
|
-
get: function () { return
|
|
13429
|
+
get: function () { return chunkKHRCABUX_cjs.recordingFiles; }
|
|
13181
13430
|
});
|
|
13182
13431
|
Object.defineProperty(exports, "recordingWindowsOf", {
|
|
13183
13432
|
enumerable: true,
|
|
13184
|
-
get: function () { return
|
|
13433
|
+
get: function () { return chunkKHRCABUX_cjs.recordingWindowsOf; }
|
|
13185
13434
|
});
|
|
13186
13435
|
Object.defineProperty(exports, "rejoinAsAudience", {
|
|
13187
13436
|
enumerable: true,
|
|
13188
|
-
get: function () { return
|
|
13437
|
+
get: function () { return chunkKHRCABUX_cjs.rejoinAsAudience; }
|
|
13189
13438
|
});
|
|
13190
13439
|
Object.defineProperty(exports, "removeChat", {
|
|
13191
13440
|
enumerable: true,
|
|
13192
|
-
get: function () { return
|
|
13441
|
+
get: function () { return chunkKHRCABUX_cjs.removeChat; }
|
|
13193
13442
|
});
|
|
13194
13443
|
Object.defineProperty(exports, "removeConversationFromLists", {
|
|
13195
13444
|
enumerable: true,
|
|
13196
|
-
get: function () { return
|
|
13445
|
+
get: function () { return chunkKHRCABUX_cjs.removeConversationFromLists; }
|
|
13197
13446
|
});
|
|
13198
13447
|
Object.defineProperty(exports, "resetCallSession", {
|
|
13199
13448
|
enumerable: true,
|
|
13200
|
-
get: function () { return
|
|
13449
|
+
get: function () { return chunkKHRCABUX_cjs.resetCallSession; }
|
|
13201
13450
|
});
|
|
13202
13451
|
Object.defineProperty(exports, "resolveMeetingChat", {
|
|
13203
13452
|
enumerable: true,
|
|
13204
|
-
get: function () { return
|
|
13453
|
+
get: function () { return chunkKHRCABUX_cjs.resolveMeetingChat; }
|
|
13205
13454
|
});
|
|
13206
13455
|
Object.defineProperty(exports, "saveRecordingFilesToThread", {
|
|
13207
13456
|
enumerable: true,
|
|
13208
|
-
get: function () { return
|
|
13457
|
+
get: function () { return chunkKHRCABUX_cjs.saveRecordingFilesToThread; }
|
|
13209
13458
|
});
|
|
13210
13459
|
Object.defineProperty(exports, "schedulePart", {
|
|
13211
13460
|
enumerable: true,
|
|
13212
|
-
get: function () { return
|
|
13461
|
+
get: function () { return chunkKHRCABUX_cjs.schedulePart; }
|
|
13213
13462
|
});
|
|
13214
13463
|
Object.defineProperty(exports, "sealQuestionText", {
|
|
13215
13464
|
enumerable: true,
|
|
13216
|
-
get: function () { return
|
|
13465
|
+
get: function () { return chunkKHRCABUX_cjs.sealQuestionText; }
|
|
13217
13466
|
});
|
|
13218
13467
|
Object.defineProperty(exports, "serverCallsExperimental", {
|
|
13219
13468
|
enumerable: true,
|
|
13220
|
-
get: function () { return
|
|
13469
|
+
get: function () { return chunkKHRCABUX_cjs.serverCallsExperimental; }
|
|
13221
13470
|
});
|
|
13222
13471
|
Object.defineProperty(exports, "setOpenChat", {
|
|
13223
13472
|
enumerable: true,
|
|
13224
|
-
get: function () { return
|
|
13473
|
+
get: function () { return chunkKHRCABUX_cjs.setOpenChat; }
|
|
13225
13474
|
});
|
|
13226
13475
|
Object.defineProperty(exports, "sortTranscriptMessages", {
|
|
13227
13476
|
enumerable: true,
|
|
13228
|
-
get: function () { return
|
|
13477
|
+
get: function () { return chunkKHRCABUX_cjs.sortTranscriptMessages; }
|
|
13229
13478
|
});
|
|
13230
13479
|
Object.defineProperty(exports, "sortedParts", {
|
|
13231
13480
|
enumerable: true,
|
|
13232
|
-
get: function () { return
|
|
13481
|
+
get: function () { return chunkKHRCABUX_cjs.sortedParts; }
|
|
13233
13482
|
});
|
|
13234
13483
|
Object.defineProperty(exports, "speakerTracks", {
|
|
13235
13484
|
enumerable: true,
|
|
13236
|
-
get: function () { return
|
|
13485
|
+
get: function () { return chunkKHRCABUX_cjs.speakerTracks; }
|
|
13237
13486
|
});
|
|
13238
13487
|
Object.defineProperty(exports, "speakerWav", {
|
|
13239
13488
|
enumerable: true,
|
|
13240
|
-
get: function () { return
|
|
13489
|
+
get: function () { return chunkKHRCABUX_cjs.speakerWav; }
|
|
13241
13490
|
});
|
|
13242
13491
|
Object.defineProperty(exports, "splitIntoFiles", {
|
|
13243
13492
|
enumerable: true,
|
|
13244
|
-
get: function () { return
|
|
13493
|
+
get: function () { return chunkKHRCABUX_cjs.splitIntoFiles; }
|
|
13245
13494
|
});
|
|
13246
13495
|
Object.defineProperty(exports, "standalone", {
|
|
13247
13496
|
enumerable: true,
|
|
13248
|
-
get: function () { return
|
|
13497
|
+
get: function () { return chunkKHRCABUX_cjs.standalone; }
|
|
13249
13498
|
});
|
|
13250
13499
|
Object.defineProperty(exports, "startChatCall", {
|
|
13251
13500
|
enumerable: true,
|
|
13252
|
-
get: function () { return
|
|
13501
|
+
get: function () { return chunkKHRCABUX_cjs.startChatCall; }
|
|
13253
13502
|
});
|
|
13254
13503
|
Object.defineProperty(exports, "startContactsCall", {
|
|
13255
13504
|
enumerable: true,
|
|
13256
|
-
get: function () { return
|
|
13505
|
+
get: function () { return chunkKHRCABUX_cjs.startContactsCall; }
|
|
13257
13506
|
});
|
|
13258
13507
|
Object.defineProperty(exports, "startDmCall", {
|
|
13259
13508
|
enumerable: true,
|
|
13260
|
-
get: function () { return
|
|
13509
|
+
get: function () { return chunkKHRCABUX_cjs.startDmCall; }
|
|
13261
13510
|
});
|
|
13262
13511
|
Object.defineProperty(exports, "startThreadCall", {
|
|
13263
13512
|
enumerable: true,
|
|
13264
|
-
get: function () { return
|
|
13513
|
+
get: function () { return chunkKHRCABUX_cjs.startThreadCall; }
|
|
13265
13514
|
});
|
|
13266
13515
|
Object.defineProperty(exports, "startsMediaFile", {
|
|
13267
13516
|
enumerable: true,
|
|
13268
|
-
get: function () { return
|
|
13517
|
+
get: function () { return chunkKHRCABUX_cjs.startsMediaFile; }
|
|
13269
13518
|
});
|
|
13270
13519
|
Object.defineProperty(exports, "storeTranscriptSegment", {
|
|
13271
13520
|
enumerable: true,
|
|
13272
|
-
get: function () { return
|
|
13521
|
+
get: function () { return chunkKHRCABUX_cjs.storeTranscriptSegment; }
|
|
13273
13522
|
});
|
|
13274
13523
|
Object.defineProperty(exports, "stripSpeakerPrefix", {
|
|
13275
13524
|
enumerable: true,
|
|
13276
|
-
get: function () { return
|
|
13525
|
+
get: function () { return chunkKHRCABUX_cjs.stripSpeakerPrefix; }
|
|
13277
13526
|
});
|
|
13278
13527
|
Object.defineProperty(exports, "supersedeLiveTranscript", {
|
|
13279
13528
|
enumerable: true,
|
|
13280
|
-
get: function () { return
|
|
13529
|
+
get: function () { return chunkKHRCABUX_cjs.supersedeLiveTranscript; }
|
|
13281
13530
|
});
|
|
13282
13531
|
Object.defineProperty(exports, "supersededTranscriptLines", {
|
|
13283
13532
|
enumerable: true,
|
|
13284
|
-
get: function () { return
|
|
13533
|
+
get: function () { return chunkKHRCABUX_cjs.supersededTranscriptLines; }
|
|
13285
13534
|
});
|
|
13286
13535
|
Object.defineProperty(exports, "threadHasLiveCall", {
|
|
13287
13536
|
enumerable: true,
|
|
13288
|
-
get: function () { return
|
|
13537
|
+
get: function () { return chunkKHRCABUX_cjs.threadHasLiveCall; }
|
|
13289
13538
|
});
|
|
13290
13539
|
Object.defineProperty(exports, "threadLiveCallId", {
|
|
13291
13540
|
enumerable: true,
|
|
13292
|
-
get: function () { return
|
|
13541
|
+
get: function () { return chunkKHRCABUX_cjs.threadLiveCallId; }
|
|
13293
13542
|
});
|
|
13294
13543
|
Object.defineProperty(exports, "threadTranscriptLines", {
|
|
13295
13544
|
enumerable: true,
|
|
13296
|
-
get: function () { return
|
|
13545
|
+
get: function () { return chunkKHRCABUX_cjs.threadTranscriptLines; }
|
|
13297
13546
|
});
|
|
13298
13547
|
Object.defineProperty(exports, "threadTranscriptRef", {
|
|
13299
13548
|
enumerable: true,
|
|
13300
|
-
get: function () { return
|
|
13549
|
+
get: function () { return chunkKHRCABUX_cjs.threadTranscriptRef; }
|
|
13301
13550
|
});
|
|
13302
13551
|
Object.defineProperty(exports, "threadTranscriptText", {
|
|
13303
13552
|
enumerable: true,
|
|
13304
|
-
get: function () { return
|
|
13553
|
+
get: function () { return chunkKHRCABUX_cjs.threadTranscriptText; }
|
|
13305
13554
|
});
|
|
13306
13555
|
Object.defineProperty(exports, "timelineDurationMs", {
|
|
13307
13556
|
enumerable: true,
|
|
13308
|
-
get: function () { return
|
|
13557
|
+
get: function () { return chunkKHRCABUX_cjs.timelineDurationMs; }
|
|
13309
13558
|
});
|
|
13310
13559
|
Object.defineProperty(exports, "timelineOf", {
|
|
13311
13560
|
enumerable: true,
|
|
13312
|
-
get: function () { return
|
|
13561
|
+
get: function () { return chunkKHRCABUX_cjs.timelineOf; }
|
|
13313
13562
|
});
|
|
13314
13563
|
Object.defineProperty(exports, "toProfileView", {
|
|
13315
13564
|
enumerable: true,
|
|
13316
|
-
get: function () { return
|
|
13565
|
+
get: function () { return chunkKHRCABUX_cjs.toProfileView; }
|
|
13317
13566
|
});
|
|
13318
13567
|
Object.defineProperty(exports, "trackUploaderFor", {
|
|
13319
13568
|
enumerable: true,
|
|
13320
|
-
get: function () { return
|
|
13569
|
+
get: function () { return chunkKHRCABUX_cjs.trackUploaderFor; }
|
|
13321
13570
|
});
|
|
13322
13571
|
Object.defineProperty(exports, "transcribeRecording", {
|
|
13323
13572
|
enumerable: true,
|
|
13324
|
-
get: function () { return
|
|
13573
|
+
get: function () { return chunkKHRCABUX_cjs.transcribeRecording; }
|
|
13325
13574
|
});
|
|
13326
13575
|
Object.defineProperty(exports, "transcriptPersistRole", {
|
|
13327
13576
|
enumerable: true,
|
|
13328
|
-
get: function () { return
|
|
13577
|
+
get: function () { return chunkKHRCABUX_cjs.transcriptPersistRole; }
|
|
13329
13578
|
});
|
|
13330
13579
|
Object.defineProperty(exports, "transcriptSegmentOf", {
|
|
13331
13580
|
enumerable: true,
|
|
13332
|
-
get: function () { return
|
|
13581
|
+
get: function () { return chunkKHRCABUX_cjs.transcriptSegmentOf; }
|
|
13333
13582
|
});
|
|
13334
13583
|
Object.defineProperty(exports, "unwrapTrackKey", {
|
|
13335
13584
|
enumerable: true,
|
|
13336
|
-
get: function () { return
|
|
13585
|
+
get: function () { return chunkKHRCABUX_cjs.unwrapTrackKey; }
|
|
13337
13586
|
});
|
|
13338
13587
|
Object.defineProperty(exports, "upsertChat", {
|
|
13339
13588
|
enumerable: true,
|
|
13340
|
-
get: function () { return
|
|
13589
|
+
get: function () { return chunkKHRCABUX_cjs.upsertChat; }
|
|
13341
13590
|
});
|
|
13342
13591
|
Object.defineProperty(exports, "useAccountClient", {
|
|
13343
13592
|
enumerable: true,
|
|
13344
|
-
get: function () { return
|
|
13593
|
+
get: function () { return chunkKHRCABUX_cjs.useAccountClient; }
|
|
13345
13594
|
});
|
|
13346
13595
|
Object.defineProperty(exports, "useAvatarCrop", {
|
|
13347
13596
|
enumerable: true,
|
|
13348
|
-
get: function () { return
|
|
13597
|
+
get: function () { return chunkKHRCABUX_cjs.useAvatarCrop; }
|
|
13349
13598
|
});
|
|
13350
13599
|
Object.defineProperty(exports, "useCall", {
|
|
13351
13600
|
enumerable: true,
|
|
13352
|
-
get: function () { return
|
|
13601
|
+
get: function () { return chunkKHRCABUX_cjs.useCall; }
|
|
13353
13602
|
});
|
|
13354
13603
|
Object.defineProperty(exports, "useCallInviteLinks", {
|
|
13355
13604
|
enumerable: true,
|
|
13356
|
-
get: function () { return
|
|
13605
|
+
get: function () { return chunkKHRCABUX_cjs.useCallInviteLinks; }
|
|
13357
13606
|
});
|
|
13358
13607
|
Object.defineProperty(exports, "useCallRecording", {
|
|
13359
13608
|
enumerable: true,
|
|
13360
|
-
get: function () { return
|
|
13609
|
+
get: function () { return chunkKHRCABUX_cjs.useCallRecording; }
|
|
13361
13610
|
});
|
|
13362
13611
|
Object.defineProperty(exports, "useCallRecordings", {
|
|
13363
13612
|
enumerable: true,
|
|
13364
|
-
get: function () { return
|
|
13613
|
+
get: function () { return chunkKHRCABUX_cjs.useCallRecordings; }
|
|
13365
13614
|
});
|
|
13366
13615
|
Object.defineProperty(exports, "useCallSession", {
|
|
13367
13616
|
enumerable: true,
|
|
13368
|
-
get: function () { return
|
|
13617
|
+
get: function () { return chunkKHRCABUX_cjs.useCallSession; }
|
|
13369
13618
|
});
|
|
13370
13619
|
Object.defineProperty(exports, "useCallTranscriptionAvailable", {
|
|
13371
13620
|
enumerable: true,
|
|
13372
|
-
get: function () { return
|
|
13621
|
+
get: function () { return chunkKHRCABUX_cjs.useCallTranscriptionAvailable; }
|
|
13373
13622
|
});
|
|
13374
13623
|
Object.defineProperty(exports, "useCallsConfig", {
|
|
13375
13624
|
enumerable: true,
|
|
13376
|
-
get: function () { return
|
|
13625
|
+
get: function () { return chunkKHRCABUX_cjs.useCallsConfig; }
|
|
13377
13626
|
});
|
|
13378
13627
|
Object.defineProperty(exports, "useCallsEnabled", {
|
|
13379
13628
|
enumerable: true,
|
|
13380
|
-
get: function () { return
|
|
13629
|
+
get: function () { return chunkKHRCABUX_cjs.useCallsEnabled; }
|
|
13381
13630
|
});
|
|
13382
13631
|
Object.defineProperty(exports, "useCanHostCalls", {
|
|
13383
13632
|
enumerable: true,
|
|
13384
|
-
get: function () { return
|
|
13633
|
+
get: function () { return chunkKHRCABUX_cjs.useCanHostCalls; }
|
|
13385
13634
|
});
|
|
13386
13635
|
Object.defineProperty(exports, "useEntitlements", {
|
|
13387
13636
|
enumerable: true,
|
|
13388
|
-
get: function () { return
|
|
13637
|
+
get: function () { return chunkKHRCABUX_cjs.useEntitlements; }
|
|
13389
13638
|
});
|
|
13390
13639
|
Object.defineProperty(exports, "useIsEntitled", {
|
|
13391
13640
|
enumerable: true,
|
|
13392
|
-
get: function () { return
|
|
13641
|
+
get: function () { return chunkKHRCABUX_cjs.useIsEntitled; }
|
|
13393
13642
|
});
|
|
13394
13643
|
Object.defineProperty(exports, "useMeetingReadOnly", {
|
|
13395
13644
|
enumerable: true,
|
|
13396
|
-
get: function () { return
|
|
13645
|
+
get: function () { return chunkKHRCABUX_cjs.useMeetingReadOnly; }
|
|
13397
13646
|
});
|
|
13398
13647
|
Object.defineProperty(exports, "useNameEditor", {
|
|
13399
13648
|
enumerable: true,
|
|
13400
|
-
get: function () { return
|
|
13649
|
+
get: function () { return chunkKHRCABUX_cjs.useNameEditor; }
|
|
13401
13650
|
});
|
|
13402
13651
|
Object.defineProperty(exports, "useOpenCallMeetingChat", {
|
|
13403
13652
|
enumerable: true,
|
|
13404
|
-
get: function () { return
|
|
13653
|
+
get: function () { return chunkKHRCABUX_cjs.useOpenCallMeetingChat; }
|
|
13405
13654
|
});
|
|
13406
13655
|
Object.defineProperty(exports, "useProfile", {
|
|
13407
13656
|
enumerable: true,
|
|
13408
|
-
get: function () { return
|
|
13657
|
+
get: function () { return chunkKHRCABUX_cjs.useProfile; }
|
|
13409
13658
|
});
|
|
13410
13659
|
Object.defineProperty(exports, "useRecordingActions", {
|
|
13411
13660
|
enumerable: true,
|
|
13412
|
-
get: function () { return
|
|
13661
|
+
get: function () { return chunkKHRCABUX_cjs.useRecordingActions; }
|
|
13413
13662
|
});
|
|
13414
13663
|
Object.defineProperty(exports, "useRecordingWindows", {
|
|
13415
13664
|
enumerable: true,
|
|
13416
|
-
get: function () { return
|
|
13665
|
+
get: function () { return chunkKHRCABUX_cjs.useRecordingWindows; }
|
|
13417
13666
|
});
|
|
13418
13667
|
Object.defineProperty(exports, "useRevokeCallInviteLink", {
|
|
13419
13668
|
enumerable: true,
|
|
13420
|
-
get: function () { return
|
|
13669
|
+
get: function () { return chunkKHRCABUX_cjs.useRevokeCallInviteLink; }
|
|
13421
13670
|
});
|
|
13422
13671
|
Object.defineProperty(exports, "useSaveToThread", {
|
|
13423
13672
|
enumerable: true,
|
|
13424
|
-
get: function () { return
|
|
13673
|
+
get: function () { return chunkKHRCABUX_cjs.useSaveToThread; }
|
|
13425
13674
|
});
|
|
13426
13675
|
Object.defineProperty(exports, "useServerCallsEnabled", {
|
|
13427
13676
|
enumerable: true,
|
|
13428
|
-
get: function () { return
|
|
13677
|
+
get: function () { return chunkKHRCABUX_cjs.useServerCallsEnabled; }
|
|
13429
13678
|
});
|
|
13430
13679
|
Object.defineProperty(exports, "useServerCallsExperimental", {
|
|
13431
13680
|
enumerable: true,
|
|
13432
|
-
get: function () { return
|
|
13681
|
+
get: function () { return chunkKHRCABUX_cjs.useServerCallsExperimental; }
|
|
13433
13682
|
});
|
|
13434
13683
|
Object.defineProperty(exports, "useUpdateProfile", {
|
|
13435
13684
|
enumerable: true,
|
|
13436
|
-
get: function () { return
|
|
13685
|
+
get: function () { return chunkKHRCABUX_cjs.useUpdateProfile; }
|
|
13437
13686
|
});
|
|
13438
13687
|
Object.defineProperty(exports, "wrapTrackKey", {
|
|
13439
13688
|
enumerable: true,
|
|
13440
|
-
get: function () { return
|
|
13689
|
+
get: function () { return chunkKHRCABUX_cjs.wrapTrackKey; }
|
|
13441
13690
|
});
|
|
13442
13691
|
Object.defineProperty(exports, "writeSamples", {
|
|
13443
13692
|
enumerable: true,
|
|
13444
|
-
get: function () { return
|
|
13693
|
+
get: function () { return chunkKHRCABUX_cjs.writeSamples; }
|
|
13694
|
+
});
|
|
13695
|
+
Object.defineProperty(exports, "DISMISSED_TASK_TTL_MS", {
|
|
13696
|
+
enumerable: true,
|
|
13697
|
+
get: function () { return chunkGAW2PLSL_cjs.DISMISSED_TASK_TTL_MS; }
|
|
13445
13698
|
});
|
|
13446
13699
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
13447
13700
|
enumerable: true,
|
|
13448
|
-
get: function () { return
|
|
13701
|
+
get: function () { return chunkGAW2PLSL_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
|
|
13449
13702
|
});
|
|
13450
13703
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
|
|
13451
13704
|
enumerable: true,
|
|
13452
|
-
get: function () { return
|
|
13705
|
+
get: function () { return chunkGAW2PLSL_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
|
|
13453
13706
|
});
|
|
13454
13707
|
Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
|
|
13455
13708
|
enumerable: true,
|
|
13456
|
-
get: function () { return
|
|
13709
|
+
get: function () { return chunkGAW2PLSL_cjs.DOCUMENTS_PAGE_SIZE; }
|
|
13457
13710
|
});
|
|
13458
13711
|
Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
|
|
13459
13712
|
enumerable: true,
|
|
13460
|
-
get: function () { return
|
|
13713
|
+
get: function () { return chunkGAW2PLSL_cjs.FINISHED_DOCUMENT_STATUSES; }
|
|
13461
13714
|
});
|
|
13462
13715
|
Object.defineProperty(exports, "IN_FLIGHT_DOCUMENT_STATUSES", {
|
|
13463
13716
|
enumerable: true,
|
|
13464
|
-
get: function () { return
|
|
13717
|
+
get: function () { return chunkGAW2PLSL_cjs.IN_FLIGHT_DOCUMENT_STATUSES; }
|
|
13465
13718
|
});
|
|
13466
13719
|
Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
|
|
13467
13720
|
enumerable: true,
|
|
13468
|
-
get: function () { return
|
|
13721
|
+
get: function () { return chunkGAW2PLSL_cjs.SIMILARITY_THRESHOLD; }
|
|
13469
13722
|
});
|
|
13470
13723
|
Object.defineProperty(exports, "adjustTagCounts", {
|
|
13471
13724
|
enumerable: true,
|
|
13472
|
-
get: function () { return
|
|
13725
|
+
get: function () { return chunkGAW2PLSL_cjs.adjustTagCounts; }
|
|
13473
13726
|
});
|
|
13474
13727
|
Object.defineProperty(exports, "dropTagFromCachedDocuments", {
|
|
13475
13728
|
enumerable: true,
|
|
13476
|
-
get: function () { return
|
|
13729
|
+
get: function () { return chunkGAW2PLSL_cjs.dropTagFromCachedDocuments; }
|
|
13477
13730
|
});
|
|
13478
13731
|
Object.defineProperty(exports, "finishEntityExtraction", {
|
|
13479
13732
|
enumerable: true,
|
|
13480
|
-
get: function () { return
|
|
13733
|
+
get: function () { return chunkGAW2PLSL_cjs.finishEntityExtraction; }
|
|
13481
13734
|
});
|
|
13482
13735
|
Object.defineProperty(exports, "forgetDocuments", {
|
|
13483
13736
|
enumerable: true,
|
|
13484
|
-
get: function () { return
|
|
13737
|
+
get: function () { return chunkGAW2PLSL_cjs.forgetDocuments; }
|
|
13485
13738
|
});
|
|
13486
13739
|
Object.defineProperty(exports, "getCachedDocuments", {
|
|
13487
13740
|
enumerable: true,
|
|
13488
|
-
get: function () { return
|
|
13741
|
+
get: function () { return chunkGAW2PLSL_cjs.getCachedDocuments; }
|
|
13489
13742
|
});
|
|
13490
13743
|
Object.defineProperty(exports, "invalidateTagData", {
|
|
13491
13744
|
enumerable: true,
|
|
13492
|
-
get: function () { return
|
|
13745
|
+
get: function () { return chunkGAW2PLSL_cjs.invalidateTagData; }
|
|
13493
13746
|
});
|
|
13494
13747
|
Object.defineProperty(exports, "invalidateTagTables", {
|
|
13495
13748
|
enumerable: true,
|
|
13496
|
-
get: function () { return
|
|
13749
|
+
get: function () { return chunkGAW2PLSL_cjs.invalidateTagTables; }
|
|
13497
13750
|
});
|
|
13498
13751
|
Object.defineProperty(exports, "isDocumentsLoading", {
|
|
13499
13752
|
enumerable: true,
|
|
13500
|
-
get: function () { return
|
|
13753
|
+
get: function () { return chunkGAW2PLSL_cjs.isDocumentsLoading; }
|
|
13501
13754
|
});
|
|
13502
13755
|
Object.defineProperty(exports, "isRowNewer", {
|
|
13503
13756
|
enumerable: true,
|
|
13504
|
-
get: function () { return
|
|
13757
|
+
get: function () { return chunkGAW2PLSL_cjs.isRowNewer; }
|
|
13505
13758
|
});
|
|
13506
13759
|
Object.defineProperty(exports, "isStaleTaskUpdate", {
|
|
13507
13760
|
enumerable: true,
|
|
13508
|
-
get: function () { return
|
|
13761
|
+
get: function () { return chunkGAW2PLSL_cjs.isStaleTaskUpdate; }
|
|
13509
13762
|
});
|
|
13510
13763
|
Object.defineProperty(exports, "patchCachedDocument", {
|
|
13511
13764
|
enumerable: true,
|
|
13512
|
-
get: function () { return
|
|
13765
|
+
get: function () { return chunkGAW2PLSL_cjs.patchCachedDocument; }
|
|
13513
13766
|
});
|
|
13514
13767
|
Object.defineProperty(exports, "patchDocuments", {
|
|
13515
13768
|
enumerable: true,
|
|
13516
|
-
get: function () { return
|
|
13769
|
+
get: function () { return chunkGAW2PLSL_cjs.patchDocuments; }
|
|
13517
13770
|
});
|
|
13518
13771
|
Object.defineProperty(exports, "patchWorkspaceTags", {
|
|
13519
13772
|
enumerable: true,
|
|
13520
|
-
get: function () { return
|
|
13773
|
+
get: function () { return chunkGAW2PLSL_cjs.patchWorkspaceTags; }
|
|
13521
13774
|
});
|
|
13522
13775
|
Object.defineProperty(exports, "refreshDocuments", {
|
|
13523
13776
|
enumerable: true,
|
|
13524
|
-
get: function () { return
|
|
13777
|
+
get: function () { return chunkGAW2PLSL_cjs.refreshDocuments; }
|
|
13525
13778
|
});
|
|
13526
13779
|
Object.defineProperty(exports, "resolveDocumentStatus", {
|
|
13527
13780
|
enumerable: true,
|
|
13528
|
-
get: function () { return
|
|
13781
|
+
get: function () { return chunkGAW2PLSL_cjs.resolveDocumentStatus; }
|
|
13529
13782
|
});
|
|
13530
13783
|
Object.defineProperty(exports, "setCachedDocument", {
|
|
13531
13784
|
enumerable: true,
|
|
13532
|
-
get: function () { return
|
|
13785
|
+
get: function () { return chunkGAW2PLSL_cjs.setCachedDocument; }
|
|
13533
13786
|
});
|
|
13534
13787
|
Object.defineProperty(exports, "settledByRows", {
|
|
13535
13788
|
enumerable: true,
|
|
13536
|
-
get: function () { return
|
|
13789
|
+
get: function () { return chunkGAW2PLSL_cjs.settledByRows; }
|
|
13537
13790
|
});
|
|
13538
13791
|
Object.defineProperty(exports, "startEntityExtraction", {
|
|
13539
13792
|
enumerable: true,
|
|
13540
|
-
get: function () { return
|
|
13793
|
+
get: function () { return chunkGAW2PLSL_cjs.startEntityExtraction; }
|
|
13541
13794
|
});
|
|
13542
13795
|
Object.defineProperty(exports, "stopDocumentsLoading", {
|
|
13543
13796
|
enumerable: true,
|
|
13544
|
-
get: function () { return
|
|
13797
|
+
get: function () { return chunkGAW2PLSL_cjs.stopDocumentsLoading; }
|
|
13545
13798
|
});
|
|
13546
13799
|
Object.defineProperty(exports, "subscribeDocumentRows", {
|
|
13547
13800
|
enumerable: true,
|
|
13548
|
-
get: function () { return
|
|
13801
|
+
get: function () { return chunkGAW2PLSL_cjs.subscribeDocumentRows; }
|
|
13549
13802
|
});
|
|
13550
13803
|
Object.defineProperty(exports, "upsertDocuments", {
|
|
13551
13804
|
enumerable: true,
|
|
13552
|
-
get: function () { return
|
|
13805
|
+
get: function () { return chunkGAW2PLSL_cjs.upsertDocuments; }
|
|
13806
|
+
});
|
|
13807
|
+
Object.defineProperty(exports, "useArbiWsStore", {
|
|
13808
|
+
enumerable: true,
|
|
13809
|
+
get: function () { return chunkGAW2PLSL_cjs.useArbiWsStore; }
|
|
13553
13810
|
});
|
|
13554
13811
|
Object.defineProperty(exports, "useCreateTag", {
|
|
13555
13812
|
enumerable: true,
|
|
13556
|
-
get: function () { return
|
|
13813
|
+
get: function () { return chunkGAW2PLSL_cjs.useCreateTag; }
|
|
13557
13814
|
});
|
|
13558
13815
|
Object.defineProperty(exports, "useDeleteTag", {
|
|
13559
13816
|
enumerable: true,
|
|
13560
|
-
get: function () { return
|
|
13817
|
+
get: function () { return chunkGAW2PLSL_cjs.useDeleteTag; }
|
|
13561
13818
|
});
|
|
13562
13819
|
Object.defineProperty(exports, "useDocument", {
|
|
13563
13820
|
enumerable: true,
|
|
13564
|
-
get: function () { return
|
|
13821
|
+
get: function () { return chunkGAW2PLSL_cjs.useDocument; }
|
|
13565
13822
|
});
|
|
13566
13823
|
Object.defineProperty(exports, "useDocuments", {
|
|
13567
13824
|
enumerable: true,
|
|
13568
|
-
get: function () { return
|
|
13825
|
+
get: function () { return chunkGAW2PLSL_cjs.useDocuments; }
|
|
13569
13826
|
});
|
|
13570
13827
|
Object.defineProperty(exports, "useDocumentsById", {
|
|
13571
13828
|
enumerable: true,
|
|
13572
|
-
get: function () { return
|
|
13829
|
+
get: function () { return chunkGAW2PLSL_cjs.useDocumentsById; }
|
|
13573
13830
|
});
|
|
13574
13831
|
Object.defineProperty(exports, "useDocumentsLoading", {
|
|
13575
13832
|
enumerable: true,
|
|
13576
|
-
get: function () { return
|
|
13833
|
+
get: function () { return chunkGAW2PLSL_cjs.useDocumentsLoading; }
|
|
13577
13834
|
});
|
|
13578
13835
|
Object.defineProperty(exports, "useEntityExtractionDocIds", {
|
|
13579
13836
|
enumerable: true,
|
|
13580
|
-
get: function () { return
|
|
13837
|
+
get: function () { return chunkGAW2PLSL_cjs.useEntityExtractionDocIds; }
|
|
13581
13838
|
});
|
|
13582
13839
|
Object.defineProperty(exports, "useExtractEntities", {
|
|
13583
13840
|
enumerable: true,
|
|
13584
|
-
get: function () { return
|
|
13841
|
+
get: function () { return chunkGAW2PLSL_cjs.useExtractEntities; }
|
|
13585
13842
|
});
|
|
13586
13843
|
Object.defineProperty(exports, "useInvalidateTagData", {
|
|
13587
13844
|
enumerable: true,
|
|
13588
|
-
get: function () { return
|
|
13845
|
+
get: function () { return chunkGAW2PLSL_cjs.useInvalidateTagData; }
|
|
13589
13846
|
});
|
|
13590
13847
|
Object.defineProperty(exports, "useIsCreatingTag", {
|
|
13591
13848
|
enumerable: true,
|
|
13592
|
-
get: function () { return
|
|
13849
|
+
get: function () { return chunkGAW2PLSL_cjs.useIsCreatingTag; }
|
|
13850
|
+
});
|
|
13851
|
+
Object.defineProperty(exports, "useRefreshDocuments", {
|
|
13852
|
+
enumerable: true,
|
|
13853
|
+
get: function () { return chunkGAW2PLSL_cjs.useRefreshDocuments; }
|
|
13593
13854
|
});
|
|
13594
13855
|
Object.defineProperty(exports, "useSetTagValues", {
|
|
13595
13856
|
enumerable: true,
|
|
13596
|
-
get: function () { return
|
|
13857
|
+
get: function () { return chunkGAW2PLSL_cjs.useSetTagValues; }
|
|
13597
13858
|
});
|
|
13598
13859
|
Object.defineProperty(exports, "useSimilarDocuments", {
|
|
13599
13860
|
enumerable: true,
|
|
13600
|
-
get: function () { return
|
|
13861
|
+
get: function () { return chunkGAW2PLSL_cjs.useSimilarDocuments; }
|
|
13601
13862
|
});
|
|
13602
13863
|
Object.defineProperty(exports, "useTagKindSchema", {
|
|
13603
13864
|
enumerable: true,
|
|
13604
|
-
get: function () { return
|
|
13865
|
+
get: function () { return chunkGAW2PLSL_cjs.useTagKindSchema; }
|
|
13605
13866
|
});
|
|
13606
13867
|
Object.defineProperty(exports, "useUpdateTag", {
|
|
13607
13868
|
enumerable: true,
|
|
13608
|
-
get: function () { return
|
|
13869
|
+
get: function () { return chunkGAW2PLSL_cjs.useUpdateTag; }
|
|
13609
13870
|
});
|
|
13610
13871
|
Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
13611
13872
|
enumerable: true,
|
|
13612
|
-
get: function () { return
|
|
13873
|
+
get: function () { return chunkGAW2PLSL_cjs.useUpdateTagKindSchema; }
|
|
13613
13874
|
});
|
|
13614
13875
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_STATE", {
|
|
13615
13876
|
enumerable: true,
|
|
13616
|
-
get: function () { return
|
|
13877
|
+
get: function () { return chunkCWJAULV2_cjs.DEFAULT_DOCUMENT_VIEWER_STATE; }
|
|
13617
13878
|
});
|
|
13618
13879
|
Object.defineProperty(exports, "EMPTY_SESSION_STATE", {
|
|
13619
13880
|
enumerable: true,
|
|
13620
|
-
get: function () { return
|
|
13881
|
+
get: function () { return chunkCWJAULV2_cjs.EMPTY_SESSION_STATE; }
|
|
13621
13882
|
});
|
|
13622
13883
|
Object.defineProperty(exports, "MAX_THREAD_TABS", {
|
|
13623
13884
|
enumerable: true,
|
|
13624
|
-
get: function () { return
|
|
13885
|
+
get: function () { return chunkCWJAULV2_cjs.MAX_THREAD_TABS; }
|
|
13625
13886
|
});
|
|
13626
13887
|
Object.defineProperty(exports, "MIN_QUEUED_MESSAGE_VISIBILITY_MS", {
|
|
13627
13888
|
enumerable: true,
|
|
13628
|
-
get: function () { return
|
|
13889
|
+
get: function () { return chunkCWJAULV2_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS; }
|
|
13629
13890
|
});
|
|
13630
13891
|
Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
|
|
13631
13892
|
enumerable: true,
|
|
13632
|
-
get: function () { return
|
|
13893
|
+
get: function () { return chunkCWJAULV2_cjs.PROJECT_CREATION_DENIED_REASON; }
|
|
13633
13894
|
});
|
|
13634
13895
|
Object.defineProperty(exports, "agentControl", {
|
|
13635
13896
|
enumerable: true,
|
|
13636
|
-
get: function () { return
|
|
13897
|
+
get: function () { return chunkCWJAULV2_cjs.agentControl; }
|
|
13637
13898
|
});
|
|
13638
13899
|
Object.defineProperty(exports, "clearSealedDrafts", {
|
|
13639
13900
|
enumerable: true,
|
|
13640
|
-
get: function () { return
|
|
13901
|
+
get: function () { return chunkCWJAULV2_cjs.clearSealedDrafts; }
|
|
13902
|
+
});
|
|
13903
|
+
Object.defineProperty(exports, "closePanelIn", {
|
|
13904
|
+
enumerable: true,
|
|
13905
|
+
get: function () { return chunkCWJAULV2_cjs.closePanelIn; }
|
|
13641
13906
|
});
|
|
13642
13907
|
Object.defineProperty(exports, "conversationKey", {
|
|
13643
13908
|
enumerable: true,
|
|
13644
|
-
get: function () { return
|
|
13909
|
+
get: function () { return chunkCWJAULV2_cjs.conversationKey; }
|
|
13910
|
+
});
|
|
13911
|
+
Object.defineProperty(exports, "createArbiLayoutStore", {
|
|
13912
|
+
enumerable: true,
|
|
13913
|
+
get: function () { return chunkCWJAULV2_cjs.createArbiLayoutStore; }
|
|
13645
13914
|
});
|
|
13646
13915
|
Object.defineProperty(exports, "createArbiSessionStore", {
|
|
13647
13916
|
enumerable: true,
|
|
13648
|
-
get: function () { return
|
|
13917
|
+
get: function () { return chunkCWJAULV2_cjs.createArbiSessionStore; }
|
|
13918
|
+
});
|
|
13919
|
+
Object.defineProperty(exports, "createDebouncedWriter", {
|
|
13920
|
+
enumerable: true,
|
|
13921
|
+
get: function () { return chunkCWJAULV2_cjs.createDebouncedWriter; }
|
|
13649
13922
|
});
|
|
13650
13923
|
Object.defineProperty(exports, "createSealedDraftStorage", {
|
|
13651
13924
|
enumerable: true,
|
|
13652
|
-
get: function () { return
|
|
13925
|
+
get: function () { return chunkCWJAULV2_cjs.createSealedDraftStorage; }
|
|
13926
|
+
});
|
|
13927
|
+
Object.defineProperty(exports, "createStoragePersist", {
|
|
13928
|
+
enumerable: true,
|
|
13929
|
+
get: function () { return chunkCWJAULV2_cjs.createStoragePersist; }
|
|
13930
|
+
});
|
|
13931
|
+
Object.defineProperty(exports, "defaultLayoutState", {
|
|
13932
|
+
enumerable: true,
|
|
13933
|
+
get: function () { return chunkCWJAULV2_cjs.defaultLayoutState; }
|
|
13934
|
+
});
|
|
13935
|
+
Object.defineProperty(exports, "dmTabId", {
|
|
13936
|
+
enumerable: true,
|
|
13937
|
+
get: function () { return chunkCWJAULV2_cjs.dmTabId; }
|
|
13938
|
+
});
|
|
13939
|
+
Object.defineProperty(exports, "flushOnPageExit", {
|
|
13940
|
+
enumerable: true,
|
|
13941
|
+
get: function () { return chunkCWJAULV2_cjs.flushOnPageExit; }
|
|
13942
|
+
});
|
|
13943
|
+
Object.defineProperty(exports, "isPanelOpen", {
|
|
13944
|
+
enumerable: true,
|
|
13945
|
+
get: function () { return chunkCWJAULV2_cjs.isPanelOpen; }
|
|
13653
13946
|
});
|
|
13654
13947
|
Object.defineProperty(exports, "isUsageMetered", {
|
|
13655
13948
|
enumerable: true,
|
|
13656
|
-
get: function () { return
|
|
13949
|
+
get: function () { return chunkCWJAULV2_cjs.isUsageMetered; }
|
|
13950
|
+
});
|
|
13951
|
+
Object.defineProperty(exports, "layoutActionsOf", {
|
|
13952
|
+
enumerable: true,
|
|
13953
|
+
get: function () { return chunkCWJAULV2_cjs.layoutActionsOf; }
|
|
13657
13954
|
});
|
|
13658
13955
|
Object.defineProperty(exports, "nextViewingDocument", {
|
|
13659
13956
|
enumerable: true,
|
|
13660
|
-
get: function () { return
|
|
13957
|
+
get: function () { return chunkCWJAULV2_cjs.nextViewingDocument; }
|
|
13958
|
+
});
|
|
13959
|
+
Object.defineProperty(exports, "openPanelIn", {
|
|
13960
|
+
enumerable: true,
|
|
13961
|
+
get: function () { return chunkCWJAULV2_cjs.openPanelIn; }
|
|
13962
|
+
});
|
|
13963
|
+
Object.defineProperty(exports, "panelPlace", {
|
|
13964
|
+
enumerable: true,
|
|
13965
|
+
get: function () { return chunkCWJAULV2_cjs.panelPlace; }
|
|
13966
|
+
});
|
|
13967
|
+
Object.defineProperty(exports, "parseSavedLayout", {
|
|
13968
|
+
enumerable: true,
|
|
13969
|
+
get: function () { return chunkCWJAULV2_cjs.parseSavedLayout; }
|
|
13661
13970
|
});
|
|
13662
13971
|
Object.defineProperty(exports, "queuedMessages", {
|
|
13663
13972
|
enumerable: true,
|
|
13664
|
-
get: function () { return
|
|
13973
|
+
get: function () { return chunkCWJAULV2_cjs.queuedMessages; }
|
|
13974
|
+
});
|
|
13975
|
+
Object.defineProperty(exports, "restoreLayout", {
|
|
13976
|
+
enumerable: true,
|
|
13977
|
+
get: function () { return chunkCWJAULV2_cjs.restoreLayout; }
|
|
13978
|
+
});
|
|
13979
|
+
Object.defineProperty(exports, "savedLayoutOf", {
|
|
13980
|
+
enumerable: true,
|
|
13981
|
+
get: function () { return chunkCWJAULV2_cjs.savedLayoutOf; }
|
|
13665
13982
|
});
|
|
13666
13983
|
Object.defineProperty(exports, "selectDraft", {
|
|
13667
13984
|
enumerable: true,
|
|
13668
|
-
get: function () { return
|
|
13985
|
+
get: function () { return chunkCWJAULV2_cjs.selectDraft; }
|
|
13669
13986
|
});
|
|
13670
13987
|
Object.defineProperty(exports, "selectIsGenerating", {
|
|
13671
13988
|
enumerable: true,
|
|
13672
|
-
get: function () { return
|
|
13989
|
+
get: function () { return chunkCWJAULV2_cjs.selectIsGenerating; }
|
|
13673
13990
|
});
|
|
13674
13991
|
Object.defineProperty(exports, "selectViewingDocumentId", {
|
|
13675
13992
|
enumerable: true,
|
|
13676
|
-
get: function () { return
|
|
13993
|
+
get: function () { return chunkCWJAULV2_cjs.selectViewingDocumentId; }
|
|
13677
13994
|
});
|
|
13678
13995
|
Object.defineProperty(exports, "threadTabId", {
|
|
13679
13996
|
enumerable: true,
|
|
13680
|
-
get: function () { return
|
|
13997
|
+
get: function () { return chunkCWJAULV2_cjs.threadTabId; }
|
|
13681
13998
|
});
|
|
13682
13999
|
Object.defineProperty(exports, "useActivity", {
|
|
13683
14000
|
enumerable: true,
|
|
13684
|
-
get: function () { return
|
|
14001
|
+
get: function () { return chunkCWJAULV2_cjs.useActivity; }
|
|
13685
14002
|
});
|
|
13686
14003
|
Object.defineProperty(exports, "useAgents", {
|
|
13687
14004
|
enumerable: true,
|
|
13688
|
-
get: function () { return
|
|
14005
|
+
get: function () { return chunkCWJAULV2_cjs.useAgents; }
|
|
13689
14006
|
});
|
|
13690
14007
|
Object.defineProperty(exports, "useArbiSession", {
|
|
13691
14008
|
enumerable: true,
|
|
13692
|
-
get: function () { return
|
|
14009
|
+
get: function () { return chunkCWJAULV2_cjs.useArbiSession; }
|
|
13693
14010
|
});
|
|
13694
14011
|
Object.defineProperty(exports, "useArbiSessionState", {
|
|
13695
14012
|
enumerable: true,
|
|
13696
|
-
get: function () { return
|
|
14013
|
+
get: function () { return chunkCWJAULV2_cjs.useArbiSessionState; }
|
|
13697
14014
|
});
|
|
13698
14015
|
Object.defineProperty(exports, "useArbiSessionStore", {
|
|
13699
14016
|
enumerable: true,
|
|
13700
|
-
get: function () { return
|
|
14017
|
+
get: function () { return chunkCWJAULV2_cjs.useArbiSessionStore; }
|
|
13701
14018
|
});
|
|
13702
14019
|
Object.defineProperty(exports, "useAssistantQuery", {
|
|
13703
14020
|
enumerable: true,
|
|
13704
|
-
get: function () { return
|
|
14021
|
+
get: function () { return chunkCWJAULV2_cjs.useAssistantQuery; }
|
|
13705
14022
|
});
|
|
13706
14023
|
Object.defineProperty(exports, "useAvailableModels", {
|
|
13707
14024
|
enumerable: true,
|
|
13708
|
-
get: function () { return
|
|
14025
|
+
get: function () { return chunkCWJAULV2_cjs.useAvailableModels; }
|
|
13709
14026
|
});
|
|
13710
14027
|
Object.defineProperty(exports, "useBoxRole", {
|
|
13711
14028
|
enumerable: true,
|
|
13712
|
-
get: function () { return
|
|
14029
|
+
get: function () { return chunkCWJAULV2_cjs.useBoxRole; }
|
|
13713
14030
|
});
|
|
13714
14031
|
Object.defineProperty(exports, "useBuiltinCommands", {
|
|
13715
14032
|
enumerable: true,
|
|
13716
|
-
get: function () { return
|
|
14033
|
+
get: function () { return chunkCWJAULV2_cjs.useBuiltinCommands; }
|
|
13717
14034
|
});
|
|
13718
14035
|
Object.defineProperty(exports, "useCanCreateProjects", {
|
|
13719
14036
|
enumerable: true,
|
|
13720
|
-
get: function () { return
|
|
14037
|
+
get: function () { return chunkCWJAULV2_cjs.useCanCreateProjects; }
|
|
13721
14038
|
});
|
|
13722
14039
|
Object.defineProperty(exports, "useConfig", {
|
|
13723
14040
|
enumerable: true,
|
|
13724
|
-
get: function () { return
|
|
14041
|
+
get: function () { return chunkCWJAULV2_cjs.useConfig; }
|
|
13725
14042
|
});
|
|
13726
14043
|
Object.defineProperty(exports, "useConfigs", {
|
|
13727
14044
|
enumerable: true,
|
|
13728
|
-
get: function () { return
|
|
14045
|
+
get: function () { return chunkCWJAULV2_cjs.useConfigs; }
|
|
13729
14046
|
});
|
|
13730
14047
|
Object.defineProperty(exports, "useConversationThreads", {
|
|
13731
14048
|
enumerable: true,
|
|
13732
|
-
get: function () { return
|
|
14049
|
+
get: function () { return chunkCWJAULV2_cjs.useConversationThreads; }
|
|
13733
14050
|
});
|
|
13734
14051
|
Object.defineProperty(exports, "useConversations", {
|
|
13735
14052
|
enumerable: true,
|
|
13736
|
-
get: function () { return
|
|
14053
|
+
get: function () { return chunkCWJAULV2_cjs.useConversations; }
|
|
13737
14054
|
});
|
|
13738
14055
|
Object.defineProperty(exports, "useCurrentUser", {
|
|
13739
14056
|
enumerable: true,
|
|
13740
|
-
get: function () { return
|
|
14057
|
+
get: function () { return chunkCWJAULV2_cjs.useCurrentUser; }
|
|
13741
14058
|
});
|
|
13742
14059
|
Object.defineProperty(exports, "useDeleteAgents", {
|
|
13743
14060
|
enumerable: true,
|
|
13744
|
-
get: function () { return
|
|
14061
|
+
get: function () { return chunkCWJAULV2_cjs.useDeleteAgents; }
|
|
13745
14062
|
});
|
|
13746
14063
|
Object.defineProperty(exports, "useDocumentVersionList", {
|
|
13747
14064
|
enumerable: true,
|
|
13748
|
-
get: function () { return
|
|
14065
|
+
get: function () { return chunkCWJAULV2_cjs.useDocumentVersionList; }
|
|
13749
14066
|
});
|
|
13750
14067
|
Object.defineProperty(exports, "useFirmPool", {
|
|
13751
14068
|
enumerable: true,
|
|
13752
|
-
get: function () { return
|
|
14069
|
+
get: function () { return chunkCWJAULV2_cjs.useFirmPool; }
|
|
13753
14070
|
});
|
|
13754
14071
|
Object.defineProperty(exports, "useHealth", {
|
|
13755
14072
|
enumerable: true,
|
|
13756
|
-
get: function () { return
|
|
14073
|
+
get: function () { return chunkCWJAULV2_cjs.useHealth; }
|
|
13757
14074
|
});
|
|
13758
14075
|
Object.defineProperty(exports, "useMessageDetails", {
|
|
13759
14076
|
enumerable: true,
|
|
13760
|
-
get: function () { return
|
|
14077
|
+
get: function () { return chunkCWJAULV2_cjs.useMessageDetails; }
|
|
13761
14078
|
});
|
|
13762
14079
|
Object.defineProperty(exports, "useParsedDocument", {
|
|
13763
14080
|
enumerable: true,
|
|
13764
|
-
get: function () { return
|
|
14081
|
+
get: function () { return chunkCWJAULV2_cjs.useParsedDocument; }
|
|
13765
14082
|
});
|
|
13766
14083
|
Object.defineProperty(exports, "useProjectInvoices", {
|
|
13767
14084
|
enumerable: true,
|
|
13768
|
-
get: function () { return
|
|
14085
|
+
get: function () { return chunkCWJAULV2_cjs.useProjectInvoices; }
|
|
13769
14086
|
});
|
|
13770
14087
|
Object.defineProperty(exports, "useProjectUsage", {
|
|
13771
14088
|
enumerable: true,
|
|
13772
|
-
get: function () { return
|
|
14089
|
+
get: function () { return chunkCWJAULV2_cjs.useProjectUsage; }
|
|
13773
14090
|
});
|
|
13774
14091
|
Object.defineProperty(exports, "useProjects", {
|
|
13775
14092
|
enumerable: true,
|
|
13776
|
-
get: function () { return
|
|
14093
|
+
get: function () { return chunkCWJAULV2_cjs.useProjects; }
|
|
13777
14094
|
});
|
|
13778
14095
|
Object.defineProperty(exports, "useProjectsUsage", {
|
|
13779
14096
|
enumerable: true,
|
|
13780
|
-
get: function () { return
|
|
14097
|
+
get: function () { return chunkCWJAULV2_cjs.useProjectsUsage; }
|
|
14098
|
+
});
|
|
14099
|
+
Object.defineProperty(exports, "useSessionView", {
|
|
14100
|
+
enumerable: true,
|
|
14101
|
+
get: function () { return chunkCWJAULV2_cjs.useSessionView; }
|
|
13781
14102
|
});
|
|
13782
14103
|
Object.defineProperty(exports, "useSignedInSession", {
|
|
13783
14104
|
enumerable: true,
|
|
13784
|
-
get: function () { return
|
|
14105
|
+
get: function () { return chunkCWJAULV2_cjs.useSignedInSession; }
|
|
13785
14106
|
});
|
|
13786
14107
|
Object.defineProperty(exports, "useTags", {
|
|
13787
14108
|
enumerable: true,
|
|
13788
|
-
get: function () { return
|
|
14109
|
+
get: function () { return chunkCWJAULV2_cjs.useTags; }
|
|
13789
14110
|
});
|
|
13790
14111
|
Object.defineProperty(exports, "useThumbnails", {
|
|
13791
14112
|
enumerable: true,
|
|
13792
|
-
get: function () { return
|
|
14113
|
+
get: function () { return chunkCWJAULV2_cjs.useThumbnails; }
|
|
13793
14114
|
});
|
|
13794
14115
|
Object.defineProperty(exports, "useTopUpFirmPool", {
|
|
13795
14116
|
enumerable: true,
|
|
13796
|
-
get: function () { return
|
|
14117
|
+
get: function () { return chunkCWJAULV2_cjs.useTopUpFirmPool; }
|
|
14118
|
+
});
|
|
14119
|
+
Object.defineProperty(exports, "useTransientView", {
|
|
14120
|
+
enumerable: true,
|
|
14121
|
+
get: function () { return chunkCWJAULV2_cjs.useTransientView; }
|
|
13797
14122
|
});
|
|
13798
14123
|
Object.defineProperty(exports, "useUserUsageToday", {
|
|
13799
14124
|
enumerable: true,
|
|
13800
|
-
get: function () { return
|
|
14125
|
+
get: function () { return chunkCWJAULV2_cjs.useUserUsageToday; }
|
|
13801
14126
|
});
|
|
13802
14127
|
Object.defineProperty(exports, "useWorkspaceActivity", {
|
|
13803
14128
|
enumerable: true,
|
|
13804
|
-
get: function () { return
|
|
14129
|
+
get: function () { return chunkCWJAULV2_cjs.useWorkspaceActivity; }
|
|
13805
14130
|
});
|
|
13806
14131
|
Object.defineProperty(exports, "useWorkspaces", {
|
|
13807
14132
|
enumerable: true,
|
|
13808
|
-
get: function () { return
|
|
14133
|
+
get: function () { return chunkCWJAULV2_cjs.useWorkspaces; }
|
|
13809
14134
|
});
|
|
13810
14135
|
Object.defineProperty(exports, "arbiMutationKeys", {
|
|
13811
14136
|
enumerable: true,
|
|
@@ -14027,18 +14352,6 @@ Object.defineProperty(exports, "unwrapCitationLinks", {
|
|
|
14027
14352
|
enumerable: true,
|
|
14028
14353
|
get: function () { return chunkZWFMFOGP_cjs.unwrapCitationLinks; }
|
|
14029
14354
|
});
|
|
14030
|
-
Object.defineProperty(exports, "useArbi", {
|
|
14031
|
-
enumerable: true,
|
|
14032
|
-
get: function () { return chunkYIUUTRMQ_cjs.useArbi; }
|
|
14033
|
-
});
|
|
14034
|
-
Object.defineProperty(exports, "useArbiHost", {
|
|
14035
|
-
enumerable: true,
|
|
14036
|
-
get: function () { return chunkYIUUTRMQ_cjs.useArbiHost; }
|
|
14037
|
-
});
|
|
14038
|
-
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
14039
|
-
enumerable: true,
|
|
14040
|
-
get: function () { return chunkYIUUTRMQ_cjs.useDeploymentDomain; }
|
|
14041
|
-
});
|
|
14042
14355
|
Object.defineProperty(exports, "ARBI_MARK_SRC", {
|
|
14043
14356
|
enumerable: true,
|
|
14044
14357
|
get: function () { return chunkFSPLYO52_cjs.ARBI_MARK_SRC; }
|
|
@@ -14955,6 +15268,18 @@ Object.defineProperty(exports, "cn", {
|
|
|
14955
15268
|
enumerable: true,
|
|
14956
15269
|
get: function () { return chunkS6A6FSG7_cjs.cn; }
|
|
14957
15270
|
});
|
|
15271
|
+
Object.defineProperty(exports, "useArbi", {
|
|
15272
|
+
enumerable: true,
|
|
15273
|
+
get: function () { return chunkYIUUTRMQ_cjs.useArbi; }
|
|
15274
|
+
});
|
|
15275
|
+
Object.defineProperty(exports, "useArbiHost", {
|
|
15276
|
+
enumerable: true,
|
|
15277
|
+
get: function () { return chunkYIUUTRMQ_cjs.useArbiHost; }
|
|
15278
|
+
});
|
|
15279
|
+
Object.defineProperty(exports, "useDeploymentDomain", {
|
|
15280
|
+
enumerable: true,
|
|
15281
|
+
get: function () { return chunkYIUUTRMQ_cjs.useDeploymentDomain; }
|
|
15282
|
+
});
|
|
14958
15283
|
Object.defineProperty(exports, "useHostConfigRecord", {
|
|
14959
15284
|
enumerable: true,
|
|
14960
15285
|
get: function () { return chunkRCKA7BEF_cjs.useHostConfigRecord; }
|
|
@@ -15131,8 +15456,10 @@ exports.appendTokenToMessage = appendTokenToMessage;
|
|
|
15131
15456
|
exports.applyConversationEvent = applyConversationEvent;
|
|
15132
15457
|
exports.applyFinalContextToMessage = applyFinalContextToMessage;
|
|
15133
15458
|
exports.applyLiveUpdate = applyLiveUpdate;
|
|
15459
|
+
exports.applyNotificationRow = applyNotificationRow;
|
|
15134
15460
|
exports.applyOptimisticDocumentEdit = applyOptimisticDocumentEdit;
|
|
15135
15461
|
exports.applyOutputItemToMessage = applyOutputItemToMessage;
|
|
15462
|
+
exports.applyTaskEvent = applyTaskEvent;
|
|
15136
15463
|
exports.arbiMailClient = arbiMailClient;
|
|
15137
15464
|
exports.archiveName = archiveName;
|
|
15138
15465
|
exports.archivedWorkspaceMessage = archivedWorkspaceMessage;
|
|
@@ -15185,6 +15512,7 @@ exports.formatConfigValidationError = formatConfigValidationError;
|
|
|
15185
15512
|
exports.formatIdentityPrice = formatIdentityPrice;
|
|
15186
15513
|
exports.getInterjectionText = getInterjectionText;
|
|
15187
15514
|
exports.getNotificationTypeMeta = getNotificationTypeMeta;
|
|
15515
|
+
exports.getOfflineDocument = getOfflineDocument;
|
|
15188
15516
|
exports.getOrphanedLastMessage = getOrphanedLastMessage;
|
|
15189
15517
|
exports.getRelatedLabels = getRelatedLabels;
|
|
15190
15518
|
exports.getRelatedTotal = getRelatedTotal;
|
|
@@ -15209,6 +15537,7 @@ exports.isDeploymentAdmin = isDeploymentAdmin;
|
|
|
15209
15537
|
exports.isDeploymentUserNotification = isDeploymentUserNotification;
|
|
15210
15538
|
exports.isFullConfig = isFullConfig;
|
|
15211
15539
|
exports.isMessageRunning = isMessageRunning;
|
|
15540
|
+
exports.isNotificationRow = isNotificationRow;
|
|
15212
15541
|
exports.isOfflineReadableArbiQuery = isOfflineReadableArbiQuery;
|
|
15213
15542
|
exports.isOrphanedUserMessage = isOrphanedUserMessage;
|
|
15214
15543
|
exports.isQueuedCalendarWrite = isQueuedCalendarWrite;
|
|
@@ -15220,6 +15549,7 @@ exports.isTransferResumable = isTransferResumable;
|
|
|
15220
15549
|
exports.isWorkspaceArchivedError = isWorkspaceArchivedError;
|
|
15221
15550
|
exports.isWorkspaceNotificationType = isWorkspaceNotificationType;
|
|
15222
15551
|
exports.isZipFile = isZipFile;
|
|
15552
|
+
exports.loadOfflineDocument = loadOfflineDocument;
|
|
15223
15553
|
exports.mailDraftIdFromContent = mailDraftIdFromContent;
|
|
15224
15554
|
exports.mailJson = mailJson;
|
|
15225
15555
|
exports.markMessageAsFailed = markMessageAsFailed;
|
|
@@ -15241,6 +15571,7 @@ exports.refuseChatWhenOffline = refuseChatWhenOffline;
|
|
|
15241
15571
|
exports.registerArbiMutationDefaults = registerArbiMutationDefaults;
|
|
15242
15572
|
exports.registerAttachedRun = registerAttachedRun;
|
|
15243
15573
|
exports.removeSettledNarration = removeSettledNarration;
|
|
15574
|
+
exports.requestPersistentStorage = requestPersistentStorage;
|
|
15244
15575
|
exports.resetCalendarAccountSyncState = resetCalendarAccountSyncState;
|
|
15245
15576
|
exports.resetMessageContent = resetMessageContent;
|
|
15246
15577
|
exports.resolveActiveWorkspace = resolveActiveWorkspace;
|
|
@@ -15286,15 +15617,11 @@ exports.useAiTask = useAiTask;
|
|
|
15286
15617
|
exports.useAnswerAgentQuestion = useAnswerAgentQuestion;
|
|
15287
15618
|
exports.useApplyChatModel = useApplyChatModel;
|
|
15288
15619
|
exports.useArbiConnected = useArbiConnected;
|
|
15289
|
-
exports.useArbiDocumentSync = useArbiDocumentSync;
|
|
15290
15620
|
exports.useArbiShellWorkspaces = useArbiShellWorkspaces;
|
|
15291
15621
|
exports.useArbiWebSocket = useArbiWebSocket;
|
|
15292
15622
|
exports.useArbiWsContext = useArbiWsContext;
|
|
15293
15623
|
exports.useArbiWsMessage = useArbiWsMessage;
|
|
15294
15624
|
exports.useArbiWsStatus = useArbiWsStatus;
|
|
15295
|
-
exports.useArbiWsStore = useArbiWsStore;
|
|
15296
|
-
exports.useArbiWsTask = useArbiWsTask;
|
|
15297
|
-
exports.useArbiWsTasks = useArbiWsTasks;
|
|
15298
15625
|
exports.useArchiveProgressPolling = useArchiveProgressPolling;
|
|
15299
15626
|
exports.useArchiveWorkspace = useArchiveWorkspace;
|
|
15300
15627
|
exports.useAskAgain = useAskAgain;
|
|
@@ -15324,6 +15651,7 @@ exports.useCancelProjectSubscription = useCancelProjectSubscription;
|
|
|
15324
15651
|
exports.useCancelWorkspaceTransfer = useCancelWorkspaceTransfer;
|
|
15325
15652
|
exports.useChangeProjectPlan = useChangeProjectPlan;
|
|
15326
15653
|
exports.useChargeWatch = useChargeWatch;
|
|
15654
|
+
exports.useChatArrivals = useChatArrivals;
|
|
15327
15655
|
exports.useChatPost = useChatPost;
|
|
15328
15656
|
exports.useChatSummaries = useChatSummaries;
|
|
15329
15657
|
exports.useChatThread = useChatThread;
|
|
@@ -15435,6 +15763,7 @@ exports.useInvalidateStorage = useInvalidateStorage;
|
|
|
15435
15763
|
exports.useInviteContacts = useInviteContacts;
|
|
15436
15764
|
exports.useIsSlow = useIsSlow;
|
|
15437
15765
|
exports.useIsWorkspaceOwner = useIsWorkspaceOwner;
|
|
15766
|
+
exports.useKeepDocumentsOffline = useKeepDocumentsOffline;
|
|
15438
15767
|
exports.useLinkContact = useLinkContact;
|
|
15439
15768
|
exports.useMailAccounts = useMailAccounts;
|
|
15440
15769
|
exports.useMailAttachmentText = useMailAttachmentText;
|
|
@@ -15491,6 +15820,7 @@ exports.useRefreshProject = useRefreshProject;
|
|
|
15491
15820
|
exports.useRelatedDocuments = useRelatedDocuments;
|
|
15492
15821
|
exports.useRemoveChatMember = useRemoveChatMember;
|
|
15493
15822
|
exports.useRemoveDocTags = useRemoveDocTags;
|
|
15823
|
+
exports.useRemoveDocumentsOffline = useRemoveDocumentsOffline;
|
|
15494
15824
|
exports.useRemoveWorkspaceMembers = useRemoveWorkspaceMembers;
|
|
15495
15825
|
exports.useRenameChat = useRenameChat;
|
|
15496
15826
|
exports.useRenameFolder = useRenameFolder;
|
|
@@ -15580,6 +15910,7 @@ exports.useWorkspaceArchive = useWorkspaceArchive;
|
|
|
15580
15910
|
exports.useWorkspaceDocs = useWorkspaceDocs;
|
|
15581
15911
|
exports.useWorkspaceExportDownload = useWorkspaceExportDownload;
|
|
15582
15912
|
exports.useWorkspaceNotificationLevel = useWorkspaceNotificationLevel;
|
|
15913
|
+
exports.useWorkspaceProcessing = useWorkspaceProcessing;
|
|
15583
15914
|
exports.useWorkspaceRole = useWorkspaceRole;
|
|
15584
15915
|
exports.useWorkspaceTransfer = useWorkspaceTransfer;
|
|
15585
15916
|
exports.useWorkspaceTransfers = useWorkspaceTransfers;
|
|
@@ -15588,6 +15919,7 @@ exports.useWorkspaceUsers = useWorkspaceUsers;
|
|
|
15588
15919
|
exports.userDisplayName = userDisplayName;
|
|
15589
15920
|
exports.userInitials = userInitials;
|
|
15590
15921
|
exports.waitForResponseId = waitForResponseId;
|
|
15922
|
+
exports.wipeOfflineDocuments = wipeOfflineDocuments;
|
|
15591
15923
|
exports.withRelativePath = withRelativePath;
|
|
15592
15924
|
exports.workflowStepOf = workflowStepOf;
|
|
15593
15925
|
exports.workspaceHouseTemplateId = workspaceHouseTemplateId;
|