@arbidocs/blocks 0.5.119 → 0.5.120
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/{ConnectedNativeDocxComparison-546ILGLW.cjs → ConnectedNativeDocxComparison-SGE4R3M4.cjs} +6 -6
- package/dist/{ConnectedNativeDocxComparison-546ILGLW.cjs.map → ConnectedNativeDocxComparison-SGE4R3M4.cjs.map} +1 -1
- package/dist/{ConnectedStreamedWordArtifact-S2ZFZLZQ.cjs → ConnectedStreamedWordArtifact-6MCLJRIT.cjs} +6 -6
- package/dist/{ConnectedStreamedWordArtifact-S2ZFZLZQ.cjs.map → ConnectedStreamedWordArtifact-6MCLJRIT.cjs.map} +1 -1
- package/dist/{DocumentReviewCard-ZSBZBGFK.cjs → DocumentReviewCard-BPIAJJED.cjs} +14 -14
- package/dist/{DocumentReviewCard-ZSBZBGFK.cjs.map → DocumentReviewCard-BPIAJJED.cjs.map} +1 -1
- package/dist/{FilesViewerDialog-6UKR5WEF.cjs → FilesViewerDialog-67WK3TZC.cjs} +11 -11
- package/dist/{FilesViewerDialog-6UKR5WEF.cjs.map → FilesViewerDialog-67WK3TZC.cjs.map} +1 -1
- package/dist/agents/index.cjs +185 -185
- package/dist/agents/tasks/ConversationListView.js +10 -2
- package/dist/agents/tasks/ConversationListView.js.map +2 -2
- package/dist/agents/tasks/TaskTable.js +5 -4
- package/dist/agents/tasks/TaskTable.js.map +2 -2
- package/dist/agents/tasks/WorkflowsTable.js +4 -5
- package/dist/agents/tasks/WorkflowsTable.js.map +2 -2
- package/dist/agents/tasks/taskColumns.js +1 -1
- package/dist/agents/tasks/taskColumns.js.map +1 -1
- package/dist/agents/tasks/taskTableLabels.js +1 -1
- package/dist/agents/tasks/taskTableLabels.js.map +1 -1
- package/dist/agents/tasks/workflowTableLabels.js +1 -1
- package/dist/agents/tasks/workflowTableLabels.js.map +1 -1
- package/dist/{chunk-P77YTTJ3.cjs → chunk-3GWWOYGS.cjs} +4 -4
- package/dist/{chunk-P77YTTJ3.cjs.map → chunk-3GWWOYGS.cjs.map} +1 -1
- package/dist/{chunk-HB2O4THB.cjs → chunk-5IZFSAEZ.cjs} +4 -4
- package/dist/{chunk-HB2O4THB.cjs.map → chunk-5IZFSAEZ.cjs.map} +1 -1
- package/dist/{chunk-DDIW4HLU.cjs → chunk-775S43W7.cjs} +19 -10
- package/dist/chunk-775S43W7.cjs.map +1 -0
- package/dist/{chunk-Y24V6HPR.cjs → chunk-BP3IJ34D.cjs} +4 -4
- package/dist/{chunk-Y24V6HPR.cjs.map → chunk-BP3IJ34D.cjs.map} +1 -1
- package/dist/{chunk-TT4IF52H.cjs → chunk-BUVIBHFU.cjs} +37 -38
- package/dist/chunk-BUVIBHFU.cjs.map +1 -0
- package/dist/{chunk-OEREKAAP.cjs → chunk-CKCG4NDB.cjs} +8 -8
- package/dist/{chunk-OEREKAAP.cjs.map → chunk-CKCG4NDB.cjs.map} +1 -1
- package/dist/{chunk-YGXOKB5Z.cjs → chunk-DFBDQKGE.cjs} +4 -4
- package/dist/{chunk-YGXOKB5Z.cjs.map → chunk-DFBDQKGE.cjs.map} +1 -1
- package/dist/{chunk-VGCTYTEW.cjs → chunk-ECLUFKYR.cjs} +4 -4
- package/dist/{chunk-VGCTYTEW.cjs.map → chunk-ECLUFKYR.cjs.map} +1 -1
- package/dist/{chunk-CPG7II4E.cjs → chunk-HA66DHW6.cjs} +28 -28
- package/dist/{chunk-CPG7II4E.cjs.map → chunk-HA66DHW6.cjs.map} +1 -1
- package/dist/{chunk-57NHXEU2.cjs → chunk-MXBXZXXQ.cjs} +5 -5
- package/dist/{chunk-57NHXEU2.cjs.map → chunk-MXBXZXXQ.cjs.map} +1 -1
- package/dist/{chunk-NNUK5ZM7.cjs → chunk-NLSWDP42.cjs} +9 -17
- package/dist/chunk-NLSWDP42.cjs.map +1 -0
- package/dist/{chunk-B2HNNG25.cjs → chunk-Q6CLWOP2.cjs} +29 -29
- package/dist/{chunk-B2HNNG25.cjs.map → chunk-Q6CLWOP2.cjs.map} +1 -1
- package/dist/{chunk-R7CJEIA5.cjs → chunk-QQWHG3KF.cjs} +5 -6
- package/dist/chunk-QQWHG3KF.cjs.map +1 -0
- package/dist/{chunk-VLCY46K6.cjs → chunk-TG2GM7WJ.cjs} +4 -3
- package/dist/chunk-TG2GM7WJ.cjs.map +1 -0
- package/dist/{chunk-QHOHDNBU.cjs → chunk-VZCPMXWC.cjs} +4 -4
- package/dist/{chunk-QHOHDNBU.cjs.map → chunk-VZCPMXWC.cjs.map} +1 -1
- package/dist/{chunk-NIE3N6OM.cjs → chunk-W6INT5GS.cjs} +5 -5
- package/dist/{chunk-NIE3N6OM.cjs.map → chunk-W6INT5GS.cjs.map} +1 -1
- package/dist/{chunk-ZPPMAL5P.cjs → chunk-WQMR3O2D.cjs} +6 -10
- package/dist/chunk-WQMR3O2D.cjs.map +1 -0
- package/dist/{chunk-SB4M3ITT.cjs → chunk-X36UR4A7.cjs} +173 -56
- package/dist/chunk-X36UR4A7.cjs.map +1 -0
- package/dist/{chunk-XKVPSOKP.cjs → chunk-YYSBWMDJ.cjs} +4 -4
- package/dist/{chunk-XKVPSOKP.cjs.map → chunk-YYSBWMDJ.cjs.map} +1 -1
- package/dist/collaboration/index.cjs +3 -3
- package/dist/collaboration/sharing/ShareControl.js +10 -2
- package/dist/collaboration/sharing/ShareControl.js.map +2 -2
- package/dist/components/SharedCell.d.ts +2 -4
- package/dist/components/SharedCell.js +4 -8
- package/dist/components/SharedCell.js.map +2 -2
- package/dist/connect/docx.cjs +9 -9
- package/dist/connect/index.cjs +595 -567
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/viewer.cjs +9 -9
- package/dist/connection/facts/factPageColumns.js +3 -9
- package/dist/connection/facts/factPageColumns.js.map +2 -2
- package/dist/connection/files/grid/cells.js +1 -3
- package/dist/connection/files/grid/cells.js.map +2 -2
- package/dist/connection/files/grid/documentColumns.js +3 -2
- package/dist/connection/files/grid/documentColumns.js.map +2 -2
- package/dist/connection/sharing/WorkspaceMembersList.d.ts +4 -0
- package/dist/connection/sharing/WorkspaceMembersList.js +34 -0
- package/dist/connection/sharing/WorkspaceMembersList.js.map +7 -0
- package/dist/connection/shell/ConnectedAppShell.js +4 -0
- package/dist/connection/shell/ConnectedAppShell.js.map +2 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js +3 -2
- package/dist/connection/viewer/ConnectedDocumentViewer.js.map +2 -2
- package/dist/connection/viewer/ViewerPdfPane.js +20 -2
- package/dist/connection/viewer/ViewerPdfPane.js.map +2 -2
- package/dist/connection/viewer/pdf/PdfPassageHighlights.d.ts +12 -0
- package/dist/connection/viewer/pdf/PdfPassageHighlights.js +36 -0
- package/dist/connection/viewer/pdf/PdfPassageHighlights.js.map +7 -0
- package/dist/connection/viewer/pdf/passageHighlights.d.ts +26 -0
- package/dist/connection/viewer/pdf/passageHighlights.js +40 -0
- package/dist/connection/viewer/pdf/passageHighlights.js.map +7 -0
- package/dist/connection/viewer/pdf/usePdfPassageHighlights.d.ts +9 -0
- package/dist/connection/viewer/pdf/usePdfPassageHighlights.js +47 -0
- package/dist/connection/viewer/pdf/usePdfPassageHighlights.js.map +7 -0
- package/dist/connection/workflows/workflowsPageLabels.js +1 -1
- package/dist/connection/workflows/workflowsPageLabels.js.map +1 -1
- package/dist/embed/index.cjs +13 -13
- package/dist/facts/factColumns.js +3 -3
- package/dist/facts/factColumns.js.map +1 -1
- package/dist/facts/index.cjs +42 -42
- package/dist/files/HtmlViewerParts.js +7 -15
- package/dist/files/HtmlViewerParts.js.map +2 -2
- package/dist/files/index.cjs +223 -223
- package/dist/index.cjs +238 -238
- package/dist/styles.css +1 -1
- package/dist/workflow-canvas/index.cjs +24 -24
- package/dist/workflow-canvas/index.cjs.map +1 -1
- package/node_modules/@arbidocs/coedit/package.json +1 -1
- package/package.json +5 -5
- package/dist/chunk-DDIW4HLU.cjs.map +0 -1
- package/dist/chunk-NNUK5ZM7.cjs.map +0 -1
- package/dist/chunk-R7CJEIA5.cjs.map +0 -1
- package/dist/chunk-SB4M3ITT.cjs.map +0 -1
- package/dist/chunk-TT4IF52H.cjs.map +0 -1
- package/dist/chunk-VLCY46K6.cjs.map +0 -1
- package/dist/chunk-ZPPMAL5P.cjs.map +0 -1
package/dist/connect/index.cjs
CHANGED
|
@@ -3,20 +3,20 @@
|
|
|
3
3
|
|
|
4
4
|
var chunkTDO5UWXF_cjs = require('../chunk-TDO5UWXF.cjs');
|
|
5
5
|
var chunkVWTOIGX4_cjs = require('../chunk-VWTOIGX4.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkHA66DHW6_cjs = require('../chunk-HA66DHW6.cjs');
|
|
7
7
|
var chunkT23UTIRI_cjs = require('../chunk-T23UTIRI.cjs');
|
|
8
8
|
var chunkPSIKUQYM_cjs = require('../chunk-PSIKUQYM.cjs');
|
|
9
9
|
var chunkKTQOGT2L_cjs = require('../chunk-KTQOGT2L.cjs');
|
|
10
|
-
var
|
|
10
|
+
var chunkQ6CLWOP2_cjs = require('../chunk-Q6CLWOP2.cjs');
|
|
11
11
|
var chunkCMGNRMPA_cjs = require('../chunk-CMGNRMPA.cjs');
|
|
12
12
|
var chunkYZ6YOOTF_cjs = require('../chunk-YZ6YOOTF.cjs');
|
|
13
13
|
var chunkKWJW5TMH_cjs = require('../chunk-KWJW5TMH.cjs');
|
|
14
|
-
var
|
|
14
|
+
var chunkCKCG4NDB_cjs = require('../chunk-CKCG4NDB.cjs');
|
|
15
15
|
var chunk557MJ4IH_cjs = require('../chunk-557MJ4IH.cjs');
|
|
16
|
-
var
|
|
17
|
-
var
|
|
16
|
+
var chunkBP3IJ34D_cjs = require('../chunk-BP3IJ34D.cjs');
|
|
17
|
+
var chunk3GWWOYGS_cjs = require('../chunk-3GWWOYGS.cjs');
|
|
18
18
|
var chunk6UTKM5AB_cjs = require('../chunk-6UTKM5AB.cjs');
|
|
19
|
-
var
|
|
19
|
+
var chunkMXBXZXXQ_cjs = require('../chunk-MXBXZXXQ.cjs');
|
|
20
20
|
var chunkTJY7XPDE_cjs = require('../chunk-TJY7XPDE.cjs');
|
|
21
21
|
var chunkH7PHOTX2_cjs = require('../chunk-H7PHOTX2.cjs');
|
|
22
22
|
var chunkE5TPRRAW_cjs = require('../chunk-E5TPRRAW.cjs');
|
|
@@ -28,14 +28,14 @@ var chunkVG5XNE4H_cjs = require('../chunk-VG5XNE4H.cjs');
|
|
|
28
28
|
var chunkDDWLMYRO_cjs = require('../chunk-DDWLMYRO.cjs');
|
|
29
29
|
var chunk4CIVQWAX_cjs = require('../chunk-4CIVQWAX.cjs');
|
|
30
30
|
var chunkPL7HUTM3_cjs = require('../chunk-PL7HUTM3.cjs');
|
|
31
|
-
var
|
|
31
|
+
var chunkDFBDQKGE_cjs = require('../chunk-DFBDQKGE.cjs');
|
|
32
32
|
var chunkKXIRVKCJ_cjs = require('../chunk-KXIRVKCJ.cjs');
|
|
33
|
-
var
|
|
33
|
+
var chunkBUVIBHFU_cjs = require('../chunk-BUVIBHFU.cjs');
|
|
34
34
|
var chunkNJCK6V6U_cjs = require('../chunk-NJCK6V6U.cjs');
|
|
35
|
-
var
|
|
35
|
+
var chunkNLSWDP42_cjs = require('../chunk-NLSWDP42.cjs');
|
|
36
36
|
var chunk223D4727_cjs = require('../chunk-223D4727.cjs');
|
|
37
37
|
var chunkSNUBQMIS_cjs = require('../chunk-SNUBQMIS.cjs');
|
|
38
|
-
var
|
|
38
|
+
var chunkECLUFKYR_cjs = require('../chunk-ECLUFKYR.cjs');
|
|
39
39
|
var chunk4ONPEVTP_cjs = require('../chunk-4ONPEVTP.cjs');
|
|
40
40
|
require('../chunk-V3KLUWQQ.cjs');
|
|
41
41
|
var chunkP5AQYC4D_cjs = require('../chunk-P5AQYC4D.cjs');
|
|
@@ -49,7 +49,7 @@ require('../chunk-JH6JTI76.cjs');
|
|
|
49
49
|
var chunkQQMMCXBP_cjs = require('../chunk-QQMMCXBP.cjs');
|
|
50
50
|
require('../chunk-DTMBAFIL.cjs');
|
|
51
51
|
require('../chunk-ZESMRGDV.cjs');
|
|
52
|
-
var
|
|
52
|
+
var chunkW6INT5GS_cjs = require('../chunk-W6INT5GS.cjs');
|
|
53
53
|
var chunkSGYSDABK_cjs = require('../chunk-SGYSDABK.cjs');
|
|
54
54
|
require('../chunk-NEGFHF3V.cjs');
|
|
55
55
|
var chunkZ3LFF3YT_cjs = require('../chunk-Z3LFF3YT.cjs');
|
|
@@ -67,20 +67,20 @@ var chunkB3LZITVF_cjs = require('../chunk-B3LZITVF.cjs');
|
|
|
67
67
|
var chunkMZZ3SBQL_cjs = require('../chunk-MZZ3SBQL.cjs');
|
|
68
68
|
var chunkNY3YUCOW_cjs = require('../chunk-NY3YUCOW.cjs');
|
|
69
69
|
var chunk325GVZE6_cjs = require('../chunk-325GVZE6.cjs');
|
|
70
|
-
require('../chunk-
|
|
70
|
+
require('../chunk-WQMR3O2D.cjs');
|
|
71
71
|
var chunkORELHENJ_cjs = require('../chunk-ORELHENJ.cjs');
|
|
72
72
|
require('../chunk-NWNVWO6L.cjs');
|
|
73
73
|
require('../chunk-SK6HQ46Q.cjs');
|
|
74
74
|
var chunkMNIQDXM6_cjs = require('../chunk-MNIQDXM6.cjs');
|
|
75
75
|
var chunkE3Y7RI3J_cjs = require('../chunk-E3Y7RI3J.cjs');
|
|
76
|
-
require('../chunk-
|
|
76
|
+
require('../chunk-TG2GM7WJ.cjs');
|
|
77
77
|
var chunkVKH3BEZE_cjs = require('../chunk-VKH3BEZE.cjs');
|
|
78
78
|
var chunkULPTSXXO_cjs = require('../chunk-ULPTSXXO.cjs');
|
|
79
79
|
var chunkZU2B2RZK_cjs = require('../chunk-ZU2B2RZK.cjs');
|
|
80
80
|
var chunkNSD37OF5_cjs = require('../chunk-NSD37OF5.cjs');
|
|
81
81
|
require('../chunk-OEJQFPWO.cjs');
|
|
82
82
|
require('../chunk-BQOL4XNZ.cjs');
|
|
83
|
-
var
|
|
83
|
+
var chunk775S43W7_cjs = require('../chunk-775S43W7.cjs');
|
|
84
84
|
var chunkQECKDZ47_cjs = require('../chunk-QECKDZ47.cjs');
|
|
85
85
|
var chunkTP5PGWIO_cjs = require('../chunk-TP5PGWIO.cjs');
|
|
86
86
|
require('../chunk-I4IS6ST6.cjs');
|
|
@@ -89,7 +89,7 @@ require('../chunk-EVZH6Z5O.cjs');
|
|
|
89
89
|
var chunkOYXWQTHF_cjs = require('../chunk-OYXWQTHF.cjs');
|
|
90
90
|
require('../chunk-S237ORM3.cjs');
|
|
91
91
|
require('../chunk-II2OEXHW.cjs');
|
|
92
|
-
require('../chunk-
|
|
92
|
+
require('../chunk-QQWHG3KF.cjs');
|
|
93
93
|
require('../chunk-3YEXZX4H.cjs');
|
|
94
94
|
var chunk4PA6VCCR_cjs = require('../chunk-4PA6VCCR.cjs');
|
|
95
95
|
require('../chunk-WXUU3COI.cjs');
|
|
@@ -256,7 +256,7 @@ function ConnectedWorkspaceActivity({
|
|
|
256
256
|
[feed.data]
|
|
257
257
|
);
|
|
258
258
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
|
-
|
|
259
|
+
chunkW6INT5GS_cjs.WorkspaceActivityList,
|
|
260
260
|
{
|
|
261
261
|
...listProps,
|
|
262
262
|
items,
|
|
@@ -1439,14 +1439,14 @@ function ConnectedOfflineStatus({ compact = false }) {
|
|
|
1439
1439
|
const openOutbox = () => openMail?.(outbox.length > 0 ? { folder: outboxFolder } : void 0);
|
|
1440
1440
|
let tone;
|
|
1441
1441
|
let label;
|
|
1442
|
-
let onOpen = pending === 0 && outbox.length + mailChanges > 0 ? openOutbox :
|
|
1442
|
+
let onOpen = pending === 0 && outbox.length + mailChanges > 0 ? openOutbox : chunkBUVIBHFU_cjs.openPendingSyncDialog;
|
|
1443
1443
|
if (!isOnline) {
|
|
1444
1444
|
tone = "offline";
|
|
1445
1445
|
label = waiting > 0 ? `Offline \xB7 ${waiting} pending` : "Offline";
|
|
1446
1446
|
} else if (failed > 0) {
|
|
1447
1447
|
tone = "failed";
|
|
1448
1448
|
label = `${plural(failed, "change", "changes")} didn\u2019t sync`;
|
|
1449
|
-
onOpen =
|
|
1449
|
+
onOpen = chunkBUVIBHFU_cjs.openPendingSyncDialog;
|
|
1450
1450
|
} else if (outboxFailed > 0) {
|
|
1451
1451
|
tone = "failed";
|
|
1452
1452
|
label = `${plural(outboxFailed, "email", "emails")} not sent`;
|
|
@@ -1578,7 +1578,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1578
1578
|
onChange: (e) => {
|
|
1579
1579
|
const file = e.target.files?.[0];
|
|
1580
1580
|
e.target.value = "";
|
|
1581
|
-
if (file) void add(() =>
|
|
1581
|
+
if (file) void add(() => chunk775S43W7_cjs.importSkillFile(file));
|
|
1582
1582
|
}
|
|
1583
1583
|
}
|
|
1584
1584
|
),
|
|
@@ -1603,7 +1603,7 @@ function ConnectedSkillUpload({ onDone, labels, className }) {
|
|
|
1603
1603
|
className: "space-y-2",
|
|
1604
1604
|
onSubmit: (e) => {
|
|
1605
1605
|
e.preventDefault();
|
|
1606
|
-
if (url.trim()) void add(() =>
|
|
1606
|
+
if (url.trim()) void add(() => chunk775S43W7_cjs.importSkillFromUrl(url));
|
|
1607
1607
|
},
|
|
1608
1608
|
children: [
|
|
1609
1609
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Label, { htmlFor: "skills-add-url", children: l.fromLink }),
|
|
@@ -1671,9 +1671,9 @@ function ConnectedSkillsLibrary({
|
|
|
1671
1671
|
const [type, setType] = react$1.useState("all");
|
|
1672
1672
|
const [view, setView] = react$1.useState("gallery");
|
|
1673
1673
|
const [isBusy, setIsBusy] = react$1.useState(false);
|
|
1674
|
-
const all = react$1.useMemo(() =>
|
|
1674
|
+
const all = react$1.useMemo(() => chunk775S43W7_cjs.buildLibrarySkills(builtins, listings ?? []), [builtins, listings]);
|
|
1675
1675
|
const shown = react$1.useMemo(
|
|
1676
|
-
() =>
|
|
1676
|
+
() => chunk775S43W7_cjs.filterLibrarySkills(all, { query, source, type }),
|
|
1677
1677
|
[all, query, source, type]
|
|
1678
1678
|
);
|
|
1679
1679
|
const current = all.find((s) => s.slug === selected) ?? null;
|
|
@@ -1684,21 +1684,21 @@ function ConnectedSkillsLibrary({
|
|
|
1684
1684
|
const count2 = (s) => all.filter((x) => x.source === s).length;
|
|
1685
1685
|
const sourceOptions = [
|
|
1686
1686
|
{ id: "all", label: "All", count: all.length },
|
|
1687
|
-
{ id: "builtin", label:
|
|
1688
|
-
{ id: "mine", label:
|
|
1689
|
-
{ id: "shared", label:
|
|
1687
|
+
{ id: "builtin", label: chunk775S43W7_cjs.SKILL_SOURCE_LABELS.builtin, count: count2("builtin") },
|
|
1688
|
+
{ id: "mine", label: chunk775S43W7_cjs.SKILL_SOURCE_LABELS.mine, count: count2("mine") },
|
|
1689
|
+
{ id: "shared", label: chunk775S43W7_cjs.SKILL_SOURCE_LABELS.shared, count: count2("shared") }
|
|
1690
1690
|
];
|
|
1691
1691
|
const types = [...new Set(all.map((s) => s.type))];
|
|
1692
1692
|
const typeOptions = [
|
|
1693
1693
|
{ id: "all", label: "Any kind" },
|
|
1694
|
-
...types.map((t) => ({ id: t, label:
|
|
1694
|
+
...types.map((t) => ({ id: t, label: chunk775S43W7_cjs.SKILL_TYPE_LABELS[t] ?? t }))
|
|
1695
1695
|
];
|
|
1696
1696
|
const pick = (slug) => {
|
|
1697
1697
|
setSelected(slug);
|
|
1698
1698
|
setMode("detail");
|
|
1699
1699
|
};
|
|
1700
1700
|
const markdownOf = async (skill) => {
|
|
1701
|
-
if (!skill.docExtId) return
|
|
1701
|
+
if (!skill.docExtId) return chunk775S43W7_cjs.workflowToSkillMarkdown(skill.workflow);
|
|
1702
1702
|
const response = await arbi.documents.download(skill.docExtId);
|
|
1703
1703
|
if (!response.ok) throw new Error(`Could not read the skill (${response.status})`);
|
|
1704
1704
|
return response.text();
|
|
@@ -1762,7 +1762,7 @@ function ConnectedSkillsLibrary({
|
|
|
1762
1762
|
try {
|
|
1763
1763
|
documentTools.downloadBlob(
|
|
1764
1764
|
new Blob([await markdownOf(skill)], { type: "text/markdown" }),
|
|
1765
|
-
|
|
1765
|
+
chunk775S43W7_cjs.SKILL_MAIN_FILENAME
|
|
1766
1766
|
);
|
|
1767
1767
|
} catch (error) {
|
|
1768
1768
|
notify19(errorText(error, "Could not export the skill"), "error");
|
|
@@ -1803,10 +1803,10 @@ function ConnectedSkillsLibrary({
|
|
|
1803
1803
|
}
|
|
1804
1804
|
)
|
|
1805
1805
|
] }),
|
|
1806
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1806
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.SkillViewToggle, { value: view, onChange: setView })
|
|
1807
1807
|
] }),
|
|
1808
1808
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
1809
|
-
|
|
1809
|
+
chunk775S43W7_cjs.SkillFilterChips,
|
|
1810
1810
|
{
|
|
1811
1811
|
label: "Show",
|
|
1812
1812
|
value: source,
|
|
@@ -1815,7 +1815,7 @@ function ConnectedSkillsLibrary({
|
|
|
1815
1815
|
}
|
|
1816
1816
|
),
|
|
1817
1817
|
types.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1818
|
-
|
|
1818
|
+
chunk775S43W7_cjs.SkillFilterChips,
|
|
1819
1819
|
{
|
|
1820
1820
|
label: "Kind",
|
|
1821
1821
|
value: type,
|
|
@@ -1862,12 +1862,12 @@ function ConnectedSkillsLibrary({
|
|
|
1862
1862
|
view === "gallery" ? "grid grid-cols-[repeat(auto-fill,minmax(9.5rem,1fr))]" : "flex flex-col"
|
|
1863
1863
|
),
|
|
1864
1864
|
children: shown.map((skill) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
1865
|
-
|
|
1865
|
+
chunk775S43W7_cjs.SkillTile,
|
|
1866
1866
|
{
|
|
1867
1867
|
name: skill.title,
|
|
1868
1868
|
testId: `skill-tile-${skill.slug}`,
|
|
1869
1869
|
description: skill.description,
|
|
1870
|
-
sourceLabel: skill.isShared ? `${
|
|
1870
|
+
sourceLabel: skill.isShared ? `${chunk775S43W7_cjs.SKILL_SOURCE_LABELS.mine}, shared` : chunk775S43W7_cjs.SKILL_SOURCE_LABELS[skill.source],
|
|
1871
1871
|
type: skill.type,
|
|
1872
1872
|
icon,
|
|
1873
1873
|
layout: view,
|
|
@@ -1902,7 +1902,7 @@ function ConnectedSkillsLibrary({
|
|
|
1902
1902
|
}
|
|
1903
1903
|
),
|
|
1904
1904
|
mode === "new" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1905
|
-
|
|
1905
|
+
chunk775S43W7_cjs.SkillGenerateForm,
|
|
1906
1906
|
{
|
|
1907
1907
|
icon,
|
|
1908
1908
|
onGenerate: (desc) => {
|
|
@@ -1929,11 +1929,11 @@ function ConnectedSkillsLibrary({
|
|
|
1929
1929
|
),
|
|
1930
1930
|
mode === "add" && /* @__PURE__ */ jsxRuntime.jsx(ConnectedSkillUpload, { onDone: done }),
|
|
1931
1931
|
mode === "detail" && current && /* @__PURE__ */ jsxRuntime.jsx(
|
|
1932
|
-
|
|
1932
|
+
chunk775S43W7_cjs.SkillLibraryDetail,
|
|
1933
1933
|
{
|
|
1934
1934
|
skill: current,
|
|
1935
1935
|
icon,
|
|
1936
|
-
instructions: current.docExtId ? currentText ?
|
|
1936
|
+
instructions: current.docExtId ? currentText ? chunk775S43W7_cjs.parseSkillFrontmatter(currentText, chunk775S43W7_cjs.SKILL_MAIN_FILENAME).content : "" : current.workflow.run.kind === "prompt" ? current.workflow.run.promptTemplate : "",
|
|
1937
1937
|
isLoading: !!current.docExtId && textLoading,
|
|
1938
1938
|
actions: {
|
|
1939
1939
|
onRun: () => onRun(current.slug),
|
|
@@ -1968,7 +1968,7 @@ function SkillEditor({
|
|
|
1968
1968
|
const [seeded, setSeeded] = react$1.useState(!isEditing);
|
|
1969
1969
|
const [nameError, setNameError] = react$1.useState(null);
|
|
1970
1970
|
if (isEditing && !seeded && text !== void 0) {
|
|
1971
|
-
const parsed =
|
|
1971
|
+
const parsed = chunk775S43W7_cjs.parseSkillFrontmatter(text, chunk775S43W7_cjs.SKILL_MAIN_FILENAME);
|
|
1972
1972
|
setDescription(parsed.description ?? "");
|
|
1973
1973
|
setBody(parsed.content ?? "");
|
|
1974
1974
|
setSeeded(true);
|
|
@@ -1982,15 +1982,15 @@ function SkillEditor({
|
|
|
1982
1982
|
notify19("Add a short description.", "error");
|
|
1983
1983
|
return;
|
|
1984
1984
|
}
|
|
1985
|
-
const slug =
|
|
1985
|
+
const slug = chunk775S43W7_cjs.skillSlug(name);
|
|
1986
1986
|
try {
|
|
1987
|
-
await onSave(slug,
|
|
1987
|
+
await onSave(slug, chunk775S43W7_cjs.serializeSkill({ name: slug, description, body }), isEditing);
|
|
1988
1988
|
} catch (err) {
|
|
1989
1989
|
notify19(errorText(err, "Could not save the skill"), "error");
|
|
1990
1990
|
}
|
|
1991
1991
|
};
|
|
1992
1992
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
1993
|
-
|
|
1993
|
+
chunk775S43W7_cjs.SkillEditForm,
|
|
1994
1994
|
{
|
|
1995
1995
|
name,
|
|
1996
1996
|
onNameChange: setName,
|
|
@@ -2083,7 +2083,7 @@ function ConnectedSkillsBrowser({
|
|
|
2083
2083
|
}
|
|
2084
2084
|
) }),
|
|
2085
2085
|
runSkillId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2086
|
-
|
|
2086
|
+
chunkQ6CLWOP2_cjs.ConnectedTaskComposer,
|
|
2087
2087
|
{
|
|
2088
2088
|
kind: "workflow",
|
|
2089
2089
|
open: true,
|
|
@@ -2107,9 +2107,9 @@ function ConnectedAgentCreator({
|
|
|
2107
2107
|
agent,
|
|
2108
2108
|
initialName,
|
|
2109
2109
|
onSaved,
|
|
2110
|
-
capabilities =
|
|
2111
|
-
templates =
|
|
2112
|
-
types =
|
|
2110
|
+
capabilities = chunk775S43W7_cjs.DEFAULT_AGENT_CAPABILITIES,
|
|
2111
|
+
templates = chunk775S43W7_cjs.DEFAULT_AGENT_TEMPLATES,
|
|
2112
|
+
types = chunk775S43W7_cjs.DEFAULT_AGENT_TYPES,
|
|
2113
2113
|
canRevokeWorkspaces = false,
|
|
2114
2114
|
labels
|
|
2115
2115
|
}) {
|
|
@@ -2151,7 +2151,7 @@ function ConnectedAgentCreator({
|
|
|
2151
2151
|
const initialValues = react$1.useMemo(
|
|
2152
2152
|
() => ({
|
|
2153
2153
|
name: agent?.given_name ?? initialName ?? "",
|
|
2154
|
-
persona: isEdit ?
|
|
2154
|
+
persona: isEdit ? chunk775S43W7_cjs.stripPersonaPreamble(String(agents.PERSONA ?? "")) : "",
|
|
2155
2155
|
modelName: String(agents.AGENT_MODEL_NAME ?? ""),
|
|
2156
2156
|
capabilities: Object.fromEntries(capabilities.map(({ key }) => [key, Boolean(agents[key])])),
|
|
2157
2157
|
type: "builtin",
|
|
@@ -2170,7 +2170,7 @@ function ConnectedAgentCreator({
|
|
|
2170
2170
|
try {
|
|
2171
2171
|
let agentExtId = agent?.external_id ?? early?.id ?? "";
|
|
2172
2172
|
if (!agentExtId) {
|
|
2173
|
-
if (!
|
|
2173
|
+
if (!chunk775S43W7_cjs.isValidAgentName(values.name)) {
|
|
2174
2174
|
notify19("Give the agent a name first.", "error");
|
|
2175
2175
|
return;
|
|
2176
2176
|
}
|
|
@@ -2206,7 +2206,7 @@ function ConnectedAgentCreator({
|
|
|
2206
2206
|
title: `agent-${name}`,
|
|
2207
2207
|
sections: {
|
|
2208
2208
|
Agents: {
|
|
2209
|
-
PERSONA:
|
|
2209
|
+
PERSONA: chunk775S43W7_cjs.composePersona(name, values.persona),
|
|
2210
2210
|
...values.modelName ? { AGENT_MODEL_NAME: values.modelName } : {},
|
|
2211
2211
|
...Object.fromEntries(capabilities.map(({ key }) => [key, !!values.capabilities[key]])),
|
|
2212
2212
|
ENABLED_SKILLS: values.capabilities.SKILLS_ENABLED && skills.length ? skills : null,
|
|
@@ -2229,7 +2229,7 @@ function ConnectedAgentCreator({
|
|
|
2229
2229
|
};
|
|
2230
2230
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2231
2231
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2232
|
-
|
|
2232
|
+
chunk775S43W7_cjs.AgentCreator,
|
|
2233
2233
|
{
|
|
2234
2234
|
open: ready,
|
|
2235
2235
|
onOpenChange,
|
|
@@ -2245,11 +2245,11 @@ function ConnectedAgentCreator({
|
|
|
2245
2245
|
) : void 0,
|
|
2246
2246
|
revokingWorkspaceId: revokeAccess.isPending ? revokeAccess.variables?.workspaceId : void 0,
|
|
2247
2247
|
avatar: (values) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
2248
|
-
|
|
2248
|
+
chunk775S43W7_cjs.AgentAvatarField,
|
|
2249
2249
|
{
|
|
2250
2250
|
picture,
|
|
2251
2251
|
isBusy: avatarBusy,
|
|
2252
|
-
canGenerate: isEdit ||
|
|
2252
|
+
canGenerate: isEdit || chunk775S43W7_cjs.isValidAgentName(values.name),
|
|
2253
2253
|
onGenerate: () => handleGenerateAvatar(values)
|
|
2254
2254
|
}
|
|
2255
2255
|
),
|
|
@@ -2301,7 +2301,7 @@ function ConnectedAgentCreator({
|
|
|
2301
2301
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: "Connect your agent" }),
|
|
2302
2302
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogDescription, { children: "This key is shown once. Run the script on the machine that will host the agent." })
|
|
2303
2303
|
] }),
|
|
2304
|
-
connect && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2304
|
+
connect && /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.AgentConnectInstructions, { email: connect.email, signingKey: connect.signingKey })
|
|
2305
2305
|
]
|
|
2306
2306
|
}
|
|
2307
2307
|
) })
|
|
@@ -2693,7 +2693,7 @@ function useMemoryCount(enabled) {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
2695
2695
|
const { notify: notify19, openConversation, openDocument } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2696
|
-
const people =
|
|
2696
|
+
const people = chunkQ6CLWOP2_cjs.useTaskPeople();
|
|
2697
2697
|
const canEditShared = react.useCanEditShared();
|
|
2698
2698
|
const isWorkspaceOwner = react.useIsWorkspaceOwner();
|
|
2699
2699
|
const { data: workflows = [] } = react.useWorkflows({ live: true });
|
|
@@ -2719,7 +2719,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2719
2719
|
}, [documents]);
|
|
2720
2720
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
2721
2721
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2722
|
-
|
|
2722
|
+
chunk775S43W7_cjs.TaskTable,
|
|
2723
2723
|
{
|
|
2724
2724
|
tasks,
|
|
2725
2725
|
isLoading,
|
|
@@ -2746,7 +2746,7 @@ function AgentsTasks({ tasks, isLoading, agents, labels: l, onCompose }) {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
),
|
|
2748
2748
|
activityFor && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2749
|
-
|
|
2749
|
+
chunkQ6CLWOP2_cjs.ConnectedTaskActivityDialog,
|
|
2750
2750
|
{
|
|
2751
2751
|
conversationId: activityFor.external_id,
|
|
2752
2752
|
taskName: activityFor.title || l.untitledTask,
|
|
@@ -2785,7 +2785,7 @@ function AgentsLauncher({ workflows, renderIcon, labels: l, testId }) {
|
|
|
2785
2785
|
[workflows, skills, l.skillFiles]
|
|
2786
2786
|
);
|
|
2787
2787
|
const launch = async ({ workflow, inputs, agentId }) => {
|
|
2788
|
-
const values =
|
|
2788
|
+
const values = chunk775S43W7_cjs.defaultTaskComposerValues(launchable, {
|
|
2789
2789
|
workflowId: workflow.id,
|
|
2790
2790
|
assignee: "agent",
|
|
2791
2791
|
inputs,
|
|
@@ -2905,7 +2905,7 @@ function ConnectedAgentsPageScope(props) {
|
|
|
2905
2905
|
children,
|
|
2906
2906
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentCreator, { ...management.editorProps, ...agentOptions.creator }),
|
|
2907
2907
|
taskDialog && /* @__PURE__ */ jsxRuntime.jsx(
|
|
2908
|
-
|
|
2908
|
+
chunkQ6CLWOP2_cjs.ConnectedTaskComposer,
|
|
2909
2909
|
{
|
|
2910
2910
|
open: true,
|
|
2911
2911
|
onOpenChange: (open) => !open && setTaskDialog(null),
|
|
@@ -2927,7 +2927,7 @@ function AgentsGallery() {
|
|
|
2927
2927
|
cardTestIds
|
|
2928
2928
|
} = agentOptions;
|
|
2929
2929
|
const { openConversation } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
2930
|
-
const tasksByAgent = react$1.useMemo(() =>
|
|
2930
|
+
const tasksByAgent = react$1.useMemo(() => chunk775S43W7_cjs.groupAgentTasks(tasks), [tasks]);
|
|
2931
2931
|
const behaviour = useAgentBehaviour(l.defaultBehaviour, details.includes("behaviour"));
|
|
2932
2932
|
const { agents } = management;
|
|
2933
2933
|
const cardDetails = (agent) => details.map(
|
|
@@ -2942,7 +2942,7 @@ function AgentsGallery() {
|
|
|
2942
2942
|
) : detail === "workspaces" ? /* @__PURE__ */ jsxRuntime.jsx(AgentWorkspaceAccess, { agentExtId: agent.external_id, labels: l }, detail) : /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: behaviour.behaviourOf(agent.given_name) }, detail)
|
|
2943
2943
|
);
|
|
2944
2944
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2945
|
-
|
|
2945
|
+
chunk775S43W7_cjs.AgentGallery,
|
|
2946
2946
|
{
|
|
2947
2947
|
count: agents.length,
|
|
2948
2948
|
onCreate: management.create,
|
|
@@ -2952,9 +2952,9 @@ function AgentsGallery() {
|
|
|
2952
2952
|
const agentTasks = tasksByAgent.get(agent.external_id) ?? [];
|
|
2953
2953
|
const running = agentTasks.filter((t) => t.in_progress);
|
|
2954
2954
|
const watchConversationId = running[0]?.external_id ?? null;
|
|
2955
|
-
const progress = agentTasks[0] ?
|
|
2955
|
+
const progress = agentTasks[0] ? chunk775S43W7_cjs.goalProgress(agentTasks[0]) : null;
|
|
2956
2956
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
2957
|
-
|
|
2957
|
+
chunk775S43W7_cjs.AgentCard,
|
|
2958
2958
|
{
|
|
2959
2959
|
name: displayName(agent),
|
|
2960
2960
|
avatar: /* @__PURE__ */ jsxRuntime.jsx(AgentInitialsAvatar, { agent }),
|
|
@@ -3062,7 +3062,7 @@ function AgentsSectionBody({ id }) {
|
|
|
3062
3062
|
) });
|
|
3063
3063
|
case "scheduled":
|
|
3064
3064
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex h-[min(32rem,70dvh)] min-h-64 flex-col", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
3065
|
-
|
|
3065
|
+
chunkECLUFKYR_cjs.ConnectedWorkflowsTable,
|
|
3066
3066
|
{
|
|
3067
3067
|
filter: "scheduled",
|
|
3068
3068
|
onEdit: (w) => openWorkflow?.(w.external_id),
|
|
@@ -3366,7 +3366,7 @@ function ConnectedTagTable({
|
|
|
3366
3366
|
const fail2 = (fallback) => (e) => notify19(browser.refusalReason(e, fallback), "error");
|
|
3367
3367
|
const snapshot2 = (data) => {
|
|
3368
3368
|
const title = exportTitle ?? ui.tagKindTitle(kind, { plural: true });
|
|
3369
|
-
const bytes =
|
|
3369
|
+
const bytes = chunkW6INT5GS_cjs.tagTableDocx(data, {
|
|
3370
3370
|
title,
|
|
3371
3371
|
nameOf: (id) => people.find((p) => p.value === id)?.label
|
|
3372
3372
|
});
|
|
@@ -3375,7 +3375,7 @@ function ConnectedTagTable({
|
|
|
3375
3375
|
return { blob: new Blob([bytes], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }), name };
|
|
3376
3376
|
};
|
|
3377
3377
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3378
|
-
|
|
3378
|
+
chunkW6INT5GS_cjs.TagTable,
|
|
3379
3379
|
{
|
|
3380
3380
|
...props,
|
|
3381
3381
|
table,
|
|
@@ -3465,8 +3465,8 @@ function ConnectedAiReview({
|
|
|
3465
3465
|
const generate = react.useGenerateDocTags();
|
|
3466
3466
|
const { data: liveDocs = [] } = react.useDocuments();
|
|
3467
3467
|
const { data: tags = [] } = react.useTags();
|
|
3468
|
-
const result =
|
|
3469
|
-
const setResult =
|
|
3468
|
+
const result = chunkDFBDQKGE_cjs.useAiReviewStore((s) => s.run);
|
|
3469
|
+
const setResult = chunkDFBDQKGE_cjs.useAiReviewStore((s) => s.setRun);
|
|
3470
3470
|
const phase = result ? "review" : "ask";
|
|
3471
3471
|
const docCount = documents.length;
|
|
3472
3472
|
const scope = allDocuments ? "processed" : "selected";
|
|
@@ -3701,7 +3701,7 @@ function ConnectedAiReview({
|
|
|
3701
3701
|
}, [kind]);
|
|
3702
3702
|
const description = phase === "ask" ? assistant.reviewEach(docCount, scope) : aiCellsTotal > 0 ? reviewProgress(aiCellsDone, aiCellsEmpty, aiCellsTotal) : `Applied to ${rows.length} document${plural2(rows.length)}`;
|
|
3703
3703
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
3704
|
-
|
|
3704
|
+
chunkNLSWDP42_cjs.AiReviewDialogView,
|
|
3705
3705
|
{
|
|
3706
3706
|
open,
|
|
3707
3707
|
onOpenChange: handleOpenChange,
|
|
@@ -3752,9 +3752,9 @@ function GlossaryExport({ labelId, nameOf }) {
|
|
|
3752
3752
|
const narrowed = agreements.find((a) => a.id === narrowTo);
|
|
3753
3753
|
const title = narrowed ? `Glossary - ${narrowed.name}` : "Glossary";
|
|
3754
3754
|
const download = (format) => {
|
|
3755
|
-
const entries =
|
|
3756
|
-
const blob = format === "docx" ? new Blob([
|
|
3757
|
-
documentTools.downloadBlob(blob,
|
|
3755
|
+
const entries = chunkW6INT5GS_cjs.glossaryEntries(sources, { labelId: narrowed?.id });
|
|
3756
|
+
const blob = format === "docx" ? new Blob([chunkW6INT5GS_cjs.glossaryDocx(entries, { title })], { type: chunkUKOYN2WD_cjs.DOCX_MIME_TYPE }) : new Blob([chunkW6INT5GS_cjs.glossaryMarkdown(entries, { title })], { type: "text/markdown" });
|
|
3757
|
+
documentTools.downloadBlob(blob, chunkW6INT5GS_cjs.glossaryFileName(title, format));
|
|
3758
3758
|
};
|
|
3759
3759
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex items-center gap-2", "data-testid": "tags-glossary", children: [
|
|
3760
3760
|
agreements.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -3818,8 +3818,8 @@ function useOpenTaggedContent() {
|
|
|
3818
3818
|
if (!workspaceId) return;
|
|
3819
3819
|
session.setTransientView("topbar.filter", "");
|
|
3820
3820
|
if (kind === "documents") {
|
|
3821
|
-
|
|
3822
|
-
|
|
3821
|
+
chunkDFBDQKGE_cjs.useFilesPrefs.getState().setDocumentFilters({ [tagId]: "include" });
|
|
3822
|
+
chunkDFBDQKGE_cjs.useFilesPrefs.getState().setViewMode("grid");
|
|
3823
3823
|
session.setPage("documents");
|
|
3824
3824
|
} else if (kind === "facts") {
|
|
3825
3825
|
session.setViewFilter(FACTS_FILTER_KEY, { [tagId]: "include" });
|
|
@@ -3858,7 +3858,7 @@ function ConnectedTagForm({
|
|
|
3858
3858
|
nameByKind = false
|
|
3859
3859
|
}) {
|
|
3860
3860
|
const isCreate = !tag;
|
|
3861
|
-
const memberById =
|
|
3861
|
+
const memberById = chunkHA66DHW6_cjs.useMemberLookup();
|
|
3862
3862
|
const creator = memberById(tag?.created_by_ext_id);
|
|
3863
3863
|
const updater = memberById(tag?.updated_by_ext_id);
|
|
3864
3864
|
const fieldLabel = ui.getEntityLabel("TAG", "SINGULAR");
|
|
@@ -3937,19 +3937,19 @@ function ConnectedTagForm({
|
|
|
3937
3937
|
metaLines.push({
|
|
3938
3938
|
text: `Created ${ui.formatFriendlyDate(tag.created_at)}`,
|
|
3939
3939
|
byLabel: "by",
|
|
3940
|
-
by: creator ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3940
|
+
by: creator ? /* @__PURE__ */ jsxRuntime.jsx(chunk3GWWOYGS_cjs.DocumentUser, { user: creator }) : void 0
|
|
3941
3941
|
});
|
|
3942
3942
|
if (tag.updated_at && tag.updated_at !== tag.created_at) {
|
|
3943
3943
|
metaLines.push({
|
|
3944
3944
|
text: `Updated ${ui.formatFriendlyDate(tag.updated_at)}`,
|
|
3945
3945
|
byLabel: "by",
|
|
3946
|
-
by: updater ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
3946
|
+
by: updater ? /* @__PURE__ */ jsxRuntime.jsx(chunk3GWWOYGS_cjs.DocumentUser, { user: updater }) : void 0
|
|
3947
3947
|
});
|
|
3948
3948
|
}
|
|
3949
3949
|
}
|
|
3950
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
3950
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.TagFormRoot, { children: [
|
|
3951
3951
|
!nameOnRow && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3952
|
-
|
|
3952
|
+
chunkNLSWDP42_cjs.TagFormNameField,
|
|
3953
3953
|
{
|
|
3954
3954
|
label: group || nameByKind ? `${ui.tagKindTitle(kind)} Name` : `${columnLabel} Name`,
|
|
3955
3955
|
placeholder: `Enter ${kindNoun ?? columnLabel.toLowerCase()} name...`,
|
|
@@ -3959,7 +3959,7 @@ function ConnectedTagForm({
|
|
|
3959
3959
|
}
|
|
3960
3960
|
),
|
|
3961
3961
|
kinds.length > 1 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3962
|
-
|
|
3962
|
+
chunkNLSWDP42_cjs.TagFormSelectField,
|
|
3963
3963
|
{
|
|
3964
3964
|
label: "Kind",
|
|
3965
3965
|
testId: "inline-tag-form-kind-field",
|
|
@@ -3974,7 +3974,7 @@ function ConnectedTagForm({
|
|
|
3974
3974
|
}
|
|
3975
3975
|
),
|
|
3976
3976
|
kind === "annotation" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3977
|
-
|
|
3977
|
+
chunkNLSWDP42_cjs.TagFormSelectField,
|
|
3978
3978
|
{
|
|
3979
3979
|
label: group === "annotation" ? "Value type" : "Field Type",
|
|
3980
3980
|
testId: "inline-tag-form-type-field",
|
|
@@ -3986,7 +3986,7 @@ function ConnectedTagForm({
|
|
|
3986
3986
|
}
|
|
3987
3987
|
),
|
|
3988
3988
|
showParentPicker && /* @__PURE__ */ jsxRuntime.jsx(
|
|
3989
|
-
|
|
3989
|
+
chunkNLSWDP42_cjs.TagFormSelectField,
|
|
3990
3990
|
{
|
|
3991
3991
|
label: "Nested Under",
|
|
3992
3992
|
value: parentId,
|
|
@@ -4008,14 +4008,14 @@ function ConnectedTagForm({
|
|
|
4008
4008
|
]
|
|
4009
4009
|
}
|
|
4010
4010
|
),
|
|
4011
|
-
nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4011
|
+
nestingEnabled && hasChildren && /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.TagFormNote, { testId: "inline-tag-form-parent-locked", children: [
|
|
4012
4012
|
"Other fields are nested under this one, so it cannot itself be nested \u2014 fields nest",
|
|
4013
4013
|
" ",
|
|
4014
4014
|
browser.TAG_NESTING_MAX_DEPTH,
|
|
4015
4015
|
" levels deep."
|
|
4016
4016
|
] }),
|
|
4017
4017
|
tagType === "select" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4018
|
-
|
|
4018
|
+
chunkNLSWDP42_cjs.TagFormOptionsEditor,
|
|
4019
4019
|
{
|
|
4020
4020
|
label: "Options",
|
|
4021
4021
|
options,
|
|
@@ -4028,7 +4028,7 @@ function ConnectedTagForm({
|
|
|
4028
4028
|
}
|
|
4029
4029
|
),
|
|
4030
4030
|
tagType === "text" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4031
|
-
|
|
4031
|
+
chunkNLSWDP42_cjs.TagFormInstructionField,
|
|
4032
4032
|
{
|
|
4033
4033
|
label: "AI Instruction",
|
|
4034
4034
|
optionalLabel: "(optional)",
|
|
@@ -4038,12 +4038,12 @@ function ConnectedTagForm({
|
|
|
4038
4038
|
onChange: setInstruction
|
|
4039
4039
|
}
|
|
4040
4040
|
),
|
|
4041
|
-
metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
4041
|
+
metaLines.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.TagFormMeta, { lines: metaLines }),
|
|
4042
4042
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4043
|
-
|
|
4043
|
+
chunkNLSWDP42_cjs.TagFormFooter,
|
|
4044
4044
|
{
|
|
4045
4045
|
sharedToggle: isCreate || !group ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
4046
|
-
|
|
4046
|
+
chunkNLSWDP42_cjs.TagFormSharedToggle,
|
|
4047
4047
|
{
|
|
4048
4048
|
label: "Shared with workspace",
|
|
4049
4049
|
toggle: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -4283,7 +4283,7 @@ function KindSection({
|
|
|
4283
4283
|
{
|
|
4284
4284
|
testId: `tags-kind-${kind}`,
|
|
4285
4285
|
title: ui.tagKindTitle(kind, { plural: true }),
|
|
4286
|
-
description:
|
|
4286
|
+
description: chunkW6INT5GS_cjs.tagKindDescription(kind),
|
|
4287
4287
|
children: [
|
|
4288
4288
|
browser.isEntityTag({ kind }) && extractingCount > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
4289
4289
|
"p",
|
|
@@ -4293,9 +4293,9 @@ function KindSection({
|
|
|
4293
4293
|
children: [
|
|
4294
4294
|
/* @__PURE__ */ jsxRuntime.jsx(lucideReact.Loader2, { className: "size-4 animate-spin" }),
|
|
4295
4295
|
"Extracting ",
|
|
4296
|
-
|
|
4296
|
+
chunkW6INT5GS_cjs.entitiesPhrase().toLowerCase(),
|
|
4297
4297
|
" from ",
|
|
4298
|
-
|
|
4298
|
+
chunkW6INT5GS_cjs.documentCount(extractingCount),
|
|
4299
4299
|
"\u2026"
|
|
4300
4300
|
]
|
|
4301
4301
|
}
|
|
@@ -4313,7 +4313,7 @@ function KindSection({
|
|
|
4313
4313
|
onOpenTag: ctx.onOpenTag,
|
|
4314
4314
|
onOpenRow: ctx.onOpenTag,
|
|
4315
4315
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4316
|
-
labels:
|
|
4316
|
+
labels: chunkW6INT5GS_cjs.tagTableLabels(kind),
|
|
4317
4317
|
testId: `tags-table-${kind}`
|
|
4318
4318
|
}
|
|
4319
4319
|
)
|
|
@@ -4421,15 +4421,15 @@ function TagSection({
|
|
|
4421
4421
|
onOpenTag: ctx.onOpenTag,
|
|
4422
4422
|
onOpenRow: ctx.onOpenTag,
|
|
4423
4423
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4424
|
-
labels:
|
|
4424
|
+
labels: chunkW6INT5GS_cjs.tagTableLabels(tag.kind),
|
|
4425
4425
|
testId: "tags-rows"
|
|
4426
4426
|
}
|
|
4427
4427
|
),
|
|
4428
4428
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4429
|
-
|
|
4429
|
+
chunkW6INT5GS_cjs.TagDetail,
|
|
4430
4430
|
{
|
|
4431
4431
|
onOpenTaggedItems: ctx.onOpenTaggedItems,
|
|
4432
|
-
fieldLabels:
|
|
4432
|
+
fieldLabels: chunkW6INT5GS_cjs.tagTableLabels(tag.kind),
|
|
4433
4433
|
row: detailRow,
|
|
4434
4434
|
fields: schema.data?.fields ?? [],
|
|
4435
4435
|
isLoading: detail.isLoading,
|
|
@@ -4443,7 +4443,7 @@ function TagSection({
|
|
|
4443
4443
|
throw e;
|
|
4444
4444
|
})
|
|
4445
4445
|
),
|
|
4446
|
-
labels:
|
|
4446
|
+
labels: chunkW6INT5GS_cjs.tagDetailLabels(),
|
|
4447
4447
|
testId: "tags-detail"
|
|
4448
4448
|
}
|
|
4449
4449
|
)
|
|
@@ -4466,9 +4466,9 @@ var TAG_FILTER_FIELDS = [
|
|
|
4466
4466
|
function ConnectedTagsPage() {
|
|
4467
4467
|
const { confirm, notify: notify19, openSmartSearch } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
4468
4468
|
const onOpenTaggedItems = useOpenTaggedContent();
|
|
4469
|
-
const setReviewOpen =
|
|
4470
|
-
const setReviewRun =
|
|
4471
|
-
const reviewOpen =
|
|
4469
|
+
const setReviewOpen = chunkDFBDQKGE_cjs.useAiReviewStore((state) => state.setOpen);
|
|
4470
|
+
const setReviewRun = chunkDFBDQKGE_cjs.useAiReviewStore((state) => state.setRun);
|
|
4471
|
+
const reviewOpen = chunkDFBDQKGE_cjs.useAiReviewStore((state) => state.open);
|
|
4472
4472
|
const [review, setReview] = react$1.useState(null);
|
|
4473
4473
|
const { data: tags } = chunkHQDR43JC_cjs.useConnectedTags();
|
|
4474
4474
|
const { data: documents } = chunkHQDR43JC_cjs.useConnectedDocuments();
|
|
@@ -4518,7 +4518,7 @@ function ConnectedTagsPage() {
|
|
|
4518
4518
|
const onDelete = async (t) => {
|
|
4519
4519
|
const nested = browser.getChildTags([...tags], t.external_id);
|
|
4520
4520
|
const uses = browser.tagUseCount(t);
|
|
4521
|
-
const n2 =
|
|
4521
|
+
const n2 = chunkW6INT5GS_cjs.tagsPageNouns();
|
|
4522
4522
|
const tagNoun = (count2) => (count2 === 1 ? n2.tag : n2.tags).toLowerCase();
|
|
4523
4523
|
const carriers = uses === 1 ? `${n2.document}, ${n2.fact} or ${n2.thread}` : `${n2.documents}, ${n2.facts} and ${n2.threads}`;
|
|
4524
4524
|
const message = `Delete ${ui.tagKindNouns(t.kind).singular} "${t.name}"?` + (uses > 0 ? `
|
|
@@ -4539,11 +4539,11 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4539
4539
|
try {
|
|
4540
4540
|
await extract.mutateAsync(docIds);
|
|
4541
4541
|
notify19(
|
|
4542
|
-
`Extracting ${
|
|
4542
|
+
`Extracting ${chunkW6INT5GS_cjs.entitiesPhrase().toLowerCase()} from ${chunkW6INT5GS_cjs.documentCount(docIds.length)}. You will be notified when it is done.`,
|
|
4543
4543
|
"info"
|
|
4544
4544
|
);
|
|
4545
4545
|
} catch (error) {
|
|
4546
|
-
notify19(browser.refusalReason(error, `Could not extract ${
|
|
4546
|
+
notify19(browser.refusalReason(error, `Could not extract ${chunkW6INT5GS_cjs.entitiesPhrase().toLowerCase()}`), "error");
|
|
4547
4547
|
throw error;
|
|
4548
4548
|
}
|
|
4549
4549
|
};
|
|
@@ -4557,10 +4557,10 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4557
4557
|
onOpenTag: openTag,
|
|
4558
4558
|
onOpenTaggedItems
|
|
4559
4559
|
};
|
|
4560
|
-
const n =
|
|
4560
|
+
const n = chunkW6INT5GS_cjs.tagsPageNouns();
|
|
4561
4561
|
const action = view === "person" || view === "organisation" ? {
|
|
4562
4562
|
label: "Extract",
|
|
4563
|
-
title: `Extract ${
|
|
4563
|
+
title: `Extract ${chunkW6INT5GS_cjs.entitiesPhrase().toLowerCase()} from ${n.documents.toLowerCase()}`,
|
|
4564
4564
|
icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Sparkles, { className: "h-4 w-4" }),
|
|
4565
4565
|
run: () => setExtracting(true),
|
|
4566
4566
|
testId: "tags-extract-entities"
|
|
@@ -4614,7 +4614,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4614
4614
|
onTabChange: () => {
|
|
4615
4615
|
},
|
|
4616
4616
|
variant: "underline",
|
|
4617
|
-
firstTabContent: tag ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(
|
|
4617
|
+
firstTabContent: tag ? void 0 : /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FilesFilterBar, { className: "flex-none", "data-testid": "tags-header-actions", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4618
4618
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
4619
4619
|
{
|
|
4620
4620
|
value: filterText,
|
|
@@ -4636,7 +4636,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4636
4636
|
filter: tagFilter
|
|
4637
4637
|
}
|
|
4638
4638
|
) }),
|
|
4639
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4639
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FilesViewCenter, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
4640
4640
|
chunkSNUBQMIS_cjs.ViewToggle,
|
|
4641
4641
|
{
|
|
4642
4642
|
options: browser.TAG_KINDS.map((k) => ({
|
|
@@ -4729,7 +4729,7 @@ ${nested.length} nested ${tagNoun(nested.length)} ${nested.length === 1 ? "moves
|
|
|
4729
4729
|
}
|
|
4730
4730
|
),
|
|
4731
4731
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
4732
|
-
|
|
4732
|
+
chunkW6INT5GS_cjs.ExtractEntitiesDialog,
|
|
4733
4733
|
{
|
|
4734
4734
|
open: extracting,
|
|
4735
4735
|
onOpenChange: setExtracting,
|
|
@@ -5317,7 +5317,7 @@ function ConnectedExportPanel({
|
|
|
5317
5317
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", "data-testid": "export-documents", children: [
|
|
5318
5318
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex-1 overflow-auto space-y-6 p-6", children: [
|
|
5319
5319
|
jobRunning && job && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5320
|
-
|
|
5320
|
+
chunkNLSWDP42_cjs.TransferProgressView,
|
|
5321
5321
|
{
|
|
5322
5322
|
title: `${job.mode === "move" ? "Moving" : "Copying"} to ${targetName(job.target_workspace_ext_id)}`,
|
|
5323
5323
|
processed: job.processed ?? 0,
|
|
@@ -5330,7 +5330,7 @@ function ConnectedExportPanel({
|
|
|
5330
5330
|
),
|
|
5331
5331
|
jobDone && job && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5332
5332
|
react.isTransferResumable(job) && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5333
|
-
|
|
5333
|
+
chunkNLSWDP42_cjs.TransferResumeBanner,
|
|
5334
5334
|
{
|
|
5335
5335
|
message: `Stopped at ${job.processed} of ${job.total}. Resume to finish \u2014 nothing is copied twice.`,
|
|
5336
5336
|
onResume: () => handleResume(job),
|
|
@@ -5338,7 +5338,7 @@ function ConnectedExportPanel({
|
|
|
5338
5338
|
}
|
|
5339
5339
|
),
|
|
5340
5340
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5341
|
-
|
|
5341
|
+
chunkNLSWDP42_cjs.ExportResultsReport,
|
|
5342
5342
|
{
|
|
5343
5343
|
summary: `${job.mode === "move" ? "Moved" : "Copied"} ${plural3(
|
|
5344
5344
|
Number(job.counts?.copied ?? 0) + Number(job.counts?.removed ?? 0),
|
|
@@ -5351,7 +5351,7 @@ function ConnectedExportPanel({
|
|
|
5351
5351
|
] }),
|
|
5352
5352
|
!jobId && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5353
5353
|
resumable && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5354
|
-
|
|
5354
|
+
chunkNLSWDP42_cjs.TransferResumeBanner,
|
|
5355
5355
|
{
|
|
5356
5356
|
message: `A ${resumable.mode} to ${targetName(resumable.target_workspace_ext_id)} stopped at ${resumable.processed} of ${resumable.total}.`,
|
|
5357
5357
|
onResume: () => handleResume(resumable),
|
|
@@ -5359,7 +5359,7 @@ function ConnectedExportPanel({
|
|
|
5359
5359
|
}
|
|
5360
5360
|
),
|
|
5361
5361
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5362
|
-
|
|
5362
|
+
chunkNLSWDP42_cjs.TransferScopeChooser,
|
|
5363
5363
|
{
|
|
5364
5364
|
scope: scopeChoice,
|
|
5365
5365
|
onScopeChange: setScopeChoice,
|
|
@@ -5370,7 +5370,7 @@ function ConnectedExportPanel({
|
|
|
5370
5370
|
}
|
|
5371
5371
|
),
|
|
5372
5372
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5373
|
-
|
|
5373
|
+
chunkNLSWDP42_cjs.TransferKindsPicker,
|
|
5374
5374
|
{
|
|
5375
5375
|
options: ALL_KINDS.map((kind) => ({
|
|
5376
5376
|
kind,
|
|
@@ -5383,9 +5383,9 @@ function ConnectedExportPanel({
|
|
|
5383
5383
|
)
|
|
5384
5384
|
}
|
|
5385
5385
|
),
|
|
5386
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5386
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.TransferReferencesChooser, { value: references, onChange: setReferences }),
|
|
5387
5387
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5388
|
-
|
|
5388
|
+
chunkNLSWDP42_cjs.ExportMethodChooser,
|
|
5389
5389
|
{
|
|
5390
5390
|
mode,
|
|
5391
5391
|
onModeChange: setMode,
|
|
@@ -5397,17 +5397,17 @@ function ConnectedExportPanel({
|
|
|
5397
5397
|
),
|
|
5398
5398
|
mode !== "download" && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
5399
5399
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5400
|
-
|
|
5400
|
+
chunkNLSWDP42_cjs.ExportWorkspacePicker,
|
|
5401
5401
|
{
|
|
5402
5402
|
workspaces: workspaceOptions,
|
|
5403
5403
|
selectedId: targetId,
|
|
5404
5404
|
onSelect: setTargetId
|
|
5405
5405
|
}
|
|
5406
5406
|
),
|
|
5407
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5407
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.TransferConflictChooser, { value: conflict, onChange: setConflict })
|
|
5408
5408
|
] }),
|
|
5409
5409
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5410
|
-
|
|
5410
|
+
chunkNLSWDP42_cjs.TransferPlanSummary,
|
|
5411
5411
|
{
|
|
5412
5412
|
lines: summary.lines,
|
|
5413
5413
|
warnings: summary.warnings,
|
|
@@ -5424,7 +5424,7 @@ function ConnectedExportPanel({
|
|
|
5424
5424
|
] })
|
|
5425
5425
|
] }),
|
|
5426
5426
|
!jobId && /* @__PURE__ */ jsxRuntime.jsx(
|
|
5427
|
-
|
|
5427
|
+
chunkNLSWDP42_cjs.ExportFooter,
|
|
5428
5428
|
{
|
|
5429
5429
|
onCancel: onClose,
|
|
5430
5430
|
onSubmit: handleSubmit,
|
|
@@ -5465,7 +5465,7 @@ function OpenExportDialog({
|
|
|
5465
5465
|
children: [
|
|
5466
5466
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkULWRNGGE_cjs.ModalHeader, { children: [
|
|
5467
5467
|
/* @__PURE__ */ jsxRuntime.jsx(ui.DialogTitle, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
5468
|
-
|
|
5468
|
+
chunkNLSWDP42_cjs.ExportModalTitle,
|
|
5469
5469
|
{
|
|
5470
5470
|
workspace: workspace ? {
|
|
5471
5471
|
icon: /* @__PURE__ */ jsxRuntime.jsx("span", { className: "touch-hit inline-flex", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -5882,7 +5882,7 @@ function ConnectedFieldsEditor({
|
|
|
5882
5882
|
const [sortBy, setSortBy] = react$1.useState("name-asc");
|
|
5883
5883
|
const [filterText, setFilterText] = react$1.useState("");
|
|
5884
5884
|
const fieldRows = react$1.useMemo(
|
|
5885
|
-
() => browser.flattenTagTree(
|
|
5885
|
+
() => browser.flattenTagTree(chunkNLSWDP42_cjs.sortFields(chunkNLSWDP42_cjs.filterFieldsByName(tags, filterText), sortBy)),
|
|
5886
5886
|
[tags, filterText, sortBy]
|
|
5887
5887
|
);
|
|
5888
5888
|
const exportItems = react$1.useMemo(
|
|
@@ -5902,7 +5902,7 @@ function ConnectedFieldsEditor({
|
|
|
5902
5902
|
setIsDeleting(false);
|
|
5903
5903
|
}
|
|
5904
5904
|
};
|
|
5905
|
-
const copy =
|
|
5905
|
+
const copy = chunkNLSWDP42_cjs.fieldsApplyBarCopy({
|
|
5906
5906
|
nouns,
|
|
5907
5907
|
targetNoun,
|
|
5908
5908
|
fieldCount,
|
|
@@ -5911,9 +5911,9 @@ function ConnectedFieldsEditor({
|
|
|
5911
5911
|
isApplying,
|
|
5912
5912
|
isClearing
|
|
5913
5913
|
});
|
|
5914
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
5914
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.FieldsEditorRoot, { children: [
|
|
5915
5915
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
5916
|
-
|
|
5916
|
+
chunkNLSWDP42_cjs.FieldsEditorToolbar,
|
|
5917
5917
|
{
|
|
5918
5918
|
nouns,
|
|
5919
5919
|
onNew: () => {
|
|
@@ -5941,11 +5941,11 @@ function ConnectedFieldsEditor({
|
|
|
5941
5941
|
onSortByChange: setSortBy
|
|
5942
5942
|
}
|
|
5943
5943
|
),
|
|
5944
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
5944
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.FieldsEditorList, { children: [
|
|
5945
5945
|
fieldRows.map(({ tag, depth, childCount }) => {
|
|
5946
5946
|
const isEditingThis = editingTagId === tag.external_id;
|
|
5947
5947
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
5948
|
-
|
|
5948
|
+
chunkNLSWDP42_cjs.FieldRow,
|
|
5949
5949
|
{
|
|
5950
5950
|
tagId: tag.external_id,
|
|
5951
5951
|
name: tag.name,
|
|
@@ -5998,10 +5998,10 @@ function ConnectedFieldsEditor({
|
|
|
5998
5998
|
tag.external_id
|
|
5999
5999
|
);
|
|
6000
6000
|
}),
|
|
6001
|
-
fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(
|
|
6001
|
+
fieldRows.length === 0 && !isCreatingTag && /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FieldsEmptyState, { children: chunkNLSWDP42_cjs.fieldsEmptyText({ nouns, filterText, hasKind: !!kind }) })
|
|
6002
6002
|
] }),
|
|
6003
6003
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6004
|
-
|
|
6004
|
+
chunkNLSWDP42_cjs.FieldsApplyBar,
|
|
6005
6005
|
{
|
|
6006
6006
|
hint: copy.hint,
|
|
6007
6007
|
applyLabel: copy.applyLabel,
|
|
@@ -6077,8 +6077,8 @@ function ConnectedFieldsManager({
|
|
|
6077
6077
|
}
|
|
6078
6078
|
);
|
|
6079
6079
|
const body = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
6080
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6081
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6080
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FieldsManagerDefinition, { children: DEFINITIONS[activeKind] }),
|
|
6081
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FieldsManagerBody, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
6082
6082
|
ConnectedFieldsEditor,
|
|
6083
6083
|
{
|
|
6084
6084
|
group: activeKind,
|
|
@@ -6090,7 +6090,7 @@ function ConnectedFieldsManager({
|
|
|
6090
6090
|
] });
|
|
6091
6091
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex flex-col h-full", children: [
|
|
6092
6092
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkNJCK6V6U_cjs.DraggableHeader, { children: [
|
|
6093
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6093
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FieldsManagerTitle, { title, className: "px-4 pt-3.5 pb-2" }),
|
|
6094
6094
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "px-3", children: tabHeader })
|
|
6095
6095
|
] }),
|
|
6096
6096
|
body
|
|
@@ -6119,7 +6119,7 @@ function ConnectedFieldsManagerPanel({
|
|
|
6119
6119
|
const [createRequest, setCreateRequest] = react.useTransientView(FIELDS_MANAGER_CREATE_VIEW, 0);
|
|
6120
6120
|
const [kind, setKind] = react.useTransientView(FIELDS_MANAGER_KIND_VIEW, "label");
|
|
6121
6121
|
const documentIds = react.useArbiSessionState((s) => s.selectedDocumentIds);
|
|
6122
|
-
const reviewing =
|
|
6122
|
+
const reviewing = chunkDFBDQKGE_cjs.useFilesPrefs((state) => chunkDFBDQKGE_cjs.filesViewMode(state) === "navigator");
|
|
6123
6123
|
const viewingId = react.useArbiSessionState((s) => s.viewingDocument?.id ?? null);
|
|
6124
6124
|
const reviewingId = reviewing ? viewingId : null;
|
|
6125
6125
|
const handleClose = react$1.useCallback(() => {
|
|
@@ -6160,7 +6160,7 @@ function ConnectedFieldsManagerPanel({
|
|
|
6160
6160
|
onAnnotationCreated,
|
|
6161
6161
|
onAiFieldsApplied: (result) => {
|
|
6162
6162
|
session.closePanel(FIELDS_MANAGER_PANEL);
|
|
6163
|
-
const review =
|
|
6163
|
+
const review = chunkDFBDQKGE_cjs.useAiReviewStore.getState();
|
|
6164
6164
|
review.setRun(result);
|
|
6165
6165
|
review.setOpen(true);
|
|
6166
6166
|
}
|
|
@@ -6206,7 +6206,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6206
6206
|
const runSearch = () => search().catch(() => notify19(`Could not search ${factsWord}. Please try again.`, "error"));
|
|
6207
6207
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "facts-smart-search", children: [
|
|
6208
6208
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
6209
|
-
|
|
6209
|
+
chunkMXBXZXXQ_cjs.FactSearchBar,
|
|
6210
6210
|
{
|
|
6211
6211
|
query,
|
|
6212
6212
|
onQueryChange: setQuery,
|
|
@@ -6215,7 +6215,7 @@ function ConnectedFactsSmartSearch({
|
|
|
6215
6215
|
isSearching
|
|
6216
6216
|
}
|
|
6217
6217
|
),
|
|
6218
|
-
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6218
|
+
!isSearching && hits !== null && hits.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(chunkMXBXZXXQ_cjs.FactSearchTotals, { children: [
|
|
6219
6219
|
hits.length.toLocaleString(),
|
|
6220
6220
|
" ",
|
|
6221
6221
|
hits.length === 1 ? factWord : factsWord,
|
|
@@ -6223,18 +6223,18 @@ function ConnectedFactsSmartSearch({
|
|
|
6223
6223
|
lastQuery,
|
|
6224
6224
|
"\u201D"
|
|
6225
6225
|
] }),
|
|
6226
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6226
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "scrollbar-subtle min-h-0 flex-1 overflow-y-auto px-4 pb-3", children: isSearching ? /* @__PURE__ */ jsxRuntime.jsxs(chunkMXBXZXXQ_cjs.FactSearchPending, { children: [
|
|
6227
6227
|
"Searching ",
|
|
6228
6228
|
factsWord,
|
|
6229
6229
|
"\u2026"
|
|
6230
|
-
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
6230
|
+
] }) : hits === null ? /* @__PURE__ */ jsxRuntime.jsx(chunkNX56DIG3_cjs.SearchEmptyState, { nouns, count: allFacts.length }) : hits.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunkMXBXZXXQ_cjs.FactSearchNoMatches, { children: [
|
|
6231
6231
|
"No ",
|
|
6232
6232
|
factsWord,
|
|
6233
6233
|
" matched \u201C",
|
|
6234
6234
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-foreground", children: lastQuery }),
|
|
6235
6235
|
"\u201D."
|
|
6236
6236
|
] }) : /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex flex-col gap-2", children: hits.map((h, i) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
6237
|
-
|
|
6237
|
+
chunkMXBXZXXQ_cjs.FactSearchResult,
|
|
6238
6238
|
{
|
|
6239
6239
|
id: h.external_id,
|
|
6240
6240
|
rank: i + 1,
|
|
@@ -6334,7 +6334,7 @@ function FactSourcesPopover({
|
|
|
6334
6334
|
const olderVersion = refOf(docId) !== docId ? refOf(docId).split("@v")[1] : null;
|
|
6335
6335
|
const cited = passagesOf(docId);
|
|
6336
6336
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
6337
|
-
|
|
6337
|
+
chunkMXBXZXXQ_cjs.FactSourceGroup,
|
|
6338
6338
|
{
|
|
6339
6339
|
docId,
|
|
6340
6340
|
isViewing,
|
|
@@ -6423,7 +6423,7 @@ function FactMarkdownEditor({
|
|
|
6423
6423
|
const editorRef = react$1.useRef(null);
|
|
6424
6424
|
react$1.useEffect(() => {
|
|
6425
6425
|
if (!editorRef.current) return;
|
|
6426
|
-
return
|
|
6426
|
+
return chunkMXBXZXXQ_cjs.enableFactTableColumnResize(editorRef.current);
|
|
6427
6427
|
}, []);
|
|
6428
6428
|
react$1.useEffect(() => {
|
|
6429
6429
|
if (!editing) return;
|
|
@@ -6535,7 +6535,7 @@ var factNouns = () => ({
|
|
|
6535
6535
|
function useWorkspaceAsk() {
|
|
6536
6536
|
const { openNewConversation, openFiles } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
6537
6537
|
const { workspaceId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
6538
|
-
const setFilesViewMode =
|
|
6538
|
+
const setFilesViewMode = chunkDFBDQKGE_cjs.useFilesPrefs((state) => state.setViewMode);
|
|
6539
6539
|
const ask = react$1.useCallback(
|
|
6540
6540
|
(text) => openNewConversation({ prompt: text, keepDocumentOpen: true }),
|
|
6541
6541
|
[openNewConversation]
|
|
@@ -7062,8 +7062,8 @@ function useFactFilters(notes, view, chat) {
|
|
|
7062
7062
|
const makeTagPicker = react$1.useCallback(
|
|
7063
7063
|
(selected, setSelected, opts) => {
|
|
7064
7064
|
const applied = new Set(selected);
|
|
7065
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7066
|
-
|
|
7065
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactFieldRow, { label: "Labels", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7066
|
+
chunkNLSWDP42_cjs.FieldLabelsSelect,
|
|
7067
7067
|
{
|
|
7068
7068
|
options: labelOptions,
|
|
7069
7069
|
appliedIds: applied,
|
|
@@ -7254,14 +7254,14 @@ function useFactSelection(notes, gridApiRef, setFactTags, chat) {
|
|
|
7254
7254
|
}
|
|
7255
7255
|
function renderSourcesCell(params) {
|
|
7256
7256
|
const fact = params.data;
|
|
7257
|
-
const count2 =
|
|
7257
|
+
const count2 = chunkMXBXZXXQ_cjs.sourceDocCount(fact);
|
|
7258
7258
|
if (!fact || count2 === 0) return /* @__PURE__ */ jsxRuntime.jsx("span", { className: "text-muted-foreground/40", children: "\u2014" });
|
|
7259
7259
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
7260
7260
|
"button",
|
|
7261
7261
|
{
|
|
7262
7262
|
type: "button",
|
|
7263
7263
|
onClick: () => params.context?.openEdit?.(fact),
|
|
7264
|
-
title:
|
|
7264
|
+
title: chunkMXBXZXXQ_cjs.DEFAULT_FACT_COLUMN_LABELS.sourcedFrom(count2),
|
|
7265
7265
|
"data-testid": `facts-grid-sources-${fact.external_id}`,
|
|
7266
7266
|
className: "inline-flex items-center gap-1 text-xs text-muted-foreground hover:text-foreground",
|
|
7267
7267
|
children: [
|
|
@@ -7290,7 +7290,7 @@ var FactHeader = react$1.memo(function FactHeader2({
|
|
|
7290
7290
|
if (params.enableSorting) params.progressSort(e.shiftKey);
|
|
7291
7291
|
},
|
|
7292
7292
|
children: [
|
|
7293
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7293
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FilterButton, { params, colId }),
|
|
7294
7294
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "order-2 min-w-0 flex-1 truncate", children: params.displayName }),
|
|
7295
7295
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "ag-sort-indicator-container order-2 flex-shrink-0", "aria-hidden": "true", children: [
|
|
7296
7296
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7318,14 +7318,14 @@ function createFactPageColumns({
|
|
|
7318
7318
|
onToggleConfirmed,
|
|
7319
7319
|
onToggleShared
|
|
7320
7320
|
}) {
|
|
7321
|
-
const columns =
|
|
7321
|
+
const columns = chunkMXBXZXXQ_cjs.createFactColumns({
|
|
7322
7322
|
onToggleInChat,
|
|
7323
7323
|
isInChat,
|
|
7324
7324
|
renderHeader: (params, colId) => /* @__PURE__ */ jsxRuntime.jsx(FactHeader, { params, colId }),
|
|
7325
7325
|
renderRowActions: (fact, params) => {
|
|
7326
7326
|
const ctx = params.context;
|
|
7327
7327
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
7328
|
-
|
|
7328
|
+
chunkMXBXZXXQ_cjs.FactRowActions,
|
|
7329
7329
|
{
|
|
7330
7330
|
onEdit: () => ctx?.openEdit?.(fact),
|
|
7331
7331
|
canEdit: ctx?.canRewrite?.(fact) !== false,
|
|
@@ -7348,13 +7348,12 @@ function createFactPageColumns({
|
|
|
7348
7348
|
}
|
|
7349
7349
|
),
|
|
7350
7350
|
renderShared: (fact, params) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7351
|
-
ui.
|
|
7351
|
+
ui.SharingEntity,
|
|
7352
7352
|
{
|
|
7353
|
-
|
|
7353
|
+
shared: fact.shared,
|
|
7354
7354
|
onToggle: () => onToggleShared(fact),
|
|
7355
7355
|
disabled: params.context?.canChangeSharing?.(fact) === false,
|
|
7356
7356
|
disabledTooltip: "Only the creator can change who can see this",
|
|
7357
|
-
showLabel: false,
|
|
7358
7357
|
tooltipActive: "Shared with this workspace \u2014 click to make private to you & your agents",
|
|
7359
7358
|
tooltipInactive: "Private to you & your agents \u2014 click to share with this workspace",
|
|
7360
7359
|
"data-testid": `facts-grid-shared-${fact.external_id}`
|
|
@@ -7455,7 +7454,7 @@ function useFactsGrid({
|
|
|
7455
7454
|
);
|
|
7456
7455
|
const renderFactTags = react$1.useCallback(
|
|
7457
7456
|
(fact, rowHeight) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7458
|
-
|
|
7457
|
+
chunkMXBXZXXQ_cjs.FactLabelsCell,
|
|
7459
7458
|
{
|
|
7460
7459
|
options: labelOptions,
|
|
7461
7460
|
selectedIds: fact.tags.map((t) => t.tag_ext_id),
|
|
@@ -7562,7 +7561,7 @@ function useFactsPageView() {
|
|
|
7562
7561
|
"facts.searchFields",
|
|
7563
7562
|
DEFAULT_SEARCH_FIELDS
|
|
7564
7563
|
);
|
|
7565
|
-
const rowHeight = react.useArbiSessionState((s) => s.grid.rowHeights[FACTS_GRID_ID] ??
|
|
7564
|
+
const rowHeight = react.useArbiSessionState((s) => s.grid.rowHeights[FACTS_GRID_ID] ?? chunkNLSWDP42_cjs.ROW_MIN);
|
|
7566
7565
|
const labelWidth = react.useArbiSessionState(
|
|
7567
7566
|
(s) => s.grid.labelWidths[FACTS_GRID_ID] ?? DEFAULT_TIMELINE_LABEL_WIDTH
|
|
7568
7567
|
);
|
|
@@ -7796,7 +7795,7 @@ function ConnectedFactsPage() {
|
|
|
7796
7795
|
const view = pageView.view;
|
|
7797
7796
|
const setView = pageView.setView;
|
|
7798
7797
|
const openLabels = () => openFieldsManagerIn(session, "label");
|
|
7799
|
-
const factsRowHeight = pageView.rowHeight ===
|
|
7798
|
+
const factsRowHeight = pageView.rowHeight === chunkNLSWDP42_cjs.ROW_MIN ? chunkNLSWDP42_cjs.ROW_MIN : chunkNLSWDP42_cjs.rowHeightForLines(chunkNLSWDP42_cjs.linesForRowHeight(pageView.rowHeight));
|
|
7800
7799
|
const [isExportOpen, setIsExportOpen] = react$1.useState(false);
|
|
7801
7800
|
const [filterOpen, setFilterOpen] = react$1.useState(false);
|
|
7802
7801
|
const [factSection, setFactSection] = react$1.useState(null);
|
|
@@ -7820,7 +7819,7 @@ function ConnectedFactsPage() {
|
|
|
7820
7819
|
};
|
|
7821
7820
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { ref: setFactSection, className: "relative flex h-full flex-col", "data-testid": "facts-page", children: [
|
|
7822
7821
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7823
|
-
|
|
7822
|
+
chunkMXBXZXXQ_cjs.FactsToolbar,
|
|
7824
7823
|
{
|
|
7825
7824
|
count: filteredNotes.length,
|
|
7826
7825
|
hasActiveFilters: filters.hasActiveFilters,
|
|
@@ -7849,7 +7848,7 @@ function ConnectedFactsPage() {
|
|
|
7849
7848
|
onNewFact: composing && !editingId ? () => void 0 : composer.startNewFact,
|
|
7850
7849
|
navSlotRef: setNavSlot,
|
|
7851
7850
|
navigator: view === "table" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7852
|
-
|
|
7851
|
+
chunkW6INT5GS_cjs.GridRowNavigator,
|
|
7853
7852
|
{
|
|
7854
7853
|
gridApi,
|
|
7855
7854
|
selectedId: editingId,
|
|
@@ -7860,9 +7859,9 @@ function ConnectedFactsPage() {
|
|
|
7860
7859
|
) : null,
|
|
7861
7860
|
showToolbarRow: view !== "smart_search",
|
|
7862
7861
|
tools: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
7863
|
-
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7862
|
+
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactsFieldsButton, { getGridApi: () => gridApiRef.current }),
|
|
7864
7863
|
view === "table" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
7865
|
-
|
|
7864
|
+
chunkNLSWDP42_cjs.RowDensityControl,
|
|
7866
7865
|
{
|
|
7867
7866
|
rowHeight: factsRowHeight,
|
|
7868
7867
|
onRowHeightChange: pageView.setRowHeight,
|
|
@@ -7898,7 +7897,7 @@ function ConnectedFactsPage() {
|
|
|
7898
7897
|
}
|
|
7899
7898
|
) }),
|
|
7900
7899
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
7901
|
-
|
|
7900
|
+
chunkMXBXZXXQ_cjs.FactComposer,
|
|
7902
7901
|
{
|
|
7903
7902
|
isOpen: composing,
|
|
7904
7903
|
isEditing: !!editingId,
|
|
@@ -7928,7 +7927,7 @@ function ConnectedFactsPage() {
|
|
|
7928
7927
|
reserveSourcesSpace: view === "gantt" || view === "calendar",
|
|
7929
7928
|
citationContainer: factSection,
|
|
7930
7929
|
renderDocumentPicker: (onSelect, selectedIds, onOpen, sourcesToggle, sourcesOpen) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
7931
|
-
|
|
7930
|
+
chunkMXBXZXXQ_cjs.FactSourcesRow,
|
|
7932
7931
|
{
|
|
7933
7932
|
toggle: sourcesToggle,
|
|
7934
7933
|
picker: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7974,7 +7973,7 @@ function ConnectedFactsPage() {
|
|
|
7974
7973
|
}
|
|
7975
7974
|
),
|
|
7976
7975
|
dateInput: /* @__PURE__ */ jsxRuntime.jsx(
|
|
7977
|
-
|
|
7976
|
+
chunkMXBXZXXQ_cjs.FactDateInput,
|
|
7978
7977
|
{
|
|
7979
7978
|
value: composer.draftDateFields,
|
|
7980
7979
|
onChange: composer.setDraftDateFields,
|
|
@@ -7984,7 +7983,7 @@ function ConnectedFactsPage() {
|
|
|
7984
7983
|
}
|
|
7985
7984
|
),
|
|
7986
7985
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "scrollbar-subtle flex-1 overflow-y-auto pb-2", children: [
|
|
7987
|
-
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
7986
|
+
isLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactsLoading, {}) : isError ? /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactsLoadError, { onRetry: () => refetch() }) : view === "smart_search" ? (
|
|
7988
7987
|
// Searches facts only (never documents). Kept before the empty-state guard so the
|
|
7989
7988
|
// search UI is reachable even in an empty workspace.
|
|
7990
7989
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -7997,7 +7996,7 @@ function ConnectedFactsPage() {
|
|
|
7997
7996
|
)
|
|
7998
7997
|
) : notes.length === 0 ? /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-full flex-col items-center justify-center", children: [
|
|
7999
7998
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8000
|
-
|
|
7999
|
+
chunkMXBXZXXQ_cjs.FactsEmptyState,
|
|
8001
8000
|
{
|
|
8002
8001
|
onUseExample: (text) => {
|
|
8003
8002
|
composer.setDraft(text);
|
|
@@ -8008,7 +8007,7 @@ function ConnectedFactsPage() {
|
|
|
8008
8007
|
),
|
|
8009
8008
|
/* @__PURE__ */ jsxRuntime.jsx(FactsFindInDocuments, {})
|
|
8010
8009
|
] }) : view === "calendar" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8011
|
-
|
|
8010
|
+
chunkMXBXZXXQ_cjs.FactsCalendar,
|
|
8012
8011
|
{
|
|
8013
8012
|
facts: filteredNotes,
|
|
8014
8013
|
onSelect: (n) => openEditIfAllowed(n),
|
|
@@ -8017,7 +8016,7 @@ function ConnectedFactsPage() {
|
|
|
8017
8016
|
navigatorTotal: filteredNotes.length
|
|
8018
8017
|
}
|
|
8019
8018
|
) : view === "gantt" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
8020
|
-
|
|
8019
|
+
chunkMXBXZXXQ_cjs.FactsGanttPane,
|
|
8021
8020
|
{
|
|
8022
8021
|
items: ganttItems,
|
|
8023
8022
|
labelWidth: pageView.labelWidth,
|
|
@@ -8067,7 +8066,7 @@ function ConnectedFactsPage() {
|
|
|
8067
8066
|
)
|
|
8068
8067
|
] }),
|
|
8069
8068
|
selectable && notes.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8070
|
-
|
|
8069
|
+
chunkMXBXZXXQ_cjs.FactsBulkBar,
|
|
8071
8070
|
{
|
|
8072
8071
|
count: selection.selectedFacts.length,
|
|
8073
8072
|
onClear: selection.clearSelection,
|
|
@@ -8126,7 +8125,7 @@ function useConnectedShellWorkspaces(options = {}) {
|
|
|
8126
8125
|
function ConnectedSsoDisconnect() {
|
|
8127
8126
|
const { client } = react.useAccountClient();
|
|
8128
8127
|
const { data: profile } = react.useProfile();
|
|
8129
|
-
const auth =
|
|
8128
|
+
const auth = chunkCKCG4NDB_cjs.useAuthPages();
|
|
8130
8129
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
8131
8130
|
const [open, setOpen] = react$1.useState(false);
|
|
8132
8131
|
const [step, setStep] = react$1.useState("email");
|
|
@@ -8304,14 +8303,14 @@ function ConnectedAccountSettings({
|
|
|
8304
8303
|
}) {
|
|
8305
8304
|
const [logoutOpen, setLogoutOpen] = react$1.useState(false);
|
|
8306
8305
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsPanel, { className: "max-w-2xl", children: [
|
|
8307
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8306
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedProfileCard, { avatarClassName, nameBadge: profileBadge }),
|
|
8308
8307
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedBoxPortalSection, {}),
|
|
8309
8308
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsDisclosure, { title: "More", testId: "account-more-settings", children: [
|
|
8310
8309
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedSsoDisconnect, {}),
|
|
8311
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8310
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedSecuritySection, { children: securityRows }),
|
|
8312
8311
|
moreSettings,
|
|
8313
8312
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8314
|
-
|
|
8313
|
+
chunkCKCG4NDB_cjs.ConnectedIdentityVerification,
|
|
8315
8314
|
{
|
|
8316
8315
|
collapsible: true,
|
|
8317
8316
|
onManageBilling,
|
|
@@ -8321,7 +8320,7 @@ function ConnectedAccountSettings({
|
|
|
8321
8320
|
] }),
|
|
8322
8321
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsSection, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Wifi, {}), title: "Session", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkQQMMCXBP_cjs.SettingsCard, { children: [
|
|
8323
8322
|
connection && /* @__PURE__ */ jsxRuntime.jsx(ServerConnectionRow, { ...connection }),
|
|
8324
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8323
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedSessionsRow, { renderSessionIcon }),
|
|
8325
8324
|
/* @__PURE__ */ jsxRuntime.jsx(chunkQQMMCXBP_cjs.SettingsRow, { label: "Logout", description: "Sign out of your account on this device.", children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
8326
8325
|
ui.Button,
|
|
8327
8326
|
{
|
|
@@ -8338,9 +8337,9 @@ function ConnectedAccountSettings({
|
|
|
8338
8337
|
}
|
|
8339
8338
|
) })
|
|
8340
8339
|
] }) }),
|
|
8341
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8340
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedDangerZone, { renderSubscriptionLink }),
|
|
8342
8341
|
!onLogout && /* @__PURE__ */ jsxRuntime.jsx(
|
|
8343
|
-
|
|
8342
|
+
chunkCKCG4NDB_cjs.ConnectedLogoutDialog,
|
|
8344
8343
|
{
|
|
8345
8344
|
open: logoutOpen,
|
|
8346
8345
|
onClose: () => setLogoutOpen(false),
|
|
@@ -8683,7 +8682,7 @@ function ConnectedPrivacySettings({
|
|
|
8683
8682
|
}
|
|
8684
8683
|
)
|
|
8685
8684
|
] }) }),
|
|
8686
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
8685
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedNotificationPreferences, {})
|
|
8687
8686
|
] });
|
|
8688
8687
|
}
|
|
8689
8688
|
var PROVIDER_NAMES = {
|
|
@@ -10679,7 +10678,7 @@ function ConnectedRecoveryKeyDialog({
|
|
|
10679
10678
|
const arbi = react.useArbi();
|
|
10680
10679
|
const { user, isSso: isSsoMode } = react.useArbiSession();
|
|
10681
10680
|
const userEmail = user?.email;
|
|
10682
|
-
const sso =
|
|
10681
|
+
const sso = chunkCKCG4NDB_cjs.useSsoSignIn();
|
|
10683
10682
|
const handleVerify = async () => {
|
|
10684
10683
|
setError(null);
|
|
10685
10684
|
if (!password) {
|
|
@@ -10840,7 +10839,7 @@ function ConnectedRemoteControlSwitch() {
|
|
|
10840
10839
|
}
|
|
10841
10840
|
function RemoteControlSwitch() {
|
|
10842
10841
|
const enabled = react.useRemoteControl((state) => state.enabled);
|
|
10843
|
-
const remote =
|
|
10842
|
+
const remote = chunkCKCG4NDB_cjs.useRemoteControlActions();
|
|
10844
10843
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
10845
10844
|
chunkQQMMCXBP_cjs.SettingsRow,
|
|
10846
10845
|
{
|
|
@@ -12870,13 +12869,13 @@ function ConnectedWorkspaceSettings({
|
|
|
12870
12869
|
const [membersExpanded, setMembersExpanded] = react$1.useState(false);
|
|
12871
12870
|
const [shareOpen, setShareOpen] = react$1.useState(false);
|
|
12872
12871
|
if (!workspace) {
|
|
12873
|
-
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
12872
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkCMGNRMPA_cjs.PageLoading, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkW6INT5GS_cjs.LoadingIndicator, { message: "Loading workspace..." }) });
|
|
12874
12873
|
}
|
|
12875
12874
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
12876
12875
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspacePageFrame, { testId, children: [
|
|
12877
12876
|
/* @__PURE__ */ jsxRuntime.jsxs(chunkCMGNRMPA_cjs.WorkspaceIdentityPanel, { children: [
|
|
12878
12877
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
12879
|
-
|
|
12878
|
+
chunkW6INT5GS_cjs.EntityIdentityBar,
|
|
12880
12879
|
{
|
|
12881
12880
|
testId: "workspace-identity-bar",
|
|
12882
12881
|
canEdit: isOwner,
|
|
@@ -12893,7 +12892,7 @@ function ConnectedWorkspaceSettings({
|
|
|
12893
12892
|
label: "Name",
|
|
12894
12893
|
value: workspace.name,
|
|
12895
12894
|
placeholder: "Untitled",
|
|
12896
|
-
maxLength:
|
|
12895
|
+
maxLength: chunkW6INT5GS_cjs.IDENTITY_NAME_MAX_LENGTH,
|
|
12897
12896
|
valueClassName: "truncate text-base font-semibold",
|
|
12898
12897
|
testId: "workspace-home-title",
|
|
12899
12898
|
hideLabel: true,
|
|
@@ -14578,36 +14577,36 @@ function ConnectedSharePointAdminConsentPage({
|
|
|
14578
14577
|
const result = givenResult === void 0 ? queryResult : givenResult;
|
|
14579
14578
|
const { apiBaseUrl } = chunkTKHCIHE2_cjs.useBlocksEnvironment().runtimeConfig;
|
|
14580
14579
|
const consentUrl = `${apiBaseUrl}/v1/connectors/microsoft_sharepoint/admin-consent`;
|
|
14581
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
14580
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.ConsentCard, { size: "md", children: [
|
|
14582
14581
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14583
|
-
|
|
14582
|
+
chunk775S43W7_cjs.ConsentHeader,
|
|
14584
14583
|
{
|
|
14585
|
-
icon: /* @__PURE__ */ jsxRuntime.jsx(
|
|
14584
|
+
icon: /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.VendorLogo, { vendorKey: "microsoft_sharepoint", product: "sharepoint" }),
|
|
14586
14585
|
title: "Approve ARBI for SharePoint access",
|
|
14587
14586
|
children: "A member of your organization uses ARBI and wants to sync documents from SharePoint. Your Microsoft 365 organization requires an administrator to approve this once for the whole organization."
|
|
14588
14587
|
}
|
|
14589
14588
|
),
|
|
14590
|
-
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14591
|
-
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
14592
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
14589
|
+
result === "granted" && /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentNotice, { tone: "success", title: "Access approved \u2014 you\u2019re all set.", className: "mt-4", children: "People in your organization can now connect SharePoint from their own ARBI account. Nothing is synced until each user connects and chooses what to import." }),
|
|
14590
|
+
result === "declined" && /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentNotice, { tone: "warning", title: "The approval didn\u2019t complete.", className: "mt-4", children: "The request was declined or canceled on the Microsoft screen. You can try again below \u2014 you must sign in with a Microsoft 365 administrator account of your organization." }),
|
|
14591
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.ConsentSection, { title: "What you are approving", children: [
|
|
14593
14592
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14594
|
-
|
|
14593
|
+
chunk775S43W7_cjs.ConsentBulletList,
|
|
14595
14594
|
{
|
|
14596
14595
|
items: [
|
|
14597
14596
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14598
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14597
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentStrong, { children: "Read SharePoint sites and files" }),
|
|
14599
14598
|
" \u2014 lets each user who connects their own account import documents from sites they already have access to. ARBI never gets more access than the user has."
|
|
14600
14599
|
] }),
|
|
14601
14600
|
/* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
14602
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14601
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentStrong, { children: "Sign users in and keep access" }),
|
|
14603
14602
|
" \u2014 standard sign-in (openid, profile, email) and offline access so syncs keep working between sessions."
|
|
14604
14603
|
] })
|
|
14605
14604
|
]
|
|
14606
14605
|
}
|
|
14607
14606
|
),
|
|
14608
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14607
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentText, { children: "Approving does not sync anything by itself and grants ARBI no standing access to your tenant. Each user still connects their own Microsoft account, and their tokens are end-to-end encrypted so ARBI\u2019s servers cannot read them at rest." }),
|
|
14609
14608
|
/* @__PURE__ */ jsxRuntime.jsx(ui.Button, { asChild: true, className: "w-full pointer-coarse:h-11", children: /* @__PURE__ */ jsxRuntime.jsx("a", { href: consentUrl, children: "Review and approve in Microsoft" }) }),
|
|
14610
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
14609
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentText, { variant: "footnote", children: "You\u2019ll sign in at login.microsoftonline.com and see Microsoft\u2019s own summary of these permissions before anything is granted." })
|
|
14611
14610
|
] })
|
|
14612
14611
|
] }) });
|
|
14613
14612
|
}
|
|
@@ -17341,7 +17340,7 @@ function ConnectedWorkspaceList({
|
|
|
17341
17340
|
}
|
|
17342
17341
|
);
|
|
17343
17342
|
}
|
|
17344
|
-
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17343
|
+
if (list.isLoading) return /* @__PURE__ */ jsxRuntime.jsx(chunkW6INT5GS_cjs.LoadingIndicator, { message: "Loading workspaces..." });
|
|
17345
17344
|
if (list.error) {
|
|
17346
17345
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17347
17346
|
chunkH7PHOTX2_cjs.HomeLoadError,
|
|
@@ -17414,7 +17413,7 @@ function ConnectedWorkspaceList({
|
|
|
17414
17413
|
workspaceState
|
|
17415
17414
|
}
|
|
17416
17415
|
) })
|
|
17417
|
-
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17416
|
+
) : /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkW6INT5GS_cjs.LoadingIndicator, { message: "Loading grid..." }), children: /* @__PURE__ */ jsxRuntime.jsx(chunkH7PHOTX2_cjs.HomeCenteredColumn, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
17418
17417
|
WorkspaceTableView,
|
|
17419
17418
|
{
|
|
17420
17419
|
list,
|
|
@@ -17604,7 +17603,7 @@ function ConnectedProjectsListPage({
|
|
|
17604
17603
|
};
|
|
17605
17604
|
const { openProject } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17606
17605
|
const [search, setSearch] = react$1.useState("");
|
|
17607
|
-
const { projects, isLoading } =
|
|
17606
|
+
const { projects, isLoading } = chunkQ6CLWOP2_cjs.useProjectSummaries();
|
|
17608
17607
|
const rows = react$1.useMemo(() => {
|
|
17609
17608
|
const q = search.trim().toLowerCase();
|
|
17610
17609
|
if (!q) return projects;
|
|
@@ -17675,7 +17674,7 @@ function ConnectedProjectsListPage({
|
|
|
17675
17674
|
}
|
|
17676
17675
|
),
|
|
17677
17676
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
17678
|
-
|
|
17677
|
+
chunkW6INT5GS_cjs.Toolbar,
|
|
17679
17678
|
{
|
|
17680
17679
|
search,
|
|
17681
17680
|
onSearch: setSearch,
|
|
@@ -17737,7 +17736,7 @@ function ProjectDetailsForm({
|
|
|
17737
17736
|
const labels = { ...DEFAULT_PROJECT_DETAILS_LABELS, ...given };
|
|
17738
17737
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
17739
17738
|
const update = react.useUpdateProjectFields();
|
|
17740
|
-
const workspace =
|
|
17739
|
+
const workspace = chunkQ6CLWOP2_cjs.primaryProjectWorkspace(project);
|
|
17741
17740
|
const { data: members = [] } = react.useWorkspaceUsers(workspace?.id);
|
|
17742
17741
|
const people = members.filter((m) => !m.user.external_id.startsWith("agt-"));
|
|
17743
17742
|
const currency = project.budget?.currency ?? "GBP";
|
|
@@ -17862,7 +17861,7 @@ var COMPACT_BELOW = 132;
|
|
|
17862
17861
|
var NO_DOCUMENTS = [];
|
|
17863
17862
|
function useFilesWorkspace() {
|
|
17864
17863
|
const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
17865
|
-
const { members, role } =
|
|
17864
|
+
const { members, role } = chunkECLUFKYR_cjs.useConnectedWorkspaceRole();
|
|
17866
17865
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
17867
17866
|
const workspaceName = workspaces?.find((w) => w.external_id === workspaceId)?.name;
|
|
17868
17867
|
return {
|
|
@@ -17926,9 +17925,9 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
17926
17925
|
for (const tag of workspaceTags ?? []) map.set(tag.external_id, tag.name);
|
|
17927
17926
|
return map;
|
|
17928
17927
|
}, [workspaceTags]);
|
|
17929
|
-
const pendingFolders =
|
|
17930
|
-
const addPendingFolder =
|
|
17931
|
-
const removePendingFolder =
|
|
17928
|
+
const pendingFolders = chunkDFBDQKGE_cjs.usePendingFolders(wsId);
|
|
17929
|
+
const addPendingFolder = chunkDFBDQKGE_cjs.useFilesStore((state) => state.addPendingFolder);
|
|
17930
|
+
const removePendingFolder = chunkDFBDQKGE_cjs.useFilesStore((state) => state.removePendingFolder);
|
|
17932
17931
|
const [editingFolderPath, setEditingFolderPath] = react$1.useState(null);
|
|
17933
17932
|
const isSearching = search.trim().length > 0;
|
|
17934
17933
|
const selectedSet = react$1.useMemo(() => new Set(selectedIds), [selectedIds]);
|
|
@@ -17937,8 +17936,8 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
17937
17936
|
const { folders, files } = react$1.useMemo(() => {
|
|
17938
17937
|
const result = isSearching ? {
|
|
17939
17938
|
folders: [],
|
|
17940
|
-
files:
|
|
17941
|
-
} :
|
|
17939
|
+
files: chunkNLSWDP42_cjs.searchExplorerDocuments(documents, search, sort)
|
|
17940
|
+
} : chunkNLSWDP42_cjs.buildExplorerEntries(documents, currentPath, sort, [...pendingFolders]);
|
|
17942
17941
|
if (sortReversed) result.files = [...result.files].reverse();
|
|
17943
17942
|
return result;
|
|
17944
17943
|
}, [documents, currentPath, sort, isSearching, search, sortReversed, pendingFolders]);
|
|
@@ -17949,7 +17948,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
17949
17948
|
const orderedFileIds = react$1.useMemo(() => files.map((d) => d.external_id), [files]);
|
|
17950
17949
|
const folderDocs = react$1.useMemo(() => {
|
|
17951
17950
|
const map = /* @__PURE__ */ new Map();
|
|
17952
|
-
for (const f of folders) map.set(f.path.join("/"),
|
|
17951
|
+
for (const f of folders) map.set(f.path.join("/"), chunkNLSWDP42_cjs.collectFolderDocs(documents, f.path));
|
|
17953
17952
|
return map;
|
|
17954
17953
|
}, [folders, documents]);
|
|
17955
17954
|
const folderSelection = react$1.useMemo(() => {
|
|
@@ -18097,7 +18096,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18097
18096
|
let name = base;
|
|
18098
18097
|
let i = 2;
|
|
18099
18098
|
while (siblings.has(name.toLowerCase())) name = `${base} ${i++}`;
|
|
18100
|
-
const path =
|
|
18099
|
+
const path = chunkNLSWDP42_cjs.joinFolderPath([...currentPath, name]);
|
|
18101
18100
|
if (!path) return;
|
|
18102
18101
|
addPendingFolder(wsId, path);
|
|
18103
18102
|
setEditingFolderPath(path);
|
|
@@ -18133,10 +18132,10 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18133
18132
|
notify19(`A folder named "${name}" already exists here.`, "error");
|
|
18134
18133
|
return;
|
|
18135
18134
|
}
|
|
18136
|
-
const oldPath =
|
|
18135
|
+
const oldPath = chunkNLSWDP42_cjs.joinFolderPath(folder.path);
|
|
18137
18136
|
const newPrefix = [...folder.path.slice(0, -1), name];
|
|
18138
|
-
const newPath =
|
|
18139
|
-
const docs =
|
|
18137
|
+
const newPath = chunkNLSWDP42_cjs.joinFolderPath(newPrefix);
|
|
18138
|
+
const docs = chunkNLSWDP42_cjs.collectFolderDocs(documents, folder.path);
|
|
18140
18139
|
try {
|
|
18141
18140
|
if (await renameFolder(docs, folder.path, newPrefix) > 0) {
|
|
18142
18141
|
notify19(`Renamed folder to "${name}"`, "success");
|
|
@@ -18195,7 +18194,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18195
18194
|
const handleToggleFolder = react$1.useCallback(
|
|
18196
18195
|
(folder, e) => {
|
|
18197
18196
|
e.stopPropagation();
|
|
18198
|
-
const ids =
|
|
18197
|
+
const ids = chunkNLSWDP42_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
|
|
18199
18198
|
if (ids.length === 0) return;
|
|
18200
18199
|
if (ids.every((id) => selectedSet.has(id))) {
|
|
18201
18200
|
const remove = new Set(ids);
|
|
@@ -18256,9 +18255,9 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18256
18255
|
);
|
|
18257
18256
|
const handleDelete = react$1.useCallback(
|
|
18258
18257
|
async (doc) => {
|
|
18259
|
-
const name =
|
|
18258
|
+
const name = chunkNLSWDP42_cjs.getExplorerDisplayName(doc);
|
|
18260
18259
|
const confirmed = await confirm({
|
|
18261
|
-
message: `Delete "${name}"? ${
|
|
18260
|
+
message: `Delete "${name}"? ${chunkNLSWDP42_cjs.RECENTLY_DELETED_HINT}`,
|
|
18262
18261
|
title: "Delete file"
|
|
18263
18262
|
});
|
|
18264
18263
|
if (!confirmed) return;
|
|
@@ -18278,7 +18277,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18278
18277
|
);
|
|
18279
18278
|
const handleFolderDownload = react$1.useCallback(
|
|
18280
18279
|
(folder) => {
|
|
18281
|
-
const docs =
|
|
18280
|
+
const docs = chunkNLSWDP42_cjs.collectFolderDocs(documents, folder.path);
|
|
18282
18281
|
if (docs.length > 0) void downloadDocuments(docs);
|
|
18283
18282
|
},
|
|
18284
18283
|
[documents, downloadDocuments]
|
|
@@ -18287,7 +18286,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18287
18286
|
if (onFolderMove) return onFolderMove;
|
|
18288
18287
|
if (!onMoveSelected) return void 0;
|
|
18289
18288
|
return (folder) => {
|
|
18290
|
-
const ids =
|
|
18289
|
+
const ids = chunkNLSWDP42_cjs.collectFolderDocs(documents, folder.path).map((d) => d.external_id);
|
|
18291
18290
|
if (ids.length === 0) return;
|
|
18292
18291
|
onSelectionChange(ids);
|
|
18293
18292
|
onMoveSelected();
|
|
@@ -18295,14 +18294,14 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18295
18294
|
}, [documents, onFolderMove, onMoveSelected, onSelectionChange]);
|
|
18296
18295
|
const handleFolderDelete = react$1.useCallback(
|
|
18297
18296
|
async (folder) => {
|
|
18298
|
-
const docs =
|
|
18297
|
+
const docs = chunkNLSWDP42_cjs.collectFolderDocs(documents, folder.path);
|
|
18299
18298
|
if (docs.length === 0) {
|
|
18300
|
-
const path =
|
|
18299
|
+
const path = chunkNLSWDP42_cjs.joinFolderPath(folder.path);
|
|
18301
18300
|
if (wsId && path) removePendingFolder(wsId, path);
|
|
18302
18301
|
return;
|
|
18303
18302
|
}
|
|
18304
18303
|
const confirmed = await confirm({
|
|
18305
|
-
message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${
|
|
18304
|
+
message: `Delete folder "${folder.name}" and its ${docs.length} item${docs.length === 1 ? "" : "s"}? ${chunkNLSWDP42_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
|
|
18306
18305
|
title: "Delete folder"
|
|
18307
18306
|
});
|
|
18308
18307
|
if (!confirmed) return;
|
|
@@ -18319,8 +18318,8 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18319
18318
|
[confirm, documents, deleteDocuments, onSelectionChange, removePendingFolder, wsId, notify19]
|
|
18320
18319
|
);
|
|
18321
18320
|
const canDeleteFolder = react$1.useCallback(
|
|
18322
|
-
(folder) => canUpload &&
|
|
18323
|
-
(doc) =>
|
|
18321
|
+
(folder) => canUpload && chunkNLSWDP42_cjs.collectFolderDocs(documents, folder.path).every(
|
|
18322
|
+
(doc) => chunkNLSWDP42_cjs.canDeleteDocument(doc, userId, role)
|
|
18324
18323
|
),
|
|
18325
18324
|
[canUpload, documents, userId, role]
|
|
18326
18325
|
);
|
|
@@ -18379,7 +18378,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18379
18378
|
setActiveDragId(null);
|
|
18380
18379
|
const data = event.over?.data.current;
|
|
18381
18380
|
if (data?.type === "folder" && data.path) {
|
|
18382
|
-
const targetFolder =
|
|
18381
|
+
const targetFolder = chunkNLSWDP42_cjs.joinFolderPath(data.path);
|
|
18383
18382
|
const moving = dragIdsRef.current.filter((id) => {
|
|
18384
18383
|
const doc = documents.find((d) => d.external_id === id);
|
|
18385
18384
|
return doc && (doc.folder ?? null) !== targetFolder;
|
|
@@ -18419,7 +18418,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18419
18418
|
const dropped = Array.from(e.dataTransfer.files ?? []);
|
|
18420
18419
|
if (dropped.length > 0) {
|
|
18421
18420
|
e.preventDefault();
|
|
18422
|
-
onUploadFiles(dropped,
|
|
18421
|
+
onUploadFiles(dropped, chunkNLSWDP42_cjs.joinFolderPath(currentPath));
|
|
18423
18422
|
}
|
|
18424
18423
|
},
|
|
18425
18424
|
[canUpload, currentPath, onUploadFiles]
|
|
@@ -18436,9 +18435,9 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18436
18435
|
onDragEnd: handleDragEnd,
|
|
18437
18436
|
onDragCancel: () => setActiveDragId(null),
|
|
18438
18437
|
children: [
|
|
18439
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18438
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ExplorerFrame, { "data-testid": "documents-explorer", children: /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.ExplorerStage, { children: [
|
|
18440
18439
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18441
|
-
|
|
18440
|
+
chunkNLSWDP42_cjs.ExplorerScroller,
|
|
18442
18441
|
{
|
|
18443
18442
|
ref: scrollRef,
|
|
18444
18443
|
onClick: handleBackgroundClick,
|
|
@@ -18448,15 +18447,15 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18448
18447
|
onDragLeave: handleNativeDragLeave,
|
|
18449
18448
|
onDrop: handleNativeDrop,
|
|
18450
18449
|
"data-testid": "explorer-scroll",
|
|
18451
|
-
children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
18452
|
-
|
|
18450
|
+
children: isLoading && documents.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ExplorerLoadingTiles, {}) : entries.length === 0 ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
18451
|
+
chunkNLSWDP42_cjs.ExplorerEmpty,
|
|
18453
18452
|
{
|
|
18454
18453
|
title: isSearching ? `No files match "${search.trim()}"` : "This folder is empty",
|
|
18455
18454
|
description: isSearching ? "Try a different search." : canUpload ? "Drop files here or use Upload to add documents." : "No documents here yet."
|
|
18456
18455
|
}
|
|
18457
18456
|
) : containerWidth === 0 ? (
|
|
18458
18457
|
// Not measured yet: rendering now would flash one stretched column.
|
|
18459
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18458
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ExplorerLoadingTiles, {})
|
|
18460
18459
|
) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
18461
18460
|
"div",
|
|
18462
18461
|
{
|
|
@@ -18486,7 +18485,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18486
18485
|
if (entry.kind === "folder") {
|
|
18487
18486
|
const key = entry.path.join("/");
|
|
18488
18487
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18489
|
-
|
|
18488
|
+
chunkBUVIBHFU_cjs.FolderTile,
|
|
18490
18489
|
{
|
|
18491
18490
|
folder: entry,
|
|
18492
18491
|
density,
|
|
@@ -18509,7 +18508,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18509
18508
|
}
|
|
18510
18509
|
const doc = entry.doc;
|
|
18511
18510
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18512
|
-
|
|
18511
|
+
chunkBUVIBHFU_cjs.FileTile,
|
|
18513
18512
|
{
|
|
18514
18513
|
doc,
|
|
18515
18514
|
density,
|
|
@@ -18517,7 +18516,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18517
18516
|
dragging: activeDragId === doc.external_id,
|
|
18518
18517
|
dndActive: activeDragId !== null,
|
|
18519
18518
|
renaming: renamingId === doc.external_id,
|
|
18520
|
-
canDelete:
|
|
18519
|
+
canDelete: chunkNLSWDP42_cjs.canDeleteDocument(doc, userId, role),
|
|
18521
18520
|
thumbnailUrl: thumbnailsById.get(doc.external_id),
|
|
18522
18521
|
modifiedBy: userById.get(
|
|
18523
18522
|
doc.updated_by_ext_id ?? doc.created_by_ext_id
|
|
@@ -18546,9 +18545,9 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18546
18545
|
)
|
|
18547
18546
|
}
|
|
18548
18547
|
),
|
|
18549
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
18548
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ExplorerMarquee, { ref: marqueeOverlayRef, "data-testid": "explorer-marquee" }),
|
|
18550
18549
|
isFileDragOver && /* @__PURE__ */ jsxRuntime.jsx(
|
|
18551
|
-
|
|
18550
|
+
chunkNLSWDP42_cjs.ExplorerDropOverlay,
|
|
18552
18551
|
{
|
|
18553
18552
|
label: `Drop to upload${currentPath.length > 0 ? ` to "${currentPath[currentPath.length - 1]}"` : ""}`
|
|
18554
18553
|
}
|
|
@@ -18562,7 +18561,7 @@ var ConnectedFilesExplorer = react$1.forwardRef(function ConnectedFilesExplorer2
|
|
|
18562
18561
|
function DragPreview({ doc, count: count2 }) {
|
|
18563
18562
|
const Icon = ui.getFileTypeIcon(doc.file_name, { mime: doc.file_type });
|
|
18564
18563
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
18565
|
-
|
|
18564
|
+
chunkNLSWDP42_cjs.ExplorerDragPreview,
|
|
18566
18565
|
{
|
|
18567
18566
|
icon: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: 20 }),
|
|
18568
18567
|
title: ui.getDocumentTitle(doc, doc.file_name ?? "Untitled"),
|
|
@@ -18622,7 +18621,7 @@ function ProjectChronology({
|
|
|
18622
18621
|
})),
|
|
18623
18622
|
[facts]
|
|
18624
18623
|
);
|
|
18625
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
18624
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ui.Card, { className: "h-[min(70dvh,640px)] overflow-hidden", "data-testid": testId, children: isLoading ? /* @__PURE__ */ jsxRuntime.jsx("p", { className: "p-4 text-sm text-muted-foreground", children: loading }) : /* @__PURE__ */ jsxRuntime.jsx(chunkMXBXZXXQ_cjs.FactsGanttPane, { items, testId: `${testId}-gantt`, labels: { ganttEmpty: empty } }) });
|
|
18626
18625
|
}
|
|
18627
18626
|
function ProjectThreads({
|
|
18628
18627
|
projectId,
|
|
@@ -18799,11 +18798,11 @@ function ConnectedProjectPage({
|
|
|
18799
18798
|
figures: { ...DEFAULT_PROJECT_PAGE_LABELS.figures, ...given?.figures },
|
|
18800
18799
|
threads: { ...DEFAULT_PROJECT_PAGE_LABELS.threads, ...given?.threads }
|
|
18801
18800
|
};
|
|
18802
|
-
const { project, usage, isLoading } =
|
|
18801
|
+
const { project, usage, isLoading } = chunkQ6CLWOP2_cjs.useProjectSummary(projectId);
|
|
18803
18802
|
const { workspaceId } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
18804
18803
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
18805
|
-
const selectWorkspace =
|
|
18806
|
-
const workspace = project ?
|
|
18804
|
+
const selectWorkspace = chunkBP3IJ34D_cjs.useSelectWorkspace();
|
|
18805
|
+
const workspace = project ? chunkQ6CLWOP2_cjs.primaryProjectWorkspace(project) : void 0;
|
|
18807
18806
|
const open = !!workspace && workspace.id === workspaceId;
|
|
18808
18807
|
react$1.useEffect(() => {
|
|
18809
18808
|
if (!workspace || workspace.id === workspaceId) return;
|
|
@@ -21510,10 +21509,10 @@ function ConnectedContactsPanel({
|
|
|
21510
21509
|
function ConnectedConfigForm({ availableModels, ...rest }) {
|
|
21511
21510
|
const hasModels = !!availableModels && availableModels.length > 0;
|
|
21512
21511
|
const renderModelSelect = react$1.useCallback(
|
|
21513
|
-
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
21512
|
+
({ value, onChange }) => /* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedModelSelector, { value, onValueChange: onChange, className: "w-full" }),
|
|
21514
21513
|
[]
|
|
21515
21514
|
);
|
|
21516
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21515
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConfigForm, { ...rest, renderModelSelect: hasModels ? renderModelSelect : void 0 });
|
|
21517
21516
|
}
|
|
21518
21517
|
function ConnectedAgentConfigForm({ agentExtId, agentName, onSaved }) {
|
|
21519
21518
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
@@ -21630,7 +21629,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21630
21629
|
}, [name, selectedWorkspaces, role, createAgent, addWorkspaceUsers, arbi, notify19]);
|
|
21631
21630
|
if (editAgent) {
|
|
21632
21631
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21633
|
-
|
|
21632
|
+
chunk775S43W7_cjs.AgentEditView,
|
|
21634
21633
|
{
|
|
21635
21634
|
agentName: editAgent.name,
|
|
21636
21635
|
config: /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21646,7 +21645,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21646
21645
|
}
|
|
21647
21646
|
if (view === "main") {
|
|
21648
21647
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21649
|
-
|
|
21648
|
+
chunk775S43W7_cjs.AgentMainView,
|
|
21650
21649
|
{
|
|
21651
21650
|
onConnectExternal: () => setView("connect"),
|
|
21652
21651
|
config: mainAgent ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -21662,11 +21661,11 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21662
21661
|
}
|
|
21663
21662
|
if (result) {
|
|
21664
21663
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21665
|
-
|
|
21664
|
+
chunk775S43W7_cjs.AgentCreatedView,
|
|
21666
21665
|
{
|
|
21667
21666
|
email: result.email,
|
|
21668
21667
|
signingKey: result.signingKey,
|
|
21669
|
-
instructions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
21668
|
+
instructions: /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.AgentConnectInstructions, { email: result.email, signingKey: result.signingKey }),
|
|
21670
21669
|
config: /* @__PURE__ */ jsxRuntime.jsx(ConnectedAgentConfigForm, { agentExtId: result.extId, agentName: result.name }),
|
|
21671
21670
|
isConfigOpen: configOpen,
|
|
21672
21671
|
onToggleConfig: () => setConfigOpen((v) => !v),
|
|
@@ -21675,7 +21674,7 @@ function ConnectedAuthorizeAgent({ onClose, editAgent }) {
|
|
|
21675
21674
|
);
|
|
21676
21675
|
}
|
|
21677
21676
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21678
|
-
|
|
21677
|
+
chunk775S43W7_cjs.AgentCreateView,
|
|
21679
21678
|
{
|
|
21680
21679
|
name,
|
|
21681
21680
|
onNameChange: setName,
|
|
@@ -21870,7 +21869,7 @@ function ConnectedNewThreadDialog({
|
|
|
21870
21869
|
});
|
|
21871
21870
|
const parentOptions = react$1.useMemo(() => {
|
|
21872
21871
|
const leaf = { external_id: "__new__" };
|
|
21873
|
-
return
|
|
21872
|
+
return chunk775S43W7_cjs.moveTargets([...tasks, leaf], leaf).map((t) => ({
|
|
21874
21873
|
id: t.external_id,
|
|
21875
21874
|
name: t.title?.trim() || "Untitled task"
|
|
21876
21875
|
}));
|
|
@@ -21917,7 +21916,7 @@ function ConnectedNewThreadDialog({
|
|
|
21917
21916
|
}
|
|
21918
21917
|
};
|
|
21919
21918
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
21920
|
-
|
|
21919
|
+
chunk775S43W7_cjs.NewThreadDialog,
|
|
21921
21920
|
{
|
|
21922
21921
|
open,
|
|
21923
21922
|
onOpenChange,
|
|
@@ -22095,7 +22094,7 @@ function recentConversations(conversations) {
|
|
|
22095
22094
|
return [...conversations].sort((a, b) => time(b.updated_at) - time(a.updated_at)).slice(0, RECENT_ROWS).map((c) => ({
|
|
22096
22095
|
id: c.external_id,
|
|
22097
22096
|
title: c.title?.trim() || "Untitled thread",
|
|
22098
|
-
subtitle: c.status ? [
|
|
22097
|
+
subtitle: c.status ? [chunk775S43W7_cjs.STATUS_LABELS[chunk775S43W7_cjs.asTaskStatus(c.status)], c.due_at ? `due ${shortDate(c.due_at)}` : null].filter(Boolean).join(" \xB7 ") : `${c.message_count} ${c.message_count === 1 ? "message" : "messages"}`,
|
|
22099
22098
|
time: timeAndDate(c.updated_at)
|
|
22100
22099
|
}));
|
|
22101
22100
|
}
|
|
@@ -22186,7 +22185,7 @@ function DocumentsUploadButton({
|
|
|
22186
22185
|
[hasAccountProviders, onSelectSource, onEmailWorkspace, onCreateNew, onTakePhoto]
|
|
22187
22186
|
);
|
|
22188
22187
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
22189
|
-
|
|
22188
|
+
chunkNLSWDP42_cjs.FilesAddMenu,
|
|
22190
22189
|
{
|
|
22191
22190
|
items,
|
|
22192
22191
|
isCompact,
|
|
@@ -22281,7 +22280,7 @@ function useDashboardAdd({ onCreateNew, onTakePhoto }) {
|
|
|
22281
22280
|
addFiles: () => upload(),
|
|
22282
22281
|
dialogs: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
22283
22282
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
22284
|
-
|
|
22283
|
+
chunkNLSWDP42_cjs.UrlInputDialog,
|
|
22285
22284
|
{
|
|
22286
22285
|
open: urlDialogOpen,
|
|
22287
22286
|
onOpenChange: setUrlDialogOpen,
|
|
@@ -22540,7 +22539,7 @@ var inWorkspace = ({ workspaceId }) => !!workspaceId;
|
|
|
22540
22539
|
var canWrite = ({ isMember, role }) => isMember && role !== "guest";
|
|
22541
22540
|
var notTemporary = ({ isTemporaryAccess }) => !isTemporaryAccess;
|
|
22542
22541
|
function setDocumentSourceFilter(source) {
|
|
22543
|
-
const { documentFilters, setDocumentFilters } =
|
|
22542
|
+
const { documentFilters, setDocumentFilters } = chunkDFBDQKGE_cjs.useFilesPrefs.getState();
|
|
22544
22543
|
setDocumentFilters({
|
|
22545
22544
|
...documentFilters,
|
|
22546
22545
|
source_uploaded: source === "uploaded" ? "include" : null,
|
|
@@ -22552,9 +22551,9 @@ function createBuiltinActions(environment, session) {
|
|
|
22552
22551
|
const startWorkflowOnDocuments = (workflowId) => {
|
|
22553
22552
|
const { viewingDocument, selectedDocumentIds } = session.getState();
|
|
22554
22553
|
const documents = viewingDocument ? [viewingDocument.id] : [...selectedDocumentIds];
|
|
22555
|
-
|
|
22554
|
+
chunk775S43W7_cjs.openWorkflowLaunch({ workflowId, context: { documents } });
|
|
22556
22555
|
};
|
|
22557
|
-
const setFilesView = (mode) => () =>
|
|
22556
|
+
const setFilesView = (mode) => () => chunkDFBDQKGE_cjs.useFilesPrefs.getState().setViewMode(mode);
|
|
22558
22557
|
const actions = [
|
|
22559
22558
|
{
|
|
22560
22559
|
id: "goto-user-settings",
|
|
@@ -22619,7 +22618,7 @@ function createBuiltinActions(environment, session) {
|
|
|
22619
22618
|
icon: "Files",
|
|
22620
22619
|
keywords: ["download", "csv", "excel"],
|
|
22621
22620
|
available: inWorkspace,
|
|
22622
|
-
run: () =>
|
|
22621
|
+
run: () => chunkDFBDQKGE_cjs.useFilesDialogs.getState().setExportOpen(true)
|
|
22623
22622
|
},
|
|
22624
22623
|
{
|
|
22625
22624
|
id: "bulk-tag-documents",
|
|
@@ -22628,7 +22627,7 @@ function createBuiltinActions(environment, session) {
|
|
|
22628
22627
|
icon: "Tags",
|
|
22629
22628
|
keywords: ["labels", "categorize", "bulk tag"],
|
|
22630
22629
|
available: inWorkspace,
|
|
22631
|
-
run: () =>
|
|
22630
|
+
run: () => chunkDFBDQKGE_cjs.useFilesDialogs.getState().setBulkTagsOpen(true)
|
|
22632
22631
|
},
|
|
22633
22632
|
{
|
|
22634
22633
|
id: "move-to-folder",
|
|
@@ -22637,7 +22636,7 @@ function createBuiltinActions(environment, session) {
|
|
|
22637
22636
|
icon: "FolderInput",
|
|
22638
22637
|
keywords: ["organize", "relocate"],
|
|
22639
22638
|
available: inWorkspace,
|
|
22640
|
-
run: () =>
|
|
22639
|
+
run: () => chunkDFBDQKGE_cjs.useFilesDialogs.getState().openMove()
|
|
22641
22640
|
},
|
|
22642
22641
|
{
|
|
22643
22642
|
id: "ai-review-documents",
|
|
@@ -22646,7 +22645,7 @@ function createBuiltinActions(environment, session) {
|
|
|
22646
22645
|
icon: "Sparkles",
|
|
22647
22646
|
keywords: ["auto tag", "analyze", "suggest tags"],
|
|
22648
22647
|
available: inWorkspace,
|
|
22649
|
-
run: () =>
|
|
22648
|
+
run: () => chunkDFBDQKGE_cjs.useAiReviewStore.getState().setOpen(true)
|
|
22650
22649
|
},
|
|
22651
22650
|
{
|
|
22652
22651
|
id: "docs-grid-view",
|
|
@@ -23111,7 +23110,7 @@ function ConnectedRemoteControlConsent() {
|
|
|
23111
23110
|
}
|
|
23112
23111
|
function ConsentPrompt() {
|
|
23113
23112
|
const pending = react.useRemoteControl((s) => s.pending);
|
|
23114
|
-
const remote =
|
|
23113
|
+
const remote = chunkCKCG4NDB_cjs.useRemoteControlActions();
|
|
23115
23114
|
const onceRef = react$1.useRef(null);
|
|
23116
23115
|
chunkORELHENJ_cjs.useMountedSurface("consent");
|
|
23117
23116
|
const handleOpenChange = (next) => {
|
|
@@ -23202,7 +23201,7 @@ function ConnectedRemoteControlIndicator() {
|
|
|
23202
23201
|
function Indicator() {
|
|
23203
23202
|
const enabled = react.useRemoteControl((s) => s.enabled);
|
|
23204
23203
|
const controllingAgent = react.useRemoteControl((s) => s.controllingAgent);
|
|
23205
|
-
const remote =
|
|
23204
|
+
const remote = chunkCKCG4NDB_cjs.useRemoteControlActions();
|
|
23206
23205
|
if (!enabled && !controllingAgent) return null;
|
|
23207
23206
|
const isActive = controllingAgent !== null;
|
|
23208
23207
|
const label = isActive ? `${controllingAgent.name} is controlling your screen` : "Remote control on";
|
|
@@ -23239,7 +23238,7 @@ function AddFromAccountsButton({
|
|
|
23239
23238
|
className: "gap-2",
|
|
23240
23239
|
"data-testid": dataTestId,
|
|
23241
23240
|
children: [
|
|
23242
|
-
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
23241
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "flex items-center gap-1", children: marks.map((m) => /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.VendorLogo, { vendorKey: m.vendorKey, product: m.product, className: "h-4 w-4" }, m.key)) }),
|
|
23243
23242
|
"Add from accounts"
|
|
23244
23243
|
]
|
|
23245
23244
|
}
|
|
@@ -23323,7 +23322,7 @@ function ConnectedUploadDropzone({
|
|
|
23323
23322
|
const onFiles = browse(fileInputRef);
|
|
23324
23323
|
const onFolder = browse(folderInputRef);
|
|
23325
23324
|
const dropTarget = /* @__PURE__ */ jsxRuntime.jsx(
|
|
23326
|
-
|
|
23325
|
+
chunkNLSWDP42_cjs.UploadDropArea,
|
|
23327
23326
|
{
|
|
23328
23327
|
isActive: dragActive,
|
|
23329
23328
|
isDisabled: disabled,
|
|
@@ -23337,11 +23336,11 @@ function ConnectedUploadDropzone({
|
|
|
23337
23336
|
onClick: (e) => {
|
|
23338
23337
|
if (e.target === e.currentTarget) onFiles();
|
|
23339
23338
|
},
|
|
23340
|
-
actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
23339
|
+
actions: compact ? /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadBrowseButtons, { onFiles, onFolder, isDisabled: disabled }) : void 0
|
|
23341
23340
|
}
|
|
23342
23341
|
);
|
|
23343
23342
|
const urlDialog = (trigger) => onUrlsSubmit ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
23344
|
-
|
|
23343
|
+
chunkNLSWDP42_cjs.UrlInputDialog,
|
|
23345
23344
|
{
|
|
23346
23345
|
onUrlsSubmit,
|
|
23347
23346
|
processing: disabled,
|
|
@@ -23354,12 +23353,12 @@ function ConnectedUploadDropzone({
|
|
|
23354
23353
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
23355
23354
|
dropTarget,
|
|
23356
23355
|
compactLeadingAction,
|
|
23357
|
-
onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(
|
|
23356
|
+
onUrlsSubmit && /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadSourceSection, { isIsolated: true, className: "flex flex-wrap justify-center gap-2", children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadUrlButton, { isDisabled: disabled, isCompact: true })) })
|
|
23358
23357
|
] });
|
|
23359
23358
|
}
|
|
23360
23359
|
if (!source) {
|
|
23361
23360
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23362
|
-
|
|
23361
|
+
chunkNLSWDP42_cjs.UploadSourcePicker,
|
|
23363
23362
|
{
|
|
23364
23363
|
isDisabled: disabled,
|
|
23365
23364
|
options: [
|
|
@@ -23395,14 +23394,14 @@ function ConnectedUploadDropzone({
|
|
|
23395
23394
|
}
|
|
23396
23395
|
if (source === "computer") {
|
|
23397
23396
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23398
|
-
|
|
23397
|
+
chunkNLSWDP42_cjs.UploadSourceSection,
|
|
23399
23398
|
{
|
|
23400
23399
|
testId: "upload-source-computer",
|
|
23401
23400
|
className: "flex w-full flex-col gap-3 pointer-coarse:flex-col-reverse",
|
|
23402
23401
|
children: [
|
|
23403
23402
|
dropTarget,
|
|
23404
23403
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
23405
|
-
|
|
23404
|
+
chunkNLSWDP42_cjs.UploadBrowseButtons,
|
|
23406
23405
|
{
|
|
23407
23406
|
layout: "grid",
|
|
23408
23407
|
onFiles,
|
|
@@ -23415,15 +23414,15 @@ function ConnectedUploadDropzone({
|
|
|
23415
23414
|
);
|
|
23416
23415
|
}
|
|
23417
23416
|
if (source === "internet" && onUrlsSubmit) {
|
|
23418
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23417
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadSourceSection, { testId: "upload-source-internet", className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadSourceSection, { isIsolated: true, children: urlDialog(/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadUrlButton, { isDisabled: disabled })) }) });
|
|
23419
23418
|
}
|
|
23420
23419
|
if (source === "email" && accounts) {
|
|
23421
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
23420
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadSourceSection, { testId: "upload-source-email", isIsolated: true, children: accounts });
|
|
23422
23421
|
}
|
|
23423
23422
|
return null;
|
|
23424
23423
|
})();
|
|
23425
23424
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
23426
|
-
|
|
23425
|
+
chunkNLSWDP42_cjs.UploadFrame,
|
|
23427
23426
|
{
|
|
23428
23427
|
isCompact: compact,
|
|
23429
23428
|
isDimmed: disabled || processingMessage !== null,
|
|
@@ -23484,7 +23483,7 @@ function EmptyWorkspaceUpload({
|
|
|
23484
23483
|
compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
|
|
23485
23484
|
}
|
|
23486
23485
|
),
|
|
23487
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
23486
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.PrivacyExplainerModal, {})
|
|
23488
23487
|
] })
|
|
23489
23488
|
}
|
|
23490
23489
|
);
|
|
@@ -23591,9 +23590,9 @@ function useDocumentFilters({
|
|
|
23591
23590
|
const { data: members = [] } = react.useWorkspaceUsers();
|
|
23592
23591
|
const user = members.find((m) => m.user.external_id === currentUserId)?.user;
|
|
23593
23592
|
const offlineIds = react.useOfflineDocumentIds();
|
|
23594
|
-
const pendingFolders =
|
|
23595
|
-
const persistedDocumentFilters =
|
|
23596
|
-
const setPersistedDocumentFilters =
|
|
23593
|
+
const pendingFolders = chunkDFBDQKGE_cjs.usePendingFolders(selectedWorkspaceId);
|
|
23594
|
+
const persistedDocumentFilters = chunkDFBDQKGE_cjs.useFilesPrefs((state) => state.documentFilters);
|
|
23595
|
+
const setPersistedDocumentFilters = chunkDFBDQKGE_cjs.useFilesPrefs((state) => state.setDocumentFilters);
|
|
23597
23596
|
const folderTree = react$1.useMemo(() => {
|
|
23598
23597
|
const allPaths = /* @__PURE__ */ new Set();
|
|
23599
23598
|
let hasUnfiled = false;
|
|
@@ -23814,7 +23813,7 @@ function useDocumentFilters({
|
|
|
23814
23813
|
{
|
|
23815
23814
|
id: "uploaded_by_me",
|
|
23816
23815
|
label: "Uploaded by me",
|
|
23817
|
-
icon: user ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
23816
|
+
icon: user ? /* @__PURE__ */ jsxRuntime.jsx(chunkBUVIBHFU_cjs.UserAvatar, { user, isMe: true }) : /* @__PURE__ */ jsxRuntime.jsx(lucideReact.User, { className: "h-4 w-4" }),
|
|
23818
23817
|
count: docs.filter((doc) => doc.created_by_ext_id === currentUserId).length
|
|
23819
23818
|
},
|
|
23820
23819
|
{
|
|
@@ -23935,7 +23934,7 @@ function useDocumentFilters({
|
|
|
23935
23934
|
const folderPath = react$1.useMemo(() => {
|
|
23936
23935
|
for (const [key, state] of documentFilters) {
|
|
23937
23936
|
if (key.startsWith("folder:") && key !== "folder:none" && state === "include") {
|
|
23938
|
-
return
|
|
23937
|
+
return chunkNLSWDP42_cjs.parseFolderSegments(key.slice("folder:".length));
|
|
23939
23938
|
}
|
|
23940
23939
|
}
|
|
23941
23940
|
return [];
|
|
@@ -23944,7 +23943,7 @@ function useDocumentFilters({
|
|
|
23944
23943
|
(path) => {
|
|
23945
23944
|
const next = new Map(documentFilters);
|
|
23946
23945
|
for (const key of next.keys()) if (key.startsWith("folder:")) next.set(key, null);
|
|
23947
|
-
const joined =
|
|
23946
|
+
const joined = chunkNLSWDP42_cjs.joinFolderPath(path);
|
|
23948
23947
|
if (joined) next.set(`folder:${joined}`, "include");
|
|
23949
23948
|
setDocumentFilters(next);
|
|
23950
23949
|
},
|
|
@@ -26493,7 +26492,7 @@ function ConnectedMailbox({
|
|
|
26493
26492
|
onTabChange: () => {
|
|
26494
26493
|
},
|
|
26495
26494
|
compactBreakpoint: 360,
|
|
26496
|
-
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
26495
|
+
firstTabContent: account ? /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.FilesFilterBar, { children: [
|
|
26497
26496
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
26498
26497
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
26499
26498
|
{
|
|
@@ -26528,7 +26527,7 @@ function ConnectedMailbox({
|
|
|
26528
26527
|
}
|
|
26529
26528
|
),
|
|
26530
26529
|
folderList && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex shrink-0 items-center gap-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
26531
|
-
|
|
26530
|
+
chunkNLSWDP42_cjs.FolderFilterButton,
|
|
26532
26531
|
{
|
|
26533
26532
|
label: folderList.find((f) => f.id === folderId)?.name ?? "Folders",
|
|
26534
26533
|
isActive: false,
|
|
@@ -26536,7 +26535,7 @@ function ConnectedMailbox({
|
|
|
26536
26535
|
onOpenChange: setFolderMenuOpen,
|
|
26537
26536
|
testId: "mail-folder-button",
|
|
26538
26537
|
children: folderList.map((item) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
26539
|
-
|
|
26538
|
+
chunkNLSWDP42_cjs.FolderPickerRow,
|
|
26540
26539
|
{
|
|
26541
26540
|
label: item.name,
|
|
26542
26541
|
count: item.unread > 0 ? item.unread : void 0,
|
|
@@ -27050,7 +27049,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
27050
27049
|
}) {
|
|
27051
27050
|
const authenticated = react.useArbiSession().status === "signed-in";
|
|
27052
27051
|
const { openMail } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
27053
|
-
const { loading } =
|
|
27052
|
+
const { loading } = chunkCKCG4NDB_cjs.useAuthPages();
|
|
27054
27053
|
const claim = react.useClaimSecureMail();
|
|
27055
27054
|
const [, setFirstLoginWorkspaces] = react.useTransientView(FIRST_LOGIN_WORKSPACES_VIEW, null);
|
|
27056
27055
|
const [failure, setFailure] = react$1.useState(null);
|
|
@@ -27090,7 +27089,7 @@ function ConnectedSecureMailClaimPage({
|
|
|
27090
27089
|
}
|
|
27091
27090
|
})();
|
|
27092
27091
|
}, [authenticated, claimId, key]);
|
|
27093
|
-
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(
|
|
27092
|
+
if (!error) return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: loading ?? /* @__PURE__ */ jsxRuntime.jsx(chunkW6INT5GS_cjs.LoadingIndicator, { variant: "splash" }) });
|
|
27094
27093
|
return /* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-screen items-center justify-center bg-background p-6", children: /* @__PURE__ */ jsxRuntime.jsxs("section", { className: "w-full max-w-md rounded-lg border border-border bg-card p-6", children: [
|
|
27095
27094
|
/* @__PURE__ */ jsxRuntime.jsx("p", { role: "alert", className: "mb-4 text-sm text-destructive", children: error }),
|
|
27096
27095
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -30245,7 +30244,7 @@ function ProcessingSettingsFooter({
|
|
|
30245
30244
|
[configField]
|
|
30246
30245
|
);
|
|
30247
30246
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30248
|
-
|
|
30247
|
+
chunkNLSWDP42_cjs.UploadFooterBar,
|
|
30249
30248
|
{
|
|
30250
30249
|
skipDuplicates,
|
|
30251
30250
|
onSkipDuplicatesChange: (value) => handleConfigChange("Parser", "SKIP_DUPLICATES", value),
|
|
@@ -30254,7 +30253,7 @@ function ProcessingSettingsFooter({
|
|
|
30254
30253
|
autoRenameInstruction,
|
|
30255
30254
|
onAutoRenameInstructionChange: (value) => handleConfigChange("DoctagLLM", "AUTO_RENAME_INSTRUCTION", value),
|
|
30256
30255
|
shareToggle: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30257
|
-
|
|
30256
|
+
chunkNLSWDP42_cjs.ShareToggle,
|
|
30258
30257
|
{
|
|
30259
30258
|
isVisible: isShared,
|
|
30260
30259
|
onToggle: onSharedChange,
|
|
@@ -30431,7 +30430,7 @@ ${summary}`,
|
|
|
30431
30430
|
}
|
|
30432
30431
|
);
|
|
30433
30432
|
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex min-h-0 flex-1 flex-col", "data-testid": "upload-documents", children: [
|
|
30434
|
-
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30433
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "min-h-0 flex-1 overflow-y-auto pb-2", children: uploading === null ? /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.UploadContainer, { className: "w-full px-4 pb-4 pt-2 sm:px-6", children: [
|
|
30435
30434
|
files.length === 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30436
30435
|
ConnectedUploadDropzone,
|
|
30437
30436
|
{
|
|
@@ -30447,7 +30446,7 @@ ${summary}`,
|
|
|
30447
30446
|
}
|
|
30448
30447
|
),
|
|
30449
30448
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30450
|
-
|
|
30449
|
+
chunkNLSWDP42_cjs.SelectedFilesList,
|
|
30451
30450
|
{
|
|
30452
30451
|
renderFileIcon,
|
|
30453
30452
|
files,
|
|
@@ -30456,10 +30455,10 @@ ${summary}`,
|
|
|
30456
30455
|
formatFileSize: formatFileSize4
|
|
30457
30456
|
}
|
|
30458
30457
|
),
|
|
30459
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
30460
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30461
|
-
] }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
30462
|
-
|
|
30458
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.RejectedFilesList, { files: refused, onClear: () => setRefused([]) }),
|
|
30459
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadErrorMessage, { message: error })
|
|
30460
|
+
] }) : /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.UploadContainer, { className: "w-full p-4 sm:p-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30461
|
+
chunkNLSWDP42_cjs.UploadProgress,
|
|
30463
30462
|
{
|
|
30464
30463
|
fileCount: count2,
|
|
30465
30464
|
entityLabel: plural5(count2),
|
|
@@ -30621,14 +30620,14 @@ function NativeMailImportSection({
|
|
|
30621
30620
|
),
|
|
30622
30621
|
onError: (e) => notify19(e instanceof Error ? e.message : "Could not add mail", "error")
|
|
30623
30622
|
});
|
|
30624
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30625
|
-
|
|
30623
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ImportFamilySection, { label: "Mail", identity: native.email, testId: "import-family-native", children: /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ImportList, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30624
|
+
chunkNLSWDP42_cjs.ImportRow,
|
|
30626
30625
|
{
|
|
30627
30626
|
testId: "email-provider-row-native",
|
|
30628
30627
|
logo: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Mail, { className: "h-7 w-7 text-primary", "aria-hidden": "true" }),
|
|
30629
30628
|
name: NATIVE_MAILBOX_SOURCE.display_name,
|
|
30630
30629
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30631
|
-
|
|
30630
|
+
chunkNLSWDP42_cjs.ImportRunActions,
|
|
30632
30631
|
{
|
|
30633
30632
|
isRunning: false,
|
|
30634
30633
|
isBusy: fileNow.isPending,
|
|
@@ -30642,10 +30641,10 @@ function NativeMailImportSection({
|
|
|
30642
30641
|
),
|
|
30643
30642
|
children: [
|
|
30644
30643
|
here && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30645
|
-
|
|
30644
|
+
chunkNLSWDP42_cjs.ImportSummary,
|
|
30646
30645
|
{
|
|
30647
|
-
aside: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30648
|
-
|
|
30646
|
+
aside: /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ImportAside, { children: here.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30647
|
+
chunkNLSWDP42_cjs.FolderSummary,
|
|
30649
30648
|
{
|
|
30650
30649
|
names: here.folders.map(
|
|
30651
30650
|
(id) => NATIVE_MAILBOX_FOLDERS.find((f) => f.id === id)?.name
|
|
@@ -30687,7 +30686,7 @@ var PROVIDER_FAMILIES = [
|
|
|
30687
30686
|
{ key: "google", label: "Google", vendors: ["gmail"] }
|
|
30688
30687
|
];
|
|
30689
30688
|
function VendorGlyph({ catalog }) {
|
|
30690
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
30689
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.VendorLogo, { vendorKey: catalog.vendor_key, className: "h-7 w-7" });
|
|
30691
30690
|
}
|
|
30692
30691
|
function mailboxProductName(catalog) {
|
|
30693
30692
|
if (catalog.vendor_key === "microsoft") return "Outlook";
|
|
@@ -30755,7 +30754,7 @@ function EmailProviderRow({
|
|
|
30755
30754
|
const emailNoun = (n) => n === 1 ? "email" : "emails";
|
|
30756
30755
|
const syncedCount = thisSync?.synced_count ?? 0;
|
|
30757
30756
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30758
|
-
|
|
30757
|
+
chunkNLSWDP42_cjs.ImportRow,
|
|
30759
30758
|
{
|
|
30760
30759
|
testId: `email-provider-row-${catalog.vendor_key}`,
|
|
30761
30760
|
logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph, { catalog }),
|
|
@@ -30764,7 +30763,7 @@ function EmailProviderRow({
|
|
|
30764
30763
|
// Connecting AND reconnecting are owned by the family header, so a
|
|
30765
30764
|
// not-connected or needs-reconnect row shows no button of its own.
|
|
30766
30765
|
!isConnected || needsReconnect ? null : /* @__PURE__ */ jsxRuntime.jsx(
|
|
30767
|
-
|
|
30766
|
+
chunkNLSWDP42_cjs.ImportRunActions,
|
|
30768
30767
|
{
|
|
30769
30768
|
isRunning: running,
|
|
30770
30769
|
isStopping: cancelSync.isPending,
|
|
@@ -30780,10 +30779,10 @@ function EmailProviderRow({
|
|
|
30780
30779
|
),
|
|
30781
30780
|
children: [
|
|
30782
30781
|
isConnected && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30783
|
-
|
|
30782
|
+
chunkNLSWDP42_cjs.ImportSummary,
|
|
30784
30783
|
{
|
|
30785
|
-
aside: /* @__PURE__ */ jsxRuntime.jsx(
|
|
30786
|
-
|
|
30784
|
+
aside: /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ImportAside, { children: thisSync && thisSync.folders.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30785
|
+
chunkNLSWDP42_cjs.FolderSummary,
|
|
30787
30786
|
{
|
|
30788
30787
|
names: thisSync.folders.map(
|
|
30789
30788
|
(id) => mailboxFolders?.find((f) => f.id === id)?.name
|
|
@@ -30807,7 +30806,7 @@ function EmailProviderRow({
|
|
|
30807
30806
|
}
|
|
30808
30807
|
),
|
|
30809
30808
|
running && /* @__PURE__ */ jsxRuntime.jsx(
|
|
30810
|
-
|
|
30809
|
+
chunkNLSWDP42_cjs.ImportProgress,
|
|
30811
30810
|
{
|
|
30812
30811
|
processed: progress?.processed ?? 0,
|
|
30813
30812
|
total: progress?.total,
|
|
@@ -30925,11 +30924,11 @@ function EmailImportPanel({
|
|
|
30925
30924
|
return { family, entries, extra, identity, connectVendor, connected, needsReconnect };
|
|
30926
30925
|
}).filter((g) => g.entries.length > 0 || g.extra);
|
|
30927
30926
|
if (!ownMailbox && groups.length === 0) return null;
|
|
30928
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30927
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.ImportPanel, { "data-testid": "email-import-panel", children: [
|
|
30929
30928
|
ownMailbox && /* @__PURE__ */ jsxRuntime.jsx(NativeMailImportSection, { workspaceExtId, native: ownMailbox }),
|
|
30930
30929
|
groups.map(
|
|
30931
30930
|
({ family, entries, extra, identity, connectVendor, connected, needsReconnect }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
30932
|
-
|
|
30931
|
+
chunkNLSWDP42_cjs.ImportFamilySection,
|
|
30933
30932
|
{
|
|
30934
30933
|
label: family.label,
|
|
30935
30934
|
identity,
|
|
@@ -30938,7 +30937,7 @@ function EmailImportPanel({
|
|
|
30938
30937
|
onAction: () => void (!connected ? connectFamily(connectVendor) : needsReconnect ? reconnectFamily(connectVendor) : disconnectFamily(family, connectVendor, identity)),
|
|
30939
30938
|
testId: `import-family-${family.key}`,
|
|
30940
30939
|
actionButton: !connected ? { testId: `import-family-connect-${family.key}` } : needsReconnect ? { testId: `import-family-reconnect-${family.key}` } : { testId: `import-family-disconnect-${family.key}` },
|
|
30941
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
30940
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.ImportList, { children: [
|
|
30942
30941
|
entries.map((entry) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
30943
30942
|
EmailProviderRow,
|
|
30944
30943
|
{
|
|
@@ -31023,7 +31022,7 @@ function driveProduct(vendorKey) {
|
|
|
31023
31022
|
}
|
|
31024
31023
|
function VendorGlyph2({ catalog }) {
|
|
31025
31024
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31026
|
-
|
|
31025
|
+
chunkNLSWDP42_cjs.VendorLogo,
|
|
31027
31026
|
{
|
|
31028
31027
|
vendorKey: catalog.vendor_key,
|
|
31029
31028
|
product: driveProduct(catalog.vendor_key).glyph,
|
|
@@ -31146,7 +31145,7 @@ function OneDriveProviderRow({
|
|
|
31146
31145
|
const driveNoun = (n) => n === 1 ? "document" : "documents";
|
|
31147
31146
|
const showRunActions = isConnected && !needsReconnect;
|
|
31148
31147
|
const reconnectAction = ownsAuth && needsReconnect ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31149
|
-
|
|
31148
|
+
chunkNLSWDP42_cjs.ImportActionButton,
|
|
31150
31149
|
{
|
|
31151
31150
|
onClick: () => void reconnectSelf(),
|
|
31152
31151
|
disabled: reauthPending,
|
|
@@ -31155,7 +31154,7 @@ function OneDriveProviderRow({
|
|
|
31155
31154
|
}
|
|
31156
31155
|
) : null;
|
|
31157
31156
|
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31158
|
-
|
|
31157
|
+
chunkNLSWDP42_cjs.ImportRow,
|
|
31159
31158
|
{
|
|
31160
31159
|
testId: `onedrive-provider-row-${catalog.vendor_key}`,
|
|
31161
31160
|
logo: /* @__PURE__ */ jsxRuntime.jsx(VendorGlyph2, { catalog }),
|
|
@@ -31167,7 +31166,7 @@ function OneDriveProviderRow({
|
|
|
31167
31166
|
// Until folders are configured here (or when nothing new is pending), Import now
|
|
31168
31167
|
// stays disabled; the gear opens the folder picker.
|
|
31169
31168
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
31170
|
-
|
|
31169
|
+
chunkNLSWDP42_cjs.ImportRunActions,
|
|
31171
31170
|
{
|
|
31172
31171
|
isRunning: running,
|
|
31173
31172
|
isStopping: cancelSync.isPending,
|
|
@@ -31186,16 +31185,16 @@ function OneDriveProviderRow({
|
|
|
31186
31185
|
) : reconnectAction
|
|
31187
31186
|
),
|
|
31188
31187
|
children: [
|
|
31189
|
-
ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31188
|
+
ownsAuth && needsReconnect && /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.ImportHint, { "data-testid": `onedrive-reconnect-hint-${catalog.vendor_key}`, children: [
|
|
31190
31189
|
"Couldn\u2019t reach SharePoint. Click ",
|
|
31191
31190
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-medium", children: "Reconnect" }),
|
|
31192
31191
|
" \u2014 if it keeps happening, log out and back in to refresh the connection."
|
|
31193
31192
|
] }),
|
|
31194
31193
|
configuredHere && !needsReconnect && !running && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31195
|
-
|
|
31194
|
+
chunkNLSWDP42_cjs.ImportSummary,
|
|
31196
31195
|
{
|
|
31197
31196
|
className: "mt-2",
|
|
31198
|
-
aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
31197
|
+
aside: typeof pendingCount === "number" ? /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ImportAside, { className: "max-w-none shrink-0", children: /* @__PURE__ */ jsxRuntime.jsx("span", { "data-testid": `drive-pending-${catalog.vendor_key}`, children: pendingCount > 0 ? `${pendingCount.toLocaleString()} new ${driveNoun(pendingCount)} to sync` : "No new documents to sync" }) }) : void 0,
|
|
31199
31198
|
children: [
|
|
31200
31199
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { children: [
|
|
31201
31200
|
"Syncing ",
|
|
@@ -31223,7 +31222,7 @@ function OneDriveProviderRow({
|
|
|
31223
31222
|
}
|
|
31224
31223
|
),
|
|
31225
31224
|
running && /* @__PURE__ */ jsxRuntime.jsx(
|
|
31226
|
-
|
|
31225
|
+
chunkNLSWDP42_cjs.ImportProgress,
|
|
31227
31226
|
{
|
|
31228
31227
|
processed: progress?.processed ?? 0,
|
|
31229
31228
|
total: progress?.total,
|
|
@@ -31287,13 +31286,13 @@ function SharePointEnableRow({
|
|
|
31287
31286
|
}
|
|
31288
31287
|
};
|
|
31289
31288
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31290
|
-
|
|
31289
|
+
chunkNLSWDP42_cjs.ImportRow,
|
|
31291
31290
|
{
|
|
31292
31291
|
testId: `onedrive-provider-row-${catalog.vendor_key}`,
|
|
31293
|
-
logo: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31292
|
+
logo: /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.VendorLogo, { vendorKey: catalog.vendor_key, product: product.glyph, className: "h-7 w-7" }),
|
|
31294
31293
|
name: product.name,
|
|
31295
31294
|
actions: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31296
|
-
|
|
31295
|
+
chunkNLSWDP42_cjs.ImportActionButton,
|
|
31297
31296
|
{
|
|
31298
31297
|
onClick: () => void enable(),
|
|
31299
31298
|
disabled: pending,
|
|
@@ -31301,7 +31300,7 @@ function SharePointEnableRow({
|
|
|
31301
31300
|
children: pending ? "Enabling\u2026" : `Enable ${product.name}`
|
|
31302
31301
|
}
|
|
31303
31302
|
),
|
|
31304
|
-
children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(
|
|
31303
|
+
children: sharePointAdminUrl && /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.ImportHint, { children: [
|
|
31305
31304
|
"Does your organization require admin approval?",
|
|
31306
31305
|
" ",
|
|
31307
31306
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -31350,11 +31349,11 @@ function DriveImportPanel({
|
|
|
31350
31349
|
}
|
|
31351
31350
|
const product = driveProduct(entry.vendor_key);
|
|
31352
31351
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31353
|
-
|
|
31352
|
+
chunkNLSWDP42_cjs.ImportRow,
|
|
31354
31353
|
{
|
|
31355
31354
|
testId: `onedrive-provider-row-${entry.vendor_key}`,
|
|
31356
31355
|
logo: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31357
|
-
|
|
31356
|
+
chunkNLSWDP42_cjs.VendorLogo,
|
|
31358
31357
|
{
|
|
31359
31358
|
vendorKey: entry.vendor_key,
|
|
31360
31359
|
product: product.glyph,
|
|
@@ -31379,7 +31378,7 @@ function DriveImportPanel({
|
|
|
31379
31378
|
);
|
|
31380
31379
|
}).filter(Boolean);
|
|
31381
31380
|
if (rows.length === 0) return null;
|
|
31382
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31381
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ImportList, { "data-testid": "onedrive-import-panel", children: rows });
|
|
31383
31382
|
}
|
|
31384
31383
|
function useHasAccountsImport() {
|
|
31385
31384
|
const isVendorVisible = react.useConnectorVendorVisibility();
|
|
@@ -31588,7 +31587,7 @@ function DocumentNameCellRenderer(params) {
|
|
|
31588
31587
|
if (!doc) return null;
|
|
31589
31588
|
const context = params.context;
|
|
31590
31589
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31591
|
-
|
|
31590
|
+
chunkBUVIBHFU_cjs.DocumentNameCell,
|
|
31592
31591
|
{
|
|
31593
31592
|
doc,
|
|
31594
31593
|
canEdit: canEdit(params),
|
|
@@ -31606,7 +31605,7 @@ function DocumentNameCellRenderer(params) {
|
|
|
31606
31605
|
function SharedCellRenderer(params) {
|
|
31607
31606
|
if (!params.data) return null;
|
|
31608
31607
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31609
|
-
|
|
31608
|
+
chunkBUVIBHFU_cjs.DocumentSharedCell,
|
|
31610
31609
|
{
|
|
31611
31610
|
document: params.data,
|
|
31612
31611
|
disabled: !params.canToggle(params),
|
|
@@ -31619,7 +31618,7 @@ function StatusCellRenderer(params) {
|
|
|
31619
31618
|
if (!params.data) return null;
|
|
31620
31619
|
const context = params.context;
|
|
31621
31620
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31622
|
-
|
|
31621
|
+
chunkBUVIBHFU_cjs.StatusCell,
|
|
31623
31622
|
{
|
|
31624
31623
|
doc: params.data,
|
|
31625
31624
|
onStatusClick: params.onStatusClick,
|
|
@@ -31631,7 +31630,7 @@ function LabelsCellRenderer(params) {
|
|
|
31631
31630
|
if (!params.data) return null;
|
|
31632
31631
|
const context = params.context;
|
|
31633
31632
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31634
|
-
|
|
31633
|
+
chunkBUVIBHFU_cjs.DocumentLabelsCell,
|
|
31635
31634
|
{
|
|
31636
31635
|
doc: params.data,
|
|
31637
31636
|
labels: params.labels,
|
|
@@ -31651,7 +31650,7 @@ function RelatedDocsCellRenderer(params) {
|
|
|
31651
31650
|
if (!related || react.getRelatedTotal(related) === 0) return null;
|
|
31652
31651
|
const { onOpenDocument, onDeleteDocument } = params;
|
|
31653
31652
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31654
|
-
|
|
31653
|
+
chunkBUVIBHFU_cjs.RelatedDocumentsCell,
|
|
31655
31654
|
{
|
|
31656
31655
|
currentDoc: params.data,
|
|
31657
31656
|
related,
|
|
@@ -31666,7 +31665,7 @@ function FolderCellRenderer(params) {
|
|
|
31666
31665
|
if (!params.data) return null;
|
|
31667
31666
|
const context = params.context;
|
|
31668
31667
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31669
|
-
|
|
31668
|
+
chunkBUVIBHFU_cjs.DocumentFolderCell,
|
|
31670
31669
|
{
|
|
31671
31670
|
document: params.data,
|
|
31672
31671
|
isEditable: params.canEdit(params),
|
|
@@ -31680,7 +31679,7 @@ function CreatedByCellRenderer(params) {
|
|
|
31680
31679
|
const context = params.context;
|
|
31681
31680
|
const creator = context?.getWorkspaceUsers?.().find((u) => u.external_id === params.data.created_by_ext_id);
|
|
31682
31681
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex items-center justify-center h-full", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31683
|
-
|
|
31682
|
+
chunkBUVIBHFU_cjs.UserAvatar,
|
|
31684
31683
|
{
|
|
31685
31684
|
user: creator,
|
|
31686
31685
|
isMe: !!creator && creator.external_id === context?.getCurrentUserId?.(),
|
|
@@ -31693,7 +31692,7 @@ function CheckboxCellRenderer(params) {
|
|
|
31693
31692
|
if (!params.data) return null;
|
|
31694
31693
|
const isChecked = params.value === true;
|
|
31695
31694
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31696
|
-
|
|
31695
|
+
chunkNLSWDP42_cjs.CheckboxCell,
|
|
31697
31696
|
{
|
|
31698
31697
|
isChecked,
|
|
31699
31698
|
color: tagColor,
|
|
@@ -31713,13 +31712,13 @@ function TagHeaderComponent(params) {
|
|
|
31713
31712
|
return () => params.column.removeEventListener("sortChanged", updateSort);
|
|
31714
31713
|
}, [params.column]);
|
|
31715
31714
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
31716
|
-
|
|
31715
|
+
chunkNLSWDP42_cjs.TagColumnHeader,
|
|
31717
31716
|
{
|
|
31718
31717
|
isCentered: isCheckbox,
|
|
31719
31718
|
sort,
|
|
31720
31719
|
onSort: params.enableSorting ? (additive) => params.progressSort(additive) : void 0,
|
|
31721
|
-
filter: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31722
|
-
label: /* @__PURE__ */ jsxRuntime.jsx(
|
|
31720
|
+
filter: /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FilterButton, { params, colId: tag.external_id }),
|
|
31721
|
+
label: /* @__PURE__ */ jsxRuntime.jsx(chunkHA66DHW6_cjs.ConnectedTagEntity, { tag, size: "sm" })
|
|
31723
31722
|
}
|
|
31724
31723
|
);
|
|
31725
31724
|
}
|
|
@@ -31804,7 +31803,7 @@ function createTagColumn({
|
|
|
31804
31803
|
tagColor,
|
|
31805
31804
|
isMember
|
|
31806
31805
|
} : void 0,
|
|
31807
|
-
cellEditor: isSelect ?
|
|
31806
|
+
cellEditor: isSelect ? chunkNLSWDP42_cjs.MultiSelectCellEditor : isText ? "agLargeTextCellEditor" : void 0,
|
|
31808
31807
|
cellEditorParams: isSelect ? createMultiSelectCellEditorParams(tag.tag_type.options || []) : isText ? { rows: 8, cols: 50 } : void 0,
|
|
31809
31808
|
cellEditorPopup: isText || isSelect,
|
|
31810
31809
|
// Text and Select tags use popup editor for better UX
|
|
@@ -31924,8 +31923,8 @@ function createDocumentColumns({
|
|
|
31924
31923
|
onToggleShared,
|
|
31925
31924
|
notify: notify19
|
|
31926
31925
|
}) {
|
|
31927
|
-
const isRowEditableByOwner = (params) =>
|
|
31928
|
-
const isRowEditableByMember = (params) =>
|
|
31926
|
+
const isRowEditableByOwner = (params) => chunkNLSWDP42_cjs.canChangeVisibility(params.data, currentUserExtId);
|
|
31927
|
+
const isRowEditableByMember = (params) => chunkNLSWDP42_cjs.canEditDocumentFields(params.data, currentUserExtId, workspaceRole);
|
|
31929
31928
|
const checkboxTags = availableTags.filter(browser.isLabelTag);
|
|
31930
31929
|
const allColumns = [];
|
|
31931
31930
|
allColumns.push({
|
|
@@ -32048,7 +32047,7 @@ function createDocumentColumns({
|
|
|
32048
32047
|
singleClickEdit: true,
|
|
32049
32048
|
cellEditor: "agSelectCellEditor",
|
|
32050
32049
|
cellEditorParams: {
|
|
32051
|
-
values: [...
|
|
32050
|
+
values: [...chunkNLSWDP42_cjs.DOCUMENT_TYPE_OPTIONS]
|
|
32052
32051
|
},
|
|
32053
32052
|
context: { icon: lucideReact.Sparkles },
|
|
32054
32053
|
valueGetter: (params) => ui.getDocumentNature(params.data) || "",
|
|
@@ -32343,9 +32342,10 @@ function createDocumentColumns({
|
|
|
32343
32342
|
});
|
|
32344
32343
|
allColumns.push({
|
|
32345
32344
|
colId: "shared",
|
|
32346
|
-
headerName: "
|
|
32345
|
+
headerName: "Sharing",
|
|
32347
32346
|
field: "shared",
|
|
32348
|
-
width:
|
|
32347
|
+
width: 124,
|
|
32348
|
+
minWidth: 124,
|
|
32349
32349
|
sortable: true,
|
|
32350
32350
|
cellDataType: "boolean",
|
|
32351
32351
|
context: { icon: lucideReact.Share2 },
|
|
@@ -32585,7 +32585,7 @@ function useDocumentTable({
|
|
|
32585
32585
|
}
|
|
32586
32586
|
const stabilizedTagIds = prevTagIdsRef.current;
|
|
32587
32587
|
const stabilizedTagNames = prevTagNamesRef.current;
|
|
32588
|
-
const defaultVisibleColumns = react$1.useMemo(() => [...
|
|
32588
|
+
const defaultVisibleColumns = react$1.useMemo(() => [...chunkNLSWDP42_cjs.DEFAULT_DOCUMENT_COLUMNS], []);
|
|
32589
32589
|
const toggleShared = react$1.useCallback((docId, shared) => {
|
|
32590
32590
|
updateDocRef.current.mutate({ documents: [{ external_id: docId, shared }] });
|
|
32591
32591
|
}, []);
|
|
@@ -32848,10 +32848,10 @@ function ConnectedFilesBulkActions({
|
|
|
32848
32848
|
const bulk = useDocumentBulkActions(selectedDocuments);
|
|
32849
32849
|
const count2 = selectedDocuments.length;
|
|
32850
32850
|
const noun = ui.getEntityLabel("DOCUMENT", count2 === 1 ? "SINGULAR" : "PLURAL");
|
|
32851
|
-
const shareState =
|
|
32851
|
+
const shareState = chunkNLSWDP42_cjs.shareStateOf(bulk.freshSelectedDocuments);
|
|
32852
32852
|
const handleToggleShare = async (shouldShare) => {
|
|
32853
32853
|
if (shouldShare) return bulk.share();
|
|
32854
|
-
const confirmed = await
|
|
32854
|
+
const confirmed = await chunkNLSWDP42_cjs.confirmHideFromMembers(
|
|
32855
32855
|
confirm,
|
|
32856
32856
|
bulk.freshSelectedDocuments.length,
|
|
32857
32857
|
members
|
|
@@ -32868,7 +32868,7 @@ function ConnectedFilesBulkActions({
|
|
|
32868
32868
|
const { openDocumentsChat, openFieldsManager } = actions;
|
|
32869
32869
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
32870
32870
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
32871
|
-
|
|
32871
|
+
chunkNLSWDP42_cjs.BulkActionsBar,
|
|
32872
32872
|
{
|
|
32873
32873
|
count: count2,
|
|
32874
32874
|
onClear: onClearSelection,
|
|
@@ -32894,7 +32894,7 @@ function ConnectedFilesBulkActions({
|
|
|
32894
32894
|
onDelete: () => setConfirming("delete"),
|
|
32895
32895
|
shareState,
|
|
32896
32896
|
shareLabels: shareState === "shared" ? { share: "Make private" } : void 0,
|
|
32897
|
-
shareTooltip:
|
|
32897
|
+
shareTooltip: chunkNLSWDP42_cjs.shareTooltipFor(shareState, bulk.freshSelectedDocuments.length === 1),
|
|
32898
32898
|
onToggleShare: (shouldShare) => void handleToggleShare(shouldShare)
|
|
32899
32899
|
}
|
|
32900
32900
|
),
|
|
@@ -32909,7 +32909,7 @@ function ConnectedFilesBulkActions({
|
|
|
32909
32909
|
onClearSelection();
|
|
32910
32910
|
},
|
|
32911
32911
|
title: `Delete ${count2} ${noun}`,
|
|
32912
|
-
description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ?
|
|
32912
|
+
description: `Delete ${namedTargets(selectedDocuments)}? ${count2 === 1 ? chunkNLSWDP42_cjs.RECENTLY_DELETED_HINT : chunkNLSWDP42_cjs.RECENTLY_DELETED_HINT_PLURAL}`,
|
|
32913
32913
|
confirmText: "Delete",
|
|
32914
32914
|
variant: "destructive"
|
|
32915
32915
|
}
|
|
@@ -33157,7 +33157,7 @@ function useAiReviewLiveUpdates() {
|
|
|
33157
33157
|
if (message.batch_type !== "doctag_generate") return;
|
|
33158
33158
|
const docIds = message.doc_ext_ids ?? [];
|
|
33159
33159
|
if (!docIds.length) return;
|
|
33160
|
-
void refreshDocuments(docIds).then(() =>
|
|
33160
|
+
void refreshDocuments(docIds).then(() => chunkDFBDQKGE_cjs.useAiReviewStore.getState().markFinished(docIds));
|
|
33161
33161
|
const { clearTask } = react.useArbiWsStore.getState();
|
|
33162
33162
|
for (const id of docIds) clearTask(id);
|
|
33163
33163
|
});
|
|
@@ -33192,7 +33192,7 @@ function useBatchCompleteToasts() {
|
|
|
33192
33192
|
timer.current = null;
|
|
33193
33193
|
const runs = pending.current;
|
|
33194
33194
|
pending.current = /* @__PURE__ */ new Map();
|
|
33195
|
-
const hasReview = !!
|
|
33195
|
+
const hasReview = !!chunkDFBDQKGE_cjs.useAiReviewStore.getState().run;
|
|
33196
33196
|
for (const [id, entry] of runs) {
|
|
33197
33197
|
const n = entry.docIds.size;
|
|
33198
33198
|
notify19(
|
|
@@ -33205,7 +33205,7 @@ function useBatchCompleteToasts() {
|
|
|
33205
33205
|
...hasReview && {
|
|
33206
33206
|
action: {
|
|
33207
33207
|
label: "View results",
|
|
33208
|
-
onClick: () =>
|
|
33208
|
+
onClick: () => chunkDFBDQKGE_cjs.useAiReviewStore.getState().setOpen(true)
|
|
33209
33209
|
}
|
|
33210
33210
|
}
|
|
33211
33211
|
}
|
|
@@ -33213,7 +33213,7 @@ function useBatchCompleteToasts() {
|
|
|
33213
33213
|
}
|
|
33214
33214
|
}, AI_FIELDS_NOTICE_WINDOW_MS);
|
|
33215
33215
|
} else if (message.batch_type === "entity_extract") {
|
|
33216
|
-
say(`${
|
|
33216
|
+
say(`${chunkW6INT5GS_cjs.entitiesPhrase()} extracted from ${chunkW6INT5GS_cjs.documentCount(docIds.length)}`, "success", {
|
|
33217
33217
|
...openTags && { action: { label: "View", onClick: openTags } }
|
|
33218
33218
|
});
|
|
33219
33219
|
} else if (message.batch_type === "upload") {
|
|
@@ -33252,12 +33252,12 @@ function ConnectedMoveToFolder({
|
|
|
33252
33252
|
setIsSubmitting(true);
|
|
33253
33253
|
try {
|
|
33254
33254
|
if (folderToMove) {
|
|
33255
|
-
const docsInFolder =
|
|
33255
|
+
const docsInFolder = chunkNLSWDP42_cjs.collectFolderDocs(allDocs, folderToMove.path);
|
|
33256
33256
|
if (docsInFolder.length === 0) {
|
|
33257
33257
|
onClose();
|
|
33258
33258
|
return;
|
|
33259
33259
|
}
|
|
33260
|
-
const newPrefixSegments = targetFolder ? [...
|
|
33260
|
+
const newPrefixSegments = targetFolder ? [...chunkNLSWDP42_cjs.parseFolderSegments(targetFolder), folderToMove.name] : [folderToMove.name];
|
|
33261
33261
|
await renameFolder(docsInFolder, folderToMove.path, newPrefixSegments);
|
|
33262
33262
|
const dest = targetFolder ? `"${targetFolder}/${folderToMove.name}"` : `"${folderToMove.name}" (root)`;
|
|
33263
33263
|
notify19(`Moved folder to ${dest}`, "success");
|
|
@@ -33282,9 +33282,9 @@ function ConnectedMoveToFolder({
|
|
|
33282
33282
|
}
|
|
33283
33283
|
};
|
|
33284
33284
|
const isFolderMode = !!folderToMove;
|
|
33285
|
-
const folders =
|
|
33285
|
+
const folders = chunkBUVIBHFU_cjs.useDocumentFolders(allDocs, targetFolder);
|
|
33286
33286
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33287
|
-
|
|
33287
|
+
chunkNLSWDP42_cjs.MoveToFolderDialog,
|
|
33288
33288
|
{
|
|
33289
33289
|
open: isOpen,
|
|
33290
33290
|
onClose,
|
|
@@ -33294,7 +33294,7 @@ function ConnectedMoveToFolder({
|
|
|
33294
33294
|
isSubmitting,
|
|
33295
33295
|
onConfirm: handleMove,
|
|
33296
33296
|
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33297
|
-
|
|
33297
|
+
chunkNLSWDP42_cjs.FolderCommandList,
|
|
33298
33298
|
{
|
|
33299
33299
|
folders,
|
|
33300
33300
|
value: targetFolder,
|
|
@@ -33522,7 +33522,7 @@ function ConnectedBulkTagEditor({
|
|
|
33522
33522
|
const isClearing = change?.action === "remove";
|
|
33523
33523
|
return {
|
|
33524
33524
|
id: tag.external_id,
|
|
33525
|
-
badge: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33525
|
+
badge: /* @__PURE__ */ jsxRuntime.jsx(chunkHA66DHW6_cjs.ConnectedTagEntity, { tag, size: "md" }),
|
|
33526
33526
|
type: tag.tag_type.type,
|
|
33527
33527
|
color: ui.getEntityColor(tag.external_id, "medium"),
|
|
33528
33528
|
options: tag.tag_type.type === "select" ? tag.tag_type.options : void 0,
|
|
@@ -33554,7 +33554,7 @@ function ConnectedBulkTagEditor({
|
|
|
33554
33554
|
const documentsLabel = ui.getEntityLabel("DOCUMENT", "PLURAL").toLowerCase();
|
|
33555
33555
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
33556
33556
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33557
|
-
|
|
33557
|
+
chunkNLSWDP42_cjs.BulkTagEditorDialog,
|
|
33558
33558
|
{
|
|
33559
33559
|
open,
|
|
33560
33560
|
onClose,
|
|
@@ -33612,7 +33612,7 @@ function ConnectedBulkTagEditor({
|
|
|
33612
33612
|
}
|
|
33613
33613
|
),
|
|
33614
33614
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
33615
|
-
|
|
33615
|
+
chunkNLSWDP42_cjs.BulkReplaceDialog,
|
|
33616
33616
|
{
|
|
33617
33617
|
open: showGenerateConfirmation,
|
|
33618
33618
|
onClose: () => setShowGenerateConfirmation(false),
|
|
@@ -33727,7 +33727,7 @@ function ViewSelector({
|
|
|
33727
33727
|
columns: defaultColumns,
|
|
33728
33728
|
icon: lucideReact.Table,
|
|
33729
33729
|
// Both built-ins load at the minimal (compact) row height.
|
|
33730
|
-
rowHeight:
|
|
33730
|
+
rowHeight: chunkNLSWDP42_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
33731
33731
|
// [] = loading this view unpins everything.
|
|
33732
33732
|
pinnedLeft: []
|
|
33733
33733
|
},
|
|
@@ -33738,15 +33738,15 @@ function ViewSelector({
|
|
|
33738
33738
|
// batch-select checkbox and Title stay fixed left while scrolling.
|
|
33739
33739
|
columns: defaultColumns,
|
|
33740
33740
|
icon: lucideReact.Columns3,
|
|
33741
|
-
rowHeight:
|
|
33741
|
+
rowHeight: chunkNLSWDP42_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
33742
33742
|
pinnedLeft: DOCUMENT_VIEW_PINNED
|
|
33743
33743
|
},
|
|
33744
33744
|
{
|
|
33745
33745
|
key: "email-default",
|
|
33746
33746
|
label: "Email view",
|
|
33747
|
-
columns: [...
|
|
33747
|
+
columns: [...chunkNLSWDP42_cjs.EMAIL_VIEW_COLUMNS],
|
|
33748
33748
|
icon: lucideReact.Mail,
|
|
33749
|
-
rowHeight:
|
|
33749
|
+
rowHeight: chunkNLSWDP42_cjs.DOCUMENTS_ROW_HEIGHT_INITIAL,
|
|
33750
33750
|
pinnedLeft: []
|
|
33751
33751
|
}
|
|
33752
33752
|
],
|
|
@@ -33770,7 +33770,7 @@ function ViewSelector({
|
|
|
33770
33770
|
},
|
|
33771
33771
|
[confirm, workspaceId, deleteView, notify19]
|
|
33772
33772
|
);
|
|
33773
|
-
const menu =
|
|
33773
|
+
const menu = chunkNLSWDP42_cjs.useGridViews({
|
|
33774
33774
|
getGridApi,
|
|
33775
33775
|
defaultColumns,
|
|
33776
33776
|
builtins,
|
|
@@ -33785,7 +33785,7 @@ function ViewSelector({
|
|
|
33785
33785
|
onDeleteView,
|
|
33786
33786
|
isSaving
|
|
33787
33787
|
});
|
|
33788
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
33788
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ViewSelectorMenu, { ...menu });
|
|
33789
33789
|
}
|
|
33790
33790
|
function DocumentsFilterBarActions({
|
|
33791
33791
|
isModal,
|
|
@@ -33825,7 +33825,7 @@ function DocumentsFilterBarActions({
|
|
|
33825
33825
|
),
|
|
33826
33826
|
documentsViewMode === "grid" && // The phone list is a fixed two-line layout, so row density only applies from sm up.
|
|
33827
33827
|
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "hidden sm:block", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
33828
|
-
|
|
33828
|
+
chunkNLSWDP42_cjs.RowDensityControl,
|
|
33829
33829
|
{
|
|
33830
33830
|
rowHeight: documentsRowHeight,
|
|
33831
33831
|
onRowHeightChange: onDocumentsRowHeightChange
|
|
@@ -33933,8 +33933,8 @@ function DocumentsFilterBarActions({
|
|
|
33933
33933
|
}
|
|
33934
33934
|
function PersistedGridView(props) {
|
|
33935
33935
|
const { persistState, gridId } = props;
|
|
33936
|
-
const setGridState =
|
|
33937
|
-
const gridState = persistState && gridId ?
|
|
33936
|
+
const setGridState = chunkDFBDQKGE_cjs.useFilesGridStates((state) => state.setGridState);
|
|
33937
|
+
const gridState = persistState && gridId ? chunkDFBDQKGE_cjs.useFilesGridStates.getState().gridStates[gridId] : void 0;
|
|
33938
33938
|
const onGridStateChange = react$1.useCallback(
|
|
33939
33939
|
(state) => {
|
|
33940
33940
|
if (persistState && gridId) setGridState(gridId, state);
|
|
@@ -34036,13 +34036,13 @@ var TABLET_TABLE_BELOW = 860;
|
|
|
34036
34036
|
var TABLET_VIEWPORT_BELOW = 1100;
|
|
34037
34037
|
var NO_CONVERSATION_DOCUMENTS2 = [];
|
|
34038
34038
|
var DocumentReviewCard = react$1.lazy(
|
|
34039
|
-
() => import('../DocumentReviewCard-
|
|
34039
|
+
() => import('../DocumentReviewCard-BPIAJJED.cjs').then((module) => ({ default: module.DocumentReviewCard }))
|
|
34040
34040
|
);
|
|
34041
34041
|
var FilesViewerDialog = react$1.lazy(
|
|
34042
|
-
() => import('../FilesViewerDialog-
|
|
34042
|
+
() => import('../FilesViewerDialog-67WK3TZC.cjs').then((module) => ({ default: module.FilesViewerDialog }))
|
|
34043
34043
|
);
|
|
34044
34044
|
function defaultReviewCard(props) {
|
|
34045
|
-
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(
|
|
34045
|
+
return /* @__PURE__ */ jsxRuntime.jsx(react$1.Suspense, { fallback: /* @__PURE__ */ jsxRuntime.jsx(chunkW6INT5GS_cjs.LoadingIndicator, { message: "Loading document viewer..." }), children: /* @__PURE__ */ jsxRuntime.jsx(DocumentReviewCard, { ...props }, `navigator-${props.currentDocument.external_id}`) });
|
|
34046
34046
|
}
|
|
34047
34047
|
function ConnectedFilesPage({
|
|
34048
34048
|
isModal = false,
|
|
@@ -34064,7 +34064,7 @@ function ConnectedFilesPage({
|
|
|
34064
34064
|
GridComponent = PersistedGridView,
|
|
34065
34065
|
gridStateVersion,
|
|
34066
34066
|
onGridApi,
|
|
34067
|
-
prefsKey =
|
|
34067
|
+
prefsKey = chunkDFBDQKGE_cjs.FILES_PREFS_KEY,
|
|
34068
34068
|
defaultViewMode
|
|
34069
34069
|
}) {
|
|
34070
34070
|
const { openDocument, openDialog: openDialog2, openProcessing, openTags } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
@@ -34085,7 +34085,7 @@ function ConnectedFilesPage({
|
|
|
34085
34085
|
const deleteDocuments = react.useDeleteDocuments();
|
|
34086
34086
|
const isDocumentsPending = isLoading && documents.length === 0;
|
|
34087
34087
|
const { workspaceId, userId, live } = chunkJR2YSBD5_cjs.useConnectedWorkspace();
|
|
34088
|
-
const { role, members } =
|
|
34088
|
+
const { role, members } = chunkECLUFKYR_cjs.useConnectedWorkspaceRole();
|
|
34089
34089
|
const { data: workspaces } = react.useWorkspaces({ enabled: live });
|
|
34090
34090
|
const workspace = workspaces?.find((w) => w.external_id === workspaceId);
|
|
34091
34091
|
const workspaceName = workspace?.name;
|
|
@@ -34110,8 +34110,8 @@ function ConnectedFilesPage({
|
|
|
34110
34110
|
const inConversationDocuments = react.useArbiSessionState(
|
|
34111
34111
|
(s) => s.conversationDocuments[s.conversationId ?? "new"] ?? NO_CONVERSATION_DOCUMENTS2
|
|
34112
34112
|
);
|
|
34113
|
-
const viewMode =
|
|
34114
|
-
const setPrefsViewMode =
|
|
34113
|
+
const viewMode = chunkDFBDQKGE_cjs.useFilesPrefs((s) => chunkDFBDQKGE_cjs.filesViewMode(s, prefsKey, defaultViewMode));
|
|
34114
|
+
const setPrefsViewMode = chunkDFBDQKGE_cjs.useFilesPrefs((s) => s.setViewMode);
|
|
34115
34115
|
const setViewMode = react$1.useCallback(
|
|
34116
34116
|
(mode) => setPrefsViewMode(mode, prefsKey),
|
|
34117
34117
|
[setPrefsViewMode, prefsKey]
|
|
@@ -34141,7 +34141,7 @@ function ConnectedFilesPage({
|
|
|
34141
34141
|
shownPlaceRef.current = null;
|
|
34142
34142
|
if (session.getState().documentViewer.compareId)
|
|
34143
34143
|
session.setDocumentViewer({ compareId: null });
|
|
34144
|
-
if (
|
|
34144
|
+
if (chunkDFBDQKGE_cjs.filesViewMode(chunkDFBDQKGE_cjs.useFilesPrefs.getState(), prefsKey, defaultViewMode) !== "navigator")
|
|
34145
34145
|
session.setViewingDocument(null);
|
|
34146
34146
|
if (!fromLink) latest.current.onDocumentChange?.(null);
|
|
34147
34147
|
},
|
|
@@ -34230,9 +34230,9 @@ function ConnectedFilesPage({
|
|
|
34230
34230
|
else if (linkedPlaceKey !== shownPlaceRef.current) showInDialog(place, true);
|
|
34231
34231
|
} else if (previous && ownsViewer && shownPlaceRef.current) closeDialog2(true);
|
|
34232
34232
|
}, [linkedPlaceKey]);
|
|
34233
|
-
const rowHeight =
|
|
34234
|
-
const setRowHeight =
|
|
34235
|
-
const ownGridStates =
|
|
34233
|
+
const rowHeight = chunkDFBDQKGE_cjs.useFilesPrefs((s) => s.rowHeight);
|
|
34234
|
+
const setRowHeight = chunkDFBDQKGE_cjs.useFilesPrefs((s) => s.setRowHeight);
|
|
34235
|
+
const ownGridStates = chunkDFBDQKGE_cjs.useFilesGridStates((s) => s.gridStates);
|
|
34236
34236
|
const stateVersion = gridStateVersion ?? ownGridStates;
|
|
34237
34237
|
const [pageEl, setPageEl] = react$1.useState(null);
|
|
34238
34238
|
const [isTabletWidth, setIsTabletWidth] = react$1.useState(false);
|
|
@@ -34262,15 +34262,15 @@ function ConnectedFilesPage({
|
|
|
34262
34262
|
const [explorerSortReversed, setExplorerSortReversed] = react$1.useState(false);
|
|
34263
34263
|
const [explorerTileSize, setExplorerTileSize] = react$1.useState(TILE_DEFAULT);
|
|
34264
34264
|
const [urlDialogOpen, setUrlDialogOpen] = react$1.useState(false);
|
|
34265
|
-
const move =
|
|
34266
|
-
const openMove =
|
|
34267
|
-
const closeMove =
|
|
34268
|
-
const bulkTagsOpen =
|
|
34269
|
-
const setBulkTagsOpen =
|
|
34270
|
-
const deleteRequest =
|
|
34271
|
-
const requestDelete =
|
|
34272
|
-
const exportOpen =
|
|
34273
|
-
const setExportOpen =
|
|
34265
|
+
const move = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.move);
|
|
34266
|
+
const openMove = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.openMove);
|
|
34267
|
+
const closeMove = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.closeMove);
|
|
34268
|
+
const bulkTagsOpen = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.bulkTagsOpen);
|
|
34269
|
+
const setBulkTagsOpen = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.setBulkTagsOpen);
|
|
34270
|
+
const deleteRequest = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.deleteRequest);
|
|
34271
|
+
const requestDelete = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.requestDelete);
|
|
34272
|
+
const exportOpen = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.exportOpen);
|
|
34273
|
+
const setExportOpen = chunkDFBDQKGE_cjs.useFilesDialogs((s) => s.setExportOpen);
|
|
34274
34274
|
const openOwnExport = react$1.useCallback(() => setExportOpen(true), [setExportOpen]);
|
|
34275
34275
|
const exportItems = react$1.useMemo(
|
|
34276
34276
|
() => selectedDocuments.map((doc) => ({
|
|
@@ -34313,17 +34313,17 @@ function ConnectedFilesPage({
|
|
|
34313
34313
|
const relatedDocsMap = useFilesPageSession(documents, workspaceId);
|
|
34314
34314
|
const defaultVisibleColumns = react$1.useMemo(
|
|
34315
34315
|
() => [
|
|
34316
|
-
...
|
|
34316
|
+
...chunkNLSWDP42_cjs.DEFAULT_DOCUMENT_COLUMNS,
|
|
34317
34317
|
...allTags.filter(browser.isAnnotationTag).map((tag) => tag.external_id)
|
|
34318
34318
|
],
|
|
34319
34319
|
[allTags]
|
|
34320
34320
|
);
|
|
34321
34321
|
const handleReorderColumns = react$1.useCallback((ids, gridApi2) => {
|
|
34322
|
-
if (gridApi2)
|
|
34322
|
+
if (gridApi2) chunkNLSWDP42_cjs.applyColumnLayout(gridApi2, ids);
|
|
34323
34323
|
}, []);
|
|
34324
34324
|
const handleLoadView = react$1.useCallback(
|
|
34325
34325
|
(view, gridApi2) => {
|
|
34326
|
-
|
|
34326
|
+
chunkNLSWDP42_cjs.applyViewColumns(gridApi2, view, handleReorderColumns);
|
|
34327
34327
|
if (typeof view.tile_size === "number") setExplorerTileSize(view.tile_size);
|
|
34328
34328
|
if (typeof view.row_height === "number") setRowHeight(view.row_height);
|
|
34329
34329
|
},
|
|
@@ -34415,7 +34415,7 @@ function ConnectedFilesPage({
|
|
|
34415
34415
|
);
|
|
34416
34416
|
const currentDocument = viewingDocumentId ? filteredDocuments.find((d) => d.external_id === viewingDocumentId) ?? documents.find((d) => d.external_id === viewingDocumentId) ?? null : null;
|
|
34417
34417
|
const navigatorDocuments = react$1.useMemo(
|
|
34418
|
-
() =>
|
|
34418
|
+
() => chunkNLSWDP42_cjs.sortExplorerFiles(filteredDocuments, explorerSort, explorerSortReversed),
|
|
34419
34419
|
[filteredDocuments, explorerSort, explorerSortReversed]
|
|
34420
34420
|
);
|
|
34421
34421
|
const navigatorOnNavigate = react$1.useCallback(
|
|
@@ -34485,7 +34485,7 @@ function ConnectedFilesPage({
|
|
|
34485
34485
|
},
|
|
34486
34486
|
rowHeight
|
|
34487
34487
|
};
|
|
34488
|
-
const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(
|
|
34488
|
+
const documentsTabActions = /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.FilesFilterBar, { children: [
|
|
34489
34489
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34490
34490
|
chunk6UZC4XVV_cjs.FilterInput,
|
|
34491
34491
|
{
|
|
@@ -34520,7 +34520,7 @@ function ConnectedFilesPage({
|
|
|
34520
34520
|
),
|
|
34521
34521
|
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex shrink-0 items-center gap-2", children: [
|
|
34522
34522
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34523
|
-
|
|
34523
|
+
chunkNLSWDP42_cjs.DocumentsFolderButton,
|
|
34524
34524
|
{
|
|
34525
34525
|
documents,
|
|
34526
34526
|
documentFilters,
|
|
@@ -34528,7 +34528,7 @@ function ConnectedFilesPage({
|
|
|
34528
34528
|
onNewFolder: canUpload ? handleNewFolder : void 0
|
|
34529
34529
|
}
|
|
34530
34530
|
),
|
|
34531
|
-
openTags && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34531
|
+
openTags && /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FilesTagsButton, { onClick: openTags }),
|
|
34532
34532
|
workspaceId && /* @__PURE__ */ jsxRuntime.jsx(ConnectedRecentlyDeletedButton, { workspaceExtId: workspaceId })
|
|
34533
34533
|
] })
|
|
34534
34534
|
] });
|
|
@@ -34551,9 +34551,9 @@ function ConnectedFilesPage({
|
|
|
34551
34551
|
);
|
|
34552
34552
|
const reviewGridId = isModal ? "documents-modal-grid-v6" : "documents-main-grid-v6";
|
|
34553
34553
|
const showBulkBar = (viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator") && documents.length > 0;
|
|
34554
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
34554
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.FilesPage, { isModal, ref: setPageEl, children: [
|
|
34555
34555
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34556
|
-
|
|
34556
|
+
chunkNLSWDP42_cjs.UrlInputDialog,
|
|
34557
34557
|
{
|
|
34558
34558
|
open: urlDialogOpen,
|
|
34559
34559
|
onOpenChange: setUrlDialogOpen,
|
|
@@ -34562,7 +34562,7 @@ function ConnectedFilesPage({
|
|
|
34562
34562
|
titleIcon: workspace && /* @__PURE__ */ jsxRuntime.jsx(ConnectedWorkspaceEntity, { workspace, size: 24, variant: "icon" })
|
|
34563
34563
|
}
|
|
34564
34564
|
),
|
|
34565
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
34565
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.FilesPageHeader, { children: [
|
|
34566
34566
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34567
34567
|
chunkSJSGSHIT_cjs.TabHeader,
|
|
34568
34568
|
{
|
|
@@ -34583,7 +34583,7 @@ function ConnectedFilesPage({
|
|
|
34583
34583
|
activeTabId: "documents",
|
|
34584
34584
|
onTabChange: () => handleViewModeChange(lastDocsViewRef.current),
|
|
34585
34585
|
firstTabContent: isNarrowFilterRow ? null : documentsTabActions,
|
|
34586
|
-
centerContent: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
34586
|
+
centerContent: /* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.FilesViewCenter, { className: isNarrowFilterRow ? "min-w-0" : void 0, children: [
|
|
34587
34587
|
!isNarrowFilterRow && viewToggle,
|
|
34588
34588
|
/* @__PURE__ */ jsxRuntime.jsx(ProgressiveLoadingChip, {})
|
|
34589
34589
|
] }),
|
|
@@ -34613,14 +34613,14 @@ function ConnectedFilesPage({
|
|
|
34613
34613
|
}
|
|
34614
34614
|
),
|
|
34615
34615
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34616
|
-
|
|
34616
|
+
chunkNLSWDP42_cjs.FilesToolbar,
|
|
34617
34617
|
{
|
|
34618
34618
|
className: "px-3 pb-2",
|
|
34619
34619
|
rightActions: viewMode === "grid" || viewMode === "explorer" || viewMode === "navigator" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
34620
34620
|
viewMode === "grid" ? (
|
|
34621
34621
|
// ‹ n / N › over the table's displayed rows; a step opens the document.
|
|
34622
34622
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34623
|
-
|
|
34623
|
+
chunkW6INT5GS_cjs.GridRowNavigator,
|
|
34624
34624
|
{
|
|
34625
34625
|
gridApi,
|
|
34626
34626
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -34635,7 +34635,7 @@ function ConnectedFilesPage({
|
|
|
34635
34635
|
) : viewMode === "explorer" ? (
|
|
34636
34636
|
// The same over the explorer's tiles.
|
|
34637
34637
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34638
|
-
|
|
34638
|
+
chunkNLSWDP42_cjs.ExplorerFileNavigator,
|
|
34639
34639
|
{
|
|
34640
34640
|
fileIds: explorerFileIds,
|
|
34641
34641
|
selectedId: viewingDocumentId ?? selectedDocumentIds[0] ?? null,
|
|
@@ -34674,7 +34674,7 @@ function ConnectedFilesPage({
|
|
|
34674
34674
|
}
|
|
34675
34675
|
),
|
|
34676
34676
|
viewMode === "navigator" && currentDocument && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34677
|
-
|
|
34677
|
+
chunkNLSWDP42_cjs.NavigatorPickerBar,
|
|
34678
34678
|
{
|
|
34679
34679
|
currentDocument,
|
|
34680
34680
|
documents: navigatorDocuments,
|
|
@@ -34701,11 +34701,11 @@ function ConnectedFilesPage({
|
|
|
34701
34701
|
}
|
|
34702
34702
|
}
|
|
34703
34703
|
) }),
|
|
34704
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
34704
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunkNLSWDP42_cjs.FilesPageMain, { children: [
|
|
34705
34705
|
viewMode === "grid" && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34706
|
-
|
|
34706
|
+
chunkNLSWDP42_cjs.DocumentGrid,
|
|
34707
34707
|
{
|
|
34708
|
-
layout:
|
|
34708
|
+
layout: chunkNLSWDP42_cjs.resolveDocumentGridLayout(isNarrowFilterRow, isModal, isTabletWidth),
|
|
34709
34709
|
presets: gridPresets,
|
|
34710
34710
|
GridComponent,
|
|
34711
34711
|
showEmptyWorkspace: documents.length === 0 && !isLoading && isMember,
|
|
@@ -34799,7 +34799,7 @@ function ConnectedFilesPage({
|
|
|
34799
34799
|
onProduce: () => openDialog2("productionSet")
|
|
34800
34800
|
}
|
|
34801
34801
|
),
|
|
34802
|
-
isModal && onClose && /* @__PURE__ */ jsxRuntime.jsx(
|
|
34802
|
+
isModal && onClose && /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.FilesModalFooter, { children: /* @__PURE__ */ jsxRuntime.jsx(ui.Button, { variant: "outline", onClick: onClose, children: "Close" }) }),
|
|
34803
34803
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
34804
34804
|
chunkJDFBEGQO_cjs.ConfirmDialog,
|
|
34805
34805
|
{
|
|
@@ -34810,7 +34810,7 @@ function ConnectedFilesPage({
|
|
|
34810
34810
|
requestDelete(null);
|
|
34811
34811
|
},
|
|
34812
34812
|
title: "Delete Document",
|
|
34813
|
-
description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${
|
|
34813
|
+
description: deleteRequest ? `Delete "${ui.getDocumentTitle(deleteRequest, "this document")}"? ${chunkNLSWDP42_cjs.RECENTLY_DELETED_HINT}` : "",
|
|
34814
34814
|
confirmText: "Delete",
|
|
34815
34815
|
variant: "destructive"
|
|
34816
34816
|
}
|
|
@@ -34886,8 +34886,8 @@ function ConnectedFilesPage({
|
|
|
34886
34886
|
}
|
|
34887
34887
|
var NO_DOCUMENTS3 = [];
|
|
34888
34888
|
function ConnectedAiReviewHost(props) {
|
|
34889
|
-
const open =
|
|
34890
|
-
const setOpen =
|
|
34889
|
+
const open = chunkDFBDQKGE_cjs.useAiReviewStore((s) => s.open);
|
|
34890
|
+
const setOpen = chunkDFBDQKGE_cjs.useAiReviewStore((s) => s.setOpen);
|
|
34891
34891
|
return /* @__PURE__ */ jsxRuntime.jsx(ConnectedAiReview, { open, onOpenChange: setOpen, ...props });
|
|
34892
34892
|
}
|
|
34893
34893
|
function ConnectedGridView(props) {
|
|
@@ -34923,7 +34923,7 @@ function ProcessingSection({
|
|
|
34923
34923
|
tasks,
|
|
34924
34924
|
onDelete
|
|
34925
34925
|
}) {
|
|
34926
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
34926
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.TaskSection, { title, count: count2, status, tooltip: SECTION_TOOLTIPS[status], children: /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.UploadTaskList, { tasks, title: "", onDelete, renderFileIcon: renderFileIcon2 }) });
|
|
34927
34927
|
}
|
|
34928
34928
|
function ConnectedDocumentProcessingPanel({
|
|
34929
34929
|
workspaceId,
|
|
@@ -35279,7 +35279,7 @@ var MENU_LABELS = {
|
|
|
35279
35279
|
};
|
|
35280
35280
|
function applyDatabaseColumns(columns, api) {
|
|
35281
35281
|
const kept = (id) => api.getColumn(id) ? [id] : [];
|
|
35282
|
-
|
|
35282
|
+
chunkNLSWDP42_cjs.applyColumnLayout(api, [...kept(chunk4XJEHKVZ_cjs.OPEN_ROW_COL_ID), ...columns, ...kept(chunk4XJEHKVZ_cjs.ADD_COLUMN_COL_ID)]);
|
|
35283
35283
|
}
|
|
35284
35284
|
function DatabaseViewsMenu({
|
|
35285
35285
|
databaseId,
|
|
@@ -35298,7 +35298,7 @@ function DatabaseViewsMenu({
|
|
|
35298
35298
|
[defaultColumns]
|
|
35299
35299
|
);
|
|
35300
35300
|
const onLoadView = react$1.useCallback(
|
|
35301
|
-
(view, api) =>
|
|
35301
|
+
(view, api) => chunkNLSWDP42_cjs.applyViewColumns(api, view, applyDatabaseColumns),
|
|
35302
35302
|
[]
|
|
35303
35303
|
);
|
|
35304
35304
|
const onSaveView = react$1.useCallback(
|
|
@@ -35318,7 +35318,7 @@ function DatabaseViewsMenu({
|
|
|
35318
35318
|
},
|
|
35319
35319
|
[confirm, deleteView, notify19]
|
|
35320
35320
|
);
|
|
35321
|
-
const menu =
|
|
35321
|
+
const menu = chunkNLSWDP42_cjs.useGridViews({
|
|
35322
35322
|
getGridApi,
|
|
35323
35323
|
defaultColumns,
|
|
35324
35324
|
builtins,
|
|
@@ -35331,7 +35331,7 @@ function DatabaseViewsMenu({
|
|
|
35331
35331
|
onDeleteView,
|
|
35332
35332
|
isSaving
|
|
35333
35333
|
});
|
|
35334
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
35334
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.ViewSelectorMenu, { ...menu, labels: MENU_LABELS });
|
|
35335
35335
|
}
|
|
35336
35336
|
function useMoveLocalViews(gridId, ready, importViews) {
|
|
35337
35337
|
const localViews = react.useArbiSessionState((state) => state.grid.savedViews[gridId]);
|
|
@@ -37054,10 +37054,10 @@ var FreshChatModel = () => (useFreshChatModel(), null);
|
|
|
37054
37054
|
var WorkspaceOpenMetrics = ({ measure }) => (useWorkspaceOpenMetrics(measure), null);
|
|
37055
37055
|
var Prefetch = ({ loaders }) => (usePrefetchChunks(loaders), null);
|
|
37056
37056
|
function GuidedRuns() {
|
|
37057
|
-
|
|
37057
|
+
chunkCKCG4NDB_cjs.useRemoteControlSessionReset();
|
|
37058
37058
|
const { cursorMark } = chunkORELHENJ_cjs.useGuidedRuns();
|
|
37059
37059
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
37060
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
37060
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkW6INT5GS_cjs.GuidedCursor, { markSrc: cursorMark }),
|
|
37061
37061
|
/* @__PURE__ */ jsxRuntime.jsx(ConnectedRemoteControlConsent, {})
|
|
37062
37062
|
] });
|
|
37063
37063
|
}
|
|
@@ -37091,7 +37091,7 @@ function ConnectedAppRuntime({
|
|
|
37091
37091
|
on("pageTransition") && /* @__PURE__ */ jsxRuntime.jsx(PageTransition, {}),
|
|
37092
37092
|
on("freshChatModel") && /* @__PURE__ */ jsxRuntime.jsx(FreshChatModel, {}),
|
|
37093
37093
|
on("workspaceOpenMetrics") && measure && /* @__PURE__ */ jsxRuntime.jsx(WorkspaceOpenMetrics, { measure }),
|
|
37094
|
-
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...
|
|
37094
|
+
on("prefetch") && /* @__PURE__ */ jsxRuntime.jsx(Prefetch, { loaders: [...prefetch ?? [], ...chunkW6INT5GS_cjs.KIT_CHUNK_LOADERS] }),
|
|
37095
37095
|
on("guidedRuns") && /* @__PURE__ */ jsxRuntime.jsx(GuidedRuns, {})
|
|
37096
37096
|
] });
|
|
37097
37097
|
}
|
|
@@ -38113,7 +38113,7 @@ function resolveLaunchInputs(workflow, request) {
|
|
|
38113
38113
|
function useWorkflowLaunch() {
|
|
38114
38114
|
const { skills } = chunk6UTKM5AB_cjs.useWorkflowDefinitions();
|
|
38115
38115
|
const launch = react$1.useCallback(
|
|
38116
|
-
(workflowId, options = {}) =>
|
|
38116
|
+
(workflowId, options = {}) => chunk775S43W7_cjs.openWorkflowLaunch({ workflowId, ...options }),
|
|
38117
38117
|
[]
|
|
38118
38118
|
);
|
|
38119
38119
|
const itemsFor = react$1.useCallback(
|
|
@@ -38142,8 +38142,8 @@ function useWorkflowLaunch() {
|
|
|
38142
38142
|
return { launch, itemsFor, scopeItemsFor };
|
|
38143
38143
|
}
|
|
38144
38144
|
function Inner() {
|
|
38145
|
-
const request =
|
|
38146
|
-
const close =
|
|
38145
|
+
const request = chunk775S43W7_cjs.useWorkflowLaunchRequest();
|
|
38146
|
+
const close = chunk775S43W7_cjs.closeWorkflowLaunch;
|
|
38147
38147
|
const { skills } = chunk6UTKM5AB_cjs.useWorkflowDefinitions();
|
|
38148
38148
|
const run = chunk557MJ4IH_cjs.useLaunchWorkflow({ landing: request?.landing });
|
|
38149
38149
|
const workflow = skills.find((w) => w.id === request?.workflowId);
|
|
@@ -38181,7 +38181,7 @@ function Inner() {
|
|
|
38181
38181
|
);
|
|
38182
38182
|
}
|
|
38183
38183
|
function WorkflowLaunchHost() {
|
|
38184
|
-
return
|
|
38184
|
+
return chunk775S43W7_cjs.useWorkflowLaunchRequest() ? /* @__PURE__ */ jsxRuntime.jsx(Inner, {}) : null;
|
|
38185
38185
|
}
|
|
38186
38186
|
function isNeedsConfirmationDetail(detail) {
|
|
38187
38187
|
return typeof detail === "object" && detail !== null && detail.needs_confirmation === "resource_private";
|
|
@@ -38490,7 +38490,7 @@ function ConnectedConversationSettings() {
|
|
|
38490
38490
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
38491
38491
|
chunkNJCK6V6U_cjs.ModelSelectionSection,
|
|
38492
38492
|
{
|
|
38493
|
-
selector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38493
|
+
selector: /* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedModelSelector, {}),
|
|
38494
38494
|
onUseDefaults: settings.resetToDefaults
|
|
38495
38495
|
}
|
|
38496
38496
|
)
|
|
@@ -38549,7 +38549,7 @@ var BUILTIN_GLOBAL_DIALOGS = {
|
|
|
38549
38549
|
testId: "workspace-transfer-modal"
|
|
38550
38550
|
}
|
|
38551
38551
|
),
|
|
38552
|
-
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
38552
|
+
logout: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedLogoutDialog, { open: props !== null, onClose }),
|
|
38553
38553
|
conversationSettings: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedConversationSettingsDialog, { open: props !== null, onClose }),
|
|
38554
38554
|
unarchiveWorkspace: ({ props, onClose }) => /* @__PURE__ */ jsxRuntime.jsx(ConnectedUnarchiveWorkspaceDialog, { workspaceId: props?.workspaceId ?? null, onClose }),
|
|
38555
38555
|
productionSet: ConnectedProductionSetDialog,
|
|
@@ -38626,7 +38626,7 @@ function WorkflowRunStatusCell({ conversation }) {
|
|
|
38626
38626
|
return person ? ui.getUserDisplayName(person) : void 0;
|
|
38627
38627
|
};
|
|
38628
38628
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38629
|
-
|
|
38629
|
+
chunk775S43W7_cjs.WorkflowRunStatus,
|
|
38630
38630
|
{
|
|
38631
38631
|
steps,
|
|
38632
38632
|
states,
|
|
@@ -38660,7 +38660,7 @@ function ConversationStatusCell({ conversation }) {
|
|
|
38660
38660
|
if (conversation.plan?.steps?.length && !isLiveGenerating)
|
|
38661
38661
|
return /* @__PURE__ */ jsxRuntime.jsx(WorkflowRunStatusCell, { conversation });
|
|
38662
38662
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38663
|
-
|
|
38663
|
+
chunk775S43W7_cjs.ThreadStatusLine,
|
|
38664
38664
|
{
|
|
38665
38665
|
state: threadStateOf(conversation, isLiveGenerating),
|
|
38666
38666
|
className: "h-full",
|
|
@@ -38929,7 +38929,7 @@ function useThreadLabels(canEditShared) {
|
|
|
38929
38929
|
return {
|
|
38930
38930
|
labelText: (row2) => labels.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
38931
38931
|
renderLabels: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
38932
|
-
|
|
38932
|
+
chunkNLSWDP42_cjs.LabelMultiSelectView,
|
|
38933
38933
|
{
|
|
38934
38934
|
options,
|
|
38935
38935
|
appliedIds: new Set(row2.label_ext_ids ?? []),
|
|
@@ -38948,7 +38948,7 @@ function useThreadLabels(canEditShared) {
|
|
|
38948
38948
|
).map((label) => label.id)
|
|
38949
38949
|
);
|
|
38950
38950
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
38951
|
-
|
|
38951
|
+
chunkNLSWDP42_cjs.BulkLabelSelectView,
|
|
38952
38952
|
{
|
|
38953
38953
|
options,
|
|
38954
38954
|
appliedIds: all,
|
|
@@ -38979,7 +38979,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
38979
38979
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkM2FOXGJU_cjs.ComposerDock, { children: [
|
|
38980
38980
|
slashWorkflows.launcher,
|
|
38981
38981
|
/* @__PURE__ */ jsxRuntime.jsx(chunkM2FOXGJU_cjs.ComposerContainer, { className: "mx-auto max-w-[49rem] px-3 sm:px-6", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38982
|
-
|
|
38982
|
+
chunkCKCG4NDB_cjs.ConversationComposer,
|
|
38983
38983
|
{
|
|
38984
38984
|
value: draft,
|
|
38985
38985
|
onValueChange: setDraft,
|
|
@@ -38988,7 +38988,7 @@ function ConnectedThreadLauncher({ autoFocus }) {
|
|
|
38988
38988
|
isConversationEmpty: true,
|
|
38989
38989
|
shouldOfferFollowUp: false,
|
|
38990
38990
|
skills,
|
|
38991
|
-
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(
|
|
38991
|
+
modelSelector: /* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedModelSelector, { variant: "compact" }),
|
|
38992
38992
|
rightButton: /* @__PURE__ */ jsxRuntime.jsx(chunkM2FOXGJU_cjs.ComposerSend, { onSend: send, disabled: !draft.trim() })
|
|
38993
38993
|
}
|
|
38994
38994
|
) })
|
|
@@ -39119,7 +39119,7 @@ function AgentBarShell({
|
|
|
39119
39119
|
}, [isStepsExpanded, steps]);
|
|
39120
39120
|
const visibleStepCount = react$1.useMemo(() => browser.topLevelAgentSteps(steps ?? []).length, [steps]);
|
|
39121
39121
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39122
|
-
|
|
39122
|
+
chunk775S43W7_cjs.AgentBar,
|
|
39123
39123
|
{
|
|
39124
39124
|
className,
|
|
39125
39125
|
testId,
|
|
@@ -39131,7 +39131,7 @@ function AgentBarShell({
|
|
|
39131
39131
|
drawerRef: scrollRef,
|
|
39132
39132
|
onDrawerScroll: handleDrawerScroll,
|
|
39133
39133
|
drawer: /* @__PURE__ */ jsxRuntime.jsx(
|
|
39134
|
-
|
|
39134
|
+
chunkCKCG4NDB_cjs.AgentSteps,
|
|
39135
39135
|
{
|
|
39136
39136
|
steps: stepList,
|
|
39137
39137
|
isStreaming,
|
|
@@ -39183,7 +39183,7 @@ function AgentControlBar({
|
|
|
39183
39183
|
const waitingOnChildren = runningLanes.length > 0 && ["sub_agent", "spawn_subagent", "deep_research", "run_skill"].includes(currentTool ?? "");
|
|
39184
39184
|
const waitingLabel = runningLanes.length === 1 ? `Waiting on ${runningLanes[0].job}` : `Waiting on ${runningLanes.length} sub-agents`;
|
|
39185
39185
|
const liveTimerNode = liveTimer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39186
|
-
|
|
39186
|
+
chunkCKCG4NDB_cjs.MessageLiveSeconds,
|
|
39187
39187
|
{
|
|
39188
39188
|
...liveTimer,
|
|
39189
39189
|
offsetSeconds: currentStep?.t ?? 0,
|
|
@@ -39192,7 +39192,7 @@ function AgentControlBar({
|
|
|
39192
39192
|
}
|
|
39193
39193
|
);
|
|
39194
39194
|
const status = /* @__PURE__ */ jsxRuntime.jsx(
|
|
39195
|
-
|
|
39195
|
+
chunk775S43W7_cjs.AgentBarStatus,
|
|
39196
39196
|
{
|
|
39197
39197
|
state: showState ? controlState : void 0,
|
|
39198
39198
|
stateLabel: STATE_LABEL[controlState],
|
|
@@ -39234,7 +39234,7 @@ function AgentControlBar({
|
|
|
39234
39234
|
];
|
|
39235
39235
|
const controls = /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
39236
39236
|
onStop && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39237
|
-
|
|
39237
|
+
chunk775S43W7_cjs.AgentBarIconButton,
|
|
39238
39238
|
{
|
|
39239
39239
|
onClick: onStop,
|
|
39240
39240
|
title: "Stop",
|
|
@@ -39243,22 +39243,22 @@ function AgentControlBar({
|
|
|
39243
39243
|
children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Square, { className: "h-3 w-3", fill: "currentColor" })
|
|
39244
39244
|
}
|
|
39245
39245
|
),
|
|
39246
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39246
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.AgentBarMenu, { items: menuItems })
|
|
39247
39247
|
] });
|
|
39248
39248
|
const displayedQueuedMessages = (transientQueuedMessages ?? []).filter(
|
|
39249
39249
|
(message) => !message.serverId || !queuedMessages.some((queued) => queued.external_id === message.serverId)
|
|
39250
39250
|
);
|
|
39251
39251
|
const queuedNotes = displayedQueuedMessages.filter((message) => message.content);
|
|
39252
|
-
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(
|
|
39252
|
+
const below = probeAnswer || queuedNotes.length > 0 ? /* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.AgentBarNotes, { children: [
|
|
39253
39253
|
queuedNotes.map((message, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
39254
|
-
|
|
39254
|
+
chunk775S43W7_cjs.AgentBarQueuedNote,
|
|
39255
39255
|
{
|
|
39256
39256
|
text: message.content ?? "",
|
|
39257
39257
|
isAcknowledged: message.acknowledged
|
|
39258
39258
|
},
|
|
39259
39259
|
index
|
|
39260
39260
|
)),
|
|
39261
|
-
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(
|
|
39261
|
+
probeAnswer && /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.AgentBarProbeAnswer, { answer: probeAnswer.answer })
|
|
39262
39262
|
] }) : null;
|
|
39263
39263
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
39264
39264
|
AgentBarShell,
|
|
@@ -39408,7 +39408,7 @@ function ConnectedConversationEmpty({
|
|
|
39408
39408
|
compactLeadingAction: onImportFromEmail && /* @__PURE__ */ jsxRuntime.jsx(AddFromAccountsButton, { onImportFromEmail })
|
|
39409
39409
|
}
|
|
39410
39410
|
),
|
|
39411
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
39411
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkNLSWDP42_cjs.PrivacyExplainerModal, {})
|
|
39412
39412
|
] })
|
|
39413
39413
|
}
|
|
39414
39414
|
);
|
|
@@ -40373,7 +40373,7 @@ function ConversationThread({
|
|
|
40373
40373
|
useStartRequestedDraft();
|
|
40374
40374
|
const orphanedMessage = react.getOrphanedLastMessage(messageHistory, isGenerating, assistantMode);
|
|
40375
40375
|
return /* @__PURE__ */ jsxRuntime.jsxs(chunkKLMNCBLY_cjs.ConversationBody, { children: [
|
|
40376
|
-
/* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40376
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationMain, { "data-testid": `conversation-${currentConversationId}`, children: threadsLoading ? /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationLoading, {}) : messageHistory.length > 0 || isBranching ? /* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.AskAgainContext.Provider, { value: handleAskAgain, children: /* @__PURE__ */ jsxRuntime.jsxs(chunkVJCSEMXT_cjs.TranscriptRunsContext.Provider, { value: transcriptRunInfo, children: [
|
|
40377
40377
|
meetingCallExtId && transcriptLineCount > 0 && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "flex justify-center py-2", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40378
40378
|
chunkZBP4ZSAJ_cjs.ConversationFilter,
|
|
40379
40379
|
{
|
|
@@ -40391,7 +40391,7 @@ function ConversationThread({
|
|
|
40391
40391
|
]
|
|
40392
40392
|
}
|
|
40393
40393
|
) }),
|
|
40394
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40394
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedMessageArea, { ref: containerRef, messages: visibleMessages }),
|
|
40395
40395
|
showProvisional && /* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
40396
40396
|
] }) }) : meetingCallExtId ? (
|
|
40397
40397
|
// A meeting thread with nothing yet: call-aware, not the upload prompt.
|
|
@@ -40399,7 +40399,7 @@ function ConversationThread({
|
|
|
40399
40399
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.CallConversationEmpty, { callExtId: meetingCallExtId }),
|
|
40400
40400
|
/* @__PURE__ */ jsxRuntime.jsx(chunkBQ5RIWWT_cjs.ProvisionalSpeakers, { ids: provisionalSpeakers })
|
|
40401
40401
|
] })
|
|
40402
|
-
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
40402
|
+
) : currentTask && currentTask.status != null ? /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.TaskEmptyState, { task: currentTask }) : pendingFirstTurn && isGenerating ? /* @__PURE__ */ jsxRuntime.jsx(chunkCKCG4NDB_cjs.ConnectedMessageArea, { ref: containerRef, messages: pendingFirstTurn }) : /* @__PURE__ */ jsxRuntime.jsx(
|
|
40403
40403
|
ConnectedConversationEmpty,
|
|
40404
40404
|
{
|
|
40405
40405
|
hasDocuments: allWorkspaceDocuments.length > 0,
|
|
@@ -40497,7 +40497,7 @@ function ConversationThread({
|
|
|
40497
40497
|
}
|
|
40498
40498
|
),
|
|
40499
40499
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
40500
|
-
|
|
40500
|
+
chunkCKCG4NDB_cjs.ConversationComposer,
|
|
40501
40501
|
{
|
|
40502
40502
|
handleSendMessage: handleUserSend,
|
|
40503
40503
|
placeholder: pendingAnswer ? assistant.answerPlaceholder : void 0,
|
|
@@ -40842,7 +40842,7 @@ function ConnectedThreadsPage({
|
|
|
40842
40842
|
};
|
|
40843
40843
|
const page = /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "threads-page", children: [
|
|
40844
40844
|
/* @__PURE__ */ jsxRuntime.jsx("main", { className: "flex min-h-0 flex-1 flex-col bg-background", children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
40845
|
-
|
|
40845
|
+
chunk775S43W7_cjs.ConversationListView,
|
|
40846
40846
|
{
|
|
40847
40847
|
showHeader,
|
|
40848
40848
|
conversations: tasks,
|
|
@@ -40861,7 +40861,7 @@ function ConnectedThreadsPage({
|
|
|
40861
40861
|
renderLabels: threadLabels.renderLabels,
|
|
40862
40862
|
labelText: threadLabels.labelText,
|
|
40863
40863
|
renderBy: (row2) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
40864
|
-
|
|
40864
|
+
chunk775S43W7_cjs.ConversationTurnSpeaker,
|
|
40865
40865
|
{
|
|
40866
40866
|
variant: "icon",
|
|
40867
40867
|
role: row2.last_message_role,
|
|
@@ -41248,7 +41248,7 @@ function ConnectedChatDocumentsTab({
|
|
|
41248
41248
|
testId: `document-hover-toggle-${doc.external_id}`
|
|
41249
41249
|
},
|
|
41250
41250
|
status: /* @__PURE__ */ jsxRuntime.jsx(
|
|
41251
|
-
|
|
41251
|
+
chunkNLSWDP42_cjs.DocStatusIcon,
|
|
41252
41252
|
{
|
|
41253
41253
|
status: doc.status,
|
|
41254
41254
|
onClick: onStatusClick,
|
|
@@ -41742,7 +41742,7 @@ function ConnectedConversationPage({
|
|
|
41742
41742
|
);
|
|
41743
41743
|
const { data: workspaceTags = [] } = react.useTags();
|
|
41744
41744
|
const { tagId: threadTagId, clear: clearThreadTag } = useThreadTagFilter();
|
|
41745
|
-
const historyCount =
|
|
41745
|
+
const historyCount = chunk775S43W7_cjs.filterConversationRows(
|
|
41746
41746
|
threadTagId ? conversations.filter((row2) => row2.label_ext_ids?.includes(threadTagId)) : conversations,
|
|
41747
41747
|
threadFilter,
|
|
41748
41748
|
(row2) => workspaceTags.filter((tag) => row2.label_ext_ids?.includes(tag.external_id)).map((tag) => tag.name).join(" "),
|
|
@@ -41824,7 +41824,7 @@ function ConnectedConversationPage({
|
|
|
41824
41824
|
] })
|
|
41825
41825
|
}
|
|
41826
41826
|
),
|
|
41827
|
-
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41827
|
+
isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkQ6CLWOP2_cjs.ConnectedThreadTaskBar, { conversationId: currentConversationId })
|
|
41828
41828
|
] }),
|
|
41829
41829
|
isInChat && /* @__PURE__ */ jsxRuntime.jsx(
|
|
41830
41830
|
ConversationThread,
|
|
@@ -41854,7 +41854,7 @@ function ConnectedConversationPage({
|
|
|
41854
41854
|
!isInChat && /* @__PURE__ */ jsxRuntime.jsx(chunkKLMNCBLY_cjs.ConversationHistoryPane, { children: searchEnabled && semanticSearchOpen ? /* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadsPage, { showHeader: false, search: true, ResultsBoundary }) : /* @__PURE__ */ jsxRuntime.jsx(ConnectedThreadsPage, { showHeader: false }) })
|
|
41855
41855
|
] }),
|
|
41856
41856
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
41857
|
-
|
|
41857
|
+
chunkNLSWDP42_cjs.UrlInputDialog,
|
|
41858
41858
|
{
|
|
41859
41859
|
open: urlDialogOpen,
|
|
41860
41860
|
onOpenChange: setUrlDialogOpen,
|
|
@@ -42033,7 +42033,7 @@ function SsoResendVerificationButton({
|
|
|
42033
42033
|
onClick: async () => handleResendEmailVerification(),
|
|
42034
42034
|
disabled: loading || disabled,
|
|
42035
42035
|
"aria-label": "Resend verification email",
|
|
42036
|
-
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(
|
|
42036
|
+
children: loading ? /* @__PURE__ */ jsxRuntime.jsx(chunkW6INT5GS_cjs.LoadingIndicator, {}) : /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
42037
42037
|
"Didn't get a verification email? ",
|
|
42038
42038
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-semibold", children: "Resend" })
|
|
42039
42039
|
] })
|
|
@@ -42044,16 +42044,16 @@ function SsoResendVerificationButton({
|
|
|
42044
42044
|
}
|
|
42045
42045
|
var NO_RECOVERY_KEY_WARNING = "Without your password or a recovery key, we cannot recover your account or data.";
|
|
42046
42046
|
function ConnectedSsoCallback() {
|
|
42047
|
-
const sso =
|
|
42047
|
+
const sso = chunkCKCG4NDB_cjs.useSsoSignIn();
|
|
42048
42048
|
const { isAuthenticated: isAuthenticated2, isLoading, user } = sso;
|
|
42049
|
-
const auth =
|
|
42049
|
+
const auth = chunkCKCG4NDB_cjs.useAuthPages();
|
|
42050
42050
|
const { notify: notify19, navigate } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
42051
42051
|
const passwordRules = auth.passwordRules;
|
|
42052
42052
|
const isProcessing = react$1.useRef(false);
|
|
42053
42053
|
const hasCheckedStatus = react$1.useRef(false);
|
|
42054
42054
|
const [accessToken, setAccessToken] = react$1.useState(null);
|
|
42055
42055
|
const [ssoStatus, setSsoStatus] = react$1.useState(null);
|
|
42056
|
-
const ssoName = react$1.useMemo(() =>
|
|
42056
|
+
const ssoName = react$1.useMemo(() => chunkCKCG4NDB_cjs.resolveSsoName(user ?? {}, ssoStatus ?? {}), [user, ssoStatus]);
|
|
42057
42057
|
const [password, setPassword] = react$1.useState("");
|
|
42058
42058
|
const [confirmPassword, setConfirmPassword] = react$1.useState("");
|
|
42059
42059
|
const [error, setError] = react$1.useState(null);
|
|
@@ -42231,7 +42231,7 @@ function ConnectedSsoCallback() {
|
|
|
42231
42231
|
setIsCheckingStatus(true);
|
|
42232
42232
|
try {
|
|
42233
42233
|
console.info("[SSO] Checking user status...");
|
|
42234
|
-
const response = await
|
|
42234
|
+
const response = await chunkCKCG4NDB_cjs.ssoAccountStatus(arbi, accessToken, user);
|
|
42235
42235
|
console.info("[SSO] User status:", response.status);
|
|
42236
42236
|
setSsoStatus(response);
|
|
42237
42237
|
} catch (error2) {
|
|
@@ -42275,7 +42275,7 @@ function ConnectedSsoCallback() {
|
|
|
42275
42275
|
setIsSubmitting(true);
|
|
42276
42276
|
setError(null);
|
|
42277
42277
|
try {
|
|
42278
|
-
const { login, registered, linked } = await
|
|
42278
|
+
const { login, registered, linked } = await chunkCKCG4NDB_cjs.completeSsoSignIn(arbi, {
|
|
42279
42279
|
token: accessToken,
|
|
42280
42280
|
user,
|
|
42281
42281
|
status: ssoStatus,
|
|
@@ -42557,7 +42557,7 @@ function ConnectedSsoCallback() {
|
|
|
42557
42557
|
ssoStatus.status !== "new_user" && auth.footer
|
|
42558
42558
|
] }),
|
|
42559
42559
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42560
|
-
|
|
42560
|
+
chunkCKCG4NDB_cjs.ConnectedForgotPassword,
|
|
42561
42561
|
{
|
|
42562
42562
|
open: showForgotPasswordModal,
|
|
42563
42563
|
onOpenChange: setShowForgotPasswordModal,
|
|
@@ -42565,7 +42565,7 @@ function ConnectedSsoCallback() {
|
|
|
42565
42565
|
}
|
|
42566
42566
|
),
|
|
42567
42567
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42568
|
-
|
|
42568
|
+
chunkCKCG4NDB_cjs.ConnectedPasswordChangeDialog,
|
|
42569
42569
|
{
|
|
42570
42570
|
open: showChangePasswordModal,
|
|
42571
42571
|
onClose: () => setShowChangePasswordModal(false),
|
|
@@ -42724,27 +42724,27 @@ function ConnectedOAuthConsentPage({
|
|
|
42724
42724
|
oauthErrorRedirect(params.redirectUri, params.state, "access_denied");
|
|
42725
42725
|
}
|
|
42726
42726
|
if (error && !params) {
|
|
42727
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42727
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentMessage, { tone: "error", title: "Invalid Request", children: error }) });
|
|
42728
42728
|
}
|
|
42729
42729
|
if (!params) {
|
|
42730
42730
|
return null;
|
|
42731
42731
|
}
|
|
42732
42732
|
if (clientInfo?.isLocalAgentFlow) {
|
|
42733
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42733
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentMessage, { tone: "warning", title: "Close this tab", children: "This tab opened alongside the correct authorization page. Please close this tab and complete the connection in the other tab that opened at the same time." }) });
|
|
42734
42734
|
}
|
|
42735
42735
|
if (!isAuthenticated2) {
|
|
42736
42736
|
return null;
|
|
42737
42737
|
}
|
|
42738
42738
|
if (callbackUrl) {
|
|
42739
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42740
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42739
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.ConsentCard, { size: "md", children: [
|
|
42740
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ClipboardList, {}), title: "Almost there", children: [
|
|
42741
42741
|
"A new tab has opened to complete the connection. If it succeeded, you can close this page. If you see a connection error there, paste the URL below into Claude Cowork \u2014",
|
|
42742
42742
|
" ",
|
|
42743
42743
|
copied ? "it's already copied to your clipboard." : "copy it first."
|
|
42744
42744
|
] }),
|
|
42745
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42746
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42747
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42745
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.ConsentSection, { title: "Callback URL", children: [
|
|
42746
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.CopyableUrl, { url: callbackUrl, copied, onCopy: handleCopy }),
|
|
42747
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.ConsentText, { variant: "hint", children: [
|
|
42748
42748
|
"In Claude Code, paste the URL at the prompt that says",
|
|
42749
42749
|
" ",
|
|
42750
42750
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "font-mono text-foreground", children: '"paste the full redirect URL here"' }),
|
|
@@ -42753,17 +42753,17 @@ function ConnectedOAuthConsentPage({
|
|
|
42753
42753
|
] })
|
|
42754
42754
|
] }) });
|
|
42755
42755
|
}
|
|
42756
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
42757
|
-
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
42758
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42756
|
+
return /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentPage, { children: /* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.ConsentCard, { children: [
|
|
42757
|
+
/* @__PURE__ */ jsxRuntime.jsxs(chunk775S43W7_cjs.ConsentHeader, { icon: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Link2, {}), title: `Connect to ${appName}`, children: [
|
|
42758
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentStrong, { children: clientInfo?.name ?? params.clientId }),
|
|
42759
42759
|
" is requesting access to your ",
|
|
42760
42760
|
appName,
|
|
42761
42761
|
" workspace."
|
|
42762
42762
|
] }),
|
|
42763
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42764
|
-
error && /* @__PURE__ */ jsxRuntime.jsx(
|
|
42765
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42766
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42763
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentSection, { title: "This will allow", children: /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentPermissionList, { items: permissions }) }),
|
|
42764
|
+
error && /* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentNotice, { tone: "error", children: error }),
|
|
42765
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentActions, { isLoading: loading, onDeny: handleDeny, onAllow: handleAllow }),
|
|
42766
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunk775S43W7_cjs.ConsentFootnote, { children: footnote })
|
|
42767
42767
|
] }) });
|
|
42768
42768
|
}
|
|
42769
42769
|
function ConnectedSharedFilesPage({
|
|
@@ -42895,6 +42895,32 @@ function useTogglePanel() {
|
|
|
42895
42895
|
if (!isOpen) setFocusedArea(panelId);
|
|
42896
42896
|
};
|
|
42897
42897
|
}
|
|
42898
|
+
var ROLE_ORDER2 = { owner: 0, collaborator: 1, guest: 2 };
|
|
42899
|
+
function memberName3(member) {
|
|
42900
|
+
const { given_name, family_name, email } = member.user;
|
|
42901
|
+
return [given_name, family_name].filter(Boolean).join(" ") || email;
|
|
42902
|
+
}
|
|
42903
|
+
function sortMembers(members) {
|
|
42904
|
+
return [...members].sort(
|
|
42905
|
+
(a, b) => (ROLE_ORDER2[a.role] ?? 3) - (ROLE_ORDER2[b.role] ?? 3) || memberName3(a).localeCompare(memberName3(b))
|
|
42906
|
+
);
|
|
42907
|
+
}
|
|
42908
|
+
function WorkspaceMembersList({ workspaceId }) {
|
|
42909
|
+
const { data, isLoading, isError } = react.useWorkspaceUsers(workspaceId);
|
|
42910
|
+
if (isLoading) return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Loading members\u2026" });
|
|
42911
|
+
if (isError || !data) return /* @__PURE__ */ jsxRuntime.jsx("p", { className: "text-xs text-muted-foreground", children: "Members unavailable" });
|
|
42912
|
+
return /* @__PURE__ */ jsxRuntime.jsx("ul", { className: "max-h-60 space-y-1.5 overflow-y-auto", "data-testid": "sharing-members", children: sortMembers(data).map((m) => /* @__PURE__ */ jsxRuntime.jsxs("li", { className: "flex items-center justify-between gap-3 text-xs", children: [
|
|
42913
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: "truncate", title: m.user.email, children: memberName3(m) }),
|
|
42914
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
42915
|
+
"span",
|
|
42916
|
+
{
|
|
42917
|
+
className: "shrink-0 rounded bg-muted px-1.5 py-0.5 text-muted-foreground",
|
|
42918
|
+
"data-role": m.role,
|
|
42919
|
+
children: chunkQECKDZ47_cjs.formatRole(m.role)
|
|
42920
|
+
}
|
|
42921
|
+
)
|
|
42922
|
+
] }, m.user.external_id)) });
|
|
42923
|
+
}
|
|
42898
42924
|
var AppShellContext = react$1.createContext(null);
|
|
42899
42925
|
function useAppShell() {
|
|
42900
42926
|
const value = react$1.useContext(AppShellContext);
|
|
@@ -43282,6 +43308,7 @@ function PaletteSlot({ palette }) {
|
|
|
43282
43308
|
const visibleItems = useShellNavigation()?.visibleItems ?? [];
|
|
43283
43309
|
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: typeof palette === "function" ? palette(visibleItems) : palette });
|
|
43284
43310
|
}
|
|
43311
|
+
var SHARING_MEMBERS = /* @__PURE__ */ jsxRuntime.jsx(WorkspaceMembersList, {});
|
|
43285
43312
|
function ConnectedAppShell({
|
|
43286
43313
|
banner,
|
|
43287
43314
|
topbar,
|
|
@@ -43307,6 +43334,7 @@ function ConnectedAppShell({
|
|
|
43307
43334
|
tools,
|
|
43308
43335
|
...rootProps
|
|
43309
43336
|
}) {
|
|
43337
|
+
ui.configureSharingMembers(SHARING_MEMBERS);
|
|
43310
43338
|
const session = react.useArbiSessionStore();
|
|
43311
43339
|
const dockedPanel = react.useArbiSessionState((state) => state.shell.panels.docked);
|
|
43312
43340
|
const dockSqueezed = chunkFX3K6LNZ_cjs.useMediaQuery(sidebarPolicy?.dockedRailQuery ?? "(max-width: 0px)");
|
|
@@ -43422,7 +43450,7 @@ function ConnectedTipBar({
|
|
|
43422
43450
|
className,
|
|
43423
43451
|
revealOnHover = false
|
|
43424
43452
|
}) {
|
|
43425
|
-
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } =
|
|
43453
|
+
const { showHints, settingsLoaded, setShowHintsPersisted, setShowHints } = chunkCKCG4NDB_cjs.useContextualHints();
|
|
43426
43454
|
const { dismissed, dismissTip } = react.useDismissedTips();
|
|
43427
43455
|
const { notify: notify19 } = chunkTKHCIHE2_cjs.useBlocksEnvironment();
|
|
43428
43456
|
const { data: workspaces } = react.useWorkspaces();
|
|
@@ -43433,7 +43461,7 @@ function ConnectedTipBar({
|
|
|
43433
43461
|
workspaceOpen,
|
|
43434
43462
|
...state
|
|
43435
43463
|
};
|
|
43436
|
-
const { tip, index, count: count2, previous, next, onHoverChange } =
|
|
43464
|
+
const { tip, index, count: count2, previous, next, onHoverChange } = chunkW6INT5GS_cjs.useTipsPlacement({
|
|
43437
43465
|
registry,
|
|
43438
43466
|
context,
|
|
43439
43467
|
state: situation,
|
|
@@ -43511,7 +43539,7 @@ function useGettingStarted({
|
|
|
43511
43539
|
const { user } = react.useArbiSession();
|
|
43512
43540
|
const userExtId = user?.external_id;
|
|
43513
43541
|
const temporaryOnly = user?.temporary_access_only === true;
|
|
43514
|
-
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } =
|
|
43542
|
+
const { showHints, settingsLoaded, setShowHints, setShowHintsPersisted } = chunkCKCG4NDB_cjs.useContextualHints();
|
|
43515
43543
|
const { dismissed, loaded: dismissedLoaded, dismissTip } = react.useDismissedTips();
|
|
43516
43544
|
const welcomeJourneyEnabled = react.useFeature("welcomeJourney");
|
|
43517
43545
|
const session = react.useArbiSessionStore();
|
|
@@ -43789,15 +43817,15 @@ Object.defineProperty(exports, "ConnectedMailInviteCard", {
|
|
|
43789
43817
|
});
|
|
43790
43818
|
Object.defineProperty(exports, "ConnectedTagEntity", {
|
|
43791
43819
|
enumerable: true,
|
|
43792
|
-
get: function () { return
|
|
43820
|
+
get: function () { return chunkHA66DHW6_cjs.ConnectedTagEntity; }
|
|
43793
43821
|
});
|
|
43794
43822
|
Object.defineProperty(exports, "documentFieldContent", {
|
|
43795
43823
|
enumerable: true,
|
|
43796
|
-
get: function () { return
|
|
43824
|
+
get: function () { return chunkHA66DHW6_cjs.documentFieldContent; }
|
|
43797
43825
|
});
|
|
43798
43826
|
Object.defineProperty(exports, "useMemberLookup", {
|
|
43799
43827
|
enumerable: true,
|
|
43800
|
-
get: function () { return
|
|
43828
|
+
get: function () { return chunkHA66DHW6_cjs.useMemberLookup; }
|
|
43801
43829
|
});
|
|
43802
43830
|
Object.defineProperty(exports, "DEFAULT_ASK_SUGGESTIONS", {
|
|
43803
43831
|
enumerable: true,
|
|
@@ -43845,279 +43873,279 @@ Object.defineProperty(exports, "useWorkspaceDocs", {
|
|
|
43845
43873
|
});
|
|
43846
43874
|
Object.defineProperty(exports, "ConnectedTaskActivityDialog", {
|
|
43847
43875
|
enumerable: true,
|
|
43848
|
-
get: function () { return
|
|
43876
|
+
get: function () { return chunkQ6CLWOP2_cjs.ConnectedTaskActivityDialog; }
|
|
43849
43877
|
});
|
|
43850
43878
|
Object.defineProperty(exports, "ConnectedTaskComposer", {
|
|
43851
43879
|
enumerable: true,
|
|
43852
|
-
get: function () { return
|
|
43880
|
+
get: function () { return chunkQ6CLWOP2_cjs.ConnectedTaskComposer; }
|
|
43853
43881
|
});
|
|
43854
43882
|
Object.defineProperty(exports, "ConnectedThreadTaskBar", {
|
|
43855
43883
|
enumerable: true,
|
|
43856
|
-
get: function () { return
|
|
43884
|
+
get: function () { return chunkQ6CLWOP2_cjs.ConnectedThreadTaskBar; }
|
|
43857
43885
|
});
|
|
43858
43886
|
Object.defineProperty(exports, "ConnectedWorkflowHistory", {
|
|
43859
43887
|
enumerable: true,
|
|
43860
|
-
get: function () { return
|
|
43888
|
+
get: function () { return chunkQ6CLWOP2_cjs.ConnectedWorkflowHistory; }
|
|
43861
43889
|
});
|
|
43862
43890
|
Object.defineProperty(exports, "ConnectedWorkflowRunPage", {
|
|
43863
43891
|
enumerable: true,
|
|
43864
|
-
get: function () { return
|
|
43892
|
+
get: function () { return chunkQ6CLWOP2_cjs.ConnectedWorkflowRunPage; }
|
|
43865
43893
|
});
|
|
43866
43894
|
Object.defineProperty(exports, "ConnectedWorkflowRunner", {
|
|
43867
43895
|
enumerable: true,
|
|
43868
|
-
get: function () { return
|
|
43896
|
+
get: function () { return chunkQ6CLWOP2_cjs.ConnectedWorkflowRunner; }
|
|
43869
43897
|
});
|
|
43870
43898
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS", {
|
|
43871
43899
|
enumerable: true,
|
|
43872
|
-
get: function () { return
|
|
43900
|
+
get: function () { return chunkQ6CLWOP2_cjs.DEFAULT_CONNECTED_WORKFLOW_RUNNER_LABELS; }
|
|
43873
43901
|
});
|
|
43874
43902
|
Object.defineProperty(exports, "DEFAULT_WORKFLOW_RUN_PAGE_LABELS", {
|
|
43875
43903
|
enumerable: true,
|
|
43876
|
-
get: function () { return
|
|
43904
|
+
get: function () { return chunkQ6CLWOP2_cjs.DEFAULT_WORKFLOW_RUN_PAGE_LABELS; }
|
|
43877
43905
|
});
|
|
43878
43906
|
Object.defineProperty(exports, "WorkflowRunThread", {
|
|
43879
43907
|
enumerable: true,
|
|
43880
|
-
get: function () { return
|
|
43908
|
+
get: function () { return chunkQ6CLWOP2_cjs.WorkflowRunThread; }
|
|
43881
43909
|
});
|
|
43882
43910
|
Object.defineProperty(exports, "WorkflowRunWorkspaceChangedError", {
|
|
43883
43911
|
enumerable: true,
|
|
43884
|
-
get: function () { return
|
|
43912
|
+
get: function () { return chunkQ6CLWOP2_cjs.WorkflowRunWorkspaceChangedError; }
|
|
43885
43913
|
});
|
|
43886
43914
|
Object.defineProperty(exports, "buildProjectSummaries", {
|
|
43887
43915
|
enumerable: true,
|
|
43888
|
-
get: function () { return
|
|
43916
|
+
get: function () { return chunkQ6CLWOP2_cjs.buildProjectSummaries; }
|
|
43889
43917
|
});
|
|
43890
43918
|
Object.defineProperty(exports, "primaryProjectWorkspace", {
|
|
43891
43919
|
enumerable: true,
|
|
43892
|
-
get: function () { return
|
|
43920
|
+
get: function () { return chunkQ6CLWOP2_cjs.primaryProjectWorkspace; }
|
|
43893
43921
|
});
|
|
43894
43922
|
Object.defineProperty(exports, "useEnsureRequiredLabels", {
|
|
43895
43923
|
enumerable: true,
|
|
43896
|
-
get: function () { return
|
|
43924
|
+
get: function () { return chunkQ6CLWOP2_cjs.useEnsureRequiredLabels; }
|
|
43897
43925
|
});
|
|
43898
43926
|
Object.defineProperty(exports, "useProjectSummaries", {
|
|
43899
43927
|
enumerable: true,
|
|
43900
|
-
get: function () { return
|
|
43928
|
+
get: function () { return chunkQ6CLWOP2_cjs.useProjectSummaries; }
|
|
43901
43929
|
});
|
|
43902
43930
|
Object.defineProperty(exports, "useProjectSummary", {
|
|
43903
43931
|
enumerable: true,
|
|
43904
|
-
get: function () { return
|
|
43932
|
+
get: function () { return chunkQ6CLWOP2_cjs.useProjectSummary; }
|
|
43905
43933
|
});
|
|
43906
43934
|
Object.defineProperty(exports, "useRenderTaskPerson", {
|
|
43907
43935
|
enumerable: true,
|
|
43908
|
-
get: function () { return
|
|
43936
|
+
get: function () { return chunkQ6CLWOP2_cjs.useRenderTaskPerson; }
|
|
43909
43937
|
});
|
|
43910
43938
|
Object.defineProperty(exports, "useRequiredLabels", {
|
|
43911
43939
|
enumerable: true,
|
|
43912
|
-
get: function () { return
|
|
43940
|
+
get: function () { return chunkQ6CLWOP2_cjs.useRequiredLabels; }
|
|
43913
43941
|
});
|
|
43914
43942
|
Object.defineProperty(exports, "useTaskPeople", {
|
|
43915
43943
|
enumerable: true,
|
|
43916
|
-
get: function () { return
|
|
43944
|
+
get: function () { return chunkQ6CLWOP2_cjs.useTaskPeople; }
|
|
43917
43945
|
});
|
|
43918
43946
|
Object.defineProperty(exports, "useWorkflowsPageState", {
|
|
43919
43947
|
enumerable: true,
|
|
43920
|
-
get: function () { return
|
|
43948
|
+
get: function () { return chunkQ6CLWOP2_cjs.useWorkflowsPageState; }
|
|
43921
43949
|
});
|
|
43922
43950
|
Object.defineProperty(exports, "workflowRunView", {
|
|
43923
43951
|
enumerable: true,
|
|
43924
|
-
get: function () { return
|
|
43952
|
+
get: function () { return chunkQ6CLWOP2_cjs.workflowRunView; }
|
|
43925
43953
|
});
|
|
43926
43954
|
Object.defineProperty(exports, "AgentSteps", {
|
|
43927
43955
|
enumerable: true,
|
|
43928
|
-
get: function () { return
|
|
43956
|
+
get: function () { return chunkCKCG4NDB_cjs.AgentSteps; }
|
|
43929
43957
|
});
|
|
43930
43958
|
Object.defineProperty(exports, "AnswerTable", {
|
|
43931
43959
|
enumerable: true,
|
|
43932
|
-
get: function () { return
|
|
43960
|
+
get: function () { return chunkCKCG4NDB_cjs.AnswerTable; }
|
|
43933
43961
|
});
|
|
43934
43962
|
Object.defineProperty(exports, "ArbiChat", {
|
|
43935
43963
|
enumerable: true,
|
|
43936
|
-
get: function () { return
|
|
43964
|
+
get: function () { return chunkCKCG4NDB_cjs.ArbiChat; }
|
|
43937
43965
|
});
|
|
43938
43966
|
Object.defineProperty(exports, "AskAgainContext", {
|
|
43939
43967
|
enumerable: true,
|
|
43940
|
-
get: function () { return
|
|
43968
|
+
get: function () { return chunkCKCG4NDB_cjs.AskAgainContext; }
|
|
43941
43969
|
});
|
|
43942
43970
|
Object.defineProperty(exports, "ConnectedBranchControls", {
|
|
43943
43971
|
enumerable: true,
|
|
43944
|
-
get: function () { return
|
|
43972
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedBranchControls; }
|
|
43945
43973
|
});
|
|
43946
43974
|
Object.defineProperty(exports, "ConnectedCitationRenderer", {
|
|
43947
43975
|
enumerable: true,
|
|
43948
|
-
get: function () { return
|
|
43976
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedCitationRenderer; }
|
|
43949
43977
|
});
|
|
43950
43978
|
Object.defineProperty(exports, "ConnectedCompactConversation", {
|
|
43951
43979
|
enumerable: true,
|
|
43952
|
-
get: function () { return
|
|
43980
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedCompactConversation; }
|
|
43953
43981
|
});
|
|
43954
43982
|
Object.defineProperty(exports, "ConnectedCompactLogin", {
|
|
43955
43983
|
enumerable: true,
|
|
43956
|
-
get: function () { return
|
|
43984
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedCompactLogin; }
|
|
43957
43985
|
});
|
|
43958
43986
|
Object.defineProperty(exports, "ConnectedConversationDocumentPicker", {
|
|
43959
43987
|
enumerable: true,
|
|
43960
|
-
get: function () { return
|
|
43988
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedConversationDocumentPicker; }
|
|
43961
43989
|
});
|
|
43962
43990
|
Object.defineProperty(exports, "ConnectedDangerZone", {
|
|
43963
43991
|
enumerable: true,
|
|
43964
|
-
get: function () { return
|
|
43992
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedDangerZone; }
|
|
43965
43993
|
});
|
|
43966
43994
|
Object.defineProperty(exports, "ConnectedEmbeddedChat", {
|
|
43967
43995
|
enumerable: true,
|
|
43968
|
-
get: function () { return
|
|
43996
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedEmbeddedChat; }
|
|
43969
43997
|
});
|
|
43970
43998
|
Object.defineProperty(exports, "ConnectedForgotPassword", {
|
|
43971
43999
|
enumerable: true,
|
|
43972
|
-
get: function () { return
|
|
44000
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedForgotPassword; }
|
|
43973
44001
|
});
|
|
43974
44002
|
Object.defineProperty(exports, "ConnectedIdentityVerification", {
|
|
43975
44003
|
enumerable: true,
|
|
43976
|
-
get: function () { return
|
|
44004
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedIdentityVerification; }
|
|
43977
44005
|
});
|
|
43978
44006
|
Object.defineProperty(exports, "ConnectedLoginPage", {
|
|
43979
44007
|
enumerable: true,
|
|
43980
|
-
get: function () { return
|
|
44008
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedLoginPage; }
|
|
43981
44009
|
});
|
|
43982
44010
|
Object.defineProperty(exports, "ConnectedLogoutDialog", {
|
|
43983
44011
|
enumerable: true,
|
|
43984
|
-
get: function () { return
|
|
44012
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedLogoutDialog; }
|
|
43985
44013
|
});
|
|
43986
44014
|
Object.defineProperty(exports, "ConnectedMessage", {
|
|
43987
44015
|
enumerable: true,
|
|
43988
|
-
get: function () { return
|
|
44016
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedMessage; }
|
|
43989
44017
|
});
|
|
43990
44018
|
Object.defineProperty(exports, "ConnectedMessageArea", {
|
|
43991
44019
|
enumerable: true,
|
|
43992
|
-
get: function () { return
|
|
44020
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedMessageArea; }
|
|
43993
44021
|
});
|
|
43994
44022
|
Object.defineProperty(exports, "ConnectedMessageList", {
|
|
43995
44023
|
enumerable: true,
|
|
43996
|
-
get: function () { return
|
|
44024
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedMessageList; }
|
|
43997
44025
|
});
|
|
43998
44026
|
Object.defineProperty(exports, "ConnectedModelSelector", {
|
|
43999
44027
|
enumerable: true,
|
|
44000
|
-
get: function () { return
|
|
44028
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedModelSelector; }
|
|
44001
44029
|
});
|
|
44002
44030
|
Object.defineProperty(exports, "ConnectedNotificationPreferences", {
|
|
44003
44031
|
enumerable: true,
|
|
44004
|
-
get: function () { return
|
|
44032
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedNotificationPreferences; }
|
|
44005
44033
|
});
|
|
44006
44034
|
Object.defineProperty(exports, "ConnectedPasswordChangeDialog", {
|
|
44007
44035
|
enumerable: true,
|
|
44008
|
-
get: function () { return
|
|
44036
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedPasswordChangeDialog; }
|
|
44009
44037
|
});
|
|
44010
44038
|
Object.defineProperty(exports, "ConnectedProfileCard", {
|
|
44011
44039
|
enumerable: true,
|
|
44012
|
-
get: function () { return
|
|
44040
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedProfileCard; }
|
|
44013
44041
|
});
|
|
44014
44042
|
Object.defineProperty(exports, "ConnectedSecuritySection", {
|
|
44015
44043
|
enumerable: true,
|
|
44016
|
-
get: function () { return
|
|
44044
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedSecuritySection; }
|
|
44017
44045
|
});
|
|
44018
44046
|
Object.defineProperty(exports, "ConnectedSessionsRow", {
|
|
44019
44047
|
enumerable: true,
|
|
44020
|
-
get: function () { return
|
|
44048
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedSessionsRow; }
|
|
44021
44049
|
});
|
|
44022
44050
|
Object.defineProperty(exports, "ConnectedThreadsPreview", {
|
|
44023
44051
|
enumerable: true,
|
|
44024
|
-
get: function () { return
|
|
44052
|
+
get: function () { return chunkCKCG4NDB_cjs.ConnectedThreadsPreview; }
|
|
44025
44053
|
});
|
|
44026
44054
|
Object.defineProperty(exports, "ConversationComposer", {
|
|
44027
44055
|
enumerable: true,
|
|
44028
|
-
get: function () { return
|
|
44056
|
+
get: function () { return chunkCKCG4NDB_cjs.ConversationComposer; }
|
|
44029
44057
|
});
|
|
44030
44058
|
Object.defineProperty(exports, "EmbeddedChatPanel", {
|
|
44031
44059
|
enumerable: true,
|
|
44032
|
-
get: function () { return
|
|
44060
|
+
get: function () { return chunkCKCG4NDB_cjs.EmbeddedChatPanel; }
|
|
44033
44061
|
});
|
|
44034
44062
|
Object.defineProperty(exports, "MessageDetailsModal", {
|
|
44035
44063
|
enumerable: true,
|
|
44036
|
-
get: function () { return
|
|
44064
|
+
get: function () { return chunkCKCG4NDB_cjs.MessageDetailsModal; }
|
|
44037
44065
|
});
|
|
44038
44066
|
Object.defineProperty(exports, "MessageLiveSeconds", {
|
|
44039
44067
|
enumerable: true,
|
|
44040
|
-
get: function () { return
|
|
44068
|
+
get: function () { return chunkCKCG4NDB_cjs.MessageLiveSeconds; }
|
|
44041
44069
|
});
|
|
44042
44070
|
Object.defineProperty(exports, "PENDING_RECOVERY_KEY", {
|
|
44043
44071
|
enumerable: true,
|
|
44044
|
-
get: function () { return
|
|
44072
|
+
get: function () { return chunkCKCG4NDB_cjs.PENDING_RECOVERY_KEY; }
|
|
44045
44073
|
});
|
|
44046
44074
|
Object.defineProperty(exports, "PREMIUM_TIER_TAG", {
|
|
44047
44075
|
enumerable: true,
|
|
44048
|
-
get: function () { return
|
|
44076
|
+
get: function () { return chunkCKCG4NDB_cjs.PREMIUM_TIER_TAG; }
|
|
44049
44077
|
});
|
|
44050
44078
|
Object.defineProperty(exports, "RunningSubagents", {
|
|
44051
44079
|
enumerable: true,
|
|
44052
|
-
get: function () { return
|
|
44080
|
+
get: function () { return chunkCKCG4NDB_cjs.RunningSubagents; }
|
|
44053
44081
|
});
|
|
44054
44082
|
Object.defineProperty(exports, "STANDARD_TIER_TAG", {
|
|
44055
44083
|
enumerable: true,
|
|
44056
|
-
get: function () { return
|
|
44084
|
+
get: function () { return chunkCKCG4NDB_cjs.STANDARD_TIER_TAG; }
|
|
44057
44085
|
});
|
|
44058
44086
|
Object.defineProperty(exports, "WorkflowStepMessage", {
|
|
44059
44087
|
enumerable: true,
|
|
44060
|
-
get: function () { return
|
|
44088
|
+
get: function () { return chunkCKCG4NDB_cjs.WorkflowStepMessage; }
|
|
44061
44089
|
});
|
|
44062
44090
|
Object.defineProperty(exports, "backUpOnSignup", {
|
|
44063
44091
|
enumerable: true,
|
|
44064
|
-
get: function () { return
|
|
44092
|
+
get: function () { return chunkCKCG4NDB_cjs.backUpOnSignup; }
|
|
44065
44093
|
});
|
|
44066
44094
|
Object.defineProperty(exports, "createRemoteControl", {
|
|
44067
44095
|
enumerable: true,
|
|
44068
|
-
get: function () { return
|
|
44096
|
+
get: function () { return chunkCKCG4NDB_cjs.createRemoteControl; }
|
|
44069
44097
|
});
|
|
44070
44098
|
Object.defineProperty(exports, "defaultHost", {
|
|
44071
44099
|
enumerable: true,
|
|
44072
|
-
get: function () { return
|
|
44100
|
+
get: function () { return chunkCKCG4NDB_cjs.defaultHost; }
|
|
44073
44101
|
});
|
|
44074
44102
|
Object.defineProperty(exports, "renderConnectedUser", {
|
|
44075
44103
|
enumerable: true,
|
|
44076
|
-
get: function () { return
|
|
44104
|
+
get: function () { return chunkCKCG4NDB_cjs.renderConnectedUser; }
|
|
44077
44105
|
});
|
|
44078
44106
|
Object.defineProperty(exports, "renderSessionStatusIcon", {
|
|
44079
44107
|
enumerable: true,
|
|
44080
|
-
get: function () { return
|
|
44108
|
+
get: function () { return chunkCKCG4NDB_cjs.renderSessionStatusIcon; }
|
|
44081
44109
|
});
|
|
44082
44110
|
Object.defineProperty(exports, "resolveSsoName", {
|
|
44083
44111
|
enumerable: true,
|
|
44084
|
-
get: function () { return
|
|
44112
|
+
get: function () { return chunkCKCG4NDB_cjs.resolveSsoName; }
|
|
44085
44113
|
});
|
|
44086
44114
|
Object.defineProperty(exports, "useAuthPages", {
|
|
44087
44115
|
enumerable: true,
|
|
44088
|
-
get: function () { return
|
|
44116
|
+
get: function () { return chunkCKCG4NDB_cjs.useAuthPages; }
|
|
44089
44117
|
});
|
|
44090
44118
|
Object.defineProperty(exports, "useContextualHints", {
|
|
44091
44119
|
enumerable: true,
|
|
44092
|
-
get: function () { return
|
|
44120
|
+
get: function () { return chunkCKCG4NDB_cjs.useContextualHints; }
|
|
44093
44121
|
});
|
|
44094
44122
|
Object.defineProperty(exports, "useModelPicker", {
|
|
44095
44123
|
enumerable: true,
|
|
44096
|
-
get: function () { return
|
|
44124
|
+
get: function () { return chunkCKCG4NDB_cjs.useModelPicker; }
|
|
44097
44125
|
});
|
|
44098
44126
|
Object.defineProperty(exports, "useOpenChunk", {
|
|
44099
44127
|
enumerable: true,
|
|
44100
|
-
get: function () { return
|
|
44128
|
+
get: function () { return chunkCKCG4NDB_cjs.useOpenChunk; }
|
|
44101
44129
|
});
|
|
44102
44130
|
Object.defineProperty(exports, "useOpenWorkspaceIcon", {
|
|
44103
44131
|
enumerable: true,
|
|
44104
|
-
get: function () { return
|
|
44132
|
+
get: function () { return chunkCKCG4NDB_cjs.useOpenWorkspaceIcon; }
|
|
44105
44133
|
});
|
|
44106
44134
|
Object.defineProperty(exports, "useRemoteControlActions", {
|
|
44107
44135
|
enumerable: true,
|
|
44108
|
-
get: function () { return
|
|
44136
|
+
get: function () { return chunkCKCG4NDB_cjs.useRemoteControlActions; }
|
|
44109
44137
|
});
|
|
44110
44138
|
Object.defineProperty(exports, "useRemoteControlHandlers", {
|
|
44111
44139
|
enumerable: true,
|
|
44112
|
-
get: function () { return
|
|
44140
|
+
get: function () { return chunkCKCG4NDB_cjs.useRemoteControlHandlers; }
|
|
44113
44141
|
});
|
|
44114
44142
|
Object.defineProperty(exports, "useSsoSignIn", {
|
|
44115
44143
|
enumerable: true,
|
|
44116
|
-
get: function () { return
|
|
44144
|
+
get: function () { return chunkCKCG4NDB_cjs.useSsoSignIn; }
|
|
44117
44145
|
});
|
|
44118
44146
|
Object.defineProperty(exports, "useWorkspaceDocTitles", {
|
|
44119
44147
|
enumerable: true,
|
|
44120
|
-
get: function () { return
|
|
44148
|
+
get: function () { return chunkCKCG4NDB_cjs.useWorkspaceDocTitles; }
|
|
44121
44149
|
});
|
|
44122
44150
|
Object.defineProperty(exports, "ConnectedWorkflowStart", {
|
|
44123
44151
|
enumerable: true,
|
|
@@ -44149,11 +44177,11 @@ Object.defineProperty(exports, "useSlashSkillWorkflows", {
|
|
|
44149
44177
|
});
|
|
44150
44178
|
Object.defineProperty(exports, "useConnectedThreadActivity", {
|
|
44151
44179
|
enumerable: true,
|
|
44152
|
-
get: function () { return
|
|
44180
|
+
get: function () { return chunkBP3IJ34D_cjs.useConnectedThreadActivity; }
|
|
44153
44181
|
});
|
|
44154
44182
|
Object.defineProperty(exports, "DocumentUser", {
|
|
44155
44183
|
enumerable: true,
|
|
44156
|
-
get: function () { return
|
|
44184
|
+
get: function () { return chunk3GWWOYGS_cjs.DocumentUser; }
|
|
44157
44185
|
});
|
|
44158
44186
|
Object.defineProperty(exports, "useCanBrowseSkills", {
|
|
44159
44187
|
enumerable: true,
|
|
@@ -44209,35 +44237,35 @@ Object.defineProperty(exports, "ConnectedDocumentToolsProvider", {
|
|
|
44209
44237
|
});
|
|
44210
44238
|
Object.defineProperty(exports, "FILES_PREFS_KEY", {
|
|
44211
44239
|
enumerable: true,
|
|
44212
|
-
get: function () { return
|
|
44240
|
+
get: function () { return chunkDFBDQKGE_cjs.FILES_PREFS_KEY; }
|
|
44213
44241
|
});
|
|
44214
44242
|
Object.defineProperty(exports, "filesViewMode", {
|
|
44215
44243
|
enumerable: true,
|
|
44216
|
-
get: function () { return
|
|
44244
|
+
get: function () { return chunkDFBDQKGE_cjs.filesViewMode; }
|
|
44217
44245
|
});
|
|
44218
44246
|
Object.defineProperty(exports, "useAiReviewStore", {
|
|
44219
44247
|
enumerable: true,
|
|
44220
|
-
get: function () { return
|
|
44248
|
+
get: function () { return chunkDFBDQKGE_cjs.useAiReviewStore; }
|
|
44221
44249
|
});
|
|
44222
44250
|
Object.defineProperty(exports, "useFilesDialogs", {
|
|
44223
44251
|
enumerable: true,
|
|
44224
|
-
get: function () { return
|
|
44252
|
+
get: function () { return chunkDFBDQKGE_cjs.useFilesDialogs; }
|
|
44225
44253
|
});
|
|
44226
44254
|
Object.defineProperty(exports, "useFilesGridStates", {
|
|
44227
44255
|
enumerable: true,
|
|
44228
|
-
get: function () { return
|
|
44256
|
+
get: function () { return chunkDFBDQKGE_cjs.useFilesGridStates; }
|
|
44229
44257
|
});
|
|
44230
44258
|
Object.defineProperty(exports, "useFilesPrefs", {
|
|
44231
44259
|
enumerable: true,
|
|
44232
|
-
get: function () { return
|
|
44260
|
+
get: function () { return chunkDFBDQKGE_cjs.useFilesPrefs; }
|
|
44233
44261
|
});
|
|
44234
44262
|
Object.defineProperty(exports, "useFilesStore", {
|
|
44235
44263
|
enumerable: true,
|
|
44236
|
-
get: function () { return
|
|
44264
|
+
get: function () { return chunkDFBDQKGE_cjs.useFilesStore; }
|
|
44237
44265
|
});
|
|
44238
44266
|
Object.defineProperty(exports, "usePendingFolders", {
|
|
44239
44267
|
enumerable: true,
|
|
44240
|
-
get: function () { return
|
|
44268
|
+
get: function () { return chunkDFBDQKGE_cjs.usePendingFolders; }
|
|
44241
44269
|
});
|
|
44242
44270
|
Object.defineProperty(exports, "ConnectedMarkdown", {
|
|
44243
44271
|
enumerable: true,
|
|
@@ -44269,87 +44297,87 @@ Object.defineProperty(exports, "useDocumentWorkspace", {
|
|
|
44269
44297
|
});
|
|
44270
44298
|
Object.defineProperty(exports, "ConnectedPendingSyncDialog", {
|
|
44271
44299
|
enumerable: true,
|
|
44272
|
-
get: function () { return
|
|
44300
|
+
get: function () { return chunkBUVIBHFU_cjs.ConnectedPendingSyncDialog; }
|
|
44273
44301
|
});
|
|
44274
44302
|
Object.defineProperty(exports, "DocumentFolderCell", {
|
|
44275
44303
|
enumerable: true,
|
|
44276
|
-
get: function () { return
|
|
44304
|
+
get: function () { return chunkBUVIBHFU_cjs.DocumentFolderCell; }
|
|
44277
44305
|
});
|
|
44278
44306
|
Object.defineProperty(exports, "DocumentLabelsCell", {
|
|
44279
44307
|
enumerable: true,
|
|
44280
|
-
get: function () { return
|
|
44308
|
+
get: function () { return chunkBUVIBHFU_cjs.DocumentLabelsCell; }
|
|
44281
44309
|
});
|
|
44282
44310
|
Object.defineProperty(exports, "DocumentNameCell", {
|
|
44283
44311
|
enumerable: true,
|
|
44284
|
-
get: function () { return
|
|
44312
|
+
get: function () { return chunkBUVIBHFU_cjs.DocumentNameCell; }
|
|
44285
44313
|
});
|
|
44286
44314
|
Object.defineProperty(exports, "DocumentSharedCell", {
|
|
44287
44315
|
enumerable: true,
|
|
44288
|
-
get: function () { return
|
|
44316
|
+
get: function () { return chunkBUVIBHFU_cjs.DocumentSharedCell; }
|
|
44289
44317
|
});
|
|
44290
44318
|
Object.defineProperty(exports, "DocumentStatusGlyph", {
|
|
44291
44319
|
enumerable: true,
|
|
44292
|
-
get: function () { return
|
|
44320
|
+
get: function () { return chunkBUVIBHFU_cjs.DocumentStatusGlyph; }
|
|
44293
44321
|
});
|
|
44294
44322
|
Object.defineProperty(exports, "DocumentSyncGlyph", {
|
|
44295
44323
|
enumerable: true,
|
|
44296
|
-
get: function () { return
|
|
44324
|
+
get: function () { return chunkBUVIBHFU_cjs.DocumentSyncGlyph; }
|
|
44297
44325
|
});
|
|
44298
44326
|
Object.defineProperty(exports, "FileTooltipContent", {
|
|
44299
44327
|
enumerable: true,
|
|
44300
|
-
get: function () { return
|
|
44328
|
+
get: function () { return chunkBUVIBHFU_cjs.FileTooltipContent; }
|
|
44301
44329
|
});
|
|
44302
44330
|
Object.defineProperty(exports, "RelatedDocumentsCell", {
|
|
44303
44331
|
enumerable: true,
|
|
44304
|
-
get: function () { return
|
|
44332
|
+
get: function () { return chunkBUVIBHFU_cjs.RelatedDocumentsCell; }
|
|
44305
44333
|
});
|
|
44306
44334
|
Object.defineProperty(exports, "StatusCell", {
|
|
44307
44335
|
enumerable: true,
|
|
44308
|
-
get: function () { return
|
|
44336
|
+
get: function () { return chunkBUVIBHFU_cjs.StatusCell; }
|
|
44309
44337
|
});
|
|
44310
44338
|
Object.defineProperty(exports, "UserAvatar", {
|
|
44311
44339
|
enumerable: true,
|
|
44312
|
-
get: function () { return
|
|
44340
|
+
get: function () { return chunkBUVIBHFU_cjs.UserAvatar; }
|
|
44313
44341
|
});
|
|
44314
44342
|
Object.defineProperty(exports, "isActiveDocumentStatus", {
|
|
44315
44343
|
enumerable: true,
|
|
44316
|
-
get: function () { return
|
|
44344
|
+
get: function () { return chunkBUVIBHFU_cjs.isActiveDocumentStatus; }
|
|
44317
44345
|
});
|
|
44318
44346
|
Object.defineProperty(exports, "openPendingSyncDialog", {
|
|
44319
44347
|
enumerable: true,
|
|
44320
|
-
get: function () { return
|
|
44348
|
+
get: function () { return chunkBUVIBHFU_cjs.openPendingSyncDialog; }
|
|
44321
44349
|
});
|
|
44322
44350
|
Object.defineProperty(exports, "parseQuotaError", {
|
|
44323
44351
|
enumerable: true,
|
|
44324
|
-
get: function () { return
|
|
44352
|
+
get: function () { return chunkBUVIBHFU_cjs.parseQuotaError; }
|
|
44325
44353
|
});
|
|
44326
44354
|
Object.defineProperty(exports, "startMenuItem", {
|
|
44327
44355
|
enumerable: true,
|
|
44328
|
-
get: function () { return
|
|
44356
|
+
get: function () { return chunkBUVIBHFU_cjs.startMenuItem; }
|
|
44329
44357
|
});
|
|
44330
44358
|
Object.defineProperty(exports, "useDocumentFolders", {
|
|
44331
44359
|
enumerable: true,
|
|
44332
|
-
get: function () { return
|
|
44360
|
+
get: function () { return chunkBUVIBHFU_cjs.useDocumentFolders; }
|
|
44333
44361
|
});
|
|
44334
44362
|
Object.defineProperty(exports, "ConnectedWorkflowsTable", {
|
|
44335
44363
|
enumerable: true,
|
|
44336
|
-
get: function () { return
|
|
44364
|
+
get: function () { return chunkECLUFKYR_cjs.ConnectedWorkflowsTable; }
|
|
44337
44365
|
});
|
|
44338
44366
|
Object.defineProperty(exports, "DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS", {
|
|
44339
44367
|
enumerable: true,
|
|
44340
|
-
get: function () { return
|
|
44368
|
+
get: function () { return chunkECLUFKYR_cjs.DEFAULT_CONNECTED_WORKFLOWS_TABLE_LABELS; }
|
|
44341
44369
|
});
|
|
44342
44370
|
Object.defineProperty(exports, "useConnectedWorkspaceRole", {
|
|
44343
44371
|
enumerable: true,
|
|
44344
|
-
get: function () { return
|
|
44372
|
+
get: function () { return chunkECLUFKYR_cjs.useConnectedWorkspaceRole; }
|
|
44345
44373
|
});
|
|
44346
44374
|
Object.defineProperty(exports, "useDocxCommentTarget", {
|
|
44347
44375
|
enumerable: true,
|
|
44348
|
-
get: function () { return
|
|
44376
|
+
get: function () { return chunkECLUFKYR_cjs.useDocxCommentTarget; }
|
|
44349
44377
|
});
|
|
44350
44378
|
Object.defineProperty(exports, "useNativeDocxSupport", {
|
|
44351
44379
|
enumerable: true,
|
|
44352
|
-
get: function () { return
|
|
44380
|
+
get: function () { return chunkECLUFKYR_cjs.useNativeDocxSupport; }
|
|
44353
44381
|
});
|
|
44354
44382
|
Object.defineProperty(exports, "useOpenWorkflow", {
|
|
44355
44383
|
enumerable: true,
|