@arbidocs/react 0.5.125 → 0.5.126

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.
Files changed (34) hide show
  1. package/dist/artifacts/index.cjs +81 -38
  2. package/dist/artifacts/index.cjs.map +1 -1
  3. package/dist/artifacts/index.d.ts +3 -0
  4. package/dist/artifacts/useArtifactSession.js +48 -4
  5. package/dist/artifacts/useArtifactSession.js.map +2 -2
  6. package/dist/artifacts/versions.js +2 -1
  7. package/dist/artifacts/versions.js.map +2 -2
  8. package/dist/calls/livekit/index.cjs +42 -42
  9. package/dist/chat/turn-flush.js +3 -3
  10. package/dist/chat/turn-flush.js.map +2 -2
  11. package/dist/{chunk-WUYSVTKE.cjs → chunk-6RRKO4ZK.cjs} +4 -4
  12. package/dist/{chunk-WUYSVTKE.cjs.map → chunk-6RRKO4ZK.cjs.map} +1 -1
  13. package/dist/{chunk-FAJLJDWS.cjs → chunk-FOBB5U4Y.cjs} +5 -5
  14. package/dist/{chunk-FAJLJDWS.cjs.map → chunk-FOBB5U4Y.cjs.map} +1 -1
  15. package/dist/{chunk-3JAEX57E.cjs → chunk-G5DYDBQN.cjs} +4 -4
  16. package/dist/{chunk-3JAEX57E.cjs.map → chunk-G5DYDBQN.cjs.map} +1 -1
  17. package/dist/{chunk-7L7QRIQ2.cjs → chunk-H3XHBIZ6.cjs} +5 -5
  18. package/dist/{chunk-7L7QRIQ2.cjs.map → chunk-H3XHBIZ6.cjs.map} +1 -1
  19. package/dist/{chunk-NDIKMOBJ.cjs → chunk-KULS4YWP.cjs} +4 -3
  20. package/dist/chunk-KULS4YWP.cjs.map +1 -0
  21. package/dist/{chunk-GKGAPU6T.cjs → chunk-NK5KFHXP.cjs} +17 -2
  22. package/dist/chunk-NK5KFHXP.cjs.map +1 -0
  23. package/dist/{chunk-K6ELFSG6.cjs → chunk-TNJ5T2MV.cjs} +25 -25
  24. package/dist/{chunk-K6ELFSG6.cjs.map → chunk-TNJ5T2MV.cjs.map} +1 -1
  25. package/dist/document-tools/core.cjs +97 -97
  26. package/dist/document-tools/core.d.ts +1 -0
  27. package/dist/document-tools/index.cjs +99 -99
  28. package/dist/index.cjs +797 -804
  29. package/dist/index.cjs.map +1 -1
  30. package/dist/index.d.ts +13 -11
  31. package/dist/shell/index.cjs +38 -38
  32. package/package.json +3 -3
  33. package/dist/chunk-GKGAPU6T.cjs.map +0 -1
  34. package/dist/chunk-NDIKMOBJ.cjs.map +0 -1
package/dist/index.cjs CHANGED
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
3
  var chunkTMPDW7J5_cjs = require('./chunk-TMPDW7J5.cjs');
4
- var chunkFAJLJDWS_cjs = require('./chunk-FAJLJDWS.cjs');
5
- var chunkGKGAPU6T_cjs = require('./chunk-GKGAPU6T.cjs');
6
- var chunk7L7QRIQ2_cjs = require('./chunk-7L7QRIQ2.cjs');
7
- var chunk3JAEX57E_cjs = require('./chunk-3JAEX57E.cjs');
4
+ var chunkFOBB5U4Y_cjs = require('./chunk-FOBB5U4Y.cjs');
5
+ var chunkNK5KFHXP_cjs = require('./chunk-NK5KFHXP.cjs');
6
+ var chunkH3XHBIZ6_cjs = require('./chunk-H3XHBIZ6.cjs');
7
+ var chunkG5DYDBQN_cjs = require('./chunk-G5DYDBQN.cjs');
8
8
  var chunkO32T7XRD_cjs = require('./chunk-O32T7XRD.cjs');
9
- var chunkWUYSVTKE_cjs = require('./chunk-WUYSVTKE.cjs');
9
+ var chunk6RRKO4ZK_cjs = require('./chunk-6RRKO4ZK.cjs');
10
10
  var chunkIX4HOS5Z_cjs = require('./chunk-IX4HOS5Z.cjs');
11
11
  var chunkN73IMVFF_cjs = require('./chunk-N73IMVFF.cjs');
12
- var chunkNDIKMOBJ_cjs = require('./chunk-NDIKMOBJ.cjs');
12
+ var chunkKULS4YWP_cjs = require('./chunk-KULS4YWP.cjs');
13
13
  require('./chunk-VOFNX4P6.cjs');
14
14
  var chunk4NGWDVHD_cjs = require('./chunk-4NGWDVHD.cjs');
15
15
  var chunkEEIYXVM4_cjs = require('./chunk-EEIYXVM4.cjs');
@@ -41,12 +41,12 @@ var ReactMarkdown__default = /*#__PURE__*/_interopDefault(ReactMarkdown);
41
41
  var Cropper__default = /*#__PURE__*/_interopDefault(Cropper);
42
42
 
43
43
  // src/host/index.ts
44
- var ArbiHost2 = chunkWUYSVTKE_cjs.ArbiHost;
44
+ var ArbiHost2 = chunk6RRKO4ZK_cjs.ArbiHost;
45
45
  function useCurrentWorkspace() {
46
- const workspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
47
- const workspaceStatus = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceStatus);
48
- const userId = chunk7L7QRIQ2_cjs.useArbiSession().user?.external_id ?? null;
49
- const { data: workspaces } = chunk7L7QRIQ2_cjs.useWorkspaces();
46
+ const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
47
+ const workspaceStatus = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceStatus);
48
+ const userId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id ?? null;
49
+ const { data: workspaces } = chunkH3XHBIZ6_cjs.useWorkspaces();
50
50
  const workspace = workspaceId ? workspaces?.find((w) => w.external_id === workspaceId) : void 0;
51
51
  const membership = userId ? workspace?.users?.find((member) => member.user.external_id === userId) : void 0;
52
52
  const role = membership?.role ?? null;
@@ -86,9 +86,9 @@ function holdListPoll(refetch) {
86
86
  };
87
87
  }
88
88
  function useConversationItems() {
89
- const workspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
90
- const open = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceStatus === "open");
91
- const query = chunk7L7QRIQ2_cjs.useConversations(workspaceId ?? void 0, { enabled: open });
89
+ const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
90
+ const open = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceStatus === "open");
91
+ const query = chunkH3XHBIZ6_cjs.useConversations(workspaceId ?? void 0, { enabled: open });
92
92
  const { refetch } = query;
93
93
  const all = query.data;
94
94
  const tasks = React.useMemo(() => (all ?? []).filter((c) => c.status != null), [all]);
@@ -109,7 +109,7 @@ function useConversationItems() {
109
109
  return { conversations: all ?? [], tasks, isLoading: query.isLoading, refetch };
110
110
  }
111
111
  function useConversationIsShared() {
112
- const id = chunk7L7QRIQ2_cjs.useArbiSessionState((state) => state.conversationId);
112
+ const id = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.conversationId);
113
113
  const { conversations } = useConversationItems();
114
114
  return conversations.find((conversation) => conversation.external_id === id)?.is_shared ?? false;
115
115
  }
@@ -140,7 +140,7 @@ var THREAD_LOOKUP_DELAY_MS = 500;
140
140
  function useStartTaskQuery() {
141
141
  const arbi = chunkO32T7XRD_cjs.useArbi();
142
142
  const queryClient = reactQuery.useQueryClient();
143
- const chatModel = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.chatModel);
143
+ const chatModel = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.chatModel);
144
144
  const post = reactQuery.useMutation({
145
145
  mutationFn: (query) => {
146
146
  const selectedConfig = chatModel || queryClient.getQueriesData({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.userSettings() }).map(([, settings]) => settings?.last_config).find(Boolean);
@@ -174,7 +174,7 @@ function useStartTaskQuery() {
174
174
  }
175
175
  }
176
176
  if (!conversationId) return null;
177
- await chunkFAJLJDWS_cjs.invalidateConversationLists(queryClient);
177
+ await chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
178
178
  return { conversationId };
179
179
  };
180
180
  return {
@@ -203,8 +203,8 @@ function useUpdateConversation() {
203
203
  }) => arbi.conversations.update(conversationId, patch),
204
204
  // The list takes the server's version of the row; what hangs off it is read again.
205
205
  onSuccess: (updated, { conversationId }) => {
206
- chunkFAJLJDWS_cjs.patchConversation(qc, conversationId, updated);
207
- return chunkFAJLJDWS_cjs.invalidateConversationDetails(qc, conversationId);
206
+ chunkFOBB5U4Y_cjs.patchConversation(qc, conversationId, updated);
207
+ return chunkFOBB5U4Y_cjs.invalidateConversationDetails(qc, conversationId);
208
208
  }
209
209
  });
210
210
  }
@@ -213,7 +213,7 @@ function useDeleteConversation() {
213
213
  const qc = reactQuery.useQueryClient();
214
214
  return reactQuery.useMutation({
215
215
  mutationFn: (conversationId) => arbi.conversations.delete(conversationId),
216
- onSuccess: (_res, conversationId) => chunkFAJLJDWS_cjs.removeConversationFromLists(qc, conversationId)
216
+ onSuccess: (_res, conversationId) => chunkFOBB5U4Y_cjs.removeConversationFromLists(qc, conversationId)
217
217
  });
218
218
  }
219
219
  function workWorkspace(arbi, workspaceId) {
@@ -236,7 +236,7 @@ function useCreateWork(options) {
236
236
  mutationFn: async (body) => {
237
237
  const workspaceId = workWorkspace(arbi, named);
238
238
  const created = await arbi.conversations.createWork(body, { workspaceId });
239
- chunkFAJLJDWS_cjs.addConversationToList(qc, workspaceId ?? null, created);
239
+ chunkFOBB5U4Y_cjs.addConversationToList(qc, workspaceId ?? null, created);
240
240
  return created;
241
241
  }
242
242
  });
@@ -248,7 +248,7 @@ function useRunConversation() {
248
248
  mutationFn: (conversationId) => arbi.conversations.runWithAuth(conversationId),
249
249
  // The server's version replaces the listed one; everything under the conversation is re-read.
250
250
  onSuccess: (updated) => {
251
- if (updated?.external_id) chunkFAJLJDWS_cjs.patchConversation(qc, updated.external_id, updated);
251
+ if (updated?.external_id) chunkFOBB5U4Y_cjs.patchConversation(qc, updated.external_id, updated);
252
252
  return qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allConversations() });
253
253
  }
254
254
  });
@@ -264,7 +264,7 @@ function useActOnStep() {
264
264
  // The server's version of the conversation replaces the listed one; its history is re-read.
265
265
  onSuccess: (updated) => {
266
266
  if (!updated?.external_id) return;
267
- chunkFAJLJDWS_cjs.patchConversation(qc, updated.external_id, updated);
267
+ chunkFOBB5U4Y_cjs.patchConversation(qc, updated.external_id, updated);
268
268
  invalidateConversationActivity(qc, updated.external_id);
269
269
  }
270
270
  });
@@ -1270,9 +1270,9 @@ function assistantLabels(assistantName = ASSISTANT_MENTION_LABEL) {
1270
1270
  return assistantName.toLowerCase() === ASSISTANT_MENTION_LABEL.toLowerCase() ? [assistantName] : [assistantName, ASSISTANT_MENTION_LABEL];
1271
1271
  }
1272
1272
  function useLinkMentions() {
1273
- const assistantName = chunkWUYSVTKE_cjs.useAssistantName();
1273
+ const assistantName = chunk6RRKO4ZK_cjs.useAssistantName();
1274
1274
  return React.useCallback(
1275
- (content, mentions) => chunkWUYSVTKE_cjs.linkMentions(content, mentions, [assistantName]),
1275
+ (content, mentions) => chunk6RRKO4ZK_cjs.linkMentions(content, mentions, [assistantName]),
1276
1276
  [assistantName]
1277
1277
  );
1278
1278
  }
@@ -1294,28 +1294,15 @@ function cachedAssistantMode(queryClient, conversationId, newMode) {
1294
1294
  if (!conversationId) return newMode;
1295
1295
  const threads = queryClient.getQueriesData(allConversationThreads).map(([, data]) => data).find((data) => data?.conversation_ext_id === conversationId);
1296
1296
  if (threads?.assistant_mode) return threads.assistant_mode;
1297
- return chunkFAJLJDWS_cjs.findConversation(queryClient, conversationId)?.assistant_mode ?? "always";
1297
+ return chunkFOBB5U4Y_cjs.findConversation(queryClient, conversationId)?.assistant_mode ?? "always";
1298
1298
  }
1299
1299
  function isCommentToPeople(queryClient, conversationId, content, candidates) {
1300
- const mentioned = chunkWUYSVTKE_cjs.extractMentions(content, candidates);
1300
+ const mentioned = chunk6RRKO4ZK_cjs.extractMentions(content, candidates);
1301
1301
  if (mentioned.some((c) => c.kind === "assistant")) return false;
1302
- if (chunkFAJLJDWS_cjs.isConversationShared(queryClient, conversationId)) return true;
1302
+ if (chunkFOBB5U4Y_cjs.isConversationShared(queryClient, conversationId)) return true;
1303
1303
  if (mentioned.some((c) => c.kind === "user")) return true;
1304
1304
  return !!conversationId && cachedAssistantMode(queryClient, conversationId, "always") === "mentioned";
1305
1305
  }
1306
-
1307
- // src/chat/turn-flush.ts
1308
- var flushes = /* @__PURE__ */ new Map();
1309
- function registerDocumentTurnFlush(documentId, flush) {
1310
- flushes.set(documentId, flush);
1311
- return () => {
1312
- if (flushes.get(documentId) === flush) flushes.delete(documentId);
1313
- };
1314
- }
1315
- function flushDocumentForTurn(documentId) {
1316
- const flush = documentId ? flushes.get(documentId) : void 0;
1317
- return flush ? flush() : null;
1318
- }
1319
1306
  function isFullConfig(config) {
1320
1307
  return config != null && "QueryLLM" in config;
1321
1308
  }
@@ -1404,12 +1391,12 @@ function useSaveConfigField(baseConfigId) {
1404
1391
  const arbi = chunkO32T7XRD_cjs.useArbi();
1405
1392
  const queryClient = reactQuery.useQueryClient();
1406
1393
  const saveConfig = useSaveConfig();
1407
- const { data: defaultConfig } = chunk7L7QRIQ2_cjs.useConfig("default");
1408
- const chatModel = chunk7L7QRIQ2_cjs.useArbiSessionState((state) => state.chatModel);
1409
- const { data: userSettings } = chunkFAJLJDWS_cjs.useUserSettings();
1394
+ const { data: defaultConfig } = chunkH3XHBIZ6_cjs.useConfig("default");
1395
+ const chatModel = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.chatModel);
1396
+ const { data: userSettings } = chunkFOBB5U4Y_cjs.useUserSettings();
1410
1397
  const activeConfigId = baseConfigId || chatModel || userSettings?.last_config || "default";
1411
- const { data: activeConfigData } = chunk7L7QRIQ2_cjs.useConfig(activeConfigId);
1412
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
1398
+ const { data: activeConfigData } = chunkH3XHBIZ6_cjs.useConfig(activeConfigId);
1399
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
1413
1400
  const chain2 = React.useRef(null);
1414
1401
  const buildDelta = (changes) => deltaOnto(
1415
1402
  changes,
@@ -1480,8 +1467,8 @@ function pendingChatModelSave(session) {
1480
1467
  return chatModelSaves.get(session);
1481
1468
  }
1482
1469
  function useApplyChatModel() {
1483
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
1484
- const { data: availableModels } = chunk7L7QRIQ2_cjs.useAvailableModels();
1470
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
1471
+ const { data: availableModels } = chunkH3XHBIZ6_cjs.useAvailableModels();
1485
1472
  const configField = useSaveConfigField();
1486
1473
  return React.useCallback(
1487
1474
  async (model, label) => {
@@ -1529,11 +1516,11 @@ async function agentChatOwnerOf(queryClient, listAgents, conversationId) {
1529
1516
 
1530
1517
  // src/chat/thread-binding.ts
1531
1518
  function threadBinding(queryClient, conversationId) {
1532
- if (!conversationId) return chunkWUYSVTKE_cjs.UNBOUND;
1533
- const row = chunkFAJLJDWS_cjs.findConversation(queryClient, conversationId);
1534
- if (row) return chunkWUYSVTKE_cjs.bindingOfRow(row);
1519
+ if (!conversationId) return chunk6RRKO4ZK_cjs.UNBOUND;
1520
+ const row = chunkFOBB5U4Y_cjs.findConversation(queryClient, conversationId);
1521
+ if (row) return chunk6RRKO4ZK_cjs.bindingOfRow(row);
1535
1522
  const threads = queryClient.getQueryData(getThreadsQueryKey(conversationId));
1536
- return chunkWUYSVTKE_cjs.bindingOfRow(threads ? { external_id: conversationId, ...threads } : null);
1523
+ return chunk6RRKO4ZK_cjs.bindingOfRow(threads ? { external_id: conversationId, ...threads } : null);
1537
1524
  }
1538
1525
  function boundDocumentOf(queryClient, state) {
1539
1526
  return state.conversationId ? threadBinding(queryClient, state.conversationId).documentId : state.newChatDocumentId;
@@ -1543,7 +1530,7 @@ function cacheThreadBinding(queryClient, conversationId, binding) {
1543
1530
  bound_document_ext_id: binding.documentId,
1544
1531
  bound_document_unavailable: binding.unavailable
1545
1532
  };
1546
- chunkFAJLJDWS_cjs.patchConversation(queryClient, conversationId, fields);
1533
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, conversationId, fields);
1547
1534
  queryClient.setQueryData(
1548
1535
  getThreadsQueryKey(conversationId),
1549
1536
  (old) => old ? { ...old, ...fields } : old
@@ -1579,8 +1566,8 @@ async function performBindingWrite(arbi, queryClient, conversationId, documentId
1579
1566
  const saved = await arbi.conversations.update(conversationId, {
1580
1567
  bound_document_ext_id: documentId
1581
1568
  });
1582
- chunkFAJLJDWS_cjs.patchConversation(queryClient, conversationId, saved);
1583
- cacheThreadBinding(queryClient, conversationId, chunkWUYSVTKE_cjs.bindingOfRow(saved));
1569
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, conversationId, saved);
1570
+ cacheThreadBinding(queryClient, conversationId, chunk6RRKO4ZK_cjs.bindingOfRow(saved));
1584
1571
  } catch (error) {
1585
1572
  cacheThreadBinding(queryClient, conversationId, before);
1586
1573
  throw error;
@@ -1592,14 +1579,14 @@ function adoptNewChatDocument(session, queryClient, conversationId, documentId =
1592
1579
  if (session.getState().newChatDocumentId === documentId) session.setNewChatDocumentId(null);
1593
1580
  }
1594
1581
  async function migrateLegacyThreadDocuments(arbi, queryClient, conversations) {
1595
- const legacy = chunkWUYSVTKE_cjs.readLegacyThreadDocuments();
1582
+ const legacy = chunk6RRKO4ZK_cjs.readLegacyThreadDocuments();
1596
1583
  const listed = conversations.filter(
1597
1584
  (c) => c.external_id in legacy && "bound_document_unavailable" in c
1598
1585
  );
1599
1586
  if (listed.length === 0) return;
1600
1587
  await Promise.all(
1601
1588
  listed.map(async (row) => {
1602
- const server = chunkWUYSVTKE_cjs.bindingOfRow(row);
1589
+ const server = chunk6RRKO4ZK_cjs.bindingOfRow(row);
1603
1590
  if (server.documentId || server.unavailable) return;
1604
1591
  try {
1605
1592
  await bindThreadDocument(arbi, queryClient, row.external_id, legacy[row.external_id]);
@@ -1607,7 +1594,7 @@ async function migrateLegacyThreadDocuments(arbi, queryClient, conversations) {
1607
1594
  }
1608
1595
  })
1609
1596
  );
1610
- chunkWUYSVTKE_cjs.forgetLegacyThreadDocuments(listed.map((c) => c.external_id));
1597
+ chunk6RRKO4ZK_cjs.forgetLegacyThreadDocuments(listed.map((c) => c.external_id));
1611
1598
  }
1612
1599
  function resolveReplyTarget(queryClient, conversationId, parentId) {
1613
1600
  if (!parentId) return null;
@@ -1691,11 +1678,11 @@ var SNAPSHOT_MS = 500;
1691
1678
  function applyTaskEvent(queryClient, arbi, message, me) {
1692
1679
  const workspaceId = message.workspace_ext_id;
1693
1680
  if (!workspaceId) return;
1694
- if (chunkGKGAPU6T_cjs.FINISHED_DOCUMENT_STATUSES.has(message.status)) {
1695
- void chunkGKGAPU6T_cjs.refreshDocuments(queryClient, arbi, [message.doc_ext_id]);
1681
+ if (chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES.has(message.status)) {
1682
+ void chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, [message.doc_ext_id]);
1696
1683
  return;
1697
1684
  }
1698
- const cached = chunkGKGAPU6T_cjs.getCachedDocuments(queryClient, workspaceId);
1685
+ const cached = chunkNK5KFHXP_cjs.getCachedDocuments(queryClient, workspaceId);
1699
1686
  if (!cached || cached.some((d) => d.external_id === message.doc_ext_id)) return;
1700
1687
  const now = (/* @__PURE__ */ new Date()).toISOString();
1701
1688
  const placeholder = {
@@ -1712,7 +1699,7 @@ function applyTaskEvent(queryClient, arbi, message, me) {
1712
1699
  created_at: now,
1713
1700
  updated_at: now
1714
1701
  };
1715
- chunkGKGAPU6T_cjs.patchDocuments(
1702
+ chunkNK5KFHXP_cjs.patchDocuments(
1716
1703
  queryClient,
1717
1704
  (old) => old.some((d) => d.external_id === message.doc_ext_id) ? old : [...old, placeholder],
1718
1705
  workspaceId
@@ -1721,14 +1708,14 @@ function applyTaskEvent(queryClient, arbi, message, me) {
1721
1708
  function useWorkspaceProcessing(workspaceId) {
1722
1709
  const queryClient = reactQuery.useQueryClient();
1723
1710
  const arbi = chunkO32T7XRD_cjs.useArbi();
1724
- const [snapshot, setSnapshot] = React.useState(() => chunkGKGAPU6T_cjs.useArbiWsStore.getState().tasks);
1711
+ const [snapshot, setSnapshot] = React.useState(() => chunkNK5KFHXP_cjs.useArbiWsStore.getState().tasks);
1725
1712
  React.useEffect(() => {
1726
1713
  let timer = null;
1727
- const unsubscribe = chunkGKGAPU6T_cjs.useArbiWsStore.subscribe((state, previous) => {
1714
+ const unsubscribe = chunkNK5KFHXP_cjs.useArbiWsStore.subscribe((state, previous) => {
1728
1715
  if (state.tasks === previous.tasks || timer) return;
1729
1716
  timer = setTimeout(() => {
1730
1717
  timer = null;
1731
- setSnapshot(chunkGKGAPU6T_cjs.useArbiWsStore.getState().tasks);
1718
+ setSnapshot(chunkNK5KFHXP_cjs.useArbiWsStore.getState().tasks);
1732
1719
  }, SNAPSHOT_MS);
1733
1720
  });
1734
1721
  return () => {
@@ -1738,13 +1725,13 @@ function useWorkspaceProcessing(workspaceId) {
1738
1725
  }, []);
1739
1726
  React.useEffect(() => {
1740
1727
  if (!workspaceId) return;
1741
- const store2 = chunkGKGAPU6T_cjs.useArbiWsStore.getState();
1742
- const documents2 = chunkGKGAPU6T_cjs.getCachedDocuments(queryClient, workspaceId) ?? [];
1728
+ const store2 = chunkNK5KFHXP_cjs.useArbiWsStore.getState();
1729
+ const documents2 = chunkNK5KFHXP_cjs.getCachedDocuments(queryClient, workspaceId) ?? [];
1743
1730
  store2.settleTasks(documents2);
1744
1731
  const listed = new Set(documents2.map((d) => d.external_id));
1745
1732
  const now = Date.now();
1746
- for (const task of Object.values(chunkGKGAPU6T_cjs.useArbiWsStore.getState().tasks)) {
1747
- if (task.workspace_ext_id !== workspaceId || !chunkGKGAPU6T_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(task.status))
1733
+ for (const task of Object.values(chunkNK5KFHXP_cjs.useArbiWsStore.getState().tasks)) {
1734
+ if (task.workspace_ext_id !== workspaceId || !chunkNK5KFHXP_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(task.status))
1748
1735
  continue;
1749
1736
  const since = task.startTime ?? task.endTime;
1750
1737
  const age = since == null ? null : now - since;
@@ -1757,16 +1744,16 @@ function useWorkspaceProcessing(workspaceId) {
1757
1744
  if (!workspaceId) return;
1758
1745
  const unsubscribeReads = subscribeDocumentReads(
1759
1746
  queryClient,
1760
- (rows) => chunkGKGAPU6T_cjs.useArbiWsStore.getState().settleTasks(rows)
1747
+ (rows) => chunkNK5KFHXP_cjs.useArbiWsStore.getState().settleTasks(rows)
1761
1748
  );
1762
1749
  const recheck = async () => {
1763
- const ids2 = Object.values(chunkGKGAPU6T_cjs.useArbiWsStore.getState().tasks).filter(
1764
- (t) => t.workspace_ext_id === workspaceId && chunkGKGAPU6T_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(t.status)
1750
+ const ids2 = Object.values(chunkNK5KFHXP_cjs.useArbiWsStore.getState().tasks).filter(
1751
+ (t) => t.workspace_ext_id === workspaceId && chunkNK5KFHXP_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(t.status)
1765
1752
  ).map((t) => t.doc_ext_id);
1766
- if (ids2.length) await chunkGKGAPU6T_cjs.refreshDocuments(queryClient, arbi, ids2);
1753
+ if (ids2.length) await chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, ids2);
1767
1754
  };
1768
- let wasConnected = chunkGKGAPU6T_cjs.useArbiWsStore.getState().status === "connected";
1769
- const unsubscribeStatus = chunkGKGAPU6T_cjs.useArbiWsStore.subscribe((state) => {
1755
+ let wasConnected = chunkNK5KFHXP_cjs.useArbiWsStore.getState().status === "connected";
1756
+ const unsubscribeStatus = chunkNK5KFHXP_cjs.useArbiWsStore.subscribe((state) => {
1770
1757
  const connected = state.status === "connected";
1771
1758
  if (connected && !wasConnected) void recheck();
1772
1759
  wasConnected = connected;
@@ -1781,11 +1768,11 @@ function useWorkspaceProcessing(workspaceId) {
1781
1768
  const count = (statuses) => allTasks.filter(
1782
1769
  (t) => Array.isArray(statuses) ? statuses.includes(t.status) : statuses.has(t.status)
1783
1770
  ).length;
1784
- const { clearTask, clearFinishedTasks } = chunkGKGAPU6T_cjs.useArbiWsStore.getState();
1771
+ const { clearTask, clearFinishedTasks } = chunkNK5KFHXP_cjs.useArbiWsStore.getState();
1785
1772
  return {
1786
1773
  tasks: Object.fromEntries(allTasks.map((t) => [t.doc_ext_id, t])),
1787
1774
  allTasks,
1788
- processingCount: count(chunkGKGAPU6T_cjs.IN_FLIGHT_DOCUMENT_STATUSES),
1775
+ processingCount: count(chunkNK5KFHXP_cjs.IN_FLIGHT_DOCUMENT_STATUSES),
1789
1776
  completedCount: count(["completed", "low-content"]),
1790
1777
  failedCount: count(["failed"]),
1791
1778
  skippedCount: count(["skipped"]),
@@ -1797,7 +1784,7 @@ function useWorkspaceProcessing(workspaceId) {
1797
1784
  function applyOptimisticDocumentEdit(qc, updates) {
1798
1785
  const byId = new Map(updates.map((update2) => [update2.external_id, update2]));
1799
1786
  const previous = [];
1800
- chunkGKGAPU6T_cjs.patchDocuments(qc, (old) => {
1787
+ chunkNK5KFHXP_cjs.patchDocuments(qc, (old) => {
1801
1788
  let changed = false;
1802
1789
  const next = old.map((doc) => {
1803
1790
  const update2 = byId.get(doc.external_id);
@@ -1812,7 +1799,7 @@ function applyOptimisticDocumentEdit(qc, updates) {
1812
1799
  const own = qc.getQueryData(
1813
1800
  chunkO32T7XRD_cjs.arbiQueryKeys.document(update2.external_id)
1814
1801
  );
1815
- if (own) chunkGKGAPU6T_cjs.setCachedDocument(qc, { ...own, ...update2 });
1802
+ if (own) chunkNK5KFHXP_cjs.setCachedDocument(qc, { ...own, ...update2 });
1816
1803
  return [update2.external_id, own];
1817
1804
  });
1818
1805
  return { optimistic: true, previous, previousOwn };
@@ -1822,7 +1809,7 @@ function rollbackOptimisticDocumentEdit(qc, context) {
1822
1809
  if (!edit?.optimistic) return;
1823
1810
  if (edit.previous.length) {
1824
1811
  const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
1825
- chunkGKGAPU6T_cjs.patchDocuments(
1812
+ chunkNK5KFHXP_cjs.patchDocuments(
1826
1813
  qc,
1827
1814
  (old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
1828
1815
  );
@@ -1832,19 +1819,19 @@ function rollbackOptimisticDocumentEdit(qc, context) {
1832
1819
  function settleUpdatedDocuments(qc, updated) {
1833
1820
  if (!updated.length) return;
1834
1821
  const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
1835
- chunkGKGAPU6T_cjs.patchDocuments(
1822
+ chunkNK5KFHXP_cjs.patchDocuments(
1836
1823
  qc,
1837
1824
  (old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
1838
1825
  );
1839
- for (const doc of updated) chunkGKGAPU6T_cjs.setCachedDocument(qc, doc);
1826
+ for (const doc of updated) chunkNK5KFHXP_cjs.setCachedDocument(qc, doc);
1840
1827
  }
1841
1828
  function patchEachDocument(qc, docIds, reducer) {
1842
1829
  const ids2 = new Set(docIds);
1843
- chunkGKGAPU6T_cjs.patchDocuments(
1830
+ chunkNK5KFHXP_cjs.patchDocuments(
1844
1831
  qc,
1845
1832
  (old) => old.some((doc) => ids2.has(doc.external_id)) ? old.map((doc) => ids2.has(doc.external_id) ? reducer(doc) : doc) : old
1846
1833
  );
1847
- for (const id of ids2) chunkGKGAPU6T_cjs.patchCachedDocument(qc, id, reducer);
1834
+ for (const id of ids2) chunkNK5KFHXP_cjs.patchCachedDocument(qc, id, reducer);
1848
1835
  }
1849
1836
  function workspaceOf(qc, docId) {
1850
1837
  for (const [, docs] of qc.getQueriesData({
@@ -1871,7 +1858,7 @@ function settleAssignedDocTags(qc, created) {
1871
1858
  ...doc,
1872
1859
  doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
1873
1860
  }));
1874
- for (const [workspaceId, delta] of workspaces) chunkGKGAPU6T_cjs.adjustTagCounts(qc, workspaceId, delta);
1861
+ for (const [workspaceId, delta] of workspaces) chunkNK5KFHXP_cjs.adjustTagCounts(qc, workspaceId, delta);
1875
1862
  }
1876
1863
  function settleRemovedDocTags(qc, { tagId, docIds }) {
1877
1864
  const ids2 = new Set(docIds);
@@ -1893,7 +1880,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
1893
1880
  doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
1894
1881
  }));
1895
1882
  for (const [workspaceId, removed] of removedByWorkspace)
1896
- chunkGKGAPU6T_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
1883
+ chunkNK5KFHXP_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
1897
1884
  }
1898
1885
  function settleUpdatedDocTag(qc, updated) {
1899
1886
  patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
@@ -1901,23 +1888,23 @@ function settleUpdatedDocTag(qc, updated) {
1901
1888
  doctags: (doc.doctags ?? []).map((dt) => dt.tag_ext_id === updated.tag_ext_id ? updated : dt)
1902
1889
  }));
1903
1890
  }
1904
- var sendUpdateDocuments = (client, input) => chunkGKGAPU6T_cjs.inWorkspace(
1905
- chunkGKGAPU6T_cjs.primeOnClient(client),
1891
+ var sendUpdateDocuments = (client, input) => chunkNK5KFHXP_cjs.inWorkspace(
1892
+ chunkNK5KFHXP_cjs.primeOnClient(client),
1906
1893
  input.workspaceId,
1907
1894
  () => browser.documents.updateDocuments(client, input.documents)
1908
1895
  );
1909
- var sendAssignDocTags = (client, input) => chunkGKGAPU6T_cjs.inWorkspace(
1910
- chunkGKGAPU6T_cjs.primeOnClient(client),
1896
+ var sendAssignDocTags = (client, input) => chunkNK5KFHXP_cjs.inWorkspace(
1897
+ chunkNK5KFHXP_cjs.primeOnClient(client),
1911
1898
  input.workspaceId,
1912
1899
  () => browser.doctags.assignDocTags(client, input.tagId, input.docIds, input.note, input.citations)
1913
1900
  );
1914
- var sendRemoveDocTags = (client, input) => chunkGKGAPU6T_cjs.inWorkspace(
1915
- chunkGKGAPU6T_cjs.primeOnClient(client),
1901
+ var sendRemoveDocTags = (client, input) => chunkNK5KFHXP_cjs.inWorkspace(
1902
+ chunkNK5KFHXP_cjs.primeOnClient(client),
1916
1903
  input.workspaceId,
1917
1904
  () => browser.doctags.removeDocTags(client, input.tagId, input.docIds)
1918
1905
  );
1919
- var sendUpdateDocTag = (client, input) => chunkGKGAPU6T_cjs.inWorkspace(
1920
- chunkGKGAPU6T_cjs.primeOnClient(client),
1906
+ var sendUpdateDocTag = (client, input) => chunkNK5KFHXP_cjs.inWorkspace(
1907
+ chunkNK5KFHXP_cjs.primeOnClient(client),
1921
1908
  input.workspaceId,
1922
1909
  () => browser.doctags.updateDocTag(client, input.tagId, input.docId, {
1923
1910
  note: input.note,
@@ -1970,7 +1957,7 @@ function useMarkDocumentShared() {
1970
1957
  const qc = reactQuery.useQueryClient();
1971
1958
  return React.useCallback(
1972
1959
  (documentExtId) => {
1973
- chunkGKGAPU6T_cjs.patchDocuments(
1960
+ chunkNK5KFHXP_cjs.patchDocuments(
1974
1961
  qc,
1975
1962
  (old) => old.map((doc) => doc.external_id === documentExtId ? { ...doc, shared: true } : doc)
1976
1963
  );
@@ -1986,21 +1973,21 @@ function useUpdateDocuments() {
1986
1973
  (input) => input.documents[0]?.external_id
1987
1974
  );
1988
1975
  return resolvingOffline(
1989
- chunkGKGAPU6T_cjs.useCapturingWorkspace(
1976
+ chunkNK5KFHXP_cjs.useCapturingWorkspace(
1990
1977
  reactQuery.useMutation({
1991
1978
  mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.updateDocuments(),
1992
- mutationFn: (input) => chunkGKGAPU6T_cjs.inWorkspace(
1993
- chunkGKGAPU6T_cjs.primeOnArbi(arbi),
1979
+ mutationFn: (input) => chunkNK5KFHXP_cjs.inWorkspace(
1980
+ chunkNK5KFHXP_cjs.primeOnArbi(arbi),
1994
1981
  input.workspaceId,
1995
1982
  () => arbi.documents.update(input.documents)
1996
1983
  ),
1997
1984
  onMutate: ({ documents: documents2 }) => reactQuery.onlineManager.isOnline() || !documents2.length ? void 0 : applyOptimisticDocumentEdit(qc, documents2),
1998
1985
  // Not sent because its workspace can't be opened: the edit stays, listed as not sent.
1999
1986
  onError: (error, _input, context) => {
2000
- if (!chunkGKGAPU6T_cjs.isWorkspaceUnavailable(error)) rollbackOptimisticDocumentEdit(qc, context);
1987
+ if (!chunkNK5KFHXP_cjs.isWorkspaceUnavailable(error)) rollbackOptimisticDocumentEdit(qc, context);
2001
1988
  },
2002
1989
  onSuccess: (updated) => settleUpdatedDocuments(qc, updated),
2003
- ...chunkGKGAPU6T_cjs.QUEUED_WRITE_RETRY
1990
+ ...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
2004
1991
  }),
2005
1992
  capture
2006
1993
  )
@@ -2026,7 +2013,7 @@ function useRenameFolder() {
2026
2013
  return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
2027
2014
  });
2028
2015
  if (updates.length > 0) await mutateAsync({ documents: updates });
2029
- chunkGKGAPU6T_cjs.patchDocuments(qc, (rows) => {
2016
+ chunkNK5KFHXP_cjs.patchDocuments(qc, (rows) => {
2030
2017
  let changed = false;
2031
2018
  const next = rows.map((doc) => {
2032
2019
  const folder = moved(doc.folder);
@@ -2049,19 +2036,19 @@ function useDeleteDocuments() {
2049
2036
  mutationFn: (docIds) => arbi.documents.delete(docIds),
2050
2037
  onSuccess: (_data, docIds) => {
2051
2038
  const gone = new Set(docIds);
2052
- chunkGKGAPU6T_cjs.patchDocuments(
2039
+ chunkNK5KFHXP_cjs.patchDocuments(
2053
2040
  qc,
2054
2041
  (old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
2055
2042
  );
2056
- chunkGKGAPU6T_cjs.forgetDocuments(qc, docIds);
2057
- const { clearTask } = chunkGKGAPU6T_cjs.useArbiWsStore.getState();
2043
+ chunkNK5KFHXP_cjs.forgetDocuments(qc, docIds);
2044
+ const { clearTask } = chunkNK5KFHXP_cjs.useArbiWsStore.getState();
2058
2045
  for (const id of docIds) clearTask(id);
2059
2046
  return qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.workspaces() });
2060
2047
  }
2061
2048
  });
2062
2049
  }
2063
2050
  async function settleUpload(qc, arbi, docIds) {
2064
- if (docIds?.length) await chunkGKGAPU6T_cjs.refreshDocuments(qc, arbi, docIds);
2051
+ if (docIds?.length) await chunkNK5KFHXP_cjs.refreshDocuments(qc, arbi, docIds);
2065
2052
  await qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.workspaces() });
2066
2053
  }
2067
2054
  function useUploadDocuments() {
@@ -2091,16 +2078,16 @@ function useAssignDocTags() {
2091
2078
  const qc = reactQuery.useQueryClient();
2092
2079
  const capture = useDocumentWriteWorkspace((input) => input.docIds[0]);
2093
2080
  return resolvingOffline(
2094
- chunkGKGAPU6T_cjs.useCapturingWorkspace(
2081
+ chunkNK5KFHXP_cjs.useCapturingWorkspace(
2095
2082
  reactQuery.useMutation({
2096
2083
  mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.assignDocTags(),
2097
- mutationFn: ({ workspaceId, tagId, docIds, note, citations }) => chunkGKGAPU6T_cjs.inWorkspace(
2098
- chunkGKGAPU6T_cjs.primeOnArbi(arbi),
2084
+ mutationFn: ({ workspaceId, tagId, docIds, note, citations }) => chunkNK5KFHXP_cjs.inWorkspace(
2085
+ chunkNK5KFHXP_cjs.primeOnArbi(arbi),
2099
2086
  workspaceId,
2100
2087
  () => arbi.doctags.assign(tagId, docIds, note, citations)
2101
2088
  ),
2102
2089
  onSuccess: (created) => settleAssignedDocTags(qc, created),
2103
- ...chunkGKGAPU6T_cjs.QUEUED_WRITE_RETRY
2090
+ ...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
2104
2091
  }),
2105
2092
  capture
2106
2093
  )
@@ -2111,12 +2098,12 @@ function useRemoveDocTags() {
2111
2098
  const qc = reactQuery.useQueryClient();
2112
2099
  const capture = useDocumentWriteWorkspace((input) => input.docIds[0]);
2113
2100
  return resolvingOffline(
2114
- chunkGKGAPU6T_cjs.useCapturingWorkspace(
2101
+ chunkNK5KFHXP_cjs.useCapturingWorkspace(
2115
2102
  reactQuery.useMutation({
2116
2103
  mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.removeDocTags(),
2117
- mutationFn: ({ workspaceId, tagId, docIds }) => chunkGKGAPU6T_cjs.inWorkspace(chunkGKGAPU6T_cjs.primeOnArbi(arbi), workspaceId, () => arbi.doctags.remove(tagId, docIds)),
2104
+ mutationFn: ({ workspaceId, tagId, docIds }) => chunkNK5KFHXP_cjs.inWorkspace(chunkNK5KFHXP_cjs.primeOnArbi(arbi), workspaceId, () => arbi.doctags.remove(tagId, docIds)),
2118
2105
  onSuccess: (_data, input) => settleRemovedDocTags(qc, input),
2119
- ...chunkGKGAPU6T_cjs.QUEUED_WRITE_RETRY
2106
+ ...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
2120
2107
  }),
2121
2108
  capture
2122
2109
  )
@@ -2127,23 +2114,23 @@ function useUpdateDocTag() {
2127
2114
  const qc = reactQuery.useQueryClient();
2128
2115
  const capture = useDocumentWriteWorkspace((input) => input.docId);
2129
2116
  return resolvingOffline(
2130
- chunkGKGAPU6T_cjs.useCapturingWorkspace(
2117
+ chunkNK5KFHXP_cjs.useCapturingWorkspace(
2131
2118
  reactQuery.useMutation({
2132
2119
  mutationKey: chunkO32T7XRD_cjs.arbiMutationKeys.updateDocTag(),
2133
- mutationFn: ({ workspaceId, tagId, docId, note, citations }) => chunkGKGAPU6T_cjs.inWorkspace(
2134
- chunkGKGAPU6T_cjs.primeOnArbi(arbi),
2120
+ mutationFn: ({ workspaceId, tagId, docId, note, citations }) => chunkNK5KFHXP_cjs.inWorkspace(
2121
+ chunkNK5KFHXP_cjs.primeOnArbi(arbi),
2135
2122
  workspaceId,
2136
2123
  () => arbi.doctags.update(tagId, docId, { note, citations })
2137
2124
  ),
2138
2125
  onSuccess: (updated) => settleUpdatedDocTag(qc, updated),
2139
- ...chunkGKGAPU6T_cjs.QUEUED_WRITE_RETRY
2126
+ ...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
2140
2127
  }),
2141
2128
  capture
2142
2129
  )
2143
2130
  );
2144
2131
  }
2145
2132
  function queueProcessing(documents2) {
2146
- const store2 = chunkGKGAPU6T_cjs.useArbiWsStore.getState();
2133
+ const store2 = chunkNK5KFHXP_cjs.useArbiWsStore.getState();
2147
2134
  const previous = documents2.map(({ docId }) => [docId, store2.tasks[docId]]);
2148
2135
  const now = Date.now();
2149
2136
  for (const doc of documents2)
@@ -2156,7 +2143,7 @@ function queueProcessing(documents2) {
2156
2143
  progress: 0,
2157
2144
  startTime: now
2158
2145
  });
2159
- return () => chunkGKGAPU6T_cjs.useArbiWsStore.setState((state) => {
2146
+ return () => chunkNK5KFHXP_cjs.useArbiWsStore.setState((state) => {
2160
2147
  const tasks = { ...state.tasks };
2161
2148
  for (const [docId, task] of previous) {
2162
2149
  if (task) tasks[docId] = task;
@@ -2175,7 +2162,7 @@ function useGenerateDocTags() {
2175
2162
  if (!docIds.length) return void 0;
2176
2163
  const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
2177
2164
  const listed = new Map(
2178
- (chunkGKGAPU6T_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
2165
+ (chunkNK5KFHXP_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
2179
2166
  );
2180
2167
  return {
2181
2168
  undo: queueProcessing(
@@ -2196,7 +2183,7 @@ function useFinaliseTranslation() {
2196
2183
  const qc = reactQuery.useQueryClient();
2197
2184
  return reactQuery.useMutation({
2198
2185
  mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
2199
- onSuccess: (result) => void chunkGKGAPU6T_cjs.refreshDocuments(qc, arbi, [result.document_ext_id])
2186
+ onSuccess: (result) => void chunkNK5KFHXP_cjs.refreshDocuments(qc, arbi, [result.document_ext_id])
2200
2187
  });
2201
2188
  }
2202
2189
 
@@ -2206,10 +2193,10 @@ function useDocumentsSupport() {
2206
2193
  return chunkO32T7XRD_cjs.useArbiHost().documents ?? NO_SUPPORT;
2207
2194
  }
2208
2195
  function useProcessingTasks() {
2209
- return chunkGKGAPU6T_cjs.useArbiWsStore((state) => state.tasks);
2196
+ return chunkNK5KFHXP_cjs.useArbiWsStore((state) => state.tasks);
2210
2197
  }
2211
2198
  function useProcessingTask(docId) {
2212
- return chunkGKGAPU6T_cjs.useArbiWsStore((state) => state.tasks[docId]);
2199
+ return chunkNK5KFHXP_cjs.useArbiWsStore((state) => state.tasks[docId]);
2213
2200
  }
2214
2201
  var NO_ACTIONS = {};
2215
2202
  function useDocumentHostActions() {
@@ -2272,7 +2259,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
2272
2259
  const [isDownloading, setIsDownloading] = React.useState(false);
2273
2260
  const fetchNamedFile = React.useCallback(
2274
2261
  async (doc) => {
2275
- const blob = await chunk3JAEX57E_cjs.fetchDocumentFile(arbi.getClient().fetch, doc.external_id);
2262
+ const blob = await chunkG5DYDBQN_cjs.fetchDocumentFile(arbi.getClient().fetch, doc.external_id);
2276
2263
  return { blob, name: blob instanceof File && blob.name ? blob.name : fallbackFileName(doc) };
2277
2264
  },
2278
2265
  [arbi]
@@ -2314,7 +2301,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
2314
2301
  );
2315
2302
  }
2316
2303
  const zipFileName = archiveName(workspaceName, `${successCount}_documents`);
2317
- chunk3JAEX57E_cjs.downloadBlob(await zip.generateAsync({ type: "blob" }), zipFileName);
2304
+ chunkG5DYDBQN_cjs.downloadBlob(await zip.generateAsync({ type: "blob" }), zipFileName);
2318
2305
  const documentsLabel = `${successCount} document${successCount !== 1 ? "s" : ""}`;
2319
2306
  const contents = includeMetadataCsv ? `${documentsLabel} and index.csv in ${zipFileName}` : `${documentsLabel} in ${zipFileName}`;
2320
2307
  if (failedDocs.length === 0) chunkIX4HOS5Z_cjs.notify.success(`Successfully downloaded ${contents}`);
@@ -2333,7 +2320,7 @@ function useDownloadDocuments({ workspaceName } = {}) {
2333
2320
  setIsDownloading(true);
2334
2321
  try {
2335
2322
  const file = await fetchNamedFile(doc);
2336
- chunk3JAEX57E_cjs.downloadBlob(file.blob, file.name);
2323
+ chunkG5DYDBQN_cjs.downloadBlob(file.blob, file.name);
2337
2324
  chunkIX4HOS5Z_cjs.notify.success(`Successfully downloaded ${file.name}`);
2338
2325
  } catch (error) {
2339
2326
  console.error("Failed to download document", error);
@@ -2403,7 +2390,7 @@ function useDocumentThumbnails(visibleIds) {
2403
2390
  for (const id of visibleIds)
2404
2391
  if (IN_PROGRESS.has(tasks[id]?.status ?? "")) resolvedRef.current.delete(id);
2405
2392
  const ready = visibleIds.filter(
2406
- (id) => !resolvedRef.current.has(id) && chunkGKGAPU6T_cjs.FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
2393
+ (id) => !resolvedRef.current.has(id) && chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
2407
2394
  );
2408
2395
  if (ready.length > 0) void fetchMissing(ready);
2409
2396
  }, [tasks, idsKey, fetchMissing]);
@@ -2425,20 +2412,20 @@ function DocumentReview({
2425
2412
  onClose,
2426
2413
  className
2427
2414
  }) {
2428
- const processingInProp = !!doc?.status && !chunkGKGAPU6T_cjs.FINISHED_DOCUMENT_STATUSES.has(doc.status);
2429
- const { data: polled } = chunkGKGAPU6T_cjs.useDocument(docId, {
2415
+ const processingInProp = !!doc?.status && !chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES.has(doc.status);
2416
+ const { data: polled } = chunkNK5KFHXP_cjs.useDocument(docId, {
2430
2417
  enabled: processingInProp,
2431
2418
  pollWhileProcessing: true
2432
2419
  });
2433
2420
  const status = processingInProp ? polled?.status ?? doc?.status : doc?.status;
2434
2421
  const noTextYet = stage === "final" && !!status && !PARSED_STATUSES.has(status);
2435
- const parsedQuery = chunk7L7QRIQ2_cjs.useParsedDocument(docId, stage, { enabled: !noTextYet });
2422
+ const parsedQuery = chunkH3XHBIZ6_cjs.useParsedDocument(docId, stage, { enabled: !noTextYet });
2436
2423
  const { isError: parsedFailed, refetch: refetchParsed } = parsedQuery;
2437
2424
  const readable = !!status && !noTextYet;
2438
2425
  React__default.default.useEffect(() => {
2439
2426
  if (readable && parsedFailed) void refetchParsed();
2440
2427
  }, [readable]);
2441
- const tagsQuery = chunk7L7QRIQ2_cjs.useTags(workspaceId);
2428
+ const tagsQuery = chunkH3XHBIZ6_cjs.useTags(workspaceId);
2442
2429
  const tagNameById = React__default.default.useMemo(() => {
2443
2430
  const map = /* @__PURE__ */ new Map();
2444
2431
  for (const t of tagsQuery.data ?? []) {
@@ -3343,7 +3330,7 @@ function useUploadFiles() {
3343
3330
  const arbi = chunkO32T7XRD_cjs.useArbi();
3344
3331
  const qc = reactQuery.useQueryClient();
3345
3332
  const { resolveWorkspaceKey } = useDocumentsSupport();
3346
- const { data: settings } = chunkFAJLJDWS_cjs.useUserSettings();
3333
+ const { data: settings } = chunkFOBB5U4Y_cjs.useUserSettings();
3347
3334
  const { mutateAsync: generateDocTags } = useGenerateDocTags();
3348
3335
  const direct = settings?.use_s3_direct_upload === true;
3349
3336
  return React.useCallback(
@@ -3433,7 +3420,7 @@ function useUploadFiles() {
3433
3420
  if (docIds2.length > 0) {
3434
3421
  for (const docId of docIds2) uploadedFolders.set(docId, { workspaceId, folder });
3435
3422
  const made = new Set(docIds2);
3436
- chunkGKGAPU6T_cjs.patchDocuments(
3423
+ chunkNK5KFHXP_cjs.patchDocuments(
3437
3424
  qc,
3438
3425
  (rows) => rows.map((doc) => made.has(doc.external_id) ? { ...doc, folder } : doc),
3439
3426
  workspaceId
@@ -3450,7 +3437,7 @@ function useUploadFiles() {
3450
3437
  const docIds = results.flatMap((result) => result.doc_ext_ids ?? []);
3451
3438
  const skipped = results.flatMap((result) => result.skipped ?? []);
3452
3439
  if (docIds.length > 0) {
3453
- const read = await chunkGKGAPU6T_cjs.refreshDocuments(qc, arbi, docIds);
3440
+ const read = await chunkNK5KFHXP_cjs.refreshDocuments(qc, arbi, docIds);
3454
3441
  for (const doc of read) forgetUploadedDocumentFolder(doc.external_id);
3455
3442
  }
3456
3443
  await qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.workspaces() });
@@ -3544,7 +3531,7 @@ function getRelatedLabels(related) {
3544
3531
  return parts;
3545
3532
  }
3546
3533
  function useRelatedDocuments(documents2) {
3547
- const { data: similarData } = chunkGKGAPU6T_cjs.useSimilarDocuments();
3534
+ const { data: similarData } = chunkNK5KFHXP_cjs.useSimilarDocuments();
3548
3535
  const structuralKey = React.useMemo(() => {
3549
3536
  const parts = [];
3550
3537
  for (const doc of documents2) {
@@ -3624,7 +3611,7 @@ function useRelatedDocuments(documents2) {
3624
3611
  }
3625
3612
  if (similarData?.pairs) {
3626
3613
  for (const pair of similarData.pairs) {
3627
- if (pair.similarity < chunkGKGAPU6T_cjs.SIMILARITY_THRESHOLD || pair.similarity >= 1) continue;
3614
+ if (pair.similarity < chunkNK5KFHXP_cjs.SIMILARITY_THRESHOLD || pair.similarity >= 1) continue;
3628
3615
  const docA = docById.get(pair.doc_a.external_id);
3629
3616
  const docB = docById.get(pair.doc_b.external_id);
3630
3617
  if (docA && docB) {
@@ -3644,7 +3631,7 @@ function useRelatedDocuments(documents2) {
3644
3631
  }, [documents2, similarData, structuralKey]);
3645
3632
  }
3646
3633
  var REPLAYABLE = [
3647
- ...chunkGKGAPU6T_cjs.replayableTagMutations,
3634
+ ...chunkNK5KFHXP_cjs.replayableTagMutations,
3648
3635
  ...replayableDocumentMutations
3649
3636
  ];
3650
3637
  function isReplayableArbiMutation(mutationKey) {
@@ -3658,7 +3645,7 @@ function registerArbiMutationDefaults(queryClient, client) {
3658
3645
  // kept as not sent.
3659
3646
  mutationFn: (variables) => m.run(client(), variables),
3660
3647
  onSuccess: (data, variables) => m.settle(queryClient, data, variables),
3661
- ...chunkGKGAPU6T_cjs.QUEUED_WRITE_RETRY
3648
+ ...chunkNK5KFHXP_cjs.QUEUED_WRITE_RETRY
3662
3649
  });
3663
3650
  }
3664
3651
  }
@@ -3686,7 +3673,7 @@ function isRestorableArbiQueryOnline(queryKey, data) {
3686
3673
  const docs = Array.isArray(data) ? data : [data];
3687
3674
  return !docs.some((doc) => {
3688
3675
  const status = doc?.status;
3689
- return !!status && !chunkGKGAPU6T_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
3676
+ return !!status && !chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
3690
3677
  });
3691
3678
  }
3692
3679
 
@@ -3785,7 +3772,7 @@ function buildPendingSyncItem(raw, docNameById, tagNameById) {
3785
3772
  status: raw.status,
3786
3773
  at: raw.at,
3787
3774
  docIds,
3788
- ...raw.blocked ? { notice: chunkGKGAPU6T_cjs.QUEUED_WRITE_BLOCKED_MESSAGE } : {}
3775
+ ...raw.blocked ? { notice: chunkNK5KFHXP_cjs.QUEUED_WRITE_BLOCKED_MESSAGE } : {}
3789
3776
  };
3790
3777
  }
3791
3778
  var PENDING_SYNC_PREDICATE = (m) => (
@@ -3800,11 +3787,11 @@ var PENDING_SYNC_PREDICATE = (m) => (
3800
3787
  // flash "pending/syncing" while fully online. `error` is kept so a failed
3801
3788
  // sync stays visible to review/undo.
3802
3789
  // A write held back because its workspace can't be opened (tried again meanwhile) is waiting too.
3803
- isReplayableArbiMutation(m.options.mutationKey) && (m.state.isPaused || m.state.status === "error" || chunkGKGAPU6T_cjs.isBlockedOnWorkspace(m))
3790
+ isReplayableArbiMutation(m.options.mutationKey) && (m.state.isPaused || m.state.status === "error" || chunkNK5KFHXP_cjs.isBlockedOnWorkspace(m))
3804
3791
  );
3805
3792
  function usePendingSyncItems() {
3806
- const { data: documents2 } = chunkGKGAPU6T_cjs.useDocuments();
3807
- const { data: tags } = chunk7L7QRIQ2_cjs.useTags();
3793
+ const { data: documents2 } = chunkNK5KFHXP_cjs.useDocuments();
3794
+ const { data: tags } = chunkH3XHBIZ6_cjs.useTags();
3808
3795
  const raw = reactQuery.useMutationState({
3809
3796
  filters: { predicate: PENDING_SYNC_PREDICATE },
3810
3797
  select: (m) => ({
@@ -3812,9 +3799,9 @@ function usePendingSyncItems() {
3812
3799
  kind: kindOf(m.options.mutationKey) ?? "fields",
3813
3800
  variables: m.state.variables,
3814
3801
  context: m.state.context,
3815
- status: statusOf(m.state.isPaused, m.state.status, chunkGKGAPU6T_cjs.isBlockedOnWorkspace(m)),
3802
+ status: statusOf(m.state.isPaused, m.state.status, chunkNK5KFHXP_cjs.isBlockedOnWorkspace(m)),
3816
3803
  at: m.state.submittedAt,
3817
- blocked: chunkGKGAPU6T_cjs.isBlockedOnWorkspace(m)
3804
+ blocked: chunkNK5KFHXP_cjs.isBlockedOnWorkspace(m)
3818
3805
  })
3819
3806
  });
3820
3807
  return React.useMemo(() => {
@@ -3958,7 +3945,7 @@ async function keepDocumentsOffline(client$1, docs) {
3958
3945
  if (!keypair) throw new Error("Could not derive an encryption key for the offline copy.");
3959
3946
  for (const doc of docs) {
3960
3947
  const original = chunk4NGWDVHD_cjs.usesOriginalBytesForViewer(doc.file_name);
3961
- const blob = original ? await chunk3JAEX57E_cjs.fetchDocumentFile(client$1, doc.external_id) : await chunk3JAEX57E_cjs.fetchDocumentPdf(client$1, doc.external_id);
3948
+ const blob = original ? await chunkG5DYDBQN_cjs.fetchDocumentFile(client$1, doc.external_id) : await chunkG5DYDBQN_cjs.fetchDocumentPdf(client$1, doc.external_id);
3962
3949
  const plain = new Uint8Array(await blob.arrayBuffer());
3963
3950
  await putOfflineDocument({
3964
3951
  docExtId: doc.external_id,
@@ -3989,7 +3976,7 @@ function useKeepDocumentsOffline() {
3989
3976
  return reactQuery.useMutation({
3990
3977
  mutationFn: async (docs) => {
3991
3978
  await keepDocumentsOffline(arbi.getClient().fetch, docs);
3992
- for (const doc of docs) chunkGKGAPU6T_cjs.setCachedDocument(queryClient, doc);
3979
+ for (const doc of docs) chunkNK5KFHXP_cjs.setCachedDocument(queryClient, doc);
3993
3980
  await onKeptOffline?.();
3994
3981
  return docs.length;
3995
3982
  },
@@ -4024,11 +4011,11 @@ function createStreamHandlers(ctx, params) {
4024
4011
  const clientId = streamState.queuedClientId;
4025
4012
  if (!clientId || queuedEntryRetired) return;
4026
4013
  queuedEntryRetired = true;
4027
- const entry = chunk7L7QRIQ2_cjs.queuedMessages.find(session.getState().queuedMessages, clientId);
4014
+ const entry = chunkH3XHBIZ6_cjs.queuedMessages.find(session.getState().queuedMessages, clientId);
4028
4015
  if (!entry) return;
4029
4016
  const remainingVisibility = Math.max(
4030
4017
  0,
4031
- chunk7L7QRIQ2_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS - (Date.now() - entry.createdAt)
4018
+ chunkH3XHBIZ6_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS - (Date.now() - entry.createdAt)
4032
4019
  );
4033
4020
  if (remainingVisibility === 0) {
4034
4021
  session.removeQueuedMessage(clientId);
@@ -4044,7 +4031,7 @@ function createStreamHandlers(ctx, params) {
4044
4031
  session.moveConversation("new", serverConversationId);
4045
4032
  const userExtId = ctx.userId();
4046
4033
  const nowIso = (/* @__PURE__ */ new Date()).toISOString();
4047
- chunkFAJLJDWS_cjs.patchConversationList(
4034
+ chunkFOBB5U4Y_cjs.patchConversationList(
4048
4035
  queryClient,
4049
4036
  streamState.workspaceId ?? session.getState().workspaceId,
4050
4037
  (old) => old.some((c) => c.external_id === serverConversationId) ? old : [
@@ -4166,7 +4153,7 @@ function createStreamHandlers(ctx, params) {
4166
4153
  ensureAssistantMessageLoading(queryClient, conversationId, answerId);
4167
4154
  });
4168
4155
  }
4169
- void chunkFAJLJDWS_cjs.invalidateConversationLists(queryClient);
4156
+ void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
4170
4157
  session.setCursor(streamState.assistantId);
4171
4158
  };
4172
4159
  let firstTokenSeen = false;
@@ -4366,7 +4353,7 @@ function createStreamHandlers(ctx, params) {
4366
4353
  }
4367
4354
  function useStreamHandlers() {
4368
4355
  const queryClient = reactQuery.useQueryClient();
4369
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
4356
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
4370
4357
  const config = chunkO32T7XRD_cjs.useArbiHost();
4371
4358
  const arbi = chunkO32T7XRD_cjs.useArbi();
4372
4359
  return React.useCallback(
@@ -4382,7 +4369,7 @@ function useStreamHandlers() {
4382
4369
  return "";
4383
4370
  }
4384
4371
  },
4385
- refreshDocuments: (ids2) => chunkGKGAPU6T_cjs.refreshDocuments(queryClient, arbi, ids2)
4372
+ refreshDocuments: (ids2) => chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, ids2)
4386
4373
  },
4387
4374
  params
4388
4375
  ),
@@ -4459,7 +4446,7 @@ function cachedQuotaUsedUp(queryClient, workspaceId) {
4459
4446
  // src/chat/useConversationActions.ts
4460
4447
  var RECONCILE_TIMEOUT_MS = 5e3;
4461
4448
  function draftAfterSend(queryClient, session, wasComment, assistantName) {
4462
- const shared = chunkFAJLJDWS_cjs.isConversationShared(queryClient, session.getState().conversationId);
4449
+ const shared = chunkFOBB5U4Y_cjs.isConversationShared(queryClient, session.getState().conversationId);
4463
4450
  return shared && !wasComment ? `@${assistantName} ` : "";
4464
4451
  }
4465
4452
  function failQueuedContinuation(queryClient, session, streamState) {
@@ -4492,7 +4479,7 @@ function useConversationActions({
4492
4479
  lastFailedMessage
4493
4480
  }) {
4494
4481
  const queryClient = reactQuery.useQueryClient();
4495
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
4482
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
4496
4483
  const currentConversationId = conversationKey2 === "new" ? null : conversationKey2;
4497
4484
  const invalidateUserWorkspaces = React.useCallback(
4498
4485
  () => void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.workspaces() }),
@@ -4502,7 +4489,7 @@ function useConversationActions({
4502
4489
  React.useState(() => watchConversationWorkspaces(queryClient, session));
4503
4490
  const createHandlers = useStreamHandlers();
4504
4491
  const chatHost = chunkO32T7XRD_cjs.useArbiHost().chat;
4505
- const assistantName = chunkWUYSVTKE_cjs.useAssistantName();
4492
+ const assistantName = chunk6RRKO4ZK_cjs.useAssistantName();
4506
4493
  const mentionCandidates = React.useCallback(
4507
4494
  () => cachedMentionCandidates(
4508
4495
  queryClient,
@@ -4523,10 +4510,10 @@ function useConversationActions({
4523
4510
  const convId = conversationId === void 0 ? state.conversationId : conversationId;
4524
4511
  const { newConversationAssistantMode } = state;
4525
4512
  const candidates = mentionCandidates();
4526
- const mentioned = chunkWUYSVTKE_cjs.extractMentions(content, candidates);
4513
+ const mentioned = chunk6RRKO4ZK_cjs.extractMentions(content, candidates);
4527
4514
  const assistantMode = cachedAssistantMode(queryClient, convId, newConversationAssistantMode);
4528
4515
  const isComment = isCommentToPeople(queryClient, convId, content, candidates);
4529
- const mentions = chunkWUYSVTKE_cjs.toMessageMentions(mentioned);
4516
+ const mentions = chunk6RRKO4ZK_cjs.toMessageMentions(mentioned);
4530
4517
  if (!isComment && assistantMode === "mentioned" && !mentions.some((m) => m.type === "assistant")) {
4531
4518
  mentions.push({ type: "assistant" });
4532
4519
  }
@@ -4557,7 +4544,7 @@ function useConversationActions({
4557
4544
  const bindTo = session.getState().newChatDocumentId;
4558
4545
  session.moveConversation("new", conversationId);
4559
4546
  if (bindTo) session.setNewChatDocumentId(null);
4560
- chunkFAJLJDWS_cjs.patchConversationList(queryClient, session.getState().workspaceId, (old) => [
4547
+ chunkFOBB5U4Y_cjs.patchConversationList(queryClient, session.getState().workspaceId, (old) => [
4561
4548
  {
4562
4549
  external_id: conversationId,
4563
4550
  title: content.slice(0, 40),
@@ -4579,14 +4566,14 @@ function useConversationActions({
4579
4566
  );
4580
4567
  invalidateUserWorkspaces();
4581
4568
  } else {
4582
- chunkFAJLJDWS_cjs.patchConversation(queryClient, conversationId, (c) => ({
4569
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, conversationId, (c) => ({
4583
4570
  ...c,
4584
4571
  message_count: c.message_count + 1,
4585
4572
  updated_at: nowIso
4586
4573
  }));
4587
4574
  }
4588
4575
  if (mentions.some((m) => m.type === "user")) {
4589
- await chunkFAJLJDWS_cjs.invalidateConversationLists(queryClient);
4576
+ await chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
4590
4577
  }
4591
4578
  await queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
4592
4579
  session.setCursor(saved.external_id);
@@ -4594,7 +4581,7 @@ function useConversationActions({
4594
4581
  chunkIX4HOS5Z_cjs.notify.error(
4595
4582
  error instanceof browser.ArbiApiError && error.detail || "Failed to post the message"
4596
4583
  );
4597
- if (!chunk7L7QRIQ2_cjs.selectDraft(session.getState())) session.setDraft(content);
4584
+ if (!chunkH3XHBIZ6_cjs.selectDraft(session.getState())) session.setDraft(content);
4598
4585
  }
4599
4586
  },
4600
4587
  [arbi, session, queryClient, invalidateUserWorkspaces]
@@ -4634,12 +4621,12 @@ function useConversationActions({
4634
4621
  const resolvedConfigId = newConfigId || (agentExtId ? void 0 : lastConfigId);
4635
4622
  const isPaMode = !agentExtId && state.paMode;
4636
4623
  const threadDocumentId = boundDocumentOf(queryClient, { ...state, conversationId: convId });
4637
- const activeArtifactExtId = isPaMode ? null : chunkWUYSVTKE_cjs.takeDocumentForTurn({
4624
+ const activeArtifactExtId = isPaMode ? null : chunk6RRKO4ZK_cjs.takeDocumentForTurn({
4638
4625
  boundDocumentId: threadDocumentId,
4639
4626
  conversationId: convId,
4640
4627
  workspaceId: turnWorkspaceId
4641
4628
  });
4642
- const flushing = flushDocumentForTurn(activeArtifactExtId);
4629
+ const flushing = chunkNK5KFHXP_cjs.flushDocumentForTurn(activeArtifactExtId);
4643
4630
  if (flushing) await flushing;
4644
4631
  const pendingTools = state.pendingTools;
4645
4632
  if (pendingTools) session.setPendingTools(null);
@@ -4667,7 +4654,7 @@ function useConversationActions({
4667
4654
  session.setConversationGenerating(convKey, true, abortController);
4668
4655
  }
4669
4656
  if (!queuedContinuation) {
4670
- chunkFAJLJDWS_cjs.patchConversation(queryClient, convKey, { last_message_status: "in_progress" });
4657
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, convKey, { last_message_status: "in_progress" });
4671
4658
  }
4672
4659
  const streamState = {
4673
4660
  conversationId: convKey,
@@ -4778,7 +4765,7 @@ function useConversationActions({
4778
4765
  void queryClient.invalidateQueries({
4779
4766
  queryKey: getThreadsQueryKey(streamState.conversationId)
4780
4767
  });
4781
- void chunkFAJLJDWS_cjs.invalidateConversationLists(queryClient);
4768
+ void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
4782
4769
  }
4783
4770
  return;
4784
4771
  }
@@ -4806,7 +4793,7 @@ function useConversationActions({
4806
4793
  }
4807
4794
  if (ownsGeneration) {
4808
4795
  const lastStatus = streamState.serverError ? "failed" : "completed";
4809
- chunkFAJLJDWS_cjs.patchConversation(queryClient, streamState.conversationId, {
4796
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, streamState.conversationId, {
4810
4797
  last_message_status: lastStatus
4811
4798
  });
4812
4799
  }
@@ -4839,7 +4826,7 @@ function useConversationActions({
4839
4826
  });
4840
4827
  if (ownsActiveGeneration()) {
4841
4828
  session.setConversationGenerating(streamState.conversationId, false, null);
4842
- chunkFAJLJDWS_cjs.patchConversation(queryClient, streamState.conversationId, {
4829
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, streamState.conversationId, {
4843
4830
  last_message_status: "completed"
4844
4831
  });
4845
4832
  }
@@ -4862,10 +4849,10 @@ function useConversationActions({
4862
4849
  if (ownsActiveGeneration()) {
4863
4850
  session.setConversationGenerating(streamState.conversationId, false, null);
4864
4851
  }
4865
- void chunkFAJLJDWS_cjs.invalidateConversationLists(queryClient);
4852
+ void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
4866
4853
  return;
4867
4854
  }
4868
- chunkFAJLJDWS_cjs.patchConversation(queryClient, streamState.conversationId, {
4855
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, streamState.conversationId, {
4869
4856
  last_message_status: "failed"
4870
4857
  });
4871
4858
  const quota = browser.quotaFromStreamError(error) ?? cachedQuotaUsedUp(queryClient, session.getState().workspaceId);
@@ -4900,8 +4887,8 @@ function useConversationActions({
4900
4887
  );
4901
4888
  const handleSendMessage = React.useCallback(
4902
4889
  async (options) => {
4903
- const currentMessage = chunk7L7QRIQ2_cjs.selectDraft(session.getState()).trim();
4904
- if (!selectedWorkspaceId || !chunkWUYSVTKE_cjs.hasMessageBody(currentMessage, assistantLabels(assistantName)))
4890
+ const currentMessage = chunkH3XHBIZ6_cjs.selectDraft(session.getState()).trim();
4891
+ if (!selectedWorkspaceId || !chunk6RRKO4ZK_cjs.hasMessageBody(currentMessage, assistantLabels(assistantName)))
4905
4892
  return;
4906
4893
  session.setSuggestedQuery(null);
4907
4894
  if (refuseChatWhenOffline()) return;
@@ -5015,7 +5002,7 @@ function useConversationActions({
5015
5002
  if (!replyTo && currentConversationId) {
5016
5003
  try {
5017
5004
  await arbi.conversations.delete(currentConversationId);
5018
- chunkFAJLJDWS_cjs.removeConversationFromLists(queryClient, currentConversationId);
5005
+ chunkFOBB5U4Y_cjs.removeConversationFromLists(queryClient, currentConversationId);
5019
5006
  session.startNewConversation();
5020
5007
  } catch (error) {
5021
5008
  console.error("Failed to delete conversation with orphaned first message:", error);
@@ -5083,16 +5070,16 @@ function selectThread(session, leafId) {
5083
5070
  if (session.getState().cursor !== leafId) session.setCursor(leafId);
5084
5071
  }
5085
5072
  function useConversationData() {
5086
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
5087
- const selectedWorkspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
5088
- const currentConversationId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.conversationId);
5089
- const parentMessageId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.cursor);
5090
- const deepLinkMessageId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.deepLinkMessageId);
5073
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
5074
+ const selectedWorkspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
5075
+ const currentConversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.conversationId);
5076
+ const parentMessageId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.cursor);
5077
+ const deepLinkMessageId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.deepLinkMessageId);
5091
5078
  const {
5092
5079
  data: threadsData,
5093
5080
  isLoading: threadsLoading,
5094
5081
  error: threadsError
5095
- } = chunk7L7QRIQ2_cjs.useConversationThreads(currentConversationId || void 0);
5082
+ } = chunkH3XHBIZ6_cjs.useConversationThreads(currentConversationId || void 0);
5096
5083
  const processedDeepLinkRef = React.useRef(null);
5097
5084
  const prevConversationIdRef = React.useRef(null);
5098
5085
  React.useEffect(() => {
@@ -5285,7 +5272,7 @@ function useBranchNavigation(threads, parentMessageId, messageHistory, setParent
5285
5272
  var RECONNECT_DELAY_MS = 2e3;
5286
5273
  var MAX_RECONNECTS = 5;
5287
5274
  function useConnectRunStream(conversationId, messages) {
5288
- const generation = chunk7L7QRIQ2_cjs.useArbiSessionState(
5275
+ const generation = chunkH3XHBIZ6_cjs.useArbiSessionState(
5289
5276
  (s) => conversationId ? s.generating[conversationId] : void 0
5290
5277
  );
5291
5278
  const responseId = conversationId ? browser.getRunToAttach(generation, messages) : null;
@@ -5293,7 +5280,7 @@ function useConnectRunStream(conversationId, messages) {
5293
5280
  }
5294
5281
  function useAttachRun(conversationId, responseId) {
5295
5282
  const queryClient = reactQuery.useQueryClient();
5296
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
5283
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
5297
5284
  const arbi = chunkO32T7XRD_cjs.useArbi();
5298
5285
  const arbiRef = React.useRef(arbi);
5299
5286
  arbiRef.current = arbi;
@@ -5533,14 +5520,14 @@ function useConversation(options = {}) {
5533
5520
  const { agentId, model, titleLength = 48 } = options;
5534
5521
  const arbi = chunkO32T7XRD_cjs.useArbi();
5535
5522
  const queryClient = reactQuery.useQueryClient();
5536
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
5537
- const sessionWorkspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
5523
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
5524
+ const sessionWorkspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
5538
5525
  const workspaceId = options.workspaceId ?? sessionWorkspaceId ?? void 0;
5539
- const conversationId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.conversationId);
5526
+ const conversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.conversationId);
5540
5527
  const conversationKey2 = conversationId ?? NEW;
5541
- const generation = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.generating[conversationKey2]);
5542
- const newConversationMode = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.newConversationAssistantMode);
5543
- const queuedMessages2 = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.queuedMessages);
5528
+ const generation = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.generating[conversationKey2]);
5529
+ const newConversationMode = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.newConversationAssistantMode);
5530
+ const queuedMessages2 = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.queuedMessages);
5544
5531
  const isRunning = !!generation?.isGenerating;
5545
5532
  React.useEffect(() => {
5546
5533
  if (workspaceId && session.getState().workspaceId !== workspaceId)
@@ -5552,8 +5539,8 @@ function useConversation(options = {}) {
5552
5539
  React.useEffect(() => {
5553
5540
  if (agentId && workspaceId && !conversationId) session.setNewAgentChat({ agentId, workspaceId });
5554
5541
  }, [session, agentId, workspaceId, conversationId]);
5555
- const { data: docs = [], isLoading: isLoadingDocuments } = chunkGKGAPU6T_cjs.useDocuments(workspaceId);
5556
- const ordinaryHistory = chunk7L7QRIQ2_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
5542
+ const { data: docs = [], isLoading: isLoadingDocuments } = chunkNK5KFHXP_cjs.useDocuments(workspaceId);
5543
+ const ordinaryHistory = chunkH3XHBIZ6_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
5557
5544
  const agentHistory = useAgentChats(agentId);
5558
5545
  const stored = React.useMemo(
5559
5546
  () => agentId ? (agentHistory.data ?? []).filter((chat) => chat.workspace_ext_id === workspaceId).map((chat) => ({
@@ -5660,7 +5647,7 @@ function useConversation(options = {}) {
5660
5647
  [agentId, stagedFiles, deselected]
5661
5648
  );
5662
5649
  const { handleSendMessage, handleCreateBranch } = actions;
5663
- const assistantName = chunkWUYSVTKE_cjs.useAssistantName();
5650
+ const assistantName = chunk6RRKO4ZK_cjs.useAssistantName();
5664
5651
  const send = React.useCallback(
5665
5652
  async (text2) => {
5666
5653
  const trimmed = text2.trim();
@@ -5791,7 +5778,7 @@ function useConversation(options = {}) {
5791
5778
  void (async () => {
5792
5779
  try {
5793
5780
  await arbi.conversations.delete(id);
5794
- chunkFAJLJDWS_cjs.removeConversationFromLists(queryClient, id);
5781
+ chunkFOBB5U4Y_cjs.removeConversationFromLists(queryClient, id);
5795
5782
  if (session.getState().conversationId === id) session.startNewConversation();
5796
5783
  } catch (e) {
5797
5784
  setHistoryError(messageOf(e, "The conversation could not be deleted."));
@@ -5830,7 +5817,7 @@ function useConversation(options = {}) {
5830
5817
  uploaded.push(...result.doc_ext_ids ?? []);
5831
5818
  }
5832
5819
  }
5833
- if (uploaded.length) await chunkGKGAPU6T_cjs.refreshDocuments(queryClient, arbi, uploaded);
5820
+ if (uploaded.length) await chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, uploaded);
5834
5821
  } catch (e) {
5835
5822
  setUploadError(messageOf(e, "The upload failed."));
5836
5823
  } finally {
@@ -5879,10 +5866,10 @@ function ConversationScope({
5879
5866
  conversationId,
5880
5867
  children
5881
5868
  }) {
5882
- const outerWorkspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
5869
+ const outerWorkspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
5883
5870
  const scopeWorkspaceId = workspaceId ?? outerWorkspaceId;
5884
5871
  const [session] = React.useState(
5885
- () => chunk7L7QRIQ2_cjs.createArbiSessionStore({
5872
+ () => chunkH3XHBIZ6_cjs.createArbiSessionStore({
5886
5873
  workspaceId: scopeWorkspaceId,
5887
5874
  conversationId: conversationId ?? null
5888
5875
  })
@@ -5898,7 +5885,7 @@ function ConversationScope({
5898
5885
  }
5899
5886
  function useConversationWorkspace(conversationId) {
5900
5887
  const queryClient = reactQuery.useQueryClient();
5901
- const sessionWorkspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
5888
+ const sessionWorkspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
5902
5889
  return conversationWorkspaceOf(queryClient, conversationId) ?? sessionWorkspaceId;
5903
5890
  }
5904
5891
 
@@ -5908,11 +5895,11 @@ async function applyConversationEvent(queryClient, event) {
5908
5895
  if (e.type === "response_complete") return applyRunEnded(queryClient, e);
5909
5896
  if (e.type === "conversation.message_posted") return applyMessagePosted(queryClient, e);
5910
5897
  if (e.type === "conversation.title_updated" && e.conversation_ext_id) {
5911
- chunkFAJLJDWS_cjs.patchConversation(queryClient, e.conversation_ext_id, { title: e.title ?? null });
5898
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, e.conversation_ext_id, { title: e.title ?? null });
5912
5899
  }
5913
5900
  if (e.type === "conversation.document_binding_changed" && e.conversation_ext_id) {
5914
5901
  void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(e.conversation_ext_id) });
5915
- void chunkFAJLJDWS_cjs.invalidateConversationLists(queryClient);
5902
+ void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
5916
5903
  }
5917
5904
  }
5918
5905
  function applyRunEnded(queryClient, e) {
@@ -5929,10 +5916,10 @@ function applyRunEnded(queryClient, e) {
5929
5916
  );
5930
5917
  }
5931
5918
  if (failed && e.response_id) markMessageAsFailed(queryClient, conversationId, e.response_id);
5932
- chunkFAJLJDWS_cjs.patchConversation(queryClient, conversationId, {
5919
+ chunkFOBB5U4Y_cjs.patchConversation(queryClient, conversationId, {
5933
5920
  last_message_status: failed ? "failed" : "completed"
5934
5921
  });
5935
- void chunkFAJLJDWS_cjs.invalidateConversationLists(queryClient);
5922
+ void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
5936
5923
  void queryClient.invalidateQueries({ queryKey: getThreadsQueryKey(conversationId) });
5937
5924
  if (!failed) void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.userUsageToday() });
5938
5925
  }
@@ -5940,7 +5927,7 @@ async function applyMessagePosted(queryClient, e) {
5940
5927
  if (!e.conversation_ext_id) return;
5941
5928
  const queryKey = getThreadsQueryKey(e.conversation_ext_id);
5942
5929
  const refreshed = queryClient.invalidateQueries({ queryKey });
5943
- void chunkFAJLJDWS_cjs.invalidateConversationLists(queryClient);
5930
+ void chunkFOBB5U4Y_cjs.invalidateConversationLists(queryClient);
5944
5931
  await refreshed;
5945
5932
  const cached = queryClient.getQueryData(
5946
5933
  queryKey
@@ -5953,10 +5940,10 @@ var migratedWorkspaces = /* @__PURE__ */ new Set();
5953
5940
  function useThreadDocument() {
5954
5941
  const arbi = chunkO32T7XRD_cjs.useArbi();
5955
5942
  const queryClient = reactQuery.useQueryClient();
5956
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
5957
- const conversationId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.conversationId);
5958
- const workspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
5959
- const newChatDocumentId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.newChatDocumentId);
5943
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
5944
+ const conversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.conversationId);
5945
+ const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
5946
+ const newChatDocumentId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.newChatDocumentId);
5960
5947
  const subscribe = React.useCallback(
5961
5948
  (onChange) => queryClient.getQueryCache().subscribe(onChange),
5962
5949
  [queryClient]
@@ -5971,7 +5958,7 @@ function useThreadDocument() {
5971
5958
  () => threadBinding(queryClient, conversationId).unavailable,
5972
5959
  () => false
5973
5960
  );
5974
- const { data: conversations, isPlaceholderData } = chunk7L7QRIQ2_cjs.useConversations(workspaceId ?? void 0);
5961
+ const { data: conversations, isPlaceholderData } = chunkH3XHBIZ6_cjs.useConversations(workspaceId ?? void 0);
5975
5962
  React.useEffect(() => {
5976
5963
  if (!workspaceId || !conversations || isPlaceholderData || migratedWorkspaces.has(workspaceId))
5977
5964
  return;
@@ -6025,9 +6012,9 @@ function useConversationTurn({
6025
6012
  selectedWorkspaceId,
6026
6013
  parentMessageId
6027
6014
  }) {
6028
- const currentConversationId = chunk7L7QRIQ2_cjs.useArbiSessionState((state) => state.conversationId);
6015
+ const currentConversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.conversationId);
6029
6016
  const conversationKey2 = currentConversationId || "new";
6030
- const generationState = chunk7L7QRIQ2_cjs.useArbiSessionState((state) => state.generating[conversationKey2]);
6017
+ const generationState = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.generating[conversationKey2]);
6031
6018
  const isGenerating = generationState?.isGenerating ?? false;
6032
6019
  const generationError = generationState?.error ?? null;
6033
6020
  const lastFailedMessage = generationState?.lastFailedMessage ?? null;
@@ -6047,10 +6034,10 @@ function useConversationTurn({
6047
6034
  };
6048
6035
  }
6049
6036
  function useActiveConfigId() {
6050
- const chatModel = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.chatModel);
6051
- const cursor = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.cursor);
6037
+ const chatModel = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.chatModel);
6038
+ const cursor = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.cursor);
6052
6039
  const { messageHistory } = useConversationData();
6053
- const { data: userSettings } = chunkFAJLJDWS_cjs.useUserSettings();
6040
+ const { data: userSettings } = chunkFOBB5U4Y_cjs.useUserSettings();
6054
6041
  return React.useMemo(() => {
6055
6042
  if (chatModel) return chatModel;
6056
6043
  const parent = cursor ? messageHistory?.find((m) => m.external_id === cursor) : void 0;
@@ -6060,12 +6047,12 @@ function useActiveConfigId() {
6060
6047
  }
6061
6048
  var EMPTY_DOCS = [];
6062
6049
  function useConversationDocuments() {
6063
- const currentConversationId = chunk7L7QRIQ2_cjs.useArbiSessionState((state) => state.conversationId);
6050
+ const currentConversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.conversationId);
6064
6051
  const convKey = currentConversationId || "new";
6065
- const inConversationDocuments = chunk7L7QRIQ2_cjs.useArbiSessionState(
6052
+ const inConversationDocuments = chunkH3XHBIZ6_cjs.useArbiSessionState(
6066
6053
  (state) => state.conversationDocuments[convKey] || EMPTY_DOCS
6067
6054
  );
6068
- const { data: documents2 = [], isLoading: isLoadingDocs } = chunkGKGAPU6T_cjs.useDocuments();
6055
+ const { data: documents2 = [], isLoading: isLoadingDocs } = chunkNK5KFHXP_cjs.useDocuments();
6069
6056
  const conversationDocuments = React__default.default.useMemo(() => {
6070
6057
  if (inConversationDocuments.length === 0) {
6071
6058
  return [];
@@ -6097,8 +6084,8 @@ function useDocumentAutoAdd({
6097
6084
  allWorkspaceDocuments,
6098
6085
  hasContent = false
6099
6086
  }) {
6100
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6101
- const currentConversationId = chunk7L7QRIQ2_cjs.useArbiSessionState((state) => state.conversationId);
6087
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6088
+ const currentConversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.conversationId);
6102
6089
  const convKey = currentConversationId || "new";
6103
6090
  const observedRef = React.useRef(null);
6104
6091
  const offeredRef = React.useRef(/* @__PURE__ */ new Set());
@@ -6159,12 +6146,12 @@ function useDocumentAutoAdd({
6159
6146
  }, [selectedWorkspaceId, convKey, allWorkspaceDocuments, hasContent, session]);
6160
6147
  }
6161
6148
  function useAutoSendDraft(sendDraft, ready = true, canSend) {
6162
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6163
- const autoSendDraft = chunk7L7QRIQ2_cjs.useArbiSessionState((state) => state.autoSendDraft);
6149
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6150
+ const autoSendDraft = chunkH3XHBIZ6_cjs.useArbiSessionState((state) => state.autoSendDraft);
6164
6151
  React.useEffect(() => {
6165
6152
  if (!autoSendDraft || !ready || canSend && !canSend()) return;
6166
6153
  session.setAutoSendDraft(false);
6167
- if (chunk7L7QRIQ2_cjs.selectDraft(session.getState()).trim()) {
6154
+ if (chunkH3XHBIZ6_cjs.selectDraft(session.getState()).trim()) {
6168
6155
  sendDraft();
6169
6156
  }
6170
6157
  }, [autoSendDraft, ready, canSend, sendDraft, session]);
@@ -6251,18 +6238,18 @@ function useAnswerAgentQuestion() {
6251
6238
  }
6252
6239
  var TITLE_MAX = 50;
6253
6240
  function useConversationSettings() {
6254
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6255
- const conversationId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.conversationId);
6256
- const chatModel = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.chatModel);
6257
- const parentMessageId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.cursor);
6258
- const currentUser = chunk7L7QRIQ2_cjs.useArbiSession().user;
6241
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6242
+ const conversationId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.conversationId);
6243
+ const chatModel = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.chatModel);
6244
+ const parentMessageId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.cursor);
6245
+ const currentUser = chunkH3XHBIZ6_cjs.useArbiSession().user;
6259
6246
  const { messageHistory } = useConversationData();
6260
6247
  const { conversations } = useConversationItems();
6261
- const { data: userSettings } = chunkFAJLJDWS_cjs.useUserSettings();
6248
+ const { data: userSettings } = chunkFOBB5U4Y_cjs.useUserSettings();
6262
6249
  const parentMessage = messageHistory?.find((m) => m.external_id === parentMessageId);
6263
6250
  const configToLoad = chatModel || parentMessage?.config_ext_id || userSettings?.last_config || "default";
6264
- const { data: activeConfig } = chunk7L7QRIQ2_cjs.useConfig(configToLoad);
6265
- const { refetch: refetchSystemDefaults } = chunk7L7QRIQ2_cjs.useConfig("default");
6251
+ const { data: activeConfig } = chunkH3XHBIZ6_cjs.useConfig(configToLoad);
6252
+ const { refetch: refetchSystemDefaults } = chunkH3XHBIZ6_cjs.useConfig("default");
6266
6253
  const conversation = conversations.find((c) => c.external_id === conversationId);
6267
6254
  const isOwner = !!conversation && conversation.created_by_ext_id === currentUser?.external_id;
6268
6255
  const isShared = conversation?.is_shared ?? false;
@@ -6315,7 +6302,7 @@ function useConversationSettings() {
6315
6302
  };
6316
6303
  }
6317
6304
  function useAskAgain(options) {
6318
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6305
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6319
6306
  const optionsRef = React.useRef(options);
6320
6307
  React.useEffect(() => {
6321
6308
  optionsRef.current = options;
@@ -6407,11 +6394,11 @@ function useMessageTimer({
6407
6394
  isUser,
6408
6395
  isGenerating
6409
6396
  }) {
6410
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6397
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6411
6398
  const convId = conversationId || "new";
6412
6399
  const timerKey = `${convId}:${messageId}`;
6413
- const generationStartTime = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.generating[convId]?.startTime ?? null);
6414
- const storedElapsed = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.messageTimers[timerKey]?.elapsedTime);
6400
+ const generationStartTime = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.generating[convId]?.startTime ?? null);
6401
+ const storedElapsed = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.messageTimers[timerKey]?.elapsedTime);
6415
6402
  const [elapsedTime, setElapsedTime] = React.useState(0);
6416
6403
  const lastElapsedRef = React.useRef(0);
6417
6404
  React.useEffect(() => {
@@ -6436,7 +6423,7 @@ function useMessageTimer({
6436
6423
  }
6437
6424
  function useAgentRunControl(assistantMessageExtId) {
6438
6425
  const arbi = chunkO32T7XRD_cjs.useArbi();
6439
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6426
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6440
6427
  const send = React.useCallback(
6441
6428
  (command) => {
6442
6429
  if (!assistantMessageExtId) return;
@@ -6796,8 +6783,8 @@ var WORK_OFFLINE_VIEW = "app.workOffline";
6796
6783
  var isWorkingOffline = (session) => session.getState().views.transient[WORK_OFFLINE_VIEW] === true;
6797
6784
  var setWorkOfflineIn = (session, on) => session.setTransientView(WORK_OFFLINE_VIEW, on || void 0);
6798
6785
  function useWorkOffline() {
6799
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6800
- const on = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.views.transient[WORK_OFFLINE_VIEW] === true);
6786
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6787
+ const on = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.views.transient[WORK_OFFLINE_VIEW] === true);
6801
6788
  const set2 = React.useCallback((next) => setWorkOfflineIn(session, next), [session]);
6802
6789
  return [on, set2];
6803
6790
  }
@@ -6809,9 +6796,9 @@ function computeOnline(wsStatus, isAuthenticated, workOffline, wsEverConnected)
6809
6796
  return navOnline && wsOnline;
6810
6797
  }
6811
6798
  function useOnlineSync() {
6812
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6813
- const wsStatus = chunkGKGAPU6T_cjs.useArbiWsStore((s) => s.status);
6814
- const signedIn2 = chunk7L7QRIQ2_cjs.useArbiSession().status === "signed-in";
6799
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6800
+ const wsStatus = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.status);
6801
+ const signedIn2 = chunkH3XHBIZ6_cjs.useArbiSession().status === "signed-in";
6815
6802
  const [workOffline] = useWorkOffline();
6816
6803
  const wsEverConnected = React.useRef(false);
6817
6804
  if (wsStatus === "connected") wsEverConnected.current = true;
@@ -6823,7 +6810,7 @@ function useOnlineSync() {
6823
6810
  React.useEffect(() => {
6824
6811
  const update2 = () => reactQuery.onlineManager.setOnline(
6825
6812
  computeOnline(
6826
- chunkGKGAPU6T_cjs.useArbiWsStore.getState().status,
6813
+ chunkNK5KFHXP_cjs.useArbiWsStore.getState().status,
6827
6814
  signedInRef.current,
6828
6815
  isWorkingOffline(session),
6829
6816
  wsEverConnected.current
@@ -6838,7 +6825,7 @@ function useOnlineSync() {
6838
6825
  }, [session]);
6839
6826
  }
6840
6827
  function useReconnect() {
6841
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
6828
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
6842
6829
  return React.useCallback(() => {
6843
6830
  if (isWorkingOffline(session)) {
6844
6831
  setWorkOfflineIn(session, false);
@@ -7016,53 +7003,53 @@ async function nativeThreadKeys(secret, message) {
7016
7003
 
7017
7004
  // src/mail/offline/mailbox.ts
7018
7005
  var keyOf = {
7019
- accounts: () => chunkFAJLJDWS_cjs.blind("accounts"),
7020
- policy: () => chunkFAJLJDWS_cjs.blind("policy"),
7021
- folders: (accountId) => chunkFAJLJDWS_cjs.blind("folders", accountId),
7022
- header: (accountId, folderId, messageId) => chunkFAJLJDWS_cjs.blind("header", accountId, folderId, messageId),
7023
- body: (accountId, messageId) => chunkFAJLJDWS_cjs.blind("body", accountId, messageId),
7024
- attachment: (accountId, messageId, attachmentId) => chunkFAJLJDWS_cjs.blind("attachment", accountId, messageId, attachmentId)
7006
+ accounts: () => chunkFOBB5U4Y_cjs.blind("accounts"),
7007
+ policy: () => chunkFOBB5U4Y_cjs.blind("policy"),
7008
+ folders: (accountId) => chunkFOBB5U4Y_cjs.blind("folders", accountId),
7009
+ header: (accountId, folderId, messageId) => chunkFOBB5U4Y_cjs.blind("header", accountId, folderId, messageId),
7010
+ body: (accountId, messageId) => chunkFOBB5U4Y_cjs.blind("body", accountId, messageId),
7011
+ attachment: (accountId, messageId, attachmentId) => chunkFOBB5U4Y_cjs.blind("attachment", accountId, messageId, attachmentId)
7025
7012
  };
7026
7013
  var bucketOf = {
7027
- global: () => chunkFAJLJDWS_cjs.blind("bucket", "global"),
7028
- folder: (accountId, folderId) => chunkFAJLJDWS_cjs.blind("bucket", "folder", accountId, folderId),
7029
- account: (accountId) => chunkFAJLJDWS_cjs.blind("bucket", "account", accountId)
7014
+ global: () => chunkFOBB5U4Y_cjs.blind("bucket", "global"),
7015
+ folder: (accountId, folderId) => chunkFOBB5U4Y_cjs.blind("bucket", "folder", accountId, folderId),
7016
+ account: (accountId) => chunkFOBB5U4Y_cjs.blind("bucket", "account", accountId)
7030
7017
  };
7031
7018
  async function put(kind, key, bucket3, data, sortAt = Date.now()) {
7032
7019
  const now = Date.now();
7033
- await chunkFAJLJDWS_cjs.putRecord({ key, kind, bucket: bucket3, sortAt, size: data.byteLength, lastAccess: now, data });
7020
+ await chunkFOBB5U4Y_cjs.putRecord({ key, kind, bucket: bucket3, sortAt, size: data.byteLength, lastAccess: now, data });
7034
7021
  }
7035
7022
  async function readJson(record) {
7036
7023
  if (!record) return void 0;
7037
7024
  try {
7038
- return await chunkFAJLJDWS_cjs.openJson(record.data);
7025
+ return await chunkFOBB5U4Y_cjs.openJson(record.data);
7039
7026
  } catch {
7040
7027
  return void 0;
7041
7028
  }
7042
7029
  }
7043
7030
  var receivedAt = (m) => m.received_at ? Date.parse(m.received_at) || 0 : 0;
7044
7031
  async function saveAccounts(accounts) {
7045
- await put("accounts", await keyOf.accounts(), await bucketOf.global(), await chunkFAJLJDWS_cjs.sealJson(accounts));
7032
+ await put("accounts", await keyOf.accounts(), await bucketOf.global(), await chunkFOBB5U4Y_cjs.sealJson(accounts));
7046
7033
  }
7047
7034
  async function loadAccounts() {
7048
- return readJson(await chunkFAJLJDWS_cjs.getRecord(await keyOf.accounts()));
7035
+ return readJson(await chunkFOBB5U4Y_cjs.getRecord(await keyOf.accounts()));
7049
7036
  }
7050
7037
  async function savePolicy(policy) {
7051
- await put("policy", await keyOf.policy(), await bucketOf.global(), await chunkFAJLJDWS_cjs.sealJson(policy));
7038
+ await put("policy", await keyOf.policy(), await bucketOf.global(), await chunkFOBB5U4Y_cjs.sealJson(policy));
7052
7039
  }
7053
7040
  async function loadPolicy() {
7054
- return readJson(await chunkFAJLJDWS_cjs.getRecord(await keyOf.policy()));
7041
+ return readJson(await chunkFOBB5U4Y_cjs.getRecord(await keyOf.policy()));
7055
7042
  }
7056
7043
  async function saveFolders(accountId, folders) {
7057
7044
  await put(
7058
7045
  "folders",
7059
7046
  await keyOf.folders(accountId),
7060
7047
  await bucketOf.account(accountId),
7061
- await chunkFAJLJDWS_cjs.sealJson(folders)
7048
+ await chunkFOBB5U4Y_cjs.sealJson(folders)
7062
7049
  );
7063
7050
  }
7064
7051
  async function loadFolders(accountId) {
7065
- return readJson(await chunkFAJLJDWS_cjs.getRecord(await keyOf.folders(accountId)));
7052
+ return readJson(await chunkFOBB5U4Y_cjs.getRecord(await keyOf.folders(accountId)));
7066
7053
  }
7067
7054
  function toHeader(message) {
7068
7055
  return {
@@ -7078,12 +7065,12 @@ async function saveHeader(accountId, folderId, message) {
7078
7065
  "header",
7079
7066
  await keyOf.header(accountId, folderId, message.id),
7080
7067
  await bucketOf.folder(accountId, folderId),
7081
- await chunkFAJLJDWS_cjs.sealJson(toHeader(message)),
7068
+ await chunkFOBB5U4Y_cjs.sealJson(toHeader(message)),
7082
7069
  receivedAt(message)
7083
7070
  );
7084
7071
  }
7085
7072
  async function loadHeaders(accountId, folderId) {
7086
- const records = await chunkFAJLJDWS_cjs.recordsInBucket(await bucketOf.folder(accountId, folderId));
7073
+ const records = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.folder(accountId, folderId));
7087
7074
  const out = [];
7088
7075
  for (const record of records) {
7089
7076
  if (record.kind !== "header") continue;
@@ -7093,7 +7080,7 @@ async function loadHeaders(accountId, folderId) {
7093
7080
  return out.sort((a, b) => b.sortAt - a.sortAt);
7094
7081
  }
7095
7082
  async function hasFolder(accountId) {
7096
- return chunkFAJLJDWS_cjs.hasRecord(await keyOf.folders(accountId));
7083
+ return chunkFOBB5U4Y_cjs.hasRecord(await keyOf.folders(accountId));
7097
7084
  }
7098
7085
  async function saveBody(accountId, message) {
7099
7086
  const stripped = {
@@ -7104,42 +7091,42 @@ async function saveBody(accountId, message) {
7104
7091
  "body",
7105
7092
  await keyOf.body(accountId, message.id),
7106
7093
  await bucketOf.account(accountId),
7107
- await chunkFAJLJDWS_cjs.sealJson(stripped),
7094
+ await chunkFOBB5U4Y_cjs.sealJson(stripped),
7108
7095
  receivedAt(message)
7109
7096
  );
7110
7097
  }
7111
7098
  async function hasBody(accountId, messageId) {
7112
- return chunkFAJLJDWS_cjs.hasRecord(await keyOf.body(accountId, messageId));
7099
+ return chunkFOBB5U4Y_cjs.hasRecord(await keyOf.body(accountId, messageId));
7113
7100
  }
7114
7101
  async function loadBody(accountId, messageId) {
7115
- return readJson(await chunkFAJLJDWS_cjs.getRecord(await keyOf.body(accountId, messageId)));
7102
+ return readJson(await chunkFOBB5U4Y_cjs.getRecord(await keyOf.body(accountId, messageId)));
7116
7103
  }
7117
7104
  async function saveAttachment(accountId, messageId, attachmentId, bytes, sortAt) {
7118
7105
  await put(
7119
7106
  "attachment",
7120
7107
  await keyOf.attachment(accountId, messageId, attachmentId),
7121
7108
  await bucketOf.account(accountId),
7122
- await chunkFAJLJDWS_cjs.sealBytes(bytes),
7109
+ await chunkFOBB5U4Y_cjs.sealBytes(bytes),
7123
7110
  sortAt || void 0
7124
7111
  );
7125
7112
  }
7126
7113
  async function hasAttachment(accountId, messageId, attachmentId) {
7127
- return chunkFAJLJDWS_cjs.hasRecord(await keyOf.attachment(accountId, messageId, attachmentId));
7114
+ return chunkFOBB5U4Y_cjs.hasRecord(await keyOf.attachment(accountId, messageId, attachmentId));
7128
7115
  }
7129
7116
  async function loadAttachment(accountId, messageId, attachmentId) {
7130
7117
  const key = await keyOf.attachment(accountId, messageId, attachmentId);
7131
- const record = await chunkFAJLJDWS_cjs.getRecord(key);
7118
+ const record = await chunkFOBB5U4Y_cjs.getRecord(key);
7132
7119
  if (!record) return void 0;
7133
7120
  try {
7134
- const bytes = await chunkFAJLJDWS_cjs.openBytes(record.data);
7135
- void chunkFAJLJDWS_cjs.touchRecord(key);
7121
+ const bytes = await chunkFOBB5U4Y_cjs.openBytes(record.data);
7122
+ void chunkFOBB5U4Y_cjs.touchRecord(key);
7136
7123
  return bytes;
7137
7124
  } catch {
7138
7125
  return void 0;
7139
7126
  }
7140
7127
  }
7141
7128
  async function removeKeys(keys) {
7142
- await chunkFAJLJDWS_cjs.deleteRecords(keys);
7129
+ await chunkFOBB5U4Y_cjs.deleteRecords(keys);
7143
7130
  }
7144
7131
  function bodyText(body) {
7145
7132
  const html = body.text ? "" : (body.html ?? "").replace(/<[^>]*>/g, " ");
@@ -7184,27 +7171,27 @@ function isBrowserOffline() {
7184
7171
  // src/mail/offline/changes.ts
7185
7172
  var isFiling = (change) => change.kind === "file";
7186
7173
  var MAX_ATTEMPTS = 5;
7187
- var bucket = () => chunkFAJLJDWS_cjs.blind("bucket", "changes");
7188
- var keyFor = (id) => chunkFAJLJDWS_cjs.blind("change", id);
7174
+ var bucket = () => chunkFOBB5U4Y_cjs.blind("bucket", "changes");
7175
+ var keyFor = (id) => chunkFOBB5U4Y_cjs.blind("change", id);
7189
7176
  async function write(item) {
7190
- await chunkFAJLJDWS_cjs.putRecord({
7177
+ await chunkFOBB5U4Y_cjs.putRecord({
7191
7178
  key: await keyFor(item.id),
7192
7179
  kind: "change",
7193
7180
  bucket: await bucket(),
7194
7181
  sortAt: item.seq,
7195
7182
  size: 0,
7196
7183
  lastAccess: Date.now(),
7197
- data: await chunkFAJLJDWS_cjs.sealJson(item)
7184
+ data: await chunkFOBB5U4Y_cjs.sealJson(item)
7198
7185
  });
7199
7186
  }
7200
7187
  async function drop(item) {
7201
- await chunkFAJLJDWS_cjs.deleteRecords([await keyFor(item.id)]);
7188
+ await chunkFOBB5U4Y_cjs.deleteRecords([await keyFor(item.id)]);
7202
7189
  }
7203
7190
  async function readHeader(accountId, folderId, messageId) {
7204
- const record = await chunkFAJLJDWS_cjs.getRecord(await keyOf.header(accountId, folderId, messageId));
7191
+ const record = await chunkFOBB5U4Y_cjs.getRecord(await keyOf.header(accountId, folderId, messageId));
7205
7192
  if (!record) return void 0;
7206
7193
  try {
7207
- return await chunkFAJLJDWS_cjs.openJson(record.data);
7194
+ return await chunkFOBB5U4Y_cjs.openJson(record.data);
7208
7195
  } catch {
7209
7196
  return void 0;
7210
7197
  }
@@ -7286,9 +7273,9 @@ function combine(pending, next) {
7286
7273
  }
7287
7274
  async function listMailChanges() {
7288
7275
  const items = [];
7289
- for (const record of await chunkFAJLJDWS_cjs.recordsInBucket(await bucket())) {
7276
+ for (const record of await chunkFOBB5U4Y_cjs.recordsInBucket(await bucket())) {
7290
7277
  try {
7291
- items.push(await chunkFAJLJDWS_cjs.openJson(record.data));
7278
+ items.push(await chunkFOBB5U4Y_cjs.openJson(record.data));
7292
7279
  } catch {
7293
7280
  }
7294
7281
  }
@@ -7343,14 +7330,14 @@ function serially(fn) {
7343
7330
  }
7344
7331
  async function queueMailChange(input) {
7345
7332
  await serially(() => queue(input));
7346
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("changes");
7347
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("mailbox");
7333
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("changes");
7334
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("mailbox");
7348
7335
  }
7349
7336
  async function readChange(id) {
7350
- const record = await chunkFAJLJDWS_cjs.getRecord(await keyFor(id));
7337
+ const record = await chunkFOBB5U4Y_cjs.getRecord(await keyFor(id));
7351
7338
  if (!record) return void 0;
7352
7339
  try {
7353
- return await chunkFAJLJDWS_cjs.openJson(record.data);
7340
+ return await chunkFOBB5U4Y_cjs.openJson(record.data);
7354
7341
  } catch {
7355
7342
  return void 0;
7356
7343
  }
@@ -7423,13 +7410,13 @@ async function applyMailChangesOnce(sender, isOnline) {
7423
7410
  result.interrupted = true;
7424
7411
  }
7425
7412
  }
7426
- if (result.applied + result.gone + result.refused.length > 0) chunkFAJLJDWS_cjs.notifyOfflineMailChange("changes");
7413
+ if (result.applied + result.gone + result.refused.length > 0) chunkFOBB5U4Y_cjs.notifyOfflineMailChange("changes");
7427
7414
  return result;
7428
7415
  }
7429
7416
  var NO_PRIMER = () => void 0;
7430
7417
  async function sendMailFile(fetch2, prime, account, messageId, request) {
7431
7418
  const { threadId } = request;
7432
- return chunkGKGAPU6T_cjs.inWorkspace(prime, request.workspaceExtId, async () => {
7419
+ return chunkNK5KFHXP_cjs.inWorkspace(prime, request.workspaceExtId, async () => {
7433
7420
  if (!threadId) return browser.mail.fileMessage(fetch2, messageId, request.workspaceExtId, account.id);
7434
7421
  const { filed } = await browser.mail.fileConversation(fetch2, {
7435
7422
  accountId: account.id,
@@ -7442,7 +7429,7 @@ async function sendMailFile(fetch2, prime, account, messageId, request) {
7442
7429
  }
7443
7430
  function useMailWorkspacePrimer() {
7444
7431
  const { arbi } = chunkO32T7XRD_cjs.useArbiHost();
7445
- return arbi ? chunkGKGAPU6T_cjs.primeOnArbi(arbi) : NO_PRIMER;
7432
+ return arbi ? chunkNK5KFHXP_cjs.primeOnArbi(arbi) : NO_PRIMER;
7446
7433
  }
7447
7434
  function useMailFiling(account, messageIds, threadIds, options = {}) {
7448
7435
  const { client } = useMailClient();
@@ -7476,7 +7463,7 @@ function useSetNativeMailFiling() {
7476
7463
  const prime = useMailWorkspacePrimer();
7477
7464
  const queryClient = reactQuery.useQueryClient();
7478
7465
  return reactQuery.useMutation({
7479
- mutationFn: (input) => chunkGKGAPU6T_cjs.inWorkspace(prime, input.workspaceExtId, () => browser.mail.setNativeFiling(client.fetch, input)),
7466
+ mutationFn: (input) => chunkNK5KFHXP_cjs.inWorkspace(prime, input.workspaceExtId, () => browser.mail.setNativeFiling(client.fetch, input)),
7480
7467
  onSuccess: () => queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.mailQueryKeys.allFiling() })
7481
7468
  });
7482
7469
  }
@@ -7539,26 +7526,26 @@ function useConnectedMailFiling(account, messages) {
7539
7526
  }
7540
7527
 
7541
7528
  // src/mail/offline/drafts.ts
7542
- var keyFor2 = (id) => chunkFAJLJDWS_cjs.blind("draft", id);
7529
+ var keyFor2 = (id) => chunkFOBB5U4Y_cjs.blind("draft", id);
7543
7530
  async function saveLocalDraft(accountId, compose, id = crypto.randomUUID()) {
7544
7531
  const draft = { id, accountId, compose, updatedAt: Date.now() };
7545
- await chunkFAJLJDWS_cjs.putRecord({
7532
+ await chunkFOBB5U4Y_cjs.putRecord({
7546
7533
  key: await keyFor2(id),
7547
7534
  kind: "draft",
7548
- bucket: await chunkFAJLJDWS_cjs.blind("bucket", "drafts", accountId),
7535
+ bucket: await chunkFOBB5U4Y_cjs.blind("bucket", "drafts", accountId),
7549
7536
  sortAt: draft.updatedAt,
7550
7537
  size: 0,
7551
7538
  lastAccess: draft.updatedAt,
7552
- data: await chunkFAJLJDWS_cjs.sealJson(draft)
7539
+ data: await chunkFOBB5U4Y_cjs.sealJson(draft)
7553
7540
  });
7554
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("drafts");
7541
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("drafts");
7555
7542
  return draft;
7556
7543
  }
7557
7544
  async function listLocalDrafts(accountId) {
7558
7545
  const drafts = [];
7559
- for (const record of await chunkFAJLJDWS_cjs.recordsOfKind("draft")) {
7546
+ for (const record of await chunkFOBB5U4Y_cjs.recordsOfKind("draft")) {
7560
7547
  try {
7561
- const draft = await chunkFAJLJDWS_cjs.openJson(record.data);
7548
+ const draft = await chunkFOBB5U4Y_cjs.openJson(record.data);
7562
7549
  if (!accountId || draft.accountId === accountId) drafts.push(draft);
7563
7550
  } catch {
7564
7551
  }
@@ -7566,8 +7553,8 @@ async function listLocalDrafts(accountId) {
7566
7553
  return drafts.sort((a, b) => b.updatedAt - a.updatedAt);
7567
7554
  }
7568
7555
  async function deleteLocalDraft(id) {
7569
- await chunkFAJLJDWS_cjs.deleteRecords([await keyFor2(id)]);
7570
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("drafts");
7556
+ await chunkFOBB5U4Y_cjs.deleteRecords([await keyFor2(id)]);
7557
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("drafts");
7571
7558
  }
7572
7559
  async function syncLocalDrafts(save) {
7573
7560
  let uploaded = 0;
@@ -7580,27 +7567,27 @@ async function syncLocalDrafts(save) {
7580
7567
  } catch (error) {
7581
7568
  const status = error.status;
7582
7569
  if (isNetworkFailure(error) || status === void 0 || status === 401 || status >= 500) break;
7583
- await chunkFAJLJDWS_cjs.putRecord({
7570
+ await chunkFOBB5U4Y_cjs.putRecord({
7584
7571
  key: await keyFor2(draft.id),
7585
7572
  kind: "draft",
7586
- bucket: await chunkFAJLJDWS_cjs.blind("bucket", "drafts", draft.accountId),
7573
+ bucket: await chunkFOBB5U4Y_cjs.blind("bucket", "drafts", draft.accountId),
7587
7574
  sortAt: draft.updatedAt,
7588
7575
  size: 0,
7589
7576
  lastAccess: Date.now(),
7590
- data: await chunkFAJLJDWS_cjs.sealJson({
7577
+ data: await chunkFOBB5U4Y_cjs.sealJson({
7591
7578
  ...draft,
7592
7579
  error: error instanceof Error ? error.message : "The server refused this draft"
7593
7580
  })
7594
7581
  });
7595
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("drafts");
7582
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("drafts");
7596
7583
  }
7597
7584
  }
7598
7585
  return uploaded;
7599
7586
  }
7600
7587
 
7601
7588
  // src/mail/offline/outbox.ts
7602
- var bucket2 = () => chunkFAJLJDWS_cjs.blind("bucket", "outbox");
7603
- var keyFor3 = (id) => chunkFAJLJDWS_cjs.blind("outbox", id);
7589
+ var bucket2 = () => chunkFOBB5U4Y_cjs.blind("bucket", "outbox");
7590
+ var keyFor3 = (id) => chunkFOBB5U4Y_cjs.blind("outbox", id);
7604
7591
  function outboxProblem(compose) {
7605
7592
  const missing = compose.attachments.find((a) => a.content_base64 == null);
7606
7593
  if (missing)
@@ -7609,22 +7596,22 @@ function outboxProblem(compose) {
7609
7596
  }
7610
7597
  var seqCounter = 0;
7611
7598
  async function write2(item) {
7612
- await chunkFAJLJDWS_cjs.putRecord({
7599
+ await chunkFOBB5U4Y_cjs.putRecord({
7613
7600
  key: await keyFor3(item.id),
7614
7601
  kind: "outbox",
7615
7602
  bucket: await bucket2(),
7616
7603
  sortAt: item.seq,
7617
7604
  size: 0,
7618
7605
  lastAccess: Date.now(),
7619
- data: await chunkFAJLJDWS_cjs.sealJson(item)
7606
+ data: await chunkFOBB5U4Y_cjs.sealJson(item)
7620
7607
  });
7621
7608
  }
7622
7609
  async function listOutbox() {
7623
- const records = await chunkFAJLJDWS_cjs.recordsInBucket(await bucket2());
7610
+ const records = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucket2());
7624
7611
  const items = [];
7625
7612
  for (const record of records) {
7626
7613
  try {
7627
- items.push(await chunkFAJLJDWS_cjs.openJson(record.data));
7614
+ items.push(await chunkFOBB5U4Y_cjs.openJson(record.data));
7628
7615
  } catch {
7629
7616
  }
7630
7617
  }
@@ -7648,18 +7635,18 @@ async function enqueueOutbox(input) {
7648
7635
  seq: seqCounter
7649
7636
  };
7650
7637
  await write2(item);
7651
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("outbox");
7638
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("outbox");
7652
7639
  return item;
7653
7640
  }
7654
7641
  async function update(item, patch) {
7655
7642
  const next = { ...item, ...patch };
7656
7643
  await write2(next);
7657
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("outbox");
7644
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("outbox");
7658
7645
  return next;
7659
7646
  }
7660
7647
  async function deleteOutboxItem(id) {
7661
- await chunkFAJLJDWS_cjs.deleteRecords([await keyFor3(id)]);
7662
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("outbox");
7648
+ await chunkFOBB5U4Y_cjs.deleteRecords([await keyFor3(id)]);
7649
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("outbox");
7663
7650
  }
7664
7651
  async function retryOutboxItem(id) {
7665
7652
  const item = (await listOutbox()).find((i) => i.id === id);
@@ -7750,14 +7737,14 @@ async function purgeSentOutbox(olderThanMs = 0) {
7750
7737
  const cutoff = Date.now() - olderThanMs;
7751
7738
  const done = (await listOutbox()).filter((i) => i.status === "sent" && (i.sentAt ?? 0) <= cutoff);
7752
7739
  if (done.length === 0) return;
7753
- await chunkFAJLJDWS_cjs.deleteRecords(await Promise.all(done.map((i) => keyFor3(i.id))));
7754
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("outbox");
7740
+ await chunkFOBB5U4Y_cjs.deleteRecords(await Promise.all(done.map((i) => keyFor3(i.id))));
7741
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("outbox");
7755
7742
  }
7756
7743
  var STATUS_KEY = "status";
7757
7744
  var FULL_SYNC_EVERY_MS = 60 * 60 * 1e3;
7758
7745
  var MAX_PAGES = 200;
7759
7746
  async function getOfflineMailStatus() {
7760
- return await chunkFAJLJDWS_cjs.getMeta(STATUS_KEY) ?? { messages: 0, bytes: 0, skipped: [] };
7747
+ return await chunkFOBB5U4Y_cjs.getMeta(STATUS_KEY) ?? { messages: 0, bytes: 0, skipped: [] };
7761
7748
  }
7762
7749
  var MB = 1024 * 1024;
7763
7750
  var time = (m) => m.received_at ? Date.parse(m.received_at) || 0 : 0;
@@ -7848,23 +7835,23 @@ async function collectGarbage(accounts) {
7848
7835
  expected.add(await keyOf.attachment(account.id, message.id, attachment.id));
7849
7836
  }
7850
7837
  }
7851
- const orphans = (await chunkFAJLJDWS_cjs.recordsInBucket(await bucketOf.account(account.id))).filter((r) => (r.kind === "body" || r.kind === "attachment") && !expected.has(r.key)).map((r) => r.key);
7838
+ const orphans = (await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.account(account.id))).filter((r) => (r.kind === "body" || r.kind === "attachment") && !expected.has(r.key)).map((r) => r.key);
7852
7839
  await removeKeys(orphans);
7853
7840
  }
7854
7841
  }
7855
7842
  async function forgetAccount(accountId) {
7856
7843
  for (const folder of await loadFolders(accountId) ?? []) {
7857
- const records2 = await chunkFAJLJDWS_cjs.recordsInBucket(await bucketOf.folder(accountId, folder.id));
7844
+ const records2 = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.folder(accountId, folder.id));
7858
7845
  await removeKeys(records2.map((r) => r.key));
7859
7846
  }
7860
- const records = await chunkFAJLJDWS_cjs.recordsInBucket(await bucketOf.account(accountId));
7847
+ const records = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.account(accountId));
7861
7848
  await removeKeys(records.filter((r) => r.kind !== "draft").map((r) => r.key));
7862
7849
  }
7863
7850
  async function enforceQuota(quotaBytes) {
7864
- let used = (await chunkFAJLJDWS_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0);
7851
+ let used = (await chunkFOBB5U4Y_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0);
7865
7852
  if (used <= quotaBytes) return used;
7866
7853
  for (const kind of ["attachment", "body"]) {
7867
- const records = (await chunkFAJLJDWS_cjs.recordsOfKind(kind)).sort(
7854
+ const records = (await chunkFOBB5U4Y_cjs.recordsOfKind(kind)).sort(
7868
7855
  (a, b) => kind === "attachment" ? a.lastAccess - b.lastAccess : a.sortAt - b.sortAt
7869
7856
  );
7870
7857
  const evict = [];
@@ -7880,34 +7867,34 @@ async function enforceQuota(quotaBytes) {
7880
7867
  }
7881
7868
  var CONTENT_KINDS = ["header", "body", "attachment"];
7882
7869
  async function trimOfflineMailbox(settings, now = Date.now()) {
7883
- const windowStart = chunkFAJLJDWS_cjs.offlineWindowStart(settings, now);
7870
+ const windowStart = chunkFOBB5U4Y_cjs.offlineWindowStart(settings, now);
7884
7871
  const kinds = settings.enabled ? CONTENT_KINDS : [...CONTENT_KINDS, "folders"];
7885
7872
  for (const kind of kinds) {
7886
- const records = await chunkFAJLJDWS_cjs.recordsOfKind(kind);
7873
+ const records = await chunkFOBB5U4Y_cjs.recordsOfKind(kind);
7887
7874
  const old = settings.enabled ? records.filter((r) => r.sortAt > 0 && r.sortAt < windowStart) : records;
7888
7875
  await removeKeys(old.map((r) => r.key));
7889
7876
  }
7890
7877
  const previous = await getOfflineMailStatus();
7891
7878
  const status = {
7892
7879
  ...previous,
7893
- messages: (await chunkFAJLJDWS_cjs.recordsOfKind("header")).length,
7894
- bytes: (await chunkFAJLJDWS_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0),
7880
+ messages: (await chunkFOBB5U4Y_cjs.recordsOfKind("header")).length,
7881
+ bytes: (await chunkFOBB5U4Y_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0),
7895
7882
  // A shorter window no longer covers what the last full pass fetched: growing it again (even
7896
7883
  // before the next hourly full pass) makes the next pass a full one.
7897
- windowDays: settings.enabled && previous.windowDays !== void 0 ? Math.min(previous.windowDays, chunkFAJLJDWS_cjs.SCOPE_DAYS[settings.scope]) : void 0,
7884
+ windowDays: settings.enabled && previous.windowDays !== void 0 ? Math.min(previous.windowDays, chunkFOBB5U4Y_cjs.SCOPE_DAYS[settings.scope]) : void 0,
7898
7885
  // Off: nothing is saved, so turning it back on starts with a full pass.
7899
7886
  ...!settings.enabled && { lastSyncedAt: void 0, lastFullSyncAt: void 0 }
7900
7887
  };
7901
- await chunkFAJLJDWS_cjs.setMeta(STATUS_KEY, status);
7902
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("status");
7888
+ await chunkFOBB5U4Y_cjs.setMeta(STATUS_KEY, status);
7889
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("status");
7903
7890
  return status;
7904
7891
  }
7905
7892
  async function syncMailbox(transport, settings, options = {}) {
7906
7893
  const now = options.now ?? Date.now();
7907
7894
  const previous = await getOfflineMailStatus();
7908
- const days = chunkFAJLJDWS_cjs.SCOPE_DAYS[settings.scope];
7895
+ const days = chunkFOBB5U4Y_cjs.SCOPE_DAYS[settings.scope];
7909
7896
  const full = options.full || !previous.lastFullSyncAt || now - previous.lastFullSyncAt > FULL_SYNC_EVERY_MS || (previous.windowDays ?? 0) < days;
7910
- const windowStart = chunkFAJLJDWS_cjs.offlineWindowStart(settings, now);
7897
+ const windowStart = chunkFOBB5U4Y_cjs.offlineWindowStart(settings, now);
7911
7898
  const quota = settings.quotaMb * MB;
7912
7899
  const skipped = [];
7913
7900
  let error;
@@ -7919,7 +7906,7 @@ async function syncMailbox(transport, settings, options = {}) {
7919
7906
  for (const gone of before.filter((b) => !accounts.some((a) => a.id === b.id)))
7920
7907
  await forgetAccount(gone.id);
7921
7908
  const budget = new Budget(
7922
- (await chunkFAJLJDWS_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0),
7909
+ (await chunkFOBB5U4Y_cjs.allRecordSizes()).reduce((n, r) => n + r.size, 0),
7923
7910
  quota
7924
7911
  );
7925
7912
  for (const account of accounts) {
@@ -7933,12 +7920,12 @@ async function syncMailbox(transport, settings, options = {}) {
7933
7920
  const oldFolders = await loadFolders(account.id) ?? [];
7934
7921
  await saveFolders(account.id, folders);
7935
7922
  for (const gone of oldFolders.filter((o) => !folders.some((f) => f.id === o.id))) {
7936
- const records = await chunkFAJLJDWS_cjs.recordsInBucket(await bucketOf.folder(account.id, gone.id));
7923
+ const records = await chunkFOBB5U4Y_cjs.recordsInBucket(await bucketOf.folder(account.id, gone.id));
7937
7924
  await removeKeys(records.map((r) => r.key));
7938
7925
  }
7939
7926
  for (const folder of folders.filter((f) => !isVirtualFolder(f)))
7940
7927
  await syncFolder(transport, account, folder, settings, windowStart, full, budget);
7941
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("mailbox");
7928
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("mailbox");
7942
7929
  } catch (accountError) {
7943
7930
  if (accountError.status === void 0) throw accountError;
7944
7931
  client.logger.warn("[offline-mail] account sync failed", accountError);
@@ -7956,19 +7943,19 @@ async function syncMailbox(transport, settings, options = {}) {
7956
7943
  const trimmed = await trimOfflineMailbox(current, now);
7957
7944
  if (!current.enabled) return trimmed;
7958
7945
  const bytes = await enforceQuota(current.quotaMb * MB);
7959
- const messages = (await chunkFAJLJDWS_cjs.recordsOfKind("header")).length;
7946
+ const messages = (await chunkFOBB5U4Y_cjs.recordsOfKind("header")).length;
7960
7947
  const fullDone = !error && full;
7961
7948
  const status = {
7962
7949
  lastSyncedAt: error ? previous.lastSyncedAt : now,
7963
7950
  lastFullSyncAt: fullDone ? now : previous.lastFullSyncAt,
7964
- windowDays: fullDone ? Math.min(days, chunkFAJLJDWS_cjs.SCOPE_DAYS[current.scope]) : trimmed.windowDays,
7951
+ windowDays: fullDone ? Math.min(days, chunkFOBB5U4Y_cjs.SCOPE_DAYS[current.scope]) : trimmed.windowDays,
7965
7952
  messages,
7966
7953
  bytes,
7967
7954
  error,
7968
7955
  skipped
7969
7956
  };
7970
- await chunkFAJLJDWS_cjs.setMeta(STATUS_KEY, status);
7971
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("status");
7957
+ await chunkFOBB5U4Y_cjs.setMeta(STATUS_KEY, status);
7958
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("status");
7972
7959
  return status;
7973
7960
  }
7974
7961
 
@@ -8060,7 +8047,7 @@ function liveChangeSender(arbi) {
8060
8047
  const { kind: _, ...request } = change;
8061
8048
  await sendMailFile(
8062
8049
  (p, i) => arbi.mail.fetch(p, i),
8063
- chunkGKGAPU6T_cjs.primeOnArbi(arbi),
8050
+ chunkNK5KFHXP_cjs.primeOnArbi(arbi),
8064
8051
  account,
8065
8052
  messageId,
8066
8053
  request
@@ -8167,20 +8154,20 @@ function isMailSyncRunning() {
8167
8154
  return syncing;
8168
8155
  }
8169
8156
  async function syncOfflineMailbox({ arbi }, options = {}) {
8170
- const latest = () => chunkFAJLJDWS_cjs.getOfflineMailSettings(sessionUser(arbi));
8157
+ const latest = () => chunkFOBB5U4Y_cjs.getOfflineMailSettings(sessionUser(arbi));
8171
8158
  const settings = latest();
8172
8159
  if (!settings.enabled || !canReachMail(arbi)) return;
8173
8160
  void requestPersistentStorage();
8174
8161
  await exclusive("arbi-mail-sync", async () => {
8175
8162
  syncing = true;
8176
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("status");
8163
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("status");
8177
8164
  try {
8178
8165
  await syncMailbox(liveTransport(arbi), latest(), { ...options, latest });
8179
8166
  } catch (error) {
8180
8167
  client.logger.error("[offline-mail] sync failed", error);
8181
8168
  } finally {
8182
8169
  syncing = false;
8183
- chunkFAJLJDWS_cjs.notifyOfflineMailChange("status");
8170
+ chunkFOBB5U4Y_cjs.notifyOfflineMailChange("status");
8184
8171
  }
8185
8172
  });
8186
8173
  }
@@ -8211,9 +8198,9 @@ async function savedFolder(accountId, folderId) {
8211
8198
  }
8212
8199
  function offlineMailReads(getArbi, { keepsMail = () => true } = {}) {
8213
8200
  const call = (path) => mailJson((p, i) => getArbi().mail.fetch(p, i), path);
8214
- const settings = () => chunkFAJLJDWS_cjs.getOfflineMailSettings(sessionUser(getArbi()));
8201
+ const settings = () => chunkFOBB5U4Y_cjs.getOfflineMailSettings(sessionUser(getArbi()));
8215
8202
  const storeEnabled = () => settings().enabled;
8216
- const keeps = (message) => chunkFAJLJDWS_cjs.inOfflineWindow(settings(), message.received_at);
8203
+ const keeps = (message) => chunkFOBB5U4Y_cjs.inOfflineWindow(settings(), message.received_at);
8217
8204
  const remember = (write3) => {
8218
8205
  if (!keepsMail()) return;
8219
8206
  write3().catch((error) => client.logger.warn("[offline-mail] could not save for offline use", error));
@@ -8749,7 +8736,7 @@ function applyRunFinished(queryClient, arbi, session, message, onQuotaExceeded)
8749
8736
  if (!conversationId) return;
8750
8737
  session.setConversationGenerating(conversationId, false, null);
8751
8738
  if (message.doc_ext_ids?.length) {
8752
- chunkGKGAPU6T_cjs.refreshDocuments(queryClient, arbi, message.doc_ext_ids).catch(
8739
+ chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbi, message.doc_ext_ids).catch(
8753
8740
  (error) => client.logger.error("[WebSocket] Failed to refresh task outputs:", error)
8754
8741
  );
8755
8742
  }
@@ -8807,22 +8794,22 @@ function ArbiWebSocketProvider({
8807
8794
  arbiRef.current = arbi;
8808
8795
  const queryClient = reactQuery.useQueryClient();
8809
8796
  const subscribersRef = React.useRef(/* @__PURE__ */ new Set());
8810
- const setStatus = chunkGKGAPU6T_cjs.useArbiWsStore((s) => s.setStatus);
8811
- const applyTaskUpdate = chunkGKGAPU6T_cjs.useArbiWsStore((s) => s.applyTaskUpdate);
8812
- const applyPresence = chunkGKGAPU6T_cjs.useArbiWsStore((s) => s.applyPresence);
8813
- const reset = chunkGKGAPU6T_cjs.useArbiWsStore((s) => s.reset);
8814
- const setEvicted = chunkGKGAPU6T_cjs.useArbiWsStore((s) => s.setEvicted);
8797
+ const setStatus = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.setStatus);
8798
+ const applyTaskUpdate = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.applyTaskUpdate);
8799
+ const applyPresence = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.applyPresence);
8800
+ const reset = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.reset);
8801
+ const setEvicted = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.setEvicted);
8815
8802
  const onAuthenticatedRef = React.useRef(onAuthenticated);
8816
8803
  onAuthenticatedRef.current = onAuthenticated;
8817
8804
  const handlersRef = React.useRef(handlers);
8818
8805
  handlersRef.current = handlers;
8819
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
8806
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
8820
8807
  const sessionRef = React.useRef(session);
8821
8808
  sessionRef.current = session;
8822
8809
  const host = chunkO32T7XRD_cjs.useArbiHost();
8823
8810
  const hostRef = React.useRef(host);
8824
8811
  hostRef.current = host;
8825
- const acceptRings = chunkFAJLJDWS_cjs.useFeature("calls");
8812
+ const acceptRings = chunkFOBB5U4Y_cjs.useFeature("calls");
8826
8813
  const acceptRingsRef = React.useRef(acceptRings);
8827
8814
  acceptRingsRef.current = acceptRings;
8828
8815
  useOnlineSync();
@@ -8866,18 +8853,18 @@ function ArbiWebSocketProvider({
8866
8853
  client.logger.error("[WebSocket] Server error:", msg.message);
8867
8854
  else if (client.isMessageType(msg, "batch_complete")) {
8868
8855
  if (msg.batch_type === "entity_extract") {
8869
- chunkGKGAPU6T_cjs.finishEntityExtraction(msg.doc_ext_ids ?? []);
8856
+ chunkNK5KFHXP_cjs.finishEntityExtraction(msg.doc_ext_ids ?? []);
8870
8857
  void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allFacts() });
8871
8858
  }
8872
8859
  if (msg.batch_type === "upload" || msg.batch_type === "entity_extract") {
8873
8860
  if (msg.doc_ext_ids?.length)
8874
- void chunkGKGAPU6T_cjs.refreshDocuments(queryClient, arbiRef.current, msg.doc_ext_ids);
8861
+ void chunkNK5KFHXP_cjs.refreshDocuments(queryClient, arbiRef.current, msg.doc_ext_ids);
8875
8862
  void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.allTags() });
8876
8863
  }
8877
8864
  } else if (type.startsWith("chat.") || type === "agent_dm_status")
8878
- void chunkFAJLJDWS_cjs.applyChatEvent(arbiRef.current, queryClient, msg);
8865
+ void chunkFOBB5U4Y_cjs.applyChatEvent(arbiRef.current, queryClient, msg);
8879
8866
  else if (type.startsWith("call."))
8880
- chunkFAJLJDWS_cjs.applyCallEvent(queryClient, msg, { me: me(), acceptRings: acceptRingsRef.current });
8867
+ chunkFOBB5U4Y_cjs.applyCallEvent(queryClient, msg, { me: me(), acceptRings: acceptRingsRef.current });
8881
8868
  else if (isNotificationRow(msg)) applyNotificationRow(queryClient, msg, me());
8882
8869
  else void applyLiveUpdate(queryClient, msg);
8883
8870
  try {
@@ -8988,7 +8975,7 @@ function useArbiWsMessage(type, handler) {
8988
8975
  );
8989
8976
  }
8990
8977
  function useArbiWsStatus() {
8991
- return chunkGKGAPU6T_cjs.useArbiWsStore((s) => s.status);
8978
+ return chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.status);
8992
8979
  }
8993
8980
 
8994
8981
  // src/workspaces/shell-workspaces.ts
@@ -9253,7 +9240,7 @@ function useSwitchWorkspace() {
9253
9240
  const arbi = chunkO32T7XRD_cjs.useArbi();
9254
9241
  const arbiRef = React.useRef(arbi);
9255
9242
  arbiRef.current = arbi;
9256
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
9243
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
9257
9244
  const queryClient = reactQuery.useQueryClient();
9258
9245
  React.useEffect(
9259
9246
  () => arbi.onSigningOut?.(() => {
@@ -9270,11 +9257,11 @@ function useSwitchWorkspace() {
9270
9257
  function useOpenSelectedWorkspace() {
9271
9258
  const arbi = chunkO32T7XRD_cjs.useArbi();
9272
9259
  const { clearWorkspace, openSelectedWorkspace } = useSwitchWorkspace();
9273
- const workspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
9274
- const status = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceStatus);
9275
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
9260
+ const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
9261
+ const status = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceStatus);
9262
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
9276
9263
  const queryClient = reactQuery.useQueryClient();
9277
- const { data: workspaces, isLoading: listing, isFetching } = chunk7L7QRIQ2_cjs.useWorkspaces();
9264
+ const { data: workspaces, isLoading: listing, isFetching } = chunkH3XHBIZ6_cjs.useWorkspaces();
9278
9265
  const listed = workspaces;
9279
9266
  const archived = listed?.find((w) => w.external_id === workspaceId && w.archive);
9280
9267
  const reads = queryClient.getQueryState(chunkO32T7XRD_cjs.arbiQueryKeys.workspaces())?.dataUpdateCount ?? 0;
@@ -9580,12 +9567,12 @@ function useWorkspaceExportDownload({
9580
9567
  const client = arbi.getClient().fetch;
9581
9568
  const archive = await buildWorkspaceArchive({
9582
9569
  exportData: data,
9583
- fetchFile: async (docExtId, version, kind) => kind === "markup" ? (await chunk3JAEX57E_cjs.fetchMarkupPdf(client, docExtId, version, workspaceId)).blob : chunk3JAEX57E_cjs.fetchDocumentFile(client, docExtId, { version, workspaceExtId: workspaceId }),
9570
+ fetchFile: async (docExtId, version, kind) => kind === "markup" ? (await chunkG5DYDBQN_cjs.fetchMarkupPdf(client, docExtId, version, workspaceId)).blob : chunkG5DYDBQN_cjs.fetchDocumentFile(client, docExtId, { version, workspaceExtId: workspaceId }),
9584
9571
  metadataCsv,
9585
9572
  onProgress: (done, total) => setProgress({ done, total })
9586
9573
  });
9587
9574
  const fileName = archiveName(workspaceName, "export");
9588
- chunk3JAEX57E_cjs.downloadBlob(archive.blob, fileName);
9575
+ chunkG5DYDBQN_cjs.downloadBlob(archive.blob, fileName);
9589
9576
  const files = `${archive.fileCount} file${archive.fileCount !== 1 ? "s" : ""}`;
9590
9577
  if (archive.failed.length === 0) {
9591
9578
  chunkIX4HOS5Z_cjs.notify.success(`Successfully downloaded ${files} and data in ${fileName}`);
@@ -9741,9 +9728,9 @@ var EMPTY2 = { query: "", lastQuery: "", hits: null, workspaceId: null };
9741
9728
  function useFactsSearch(options = {}) {
9742
9729
  const { mode = "hybrid", limit = 30 } = options;
9743
9730
  const arbi = chunkO32T7XRD_cjs.useArbi();
9744
- const session = chunk7L7QRIQ2_cjs.useArbiSessionStore();
9731
+ const session = chunkH3XHBIZ6_cjs.useArbiSessionStore();
9745
9732
  const workspaceId = options.workspaceId ?? (arbi.hasWorkspace ? arbi.getWorkspaceId() : null);
9746
- const [kept, setKept] = chunk7L7QRIQ2_cjs.useTransientView(FACTS_SEARCH_VIEW, EMPTY2);
9733
+ const [kept, setKept] = chunkH3XHBIZ6_cjs.useTransientView(FACTS_SEARCH_VIEW, EMPTY2);
9747
9734
  const searchFacts = useSearchFacts(workspaceId);
9748
9735
  const run2 = React.useRef(0);
9749
9736
  const foreign = !!kept.workspaceId && !!workspaceId && kept.workspaceId !== workspaceId;
@@ -10335,7 +10322,7 @@ function namesOfWorkspaces(workspaces) {
10335
10322
  return names;
10336
10323
  }
10337
10324
  function useNames(enabled = true) {
10338
- const { data } = chunk7L7QRIQ2_cjs.useWorkspaces({ enabled });
10325
+ const { data } = chunkH3XHBIZ6_cjs.useWorkspaces({ enabled });
10339
10326
  return React.useMemo(() => {
10340
10327
  const names = namesOfWorkspaces(data);
10341
10328
  return (id) => id ? names.get(id) ?? id : null;
@@ -10396,8 +10383,8 @@ function createWorkflowsSource(labels) {
10396
10383
  description: l.description,
10397
10384
  useFields: staticFields(fields),
10398
10385
  useRows(_params, enabled) {
10399
- const on = chunkFAJLJDWS_cjs.useFeature("workflows");
10400
- const workspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId);
10386
+ const on = chunkFOBB5U4Y_cjs.useFeature("workflows");
10387
+ const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId);
10401
10388
  const query = useWorkflows({ enabled: enabled && on });
10402
10389
  const nameOf = useNames(enabled);
10403
10390
  const rows = React.useMemo(
@@ -10465,9 +10452,9 @@ function createActivitySource(labels) {
10465
10452
  useFields: staticFields(fields),
10466
10453
  useRows(_params, enabled) {
10467
10454
  const arbi = chunkO32T7XRD_cjs.useArbi();
10468
- const workspaceId = chunk7L7QRIQ2_cjs.useArbiSessionState((s) => s.workspaceId) ?? void 0;
10455
+ const workspaceId = chunkH3XHBIZ6_cjs.useArbiSessionState((s) => s.workspaceId) ?? void 0;
10469
10456
  const { settled, openSelectedWorkspace } = useSwitchWorkspace();
10470
- const feed = chunk7L7QRIQ2_cjs.useWorkspaceActivity(workspaceId, {
10457
+ const feed = chunkH3XHBIZ6_cjs.useWorkspaceActivity(workspaceId, {
10471
10458
  enabled: enabled && arbi.isLoggedIn,
10472
10459
  limit: ENTRIES,
10473
10460
  beforeFetch: async () => {
@@ -10535,7 +10522,7 @@ function createConversationsSource(labels) {
10535
10522
  useRows(params, enabled) {
10536
10523
  const arbi = chunkO32T7XRD_cjs.useArbi();
10537
10524
  const workspaceId = typeof params.workspaceId === "string" && params.workspaceId ? params.workspaceId : arbi.hasWorkspace ? arbi.getWorkspaceId() : void 0;
10538
- const query = chunk7L7QRIQ2_cjs.useConversations(workspaceId, { enabled });
10525
+ const query = chunkH3XHBIZ6_cjs.useConversations(workspaceId, { enabled });
10539
10526
  const nameOf = useNames(enabled);
10540
10527
  const rows = React.useMemo(() => {
10541
10528
  const now = (/* @__PURE__ */ new Date()).toISOString();
@@ -10643,7 +10630,7 @@ function createDatabaseSource(labels) {
10643
10630
  const arbi = chunkO32T7XRD_cjs.useArbi();
10644
10631
  const databaseId = text(params.databaseId);
10645
10632
  const viewName = text(params.view);
10646
- const settings = chunkFAJLJDWS_cjs.useUserSettings({ enabled: Boolean(viewName) });
10633
+ const settings = chunkFOBB5U4Y_cjs.useUserSettings({ enabled: Boolean(viewName) });
10647
10634
  const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
10648
10635
  return React.useMemo(
10649
10636
  () => viewName && databaseId ? viewsOfTable(settings.data?.tableviews, workspaceId, databaseId).find(
@@ -10725,7 +10712,7 @@ function createDatabaseSource(labels) {
10725
10712
  useOptions(params) {
10726
10713
  const arbi = chunkO32T7XRD_cjs.useArbi();
10727
10714
  const databaseId = text(params.databaseId);
10728
- const settings = chunkFAJLJDWS_cjs.useUserSettings({ enabled: Boolean(databaseId) });
10715
+ const settings = chunkFOBB5U4Y_cjs.useUserSettings({ enabled: Boolean(databaseId) });
10729
10716
  const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : null;
10730
10717
  const options = React.useMemo(
10731
10718
  () => databaseId ? viewsOfTable(settings.data?.tableviews, workspaceId, databaseId).map((v) => ({
@@ -10801,7 +10788,7 @@ function createDocumentsSource(labels) {
10801
10788
  description: l.description,
10802
10789
  useFields: staticFields(fields),
10803
10790
  useRows(params, enabled) {
10804
- const query = chunkGKGAPU6T_cjs.useDocuments(workspaceOf2(params), { enabled });
10791
+ const query = chunkNK5KFHXP_cjs.useDocuments(workspaceOf2(params), { enabled });
10805
10792
  const nameOf = useNames(enabled);
10806
10793
  const rows = React.useMemo(
10807
10794
  () => query.data?.map((d) => ({
@@ -10934,7 +10921,7 @@ function createProjectsSource(options = {}) {
10934
10921
  label: l.source,
10935
10922
  description: l.description,
10936
10923
  useFields() {
10937
- const query = chunk7L7QRIQ2_cjs.useProjects();
10924
+ const query = chunkH3XHBIZ6_cjs.useProjects();
10938
10925
  const fields = React.useMemo(
10939
10926
  () => fieldsOf(query.data),
10940
10927
  [query.data]
@@ -10942,7 +10929,7 @@ function createProjectsSource(options = {}) {
10942
10929
  return { fields, isLoading: query.isLoading, error: query.error };
10943
10930
  },
10944
10931
  useRows(_params, enabled) {
10945
- const query = chunk7L7QRIQ2_cjs.useProjects({ enabled });
10932
+ const query = chunkH3XHBIZ6_cjs.useProjects({ enabled });
10946
10933
  const nameOf = useNames(enabled);
10947
10934
  const rows = React.useMemo(() => {
10948
10935
  const projects = query.data;
@@ -11019,7 +11006,7 @@ function createTagsSource(labels) {
11019
11006
  description: l.description,
11020
11007
  useFields: staticFields(fields),
11021
11008
  useRows(_params, enabled) {
11022
- const query = chunk7L7QRIQ2_cjs.useTags(void 0, { enabled });
11009
+ const query = chunkH3XHBIZ6_cjs.useTags(void 0, { enabled });
11023
11010
  const nameOf = useNames(enabled);
11024
11011
  const rows = React.useMemo(
11025
11012
  () => query.data?.map((t) => ({
@@ -11144,8 +11131,8 @@ function useUsageResponses(params, enabled) {
11144
11131
  const arbi = chunkO32T7XRD_cjs.useArbi();
11145
11132
  const monthsBack = monthsBackOf(params);
11146
11133
  const only = projectOf(params);
11147
- const projects = chunk7L7QRIQ2_cjs.useProjects({ enabled });
11148
- const user = chunk7L7QRIQ2_cjs.useCurrentUser({ enabled: enabled && arbi.isLoggedIn && !only });
11134
+ const projects = chunkH3XHBIZ6_cjs.useProjects({ enabled });
11135
+ const user = chunkH3XHBIZ6_cjs.useCurrentUser({ enabled: enabled && arbi.isLoggedIn && !only });
11149
11136
  const me = user.data?.external_id;
11150
11137
  const list = React.useMemo(() => {
11151
11138
  const all = projects.data ?? [];
@@ -11201,8 +11188,8 @@ function usageParams(l) {
11201
11188
  placeholder: l.allProjects,
11202
11189
  useOptions() {
11203
11190
  const arbi = chunkO32T7XRD_cjs.useArbi();
11204
- const projects = chunk7L7QRIQ2_cjs.useProjects();
11205
- const user = chunk7L7QRIQ2_cjs.useCurrentUser({ enabled: arbi.isLoggedIn });
11191
+ const projects = chunkH3XHBIZ6_cjs.useProjects();
11192
+ const user = chunkH3XHBIZ6_cjs.useCurrentUser({ enabled: arbi.isLoggedIn });
11206
11193
  const me = user.data?.external_id;
11207
11194
  const options = React.useMemo(
11208
11195
  () => ownedBy(projects.data, me).map((p) => ({ value: p.external_id, label: p.name })),
@@ -11273,7 +11260,7 @@ function createUsageBreakdownSource(labels) {
11273
11260
  useRows(params, enabled) {
11274
11261
  const by = breakdownOf(params);
11275
11262
  const { usages, isLoading, error } = useUsageResponses(params, enabled);
11276
- const workspaces = chunk7L7QRIQ2_cjs.useWorkspaces({
11263
+ const workspaces = chunkH3XHBIZ6_cjs.useWorkspaces({
11277
11264
  enabled: enabled && (by === "user" || by === "workspace")
11278
11265
  });
11279
11266
  const names = React.useMemo(
@@ -11322,8 +11309,8 @@ function createWorkspacesSource(labels) {
11322
11309
  description: l.description,
11323
11310
  useFields: staticFields(fields),
11324
11311
  useRows(_params, enabled) {
11325
- const workspaces = chunk7L7QRIQ2_cjs.useWorkspaces({ enabled });
11326
- const projects = chunk7L7QRIQ2_cjs.useProjects({ enabled });
11312
+ const workspaces = chunkH3XHBIZ6_cjs.useWorkspaces({ enabled });
11313
+ const projects = chunkH3XHBIZ6_cjs.useProjects({ enabled });
11327
11314
  const rows = React.useMemo(() => {
11328
11315
  const list = workspaces.data;
11329
11316
  if (!list) return void 0;
@@ -12238,8 +12225,8 @@ function usePeople() {
12238
12225
  const arbi = chunkO32T7XRD_cjs.useArbi();
12239
12226
  const meId = arbi.isLoggedIn ? arbi.user.identity()?.externalId : void 0;
12240
12227
  const { data: contacts = [] } = useContacts();
12241
- const { data: workspaces = [] } = chunk7L7QRIQ2_cjs.useWorkspaces();
12242
- const { data: agents = [] } = chunk7L7QRIQ2_cjs.useAgents();
12228
+ const { data: workspaces = [] } = chunkH3XHBIZ6_cjs.useWorkspaces();
12229
+ const { data: agents = [] } = chunkH3XHBIZ6_cjs.useAgents();
12243
12230
  return React.useMemo(() => {
12244
12231
  const people = [];
12245
12232
  const contactOf = /* @__PURE__ */ new Map();
@@ -12339,7 +12326,7 @@ var workspaceHouseTemplateId = browser.houseTemplates.workspaceHouseTemplateId;
12339
12326
  var isDeploymentAdmin = browser.houseTemplates.isDeploymentAdmin;
12340
12327
  function useModelConnections() {
12341
12328
  const arbi = chunkO32T7XRD_cjs.useArbi();
12342
- const userId = chunk7L7QRIQ2_cjs.useArbiSession().user?.external_id ?? void 0;
12329
+ const userId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id ?? void 0;
12343
12330
  return reactQuery.useQuery({
12344
12331
  queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.modelConnections(userId),
12345
12332
  queryFn: () => arbi.modelConnections.list(),
@@ -12348,7 +12335,7 @@ function useModelConnections() {
12348
12335
  }
12349
12336
  function useDirectModelUsage() {
12350
12337
  const arbi = chunkO32T7XRD_cjs.useArbi();
12351
- const userId = chunk7L7QRIQ2_cjs.useArbiSession().user?.external_id ?? void 0;
12338
+ const userId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id ?? void 0;
12352
12339
  return reactQuery.useQuery({
12353
12340
  queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.directModelUsage(userId),
12354
12341
  queryFn: () => arbi.modelConnections.usage(),
@@ -12357,7 +12344,7 @@ function useDirectModelUsage() {
12357
12344
  }
12358
12345
  function useRefreshModelConnections() {
12359
12346
  const qc = reactQuery.useQueryClient();
12360
- const userId = chunk7L7QRIQ2_cjs.useArbiSession().user?.external_id ?? void 0;
12347
+ const userId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id ?? void 0;
12361
12348
  return async () => {
12362
12349
  await qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.modelConnections(userId) });
12363
12350
  await qc.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.availableModels() });
@@ -12384,13 +12371,13 @@ function useUnlockModelConnections() {
12384
12371
  return reactQuery.useMutation({ mutationFn: () => arbi.modelConnections.unlock() });
12385
12372
  }
12386
12373
  function useRequestEmailChange() {
12387
- const { client } = chunkFAJLJDWS_cjs.useAccountClient();
12374
+ const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
12388
12375
  return reactQuery.useMutation({
12389
12376
  mutationFn: (newEmail) => client.requestEmailChange(newEmail)
12390
12377
  });
12391
12378
  }
12392
12379
  function useConfirmEmailChange() {
12393
- const { client } = chunkFAJLJDWS_cjs.useAccountClient();
12380
+ const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
12394
12381
  const qc = reactQuery.useQueryClient();
12395
12382
  return reactQuery.useMutation({
12396
12383
  mutationFn: ({ newEmail, code }) => client.confirmEmailChange(newEmail, code),
@@ -12458,7 +12445,7 @@ function useEmailChange({
12458
12445
  };
12459
12446
  }
12460
12447
  function usePasswordChange() {
12461
- const { client } = chunkFAJLJDWS_cjs.useAccountClient();
12448
+ const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
12462
12449
  return reactQuery.useMutation({
12463
12450
  mutationFn: (vars) => client.changePassword(vars)
12464
12451
  });
@@ -12552,8 +12539,8 @@ function usePasswordChangeForm({
12552
12539
  }
12553
12540
  function useDismissedTips() {
12554
12541
  const queryClient = reactQuery.useQueryClient();
12555
- const { data: userSettings } = chunkFAJLJDWS_cjs.useUserSettings();
12556
- const { mutate: updateUserSettings } = chunkFAJLJDWS_cjs.useUpdateUserSettings();
12542
+ const { data: userSettings } = chunkFOBB5U4Y_cjs.useUserSettings();
12543
+ const { mutate: updateUserSettings } = chunkFOBB5U4Y_cjs.useUpdateUserSettings();
12557
12544
  const loaded = userSettings !== void 0;
12558
12545
  const dismissed = userSettings?.dismissed_tips ?? [];
12559
12546
  const dismissTip = React.useCallback(
@@ -12587,7 +12574,7 @@ function toNotificationPreferences(stored, keys) {
12587
12574
  function useNotificationPreferences(keys, options) {
12588
12575
  const arbi = chunkO32T7XRD_cjs.useArbi();
12589
12576
  const qc = reactQuery.useQueryClient();
12590
- const settings = chunkFAJLJDWS_cjs.useUserSettings(options);
12577
+ const settings = chunkFOBB5U4Y_cjs.useUserSettings(options);
12591
12578
  const stored = settings.data?.email_notifications;
12592
12579
  const save = reactQuery.useMutation({
12593
12580
  mutationFn: (patch) => arbi.settings.update({ email_notifications: patch }),
@@ -12646,7 +12633,7 @@ function useRelevanceSave() {
12646
12633
  }
12647
12634
  function useWorkspaceNotificationLevel(workspaceId, options) {
12648
12635
  const qc = reactQuery.useQueryClient();
12649
- const settings = chunkFAJLJDWS_cjs.useUserSettings(options);
12636
+ const settings = chunkFOBB5U4Y_cjs.useUserSettings(options);
12650
12637
  const save = useRelevanceSave();
12651
12638
  const level = workspaceId ? browser.settings.workspaceNotificationLevel(settings.data, workspaceId) : "default";
12652
12639
  const setLevel = React.useCallback(
@@ -12667,7 +12654,7 @@ function useWorkspaceNotificationLevel(workspaceId, options) {
12667
12654
  }
12668
12655
  function useFollowThread(conversationId, options) {
12669
12656
  const qc = reactQuery.useQueryClient();
12670
- const settings = chunkFAJLJDWS_cjs.useUserSettings(options);
12657
+ const settings = chunkFOBB5U4Y_cjs.useUserSettings(options);
12671
12658
  const save = useRelevanceSave();
12672
12659
  const following = !!conversationId && !!settings.data?.followed_threads?.includes(conversationId);
12673
12660
  const setFollowing = React.useCallback(
@@ -12696,7 +12683,7 @@ function useFollowThread(conversationId, options) {
12696
12683
  };
12697
12684
  }
12698
12685
  function useSessions(options) {
12699
- const { client, enabled } = chunkFAJLJDWS_cjs.useAccountClient();
12686
+ const { client, enabled } = chunkFOBB5U4Y_cjs.useAccountClient();
12700
12687
  return reactQuery.useQuery({
12701
12688
  queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.sessions(),
12702
12689
  queryFn: () => client.listSessions(),
@@ -12704,7 +12691,7 @@ function useSessions(options) {
12704
12691
  });
12705
12692
  }
12706
12693
  function useTerminateSession() {
12707
- const { client } = chunkFAJLJDWS_cjs.useAccountClient();
12694
+ const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
12708
12695
  const qc = reactQuery.useQueryClient();
12709
12696
  return reactQuery.useMutation({
12710
12697
  mutationFn: (sessionId) => client.terminateSession(sessionId),
@@ -12712,7 +12699,7 @@ function useTerminateSession() {
12712
12699
  });
12713
12700
  }
12714
12701
  function useSignOut() {
12715
- const { client } = chunkFAJLJDWS_cjs.useAccountClient();
12702
+ const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
12716
12703
  const qc = reactQuery.useQueryClient();
12717
12704
  return reactQuery.useMutation({
12718
12705
  mutationFn: (options = {}) => client.signOut(options),
@@ -12720,7 +12707,7 @@ function useSignOut() {
12720
12707
  });
12721
12708
  }
12722
12709
  function useCurrentSessionId() {
12723
- return chunkFAJLJDWS_cjs.useAccountClient().client.currentSessionId();
12710
+ return chunkFOBB5U4Y_cjs.useAccountClient().client.currentSessionId();
12724
12711
  }
12725
12712
  function parseDeleteAccountBlockers(error) {
12726
12713
  const body = error?.apiError ?? error;
@@ -12735,7 +12722,7 @@ function parseDeleteAccountBlockers(error) {
12735
12722
  return [];
12736
12723
  }
12737
12724
  function useDeleteAccount() {
12738
- const { client } = chunkFAJLJDWS_cjs.useAccountClient();
12725
+ const { client } = chunkFOBB5U4Y_cjs.useAccountClient();
12739
12726
  return reactQuery.useMutation({ mutationFn: () => client.requestDeletion() });
12740
12727
  }
12741
12728
  function useDeleteAccountFlow({
@@ -13057,7 +13044,7 @@ function useIdentityVerificationFlow(api, {
13057
13044
  };
13058
13045
  }
13059
13046
  function useIdentityVerification(options = {}) {
13060
- const { client, enabled } = chunkFAJLJDWS_cjs.useAccountClient();
13047
+ const { client, enabled } = chunkFOBB5U4Y_cjs.useAccountClient();
13061
13048
  const qc = reactQuery.useQueryClient();
13062
13049
  const { onVerifiedChange, onNameAccepted, formatPrice } = options;
13063
13050
  return useIdentityVerificationFlow(client.identity, {
@@ -13079,7 +13066,7 @@ async function downloadRecoveryFile(params) {
13079
13066
  ...params,
13080
13067
  origin: params.origin ?? window.location.origin
13081
13068
  });
13082
- chunk3JAEX57E_cjs.downloadBlob(new Blob([file.html], { type: "text/html" }), file.filename);
13069
+ chunkG5DYDBQN_cjs.downloadBlob(new Blob([file.html], { type: "text/html" }), file.filename);
13083
13070
  }
13084
13071
  async function documentMailAttachment(arbi, doc, maxBytes, version) {
13085
13072
  const older = version && version !== (doc.current_version ?? 1) ? version : null;
@@ -13155,15 +13142,15 @@ function useNativeThreadKeys(account, messages) {
13155
13142
  var SYNC_INTERVAL_MS = 5 * 60 * 1e3;
13156
13143
  var NEW_MAIL_DEBOUNCE_MS = 5e3;
13157
13144
  function useOfflineMailActive() {
13158
- const { user, status } = chunk7L7QRIQ2_cjs.useArbiSession();
13159
- const mailEnabled = chunkFAJLJDWS_cjs.useFeature("mail");
13160
- const entitled = chunkFAJLJDWS_cjs.useIsEntitled("mail");
13145
+ const { user, status } = chunkH3XHBIZ6_cjs.useArbiSession();
13146
+ const mailEnabled = chunkFOBB5U4Y_cjs.useFeature("mail");
13147
+ const entitled = chunkFOBB5U4Y_cjs.useIsEntitled("mail");
13161
13148
  const eligible = status === "signed-in" && !!user?.external_id && mailEnabled && entitled;
13162
13149
  const { data: policy } = useMailPolicy({ enabled: eligible });
13163
13150
  return eligible && !!policy?.enabled && (policy.native_enabled || policy.enabled_providers.length > 0);
13164
13151
  }
13165
13152
  function useOfflineMailRuntime({ openOutbox } = {}) {
13166
- const { user, serverSessionKey } = chunk7L7QRIQ2_cjs.useArbiSession();
13153
+ const { user, serverSessionKey } = chunkH3XHBIZ6_cjs.useArbiSession();
13167
13154
  const userExtId = user?.external_id;
13168
13155
  const hasSession = !!serverSessionKey;
13169
13156
  const active = useOfflineMailActive();
@@ -13173,15 +13160,15 @@ function useOfflineMailRuntime({ openOutbox } = {}) {
13173
13160
  latest.current = { arbi, queryClient, openOutbox };
13174
13161
  React.useEffect(() => {
13175
13162
  if (!active || !userExtId) return;
13176
- chunkFAJLJDWS_cjs.claimOfflineMail(userExtId).catch(
13163
+ chunkFOBB5U4Y_cjs.claimOfflineMail(userExtId).catch(
13177
13164
  (error) => client.logger.warn("[offline-mail] could not bind the store", error)
13178
13165
  );
13179
13166
  }, [active, userExtId]);
13180
13167
  React.useEffect(() => {
13181
13168
  if (!active || !userExtId) return;
13182
- return chunkFAJLJDWS_cjs.onOfflineMailChange((change) => {
13169
+ return chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
13183
13170
  if (change !== "settings") return;
13184
- trimOfflineMailbox(chunkFAJLJDWS_cjs.getOfflineMailSettings(userExtId)).then(
13171
+ trimOfflineMailbox(chunkFOBB5U4Y_cjs.getOfflineMailSettings(userExtId)).then(
13185
13172
  () => latest.current.queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.mailQueryKeys.allMessages() })
13186
13173
  ).catch((error) => client.logger.warn("[offline-mail] could not trim the device copy", error));
13187
13174
  });
@@ -13206,7 +13193,7 @@ function useOfflineMailRuntime({ openOutbox } = {}) {
13206
13193
  const interval = setInterval(() => {
13207
13194
  if (document.visibilityState === "visible") run2();
13208
13195
  }, SYNC_INTERVAL_MS);
13209
- const enabled = () => chunkFAJLJDWS_cjs.getOfflineMailSettings(sessionUser(context().arbi)).enabled;
13196
+ const enabled = () => chunkFOBB5U4Y_cjs.getOfflineMailSettings(sessionUser(context().arbi)).enabled;
13210
13197
  let newMailTimer = null;
13211
13198
  const offCache = queryClient.getQueryCache().subscribe((event) => {
13212
13199
  if (event.type !== "updated" || event.action.type !== "invalidate") return;
@@ -13214,7 +13201,7 @@ function useOfflineMailRuntime({ openOutbox } = {}) {
13214
13201
  if (newMailTimer) clearTimeout(newMailTimer);
13215
13202
  newMailTimer = setTimeout(() => void syncOfflineMailbox(context()), NEW_MAIL_DEBOUNCE_MS);
13216
13203
  });
13217
- const offSettings = chunkFAJLJDWS_cjs.onOfflineMailChange((change) => {
13204
+ const offSettings = chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
13218
13205
  if (change === "settings" && enabled()) void syncOfflineMailbox(context(), { full: true });
13219
13206
  if (change === "outbox") void flushOutbox(context());
13220
13207
  if (change === "changes") void flushOutbox(context());
@@ -13236,7 +13223,7 @@ function useStoreValue(load, initial, changes) {
13236
13223
  let alive = true;
13237
13224
  const read = () => load().then((next) => alive && setValue(next)).catch((error) => client.logger.warn("[offline-mail] read failed", error));
13238
13225
  void read();
13239
- const off = chunkFAJLJDWS_cjs.onOfflineMailChange((change) => {
13226
+ const off = chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
13240
13227
  if (change === "wiped") setValue(initial);
13241
13228
  if (change === "wiped" || key.split(",").includes(change)) void read();
13242
13229
  });
@@ -13248,20 +13235,20 @@ function useStoreValue(load, initial, changes) {
13248
13235
  return value;
13249
13236
  }
13250
13237
  function useOfflineMailSettings() {
13251
- const userExtId = chunk7L7QRIQ2_cjs.useArbiSession().user?.external_id;
13238
+ const userExtId = chunkH3XHBIZ6_cjs.useArbiSession().user?.external_id;
13252
13239
  const subscribe = React.useCallback(
13253
- (onChange) => chunkFAJLJDWS_cjs.onOfflineMailChange((change) => {
13240
+ (onChange) => chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
13254
13241
  if (change === "settings") onChange();
13255
13242
  }),
13256
13243
  []
13257
13244
  );
13258
13245
  const raw = React.useSyncExternalStore(
13259
13246
  subscribe,
13260
- () => JSON.stringify([userExtId, chunkFAJLJDWS_cjs.getOfflineMailSettings(userExtId)])
13247
+ () => JSON.stringify([userExtId, chunkFOBB5U4Y_cjs.getOfflineMailSettings(userExtId)])
13261
13248
  );
13262
13249
  const settings = React.useMemo(() => JSON.parse(raw)[1], [raw]);
13263
13250
  const update2 = React.useCallback(
13264
- (patch) => void chunkFAJLJDWS_cjs.setOfflineMailSettings(userExtId, patch),
13251
+ (patch) => void chunkFOBB5U4Y_cjs.setOfflineMailSettings(userExtId, patch),
13265
13252
  [userExtId]
13266
13253
  );
13267
13254
  return [settings, update2];
@@ -13271,7 +13258,7 @@ function useOfflineMailStatus() {
13271
13258
  const status = useStoreValue(getOfflineMailStatus, EMPTY_STATUS, ["status", "mailbox"]);
13272
13259
  const [syncing2, setSyncing] = React.useState(isMailSyncRunning);
13273
13260
  React.useEffect(
13274
- () => chunkFAJLJDWS_cjs.onOfflineMailChange((change) => {
13261
+ () => chunkFOBB5U4Y_cjs.onOfflineMailChange((change) => {
13275
13262
  if (change === "status") setSyncing(isMailSyncRunning());
13276
13263
  }),
13277
13264
  []
@@ -13313,7 +13300,7 @@ function useSyncOfflineMailbox() {
13313
13300
  async function storeExists() {
13314
13301
  try {
13315
13302
  const databases = await indexedDB.databases?.();
13316
- return databases ? databases.some((d) => d.name === chunkFAJLJDWS_cjs.OFFLINE_MAIL_DB) : true;
13303
+ return databases ? databases.some((d) => d.name === chunkFOBB5U4Y_cjs.OFFLINE_MAIL_DB) : true;
13317
13304
  } catch {
13318
13305
  return true;
13319
13306
  }
@@ -13371,7 +13358,7 @@ function useDisconnectConnector() {
13371
13358
  );
13372
13359
  }
13373
13360
  function useConnectorVendorVisibility() {
13374
- const { data: settings } = chunkFAJLJDWS_cjs.useUserSettings();
13361
+ const { data: settings } = chunkFOBB5U4Y_cjs.useUserSettings();
13375
13362
  return (vendorKey) => browser.isConnectorVendorVisible(settings, vendorKey);
13376
13363
  }
13377
13364
  function connectorReturnTo(reopen) {
@@ -13543,7 +13530,7 @@ function checkNowAndOnFocus(check) {
13543
13530
  function useConnectorAutoSync(workspaceExtId, opened) {
13544
13531
  const arbi = chunkO32T7XRD_cjs.useArbi();
13545
13532
  const qc = reactQuery.useQueryClient();
13546
- const hasMail = chunkFAJLJDWS_cjs.useIsEntitled("mail");
13533
+ const hasMail = chunkFOBB5U4Y_cjs.useIsEntitled("mail");
13547
13534
  React.useEffect(() => {
13548
13535
  if (!opened || !workspaceExtId || !arbi.isLoggedIn) return;
13549
13536
  return checkNowAndOnFocus(() => {
@@ -14161,7 +14148,7 @@ var OfflineCalendarLockedError = class extends Error {
14161
14148
  this.name = "OfflineCalendarLockedError";
14162
14149
  }
14163
14150
  };
14164
- var store = chunkFAJLJDWS_cjs.createRecordStore(OFFLINE_CALENDAR_DB);
14151
+ var store = chunkFOBB5U4Y_cjs.createRecordStore(OFFLINE_CALENDAR_DB);
14165
14152
  var sealer = client.createOfflineSealer("arbi-offline-calendar-v1", {
14166
14153
  locked: () => new OfflineCalendarLockedError()
14167
14154
  });
@@ -14440,7 +14427,7 @@ async function replay(arbi, queryClient) {
14440
14427
  );
14441
14428
  }
14442
14429
  function useCalendarOfflineRuntime() {
14443
- const { status, serverSessionKey, user } = chunk7L7QRIQ2_cjs.useArbiSession();
14430
+ const { status, serverSessionKey, user } = chunkH3XHBIZ6_cjs.useArbiSession();
14444
14431
  const userExtId = user?.external_id;
14445
14432
  const authenticated = status === "signed-in";
14446
14433
  const hasSession = !!serverSessionKey;
@@ -14489,7 +14476,7 @@ function useCalendarOfflineRuntime() {
14489
14476
  }, [ready, arbi, queryClient]);
14490
14477
  }
14491
14478
  function useWorkspaceDocs(workspaceId) {
14492
- const { data: docs = [], isLoading, isError } = chunkGKGAPU6T_cjs.useDocuments(workspaceId);
14479
+ const { data: docs = [], isLoading, isError } = chunkNK5KFHXP_cjs.useDocuments(workspaceId);
14493
14480
  const docIds = React.useMemo(
14494
14481
  () => docs.map((d) => d.external_id).filter((id) => !!id),
14495
14482
  [docs]
@@ -14497,7 +14484,7 @@ function useWorkspaceDocs(workspaceId) {
14497
14484
  return { wsId: workspaceId, docs, docIds, isLoading, isError, ready: docIds.length > 0 };
14498
14485
  }
14499
14486
  function useAiTask() {
14500
- const mutation = chunk7L7QRIQ2_cjs.useAssistantQuery();
14487
+ const mutation = chunkH3XHBIZ6_cjs.useAssistantQuery();
14501
14488
  const [status, setStatus] = React.useState("idle");
14502
14489
  const [text2, setText] = React.useState("");
14503
14490
  const [stepCount, setStepCount] = React.useState(0);
@@ -15358,7 +15345,7 @@ var IDLE = {
15358
15345
  };
15359
15346
  function useSemanticSearch(docIds = [], options = {}) {
15360
15347
  const arbi = chunkO32T7XRD_cjs.useArbi();
15361
- const [ownSession] = React.useState(chunkWUYSVTKE_cjs.createSearchSession);
15348
+ const [ownSession] = React.useState(chunk6RRKO4ZK_cjs.createSearchSession);
15362
15349
  const session = options.session ?? ownSession;
15363
15350
  const { model, workspaceId } = options;
15364
15351
  const state = React.useSyncExternalStore(session.subscribe, session.getState, session.getState);
@@ -15367,7 +15354,7 @@ function useSemanticSearch(docIds = [], options = {}) {
15367
15354
  if (!workspaceId) return;
15368
15355
  const current = session.getState().workspaceId;
15369
15356
  if (current !== workspaceId) {
15370
- if (current) chunkWUYSVTKE_cjs.clearSearchSession(workspaceId, session);
15357
+ if (current) chunk6RRKO4ZK_cjs.clearSearchSession(workspaceId, session);
15371
15358
  else session.setState({ workspaceId });
15372
15359
  }
15373
15360
  }, [session, workspaceId]);
@@ -15375,7 +15362,7 @@ function useSemanticSearch(docIds = [], options = {}) {
15375
15362
  async (query, mode = "hybrid") => {
15376
15363
  const trimmed = query.trim();
15377
15364
  if (!trimmed) {
15378
- chunkWUYSVTKE_cjs.clearSearchSession(void 0, session);
15365
+ chunk6RRKO4ZK_cjs.clearSearchSession(void 0, session);
15379
15366
  return;
15380
15367
  }
15381
15368
  const run2 = session.getState().run + 1;
@@ -15406,7 +15393,7 @@ function useSemanticSearch(docIds = [], options = {}) {
15406
15393
  },
15407
15394
  [arbi, docIds, model, session, workspaceId]
15408
15395
  );
15409
- const clear = React.useCallback(() => chunkWUYSVTKE_cjs.clearSearchSession(void 0, session), [session]);
15396
+ const clear = React.useCallback(() => chunk6RRKO4ZK_cjs.clearSearchSession(void 0, session), [session]);
15410
15397
  const shown = foreign ? IDLE : state;
15411
15398
  return {
15412
15399
  query: shown.query,
@@ -15661,7 +15648,7 @@ function ActivityFeed({
15661
15648
  enabled,
15662
15649
  "data-testid": testId = "activity-feed"
15663
15650
  }) {
15664
- const { data, isLoading, isError } = chunk7L7QRIQ2_cjs.useActivity({ limit, enabled });
15651
+ const { data, isLoading, isError } = chunkH3XHBIZ6_cjs.useActivity({ limit, enabled });
15665
15652
  if (isLoading) {
15666
15653
  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: [
15667
15654
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: "h-4 w-4 shrink-0 animate-pulse rounded-full bg-muted" }),
@@ -16268,7 +16255,7 @@ function isAgentUser(user) {
16268
16255
  return user.external_id.startsWith("agt-");
16269
16256
  }
16270
16257
  function DmAvatar({ user, className, size = "lg" }) {
16271
- const presence = chunkGKGAPU6T_cjs.useArbiWsStore((s) => s.presence[user.external_id]);
16258
+ const presence = chunkNK5KFHXP_cjs.useArbiWsStore((s) => s.presence[user.external_id]);
16272
16259
  const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
16273
16260
  return /* @__PURE__ */ jsxRuntime.jsx(
16274
16261
  chunk4NGWDVHD_cjs.UserEntity,
@@ -16639,7 +16626,7 @@ function useChatUnreadTotal() {
16639
16626
  function useUnreadByPeer() {
16640
16627
  const arbi = chunkO32T7XRD_cjs.useArbi();
16641
16628
  const { data = [] } = useChats();
16642
- const me = chunkFAJLJDWS_cjs.myChatId(arbi);
16629
+ const me = chunkFOBB5U4Y_cjs.myChatId(arbi);
16643
16630
  return React.useMemo(() => {
16644
16631
  const out = /* @__PURE__ */ new Map();
16645
16632
  for (const c of data) {
@@ -16729,13 +16716,13 @@ function useChatPost() {
16729
16716
  const queryClient = reactQuery.useQueryClient();
16730
16717
  return React.useCallback(
16731
16718
  async (target, post) => {
16732
- const me = chunkFAJLJDWS_cjs.myChatId(arbi);
16719
+ const me = chunkFOBB5U4Y_cjs.myChatId(arbi);
16733
16720
  if (!me) throw new Error("No active session");
16734
16721
  let chat = target.chat;
16735
16722
  if (!chat) {
16736
16723
  if (!target.peerExtId) throw new Error("Could not resolve the conversation");
16737
16724
  chat = await arbi.chats.openDirect(target.peerExtId);
16738
- chunkFAJLJDWS_cjs.upsertChat(queryClient, chat);
16725
+ chunkFOBB5U4Y_cjs.upsertChat(queryClient, chat);
16739
16726
  queryClient.setQueryData(
16740
16727
  chunkO32T7XRD_cjs.arbiQueryKeys.chatThread(chat.external_id),
16741
16728
  (old) => old ?? { messages: [], hasMore: false }
@@ -16758,7 +16745,7 @@ function useChatPost() {
16758
16745
  updated_at: now,
16759
16746
  optimistic: true
16760
16747
  };
16761
- chunkFAJLJDWS_cjs.appendToThread(queryClient, chat.external_id, optimistic);
16748
+ chunkFOBB5U4Y_cjs.appendToThread(queryClient, chat.external_id, optimistic);
16762
16749
  try {
16763
16750
  let attachments = [];
16764
16751
  if (files.length) {
@@ -16778,15 +16765,15 @@ function useChatPost() {
16778
16765
  ...post.workspaceExtId ? { workspaceExtId: post.workspaceExtId } : {},
16779
16766
  contextOnly: !!post.contextOnly
16780
16767
  });
16781
- chunkFAJLJDWS_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
16782
- chunkFAJLJDWS_cjs.upsertChat(queryClient, {
16768
+ chunkFOBB5U4Y_cjs.appendToThread(queryClient, chat.external_id, message, optimisticId);
16769
+ chunkFOBB5U4Y_cjs.upsertChat(queryClient, {
16783
16770
  ...chat,
16784
16771
  last_message: message,
16785
16772
  last_message_at: message.created_at
16786
16773
  });
16787
16774
  return { chat, message };
16788
16775
  } catch (err) {
16789
- chunkFAJLJDWS_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
16776
+ chunkFOBB5U4Y_cjs.dropFromThread(queryClient, chat.external_id, optimisticId);
16790
16777
  void queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.chatList() });
16791
16778
  throw err;
16792
16779
  }
@@ -16798,7 +16785,7 @@ function useDeleteChatMessage() {
16798
16785
  const arbi = chunkO32T7XRD_cjs.useArbi();
16799
16786
  const queryClient = reactQuery.useQueryClient();
16800
16787
  return React.useCallback(
16801
- (chatExtId, messageExtId) => chunkFAJLJDWS_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
16788
+ (chatExtId, messageExtId) => chunkFOBB5U4Y_cjs.deleteChatMessage(arbi, queryClient, chatExtId, messageExtId),
16802
16789
  [arbi, queryClient]
16803
16790
  );
16804
16791
  }
@@ -16807,7 +16794,7 @@ function useMarkChatRead() {
16807
16794
  const queryClient = reactQuery.useQueryClient();
16808
16795
  return React.useCallback(
16809
16796
  (chat, messageExtId) => {
16810
- chunkFAJLJDWS_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
16797
+ chunkFOBB5U4Y_cjs.upsertChat(queryClient, { ...chat, unread_count: 0 });
16811
16798
  return arbi.chats.markRead(chat.external_id, messageExtId).then(
16812
16799
  () => void 0,
16813
16800
  () => void 0
@@ -16821,7 +16808,7 @@ function useCreateGroupChat() {
16821
16808
  const queryClient = reactQuery.useQueryClient();
16822
16809
  return reactQuery.useMutation({
16823
16810
  mutationFn: (params) => arbi.chats.createGroup(params),
16824
- onSuccess: (chat) => chunkFAJLJDWS_cjs.upsertChat(queryClient, chat)
16811
+ onSuccess: (chat) => chunkFOBB5U4Y_cjs.upsertChat(queryClient, chat)
16825
16812
  });
16826
16813
  }
16827
16814
  function useRenameChat() {
@@ -16829,7 +16816,7 @@ function useRenameChat() {
16829
16816
  const queryClient = reactQuery.useQueryClient();
16830
16817
  return reactQuery.useMutation({
16831
16818
  mutationFn: (vars) => arbi.chats.rename(vars.chat, vars.title),
16832
- onSuccess: (chat) => chunkFAJLJDWS_cjs.upsertChat(queryClient, chat)
16819
+ onSuccess: (chat) => chunkFOBB5U4Y_cjs.upsertChat(queryClient, chat)
16833
16820
  });
16834
16821
  }
16835
16822
  function useAddChatMembers() {
@@ -16837,7 +16824,7 @@ function useAddChatMembers() {
16837
16824
  const queryClient = reactQuery.useQueryClient();
16838
16825
  return reactQuery.useMutation({
16839
16826
  mutationFn: (vars) => arbi.chats.addMembers(vars.chat, vars.members, { callKey: vars.callKey }),
16840
- onSuccess: (chat) => chunkFAJLJDWS_cjs.upsertChat(queryClient, chat)
16827
+ onSuccess: (chat) => chunkFOBB5U4Y_cjs.upsertChat(queryClient, chat)
16841
16828
  });
16842
16829
  }
16843
16830
  function useRemoveChatMember() {
@@ -16846,7 +16833,7 @@ function useRemoveChatMember() {
16846
16833
  return reactQuery.useMutation({
16847
16834
  mutationFn: (vars) => arbi.chats.removeMember(vars.chat, vars.userExtId),
16848
16835
  onSuccess: (_data, vars) => {
16849
- if (vars.userExtId === chunkFAJLJDWS_cjs.myChatId(arbi)) chunkFAJLJDWS_cjs.removeChat(queryClient, vars.chat.external_id);
16836
+ if (vars.userExtId === chunkFOBB5U4Y_cjs.myChatId(arbi)) chunkFOBB5U4Y_cjs.removeChat(queryClient, vars.chat.external_id);
16850
16837
  else return queryClient.invalidateQueries({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.chatList() });
16851
16838
  }
16852
16839
  });
@@ -16856,11 +16843,11 @@ function useChatArrivals(onArrival) {
16856
16843
  const queryClient = reactQuery.useQueryClient();
16857
16844
  useArbiWsMessage("chat.message", (message) => {
16858
16845
  const senderId = message.message.sender_ext_id;
16859
- if (!senderId || senderId === chunkFAJLJDWS_cjs.myChatId(arbi)) return;
16860
- if (message.message.kind !== "text" || chunkFAJLJDWS_cjs.getOpenChat() === message.chat_ext_id) return;
16846
+ if (!senderId || senderId === chunkFOBB5U4Y_cjs.myChatId(arbi)) return;
16847
+ if (message.message.kind !== "text" || chunkFOBB5U4Y_cjs.getOpenChat() === message.chat_ext_id) return;
16861
16848
  const muted = queryClient.getQueriesData({ queryKey: chunkO32T7XRD_cjs.arbiQueryKeys.userSettings() }).map(([, data]) => data).find(Boolean)?.muted_users;
16862
16849
  if (muted?.includes(senderId)) return;
16863
- const chat = chunkFAJLJDWS_cjs.cachedChat(queryClient, message.chat_ext_id);
16850
+ const chat = chunkFOBB5U4Y_cjs.cachedChat(queryClient, message.chat_ext_id);
16864
16851
  const sender = chat?.members.find((m) => m.user.external_id === senderId)?.user;
16865
16852
  onArrival({
16866
16853
  chatId: message.chat_ext_id,
@@ -17076,7 +17063,7 @@ var REMOTE_CONTROL_VIEW = "actions.remoteControl";
17076
17063
  var OFF = { enabled: false, pending: null, controllingAgent: null };
17077
17064
  var remoteControlStateOf = (state) => state.views.transient[REMOTE_CONTROL_VIEW] ?? OFF;
17078
17065
  function useRemoteControl(selector) {
17079
- return chunk7L7QRIQ2_cjs.useArbiSessionState((state) => selector(remoteControlStateOf(state)));
17066
+ return chunkH3XHBIZ6_cjs.useArbiSessionState((state) => selector(remoteControlStateOf(state)));
17080
17067
  }
17081
17068
  function remoteControlActions(session) {
17082
17069
  const update2 = (change) => {
@@ -17158,1271 +17145,1279 @@ function useRateSupportTicket() {
17158
17145
 
17159
17146
  Object.defineProperty(exports, "AUDIENCE_CHOICES", {
17160
17147
  enumerable: true,
17161
- get: function () { return chunkFAJLJDWS_cjs.AUDIENCE_CHOICES; }
17148
+ get: function () { return chunkFOBB5U4Y_cjs.AUDIENCE_CHOICES; }
17162
17149
  });
17163
17150
  Object.defineProperty(exports, "CALL_CAPTION_TOPIC", {
17164
17151
  enumerable: true,
17165
- get: function () { return chunkFAJLJDWS_cjs.CALL_CAPTION_TOPIC; }
17152
+ get: function () { return chunkFOBB5U4Y_cjs.CALL_CAPTION_TOPIC; }
17166
17153
  });
17167
17154
  Object.defineProperty(exports, "CALL_CHAT_MAX_CHARS", {
17168
17155
  enumerable: true,
17169
- get: function () { return chunkFAJLJDWS_cjs.CALL_CHAT_MAX_CHARS; }
17156
+ get: function () { return chunkFOBB5U4Y_cjs.CALL_CHAT_MAX_CHARS; }
17170
17157
  });
17171
17158
  Object.defineProperty(exports, "CALL_CHAT_TOPIC", {
17172
17159
  enumerable: true,
17173
- get: function () { return chunkFAJLJDWS_cjs.CALL_CHAT_TOPIC; }
17160
+ get: function () { return chunkFOBB5U4Y_cjs.CALL_CHAT_TOPIC; }
17174
17161
  });
17175
17162
  Object.defineProperty(exports, "CALL_MODERATION_TOPIC", {
17176
17163
  enumerable: true,
17177
- get: function () { return chunkFAJLJDWS_cjs.CALL_MODERATION_TOPIC; }
17164
+ get: function () { return chunkFOBB5U4Y_cjs.CALL_MODERATION_TOPIC; }
17178
17165
  });
17179
17166
  Object.defineProperty(exports, "CALL_RECORDING_TOPIC", {
17180
17167
  enumerable: true,
17181
- get: function () { return chunkFAJLJDWS_cjs.CALL_RECORDING_TOPIC; }
17168
+ get: function () { return chunkFOBB5U4Y_cjs.CALL_RECORDING_TOPIC; }
17182
17169
  });
17183
17170
  Object.defineProperty(exports, "CALL_TRANSCRIPTION_TOPIC", {
17184
17171
  enumerable: true,
17185
- get: function () { return chunkFAJLJDWS_cjs.CALL_TRANSCRIPTION_TOPIC; }
17172
+ get: function () { return chunkFOBB5U4Y_cjs.CALL_TRANSCRIPTION_TOPIC; }
17186
17173
  });
17187
17174
  Object.defineProperty(exports, "CALL_WEBINAR_TOPIC", {
17188
17175
  enumerable: true,
17189
- get: function () { return chunkFAJLJDWS_cjs.CALL_WEBINAR_TOPIC; }
17176
+ get: function () { return chunkFOBB5U4Y_cjs.CALL_WEBINAR_TOPIC; }
17190
17177
  });
17191
17178
  Object.defineProperty(exports, "CAPTION_MAX_CHARS", {
17192
17179
  enumerable: true,
17193
- get: function () { return chunkFAJLJDWS_cjs.CAPTION_MAX_CHARS; }
17180
+ get: function () { return chunkFOBB5U4Y_cjs.CAPTION_MAX_CHARS; }
17194
17181
  });
17195
17182
  Object.defineProperty(exports, "COMPOSITE_AUDIO_BITS_PER_SECOND", {
17196
17183
  enumerable: true,
17197
- get: function () { return chunkFAJLJDWS_cjs.COMPOSITE_AUDIO_BITS_PER_SECOND; }
17184
+ get: function () { return chunkFOBB5U4Y_cjs.COMPOSITE_AUDIO_BITS_PER_SECOND; }
17198
17185
  });
17199
17186
  Object.defineProperty(exports, "COMPOSITE_VIDEO_BITS_PER_SECOND", {
17200
17187
  enumerable: true,
17201
- get: function () { return chunkFAJLJDWS_cjs.COMPOSITE_VIDEO_BITS_PER_SECOND; }
17188
+ get: function () { return chunkFOBB5U4Y_cjs.COMPOSITE_VIDEO_BITS_PER_SECOND; }
17202
17189
  });
17203
17190
  Object.defineProperty(exports, "DEFAULT_JOIN_CHOICES", {
17204
17191
  enumerable: true,
17205
- get: function () { return chunkFAJLJDWS_cjs.DEFAULT_JOIN_CHOICES; }
17192
+ get: function () { return chunkFOBB5U4Y_cjs.DEFAULT_JOIN_CHOICES; }
17206
17193
  });
17207
17194
  Object.defineProperty(exports, "EMPTY_CALL_SESSION", {
17208
17195
  enumerable: true,
17209
- get: function () { return chunkFAJLJDWS_cjs.EMPTY_CALL_SESSION; }
17196
+ get: function () { return chunkFOBB5U4Y_cjs.EMPTY_CALL_SESSION; }
17210
17197
  });
17211
17198
  Object.defineProperty(exports, "EXPORT_SAMPLE_RATE", {
17212
17199
  enumerable: true,
17213
- get: function () { return chunkFAJLJDWS_cjs.EXPORT_SAMPLE_RATE; }
17200
+ get: function () { return chunkFOBB5U4Y_cjs.EXPORT_SAMPLE_RATE; }
17214
17201
  });
17215
17202
  Object.defineProperty(exports, "HISTORY_LIMIT", {
17216
17203
  enumerable: true,
17217
- get: function () { return chunkFAJLJDWS_cjs.HISTORY_LIMIT; }
17204
+ get: function () { return chunkFOBB5U4Y_cjs.HISTORY_LIMIT; }
17218
17205
  });
17219
17206
  Object.defineProperty(exports, "LIVE_SEGMENTER", {
17220
17207
  enumerable: true,
17221
- get: function () { return chunkFAJLJDWS_cjs.LIVE_SEGMENTER; }
17208
+ get: function () { return chunkFOBB5U4Y_cjs.LIVE_SEGMENTER; }
17222
17209
  });
17223
17210
  Object.defineProperty(exports, "MAX_AVATAR_FILE_BYTES", {
17224
17211
  enumerable: true,
17225
- get: function () { return chunkFAJLJDWS_cjs.MAX_AVATAR_FILE_BYTES; }
17212
+ get: function () { return chunkFOBB5U4Y_cjs.MAX_AVATAR_FILE_BYTES; }
17226
17213
  });
17227
17214
  Object.defineProperty(exports, "MUTED_DEDUPE_MS", {
17228
17215
  enumerable: true,
17229
- get: function () { return chunkFAJLJDWS_cjs.MUTED_DEDUPE_MS; }
17216
+ get: function () { return chunkFOBB5U4Y_cjs.MUTED_DEDUPE_MS; }
17230
17217
  });
17231
17218
  Object.defineProperty(exports, "PLAYBACK_LOOKAHEAD_MS", {
17232
17219
  enumerable: true,
17233
- get: function () { return chunkFAJLJDWS_cjs.PLAYBACK_LOOKAHEAD_MS; }
17220
+ get: function () { return chunkFOBB5U4Y_cjs.PLAYBACK_LOOKAHEAD_MS; }
17234
17221
  });
17235
17222
  Object.defineProperty(exports, "READ_ONLY_MEETING_TEXT", {
17236
17223
  enumerable: true,
17237
- get: function () { return chunkFAJLJDWS_cjs.READ_ONLY_MEETING_TEXT; }
17224
+ get: function () { return chunkFOBB5U4Y_cjs.READ_ONLY_MEETING_TEXT; }
17238
17225
  });
17239
17226
  Object.defineProperty(exports, "RECORDING_CHUNK_MS", {
17240
17227
  enumerable: true,
17241
- get: function () { return chunkFAJLJDWS_cjs.RECORDING_CHUNK_MS; }
17228
+ get: function () { return chunkFOBB5U4Y_cjs.RECORDING_CHUNK_MS; }
17242
17229
  });
17243
17230
  Object.defineProperty(exports, "RECORDING_SEGMENTER", {
17244
17231
  enumerable: true,
17245
- get: function () { return chunkFAJLJDWS_cjs.RECORDING_SEGMENTER; }
17232
+ get: function () { return chunkFOBB5U4Y_cjs.RECORDING_SEGMENTER; }
17246
17233
  });
17247
17234
  Object.defineProperty(exports, "SEGMENT_FRAME_MS", {
17248
17235
  enumerable: true,
17249
- get: function () { return chunkFAJLJDWS_cjs.SEGMENT_FRAME_MS; }
17236
+ get: function () { return chunkFOBB5U4Y_cjs.SEGMENT_FRAME_MS; }
17250
17237
  });
17251
17238
  Object.defineProperty(exports, "SEGMENT_ID_PATTERN", {
17252
17239
  enumerable: true,
17253
- get: function () { return chunkFAJLJDWS_cjs.SEGMENT_ID_PATTERN; }
17240
+ get: function () { return chunkFOBB5U4Y_cjs.SEGMENT_ID_PATTERN; }
17254
17241
  });
17255
17242
  Object.defineProperty(exports, "SEGMENT_PRE_ROLL_MS", {
17256
17243
  enumerable: true,
17257
- get: function () { return chunkFAJLJDWS_cjs.SEGMENT_PRE_ROLL_MS; }
17244
+ get: function () { return chunkFOBB5U4Y_cjs.SEGMENT_PRE_ROLL_MS; }
17258
17245
  });
17259
17246
  Object.defineProperty(exports, "SHORT_PIECE_MERGE_GAP_MS", {
17260
17247
  enumerable: true,
17261
- get: function () { return chunkFAJLJDWS_cjs.SHORT_PIECE_MERGE_GAP_MS; }
17248
+ get: function () { return chunkFOBB5U4Y_cjs.SHORT_PIECE_MERGE_GAP_MS; }
17262
17249
  });
17263
17250
  Object.defineProperty(exports, "SPEAKER_AUDIO_BITS_PER_SECOND", {
17264
17251
  enumerable: true,
17265
- get: function () { return chunkFAJLJDWS_cjs.SPEAKER_AUDIO_BITS_PER_SECOND; }
17252
+ get: function () { return chunkFOBB5U4Y_cjs.SPEAKER_AUDIO_BITS_PER_SECOND; }
17266
17253
  });
17267
17254
  Object.defineProperty(exports, "TrackUploader", {
17268
17255
  enumerable: true,
17269
- get: function () { return chunkFAJLJDWS_cjs.TrackUploader; }
17256
+ get: function () { return chunkFOBB5U4Y_cjs.TrackUploader; }
17270
17257
  });
17271
17258
  Object.defineProperty(exports, "UPLOAD_ATTEMPTS", {
17272
17259
  enumerable: true,
17273
- get: function () { return chunkFAJLJDWS_cjs.UPLOAD_ATTEMPTS; }
17260
+ get: function () { return chunkFOBB5U4Y_cjs.UPLOAD_ATTEMPTS; }
17274
17261
  });
17275
17262
  Object.defineProperty(exports, "UPLOAD_BACKOFF_MS", {
17276
17263
  enumerable: true,
17277
- get: function () { return chunkFAJLJDWS_cjs.UPLOAD_BACKOFF_MS; }
17264
+ get: function () { return chunkFOBB5U4Y_cjs.UPLOAD_BACKOFF_MS; }
17278
17265
  });
17279
17266
  Object.defineProperty(exports, "acceptRing", {
17280
17267
  enumerable: true,
17281
- get: function () { return chunkFAJLJDWS_cjs.acceptRing; }
17268
+ get: function () { return chunkFOBB5U4Y_cjs.acceptRing; }
17282
17269
  });
17283
17270
  Object.defineProperty(exports, "addConversationToList", {
17284
17271
  enumerable: true,
17285
- get: function () { return chunkFAJLJDWS_cjs.addConversationToList; }
17272
+ get: function () { return chunkFOBB5U4Y_cjs.addConversationToList; }
17286
17273
  });
17287
17274
  Object.defineProperty(exports, "appendToThread", {
17288
17275
  enumerable: true,
17289
- get: function () { return chunkFAJLJDWS_cjs.appendToThread; }
17276
+ get: function () { return chunkFOBB5U4Y_cjs.appendToThread; }
17290
17277
  });
17291
17278
  Object.defineProperty(exports, "applyAgentDmStatus", {
17292
17279
  enumerable: true,
17293
- get: function () { return chunkFAJLJDWS_cjs.applyAgentDmStatus; }
17280
+ get: function () { return chunkFOBB5U4Y_cjs.applyAgentDmStatus; }
17294
17281
  });
17295
17282
  Object.defineProperty(exports, "applyCallEvent", {
17296
17283
  enumerable: true,
17297
- get: function () { return chunkFAJLJDWS_cjs.applyCallEvent; }
17284
+ get: function () { return chunkFOBB5U4Y_cjs.applyCallEvent; }
17298
17285
  });
17299
17286
  Object.defineProperty(exports, "applyChatEvent", {
17300
17287
  enumerable: true,
17301
- get: function () { return chunkFAJLJDWS_cjs.applyChatEvent; }
17288
+ get: function () { return chunkFOBB5U4Y_cjs.applyChatEvent; }
17302
17289
  });
17303
17290
  Object.defineProperty(exports, "applyChatMessage", {
17304
17291
  enumerable: true,
17305
- get: function () { return chunkFAJLJDWS_cjs.applyChatMessage; }
17292
+ get: function () { return chunkFOBB5U4Y_cjs.applyChatMessage; }
17306
17293
  });
17307
17294
  Object.defineProperty(exports, "applyChatRead", {
17308
17295
  enumerable: true,
17309
- get: function () { return chunkFAJLJDWS_cjs.applyChatRead; }
17296
+ get: function () { return chunkFOBB5U4Y_cjs.applyChatRead; }
17310
17297
  });
17311
17298
  Object.defineProperty(exports, "applyChatUpdated", {
17312
17299
  enumerable: true,
17313
- get: function () { return chunkFAJLJDWS_cjs.applyChatUpdated; }
17300
+ get: function () { return chunkFOBB5U4Y_cjs.applyChatUpdated; }
17314
17301
  });
17315
17302
  Object.defineProperty(exports, "arbiAccountClient", {
17316
17303
  enumerable: true,
17317
- get: function () { return chunkFAJLJDWS_cjs.arbiAccountClient; }
17304
+ get: function () { return chunkFOBB5U4Y_cjs.arbiAccountClient; }
17318
17305
  });
17319
17306
  Object.defineProperty(exports, "buildMeetingChatBody", {
17320
17307
  enumerable: true,
17321
- get: function () { return chunkFAJLJDWS_cjs.buildMeetingChatBody; }
17308
+ get: function () { return chunkFOBB5U4Y_cjs.buildMeetingChatBody; }
17322
17309
  });
17323
17310
  Object.defineProperty(exports, "cachedChat", {
17324
17311
  enumerable: true,
17325
- get: function () { return chunkFAJLJDWS_cjs.cachedChat; }
17312
+ get: function () { return chunkFOBB5U4Y_cjs.cachedChat; }
17326
17313
  });
17327
17314
  Object.defineProperty(exports, "cachedChats", {
17328
17315
  enumerable: true,
17329
- get: function () { return chunkFAJLJDWS_cjs.cachedChats; }
17316
+ get: function () { return chunkFOBB5U4Y_cjs.cachedChats; }
17330
17317
  });
17331
17318
  Object.defineProperty(exports, "callLink", {
17332
17319
  enumerable: true,
17333
- get: function () { return chunkFAJLJDWS_cjs.callLink; }
17320
+ get: function () { return chunkFOBB5U4Y_cjs.callLink; }
17334
17321
  });
17335
17322
  Object.defineProperty(exports, "callMemberKeys", {
17336
17323
  enumerable: true,
17337
- get: function () { return chunkFAJLJDWS_cjs.callMemberKeys; }
17324
+ get: function () { return chunkFOBB5U4Y_cjs.callMemberKeys; }
17338
17325
  });
17339
17326
  Object.defineProperty(exports, "callSession", {
17340
17327
  enumerable: true,
17341
- get: function () { return chunkFAJLJDWS_cjs.callSession; }
17328
+ get: function () { return chunkFOBB5U4Y_cjs.callSession; }
17342
17329
  });
17343
17330
  Object.defineProperty(exports, "chatByExtId", {
17344
17331
  enumerable: true,
17345
- get: function () { return chunkFAJLJDWS_cjs.chatByExtId; }
17332
+ get: function () { return chunkFOBB5U4Y_cjs.chatByExtId; }
17346
17333
  });
17347
17334
  Object.defineProperty(exports, "chatHasLiveCall", {
17348
17335
  enumerable: true,
17349
- get: function () { return chunkFAJLJDWS_cjs.chatHasLiveCall; }
17336
+ get: function () { return chunkFOBB5U4Y_cjs.chatHasLiveCall; }
17350
17337
  });
17351
17338
  Object.defineProperty(exports, "chatLiveCallId", {
17352
17339
  enumerable: true,
17353
- get: function () { return chunkFAJLJDWS_cjs.chatLiveCallId; }
17340
+ get: function () { return chunkFOBB5U4Y_cjs.chatLiveCallId; }
17354
17341
  });
17355
17342
  Object.defineProperty(exports, "chatTranscriptRef", {
17356
17343
  enumerable: true,
17357
- get: function () { return chunkFAJLJDWS_cjs.chatTranscriptRef; }
17344
+ get: function () { return chunkFOBB5U4Y_cjs.chatTranscriptRef; }
17358
17345
  });
17359
17346
  Object.defineProperty(exports, "clearMeetingChatCache", {
17360
17347
  enumerable: true,
17361
- get: function () { return chunkFAJLJDWS_cjs.clearMeetingChatCache; }
17348
+ get: function () { return chunkFOBB5U4Y_cjs.clearMeetingChatCache; }
17362
17349
  });
17363
17350
  Object.defineProperty(exports, "clearTrackUploaders", {
17364
17351
  enumerable: true,
17365
- get: function () { return chunkFAJLJDWS_cjs.clearTrackUploaders; }
17352
+ get: function () { return chunkFOBB5U4Y_cjs.clearTrackUploaders; }
17366
17353
  });
17367
17354
  Object.defineProperty(exports, "clockTime", {
17368
17355
  enumerable: true,
17369
- get: function () { return chunkFAJLJDWS_cjs.clockTime; }
17356
+ get: function () { return chunkFOBB5U4Y_cjs.clockTime; }
17370
17357
  });
17371
17358
  Object.defineProperty(exports, "compositeFiles", {
17372
17359
  enumerable: true,
17373
- get: function () { return chunkFAJLJDWS_cjs.compositeFiles; }
17360
+ get: function () { return chunkFOBB5U4Y_cjs.compositeFiles; }
17374
17361
  });
17375
17362
  Object.defineProperty(exports, "compositeTrack", {
17376
17363
  enumerable: true,
17377
- get: function () { return chunkFAJLJDWS_cjs.compositeTrack; }
17364
+ get: function () { return chunkFOBB5U4Y_cjs.compositeTrack; }
17378
17365
  });
17379
17366
  Object.defineProperty(exports, "conversationKeyForCall", {
17380
17367
  enumerable: true,
17381
- get: function () { return chunkFAJLJDWS_cjs.conversationKeyForCall; }
17368
+ get: function () { return chunkFOBB5U4Y_cjs.conversationKeyForCall; }
17382
17369
  });
17383
17370
  Object.defineProperty(exports, "createLocalFeatureStore", {
17384
17371
  enumerable: true,
17385
- get: function () { return chunkFAJLJDWS_cjs.createLocalFeatureStore; }
17372
+ get: function () { return chunkFOBB5U4Y_cjs.createLocalFeatureStore; }
17386
17373
  });
17387
17374
  Object.defineProperty(exports, "createMutedNotifier", {
17388
17375
  enumerable: true,
17389
- get: function () { return chunkFAJLJDWS_cjs.createMutedNotifier; }
17376
+ get: function () { return chunkFOBB5U4Y_cjs.createMutedNotifier; }
17390
17377
  });
17391
17378
  Object.defineProperty(exports, "createTrackCutter", {
17392
17379
  enumerable: true,
17393
- get: function () { return chunkFAJLJDWS_cjs.createTrackCutter; }
17380
+ get: function () { return chunkFOBB5U4Y_cjs.createTrackCutter; }
17394
17381
  });
17395
17382
  Object.defineProperty(exports, "cutAtPauses", {
17396
17383
  enumerable: true,
17397
- get: function () { return chunkFAJLJDWS_cjs.cutAtPauses; }
17384
+ get: function () { return chunkFOBB5U4Y_cjs.cutAtPauses; }
17398
17385
  });
17399
17386
  Object.defineProperty(exports, "declineRing", {
17400
17387
  enumerable: true,
17401
- get: function () { return chunkFAJLJDWS_cjs.declineRing; }
17388
+ get: function () { return chunkFOBB5U4Y_cjs.declineRing; }
17402
17389
  });
17403
17390
  Object.defineProperty(exports, "decodeCallChatPacket", {
17404
17391
  enumerable: true,
17405
- get: function () { return chunkFAJLJDWS_cjs.decodeCallChatPacket; }
17392
+ get: function () { return chunkFOBB5U4Y_cjs.decodeCallChatPacket; }
17406
17393
  });
17407
17394
  Object.defineProperty(exports, "decodeCaptionPacket", {
17408
17395
  enumerable: true,
17409
- get: function () { return chunkFAJLJDWS_cjs.decodeCaptionPacket; }
17396
+ get: function () { return chunkFOBB5U4Y_cjs.decodeCaptionPacket; }
17410
17397
  });
17411
17398
  Object.defineProperty(exports, "decodeMono16k", {
17412
17399
  enumerable: true,
17413
- get: function () { return chunkFAJLJDWS_cjs.decodeMono16k; }
17400
+ get: function () { return chunkFOBB5U4Y_cjs.decodeMono16k; }
17414
17401
  });
17415
17402
  Object.defineProperty(exports, "decryptPart", {
17416
17403
  enumerable: true,
17417
- get: function () { return chunkFAJLJDWS_cjs.decryptPart; }
17404
+ get: function () { return chunkFOBB5U4Y_cjs.decryptPart; }
17418
17405
  });
17419
17406
  Object.defineProperty(exports, "encodeCallChatPacket", {
17420
17407
  enumerable: true,
17421
- get: function () { return chunkFAJLJDWS_cjs.encodeCallChatPacket; }
17408
+ get: function () { return chunkFOBB5U4Y_cjs.encodeCallChatPacket; }
17422
17409
  });
17423
17410
  Object.defineProperty(exports, "encodeCaptionPacket", {
17424
17411
  enumerable: true,
17425
- get: function () { return chunkFAJLJDWS_cjs.encodeCaptionPacket; }
17412
+ get: function () { return chunkFOBB5U4Y_cjs.encodeCaptionPacket; }
17426
17413
  });
17427
17414
  Object.defineProperty(exports, "encodeWav", {
17428
17415
  enumerable: true,
17429
- get: function () { return chunkFAJLJDWS_cjs.encodeWav; }
17416
+ get: function () { return chunkFOBB5U4Y_cjs.encodeWav; }
17430
17417
  });
17431
17418
  Object.defineProperty(exports, "encryptPart", {
17432
17419
  enumerable: true,
17433
- get: function () { return chunkFAJLJDWS_cjs.encryptPart; }
17420
+ get: function () { return chunkFOBB5U4Y_cjs.encryptPart; }
17434
17421
  });
17435
17422
  Object.defineProperty(exports, "ensureMeetingChat", {
17436
17423
  enumerable: true,
17437
- get: function () { return chunkFAJLJDWS_cjs.ensureMeetingChat; }
17424
+ get: function () { return chunkFOBB5U4Y_cjs.ensureMeetingChat; }
17438
17425
  });
17439
17426
  Object.defineProperty(exports, "entitlementRefusal", {
17440
17427
  enumerable: true,
17441
- get: function () { return chunkFAJLJDWS_cjs.entitlementRefusal; }
17428
+ get: function () { return chunkFOBB5U4Y_cjs.entitlementRefusal; }
17442
17429
  });
17443
17430
  Object.defineProperty(exports, "extensionFor", {
17444
17431
  enumerable: true,
17445
- get: function () { return chunkFAJLJDWS_cjs.extensionFor; }
17432
+ get: function () { return chunkFOBB5U4Y_cjs.extensionFor; }
17446
17433
  });
17447
17434
  Object.defineProperty(exports, "fetchPart", {
17448
17435
  enumerable: true,
17449
- get: function () { return chunkFAJLJDWS_cjs.fetchPart; }
17436
+ get: function () { return chunkFOBB5U4Y_cjs.fetchPart; }
17450
17437
  });
17451
17438
  Object.defineProperty(exports, "fileSafe", {
17452
17439
  enumerable: true,
17453
- get: function () { return chunkFAJLJDWS_cjs.fileSafe; }
17440
+ get: function () { return chunkFOBB5U4Y_cjs.fileSafe; }
17454
17441
  });
17455
17442
  Object.defineProperty(exports, "findConversation", {
17456
17443
  enumerable: true,
17457
- get: function () { return chunkFAJLJDWS_cjs.findConversation; }
17444
+ get: function () { return chunkFOBB5U4Y_cjs.findConversation; }
17458
17445
  });
17459
17446
  Object.defineProperty(exports, "floatToWav", {
17460
17447
  enumerable: true,
17461
- get: function () { return chunkFAJLJDWS_cjs.floatToWav; }
17448
+ get: function () { return chunkFOBB5U4Y_cjs.floatToWav; }
17462
17449
  });
17463
17450
  Object.defineProperty(exports, "formatTranscriptMarkdown", {
17464
17451
  enumerable: true,
17465
- get: function () { return chunkFAJLJDWS_cjs.formatTranscriptMarkdown; }
17452
+ get: function () { return chunkFOBB5U4Y_cjs.formatTranscriptMarkdown; }
17466
17453
  });
17467
17454
  Object.defineProperty(exports, "getOpenChat", {
17468
17455
  enumerable: true,
17469
- get: function () { return chunkFAJLJDWS_cjs.getOpenChat; }
17456
+ get: function () { return chunkFOBB5U4Y_cjs.getOpenChat; }
17470
17457
  });
17471
17458
  Object.defineProperty(exports, "hasRecordingTranscript", {
17472
17459
  enumerable: true,
17473
- get: function () { return chunkFAJLJDWS_cjs.hasRecordingTranscript; }
17460
+ get: function () { return chunkFOBB5U4Y_cjs.hasRecordingTranscript; }
17474
17461
  });
17475
17462
  Object.defineProperty(exports, "invalidateCall", {
17476
17463
  enumerable: true,
17477
- get: function () { return chunkFAJLJDWS_cjs.invalidateCall; }
17464
+ get: function () { return chunkFOBB5U4Y_cjs.invalidateCall; }
17478
17465
  });
17479
17466
  Object.defineProperty(exports, "invalidateConversationDetails", {
17480
17467
  enumerable: true,
17481
- get: function () { return chunkFAJLJDWS_cjs.invalidateConversationDetails; }
17468
+ get: function () { return chunkFOBB5U4Y_cjs.invalidateConversationDetails; }
17482
17469
  });
17483
17470
  Object.defineProperty(exports, "invalidateConversationLists", {
17484
17471
  enumerable: true,
17485
- get: function () { return chunkFAJLJDWS_cjs.invalidateConversationLists; }
17472
+ get: function () { return chunkFOBB5U4Y_cjs.invalidateConversationLists; }
17486
17473
  });
17487
17474
  Object.defineProperty(exports, "isConversationListKey", {
17488
17475
  enumerable: true,
17489
- get: function () { return chunkFAJLJDWS_cjs.isConversationListKey; }
17476
+ get: function () { return chunkFOBB5U4Y_cjs.isConversationListKey; }
17490
17477
  });
17491
17478
  Object.defineProperty(exports, "isConversationShared", {
17492
17479
  enumerable: true,
17493
- get: function () { return chunkFAJLJDWS_cjs.isConversationShared; }
17480
+ get: function () { return chunkFOBB5U4Y_cjs.isConversationShared; }
17494
17481
  });
17495
17482
  Object.defineProperty(exports, "isRecordingOver", {
17496
17483
  enumerable: true,
17497
- get: function () { return chunkFAJLJDWS_cjs.isRecordingOver; }
17484
+ get: function () { return chunkFOBB5U4Y_cjs.isRecordingOver; }
17498
17485
  });
17499
17486
  Object.defineProperty(exports, "isRecordingSegmentId", {
17500
17487
  enumerable: true,
17501
- get: function () { return chunkFAJLJDWS_cjs.isRecordingSegmentId; }
17488
+ get: function () { return chunkFOBB5U4Y_cjs.isRecordingSegmentId; }
17502
17489
  });
17503
17490
  Object.defineProperty(exports, "isRetryable", {
17504
17491
  enumerable: true,
17505
- get: function () { return chunkFAJLJDWS_cjs.isRetryable; }
17492
+ get: function () { return chunkFOBB5U4Y_cjs.isRetryable; }
17506
17493
  });
17507
17494
  Object.defineProperty(exports, "isWorkspaceGuestOf", {
17508
17495
  enumerable: true,
17509
- get: function () { return chunkFAJLJDWS_cjs.isWorkspaceGuestOf; }
17496
+ get: function () { return chunkFOBB5U4Y_cjs.isWorkspaceGuestOf; }
17510
17497
  });
17511
17498
  Object.defineProperty(exports, "joinFromPreJoin", {
17512
17499
  enumerable: true,
17513
- get: function () { return chunkFAJLJDWS_cjs.joinFromPreJoin; }
17500
+ get: function () { return chunkFOBB5U4Y_cjs.joinFromPreJoin; }
17514
17501
  });
17515
17502
  Object.defineProperty(exports, "knownMeetingChat", {
17516
17503
  enumerable: true,
17517
- get: function () { return chunkFAJLJDWS_cjs.knownMeetingChat; }
17504
+ get: function () { return chunkFOBB5U4Y_cjs.knownMeetingChat; }
17518
17505
  });
17519
17506
  Object.defineProperty(exports, "loadMeetingHistory", {
17520
17507
  enumerable: true,
17521
- get: function () { return chunkFAJLJDWS_cjs.loadMeetingHistory; }
17508
+ get: function () { return chunkFOBB5U4Y_cjs.loadMeetingHistory; }
17522
17509
  });
17523
17510
  Object.defineProperty(exports, "markRejoining", {
17524
17511
  enumerable: true,
17525
- get: function () { return chunkFAJLJDWS_cjs.markRejoining; }
17512
+ get: function () { return chunkFOBB5U4Y_cjs.markRejoining; }
17526
17513
  });
17527
17514
  Object.defineProperty(exports, "meetingChatRefFrom", {
17528
17515
  enumerable: true,
17529
- get: function () { return chunkFAJLJDWS_cjs.meetingChatRefFrom; }
17516
+ get: function () { return chunkFOBB5U4Y_cjs.meetingChatRefFrom; }
17530
17517
  });
17531
17518
  Object.defineProperty(exports, "meetingRefForCall", {
17532
17519
  enumerable: true,
17533
- get: function () { return chunkFAJLJDWS_cjs.meetingRefForCall; }
17520
+ get: function () { return chunkFOBB5U4Y_cjs.meetingRefForCall; }
17534
17521
  });
17535
17522
  Object.defineProperty(exports, "mergeChatLines", {
17536
17523
  enumerable: true,
17537
- get: function () { return chunkFAJLJDWS_cjs.mergeChatLines; }
17524
+ get: function () { return chunkFOBB5U4Y_cjs.mergeChatLines; }
17538
17525
  });
17539
17526
  Object.defineProperty(exports, "mutedNoticeFromEvent", {
17540
17527
  enumerable: true,
17541
- get: function () { return chunkFAJLJDWS_cjs.mutedNoticeFromEvent; }
17528
+ get: function () { return chunkFOBB5U4Y_cjs.mutedNoticeFromEvent; }
17542
17529
  });
17543
17530
  Object.defineProperty(exports, "mutedNoticeFromPacket", {
17544
17531
  enumerable: true,
17545
- get: function () { return chunkFAJLJDWS_cjs.mutedNoticeFromPacket; }
17532
+ get: function () { return chunkFOBB5U4Y_cjs.mutedNoticeFromPacket; }
17546
17533
  });
17547
17534
  Object.defineProperty(exports, "mutedNoticeText", {
17548
17535
  enumerable: true,
17549
- get: function () { return chunkFAJLJDWS_cjs.mutedNoticeText; }
17536
+ get: function () { return chunkFOBB5U4Y_cjs.mutedNoticeText; }
17550
17537
  });
17551
17538
  Object.defineProperty(exports, "myChatId", {
17552
17539
  enumerable: true,
17553
- get: function () { return chunkFAJLJDWS_cjs.myChatId; }
17540
+ get: function () { return chunkFOBB5U4Y_cjs.myChatId; }
17554
17541
  });
17555
17542
  Object.defineProperty(exports, "newPacketId", {
17556
17543
  enumerable: true,
17557
- get: function () { return chunkFAJLJDWS_cjs.newPacketId; }
17544
+ get: function () { return chunkFOBB5U4Y_cjs.newPacketId; }
17558
17545
  });
17559
17546
  Object.defineProperty(exports, "newSegmentId", {
17560
17547
  enumerable: true,
17561
- get: function () { return chunkFAJLJDWS_cjs.newSegmentId; }
17548
+ get: function () { return chunkFOBB5U4Y_cjs.newSegmentId; }
17562
17549
  });
17563
17550
  Object.defineProperty(exports, "newTrackKey", {
17564
17551
  enumerable: true,
17565
- get: function () { return chunkFAJLJDWS_cjs.newTrackKey; }
17552
+ get: function () { return chunkFOBB5U4Y_cjs.newTrackKey; }
17566
17553
  });
17567
17554
  Object.defineProperty(exports, "nextSeqAfter", {
17568
17555
  enumerable: true,
17569
- get: function () { return chunkFAJLJDWS_cjs.nextSeqAfter; }
17556
+ get: function () { return chunkFOBB5U4Y_cjs.nextSeqAfter; }
17570
17557
  });
17571
17558
  Object.defineProperty(exports, "onCallEvent", {
17572
17559
  enumerable: true,
17573
- get: function () { return chunkFAJLJDWS_cjs.onCallEvent; }
17560
+ get: function () { return chunkFOBB5U4Y_cjs.onCallEvent; }
17574
17561
  });
17575
17562
  Object.defineProperty(exports, "openCall", {
17576
17563
  enumerable: true,
17577
- get: function () { return chunkFAJLJDWS_cjs.openCall; }
17564
+ get: function () { return chunkFOBB5U4Y_cjs.openCall; }
17578
17565
  });
17579
17566
  Object.defineProperty(exports, "openQuestion", {
17580
17567
  enumerable: true,
17581
- get: function () { return chunkFAJLJDWS_cjs.openQuestion; }
17568
+ get: function () { return chunkFOBB5U4Y_cjs.openQuestion; }
17582
17569
  });
17583
17570
  Object.defineProperty(exports, "openRecording", {
17584
17571
  enumerable: true,
17585
- get: function () { return chunkFAJLJDWS_cjs.openRecording; }
17572
+ get: function () { return chunkFOBB5U4Y_cjs.openRecording; }
17586
17573
  });
17587
17574
  Object.defineProperty(exports, "parseWebinarPacket", {
17588
17575
  enumerable: true,
17589
- get: function () { return chunkFAJLJDWS_cjs.parseWebinarPacket; }
17576
+ get: function () { return chunkFOBB5U4Y_cjs.parseWebinarPacket; }
17590
17577
  });
17591
17578
  Object.defineProperty(exports, "partKey", {
17592
17579
  enumerable: true,
17593
- get: function () { return chunkFAJLJDWS_cjs.partKey; }
17580
+ get: function () { return chunkFOBB5U4Y_cjs.partKey; }
17594
17581
  });
17595
17582
  Object.defineProperty(exports, "partOffsetMs", {
17596
17583
  enumerable: true,
17597
- get: function () { return chunkFAJLJDWS_cjs.partOffsetMs; }
17584
+ get: function () { return chunkFOBB5U4Y_cjs.partOffsetMs; }
17598
17585
  });
17599
17586
  Object.defineProperty(exports, "partsDue", {
17600
17587
  enumerable: true,
17601
- get: function () { return chunkFAJLJDWS_cjs.partsDue; }
17588
+ get: function () { return chunkFOBB5U4Y_cjs.partsDue; }
17602
17589
  });
17603
17590
  Object.defineProperty(exports, "patchConversation", {
17604
17591
  enumerable: true,
17605
- get: function () { return chunkFAJLJDWS_cjs.patchConversation; }
17592
+ get: function () { return chunkFOBB5U4Y_cjs.patchConversation; }
17606
17593
  });
17607
17594
  Object.defineProperty(exports, "patchConversationList", {
17608
17595
  enumerable: true,
17609
- get: function () { return chunkFAJLJDWS_cjs.patchConversationList; }
17596
+ get: function () { return chunkFOBB5U4Y_cjs.patchConversationList; }
17610
17597
  });
17611
17598
  Object.defineProperty(exports, "persistMeetingMessage", {
17612
17599
  enumerable: true,
17613
- get: function () { return chunkFAJLJDWS_cjs.persistMeetingMessage; }
17600
+ get: function () { return chunkFOBB5U4Y_cjs.persistMeetingMessage; }
17614
17601
  });
17615
17602
  Object.defineProperty(exports, "persistTranscriptSegment", {
17616
17603
  enumerable: true,
17617
- get: function () { return chunkFAJLJDWS_cjs.persistTranscriptSegment; }
17604
+ get: function () { return chunkFOBB5U4Y_cjs.persistTranscriptSegment; }
17618
17605
  });
17619
17606
  Object.defineProperty(exports, "playheadAt", {
17620
17607
  enumerable: true,
17621
- get: function () { return chunkFAJLJDWS_cjs.playheadAt; }
17608
+ get: function () { return chunkFOBB5U4Y_cjs.playheadAt; }
17622
17609
  });
17623
17610
  Object.defineProperty(exports, "postRecordingDocsToThread", {
17624
17611
  enumerable: true,
17625
- get: function () { return chunkFAJLJDWS_cjs.postRecordingDocsToThread; }
17612
+ get: function () { return chunkFOBB5U4Y_cjs.postRecordingDocsToThread; }
17626
17613
  });
17627
17614
  Object.defineProperty(exports, "postTranscriptToThread", {
17628
17615
  enumerable: true,
17629
- get: function () { return chunkFAJLJDWS_cjs.postTranscriptToThread; }
17616
+ get: function () { return chunkFOBB5U4Y_cjs.postTranscriptToThread; }
17630
17617
  });
17631
17618
  Object.defineProperty(exports, "readLocalFeature", {
17632
17619
  enumerable: true,
17633
- get: function () { return chunkFAJLJDWS_cjs.readLocalFeature; }
17620
+ get: function () { return chunkFOBB5U4Y_cjs.readLocalFeature; }
17634
17621
  });
17635
17622
  Object.defineProperty(exports, "recordingFiles", {
17636
17623
  enumerable: true,
17637
- get: function () { return chunkFAJLJDWS_cjs.recordingFiles; }
17624
+ get: function () { return chunkFOBB5U4Y_cjs.recordingFiles; }
17638
17625
  });
17639
17626
  Object.defineProperty(exports, "recordingWindowsOf", {
17640
17627
  enumerable: true,
17641
- get: function () { return chunkFAJLJDWS_cjs.recordingWindowsOf; }
17628
+ get: function () { return chunkFOBB5U4Y_cjs.recordingWindowsOf; }
17642
17629
  });
17643
17630
  Object.defineProperty(exports, "rejoinAsAudience", {
17644
17631
  enumerable: true,
17645
- get: function () { return chunkFAJLJDWS_cjs.rejoinAsAudience; }
17632
+ get: function () { return chunkFOBB5U4Y_cjs.rejoinAsAudience; }
17646
17633
  });
17647
17634
  Object.defineProperty(exports, "removeChat", {
17648
17635
  enumerable: true,
17649
- get: function () { return chunkFAJLJDWS_cjs.removeChat; }
17636
+ get: function () { return chunkFOBB5U4Y_cjs.removeChat; }
17650
17637
  });
17651
17638
  Object.defineProperty(exports, "removeConversationFromLists", {
17652
17639
  enumerable: true,
17653
- get: function () { return chunkFAJLJDWS_cjs.removeConversationFromLists; }
17640
+ get: function () { return chunkFOBB5U4Y_cjs.removeConversationFromLists; }
17654
17641
  });
17655
17642
  Object.defineProperty(exports, "resetCallSession", {
17656
17643
  enumerable: true,
17657
- get: function () { return chunkFAJLJDWS_cjs.resetCallSession; }
17644
+ get: function () { return chunkFOBB5U4Y_cjs.resetCallSession; }
17658
17645
  });
17659
17646
  Object.defineProperty(exports, "resolveMeetingChat", {
17660
17647
  enumerable: true,
17661
- get: function () { return chunkFAJLJDWS_cjs.resolveMeetingChat; }
17648
+ get: function () { return chunkFOBB5U4Y_cjs.resolveMeetingChat; }
17662
17649
  });
17663
17650
  Object.defineProperty(exports, "saveRecordingFilesToThread", {
17664
17651
  enumerable: true,
17665
- get: function () { return chunkFAJLJDWS_cjs.saveRecordingFilesToThread; }
17652
+ get: function () { return chunkFOBB5U4Y_cjs.saveRecordingFilesToThread; }
17666
17653
  });
17667
17654
  Object.defineProperty(exports, "schedulePart", {
17668
17655
  enumerable: true,
17669
- get: function () { return chunkFAJLJDWS_cjs.schedulePart; }
17656
+ get: function () { return chunkFOBB5U4Y_cjs.schedulePart; }
17670
17657
  });
17671
17658
  Object.defineProperty(exports, "sealQuestionText", {
17672
17659
  enumerable: true,
17673
- get: function () { return chunkFAJLJDWS_cjs.sealQuestionText; }
17660
+ get: function () { return chunkFOBB5U4Y_cjs.sealQuestionText; }
17674
17661
  });
17675
17662
  Object.defineProperty(exports, "serverCallsExperimental", {
17676
17663
  enumerable: true,
17677
- get: function () { return chunkFAJLJDWS_cjs.serverCallsExperimental; }
17664
+ get: function () { return chunkFOBB5U4Y_cjs.serverCallsExperimental; }
17678
17665
  });
17679
17666
  Object.defineProperty(exports, "setOpenChat", {
17680
17667
  enumerable: true,
17681
- get: function () { return chunkFAJLJDWS_cjs.setOpenChat; }
17668
+ get: function () { return chunkFOBB5U4Y_cjs.setOpenChat; }
17682
17669
  });
17683
17670
  Object.defineProperty(exports, "sortTranscriptMessages", {
17684
17671
  enumerable: true,
17685
- get: function () { return chunkFAJLJDWS_cjs.sortTranscriptMessages; }
17672
+ get: function () { return chunkFOBB5U4Y_cjs.sortTranscriptMessages; }
17686
17673
  });
17687
17674
  Object.defineProperty(exports, "sortedParts", {
17688
17675
  enumerable: true,
17689
- get: function () { return chunkFAJLJDWS_cjs.sortedParts; }
17676
+ get: function () { return chunkFOBB5U4Y_cjs.sortedParts; }
17690
17677
  });
17691
17678
  Object.defineProperty(exports, "speakerTracks", {
17692
17679
  enumerable: true,
17693
- get: function () { return chunkFAJLJDWS_cjs.speakerTracks; }
17680
+ get: function () { return chunkFOBB5U4Y_cjs.speakerTracks; }
17694
17681
  });
17695
17682
  Object.defineProperty(exports, "speakerWav", {
17696
17683
  enumerable: true,
17697
- get: function () { return chunkFAJLJDWS_cjs.speakerWav; }
17684
+ get: function () { return chunkFOBB5U4Y_cjs.speakerWav; }
17698
17685
  });
17699
17686
  Object.defineProperty(exports, "splitIntoFiles", {
17700
17687
  enumerable: true,
17701
- get: function () { return chunkFAJLJDWS_cjs.splitIntoFiles; }
17688
+ get: function () { return chunkFOBB5U4Y_cjs.splitIntoFiles; }
17702
17689
  });
17703
17690
  Object.defineProperty(exports, "standalone", {
17704
17691
  enumerable: true,
17705
- get: function () { return chunkFAJLJDWS_cjs.standalone; }
17692
+ get: function () { return chunkFOBB5U4Y_cjs.standalone; }
17706
17693
  });
17707
17694
  Object.defineProperty(exports, "startChatCall", {
17708
17695
  enumerable: true,
17709
- get: function () { return chunkFAJLJDWS_cjs.startChatCall; }
17696
+ get: function () { return chunkFOBB5U4Y_cjs.startChatCall; }
17710
17697
  });
17711
17698
  Object.defineProperty(exports, "startContactsCall", {
17712
17699
  enumerable: true,
17713
- get: function () { return chunkFAJLJDWS_cjs.startContactsCall; }
17700
+ get: function () { return chunkFOBB5U4Y_cjs.startContactsCall; }
17714
17701
  });
17715
17702
  Object.defineProperty(exports, "startDmCall", {
17716
17703
  enumerable: true,
17717
- get: function () { return chunkFAJLJDWS_cjs.startDmCall; }
17704
+ get: function () { return chunkFOBB5U4Y_cjs.startDmCall; }
17718
17705
  });
17719
17706
  Object.defineProperty(exports, "startThreadCall", {
17720
17707
  enumerable: true,
17721
- get: function () { return chunkFAJLJDWS_cjs.startThreadCall; }
17708
+ get: function () { return chunkFOBB5U4Y_cjs.startThreadCall; }
17722
17709
  });
17723
17710
  Object.defineProperty(exports, "startsMediaFile", {
17724
17711
  enumerable: true,
17725
- get: function () { return chunkFAJLJDWS_cjs.startsMediaFile; }
17712
+ get: function () { return chunkFOBB5U4Y_cjs.startsMediaFile; }
17726
17713
  });
17727
17714
  Object.defineProperty(exports, "storeTranscriptSegment", {
17728
17715
  enumerable: true,
17729
- get: function () { return chunkFAJLJDWS_cjs.storeTranscriptSegment; }
17716
+ get: function () { return chunkFOBB5U4Y_cjs.storeTranscriptSegment; }
17730
17717
  });
17731
17718
  Object.defineProperty(exports, "stripSpeakerPrefix", {
17732
17719
  enumerable: true,
17733
- get: function () { return chunkFAJLJDWS_cjs.stripSpeakerPrefix; }
17720
+ get: function () { return chunkFOBB5U4Y_cjs.stripSpeakerPrefix; }
17734
17721
  });
17735
17722
  Object.defineProperty(exports, "supersedeLiveTranscript", {
17736
17723
  enumerable: true,
17737
- get: function () { return chunkFAJLJDWS_cjs.supersedeLiveTranscript; }
17724
+ get: function () { return chunkFOBB5U4Y_cjs.supersedeLiveTranscript; }
17738
17725
  });
17739
17726
  Object.defineProperty(exports, "supersededTranscriptLines", {
17740
17727
  enumerable: true,
17741
- get: function () { return chunkFAJLJDWS_cjs.supersededTranscriptLines; }
17728
+ get: function () { return chunkFOBB5U4Y_cjs.supersededTranscriptLines; }
17742
17729
  });
17743
17730
  Object.defineProperty(exports, "threadHasLiveCall", {
17744
17731
  enumerable: true,
17745
- get: function () { return chunkFAJLJDWS_cjs.threadHasLiveCall; }
17732
+ get: function () { return chunkFOBB5U4Y_cjs.threadHasLiveCall; }
17746
17733
  });
17747
17734
  Object.defineProperty(exports, "threadLiveCallId", {
17748
17735
  enumerable: true,
17749
- get: function () { return chunkFAJLJDWS_cjs.threadLiveCallId; }
17736
+ get: function () { return chunkFOBB5U4Y_cjs.threadLiveCallId; }
17750
17737
  });
17751
17738
  Object.defineProperty(exports, "threadTranscriptLines", {
17752
17739
  enumerable: true,
17753
- get: function () { return chunkFAJLJDWS_cjs.threadTranscriptLines; }
17740
+ get: function () { return chunkFOBB5U4Y_cjs.threadTranscriptLines; }
17754
17741
  });
17755
17742
  Object.defineProperty(exports, "threadTranscriptRef", {
17756
17743
  enumerable: true,
17757
- get: function () { return chunkFAJLJDWS_cjs.threadTranscriptRef; }
17744
+ get: function () { return chunkFOBB5U4Y_cjs.threadTranscriptRef; }
17758
17745
  });
17759
17746
  Object.defineProperty(exports, "threadTranscriptText", {
17760
17747
  enumerable: true,
17761
- get: function () { return chunkFAJLJDWS_cjs.threadTranscriptText; }
17748
+ get: function () { return chunkFOBB5U4Y_cjs.threadTranscriptText; }
17762
17749
  });
17763
17750
  Object.defineProperty(exports, "timelineDurationMs", {
17764
17751
  enumerable: true,
17765
- get: function () { return chunkFAJLJDWS_cjs.timelineDurationMs; }
17752
+ get: function () { return chunkFOBB5U4Y_cjs.timelineDurationMs; }
17766
17753
  });
17767
17754
  Object.defineProperty(exports, "timelineOf", {
17768
17755
  enumerable: true,
17769
- get: function () { return chunkFAJLJDWS_cjs.timelineOf; }
17756
+ get: function () { return chunkFOBB5U4Y_cjs.timelineOf; }
17770
17757
  });
17771
17758
  Object.defineProperty(exports, "toProfileView", {
17772
17759
  enumerable: true,
17773
- get: function () { return chunkFAJLJDWS_cjs.toProfileView; }
17760
+ get: function () { return chunkFOBB5U4Y_cjs.toProfileView; }
17774
17761
  });
17775
17762
  Object.defineProperty(exports, "trackUploaderFor", {
17776
17763
  enumerable: true,
17777
- get: function () { return chunkFAJLJDWS_cjs.trackUploaderFor; }
17764
+ get: function () { return chunkFOBB5U4Y_cjs.trackUploaderFor; }
17778
17765
  });
17779
17766
  Object.defineProperty(exports, "transcribeRecording", {
17780
17767
  enumerable: true,
17781
- get: function () { return chunkFAJLJDWS_cjs.transcribeRecording; }
17768
+ get: function () { return chunkFOBB5U4Y_cjs.transcribeRecording; }
17782
17769
  });
17783
17770
  Object.defineProperty(exports, "transcriptPersistRole", {
17784
17771
  enumerable: true,
17785
- get: function () { return chunkFAJLJDWS_cjs.transcriptPersistRole; }
17772
+ get: function () { return chunkFOBB5U4Y_cjs.transcriptPersistRole; }
17786
17773
  });
17787
17774
  Object.defineProperty(exports, "transcriptSegmentOf", {
17788
17775
  enumerable: true,
17789
- get: function () { return chunkFAJLJDWS_cjs.transcriptSegmentOf; }
17776
+ get: function () { return chunkFOBB5U4Y_cjs.transcriptSegmentOf; }
17790
17777
  });
17791
17778
  Object.defineProperty(exports, "unwrapTrackKey", {
17792
17779
  enumerable: true,
17793
- get: function () { return chunkFAJLJDWS_cjs.unwrapTrackKey; }
17780
+ get: function () { return chunkFOBB5U4Y_cjs.unwrapTrackKey; }
17794
17781
  });
17795
17782
  Object.defineProperty(exports, "upsertChat", {
17796
17783
  enumerable: true,
17797
- get: function () { return chunkFAJLJDWS_cjs.upsertChat; }
17784
+ get: function () { return chunkFOBB5U4Y_cjs.upsertChat; }
17798
17785
  });
17799
17786
  Object.defineProperty(exports, "useAccountClient", {
17800
17787
  enumerable: true,
17801
- get: function () { return chunkFAJLJDWS_cjs.useAccountClient; }
17788
+ get: function () { return chunkFOBB5U4Y_cjs.useAccountClient; }
17802
17789
  });
17803
17790
  Object.defineProperty(exports, "useAvatarCrop", {
17804
17791
  enumerable: true,
17805
- get: function () { return chunkFAJLJDWS_cjs.useAvatarCrop; }
17792
+ get: function () { return chunkFOBB5U4Y_cjs.useAvatarCrop; }
17806
17793
  });
17807
17794
  Object.defineProperty(exports, "useCall", {
17808
17795
  enumerable: true,
17809
- get: function () { return chunkFAJLJDWS_cjs.useCall; }
17796
+ get: function () { return chunkFOBB5U4Y_cjs.useCall; }
17810
17797
  });
17811
17798
  Object.defineProperty(exports, "useCallInviteLinks", {
17812
17799
  enumerable: true,
17813
- get: function () { return chunkFAJLJDWS_cjs.useCallInviteLinks; }
17800
+ get: function () { return chunkFOBB5U4Y_cjs.useCallInviteLinks; }
17814
17801
  });
17815
17802
  Object.defineProperty(exports, "useCallRecording", {
17816
17803
  enumerable: true,
17817
- get: function () { return chunkFAJLJDWS_cjs.useCallRecording; }
17804
+ get: function () { return chunkFOBB5U4Y_cjs.useCallRecording; }
17818
17805
  });
17819
17806
  Object.defineProperty(exports, "useCallRecordings", {
17820
17807
  enumerable: true,
17821
- get: function () { return chunkFAJLJDWS_cjs.useCallRecordings; }
17808
+ get: function () { return chunkFOBB5U4Y_cjs.useCallRecordings; }
17822
17809
  });
17823
17810
  Object.defineProperty(exports, "useCallSession", {
17824
17811
  enumerable: true,
17825
- get: function () { return chunkFAJLJDWS_cjs.useCallSession; }
17812
+ get: function () { return chunkFOBB5U4Y_cjs.useCallSession; }
17826
17813
  });
17827
17814
  Object.defineProperty(exports, "useCallTranscriptionAvailable", {
17828
17815
  enumerable: true,
17829
- get: function () { return chunkFAJLJDWS_cjs.useCallTranscriptionAvailable; }
17816
+ get: function () { return chunkFOBB5U4Y_cjs.useCallTranscriptionAvailable; }
17830
17817
  });
17831
17818
  Object.defineProperty(exports, "useCallsConfig", {
17832
17819
  enumerable: true,
17833
- get: function () { return chunkFAJLJDWS_cjs.useCallsConfig; }
17820
+ get: function () { return chunkFOBB5U4Y_cjs.useCallsConfig; }
17834
17821
  });
17835
17822
  Object.defineProperty(exports, "useCallsEnabled", {
17836
17823
  enumerable: true,
17837
- get: function () { return chunkFAJLJDWS_cjs.useCallsEnabled; }
17824
+ get: function () { return chunkFOBB5U4Y_cjs.useCallsEnabled; }
17838
17825
  });
17839
17826
  Object.defineProperty(exports, "useCanHostCalls", {
17840
17827
  enumerable: true,
17841
- get: function () { return chunkFAJLJDWS_cjs.useCanHostCalls; }
17828
+ get: function () { return chunkFOBB5U4Y_cjs.useCanHostCalls; }
17842
17829
  });
17843
17830
  Object.defineProperty(exports, "useEntitlements", {
17844
17831
  enumerable: true,
17845
- get: function () { return chunkFAJLJDWS_cjs.useEntitlements; }
17832
+ get: function () { return chunkFOBB5U4Y_cjs.useEntitlements; }
17846
17833
  });
17847
17834
  Object.defineProperty(exports, "useFeature", {
17848
17835
  enumerable: true,
17849
- get: function () { return chunkFAJLJDWS_cjs.useFeature; }
17836
+ get: function () { return chunkFOBB5U4Y_cjs.useFeature; }
17850
17837
  });
17851
17838
  Object.defineProperty(exports, "useFeatureCheck", {
17852
17839
  enumerable: true,
17853
- get: function () { return chunkFAJLJDWS_cjs.useFeatureCheck; }
17840
+ get: function () { return chunkFOBB5U4Y_cjs.useFeatureCheck; }
17854
17841
  });
17855
17842
  Object.defineProperty(exports, "useFeatureSwitch", {
17856
17843
  enumerable: true,
17857
- get: function () { return chunkFAJLJDWS_cjs.useFeatureSwitch; }
17844
+ get: function () { return chunkFOBB5U4Y_cjs.useFeatureSwitch; }
17858
17845
  });
17859
17846
  Object.defineProperty(exports, "useInvalidateEntitlements", {
17860
17847
  enumerable: true,
17861
- get: function () { return chunkFAJLJDWS_cjs.useInvalidateEntitlements; }
17848
+ get: function () { return chunkFOBB5U4Y_cjs.useInvalidateEntitlements; }
17862
17849
  });
17863
17850
  Object.defineProperty(exports, "useIsEntitled", {
17864
17851
  enumerable: true,
17865
- get: function () { return chunkFAJLJDWS_cjs.useIsEntitled; }
17852
+ get: function () { return chunkFOBB5U4Y_cjs.useIsEntitled; }
17866
17853
  });
17867
17854
  Object.defineProperty(exports, "useMeetingReadOnly", {
17868
17855
  enumerable: true,
17869
- get: function () { return chunkFAJLJDWS_cjs.useMeetingReadOnly; }
17856
+ get: function () { return chunkFOBB5U4Y_cjs.useMeetingReadOnly; }
17870
17857
  });
17871
17858
  Object.defineProperty(exports, "useNameEditor", {
17872
17859
  enumerable: true,
17873
- get: function () { return chunkFAJLJDWS_cjs.useNameEditor; }
17860
+ get: function () { return chunkFOBB5U4Y_cjs.useNameEditor; }
17874
17861
  });
17875
17862
  Object.defineProperty(exports, "useOpenCallMeetingChat", {
17876
17863
  enumerable: true,
17877
- get: function () { return chunkFAJLJDWS_cjs.useOpenCallMeetingChat; }
17864
+ get: function () { return chunkFOBB5U4Y_cjs.useOpenCallMeetingChat; }
17878
17865
  });
17879
17866
  Object.defineProperty(exports, "useProfile", {
17880
17867
  enumerable: true,
17881
- get: function () { return chunkFAJLJDWS_cjs.useProfile; }
17868
+ get: function () { return chunkFOBB5U4Y_cjs.useProfile; }
17882
17869
  });
17883
17870
  Object.defineProperty(exports, "useRecordingActions", {
17884
17871
  enumerable: true,
17885
- get: function () { return chunkFAJLJDWS_cjs.useRecordingActions; }
17872
+ get: function () { return chunkFOBB5U4Y_cjs.useRecordingActions; }
17886
17873
  });
17887
17874
  Object.defineProperty(exports, "useRecordingWindows", {
17888
17875
  enumerable: true,
17889
- get: function () { return chunkFAJLJDWS_cjs.useRecordingWindows; }
17876
+ get: function () { return chunkFOBB5U4Y_cjs.useRecordingWindows; }
17890
17877
  });
17891
17878
  Object.defineProperty(exports, "useRevokeCallInviteLink", {
17892
17879
  enumerable: true,
17893
- get: function () { return chunkFAJLJDWS_cjs.useRevokeCallInviteLink; }
17880
+ get: function () { return chunkFOBB5U4Y_cjs.useRevokeCallInviteLink; }
17894
17881
  });
17895
17882
  Object.defineProperty(exports, "useSaveToThread", {
17896
17883
  enumerable: true,
17897
- get: function () { return chunkFAJLJDWS_cjs.useSaveToThread; }
17884
+ get: function () { return chunkFOBB5U4Y_cjs.useSaveToThread; }
17898
17885
  });
17899
17886
  Object.defineProperty(exports, "useServerCallsEnabled", {
17900
17887
  enumerable: true,
17901
- get: function () { return chunkFAJLJDWS_cjs.useServerCallsEnabled; }
17888
+ get: function () { return chunkFOBB5U4Y_cjs.useServerCallsEnabled; }
17902
17889
  });
17903
17890
  Object.defineProperty(exports, "useServerCallsExperimental", {
17904
17891
  enumerable: true,
17905
- get: function () { return chunkFAJLJDWS_cjs.useServerCallsExperimental; }
17892
+ get: function () { return chunkFOBB5U4Y_cjs.useServerCallsExperimental; }
17906
17893
  });
17907
17894
  Object.defineProperty(exports, "useUpdateProfile", {
17908
17895
  enumerable: true,
17909
- get: function () { return chunkFAJLJDWS_cjs.useUpdateProfile; }
17896
+ get: function () { return chunkFOBB5U4Y_cjs.useUpdateProfile; }
17910
17897
  });
17911
17898
  Object.defineProperty(exports, "useUpdateUserSettings", {
17912
17899
  enumerable: true,
17913
- get: function () { return chunkFAJLJDWS_cjs.useUpdateUserSettings; }
17900
+ get: function () { return chunkFOBB5U4Y_cjs.useUpdateUserSettings; }
17914
17901
  });
17915
17902
  Object.defineProperty(exports, "useUserSettings", {
17916
17903
  enumerable: true,
17917
- get: function () { return chunkFAJLJDWS_cjs.useUserSettings; }
17904
+ get: function () { return chunkFOBB5U4Y_cjs.useUserSettings; }
17918
17905
  });
17919
17906
  Object.defineProperty(exports, "wipeOfflineMail", {
17920
17907
  enumerable: true,
17921
- get: function () { return chunkFAJLJDWS_cjs.wipeOfflineMail; }
17908
+ get: function () { return chunkFOBB5U4Y_cjs.wipeOfflineMail; }
17922
17909
  });
17923
17910
  Object.defineProperty(exports, "wrapTrackKey", {
17924
17911
  enumerable: true,
17925
- get: function () { return chunkFAJLJDWS_cjs.wrapTrackKey; }
17912
+ get: function () { return chunkFOBB5U4Y_cjs.wrapTrackKey; }
17926
17913
  });
17927
17914
  Object.defineProperty(exports, "writeSamples", {
17928
17915
  enumerable: true,
17929
- get: function () { return chunkFAJLJDWS_cjs.writeSamples; }
17916
+ get: function () { return chunkFOBB5U4Y_cjs.writeSamples; }
17930
17917
  });
17931
17918
  Object.defineProperty(exports, "DISMISSED_TASK_TTL_MS", {
17932
17919
  enumerable: true,
17933
- get: function () { return chunkGKGAPU6T_cjs.DISMISSED_TASK_TTL_MS; }
17920
+ get: function () { return chunkNK5KFHXP_cjs.DISMISSED_TASK_TTL_MS; }
17934
17921
  });
17935
17922
  Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
17936
17923
  enumerable: true,
17937
- get: function () { return chunkGKGAPU6T_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
17924
+ get: function () { return chunkNK5KFHXP_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
17938
17925
  });
17939
17926
  Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
17940
17927
  enumerable: true,
17941
- get: function () { return chunkGKGAPU6T_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
17928
+ get: function () { return chunkNK5KFHXP_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
17942
17929
  });
17943
17930
  Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
17944
17931
  enumerable: true,
17945
- get: function () { return chunkGKGAPU6T_cjs.DOCUMENTS_PAGE_SIZE; }
17932
+ get: function () { return chunkNK5KFHXP_cjs.DOCUMENTS_PAGE_SIZE; }
17946
17933
  });
17947
17934
  Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
17948
17935
  enumerable: true,
17949
- get: function () { return chunkGKGAPU6T_cjs.FINISHED_DOCUMENT_STATUSES; }
17936
+ get: function () { return chunkNK5KFHXP_cjs.FINISHED_DOCUMENT_STATUSES; }
17950
17937
  });
17951
17938
  Object.defineProperty(exports, "IN_FLIGHT_DOCUMENT_STATUSES", {
17952
17939
  enumerable: true,
17953
- get: function () { return chunkGKGAPU6T_cjs.IN_FLIGHT_DOCUMENT_STATUSES; }
17940
+ get: function () { return chunkNK5KFHXP_cjs.IN_FLIGHT_DOCUMENT_STATUSES; }
17954
17941
  });
17955
17942
  Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
17956
17943
  enumerable: true,
17957
- get: function () { return chunkGKGAPU6T_cjs.SIMILARITY_THRESHOLD; }
17944
+ get: function () { return chunkNK5KFHXP_cjs.SIMILARITY_THRESHOLD; }
17958
17945
  });
17959
17946
  Object.defineProperty(exports, "adjustTagCounts", {
17960
17947
  enumerable: true,
17961
- get: function () { return chunkGKGAPU6T_cjs.adjustTagCounts; }
17948
+ get: function () { return chunkNK5KFHXP_cjs.adjustTagCounts; }
17962
17949
  });
17963
17950
  Object.defineProperty(exports, "dropTagFromCachedDocuments", {
17964
17951
  enumerable: true,
17965
- get: function () { return chunkGKGAPU6T_cjs.dropTagFromCachedDocuments; }
17952
+ get: function () { return chunkNK5KFHXP_cjs.dropTagFromCachedDocuments; }
17966
17953
  });
17967
17954
  Object.defineProperty(exports, "finishEntityExtraction", {
17968
17955
  enumerable: true,
17969
- get: function () { return chunkGKGAPU6T_cjs.finishEntityExtraction; }
17956
+ get: function () { return chunkNK5KFHXP_cjs.finishEntityExtraction; }
17957
+ });
17958
+ Object.defineProperty(exports, "flushDocumentForTurn", {
17959
+ enumerable: true,
17960
+ get: function () { return chunkNK5KFHXP_cjs.flushDocumentForTurn; }
17970
17961
  });
17971
17962
  Object.defineProperty(exports, "forgetDocuments", {
17972
17963
  enumerable: true,
17973
- get: function () { return chunkGKGAPU6T_cjs.forgetDocuments; }
17964
+ get: function () { return chunkNK5KFHXP_cjs.forgetDocuments; }
17974
17965
  });
17975
17966
  Object.defineProperty(exports, "getCachedDocuments", {
17976
17967
  enumerable: true,
17977
- get: function () { return chunkGKGAPU6T_cjs.getCachedDocuments; }
17968
+ get: function () { return chunkNK5KFHXP_cjs.getCachedDocuments; }
17978
17969
  });
17979
17970
  Object.defineProperty(exports, "invalidateTagData", {
17980
17971
  enumerable: true,
17981
- get: function () { return chunkGKGAPU6T_cjs.invalidateTagData; }
17972
+ get: function () { return chunkNK5KFHXP_cjs.invalidateTagData; }
17982
17973
  });
17983
17974
  Object.defineProperty(exports, "invalidateTagTables", {
17984
17975
  enumerable: true,
17985
- get: function () { return chunkGKGAPU6T_cjs.invalidateTagTables; }
17976
+ get: function () { return chunkNK5KFHXP_cjs.invalidateTagTables; }
17986
17977
  });
17987
17978
  Object.defineProperty(exports, "isDocumentsLoading", {
17988
17979
  enumerable: true,
17989
- get: function () { return chunkGKGAPU6T_cjs.isDocumentsLoading; }
17980
+ get: function () { return chunkNK5KFHXP_cjs.isDocumentsLoading; }
17990
17981
  });
17991
17982
  Object.defineProperty(exports, "isRowNewer", {
17992
17983
  enumerable: true,
17993
- get: function () { return chunkGKGAPU6T_cjs.isRowNewer; }
17984
+ get: function () { return chunkNK5KFHXP_cjs.isRowNewer; }
17994
17985
  });
17995
17986
  Object.defineProperty(exports, "isStaleTaskUpdate", {
17996
17987
  enumerable: true,
17997
- get: function () { return chunkGKGAPU6T_cjs.isStaleTaskUpdate; }
17988
+ get: function () { return chunkNK5KFHXP_cjs.isStaleTaskUpdate; }
17998
17989
  });
17999
17990
  Object.defineProperty(exports, "patchCachedDocument", {
18000
17991
  enumerable: true,
18001
- get: function () { return chunkGKGAPU6T_cjs.patchCachedDocument; }
17992
+ get: function () { return chunkNK5KFHXP_cjs.patchCachedDocument; }
18002
17993
  });
18003
17994
  Object.defineProperty(exports, "patchDocuments", {
18004
17995
  enumerable: true,
18005
- get: function () { return chunkGKGAPU6T_cjs.patchDocuments; }
17996
+ get: function () { return chunkNK5KFHXP_cjs.patchDocuments; }
18006
17997
  });
18007
17998
  Object.defineProperty(exports, "patchWorkspaceTags", {
18008
17999
  enumerable: true,
18009
- get: function () { return chunkGKGAPU6T_cjs.patchWorkspaceTags; }
18000
+ get: function () { return chunkNK5KFHXP_cjs.patchWorkspaceTags; }
18010
18001
  });
18011
18002
  Object.defineProperty(exports, "refreshDocuments", {
18012
18003
  enumerable: true,
18013
- get: function () { return chunkGKGAPU6T_cjs.refreshDocuments; }
18004
+ get: function () { return chunkNK5KFHXP_cjs.refreshDocuments; }
18005
+ });
18006
+ Object.defineProperty(exports, "registerDocumentTurnFlush", {
18007
+ enumerable: true,
18008
+ get: function () { return chunkNK5KFHXP_cjs.registerDocumentTurnFlush; }
18014
18009
  });
18015
18010
  Object.defineProperty(exports, "resolveDocumentStatus", {
18016
18011
  enumerable: true,
18017
- get: function () { return chunkGKGAPU6T_cjs.resolveDocumentStatus; }
18012
+ get: function () { return chunkNK5KFHXP_cjs.resolveDocumentStatus; }
18018
18013
  });
18019
18014
  Object.defineProperty(exports, "setCachedDocument", {
18020
18015
  enumerable: true,
18021
- get: function () { return chunkGKGAPU6T_cjs.setCachedDocument; }
18016
+ get: function () { return chunkNK5KFHXP_cjs.setCachedDocument; }
18022
18017
  });
18023
18018
  Object.defineProperty(exports, "settledByRows", {
18024
18019
  enumerable: true,
18025
- get: function () { return chunkGKGAPU6T_cjs.settledByRows; }
18020
+ get: function () { return chunkNK5KFHXP_cjs.settledByRows; }
18026
18021
  });
18027
18022
  Object.defineProperty(exports, "startEntityExtraction", {
18028
18023
  enumerable: true,
18029
- get: function () { return chunkGKGAPU6T_cjs.startEntityExtraction; }
18024
+ get: function () { return chunkNK5KFHXP_cjs.startEntityExtraction; }
18030
18025
  });
18031
18026
  Object.defineProperty(exports, "stopDocumentsLoading", {
18032
18027
  enumerable: true,
18033
- get: function () { return chunkGKGAPU6T_cjs.stopDocumentsLoading; }
18028
+ get: function () { return chunkNK5KFHXP_cjs.stopDocumentsLoading; }
18034
18029
  });
18035
18030
  Object.defineProperty(exports, "subscribeDocumentRows", {
18036
18031
  enumerable: true,
18037
- get: function () { return chunkGKGAPU6T_cjs.subscribeDocumentRows; }
18032
+ get: function () { return chunkNK5KFHXP_cjs.subscribeDocumentRows; }
18038
18033
  });
18039
18034
  Object.defineProperty(exports, "upsertDocuments", {
18040
18035
  enumerable: true,
18041
- get: function () { return chunkGKGAPU6T_cjs.upsertDocuments; }
18036
+ get: function () { return chunkNK5KFHXP_cjs.upsertDocuments; }
18042
18037
  });
18043
18038
  Object.defineProperty(exports, "useArbiWsStore", {
18044
18039
  enumerable: true,
18045
- get: function () { return chunkGKGAPU6T_cjs.useArbiWsStore; }
18040
+ get: function () { return chunkNK5KFHXP_cjs.useArbiWsStore; }
18046
18041
  });
18047
18042
  Object.defineProperty(exports, "useCreateTag", {
18048
18043
  enumerable: true,
18049
- get: function () { return chunkGKGAPU6T_cjs.useCreateTag; }
18044
+ get: function () { return chunkNK5KFHXP_cjs.useCreateTag; }
18050
18045
  });
18051
18046
  Object.defineProperty(exports, "useDeleteTag", {
18052
18047
  enumerable: true,
18053
- get: function () { return chunkGKGAPU6T_cjs.useDeleteTag; }
18048
+ get: function () { return chunkNK5KFHXP_cjs.useDeleteTag; }
18054
18049
  });
18055
18050
  Object.defineProperty(exports, "useDocument", {
18056
18051
  enumerable: true,
18057
- get: function () { return chunkGKGAPU6T_cjs.useDocument; }
18052
+ get: function () { return chunkNK5KFHXP_cjs.useDocument; }
18058
18053
  });
18059
18054
  Object.defineProperty(exports, "useDocuments", {
18060
18055
  enumerable: true,
18061
- get: function () { return chunkGKGAPU6T_cjs.useDocuments; }
18056
+ get: function () { return chunkNK5KFHXP_cjs.useDocuments; }
18062
18057
  });
18063
18058
  Object.defineProperty(exports, "useDocumentsLoading", {
18064
18059
  enumerable: true,
18065
- get: function () { return chunkGKGAPU6T_cjs.useDocumentsLoading; }
18060
+ get: function () { return chunkNK5KFHXP_cjs.useDocumentsLoading; }
18066
18061
  });
18067
18062
  Object.defineProperty(exports, "useEntityExtractionDocIds", {
18068
18063
  enumerable: true,
18069
- get: function () { return chunkGKGAPU6T_cjs.useEntityExtractionDocIds; }
18064
+ get: function () { return chunkNK5KFHXP_cjs.useEntityExtractionDocIds; }
18070
18065
  });
18071
18066
  Object.defineProperty(exports, "useExtractEntities", {
18072
18067
  enumerable: true,
18073
- get: function () { return chunkGKGAPU6T_cjs.useExtractEntities; }
18068
+ get: function () { return chunkNK5KFHXP_cjs.useExtractEntities; }
18074
18069
  });
18075
18070
  Object.defineProperty(exports, "useInvalidateTagData", {
18076
18071
  enumerable: true,
18077
- get: function () { return chunkGKGAPU6T_cjs.useInvalidateTagData; }
18072
+ get: function () { return chunkNK5KFHXP_cjs.useInvalidateTagData; }
18078
18073
  });
18079
18074
  Object.defineProperty(exports, "useIsCreatingTag", {
18080
18075
  enumerable: true,
18081
- get: function () { return chunkGKGAPU6T_cjs.useIsCreatingTag; }
18076
+ get: function () { return chunkNK5KFHXP_cjs.useIsCreatingTag; }
18082
18077
  });
18083
18078
  Object.defineProperty(exports, "useRefreshDocuments", {
18084
18079
  enumerable: true,
18085
- get: function () { return chunkGKGAPU6T_cjs.useRefreshDocuments; }
18080
+ get: function () { return chunkNK5KFHXP_cjs.useRefreshDocuments; }
18086
18081
  });
18087
18082
  Object.defineProperty(exports, "useSetTagValues", {
18088
18083
  enumerable: true,
18089
- get: function () { return chunkGKGAPU6T_cjs.useSetTagValues; }
18084
+ get: function () { return chunkNK5KFHXP_cjs.useSetTagValues; }
18090
18085
  });
18091
18086
  Object.defineProperty(exports, "useSimilarDocuments", {
18092
18087
  enumerable: true,
18093
- get: function () { return chunkGKGAPU6T_cjs.useSimilarDocuments; }
18088
+ get: function () { return chunkNK5KFHXP_cjs.useSimilarDocuments; }
18094
18089
  });
18095
18090
  Object.defineProperty(exports, "useTagKindSchema", {
18096
18091
  enumerable: true,
18097
- get: function () { return chunkGKGAPU6T_cjs.useTagKindSchema; }
18092
+ get: function () { return chunkNK5KFHXP_cjs.useTagKindSchema; }
18098
18093
  });
18099
18094
  Object.defineProperty(exports, "useUpdateTag", {
18100
18095
  enumerable: true,
18101
- get: function () { return chunkGKGAPU6T_cjs.useUpdateTag; }
18096
+ get: function () { return chunkNK5KFHXP_cjs.useUpdateTag; }
18102
18097
  });
18103
18098
  Object.defineProperty(exports, "useUpdateTagKindSchema", {
18104
18099
  enumerable: true,
18105
- get: function () { return chunkGKGAPU6T_cjs.useUpdateTagKindSchema; }
18100
+ get: function () { return chunkNK5KFHXP_cjs.useUpdateTagKindSchema; }
18106
18101
  });
18107
18102
  Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_STATE", {
18108
18103
  enumerable: true,
18109
- get: function () { return chunk7L7QRIQ2_cjs.DEFAULT_DOCUMENT_VIEWER_STATE; }
18104
+ get: function () { return chunkH3XHBIZ6_cjs.DEFAULT_DOCUMENT_VIEWER_STATE; }
18110
18105
  });
18111
18106
  Object.defineProperty(exports, "DOCUMENT_VIEWER_PANEL", {
18112
18107
  enumerable: true,
18113
- get: function () { return chunk7L7QRIQ2_cjs.DOCUMENT_VIEWER_PANEL; }
18108
+ get: function () { return chunkH3XHBIZ6_cjs.DOCUMENT_VIEWER_PANEL; }
18114
18109
  });
18115
18110
  Object.defineProperty(exports, "EMPTY_CHAT_STATE", {
18116
18111
  enumerable: true,
18117
- get: function () { return chunk7L7QRIQ2_cjs.EMPTY_CHAT_STATE; }
18112
+ get: function () { return chunkH3XHBIZ6_cjs.EMPTY_CHAT_STATE; }
18118
18113
  });
18119
18114
  Object.defineProperty(exports, "EMPTY_DOCUMENT_STATE", {
18120
18115
  enumerable: true,
18121
- get: function () { return chunk7L7QRIQ2_cjs.EMPTY_DOCUMENT_STATE; }
18116
+ get: function () { return chunkH3XHBIZ6_cjs.EMPTY_DOCUMENT_STATE; }
18122
18117
  });
18123
18118
  Object.defineProperty(exports, "EMPTY_SESSION_STATE", {
18124
18119
  enumerable: true,
18125
- get: function () { return chunk7L7QRIQ2_cjs.EMPTY_SESSION_STATE; }
18120
+ get: function () { return chunkH3XHBIZ6_cjs.EMPTY_SESSION_STATE; }
18126
18121
  });
18127
18122
  Object.defineProperty(exports, "MAX_THREAD_TABS", {
18128
18123
  enumerable: true,
18129
- get: function () { return chunk7L7QRIQ2_cjs.MAX_THREAD_TABS; }
18124
+ get: function () { return chunkH3XHBIZ6_cjs.MAX_THREAD_TABS; }
18130
18125
  });
18131
18126
  Object.defineProperty(exports, "MIN_QUEUED_MESSAGE_VISIBILITY_MS", {
18132
18127
  enumerable: true,
18133
- get: function () { return chunk7L7QRIQ2_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS; }
18128
+ get: function () { return chunkH3XHBIZ6_cjs.MIN_QUEUED_MESSAGE_VISIBILITY_MS; }
18134
18129
  });
18135
18130
  Object.defineProperty(exports, "PROJECT_CREATION_DENIED_REASON", {
18136
18131
  enumerable: true,
18137
- get: function () { return chunk7L7QRIQ2_cjs.PROJECT_CREATION_DENIED_REASON; }
18132
+ get: function () { return chunkH3XHBIZ6_cjs.PROJECT_CREATION_DENIED_REASON; }
18138
18133
  });
18139
18134
  Object.defineProperty(exports, "WORKSPACE_LAST_OPENED_KEY", {
18140
18135
  enumerable: true,
18141
- get: function () { return chunk7L7QRIQ2_cjs.WORKSPACE_LAST_OPENED_KEY; }
18136
+ get: function () { return chunkH3XHBIZ6_cjs.WORKSPACE_LAST_OPENED_KEY; }
18142
18137
  });
18143
18138
  Object.defineProperty(exports, "WORKSPACE_STORAGE_KEY", {
18144
18139
  enumerable: true,
18145
- get: function () { return chunk7L7QRIQ2_cjs.WORKSPACE_STORAGE_KEY; }
18140
+ get: function () { return chunkH3XHBIZ6_cjs.WORKSPACE_STORAGE_KEY; }
18146
18141
  });
18147
18142
  Object.defineProperty(exports, "agentControl", {
18148
18143
  enumerable: true,
18149
- get: function () { return chunk7L7QRIQ2_cjs.agentControl; }
18144
+ get: function () { return chunkH3XHBIZ6_cjs.agentControl; }
18150
18145
  });
18151
18146
  Object.defineProperty(exports, "browserWorkspaceStorage", {
18152
18147
  enumerable: true,
18153
- get: function () { return chunk7L7QRIQ2_cjs.browserWorkspaceStorage; }
18148
+ get: function () { return chunkH3XHBIZ6_cjs.browserWorkspaceStorage; }
18154
18149
  });
18155
18150
  Object.defineProperty(exports, "clearSealedDrafts", {
18156
18151
  enumerable: true,
18157
- get: function () { return chunk7L7QRIQ2_cjs.clearSealedDrafts; }
18152
+ get: function () { return chunkH3XHBIZ6_cjs.clearSealedDrafts; }
18158
18153
  });
18159
18154
  Object.defineProperty(exports, "closePanelIn", {
18160
18155
  enumerable: true,
18161
- get: function () { return chunk7L7QRIQ2_cjs.closePanelIn; }
18156
+ get: function () { return chunkH3XHBIZ6_cjs.closePanelIn; }
18162
18157
  });
18163
18158
  Object.defineProperty(exports, "composeArbiSessionStore", {
18164
18159
  enumerable: true,
18165
- get: function () { return chunk7L7QRIQ2_cjs.composeArbiSessionStore; }
18160
+ get: function () { return chunkH3XHBIZ6_cjs.composeArbiSessionStore; }
18166
18161
  });
18167
18162
  Object.defineProperty(exports, "conversationKey", {
18168
18163
  enumerable: true,
18169
- get: function () { return chunk7L7QRIQ2_cjs.conversationKey; }
18164
+ get: function () { return chunkH3XHBIZ6_cjs.conversationKey; }
18170
18165
  });
18171
18166
  Object.defineProperty(exports, "createArbiChatStore", {
18172
18167
  enumerable: true,
18173
- get: function () { return chunk7L7QRIQ2_cjs.createArbiChatStore; }
18168
+ get: function () { return chunkH3XHBIZ6_cjs.createArbiChatStore; }
18174
18169
  });
18175
18170
  Object.defineProperty(exports, "createArbiDocumentSessionStore", {
18176
18171
  enumerable: true,
18177
- get: function () { return chunk7L7QRIQ2_cjs.createArbiDocumentSessionStore; }
18172
+ get: function () { return chunkH3XHBIZ6_cjs.createArbiDocumentSessionStore; }
18178
18173
  });
18179
18174
  Object.defineProperty(exports, "createArbiLayoutStore", {
18180
18175
  enumerable: true,
18181
- get: function () { return chunk7L7QRIQ2_cjs.createArbiLayoutStore; }
18176
+ get: function () { return chunkH3XHBIZ6_cjs.createArbiLayoutStore; }
18182
18177
  });
18183
18178
  Object.defineProperty(exports, "createArbiSessionStore", {
18184
18179
  enumerable: true,
18185
- get: function () { return chunk7L7QRIQ2_cjs.createArbiSessionStore; }
18180
+ get: function () { return chunkH3XHBIZ6_cjs.createArbiSessionStore; }
18186
18181
  });
18187
18182
  Object.defineProperty(exports, "createArbiWorkspaceStore", {
18188
18183
  enumerable: true,
18189
- get: function () { return chunk7L7QRIQ2_cjs.createArbiWorkspaceStore; }
18184
+ get: function () { return chunkH3XHBIZ6_cjs.createArbiWorkspaceStore; }
18190
18185
  });
18191
18186
  Object.defineProperty(exports, "createDebouncedWriter", {
18192
18187
  enumerable: true,
18193
- get: function () { return chunk7L7QRIQ2_cjs.createDebouncedWriter; }
18188
+ get: function () { return chunkH3XHBIZ6_cjs.createDebouncedWriter; }
18194
18189
  });
18195
18190
  Object.defineProperty(exports, "createSealedDraftStorage", {
18196
18191
  enumerable: true,
18197
- get: function () { return chunk7L7QRIQ2_cjs.createSealedDraftStorage; }
18192
+ get: function () { return chunkH3XHBIZ6_cjs.createSealedDraftStorage; }
18198
18193
  });
18199
18194
  Object.defineProperty(exports, "createStoragePersist", {
18200
18195
  enumerable: true,
18201
- get: function () { return chunk7L7QRIQ2_cjs.createStoragePersist; }
18196
+ get: function () { return chunkH3XHBIZ6_cjs.createStoragePersist; }
18202
18197
  });
18203
18198
  Object.defineProperty(exports, "createUiStateStorage", {
18204
18199
  enumerable: true,
18205
- get: function () { return chunk7L7QRIQ2_cjs.createUiStateStorage; }
18200
+ get: function () { return chunkH3XHBIZ6_cjs.createUiStateStorage; }
18206
18201
  });
18207
18202
  Object.defineProperty(exports, "defaultLayoutState", {
18208
18203
  enumerable: true,
18209
- get: function () { return chunk7L7QRIQ2_cjs.defaultLayoutState; }
18204
+ get: function () { return chunkH3XHBIZ6_cjs.defaultLayoutState; }
18210
18205
  });
18211
18206
  Object.defineProperty(exports, "dmTabId", {
18212
18207
  enumerable: true,
18213
- get: function () { return chunk7L7QRIQ2_cjs.dmTabId; }
18208
+ get: function () { return chunkH3XHBIZ6_cjs.dmTabId; }
18214
18209
  });
18215
18210
  Object.defineProperty(exports, "flushOnPageExit", {
18216
18211
  enumerable: true,
18217
- get: function () { return chunk7L7QRIQ2_cjs.flushOnPageExit; }
18212
+ get: function () { return chunkH3XHBIZ6_cjs.flushOnPageExit; }
18218
18213
  });
18219
18214
  Object.defineProperty(exports, "isPanelOpen", {
18220
18215
  enumerable: true,
18221
- get: function () { return chunk7L7QRIQ2_cjs.isPanelOpen; }
18216
+ get: function () { return chunkH3XHBIZ6_cjs.isPanelOpen; }
18222
18217
  });
18223
18218
  Object.defineProperty(exports, "isUsageMetered", {
18224
18219
  enumerable: true,
18225
- get: function () { return chunk7L7QRIQ2_cjs.isUsageMetered; }
18220
+ get: function () { return chunkH3XHBIZ6_cjs.isUsageMetered; }
18226
18221
  });
18227
18222
  Object.defineProperty(exports, "layoutActionsOf", {
18228
18223
  enumerable: true,
18229
- get: function () { return chunk7L7QRIQ2_cjs.layoutActionsOf; }
18224
+ get: function () { return chunkH3XHBIZ6_cjs.layoutActionsOf; }
18230
18225
  });
18231
18226
  Object.defineProperty(exports, "nextViewingDocument", {
18232
18227
  enumerable: true,
18233
- get: function () { return chunk7L7QRIQ2_cjs.nextViewingDocument; }
18228
+ get: function () { return chunkH3XHBIZ6_cjs.nextViewingDocument; }
18234
18229
  });
18235
18230
  Object.defineProperty(exports, "openPanelIn", {
18236
18231
  enumerable: true,
18237
- get: function () { return chunk7L7QRIQ2_cjs.openPanelIn; }
18232
+ get: function () { return chunkH3XHBIZ6_cjs.openPanelIn; }
18238
18233
  });
18239
18234
  Object.defineProperty(exports, "panelPlace", {
18240
18235
  enumerable: true,
18241
- get: function () { return chunk7L7QRIQ2_cjs.panelPlace; }
18236
+ get: function () { return chunkH3XHBIZ6_cjs.panelPlace; }
18242
18237
  });
18243
18238
  Object.defineProperty(exports, "parseSavedChat", {
18244
18239
  enumerable: true,
18245
- get: function () { return chunk7L7QRIQ2_cjs.parseSavedChat; }
18240
+ get: function () { return chunkH3XHBIZ6_cjs.parseSavedChat; }
18246
18241
  });
18247
18242
  Object.defineProperty(exports, "parseSavedDocuments", {
18248
18243
  enumerable: true,
18249
- get: function () { return chunk7L7QRIQ2_cjs.parseSavedDocuments; }
18244
+ get: function () { return chunkH3XHBIZ6_cjs.parseSavedDocuments; }
18250
18245
  });
18251
18246
  Object.defineProperty(exports, "parseSavedLayout", {
18252
18247
  enumerable: true,
18253
- get: function () { return chunk7L7QRIQ2_cjs.parseSavedLayout; }
18248
+ get: function () { return chunkH3XHBIZ6_cjs.parseSavedLayout; }
18254
18249
  });
18255
18250
  Object.defineProperty(exports, "queuedMessages", {
18256
18251
  enumerable: true,
18257
- get: function () { return chunk7L7QRIQ2_cjs.queuedMessages; }
18252
+ get: function () { return chunkH3XHBIZ6_cjs.queuedMessages; }
18258
18253
  });
18259
18254
  Object.defineProperty(exports, "readWorkspaceLastOpened", {
18260
18255
  enumerable: true,
18261
- get: function () { return chunk7L7QRIQ2_cjs.readWorkspaceLastOpened; }
18256
+ get: function () { return chunkH3XHBIZ6_cjs.readWorkspaceLastOpened; }
18262
18257
  });
18263
18258
  Object.defineProperty(exports, "restoreLayout", {
18264
18259
  enumerable: true,
18265
- get: function () { return chunk7L7QRIQ2_cjs.restoreLayout; }
18260
+ get: function () { return chunkH3XHBIZ6_cjs.restoreLayout; }
18266
18261
  });
18267
18262
  Object.defineProperty(exports, "restoreSavedDocuments", {
18268
18263
  enumerable: true,
18269
- get: function () { return chunk7L7QRIQ2_cjs.restoreSavedDocuments; }
18264
+ get: function () { return chunkH3XHBIZ6_cjs.restoreSavedDocuments; }
18270
18265
  });
18271
18266
  Object.defineProperty(exports, "savedChatOf", {
18272
18267
  enumerable: true,
18273
- get: function () { return chunk7L7QRIQ2_cjs.savedChatOf; }
18268
+ get: function () { return chunkH3XHBIZ6_cjs.savedChatOf; }
18274
18269
  });
18275
18270
  Object.defineProperty(exports, "savedDocumentsOf", {
18276
18271
  enumerable: true,
18277
- get: function () { return chunk7L7QRIQ2_cjs.savedDocumentsOf; }
18272
+ get: function () { return chunkH3XHBIZ6_cjs.savedDocumentsOf; }
18278
18273
  });
18279
18274
  Object.defineProperty(exports, "savedLayoutOf", {
18280
18275
  enumerable: true,
18281
- get: function () { return chunk7L7QRIQ2_cjs.savedLayoutOf; }
18276
+ get: function () { return chunkH3XHBIZ6_cjs.savedLayoutOf; }
18282
18277
  });
18283
18278
  Object.defineProperty(exports, "selectDraft", {
18284
18279
  enumerable: true,
18285
- get: function () { return chunk7L7QRIQ2_cjs.selectDraft; }
18280
+ get: function () { return chunkH3XHBIZ6_cjs.selectDraft; }
18286
18281
  });
18287
18282
  Object.defineProperty(exports, "selectIsGenerating", {
18288
18283
  enumerable: true,
18289
- get: function () { return chunk7L7QRIQ2_cjs.selectIsGenerating; }
18284
+ get: function () { return chunkH3XHBIZ6_cjs.selectIsGenerating; }
18290
18285
  });
18291
18286
  Object.defineProperty(exports, "selectViewingDocumentId", {
18292
18287
  enumerable: true,
18293
- get: function () { return chunk7L7QRIQ2_cjs.selectViewingDocumentId; }
18288
+ get: function () { return chunkH3XHBIZ6_cjs.selectViewingDocumentId; }
18294
18289
  });
18295
18290
  Object.defineProperty(exports, "threadTabId", {
18296
18291
  enumerable: true,
18297
- get: function () { return chunk7L7QRIQ2_cjs.threadTabId; }
18292
+ get: function () { return chunkH3XHBIZ6_cjs.threadTabId; }
18298
18293
  });
18299
18294
  Object.defineProperty(exports, "useActivity", {
18300
18295
  enumerable: true,
18301
- get: function () { return chunk7L7QRIQ2_cjs.useActivity; }
18296
+ get: function () { return chunkH3XHBIZ6_cjs.useActivity; }
18302
18297
  });
18303
18298
  Object.defineProperty(exports, "useAgents", {
18304
18299
  enumerable: true,
18305
- get: function () { return chunk7L7QRIQ2_cjs.useAgents; }
18300
+ get: function () { return chunkH3XHBIZ6_cjs.useAgents; }
18306
18301
  });
18307
18302
  Object.defineProperty(exports, "useArbiSession", {
18308
18303
  enumerable: true,
18309
- get: function () { return chunk7L7QRIQ2_cjs.useArbiSession; }
18304
+ get: function () { return chunkH3XHBIZ6_cjs.useArbiSession; }
18310
18305
  });
18311
18306
  Object.defineProperty(exports, "useArbiSessionState", {
18312
18307
  enumerable: true,
18313
- get: function () { return chunk7L7QRIQ2_cjs.useArbiSessionState; }
18308
+ get: function () { return chunkH3XHBIZ6_cjs.useArbiSessionState; }
18314
18309
  });
18315
18310
  Object.defineProperty(exports, "useArbiSessionStore", {
18316
18311
  enumerable: true,
18317
- get: function () { return chunk7L7QRIQ2_cjs.useArbiSessionStore; }
18312
+ get: function () { return chunkH3XHBIZ6_cjs.useArbiSessionStore; }
18318
18313
  });
18319
18314
  Object.defineProperty(exports, "useAssistantQuery", {
18320
18315
  enumerable: true,
18321
- get: function () { return chunk7L7QRIQ2_cjs.useAssistantQuery; }
18316
+ get: function () { return chunkH3XHBIZ6_cjs.useAssistantQuery; }
18322
18317
  });
18323
18318
  Object.defineProperty(exports, "useAvailableModels", {
18324
18319
  enumerable: true,
18325
- get: function () { return chunk7L7QRIQ2_cjs.useAvailableModels; }
18320
+ get: function () { return chunkH3XHBIZ6_cjs.useAvailableModels; }
18326
18321
  });
18327
18322
  Object.defineProperty(exports, "useBoxRole", {
18328
18323
  enumerable: true,
18329
- get: function () { return chunk7L7QRIQ2_cjs.useBoxRole; }
18324
+ get: function () { return chunkH3XHBIZ6_cjs.useBoxRole; }
18330
18325
  });
18331
18326
  Object.defineProperty(exports, "useBuiltinCommands", {
18332
18327
  enumerable: true,
18333
- get: function () { return chunk7L7QRIQ2_cjs.useBuiltinCommands; }
18328
+ get: function () { return chunkH3XHBIZ6_cjs.useBuiltinCommands; }
18334
18329
  });
18335
18330
  Object.defineProperty(exports, "useCanCreateProjects", {
18336
18331
  enumerable: true,
18337
- get: function () { return chunk7L7QRIQ2_cjs.useCanCreateProjects; }
18332
+ get: function () { return chunkH3XHBIZ6_cjs.useCanCreateProjects; }
18338
18333
  });
18339
18334
  Object.defineProperty(exports, "useConfig", {
18340
18335
  enumerable: true,
18341
- get: function () { return chunk7L7QRIQ2_cjs.useConfig; }
18336
+ get: function () { return chunkH3XHBIZ6_cjs.useConfig; }
18342
18337
  });
18343
18338
  Object.defineProperty(exports, "useConfigs", {
18344
18339
  enumerable: true,
18345
- get: function () { return chunk7L7QRIQ2_cjs.useConfigs; }
18340
+ get: function () { return chunkH3XHBIZ6_cjs.useConfigs; }
18346
18341
  });
18347
18342
  Object.defineProperty(exports, "useConversationThreads", {
18348
18343
  enumerable: true,
18349
- get: function () { return chunk7L7QRIQ2_cjs.useConversationThreads; }
18344
+ get: function () { return chunkH3XHBIZ6_cjs.useConversationThreads; }
18350
18345
  });
18351
18346
  Object.defineProperty(exports, "useConversations", {
18352
18347
  enumerable: true,
18353
- get: function () { return chunk7L7QRIQ2_cjs.useConversations; }
18348
+ get: function () { return chunkH3XHBIZ6_cjs.useConversations; }
18354
18349
  });
18355
18350
  Object.defineProperty(exports, "useCurrentUser", {
18356
18351
  enumerable: true,
18357
- get: function () { return chunk7L7QRIQ2_cjs.useCurrentUser; }
18352
+ get: function () { return chunkH3XHBIZ6_cjs.useCurrentUser; }
18358
18353
  });
18359
18354
  Object.defineProperty(exports, "useDeleteAgents", {
18360
18355
  enumerable: true,
18361
- get: function () { return chunk7L7QRIQ2_cjs.useDeleteAgents; }
18356
+ get: function () { return chunkH3XHBIZ6_cjs.useDeleteAgents; }
18362
18357
  });
18363
18358
  Object.defineProperty(exports, "useDocumentVersionList", {
18364
18359
  enumerable: true,
18365
- get: function () { return chunk7L7QRIQ2_cjs.useDocumentVersionList; }
18360
+ get: function () { return chunkH3XHBIZ6_cjs.useDocumentVersionList; }
18366
18361
  });
18367
18362
  Object.defineProperty(exports, "useHealth", {
18368
18363
  enumerable: true,
18369
- get: function () { return chunk7L7QRIQ2_cjs.useHealth; }
18364
+ get: function () { return chunkH3XHBIZ6_cjs.useHealth; }
18370
18365
  });
18371
18366
  Object.defineProperty(exports, "useMessageDetails", {
18372
18367
  enumerable: true,
18373
- get: function () { return chunk7L7QRIQ2_cjs.useMessageDetails; }
18368
+ get: function () { return chunkH3XHBIZ6_cjs.useMessageDetails; }
18374
18369
  });
18375
18370
  Object.defineProperty(exports, "useParsedDocument", {
18376
18371
  enumerable: true,
18377
- get: function () { return chunk7L7QRIQ2_cjs.useParsedDocument; }
18372
+ get: function () { return chunkH3XHBIZ6_cjs.useParsedDocument; }
18378
18373
  });
18379
18374
  Object.defineProperty(exports, "useProjectInvoices", {
18380
18375
  enumerable: true,
18381
- get: function () { return chunk7L7QRIQ2_cjs.useProjectInvoices; }
18376
+ get: function () { return chunkH3XHBIZ6_cjs.useProjectInvoices; }
18382
18377
  });
18383
18378
  Object.defineProperty(exports, "useProjectUsage", {
18384
18379
  enumerable: true,
18385
- get: function () { return chunk7L7QRIQ2_cjs.useProjectUsage; }
18380
+ get: function () { return chunkH3XHBIZ6_cjs.useProjectUsage; }
18386
18381
  });
18387
18382
  Object.defineProperty(exports, "useProjects", {
18388
18383
  enumerable: true,
18389
- get: function () { return chunk7L7QRIQ2_cjs.useProjects; }
18384
+ get: function () { return chunkH3XHBIZ6_cjs.useProjects; }
18390
18385
  });
18391
18386
  Object.defineProperty(exports, "useSessionPageTab", {
18392
18387
  enumerable: true,
18393
- get: function () { return chunk7L7QRIQ2_cjs.useSessionPageTab; }
18388
+ get: function () { return chunkH3XHBIZ6_cjs.useSessionPageTab; }
18394
18389
  });
18395
18390
  Object.defineProperty(exports, "useSessionView", {
18396
18391
  enumerable: true,
18397
- get: function () { return chunk7L7QRIQ2_cjs.useSessionView; }
18392
+ get: function () { return chunkH3XHBIZ6_cjs.useSessionView; }
18398
18393
  });
18399
18394
  Object.defineProperty(exports, "useSignedInSession", {
18400
18395
  enumerable: true,
18401
- get: function () { return chunk7L7QRIQ2_cjs.useSignedInSession; }
18396
+ get: function () { return chunkH3XHBIZ6_cjs.useSignedInSession; }
18402
18397
  });
18403
18398
  Object.defineProperty(exports, "useTags", {
18404
18399
  enumerable: true,
18405
- get: function () { return chunk7L7QRIQ2_cjs.useTags; }
18400
+ get: function () { return chunkH3XHBIZ6_cjs.useTags; }
18406
18401
  });
18407
18402
  Object.defineProperty(exports, "useThumbnails", {
18408
18403
  enumerable: true,
18409
- get: function () { return chunk7L7QRIQ2_cjs.useThumbnails; }
18404
+ get: function () { return chunkH3XHBIZ6_cjs.useThumbnails; }
18410
18405
  });
18411
18406
  Object.defineProperty(exports, "useTransientView", {
18412
18407
  enumerable: true,
18413
- get: function () { return chunk7L7QRIQ2_cjs.useTransientView; }
18408
+ get: function () { return chunkH3XHBIZ6_cjs.useTransientView; }
18414
18409
  });
18415
18410
  Object.defineProperty(exports, "useUserUsageToday", {
18416
18411
  enumerable: true,
18417
- get: function () { return chunk7L7QRIQ2_cjs.useUserUsageToday; }
18412
+ get: function () { return chunkH3XHBIZ6_cjs.useUserUsageToday; }
18418
18413
  });
18419
18414
  Object.defineProperty(exports, "useWorkspaceActivity", {
18420
18415
  enumerable: true,
18421
- get: function () { return chunk7L7QRIQ2_cjs.useWorkspaceActivity; }
18416
+ get: function () { return chunkH3XHBIZ6_cjs.useWorkspaceActivity; }
18422
18417
  });
18423
18418
  Object.defineProperty(exports, "useWorkspaces", {
18424
18419
  enumerable: true,
18425
- get: function () { return chunk7L7QRIQ2_cjs.useWorkspaces; }
18420
+ get: function () { return chunkH3XHBIZ6_cjs.useWorkspaces; }
18426
18421
  });
18427
18422
  Object.defineProperty(exports, "arbiMutationKeys", {
18428
18423
  enumerable: true,
@@ -18466,143 +18461,143 @@ Object.defineProperty(exports, "useDeploymentDomain", {
18466
18461
  });
18467
18462
  Object.defineProperty(exports, "DEFAULT_ASSISTANT_NAME", {
18468
18463
  enumerable: true,
18469
- get: function () { return chunkWUYSVTKE_cjs.DEFAULT_ASSISTANT_NAME; }
18464
+ get: function () { return chunk6RRKO4ZK_cjs.DEFAULT_ASSISTANT_NAME; }
18470
18465
  });
18471
18466
  Object.defineProperty(exports, "LEGACY_THREAD_DOCUMENTS_KEY", {
18472
18467
  enumerable: true,
18473
- get: function () { return chunkWUYSVTKE_cjs.LEGACY_THREAD_DOCUMENTS_KEY; }
18468
+ get: function () { return chunk6RRKO4ZK_cjs.LEGACY_THREAD_DOCUMENTS_KEY; }
18474
18469
  });
18475
18470
  Object.defineProperty(exports, "MENTION_HREF_PREFIX", {
18476
18471
  enumerable: true,
18477
- get: function () { return chunkWUYSVTKE_cjs.MENTION_HREF_PREFIX; }
18472
+ get: function () { return chunk6RRKO4ZK_cjs.MENTION_HREF_PREFIX; }
18478
18473
  });
18479
18474
  Object.defineProperty(exports, "NotificationBell", {
18480
18475
  enumerable: true,
18481
- get: function () { return chunkWUYSVTKE_cjs.NotificationBell; }
18476
+ get: function () { return chunk6RRKO4ZK_cjs.NotificationBell; }
18482
18477
  });
18483
18478
  Object.defineProperty(exports, "Toaster", {
18484
18479
  enumerable: true,
18485
- get: function () { return chunkWUYSVTKE_cjs.Toaster; }
18480
+ get: function () { return chunk6RRKO4ZK_cjs.Toaster; }
18486
18481
  });
18487
18482
  Object.defineProperty(exports, "UNBOUND", {
18488
18483
  enumerable: true,
18489
- get: function () { return chunkWUYSVTKE_cjs.UNBOUND; }
18484
+ get: function () { return chunk6RRKO4ZK_cjs.UNBOUND; }
18490
18485
  });
18491
18486
  Object.defineProperty(exports, "assistantCopy", {
18492
18487
  enumerable: true,
18493
- get: function () { return chunkWUYSVTKE_cjs.assistantCopy; }
18488
+ get: function () { return chunk6RRKO4ZK_cjs.assistantCopy; }
18494
18489
  });
18495
18490
  Object.defineProperty(exports, "bindingOfRow", {
18496
18491
  enumerable: true,
18497
- get: function () { return chunkWUYSVTKE_cjs.bindingOfRow; }
18492
+ get: function () { return chunk6RRKO4ZK_cjs.bindingOfRow; }
18498
18493
  });
18499
18494
  Object.defineProperty(exports, "clearSearchSession", {
18500
18495
  enumerable: true,
18501
- get: function () { return chunkWUYSVTKE_cjs.clearSearchSession; }
18496
+ get: function () { return chunk6RRKO4ZK_cjs.clearSearchSession; }
18502
18497
  });
18503
18498
  Object.defineProperty(exports, "createSearchSession", {
18504
18499
  enumerable: true,
18505
- get: function () { return chunkWUYSVTKE_cjs.createSearchSession; }
18500
+ get: function () { return chunk6RRKO4ZK_cjs.createSearchSession; }
18506
18501
  });
18507
18502
  Object.defineProperty(exports, "extractMentions", {
18508
18503
  enumerable: true,
18509
- get: function () { return chunkWUYSVTKE_cjs.extractMentions; }
18504
+ get: function () { return chunk6RRKO4ZK_cjs.extractMentions; }
18510
18505
  });
18511
18506
  Object.defineProperty(exports, "filterMentionCandidates", {
18512
18507
  enumerable: true,
18513
- get: function () { return chunkWUYSVTKE_cjs.filterMentionCandidates; }
18508
+ get: function () { return chunk6RRKO4ZK_cjs.filterMentionCandidates; }
18514
18509
  });
18515
18510
  Object.defineProperty(exports, "findMentionQuery", {
18516
18511
  enumerable: true,
18517
- get: function () { return chunkWUYSVTKE_cjs.findMentionQuery; }
18512
+ get: function () { return chunk6RRKO4ZK_cjs.findMentionQuery; }
18518
18513
  });
18519
18514
  Object.defineProperty(exports, "forgetLegacyThreadDocuments", {
18520
18515
  enumerable: true,
18521
- get: function () { return chunkWUYSVTKE_cjs.forgetLegacyThreadDocuments; }
18516
+ get: function () { return chunk6RRKO4ZK_cjs.forgetLegacyThreadDocuments; }
18522
18517
  });
18523
18518
  Object.defineProperty(exports, "hasMessageBody", {
18524
18519
  enumerable: true,
18525
- get: function () { return chunkWUYSVTKE_cjs.hasMessageBody; }
18520
+ get: function () { return chunk6RRKO4ZK_cjs.hasMessageBody; }
18526
18521
  });
18527
18522
  Object.defineProperty(exports, "insertMention", {
18528
18523
  enumerable: true,
18529
- get: function () { return chunkWUYSVTKE_cjs.insertMention; }
18524
+ get: function () { return chunk6RRKO4ZK_cjs.insertMention; }
18530
18525
  });
18531
18526
  Object.defineProperty(exports, "isSlideDeck", {
18532
18527
  enumerable: true,
18533
- get: function () { return chunkWUYSVTKE_cjs.isSlideDeck; }
18528
+ get: function () { return chunk6RRKO4ZK_cjs.isSlideDeck; }
18534
18529
  });
18535
18530
  Object.defineProperty(exports, "latestThreadOfDocument", {
18536
18531
  enumerable: true,
18537
- get: function () { return chunkWUYSVTKE_cjs.latestThreadOfDocument; }
18532
+ get: function () { return chunk6RRKO4ZK_cjs.latestThreadOfDocument; }
18538
18533
  });
18539
18534
  Object.defineProperty(exports, "linkMentions", {
18540
18535
  enumerable: true,
18541
- get: function () { return chunkWUYSVTKE_cjs.linkMentions; }
18536
+ get: function () { return chunk6RRKO4ZK_cjs.linkMentions; }
18542
18537
  });
18543
18538
  Object.defineProperty(exports, "mentionFromHref", {
18544
18539
  enumerable: true,
18545
- get: function () { return chunkWUYSVTKE_cjs.mentionFromHref; }
18540
+ get: function () { return chunk6RRKO4ZK_cjs.mentionFromHref; }
18546
18541
  });
18547
18542
  Object.defineProperty(exports, "openDocumentId", {
18548
18543
  enumerable: true,
18549
- get: function () { return chunkWUYSVTKE_cjs.openDocumentId; }
18544
+ get: function () { return chunk6RRKO4ZK_cjs.openDocumentId; }
18550
18545
  });
18551
18546
  Object.defineProperty(exports, "opensInWord", {
18552
18547
  enumerable: true,
18553
- get: function () { return chunkWUYSVTKE_cjs.opensInWord; }
18548
+ get: function () { return chunk6RRKO4ZK_cjs.opensInWord; }
18554
18549
  });
18555
18550
  Object.defineProperty(exports, "persistSearchSession", {
18556
18551
  enumerable: true,
18557
- get: function () { return chunkWUYSVTKE_cjs.persistSearchSession; }
18552
+ get: function () { return chunk6RRKO4ZK_cjs.persistSearchSession; }
18558
18553
  });
18559
18554
  Object.defineProperty(exports, "readLegacyThreadDocuments", {
18560
18555
  enumerable: true,
18561
- get: function () { return chunkWUYSVTKE_cjs.readLegacyThreadDocuments; }
18556
+ get: function () { return chunk6RRKO4ZK_cjs.readLegacyThreadDocuments; }
18562
18557
  });
18563
18558
  Object.defineProperty(exports, "requestSearch", {
18564
18559
  enumerable: true,
18565
- get: function () { return chunkWUYSVTKE_cjs.requestSearch; }
18560
+ get: function () { return chunk6RRKO4ZK_cjs.requestSearch; }
18566
18561
  });
18567
18562
  Object.defineProperty(exports, "savedDocumentIdFor", {
18568
18563
  enumerable: true,
18569
- get: function () { return chunkWUYSVTKE_cjs.savedDocumentIdFor; }
18564
+ get: function () { return chunk6RRKO4ZK_cjs.savedDocumentIdFor; }
18570
18565
  });
18571
18566
  Object.defineProperty(exports, "sharedSearchSession", {
18572
18567
  enumerable: true,
18573
- get: function () { return chunkWUYSVTKE_cjs.sharedSearchSession; }
18568
+ get: function () { return chunk6RRKO4ZK_cjs.sharedSearchSession; }
18574
18569
  });
18575
18570
  Object.defineProperty(exports, "takeDocumentForTurn", {
18576
18571
  enumerable: true,
18577
- get: function () { return chunkWUYSVTKE_cjs.takeDocumentForTurn; }
18572
+ get: function () { return chunk6RRKO4ZK_cjs.takeDocumentForTurn; }
18578
18573
  });
18579
18574
  Object.defineProperty(exports, "takePendingSearch", {
18580
18575
  enumerable: true,
18581
- get: function () { return chunkWUYSVTKE_cjs.takePendingSearch; }
18576
+ get: function () { return chunk6RRKO4ZK_cjs.takePendingSearch; }
18582
18577
  });
18583
18578
  Object.defineProperty(exports, "toMessageMentions", {
18584
18579
  enumerable: true,
18585
- get: function () { return chunkWUYSVTKE_cjs.toMessageMentions; }
18580
+ get: function () { return chunk6RRKO4ZK_cjs.toMessageMentions; }
18586
18581
  });
18587
18582
  Object.defineProperty(exports, "useAssistantCopy", {
18588
18583
  enumerable: true,
18589
- get: function () { return chunkWUYSVTKE_cjs.useAssistantCopy; }
18584
+ get: function () { return chunk6RRKO4ZK_cjs.useAssistantCopy; }
18590
18585
  });
18591
18586
  Object.defineProperty(exports, "useAssistantName", {
18592
18587
  enumerable: true,
18593
- get: function () { return chunkWUYSVTKE_cjs.useAssistantName; }
18588
+ get: function () { return chunk6RRKO4ZK_cjs.useAssistantName; }
18594
18589
  });
18595
18590
  Object.defineProperty(exports, "useOpenDocumentId", {
18596
18591
  enumerable: true,
18597
- get: function () { return chunkWUYSVTKE_cjs.useOpenDocumentId; }
18592
+ get: function () { return chunk6RRKO4ZK_cjs.useOpenDocumentId; }
18598
18593
  });
18599
18594
  Object.defineProperty(exports, "useRegisterOpenDocument", {
18600
18595
  enumerable: true,
18601
- get: function () { return chunkWUYSVTKE_cjs.useRegisterOpenDocument; }
18596
+ get: function () { return chunk6RRKO4ZK_cjs.useRegisterOpenDocument; }
18602
18597
  });
18603
18598
  Object.defineProperty(exports, "useTurnDocumentId", {
18604
18599
  enumerable: true,
18605
- get: function () { return chunkWUYSVTKE_cjs.useTurnDocumentId; }
18600
+ get: function () { return chunk6RRKO4ZK_cjs.useTurnDocumentId; }
18606
18601
  });
18607
18602
  Object.defineProperty(exports, "DEFAULT_NOTIFY_TONE", {
18608
18603
  enumerable: true,
@@ -18670,35 +18665,35 @@ Object.defineProperty(exports, "mergeHostConfig", {
18670
18665
  });
18671
18666
  Object.defineProperty(exports, "cleanDraftMarkdown", {
18672
18667
  enumerable: true,
18673
- get: function () { return chunkNDIKMOBJ_cjs.cleanDraftMarkdown; }
18668
+ get: function () { return chunkKULS4YWP_cjs.cleanDraftMarkdown; }
18674
18669
  });
18675
18670
  Object.defineProperty(exports, "cleanDraftWithReport", {
18676
18671
  enumerable: true,
18677
- get: function () { return chunkNDIKMOBJ_cjs.cleanDraftWithReport; }
18672
+ get: function () { return chunkKULS4YWP_cjs.cleanDraftWithReport; }
18678
18673
  });
18679
18674
  Object.defineProperty(exports, "promoteBoldTitle", {
18680
18675
  enumerable: true,
18681
- get: function () { return chunkNDIKMOBJ_cjs.promoteBoldTitle; }
18676
+ get: function () { return chunkKULS4YWP_cjs.promoteBoldTitle; }
18682
18677
  });
18683
18678
  Object.defineProperty(exports, "repairParsedStructure", {
18684
18679
  enumerable: true,
18685
- get: function () { return chunkNDIKMOBJ_cjs.repairParsedStructure; }
18680
+ get: function () { return chunkKULS4YWP_cjs.repairParsedStructure; }
18686
18681
  });
18687
18682
  Object.defineProperty(exports, "repairParsedTitle", {
18688
18683
  enumerable: true,
18689
- get: function () { return chunkNDIKMOBJ_cjs.repairParsedTitle; }
18684
+ get: function () { return chunkKULS4YWP_cjs.repairParsedTitle; }
18690
18685
  });
18691
18686
  Object.defineProperty(exports, "stripAgentPreamble", {
18692
18687
  enumerable: true,
18693
- get: function () { return chunkNDIKMOBJ_cjs.stripAgentPreamble; }
18688
+ get: function () { return chunkKULS4YWP_cjs.stripAgentPreamble; }
18694
18689
  });
18695
18690
  Object.defineProperty(exports, "unescapeMarkdown", {
18696
18691
  enumerable: true,
18697
- get: function () { return chunkNDIKMOBJ_cjs.unescapeMarkdown; }
18692
+ get: function () { return chunkKULS4YWP_cjs.unescapeMarkdown; }
18698
18693
  });
18699
18694
  Object.defineProperty(exports, "unwrapCitationLinks", {
18700
18695
  enumerable: true,
18701
- get: function () { return chunkNDIKMOBJ_cjs.unwrapCitationLinks; }
18696
+ get: function () { return chunkKULS4YWP_cjs.unwrapCitationLinks; }
18702
18697
  });
18703
18698
  Object.defineProperty(exports, "ARBI_MARK_SRC", {
18704
18699
  enumerable: true,
@@ -19921,7 +19916,6 @@ exports.fileAttachment = fileAttachment;
19921
19916
  exports.filesFromDrop = filesFromDrop;
19922
19917
  exports.fillTimeGaps = fillTimeGaps;
19923
19918
  exports.filterRows = filterRows;
19924
- exports.flushDocumentForTurn = flushDocumentForTurn;
19925
19919
  exports.flushStreamingTokens = flushStreamingTokens;
19926
19920
  exports.forgetUploadedDocumentFolder = forgetUploadedDocumentFolder;
19927
19921
  exports.formatConfigValidationError = formatConfigValidationError;
@@ -19997,7 +19991,6 @@ exports.redlineStats = redlineStats;
19997
19991
  exports.refuseChatWhenOffline = refuseChatWhenOffline;
19998
19992
  exports.registerArbiMutationDefaults = registerArbiMutationDefaults;
19999
19993
  exports.registerAttachedRun = registerAttachedRun;
20000
- exports.registerDocumentTurnFlush = registerDocumentTurnFlush;
20001
19994
  exports.remoteControlActions = remoteControlActions;
20002
19995
  exports.remoteControlStateOf = remoteControlStateOf;
20003
19996
  exports.removeSettledNarration = removeSettledNarration;