@arbidocs/react 0.5.52 → 0.5.53
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/artifacts/index.cjs +3 -3
- package/dist/artifacts/index.js +1 -1
- package/dist/{chunk-MJWUUDYT.js → chunk-G3GPVSTA.js} +2 -2
- package/dist/{chunk-MJWUUDYT.js.map → chunk-G3GPVSTA.js.map} +1 -1
- package/dist/{chunk-GAW2PLSL.cjs → chunk-ODGIOGH5.cjs} +2 -2
- package/dist/{chunk-GAW2PLSL.cjs.map → chunk-ODGIOGH5.cjs.map} +1 -1
- package/dist/index.cjs +110 -110
- package/dist/index.d.cts +16 -4
- package/dist/index.d.ts +16 -4
- package/dist/index.js +2 -2
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunkW7DQJT4T_cjs = require('./chunk-W7DQJT4T.cjs');
|
|
4
|
-
var
|
|
4
|
+
var chunkODGIOGH5_cjs = require('./chunk-ODGIOGH5.cjs');
|
|
5
5
|
var chunkME4TS33T_cjs = require('./chunk-ME4TS33T.cjs');
|
|
6
6
|
var chunkONGNP4JM_cjs = require('./chunk-ONGNP4JM.cjs');
|
|
7
7
|
var chunkRRWAX52L_cjs = require('./chunk-RRWAX52L.cjs');
|
|
@@ -1663,11 +1663,11 @@ var SNAPSHOT_MS = 500;
|
|
|
1663
1663
|
function applyTaskEvent(queryClient, arbi, message, me) {
|
|
1664
1664
|
const workspaceId = message.workspace_ext_id;
|
|
1665
1665
|
if (!workspaceId) return;
|
|
1666
|
-
if (
|
|
1667
|
-
void
|
|
1666
|
+
if (chunkODGIOGH5_cjs.FINISHED_DOCUMENT_STATUSES.has(message.status)) {
|
|
1667
|
+
void chunkODGIOGH5_cjs.refreshDocuments(queryClient, arbi, [message.doc_ext_id]);
|
|
1668
1668
|
return;
|
|
1669
1669
|
}
|
|
1670
|
-
const cached =
|
|
1670
|
+
const cached = chunkODGIOGH5_cjs.getCachedDocuments(queryClient, workspaceId);
|
|
1671
1671
|
if (!cached || cached.some((d) => d.external_id === message.doc_ext_id)) return;
|
|
1672
1672
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1673
1673
|
const placeholder = {
|
|
@@ -1684,7 +1684,7 @@ function applyTaskEvent(queryClient, arbi, message, me) {
|
|
|
1684
1684
|
created_at: now,
|
|
1685
1685
|
updated_at: now
|
|
1686
1686
|
};
|
|
1687
|
-
|
|
1687
|
+
chunkODGIOGH5_cjs.patchDocuments(
|
|
1688
1688
|
queryClient,
|
|
1689
1689
|
(old) => old.some((d) => d.external_id === message.doc_ext_id) ? old : [...old, placeholder],
|
|
1690
1690
|
workspaceId
|
|
@@ -1693,14 +1693,14 @@ function applyTaskEvent(queryClient, arbi, message, me) {
|
|
|
1693
1693
|
function useWorkspaceProcessing(workspaceId) {
|
|
1694
1694
|
const queryClient = reactQuery.useQueryClient();
|
|
1695
1695
|
const arbi = chunkYIUUTRMQ_cjs.useArbi();
|
|
1696
|
-
const [snapshot, setSnapshot] = React.useState(() =>
|
|
1696
|
+
const [snapshot, setSnapshot] = React.useState(() => chunkODGIOGH5_cjs.useArbiWsStore.getState().tasks);
|
|
1697
1697
|
React.useEffect(() => {
|
|
1698
1698
|
let timer = null;
|
|
1699
|
-
const unsubscribe =
|
|
1699
|
+
const unsubscribe = chunkODGIOGH5_cjs.useArbiWsStore.subscribe((state, previous) => {
|
|
1700
1700
|
if (state.tasks === previous.tasks || timer) return;
|
|
1701
1701
|
timer = setTimeout(() => {
|
|
1702
1702
|
timer = null;
|
|
1703
|
-
setSnapshot(
|
|
1703
|
+
setSnapshot(chunkODGIOGH5_cjs.useArbiWsStore.getState().tasks);
|
|
1704
1704
|
}, SNAPSHOT_MS);
|
|
1705
1705
|
});
|
|
1706
1706
|
return () => {
|
|
@@ -1710,13 +1710,13 @@ function useWorkspaceProcessing(workspaceId) {
|
|
|
1710
1710
|
}, []);
|
|
1711
1711
|
React.useEffect(() => {
|
|
1712
1712
|
if (!workspaceId) return;
|
|
1713
|
-
const store =
|
|
1714
|
-
const documents2 =
|
|
1713
|
+
const store = chunkODGIOGH5_cjs.useArbiWsStore.getState();
|
|
1714
|
+
const documents2 = chunkODGIOGH5_cjs.getCachedDocuments(queryClient, workspaceId) ?? [];
|
|
1715
1715
|
store.settleTasks(documents2);
|
|
1716
1716
|
const listed = new Set(documents2.map((d) => d.external_id));
|
|
1717
1717
|
const now = Date.now();
|
|
1718
|
-
for (const task of Object.values(
|
|
1719
|
-
if (task.workspace_ext_id !== workspaceId || !
|
|
1718
|
+
for (const task of Object.values(chunkODGIOGH5_cjs.useArbiWsStore.getState().tasks)) {
|
|
1719
|
+
if (task.workspace_ext_id !== workspaceId || !chunkODGIOGH5_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(task.status))
|
|
1720
1720
|
continue;
|
|
1721
1721
|
const since = task.startTime ?? task.endTime;
|
|
1722
1722
|
const age = since == null ? null : now - since;
|
|
@@ -1729,16 +1729,16 @@ function useWorkspaceProcessing(workspaceId) {
|
|
|
1729
1729
|
if (!workspaceId) return;
|
|
1730
1730
|
const unsubscribeReads = subscribeDocumentReads(
|
|
1731
1731
|
queryClient,
|
|
1732
|
-
(rows) =>
|
|
1732
|
+
(rows) => chunkODGIOGH5_cjs.useArbiWsStore.getState().settleTasks(rows)
|
|
1733
1733
|
);
|
|
1734
1734
|
const recheck = async () => {
|
|
1735
|
-
const ids = Object.values(
|
|
1736
|
-
(t) => t.workspace_ext_id === workspaceId &&
|
|
1735
|
+
const ids = Object.values(chunkODGIOGH5_cjs.useArbiWsStore.getState().tasks).filter(
|
|
1736
|
+
(t) => t.workspace_ext_id === workspaceId && chunkODGIOGH5_cjs.IN_FLIGHT_DOCUMENT_STATUSES.has(t.status)
|
|
1737
1737
|
).map((t) => t.doc_ext_id);
|
|
1738
|
-
if (ids.length) await
|
|
1738
|
+
if (ids.length) await chunkODGIOGH5_cjs.refreshDocuments(queryClient, arbi, ids);
|
|
1739
1739
|
};
|
|
1740
|
-
let wasConnected =
|
|
1741
|
-
const unsubscribeStatus =
|
|
1740
|
+
let wasConnected = chunkODGIOGH5_cjs.useArbiWsStore.getState().status === "connected";
|
|
1741
|
+
const unsubscribeStatus = chunkODGIOGH5_cjs.useArbiWsStore.subscribe((state) => {
|
|
1742
1742
|
const connected = state.status === "connected";
|
|
1743
1743
|
if (connected && !wasConnected) void recheck();
|
|
1744
1744
|
wasConnected = connected;
|
|
@@ -1753,11 +1753,11 @@ function useWorkspaceProcessing(workspaceId) {
|
|
|
1753
1753
|
const count = (statuses) => allTasks.filter(
|
|
1754
1754
|
(t) => Array.isArray(statuses) ? statuses.includes(t.status) : statuses.has(t.status)
|
|
1755
1755
|
).length;
|
|
1756
|
-
const { clearTask, clearFinishedTasks } =
|
|
1756
|
+
const { clearTask, clearFinishedTasks } = chunkODGIOGH5_cjs.useArbiWsStore.getState();
|
|
1757
1757
|
return {
|
|
1758
1758
|
tasks: Object.fromEntries(allTasks.map((t) => [t.doc_ext_id, t])),
|
|
1759
1759
|
allTasks,
|
|
1760
|
-
processingCount: count(
|
|
1760
|
+
processingCount: count(chunkODGIOGH5_cjs.IN_FLIGHT_DOCUMENT_STATUSES),
|
|
1761
1761
|
completedCount: count(["completed", "low-content"]),
|
|
1762
1762
|
failedCount: count(["failed"]),
|
|
1763
1763
|
skippedCount: count(["skipped"]),
|
|
@@ -1769,7 +1769,7 @@ function useWorkspaceProcessing(workspaceId) {
|
|
|
1769
1769
|
function applyOptimisticDocumentEdit(qc, updates) {
|
|
1770
1770
|
const byId = new Map(updates.map((update) => [update.external_id, update]));
|
|
1771
1771
|
const previous = [];
|
|
1772
|
-
|
|
1772
|
+
chunkODGIOGH5_cjs.patchDocuments(qc, (old) => {
|
|
1773
1773
|
let changed = false;
|
|
1774
1774
|
const next = old.map((doc) => {
|
|
1775
1775
|
const update = byId.get(doc.external_id);
|
|
@@ -1784,7 +1784,7 @@ function applyOptimisticDocumentEdit(qc, updates) {
|
|
|
1784
1784
|
const own = qc.getQueryData(
|
|
1785
1785
|
chunkRRWAX52L_cjs.arbiQueryKeys.document(update.external_id)
|
|
1786
1786
|
);
|
|
1787
|
-
if (own)
|
|
1787
|
+
if (own) chunkODGIOGH5_cjs.setCachedDocument(qc, { ...own, ...update });
|
|
1788
1788
|
return [update.external_id, own];
|
|
1789
1789
|
});
|
|
1790
1790
|
return { optimistic: true, previous, previousOwn };
|
|
@@ -1794,7 +1794,7 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1794
1794
|
if (!edit?.optimistic) return;
|
|
1795
1795
|
if (edit.previous.length) {
|
|
1796
1796
|
const restore = new Map(edit.previous.map((doc) => [doc.external_id, doc]));
|
|
1797
|
-
|
|
1797
|
+
chunkODGIOGH5_cjs.patchDocuments(
|
|
1798
1798
|
qc,
|
|
1799
1799
|
(old) => old.some((doc) => restore.has(doc.external_id)) ? old.map((doc) => restore.get(doc.external_id) ?? doc) : old
|
|
1800
1800
|
);
|
|
@@ -1804,19 +1804,19 @@ function rollbackOptimisticDocumentEdit(qc, context) {
|
|
|
1804
1804
|
function settleUpdatedDocuments(qc, updated) {
|
|
1805
1805
|
if (!updated.length) return;
|
|
1806
1806
|
const byId = new Map(updated.map((doc) => [doc.external_id, doc]));
|
|
1807
|
-
|
|
1807
|
+
chunkODGIOGH5_cjs.patchDocuments(
|
|
1808
1808
|
qc,
|
|
1809
1809
|
(old) => old.some((doc) => byId.has(doc.external_id)) ? old.map((doc) => byId.get(doc.external_id) ?? doc) : old
|
|
1810
1810
|
);
|
|
1811
|
-
for (const doc of updated)
|
|
1811
|
+
for (const doc of updated) chunkODGIOGH5_cjs.setCachedDocument(qc, doc);
|
|
1812
1812
|
}
|
|
1813
1813
|
function patchEachDocument(qc, docIds, reducer) {
|
|
1814
1814
|
const ids = new Set(docIds);
|
|
1815
|
-
|
|
1815
|
+
chunkODGIOGH5_cjs.patchDocuments(
|
|
1816
1816
|
qc,
|
|
1817
1817
|
(old) => old.some((doc) => ids.has(doc.external_id)) ? old.map((doc) => ids.has(doc.external_id) ? reducer(doc) : doc) : old
|
|
1818
1818
|
);
|
|
1819
|
-
for (const id of ids)
|
|
1819
|
+
for (const id of ids) chunkODGIOGH5_cjs.patchCachedDocument(qc, id, reducer);
|
|
1820
1820
|
}
|
|
1821
1821
|
function workspaceOf(qc, docId) {
|
|
1822
1822
|
for (const [, docs] of qc.getQueriesData({
|
|
@@ -1843,7 +1843,7 @@ function settleAssignedDocTags(qc, created) {
|
|
|
1843
1843
|
...doc,
|
|
1844
1844
|
doctags: [...doc.doctags ?? [], ...byDoc.get(doc.external_id) ?? []]
|
|
1845
1845
|
}));
|
|
1846
|
-
for (const [workspaceId, delta] of workspaces)
|
|
1846
|
+
for (const [workspaceId, delta] of workspaces) chunkODGIOGH5_cjs.adjustTagCounts(qc, workspaceId, delta);
|
|
1847
1847
|
}
|
|
1848
1848
|
function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
1849
1849
|
const ids = new Set(docIds);
|
|
@@ -1865,7 +1865,7 @@ function settleRemovedDocTags(qc, { tagId, docIds }) {
|
|
|
1865
1865
|
doctags: (doc.doctags ?? []).filter((dt) => dt.tag_ext_id !== tagId)
|
|
1866
1866
|
}));
|
|
1867
1867
|
for (const [workspaceId, removed] of removedByWorkspace)
|
|
1868
|
-
|
|
1868
|
+
chunkODGIOGH5_cjs.adjustTagCounts(qc, workspaceId, /* @__PURE__ */ new Map([[tagId, -removed]]));
|
|
1869
1869
|
}
|
|
1870
1870
|
function settleUpdatedDocTag(qc, updated) {
|
|
1871
1871
|
patchEachDocument(qc, [updated.doc_ext_id], (doc) => ({
|
|
@@ -1912,7 +1912,7 @@ function useMarkDocumentShared() {
|
|
|
1912
1912
|
const qc = reactQuery.useQueryClient();
|
|
1913
1913
|
return React.useCallback(
|
|
1914
1914
|
(documentExtId) => {
|
|
1915
|
-
|
|
1915
|
+
chunkODGIOGH5_cjs.patchDocuments(
|
|
1916
1916
|
qc,
|
|
1917
1917
|
(old) => old.map((doc) => doc.external_id === documentExtId ? { ...doc, shared: true } : doc)
|
|
1918
1918
|
);
|
|
@@ -1954,7 +1954,7 @@ function useRenameFolder() {
|
|
|
1954
1954
|
return folder === void 0 ? [] : [{ external_id: doc.external_id, folder }];
|
|
1955
1955
|
});
|
|
1956
1956
|
if (updates.length > 0) await mutateAsync({ documents: updates });
|
|
1957
|
-
|
|
1957
|
+
chunkODGIOGH5_cjs.patchDocuments(qc, (rows) => {
|
|
1958
1958
|
let changed = false;
|
|
1959
1959
|
const next = rows.map((doc) => {
|
|
1960
1960
|
const folder = moved(doc.folder);
|
|
@@ -1977,19 +1977,19 @@ function useDeleteDocuments() {
|
|
|
1977
1977
|
mutationFn: (docIds) => arbi.documents.delete(docIds),
|
|
1978
1978
|
onSuccess: (_data, docIds) => {
|
|
1979
1979
|
const gone = new Set(docIds);
|
|
1980
|
-
|
|
1980
|
+
chunkODGIOGH5_cjs.patchDocuments(
|
|
1981
1981
|
qc,
|
|
1982
1982
|
(old) => old.some((doc) => gone.has(doc.external_id)) ? old.filter((doc) => !gone.has(doc.external_id)) : old
|
|
1983
1983
|
);
|
|
1984
|
-
|
|
1985
|
-
const { clearTask } =
|
|
1984
|
+
chunkODGIOGH5_cjs.forgetDocuments(qc, docIds);
|
|
1985
|
+
const { clearTask } = chunkODGIOGH5_cjs.useArbiWsStore.getState();
|
|
1986
1986
|
for (const id of docIds) clearTask(id);
|
|
1987
1987
|
return qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
1988
1988
|
}
|
|
1989
1989
|
});
|
|
1990
1990
|
}
|
|
1991
1991
|
async function settleUpload(qc, arbi, docIds) {
|
|
1992
|
-
if (docIds?.length) await
|
|
1992
|
+
if (docIds?.length) await chunkODGIOGH5_cjs.refreshDocuments(qc, arbi, docIds);
|
|
1993
1993
|
await qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
1994
1994
|
}
|
|
1995
1995
|
function useUploadDocuments() {
|
|
@@ -2044,7 +2044,7 @@ function useUpdateDocTag() {
|
|
|
2044
2044
|
);
|
|
2045
2045
|
}
|
|
2046
2046
|
function queueProcessing(documents2) {
|
|
2047
|
-
const store =
|
|
2047
|
+
const store = chunkODGIOGH5_cjs.useArbiWsStore.getState();
|
|
2048
2048
|
const previous = documents2.map(({ docId }) => [docId, store.tasks[docId]]);
|
|
2049
2049
|
const now = Date.now();
|
|
2050
2050
|
for (const doc of documents2)
|
|
@@ -2057,7 +2057,7 @@ function queueProcessing(documents2) {
|
|
|
2057
2057
|
progress: 0,
|
|
2058
2058
|
startTime: now
|
|
2059
2059
|
});
|
|
2060
|
-
return () =>
|
|
2060
|
+
return () => chunkODGIOGH5_cjs.useArbiWsStore.setState((state) => {
|
|
2061
2061
|
const tasks = { ...state.tasks };
|
|
2062
2062
|
for (const [docId, task] of previous) {
|
|
2063
2063
|
if (task) tasks[docId] = task;
|
|
@@ -2076,7 +2076,7 @@ function useGenerateDocTags() {
|
|
|
2076
2076
|
if (!docIds.length) return void 0;
|
|
2077
2077
|
const workspaceId = arbi.hasWorkspace ? arbi.getWorkspaceId() : "";
|
|
2078
2078
|
const listed = new Map(
|
|
2079
|
-
(
|
|
2079
|
+
(chunkODGIOGH5_cjs.getCachedDocuments(qc, workspaceId) ?? []).map((doc) => [doc.external_id, doc])
|
|
2080
2080
|
);
|
|
2081
2081
|
return {
|
|
2082
2082
|
undo: queueProcessing(
|
|
@@ -2097,7 +2097,7 @@ function useFinaliseTranslation() {
|
|
|
2097
2097
|
const qc = reactQuery.useQueryClient();
|
|
2098
2098
|
return reactQuery.useMutation({
|
|
2099
2099
|
mutationFn: (docId) => arbi.documents.finaliseTranslation(docId),
|
|
2100
|
-
onSuccess: (result) => void
|
|
2100
|
+
onSuccess: (result) => void chunkODGIOGH5_cjs.refreshDocuments(qc, arbi, [result.document_ext_id])
|
|
2101
2101
|
});
|
|
2102
2102
|
}
|
|
2103
2103
|
|
|
@@ -2107,10 +2107,10 @@ function useDocumentsSupport() {
|
|
|
2107
2107
|
return chunkYIUUTRMQ_cjs.useArbiHost().documents ?? NO_SUPPORT;
|
|
2108
2108
|
}
|
|
2109
2109
|
function useProcessingTasks() {
|
|
2110
|
-
return
|
|
2110
|
+
return chunkODGIOGH5_cjs.useArbiWsStore((state) => state.tasks);
|
|
2111
2111
|
}
|
|
2112
2112
|
function useProcessingTask(docId) {
|
|
2113
|
-
return
|
|
2113
|
+
return chunkODGIOGH5_cjs.useArbiWsStore((state) => state.tasks[docId]);
|
|
2114
2114
|
}
|
|
2115
2115
|
var NO_ACTIONS = {};
|
|
2116
2116
|
function useDocumentHostActions() {
|
|
@@ -2304,7 +2304,7 @@ function useDocumentThumbnails(visibleIds) {
|
|
|
2304
2304
|
for (const id of visibleIds)
|
|
2305
2305
|
if (IN_PROGRESS.has(tasks[id]?.status ?? "")) resolvedRef.current.delete(id);
|
|
2306
2306
|
const ready = visibleIds.filter(
|
|
2307
|
-
(id) => !resolvedRef.current.has(id) &&
|
|
2307
|
+
(id) => !resolvedRef.current.has(id) && chunkODGIOGH5_cjs.FINISHED_DOCUMENT_STATUSES.has(tasks[id]?.status ?? "")
|
|
2308
2308
|
);
|
|
2309
2309
|
if (ready.length > 0) void fetchMissing(ready);
|
|
2310
2310
|
}, [tasks, idsKey, fetchMissing]);
|
|
@@ -3369,7 +3369,7 @@ function useUploadFiles() {
|
|
|
3369
3369
|
if (docIds2.length > 0) {
|
|
3370
3370
|
for (const docId of docIds2) uploadedFolders.set(docId, { workspaceId, folder });
|
|
3371
3371
|
const made = new Set(docIds2);
|
|
3372
|
-
|
|
3372
|
+
chunkODGIOGH5_cjs.patchDocuments(
|
|
3373
3373
|
qc,
|
|
3374
3374
|
(rows) => rows.map((doc) => made.has(doc.external_id) ? { ...doc, folder } : doc),
|
|
3375
3375
|
workspaceId
|
|
@@ -3385,7 +3385,7 @@ function useUploadFiles() {
|
|
|
3385
3385
|
const docIds = results.flatMap((result) => result.doc_ext_ids ?? []);
|
|
3386
3386
|
const skipped = results.flatMap((result) => result.skipped ?? []);
|
|
3387
3387
|
if (docIds.length > 0) {
|
|
3388
|
-
const read = await
|
|
3388
|
+
const read = await chunkODGIOGH5_cjs.refreshDocuments(qc, arbi, docIds);
|
|
3389
3389
|
for (const doc of read) forgetUploadedDocumentFolder(doc.external_id);
|
|
3390
3390
|
}
|
|
3391
3391
|
await qc.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.workspaces() });
|
|
@@ -3472,7 +3472,7 @@ function getRelatedLabels(related) {
|
|
|
3472
3472
|
return parts;
|
|
3473
3473
|
}
|
|
3474
3474
|
function useRelatedDocuments(documents2) {
|
|
3475
|
-
const { data: similarData } =
|
|
3475
|
+
const { data: similarData } = chunkODGIOGH5_cjs.useSimilarDocuments();
|
|
3476
3476
|
const structuralKey = React.useMemo(() => {
|
|
3477
3477
|
const parts = [];
|
|
3478
3478
|
for (const doc of documents2) {
|
|
@@ -3552,7 +3552,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3552
3552
|
}
|
|
3553
3553
|
if (similarData?.pairs) {
|
|
3554
3554
|
for (const pair of similarData.pairs) {
|
|
3555
|
-
if (pair.similarity <
|
|
3555
|
+
if (pair.similarity < chunkODGIOGH5_cjs.SIMILARITY_THRESHOLD || pair.similarity >= 1) continue;
|
|
3556
3556
|
const docA = docById.get(pair.doc_a.external_id);
|
|
3557
3557
|
const docB = docById.get(pair.doc_b.external_id);
|
|
3558
3558
|
if (docA && docB) {
|
|
@@ -3572,7 +3572,7 @@ function useRelatedDocuments(documents2) {
|
|
|
3572
3572
|
}, [documents2, similarData, structuralKey]);
|
|
3573
3573
|
}
|
|
3574
3574
|
var REPLAYABLE = [
|
|
3575
|
-
...
|
|
3575
|
+
...chunkODGIOGH5_cjs.replayableTagMutations,
|
|
3576
3576
|
...replayableDocumentMutations
|
|
3577
3577
|
];
|
|
3578
3578
|
function isReplayableArbiMutation(mutationKey) {
|
|
@@ -3604,7 +3604,7 @@ function isRestorableArbiQueryOnline(queryKey, data) {
|
|
|
3604
3604
|
const docs = Array.isArray(data) ? data : [data];
|
|
3605
3605
|
return !docs.some((doc) => {
|
|
3606
3606
|
const status = doc?.status;
|
|
3607
|
-
return !!status && !
|
|
3607
|
+
return !!status && !chunkODGIOGH5_cjs.FINISHED_DOCUMENT_STATUSES.has(status);
|
|
3608
3608
|
});
|
|
3609
3609
|
}
|
|
3610
3610
|
|
|
@@ -3719,7 +3719,7 @@ var PENDING_SYNC_PREDICATE = (m) => (
|
|
|
3719
3719
|
isReplayableArbiMutation(m.options.mutationKey) && (m.state.isPaused || m.state.status === "error")
|
|
3720
3720
|
);
|
|
3721
3721
|
function usePendingSyncItems() {
|
|
3722
|
-
const { data: documents2 } =
|
|
3722
|
+
const { data: documents2 } = chunkODGIOGH5_cjs.useDocuments();
|
|
3723
3723
|
const { data: tags } = chunkME4TS33T_cjs.useTags();
|
|
3724
3724
|
const raw = reactQuery.useMutationState({
|
|
3725
3725
|
filters: { predicate: PENDING_SYNC_PREDICATE },
|
|
@@ -3904,7 +3904,7 @@ function useKeepDocumentsOffline() {
|
|
|
3904
3904
|
return reactQuery.useMutation({
|
|
3905
3905
|
mutationFn: async (docs) => {
|
|
3906
3906
|
await keepDocumentsOffline(arbi.getClient().fetch, docs);
|
|
3907
|
-
for (const doc of docs)
|
|
3907
|
+
for (const doc of docs) chunkODGIOGH5_cjs.setCachedDocument(queryClient, doc);
|
|
3908
3908
|
await onKeptOffline?.();
|
|
3909
3909
|
return docs.length;
|
|
3910
3910
|
},
|
|
@@ -4296,7 +4296,7 @@ function useStreamHandlers() {
|
|
|
4296
4296
|
return "";
|
|
4297
4297
|
}
|
|
4298
4298
|
},
|
|
4299
|
-
refreshDocuments: (ids) =>
|
|
4299
|
+
refreshDocuments: (ids) => chunkODGIOGH5_cjs.refreshDocuments(queryClient, arbi, ids)
|
|
4300
4300
|
},
|
|
4301
4301
|
params
|
|
4302
4302
|
),
|
|
@@ -5373,7 +5373,7 @@ function useConversation(options = {}) {
|
|
|
5373
5373
|
React.useEffect(() => {
|
|
5374
5374
|
if (agentId && workspaceId && !conversationId) session.setNewAgentChat({ agentId, workspaceId });
|
|
5375
5375
|
}, [session, agentId, workspaceId, conversationId]);
|
|
5376
|
-
const { data: docs = [], isLoading: isLoadingDocuments } =
|
|
5376
|
+
const { data: docs = [], isLoading: isLoadingDocuments } = chunkODGIOGH5_cjs.useDocuments(workspaceId);
|
|
5377
5377
|
const ordinaryHistory = chunkME4TS33T_cjs.useConversations(workspaceId, { enabled: !agentId, live: true });
|
|
5378
5378
|
const agentHistory = useAgentChats(agentId);
|
|
5379
5379
|
const stored = React.useMemo(
|
|
@@ -5635,7 +5635,7 @@ function useConversation(options = {}) {
|
|
|
5635
5635
|
} else
|
|
5636
5636
|
uploaded.push(...(await arbi.documents.uploadFile(file, file.name)).doc_ext_ids ?? []);
|
|
5637
5637
|
}
|
|
5638
|
-
if (uploaded.length) await
|
|
5638
|
+
if (uploaded.length) await chunkODGIOGH5_cjs.refreshDocuments(queryClient, arbi, uploaded);
|
|
5639
5639
|
} catch (e) {
|
|
5640
5640
|
setUploadError(messageOf(e, "The upload failed."));
|
|
5641
5641
|
} finally {
|
|
@@ -5849,7 +5849,7 @@ function useConversationDocuments() {
|
|
|
5849
5849
|
const inConversationDocuments = chunkME4TS33T_cjs.useArbiSessionState(
|
|
5850
5850
|
(state) => state.conversationDocuments[convKey] || EMPTY_DOCS
|
|
5851
5851
|
);
|
|
5852
|
-
const { data: documents2 = [], isLoading: isLoadingDocs } =
|
|
5852
|
+
const { data: documents2 = [], isLoading: isLoadingDocs } = chunkODGIOGH5_cjs.useDocuments();
|
|
5853
5853
|
const conversationDocuments = React__default.default.useMemo(() => {
|
|
5854
5854
|
if (inConversationDocuments.length === 0) {
|
|
5855
5855
|
return [];
|
|
@@ -6865,11 +6865,11 @@ function ArbiWebSocketProvider({
|
|
|
6865
6865
|
arbiRef.current = arbi;
|
|
6866
6866
|
const queryClient = reactQuery.useQueryClient();
|
|
6867
6867
|
const subscribersRef = React.useRef(/* @__PURE__ */ new Set());
|
|
6868
|
-
const setStatus =
|
|
6869
|
-
const applyTaskUpdate =
|
|
6870
|
-
const applyPresence =
|
|
6871
|
-
const reset =
|
|
6872
|
-
const setEvicted =
|
|
6868
|
+
const setStatus = chunkODGIOGH5_cjs.useArbiWsStore((s) => s.setStatus);
|
|
6869
|
+
const applyTaskUpdate = chunkODGIOGH5_cjs.useArbiWsStore((s) => s.applyTaskUpdate);
|
|
6870
|
+
const applyPresence = chunkODGIOGH5_cjs.useArbiWsStore((s) => s.applyPresence);
|
|
6871
|
+
const reset = chunkODGIOGH5_cjs.useArbiWsStore((s) => s.reset);
|
|
6872
|
+
const setEvicted = chunkODGIOGH5_cjs.useArbiWsStore((s) => s.setEvicted);
|
|
6873
6873
|
const onAuthenticatedRef = React.useRef(onAuthenticated);
|
|
6874
6874
|
onAuthenticatedRef.current = onAuthenticated;
|
|
6875
6875
|
const acceptRings = chunkYIUUTRMQ_cjs.useArbiHost().calls?.useEnabled?.() ?? true;
|
|
@@ -6905,12 +6905,12 @@ function ArbiWebSocketProvider({
|
|
|
6905
6905
|
} else if (client.isMessageType(msg, "presence_update")) applyPresence(msg);
|
|
6906
6906
|
else if (client.isMessageType(msg, "batch_complete")) {
|
|
6907
6907
|
if (msg.batch_type === "entity_extract") {
|
|
6908
|
-
|
|
6908
|
+
chunkODGIOGH5_cjs.finishEntityExtraction(msg.doc_ext_ids ?? []);
|
|
6909
6909
|
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allFacts() });
|
|
6910
6910
|
}
|
|
6911
6911
|
if (msg.batch_type === "upload" || msg.batch_type === "entity_extract") {
|
|
6912
6912
|
if (msg.doc_ext_ids?.length)
|
|
6913
|
-
void
|
|
6913
|
+
void chunkODGIOGH5_cjs.refreshDocuments(queryClient, arbiRef.current, msg.doc_ext_ids);
|
|
6914
6914
|
void queryClient.invalidateQueries({ queryKey: chunkRRWAX52L_cjs.arbiQueryKeys.allTags() });
|
|
6915
6915
|
}
|
|
6916
6916
|
} else if (type.startsWith("chat.") || type === "agent_dm_status")
|
|
@@ -7022,10 +7022,10 @@ function useArbiWsMessage(type, handler) {
|
|
|
7022
7022
|
);
|
|
7023
7023
|
}
|
|
7024
7024
|
function useArbiWsStatus() {
|
|
7025
|
-
return
|
|
7025
|
+
return chunkODGIOGH5_cjs.useArbiWsStore((s) => s.status);
|
|
7026
7026
|
}
|
|
7027
7027
|
function useArbiConnected() {
|
|
7028
|
-
return
|
|
7028
|
+
return chunkODGIOGH5_cjs.useArbiWsStore((s) => s.status === "connected");
|
|
7029
7029
|
}
|
|
7030
7030
|
var WORKSPACE_SCOPED_PACKAGE_KEYS = [
|
|
7031
7031
|
chunkRRWAX52L_cjs.arbiQueryKeys.allDocuments(),
|
|
@@ -10034,7 +10034,7 @@ function useDeleteBookingPage() {
|
|
|
10034
10034
|
});
|
|
10035
10035
|
}
|
|
10036
10036
|
function useWorkspaceDocs(workspaceId) {
|
|
10037
|
-
const { data: docs = [], isLoading, isError } =
|
|
10037
|
+
const { data: docs = [], isLoading, isError } = chunkODGIOGH5_cjs.useDocuments(workspaceId);
|
|
10038
10038
|
const docIds = React.useMemo(
|
|
10039
10039
|
() => docs.map((d) => d.external_id).filter((id) => !!id),
|
|
10040
10040
|
[docs]
|
|
@@ -12060,7 +12060,7 @@ function isAgentUser(user) {
|
|
|
12060
12060
|
return user.external_id.startsWith("agt-");
|
|
12061
12061
|
}
|
|
12062
12062
|
function DmAvatar({ user, className, size = "lg" }) {
|
|
12063
|
-
const presence =
|
|
12063
|
+
const presence = chunkODGIOGH5_cjs.useArbiWsStore((s) => s.presence[user.external_id]);
|
|
12064
12064
|
const displayStatus = presence === void 0 ? void 0 : presence === "online" ? "connected" : "disconnected";
|
|
12065
12065
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
12066
12066
|
chunkFSPLYO52_cjs.UserEntity,
|
|
@@ -13841,183 +13841,183 @@ Object.defineProperty(exports, "writeSamples", {
|
|
|
13841
13841
|
});
|
|
13842
13842
|
Object.defineProperty(exports, "DISMISSED_TASK_TTL_MS", {
|
|
13843
13843
|
enumerable: true,
|
|
13844
|
-
get: function () { return
|
|
13844
|
+
get: function () { return chunkODGIOGH5_cjs.DISMISSED_TASK_TTL_MS; }
|
|
13845
13845
|
});
|
|
13846
13846
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_MEASURE", {
|
|
13847
13847
|
enumerable: true,
|
|
13848
|
-
get: function () { return
|
|
13848
|
+
get: function () { return chunkODGIOGH5_cjs.DOCUMENTS_FIRST_PAGE_MEASURE; }
|
|
13849
13849
|
});
|
|
13850
13850
|
Object.defineProperty(exports, "DOCUMENTS_FIRST_PAGE_SIZE", {
|
|
13851
13851
|
enumerable: true,
|
|
13852
|
-
get: function () { return
|
|
13852
|
+
get: function () { return chunkODGIOGH5_cjs.DOCUMENTS_FIRST_PAGE_SIZE; }
|
|
13853
13853
|
});
|
|
13854
13854
|
Object.defineProperty(exports, "DOCUMENTS_PAGE_SIZE", {
|
|
13855
13855
|
enumerable: true,
|
|
13856
|
-
get: function () { return
|
|
13856
|
+
get: function () { return chunkODGIOGH5_cjs.DOCUMENTS_PAGE_SIZE; }
|
|
13857
13857
|
});
|
|
13858
13858
|
Object.defineProperty(exports, "FINISHED_DOCUMENT_STATUSES", {
|
|
13859
13859
|
enumerable: true,
|
|
13860
|
-
get: function () { return
|
|
13860
|
+
get: function () { return chunkODGIOGH5_cjs.FINISHED_DOCUMENT_STATUSES; }
|
|
13861
13861
|
});
|
|
13862
13862
|
Object.defineProperty(exports, "IN_FLIGHT_DOCUMENT_STATUSES", {
|
|
13863
13863
|
enumerable: true,
|
|
13864
|
-
get: function () { return
|
|
13864
|
+
get: function () { return chunkODGIOGH5_cjs.IN_FLIGHT_DOCUMENT_STATUSES; }
|
|
13865
13865
|
});
|
|
13866
13866
|
Object.defineProperty(exports, "SIMILARITY_THRESHOLD", {
|
|
13867
13867
|
enumerable: true,
|
|
13868
|
-
get: function () { return
|
|
13868
|
+
get: function () { return chunkODGIOGH5_cjs.SIMILARITY_THRESHOLD; }
|
|
13869
13869
|
});
|
|
13870
13870
|
Object.defineProperty(exports, "adjustTagCounts", {
|
|
13871
13871
|
enumerable: true,
|
|
13872
|
-
get: function () { return
|
|
13872
|
+
get: function () { return chunkODGIOGH5_cjs.adjustTagCounts; }
|
|
13873
13873
|
});
|
|
13874
13874
|
Object.defineProperty(exports, "dropTagFromCachedDocuments", {
|
|
13875
13875
|
enumerable: true,
|
|
13876
|
-
get: function () { return
|
|
13876
|
+
get: function () { return chunkODGIOGH5_cjs.dropTagFromCachedDocuments; }
|
|
13877
13877
|
});
|
|
13878
13878
|
Object.defineProperty(exports, "finishEntityExtraction", {
|
|
13879
13879
|
enumerable: true,
|
|
13880
|
-
get: function () { return
|
|
13880
|
+
get: function () { return chunkODGIOGH5_cjs.finishEntityExtraction; }
|
|
13881
13881
|
});
|
|
13882
13882
|
Object.defineProperty(exports, "forgetDocuments", {
|
|
13883
13883
|
enumerable: true,
|
|
13884
|
-
get: function () { return
|
|
13884
|
+
get: function () { return chunkODGIOGH5_cjs.forgetDocuments; }
|
|
13885
13885
|
});
|
|
13886
13886
|
Object.defineProperty(exports, "getCachedDocuments", {
|
|
13887
13887
|
enumerable: true,
|
|
13888
|
-
get: function () { return
|
|
13888
|
+
get: function () { return chunkODGIOGH5_cjs.getCachedDocuments; }
|
|
13889
13889
|
});
|
|
13890
13890
|
Object.defineProperty(exports, "invalidateTagData", {
|
|
13891
13891
|
enumerable: true,
|
|
13892
|
-
get: function () { return
|
|
13892
|
+
get: function () { return chunkODGIOGH5_cjs.invalidateTagData; }
|
|
13893
13893
|
});
|
|
13894
13894
|
Object.defineProperty(exports, "invalidateTagTables", {
|
|
13895
13895
|
enumerable: true,
|
|
13896
|
-
get: function () { return
|
|
13896
|
+
get: function () { return chunkODGIOGH5_cjs.invalidateTagTables; }
|
|
13897
13897
|
});
|
|
13898
13898
|
Object.defineProperty(exports, "isDocumentsLoading", {
|
|
13899
13899
|
enumerable: true,
|
|
13900
|
-
get: function () { return
|
|
13900
|
+
get: function () { return chunkODGIOGH5_cjs.isDocumentsLoading; }
|
|
13901
13901
|
});
|
|
13902
13902
|
Object.defineProperty(exports, "isRowNewer", {
|
|
13903
13903
|
enumerable: true,
|
|
13904
|
-
get: function () { return
|
|
13904
|
+
get: function () { return chunkODGIOGH5_cjs.isRowNewer; }
|
|
13905
13905
|
});
|
|
13906
13906
|
Object.defineProperty(exports, "isStaleTaskUpdate", {
|
|
13907
13907
|
enumerable: true,
|
|
13908
|
-
get: function () { return
|
|
13908
|
+
get: function () { return chunkODGIOGH5_cjs.isStaleTaskUpdate; }
|
|
13909
13909
|
});
|
|
13910
13910
|
Object.defineProperty(exports, "patchCachedDocument", {
|
|
13911
13911
|
enumerable: true,
|
|
13912
|
-
get: function () { return
|
|
13912
|
+
get: function () { return chunkODGIOGH5_cjs.patchCachedDocument; }
|
|
13913
13913
|
});
|
|
13914
13914
|
Object.defineProperty(exports, "patchDocuments", {
|
|
13915
13915
|
enumerable: true,
|
|
13916
|
-
get: function () { return
|
|
13916
|
+
get: function () { return chunkODGIOGH5_cjs.patchDocuments; }
|
|
13917
13917
|
});
|
|
13918
13918
|
Object.defineProperty(exports, "patchWorkspaceTags", {
|
|
13919
13919
|
enumerable: true,
|
|
13920
|
-
get: function () { return
|
|
13920
|
+
get: function () { return chunkODGIOGH5_cjs.patchWorkspaceTags; }
|
|
13921
13921
|
});
|
|
13922
13922
|
Object.defineProperty(exports, "refreshDocuments", {
|
|
13923
13923
|
enumerable: true,
|
|
13924
|
-
get: function () { return
|
|
13924
|
+
get: function () { return chunkODGIOGH5_cjs.refreshDocuments; }
|
|
13925
13925
|
});
|
|
13926
13926
|
Object.defineProperty(exports, "resolveDocumentStatus", {
|
|
13927
13927
|
enumerable: true,
|
|
13928
|
-
get: function () { return
|
|
13928
|
+
get: function () { return chunkODGIOGH5_cjs.resolveDocumentStatus; }
|
|
13929
13929
|
});
|
|
13930
13930
|
Object.defineProperty(exports, "setCachedDocument", {
|
|
13931
13931
|
enumerable: true,
|
|
13932
|
-
get: function () { return
|
|
13932
|
+
get: function () { return chunkODGIOGH5_cjs.setCachedDocument; }
|
|
13933
13933
|
});
|
|
13934
13934
|
Object.defineProperty(exports, "settledByRows", {
|
|
13935
13935
|
enumerable: true,
|
|
13936
|
-
get: function () { return
|
|
13936
|
+
get: function () { return chunkODGIOGH5_cjs.settledByRows; }
|
|
13937
13937
|
});
|
|
13938
13938
|
Object.defineProperty(exports, "startEntityExtraction", {
|
|
13939
13939
|
enumerable: true,
|
|
13940
|
-
get: function () { return
|
|
13940
|
+
get: function () { return chunkODGIOGH5_cjs.startEntityExtraction; }
|
|
13941
13941
|
});
|
|
13942
13942
|
Object.defineProperty(exports, "stopDocumentsLoading", {
|
|
13943
13943
|
enumerable: true,
|
|
13944
|
-
get: function () { return
|
|
13944
|
+
get: function () { return chunkODGIOGH5_cjs.stopDocumentsLoading; }
|
|
13945
13945
|
});
|
|
13946
13946
|
Object.defineProperty(exports, "subscribeDocumentRows", {
|
|
13947
13947
|
enumerable: true,
|
|
13948
|
-
get: function () { return
|
|
13948
|
+
get: function () { return chunkODGIOGH5_cjs.subscribeDocumentRows; }
|
|
13949
13949
|
});
|
|
13950
13950
|
Object.defineProperty(exports, "upsertDocuments", {
|
|
13951
13951
|
enumerable: true,
|
|
13952
|
-
get: function () { return
|
|
13952
|
+
get: function () { return chunkODGIOGH5_cjs.upsertDocuments; }
|
|
13953
13953
|
});
|
|
13954
13954
|
Object.defineProperty(exports, "useArbiWsStore", {
|
|
13955
13955
|
enumerable: true,
|
|
13956
|
-
get: function () { return
|
|
13956
|
+
get: function () { return chunkODGIOGH5_cjs.useArbiWsStore; }
|
|
13957
13957
|
});
|
|
13958
13958
|
Object.defineProperty(exports, "useCreateTag", {
|
|
13959
13959
|
enumerable: true,
|
|
13960
|
-
get: function () { return
|
|
13960
|
+
get: function () { return chunkODGIOGH5_cjs.useCreateTag; }
|
|
13961
13961
|
});
|
|
13962
13962
|
Object.defineProperty(exports, "useDeleteTag", {
|
|
13963
13963
|
enumerable: true,
|
|
13964
|
-
get: function () { return
|
|
13964
|
+
get: function () { return chunkODGIOGH5_cjs.useDeleteTag; }
|
|
13965
13965
|
});
|
|
13966
13966
|
Object.defineProperty(exports, "useDocument", {
|
|
13967
13967
|
enumerable: true,
|
|
13968
|
-
get: function () { return
|
|
13968
|
+
get: function () { return chunkODGIOGH5_cjs.useDocument; }
|
|
13969
13969
|
});
|
|
13970
13970
|
Object.defineProperty(exports, "useDocuments", {
|
|
13971
13971
|
enumerable: true,
|
|
13972
|
-
get: function () { return
|
|
13972
|
+
get: function () { return chunkODGIOGH5_cjs.useDocuments; }
|
|
13973
13973
|
});
|
|
13974
13974
|
Object.defineProperty(exports, "useDocumentsById", {
|
|
13975
13975
|
enumerable: true,
|
|
13976
|
-
get: function () { return
|
|
13976
|
+
get: function () { return chunkODGIOGH5_cjs.useDocumentsById; }
|
|
13977
13977
|
});
|
|
13978
13978
|
Object.defineProperty(exports, "useDocumentsLoading", {
|
|
13979
13979
|
enumerable: true,
|
|
13980
|
-
get: function () { return
|
|
13980
|
+
get: function () { return chunkODGIOGH5_cjs.useDocumentsLoading; }
|
|
13981
13981
|
});
|
|
13982
13982
|
Object.defineProperty(exports, "useEntityExtractionDocIds", {
|
|
13983
13983
|
enumerable: true,
|
|
13984
|
-
get: function () { return
|
|
13984
|
+
get: function () { return chunkODGIOGH5_cjs.useEntityExtractionDocIds; }
|
|
13985
13985
|
});
|
|
13986
13986
|
Object.defineProperty(exports, "useExtractEntities", {
|
|
13987
13987
|
enumerable: true,
|
|
13988
|
-
get: function () { return
|
|
13988
|
+
get: function () { return chunkODGIOGH5_cjs.useExtractEntities; }
|
|
13989
13989
|
});
|
|
13990
13990
|
Object.defineProperty(exports, "useInvalidateTagData", {
|
|
13991
13991
|
enumerable: true,
|
|
13992
|
-
get: function () { return
|
|
13992
|
+
get: function () { return chunkODGIOGH5_cjs.useInvalidateTagData; }
|
|
13993
13993
|
});
|
|
13994
13994
|
Object.defineProperty(exports, "useIsCreatingTag", {
|
|
13995
13995
|
enumerable: true,
|
|
13996
|
-
get: function () { return
|
|
13996
|
+
get: function () { return chunkODGIOGH5_cjs.useIsCreatingTag; }
|
|
13997
13997
|
});
|
|
13998
13998
|
Object.defineProperty(exports, "useRefreshDocuments", {
|
|
13999
13999
|
enumerable: true,
|
|
14000
|
-
get: function () { return
|
|
14000
|
+
get: function () { return chunkODGIOGH5_cjs.useRefreshDocuments; }
|
|
14001
14001
|
});
|
|
14002
14002
|
Object.defineProperty(exports, "useSetTagValues", {
|
|
14003
14003
|
enumerable: true,
|
|
14004
|
-
get: function () { return
|
|
14004
|
+
get: function () { return chunkODGIOGH5_cjs.useSetTagValues; }
|
|
14005
14005
|
});
|
|
14006
14006
|
Object.defineProperty(exports, "useSimilarDocuments", {
|
|
14007
14007
|
enumerable: true,
|
|
14008
|
-
get: function () { return
|
|
14008
|
+
get: function () { return chunkODGIOGH5_cjs.useSimilarDocuments; }
|
|
14009
14009
|
});
|
|
14010
14010
|
Object.defineProperty(exports, "useTagKindSchema", {
|
|
14011
14011
|
enumerable: true,
|
|
14012
|
-
get: function () { return
|
|
14012
|
+
get: function () { return chunkODGIOGH5_cjs.useTagKindSchema; }
|
|
14013
14013
|
});
|
|
14014
14014
|
Object.defineProperty(exports, "useUpdateTag", {
|
|
14015
14015
|
enumerable: true,
|
|
14016
|
-
get: function () { return
|
|
14016
|
+
get: function () { return chunkODGIOGH5_cjs.useUpdateTag; }
|
|
14017
14017
|
});
|
|
14018
14018
|
Object.defineProperty(exports, "useUpdateTagKindSchema", {
|
|
14019
14019
|
enumerable: true,
|
|
14020
|
-
get: function () { return
|
|
14020
|
+
get: function () { return chunkODGIOGH5_cjs.useUpdateTagKindSchema; }
|
|
14021
14021
|
});
|
|
14022
14022
|
Object.defineProperty(exports, "DEFAULT_DOCUMENT_VIEWER_STATE", {
|
|
14023
14023
|
enumerable: true,
|