@arbidocs/blocks 0.5.123 → 0.5.125
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/{ClippingMediaViewer-IEIBT74X.cjs → ClippingMediaViewer-ZFEX5A3U.cjs} +11 -10
- package/dist/ClippingMediaViewer-ZFEX5A3U.cjs.map +1 -0
- package/dist/{ClippingPdfViewer-OGYLMVCE.cjs → ClippingPdfViewer-3LRTEPHV.cjs} +45 -11
- package/dist/ClippingPdfViewer-3LRTEPHV.cjs.map +1 -0
- package/dist/ConnectedCallDock-XJOYVVAH.cjs +6 -6
- package/dist/ConnectedCallRoom-CUDYAPQK.cjs +6 -6
- package/dist/{ConnectedNativeDocxComparison-QKHCYD6W.cjs → ConnectedNativeDocxComparison-7QQ55JIO.cjs} +13 -13
- package/dist/{ConnectedNativeDocxComparison-QKHCYD6W.cjs.map → ConnectedNativeDocxComparison-7QQ55JIO.cjs.map} +1 -1
- package/dist/{ConnectedPresentation-5DOJ35XL.cjs → ConnectedPresentation-L32JPRFI.cjs} +30 -156
- package/dist/ConnectedPresentation-L32JPRFI.cjs.map +1 -0
- package/dist/{ConnectedProductionSetDialog-LHB4VQWC.cjs → ConnectedProductionSetDialog-4EAY6KAZ.cjs} +3 -3
- package/dist/{ConnectedProductionSetDialog-LHB4VQWC.cjs.map → ConnectedProductionSetDialog-4EAY6KAZ.cjs.map} +1 -1
- package/dist/{ConnectedSlidesTab-7YMEDGUU.cjs → ConnectedSlidesTab-P7GGNUTO.cjs} +31 -29
- package/dist/ConnectedSlidesTab-P7GGNUTO.cjs.map +1 -0
- package/dist/{ConnectedStreamedWordArtifact-AG62232A.cjs → ConnectedStreamedWordArtifact-7NJ3N52V.cjs} +13 -13
- package/dist/{ConnectedStreamedWordArtifact-AG62232A.cjs.map → ConnectedStreamedWordArtifact-7NJ3N52V.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-M53XFLI2.cjs → DocumentReviewCard-BFPOFQXI.cjs} +16 -16
- package/dist/{DocumentReviewCard-M53XFLI2.cjs.map → DocumentReviewCard-BFPOFQXI.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-2QCCRWF2.cjs → FilesViewerDialog-MHUVEZ7M.cjs} +35 -32
- package/dist/FilesViewerDialog-MHUVEZ7M.cjs.map +1 -0
- package/dist/{NativeDocxEditor-2LQY2CTV.cjs → NativeDocxEditor-SIRYPMBN.cjs} +6 -6
- package/dist/{NativeDocxEditor-2LQY2CTV.cjs.map → NativeDocxEditor-SIRYPMBN.cjs.map} +1 -1
- package/dist/SpotlightStrip-ED22UYTM.cjs +398 -0
- package/dist/SpotlightStrip-ED22UYTM.cjs.map +1 -0
- package/dist/{WorkspaceTableView-3XYAV4BV.cjs → WorkspaceTableView-MIFYXV3G.cjs} +8 -8
- package/dist/{WorkspaceTableView-3XYAV4BV.cjs.map → WorkspaceTableView-MIFYXV3G.cjs.map} +1 -1
- package/dist/agents/index.cjs +216 -216
- package/dist/ai-IEIR7SC2.cjs +3 -3
- package/dist/auth/index.cjs +1 -1
- package/dist/calls/index.cjs +2 -2
- package/dist/chat/index.cjs +6 -6
- package/dist/{chunk-GNZAH6UI.cjs → chunk-2K6IMIVL.cjs} +3 -3
- package/dist/{chunk-GNZAH6UI.cjs.map → chunk-2K6IMIVL.cjs.map} +1 -1
- package/dist/{chunk-NQML7IUC.cjs → chunk-3UP32FM3.cjs} +6 -6
- package/dist/{chunk-NQML7IUC.cjs.map → chunk-3UP32FM3.cjs.map} +1 -1
- package/dist/chunk-3ZZZO4F7.cjs +145 -0
- package/dist/chunk-3ZZZO4F7.cjs.map +1 -0
- package/dist/{chunk-L4CIFLCU.cjs → chunk-4LP5MJGQ.cjs} +4 -4
- package/dist/{chunk-L4CIFLCU.cjs.map → chunk-4LP5MJGQ.cjs.map} +1 -1
- package/dist/{chunk-JD2HX2BR.cjs → chunk-6JMW3IJ2.cjs} +152 -155
- package/dist/chunk-6JMW3IJ2.cjs.map +1 -0
- package/dist/{chunk-WV7BCGCK.cjs → chunk-7RJZIPLE.cjs} +33 -33
- package/dist/{chunk-WV7BCGCK.cjs.map → chunk-7RJZIPLE.cjs.map} +1 -1
- package/dist/{chunk-WFMWKPGY.cjs → chunk-ADPRIBSH.cjs} +9 -33
- package/dist/chunk-ADPRIBSH.cjs.map +1 -0
- package/dist/{chunk-7NLO7ASW.cjs → chunk-AISYXX4M.cjs} +4 -4
- package/dist/{chunk-7NLO7ASW.cjs.map → chunk-AISYXX4M.cjs.map} +1 -1
- package/dist/{chunk-5QERK4PK.cjs → chunk-AS6QZETU.cjs} +35 -35
- package/dist/{chunk-5QERK4PK.cjs.map → chunk-AS6QZETU.cjs.map} +1 -1
- package/dist/{chunk-V6MW7B4B.cjs → chunk-B3R62764.cjs} +6 -6
- package/dist/{chunk-V6MW7B4B.cjs.map → chunk-B3R62764.cjs.map} +1 -1
- package/dist/{chunk-VKH3BEZE.cjs → chunk-BLIO3B7Z.cjs} +3 -3
- package/dist/{chunk-VKH3BEZE.cjs.map → chunk-BLIO3B7Z.cjs.map} +1 -1
- package/dist/{chunk-46P7IDBX.cjs → chunk-CQ2RJYE2.cjs} +4 -4
- package/dist/chunk-CQ2RJYE2.cjs.map +1 -0
- package/dist/{chunk-MXBXZXXQ.cjs → chunk-ENOPKX7E.cjs} +3 -3
- package/dist/{chunk-MXBXZXXQ.cjs.map → chunk-ENOPKX7E.cjs.map} +1 -1
- package/dist/{chunk-2CSLFAGF.cjs → chunk-GAMRVB3I.cjs} +4 -3
- package/dist/chunk-GAMRVB3I.cjs.map +1 -0
- package/dist/chunk-IRGRMJPP.cjs +18 -0
- package/dist/{chunk-SDRYSLOX.cjs.map → chunk-IRGRMJPP.cjs.map} +1 -1
- package/dist/{chunk-ADDQKZ5I.cjs → chunk-J3FFSEKO.cjs} +4 -4
- package/dist/{chunk-ADDQKZ5I.cjs.map → chunk-J3FFSEKO.cjs.map} +1 -1
- package/dist/chunk-JITYC4OS.cjs +66 -0
- package/dist/chunk-JITYC4OS.cjs.map +1 -0
- package/dist/chunk-JY7UUZQG.cjs +1513 -0
- package/dist/chunk-JY7UUZQG.cjs.map +1 -0
- package/dist/{chunk-ALK3PUUB.cjs → chunk-L6HTZIBD.cjs} +3 -3
- package/dist/{chunk-ALK3PUUB.cjs.map → chunk-L6HTZIBD.cjs.map} +1 -1
- package/dist/chunk-MVXHTAJ4.cjs +111 -0
- package/dist/chunk-MVXHTAJ4.cjs.map +1 -0
- package/dist/{chunk-OHHKBURG.cjs → chunk-OGK377NL.cjs} +33 -33
- package/dist/{chunk-OHHKBURG.cjs.map → chunk-OGK377NL.cjs.map} +1 -1
- package/dist/{chunk-T73BHNQX.cjs → chunk-OHWHYVKG.cjs} +3 -3
- package/dist/{chunk-T73BHNQX.cjs.map → chunk-OHWHYVKG.cjs.map} +1 -1
- package/dist/{chunk-4TTX6ZNS.cjs → chunk-ORNLCBNE.cjs} +24 -2
- package/dist/chunk-ORNLCBNE.cjs.map +1 -0
- package/dist/{chunk-MLA2BJ2Y.cjs → chunk-PSB64T43.cjs} +28 -28
- package/dist/{chunk-MLA2BJ2Y.cjs.map → chunk-PSB64T43.cjs.map} +1 -1
- package/dist/{chunk-COD5ENHK.cjs → chunk-PVJ5ODDB.cjs} +4 -4
- package/dist/{chunk-COD5ENHK.cjs.map → chunk-PVJ5ODDB.cjs.map} +1 -1
- package/dist/{chunk-7557LDAN.cjs → chunk-PWBRE7JA.cjs} +5 -5
- package/dist/{chunk-7557LDAN.cjs.map → chunk-PWBRE7JA.cjs.map} +1 -1
- package/dist/{chunk-7PN3YENO.cjs → chunk-QIK7E6VF.cjs} +4 -4
- package/dist/{chunk-7PN3YENO.cjs.map → chunk-QIK7E6VF.cjs.map} +1 -1
- package/dist/{chunk-DWMWEALB.cjs → chunk-TSFNLY3K.cjs} +143 -1634
- package/dist/chunk-TSFNLY3K.cjs.map +1 -0
- package/dist/{chunk-YGBHY67W.cjs → chunk-UA7HOLAZ.cjs} +5 -5
- package/dist/{chunk-YGBHY67W.cjs.map → chunk-UA7HOLAZ.cjs.map} +1 -1
- package/dist/{chunk-KXIRVKCJ.cjs → chunk-UUENH4BJ.cjs} +3 -3
- package/dist/{chunk-KXIRVKCJ.cjs.map → chunk-UUENH4BJ.cjs.map} +1 -1
- package/dist/chunk-WVZLAAIZ.cjs +31 -0
- package/dist/chunk-WVZLAAIZ.cjs.map +1 -0
- package/dist/{chunk-E3L5DB5F.cjs → chunk-YOEP3I4V.cjs} +5 -5
- package/dist/{chunk-E3L5DB5F.cjs.map → chunk-YOEP3I4V.cjs.map} +1 -1
- package/dist/{chunk-SNPK3R3O.cjs → chunk-YVO6Z5BS.cjs} +10 -10
- package/dist/{chunk-SNPK3R3O.cjs.map → chunk-YVO6Z5BS.cjs.map} +1 -1
- package/dist/chunk-ZZZITHGK.cjs +119 -0
- package/dist/chunk-ZZZITHGK.cjs.map +1 -0
- package/dist/connect/docx.cjs +17 -17
- package/dist/connect/index.cjs +994 -994
- package/dist/connect/viewer.cjs +28 -25
- package/dist/connection/presentation/ClippingMediaViewer.js +3 -3
- package/dist/connection/presentation/ClippingMediaViewer.js.map +2 -2
- package/dist/connection/presentation/ClippingPdfViewer.d.ts +4 -3
- package/dist/connection/presentation/ClippingPdfViewer.js +48 -9
- package/dist/connection/presentation/ClippingPdfViewer.js.map +2 -2
- package/dist/connection/presentation/SpotlightLayer.d.ts +5 -0
- package/dist/connection/presentation/SpotlightLayer.js +19 -0
- package/dist/connection/presentation/SpotlightLayer.js.map +7 -0
- package/dist/connection/presentation/SpotlightStrip.d.ts +10 -0
- package/dist/connection/presentation/SpotlightStrip.js +237 -0
- package/dist/connection/presentation/SpotlightStrip.js.map +7 -0
- package/dist/connection/presentation/useViewerClipping.d.ts +4 -3
- package/dist/connection/presentation/useViewerClipping.js +8 -4
- package/dist/connection/presentation/useViewerClipping.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +1 -1
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/VersionDropdown.js +1 -1
- package/dist/connection/viewer/VersionDropdown.js.map +1 -1
- package/dist/connection/viewer/ViewerPdfPane.js +2 -0
- package/dist/connection/viewer/ViewerPdfPane.js.map +2 -2
- package/dist/connection/viewer/pdf/passageHighlights.d.ts +5 -0
- package/dist/connection/viewer/pdf/passageHighlights.js +14 -1
- package/dist/connection/viewer/pdf/passageHighlights.js.map +2 -2
- package/dist/connection/viewer/pdf/usePassageTextFallback.d.ts +12 -0
- package/dist/connection/viewer/pdf/usePassageTextFallback.js +30 -0
- package/dist/connection/viewer/pdf/usePassageTextFallback.js.map +7 -0
- package/dist/connection/viewer/pdf/usePdfPassageHighlights.js +2 -11
- package/dist/connection/viewer/pdf/usePdfPassageHighlights.js.map +2 -2
- package/dist/connection/viewer/useCleanView.d.ts +3 -1
- package/dist/connection/viewer/useCleanView.js +6 -3
- package/dist/connection/viewer/useCleanView.js.map +2 -2
- package/dist/connection/viewer/useViewerTabs.js +13 -1
- package/dist/connection/viewer/useViewerTabs.js.map +2 -2
- package/dist/document-tools/DocumentToolButtons.js +1 -1
- package/dist/document-tools/DocumentToolButtons.js.map +1 -1
- package/dist/document-tools/index.cjs +20 -20
- package/dist/docx/DocxCommandMenu.js +2 -1
- package/dist/docx/DocxCommandMenu.js.map +2 -2
- package/dist/docx/index.cjs +38 -38
- package/dist/embed/index.cjs +20 -20
- package/dist/facts/index.cjs +64 -64
- package/dist/files/index.cjs +223 -223
- package/dist/index.cjs +521 -521
- package/dist/presentation/ClipCaptureOverlay.d.ts +7 -3
- package/dist/presentation/ClipCaptureOverlay.js +43 -14
- package/dist/presentation/ClipCaptureOverlay.js.map +2 -2
- package/dist/presentation/PresentControls.d.ts +8 -0
- package/dist/presentation/PresentControls.js +1 -0
- package/dist/presentation/PresentControls.js.map +2 -2
- package/dist/presentation/PresentationStage.d.ts +10 -2
- package/dist/presentation/PresentationStage.js +6 -3
- package/dist/presentation/PresentationStage.js.map +2 -2
- package/dist/presentation/PresenterView.js +1 -22
- package/dist/presentation/PresenterView.js.map +2 -2
- package/dist/presentation/SpotlightView.d.ts +19 -0
- package/dist/presentation/SpotlightView.js +180 -0
- package/dist/presentation/SpotlightView.js.map +7 -0
- package/dist/presentation/passage-clip.d.ts +17 -0
- package/dist/presentation/passage-clip.js +25 -0
- package/dist/presentation/passage-clip.js.map +7 -0
- package/dist/presentation/spotlight.d.ts +58 -0
- package/dist/presentation/spotlight.js +110 -0
- package/dist/presentation/spotlight.js.map +7 -0
- package/dist/presentation/store.d.ts +5 -0
- package/dist/presentation/store.js +19 -0
- package/dist/presentation/store.js.map +2 -2
- package/dist/presentation/usePointerActive.d.ts +2 -0
- package/dist/presentation/usePointerActive.js +28 -0
- package/dist/presentation/usePointerActive.js.map +7 -0
- package/dist/settings/index.cjs +146 -146
- package/dist/site/index.cjs +6 -6
- package/dist/studio/index.cjs +9 -9
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +35 -35
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/ClippingMediaViewer-IEIBT74X.cjs.map +0 -1
- package/dist/ClippingPdfViewer-OGYLMVCE.cjs.map +0 -1
- package/dist/ConnectedPresentation-5DOJ35XL.cjs.map +0 -1
- package/dist/ConnectedSlidesTab-7YMEDGUU.cjs.map +0 -1
- package/dist/FilesViewerDialog-2QCCRWF2.cjs.map +0 -1
- package/dist/chunk-2CSLFAGF.cjs.map +0 -1
- package/dist/chunk-46P7IDBX.cjs.map +0 -1
- package/dist/chunk-4TTX6ZNS.cjs.map +0 -1
- package/dist/chunk-DWMWEALB.cjs.map +0 -1
- package/dist/chunk-JD2HX2BR.cjs.map +0 -1
- package/dist/chunk-SDRYSLOX.cjs +0 -18
- package/dist/chunk-WFMWKPGY.cjs.map +0 -1
- package/dist/chunk-XK4TVJKD.cjs +0 -73
- package/dist/chunk-XK4TVJKD.cjs.map +0 -1
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var chunkJITYC4OS_cjs = require('./chunk-JITYC4OS.cjs');
|
|
5
|
+
var chunkWVZLAAIZ_cjs = require('./chunk-WVZLAAIZ.cjs');
|
|
6
|
+
var chunkMVXHTAJ4_cjs = require('./chunk-MVXHTAJ4.cjs');
|
|
7
|
+
var chunkADPRIBSH_cjs = require('./chunk-ADPRIBSH.cjs');
|
|
8
|
+
var chunkORNLCBNE_cjs = require('./chunk-ORNLCBNE.cjs');
|
|
6
9
|
var chunk4CIVQWAX_cjs = require('./chunk-4CIVQWAX.cjs');
|
|
7
10
|
var chunkPL7HUTM3_cjs = require('./chunk-PL7HUTM3.cjs');
|
|
8
11
|
var chunkGFUOCGY6_cjs = require('./chunk-GFUOCGY6.cjs');
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
var
|
|
13
|
-
var chunk7557LDAN_cjs = require('./chunk-7557LDAN.cjs');
|
|
14
|
-
var chunk46P7IDBX_cjs = require('./chunk-46P7IDBX.cjs');
|
|
15
|
-
var chunkGNZAH6UI_cjs = require('./chunk-GNZAH6UI.cjs');
|
|
12
|
+
var chunkJ3FFSEKO_cjs = require('./chunk-J3FFSEKO.cjs');
|
|
13
|
+
var chunkPWBRE7JA_cjs = require('./chunk-PWBRE7JA.cjs');
|
|
14
|
+
var chunkCQ2RJYE2_cjs = require('./chunk-CQ2RJYE2.cjs');
|
|
15
|
+
var chunk2K6IMIVL_cjs = require('./chunk-2K6IMIVL.cjs');
|
|
16
16
|
var chunkJH6JTI76_cjs = require('./chunk-JH6JTI76.cjs');
|
|
17
|
+
var chunkUUENH4BJ_cjs = require('./chunk-UUENH4BJ.cjs');
|
|
18
|
+
var chunkAS6QZETU_cjs = require('./chunk-AS6QZETU.cjs');
|
|
19
|
+
var chunkL6HTZIBD_cjs = require('./chunk-L6HTZIBD.cjs');
|
|
17
20
|
var chunkDTMBAFIL_cjs = require('./chunk-DTMBAFIL.cjs');
|
|
18
21
|
var chunkMZZ3SBQL_cjs = require('./chunk-MZZ3SBQL.cjs');
|
|
19
22
|
var chunkTG2GM7WJ_cjs = require('./chunk-TG2GM7WJ.cjs');
|
|
20
|
-
var chunkMNIQDXM6_cjs = require('./chunk-MNIQDXM6.cjs');
|
|
21
|
-
var chunkE3Y7RI3J_cjs = require('./chunk-E3Y7RI3J.cjs');
|
|
22
23
|
var chunkEG7EJFUE_cjs = require('./chunk-EG7EJFUE.cjs');
|
|
23
24
|
var chunkHQDR43JC_cjs = require('./chunk-HQDR43JC.cjs');
|
|
24
25
|
var chunkJR2YSBD5_cjs = require('./chunk-JR2YSBD5.cjs');
|
|
@@ -26,8 +27,10 @@ var chunkSJSGSHIT_cjs = require('./chunk-SJSGSHIT.cjs');
|
|
|
26
27
|
var chunkZW6FPIFC_cjs = require('./chunk-ZW6FPIFC.cjs');
|
|
27
28
|
var chunkFX3K6LNZ_cjs = require('./chunk-FX3K6LNZ.cjs');
|
|
28
29
|
var chunkIPSHAMO2_cjs = require('./chunk-IPSHAMO2.cjs');
|
|
29
|
-
var chunkTKHCIHE2_cjs = require('./chunk-TKHCIHE2.cjs');
|
|
30
30
|
var chunkLJJJ6CYH_cjs = require('./chunk-LJJJ6CYH.cjs');
|
|
31
|
+
var chunkMNIQDXM6_cjs = require('./chunk-MNIQDXM6.cjs');
|
|
32
|
+
var chunkE3Y7RI3J_cjs = require('./chunk-E3Y7RI3J.cjs');
|
|
33
|
+
var chunkTKHCIHE2_cjs = require('./chunk-TKHCIHE2.cjs');
|
|
31
34
|
var React = require('react');
|
|
32
35
|
var lucideReact = require('lucide-react');
|
|
33
36
|
var react = require('@arbidocs/react');
|
|
@@ -200,27 +203,27 @@ function ViewerRelatedDocuments({ document: document2 }) {
|
|
|
200
203
|
);
|
|
201
204
|
if (!related) return null;
|
|
202
205
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
203
|
-
|
|
206
|
+
chunkAS6QZETU_cjs.RelatedDocumentsCell,
|
|
204
207
|
{
|
|
205
208
|
currentDoc: document2,
|
|
206
209
|
related,
|
|
207
210
|
viewingDocumentId: viewerOpen ? viewingId : null,
|
|
208
211
|
onDocumentClick: (id) => session.setViewingDocument({ id, page: null }),
|
|
209
|
-
onDelete: (doc) =>
|
|
212
|
+
onDelete: (doc) => chunkJ3FFSEKO_cjs.useFilesDialogs.getState().requestDelete(doc),
|
|
210
213
|
onCompare
|
|
211
214
|
}
|
|
212
215
|
);
|
|
213
216
|
}
|
|
214
217
|
function PresentationPill({ compact }) {
|
|
215
218
|
const session = react.useArbiSessionStore();
|
|
216
|
-
const boundTo =
|
|
217
|
-
const clips =
|
|
218
|
-
const title =
|
|
219
|
+
const boundTo = chunkORNLCBNE_cjs.usePresentation((s) => s.boundTo);
|
|
220
|
+
const clips = chunkORNLCBNE_cjs.usePresentation((s) => s.clips.length);
|
|
221
|
+
const title = chunkORNLCBNE_cjs.usePresentation((s) => s.title);
|
|
219
222
|
const onIt = react.useArbiSessionState(
|
|
220
223
|
(s) => s.viewingDocument?.id === boundTo && s.documentViewer.tab === "slides"
|
|
221
224
|
);
|
|
222
225
|
if (onIt || boundTo === null && clips === 0) return null;
|
|
223
|
-
const back = () =>
|
|
226
|
+
const back = () => chunkWVZLAAIZ_cjs.showPresentation(session, boundTo);
|
|
224
227
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
225
228
|
ui.Button,
|
|
226
229
|
{
|
|
@@ -239,14 +242,26 @@ function PresentationPill({ compact }) {
|
|
|
239
242
|
}
|
|
240
243
|
);
|
|
241
244
|
}
|
|
245
|
+
var SpotlightStrip = React.lazy(
|
|
246
|
+
() => import('./SpotlightStrip-ED22UYTM.cjs').then((m) => ({ default: m.SpotlightStrip }))
|
|
247
|
+
);
|
|
248
|
+
function SpotlightLayer() {
|
|
249
|
+
const { userId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
250
|
+
const gathered = chunkMVXHTAJ4_cjs.useSpotlight((s) => s.clips.length > 0);
|
|
251
|
+
React.useEffect(() => chunkMVXHTAJ4_cjs.useSpotlight.getState().own(userId ?? null), [userId]);
|
|
252
|
+
if (!gathered) return null;
|
|
253
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: null, children: /* @__PURE__ */ jsxRuntime.jsx(SpotlightStrip, {}) });
|
|
254
|
+
}
|
|
242
255
|
function useViewerClipping(clippable, compact) {
|
|
243
|
-
const
|
|
244
|
-
const
|
|
256
|
+
const on = chunkMVXHTAJ4_cjs.useSpotlight((s) => s.clipping);
|
|
257
|
+
const setOn = chunkMVXHTAJ4_cjs.useSpotlight((s) => s.setClipping);
|
|
258
|
+
const stop = React.useCallback(() => setOn(false), [setOn]);
|
|
245
259
|
const button = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
246
260
|
/* @__PURE__ */ jsxRuntime.jsx(PresentationPill, { compact }),
|
|
247
|
-
clippable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
261
|
+
clippable && /* @__PURE__ */ jsxRuntime.jsx(chunkCQ2RJYE2_cjs.ClipButton, { active: on, compact, onClick: () => setOn(!on) })
|
|
248
262
|
] });
|
|
249
|
-
|
|
263
|
+
const layer = /* @__PURE__ */ jsxRuntime.jsx(SpotlightLayer, {});
|
|
264
|
+
return { clipping: on && clippable, stop, button, layer };
|
|
250
265
|
}
|
|
251
266
|
var IDLE_MS = 2e3;
|
|
252
267
|
function CleanViewControl({ onExit }) {
|
|
@@ -288,7 +303,7 @@ function CleanViewControl({ onExit }) {
|
|
|
288
303
|
size: "sm",
|
|
289
304
|
variant: "ghost",
|
|
290
305
|
className: "h-7",
|
|
291
|
-
onClick: () => view &&
|
|
306
|
+
onClick: () => view && chunkADPRIBSH_cjs.toggleFullscreen(view),
|
|
292
307
|
children: [
|
|
293
308
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Maximize, { className: "size-3.5" }),
|
|
294
309
|
"Full screen"
|
|
@@ -314,7 +329,7 @@ function CleanViewControl({ onExit }) {
|
|
|
314
329
|
}
|
|
315
330
|
);
|
|
316
331
|
}
|
|
317
|
-
function useCleanView() {
|
|
332
|
+
function useCleanView(extra) {
|
|
318
333
|
const session = react.useArbiSessionStore();
|
|
319
334
|
const detached = react.useArbiSessionState((s) => s.documentViewer.detached);
|
|
320
335
|
const presenting = react.useArbiSessionState((s) => s.documentViewer.presenting);
|
|
@@ -330,7 +345,10 @@ function useCleanView() {
|
|
|
330
345
|
on,
|
|
331
346
|
frame: {
|
|
332
347
|
bare: on,
|
|
333
|
-
overlay:
|
|
348
|
+
overlay: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
349
|
+
on && /* @__PURE__ */ jsxRuntime.jsx(CleanViewControl, { onExit: () => session.setDocumentViewer({ presenting: false }) }),
|
|
350
|
+
extra
|
|
351
|
+
] })
|
|
334
352
|
}
|
|
335
353
|
};
|
|
336
354
|
}
|
|
@@ -502,7 +520,7 @@ function useViewedDocument(documentId) {
|
|
|
502
520
|
const documentData = record?.external_id === documentId ? record : void 0;
|
|
503
521
|
const { data: tags } = chunkHQDR43JC_cjs.useConnectedTags();
|
|
504
522
|
const labelSummaries = React.useMemo(
|
|
505
|
-
() =>
|
|
523
|
+
() => chunkL6HTZIBD_cjs.summariseDocTags(documentData?.doctags ?? [], tags.filter(chunkL6HTZIBD_cjs.isDocumentLabel)),
|
|
506
524
|
[documentData, tags]
|
|
507
525
|
);
|
|
508
526
|
const fileName = documentData?.file_name;
|
|
@@ -648,6 +666,7 @@ function useViewerTabs(doc, isCompact, hasHistory = false) {
|
|
|
648
666
|
phonePdfChosen
|
|
649
667
|
} = react.useArbiSessionState((s) => s.documentViewer);
|
|
650
668
|
const setActiveTab = (tab) => session.setDocumentViewer({ tab });
|
|
669
|
+
const passageId = react.useArbiSessionState((s) => s.viewingDocument?.passageId ?? null);
|
|
651
670
|
const isTextFile = ui.friendlyFileType(documentData?.file_type, documentData?.file_name) === "Text";
|
|
652
671
|
const isPhone = chunkFX3K6LNZ_cjs.useIsPhone();
|
|
653
672
|
const phoneDefaultDecidedFor = React.useRef(null);
|
|
@@ -658,6 +677,8 @@ function useViewerTabs(doc, isCompact, hasHistory = false) {
|
|
|
658
677
|
setActiveTab("slides");
|
|
659
678
|
} else if (!isPresentation && documentData && activeTab === "slides") {
|
|
660
679
|
setActiveTab(isDocx ? "docx" : isXlsx ? "xlsx" : "pdf");
|
|
680
|
+
} else if (passageId && activeTab === "pdf" && (isArtifact || isDocx)) {
|
|
681
|
+
setActiveTab("html");
|
|
661
682
|
} else if (isArtifact && (activeTab === "pdf" || !liveKind && activeTab === "docx")) {
|
|
662
683
|
setActiveTab(liveKind ? "preview" : "edit");
|
|
663
684
|
} else if (isDocx && activeTab === "pdf") {
|
|
@@ -669,7 +690,16 @@ function useViewerTabs(doc, isCompact, hasHistory = false) {
|
|
|
669
690
|
} else if (!isArtifact && !isDocx && !isXlsx && documentData && (activeTab === "docx" || activeTab === "xlsx")) {
|
|
670
691
|
setActiveTab("pdf");
|
|
671
692
|
}
|
|
672
|
-
}, [
|
|
693
|
+
}, [
|
|
694
|
+
hasDocumentData,
|
|
695
|
+
documentKey,
|
|
696
|
+
isArtifact,
|
|
697
|
+
isDocx,
|
|
698
|
+
isXlsx,
|
|
699
|
+
liveKind,
|
|
700
|
+
isPresentation,
|
|
701
|
+
passageId
|
|
702
|
+
]);
|
|
673
703
|
React.useEffect(() => {
|
|
674
704
|
if (!tabRequest || !documentKey || tabRequest.documentId !== documentKey) return;
|
|
675
705
|
phoneDefaultDecidedFor.current = documentKey;
|
|
@@ -832,7 +862,7 @@ function VersionDropdown({
|
|
|
832
862
|
{
|
|
833
863
|
"aria-label": "Active document version",
|
|
834
864
|
"data-testid": "document-version-dropdown",
|
|
835
|
-
className: "max-w-44 rounded border border-input bg-background px-2 py-1 text-sm",
|
|
865
|
+
className: "max-w-44 rounded border border-input bg-background px-2 py-1 text-sm pointer-coarse:min-h-11",
|
|
836
866
|
value: active?.id ?? "",
|
|
837
867
|
onChange: (event) => {
|
|
838
868
|
const id = event.currentTarget.value;
|
|
@@ -1072,7 +1102,7 @@ function PassageTagPanel({
|
|
|
1072
1102
|
[workspaceTags]
|
|
1073
1103
|
);
|
|
1074
1104
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1075
|
-
|
|
1105
|
+
chunkL6HTZIBD_cjs.TagPassagePanel,
|
|
1076
1106
|
{
|
|
1077
1107
|
pageNumber,
|
|
1078
1108
|
preview,
|
|
@@ -1197,7 +1227,7 @@ var ParsedPassage = React.memo(function ParsedPassage2({
|
|
|
1197
1227
|
];
|
|
1198
1228
|
}) : [];
|
|
1199
1229
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1200
|
-
|
|
1230
|
+
chunkL6HTZIBD_cjs.HtmlPassage,
|
|
1201
1231
|
{
|
|
1202
1232
|
chunkId,
|
|
1203
1233
|
highlight: isStrong ? "strong" : isLight ? "light" : void 0,
|
|
@@ -1237,7 +1267,7 @@ var ParsedPassage = React.memo(function ParsedPassage2({
|
|
|
1237
1267
|
items: passageItems
|
|
1238
1268
|
}
|
|
1239
1269
|
) : void 0,
|
|
1240
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
1270
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(chunkUUENH4BJ_cjs.ConnectedMarkdown, { children: chunk.content })
|
|
1241
1271
|
}
|
|
1242
1272
|
);
|
|
1243
1273
|
});
|
|
@@ -1373,11 +1403,11 @@ function useDocumentLabels(documentId, doctags, orderedChunkIds) {
|
|
|
1373
1403
|
const workspaceTags = React.useMemo(() => allTags.filter(isDocumentTag), [allTags]);
|
|
1374
1404
|
const documentDoctags = React.useMemo(() => doctags ?? [], [doctags]);
|
|
1375
1405
|
const tagSummaries = React.useMemo(
|
|
1376
|
-
() =>
|
|
1406
|
+
() => chunkL6HTZIBD_cjs.summariseDocTags(documentDoctags, workspaceTags),
|
|
1377
1407
|
[documentDoctags, workspaceTags]
|
|
1378
1408
|
);
|
|
1379
1409
|
const labelSummaries = React.useMemo(
|
|
1380
|
-
() =>
|
|
1410
|
+
() => chunkL6HTZIBD_cjs.summariseDocTags(documentDoctags, workspaceTags.filter(chunkL6HTZIBD_cjs.isDocumentLabel)),
|
|
1381
1411
|
[documentDoctags, workspaceTags]
|
|
1382
1412
|
);
|
|
1383
1413
|
const labelsByChunk = React.useMemo(() => {
|
|
@@ -1885,14 +1915,14 @@ function ParsedTextView({
|
|
|
1885
1915
|
}
|
|
1886
1916
|
}
|
|
1887
1917
|
}, [maxPageNumber, onLoadSuccess]);
|
|
1888
|
-
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1918
|
+
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading parsed document..." });
|
|
1889
1919
|
if (error) {
|
|
1890
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1920
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-red-text", children: "Failed to load parsed document" }) });
|
|
1891
1921
|
}
|
|
1892
1922
|
const taggingChunk = labels.taggingChunkId ? processedChunks.flatMap((page) => page.chunks).find((c) => c.chunkExtId === labels.taggingChunkId) : void 0;
|
|
1893
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
1923
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkL6HTZIBD_cjs.HtmlViewerRoot, { children: [
|
|
1894
1924
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1895
|
-
|
|
1925
|
+
chunkL6HTZIBD_cjs.DocumentLabelBar,
|
|
1896
1926
|
{
|
|
1897
1927
|
summaries: labels.labelSummaries,
|
|
1898
1928
|
activeTagExtId: labels.activeTagExtId,
|
|
@@ -1917,15 +1947,15 @@ function ParsedTextView({
|
|
|
1917
1947
|
}
|
|
1918
1948
|
),
|
|
1919
1949
|
!citation.factCitationActive && citation.runStartIds.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1920
|
-
|
|
1950
|
+
chunkL6HTZIBD_cjs.CitedRunNav,
|
|
1921
1951
|
{
|
|
1922
1952
|
position: citation.runCursor + 1,
|
|
1923
1953
|
total: citation.runStartIds.length,
|
|
1924
1954
|
onStep: citation.gotoRun
|
|
1925
1955
|
}
|
|
1926
1956
|
),
|
|
1927
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1928
|
-
|
|
1957
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.HtmlViewerSurface, { surfaceRef: containerRef, onMouseUp: citation.handleSelectionEnd, children: processedChunks.length > 0 ? processedChunks.map((page, pageIndex) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1958
|
+
chunkL6HTZIBD_cjs.HtmlPage,
|
|
1929
1959
|
{
|
|
1930
1960
|
pageNumber: page.pageNumber,
|
|
1931
1961
|
totalPages,
|
|
@@ -1966,7 +1996,7 @@ function ParsedTextView({
|
|
|
1966
1996
|
})
|
|
1967
1997
|
},
|
|
1968
1998
|
pageIndex
|
|
1969
|
-
)) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
1999
|
+
)) : /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.HtmlViewerEmpty, {}) })
|
|
1970
2000
|
] });
|
|
1971
2001
|
}
|
|
1972
2002
|
function PdfClipOutlines({ outlines, onShow }) {
|
|
@@ -2027,17 +2057,17 @@ function clipOutlinesByPage(viewingId, clips, slides) {
|
|
|
2027
2057
|
}
|
|
2028
2058
|
function usePdfClipOutlines(viewingId) {
|
|
2029
2059
|
const session = react.useArbiSessionStore();
|
|
2030
|
-
const clips =
|
|
2031
|
-
const slides =
|
|
2060
|
+
const clips = chunkORNLCBNE_cjs.usePresentation((s) => s.clips);
|
|
2061
|
+
const slides = chunkORNLCBNE_cjs.usePresentation((s) => s.slides);
|
|
2032
2062
|
const byPage = React.useMemo(
|
|
2033
2063
|
() => clipOutlinesByPage(viewingId, clips, slides),
|
|
2034
2064
|
[viewingId, clips, slides]
|
|
2035
2065
|
);
|
|
2036
2066
|
const show = React.useCallback(
|
|
2037
2067
|
(outline) => {
|
|
2038
|
-
const state =
|
|
2068
|
+
const state = chunkORNLCBNE_cjs.usePresentation.getState();
|
|
2039
2069
|
if (outline.slides.length) state.goTo(outline.slides[0]);
|
|
2040
|
-
|
|
2070
|
+
chunkWVZLAAIZ_cjs.showPresentation(session, state.boundTo);
|
|
2041
2071
|
},
|
|
2042
2072
|
[session]
|
|
2043
2073
|
);
|
|
@@ -2079,52 +2109,6 @@ function PdfPassageHighlights({
|
|
|
2079
2109
|
chunkId
|
|
2080
2110
|
)) });
|
|
2081
2111
|
}
|
|
2082
|
-
|
|
2083
|
-
// src/connection/viewer/pdf/passageHighlights.ts
|
|
2084
|
-
function passageHighlight(chunkId, { cited, active }) {
|
|
2085
|
-
if (cited.size > 0) {
|
|
2086
|
-
if (!cited.has(chunkId)) return null;
|
|
2087
|
-
return chunkId === active ? "strong" : "light";
|
|
2088
|
-
}
|
|
2089
|
-
return chunkId === active ? "light" : null;
|
|
2090
|
-
}
|
|
2091
|
-
function asBox(bbox) {
|
|
2092
|
-
if (!bbox || bbox.length !== 4 || !bbox.every(Number.isFinite)) return null;
|
|
2093
|
-
const [x0, y0, x1, y1] = bbox;
|
|
2094
|
-
if (x1 <= x0 || y1 <= y0) return null;
|
|
2095
|
-
return [x0, y0, x1, y1];
|
|
2096
|
-
}
|
|
2097
|
-
function isWholePage([x0, y0, x1, y1]) {
|
|
2098
|
-
return x0 <= 0 && y0 <= 0 && x1 >= 1 && y1 >= 1;
|
|
2099
|
-
}
|
|
2100
|
-
function passagePlaced(pages, chunkId) {
|
|
2101
|
-
for (const page of pages) {
|
|
2102
|
-
const chunk = page.chunks.find((entry) => entry.chunkExtId === chunkId);
|
|
2103
|
-
if (chunk) {
|
|
2104
|
-
const box = asBox(chunk.pageBbox);
|
|
2105
|
-
return !!box && !isWholePage(box);
|
|
2106
|
-
}
|
|
2107
|
-
}
|
|
2108
|
-
return false;
|
|
2109
|
-
}
|
|
2110
|
-
function passageBoxesByPage(pages, state) {
|
|
2111
|
-
const byPage = /* @__PURE__ */ new Map();
|
|
2112
|
-
if (state.cited.size === 0 && !state.active) return byPage;
|
|
2113
|
-
for (const page of pages) {
|
|
2114
|
-
if (page.pageNumber === null) continue;
|
|
2115
|
-
for (const chunk of page.chunks) {
|
|
2116
|
-
const chunkId = chunk.chunkExtId;
|
|
2117
|
-
if (!chunkId) continue;
|
|
2118
|
-
const highlight = passageHighlight(chunkId, state);
|
|
2119
|
-
const box = highlight && asBox(chunk.pageBbox);
|
|
2120
|
-
if (!highlight || !box || isWholePage(box)) continue;
|
|
2121
|
-
const boxes = byPage.get(page.pageNumber) ?? [];
|
|
2122
|
-
boxes.push({ chunkId, box, highlight });
|
|
2123
|
-
byPage.set(page.pageNumber, boxes);
|
|
2124
|
-
}
|
|
2125
|
-
}
|
|
2126
|
-
return byPage;
|
|
2127
|
-
}
|
|
2128
2112
|
var NONE2 = [];
|
|
2129
2113
|
var NO_FOOTNOTES = {};
|
|
2130
2114
|
function usePdfPassageHighlights(documentId) {
|
|
@@ -2136,18 +2120,9 @@ function usePdfPassageHighlights(documentId) {
|
|
|
2136
2120
|
});
|
|
2137
2121
|
const { processedChunks } = viewers.useProcessedChunks(parsed?.chunks, NO_FOOTNOTES);
|
|
2138
2122
|
const boxesByPage = React.useMemo(
|
|
2139
|
-
() => passageBoxesByPage(processedChunks, { cited, active }),
|
|
2123
|
+
() => chunkJITYC4OS_cjs.passageBoxesByPage(processedChunks, { cited, active }),
|
|
2140
2124
|
[processedChunks, cited, active]
|
|
2141
2125
|
);
|
|
2142
|
-
const session = react.useArbiSessionStore();
|
|
2143
|
-
const fellBackFor = React.useRef(null);
|
|
2144
|
-
React.useEffect(() => {
|
|
2145
|
-
if (!active || !parsed || !documentId) return;
|
|
2146
|
-
const key = `${documentId}:${active}`;
|
|
2147
|
-
if (fellBackFor.current === key || passagePlaced(processedChunks, active)) return;
|
|
2148
|
-
fellBackFor.current = key;
|
|
2149
|
-
session.setDocumentViewer({ tab: "html" });
|
|
2150
|
-
}, [active, parsed, processedChunks, documentId, session]);
|
|
2151
2126
|
const centredFor = React.useRef(null);
|
|
2152
2127
|
const activeKey = active ? `${documentId}:${active}` : null;
|
|
2153
2128
|
React.useEffect(() => {
|
|
@@ -2169,19 +2144,40 @@ function usePdfPassageHighlights(documentId) {
|
|
|
2169
2144
|
[boxesByPage, active, centre]
|
|
2170
2145
|
);
|
|
2171
2146
|
}
|
|
2147
|
+
var NO_FOOTNOTES2 = {};
|
|
2148
|
+
var fellBackFor = /* @__PURE__ */ new WeakMap();
|
|
2149
|
+
function usePassageTextFallback(pdfFailed) {
|
|
2150
|
+
const session = react.useArbiSessionStore();
|
|
2151
|
+
const documentId = react.useArbiSessionState((s) => s.viewingDocument?.id);
|
|
2152
|
+
const onPdf = react.useArbiSessionState((s) => s.documentViewer.tab === "pdf");
|
|
2153
|
+
const active = react.useArbiSessionState((s) => s.viewingDocument?.passageId ?? null);
|
|
2154
|
+
const { data: parsed } = react.useParsedDocument(documentId, "final", {
|
|
2155
|
+
enabled: onPdf && !!active
|
|
2156
|
+
});
|
|
2157
|
+
const { processedChunks } = viewers.useProcessedChunks(parsed?.chunks, NO_FOOTNOTES2);
|
|
2158
|
+
React.useEffect(() => {
|
|
2159
|
+
if (!onPdf || !active || !documentId) return;
|
|
2160
|
+
const key = `${documentId}:${active}`;
|
|
2161
|
+
if (fellBackFor.get(session) === key) return;
|
|
2162
|
+
const unplaced = !!parsed && !chunkJITYC4OS_cjs.passagePlaced(processedChunks, active);
|
|
2163
|
+
if (!pdfFailed && !unplaced) return;
|
|
2164
|
+
fellBackFor.set(session, key);
|
|
2165
|
+
session.setDocumentViewer({ tab: "html" });
|
|
2166
|
+
}, [onPdf, pdfFailed, active, parsed, processedChunks, documentId, session]);
|
|
2167
|
+
}
|
|
2172
2168
|
function PresentationFileCard({ documentId, fileName }) {
|
|
2173
2169
|
const session = react.useArbiSessionStore();
|
|
2174
2170
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-full items-center justify-center p-6", "data-testid": "presentation-file", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2175
2171
|
chunkZW6FPIFC_cjs.EmptyState,
|
|
2176
2172
|
{
|
|
2177
2173
|
icon: lucideReact.Presentation,
|
|
2178
|
-
title:
|
|
2174
|
+
title: chunkORNLCBNE_cjs.presentationTitle(fileName),
|
|
2179
2175
|
description: "A presentation saved in an earlier format, without its slides. Open it and save it to keep it as a presentation PDF; this file can then be deleted.",
|
|
2180
2176
|
action: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2181
2177
|
ui.Button,
|
|
2182
2178
|
{
|
|
2183
2179
|
type: "button",
|
|
2184
|
-
onClick: () =>
|
|
2180
|
+
onClick: () => chunkWVZLAAIZ_cjs.editPresentation(session, { kind: "open", documentId }),
|
|
2185
2181
|
"data-testid": "presentation-file-edit",
|
|
2186
2182
|
children: [
|
|
2187
2183
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Pencil, { className: "size-4" }),
|
|
@@ -2202,10 +2198,10 @@ var SignatureRequestEditor = React.lazy(
|
|
|
2202
2198
|
() => import('./document-tools/viewer/index.cjs').then((m) => ({ default: m.SignatureRequestEditor }))
|
|
2203
2199
|
);
|
|
2204
2200
|
var ClippingPdfViewer = React.lazy(
|
|
2205
|
-
() => import('./ClippingPdfViewer-
|
|
2201
|
+
() => import('./ClippingPdfViewer-3LRTEPHV.cjs').then((m) => ({ default: m.ClippingPdfViewer }))
|
|
2206
2202
|
);
|
|
2207
2203
|
var ClippingMediaViewer = React.lazy(
|
|
2208
|
-
() => import('./ClippingMediaViewer-
|
|
2204
|
+
() => import('./ClippingMediaViewer-ZFEX5A3U.cjs').then((m) => ({ default: m.ClippingMediaViewer }))
|
|
2209
2205
|
);
|
|
2210
2206
|
var GuidedSigningViewer = React.lazy(
|
|
2211
2207
|
() => import('./document-tools/viewer/index.cjs').then((m) => ({ default: m.GuidedSigningViewer }))
|
|
@@ -2262,13 +2258,14 @@ function ViewerPdfPane({
|
|
|
2262
2258
|
placeMark = null
|
|
2263
2259
|
}) {
|
|
2264
2260
|
const { documentData, isDownloadOnly, isVideo, isAudio, isImage, isDocx } = doc;
|
|
2261
|
+
usePassageTextFallback(!!pdfError);
|
|
2265
2262
|
const showMarkup = markup.hasMarkup && !markup.showOriginal;
|
|
2266
2263
|
if (chunkGFUOCGY6_cjs.isLegacyPresentationFile(documentData?.file_name)) {
|
|
2267
2264
|
return /* @__PURE__ */ jsxRuntime.jsx(PresentationFileCard, { documentId, fileName: documentData?.file_name ?? "" });
|
|
2268
2265
|
}
|
|
2269
2266
|
if (isDownloadOnly) {
|
|
2270
2267
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2271
|
-
|
|
2268
|
+
chunkL6HTZIBD_cjs.ViewerPreviewUnavailable,
|
|
2272
2269
|
{
|
|
2273
2270
|
extension: fileExtension(documentData?.file_name),
|
|
2274
2271
|
onDownload
|
|
@@ -2278,24 +2275,24 @@ function ViewerPdfPane({
|
|
|
2278
2275
|
const loadingLabel = isVideo ? "Loading video..." : isAudio ? "Loading audio..." : isImage ? "Loading image..." : !documentData ? "Loading document..." : ui.friendlyFileType(documentData.file_type, documentData.file_name) === "Text" ? "Loading text..." : "Loading PDF...";
|
|
2279
2276
|
const errorLabel = isVideo ? "Failed to load video" : isAudio ? "Failed to load audio" : isImage ? "Failed to load image" : "Failed to load PDF";
|
|
2280
2277
|
if (isDocx && !pdfSnapshotNumber && documentData && !["completed", "low-content", "failed"].includes(documentData.status || "")) {
|
|
2281
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2278
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "PDF and search indexing are processing. Open the DOCX tab to edit now." });
|
|
2282
2279
|
}
|
|
2283
2280
|
if (isDocx && !pdfSnapshotNumber && documentData?.status === "failed") {
|
|
2284
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2281
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "PDF conversion failed. Open the Word editor or download the document." });
|
|
2285
2282
|
}
|
|
2286
|
-
if (isPdfLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2283
|
+
if (isPdfLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: loadingLabel });
|
|
2287
2284
|
if (pdfError) {
|
|
2288
2285
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2289
|
-
|
|
2286
|
+
chunkL6HTZIBD_cjs.ViewerLoadError,
|
|
2290
2287
|
{
|
|
2291
2288
|
message: isVideo || isAudio || isImage ? `${errorLabel} \u2014 download it instead.` : "Couldn't display the PDF \u2014 download it instead.",
|
|
2292
2289
|
onDownload
|
|
2293
2290
|
}
|
|
2294
2291
|
);
|
|
2295
2292
|
}
|
|
2296
|
-
if (!pdfBlob) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2293
|
+
if (!pdfBlob) return /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: loadingLabel });
|
|
2297
2294
|
if (clipping && (isImage || isVideo)) {
|
|
2298
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2295
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2299
2296
|
ClippingMediaViewer,
|
|
2300
2297
|
{
|
|
2301
2298
|
file: pdfBlob,
|
|
@@ -2311,7 +2308,7 @@ function ViewerPdfPane({
|
|
|
2311
2308
|
return /* @__PURE__ */ jsxRuntime.jsx(viewers.ImageViewer, { blob: pdfBlob, alt: documentData?.file_name || "Document image" });
|
|
2312
2309
|
}
|
|
2313
2310
|
if (signatureFlow?.kind === "prepare") {
|
|
2314
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2311
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2315
2312
|
SignatureRequestEditor,
|
|
2316
2313
|
{
|
|
2317
2314
|
...viewerProps,
|
|
@@ -2329,7 +2326,7 @@ function ViewerPdfPane({
|
|
|
2329
2326
|
}
|
|
2330
2327
|
if (signatureFlow?.kind === "sign" && currentUserId) {
|
|
2331
2328
|
const { currentPage: _page, scrollTrigger: _trigger, ...guidedProps } = viewerProps;
|
|
2332
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2329
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2333
2330
|
GuidedSigningViewer,
|
|
2334
2331
|
{
|
|
2335
2332
|
...guidedProps,
|
|
@@ -2343,7 +2340,7 @@ function ViewerPdfPane({
|
|
|
2343
2340
|
) });
|
|
2344
2341
|
}
|
|
2345
2342
|
if (placingSignature) {
|
|
2346
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2343
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2347
2344
|
SignaturePlacementViewer,
|
|
2348
2345
|
{
|
|
2349
2346
|
...viewerProps,
|
|
@@ -2356,7 +2353,7 @@ function ViewerPdfPane({
|
|
|
2356
2353
|
) });
|
|
2357
2354
|
}
|
|
2358
2355
|
if (clipping) {
|
|
2359
|
-
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2356
|
+
return /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2360
2357
|
ClippingPdfViewer,
|
|
2361
2358
|
{
|
|
2362
2359
|
...viewerProps,
|
|
@@ -2373,7 +2370,7 @@ function ViewerPdfPane({
|
|
|
2373
2370
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2374
2371
|
React.Suspense,
|
|
2375
2372
|
{
|
|
2376
|
-
fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2373
|
+
fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: annotating ? "Loading annotation tools\u2026" : "Loading markup\u2026" }),
|
|
2377
2374
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2378
2375
|
AnnotatedPdfViewer,
|
|
2379
2376
|
{
|
|
@@ -2399,15 +2396,15 @@ function ViewerPdfPane({
|
|
|
2399
2396
|
return /* @__PURE__ */ jsxRuntime.jsx(SessionPdfViewer, { ...viewerProps, file: pdfBlob });
|
|
2400
2397
|
}
|
|
2401
2398
|
var SlidesTab = React.lazy(
|
|
2402
|
-
() => import('./ConnectedSlidesTab-
|
|
2399
|
+
() => import('./ConnectedSlidesTab-P7GGNUTO.cjs').then((m) => ({ default: m.ConnectedSlidesTab }))
|
|
2403
2400
|
);
|
|
2404
2401
|
var StreamedWordArtifact = React.lazy(
|
|
2405
|
-
() => import('./ConnectedStreamedWordArtifact-
|
|
2402
|
+
() => import('./ConnectedStreamedWordArtifact-7NJ3N52V.cjs').then((m) => ({
|
|
2406
2403
|
default: m.ConnectedStreamedWordArtifact
|
|
2407
2404
|
}))
|
|
2408
2405
|
);
|
|
2409
2406
|
var NativeDocxComparison = React.lazy(
|
|
2410
|
-
() => import('./ConnectedNativeDocxComparison-
|
|
2407
|
+
() => import('./ConnectedNativeDocxComparison-7QQ55JIO.cjs').then((m) => ({
|
|
2411
2408
|
default: m.ConnectedNativeDocxComparison
|
|
2412
2409
|
}))
|
|
2413
2410
|
);
|
|
@@ -2629,15 +2626,15 @@ function DocumentViewerContent({
|
|
|
2629
2626
|
};
|
|
2630
2627
|
const documentTitle = streamingDoc?.title || draftDoc?.title || documentData?.doc_metadata?.title || documentData?.file_name || "Document";
|
|
2631
2628
|
const pageNav = totalPages > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2632
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2629
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerZoomControl, { zoom, onCycle: () => setZoom(viewers.cycleZoom(zoom)) }),
|
|
2633
2630
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2634
|
-
|
|
2631
|
+
chunkL6HTZIBD_cjs.PdfPageNav,
|
|
2635
2632
|
{
|
|
2636
2633
|
canPrev: (viewingDocumentPage || 1) > 1,
|
|
2637
2634
|
canNext: (viewingDocumentPage || 1) < totalPages,
|
|
2638
2635
|
onPrev: () => stepPage(-1),
|
|
2639
2636
|
onNext: () => stepPage(1),
|
|
2640
|
-
counter: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2637
|
+
counter: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerPageCounter, { page: viewingDocumentPage || 1, total: totalPages, onGoTo: goToPage })
|
|
2641
2638
|
}
|
|
2642
2639
|
)
|
|
2643
2640
|
] });
|
|
@@ -2661,7 +2658,7 @@ function DocumentViewerContent({
|
|
|
2661
2658
|
);
|
|
2662
2659
|
const titleBlock = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2663
2660
|
isDraft ? /* @__PURE__ */ jsxRuntime.jsx(ViewerDraftTitle, { documentId }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
2664
|
-
|
|
2661
|
+
chunkL6HTZIBD_cjs.ViewerTitle,
|
|
2665
2662
|
{
|
|
2666
2663
|
title: documentTitle,
|
|
2667
2664
|
versionLabel: currentVersionLabel,
|
|
@@ -2670,7 +2667,7 @@ function DocumentViewerContent({
|
|
|
2670
2667
|
),
|
|
2671
2668
|
isCompact && !isDraft && documentData?.shared && /* @__PURE__ */ jsxRuntime.jsx(ui.SharingEntity, { shared: true, variant: "icon", "data-testid": "document-shared-status" }),
|
|
2672
2669
|
isCompact && activeTab === "pdf" && pdfBlob && markup.hasMarkup && !annotating && !placingSignature && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2673
|
-
|
|
2670
|
+
chunkCQ2RJYE2_cjs.MarkupViewNote,
|
|
2674
2671
|
{
|
|
2675
2672
|
showOriginal: markup.showOriginal,
|
|
2676
2673
|
onToggle: () => markup.setShowOriginal((on) => !on)
|
|
@@ -2679,7 +2676,7 @@ function DocumentViewerContent({
|
|
|
2679
2676
|
!isComparing && !liveKind && documentData && /* @__PURE__ */ jsxRuntime.jsx(ViewerRelatedDocuments, { document: documentData }),
|
|
2680
2677
|
isStreaming && /* @__PURE__ */ jsxRuntime.jsx(chunkDTMBAFIL_cjs.ViewerStatusNote, { pulse: true, children: "streaming..." }),
|
|
2681
2678
|
isDraft && /* @__PURE__ */ jsxRuntime.jsx(chunkDTMBAFIL_cjs.ViewerStatusNote, { testId: "draft-unsaved-indicator", children: "Draft \u2014 not saved" }),
|
|
2682
|
-
signatureStatus?.signed && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2679
|
+
signatureStatus?.signed && /* @__PURE__ */ jsxRuntime.jsx(chunk2K6IMIVL_cjs.SignatureStatus, { status: signatureStatus, formatDate })
|
|
2683
2680
|
] });
|
|
2684
2681
|
const leftContent = /* @__PURE__ */ jsxRuntime.jsxs(chunkDTMBAFIL_cjs.ViewerHeaderStart, { children: [
|
|
2685
2682
|
isDraft ? (
|
|
@@ -2688,7 +2685,7 @@ function DocumentViewerContent({
|
|
|
2688
2685
|
/* @__PURE__ */ jsxRuntime.jsx(ViewerDraftKind, { documentId })
|
|
2689
2686
|
) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2690
2687
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2691
|
-
|
|
2688
|
+
chunkL6HTZIBD_cjs.ViewerTabBar,
|
|
2692
2689
|
{
|
|
2693
2690
|
tabs: viewerTabs.filter((tab) => tab.id !== "versions"),
|
|
2694
2691
|
activeId: activeTab,
|
|
@@ -2727,9 +2724,9 @@ function DocumentViewerContent({
|
|
|
2727
2724
|
isComparing
|
|
2728
2725
|
});
|
|
2729
2726
|
const clip = useViewerClipping(annotatable || !!pdfBlob && (isImage || isVideo), isCompact);
|
|
2730
|
-
const clean = useCleanView();
|
|
2727
|
+
const clean = useCleanView(clip.layer);
|
|
2731
2728
|
const signatureBanner = !isDraft && !liveKind && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2732
|
-
|
|
2729
|
+
chunkCQ2RJYE2_cjs.SignatureRequestBanner,
|
|
2733
2730
|
{
|
|
2734
2731
|
documentId,
|
|
2735
2732
|
hidden: !!signatureFlow,
|
|
@@ -2760,7 +2757,7 @@ function DocumentViewerContent({
|
|
|
2760
2757
|
const shownRef = snapshotDocumentId || documentId;
|
|
2761
2758
|
const rightContent = /* @__PURE__ */ jsxRuntime.jsxs(chunkDTMBAFIL_cjs.ViewerHeaderEnd, { isCompact, children: [
|
|
2762
2759
|
annotatable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2763
|
-
|
|
2760
|
+
chunkCQ2RJYE2_cjs.AnnotateButton,
|
|
2764
2761
|
{
|
|
2765
2762
|
active: annotating,
|
|
2766
2763
|
compact: isCompact,
|
|
@@ -2774,7 +2771,7 @@ function DocumentViewerContent({
|
|
|
2774
2771
|
),
|
|
2775
2772
|
clip.button,
|
|
2776
2773
|
activeTab === "pdf" && pdfBlob && !placingSignature && (markup.hasMarkup || annotating) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2777
|
-
|
|
2774
|
+
chunkCQ2RJYE2_cjs.ShowOriginalButton,
|
|
2778
2775
|
{
|
|
2779
2776
|
active: markup.showOriginal,
|
|
2780
2777
|
compact: isCompact,
|
|
@@ -2785,14 +2782,14 @@ function DocumentViewerContent({
|
|
|
2785
2782
|
}
|
|
2786
2783
|
),
|
|
2787
2784
|
activeTab === "pdf" && markup.hasMarkup && !annotating && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2788
|
-
|
|
2785
|
+
chunkCQ2RJYE2_cjs.DownloadMarkupButton,
|
|
2789
2786
|
{
|
|
2790
2787
|
onClick: () => void markup.downloadMarkup(),
|
|
2791
2788
|
disabledReason: isSigned ? documentTools.SIGNED_LOCKED_REASON : void 0
|
|
2792
2789
|
}
|
|
2793
2790
|
),
|
|
2794
2791
|
activeTab === "pdf" && isImage && pdfBlob && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2795
|
-
|
|
2792
|
+
chunkL6HTZIBD_cjs.ViewerImageActions,
|
|
2796
2793
|
{
|
|
2797
2794
|
compact: isCompact,
|
|
2798
2795
|
onUseAsReference: support.useImageAsReference ? () => support.useImageAsReference(documentId) : void 0,
|
|
@@ -2818,7 +2815,7 @@ function DocumentViewerContent({
|
|
|
2818
2815
|
}
|
|
2819
2816
|
),
|
|
2820
2817
|
documentId && documentData && !isDraft && !isStreaming && /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
2821
|
-
|
|
2818
|
+
chunkCQ2RJYE2_cjs.FileShareDialog,
|
|
2822
2819
|
{
|
|
2823
2820
|
open: sharingFile,
|
|
2824
2821
|
onOpenChange: setSharingFile,
|
|
@@ -2848,7 +2845,7 @@ function DocumentViewerContent({
|
|
|
2848
2845
|
{
|
|
2849
2846
|
state: documentData?.shared ? "shared" : "private",
|
|
2850
2847
|
onToggle: share,
|
|
2851
|
-
disabled: !
|
|
2848
|
+
disabled: !chunkL6HTZIBD_cjs.canChangeVisibility(documentData, currentUserId),
|
|
2852
2849
|
disabledTooltip: "Only the owner can change visibility",
|
|
2853
2850
|
tooltip: documentData?.shared ? "Shared with the workspace \u2014 click to share with specific people" : "Share with the workspace, then optionally notify specific people by email",
|
|
2854
2851
|
variant: "outline",
|
|
@@ -2905,7 +2902,7 @@ function DocumentViewerContent({
|
|
|
2905
2902
|
),
|
|
2906
2903
|
!isSigned && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2907
2904
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2908
|
-
|
|
2905
|
+
chunkCQ2RJYE2_cjs.PlaceMySignatureMenuItems,
|
|
2909
2906
|
{
|
|
2910
2907
|
onPlace: (mark) => {
|
|
2911
2908
|
setPlacingSignature(false);
|
|
@@ -2993,7 +2990,7 @@ function DocumentViewerContent({
|
|
|
2993
2990
|
onZoomChange: setZoom
|
|
2994
2991
|
};
|
|
2995
2992
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2996
|
-
|
|
2993
|
+
chunkL6HTZIBD_cjs.ViewerFrame,
|
|
2997
2994
|
{
|
|
2998
2995
|
frameRef: containerRef,
|
|
2999
2996
|
contentId: documentId,
|
|
@@ -3011,7 +3008,7 @@ function DocumentViewerContent({
|
|
|
3011
3008
|
),
|
|
3012
3009
|
isCompact && !isCoEditing && /* @__PURE__ */ jsxRuntime.jsx("div", { "data-slot": "viewer-title-row", className: "flex min-w-0 items-center gap-2 px-3 pb-2", children: titleBlock }),
|
|
3013
3010
|
snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3014
|
-
|
|
3011
|
+
chunkCQ2RJYE2_cjs.VersionSnapshotBar,
|
|
3015
3012
|
{
|
|
3016
3013
|
versionNumber: snapshotNumber,
|
|
3017
3014
|
live: isDocx || isArtifact,
|
|
@@ -3024,7 +3021,7 @@ function DocumentViewerContent({
|
|
|
3024
3021
|
...clean.frame,
|
|
3025
3022
|
footer: /* @__PURE__ */ jsxRuntime.jsx(ViewerCropModal, { crop }),
|
|
3026
3023
|
children: [
|
|
3027
|
-
isComparing && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3024
|
+
isComparing && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading comparison\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3028
3025
|
NativeDocxComparison,
|
|
3029
3026
|
{
|
|
3030
3027
|
baseId: compareDocumentId,
|
|
@@ -3034,22 +3031,22 @@ function DocumentViewerContent({
|
|
|
3034
3031
|
) }),
|
|
3035
3032
|
isCaptureDraft && /* @__PURE__ */ jsxRuntime.jsx(ViewerCaptureDraft, { documentId }),
|
|
3036
3033
|
!isCaptureDraft && (activeTab === "pdf" || isMedia && activeTab === "html") && (!isArtifact || isDocx && !isDraft && !isStreaming && !liveKind) && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(chunkDTMBAFIL_cjs.ViewerPane, { hidden: activeTab !== "pdf", children: [
|
|
3037
|
-
!clean.on && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3034
|
+
!clean.on && /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.DocumentLabelBar, { summaries: labelSummaries }),
|
|
3038
3035
|
!clean.on && !isMedia && !isImage && signatureBanner,
|
|
3039
|
-
!clean.on && activeTab === "pdf" && pdfBlob && !pdfVerified && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3036
|
+
!clean.on && activeTab === "pdf" && pdfBlob && !pdfVerified && /* @__PURE__ */ jsxRuntime.jsxs(chunkL6HTZIBD_cjs.ViewerMessage, { children: [
|
|
3040
3037
|
"Offline copy: its version cannot be verified. Reconnect before signing.",
|
|
3041
3038
|
" ",
|
|
3042
3039
|
/* @__PURE__ */ jsxRuntime.jsx("button", { type: "button", onClick: () => void blobs.retryPdf(), className: "underline", children: "Retry loading the current PDF" })
|
|
3043
3040
|
] }),
|
|
3044
3041
|
!clean.on && activeTab === "pdf" && !isMedia && !isImage && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3045
|
-
|
|
3042
|
+
chunkCQ2RJYE2_cjs.MarkupNotices,
|
|
3046
3043
|
{
|
|
3047
3044
|
legacyPrompt: markup.legacyPrompt,
|
|
3048
3045
|
olderNote: markup.olderNote,
|
|
3049
3046
|
onOpenVersion: (n) => setSnapshotDocumentId(`${documentId}@v${n}`)
|
|
3050
3047
|
}
|
|
3051
3048
|
),
|
|
3052
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3049
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerControlBar, { controls: !clean.on && activeTab === "pdf" && pageNav, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3053
3050
|
ViewerPdfPane,
|
|
3054
3051
|
{
|
|
3055
3052
|
documentId,
|
|
@@ -3089,10 +3086,10 @@ function DocumentViewerContent({
|
|
|
3089
3086
|
}
|
|
3090
3087
|
),
|
|
3091
3088
|
activeTab === "edit" && isArtifact && liveKind && /* @__PURE__ */ jsxRuntime.jsx(chunkEG7EJFUE_cjs.ArtifactCodeView, { source: liveSource, fileName: documentData?.file_name ?? void 0 }),
|
|
3092
|
-
activeTab === "edit" && isArtifact && !liveKind && !isStreaming && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3093
|
-
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3089
|
+
activeTab === "edit" && isArtifact && !liveKind && !isStreaming && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading editor\u2026" }), children: [
|
|
3090
|
+
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(chunkCQ2RJYE2_cjs.SignedEditNote, {}),
|
|
3094
3091
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3095
|
-
|
|
3092
|
+
chunkPWBRE7JA_cjs.ConnectedNativeDocxEditor,
|
|
3096
3093
|
{
|
|
3097
3094
|
documentId: snapshotDocumentId || documentId,
|
|
3098
3095
|
title: documentTitle,
|
|
@@ -3133,8 +3130,8 @@ function DocumentViewerContent({
|
|
|
3133
3130
|
onOpenTranslation: (id) => setViewingDocumentId(id)
|
|
3134
3131
|
}
|
|
3135
3132
|
),
|
|
3136
|
-
activeTab === "xlsx" && isXlsx && (xlsxBlob ? /* @__PURE__ */ jsxRuntime.jsx(viewers.XlsxViewer, { blob: xlsxBlob }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
3137
|
-
activeTab === "slides" && isPresentation && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3133
|
+
activeTab === "xlsx" && isXlsx && (xlsxBlob ? /* @__PURE__ */ jsxRuntime.jsx(viewers.XlsxViewer, { blob: xlsxBlob }) : /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: xlsxError ? "Failed to load spreadsheet" : "Loading spreadsheet..." })),
|
|
3134
|
+
activeTab === "slides" && isPresentation && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading slides\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3138
3135
|
SlidesTab,
|
|
3139
3136
|
{
|
|
3140
3137
|
documentId,
|
|
@@ -3143,11 +3140,11 @@ function DocumentViewerContent({
|
|
|
3143
3140
|
draftTitle: isDraft ? draftDoc?.title ?? "" : void 0
|
|
3144
3141
|
}
|
|
3145
3142
|
) }),
|
|
3146
|
-
activeTab === "docx" && isDocx && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3143
|
+
activeTab === "docx" && isDocx && !isComparing && /* @__PURE__ */ jsxRuntime.jsxs(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Loading editor\u2026" }), children: [
|
|
3147
3144
|
signatureBanner,
|
|
3148
|
-
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3145
|
+
isSigned && !snapshotDocumentId && /* @__PURE__ */ jsxRuntime.jsx(chunkCQ2RJYE2_cjs.SignedEditNote, {}),
|
|
3149
3146
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3150
|
-
|
|
3147
|
+
chunkPWBRE7JA_cjs.ConnectedNativeDocxEditor,
|
|
3151
3148
|
{
|
|
3152
3149
|
documentId: snapshotDocumentId || documentId,
|
|
3153
3150
|
title: documentTitle,
|
|
@@ -3157,7 +3154,7 @@ function DocumentViewerContent({
|
|
|
3157
3154
|
`${snapshotDocumentId || documentId}-${snapshotDocumentId ? "snapshot" : "live"}`
|
|
3158
3155
|
)
|
|
3159
3156
|
] }),
|
|
3160
|
-
streamingDoc && isStreaming && isArtifact && !liveKind && !isComparing && (activeTab === "html" || activeTab === "edit") && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3157
|
+
streamingDoc && isStreaming && isArtifact && !liveKind && !isComparing && (activeTab === "html" || activeTab === "edit") && /* @__PURE__ */ jsxRuntime.jsx(React.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerMessage, { children: "Opening draft\u2026" }), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3161
3158
|
StreamedWordArtifact,
|
|
3162
3159
|
{
|
|
3163
3160
|
documentId: documentId.startsWith("doc-") ? documentId : void 0,
|
|
@@ -3167,7 +3164,7 @@ function DocumentViewerContent({
|
|
|
3167
3164
|
},
|
|
3168
3165
|
documentId
|
|
3169
3166
|
) }),
|
|
3170
|
-
!isCaptureDraft && !isComparing && activeTab === "html" && !(isStreaming && isArtifact && !liveKind) && /* @__PURE__ */ jsxRuntime.jsx(chunkDTMBAFIL_cjs.ViewerPane, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3167
|
+
!isCaptureDraft && !isComparing && activeTab === "html" && !(isStreaming && isArtifact && !liveKind) && /* @__PURE__ */ jsxRuntime.jsx(chunkDTMBAFIL_cjs.ViewerPane, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL6HTZIBD_cjs.ViewerControlBar, { controls: pageNav, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3171
3168
|
ParsedTextView,
|
|
3172
3169
|
{
|
|
3173
3170
|
documentId: pdfSnapshotId || documentId,
|
|
@@ -3183,5 +3180,5 @@ function DocumentViewerContent({
|
|
|
3183
3180
|
}
|
|
3184
3181
|
|
|
3185
3182
|
exports.ConnectedDocumentViewer = ConnectedDocumentViewer;
|
|
3186
|
-
//# sourceMappingURL=chunk-
|
|
3187
|
-
//# sourceMappingURL=chunk-
|
|
3183
|
+
//# sourceMappingURL=chunk-6JMW3IJ2.cjs.map
|
|
3184
|
+
//# sourceMappingURL=chunk-6JMW3IJ2.cjs.map
|